@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.
- package/README.md +25 -2
- package/dist/assets/index.91a8dfaf.css +1 -0
- package/dist/components/atoms/Avatar/IAvatar.d.ts +3 -0
- package/dist/components/atoms/Avatar/index.d.ts +1 -0
- package/dist/components/atoms/Badge/IBadge.d.ts +5 -0
- package/dist/components/atoms/Badge/index.d.ts +1 -0
- package/dist/components/atoms/Button/IButton.d.ts +20 -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/IHeading.d.ts +5 -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 +12 -0
- package/dist/components/atoms/Icon/index.d.ts +2 -0
- package/dist/components/atoms/RadioButton/IRadioButton.d.ts +16 -0
- package/dist/components/atoms/RadioButton/index.d.ts +1 -0
- package/dist/components/atoms/Switch/ISwitch.d.ts +7 -0
- package/dist/components/atoms/Switch/index.d.ts +1 -0
- package/dist/components/atoms/Text/IText.d.ts +6 -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/index.d.ts +2 -0
- package/dist/components/atoms/Tracker/ITracker.d.ts +8 -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 +17 -0
- package/dist/components/molecules/Card/Select/index.d.ts +1 -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/IEmptyState.d.ts +7 -0
- package/dist/components/molecules/EmptyState/index.d.ts +1 -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 +7 -0
- package/dist/components/molecules/InlineError/index.d.ts +1 -0
- package/dist/components/molecules/Modal/IModal.d.ts +12 -0
- package/dist/components/molecules/Modal/index.d.ts +1 -0
- package/dist/components/molecules/Selectable/AsyncSelect/IAsyncSelect.d.ts +4 -0
- package/dist/components/molecules/Selectable/AsyncSelect/index.d.ts +1 -0
- package/dist/components/molecules/Selectable/Select/ISelect.d.ts +18 -0
- package/dist/components/molecules/Selectable/Select/index.d.ts +2 -0
- package/dist/components/molecules/Selectable/SelectButton/ISelectButton.d.ts +16 -0
- package/dist/components/molecules/Selectable/SelectButton/index.d.ts +1 -0
- package/dist/components/molecules/Selectable/SelectCountry/index.d.ts +1 -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/index.d.ts +1 -0
- package/dist/components/molecules/Tab/ITab.d.ts +13 -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/index.d.ts +1 -0
- package/dist/components/organisms/Navigation/INavigation.d.ts +8 -0
- package/dist/components/organisms/Navigation/index.d.ts +1 -0
- package/dist/components/templates/Main/index.d.ts +1 -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 +5 -0
- package/dist/types/Tokens.d.ts +26 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/ui-react.mjs +9861 -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
package/dist/tokens.css
CHANGED
|
@@ -1,47 +1,51 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 22 Nov 2022 13:34:50 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
7
|
-
--
|
|
8
|
-
--
|
|
9
|
-
--box-shadow-base: 0px 1px 3px rgba(63, 63, 68, 0.15), 0px 0px 0px 1px rgba(63, 63, 68, 0.05);
|
|
10
|
-
--box-shadow-popup: 0px 0px 1px rgba(0, 0, 0, 0.2), 0px 3px 50px rgba(0, 0, 0, 0.2);
|
|
11
|
-
--box-shadow-popover: 0px 0px 2px rgba(0, 0, 0, 0.2), 0px 2px 10px rgba(0, 0, 0, 0.1);
|
|
12
|
-
--box-shadow-card: 0px 2px 1px rgba(0, 0, 0, 0.05), 0px 0px 1px rgba(0, 0, 0, 0.25);
|
|
13
|
-
--screens-desktop: 1280px;
|
|
14
|
-
--screens-laptop: 1024px;
|
|
15
|
-
--screens-tablet: 640px;
|
|
16
|
-
--font-family-sans: 'Circular Std';
|
|
17
|
-
--border-radius-lg: 20px;
|
|
18
|
-
--border-radius-md: 10px;
|
|
19
|
-
--border-radius-sm: 8px;
|
|
20
|
-
--border-radius-xs: 5px;
|
|
7
|
+
--spacing-1xl: 117px;
|
|
8
|
+
--spacing-xxl: 56px;
|
|
21
9
|
--spacing-xl: 32px;
|
|
22
|
-
--spacing-xxl: 40px;
|
|
23
10
|
--spacing-lg: 24px;
|
|
24
|
-
--spacing-md:
|
|
25
|
-
--spacing-sm:
|
|
26
|
-
--spacing-xs:
|
|
11
|
+
--spacing-md: 18px;
|
|
12
|
+
--spacing-sm: 16px;
|
|
13
|
+
--spacing-xs: 8px;
|
|
14
|
+
--spacing-xxs: 0px;
|
|
15
|
+
--box-shadow-pressed: 0px 6px 8px 0px #3434341a;
|
|
16
|
+
--box-shadow-popup: 0px 0px 1px rgba(0, 0, 0, 0.2),
|
|
17
|
+
0px 3px 50px rgba(0, 0, 0, 0.2);
|
|
18
|
+
--box-shadow-popover: 0px 0px 2px rgba(0, 0, 0, 0.2),
|
|
19
|
+
0px 2px 10px rgba(0, 0, 0, 0.1);
|
|
20
|
+
--box-shadow-card: 0px 2px 1px rgba(0, 0, 0, 0.05),
|
|
21
|
+
0px 0px 1px rgba(0, 0, 0, 0.25);
|
|
22
|
+
--font-family-sans: 'Circular Std';
|
|
23
|
+
--border-radius-md: 20px;
|
|
24
|
+
--border-radius-sm: 10px;
|
|
25
|
+
--border-radius-xs: 8px;
|
|
27
26
|
--font-weight-bold: 700;
|
|
28
27
|
--font-weight-medium: 500;
|
|
29
28
|
--font-weight-book: 450;
|
|
30
|
-
--line-height-
|
|
31
|
-
--line-height-
|
|
32
|
-
--line-height-lg: 32;
|
|
29
|
+
--line-height-xl: 44px;
|
|
30
|
+
--line-height-lg: 32px;
|
|
33
31
|
--line-height-md: 28px;
|
|
34
32
|
--line-height-sm: 24px;
|
|
35
33
|
--line-height-xs: 20px;
|
|
36
34
|
--line-height-xxs: 16px;
|
|
37
|
-
--font-size-
|
|
38
|
-
--font-size-
|
|
39
|
-
--font-size-
|
|
40
|
-
--font-size-
|
|
41
|
-
--font-size-
|
|
42
|
-
--font-size-
|
|
43
|
-
--
|
|
44
|
-
--
|
|
35
|
+
--font-size-xl: 40px;
|
|
36
|
+
--font-size-lg: 32px;
|
|
37
|
+
--font-size-md: 28px;
|
|
38
|
+
--font-size-sm: 24px;
|
|
39
|
+
--font-size-xs: 16px;
|
|
40
|
+
--font-size-xxs: 14px;
|
|
41
|
+
--colors-special-four-back: rgba(156, 255, 147, 0.25);
|
|
42
|
+
--colors-special-four: #72d69a;
|
|
43
|
+
--colors-special-three-back: rgba(179, 215, 255, 0.25);
|
|
44
|
+
--colors-special-three: #3eadfe;
|
|
45
|
+
--colors-special-two-back: rgba(240, 166, 98, 0.25);
|
|
46
|
+
--colors-special-two: #f0a662;
|
|
47
|
+
--colors-special-one-back: rgba(182, 147, 255, 0.25);
|
|
48
|
+
--colors-special-one: #bc72d6;
|
|
45
49
|
--colors-base-success: #16ab49ff;
|
|
46
50
|
--colors-base-warning: #ffa826ff;
|
|
47
51
|
--colors-base-critical: #f56270ff;
|
|
@@ -60,36 +64,37 @@
|
|
|
60
64
|
--colors-radial-30: #f28c1bff;
|
|
61
65
|
--colors-radial-20: #e15b24ff;
|
|
62
66
|
--colors-radial-10: #b21a1bff;
|
|
67
|
+
--colors-background-modal: rgba(66, 72, 78, 0.25);
|
|
63
68
|
--colors-background-selected: #edeeefff;
|
|
64
|
-
--colors-background-
|
|
69
|
+
--colors-background-active: #edeeefff;
|
|
65
70
|
--colors-background-hovered: #f1f2f3ff;
|
|
66
71
|
--colors-background-default: #f6f6f7ff;
|
|
67
|
-
--colors-surface-neutral-disabled: #
|
|
68
|
-
--colors-surface-neutral-
|
|
69
|
-
--colors-surface-neutral-hovered: #
|
|
70
|
-
--colors-surface-neutral-subdued: #
|
|
71
|
-
--colors-surface-neutral-default: #
|
|
72
|
+
--colors-surface-neutral-disabled: #f6f6f6;
|
|
73
|
+
--colors-surface-neutral-active: #bdbdbd;
|
|
74
|
+
--colors-surface-neutral-hovered: #cecece;
|
|
75
|
+
--colors-surface-neutral-subdued: #e8e8e8;
|
|
76
|
+
--colors-surface-neutral-default: #dddddd;
|
|
72
77
|
--colors-surface-critical-disabled: #fde7eaff;
|
|
73
|
-
--colors-surface-critical-
|
|
78
|
+
--colors-surface-critical-active: #e49b9bff;
|
|
74
79
|
--colors-surface-critical-hovered: #ebb3b3ff;
|
|
75
|
-
--colors-surface-critical-subdued: #
|
|
76
|
-
--colors-surface-critical-default: #
|
|
77
|
-
--colors-surface-success-
|
|
80
|
+
--colors-surface-critical-subdued: #fff0ec;
|
|
81
|
+
--colors-surface-critical-default: #ffebe6;
|
|
82
|
+
--colors-surface-success-active: #ade2bfff;
|
|
78
83
|
--colors-surface-success-hovered: #c5ead1ff;
|
|
79
84
|
--colors-surface-success-subdued: #d0eedbff;
|
|
80
|
-
--colors-surface-success-default: #
|
|
81
|
-
--colors-surface-warning-
|
|
85
|
+
--colors-surface-success-default: #e3fcef;
|
|
86
|
+
--colors-surface-warning-active: #ffd393ff;
|
|
82
87
|
--colors-surface-warning-hovered: #ffe9c9ff;
|
|
83
88
|
--colors-surface-warning-subdued: #ffeed4ff;
|
|
84
|
-
--colors-surface-warning-default: #
|
|
89
|
+
--colors-surface-warning-default: #fffae6;
|
|
85
90
|
--colors-surface-action-disabled: #fafcffff;
|
|
86
|
-
--colors-surface-action-
|
|
91
|
+
--colors-surface-action-active: #d1deecff;
|
|
87
92
|
--colors-surface-action-hovered: #f2f8ffff;
|
|
88
93
|
--colors-surface-action-subdued: #e5f2ffff;
|
|
89
94
|
--colors-surface-action-default: #b3d7ffff;
|
|
90
|
-
--colors-surface-disabled: #
|
|
91
|
-
--colors-surface-
|
|
92
|
-
--colors-surface-
|
|
95
|
+
--colors-surface-disabled: #f6f6f6;
|
|
96
|
+
--colors-surface-pressed: #edeeefff;
|
|
97
|
+
--colors-surface-active: #f1f2f3ff;
|
|
93
98
|
--colors-surface-hovered: #f6f6f7ff;
|
|
94
99
|
--colors-surface-subdued: #fafbfbff;
|
|
95
100
|
--colors-surface-default: #ffffffff;
|
|
@@ -99,42 +104,46 @@
|
|
|
99
104
|
--colors-icon-warning: #c18f00ff;
|
|
100
105
|
--colors-icon-critical: #bd2a2aff;
|
|
101
106
|
--colors-icon-disabled: #d6d6d6ff;
|
|
102
|
-
--colors-icon-
|
|
107
|
+
--colors-icon-active: #636b74ff;
|
|
103
108
|
--colors-icon-hovered: #42484eff;
|
|
104
109
|
--colors-icon-subdued: #a1a1a1ff;
|
|
105
110
|
--colors-icon-default: #61666bff;
|
|
106
111
|
--colors-interactive-critical-disabled: #ce9ea2ff;
|
|
107
|
-
--colors-interactive-critical-
|
|
112
|
+
--colors-interactive-critical-active: #6c0f00ff;
|
|
108
113
|
--colors-interactive-critical-hovered: #c12929ff;
|
|
109
114
|
--colors-interactive-critical-default: #d82f2fff;
|
|
110
115
|
--colors-interactive-disabled: #d6dbe0ff;
|
|
111
|
-
--colors-interactive-
|
|
116
|
+
--colors-interactive-active: #004289ff;
|
|
112
117
|
--colors-interactive-hovered: #0068daff;
|
|
113
|
-
--colors-interactive-default: #
|
|
114
|
-
--colors-border-shadow-subdued: #
|
|
118
|
+
--colors-interactive-default: #007aff;
|
|
119
|
+
--colors-border-shadow-subdued: #ebebeb;
|
|
115
120
|
--colors-border-critical-disabled: #ffc9c6ff;
|
|
116
121
|
--colors-border-critical-subdued: #e05563ff;
|
|
117
122
|
--colors-border-critical-default: #f56270ff;
|
|
118
123
|
--colors-border-success-subdued: #43da76ff;
|
|
119
|
-
--colors-border-success-default: #
|
|
120
|
-
--colors-border-disabled: #
|
|
121
|
-
--colors-border-
|
|
122
|
-
--colors-border-hovered: #
|
|
123
|
-
--colors-border-subdued: #
|
|
124
|
-
--colors-border-default: #
|
|
124
|
+
--colors-border-success-default: #16ab49;
|
|
125
|
+
--colors-border-disabled: #dcdcdc;
|
|
126
|
+
--colors-border-active: #8f8f8f;
|
|
127
|
+
--colors-border-hovered: #a1a1a1;
|
|
128
|
+
--colors-border-subdued: #c9c9c9;
|
|
129
|
+
--colors-border-default: #b5b5b5;
|
|
130
|
+
--colors-action-opacity-disabled: rgba(109, 113, 117, 0.2);
|
|
131
|
+
--colors-action-opacity-active: rgba(109, 113, 117, 0.6);
|
|
132
|
+
--colors-action-opacity-hovered: rgba(109, 113, 117, 0.4);
|
|
133
|
+
--colors-action-opacity-default: rgba(109, 113, 117, 0.3);
|
|
125
134
|
--colors-action-critical-disabled: #e4dfe0ff;
|
|
126
|
-
--colors-action-critical-
|
|
127
|
-
--colors-action-critical-
|
|
135
|
+
--colors-action-critical-pressed: #6c0f00ff;
|
|
136
|
+
--colors-action-critical-active: #9d2020ff;
|
|
128
137
|
--colors-action-critical-hovered: #c12929ff;
|
|
129
138
|
--colors-action-critical-default: #d82f2fff;
|
|
130
|
-
--colors-action-secondary-disabled: #
|
|
131
|
-
--colors-action-secondary-
|
|
132
|
-
--colors-action-secondary-
|
|
133
|
-
--colors-action-secondary-hovered: #
|
|
134
|
-
--colors-action-secondary-default: #
|
|
139
|
+
--colors-action-secondary-disabled: #e7e7e7;
|
|
140
|
+
--colors-action-secondary-pressed: #6d7175ff;
|
|
141
|
+
--colors-action-secondary-active: #cdcdcd;
|
|
142
|
+
--colors-action-secondary-hovered: #e0e1e2;
|
|
143
|
+
--colors-action-secondary-default: #f1f2f3;
|
|
135
144
|
--colors-action-primary-disabled: #d6dbe0ff;
|
|
136
|
-
--colors-action-primary-
|
|
137
|
-
--colors-action-primary-
|
|
145
|
+
--colors-action-primary-pressed: #072a52ff;
|
|
146
|
+
--colors-action-primary-active: #0c4d95ff;
|
|
138
147
|
--colors-action-primary-hovered: #126dd0ff;
|
|
139
148
|
--colors-action-primary-default: #007affff;
|
|
140
149
|
--colors-letter-on: #ffffffff;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
interface IWeight {
|
|
3
|
+
weight?: 'bold' | 'book' | 'medium';
|
|
4
|
+
}
|
|
5
|
+
interface ILineHeightHeading {
|
|
6
|
+
lineHeight?: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
7
|
+
}
|
|
8
|
+
interface ILineHeightText {
|
|
9
|
+
lineHeight?: Extract<ILineHeightHeading, 'xxs' | 'xs'>;
|
|
10
|
+
}
|
|
11
|
+
interface IColorText {
|
|
12
|
+
color?: 'on' | 'success' | 'critical' | 'warning' | 'disabled' | 'subdued' | 'default' | 'primary';
|
|
13
|
+
}
|
|
14
|
+
interface IFontSizeHeading {
|
|
15
|
+
size?: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
16
|
+
}
|
|
17
|
+
interface IFontSizeText {
|
|
18
|
+
size?: Extract<IFontSizeHeading, 'xxs' | 'xs'>;
|
|
19
|
+
}
|
|
20
|
+
interface IClassName {
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
interface IChildren {
|
|
24
|
+
children?: ReactNode;
|
|
25
|
+
}
|
|
26
|
+
export type { IWeight, ILineHeightHeading, ILineHeightText, IColorText, IFontSizeHeading, IFontSizeText, IClassName, IChildren };
|