@urbicon-ui/blocks 6.40.4 → 6.43.2
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/A2UIView/A2UINode.svelte +20 -39
- package/dist/components/Chat/A2UIView/A2UIView.svelte +47 -50
- package/dist/components/Chat/A2UIView/a2ui-basic-catalog.d.ts +17 -0
- package/dist/components/Chat/A2UIView/a2ui-basic-catalog.js +69 -0
- package/dist/components/Chat/A2UIView/a2ui-catalog.d.ts +95 -0
- package/dist/components/Chat/A2UIView/a2ui-catalog.js +87 -0
- package/dist/components/Chat/A2UIView/a2ui-node-common.d.ts +40 -0
- package/dist/components/Chat/A2UIView/a2ui-node-common.js +72 -0
- package/dist/components/Chat/A2UIView/a2ui-prompt.d.ts +21 -10
- package/dist/components/Chat/A2UIView/a2ui-prompt.js +170 -24
- package/dist/components/Chat/A2UIView/a2ui-registry.d.ts +1 -1
- package/dist/components/Chat/A2UIView/a2ui-registry.js +2 -1
- package/dist/components/Chat/A2UIView/a2ui-render.d.ts +30 -0
- package/dist/components/Chat/A2UIView/a2ui-render.js +61 -23
- package/dist/components/Chat/A2UIView/a2ui-router.d.ts +136 -0
- package/dist/components/Chat/A2UIView/a2ui-router.js +264 -0
- package/dist/components/Chat/A2UIView/a2ui-schema.d.ts +45 -0
- package/dist/components/Chat/A2UIView/a2ui-schema.js +133 -0
- package/dist/components/Chat/A2UIView/a2ui-stream.d.ts +120 -0
- package/dist/components/Chat/A2UIView/a2ui-stream.js +406 -0
- package/dist/components/Chat/A2UIView/a2ui-transcript.d.ts +65 -0
- package/dist/components/Chat/A2UIView/a2ui-transcript.js +101 -0
- package/dist/components/Chat/A2UIView/a2ui-validate.d.ts +33 -1
- package/dist/components/Chat/A2UIView/a2ui-validate.js +167 -63
- package/dist/components/Chat/A2UIView/a2ui.types.d.ts +50 -0
- package/dist/components/Chat/A2UIView/a2ui.types.js +38 -1
- package/dist/components/Chat/A2UIView/index.d.ts +35 -2
- package/dist/components/Chat/A2UIView/index.js +13 -0
- package/dist/components/Chat/A2UIView/urbicon/UrbiconA2UINode.svelte +831 -0
- package/dist/components/Chat/A2UIView/urbicon/UrbiconA2UINode.svelte.d.ts +4 -0
- package/dist/components/Chat/A2UIView/urbicon/a2ui-urbicon-catalog.d.ts +14 -0
- package/dist/components/Chat/A2UIView/urbicon/a2ui-urbicon-catalog.js +87 -0
- package/dist/components/Chat/A2UIView/urbicon/a2ui-urbicon-registry.d.ts +78 -0
- package/dist/components/Chat/A2UIView/urbicon/a2ui-urbicon-registry.js +783 -0
- package/dist/components/Chat/A2UIView/urbicon/a2ui-urbicon.variants.d.ts +43 -0
- package/dist/components/Chat/A2UIView/urbicon/a2ui-urbicon.variants.js +33 -0
- package/dist/components/Chat/A2UIView/urbicon/urbicon-axes.gen.d.ts +7 -0
- package/dist/components/Chat/A2UIView/urbicon/urbicon-axes.gen.js +86 -0
- package/dist/components/Chat/ChatMessage/ChatMessage.svelte +93 -67
- package/dist/components/Chat/ChatMessage/chat-message.variants.d.ts +26 -19
- 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 +15 -4
- package/dist/components/PinInput/PinInput.svelte +1 -0
- package/dist/components/PinInput/pin-input.variants.js +14 -1
- package/dist/components/TimeInput/time-input.variants.js +16 -1
- 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/field-chrome.d.ts +18 -1
- package/dist/internal/field-chrome.js +19 -2
- package/dist/primitives/Alert/alert.variants.d.ts +8 -8
- package/dist/primitives/Avatar/avatar.variants.js +4 -1
- package/dist/primitives/Badge/badge.variants.js +11 -2
- package/dist/primitives/Button/button.variants.js +4 -1
- package/dist/primitives/Card/card.variants.js +4 -1
- package/dist/primitives/Checkbox/checkbox.variants.js +7 -1
- package/dist/primitives/Combobox/Combobox.svelte +9 -1
- package/dist/primitives/Combobox/combobox.variants.d.ts +25 -0
- package/dist/primitives/Combobox/combobox.variants.js +43 -7
- package/dist/primitives/Combobox/index.d.ts +8 -2
- package/dist/primitives/Dialog/dialog.variants.js +4 -1
- package/dist/primitives/Drawer/drawer.variants.js +4 -1
- package/dist/primitives/Input/input.variants.js +17 -1
- package/dist/primitives/JourneyTimeline/journey-timeline.variants.d.ts +22 -22
- package/dist/primitives/Menu/menu.variants.js +5 -1
- package/dist/primitives/Progress/progress.variants.js +5 -2
- package/dist/primitives/RadioGroup/radioGroup.variants.js +74 -10
- package/dist/primitives/Select/select.variants.js +14 -5
- package/dist/primitives/Slider/Slider.svelte +4 -1
- package/dist/primitives/Slider/slider.variants.js +9 -2
- 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 +4 -1
- package/dist/primitives/Textarea/textarea.variants.js +16 -2
- package/dist/primitives/Toast/toast.variants.d.ts +12 -12
- package/dist/primitives/Toast/toast.variants.js +5 -1
- package/dist/primitives/Toggle/toggle.variants.js +94 -18
- package/dist/primitives/Tooltip/tooltip.variants.d.ts +3 -3
- package/dist/primitives/Tooltip/tooltip.variants.js +5 -1
- package/dist/style/foundation.css +19 -9
- package/dist/style/semantic.css +49 -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/dist/utils/persistent-state.svelte.d.ts +25 -1
- package/dist/utils/persistent-state.svelte.js +98 -10
- package/docs/MIGRATION-v5.md +29 -0
- 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
|
]
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { fieldErrorFrame } from '../../internal/field-chrome.js';
|
|
1
2
|
import { tv } from '../../utils/variants.js';
|
|
2
3
|
export const textareaVariants = tv({
|
|
3
4
|
slots: {
|
|
@@ -29,7 +30,7 @@ export const textareaVariants = tv({
|
|
|
29
30
|
base: 'border-border-subtle'
|
|
30
31
|
},
|
|
31
32
|
filled: {
|
|
32
|
-
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'
|
|
33
34
|
},
|
|
34
35
|
ghost: {
|
|
35
36
|
base: 'bg-transparent border-transparent hover:bg-surface-subtle focus-visible:bg-surface-base focus-visible:border-border-subtle'
|
|
@@ -83,9 +84,11 @@ export const textareaVariants = tv({
|
|
|
83
84
|
error: { message: 'text-danger' },
|
|
84
85
|
helper: { message: 'text-text-tertiary' }
|
|
85
86
|
},
|
|
87
|
+
// The error FRAME is not declared here — it lives in the compound stage
|
|
88
|
+
// below, where it beats `intent` by construction. See the precedence note
|
|
89
|
+
// on the first compound entry.
|
|
86
90
|
error: {
|
|
87
91
|
true: {
|
|
88
|
-
base: 'border-danger focus-visible:border-danger focus-visible:ring-danger/20',
|
|
89
92
|
message: 'text-danger'
|
|
90
93
|
}
|
|
91
94
|
},
|
|
@@ -101,6 +104,17 @@ export const textareaVariants = tv({
|
|
|
101
104
|
}
|
|
102
105
|
},
|
|
103
106
|
compoundVariants: [
|
|
107
|
+
// ── Validation precedence: `error` beats `intent`, explicitly ────────────
|
|
108
|
+
// Both axes paint the SAME three buckets (border-color plus the focused
|
|
109
|
+
// border/ring tint), so exactly one of them can win. Emitting the error
|
|
110
|
+
// frame here rather than on the `error` axis makes that rule structural:
|
|
111
|
+
// compounds always fold after every axis, so `error: true` overrides
|
|
112
|
+
// whatever `intent` painted regardless of how the axes are ordered above
|
|
113
|
+
// (it used to hinge purely on `error` being DECLARED after `intent`).
|
|
114
|
+
{
|
|
115
|
+
error: true,
|
|
116
|
+
class: { base: fieldErrorFrame('focus-visible') }
|
|
117
|
+
},
|
|
104
118
|
{
|
|
105
119
|
variant: 'ghost',
|
|
106
120
|
intent: ['success', 'warning', 'danger'],
|
|
@@ -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;
|
|
@@ -10,7 +10,11 @@ export const toastVariants = tv({
|
|
|
10
10
|
'pointer-events-auto flex items-start gap-3 w-full max-w-sm',
|
|
11
11
|
'rounded-contain p-4',
|
|
12
12
|
'shadow-[var(--blocks-shadow-lg)]',
|
|
13
|
-
|
|
13
|
+
// No transform entry: the enter/exit motion is Svelte's `transition:fly`,
|
|
14
|
+
// which runs as a CSS *animation* (keyframes) and ignores
|
|
15
|
+
// `transition-property` entirely. Nothing on this slot sets a
|
|
16
|
+
// scale/translate/rotate utility, so a `transform` entry was dead weight.
|
|
17
|
+
'transition-[color,background-color,box-shadow,opacity] duration-[var(--blocks-duration-normal)] ease-[var(--blocks-ease-smooth)]'
|
|
14
18
|
],
|
|
15
19
|
icon: 'shrink-0 mt-0.5 w-5 h-5',
|
|
16
20
|
content: 'flex-1 min-w-0',
|