@urbicon-ui/blocks 6.37.1 → 6.38.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/dist/components/AvatarGroup/AvatarGroup.svelte +60 -0
- package/dist/components/AvatarGroup/AvatarGroup.svelte.d.ts +4 -0
- package/dist/components/AvatarGroup/avatar-group.variants.d.ts +20 -0
- package/dist/components/AvatarGroup/avatar-group.variants.js +21 -0
- package/dist/components/AvatarGroup/index.d.ts +57 -0
- package/dist/components/AvatarGroup/index.js +2 -0
- package/dist/components/Calendar/calendar.variants.d.ts +126 -126
- package/dist/components/CopyButton/CopyButton.svelte +139 -0
- package/dist/components/CopyButton/CopyButton.svelte.d.ts +4 -0
- package/dist/components/CopyButton/copy-button.variants.d.ts +29 -0
- package/dist/components/CopyButton/copy-button.variants.js +32 -0
- package/dist/components/CopyButton/index.d.ts +55 -0
- package/dist/components/CopyButton/index.js +2 -0
- package/dist/components/FileUpload/FileUpload.svelte.d.ts +1 -1
- package/dist/components/PinInput/pin-input.variants.d.ts +7 -7
- package/dist/components/PinInput/pin-input.variants.js +25 -29
- package/dist/components/Planner/planner.variants.d.ts +34 -34
- package/dist/components/TimeInput/time-input.variants.d.ts +9 -9
- package/dist/components/TimeInput/time-input.variants.js +24 -21
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +2 -0
- package/dist/i18n/index.d.ts +6 -390
- package/dist/internal/field-chrome.d.ts +87 -0
- package/dist/internal/field-chrome.js +81 -0
- package/dist/primitives/Accordion/accordion.variants.d.ts +7 -7
- package/dist/primitives/Alert/alert.variants.d.ts +8 -8
- package/dist/primitives/Avatar/avatar.variants.d.ts +12 -12
- package/dist/primitives/Badge/badge.variants.d.ts +10 -10
- package/dist/primitives/Button/button.variants.d.ts +4 -4
- package/dist/primitives/Card/card.variants.d.ts +5 -5
- package/dist/primitives/Checkbox/checkbox.variants.d.ts +7 -7
- package/dist/primitives/Collapsible/collapsible.variants.d.ts +6 -6
- package/dist/primitives/Combobox/combobox.variants.d.ts +50 -50
- package/dist/primitives/Input/input.variants.d.ts +27 -27
- package/dist/primitives/Input/input.variants.js +24 -19
- package/dist/primitives/JourneyTimeline/journey-timeline.variants.d.ts +22 -22
- package/dist/primitives/Kbd/Kbd.svelte +44 -0
- package/dist/primitives/Kbd/Kbd.svelte.d.ts +4 -0
- package/dist/primitives/Kbd/index.d.ts +51 -0
- package/dist/primitives/Kbd/index.js +2 -0
- package/dist/primitives/Kbd/kbd.variants.d.ts +20 -0
- package/dist/primitives/Kbd/kbd.variants.js +27 -0
- package/dist/primitives/Progress/progress.variants.d.ts +11 -11
- package/dist/primitives/RadioGroup/radioGroup.variants.d.ts +6 -6
- package/dist/primitives/Select/select.variants.d.ts +34 -34
- package/dist/primitives/Skeleton/skeleton.variants.d.ts +3 -3
- package/dist/primitives/Spinner/spinner.variants.d.ts +48 -48
- package/dist/primitives/Stepper/stepper.variants.d.ts +11 -11
- package/dist/primitives/Textarea/textarea.variants.d.ts +21 -21
- package/dist/primitives/Toast/toast.variants.d.ts +12 -12
- package/dist/primitives/Toggle/toggle.variants.d.ts +7 -7
- package/dist/primitives/Toolbar/toolbar.variants.d.ts +6 -6
- package/dist/primitives/Tooltip/tooltip.variants.d.ts +3 -3
- package/dist/primitives/index.d.ts +2 -0
- package/dist/primitives/index.js +1 -0
- package/dist/translations/de.d.ts +4 -0
- package/dist/translations/de.js +4 -0
- package/dist/translations/en.d.ts +4 -0
- package/dist/translations/en.js +4 -0
- package/package.json +3 -3
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
2
2
|
export declare const collapsibleVariants: ((props?: {
|
|
3
|
-
variant?: "default" | "
|
|
3
|
+
variant?: "default" | "card" | "ghost" | undefined;
|
|
4
4
|
size?: "sm" | "md" | "lg" | undefined;
|
|
5
5
|
} | undefined) => {
|
|
6
6
|
base: (props?: ({
|
|
7
|
-
variant?: "default" | "
|
|
7
|
+
variant?: "default" | "card" | "ghost" | undefined;
|
|
8
8
|
size?: "sm" | "md" | "lg" | undefined;
|
|
9
9
|
} & {
|
|
10
10
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
11
11
|
}) | undefined) => string;
|
|
12
12
|
trigger: (props?: ({
|
|
13
|
-
variant?: "default" | "
|
|
13
|
+
variant?: "default" | "card" | "ghost" | undefined;
|
|
14
14
|
size?: "sm" | "md" | "lg" | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
17
17
|
}) | undefined) => string;
|
|
18
18
|
chevron: (props?: ({
|
|
19
|
-
variant?: "default" | "
|
|
19
|
+
variant?: "default" | "card" | "ghost" | undefined;
|
|
20
20
|
size?: "sm" | "md" | "lg" | undefined;
|
|
21
21
|
} & {
|
|
22
22
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
23
23
|
}) | undefined) => string;
|
|
24
24
|
content: (props?: ({
|
|
25
|
-
variant?: "default" | "
|
|
25
|
+
variant?: "default" | "card" | "ghost" | undefined;
|
|
26
26
|
size?: "sm" | "md" | "lg" | undefined;
|
|
27
27
|
} & {
|
|
28
28
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
29
29
|
}) | undefined) => string;
|
|
30
30
|
contentInner: (props?: ({
|
|
31
|
-
variant?: "default" | "
|
|
31
|
+
variant?: "default" | "card" | "ghost" | undefined;
|
|
32
32
|
size?: "sm" | "md" | "lg" | undefined;
|
|
33
33
|
} & {
|
|
34
34
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
2
2
|
export declare const comboboxVariants: ((props?: {
|
|
3
3
|
tier?: "commit" | "modify" | undefined;
|
|
4
|
-
variant?: "ghost" | "
|
|
5
|
-
size?: "
|
|
4
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
5
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
6
6
|
open?: boolean | undefined;
|
|
7
7
|
disabled?: boolean | undefined;
|
|
8
8
|
} | undefined) => {
|
|
9
9
|
base: (props?: ({
|
|
10
10
|
tier?: "commit" | "modify" | undefined;
|
|
11
|
-
variant?: "ghost" | "
|
|
12
|
-
size?: "
|
|
11
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
12
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
13
13
|
open?: boolean | undefined;
|
|
14
14
|
disabled?: boolean | undefined;
|
|
15
15
|
} & {
|
|
@@ -17,8 +17,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
17
17
|
}) | undefined) => string;
|
|
18
18
|
label: (props?: ({
|
|
19
19
|
tier?: "commit" | "modify" | undefined;
|
|
20
|
-
variant?: "ghost" | "
|
|
21
|
-
size?: "
|
|
20
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
21
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
22
22
|
open?: boolean | undefined;
|
|
23
23
|
disabled?: boolean | undefined;
|
|
24
24
|
} & {
|
|
@@ -26,8 +26,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
26
26
|
}) | undefined) => string;
|
|
27
27
|
requiredMark: (props?: ({
|
|
28
28
|
tier?: "commit" | "modify" | undefined;
|
|
29
|
-
variant?: "ghost" | "
|
|
30
|
-
size?: "
|
|
29
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
30
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
31
31
|
open?: boolean | undefined;
|
|
32
32
|
disabled?: boolean | undefined;
|
|
33
33
|
} & {
|
|
@@ -35,8 +35,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
35
35
|
}) | undefined) => string;
|
|
36
36
|
inputWrapper: (props?: ({
|
|
37
37
|
tier?: "commit" | "modify" | undefined;
|
|
38
|
-
variant?: "ghost" | "
|
|
39
|
-
size?: "
|
|
38
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
39
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
40
40
|
open?: boolean | undefined;
|
|
41
41
|
disabled?: boolean | undefined;
|
|
42
42
|
} & {
|
|
@@ -44,8 +44,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
44
44
|
}) | undefined) => string;
|
|
45
45
|
input: (props?: ({
|
|
46
46
|
tier?: "commit" | "modify" | undefined;
|
|
47
|
-
variant?: "ghost" | "
|
|
48
|
-
size?: "
|
|
47
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
48
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
49
49
|
open?: boolean | undefined;
|
|
50
50
|
disabled?: boolean | undefined;
|
|
51
51
|
} & {
|
|
@@ -53,8 +53,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
53
53
|
}) | undefined) => string;
|
|
54
54
|
message: (props?: ({
|
|
55
55
|
tier?: "commit" | "modify" | undefined;
|
|
56
|
-
variant?: "ghost" | "
|
|
57
|
-
size?: "
|
|
56
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
57
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
58
58
|
open?: boolean | undefined;
|
|
59
59
|
disabled?: boolean | undefined;
|
|
60
60
|
} & {
|
|
@@ -62,8 +62,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
62
62
|
}) | undefined) => string;
|
|
63
63
|
helper: (props?: ({
|
|
64
64
|
tier?: "commit" | "modify" | undefined;
|
|
65
|
-
variant?: "ghost" | "
|
|
66
|
-
size?: "
|
|
65
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
66
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
67
67
|
open?: boolean | undefined;
|
|
68
68
|
disabled?: boolean | undefined;
|
|
69
69
|
} & {
|
|
@@ -71,8 +71,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
71
71
|
}) | undefined) => string;
|
|
72
72
|
listbox: (props?: ({
|
|
73
73
|
tier?: "commit" | "modify" | undefined;
|
|
74
|
-
variant?: "ghost" | "
|
|
75
|
-
size?: "
|
|
74
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
75
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
76
76
|
open?: boolean | undefined;
|
|
77
77
|
disabled?: boolean | undefined;
|
|
78
78
|
} & {
|
|
@@ -80,8 +80,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
80
80
|
}) | undefined) => string;
|
|
81
81
|
option: (props?: ({
|
|
82
82
|
tier?: "commit" | "modify" | undefined;
|
|
83
|
-
variant?: "ghost" | "
|
|
84
|
-
size?: "
|
|
83
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
84
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
85
85
|
open?: boolean | undefined;
|
|
86
86
|
disabled?: boolean | undefined;
|
|
87
87
|
} & {
|
|
@@ -89,8 +89,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
89
89
|
}) | undefined) => string;
|
|
90
90
|
optionActive: (props?: ({
|
|
91
91
|
tier?: "commit" | "modify" | undefined;
|
|
92
|
-
variant?: "ghost" | "
|
|
93
|
-
size?: "
|
|
92
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
93
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
94
94
|
open?: boolean | undefined;
|
|
95
95
|
disabled?: boolean | undefined;
|
|
96
96
|
} & {
|
|
@@ -98,8 +98,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
98
98
|
}) | undefined) => string;
|
|
99
99
|
optionSelected: (props?: ({
|
|
100
100
|
tier?: "commit" | "modify" | undefined;
|
|
101
|
-
variant?: "ghost" | "
|
|
102
|
-
size?: "
|
|
101
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
102
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
103
103
|
open?: boolean | undefined;
|
|
104
104
|
disabled?: boolean | undefined;
|
|
105
105
|
} & {
|
|
@@ -107,8 +107,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
107
107
|
}) | undefined) => string;
|
|
108
108
|
optionCheck: (props?: ({
|
|
109
109
|
tier?: "commit" | "modify" | undefined;
|
|
110
|
-
variant?: "ghost" | "
|
|
111
|
-
size?: "
|
|
110
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
111
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
112
112
|
open?: boolean | undefined;
|
|
113
113
|
disabled?: boolean | undefined;
|
|
114
114
|
} & {
|
|
@@ -116,8 +116,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
116
116
|
}) | undefined) => string;
|
|
117
117
|
group: (props?: ({
|
|
118
118
|
tier?: "commit" | "modify" | undefined;
|
|
119
|
-
variant?: "ghost" | "
|
|
120
|
-
size?: "
|
|
119
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
120
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
121
121
|
open?: boolean | undefined;
|
|
122
122
|
disabled?: boolean | undefined;
|
|
123
123
|
} & {
|
|
@@ -125,8 +125,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
125
125
|
}) | undefined) => string;
|
|
126
126
|
groupLabel: (props?: ({
|
|
127
127
|
tier?: "commit" | "modify" | undefined;
|
|
128
|
-
variant?: "ghost" | "
|
|
129
|
-
size?: "
|
|
128
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
129
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
130
130
|
open?: boolean | undefined;
|
|
131
131
|
disabled?: boolean | undefined;
|
|
132
132
|
} & {
|
|
@@ -134,8 +134,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
134
134
|
}) | undefined) => string;
|
|
135
135
|
noResults: (props?: ({
|
|
136
136
|
tier?: "commit" | "modify" | undefined;
|
|
137
|
-
variant?: "ghost" | "
|
|
138
|
-
size?: "
|
|
137
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
138
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
139
139
|
open?: boolean | undefined;
|
|
140
140
|
disabled?: boolean | undefined;
|
|
141
141
|
} & {
|
|
@@ -143,8 +143,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
143
143
|
}) | undefined) => string;
|
|
144
144
|
loading: (props?: ({
|
|
145
145
|
tier?: "commit" | "modify" | undefined;
|
|
146
|
-
variant?: "ghost" | "
|
|
147
|
-
size?: "
|
|
146
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
147
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
148
148
|
open?: boolean | undefined;
|
|
149
149
|
disabled?: boolean | undefined;
|
|
150
150
|
} & {
|
|
@@ -152,8 +152,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
152
152
|
}) | undefined) => string;
|
|
153
153
|
clear: (props?: ({
|
|
154
154
|
tier?: "commit" | "modify" | undefined;
|
|
155
|
-
variant?: "ghost" | "
|
|
156
|
-
size?: "
|
|
155
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
156
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
157
157
|
open?: boolean | undefined;
|
|
158
158
|
disabled?: boolean | undefined;
|
|
159
159
|
} & {
|
|
@@ -161,8 +161,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
161
161
|
}) | undefined) => string;
|
|
162
162
|
chevronButton: (props?: ({
|
|
163
163
|
tier?: "commit" | "modify" | undefined;
|
|
164
|
-
variant?: "ghost" | "
|
|
165
|
-
size?: "
|
|
164
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
165
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
166
166
|
open?: boolean | undefined;
|
|
167
167
|
disabled?: boolean | undefined;
|
|
168
168
|
} & {
|
|
@@ -170,8 +170,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
170
170
|
}) | undefined) => string;
|
|
171
171
|
chevron: (props?: ({
|
|
172
172
|
tier?: "commit" | "modify" | undefined;
|
|
173
|
-
variant?: "ghost" | "
|
|
174
|
-
size?: "
|
|
173
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
174
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
175
175
|
open?: boolean | undefined;
|
|
176
176
|
disabled?: boolean | undefined;
|
|
177
177
|
} & {
|
|
@@ -179,8 +179,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
179
179
|
}) | undefined) => string;
|
|
180
180
|
control: (props?: ({
|
|
181
181
|
tier?: "commit" | "modify" | undefined;
|
|
182
|
-
variant?: "ghost" | "
|
|
183
|
-
size?: "
|
|
182
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
183
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
184
184
|
open?: boolean | undefined;
|
|
185
185
|
disabled?: boolean | undefined;
|
|
186
186
|
} & {
|
|
@@ -188,8 +188,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
188
188
|
}) | undefined) => string;
|
|
189
189
|
search: (props?: ({
|
|
190
190
|
tier?: "commit" | "modify" | undefined;
|
|
191
|
-
variant?: "ghost" | "
|
|
192
|
-
size?: "
|
|
191
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
192
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
193
193
|
open?: boolean | undefined;
|
|
194
194
|
disabled?: boolean | undefined;
|
|
195
195
|
} & {
|
|
@@ -197,8 +197,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
197
197
|
}) | undefined) => string;
|
|
198
198
|
tag: (props?: ({
|
|
199
199
|
tier?: "commit" | "modify" | undefined;
|
|
200
|
-
variant?: "ghost" | "
|
|
201
|
-
size?: "
|
|
200
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
201
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
202
202
|
open?: boolean | undefined;
|
|
203
203
|
disabled?: boolean | undefined;
|
|
204
204
|
} & {
|
|
@@ -206,8 +206,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
206
206
|
}) | undefined) => string;
|
|
207
207
|
tagLabel: (props?: ({
|
|
208
208
|
tier?: "commit" | "modify" | undefined;
|
|
209
|
-
variant?: "ghost" | "
|
|
210
|
-
size?: "
|
|
209
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
210
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
211
211
|
open?: boolean | undefined;
|
|
212
212
|
disabled?: boolean | undefined;
|
|
213
213
|
} & {
|
|
@@ -215,8 +215,8 @@ export declare const comboboxVariants: ((props?: {
|
|
|
215
215
|
}) | undefined) => string;
|
|
216
216
|
tagRemove: (props?: ({
|
|
217
217
|
tier?: "commit" | "modify" | undefined;
|
|
218
|
-
variant?: "ghost" | "
|
|
219
|
-
size?: "
|
|
218
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
219
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
220
220
|
open?: boolean | undefined;
|
|
221
221
|
disabled?: boolean | undefined;
|
|
222
222
|
} & {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
2
2
|
export declare const inputVariants: ((props?: {
|
|
3
3
|
tier?: "commit" | "modify" | undefined;
|
|
4
|
-
variant?: "ghost" | "
|
|
5
|
-
size?: "
|
|
6
|
-
intent?: "
|
|
4
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
5
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
6
|
+
intent?: "success" | "warning" | "danger" | "default" | undefined;
|
|
7
7
|
disabled?: boolean | undefined;
|
|
8
8
|
readonly?: boolean | undefined;
|
|
9
9
|
messageType?: "error" | "helper" | undefined;
|
|
@@ -15,9 +15,9 @@ export declare const inputVariants: ((props?: {
|
|
|
15
15
|
} | undefined) => {
|
|
16
16
|
wrapper: (props?: ({
|
|
17
17
|
tier?: "commit" | "modify" | undefined;
|
|
18
|
-
variant?: "ghost" | "
|
|
19
|
-
size?: "
|
|
20
|
-
intent?: "
|
|
18
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
19
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
20
|
+
intent?: "success" | "warning" | "danger" | "default" | undefined;
|
|
21
21
|
disabled?: boolean | undefined;
|
|
22
22
|
readonly?: boolean | undefined;
|
|
23
23
|
messageType?: "error" | "helper" | undefined;
|
|
@@ -31,9 +31,9 @@ export declare const inputVariants: ((props?: {
|
|
|
31
31
|
}) | undefined) => string;
|
|
32
32
|
container: (props?: ({
|
|
33
33
|
tier?: "commit" | "modify" | undefined;
|
|
34
|
-
variant?: "ghost" | "
|
|
35
|
-
size?: "
|
|
36
|
-
intent?: "
|
|
34
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
35
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
36
|
+
intent?: "success" | "warning" | "danger" | "default" | undefined;
|
|
37
37
|
disabled?: boolean | undefined;
|
|
38
38
|
readonly?: boolean | undefined;
|
|
39
39
|
messageType?: "error" | "helper" | undefined;
|
|
@@ -47,9 +47,9 @@ export declare const inputVariants: ((props?: {
|
|
|
47
47
|
}) | undefined) => string;
|
|
48
48
|
base: (props?: ({
|
|
49
49
|
tier?: "commit" | "modify" | undefined;
|
|
50
|
-
variant?: "ghost" | "
|
|
51
|
-
size?: "
|
|
52
|
-
intent?: "
|
|
50
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
51
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
52
|
+
intent?: "success" | "warning" | "danger" | "default" | undefined;
|
|
53
53
|
disabled?: boolean | undefined;
|
|
54
54
|
readonly?: boolean | undefined;
|
|
55
55
|
messageType?: "error" | "helper" | undefined;
|
|
@@ -63,9 +63,9 @@ export declare const inputVariants: ((props?: {
|
|
|
63
63
|
}) | undefined) => string;
|
|
64
64
|
label: (props?: ({
|
|
65
65
|
tier?: "commit" | "modify" | undefined;
|
|
66
|
-
variant?: "ghost" | "
|
|
67
|
-
size?: "
|
|
68
|
-
intent?: "
|
|
66
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
67
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
68
|
+
intent?: "success" | "warning" | "danger" | "default" | undefined;
|
|
69
69
|
disabled?: boolean | undefined;
|
|
70
70
|
readonly?: boolean | undefined;
|
|
71
71
|
messageType?: "error" | "helper" | undefined;
|
|
@@ -79,9 +79,9 @@ export declare const inputVariants: ((props?: {
|
|
|
79
79
|
}) | undefined) => string;
|
|
80
80
|
message: (props?: ({
|
|
81
81
|
tier?: "commit" | "modify" | undefined;
|
|
82
|
-
variant?: "ghost" | "
|
|
83
|
-
size?: "
|
|
84
|
-
intent?: "
|
|
82
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
83
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
84
|
+
intent?: "success" | "warning" | "danger" | "default" | undefined;
|
|
85
85
|
disabled?: boolean | undefined;
|
|
86
86
|
readonly?: boolean | undefined;
|
|
87
87
|
messageType?: "error" | "helper" | undefined;
|
|
@@ -95,9 +95,9 @@ export declare const inputVariants: ((props?: {
|
|
|
95
95
|
}) | undefined) => string;
|
|
96
96
|
iconContainer: (props?: ({
|
|
97
97
|
tier?: "commit" | "modify" | undefined;
|
|
98
|
-
variant?: "ghost" | "
|
|
99
|
-
size?: "
|
|
100
|
-
intent?: "
|
|
98
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
99
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
100
|
+
intent?: "success" | "warning" | "danger" | "default" | undefined;
|
|
101
101
|
disabled?: boolean | undefined;
|
|
102
102
|
readonly?: boolean | undefined;
|
|
103
103
|
messageType?: "error" | "helper" | undefined;
|
|
@@ -111,9 +111,9 @@ export declare const inputVariants: ((props?: {
|
|
|
111
111
|
}) | undefined) => string;
|
|
112
112
|
iconButton: (props?: ({
|
|
113
113
|
tier?: "commit" | "modify" | undefined;
|
|
114
|
-
variant?: "ghost" | "
|
|
115
|
-
size?: "
|
|
116
|
-
intent?: "
|
|
114
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
115
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
116
|
+
intent?: "success" | "warning" | "danger" | "default" | undefined;
|
|
117
117
|
disabled?: boolean | undefined;
|
|
118
118
|
readonly?: boolean | undefined;
|
|
119
119
|
messageType?: "error" | "helper" | undefined;
|
|
@@ -127,9 +127,9 @@ export declare const inputVariants: ((props?: {
|
|
|
127
127
|
}) | undefined) => string;
|
|
128
128
|
iconDecoration: (props?: ({
|
|
129
129
|
tier?: "commit" | "modify" | undefined;
|
|
130
|
-
variant?: "ghost" | "
|
|
131
|
-
size?: "
|
|
132
|
-
intent?: "
|
|
130
|
+
variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
|
|
131
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
132
|
+
intent?: "success" | "warning" | "danger" | "default" | undefined;
|
|
133
133
|
disabled?: boolean | undefined;
|
|
134
134
|
readonly?: boolean | undefined;
|
|
135
135
|
messageType?: "error" | "helper" | undefined;
|
|
@@ -1,18 +1,23 @@
|
|
|
1
|
+
import { FIELD_DISABLED_FRAME, FIELD_LABEL, FIELD_LABEL_DISABLED, FIELD_MESSAGE_TONES, FIELD_NATIVE_DISABLED, FIELD_NATIVE_READONLY, FIELD_REQUIRED_LABEL, FIELD_SURFACE, FIELD_TRANSITION, fieldErrorFrame, fieldFocusRing, fieldIntentFrames, fieldSurfaceVariants } from '../../internal/field-chrome.js';
|
|
1
2
|
import { tv } from '../../utils/variants.js';
|
|
3
|
+
// Input and PinInput light the focusable element itself; TimeInput its container.
|
|
4
|
+
const focus = 'focus-visible';
|
|
5
|
+
const surface = fieldSurfaceVariants(focus);
|
|
6
|
+
const intents = fieldIntentFrames(focus);
|
|
2
7
|
export const inputVariants = tv({
|
|
3
8
|
slots: {
|
|
4
9
|
wrapper: ['flex flex-col w-full gap-1.5'],
|
|
5
10
|
container: ['relative flex items-center'],
|
|
6
11
|
base: [
|
|
7
|
-
|
|
12
|
+
`w-full box-border ${FIELD_TRANSITION}`,
|
|
8
13
|
// Radius driven by `tier` axis below.
|
|
9
14
|
'focus-visible:outline-none',
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
`${FIELD_SURFACE} placeholder:text-text-quaternary`,
|
|
16
|
+
`hover:border-border-default ${fieldFocusRing(focus)}`,
|
|
17
|
+
FIELD_NATIVE_DISABLED,
|
|
18
|
+
FIELD_NATIVE_READONLY
|
|
14
19
|
],
|
|
15
|
-
label: [
|
|
20
|
+
label: [FIELD_LABEL],
|
|
16
21
|
message: ['text-xs mt-1.5'],
|
|
17
22
|
iconContainer: [
|
|
18
23
|
'absolute top-0 bottom-0 flex items-center justify-center z-10 pointer-events-none'
|
|
@@ -40,13 +45,13 @@ export const inputVariants = tv({
|
|
|
40
45
|
},
|
|
41
46
|
variant: {
|
|
42
47
|
outlined: {
|
|
43
|
-
base:
|
|
48
|
+
base: surface.outlined
|
|
44
49
|
},
|
|
45
50
|
filled: {
|
|
46
|
-
base:
|
|
51
|
+
base: surface.filled
|
|
47
52
|
},
|
|
48
53
|
ghost: {
|
|
49
|
-
base:
|
|
54
|
+
base: surface.ghost
|
|
50
55
|
},
|
|
51
56
|
underline: {
|
|
52
57
|
base: 'bg-transparent border-0 border-b-2 border-border-subtle rounded-none focus-visible:ring-0'
|
|
@@ -94,19 +99,19 @@ export const inputVariants = tv({
|
|
|
94
99
|
intent: {
|
|
95
100
|
default: {},
|
|
96
101
|
success: {
|
|
97
|
-
base:
|
|
102
|
+
base: intents.success
|
|
98
103
|
},
|
|
99
104
|
warning: {
|
|
100
|
-
base:
|
|
105
|
+
base: intents.warning
|
|
101
106
|
},
|
|
102
107
|
danger: {
|
|
103
|
-
base:
|
|
108
|
+
base: intents.danger
|
|
104
109
|
}
|
|
105
110
|
},
|
|
106
111
|
disabled: {
|
|
107
112
|
true: {
|
|
108
|
-
base:
|
|
109
|
-
label:
|
|
113
|
+
base: FIELD_DISABLED_FRAME,
|
|
114
|
+
label: FIELD_LABEL_DISABLED
|
|
110
115
|
}
|
|
111
116
|
},
|
|
112
117
|
readonly: {
|
|
@@ -117,18 +122,18 @@ export const inputVariants = tv({
|
|
|
117
122
|
// Declared BEFORE `error` so the error tone wins the message-color
|
|
118
123
|
// bucket in every call shape — `{ error: true }` alone must read red.
|
|
119
124
|
messageType: {
|
|
120
|
-
error: { message:
|
|
121
|
-
helper: { message:
|
|
125
|
+
error: { message: FIELD_MESSAGE_TONES.error },
|
|
126
|
+
helper: { message: FIELD_MESSAGE_TONES.helper }
|
|
122
127
|
},
|
|
123
128
|
error: {
|
|
124
129
|
true: {
|
|
125
|
-
base:
|
|
126
|
-
message:
|
|
130
|
+
base: fieldErrorFrame(focus),
|
|
131
|
+
message: FIELD_MESSAGE_TONES.error
|
|
127
132
|
}
|
|
128
133
|
},
|
|
129
134
|
required: {
|
|
130
135
|
true: {
|
|
131
|
-
label:
|
|
136
|
+
label: FIELD_REQUIRED_LABEL
|
|
132
137
|
}
|
|
133
138
|
},
|
|
134
139
|
hasLeftIcon: { true: {} },
|