@pelatform/ui 2.0.0 → 2.1.0
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/README.md +360 -5
- package/dist/animation.d.ts +6 -4
- package/dist/animation.js +3 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +3 -1
- package/dist/components.d.ts +1 -2987
- package/dist/components.js +2 -2318
- package/dist/css/color/gray.css +105 -0
- package/dist/css/color/neutral.css +105 -0
- package/dist/css/color/slate.css +105 -0
- package/dist/css/color/stone.css +105 -0
- package/dist/css/color/zinc.css +105 -0
- package/dist/css/styles/style-lyra.css +1335 -0
- package/dist/css/styles/style-maia.css +1360 -0
- package/dist/css/styles/style-mira.css +1362 -0
- package/dist/css/styles/style-nova.css +1360 -0
- package/dist/css/styles/style-vega.css +1356 -0
- package/dist/hooks.d.ts +1 -93
- package/dist/hooks.js +2 -7
- package/dist/index.d.ts +1 -68
- package/dist/index.js +2 -7
- package/dist/radix.d.ts +1 -0
- package/dist/radix.js +4 -0
- package/dist/style.css +2 -0
- package/package.json +74 -48
- package/LICENSE +0 -21
- package/css/components/apexcharts.css +0 -101
- package/css/components/book.css +0 -19
- package/css/components/extra.css +0 -12
- package/css/components/image-input.css +0 -51
- package/css/components/leaflet.css +0 -25
- package/css/components/patterns.css +0 -34
- package/css/components/rating.css +0 -89
- package/css/components/scrollable.css +0 -118
- package/css/components/theme-transition.css +0 -51
- package/css/source.css +0 -20
- package/css/theme.css +0 -237
- package/dist/aria.d.ts +0 -1
- package/dist/aria.js +0 -2
- package/dist/chunk-UEVIEY7W.js +0 -51
- package/dist/chunk-VZEE3GOC.js +0 -458
- package/dist/default.d.ts +0 -1
- package/dist/default.js +0 -2
|
@@ -0,0 +1,1360 @@
|
|
|
1
|
+
.style-nova {
|
|
2
|
+
/* MARK: Accordion */
|
|
3
|
+
.cn-accordion-item {
|
|
4
|
+
@apply not-last:border-b;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.cn-accordion-trigger {
|
|
8
|
+
@apply focus-visible:ring-ring/50 focus-visible:border-ring focus-visible:after:border-ring **:data-[slot=accordion-trigger-icon]:text-muted-foreground rounded-lg py-2.5 text-left text-sm font-medium hover:underline focus-visible:ring-3 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.cn-accordion-content {
|
|
12
|
+
@apply data-open:animate-accordion-down data-closed:animate-accordion-up text-sm;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.cn-accordion-content-inner {
|
|
16
|
+
@apply pt-0 pb-2.5;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* MARK: Alert */
|
|
20
|
+
.cn-alert {
|
|
21
|
+
@apply grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.cn-alert-variant-default {
|
|
25
|
+
@apply bg-card text-card-foreground;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.cn-alert-variant-destructive {
|
|
29
|
+
@apply text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.cn-alert-title {
|
|
33
|
+
@apply font-medium group-has-[>svg]/alert:col-start-2;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.cn-alert-description {
|
|
37
|
+
@apply text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.cn-alert-action {
|
|
41
|
+
@apply absolute top-2 right-2;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* MARK: Alert Dialog */
|
|
45
|
+
.cn-alert-dialog-overlay {
|
|
46
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.cn-alert-dialog-content {
|
|
50
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-background ring-foreground/10 gap-4 rounded-xl p-4 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.cn-alert-dialog-header {
|
|
54
|
+
@apply grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.cn-alert-dialog-media {
|
|
58
|
+
@apply bg-muted mb-2 inline-flex size-10 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-6;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.cn-alert-dialog-title {
|
|
62
|
+
@apply text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.cn-alert-dialog-description {
|
|
66
|
+
@apply text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.cn-alert-dialog-footer {
|
|
70
|
+
@apply bg-muted/50 -mx-4 -mb-4 rounded-b-xl border-t p-4;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* MARK: Avatar */
|
|
74
|
+
.cn-avatar {
|
|
75
|
+
@apply size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.cn-avatar-fallback {
|
|
79
|
+
@apply bg-muted text-muted-foreground rounded-full;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.cn-avatar-image {
|
|
83
|
+
@apply rounded-full;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.cn-avatar-badge {
|
|
87
|
+
@apply bg-primary text-primary-foreground ring-background;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.cn-avatar-group-count {
|
|
91
|
+
@apply bg-muted text-muted-foreground size-8 rounded-full text-sm group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* MARK: Badge */
|
|
95
|
+
.cn-badge {
|
|
96
|
+
@apply h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3!;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.cn-badge-variant-default {
|
|
100
|
+
@apply bg-primary text-primary-foreground [a]:hover:bg-primary/80;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.cn-badge-variant-secondary {
|
|
104
|
+
@apply bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.cn-badge-variant-outline {
|
|
108
|
+
@apply border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.cn-badge-variant-destructive {
|
|
112
|
+
@apply bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.cn-badge-variant-ghost {
|
|
116
|
+
@apply hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.cn-badge-variant-link {
|
|
120
|
+
@apply text-primary underline-offset-4 hover:underline;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* MARK: Breadcrumb */
|
|
124
|
+
.cn-breadcrumb-list {
|
|
125
|
+
@apply text-muted-foreground gap-1.5 text-sm;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.cn-breadcrumb-item {
|
|
129
|
+
@apply gap-1;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.cn-breadcrumb-link {
|
|
133
|
+
@apply hover:text-foreground transition-colors;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.cn-breadcrumb-page {
|
|
137
|
+
@apply text-foreground font-normal;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.cn-breadcrumb-separator {
|
|
141
|
+
@apply [&>svg]:size-3.5;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.cn-breadcrumb-ellipsis {
|
|
145
|
+
@apply size-5 [&>svg]:size-4;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* MARK: Button */
|
|
149
|
+
.cn-button {
|
|
150
|
+
@apply focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.cn-button-variant-default {
|
|
154
|
+
@apply bg-primary text-primary-foreground [a]:hover:bg-primary/80;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.cn-button-variant-outline {
|
|
158
|
+
@apply border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.cn-button-variant-secondary {
|
|
162
|
+
@apply bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.cn-button-variant-ghost {
|
|
166
|
+
@apply hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.cn-button-variant-destructive {
|
|
170
|
+
@apply bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.cn-button-variant-link {
|
|
174
|
+
@apply text-primary underline-offset-4 hover:underline;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.cn-button-size-xs {
|
|
178
|
+
@apply h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.cn-button-size-sm {
|
|
182
|
+
@apply h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.cn-button-size-default {
|
|
186
|
+
@apply h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.cn-button-size-lg {
|
|
190
|
+
@apply h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.cn-button-size-icon-xs {
|
|
194
|
+
@apply size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.cn-button-size-icon-sm {
|
|
198
|
+
@apply size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.cn-button-size-icon {
|
|
202
|
+
@apply size-8;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.cn-button-size-icon-lg {
|
|
206
|
+
@apply size-9;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/* MARK: Button Group */
|
|
210
|
+
.cn-button-group {
|
|
211
|
+
@apply has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.cn-button-group-orientation-horizontal {
|
|
215
|
+
@apply [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg!;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.cn-button-group-orientation-vertical {
|
|
219
|
+
@apply [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.cn-button-group-text {
|
|
223
|
+
@apply bg-muted gap-2 rounded-lg border px-2.5 text-sm font-medium [&_svg:not([class*='size-'])]:size-4;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.cn-button-group-separator {
|
|
227
|
+
@apply bg-input;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* MARK: Calendar */
|
|
231
|
+
.cn-calendar {
|
|
232
|
+
@apply p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)];
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.cn-calendar-dropdown-root {
|
|
236
|
+
@apply has-focus:border-ring border-input has-focus:ring-ring/50 border has-focus:ring-3;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.cn-calendar-caption-label {
|
|
240
|
+
@apply h-6 pr-1 pl-1.5;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* MARK: Card */
|
|
244
|
+
.cn-card {
|
|
245
|
+
@apply ring-foreground/10 bg-card text-card-foreground gap-4 overflow-hidden rounded-xl py-4 text-sm ring-1 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.cn-card-header {
|
|
249
|
+
@apply gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.cn-card-title {
|
|
253
|
+
@apply text-base leading-snug font-medium group-data-[size=sm]/card:text-sm;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.cn-card-description {
|
|
257
|
+
@apply text-muted-foreground text-sm;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.cn-card-content {
|
|
261
|
+
@apply px-4 group-data-[size=sm]/card:px-3;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.cn-card-footer {
|
|
265
|
+
@apply bg-muted/50 rounded-b-xl border-t p-4 group-data-[size=sm]/card:p-3;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/* MARK: Carousel */
|
|
269
|
+
.cn-carousel-previous {
|
|
270
|
+
@apply rounded-full;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.cn-carousel-next {
|
|
274
|
+
@apply rounded-full;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/* MARK: Chart */
|
|
278
|
+
.cn-chart-tooltip {
|
|
279
|
+
@apply border-border/50 bg-background gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/* MARK: Checkbox */
|
|
283
|
+
.cn-checkbox {
|
|
284
|
+
@apply border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border transition-colors group-has-disabled/field:opacity-50 focus-visible:ring-3 aria-invalid:ring-3;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.cn-checkbox-indicator {
|
|
288
|
+
@apply [&>svg]:size-3.5;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/* MARK: Combobox */
|
|
292
|
+
.cn-combobox-content {
|
|
293
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:border-input/30 max-h-72 min-w-36 overflow-hidden rounded-lg shadow-md ring-1 duration-100 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:shadow-none;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.cn-combobox-content-logical {
|
|
297
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.cn-combobox-label {
|
|
301
|
+
@apply text-muted-foreground px-2 py-1.5 text-xs;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.cn-combobox-item {
|
|
305
|
+
@apply data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground gap-2 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.cn-combobox-item-indicator {
|
|
309
|
+
@apply pointer-events-none absolute right-2 flex size-4 items-center justify-center;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.cn-combobox-empty {
|
|
313
|
+
@apply text-muted-foreground hidden w-full justify-center py-2 text-center text-sm group-data-empty/combobox-content:flex;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.cn-combobox-list {
|
|
317
|
+
@apply no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto p-1 data-empty:p-0;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.cn-combobox-item-text {
|
|
321
|
+
@apply flex flex-1 gap-2;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.cn-combobox-separator {
|
|
325
|
+
@apply bg-border -mx-1 my-1 h-px;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.cn-combobox-trigger {
|
|
329
|
+
@apply [&_svg:not([class*='size-'])]:size-4;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.cn-combobox-trigger-icon {
|
|
333
|
+
@apply text-muted-foreground size-4;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.cn-combobox-chips {
|
|
337
|
+
@apply dark:bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/50 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive dark:has-aria-invalid:border-destructive/50 flex min-h-8 flex-wrap items-center gap-1 rounded-lg border bg-transparent bg-clip-padding px-2.5 py-1 text-sm transition-colors focus-within:ring-3 has-aria-invalid:ring-3 has-data-[slot=combobox-chip]:px-1;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.cn-combobox-chip {
|
|
341
|
+
@apply bg-muted text-foreground flex h-[calc(--spacing(5.25))] w-fit items-center justify-center gap-1 rounded-sm px-1.5 text-xs font-medium whitespace-nowrap has-data-[slot=combobox-chip-remove]:pr-0;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.cn-combobox-chip-remove {
|
|
345
|
+
@apply -ml-1 opacity-50 hover:opacity-100;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/* MARK: Command */
|
|
349
|
+
.cn-command {
|
|
350
|
+
@apply bg-popover text-popover-foreground rounded-xl! p-1;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.cn-command-dialog {
|
|
354
|
+
@apply rounded-xl!;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.cn-command-input-wrapper {
|
|
358
|
+
@apply p-1 pb-0;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.cn-command-input-group {
|
|
362
|
+
@apply bg-input/30 border-input/30 h-8! rounded-lg! shadow-none! *:data-[slot=input-group-addon]:pl-2!;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.cn-command-input-icon {
|
|
366
|
+
@apply size-4 shrink-0 opacity-50;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.cn-command-input {
|
|
370
|
+
@apply w-full text-sm;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.cn-command-list {
|
|
374
|
+
@apply no-scrollbar max-h-72 scroll-py-1 outline-none;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.cn-command-empty {
|
|
378
|
+
@apply py-6 text-center text-sm;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.cn-command-group {
|
|
382
|
+
@apply text-foreground **:[[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.cn-command-separator {
|
|
386
|
+
@apply bg-border -mx-1 h-px;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.cn-command-item {
|
|
390
|
+
@apply data-selected:bg-muted data-selected:text-foreground data-selected:*:[svg]:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! [&_svg:not([class*='size-'])]:size-4;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.cn-command-shortcut {
|
|
394
|
+
@apply text-muted-foreground group-data-selected/command-item:text-foreground ml-auto text-xs tracking-widest;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/* MARK: Context Menu */
|
|
398
|
+
.cn-context-menu-content {
|
|
399
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-36 rounded-lg p-1 shadow-md ring-1 duration-100;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.cn-context-menu-content-logical {
|
|
403
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.cn-context-menu-item {
|
|
407
|
+
@apply focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive focus:*:[svg]:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.cn-context-menu-checkbox-item {
|
|
411
|
+
@apply focus:bg-accent focus:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.cn-context-menu-radio-item {
|
|
415
|
+
@apply focus:bg-accent focus:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.cn-context-menu-item-indicator {
|
|
419
|
+
@apply absolute right-2;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.cn-context-menu-label {
|
|
423
|
+
@apply text-muted-foreground px-1.5 py-1 text-xs font-medium data-inset:pl-7;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.cn-context-menu-separator {
|
|
427
|
+
@apply bg-border -mx-1 my-1 h-px;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.cn-context-menu-shortcut {
|
|
431
|
+
@apply text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-xs tracking-widest;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.cn-context-menu-sub-trigger {
|
|
435
|
+
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.cn-context-menu-sub-content {
|
|
439
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-popover text-popover-foreground min-w-32 rounded-lg border p-1 shadow-lg duration-100;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.cn-context-menu-subcontent {
|
|
443
|
+
@apply shadow-lg;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/* MARK: Dialog */
|
|
447
|
+
.cn-dialog-overlay {
|
|
448
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.cn-dialog-content {
|
|
452
|
+
@apply bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-sm ring-1 duration-100 sm:max-w-sm;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.cn-dialog-close {
|
|
456
|
+
@apply absolute top-2 right-2;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.cn-dialog-header {
|
|
460
|
+
@apply gap-2;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.cn-dialog-footer {
|
|
464
|
+
@apply bg-muted/50 -mx-4 -mb-4 rounded-b-xl border-t p-4;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.cn-dialog-title {
|
|
468
|
+
@apply text-base leading-none font-medium;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.cn-dialog-description {
|
|
472
|
+
@apply text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/* MARK: Drawer */
|
|
476
|
+
.cn-drawer-overlay {
|
|
477
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 supports-backdrop-filter:backdrop-blur-xs;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.cn-drawer-content {
|
|
481
|
+
@apply bg-background flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.cn-drawer-handle {
|
|
485
|
+
@apply bg-muted mx-auto mt-4 hidden h-1 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.cn-drawer-header {
|
|
489
|
+
@apply gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5 md:text-left;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.cn-drawer-title {
|
|
493
|
+
@apply text-foreground text-base font-medium;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.cn-drawer-description {
|
|
497
|
+
@apply text-muted-foreground text-sm;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.cn-drawer-footer {
|
|
501
|
+
@apply gap-2 p-4;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
/* MARK: Dropdown Menu */
|
|
505
|
+
.cn-dropdown-menu-content {
|
|
506
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.cn-dropdown-menu-content-logical {
|
|
510
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.cn-dropdown-menu-item {
|
|
514
|
+
@apply focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.cn-dropdown-menu-checkbox-item {
|
|
518
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.cn-dropdown-menu-radio-item {
|
|
522
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.cn-dropdown-menu-item-indicator {
|
|
526
|
+
@apply absolute right-2 flex items-center justify-center;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.cn-dropdown-menu-label {
|
|
530
|
+
@apply text-muted-foreground px-1.5 py-1 text-xs font-medium data-inset:pl-7;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.cn-dropdown-menu-separator {
|
|
534
|
+
@apply bg-border -mx-1 my-1 h-px;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.cn-dropdown-menu-shortcut {
|
|
538
|
+
@apply text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-xs tracking-widest;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
.cn-dropdown-menu-sub-trigger {
|
|
542
|
+
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.cn-dropdown-menu-sub-content {
|
|
546
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-[96px] rounded-lg p-1 shadow-lg ring-1 duration-100;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.cn-dropdown-menu-subcontent {
|
|
550
|
+
@apply shadow-lg;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/* MARK: Empty */
|
|
554
|
+
.cn-empty {
|
|
555
|
+
@apply gap-4 rounded-xl border-dashed p-6;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.cn-empty-header {
|
|
559
|
+
@apply gap-2;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.cn-empty-media {
|
|
563
|
+
@apply mb-2;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.cn-empty-media-default {
|
|
567
|
+
@apply bg-transparent;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.cn-empty-media-icon {
|
|
571
|
+
@apply bg-muted text-foreground flex size-8 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-4;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.cn-empty-title {
|
|
575
|
+
@apply text-sm font-medium tracking-tight;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.cn-empty-description {
|
|
579
|
+
@apply text-sm/relaxed;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.cn-empty-content {
|
|
583
|
+
@apply gap-2.5 text-sm;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/* MARK: Field */
|
|
587
|
+
.cn-field-set {
|
|
588
|
+
@apply gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.cn-field-legend {
|
|
592
|
+
@apply mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.cn-field-group {
|
|
596
|
+
@apply gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
.cn-field {
|
|
600
|
+
@apply data-[invalid=true]:text-destructive gap-2;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
.cn-field-content {
|
|
604
|
+
@apply gap-0.5;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
.cn-field-label {
|
|
608
|
+
@apply has-data-checked:bg-primary/5 has-data-checked:border-primary/30 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 gap-2 group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.cn-field-title {
|
|
612
|
+
@apply gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.cn-field-description {
|
|
616
|
+
@apply text-muted-foreground text-left text-sm [[data-variant=legend]+&]:-mt-1.5;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.cn-field-separator {
|
|
620
|
+
@apply -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
.cn-field-separator-content {
|
|
624
|
+
@apply text-muted-foreground px-2;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
.cn-field-error {
|
|
628
|
+
@apply text-destructive text-sm;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/* MARK: Hover Card */
|
|
632
|
+
.cn-hover-card-content {
|
|
633
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground w-64 rounded-lg p-2.5 text-sm shadow-md ring-1 duration-100;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.cn-hover-card-content-logical {
|
|
637
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
/* MARK: Input */
|
|
641
|
+
.cn-input {
|
|
642
|
+
@apply dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:ring-3 aria-invalid:ring-3 md:text-sm;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
/* MARK: Input OTP */
|
|
646
|
+
.cn-input-otp {
|
|
647
|
+
@apply gap-2;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.cn-input-otp-group {
|
|
651
|
+
@apply has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive rounded-lg has-aria-invalid:ring-3;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.cn-input-otp-slot {
|
|
655
|
+
@apply dark:bg-input/30 border-input data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive size-8 border-y border-r text-sm transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg data-[active=true]:ring-3;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
.cn-input-otp-caret-line {
|
|
659
|
+
@apply animate-caret-blink bg-foreground h-4 w-px duration-1000;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.cn-input-otp-separator {
|
|
663
|
+
@apply [&_svg:not([class*='size-'])]:size-4;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/* MARK: Item */
|
|
667
|
+
.cn-item {
|
|
668
|
+
@apply [a]:hover:bg-muted rounded-lg border text-sm;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.cn-item-variant-default {
|
|
672
|
+
@apply border-transparent;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.cn-item-variant-outline {
|
|
676
|
+
@apply border-border;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.cn-item-variant-muted {
|
|
680
|
+
@apply bg-muted/50 border-transparent;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.cn-item-size-default {
|
|
684
|
+
@apply gap-2.5 px-3 py-2.5;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.cn-item-size-sm {
|
|
688
|
+
@apply gap-2.5 px-3 py-2.5;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
.cn-item-size-xs {
|
|
692
|
+
@apply gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.cn-item-media {
|
|
696
|
+
@apply gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
.cn-item-media-variant-default {
|
|
700
|
+
@apply bg-transparent;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.cn-item-media-variant-icon {
|
|
704
|
+
@apply [&_svg:not([class*='size-'])]:size-4;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
.cn-item-media-variant-image {
|
|
708
|
+
@apply size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
.cn-item-content {
|
|
712
|
+
@apply gap-1 group-data-[size=xs]/item:gap-0;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
.cn-item-title {
|
|
716
|
+
@apply gap-2 text-sm leading-snug font-medium underline-offset-4;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
.cn-item-description {
|
|
720
|
+
@apply text-muted-foreground text-left text-sm leading-normal group-data-[size=xs]/item:text-xs;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.cn-item-actions {
|
|
724
|
+
@apply gap-2;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.cn-item-header {
|
|
728
|
+
@apply gap-2;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.cn-item-footer {
|
|
732
|
+
@apply gap-2;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.cn-item-group {
|
|
736
|
+
@apply gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.cn-item-separator {
|
|
740
|
+
@apply my-2;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
/* MARK: Kbd */
|
|
744
|
+
.cn-kbd {
|
|
745
|
+
@apply bg-muted text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 h-5 w-fit min-w-5 gap-1 rounded-sm px-1 font-sans text-xs font-medium [&_svg:not([class*='size-'])]:size-3;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
.cn-kbd-group {
|
|
749
|
+
@apply gap-1;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
/* MARK: Label */
|
|
753
|
+
.cn-label {
|
|
754
|
+
@apply gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
/* MARK: Menubar */
|
|
758
|
+
.cn-menubar {
|
|
759
|
+
@apply bg-background h-8 gap-0.5 rounded-lg border p-[3px];
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.cn-menubar-trigger {
|
|
763
|
+
@apply hover:bg-muted aria-expanded:bg-muted rounded-sm px-1.5 py-[2px] text-sm font-medium;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
.cn-menubar-content {
|
|
767
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-36 rounded-lg p-1 shadow-md ring-1 duration-100;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.cn-menubar-content-logical {
|
|
771
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.cn-menubar-item {
|
|
775
|
+
@apply focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive! not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm data-disabled:opacity-50 data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.cn-menubar-checkbox-item {
|
|
779
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-1.5 pl-7 text-sm data-inset:pl-7;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.cn-menubar-checkbox-item-indicator {
|
|
783
|
+
@apply left-1.5 size-4 [&_svg:not([class*='size-'])]:size-4;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.cn-menubar-radio-item {
|
|
787
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-1.5 pl-7 text-sm data-disabled:opacity-50 data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
.cn-menubar-radio-item-indicator {
|
|
791
|
+
@apply left-1.5 size-4 [&_svg:not([class*='size-'])]:size-4;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
.cn-menubar-label {
|
|
795
|
+
@apply px-1.5 py-1 text-sm font-medium data-inset:pl-7;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.cn-menubar-separator {
|
|
799
|
+
@apply bg-border;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
.cn-menubar-shortcut {
|
|
803
|
+
@apply text-muted-foreground group-focus/menubar-item:text-accent-foreground text-xs tracking-widest;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.cn-menubar-sub-trigger {
|
|
807
|
+
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
.cn-menubar-sub-content {
|
|
811
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-32 rounded-lg p-1 shadow-lg ring-1 duration-100;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
/* MARK: Navigation Menu */
|
|
815
|
+
.cn-navigation-menu {
|
|
816
|
+
@apply max-w-max;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.cn-navigation-menu-list {
|
|
820
|
+
@apply gap-0;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
.cn-navigation-menu-trigger {
|
|
824
|
+
@apply bg-background hover:bg-muted focus:bg-muted data-open:hover:bg-muted data-open:focus:bg-muted data-open:bg-muted/50 focus-visible:ring-ring/50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all focus-visible:ring-3 focus-visible:outline-1 disabled:opacity-50;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
.cn-navigation-menu-link {
|
|
828
|
+
@apply data-active:focus:bg-muted data-active:hover:bg-muted data-active:bg-muted/50 focus-visible:ring-ring/50 hover:bg-muted focus:bg-muted flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none focus-visible:ring-3 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md [&_svg:not([class*='size-'])]:size-4;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
.cn-navigation-menu-trigger-icon {
|
|
832
|
+
@apply relative top-px ml-1 size-3 transition duration-300 group-data-open/navigation-menu-trigger:rotate-180 group-data-popup-open/navigation-menu-trigger:rotate-180;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
.cn-navigation-menu-content {
|
|
836
|
+
@apply data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-1 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
.cn-navigation-menu-viewport {
|
|
840
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:zoom-out-95 data-open:zoom-in-90 ring-foreground/10 rounded-lg shadow ring-1 duration-100;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
.cn-navigation-menu-indicator {
|
|
844
|
+
@apply data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
.cn-navigation-menu-indicator-arrow {
|
|
848
|
+
@apply bg-border rounded-tl-sm shadow-md;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
.cn-navigation-menu-positioner {
|
|
852
|
+
@apply transition-[top,left,right,bottom] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
.cn-navigation-menu-popup {
|
|
856
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 rounded-lg shadow ring-1 transition-all ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:scale-90 data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:scale-90 data-starting-style:opacity-0;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
/* MARK: Native Select */
|
|
860
|
+
.cn-native-select {
|
|
861
|
+
@apply border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-8 w-full min-w-0 appearance-none rounded-lg border bg-transparent py-1 pr-8 pl-2.5 text-sm transition-colors select-none focus-visible:ring-3 aria-invalid:ring-3 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
.cn-native-select-icon {
|
|
865
|
+
@apply text-muted-foreground top-1/2 right-2.5 size-4 -translate-y-1/2;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
/* MARK: Pagination */
|
|
869
|
+
.cn-pagination-content {
|
|
870
|
+
@apply gap-0.5;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
.cn-pagination-ellipsis {
|
|
874
|
+
@apply size-8 items-center justify-center [&_svg:not([class*='size-'])]:size-4;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
.cn-pagination-previous {
|
|
878
|
+
@apply pl-1.5!;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
.cn-pagination-next {
|
|
882
|
+
@apply pr-1.5!;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
/* MARK: Popover */
|
|
886
|
+
.cn-popover-content {
|
|
887
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 flex flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 duration-100;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
.cn-popover-content-logical {
|
|
891
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
.cn-popover-header {
|
|
895
|
+
@apply flex flex-col gap-0.5 text-sm;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
.cn-popover-title {
|
|
899
|
+
@apply font-medium;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
.cn-popover-description {
|
|
903
|
+
@apply text-muted-foreground;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
/* MARK: Progress */
|
|
907
|
+
.cn-progress {
|
|
908
|
+
@apply bg-muted h-1 rounded-full;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
.cn-progress-track {
|
|
912
|
+
@apply bg-muted h-1 rounded-full;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
.cn-progress-indicator {
|
|
916
|
+
@apply bg-primary;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.cn-progress-label {
|
|
920
|
+
@apply text-sm font-medium;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.cn-progress-value {
|
|
924
|
+
@apply text-muted-foreground ml-auto text-sm tabular-nums;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
/* MARK: Radio Group */
|
|
928
|
+
.cn-radio-group {
|
|
929
|
+
@apply grid gap-2;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
.cn-radio-group-item {
|
|
933
|
+
@apply border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 dark:aria-invalid:border-destructive/50 flex size-4 rounded-full focus-visible:ring-3 aria-invalid:ring-3;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
.cn-radio-group-indicator {
|
|
937
|
+
@apply flex size-4 items-center justify-center;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
.cn-radio-group-indicator-icon {
|
|
941
|
+
@apply bg-primary-foreground absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
/* MARK: Resizable */
|
|
945
|
+
.cn-resizable-handle-icon {
|
|
946
|
+
@apply bg-border h-6 w-1 rounded-lg;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
/* MARK: Scroll Area */
|
|
950
|
+
.cn-scroll-area-scrollbar {
|
|
951
|
+
@apply data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
.cn-scroll-area-thumb {
|
|
955
|
+
@apply rounded-full;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
/* MARK: Select */
|
|
959
|
+
.cn-select-trigger {
|
|
960
|
+
@apply border-input data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-lg border bg-transparent py-2 pr-2 pl-2.5 text-sm transition-colors select-none focus-visible:ring-3 aria-invalid:ring-3 data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-4;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
.cn-select-value {
|
|
964
|
+
@apply flex flex-1 text-left;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
.cn-select-trigger-icon {
|
|
968
|
+
@apply text-muted-foreground size-4;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
.cn-select-content {
|
|
972
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-36 rounded-lg shadow-md ring-1 duration-100;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
.cn-select-content-logical {
|
|
976
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
.cn-select-label {
|
|
980
|
+
@apply text-muted-foreground px-1.5 py-1 text-xs;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
.cn-select-item {
|
|
984
|
+
@apply focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
.cn-select-item-indicator {
|
|
988
|
+
@apply pointer-events-none absolute right-2 flex size-4 items-center justify-center;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
.cn-select-group {
|
|
992
|
+
@apply scroll-my-1 p-1;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
.cn-select-item-text {
|
|
996
|
+
@apply flex flex-1 gap-2;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
.cn-select-separator {
|
|
1000
|
+
@apply bg-border -mx-1 my-1 h-px;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
.cn-select-scroll-up-button {
|
|
1004
|
+
@apply bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
.cn-select-scroll-down-button {
|
|
1008
|
+
@apply bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
/* MARK: Separator */
|
|
1012
|
+
.cn-separator {
|
|
1013
|
+
@apply bg-border shrink-0;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
.cn-separator-horizontal {
|
|
1017
|
+
@apply h-px w-full;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
.cn-separator-vertical {
|
|
1021
|
+
@apply h-full w-px;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
/* MARK: Sheet */
|
|
1025
|
+
.cn-sheet-overlay {
|
|
1026
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
.cn-sheet-content {
|
|
1030
|
+
@apply bg-background data-open:animate-in data-closed:animate-out data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col gap-4 bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
.cn-sheet-close {
|
|
1034
|
+
@apply absolute top-3 right-3;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
.cn-sheet-header {
|
|
1038
|
+
@apply gap-0.5 p-4;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
.cn-sheet-footer {
|
|
1042
|
+
@apply gap-2 p-4;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
.cn-sheet-title {
|
|
1046
|
+
@apply text-foreground text-base font-medium;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
.cn-sheet-description {
|
|
1050
|
+
@apply text-muted-foreground text-sm;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
/* MARK: Sidebar */
|
|
1054
|
+
.cn-sidebar-gap {
|
|
1055
|
+
@apply transition-[width] duration-200 ease-linear;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
.cn-sidebar-inner {
|
|
1059
|
+
@apply bg-sidebar group-data-[variant=floating]:ring-sidebar-border group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
.cn-sidebar-rail {
|
|
1063
|
+
@apply hover:after:bg-sidebar-border;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
.cn-sidebar-inset {
|
|
1067
|
+
@apply bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
.cn-sidebar-input {
|
|
1071
|
+
@apply bg-background h-8 w-full shadow-none;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
.cn-sidebar-header {
|
|
1075
|
+
@apply gap-2 p-2;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
.cn-sidebar-content {
|
|
1079
|
+
@apply no-scrollbar gap-0;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
.cn-sidebar-footer {
|
|
1083
|
+
@apply gap-2 p-2;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
.cn-sidebar-separator {
|
|
1087
|
+
@apply bg-sidebar-border mx-2;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
.cn-sidebar-group {
|
|
1091
|
+
@apply p-2;
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
.cn-sidebar-menu {
|
|
1095
|
+
@apply gap-0;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
.cn-sidebar-group-content {
|
|
1099
|
+
@apply text-sm;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
.cn-sidebar-group-label {
|
|
1103
|
+
@apply text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
.cn-sidebar-group-action {
|
|
1107
|
+
@apply text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 w-5 rounded-md p-0 focus-visible:ring-2 [&>svg]:size-4;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
.cn-sidebar-menu-button {
|
|
1111
|
+
@apply ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground gap-2 rounded-md p-2 text-left text-sm transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 data-active:font-medium;
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
.cn-sidebar-menu-button-variant-default {
|
|
1115
|
+
@apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
.cn-sidebar-menu-button-variant-outline {
|
|
1119
|
+
@apply bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))];
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
.cn-sidebar-menu-button-size-default {
|
|
1123
|
+
@apply h-8 text-sm;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
.cn-sidebar-menu-button-size-sm {
|
|
1127
|
+
@apply h-7 text-xs;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
.cn-sidebar-menu-button-size-lg {
|
|
1131
|
+
@apply h-12 text-sm group-data-[collapsible=icon]:p-0!;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
.cn-sidebar-menu-action {
|
|
1135
|
+
@apply text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 aspect-square w-5 rounded-md p-0 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 focus-visible:ring-2 [&>svg]:size-4;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
.cn-sidebar-menu-badge {
|
|
1139
|
+
@apply text-sidebar-foreground peer-hover/menu-button:text-sidebar-accent-foreground peer-data-active/menu-button:text-sidebar-accent-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 rounded-md px-1 text-xs font-medium peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
.cn-sidebar-menu-skeleton {
|
|
1143
|
+
@apply h-8 gap-2 rounded-md px-2;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
.cn-sidebar-menu-skeleton-icon {
|
|
1147
|
+
@apply size-4 rounded-md;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
.cn-sidebar-menu-skeleton-text {
|
|
1151
|
+
@apply h-4;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
.cn-sidebar-menu-sub {
|
|
1155
|
+
@apply border-sidebar-border mx-3.5 translate-x-px gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
.cn-sidebar-menu-sub-button {
|
|
1159
|
+
@apply text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground h-7 gap-2 rounded-md px-2 focus-visible:ring-2 data-[size=md]:text-sm data-[size=sm]:text-xs [&>svg]:size-4;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
/* MARK: Skeleton */
|
|
1163
|
+
.cn-skeleton {
|
|
1164
|
+
@apply bg-muted rounded-md;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
/* MARK: Slider */
|
|
1168
|
+
.cn-slider {
|
|
1169
|
+
@apply data-vertical:min-h-40;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
.cn-slider-track {
|
|
1173
|
+
@apply bg-muted rounded-full data-horizontal:h-1 data-horizontal:w-full data-vertical:h-full data-vertical:w-1;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
.cn-slider-range {
|
|
1177
|
+
@apply bg-primary;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
.cn-slider-thumb {
|
|
1181
|
+
@apply border-ring ring-ring/50 relative size-3 rounded-full border bg-white transition-[color,box-shadow] after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
/* MARK: Sonner */
|
|
1185
|
+
.cn-toast {
|
|
1186
|
+
@apply rounded-2xl;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
/* MARK: Switch */
|
|
1190
|
+
.cn-switch {
|
|
1191
|
+
@apply data-checked:bg-primary data-unchecked:bg-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 dark:data-unchecked:bg-input/80 shrink-0 rounded-full border border-transparent focus-visible:ring-3 aria-invalid:ring-3 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px];
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
.cn-switch-thumb {
|
|
1195
|
+
@apply bg-background dark:data-unchecked:bg-foreground dark:data-checked:bg-primary-foreground rounded-full group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
/* MARK: Table */
|
|
1199
|
+
.cn-table-container {
|
|
1200
|
+
@apply relative w-full overflow-x-auto;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
.cn-table {
|
|
1204
|
+
@apply w-full caption-bottom text-sm;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
.cn-table-header {
|
|
1208
|
+
@apply [&_tr]:border-b;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
.cn-table-body {
|
|
1212
|
+
@apply [&_tr:last-child]:border-0;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
.cn-table-footer {
|
|
1216
|
+
@apply bg-muted/50 border-t font-medium [&>tr]:last:border-b-0;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
.cn-table-row {
|
|
1220
|
+
@apply hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
.cn-table-head {
|
|
1224
|
+
@apply text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
.cn-table-cell {
|
|
1228
|
+
@apply p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
.cn-table-caption {
|
|
1232
|
+
@apply text-muted-foreground mt-4 text-sm;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
/* MARK: Tabs */
|
|
1236
|
+
.cn-tabs {
|
|
1237
|
+
@apply gap-2;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
.cn-tabs-list {
|
|
1241
|
+
@apply rounded-lg p-[3px] group-data-horizontal/tabs:h-8 data-[variant=line]:rounded-none;
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
.cn-tabs-trigger {
|
|
1245
|
+
@apply gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg:not([class*='size-'])]:size-4;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
.cn-tabs-content {
|
|
1249
|
+
@apply text-sm;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
/* MARK: Textarea */
|
|
1253
|
+
.cn-textarea {
|
|
1254
|
+
@apply border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 rounded-lg border bg-transparent px-2.5 py-2 text-base transition-colors focus-visible:ring-3 aria-invalid:ring-3 md:text-sm;
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
/* MARK: Toggle */
|
|
1258
|
+
.cn-toggle {
|
|
1259
|
+
@apply hover:text-foreground aria-pressed:bg-muted focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[state=on]:bg-muted gap-1 rounded-lg text-sm font-medium transition-all [&_svg:not([class*='size-'])]:size-4;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
.cn-toggle-variant-default {
|
|
1263
|
+
@apply bg-transparent;
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
.cn-toggle-variant-outline {
|
|
1267
|
+
@apply border-input hover:bg-muted border bg-transparent;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
.cn-toggle-size-default {
|
|
1271
|
+
@apply h-8 min-w-8 px-2;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
.cn-toggle-size-sm {
|
|
1275
|
+
@apply h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-1.5 text-[0.8rem];
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
.cn-toggle-size-lg {
|
|
1279
|
+
@apply h-9 min-w-9 px-2.5;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
/* MARK: Toggle Group */
|
|
1283
|
+
.cn-toggle-group {
|
|
1284
|
+
@apply rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)];
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
.cn-toggle-group-item {
|
|
1288
|
+
@apply group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
/* MARK: Tooltip */
|
|
1292
|
+
.cn-tooltip-content {
|
|
1293
|
+
@apply data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-md px-3 py-1.5 text-xs;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
.cn-tooltip-content-logical {
|
|
1297
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
.cn-tooltip-arrow {
|
|
1301
|
+
@apply size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px];
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
.cn-tooltip-arrow-logical {
|
|
1305
|
+
@apply data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
/* MARK: Input Group */
|
|
1309
|
+
.cn-input-group {
|
|
1310
|
+
@apply border-input dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-disabled:bg-input/50 dark:has-disabled:bg-input/80 h-8 rounded-lg border transition-colors in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-3 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
.cn-input-group-addon {
|
|
1314
|
+
@apply text-muted-foreground h-auto gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
.cn-input-group-addon-align-inline-start {
|
|
1318
|
+
@apply pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem];
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
.cn-input-group-addon-align-inline-end {
|
|
1322
|
+
@apply pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem];
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
.cn-input-group-addon-align-block-start {
|
|
1326
|
+
@apply px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
.cn-input-group-addon-align-block-end {
|
|
1330
|
+
@apply px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
.cn-input-group-button {
|
|
1334
|
+
@apply gap-2 text-sm;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
.cn-input-group-button-size-xs {
|
|
1338
|
+
@apply h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
.cn-input-group-button-size-icon-xs {
|
|
1342
|
+
@apply size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
.cn-input-group-button-size-icon-sm {
|
|
1346
|
+
@apply size-8 p-0 has-[>svg]:p-0;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
.cn-input-group-text {
|
|
1350
|
+
@apply text-muted-foreground gap-2 text-sm [&_svg:not([class*='size-'])]:size-4;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
.cn-input-group-input {
|
|
1354
|
+
@apply rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent;
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
.cn-input-group-textarea {
|
|
1358
|
+
@apply rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent;
|
|
1359
|
+
}
|
|
1360
|
+
}
|