@splenddev/kreativ-ui 0.3.20 → 0.3.22
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/Select.types-CIRmqiVe.d.cts +264 -0
- package/dist/Select.types-CIRmqiVe.d.ts +264 -0
- package/dist/{chunk-P63AGDBG.js → chunk-CQUJK47V.js} +5265 -2561
- package/dist/chunk-CQUJK47V.js.map +1 -0
- package/dist/{chunk-C4PCJAAL.js → chunk-D4IXLW5S.js} +34 -3
- package/dist/chunk-D4IXLW5S.js.map +1 -0
- package/dist/{chunk-X7373GJO.js → chunk-HQEFPDPP.js} +421 -46
- package/dist/chunk-HQEFPDPP.js.map +1 -0
- package/dist/{chunk-JCJNV2P2.cjs → chunk-Q73HEANM.cjs} +5292 -2579
- package/dist/chunk-Q73HEANM.cjs.map +1 -0
- package/dist/{chunk-C2JEK4T5.cjs → chunk-TR5LTN5O.cjs} +423 -45
- package/dist/chunk-TR5LTN5O.cjs.map +1 -0
- package/dist/{chunk-5GGCRNXA.cjs → chunk-Z6CDH3CY.cjs} +34 -2
- package/dist/chunk-Z6CDH3CY.cjs.map +1 -0
- package/dist/components.cjs +139 -90
- package/dist/components.d.cts +626 -266
- package/dist/components.d.ts +626 -266
- package/dist/components.js +3 -2
- package/dist/core.cjs +17 -17
- package/dist/core.js +1 -1
- package/dist/index.cjs +12 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +73 -2
- package/dist/index.d.ts +73 -2
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/types.d.cts +4 -28
- package/dist/types.d.ts +4 -28
- package/dist/utils.cjs +39 -35
- package/dist/utils.d.cts +42 -2
- package/dist/utils.d.ts +42 -2
- package/dist/utils.js +1 -1
- package/package.json +4 -3
- package/dist/chunk-5GGCRNXA.cjs.map +0 -1
- package/dist/chunk-C2JEK4T5.cjs.map +0 -1
- package/dist/chunk-C4PCJAAL.js.map +0 -1
- package/dist/chunk-JCJNV2P2.cjs.map +0 -1
- package/dist/chunk-P63AGDBG.js.map +0 -1
- package/dist/chunk-X7373GJO.js.map +0 -1
|
@@ -180,7 +180,8 @@ var defaultTokens = {
|
|
|
180
180
|
xl: kreativCore.defineToken("1.25rem"),
|
|
181
181
|
"2xl": kreativCore.defineToken("1.5rem"),
|
|
182
182
|
"3xl": kreativCore.defineToken("1.875rem"),
|
|
183
|
-
"4xl": kreativCore.defineToken("2.25rem")
|
|
183
|
+
"4xl": kreativCore.defineToken("2.25rem"),
|
|
184
|
+
"5xl": kreativCore.defineToken("3rem")
|
|
184
185
|
},
|
|
185
186
|
fontWeights: {
|
|
186
187
|
normal: kreativCore.defineToken("400"),
|
|
@@ -271,20 +272,104 @@ var defaultSemanticTokens = {
|
|
|
271
272
|
info: kreativCore.defineSemanticToken("{colors.cyan.500}", "{colors.cyan.400}"),
|
|
272
273
|
infoFg: kreativCore.defineSemanticToken("{colors.white}"),
|
|
273
274
|
infoHover: kreativCore.defineSemanticToken("{colors.cyan.600}", "{colors.cyan.300}"),
|
|
274
|
-
shadowColor: kreativCore.defineSemanticToken("{colors.gray.200}", "{colors.gray.600}")
|
|
275
|
+
shadowColor: kreativCore.defineSemanticToken("{colors.gray.200}", "{colors.gray.600}"),
|
|
276
|
+
syntaxKeyword: kreativCore.defineSemanticToken(
|
|
277
|
+
"{colors.violet.700}",
|
|
278
|
+
"{colors.violet.300}"
|
|
279
|
+
),
|
|
280
|
+
syntaxComment: kreativCore.defineSemanticToken(
|
|
281
|
+
"{colors.gray.500}",
|
|
282
|
+
"{colors.gray.500}"
|
|
283
|
+
),
|
|
284
|
+
syntaxVariable: kreativCore.defineSemanticToken(
|
|
285
|
+
"{colors.gray.800}",
|
|
286
|
+
"{colors.gray.200}"
|
|
287
|
+
),
|
|
288
|
+
syntaxOperator: kreativCore.defineSemanticToken(
|
|
289
|
+
"{colors.violet.700}",
|
|
290
|
+
"{colors.violet.300}"
|
|
291
|
+
),
|
|
292
|
+
syntaxPunctuation: kreativCore.defineSemanticToken(
|
|
293
|
+
"{colors.gray.600}",
|
|
294
|
+
"{colors.gray.400}"
|
|
295
|
+
),
|
|
296
|
+
syntaxString: kreativCore.defineSemanticToken(
|
|
297
|
+
"{colors.green.700}",
|
|
298
|
+
"{colors.green.300}"
|
|
299
|
+
),
|
|
300
|
+
syntaxNumber: kreativCore.defineSemanticToken(
|
|
301
|
+
"{colors.orange.700}",
|
|
302
|
+
"{colors.orange.300}"
|
|
303
|
+
),
|
|
304
|
+
syntaxFunction: kreativCore.defineSemanticToken(
|
|
305
|
+
"{colors.blue.700}",
|
|
306
|
+
"{colors.blue.300}"
|
|
307
|
+
),
|
|
308
|
+
syntaxType: kreativCore.defineSemanticToken("{colors.cyan.700}", "{colors.cyan.300}"),
|
|
309
|
+
syntaxProperty: kreativCore.defineSemanticToken(
|
|
310
|
+
"{colors.blue.700}",
|
|
311
|
+
"{colors.blue.300}"
|
|
312
|
+
),
|
|
313
|
+
syntaxConstant: kreativCore.defineSemanticToken(
|
|
314
|
+
"{colors.orange.700}",
|
|
315
|
+
"{colors.orange.300}"
|
|
316
|
+
),
|
|
317
|
+
syntaxTag: kreativCore.defineSemanticToken("{colors.red.700}", "{colors.red.300}"),
|
|
318
|
+
syntaxAttribute: kreativCore.defineSemanticToken(
|
|
319
|
+
"{colors.cyan.700}",
|
|
320
|
+
"{colors.cyan.300}"
|
|
321
|
+
)
|
|
275
322
|
}
|
|
276
323
|
};
|
|
277
324
|
var defaultTypography = kreativCore.defineTypography({
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
325
|
+
// ── Display + headings (Heading reads h1–h6 by level) ─────────────
|
|
326
|
+
display: {
|
|
327
|
+
fontFamily: "{fonts.heading}",
|
|
328
|
+
fontSize: "{fontSizes.5xl}",
|
|
329
|
+
fontWeight: "{fontWeights.bold}",
|
|
330
|
+
lineHeight: "{lineHeights.tight}",
|
|
331
|
+
letterSpacing: "{letterSpacings.tighter}"
|
|
332
|
+
},
|
|
333
|
+
h1: {
|
|
334
|
+
fontFamily: "{fonts.heading}",
|
|
335
|
+
fontSize: "{fontSizes.4xl}",
|
|
336
|
+
fontWeight: "{fontWeights.bold}",
|
|
337
|
+
lineHeight: "{lineHeights.tight}",
|
|
338
|
+
letterSpacing: "{letterSpacings.tighter}"
|
|
339
|
+
},
|
|
340
|
+
h2: {
|
|
341
|
+
fontFamily: "{fonts.heading}",
|
|
342
|
+
fontSize: "{fontSizes.3xl}",
|
|
343
|
+
fontWeight: "{fontWeights.bold}",
|
|
344
|
+
lineHeight: "{lineHeights.tight}",
|
|
345
|
+
letterSpacing: "{letterSpacings.tight}"
|
|
346
|
+
},
|
|
347
|
+
h3: {
|
|
348
|
+
fontFamily: "{fonts.heading}",
|
|
349
|
+
fontSize: "{fontSizes.2xl}",
|
|
350
|
+
fontWeight: "{fontWeights.semibold}",
|
|
351
|
+
lineHeight: "{lineHeights.tight}",
|
|
352
|
+
letterSpacing: "{letterSpacings.tighter}"
|
|
353
|
+
},
|
|
354
|
+
h4: {
|
|
355
|
+
fontFamily: "{fonts.heading}",
|
|
356
|
+
fontSize: "{fontSizes.xl}",
|
|
357
|
+
fontWeight: "{fontWeights.semibold}",
|
|
358
|
+
lineHeight: "{lineHeights.tight}"
|
|
359
|
+
},
|
|
360
|
+
h5: {
|
|
361
|
+
fontFamily: "{fonts.heading}",
|
|
362
|
+
fontSize: "{fontSizes.lg}",
|
|
363
|
+
fontWeight: "{fontWeights.semibold}",
|
|
281
364
|
lineHeight: "{lineHeights.normal}"
|
|
282
365
|
},
|
|
283
|
-
|
|
284
|
-
fontFamily: "{fonts.
|
|
285
|
-
|
|
366
|
+
h6: {
|
|
367
|
+
fontFamily: "{fonts.heading}",
|
|
368
|
+
fontSize: "{fontSizes.md}",
|
|
369
|
+
fontWeight: "{fontWeights.semibold}",
|
|
286
370
|
lineHeight: "{lineHeights.normal}"
|
|
287
371
|
},
|
|
372
|
+
// kept for existing consumers
|
|
288
373
|
heading: {
|
|
289
374
|
fontFamily: "{fonts.heading}",
|
|
290
375
|
fontSize: "{fontSizes.2xl}",
|
|
@@ -297,11 +382,49 @@ var defaultTypography = kreativCore.defineTypography({
|
|
|
297
382
|
fontWeight: "{fontWeights.semibold}",
|
|
298
383
|
lineHeight: "{lineHeights.tight}"
|
|
299
384
|
},
|
|
385
|
+
// ── Body ──────────────────────────────────────────────────────────
|
|
386
|
+
lead: {
|
|
387
|
+
fontFamily: "{fonts.body}",
|
|
388
|
+
fontSize: "{fontSizes.xl}",
|
|
389
|
+
fontWeight: "{fontWeights.normal}",
|
|
390
|
+
lineHeight: "{lineHeights.relaxed}"
|
|
391
|
+
},
|
|
392
|
+
bodyLarge: {
|
|
393
|
+
fontFamily: "{fonts.body}",
|
|
394
|
+
fontSize: "{fontSizes.lg}",
|
|
395
|
+
fontWeight: "{fontWeights.normal}",
|
|
396
|
+
lineHeight: "{lineHeights.normal}"
|
|
397
|
+
},
|
|
398
|
+
body: {
|
|
399
|
+
fontFamily: "{fonts.body}",
|
|
400
|
+
fontWeight: "{fontWeights.normal}",
|
|
401
|
+
lineHeight: "{lineHeights.normal}"
|
|
402
|
+
},
|
|
403
|
+
bodySmall: {
|
|
404
|
+
fontFamily: "{fonts.body}",
|
|
405
|
+
fontSize: "{fontSizes.sm}",
|
|
406
|
+
fontWeight: "{fontWeights.normal}",
|
|
407
|
+
lineHeight: "{lineHeights.normal}"
|
|
408
|
+
},
|
|
409
|
+
// ── UI text ───────────────────────────────────────────────────────
|
|
300
410
|
label: {
|
|
301
411
|
fontFamily: "{fonts.body}",
|
|
302
412
|
fontWeight: "{fontWeights.medium}",
|
|
303
413
|
lineHeight: "{lineHeights.normal}"
|
|
304
414
|
},
|
|
415
|
+
labelSmall: {
|
|
416
|
+
fontFamily: "{fonts.body}",
|
|
417
|
+
fontSize: "{fontSizes.sm}",
|
|
418
|
+
fontWeight: "{fontWeights.medium}",
|
|
419
|
+
lineHeight: "{lineHeights.normal}"
|
|
420
|
+
},
|
|
421
|
+
overline: {
|
|
422
|
+
fontFamily: "{fonts.body}",
|
|
423
|
+
fontSize: "{fontSizes.xs}",
|
|
424
|
+
fontWeight: "{fontWeights.semibold}",
|
|
425
|
+
lineHeight: "{lineHeights.normal}",
|
|
426
|
+
letterSpacing: "{letterSpacings.wide}"
|
|
427
|
+
},
|
|
305
428
|
caption: {
|
|
306
429
|
fontFamily: "{fonts.body}",
|
|
307
430
|
fontSize: "{fontSizes.xs}",
|
|
@@ -314,6 +437,13 @@ var defaultTypography = kreativCore.defineTypography({
|
|
|
314
437
|
fontWeight: "{fontWeights.normal}",
|
|
315
438
|
lineHeight: "{lineHeights.normal}"
|
|
316
439
|
},
|
|
440
|
+
monoLarge: {
|
|
441
|
+
fontFamily: "{fonts.mono}",
|
|
442
|
+
fontSize: "{fontSizes.sm}",
|
|
443
|
+
fontWeight: "{fontWeights.normal}",
|
|
444
|
+
lineHeight: "{lineHeights.normal}"
|
|
445
|
+
},
|
|
446
|
+
// ── Size scale (consumed by useSizeStyle / sizeProp) ──────────────
|
|
317
447
|
sizeXs: {
|
|
318
448
|
fontFamily: "{fonts.body}",
|
|
319
449
|
fontSize: "{fontSizes.xs}",
|
|
@@ -334,7 +464,7 @@ var defaultTypography = kreativCore.defineTypography({
|
|
|
334
464
|
},
|
|
335
465
|
sizeLg: {
|
|
336
466
|
fontFamily: "{fonts.body}",
|
|
337
|
-
fontSize: "{fontSizes.
|
|
467
|
+
fontSize: "{fontSizes.lg}",
|
|
338
468
|
fontWeight: "{fontWeights.normal}",
|
|
339
469
|
lineHeight: "{lineHeights.normal}"
|
|
340
470
|
},
|
|
@@ -346,6 +476,15 @@ var defaultTypography = kreativCore.defineTypography({
|
|
|
346
476
|
}
|
|
347
477
|
});
|
|
348
478
|
var defaultSizes = kreativCore.defineSizes({
|
|
479
|
+
"2xs": {
|
|
480
|
+
height: "1.5rem",
|
|
481
|
+
width: "1.5rem",
|
|
482
|
+
paddingX: "0.25rem",
|
|
483
|
+
fontSize: "{typography.sizeXs}",
|
|
484
|
+
gap: "0.15rem",
|
|
485
|
+
iconSize: "0.55rem",
|
|
486
|
+
radius: "0.5rem"
|
|
487
|
+
},
|
|
349
488
|
xs: {
|
|
350
489
|
height: "1.75rem",
|
|
351
490
|
width: "1.75rem",
|
|
@@ -392,6 +531,22 @@ var defaultSizes = kreativCore.defineSizes({
|
|
|
392
531
|
radius: "1.3rem"
|
|
393
532
|
}
|
|
394
533
|
});
|
|
534
|
+
|
|
535
|
+
// src/theme/defaults/recipes/colorVariant.ts
|
|
536
|
+
function createColorVariants(map) {
|
|
537
|
+
const colorKeys = Object.keys(map);
|
|
538
|
+
const colors3 = Object.fromEntries(colorKeys.map((c) => [c, ""]));
|
|
539
|
+
const compoundVariants3 = colorKeys.flatMap(
|
|
540
|
+
(color) => Object.keys(map[color]).map((variant) => ({
|
|
541
|
+
conditions: { color, variant },
|
|
542
|
+
className: map[color][variant]
|
|
543
|
+
}))
|
|
544
|
+
);
|
|
545
|
+
return { colors: colors3, compoundVariants: compoundVariants3 };
|
|
546
|
+
}
|
|
547
|
+
chunkMAUKS2DZ_cjs.__name(createColorVariants, "createColorVariants");
|
|
548
|
+
|
|
549
|
+
// src/theme/defaults/recipes/button.ts
|
|
395
550
|
var buttonBase = "inline-flex items-center justify-center h-[var(--kui-button-height)] px-[var(--kui-button-padding-x)] py-[var(--kui-button-padding-y)] gap-[var(--kui-button-gap)] text-[length:var(--kui-button-font-size)] 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:cursor-not-allowed disabled:pointer-events-none disabled:active:scale-100";
|
|
396
551
|
var buttonVariants = {
|
|
397
552
|
solid: "ease-[cubic-bezier(0.34,1.56,0.64,1)] active:scale-[0.97]",
|
|
@@ -465,31 +620,12 @@ var buttonColors = {
|
|
|
465
620
|
link: "[color:var(--kui-inherit-fg)] bg-transparent"
|
|
466
621
|
}
|
|
467
622
|
};
|
|
468
|
-
var
|
|
469
|
-
const compounds = [];
|
|
470
|
-
for (const [color, variantMap] of Object.entries(buttonColors)) {
|
|
471
|
-
for (const [variant, className] of Object.entries(variantMap)) {
|
|
472
|
-
compounds.push({
|
|
473
|
-
conditions: { color, variant },
|
|
474
|
-
className
|
|
475
|
-
});
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
return compounds;
|
|
479
|
-
}, "buildCompoundVariants");
|
|
623
|
+
var { colors, compoundVariants } = createColorVariants(buttonColors);
|
|
480
624
|
var buttonRecipe = kreativCore.defineRecipe({
|
|
481
625
|
base: buttonBase,
|
|
482
|
-
variants: {
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
Object.keys(buttonColors).map((color) => [color, ""])
|
|
486
|
-
)
|
|
487
|
-
},
|
|
488
|
-
defaultVariants: {
|
|
489
|
-
variant: "solid",
|
|
490
|
-
color: "brand"
|
|
491
|
-
},
|
|
492
|
-
compoundVariants: buildCompoundVariants()
|
|
626
|
+
variants: { variant: buttonVariants, color: colors },
|
|
627
|
+
defaultVariants: { variant: "solid", color: "brand" },
|
|
628
|
+
compoundVariants
|
|
493
629
|
});
|
|
494
630
|
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 ";
|
|
495
631
|
var formControlVariants = {
|
|
@@ -644,7 +780,7 @@ var formControlRecipe = kreativCore.defineRecipe({
|
|
|
644
780
|
}
|
|
645
781
|
});
|
|
646
782
|
var inputRecipe = kreativCore.defineRecipe({
|
|
647
|
-
base: "kui-input w-full h-full bg-transparent text-[length:var(--kui-input-font-size)]",
|
|
783
|
+
base: "kui-input w-full h-full bg-transparent font-inherit text-[length:var(--kui-input-font-size)]",
|
|
648
784
|
variants: {
|
|
649
785
|
variant: {
|
|
650
786
|
outline: "",
|
|
@@ -887,30 +1023,85 @@ var containerRecipe = kreativCore.defineRecipe({
|
|
|
887
1023
|
maxWidth: "lg"
|
|
888
1024
|
}
|
|
889
1025
|
});
|
|
1026
|
+
var linkBase = [
|
|
1027
|
+
"kui-link rounded-sm underline-offset-2",
|
|
1028
|
+
"transition-colors motion-reduce:transition-none",
|
|
1029
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-kui-brand",
|
|
1030
|
+
"focus-visible:ring-offset-2 focus-visible:ring-offset-surface"
|
|
1031
|
+
].join(" ");
|
|
1032
|
+
var linkVariants = {
|
|
1033
|
+
solid: "",
|
|
1034
|
+
soft: "px-1 -mx-1",
|
|
1035
|
+
outline: "",
|
|
1036
|
+
ghost: ""
|
|
1037
|
+
};
|
|
1038
|
+
var linkColors = {
|
|
1039
|
+
brand: {
|
|
1040
|
+
solid: "text-kui-brand hover:text-kui-brand-hover",
|
|
1041
|
+
soft: "text-kui-brand hover:text-kui-brand-hover hover:bg-kui-brand/10",
|
|
1042
|
+
outline: "text-kui-text-muted decoration-kui-brand/40 hover:text-kui-brand hover:decoration-kui-brand",
|
|
1043
|
+
ghost: "text-inherit hover:text-kui-brand"
|
|
1044
|
+
},
|
|
1045
|
+
destructive: {
|
|
1046
|
+
solid: "text-kui-destructive hover:text-kui-destructive-hover",
|
|
1047
|
+
soft: "text-kui-destructive hover:text-kui-destructive-hover hover:bg-kui-destructive/10",
|
|
1048
|
+
outline: "text-kui-text-muted decoration-kui-destructive/40 hover:text-kui-destructive hover:decoration-kui-destructive",
|
|
1049
|
+
ghost: "text-inherit hover:text-kui-destructive"
|
|
1050
|
+
},
|
|
1051
|
+
success: {
|
|
1052
|
+
solid: "text-kui-success hover:text-kui-success-hover",
|
|
1053
|
+
soft: "text-kui-success hover:text-kui-success-hover hover:bg-kui-success/10",
|
|
1054
|
+
outline: "text-kui-text-muted decoration-kui-success/40 hover:text-kui-success hover:decoration-kui-success",
|
|
1055
|
+
ghost: "text-inherit hover:text-kui-success"
|
|
1056
|
+
},
|
|
1057
|
+
warning: {
|
|
1058
|
+
solid: "text-kui-warning hover:text-kui-warning-hover",
|
|
1059
|
+
soft: "text-kui-warning hover:text-kui-warning-hover hover:bg-kui-warning/10",
|
|
1060
|
+
outline: "text-kui-text-muted decoration-kui-warning/40 hover:text-kui-warning hover:decoration-kui-warning",
|
|
1061
|
+
ghost: "text-inherit hover:text-kui-warning"
|
|
1062
|
+
},
|
|
1063
|
+
info: {
|
|
1064
|
+
solid: "text-kui-info hover:text-kui-info-hover",
|
|
1065
|
+
soft: "text-kui-info hover:text-kui-info-hover hover:bg-kui-info/10",
|
|
1066
|
+
outline: "text-kui-text-muted decoration-kui-info/40 hover:text-kui-info hover:decoration-kui-info",
|
|
1067
|
+
ghost: "text-inherit hover:text-kui-info"
|
|
1068
|
+
},
|
|
1069
|
+
neutral: {
|
|
1070
|
+
solid: "text-kui-text hover:text-kui-text-muted",
|
|
1071
|
+
soft: "text-kui-text hover:bg-kui-surface-raised",
|
|
1072
|
+
outline: "text-kui-text-muted decoration-kui-border hover:text-kui-text hover:decoration-kui-text",
|
|
1073
|
+
ghost: "text-inherit hover:text-kui-text"
|
|
1074
|
+
},
|
|
1075
|
+
inherit: {
|
|
1076
|
+
solid: "[color:var(--kui-inherit-fg)] hover:opacity-80",
|
|
1077
|
+
soft: "[color:var(--kui-inherit-fg)] hover:[background-color:var(--kui-inherit-soft-bg)]",
|
|
1078
|
+
outline: "[color:var(--kui-inherit-fg)] opacity-80 hover:opacity-100",
|
|
1079
|
+
ghost: "[color:var(--kui-inherit-fg)] hover:opacity-80"
|
|
1080
|
+
}
|
|
1081
|
+
};
|
|
1082
|
+
var { colors: colors2, compoundVariants: compoundVariants2 } = createColorVariants(linkColors);
|
|
890
1083
|
var linkRecipe = kreativCore.defineRecipe({
|
|
891
|
-
base:
|
|
1084
|
+
base: linkBase,
|
|
892
1085
|
variants: {
|
|
893
|
-
variant:
|
|
894
|
-
|
|
895
|
-
outline: "text-kui-text-secondary hover:text-kui-brand",
|
|
896
|
-
ghost: "text-kui-text-secondary hover:text-kui-text",
|
|
897
|
-
soft: "text-kui-brand hover:text-kui-brand-hover"
|
|
898
|
-
},
|
|
1086
|
+
variant: linkVariants,
|
|
1087
|
+
color: colors2,
|
|
899
1088
|
underline: {
|
|
900
1089
|
always: "underline",
|
|
901
1090
|
hover: "no-underline hover:underline",
|
|
902
1091
|
none: "no-underline"
|
|
903
1092
|
},
|
|
904
1093
|
disabled: {
|
|
905
|
-
true: "pointer-events-none opacity-50
|
|
1094
|
+
true: "pointer-events-none opacity-50",
|
|
906
1095
|
false: ""
|
|
907
1096
|
}
|
|
908
1097
|
},
|
|
909
1098
|
defaultVariants: {
|
|
910
1099
|
variant: "solid",
|
|
1100
|
+
color: "brand",
|
|
911
1101
|
underline: "hover",
|
|
912
1102
|
disabled: false
|
|
913
|
-
}
|
|
1103
|
+
},
|
|
1104
|
+
compoundVariants: compoundVariants2
|
|
914
1105
|
});
|
|
915
1106
|
var repeaterButtonBase = [
|
|
916
1107
|
"inline-flex items-center justify-center",
|
|
@@ -1552,6 +1743,185 @@ var carouselRecipes = {
|
|
|
1552
1743
|
CarouselIndicators: carouselIndicatorsRecipe,
|
|
1553
1744
|
CarouselIndicator: carouselIndicatorRecipe
|
|
1554
1745
|
};
|
|
1746
|
+
var textRecipe = kreativCore.defineRecipe({
|
|
1747
|
+
base: "kui-text",
|
|
1748
|
+
variants: {
|
|
1749
|
+
align: {
|
|
1750
|
+
left: "text-left",
|
|
1751
|
+
center: "text-center",
|
|
1752
|
+
right: "text-right",
|
|
1753
|
+
justify: "text-justify"
|
|
1754
|
+
},
|
|
1755
|
+
weight: {
|
|
1756
|
+
thin: "font-thin",
|
|
1757
|
+
light: "font-light",
|
|
1758
|
+
normal: "font-normal",
|
|
1759
|
+
medium: "font-medium",
|
|
1760
|
+
semibold: "font-semibold",
|
|
1761
|
+
bold: "font-bold",
|
|
1762
|
+
extrabold: "font-extrabold",
|
|
1763
|
+
black: "font-black"
|
|
1764
|
+
},
|
|
1765
|
+
italic: { true: "italic" },
|
|
1766
|
+
truncate: { true: "truncate" },
|
|
1767
|
+
clamp: {
|
|
1768
|
+
true: "overflow-hidden text-ellipsis [display:-webkit-box] [-webkit-box-orient:vertical]"
|
|
1769
|
+
}
|
|
1770
|
+
},
|
|
1771
|
+
defaultVariants: {}
|
|
1772
|
+
});
|
|
1773
|
+
var headingRecipe = kreativCore.defineRecipe({
|
|
1774
|
+
base: "kui-heading",
|
|
1775
|
+
variants: {
|
|
1776
|
+
balance: { true: "text-balance" }
|
|
1777
|
+
},
|
|
1778
|
+
defaultVariants: {}
|
|
1779
|
+
});
|
|
1780
|
+
var tableRootRecipe = kreativCore.defineRecipe({
|
|
1781
|
+
base: [
|
|
1782
|
+
"kui-table w-full border-collapse text-sm",
|
|
1783
|
+
"[&_thead_tr]:bg-kui-surface [&_tbody_tr]:bg-kui-surface",
|
|
1784
|
+
"[&_tbody_tr:hover]:bg-[color-mix(in_oklab,rgb(var(--kui-table-tint,var(--kui-colors-text)))_12%,rgb(var(--kui-colors-surface)))]"
|
|
1785
|
+
].join(" "),
|
|
1786
|
+
variants: {
|
|
1787
|
+
variant: {
|
|
1788
|
+
plain: "",
|
|
1789
|
+
stripe: "[&_tbody_tr:nth-child(even):not(:hover)]:bg-[color-mix(in_oklab,rgb(var(--kui-table-tint,var(--kui-colors-text)))_6%,rgb(var(--kui-colors-surface)))]",
|
|
1790
|
+
border: "[&_tbody_tr]:border-t [&_tbody_tr]:border-kui-border"
|
|
1791
|
+
},
|
|
1792
|
+
showColumnBorder: {
|
|
1793
|
+
true: "[&_td]:border-r [&_th]:border-r [&_td:last-child]:border-r-0 [&_th:last-child]:border-r-0 [&_td]:border-kui-border [&_th]:border-kui-border",
|
|
1794
|
+
false: ""
|
|
1795
|
+
}
|
|
1796
|
+
},
|
|
1797
|
+
defaultVariants: {
|
|
1798
|
+
variant: "plain",
|
|
1799
|
+
showColumnBorder: "false"
|
|
1800
|
+
}
|
|
1801
|
+
});
|
|
1802
|
+
var tableColorRecipe = kreativCore.defineRecipe({
|
|
1803
|
+
base: "",
|
|
1804
|
+
variants: {
|
|
1805
|
+
color: {
|
|
1806
|
+
neutral: "",
|
|
1807
|
+
brand: "[--kui-table-tint:var(--kui-colors-brand)]",
|
|
1808
|
+
success: "[--kui-table-tint:var(--kui-colors-success)]",
|
|
1809
|
+
warning: "[--kui-table-tint:var(--kui-colors-warning)]",
|
|
1810
|
+
error: "[--kui-table-tint:var(--kui-colors-destructive)]",
|
|
1811
|
+
info: "[--kui-table-tint:var(--kui-colors-info)]"
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
});
|
|
1815
|
+
var tableHeaderRecipe = kreativCore.defineRecipe({
|
|
1816
|
+
base: "kui-table-header",
|
|
1817
|
+
variants: {
|
|
1818
|
+
sticky: {
|
|
1819
|
+
true: "sticky top-0 z-[4] bg-kui-surface",
|
|
1820
|
+
false: ""
|
|
1821
|
+
}
|
|
1822
|
+
},
|
|
1823
|
+
defaultVariants: {
|
|
1824
|
+
sticky: "false"
|
|
1825
|
+
}
|
|
1826
|
+
});
|
|
1827
|
+
var tableStickyCellRecipe = kreativCore.defineRecipe({
|
|
1828
|
+
base: "bg-inherit",
|
|
1829
|
+
variants: {
|
|
1830
|
+
sticky: {
|
|
1831
|
+
start: "sticky left-0 z-[1]",
|
|
1832
|
+
end: "sticky right-0 z-[1]"
|
|
1833
|
+
},
|
|
1834
|
+
corner: {
|
|
1835
|
+
true: "z-[3]",
|
|
1836
|
+
false: ""
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
});
|
|
1840
|
+
var tableStackCardRecipe = kreativCore.defineRecipe({
|
|
1841
|
+
base: "kui-table-stack-row block rounded-kui-md border border-kui-border p-kui-3"
|
|
1842
|
+
});
|
|
1843
|
+
var tableStackGridRecipe = kreativCore.defineRecipe({
|
|
1844
|
+
base: "grid gap-kui-2"
|
|
1845
|
+
});
|
|
1846
|
+
var tableRecipes = {
|
|
1847
|
+
TableRoot: tableRootRecipe,
|
|
1848
|
+
TableColor: tableColorRecipe,
|
|
1849
|
+
TableHeader: tableHeaderRecipe,
|
|
1850
|
+
TableStickyCell: tableStickyCellRecipe,
|
|
1851
|
+
TableStackCard: tableStackCardRecipe,
|
|
1852
|
+
TableStackGrid: tableStackGridRecipe
|
|
1853
|
+
};
|
|
1854
|
+
var codeBlockRecipe = kreativCore.defineRecipe({
|
|
1855
|
+
base: "relative overflow-hidden rounded-lg bg-kui-surface-sunken text-kui-text",
|
|
1856
|
+
variants: {
|
|
1857
|
+
variant: {
|
|
1858
|
+
outline: "border border-kui-border",
|
|
1859
|
+
filled: "border border-transparent"
|
|
1860
|
+
},
|
|
1861
|
+
size: {
|
|
1862
|
+
sm: "[--kui-code-pad:0.625rem]",
|
|
1863
|
+
md: "[--kui-code-pad:0.875rem]",
|
|
1864
|
+
lg: "[--kui-code-pad:1.125rem]"
|
|
1865
|
+
}
|
|
1866
|
+
},
|
|
1867
|
+
defaultVariants: { variant: "outline", size: "md" }
|
|
1868
|
+
});
|
|
1869
|
+
var codeBlockHeaderRecipe = kreativCore.defineRecipe({
|
|
1870
|
+
base: "flex items-center justify-between gap-2 border-b border-kui-border px-[var(--kui-code-pad)] py-1.5 text-xs text-kui-text-muted"
|
|
1871
|
+
});
|
|
1872
|
+
var codeBlockContentRecipe = kreativCore.defineRecipe({
|
|
1873
|
+
base: "relative overflow-hidden"
|
|
1874
|
+
});
|
|
1875
|
+
var codeBlockRecipes = {
|
|
1876
|
+
CodeBlock: codeBlockRecipe,
|
|
1877
|
+
CodeBlockHeader: codeBlockHeaderRecipe,
|
|
1878
|
+
CodeBlockContent: codeBlockContentRecipe
|
|
1879
|
+
};
|
|
1880
|
+
var resizableRootRecipe = kreativCore.defineRecipe({
|
|
1881
|
+
base: "flex h-full w-full overflow-hidden data-[dragging=true]:select-none",
|
|
1882
|
+
variants: {
|
|
1883
|
+
direction: { horizontal: "flex-row", vertical: "flex-col" }
|
|
1884
|
+
},
|
|
1885
|
+
defaultVariants: { direction: "horizontal" }
|
|
1886
|
+
});
|
|
1887
|
+
var resizablePanelRecipe = kreativCore.defineRecipe({
|
|
1888
|
+
base: "relative min-h-0 min-w-0 overflow-hidden"
|
|
1889
|
+
});
|
|
1890
|
+
var resizableHandleRecipe = kreativCore.defineRecipe({
|
|
1891
|
+
base: "relative flex shrink-0 items-center justify-center bg-kui-border outline-none transition-colors hover:bg-kui-brand focus-visible:bg-kui-brand focus-visible:ring-2 focus-visible:ring-kui-brand data-[dragging=true]:bg-kui-brand data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 after:absolute after:content-['']",
|
|
1892
|
+
variants: {
|
|
1893
|
+
direction: {
|
|
1894
|
+
horizontal: "w-px cursor-col-resize after:inset-y-0 after:-inset-x-1",
|
|
1895
|
+
vertical: "h-px cursor-row-resize after:inset-x-0 after:-inset-y-1"
|
|
1896
|
+
}
|
|
1897
|
+
},
|
|
1898
|
+
defaultVariants: { direction: "horizontal" }
|
|
1899
|
+
});
|
|
1900
|
+
var resizableBoxRecipe = kreativCore.defineRecipe({
|
|
1901
|
+
base: "relative data-[resizing=true]:select-none"
|
|
1902
|
+
});
|
|
1903
|
+
var resizableBoxHandleRecipe = kreativCore.defineRecipe({
|
|
1904
|
+
base: "absolute z-10 bg-transparent outline-none transition-colors hover:bg-kui-brand/40 focus-visible:bg-kui-brand/40 focus-visible:ring-2 focus-visible:ring-kui-brand data-[resizing=true]:bg-kui-brand/40 data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",
|
|
1905
|
+
variants: {
|
|
1906
|
+
edge: {
|
|
1907
|
+
top: "inset-x-0 top-0 h-1.5 -translate-y-1/2 cursor-row-resize",
|
|
1908
|
+
bottom: "inset-x-0 bottom-0 h-1.5 translate-y-1/2 cursor-row-resize",
|
|
1909
|
+
left: "inset-y-0 left-0 w-1.5 -translate-x-1/2 cursor-col-resize",
|
|
1910
|
+
right: "inset-y-0 right-0 w-1.5 translate-x-1/2 cursor-col-resize",
|
|
1911
|
+
"top-left": "left-0 top-0 size-3 -translate-x-1/2 -translate-y-1/2 cursor-nwse-resize",
|
|
1912
|
+
"top-right": "right-0 top-0 size-3 translate-x-1/2 -translate-y-1/2 cursor-nesw-resize",
|
|
1913
|
+
"bottom-left": "bottom-0 left-0 size-3 -translate-x-1/2 translate-y-1/2 cursor-nesw-resize",
|
|
1914
|
+
"bottom-right": "bottom-0 right-0 size-3 translate-x-1/2 translate-y-1/2 cursor-nwse-resize"
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
});
|
|
1918
|
+
var resizableRecipes = {
|
|
1919
|
+
ResizableRoot: resizableRootRecipe,
|
|
1920
|
+
ResizablePanel: resizablePanelRecipe,
|
|
1921
|
+
ResizableHandle: resizableHandleRecipe,
|
|
1922
|
+
ResizableBox: resizableBoxRecipe,
|
|
1923
|
+
ResizableBoxHandle: resizableBoxHandleRecipe
|
|
1924
|
+
};
|
|
1555
1925
|
|
|
1556
1926
|
// src/theme/defaults/theme.ts
|
|
1557
1927
|
var defaultRecipes = {
|
|
@@ -1567,6 +1937,8 @@ var defaultRecipes = {
|
|
|
1567
1937
|
Switch: switchRecipe,
|
|
1568
1938
|
Container: containerRecipe,
|
|
1569
1939
|
Link: linkRecipe,
|
|
1940
|
+
Text: textRecipe,
|
|
1941
|
+
Heading: headingRecipe,
|
|
1570
1942
|
RepeaterRemove: repeaterRemoveRecipe,
|
|
1571
1943
|
RepeaterMoveUp: repeaterMoveUpRecipe,
|
|
1572
1944
|
RepeaterMoveDown: repeaterMoveDownRecipe,
|
|
@@ -1588,7 +1960,10 @@ var defaultRecipes = {
|
|
|
1588
1960
|
...tooltipRecipes,
|
|
1589
1961
|
...confirmRecipes,
|
|
1590
1962
|
...menuRecipes,
|
|
1591
|
-
...carouselRecipes
|
|
1963
|
+
...carouselRecipes,
|
|
1964
|
+
...tableRecipes,
|
|
1965
|
+
...codeBlockRecipes,
|
|
1966
|
+
...resizableRecipes
|
|
1592
1967
|
};
|
|
1593
1968
|
var defaultTheme = kreativCore.defineTheme({
|
|
1594
1969
|
tokens: defaultTokens,
|
|
@@ -1733,6 +2108,9 @@ Object.defineProperty(exports, "resolveTypography", {
|
|
|
1733
2108
|
enumerable: true,
|
|
1734
2109
|
get: function () { return kreativCore.resolveTypography; }
|
|
1735
2110
|
});
|
|
2111
|
+
exports.codeBlockContentRecipe = codeBlockContentRecipe;
|
|
2112
|
+
exports.codeBlockHeaderRecipe = codeBlockHeaderRecipe;
|
|
2113
|
+
exports.codeBlockRecipe = codeBlockRecipe;
|
|
1736
2114
|
exports.extendRecipe = extendRecipe;
|
|
1737
2115
|
exports.extendRecipes = extendRecipes;
|
|
1738
2116
|
exports.extendSemanticTokens = extendSemanticTokens;
|
|
@@ -1740,5 +2118,5 @@ exports.extendTheme = extendTheme;
|
|
|
1740
2118
|
exports.extendTokens = extendTokens;
|
|
1741
2119
|
exports.extendTypography = extendTypography;
|
|
1742
2120
|
exports.getRecipeNames = getRecipeNames;
|
|
1743
|
-
//# sourceMappingURL=chunk-
|
|
1744
|
-
//# sourceMappingURL=chunk-
|
|
2121
|
+
//# sourceMappingURL=chunk-TR5LTN5O.cjs.map
|
|
2122
|
+
//# sourceMappingURL=chunk-TR5LTN5O.cjs.map
|