@g4rcez/components 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/dist/ai/SKILL.md +266 -0
  2. package/dist/ai/docs/Alert.md +167 -0
  3. package/dist/ai/docs/AnimatedList.md +205 -0
  4. package/dist/ai/docs/Autocomplete.md +225 -0
  5. package/dist/ai/docs/Button.md +182 -0
  6. package/dist/ai/docs/Calendar.md +219 -0
  7. package/dist/ai/docs/Card.md +174 -0
  8. package/dist/ai/docs/Checkbox.md +199 -0
  9. package/dist/ai/docs/CommandPalette.md +293 -0
  10. package/dist/ai/docs/DatePicker.md +171 -0
  11. package/dist/ai/docs/Dropdown.md +223 -0
  12. package/dist/ai/docs/Empty.md +163 -0
  13. package/dist/ai/docs/Expand.md +143 -0
  14. package/dist/ai/docs/FileUpload.md +225 -0
  15. package/dist/ai/docs/Form.md +107 -0
  16. package/dist/ai/docs/FormReset.md +117 -0
  17. package/dist/ai/docs/Heading.md +88 -0
  18. package/dist/ai/docs/Input.md +237 -0
  19. package/dist/ai/docs/InputField.md +170 -0
  20. package/dist/ai/docs/List.md +205 -0
  21. package/dist/ai/docs/Menu.md +166 -0
  22. package/dist/ai/docs/Modal.md +280 -0
  23. package/dist/ai/docs/MultiSelect.md +196 -0
  24. package/dist/ai/docs/Notifications.md +231 -0
  25. package/dist/ai/docs/PageCalendar.md +271 -0
  26. package/dist/ai/docs/Polymorph.md +159 -0
  27. package/dist/ai/docs/Progress.md +145 -0
  28. package/dist/ai/docs/Radiobox.md +128 -0
  29. package/dist/ai/docs/RenderOnView.md +138 -0
  30. package/dist/ai/docs/Resizable.md +159 -0
  31. package/dist/ai/docs/Select.md +284 -0
  32. package/dist/ai/docs/Shortcut.md +105 -0
  33. package/dist/ai/docs/Skeleton.md +166 -0
  34. package/dist/ai/docs/Slider.md +144 -0
  35. package/dist/ai/docs/Slot.md +173 -0
  36. package/dist/ai/docs/Spinner.md +118 -0
  37. package/dist/ai/docs/Stats.md +137 -0
  38. package/dist/ai/docs/Step.md +159 -0
  39. package/dist/ai/docs/Switch.md +167 -0
  40. package/dist/ai/docs/Table.md +298 -0
  41. package/dist/ai/docs/Tabs.md +191 -0
  42. package/dist/ai/docs/Tag.md +224 -0
  43. package/dist/ai/docs/TaskList.md +144 -0
  44. package/dist/ai/docs/Textarea.md +167 -0
  45. package/dist/ai/docs/Timeline.md +210 -0
  46. package/dist/ai/docs/Toolbar.md +132 -0
  47. package/dist/ai/docs/Tooltip.md +231 -0
  48. package/dist/ai/docs/TransferList.md +142 -0
  49. package/dist/ai/docs/Typography.md +187 -0
  50. package/dist/ai/docs/Wizard.md +213 -0
  51. package/dist/ai/docs/index.md +183 -0
  52. package/dist/components/core/tag.d.ts +1 -1
  53. package/dist/components/core/tag.d.ts.map +1 -1
  54. package/dist/components/display/list.d.ts.map +1 -1
  55. package/dist/components/floating/dropdown.d.ts +1 -0
  56. package/dist/components/floating/dropdown.d.ts.map +1 -1
  57. package/dist/components/floating/menu.d.ts.map +1 -1
  58. package/dist/config/default-translations.d.ts +4 -4
  59. package/dist/hooks/use-translations.d.ts +4 -4
  60. package/dist/hooks/use-translations.d.ts.map +1 -1
  61. package/dist/index.css +1 -1
  62. package/dist/index.js +28 -20
  63. package/dist/index.js.map +1 -1
  64. package/dist/index.mjs +2463 -2458
  65. package/dist/index.mjs.map +1 -1
  66. package/dist/index.umd.js +12 -12
  67. package/dist/index.umd.js.map +1 -1
  68. package/package.json +4 -4
  69. package/dist/components/core/button.jsx +0 -79
  70. package/dist/components/core/heading.jsx +0 -4
  71. package/dist/components/core/polymorph.jsx +0 -5
  72. package/dist/components/core/render-on-view.jsx +0 -31
  73. package/dist/components/core/resizable.jsx +0 -51
  74. package/dist/components/core/slot.jsx +0 -156
  75. package/dist/components/core/tag.jsx +0 -51
  76. package/dist/components/core/typography.jsx +0 -22
  77. package/dist/components/display/alert.jsx +0 -58
  78. package/dist/components/display/calendar.jsx +0 -299
  79. package/dist/components/display/card.jsx +0 -43
  80. package/dist/components/display/empty.jsx +0 -11
  81. package/dist/components/display/list.jsx +0 -81
  82. package/dist/components/display/notifications.jsx +0 -126
  83. package/dist/components/display/progress.jsx +0 -11
  84. package/dist/components/display/shortcut.jsx +0 -23
  85. package/dist/components/display/skeleton.jsx +0 -12
  86. package/dist/components/display/spinner.jsx +0 -7
  87. package/dist/components/display/stats.jsx +0 -20
  88. package/dist/components/display/step.jsx +0 -131
  89. package/dist/components/display/tabs.jsx +0 -98
  90. package/dist/components/display/timeline.jsx +0 -25
  91. package/dist/components/floating/command-palette.jsx +0 -194
  92. package/dist/components/floating/dropdown.jsx +0 -53
  93. package/dist/components/floating/expand.jsx +0 -44
  94. package/dist/components/floating/menu.jsx +0 -147
  95. package/dist/components/floating/modal.jsx +0 -299
  96. package/dist/components/floating/toolbar.jsx +0 -5
  97. package/dist/components/floating/tooltip.jsx +0 -58
  98. package/dist/components/floating/wizard.jsx +0 -161
  99. package/dist/components/form/autocomplete.jsx +0 -279
  100. package/dist/components/form/checkbox.jsx +0 -12
  101. package/dist/components/form/date-picker.jsx +0 -115
  102. package/dist/components/form/file-upload.jsx +0 -133
  103. package/dist/components/form/form.jsx +0 -10
  104. package/dist/components/form/formReset.jsx +0 -17
  105. package/dist/components/form/free-text.jsx +0 -41
  106. package/dist/components/form/input-field.jsx +0 -56
  107. package/dist/components/form/input.jsx +0 -36
  108. package/dist/components/form/multi-select.jsx +0 -328
  109. package/dist/components/form/radiobox.jsx +0 -6
  110. package/dist/components/form/select.jsx +0 -42
  111. package/dist/components/form/slider.jsx +0 -45
  112. package/dist/components/form/switch.jsx +0 -46
  113. package/dist/components/form/task-list.jsx +0 -26
  114. package/dist/components/form/textarea.jsx +0 -12
  115. package/dist/components/form/transfer-list.jsx +0 -39
  116. package/dist/components/index.js +0 -45
  117. package/dist/components/page-calendar/calendar-header.jsx +0 -81
  118. package/dist/components/page-calendar/day-view.jsx +0 -87
  119. package/dist/components/page-calendar/event-pill.jsx +0 -25
  120. package/dist/components/page-calendar/index.js +0 -2
  121. package/dist/components/page-calendar/month-view.jsx +0 -47
  122. package/dist/components/page-calendar/page-calendar.jsx +0 -41
  123. package/dist/components/page-calendar/page-calendar.types.js +0 -1
  124. package/dist/components/page-calendar/page-calendar.utils.js +0 -71
  125. package/dist/components/page-calendar/week-view.jsx +0 -64
  126. package/dist/components/table/filter.jsx +0 -141
  127. package/dist/components/table/group.jsx +0 -68
  128. package/dist/components/table/index.jsx +0 -60
  129. package/dist/components/table/inner-table.jsx +0 -104
  130. package/dist/components/table/metadata.jsx +0 -36
  131. package/dist/components/table/pagination.jsx +0 -73
  132. package/dist/components/table/row.jsx +0 -58
  133. package/dist/components/table/sort.jsx +0 -105
  134. package/dist/components/table/table-lib.js +0 -83
  135. package/dist/components/table/table.context.jsx +0 -4
  136. package/dist/components/table/thead.jsx +0 -103
  137. package/dist/config/context.js +0 -12
  138. package/dist/config/default-translations.jsx +0 -83
  139. package/dist/config/default-tweaks.js +0 -4
  140. package/dist/constants.js +0 -2
  141. package/dist/hooks/use-click-outside.js +0 -17
  142. package/dist/hooks/use-color-parser.js +0 -9
  143. package/dist/hooks/use-components-provider.jsx +0 -19
  144. package/dist/hooks/use-debounce.js +0 -12
  145. package/dist/hooks/use-floating-ref.js +0 -6
  146. package/dist/hooks/use-form.js +0 -550
  147. package/dist/hooks/use-hover.js +0 -18
  148. package/dist/hooks/use-input-id.js +0 -5
  149. package/dist/hooks/use-is-coarse-device.js +0 -12
  150. package/dist/hooks/use-locale.js +0 -10
  151. package/dist/hooks/use-media-query.js +0 -25
  152. package/dist/hooks/use-on-event.js +0 -7
  153. package/dist/hooks/use-parent.js +0 -21
  154. package/dist/hooks/use-preferences.js +0 -23
  155. package/dist/hooks/use-previous.js +0 -9
  156. package/dist/hooks/use-reactive.js +0 -9
  157. package/dist/hooks/use-remove-scroll.js +0 -61
  158. package/dist/hooks/use-resize-observer.js +0 -17
  159. package/dist/hooks/use-stable-ref.js +0 -9
  160. package/dist/hooks/use-swipe.js +0 -17
  161. package/dist/hooks/use-translations.js +0 -9
  162. package/dist/hooks/use-tweaks.js +0 -9
  163. package/dist/hooks/use-window-size.js +0 -14
  164. package/dist/lib/combi-keys.js +0 -60
  165. package/dist/lib/dict.js +0 -39
  166. package/dist/lib/dom.js +0 -62
  167. package/dist/lib/fns.js +0 -46
  168. package/dist/lib/fzf.js +0 -117
  169. package/dist/lib/keyboard-area.js +0 -14
  170. package/dist/styles/common.js +0 -29
  171. package/dist/styles/dark.js +0 -214
  172. package/dist/styles/design-tokens.js +0 -69
  173. package/dist/styles/light.js +0 -214
  174. package/dist/styles/theme.js +0 -4
  175. package/dist/styles/theme.types.js +0 -1
  176. package/dist/types.js +0 -1
@@ -1,214 +0,0 @@
1
- import { rounded, spacing, zIndex } from "./common";
2
- export const DARK_THEME = {
3
- name: "dark",
4
- zIndex,
5
- rounded,
6
- spacing,
7
- shadow: {
8
- "shadow-notification": "1px 2px 2px 2px hsla(210, 15%, 20%, 0.15)",
9
- "shadow-floating": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
10
- "shadow-card": "0px 1px 1px 1px hsla(210, 25%, 20%, 0.1)",
11
- "shadow-table": "0px 1px 1px 1px hsla(210, 25%, 20%, 0.1)",
12
- },
13
- colors: {
14
- foreground: "hsla(240, 5%, 96%)",
15
- background: "hsla(240, 10%, 8%)",
16
- border: "hsla(240, 4%, 16%)",
17
- disabled: "hsla(240, 4%, 16%)",
18
- muted: {
19
- DEFAULT: "hsla(240, 4%, 16%)",
20
- foreground: "hsla(240, 5%, 65%)",
21
- subtle: "hsla(240, 5%, 65%)",
22
- hover: "hsla(240, 4%, 20%)",
23
- },
24
- emphasis: {
25
- foreground: "hsla(199, 89%, 48%)",
26
- DEFAULT: "hsla(199, 89%, 10%)",
27
- subtle: "hsla(199, 89%, 15%)",
28
- hover: "hsla(199, 89%, 40%)",
29
- },
30
- primary: {
31
- foreground: "hsla(240, 6%, 10%)",
32
- DEFAULT: "hsla(201,49%,54%)",
33
- subtle: "hsla(201,49%,36%)",
34
- hover: "hsla(201,49%,22%)",
35
- },
36
- secondary: {
37
- DEFAULT: "hsla(240, 5%, 96%)",
38
- background: "hsla(240, 4%, 16%)",
39
- subtle: "hsla(240, 4%, 20%)",
40
- hover: "hsla(240, 4%, 25%)",
41
- foreground: "hsla(240, 5%, 96%)",
42
- },
43
- info: {
44
- DEFAULT: "hsla(199, 89%, 48%)",
45
- subtle: "hsla(199, 89%, 15%)",
46
- hover: "hsla(199, 89%, 40%)",
47
- foreground: "hsla(0, 0%, 100%)",
48
- notification: "hsla(199, 89%, 48%)",
49
- },
50
- danger: {
51
- DEFAULT: "hsla(0, 84%, 60%)",
52
- subtle: "hsla(0, 84%, 15%)",
53
- hover: "hsla(0, 84%, 50%)",
54
- foreground: "hsla(0, 0%, 100%)",
55
- notification: "hsla(0, 84%, 60%)",
56
- },
57
- warn: {
58
- DEFAULT: "hsla(38, 92%, 50%)",
59
- subtle: "hsla(38, 92%, 15%)",
60
- hover: "hsla(38, 92%, 45%)",
61
- foreground: "hsla(240, 10%, 4%)",
62
- notification: "hsla(38, 92%, 50%)",
63
- },
64
- success: {
65
- DEFAULT: "hsla(142, 71%, 45%)",
66
- subtle: "hsla(142, 71%, 15%)",
67
- hover: "hsla(142, 71%, 40%)",
68
- foreground: "hsla(240, 10%, 4%)",
69
- notification: "hsla(142, 71%, 45%)",
70
- },
71
- input: {
72
- border: "hsla(240, 4%, 16%)",
73
- placeholder: "hsla(240, 5%, 65%)",
74
- "mask-error": "hsla(0, 84%, 20%)",
75
- "switch-bg": "hsla(240, 4%, 16%)",
76
- switch: "hsla(0, 0%, 100%)",
77
- slider: "hsla(0, 0%, 100%)",
78
- },
79
- card: {
80
- muted: "hsla(240, 4%, 10%)",
81
- border: "hsla(240, 4%, 11%)",
82
- background: "hsla(221, 16%, 9%)",
83
- },
84
- floating: {
85
- foreground: "hsla(240, 5%, 96%)",
86
- background: "hsla(240, 10%, 8%)",
87
- hover: "hsla(240, 4%, 16%)",
88
- border: "hsla(240, 4%, 16%)",
89
- overlay: "hsla(0, 0%, 0%)",
90
- },
91
- tooltip: {
92
- foreground: "hsla(240, 10%, 4%)",
93
- background: "hsla(0, 0%, 100%)",
94
- hover: "hsla(0, 0%, 100%)",
95
- border: "hsla(0, 0%, 100%)",
96
- overlay: "hsla(0, 0%, 0%)",
97
- },
98
- table: {
99
- header: "hsla(240, 4%, 10%)",
100
- border: "hsla(240, 4%, 16%)",
101
- background: "hsla(240, 10%, 4%)",
102
- },
103
- button: {
104
- primary: {
105
- text: "hsla(221, 52%, 100%)",
106
- bg: "hsla(201,49%,42%)",
107
- },
108
- warn: {
109
- text: "hsla(240, 10%, 4%)",
110
- bg: "hsla(38, 92%, 50%)",
111
- },
112
- info: {
113
- text: "hsla(0, 0%, 100%)",
114
- bg: "hsla(199, 89%, 48%)",
115
- },
116
- success: {
117
- text: "hsla(240, 10%, 4%)",
118
- bg: "hsla(142, 71%, 45%)",
119
- },
120
- danger: {
121
- text: "hsla(0, 0%, 100%)",
122
- bg: "hsla(0, 84%, 60%)",
123
- },
124
- muted: {
125
- text: "hsla(240, 5%, 96%)",
126
- bg: "hsla(240, 4%, 16%)",
127
- },
128
- neutral: {
129
- text: "hsla(240, 5%, 96%)",
130
- bg: "hsla(240, 4%, 16%)",
131
- },
132
- secondary: {
133
- text: "hsla(240, 10%, 4%)",
134
- bg: "hsla(0, 0%, 100%)",
135
- },
136
- },
137
- tag: {
138
- primary: {
139
- text: "hsla(0, 0%, 100%)",
140
- bg: "hsla(240, 4%, 20%)",
141
- },
142
- warn: {
143
- text: "hsla(38, 92%, 70%)",
144
- bg: "hsla(38, 92%, 15%)",
145
- },
146
- info: {
147
- text: "hsla(199, 89%, 70%)",
148
- bg: "hsla(199, 89%, 15%)",
149
- },
150
- success: {
151
- text: "hsla(142, 71%, 70%)",
152
- bg: "hsla(142, 71%, 15%)",
153
- },
154
- danger: {
155
- text: "hsla(0, 84%, 70%)",
156
- bg: "hsla(0, 84%, 15%)",
157
- },
158
- neutral: {
159
- text: "hsla(240, 5%, 96%)",
160
- bg: "hsla(240, 4%, 16%)",
161
- },
162
- secondary: {
163
- text: "hsla(240, 10%, 4%)",
164
- bg: "hsla(0, 0%, 100%)",
165
- },
166
- muted: {
167
- text: "hsla(240, 5%, 96%)",
168
- bg: "hsla(240, 4%, 16%)",
169
- },
170
- },
171
- alert: {
172
- primary: {
173
- text: "hsla(199, 89%, 80%)",
174
- border: "hsla(199, 89%, 25%)",
175
- bg: "hsla(199, 89%, 12%)",
176
- },
177
- warn: {
178
- bg: "hsla(38, 92%, 12%)",
179
- border: "hsla(38, 92%, 25%)",
180
- text: "hsla(38, 92%, 80%)",
181
- },
182
- info: {
183
- text: "hsla(199, 89%, 80%)",
184
- bg: "hsla(199, 89%, 12%)",
185
- border: "hsla(199, 89%, 25%)",
186
- },
187
- success: {
188
- text: "hsla(142, 71%, 80%)",
189
- bg: "hsla(142, 71%, 12%)",
190
- border: "hsla(142, 71%, 25%)",
191
- },
192
- danger: {
193
- text: "hsla(0, 84%, 80%)",
194
- bg: "hsla(0, 84%, 12%)",
195
- border: "hsla(0, 84%, 25%)",
196
- },
197
- neutral: {
198
- text: "hsla(240, 5%, 96%)",
199
- bg: "hsla(240, 4%, 16%)",
200
- border: "hsla(240, 4%, 20%)",
201
- },
202
- secondary: {
203
- text: "hsla(240, 10%, 4%)",
204
- bg: "hsla(0, 0%, 100%)",
205
- border: "hsla(0, 0%, 100%)",
206
- },
207
- muted: {
208
- bg: "hsla(240, 4%, 16%)",
209
- border: "hsla(240, 4%, 20%)",
210
- text: "hsla(240, 5%, 96%)",
211
- },
212
- },
213
- },
214
- };
@@ -1,69 +0,0 @@
1
- export const parsers = {
2
- hex: (v) => v,
3
- raw: (v) => v,
4
- hsl: (v) => `hsl(${v})`,
5
- rgb: (v) => `rgb(${v})`,
6
- z: (_, __, k) => `var(--z-${k})`,
7
- hsla: (v) => `hsla(${v})`,
8
- rgba: (v) => `rgba(${v})`,
9
- cssVariable: (_, __, k) => `var(--${k})`,
10
- formatWithVar: (format) => (_, __, v) => `${format}(var(--${v}), <alpha-value>)`,
11
- };
12
- export const reduceTokens = (colors, parse, prefix = "", append = "") => Object.entries(colors).reduce((acc, [key, value]) => {
13
- const combine = append === "" ? `${prefix}${key}` : `${append}-${key}`;
14
- if (typeof value === "string") {
15
- const k = append === "" ? `${prefix}${key}` : key;
16
- return acc.concat(parse(value, k, combine));
17
- }
18
- return acc.concat(reduceTokens(value, parse, prefix, combine));
19
- }, []);
20
- export const createDesignTokens = (colors, parse, prefix = "", append = "") => Object.entries(colors).reduce((acc, [key, value]) => {
21
- const combine = append === "" ? `${prefix}${key}` : `${append}-${key}`;
22
- if (typeof value === "string") {
23
- const k = append === "" ? `${prefix}${key}` : key;
24
- return { ...acc, [k]: parse(value, key, combine) };
25
- }
26
- return {
27
- ...acc,
28
- [key]: createDesignTokens(value, parse, prefix, combine),
29
- };
30
- }, {});
31
- const modifiers = {
32
- default: (variables) => `:root { ${variables} }`,
33
- dark: (variables) => `html.dark {${variables}}`,
34
- };
35
- const createStyleContent = (tokens, modifiers) => {
36
- const v = modifiers.value || ((_, s) => s);
37
- const content = tokens.map((token) => `${token.key}: ${v(token.key, token.value)}`).join(";");
38
- return modifiers.result(content);
39
- };
40
- export const createStyles = {
41
- default: (tokens) => createStyleContent(tokens, { result: modifiers.default }),
42
- dark: (tokens) => createStyleContent(tokens, { result: modifiers.dark }),
43
- };
44
- const fn = (p) => (value, _, key) => {
45
- const r = { key: `--${key}`, value: `${value}` };
46
- return p ? p(r) : r;
47
- };
48
- const zIndexParser = (t) => ({ key: t.key.replace(/^--/, "--z-"), value: t.value });
49
- const createTokens = (theme, map) => {
50
- const colors = reduceTokens(theme.colors, fn(map?.colors));
51
- const spacing = reduceTokens(theme.spacing, fn(map?.spacing));
52
- const rounded = reduceTokens(theme.rounded, fn(map?.rounded));
53
- const shadow = reduceTokens(theme.shadow, fn(map?.rounded));
54
- const zIndex = reduceTokens(theme.zIndex, fn(map?.zIndex ?? zIndexParser));
55
- const customTokens = theme.custom ? reduceTokens(theme.custom, fn(map?.customTokens)) : [];
56
- return colors.concat(spacing, rounded, customTokens, zIndex, shadow);
57
- };
58
- export const createTheme = (theme, name) => createStyleContent(createTokens(theme), {
59
- result: (variables) => `html${name ? `.${name}` : ""} {${variables}}`,
60
- value: (_, v) => v.replace("hsla(", "").replace(")", ""),
61
- });
62
- export const createCssProperties = (theme, map) => {
63
- const tokens = createTokens(theme, map);
64
- return tokens.reduce((acc, el) => ({ ...acc, [el.key]: el.value }), {});
65
- };
66
- export const createTokenStyles = (theme, map) => createStyleContent(createTokens(theme, map), {
67
- result: (variables) => `html${map?.name ? `.${map.name}` : ""} {${variables}}`,
68
- value: (_, v) => v,
69
- });
@@ -1,214 +0,0 @@
1
- import { rounded, spacing, zIndex } from "./common";
2
- export const LIGHT_THEME = {
3
- rounded,
4
- spacing,
5
- name: "light",
6
- shadow: {
7
- "shadow-notification": "1px 2px 2px 2px hsla(210, 25%, 40%, 0.15)",
8
- "shadow-floating": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
9
- "shadow-card": "0px 1px 2px 1px hsla(210, 25%, 20%, 0.1)",
10
- "shadow-table": "0px 1px 1px 1px hsla(210, 0%, 0%, 0.1)",
11
- },
12
- zIndex,
13
- colors: {
14
- foreground: "hsla(221, 15%, 23%)",
15
- background: "hsla(0, 0%, 100%)",
16
- border: "hsla(240, 6%, 90%)",
17
- muted: {
18
- DEFAULT: "hsla(240, 5%, 96%)",
19
- foreground: "hsla(240, 4%, 46%)",
20
- subtle: "hsla(240, 4%, 46%)",
21
- hover: "hsla(240, 5%, 96%)",
22
- },
23
- disabled: "hsla(240, 5%, 96%)",
24
- emphasis: {
25
- foreground: "hsla(199, 89%, 48%)",
26
- DEFAULT: "hsla(199, 89%, 96%)",
27
- subtle: "hsla(199, 89%, 92%)",
28
- hover: "hsla(199, 89%, 40%)",
29
- },
30
- primary: {
31
- foreground: "hsla(240, 6%, 10%)",
32
- DEFAULT: "hsla(201,49%,54%)",
33
- subtle: "hsla(201,49%,36%)",
34
- hover: "hsla(201,49%,22%)",
35
- },
36
- secondary: {
37
- background: "hsla(240, 5%, 96%)",
38
- DEFAULT: "hsla(240, 6%, 10%)",
39
- subtle: "hsla(240, 5%, 96%)",
40
- hover: "hsla(240, 6%, 15%)",
41
- foreground: "hsla(0, 0%, 100%)",
42
- },
43
- info: {
44
- DEFAULT: "hsla(199, 89%, 48%)",
45
- subtle: "hsla(199, 89%, 96%)",
46
- hover: "hsla(199, 89%, 40%)",
47
- foreground: "hsla(0, 0%, 100%)",
48
- notification: "hsla(199, 89%, 48%)",
49
- },
50
- danger: {
51
- DEFAULT: "hsla(0, 84%, 60%)",
52
- subtle: "hsla(0, 84%, 96%)",
53
- hover: "hsla(0, 84%, 50%)",
54
- foreground: "hsla(0, 0%, 100%)",
55
- notification: "hsla(0, 84%, 60%)",
56
- },
57
- warn: {
58
- DEFAULT: "hsla(38, 92%, 50%)",
59
- subtle: "hsla(38, 92%, 96%)",
60
- hover: "hsla(38, 92%, 45%)",
61
- foreground: "hsla(0, 0%, 100%)",
62
- notification: "hsla(38, 92%, 50%)",
63
- },
64
- success: {
65
- DEFAULT: "hsla(142, 71%, 45%)",
66
- subtle: "hsla(142, 71%, 96%)",
67
- hover: "hsla(142, 71%, 40%)",
68
- foreground: "hsla(0, 0%, 100%)",
69
- notification: "hsla(142, 71%, 45%)",
70
- },
71
- input: {
72
- border: "hsla(240, 6%, 90%)",
73
- placeholder: "hsla(240, 4%, 46%)",
74
- "mask-error": "hsla(0, 84%, 96%)",
75
- "switch-bg": "hsla(240, 6%, 90%)",
76
- switch: "hsla(0, 0%, 100%)",
77
- slider: "hsla(199, 89%, 48%)",
78
- },
79
- card: {
80
- muted: "hsla(240, 5%, 96%)",
81
- border: "hsla(240, 6%, 90%)",
82
- background: "hsla(0, 0%, 100%)",
83
- },
84
- floating: {
85
- foreground: "hsla(240, 10%, 4%)",
86
- background: "hsla(0, 0%, 100%)",
87
- hover: "hsla(240, 5%, 96%)",
88
- border: "hsla(240, 6%, 90%)",
89
- overlay: "hsla(240, 10%, 4%)",
90
- },
91
- tooltip: {
92
- foreground: "hsla(0, 0%, 100%)",
93
- background: "hsla(240, 10%, 4%)",
94
- hover: "hsla(240, 10%, 4%)",
95
- border: "hsla(240, 10%, 4%)",
96
- overlay: "hsla(0, 0%, 0%)",
97
- },
98
- table: {
99
- header: "hsla(240, 5%, 96%)",
100
- background: "hsla(0, 0%, 100%)",
101
- border: "hsla(240, 6%, 90%)",
102
- },
103
- button: {
104
- muted: {
105
- bg: "hsla(240, 5%, 96%)",
106
- text: "hsla(240, 6%, 10%)",
107
- },
108
- primary: {
109
- text: "hsla(0, 0%, 100%)",
110
- bg: "hsla(201,49%,54%)",
111
- },
112
- warn: {
113
- bg: "hsla(38, 92%, 50%)",
114
- text: "hsla(0, 0%, 100%)",
115
- },
116
- info: {
117
- text: "hsla(0, 0%, 100%)",
118
- bg: "hsla(199, 89%, 48%)",
119
- },
120
- success: {
121
- text: "hsla(0, 0%, 100%)",
122
- bg: "hsla(142, 71%, 45%)",
123
- },
124
- danger: {
125
- text: "hsla(0, 0%, 100%)",
126
- bg: "hsla(0, 84%, 60%)",
127
- },
128
- neutral: {
129
- text: "hsla(240, 6%, 10%)",
130
- bg: "hsla(240, 5%, 96%)",
131
- },
132
- secondary: {
133
- text: "hsla(0, 0%, 100%)",
134
- bg: "hsla(240, 6%, 10%)",
135
- },
136
- },
137
- tag: {
138
- muted: {
139
- bg: "hsla(240, 5%, 96%)",
140
- text: "hsla(240, 4%, 46%)",
141
- },
142
- primary: {
143
- text: "hsla(199, 89%, 48%)",
144
- bg: "hsla(199, 89%, 96%)",
145
- },
146
- warn: {
147
- bg: "hsla(38, 92%, 96%)",
148
- text: "hsla(38, 92%, 40%)",
149
- },
150
- info: {
151
- text: "hsla(199, 89%, 40%)",
152
- bg: "hsla(199, 89%, 96%)",
153
- },
154
- success: {
155
- text: "hsla(142, 71%, 35%)",
156
- bg: "hsla(142, 71%, 96%)",
157
- },
158
- danger: {
159
- text: "hsla(0, 84%, 45%)",
160
- bg: "hsla(0, 84%, 96%)",
161
- },
162
- neutral: {
163
- text: "hsla(240, 6%, 10%)",
164
- bg: "hsla(240, 5%, 96%)",
165
- },
166
- secondary: {
167
- text: "hsla(0, 0%, 100%)",
168
- bg: "hsla(240, 6%, 10%)",
169
- },
170
- },
171
- alert: {
172
- muted: {
173
- bg: "hsla(240, 5%, 96%)",
174
- text: "hsla(240, 6%, 10%)",
175
- border: "hsla(240, 6%, 90%)",
176
- },
177
- primary: {
178
- text: "hsla(199, 89%, 40%)",
179
- border: "hsla(199, 89%, 90%)",
180
- bg: "hsla(199, 89%, 98%)",
181
- },
182
- warn: {
183
- bg: "hsla(38, 92%, 98%)",
184
- text: "hsla(38, 92%, 35%)",
185
- border: "hsla(38, 92%, 90%)",
186
- },
187
- info: {
188
- text: "hsla(199, 89%, 35%)",
189
- bg: "hsla(199, 89%, 98%)",
190
- border: "hsla(199, 89%, 90%)",
191
- },
192
- success: {
193
- text: "hsla(142, 71%, 30%)",
194
- bg: "hsla(142, 71%, 98%)",
195
- border: "hsla(142, 71%, 90%)",
196
- },
197
- danger: {
198
- text: "hsla(0, 84%, 40%)",
199
- bg: "hsla(0, 84%, 98%)",
200
- border: "hsla(0, 84%, 90%)",
201
- },
202
- neutral: {
203
- text: "hsla(240, 6%, 10%)",
204
- bg: "hsla(240, 5%, 96%)",
205
- border: "hsla(240, 6%, 90%)",
206
- },
207
- secondary: {
208
- text: "hsla(0, 0%, 100%)",
209
- bg: "hsla(240, 6%, 10%)",
210
- border: "hsla(240, 6%, 10%)",
211
- },
212
- },
213
- },
214
- };
@@ -1,4 +0,0 @@
1
- import { DARK_THEME } from "./dark";
2
- import { LIGHT_THEME } from "./light";
3
- export const defaultDarkTheme = DARK_THEME;
4
- export const defaultLightTheme = LIGHT_THEME;
@@ -1 +0,0 @@
1
- export {};
package/dist/types.js DELETED
@@ -1 +0,0 @@
1
- export {};