@aveonline/ui-react 0.0.2-alpha.0 → 1.0.1
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.
- package/README.md +30 -18
- package/dist/assets/index.91a8dfaf.css +1 -0
- package/dist/components/atoms/Avatar/Avatar.d.ts +7 -0
- package/dist/components/atoms/Avatar/IAvatar.d.ts +6 -0
- package/dist/components/atoms/Avatar/index.d.ts +1 -0
- package/dist/components/atoms/Badge/Badge.d.ts +7 -0
- package/dist/components/atoms/Badge/IBadge.d.ts +11 -0
- package/dist/components/atoms/Badge/index.d.ts +1 -0
- package/dist/components/atoms/Button/Button.d.ts +7 -0
- package/dist/components/atoms/Button/IButton.d.ts +47 -0
- package/dist/components/atoms/Button/IsLoading.d.ts +3 -0
- package/dist/components/atoms/Button/index.d.ts +2 -0
- package/dist/components/atoms/Button/useCSS.d.ts +4 -0
- package/dist/components/atoms/Heading/Heading.d.ts +8 -0
- package/dist/components/atoms/Heading/IHeading.d.ts +11 -0
- package/dist/components/atoms/Heading/index.d.ts +2 -0
- package/dist/components/atoms/Heading/useCSS.d.ts +4 -0
- package/dist/components/atoms/Icon/IIcon.d.ts +30 -0
- package/dist/components/atoms/Icon/Icon.d.ts +2 -0
- package/dist/components/atoms/Icon/Svg.d.ts +3 -0
- package/dist/components/atoms/Icon/index.d.ts +2 -0
- package/dist/components/atoms/RadioButton/IRadioButton.d.ts +40 -0
- package/dist/components/atoms/RadioButton/RadioButton.d.ts +7 -0
- package/dist/components/atoms/RadioButton/index.d.ts +1 -0
- package/dist/components/atoms/Switch/ISwitch.d.ts +19 -0
- package/dist/components/atoms/Switch/Switch.d.ts +7 -0
- package/dist/components/atoms/Switch/index.d.ts +1 -0
- package/dist/components/atoms/Text/IText.d.ts +12 -0
- package/dist/components/atoms/Text/Text.d.ts +8 -0
- package/dist/components/atoms/Text/index.d.ts +2 -0
- package/dist/components/atoms/Text/useCSS.d.ts +4 -0
- package/dist/components/atoms/Tooltip/ITooltip.d.ts +10 -0
- package/dist/components/atoms/Tooltip/Tooltip.d.ts +7 -0
- package/dist/components/atoms/Tooltip/TooltipAnchor.d.ts +8 -0
- package/dist/components/atoms/Tooltip/TooltipFloat.d.ts +8 -0
- package/dist/components/atoms/Tooltip/index.d.ts +2 -0
- package/dist/components/atoms/Tracker/ITracker.d.ts +8 -0
- package/dist/components/atoms/Tracker/Tracker.d.ts +7 -0
- package/dist/components/atoms/Tracker/index.d.ts +1 -0
- package/dist/components/index.d.ts +26 -2
- package/dist/components/molecules/Card/Select/ISelect.d.ts +26 -0
- package/dist/components/molecules/Card/Select/Select.d.ts +7 -0
- package/dist/components/molecules/Card/Select/index.d.ts +1 -0
- package/dist/components/molecules/Dropdown/Dropdown.d.ts +8 -0
- package/dist/components/molecules/Dropdown/IDropdown.d.ts +14 -0
- package/dist/components/molecules/Dropdown/index.d.ts +1 -0
- package/dist/components/molecules/EmptyState/BoxSvg.d.ts +1 -0
- package/dist/components/molecules/EmptyState/EmptyState.d.ts +7 -0
- package/dist/components/molecules/EmptyState/IEmptyState.d.ts +7 -0
- package/dist/components/molecules/EmptyState/PadlockSvg.d.ts +1 -0
- package/dist/components/molecules/EmptyState/index.d.ts +1 -0
- package/dist/components/molecules/Header/Header.d.ts +7 -0
- package/dist/components/molecules/Header/IHeader.d.ts +6 -0
- package/dist/components/molecules/Header/index.d.ts +1 -0
- package/dist/components/molecules/InlineError/IInlineError.d.ts +16 -0
- package/dist/components/molecules/InlineError/InlineError.d.ts +7 -0
- package/dist/components/molecules/InlineError/index.d.ts +1 -0
- package/dist/components/molecules/Modal/IModal.d.ts +36 -0
- package/dist/components/molecules/Modal/Modal.d.ts +7 -0
- package/dist/components/molecules/Modal/index.d.ts +1 -0
- package/dist/components/molecules/Selectable/AsyncSelect/AsyncSelect.d.ts +7 -0
- package/dist/components/molecules/Selectable/AsyncSelect/IAsyncSelect.d.ts +7 -0
- package/dist/components/molecules/Selectable/AsyncSelect/index.d.ts +1 -0
- package/dist/components/molecules/Selectable/Select/ISelect.d.ts +54 -0
- package/dist/components/molecules/Selectable/Select/Select.d.ts +7 -0
- package/dist/components/molecules/Selectable/Select/index.d.ts +2 -0
- package/dist/components/molecules/Selectable/SelectButton/ISelectButton.d.ts +25 -0
- package/dist/components/molecules/Selectable/SelectButton/Option.d.ts +4 -0
- package/dist/components/molecules/Selectable/SelectButton/SelectButton.d.ts +7 -0
- package/dist/components/molecules/Selectable/SelectButton/index.d.ts +1 -0
- package/dist/components/molecules/Selectable/SelectCountry/Option.d.ts +2 -0
- package/dist/components/molecules/Selectable/SelectCountry/Prefix.d.ts +3 -0
- package/dist/components/molecules/Selectable/SelectCountry/SelectCountry.d.ts +7 -0
- package/dist/components/molecules/Selectable/SelectCountry/SingleValue.d.ts +3 -0
- package/dist/components/molecules/Selectable/SelectCountry/index.d.ts +1 -0
- package/dist/components/molecules/Selectable/atoms/ClearIndicator.d.ts +2 -0
- package/dist/components/molecules/Selectable/atoms/Container.d.ts +7 -0
- package/dist/components/molecules/Selectable/atoms/DropdownIndicator.d.ts +2 -0
- package/dist/components/molecules/Selectable/atoms/Option.d.ts +2 -0
- package/dist/components/molecules/Selectable/atoms/Placeholder.d.ts +2 -0
- package/dist/components/molecules/Selectable/atoms/SingleValue.d.ts +3 -0
- package/dist/components/molecules/Selectable/atoms/index.d.ts +6 -0
- package/dist/components/molecules/Selectable/hooks/index.d.ts +1 -0
- package/dist/components/molecules/Selectable/hooks/useCSS.d.ts +5 -0
- package/dist/components/molecules/Summary/Summary.d.ts +16 -0
- package/dist/components/molecules/Summary/index.d.ts +1 -0
- package/dist/components/molecules/Tab/ITab.d.ts +19 -0
- package/dist/components/molecules/Tab/Tab.d.ts +7 -0
- package/dist/components/molecules/Tab/index.d.ts +2 -0
- package/dist/components/molecules/TabNav/ITabNav.d.ts +10 -0
- package/dist/components/molecules/TabNav/TabNav.d.ts +6 -0
- package/dist/components/molecules/TabNav/index.d.ts +1 -0
- package/dist/components/organisms/Navigation/INavigation.d.ts +8 -0
- package/dist/components/organisms/Navigation/Navigation.d.ts +6 -0
- package/dist/components/organisms/Navigation/index.d.ts +1 -0
- package/dist/components/templates/Main/Main.d.ts +11 -0
- package/dist/components/templates/Main/index.d.ts +1 -0
- package/dist/components/templates/Shipment/Shipment.d.ts +13 -0
- package/dist/components/templates/Shipment/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useTokens.d.ts +10 -0
- package/dist/index.d.ts +2 -3
- package/dist/postcss.config.js +4 -5
- package/dist/tailwind.config.js +206 -192
- package/dist/tailwind.css +1 -1
- package/dist/tokens.css +76 -67
- package/dist/types/Template.d.ts +8 -0
- package/dist/types/Tokens.d.ts +50 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/ui-react.mjs +10060 -407
- package/dist/ui-react.umd.js +48 -11
- package/package.json +34 -10
- package/dist/assets/index.53932362.css +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IHeader } from './IHeader';
|
|
2
|
+
/**
|
|
3
|
+
* Atom: Header
|
|
4
|
+
* The top bar is a header component that allows merchants to access menus, and navigate by clicking on the logo. It’s always visible at the top of interfaces.
|
|
5
|
+
*/
|
|
6
|
+
declare function Header({ hasLogo, className, ...rest }: IHeader): JSX.Element;
|
|
7
|
+
export default Header;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Header } from './Header';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { IChildren, IClassName } from '../../../types';
|
|
2
|
+
import { IColor, IKind } from '../../atoms/Icon';
|
|
3
|
+
export interface IInlineError extends IChildren, IClassName {
|
|
4
|
+
/**
|
|
5
|
+
* Sizes availables
|
|
6
|
+
*/
|
|
7
|
+
size?: 'lg' | 'sm';
|
|
8
|
+
/**
|
|
9
|
+
* Icons availables
|
|
10
|
+
*/
|
|
11
|
+
icon?: IKind;
|
|
12
|
+
/**
|
|
13
|
+
* Colors icons
|
|
14
|
+
*/
|
|
15
|
+
colorIcon?: IColor;
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IInlineError } from './IInlineError';
|
|
2
|
+
/**
|
|
3
|
+
* Atom: InlineError
|
|
4
|
+
* Inline errors are brief, in-context messages that tell merchants something went wrong with a single or group of inputs in a form. Use inline errors to help merchants understand why a form input may not be valid and how to fix it.
|
|
5
|
+
*/
|
|
6
|
+
declare function InlineError({ children, size, icon, colorIcon, className, ...props }: IInlineError): JSX.Element;
|
|
7
|
+
export default InlineError;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as InlineError } from './InlineError';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IChildren } from '../../../types';
|
|
2
|
+
interface IPropsModal extends IChildren {
|
|
3
|
+
/**
|
|
4
|
+
* Crontol open and close modal
|
|
5
|
+
*/
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Title main
|
|
9
|
+
*/
|
|
10
|
+
title?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Reference to icon with onclick on the header
|
|
13
|
+
*/
|
|
14
|
+
iconTitle?: JSX.Element;
|
|
15
|
+
/**
|
|
16
|
+
* Subtitle secondary
|
|
17
|
+
*/
|
|
18
|
+
subtitle?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Container for elements align to x end
|
|
21
|
+
*/
|
|
22
|
+
footer?: JSX.Element;
|
|
23
|
+
/**
|
|
24
|
+
* Control border for children
|
|
25
|
+
*/
|
|
26
|
+
hasBorder?: Array<'top' | 'bottom'>;
|
|
27
|
+
/**
|
|
28
|
+
* Show icon delete from header
|
|
29
|
+
*/
|
|
30
|
+
showClose?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Event for close modal
|
|
33
|
+
*/
|
|
34
|
+
onClose?: (value: boolean) => void;
|
|
35
|
+
}
|
|
36
|
+
export type { IPropsModal };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IPropsModal } from './IModal';
|
|
2
|
+
/**
|
|
3
|
+
* Molecule: Modal
|
|
4
|
+
* Modals are overlays that require merchants to take an action before they can continue interacting with the rest of Shopify. They can be disruptive and should be used thoughtfully and sparingly.
|
|
5
|
+
*/
|
|
6
|
+
declare function Modal({ title, iconTitle, subtitle, footer, isOpen, hasBorder, showClose, onClose, children }: IPropsModal): JSX.Element;
|
|
7
|
+
export default Modal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Modal } from './Modal';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IAsyncSelect } from './IAsyncSelect';
|
|
2
|
+
/**
|
|
3
|
+
* Molecule: AsyncSelect
|
|
4
|
+
* Async select lets merchants choose one option from an options menu. Consider select when you have 4 or more options, to avoid cluttering the interface. Data from network
|
|
5
|
+
*/
|
|
6
|
+
declare function AsyncSelect({ placeholder, id, name, error, helpText, hasLabelPlaceholder, isDisabled, isClearable, defaultValue, onChange, loadOptions, ...props }: IAsyncSelect): JSX.Element;
|
|
7
|
+
export default AsyncSelect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AsyncSelect } from './AsyncSelect';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare type IOption = {
|
|
2
|
+
label: string | number;
|
|
3
|
+
value: string | number;
|
|
4
|
+
};
|
|
5
|
+
export interface ISelect {
|
|
6
|
+
/**
|
|
7
|
+
* Array of options that populate the select menu
|
|
8
|
+
*/
|
|
9
|
+
options?: IOption[];
|
|
10
|
+
/**
|
|
11
|
+
* Is the select disabled
|
|
12
|
+
*/
|
|
13
|
+
isDisabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Placeholder for the select value
|
|
16
|
+
*/
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Object default of options
|
|
20
|
+
*/
|
|
21
|
+
defaultValue?: IOption;
|
|
22
|
+
/**
|
|
23
|
+
* Message error
|
|
24
|
+
*/
|
|
25
|
+
error?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The id to set on the SelectContainer component.
|
|
28
|
+
*/
|
|
29
|
+
id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Name of the HTML Input (optional - without this, no input will be rendered)
|
|
32
|
+
*/
|
|
33
|
+
name?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Handle change events on the select
|
|
36
|
+
*/
|
|
37
|
+
onChange?: (value: IOption) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Message for help human
|
|
40
|
+
*/
|
|
41
|
+
helpText?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Placeholder to convert on label
|
|
44
|
+
*/
|
|
45
|
+
hasLabelPlaceholder?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Whether to enable search functionality
|
|
48
|
+
*/
|
|
49
|
+
isSearchable?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Is the select value clearable
|
|
52
|
+
*/
|
|
53
|
+
isClearable?: boolean;
|
|
54
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ISelect } from './ISelect';
|
|
2
|
+
/**
|
|
3
|
+
* Atom: Select
|
|
4
|
+
* Select lets merchants choose one option from an options menu. Consider select when you have 4 or more options, to avoid cluttering the interface.
|
|
5
|
+
*/
|
|
6
|
+
declare function Select({ options, placeholder, defaultValue, isDisabled, id, error, name, helpText, hasLabelPlaceholder, onChange, isSearchable, isClearable, ...props }: ISelect): JSX.Element;
|
|
7
|
+
export default Select;
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
/**
|
|
14
|
+
* Array of options that populate the select menu - two structures optionals
|
|
15
|
+
*/
|
|
16
|
+
options: IOptionSelectButton[] | IOptionSelectButtonGroup[];
|
|
17
|
+
/**
|
|
18
|
+
* Handle click for first element, options no selectable, only emit click
|
|
19
|
+
*/
|
|
20
|
+
onClickFirstItem?: (value: IOptionSelectButton) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Position align children elements atom[Button]
|
|
23
|
+
*/
|
|
24
|
+
alignButton?: Align;
|
|
25
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ISelectButton } from './ISelectButton';
|
|
2
|
+
/**
|
|
3
|
+
* Molecule: SelectButton
|
|
4
|
+
* Select with button for first item lets merchants choose one option from an options menu. Consider select when you have 4 or more options, to avoid cluttering the interface.
|
|
5
|
+
*/
|
|
6
|
+
declare function SelectButton({ options, placeholder, defaultValue, isDisabled, id, error, name, helpText, hasLabelPlaceholder, onChange, isSearchable, isClearable, alignButton, onClickFirstItem, ...props }: ISelectButton): JSX.Element;
|
|
7
|
+
export default SelectButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SelectButton } from './SelectButton';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ISelect } from '../Select/ISelect';
|
|
2
|
+
/**
|
|
3
|
+
* Molecule: SelectCountry
|
|
4
|
+
* Select lets merchants choose one option from an options menu. Consider select when you have 4 or more options, to avoid cluttering the interface.
|
|
5
|
+
*/
|
|
6
|
+
declare function SelectCountry({ id, name, placeholder, options, defaultValue, isDisabled, error, isSearchable, helpText, onChange, isClearable, ...props }: ISelect): JSX.Element;
|
|
7
|
+
export default SelectCountry;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SelectCountry } from './SelectCountry';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useCSS';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ITemplate } from '../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Molecule: Summary
|
|
4
|
+
*/
|
|
5
|
+
declare function Summary({ children, title, className, footer, ...rest }: ITemplate & {
|
|
6
|
+
title?: string;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
declare namespace Summary {
|
|
9
|
+
var Container: ({ children, className, ...rest }: ITemplate) => JSX.Element;
|
|
10
|
+
var Header: ({ children, className, ...rest }: ITemplate) => JSX.Element;
|
|
11
|
+
var Footer: ({ children, className, total, isDisabled, ...rest }: ITemplate & {
|
|
12
|
+
total?: string | undefined;
|
|
13
|
+
isDisabled?: boolean | undefined;
|
|
14
|
+
}) => JSX.Element;
|
|
15
|
+
}
|
|
16
|
+
export default Summary;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Summary } from './Summary';
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
/**
|
|
12
|
+
* Base structure for render content on the tab
|
|
13
|
+
*/
|
|
14
|
+
tabs: Record<string, ITab>;
|
|
15
|
+
/**
|
|
16
|
+
* Option tabs availables
|
|
17
|
+
*/
|
|
18
|
+
variant?: 'default' | 'fitted';
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TabNav } from './TabNav';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Navigation } from './Navigation';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ITemplate } from '@/types';
|
|
2
|
+
/**
|
|
3
|
+
* Template: Layout main
|
|
4
|
+
*/
|
|
5
|
+
declare function Layout({ children, className, ...rest }: ITemplate): JSX.Element;
|
|
6
|
+
declare namespace Layout {
|
|
7
|
+
var Header: ({ children }: ITemplate) => JSX.Element;
|
|
8
|
+
var Menu: ({ children }: ITemplate) => JSX.Element;
|
|
9
|
+
var Main: ({ children, className, ...rest }: ITemplate) => JSX.Element;
|
|
10
|
+
}
|
|
11
|
+
export default Layout;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Main } from './Main';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ITemplate } from '../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Template: Layout generate shipment
|
|
4
|
+
*/
|
|
5
|
+
declare function Layout({ children, className, ...rest }: ITemplate): JSX.Element;
|
|
6
|
+
declare namespace Layout {
|
|
7
|
+
var Header: ({ children, className, title, onBack, ...rest }: ITemplate & {
|
|
8
|
+
title?: string | undefined;
|
|
9
|
+
onBack?: (() => void) | undefined;
|
|
10
|
+
}) => JSX.Element;
|
|
11
|
+
var Main: ({ children, className, ...rest }: ITemplate) => JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
export default Layout;
|
|
@@ -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, Header, Main, Summary, Shipment } 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, Header, Main, Summary, Shipment };
|
package/dist/postcss.config.js
CHANGED
|
@@ -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'
|
|
13
|
-
|
|
9
|
+
process.env.NODE_ENV === 'production'
|
|
10
|
+
? cssnano({ preset: 'default' })
|
|
11
|
+
: null
|
|
12
|
+
]
|
|
14
13
|
}
|