@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.
Files changed (115) hide show
  1. package/README.md +30 -18
  2. package/dist/assets/index.91a8dfaf.css +1 -0
  3. package/dist/components/atoms/Avatar/Avatar.d.ts +7 -0
  4. package/dist/components/atoms/Avatar/IAvatar.d.ts +6 -0
  5. package/dist/components/atoms/Avatar/index.d.ts +1 -0
  6. package/dist/components/atoms/Badge/Badge.d.ts +7 -0
  7. package/dist/components/atoms/Badge/IBadge.d.ts +11 -0
  8. package/dist/components/atoms/Badge/index.d.ts +1 -0
  9. package/dist/components/atoms/Button/Button.d.ts +7 -0
  10. package/dist/components/atoms/Button/IButton.d.ts +47 -0
  11. package/dist/components/atoms/Button/IsLoading.d.ts +3 -0
  12. package/dist/components/atoms/Button/index.d.ts +2 -0
  13. package/dist/components/atoms/Button/useCSS.d.ts +4 -0
  14. package/dist/components/atoms/Heading/Heading.d.ts +8 -0
  15. package/dist/components/atoms/Heading/IHeading.d.ts +11 -0
  16. package/dist/components/atoms/Heading/index.d.ts +2 -0
  17. package/dist/components/atoms/Heading/useCSS.d.ts +4 -0
  18. package/dist/components/atoms/Icon/IIcon.d.ts +30 -0
  19. package/dist/components/atoms/Icon/Icon.d.ts +2 -0
  20. package/dist/components/atoms/Icon/Svg.d.ts +3 -0
  21. package/dist/components/atoms/Icon/index.d.ts +2 -0
  22. package/dist/components/atoms/RadioButton/IRadioButton.d.ts +40 -0
  23. package/dist/components/atoms/RadioButton/RadioButton.d.ts +7 -0
  24. package/dist/components/atoms/RadioButton/index.d.ts +1 -0
  25. package/dist/components/atoms/Switch/ISwitch.d.ts +19 -0
  26. package/dist/components/atoms/Switch/Switch.d.ts +7 -0
  27. package/dist/components/atoms/Switch/index.d.ts +1 -0
  28. package/dist/components/atoms/Text/IText.d.ts +12 -0
  29. package/dist/components/atoms/Text/Text.d.ts +8 -0
  30. package/dist/components/atoms/Text/index.d.ts +2 -0
  31. package/dist/components/atoms/Text/useCSS.d.ts +4 -0
  32. package/dist/components/atoms/Tooltip/ITooltip.d.ts +10 -0
  33. package/dist/components/atoms/Tooltip/Tooltip.d.ts +7 -0
  34. package/dist/components/atoms/Tooltip/TooltipAnchor.d.ts +8 -0
  35. package/dist/components/atoms/Tooltip/TooltipFloat.d.ts +8 -0
  36. package/dist/components/atoms/Tooltip/index.d.ts +2 -0
  37. package/dist/components/atoms/Tracker/ITracker.d.ts +8 -0
  38. package/dist/components/atoms/Tracker/Tracker.d.ts +7 -0
  39. package/dist/components/atoms/Tracker/index.d.ts +1 -0
  40. package/dist/components/index.d.ts +26 -2
  41. package/dist/components/molecules/Card/Select/ISelect.d.ts +26 -0
  42. package/dist/components/molecules/Card/Select/Select.d.ts +7 -0
  43. package/dist/components/molecules/Card/Select/index.d.ts +1 -0
  44. package/dist/components/molecules/Dropdown/Dropdown.d.ts +8 -0
  45. package/dist/components/molecules/Dropdown/IDropdown.d.ts +14 -0
  46. package/dist/components/molecules/Dropdown/index.d.ts +1 -0
  47. package/dist/components/molecules/EmptyState/BoxSvg.d.ts +1 -0
  48. package/dist/components/molecules/EmptyState/EmptyState.d.ts +7 -0
  49. package/dist/components/molecules/EmptyState/IEmptyState.d.ts +7 -0
  50. package/dist/components/molecules/EmptyState/PadlockSvg.d.ts +1 -0
  51. package/dist/components/molecules/EmptyState/index.d.ts +1 -0
  52. package/dist/components/molecules/Header/Header.d.ts +7 -0
  53. package/dist/components/molecules/Header/IHeader.d.ts +6 -0
  54. package/dist/components/molecules/Header/index.d.ts +1 -0
  55. package/dist/components/molecules/InlineError/IInlineError.d.ts +16 -0
  56. package/dist/components/molecules/InlineError/InlineError.d.ts +7 -0
  57. package/dist/components/molecules/InlineError/index.d.ts +1 -0
  58. package/dist/components/molecules/Modal/IModal.d.ts +36 -0
  59. package/dist/components/molecules/Modal/Modal.d.ts +7 -0
  60. package/dist/components/molecules/Modal/index.d.ts +1 -0
  61. package/dist/components/molecules/Selectable/AsyncSelect/AsyncSelect.d.ts +7 -0
  62. package/dist/components/molecules/Selectable/AsyncSelect/IAsyncSelect.d.ts +7 -0
  63. package/dist/components/molecules/Selectable/AsyncSelect/index.d.ts +1 -0
  64. package/dist/components/molecules/Selectable/Select/ISelect.d.ts +54 -0
  65. package/dist/components/molecules/Selectable/Select/Select.d.ts +7 -0
  66. package/dist/components/molecules/Selectable/Select/index.d.ts +2 -0
  67. package/dist/components/molecules/Selectable/SelectButton/ISelectButton.d.ts +25 -0
  68. package/dist/components/molecules/Selectable/SelectButton/Option.d.ts +4 -0
  69. package/dist/components/molecules/Selectable/SelectButton/SelectButton.d.ts +7 -0
  70. package/dist/components/molecules/Selectable/SelectButton/index.d.ts +1 -0
  71. package/dist/components/molecules/Selectable/SelectCountry/Option.d.ts +2 -0
  72. package/dist/components/molecules/Selectable/SelectCountry/Prefix.d.ts +3 -0
  73. package/dist/components/molecules/Selectable/SelectCountry/SelectCountry.d.ts +7 -0
  74. package/dist/components/molecules/Selectable/SelectCountry/SingleValue.d.ts +3 -0
  75. package/dist/components/molecules/Selectable/SelectCountry/index.d.ts +1 -0
  76. package/dist/components/molecules/Selectable/atoms/ClearIndicator.d.ts +2 -0
  77. package/dist/components/molecules/Selectable/atoms/Container.d.ts +7 -0
  78. package/dist/components/molecules/Selectable/atoms/DropdownIndicator.d.ts +2 -0
  79. package/dist/components/molecules/Selectable/atoms/Option.d.ts +2 -0
  80. package/dist/components/molecules/Selectable/atoms/Placeholder.d.ts +2 -0
  81. package/dist/components/molecules/Selectable/atoms/SingleValue.d.ts +3 -0
  82. package/dist/components/molecules/Selectable/atoms/index.d.ts +6 -0
  83. package/dist/components/molecules/Selectable/hooks/index.d.ts +1 -0
  84. package/dist/components/molecules/Selectable/hooks/useCSS.d.ts +5 -0
  85. package/dist/components/molecules/Summary/Summary.d.ts +16 -0
  86. package/dist/components/molecules/Summary/index.d.ts +1 -0
  87. package/dist/components/molecules/Tab/ITab.d.ts +19 -0
  88. package/dist/components/molecules/Tab/Tab.d.ts +7 -0
  89. package/dist/components/molecules/Tab/index.d.ts +2 -0
  90. package/dist/components/molecules/TabNav/ITabNav.d.ts +10 -0
  91. package/dist/components/molecules/TabNav/TabNav.d.ts +6 -0
  92. package/dist/components/molecules/TabNav/index.d.ts +1 -0
  93. package/dist/components/organisms/Navigation/INavigation.d.ts +8 -0
  94. package/dist/components/organisms/Navigation/Navigation.d.ts +6 -0
  95. package/dist/components/organisms/Navigation/index.d.ts +1 -0
  96. package/dist/components/templates/Main/Main.d.ts +11 -0
  97. package/dist/components/templates/Main/index.d.ts +1 -0
  98. package/dist/components/templates/Shipment/Shipment.d.ts +13 -0
  99. package/dist/components/templates/Shipment/index.d.ts +1 -0
  100. package/dist/hooks/index.d.ts +1 -0
  101. package/dist/hooks/useTokens.d.ts +10 -0
  102. package/dist/index.d.ts +2 -3
  103. package/dist/postcss.config.js +4 -5
  104. package/dist/tailwind.config.js +206 -192
  105. package/dist/tailwind.css +1 -1
  106. package/dist/tokens.css +76 -67
  107. package/dist/types/Template.d.ts +8 -0
  108. package/dist/types/Tokens.d.ts +50 -0
  109. package/dist/types/index.d.ts +2 -0
  110. package/dist/ui-react.mjs +10060 -407
  111. package/dist/ui-react.umd.js +48 -11
  112. package/package.json +34 -10
  113. package/dist/assets/index.53932362.css +0 -1
  114. package/dist/components/index.d.ts.map +0 -1
  115. 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,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,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,7 @@
1
+ import type { ISelect, IOption } from '../Select';
2
+ export interface IAsyncSelect extends Omit<ISelect, 'options'> {
3
+ /**
4
+ * Handle change search async
5
+ */
6
+ loadOptions?: (inputValue: string) => Promise<IOption[]> | undefined;
7
+ }
@@ -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,2 @@
1
+ export { default as Select } from './Select';
2
+ export * from './ISelect';
@@ -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,4 @@
1
+ import type { Align } from '../../../atoms/Button';
2
+ export declare const Option: ({ alignButton, ...allProps }: {
3
+ alignButton: Align;
4
+ }) => JSX.Element;
@@ -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,2 @@
1
+ import type { OptionProps } from 'react-select';
2
+ export declare const Option: (props: OptionProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const Prefix: ({ isDisabled }: {
2
+ isDisabled?: boolean | undefined;
3
+ }) => JSX.Element;
@@ -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,3 @@
1
+ export declare const SingleValue: ({ isDisabled, ...allProps }: {
2
+ isDisabled?: boolean | undefined;
3
+ }) => JSX.Element;
@@ -0,0 +1 @@
1
+ export { default as SelectCountry } from './SelectCountry';
@@ -0,0 +1,2 @@
1
+ import type { ClearIndicatorProps } from 'react-select';
2
+ export declare const ClearIndicator: (props: ClearIndicatorProps) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { IChildren } from '../../../../types';
2
+ declare type IProps = {
3
+ helpText?: string;
4
+ error?: string;
5
+ };
6
+ export declare function Container({ helpText, error, children }: IProps & IChildren): JSX.Element;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { DropdownIndicatorProps } from 'react-select';
2
+ export declare const DropdownIndicator: (props: DropdownIndicatorProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { OptionProps } from 'react-select';
2
+ export declare const Option: (props: OptionProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { PlaceholderProps } from 'react-select';
2
+ export declare const Placeholder: (props: PlaceholderProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const SingleValue: ({ hasLabelPlaceholder, ...allProps }: {
2
+ hasLabelPlaceholder?: boolean | undefined;
3
+ }) => JSX.Element;
@@ -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,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,7 @@
1
+ import { ITabs } from './ITab';
2
+ /**
3
+ * Molecule: Tab
4
+ * Use to alternate among related views within the same context.
5
+ */
6
+ declare function Tab({ tabs, variant }: ITabs): JSX.Element;
7
+ export default Tab;
@@ -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,6 @@
1
+ import { ITabNav } from './ITabNav';
2
+ /**
3
+ * Molecule: TabNav
4
+ */
5
+ declare function TabNav({ icon, isSelected, title, total, isSmall, ...rest }: ITabNav): JSX.Element;
6
+ export default TabNav;
@@ -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,6 @@
1
+ import { INavigation } from './INavigation';
2
+ /**
3
+ * Organism: Navigation
4
+ */
5
+ declare function Navigation({ children, isSmall, onClick, className, ...rest }: INavigation): JSX.Element;
6
+ export default Navigation;
@@ -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 };
@@ -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
  }