@rocketui/vue 0.0.47 → 0.0.49

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 (169) hide show
  1. package/dist/rocket-ui-vue.cjs.js +1 -0
  2. package/dist/rocket-ui-vue.d.ts +1812 -0
  3. package/dist/rocket-ui-vue.es.js +9270 -0
  4. package/dist/rocket-ui-vue.umd.js +1 -0
  5. package/dist/style.css +2 -0
  6. package/package.json +7 -1
  7. package/.eslintrc.cjs +0 -79
  8. package/.gitattributes +0 -2
  9. package/.github/workflows/chromatic.yml +0 -28
  10. package/.github/workflows/publish-storybook.yml +0 -41
  11. package/.husky/pre-commit +0 -4
  12. package/.prettierrc.cjs +0 -10
  13. package/.storybook/Theme.js +0 -17
  14. package/.storybook/main.ts +0 -20
  15. package/.storybook/manager-head.html +0 -3
  16. package/.storybook/manager.js +0 -8
  17. package/.storybook/preview-head.html +0 -3
  18. package/.storybook/preview.ts +0 -36
  19. package/.storybook/source-panel/manager.js +0 -28
  20. package/.storybook/withSource.js +0 -91
  21. package/.vscode/extensions.json +0 -11
  22. package/.vscode/settings.json +0 -20
  23. package/index.html +0 -13
  24. package/lib/main.ts +0 -48
  25. package/postcss.config.cjs +0 -9
  26. package/resources/rocket-ui-logo-dark.svg +0 -27
  27. package/resources/rocket-ui-logo-light.svg +0 -27
  28. package/shims-rocketui.d.ts +0 -9
  29. package/src/App.vue +0 -15
  30. package/src/assets/blank-avatar.svg +0 -3
  31. package/src/assets/icons/mdi.js +0 -7302
  32. package/src/assets/logo.svg +0 -1
  33. package/src/components/Accordion/Accordion.mdx +0 -88
  34. package/src/components/Accordion/Accordion.stories.ts +0 -257
  35. package/src/components/Accordion/RAccordion.vue +0 -73
  36. package/src/components/Accordion/accordion.css +0 -75
  37. package/src/components/Accordion/accordion.spec.ts +0 -123
  38. package/src/components/Alert/Alert.mdx +0 -120
  39. package/src/components/Alert/Alert.stories.ts +0 -118
  40. package/src/components/Alert/RAlert.vue +0 -119
  41. package/src/components/Alert/alert.css +0 -136
  42. package/src/components/Alert/alert.spec.ts +0 -32
  43. package/src/components/Avatar/Avatar.mdx +0 -96
  44. package/src/components/Avatar/Avatar.stories.ts +0 -65
  45. package/src/components/Avatar/RAvatar.vue +0 -115
  46. package/src/components/Avatar/avatar.css +0 -82
  47. package/src/components/Avatar/avatar.spec.ts +0 -38
  48. package/src/components/Badge/Badge.mdx +0 -112
  49. package/src/components/Badge/Badge.stories.ts +0 -99
  50. package/src/components/Badge/RBadge.vue +0 -89
  51. package/src/components/Badge/badge.css +0 -63
  52. package/src/components/Badge/badge.spec.ts +0 -20
  53. package/src/components/Box/Box.mdx +0 -20
  54. package/src/components/Box/Box.stories.ts +0 -56
  55. package/src/components/Box/RBox.vue +0 -97
  56. package/src/components/Breadcrumb/Breadcrumb.stories.ts +0 -115
  57. package/src/components/Breadcrumb/RBreadcrumb.vue +0 -43
  58. package/src/components/Breadcrumb/breadcrumb.css +0 -29
  59. package/src/components/Button/Button.mdx +0 -148
  60. package/src/components/Button/Button.spec.ts +0 -29
  61. package/src/components/Button/Button.stories.ts +0 -118
  62. package/src/components/Button/RButton.vue +0 -179
  63. package/src/components/Button/button.css +0 -146
  64. package/src/components/Checkbox/Checkbox.mdx +0 -100
  65. package/src/components/Checkbox/Checkbox.stories.ts +0 -67
  66. package/src/components/Checkbox/RCheckbox.vue +0 -195
  67. package/src/components/Checkbox/checkbox.css +0 -67
  68. package/src/components/Checkbox/checkbox.spec.ts +0 -60
  69. package/src/components/Chips/Chip.mdx +0 -113
  70. package/src/components/Chips/Chip.stories.ts +0 -122
  71. package/src/components/Chips/RChip.vue +0 -125
  72. package/src/components/Chips/chip.css +0 -62
  73. package/src/components/Chips/chip.spec.ts +0 -40
  74. package/src/components/Dropdown/Dropdown.mdx +0 -135
  75. package/src/components/Dropdown/Dropdown.stories.ts +0 -84
  76. package/src/components/Dropdown/RDropdown.vue +0 -392
  77. package/src/components/Dropdown/dropdown.css +0 -113
  78. package/src/components/Dropdown/dropdown.spec.ts +0 -98
  79. package/src/components/Flex/Flex.mdx +0 -20
  80. package/src/components/Flex/Flex.stories.js +0 -127
  81. package/src/components/Flex/RFlex.vue +0 -91
  82. package/src/components/Grid/Grid.mdx +0 -20
  83. package/src/components/Grid/Grid.stories.js +0 -107
  84. package/src/components/Grid/RGrid.vue +0 -138
  85. package/src/components/Icon/Icon.mdx +0 -68
  86. package/src/components/Icon/Icon.stories.ts +0 -33
  87. package/src/components/Icon/RIcon.vue +0 -56
  88. package/src/components/Icon/icon.spec.ts +0 -25
  89. package/src/components/ItemGroup/ItemGroup.stories.ts +0 -91
  90. package/src/components/ItemGroup/RItem.vue +0 -74
  91. package/src/components/ItemGroup/RItemGroup.vue +0 -122
  92. package/src/components/ItemGroup/__snapshots__/itemgroup.spec.ts.snap +0 -13
  93. package/src/components/ItemGroup/itemgroup.spec.ts +0 -67
  94. package/src/components/Label/Label.mdx +0 -50
  95. package/src/components/Label/Label.stories.ts +0 -38
  96. package/src/components/Label/RLabel.vue +0 -42
  97. package/src/components/Label/label.css +0 -0
  98. package/src/components/Modal/Modal.mdx +0 -91
  99. package/src/components/Modal/Modal.stories.ts +0 -125
  100. package/src/components/Modal/RModal.vue +0 -130
  101. package/src/components/Modal/modal.css +0 -41
  102. package/src/components/Modal/modal.spec.ts +0 -25
  103. package/src/components/Pagination/Pagination.stories.ts +0 -24
  104. package/src/components/Pagination/RPagination.vue +0 -103
  105. package/src/components/Pagination/pagination.css +0 -47
  106. package/src/components/Pagination/pagination.spec.ts +0 -17
  107. package/src/components/ProgressBar/ProgressBar.stories.ts +0 -34
  108. package/src/components/ProgressBar/RProgressBar.vue +0 -21
  109. package/src/components/ProgressBar/progressbar.css +0 -24
  110. package/src/components/ProgressBar/progressbar.spec.ts +0 -17
  111. package/src/components/Shared/Enums.ts +0 -1
  112. package/src/components/Sidebar/RSidebar.vue +0 -27
  113. package/src/components/Sidebar/Sidebar.mdx +0 -31
  114. package/src/components/Sidebar/Sidebar.stories.ts +0 -34
  115. package/src/components/Sidebar/sidebar.css +0 -18
  116. package/src/components/Sidebar/sidebar.spec.ts +0 -33
  117. package/src/components/Snackbar/RSnackbar.vue +0 -136
  118. package/src/components/Snackbar/Snackbar.mdx +0 -126
  119. package/src/components/Snackbar/Snackbar.stories.ts +0 -93
  120. package/src/components/Snackbar/snackbar.css +0 -99
  121. package/src/components/Snackbar/snackbar.spec.ts +0 -56
  122. package/src/components/Switch/RSwitch.vue +0 -147
  123. package/src/components/Switch/Switch.mdx +0 -102
  124. package/src/components/Switch/Switch.stories.ts +0 -79
  125. package/src/components/Switch/switch.css +0 -102
  126. package/src/components/Switch/switch.spec.ts +0 -31
  127. package/src/components/TabItem/RTabItem.vue +0 -175
  128. package/src/components/TabItem/TabItem.mdx +0 -95
  129. package/src/components/TabItem/TabItem.spec.ts +0 -29
  130. package/src/components/TabItem/TabItem.stories.ts +0 -97
  131. package/src/components/TabItem/common.ts +0 -6
  132. package/src/components/TabItem/tab-item.css +0 -29
  133. package/src/components/Tabs/RTabs.vue +0 -94
  134. package/src/components/Tabs/Tabs.mdx +0 -78
  135. package/src/components/Tabs/Tabs.spec.ts +0 -28
  136. package/src/components/Tabs/Tabs.stories.ts +0 -191
  137. package/src/components/Tabs/tabs.css +0 -13
  138. package/src/components/Tabs/types.ts +0 -11
  139. package/src/components/TextArea/RTextArea.vue +0 -142
  140. package/src/components/TextArea/TextArea.mdx +0 -108
  141. package/src/components/TextArea/TextArea.stories.ts +0 -55
  142. package/src/components/TextArea/textarea.css +0 -51
  143. package/src/components/TextArea/textarea.spec.ts +0 -36
  144. package/src/components/Textfield/RTextfield.vue +0 -372
  145. package/src/components/Textfield/Textfield.mdx +0 -159
  146. package/src/components/Textfield/Textfield.stories.ts +0 -121
  147. package/src/components/Textfield/textfield.css +0 -81
  148. package/src/components/Textfield/textfield.spec.ts +0 -34
  149. package/src/components/Tooltip/RTooltip.vue +0 -325
  150. package/src/components/Tooltip/Tooltip.mdx +0 -111
  151. package/src/components/Tooltip/Tooltip.stories.ts +0 -203
  152. package/src/components/Tooltip/common.ts +0 -91
  153. package/src/components/Tooltip/tooltip.css +0 -34
  154. package/src/components/Tooltip/tooltip.spec.ts +0 -81
  155. package/src/components/Typography/Typography.mdx +0 -109
  156. package/src/components/Typography/typography.css +0 -128
  157. package/src/directives/index.ts +0 -19
  158. package/src/index.css +0 -241
  159. package/src/main.ts +0 -5
  160. package/src/scripts/buildIcons.js +0 -21
  161. package/src/stories/Colors.mdx +0 -355
  162. package/src/stories/GettingStarted.mdx +0 -121
  163. package/src/stories/Layout.mdx +0 -15
  164. package/tailwind.config.cjs +0 -16
  165. package/tsconfig.json +0 -24
  166. package/vite.config.ts +0 -39
  167. package/vitest.config.ts +0 -12
  168. /package/{public → dist}/design-tokens.source.json +0 -0
  169. /package/{public → dist}/favicon.ico +0 -0
package/src/index.css DELETED
@@ -1,241 +0,0 @@
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 DELETED
@@ -1,5 +0,0 @@
1
- import { createApp } from 'vue';
2
- import App from './App.vue';
3
- import './index.css';
4
-
5
- createApp(App).mount('#app');
@@ -1,21 +0,0 @@
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);
@@ -1,355 +0,0 @@
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} />