@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,556 @@
|
|
|
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/button.ts
|
|
21
|
+
var button_exports = {};
|
|
22
|
+
__export(button_exports, {
|
|
23
|
+
button: () => button,
|
|
24
|
+
buttonGroup: () => buttonGroup
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(button_exports);
|
|
27
|
+
|
|
28
|
+
// src/utils/tv.ts
|
|
29
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
30
|
+
var COMMON_UNITS = ["small", "medium", "large"];
|
|
31
|
+
var tv = (options, config) => {
|
|
32
|
+
var _a, _b, _c;
|
|
33
|
+
return (0, import_tailwind_variants.tv)(options, {
|
|
34
|
+
...config,
|
|
35
|
+
twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
|
|
36
|
+
twMergeConfig: {
|
|
37
|
+
...config == null ? void 0 : config.twMergeConfig,
|
|
38
|
+
theme: {
|
|
39
|
+
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
|
|
40
|
+
opacity: ["disabled"],
|
|
41
|
+
spacing: ["divider"],
|
|
42
|
+
borderWidth: COMMON_UNITS,
|
|
43
|
+
borderRadius: COMMON_UNITS
|
|
44
|
+
},
|
|
45
|
+
classGroups: {
|
|
46
|
+
...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
|
|
47
|
+
shadow: [{ shadow: COMMON_UNITS }],
|
|
48
|
+
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
49
|
+
"bg-image": ["bg-stripe-gradient"]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// src/utils/classes.ts
|
|
56
|
+
var dataFocusVisibleClasses = [
|
|
57
|
+
"outline-none",
|
|
58
|
+
"data-[focus-visible=true]:z-10",
|
|
59
|
+
"data-[focus-visible=true]:outline-2",
|
|
60
|
+
"data-[focus-visible=true]:outline-focus",
|
|
61
|
+
"data-[focus-visible=true]:outline-offset-2"
|
|
62
|
+
];
|
|
63
|
+
var collapseAdjacentVariantBorders = {
|
|
64
|
+
default: ["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
65
|
+
primary: ["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
66
|
+
secondary: ["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
67
|
+
success: ["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
68
|
+
warning: ["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
69
|
+
danger: ["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
// src/utils/variants.ts
|
|
73
|
+
var solid = {
|
|
74
|
+
default: "bg-default text-default-foreground",
|
|
75
|
+
primary: "bg-primary text-primary-foreground",
|
|
76
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
77
|
+
success: "bg-success text-success-foreground",
|
|
78
|
+
warning: "bg-warning text-warning-foreground",
|
|
79
|
+
danger: "bg-danger text-danger-foreground",
|
|
80
|
+
foreground: "bg-foreground text-background"
|
|
81
|
+
};
|
|
82
|
+
var shadow = {
|
|
83
|
+
default: "shadow-lg shadow-default/50 bg-default text-default-foreground",
|
|
84
|
+
primary: "shadow-lg shadow-primary/40 bg-primary text-primary-foreground",
|
|
85
|
+
secondary: "shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",
|
|
86
|
+
success: "shadow-lg shadow-success/40 bg-success text-success-foreground",
|
|
87
|
+
warning: "shadow-lg shadow-warning/40 bg-warning text-warning-foreground",
|
|
88
|
+
danger: "shadow-lg shadow-danger/40 bg-danger text-danger-foreground",
|
|
89
|
+
foreground: "shadow-lg shadow-foreground/40 bg-foreground text-background"
|
|
90
|
+
};
|
|
91
|
+
var bordered = {
|
|
92
|
+
default: "bg-transparent border-default text-foreground",
|
|
93
|
+
primary: "bg-transparent border-primary text-primary",
|
|
94
|
+
secondary: "bg-transparent border-secondary text-secondary",
|
|
95
|
+
success: "bg-transparent border-success text-success",
|
|
96
|
+
warning: "bg-transparent border-warning text-warning",
|
|
97
|
+
danger: "bg-transparent border-danger text-danger",
|
|
98
|
+
foreground: "bg-transparent border-foreground text-foreground"
|
|
99
|
+
};
|
|
100
|
+
var flat = {
|
|
101
|
+
default: "bg-default/40 text-default-foreground",
|
|
102
|
+
primary: "bg-primary/20 text-primary",
|
|
103
|
+
secondary: "bg-secondary/20 text-secondary",
|
|
104
|
+
success: "bg-success/20 text-success-600 dark:text-success",
|
|
105
|
+
warning: "bg-warning/20 text-warning-600 dark:text-warning",
|
|
106
|
+
danger: "bg-danger/20 text-danger dark:text-danger-500",
|
|
107
|
+
foreground: "bg-foreground/10 text-foreground"
|
|
108
|
+
};
|
|
109
|
+
var faded = {
|
|
110
|
+
default: "border-default bg-default-100 text-default-foreground",
|
|
111
|
+
primary: "border-default bg-default-100 text-primary",
|
|
112
|
+
secondary: "border-default bg-default-100 text-secondary",
|
|
113
|
+
success: "border-default bg-default-100 text-success",
|
|
114
|
+
warning: "border-default bg-default-100 text-warning",
|
|
115
|
+
danger: "border-default bg-default-100 text-danger",
|
|
116
|
+
foreground: "border-default bg-default-100 text-foreground"
|
|
117
|
+
};
|
|
118
|
+
var light = {
|
|
119
|
+
default: "bg-transparent text-default-foreground",
|
|
120
|
+
primary: "bg-transparent text-primary",
|
|
121
|
+
secondary: "bg-transparent text-secondary",
|
|
122
|
+
success: "bg-transparent text-success",
|
|
123
|
+
warning: "bg-transparent text-warning",
|
|
124
|
+
danger: "bg-transparent text-danger",
|
|
125
|
+
foreground: "bg-transparent text-foreground"
|
|
126
|
+
};
|
|
127
|
+
var ghost = {
|
|
128
|
+
default: "border-default text-default-foreground hover:!bg-default",
|
|
129
|
+
primary: "border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",
|
|
130
|
+
secondary: "border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",
|
|
131
|
+
success: "border-success text-success hover:!text-success-foreground hover:!bg-success",
|
|
132
|
+
warning: "border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",
|
|
133
|
+
danger: "border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",
|
|
134
|
+
foreground: "border-foreground text-foreground hover:!bg-foreground"
|
|
135
|
+
};
|
|
136
|
+
var colorVariants = {
|
|
137
|
+
solid,
|
|
138
|
+
shadow,
|
|
139
|
+
bordered,
|
|
140
|
+
flat,
|
|
141
|
+
faded,
|
|
142
|
+
light,
|
|
143
|
+
ghost
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
// src/components/button.ts
|
|
147
|
+
var button = tv({
|
|
148
|
+
base: [
|
|
149
|
+
"z-0",
|
|
150
|
+
"group",
|
|
151
|
+
"relative",
|
|
152
|
+
"inline-flex",
|
|
153
|
+
"items-center",
|
|
154
|
+
"justify-center",
|
|
155
|
+
"box-border",
|
|
156
|
+
"appearance-none",
|
|
157
|
+
"outline-none",
|
|
158
|
+
"select-none",
|
|
159
|
+
"whitespace-nowrap",
|
|
160
|
+
"min-w-max",
|
|
161
|
+
"font-normal",
|
|
162
|
+
"subpixel-antialiased",
|
|
163
|
+
"overflow-hidden",
|
|
164
|
+
"tap-highlight-transparent",
|
|
165
|
+
...dataFocusVisibleClasses
|
|
166
|
+
],
|
|
167
|
+
variants: {
|
|
168
|
+
variant: {
|
|
169
|
+
solid: "",
|
|
170
|
+
bordered: "border-medium bg-transparent",
|
|
171
|
+
light: "bg-transparent",
|
|
172
|
+
flat: "",
|
|
173
|
+
faded: "border-medium",
|
|
174
|
+
shadow: "",
|
|
175
|
+
ghost: "border-medium bg-transparent"
|
|
176
|
+
},
|
|
177
|
+
size: {
|
|
178
|
+
sm: "px-3 min-w-16 h-8 text-tiny gap-2 rounded-small",
|
|
179
|
+
md: "px-4 min-w-20 h-10 text-small gap-2 rounded-medium",
|
|
180
|
+
lg: "px-6 min-w-24 h-12 text-medium gap-3 rounded-large"
|
|
181
|
+
},
|
|
182
|
+
color: {
|
|
183
|
+
default: "",
|
|
184
|
+
primary: "",
|
|
185
|
+
secondary: "",
|
|
186
|
+
success: "",
|
|
187
|
+
warning: "",
|
|
188
|
+
danger: ""
|
|
189
|
+
},
|
|
190
|
+
radius: {
|
|
191
|
+
none: "rounded-none",
|
|
192
|
+
sm: "rounded-small",
|
|
193
|
+
md: "rounded-medium",
|
|
194
|
+
lg: "rounded-large",
|
|
195
|
+
full: "rounded-full"
|
|
196
|
+
},
|
|
197
|
+
fullWidth: {
|
|
198
|
+
true: "w-full"
|
|
199
|
+
},
|
|
200
|
+
isDisabled: {
|
|
201
|
+
true: "opacity-disabled pointer-events-none"
|
|
202
|
+
},
|
|
203
|
+
isInGroup: {
|
|
204
|
+
true: "[&:not(:first-child):not(:last-child)]:rounded-none"
|
|
205
|
+
},
|
|
206
|
+
isIconOnly: {
|
|
207
|
+
true: "px-0 !gap-0",
|
|
208
|
+
false: "[&>svg]:max-w-[theme(spacing.8)]"
|
|
209
|
+
},
|
|
210
|
+
disableAnimation: {
|
|
211
|
+
true: "!transition-none",
|
|
212
|
+
false: "data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
defaultVariants: {
|
|
216
|
+
size: "md",
|
|
217
|
+
variant: "solid",
|
|
218
|
+
color: "default",
|
|
219
|
+
fullWidth: false,
|
|
220
|
+
isDisabled: false,
|
|
221
|
+
isInGroup: false,
|
|
222
|
+
disableAnimation: false
|
|
223
|
+
},
|
|
224
|
+
compoundVariants: [
|
|
225
|
+
{
|
|
226
|
+
variant: "solid",
|
|
227
|
+
color: "default",
|
|
228
|
+
class: colorVariants.solid.default
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
variant: "solid",
|
|
232
|
+
color: "primary",
|
|
233
|
+
class: colorVariants.solid.primary
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
variant: "solid",
|
|
237
|
+
color: "secondary",
|
|
238
|
+
class: colorVariants.solid.secondary
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
variant: "solid",
|
|
242
|
+
color: "success",
|
|
243
|
+
class: colorVariants.solid.success
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
variant: "solid",
|
|
247
|
+
color: "warning",
|
|
248
|
+
class: colorVariants.solid.warning
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
variant: "solid",
|
|
252
|
+
color: "danger",
|
|
253
|
+
class: colorVariants.solid.danger
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
variant: "shadow",
|
|
257
|
+
color: "default",
|
|
258
|
+
class: colorVariants.shadow.default
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
variant: "shadow",
|
|
262
|
+
color: "primary",
|
|
263
|
+
class: colorVariants.shadow.primary
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
variant: "shadow",
|
|
267
|
+
color: "secondary",
|
|
268
|
+
class: colorVariants.shadow.secondary
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
variant: "shadow",
|
|
272
|
+
color: "success",
|
|
273
|
+
class: colorVariants.shadow.success
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
variant: "shadow",
|
|
277
|
+
color: "warning",
|
|
278
|
+
class: colorVariants.shadow.warning
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
variant: "shadow",
|
|
282
|
+
color: "danger",
|
|
283
|
+
class: colorVariants.shadow.danger
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
variant: "bordered",
|
|
287
|
+
color: "default",
|
|
288
|
+
class: colorVariants.bordered.default
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
variant: "bordered",
|
|
292
|
+
color: "primary",
|
|
293
|
+
class: colorVariants.bordered.primary
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
variant: "bordered",
|
|
297
|
+
color: "secondary",
|
|
298
|
+
class: colorVariants.bordered.secondary
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
variant: "bordered",
|
|
302
|
+
color: "success",
|
|
303
|
+
class: colorVariants.bordered.success
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
variant: "bordered",
|
|
307
|
+
color: "warning",
|
|
308
|
+
class: colorVariants.bordered.warning
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
variant: "bordered",
|
|
312
|
+
color: "danger",
|
|
313
|
+
class: colorVariants.bordered.danger
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
variant: "flat",
|
|
317
|
+
color: "default",
|
|
318
|
+
class: colorVariants.flat.default
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
variant: "flat",
|
|
322
|
+
color: "primary",
|
|
323
|
+
class: colorVariants.flat.primary
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
variant: "flat",
|
|
327
|
+
color: "secondary",
|
|
328
|
+
class: colorVariants.flat.secondary
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
variant: "flat",
|
|
332
|
+
color: "success",
|
|
333
|
+
class: colorVariants.flat.success
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
variant: "flat",
|
|
337
|
+
color: "warning",
|
|
338
|
+
class: colorVariants.flat.warning
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
variant: "flat",
|
|
342
|
+
color: "danger",
|
|
343
|
+
class: colorVariants.flat.danger
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
variant: "faded",
|
|
347
|
+
color: "default",
|
|
348
|
+
class: colorVariants.faded.default
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
variant: "faded",
|
|
352
|
+
color: "primary",
|
|
353
|
+
class: colorVariants.faded.primary
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
variant: "faded",
|
|
357
|
+
color: "secondary",
|
|
358
|
+
class: colorVariants.faded.secondary
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
variant: "faded",
|
|
362
|
+
color: "success",
|
|
363
|
+
class: colorVariants.faded.success
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
variant: "faded",
|
|
367
|
+
color: "warning",
|
|
368
|
+
class: colorVariants.faded.warning
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
variant: "faded",
|
|
372
|
+
color: "danger",
|
|
373
|
+
class: colorVariants.faded.danger
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
variant: "light",
|
|
377
|
+
color: "default",
|
|
378
|
+
class: [colorVariants.light.default, "data-[hover=true]:bg-default/40"]
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
variant: "light",
|
|
382
|
+
color: "primary",
|
|
383
|
+
class: [colorVariants.light.primary, "data-[hover=true]:bg-primary/20"]
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
variant: "light",
|
|
387
|
+
color: "secondary",
|
|
388
|
+
class: [colorVariants.light.secondary, "data-[hover=true]:bg-secondary/20"]
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
variant: "light",
|
|
392
|
+
color: "success",
|
|
393
|
+
class: [colorVariants.light.success, "data-[hover=true]:bg-success/20"]
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
variant: "light",
|
|
397
|
+
color: "warning",
|
|
398
|
+
class: [colorVariants.light.warning, "data-[hover=true]:bg-warning/20"]
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
variant: "light",
|
|
402
|
+
color: "danger",
|
|
403
|
+
class: [colorVariants.light.danger, "data-[hover=true]:bg-danger/20"]
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
variant: "ghost",
|
|
407
|
+
color: "default",
|
|
408
|
+
class: colorVariants.ghost.default
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
variant: "ghost",
|
|
412
|
+
color: "primary",
|
|
413
|
+
class: colorVariants.ghost.primary
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
variant: "ghost",
|
|
417
|
+
color: "secondary",
|
|
418
|
+
class: colorVariants.ghost.secondary
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
variant: "ghost",
|
|
422
|
+
color: "success",
|
|
423
|
+
class: colorVariants.ghost.success
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
variant: "ghost",
|
|
427
|
+
color: "warning",
|
|
428
|
+
class: colorVariants.ghost.warning
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
variant: "ghost",
|
|
432
|
+
color: "danger",
|
|
433
|
+
class: colorVariants.ghost.danger
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
isInGroup: true,
|
|
437
|
+
class: "rounded-none first:rounded-s-medium last:rounded-e-medium"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
isInGroup: true,
|
|
441
|
+
size: "sm",
|
|
442
|
+
class: "rounded-none first:rounded-s-small last:rounded-e-small"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
isInGroup: true,
|
|
446
|
+
size: "md",
|
|
447
|
+
class: "rounded-none first:rounded-s-medium last:rounded-e-medium"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
isInGroup: true,
|
|
451
|
+
size: "lg",
|
|
452
|
+
class: "rounded-none first:rounded-s-large last:rounded-e-large"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
isInGroup: true,
|
|
456
|
+
isRounded: true,
|
|
457
|
+
class: "rounded-none first:rounded-s-full last:rounded-e-full"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
isInGroup: true,
|
|
461
|
+
radius: "none",
|
|
462
|
+
class: "rounded-none first:rounded-s-none last:rounded-e-none"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
isInGroup: true,
|
|
466
|
+
radius: "sm",
|
|
467
|
+
class: "rounded-none first:rounded-s-small last:rounded-e-small"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
isInGroup: true,
|
|
471
|
+
radius: "md",
|
|
472
|
+
class: "rounded-none first:rounded-s-medium last:rounded-e-medium"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
isInGroup: true,
|
|
476
|
+
radius: "lg",
|
|
477
|
+
class: "rounded-none first:rounded-s-large last:rounded-e-large"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
isInGroup: true,
|
|
481
|
+
radius: "full",
|
|
482
|
+
class: "rounded-none first:rounded-s-full last:rounded-e-full"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
isInGroup: true,
|
|
486
|
+
variant: ["ghost", "bordered"],
|
|
487
|
+
color: "default",
|
|
488
|
+
className: collapseAdjacentVariantBorders.default
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
isInGroup: true,
|
|
492
|
+
variant: ["ghost", "bordered"],
|
|
493
|
+
color: "primary",
|
|
494
|
+
className: collapseAdjacentVariantBorders.primary
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
isInGroup: true,
|
|
498
|
+
variant: ["ghost", "bordered"],
|
|
499
|
+
color: "secondary",
|
|
500
|
+
className: collapseAdjacentVariantBorders.secondary
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
isInGroup: true,
|
|
504
|
+
variant: ["ghost", "bordered"],
|
|
505
|
+
color: "success",
|
|
506
|
+
className: collapseAdjacentVariantBorders.success
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
isInGroup: true,
|
|
510
|
+
variant: ["ghost", "bordered"],
|
|
511
|
+
color: "warning",
|
|
512
|
+
className: collapseAdjacentVariantBorders.warning
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
isInGroup: true,
|
|
516
|
+
variant: ["ghost", "bordered"],
|
|
517
|
+
color: "danger",
|
|
518
|
+
className: collapseAdjacentVariantBorders.danger
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
isIconOnly: true,
|
|
522
|
+
size: "sm",
|
|
523
|
+
class: "min-w-8 w-8 h-8"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
isIconOnly: true,
|
|
527
|
+
size: "md",
|
|
528
|
+
class: "min-w-10 w-10 h-10"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
isIconOnly: true,
|
|
532
|
+
size: "lg",
|
|
533
|
+
class: "min-w-12 w-12 h-12"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
variant: ["solid", "faded", "flat", "bordered", "shadow"],
|
|
537
|
+
class: "data-[hover=true]:opacity-hover"
|
|
538
|
+
}
|
|
539
|
+
]
|
|
540
|
+
});
|
|
541
|
+
var buttonGroup = tv({
|
|
542
|
+
base: "inline-flex items-center justify-center h-auto",
|
|
543
|
+
variants: {
|
|
544
|
+
fullWidth: {
|
|
545
|
+
true: "w-full"
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
defaultVariants: {
|
|
549
|
+
fullWidth: false
|
|
550
|
+
}
|
|
551
|
+
});
|
|
552
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
553
|
+
0 && (module.exports = {
|
|
554
|
+
button,
|
|
555
|
+
buttonGroup
|
|
556
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
button,
|
|
3
|
+
buttonGroup
|
|
4
|
+
} from "../chunk-I6ESTKKY.mjs";
|
|
5
|
+
import "../chunk-CMYR6AOY.mjs";
|
|
6
|
+
import "../chunk-K7LK7NCE.mjs";
|
|
7
|
+
import "../chunk-2PIR7DFM.mjs";
|
|
8
|
+
import "../chunk-GMMETTYU.mjs";
|
|
9
|
+
import "../chunk-XHQUSKIE.mjs";
|
|
10
|
+
export {
|
|
11
|
+
button,
|
|
12
|
+
buttonGroup
|
|
13
|
+
};
|