@cjlapao/ui-kit-vue 0.2.0 → 0.2.3

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 (216) hide show
  1. package/dist/index.cjs +18 -25
  2. package/dist/index.css +37732 -13285
  3. package/dist/index.js +31192 -21036
  4. package/dist/types/common/chat/markdown.d.ts +8 -0
  5. package/dist/types/common/chat/storage.d.ts +48 -0
  6. package/dist/types/common/chat/stream.d.ts +43 -0
  7. package/dist/types/common/chat/types.d.ts +143 -0
  8. package/dist/types/common/connectionFlow/header.d.ts +56 -0
  9. package/dist/types/common/connectionFlow/icons.d.ts +15 -0
  10. package/dist/types/common/connectionFlow/index.d.ts +6 -0
  11. package/dist/types/common/connectionFlow/layout.d.ts +73 -0
  12. package/dist/types/common/connectionFlow/measure.d.ts +94 -0
  13. package/dist/types/common/connectionFlow/paint.d.ts +36 -0
  14. package/dist/types/common/connectionFlow/router.d.ts +131 -0
  15. package/dist/types/common/connectionFlow/tones.d.ts +79 -0
  16. package/dist/types/common/connectionFlow/types.d.ts +394 -0
  17. package/dist/types/common/gantt/drag.d.ts +221 -0
  18. package/dist/types/common/gantt/index.d.ts +11 -0
  19. package/dist/types/common/gantt/layout.d.ts +133 -0
  20. package/dist/types/common/gantt/sample.d.ts +15 -0
  21. package/dist/types/common/gantt/time.d.ts +77 -0
  22. package/dist/types/common/gantt/tokens.d.ts +73 -0
  23. package/dist/types/common/gantt/types.d.ts +216 -0
  24. package/dist/types/common/i18n/builtIn/de.d.ts +2 -0
  25. package/dist/types/common/i18n/builtIn/en.d.ts +2 -0
  26. package/dist/types/common/i18n/builtIn/es.d.ts +2 -0
  27. package/dist/types/common/i18n/builtIn/fr.d.ts +2 -0
  28. package/dist/types/common/i18n/builtIn/index.d.ts +15 -0
  29. package/dist/types/common/i18n/builtIn/pt.d.ts +2 -0
  30. package/dist/types/common/i18n/catalog.d.ts +32 -0
  31. package/dist/types/common/i18n/createI18n.d.ts +2 -0
  32. package/dist/types/common/i18n/dates.d.ts +12 -0
  33. package/dist/types/common/i18n/detect.d.ts +29 -0
  34. package/dist/types/common/i18n/icu.d.ts +36 -0
  35. package/dist/types/common/i18n/index.d.ts +10 -0
  36. package/dist/types/common/i18n/provider.d.ts +7 -0
  37. package/dist/types/common/i18n/storage.d.ts +8 -0
  38. package/dist/types/common/i18n/types.d.ts +64 -0
  39. package/dist/types/common/i18n/warn.d.ts +5 -0
  40. package/dist/types/common/theme/Theme.d.ts +941 -3
  41. package/dist/types/common/theme/glass.d.ts +90 -11
  42. package/dist/types/common/theme/randomThemeColor.d.ts +4 -4
  43. package/dist/types/common/tooltip/placement.d.ts +103 -0
  44. package/dist/types/common/tooltip/tokens.d.ts +40 -0
  45. package/dist/types/common/types/TableSettings.d.ts +15 -0
  46. package/dist/types/common/types/Variables.d.ts +71 -1
  47. package/dist/types/common/utils/dates.d.ts +113 -0
  48. package/dist/types/common/utils/gravatar.d.ts +0 -10
  49. package/dist/types/common/utils/safeStorage.d.ts +28 -0
  50. package/dist/types/common/utils/sanitizeSvg.d.ts +44 -0
  51. package/dist/types/common/utils/smartVariables.d.ts +74 -18
  52. package/dist/types/common/utils/tableStorage.d.ts +38 -0
  53. package/dist/types/vue/src/chat/index.d.ts +4 -0
  54. package/dist/types/vue/src/components/AccessMatrix.test.d.ts +1 -0
  55. package/dist/types/vue/src/components/AccessMatrix.vue.d.ts +23 -1
  56. package/dist/types/vue/src/components/Accordion.test.d.ts +1 -0
  57. package/dist/types/vue/src/components/Accordion.vue.d.ts +42 -28
  58. package/dist/types/vue/src/components/ActivityFeed.test.d.ts +1 -0
  59. package/dist/types/vue/src/components/ActivityFeed.vue.d.ts +141 -0
  60. package/dist/types/vue/src/components/Alert.test.d.ts +1 -0
  61. package/dist/types/vue/src/components/Alert.vue.d.ts +59 -2
  62. package/dist/types/vue/src/components/ApiErrorState.test.d.ts +1 -0
  63. package/dist/types/vue/src/components/ApiErrorState.vue.d.ts +28 -8
  64. package/dist/types/vue/src/components/AppDivider.vue.d.ts +53 -4
  65. package/dist/types/vue/src/components/Badge.vue.d.ts +45 -13
  66. package/dist/types/vue/src/components/BadgeIcon.vue.d.ts +1 -1
  67. package/dist/types/vue/src/components/BreakdownCard.test.d.ts +1 -0
  68. package/dist/types/vue/src/components/BreakdownCard.vue.d.ts +81 -0
  69. package/dist/types/vue/src/components/Button.vue.d.ts +22 -11
  70. package/dist/types/vue/src/components/Chat.test.d.ts +1 -0
  71. package/dist/types/vue/src/components/Chat.vue.d.ts +80 -0
  72. package/dist/types/vue/src/components/Checkbox.test.d.ts +1 -0
  73. package/dist/types/vue/src/components/Checkbox.vue.d.ts +44 -29
  74. package/dist/types/vue/src/components/CollapsiblePanel.vue.d.ts +5 -5
  75. package/dist/types/vue/src/components/ColorSwatches.test.d.ts +1 -0
  76. package/dist/types/vue/src/components/ColorSwatches.vue.d.ts +42 -0
  77. package/dist/types/vue/src/components/Combobox.test.d.ts +1 -0
  78. package/dist/types/vue/src/components/Combobox.vue.d.ts +61 -12
  79. package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlow.vue.d.ts +153 -17
  80. package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowCanvas.vue.d.ts +28 -0
  81. package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowHeader.vue.d.ts +33 -0
  82. package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowNodeBody.vue.d.ts +32 -0
  83. package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowSkeleton.vue.d.ts +18 -0
  84. package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowSvg.vue.d.ts +52 -0
  85. package/dist/types/vue/src/components/ConnectionFlow/connectionFlow.test.d.ts +1 -0
  86. package/dist/types/vue/src/components/ConnectionFlow/index.d.ts +11 -4
  87. package/dist/types/vue/src/components/CustomIcon.vue.d.ts +35 -11
  88. package/dist/types/vue/src/components/DetailItemCard.vue.d.ts +37 -5
  89. package/dist/types/vue/src/components/DropdownButton.vue.d.ts +3 -3
  90. package/dist/types/vue/src/components/DropdownMenu.test.d.ts +1 -0
  91. package/dist/types/vue/src/components/DropdownMenu.vue.d.ts +1 -1
  92. package/dist/types/vue/src/components/DynamicFormField.test.d.ts +1 -0
  93. package/dist/types/vue/src/components/DynamicFormField.vue.d.ts +61 -5
  94. package/dist/types/vue/src/components/DynamicImg.vue.d.ts +28 -3
  95. package/dist/types/vue/src/components/EmptyState.test.d.ts +1 -0
  96. package/dist/types/vue/src/components/EmptyState.vue.d.ts +104 -24
  97. package/dist/types/vue/src/components/FormField.vue.d.ts +2 -1
  98. package/dist/types/vue/src/components/Gantt/Gantt.test.d.ts +1 -0
  99. package/dist/types/vue/src/components/Gantt/Gantt.vue.d.ts +160 -0
  100. package/dist/types/vue/src/components/Gantt/GanttBodyRow.vue.d.ts +78 -0
  101. package/dist/types/vue/src/components/Gantt/GanttCell.vue.d.ts +28 -0
  102. package/dist/types/vue/src/components/Gantt/GanttLinkLayer.vue.d.ts +22 -0
  103. package/dist/types/vue/src/components/Gantt/GanttScale.vue.d.ts +7 -0
  104. package/dist/types/vue/src/components/Gantt/GanttTaskBar.vue.d.ts +53 -0
  105. package/dist/types/vue/src/components/Gantt/GanttToolbar.vue.d.ts +22 -0
  106. package/dist/types/vue/src/components/Gantt/index.d.ts +18 -0
  107. package/dist/types/vue/src/components/Gantt/labels.d.ts +3 -0
  108. package/dist/types/vue/src/components/Gantt/types.d.ts +11 -0
  109. package/dist/types/vue/src/components/Gantt/useGanttDrag.d.ts +105 -0
  110. package/dist/types/vue/src/components/GlassBackground.vue.d.ts +4 -3
  111. package/dist/types/vue/src/components/GlassPanel.vue.d.ts +2 -2
  112. package/dist/types/vue/src/components/HeaderGroup.vue.d.ts +19 -1
  113. package/dist/types/vue/src/components/HelpButton.test.d.ts +1 -0
  114. package/dist/types/vue/src/components/HelpButton.vue.d.ts +15 -6
  115. package/dist/types/vue/src/components/Hero.test.d.ts +1 -0
  116. package/dist/types/vue/src/components/Hero.vue.d.ts +52 -31
  117. package/dist/types/vue/src/components/IconButton.vue.d.ts +12 -6
  118. package/dist/types/vue/src/components/InfiniteScrollPanel.vue.d.ts +61 -14
  119. package/dist/types/vue/src/components/InfoRow.test.d.ts +1 -0
  120. package/dist/types/vue/src/components/InfoRow.vue.d.ts +67 -37
  121. package/dist/types/vue/src/components/InlinePanel.vue.d.ts +12 -18
  122. package/dist/types/vue/src/components/Input.test.d.ts +1 -0
  123. package/dist/types/vue/src/components/Input.vue.d.ts +42 -13
  124. package/dist/types/vue/src/components/InputGroup.test.d.ts +1 -0
  125. package/dist/types/vue/src/components/InputGroup.vue.d.ts +20 -5
  126. package/dist/types/vue/src/components/Loader.test.d.ts +1 -0
  127. package/dist/types/vue/src/components/Loader.vue.d.ts +30 -11
  128. package/dist/types/vue/src/components/MarkdownEditor.vue.d.ts +1 -1
  129. package/dist/types/vue/src/components/MetricBar.test.d.ts +1 -0
  130. package/dist/types/vue/src/components/MetricBar.vue.d.ts +16 -5
  131. package/dist/types/vue/src/components/Modal.vue.d.ts +18 -19
  132. package/dist/types/vue/src/components/MultiProgressBar.vue.d.ts +15 -2
  133. package/dist/types/vue/src/components/MultiSelectPills.test.d.ts +1 -0
  134. package/dist/types/vue/src/components/MultiSelectPills.vue.d.ts +47 -43
  135. package/dist/types/vue/src/components/MultiToggle.test.d.ts +1 -0
  136. package/dist/types/vue/src/components/MultiToggle.vue.d.ts +33 -6
  137. package/dist/types/vue/src/components/NotificationModal.test.d.ts +1 -0
  138. package/dist/types/vue/src/components/NotificationModal.vue.d.ts +19 -2
  139. package/dist/types/vue/src/components/PageHeader.test.d.ts +1 -0
  140. package/dist/types/vue/src/components/PageHeader.vue.d.ts +18 -0
  141. package/dist/types/vue/src/components/PagedPanel.test.d.ts +1 -0
  142. package/dist/types/vue/src/components/PagedPanel.vue.d.ts +39 -11
  143. package/dist/types/vue/src/components/Panel.vue.d.ts +18 -9
  144. package/dist/types/vue/src/components/PasswordInput.test.d.ts +1 -0
  145. package/dist/types/vue/src/components/PasswordInput.vue.d.ts +20 -3
  146. package/dist/types/vue/src/components/Picker.test.d.ts +1 -0
  147. package/dist/types/vue/src/components/Picker.vue.d.ts +3 -3
  148. package/dist/types/vue/src/components/Pill.vue.d.ts +63 -5
  149. package/dist/types/vue/src/components/Progress.test.d.ts +1 -0
  150. package/dist/types/vue/src/components/Progress.vue.d.ts +60 -11
  151. package/dist/types/vue/src/components/ProgressSpinner.test.d.ts +1 -0
  152. package/dist/types/vue/src/components/ProgressSpinner.vue.d.ts +46 -0
  153. package/dist/types/vue/src/components/ScrollArea.test.d.ts +1 -0
  154. package/dist/types/vue/src/components/ScrollArea.vue.d.ts +52 -0
  155. package/dist/types/vue/src/components/SearchBar.vue.d.ts +2 -3
  156. package/dist/types/vue/src/components/Section.vue.d.ts +1 -1
  157. package/dist/types/vue/src/components/SectionCard.vue.d.ts +2 -2
  158. package/dist/types/vue/src/components/Select.test.d.ts +1 -0
  159. package/dist/types/vue/src/components/Select.vue.d.ts +41 -16
  160. package/dist/types/vue/src/components/SidePanel.vue.d.ts +1 -1
  161. package/dist/types/vue/src/components/SmartInput.vue.d.ts +49 -18
  162. package/dist/types/vue/src/components/SmartValue.vue.d.ts +20 -13
  163. package/dist/types/vue/src/components/SmartVariableBadge.vue.d.ts +17 -0
  164. package/dist/types/vue/src/components/Spinner.test.d.ts +1 -0
  165. package/dist/types/vue/src/components/Spinner.vue.d.ts +12 -5
  166. package/dist/types/vue/src/components/SplitView.vue.d.ts +6 -6
  167. package/dist/types/vue/src/components/StartupStageStepper.vue.d.ts +1 -1
  168. package/dist/types/vue/src/components/StatChartTile.vue.d.ts +5 -0
  169. package/dist/types/vue/src/components/StatCountTile.vue.d.ts +5 -1
  170. package/dist/types/vue/src/components/StatGraphTile.vue.d.ts +1 -1
  171. package/dist/types/vue/src/components/StatTile.test.d.ts +1 -0
  172. package/dist/types/vue/src/components/StatTile.vue.d.ts +5 -1
  173. package/dist/types/vue/src/components/StatusSpinner.test.d.ts +1 -0
  174. package/dist/types/vue/src/components/StatusSpinner.vue.d.ts +10 -5
  175. package/dist/types/vue/src/components/Stepper.test.d.ts +1 -0
  176. package/dist/types/vue/src/components/Stepper.vue.d.ts +62 -25
  177. package/dist/types/vue/src/components/Table.test.d.ts +1 -0
  178. package/dist/types/vue/src/components/Table.vue.d.ts +67 -14
  179. package/dist/types/vue/src/components/Tabs.vue.d.ts +20 -3
  180. package/dist/types/vue/src/components/TagPicker.vue.d.ts +3 -3
  181. package/dist/types/vue/src/components/Textarea.vue.d.ts +8 -5
  182. package/dist/types/vue/src/components/TimelinePanel/TimelinePanel.vue.d.ts +4 -4
  183. package/dist/types/vue/src/components/Toggle.vue.d.ts +4 -4
  184. package/dist/types/vue/src/components/Toolbar.test.d.ts +1 -0
  185. package/dist/types/vue/src/components/Toolbar.vue.d.ts +62 -0
  186. package/dist/types/vue/src/components/Tooltip.test.d.ts +1 -0
  187. package/dist/types/vue/src/components/Tooltip.vue.d.ts +20 -3
  188. package/dist/types/vue/src/components/TooltipWrapper.vue.d.ts +24 -3
  189. package/dist/types/vue/src/components/TreeView/TreeFlowSvg.vue.d.ts +5 -5
  190. package/dist/types/vue/src/components/TreeView/TreeItemRow.vue.d.ts +2 -2
  191. package/dist/types/vue/src/components/TreeView/TreeView.vue.d.ts +4 -4
  192. package/dist/types/vue/src/components/UserAvatar.test.d.ts +1 -0
  193. package/dist/types/vue/src/components/UserAvatar.vue.d.ts +56 -6
  194. package/dist/types/vue/src/components/VariablePicker.vue.d.ts +23 -6
  195. package/dist/types/vue/src/components/__dbg.test.d.ts +1 -0
  196. package/dist/types/vue/src/components/index.d.ts +50 -31
  197. package/dist/types/vue/src/components/internal/InfoRowContent.vue.d.ts +52 -0
  198. package/dist/types/vue/src/components/internal/PagedPanelContent.vue.d.ts +47 -0
  199. package/dist/types/vue/src/connectionFlow/index.d.ts +1 -0
  200. package/dist/types/vue/src/contexts/IconContext.d.ts +8 -3
  201. package/dist/types/vue/src/i18n/I18nContext.d.ts +14 -0
  202. package/dist/types/vue/src/i18n/I18nProvider.test.d.ts +2 -0
  203. package/dist/types/vue/src/i18n/I18nProvider.vue.d.ts +35 -0
  204. package/dist/types/vue/src/i18n/index.d.ts +8 -0
  205. package/dist/types/vue/src/i18n/kit-components-spot.test.d.ts +1 -0
  206. package/dist/types/vue/src/i18n/useI18n.d.ts +44 -0
  207. package/dist/types/vue/src/index.d.ts +2 -2
  208. package/dist/types/vue/src/test-setup.d.ts +5 -0
  209. package/dist/types/vue/src/types/Icon.d.ts +11 -2
  210. package/dist/types/vue/src/types/TableSettings.d.ts +1 -0
  211. package/dist/types/vue/src/types/index.d.ts +1 -0
  212. package/dist/types/vue/src/utils/index.d.ts +1 -0
  213. package/dist/types/vue/src/utils/sanitizeSvg.d.ts +1 -0
  214. package/dist/types/vue/src/utils/tableStorage.d.ts +1 -0
  215. package/dist/ui-kit-vue.css +1 -1
  216. package/package.json +8 -3
@@ -1,5 +1,42 @@
1
1
  import type { VNode } from "vue";
2
- import type { TrueColor } from "../theme/Theme";
2
+ import type { ControlSize, InputVariant, TrueColor } from "../theme/Theme";
3
+ /** @deprecated Use `VALIDATION_STATUSES` from the theme. Kept as an alias. */
4
+ export declare const SELECT_VALIDATION_STATUSES: readonly ["none", "error", "success"];
5
+ export type SelectValidationStatus = (typeof SELECT_VALIDATION_STATUSES)[number];
6
+ /**
7
+ * The shared control scale, so a Select lines up with the Input, SearchBar and
8
+ * Button beside it. Was a local `"sm" | "md" | "lg"`.
9
+ */
10
+ export type SelectSize = ControlSize;
11
+ /**
12
+ * The same surfaces `Input`, `SearchBar` and `InputGroup` offer. A Select was
13
+ * hardcoded to `rounded-lg border border-neutral-300 bg-white shadow-sm`, so it
14
+ * was the one control in a form that could not be made to match the rest.
15
+ */
16
+ export type SelectVariant = InputVariant;
17
+ export interface SelectProps {
18
+ modelValue?: string;
19
+ /** @default "md" */
20
+ size?: SelectSize;
21
+ /** Accent colour for the focus border, ring and icon highlight. */
22
+ tone?: TrueColor;
23
+ /** Alias for `tone`, matching `Input` and `SearchBar`. */
24
+ color?: TrueColor;
25
+ /** Visual surface style. @default "flat" */
26
+ variant?: SelectVariant;
27
+ /** @default "none" */
28
+ validationStatus?: SelectValidationStatus;
29
+ placeholder?: string;
30
+ leadingIcon?: string | VNode;
31
+ /** Hides the drop-down caret. Always hidden for `multiple`. */
32
+ hideCaret?: boolean;
33
+ /** Classes for the inner `<select>` element itself. */
34
+ selectClassName?: string;
35
+ /** Drops the surface entirely — used by `InputGroup`. */
36
+ unstyled?: boolean;
37
+ disabled?: boolean;
38
+ multiple?: boolean;
39
+ }
3
40
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SelectProps, {
4
41
  el: import("vue").Ref<HTMLSelectElement | null, HTMLSelectElement | null>;
5
42
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -9,8 +46,10 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SelectProp
9
46
  onChange?: ((event: Event) => any) | undefined;
10
47
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
11
48
  }>, {
12
- tone: TrueColor;
13
49
  size: SelectSize;
50
+ disabled: boolean;
51
+ variant: SelectVariant;
52
+ multiple: boolean;
14
53
  validationStatus: SelectValidationStatus;
15
54
  unstyled: boolean;
16
55
  hideCaret: boolean;
@@ -20,20 +59,6 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SelectProp
20
59
  default?: (props: {}) => any;
21
60
  }>;
22
61
  export default _default;
23
- type SelectSize = "sm" | "md" | "lg";
24
- type SelectValidationStatus = "none" | "error" | "success";
25
- export interface SelectProps {
26
- modelValue?: string;
27
- size?: SelectSize;
28
- tone?: TrueColor;
29
- validationStatus?: SelectValidationStatus;
30
- placeholder?: string;
31
- leadingIcon?: string | VNode;
32
- hideCaret?: boolean;
33
- unstyled?: boolean;
34
- disabled?: boolean;
35
- multiple?: boolean;
36
- }
37
62
  type __VLS_WithSlots<T, S> = T & {
38
63
  new (): {
39
64
  $slots: S;
@@ -29,8 +29,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SidePanelP
29
29
  }, string, import("vue").PublicProps, Readonly<SidePanelProps> & Readonly<{
30
30
  onClose?: (() => any) | undefined;
31
31
  }>, {
32
- color: TrueColor;
33
32
  width: number;
33
+ color: TrueColor;
34
34
  maxWidth: number;
35
35
  minWidth: number;
36
36
  resizable: boolean;
@@ -1,26 +1,57 @@
1
- import type { CapsuleBlueprintParameter } from "../types/CapsuleBlueprint";
1
+ import type { SmartVariableGroup, SmartVariableResolver } from "../types/Variables";
2
+ import type { InputVariant, TrueColor } from "../theme/Theme";
3
+ import type { SmartViewMode } from "./SmartVariableBadge.vue";
4
+ /** `Input`'s three-step scale, so the two line up when stacked. */
5
+ export type SmartInputSize = "sm" | "md" | "lg";
2
6
  export interface SmartInputProps {
3
- modelValue: string;
7
+ value: string;
4
8
  placeholder?: string;
5
- globalParameters?: CapsuleBlueprintParameter[];
6
- serviceNames?: string[];
7
- context?: {
8
- slug?: string;
9
- enable_https?: boolean;
10
- };
9
+ /**
10
+ * The variable groups offered by the picker. Each group's `id` becomes the
11
+ * token's middle segment, so the taxonomy is entirely the caller's.
12
+ */
13
+ groups?: SmartVariableGroup[];
14
+ /**
15
+ * Turns a token into a display value. Defaults to a lookup over `groups`;
16
+ * supply your own for derived or environment-dependent values.
17
+ */
18
+ resolve?: SmartVariableResolver;
19
+ /** Renders a textarea instead of a single-line field. */
11
20
  multiline?: boolean;
21
+ /** Rows for the multiline field. @default 4 */
22
+ rows?: number;
23
+ disabled?: boolean;
24
+ /** @default "md" */
25
+ size?: SmartInputSize;
26
+ /** Surface treatment, shared with `Input`, `Textarea` and `SearchBar`. */
27
+ variant?: InputVariant;
28
+ /** Accent colour for focus and the picker trigger. @default "blue" */
29
+ tone?: TrueColor;
30
+ /** Which view the preview opens in. @default "token" */
31
+ defaultViewMode?: SmartViewMode;
32
+ /** Typing the opening `{{` opens the picker. @default true */
33
+ autocomplete?: boolean;
34
+ /** Marks tokens that name no known variable, and counts them. @default true */
35
+ flagMissing?: boolean;
36
+ ariaLabel?: string;
12
37
  }
13
- declare const _default: import("vue").DefineComponent<SmartInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
- "update:modelValue": (value: string) => any;
38
+ declare const _default: import("vue").DefineComponent<SmartInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
39
+ change: (value: string) => any;
40
+ "update:value": (value: string) => any;
15
41
  }, string, import("vue").PublicProps, Readonly<SmartInputProps> & Readonly<{
16
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
42
+ onChange?: ((value: string) => any) | undefined;
43
+ "onUpdate:value"?: ((value: string) => any) | undefined;
17
44
  }>, {
18
- modelValue: string;
19
- globalParameters: CapsuleBlueprintParameter[];
20
- serviceNames: string[];
21
- context: {
22
- slug?: string;
23
- enable_https?: boolean;
24
- };
45
+ size: SmartInputSize;
46
+ tone: TrueColor;
47
+ disabled: boolean;
48
+ value: string;
49
+ variant: InputVariant;
50
+ autocomplete: boolean;
51
+ rows: number;
52
+ groups: SmartVariableGroup[];
53
+ flagMissing: boolean;
54
+ multiline: boolean;
55
+ defaultViewMode: SmartViewMode;
25
56
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
57
  export default _default;
@@ -1,20 +1,27 @@
1
- import type { CapsuleBlueprintParameter } from "../types/CapsuleBlueprint";
1
+ import type { SmartVariableGroup, SmartVariableResolver } from "../types/Variables";
2
+ import type { TrueColor } from "../theme/Theme";
3
+ import type { SmartViewMode } from "./SmartVariableBadge.vue";
2
4
  export interface SmartValueProps {
3
5
  value: string;
4
- globalParameters?: CapsuleBlueprintParameter[];
5
- serviceNames?: string[];
6
- context?: {
7
- slug?: string;
8
- enable_https?: boolean;
9
- };
6
+ /** The variable groups the tokens are resolved against. */
7
+ groups?: SmartVariableGroup[];
8
+ /** Turns a token into a display value. Defaults to a lookup over `groups`. */
9
+ resolve?: SmartVariableResolver;
10
+ /** Which view to open in. @default "token" */
11
+ defaultViewMode?: SmartViewMode;
12
+ /** Marks tokens that name no known variable. @default true */
13
+ flagMissing?: boolean;
14
+ /** Accent colour for the toggle. @default "blue" */
15
+ tone?: TrueColor;
16
+ /** Keeps the toggle visible instead of revealing it on hover. */
17
+ alwaysShowToggle?: boolean;
10
18
  }
11
19
  declare const _default: import("vue").DefineComponent<SmartValueProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SmartValueProps> & Readonly<{}>, {
20
+ tone: TrueColor;
12
21
  value: string;
13
- globalParameters: CapsuleBlueprintParameter[];
14
- serviceNames: string[];
15
- context: {
16
- slug?: string;
17
- enable_https?: boolean;
18
- };
22
+ groups: SmartVariableGroup[];
23
+ flagMissing: boolean;
24
+ defaultViewMode: SmartViewMode;
25
+ alwaysShowToggle: boolean;
19
26
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
27
  export default _default;
@@ -0,0 +1,17 @@
1
+ import type { SmartVariable, SmartVariableGroup, SmartVariableResolver } from "../types/Variables";
2
+ /** How a token is shown: as itself, or as what it resolves to. */
3
+ export type SmartViewMode = "token" | "value";
4
+ export interface SmartVariableBadgeProps {
5
+ variable: SmartVariable;
6
+ groups?: SmartVariableGroup[];
7
+ resolve?: SmartVariableResolver;
8
+ mode?: SmartViewMode;
9
+ /** Marks tokens that name no known variable, even in token mode. */
10
+ flagMissing?: boolean;
11
+ }
12
+ declare const _default: import("vue").DefineComponent<SmartVariableBadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SmartVariableBadgeProps> & Readonly<{}>, {
13
+ mode: SmartViewMode;
14
+ groups: SmartVariableGroup[];
15
+ flagMissing: boolean;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,21 +1,28 @@
1
- import type { TrueColor } from "../theme/Theme";
2
- export type SpinnerSize = "xs" | "sm" | "md" | "lg" | "xl";
1
+ import type { ControlSize, TrueColor } from "../theme/Theme";
2
+ /**
3
+ * The shared control scale, so a spinner lines up with the Button next to it
4
+ * instead of speaking its own size language.
5
+ */
6
+ export type SpinnerSize = ControlSize;
3
7
  export type SpinnerColor = TrueColor;
4
- export type SpinnerVariant = "solid" | "segments";
5
- export type SpinnerThickness = "thin" | "normal" | "thick";
8
+ export declare const SPINNER_VARIANTS: readonly ["solid", "segments"];
9
+ export type SpinnerVariant = (typeof SPINNER_VARIANTS)[number];
10
+ export declare const SPINNER_THICKNESSES: readonly ["thin", "normal", "thick"];
11
+ export type SpinnerThickness = (typeof SPINNER_THICKNESSES)[number];
6
12
  export interface SpinnerProps {
7
13
  size?: SpinnerSize;
8
14
  color?: SpinnerColor;
9
15
  variant?: SpinnerVariant;
10
16
  thickness?: SpinnerThickness;
17
+ /** Visible text beside the ring. Also announced — the ring alone reads as "Loading". */
11
18
  label?: string;
12
19
  }
13
20
  declare const _default: import("vue").DefineComponent<SpinnerProps, {
14
21
  el: import("vue").Ref<HTMLSpanElement | null, HTMLSpanElement | null>;
15
22
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SpinnerProps> & Readonly<{}>, {
23
+ size: SpinnerSize;
16
24
  color: SpinnerColor;
17
25
  variant: SpinnerVariant;
18
- size: SpinnerSize;
19
26
  thickness: SpinnerThickness;
20
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
28
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import type { VNodeChild } from "vue";
2
- import type { TrueColor } from "../theme/Theme";
2
+ import { type TrueColor } from "../theme/Theme";
3
3
  import type { IconName } from "../icons/registry";
4
4
  import type { HelpButtonProps } from "./HelpButton.vue";
5
5
  import type { PanelDecoration, PanelVariant } from "./Panel.vue";
@@ -154,26 +154,26 @@ export interface SplitViewProps {
154
154
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SplitViewProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
155
155
  change: (id: string, item: SplitViewItem) => any;
156
156
  "update:modelValue": (id: string) => any;
157
+ retry: () => any;
157
158
  "update:collapsed": (collapsed: boolean) => any;
158
159
  collapsedChange: (collapsed: boolean) => any;
159
160
  "update:expandedValue": (id: string | undefined) => any;
160
161
  expand: (id: string, item: SplitViewItem) => any;
161
- retry: () => any;
162
162
  }, string, import("vue").PublicProps, Readonly<SplitViewProps> & Readonly<{
163
163
  onChange?: ((id: string, item: SplitViewItem) => any) | undefined;
164
164
  "onUpdate:modelValue"?: ((id: string) => any) | undefined;
165
+ onRetry?: (() => any) | undefined;
165
166
  "onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
166
167
  onCollapsedChange?: ((collapsed: boolean) => any) | undefined;
167
168
  "onUpdate:expandedValue"?: ((id: string | undefined) => any) | undefined;
168
169
  onExpand?: ((id: string, item: SplitViewItem) => any) | undefined;
169
- onRetry?: (() => any) | undefined;
170
170
  }>, {
171
- color: TrueColor;
172
- size: SplitViewSize;
173
- loading: boolean;
174
171
  error: string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
175
172
  [key: string]: any;
176
173
  }> | import("vue").VNodeArrayChildren | null;
174
+ size: SplitViewSize;
175
+ loading: boolean;
176
+ color: TrueColor;
177
177
  borderLeft: boolean;
178
178
  searchPlaceholder: string;
179
179
  collapsed: boolean;
@@ -16,9 +16,9 @@ declare const _default: import("vue").DefineComponent<StartupStageStepperProps,
16
16
  }, string, import("vue").PublicProps, Readonly<StartupStageStepperProps> & Readonly<{
17
17
  onStageSelect?: ((stage: StartupStage) => any) | undefined;
18
18
  }>, {
19
- variant: "minimal" | "panel";
20
19
  title: string;
21
20
  size: StartupStageStepperSize;
21
+ variant: "minimal" | "panel";
22
22
  showHistoryToggle: boolean;
23
23
  defaultShowHistory: boolean;
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -5,6 +5,11 @@ export interface StatChartItem {
5
5
  value: number;
6
6
  /** Omit to auto-assign from the theme palette. */
7
7
  color?: TrueColor;
8
+ /**
9
+ * @deprecated Never safelisted. The class was built from two interpolations
10
+ * (`text-${color}-${intensity}`), and only the `-500` step is emitted for
11
+ * every tone — any other value silently rendered no colour at all.
12
+ */
8
13
  intensity?: string;
9
14
  onClick?: () => void;
10
15
  }
@@ -23,12 +23,16 @@ export interface StatCountTileProps {
23
23
  icon?: IconName;
24
24
  message?: string;
25
25
  onRetry?: () => void;
26
+ /**
27
+ * @deprecated Never read. The item renders as plain icon + text, so
28
+ * this was declared and ignored (§5.3).
29
+ */
26
30
  variant?: "text" | "badge";
27
31
  } | null;
28
32
  }
29
33
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<StatCountTileProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StatCountTileProps> & Readonly<{}>, {
30
- color: TrueColor;
31
34
  loading: boolean;
35
+ color: TrueColor;
32
36
  withDecoration: boolean;
33
37
  withHoverEffect: boolean;
34
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
@@ -25,8 +25,8 @@ export interface StatGraphTileProps extends Omit<StatTileProps, "body" | "progre
25
25
  maxDataPoints?: number;
26
26
  }
27
27
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<StatGraphTileProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StatGraphTileProps> & Readonly<{}>, {
28
- variant: "bar" | "sparkline";
29
28
  height: number;
29
+ variant: "bar" | "sparkline";
30
30
  showLegend: boolean;
31
31
  showAxes: boolean;
32
32
  showGrid: boolean;
@@ -0,0 +1 @@
1
+ export {};
@@ -9,6 +9,10 @@ export interface StatTileTrend {
9
9
  export interface StatTileMeta {
10
10
  text: string | number | VNode;
11
11
  icon?: IconName;
12
+ /**
13
+ * @deprecated Never read. The item renders as plain icon + text, so
14
+ * this was declared and ignored (§5.3).
15
+ */
12
16
  variant?: "text" | "badge";
13
17
  color?: TrueColor;
14
18
  }
@@ -44,8 +48,8 @@ export interface StatTileProps {
44
48
  error?: StatTileError | null;
45
49
  }
46
50
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<StatTileProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StatTileProps> & Readonly<{}>, {
47
- color: TrueColor;
48
51
  loading: boolean;
52
+ color: TrueColor;
49
53
  withDecoration: boolean;
50
54
  withHoverEffect: boolean;
51
55
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
@@ -1,17 +1,22 @@
1
- import type { TrueColor } from "../theme/Theme";
2
- export type StatusSpinnerIntent = TrueColor;
3
- export type StatusSpinnerSize = "xs" | "sm" | "md" | "lg";
1
+ import type { ControlSize, TrueColor } from "../theme/Theme";
2
+ /**
3
+ * The shared control scale, so the status circle lines up with the `Spinner`
4
+ * and the Button beside it instead of speaking its own size language.
5
+ */
6
+ export type StatusSpinnerSize = ControlSize;
7
+ export type StatusSpinnerTone = TrueColor;
4
8
  export interface StatusSpinnerProps {
5
- intent?: StatusSpinnerIntent;
9
+ tone?: StatusSpinnerTone;
6
10
  size?: StatusSpinnerSize;
7
11
  animated?: boolean;
12
+ /** Visible text beside the circle. Also announced — the circle alone reads as "Loading". */
8
13
  label?: string;
9
14
  }
10
15
  declare const _default: import("vue").DefineComponent<StatusSpinnerProps, {
11
16
  el: import("vue").Ref<HTMLSpanElement | null, HTMLSpanElement | null>;
12
17
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StatusSpinnerProps> & Readonly<{}>, {
13
18
  size: StatusSpinnerSize;
14
- intent: StatusSpinnerIntent;
19
+ tone: StatusSpinnerTone;
15
20
  animated: boolean;
16
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
22
  export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,7 +1,7 @@
1
1
  import type { VNode, VNodeChild } from "vue";
2
- import type { PanelTone } from "./Panel.vue";
3
- import type { LoaderProps } from "./Loader.vue";
2
+ import type { PanelLoaderType, PanelProps } from "./Panel.vue";
4
3
  import type { IconName } from "../icons/registry";
4
+ import type { ControlSize, Orientation, SurfaceCorner } from "../theme/Theme";
5
5
  export type StepStatus = "pending" | "active" | "completed" | "error";
6
6
  export interface StepperStep {
7
7
  id?: string;
@@ -15,49 +15,78 @@ export interface StepperStep {
15
15
  disabled?: boolean;
16
16
  }
17
17
  export type Step = StepperStep;
18
- export type StepperOrientation = "horizontal" | "vertical";
19
- export type StepperVariant = "card" | "minimal";
20
- export type StepperSize = "sm" | "md" | "lg";
18
+ export type StepperOrientation = Orientation;
21
19
  export type StepperConnector = "line" | "progress" | "none";
22
20
  export type StepperProgressBarPosition = "top" | "bottom";
23
21
  export type StepperConnectorAlign = "left" | "center" | "right";
24
- export interface StepperProps {
22
+ /**
23
+ * Shape of the step node. The Panel corner scale (`none` → `rounded-xl`) gives
24
+ * the usual card corners; `"full"` is the classic circle. @default "full"
25
+ */
26
+ export type StepperNodeCorner = SurfaceCorner | "full";
27
+ /**
28
+ * A multi-step workflow on the shared container surface.
29
+ *
30
+ * It renders `Panel` (like `Accordion`), so `variant`, `tone`, `corner`,
31
+ * `padding` and every glass prop come from the same scales as every other
32
+ * card. The Vue kit has no surface-text provider, so the copy, hover wash and
33
+ * recessed fill are read straight from the shared theme with this component's
34
+ * own `variant`/`tone` — the same call `Panel` makes internally.
35
+ *
36
+ * `size` is the shared `ControlSize` scale and `variant` the shared surface
37
+ * family; the old local `"card" | "minimal"` and `"sm" | "md" | "lg"` unions
38
+ * are gone.
39
+ */
40
+ /**
41
+ * How the Stepper shows loading. "spinner"/"progress" overlay the node (and the
42
+ * Panel when the whole stepper loads); "skeleton" replaces the content with
43
+ * pulsing lines instead of a spinning overlay.
44
+ */
45
+ export type StepperLoaderType = PanelLoaderType | "skeleton";
46
+ export interface StepperProps extends Omit<PanelProps, "title" | "subtitle" | "actions" | "loaderType"> {
47
+ /** @default "spinner" */
48
+ loaderType?: StepperLoaderType;
25
49
  steps: StepperStep[];
26
50
  currentIndex?: number;
27
51
  currentStepId?: string;
28
52
  defaultCurrentIndex?: number;
29
53
  defaultCurrentStepId?: string;
30
54
  completedStepIds?: string[];
55
+ /** @default "horizontal" */
31
56
  orientation?: StepperOrientation;
32
- variant?: StepperVariant;
33
- size?: StepperSize;
34
- tone?: PanelTone;
57
+ /** Density of the node, its type, icons and the connector. @default "md" */
58
+ size?: ControlSize;
59
+ /** Shape of the step node: a Panel corner scale or the classic circle. @default "full" */
60
+ nodeCorner?: StepperNodeCorner;
61
+ /**
62
+ * "progress" runs edge-to-edge between the node circles and fills up to
63
+ * the active step; "line" draws a static track with a breathing gap
64
+ * around every circle. Both in every orientation. @default "progress"
65
+ */
35
66
  connector?: StepperConnector;
67
+ /** @default true */
36
68
  interactive?: boolean;
37
- readOnly?: boolean;
69
+ /** @default true */
38
70
  animated?: boolean;
39
- transitionMs?: number;
40
71
  showProgressSummary?: boolean;
41
72
  showProgressBar?: boolean;
42
- progressBarPosition?: "top" | "bottom";
73
+ /** Where the progress bar/summary sits relative to the steps. @default "bottom" */
74
+ progressBarPosition?: StepperProgressBarPosition;
43
75
  progressPrecision?: number;
44
76
  progressLabel?: string | VNode;
77
+ /** Per-step actions rendered under the step's copy. */
45
78
  renderActions?: (step: StepperStep, index: number) => VNodeChild;
79
+ /** Step ids whose node shows a loader overlay (and whose content shows a skeleton). */
46
80
  loaderStepIds?: string[];
47
- loading?: boolean;
48
- loaderTitle?: string | VNode;
49
- loaderMessage?: string | VNode;
50
- loaderType?: LoaderProps["variant"];
51
- loaderProgress?: number;
52
- loaderColor?: LoaderProps["color"];
53
- wrapperClassName?: string;
54
81
  headerClassName?: string;
55
82
  stepClassName?: string;
56
83
  contentClassName?: string;
57
84
  stepMaxHeight?: number | string;
85
+ /** @default false */
58
86
  connectNodes?: boolean;
87
+ /** @default "center" */
59
88
  connectorAlign?: StepperConnectorAlign;
60
- /** Override whether the underline bar is shown beneath each step's title/subtitle. When omitted the variant default is used (`card` → true, `minimal` → false). */
89
+ /** The underline bar beneath each step's title. @default false */
61
90
  showStepUnderline?: boolean;
62
91
  }
63
92
  declare const _default: import("vue").DefineComponent<StepperProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -67,18 +96,26 @@ declare const _default: import("vue").DefineComponent<StepperProps, {}, {}, {},
67
96
  onChange?: ((index: number, stepId?: string | undefined) => any) | undefined;
68
97
  onStepClick?: ((step: StepperStep, index: number) => any) | undefined;
69
98
  }>, {
70
- tone: PanelTone;
71
- variant: StepperVariant;
72
- size: StepperSize;
99
+ interactive: boolean;
100
+ size: ControlSize;
73
101
  loading: boolean;
74
- loaderType: "spinner" | "progress";
102
+ tone: import("./index.js").TrueColor;
103
+ disabled: boolean;
104
+ variant: import("./Panel.vue").PanelVariant;
105
+ corner: import("./Panel.vue").PanelCorner;
75
106
  orientation: StepperOrientation;
107
+ animated: boolean;
108
+ padding: import("./Panel.vue").PanelPadding;
109
+ loaderType: StepperLoaderType;
110
+ scrollable: boolean;
111
+ nodeCorner: StepperNodeCorner;
76
112
  connector: StepperConnector;
77
- interactive: boolean;
78
113
  showProgressSummary: boolean;
79
114
  showProgressBar: boolean;
115
+ progressBarPosition: StepperProgressBarPosition;
80
116
  progressPrecision: number;
81
117
  connectNodes: boolean;
82
118
  connectorAlign: StepperConnectorAlign;
119
+ showStepUnderline: boolean;
83
120
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
84
121
  export default _default;
@@ -0,0 +1 @@
1
+ export {};