@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,83 @@
|
|
|
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/utilities/transition.ts
|
|
21
|
+
var transition_exports = {};
|
|
22
|
+
__export(transition_exports, {
|
|
23
|
+
DEFAULT_TRANSITION_DURATION: () => DEFAULT_TRANSITION_DURATION,
|
|
24
|
+
default: () => transition_default
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(transition_exports);
|
|
27
|
+
var DEFAULT_TRANSITION_DURATION = "250ms";
|
|
28
|
+
var transition_default = {
|
|
29
|
+
".transition-background": {
|
|
30
|
+
"transition-property": "background",
|
|
31
|
+
"transition-timing-function": "ease",
|
|
32
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
33
|
+
},
|
|
34
|
+
".transition-colors-opacity": {
|
|
35
|
+
"transition-property": "color, background-color, border-color, text-decoration-color, fill, stroke, opacity",
|
|
36
|
+
"transition-timing-function": "ease",
|
|
37
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
38
|
+
},
|
|
39
|
+
".transition-width": {
|
|
40
|
+
"transition-property": "width",
|
|
41
|
+
"transition-timing-function": "ease",
|
|
42
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
43
|
+
},
|
|
44
|
+
".transition-height": {
|
|
45
|
+
"transition-property": "height",
|
|
46
|
+
"transition-timing-function": "ease",
|
|
47
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
48
|
+
},
|
|
49
|
+
".transition-size": {
|
|
50
|
+
"transition-property": "width, height",
|
|
51
|
+
"transition-timing-function": "ease",
|
|
52
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
53
|
+
},
|
|
54
|
+
".transition-left": {
|
|
55
|
+
"transition-property": "left",
|
|
56
|
+
"transition-timing-function": "ease",
|
|
57
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
58
|
+
},
|
|
59
|
+
".transition-transform-opacity": {
|
|
60
|
+
"transition-property": "transform, opacity",
|
|
61
|
+
"transition-timing-function": "ease",
|
|
62
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
63
|
+
},
|
|
64
|
+
".transition-transform-background": {
|
|
65
|
+
"transition-property": "transform, background",
|
|
66
|
+
"transition-timing-function": "ease",
|
|
67
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
68
|
+
},
|
|
69
|
+
".transition-transform-colors": {
|
|
70
|
+
" transition-property": "transform, color, background, background-color, border-color, text-decoration-color, fill, stroke",
|
|
71
|
+
"transition-timing-function": "ease",
|
|
72
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
73
|
+
},
|
|
74
|
+
".transition-transform-colors-opacity": {
|
|
75
|
+
" transition-property": "transform, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity",
|
|
76
|
+
"transition-timing-function": "ease",
|
|
77
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
81
|
+
0 && (module.exports = {
|
|
82
|
+
DEFAULT_TRANSITION_DURATION
|
|
83
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is the base classNames for all elements.
|
|
3
|
+
* Is meant to be used with the `addBase` method from tailwindcss.
|
|
4
|
+
*/
|
|
5
|
+
declare const baseStyles: (prefix: string) => {
|
|
6
|
+
color: string;
|
|
7
|
+
backgroundColor: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* focus classNames when the element is focused by keyboard.
|
|
11
|
+
*/
|
|
12
|
+
declare const focusVisibleClasses: string[];
|
|
13
|
+
declare const dataFocusVisibleClasses: string[];
|
|
14
|
+
declare const groupDataFocusVisibleClasses: string[];
|
|
15
|
+
declare const ringClasses: string[];
|
|
16
|
+
/**
|
|
17
|
+
* This classes centers the element by using absolute positioning.
|
|
18
|
+
*/
|
|
19
|
+
declare const translateCenterClasses: string[];
|
|
20
|
+
declare const absoluteFullClasses: string[];
|
|
21
|
+
/**
|
|
22
|
+
* This object defines CSS classes for collapsing adjacent variant borders.
|
|
23
|
+
* It includes classes for different variants like default, primary, secondary, etc.
|
|
24
|
+
*/
|
|
25
|
+
declare const collapseAdjacentVariantBorders: {
|
|
26
|
+
default: string[];
|
|
27
|
+
primary: string[];
|
|
28
|
+
secondary: string[];
|
|
29
|
+
success: string[];
|
|
30
|
+
warning: string[];
|
|
31
|
+
danger: string[];
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { absoluteFullClasses, baseStyles, collapseAdjacentVariantBorders, dataFocusVisibleClasses, focusVisibleClasses, groupDataFocusVisibleClasses, ringClasses, translateCenterClasses };
|
|
@@ -0,0 +1,91 @@
|
|
|
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/utils/classes.ts
|
|
21
|
+
var classes_exports = {};
|
|
22
|
+
__export(classes_exports, {
|
|
23
|
+
absoluteFullClasses: () => absoluteFullClasses,
|
|
24
|
+
baseStyles: () => baseStyles,
|
|
25
|
+
collapseAdjacentVariantBorders: () => collapseAdjacentVariantBorders,
|
|
26
|
+
dataFocusVisibleClasses: () => dataFocusVisibleClasses,
|
|
27
|
+
focusVisibleClasses: () => focusVisibleClasses,
|
|
28
|
+
groupDataFocusVisibleClasses: () => groupDataFocusVisibleClasses,
|
|
29
|
+
ringClasses: () => ringClasses,
|
|
30
|
+
translateCenterClasses: () => translateCenterClasses
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(classes_exports);
|
|
33
|
+
var baseStyles = (prefix) => ({
|
|
34
|
+
color: `hsl(var(--${prefix}-foreground))`,
|
|
35
|
+
backgroundColor: `hsl(var(--${prefix}-background))`
|
|
36
|
+
});
|
|
37
|
+
var focusVisibleClasses = [
|
|
38
|
+
"focus-visible:z-10",
|
|
39
|
+
"focus-visible:outline-2",
|
|
40
|
+
"focus-visible:outline-focus",
|
|
41
|
+
"focus-visible:outline-offset-2"
|
|
42
|
+
];
|
|
43
|
+
var dataFocusVisibleClasses = [
|
|
44
|
+
"outline-none",
|
|
45
|
+
"data-[focus-visible=true]:z-10",
|
|
46
|
+
"data-[focus-visible=true]:outline-2",
|
|
47
|
+
"data-[focus-visible=true]:outline-focus",
|
|
48
|
+
"data-[focus-visible=true]:outline-offset-2"
|
|
49
|
+
];
|
|
50
|
+
var groupDataFocusVisibleClasses = [
|
|
51
|
+
"outline-none",
|
|
52
|
+
"group-data-[focus-visible=true]:z-10",
|
|
53
|
+
"group-data-[focus-visible=true]:ring-2",
|
|
54
|
+
"group-data-[focus-visible=true]:ring-focus",
|
|
55
|
+
"group-data-[focus-visible=true]:ring-offset-2",
|
|
56
|
+
"group-data-[focus-visible=true]:ring-offset-background"
|
|
57
|
+
];
|
|
58
|
+
var ringClasses = [
|
|
59
|
+
"outline-none",
|
|
60
|
+
"ring-2",
|
|
61
|
+
"ring-focus",
|
|
62
|
+
"ring-offset-2",
|
|
63
|
+
"ring-offset-background"
|
|
64
|
+
];
|
|
65
|
+
var translateCenterClasses = [
|
|
66
|
+
"absolute",
|
|
67
|
+
"top-1/2",
|
|
68
|
+
"left-1/2",
|
|
69
|
+
"-translate-x-1/2",
|
|
70
|
+
"-translate-y-1/2"
|
|
71
|
+
];
|
|
72
|
+
var absoluteFullClasses = ["absolute", "inset-0"];
|
|
73
|
+
var collapseAdjacentVariantBorders = {
|
|
74
|
+
default: ["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
75
|
+
primary: ["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
76
|
+
secondary: ["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
77
|
+
success: ["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
78
|
+
warning: ["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
79
|
+
danger: ["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]
|
|
80
|
+
};
|
|
81
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
82
|
+
0 && (module.exports = {
|
|
83
|
+
absoluteFullClasses,
|
|
84
|
+
baseStyles,
|
|
85
|
+
collapseAdjacentVariantBorders,
|
|
86
|
+
dataFocusVisibleClasses,
|
|
87
|
+
focusVisibleClasses,
|
|
88
|
+
groupDataFocusVisibleClasses,
|
|
89
|
+
ringClasses,
|
|
90
|
+
translateCenterClasses
|
|
91
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
absoluteFullClasses,
|
|
3
|
+
baseStyles,
|
|
4
|
+
collapseAdjacentVariantBorders,
|
|
5
|
+
dataFocusVisibleClasses,
|
|
6
|
+
focusVisibleClasses,
|
|
7
|
+
groupDataFocusVisibleClasses,
|
|
8
|
+
ringClasses,
|
|
9
|
+
translateCenterClasses
|
|
10
|
+
} from "../chunk-XHQUSKIE.mjs";
|
|
11
|
+
export {
|
|
12
|
+
absoluteFullClasses,
|
|
13
|
+
baseStyles,
|
|
14
|
+
collapseAdjacentVariantBorders,
|
|
15
|
+
dataFocusVisibleClasses,
|
|
16
|
+
focusVisibleClasses,
|
|
17
|
+
groupDataFocusVisibleClasses,
|
|
18
|
+
ringClasses,
|
|
19
|
+
translateCenterClasses
|
|
20
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { absoluteFullClasses, baseStyles, collapseAdjacentVariantBorders, dataFocusVisibleClasses, focusVisibleClasses, groupDataFocusVisibleClasses, ringClasses, translateCenterClasses } from './classes.js';
|
|
2
|
+
export { SlotsToClasses } from './types.js';
|
|
3
|
+
export { colorVariants } from './variants.js';
|
|
4
|
+
import 'tailwind-variants';
|
|
@@ -0,0 +1,169 @@
|
|
|
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/utils/index.ts
|
|
21
|
+
var utils_exports = {};
|
|
22
|
+
__export(utils_exports, {
|
|
23
|
+
absoluteFullClasses: () => absoluteFullClasses,
|
|
24
|
+
baseStyles: () => baseStyles,
|
|
25
|
+
collapseAdjacentVariantBorders: () => collapseAdjacentVariantBorders,
|
|
26
|
+
colorVariants: () => colorVariants,
|
|
27
|
+
dataFocusVisibleClasses: () => dataFocusVisibleClasses,
|
|
28
|
+
focusVisibleClasses: () => focusVisibleClasses,
|
|
29
|
+
groupDataFocusVisibleClasses: () => groupDataFocusVisibleClasses,
|
|
30
|
+
ringClasses: () => ringClasses,
|
|
31
|
+
translateCenterClasses: () => translateCenterClasses
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(utils_exports);
|
|
34
|
+
|
|
35
|
+
// src/utils/classes.ts
|
|
36
|
+
var baseStyles = (prefix) => ({
|
|
37
|
+
color: `hsl(var(--${prefix}-foreground))`,
|
|
38
|
+
backgroundColor: `hsl(var(--${prefix}-background))`
|
|
39
|
+
});
|
|
40
|
+
var focusVisibleClasses = [
|
|
41
|
+
"focus-visible:z-10",
|
|
42
|
+
"focus-visible:outline-2",
|
|
43
|
+
"focus-visible:outline-focus",
|
|
44
|
+
"focus-visible:outline-offset-2"
|
|
45
|
+
];
|
|
46
|
+
var dataFocusVisibleClasses = [
|
|
47
|
+
"outline-none",
|
|
48
|
+
"data-[focus-visible=true]:z-10",
|
|
49
|
+
"data-[focus-visible=true]:outline-2",
|
|
50
|
+
"data-[focus-visible=true]:outline-focus",
|
|
51
|
+
"data-[focus-visible=true]:outline-offset-2"
|
|
52
|
+
];
|
|
53
|
+
var groupDataFocusVisibleClasses = [
|
|
54
|
+
"outline-none",
|
|
55
|
+
"group-data-[focus-visible=true]:z-10",
|
|
56
|
+
"group-data-[focus-visible=true]:ring-2",
|
|
57
|
+
"group-data-[focus-visible=true]:ring-focus",
|
|
58
|
+
"group-data-[focus-visible=true]:ring-offset-2",
|
|
59
|
+
"group-data-[focus-visible=true]:ring-offset-background"
|
|
60
|
+
];
|
|
61
|
+
var ringClasses = [
|
|
62
|
+
"outline-none",
|
|
63
|
+
"ring-2",
|
|
64
|
+
"ring-focus",
|
|
65
|
+
"ring-offset-2",
|
|
66
|
+
"ring-offset-background"
|
|
67
|
+
];
|
|
68
|
+
var translateCenterClasses = [
|
|
69
|
+
"absolute",
|
|
70
|
+
"top-1/2",
|
|
71
|
+
"left-1/2",
|
|
72
|
+
"-translate-x-1/2",
|
|
73
|
+
"-translate-y-1/2"
|
|
74
|
+
];
|
|
75
|
+
var absoluteFullClasses = ["absolute", "inset-0"];
|
|
76
|
+
var collapseAdjacentVariantBorders = {
|
|
77
|
+
default: ["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
78
|
+
primary: ["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
79
|
+
secondary: ["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
80
|
+
success: ["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
81
|
+
warning: ["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
82
|
+
danger: ["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
// src/utils/variants.ts
|
|
86
|
+
var solid = {
|
|
87
|
+
default: "bg-default text-default-foreground",
|
|
88
|
+
primary: "bg-primary text-primary-foreground",
|
|
89
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
90
|
+
success: "bg-success text-success-foreground",
|
|
91
|
+
warning: "bg-warning text-warning-foreground",
|
|
92
|
+
danger: "bg-danger text-danger-foreground",
|
|
93
|
+
foreground: "bg-foreground text-background"
|
|
94
|
+
};
|
|
95
|
+
var shadow = {
|
|
96
|
+
default: "shadow-lg shadow-default/50 bg-default text-default-foreground",
|
|
97
|
+
primary: "shadow-lg shadow-primary/40 bg-primary text-primary-foreground",
|
|
98
|
+
secondary: "shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",
|
|
99
|
+
success: "shadow-lg shadow-success/40 bg-success text-success-foreground",
|
|
100
|
+
warning: "shadow-lg shadow-warning/40 bg-warning text-warning-foreground",
|
|
101
|
+
danger: "shadow-lg shadow-danger/40 bg-danger text-danger-foreground",
|
|
102
|
+
foreground: "shadow-lg shadow-foreground/40 bg-foreground text-background"
|
|
103
|
+
};
|
|
104
|
+
var bordered = {
|
|
105
|
+
default: "bg-transparent border-default text-foreground",
|
|
106
|
+
primary: "bg-transparent border-primary text-primary",
|
|
107
|
+
secondary: "bg-transparent border-secondary text-secondary",
|
|
108
|
+
success: "bg-transparent border-success text-success",
|
|
109
|
+
warning: "bg-transparent border-warning text-warning",
|
|
110
|
+
danger: "bg-transparent border-danger text-danger",
|
|
111
|
+
foreground: "bg-transparent border-foreground text-foreground"
|
|
112
|
+
};
|
|
113
|
+
var flat = {
|
|
114
|
+
default: "bg-default/40 text-default-foreground",
|
|
115
|
+
primary: "bg-primary/20 text-primary",
|
|
116
|
+
secondary: "bg-secondary/20 text-secondary",
|
|
117
|
+
success: "bg-success/20 text-success-600 dark:text-success",
|
|
118
|
+
warning: "bg-warning/20 text-warning-600 dark:text-warning",
|
|
119
|
+
danger: "bg-danger/20 text-danger dark:text-danger-500",
|
|
120
|
+
foreground: "bg-foreground/10 text-foreground"
|
|
121
|
+
};
|
|
122
|
+
var faded = {
|
|
123
|
+
default: "border-default bg-default-100 text-default-foreground",
|
|
124
|
+
primary: "border-default bg-default-100 text-primary",
|
|
125
|
+
secondary: "border-default bg-default-100 text-secondary",
|
|
126
|
+
success: "border-default bg-default-100 text-success",
|
|
127
|
+
warning: "border-default bg-default-100 text-warning",
|
|
128
|
+
danger: "border-default bg-default-100 text-danger",
|
|
129
|
+
foreground: "border-default bg-default-100 text-foreground"
|
|
130
|
+
};
|
|
131
|
+
var light = {
|
|
132
|
+
default: "bg-transparent text-default-foreground",
|
|
133
|
+
primary: "bg-transparent text-primary",
|
|
134
|
+
secondary: "bg-transparent text-secondary",
|
|
135
|
+
success: "bg-transparent text-success",
|
|
136
|
+
warning: "bg-transparent text-warning",
|
|
137
|
+
danger: "bg-transparent text-danger",
|
|
138
|
+
foreground: "bg-transparent text-foreground"
|
|
139
|
+
};
|
|
140
|
+
var ghost = {
|
|
141
|
+
default: "border-default text-default-foreground hover:!bg-default",
|
|
142
|
+
primary: "border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",
|
|
143
|
+
secondary: "border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",
|
|
144
|
+
success: "border-success text-success hover:!text-success-foreground hover:!bg-success",
|
|
145
|
+
warning: "border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",
|
|
146
|
+
danger: "border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",
|
|
147
|
+
foreground: "border-foreground text-foreground hover:!bg-foreground"
|
|
148
|
+
};
|
|
149
|
+
var colorVariants = {
|
|
150
|
+
solid,
|
|
151
|
+
shadow,
|
|
152
|
+
bordered,
|
|
153
|
+
flat,
|
|
154
|
+
faded,
|
|
155
|
+
light,
|
|
156
|
+
ghost
|
|
157
|
+
};
|
|
158
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
159
|
+
0 && (module.exports = {
|
|
160
|
+
absoluteFullClasses,
|
|
161
|
+
baseStyles,
|
|
162
|
+
collapseAdjacentVariantBorders,
|
|
163
|
+
colorVariants,
|
|
164
|
+
dataFocusVisibleClasses,
|
|
165
|
+
focusVisibleClasses,
|
|
166
|
+
groupDataFocusVisibleClasses,
|
|
167
|
+
ringClasses,
|
|
168
|
+
translateCenterClasses
|
|
169
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import "../chunk-CMYR6AOY.mjs";
|
|
2
|
+
import "../chunk-K7LK7NCE.mjs";
|
|
3
|
+
import {
|
|
4
|
+
colorVariants
|
|
5
|
+
} from "../chunk-2PIR7DFM.mjs";
|
|
6
|
+
import {
|
|
7
|
+
absoluteFullClasses,
|
|
8
|
+
baseStyles,
|
|
9
|
+
collapseAdjacentVariantBorders,
|
|
10
|
+
dataFocusVisibleClasses,
|
|
11
|
+
focusVisibleClasses,
|
|
12
|
+
groupDataFocusVisibleClasses,
|
|
13
|
+
ringClasses,
|
|
14
|
+
translateCenterClasses
|
|
15
|
+
} from "../chunk-XHQUSKIE.mjs";
|
|
16
|
+
export {
|
|
17
|
+
absoluteFullClasses,
|
|
18
|
+
baseStyles,
|
|
19
|
+
collapseAdjacentVariantBorders,
|
|
20
|
+
colorVariants,
|
|
21
|
+
dataFocusVisibleClasses,
|
|
22
|
+
focusVisibleClasses,
|
|
23
|
+
groupDataFocusVisibleClasses,
|
|
24
|
+
ringClasses,
|
|
25
|
+
translateCenterClasses
|
|
26
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare function swapColorValues<T extends Object>(colors: T): {};
|
|
2
|
+
declare function removeDefaultKeys<T extends Object>(obj: T): {};
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* Flatten theme object and remove default keys
|
|
6
|
+
*
|
|
7
|
+
* @param obj theme object
|
|
8
|
+
* @returns object with flattened keys
|
|
9
|
+
*/
|
|
10
|
+
declare const flattenThemeObject: <TTarget>(obj: TTarget) => {};
|
|
11
|
+
|
|
12
|
+
export { flattenThemeObject, removeDefaultKeys, swapColorValues };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
24
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
|
+
|
|
26
|
+
// src/utils/object.ts
|
|
27
|
+
var object_exports = {};
|
|
28
|
+
__export(object_exports, {
|
|
29
|
+
flattenThemeObject: () => flattenThemeObject,
|
|
30
|
+
removeDefaultKeys: () => removeDefaultKeys,
|
|
31
|
+
swapColorValues: () => swapColorValues
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(object_exports);
|
|
34
|
+
var import_flat = __toESM(require("flat"));
|
|
35
|
+
function swapColorValues(colors) {
|
|
36
|
+
const swappedColors = {};
|
|
37
|
+
const keys = Object.keys(colors);
|
|
38
|
+
const length = keys.length;
|
|
39
|
+
for (let i = 0; i < length / 2; i++) {
|
|
40
|
+
const key1 = keys[i];
|
|
41
|
+
const key2 = keys[length - 1 - i];
|
|
42
|
+
swappedColors[key1] = colors[key2];
|
|
43
|
+
swappedColors[key2] = colors[key1];
|
|
44
|
+
}
|
|
45
|
+
if (length % 2 !== 0) {
|
|
46
|
+
const middleKey = keys[Math.floor(length / 2)];
|
|
47
|
+
swappedColors[middleKey] = colors[middleKey];
|
|
48
|
+
}
|
|
49
|
+
return swappedColors;
|
|
50
|
+
}
|
|
51
|
+
function removeDefaultKeys(obj) {
|
|
52
|
+
const newObj = {};
|
|
53
|
+
for (const key in obj) {
|
|
54
|
+
if (key.endsWith("-DEFAULT")) {
|
|
55
|
+
newObj[key.replace("-DEFAULT", "")] = obj[key];
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
newObj[key] = obj[key];
|
|
59
|
+
}
|
|
60
|
+
return newObj;
|
|
61
|
+
}
|
|
62
|
+
var flattenThemeObject = (obj) => removeDefaultKeys(
|
|
63
|
+
(0, import_flat.default)(obj, {
|
|
64
|
+
safe: true,
|
|
65
|
+
delimiter: "-"
|
|
66
|
+
})
|
|
67
|
+
);
|
|
68
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
69
|
+
0 && (module.exports = {
|
|
70
|
+
flattenThemeObject,
|
|
71
|
+
removeDefaultKeys,
|
|
72
|
+
swapColorValues
|
|
73
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
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/utils/theme.ts
|
|
21
|
+
var theme_exports = {};
|
|
22
|
+
__export(theme_exports, {
|
|
23
|
+
isBaseTheme: () => isBaseTheme
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(theme_exports);
|
|
26
|
+
var isBaseTheme = (theme) => theme === "light" || theme === "dark";
|
|
27
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
+
0 && (module.exports = {
|
|
29
|
+
isBaseTheme
|
|
30
|
+
});
|
package/dist/utils/tv.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
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/utils/tv.ts
|
|
21
|
+
var tv_exports = {};
|
|
22
|
+
__export(tv_exports, {
|
|
23
|
+
tv: () => tv
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(tv_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var COMMON_UNITS = ["small", "medium", "large"];
|
|
28
|
+
var tv = (options, config) => {
|
|
29
|
+
var _a, _b, _c;
|
|
30
|
+
return (0, import_tailwind_variants.tv)(options, {
|
|
31
|
+
...config,
|
|
32
|
+
twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
|
|
33
|
+
twMergeConfig: {
|
|
34
|
+
...config == null ? void 0 : config.twMergeConfig,
|
|
35
|
+
theme: {
|
|
36
|
+
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
|
|
37
|
+
opacity: ["disabled"],
|
|
38
|
+
spacing: ["divider"],
|
|
39
|
+
borderWidth: COMMON_UNITS,
|
|
40
|
+
borderRadius: COMMON_UNITS
|
|
41
|
+
},
|
|
42
|
+
classGroups: {
|
|
43
|
+
...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
|
|
44
|
+
shadow: [{ shadow: COMMON_UNITS }],
|
|
45
|
+
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
46
|
+
"bg-image": ["bg-stripe-gradient"]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
52
|
+
0 && (module.exports = {
|
|
53
|
+
tv
|
|
54
|
+
});
|