@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,169 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ringClasses
|
|
3
|
+
} from "./chunk-IJCHUO4J.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/radio.ts
|
|
6
|
+
import { tv } from "tailwind-variants";
|
|
7
|
+
var radio = tv({
|
|
8
|
+
slots: {
|
|
9
|
+
base: "relative max-w-fit inline-flex items-center justify-start cursor-pointer",
|
|
10
|
+
wrapper: [
|
|
11
|
+
"relative",
|
|
12
|
+
"inline-flex",
|
|
13
|
+
"items-center",
|
|
14
|
+
"justify-center",
|
|
15
|
+
"flex-shrink-0",
|
|
16
|
+
"overflow-hidden",
|
|
17
|
+
"border-solid",
|
|
18
|
+
"border-2",
|
|
19
|
+
"box-border",
|
|
20
|
+
"border-neutral",
|
|
21
|
+
"data-[hover-unchecked=true]:bg-neutral-100"
|
|
22
|
+
],
|
|
23
|
+
labelWrapper: "flex flex-col ml-1",
|
|
24
|
+
control: [
|
|
25
|
+
"z-10",
|
|
26
|
+
"w-2",
|
|
27
|
+
"h-2",
|
|
28
|
+
"opacity-0",
|
|
29
|
+
"scale-0",
|
|
30
|
+
"origin-center",
|
|
31
|
+
"data-[checked=true]:opacity-100",
|
|
32
|
+
"data-[checked=true]:scale-100"
|
|
33
|
+
],
|
|
34
|
+
label: "relative text-foreground select-none",
|
|
35
|
+
description: "relative text-neutral-400"
|
|
36
|
+
},
|
|
37
|
+
variants: {
|
|
38
|
+
color: {
|
|
39
|
+
neutral: {
|
|
40
|
+
control: "bg-neutral-500 text-neutral-contrastText",
|
|
41
|
+
wrapper: "data-[checked=true]:border-neutral-500"
|
|
42
|
+
},
|
|
43
|
+
primary: {
|
|
44
|
+
control: "bg-primary text-primary-contrastText",
|
|
45
|
+
wrapper: "data-[checked=true]:border-primary"
|
|
46
|
+
},
|
|
47
|
+
secondary: {
|
|
48
|
+
control: "bg-secondary text-secondary-contrastText",
|
|
49
|
+
wrapper: "data-[checked=true]:border-secondary"
|
|
50
|
+
},
|
|
51
|
+
success: {
|
|
52
|
+
control: "bg-success text-success-contrastText",
|
|
53
|
+
wrapper: "data-[checked=true]:border-success"
|
|
54
|
+
},
|
|
55
|
+
warning: {
|
|
56
|
+
control: "bg-warning text-warning-contrastText",
|
|
57
|
+
wrapper: "data-[checked=true]:border-warning"
|
|
58
|
+
},
|
|
59
|
+
danger: {
|
|
60
|
+
control: "bg-danger text-danger-contrastText",
|
|
61
|
+
wrapper: "data-[checked=true]:border-danger"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
size: {
|
|
65
|
+
xs: {
|
|
66
|
+
wrapper: "w-3.5 h-3.5",
|
|
67
|
+
control: "w-1 h-1",
|
|
68
|
+
labelWrapper: "ml-1",
|
|
69
|
+
label: "text-xs",
|
|
70
|
+
description: "text-xs"
|
|
71
|
+
},
|
|
72
|
+
sm: {
|
|
73
|
+
wrapper: "w-4 h-4",
|
|
74
|
+
control: "w-1.5 h-1.5",
|
|
75
|
+
labelWrapper: "ml-1",
|
|
76
|
+
label: "text-sm",
|
|
77
|
+
description: "text-xs"
|
|
78
|
+
},
|
|
79
|
+
md: {
|
|
80
|
+
wrapper: "w-5 h-5",
|
|
81
|
+
control: "w-2 h-2",
|
|
82
|
+
labelWrapper: "ml-2",
|
|
83
|
+
label: "text-base",
|
|
84
|
+
description: "text-sm"
|
|
85
|
+
},
|
|
86
|
+
lg: {
|
|
87
|
+
wrapper: "w-6 h-6",
|
|
88
|
+
control: "w-2.5 h-2.5",
|
|
89
|
+
labelWrapper: "ml-2",
|
|
90
|
+
label: "text-lg",
|
|
91
|
+
description: "text-base"
|
|
92
|
+
},
|
|
93
|
+
xl: {
|
|
94
|
+
wrapper: "w-7 h-7",
|
|
95
|
+
control: "w-3 h-3",
|
|
96
|
+
labelWrapper: "ml-3",
|
|
97
|
+
label: "text-xl",
|
|
98
|
+
description: "text-lg"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
radius: {
|
|
102
|
+
none: {
|
|
103
|
+
wrapper: "rounded-none",
|
|
104
|
+
control: "rounded-none"
|
|
105
|
+
},
|
|
106
|
+
base: {
|
|
107
|
+
wrapper: "rounded",
|
|
108
|
+
control: "rounded"
|
|
109
|
+
},
|
|
110
|
+
sm: {
|
|
111
|
+
wrapper: "rounded-sm",
|
|
112
|
+
control: "rounded-sm"
|
|
113
|
+
},
|
|
114
|
+
md: {
|
|
115
|
+
wrapper: "rounded-md",
|
|
116
|
+
control: "rounded-sm"
|
|
117
|
+
},
|
|
118
|
+
lg: {
|
|
119
|
+
wrapper: "rounded-lg",
|
|
120
|
+
control: "rounded"
|
|
121
|
+
},
|
|
122
|
+
xl: {
|
|
123
|
+
wrapper: "rounded-xl",
|
|
124
|
+
control: "rounded-md"
|
|
125
|
+
},
|
|
126
|
+
full: {
|
|
127
|
+
wrapper: "rounded-full",
|
|
128
|
+
control: "rounded-full"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
isDisabled: {
|
|
132
|
+
true: {
|
|
133
|
+
base: "opacity-50 pointer-events-none"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
isInvalid: {
|
|
137
|
+
true: {
|
|
138
|
+
control: "bg-danger text-danger-contrastText",
|
|
139
|
+
wrapper: "border-danger data-[checked=true]:border-danger",
|
|
140
|
+
label: "text-danger",
|
|
141
|
+
description: "text-danger-300"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
isFocusVisible: {
|
|
145
|
+
true: {
|
|
146
|
+
wrapper: [...ringClasses]
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
disableAnimation: {
|
|
150
|
+
true: {},
|
|
151
|
+
false: {
|
|
152
|
+
wrapper: "transition-background",
|
|
153
|
+
control: "transition-transform-opacity"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
defaultVariants: {
|
|
158
|
+
color: "primary",
|
|
159
|
+
size: "md",
|
|
160
|
+
radius: "full",
|
|
161
|
+
isDisabled: false,
|
|
162
|
+
isInvalid: false,
|
|
163
|
+
disableAnimation: false
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
export {
|
|
168
|
+
radio
|
|
169
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/colors/yellow.ts
|
|
2
|
+
var yellow = {
|
|
3
|
+
50: "#fef6e9",
|
|
4
|
+
100: "#fdedd3",
|
|
5
|
+
200: "#fbdba7",
|
|
6
|
+
300: "#f9c97c",
|
|
7
|
+
400: "#f7b750",
|
|
8
|
+
500: "#f5a524",
|
|
9
|
+
600: "#c4841d",
|
|
10
|
+
700: "#936316",
|
|
11
|
+
800: "#62420e",
|
|
12
|
+
900: "#312107"
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
yellow
|
|
17
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import {
|
|
2
|
+
swapColorValues
|
|
3
|
+
} from "./chunk-37PIXVP4.mjs";
|
|
4
|
+
import {
|
|
5
|
+
commonColors
|
|
6
|
+
} from "./chunk-CRCBVLUP.mjs";
|
|
7
|
+
|
|
8
|
+
// src/colors/semantic.ts
|
|
9
|
+
import twColors from "tailwindcss/colors";
|
|
10
|
+
import { readableColor } from "color2k";
|
|
11
|
+
var base = {
|
|
12
|
+
light: {
|
|
13
|
+
background: {
|
|
14
|
+
DEFAULT: "#ffffff"
|
|
15
|
+
},
|
|
16
|
+
foreground: {
|
|
17
|
+
DEFAULT: "#11181C"
|
|
18
|
+
},
|
|
19
|
+
border: {
|
|
20
|
+
DEFAULT: "#00000026"
|
|
21
|
+
},
|
|
22
|
+
content1: {
|
|
23
|
+
DEFAULT: twColors.zinc[50],
|
|
24
|
+
contrastText: twColors.zinc[900]
|
|
25
|
+
},
|
|
26
|
+
content2: {
|
|
27
|
+
DEFAULT: twColors.zinc[100],
|
|
28
|
+
contrastText: twColors.zinc[800]
|
|
29
|
+
},
|
|
30
|
+
content3: {
|
|
31
|
+
DEFAULT: twColors.zinc[200],
|
|
32
|
+
contrastText: twColors.zinc[700]
|
|
33
|
+
},
|
|
34
|
+
content4: {
|
|
35
|
+
DEFAULT: twColors.zinc[300],
|
|
36
|
+
contrastText: twColors.zinc[600]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
dark: {
|
|
40
|
+
background: {
|
|
41
|
+
DEFAULT: "#000000"
|
|
42
|
+
},
|
|
43
|
+
foreground: {
|
|
44
|
+
DEFAULT: "#ECEDEE"
|
|
45
|
+
},
|
|
46
|
+
border: {
|
|
47
|
+
DEFAULT: "#ffffff26"
|
|
48
|
+
},
|
|
49
|
+
content1: {
|
|
50
|
+
DEFAULT: twColors.zinc[900],
|
|
51
|
+
contrastText: twColors.zinc[50]
|
|
52
|
+
},
|
|
53
|
+
content2: {
|
|
54
|
+
DEFAULT: twColors.zinc[800],
|
|
55
|
+
contrastText: twColors.zinc[100]
|
|
56
|
+
},
|
|
57
|
+
content3: {
|
|
58
|
+
DEFAULT: twColors.zinc[700],
|
|
59
|
+
contrastText: twColors.zinc[200]
|
|
60
|
+
},
|
|
61
|
+
content4: {
|
|
62
|
+
DEFAULT: twColors.zinc[600],
|
|
63
|
+
contrastText: twColors.zinc[300]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
var semanticColorsLight = {
|
|
68
|
+
...base.light,
|
|
69
|
+
neutral: {
|
|
70
|
+
...twColors.zinc,
|
|
71
|
+
contrastText: readableColor(twColors.zinc[300]),
|
|
72
|
+
DEFAULT: twColors.zinc[300]
|
|
73
|
+
},
|
|
74
|
+
primary: {
|
|
75
|
+
...commonColors.blue,
|
|
76
|
+
contrastText: commonColors.white,
|
|
77
|
+
DEFAULT: commonColors.blue[500]
|
|
78
|
+
},
|
|
79
|
+
secondary: {
|
|
80
|
+
...commonColors.purple,
|
|
81
|
+
contrastText: commonColors.white,
|
|
82
|
+
DEFAULT: commonColors.purple[500]
|
|
83
|
+
},
|
|
84
|
+
success: {
|
|
85
|
+
...commonColors.green,
|
|
86
|
+
contrastText: commonColors.white,
|
|
87
|
+
DEFAULT: commonColors.green[500]
|
|
88
|
+
},
|
|
89
|
+
warning: {
|
|
90
|
+
...commonColors.yellow,
|
|
91
|
+
contrastText: commonColors.white,
|
|
92
|
+
DEFAULT: commonColors.yellow[500]
|
|
93
|
+
},
|
|
94
|
+
danger: {
|
|
95
|
+
...commonColors.red,
|
|
96
|
+
contrastText: commonColors.white,
|
|
97
|
+
DEFAULT: commonColors.red[500]
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
var semanticColorsDark = {
|
|
101
|
+
...base.dark,
|
|
102
|
+
neutral: {
|
|
103
|
+
...swapColorValues(twColors.zinc),
|
|
104
|
+
contrastText: readableColor(twColors.zinc[700]),
|
|
105
|
+
DEFAULT: twColors.zinc[700]
|
|
106
|
+
},
|
|
107
|
+
primary: {
|
|
108
|
+
...swapColorValues(commonColors.blue),
|
|
109
|
+
DEFAULT: commonColors.blue[500],
|
|
110
|
+
contrastText: commonColors.white
|
|
111
|
+
},
|
|
112
|
+
secondary: {
|
|
113
|
+
...swapColorValues(commonColors.purple),
|
|
114
|
+
contrastText: commonColors.white,
|
|
115
|
+
DEFAULT: commonColors.purple[400]
|
|
116
|
+
},
|
|
117
|
+
success: {
|
|
118
|
+
...swapColorValues(commonColors.green),
|
|
119
|
+
contrastText: readableColor(commonColors.green[500]),
|
|
120
|
+
DEFAULT: commonColors.green[500]
|
|
121
|
+
},
|
|
122
|
+
warning: {
|
|
123
|
+
...swapColorValues(commonColors.yellow),
|
|
124
|
+
contrastText: readableColor(commonColors.yellow[500]),
|
|
125
|
+
DEFAULT: commonColors.yellow[500]
|
|
126
|
+
},
|
|
127
|
+
danger: {
|
|
128
|
+
...swapColorValues(commonColors.red),
|
|
129
|
+
contrastText: commonColors.white,
|
|
130
|
+
DEFAULT: commonColors.red[500]
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
var semanticColors = {
|
|
134
|
+
light: semanticColorsLight,
|
|
135
|
+
dark: semanticColorsDark
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
export {
|
|
139
|
+
semanticColorsLight,
|
|
140
|
+
semanticColorsDark,
|
|
141
|
+
semanticColors
|
|
142
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/components/accordion.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var accordion = tv({
|
|
4
|
+
base: "px-2",
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
shadow: "px-4 shadow-lg rounded-xl dark:bg-content1 border border-neutral-100",
|
|
8
|
+
bordered: "px-4 border border-neutral rounded-lg",
|
|
9
|
+
splitted: "group is-splitted flex flex-col gap-2"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
accordion
|
|
16
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/colors/red.ts
|
|
2
|
+
var red = {
|
|
3
|
+
50: "#fee7ef",
|
|
4
|
+
100: "#fdd0df",
|
|
5
|
+
200: "#faa0bf",
|
|
6
|
+
300: "#f871a0",
|
|
7
|
+
400: "#f54180",
|
|
8
|
+
500: "#f31260",
|
|
9
|
+
600: "#c20e4d",
|
|
10
|
+
700: "#920b3a",
|
|
11
|
+
800: "#610726",
|
|
12
|
+
900: "#310413"
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
red
|
|
17
|
+
};
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ringClasses
|
|
3
|
+
} from "./chunk-IJCHUO4J.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/card.ts
|
|
6
|
+
import { tv } from "tailwind-variants";
|
|
7
|
+
var card = tv({
|
|
8
|
+
slots: {
|
|
9
|
+
base: [
|
|
10
|
+
"flex",
|
|
11
|
+
"flex-col",
|
|
12
|
+
"relative",
|
|
13
|
+
"overflow-hidden",
|
|
14
|
+
"w-full",
|
|
15
|
+
"height-auto",
|
|
16
|
+
"outline-none",
|
|
17
|
+
"text-foreground",
|
|
18
|
+
"box-border",
|
|
19
|
+
"dark:bg-content1",
|
|
20
|
+
"border border-neutral-100"
|
|
21
|
+
],
|
|
22
|
+
header: [
|
|
23
|
+
"flex",
|
|
24
|
+
"justify-start",
|
|
25
|
+
"items-center",
|
|
26
|
+
"shrink-0",
|
|
27
|
+
"w-full",
|
|
28
|
+
"overflow-inherit",
|
|
29
|
+
"color-inherit",
|
|
30
|
+
"p-3",
|
|
31
|
+
"z-10",
|
|
32
|
+
"subpixel-antialiased"
|
|
33
|
+
],
|
|
34
|
+
body: [
|
|
35
|
+
"relative",
|
|
36
|
+
"flex",
|
|
37
|
+
"flex-auto",
|
|
38
|
+
"flex-col",
|
|
39
|
+
"place-content-inherit",
|
|
40
|
+
"align-items-inherit",
|
|
41
|
+
"w-full",
|
|
42
|
+
"h-auto",
|
|
43
|
+
"py-5",
|
|
44
|
+
"px-3",
|
|
45
|
+
"break-words",
|
|
46
|
+
"text-left",
|
|
47
|
+
"overflow-y-auto",
|
|
48
|
+
"subpixel-antialiased"
|
|
49
|
+
],
|
|
50
|
+
footer: [
|
|
51
|
+
"w-full",
|
|
52
|
+
"h-auto",
|
|
53
|
+
"p-3",
|
|
54
|
+
"flex",
|
|
55
|
+
"items-center",
|
|
56
|
+
"overflow-hidden",
|
|
57
|
+
"color-inherit",
|
|
58
|
+
"subpixel-antialiased"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
variants: {
|
|
62
|
+
shadow: {
|
|
63
|
+
none: {
|
|
64
|
+
base: "shadow-none"
|
|
65
|
+
},
|
|
66
|
+
sm: {
|
|
67
|
+
base: "shadow-sm"
|
|
68
|
+
},
|
|
69
|
+
md: {
|
|
70
|
+
base: "shadow-md"
|
|
71
|
+
},
|
|
72
|
+
lg: {
|
|
73
|
+
base: "shadow-lg"
|
|
74
|
+
},
|
|
75
|
+
xl: {
|
|
76
|
+
base: "shadow-xl"
|
|
77
|
+
},
|
|
78
|
+
"2xl": {
|
|
79
|
+
base: "shadow-2xl"
|
|
80
|
+
},
|
|
81
|
+
inner: {
|
|
82
|
+
base: "shadow-inner"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
radius: {
|
|
86
|
+
none: {
|
|
87
|
+
base: "rounded-none",
|
|
88
|
+
header: "rounded-t-none",
|
|
89
|
+
footer: "rounded-b-none"
|
|
90
|
+
},
|
|
91
|
+
base: {
|
|
92
|
+
base: "rounded",
|
|
93
|
+
header: "rounded-t",
|
|
94
|
+
footer: "rounded-b"
|
|
95
|
+
},
|
|
96
|
+
sm: {
|
|
97
|
+
base: "rounded-sm",
|
|
98
|
+
header: "rounded-t-sm",
|
|
99
|
+
footer: "rounded-b-sm"
|
|
100
|
+
},
|
|
101
|
+
md: {
|
|
102
|
+
base: "rounded-md",
|
|
103
|
+
header: "rounded-t-md",
|
|
104
|
+
footer: "rounded-b-md"
|
|
105
|
+
},
|
|
106
|
+
lg: {
|
|
107
|
+
base: "rounded-lg",
|
|
108
|
+
header: "rounded-t-lg",
|
|
109
|
+
footer: "rounded-b-lg"
|
|
110
|
+
},
|
|
111
|
+
xl: {
|
|
112
|
+
base: "rounded-xl",
|
|
113
|
+
header: "rounded-t-xl",
|
|
114
|
+
footer: "rounded-b-xl"
|
|
115
|
+
},
|
|
116
|
+
"2xl": {
|
|
117
|
+
base: "rounded-2xl",
|
|
118
|
+
header: "rounded-t-2xl",
|
|
119
|
+
footer: "rounded-b-2xl"
|
|
120
|
+
},
|
|
121
|
+
"3xl": {
|
|
122
|
+
base: "rounded-3xl",
|
|
123
|
+
header: "rounded-t-3xl",
|
|
124
|
+
footer: "rounded-b-3xl"
|
|
125
|
+
},
|
|
126
|
+
full: {
|
|
127
|
+
base: "rounded-full",
|
|
128
|
+
header: "rounded-t-full",
|
|
129
|
+
footer: "rounded-b-full"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
fullWidth: {
|
|
133
|
+
true: {
|
|
134
|
+
base: "w-full"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
isHoverable: {
|
|
138
|
+
true: {}
|
|
139
|
+
},
|
|
140
|
+
isPressable: {
|
|
141
|
+
true: { base: "cursor-pointer" }
|
|
142
|
+
},
|
|
143
|
+
isFocusVisible: {
|
|
144
|
+
true: {
|
|
145
|
+
base: [...ringClasses]
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
isFooterBlurred: {
|
|
149
|
+
true: {
|
|
150
|
+
footer: "backdrop-blur-xl backdrop-saturate-200"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
isDisabled: {
|
|
154
|
+
true: {
|
|
155
|
+
base: "opacity-50 cursor-not-allowed"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
disableAnimation: {
|
|
159
|
+
true: "",
|
|
160
|
+
false: { base: "transition-transform motion-reduce:transition-none" }
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
compoundVariants: [
|
|
164
|
+
{
|
|
165
|
+
isHoverable: true,
|
|
166
|
+
disableAnimation: false,
|
|
167
|
+
class: "hover:-translate-y-1.5"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
isPressable: true,
|
|
171
|
+
disableAnimation: false,
|
|
172
|
+
class: "active:scale-95"
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
defaultVariants: {
|
|
176
|
+
radius: "xl",
|
|
177
|
+
shadow: "lg",
|
|
178
|
+
fullWidth: false,
|
|
179
|
+
isHoverable: false,
|
|
180
|
+
isPressable: false,
|
|
181
|
+
isFocusVisible: false,
|
|
182
|
+
isDisabled: false,
|
|
183
|
+
disableAnimation: false,
|
|
184
|
+
isFooterBlurred: false
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
export {
|
|
189
|
+
card
|
|
190
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
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/colors/blue.ts
|
|
21
|
+
var blue_exports = {};
|
|
22
|
+
__export(blue_exports, {
|
|
23
|
+
blue: () => blue
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(blue_exports);
|
|
26
|
+
var blue = {
|
|
27
|
+
50: "#e6f1fe",
|
|
28
|
+
100: "#cce3fd",
|
|
29
|
+
200: "#99c7fb",
|
|
30
|
+
300: "#66aaf9",
|
|
31
|
+
400: "#338ef7",
|
|
32
|
+
500: "#0072f5",
|
|
33
|
+
600: "#005bc4",
|
|
34
|
+
700: "#004493",
|
|
35
|
+
800: "#002e62",
|
|
36
|
+
900: "#001731"
|
|
37
|
+
};
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
40
|
+
blue
|
|
41
|
+
});
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
declare const commonColors: {
|
|
2
|
+
white: string;
|
|
3
|
+
black: string;
|
|
4
|
+
blue: {
|
|
5
|
+
50: string;
|
|
6
|
+
100: string;
|
|
7
|
+
200: string;
|
|
8
|
+
300: string;
|
|
9
|
+
400: string;
|
|
10
|
+
500: string;
|
|
11
|
+
600: string;
|
|
12
|
+
700: string;
|
|
13
|
+
800: string;
|
|
14
|
+
900: string;
|
|
15
|
+
};
|
|
16
|
+
green: {
|
|
17
|
+
50: string;
|
|
18
|
+
100: string;
|
|
19
|
+
200: string;
|
|
20
|
+
300: string;
|
|
21
|
+
400: string;
|
|
22
|
+
500: string;
|
|
23
|
+
600: string;
|
|
24
|
+
700: string;
|
|
25
|
+
800: string;
|
|
26
|
+
900: string;
|
|
27
|
+
};
|
|
28
|
+
pink: {
|
|
29
|
+
50: string;
|
|
30
|
+
100: string;
|
|
31
|
+
200: string;
|
|
32
|
+
300: string;
|
|
33
|
+
400: string;
|
|
34
|
+
500: string;
|
|
35
|
+
600: string;
|
|
36
|
+
700: string;
|
|
37
|
+
800: string;
|
|
38
|
+
900: string;
|
|
39
|
+
};
|
|
40
|
+
purple: {
|
|
41
|
+
50: string;
|
|
42
|
+
100: string;
|
|
43
|
+
200: string;
|
|
44
|
+
300: string;
|
|
45
|
+
400: string;
|
|
46
|
+
500: string;
|
|
47
|
+
600: string;
|
|
48
|
+
700: string;
|
|
49
|
+
800: string;
|
|
50
|
+
900: string;
|
|
51
|
+
};
|
|
52
|
+
red: {
|
|
53
|
+
50: string;
|
|
54
|
+
100: string;
|
|
55
|
+
200: string;
|
|
56
|
+
300: string;
|
|
57
|
+
400: string;
|
|
58
|
+
500: string;
|
|
59
|
+
600: string;
|
|
60
|
+
700: string;
|
|
61
|
+
800: string;
|
|
62
|
+
900: string;
|
|
63
|
+
};
|
|
64
|
+
yellow: {
|
|
65
|
+
50: string;
|
|
66
|
+
100: string;
|
|
67
|
+
200: string;
|
|
68
|
+
300: string;
|
|
69
|
+
400: string;
|
|
70
|
+
500: string;
|
|
71
|
+
600: string;
|
|
72
|
+
700: string;
|
|
73
|
+
800: string;
|
|
74
|
+
900: string;
|
|
75
|
+
};
|
|
76
|
+
cyan: {
|
|
77
|
+
50: string;
|
|
78
|
+
100: string;
|
|
79
|
+
200: string;
|
|
80
|
+
300: string;
|
|
81
|
+
400: string;
|
|
82
|
+
500: string;
|
|
83
|
+
600: string;
|
|
84
|
+
700: string;
|
|
85
|
+
800: string;
|
|
86
|
+
900: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
type CommonColors = typeof commonColors;
|
|
90
|
+
|
|
91
|
+
export { CommonColors, commonColors };
|