@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,1362 @@
|
|
|
1
|
+
.style-mira {
|
|
2
|
+
/* MARK: Accordion */
|
|
3
|
+
.cn-accordion {
|
|
4
|
+
@apply overflow-hidden rounded-md border;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.cn-accordion-item {
|
|
8
|
+
@apply data-open:bg-muted/50 not-last:border-b;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.cn-accordion-trigger {
|
|
12
|
+
@apply **:data-[slot=accordion-trigger-icon]:text-muted-foreground gap-6 p-2 text-left text-xs/relaxed font-medium hover:underline **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.cn-accordion-content {
|
|
16
|
+
@apply data-open:animate-accordion-down data-closed:animate-accordion-up px-2 text-xs/relaxed;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.cn-accordion-content-inner {
|
|
20
|
+
@apply pt-0 pb-4;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* MARK: Alert Dialog */
|
|
24
|
+
.cn-alert-dialog-overlay {
|
|
25
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.cn-alert-dialog-content {
|
|
29
|
+
@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-3 rounded-xl p-4 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.cn-alert-dialog-header {
|
|
33
|
+
@apply grid grid-rows-[auto_1fr] place-items-center gap-1 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];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.cn-alert-dialog-media {
|
|
37
|
+
@apply bg-muted mb-2 inline-flex size-8 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.cn-alert-dialog-title {
|
|
41
|
+
@apply text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.cn-alert-dialog-description {
|
|
45
|
+
@apply text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* MARK: Alert */
|
|
49
|
+
.cn-alert {
|
|
50
|
+
@apply grid gap-0.5 rounded-lg border px-2 py-1.5 text-left text-xs/relaxed has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-1.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-3.5;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.cn-alert-variant-default {
|
|
54
|
+
@apply bg-card text-card-foreground;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.cn-alert-variant-destructive {
|
|
58
|
+
@apply text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.cn-alert-title {
|
|
62
|
+
@apply font-medium group-has-[>svg]/alert:col-start-2;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.cn-alert-description {
|
|
66
|
+
@apply text-muted-foreground text-xs/relaxed text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.cn-alert-action {
|
|
70
|
+
@apply absolute top-1.5 right-2;
|
|
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-xs/relaxed 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-full border border-transparent px-2 py-0.5 text-[0.625rem] font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-2.5!;
|
|
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 bg-input/20 dark:bg-input/30;
|
|
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-xs/relaxed;
|
|
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-4 [&>svg]:size-3.5;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* MARK: Button */
|
|
149
|
+
.cn-button {
|
|
150
|
+
@apply focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium focus-visible:ring-2 aria-invalid:ring-2 [&_svg:not([class*='size-'])]:size-4;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.cn-button-variant-default {
|
|
154
|
+
@apply bg-primary text-primary-foreground hover:bg-primary/80;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.cn-button-variant-outline {
|
|
158
|
+
@apply border-border dark:bg-input/30 hover:bg-input/50 hover:text-foreground 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-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.cn-button-size-sm {
|
|
182
|
+
@apply h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.cn-button-size-default {
|
|
186
|
+
@apply h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.cn-button-size-lg {
|
|
190
|
+
@apply h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.cn-button-size-icon-xs {
|
|
194
|
+
@apply size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.cn-button-size-icon-sm {
|
|
198
|
+
@apply size-6 [&_svg:not([class*='size-'])]:size-3;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.cn-button-size-icon {
|
|
202
|
+
@apply size-7 [&_svg:not([class*='size-'])]:size-3.5;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.cn-button-size-icon-lg {
|
|
206
|
+
@apply size-8 [&_svg:not([class*='size-'])]:size-4;
|
|
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-md;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.cn-button-group-orientation-horizontal {
|
|
215
|
+
@apply [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-md!;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.cn-button-group-orientation-vertical {
|
|
219
|
+
@apply [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-md!;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.cn-button-group-text {
|
|
223
|
+
@apply bg-muted gap-2 rounded-md border px-2.5 text-xs/relaxed 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-3 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(6)];
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.cn-calendar-dropdown-root {
|
|
236
|
+
@apply has-focus:border-ring border-input has-focus:ring-ring/30 border has-focus:ring-2;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.cn-calendar-caption-label {
|
|
240
|
+
@apply bg-input/20 dark:bg-input/30 h-7 pr-1.5 pl-2;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* MARK: Card */
|
|
244
|
+
.cn-card {
|
|
245
|
+
@apply ring-foreground/10 bg-card text-card-foreground gap-4 overflow-hidden rounded-lg py-4 text-xs/relaxed ring-1 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.cn-card-header {
|
|
249
|
+
@apply gap-1 rounded-t-lg 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-sm font-medium;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.cn-card-description {
|
|
257
|
+
@apply text-muted-foreground text-xs/relaxed;
|
|
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 rounded-b-lg px-4 group-data-[size=sm]/card:px-3 [.border-t]:pt-4 group-data-[size=sm]/card:[.border-t]:pt-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/relaxed 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/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border transition-shadow group-has-disabled/field:opacity-50 focus-visible:ring-2 aria-invalid:ring-2;
|
|
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/20 dark:bg-popover max-h-72 min-w-32 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-7 *:data-[slot=input-group]:border-none *: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 min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.cn-combobox-item-indicator {
|
|
309
|
+
@apply pointer-events-none absolute right-2 flex 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-xs/relaxed 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/50 -mx-1 my-1 h-px;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.cn-combobox-trigger {
|
|
329
|
+
@apply [&_svg:not([class*='size-'])]:size-3.5;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.cn-combobox-trigger-icon {
|
|
333
|
+
@apply text-muted-foreground size-3.5;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.cn-combobox-chips {
|
|
337
|
+
@apply bg-input/20 dark:bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/30 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-7 flex-wrap items-center gap-1 rounded-md border bg-clip-padding px-2 py-0.5 text-xs/relaxed transition-colors focus-within:ring-2 has-aria-invalid:ring-2 has-data-[slot=combobox-chip]:px-1;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.cn-combobox-chip {
|
|
341
|
+
@apply bg-muted-foreground/10 text-foreground flex h-[calc(--spacing(4.75))] w-fit items-center justify-center gap-1 rounded-[calc(var(--radius-sm)-2px)] px-1.5 text-xs/relaxed 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! p-0;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.cn-command-input-wrapper {
|
|
358
|
+
@apply p-1 pb-0;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.cn-command-input-group {
|
|
362
|
+
@apply bg-input/20 dark:bg-input/30 h-8!;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.cn-command-input-icon {
|
|
366
|
+
@apply size-3.5 shrink-0 opacity-50;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.cn-command-input {
|
|
370
|
+
@apply w-full text-xs/relaxed;
|
|
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-xs/relaxed;
|
|
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.5 **:[[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/50 -mx-1 my-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 min-h-7 cursor-default items-center gap-2 rounded-md px-2.5 py-1.5 text-xs/relaxed outline-hidden select-none in-data-[slot=dialog-content]:rounded-md [&_svg:not([class*='size-'])]:size-3.5;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.cn-command-shortcut {
|
|
394
|
+
@apply text-muted-foreground group-data-selected/command-item:text-foreground ml-auto text-[0.625rem] 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-32 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 not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.cn-context-menu-checkbox-item {
|
|
411
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-8 pl-2 text-xs data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.cn-context-menu-radio-item {
|
|
415
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-8 pl-2 text-xs data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.cn-context-menu-item-indicator {
|
|
419
|
+
@apply pointer-events-none absolute right-2 flex items-center justify-center;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.cn-context-menu-label {
|
|
423
|
+
@apply text-muted-foreground px-2 py-1.5 text-xs data-inset:pl-7.5;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.cn-context-menu-separator {
|
|
427
|
+
@apply bg-border/50 -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-[0.625rem] 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 not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
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 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 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/80 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-xs/relaxed 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-1;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.cn-dialog-footer {
|
|
464
|
+
@apply gap-2;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.cn-dialog-title {
|
|
468
|
+
@apply text-sm font-medium;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.cn-dialog-description {
|
|
472
|
+
@apply text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed *:[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/80 supports-backdrop-filter:backdrop-blur-xs;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.cn-drawer-content {
|
|
481
|
+
@apply before:bg-background before:border-border relative flex h-auto flex-col bg-transparent p-2 text-xs/relaxed before:absolute before:inset-2 before:-z-10 before:rounded-xl before:border 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=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 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=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=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.5 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.cn-drawer-header {
|
|
489
|
+
@apply gap-1 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:text-left;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.cn-drawer-title {
|
|
493
|
+
@apply text-foreground text-sm font-medium;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.cn-drawer-description {
|
|
497
|
+
@apply text-muted-foreground text-xs/relaxed;
|
|
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 min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.cn-dropdown-menu-checkbox-item {
|
|
518
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-8 pl-2 text-xs data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.cn-dropdown-menu-radio-item {
|
|
522
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-8 pl-2 text-xs data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
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-2 py-1.5 text-xs data-inset:pl-7.5;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.cn-dropdown-menu-separator {
|
|
534
|
+
@apply bg-border/50 -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-[0.625rem] 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 min-h-7 gap-2 rounded-md px-2 py-1 text-xs data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
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-32 rounded-lg p-1 shadow-md 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-1;
|
|
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-md [&_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-xs/relaxed;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.cn-empty-content {
|
|
583
|
+
@apply gap-2 text-xs/relaxed;
|
|
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-2 font-medium data-[variant=label]:text-xs/relaxed data-[variant=legend]:text-sm;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.cn-field-group {
|
|
596
|
+
@apply gap-4 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 dark:has-data-checked:bg-primary/10 gap-2 group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border *:data-[slot=field]:p-2;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.cn-field-title {
|
|
612
|
+
@apply gap-2 text-xs/relaxed font-medium group-data-[disabled=true]/field:opacity-50;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.cn-field-description {
|
|
616
|
+
@apply text-muted-foreground text-left text-xs/relaxed [[data-variant=legend]+&]:-mt-1.5;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.cn-field-separator {
|
|
620
|
+
@apply -my-2 h-5 text-xs/relaxed 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-xs/relaxed;
|
|
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-72 rounded-lg p-2.5 text-xs/relaxed 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 bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 rounded-md border px-2 py-0.5 text-sm transition-colors file:h-6 file:text-xs/relaxed file:font-medium focus-visible:ring-2 aria-invalid:ring-2 md:text-xs/relaxed;
|
|
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-md has-aria-invalid:ring-2;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.cn-input-otp-slot {
|
|
655
|
+
@apply bg-input/20 dark:bg-input/30 border-input data-[active=true]:border-ring data-[active=true]:ring-ring/30 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-7 border-y border-r text-xs/relaxed transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:ring-2;
|
|
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-md border text-xs/relaxed;
|
|
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.5 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-8 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.5;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
.cn-item-title {
|
|
716
|
+
@apply gap-2 text-xs/relaxed leading-snug font-medium underline-offset-4;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
.cn-item-description {
|
|
720
|
+
@apply text-muted-foreground text-left text-xs/relaxed;
|
|
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-xs px-1 font-sans text-[0.625rem] 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-xs/relaxed 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-9 rounded-lg border p-1;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.cn-menubar-trigger {
|
|
763
|
+
@apply hover:bg-muted aria-expanded:bg-muted rounded-[calc(var(--radius-md)-2px)] px-2 py-[calc(--spacing(0.85))] text-xs/relaxed 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-32 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 min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed data-disabled:opacity-50 data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.cn-menubar-checkbox-item {
|
|
779
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1.5 pr-2 pl-7.5 text-xs data-inset:pl-7.5;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.cn-menubar-checkbox-item-indicator {
|
|
783
|
+
@apply left-2 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 min-h-7 gap-2 rounded-md py-1.5 pr-2 pl-7.5 text-xs data-disabled:opacity-50 data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
.cn-menubar-radio-item-indicator {
|
|
791
|
+
@apply left-2 size-4 [&_svg:not([class*='size-'])]:size-4;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
.cn-menubar-label {
|
|
795
|
+
@apply text-muted-foreground px-2 py-1.5 text-xs data-inset:pl-7.5;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.cn-menubar-separator {
|
|
799
|
+
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
.cn-menubar-shortcut {
|
|
803
|
+
@apply text-muted-foreground group-focus/menubar-item:text-accent-foreground text-[0.625rem] 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 not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs data-inset:pl-7.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
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-md 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/30 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted rounded-md px-2.5 py-1.5 text-xs/relaxed font-medium transition-all focus-visible:ring-2 focus-visible:outline-1 disabled:opacity-50;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
.cn-navigation-menu-trigger-icon {
|
|
828
|
+
@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;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
.cn-navigation-menu-content {
|
|
832
|
+
@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.5 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-xl group-data-[viewport=false]/navigation-menu:shadow-md group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
.cn-navigation-menu-viewport {
|
|
836
|
+
@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-xl shadow-md ring-1 duration-100;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
.cn-navigation-menu-link {
|
|
840
|
+
@apply data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 focus-visible:ring-ring/30 hover:bg-muted focus:bg-muted flex items-center gap-1.5 rounded-lg p-2 text-xs/relaxed transition-all outline-none focus-visible:ring-2 focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4;
|
|
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-xl 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 bg-input/20 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/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 w-full min-w-0 appearance-none rounded-md border py-0.5 pr-6 pl-2 text-xs/relaxed transition-colors select-none focus-visible:ring-2 aria-invalid:ring-2 data-[size=sm]:h-6 data-[size=sm]:text-[0.625rem];
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
.cn-native-select-icon {
|
|
865
|
+
@apply text-muted-foreground top-1/2 right-1.5 size-3.5 -translate-y-1/2 group-data-[size=sm]/native-select:size-3 group-data-[size=sm]/native-select:-translate-y-[calc(--spacing(1.25))];
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
/* MARK: Pagination */
|
|
869
|
+
.cn-pagination-content {
|
|
870
|
+
@apply gap-0.5;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
.cn-pagination-ellipsis {
|
|
874
|
+
@apply size-7 items-center justify-center [&_svg:not([class*='size-'])]:size-3.5;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
.cn-pagination-previous {
|
|
878
|
+
@apply pl-2!;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
.cn-pagination-next {
|
|
882
|
+
@apply pr-2!;
|
|
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-4 rounded-lg p-2.5 text-xs 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-1 text-xs;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
.cn-popover-title {
|
|
899
|
+
@apply text-sm 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-md;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
.cn-progress-track {
|
|
912
|
+
@apply bg-muted h-1 rounded-md;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
.cn-progress-indicator {
|
|
916
|
+
@apply bg-primary;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.cn-progress-label {
|
|
920
|
+
@apply text-xs/relaxed font-medium;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.cn-progress-value {
|
|
924
|
+
@apply text-muted-foreground ml-auto text-xs/relaxed tabular-nums;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
/* MARK: Radio Group */
|
|
928
|
+
.cn-radio-group {
|
|
929
|
+
@apply grid gap-3;
|
|
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 bg-input/20 dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/30 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-md border px-2 py-1.5 text-xs/relaxed transition-colors focus-visible:ring-2 aria-invalid:ring-2 data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
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-3.5;
|
|
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-32 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-2 py-1.5 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 min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5 *:[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 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/50 -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-3.5;
|
|
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-3.5;
|
|
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/80 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 bg-clip-padding text-xs/relaxed 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-4 right-4;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
.cn-sheet-header {
|
|
1038
|
+
@apply gap-1.5 p-6;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
.cn-sheet-footer {
|
|
1042
|
+
@apply gap-2 p-6;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
.cn-sheet-title {
|
|
1046
|
+
@apply text-foreground text-sm font-medium;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
.cn-sheet-description {
|
|
1050
|
+
@apply text-muted-foreground text-xs/relaxed;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
/* MARK: Sidebar */
|
|
1054
|
+
|
|
1055
|
+
/* MARK: Sidebar */
|
|
1056
|
+
.cn-sidebar-gap {
|
|
1057
|
+
@apply transition-[width] duration-200 ease-linear;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
.cn-sidebar-inner {
|
|
1061
|
+
@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;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
.cn-sidebar-rail {
|
|
1065
|
+
@apply hover:after:bg-sidebar-border;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
.cn-sidebar-inset {
|
|
1069
|
+
@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;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
.cn-sidebar-input {
|
|
1073
|
+
@apply bg-muted/20 dark:bg-muted/30 border-input h-8 w-full;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
.cn-sidebar-header {
|
|
1077
|
+
@apply gap-2 p-2;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
.cn-sidebar-content {
|
|
1081
|
+
@apply no-scrollbar gap-0;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
.cn-sidebar-footer {
|
|
1085
|
+
@apply gap-2 p-2;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
.cn-sidebar-separator {
|
|
1089
|
+
@apply bg-sidebar-border mx-2;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
.cn-sidebar-group {
|
|
1093
|
+
@apply px-2 py-1;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
.cn-sidebar-menu {
|
|
1097
|
+
@apply gap-px;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
.cn-sidebar-group-content {
|
|
1101
|
+
@apply text-xs;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
.cn-sidebar-group-label {
|
|
1105
|
+
@apply text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs 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;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
.cn-sidebar-group-action {
|
|
1109
|
+
@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;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
.cn-sidebar-menu-button {
|
|
1113
|
+
@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-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs 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;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
.cn-sidebar-menu-button-variant-default {
|
|
1117
|
+
@apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
.cn-sidebar-menu-button-variant-outline {
|
|
1121
|
+
@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))];
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
.cn-sidebar-menu-button-size-default {
|
|
1125
|
+
@apply h-8 text-xs;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
.cn-sidebar-menu-button-size-sm {
|
|
1129
|
+
@apply h-7 text-xs;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
.cn-sidebar-menu-button-size-lg {
|
|
1133
|
+
@apply h-12 text-xs group-data-[collapsible=icon]:p-0!;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
.cn-sidebar-menu-action {
|
|
1137
|
+
@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-[calc(var(--radius-sm)-2px)] 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;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
.cn-sidebar-menu-badge {
|
|
1141
|
+
@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-[calc(var(--radius-sm)-2px)] 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;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
.cn-sidebar-menu-skeleton {
|
|
1145
|
+
@apply h-8 gap-2 rounded-md px-2;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
.cn-sidebar-menu-skeleton-icon {
|
|
1149
|
+
@apply size-4 rounded-md;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
.cn-sidebar-menu-skeleton-text {
|
|
1153
|
+
@apply h-4;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
.cn-sidebar-menu-sub {
|
|
1157
|
+
@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;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
.cn-sidebar-menu-sub-button {
|
|
1161
|
+
@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-xs data-[size=sm]:text-xs [&>svg]:size-4;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
/* MARK: Skeleton */
|
|
1165
|
+
.cn-skeleton {
|
|
1166
|
+
@apply bg-muted rounded-md;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
/* MARK: Slider */
|
|
1170
|
+
.cn-slider {
|
|
1171
|
+
@apply data-vertical:min-h-40;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
.cn-slider-track {
|
|
1175
|
+
@apply bg-muted rounded-md data-horizontal:h-3 data-horizontal:w-full data-vertical:h-full data-vertical:w-3;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
.cn-slider-range {
|
|
1179
|
+
@apply bg-primary;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
.cn-slider-thumb {
|
|
1183
|
+
@apply border-primary ring-ring/30 size-4 rounded-md border bg-white shadow-sm transition-colors hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
/* MARK: Sonner */
|
|
1187
|
+
.cn-toast {
|
|
1188
|
+
@apply rounded-md;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
/* MARK: Switch */
|
|
1192
|
+
.cn-switch {
|
|
1193
|
+
@apply data-checked:bg-primary data-unchecked:bg-input focus-visible:border-ring focus-visible:ring-ring/30 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-2 aria-invalid:ring-2 data-[size=default]:h-[16.6px] data-[size=default]:w-[28px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px];
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
.cn-switch-thumb {
|
|
1197
|
+
@apply bg-background dark:data-unchecked:bg-foreground dark:data-checked:bg-primary-foreground rounded-full group-data-[size=default]/switch:size-3.5 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;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
/* MARK: Table */
|
|
1201
|
+
.cn-table-container {
|
|
1202
|
+
@apply relative w-full overflow-x-auto;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.cn-table {
|
|
1206
|
+
@apply w-full caption-bottom text-xs;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
.cn-table-header {
|
|
1210
|
+
@apply [&_tr]:border-b;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
.cn-table-body {
|
|
1214
|
+
@apply [&_tr:last-child]:border-0;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
.cn-table-footer {
|
|
1218
|
+
@apply bg-muted/50 border-t font-medium [&>tr]:last:border-b-0;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
.cn-table-row {
|
|
1222
|
+
@apply hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
.cn-table-head {
|
|
1226
|
+
@apply text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
.cn-table-cell {
|
|
1230
|
+
@apply p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
.cn-table-caption {
|
|
1234
|
+
@apply text-muted-foreground mt-4 text-xs;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
/* MARK: Tabs */
|
|
1238
|
+
.cn-tabs {
|
|
1239
|
+
@apply gap-2;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
.cn-tabs-list {
|
|
1243
|
+
@apply rounded-lg p-[3px] group-data-horizontal/tabs:h-8 data-[variant=line]:rounded-none;
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
.cn-tabs-trigger {
|
|
1247
|
+
@apply gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-xs font-medium group-data-vertical/tabs:py-[calc(--spacing(1.25))] [&_svg:not([class*='size-'])]:size-3.5;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
.cn-tabs-content {
|
|
1251
|
+
@apply text-xs/relaxed;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
/* MARK: Textarea */
|
|
1255
|
+
.cn-textarea {
|
|
1256
|
+
@apply border-input bg-input/20 dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 resize-none rounded-md border px-2 py-2 text-sm transition-colors focus-visible:ring-2 aria-invalid:ring-2 md:text-xs/relaxed;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
/* MARK: Toggle */
|
|
1260
|
+
.cn-toggle {
|
|
1261
|
+
@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-md text-xs font-medium transition-all [&_svg:not([class*='size-'])]:size-3.5;
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
.cn-toggle-variant-default {
|
|
1265
|
+
@apply bg-transparent;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
.cn-toggle-variant-outline {
|
|
1269
|
+
@apply border-input hover:bg-muted border bg-transparent;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
.cn-toggle-size-default {
|
|
1273
|
+
@apply h-7 min-w-7 px-2;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
.cn-toggle-size-sm {
|
|
1277
|
+
@apply h-6 min-w-6 rounded-[min(var(--radius-md),8px)] px-1.5 text-[0.625rem] [&_svg:not([class*='size-'])]:size-3;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
.cn-toggle-size-lg {
|
|
1281
|
+
@apply h-8 min-w-8 px-2;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
/* MARK: Toggle Group */
|
|
1285
|
+
.cn-toggle-group {
|
|
1286
|
+
@apply rounded-md data-[size=sm]:rounded-[min(var(--radius-md),8px)];
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
.cn-toggle-group-item {
|
|
1290
|
+
@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-md group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-md group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-md group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-md;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
/* MARK: Tooltip */
|
|
1294
|
+
.cn-tooltip-content {
|
|
1295
|
+
@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 **:data-[slot=kbd]:rounded-md;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
.cn-tooltip-content-logical {
|
|
1299
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
.cn-tooltip-arrow {
|
|
1303
|
+
@apply size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px];
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
.cn-tooltip-arrow-logical {
|
|
1307
|
+
@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;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
/* MARK: Input Group */
|
|
1311
|
+
.cn-input-group {
|
|
1312
|
+
@apply border-input bg-input/20 dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/30 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 h-7 rounded-md border transition-colors in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-data-[align=block-end]:rounded-md has-data-[align=block-start]:rounded-md has-[[data-slot=input-group-control]:focus-visible]:ring-2 has-[[data-slot][aria-invalid=true]]:ring-2 has-[textarea]:rounded-md 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;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
.cn-input-group-addon {
|
|
1316
|
+
@apply text-muted-foreground **:data-[slot=kbd]:bg-muted-foreground/10 h-auto gap-1 py-2 text-xs/relaxed font-medium group-data-[disabled=true]/input-group:opacity-50 **:data-[slot=kbd]:rounded-[calc(var(--radius-sm)-2px)] **:data-[slot=kbd]:px-1 **:data-[slot=kbd]:text-[0.625rem] [&>svg:not([class*='size-'])]:size-3.5;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
.cn-input-group-addon-align-inline-start {
|
|
1320
|
+
@apply pl-2 has-[>button]:ml-[-0.275rem] has-[>kbd]:ml-[-0.275rem];
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
.cn-input-group-addon-align-inline-end {
|
|
1324
|
+
@apply pr-2 has-[>button]:mr-[-0.275rem] has-[>kbd]:mr-[-0.275rem];
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
.cn-input-group-addon-align-block-start {
|
|
1328
|
+
@apply px-2 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
.cn-input-group-addon-align-block-end {
|
|
1332
|
+
@apply px-2 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
.cn-input-group-button {
|
|
1336
|
+
@apply gap-2 rounded-md text-xs/relaxed;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
.cn-input-group-button-size-xs {
|
|
1340
|
+
@apply h-5 gap-1 rounded-[calc(var(--radius-sm)-2px)] px-1 [&>svg:not([class*='size-'])]:size-3;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
.cn-input-group-button-size-icon-xs {
|
|
1344
|
+
@apply size-6 p-0 has-[>svg]:p-0;
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
.cn-input-group-button-size-icon-sm {
|
|
1348
|
+
@apply size-8 p-0 has-[>svg]:p-0;
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
.cn-input-group-text {
|
|
1352
|
+
@apply text-muted-foreground gap-2 text-xs/relaxed [&_svg:not([class*='size-'])]:size-4;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
.cn-input-group-input {
|
|
1356
|
+
@apply rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
.cn-input-group-textarea {
|
|
1360
|
+
@apply rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent;
|
|
1361
|
+
}
|
|
1362
|
+
}
|