@sytechui/theme 2.6.1 → 2.6.2
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-LYTXO6TG.mjs → chunk-22RNS2JQ.mjs} +4 -336
- package/dist/{chunk-JV5J6JHS.mjs → chunk-27EH4573.mjs} +1 -1
- package/dist/{chunk-4CEUCYJO.mjs → chunk-3PBT3W4C.mjs} +1 -1
- package/dist/{chunk-EOYBTX52.mjs → chunk-4XFAHRMJ.mjs} +1 -1
- package/dist/chunk-63TVI5PY.mjs +29 -0
- package/dist/{chunk-FNHXMO5W.mjs → chunk-6Q4A5IGD.mjs} +1 -1
- package/dist/{chunk-QP5CGENQ.mjs → chunk-7CAOOET2.mjs} +1 -1
- package/dist/{chunk-2BUT7L7P.mjs → chunk-7MY46DKJ.mjs} +1 -1
- package/dist/{chunk-K3TTKHSU.mjs → chunk-CR7SUL27.mjs} +1 -1
- package/dist/{chunk-GQMW4NEU.mjs → chunk-GXDNTAQH.mjs} +1 -1
- package/dist/{chunk-BHGZZQCH.mjs → chunk-GYRKKQKN.mjs} +1 -1
- package/dist/{chunk-FZM5ZZP2.mjs → chunk-HRULT2QB.mjs} +1 -1
- package/dist/{chunk-KCPJHUUJ.mjs → chunk-K6X3VPO4.mjs} +1 -1
- package/dist/{chunk-DBDK3IF7.mjs → chunk-LD2JADOO.mjs} +1 -1
- package/dist/{chunk-FLCPUBBE.mjs → chunk-M5F7VFZT.mjs} +1 -1
- package/dist/{chunk-SRSOCM2C.mjs → chunk-OBSH26UE.mjs} +1 -1
- package/dist/{chunk-ZLTZIM6X.mjs → chunk-P2SWF4YK.mjs} +1 -1
- package/dist/{chunk-7QDYFNL6.mjs → chunk-QU72GCNK.mjs} +1 -1
- package/dist/{chunk-FBI452W6.mjs → chunk-RAC3PSZO.mjs} +1 -1
- package/dist/chunk-T754O54S.mjs +96 -0
- package/dist/{chunk-VK7USAMR.mjs → chunk-TYJNRAT2.mjs} +1 -1
- package/dist/{chunk-TOGBVQYA.mjs → chunk-YISEC5JS.mjs} +3 -3
- package/dist/components/accordion.mjs +26 -25
- package/dist/components/alert.d.mts +215 -110
- package/dist/components/alert.d.ts +215 -110
- package/dist/components/alert.js +65 -380
- package/dist/components/alert.mjs +10 -46
- package/dist/components/autocomplete.mjs +6 -6
- package/dist/components/avatar.mjs +26 -25
- package/dist/components/badge.mjs +26 -25
- package/dist/components/bottom-bar.mjs +26 -25
- package/dist/components/breadcrumbs.mjs +26 -25
- package/dist/components/button.mjs +26 -25
- package/dist/components/calendar.mjs +26 -25
- package/dist/components/card.mjs +26 -25
- package/dist/components/checkbox.mjs +26 -25
- package/dist/components/chip.mjs +26 -25
- package/dist/components/code.mjs +26 -25
- package/dist/components/date-input.mjs +6 -6
- package/dist/components/date-picker.mjs +6 -6
- package/dist/components/divider.d.mts +40 -1
- package/dist/components/divider.d.ts +40 -1
- package/dist/components/divider.js +12 -3
- package/dist/components/divider.mjs +10 -8
- package/dist/components/drawer.mjs +6 -6
- package/dist/components/drip.mjs +6 -6
- package/dist/components/drop-zone.mjs +26 -25
- package/dist/components/dropdown.mjs +26 -25
- package/dist/components/form.mjs +6 -6
- package/dist/components/image.mjs +6 -6
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +73 -305
- package/dist/components/index.mjs +34 -28
- package/dist/components/input-otp.mjs +26 -25
- package/dist/components/input.mjs +26 -25
- package/dist/components/kbd.mjs +6 -6
- package/dist/components/link.mjs +26 -25
- package/dist/components/listbox.mjs +26 -25
- package/dist/components/menu.mjs +26 -25
- package/dist/components/modal.mjs +26 -25
- package/dist/components/navbar.mjs +26 -25
- package/dist/components/number-input.mjs +26 -25
- package/dist/components/pagination.mjs +26 -25
- package/dist/components/popover.mjs +26 -25
- package/dist/components/progress.mjs +6 -6
- package/dist/components/radio.mjs +26 -25
- package/dist/components/scroll-area.mjs +6 -6
- package/dist/components/scroll-shadow.mjs +6 -6
- package/dist/components/select.mjs +26 -25
- package/dist/components/shimmer-text.mjs +6 -6
- package/dist/components/skeleton.mjs +6 -6
- package/dist/components/slider.mjs +26 -25
- package/dist/components/snippet.mjs +26 -25
- package/dist/components/spacer.mjs +6 -6
- package/dist/components/spinner.mjs +6 -6
- package/dist/components/stepper.mjs +26 -25
- package/dist/components/table.mjs +26 -25
- package/dist/components/tabs.mjs +26 -25
- package/dist/components/toast.mjs +26 -25
- package/dist/components/toggle.mjs +26 -25
- package/dist/components/user.mjs +26 -25
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +73 -305
- package/dist/index.mjs +37 -31
- package/dist/plugin.mjs +5 -5
- package/dist/utilities/index.mjs +3 -3
- package/dist/utils/cn.mjs +5 -5
- package/dist/utils/index.mjs +26 -25
- package/dist/utils/merge-classes.mjs +26 -25
- package/dist/utils/tv.mjs +5 -5
- package/dist/utils/tw-merge-config.mjs +4 -4
- package/package.json +1 -1
- package/dist/chunk-7ZVSC6V6.mjs +0 -21
- package/dist/{chunk-2WQ76NXU.mjs → chunk-UJC5GXOO.mjs} +6 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tv
|
|
3
|
+
} from "./chunk-RAC3PSZO.mjs";
|
|
1
4
|
import {
|
|
2
5
|
colorVariants
|
|
3
6
|
} from "./chunk-GQT3YUX3.mjs";
|
|
4
7
|
import {
|
|
5
8
|
cn
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
tv
|
|
9
|
-
} from "./chunk-FBI452W6.mjs";
|
|
9
|
+
} from "./chunk-P2SWF4YK.mjs";
|
|
10
10
|
import {
|
|
11
11
|
collapseAdjacentVariantBorders,
|
|
12
12
|
dataFocusVisibleClasses,
|
|
@@ -9492,337 +9492,6 @@ var calendar = tv({
|
|
|
9492
9492
|
]
|
|
9493
9493
|
});
|
|
9494
9494
|
|
|
9495
|
-
// src/components/alert.ts
|
|
9496
|
-
var alert = tv({
|
|
9497
|
-
slots: {
|
|
9498
|
-
base: "flex flex-grow flex-row w-full items-center py-3 px-4 gap-x-1",
|
|
9499
|
-
mainWrapper: "h-full flex-grow min-h-10 ms-2 flex flex-col box-border items-start text-inherit justify-center",
|
|
9500
|
-
title: "text-small w-full font-medium block text-inherit leading-5",
|
|
9501
|
-
description: "pl-[1px] text-small font-normal text-inherit",
|
|
9502
|
-
closeButton: "relative text-inherit translate-x-1 -translate-y-1",
|
|
9503
|
-
iconWrapper: "flex-none relative w-9 h-9 rounded-full grid place-items-center",
|
|
9504
|
-
alertIcon: "fill-current w-6 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"
|
|
9505
|
-
},
|
|
9506
|
-
variants: {
|
|
9507
|
-
color: {
|
|
9508
|
-
default: {},
|
|
9509
|
-
primary: {},
|
|
9510
|
-
secondary: {},
|
|
9511
|
-
success: {},
|
|
9512
|
-
warning: {},
|
|
9513
|
-
danger: {}
|
|
9514
|
-
},
|
|
9515
|
-
variant: {
|
|
9516
|
-
solid: {},
|
|
9517
|
-
flat: {},
|
|
9518
|
-
faded: {
|
|
9519
|
-
base: "border-small"
|
|
9520
|
-
},
|
|
9521
|
-
bordered: {
|
|
9522
|
-
base: "border-small bg-transparent"
|
|
9523
|
-
}
|
|
9524
|
-
},
|
|
9525
|
-
radius: {
|
|
9526
|
-
none: {
|
|
9527
|
-
base: "rounded-none"
|
|
9528
|
-
},
|
|
9529
|
-
sm: {
|
|
9530
|
-
base: "rounded-small"
|
|
9531
|
-
},
|
|
9532
|
-
md: {
|
|
9533
|
-
base: "rounded-medium"
|
|
9534
|
-
},
|
|
9535
|
-
lg: {
|
|
9536
|
-
base: "rounded-large"
|
|
9537
|
-
},
|
|
9538
|
-
full: {
|
|
9539
|
-
base: "rounded-full"
|
|
9540
|
-
}
|
|
9541
|
-
},
|
|
9542
|
-
hideIcon: {
|
|
9543
|
-
true: {
|
|
9544
|
-
iconWrapper: "hidden"
|
|
9545
|
-
}
|
|
9546
|
-
},
|
|
9547
|
-
hideIconWrapper: {
|
|
9548
|
-
true: {
|
|
9549
|
-
base: "gap-x-0",
|
|
9550
|
-
iconWrapper: "!bg-transparent !shadow-none !border-none"
|
|
9551
|
-
}
|
|
9552
|
-
},
|
|
9553
|
-
hasContent: {
|
|
9554
|
-
false: {
|
|
9555
|
-
base: "items-center",
|
|
9556
|
-
mainWrapper: "justify-center items-center"
|
|
9557
|
-
}
|
|
9558
|
-
}
|
|
9559
|
-
},
|
|
9560
|
-
defaultVariants: {
|
|
9561
|
-
color: "default",
|
|
9562
|
-
variant: "flat",
|
|
9563
|
-
radius: "md",
|
|
9564
|
-
hideIcon: false,
|
|
9565
|
-
hideIconWrapper: false
|
|
9566
|
-
},
|
|
9567
|
-
compoundVariants: [
|
|
9568
|
-
// solid / color
|
|
9569
|
-
{
|
|
9570
|
-
variant: "solid",
|
|
9571
|
-
color: "default",
|
|
9572
|
-
class: {
|
|
9573
|
-
base: colorVariants.solid.default,
|
|
9574
|
-
closeButton: "data-[hover]:bg-default-100",
|
|
9575
|
-
alertIcon: "text-default-foreground"
|
|
9576
|
-
}
|
|
9577
|
-
},
|
|
9578
|
-
{
|
|
9579
|
-
variant: "solid",
|
|
9580
|
-
color: "primary",
|
|
9581
|
-
class: {
|
|
9582
|
-
base: colorVariants.solid.primary
|
|
9583
|
-
}
|
|
9584
|
-
},
|
|
9585
|
-
{
|
|
9586
|
-
variant: "solid",
|
|
9587
|
-
color: "secondary",
|
|
9588
|
-
class: {
|
|
9589
|
-
base: colorVariants.solid.secondary
|
|
9590
|
-
}
|
|
9591
|
-
},
|
|
9592
|
-
{
|
|
9593
|
-
variant: "solid",
|
|
9594
|
-
color: "success",
|
|
9595
|
-
class: {
|
|
9596
|
-
base: colorVariants.solid.success
|
|
9597
|
-
}
|
|
9598
|
-
},
|
|
9599
|
-
{
|
|
9600
|
-
variant: "solid",
|
|
9601
|
-
color: "warning",
|
|
9602
|
-
class: {
|
|
9603
|
-
base: colorVariants.solid.warning
|
|
9604
|
-
}
|
|
9605
|
-
},
|
|
9606
|
-
{
|
|
9607
|
-
variant: "solid",
|
|
9608
|
-
color: "danger",
|
|
9609
|
-
class: {
|
|
9610
|
-
base: colorVariants.solid.danger
|
|
9611
|
-
}
|
|
9612
|
-
},
|
|
9613
|
-
// flat & faded / color
|
|
9614
|
-
{
|
|
9615
|
-
variant: ["flat", "faded"],
|
|
9616
|
-
color: "default",
|
|
9617
|
-
class: {
|
|
9618
|
-
base: [
|
|
9619
|
-
colorVariants.flat.default,
|
|
9620
|
-
"bg-default-100 dark:bg-default-50/50",
|
|
9621
|
-
"text-default-foreground"
|
|
9622
|
-
],
|
|
9623
|
-
description: "text-default-600",
|
|
9624
|
-
closeButton: "text-default-400",
|
|
9625
|
-
iconWrapper: "bg-default-50 dark:bg-default-100 border-default-200"
|
|
9626
|
-
}
|
|
9627
|
-
},
|
|
9628
|
-
{
|
|
9629
|
-
variant: ["flat", "faded"],
|
|
9630
|
-
color: "primary",
|
|
9631
|
-
class: {
|
|
9632
|
-
base: [colorVariants.flat.primary, "bg-primary-50 dark:bg-primary-50/50"],
|
|
9633
|
-
closeButton: "text-primary-500 data-[hover]:bg-primary-200",
|
|
9634
|
-
iconWrapper: "bg-primary-50 dark:bg-primary-100 border-primary-100"
|
|
9635
|
-
}
|
|
9636
|
-
},
|
|
9637
|
-
{
|
|
9638
|
-
variant: ["flat", "faded"],
|
|
9639
|
-
color: "secondary",
|
|
9640
|
-
class: {
|
|
9641
|
-
base: [colorVariants.flat.secondary, "bg-secondary-50 dark:bg-secondary-50/50"],
|
|
9642
|
-
closeButton: "text-secondary-500 data-[hover]:bg-secondary-200",
|
|
9643
|
-
iconWrapper: "bg-secondary-50 dark:bg-secondary-100 border-secondary-100"
|
|
9644
|
-
}
|
|
9645
|
-
},
|
|
9646
|
-
{
|
|
9647
|
-
variant: ["flat", "faded"],
|
|
9648
|
-
color: "success",
|
|
9649
|
-
class: {
|
|
9650
|
-
base: [colorVariants.flat.success, "bg-success-50 dark:bg-success-50/50"],
|
|
9651
|
-
closeButton: "text-success-500 data-[hover]:bg-success-200",
|
|
9652
|
-
iconWrapper: "bg-success-50 dark:bg-success-100 border-success-100"
|
|
9653
|
-
}
|
|
9654
|
-
},
|
|
9655
|
-
{
|
|
9656
|
-
variant: ["flat", "faded"],
|
|
9657
|
-
color: "warning",
|
|
9658
|
-
class: {
|
|
9659
|
-
base: [colorVariants.flat.warning, "bg-warning-50 dark:bg-warning-50/50"],
|
|
9660
|
-
closeButton: "text-warning-500 data-[hover]:bg-warning-200",
|
|
9661
|
-
iconWrapper: "bg-warning-50 dark:bg-warning-100 border-warning-100"
|
|
9662
|
-
}
|
|
9663
|
-
},
|
|
9664
|
-
{
|
|
9665
|
-
variant: ["flat", "faded"],
|
|
9666
|
-
color: "danger",
|
|
9667
|
-
class: {
|
|
9668
|
-
base: [colorVariants.flat.danger, "bg-danger-50 dark:bg-danger-50/50"],
|
|
9669
|
-
closeButton: "text-danger-500 data-[hover]:bg-danger-200",
|
|
9670
|
-
iconWrapper: "bg-danger-50 dark:bg-danger-100 border-danger-100"
|
|
9671
|
-
}
|
|
9672
|
-
},
|
|
9673
|
-
// faded / color
|
|
9674
|
-
{
|
|
9675
|
-
variant: "faded",
|
|
9676
|
-
color: "default",
|
|
9677
|
-
class: {
|
|
9678
|
-
base: "border-default-300 dark:border-default-200"
|
|
9679
|
-
}
|
|
9680
|
-
},
|
|
9681
|
-
{
|
|
9682
|
-
variant: "faded",
|
|
9683
|
-
color: "primary",
|
|
9684
|
-
class: {
|
|
9685
|
-
base: "border-primary-200 dark:border-primary-100"
|
|
9686
|
-
}
|
|
9687
|
-
},
|
|
9688
|
-
{
|
|
9689
|
-
variant: "faded",
|
|
9690
|
-
color: "secondary",
|
|
9691
|
-
class: {
|
|
9692
|
-
base: "border-secondary-200"
|
|
9693
|
-
}
|
|
9694
|
-
},
|
|
9695
|
-
{
|
|
9696
|
-
variant: "faded",
|
|
9697
|
-
color: "success",
|
|
9698
|
-
class: {
|
|
9699
|
-
base: "border-success-300 dark:border-success-100"
|
|
9700
|
-
}
|
|
9701
|
-
},
|
|
9702
|
-
{
|
|
9703
|
-
variant: "faded",
|
|
9704
|
-
color: "warning",
|
|
9705
|
-
class: {
|
|
9706
|
-
base: "border-warning-300 dark:border-warning-100"
|
|
9707
|
-
}
|
|
9708
|
-
},
|
|
9709
|
-
{
|
|
9710
|
-
variant: "faded",
|
|
9711
|
-
color: "danger",
|
|
9712
|
-
class: {
|
|
9713
|
-
base: "border-danger-200 dark:border-danger-100"
|
|
9714
|
-
}
|
|
9715
|
-
},
|
|
9716
|
-
// bordered / color
|
|
9717
|
-
{
|
|
9718
|
-
variant: "bordered",
|
|
9719
|
-
color: "default",
|
|
9720
|
-
class: {
|
|
9721
|
-
base: [colorVariants.bordered.default],
|
|
9722
|
-
description: "text-default-600",
|
|
9723
|
-
closeButton: "text-default-400"
|
|
9724
|
-
}
|
|
9725
|
-
},
|
|
9726
|
-
{
|
|
9727
|
-
variant: "bordered",
|
|
9728
|
-
color: "primary",
|
|
9729
|
-
class: {
|
|
9730
|
-
base: [colorVariants.bordered.primary],
|
|
9731
|
-
closeButton: "data-[hover]:bg-primary-50"
|
|
9732
|
-
}
|
|
9733
|
-
},
|
|
9734
|
-
{
|
|
9735
|
-
variant: "bordered",
|
|
9736
|
-
color: "secondary",
|
|
9737
|
-
class: {
|
|
9738
|
-
base: [colorVariants.bordered.secondary],
|
|
9739
|
-
closeButton: "data-[hover]:bg-secondary-50"
|
|
9740
|
-
}
|
|
9741
|
-
},
|
|
9742
|
-
{
|
|
9743
|
-
variant: "bordered",
|
|
9744
|
-
color: "success",
|
|
9745
|
-
class: {
|
|
9746
|
-
base: [colorVariants.bordered.success],
|
|
9747
|
-
closeButton: "data-[hover]:bg-success-50"
|
|
9748
|
-
}
|
|
9749
|
-
},
|
|
9750
|
-
{
|
|
9751
|
-
variant: "bordered",
|
|
9752
|
-
color: "warning",
|
|
9753
|
-
class: {
|
|
9754
|
-
base: [colorVariants.bordered.warning],
|
|
9755
|
-
closeButton: "data-[hover]:bg-warning-100"
|
|
9756
|
-
}
|
|
9757
|
-
},
|
|
9758
|
-
{
|
|
9759
|
-
variant: "bordered",
|
|
9760
|
-
color: "danger",
|
|
9761
|
-
class: {
|
|
9762
|
-
base: [colorVariants.bordered.danger],
|
|
9763
|
-
closeButton: "data-[hover]:bg-danger-50"
|
|
9764
|
-
}
|
|
9765
|
-
},
|
|
9766
|
-
// flat & bordered & faded
|
|
9767
|
-
{
|
|
9768
|
-
variant: ["flat", "bordered", "faded"],
|
|
9769
|
-
class: {
|
|
9770
|
-
iconWrapper: "shadow-small"
|
|
9771
|
-
}
|
|
9772
|
-
},
|
|
9773
|
-
// flat & faded
|
|
9774
|
-
{
|
|
9775
|
-
variant: ["flat", "faded"],
|
|
9776
|
-
class: {
|
|
9777
|
-
iconWrapper: "shadow-small border-1"
|
|
9778
|
-
}
|
|
9779
|
-
},
|
|
9780
|
-
// bordered & color
|
|
9781
|
-
{
|
|
9782
|
-
variant: "bordered",
|
|
9783
|
-
color: "default",
|
|
9784
|
-
class: {
|
|
9785
|
-
iconWrapper: "bg-default-200 dark:bg-default-100"
|
|
9786
|
-
}
|
|
9787
|
-
},
|
|
9788
|
-
{
|
|
9789
|
-
variant: "bordered",
|
|
9790
|
-
color: "primary",
|
|
9791
|
-
class: {
|
|
9792
|
-
iconWrapper: "bg-primary-100 dark:bg-primary-50"
|
|
9793
|
-
}
|
|
9794
|
-
},
|
|
9795
|
-
{
|
|
9796
|
-
variant: "bordered",
|
|
9797
|
-
color: "secondary",
|
|
9798
|
-
class: {
|
|
9799
|
-
iconWrapper: "bg-secondary-100 dark:bg-secondary-50"
|
|
9800
|
-
}
|
|
9801
|
-
},
|
|
9802
|
-
{
|
|
9803
|
-
variant: "bordered",
|
|
9804
|
-
color: "success",
|
|
9805
|
-
class: {
|
|
9806
|
-
iconWrapper: "bg-success-100 dark:bg-success-50"
|
|
9807
|
-
}
|
|
9808
|
-
},
|
|
9809
|
-
{
|
|
9810
|
-
variant: "bordered",
|
|
9811
|
-
color: "warning",
|
|
9812
|
-
class: {
|
|
9813
|
-
iconWrapper: "bg-warning-100 dark:bg-warning-50"
|
|
9814
|
-
}
|
|
9815
|
-
},
|
|
9816
|
-
{
|
|
9817
|
-
variant: "bordered",
|
|
9818
|
-
color: "danger",
|
|
9819
|
-
class: {
|
|
9820
|
-
iconWrapper: "bg-danger-100 dark:bg-danger-50"
|
|
9821
|
-
}
|
|
9822
|
-
}
|
|
9823
|
-
]
|
|
9824
|
-
});
|
|
9825
|
-
|
|
9826
9495
|
// src/components/number-input.ts
|
|
9827
9496
|
var numberInput = tv({
|
|
9828
9497
|
slots: {
|
|
@@ -11150,7 +10819,6 @@ export {
|
|
|
11150
10819
|
breadcrumbItem,
|
|
11151
10820
|
breadcrumbs,
|
|
11152
10821
|
calendar,
|
|
11153
|
-
alert,
|
|
11154
10822
|
numberInput,
|
|
11155
10823
|
toastRegion,
|
|
11156
10824
|
toast
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tv
|
|
3
|
+
} from "./chunk-RAC3PSZO.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/divider.ts
|
|
6
|
+
var divider = tv({
|
|
7
|
+
base: "shrink-0 bg-divider border-none",
|
|
8
|
+
variants: {
|
|
9
|
+
orientation: {
|
|
10
|
+
horizontal: "w-full h-divider",
|
|
11
|
+
vertical: "h-auto min-h-2 self-stretch w-divider"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
orientation: "horizontal"
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var labeledDivider = tv({
|
|
19
|
+
slots: {
|
|
20
|
+
base: "flex w-full items-center gap-3",
|
|
21
|
+
line: "h-divider flex-1 bg-divider",
|
|
22
|
+
label: "shrink-0 text-small text-default-500"
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
divider,
|
|
28
|
+
labeledDivider
|
|
29
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tv
|
|
3
|
+
} from "./chunk-RAC3PSZO.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/alert.ts
|
|
6
|
+
var accentColor = [
|
|
7
|
+
"text-[color:color-mix(in_oklab,oklch(0.6204_0.195_253.83)_70%,oklch(0.2103_0.0059_285.89)_30%)]",
|
|
8
|
+
"dark:text-[color:color-mix(in_oklab,oklch(0.6204_0.195_253.83)_80%,oklch(0.9911_0_0)_30%)]"
|
|
9
|
+
];
|
|
10
|
+
var successColor = [
|
|
11
|
+
"text-[color:color-mix(in_oklab,oklch(0.7329_0.1935_150.81)_80%,oklch(0.2103_0.0059_285.89)_60%)]",
|
|
12
|
+
"dark:text-[color:color-mix(in_oklab,oklch(0.7329_0.1935_150.81)_80%,oklch(0.9911_0_0)_30%)]"
|
|
13
|
+
];
|
|
14
|
+
var warningColor = [
|
|
15
|
+
"text-[color:color-mix(in_oklab,oklch(0.7819_0.1585_72.33)_80%,oklch(0.2103_0.0059_285.89)_70%)]",
|
|
16
|
+
"dark:text-[color:color-mix(in_oklab,oklch(0.8203_0.1388_76.34)_80%,oklch(0.9911_0_0)_30%)]"
|
|
17
|
+
];
|
|
18
|
+
var dangerColor = [
|
|
19
|
+
"text-[color:color-mix(in_oklab,oklch(0.6532_0.2328_25.74)_70%,oklch(0.2103_0.0059_285.89)_40%)]",
|
|
20
|
+
"dark:text-[color:color-mix(in_oklab,oklch(0.594_0.1967_24.63)_80%,oklch(0.9911_0_0)_30%)]"
|
|
21
|
+
];
|
|
22
|
+
var alertVariants = tv({
|
|
23
|
+
slots: {
|
|
24
|
+
base: [
|
|
25
|
+
"flex w-full flex-row items-start justify-start gap-1 px-4 py-3",
|
|
26
|
+
"rounded-[24px] bg-[oklch(100%_0_0)] text-[oklch(0.2103_0.0059_285.89)]",
|
|
27
|
+
"dark:bg-[oklch(0.2103_0.0059_285.89)] dark:text-[oklch(0.9911_0_0)]",
|
|
28
|
+
"shadow-[0_2px_4px_0_rgba(0,0,0,0.04),0_1px_2px_0_rgba(0,0,0,0.06),0_0_1px_0_rgba(0,0,0,0.06)]",
|
|
29
|
+
"dark:shadow-none"
|
|
30
|
+
],
|
|
31
|
+
content: "flex h-full grow flex-col items-start",
|
|
32
|
+
indicator: [
|
|
33
|
+
"flex size-6 shrink-0 items-center justify-center p-1 select-none",
|
|
34
|
+
"[&_[data-slot=alert-default-icon]]:box-content",
|
|
35
|
+
"[&_[data-slot=alert-default-icon]]:size-4"
|
|
36
|
+
],
|
|
37
|
+
title: "text-small leading-6 font-medium",
|
|
38
|
+
description: "text-small text-[oklch(0.5517_0.0138_285.94)] dark:text-[oklch(70.5%_0.015_286.067)]"
|
|
39
|
+
},
|
|
40
|
+
variants: {
|
|
41
|
+
status: {
|
|
42
|
+
default: {
|
|
43
|
+
base: "border-default-300",
|
|
44
|
+
indicator: "text-inherit",
|
|
45
|
+
title: "text-inherit"
|
|
46
|
+
},
|
|
47
|
+
accent: {
|
|
48
|
+
base: "border-primary-300",
|
|
49
|
+
indicator: accentColor,
|
|
50
|
+
title: accentColor
|
|
51
|
+
},
|
|
52
|
+
success: {
|
|
53
|
+
base: "border-success-300",
|
|
54
|
+
indicator: successColor,
|
|
55
|
+
title: successColor
|
|
56
|
+
},
|
|
57
|
+
warning: {
|
|
58
|
+
base: "border-warning-300",
|
|
59
|
+
indicator: warningColor,
|
|
60
|
+
title: warningColor
|
|
61
|
+
},
|
|
62
|
+
danger: {
|
|
63
|
+
base: "border-danger-300",
|
|
64
|
+
indicator: dangerColor,
|
|
65
|
+
title: dangerColor
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
radius: {
|
|
69
|
+
none: {
|
|
70
|
+
base: "rounded-none"
|
|
71
|
+
},
|
|
72
|
+
sm: {
|
|
73
|
+
base: "rounded-small"
|
|
74
|
+
},
|
|
75
|
+
md: {
|
|
76
|
+
base: "rounded-medium"
|
|
77
|
+
},
|
|
78
|
+
lg: {
|
|
79
|
+
base: "rounded-[24px]"
|
|
80
|
+
},
|
|
81
|
+
full: {
|
|
82
|
+
base: "rounded-full"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
defaultVariants: {
|
|
87
|
+
radius: "lg",
|
|
88
|
+
status: "default"
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
var alert = alertVariants;
|
|
92
|
+
|
|
93
|
+
export {
|
|
94
|
+
alertVariants,
|
|
95
|
+
alert
|
|
96
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
baseStyles
|
|
3
3
|
} from "./chunk-JGY6VQQQ.mjs";
|
|
4
|
+
import {
|
|
5
|
+
utilities
|
|
6
|
+
} from "./chunk-UJC5GXOO.mjs";
|
|
4
7
|
import {
|
|
5
8
|
isBaseTheme
|
|
6
9
|
} from "./chunk-D2XMP2NC.mjs";
|
|
7
|
-
import {
|
|
8
|
-
utilities
|
|
9
|
-
} from "./chunk-2WQ76NXU.mjs";
|
|
10
10
|
import {
|
|
11
11
|
semanticColors
|
|
12
12
|
} from "./chunk-FFKHVGFX.mjs";
|