@splenddev/kreativ-ui 0.3.3 → 0.3.5
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/chunk-2MCBBWEA.js +3 -0
- package/dist/chunk-2MCBBWEA.js.map +1 -0
- package/dist/chunk-3TZ7F7KW.js +22305 -0
- package/dist/chunk-3TZ7F7KW.js.map +1 -0
- package/dist/chunk-4KNQFZZT.cjs +211 -0
- package/dist/chunk-4KNQFZZT.cjs.map +1 -0
- package/dist/chunk-52AQLHWM.cjs +208 -0
- package/dist/chunk-52AQLHWM.cjs.map +1 -0
- package/dist/chunk-AQF6OJPA.cjs +1280 -0
- package/dist/chunk-AQF6OJPA.cjs.map +1 -0
- package/dist/chunk-CXR2HHQQ.js +12 -0
- package/dist/chunk-CXR2HHQQ.js.map +1 -0
- package/dist/chunk-DHKRYKS7.cjs +4 -0
- package/dist/chunk-DHKRYKS7.cjs.map +1 -0
- package/dist/chunk-EZIFSNRD.js +151 -0
- package/dist/chunk-EZIFSNRD.js.map +1 -0
- package/dist/chunk-MAUKS2DZ.cjs +16 -0
- package/dist/chunk-MAUKS2DZ.cjs.map +1 -0
- package/dist/chunk-OC5MESTQ.cjs +22382 -0
- package/dist/chunk-OC5MESTQ.cjs.map +1 -0
- package/dist/chunk-SGRBIUJ7.js +1241 -0
- package/dist/chunk-SGRBIUJ7.js.map +1 -0
- package/dist/chunk-TGYV2M2L.js +88 -0
- package/dist/chunk-TGYV2M2L.js.map +1 -0
- package/dist/color-C65EUdAl.d.cts +20 -0
- package/dist/color-C65EUdAl.d.ts +20 -0
- package/dist/components/index.cjs +231 -0
- package/dist/components/index.cjs.map +1 -0
- package/dist/components/index.d.cts +1622 -0
- package/dist/components/index.d.ts +1622 -0
- package/dist/components/index.js +6 -0
- package/dist/components/index.js.map +1 -0
- package/dist/core/index.cjs +69 -0
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +26 -0
- package/dist/core/index.d.ts +26 -0
- package/dist/core/index.js +4 -0
- package/dist/core/index.js.map +1 -0
- package/dist/hooks/index.cjs +77 -0
- package/dist/hooks/index.cjs.map +1 -0
- package/dist/hooks/index.d.cts +35 -0
- package/dist/hooks/index.d.ts +35 -0
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/index.cjs +362 -23945
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -1699
- package/dist/index.d.ts +12 -1699
- package/dist/index.js +14 -23835
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/types/index.cjs +6 -0
- package/dist/types/index.cjs.map +1 -0
- package/dist/types/index.d.cts +21 -0
- package/dist/types/index.d.ts +21 -0
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/index.cjs +149 -0
- package/dist/utils/index.cjs.map +1 -0
- package/dist/utils/index.d.cts +23 -0
- package/dist/utils/index.d.ts +23 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +26 -1
|
@@ -0,0 +1,1280 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkMAUKS2DZ_cjs = require('./chunk-MAUKS2DZ.cjs');
|
|
4
|
+
var kreativCore = require('@splenddev/kreativ-core');
|
|
5
|
+
|
|
6
|
+
var defaultTokens = {
|
|
7
|
+
colors: {
|
|
8
|
+
blue: {
|
|
9
|
+
300: kreativCore.defineToken("#5EA6ED"),
|
|
10
|
+
400: kreativCore.defineToken("#4799EB"),
|
|
11
|
+
500: kreativCore.defineToken("#1A80E6"),
|
|
12
|
+
600: kreativCore.defineToken("#1773CF")
|
|
13
|
+
},
|
|
14
|
+
red: {
|
|
15
|
+
300: kreativCore.defineToken("#EB4747"),
|
|
16
|
+
400: kreativCore.defineToken("#E83030"),
|
|
17
|
+
500: kreativCore.defineToken("#E61A1A"),
|
|
18
|
+
600: kreativCore.defineToken("#CF1717")
|
|
19
|
+
},
|
|
20
|
+
green: {
|
|
21
|
+
300: kreativCore.defineToken("#26D997"),
|
|
22
|
+
400: kreativCore.defineToken("#22C388"),
|
|
23
|
+
500: kreativCore.defineToken("#16A249"),
|
|
24
|
+
600: kreativCore.defineToken("#12875C")
|
|
25
|
+
},
|
|
26
|
+
amber: {
|
|
27
|
+
300: kreativCore.defineToken("#F7B23B"),
|
|
28
|
+
400: kreativCore.defineToken("#F6A823"),
|
|
29
|
+
500: kreativCore.defineToken("#F59F0A"),
|
|
30
|
+
600: kreativCore.defineToken("#D38909")
|
|
31
|
+
},
|
|
32
|
+
cyan: {
|
|
33
|
+
300: kreativCore.defineToken("#6CC3EF"),
|
|
34
|
+
400: kreativCore.defineToken("#47B4EB"),
|
|
35
|
+
500: kreativCore.defineToken("#1791CF"),
|
|
36
|
+
600: kreativCore.defineToken("#137BAE")
|
|
37
|
+
},
|
|
38
|
+
indigo: {
|
|
39
|
+
300: kreativCore.defineToken("#818CF8"),
|
|
40
|
+
400: kreativCore.defineToken("#6366F1"),
|
|
41
|
+
500: kreativCore.defineToken("#4F46E5"),
|
|
42
|
+
600: kreativCore.defineToken("#4338CA")
|
|
43
|
+
},
|
|
44
|
+
emerald: {
|
|
45
|
+
300: kreativCore.defineToken("#6EE7B7"),
|
|
46
|
+
400: kreativCore.defineToken("#34D399"),
|
|
47
|
+
500: kreativCore.defineToken("#10B981"),
|
|
48
|
+
600: kreativCore.defineToken("#059669")
|
|
49
|
+
},
|
|
50
|
+
violet: {
|
|
51
|
+
300: kreativCore.defineToken("#A78BFA"),
|
|
52
|
+
400: kreativCore.defineToken("#8B5CF6"),
|
|
53
|
+
500: kreativCore.defineToken("#7C3AED"),
|
|
54
|
+
600: kreativCore.defineToken("#6D28D9")
|
|
55
|
+
},
|
|
56
|
+
rose: {
|
|
57
|
+
300: kreativCore.defineToken("#FDA4AF"),
|
|
58
|
+
400: kreativCore.defineToken("#FB7185"),
|
|
59
|
+
500: kreativCore.defineToken("#F43F5E"),
|
|
60
|
+
600: kreativCore.defineToken("#E11D48")
|
|
61
|
+
},
|
|
62
|
+
orange: {
|
|
63
|
+
300: kreativCore.defineToken("#FDBA74"),
|
|
64
|
+
400: kreativCore.defineToken("#FB923C"),
|
|
65
|
+
500: kreativCore.defineToken("#F97316"),
|
|
66
|
+
600: kreativCore.defineToken("#EA580C")
|
|
67
|
+
},
|
|
68
|
+
gray: {
|
|
69
|
+
50: kreativCore.defineToken("#FAFAFA"),
|
|
70
|
+
100: kreativCore.defineToken("#EBEBEB"),
|
|
71
|
+
200: kreativCore.defineToken("#D9D9D9"),
|
|
72
|
+
300: kreativCore.defineToken("#BDBDBD"),
|
|
73
|
+
400: kreativCore.defineToken("#999999"),
|
|
74
|
+
500: kreativCore.defineToken("#666666"),
|
|
75
|
+
600: kreativCore.defineToken("#4D4D4D"),
|
|
76
|
+
700: kreativCore.defineToken("#333333"),
|
|
77
|
+
800: kreativCore.defineToken("#2E2E2E"),
|
|
78
|
+
900: kreativCore.defineToken("#1F1F1F"),
|
|
79
|
+
950: kreativCore.defineToken("#141414"),
|
|
80
|
+
1e3: kreativCore.defineToken("#0A0A0A")
|
|
81
|
+
},
|
|
82
|
+
white: kreativCore.defineToken("#FFFFFF"),
|
|
83
|
+
black: kreativCore.defineToken("#000000")
|
|
84
|
+
},
|
|
85
|
+
spacing: {
|
|
86
|
+
1: kreativCore.defineToken("0.25rem"),
|
|
87
|
+
2: kreativCore.defineToken("0.5rem"),
|
|
88
|
+
3: kreativCore.defineToken("0.75rem"),
|
|
89
|
+
4: kreativCore.defineToken("1rem"),
|
|
90
|
+
5: kreativCore.defineToken("1.25rem"),
|
|
91
|
+
6: kreativCore.defineToken("1.5rem"),
|
|
92
|
+
8: kreativCore.defineToken("2rem"),
|
|
93
|
+
10: kreativCore.defineToken("2.5rem"),
|
|
94
|
+
12: kreativCore.defineToken("3rem"),
|
|
95
|
+
16: kreativCore.defineToken("4rem"),
|
|
96
|
+
xs: kreativCore.defineToken("0.25rem"),
|
|
97
|
+
sm: kreativCore.defineToken("0.5rem"),
|
|
98
|
+
md: kreativCore.defineToken("1rem"),
|
|
99
|
+
lg: kreativCore.defineToken("1.5rem"),
|
|
100
|
+
xl: kreativCore.defineToken("2rem")
|
|
101
|
+
},
|
|
102
|
+
radii: {
|
|
103
|
+
none: kreativCore.defineToken("0"),
|
|
104
|
+
sm: kreativCore.defineToken("0.25rem"),
|
|
105
|
+
md: kreativCore.defineToken("0.5rem"),
|
|
106
|
+
lg: kreativCore.defineToken("0.75rem"),
|
|
107
|
+
xl: kreativCore.defineToken("1rem"),
|
|
108
|
+
full: kreativCore.defineToken("9999px")
|
|
109
|
+
},
|
|
110
|
+
fonts: {
|
|
111
|
+
body: kreativCore.defineToken("Inter, sans-serif"),
|
|
112
|
+
heading: kreativCore.defineToken("Inter, sans-serif"),
|
|
113
|
+
mono: kreativCore.defineToken("ui-monospace, SFMono-Regular, Menlo, monospace")
|
|
114
|
+
},
|
|
115
|
+
fontSizes: {
|
|
116
|
+
xs: kreativCore.defineToken("0.75rem"),
|
|
117
|
+
sm: kreativCore.defineToken("0.875rem"),
|
|
118
|
+
md: kreativCore.defineToken("1rem"),
|
|
119
|
+
lg: kreativCore.defineToken("1.125rem"),
|
|
120
|
+
xl: kreativCore.defineToken("1.25rem"),
|
|
121
|
+
"2xl": kreativCore.defineToken("1.5rem"),
|
|
122
|
+
"3xl": kreativCore.defineToken("1.875rem"),
|
|
123
|
+
"4xl": kreativCore.defineToken("2.25rem")
|
|
124
|
+
},
|
|
125
|
+
fontWeights: {
|
|
126
|
+
normal: kreativCore.defineToken("400"),
|
|
127
|
+
medium: kreativCore.defineToken("500"),
|
|
128
|
+
semibold: kreativCore.defineToken("600"),
|
|
129
|
+
bold: kreativCore.defineToken("700")
|
|
130
|
+
},
|
|
131
|
+
lineHeights: {
|
|
132
|
+
tight: kreativCore.defineToken("1.25"),
|
|
133
|
+
normal: kreativCore.defineToken("1.5"),
|
|
134
|
+
relaxed: kreativCore.defineToken("1.75")
|
|
135
|
+
},
|
|
136
|
+
letterSpacings: {
|
|
137
|
+
tighter: kreativCore.defineToken("-0.025em"),
|
|
138
|
+
tight: kreativCore.defineToken("-0.01em"),
|
|
139
|
+
normal: kreativCore.defineToken("0"),
|
|
140
|
+
wide: kreativCore.defineToken("0.025em")
|
|
141
|
+
},
|
|
142
|
+
animations: {
|
|
143
|
+
spin: kreativCore.defineToken("kui-spin 0.6s linear infinite"),
|
|
144
|
+
"fade-in": kreativCore.defineToken("kui-fade-in 0.15s ease-out"),
|
|
145
|
+
"fade-out": kreativCore.defineToken("kui-fade-out 0.15s ease-in"),
|
|
146
|
+
"scale-in": kreativCore.defineToken("kui-scale-in 0.15s ease-out"),
|
|
147
|
+
"scale-out": kreativCore.defineToken("kui-scale-out 0.15s ease-in"),
|
|
148
|
+
"slide-up": kreativCore.defineToken("kui-slide-up 0.2s ease-out"),
|
|
149
|
+
"slide-down": kreativCore.defineToken("kui-slide-down 0.2s ease-out"),
|
|
150
|
+
"slide-left": kreativCore.defineToken("kui-slide-left 0.2s ease-out"),
|
|
151
|
+
"slide-right": kreativCore.defineToken("kui-slide-right 0.2s ease-out"),
|
|
152
|
+
"slide-in-next": kreativCore.defineToken("kui-slide-in-next 0.2s ease-out"),
|
|
153
|
+
"slide-in-prev": kreativCore.defineToken("kui-slide-in-prev 0.2s ease-out"),
|
|
154
|
+
bounce: kreativCore.defineToken("kui-bounce 0.8s infinite"),
|
|
155
|
+
pulse: kreativCore.defineToken("kui-pulse 1.5s ease-in-out infinite"),
|
|
156
|
+
shake: kreativCore.defineToken("kui-shake 0.25s ease-in-out"),
|
|
157
|
+
shimmer: kreativCore.defineToken("kui-shimmer 1.5s linear infinite"),
|
|
158
|
+
expand: kreativCore.defineToken("kui-expand 0.2s ease-out"),
|
|
159
|
+
collapse: kreativCore.defineToken("kui-collapse 0.2s ease-in"),
|
|
160
|
+
ping: kreativCore.defineToken("kui-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"),
|
|
161
|
+
"state-error": kreativCore.defineToken("kui-state-error 500ms ease-out 3 500ms"),
|
|
162
|
+
"state-success": kreativCore.defineToken("kui-state-success 500ms ease-out 2 500ms"),
|
|
163
|
+
"state-warning": kreativCore.defineToken("kui-state-warning 500ms ease-out 2 500ms")
|
|
164
|
+
},
|
|
165
|
+
breakpoints: {
|
|
166
|
+
sm: kreativCore.defineToken("640px"),
|
|
167
|
+
md: kreativCore.defineToken("768px"),
|
|
168
|
+
lg: kreativCore.defineToken("1024px"),
|
|
169
|
+
xl: kreativCore.defineToken("1280px"),
|
|
170
|
+
"2xl": kreativCore.defineToken("1536px")
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
var defaultSemanticTokens = {
|
|
174
|
+
colors: {
|
|
175
|
+
brand: kreativCore.defineSemanticToken("{colors.blue.500}", "{colors.blue.400}"),
|
|
176
|
+
brandHover: kreativCore.defineSemanticToken("{colors.blue.600}", "{colors.blue.300}"),
|
|
177
|
+
brandFg: kreativCore.defineSemanticToken("{colors.white}"),
|
|
178
|
+
background: kreativCore.defineSemanticToken("{colors.gray.50}", "{colors.gray.950}"),
|
|
179
|
+
surface: kreativCore.defineSemanticToken("{colors.white}", "{colors.gray.900}"),
|
|
180
|
+
surfaceRaised: kreativCore.defineSemanticToken("{colors.gray.50}", "{colors.gray.800}"),
|
|
181
|
+
surfaceSunken: kreativCore.defineSemanticToken(
|
|
182
|
+
"{colors.gray.100}",
|
|
183
|
+
"{colors.gray.950}"
|
|
184
|
+
),
|
|
185
|
+
border: kreativCore.defineSemanticToken("{colors.gray.200}", "{colors.gray.600}"),
|
|
186
|
+
text: kreativCore.defineSemanticToken("{colors.gray.900}", "{colors.gray.50}"),
|
|
187
|
+
textMuted: kreativCore.defineSemanticToken("{colors.gray.500}", "{colors.gray.400}"),
|
|
188
|
+
destructive: kreativCore.defineSemanticToken("{colors.red.500}", "{colors.red.400}"),
|
|
189
|
+
destructiveFg: kreativCore.defineSemanticToken("{colors.white}"),
|
|
190
|
+
destructiveHover: kreativCore.defineSemanticToken(
|
|
191
|
+
"{colors.red.600}",
|
|
192
|
+
"{colors.red.300}"
|
|
193
|
+
),
|
|
194
|
+
success: kreativCore.defineSemanticToken("{colors.green.500}", "{colors.green.400}"),
|
|
195
|
+
successFg: kreativCore.defineSemanticToken("{colors.white}"),
|
|
196
|
+
successHover: kreativCore.defineSemanticToken(
|
|
197
|
+
"{colors.green.600}",
|
|
198
|
+
"{colors.green.300}"
|
|
199
|
+
),
|
|
200
|
+
warning: kreativCore.defineSemanticToken("{colors.amber.500}", "{colors.amber.400}"),
|
|
201
|
+
warningFg: kreativCore.defineSemanticToken("{colors.black}"),
|
|
202
|
+
warningHover: kreativCore.defineSemanticToken(
|
|
203
|
+
"{colors.amber.600}",
|
|
204
|
+
"{colors.amber.300}"
|
|
205
|
+
),
|
|
206
|
+
info: kreativCore.defineSemanticToken("{colors.cyan.500}", "{colors.cyan.400}"),
|
|
207
|
+
infoFg: kreativCore.defineSemanticToken("{colors.white}"),
|
|
208
|
+
infoHover: kreativCore.defineSemanticToken("{colors.cyan.600}", "{colors.cyan.300}"),
|
|
209
|
+
shadowColor: kreativCore.defineSemanticToken("{colors.gray.200}", "{colors.gray.600}")
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
var defaultTypography = kreativCore.defineTypography({
|
|
213
|
+
body: {
|
|
214
|
+
fontFamily: "{fonts.body}",
|
|
215
|
+
fontWeight: "{fontWeights.normal}",
|
|
216
|
+
lineHeight: "{lineHeights.normal}"
|
|
217
|
+
},
|
|
218
|
+
bodySmall: {
|
|
219
|
+
fontFamily: "{fonts.body}",
|
|
220
|
+
fontWeight: "{fontWeights.normal}",
|
|
221
|
+
lineHeight: "{lineHeights.normal}"
|
|
222
|
+
},
|
|
223
|
+
heading: {
|
|
224
|
+
fontFamily: "{fonts.heading}",
|
|
225
|
+
fontSize: "{fontSizes.2xl}",
|
|
226
|
+
fontWeight: "{fontWeights.bold}",
|
|
227
|
+
lineHeight: "{lineHeights.tight}"
|
|
228
|
+
},
|
|
229
|
+
headingSmall: {
|
|
230
|
+
fontFamily: "{fonts.heading}",
|
|
231
|
+
fontSize: "{fontSizes.xl}",
|
|
232
|
+
fontWeight: "{fontWeights.semibold}",
|
|
233
|
+
lineHeight: "{lineHeights.tight}"
|
|
234
|
+
},
|
|
235
|
+
label: {
|
|
236
|
+
fontFamily: "{fonts.body}",
|
|
237
|
+
fontWeight: "{fontWeights.medium}",
|
|
238
|
+
lineHeight: "{lineHeights.normal}"
|
|
239
|
+
},
|
|
240
|
+
caption: {
|
|
241
|
+
fontFamily: "{fonts.body}",
|
|
242
|
+
fontSize: "{fontSizes.xs}",
|
|
243
|
+
fontWeight: "{fontWeights.normal}",
|
|
244
|
+
lineHeight: "{lineHeights.normal}"
|
|
245
|
+
},
|
|
246
|
+
mono: {
|
|
247
|
+
fontFamily: "{fonts.mono}",
|
|
248
|
+
fontSize: "{fontSizes.xs}",
|
|
249
|
+
fontWeight: "{fontWeights.normal}",
|
|
250
|
+
lineHeight: "{lineHeights.normal}"
|
|
251
|
+
},
|
|
252
|
+
sizeXs: {
|
|
253
|
+
fontFamily: "{fonts.body}",
|
|
254
|
+
fontSize: "{fontSizes.xs}",
|
|
255
|
+
fontWeight: "{fontWeights.normal}",
|
|
256
|
+
lineHeight: "{lineHeights.normal}"
|
|
257
|
+
},
|
|
258
|
+
sizeSm: {
|
|
259
|
+
fontFamily: "{fonts.body}",
|
|
260
|
+
fontSize: "{fontSizes.sm}",
|
|
261
|
+
fontWeight: "{fontWeights.normal}",
|
|
262
|
+
lineHeight: "{lineHeights.normal}"
|
|
263
|
+
},
|
|
264
|
+
sizeMd: {
|
|
265
|
+
fontFamily: "{fonts.body}",
|
|
266
|
+
fontSize: "{fontSizes.md}",
|
|
267
|
+
fontWeight: "{fontWeights.normal}",
|
|
268
|
+
lineHeight: "{lineHeights.normal}"
|
|
269
|
+
},
|
|
270
|
+
sizeLg: {
|
|
271
|
+
fontFamily: "{fonts.body}",
|
|
272
|
+
fontSize: "{fontSizes.md}",
|
|
273
|
+
fontWeight: "{fontWeights.normal}",
|
|
274
|
+
lineHeight: "{lineHeights.normal}"
|
|
275
|
+
},
|
|
276
|
+
sizeXl: {
|
|
277
|
+
fontFamily: "{fonts.body}",
|
|
278
|
+
fontSize: "{fontSizes.xl}",
|
|
279
|
+
fontWeight: "{fontWeights.medium}",
|
|
280
|
+
lineHeight: "{lineHeights.tight}"
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
var defaultSizes = kreativCore.defineSizes({
|
|
284
|
+
xs: {
|
|
285
|
+
height: "1.75rem",
|
|
286
|
+
width: "1.75rem",
|
|
287
|
+
paddingX: "0.5rem",
|
|
288
|
+
fontSize: "{typography.sizeXs}",
|
|
289
|
+
gap: "0.25rem",
|
|
290
|
+
iconSize: "0.75rem",
|
|
291
|
+
radius: "0.65rem"
|
|
292
|
+
},
|
|
293
|
+
sm: {
|
|
294
|
+
height: "2rem",
|
|
295
|
+
width: "2rem",
|
|
296
|
+
paddingX: "0.75rem",
|
|
297
|
+
fontSize: "{typography.sizeSm}",
|
|
298
|
+
gap: "0.375rem",
|
|
299
|
+
iconSize: "0.875rem",
|
|
300
|
+
radius: "0.8rem"
|
|
301
|
+
},
|
|
302
|
+
md: {
|
|
303
|
+
height: "2.5rem",
|
|
304
|
+
width: "2.5rem",
|
|
305
|
+
paddingX: "1rem",
|
|
306
|
+
fontSize: "{typography.sizeMd}",
|
|
307
|
+
gap: "0.5rem",
|
|
308
|
+
iconSize: "1rem",
|
|
309
|
+
radius: "1rem"
|
|
310
|
+
},
|
|
311
|
+
lg: {
|
|
312
|
+
height: "3rem",
|
|
313
|
+
width: "3rem",
|
|
314
|
+
paddingX: "1.25rem",
|
|
315
|
+
fontSize: "{typography.sizeLg}",
|
|
316
|
+
gap: "0.625rem",
|
|
317
|
+
iconSize: "1.25rem",
|
|
318
|
+
radius: "1.15rem"
|
|
319
|
+
},
|
|
320
|
+
xl: {
|
|
321
|
+
height: "3.5rem",
|
|
322
|
+
width: "3.5rem",
|
|
323
|
+
paddingX: "1.5rem",
|
|
324
|
+
fontSize: "{typography.sizeXl}",
|
|
325
|
+
gap: "0.875rem",
|
|
326
|
+
iconSize: "1.5rem",
|
|
327
|
+
radius: "1.3rem"
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
var buttonBase = "inline-flex items-center justify-center rounded-[var(--kui-button-radius,var(--kui-radius))] font-medium transition-[background-color,border-color,color,transform,opacity] duration-200 will-change-transform focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-kui-brand focus-visible:ring-offset-2 focus-visible:ring-offset-surface disabled:opacity-60 disabled:pointer-events-none disabled:active:scale-100";
|
|
331
|
+
var buttonVariants = {
|
|
332
|
+
solid: "ease-[cubic-bezier(0.34,1.56,0.64,1)] active:scale-[0.97]",
|
|
333
|
+
soft: "ease-[cubic-bezier(0.34,1.56,0.64,1)] active:scale-[0.97]",
|
|
334
|
+
outline: "border bg-transparent ease-out active:scale-[0.98]",
|
|
335
|
+
ghost: "bg-transparent ease-out active:scale-[0.98]",
|
|
336
|
+
link: "bg-transparent p-0 h-auto hover:underline ease-out"
|
|
337
|
+
};
|
|
338
|
+
var buttonColors = {
|
|
339
|
+
brand: {
|
|
340
|
+
solid: "bg-kui-brand text-kui-brand-fg hover:bg-kui-brand-hover",
|
|
341
|
+
outline: "border-kui-brand text-kui-brand hover:bg-kui-brand/10",
|
|
342
|
+
ghost: "text-kui-brand hover:bg-kui-brand/10",
|
|
343
|
+
soft: "bg-kui-brand/10 text-kui-brand hover:bg-kui-brand/20",
|
|
344
|
+
link: "text-kui-brand"
|
|
345
|
+
},
|
|
346
|
+
destructive: {
|
|
347
|
+
solid: "bg-kui-destructive text-kui-destructive-fg hover:bg-kui-destructive-hover",
|
|
348
|
+
outline: "border-kui-destructive text-kui-destructive hover:bg-kui-destructive/10",
|
|
349
|
+
ghost: "text-kui-destructive hover:bg-kui-destructive/10",
|
|
350
|
+
soft: "bg-kui-destructive/10 text-kui-destructive hover:bg-kui-destructive/20",
|
|
351
|
+
link: "text-kui-destructive"
|
|
352
|
+
},
|
|
353
|
+
success: {
|
|
354
|
+
solid: "bg-kui-success text-kui-success-fg hover:bg-kui-success-hover",
|
|
355
|
+
outline: "border-kui-success text-kui-success hover:bg-kui-success/10",
|
|
356
|
+
ghost: "text-kui-success hover:bg-kui-success/10",
|
|
357
|
+
soft: "bg-kui-success/10 text-kui-success hover:bg-kui-success/20",
|
|
358
|
+
link: "text-kui-success"
|
|
359
|
+
},
|
|
360
|
+
warning: {
|
|
361
|
+
solid: "bg-kui-warning text-kui-warning-fg hover:bg-kui-warning-hover",
|
|
362
|
+
outline: "border-kui-warning text-kui-warning hover:bg-kui-warning/10",
|
|
363
|
+
ghost: "text-kui-warning hover:bg-kui-warning/10",
|
|
364
|
+
soft: "bg-kui-warning/10 text-kui-warning hover:bg-kui-warning/20",
|
|
365
|
+
link: "text-kui-warning"
|
|
366
|
+
},
|
|
367
|
+
info: {
|
|
368
|
+
solid: "bg-kui-info text-kui-info-fg hover:bg-kui-info-hover",
|
|
369
|
+
outline: "border-kui-info text-kui-info hover:bg-kui-info/10",
|
|
370
|
+
ghost: "text-kui-info hover:bg-kui-info/10",
|
|
371
|
+
soft: "bg-kui-info/10 text-kui-info hover:bg-kui-info/20",
|
|
372
|
+
link: "text-kui-info"
|
|
373
|
+
},
|
|
374
|
+
white: {
|
|
375
|
+
solid: "bg-white text-black hover:bg-gray-50",
|
|
376
|
+
outline: "border-white/30 text-white hover:bg-white/10",
|
|
377
|
+
ghost: "text-white hover:bg-white/10",
|
|
378
|
+
soft: "bg-white/10 text-white hover:bg-white/20",
|
|
379
|
+
link: "text-white"
|
|
380
|
+
},
|
|
381
|
+
black: {
|
|
382
|
+
solid: "bg-black text-white hover:bg-neutral-900 active:bg-neutral-950 shadow-sm",
|
|
383
|
+
outline: "border border-black/80 text-black bg-transparent hover:bg-black hover:text-white active:bg-black/90",
|
|
384
|
+
ghost: "text-black bg-transparent hover:bg-black/10 active:bg-black/15",
|
|
385
|
+
soft: "bg-black/10 text-black hover:bg-black/15 active:bg-black/20",
|
|
386
|
+
link: "text-black underline-offset-4 hover:underline"
|
|
387
|
+
},
|
|
388
|
+
neutral: {
|
|
389
|
+
solid: "bg-kui-surface-raised text-kui-text hover:bg-kui-surface-sunken",
|
|
390
|
+
outline: "border-kui-border text-kui-text hover:bg-kui-surface-raised",
|
|
391
|
+
ghost: "text-kui-text hover:bg-kui-surface-raised",
|
|
392
|
+
soft: "bg-kui-surface-raised text-kui-text hover:bg-kui-surface-sunken",
|
|
393
|
+
link: "text-kui-text"
|
|
394
|
+
},
|
|
395
|
+
inherit: {
|
|
396
|
+
solid: "[background-color:var(--kui-inherit-bg)] [color:var(--kui-inherit-fg)]",
|
|
397
|
+
outline: "[border-color:var(--kui-inherit-border)] [color:var(--kui-inherit-fg)] bg-transparent",
|
|
398
|
+
ghost: "[color:var(--kui-inherit-fg)] bg-transparent",
|
|
399
|
+
soft: "[background-color:var(--kui-inherit-soft-bg)] [color:var(--kui-inherit-fg)]",
|
|
400
|
+
link: "[color:var(--kui-inherit-fg)] bg-transparent"
|
|
401
|
+
}
|
|
402
|
+
};
|
|
403
|
+
var buildCompoundVariants = /* @__PURE__ */ chunkMAUKS2DZ_cjs.__name(() => {
|
|
404
|
+
const compounds = [];
|
|
405
|
+
for (const [color, variantMap] of Object.entries(buttonColors)) {
|
|
406
|
+
for (const [variant, className] of Object.entries(variantMap)) {
|
|
407
|
+
compounds.push({
|
|
408
|
+
conditions: { color, variant },
|
|
409
|
+
className
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
return compounds;
|
|
414
|
+
}, "buildCompoundVariants");
|
|
415
|
+
var buttonRecipe = kreativCore.defineRecipe({
|
|
416
|
+
base: buttonBase,
|
|
417
|
+
variants: {
|
|
418
|
+
variant: buttonVariants,
|
|
419
|
+
color: Object.fromEntries(
|
|
420
|
+
Object.keys(buttonColors).map((color) => [color, ""])
|
|
421
|
+
)
|
|
422
|
+
},
|
|
423
|
+
defaultVariants: {
|
|
424
|
+
variant: "solid",
|
|
425
|
+
color: "brand"
|
|
426
|
+
},
|
|
427
|
+
compoundVariants: buildCompoundVariants()
|
|
428
|
+
});
|
|
429
|
+
var formControlBase = "group relative inline-flex items-center rounded-[var(--kui-radii-md)] transition-[border-color,box-shadow] duration-[var(--kui-duration-fast)] focus-within:outline-none ";
|
|
430
|
+
var formControlVariants = {
|
|
431
|
+
outline: {
|
|
432
|
+
border: "1px solid rgb(var(--kui-border))",
|
|
433
|
+
backgroundColor: "transparent",
|
|
434
|
+
color: "rgb(var(--kui-text))"
|
|
435
|
+
},
|
|
436
|
+
filled: "border border-transparent bg-kui-surface-raised text-kui-text",
|
|
437
|
+
ghost: "border border-transparent bg-transparent text-kui-text"
|
|
438
|
+
};
|
|
439
|
+
var standaloneStates = {
|
|
440
|
+
none: "hover:border-kui-brand focus-within:ring-2 focus-within:ring-kui-brand/20",
|
|
441
|
+
error: "border-kui-destructive hover:border-kui-destructive focus-within:ring-2 focus-within:ring-kui-destructive/20",
|
|
442
|
+
success: "border-kui-success hover:border-kui-success focus-within:ring-2 focus-within:ring-kui-success/20",
|
|
443
|
+
warning: "border-kui-warning hover:border-kui-warning focus-within:ring-2 focus-within:ring-kui-warning/20"
|
|
444
|
+
};
|
|
445
|
+
var borderlessControl = "rounded-none border-0! shadow-none! hover:border-0! hover:bg-transparent! focus-within:ring-0! focus-within-outline-none!";
|
|
446
|
+
var formControlRecipe = kreativCore.defineRecipe({
|
|
447
|
+
base: formControlBase,
|
|
448
|
+
variants: {
|
|
449
|
+
variant: formControlVariants,
|
|
450
|
+
embedded: {
|
|
451
|
+
true: borderlessControl,
|
|
452
|
+
false: ""
|
|
453
|
+
},
|
|
454
|
+
groupItem: {
|
|
455
|
+
true: borderlessControl,
|
|
456
|
+
false: ""
|
|
457
|
+
},
|
|
458
|
+
state: standaloneStates,
|
|
459
|
+
rounded: {
|
|
460
|
+
true: "rounded-full",
|
|
461
|
+
false: ""
|
|
462
|
+
},
|
|
463
|
+
fullWidth: {
|
|
464
|
+
true: "w-full",
|
|
465
|
+
false: ""
|
|
466
|
+
},
|
|
467
|
+
disabled: {
|
|
468
|
+
true: "cursor-not-allowed opacity-50 border-kui-border hover:border-kui-border focus-within:ring-0",
|
|
469
|
+
false: ""
|
|
470
|
+
},
|
|
471
|
+
attached: {
|
|
472
|
+
true: "rounded-r-none",
|
|
473
|
+
false: ""
|
|
474
|
+
},
|
|
475
|
+
hasAdornment: {
|
|
476
|
+
true: "px-2",
|
|
477
|
+
false: ""
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
compoundVariants: [
|
|
481
|
+
{
|
|
482
|
+
conditions: {
|
|
483
|
+
embedded: true,
|
|
484
|
+
state: "none"
|
|
485
|
+
},
|
|
486
|
+
className: "border-0! shadow-none! focus-within:ring-0! hover:border-0!"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
conditions: {
|
|
490
|
+
embedded: true,
|
|
491
|
+
state: "error"
|
|
492
|
+
},
|
|
493
|
+
className: "border-0! shadow-none! focus-within:ring-0! hover:border-0!"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
conditions: {
|
|
497
|
+
embedded: true,
|
|
498
|
+
state: "success"
|
|
499
|
+
},
|
|
500
|
+
className: "border-0! shadow-none! focus-within:ring-0! hover:border-0!"
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
conditions: {
|
|
504
|
+
embedded: true,
|
|
505
|
+
state: "warning"
|
|
506
|
+
},
|
|
507
|
+
className: "border-0! shadow-none! focus-within:ring-0! hover:border-0!"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
conditions: {
|
|
511
|
+
groupItem: true,
|
|
512
|
+
state: "none"
|
|
513
|
+
},
|
|
514
|
+
className: "border-0! shadow-none! focus-within:ring-0! hover:border-0!"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
conditions: {
|
|
518
|
+
groupItem: true,
|
|
519
|
+
state: "error"
|
|
520
|
+
},
|
|
521
|
+
className: "border-0! shadow-none! focus-within:ring-0! hover:border-0!"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
conditions: {
|
|
525
|
+
groupItem: true,
|
|
526
|
+
state: "success"
|
|
527
|
+
},
|
|
528
|
+
className: "border-0! shadow-none! focus-within:ring-0! hover:border-0!"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
conditions: {
|
|
532
|
+
groupItem: true,
|
|
533
|
+
state: "warning"
|
|
534
|
+
},
|
|
535
|
+
className: "border-0! shadow-none! focus-within:ring-0! hover:border-0!"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
conditions: {
|
|
539
|
+
disabled: true,
|
|
540
|
+
state: "error"
|
|
541
|
+
},
|
|
542
|
+
className: "border-kui-border hover:border-kui-border focus-within:ring-0"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
conditions: {
|
|
546
|
+
disabled: true,
|
|
547
|
+
state: "success"
|
|
548
|
+
},
|
|
549
|
+
className: "border-kui-border hover:border-kui-border focus-within:ring-0"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
conditions: {
|
|
553
|
+
disabled: true,
|
|
554
|
+
state: "warning"
|
|
555
|
+
},
|
|
556
|
+
className: "border-kui-border hover:border-kui-border focus-within:ring-0"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
conditions: {
|
|
560
|
+
embedded: true,
|
|
561
|
+
disabled: true
|
|
562
|
+
},
|
|
563
|
+
className: "border-0! hover:border-0! focus-within:ring-0! cursor-default"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
conditions: {
|
|
567
|
+
groupItem: true,
|
|
568
|
+
disabled: true
|
|
569
|
+
},
|
|
570
|
+
className: "border-0! hover:border-0! focus-within:ring-0! cursor-default"
|
|
571
|
+
}
|
|
572
|
+
],
|
|
573
|
+
defaultVariants: {
|
|
574
|
+
variant: "outline",
|
|
575
|
+
state: "none",
|
|
576
|
+
embedded: false,
|
|
577
|
+
groupItem: false,
|
|
578
|
+
rounded: false,
|
|
579
|
+
fullWidth: true,
|
|
580
|
+
disabled: false,
|
|
581
|
+
hasAdornment: false,
|
|
582
|
+
attached: false
|
|
583
|
+
}
|
|
584
|
+
});
|
|
585
|
+
var inputRecipe = kreativCore.defineRecipe({
|
|
586
|
+
base: "kui-input",
|
|
587
|
+
variants: {
|
|
588
|
+
variant: {
|
|
589
|
+
outline: "",
|
|
590
|
+
filled: "",
|
|
591
|
+
ghost: ""
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
defaultVariants: {
|
|
595
|
+
variant: "outline"
|
|
596
|
+
}
|
|
597
|
+
});
|
|
598
|
+
var textareaRecipe = kreativCore.defineRecipe({
|
|
599
|
+
base: "flex w-full min-w-0 bg-transparent outline-none border-0 text-kui-text placeholder:text-kui-text-muted transition-colors duration-[var(--kui-duration-fast)] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 kui-scrollbar",
|
|
600
|
+
variants: {
|
|
601
|
+
variant: {
|
|
602
|
+
outline: "",
|
|
603
|
+
filled: "",
|
|
604
|
+
ghost: ""
|
|
605
|
+
},
|
|
606
|
+
resize: {
|
|
607
|
+
none: "resize-none",
|
|
608
|
+
both: "resize",
|
|
609
|
+
horizontal: "resize-x",
|
|
610
|
+
vertical: "resize-y"
|
|
611
|
+
},
|
|
612
|
+
autoResize: {
|
|
613
|
+
true: "resize-none overflow-hidden",
|
|
614
|
+
false: ""
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
defaultVariants: {
|
|
618
|
+
variant: "outline",
|
|
619
|
+
resize: "vertical",
|
|
620
|
+
autoResize: false
|
|
621
|
+
}
|
|
622
|
+
});
|
|
623
|
+
var markdownEditorRecipe = kreativCore.defineRecipe({
|
|
624
|
+
base: "group relative w-full overflow-hidden rounded-[var(--kui-radii-md)] transition-[border-color,box-shadow] duration-[var(--kui-duration-fast)]",
|
|
625
|
+
variants: {
|
|
626
|
+
variant: {
|
|
627
|
+
outline: "border border-kui-border bg-transparent",
|
|
628
|
+
filled: "border border-transparent bg-kui-surface-raised",
|
|
629
|
+
ghost: "border border-transparent bg-transparent"
|
|
630
|
+
},
|
|
631
|
+
state: {
|
|
632
|
+
none: "hover:border-kui-brand focus-within:ring-2 focus-within:ring-kui-brand/20",
|
|
633
|
+
error: "border-kui-destructive focus-within:ring-2 focus-within:ring-kui-destructive/20",
|
|
634
|
+
success: "border-kui-success focus-within:ring-2 focus-within:ring-kui-success/20",
|
|
635
|
+
warning: "border-kui-warning focus-within:ring-2 focus-within:ring-kui-warning/20"
|
|
636
|
+
},
|
|
637
|
+
disabled: {
|
|
638
|
+
true: "cursor-not-allowed opacity-50 border-kui-border hover:border-kui-border focus-within:ring-0",
|
|
639
|
+
false: ""
|
|
640
|
+
},
|
|
641
|
+
fullWidth: {
|
|
642
|
+
true: "w-full",
|
|
643
|
+
false: ""
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
defaultVariants: {
|
|
647
|
+
variant: "outline",
|
|
648
|
+
state: "none",
|
|
649
|
+
fullWidth: true
|
|
650
|
+
}
|
|
651
|
+
});
|
|
652
|
+
var checkboxRecipe = kreativCore.defineRecipe({
|
|
653
|
+
base: "relative inline-flex shrink-0 items-center justify-center border transition-colors duration-[var(--kui-duration-fast)] peer-focus-visible:ring-2 peer-focus-visible:ring-kui-brand peer-focus-visible:ring-offset-1",
|
|
654
|
+
variants: {
|
|
655
|
+
state: {
|
|
656
|
+
none: "border-kui-border",
|
|
657
|
+
error: "border-kui-destructive",
|
|
658
|
+
success: "border-kui-success",
|
|
659
|
+
warning: "border-kui-warning"
|
|
660
|
+
},
|
|
661
|
+
checked: {
|
|
662
|
+
true: "border-kui-brand bg-kui-brand text-kui-brand-fg",
|
|
663
|
+
false: "bg-transparent"
|
|
664
|
+
},
|
|
665
|
+
disabled: {
|
|
666
|
+
true: "cursor-not-allowed",
|
|
667
|
+
false: "cursor-pointer"
|
|
668
|
+
},
|
|
669
|
+
rounded: {
|
|
670
|
+
true: "rounded-full",
|
|
671
|
+
false: "rounded-[calc(var(--kui-checkbox-radius)-4px)]"
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
compoundVariants: [
|
|
675
|
+
{
|
|
676
|
+
conditions: {
|
|
677
|
+
checked: false,
|
|
678
|
+
state: "error"
|
|
679
|
+
},
|
|
680
|
+
className: "border-kui-destructive"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
conditions: {
|
|
684
|
+
checked: false,
|
|
685
|
+
state: "success"
|
|
686
|
+
},
|
|
687
|
+
className: "border-kui-success"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
conditions: {
|
|
691
|
+
checked: false,
|
|
692
|
+
state: "warning"
|
|
693
|
+
},
|
|
694
|
+
className: "border-kui-warning"
|
|
695
|
+
}
|
|
696
|
+
],
|
|
697
|
+
defaultVariants: {
|
|
698
|
+
state: "none",
|
|
699
|
+
checked: false,
|
|
700
|
+
disabled: false,
|
|
701
|
+
rounded: false
|
|
702
|
+
}
|
|
703
|
+
});
|
|
704
|
+
var buttonGroupRecipe = kreativCore.defineRecipe({
|
|
705
|
+
base: ["inline-flex items-center relative isolate", "kui-button-group"].join(
|
|
706
|
+
" "
|
|
707
|
+
),
|
|
708
|
+
variants: {
|
|
709
|
+
orientation: {
|
|
710
|
+
horizontal: "flex-row",
|
|
711
|
+
vertical: "flex-col items-stretch"
|
|
712
|
+
},
|
|
713
|
+
attached: {
|
|
714
|
+
true: "gap-0",
|
|
715
|
+
false: ""
|
|
716
|
+
},
|
|
717
|
+
spacing: {
|
|
718
|
+
none: "gap-0",
|
|
719
|
+
sm: "gap-1",
|
|
720
|
+
md: "gap-2",
|
|
721
|
+
lg: "gap-3"
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
defaultVariants: {
|
|
725
|
+
orientation: "horizontal",
|
|
726
|
+
attached: false,
|
|
727
|
+
spacing: "md"
|
|
728
|
+
},
|
|
729
|
+
compoundVariants: [
|
|
730
|
+
{
|
|
731
|
+
conditions: {
|
|
732
|
+
orientation: "horizontal",
|
|
733
|
+
attached: true
|
|
734
|
+
},
|
|
735
|
+
className: [
|
|
736
|
+
"[&>[data-kui-button-group-item]]:rounded-none",
|
|
737
|
+
"[&>[data-kui-button-group-item]:first-child]:rounded-l-md",
|
|
738
|
+
"[&>[data-kui-button-group-item]:last-child]:rounded-r-md",
|
|
739
|
+
"[&>[data-kui-button-group-item]+[data-kui-button-group-item]]:-ml-px",
|
|
740
|
+
"[&>[data-kui-button-group-separator]]:h-[var(--kui-button-group-separator-size)]",
|
|
741
|
+
"[&>[data-kui-button-group-separator]]:w-px",
|
|
742
|
+
"[&>[data-kui-button-group-separator]]:mx-1",
|
|
743
|
+
"[&>[data-kui-button-group-separator]]:shrink-0"
|
|
744
|
+
].join(" ")
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
conditions: {
|
|
748
|
+
orientation: "vertical"
|
|
749
|
+
},
|
|
750
|
+
className: [
|
|
751
|
+
"[&>[data-kui-button-group-item]]:w-full",
|
|
752
|
+
"[&>[data-kui-button-group-separator]]:h-px",
|
|
753
|
+
"[&>[data-kui-button-group-separator]]:w-[var(--kui-button-group-separator-size)]",
|
|
754
|
+
"[&>[data-kui-button-group-separator]]:shrink-0"
|
|
755
|
+
].join(" ")
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
conditions: {
|
|
759
|
+
orientation: "vertical",
|
|
760
|
+
attached: true
|
|
761
|
+
},
|
|
762
|
+
className: [
|
|
763
|
+
"[&>[data-kui-button-group-item]]:rounded-none",
|
|
764
|
+
"[&>[data-kui-button-group-item]:first-child]:rounded-t-md",
|
|
765
|
+
"[&>[data-kui-button-group-item]:last-child]:rounded-b-md",
|
|
766
|
+
"[&>[data-kui-button-group-item]+[data-kui-button-group-item]]:-mt-px"
|
|
767
|
+
].join(" ")
|
|
768
|
+
}
|
|
769
|
+
]
|
|
770
|
+
});
|
|
771
|
+
var switchRecipe = kreativCore.defineRecipe({
|
|
772
|
+
base: [
|
|
773
|
+
"relative inline-flex shrink-0 items-center",
|
|
774
|
+
"rounded-full",
|
|
775
|
+
"transition-[background-color,border-color,box-shadow]",
|
|
776
|
+
"duration-[var(--kui-duration-fast)]",
|
|
777
|
+
"peer-focus-visible:ring-2",
|
|
778
|
+
"peer-focus-visible:ring-kui-brand",
|
|
779
|
+
"peer-focus-visible:ring-offset-1",
|
|
780
|
+
"peer-focus-visible:ring-offset-surface"
|
|
781
|
+
].join(" "),
|
|
782
|
+
variants: {
|
|
783
|
+
checked: {
|
|
784
|
+
true: "bg-kui-brand",
|
|
785
|
+
false: "bg-kui-border"
|
|
786
|
+
},
|
|
787
|
+
state: {
|
|
788
|
+
none: "",
|
|
789
|
+
error: "bg-kui-destructive",
|
|
790
|
+
success: "bg-kui-success",
|
|
791
|
+
warning: "bg-kui-warning"
|
|
792
|
+
},
|
|
793
|
+
disabled: {
|
|
794
|
+
true: "cursor-not-allowed opacity-50",
|
|
795
|
+
false: ""
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
defaultVariants: {
|
|
799
|
+
checked: false,
|
|
800
|
+
state: "none",
|
|
801
|
+
disabled: false
|
|
802
|
+
}
|
|
803
|
+
});
|
|
804
|
+
var containerRecipe = kreativCore.defineRecipe({
|
|
805
|
+
base: "w-full",
|
|
806
|
+
variants: {
|
|
807
|
+
maxWidth: {
|
|
808
|
+
xs: "max-w-screen-xs",
|
|
809
|
+
sm: "max-w-screen-sm",
|
|
810
|
+
md: "max-w-screen-md",
|
|
811
|
+
lg: "max-w-screen-lg",
|
|
812
|
+
xl: "max-w-screen-xl",
|
|
813
|
+
full: "max-w-full"
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
defaultVariants: {
|
|
817
|
+
size: "lg",
|
|
818
|
+
maxWidth: "lg"
|
|
819
|
+
}
|
|
820
|
+
});
|
|
821
|
+
var linkRecipe = kreativCore.defineRecipe({
|
|
822
|
+
base: "kui-link",
|
|
823
|
+
variants: {
|
|
824
|
+
variant: {
|
|
825
|
+
solid: "text-kui-brand hover:text-kui-brand-hover",
|
|
826
|
+
outline: "text-kui-text-secondary hover:text-kui-brand",
|
|
827
|
+
ghost: "text-kui-text-secondary hover:text-kui-text",
|
|
828
|
+
soft: "text-kui-brand hover:text-kui-brand-hover"
|
|
829
|
+
},
|
|
830
|
+
underline: {
|
|
831
|
+
always: "underline",
|
|
832
|
+
hover: "no-underline hover:underline",
|
|
833
|
+
none: "no-underline"
|
|
834
|
+
},
|
|
835
|
+
disabled: {
|
|
836
|
+
true: "pointer-events-none opacity-50 cursor-not-allowed",
|
|
837
|
+
false: ""
|
|
838
|
+
}
|
|
839
|
+
},
|
|
840
|
+
defaultVariants: {
|
|
841
|
+
variant: "solid",
|
|
842
|
+
underline: "hover",
|
|
843
|
+
disabled: false
|
|
844
|
+
}
|
|
845
|
+
});
|
|
846
|
+
var repeaterButtonBase = [
|
|
847
|
+
"inline-flex items-center justify-center",
|
|
848
|
+
"size-7 shrink-0",
|
|
849
|
+
"rounded-[var(--kui-radii-md)]",
|
|
850
|
+
"text-kui-text-muted",
|
|
851
|
+
"transition-colors duration-fast ease-kui",
|
|
852
|
+
"hover:bg-kui-surface-sunken hover:text-kui-text",
|
|
853
|
+
"focus-visible:outline-none",
|
|
854
|
+
"focus-visible:ring-2 focus-visible:ring-kui-brand/30",
|
|
855
|
+
"disabled:pointer-events-none disabled:opacity-40"
|
|
856
|
+
].join(" ");
|
|
857
|
+
var repeaterRemoveRecipe = kreativCore.defineRecipe({
|
|
858
|
+
base: [
|
|
859
|
+
repeaterButtonBase,
|
|
860
|
+
"hover:bg-kui-destructive/10",
|
|
861
|
+
"hover:text-kui-destructive",
|
|
862
|
+
"focus-visible:ring-kui-destructive/30"
|
|
863
|
+
].join(" ")
|
|
864
|
+
});
|
|
865
|
+
var repeaterMoveUpRecipe = kreativCore.defineRecipe({
|
|
866
|
+
base: repeaterButtonBase
|
|
867
|
+
});
|
|
868
|
+
var repeaterMoveDownRecipe = kreativCore.defineRecipe({
|
|
869
|
+
base: repeaterButtonBase
|
|
870
|
+
});
|
|
871
|
+
var repeaterAddRecipe = kreativCore.defineRecipe({
|
|
872
|
+
base: [
|
|
873
|
+
"inline-flex items-center justify-center gap-1.5",
|
|
874
|
+
"min-h-8 px-3",
|
|
875
|
+
"rounded-[var(--kui-radii-md)]",
|
|
876
|
+
"text-sm font-medium",
|
|
877
|
+
"text-kui-brand",
|
|
878
|
+
"border border-dashed border-kui-border",
|
|
879
|
+
"bg-transparent",
|
|
880
|
+
"transition-colors duration-fast ease-kui",
|
|
881
|
+
"hover:bg-kui-brand/5",
|
|
882
|
+
"hover:border-kui-brand/40",
|
|
883
|
+
"focus-visible:outline-none",
|
|
884
|
+
"focus-visible:ring-2 focus-visible:ring-kui-brand/30",
|
|
885
|
+
"disabled:pointer-events-none disabled:opacity-40"
|
|
886
|
+
].join(" ")
|
|
887
|
+
});
|
|
888
|
+
var repeaterItemRecipe = kreativCore.defineRecipe({
|
|
889
|
+
base: [
|
|
890
|
+
"overflow-hidden",
|
|
891
|
+
"rounded-[var(--kui-radii-md)]",
|
|
892
|
+
"border border-kui-border",
|
|
893
|
+
"bg-kui-surface",
|
|
894
|
+
"transition-colors duration-fast animate-kui-scale-in"
|
|
895
|
+
].join(" ")
|
|
896
|
+
});
|
|
897
|
+
kreativCore.defineRecipe({
|
|
898
|
+
base: [
|
|
899
|
+
"flex items-center justify-between gap-3",
|
|
900
|
+
"min-h-10 px-3 py-1.5",
|
|
901
|
+
"border-b border-kui-border",
|
|
902
|
+
"bg-kui-surface-sunken/40"
|
|
903
|
+
].join(" ")
|
|
904
|
+
});
|
|
905
|
+
kreativCore.defineRecipe({
|
|
906
|
+
base: ["min-w-0", "text-sm font-medium", "text-kui-text", "truncate"].join(
|
|
907
|
+
" "
|
|
908
|
+
)
|
|
909
|
+
});
|
|
910
|
+
kreativCore.defineRecipe({
|
|
911
|
+
base: ["min-w-0", "p-3"].join(" ")
|
|
912
|
+
});
|
|
913
|
+
var repeaterItemsRecipe = kreativCore.defineRecipe({
|
|
914
|
+
base: ["flex flex-col gap-2"].join(" ")
|
|
915
|
+
});
|
|
916
|
+
kreativCore.defineRecipe({
|
|
917
|
+
base: ["flex items-center gap-0.5", "shrink-0"].join(" ")
|
|
918
|
+
});
|
|
919
|
+
var numberStepperRecipe = kreativCore.defineRecipe({
|
|
920
|
+
base: "kui-number-stepper",
|
|
921
|
+
variants: {
|
|
922
|
+
buttonLayout: {
|
|
923
|
+
horizontal: "kui-number-stepper--horizontal",
|
|
924
|
+
vertical: "kui-number-stepper--vertical"
|
|
925
|
+
},
|
|
926
|
+
disabled: {
|
|
927
|
+
true: "kui-number-stepper--disabled",
|
|
928
|
+
false: ""
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
defaultVariants: {
|
|
932
|
+
buttonLayout: "horizontal"
|
|
933
|
+
}
|
|
934
|
+
});
|
|
935
|
+
var numberStepperButtonsRecipe = kreativCore.defineRecipe({
|
|
936
|
+
base: "kui-number-stepper__buttons"
|
|
937
|
+
});
|
|
938
|
+
var numberStepperButtonRecipe = kreativCore.defineRecipe({
|
|
939
|
+
base: "kui-number-stepper__button"
|
|
940
|
+
});
|
|
941
|
+
var cardRecipe = kreativCore.defineRecipe({
|
|
942
|
+
base: "overflow-hidden rounded-(--kui-radii-lg)",
|
|
943
|
+
variants: {
|
|
944
|
+
variant: {
|
|
945
|
+
solid: "bg-kui-surface",
|
|
946
|
+
outline: "border border-kui-border bg-kui-surface",
|
|
947
|
+
ghost: "bg-transparent",
|
|
948
|
+
elevated: "bg-kui-surface shadow-md",
|
|
949
|
+
compact: "bg-kui-surface"
|
|
950
|
+
},
|
|
951
|
+
fullWidth: {
|
|
952
|
+
true: "w-full"
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
defaultVariants: {
|
|
956
|
+
variant: "outline"
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
var sectionPaddingVariants = {
|
|
960
|
+
size: {
|
|
961
|
+
sm: "p-3",
|
|
962
|
+
md: "p-4",
|
|
963
|
+
lg: "p-6"
|
|
964
|
+
}
|
|
965
|
+
};
|
|
966
|
+
var sectionPaddingCompoundVariants = [
|
|
967
|
+
{
|
|
968
|
+
conditions: { variant: "compact" },
|
|
969
|
+
className: "p-3"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
conditions: { noPadding: true },
|
|
973
|
+
className: "p-0"
|
|
974
|
+
}
|
|
975
|
+
];
|
|
976
|
+
var cardHeaderRecipe = kreativCore.defineRecipe({
|
|
977
|
+
base: "relative flex items-center justify-between gap-(--kui-spacing-md)",
|
|
978
|
+
variants: sectionPaddingVariants,
|
|
979
|
+
defaultVariants: {
|
|
980
|
+
size: "md"
|
|
981
|
+
},
|
|
982
|
+
compoundVariants: [...sectionPaddingCompoundVariants]
|
|
983
|
+
});
|
|
984
|
+
var cardBodyRecipe = kreativCore.defineRecipe({
|
|
985
|
+
base: "relative min-w-0",
|
|
986
|
+
variants: sectionPaddingVariants,
|
|
987
|
+
defaultVariants: {
|
|
988
|
+
size: "md"
|
|
989
|
+
},
|
|
990
|
+
compoundVariants: [...sectionPaddingCompoundVariants]
|
|
991
|
+
});
|
|
992
|
+
var cardFooterRecipe = kreativCore.defineRecipe({
|
|
993
|
+
base: "relative flex items-center gap-(--kui-spacing-md)",
|
|
994
|
+
variants: sectionPaddingVariants,
|
|
995
|
+
defaultVariants: {
|
|
996
|
+
size: "md"
|
|
997
|
+
},
|
|
998
|
+
compoundVariants: [...sectionPaddingCompoundVariants]
|
|
999
|
+
});
|
|
1000
|
+
var cardMediaRecipe = kreativCore.defineRecipe({
|
|
1001
|
+
base: "relative overflow-hidden"
|
|
1002
|
+
});
|
|
1003
|
+
kreativCore.defineRecipe({
|
|
1004
|
+
base: "h-full w-full",
|
|
1005
|
+
variants: {
|
|
1006
|
+
fit: {
|
|
1007
|
+
cover: "object-cover",
|
|
1008
|
+
contain: "object-contain",
|
|
1009
|
+
fill: "object-fill",
|
|
1010
|
+
none: "object-none"
|
|
1011
|
+
},
|
|
1012
|
+
blend: {
|
|
1013
|
+
normal: "mix-blend-normal",
|
|
1014
|
+
multiply: "mix-blend-multiply",
|
|
1015
|
+
screen: "mix-blend-screen",
|
|
1016
|
+
overlay: "mix-blend-overlay",
|
|
1017
|
+
darken: "mix-blend-darken",
|
|
1018
|
+
lighten: "mix-blend-lighten"
|
|
1019
|
+
}
|
|
1020
|
+
},
|
|
1021
|
+
defaultVariants: {
|
|
1022
|
+
fit: "cover",
|
|
1023
|
+
blend: "normal"
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
var cardOverlayRecipe = kreativCore.defineRecipe({
|
|
1027
|
+
base: "absolute inset-0"
|
|
1028
|
+
});
|
|
1029
|
+
var scrollAreaRecipe = kreativCore.defineRecipe({
|
|
1030
|
+
base: "kui-scroll-area",
|
|
1031
|
+
variants: {
|
|
1032
|
+
direction: {
|
|
1033
|
+
vertical: "overflow-y-auto overflow-x-hidden",
|
|
1034
|
+
horizontal: "overflow-x-auto overflow-y-hidden",
|
|
1035
|
+
both: "overflow-auto"
|
|
1036
|
+
},
|
|
1037
|
+
showScrollbar: {
|
|
1038
|
+
auto: "",
|
|
1039
|
+
always: "kui-scrollbar",
|
|
1040
|
+
hover: "kui-scrollbar kui-scrollbar-hover-only",
|
|
1041
|
+
never: "kui-scrollbar-hidden"
|
|
1042
|
+
},
|
|
1043
|
+
scrollbarVariant: {
|
|
1044
|
+
thin: "kui-scrollbar",
|
|
1045
|
+
default: "kui-scrollbar-default-width"
|
|
1046
|
+
}
|
|
1047
|
+
},
|
|
1048
|
+
defaultVariants: {
|
|
1049
|
+
direction: "vertical",
|
|
1050
|
+
showScrollbar: "auto",
|
|
1051
|
+
scrollbarVariant: "thin"
|
|
1052
|
+
}
|
|
1053
|
+
});
|
|
1054
|
+
var boxRecipe = kreativCore.defineRecipe({
|
|
1055
|
+
base: "box-border",
|
|
1056
|
+
variants: {
|
|
1057
|
+
border: {
|
|
1058
|
+
true: "border border-solid border-kui-border",
|
|
1059
|
+
false: ""
|
|
1060
|
+
}
|
|
1061
|
+
},
|
|
1062
|
+
defaultVariants: {
|
|
1063
|
+
border: "false"
|
|
1064
|
+
}
|
|
1065
|
+
});
|
|
1066
|
+
var flexRecipe = kreativCore.defineRecipe({
|
|
1067
|
+
base: "",
|
|
1068
|
+
variants: {
|
|
1069
|
+
inline: {
|
|
1070
|
+
true: "inline-flex",
|
|
1071
|
+
false: "flex"
|
|
1072
|
+
},
|
|
1073
|
+
fullWidth: {
|
|
1074
|
+
true: "w-full",
|
|
1075
|
+
false: ""
|
|
1076
|
+
},
|
|
1077
|
+
fullHeight: {
|
|
1078
|
+
true: "h-full",
|
|
1079
|
+
false: ""
|
|
1080
|
+
}
|
|
1081
|
+
},
|
|
1082
|
+
defaultVariants: {
|
|
1083
|
+
inline: "false",
|
|
1084
|
+
fullWidth: "false",
|
|
1085
|
+
fullHeight: "false"
|
|
1086
|
+
}
|
|
1087
|
+
});
|
|
1088
|
+
var gridRecipe = kreativCore.defineRecipe({
|
|
1089
|
+
base: "",
|
|
1090
|
+
variants: {
|
|
1091
|
+
inline: {
|
|
1092
|
+
true: "inline-grid",
|
|
1093
|
+
false: "grid"
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
defaultVariants: {
|
|
1097
|
+
inline: "false"
|
|
1098
|
+
}
|
|
1099
|
+
});
|
|
1100
|
+
|
|
1101
|
+
// src/theme/defaults/theme.ts
|
|
1102
|
+
var defaultRecipes = {
|
|
1103
|
+
Box: boxRecipe,
|
|
1104
|
+
Button: buttonRecipe,
|
|
1105
|
+
ButtonGroup: buttonGroupRecipe,
|
|
1106
|
+
Checkbox: checkboxRecipe,
|
|
1107
|
+
Flex: flexRecipe,
|
|
1108
|
+
FormControl: formControlRecipe,
|
|
1109
|
+
Input: inputRecipe,
|
|
1110
|
+
Textarea: textareaRecipe,
|
|
1111
|
+
MarkdownEditor: markdownEditorRecipe,
|
|
1112
|
+
Switch: switchRecipe,
|
|
1113
|
+
Container: containerRecipe,
|
|
1114
|
+
Link: linkRecipe,
|
|
1115
|
+
RepeaterRemove: repeaterRemoveRecipe,
|
|
1116
|
+
RepeaterMoveUp: repeaterMoveUpRecipe,
|
|
1117
|
+
RepeaterMoveDown: repeaterMoveDownRecipe,
|
|
1118
|
+
RepeaterAdd: repeaterAddRecipe,
|
|
1119
|
+
RepeaterItem: repeaterItemRecipe,
|
|
1120
|
+
RepeaterItems: repeaterItemsRecipe,
|
|
1121
|
+
NumberStepper: numberStepperRecipe,
|
|
1122
|
+
NumberStepperButton: numberStepperButtonRecipe,
|
|
1123
|
+
NumberStepperButtons: numberStepperButtonsRecipe,
|
|
1124
|
+
CardBody: cardBodyRecipe,
|
|
1125
|
+
CardFooter: cardFooterRecipe,
|
|
1126
|
+
CardHeader: cardHeaderRecipe,
|
|
1127
|
+
CardMedia: cardMediaRecipe,
|
|
1128
|
+
CardOverlay: cardOverlayRecipe,
|
|
1129
|
+
Card: cardRecipe,
|
|
1130
|
+
ScrollArea: scrollAreaRecipe,
|
|
1131
|
+
Grid: gridRecipe
|
|
1132
|
+
};
|
|
1133
|
+
var defaultTheme = kreativCore.defineTheme({
|
|
1134
|
+
tokens: defaultTokens,
|
|
1135
|
+
semanticTokens: defaultSemanticTokens,
|
|
1136
|
+
typography: defaultTypography,
|
|
1137
|
+
recipes: defaultRecipes,
|
|
1138
|
+
intensity: 50,
|
|
1139
|
+
sizes: defaultSizes
|
|
1140
|
+
});
|
|
1141
|
+
|
|
1142
|
+
// src/theme/recipes/extendRecipe.ts
|
|
1143
|
+
var defaultRecipes2 = defaultRecipes;
|
|
1144
|
+
function extendRecipe(name, override) {
|
|
1145
|
+
const base = defaultRecipes2[name];
|
|
1146
|
+
if (!override) {
|
|
1147
|
+
return base;
|
|
1148
|
+
}
|
|
1149
|
+
return {
|
|
1150
|
+
...base,
|
|
1151
|
+
...override,
|
|
1152
|
+
...override?.compoundVariants ? { compoundVariants: override.compoundVariants } : {},
|
|
1153
|
+
...base?.variants || override?.variants ? {
|
|
1154
|
+
variants: {
|
|
1155
|
+
...base?.variants,
|
|
1156
|
+
...override?.variants
|
|
1157
|
+
}
|
|
1158
|
+
} : {}
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1161
|
+
chunkMAUKS2DZ_cjs.__name(extendRecipe, "extendRecipe");
|
|
1162
|
+
function extendRecipes(override) {
|
|
1163
|
+
if (!override) {
|
|
1164
|
+
return defaultRecipes2;
|
|
1165
|
+
}
|
|
1166
|
+
const result = { ...defaultRecipes2 };
|
|
1167
|
+
for (const name of Object.keys(override)) {
|
|
1168
|
+
result[name] = extendRecipe(name, override[name]);
|
|
1169
|
+
}
|
|
1170
|
+
return result;
|
|
1171
|
+
}
|
|
1172
|
+
chunkMAUKS2DZ_cjs.__name(extendRecipes, "extendRecipes");
|
|
1173
|
+
|
|
1174
|
+
// src/theme/recipes/helpers.ts
|
|
1175
|
+
function getRecipeNames() {
|
|
1176
|
+
return Object.keys(defaultRecipes);
|
|
1177
|
+
}
|
|
1178
|
+
chunkMAUKS2DZ_cjs.__name(getRecipeNames, "getRecipeNames");
|
|
1179
|
+
|
|
1180
|
+
// src/theme/typography/extendTypography.ts
|
|
1181
|
+
function extendTypography(override) {
|
|
1182
|
+
if (!override) {
|
|
1183
|
+
return { ...defaultTypography };
|
|
1184
|
+
}
|
|
1185
|
+
const result = { ...defaultTypography };
|
|
1186
|
+
for (const key of Object.keys(override)) {
|
|
1187
|
+
const variant = key;
|
|
1188
|
+
result[variant] = {
|
|
1189
|
+
...defaultTypography[variant],
|
|
1190
|
+
...override[variant]
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
return result;
|
|
1194
|
+
}
|
|
1195
|
+
chunkMAUKS2DZ_cjs.__name(extendTypography, "extendTypography");
|
|
1196
|
+
function extendTokens(override) {
|
|
1197
|
+
return kreativCore.deepMerge(defaultTokens, override);
|
|
1198
|
+
}
|
|
1199
|
+
chunkMAUKS2DZ_cjs.__name(extendTokens, "extendTokens");
|
|
1200
|
+
function extendSemanticTokens(override) {
|
|
1201
|
+
return kreativCore.deepMerge(defaultSemanticTokens, override);
|
|
1202
|
+
}
|
|
1203
|
+
chunkMAUKS2DZ_cjs.__name(extendSemanticTokens, "extendSemanticTokens");
|
|
1204
|
+
|
|
1205
|
+
// src/theme/size/extendSize.ts
|
|
1206
|
+
function extendSizes(override) {
|
|
1207
|
+
const result = {
|
|
1208
|
+
...defaultSizes
|
|
1209
|
+
};
|
|
1210
|
+
if (!override) {
|
|
1211
|
+
return result;
|
|
1212
|
+
}
|
|
1213
|
+
for (const [key, value] of Object.entries(override)) {
|
|
1214
|
+
result[key] = {
|
|
1215
|
+
...defaultSizes[key] ?? {},
|
|
1216
|
+
...value
|
|
1217
|
+
};
|
|
1218
|
+
}
|
|
1219
|
+
return result;
|
|
1220
|
+
}
|
|
1221
|
+
chunkMAUKS2DZ_cjs.__name(extendSizes, "extendSizes");
|
|
1222
|
+
|
|
1223
|
+
// src/theme/extendTheme.ts
|
|
1224
|
+
function extendTheme(override) {
|
|
1225
|
+
if (!override) {
|
|
1226
|
+
return defaultTheme;
|
|
1227
|
+
}
|
|
1228
|
+
return {
|
|
1229
|
+
...defaultTheme,
|
|
1230
|
+
...override,
|
|
1231
|
+
tokens: extendTokens(override.tokens),
|
|
1232
|
+
semanticTokens: extendSemanticTokens(override.semanticTokens),
|
|
1233
|
+
sizes: extendSizes(override.sizes),
|
|
1234
|
+
typography: extendTypography(override.typography),
|
|
1235
|
+
recipes: extendRecipes(override.recipes)
|
|
1236
|
+
};
|
|
1237
|
+
}
|
|
1238
|
+
chunkMAUKS2DZ_cjs.__name(extendTheme, "extendTheme");
|
|
1239
|
+
|
|
1240
|
+
Object.defineProperty(exports, "defineRecipe", {
|
|
1241
|
+
enumerable: true,
|
|
1242
|
+
get: function () { return kreativCore.defineRecipe; }
|
|
1243
|
+
});
|
|
1244
|
+
Object.defineProperty(exports, "defineSemanticToken", {
|
|
1245
|
+
enumerable: true,
|
|
1246
|
+
get: function () { return kreativCore.defineSemanticToken; }
|
|
1247
|
+
});
|
|
1248
|
+
Object.defineProperty(exports, "defineSemanticTokens", {
|
|
1249
|
+
enumerable: true,
|
|
1250
|
+
get: function () { return kreativCore.defineSemanticTokens; }
|
|
1251
|
+
});
|
|
1252
|
+
Object.defineProperty(exports, "defineTheme", {
|
|
1253
|
+
enumerable: true,
|
|
1254
|
+
get: function () { return kreativCore.defineTheme; }
|
|
1255
|
+
});
|
|
1256
|
+
Object.defineProperty(exports, "defineToken", {
|
|
1257
|
+
enumerable: true,
|
|
1258
|
+
get: function () { return kreativCore.defineToken; }
|
|
1259
|
+
});
|
|
1260
|
+
Object.defineProperty(exports, "defineTokens", {
|
|
1261
|
+
enumerable: true,
|
|
1262
|
+
get: function () { return kreativCore.defineTokens; }
|
|
1263
|
+
});
|
|
1264
|
+
Object.defineProperty(exports, "defineTypography", {
|
|
1265
|
+
enumerable: true,
|
|
1266
|
+
get: function () { return kreativCore.defineTypography; }
|
|
1267
|
+
});
|
|
1268
|
+
Object.defineProperty(exports, "resolveTypography", {
|
|
1269
|
+
enumerable: true,
|
|
1270
|
+
get: function () { return kreativCore.resolveTypography; }
|
|
1271
|
+
});
|
|
1272
|
+
exports.extendRecipe = extendRecipe;
|
|
1273
|
+
exports.extendRecipes = extendRecipes;
|
|
1274
|
+
exports.extendSemanticTokens = extendSemanticTokens;
|
|
1275
|
+
exports.extendTheme = extendTheme;
|
|
1276
|
+
exports.extendTokens = extendTokens;
|
|
1277
|
+
exports.extendTypography = extendTypography;
|
|
1278
|
+
exports.getRecipeNames = getRecipeNames;
|
|
1279
|
+
//# sourceMappingURL=chunk-AQF6OJPA.cjs.map
|
|
1280
|
+
//# sourceMappingURL=chunk-AQF6OJPA.cjs.map
|