@g4rcez/components 0.0.38 → 0.0.39
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/dist/index.css +1 -1
- package/dist/index.js +201 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3609 -3600
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +40 -40
- package/dist/index.umd.js.map +1 -1
- package/dist/preset.tailwind.d.ts +10 -0
- package/dist/preset.tailwind.d.ts.map +1 -0
- package/dist/preset.tailwind.js +53 -0
- package/dist/src/components/core/button.d.ts +16 -0
- package/dist/src/components/core/button.d.ts.map +1 -0
- package/dist/src/components/core/button.js +43 -0
- package/dist/src/components/core/polymorph.d.ts +10 -0
- package/dist/src/components/core/polymorph.d.ts.map +1 -0
- package/dist/src/components/core/polymorph.js +8 -0
- package/dist/src/components/core/resizable.d.ts +3 -0
- package/dist/src/components/core/resizable.d.ts.map +1 -0
- package/dist/src/components/core/resizable.js +50 -0
- package/dist/src/components/core/tag.d.ts +19 -0
- package/dist/src/components/core/tag.d.ts.map +1 -0
- package/dist/src/components/core/tag.js +45 -0
- package/dist/src/components/display/alert.d.ts +19 -0
- package/dist/src/components/display/alert.d.ts.map +1 -0
- package/dist/src/components/display/alert.js +34 -0
- package/dist/src/components/display/calendar.d.ts +42 -0
- package/dist/src/components/display/calendar.d.ts.map +1 -0
- package/dist/src/components/display/calendar.js +215 -0
- package/dist/src/components/display/card.d.ts +10 -0
- package/dist/src/components/display/card.d.ts.map +1 -0
- package/dist/src/components/display/card.js +8 -0
- package/dist/src/components/display/list.d.ts +16 -0
- package/dist/src/components/display/list.d.ts.map +1 -0
- package/dist/src/components/display/list.js +31 -0
- package/dist/src/components/display/notifications.d.ts +25 -0
- package/dist/src/components/display/notifications.d.ts.map +1 -0
- package/dist/src/components/display/notifications.js +70 -0
- package/dist/src/components/display/stats.d.ts +10 -0
- package/dist/src/components/display/stats.d.ts.map +1 -0
- package/dist/src/components/display/stats.js +5 -0
- package/dist/src/components/display/step.d.ts +14 -0
- package/dist/src/components/display/step.d.ts.map +1 -0
- package/dist/src/components/display/step.js +59 -0
- package/dist/src/components/display/tabs.d.ts +20 -0
- package/dist/src/components/display/tabs.d.ts.map +1 -0
- package/dist/src/components/display/tabs.js +67 -0
- package/dist/src/components/display/timeline.d.ts +32 -0
- package/dist/src/components/display/timeline.d.ts.map +1 -0
- package/dist/src/components/display/timeline.js +21 -0
- package/dist/src/components/floating/dropdown.d.ts +14 -0
- package/dist/src/components/floating/dropdown.d.ts.map +1 -0
- package/dist/src/components/floating/dropdown.js +39 -0
- package/dist/src/components/floating/expand.d.ts +9 -0
- package/dist/src/components/floating/expand.d.ts.map +1 -0
- package/dist/src/components/floating/expand.js +25 -0
- package/dist/src/components/floating/menu.d.ts +52 -0
- package/dist/src/components/floating/menu.d.ts.map +1 -0
- package/dist/src/components/floating/menu.js +126 -0
- package/dist/src/components/floating/modal.d.ts +19 -0
- package/dist/src/components/floating/modal.d.ts.map +1 -0
- package/dist/src/components/floating/modal.js +102 -0
- package/dist/src/components/floating/toolbar.d.ts +6 -0
- package/dist/src/components/floating/toolbar.d.ts.map +1 -0
- package/dist/src/components/floating/toolbar.js +4 -0
- package/dist/src/components/floating/tooltip.d.ts +12 -0
- package/dist/src/components/floating/tooltip.d.ts.map +1 -0
- package/dist/src/components/floating/tooltip.js +28 -0
- package/dist/src/components/form/autocomplete.d.ts +17 -0
- package/dist/src/components/form/autocomplete.d.ts.map +1 -0
- package/dist/src/components/form/autocomplete.js +152 -0
- package/dist/src/components/form/checkbox.d.ts +11 -0
- package/dist/src/components/form/checkbox.d.ts.map +1 -0
- package/dist/src/components/form/checkbox.js +8 -0
- package/dist/src/components/form/date-picker.d.ts +61 -0
- package/dist/src/components/form/date-picker.d.ts.map +1 -0
- package/dist/src/components/form/date-picker.js +78 -0
- package/dist/src/components/form/file-upload.d.ts +12 -0
- package/dist/src/components/form/file-upload.d.ts.map +1 -0
- package/dist/src/components/form/file-upload.js +62 -0
- package/dist/src/components/form/form.d.ts +4 -0
- package/dist/src/components/form/form.d.ts.map +1 -0
- package/dist/src/components/form/form.js +28 -0
- package/dist/src/components/form/input-field.d.ts +30 -0
- package/dist/src/components/form/input-field.d.ts.map +1 -0
- package/dist/src/components/form/input-field.js +14 -0
- package/dist/src/components/form/input.d.ts +9 -0
- package/dist/src/components/form/input.d.ts.map +1 -0
- package/dist/src/components/form/input.js +38 -0
- package/dist/src/components/form/radiobox.d.ts +7 -0
- package/dist/src/components/form/radiobox.d.ts.map +1 -0
- package/dist/src/components/form/radiobox.js +7 -0
- package/dist/src/components/form/select.d.ts +13 -0
- package/dist/src/components/form/select.d.ts.map +1 -0
- package/dist/src/components/form/select.js +33 -0
- package/dist/src/components/form/switch.d.ts +8 -0
- package/dist/src/components/form/switch.d.ts.map +1 -0
- package/dist/src/components/form/switch.js +39 -0
- package/dist/src/components/form/task-list.d.ts +3 -0
- package/dist/src/components/form/task-list.d.ts.map +1 -0
- package/dist/src/components/form/task-list.js +26 -0
- package/dist/src/components/form/transfer-list.d.ts +14 -0
- package/dist/src/components/form/transfer-list.d.ts.map +1 -0
- package/dist/src/components/form/transfer-list.js +21 -0
- package/dist/src/components/index.d.ts +30 -0
- package/dist/src/components/index.d.ts.map +1 -0
- package/dist/src/components/index.js +29 -0
- package/dist/src/components/table/filter.d.ts +41 -0
- package/dist/src/components/table/filter.d.ts.map +1 -0
- package/dist/src/components/table/filter.js +91 -0
- package/dist/src/components/table/group.d.ts +17 -0
- package/dist/src/components/table/group.d.ts.map +1 -0
- package/dist/src/components/table/group.js +43 -0
- package/dist/src/components/table/index.d.ts +38 -0
- package/dist/src/components/table/index.d.ts.map +1 -0
- package/dist/src/components/table/index.js +145 -0
- package/dist/src/components/table/metadata.d.ts +3 -0
- package/dist/src/components/table/metadata.d.ts.map +1 -0
- package/dist/src/components/table/metadata.js +10 -0
- package/dist/src/components/table/pagination.d.ts +3 -0
- package/dist/src/components/table/pagination.d.ts.map +1 -0
- package/dist/src/components/table/pagination.js +43 -0
- package/dist/src/components/table/sort.d.ts +28 -0
- package/dist/src/components/table/sort.d.ts.map +1 -0
- package/dist/src/components/table/sort.js +79 -0
- package/dist/src/components/table/table-lib.d.ts +122 -0
- package/dist/src/components/table/table-lib.d.ts.map +1 -0
- package/dist/src/components/table/table-lib.js +51 -0
- package/dist/src/components/table/thead.d.ts +8 -0
- package/dist/src/components/table/thead.d.ts.map +1 -0
- package/dist/src/components/table/thead.js +29 -0
- package/dist/src/constants.d.ts +3 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/constants.js +2 -0
- package/dist/src/hooks/use-callback-ref.d.ts +3 -0
- package/dist/src/hooks/use-callback-ref.d.ts.map +1 -0
- package/dist/src/hooks/use-callback-ref.js +8 -0
- package/dist/src/hooks/use-click-outside.d.ts +3 -0
- package/dist/src/hooks/use-click-outside.d.ts.map +1 -0
- package/dist/src/hooks/use-click-outside.js +17 -0
- package/dist/src/hooks/use-debounce.d.ts +4 -0
- package/dist/src/hooks/use-debounce.d.ts.map +1 -0
- package/dist/src/hooks/use-debounce.js +12 -0
- package/dist/src/hooks/use-form.d.ts +41 -0
- package/dist/src/hooks/use-form.d.ts.map +1 -0
- package/dist/src/hooks/use-form.js +169 -0
- package/dist/src/hooks/use-hover.d.ts +3 -0
- package/dist/src/hooks/use-hover.d.ts.map +1 -0
- package/dist/src/hooks/use-hover.js +18 -0
- package/dist/src/hooks/use-media-query.d.ts +2 -0
- package/dist/src/hooks/use-media-query.d.ts.map +1 -0
- package/dist/src/hooks/use-media-query.js +25 -0
- package/dist/src/hooks/use-mutable-state.d.ts +2 -0
- package/dist/src/hooks/use-mutable-state.d.ts.map +1 -0
- package/dist/src/hooks/use-mutable-state.js +8 -0
- package/dist/src/hooks/use-on-event.d.ts +4 -0
- package/dist/src/hooks/use-on-event.d.ts.map +1 -0
- package/dist/src/hooks/use-on-event.js +7 -0
- package/dist/src/hooks/use-parent.d.ts +3 -0
- package/dist/src/hooks/use-parent.d.ts.map +1 -0
- package/dist/src/hooks/use-parent.js +21 -0
- package/dist/src/hooks/use-previous.d.ts +2 -0
- package/dist/src/hooks/use-previous.d.ts.map +1 -0
- package/dist/src/hooks/use-previous.js +8 -0
- package/dist/src/hooks/use-reactive.d.ts +2 -0
- package/dist/src/hooks/use-reactive.d.ts.map +1 -0
- package/dist/src/hooks/use-reactive.js +8 -0
- package/dist/src/hooks/use-stable-ref.d.ts +2 -0
- package/dist/src/hooks/use-stable-ref.d.ts.map +1 -0
- package/dist/src/hooks/use-stable-ref.js +8 -0
- package/dist/src/hooks/use-translate-context.d.ts +103 -0
- package/dist/src/hooks/use-translate-context.d.ts.map +1 -0
- package/dist/src/hooks/use-translate-context.js +63 -0
- package/dist/src/index.d.ts +12 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +10 -0
- package/dist/src/lib/dom.d.ts +9 -0
- package/dist/src/lib/dom.d.ts.map +1 -0
- package/dist/src/lib/dom.js +34 -0
- package/dist/src/lib/fns.d.ts +7 -0
- package/dist/src/lib/fns.d.ts.map +1 -0
- package/dist/src/lib/fns.js +26 -0
- package/dist/src/styles/design-tokens.d.ts +19 -0
- package/dist/src/styles/design-tokens.d.ts.map +1 -0
- package/dist/src/styles/design-tokens.js +52 -0
- package/dist/src/styles/theme.d.ts +4 -0
- package/dist/src/styles/theme.d.ts.map +1 -0
- package/dist/src/styles/theme.js +294 -0
- package/dist/src/styles/theme.types.d.ts +101 -0
- package/dist/src/styles/theme.types.d.ts.map +1 -0
- package/dist/src/styles/theme.types.js +1 -0
- package/dist/src/types.d.ts +10 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
const rounded = {
|
|
2
|
+
button: "0.4rem",
|
|
3
|
+
pill: "2rem",
|
|
4
|
+
card: "0.75rem",
|
|
5
|
+
full: "9999px",
|
|
6
|
+
};
|
|
7
|
+
const spacing = {
|
|
8
|
+
base: "1rem",
|
|
9
|
+
lg: "1.5rem",
|
|
10
|
+
sm: "0.75rem",
|
|
11
|
+
"input-height": "2.5rem",
|
|
12
|
+
"input-x": "0.5rem",
|
|
13
|
+
"input-y": "0.25rem",
|
|
14
|
+
"input-inline": "0.25rem",
|
|
15
|
+
"input-gap": "0.375rem",
|
|
16
|
+
};
|
|
17
|
+
export const defaultDarkTheme = {
|
|
18
|
+
name: "dark",
|
|
19
|
+
rounded,
|
|
20
|
+
spacing,
|
|
21
|
+
shadow: {
|
|
22
|
+
floating: "rgba(15, 15, 15, 0.1) 0px 0px 0px 1px, rgba(15, 15, 15, 0.1) 0px 3px 6px, rgba(15, 15, 15, 0.2) 0px 5px 12px",
|
|
23
|
+
},
|
|
24
|
+
colors: {
|
|
25
|
+
foreground: "hsla(210, 50%, 98%)",
|
|
26
|
+
background: "hsla(0, 0%, 9%)",
|
|
27
|
+
disabled: "hsla(240, 4%, 33%)",
|
|
28
|
+
primary: {
|
|
29
|
+
foreground: "hsla(210, 40%, 98%)",
|
|
30
|
+
DEFAULT: "hsla(200,98%,39%)",
|
|
31
|
+
subtle: "hsla(199, 95%, 87%)",
|
|
32
|
+
hover: "hsla(199, 97%, 40%)",
|
|
33
|
+
},
|
|
34
|
+
secondary: {
|
|
35
|
+
DEFAULT: "hsla(210, 32%, 70%)",
|
|
36
|
+
background: "hsla(210, 30%, 81%)",
|
|
37
|
+
subtle: "hsla(210, 27%, 88%)",
|
|
38
|
+
hover: "hsla(210, 10%, 58%)",
|
|
39
|
+
foreground: "hsla(210, 20%, 30%)",
|
|
40
|
+
},
|
|
41
|
+
info: {
|
|
42
|
+
DEFAULT: "hsla(219, 91%, 59%)",
|
|
43
|
+
subtle: "hsla(219, 93%, 77%)",
|
|
44
|
+
hover: "hsla(219, 83%, 41%)",
|
|
45
|
+
foreground: "hsla(210, 40%, 98%)",
|
|
46
|
+
notification: "hsla(219, 91%, 59%)",
|
|
47
|
+
},
|
|
48
|
+
warn: {
|
|
49
|
+
DEFAULT: "hsla(27, 96%, 61%)",
|
|
50
|
+
subtle: "hsla(45, 95%, 66%)",
|
|
51
|
+
hover: "hsla(21, 90%, 48%)",
|
|
52
|
+
foreground: "hsla(210, 40%, 98%)",
|
|
53
|
+
notification: "hsla(32, 65%, 75%)",
|
|
54
|
+
},
|
|
55
|
+
danger: {
|
|
56
|
+
DEFAULT: "hsla(358, 65%, 57%)",
|
|
57
|
+
subtle: "hsla(0, 94%, 81%)",
|
|
58
|
+
hover: "hsla(0, 82%, 47%)",
|
|
59
|
+
foreground: "hsla(210, 40%, 98%)",
|
|
60
|
+
notification: "hsla(358, 40%, 23%)",
|
|
61
|
+
},
|
|
62
|
+
success: {
|
|
63
|
+
DEFAULT: "hsla(160, 73%, 36%)",
|
|
64
|
+
subtle: "hsla(160, 75%, 75%)",
|
|
65
|
+
hover: "hsla(160, 91%, 27%)",
|
|
66
|
+
foreground: "hsla(160, 91%, 50%)",
|
|
67
|
+
notification: "hsla(161,62%,17%)",
|
|
68
|
+
},
|
|
69
|
+
input: {
|
|
70
|
+
border: "hsla(240, 4%, 25%)",
|
|
71
|
+
placeholder: "hsla(210, 24%, 71%)",
|
|
72
|
+
"mask-error": "hsla(0, 94%, 81%)",
|
|
73
|
+
"switch-bg": "hsla(0, 0%, 9%)",
|
|
74
|
+
switch: "hsla(0, 0%, 100%)",
|
|
75
|
+
},
|
|
76
|
+
card: {
|
|
77
|
+
background: "hsla(0, 0%, 15%)",
|
|
78
|
+
border: "hsla(240, 7%, 27%)",
|
|
79
|
+
},
|
|
80
|
+
floating: {
|
|
81
|
+
background: "hsla(0, 0%, 14%)",
|
|
82
|
+
border: "hsla(240, 7%, 27%)",
|
|
83
|
+
overlay: "hsla(0, 0%, 0%)",
|
|
84
|
+
},
|
|
85
|
+
tooltip: {
|
|
86
|
+
foreground: "hsla(210, 40%, 98%)",
|
|
87
|
+
background: "hsla(0, 0%, 8%)",
|
|
88
|
+
border: "hsla(0, 0%, 19%)",
|
|
89
|
+
},
|
|
90
|
+
table: {
|
|
91
|
+
background: "hsla(0, 0%, 15%)",
|
|
92
|
+
border: "hsla(240, 4%, 33%)",
|
|
93
|
+
},
|
|
94
|
+
button: {
|
|
95
|
+
primary: {
|
|
96
|
+
text: "hsla(200,98%,60%)",
|
|
97
|
+
bg: "hsla(200,28%,19%)",
|
|
98
|
+
},
|
|
99
|
+
warn: {
|
|
100
|
+
text: "hsla(26,100%,67%)",
|
|
101
|
+
bg: "hsla(37,100%,15%)",
|
|
102
|
+
},
|
|
103
|
+
info: {
|
|
104
|
+
text: "hsla(200,80%,70%)",
|
|
105
|
+
bg: "hsla(206,66%,24%)",
|
|
106
|
+
},
|
|
107
|
+
success: {
|
|
108
|
+
text: "hsla(151,65%,54%)",
|
|
109
|
+
bg: "hsla(154,52%,19%)",
|
|
110
|
+
},
|
|
111
|
+
danger: {
|
|
112
|
+
text: "hsla(2,100%,90%)",
|
|
113
|
+
bg: "hsla(5,62%,23%)",
|
|
114
|
+
},
|
|
115
|
+
neutral: {
|
|
116
|
+
text: "hsla(200,98%,60%)",
|
|
117
|
+
bg: "hsla(200,28%,19%)",
|
|
118
|
+
},
|
|
119
|
+
secondary: {
|
|
120
|
+
text: "hsla(216,10%,90%)",
|
|
121
|
+
bg: "hsla(214,7%,19%)",
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
tag: {
|
|
125
|
+
primary: {
|
|
126
|
+
text: "hsla(200,98%,60%)",
|
|
127
|
+
bg: "hsla(200,28%,19%)",
|
|
128
|
+
},
|
|
129
|
+
warn: {
|
|
130
|
+
text: "hsla(26,100%,67%)",
|
|
131
|
+
bg: "hsla(37,100%,15%)",
|
|
132
|
+
},
|
|
133
|
+
info: {
|
|
134
|
+
text: "hsla(200,80%,70%)",
|
|
135
|
+
bg: "hsla(206,66%,24%)",
|
|
136
|
+
},
|
|
137
|
+
success: {
|
|
138
|
+
text: "hsla(151,65%,54%)",
|
|
139
|
+
bg: "hsla(154,52%,19%)",
|
|
140
|
+
},
|
|
141
|
+
danger: {
|
|
142
|
+
text: "hsla(2,100%,79%)",
|
|
143
|
+
bg: "hsla(5,62%,23%)",
|
|
144
|
+
},
|
|
145
|
+
neutral: {
|
|
146
|
+
text: "hsla(200,98%,60%)",
|
|
147
|
+
bg: "hsla(200,28%,19%)",
|
|
148
|
+
},
|
|
149
|
+
secondary: {
|
|
150
|
+
text: "hsla(216,10%,90%)",
|
|
151
|
+
bg: "hsla(214,7%,19%)",
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
};
|
|
156
|
+
export const defaultLightTheme = {
|
|
157
|
+
name: "light",
|
|
158
|
+
rounded,
|
|
159
|
+
spacing,
|
|
160
|
+
shadow: {
|
|
161
|
+
floating: "rgba(50, 50, 50, 0.1) 0px 0px 0px 1px, rgba(50, 50, 50, 0.1) 0px 3px 6px, rgba(50, 50, 50, 0.1) 0px 2px 3px",
|
|
162
|
+
},
|
|
163
|
+
colors: {
|
|
164
|
+
foreground: "hsla(217, 15%, 30%)",
|
|
165
|
+
background: "hsla(210, 34%, 96%)",
|
|
166
|
+
disabled: "hsla(240, 10%, 78%)",
|
|
167
|
+
primary: {
|
|
168
|
+
foreground: "hsla(210, 40%, 98%)",
|
|
169
|
+
DEFAULT: "hsla(199, 89%, 54%)",
|
|
170
|
+
subtle: "hsla(199, 95%, 87%)",
|
|
171
|
+
hover: "hsla(199, 97%, 40%)",
|
|
172
|
+
},
|
|
173
|
+
secondary: {
|
|
174
|
+
background: "hsla(210, 25%, 35%)",
|
|
175
|
+
DEFAULT: "hsla(210, 25%, 35%)",
|
|
176
|
+
subtle: "hsla(207, 29%, 39%)",
|
|
177
|
+
hover: "hsla(210, 21%, 67%)",
|
|
178
|
+
foreground: "hsla(210, 40%, 98%)",
|
|
179
|
+
},
|
|
180
|
+
info: {
|
|
181
|
+
DEFAULT: "hsla(219, 91%, 59%)",
|
|
182
|
+
subtle: "hsla(219, 70%, 90%)",
|
|
183
|
+
hover: "hsla(219, 83%, 41%)",
|
|
184
|
+
foreground: "hsla(210, 34%, 96%)",
|
|
185
|
+
notification: "hsla(219, 91%, 59%)",
|
|
186
|
+
},
|
|
187
|
+
danger: {
|
|
188
|
+
DEFAULT: "hsla(0, 82%, 63%)",
|
|
189
|
+
subtle: "hsla(0, 96%, 95%)",
|
|
190
|
+
hover: "hsla(0, 82%, 47%)",
|
|
191
|
+
foreground: "hsla(210, 34%, 96%)",
|
|
192
|
+
notification: "hsla(0, 100%, 87%)",
|
|
193
|
+
},
|
|
194
|
+
warn: {
|
|
195
|
+
DEFAULT: "hsla(27, 100%, 70%)",
|
|
196
|
+
subtle: "hsla(45, 95%, 80%)",
|
|
197
|
+
hover: "hsla(29, 85%, 50%)",
|
|
198
|
+
foreground: "hsla(210, 34%, 96%)",
|
|
199
|
+
notification: "hsla(27, 85%, 92%)",
|
|
200
|
+
},
|
|
201
|
+
success: {
|
|
202
|
+
DEFAULT: "hsla(160, 73%, 36%)",
|
|
203
|
+
subtle: "hsla(160, 75%, 90%)",
|
|
204
|
+
hover: "hsla(160, 91%, 27%)",
|
|
205
|
+
foreground: "hsla(160, 91%, 17%)",
|
|
206
|
+
notification: "hsla(160, 75%, 80%)",
|
|
207
|
+
},
|
|
208
|
+
input: {
|
|
209
|
+
border: "hsla(218, 22%, 85%)",
|
|
210
|
+
placeholder: "hsla(210, 24%, 71%)",
|
|
211
|
+
"mask-error": "hsla(0, 94%, 81%)",
|
|
212
|
+
"switch-bg": "hsla(0, 0%, 45%)",
|
|
213
|
+
switch: "hsla(0, 0%, 100%)",
|
|
214
|
+
},
|
|
215
|
+
card: {
|
|
216
|
+
background: "hsla(0, 0%, 100%)",
|
|
217
|
+
border: "hsla(210, 25%, 88%)",
|
|
218
|
+
},
|
|
219
|
+
floating: {
|
|
220
|
+
background: "hsla(0, 0%, 100%)",
|
|
221
|
+
border: "hsla(210, 25%, 88%)",
|
|
222
|
+
overlay: "hsla(0, 0%, 0%)",
|
|
223
|
+
},
|
|
224
|
+
tooltip: {
|
|
225
|
+
foreground: "hsla(217, 15%, 20%)",
|
|
226
|
+
background: "hsla(210, 25%, 98%)",
|
|
227
|
+
border: "hsla(200, 1%, 80%)",
|
|
228
|
+
},
|
|
229
|
+
table: {
|
|
230
|
+
background: "hsla(0, 0%, 100%)",
|
|
231
|
+
border: "hsla(210, 25%, 88%)",
|
|
232
|
+
},
|
|
233
|
+
button: {
|
|
234
|
+
primary: {
|
|
235
|
+
text: "hsla(0, 0%, 100%)",
|
|
236
|
+
bg: "hsla(207,96%,48%)",
|
|
237
|
+
},
|
|
238
|
+
warn: {
|
|
239
|
+
bg: "hsla(26,90%,60%)",
|
|
240
|
+
text: "hsla(0, 0%, 100%)",
|
|
241
|
+
},
|
|
242
|
+
info: {
|
|
243
|
+
text: "hsla(0, 0%, 100%)",
|
|
244
|
+
bg: "hsla(210,60%,60%)",
|
|
245
|
+
},
|
|
246
|
+
success: {
|
|
247
|
+
text: "hsla(0, 0%, 100%)",
|
|
248
|
+
bg: "hsla(152,56%,39%)",
|
|
249
|
+
},
|
|
250
|
+
danger: {
|
|
251
|
+
text: "hsla(0, 0%, 100%)",
|
|
252
|
+
bg: "hsla(10,78%,54%)",
|
|
253
|
+
},
|
|
254
|
+
neutral: {
|
|
255
|
+
text: "hsla(200,98%,60%)",
|
|
256
|
+
bg: "hsla(200,28%,19%)",
|
|
257
|
+
},
|
|
258
|
+
secondary: {
|
|
259
|
+
text: "hsla(216,10%,90%)",
|
|
260
|
+
bg: "hsla(214,7%,19%)",
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
tag: {
|
|
264
|
+
primary: {
|
|
265
|
+
text: "hsla(0, 0%, 100%)",
|
|
266
|
+
bg: "hsla(207,70%,55%)",
|
|
267
|
+
},
|
|
268
|
+
warn: {
|
|
269
|
+
bg: "hsla(30,100%,82%)",
|
|
270
|
+
text: "hsla(23,100%,40%)",
|
|
271
|
+
},
|
|
272
|
+
info: {
|
|
273
|
+
text: "hsla(196,100%,20%)",
|
|
274
|
+
bg: "hsla(197,65%,80%)",
|
|
275
|
+
},
|
|
276
|
+
success: {
|
|
277
|
+
text: "hsla(154,52%,19%)",
|
|
278
|
+
bg: "hsla(152,56%,80%)",
|
|
279
|
+
},
|
|
280
|
+
danger: {
|
|
281
|
+
text: "hsla(10,82%,45%)",
|
|
282
|
+
bg: "hsla(359,94%,92%)",
|
|
283
|
+
},
|
|
284
|
+
neutral: {
|
|
285
|
+
text: "hsla(200,98%,60%)",
|
|
286
|
+
bg: "hsla(200,28%,19%)",
|
|
287
|
+
},
|
|
288
|
+
secondary: {
|
|
289
|
+
text: "hsla(216,10%,90%)",
|
|
290
|
+
bg: "hsla(214,7%,19%)",
|
|
291
|
+
},
|
|
292
|
+
},
|
|
293
|
+
},
|
|
294
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export type GeneralTokens = {
|
|
2
|
+
[K in string]: string | GeneralTokens;
|
|
3
|
+
};
|
|
4
|
+
type ThemeState = "primary" | "warn" | "secondary" | "info" | "danger" | "success" | "neutral";
|
|
5
|
+
export type DesignTokens = {
|
|
6
|
+
name: string;
|
|
7
|
+
shadow: Record<"floating", string>;
|
|
8
|
+
rounded: Record<"button" | "full" | "pill" | "card", string>;
|
|
9
|
+
spacing: Record<"base" | "lg" | "sm", string>;
|
|
10
|
+
colors: {
|
|
11
|
+
tag: Record<ThemeState, {
|
|
12
|
+
text: string;
|
|
13
|
+
bg: string;
|
|
14
|
+
}>;
|
|
15
|
+
button: Record<ThemeState, {
|
|
16
|
+
text: string;
|
|
17
|
+
bg: string;
|
|
18
|
+
}>;
|
|
19
|
+
foreground: string;
|
|
20
|
+
background: string;
|
|
21
|
+
disabled: string;
|
|
22
|
+
primary: {
|
|
23
|
+
foreground: string;
|
|
24
|
+
DEFAULT: string;
|
|
25
|
+
subtle: string;
|
|
26
|
+
hover: string;
|
|
27
|
+
};
|
|
28
|
+
warn: {
|
|
29
|
+
DEFAULT: string;
|
|
30
|
+
subtle: string;
|
|
31
|
+
hover: string;
|
|
32
|
+
foreground: string;
|
|
33
|
+
notification: string;
|
|
34
|
+
};
|
|
35
|
+
secondary: {
|
|
36
|
+
DEFAULT: string;
|
|
37
|
+
background: string;
|
|
38
|
+
subtle: string;
|
|
39
|
+
hover: string;
|
|
40
|
+
foreground: string;
|
|
41
|
+
};
|
|
42
|
+
info: {
|
|
43
|
+
DEFAULT: string;
|
|
44
|
+
subtle: string;
|
|
45
|
+
hover: string;
|
|
46
|
+
foreground: string;
|
|
47
|
+
notification: string;
|
|
48
|
+
};
|
|
49
|
+
danger: {
|
|
50
|
+
DEFAULT: string;
|
|
51
|
+
subtle: string;
|
|
52
|
+
hover: string;
|
|
53
|
+
foreground: string;
|
|
54
|
+
notification: string;
|
|
55
|
+
};
|
|
56
|
+
success: {
|
|
57
|
+
DEFAULT: string;
|
|
58
|
+
subtle: string;
|
|
59
|
+
hover: string;
|
|
60
|
+
foreground: string;
|
|
61
|
+
notification: string;
|
|
62
|
+
};
|
|
63
|
+
input: {
|
|
64
|
+
border: string;
|
|
65
|
+
placeholder: string;
|
|
66
|
+
"mask-error": string;
|
|
67
|
+
"switch-bg": string;
|
|
68
|
+
switch: string;
|
|
69
|
+
};
|
|
70
|
+
card: {
|
|
71
|
+
background: string;
|
|
72
|
+
border: string;
|
|
73
|
+
};
|
|
74
|
+
floating: {
|
|
75
|
+
background: string;
|
|
76
|
+
border: string;
|
|
77
|
+
overlay: string;
|
|
78
|
+
};
|
|
79
|
+
tooltip: {
|
|
80
|
+
foreground: string;
|
|
81
|
+
background: string;
|
|
82
|
+
border: string;
|
|
83
|
+
};
|
|
84
|
+
table: {
|
|
85
|
+
background: string;
|
|
86
|
+
border: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
export type Token = {
|
|
91
|
+
key: string;
|
|
92
|
+
value: string;
|
|
93
|
+
};
|
|
94
|
+
export type DesignTokensParser = ((value: string, key: string, combine: string) => string) | ((format: string) => (value: string, key: string, combine: string) => string);
|
|
95
|
+
export type DesignTokensBuilder = (value: string, key: string, combine: string) => Token;
|
|
96
|
+
type Fn = (...a: any[]) => any;
|
|
97
|
+
export type DeepParse<T extends GeneralTokens, F extends Fn> = {
|
|
98
|
+
[K in keyof T]: T[K] extends GeneralTokens ? DeepParse<T[K], F> : ReturnType<Fn>;
|
|
99
|
+
};
|
|
100
|
+
export {};
|
|
101
|
+
//# sourceMappingURL=theme.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.types.d.ts","sourceRoot":"","sources":["../../../src/styles/theme.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;KAAG,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,aAAa;CAAE,CAAC;AAEtE,KAAK,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AAE/F,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7D,OAAO,EAAE,MAAM,CAAC,MAAM,GAAG,IAAI,GAAG,IAAI,EAAE,MAAM,CAAC,CAAC;IAC9C,MAAM,EAAE;QACJ,GAAG,EAAE,MAAM,CAAC,UAAU,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,EAAE,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QACtD,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,EAAE,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QACzD,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,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AC,EAAE,CAAC;CACnF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Dispatch, JSX, JSXElementConstructor, SetStateAction } from "react";
|
|
2
|
+
export type Label = React.ReactNode | React.ReactElement | JSX.Element;
|
|
3
|
+
export type Merge<T> = {
|
|
4
|
+
[K in keyof T]: T[K];
|
|
5
|
+
} & {};
|
|
6
|
+
export type Override<Source, New> = Omit<Source, keyof New> & New;
|
|
7
|
+
export type SetState<T> = Dispatch<SetStateAction<T>>;
|
|
8
|
+
export type POJO = {};
|
|
9
|
+
export type ComponentLike = keyof JSX.IntrinsicElements | JSXElementConstructor<any>;
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEpF,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,YAAY,GAAG,GAAG,CAAC,OAAO,CAAC;AAEvE,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG,EAAE,CAAC;AAErD,MAAM,MAAM,QAAQ,CAAC,MAAM,EAAE,GAAG,IAAI,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,GAAG,GAAG,CAAC;AAElE,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAEtD,MAAM,MAAM,IAAI,GAAG,EAAE,CAAC;AAEtB,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,CAAC,iBAAiB,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|