@urbicon-ui/blocks 6.43.0 → 6.44.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 +1 -1
- package/dist/components/Calendar/calendar.variants.d.ts +63 -63
- package/dist/components/Chat/ChatMessage/ChatMessage.svelte +93 -67
- package/dist/components/Chat/ChatMessage/chat-message.variants.d.ts +7 -0
- package/dist/components/Chat/ChatMessage/chat-message.variants.js +45 -12
- package/dist/components/Chat/ChatMessage/index.d.ts +20 -5
- package/dist/components/Chat/CodeBlock/CodeBlock.svelte +59 -33
- package/dist/components/Chat/CodeBlock/code-block.variants.d.ts +7 -0
- package/dist/components/Chat/CodeBlock/code-block.variants.js +28 -13
- package/dist/components/Chat/CodeBlock/index.d.ts +39 -4
- package/dist/components/Chat/PromptInput/PromptInput.svelte +9 -16
- package/dist/components/Chat/PromptInput/prompt-input.variants.js +16 -15
- package/dist/components/Chat/ToolCallCard/ToolCallCard.svelte +9 -4
- package/dist/components/Chat/ToolCallCard/index.d.ts +4 -3
- package/dist/components/Chat/ToolCallCard/tool-call-card.variants.d.ts +0 -3
- package/dist/components/Chat/ToolCallCard/tool-call-card.variants.js +4 -4
- package/dist/components/CopyButton/CopyButton.svelte +9 -19
- package/dist/components/CopyButton/copy-button.variants.d.ts +4 -4
- package/dist/components/FileUpload/fileUpload.variants.js +6 -1
- package/dist/components/PinInput/PinInput.svelte +12 -20
- package/dist/components/TimeInput/TimeInput.svelte +12 -20
- package/dist/i18n/index.d.ts +398 -2
- package/dist/internal/copy-state.svelte.d.ts +60 -0
- package/dist/internal/copy-state.svelte.js +76 -0
- package/dist/internal/core/CoreFieldMessage.svelte +81 -0
- package/dist/internal/core/CoreFieldMessage.svelte.d.ts +23 -0
- package/dist/internal/field-chrome.js +2 -2
- package/dist/primitives/Alert/alert.variants.d.ts +8 -8
- package/dist/primitives/Checkbox/Checkbox.svelte +10 -20
- package/dist/primitives/Checkbox/checkbox.variants.js +1 -1
- package/dist/primitives/Combobox/Combobox.svelte +16 -18
- package/dist/primitives/Combobox/combobox.variants.js +12 -5
- package/dist/primitives/Input/Input.svelte +10 -20
- package/dist/primitives/JourneyTimeline/journey-timeline.variants.d.ts +22 -22
- package/dist/primitives/RadioGroup/RadioGroup.svelte +10 -20
- package/dist/primitives/RadioGroup/radioGroup.variants.js +7 -2
- package/dist/primitives/Select/Select.svelte +10 -20
- package/dist/primitives/Select/select.variants.js +2 -2
- package/dist/primitives/Slider/Slider.svelte +10 -20
- package/dist/primitives/Spinner/spinner.variants.d.ts +16 -16
- package/dist/primitives/Stepper/stepper.variants.d.ts +11 -11
- package/dist/primitives/Stepper/stepper.variants.js +2 -1
- package/dist/primitives/Tab/tab.variants.js +5 -2
- package/dist/primitives/Textarea/Textarea.svelte +10 -15
- package/dist/primitives/Textarea/textarea.variants.js +2 -2
- package/dist/primitives/Toast/toast.variants.d.ts +12 -12
- package/dist/primitives/Toggle/Toggle.svelte +10 -20
- package/dist/primitives/Toggle/toggle.variants.js +9 -7
- package/dist/style/foundation.css +19 -9
- package/dist/style/semantic.css +59 -2
- package/dist/style/themes/forest.css +2 -2
- package/dist/style/themes/neutral.css +2 -2
- package/dist/style/themes/ocean.css +2 -2
- package/dist/style/themes/rose.css +2 -2
- package/dist/style/themes/sunset.css +2 -2
- package/dist/utils/figma-token-export.js +7 -3
- package/package.json +3 -3
|
@@ -2,13 +2,13 @@ import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
|
2
2
|
export declare const spinnerVariants: ((props?: {
|
|
3
3
|
variant?: "pulse" | "ring" | "default" | "bars" | "dots" | undefined;
|
|
4
4
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
5
|
-
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" |
|
|
5
|
+
intent?: "current" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
6
6
|
speed?: "fast" | "slow" | "normal" | undefined;
|
|
7
7
|
} | undefined) => {
|
|
8
8
|
base: (props?: ({
|
|
9
9
|
variant?: "pulse" | "ring" | "default" | "bars" | "dots" | undefined;
|
|
10
10
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
11
|
-
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" |
|
|
11
|
+
intent?: "current" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
12
12
|
speed?: "fast" | "slow" | "normal" | undefined;
|
|
13
13
|
} & {
|
|
14
14
|
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;
|
|
@@ -16,7 +16,7 @@ export declare const spinnerVariants: ((props?: {
|
|
|
16
16
|
svg: (props?: ({
|
|
17
17
|
variant?: "pulse" | "ring" | "default" | "bars" | "dots" | undefined;
|
|
18
18
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
19
|
-
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" |
|
|
19
|
+
intent?: "current" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
20
20
|
speed?: "fast" | "slow" | "normal" | 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;
|
|
@@ -24,7 +24,7 @@ export declare const spinnerVariants: ((props?: {
|
|
|
24
24
|
svgCircle: (props?: ({
|
|
25
25
|
variant?: "pulse" | "ring" | "default" | "bars" | "dots" | undefined;
|
|
26
26
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
27
|
-
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" |
|
|
27
|
+
intent?: "current" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
28
28
|
speed?: "fast" | "slow" | "normal" | undefined;
|
|
29
29
|
} & {
|
|
30
30
|
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;
|
|
@@ -32,7 +32,7 @@ export declare const spinnerVariants: ((props?: {
|
|
|
32
32
|
svgPath: (props?: ({
|
|
33
33
|
variant?: "pulse" | "ring" | "default" | "bars" | "dots" | undefined;
|
|
34
34
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
35
|
-
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" |
|
|
35
|
+
intent?: "current" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
36
36
|
speed?: "fast" | "slow" | "normal" | undefined;
|
|
37
37
|
} & {
|
|
38
38
|
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;
|
|
@@ -40,7 +40,7 @@ export declare const spinnerVariants: ((props?: {
|
|
|
40
40
|
dots: (props?: ({
|
|
41
41
|
variant?: "pulse" | "ring" | "default" | "bars" | "dots" | undefined;
|
|
42
42
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
43
|
-
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" |
|
|
43
|
+
intent?: "current" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
44
44
|
speed?: "fast" | "slow" | "normal" | undefined;
|
|
45
45
|
} & {
|
|
46
46
|
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;
|
|
@@ -48,7 +48,7 @@ export declare const spinnerVariants: ((props?: {
|
|
|
48
48
|
dot: (props?: ({
|
|
49
49
|
variant?: "pulse" | "ring" | "default" | "bars" | "dots" | undefined;
|
|
50
50
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
51
|
-
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" |
|
|
51
|
+
intent?: "current" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
52
52
|
speed?: "fast" | "slow" | "normal" | undefined;
|
|
53
53
|
} & {
|
|
54
54
|
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;
|
|
@@ -56,7 +56,7 @@ export declare const spinnerVariants: ((props?: {
|
|
|
56
56
|
pulse: (props?: ({
|
|
57
57
|
variant?: "pulse" | "ring" | "default" | "bars" | "dots" | undefined;
|
|
58
58
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
59
|
-
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" |
|
|
59
|
+
intent?: "current" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
60
60
|
speed?: "fast" | "slow" | "normal" | undefined;
|
|
61
61
|
} & {
|
|
62
62
|
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;
|
|
@@ -64,7 +64,7 @@ export declare const spinnerVariants: ((props?: {
|
|
|
64
64
|
pulseCenter: (props?: ({
|
|
65
65
|
variant?: "pulse" | "ring" | "default" | "bars" | "dots" | undefined;
|
|
66
66
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
67
|
-
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" |
|
|
67
|
+
intent?: "current" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
68
68
|
speed?: "fast" | "slow" | "normal" | undefined;
|
|
69
69
|
} & {
|
|
70
70
|
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;
|
|
@@ -72,7 +72,7 @@ export declare const spinnerVariants: ((props?: {
|
|
|
72
72
|
pulseRing: (props?: ({
|
|
73
73
|
variant?: "pulse" | "ring" | "default" | "bars" | "dots" | undefined;
|
|
74
74
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
75
|
-
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" |
|
|
75
|
+
intent?: "current" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
76
76
|
speed?: "fast" | "slow" | "normal" | undefined;
|
|
77
77
|
} & {
|
|
78
78
|
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;
|
|
@@ -80,7 +80,7 @@ export declare const spinnerVariants: ((props?: {
|
|
|
80
80
|
ring: (props?: ({
|
|
81
81
|
variant?: "pulse" | "ring" | "default" | "bars" | "dots" | undefined;
|
|
82
82
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
83
|
-
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" |
|
|
83
|
+
intent?: "current" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
84
84
|
speed?: "fast" | "slow" | "normal" | undefined;
|
|
85
85
|
} & {
|
|
86
86
|
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;
|
|
@@ -88,7 +88,7 @@ export declare const spinnerVariants: ((props?: {
|
|
|
88
88
|
ringElement: (props?: ({
|
|
89
89
|
variant?: "pulse" | "ring" | "default" | "bars" | "dots" | undefined;
|
|
90
90
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
91
|
-
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" |
|
|
91
|
+
intent?: "current" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
92
92
|
speed?: "fast" | "slow" | "normal" | undefined;
|
|
93
93
|
} & {
|
|
94
94
|
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;
|
|
@@ -96,7 +96,7 @@ export declare const spinnerVariants: ((props?: {
|
|
|
96
96
|
bars: (props?: ({
|
|
97
97
|
variant?: "pulse" | "ring" | "default" | "bars" | "dots" | undefined;
|
|
98
98
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
99
|
-
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" |
|
|
99
|
+
intent?: "current" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
100
100
|
speed?: "fast" | "slow" | "normal" | undefined;
|
|
101
101
|
} & {
|
|
102
102
|
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;
|
|
@@ -104,7 +104,7 @@ export declare const spinnerVariants: ((props?: {
|
|
|
104
104
|
bar: (props?: ({
|
|
105
105
|
variant?: "pulse" | "ring" | "default" | "bars" | "dots" | undefined;
|
|
106
106
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
107
|
-
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" |
|
|
107
|
+
intent?: "current" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
108
108
|
speed?: "fast" | "slow" | "normal" | undefined;
|
|
109
109
|
} & {
|
|
110
110
|
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;
|
|
@@ -112,7 +112,7 @@ export declare const spinnerVariants: ((props?: {
|
|
|
112
112
|
content: (props?: ({
|
|
113
113
|
variant?: "pulse" | "ring" | "default" | "bars" | "dots" | undefined;
|
|
114
114
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
115
|
-
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" |
|
|
115
|
+
intent?: "current" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
116
116
|
speed?: "fast" | "slow" | "normal" | undefined;
|
|
117
117
|
} & {
|
|
118
118
|
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;
|
|
@@ -120,7 +120,7 @@ export declare const spinnerVariants: ((props?: {
|
|
|
120
120
|
srOnly: (props?: ({
|
|
121
121
|
variant?: "pulse" | "ring" | "default" | "bars" | "dots" | undefined;
|
|
122
122
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
123
|
-
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" |
|
|
123
|
+
intent?: "current" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
124
124
|
speed?: "fast" | "slow" | "normal" | undefined;
|
|
125
125
|
} & {
|
|
126
126
|
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;
|
|
@@ -4,7 +4,7 @@ export declare const stepperVariants: ((props?: {
|
|
|
4
4
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
5
5
|
size?: "sm" | "md" | "lg" | undefined;
|
|
6
6
|
variant?: "default" | "outlined" | "minimal" | undefined;
|
|
7
|
-
stepState?: "
|
|
7
|
+
stepState?: "complete" | "active" | "error" | "warning" | "inactive" | undefined;
|
|
8
8
|
clickable?: boolean | undefined;
|
|
9
9
|
stepDisabled?: boolean | undefined;
|
|
10
10
|
separatorComplete?: boolean | undefined;
|
|
@@ -14,7 +14,7 @@ export declare const stepperVariants: ((props?: {
|
|
|
14
14
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
15
15
|
size?: "sm" | "md" | "lg" | undefined;
|
|
16
16
|
variant?: "default" | "outlined" | "minimal" | undefined;
|
|
17
|
-
stepState?: "
|
|
17
|
+
stepState?: "complete" | "active" | "error" | "warning" | "inactive" | undefined;
|
|
18
18
|
clickable?: boolean | undefined;
|
|
19
19
|
stepDisabled?: boolean | undefined;
|
|
20
20
|
separatorComplete?: boolean | undefined;
|
|
@@ -26,7 +26,7 @@ export declare const stepperVariants: ((props?: {
|
|
|
26
26
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
27
27
|
size?: "sm" | "md" | "lg" | undefined;
|
|
28
28
|
variant?: "default" | "outlined" | "minimal" | undefined;
|
|
29
|
-
stepState?: "
|
|
29
|
+
stepState?: "complete" | "active" | "error" | "warning" | "inactive" | undefined;
|
|
30
30
|
clickable?: boolean | undefined;
|
|
31
31
|
stepDisabled?: boolean | undefined;
|
|
32
32
|
separatorComplete?: boolean | undefined;
|
|
@@ -38,7 +38,7 @@ export declare const stepperVariants: ((props?: {
|
|
|
38
38
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
39
39
|
size?: "sm" | "md" | "lg" | undefined;
|
|
40
40
|
variant?: "default" | "outlined" | "minimal" | undefined;
|
|
41
|
-
stepState?: "
|
|
41
|
+
stepState?: "complete" | "active" | "error" | "warning" | "inactive" | undefined;
|
|
42
42
|
clickable?: boolean | undefined;
|
|
43
43
|
stepDisabled?: boolean | undefined;
|
|
44
44
|
separatorComplete?: boolean | undefined;
|
|
@@ -50,7 +50,7 @@ export declare const stepperVariants: ((props?: {
|
|
|
50
50
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
51
51
|
size?: "sm" | "md" | "lg" | undefined;
|
|
52
52
|
variant?: "default" | "outlined" | "minimal" | undefined;
|
|
53
|
-
stepState?: "
|
|
53
|
+
stepState?: "complete" | "active" | "error" | "warning" | "inactive" | undefined;
|
|
54
54
|
clickable?: boolean | undefined;
|
|
55
55
|
stepDisabled?: boolean | undefined;
|
|
56
56
|
separatorComplete?: boolean | undefined;
|
|
@@ -62,7 +62,7 @@ export declare const stepperVariants: ((props?: {
|
|
|
62
62
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
63
63
|
size?: "sm" | "md" | "lg" | undefined;
|
|
64
64
|
variant?: "default" | "outlined" | "minimal" | undefined;
|
|
65
|
-
stepState?: "
|
|
65
|
+
stepState?: "complete" | "active" | "error" | "warning" | "inactive" | undefined;
|
|
66
66
|
clickable?: boolean | undefined;
|
|
67
67
|
stepDisabled?: boolean | undefined;
|
|
68
68
|
separatorComplete?: boolean | undefined;
|
|
@@ -74,7 +74,7 @@ export declare const stepperVariants: ((props?: {
|
|
|
74
74
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
75
75
|
size?: "sm" | "md" | "lg" | undefined;
|
|
76
76
|
variant?: "default" | "outlined" | "minimal" | undefined;
|
|
77
|
-
stepState?: "
|
|
77
|
+
stepState?: "complete" | "active" | "error" | "warning" | "inactive" | undefined;
|
|
78
78
|
clickable?: boolean | undefined;
|
|
79
79
|
stepDisabled?: boolean | undefined;
|
|
80
80
|
separatorComplete?: boolean | undefined;
|
|
@@ -86,7 +86,7 @@ export declare const stepperVariants: ((props?: {
|
|
|
86
86
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
87
87
|
size?: "sm" | "md" | "lg" | undefined;
|
|
88
88
|
variant?: "default" | "outlined" | "minimal" | undefined;
|
|
89
|
-
stepState?: "
|
|
89
|
+
stepState?: "complete" | "active" | "error" | "warning" | "inactive" | undefined;
|
|
90
90
|
clickable?: boolean | undefined;
|
|
91
91
|
stepDisabled?: boolean | undefined;
|
|
92
92
|
separatorComplete?: boolean | undefined;
|
|
@@ -98,7 +98,7 @@ export declare const stepperVariants: ((props?: {
|
|
|
98
98
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
99
99
|
size?: "sm" | "md" | "lg" | undefined;
|
|
100
100
|
variant?: "default" | "outlined" | "minimal" | undefined;
|
|
101
|
-
stepState?: "
|
|
101
|
+
stepState?: "complete" | "active" | "error" | "warning" | "inactive" | undefined;
|
|
102
102
|
clickable?: boolean | undefined;
|
|
103
103
|
stepDisabled?: boolean | undefined;
|
|
104
104
|
separatorComplete?: boolean | undefined;
|
|
@@ -110,7 +110,7 @@ export declare const stepperVariants: ((props?: {
|
|
|
110
110
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
111
111
|
size?: "sm" | "md" | "lg" | undefined;
|
|
112
112
|
variant?: "default" | "outlined" | "minimal" | undefined;
|
|
113
|
-
stepState?: "
|
|
113
|
+
stepState?: "complete" | "active" | "error" | "warning" | "inactive" | undefined;
|
|
114
114
|
clickable?: boolean | undefined;
|
|
115
115
|
stepDisabled?: boolean | undefined;
|
|
116
116
|
separatorComplete?: boolean | undefined;
|
|
@@ -122,7 +122,7 @@ export declare const stepperVariants: ((props?: {
|
|
|
122
122
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
123
123
|
size?: "sm" | "md" | "lg" | undefined;
|
|
124
124
|
variant?: "default" | "outlined" | "minimal" | undefined;
|
|
125
|
-
stepState?: "
|
|
125
|
+
stepState?: "complete" | "active" | "error" | "warning" | "inactive" | undefined;
|
|
126
126
|
clickable?: boolean | undefined;
|
|
127
127
|
stepDisabled?: boolean | undefined;
|
|
128
128
|
separatorComplete?: boolean | undefined;
|
|
@@ -68,7 +68,8 @@ export const stepperVariants = tv({
|
|
|
68
68
|
indicator: 'size-7 text-xs',
|
|
69
69
|
step: 'gap-2',
|
|
70
70
|
label: 'text-xs',
|
|
71
|
-
|
|
71
|
+
// Body-copy floor — see the same note in radioGroup.variants.ts.
|
|
72
|
+
description: 'text-xs',
|
|
72
73
|
content: 'text-sm',
|
|
73
74
|
indicatorColumn: 'w-7'
|
|
74
75
|
},
|
|
@@ -47,7 +47,10 @@ export const tabVariants = tv({
|
|
|
47
47
|
list: 'p-1 bg-surface-interactive',
|
|
48
48
|
trigger: [
|
|
49
49
|
'px-4 py-2 text-text-tertiary',
|
|
50
|
-
'
|
|
50
|
+
// The trigger sits ON the list's `surface-interactive` fill, so its
|
|
51
|
+
// hover is the fill's own step — `surface-hover` resolves to the same
|
|
52
|
+
// value as the fill in light mode and was a no-op there.
|
|
53
|
+
'hover:text-text-primary hover:bg-surface-interactive-hover',
|
|
51
54
|
'data-[state=active]:bg-surface-base data-[state=active]:text-primary',
|
|
52
55
|
'data-[state=active]:shadow-[var(--blocks-shadow-sm)]'
|
|
53
56
|
]
|
|
@@ -57,7 +60,7 @@ export const tabVariants = tv({
|
|
|
57
60
|
trigger: [
|
|
58
61
|
'px-4 py-2 border border-b-0 -mb-px',
|
|
59
62
|
'text-text-tertiary border-transparent',
|
|
60
|
-
'hover:text-text-primary hover:bg-surface-
|
|
63
|
+
'hover:text-text-primary hover:bg-surface-hover',
|
|
61
64
|
'data-[state=active]:bg-surface-base data-[state=active]:text-primary',
|
|
62
65
|
'data-[state=active]:border-border-subtle data-[state=active]:border-b-surface-base'
|
|
63
66
|
]
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { mintRegistry } from '../..';
|
|
3
|
+
import CoreFieldMessage from '../../internal/core/CoreFieldMessage.svelte';
|
|
3
4
|
import { getBlocksConfig, resolveSlotClasses } from '../../provider';
|
|
4
5
|
import { useFormField, getTierContext } from '../../utils';
|
|
5
6
|
import type { TextareaProps } from './index';
|
|
@@ -165,26 +166,20 @@
|
|
|
165
166
|
<div
|
|
166
167
|
class={unstyled ? (slotClasses?.footer ?? '') : styles.footer({ class: slotClasses?.footer })}
|
|
167
168
|
>
|
|
168
|
-
{#if
|
|
169
|
-
<
|
|
170
|
-
id={ff.errorId}
|
|
171
|
-
class={unstyled
|
|
172
|
-
? (slotClasses?.message ?? '')
|
|
173
|
-
: styles.message({ class: slotClasses?.message })}
|
|
174
|
-
role="alert"
|
|
175
|
-
>
|
|
169
|
+
{#if error || helper}
|
|
170
|
+
<CoreFieldMessage
|
|
176
171
|
{error}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
id={ff.helperId}
|
|
172
|
+
{helper}
|
|
173
|
+
errorId={ff.errorId}
|
|
174
|
+
helperId={ff.helperId}
|
|
181
175
|
class={unstyled
|
|
182
176
|
? (slotClasses?.message ?? '')
|
|
183
177
|
: styles.message({ class: slotClasses?.message })}
|
|
184
|
-
|
|
185
|
-
{helper}
|
|
186
|
-
</div>
|
|
178
|
+
/>
|
|
187
179
|
{:else}
|
|
180
|
+
<!-- The footer is `justify-between`: without a first child the counter
|
|
181
|
+
would slide to the left edge. Unlike every other field, Textarea's
|
|
182
|
+
message shares a row, so the empty slot has to stay here. -->
|
|
188
183
|
<span></span>
|
|
189
184
|
{/if}
|
|
190
185
|
|
|
@@ -30,10 +30,10 @@ export const textareaVariants = tv({
|
|
|
30
30
|
base: 'border-border-subtle'
|
|
31
31
|
},
|
|
32
32
|
filled: {
|
|
33
|
-
base: 'bg-surface-interactive border-transparent hover:bg-surface-hover focus-visible:bg-surface-base'
|
|
33
|
+
base: 'bg-surface-interactive border-transparent hover:bg-surface-interactive-hover focus-visible:bg-surface-base'
|
|
34
34
|
},
|
|
35
35
|
ghost: {
|
|
36
|
-
base: 'bg-transparent border-transparent hover:bg-surface-
|
|
36
|
+
base: 'bg-transparent border-transparent hover:bg-surface-hover focus-visible:bg-surface-base focus-visible:border-border-subtle'
|
|
37
37
|
},
|
|
38
38
|
underline: {
|
|
39
39
|
base: 'bg-transparent border-0 border-b-2 border-border-subtle rounded-none focus-visible:ring-0'
|
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
2
2
|
export declare const toastVariants: ((props?: {
|
|
3
|
-
intent?: "primary" | "success" | "warning" | "danger" | "neutral" |
|
|
3
|
+
intent?: "info" | "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
4
4
|
placement?: "bottom-right" | "top-right" | "bottom-left" | "top-left" | "top-center" | "bottom-center" | undefined;
|
|
5
5
|
} | undefined) => {
|
|
6
6
|
container: (props?: ({
|
|
7
|
-
intent?: "primary" | "success" | "warning" | "danger" | "neutral" |
|
|
7
|
+
intent?: "info" | "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
8
8
|
placement?: "bottom-right" | "top-right" | "bottom-left" | "top-left" | "top-center" | "bottom-center" | 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
|
toast: (props?: ({
|
|
13
|
-
intent?: "primary" | "success" | "warning" | "danger" | "neutral" |
|
|
13
|
+
intent?: "info" | "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
14
14
|
placement?: "bottom-right" | "top-right" | "bottom-left" | "top-left" | "top-center" | "bottom-center" | 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
|
icon: (props?: ({
|
|
19
|
-
intent?: "primary" | "success" | "warning" | "danger" | "neutral" |
|
|
19
|
+
intent?: "info" | "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
20
20
|
placement?: "bottom-right" | "top-right" | "bottom-left" | "top-left" | "top-center" | "bottom-center" | 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
|
-
intent?: "primary" | "success" | "warning" | "danger" | "neutral" |
|
|
25
|
+
intent?: "info" | "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
26
26
|
placement?: "bottom-right" | "top-right" | "bottom-left" | "top-left" | "top-center" | "bottom-center" | 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
|
title: (props?: ({
|
|
31
|
-
intent?: "primary" | "success" | "warning" | "danger" | "neutral" |
|
|
31
|
+
intent?: "info" | "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
32
32
|
placement?: "bottom-right" | "top-right" | "bottom-left" | "top-left" | "top-center" | "bottom-center" | 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;
|
|
35
35
|
}) | undefined) => string;
|
|
36
36
|
description: (props?: ({
|
|
37
|
-
intent?: "primary" | "success" | "warning" | "danger" | "neutral" |
|
|
37
|
+
intent?: "info" | "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
38
38
|
placement?: "bottom-right" | "top-right" | "bottom-left" | "top-left" | "top-center" | "bottom-center" | undefined;
|
|
39
39
|
} & {
|
|
40
40
|
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;
|
|
41
41
|
}) | undefined) => string;
|
|
42
42
|
actions: (props?: ({
|
|
43
|
-
intent?: "primary" | "success" | "warning" | "danger" | "neutral" |
|
|
43
|
+
intent?: "info" | "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
44
44
|
placement?: "bottom-right" | "top-right" | "bottom-left" | "top-left" | "top-center" | "bottom-center" | undefined;
|
|
45
45
|
} & {
|
|
46
46
|
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;
|
|
47
47
|
}) | undefined) => string;
|
|
48
48
|
actionButton: (props?: ({
|
|
49
|
-
intent?: "primary" | "success" | "warning" | "danger" | "neutral" |
|
|
49
|
+
intent?: "info" | "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
50
50
|
placement?: "bottom-right" | "top-right" | "bottom-left" | "top-left" | "top-center" | "bottom-center" | undefined;
|
|
51
51
|
} & {
|
|
52
52
|
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;
|
|
53
53
|
}) | undefined) => string;
|
|
54
54
|
cancelButton: (props?: ({
|
|
55
|
-
intent?: "primary" | "success" | "warning" | "danger" | "neutral" |
|
|
55
|
+
intent?: "info" | "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
56
56
|
placement?: "bottom-right" | "top-right" | "bottom-left" | "top-left" | "top-center" | "bottom-center" | undefined;
|
|
57
57
|
} & {
|
|
58
58
|
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;
|
|
59
59
|
}) | undefined) => string;
|
|
60
60
|
dismissButton: (props?: ({
|
|
61
|
-
intent?: "primary" | "success" | "warning" | "danger" | "neutral" |
|
|
61
|
+
intent?: "info" | "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
62
62
|
placement?: "bottom-right" | "top-right" | "bottom-left" | "top-left" | "top-center" | "bottom-center" | undefined;
|
|
63
63
|
} & {
|
|
64
64
|
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;
|
|
65
65
|
}) | undefined) => string;
|
|
66
66
|
progress: (props?: ({
|
|
67
|
-
intent?: "primary" | "success" | "warning" | "danger" | "neutral" |
|
|
67
|
+
intent?: "info" | "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
68
68
|
placement?: "bottom-right" | "top-right" | "bottom-left" | "top-left" | "top-center" | "bottom-center" | undefined;
|
|
69
69
|
} & {
|
|
70
70
|
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,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { useBlocksI18n, mintRegistry } from '../..';
|
|
3
|
+
import CoreFieldMessage from '../../internal/core/CoreFieldMessage.svelte';
|
|
3
4
|
import { getBlocksConfig, resolveSlotClasses } from '../../provider';
|
|
4
5
|
import { getTierContext, useFormField } from '../../utils';
|
|
5
6
|
import { toggleVariants, type ToggleVariants } from './toggle.variants';
|
|
@@ -152,24 +153,13 @@
|
|
|
152
153
|
{/if}
|
|
153
154
|
</label>
|
|
154
155
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
</div>
|
|
165
|
-
{:else if ff.helperId}
|
|
166
|
-
<div
|
|
167
|
-
id={ff.helperId}
|
|
168
|
-
class={unstyled
|
|
169
|
-
? (slotClasses?.message ?? '')
|
|
170
|
-
: styles.message({ class: slotClasses?.message })}
|
|
171
|
-
>
|
|
172
|
-
{helper}
|
|
173
|
-
</div>
|
|
174
|
-
{/if}
|
|
156
|
+
<CoreFieldMessage
|
|
157
|
+
{error}
|
|
158
|
+
{helper}
|
|
159
|
+
errorId={ff.errorId}
|
|
160
|
+
helperId={ff.helperId}
|
|
161
|
+
class={unstyled
|
|
162
|
+
? (slotClasses?.message ?? '')
|
|
163
|
+
: styles.message({ class: slotClasses?.message })}
|
|
164
|
+
/>
|
|
175
165
|
</div>
|
|
@@ -127,13 +127,15 @@ export const toggleVariants = tv({
|
|
|
127
127
|
// same destination Checkbox's unchecked `outlined` box reaches, on
|
|
128
128
|
// the border the track already reserves (`border border-transparent`
|
|
129
129
|
// in the slot base, so nothing shifts).
|
|
130
|
-
//
|
|
131
|
-
//
|
|
132
|
-
//
|
|
133
|
-
//
|
|
134
|
-
//
|
|
135
|
-
//
|
|
136
|
-
//
|
|
130
|
+
//
|
|
131
|
+
// A fill step is now possible — `surface-interactive-hover` (added
|
|
132
|
+
// 2026-07-25) is the rung the filled fields use, and it reads in both
|
|
133
|
+
// modes. The border step stays anyway, for a Toggle-specific reason:
|
|
134
|
+
// the `dot` variant hides the thumb, so the track IS the control, and a
|
|
135
|
+
// boundary change reads there where a fill wash does not. (The original
|
|
136
|
+
// reason was that no fill token worked at all — `surface-interactive`
|
|
137
|
+
// resolved to `surface-hover` in light and `surface-active` in dark.
|
|
138
|
+
// That is fixed; this is now a choice, not a constraint.)
|
|
137
139
|
track: 'bg-surface-interactive group-hover:border-border-emphasis',
|
|
138
140
|
thumb: 'translate-x-0'
|
|
139
141
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@theme {
|
|
2
2
|
--color-neutral-0: oklch(1 0 0);
|
|
3
|
-
--color-neutral-25: oklch(0.
|
|
4
|
-
--color-neutral-50: oklch(0.
|
|
3
|
+
--color-neutral-25: oklch(0.985 0.003 240);
|
|
4
|
+
--color-neutral-50: oklch(0.965 0.006 240);
|
|
5
5
|
--color-neutral-100: oklch(0.95 0.008 240);
|
|
6
6
|
--color-neutral-200: oklch(0.89 0.012 240);
|
|
7
7
|
--color-neutral-300: oklch(0.83 0.014 240);
|
|
@@ -179,13 +179,23 @@
|
|
|
179
179
|
--radius-commit: 9999px;
|
|
180
180
|
--radius-modify: var(--radius-sm);
|
|
181
181
|
--radius-contain: var(--radius-xs);
|
|
182
|
-
/* r-bridge — the
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
182
|
+
/* r-bridge — the MIDDLE tier, at r-md (~6 px). Two cases earn it, both
|
|
183
|
+
of them "r-contain is too hard here, r-commit is too soft":
|
|
184
|
+
|
|
185
|
+
1. Adjacency. A floating panel anchored to a commit-tier (pill)
|
|
186
|
+
trigger reads disconnected at r-contain (2 px) and over-sized
|
|
187
|
+
if it mirrors the pill at r-commit. (Menu panel when its
|
|
188
|
+
trigger Button is commit-tier.)
|
|
189
|
+
2. Small tinted content surfaces. Optical radius scales with the
|
|
190
|
+
area it turns: 2 px on a 600 px Card reads as a precise edge,
|
|
191
|
+
the same 2 px on a ~200 px chat bubble reads as a rectangle.
|
|
192
|
+
A bubble is content, not architecture — it takes the middle
|
|
193
|
+
tier. (ChatMessage bubble.)
|
|
194
|
+
|
|
195
|
+
Still not a free-for-all: everything that IS a panel, dialog or
|
|
196
|
+
container belongs on one of the three primary tiers above. Reach
|
|
197
|
+
for bridge only when the surface is demonstrably too small for
|
|
198
|
+
r-contain to read as intentional. */
|
|
189
199
|
--radius-bridge: var(--radius-md);
|
|
190
200
|
|
|
191
201
|
/* Container Query Breakpoints */
|