@auronui/styles 1.0.11 → 1.0.13
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/components/autocomplete.css +82 -0
- package/components/select.css +1 -1
- package/package.json +1 -1
- package/src/components/index.ts +0 -2
- package/src/components/tag/index.ts +0 -1
- package/src/components/tag/tag.styles.ts +0 -37
- package/src/components/tag-group/index.ts +0 -1
- package/src/components/tag-group/tag-group.styles.ts +0 -12
|
@@ -192,6 +192,64 @@
|
|
|
192
192
|
height: 2.75rem;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
+
/* ─── Multiple overflow modes ────────────────────────────────────────────────── */
|
|
196
|
+
|
|
197
|
+
/* wrap: trigger grows in height as chips wrap to new lines */
|
|
198
|
+
.autocomplete__trigger[data-multiple-overflow="wrap"] {
|
|
199
|
+
height: auto;
|
|
200
|
+
min-height: 2.25rem;
|
|
201
|
+
flex-wrap: wrap;
|
|
202
|
+
row-gap: 0.25rem;
|
|
203
|
+
align-items: center;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.autocomplete__trigger--sm[data-multiple-overflow="wrap"] {
|
|
207
|
+
min-height: 1.75rem;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.autocomplete__trigger--lg[data-multiple-overflow="wrap"] {
|
|
211
|
+
min-height: 2.75rem;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* label-inside + wrap: restore vertical padding so chips appear below the floating label */
|
|
215
|
+
.autocomplete__trigger--label-inside[data-multiple-overflow="wrap"] {
|
|
216
|
+
min-height: 3.5rem;
|
|
217
|
+
padding-top: 1.625rem;
|
|
218
|
+
padding-bottom: 0.375rem;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.autocomplete__trigger--label-inside.autocomplete__trigger--sm[data-multiple-overflow="wrap"] {
|
|
222
|
+
min-height: 2.5rem;
|
|
223
|
+
padding-top: 1.125rem;
|
|
224
|
+
padding-bottom: 0.25rem;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.autocomplete__trigger--label-inside.autocomplete__trigger--lg[data-multiple-overflow="wrap"] {
|
|
228
|
+
min-height: 4rem;
|
|
229
|
+
padding-top: 1.875rem;
|
|
230
|
+
padding-bottom: 0.5rem;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* In label-inside mode the input normally has padding-top to sit below the floating label.
|
|
234
|
+
In multiple mode the trigger's own padding-top already handles label spacing, so the
|
|
235
|
+
input's extra padding-top stacks and pushes it below the chips. Zero it out here. */
|
|
236
|
+
.autocomplete__trigger--label-inside[data-multiple-overflow] .autocomplete__input {
|
|
237
|
+
padding-top: 0;
|
|
238
|
+
padding-bottom: 0;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.autocomplete__trigger--label-inside.autocomplete__trigger--sm[data-multiple-overflow] .autocomplete__input {
|
|
242
|
+
padding-top: 0;
|
|
243
|
+
padding-bottom: 0;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/* collapse: input shrinks to a minimum so the chip area gets the remaining space */
|
|
247
|
+
.autocomplete__trigger[data-multiple-overflow="collapse"] .autocomplete__input {
|
|
248
|
+
flex-shrink: 0;
|
|
249
|
+
min-width: 80px;
|
|
250
|
+
width: auto;
|
|
251
|
+
}
|
|
252
|
+
|
|
195
253
|
/* ─── Color modifiers ────────────────────────────────────────────────────────── */
|
|
196
254
|
|
|
197
255
|
.autocomplete__trigger--default {
|
|
@@ -399,6 +457,30 @@
|
|
|
399
457
|
transform: translateY(-110%) scale(0.85);
|
|
400
458
|
}
|
|
401
459
|
|
|
460
|
+
/* Multiple overflow: the trigger grows to fit chip rows, so top:50% drifts into
|
|
461
|
+
the chip area. Replace with a fixed top anchor so the label stays pinned
|
|
462
|
+
regardless of how tall the trigger grows. */
|
|
463
|
+
.autocomplete__trigger--label-inside[data-multiple-overflow]:focus-within .autocomplete__label,
|
|
464
|
+
.autocomplete__trigger--label-inside[data-multiple-overflow][data-focused="true"] .autocomplete__label,
|
|
465
|
+
.autocomplete__trigger--label-inside[data-multiple-overflow][data-filled="true"] .autocomplete__label {
|
|
466
|
+
top: 0.375rem;
|
|
467
|
+
transform: scale(0.85);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.autocomplete__trigger--label-inside.autocomplete__trigger--sm[data-multiple-overflow]:focus-within .autocomplete__label,
|
|
471
|
+
.autocomplete__trigger--label-inside.autocomplete__trigger--sm[data-multiple-overflow][data-focused="true"] .autocomplete__label,
|
|
472
|
+
.autocomplete__trigger--label-inside.autocomplete__trigger--sm[data-multiple-overflow][data-filled="true"] .autocomplete__label {
|
|
473
|
+
top: 0.25rem;
|
|
474
|
+
transform: scale(0.85);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.autocomplete__trigger--label-inside.autocomplete__trigger--lg[data-multiple-overflow]:focus-within .autocomplete__label,
|
|
478
|
+
.autocomplete__trigger--label-inside.autocomplete__trigger--lg[data-multiple-overflow][data-focused="true"] .autocomplete__label,
|
|
479
|
+
.autocomplete__trigger--label-inside.autocomplete__trigger--lg[data-multiple-overflow][data-filled="true"] .autocomplete__label {
|
|
480
|
+
top: 0.5rem;
|
|
481
|
+
transform: scale(0.85);
|
|
482
|
+
}
|
|
483
|
+
|
|
402
484
|
/* Size-aware offsets for the inside variant */
|
|
403
485
|
.autocomplete__trigger--label-inside.autocomplete__trigger--sm .autocomplete__label {
|
|
404
486
|
font-size: var(--text-xs, 0.75rem);
|
package/components/select.css
CHANGED
|
@@ -315,7 +315,7 @@
|
|
|
315
315
|
/* ─── Slots ──────────────────────────────────────────────────────────────────── */
|
|
316
316
|
|
|
317
317
|
.select__value {
|
|
318
|
-
@apply flex-1 text-left bg-transparent outline-none border-0 p-0 h-auto text-inherit wrap-break-word;
|
|
318
|
+
@apply flex-1 text-left bg-transparent outline-none border-0 p-0 h-auto text-inherit wrap-break-word overflow-hidden;
|
|
319
319
|
|
|
320
320
|
/* Removes the list-box-item indicator element from the select value */
|
|
321
321
|
[data-slot="list-box-item-indicator"] {
|
package/package.json
CHANGED
package/src/components/index.ts
CHANGED
|
@@ -69,8 +69,6 @@ export * from "./switch";
|
|
|
69
69
|
export * from "./switch-group";
|
|
70
70
|
export * from "./table";
|
|
71
71
|
export * from "./tabs";
|
|
72
|
-
export * from "./tag";
|
|
73
|
-
export * from "./tag-group";
|
|
74
72
|
export * from "./text";
|
|
75
73
|
export * from "./textarea";
|
|
76
74
|
export * from "./time-field";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./tag.styles";
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type {VariantProps} from "../../utils";
|
|
2
|
-
|
|
3
|
-
import {tv} from "tailwind-variants";
|
|
4
|
-
|
|
5
|
-
export const tagVariants = tv({
|
|
6
|
-
defaultVariants: {
|
|
7
|
-
size: "md",
|
|
8
|
-
variant: "default",
|
|
9
|
-
},
|
|
10
|
-
slots: {
|
|
11
|
-
base: "tag",
|
|
12
|
-
removeButton: "tag__remove-button",
|
|
13
|
-
},
|
|
14
|
-
variants: {
|
|
15
|
-
size: {
|
|
16
|
-
lg: {
|
|
17
|
-
base: "tag--lg",
|
|
18
|
-
},
|
|
19
|
-
md: {
|
|
20
|
-
base: "tag--md",
|
|
21
|
-
},
|
|
22
|
-
sm: {
|
|
23
|
-
base: "tag--sm",
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
variant: {
|
|
27
|
-
default: {
|
|
28
|
-
base: "tag--default",
|
|
29
|
-
},
|
|
30
|
-
surface: {
|
|
31
|
-
base: "tag--surface",
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
export type TagVariants = VariantProps<typeof tagVariants>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./tag-group.styles";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type {VariantProps} from "../../utils";
|
|
2
|
-
|
|
3
|
-
import {tv} from "tailwind-variants";
|
|
4
|
-
|
|
5
|
-
export const tagGroupVariants = tv({
|
|
6
|
-
slots: {
|
|
7
|
-
base: "tag-group",
|
|
8
|
-
list: "tag-group__list",
|
|
9
|
-
},
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
export type TagGroupVariants = VariantProps<typeof tagGroupVariants>;
|