@xqmsg/ui-core 0.23.1 → 0.23.2
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/CHANGELOG.md +468 -0
- package/LICENSE +20 -20
- package/README.md +40 -40
- package/dist/{89793640b494d7ea.svg → 78c9d6fd7766410f.svg} +9 -9
- package/dist/components/input/index.d.ts +2 -2
- package/dist/ui-core.cjs.development.js.map +1 -1
- package/dist/ui-core.cjs.production.min.js.map +1 -1
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +118 -118
- package/src/components/banner/Banner.stories.tsx +100 -100
- package/src/components/banner/index.tsx +73 -73
- package/src/components/breadcrumbs/Breadcrumbs.stories.tsx +66 -66
- package/src/components/breadcrumbs/components/icon/index.tsx +38 -38
- package/src/components/breadcrumbs/components/label/index.tsx +20 -20
- package/src/components/breadcrumbs/index.tsx +48 -48
- package/src/components/button/Button.stories.tsx +140 -140
- package/src/components/button/google/GoogleButton.stories.tsx +23 -23
- package/src/components/button/google/index.tsx +29 -29
- package/src/components/button/index.tsx +51 -51
- package/src/components/button/microsoft/MicrosoftButton.stories.tsx +25 -25
- package/src/components/button/microsoft/index.tsx +29 -29
- package/src/components/button/spinner/SpinnerButton.stories.tsx +60 -60
- package/src/components/button/spinner/index.tsx +36 -36
- package/src/components/card/Card.stories.tsx +56 -56
- package/src/components/card/index.tsx +78 -78
- package/src/components/form/Form.stories.tsx +62 -62
- package/src/components/form/FormTypes.ts +20 -20
- package/src/components/form/hooks/useFormHandler.tsx +74 -74
- package/src/components/form/index.tsx +25 -25
- package/src/components/form/section/FormSection.stories.tsx +109 -109
- package/src/components/form/section/index.tsx +87 -87
- package/src/components/form/utils/formErrors.ts +34 -34
- package/src/components/icons/checkmark/checkmark.svg +3 -3
- package/src/components/icons/checkmark/index.tsx +13 -13
- package/src/components/icons/chevron/down/chevron-down.svg +3 -3
- package/src/components/icons/chevron/down/index.tsx +14 -14
- package/src/components/icons/chevron/right/chevron-right.svg +3 -3
- package/src/components/icons/chevron/right/index.tsx +13 -13
- package/src/components/icons/clock/clock.svg +3 -3
- package/src/components/icons/clock/index.tsx +13 -13
- package/src/components/icons/close/close.svg +3 -3
- package/src/components/icons/close/index.tsx +21 -21
- package/src/components/icons/dropdown/dropdown.svg +3 -3
- package/src/components/icons/dropdown/index.tsx +16 -16
- package/src/components/icons/error/error.svg +3 -3
- package/src/components/icons/error/index.tsx +13 -13
- package/src/components/icons/file/fill/file-fill.svg +4 -4
- package/src/components/icons/file/fill/index.tsx +13 -13
- package/src/components/icons/file/outline/file-outline.svg +3 -3
- package/src/components/icons/file/outline/index.tsx +13 -13
- package/src/components/icons/folder/add/fill/folder-add-fill.svg +3 -3
- package/src/components/icons/folder/add/fill/index.tsx +13 -13
- package/src/components/icons/folder/add/outline/folder-add-outline.svg +3 -3
- package/src/components/icons/folder/add/outline/index.tsx +15 -15
- package/src/components/icons/folder/fill/folder-fill-gradient.svg +33 -33
- package/src/components/icons/folder/fill/folder-fill.svg +4 -4
- package/src/components/icons/folder/fill/index.tsx +21 -21
- package/src/components/icons/folder/outline/folder-outline.svg +3 -3
- package/src/components/icons/folder/outline/index.tsx +13 -13
- package/src/components/icons/gear/GearIcon.tsx +36 -36
- package/src/components/icons/google/drive/index.tsx +13 -13
- package/src/components/icons/google/google.svg +13 -13
- package/src/components/icons/google/index.tsx +13 -13
- package/src/components/icons/group/group.svg +3 -3
- package/src/components/icons/group/index.tsx +13 -13
- package/src/components/icons/home/home.svg +3 -3
- package/src/components/icons/home/index.tsx +13 -13
- package/src/components/icons/image/image.svg +3 -3
- package/src/components/icons/image/index.tsx +13 -13
- package/src/components/icons/index.tsx +101 -101
- package/src/components/icons/link/index.tsx +13 -13
- package/src/components/icons/link/link.svg +4 -4
- package/src/components/icons/menu/index.tsx +13 -13
- package/src/components/icons/menu/menu.svg +3 -3
- package/src/components/icons/microsoft/index.tsx +13 -13
- package/src/components/icons/microsoft/microsoft.svg +9 -9
- package/src/components/icons/microsoft/onedrive/index.tsx +16 -16
- package/src/components/icons/neutral/index.tsx +14 -14
- package/src/components/icons/neutral/neutral.svg +3 -3
- package/src/components/icons/page/index.tsx +13 -13
- package/src/components/icons/page/page.svg +3 -3
- package/src/components/icons/positive/index.tsx +13 -13
- package/src/components/icons/positive/positive.svg +3 -3
- package/src/components/icons/question/index.tsx +13 -13
- package/src/components/icons/question/question.svg +3 -3
- package/src/components/icons/search/index.tsx +13 -13
- package/src/components/icons/search/search.svg +3 -3
- package/src/components/icons/services/index.tsx +13 -13
- package/src/components/icons/services/services.svg +3 -3
- package/src/components/icons/settings/index.tsx +14 -14
- package/src/components/icons/settings/settings.svg +6 -6
- package/src/components/icons/table/fill/index.tsx +13 -13
- package/src/components/icons/table/fill/table-fill.svg +3 -3
- package/src/components/icons/table/outline/index.tsx +13 -13
- package/src/components/icons/table/outline/table-outline.svg +3 -3
- package/src/components/icons/task/index.tsx +10 -10
- package/src/components/icons/task/task.svg +11 -11
- package/src/components/icons/trash/index.tsx +13 -13
- package/src/components/icons/trash/trash.svg +3 -3
- package/src/components/icons/vault/index.tsx +14 -14
- package/src/components/icons/video/index.tsx +13 -13
- package/src/components/icons/video/video.svg +3 -3
- package/src/components/icons/warning/index.tsx +13 -13
- package/src/components/icons/warning/warning.svg +3 -3
- package/src/components/icons/workspace/index.tsx +14 -14
- package/src/components/input/Input.stories.tsx +287 -287
- package/src/components/input/InputTypes.ts +77 -77
- package/src/components/input/StackedCheckbox/StackedCheckbox.tsx +44 -44
- package/src/components/input/StackedInput/StackedInput.tsx +60 -60
- package/src/components/input/StackedMultiSelect/index.tsx +349 -349
- package/src/components/input/StackedPilledInput/index.tsx +386 -386
- package/src/components/input/StackedRadio/StackedRadioGroup.tsx +38 -38
- package/src/components/input/StackedSelect/index.tsx +232 -232
- package/src/components/input/StackedSwitch/index.tsx +33 -33
- package/src/components/input/StackedTextarea/StackedTextarea.tsx +55 -55
- package/src/components/input/components/dropdown/index.tsx +111 -111
- package/src/components/input/components/label/index.tsx +35 -35
- package/src/components/input/components/token/Token.stories.tsx +25 -25
- package/src/components/input/components/token/index.tsx +45 -45
- package/src/components/input/index.tsx +298 -298
- package/src/components/layout/BorderedBox/index.tsx +30 -30
- package/src/components/layout/Layout.stories.tsx +40 -40
- package/src/components/layout/index.tsx +100 -100
- package/src/components/link/Link.stories.tsx +23 -23
- package/src/components/link/index.tsx +34 -34
- package/src/components/loading/LoadingIndicator.stories.tsx +45 -45
- package/src/components/loading/index.tsx +45 -45
- package/src/components/modal/Modal.stories.tsx +36 -36
- package/src/components/modal/components/action/index.tsx +37 -37
- package/src/components/modal/index.tsx +41 -41
- package/src/components/navigation/NavigationMenu.stories.tsx +85 -85
- package/src/components/navigation/components/header/index.tsx +27 -27
- package/src/components/navigation/components/items/index.tsx +76 -76
- package/src/components/navigation/index.tsx +87 -87
- package/src/components/select/index.tsx +140 -140
- package/src/components/table/Table.stories.tsx +63 -63
- package/src/components/table/TableTypes.ts +15 -15
- package/src/components/table/components/loading/index.tsx +45 -45
- package/src/components/table/components/text/index.tsx +23 -23
- package/src/components/table/empty/index.tsx +47 -47
- package/src/components/table/index.tsx +84 -84
- package/src/components/table/utils/generateTableColumns.ts +9 -9
- package/src/components/tabs/TabsWrapper.stories.tsx +85 -85
- package/src/components/tabs/index.tsx +39 -39
- package/src/components/text/Text.stories.tsx +59 -59
- package/src/components/text/index.tsx +16 -16
- package/src/components/toast/Toast.stories.tsx +52 -52
- package/src/components/toast/index.tsx +78 -78
- package/src/components/toolbar/Toolbar.stories.tsx +59 -59
- package/src/components/toolbar/components/actions/add/index.tsx +18 -18
- package/src/components/toolbar/components/actions/search/index.tsx +38 -38
- package/src/components/toolbar/components/actions/sort/index.tsx +49 -49
- package/src/components/toolbar/components/breadcrumbs/index.tsx +63 -63
- package/src/components/toolbar/components/breadcrumbs/item/index.tsx +72 -72
- package/src/components/toolbar/components/dropdown/index.tsx +107 -107
- package/src/components/toolbar/components/navigation/components/button/left/index.tsx +28 -28
- package/src/components/toolbar/components/navigation/components/button/left/left-arrow.svg +3 -3
- package/src/components/toolbar/components/navigation/components/button/right/index.tsx +27 -27
- package/src/components/toolbar/components/navigation/components/button/right/right-arrow.svg +3 -3
- package/src/components/toolbar/components/navigation/index.tsx +36 -36
- package/src/components/toolbar/index.tsx +55 -55
- package/src/hooks/useDeepEffect.tsx +22 -22
- package/src/hooks/useDidMountEffect.tsx +13 -13
- package/src/hooks/useOnOutsideClick.tsx +31 -31
- package/src/hooks/useToast.tsx +16 -16
- package/src/index.tsx +78 -78
- package/src/theme/components/alert.ts +60 -60
- package/src/theme/components/badge.ts +59 -59
- package/src/theme/components/button.ts +163 -163
- package/src/theme/components/checkbox.ts +28 -28
- package/src/theme/components/code.ts +16 -16
- package/src/theme/components/form-error.ts +31 -31
- package/src/theme/components/form-label.ts +17 -17
- package/src/theme/components/form.ts +29 -29
- package/src/theme/components/input.ts +65 -65
- package/src/theme/components/link.ts +118 -118
- package/src/theme/components/modal.ts +45 -45
- package/src/theme/components/select.ts +36 -36
- package/src/theme/components/switch.ts +89 -89
- package/src/theme/components/table.ts +42 -42
- package/src/theme/components/tabs.ts +255 -255
- package/src/theme/components/text.ts +93 -93
- package/src/theme/components/textarea.ts +42 -42
- package/src/theme/customXQChakraTheme.ts +54 -54
- package/src/theme/foundations/breakpoints.ts +18 -18
- package/src/theme/foundations/colors.ts +165 -165
- package/src/theme/foundations/shadows.ts +23 -23
- package/src/theme/foundations/typography.ts +62 -62
- package/src/theme/provider/index.tsx +21 -21
- package/src/theme/styles.ts +19 -19
|
@@ -1,165 +1,165 @@
|
|
|
1
|
-
export interface ColorHues {
|
|
2
|
-
50: string;
|
|
3
|
-
100: string;
|
|
4
|
-
200: string;
|
|
5
|
-
300: string;
|
|
6
|
-
400: string;
|
|
7
|
-
500: string;
|
|
8
|
-
600: string;
|
|
9
|
-
700: string;
|
|
10
|
-
800: string;
|
|
11
|
-
900: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const blue: ColorHues = {
|
|
15
|
-
50: 'hsl(209, 100%, 95%)',
|
|
16
|
-
100: 'hsl(209, 100%, 90%)',
|
|
17
|
-
200: 'hsl(209, 100%, 80%)',
|
|
18
|
-
300: 'hsl(209, 100%, 70%)',
|
|
19
|
-
400: 'hsl(209, 100%, 60%)',
|
|
20
|
-
500: 'hsl(209, 100%, 50%)',
|
|
21
|
-
600: 'hsl(209, 100%, 40%)',
|
|
22
|
-
700: 'hsl(209, 100%, 30%)',
|
|
23
|
-
800: 'hsl(209, 100%, 20%)',
|
|
24
|
-
900: 'hsl(209, 100%, 10%)',
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const red: ColorHues = {
|
|
28
|
-
50: 'hsl(0, 100%, 98%)',
|
|
29
|
-
100: 'hsl(0, 95%, 92%)',
|
|
30
|
-
200: 'hsl(0, 97%, 85%)',
|
|
31
|
-
300: 'hsl(0, 95%, 75%)',
|
|
32
|
-
400: 'hsl(0, 88%, 68%)',
|
|
33
|
-
500: 'hsl(0, 76%, 57%)',
|
|
34
|
-
600: 'hsl(0, 61%, 48%)',
|
|
35
|
-
700: 'hsl(0, 56%, 39%)',
|
|
36
|
-
800: 'hsl(0, 54%, 33%)',
|
|
37
|
-
900: 'hsl(357, 62%, 24%)',
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
const orange: ColorHues = {
|
|
41
|
-
50: 'hsl(40, 100%, 97%)',
|
|
42
|
-
100: 'hsl(39, 96%, 89%)',
|
|
43
|
-
200: 'hsl(38, 93%, 77%)',
|
|
44
|
-
300: 'hsl(33, 90%, 65%)',
|
|
45
|
-
400: 'hsl(27, 84%, 57%)',
|
|
46
|
-
500: 'hsl(24, 75%, 50%)',
|
|
47
|
-
600: 'hsl(20, 71%, 44%)',
|
|
48
|
-
700: 'hsl(16, 65%, 37%)',
|
|
49
|
-
800: 'hsl(14, 61%, 30%)',
|
|
50
|
-
900: 'hsl(14, 60%, 25%)',
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
const green: ColorHues = {
|
|
54
|
-
50: 'hsl(140, 60%, 96%)',
|
|
55
|
-
100: 'hsl(141, 65%, 92%)',
|
|
56
|
-
200: 'hsl(141, 63%, 88%)',
|
|
57
|
-
300: 'hsl(141, 64%, 80%)',
|
|
58
|
-
400: 'hsl(140, 64%, 73%)',
|
|
59
|
-
500: 'hsl(140, 64%, 61%)',
|
|
60
|
-
600: 'hsl(140, 42%, 48%)',
|
|
61
|
-
700: 'hsl(140, 42%, 36%)',
|
|
62
|
-
800: 'hsl(141, 42%, 24%)',
|
|
63
|
-
900: 'hsl(138, 42%, 6%)',
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
const label = {
|
|
67
|
-
primary: { light: '#000000', dark: '#FFFFFF' },
|
|
68
|
-
secondary: { light: '#3C3C4399' },
|
|
69
|
-
tertiary: { light: '', dark: '#EBEBF52E' },
|
|
70
|
-
error: '#FF0000',
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
const border = {
|
|
74
|
-
focus: '#3A6CD980',
|
|
75
|
-
default: '#D9D9D9',
|
|
76
|
-
light: '#99999919A',
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
const blur = {
|
|
80
|
-
quaternary: { light: '', dark: '#2A2A2A73' },
|
|
81
|
-
tertiary: { light: '', dark: '#111111A6' },
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
const fill = {
|
|
85
|
-
light: {
|
|
86
|
-
primary: '#74748033',
|
|
87
|
-
secondary: '#74748029',
|
|
88
|
-
tertiary: '#7474801F',
|
|
89
|
-
quaternary: '#7474800D',
|
|
90
|
-
},
|
|
91
|
-
success: '#d8f1b8',
|
|
92
|
-
error: '#ffbdb9',
|
|
93
|
-
warning: '#ffefb4',
|
|
94
|
-
action: '#0082ff',
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
const semantic = {
|
|
98
|
-
action: '#488ef7',
|
|
99
|
-
success: '#5fcf65',
|
|
100
|
-
warning: '#f8c352',
|
|
101
|
-
error: '#f96057',
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
export const colors = {
|
|
105
|
-
label,
|
|
106
|
-
blur,
|
|
107
|
-
border,
|
|
108
|
-
fill,
|
|
109
|
-
semantic,
|
|
110
|
-
transparent: 'transparent',
|
|
111
|
-
current: 'currentColor',
|
|
112
|
-
black: '#000000',
|
|
113
|
-
white: '#FFFFFF',
|
|
114
|
-
lightBlue: '#29abe2',
|
|
115
|
-
coolGray: '#F6F7FB',
|
|
116
|
-
darkBlue: '#292f4c',
|
|
117
|
-
backdrop: '#fbfcff',
|
|
118
|
-
whiteAlpha: {
|
|
119
|
-
50: 'rgba(255, 255, 255, 0.04)',
|
|
120
|
-
100: 'rgba(255, 255, 255, 0.06)',
|
|
121
|
-
200: 'rgba(255, 255, 255, 0.08)',
|
|
122
|
-
300: 'rgba(255, 255, 255, 0.16)',
|
|
123
|
-
400: 'rgba(255, 255, 255, 0.24)',
|
|
124
|
-
500: 'rgba(255, 255, 255, 0.36)',
|
|
125
|
-
600: 'rgba(255, 255, 255, 0.48)',
|
|
126
|
-
700: 'rgba(255, 255, 255, 0.64)',
|
|
127
|
-
800: 'rgba(255, 255, 255, 0.80)',
|
|
128
|
-
900: 'rgba(255, 255, 255, 0.92)',
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
blackAlpha: {
|
|
132
|
-
50: 'rgba(0, 0, 0, 0.04)',
|
|
133
|
-
100: 'rgba(0, 0, 0, 0.06)',
|
|
134
|
-
200: 'rgba(0, 0, 0, 0.08)',
|
|
135
|
-
300: 'rgba(0, 0, 0, 0.16)',
|
|
136
|
-
400: 'rgba(0, 0, 0, 0.24)',
|
|
137
|
-
500: 'rgba(0, 0, 0, 0.36)',
|
|
138
|
-
600: 'rgba(0, 0, 0, 0.48)',
|
|
139
|
-
700: 'rgba(0, 0, 0, 0.64)',
|
|
140
|
-
800: 'rgba(0, 0, 0, 0.80)',
|
|
141
|
-
900: 'rgba(0, 0, 0, 0.92)',
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
gray: {
|
|
145
|
-
50: 'hsl(240, 3%, 94%)',
|
|
146
|
-
100: 'hsl(210, 3%, 87%)',
|
|
147
|
-
200: 'hsl(220, 4%, 69%)', // #ADAFB3
|
|
148
|
-
300: 'hsl(225, 4%, 56%)',
|
|
149
|
-
400: 'hsl(222, 4%, 44%)',
|
|
150
|
-
500: 'hsl(224, 6%, 38%)',
|
|
151
|
-
600: 'hsl(227, 6%, 30%)',
|
|
152
|
-
700: 'hsl(230, 5%, 23%)', // #38393E
|
|
153
|
-
800: 'hsl(216, 6%, 15%)',
|
|
154
|
-
900: 'hsl(240, 5%, 4%)',
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
red,
|
|
158
|
-
orange,
|
|
159
|
-
green,
|
|
160
|
-
blue,
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
export type Colors = typeof colors;
|
|
164
|
-
|
|
165
|
-
export default colors as Colors;
|
|
1
|
+
export interface ColorHues {
|
|
2
|
+
50: string;
|
|
3
|
+
100: string;
|
|
4
|
+
200: string;
|
|
5
|
+
300: string;
|
|
6
|
+
400: string;
|
|
7
|
+
500: string;
|
|
8
|
+
600: string;
|
|
9
|
+
700: string;
|
|
10
|
+
800: string;
|
|
11
|
+
900: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const blue: ColorHues = {
|
|
15
|
+
50: 'hsl(209, 100%, 95%)',
|
|
16
|
+
100: 'hsl(209, 100%, 90%)',
|
|
17
|
+
200: 'hsl(209, 100%, 80%)',
|
|
18
|
+
300: 'hsl(209, 100%, 70%)',
|
|
19
|
+
400: 'hsl(209, 100%, 60%)',
|
|
20
|
+
500: 'hsl(209, 100%, 50%)',
|
|
21
|
+
600: 'hsl(209, 100%, 40%)',
|
|
22
|
+
700: 'hsl(209, 100%, 30%)',
|
|
23
|
+
800: 'hsl(209, 100%, 20%)',
|
|
24
|
+
900: 'hsl(209, 100%, 10%)',
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const red: ColorHues = {
|
|
28
|
+
50: 'hsl(0, 100%, 98%)',
|
|
29
|
+
100: 'hsl(0, 95%, 92%)',
|
|
30
|
+
200: 'hsl(0, 97%, 85%)',
|
|
31
|
+
300: 'hsl(0, 95%, 75%)',
|
|
32
|
+
400: 'hsl(0, 88%, 68%)',
|
|
33
|
+
500: 'hsl(0, 76%, 57%)',
|
|
34
|
+
600: 'hsl(0, 61%, 48%)',
|
|
35
|
+
700: 'hsl(0, 56%, 39%)',
|
|
36
|
+
800: 'hsl(0, 54%, 33%)',
|
|
37
|
+
900: 'hsl(357, 62%, 24%)',
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const orange: ColorHues = {
|
|
41
|
+
50: 'hsl(40, 100%, 97%)',
|
|
42
|
+
100: 'hsl(39, 96%, 89%)',
|
|
43
|
+
200: 'hsl(38, 93%, 77%)',
|
|
44
|
+
300: 'hsl(33, 90%, 65%)',
|
|
45
|
+
400: 'hsl(27, 84%, 57%)',
|
|
46
|
+
500: 'hsl(24, 75%, 50%)',
|
|
47
|
+
600: 'hsl(20, 71%, 44%)',
|
|
48
|
+
700: 'hsl(16, 65%, 37%)',
|
|
49
|
+
800: 'hsl(14, 61%, 30%)',
|
|
50
|
+
900: 'hsl(14, 60%, 25%)',
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const green: ColorHues = {
|
|
54
|
+
50: 'hsl(140, 60%, 96%)',
|
|
55
|
+
100: 'hsl(141, 65%, 92%)',
|
|
56
|
+
200: 'hsl(141, 63%, 88%)',
|
|
57
|
+
300: 'hsl(141, 64%, 80%)',
|
|
58
|
+
400: 'hsl(140, 64%, 73%)',
|
|
59
|
+
500: 'hsl(140, 64%, 61%)',
|
|
60
|
+
600: 'hsl(140, 42%, 48%)',
|
|
61
|
+
700: 'hsl(140, 42%, 36%)',
|
|
62
|
+
800: 'hsl(141, 42%, 24%)',
|
|
63
|
+
900: 'hsl(138, 42%, 6%)',
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const label = {
|
|
67
|
+
primary: { light: '#000000', dark: '#FFFFFF' },
|
|
68
|
+
secondary: { light: '#3C3C4399' },
|
|
69
|
+
tertiary: { light: '', dark: '#EBEBF52E' },
|
|
70
|
+
error: '#FF0000',
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const border = {
|
|
74
|
+
focus: '#3A6CD980',
|
|
75
|
+
default: '#D9D9D9',
|
|
76
|
+
light: '#99999919A',
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
const blur = {
|
|
80
|
+
quaternary: { light: '', dark: '#2A2A2A73' },
|
|
81
|
+
tertiary: { light: '', dark: '#111111A6' },
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
const fill = {
|
|
85
|
+
light: {
|
|
86
|
+
primary: '#74748033',
|
|
87
|
+
secondary: '#74748029',
|
|
88
|
+
tertiary: '#7474801F',
|
|
89
|
+
quaternary: '#7474800D',
|
|
90
|
+
},
|
|
91
|
+
success: '#d8f1b8',
|
|
92
|
+
error: '#ffbdb9',
|
|
93
|
+
warning: '#ffefb4',
|
|
94
|
+
action: '#0082ff',
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
const semantic = {
|
|
98
|
+
action: '#488ef7',
|
|
99
|
+
success: '#5fcf65',
|
|
100
|
+
warning: '#f8c352',
|
|
101
|
+
error: '#f96057',
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export const colors = {
|
|
105
|
+
label,
|
|
106
|
+
blur,
|
|
107
|
+
border,
|
|
108
|
+
fill,
|
|
109
|
+
semantic,
|
|
110
|
+
transparent: 'transparent',
|
|
111
|
+
current: 'currentColor',
|
|
112
|
+
black: '#000000',
|
|
113
|
+
white: '#FFFFFF',
|
|
114
|
+
lightBlue: '#29abe2',
|
|
115
|
+
coolGray: '#F6F7FB',
|
|
116
|
+
darkBlue: '#292f4c',
|
|
117
|
+
backdrop: '#fbfcff',
|
|
118
|
+
whiteAlpha: {
|
|
119
|
+
50: 'rgba(255, 255, 255, 0.04)',
|
|
120
|
+
100: 'rgba(255, 255, 255, 0.06)',
|
|
121
|
+
200: 'rgba(255, 255, 255, 0.08)',
|
|
122
|
+
300: 'rgba(255, 255, 255, 0.16)',
|
|
123
|
+
400: 'rgba(255, 255, 255, 0.24)',
|
|
124
|
+
500: 'rgba(255, 255, 255, 0.36)',
|
|
125
|
+
600: 'rgba(255, 255, 255, 0.48)',
|
|
126
|
+
700: 'rgba(255, 255, 255, 0.64)',
|
|
127
|
+
800: 'rgba(255, 255, 255, 0.80)',
|
|
128
|
+
900: 'rgba(255, 255, 255, 0.92)',
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
blackAlpha: {
|
|
132
|
+
50: 'rgba(0, 0, 0, 0.04)',
|
|
133
|
+
100: 'rgba(0, 0, 0, 0.06)',
|
|
134
|
+
200: 'rgba(0, 0, 0, 0.08)',
|
|
135
|
+
300: 'rgba(0, 0, 0, 0.16)',
|
|
136
|
+
400: 'rgba(0, 0, 0, 0.24)',
|
|
137
|
+
500: 'rgba(0, 0, 0, 0.36)',
|
|
138
|
+
600: 'rgba(0, 0, 0, 0.48)',
|
|
139
|
+
700: 'rgba(0, 0, 0, 0.64)',
|
|
140
|
+
800: 'rgba(0, 0, 0, 0.80)',
|
|
141
|
+
900: 'rgba(0, 0, 0, 0.92)',
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
gray: {
|
|
145
|
+
50: 'hsl(240, 3%, 94%)',
|
|
146
|
+
100: 'hsl(210, 3%, 87%)',
|
|
147
|
+
200: 'hsl(220, 4%, 69%)', // #ADAFB3
|
|
148
|
+
300: 'hsl(225, 4%, 56%)',
|
|
149
|
+
400: 'hsl(222, 4%, 44%)',
|
|
150
|
+
500: 'hsl(224, 6%, 38%)',
|
|
151
|
+
600: 'hsl(227, 6%, 30%)',
|
|
152
|
+
700: 'hsl(230, 5%, 23%)', // #38393E
|
|
153
|
+
800: 'hsl(216, 6%, 15%)',
|
|
154
|
+
900: 'hsl(240, 5%, 4%)',
|
|
155
|
+
},
|
|
156
|
+
|
|
157
|
+
red,
|
|
158
|
+
orange,
|
|
159
|
+
green,
|
|
160
|
+
blue,
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
export type Colors = typeof colors;
|
|
164
|
+
|
|
165
|
+
export default colors as Colors;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import colors from './colors';
|
|
2
|
-
|
|
3
|
-
const shadows = {
|
|
4
|
-
xs: '0 0 0 1px rgba(0, 0, 0, 0.05)',
|
|
5
|
-
sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
|
|
6
|
-
base: '0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)',
|
|
7
|
-
md: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',
|
|
8
|
-
lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
|
|
9
|
-
xl:
|
|
10
|
-
'0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
|
|
11
|
-
'2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',
|
|
12
|
-
insetOutline: `inset 0 0 0 2px ${colors.fill.action}`,
|
|
13
|
-
outline: `0 0 0 2px ${colors.fill.action}`,
|
|
14
|
-
outlineDanger600: `0 0 0 2px ${colors.fill.error}`,
|
|
15
|
-
inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
|
|
16
|
-
none: 'none',
|
|
17
|
-
'dark-lg':
|
|
18
|
-
'rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px',
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export type Shadows = typeof shadows;
|
|
22
|
-
|
|
23
|
-
export default shadows;
|
|
1
|
+
import colors from './colors';
|
|
2
|
+
|
|
3
|
+
const shadows = {
|
|
4
|
+
xs: '0 0 0 1px rgba(0, 0, 0, 0.05)',
|
|
5
|
+
sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
|
|
6
|
+
base: '0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)',
|
|
7
|
+
md: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',
|
|
8
|
+
lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
|
|
9
|
+
xl:
|
|
10
|
+
'0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
|
|
11
|
+
'2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',
|
|
12
|
+
insetOutline: `inset 0 0 0 2px ${colors.fill.action}`,
|
|
13
|
+
outline: `0 0 0 2px ${colors.fill.action}`,
|
|
14
|
+
outlineDanger600: `0 0 0 2px ${colors.fill.error}`,
|
|
15
|
+
inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
|
|
16
|
+
none: 'none',
|
|
17
|
+
'dark-lg':
|
|
18
|
+
'rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px',
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type Shadows = typeof shadows;
|
|
22
|
+
|
|
23
|
+
export default shadows;
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
const typography = {
|
|
2
|
-
letterSpacings: {
|
|
3
|
-
tighter: '-0.05em',
|
|
4
|
-
tight: '-0.025em',
|
|
5
|
-
normal: '0',
|
|
6
|
-
wide: '0.025em',
|
|
7
|
-
wider: '0.05em',
|
|
8
|
-
widest: '0.1em',
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
lineHeights: {
|
|
12
|
-
normal: 'normal',
|
|
13
|
-
none: 1,
|
|
14
|
-
shorter: 1.25,
|
|
15
|
-
short: 1.375,
|
|
16
|
-
base: 1.5,
|
|
17
|
-
tall: 1.625,
|
|
18
|
-
taller: '2',
|
|
19
|
-
'3': '.75rem',
|
|
20
|
-
'4': '1rem',
|
|
21
|
-
'5': '1.25rem',
|
|
22
|
-
'6': '1.5rem',
|
|
23
|
-
'7': '1.75rem',
|
|
24
|
-
'8': '2rem',
|
|
25
|
-
'9': '2.25rem',
|
|
26
|
-
'10': '2.5rem',
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
fontWeights: {
|
|
30
|
-
hairline: 100,
|
|
31
|
-
thin: 200,
|
|
32
|
-
light: 300,
|
|
33
|
-
normal: 400,
|
|
34
|
-
medium: 500,
|
|
35
|
-
semibold: 600,
|
|
36
|
-
bold: 700,
|
|
37
|
-
extrabold: 800,
|
|
38
|
-
black: 900,
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
fonts: {
|
|
42
|
-
base: `proxima-nova, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"`,
|
|
43
|
-
mono: `SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace`,
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
fontSizes: {
|
|
47
|
-
xs: '0.75rem',
|
|
48
|
-
sm: '0.875rem',
|
|
49
|
-
md: '1rem',
|
|
50
|
-
lg: '1.125rem',
|
|
51
|
-
xl: '1.25rem',
|
|
52
|
-
'2xl': '1.5rem',
|
|
53
|
-
'3xl': '1.875rem',
|
|
54
|
-
'4xl': '2.25rem',
|
|
55
|
-
'5xl': '3rem',
|
|
56
|
-
'6xl': '4rem',
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export type Typography = typeof typography;
|
|
61
|
-
|
|
62
|
-
export default typography;
|
|
1
|
+
const typography = {
|
|
2
|
+
letterSpacings: {
|
|
3
|
+
tighter: '-0.05em',
|
|
4
|
+
tight: '-0.025em',
|
|
5
|
+
normal: '0',
|
|
6
|
+
wide: '0.025em',
|
|
7
|
+
wider: '0.05em',
|
|
8
|
+
widest: '0.1em',
|
|
9
|
+
},
|
|
10
|
+
|
|
11
|
+
lineHeights: {
|
|
12
|
+
normal: 'normal',
|
|
13
|
+
none: 1,
|
|
14
|
+
shorter: 1.25,
|
|
15
|
+
short: 1.375,
|
|
16
|
+
base: 1.5,
|
|
17
|
+
tall: 1.625,
|
|
18
|
+
taller: '2',
|
|
19
|
+
'3': '.75rem',
|
|
20
|
+
'4': '1rem',
|
|
21
|
+
'5': '1.25rem',
|
|
22
|
+
'6': '1.5rem',
|
|
23
|
+
'7': '1.75rem',
|
|
24
|
+
'8': '2rem',
|
|
25
|
+
'9': '2.25rem',
|
|
26
|
+
'10': '2.5rem',
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
fontWeights: {
|
|
30
|
+
hairline: 100,
|
|
31
|
+
thin: 200,
|
|
32
|
+
light: 300,
|
|
33
|
+
normal: 400,
|
|
34
|
+
medium: 500,
|
|
35
|
+
semibold: 600,
|
|
36
|
+
bold: 700,
|
|
37
|
+
extrabold: 800,
|
|
38
|
+
black: 900,
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
fonts: {
|
|
42
|
+
base: `proxima-nova, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"`,
|
|
43
|
+
mono: `SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace`,
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
fontSizes: {
|
|
47
|
+
xs: '0.75rem',
|
|
48
|
+
sm: '0.875rem',
|
|
49
|
+
md: '1rem',
|
|
50
|
+
lg: '1.125rem',
|
|
51
|
+
xl: '1.25rem',
|
|
52
|
+
'2xl': '1.5rem',
|
|
53
|
+
'3xl': '1.875rem',
|
|
54
|
+
'4xl': '2.25rem',
|
|
55
|
+
'5xl': '3rem',
|
|
56
|
+
'6xl': '4rem',
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export type Typography = typeof typography;
|
|
61
|
+
|
|
62
|
+
export default typography;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ChakraProvider, ChakraProviderProps } from '@chakra-ui/provider';
|
|
3
|
-
import customXQChakraTheme from '../customXQChakraTheme';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* A functional React wrapper component utilized to consume the custom XQ theme via `ChakraProvider`
|
|
7
|
-
*/
|
|
8
|
-
export const XQThemeProvider: React.FC<ChakraProviderProps> = ({
|
|
9
|
-
children,
|
|
10
|
-
cssVarsRoot,
|
|
11
|
-
}) => {
|
|
12
|
-
return (
|
|
13
|
-
<ChakraProvider
|
|
14
|
-
theme={customXQChakraTheme}
|
|
15
|
-
resetCSS
|
|
16
|
-
cssVarsRoot={cssVarsRoot}
|
|
17
|
-
>
|
|
18
|
-
{children}
|
|
19
|
-
</ChakraProvider>
|
|
20
|
-
);
|
|
21
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ChakraProvider, ChakraProviderProps } from '@chakra-ui/provider';
|
|
3
|
+
import customXQChakraTheme from '../customXQChakraTheme';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A functional React wrapper component utilized to consume the custom XQ theme via `ChakraProvider`
|
|
7
|
+
*/
|
|
8
|
+
export const XQThemeProvider: React.FC<ChakraProviderProps> = ({
|
|
9
|
+
children,
|
|
10
|
+
cssVarsRoot,
|
|
11
|
+
}) => {
|
|
12
|
+
return (
|
|
13
|
+
<ChakraProvider
|
|
14
|
+
theme={customXQChakraTheme}
|
|
15
|
+
resetCSS
|
|
16
|
+
cssVarsRoot={cssVarsRoot}
|
|
17
|
+
>
|
|
18
|
+
{children}
|
|
19
|
+
</ChakraProvider>
|
|
20
|
+
);
|
|
21
|
+
};
|
package/src/theme/styles.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
global: {
|
|
3
|
-
'html, body, #root': {},
|
|
4
|
-
body: {
|
|
5
|
-
fontFamily: 'body',
|
|
6
|
-
color: 'black',
|
|
7
|
-
overflow: {
|
|
8
|
-
base: 'visible',
|
|
9
|
-
},
|
|
10
|
-
lineHeight: 'normal',
|
|
11
|
-
},
|
|
12
|
-
'*, *::before, *::after': {
|
|
13
|
-
borderColor: 'gray.200',
|
|
14
|
-
},
|
|
15
|
-
'*::placeholder': {
|
|
16
|
-
color: 'primary',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
};
|
|
1
|
+
export default {
|
|
2
|
+
global: {
|
|
3
|
+
'html, body, #root': {},
|
|
4
|
+
body: {
|
|
5
|
+
fontFamily: 'body',
|
|
6
|
+
color: 'black',
|
|
7
|
+
overflow: {
|
|
8
|
+
base: 'visible',
|
|
9
|
+
},
|
|
10
|
+
lineHeight: 'normal',
|
|
11
|
+
},
|
|
12
|
+
'*, *::before, *::after': {
|
|
13
|
+
borderColor: 'gray.200',
|
|
14
|
+
},
|
|
15
|
+
'*::placeholder': {
|
|
16
|
+
color: 'primary',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|