@aveonline/ui-react 0.0.1-alpha.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/README.md +25 -2
  2. package/dist/assets/index.91a8dfaf.css +1 -0
  3. package/dist/components/atoms/Avatar/IAvatar.d.ts +3 -0
  4. package/dist/components/atoms/Avatar/index.d.ts +1 -0
  5. package/dist/components/atoms/Badge/IBadge.d.ts +5 -0
  6. package/dist/components/atoms/Badge/index.d.ts +1 -0
  7. package/dist/components/atoms/Button/IButton.d.ts +20 -0
  8. package/dist/components/atoms/Button/index.d.ts +2 -0
  9. package/dist/components/atoms/Button/useCSS.d.ts +4 -0
  10. package/dist/components/atoms/Heading/IHeading.d.ts +5 -0
  11. package/dist/components/atoms/Heading/index.d.ts +2 -0
  12. package/dist/components/atoms/Heading/useCSS.d.ts +4 -0
  13. package/dist/components/atoms/Icon/IIcon.d.ts +12 -0
  14. package/dist/components/atoms/Icon/index.d.ts +2 -0
  15. package/dist/components/atoms/RadioButton/IRadioButton.d.ts +16 -0
  16. package/dist/components/atoms/RadioButton/index.d.ts +1 -0
  17. package/dist/components/atoms/Switch/ISwitch.d.ts +7 -0
  18. package/dist/components/atoms/Switch/index.d.ts +1 -0
  19. package/dist/components/atoms/Text/IText.d.ts +6 -0
  20. package/dist/components/atoms/Text/index.d.ts +2 -0
  21. package/dist/components/atoms/Text/useCSS.d.ts +4 -0
  22. package/dist/components/atoms/Tooltip/ITooltip.d.ts +10 -0
  23. package/dist/components/atoms/Tooltip/index.d.ts +2 -0
  24. package/dist/components/atoms/Tracker/ITracker.d.ts +8 -0
  25. package/dist/components/atoms/Tracker/index.d.ts +1 -0
  26. package/dist/components/index.d.ts +26 -2
  27. package/dist/components/molecules/Card/Select/ISelect.d.ts +17 -0
  28. package/dist/components/molecules/Card/Select/index.d.ts +1 -0
  29. package/dist/components/molecules/Dropdown/IDropdown.d.ts +14 -0
  30. package/dist/components/molecules/Dropdown/index.d.ts +1 -0
  31. package/dist/components/molecules/EmptyState/IEmptyState.d.ts +7 -0
  32. package/dist/components/molecules/EmptyState/index.d.ts +1 -0
  33. package/dist/components/molecules/Header/IHeader.d.ts +6 -0
  34. package/dist/components/molecules/Header/index.d.ts +1 -0
  35. package/dist/components/molecules/InlineError/IInlineError.d.ts +7 -0
  36. package/dist/components/molecules/InlineError/index.d.ts +1 -0
  37. package/dist/components/molecules/Modal/IModal.d.ts +12 -0
  38. package/dist/components/molecules/Modal/index.d.ts +1 -0
  39. package/dist/components/molecules/Selectable/AsyncSelect/IAsyncSelect.d.ts +4 -0
  40. package/dist/components/molecules/Selectable/AsyncSelect/index.d.ts +1 -0
  41. package/dist/components/molecules/Selectable/Select/ISelect.d.ts +18 -0
  42. package/dist/components/molecules/Selectable/Select/index.d.ts +2 -0
  43. package/dist/components/molecules/Selectable/SelectButton/ISelectButton.d.ts +16 -0
  44. package/dist/components/molecules/Selectable/SelectButton/index.d.ts +1 -0
  45. package/dist/components/molecules/Selectable/SelectCountry/index.d.ts +1 -0
  46. package/dist/components/molecules/Selectable/atoms/index.d.ts +6 -0
  47. package/dist/components/molecules/Selectable/hooks/index.d.ts +1 -0
  48. package/dist/components/molecules/Selectable/hooks/useCSS.d.ts +5 -0
  49. package/dist/components/molecules/Summary/index.d.ts +1 -0
  50. package/dist/components/molecules/Tab/ITab.d.ts +13 -0
  51. package/dist/components/molecules/Tab/index.d.ts +2 -0
  52. package/dist/components/molecules/TabNav/ITabNav.d.ts +10 -0
  53. package/dist/components/molecules/TabNav/index.d.ts +1 -0
  54. package/dist/components/organisms/Navigation/INavigation.d.ts +8 -0
  55. package/dist/components/organisms/Navigation/index.d.ts +1 -0
  56. package/dist/components/templates/Main/index.d.ts +1 -0
  57. package/dist/components/templates/Shipment/index.d.ts +1 -0
  58. package/dist/hooks/index.d.ts +1 -0
  59. package/dist/hooks/useTokens.d.ts +10 -0
  60. package/dist/index.d.ts +2 -3
  61. package/dist/postcss.config.js +4 -5
  62. package/dist/tailwind.config.js +206 -192
  63. package/dist/tailwind.css +1 -1
  64. package/dist/tokens.css +76 -67
  65. package/dist/types/Template.d.ts +5 -0
  66. package/dist/types/Tokens.d.ts +26 -0
  67. package/dist/types/index.d.ts +2 -0
  68. package/dist/ui-react.mjs +9861 -407
  69. package/dist/ui-react.umd.js +48 -11
  70. package/package.json +34 -10
  71. package/dist/assets/index.53932362.css +0 -1
  72. package/dist/components/index.d.ts.map +0 -1
  73. package/dist/index.d.ts.map +0 -1
package/README.md CHANGED
@@ -2,8 +2,17 @@
2
2
  <img height="100" src="https://user-images.githubusercontent.com/38017835/197309416-fd4390a0-cfb6-41f3-ac26-10d067d92a25.png">
3
3
  <h1 align="center">ui ecosystem react</h1>
4
4
  <p>The home base for Aveonline design system, ui-react provides essential design resources for our developers to use in the Aveonline-branded interfaces that they create.</p>
5
+ <a href="https://ui-aveonline.vercel.app/">Go Storybook</a>
5
6
  </div>
6
7
 
8
+ ## Before started
9
+
10
+ For usage with tailwind config, install:
11
+
12
+ ```shell
13
+ npm i
14
+ ```
15
+
7
16
  ## Getting started
8
17
 
9
18
  Working with all config from this library or only components availables
@@ -17,7 +26,7 @@ npm i @aveonline/ui-react
17
26
  Import things into your JS app from the `@aveonline/ui-react` package.
18
27
 
19
28
  ```ts
20
- import { Test } from '@aveonline/ui-react'
29
+ import { Button } from '@aveonline/ui-react'
21
30
  ```
22
31
 
23
32
  `tailwind.config.js`
@@ -84,7 +93,7 @@ Tests
84
93
 
85
94
  Run `npm run test` to execute all unit test components.
86
95
 
87
- We use `vitest` and `testing-library/react` for unit/integration tests and will soon use [Chromatic](https://www.chromaticqa.com/) for visual regression testing.
96
+ We use `vitest` and `testing-library/react` for unit/integration tests and [Chromatic](https://www.chromaticqa.com/) for visual regression testing.
88
97
 
89
98
  Open Storybook
90
99
 
@@ -103,3 +112,17 @@ Storybook production
103
112
  ```shell
104
113
  npm run build:storybook
105
114
  ```
115
+
116
+ Run test
117
+
118
+ ```shell
119
+ npm run test
120
+ ```
121
+
122
+ Run regression testing
123
+
124
+ - [Join](https://www.chromatic.com/library?appId=6362f0c0f36774d17ed0c3a0&inviteToken=4adce6358a9b439f8b636d0599e6db4b)
125
+
126
+ ```shell
127
+ npm run chromatic
128
+ ```
@@ -0,0 +1 @@
1
+ [type=radio]:checked{background-image:url("data:image/svg+xml;utf8,%3Csvg%20viewBox%3D'0%200%2016%2016'%20fill%3D'%232C6ECB'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Ccircle%20cx%3D'8'%20cy%3D'8'%20r%3D'4'%2F%3E%3C%2Fsvg%3E")}[type=radio]:checked:disabled{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}
@@ -0,0 +1,3 @@
1
+ export interface IAvatar {
2
+ size: 'sm' | 'xs' | 'md' | 'lg';
3
+ }
@@ -0,0 +1 @@
1
+ export { default as Avatar } from './Avatar';
@@ -0,0 +1,5 @@
1
+ import { IChildren } from '../../../types';
2
+ export interface IBadge extends IChildren {
3
+ variant: 'neutral' | 'info' | 'success' | 'warning' | 'critical';
4
+ size?: 'sm' | 'md';
5
+ }
@@ -0,0 +1 @@
1
+ export { default as Badge } from './Badge';
@@ -0,0 +1,20 @@
1
+ import type { ReactNode, MouseEventHandler } from 'react';
2
+ export declare type Variant = 'primary' | 'basic' | 'destructive' | 'plain' | 'plain-monochrome' | 'plain-destructive';
3
+ declare type Size = 'md' | 'sm';
4
+ export declare type Align = 'start' | 'center' | 'end';
5
+ interface IButton {
6
+ variant?: Variant;
7
+ children?: ReactNode;
8
+ size?: Size;
9
+ fullWidth?: boolean;
10
+ isLoading?: boolean;
11
+ isDisabled?: boolean;
12
+ align?: Align;
13
+ onlyOneIcon?: boolean;
14
+ onClick?: MouseEventHandler<HTMLButtonElement | HTMLDivElement> | (() => void);
15
+ }
16
+ interface ILoading {
17
+ variant?: Variant;
18
+ size?: Size;
19
+ }
20
+ export type { IButton, ILoading };
@@ -0,0 +1,2 @@
1
+ export { default as Button } from './Button';
2
+ export * from './IButton';
@@ -0,0 +1,4 @@
1
+ import { IButton } from './IButton';
2
+ export declare function useCSS({ variant, isLoading, size, fullWidth, align, onlyOneIcon }: IButton): {
3
+ getClass: () => string;
4
+ };
@@ -0,0 +1,5 @@
1
+ import type { IColorText, IWeight, ILineHeightHeading, IFontSizeHeading, IClassName, IChildren } from '../../../types';
2
+ export interface IHeading extends IChildren, IClassName, IWeight, ILineHeightHeading, IColorText, IFontSizeHeading {
3
+ variant?: 'subheading' | 'heading' | 'sm' | 'md' | 'lg' | 'xl';
4
+ as?: Extract<keyof JSX.IntrinsicElements, 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;
5
+ }
@@ -0,0 +1,2 @@
1
+ export { default as Heading } from './Heading';
2
+ export * from './IHeading';
@@ -0,0 +1,4 @@
1
+ import { IHeading } from './IHeading';
2
+ export declare function useCSS({ variant, ...props }: IHeading): {
3
+ getClass: string;
4
+ };
@@ -0,0 +1,12 @@
1
+ export declare type ISize = 'sm' | 'md' | 'lg';
2
+ export declare type IColor = 'success' | 'warning' | 'disabled' | 'active' | 'hovered' | 'subdued' | 'default' | 'critical' | 'primary';
3
+ export declare type IKind = 'shipping' | 'home' | 'menu' | 'notifications' | 'novelty' | 'help' | 'see-more' | 'info' | 'alert' | 'eye' | 'date' | 'search' | 'delete' | 'more-less' | 'down' | 'up' | 'back' | 'front' | 'major-minor' | 'minor-major' | 'create' | 'success' | 'error' | 'more' | 'less' | undefined;
4
+ interface IconProps {
5
+ size?: ISize;
6
+ color?: IColor;
7
+ kind?: IKind;
8
+ cursor?: 'pointer' | 'default';
9
+ onClick?: () => void;
10
+ className?: string;
11
+ }
12
+ export type { IconProps };
@@ -0,0 +1,2 @@
1
+ export { default as Icon } from './Icon';
2
+ export * from './IIcon';
@@ -0,0 +1,16 @@
1
+ declare type Change = {
2
+ value: string | number;
3
+ checked: boolean;
4
+ };
5
+ declare type IPropsRadio = {
6
+ id?: string;
7
+ name?: string;
8
+ isDisabled?: boolean;
9
+ value?: string | number;
10
+ defaultChecked?: boolean;
11
+ label?: string;
12
+ helpText?: string;
13
+ onChange?: (value: Change) => void;
14
+ [rest: string]: any;
15
+ };
16
+ export type { IPropsRadio };
@@ -0,0 +1 @@
1
+ export { default as RadioButton } from './RadioButton';
@@ -0,0 +1,7 @@
1
+ interface ISwitch {
2
+ isSelected: boolean;
3
+ isDisabled?: boolean;
4
+ name?: string;
5
+ onChange(checked: boolean): void;
6
+ }
7
+ export type { ISwitch };
@@ -0,0 +1 @@
1
+ export { default as Switch } from './Switch';
@@ -0,0 +1,6 @@
1
+ import type { IColorText, IWeight, ILineHeightText, IFontSizeText, IChildren, IClassName } from '../../../types';
2
+ export interface IText extends IColorText, IWeight, ILineHeightText, IFontSizeText, IChildren, IClassName {
3
+ variant?: 'button' | 'body' | 'highlight' | 'caption';
4
+ as?: Extract<keyof JSX.IntrinsicElements, 'span' | 'p' | 'label'>;
5
+ [rest: string]: any;
6
+ }
@@ -0,0 +1,2 @@
1
+ export { default as Text } from './Text';
2
+ export * from './IText';
@@ -0,0 +1,4 @@
1
+ import type { IText } from './IText';
2
+ export declare function useCSS({ variant, ...props }: IText): {
3
+ getClass: string;
4
+ };
@@ -0,0 +1,10 @@
1
+ import { IChildren } from '../../../types';
2
+ import type { Placement } from '@floating-ui/react-dom-interactions';
3
+ import { useTooltip } from './useTooltip';
4
+ export declare type TooltipState = ReturnType<typeof useTooltip>;
5
+ export declare type ITooltipProps = {
6
+ placement?: Placement;
7
+ title?: string;
8
+ description?: string;
9
+ initialOpen?: boolean;
10
+ } & IChildren;
@@ -0,0 +1,2 @@
1
+ export { default as Tooltip } from './Tooltip';
2
+ export * from './ITooltip';
@@ -0,0 +1,8 @@
1
+ declare type IPropsTracker = {
2
+ track: string;
3
+ title?: string;
4
+ isDisabled?: boolean;
5
+ isSelected?: boolean;
6
+ [rest: string]: any;
7
+ };
8
+ export type { IPropsTracker };
@@ -0,0 +1 @@
1
+ export { default as Tracker } from './Tracker';
@@ -1,2 +1,26 @@
1
- export { default as Button } from './Button/Button';
2
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './atoms/Button';
2
+ export * from './atoms/Avatar';
3
+ export * from './atoms/Heading';
4
+ export * from './atoms/Text';
5
+ export * from './atoms/Badge';
6
+ export * from './atoms/Switch';
7
+ export * from './atoms/Icon';
8
+ export * from './atoms/Tooltip';
9
+ export * from './atoms/RadioButton';
10
+ export * from './atoms/Tracker';
11
+ export * from './molecules/Selectable/Select';
12
+ export * from './molecules/Selectable/AsyncSelect';
13
+ export * from './molecules/Selectable/SelectButton';
14
+ export * from './molecules/Selectable/SelectCountry';
15
+ export * from './molecules/Tab';
16
+ export * from './molecules/InlineError';
17
+ export * from './molecules/Modal';
18
+ export * from './molecules/Dropdown';
19
+ export * from './molecules/EmptyState';
20
+ export * from './molecules/TabNav';
21
+ export * from './molecules/Header';
22
+ export * from './molecules/Summary';
23
+ export * from './molecules/Card/Select';
24
+ export * from './organisms/Navigation';
25
+ export * from './templates/Main';
26
+ export * from './templates/Shipment';
@@ -0,0 +1,17 @@
1
+ interface ICardSelect {
2
+ id: string;
3
+ title: string;
4
+ subtitle?: string;
5
+ description?: string;
6
+ state?: string;
7
+ img?: JSX.Element;
8
+ hasRadio?: boolean;
9
+ isDisabled?: boolean;
10
+ error?: string;
11
+ }
12
+ declare type IPropsCardSelect = {
13
+ items: ICardSelect[];
14
+ checkedItem: ICardSelect | undefined;
15
+ onChange: (value: ICardSelect) => void;
16
+ };
17
+ export type { IPropsCardSelect, ICardSelect };
@@ -0,0 +1 @@
1
+ export { default as CardSelect } from './Select';
@@ -0,0 +1,14 @@
1
+ import { IChildren } from '../../../types';
2
+ declare type IElement = string | JSX.Element;
3
+ declare type IContent = {
4
+ label: IElement;
5
+ value: IElement;
6
+ };
7
+ interface IPropsDropdown extends IChildren {
8
+ title?: IElement;
9
+ subtitle?: IElement[];
10
+ content?: IContent[];
11
+ defaultOpen?: boolean;
12
+ isDisabled?: boolean;
13
+ }
14
+ export type { IPropsDropdown, IElement, IContent };
@@ -0,0 +1 @@
1
+ export { default as Dropdown } from './Dropdown';
@@ -0,0 +1,7 @@
1
+ import { IChildren, IClassName } from '../../../types';
2
+ interface IPropsEmptyState extends IChildren, IClassName {
3
+ title?: string;
4
+ description?: string;
5
+ img?: 'box' | 'padlock';
6
+ }
7
+ export type { IPropsEmptyState };
@@ -0,0 +1 @@
1
+ export { default as EmptyState } from './EmptyState';
@@ -0,0 +1,6 @@
1
+ declare type IHeader = {
2
+ hasLogo?: boolean;
3
+ className?: string;
4
+ [rest: string]: any;
5
+ };
6
+ export type { IHeader };
@@ -0,0 +1 @@
1
+ export { default as Header } from './Header';
@@ -0,0 +1,7 @@
1
+ import type { IChildren, IClassName } from '../../../types';
2
+ import { IColor, IKind } from '../../atoms/Icon';
3
+ export interface IInlineError extends IChildren, IClassName {
4
+ size?: 'lg' | 'sm';
5
+ icon?: IKind;
6
+ colorIcon?: IColor;
7
+ }
@@ -0,0 +1 @@
1
+ export { default as InlineError } from './InlineError';
@@ -0,0 +1,12 @@
1
+ import { IChildren } from '../../../types';
2
+ interface IPropsModal extends IChildren {
3
+ isOpen?: boolean;
4
+ title?: string;
5
+ iconTitle?: JSX.Element;
6
+ subtitle?: string;
7
+ footer?: JSX.Element;
8
+ hasBorder?: Array<'top' | 'bottom'>;
9
+ showClose?: boolean;
10
+ onClose?: (value: boolean) => void;
11
+ }
12
+ export type { IPropsModal };
@@ -0,0 +1 @@
1
+ export { default as Modal } from './Modal';
@@ -0,0 +1,4 @@
1
+ import type { ISelect, IOption } from '../Select';
2
+ export interface IAsyncSelect extends Omit<ISelect, 'options'> {
3
+ loadOptions?: (inputValue: string) => Promise<IOption[]> | undefined;
4
+ }
@@ -0,0 +1 @@
1
+ export { default as AsyncSelect } from './AsyncSelect';
@@ -0,0 +1,18 @@
1
+ export declare type IOption = {
2
+ label: string | number;
3
+ value: string | number;
4
+ };
5
+ export interface ISelect {
6
+ options?: IOption[];
7
+ isDisabled?: boolean;
8
+ placeholder?: string;
9
+ defaultValue?: IOption;
10
+ error?: string;
11
+ id?: string;
12
+ name?: string;
13
+ onChange?: (value: IOption) => void;
14
+ helpText?: string;
15
+ hasLabelPlaceholder?: boolean;
16
+ isSearchable?: boolean;
17
+ isClearable?: boolean;
18
+ }
@@ -0,0 +1,2 @@
1
+ export { default as Select } from './Select';
2
+ export * from './ISelect';
@@ -0,0 +1,16 @@
1
+ import type { ISelect, IOption } from '../Select';
2
+ import type { IKind } from '../../../atoms/Icon';
3
+ import type { Align } from '../../../atoms/Button';
4
+ export interface IOptionSelectButton extends IOption {
5
+ notSelect?: boolean;
6
+ icon?: IKind;
7
+ }
8
+ export interface IOptionSelectButtonGroup {
9
+ label: string;
10
+ options: IOption[];
11
+ }
12
+ export interface ISelectButton extends Omit<ISelect, 'options'> {
13
+ options: IOptionSelectButton[] | IOptionSelectButtonGroup[];
14
+ onClickFirstItem?: (value: IOptionSelectButton) => void;
15
+ alignButton?: Align;
16
+ }
@@ -0,0 +1 @@
1
+ export { default as SelectButton } from './SelectButton';
@@ -0,0 +1 @@
1
+ export { default as SelectCountry } from './SelectCountry';
@@ -0,0 +1,6 @@
1
+ export * from './ClearIndicator';
2
+ export * from './Container';
3
+ export * from './DropdownIndicator';
4
+ export * from './Option';
5
+ export * from './Placeholder';
6
+ export * from './SingleValue';
@@ -0,0 +1 @@
1
+ export * from './useCSS';
@@ -0,0 +1,5 @@
1
+ import type { StylesConfig } from 'react-select';
2
+ import type { ISelect } from '../Select';
3
+ export declare function useCSS({ error, helpText }: ISelect): {
4
+ styles: StylesConfig<unknown, boolean, import("react-select").GroupBase<unknown>>;
5
+ };
@@ -0,0 +1 @@
1
+ export { default as Summary } from './Summary';
@@ -0,0 +1,13 @@
1
+ export interface ITab {
2
+ children?: string | number | JSX.Element;
3
+ isDisabled?: boolean;
4
+ total?: number;
5
+ }
6
+ export declare type IState = {
7
+ selected: boolean;
8
+ isDisabled: boolean | undefined;
9
+ };
10
+ export interface ITabs {
11
+ tabs: Record<string, ITab>;
12
+ variant?: 'default' | 'fitted';
13
+ }
@@ -0,0 +1,2 @@
1
+ export { default as Tab } from './Tab';
2
+ export * from './Tab';
@@ -0,0 +1,10 @@
1
+ import { IKind } from '../../atoms/Icon';
2
+ declare type ITabNav = {
3
+ isSelected?: boolean;
4
+ title?: string;
5
+ icon?: IKind;
6
+ total?: number;
7
+ isSmall?: boolean;
8
+ [rest: string]: any;
9
+ };
10
+ export type { ITabNav };
@@ -0,0 +1 @@
1
+ export { default as TabNav } from './TabNav';
@@ -0,0 +1,8 @@
1
+ import { IChildren } from '@/types';
2
+ interface INavigation extends IChildren {
3
+ isSmall?: boolean;
4
+ [rest: string]: any;
5
+ className?: string;
6
+ onClick?: () => void;
7
+ }
8
+ export type { INavigation };
@@ -0,0 +1 @@
1
+ export { default as Navigation } from './Navigation';
@@ -0,0 +1 @@
1
+ export { default as Main } from './Main';
@@ -0,0 +1 @@
1
+ export { default as Shipment } from './Shipment';
@@ -0,0 +1 @@
1
+ export * from './useTokens';
@@ -0,0 +1,10 @@
1
+ import type { IHeading, IText } from '../components';
2
+ declare type Response = {
3
+ getWeight: () => string;
4
+ getFontSize: () => string;
5
+ getLineHeight: () => string;
6
+ getColorText: () => string;
7
+ getClassName: () => string;
8
+ };
9
+ export declare function useTokens(props: IHeading | IText): Response;
10
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- import { Button } from './components';
2
- export { Button };
3
- //# sourceMappingURL=index.d.ts.map
1
+ import { Button, Avatar, Heading, Text, Badge, Switch, Tab, InlineError, Icon, Select, AsyncSelect, SelectButton, SelectCountry, CardSelect, Dropdown, EmptyState, TabNav, RadioButton, Tracker, Modal, Tooltip, Navigation } from './components';
2
+ export { Button, Avatar, Heading, Text, Badge, Switch, Tab, InlineError, Icon, Select, AsyncSelect, SelectButton, SelectCountry, CardSelect, Dropdown, EmptyState, TabNav, RadioButton, Tracker, Modal, Tooltip, Navigation };
@@ -1,6 +1,3 @@
1
- /* eslint-env es6 */
2
- /* eslint-disable */
3
-
4
1
  const cssnano = require('cssnano')
5
2
  const tailwindcss = require('tailwindcss')
6
3
 
@@ -9,6 +6,8 @@ module.exports = {
9
6
  require('postcss-import'),
10
7
  tailwindcss('./tailwind.config.js'),
11
8
  process.env.NODE_ENV === 'production' ? require('autoprefixer') : null,
12
- process.env.NODE_ENV === 'production' ? cssnano({preset: 'default'}) : null,
13
- ],
9
+ process.env.NODE_ENV === 'production'
10
+ ? cssnano({ preset: 'default' })
11
+ : null
12
+ ]
14
13
  }