@nextui-org/theme 0.0.0-canary-20240429052129
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/LICENSE +21 -0
- package/README.md +24 -0
- package/colors.d.ts +1 -0
- package/colors.js +1 -0
- package/dist/animations/index.d.ts +71 -0
- package/dist/animations/index.js +98 -0
- package/dist/animations/index.mjs +6 -0
- package/dist/chunk-2PIR7DFM.mjs +77 -0
- package/dist/chunk-3FZU25GR.mjs +33 -0
- package/dist/chunk-3LKKH4AR.mjs +17 -0
- package/dist/chunk-4Z22WXZX.mjs +21 -0
- package/dist/chunk-4ZM6AI3H.mjs +366 -0
- package/dist/chunk-6XJJCV76.mjs +243 -0
- package/dist/chunk-726LN7M3.mjs +20 -0
- package/dist/chunk-7ODIBITJ.mjs +172 -0
- package/dist/chunk-7TJINK3S.mjs +390 -0
- package/dist/chunk-AC6F4DT6.mjs +485 -0
- package/dist/chunk-AGUZRGXC.mjs +12 -0
- package/dist/chunk-AO2AAOEJ.mjs +56 -0
- package/dist/chunk-AT4OXKKK.mjs +58 -0
- package/dist/chunk-CMYR6AOY.mjs +0 -0
- package/dist/chunk-CQY2A2EX.mjs +401 -0
- package/dist/chunk-CTY7IP65.mjs +723 -0
- package/dist/chunk-CUUGEIPA.mjs +474 -0
- package/dist/chunk-D2XMP2NC.mjs +6 -0
- package/dist/chunk-DCEG5LGX.mjs +17 -0
- package/dist/chunk-DI2L75XK.mjs +22 -0
- package/dist/chunk-DMASP6FA.mjs +74 -0
- package/dist/chunk-ECP4S2VZ.mjs +36 -0
- package/dist/chunk-FRI2VDCA.mjs +306 -0
- package/dist/chunk-G4RCK475.mjs +155 -0
- package/dist/chunk-GHZ36ATJ.mjs +17 -0
- package/dist/chunk-GMMETTYU.mjs +30 -0
- package/dist/chunk-HPFX3B3F.mjs +59 -0
- package/dist/chunk-HUBDRSA4.mjs +49 -0
- package/dist/chunk-I6ESTKKY.mjs +422 -0
- package/dist/chunk-IAS3SFA4.mjs +42 -0
- package/dist/chunk-IP3D7KVB.mjs +181 -0
- package/dist/chunk-JQTFOIV7.mjs +108 -0
- package/dist/chunk-JUEOCLA3.mjs +17 -0
- package/dist/chunk-K7LK7NCE.mjs +0 -0
- package/dist/chunk-KA5SSSWD.mjs +177 -0
- package/dist/chunk-KCOC3H6R.mjs +98 -0
- package/dist/chunk-KUNVFLXJ.mjs +41 -0
- package/dist/chunk-KVPPQD2E.mjs +231 -0
- package/dist/chunk-L2OL7R23.mjs +17 -0
- package/dist/chunk-LDBYFTHC.mjs +134 -0
- package/dist/chunk-LKKSQVZ6.mjs +163 -0
- package/dist/chunk-M3MKSQ42.mjs +124 -0
- package/dist/chunk-M63AFAHO.mjs +0 -0
- package/dist/chunk-MUWHEIW6.mjs +831 -0
- package/dist/chunk-NAUU2OUH.mjs +23 -0
- package/dist/chunk-NYSEAAK5.mjs +214 -0
- package/dist/chunk-OQIS4MXV.mjs +205 -0
- package/dist/chunk-OR5PUD24.mjs +17 -0
- package/dist/chunk-PSEUPXFL.mjs +122 -0
- package/dist/chunk-QZTWGJ72.mjs +16 -0
- package/dist/chunk-RNAP5C4C.mjs +406 -0
- package/dist/chunk-S573WUYY.mjs +381 -0
- package/dist/chunk-SEKJ6A6T.mjs +396 -0
- package/dist/chunk-T3GWIVAM.mjs +17 -0
- package/dist/chunk-UODOTC2G.mjs +21 -0
- package/dist/chunk-UVXYPGDZ.mjs +0 -0
- package/dist/chunk-V5ZTBGGO.mjs +42 -0
- package/dist/chunk-VDRJHB4F.mjs +187 -0
- package/dist/chunk-VFJ7C5ZV.mjs +391 -0
- package/dist/chunk-VJTX4YUQ.mjs +31 -0
- package/dist/chunk-W6DVXJB3.mjs +21 -0
- package/dist/chunk-WAAJG22Y.mjs +90 -0
- package/dist/chunk-WBQAMGXK.mjs +0 -0
- package/dist/chunk-WQEDQHKX.mjs +0 -0
- package/dist/chunk-X7N3NQ6S.mjs +158 -0
- package/dist/chunk-XHQUSKIE.mjs +60 -0
- package/dist/chunk-YJLQTC7L.mjs +0 -0
- package/dist/chunk-YSA7EQBH.mjs +237 -0
- package/dist/chunk-YZYGFPNK.mjs +17 -0
- package/dist/colors/blue.d.ts +14 -0
- package/dist/colors/blue.js +41 -0
- package/dist/colors/blue.mjs +6 -0
- package/dist/colors/common.d.ts +103 -0
- package/dist/colors/common.js +155 -0
- package/dist/colors/common.mjs +14 -0
- package/dist/colors/cyan.d.ts +14 -0
- package/dist/colors/cyan.js +41 -0
- package/dist/colors/cyan.mjs +6 -0
- package/dist/colors/green.d.ts +14 -0
- package/dist/colors/green.js +41 -0
- package/dist/colors/green.mjs +6 -0
- package/dist/colors/index.d.ts +109 -0
- package/dist/colors/index.js +335 -0
- package/dist/colors/index.mjs +24 -0
- package/dist/colors/pink.d.ts +14 -0
- package/dist/colors/pink.js +41 -0
- package/dist/colors/pink.mjs +6 -0
- package/dist/colors/purple.d.ts +14 -0
- package/dist/colors/purple.js +41 -0
- package/dist/colors/purple.mjs +6 -0
- package/dist/colors/red.d.ts +14 -0
- package/dist/colors/red.js +41 -0
- package/dist/colors/red.mjs +6 -0
- package/dist/colors/semantic.d.ts +10 -0
- package/dist/colors/semantic.js +327 -0
- package/dist/colors/semantic.mjs +20 -0
- package/dist/colors/types.d.ts +39 -0
- package/dist/colors/types.js +18 -0
- package/dist/colors/types.mjs +1 -0
- package/dist/colors/yellow.d.ts +14 -0
- package/dist/colors/yellow.js +41 -0
- package/dist/colors/yellow.mjs +6 -0
- package/dist/colors/zinc.d.ts +14 -0
- package/dist/colors/zinc.js +41 -0
- package/dist/colors/zinc.mjs +6 -0
- package/dist/colors.d.ts +4 -0
- package/dist/colors.js +335 -0
- package/dist/colors.mjs +25 -0
- package/dist/components/accordion.d.ts +402 -0
- package/dist/components/accordion.js +154 -0
- package/dist/components/accordion.mjs +13 -0
- package/dist/components/autocomplete.d.ts +180 -0
- package/dist/components/autocomplete.js +107 -0
- package/dist/components/autocomplete.mjs +7 -0
- package/dist/components/avatar.d.ts +572 -0
- package/dist/components/avatar.js +320 -0
- package/dist/components/avatar.mjs +13 -0
- package/dist/components/badge.d.ts +484 -0
- package/dist/components/badge.js +501 -0
- package/dist/components/badge.mjs +11 -0
- package/dist/components/breadcrumbs.d.ts +816 -0
- package/dist/components/breadcrumbs.js +299 -0
- package/dist/components/breadcrumbs.mjs +13 -0
- package/dist/components/button.d.ts +393 -0
- package/dist/components/button.js +556 -0
- package/dist/components/button.mjs +13 -0
- package/dist/components/calendar.d.ts +495 -0
- package/dist/components/calendar.js +456 -0
- package/dist/components/calendar.mjs +11 -0
- package/dist/components/card.d.ts +550 -0
- package/dist/components/card.js +213 -0
- package/dist/components/card.mjs +11 -0
- package/dist/components/checkbox.d.ts +773 -0
- package/dist/components/checkbox.js +271 -0
- package/dist/components/checkbox.mjs +13 -0
- package/dist/components/chip.d.ts +737 -0
- package/dist/components/chip.js +611 -0
- package/dist/components/chip.mjs +11 -0
- package/dist/components/circular-progress.d.ts +430 -0
- package/dist/components/circular-progress.js +139 -0
- package/dist/components/circular-progress.mjs +7 -0
- package/dist/components/code.d.ts +165 -0
- package/dist/components/code.js +162 -0
- package/dist/components/code.mjs +11 -0
- package/dist/components/date-input.d.ts +815 -0
- package/dist/components/date-input.js +439 -0
- package/dist/components/date-input.mjs +7 -0
- package/dist/components/date-picker.d.ts +325 -0
- package/dist/components/date-picker.js +81 -0
- package/dist/components/date-picker.mjs +9 -0
- package/dist/components/divider.d.ts +52 -0
- package/dist/components/divider.js +70 -0
- package/dist/components/divider.mjs +7 -0
- package/dist/components/drip.d.ts +14 -0
- package/dist/components/drip.js +61 -0
- package/dist/components/drip.mjs +7 -0
- package/dist/components/dropdown.d.ts +417 -0
- package/dist/components/dropdown.js +424 -0
- package/dist/components/dropdown.mjs +17 -0
- package/dist/components/image.d.ts +355 -0
- package/dist/components/image.js +183 -0
- package/dist/components/image.mjs +7 -0
- package/dist/components/index.d.ts +41 -0
- package/dist/components/index.js +8804 -0
- package/dist/components/index.mjs +194 -0
- package/dist/components/input.d.ts +942 -0
- package/dist/components/input.js +893 -0
- package/dist/components/input.mjs +11 -0
- package/dist/components/kbd.d.ts +51 -0
- package/dist/components/kbd.js +82 -0
- package/dist/components/kbd.mjs +7 -0
- package/dist/components/link.d.ts +232 -0
- package/dist/components/link.js +164 -0
- package/dist/components/link.mjs +13 -0
- package/dist/components/listbox.d.ts +3 -0
- package/dist/components/listbox.js +531 -0
- package/dist/components/listbox.mjs +16 -0
- package/dist/components/menu.d.ts +512 -0
- package/dist/components/menu.js +531 -0
- package/dist/components/menu.mjs +15 -0
- package/dist/components/modal.d.ts +765 -0
- package/dist/components/modal.js +236 -0
- package/dist/components/modal.mjs +11 -0
- package/dist/components/navbar.d.ts +463 -0
- package/dist/components/navbar.js +260 -0
- package/dist/components/navbar.mjs +11 -0
- package/dist/components/pagination.d.ts +587 -0
- package/dist/components/pagination.js +532 -0
- package/dist/components/pagination.mjs +11 -0
- package/dist/components/popover.d.ts +715 -0
- package/dist/components/popover.js +303 -0
- package/dist/components/popover.mjs +11 -0
- package/dist/components/progress.d.ts +294 -0
- package/dist/components/progress.js +173 -0
- package/dist/components/progress.mjs +7 -0
- package/dist/components/radio.d.ts +708 -0
- package/dist/components/radio.js +220 -0
- package/dist/components/radio.mjs +13 -0
- package/dist/components/scroll-shadow.d.ts +82 -0
- package/dist/components/scroll-shadow.js +85 -0
- package/dist/components/scroll-shadow.mjs +7 -0
- package/dist/components/select.d.ts +901 -0
- package/dist/components/select.js +778 -0
- package/dist/components/select.mjs +11 -0
- package/dist/components/skeleton.d.ts +105 -0
- package/dist/components/skeleton.js +105 -0
- package/dist/components/skeleton.mjs +7 -0
- package/dist/components/slider.d.ts +1024 -0
- package/dist/components/slider.js +446 -0
- package/dist/components/slider.mjs +11 -0
- package/dist/components/snippet.d.ts +415 -0
- package/dist/components/snippet.js +426 -0
- package/dist/components/snippet.mjs +11 -0
- package/dist/components/spacer.d.ts +52 -0
- package/dist/components/spacer.js +70 -0
- package/dist/components/spacer.mjs +7 -0
- package/dist/components/spinner.d.ts +564 -0
- package/dist/components/spinner.js +171 -0
- package/dist/components/spinner.mjs +7 -0
- package/dist/components/table.d.ts +777 -0
- package/dist/components/table.js +286 -0
- package/dist/components/table.mjs +11 -0
- package/dist/components/tabs.d.ts +772 -0
- package/dist/components/tabs.js +522 -0
- package/dist/components/tabs.mjs +11 -0
- package/dist/components/toggle.d.ts +485 -0
- package/dist/components/toggle.js +228 -0
- package/dist/components/toggle.mjs +11 -0
- package/dist/components/user.d.ts +81 -0
- package/dist/components/user.js +78 -0
- package/dist/components/user.mjs +11 -0
- package/dist/default-layout.d.ts +8 -0
- package/dist/default-layout.js +75 -0
- package/dist/default-layout.mjs +10 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.js +9585 -0
- package/dist/index.mjs +252 -0
- package/dist/plugin.d.ts +12 -0
- package/dist/plugin.js +775 -0
- package/dist/plugin.mjs +28 -0
- package/dist/types.d.ts +138 -0
- package/dist/types.js +18 -0
- package/dist/types.mjs +1 -0
- package/dist/utilities/custom.d.ts +22 -0
- package/dist/utilities/custom.js +44 -0
- package/dist/utilities/custom.mjs +6 -0
- package/dist/utilities/index.d.ts +83 -0
- package/dist/utilities/index.js +128 -0
- package/dist/utilities/index.mjs +9 -0
- package/dist/utilities/scrollbar-hide.d.ts +24 -0
- package/dist/utilities/scrollbar-hide.js +43 -0
- package/dist/utilities/scrollbar-hide.mjs +6 -0
- package/dist/utilities/transition.d.ts +58 -0
- package/dist/utilities/transition.js +83 -0
- package/dist/utilities/transition.mjs +8 -0
- package/dist/utils/classes.d.ts +34 -0
- package/dist/utils/classes.js +91 -0
- package/dist/utils/classes.mjs +20 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +169 -0
- package/dist/utils/index.mjs +26 -0
- package/dist/utils/object.d.ts +12 -0
- package/dist/utils/object.js +73 -0
- package/dist/utils/object.mjs +10 -0
- package/dist/utils/theme.d.ts +9 -0
- package/dist/utils/theme.js +30 -0
- package/dist/utils/theme.mjs +6 -0
- package/dist/utils/tv.d.ts +5 -0
- package/dist/utils/tv.js +54 -0
- package/dist/utils/tv.mjs +6 -0
- package/dist/utils/types.d.ts +10 -0
- package/dist/utils/types.js +18 -0
- package/dist/utils/types.mjs +1 -0
- package/dist/utils/variants.d.ts +67 -0
- package/dist/utils/variants.js +101 -0
- package/dist/utils/variants.mjs +6 -0
- package/package.json +100 -0
- package/plugin.d.ts +1 -0
- package/plugin.js +1 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tv
|
|
3
|
+
} from "./chunk-GMMETTYU.mjs";
|
|
4
|
+
import {
|
|
5
|
+
dataFocusVisibleClasses
|
|
6
|
+
} from "./chunk-XHQUSKIE.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/link.ts
|
|
9
|
+
var link = tv({
|
|
10
|
+
base: [
|
|
11
|
+
"relative inline-flex items-center outline-none tap-highlight-transparent",
|
|
12
|
+
...dataFocusVisibleClasses
|
|
13
|
+
],
|
|
14
|
+
variants: {
|
|
15
|
+
size: {
|
|
16
|
+
sm: "text-small",
|
|
17
|
+
md: "text-medium",
|
|
18
|
+
lg: "text-large"
|
|
19
|
+
},
|
|
20
|
+
color: {
|
|
21
|
+
foreground: "text-foreground",
|
|
22
|
+
primary: "text-primary",
|
|
23
|
+
secondary: "text-secondary",
|
|
24
|
+
success: "text-success",
|
|
25
|
+
warning: "text-warning",
|
|
26
|
+
danger: "text-danger"
|
|
27
|
+
},
|
|
28
|
+
underline: {
|
|
29
|
+
none: "no-underline",
|
|
30
|
+
hover: "hover:underline",
|
|
31
|
+
always: "underline",
|
|
32
|
+
active: "active:underline",
|
|
33
|
+
focus: "focus:underline"
|
|
34
|
+
},
|
|
35
|
+
isBlock: {
|
|
36
|
+
true: [
|
|
37
|
+
"px-2",
|
|
38
|
+
"py-1",
|
|
39
|
+
"hover:after:opacity-100",
|
|
40
|
+
"after:content-['']",
|
|
41
|
+
"after:inset-0",
|
|
42
|
+
"after:opacity-0",
|
|
43
|
+
"after:w-full",
|
|
44
|
+
"after:h-full",
|
|
45
|
+
"after:rounded-xl",
|
|
46
|
+
"after:transition-background",
|
|
47
|
+
"after:absolute"
|
|
48
|
+
],
|
|
49
|
+
false: "hover:opacity-80 active:opacity-disabled transition-opacity"
|
|
50
|
+
},
|
|
51
|
+
isDisabled: {
|
|
52
|
+
true: "opacity-disabled cursor-default pointer-events-none"
|
|
53
|
+
},
|
|
54
|
+
disableAnimation: {
|
|
55
|
+
true: "after:transition-none transition-none"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
compoundVariants: [
|
|
59
|
+
{
|
|
60
|
+
isBlock: true,
|
|
61
|
+
color: "foreground",
|
|
62
|
+
class: "hover:after:bg-foreground/10"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
isBlock: true,
|
|
66
|
+
color: "primary",
|
|
67
|
+
class: "hover:after:bg-primary/20"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
isBlock: true,
|
|
71
|
+
color: "secondary",
|
|
72
|
+
class: "hover:after:bg-secondary/20"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
isBlock: true,
|
|
76
|
+
color: "success",
|
|
77
|
+
class: "hover:after:bg-success/20"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
isBlock: true,
|
|
81
|
+
color: "warning",
|
|
82
|
+
class: "hover:after:bg-warning/20"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
isBlock: true,
|
|
86
|
+
color: "danger",
|
|
87
|
+
class: "hover:after:bg-danger/20"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
underline: ["hover", "always", "active", "focus"],
|
|
91
|
+
class: "underline-offset-4"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
defaultVariants: {
|
|
95
|
+
color: "primary",
|
|
96
|
+
size: "md",
|
|
97
|
+
isBlock: false,
|
|
98
|
+
underline: "none",
|
|
99
|
+
isDisabled: false,
|
|
100
|
+
disableAnimation: false
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
var linkAnchorClasses = "flex mx-1 text-current self-center";
|
|
104
|
+
|
|
105
|
+
export {
|
|
106
|
+
link,
|
|
107
|
+
linkAnchorClasses
|
|
108
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/colors/yellow.ts
|
|
2
|
+
var yellow = {
|
|
3
|
+
50: "#fefce8",
|
|
4
|
+
100: "#fdedd3",
|
|
5
|
+
200: "#fbdba7",
|
|
6
|
+
300: "#f9c97c",
|
|
7
|
+
400: "#f7b750",
|
|
8
|
+
500: "#f5a524",
|
|
9
|
+
600: "#c4841d",
|
|
10
|
+
700: "#936316",
|
|
11
|
+
800: "#62420e",
|
|
12
|
+
900: "#312107"
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
yellow
|
|
17
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import {
|
|
2
|
+
colorVariants
|
|
3
|
+
} from "./chunk-2PIR7DFM.mjs";
|
|
4
|
+
import {
|
|
5
|
+
tv
|
|
6
|
+
} from "./chunk-GMMETTYU.mjs";
|
|
7
|
+
import {
|
|
8
|
+
dataFocusVisibleClasses
|
|
9
|
+
} from "./chunk-XHQUSKIE.mjs";
|
|
10
|
+
|
|
11
|
+
// src/components/popover.ts
|
|
12
|
+
var popover = tv({
|
|
13
|
+
slots: {
|
|
14
|
+
base: [
|
|
15
|
+
"z-0",
|
|
16
|
+
"relative",
|
|
17
|
+
"bg-transparent",
|
|
18
|
+
"before:content-['']",
|
|
19
|
+
"before:hidden",
|
|
20
|
+
"before:z-[-1]",
|
|
21
|
+
"before:absolute",
|
|
22
|
+
"before:rotate-45",
|
|
23
|
+
"before:w-2.5",
|
|
24
|
+
"before:h-2.5",
|
|
25
|
+
"before:rounded-sm",
|
|
26
|
+
"data-[arrow=true]:before:block",
|
|
27
|
+
"data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
28
|
+
"data-[placement=top]:before:left-1/2",
|
|
29
|
+
"data-[placement=top]:before:-translate-x-1/2",
|
|
30
|
+
"data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
31
|
+
"data-[placement=top-start]:before:left-3",
|
|
32
|
+
"data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
33
|
+
"data-[placement=top-end]:before:right-3",
|
|
34
|
+
"data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
35
|
+
"data-[placement=bottom]:before:left-1/2",
|
|
36
|
+
"data-[placement=bottom]:before:-translate-x-1/2",
|
|
37
|
+
"data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
38
|
+
"data-[placement=bottom-start]:before:left-3",
|
|
39
|
+
"data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
40
|
+
"data-[placement=bottom-end]:before:right-3",
|
|
41
|
+
"data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]",
|
|
42
|
+
"data-[placement=left]:before:top-1/2",
|
|
43
|
+
"data-[placement=left]:before:-translate-y-1/2",
|
|
44
|
+
"data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]",
|
|
45
|
+
"data-[placement=left-start]:before:top-1/4",
|
|
46
|
+
"data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]",
|
|
47
|
+
"data-[placement=left-end]:before:bottom-1/4",
|
|
48
|
+
"data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]",
|
|
49
|
+
"data-[placement=right]:before:top-1/2",
|
|
50
|
+
"data-[placement=right]:before:-translate-y-1/2",
|
|
51
|
+
"data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]",
|
|
52
|
+
"data-[placement=right-start]:before:top-1/4",
|
|
53
|
+
"data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]",
|
|
54
|
+
"data-[placement=right-end]:before:bottom-1/4",
|
|
55
|
+
...dataFocusVisibleClasses
|
|
56
|
+
],
|
|
57
|
+
content: [
|
|
58
|
+
"z-10",
|
|
59
|
+
"px-2.5",
|
|
60
|
+
"py-1",
|
|
61
|
+
"w-full",
|
|
62
|
+
"inline-flex",
|
|
63
|
+
"flex-col",
|
|
64
|
+
"items-center",
|
|
65
|
+
"justify-center",
|
|
66
|
+
"box-border",
|
|
67
|
+
"subpixel-antialiased",
|
|
68
|
+
"outline-none",
|
|
69
|
+
"box-border"
|
|
70
|
+
],
|
|
71
|
+
trigger: ["z-10"],
|
|
72
|
+
backdrop: ["hidden"],
|
|
73
|
+
arrow: []
|
|
74
|
+
},
|
|
75
|
+
variants: {
|
|
76
|
+
size: {
|
|
77
|
+
sm: { content: "text-tiny" },
|
|
78
|
+
md: { content: "text-small" },
|
|
79
|
+
lg: { content: "text-medium" }
|
|
80
|
+
},
|
|
81
|
+
color: {
|
|
82
|
+
default: {
|
|
83
|
+
base: "before:bg-content1 before:shadow-small",
|
|
84
|
+
content: "bg-content1"
|
|
85
|
+
},
|
|
86
|
+
foreground: {
|
|
87
|
+
base: "before:bg-foreground",
|
|
88
|
+
content: colorVariants.solid.foreground
|
|
89
|
+
},
|
|
90
|
+
primary: {
|
|
91
|
+
base: "before:bg-primary",
|
|
92
|
+
content: colorVariants.solid.primary
|
|
93
|
+
},
|
|
94
|
+
secondary: {
|
|
95
|
+
base: "before:bg-secondary",
|
|
96
|
+
content: colorVariants.solid.secondary
|
|
97
|
+
},
|
|
98
|
+
success: {
|
|
99
|
+
base: "before:bg-success",
|
|
100
|
+
content: colorVariants.solid.success
|
|
101
|
+
},
|
|
102
|
+
warning: {
|
|
103
|
+
base: "before:bg-warning",
|
|
104
|
+
content: colorVariants.solid.warning
|
|
105
|
+
},
|
|
106
|
+
danger: {
|
|
107
|
+
base: "before:bg-danger",
|
|
108
|
+
content: colorVariants.solid.danger
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
radius: {
|
|
112
|
+
none: { content: "rounded-none" },
|
|
113
|
+
sm: { content: "rounded-small" },
|
|
114
|
+
md: { content: "rounded-medium" },
|
|
115
|
+
lg: { content: "rounded-large" },
|
|
116
|
+
full: { content: "rounded-full" }
|
|
117
|
+
},
|
|
118
|
+
shadow: {
|
|
119
|
+
sm: {
|
|
120
|
+
content: "shadow-small"
|
|
121
|
+
},
|
|
122
|
+
md: {
|
|
123
|
+
content: "shadow-medium"
|
|
124
|
+
},
|
|
125
|
+
lg: {
|
|
126
|
+
content: "shadow-large"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
backdrop: {
|
|
130
|
+
transparent: {},
|
|
131
|
+
opaque: {
|
|
132
|
+
backdrop: "bg-overlay/50 backdrop-opacity-disabled"
|
|
133
|
+
},
|
|
134
|
+
blur: {
|
|
135
|
+
backdrop: "backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
triggerScaleOnOpen: {
|
|
139
|
+
true: {
|
|
140
|
+
trigger: ["aria-expanded:scale-[0.97]", "aria-expanded:opacity-70", "subpixel-antialiased"]
|
|
141
|
+
},
|
|
142
|
+
false: {}
|
|
143
|
+
},
|
|
144
|
+
disableAnimation: {
|
|
145
|
+
true: {
|
|
146
|
+
base: "animate-none"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
isTriggerDisabled: {
|
|
150
|
+
true: {
|
|
151
|
+
trigger: "opacity-disabled pointer-events-none"
|
|
152
|
+
},
|
|
153
|
+
false: {}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
defaultVariants: {
|
|
157
|
+
color: "default",
|
|
158
|
+
radius: "lg",
|
|
159
|
+
size: "md",
|
|
160
|
+
shadow: "md",
|
|
161
|
+
backdrop: "transparent",
|
|
162
|
+
disableAnimation: false,
|
|
163
|
+
triggerScaleOnOpen: true
|
|
164
|
+
},
|
|
165
|
+
compoundVariants: [
|
|
166
|
+
{
|
|
167
|
+
backdrop: ["opaque", "blur"],
|
|
168
|
+
class: {
|
|
169
|
+
backdrop: "block w-full h-full fixed inset-0 -z-30"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
export {
|
|
176
|
+
popover
|
|
177
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tv
|
|
3
|
+
} from "./chunk-GMMETTYU.mjs";
|
|
4
|
+
import {
|
|
5
|
+
dataFocusVisibleClasses
|
|
6
|
+
} from "./chunk-XHQUSKIE.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/accordion.ts
|
|
9
|
+
var accordion = tv({
|
|
10
|
+
base: "px-2",
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
light: "",
|
|
14
|
+
shadow: "px-4 shadow-medium rounded-medium bg-content1",
|
|
15
|
+
bordered: "px-4 border-medium border-divider rounded-medium",
|
|
16
|
+
splitted: "group is-splitted flex flex-col gap-2"
|
|
17
|
+
},
|
|
18
|
+
fullWidth: {
|
|
19
|
+
true: "w-full"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
defaultVariants: {
|
|
23
|
+
variant: "light",
|
|
24
|
+
fullWidth: true
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
var accordionItem = tv({
|
|
28
|
+
slots: {
|
|
29
|
+
base: [
|
|
30
|
+
"group-[.is-splitted]:px-4",
|
|
31
|
+
"group-[.is-splitted]:bg-content1",
|
|
32
|
+
"group-[.is-splitted]:shadow-medium",
|
|
33
|
+
"group-[.is-splitted]:rounded-medium"
|
|
34
|
+
],
|
|
35
|
+
heading: "",
|
|
36
|
+
trigger: [
|
|
37
|
+
"flex py-4 w-full h-full gap-3 outline-none items-center tap-highlight-transparent",
|
|
38
|
+
...dataFocusVisibleClasses
|
|
39
|
+
],
|
|
40
|
+
startContent: "flex-shrink-0",
|
|
41
|
+
indicator: "text-default-400",
|
|
42
|
+
titleWrapper: "flex-1 flex flex-col text-start",
|
|
43
|
+
title: "text-foreground text-large",
|
|
44
|
+
subtitle: "text-small text-foreground-500 font-normal",
|
|
45
|
+
content: "py-2"
|
|
46
|
+
},
|
|
47
|
+
variants: {
|
|
48
|
+
isCompact: {
|
|
49
|
+
true: {
|
|
50
|
+
trigger: "py-2",
|
|
51
|
+
title: "text-medium",
|
|
52
|
+
subtitle: "text-small",
|
|
53
|
+
indicator: "text-medium",
|
|
54
|
+
content: "py-1"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
isDisabled: {
|
|
58
|
+
true: {
|
|
59
|
+
base: "opacity-disabled pointer-events-none"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
hideIndicator: {
|
|
63
|
+
true: {
|
|
64
|
+
indicator: "hidden"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
disableAnimation: {
|
|
68
|
+
true: {
|
|
69
|
+
content: "hidden data-[open=true]:block"
|
|
70
|
+
},
|
|
71
|
+
false: {
|
|
72
|
+
indicator: "transition-transform",
|
|
73
|
+
trigger: "transition-opacity"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
disableIndicatorAnimation: {
|
|
77
|
+
true: {
|
|
78
|
+
indicator: "transition-none"
|
|
79
|
+
},
|
|
80
|
+
false: {
|
|
81
|
+
indicator: "rotate-0 data-[open=true]:-rotate-90 rtl:-rotate-180 rtl:data-[open=true]:-rotate-90"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
defaultVariants: {
|
|
86
|
+
size: "md",
|
|
87
|
+
radius: "lg",
|
|
88
|
+
isDisabled: false,
|
|
89
|
+
hideIndicator: false,
|
|
90
|
+
disableAnimation: false,
|
|
91
|
+
disableIndicatorAnimation: false
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export {
|
|
96
|
+
accordion,
|
|
97
|
+
accordionItem
|
|
98
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// src/utils/object.ts
|
|
2
|
+
import flatten from "flat";
|
|
3
|
+
function swapColorValues(colors) {
|
|
4
|
+
const swappedColors = {};
|
|
5
|
+
const keys = Object.keys(colors);
|
|
6
|
+
const length = keys.length;
|
|
7
|
+
for (let i = 0; i < length / 2; i++) {
|
|
8
|
+
const key1 = keys[i];
|
|
9
|
+
const key2 = keys[length - 1 - i];
|
|
10
|
+
swappedColors[key1] = colors[key2];
|
|
11
|
+
swappedColors[key2] = colors[key1];
|
|
12
|
+
}
|
|
13
|
+
if (length % 2 !== 0) {
|
|
14
|
+
const middleKey = keys[Math.floor(length / 2)];
|
|
15
|
+
swappedColors[middleKey] = colors[middleKey];
|
|
16
|
+
}
|
|
17
|
+
return swappedColors;
|
|
18
|
+
}
|
|
19
|
+
function removeDefaultKeys(obj) {
|
|
20
|
+
const newObj = {};
|
|
21
|
+
for (const key in obj) {
|
|
22
|
+
if (key.endsWith("-DEFAULT")) {
|
|
23
|
+
newObj[key.replace("-DEFAULT", "")] = obj[key];
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
newObj[key] = obj[key];
|
|
27
|
+
}
|
|
28
|
+
return newObj;
|
|
29
|
+
}
|
|
30
|
+
var flattenThemeObject = (obj) => removeDefaultKeys(
|
|
31
|
+
flatten(obj, {
|
|
32
|
+
safe: true,
|
|
33
|
+
delimiter: "-"
|
|
34
|
+
})
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
swapColorValues,
|
|
39
|
+
removeDefaultKeys,
|
|
40
|
+
flattenThemeObject
|
|
41
|
+
};
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tv
|
|
3
|
+
} from "./chunk-GMMETTYU.mjs";
|
|
4
|
+
import {
|
|
5
|
+
dataFocusVisibleClasses
|
|
6
|
+
} from "./chunk-XHQUSKIE.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/table.ts
|
|
9
|
+
var table = tv({
|
|
10
|
+
slots: {
|
|
11
|
+
base: "flex flex-col relative gap-4",
|
|
12
|
+
wrapper: [
|
|
13
|
+
"p-4",
|
|
14
|
+
"z-0",
|
|
15
|
+
"flex",
|
|
16
|
+
"flex-col",
|
|
17
|
+
"relative",
|
|
18
|
+
"justify-between",
|
|
19
|
+
"gap-4",
|
|
20
|
+
"shadow-small",
|
|
21
|
+
"bg-content1",
|
|
22
|
+
"overflow-auto"
|
|
23
|
+
],
|
|
24
|
+
table: "min-w-full h-auto",
|
|
25
|
+
thead: "[&>tr]:first:rounded-lg",
|
|
26
|
+
tbody: "",
|
|
27
|
+
tr: ["group", "outline-none", ...dataFocusVisibleClasses],
|
|
28
|
+
th: [
|
|
29
|
+
"group",
|
|
30
|
+
"px-3",
|
|
31
|
+
"h-10",
|
|
32
|
+
"text-left",
|
|
33
|
+
"rtl:text-right",
|
|
34
|
+
"align-middle",
|
|
35
|
+
"bg-default-100",
|
|
36
|
+
"whitespace-nowrap",
|
|
37
|
+
"text-foreground-500",
|
|
38
|
+
"text-tiny",
|
|
39
|
+
"font-semibold",
|
|
40
|
+
"first:rounded-l-lg",
|
|
41
|
+
"rtl:first:rounded-r-lg",
|
|
42
|
+
"rtl:first:rounded-l-[unset]",
|
|
43
|
+
"last:rounded-r-lg",
|
|
44
|
+
"rtl:last:rounded-l-lg",
|
|
45
|
+
"rtl:last:rounded-r-[unset]",
|
|
46
|
+
"outline-none",
|
|
47
|
+
"data-[sortable=true]:transition-colors",
|
|
48
|
+
"data-[sortable=true]:cursor-pointer",
|
|
49
|
+
"data-[hover=true]:text-foreground-400",
|
|
50
|
+
...dataFocusVisibleClasses
|
|
51
|
+
],
|
|
52
|
+
td: [
|
|
53
|
+
"py-2",
|
|
54
|
+
"px-3",
|
|
55
|
+
"relative",
|
|
56
|
+
"align-middle",
|
|
57
|
+
"whitespace-normal",
|
|
58
|
+
"text-small",
|
|
59
|
+
"font-normal",
|
|
60
|
+
"outline-none",
|
|
61
|
+
"[&>*]:z-1",
|
|
62
|
+
"[&>*]:relative",
|
|
63
|
+
...dataFocusVisibleClasses,
|
|
64
|
+
"before:content-['']",
|
|
65
|
+
"before:absolute",
|
|
66
|
+
"before:z-0",
|
|
67
|
+
"before:inset-0",
|
|
68
|
+
"before:opacity-0",
|
|
69
|
+
"data-[selected=true]:before:opacity-100",
|
|
70
|
+
"group-data-[disabled=true]:text-foreground-300",
|
|
71
|
+
"group-data-[disabled=true]:cursor-not-allowed"
|
|
72
|
+
],
|
|
73
|
+
tfoot: "",
|
|
74
|
+
sortIcon: [
|
|
75
|
+
"ml-2",
|
|
76
|
+
"mb-px",
|
|
77
|
+
"opacity-0",
|
|
78
|
+
"text-inherit",
|
|
79
|
+
"inline-block",
|
|
80
|
+
"transition-transform-opacity",
|
|
81
|
+
"data-[visible=true]:opacity-100",
|
|
82
|
+
"group-data-[hover=true]:opacity-100",
|
|
83
|
+
"data-[direction=ascending]:rotate-180"
|
|
84
|
+
],
|
|
85
|
+
emptyWrapper: "text-foreground-400 align-middle text-center h-40",
|
|
86
|
+
loadingWrapper: "absolute inset-0 flex items-center justify-center"
|
|
87
|
+
},
|
|
88
|
+
variants: {
|
|
89
|
+
color: {
|
|
90
|
+
default: {
|
|
91
|
+
td: "before:bg-default/40 data-[selected=true]:text-default-foreground"
|
|
92
|
+
},
|
|
93
|
+
primary: {
|
|
94
|
+
td: "before:bg-primary/20 data-[selected=true]:text-primary"
|
|
95
|
+
},
|
|
96
|
+
secondary: {
|
|
97
|
+
td: "before:bg-secondary/20 data-[selected=true]:text-secondary"
|
|
98
|
+
},
|
|
99
|
+
success: {
|
|
100
|
+
td: "before:bg-success/20 data-[selected=true]:text-success-600 dark:data-[selected=true]:text-success"
|
|
101
|
+
},
|
|
102
|
+
warning: {
|
|
103
|
+
td: "before:bg-warning/20 data-[selected=true]:text-warning-600 dark:data-[selected=true]:text-warning"
|
|
104
|
+
},
|
|
105
|
+
danger: {
|
|
106
|
+
td: "before:bg-danger/20 data-[selected=true]:text-danger dark:data-[selected=true]:text-danger-500"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
layout: {
|
|
110
|
+
auto: {
|
|
111
|
+
table: "table-auto"
|
|
112
|
+
},
|
|
113
|
+
fixed: {
|
|
114
|
+
table: "table-fixed"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
radius: {
|
|
118
|
+
none: {
|
|
119
|
+
wrapper: "rounded-none"
|
|
120
|
+
},
|
|
121
|
+
sm: {
|
|
122
|
+
wrapper: "rounded-small"
|
|
123
|
+
},
|
|
124
|
+
md: {
|
|
125
|
+
wrapper: "rounded-medium"
|
|
126
|
+
},
|
|
127
|
+
lg: {
|
|
128
|
+
wrapper: "rounded-large"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
shadow: {
|
|
132
|
+
none: {
|
|
133
|
+
wrapper: "shadow-none"
|
|
134
|
+
},
|
|
135
|
+
sm: {
|
|
136
|
+
wrapper: "shadow-small"
|
|
137
|
+
},
|
|
138
|
+
md: {
|
|
139
|
+
wrapper: "shadow-medium"
|
|
140
|
+
},
|
|
141
|
+
lg: {
|
|
142
|
+
wrapper: "shadow-large"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
hideHeader: {
|
|
146
|
+
true: {
|
|
147
|
+
thead: "hidden"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
isStriped: {
|
|
151
|
+
true: {
|
|
152
|
+
td: [
|
|
153
|
+
"group-data-[odd=true]:before:bg-default-100",
|
|
154
|
+
"group-data-[odd=true]:before:opacity-100",
|
|
155
|
+
"group-data-[odd=true]:before:-z-10"
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
isCompact: {
|
|
160
|
+
true: {
|
|
161
|
+
td: "py-1"
|
|
162
|
+
},
|
|
163
|
+
false: {}
|
|
164
|
+
},
|
|
165
|
+
isHeaderSticky: {
|
|
166
|
+
true: {
|
|
167
|
+
thead: "sticky top-0 z-20 [&>tr]:first:shadow-small"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
isSelectable: {
|
|
171
|
+
true: {
|
|
172
|
+
tr: "cursor-default",
|
|
173
|
+
td: [
|
|
174
|
+
"group-aria-[selected=false]:group-data-[hover=true]:before:bg-default-100",
|
|
175
|
+
"group-aria-[selected=false]:group-data-[hover=true]:before:opacity-70"
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
isMultiSelectable: {
|
|
180
|
+
true: {
|
|
181
|
+
td: [
|
|
182
|
+
"group-data-[first=true]:first:before:rounded-tl-lg",
|
|
183
|
+
"group-data-[first=true]:rtl:first:before:rounded-tr-lg",
|
|
184
|
+
"group-data-[first=true]:rtl:first:before:rounded-tl-[unset]",
|
|
185
|
+
"group-data-[first=true]:last:before:rounded-tr-lg",
|
|
186
|
+
"group-data-[first=true]:rtl:last:before:rounded-tl-lg",
|
|
187
|
+
"group-data-[first=true]:rtl:last:before:rounded-tr-[unset]",
|
|
188
|
+
"group-data-[middle=true]:before:rounded-none",
|
|
189
|
+
"group-data-[last=true]:first:before:rounded-bl-lg",
|
|
190
|
+
"group-data-[last=true]:rtl:first:before:rounded-br-lg",
|
|
191
|
+
"group-data-[last=true]:rtl:first:before:rounded-bl-[unset]",
|
|
192
|
+
"group-data-[last=true]:last:before:rounded-br-lg",
|
|
193
|
+
"group-data-[last=true]:rtl:last:before:rounded-bl-lg",
|
|
194
|
+
"group-data-[last=true]:rtl:last:before:rounded-br-[unset]"
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
false: {
|
|
198
|
+
td: [
|
|
199
|
+
"first:before:rounded-l-lg",
|
|
200
|
+
"rtl:first:before:rounded-r-lg",
|
|
201
|
+
"rtl:first:before:rounded-l-[unset]",
|
|
202
|
+
"last:before:rounded-r-lg",
|
|
203
|
+
"rtl:last:before:rounded-l-lg",
|
|
204
|
+
"rtl:last:before:rounded-r-[unset]"
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
fullWidth: {
|
|
209
|
+
true: {
|
|
210
|
+
base: "w-full",
|
|
211
|
+
wrapper: "w-full",
|
|
212
|
+
table: "w-full"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
defaultVariants: {
|
|
217
|
+
layout: "auto",
|
|
218
|
+
shadow: "sm",
|
|
219
|
+
radius: "lg",
|
|
220
|
+
color: "default",
|
|
221
|
+
isCompact: false,
|
|
222
|
+
hideHeader: false,
|
|
223
|
+
isStriped: false,
|
|
224
|
+
fullWidth: true,
|
|
225
|
+
disableAnimation: false
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
export {
|
|
230
|
+
table
|
|
231
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/colors/purple.ts
|
|
2
|
+
var purple = {
|
|
3
|
+
50: "#f2eafa",
|
|
4
|
+
100: "#e4d4f4",
|
|
5
|
+
200: "#c9a9e9",
|
|
6
|
+
300: "#ae7ede",
|
|
7
|
+
400: "#9353d3",
|
|
8
|
+
500: "#7828c8",
|
|
9
|
+
600: "#6020a0",
|
|
10
|
+
700: "#481878",
|
|
11
|
+
800: "#301050",
|
|
12
|
+
900: "#180828"
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
purple
|
|
17
|
+
};
|