@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
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import "./chunk-5SJ7B53O.mjs";
|
|
2
|
+
import {
|
|
3
|
+
spinner
|
|
4
|
+
} from "./chunk-CO6ANWRA.mjs";
|
|
5
|
+
import {
|
|
6
|
+
toggle
|
|
7
|
+
} from "./chunk-VB4T62HR.mjs";
|
|
8
|
+
import {
|
|
9
|
+
tooltip
|
|
10
|
+
} from "./chunk-QIC7EALL.mjs";
|
|
11
|
+
import {
|
|
12
|
+
user
|
|
13
|
+
} from "./chunk-FS36US4S.mjs";
|
|
14
|
+
import {
|
|
15
|
+
code
|
|
16
|
+
} from "./chunk-B5S7HT6N.mjs";
|
|
17
|
+
import {
|
|
18
|
+
drip
|
|
19
|
+
} from "./chunk-OIVGIOVG.mjs";
|
|
20
|
+
import {
|
|
21
|
+
link
|
|
22
|
+
} from "./chunk-5OE5CWK6.mjs";
|
|
23
|
+
import {
|
|
24
|
+
pagination
|
|
25
|
+
} from "./chunk-7BYRB2YS.mjs";
|
|
26
|
+
import {
|
|
27
|
+
radioGroup
|
|
28
|
+
} from "./chunk-HHWXPWYN.mjs";
|
|
29
|
+
import {
|
|
30
|
+
radio
|
|
31
|
+
} from "./chunk-Y37XC5QN.mjs";
|
|
32
|
+
import {
|
|
33
|
+
snippet
|
|
34
|
+
} from "./chunk-QMP2FDFR.mjs";
|
|
35
|
+
import {
|
|
36
|
+
avatar
|
|
37
|
+
} from "./chunk-D4TJV7NY.mjs";
|
|
38
|
+
import {
|
|
39
|
+
badge
|
|
40
|
+
} from "./chunk-5Z3NCB7W.mjs";
|
|
41
|
+
import {
|
|
42
|
+
buttonGroup
|
|
43
|
+
} from "./chunk-VKFQ7EZN.mjs";
|
|
44
|
+
import {
|
|
45
|
+
button
|
|
46
|
+
} from "./chunk-OSARGUKT.mjs";
|
|
47
|
+
import {
|
|
48
|
+
card
|
|
49
|
+
} from "./chunk-Z5OKZPNV.mjs";
|
|
50
|
+
import {
|
|
51
|
+
checkboxGroup
|
|
52
|
+
} from "./chunk-U77YMEWM.mjs";
|
|
53
|
+
import {
|
|
54
|
+
checkbox
|
|
55
|
+
} from "./chunk-NJQP2VWT.mjs";
|
|
56
|
+
import {
|
|
57
|
+
chip
|
|
58
|
+
} from "./chunk-TV7EJNXI.mjs";
|
|
59
|
+
import {
|
|
60
|
+
accordionItem
|
|
61
|
+
} from "./chunk-RD42SVXB.mjs";
|
|
62
|
+
import "./chunk-CMYR6AOY.mjs";
|
|
63
|
+
import "./chunk-K7LK7NCE.mjs";
|
|
64
|
+
import {
|
|
65
|
+
colorVariants
|
|
66
|
+
} from "./chunk-LGGZKBOO.mjs";
|
|
67
|
+
import {
|
|
68
|
+
accordion
|
|
69
|
+
} from "./chunk-YYBLBQIV.mjs";
|
|
70
|
+
import {
|
|
71
|
+
avatarGroup
|
|
72
|
+
} from "./chunk-MLH3XSY7.mjs";
|
|
73
|
+
import {
|
|
74
|
+
absoluteFullClasses,
|
|
75
|
+
baseStyles,
|
|
76
|
+
focusVisibleClasses,
|
|
77
|
+
ringClasses,
|
|
78
|
+
translateCenterClasses
|
|
79
|
+
} from "./chunk-IJCHUO4J.mjs";
|
|
80
|
+
import "./chunk-WQEDQHKX.mjs";
|
|
81
|
+
import {
|
|
82
|
+
colors
|
|
83
|
+
} from "./chunk-7MQD7UA2.mjs";
|
|
84
|
+
import {
|
|
85
|
+
semanticColors
|
|
86
|
+
} from "./chunk-Y52EXP4A.mjs";
|
|
87
|
+
import "./chunk-37PIXVP4.mjs";
|
|
88
|
+
import "./chunk-M63AFAHO.mjs";
|
|
89
|
+
import {
|
|
90
|
+
commonColors
|
|
91
|
+
} from "./chunk-CRCBVLUP.mjs";
|
|
92
|
+
import "./chunk-DCEG5LGX.mjs";
|
|
93
|
+
import "./chunk-L2OL7R23.mjs";
|
|
94
|
+
import "./chunk-YZYGFPNK.mjs";
|
|
95
|
+
import "./chunk-Y4YW5MKL.mjs";
|
|
96
|
+
import "./chunk-KZJBCC2H.mjs";
|
|
97
|
+
import "./chunk-T3GWIVAM.mjs";
|
|
98
|
+
import "./chunk-OR5PUD24.mjs";
|
|
99
|
+
|
|
100
|
+
// src/index.ts
|
|
101
|
+
import { cn as cnBase } from "tailwind-variants";
|
|
102
|
+
import { tv } from "tailwind-variants";
|
|
103
|
+
var cn = (...classes) => cnBase(classes)();
|
|
104
|
+
export {
|
|
105
|
+
absoluteFullClasses,
|
|
106
|
+
accordion,
|
|
107
|
+
accordionItem,
|
|
108
|
+
avatar,
|
|
109
|
+
avatarGroup,
|
|
110
|
+
badge,
|
|
111
|
+
baseStyles,
|
|
112
|
+
button,
|
|
113
|
+
buttonGroup,
|
|
114
|
+
card,
|
|
115
|
+
checkbox,
|
|
116
|
+
checkboxGroup,
|
|
117
|
+
chip,
|
|
118
|
+
cn,
|
|
119
|
+
code,
|
|
120
|
+
colorVariants,
|
|
121
|
+
colors,
|
|
122
|
+
commonColors,
|
|
123
|
+
drip,
|
|
124
|
+
focusVisibleClasses,
|
|
125
|
+
link,
|
|
126
|
+
pagination,
|
|
127
|
+
radio,
|
|
128
|
+
radioGroup,
|
|
129
|
+
ringClasses,
|
|
130
|
+
semanticColors,
|
|
131
|
+
snippet,
|
|
132
|
+
spinner,
|
|
133
|
+
toggle,
|
|
134
|
+
tooltip,
|
|
135
|
+
translateCenterClasses,
|
|
136
|
+
tv,
|
|
137
|
+
user
|
|
138
|
+
};
|
package/dist/plugin.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as tailwindcss from 'tailwindcss';
|
|
2
|
+
import * as tailwindcss_types_config from 'tailwindcss/types/config';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Based on the tw-colors by L-Blondy
|
|
6
|
+
* @see https://github.com/L-Blondy/tw-colors
|
|
7
|
+
*/
|
|
8
|
+
interface MaybeNested<K extends keyof any = string, V = string> {
|
|
9
|
+
[key: string]: V | MaybeNested<K, V>;
|
|
10
|
+
}
|
|
11
|
+
declare const SCHEME: unique symbol;
|
|
12
|
+
type Colors = MaybeNested<string, string>;
|
|
13
|
+
interface ColorsWithScheme<T> extends Colors {
|
|
14
|
+
[SCHEME]?: T;
|
|
15
|
+
}
|
|
16
|
+
type SchemerFn<T> = (colors: Colors) => ColorsWithScheme<T>;
|
|
17
|
+
type ConfigObject = Record<string, ColorsWithScheme<"light" | "dark">>;
|
|
18
|
+
type ConfigFunction = ({ light, dark, }: {
|
|
19
|
+
light: SchemerFn<"light">;
|
|
20
|
+
dark: SchemerFn<"dark">;
|
|
21
|
+
}) => ConfigObject;
|
|
22
|
+
declare const resolveConfig: (config?: ConfigObject | ConfigFunction) => {
|
|
23
|
+
variants: {
|
|
24
|
+
name: string;
|
|
25
|
+
definition: string[];
|
|
26
|
+
}[];
|
|
27
|
+
utilities: Record<string, Record<string, any>>;
|
|
28
|
+
colors: Record<string, ({ opacityValue, opacityVariable }: {
|
|
29
|
+
opacityValue: string;
|
|
30
|
+
opacityVariable: string;
|
|
31
|
+
}) => string>;
|
|
32
|
+
};
|
|
33
|
+
declare const nextui: (config?: ConfigObject | ConfigFunction) => {
|
|
34
|
+
handler: tailwindcss_types_config.PluginCreator;
|
|
35
|
+
config?: Partial<tailwindcss.Config> | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export { Colors, ColorsWithScheme, ConfigFunction, ConfigObject, nextui, resolveConfig };
|