@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,140 @@
|
|
|
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/code.ts
|
|
21
|
+
var code_exports = {};
|
|
22
|
+
__export(code_exports, {
|
|
23
|
+
code: () => code
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(code_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
|
|
28
|
+
// src/utils/variants.ts
|
|
29
|
+
var solid = {
|
|
30
|
+
neutral: "bg-neutral text-neutral-contrastText",
|
|
31
|
+
primary: "bg-primary text-primary-contrastText",
|
|
32
|
+
secondary: "bg-secondary text-secondary-contrastText",
|
|
33
|
+
success: "bg-success text-success-contrastText",
|
|
34
|
+
warning: "bg-warning text-warning-contrastText",
|
|
35
|
+
danger: "bg-danger text-danger-contrastText",
|
|
36
|
+
foreground: "bg-foreground text-background"
|
|
37
|
+
};
|
|
38
|
+
var shadow = {
|
|
39
|
+
neutral: "shadow-lg shadow-neutral/50 bg-neutral text-neutral-contrastText",
|
|
40
|
+
primary: "shadow-lg shadow-primary/40 bg-primary text-primary-contrastText",
|
|
41
|
+
secondary: "shadow-lg shadow-secondary/40 bg-secondary text-secondary-contrastText",
|
|
42
|
+
success: "shadow-lg shadow-success/40 bg-success text-success-contrastText",
|
|
43
|
+
warning: "shadow-lg shadow-warning/40 bg-warning text-warning-contrastText",
|
|
44
|
+
danger: "shadow-lg shadow-danger/40 bg-danger text-danger-contrastText",
|
|
45
|
+
foreground: "shadow-lg shadow-foreground/40 bg-foreground text-background"
|
|
46
|
+
};
|
|
47
|
+
var bordered = {
|
|
48
|
+
neutral: "bg-transparent border-neutral text-foreground",
|
|
49
|
+
primary: "bg-transparent border-primary text-primary",
|
|
50
|
+
secondary: "bg-transparent border-secondary text-secondary",
|
|
51
|
+
success: "bg-transparent border-success text-success",
|
|
52
|
+
warning: "bg-transparent border-warning text-warning",
|
|
53
|
+
danger: "bg-transparent border-danger text-danger",
|
|
54
|
+
foreground: "bg-transparent border-foreground text-foreground"
|
|
55
|
+
};
|
|
56
|
+
var flat = {
|
|
57
|
+
neutral: "bg-neutral-100 text-neutral-contrastText",
|
|
58
|
+
primary: "bg-primary-50 text-primary",
|
|
59
|
+
secondary: "bg-secondary-100 text-secondary",
|
|
60
|
+
success: "bg-success-50 text-success",
|
|
61
|
+
warning: "bg-warning-50 text-warning",
|
|
62
|
+
danger: "bg-danger-50 text-danger",
|
|
63
|
+
foreground: "bg-foreground/10 text-foreground"
|
|
64
|
+
};
|
|
65
|
+
var faded = {
|
|
66
|
+
neutral: "border-neutral bg-neutral-100 text-neutral-contrastText",
|
|
67
|
+
primary: "border-neutral bg-neutral-100 text-primary",
|
|
68
|
+
secondary: "border-neutral bg-neutral-100 text-secondary",
|
|
69
|
+
success: "border-neutral bg-neutral-100 text-success",
|
|
70
|
+
warning: "border-neutral bg-neutral-100 text-warning",
|
|
71
|
+
danger: "border-neutral bg-neutral-100 text-danger",
|
|
72
|
+
foreground: "border-neutral bg-neutral-100 text-foreground"
|
|
73
|
+
};
|
|
74
|
+
var light = {
|
|
75
|
+
neutral: "bg-transparent text-neutral-contrastText",
|
|
76
|
+
primary: "bg-transparent text-primary",
|
|
77
|
+
secondary: "bg-transparent text-secondary",
|
|
78
|
+
success: "bg-transparent text-success",
|
|
79
|
+
warning: "bg-transparent text-warning",
|
|
80
|
+
danger: "bg-transparent text-danger",
|
|
81
|
+
foreground: "bg-transparent text-foreground"
|
|
82
|
+
};
|
|
83
|
+
var ghost = {
|
|
84
|
+
neutral: "border-neutral text-neutral-contrastText hover:!bg-neutral",
|
|
85
|
+
primary: "border-primary text-primary hover:!text-primary-contrastText hover:!bg-primary",
|
|
86
|
+
secondary: "border-secondary text-secondary hover:text-secondary-contrastText hover:!bg-secondary",
|
|
87
|
+
success: "border-success text-success hover:!text-success-contrastText hover:!bg-success",
|
|
88
|
+
warning: "border-warning text-warning hover:!text-warning-contrastText hover:!bg-warning",
|
|
89
|
+
danger: "border-danger text-danger hover:!text-danger-contrastText hover:!bg-danger",
|
|
90
|
+
foreground: "border-foreground text-foreground hover:!bg-foreground"
|
|
91
|
+
};
|
|
92
|
+
var colorVariants = {
|
|
93
|
+
solid,
|
|
94
|
+
shadow,
|
|
95
|
+
bordered,
|
|
96
|
+
flat,
|
|
97
|
+
faded,
|
|
98
|
+
light,
|
|
99
|
+
ghost
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// src/components/code.ts
|
|
103
|
+
var code = (0, import_tailwind_variants.tv)({
|
|
104
|
+
base: ["px-2", "py-1", "font-mono", "whitespace-pre-wrap"],
|
|
105
|
+
variants: {
|
|
106
|
+
color: {
|
|
107
|
+
neutral: colorVariants.flat.neutral,
|
|
108
|
+
primary: colorVariants.flat.primary,
|
|
109
|
+
secondary: colorVariants.flat.secondary,
|
|
110
|
+
success: colorVariants.flat.success,
|
|
111
|
+
warning: colorVariants.flat.warning,
|
|
112
|
+
danger: colorVariants.flat.danger
|
|
113
|
+
},
|
|
114
|
+
size: {
|
|
115
|
+
xs: "text-xs",
|
|
116
|
+
sm: "text-sm",
|
|
117
|
+
md: "text-base",
|
|
118
|
+
lg: "text-lg",
|
|
119
|
+
xl: "text-xl"
|
|
120
|
+
},
|
|
121
|
+
radius: {
|
|
122
|
+
none: "rounded-none",
|
|
123
|
+
base: "rounded-base",
|
|
124
|
+
sm: "rounded-sm",
|
|
125
|
+
md: "rounded-md",
|
|
126
|
+
lg: "rounded-lg",
|
|
127
|
+
xl: "rounded-xl",
|
|
128
|
+
full: "rounded-full"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
defaultVariants: {
|
|
132
|
+
color: "neutral",
|
|
133
|
+
size: "sm",
|
|
134
|
+
radius: "lg"
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
138
|
+
0 && (module.exports = {
|
|
139
|
+
code
|
|
140
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
2
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Drip wrapper **Tailwind Variants** component
|
|
6
|
+
*
|
|
7
|
+
* const styles = drip({...})
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <span ref={dripRef} className={styles())} />
|
|
11
|
+
*/
|
|
12
|
+
declare const drip: tailwind_variants.TVReturnType<tailwind_variants.TVVariantsDefault<undefined, string[]> | {}, unknown, undefined, undefined, string[], tailwind_variants_dist_config.TVConfig<tailwind_variants.TVVariantsDefault<undefined, string[]> | {}, unknown>>;
|
|
13
|
+
|
|
14
|
+
export { drip };
|
|
@@ -0,0 +1,33 @@
|
|
|
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/drip.ts
|
|
21
|
+
var drip_exports = {};
|
|
22
|
+
__export(drip_exports, {
|
|
23
|
+
drip: () => drip
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(drip_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var drip = (0, import_tailwind_variants.tv)({
|
|
28
|
+
base: ["absolute", "will-change-transform", "bg-current", "rounded-full", "animate-drip-expand"]
|
|
29
|
+
});
|
|
30
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
+
0 && (module.exports = {
|
|
32
|
+
drip
|
|
33
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { AvatarSlots, AvatarVariantProps, avatar } from './avatar.js';
|
|
2
|
+
export { AvatarGroupVariantProps, avatarGroup } from './avatar-group.js';
|
|
3
|
+
export { CardReturnType, CardSlots, CardVariantProps, card } from './card.js';
|
|
4
|
+
export { LinkVariantProps, link } from './link.js';
|
|
5
|
+
export { UserSlots, UserVariantProps, user } from './user.js';
|
|
6
|
+
export { ButtonVariantProps, button } from './button.js';
|
|
7
|
+
export { ButtonGroupVariantProps, buttonGroup } from './button-group.js';
|
|
8
|
+
export { drip } from './drip.js';
|
|
9
|
+
export { SpinnerSlots, SpinnerVariantProps, spinner } from './spinner.js';
|
|
10
|
+
export { CodeVariantProps, code } from './code.js';
|
|
11
|
+
export { TooltipSlots, TooltipVariantProps, tooltip } from './tooltip.js';
|
|
12
|
+
export { SnippetSlots, SnippetVariantProps, snippet } from './snippet.js';
|
|
13
|
+
export { ChipSlots, ChipVariantProps, chip } from './chip.js';
|
|
14
|
+
export { BadgeSlots, BadgeVariantProps, badge } from './badge.js';
|
|
15
|
+
export { CheckboxSlots, CheckboxVariantProps, checkbox } from './checkbox.js';
|
|
16
|
+
export { CheckboxGroupSlots, checkboxGroup } from './checkbox-group.js';
|
|
17
|
+
export { RadioSlots, RadioVariantProps, radio } from './radio.js';
|
|
18
|
+
export { RadioGroupSlots, radioGroup } from './radio-group.js';
|
|
19
|
+
export { PaginationSlots, PaginationVariantProps, pagination } from './pagination.js';
|
|
20
|
+
export { ToggleSlots, ToggleVariantProps, toggle } from './toggle.js';
|
|
21
|
+
export { AccordionItemSlots, AccordionItemVariantProps, accordionItem } from './accordion-item.js';
|
|
22
|
+
export { AccordionGroupVariantProps, accordion } from './accordion.js';
|
|
23
|
+
import 'tailwind-variants';
|
|
24
|
+
import 'tailwind-variants/dist/config';
|