@nextui-org/theme 0.0.0-dev-v2-20230326012034
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 +57 -0
- package/dist/animations/index.js +84 -0
- package/dist/animations/index.mjs +6 -0
- package/dist/chunk-37PIXVP4.mjs +33 -0
- package/dist/chunk-45FXWIO6.mjs +70 -0
- package/dist/chunk-5OE5CWK6.mjs +84 -0
- package/dist/chunk-5SJ7B53O.mjs +0 -0
- package/dist/chunk-5Z3NCB7W.mjs +391 -0
- package/dist/chunk-7BYRB2YS.mjs +386 -0
- package/dist/chunk-7MQD7UA2.mjs +16 -0
- package/dist/chunk-B5S7HT6N.mjs +44 -0
- package/dist/chunk-CMYR6AOY.mjs +0 -0
- package/dist/chunk-CO6ANWRA.mjs +125 -0
- package/dist/chunk-CRCBVLUP.mjs +38 -0
- package/dist/chunk-D4TJV7NY.mjs +206 -0
- package/dist/chunk-DCEG5LGX.mjs +17 -0
- package/dist/chunk-FS36US4S.mjs +25 -0
- package/dist/chunk-HHWXPWYN.mjs +13 -0
- package/dist/chunk-IJCHUO4J.mjs +38 -0
- package/dist/chunk-K7LK7NCE.mjs +0 -0
- package/dist/chunk-KZJBCC2H.mjs +17 -0
- package/dist/chunk-L2OL7R23.mjs +17 -0
- package/dist/chunk-LGGZKBOO.mjs +77 -0
- package/dist/chunk-M63AFAHO.mjs +0 -0
- package/dist/chunk-MLH3XSY7.mjs +14 -0
- package/dist/chunk-NJQP2VWT.mjs +160 -0
- package/dist/chunk-OIVGIOVG.mjs +9 -0
- package/dist/chunk-OR5PUD24.mjs +17 -0
- package/dist/chunk-OSARGUKT.mjs +326 -0
- package/dist/chunk-QIC7EALL.mjs +277 -0
- package/dist/chunk-QMP2FDFR.mjs +240 -0
- package/dist/chunk-QPN3H4E3.mjs +60 -0
- package/dist/chunk-RD42SVXB.mjs +90 -0
- package/dist/chunk-T3GWIVAM.mjs +17 -0
- package/dist/chunk-TV7EJNXI.mjs +457 -0
- package/dist/chunk-U77YMEWM.mjs +13 -0
- package/dist/chunk-VB4T62HR.mjs +159 -0
- package/dist/chunk-VKFQ7EZN.mjs +17 -0
- package/dist/chunk-WQEDQHKX.mjs +0 -0
- package/dist/chunk-Y37XC5QN.mjs +169 -0
- package/dist/chunk-Y4YW5MKL.mjs +17 -0
- package/dist/chunk-Y52EXP4A.mjs +142 -0
- package/dist/chunk-YYBLBQIV.mjs +16 -0
- package/dist/chunk-YZYGFPNK.mjs +17 -0
- package/dist/chunk-Z5OKZPNV.mjs +190 -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 +91 -0
- package/dist/colors/common.js +140 -0
- package/dist/colors/common.mjs +13 -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 +97 -0
- package/dist/colors/index.js +306 -0
- package/dist/colors/index.mjs +23 -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 +298 -0
- package/dist/colors/semantic.mjs +19 -0
- package/dist/colors/types.d.ts +37 -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.d.ts +4 -0
- package/dist/colors.js +306 -0
- package/dist/colors.mjs +24 -0
- package/dist/components/accordion-item.d.ts +135 -0
- package/dist/components/accordion-item.js +122 -0
- package/dist/components/accordion-item.mjs +10 -0
- package/dist/components/accordion.d.ts +30 -0
- package/dist/components/accordion.js +40 -0
- package/dist/components/accordion.mjs +6 -0
- package/dist/components/avatar-group.d.ts +26 -0
- package/dist/components/avatar-group.js +38 -0
- package/dist/components/avatar-group.mjs +6 -0
- package/dist/components/avatar.d.ts +211 -0
- package/dist/components/avatar.js +315 -0
- package/dist/components/avatar.mjs +10 -0
- package/dist/components/badge.d.ts +235 -0
- package/dist/components/badge.js +487 -0
- package/dist/components/badge.mjs +10 -0
- package/dist/components/button-group.d.ts +26 -0
- package/dist/components/button-group.js +41 -0
- package/dist/components/button-group.mjs +6 -0
- package/dist/components/button.d.ts +122 -0
- package/dist/components/button.js +429 -0
- package/dist/components/button.mjs +10 -0
- package/dist/components/card.d.ts +239 -0
- package/dist/components/card.js +222 -0
- package/dist/components/card.mjs +10 -0
- package/dist/components/checkbox-group.d.ts +32 -0
- package/dist/components/checkbox-group.js +37 -0
- package/dist/components/checkbox-group.mjs +6 -0
- package/dist/components/checkbox.d.ts +226 -0
- package/dist/components/checkbox.js +192 -0
- package/dist/components/checkbox.mjs +10 -0
- package/dist/components/chip.d.ts +274 -0
- package/dist/components/chip.js +560 -0
- package/dist/components/chip.mjs +10 -0
- package/dist/components/code.d.ts +68 -0
- package/dist/components/code.js +140 -0
- package/dist/components/code.mjs +10 -0
- package/dist/components/drip.d.ts +14 -0
- package/dist/components/drip.js +33 -0
- package/dist/components/drip.mjs +6 -0
- package/dist/components/index.d.ts +24 -0
- package/dist/components/index.js +3442 -0
- package/dist/components/index.mjs +95 -0
- package/dist/components/link.d.ts +74 -0
- package/dist/components/link.js +117 -0
- package/dist/components/link.mjs +10 -0
- package/dist/components/pagination.d.ts +201 -0
- package/dist/components/pagination.js +489 -0
- package/dist/components/pagination.mjs +10 -0
- package/dist/components/radio-group.d.ts +32 -0
- package/dist/components/radio-group.js +37 -0
- package/dist/components/radio-group.mjs +6 -0
- package/dist/components/radio.d.ts +271 -0
- package/dist/components/radio.js +201 -0
- package/dist/components/radio.mjs +10 -0
- package/dist/components/snippet.d.ts +184 -0
- package/dist/components/snippet.js +343 -0
- package/dist/components/snippet.mjs +10 -0
- package/dist/components/spinner.d.ts +192 -0
- package/dist/components/spinner.js +149 -0
- package/dist/components/spinner.mjs +6 -0
- package/dist/components/toggle.d.ts +197 -0
- package/dist/components/toggle.js +191 -0
- package/dist/components/toggle.mjs +10 -0
- package/dist/components/tooltip.d.ts +176 -0
- package/dist/components/tooltip.js +373 -0
- package/dist/components/tooltip.mjs +10 -0
- package/dist/components/user.d.ts +40 -0
- package/dist/components/user.js +57 -0
- package/dist/components/user.mjs +10 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +3747 -0
- package/dist/index.mjs +138 -0
- package/dist/plugin.d.ts +38 -0
- package/dist/plugin.js +564 -0
- package/dist/plugin.mjs +151 -0
- package/dist/utilities/index.d.ts +72 -0
- package/dist/utilities/index.js +94 -0
- package/dist/utilities/index.mjs +6 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +144 -0
- package/dist/utils/index.mjs +20 -0
- package/dist/utils/object.d.ts +4 -0
- package/dist/utils/object.js +58 -0
- package/dist/utils/object.mjs +8 -0
- package/dist/utils/styles.d.ts +20 -0
- package/dist/utils/styles.js +66 -0
- package/dist/utils/styles.mjs +14 -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 +85 -0
- package/plugin.d.ts +1 -0
- package/plugin.js +1 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
declare const utilities: {
|
|
2
|
+
/**
|
|
3
|
+
* Custom utilities
|
|
4
|
+
*/
|
|
5
|
+
".leading-inherit": {
|
|
6
|
+
"line-height": string;
|
|
7
|
+
};
|
|
8
|
+
".bg-img-inherit": {
|
|
9
|
+
"background-image": string;
|
|
10
|
+
};
|
|
11
|
+
".bg-clip-inherit": {
|
|
12
|
+
"background-clip": string;
|
|
13
|
+
};
|
|
14
|
+
".text-fill-inherit": {
|
|
15
|
+
"-webkit-text-fill-color": string;
|
|
16
|
+
};
|
|
17
|
+
".transition-background": {
|
|
18
|
+
"transition-property": string;
|
|
19
|
+
"transition-timing-function": string;
|
|
20
|
+
"transition-duration": string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Tailwind utilities
|
|
24
|
+
*/
|
|
25
|
+
".transition-all": {
|
|
26
|
+
"transition-property": string;
|
|
27
|
+
"transition-timing-function": string;
|
|
28
|
+
"transition-duration": string;
|
|
29
|
+
};
|
|
30
|
+
".transition": {
|
|
31
|
+
"transition-property": string;
|
|
32
|
+
"transition-timing-function": string;
|
|
33
|
+
"transition-duration": string;
|
|
34
|
+
};
|
|
35
|
+
".transition-colors": {
|
|
36
|
+
"transition-property": string;
|
|
37
|
+
"transition-timing-function": string;
|
|
38
|
+
"transition-duration": string;
|
|
39
|
+
};
|
|
40
|
+
".transition-opacity": {
|
|
41
|
+
"transition-property": string;
|
|
42
|
+
"transition-timing-function": string;
|
|
43
|
+
"transition-duration": string;
|
|
44
|
+
};
|
|
45
|
+
".transition-width": {
|
|
46
|
+
"transition-property": string;
|
|
47
|
+
"transition-timing-function": string;
|
|
48
|
+
"transition-duration": string;
|
|
49
|
+
};
|
|
50
|
+
".transition-shadow": {
|
|
51
|
+
"transition-property": string;
|
|
52
|
+
"transition-timing-function": string;
|
|
53
|
+
"transition-duration": string;
|
|
54
|
+
};
|
|
55
|
+
".transition-transform": {
|
|
56
|
+
"transition-property": string;
|
|
57
|
+
"transition-timing-function": string;
|
|
58
|
+
"transition-duration": string;
|
|
59
|
+
};
|
|
60
|
+
".transition-transform-opacity": {
|
|
61
|
+
"transition-property": string;
|
|
62
|
+
"transition-timing-function": string;
|
|
63
|
+
"transition-duration": string;
|
|
64
|
+
};
|
|
65
|
+
".transition-transform-background": {
|
|
66
|
+
"transition-property": string;
|
|
67
|
+
"transition-timing-function": string;
|
|
68
|
+
"transition-duration": string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export { utilities };
|
|
@@ -0,0 +1,94 @@
|
|
|
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/index.ts
|
|
21
|
+
var utilities_exports = {};
|
|
22
|
+
__export(utilities_exports, {
|
|
23
|
+
utilities: () => utilities
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(utilities_exports);
|
|
26
|
+
var DEFAULT_TRANSITION_DURATION = "250ms";
|
|
27
|
+
var utilities = {
|
|
28
|
+
".leading-inherit": {
|
|
29
|
+
"line-height": "inherit"
|
|
30
|
+
},
|
|
31
|
+
".bg-img-inherit": {
|
|
32
|
+
"background-image": "inherit"
|
|
33
|
+
},
|
|
34
|
+
".bg-clip-inherit": {
|
|
35
|
+
"background-clip": "inherit"
|
|
36
|
+
},
|
|
37
|
+
".text-fill-inherit": {
|
|
38
|
+
"-webkit-text-fill-color": "inherit"
|
|
39
|
+
},
|
|
40
|
+
".transition-background": {
|
|
41
|
+
"transition-property": "background",
|
|
42
|
+
"transition-timing-function": "ease",
|
|
43
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
44
|
+
},
|
|
45
|
+
".transition-all": {
|
|
46
|
+
"transition-property": "all",
|
|
47
|
+
"transition-timing-function": "ease",
|
|
48
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
49
|
+
},
|
|
50
|
+
".transition": {
|
|
51
|
+
"transition-property": "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",
|
|
52
|
+
"transition-timing-function": "ease",
|
|
53
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
54
|
+
},
|
|
55
|
+
".transition-colors": {
|
|
56
|
+
"transition-property": "color, background-color, border-color, text-decoration-color, fill, stroke",
|
|
57
|
+
"transition-timing-function": "ease",
|
|
58
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
59
|
+
},
|
|
60
|
+
".transition-opacity": {
|
|
61
|
+
"transition-property": "opacity",
|
|
62
|
+
"transition-timing-function": "ease",
|
|
63
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
64
|
+
},
|
|
65
|
+
".transition-width": {
|
|
66
|
+
"transition-property": "width",
|
|
67
|
+
"transition-timing-function": "ease",
|
|
68
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
69
|
+
},
|
|
70
|
+
".transition-shadow": {
|
|
71
|
+
"transition-property": "box-shadow",
|
|
72
|
+
"transition-timing-function": "ease",
|
|
73
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
74
|
+
},
|
|
75
|
+
".transition-transform": {
|
|
76
|
+
"transition-property": "transform",
|
|
77
|
+
"transition-timing-function": "ease",
|
|
78
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
79
|
+
},
|
|
80
|
+
".transition-transform-opacity": {
|
|
81
|
+
"transition-property": "transform, opacity",
|
|
82
|
+
"transition-timing-function": "ease",
|
|
83
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
84
|
+
},
|
|
85
|
+
".transition-transform-background": {
|
|
86
|
+
"transition-property": "transform, background",
|
|
87
|
+
"transition-timing-function": "ease",
|
|
88
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
92
|
+
0 && (module.exports = {
|
|
93
|
+
utilities
|
|
94
|
+
});
|
|
@@ -0,0 +1,144 @@
|
|
|
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
|
+
colorVariants: () => colorVariants,
|
|
26
|
+
focusVisibleClasses: () => focusVisibleClasses,
|
|
27
|
+
ringClasses: () => ringClasses,
|
|
28
|
+
translateCenterClasses: () => translateCenterClasses
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(utils_exports);
|
|
31
|
+
|
|
32
|
+
// src/utils/styles.ts
|
|
33
|
+
var baseStyles = {
|
|
34
|
+
color: "hsl(var(--nextui-foreground))",
|
|
35
|
+
backgroundColor: "hsl(var(--nextui-background))"
|
|
36
|
+
};
|
|
37
|
+
var focusVisibleClasses = [
|
|
38
|
+
"focus:outline-0",
|
|
39
|
+
"focus-visible:ring-2",
|
|
40
|
+
"focus-visible:ring-primary",
|
|
41
|
+
"focus-visible:ring-offset-2",
|
|
42
|
+
"focus-visible:transition-shadow",
|
|
43
|
+
"focus-visible:ring-offset-background",
|
|
44
|
+
"dark:focus-visible:ring-offset-background-dark"
|
|
45
|
+
];
|
|
46
|
+
var ringClasses = [
|
|
47
|
+
"outline-none",
|
|
48
|
+
"ring-2",
|
|
49
|
+
"!ring-primary",
|
|
50
|
+
"ring-offset-2",
|
|
51
|
+
"ring-offset-background",
|
|
52
|
+
"dark:ring-offset-background-dark"
|
|
53
|
+
];
|
|
54
|
+
var translateCenterClasses = [
|
|
55
|
+
"absolute",
|
|
56
|
+
"top-1/2",
|
|
57
|
+
"left-1/2",
|
|
58
|
+
"-translate-x-1/2",
|
|
59
|
+
"-translate-y-1/2"
|
|
60
|
+
];
|
|
61
|
+
var absoluteFullClasses = ["absolute", "inset-0"];
|
|
62
|
+
|
|
63
|
+
// src/utils/variants.ts
|
|
64
|
+
var solid = {
|
|
65
|
+
neutral: "bg-neutral text-neutral-contrastText",
|
|
66
|
+
primary: "bg-primary text-primary-contrastText",
|
|
67
|
+
secondary: "bg-secondary text-secondary-contrastText",
|
|
68
|
+
success: "bg-success text-success-contrastText",
|
|
69
|
+
warning: "bg-warning text-warning-contrastText",
|
|
70
|
+
danger: "bg-danger text-danger-contrastText",
|
|
71
|
+
foreground: "bg-foreground text-background"
|
|
72
|
+
};
|
|
73
|
+
var shadow = {
|
|
74
|
+
neutral: "shadow-lg shadow-neutral/50 bg-neutral text-neutral-contrastText",
|
|
75
|
+
primary: "shadow-lg shadow-primary/40 bg-primary text-primary-contrastText",
|
|
76
|
+
secondary: "shadow-lg shadow-secondary/40 bg-secondary text-secondary-contrastText",
|
|
77
|
+
success: "shadow-lg shadow-success/40 bg-success text-success-contrastText",
|
|
78
|
+
warning: "shadow-lg shadow-warning/40 bg-warning text-warning-contrastText",
|
|
79
|
+
danger: "shadow-lg shadow-danger/40 bg-danger text-danger-contrastText",
|
|
80
|
+
foreground: "shadow-lg shadow-foreground/40 bg-foreground text-background"
|
|
81
|
+
};
|
|
82
|
+
var bordered = {
|
|
83
|
+
neutral: "bg-transparent border-neutral text-foreground",
|
|
84
|
+
primary: "bg-transparent border-primary text-primary",
|
|
85
|
+
secondary: "bg-transparent border-secondary text-secondary",
|
|
86
|
+
success: "bg-transparent border-success text-success",
|
|
87
|
+
warning: "bg-transparent border-warning text-warning",
|
|
88
|
+
danger: "bg-transparent border-danger text-danger",
|
|
89
|
+
foreground: "bg-transparent border-foreground text-foreground"
|
|
90
|
+
};
|
|
91
|
+
var flat = {
|
|
92
|
+
neutral: "bg-neutral-100 text-neutral-contrastText",
|
|
93
|
+
primary: "bg-primary-50 text-primary",
|
|
94
|
+
secondary: "bg-secondary-100 text-secondary",
|
|
95
|
+
success: "bg-success-50 text-success",
|
|
96
|
+
warning: "bg-warning-50 text-warning",
|
|
97
|
+
danger: "bg-danger-50 text-danger",
|
|
98
|
+
foreground: "bg-foreground/10 text-foreground"
|
|
99
|
+
};
|
|
100
|
+
var faded = {
|
|
101
|
+
neutral: "border-neutral bg-neutral-100 text-neutral-contrastText",
|
|
102
|
+
primary: "border-neutral bg-neutral-100 text-primary",
|
|
103
|
+
secondary: "border-neutral bg-neutral-100 text-secondary",
|
|
104
|
+
success: "border-neutral bg-neutral-100 text-success",
|
|
105
|
+
warning: "border-neutral bg-neutral-100 text-warning",
|
|
106
|
+
danger: "border-neutral bg-neutral-100 text-danger",
|
|
107
|
+
foreground: "border-neutral bg-neutral-100 text-foreground"
|
|
108
|
+
};
|
|
109
|
+
var light = {
|
|
110
|
+
neutral: "bg-transparent text-neutral-contrastText",
|
|
111
|
+
primary: "bg-transparent text-primary",
|
|
112
|
+
secondary: "bg-transparent text-secondary",
|
|
113
|
+
success: "bg-transparent text-success",
|
|
114
|
+
warning: "bg-transparent text-warning",
|
|
115
|
+
danger: "bg-transparent text-danger",
|
|
116
|
+
foreground: "bg-transparent text-foreground"
|
|
117
|
+
};
|
|
118
|
+
var ghost = {
|
|
119
|
+
neutral: "border-neutral text-neutral-contrastText hover:!bg-neutral",
|
|
120
|
+
primary: "border-primary text-primary hover:!text-primary-contrastText hover:!bg-primary",
|
|
121
|
+
secondary: "border-secondary text-secondary hover:text-secondary-contrastText hover:!bg-secondary",
|
|
122
|
+
success: "border-success text-success hover:!text-success-contrastText hover:!bg-success",
|
|
123
|
+
warning: "border-warning text-warning hover:!text-warning-contrastText hover:!bg-warning",
|
|
124
|
+
danger: "border-danger text-danger hover:!text-danger-contrastText hover:!bg-danger",
|
|
125
|
+
foreground: "border-foreground text-foreground hover:!bg-foreground"
|
|
126
|
+
};
|
|
127
|
+
var colorVariants = {
|
|
128
|
+
solid,
|
|
129
|
+
shadow,
|
|
130
|
+
bordered,
|
|
131
|
+
flat,
|
|
132
|
+
faded,
|
|
133
|
+
light,
|
|
134
|
+
ghost
|
|
135
|
+
};
|
|
136
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
137
|
+
0 && (module.exports = {
|
|
138
|
+
absoluteFullClasses,
|
|
139
|
+
baseStyles,
|
|
140
|
+
colorVariants,
|
|
141
|
+
focusVisibleClasses,
|
|
142
|
+
ringClasses,
|
|
143
|
+
translateCenterClasses
|
|
144
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "../chunk-CMYR6AOY.mjs";
|
|
2
|
+
import "../chunk-K7LK7NCE.mjs";
|
|
3
|
+
import {
|
|
4
|
+
colorVariants
|
|
5
|
+
} from "../chunk-LGGZKBOO.mjs";
|
|
6
|
+
import {
|
|
7
|
+
absoluteFullClasses,
|
|
8
|
+
baseStyles,
|
|
9
|
+
focusVisibleClasses,
|
|
10
|
+
ringClasses,
|
|
11
|
+
translateCenterClasses
|
|
12
|
+
} from "../chunk-IJCHUO4J.mjs";
|
|
13
|
+
export {
|
|
14
|
+
absoluteFullClasses,
|
|
15
|
+
baseStyles,
|
|
16
|
+
colorVariants,
|
|
17
|
+
focusVisibleClasses,
|
|
18
|
+
ringClasses,
|
|
19
|
+
translateCenterClasses
|
|
20
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
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/object.ts
|
|
21
|
+
var object_exports = {};
|
|
22
|
+
__export(object_exports, {
|
|
23
|
+
removeDefaultKeys: () => removeDefaultKeys,
|
|
24
|
+
swapColorValues: () => swapColorValues
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(object_exports);
|
|
27
|
+
function swapColorValues(colors) {
|
|
28
|
+
const swappedColors = {};
|
|
29
|
+
const keys = Object.keys(colors);
|
|
30
|
+
const length = keys.length;
|
|
31
|
+
for (let i = 0; i < length / 2; i++) {
|
|
32
|
+
const key1 = keys[i];
|
|
33
|
+
const key2 = keys[length - 1 - i];
|
|
34
|
+
swappedColors[key1] = colors[key2];
|
|
35
|
+
swappedColors[key2] = colors[key1];
|
|
36
|
+
}
|
|
37
|
+
if (length % 2 !== 0) {
|
|
38
|
+
const middleKey = keys[Math.floor(length / 2)];
|
|
39
|
+
swappedColors[middleKey] = colors[middleKey];
|
|
40
|
+
}
|
|
41
|
+
return swappedColors;
|
|
42
|
+
}
|
|
43
|
+
function removeDefaultKeys(obj) {
|
|
44
|
+
const newObj = {};
|
|
45
|
+
for (const key in obj) {
|
|
46
|
+
if (key.endsWith("-DEFAULT")) {
|
|
47
|
+
newObj[key.replace("-DEFAULT", "")] = obj[key];
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
newObj[key] = obj[key];
|
|
51
|
+
}
|
|
52
|
+
return newObj;
|
|
53
|
+
}
|
|
54
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
+
0 && (module.exports = {
|
|
56
|
+
removeDefaultKeys,
|
|
57
|
+
swapColorValues
|
|
58
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is the base styles for all elements.
|
|
3
|
+
* Is meant to be used with the `addBase` method from tailwindcss.
|
|
4
|
+
*/
|
|
5
|
+
declare const baseStyles: {
|
|
6
|
+
color: string;
|
|
7
|
+
backgroundColor: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* focus styles when the element is focused by keyboard.
|
|
11
|
+
*/
|
|
12
|
+
declare const focusVisibleClasses: string[];
|
|
13
|
+
declare const ringClasses: string[];
|
|
14
|
+
/**
|
|
15
|
+
* This classes centers the element by using absolute positioning.
|
|
16
|
+
*/
|
|
17
|
+
declare const translateCenterClasses: string[];
|
|
18
|
+
declare const absoluteFullClasses: string[];
|
|
19
|
+
|
|
20
|
+
export { absoluteFullClasses, baseStyles, focusVisibleClasses, ringClasses, translateCenterClasses };
|
|
@@ -0,0 +1,66 @@
|
|
|
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/styles.ts
|
|
21
|
+
var styles_exports = {};
|
|
22
|
+
__export(styles_exports, {
|
|
23
|
+
absoluteFullClasses: () => absoluteFullClasses,
|
|
24
|
+
baseStyles: () => baseStyles,
|
|
25
|
+
focusVisibleClasses: () => focusVisibleClasses,
|
|
26
|
+
ringClasses: () => ringClasses,
|
|
27
|
+
translateCenterClasses: () => translateCenterClasses
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(styles_exports);
|
|
30
|
+
var baseStyles = {
|
|
31
|
+
color: "hsl(var(--nextui-foreground))",
|
|
32
|
+
backgroundColor: "hsl(var(--nextui-background))"
|
|
33
|
+
};
|
|
34
|
+
var focusVisibleClasses = [
|
|
35
|
+
"focus:outline-0",
|
|
36
|
+
"focus-visible:ring-2",
|
|
37
|
+
"focus-visible:ring-primary",
|
|
38
|
+
"focus-visible:ring-offset-2",
|
|
39
|
+
"focus-visible:transition-shadow",
|
|
40
|
+
"focus-visible:ring-offset-background",
|
|
41
|
+
"dark:focus-visible:ring-offset-background-dark"
|
|
42
|
+
];
|
|
43
|
+
var ringClasses = [
|
|
44
|
+
"outline-none",
|
|
45
|
+
"ring-2",
|
|
46
|
+
"!ring-primary",
|
|
47
|
+
"ring-offset-2",
|
|
48
|
+
"ring-offset-background",
|
|
49
|
+
"dark:ring-offset-background-dark"
|
|
50
|
+
];
|
|
51
|
+
var translateCenterClasses = [
|
|
52
|
+
"absolute",
|
|
53
|
+
"top-1/2",
|
|
54
|
+
"left-1/2",
|
|
55
|
+
"-translate-x-1/2",
|
|
56
|
+
"-translate-y-1/2"
|
|
57
|
+
];
|
|
58
|
+
var absoluteFullClasses = ["absolute", "inset-0"];
|
|
59
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
60
|
+
0 && (module.exports = {
|
|
61
|
+
absoluteFullClasses,
|
|
62
|
+
baseStyles,
|
|
63
|
+
focusVisibleClasses,
|
|
64
|
+
ringClasses,
|
|
65
|
+
translateCenterClasses
|
|
66
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
absoluteFullClasses,
|
|
3
|
+
baseStyles,
|
|
4
|
+
focusVisibleClasses,
|
|
5
|
+
ringClasses,
|
|
6
|
+
translateCenterClasses
|
|
7
|
+
} from "../chunk-IJCHUO4J.mjs";
|
|
8
|
+
export {
|
|
9
|
+
absoluteFullClasses,
|
|
10
|
+
baseStyles,
|
|
11
|
+
focusVisibleClasses,
|
|
12
|
+
ringClasses,
|
|
13
|
+
translateCenterClasses
|
|
14
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/utils/types.ts
|
|
17
|
+
var types_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(types_exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../chunk-K7LK7NCE.mjs";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
declare const colorVariants: {
|
|
2
|
+
solid: {
|
|
3
|
+
neutral: string;
|
|
4
|
+
primary: string;
|
|
5
|
+
secondary: string;
|
|
6
|
+
success: string;
|
|
7
|
+
warning: string;
|
|
8
|
+
danger: string;
|
|
9
|
+
foreground: string;
|
|
10
|
+
};
|
|
11
|
+
shadow: {
|
|
12
|
+
neutral: string;
|
|
13
|
+
primary: string;
|
|
14
|
+
secondary: string;
|
|
15
|
+
success: string;
|
|
16
|
+
warning: string;
|
|
17
|
+
danger: string;
|
|
18
|
+
foreground: string;
|
|
19
|
+
};
|
|
20
|
+
bordered: {
|
|
21
|
+
neutral: string;
|
|
22
|
+
primary: string;
|
|
23
|
+
secondary: string;
|
|
24
|
+
success: string;
|
|
25
|
+
warning: string;
|
|
26
|
+
danger: string;
|
|
27
|
+
foreground: string;
|
|
28
|
+
};
|
|
29
|
+
flat: {
|
|
30
|
+
neutral: string;
|
|
31
|
+
primary: string;
|
|
32
|
+
secondary: string;
|
|
33
|
+
success: string;
|
|
34
|
+
warning: string;
|
|
35
|
+
danger: string;
|
|
36
|
+
foreground: string;
|
|
37
|
+
};
|
|
38
|
+
faded: {
|
|
39
|
+
neutral: string;
|
|
40
|
+
primary: string;
|
|
41
|
+
secondary: string;
|
|
42
|
+
success: string;
|
|
43
|
+
warning: string;
|
|
44
|
+
danger: string;
|
|
45
|
+
foreground: string;
|
|
46
|
+
};
|
|
47
|
+
light: {
|
|
48
|
+
neutral: string;
|
|
49
|
+
primary: string;
|
|
50
|
+
secondary: string;
|
|
51
|
+
success: string;
|
|
52
|
+
warning: string;
|
|
53
|
+
danger: string;
|
|
54
|
+
foreground: string;
|
|
55
|
+
};
|
|
56
|
+
ghost: {
|
|
57
|
+
neutral: string;
|
|
58
|
+
primary: string;
|
|
59
|
+
secondary: string;
|
|
60
|
+
success: string;
|
|
61
|
+
warning: string;
|
|
62
|
+
danger: string;
|
|
63
|
+
foreground: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export { colorVariants };
|