@nextui-org/theme 2.3.0-beta.5 → 2.3.0-beta.7

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.
@@ -1,216 +0,0 @@
1
- import {
2
- colorVariants
3
- } from "./chunk-GQT3YUX3.mjs";
4
- import {
5
- tv
6
- } from "./chunk-UWE6H66T.mjs";
7
-
8
- // src/components/alert.ts
9
- var alert = tv({
10
- slots: {
11
- base: "flex flex-row w-full flex-grow min-h-17 max-h-full py-3 px-4",
12
- mainWrapper: [
13
- "flex-grow min-h-11 max-h-full ms-2 flex flex-col box-border items-start text-inherit"
14
- ],
15
- title: "w-full text-medium font-normal block min-h-6 max-h-full text-inherit",
16
- description: "text-small font-normal min-h-5 max-h-full text-inherit",
17
- closeButton: "relative text-inherit",
18
- alertIcon: "fill-current w-6"
19
- },
20
- variants: {
21
- color: {
22
- default: {},
23
- primary: {},
24
- secondary: {},
25
- success: {},
26
- warning: {},
27
- danger: {}
28
- },
29
- variant: {
30
- solid: {},
31
- flat: {},
32
- bordered: {
33
- base: "border-medium bg-transparent"
34
- }
35
- },
36
- radius: {
37
- none: {
38
- base: "rounded-none"
39
- },
40
- sm: {
41
- base: "rounded-small"
42
- },
43
- md: {
44
- base: "rounded-medium"
45
- },
46
- lg: {
47
- base: "rounded-large"
48
- },
49
- full: {
50
- base: "rounded-full"
51
- }
52
- },
53
- hasDescription: {
54
- true: {
55
- alertIcon: "mt-0.5"
56
- },
57
- false: {
58
- base: "items-center",
59
- mainWrapper: "justify-center"
60
- }
61
- }
62
- },
63
- defaultVariants: {
64
- color: "default",
65
- variant: "flat",
66
- radius: "md"
67
- },
68
- compoundVariants: [
69
- {
70
- variant: "solid",
71
- color: "default",
72
- class: {
73
- base: colorVariants.solid.default,
74
- closeButton: "data-[hover]:bg-default-100",
75
- alertIcon: "text-default-foreground"
76
- }
77
- },
78
- {
79
- variant: "solid",
80
- color: "primary",
81
- class: {
82
- base: colorVariants.solid.primary
83
- }
84
- },
85
- {
86
- variant: "solid",
87
- color: "secondary",
88
- class: {
89
- base: colorVariants.solid.secondary
90
- }
91
- },
92
- {
93
- variant: "solid",
94
- color: "success",
95
- class: {
96
- base: colorVariants.solid.success
97
- }
98
- },
99
- {
100
- variant: "solid",
101
- color: "warning",
102
- class: {
103
- base: colorVariants.solid.warning
104
- }
105
- },
106
- {
107
- variant: "solid",
108
- color: "danger",
109
- class: {
110
- base: colorVariants.solid.danger
111
- }
112
- },
113
- {
114
- variant: "flat",
115
- color: "default",
116
- class: {
117
- base: [colorVariants.flat.default, "text-default-foreground"],
118
- description: "text-default-600",
119
- closeButton: "text-default-400"
120
- }
121
- },
122
- {
123
- variant: "flat",
124
- color: "primary",
125
- class: {
126
- base: colorVariants.flat.primary,
127
- closeButton: "text-primary-400 data-[hover]:bg-primary-100"
128
- }
129
- },
130
- {
131
- variant: "flat",
132
- color: "secondary",
133
- class: {
134
- base: colorVariants.flat.secondary,
135
- closeButton: "text-secondary-400 data-[hover]:bg-secondary-100"
136
- }
137
- },
138
- {
139
- variant: "flat",
140
- color: "success",
141
- class: {
142
- base: colorVariants.flat.success,
143
- closeButton: "text-success-400 data-[hover]:bg-success-100"
144
- }
145
- },
146
- {
147
- variant: "flat",
148
- color: "warning",
149
- class: {
150
- base: colorVariants.flat.warning,
151
- closeButton: "text-warning-500 data-[hover]:bg-warning-200"
152
- }
153
- },
154
- {
155
- variant: "flat",
156
- color: "danger",
157
- class: {
158
- base: colorVariants.flat.danger,
159
- closeButton: "text-danger-400 data-[hover]:bg-danger-100"
160
- }
161
- },
162
- {
163
- variant: "bordered",
164
- color: "default",
165
- class: {
166
- base: [colorVariants.bordered.default],
167
- description: "text-default-600",
168
- closeButton: "text-default-400"
169
- }
170
- },
171
- {
172
- variant: "bordered",
173
- color: "primary",
174
- class: {
175
- base: [colorVariants.bordered.primary],
176
- closeButton: "data-[hover]:bg-primary-50"
177
- }
178
- },
179
- {
180
- variant: "bordered",
181
- color: "secondary",
182
- class: {
183
- base: [colorVariants.bordered.secondary],
184
- closeButton: "data-[hover]:bg-secondary-50"
185
- }
186
- },
187
- {
188
- variant: "bordered",
189
- color: "success",
190
- class: {
191
- base: [colorVariants.bordered.success],
192
- closeButton: "data-[hover]:bg-success-50"
193
- }
194
- },
195
- {
196
- variant: "bordered",
197
- color: "warning",
198
- class: {
199
- base: [colorVariants.bordered.warning],
200
- closeButton: "data-[hover]:bg-warning-100"
201
- }
202
- },
203
- {
204
- variant: "bordered",
205
- color: "danger",
206
- class: {
207
- base: [colorVariants.bordered.danger],
208
- closeButton: "data-[hover]:bg-danger-50"
209
- }
210
- }
211
- ]
212
- });
213
-
214
- export {
215
- alert
216
- };
@@ -1,6 +1,12 @@
1
+ import {
2
+ yellow
3
+ } from "./chunk-JUEOCLA3.mjs";
1
4
  import {
2
5
  zinc
3
6
  } from "./chunk-3LKKH4AR.mjs";
7
+ import {
8
+ cyan
9
+ } from "./chunk-T3GWIVAM.mjs";
4
10
  import {
5
11
  green
6
12
  } from "./chunk-OR5PUD24.mjs";
@@ -13,15 +19,9 @@ import {
13
19
  import {
14
20
  red
15
21
  } from "./chunk-YZYGFPNK.mjs";
16
- import {
17
- yellow
18
- } from "./chunk-JUEOCLA3.mjs";
19
22
  import {
20
23
  blue
21
24
  } from "./chunk-GHZ36ATJ.mjs";
22
- import {
23
- cyan
24
- } from "./chunk-T3GWIVAM.mjs";
25
25
 
26
26
  // src/colors/common.ts
27
27
  var commonColors = {