@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,81 @@
|
|
|
1
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
2
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* User wrapper **Tailwind Variants** component
|
|
6
|
+
*
|
|
7
|
+
* const {base, wrapper, name, description} = user({...})
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <div className={base())}>
|
|
11
|
+
* // avatar element @see avatar
|
|
12
|
+
* <div className={wrapper())}>
|
|
13
|
+
* <span className={name())}>user name</span>
|
|
14
|
+
* <span className={description())}>user description</span>
|
|
15
|
+
* </div>
|
|
16
|
+
* </div>
|
|
17
|
+
*/
|
|
18
|
+
declare const user: tailwind_variants.TVReturnType<{
|
|
19
|
+
[key: string]: {
|
|
20
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
21
|
+
base?: tailwind_variants.ClassValue;
|
|
22
|
+
description?: tailwind_variants.ClassValue;
|
|
23
|
+
name?: tailwind_variants.ClassValue;
|
|
24
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
} | {
|
|
28
|
+
[x: string]: {
|
|
29
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
30
|
+
base?: tailwind_variants.ClassValue;
|
|
31
|
+
description?: tailwind_variants.ClassValue;
|
|
32
|
+
name?: tailwind_variants.ClassValue;
|
|
33
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
} | {}, {
|
|
37
|
+
base: string[];
|
|
38
|
+
wrapper: string;
|
|
39
|
+
name: string;
|
|
40
|
+
description: string;
|
|
41
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<unknown, {
|
|
42
|
+
[key: string]: {
|
|
43
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
44
|
+
base?: tailwind_variants.ClassValue;
|
|
45
|
+
description?: tailwind_variants.ClassValue;
|
|
46
|
+
name?: tailwind_variants.ClassValue;
|
|
47
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
} | {}>, {
|
|
51
|
+
[key: string]: {
|
|
52
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
53
|
+
base?: tailwind_variants.ClassValue;
|
|
54
|
+
description?: tailwind_variants.ClassValue;
|
|
55
|
+
name?: tailwind_variants.ClassValue;
|
|
56
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
} | {}, {
|
|
60
|
+
base: string[];
|
|
61
|
+
wrapper: string;
|
|
62
|
+
name: string;
|
|
63
|
+
description: string;
|
|
64
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
65
|
+
base: string[];
|
|
66
|
+
wrapper: string;
|
|
67
|
+
name: string;
|
|
68
|
+
description: string;
|
|
69
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<unknown, {
|
|
70
|
+
[key: string]: {
|
|
71
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
72
|
+
base?: tailwind_variants.ClassValue;
|
|
73
|
+
description?: tailwind_variants.ClassValue;
|
|
74
|
+
name?: tailwind_variants.ClassValue;
|
|
75
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
79
|
+
type UserSlots = keyof ReturnType<typeof user>;
|
|
80
|
+
|
|
81
|
+
export { UserSlots, user };
|
|
@@ -0,0 +1,78 @@
|
|
|
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/user.ts
|
|
21
|
+
var user_exports = {};
|
|
22
|
+
__export(user_exports, {
|
|
23
|
+
user: () => user
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(user_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/utils/classes.ts
|
|
55
|
+
var dataFocusVisibleClasses = [
|
|
56
|
+
"outline-none",
|
|
57
|
+
"data-[focus-visible=true]:z-10",
|
|
58
|
+
"data-[focus-visible=true]:outline-2",
|
|
59
|
+
"data-[focus-visible=true]:outline-focus",
|
|
60
|
+
"data-[focus-visible=true]:outline-offset-2"
|
|
61
|
+
];
|
|
62
|
+
|
|
63
|
+
// src/components/user.ts
|
|
64
|
+
var user = tv({
|
|
65
|
+
slots: {
|
|
66
|
+
base: [
|
|
67
|
+
"inline-flex items-center justify-center gap-2 rounded-small outline-none",
|
|
68
|
+
...dataFocusVisibleClasses
|
|
69
|
+
],
|
|
70
|
+
wrapper: "inline-flex flex-col items-start",
|
|
71
|
+
name: "text-small text-inherit",
|
|
72
|
+
description: "text-tiny text-foreground-400"
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
76
|
+
0 && (module.exports = {
|
|
77
|
+
user
|
|
78
|
+
});
|
|
@@ -0,0 +1,75 @@
|
|
|
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/default-layout.ts
|
|
21
|
+
var default_layout_exports = {};
|
|
22
|
+
__export(default_layout_exports, {
|
|
23
|
+
darkLayout: () => darkLayout,
|
|
24
|
+
defaultLayout: () => defaultLayout,
|
|
25
|
+
lightLayout: () => lightLayout
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(default_layout_exports);
|
|
28
|
+
var defaultLayout = {
|
|
29
|
+
dividerWeight: "1px",
|
|
30
|
+
disabledOpacity: ".5",
|
|
31
|
+
fontSize: {
|
|
32
|
+
tiny: "0.75rem",
|
|
33
|
+
small: "0.875rem",
|
|
34
|
+
medium: "1rem",
|
|
35
|
+
large: "1.125rem"
|
|
36
|
+
},
|
|
37
|
+
lineHeight: {
|
|
38
|
+
tiny: "1rem",
|
|
39
|
+
small: "1.25rem",
|
|
40
|
+
medium: "1.5rem",
|
|
41
|
+
large: "1.75rem"
|
|
42
|
+
},
|
|
43
|
+
radius: {
|
|
44
|
+
small: "8px",
|
|
45
|
+
medium: "12px",
|
|
46
|
+
large: "14px"
|
|
47
|
+
},
|
|
48
|
+
borderWidth: {
|
|
49
|
+
small: "1px",
|
|
50
|
+
medium: "2px",
|
|
51
|
+
large: "3px"
|
|
52
|
+
},
|
|
53
|
+
boxShadow: {
|
|
54
|
+
small: "0px 0px 5px 0px rgb(0 0 0 / 0.02), 0px 2px 10px 0px rgb(0 0 0 / 0.06), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",
|
|
55
|
+
medium: "0px 0px 15px 0px rgb(0 0 0 / 0.03), 0px 2px 30px 0px rgb(0 0 0 / 0.08), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",
|
|
56
|
+
large: "0px 0px 30px 0px rgb(0 0 0 / 0.04), 0px 30px 60px 0px rgb(0 0 0 / 0.12), 0px 0px 1px 0px rgb(0 0 0 / 0.3)"
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
var lightLayout = {
|
|
60
|
+
hoverOpacity: ".8"
|
|
61
|
+
};
|
|
62
|
+
var darkLayout = {
|
|
63
|
+
hoverOpacity: ".9",
|
|
64
|
+
boxShadow: {
|
|
65
|
+
small: "0px 0px 5px 0px rgb(0 0 0 / 0.05), 0px 2px 10px 0px rgb(0 0 0 / 0.2), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)",
|
|
66
|
+
medium: "0px 0px 15px 0px rgb(0 0 0 / 0.06), 0px 2px 30px 0px rgb(0 0 0 / 0.22), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)",
|
|
67
|
+
large: "0px 0px 30px 0px rgb(0 0 0 / 0.07), 0px 30px 60px 0px rgb(0 0 0 / 0.26), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)"
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
71
|
+
0 && (module.exports = {
|
|
72
|
+
darkLayout,
|
|
73
|
+
defaultLayout,
|
|
74
|
+
lightLayout
|
|
75
|
+
});
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export { AvatarGroupSlots, AvatarGroupVariantProps, AvatarSlots, AvatarVariantProps, avatar, avatarGroup } from './components/avatar.js';
|
|
2
|
+
export { CardReturnType, CardSlots, CardVariantProps, card } from './components/card.js';
|
|
3
|
+
export { LinkVariantProps, link, linkAnchorClasses } from './components/link.js';
|
|
4
|
+
export { UserSlots, user } from './components/user.js';
|
|
5
|
+
export { ButtonGroupVariantProps, ButtonVariantProps, button, buttonGroup } from './components/button.js';
|
|
6
|
+
export { drip } from './components/drip.js';
|
|
7
|
+
export { SpinnerSlots, SpinnerVariantProps, spinner } from './components/spinner.js';
|
|
8
|
+
export { CodeVariantProps, code } from './components/code.js';
|
|
9
|
+
export { PopoverSlots, PopoverVariantProps, popover } from './components/popover.js';
|
|
10
|
+
export { SnippetSlots, SnippetVariantProps, snippet } from './components/snippet.js';
|
|
11
|
+
export { ChipSlots, ChipVariantProps, chip } from './components/chip.js';
|
|
12
|
+
export { BadgeSlots, BadgeVariantProps, badge } from './components/badge.js';
|
|
13
|
+
export { CheckboxGroupSlots, CheckboxSlots, CheckboxVariantProps, checkbox, checkboxGroup } from './components/checkbox.js';
|
|
14
|
+
export { RadioGroupSlots, RadioSlots, RadioVariantProps, radio, radioGroup } from './components/radio.js';
|
|
15
|
+
export { PaginationSlots, PaginationVariantProps, pagination } from './components/pagination.js';
|
|
16
|
+
export { ToggleSlots, ToggleVariantProps, toggle } from './components/toggle.js';
|
|
17
|
+
export { AccordionGroupVariantProps, AccordionItemSlots, AccordionItemVariantProps, accordion, accordionItem } from './components/accordion.js';
|
|
18
|
+
export { ProgressSlots, ProgressVariantProps, progress } from './components/progress.js';
|
|
19
|
+
export { CircularProgressSlots, CircularProgressVariantProps, circularProgress } from './components/circular-progress.js';
|
|
20
|
+
export { InputSlots, InputVariantProps, input } from './components/input.js';
|
|
21
|
+
export { DropdownItemSlots, DropdownItemVariantProps, DropdownSectionSlots, DropdownSectionVariantProps, dropdown, dropdownItem, dropdownMenu, dropdownSection } from './components/dropdown.js';
|
|
22
|
+
export { ImageSlots, ImageVariantProps, image } from './components/image.js';
|
|
23
|
+
export { ModalSlots, ModalVariantProps, modal } from './components/modal.js';
|
|
24
|
+
export { NavbarSlots, NavbarVariantProps, navbar } from './components/navbar.js';
|
|
25
|
+
export { TableReturnType, TableSlots, TableVariantProps, table } from './components/table.js';
|
|
26
|
+
export { SpacerVariantProps, spacer } from './components/spacer.js';
|
|
27
|
+
export { DividerVariantProps, divider } from './components/divider.js';
|
|
28
|
+
export { KbdSlots, KbdVariantProps, kbd } from './components/kbd.js';
|
|
29
|
+
export { TabsReturnType, TabsSlots, TabsVariantProps, tabs } from './components/tabs.js';
|
|
30
|
+
export { SkeletonSlots, SkeletonVariantProps, skeleton } from './components/skeleton.js';
|
|
31
|
+
export { SelectSlots, SelectVariantProps, select } from './components/select.js';
|
|
32
|
+
export { MenuItemSlots as ListboxItemSlots, MenuItemVariantProps as ListboxItemVariantProps, MenuSectionSlots as ListboxSectionSlots, MenuSectionVariantProps as ListboxSectionVariantProps, MenuSlots as ListboxSlots, MenuVariantProps as ListboxVariantProps, MenuItemSlots, MenuItemVariantProps, MenuSectionSlots, MenuSectionVariantProps, MenuSlots, MenuVariantProps, menu as listbox, menuItem as listboxItem, menuSection as listboxSection, menu, menuItem, menuSection } from './components/menu.js';
|
|
33
|
+
export { ScrollShadowVariantProps, scrollShadow } from './components/scroll-shadow.js';
|
|
34
|
+
export { SliderSlots, SliderVariantProps, slider } from './components/slider.js';
|
|
35
|
+
export { BreadcrumbItemSlots, BreadcrumbItemVariantProps, BreadcrumbsSlots, BreadcrumbsVariantProps, breadcrumbItem, breadcrumbs } from './components/breadcrumbs.js';
|
|
36
|
+
export { AutocompleteSlots, AutocompleteVariantProps, autocomplete } from './components/autocomplete.js';
|
|
37
|
+
export { CalendarReturnType, CalendarSlots, CalendarVariantProps, calendar } from './components/calendar.js';
|
|
38
|
+
export { DateInputReturnType, DateInputSlots, DateInputVariantProps, dateInput } from './components/date-input.js';
|
|
39
|
+
export { DatePickerReturnType, DatePickerSlots, DatePickerVariantProps, DateRangePickerReturnType, DateRangePickerSlots, DateRangePickerVariantProps, datePicker, dateRangePicker } from './components/date-picker.js';
|
|
40
|
+
export { absoluteFullClasses, baseStyles, collapseAdjacentVariantBorders, dataFocusVisibleClasses, focusVisibleClasses, groupDataFocusVisibleClasses, ringClasses, translateCenterClasses } from './utils/classes.js';
|
|
41
|
+
export { SlotsToClasses } from './utils/types.js';
|
|
42
|
+
export { colorVariants } from './utils/variants.js';
|
|
43
|
+
export { colors } from './colors/index.js';
|
|
44
|
+
export { nextui } from './plugin.js';
|
|
45
|
+
export { BaseThemeUnit, ConfigTheme, ConfigThemes, DefaultThemeType, FontThemeUnit, LayoutTheme, NextUIPluginConfig } from './types.js';
|
|
46
|
+
export { tv } from './utils/tv.js';
|
|
47
|
+
export { TV, VariantProps } from 'tailwind-variants';
|
|
48
|
+
export { BaseColors, ColorScale, SemanticBaseColors, ThemeColors } from './colors/types.js';
|
|
49
|
+
export { commonColors } from './colors/common.js';
|
|
50
|
+
export { semanticColors } from './colors/semantic.js';
|
|
51
|
+
import 'tailwind-variants/dist/config';
|
|
52
|
+
import 'tailwindcss/plugin.js';
|