@rocketui/vue 0.0.46 → 0.0.47
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/.eslintrc.cjs +79 -0
- package/.gitattributes +2 -0
- package/.github/workflows/chromatic.yml +28 -0
- package/.github/workflows/publish-storybook.yml +41 -0
- package/.husky/pre-commit +4 -0
- package/.prettierrc.cjs +10 -0
- package/.storybook/Theme.js +17 -0
- package/.storybook/main.ts +20 -0
- package/.storybook/manager-head.html +3 -0
- package/.storybook/manager.js +8 -0
- package/.storybook/preview-head.html +3 -0
- package/.storybook/preview.ts +36 -0
- package/.storybook/source-panel/manager.js +28 -0
- package/.storybook/withSource.js +91 -0
- package/.vscode/extensions.json +11 -0
- package/.vscode/settings.json +20 -0
- package/index.html +13 -0
- package/lib/main.ts +48 -0
- package/package.json +2 -8
- package/postcss.config.cjs +9 -0
- package/resources/rocket-ui-logo-dark.svg +27 -0
- package/resources/rocket-ui-logo-light.svg +27 -0
- package/shims-rocketui.d.ts +9 -0
- package/src/App.vue +15 -0
- package/src/assets/blank-avatar.svg +3 -0
- package/src/assets/icons/mdi.js +7302 -0
- package/src/assets/logo.svg +1 -0
- package/src/components/Accordion/Accordion.mdx +88 -0
- package/src/components/Accordion/Accordion.stories.ts +257 -0
- package/src/components/Accordion/RAccordion.vue +73 -0
- package/src/components/Accordion/accordion.css +75 -0
- package/src/components/Accordion/accordion.spec.ts +123 -0
- package/src/components/Alert/Alert.mdx +120 -0
- package/src/components/Alert/Alert.stories.ts +118 -0
- package/src/components/Alert/RAlert.vue +119 -0
- package/src/components/Alert/alert.css +136 -0
- package/src/components/Alert/alert.spec.ts +32 -0
- package/src/components/Avatar/Avatar.mdx +96 -0
- package/src/components/Avatar/Avatar.stories.ts +65 -0
- package/src/components/Avatar/RAvatar.vue +115 -0
- package/src/components/Avatar/avatar.css +82 -0
- package/src/components/Avatar/avatar.spec.ts +38 -0
- package/src/components/Badge/Badge.mdx +112 -0
- package/src/components/Badge/Badge.stories.ts +99 -0
- package/src/components/Badge/RBadge.vue +89 -0
- package/src/components/Badge/badge.css +63 -0
- package/src/components/Badge/badge.spec.ts +20 -0
- package/src/components/Box/Box.mdx +20 -0
- package/src/components/Box/Box.stories.ts +56 -0
- package/src/components/Box/RBox.vue +97 -0
- package/src/components/Breadcrumb/Breadcrumb.stories.ts +115 -0
- package/src/components/Breadcrumb/RBreadcrumb.vue +43 -0
- package/src/components/Breadcrumb/breadcrumb.css +29 -0
- package/src/components/Button/Button.mdx +148 -0
- package/src/components/Button/Button.spec.ts +29 -0
- package/src/components/Button/Button.stories.ts +118 -0
- package/src/components/Button/RButton.vue +179 -0
- package/src/components/Button/button.css +146 -0
- package/src/components/Checkbox/Checkbox.mdx +100 -0
- package/src/components/Checkbox/Checkbox.stories.ts +67 -0
- package/src/components/Checkbox/RCheckbox.vue +195 -0
- package/src/components/Checkbox/checkbox.css +67 -0
- package/src/components/Checkbox/checkbox.spec.ts +60 -0
- package/src/components/Chips/Chip.mdx +113 -0
- package/src/components/Chips/Chip.stories.ts +122 -0
- package/src/components/Chips/RChip.vue +125 -0
- package/src/components/Chips/chip.css +62 -0
- package/src/components/Chips/chip.spec.ts +40 -0
- package/src/components/Dropdown/Dropdown.mdx +135 -0
- package/src/components/Dropdown/Dropdown.stories.ts +84 -0
- package/src/components/Dropdown/RDropdown.vue +392 -0
- package/src/components/Dropdown/dropdown.css +113 -0
- package/src/components/Dropdown/dropdown.spec.ts +98 -0
- package/src/components/Flex/Flex.mdx +20 -0
- package/src/components/Flex/Flex.stories.js +127 -0
- package/src/components/Flex/RFlex.vue +91 -0
- package/src/components/Grid/Grid.mdx +20 -0
- package/src/components/Grid/Grid.stories.js +107 -0
- package/src/components/Grid/RGrid.vue +138 -0
- package/src/components/Icon/Icon.mdx +68 -0
- package/src/components/Icon/Icon.stories.ts +33 -0
- package/src/components/Icon/RIcon.vue +56 -0
- package/src/components/Icon/icon.spec.ts +25 -0
- package/src/components/ItemGroup/ItemGroup.stories.ts +91 -0
- package/src/components/ItemGroup/RItem.vue +74 -0
- package/src/components/ItemGroup/RItemGroup.vue +122 -0
- package/src/components/ItemGroup/__snapshots__/itemgroup.spec.ts.snap +13 -0
- package/src/components/ItemGroup/itemgroup.spec.ts +67 -0
- package/src/components/Label/Label.mdx +50 -0
- package/src/components/Label/Label.stories.ts +38 -0
- package/src/components/Label/RLabel.vue +42 -0
- package/src/components/Label/label.css +0 -0
- package/src/components/Modal/Modal.mdx +91 -0
- package/src/components/Modal/Modal.stories.ts +125 -0
- package/src/components/Modal/RModal.vue +130 -0
- package/src/components/Modal/modal.css +41 -0
- package/src/components/Modal/modal.spec.ts +25 -0
- package/src/components/Pagination/Pagination.stories.ts +24 -0
- package/src/components/Pagination/RPagination.vue +103 -0
- package/src/components/Pagination/pagination.css +47 -0
- package/src/components/Pagination/pagination.spec.ts +17 -0
- package/src/components/ProgressBar/ProgressBar.stories.ts +34 -0
- package/src/components/ProgressBar/RProgressBar.vue +21 -0
- package/src/components/ProgressBar/progressbar.css +24 -0
- package/src/components/ProgressBar/progressbar.spec.ts +17 -0
- package/src/components/Shared/Enums.ts +1 -0
- package/src/components/Sidebar/RSidebar.vue +27 -0
- package/src/components/Sidebar/Sidebar.mdx +31 -0
- package/src/components/Sidebar/Sidebar.stories.ts +34 -0
- package/src/components/Sidebar/sidebar.css +18 -0
- package/src/components/Sidebar/sidebar.spec.ts +33 -0
- package/src/components/Snackbar/RSnackbar.vue +136 -0
- package/src/components/Snackbar/Snackbar.mdx +126 -0
- package/src/components/Snackbar/Snackbar.stories.ts +93 -0
- package/src/components/Snackbar/snackbar.css +99 -0
- package/src/components/Snackbar/snackbar.spec.ts +56 -0
- package/src/components/Switch/RSwitch.vue +147 -0
- package/src/components/Switch/Switch.mdx +102 -0
- package/src/components/Switch/Switch.stories.ts +79 -0
- package/src/components/Switch/switch.css +102 -0
- package/src/components/Switch/switch.spec.ts +31 -0
- package/src/components/TabItem/RTabItem.vue +175 -0
- package/src/components/TabItem/TabItem.mdx +95 -0
- package/src/components/TabItem/TabItem.spec.ts +29 -0
- package/src/components/TabItem/TabItem.stories.ts +97 -0
- package/src/components/TabItem/common.ts +6 -0
- package/src/components/TabItem/tab-item.css +29 -0
- package/src/components/Tabs/RTabs.vue +94 -0
- package/src/components/Tabs/Tabs.mdx +78 -0
- package/src/components/Tabs/Tabs.spec.ts +28 -0
- package/src/components/Tabs/Tabs.stories.ts +191 -0
- package/src/components/Tabs/tabs.css +13 -0
- package/src/components/Tabs/types.ts +11 -0
- package/src/components/TextArea/RTextArea.vue +142 -0
- package/src/components/TextArea/TextArea.mdx +108 -0
- package/src/components/TextArea/TextArea.stories.ts +55 -0
- package/src/components/TextArea/textarea.css +51 -0
- package/src/components/TextArea/textarea.spec.ts +36 -0
- package/src/components/Textfield/RTextfield.vue +372 -0
- package/src/components/Textfield/Textfield.mdx +159 -0
- package/src/components/Textfield/Textfield.stories.ts +121 -0
- package/src/components/Textfield/textfield.css +81 -0
- package/src/components/Textfield/textfield.spec.ts +34 -0
- package/src/components/Tooltip/RTooltip.vue +325 -0
- package/src/components/Tooltip/Tooltip.mdx +111 -0
- package/src/components/Tooltip/Tooltip.stories.ts +203 -0
- package/src/components/Tooltip/common.ts +91 -0
- package/src/components/Tooltip/tooltip.css +34 -0
- package/src/components/Tooltip/tooltip.spec.ts +81 -0
- package/src/components/Typography/Typography.mdx +109 -0
- package/src/components/Typography/typography.css +128 -0
- package/src/directives/index.ts +19 -0
- package/src/index.css +241 -0
- package/src/main.ts +5 -0
- package/src/scripts/buildIcons.js +21 -0
- package/src/stories/Colors.mdx +355 -0
- package/src/stories/GettingStarted.mdx +121 -0
- package/src/stories/Layout.mdx +15 -0
- package/tailwind.config.cjs +16 -0
- package/tsconfig.json +24 -0
- package/vite.config.ts +39 -0
- package/vitest.config.ts +12 -0
- package/dist/rocket-ui-vue.js +0 -9381
- package/dist/rocket-ui-vue.umd.cjs +0 -1
- package/dist/style.css +0 -2
- package/dist/types/main.d.ts +0 -25
- /package/{dist → public}/design-tokens.source.json +0 -0
- /package/{dist → public}/favicon.ico +0 -0
package/src/index.css
ADDED
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@200;300;400;500;600;700;800&family=Roboto:wght@100&display=swap');
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
/**
|
|
5
|
+
* @tokens Colors
|
|
6
|
+
* @presenter Color
|
|
7
|
+
*/
|
|
8
|
+
--primary-50: #f2f4ff;
|
|
9
|
+
--primary-100: #f2f3fd;
|
|
10
|
+
--primary-200: #e4e6fb;
|
|
11
|
+
--primary-300: #a3abf0;
|
|
12
|
+
--primary-400: #6f7de5;
|
|
13
|
+
--primary-500: #4c5be1;
|
|
14
|
+
--primary-600: #3a3f9e;
|
|
15
|
+
--primary-700: #3944a9;
|
|
16
|
+
--primary-800: #2e3a7e;
|
|
17
|
+
--primary-900: #2e3787;
|
|
18
|
+
--secondary-100: #fdfae7;
|
|
19
|
+
--secondary-200: #f9eeb5;
|
|
20
|
+
--secondary-300: #ffec8a;
|
|
21
|
+
--secondary-400: #ffdf3b;
|
|
22
|
+
--secondary-500: #ebc80f;
|
|
23
|
+
--secondary-600: #e0bc00;
|
|
24
|
+
--secondary-700: #998100;
|
|
25
|
+
--secondary-800: #705e00;
|
|
26
|
+
--secondary-900: #483c00;
|
|
27
|
+
--neutral-100: #f6f7f9;
|
|
28
|
+
--neutral-200: #e7eaee;
|
|
29
|
+
--neutral-300: #c3c9d5;
|
|
30
|
+
--neutral-400: #acb4c3;
|
|
31
|
+
--neutral-500: #818a9c;
|
|
32
|
+
--neutral-600: #586174;
|
|
33
|
+
--neutral-700: #3c4353;
|
|
34
|
+
--neutral-800: #242a38;
|
|
35
|
+
--neutral-900: #151b26;
|
|
36
|
+
--success-100: #e8fff7;
|
|
37
|
+
--success-200: #bfffe8;
|
|
38
|
+
--success-300: #97ffda;
|
|
39
|
+
--success-400: #1bf5a7;
|
|
40
|
+
--success-500: #05cc85;
|
|
41
|
+
--success-600: #0cbc7d;
|
|
42
|
+
--success-700: #068e03;
|
|
43
|
+
--success-800: #007a4f;
|
|
44
|
+
--success-900: #005235;
|
|
45
|
+
--info-100: #e8f4ff;
|
|
46
|
+
--info-200: #b6dcff;
|
|
47
|
+
--info-300: #83c3ff;
|
|
48
|
+
--info-400: #50abff;
|
|
49
|
+
--info-500: #0c70ce;
|
|
50
|
+
--info-600: #0059ac;
|
|
51
|
+
--info-700: #00488a;
|
|
52
|
+
--info-800: #003668;
|
|
53
|
+
--info-900: #002446;
|
|
54
|
+
--warning-100: #fdfae7;
|
|
55
|
+
--warning-200: #f9eeb5;
|
|
56
|
+
--warning-300: #ffec8a;
|
|
57
|
+
--warning-400: #ffdf3b;
|
|
58
|
+
--warning-500: #ebc80f;
|
|
59
|
+
--warning-600: #e0bc00;
|
|
60
|
+
--warning-700: #998100;
|
|
61
|
+
--warning-800: #705e00;
|
|
62
|
+
--warning-900: #483c00;
|
|
63
|
+
--error-100: #ffeceb;
|
|
64
|
+
--error-200: #ffd0cc;
|
|
65
|
+
--error-300: #ff9891;
|
|
66
|
+
--error-400: #ff4537;
|
|
67
|
+
--error-500: #e13023;
|
|
68
|
+
--error-600: #bf1e12;
|
|
69
|
+
--error-700: #9d1006;
|
|
70
|
+
--error-800: #7b0900;
|
|
71
|
+
--error-900: #590600;
|
|
72
|
+
--white: #ffffff;
|
|
73
|
+
--black: #000000;
|
|
74
|
+
/**
|
|
75
|
+
* @tokens Box Shadows
|
|
76
|
+
* @presenter Shadow
|
|
77
|
+
*/
|
|
78
|
+
--box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
|
|
79
|
+
--box-shadow-hover: 0 0 10px 0 rgba(0, 0, 0, 0.2);
|
|
80
|
+
--box-shadow-active: 0 0 10px 0 rgba(0, 0, 0, 0.3);
|
|
81
|
+
--box-shadow-focus: 0 0 10px 0 rgba(0, 0, 0, 0.4);
|
|
82
|
+
--box-shadow-pressed: 0 0 10px 0 rgba(0, 0, 0, 0.5);
|
|
83
|
+
--box-shadow-pressed-active: 0 0 10px 0 rgba(0, 0, 0, 0.6);
|
|
84
|
+
--box-shadow-pressed-focus: 0 0 10px 0 rgba(0, 0, 0, 0.7);
|
|
85
|
+
--box-shadow-pressed-hover: 0 0 10px 0 rgba(0, 0, 0, 0.8);
|
|
86
|
+
/**
|
|
87
|
+
* @tokens Spaces
|
|
88
|
+
* @presenter Spacing
|
|
89
|
+
*/
|
|
90
|
+
--space-1: 0.25rem;
|
|
91
|
+
--space-2: 0.5rem;
|
|
92
|
+
--space-3: 0.75rem;
|
|
93
|
+
--space-4: 1rem;
|
|
94
|
+
--space-5: 1.25rem;
|
|
95
|
+
--space-6: 1.5rem;
|
|
96
|
+
--space-7: 1.75rem;
|
|
97
|
+
--space-8: 2rem;
|
|
98
|
+
--space-9: 2.25rem;
|
|
99
|
+
--space-10: 2.5rem;
|
|
100
|
+
--space-11: 2.75rem;
|
|
101
|
+
--space-12: 3rem;
|
|
102
|
+
--space-13: 3.25rem;
|
|
103
|
+
--space-14: 3.5rem;
|
|
104
|
+
--space-15: 3.75rem;
|
|
105
|
+
--space-16: 4rem;
|
|
106
|
+
--space-17: 4.25rem;
|
|
107
|
+
--space-18: 4.5rem;
|
|
108
|
+
--space-19: 4.75rem;
|
|
109
|
+
--space-20: 5rem;
|
|
110
|
+
/**
|
|
111
|
+
* @tokens Gaps
|
|
112
|
+
*/
|
|
113
|
+
--column-gap: 1rem;
|
|
114
|
+
--row-gap: 1rem;
|
|
115
|
+
/**
|
|
116
|
+
* @tokens Border Radiuses
|
|
117
|
+
* @presenter BorderRadius
|
|
118
|
+
*/
|
|
119
|
+
--border-radius: 0.25rem;
|
|
120
|
+
--border-radius-1: 0.25rem;
|
|
121
|
+
--border-radius-2: 0.5rem;
|
|
122
|
+
--border-radius-3: 0.75rem;
|
|
123
|
+
--border-radius-4: 1rem;
|
|
124
|
+
--border-radius-5: 1.25rem;
|
|
125
|
+
--border-radius-6: 99999px;
|
|
126
|
+
/**
|
|
127
|
+
* @tokens Others
|
|
128
|
+
*/
|
|
129
|
+
--column-1: 1;
|
|
130
|
+
--column-2: 2;
|
|
131
|
+
--column-3: 3;
|
|
132
|
+
--column-4: 4;
|
|
133
|
+
--column-5: 5;
|
|
134
|
+
--column-6: 6;
|
|
135
|
+
--column-7: 7;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @tokens-modal-variables
|
|
139
|
+
* @presenter ModalVariables
|
|
140
|
+
*/
|
|
141
|
+
--modal-background: rgba(0, 0, 0, 0.5);
|
|
142
|
+
--modal-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
|
|
143
|
+
--modal-height: 448px;
|
|
144
|
+
--modal-width: 400px;
|
|
145
|
+
--modal-border-radius: var(--border-radius-4);
|
|
146
|
+
--modal-padding: var(--space-7);
|
|
147
|
+
--modal-icon-size: var(--space-12);
|
|
148
|
+
--modal-icon-padding: var(--space-3);
|
|
149
|
+
--modal-icon-bg: var(--primary-100);
|
|
150
|
+
--modal-icon-color: var(--primary-500);
|
|
151
|
+
--modal-animation: crossFadeAndGrowUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s
|
|
152
|
+
both;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @tokens-sidebar-variables
|
|
156
|
+
* @presenter SidebarVariables
|
|
157
|
+
*/
|
|
158
|
+
--sidebar-width: 256px;
|
|
159
|
+
--sidebar-collapsed-width: 80px;
|
|
160
|
+
--sidebar-background: white;
|
|
161
|
+
--sidebar-padding: var(--space-5) var(--space-4);
|
|
162
|
+
/**
|
|
163
|
+
* @tokens-textfield-variables
|
|
164
|
+
* @presenter TextfieldVariables
|
|
165
|
+
*/
|
|
166
|
+
--textfield-bg: var(--white);
|
|
167
|
+
--textfield-bg-disabled: var(--neutral-100);
|
|
168
|
+
/**
|
|
169
|
+
* @tokens-button-variables
|
|
170
|
+
* @presenter ButtonVariables
|
|
171
|
+
*/
|
|
172
|
+
--btn-radius: var(--border-radius-2);
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @tokens-font-variables
|
|
176
|
+
* @presenter FontVariables
|
|
177
|
+
*/
|
|
178
|
+
--font-size: 16px;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @tokens-breadcrumb-variables
|
|
182
|
+
* @presenter Breadcrumb Variables
|
|
183
|
+
*/
|
|
184
|
+
--breadcrumb-text-color: var(--neutral-500);
|
|
185
|
+
--breadcrumb-text-color-active: var(--neutral-900);
|
|
186
|
+
--breadcrumb-text-color-hover: var(--neutral-900);
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @tokens-accordion-variables
|
|
190
|
+
* @presenter Accordion Variables
|
|
191
|
+
*/
|
|
192
|
+
--accordion-content-max-height: 600px;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @tokens-pagination-variables
|
|
196
|
+
* @presenter Pagination Variables
|
|
197
|
+
*/
|
|
198
|
+
--pagination-border-radius: var(--border-radius-2);
|
|
199
|
+
--pagination-border-color: var(--neutral-200);
|
|
200
|
+
--pagination-border-width: 1px;
|
|
201
|
+
--pagination-border-style: solid;
|
|
202
|
+
--pagination-bg: var(--white);
|
|
203
|
+
--pagination-btn-padding: 0.565rem;
|
|
204
|
+
--pagination-input-padding: 0.315rem;
|
|
205
|
+
/**
|
|
206
|
+
* @tokens-end
|
|
207
|
+
*/
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@tailwind base;
|
|
211
|
+
@tailwind components;
|
|
212
|
+
@tailwind utilities;
|
|
213
|
+
|
|
214
|
+
@keyframes spin {
|
|
215
|
+
to {
|
|
216
|
+
transform: rotate(-360deg);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
.animate-spin-reverse {
|
|
220
|
+
animation: spin 1s linear infinite;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@keyframes ring {
|
|
224
|
+
0% {
|
|
225
|
+
@apply ring-2 ring-offset-0;
|
|
226
|
+
}
|
|
227
|
+
100% {
|
|
228
|
+
@apply ring-2 ring-offset-0;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
@keyframes crossFadeAndGrowUp {
|
|
233
|
+
0% {
|
|
234
|
+
opacity: 0;
|
|
235
|
+
transform: scale(0.5);
|
|
236
|
+
}
|
|
237
|
+
100% {
|
|
238
|
+
opacity: 1;
|
|
239
|
+
transform: scale(1);
|
|
240
|
+
}
|
|
241
|
+
}
|
package/src/main.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import util from '@mdi/util';
|
|
2
|
+
|
|
3
|
+
const meta = util.getMeta(true);
|
|
4
|
+
|
|
5
|
+
const find = /(\-\w)/g;
|
|
6
|
+
const convert = function ([_, matches]) {
|
|
7
|
+
return matches.toUpperCase();
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const lines = meta.map((icon) => {
|
|
11
|
+
let name = icon.name.replace(find, convert);
|
|
12
|
+
name = `${name[0].toUpperCase()}${name.slice(1)}`;
|
|
13
|
+
|
|
14
|
+
return `mdi${name} : "${icon.path}"`;
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const outputTS = `// Material Design Icons v${util.getVersion()}\n
|
|
18
|
+
const svg =
|
|
19
|
+
{\n${lines.join(',\n')}\n}\nexport default svg`;
|
|
20
|
+
|
|
21
|
+
util.write('src/assets/icons/mdi.js', outputTS);
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { Meta } from '@storybook/blocks';
|
|
2
|
+
|
|
3
|
+
<Meta
|
|
4
|
+
title="Design Tokens/Colors"
|
|
5
|
+
parameters={{
|
|
6
|
+
viewMode: 'docs',
|
|
7
|
+
previewTabs: {
|
|
8
|
+
canvas: { hidden: true },
|
|
9
|
+
},
|
|
10
|
+
}}
|
|
11
|
+
/>
|
|
12
|
+
|
|
13
|
+
export const Primaries = [
|
|
14
|
+
{
|
|
15
|
+
name: '--primary-900',
|
|
16
|
+
value: '#2E3787',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: '--primary-700',
|
|
20
|
+
value: '#3944A9',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: '--primary-500',
|
|
24
|
+
value: '#4C5BE1',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: '--primary-300',
|
|
28
|
+
value: '#A3ABF0',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: '--primary-200',
|
|
32
|
+
value: '#E4E6FB',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: '--primary-100',
|
|
36
|
+
value: '#F2F3FD',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: '--primary-50',
|
|
40
|
+
value: '#f2f4ff',
|
|
41
|
+
}
|
|
42
|
+
];
|
|
43
|
+
export const Secondaries = [
|
|
44
|
+
{
|
|
45
|
+
name: '--secondary-900',
|
|
46
|
+
value: '#48390D',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: '--secondary-800',
|
|
50
|
+
value: '#6A5517',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: '--secondary-700',
|
|
54
|
+
value: '#AE9034',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: '--secondary-600',
|
|
58
|
+
value: '#D0AE47',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: '--secondary-500',
|
|
62
|
+
value: '#F2CD5D',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: '--secondary-400',
|
|
66
|
+
value: '#FDDF84',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: '--secondary-300',
|
|
70
|
+
value: '#FFE9A8',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: '--secondary-200',
|
|
74
|
+
value: '#FFF2CC',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: '--secondary-100',
|
|
78
|
+
value: '#FFF7E1',
|
|
79
|
+
},
|
|
80
|
+
];
|
|
81
|
+
export const Neutrals = [
|
|
82
|
+
{
|
|
83
|
+
name: '--neutral-900',
|
|
84
|
+
value: '#151B26',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: '--neutral-800',
|
|
88
|
+
value: '#242A38',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: '--neutral-700',
|
|
92
|
+
value: '#3C4353',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: '--neutral-600',
|
|
96
|
+
value: '#586174',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: '--neutral-500',
|
|
100
|
+
value: '#818A9C',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: '--neutral-400',
|
|
104
|
+
value: '#ACB4C3',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: '--neutral-300',
|
|
108
|
+
value: '#C3C9D5',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: '--neutral-200',
|
|
112
|
+
value: '#E7EAEE',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: '--neutral-100',
|
|
116
|
+
value: '#F6F7F9',
|
|
117
|
+
},
|
|
118
|
+
];
|
|
119
|
+
export const Successes = [
|
|
120
|
+
{
|
|
121
|
+
name: '--success-900',
|
|
122
|
+
value: '#005235',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: '--success-800',
|
|
126
|
+
value: '#007A4F',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: '--success-700',
|
|
130
|
+
value: '#068E03',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: '--success-600',
|
|
134
|
+
value: '#0CBC7D',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: '--success-500',
|
|
138
|
+
value: '#05CC85',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: '--success-400',
|
|
142
|
+
value: '#1BF5A7',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: '--success-300',
|
|
146
|
+
value: '#97FFDA',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: '--success-200',
|
|
150
|
+
value: '#BFFFE8',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: '--success-100',
|
|
154
|
+
value: '#E8FFF7',
|
|
155
|
+
},
|
|
156
|
+
];
|
|
157
|
+
export const Informations = [
|
|
158
|
+
{
|
|
159
|
+
name: '--info-900',
|
|
160
|
+
value: '#002446',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: '--info-800',
|
|
164
|
+
value: '#003668',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
name: '--info-700',
|
|
168
|
+
value: '#00488A',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: '--info-600',
|
|
172
|
+
value: '#0059AC',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: '--info-500',
|
|
176
|
+
value: '#0C70CE',
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: '--info-400',
|
|
180
|
+
value: '#50ABFF',
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
name: '--info-300',
|
|
184
|
+
value: '#83C3FF',
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
name: '--info-200',
|
|
188
|
+
value: '#B6DCFF',
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: '--info-100',
|
|
192
|
+
value: '#E8F4FF',
|
|
193
|
+
},
|
|
194
|
+
];
|
|
195
|
+
export const Warnings = [
|
|
196
|
+
{
|
|
197
|
+
name: '--warning-900',
|
|
198
|
+
value: '#483C00',
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
name: '--warning-800',
|
|
202
|
+
value: '#705E00',
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: '--warning-700',
|
|
206
|
+
value: '#998100',
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: '--warning-600',
|
|
210
|
+
value: '#E0BC00',
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: '--warning-500',
|
|
214
|
+
value: '#EBC80F',
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
name: '--warning-400',
|
|
218
|
+
value: '#FFDF3B',
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: '--warning-300',
|
|
222
|
+
value: '#FFEC8A',
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: '--warning-200',
|
|
226
|
+
value: '#F9EEB5',
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
name: '--warning-100',
|
|
230
|
+
value: '#FDFAE7',
|
|
231
|
+
},
|
|
232
|
+
];
|
|
233
|
+
export const Errors = [
|
|
234
|
+
{
|
|
235
|
+
name: '--error-900',
|
|
236
|
+
value: '#590600',
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
name: '--error-800',
|
|
240
|
+
value: '#7B0900',
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
name: '--error-700',
|
|
244
|
+
value: '#9D1006',
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
name: '--error-600',
|
|
248
|
+
value: '#BF1E12',
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
name: '--error-500',
|
|
252
|
+
value: '#E13023',
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
name: '--error-400',
|
|
256
|
+
value: '#FF4537',
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
name: '--error-300',
|
|
260
|
+
value: '#FF9891',
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
name: '--error-200',
|
|
264
|
+
value: '#FFD0CC',
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
name: '--error-100',
|
|
268
|
+
value: '#FFECEB',
|
|
269
|
+
},
|
|
270
|
+
];
|
|
271
|
+
export const Others = [
|
|
272
|
+
{
|
|
273
|
+
name: '--white',
|
|
274
|
+
value: '#FFFFFF',
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
name: '--black',
|
|
278
|
+
value: '#000000',
|
|
279
|
+
},
|
|
280
|
+
];
|
|
281
|
+
|
|
282
|
+
export const Things = ({ colors }) => {
|
|
283
|
+
return (
|
|
284
|
+
|
|
285
|
+
<div
|
|
286
|
+
style={{
|
|
287
|
+
display: 'grid',
|
|
288
|
+
gridTemplateColumns: 'repeat(auto-fill, minmax(200px, 1fr)',
|
|
289
|
+
gridGap: '1rem',
|
|
290
|
+
fontFamily: 'sans-serif',
|
|
291
|
+
}}
|
|
292
|
+
>
|
|
293
|
+
{colors.map((color) => (
|
|
294
|
+
<div
|
|
295
|
+
style={{
|
|
296
|
+
display: 'flex',
|
|
297
|
+
alignItems: 'center',
|
|
298
|
+
gap: '1rem',
|
|
299
|
+
padding: '0.5rem',
|
|
300
|
+
marginBottom: '0.5rem',
|
|
301
|
+
border: '1px solid #E7EAEE',
|
|
302
|
+
borderRadius: '8px',
|
|
303
|
+
}}
|
|
304
|
+
>
|
|
305
|
+
<div
|
|
306
|
+
style={{
|
|
307
|
+
backgroundColor: color.value,
|
|
308
|
+
width: '54px',
|
|
309
|
+
height: '54px',
|
|
310
|
+
borderRadius: '8px',
|
|
311
|
+
boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1)',
|
|
312
|
+
}}
|
|
313
|
+
/>
|
|
314
|
+
<div>
|
|
315
|
+
<div style={{ color: '#818A9C' }}>{color.name}</div>
|
|
316
|
+
<div style={{ color: '#151B26' }}>{color.value}</div>
|
|
317
|
+
</div>
|
|
318
|
+
</div>
|
|
319
|
+
))}
|
|
320
|
+
</div>
|
|
321
|
+
) };
|
|
322
|
+
|
|
323
|
+
# Colors
|
|
324
|
+
|
|
325
|
+
## Primary
|
|
326
|
+
|
|
327
|
+
<Things colors={Primaries} />
|
|
328
|
+
|
|
329
|
+
## Secondary
|
|
330
|
+
|
|
331
|
+
<Things colors={Secondaries} />
|
|
332
|
+
|
|
333
|
+
## Neutral
|
|
334
|
+
|
|
335
|
+
<Things colors={Neutrals} />
|
|
336
|
+
|
|
337
|
+
## Success
|
|
338
|
+
|
|
339
|
+
<Things colors={Successes} />
|
|
340
|
+
|
|
341
|
+
## Info
|
|
342
|
+
|
|
343
|
+
<Things colors={Informations} />
|
|
344
|
+
|
|
345
|
+
## Warning
|
|
346
|
+
|
|
347
|
+
<Things colors={Warnings} />
|
|
348
|
+
|
|
349
|
+
## Error
|
|
350
|
+
|
|
351
|
+
<Things colors={Errors} />
|
|
352
|
+
|
|
353
|
+
## Other
|
|
354
|
+
|
|
355
|
+
<Things colors={Others} />
|