@nextui-org/theme 0.0.0-dev-v2-20230501173002 → 0.0.0-dev-v2-20230511041421
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-4XSCIGTZ.mjs → chunk-5ZJFAFZA.mjs} +18 -10
- package/dist/chunk-DLSPUMD4.mjs +161 -0
- package/dist/chunk-G23VRPTF.mjs +53 -0
- package/dist/{chunk-UM54LZPC.mjs → chunk-YMKJFSPB.mjs} +47 -17
- package/dist/{chunk-XICTHLAR.mjs → chunk-YQXYRWJP.mjs} +4 -2
- package/dist/components/button.d.ts +2 -0
- package/dist/components/button.js +47 -17
- package/dist/components/button.mjs +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +121 -28
- package/dist/components/index.mjs +41 -35
- package/dist/components/link.d.ts +2 -1
- package/dist/components/link.js +6 -3
- package/dist/components/link.mjs +5 -3
- package/dist/components/skeleton.d.ts +44 -0
- package/dist/components/skeleton.js +77 -0
- package/dist/components/skeleton.mjs +6 -0
- package/dist/components/snippet.d.ts +22 -3
- package/dist/components/snippet.js +18 -10
- package/dist/components/snippet.mjs +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +124 -31
- package/dist/index.mjs +43 -37
- package/package.json +1 -1
- /package/dist/{chunk-T6HAGWX5.mjs → chunk-MVXKHHAX.mjs} +0 -0
package/dist/components/index.js
CHANGED
|
@@ -43,6 +43,7 @@ __export(components_exports, {
|
|
|
43
43
|
input: () => input,
|
|
44
44
|
kbd: () => kbd,
|
|
45
45
|
link: () => link,
|
|
46
|
+
linkAnchorClasses: () => linkAnchorClasses,
|
|
46
47
|
modal: () => modal,
|
|
47
48
|
navbar: () => navbar,
|
|
48
49
|
pagination: () => pagination,
|
|
@@ -50,6 +51,7 @@ __export(components_exports, {
|
|
|
50
51
|
progress: () => progress,
|
|
51
52
|
radio: () => radio,
|
|
52
53
|
radioGroup: () => radioGroup,
|
|
54
|
+
skeleton: () => skeleton,
|
|
53
55
|
snippet: () => snippet,
|
|
54
56
|
spacer: () => spacer,
|
|
55
57
|
spinner: () => spinner,
|
|
@@ -624,7 +626,7 @@ var link = (0, import_tailwind_variants4.tv)({
|
|
|
624
626
|
{
|
|
625
627
|
isBlock: true,
|
|
626
628
|
color: "foreground",
|
|
627
|
-
class: "hover:after:bg-foreground/
|
|
629
|
+
class: "hover:after:bg-foreground/10"
|
|
628
630
|
},
|
|
629
631
|
{
|
|
630
632
|
isBlock: true,
|
|
@@ -665,6 +667,7 @@ var link = (0, import_tailwind_variants4.tv)({
|
|
|
665
667
|
disableAnimation: false
|
|
666
668
|
}
|
|
667
669
|
});
|
|
670
|
+
var linkAnchorClasses = "flex mx-1 text-current self-center";
|
|
668
671
|
|
|
669
672
|
// src/components/user.ts
|
|
670
673
|
var import_tailwind_variants5 = require("tailwind-variants");
|
|
@@ -704,7 +707,6 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
704
707
|
"data-[pressed=true]:scale-95",
|
|
705
708
|
"overflow-hidden",
|
|
706
709
|
"gap-1.5",
|
|
707
|
-
"[&>svg]:max-w-[2em]",
|
|
708
710
|
"data-[focus-visible=true]:outline-none",
|
|
709
711
|
"data-[focus-visible=true]:ring-2",
|
|
710
712
|
"data-[focus-visible=true]:ring-primary",
|
|
@@ -715,12 +717,12 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
715
717
|
variants: {
|
|
716
718
|
variant: {
|
|
717
719
|
solid: "",
|
|
718
|
-
bordered: "border-2
|
|
719
|
-
light: "
|
|
720
|
+
bordered: "border-2 bg-transparent",
|
|
721
|
+
light: "bg-transparent",
|
|
720
722
|
flat: "",
|
|
721
723
|
faded: "border-2",
|
|
722
724
|
shadow: "",
|
|
723
|
-
ghost: "border-2
|
|
725
|
+
ghost: "border-2 bg-transparent"
|
|
724
726
|
},
|
|
725
727
|
size: {
|
|
726
728
|
xs: "px-2 h-6 text-xs",
|
|
@@ -730,12 +732,12 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
730
732
|
xl: "px-8 h-14 text-lg"
|
|
731
733
|
},
|
|
732
734
|
color: {
|
|
733
|
-
neutral:
|
|
734
|
-
primary:
|
|
735
|
-
secondary:
|
|
736
|
-
success:
|
|
737
|
-
warning:
|
|
738
|
-
danger:
|
|
735
|
+
neutral: "",
|
|
736
|
+
primary: "",
|
|
737
|
+
secondary: "",
|
|
738
|
+
success: "",
|
|
739
|
+
warning: "",
|
|
740
|
+
danger: ""
|
|
739
741
|
},
|
|
740
742
|
radius: {
|
|
741
743
|
none: "rounded-none",
|
|
@@ -758,7 +760,8 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
758
760
|
true: "[&:not(:first-child):not(:last-child)]:rounded-none"
|
|
759
761
|
},
|
|
760
762
|
isIconOnly: {
|
|
761
|
-
true: "p-0 gap-0"
|
|
763
|
+
true: "p-0 gap-0",
|
|
764
|
+
false: "[&>svg]:max-w-[2em]"
|
|
762
765
|
},
|
|
763
766
|
disableAnimation: {
|
|
764
767
|
true: "!transition-none",
|
|
@@ -776,6 +779,36 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
776
779
|
disableAnimation: false
|
|
777
780
|
},
|
|
778
781
|
compoundVariants: [
|
|
782
|
+
{
|
|
783
|
+
variant: "solid",
|
|
784
|
+
color: "neutral",
|
|
785
|
+
class: colorVariants.solid.neutral
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
variant: "solid",
|
|
789
|
+
color: "primary",
|
|
790
|
+
class: colorVariants.solid.primary
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
variant: "solid",
|
|
794
|
+
color: "secondary",
|
|
795
|
+
class: colorVariants.solid.secondary
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
variant: "solid",
|
|
799
|
+
color: "success",
|
|
800
|
+
class: colorVariants.solid.success
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
variant: "solid",
|
|
804
|
+
color: "warning",
|
|
805
|
+
class: colorVariants.solid.warning
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
variant: "solid",
|
|
809
|
+
color: "danger",
|
|
810
|
+
class: colorVariants.solid.danger
|
|
811
|
+
},
|
|
779
812
|
{
|
|
780
813
|
variant: "shadow",
|
|
781
814
|
color: "neutral",
|
|
@@ -899,32 +932,32 @@ var button = (0, import_tailwind_variants6.tv)({
|
|
|
899
932
|
{
|
|
900
933
|
variant: "light",
|
|
901
934
|
color: "neutral",
|
|
902
|
-
class: [colorVariants.light.neutral, "hover
|
|
935
|
+
class: [colorVariants.light.neutral, "data-[hover=true]:bg-neutral-100"]
|
|
903
936
|
},
|
|
904
937
|
{
|
|
905
938
|
variant: "light",
|
|
906
939
|
color: "primary",
|
|
907
|
-
class: [colorVariants.light.primary, "hover
|
|
940
|
+
class: [colorVariants.light.primary, "data-[hover=true]:bg-primary-50"]
|
|
908
941
|
},
|
|
909
942
|
{
|
|
910
943
|
variant: "light",
|
|
911
944
|
color: "secondary",
|
|
912
|
-
class: [colorVariants.light.secondary, "hover
|
|
945
|
+
class: [colorVariants.light.secondary, "data-[hover=true]:bg-secondary-100"]
|
|
913
946
|
},
|
|
914
947
|
{
|
|
915
948
|
variant: "light",
|
|
916
949
|
color: "success",
|
|
917
|
-
class: [colorVariants.light.success, "hover
|
|
950
|
+
class: [colorVariants.light.success, "data-[hover=true]:bg-success-50"]
|
|
918
951
|
},
|
|
919
952
|
{
|
|
920
953
|
variant: "light",
|
|
921
954
|
color: "warning",
|
|
922
|
-
class: [colorVariants.light.warning, "hover
|
|
955
|
+
class: [colorVariants.light.warning, "data-[hover=true]:bg-warning-50"]
|
|
923
956
|
},
|
|
924
957
|
{
|
|
925
958
|
variant: "light",
|
|
926
959
|
color: "danger",
|
|
927
|
-
class: [colorVariants.light.danger, "hover
|
|
960
|
+
class: [colorVariants.light.danger, "data-[hover=true]:bg-danger-50"]
|
|
928
961
|
},
|
|
929
962
|
{
|
|
930
963
|
variant: "ghost",
|
|
@@ -1522,16 +1555,16 @@ var popover = (0, import_tailwind_variants11.tv)({
|
|
|
1522
1555
|
var import_tailwind_variants12 = require("tailwind-variants");
|
|
1523
1556
|
var snippet = (0, import_tailwind_variants12.tv)({
|
|
1524
1557
|
slots: {
|
|
1525
|
-
base: "inline-flex items-center justify-between
|
|
1558
|
+
base: "inline-flex items-center justify-between rounded-md",
|
|
1526
1559
|
pre: "bg-transparent text-inherit font-mono whitespace-pre-wrap",
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
"data-[
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
"data-[
|
|
1560
|
+
content: "flex flex-col",
|
|
1561
|
+
symbol: "select-none",
|
|
1562
|
+
copyButton: ["group", "relative", "z-10", "text-inherit", "data-[hover=true]:bg-transparent"],
|
|
1563
|
+
copyIcon: [
|
|
1564
|
+
"absolute text-inherit opacity-100 scale-100 group-data-[copied=true]:opacity-0 group-data-[copied=true]:scale-50"
|
|
1565
|
+
],
|
|
1566
|
+
checkIcon: [
|
|
1567
|
+
"absolute text-inherit opacity-0 scale-50 group-data-[copied=true]:opacity-100 group-data-[copied=true]:scale-100"
|
|
1535
1568
|
]
|
|
1536
1569
|
},
|
|
1537
1570
|
variants: {
|
|
@@ -1605,6 +1638,13 @@ var snippet = (0, import_tailwind_variants12.tv)({
|
|
|
1605
1638
|
true: {
|
|
1606
1639
|
base: "w-full"
|
|
1607
1640
|
}
|
|
1641
|
+
},
|
|
1642
|
+
disableAnimation: {
|
|
1643
|
+
true: {},
|
|
1644
|
+
false: {
|
|
1645
|
+
copyIcon: "transition-transform-opacity",
|
|
1646
|
+
checkIcon: "transition-transform-opacity"
|
|
1647
|
+
}
|
|
1608
1648
|
}
|
|
1609
1649
|
},
|
|
1610
1650
|
defaultVariants: {
|
|
@@ -1612,7 +1652,8 @@ var snippet = (0, import_tailwind_variants12.tv)({
|
|
|
1612
1652
|
variant: "flat",
|
|
1613
1653
|
size: "md",
|
|
1614
1654
|
radius: "lg",
|
|
1615
|
-
fullWidth: false
|
|
1655
|
+
fullWidth: false,
|
|
1656
|
+
disableAnimation: false
|
|
1616
1657
|
},
|
|
1617
1658
|
compoundVariants: [
|
|
1618
1659
|
{
|
|
@@ -6161,6 +6202,56 @@ var tabs = (0, import_tailwind_variants37.tv)({
|
|
|
6161
6202
|
}
|
|
6162
6203
|
]
|
|
6163
6204
|
});
|
|
6205
|
+
|
|
6206
|
+
// src/components/skeleton.ts
|
|
6207
|
+
var import_tailwind_variants38 = require("tailwind-variants");
|
|
6208
|
+
var skeleton = (0, import_tailwind_variants38.tv)({
|
|
6209
|
+
slots: {
|
|
6210
|
+
base: [
|
|
6211
|
+
"group",
|
|
6212
|
+
"relative",
|
|
6213
|
+
"space-y-5",
|
|
6214
|
+
"overflow-hidden",
|
|
6215
|
+
"bg-white/5",
|
|
6216
|
+
"before:opacity-100",
|
|
6217
|
+
"before:absolute",
|
|
6218
|
+
"before:inset-0",
|
|
6219
|
+
"before:-translate-x-full",
|
|
6220
|
+
"before:animate-[shimmer_2s_infinite]",
|
|
6221
|
+
"before:border-t",
|
|
6222
|
+
"before:border-content4/70",
|
|
6223
|
+
"before:bg-gradient-to-r",
|
|
6224
|
+
"before:from-transparent",
|
|
6225
|
+
"before:via-content4",
|
|
6226
|
+
"dark:before:via-neutral-700/10",
|
|
6227
|
+
"before:to-transparent",
|
|
6228
|
+
"after:opacity-100",
|
|
6229
|
+
"after:absolute",
|
|
6230
|
+
"after:inset-0",
|
|
6231
|
+
"after:-z-10",
|
|
6232
|
+
"after:bg-content3",
|
|
6233
|
+
"dark:after:bg-content2",
|
|
6234
|
+
"data-[loaded=true]:before:opacity-0",
|
|
6235
|
+
"data-[loaded=true]:after:opacity-0"
|
|
6236
|
+
],
|
|
6237
|
+
content: ["opacity-0", "group-data-[loaded=true]:opacity-100"]
|
|
6238
|
+
},
|
|
6239
|
+
variants: {
|
|
6240
|
+
disableAnimation: {
|
|
6241
|
+
true: {
|
|
6242
|
+
base: "before:transition-none",
|
|
6243
|
+
content: "transition-none"
|
|
6244
|
+
},
|
|
6245
|
+
false: {
|
|
6246
|
+
base: "before:transition-opacity before:!duration-300",
|
|
6247
|
+
content: "transition-opacity motion-reduce:transition-none !duration-300"
|
|
6248
|
+
}
|
|
6249
|
+
}
|
|
6250
|
+
},
|
|
6251
|
+
defaultVariants: {
|
|
6252
|
+
disableAnimation: false
|
|
6253
|
+
}
|
|
6254
|
+
});
|
|
6164
6255
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6165
6256
|
0 && (module.exports = {
|
|
6166
6257
|
accordion,
|
|
@@ -6186,6 +6277,7 @@ var tabs = (0, import_tailwind_variants37.tv)({
|
|
|
6186
6277
|
input,
|
|
6187
6278
|
kbd,
|
|
6188
6279
|
link,
|
|
6280
|
+
linkAnchorClasses,
|
|
6189
6281
|
modal,
|
|
6190
6282
|
navbar,
|
|
6191
6283
|
pagination,
|
|
@@ -6193,6 +6285,7 @@ var tabs = (0, import_tailwind_variants37.tv)({
|
|
|
6193
6285
|
progress,
|
|
6194
6286
|
radio,
|
|
6195
6287
|
radioGroup,
|
|
6288
|
+
skeleton,
|
|
6196
6289
|
snippet,
|
|
6197
6290
|
spacer,
|
|
6198
6291
|
spinner,
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-MVXKHHAX.mjs";
|
|
2
|
+
import {
|
|
3
|
+
spacer
|
|
4
|
+
} from "../chunk-3B4SYPW2.mjs";
|
|
5
|
+
import {
|
|
6
|
+
spinner
|
|
7
|
+
} from "../chunk-XUL76UJD.mjs";
|
|
8
|
+
import {
|
|
9
|
+
table
|
|
10
|
+
} from "../chunk-KWWWVBJL.mjs";
|
|
2
11
|
import {
|
|
3
12
|
tabs
|
|
4
13
|
} from "../chunk-UUJTS7XS.mjs";
|
|
@@ -8,6 +17,12 @@ import {
|
|
|
8
17
|
import {
|
|
9
18
|
user
|
|
10
19
|
} from "../chunk-ZNBW4PQF.mjs";
|
|
20
|
+
import {
|
|
21
|
+
navbar
|
|
22
|
+
} from "../chunk-U3BMJPED.mjs";
|
|
23
|
+
import {
|
|
24
|
+
pagination
|
|
25
|
+
} from "../chunk-3LME35GX.mjs";
|
|
11
26
|
import {
|
|
12
27
|
popover
|
|
13
28
|
} from "../chunk-JWVJZEAT.mjs";
|
|
@@ -21,17 +36,17 @@ import {
|
|
|
21
36
|
radio
|
|
22
37
|
} from "../chunk-OZPCO5UB.mjs";
|
|
23
38
|
import {
|
|
24
|
-
|
|
25
|
-
} from "../chunk-
|
|
39
|
+
skeleton
|
|
40
|
+
} from "../chunk-G23VRPTF.mjs";
|
|
26
41
|
import {
|
|
27
|
-
|
|
28
|
-
} from "../chunk-
|
|
42
|
+
snippet
|
|
43
|
+
} from "../chunk-5ZJFAFZA.mjs";
|
|
29
44
|
import {
|
|
30
|
-
|
|
31
|
-
} from "../chunk-
|
|
45
|
+
dropdownSection
|
|
46
|
+
} from "../chunk-AVGEHFT4.mjs";
|
|
32
47
|
import {
|
|
33
|
-
|
|
34
|
-
} from "../chunk-
|
|
48
|
+
dropdown
|
|
49
|
+
} from "../chunk-UNMHV7HH.mjs";
|
|
35
50
|
import {
|
|
36
51
|
image
|
|
37
52
|
} from "../chunk-6GGRJ6I7.mjs";
|
|
@@ -42,17 +57,18 @@ import {
|
|
|
42
57
|
kbd
|
|
43
58
|
} from "../chunk-KUQBSI5S.mjs";
|
|
44
59
|
import {
|
|
45
|
-
link
|
|
46
|
-
|
|
60
|
+
link,
|
|
61
|
+
linkAnchorClasses
|
|
62
|
+
} from "../chunk-YQXYRWJP.mjs";
|
|
47
63
|
import {
|
|
48
64
|
modal
|
|
49
65
|
} from "../chunk-YMIOHWCD.mjs";
|
|
50
66
|
import {
|
|
51
|
-
|
|
52
|
-
} from "../chunk-
|
|
67
|
+
checkbox
|
|
68
|
+
} from "../chunk-7EKGN7JP.mjs";
|
|
53
69
|
import {
|
|
54
|
-
|
|
55
|
-
} from "../chunk-
|
|
70
|
+
chip
|
|
71
|
+
} from "../chunk-W5WYYDCM.mjs";
|
|
56
72
|
import {
|
|
57
73
|
circularProgress
|
|
58
74
|
} from "../chunk-AU7WYHMP.mjs";
|
|
@@ -72,11 +88,11 @@ import {
|
|
|
72
88
|
dropdownMenu
|
|
73
89
|
} from "../chunk-FCYNUVAR.mjs";
|
|
74
90
|
import {
|
|
75
|
-
|
|
76
|
-
} from "../chunk-
|
|
91
|
+
accordion
|
|
92
|
+
} from "../chunk-YYBLBQIV.mjs";
|
|
77
93
|
import {
|
|
78
|
-
|
|
79
|
-
} from "../chunk-
|
|
94
|
+
avatarGroup
|
|
95
|
+
} from "../chunk-MLH3XSY7.mjs";
|
|
80
96
|
import {
|
|
81
97
|
avatar
|
|
82
98
|
} from "../chunk-S7ZC2I7Y.mjs";
|
|
@@ -88,31 +104,19 @@ import {
|
|
|
88
104
|
} from "../chunk-VKFQ7EZN.mjs";
|
|
89
105
|
import {
|
|
90
106
|
button
|
|
91
|
-
} from "../chunk-
|
|
107
|
+
} from "../chunk-YMKJFSPB.mjs";
|
|
108
|
+
import "../chunk-CMYR6AOY.mjs";
|
|
109
|
+
import "../chunk-K7LK7NCE.mjs";
|
|
110
|
+
import "../chunk-RO3WUCFF.mjs";
|
|
92
111
|
import {
|
|
93
112
|
card
|
|
94
113
|
} from "../chunk-6QKRZ3JE.mjs";
|
|
95
114
|
import {
|
|
96
115
|
checkboxGroup
|
|
97
116
|
} from "../chunk-U77YMEWM.mjs";
|
|
98
|
-
import {
|
|
99
|
-
checkbox
|
|
100
|
-
} from "../chunk-7EKGN7JP.mjs";
|
|
101
|
-
import {
|
|
102
|
-
chip
|
|
103
|
-
} from "../chunk-W5WYYDCM.mjs";
|
|
104
|
-
import "../chunk-CMYR6AOY.mjs";
|
|
105
|
-
import "../chunk-K7LK7NCE.mjs";
|
|
106
|
-
import "../chunk-RO3WUCFF.mjs";
|
|
107
117
|
import {
|
|
108
118
|
accordionItem
|
|
109
119
|
} from "../chunk-XSFH4S4Y.mjs";
|
|
110
|
-
import {
|
|
111
|
-
accordion
|
|
112
|
-
} from "../chunk-YYBLBQIV.mjs";
|
|
113
|
-
import {
|
|
114
|
-
avatarGroup
|
|
115
|
-
} from "../chunk-MLH3XSY7.mjs";
|
|
116
120
|
import "../chunk-INZK6TTL.mjs";
|
|
117
121
|
export {
|
|
118
122
|
accordion,
|
|
@@ -138,6 +142,7 @@ export {
|
|
|
138
142
|
input,
|
|
139
143
|
kbd,
|
|
140
144
|
link,
|
|
145
|
+
linkAnchorClasses,
|
|
141
146
|
modal,
|
|
142
147
|
navbar,
|
|
143
148
|
pagination,
|
|
@@ -145,6 +150,7 @@ export {
|
|
|
145
150
|
progress,
|
|
146
151
|
radio,
|
|
147
152
|
radioGroup,
|
|
153
|
+
skeleton,
|
|
148
154
|
snippet,
|
|
149
155
|
spacer,
|
|
150
156
|
spinner,
|
|
@@ -75,6 +75,7 @@ declare const link: tailwind_variants.TVReturnType<{
|
|
|
75
75
|
true: string;
|
|
76
76
|
};
|
|
77
77
|
}, unknown>>;
|
|
78
|
+
declare const linkAnchorClasses = "flex mx-1 text-current self-center";
|
|
78
79
|
type LinkVariantProps = VariantProps<typeof link>;
|
|
79
80
|
|
|
80
|
-
export { LinkVariantProps, link };
|
|
81
|
+
export { LinkVariantProps, link, linkAnchorClasses };
|
package/dist/components/link.js
CHANGED
|
@@ -20,7 +20,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/components/link.ts
|
|
21
21
|
var link_exports = {};
|
|
22
22
|
__export(link_exports, {
|
|
23
|
-
link: () => link
|
|
23
|
+
link: () => link,
|
|
24
|
+
linkAnchorClasses: () => linkAnchorClasses
|
|
24
25
|
});
|
|
25
26
|
module.exports = __toCommonJS(link_exports);
|
|
26
27
|
var import_tailwind_variants = require("tailwind-variants");
|
|
@@ -84,7 +85,7 @@ var link = (0, import_tailwind_variants.tv)({
|
|
|
84
85
|
{
|
|
85
86
|
isBlock: true,
|
|
86
87
|
color: "foreground",
|
|
87
|
-
class: "hover:after:bg-foreground/
|
|
88
|
+
class: "hover:after:bg-foreground/10"
|
|
88
89
|
},
|
|
89
90
|
{
|
|
90
91
|
isBlock: true,
|
|
@@ -125,7 +126,9 @@ var link = (0, import_tailwind_variants.tv)({
|
|
|
125
126
|
disableAnimation: false
|
|
126
127
|
}
|
|
127
128
|
});
|
|
129
|
+
var linkAnchorClasses = "flex mx-1 text-current self-center";
|
|
128
130
|
// Annotate the CommonJS export names for ESM import in node:
|
|
129
131
|
0 && (module.exports = {
|
|
130
|
-
link
|
|
132
|
+
link,
|
|
133
|
+
linkAnchorClasses
|
|
131
134
|
});
|
package/dist/components/link.mjs
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Skeleton wrapper **Tailwind Variants** component
|
|
7
|
+
*
|
|
8
|
+
* const styles = skeleton({...})
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* <div className={styles()}>
|
|
12
|
+
* // skeleton content
|
|
13
|
+
* </div>
|
|
14
|
+
*/
|
|
15
|
+
declare const skeleton: tailwind_variants.TVReturnType<{
|
|
16
|
+
disableAnimation: {
|
|
17
|
+
true: {
|
|
18
|
+
base: string;
|
|
19
|
+
content: string;
|
|
20
|
+
};
|
|
21
|
+
false: {
|
|
22
|
+
base: string;
|
|
23
|
+
content: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}, unknown, {
|
|
27
|
+
base: string[];
|
|
28
|
+
content: string[];
|
|
29
|
+
}, undefined, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
30
|
+
disableAnimation: {
|
|
31
|
+
true: {
|
|
32
|
+
base: string;
|
|
33
|
+
content: string;
|
|
34
|
+
};
|
|
35
|
+
false: {
|
|
36
|
+
base: string;
|
|
37
|
+
content: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}, unknown>>;
|
|
41
|
+
type SkeletonVariantProps = VariantProps<typeof skeleton>;
|
|
42
|
+
type SkeletonSlots = keyof ReturnType<typeof skeleton>;
|
|
43
|
+
|
|
44
|
+
export { SkeletonSlots, SkeletonVariantProps, skeleton };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/components/skeleton.ts
|
|
21
|
+
var skeleton_exports = {};
|
|
22
|
+
__export(skeleton_exports, {
|
|
23
|
+
skeleton: () => skeleton
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(skeleton_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var skeleton = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
base: [
|
|
30
|
+
"group",
|
|
31
|
+
"relative",
|
|
32
|
+
"space-y-5",
|
|
33
|
+
"overflow-hidden",
|
|
34
|
+
"bg-white/5",
|
|
35
|
+
"before:opacity-100",
|
|
36
|
+
"before:absolute",
|
|
37
|
+
"before:inset-0",
|
|
38
|
+
"before:-translate-x-full",
|
|
39
|
+
"before:animate-[shimmer_2s_infinite]",
|
|
40
|
+
"before:border-t",
|
|
41
|
+
"before:border-content4/70",
|
|
42
|
+
"before:bg-gradient-to-r",
|
|
43
|
+
"before:from-transparent",
|
|
44
|
+
"before:via-content4",
|
|
45
|
+
"dark:before:via-neutral-700/10",
|
|
46
|
+
"before:to-transparent",
|
|
47
|
+
"after:opacity-100",
|
|
48
|
+
"after:absolute",
|
|
49
|
+
"after:inset-0",
|
|
50
|
+
"after:-z-10",
|
|
51
|
+
"after:bg-content3",
|
|
52
|
+
"dark:after:bg-content2",
|
|
53
|
+
"data-[loaded=true]:before:opacity-0",
|
|
54
|
+
"data-[loaded=true]:after:opacity-0"
|
|
55
|
+
],
|
|
56
|
+
content: ["opacity-0", "group-data-[loaded=true]:opacity-100"]
|
|
57
|
+
},
|
|
58
|
+
variants: {
|
|
59
|
+
disableAnimation: {
|
|
60
|
+
true: {
|
|
61
|
+
base: "before:transition-none",
|
|
62
|
+
content: "transition-none"
|
|
63
|
+
},
|
|
64
|
+
false: {
|
|
65
|
+
base: "before:transition-opacity before:!duration-300",
|
|
66
|
+
content: "transition-opacity motion-reduce:transition-none !duration-300"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
defaultVariants: {
|
|
71
|
+
disableAnimation: false
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
75
|
+
0 && (module.exports = {
|
|
76
|
+
skeleton
|
|
77
|
+
});
|
|
@@ -5,16 +5,17 @@ import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
|
5
5
|
/**
|
|
6
6
|
* Snippet wrapper **Tailwind Variants** component
|
|
7
7
|
*
|
|
8
|
-
* const {base, pre, copy} = snippet({...})
|
|
8
|
+
* const {base, content, pre, copy} = snippet({...})
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* <div className={base())}>
|
|
12
12
|
* <pre className={pre()}>
|
|
13
13
|
* // code snippet
|
|
14
|
+
* <div className={content()}>...</div>
|
|
14
15
|
* </pre>
|
|
15
16
|
* <button className={copy()}>
|
|
16
17
|
* <svg>
|
|
17
|
-
* // copy icon
|
|
18
|
+
* // copy icon / check icon
|
|
18
19
|
* </svg>
|
|
19
20
|
* </button>
|
|
20
21
|
* </div>
|
|
@@ -91,10 +92,21 @@ declare const snippet: tailwind_variants.TVReturnType<{
|
|
|
91
92
|
base: string;
|
|
92
93
|
};
|
|
93
94
|
};
|
|
95
|
+
disableAnimation: {
|
|
96
|
+
true: {};
|
|
97
|
+
false: {
|
|
98
|
+
copyIcon: string;
|
|
99
|
+
checkIcon: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
94
102
|
}, unknown, {
|
|
95
103
|
base: string;
|
|
96
104
|
pre: string;
|
|
97
|
-
|
|
105
|
+
content: string;
|
|
106
|
+
symbol: string;
|
|
107
|
+
copyButton: string[];
|
|
108
|
+
copyIcon: string[];
|
|
109
|
+
checkIcon: string[];
|
|
98
110
|
}, undefined, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
99
111
|
variant: {
|
|
100
112
|
flat: string;
|
|
@@ -167,6 +179,13 @@ declare const snippet: tailwind_variants.TVReturnType<{
|
|
|
167
179
|
base: string;
|
|
168
180
|
};
|
|
169
181
|
};
|
|
182
|
+
disableAnimation: {
|
|
183
|
+
true: {};
|
|
184
|
+
false: {
|
|
185
|
+
copyIcon: string;
|
|
186
|
+
checkIcon: string;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
170
189
|
}, unknown>>;
|
|
171
190
|
type SnippetVariantProps = VariantProps<typeof snippet>;
|
|
172
191
|
type SnippetSlots = keyof ReturnType<typeof snippet>;
|