@urbicon-ui/blocks 6.37.2 → 6.39.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.
Files changed (78) hide show
  1. package/dist/components/AvatarGroup/AvatarGroup.svelte +60 -0
  2. package/dist/components/AvatarGroup/AvatarGroup.svelte.d.ts +4 -0
  3. package/dist/components/AvatarGroup/avatar-group.variants.d.ts +20 -0
  4. package/dist/components/AvatarGroup/avatar-group.variants.js +21 -0
  5. package/dist/components/AvatarGroup/index.d.ts +57 -0
  6. package/dist/components/AvatarGroup/index.js +2 -0
  7. package/dist/components/Calendar/calendar.variants.d.ts +126 -126
  8. package/dist/components/Chat/A2UIView/A2UINode.svelte +582 -0
  9. package/dist/components/Chat/A2UIView/A2UINode.svelte.d.ts +10 -0
  10. package/dist/components/Chat/A2UIView/A2UIView.svelte +272 -0
  11. package/dist/components/Chat/A2UIView/A2UIView.svelte.d.ts +4 -0
  12. package/dist/components/Chat/A2UIView/a2ui-data.d.ts +65 -0
  13. package/dist/components/Chat/A2UIView/a2ui-data.js +283 -0
  14. package/dist/components/Chat/A2UIView/a2ui-prompt.d.ts +18 -0
  15. package/dist/components/Chat/A2UIView/a2ui-prompt.js +141 -0
  16. package/dist/components/Chat/A2UIView/a2ui-registry.d.ts +64 -0
  17. package/dist/components/Chat/A2UIView/a2ui-registry.js +348 -0
  18. package/dist/components/Chat/A2UIView/a2ui-render.d.ts +96 -0
  19. package/dist/components/Chat/A2UIView/a2ui-render.js +140 -0
  20. package/dist/components/Chat/A2UIView/a2ui-validate.d.ts +75 -0
  21. package/dist/components/Chat/A2UIView/a2ui-validate.js +762 -0
  22. package/dist/components/Chat/A2UIView/a2ui-view.variants.d.ts +74 -0
  23. package/dist/components/Chat/A2UIView/a2ui-view.variants.js +58 -0
  24. package/dist/components/Chat/A2UIView/a2ui.types.d.ts +117 -0
  25. package/dist/components/Chat/A2UIView/a2ui.types.js +83 -0
  26. package/dist/components/Chat/A2UIView/index.d.ts +102 -0
  27. package/dist/components/Chat/A2UIView/index.js +7 -0
  28. package/dist/components/Chat/ChatMessage/ChatMessage.svelte +4 -1
  29. package/dist/components/Chat/index.d.ts +2 -0
  30. package/dist/components/Chat/index.js +1 -0
  31. package/dist/components/CopyButton/CopyButton.svelte +139 -0
  32. package/dist/components/CopyButton/CopyButton.svelte.d.ts +4 -0
  33. package/dist/components/CopyButton/copy-button.variants.d.ts +29 -0
  34. package/dist/components/CopyButton/copy-button.variants.js +32 -0
  35. package/dist/components/CopyButton/index.d.ts +55 -0
  36. package/dist/components/CopyButton/index.js +2 -0
  37. package/dist/components/FileUpload/FileUpload.svelte.d.ts +1 -1
  38. package/dist/components/PinInput/pin-input.variants.d.ts +7 -7
  39. package/dist/components/Planner/planner.variants.d.ts +34 -34
  40. package/dist/components/TimeInput/time-input.variants.d.ts +9 -9
  41. package/dist/components/index.d.ts +4 -0
  42. package/dist/components/index.js +2 -0
  43. package/dist/i18n/index.d.ts +6 -390
  44. package/dist/primitives/Accordion/accordion.variants.d.ts +7 -7
  45. package/dist/primitives/Alert/alert.variants.d.ts +8 -8
  46. package/dist/primitives/Avatar/avatar.variants.d.ts +12 -12
  47. package/dist/primitives/Badge/badge.variants.d.ts +10 -10
  48. package/dist/primitives/Button/button.variants.d.ts +4 -4
  49. package/dist/primitives/Card/card.variants.d.ts +5 -5
  50. package/dist/primitives/Checkbox/checkbox.variants.d.ts +7 -7
  51. package/dist/primitives/Collapsible/collapsible.variants.d.ts +6 -6
  52. package/dist/primitives/Combobox/combobox.variants.d.ts +50 -50
  53. package/dist/primitives/Input/input.variants.d.ts +27 -27
  54. package/dist/primitives/JourneyTimeline/journey-timeline.variants.d.ts +22 -22
  55. package/dist/primitives/Kbd/Kbd.svelte +44 -0
  56. package/dist/primitives/Kbd/Kbd.svelte.d.ts +4 -0
  57. package/dist/primitives/Kbd/index.d.ts +51 -0
  58. package/dist/primitives/Kbd/index.js +2 -0
  59. package/dist/primitives/Kbd/kbd.variants.d.ts +20 -0
  60. package/dist/primitives/Kbd/kbd.variants.js +27 -0
  61. package/dist/primitives/Progress/progress.variants.d.ts +11 -11
  62. package/dist/primitives/RadioGroup/radioGroup.variants.d.ts +6 -6
  63. package/dist/primitives/Select/select.variants.d.ts +34 -34
  64. package/dist/primitives/Skeleton/skeleton.variants.d.ts +3 -3
  65. package/dist/primitives/Spinner/spinner.variants.d.ts +48 -48
  66. package/dist/primitives/Stepper/stepper.variants.d.ts +11 -11
  67. package/dist/primitives/Textarea/textarea.variants.d.ts +21 -21
  68. package/dist/primitives/Toast/toast.variants.d.ts +12 -12
  69. package/dist/primitives/Toggle/toggle.variants.d.ts +7 -7
  70. package/dist/primitives/Toolbar/toolbar.variants.d.ts +6 -6
  71. package/dist/primitives/Tooltip/tooltip.variants.d.ts +3 -3
  72. package/dist/primitives/index.d.ts +2 -0
  73. package/dist/primitives/index.js +1 -0
  74. package/dist/translations/de.d.ts +4 -0
  75. package/dist/translations/de.js +4 -0
  76. package/dist/translations/en.d.ts +4 -0
  77. package/dist/translations/en.js +4 -0
  78. package/package.json +3 -3
@@ -1,9 +1,9 @@
1
1
  import { type SlotNames, type VariantProps } from '../../utils/variants.js';
2
2
  export declare const inputVariants: ((props?: {
3
3
  tier?: "commit" | "modify" | undefined;
4
- variant?: "ghost" | "filled" | "outlined" | "underline" | undefined;
5
- size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
6
- intent?: "default" | "success" | "warning" | "danger" | undefined;
4
+ variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
5
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
6
+ intent?: "success" | "warning" | "danger" | "default" | undefined;
7
7
  disabled?: boolean | undefined;
8
8
  readonly?: boolean | undefined;
9
9
  messageType?: "error" | "helper" | undefined;
@@ -15,9 +15,9 @@ export declare const inputVariants: ((props?: {
15
15
  } | undefined) => {
16
16
  wrapper: (props?: ({
17
17
  tier?: "commit" | "modify" | undefined;
18
- variant?: "ghost" | "filled" | "outlined" | "underline" | undefined;
19
- size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
20
- intent?: "default" | "success" | "warning" | "danger" | undefined;
18
+ variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
19
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
20
+ intent?: "success" | "warning" | "danger" | "default" | undefined;
21
21
  disabled?: boolean | undefined;
22
22
  readonly?: boolean | undefined;
23
23
  messageType?: "error" | "helper" | undefined;
@@ -31,9 +31,9 @@ export declare const inputVariants: ((props?: {
31
31
  }) | undefined) => string;
32
32
  container: (props?: ({
33
33
  tier?: "commit" | "modify" | undefined;
34
- variant?: "ghost" | "filled" | "outlined" | "underline" | undefined;
35
- size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
36
- intent?: "default" | "success" | "warning" | "danger" | undefined;
34
+ variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
35
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
36
+ intent?: "success" | "warning" | "danger" | "default" | undefined;
37
37
  disabled?: boolean | undefined;
38
38
  readonly?: boolean | undefined;
39
39
  messageType?: "error" | "helper" | undefined;
@@ -47,9 +47,9 @@ export declare const inputVariants: ((props?: {
47
47
  }) | undefined) => string;
48
48
  base: (props?: ({
49
49
  tier?: "commit" | "modify" | undefined;
50
- variant?: "ghost" | "filled" | "outlined" | "underline" | undefined;
51
- size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
52
- intent?: "default" | "success" | "warning" | "danger" | undefined;
50
+ variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
51
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
52
+ intent?: "success" | "warning" | "danger" | "default" | undefined;
53
53
  disabled?: boolean | undefined;
54
54
  readonly?: boolean | undefined;
55
55
  messageType?: "error" | "helper" | undefined;
@@ -63,9 +63,9 @@ export declare const inputVariants: ((props?: {
63
63
  }) | undefined) => string;
64
64
  label: (props?: ({
65
65
  tier?: "commit" | "modify" | undefined;
66
- variant?: "ghost" | "filled" | "outlined" | "underline" | undefined;
67
- size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
68
- intent?: "default" | "success" | "warning" | "danger" | undefined;
66
+ variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
67
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
68
+ intent?: "success" | "warning" | "danger" | "default" | undefined;
69
69
  disabled?: boolean | undefined;
70
70
  readonly?: boolean | undefined;
71
71
  messageType?: "error" | "helper" | undefined;
@@ -79,9 +79,9 @@ export declare const inputVariants: ((props?: {
79
79
  }) | undefined) => string;
80
80
  message: (props?: ({
81
81
  tier?: "commit" | "modify" | undefined;
82
- variant?: "ghost" | "filled" | "outlined" | "underline" | undefined;
83
- size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
84
- intent?: "default" | "success" | "warning" | "danger" | undefined;
82
+ variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
83
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
84
+ intent?: "success" | "warning" | "danger" | "default" | undefined;
85
85
  disabled?: boolean | undefined;
86
86
  readonly?: boolean | undefined;
87
87
  messageType?: "error" | "helper" | undefined;
@@ -95,9 +95,9 @@ export declare const inputVariants: ((props?: {
95
95
  }) | undefined) => string;
96
96
  iconContainer: (props?: ({
97
97
  tier?: "commit" | "modify" | undefined;
98
- variant?: "ghost" | "filled" | "outlined" | "underline" | undefined;
99
- size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
100
- intent?: "default" | "success" | "warning" | "danger" | undefined;
98
+ variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
99
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
100
+ intent?: "success" | "warning" | "danger" | "default" | undefined;
101
101
  disabled?: boolean | undefined;
102
102
  readonly?: boolean | undefined;
103
103
  messageType?: "error" | "helper" | undefined;
@@ -111,9 +111,9 @@ export declare const inputVariants: ((props?: {
111
111
  }) | undefined) => string;
112
112
  iconButton: (props?: ({
113
113
  tier?: "commit" | "modify" | undefined;
114
- variant?: "ghost" | "filled" | "outlined" | "underline" | undefined;
115
- size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
116
- intent?: "default" | "success" | "warning" | "danger" | undefined;
114
+ variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
115
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
116
+ intent?: "success" | "warning" | "danger" | "default" | undefined;
117
117
  disabled?: boolean | undefined;
118
118
  readonly?: boolean | undefined;
119
119
  messageType?: "error" | "helper" | undefined;
@@ -127,9 +127,9 @@ export declare const inputVariants: ((props?: {
127
127
  }) | undefined) => string;
128
128
  iconDecoration: (props?: ({
129
129
  tier?: "commit" | "modify" | undefined;
130
- variant?: "ghost" | "filled" | "outlined" | "underline" | undefined;
131
- size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
132
- intent?: "default" | "success" | "warning" | "danger" | undefined;
130
+ variant?: "ghost" | "underline" | "filled" | "outlined" | undefined;
131
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
132
+ intent?: "success" | "warning" | "danger" | "default" | undefined;
133
133
  disabled?: boolean | undefined;
134
134
  readonly?: boolean | undefined;
135
135
  messageType?: "error" | "helper" | undefined;
@@ -2,7 +2,7 @@ import { type SlotNames, type VariantProps } from '../../utils/variants.js';
2
2
  export declare const journeyTimelineVariants: ((props?: {
3
3
  orientation?: "horizontal" | "vertical" | undefined;
4
4
  size?: "sm" | "md" | "lg" | undefined;
5
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
5
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
6
6
  focused?: boolean | undefined;
7
7
  interactive?: boolean | undefined;
8
8
  travelled?: boolean | undefined;
@@ -13,7 +13,7 @@ export declare const journeyTimelineVariants: ((props?: {
13
13
  base: (props?: ({
14
14
  orientation?: "horizontal" | "vertical" | undefined;
15
15
  size?: "sm" | "md" | "lg" | undefined;
16
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
16
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
17
17
  focused?: boolean | undefined;
18
18
  interactive?: boolean | undefined;
19
19
  travelled?: boolean | undefined;
@@ -26,7 +26,7 @@ export declare const journeyTimelineVariants: ((props?: {
26
26
  rail: (props?: ({
27
27
  orientation?: "horizontal" | "vertical" | undefined;
28
28
  size?: "sm" | "md" | "lg" | undefined;
29
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
29
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
30
30
  focused?: boolean | undefined;
31
31
  interactive?: boolean | undefined;
32
32
  travelled?: boolean | undefined;
@@ -39,7 +39,7 @@ export declare const journeyTimelineVariants: ((props?: {
39
39
  node: (props?: ({
40
40
  orientation?: "horizontal" | "vertical" | undefined;
41
41
  size?: "sm" | "md" | "lg" | undefined;
42
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
42
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
43
43
  focused?: boolean | undefined;
44
44
  interactive?: boolean | undefined;
45
45
  travelled?: boolean | undefined;
@@ -52,7 +52,7 @@ export declare const journeyTimelineVariants: ((props?: {
52
52
  metaColumn: (props?: ({
53
53
  orientation?: "horizontal" | "vertical" | undefined;
54
54
  size?: "sm" | "md" | "lg" | undefined;
55
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
55
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
56
56
  focused?: boolean | undefined;
57
57
  interactive?: boolean | undefined;
58
58
  travelled?: boolean | undefined;
@@ -65,7 +65,7 @@ export declare const journeyTimelineVariants: ((props?: {
65
65
  meta: (props?: ({
66
66
  orientation?: "horizontal" | "vertical" | undefined;
67
67
  size?: "sm" | "md" | "lg" | undefined;
68
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
68
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
69
69
  focused?: boolean | undefined;
70
70
  interactive?: boolean | undefined;
71
71
  travelled?: boolean | undefined;
@@ -78,7 +78,7 @@ export declare const journeyTimelineVariants: ((props?: {
78
78
  markerColumn: (props?: ({
79
79
  orientation?: "horizontal" | "vertical" | undefined;
80
80
  size?: "sm" | "md" | "lg" | undefined;
81
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
81
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
82
82
  focused?: boolean | undefined;
83
83
  interactive?: boolean | undefined;
84
84
  travelled?: boolean | undefined;
@@ -91,7 +91,7 @@ export declare const journeyTimelineVariants: ((props?: {
91
91
  marker: (props?: ({
92
92
  orientation?: "horizontal" | "vertical" | undefined;
93
93
  size?: "sm" | "md" | "lg" | undefined;
94
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
94
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
95
95
  focused?: boolean | undefined;
96
96
  interactive?: boolean | undefined;
97
97
  travelled?: boolean | undefined;
@@ -104,7 +104,7 @@ export declare const journeyTimelineVariants: ((props?: {
104
104
  connector: (props?: ({
105
105
  orientation?: "horizontal" | "vertical" | undefined;
106
106
  size?: "sm" | "md" | "lg" | undefined;
107
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
107
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
108
108
  focused?: boolean | undefined;
109
109
  interactive?: boolean | undefined;
110
110
  travelled?: boolean | undefined;
@@ -117,7 +117,7 @@ export declare const journeyTimelineVariants: ((props?: {
117
117
  content: (props?: ({
118
118
  orientation?: "horizontal" | "vertical" | undefined;
119
119
  size?: "sm" | "md" | "lg" | undefined;
120
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
120
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
121
121
  focused?: boolean | undefined;
122
122
  interactive?: boolean | undefined;
123
123
  travelled?: boolean | undefined;
@@ -130,7 +130,7 @@ export declare const journeyTimelineVariants: ((props?: {
130
130
  card: (props?: ({
131
131
  orientation?: "horizontal" | "vertical" | undefined;
132
132
  size?: "sm" | "md" | "lg" | undefined;
133
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
133
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
134
134
  focused?: boolean | undefined;
135
135
  interactive?: boolean | undefined;
136
136
  travelled?: boolean | undefined;
@@ -143,7 +143,7 @@ export declare const journeyTimelineVariants: ((props?: {
143
143
  header: (props?: ({
144
144
  orientation?: "horizontal" | "vertical" | undefined;
145
145
  size?: "sm" | "md" | "lg" | undefined;
146
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
146
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
147
147
  focused?: boolean | undefined;
148
148
  interactive?: boolean | undefined;
149
149
  travelled?: boolean | undefined;
@@ -156,7 +156,7 @@ export declare const journeyTimelineVariants: ((props?: {
156
156
  trigger: (props?: ({
157
157
  orientation?: "horizontal" | "vertical" | undefined;
158
158
  size?: "sm" | "md" | "lg" | undefined;
159
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
159
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
160
160
  focused?: boolean | undefined;
161
161
  interactive?: boolean | undefined;
162
162
  travelled?: boolean | undefined;
@@ -169,7 +169,7 @@ export declare const journeyTimelineVariants: ((props?: {
169
169
  trailing: (props?: ({
170
170
  orientation?: "horizontal" | "vertical" | undefined;
171
171
  size?: "sm" | "md" | "lg" | undefined;
172
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
172
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
173
173
  focused?: boolean | undefined;
174
174
  interactive?: boolean | undefined;
175
175
  travelled?: boolean | undefined;
@@ -182,7 +182,7 @@ export declare const journeyTimelineVariants: ((props?: {
182
182
  labelGroup: (props?: ({
183
183
  orientation?: "horizontal" | "vertical" | undefined;
184
184
  size?: "sm" | "md" | "lg" | undefined;
185
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
185
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
186
186
  focused?: boolean | undefined;
187
187
  interactive?: boolean | undefined;
188
188
  travelled?: boolean | undefined;
@@ -195,7 +195,7 @@ export declare const journeyTimelineVariants: ((props?: {
195
195
  title: (props?: ({
196
196
  orientation?: "horizontal" | "vertical" | undefined;
197
197
  size?: "sm" | "md" | "lg" | undefined;
198
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
198
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
199
199
  focused?: boolean | undefined;
200
200
  interactive?: boolean | undefined;
201
201
  travelled?: boolean | undefined;
@@ -208,7 +208,7 @@ export declare const journeyTimelineVariants: ((props?: {
208
208
  subtitle: (props?: ({
209
209
  orientation?: "horizontal" | "vertical" | undefined;
210
210
  size?: "sm" | "md" | "lg" | undefined;
211
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
211
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
212
212
  focused?: boolean | undefined;
213
213
  interactive?: boolean | undefined;
214
214
  travelled?: boolean | undefined;
@@ -221,7 +221,7 @@ export declare const journeyTimelineVariants: ((props?: {
221
221
  segment: (props?: ({
222
222
  orientation?: "horizontal" | "vertical" | undefined;
223
223
  size?: "sm" | "md" | "lg" | undefined;
224
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
224
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
225
225
  focused?: boolean | undefined;
226
226
  interactive?: boolean | undefined;
227
227
  travelled?: boolean | undefined;
@@ -234,7 +234,7 @@ export declare const journeyTimelineVariants: ((props?: {
234
234
  detail: (props?: ({
235
235
  orientation?: "horizontal" | "vertical" | undefined;
236
236
  size?: "sm" | "md" | "lg" | undefined;
237
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
237
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
238
238
  focused?: boolean | undefined;
239
239
  interactive?: boolean | undefined;
240
240
  travelled?: boolean | undefined;
@@ -247,7 +247,7 @@ export declare const journeyTimelineVariants: ((props?: {
247
247
  detailInner: (props?: ({
248
248
  orientation?: "horizontal" | "vertical" | undefined;
249
249
  size?: "sm" | "md" | "lg" | undefined;
250
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
250
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
251
251
  focused?: boolean | undefined;
252
252
  interactive?: boolean | undefined;
253
253
  travelled?: boolean | undefined;
@@ -260,7 +260,7 @@ export declare const journeyTimelineVariants: ((props?: {
260
260
  detailContent: (props?: ({
261
261
  orientation?: "horizontal" | "vertical" | undefined;
262
262
  size?: "sm" | "md" | "lg" | undefined;
263
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
263
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
264
264
  focused?: boolean | undefined;
265
265
  interactive?: boolean | undefined;
266
266
  travelled?: boolean | undefined;
@@ -273,7 +273,7 @@ export declare const journeyTimelineVariants: ((props?: {
273
273
  panel: (props?: ({
274
274
  orientation?: "horizontal" | "vertical" | undefined;
275
275
  size?: "sm" | "md" | "lg" | undefined;
276
- status?: "complete" | "active" | "pending" | "attention" | "blocked" | "skipped" | undefined;
276
+ status?: "blocked" | "attention" | "active" | "complete" | "pending" | "skipped" | undefined;
277
277
  focused?: boolean | undefined;
278
278
  interactive?: boolean | undefined;
279
279
  travelled?: boolean | undefined;
@@ -0,0 +1,44 @@
1
+ <script lang="ts">
2
+ import { getBlocksConfig, resolveSlotClasses } from '../../provider';
3
+ import { kbdVariants } from './kbd.variants';
4
+ import type { KbdProps } from './index';
5
+
6
+ let {
7
+ keys,
8
+ separator = '+',
9
+ size = 'md',
10
+ children,
11
+ class: className = '',
12
+ unstyled: unstyledProp = false,
13
+ slotClasses: slotClassesProp = {},
14
+ preset,
15
+ ...restProps
16
+ }: KbdProps = $props();
17
+
18
+ const blocksConfig = getBlocksConfig();
19
+ const unstyled = $derived(unstyledProp || blocksConfig?.unstyled || false);
20
+ const slotClasses = $derived(
21
+ resolveSlotClasses(blocksConfig, 'Kbd', preset, { size }, slotClassesProp)
22
+ );
23
+
24
+ const styles = $derived(unstyled ? null : kbdVariants({ size }));
25
+
26
+ const keyList = $derived(keys === undefined ? [] : Array.isArray(keys) ? keys : [keys]);
27
+
28
+ const baseClass = $derived(
29
+ [styles?.base(), slotClasses?.base, className].filter(Boolean).join(' ')
30
+ );
31
+ const separatorClass = $derived(
32
+ [styles?.separator(), slotClasses?.separator].filter(Boolean).join(' ')
33
+ );
34
+ </script>
35
+
36
+ <kbd class={baseClass} {...restProps}>
37
+ {#if children}
38
+ {@render children()}
39
+ {:else}
40
+ {#each keyList as key, i (`${i}-${key}`)}
41
+ {#if i > 0}<span class={separatorClass}>{separator}</span>{/if}<span>{key}</span>
42
+ {/each}
43
+ {/if}
44
+ </kbd>
@@ -0,0 +1,4 @@
1
+ import type { KbdProps } from './index.js';
2
+ declare const Kbd: import("svelte").Component<KbdProps, {}, "">;
3
+ type Kbd = ReturnType<typeof Kbd>;
4
+ export default Kbd;
@@ -0,0 +1,51 @@
1
+ import type { Snippet } from 'svelte';
2
+ import type { HTMLAttributes } from 'svelte/elements';
3
+ import type { KbdSlots, KbdVariants } from './kbd.variants.js';
4
+ /**
5
+ * @description Keyboard-key hint. Renders one or more keys as a compact, physical-looking
6
+ * keycap — the canonical way to show shortcuts (⌘K, Ctrl + S) in menus, tooltips, command
7
+ * palettes and docs. Pure display; emits a semantic `<kbd>` element.
8
+ *
9
+ * @tag display
10
+ * @related CommandPalette
11
+ * @related Tooltip
12
+ * @stability beta
13
+ *
14
+ * @example
15
+ * ```svelte
16
+ * <Kbd keys="⌘K" />
17
+ * ```
18
+ *
19
+ * @example
20
+ * ```svelte
21
+ * <Kbd keys={['Ctrl', 'K']} />
22
+ * ```
23
+ */
24
+ export interface KbdProps extends KbdVariants, Omit<HTMLAttributes<HTMLElement>, 'children' | 'class'> {
25
+ /**
26
+ * The key(s) to display. A single string renders one label; an array renders each
27
+ * entry joined by `separator` (e.g. `['Ctrl', 'K']` → `Ctrl + K`). Ignored when
28
+ * `children` is provided.
29
+ */
30
+ keys?: string | string[];
31
+ /** Separator rendered between multiple `keys`. @default '+' */
32
+ separator?: string;
33
+ /** Keycap size — sm, md (default), lg. */
34
+ size?: 'sm' | 'md' | 'lg';
35
+ /** Custom content; overrides `keys`. */
36
+ children?: Snippet;
37
+ /** Additional CSS class merged onto the root `<kbd>`. */
38
+ class?: string;
39
+ /** Strip all default styles; combine with slotClasses to rebuild from scratch. */
40
+ unstyled?: boolean;
41
+ /** Per-slot class overrides. Slots: base | separator */
42
+ slotClasses?: Partial<Record<KbdSlots, string>>;
43
+ /**
44
+ * Apply a named preset registered via `<BlocksProvider presets={{ Kbd: {...} }}>`.
45
+ * Prefer this over `class` overrides when the requested look falls outside the
46
+ * semantic palette — presets keep dark-mode logic coherent and reusable.
47
+ */
48
+ preset?: string;
49
+ }
50
+ export { default as Kbd } from './Kbd.svelte';
51
+ export { type KbdVariants, kbdVariants } from './kbd.variants.js';
@@ -0,0 +1,2 @@
1
+ export { default as Kbd } from './Kbd.svelte';
2
+ export { kbdVariants } from './kbd.variants.js';
@@ -0,0 +1,20 @@
1
+ import { type SlotNames, type VariantProps } from '../../utils/variants.js';
2
+ export declare const kbdVariants: ((props?: {
3
+ size?: "sm" | "md" | "lg" | undefined;
4
+ } | undefined) => {
5
+ base: (props?: ({
6
+ size?: "sm" | "md" | "lg" | undefined;
7
+ } & {
8
+ 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;
9
+ }) | undefined) => string;
10
+ separator: (props?: ({
11
+ size?: "sm" | "md" | "lg" | undefined;
12
+ } & {
13
+ 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;
14
+ }) | undefined) => string;
15
+ }) & {
16
+ readonly config: import("../../utils/variants.js").TVConfig;
17
+ };
18
+ export type KbdVariants = VariantProps<typeof kbdVariants>;
19
+ /** Slot names derived from the `tv()` config above — single source of truth for `slotClasses`. */
20
+ export type KbdSlots = SlotNames<typeof kbdVariants>;
@@ -0,0 +1,27 @@
1
+ import { tv } from '../../utils/variants.js';
2
+ // Keyboard-key hint. Centralizes the ad-hoc `<kbd>` styling scattered across the
3
+ // docs and the CommandPalette `kbd` slot (commandPalette.variants.ts) into one
4
+ // primitive with a physical-keycap look. Pure display — the root is a semantic
5
+ // `<kbd>` element; multiple `keys` are joined by a muted separator inside the
6
+ // single cap, mirroring how the command palette renders `⌘K`.
7
+ export const kbdVariants = tv({
8
+ slots: {
9
+ base: [
10
+ 'inline-flex select-none items-center justify-center gap-1 align-middle whitespace-nowrap',
11
+ 'font-mono font-medium text-text-secondary',
12
+ 'border border-border-subtle bg-surface-elevated',
13
+ 'shadow-[var(--blocks-shadow-xs)]'
14
+ ],
15
+ separator: ['font-normal text-text-tertiary']
16
+ },
17
+ variants: {
18
+ size: {
19
+ sm: { base: 'h-4 min-w-4 rounded px-1 text-3xs' },
20
+ md: { base: 'h-5 min-w-5 rounded-md px-1.5 text-2xs' },
21
+ lg: { base: 'h-6 min-w-6 rounded-md px-2 text-xs' }
22
+ }
23
+ },
24
+ defaultVariants: {
25
+ size: 'md'
26
+ }
27
+ });
@@ -1,14 +1,14 @@
1
1
  import { type SlotNames, type VariantProps } from '../../utils/variants.js';
2
2
  export declare const progressVariants: ((props?: {
3
3
  intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
4
- size?: "sm" | "md" | "lg" | "xs" | undefined;
4
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
5
5
  indeterminate?: boolean | undefined;
6
6
  striped?: boolean | undefined;
7
7
  animated?: boolean | undefined;
8
8
  } | undefined) => {
9
9
  wrapper: (props?: ({
10
10
  intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
11
- size?: "sm" | "md" | "lg" | "xs" | undefined;
11
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
12
12
  indeterminate?: boolean | undefined;
13
13
  striped?: boolean | undefined;
14
14
  animated?: boolean | undefined;
@@ -17,7 +17,7 @@ export declare const progressVariants: ((props?: {
17
17
  }) | undefined) => string;
18
18
  header: (props?: ({
19
19
  intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
20
- size?: "sm" | "md" | "lg" | "xs" | undefined;
20
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
21
21
  indeterminate?: boolean | undefined;
22
22
  striped?: boolean | undefined;
23
23
  animated?: boolean | undefined;
@@ -26,7 +26,7 @@ export declare const progressVariants: ((props?: {
26
26
  }) | undefined) => string;
27
27
  label: (props?: ({
28
28
  intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
29
- size?: "sm" | "md" | "lg" | "xs" | undefined;
29
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
30
30
  indeterminate?: boolean | undefined;
31
31
  striped?: boolean | undefined;
32
32
  animated?: boolean | undefined;
@@ -35,7 +35,7 @@ export declare const progressVariants: ((props?: {
35
35
  }) | undefined) => string;
36
36
  valueText: (props?: ({
37
37
  intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
38
- size?: "sm" | "md" | "lg" | "xs" | undefined;
38
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
39
39
  indeterminate?: boolean | undefined;
40
40
  striped?: boolean | undefined;
41
41
  animated?: boolean | undefined;
@@ -44,7 +44,7 @@ export declare const progressVariants: ((props?: {
44
44
  }) | undefined) => string;
45
45
  track: (props?: ({
46
46
  intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
47
- size?: "sm" | "md" | "lg" | "xs" | undefined;
47
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
48
48
  indeterminate?: boolean | undefined;
49
49
  striped?: boolean | undefined;
50
50
  animated?: boolean | undefined;
@@ -53,7 +53,7 @@ export declare const progressVariants: ((props?: {
53
53
  }) | undefined) => string;
54
54
  fill: (props?: ({
55
55
  intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
56
- size?: "sm" | "md" | "lg" | "xs" | undefined;
56
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
57
57
  indeterminate?: boolean | undefined;
58
58
  striped?: boolean | undefined;
59
59
  animated?: boolean | undefined;
@@ -62,7 +62,7 @@ export declare const progressVariants: ((props?: {
62
62
  }) | undefined) => string;
63
63
  circularWrapper: (props?: ({
64
64
  intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
65
- size?: "sm" | "md" | "lg" | "xs" | undefined;
65
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
66
66
  indeterminate?: boolean | undefined;
67
67
  striped?: boolean | undefined;
68
68
  animated?: boolean | undefined;
@@ -71,7 +71,7 @@ export declare const progressVariants: ((props?: {
71
71
  }) | undefined) => string;
72
72
  circularTrack: (props?: ({
73
73
  intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
74
- size?: "sm" | "md" | "lg" | "xs" | undefined;
74
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
75
75
  indeterminate?: boolean | undefined;
76
76
  striped?: boolean | undefined;
77
77
  animated?: boolean | undefined;
@@ -80,7 +80,7 @@ export declare const progressVariants: ((props?: {
80
80
  }) | undefined) => string;
81
81
  circularFill: (props?: ({
82
82
  intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
83
- size?: "sm" | "md" | "lg" | "xs" | undefined;
83
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
84
84
  indeterminate?: boolean | undefined;
85
85
  striped?: boolean | undefined;
86
86
  animated?: boolean | undefined;
@@ -89,7 +89,7 @@ export declare const progressVariants: ((props?: {
89
89
  }) | undefined) => string;
90
90
  circularLabel: (props?: ({
91
91
  intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
92
- size?: "sm" | "md" | "lg" | "xs" | undefined;
92
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
93
93
  indeterminate?: boolean | undefined;
94
94
  striped?: boolean | undefined;
95
95
  animated?: boolean | undefined;
@@ -42,7 +42,7 @@ export declare const radioGroupVariants: ((props?: {
42
42
  };
43
43
  export declare const radioItemVariants: ((props?: {
44
44
  tier?: "commit" | "modify" | undefined;
45
- size?: "sm" | "md" | "lg" | "xs" | undefined;
45
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
46
46
  intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
47
47
  variant?: "ghost" | "filled" | "outlined" | undefined;
48
48
  checked?: boolean | undefined;
@@ -51,7 +51,7 @@ export declare const radioItemVariants: ((props?: {
51
51
  } | undefined) => {
52
52
  item: (props?: ({
53
53
  tier?: "commit" | "modify" | undefined;
54
- size?: "sm" | "md" | "lg" | "xs" | undefined;
54
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
55
55
  intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
56
56
  variant?: "ghost" | "filled" | "outlined" | undefined;
57
57
  checked?: boolean | undefined;
@@ -62,7 +62,7 @@ export declare const radioItemVariants: ((props?: {
62
62
  }) | undefined) => string;
63
63
  indicator: (props?: ({
64
64
  tier?: "commit" | "modify" | undefined;
65
- size?: "sm" | "md" | "lg" | "xs" | undefined;
65
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
66
66
  intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
67
67
  variant?: "ghost" | "filled" | "outlined" | undefined;
68
68
  checked?: boolean | undefined;
@@ -73,7 +73,7 @@ export declare const radioItemVariants: ((props?: {
73
73
  }) | undefined) => string;
74
74
  dot: (props?: ({
75
75
  tier?: "commit" | "modify" | undefined;
76
- size?: "sm" | "md" | "lg" | "xs" | undefined;
76
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
77
77
  intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
78
78
  variant?: "ghost" | "filled" | "outlined" | undefined;
79
79
  checked?: boolean | undefined;
@@ -84,7 +84,7 @@ export declare const radioItemVariants: ((props?: {
84
84
  }) | undefined) => string;
85
85
  label: (props?: ({
86
86
  tier?: "commit" | "modify" | undefined;
87
- size?: "sm" | "md" | "lg" | "xs" | undefined;
87
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
88
88
  intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
89
89
  variant?: "ghost" | "filled" | "outlined" | undefined;
90
90
  checked?: boolean | undefined;
@@ -95,7 +95,7 @@ export declare const radioItemVariants: ((props?: {
95
95
  }) | undefined) => string;
96
96
  description: (props?: ({
97
97
  tier?: "commit" | "modify" | undefined;
98
- size?: "sm" | "md" | "lg" | "xs" | undefined;
98
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
99
99
  intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
100
100
  variant?: "ghost" | "filled" | "outlined" | undefined;
101
101
  checked?: boolean | undefined;