@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,320 @@
|
|
|
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/avatar.ts
|
|
21
|
+
var avatar_exports = {};
|
|
22
|
+
__export(avatar_exports, {
|
|
23
|
+
avatar: () => avatar,
|
|
24
|
+
avatarGroup: () => avatarGroup
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(avatar_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 translateCenterClasses = [
|
|
64
|
+
"absolute",
|
|
65
|
+
"top-1/2",
|
|
66
|
+
"left-1/2",
|
|
67
|
+
"-translate-x-1/2",
|
|
68
|
+
"-translate-y-1/2"
|
|
69
|
+
];
|
|
70
|
+
|
|
71
|
+
// src/utils/variants.ts
|
|
72
|
+
var solid = {
|
|
73
|
+
default: "bg-default text-default-foreground",
|
|
74
|
+
primary: "bg-primary text-primary-foreground",
|
|
75
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
76
|
+
success: "bg-success text-success-foreground",
|
|
77
|
+
warning: "bg-warning text-warning-foreground",
|
|
78
|
+
danger: "bg-danger text-danger-foreground",
|
|
79
|
+
foreground: "bg-foreground text-background"
|
|
80
|
+
};
|
|
81
|
+
var shadow = {
|
|
82
|
+
default: "shadow-lg shadow-default/50 bg-default text-default-foreground",
|
|
83
|
+
primary: "shadow-lg shadow-primary/40 bg-primary text-primary-foreground",
|
|
84
|
+
secondary: "shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",
|
|
85
|
+
success: "shadow-lg shadow-success/40 bg-success text-success-foreground",
|
|
86
|
+
warning: "shadow-lg shadow-warning/40 bg-warning text-warning-foreground",
|
|
87
|
+
danger: "shadow-lg shadow-danger/40 bg-danger text-danger-foreground",
|
|
88
|
+
foreground: "shadow-lg shadow-foreground/40 bg-foreground text-background"
|
|
89
|
+
};
|
|
90
|
+
var bordered = {
|
|
91
|
+
default: "bg-transparent border-default text-foreground",
|
|
92
|
+
primary: "bg-transparent border-primary text-primary",
|
|
93
|
+
secondary: "bg-transparent border-secondary text-secondary",
|
|
94
|
+
success: "bg-transparent border-success text-success",
|
|
95
|
+
warning: "bg-transparent border-warning text-warning",
|
|
96
|
+
danger: "bg-transparent border-danger text-danger",
|
|
97
|
+
foreground: "bg-transparent border-foreground text-foreground"
|
|
98
|
+
};
|
|
99
|
+
var flat = {
|
|
100
|
+
default: "bg-default/40 text-default-foreground",
|
|
101
|
+
primary: "bg-primary/20 text-primary",
|
|
102
|
+
secondary: "bg-secondary/20 text-secondary",
|
|
103
|
+
success: "bg-success/20 text-success-600 dark:text-success",
|
|
104
|
+
warning: "bg-warning/20 text-warning-600 dark:text-warning",
|
|
105
|
+
danger: "bg-danger/20 text-danger dark:text-danger-500",
|
|
106
|
+
foreground: "bg-foreground/10 text-foreground"
|
|
107
|
+
};
|
|
108
|
+
var faded = {
|
|
109
|
+
default: "border-default bg-default-100 text-default-foreground",
|
|
110
|
+
primary: "border-default bg-default-100 text-primary",
|
|
111
|
+
secondary: "border-default bg-default-100 text-secondary",
|
|
112
|
+
success: "border-default bg-default-100 text-success",
|
|
113
|
+
warning: "border-default bg-default-100 text-warning",
|
|
114
|
+
danger: "border-default bg-default-100 text-danger",
|
|
115
|
+
foreground: "border-default bg-default-100 text-foreground"
|
|
116
|
+
};
|
|
117
|
+
var light = {
|
|
118
|
+
default: "bg-transparent text-default-foreground",
|
|
119
|
+
primary: "bg-transparent text-primary",
|
|
120
|
+
secondary: "bg-transparent text-secondary",
|
|
121
|
+
success: "bg-transparent text-success",
|
|
122
|
+
warning: "bg-transparent text-warning",
|
|
123
|
+
danger: "bg-transparent text-danger",
|
|
124
|
+
foreground: "bg-transparent text-foreground"
|
|
125
|
+
};
|
|
126
|
+
var ghost = {
|
|
127
|
+
default: "border-default text-default-foreground hover:!bg-default",
|
|
128
|
+
primary: "border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",
|
|
129
|
+
secondary: "border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",
|
|
130
|
+
success: "border-success text-success hover:!text-success-foreground hover:!bg-success",
|
|
131
|
+
warning: "border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",
|
|
132
|
+
danger: "border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",
|
|
133
|
+
foreground: "border-foreground text-foreground hover:!bg-foreground"
|
|
134
|
+
};
|
|
135
|
+
var colorVariants = {
|
|
136
|
+
solid,
|
|
137
|
+
shadow,
|
|
138
|
+
bordered,
|
|
139
|
+
flat,
|
|
140
|
+
faded,
|
|
141
|
+
light,
|
|
142
|
+
ghost
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
// src/components/avatar.ts
|
|
146
|
+
var avatar = tv({
|
|
147
|
+
slots: {
|
|
148
|
+
base: [
|
|
149
|
+
"flex",
|
|
150
|
+
"relative",
|
|
151
|
+
"justify-center",
|
|
152
|
+
"items-center",
|
|
153
|
+
"box-border",
|
|
154
|
+
"overflow-hidden",
|
|
155
|
+
"align-middle",
|
|
156
|
+
"text-white",
|
|
157
|
+
"z-0",
|
|
158
|
+
...dataFocusVisibleClasses
|
|
159
|
+
],
|
|
160
|
+
img: [
|
|
161
|
+
"flex",
|
|
162
|
+
"object-cover",
|
|
163
|
+
"w-full",
|
|
164
|
+
"h-full",
|
|
165
|
+
"transition-opacity",
|
|
166
|
+
"!duration-500",
|
|
167
|
+
"opacity-0",
|
|
168
|
+
"data-[loaded=true]:opacity-100"
|
|
169
|
+
],
|
|
170
|
+
fallback: [...translateCenterClasses, "flex", "items-center", "justify-center"],
|
|
171
|
+
name: [...translateCenterClasses, "font-normal", "text-center", "text-inherit"],
|
|
172
|
+
icon: [
|
|
173
|
+
...translateCenterClasses,
|
|
174
|
+
"flex",
|
|
175
|
+
"items-center",
|
|
176
|
+
"justify-center",
|
|
177
|
+
"text-inherit",
|
|
178
|
+
"w-full",
|
|
179
|
+
"h-full"
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
variants: {
|
|
183
|
+
size: {
|
|
184
|
+
sm: {
|
|
185
|
+
base: "w-8 h-8 text-tiny"
|
|
186
|
+
},
|
|
187
|
+
md: {
|
|
188
|
+
base: "w-10 h-10 text-tiny"
|
|
189
|
+
},
|
|
190
|
+
lg: {
|
|
191
|
+
base: "w-14 h-14 text-small"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
color: {
|
|
195
|
+
default: {
|
|
196
|
+
base: colorVariants.solid.default
|
|
197
|
+
},
|
|
198
|
+
primary: {
|
|
199
|
+
base: colorVariants.solid.primary
|
|
200
|
+
},
|
|
201
|
+
secondary: {
|
|
202
|
+
base: colorVariants.solid.secondary
|
|
203
|
+
},
|
|
204
|
+
success: {
|
|
205
|
+
base: colorVariants.solid.success
|
|
206
|
+
},
|
|
207
|
+
warning: {
|
|
208
|
+
base: colorVariants.solid.warning
|
|
209
|
+
},
|
|
210
|
+
danger: {
|
|
211
|
+
base: colorVariants.solid.danger
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
radius: {
|
|
215
|
+
none: {
|
|
216
|
+
base: "rounded-none"
|
|
217
|
+
},
|
|
218
|
+
sm: {
|
|
219
|
+
base: "rounded-small"
|
|
220
|
+
},
|
|
221
|
+
md: {
|
|
222
|
+
base: "rounded-medium"
|
|
223
|
+
},
|
|
224
|
+
lg: {
|
|
225
|
+
base: "rounded-large"
|
|
226
|
+
},
|
|
227
|
+
full: {
|
|
228
|
+
base: "rounded-full"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
isBordered: {
|
|
232
|
+
true: {
|
|
233
|
+
base: "ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
isDisabled: {
|
|
237
|
+
true: {
|
|
238
|
+
base: "opacity-disabled"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
isInGroup: {
|
|
242
|
+
true: {
|
|
243
|
+
base: [
|
|
244
|
+
"-ms-2 data-[hover=true]:-translate-x-3 rtl:data-[hover=true]:translate-x-3 transition-transform",
|
|
245
|
+
"data-[focus-visible=true]:-translate-x-3 rtl:data-[focus-visible=true]:translate-x-3"
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
isInGridGroup: {
|
|
250
|
+
true: {
|
|
251
|
+
base: "m-0 data-[hover=true]:translate-x-0"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
defaultVariants: {
|
|
256
|
+
size: "md",
|
|
257
|
+
color: "default",
|
|
258
|
+
radius: "full"
|
|
259
|
+
},
|
|
260
|
+
compoundVariants: [
|
|
261
|
+
{
|
|
262
|
+
color: "default",
|
|
263
|
+
isBordered: true,
|
|
264
|
+
class: {
|
|
265
|
+
base: "ring-default"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
color: "primary",
|
|
270
|
+
isBordered: true,
|
|
271
|
+
class: {
|
|
272
|
+
base: "ring-primary"
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
color: "secondary",
|
|
277
|
+
isBordered: true,
|
|
278
|
+
class: {
|
|
279
|
+
base: "ring-secondary"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
color: "success",
|
|
284
|
+
isBordered: true,
|
|
285
|
+
class: {
|
|
286
|
+
base: "ring-success"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
color: "warning",
|
|
291
|
+
isBordered: true,
|
|
292
|
+
class: {
|
|
293
|
+
base: "ring-warning"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
color: "danger",
|
|
298
|
+
isBordered: true,
|
|
299
|
+
class: {
|
|
300
|
+
base: "ring-danger"
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
});
|
|
305
|
+
var avatarGroup = tv({
|
|
306
|
+
slots: {
|
|
307
|
+
base: "flex items-center justify-center h-auto w-max-content",
|
|
308
|
+
count: "hover:-translate-x-0"
|
|
309
|
+
},
|
|
310
|
+
variants: {
|
|
311
|
+
isGrid: {
|
|
312
|
+
true: "inline-grid grid-cols-4 gap-3"
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
317
|
+
0 && (module.exports = {
|
|
318
|
+
avatar,
|
|
319
|
+
avatarGroup
|
|
320
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
avatar,
|
|
3
|
+
avatarGroup
|
|
4
|
+
} from "../chunk-VDRJHB4F.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
|
+
avatar,
|
|
12
|
+
avatarGroup
|
|
13
|
+
};
|