@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,51 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Keyboard Key wrapper **Tailwind Variants** component
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
*
|
|
10
|
+
* const { base, abbr, content } = kbd()
|
|
11
|
+
*
|
|
12
|
+
* <kbd className={base()} >
|
|
13
|
+
* <abbr title="Command" className={abbr()}>⌘</abbr>
|
|
14
|
+
* <abbr title="Shift" className={abbr()}>⇧</abbr>
|
|
15
|
+
* <abbr title="Control" className={abbr()}>⌃</abbr>
|
|
16
|
+
* <abbr title="Option" className={abbr()}>⌥</abbr>
|
|
17
|
+
* <abbr title="Enter" className={abbr()}>↵</abbr>
|
|
18
|
+
* <abbr title="Delete" className={abbr()}>⌫</abbr>
|
|
19
|
+
* <abbr title="Escape" className={abbr()}>⎋</abbr>
|
|
20
|
+
* <abbr title="Tab" className={abbr()}>⇥</abbr>
|
|
21
|
+
* <abbr title="Caps Lock" className={abbr()}>⇪</abbr>
|
|
22
|
+
* <abbr title="Up" className={abbr()}>↑</abbr>
|
|
23
|
+
* <abbr title="Right" className={abbr()}>→</abbr>
|
|
24
|
+
* <abbr title="Down" className={abbr()}>↓</abbr>
|
|
25
|
+
* <abbr title="Left" className={abbr()}>←</abbr>
|
|
26
|
+
* <abbr title="Page Up" className={abbr()}>⇞</abbr>
|
|
27
|
+
* <abbr title="Page Down" className={abbr()}>⇟</abbr>
|
|
28
|
+
* <abbr title="Home" className={abbr()}>↖</abbr>
|
|
29
|
+
* <abbr title="End" className={abbr()}>↘</abbr>
|
|
30
|
+
* <abbr title="Help" className={abbr()}>?</abbr>
|
|
31
|
+
* <abbr title="Space" className={abbr()}>␣</abbr>
|
|
32
|
+
* <span className={content()}>A</span>
|
|
33
|
+
* </kbd>
|
|
34
|
+
*/
|
|
35
|
+
declare const kbd: tailwind_variants.TVReturnType<{}, {
|
|
36
|
+
base: string[];
|
|
37
|
+
abbr: string;
|
|
38
|
+
content: string;
|
|
39
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{}, {}>, {}, {
|
|
40
|
+
base: string[];
|
|
41
|
+
abbr: string;
|
|
42
|
+
content: string;
|
|
43
|
+
}, tailwind_variants.TVReturnType<{}, {
|
|
44
|
+
base: string[];
|
|
45
|
+
abbr: string;
|
|
46
|
+
content: string;
|
|
47
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{}, {}>, unknown, unknown, undefined>>;
|
|
48
|
+
type KbdVariantProps = VariantProps<typeof kbd>;
|
|
49
|
+
type KbdSlots = keyof ReturnType<typeof kbd>;
|
|
50
|
+
|
|
51
|
+
export { KbdSlots, KbdVariantProps, kbd };
|
|
@@ -0,0 +1,82 @@
|
|
|
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/kbd.ts
|
|
21
|
+
var kbd_exports = {};
|
|
22
|
+
__export(kbd_exports, {
|
|
23
|
+
kbd: () => kbd
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(kbd_exports);
|
|
26
|
+
|
|
27
|
+
// src/utils/tv.ts
|
|
28
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
29
|
+
var COMMON_UNITS = ["small", "medium", "large"];
|
|
30
|
+
var tv = (options, config) => {
|
|
31
|
+
var _a, _b, _c;
|
|
32
|
+
return (0, import_tailwind_variants.tv)(options, {
|
|
33
|
+
...config,
|
|
34
|
+
twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
|
|
35
|
+
twMergeConfig: {
|
|
36
|
+
...config == null ? void 0 : config.twMergeConfig,
|
|
37
|
+
theme: {
|
|
38
|
+
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
|
|
39
|
+
opacity: ["disabled"],
|
|
40
|
+
spacing: ["divider"],
|
|
41
|
+
borderWidth: COMMON_UNITS,
|
|
42
|
+
borderRadius: COMMON_UNITS
|
|
43
|
+
},
|
|
44
|
+
classGroups: {
|
|
45
|
+
...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
|
|
46
|
+
shadow: [{ shadow: COMMON_UNITS }],
|
|
47
|
+
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
48
|
+
"bg-image": ["bg-stripe-gradient"]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
// src/components/kbd.ts
|
|
55
|
+
var kbd = tv({
|
|
56
|
+
slots: {
|
|
57
|
+
base: [
|
|
58
|
+
"px-1.5",
|
|
59
|
+
"py-0.5",
|
|
60
|
+
"inline-flex",
|
|
61
|
+
"space-x-0.5",
|
|
62
|
+
"rtl:space-x-reverse",
|
|
63
|
+
"items-center",
|
|
64
|
+
"font-sans",
|
|
65
|
+
"font-normal",
|
|
66
|
+
"text-center",
|
|
67
|
+
"text-small",
|
|
68
|
+
"shadow-small",
|
|
69
|
+
"bg-default-100",
|
|
70
|
+
"text-foreground-600",
|
|
71
|
+
"rounded-small"
|
|
72
|
+
],
|
|
73
|
+
abbr: "no-underline",
|
|
74
|
+
content: ""
|
|
75
|
+
},
|
|
76
|
+
variants: {},
|
|
77
|
+
defaultVariants: {}
|
|
78
|
+
});
|
|
79
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
80
|
+
0 && (module.exports = {
|
|
81
|
+
kbd
|
|
82
|
+
});
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Link wrapper **Tailwind Variants** component
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <a className={link({ color: "secondary", isBlock: true })} href="#" />
|
|
10
|
+
*/
|
|
11
|
+
declare const link: tailwind_variants.TVReturnType<{
|
|
12
|
+
size: {
|
|
13
|
+
sm: "text-small";
|
|
14
|
+
md: "text-medium";
|
|
15
|
+
lg: "text-large";
|
|
16
|
+
};
|
|
17
|
+
color: {
|
|
18
|
+
foreground: "text-foreground";
|
|
19
|
+
primary: "text-primary";
|
|
20
|
+
secondary: "text-secondary";
|
|
21
|
+
success: "text-success";
|
|
22
|
+
warning: "text-warning";
|
|
23
|
+
danger: "text-danger";
|
|
24
|
+
};
|
|
25
|
+
underline: {
|
|
26
|
+
none: "no-underline";
|
|
27
|
+
hover: "hover:underline";
|
|
28
|
+
always: "underline";
|
|
29
|
+
active: "active:underline";
|
|
30
|
+
focus: "focus:underline";
|
|
31
|
+
};
|
|
32
|
+
isBlock: {
|
|
33
|
+
true: string[];
|
|
34
|
+
false: "hover:opacity-80 active:opacity-disabled transition-opacity";
|
|
35
|
+
};
|
|
36
|
+
isDisabled: {
|
|
37
|
+
true: "opacity-disabled cursor-default pointer-events-none";
|
|
38
|
+
};
|
|
39
|
+
disableAnimation: {
|
|
40
|
+
true: "after:transition-none transition-none";
|
|
41
|
+
};
|
|
42
|
+
}, undefined, string[], tailwind_variants_dist_config.TVConfig<{
|
|
43
|
+
size: {
|
|
44
|
+
sm: "text-small";
|
|
45
|
+
md: "text-medium";
|
|
46
|
+
lg: "text-large";
|
|
47
|
+
};
|
|
48
|
+
color: {
|
|
49
|
+
foreground: "text-foreground";
|
|
50
|
+
primary: "text-primary";
|
|
51
|
+
secondary: "text-secondary";
|
|
52
|
+
success: "text-success";
|
|
53
|
+
warning: "text-warning";
|
|
54
|
+
danger: "text-danger";
|
|
55
|
+
};
|
|
56
|
+
underline: {
|
|
57
|
+
none: "no-underline";
|
|
58
|
+
hover: "hover:underline";
|
|
59
|
+
always: "underline";
|
|
60
|
+
active: "active:underline";
|
|
61
|
+
focus: "focus:underline";
|
|
62
|
+
};
|
|
63
|
+
isBlock: {
|
|
64
|
+
true: string[];
|
|
65
|
+
false: "hover:opacity-80 active:opacity-disabled transition-opacity";
|
|
66
|
+
};
|
|
67
|
+
isDisabled: {
|
|
68
|
+
true: "opacity-disabled cursor-default pointer-events-none";
|
|
69
|
+
};
|
|
70
|
+
disableAnimation: {
|
|
71
|
+
true: "after:transition-none transition-none";
|
|
72
|
+
};
|
|
73
|
+
}, {
|
|
74
|
+
size: {
|
|
75
|
+
sm: "text-small";
|
|
76
|
+
md: "text-medium";
|
|
77
|
+
lg: "text-large";
|
|
78
|
+
};
|
|
79
|
+
color: {
|
|
80
|
+
foreground: "text-foreground";
|
|
81
|
+
primary: "text-primary";
|
|
82
|
+
secondary: "text-secondary";
|
|
83
|
+
success: "text-success";
|
|
84
|
+
warning: "text-warning";
|
|
85
|
+
danger: "text-danger";
|
|
86
|
+
};
|
|
87
|
+
underline: {
|
|
88
|
+
none: "no-underline";
|
|
89
|
+
hover: "hover:underline";
|
|
90
|
+
always: "underline";
|
|
91
|
+
active: "active:underline";
|
|
92
|
+
focus: "focus:underline";
|
|
93
|
+
};
|
|
94
|
+
isBlock: {
|
|
95
|
+
true: string[];
|
|
96
|
+
false: "hover:opacity-80 active:opacity-disabled transition-opacity";
|
|
97
|
+
};
|
|
98
|
+
isDisabled: {
|
|
99
|
+
true: "opacity-disabled cursor-default pointer-events-none";
|
|
100
|
+
};
|
|
101
|
+
disableAnimation: {
|
|
102
|
+
true: "after:transition-none transition-none";
|
|
103
|
+
};
|
|
104
|
+
}>, {
|
|
105
|
+
size: {
|
|
106
|
+
sm: "text-small";
|
|
107
|
+
md: "text-medium";
|
|
108
|
+
lg: "text-large";
|
|
109
|
+
};
|
|
110
|
+
color: {
|
|
111
|
+
foreground: "text-foreground";
|
|
112
|
+
primary: "text-primary";
|
|
113
|
+
secondary: "text-secondary";
|
|
114
|
+
success: "text-success";
|
|
115
|
+
warning: "text-warning";
|
|
116
|
+
danger: "text-danger";
|
|
117
|
+
};
|
|
118
|
+
underline: {
|
|
119
|
+
none: "no-underline";
|
|
120
|
+
hover: "hover:underline";
|
|
121
|
+
always: "underline";
|
|
122
|
+
active: "active:underline";
|
|
123
|
+
focus: "focus:underline";
|
|
124
|
+
};
|
|
125
|
+
isBlock: {
|
|
126
|
+
true: string[];
|
|
127
|
+
false: "hover:opacity-80 active:opacity-disabled transition-opacity";
|
|
128
|
+
};
|
|
129
|
+
isDisabled: {
|
|
130
|
+
true: "opacity-disabled cursor-default pointer-events-none";
|
|
131
|
+
};
|
|
132
|
+
disableAnimation: {
|
|
133
|
+
true: "after:transition-none transition-none";
|
|
134
|
+
};
|
|
135
|
+
}, undefined, tailwind_variants.TVReturnType<{
|
|
136
|
+
size: {
|
|
137
|
+
sm: "text-small";
|
|
138
|
+
md: "text-medium";
|
|
139
|
+
lg: "text-large";
|
|
140
|
+
};
|
|
141
|
+
color: {
|
|
142
|
+
foreground: "text-foreground";
|
|
143
|
+
primary: "text-primary";
|
|
144
|
+
secondary: "text-secondary";
|
|
145
|
+
success: "text-success";
|
|
146
|
+
warning: "text-warning";
|
|
147
|
+
danger: "text-danger";
|
|
148
|
+
};
|
|
149
|
+
underline: {
|
|
150
|
+
none: "no-underline";
|
|
151
|
+
hover: "hover:underline";
|
|
152
|
+
always: "underline";
|
|
153
|
+
active: "active:underline";
|
|
154
|
+
focus: "focus:underline";
|
|
155
|
+
};
|
|
156
|
+
isBlock: {
|
|
157
|
+
true: string[];
|
|
158
|
+
false: "hover:opacity-80 active:opacity-disabled transition-opacity";
|
|
159
|
+
};
|
|
160
|
+
isDisabled: {
|
|
161
|
+
true: "opacity-disabled cursor-default pointer-events-none";
|
|
162
|
+
};
|
|
163
|
+
disableAnimation: {
|
|
164
|
+
true: "after:transition-none transition-none";
|
|
165
|
+
};
|
|
166
|
+
}, undefined, string[], tailwind_variants_dist_config.TVConfig<{
|
|
167
|
+
size: {
|
|
168
|
+
sm: "text-small";
|
|
169
|
+
md: "text-medium";
|
|
170
|
+
lg: "text-large";
|
|
171
|
+
};
|
|
172
|
+
color: {
|
|
173
|
+
foreground: "text-foreground";
|
|
174
|
+
primary: "text-primary";
|
|
175
|
+
secondary: "text-secondary";
|
|
176
|
+
success: "text-success";
|
|
177
|
+
warning: "text-warning";
|
|
178
|
+
danger: "text-danger";
|
|
179
|
+
};
|
|
180
|
+
underline: {
|
|
181
|
+
none: "no-underline";
|
|
182
|
+
hover: "hover:underline";
|
|
183
|
+
always: "underline";
|
|
184
|
+
active: "active:underline";
|
|
185
|
+
focus: "focus:underline";
|
|
186
|
+
};
|
|
187
|
+
isBlock: {
|
|
188
|
+
true: string[];
|
|
189
|
+
false: "hover:opacity-80 active:opacity-disabled transition-opacity";
|
|
190
|
+
};
|
|
191
|
+
isDisabled: {
|
|
192
|
+
true: "opacity-disabled cursor-default pointer-events-none";
|
|
193
|
+
};
|
|
194
|
+
disableAnimation: {
|
|
195
|
+
true: "after:transition-none transition-none";
|
|
196
|
+
};
|
|
197
|
+
}, {
|
|
198
|
+
size: {
|
|
199
|
+
sm: "text-small";
|
|
200
|
+
md: "text-medium";
|
|
201
|
+
lg: "text-large";
|
|
202
|
+
};
|
|
203
|
+
color: {
|
|
204
|
+
foreground: "text-foreground";
|
|
205
|
+
primary: "text-primary";
|
|
206
|
+
secondary: "text-secondary";
|
|
207
|
+
success: "text-success";
|
|
208
|
+
warning: "text-warning";
|
|
209
|
+
danger: "text-danger";
|
|
210
|
+
};
|
|
211
|
+
underline: {
|
|
212
|
+
none: "no-underline";
|
|
213
|
+
hover: "hover:underline";
|
|
214
|
+
always: "underline";
|
|
215
|
+
active: "active:underline";
|
|
216
|
+
focus: "focus:underline";
|
|
217
|
+
};
|
|
218
|
+
isBlock: {
|
|
219
|
+
true: string[];
|
|
220
|
+
false: "hover:opacity-80 active:opacity-disabled transition-opacity";
|
|
221
|
+
};
|
|
222
|
+
isDisabled: {
|
|
223
|
+
true: "opacity-disabled cursor-default pointer-events-none";
|
|
224
|
+
};
|
|
225
|
+
disableAnimation: {
|
|
226
|
+
true: "after:transition-none transition-none";
|
|
227
|
+
};
|
|
228
|
+
}>, unknown, unknown, undefined>>;
|
|
229
|
+
declare const linkAnchorClasses = "flex mx-1 text-current self-center";
|
|
230
|
+
type LinkVariantProps = VariantProps<typeof link>;
|
|
231
|
+
|
|
232
|
+
export { LinkVariantProps, link, linkAnchorClasses };
|
|
@@ -0,0 +1,164 @@
|
|
|
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/link.ts
|
|
21
|
+
var link_exports = {};
|
|
22
|
+
__export(link_exports, {
|
|
23
|
+
link: () => link,
|
|
24
|
+
linkAnchorClasses: () => linkAnchorClasses
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(link_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
|
+
|
|
64
|
+
// src/components/link.ts
|
|
65
|
+
var link = tv({
|
|
66
|
+
base: [
|
|
67
|
+
"relative inline-flex items-center outline-none tap-highlight-transparent",
|
|
68
|
+
...dataFocusVisibleClasses
|
|
69
|
+
],
|
|
70
|
+
variants: {
|
|
71
|
+
size: {
|
|
72
|
+
sm: "text-small",
|
|
73
|
+
md: "text-medium",
|
|
74
|
+
lg: "text-large"
|
|
75
|
+
},
|
|
76
|
+
color: {
|
|
77
|
+
foreground: "text-foreground",
|
|
78
|
+
primary: "text-primary",
|
|
79
|
+
secondary: "text-secondary",
|
|
80
|
+
success: "text-success",
|
|
81
|
+
warning: "text-warning",
|
|
82
|
+
danger: "text-danger"
|
|
83
|
+
},
|
|
84
|
+
underline: {
|
|
85
|
+
none: "no-underline",
|
|
86
|
+
hover: "hover:underline",
|
|
87
|
+
always: "underline",
|
|
88
|
+
active: "active:underline",
|
|
89
|
+
focus: "focus:underline"
|
|
90
|
+
},
|
|
91
|
+
isBlock: {
|
|
92
|
+
true: [
|
|
93
|
+
"px-2",
|
|
94
|
+
"py-1",
|
|
95
|
+
"hover:after:opacity-100",
|
|
96
|
+
"after:content-['']",
|
|
97
|
+
"after:inset-0",
|
|
98
|
+
"after:opacity-0",
|
|
99
|
+
"after:w-full",
|
|
100
|
+
"after:h-full",
|
|
101
|
+
"after:rounded-xl",
|
|
102
|
+
"after:transition-background",
|
|
103
|
+
"after:absolute"
|
|
104
|
+
],
|
|
105
|
+
false: "hover:opacity-80 active:opacity-disabled transition-opacity"
|
|
106
|
+
},
|
|
107
|
+
isDisabled: {
|
|
108
|
+
true: "opacity-disabled cursor-default pointer-events-none"
|
|
109
|
+
},
|
|
110
|
+
disableAnimation: {
|
|
111
|
+
true: "after:transition-none transition-none"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
compoundVariants: [
|
|
115
|
+
{
|
|
116
|
+
isBlock: true,
|
|
117
|
+
color: "foreground",
|
|
118
|
+
class: "hover:after:bg-foreground/10"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
isBlock: true,
|
|
122
|
+
color: "primary",
|
|
123
|
+
class: "hover:after:bg-primary/20"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
isBlock: true,
|
|
127
|
+
color: "secondary",
|
|
128
|
+
class: "hover:after:bg-secondary/20"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
isBlock: true,
|
|
132
|
+
color: "success",
|
|
133
|
+
class: "hover:after:bg-success/20"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
isBlock: true,
|
|
137
|
+
color: "warning",
|
|
138
|
+
class: "hover:after:bg-warning/20"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
isBlock: true,
|
|
142
|
+
color: "danger",
|
|
143
|
+
class: "hover:after:bg-danger/20"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
underline: ["hover", "always", "active", "focus"],
|
|
147
|
+
class: "underline-offset-4"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
defaultVariants: {
|
|
151
|
+
color: "primary",
|
|
152
|
+
size: "md",
|
|
153
|
+
isBlock: false,
|
|
154
|
+
underline: "none",
|
|
155
|
+
isDisabled: false,
|
|
156
|
+
disableAnimation: false
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
var linkAnchorClasses = "flex mx-1 text-current self-center";
|
|
160
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
161
|
+
0 && (module.exports = {
|
|
162
|
+
link,
|
|
163
|
+
linkAnchorClasses
|
|
164
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
link,
|
|
3
|
+
linkAnchorClasses
|
|
4
|
+
} from "../chunk-JQTFOIV7.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
|
+
link,
|
|
12
|
+
linkAnchorClasses
|
|
13
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { MenuItemSlots as ListboxItemSlots, MenuItemVariantProps as ListboxItemVariantProps, MenuSectionSlots as ListboxSectionSlots, MenuSectionVariantProps as ListboxSectionVariantProps, MenuSlots as ListboxSlots, MenuVariantProps as ListboxVariantProps, menu as listbox, menuItem as listboxItem, menuSection as listboxSection } from './menu.js';
|
|
2
|
+
import 'tailwind-variants/dist/config';
|
|
3
|
+
import 'tailwind-variants';
|