Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ module.exports = {
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/consistent-type-imports': 'error',
'prefer-rest-params': 'off',
'prefer-const': 'off',
'no-var': 'off',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/action-buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.

import * as React from 'react';
import { useStyletron } from 'baseui';
import { TImportsConfig } from 'react-view';
import type { TImportsConfig } from 'react-view';
import { MdContentCopy, MdFormatIndentIncrease, MdRotateRight } from 'react-icons/md';

import { Button, KIND, SIZE } from 'baseui/button';
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/accordion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LICENSE file in the root directory of this source tree.
*/
import { Accordion, Panel } from 'baseui/accordion';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const AccordionConfig: TConfig = {
componentName: 'Accordion',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/app-nav-bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LICENSE file in the root directory of this source tree.
import { AppNavBar, setItemActive } from 'baseui/app-nav-bar';
import { ChevronDown, Delete, Overflow, Upload } from 'baseui/icon';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const NavigationBarConfig: TConfig = {
componentName: 'AppNavBar',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/avatar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.

import { Avatar } from 'baseui/avatar';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const AvatarConfig: TConfig = {
componentName: 'Avatar',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/badge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.
import { Badge, HIERARCHY, SHAPE, COLOR, PLACEMENT } from 'baseui/badge';
import { Skeleton } from 'baseui/skeleton';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const BadgeConfig: TConfig = {
componentName: 'Badge',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/banner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LICENSE file in the root directory of this source tree.
*/
import { Banner, ACTION_POSITION, ARTWORK_TYPE, HIERARCHY, KIND } from 'baseui/banner';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const BannerConfig: TConfig = {
componentName: 'Banner',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/breadcrumbs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LICENSE file in the root directory of this source tree.
import { Breadcrumbs } from 'baseui/breadcrumbs';
import { StyledLink } from 'baseui/link';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';
import iconConfig from './icon';

const BreadcrumbsConfig: TConfig = {
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/button-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.
import { ButtonGroup, MODE, SIZE, SHAPE } from 'baseui/button-group';
import { Button } from 'baseui/button';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const ButtonGroupConfig: TConfig = {
componentName: 'ButtonGroup',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LICENSE file in the root directory of this source tree.
*/
import { Button, KIND, SIZE, SHAPE } from 'baseui/button';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const ButtonConfig: TConfig = {
componentName: 'Button',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LICENSE file in the root directory of this source tree.
import { Card, StyledBody, StyledAction } from 'baseui/card';
import { Button } from 'baseui/button';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const CardConfig: TConfig = {
componentName: 'Card',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.
import pick from 'just-pick';
import { Checkbox, STYLE_TYPE, LABEL_PLACEMENT } from 'baseui/checkbox';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';
import { changeHandlers } from './common/common';

const CheckboxConfig: TConfig = {
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/combobox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.

import { Combobox, SIZE } from 'baseui/combobox';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';
import inputConfig from './input';
import popoverConfig from './popover';

Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/datepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.
import { DatePicker, ORIENTATION } from 'baseui/datepicker';
import { SIZE } from 'baseui/input';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';
import inputConfig from './input';
import menuConfig from './menu';
import popoverConfig from './popover';
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/divider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.

import { StyledDivider, SIZE } from 'baseui/divider';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const DividerConfig: TConfig = {
componentName: 'StyledDivider',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/dnd-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.

import { List, arrayMove, arrayRemove } from 'baseui/dnd-list';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const dndListConfig: TConfig = {
componentName: 'List',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/drawer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.

import { Drawer, ANCHOR, SIZE } from 'baseui/drawer';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const DrawerConfig: TConfig = {
componentName: 'Drawer',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/file-uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.

import { FileUploader } from 'baseui/file-uploader';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';
import buttonConfig from './button';

const changeHandlers = [
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/fixed-marker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
LABEL_ENHANCER_POSITIONS,
} from 'baseui/map-marker';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';
import { Check, Upload, Search } from 'baseui/icon';

export const theme = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
FLOATING_MARKER_ANCHOR_TYPES,
} from 'baseui/map-marker';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

export const theme = [];

Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/form-control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.
import { FormControl } from 'baseui/form-control';
import { Input } from 'baseui/input';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const TextareaConfig: TConfig = {
componentName: 'FormControl',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import { StyledLink } from 'baseui/link';
import { Button } from 'baseui/button';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const HeaderNavigationConfig: TConfig = {
componentName: 'HeaderNavigation',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/hint-dot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LICENSE file in the root directory of this source tree.
*/
import { HintDot, COLOR } from 'baseui/badge';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const HintDotConfig: TConfig = {
componentName: 'HintDot',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.

import { ArrowUp } from 'baseui/icon';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const IconConfig: TConfig = {
componentName: 'ArrowUp',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import pick from 'just-pick';

import { Input, ADJOINED, SIZE } from 'baseui/input';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

import { changeHandlers } from './common/common';

Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.

import { StyledLink } from 'baseui/link';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const LinkConfig: TConfig = {
componentName: 'StyledLink',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/list-heading.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LICENSE file in the root directory of this source tree.
import { ListHeading } from 'baseui/list';
import { Button, SIZE, SHAPE } from 'baseui/button';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const ListHeadingConfig: TConfig = {
componentName: 'ListHeading',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.

import { ListItemLabel } from 'baseui/list';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const ListItemLabelConfig: TConfig = {
componentName: 'ListItemLabel',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/list-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LICENSE file in the root directory of this source tree.
import { ListItem, ListItemLabel, ARTWORK_SIZES, SHAPE } from 'baseui/list';
import { Check } from 'baseui/icon';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const ListItemConfig: TConfig = {
componentName: 'ListItem',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/location-puck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.

import { LocationPuck, LOCATION_PUCK_TYPES, LOCATION_PUCK_SIZES } from 'baseui/map-marker';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

export const theme = [];

Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.

import { StatefulMenu } from 'baseui/menu';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const items = `[
{label: 'Item One'},
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/message-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LICENSE file in the root directory of this source tree.
*/
import { MessageCard, BACKGROUND_COLOR_TYPE, IMAGE_LAYOUT, BUTTON_KIND } from 'baseui/message-card';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const MessageCardConfig: TConfig = {
componentName: 'MessageCard',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LICENSE file in the root directory of this source tree.
import { Modal, ModalHeader, ModalBody, ModalFooter, ModalButton, SIZE, ROLE } from 'baseui/modal';
import { KIND as ButtonKind } from 'baseui/button';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const ModalConfig: TConfig = {
componentName: 'Modal',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { NotificationCircle, COLOR, PLACEMENT } from 'baseui/badge';
import { Skeleton } from 'baseui/skeleton';
import { Check } from 'baseui/icon';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const NotificationCircleConfig: TConfig = {
componentName: 'NotificationCircle',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LICENSE file in the root directory of this source tree.
import pick from 'just-pick';
import { Notification, KIND } from 'baseui/notification';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';
import { changeHandlers } from './common/common';

const NotificationConfig: TConfig = {
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/pagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.

import { Pagination, SIZE } from 'baseui/pagination';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';
import selectConfig from './select';

const PaginationConfig: TConfig = {
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/payment-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import omit from 'just-omit';
import { PaymentCard } from 'baseui/payment-card';
import { ADJOINED, SIZE } from 'baseui/input';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';
import { theme, inputProps } from './input';

const PaymentCardConfig: TConfig = {
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/phone-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LICENSE file in the root directory of this source tree.

import { PhoneInput, COUNTRIES, SIZE } from 'baseui/phone-input';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';
import selectConfig from './select';
import inputConfig, { theme } from './input';

Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/pin-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LICENSE file in the root directory of this source tree.
import omit from 'just-omit';
import { PinCode, SIZE } from 'baseui/pin-code';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';
import inputConfig, { theme, inputProps } from './input';

const PincodeConfig: TConfig = {
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Button } from 'baseui/button';
import { Block } from 'baseui/block';
import { Input } from 'baseui/input';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

import { changeHandlers } from './common/common';

Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/progress-bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LICENSE file in the root directory of this source tree.
*/
import { ProgressBar, SIZE } from 'baseui/progress-bar';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const ProgressBarConfig: TConfig = {
componentName: 'ProgressBar',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LICENSE file in the root directory of this source tree.
import { ProgressSteps, NumberedStep } from 'baseui/progress-steps';
import { Button } from 'baseui/button';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

import ProgressStepsConfig from './progress-steps';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LICENSE file in the root directory of this source tree.
import { ProgressSteps, Step } from 'baseui/progress-steps';
import { Button } from 'baseui/button';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

const ProgressStepsConfig: TConfig = {
componentName: 'ProgressSteps',
Expand Down
2 changes: 1 addition & 1 deletion documentation-site/components/yard/config/radio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import pick from 'just-pick';

import { Radio, RadioGroup, ALIGN } from 'baseui/radio';
import { PropTypes } from 'react-view';
import { TConfig } from '../types';
import type { TConfig } from '../types';

import { changeHandlers } from './common/common';

Expand Down
Loading