@docsplain-kit/core 0.0.45 → 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/accordion/accordion-content/accordion-content.js +17 -1
- package/accordion/accordion-content/accordion-content.js.map +1 -1
- package/accordion/accordion-header/accordion-header.js +16 -1
- package/accordion/accordion-header/accordion-header.js.map +1 -1
- package/accordion/accordion-item/accordion-item.js +20 -3
- package/accordion/accordion-item/accordion-item.js.map +1 -1
- package/accordion/accordion-item/accordion-item.style.d.ts +0 -33
- package/accordion/accordion-item/accordion-item.style.js +1 -34
- package/accordion/accordion-item/accordion-item.style.js.map +1 -1
- package/accordion/accordion-item/accordion-item.theme.d.ts +158 -0
- package/accordion/accordion-item/accordion-item.theme.js +171 -0
- package/accordion/accordion-item/accordion-item.theme.js.map +1 -0
- package/alert/alert.js +1 -1
- package/alert/alert.js.map +1 -1
- package/avatar/avatar.props.d.ts +1 -1
- package/avatar/index.d.ts +1 -1
- package/badge/badge.js +11 -1
- package/badge/badge.js.map +1 -1
- package/button/button.js +18 -1
- package/button/button.js.map +1 -1
- package/button/button.style.d.ts +1 -146
- package/button/button.style.js +1 -156
- package/button/button.style.js.map +1 -1
- package/button/button.theme.d.ts +288 -0
- package/button/button.theme.js +310 -0
- package/button/button.theme.js.map +1 -0
- package/checkbox/checkbox.js +11 -1
- package/checkbox/checkbox.js.map +1 -1
- package/chip/chip.js +19 -1
- package/chip/chip.js.map +1 -1
- package/index.d.ts +10 -8
- package/index.js +24 -15
- package/index.js.map +1 -1
- package/package.json +28 -28
- package/provider/docsplain-provider.d.ts +24 -0
- package/provider/docsplain-provider.js +47 -0
- package/provider/docsplain-provider.js.map +1 -0
- package/provider/docsplain-provider.types.d.ts +16 -0
- package/provider/docsplain-provider.types.js +3 -0
- package/provider/docsplain-provider.types.js.map +1 -0
- package/provider/hooks/index.d.ts +6 -0
- package/provider/hooks/index.js +25 -0
- package/provider/hooks/index.js.map +1 -0
- package/provider/hooks/use-font-size.d.ts +19 -0
- package/provider/hooks/use-font-size.js +102 -0
- package/provider/hooks/use-font-size.js.map +1 -0
- package/provider/hooks/use-responsive-font-size.d.ts +10 -0
- package/provider/hooks/use-responsive-font-size.js +24 -0
- package/provider/hooks/use-responsive-font-size.js.map +1 -0
- package/provider/hooks/use-text-direction.d.ts +12 -0
- package/provider/hooks/use-text-direction.js +20 -0
- package/provider/hooks/use-text-direction.js.map +1 -0
- package/provider/hooks/use-text-scale.d.ts +12 -0
- package/provider/hooks/use-text-scale.js +20 -0
- package/provider/hooks/use-text-scale.js.map +1 -0
- package/provider/hooks/use-theme.d.ts +12 -0
- package/provider/hooks/use-theme.js +20 -0
- package/provider/hooks/use-theme.js.map +1 -0
- package/provider/index.d.ts +3 -0
- package/provider/index.js +24 -0
- package/provider/index.js.map +1 -0
- package/radio-button/radio-button.js +12 -2
- package/radio-button/radio-button.js.map +1 -1
- package/spinner/spinner.js +11 -1
- package/spinner/spinner.js.map +1 -1
- package/switch-box/switch-box.js +32 -2
- package/switch-box/switch-box.js.map +1 -1
- package/tab/tab-item/tab-item.js +15 -2
- package/tab/tab-item/tab-item.js.map +1 -1
- package/tab/tab-item/tab-item.style.d.ts +1 -1
- package/tab/tab-item/tab-item.style.js +31 -31
- package/tab/tab-item/tab-item.style.js.map +1 -1
- package/tab/tab.js +115 -28
- package/tab/tab.js.map +1 -1
- package/tab/tab.props.d.ts +2 -0
- package/tab/tab.style.d.ts +2 -1
- package/tab/tab.style.js +35 -1
- package/tab/tab.style.js.map +1 -1
- package/text/text.js +39 -1
- package/text/text.js.map +1 -1
- package/text/text.theme.d.ts +23 -0
- package/text/text.theme.js +114 -0
- package/text/text.theme.js.map +1 -0
- package/theme/badge-theme.d.ts +16 -0
- package/theme/badge-theme.js +84 -0
- package/theme/badge-theme.js.map +1 -0
- package/theme/checkbox-theme.d.ts +16 -0
- package/theme/checkbox-theme.js +82 -0
- package/theme/checkbox-theme.js.map +1 -0
- package/theme/chip-theme.d.ts +370 -0
- package/theme/chip-theme.js +391 -0
- package/theme/chip-theme.js.map +1 -0
- package/theme/index.d.ts +12 -0
- package/theme/index.js +53 -0
- package/theme/index.js.map +1 -0
- package/theme/radio-button-theme.d.ts +25 -0
- package/theme/radio-button-theme.js +48 -0
- package/theme/radio-button-theme.js.map +1 -0
- package/theme/spinner-theme.d.ts +14 -0
- package/theme/spinner-theme.js +80 -0
- package/theme/spinner-theme.js.map +1 -0
- package/theme/switch-box-theme.d.ts +16 -0
- package/theme/switch-box-theme.js +82 -0
- package/theme/switch-box-theme.js.map +1 -0
- package/theme/theme-utils.d.ts +87 -0
- package/theme/theme-utils.js +147 -0
- package/theme/theme-utils.js.map +1 -0
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { Theme } from '../provider';
|
|
2
|
+
import { ButtonColors, Variant } from './button.props';
|
|
3
|
+
/**
|
|
4
|
+
* Light Theme Button Colors (Original)
|
|
5
|
+
* These are the existing color objects kept for light theme
|
|
6
|
+
*/
|
|
7
|
+
export declare const COLORS_LIGHT: {
|
|
8
|
+
primary: string;
|
|
9
|
+
danger: string;
|
|
10
|
+
warning: string;
|
|
11
|
+
secondary: string;
|
|
12
|
+
success: string;
|
|
13
|
+
info: string;
|
|
14
|
+
control: string;
|
|
15
|
+
inherit: string;
|
|
16
|
+
slate: string;
|
|
17
|
+
zinc: string;
|
|
18
|
+
neutral: string;
|
|
19
|
+
stone: string;
|
|
20
|
+
red: string;
|
|
21
|
+
orange: string;
|
|
22
|
+
amber: string;
|
|
23
|
+
yellow: string;
|
|
24
|
+
lime: string;
|
|
25
|
+
green: string;
|
|
26
|
+
emerald: string;
|
|
27
|
+
teal: string;
|
|
28
|
+
cyan: string;
|
|
29
|
+
sky: string;
|
|
30
|
+
blue: string;
|
|
31
|
+
indigo: string;
|
|
32
|
+
violet: string;
|
|
33
|
+
purple: string;
|
|
34
|
+
fuchsia: string;
|
|
35
|
+
pink: string;
|
|
36
|
+
rose: string;
|
|
37
|
+
black: string;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Dark Theme Button Colors
|
|
41
|
+
* Adjusted colors for better visibility and contrast in dark mode
|
|
42
|
+
*/
|
|
43
|
+
export declare const COLORS_DARK: {
|
|
44
|
+
primary: string;
|
|
45
|
+
danger: string;
|
|
46
|
+
warning: string;
|
|
47
|
+
secondary: string;
|
|
48
|
+
success: string;
|
|
49
|
+
info: string;
|
|
50
|
+
control: string;
|
|
51
|
+
inherit: string;
|
|
52
|
+
slate: string;
|
|
53
|
+
zinc: string;
|
|
54
|
+
neutral: string;
|
|
55
|
+
stone: string;
|
|
56
|
+
red: string;
|
|
57
|
+
orange: string;
|
|
58
|
+
amber: string;
|
|
59
|
+
yellow: string;
|
|
60
|
+
lime: string;
|
|
61
|
+
green: string;
|
|
62
|
+
emerald: string;
|
|
63
|
+
teal: string;
|
|
64
|
+
cyan: string;
|
|
65
|
+
sky: string;
|
|
66
|
+
blue: string;
|
|
67
|
+
indigo: string;
|
|
68
|
+
violet: string;
|
|
69
|
+
purple: string;
|
|
70
|
+
fuchsia: string;
|
|
71
|
+
pink: string;
|
|
72
|
+
rose: string;
|
|
73
|
+
black: string;
|
|
74
|
+
};
|
|
75
|
+
export declare const OUTLINED_COLORS_LIGHT: {
|
|
76
|
+
primary: string;
|
|
77
|
+
danger: string;
|
|
78
|
+
warning: string;
|
|
79
|
+
secondary: string;
|
|
80
|
+
success: string;
|
|
81
|
+
info: string;
|
|
82
|
+
control: string;
|
|
83
|
+
inherit: string;
|
|
84
|
+
slate: string;
|
|
85
|
+
zinc: string;
|
|
86
|
+
neutral: string;
|
|
87
|
+
stone: string;
|
|
88
|
+
red: string;
|
|
89
|
+
orange: string;
|
|
90
|
+
amber: string;
|
|
91
|
+
yellow: string;
|
|
92
|
+
lime: string;
|
|
93
|
+
green: string;
|
|
94
|
+
emerald: string;
|
|
95
|
+
teal: string;
|
|
96
|
+
cyan: string;
|
|
97
|
+
sky: string;
|
|
98
|
+
blue: string;
|
|
99
|
+
indigo: string;
|
|
100
|
+
violet: string;
|
|
101
|
+
purple: string;
|
|
102
|
+
fuchsia: string;
|
|
103
|
+
pink: string;
|
|
104
|
+
rose: string;
|
|
105
|
+
black: string;
|
|
106
|
+
};
|
|
107
|
+
export declare const OUTLINED_COLORS_DARK: {
|
|
108
|
+
primary: string;
|
|
109
|
+
danger: string;
|
|
110
|
+
warning: string;
|
|
111
|
+
secondary: string;
|
|
112
|
+
success: string;
|
|
113
|
+
info: string;
|
|
114
|
+
control: string;
|
|
115
|
+
inherit: string;
|
|
116
|
+
slate: string;
|
|
117
|
+
zinc: string;
|
|
118
|
+
neutral: string;
|
|
119
|
+
stone: string;
|
|
120
|
+
red: string;
|
|
121
|
+
orange: string;
|
|
122
|
+
amber: string;
|
|
123
|
+
yellow: string;
|
|
124
|
+
lime: string;
|
|
125
|
+
green: string;
|
|
126
|
+
emerald: string;
|
|
127
|
+
teal: string;
|
|
128
|
+
cyan: string;
|
|
129
|
+
sky: string;
|
|
130
|
+
blue: string;
|
|
131
|
+
indigo: string;
|
|
132
|
+
violet: string;
|
|
133
|
+
purple: string;
|
|
134
|
+
fuchsia: string;
|
|
135
|
+
pink: string;
|
|
136
|
+
rose: string;
|
|
137
|
+
black: string;
|
|
138
|
+
};
|
|
139
|
+
export declare const TEXT_COLORS_LIGHT: {
|
|
140
|
+
primary: string;
|
|
141
|
+
danger: string;
|
|
142
|
+
warning: string;
|
|
143
|
+
secondary: string;
|
|
144
|
+
success: string;
|
|
145
|
+
info: string;
|
|
146
|
+
control: string;
|
|
147
|
+
inherit: string;
|
|
148
|
+
slate: string;
|
|
149
|
+
zinc: string;
|
|
150
|
+
neutral: string;
|
|
151
|
+
stone: string;
|
|
152
|
+
red: string;
|
|
153
|
+
orange: string;
|
|
154
|
+
amber: string;
|
|
155
|
+
yellow: string;
|
|
156
|
+
lime: string;
|
|
157
|
+
green: string;
|
|
158
|
+
emerald: string;
|
|
159
|
+
teal: string;
|
|
160
|
+
cyan: string;
|
|
161
|
+
sky: string;
|
|
162
|
+
blue: string;
|
|
163
|
+
indigo: string;
|
|
164
|
+
violet: string;
|
|
165
|
+
purple: string;
|
|
166
|
+
fuchsia: string;
|
|
167
|
+
pink: string;
|
|
168
|
+
rose: string;
|
|
169
|
+
black: string;
|
|
170
|
+
};
|
|
171
|
+
export declare const TEXT_COLORS_DARK: {
|
|
172
|
+
primary: string;
|
|
173
|
+
danger: string;
|
|
174
|
+
warning: string;
|
|
175
|
+
secondary: string;
|
|
176
|
+
success: string;
|
|
177
|
+
info: string;
|
|
178
|
+
control: string;
|
|
179
|
+
inherit: string;
|
|
180
|
+
slate: string;
|
|
181
|
+
zinc: string;
|
|
182
|
+
neutral: string;
|
|
183
|
+
stone: string;
|
|
184
|
+
red: string;
|
|
185
|
+
orange: string;
|
|
186
|
+
amber: string;
|
|
187
|
+
yellow: string;
|
|
188
|
+
lime: string;
|
|
189
|
+
green: string;
|
|
190
|
+
emerald: string;
|
|
191
|
+
teal: string;
|
|
192
|
+
cyan: string;
|
|
193
|
+
sky: string;
|
|
194
|
+
blue: string;
|
|
195
|
+
indigo: string;
|
|
196
|
+
violet: string;
|
|
197
|
+
purple: string;
|
|
198
|
+
fuchsia: string;
|
|
199
|
+
pink: string;
|
|
200
|
+
rose: string;
|
|
201
|
+
black: string;
|
|
202
|
+
};
|
|
203
|
+
export declare const TINT_COLORS_LIGHT: {
|
|
204
|
+
primary: string;
|
|
205
|
+
secondary: string;
|
|
206
|
+
tertiary: string;
|
|
207
|
+
info: string;
|
|
208
|
+
danger: string;
|
|
209
|
+
warning: string;
|
|
210
|
+
success: string;
|
|
211
|
+
control: string;
|
|
212
|
+
inherit: string;
|
|
213
|
+
slate: string;
|
|
214
|
+
zinc: string;
|
|
215
|
+
neutral: string;
|
|
216
|
+
stone: string;
|
|
217
|
+
red: string;
|
|
218
|
+
orange: string;
|
|
219
|
+
amber: string;
|
|
220
|
+
yellow: string;
|
|
221
|
+
lime: string;
|
|
222
|
+
green: string;
|
|
223
|
+
emerald: string;
|
|
224
|
+
teal: string;
|
|
225
|
+
cyan: string;
|
|
226
|
+
sky: string;
|
|
227
|
+
blue: string;
|
|
228
|
+
indigo: string;
|
|
229
|
+
violet: string;
|
|
230
|
+
purple: string;
|
|
231
|
+
fuchsia: string;
|
|
232
|
+
pink: string;
|
|
233
|
+
rose: string;
|
|
234
|
+
black: string;
|
|
235
|
+
};
|
|
236
|
+
export declare const TINT_COLORS_DARK: {
|
|
237
|
+
primary: string;
|
|
238
|
+
secondary: string;
|
|
239
|
+
tertiary: string;
|
|
240
|
+
info: string;
|
|
241
|
+
danger: string;
|
|
242
|
+
warning: string;
|
|
243
|
+
success: string;
|
|
244
|
+
control: string;
|
|
245
|
+
inherit: string;
|
|
246
|
+
slate: string;
|
|
247
|
+
zinc: string;
|
|
248
|
+
neutral: string;
|
|
249
|
+
stone: string;
|
|
250
|
+
red: string;
|
|
251
|
+
orange: string;
|
|
252
|
+
amber: string;
|
|
253
|
+
yellow: string;
|
|
254
|
+
lime: string;
|
|
255
|
+
green: string;
|
|
256
|
+
emerald: string;
|
|
257
|
+
teal: string;
|
|
258
|
+
cyan: string;
|
|
259
|
+
sky: string;
|
|
260
|
+
blue: string;
|
|
261
|
+
indigo: string;
|
|
262
|
+
violet: string;
|
|
263
|
+
purple: string;
|
|
264
|
+
fuchsia: string;
|
|
265
|
+
pink: string;
|
|
266
|
+
rose: string;
|
|
267
|
+
black: string;
|
|
268
|
+
};
|
|
269
|
+
export declare const DISABLED_VARIANTS_LIGHT: {
|
|
270
|
+
text: string;
|
|
271
|
+
outlined: string;
|
|
272
|
+
filled: string;
|
|
273
|
+
tint: string;
|
|
274
|
+
};
|
|
275
|
+
export declare const DISABLED_VARIANTS_DARK: {
|
|
276
|
+
text: string;
|
|
277
|
+
outlined: string;
|
|
278
|
+
filled: string;
|
|
279
|
+
tint: string;
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* Helper function to get the correct color styles based on theme
|
|
283
|
+
*/
|
|
284
|
+
export declare const getButtonColors: (theme: Theme, color: ButtonColors, variant: Variant) => string;
|
|
285
|
+
/**
|
|
286
|
+
* Helper function to get disabled variant styles based on theme
|
|
287
|
+
*/
|
|
288
|
+
export declare const getDisabledVariant: (theme: Theme, variant: Variant) => string;
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.getDisabledVariant = exports.getButtonColors = exports.DISABLED_VARIANTS_DARK = exports.DISABLED_VARIANTS_LIGHT = exports.TINT_COLORS_DARK = exports.TINT_COLORS_LIGHT = exports.TEXT_COLORS_DARK = exports.TEXT_COLORS_LIGHT = exports.OUTLINED_COLORS_DARK = exports.OUTLINED_COLORS_LIGHT = exports.COLORS_DARK = exports.COLORS_LIGHT = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Light Theme Button Colors (Original)
|
|
6
|
+
* These are the existing color objects kept for light theme
|
|
7
|
+
*/
|
|
8
|
+
exports.COLORS_LIGHT = {
|
|
9
|
+
primary: 'bg-primary border-primary !text-white hover:bg-primary-dark active:bg-primary-light',
|
|
10
|
+
danger: 'bg-danger border-danger !text-white hover:bg-danger-dark active:bg-danger-light',
|
|
11
|
+
warning: 'bg-warning border-warning !text-white hover:bg-warning-dark active:bg-warning-light',
|
|
12
|
+
secondary: 'bg-secondary border-secondary !text-white hover:bg-secondary-dark active:bg-secondary-light',
|
|
13
|
+
success: 'bg-success border-success !text-white hover:bg-success-dark active:bg-success-light',
|
|
14
|
+
info: 'bg-info border-info !text-white hover:bg-info-dark active:bg-info-light',
|
|
15
|
+
control: 'bg-control border-control !text-white hover:bg-control-dark active:bg-control-light',
|
|
16
|
+
inherit: 'bg-transparent hover:bg-transparent',
|
|
17
|
+
slate: 'bg-slate-500 border-slate-500 !text-white hover:bg-slate-700 active:bg-slate-300',
|
|
18
|
+
zinc: 'bg-zinc-500 border-zinc-500 !text-white hover:bg-zinc-700 active:bg-zinc-300',
|
|
19
|
+
neutral: 'bg-neutral-500 border-neutral-500 !text-white hover:bg-neutral-700 active:bg-neutral-300',
|
|
20
|
+
stone: 'bg-stone-500 border-stone-500 !text-white hover:bg-stone-700 active:bg-stone-300',
|
|
21
|
+
red: 'bg-red-500 border-red-500 !text-white hover:bg-red-700 active:bg-red-300',
|
|
22
|
+
orange: 'bg-orange-500 border-orange-500 !text-white hover:bg-orange-700 active:bg-orange-300',
|
|
23
|
+
amber: 'bg-amber-500 border-amber-500 !text-white hover:bg-amber-700 active:bg-amber-300',
|
|
24
|
+
yellow: 'bg-yellow-500 border-yellow-500 !text-white hover:bg-yellow-700 active:bg-yellow-300',
|
|
25
|
+
lime: 'bg-lime-500 border-lime-500 !text-white hover:bg-lime-700 active:bg-lime-300',
|
|
26
|
+
green: 'bg-green-500 border-green-500 !text-white hover:bg-green-700 active:bg-green-300',
|
|
27
|
+
emerald: 'bg-emerald-500 border-emerald-500 !text-white hover:bg-emerald-700 active:bg-emerald-300',
|
|
28
|
+
teal: 'bg-teal-500 border-teal-500 !text-white hover:bg-teal-700 active:bg-teal-300',
|
|
29
|
+
cyan: 'bg-cyan-500 border-cyan-500 !text-white hover:bg-cyan-700 active:bg-cyan-300',
|
|
30
|
+
sky: 'bg-sky-500 border-sky-500 !text-white hover:bg-sky-700 active:bg-sky-300',
|
|
31
|
+
blue: 'bg-blue-500 border-blue-500 !text-white hover:bg-blue-700 active:bg-blue-300',
|
|
32
|
+
indigo: 'bg-indigo-500 border-indigo-500 !text-white hover:bg-indigo-700 active:bg-indigo-300',
|
|
33
|
+
violet: 'bg-violet-500 border-violet-500 !text-white hover:bg-violet-700 active:bg-violet-300',
|
|
34
|
+
purple: 'bg-purple-500 border-purple-500 !text-white hover:bg-purple-700 active:bg-purple-300',
|
|
35
|
+
fuchsia: 'bg-fuchsia-500 border-fuchsia-500 !text-white hover:bg-fuchsia-700 active:bg-fuchsia-300',
|
|
36
|
+
pink: 'bg-pink-500 border-pink-500 !text-white hover:bg-pink-700 active:bg-pink-300',
|
|
37
|
+
rose: 'bg-rose-500 border-rose-500 !text-white hover:bg-rose-700 active:bg-rose-300',
|
|
38
|
+
black: 'bg-black border-black text-white hover:bg-control-700'
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Dark Theme Button Colors
|
|
42
|
+
* Adjusted colors for better visibility and contrast in dark mode
|
|
43
|
+
*/
|
|
44
|
+
exports.COLORS_DARK = {
|
|
45
|
+
primary: 'bg-primary border-primary text-black hover:bg-primary-300 active:bg-primary-700',
|
|
46
|
+
danger: 'bg-danger border-danger text-black hover:bg-danger-300 active:bg-danger-700',
|
|
47
|
+
warning: 'bg-warning border-warning text-black hover:bg-warning-300 active:bg-warning-700',
|
|
48
|
+
secondary: 'bg-secondary border-secondary text-black hover:bg-secondary-300 active:bg-secondary-700',
|
|
49
|
+
success: 'bg-success border-success text-black hover:bg-success-300 active:bg-success-700',
|
|
50
|
+
info: 'bg-info border-info text-black hover:bg-info-300 active:bg-info-700',
|
|
51
|
+
control: 'bg-control border-control text-black hover:bg-gray-300 active:bg-gray-700',
|
|
52
|
+
inherit: 'bg-transparent hover:bg-transparent',
|
|
53
|
+
slate: 'bg-slate border-slate text-black hover:bg-slate-300 active:bg-slate-500',
|
|
54
|
+
zinc: 'bg-zinc border-zinc text-black hover:bg-zinc-300 active:bg-zinc-500',
|
|
55
|
+
neutral: 'bg-neutral border-neutral text-black hover:bg-neutral-300 active:bg-neutral-500',
|
|
56
|
+
stone: 'bg-stone border-stone text-black hover:bg-stone-300 active:bg-stone-500',
|
|
57
|
+
red: 'bg-red border-red text-black hover:bg-red-300 active:bg-red-500',
|
|
58
|
+
orange: 'bg-orange border-orange text-black hover:bg-orange-300 active:bg-orange-500',
|
|
59
|
+
amber: 'bg-amber border-amber text-black hover:bg-amber-300 active:bg-amber-500',
|
|
60
|
+
yellow: 'bg-yellow border-yellow text-black hover:bg-yellow-300 active:bg-yellow-500',
|
|
61
|
+
lime: 'bg-lime border-lime text-black hover:bg-lime-300 active:bg-lime-500',
|
|
62
|
+
green: 'bg-green border-green text-black hover:bg-green-300 active:bg-green-500',
|
|
63
|
+
emerald: 'bg-emerald border-emerald text-black hover:bg-emerald-300 active:bg-emerald-500',
|
|
64
|
+
teal: 'bg-teal border-teal text-black hover:bg-teal-300 active:bg-teal-500',
|
|
65
|
+
cyan: 'bg-cyan border-cyan text-black hover:bg-cyan-300 active:bg-cyan-500',
|
|
66
|
+
sky: 'bg-sky border-sky text-black hover:bg-sky-300 active:bg-sky-500',
|
|
67
|
+
blue: 'bg-blue border-blue text-black hover:bg-blue-300 active:bg-blue-500',
|
|
68
|
+
indigo: 'bg-indigo border-indigo text-black hover:bg-indigo-300 active:bg-indigo-500',
|
|
69
|
+
violet: 'bg-violet border-violet text-black hover:bg-violet-300 active:bg-violet-500',
|
|
70
|
+
purple: 'bg-purple border-purple text-black hover:bg-purple-300 active:bg-purple-500',
|
|
71
|
+
fuchsia: 'bg-fuchsia border-fuchsia text-black hover:bg-fuchsia-300 active:bg-fuchsia-500',
|
|
72
|
+
pink: 'bg-pink border-pink text-black hover:bg-pink-300 active:bg-pink-500',
|
|
73
|
+
rose: 'bg-rose border-rose text-black hover:bg-rose-300 active:bg-rose-500',
|
|
74
|
+
black: 'bg-black border-black text-white hover:bg-control-300'
|
|
75
|
+
};
|
|
76
|
+
exports.OUTLINED_COLORS_LIGHT = {
|
|
77
|
+
primary: 'border border-primary text-primary hover:bg-primary-100 hover:border-primary-dark hover:text-primary-dark active:border-primary-light active:text-primary-light',
|
|
78
|
+
danger: 'border border-danger text-danger hover:bg-danger-100 hover:border-danger-dark hover:text-danger-dark active:border-danger-light active:text-danger-light',
|
|
79
|
+
warning: 'border border-warning text-warning hover:bg-warning-100 hover:border-warning-dark hover:text-warning-dark active:border-warning-light active:text-warning-light',
|
|
80
|
+
secondary: 'border border-secondary text-secondary hover:bg-secondary-100 hover:border-secondary-dark hover:text-secondary-dark active:border-secondary-light active:text-secondary-light',
|
|
81
|
+
success: 'border border-success text-success hover:bg-success-100 hover:border-success-dark hover:text-success-dark active:border-success-light active:text-success-light',
|
|
82
|
+
info: 'border border-info text-info hover:bg-info-100 hover:border-info-dark hover:text-info-dark active:border-info-light active:text-info-light',
|
|
83
|
+
control: 'border border-control text-control hover:bg-control-100 hover:border-control-dark hover:text-control-dark active:border-control-light active:text-control-light',
|
|
84
|
+
inherit: 'bg-transparent hover:bg-transparent',
|
|
85
|
+
slate: 'border border-slate-500 text-slate-500 hover:bg-slate-100 hover:border-slate-700 hover:text-slate-700 active:border-slate-300 active:text-slate-300',
|
|
86
|
+
zinc: 'border border-zinc-500 text-zinc-500 hover:bg-zinc-100 hover:border-zinc-700 hover:text-zinc-700 active:border-zinc-300 active:text-zinc-300',
|
|
87
|
+
neutral: 'border border-neutral-500 text-neutral-500 hover:bg-neutral-100 hover:border-neutral-700 hover:text-neutral-700 active:border-neutral-300 active:text-neutral-300',
|
|
88
|
+
stone: 'border border-stone-500 text-stone-500 hover:bg-stone-100 hover:border-stone-700 hover:text-stone-700 active:border-stone-300 active:text-stone-300',
|
|
89
|
+
red: 'border border-red-500 text-red-500 hover:bg-red-100 hover:border-red-700 hover:text-red-700 active:border-red-300 active:text-red-300',
|
|
90
|
+
orange: 'border border-orange-500 text-orange-500 hover:bg-orange-100 hover:border-orange-700 hover:text-orange-700 active:border-orange-300 active:text-orange-300',
|
|
91
|
+
amber: 'border border-amber-500 text-amber-500 hover:bg-amber-100 hover:border-amber-700 hover:text-amber-700 active:border-amber-300 active:text-amber-300',
|
|
92
|
+
yellow: 'border border-yellow-500 text-yellow-500 hover:bg-yellow-100 hover:border-yellow-700 hover:text-yellow-700 active:border-yellow-300 active:text-yellow-300',
|
|
93
|
+
lime: 'border border-lime-500 text-lime-500 hover:bg-lime-100 hover:border-lime-700 hover:text-lime-700 active:border-lime-300 active:text-lime-300',
|
|
94
|
+
green: 'border border-green-500 text-green-500 hover:bg-green-100 hover:border-green-700 hover:text-green-700 active:border-green-300 active:text-green-300',
|
|
95
|
+
emerald: 'border border-emerald-500 text-emerald-500 hover:bg-emerald-100 hover:border-emerald-700 hover:text-emerald-700 active:border-emerald-300 active:text-emerald-300',
|
|
96
|
+
teal: 'border border-teal-500 text-teal-500 hover:bg-teal-100 hover:border-teal-700 hover:text-teal-700 active:border-teal-300 active:text-teal-300',
|
|
97
|
+
cyan: 'border border-cyan-500 text-cyan-500 hover:bg-cyan-100 hover:border-cyan-700 hover:text-cyan-700 active:border-cyan-300 active:text-cyan-300',
|
|
98
|
+
sky: 'border border-sky-500 text-sky-500 hover:bg-sky-100 hover:border-sky-700 hover:text-sky-700 active:border-sky-300 active:text-sky-300',
|
|
99
|
+
blue: 'border border-blue-500 text-blue-500 hover:bg-blue-100 hover:border-blue-700 hover:text-blue-700 active:border-blue-300 active:text-blue-300',
|
|
100
|
+
indigo: 'border border-indigo-500 text-indigo-500 hover:bg-indigo-100 hover:border-indigo-700 hover:text-indigo-700 active:border-indigo-300 active:text-indigo-300',
|
|
101
|
+
violet: 'border border-violet-500 text-violet-500 hover:bg-violet-100 hover:border-violet-700 hover:text-violet-700 active:border-violet-300 active:text-violet-300',
|
|
102
|
+
purple: 'border border-purple-500 text-purple-500 hover:bg-purple-100 hover:border-purple-700 hover:text-purple-700 active:border-purple-300 active:text-purple-300',
|
|
103
|
+
fuchsia: 'border border-fuchsia-500 text-fuchsia-500 hover:bg-fuchsia-100 hover:border-fuchsia-700 hover:text-fuchsia-700 active:border-fuchsia-300 active:text-fuchsia-300',
|
|
104
|
+
pink: 'border border-pink-500 text-pink-500 hover:bg-pink-100 hover:border-pink-700 hover:text-pink-700 active:border-pink-300 active:text-pink-300',
|
|
105
|
+
rose: 'border border-rose-500 text-rose-500 hover:bg-rose-100 hover:border-rose-700 hover:text-rose-700 active:border-rose-300 active:text-rose-300',
|
|
106
|
+
black: 'border border-black text-black hover:bg-control-50 hover:border-control-700'
|
|
107
|
+
};
|
|
108
|
+
exports.OUTLINED_COLORS_DARK = {
|
|
109
|
+
primary: 'border border-primary text-primary hover:bg-primary-900 hover:border-primary-300 hover:text-primary-300 active:border-primary-700 active:text-primary-700',
|
|
110
|
+
danger: 'border border-danger text-danger hover:bg-danger-900 hover:border-danger-300 hover:text-danger-300 active:border-danger-700 active:text-danger-700',
|
|
111
|
+
warning: 'border border-warning text-warning hover:bg-warning-900 hover:border-warning-300 hover:text-warning-300 active:border-warning-700 active:text-warning-700',
|
|
112
|
+
secondary: 'border border-secondary text-secondary hover:bg-secondary-900 hover:border-secondary-300 hover:text-secondary-300 active:border-secondary-700 active:text-secondary-700',
|
|
113
|
+
success: 'border border-success text-success hover:bg-success-900 hover:border-success-300 hover:text-success-300 active:border-success-700 active:text-success-700',
|
|
114
|
+
info: 'border border-info text-info hover:bg-info-900 hover:border-info-300 hover:text-info-300 active:border-info-700 active:text-info-700',
|
|
115
|
+
control: 'border border-gray-500 text-control hover:bg-gray-800 hover:border-gray hover:text-gray-300 active:border-gray-600 active:text-gray-500',
|
|
116
|
+
inherit: 'bg-transparent hover:bg-transparent',
|
|
117
|
+
slate: 'border border-slate text-slate hover:bg-slate-900 hover:border-slate-300 hover:text-slate-300 active:border-slate-500 active:text-slate-500',
|
|
118
|
+
zinc: 'border border-zinc text-zinc hover:bg-zinc-900 hover:border-zinc-300 hover:text-zinc-300 active:border-zinc-500 active:text-zinc-500',
|
|
119
|
+
neutral: 'border border-neutral text-neutral hover:bg-neutral-900 hover:border-neutral-300 hover:text-neutral-300 active:border-neutral-500 active:text-neutral-500',
|
|
120
|
+
stone: 'border border-stone text-stone hover:bg-stone-900 hover:border-stone-300 hover:text-stone-300 active:border-stone-500 active:text-stone-500',
|
|
121
|
+
red: 'border border-red text-red hover:bg-red-900 hover:border-red-300 hover:text-red-300 active:border-red-500 active:text-red-500',
|
|
122
|
+
orange: 'border border-orange text-orange hover:bg-orange-900 hover:border-orange-300 hover:text-orange-300 active:border-orange-500 active:text-orange-500',
|
|
123
|
+
amber: 'border border-amber text-amber hover:bg-amber-900 hover:border-amber-300 hover:text-amber-300 active:border-amber-500 active:text-amber-500',
|
|
124
|
+
yellow: 'border border-yellow text-yellow hover:bg-yellow-900 hover:border-yellow-300 hover:text-yellow-300 active:border-yellow-500 active:text-yellow-500',
|
|
125
|
+
lime: 'border border-lime text-lime hover:bg-lime-900 hover:border-lime-300 hover:text-lime-300 active:border-lime-500 active:text-lime-500',
|
|
126
|
+
green: 'border border-green text-green hover:bg-green-900 hover:border-green-300 hover:text-green-300 active:border-green-500 active:text-green-500',
|
|
127
|
+
emerald: 'border border-emerald text-emerald hover:bg-emerald-900 hover:border-emerald-300 hover:text-emerald-300 active:border-emerald-500 active:text-emerald-500',
|
|
128
|
+
teal: 'border border-teal text-teal hover:bg-teal-900 hover:border-teal-300 hover:text-teal-300 active:border-teal-500 active:text-teal-500',
|
|
129
|
+
cyan: 'border border-cyan text-cyan hover:bg-cyan-900 hover:border-cyan-300 hover:text-cyan-300 active:border-cyan-500 active:text-cyan-500',
|
|
130
|
+
sky: 'border border-sky text-sky hover:bg-sky-900 hover:border-sky-300 hover:text-sky-300 active:border-sky-500 active:text-sky-500',
|
|
131
|
+
blue: 'border border-blue text-blue hover:bg-blue-900 hover:border-blue-300 hover:text-blue-300 active:border-blue-500 active:text-blue-500',
|
|
132
|
+
indigo: 'border border-indigo text-indigo hover:bg-indigo-900 hover:border-indigo-300 hover:text-indigo-300 active:border-indigo-500 active:text-indigo-500',
|
|
133
|
+
violet: 'border border-violet text-violet hover:bg-violet-900 hover:border-violet-300 hover:text-violet-300 active:border-violet-500 active:text-violet-500',
|
|
134
|
+
purple: 'border border-purple text-purple hover:bg-purple-900 hover:border-purple-300 hover:text-purple-300 active:border-purple-500 active:text-purple-500',
|
|
135
|
+
fuchsia: 'border border-fuchsia text-fuchsia hover:bg-fuchsia-900 hover:border-fuchsia-300 hover:text-fuchsia-300 active:border-fuchsia-500 active:text-fuchsia-500',
|
|
136
|
+
pink: 'border border-pink text-pink hover:bg-pink-900 hover:border-pink-300 hover:text-pink-300 active:border-pink-500 active:text-pink-500',
|
|
137
|
+
rose: 'border border-rose text-rose hover:bg-rose-900 hover:border-rose-300 hover:text-rose-300 active:border-rose-500 active:text-rose-500',
|
|
138
|
+
black: 'border border-gray-600 text-gray hover:bg-gray-800 hover:border-gray-500'
|
|
139
|
+
};
|
|
140
|
+
exports.TEXT_COLORS_LIGHT = {
|
|
141
|
+
primary: 'text-primary hover:text-primary-dark active:text-primary-light',
|
|
142
|
+
danger: 'text-danger hover:text-danger-dark active:text-danger-light',
|
|
143
|
+
warning: 'text-warning hover:text-warning-dark active:text-warning-light',
|
|
144
|
+
secondary: 'text-secondary hover:text-secondary-dark active:text-secondary-light',
|
|
145
|
+
success: 'text-success hover:text-success-dark active:text-success-light',
|
|
146
|
+
info: 'text-info hover:text-info-dark active:text-info-light',
|
|
147
|
+
control: 'text-control hover:text-control-dark active:text-control-light',
|
|
148
|
+
inherit: 'text-inherit',
|
|
149
|
+
slate: 'text-slate-500 hover:text-slate-700 active:text-slate-300',
|
|
150
|
+
zinc: 'text-zinc-500 hover:text-zinc-700 active:text-zinc-300',
|
|
151
|
+
neutral: 'text-neutral-500 hover:text-neutral-700 active:text-neutral-300',
|
|
152
|
+
stone: 'text-stone-500 hover:text-stone-700 active:text-stone-300',
|
|
153
|
+
red: 'text-red-500 hover:text-red-700 active:text-red-300',
|
|
154
|
+
orange: 'text-orange-500 hover:text-orange-700 active:text-orange-300',
|
|
155
|
+
amber: 'text-amber-500 hover:text-amber-700 active:text-amber-300',
|
|
156
|
+
yellow: 'text-yellow-500 hover:text-yellow-700 active:text-yellow-300',
|
|
157
|
+
lime: 'text-lime-500 hover:text-lime-700 active:text-lime-300',
|
|
158
|
+
green: 'text-green-500 hover:text-green-700 active:text-green-300',
|
|
159
|
+
emerald: 'text-emerald-500 hover:text-emerald-700 active:text-emerald-300',
|
|
160
|
+
teal: 'text-teal-500 hover:text-teal-700 active:text-teal-300',
|
|
161
|
+
cyan: 'text-cyan-500 hover:text-cyan-700 active:text-cyan-300',
|
|
162
|
+
sky: 'text-sky-500 hover:text-sky-700 active:text-sky-300',
|
|
163
|
+
blue: 'text-blue-500 hover:text-blue-700 active:text-blue-300',
|
|
164
|
+
indigo: 'text-indigo-500 hover:text-indigo-700 active:text-indigo-300',
|
|
165
|
+
violet: 'text-violet-500 hover:text-violet-700 active:text-violet-300',
|
|
166
|
+
purple: 'text-purple-500 hover:text-purple-700 active:text-purple-300',
|
|
167
|
+
fuchsia: 'text-fuchsia-500 hover:text-fuchsia-700 active:text-fuchsia-300',
|
|
168
|
+
pink: 'text-pink-500 hover:text-pink-700 active:text-pink-300',
|
|
169
|
+
rose: 'text-rose-500 hover:text-rose-700 active:text-rose-300',
|
|
170
|
+
black: 'text-black hover:bg-control-50'
|
|
171
|
+
};
|
|
172
|
+
exports.TEXT_COLORS_DARK = {
|
|
173
|
+
primary: 'text-primary hover:text-primary-300 active:text-primary-700',
|
|
174
|
+
danger: 'text-danger hover:text-danger-300 active:text-danger-700',
|
|
175
|
+
warning: 'text-warning hover:text-warning-300 active:text-warning-700',
|
|
176
|
+
secondary: 'text-secondary hover:text-secondary-300 active:text-secondary-700',
|
|
177
|
+
success: 'text-success hover:text-success-300 active:text-success-700',
|
|
178
|
+
info: 'text-info hover:text-info-300 active:text-info-700',
|
|
179
|
+
control: 'text-control hover:text-control-300 active:text-control-700',
|
|
180
|
+
inherit: 'text-inherit',
|
|
181
|
+
slate: 'text-slate hover:text-slate-300 active:text-slate-700',
|
|
182
|
+
zinc: 'text-zinc hover:text-zinc-300 active:text-zinc-700',
|
|
183
|
+
neutral: 'text-neutral hover:text-neutral-300 active:text-neutral-700',
|
|
184
|
+
stone: 'text-stone hover:text-stone-300 active:text-stone-700',
|
|
185
|
+
red: 'text-red hover:text-red-300 active:text-red-700',
|
|
186
|
+
orange: 'text-orange hover:text-orange-300 active:text-orange-700',
|
|
187
|
+
amber: 'text-amber hover:text-amber-300 active:text-amber-700',
|
|
188
|
+
yellow: 'text-yellow hover:text-yellow-300 active:text-yellow-700',
|
|
189
|
+
lime: 'text-lime hover:text-lime-300 active:text-lime-700',
|
|
190
|
+
green: 'text-green hover:text-green-300 active:text-green-700',
|
|
191
|
+
emerald: 'text-emerald hover:text-emerald-300 active:text-emerald-700',
|
|
192
|
+
teal: 'text-teal hover:text-teal-300 active:text-teal-700',
|
|
193
|
+
cyan: 'text-cyan hover:text-cyan-300 active:text-cyan-700',
|
|
194
|
+
sky: 'text-sky hover:text-sky-300 active:text-sky-700',
|
|
195
|
+
blue: 'text-blue hover:text-blue-300 active:text-blue-700',
|
|
196
|
+
indigo: 'text-indigo hover:text-indigo-300 active:text-indigo-700',
|
|
197
|
+
violet: 'text-violet hover:text-violet-300 active:text-violet-700',
|
|
198
|
+
purple: 'text-purple hover:text-purple-300 active:text-purple-700',
|
|
199
|
+
fuchsia: 'text-fuchsia hover:text-fuchsia-300 active:text-fuchsia-700',
|
|
200
|
+
pink: 'text-pink hover:text-pink-300 active:text-pink-700',
|
|
201
|
+
rose: 'text-rose hover:text-rose-300 active:text-rose-700',
|
|
202
|
+
black: 'text-gray-300 hover:bg-gray-800'
|
|
203
|
+
};
|
|
204
|
+
exports.TINT_COLORS_LIGHT = {
|
|
205
|
+
primary: 'bg-primary-50 hover:bg-primary-500 text-primary-500 hover:text-primary-50',
|
|
206
|
+
secondary: 'bg-secondary-50 hover:bg-secondary-500 text-secondary-500 hover:text-secondary-50',
|
|
207
|
+
tertiary: 'bg-tertiary-50 hover:bg-tertiary-500 text-tertiary-500 hover:text-tertiary-50',
|
|
208
|
+
info: 'bg-info-50 hover:bg-info-500 text-info-500 hover:text-info-50',
|
|
209
|
+
danger: 'bg-danger-50 hover:bg-danger-500 text-danger-500 hover:text-danger-50',
|
|
210
|
+
warning: 'bg-warning-50 hover:bg-warning-500 text-warning-500 hover:text-warning-50',
|
|
211
|
+
success: 'bg-success-50 hover:bg-success-500 text-success-500 hover:text-success-50',
|
|
212
|
+
control: 'bg-control-50 hover:bg-control-500 text-control-500 hover:text-control-50',
|
|
213
|
+
inherit: 'bg-transparent hover:bg-transparent',
|
|
214
|
+
slate: 'bg-slate-50 hover:bg-slate-500 text-slate-500 hover:text-slate-50',
|
|
215
|
+
zinc: 'bg-zinc-50 hover:bg-zinc-500 text-zinc-500 hover:text-zinc-50',
|
|
216
|
+
neutral: 'bg-neutral-50 hover:bg-neutral-500 text-neutral-500 hover:text-neutral-50',
|
|
217
|
+
stone: 'bg-stone-50 hover:bg-stone-500 text-stone-500 hover:text-stone-50',
|
|
218
|
+
red: 'bg-red-50 hover:bg-red-500 text-red-500 hover:text-red-50',
|
|
219
|
+
orange: 'bg-orange-50 hover:bg-orange-500 text-orange-500 hover:text-orange-50',
|
|
220
|
+
amber: 'bg-amber-50 hover:bg-amber-500 text-amber-500 hover:text-amber-50',
|
|
221
|
+
yellow: 'bg-yellow-50 hover:bg-yellow-500 text-yellow-500 hover:text-yellow-50',
|
|
222
|
+
lime: 'bg-lime-50 hover:bg-lime-500 text-lime-500 hover:text-lime-50',
|
|
223
|
+
green: 'bg-green-50 hover:bg-green-500 text-green-500 hover:text-green-50',
|
|
224
|
+
emerald: 'bg-emerald-50 hover:bg-emerald-500 text-emerald-500 hover:text-emerald-50',
|
|
225
|
+
teal: 'bg-teal-50 hover:bg-teal-500 text-teal-500 hover:text-teal-50',
|
|
226
|
+
cyan: 'bg-cyan-50 hover:bg-cyan-500 text-cyan-500 hover:text-cyan-50',
|
|
227
|
+
sky: 'bg-sky-50 hover:bg-sky-500 text-sky-500 hover:text-sky-50',
|
|
228
|
+
blue: 'bg-blue-50 hover:bg-blue-500 text-blue-500 hover:text-blue-50',
|
|
229
|
+
indigo: 'bg-indigo-50 hover:bg-indigo-500 text-indigo-500 hover:text-indigo-50',
|
|
230
|
+
violet: 'bg-violet-50 hover:bg-violet-500 text-violet-500 hover:text-violet-50',
|
|
231
|
+
purple: 'bg-purple-50 hover:bg-purple-500 text-purple-500 hover:text-purple-50',
|
|
232
|
+
fuchsia: 'bg-fuchsia-50 hover:bg-fuchsia-500 text-fuchsia-500 hover:text-fuchsia-50',
|
|
233
|
+
pink: 'bg-pink-50 hover:bg-pink-500 text-pink-500 hover:text-pink-50',
|
|
234
|
+
rose: 'bg-rose-50 hover:bg-rose-500 text-rose-500 hover:text-rose-50',
|
|
235
|
+
black: 'bg-control-50 hover:bg-black text-black hover:text-white'
|
|
236
|
+
};
|
|
237
|
+
exports.TINT_COLORS_DARK = {
|
|
238
|
+
primary: 'bg-primary-950 hover:bg-primary-500 text-primary-300 hover:text-gray-950',
|
|
239
|
+
secondary: 'bg-secondary-950 hover:bg-secondary-500 text-secondary-300 hover:text-gray-950',
|
|
240
|
+
tertiary: 'bg-tertiary-950 hover:bg-tertiary-500 text-tertiary-300 hover:text-gray-950',
|
|
241
|
+
info: 'bg-info-950 hover:bg-info-500 text-info-300 hover:text-gray-950',
|
|
242
|
+
danger: 'bg-danger-950 hover:bg-danger-500 text-danger-300 hover:text-gray-950',
|
|
243
|
+
warning: 'bg-warning-950 hover:bg-warning-500 text-warning-300 hover:text-gray-950',
|
|
244
|
+
success: 'bg-success-950 hover:bg-success-500 text-success-300 hover:text-gray-950',
|
|
245
|
+
control: 'bg-control-950 hover:bg-control-500 text-control-300 hover:text-control-950',
|
|
246
|
+
inherit: 'bg-transparent hover:bg-transparent',
|
|
247
|
+
slate: 'bg-slate-950 hover:bg-slate-500 text-slate-300 hover:text-gray-950',
|
|
248
|
+
zinc: 'bg-zinc-950 hover:bg-zinc-500 text-zinc-300 hover:text-gray-950',
|
|
249
|
+
neutral: 'bg-neutral-950 hover:bg-neutral-500 text-neutral-300 hover:text-gray-950',
|
|
250
|
+
stone: 'bg-stone-950 hover:bg-stone-500 text-stone-300 hover:text-gray-950',
|
|
251
|
+
red: 'bg-red-950 hover:bg-red-500 text-red-300 hover:text-gray-950',
|
|
252
|
+
orange: 'bg-orange-950 hover:bg-orange-500 text-orange-300 hover:text-gray-950',
|
|
253
|
+
amber: 'bg-amber-950 hover:bg-amber-500 text-amber-300 hover:text-gray-950',
|
|
254
|
+
yellow: 'bg-yellow-950 hover:bg-yellow-500 text-yellow-300 hover:text-gray-950',
|
|
255
|
+
lime: 'bg-lime-950 hover:bg-lime-500 text-lime-300 hover:text-gray-950',
|
|
256
|
+
green: 'bg-green-950 hover:bg-green-500 text-green-300 hover:text-gray-950',
|
|
257
|
+
emerald: 'bg-emerald-950 hover:bg-emerald-500 text-emerald-300 hover:text-gray-950',
|
|
258
|
+
teal: 'bg-teal-950 hover:bg-teal-500 text-teal-300 hover:text-gray-950',
|
|
259
|
+
cyan: 'bg-cyan-950 hover:bg-cyan-500 text-cyan-300 hover:text-gray-950',
|
|
260
|
+
sky: 'bg-sky-950 hover:bg-sky-500 text-sky-300 hover:text-gray-950',
|
|
261
|
+
blue: 'bg-blue-950 hover:bg-blue-500 text-blue-300 hover:text-gray-950',
|
|
262
|
+
indigo: 'bg-indigo-950 hover:bg-indigo-500 text-indigo-300 hover:text-gray-950',
|
|
263
|
+
violet: 'bg-violet-950 hover:bg-violet-500 text-violet-300 hover:text-gray-950',
|
|
264
|
+
purple: 'bg-purple-950 hover:bg-purple-500 text-purple-300 hover:text-gray-950',
|
|
265
|
+
fuchsia: 'bg-fuchsia-950 hover:bg-fuchsia-500 text-fuchsia-300 hover:text-gray-950',
|
|
266
|
+
pink: 'bg-pink-950 hover:bg-pink-500 text-pink-300 hover:text-gray-950',
|
|
267
|
+
rose: 'bg-rose-950 hover:bg-rose-500 text-rose-300 hover:text-gray-950',
|
|
268
|
+
black: 'bg-gray-800 hover:bg-gray-700 text-gray-300 hover:text-white'
|
|
269
|
+
};
|
|
270
|
+
exports.DISABLED_VARIANTS_LIGHT = {
|
|
271
|
+
text: 'bg-transparent hover:bg-transparent text-control-light',
|
|
272
|
+
outlined: 'border-control-300 border text-control',
|
|
273
|
+
filled: 'bg-control-100 border-none text-control-dark',
|
|
274
|
+
tint: 'bg-control-100 border-none text-control-dark'
|
|
275
|
+
};
|
|
276
|
+
exports.DISABLED_VARIANTS_DARK = {
|
|
277
|
+
text: 'bg-transparent hover:bg-transparent text-gray-600',
|
|
278
|
+
outlined: 'border-control-700 border text-control',
|
|
279
|
+
filled: 'bg-control-900/40 border-none text-control-300',
|
|
280
|
+
tint: 'bg-control-900/40 border-none text-control-300'
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* Helper function to get the correct color styles based on theme
|
|
284
|
+
*/
|
|
285
|
+
var getButtonColors = function (theme, color, variant) {
|
|
286
|
+
var COLORS = theme === 'dark' ? exports.COLORS_DARK : exports.COLORS_LIGHT;
|
|
287
|
+
var OUTLINED_COLORS = theme === 'dark' ? exports.OUTLINED_COLORS_DARK : exports.OUTLINED_COLORS_LIGHT;
|
|
288
|
+
var TEXT_COLORS = theme === 'dark' ? exports.TEXT_COLORS_DARK : exports.TEXT_COLORS_LIGHT;
|
|
289
|
+
var TINT_COLORS = theme === 'dark' ? exports.TINT_COLORS_DARK : exports.TINT_COLORS_LIGHT;
|
|
290
|
+
if (variant === 'filled') {
|
|
291
|
+
return COLORS[color];
|
|
292
|
+
}
|
|
293
|
+
else if (variant === 'outlined') {
|
|
294
|
+
return OUTLINED_COLORS[color];
|
|
295
|
+
}
|
|
296
|
+
else if (variant === 'tint') {
|
|
297
|
+
return TINT_COLORS[color];
|
|
298
|
+
}
|
|
299
|
+
return TEXT_COLORS[color];
|
|
300
|
+
};
|
|
301
|
+
exports.getButtonColors = getButtonColors;
|
|
302
|
+
/**
|
|
303
|
+
* Helper function to get disabled variant styles based on theme
|
|
304
|
+
*/
|
|
305
|
+
var getDisabledVariant = function (theme, variant) {
|
|
306
|
+
var DISABLED_VARIANTS = theme === 'dark' ? exports.DISABLED_VARIANTS_DARK : exports.DISABLED_VARIANTS_LIGHT;
|
|
307
|
+
return DISABLED_VARIANTS[variant];
|
|
308
|
+
};
|
|
309
|
+
exports.getDisabledVariant = getDisabledVariant;
|
|
310
|
+
//# sourceMappingURL=button.theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":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AC,CAAC,CAAC,oBAAY,CAAC;IAC7D,IAAM,eAAe,GAAG,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,4BAAoB,CAAC,CAAC,CAAC,6BAAqB,CAAC;IACxF,IAAM,WAAW,GAAG,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,wBAAgB,CAAC,CAAC,CAAC,yBAAiB,CAAC;IAC5E,IAAM,WAAW,GAAG,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,wBAAgB,CAAC,CAAC,CAAC,yBAAiB,CAAC;IAE5E,IAAI,OAAO,KAAK,QAAQ,EAAE;QACxB,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;KACtB;SAAM,IAAI,OAAO,KAAK,UAAU,EAAE;QACjC,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;KAC/B;SAAM,IAAI,OAAO,KAAK,MAAM,EAAE;QAC7B,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC;KAC3B;IACD,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC,CAAC;AAdW,QAAA,eAAe,mBAc1B;AAEF;;GAEG;AACI,IAAM,kBAAkB,GAAG,UAAC,KAAY,EAAE,OAAgB;IAC/D,IAAM,iBAAiB,GAAG,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,8BAAsB,CAAC,CAAC,CAAC,+BAAuB,CAAC;IAC9F,OAAO,iBAAiB,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC,CAAC;AAHW,QAAA,kBAAkB,sBAG7B"}
|
package/checkbox/checkbox.js
CHANGED
|
@@ -7,9 +7,19 @@ var react_1 = tslib_1.__importStar(require("react"));
|
|
|
7
7
|
var checkbox_style_1 = require("./checkbox.style");
|
|
8
8
|
var tailwind_merge_config_1 = require("../tailwind-merge-config");
|
|
9
9
|
var text_1 = tslib_1.__importDefault(require("../text"));
|
|
10
|
+
var theme_1 = require("../theme");
|
|
11
|
+
var provider_1 = require("../provider");
|
|
10
12
|
var Checkbox = function (_a) {
|
|
11
13
|
var label = _a.label, _b = _a.color, color = _b === void 0 ? 'primary' : _b, className = _a.className, onChange = _a.onChange, checked = _a.checked, _c = _a.indeterminate, indeterminate = _c === void 0 ? false : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.size, size = _e === void 0 ? 'medium' : _e, rest = tslib_1.__rest(_a, ["label", "color", "className", "onChange", "checked", "indeterminate", "disabled", "size"]);
|
|
12
14
|
var inputRef = (0, react_1.useRef)(null);
|
|
15
|
+
// Safe theme detection
|
|
16
|
+
var currentTheme = 'light';
|
|
17
|
+
try {
|
|
18
|
+
currentTheme = (0, provider_1.useTheme)();
|
|
19
|
+
}
|
|
20
|
+
catch (e) {
|
|
21
|
+
// Provider not found, use default light theme
|
|
22
|
+
}
|
|
13
23
|
(0, react_1.useLayoutEffect)(function () {
|
|
14
24
|
if (inputRef.current) {
|
|
15
25
|
inputRef.current.indeterminate = indeterminate;
|
|
@@ -17,7 +27,7 @@ var Checkbox = function (_a) {
|
|
|
17
27
|
}, [indeterminate]);
|
|
18
28
|
return (react_1["default"].createElement("label", { className: "inline-flex items-center gap-x-2" },
|
|
19
29
|
react_1["default"].createElement("div", { className: "relative flex items-center cursor-pointer" },
|
|
20
|
-
react_1["default"].createElement("input", tslib_1.__assign({ ref: inputRef, onChange: onChange, checked: checked, disabled: disabled, type: 'checkbox', className: (0, tailwind_merge_config_1.twMerge)('peer relative appearance-none rounded-sm sm:rounded transition-all', disabled ? 'border border-control-light checked:bg-control-light cursor-not-allowed' : "".concat(
|
|
30
|
+
react_1["default"].createElement("input", tslib_1.__assign({ ref: inputRef, onChange: onChange, checked: checked, disabled: disabled, type: 'checkbox', className: (0, tailwind_merge_config_1.twMerge)('peer relative appearance-none rounded-sm sm:rounded transition-all', disabled ? 'border border-control-light checked:bg-control-light cursor-not-allowed' : "".concat((0, theme_1.getCheckboxColors)(currentTheme, color), " cursor-pointer"), checkbox_style_1.SIZES[size], className) }, rest)),
|
|
21
31
|
indeterminate ? (react_1["default"].createElement("div", { className: 'text-white absolute top-2/4 left-2/4 -translate-y-2/4 -translate-x-2/4 pointer-events-none transition-opacity' },
|
|
22
32
|
react_1["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", className: checkbox_style_1.CHECK_SIZES[size], viewBox: "0 0 24 24", fill: 'currentColor', stroke: 'currentColor' },
|
|
23
33
|
react_1["default"].createElement("path", { d: "M18 12.75H6C5.59 12.75 5.25 12.41 5.25 12C5.25 11.59 5.59 11.25 6 11.25H18C18.41 11.25 18.75 11.59 18.75 12C18.75 12.41 18.41 12.75 18 12.75Z", fill: "currentColor" })))) : (react_1["default"].createElement("div", { className: 'text-white absolute top-2/4 left-2/4 -translate-y-2/4 -translate-x-2/4 pointer-events-none opacity-0 peer-checked:opacity-100 transition-opacity' },
|
package/checkbox/checkbox.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../checkbox/checkbox.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;AAEb,qDAAuD;AAEvD,
|
|
1
|
+
{"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../checkbox/checkbox.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;AAEb,qDAAuD;AAEvD,mDAAsD;AACtD,kEAAmD;AACnD,yDAA2B;AAC3B,kCAA6C;AAC7C,wCAAuC;AAEhC,IAAM,QAAQ,GAAG,UAAC,EAA4I;IAA1I,IAAA,KAAK,WAAA,EAAE,aAAiB,EAAjB,KAAK,mBAAG,SAAS,KAAA,EAAE,SAAS,eAAA,EAAE,QAAQ,cAAA,EAAE,OAAO,aAAA,EAAE,qBAAqB,EAArB,aAAa,mBAAG,KAAK,KAAA,EAAE,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAAE,YAAe,EAAf,IAAI,mBAAG,QAAQ,KAAA,EAAK,IAAI,sBAA3H,2FAA6H,CAAF;IAClJ,IAAM,QAAQ,GAAG,IAAA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