@antcde/component-library 0.1.25 → 0.1.26-rc.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.
Files changed (186) hide show
  1. package/README.md +2 -1
  2. package/dist/build/uno.js +40 -1
  3. package/dist/build/uno.safelist.d.ts +10 -0
  4. package/dist/build/uno.safelist.js +52 -0
  5. package/dist/build/uno.shortcuts.d.ts +27 -0
  6. package/dist/build/uno.shortcuts.js +209 -0
  7. package/dist/index.js +9020 -7853
  8. package/dist/test/vitest.js +3 -0
  9. package/dist/types/{src/components → components}/AntTourZone/_TourInfoCard.vue.d.ts +3 -2
  10. package/dist/types/components/AntTourZone/_TourRing.vue.d.ts +16 -0
  11. package/dist/types/{src/components → components}/AntTourZone/index.vue.d.ts +8 -16
  12. package/dist/types/components/BaseAntButton.vue.d.ts +9 -0
  13. package/dist/types/components/BaseAntCard.vue.d.ts +28 -0
  14. package/dist/types/components/BaseAntCreateCard.vue.d.ts +7 -0
  15. package/dist/types/{src/components → components}/BaseAntDatePicker.vue.d.ts +3 -2
  16. package/dist/types/{src/components → components}/BaseAntInput.vue.d.ts +13 -15
  17. package/dist/types/components/BaseAntLoading.vue.d.ts +3 -0
  18. package/dist/types/{src/components → components}/BaseAppCard/_BaseAppCardHint.vue.d.ts +2 -1
  19. package/dist/types/components/BaseAppCard/_BaseAppCardMedia.vue.d.ts +23 -0
  20. package/dist/types/components/BaseAppCard/_BaseAppCardTitle.vue.d.ts +6 -0
  21. package/dist/types/{src/components → components}/BaseAppCard/_BaseAppCardToolbar.vue.d.ts +3 -2
  22. package/dist/types/components/BaseAppCard/_BaseAppCardUpdate.vue.d.ts +9 -0
  23. package/dist/types/{src/components → components}/BaseAppCard/index.vue.d.ts +9 -13
  24. package/dist/types/{src/components → components}/BaseAppCardSkeleton.vue.d.ts +3 -2
  25. package/dist/types/{src/components → components}/BaseClickableIcon.vue.d.ts +2 -1
  26. package/dist/types/{src/components → components}/BaseConfirmDialog.vue.d.ts +7 -11
  27. package/dist/types/components/BaseDeleteDialog.vue.d.ts +43 -0
  28. package/dist/types/{src/components → components}/BaseDialog.vue.d.ts +7 -11
  29. package/dist/types/{src/components → components}/BaseLimitedButton.vue.d.ts +8 -12
  30. package/dist/types/{src/components → components}/BaseResizePanel.vue.d.ts +8 -12
  31. package/dist/types/{src/components → components}/BulkLabelsMenu.vue.d.ts +10 -14
  32. package/dist/types/{src/components → components}/DmsFilePicker/index.vue.d.ts +6 -7
  33. package/dist/types/{src/components → components}/FilePreviewContent/_PreviewDetails.vue.d.ts +3 -2
  34. package/dist/types/{src/components → components}/FilePreviewContent/_PreviewMeta.vue.d.ts +2 -1
  35. package/dist/types/{src/components → components}/FilePreviewContent/_PreviewUsages.vue.d.ts +2 -1
  36. package/dist/types/{src/components → components}/FilePreviewContent/index.vue.d.ts +11 -15
  37. package/dist/types/components/FilePreviewWindow/index.vue.d.ts +40 -0
  38. package/dist/types/components/FlowWindow/index.vue.d.ts +28 -0
  39. package/dist/types/components/FlowWindowContent/index.vue.d.ts +26 -0
  40. package/dist/types/components/GlobalLabelBadge.vue.d.ts +12 -0
  41. package/dist/types/{src/components → components}/RBAC/Permissions/PermissionCard.vue.d.ts +2 -1
  42. package/dist/types/components/RBAC/Permissions/PermissionsGroups.vue.d.ts +14 -0
  43. package/dist/types/{src/components → components}/RichTextEditor/_MentionPanel.vue.d.ts +3 -2
  44. package/dist/types/components/RichTextEditor/_Toolbar.vue.d.ts +7 -0
  45. package/dist/types/{src/components → components}/RichTextEditor/index.vue.d.ts +6 -6
  46. package/dist/types/{src/components → components}/StackedLabels/_LabelsMenuCard.vue.d.ts +3 -2
  47. package/dist/types/{src/components → components}/StackedLabels/index.vue.d.ts +3 -2
  48. package/dist/types/{src/components → components}/TasksFlow/components/_FlowBreadcrumb.vue.d.ts +2 -1
  49. package/dist/types/components/TasksFlow/components/_FlowEdgeConditionBooleanMode.vue.d.ts +10 -0
  50. package/dist/types/components/TasksFlow/components/_FlowEdgeConditionForm.vue.d.ts +27 -0
  51. package/dist/types/components/TasksFlow/components/_FlowEdgeConditionRow.vue.d.ts +13 -0
  52. package/dist/types/components/TasksFlow/components/_FlowEdgeConditionsDialog.vue.d.ts +14 -0
  53. package/dist/types/{src/components → components}/TasksFlow/components/_FlowEdgeDeleteDialog.vue.d.ts +4 -3
  54. package/dist/types/{src/components → components}/TasksFlow/components/_FlowEdgeLagMenu.vue.d.ts +5 -3
  55. package/dist/types/{src/components → components}/TasksFlow/components/_FlowLifecycleBar.vue.d.ts +3 -2
  56. package/dist/types/components/TasksFlow/components/_FlowSearch.vue.d.ts +6 -0
  57. package/dist/types/components/TasksFlow/components/_FlowStats.vue.d.ts +6 -0
  58. package/dist/types/{src/components → components}/TasksFlow/components/_FlowStructureTree.vue.d.ts +6 -6
  59. package/dist/types/{src/components → components}/TasksFlow/components/_FlowToolbar.vue.d.ts +3 -2
  60. package/dist/types/{src/components → components}/TasksFlow/components/_FlowTriggerMenu.vue.d.ts +2 -1
  61. package/dist/types/{src/components → components}/TasksFlow/components/_FlowVersionBar.vue.d.ts +2 -1
  62. package/dist/types/{src/components → components}/TasksFlow/components/_InsertTemplateDialog.vue.d.ts +7 -5
  63. package/dist/types/{src/components → components}/TasksFlow/components/_SubflowPanel.vue.d.ts +3 -2
  64. package/dist/types/{src/components → components}/TasksFlow/components/_VersionDiffView.vue.d.ts +5 -3
  65. package/dist/types/{src/components → components}/TasksFlow/components/_VersionPublishDialog.vue.d.ts +5 -3
  66. package/dist/types/components/TasksFlow/components/_dropzoneBackground.vue.d.ts +13 -0
  67. package/dist/types/components/TasksFlow/components/_flowEdge.vue.d.ts +7 -0
  68. package/dist/types/{src/components → components}/TasksFlow/components/_flowEditor.vue.d.ts +3 -2
  69. package/dist/types/components/TasksFlow/components/nodes/_DurationEditor.vue.d.ts +30 -0
  70. package/dist/types/{src/components → components}/TasksFlow/components/nodes/_NodeContextMenu.vue.d.ts +5 -3
  71. package/dist/types/components/TasksFlow/components/nodes/_NodeMeta.vue.d.ts +15 -0
  72. package/dist/types/components/TasksFlow/components/nodes/_UserPicker.vue.d.ts +29 -0
  73. package/dist/types/{src/components → components}/TasksFlow/components/nodes/_endpointNode.vue.d.ts +2 -1
  74. package/dist/types/components/TasksFlow/components/nodes/_swimlaneNode.vue.d.ts +7 -0
  75. package/dist/types/{src/components → components}/TasksFlow/components/nodes/_taskNode.vue.d.ts +2 -1
  76. package/dist/types/{src/components → components}/TasksFlow/components/nodes/_triggerNode.vue.d.ts +2 -1
  77. package/dist/types/components/TasksFlow/composables/__tests__/useTaskFlowDragDrop.spec.d.ts +1 -0
  78. package/dist/types/components/TasksFlow/composables/useEdgeConditionTables.d.ts +228 -0
  79. package/dist/types/components/TasksFlow/composables/useFlowEdgeConditionState.d.ts +21 -0
  80. package/dist/types/{src/components → components}/TasksFlow/composables/useTaskFlow.d.ts +3 -3
  81. package/dist/types/{src/components → components}/TasksFlow/composables/useTaskFlowEdgeConditions.d.ts +2 -2
  82. package/dist/types/{src/components → components}/TasksFlow/composables/useTaskFlowEdges.d.ts +3 -3
  83. package/dist/types/{src/components → components}/TasksFlow/index.vue.d.ts +3 -2
  84. package/dist/types/components/TasksFlow/utils/conditionOperators.d.ts +3 -0
  85. package/dist/types/{src/components → components}/UnifiedWindow/_WindowPresetMenu.vue.d.ts +2 -1
  86. package/dist/types/{src/components → components}/UnifiedWindow/_WindowTabs.vue.d.ts +2 -1
  87. package/dist/types/{src/components → components}/UnifiedWindow/index.vue.d.ts +12 -19
  88. package/dist/types/{src/components → components}/VersionPublishDialog.vue.d.ts +5 -3
  89. package/dist/types/{src/components → components}/_BaseAntInputField.vue.d.ts +11 -14
  90. package/dist/types/{src/components → components}/_BaseAntInputLabel.vue.d.ts +7 -11
  91. package/dist/types/components/form/AntActionMenu.vue.d.ts +30 -0
  92. package/dist/types/components/form/AntCheckboxCards.vue.d.ts +47 -0
  93. package/dist/types/components/form/AntDialogShell.vue.d.ts +66 -0
  94. package/dist/types/components/form/AntField.vue.d.ts +57 -0
  95. package/dist/types/components/form/AntFilterChips.types.d.ts +12 -0
  96. package/dist/types/components/form/AntFilterChips.vue.d.ts +31 -0
  97. package/dist/types/components/form/AntFilterSelect.types.d.ts +13 -0
  98. package/dist/types/components/form/AntFilterSelect.vue.d.ts +26 -0
  99. package/dist/types/components/form/AntHintBanner.vue.d.ts +36 -0
  100. package/dist/types/components/form/AntHintTip.vue.d.ts +24 -0
  101. package/dist/types/components/form/AntInput.vue.d.ts +98 -0
  102. package/dist/types/components/form/AntNumberField.vue.d.ts +32 -0
  103. package/dist/types/components/form/AntOptionPicker.types.d.ts +19 -0
  104. package/dist/types/components/form/AntOptionPicker.vue.d.ts +46 -0
  105. package/dist/types/components/form/AntPanelSection.vue.d.ts +34 -0
  106. package/dist/types/components/form/AntRadioCards.vue.d.ts +54 -0
  107. package/dist/types/components/form/AntSaveBar.vue.d.ts +70 -0
  108. package/dist/types/components/form/AntSearchField.vue.d.ts +32 -0
  109. package/dist/types/components/form/AntSectionCard.vue.d.ts +47 -0
  110. package/dist/types/components/form/AntSelect.vue.d.ts +79 -0
  111. package/dist/types/components/form/AntStatusPill.vue.d.ts +38 -0
  112. package/dist/types/components/form/AntToggle.vue.d.ts +30 -0
  113. package/dist/types/index.d.ts +79 -0
  114. package/lib/build/genSafelist.mjs +135 -0
  115. package/lib/build/qualifyIcon.ts +28 -0
  116. package/lib/build/uno.safelist.ts +52 -0
  117. package/lib/build/uno.shortcuts.ts +235 -0
  118. package/lib/build/uno.ts +41 -1
  119. package/lib/build/vuetify.ts +3 -1
  120. package/lib/test/mockVueRouter.ts +41 -1
  121. package/lib/test/vitest.ts +3 -0
  122. package/package.json +33 -30
  123. package/dist/types/src/components/AntTourZone/_TourRing.vue.d.ts +0 -15
  124. package/dist/types/src/components/BaseAntButton.vue.d.ts +0 -8
  125. package/dist/types/src/components/BaseAntCard.vue.d.ts +0 -30
  126. package/dist/types/src/components/BaseAntCreateCard.vue.d.ts +0 -6
  127. package/dist/types/src/components/BaseAntLoading.vue.d.ts +0 -2
  128. package/dist/types/src/components/BaseAppCard/_BaseAppCardMedia.vue.d.ts +0 -27
  129. package/dist/types/src/components/BaseAppCard/_BaseAppCardTitle.vue.d.ts +0 -5
  130. package/dist/types/src/components/BaseAppCard/_BaseAppCardUpdate.vue.d.ts +0 -8
  131. package/dist/types/src/components/BaseDeleteDialog.vue.d.ts +0 -48
  132. package/dist/types/src/components/FlowWindowContent/index.vue.d.ts +0 -55
  133. package/dist/types/src/components/GlobalLabelBadge.vue.d.ts +0 -11
  134. package/dist/types/src/components/RichTextEditor/_Toolbar.vue.d.ts +0 -6
  135. package/dist/types/src/components/TasksFlow/components/_FlowEdgeConditionsDialog.vue.d.ts +0 -10
  136. package/dist/types/src/components/TasksFlow/components/_FlowSearch.vue.d.ts +0 -7
  137. package/dist/types/src/components/TasksFlow/components/_FlowStats.vue.d.ts +0 -5
  138. package/dist/types/src/components/TasksFlow/components/_dropzoneBackground.vue.d.ts +0 -17
  139. package/dist/types/src/components/TasksFlow/components/_flowEdge.vue.d.ts +0 -9
  140. package/dist/types/src/components/TasksFlow/components/nodes/_DurationEditor.vue.d.ts +0 -33
  141. package/dist/types/src/components/TasksFlow/components/nodes/_NodeMeta.vue.d.ts +0 -14
  142. package/dist/types/src/components/TasksFlow/components/nodes/_UserPicker.vue.d.ts +0 -32
  143. package/dist/types/src/components/TasksFlow/components/nodes/_swimlaneNode.vue.d.ts +0 -6
  144. package/dist/types/src/index.d.ts +0 -39
  145. /package/dist/types/{src/components → components}/BaseAntInput.types.d.ts +0 -0
  146. /package/dist/types/{src/components → components}/DmsFilePicker/composables/usePickerNavigation.d.ts +0 -0
  147. /package/dist/types/{src/components → components}/DmsFilePicker/composables/usePickerUpload.d.ts +0 -0
  148. /package/dist/types/{src/components → components}/DmsFilePicker/utils/fileFormatting.d.ts +0 -0
  149. /package/dist/types/{src/components → components}/FilePreviewContent/fileFormat.d.ts +0 -0
  150. /package/dist/types/{src/components → components}/FilePreviewContent/types.d.ts +0 -0
  151. /package/dist/types/{src/components → components}/FilePreviewContent/usePreviewDetails.d.ts +0 -0
  152. /package/dist/types/{src/components → components}/RichTextEditor/_useInlineEdit.d.ts +0 -0
  153. /package/dist/types/{src/components → components}/RichTextEditor/_useMentionPicker.d.ts +0 -0
  154. /package/dist/types/{src/components → components}/TasksFlow/components/nodes/useTaskNodeState.d.ts +0 -0
  155. /package/dist/types/{src/components → components}/TasksFlow/composables/_layoutEngine.d.ts +0 -0
  156. /package/dist/types/{src/components → components}/TasksFlow/composables/useAutoLayout.d.ts +0 -0
  157. /package/dist/types/{src/components → components}/TasksFlow/composables/useCriticalPath.d.ts +0 -0
  158. /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowAutoLayout.d.ts +0 -0
  159. /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowCache.d.ts +0 -0
  160. /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowCrud.d.ts +0 -0
  161. /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowDisplayElements.d.ts +0 -0
  162. /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowEditor.d.ts +0 -0
  163. /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowEndpoints.d.ts +0 -0
  164. /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowFetch.d.ts +0 -0
  165. /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowKeyboard.d.ts +0 -0
  166. /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowLifecycle.d.ts +0 -0
  167. /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowNotifications.d.ts +0 -0
  168. /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowOperations.d.ts +0 -0
  169. /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowRealtime.d.ts +0 -0
  170. /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowSearch.d.ts +0 -0
  171. /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowStructureTree.d.ts +0 -0
  172. /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowSubflows.d.ts +0 -0
  173. /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowToolbarDrag.d.ts +0 -0
  174. /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowUsers.d.ts +0 -0
  175. /package/dist/types/{src/components → components}/TasksFlow/composables/useFlowViewport.d.ts +0 -0
  176. /package/dist/types/{src/components → components}/TasksFlow/composables/useSwimlaneLayout.d.ts +0 -0
  177. /package/dist/types/{src/components → components}/TasksFlow/composables/useTaskFlowDragDrop.d.ts +0 -0
  178. /package/dist/types/{src/components → components}/TasksFlow/composables/useTaskFlowMappers.d.ts +0 -0
  179. /package/dist/types/{src/components → components}/TasksFlow/composables/useTaskFlowTypes.d.ts +0 -0
  180. /package/dist/types/{src/components → components}/TasksFlow/composables/useTemplateVersioning.d.ts +0 -0
  181. /package/dist/types/{src/components → components}/TasksFlow/composables/useTemplateVersioningState.d.ts +0 -0
  182. /package/dist/types/{src/components → components}/TasksFlow/composables/useTriggerExecution.d.ts +0 -0
  183. /package/dist/types/{src/components → components}/UnifiedWindow/types.d.ts +0 -0
  184. /package/dist/types/{src/components → components}/UnifiedWindow/useNativeFullscreen.d.ts +0 -0
  185. /package/dist/types/{src/components → components}/UnifiedWindow/useWindowDrag.d.ts +0 -0
  186. /package/dist/types/{src/components → components}/useResizePanel.d.ts +0 -0
@@ -0,0 +1,30 @@
1
+ export interface ActionMenuItem {
2
+ value: string;
3
+ label: string;
4
+ icon?: string;
5
+ danger?: boolean;
6
+ /** Render a divider above this item (e.g. to set off a destructive action). */
7
+ divider?: boolean;
8
+ }
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
11
+ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
12
+ items: ActionMenuItem[];
13
+ triggerLabel: string;
14
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ select: (value: string) => any;
16
+ }, string, import('vue').PublicProps, Readonly<{
17
+ items: ActionMenuItem[];
18
+ triggerLabel: string;
19
+ }> & Readonly<{
20
+ onSelect?: ((value: string) => any) | undefined;
21
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
22
+ activator?: (props: {
23
+ props: any;
24
+ }) => any;
25
+ }>;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Multi-select card grid.
3
+ *
4
+ * Same construction as AntRadioCards; enforces a minimum of one selection.
5
+ *
6
+ * ── Which idiom is this? ──────────────────────────────────────────────────
7
+ * CURRENT. UnoCSS-first: native controls plus Vuetify only where it provides
8
+ * costly behaviour (overlay stack, popover anchoring, focus management).
9
+ * Owns no copy — every label arrives as a prop.
10
+ *
11
+ * The `BaseAnt*` components are the SUPERSEDED idiom: thin wrappers around
12
+ * Vuetify fields. Do not use them for new work, and do not mix the two in one
13
+ * form — the border weights and label treatments do not match.
14
+ * ─────────────────────────────────────────────────────────────────────────
15
+ */
16
+ export interface CheckboxCardOption<V extends string> {
17
+ value: V;
18
+ label: string;
19
+ icon?: string;
20
+ description?: string;
21
+ }
22
+ declare const __VLS_export: <T extends string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
23
+ props: import('vue').PublicProps & __VLS_PrettifyLocal<({
24
+ options: CheckboxCardOption<T>[];
25
+ columns?: number;
26
+ disabled?: boolean;
27
+ } & {
28
+ modelValue: T[];
29
+ }) & {
30
+ "onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
31
+ }> & (typeof globalThis extends {
32
+ __VLS_PROPS_FALLBACK: infer P;
33
+ } ? P : {});
34
+ expose: (exposed: {}) => void;
35
+ attrs: any;
36
+ slots: {};
37
+ emit: (event: "update:modelValue", value: T[]) => void;
38
+ }>) => import('vue').VNode & {
39
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
40
+ };
41
+ declare const _default: typeof __VLS_export;
42
+ export default _default;
43
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
44
+ [K in keyof T]: T[K];
45
+ } : {
46
+ [K in keyof T as K]: T[K];
47
+ }) & {};
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Dialog chrome: header, body, footer.
3
+ *
4
+ * `v-dialog` for the overlay and focus stack only; all chrome inside is markup. Provides `headerLead`, `titleExtra`, `headerEnd`, `hint` and `actions` slots.
5
+ *
6
+ * ── Which idiom is this? ──────────────────────────────────────────────────
7
+ * CURRENT. UnoCSS-first: native controls plus Vuetify only where it provides
8
+ * costly behaviour (overlay stack, popover anchoring, focus management).
9
+ * Owns no copy — every label arrives as a prop.
10
+ *
11
+ * The `BaseAnt*` components are the SUPERSEDED idiom: thin wrappers around
12
+ * Vuetify fields. Do not use them for new work, and do not mix the two in one
13
+ * form — the border weights and label treatments do not match.
14
+ * ─────────────────────────────────────────────────────────────────────────
15
+ */
16
+ type __VLS_Props = {
17
+ width?: number | string;
18
+ eyebrow?: string;
19
+ title?: string;
20
+ subtitle?: string;
21
+ persistent?: boolean;
22
+ busy?: boolean;
23
+ scrollable?: boolean;
24
+ bodyClass?: string;
25
+ /**
26
+ * Accessible name for the close button.
27
+ *
28
+ * A shared component must not own a HOST translation key, so this is a prop.
29
+ * It falls back to the host's `system.buttons.close` when that key exists —
30
+ * `te()`-guarded, the same pattern `_BaseAntInputLabel.vue` uses — so every
31
+ * existing ant-os call site keeps its translation with no change, and an app
32
+ * without that key still gets a usable name instead of an empty one.
33
+ */
34
+ closeLabel?: string;
35
+ };
36
+ type __VLS_ModelProps = {
37
+ modelValue: boolean;
38
+ };
39
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
40
+ declare var __VLS_8: {}, __VLS_10: {}, __VLS_12: {}, __VLS_19: {}, __VLS_21: {}, __VLS_23: {};
41
+ type __VLS_Slots = {} & {
42
+ headerLead?: (props: typeof __VLS_8) => any;
43
+ } & {
44
+ titleExtra?: (props: typeof __VLS_10) => any;
45
+ } & {
46
+ headerEnd?: (props: typeof __VLS_12) => any;
47
+ } & {
48
+ default?: (props: typeof __VLS_19) => any;
49
+ } & {
50
+ hint?: (props: typeof __VLS_21) => any;
51
+ } & {
52
+ actions?: (props: typeof __VLS_23) => any;
53
+ };
54
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
55
+ "update:modelValue": (value: boolean) => any;
56
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
57
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
58
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
59
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
60
+ declare const _default: typeof __VLS_export;
61
+ export default _default;
62
+ type __VLS_WithSlots<T, S> = T & {
63
+ new (): {
64
+ $slots: S;
65
+ };
66
+ };
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Label above a control, plus the one line underneath that explains or corrects it.
3
+ *
4
+ * The minimal-form building block: stack these `gap-5` (20px) inside a section.
5
+ * The label is 12px/600 in body tone with a red asterisk when required — never
6
+ * Vuetify's floating outlined label.
7
+ *
8
+ * Named because the pattern was hand-rolled in roughly thirty places across the
9
+ * store and the triggers app, each with slightly different spacing and a label
10
+ * that was 12px/500 at muted tone rather than 12px/600 at body tone.
11
+ *
12
+ * `error` wins over `hint` on the line below: a field that is wrong should say so
13
+ * where it would otherwise have been explaining itself.
14
+ *
15
+ * ── Which idiom is this? ──────────────────────────────────────────────────
16
+ * CURRENT. UnoCSS-first: native controls plus Vuetify only where it provides
17
+ * costly behaviour (overlay stack, popover anchoring, focus management).
18
+ * Owns no copy — every label arrives as a prop.
19
+ * ─────────────────────────────────────────────────────────────────────────
20
+ */
21
+ type __VLS_Props = {
22
+ label?: string;
23
+ /** Renders the red asterisk. Does not itself validate anything. */
24
+ required?: boolean;
25
+ /**
26
+ * Say "optional" beside the label, for a field a reader would otherwise assume
27
+ * is required.
28
+ *
29
+ * ⚠️ NOT the inverse of `required`, and deliberately not automatic. Most optional
30
+ * fields need no marking at all — the absence of an asterisk is enough. This is
31
+ * for the case where the surrounding form makes a field LOOK mandatory: a
32
+ * trigger's custom path sits beside a required HTTP method, and read as a pair
33
+ * the empty one reads as unfinished rather than as an override of a default that
34
+ * already works. Passed as a string so the copy stays with the caller.
35
+ */
36
+ optionalLabel?: string;
37
+ /** Hover-only nuance for this one field. Section-wide guidance is `AntHintBanner`. */
38
+ tip?: string;
39
+ /** Shown instead of `hint`, in error tone. */
40
+ error?: string | null;
41
+ hint?: string | null;
42
+ };
43
+ declare var __VLS_1: {}, __VLS_8: {};
44
+ type __VLS_Slots = {} & {
45
+ label?: (props: typeof __VLS_1) => any;
46
+ } & {
47
+ default?: (props: typeof __VLS_8) => any;
48
+ };
49
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
50
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
51
+ declare const _default: typeof __VLS_export;
52
+ export default _default;
53
+ type __VLS_WithSlots<T, S> = T & {
54
+ new (): {
55
+ $slots: S;
56
+ };
57
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Option shape for `AntFilterChips`.
3
+ *
4
+ * Its own module because `AntFilterChips` is a `generic` <script setup> carrying
5
+ * `defineOptions()`, and that combination makes a top-level export illegal (TS1184).
6
+ */
7
+ export interface FilterChipOption<T = string> {
8
+ value: T;
9
+ label: string;
10
+ /** Colour this chip in warning tone while unselected and its count is non-zero. */
11
+ attention?: boolean;
12
+ }
@@ -0,0 +1,31 @@
1
+ import { FilterChipOption } from './AntFilterChips.types';
2
+ declare const __VLS_export: <T extends string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import('vue').PublicProps & __VLS_PrettifyLocal<({
4
+ options: FilterChipOption<T>[];
5
+ /**
6
+ * Keyed by option value. A MISSING count renders no number at all, which is not
7
+ * the same as a count of 0 — an empty bucket and an uncounted one read differently.
8
+ */
9
+ counts?: Partial<Record<T, number>>;
10
+ ariaLabel?: string;
11
+ } & {
12
+ modelValue: T;
13
+ }) & {
14
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
15
+ }> & (typeof globalThis extends {
16
+ __VLS_PROPS_FALLBACK: infer P;
17
+ } ? P : {});
18
+ expose: (exposed: {}) => void;
19
+ attrs: any;
20
+ slots: {};
21
+ emit: (event: "update:modelValue", value: T) => void;
22
+ }>) => import('vue').VNode & {
23
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
24
+ };
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
27
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
28
+ [K in keyof T]: T[K];
29
+ } : {
30
+ [K in keyof T as K]: T[K];
31
+ }) & {};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Option shape for `AntFilterSelect`.
3
+ *
4
+ * Lives in its own module rather than in the component: `AntFilterSelect` needs
5
+ * `defineOptions()` to carry a component name through a `generic` <script setup>
6
+ * block, and that transform makes a top-level `export` inside the block illegal
7
+ * (TS1184). Siblings without `defineOptions` can export their option type inline.
8
+ */
9
+ export interface FilterSelectOption<T = string> {
10
+ value: T;
11
+ title: string;
12
+ prependIcon?: string;
13
+ }
@@ -0,0 +1,26 @@
1
+ import { FilterSelectOption } from './AntFilterSelect.types';
2
+ declare const __VLS_export: <T extends string | number | null>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import('vue').PublicProps & __VLS_PrettifyLocal<{
4
+ modelValue: T;
5
+ options: FilterSelectOption<T>[];
6
+ prependIcon: string;
7
+ labelPrefix: string;
8
+ } & {
9
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
10
+ }> & (typeof globalThis extends {
11
+ __VLS_PROPS_FALLBACK: infer P;
12
+ } ? P : {});
13
+ expose: (exposed: {}) => void;
14
+ attrs: any;
15
+ slots: {};
16
+ emit: (evt: "update:modelValue", value: T) => void;
17
+ }>) => import('vue').VNode & {
18
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
19
+ };
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
23
+ [K in keyof T]: T[K];
24
+ } : {
25
+ [K in keyof T as K]: T[K];
26
+ }) & {};
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Always-on guidance at the top of a complex section.
3
+ *
4
+ * The design system's FIRST form rule: every complex screen or section opens with
5
+ * one of these, because "titles alone don't teach". A 6% primary wash, 12px
6
+ * radius, leading info glyph, 12.5px body text at 1.6 leading — deliberately not
7
+ * a semantic alert. It is not warning about anything; it says what the section is
8
+ * for, in plain language, before the fields start.
9
+ *
10
+ * Pairs with `AntField`'s `hint` (hover-only, one field's nuance). Use this one
11
+ * when the whole section needs explaining.
12
+ *
13
+ * ── Which idiom is this? ──────────────────────────────────────────────────
14
+ * CURRENT. UnoCSS-first: native controls plus Vuetify only where it provides
15
+ * costly behaviour (overlay stack, popover anchoring, focus management).
16
+ * Owns no copy — every label arrives as a prop.
17
+ * ─────────────────────────────────────────────────────────────────────────
18
+ */
19
+ type __VLS_Props = {
20
+ /** The explanation. A full sentence naming the consequence, not a label. */
21
+ text?: string;
22
+ icon?: string;
23
+ };
24
+ declare var __VLS_6: {};
25
+ type __VLS_Slots = {} & {
26
+ default?: (props: typeof __VLS_6) => any;
27
+ };
28
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
+ declare const _default: typeof __VLS_export;
31
+ export default _default;
32
+ type __VLS_WithSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Small help tooltip.
3
+ *
4
+ * Text is passed in; the component owns no copy.
5
+ *
6
+ * ── Which idiom is this? ──────────────────────────────────────────────────
7
+ * CURRENT. UnoCSS-first: native controls plus Vuetify only where it provides
8
+ * costly behaviour (overlay stack, popover anchoring, focus management).
9
+ * Owns no copy — every label arrives as a prop.
10
+ *
11
+ * The `BaseAnt*` components are the SUPERSEDED idiom: thin wrappers around
12
+ * Vuetify fields. Do not use them for new work, and do not mix the two in one
13
+ * form — the border weights and label treatments do not match.
14
+ * ─────────────────────────────────────────────────────────────────────────
15
+ */
16
+ type __VLS_Props = {
17
+ text: string;
18
+ icon?: string;
19
+ location?: 'top' | 'bottom' | 'start' | 'end';
20
+ size?: number | string;
21
+ };
22
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Text or textarea field, with optional prefix and monospace.
3
+ *
4
+ * A `<label>` wrapper around a native input. Carries no floating label and no Vuetify field chrome.
5
+ *
6
+ * ── Geometry is from the design system ────────────────────────────────────
7
+ * 44px tall, 12px radius, 14px horizontal padding. Focus changes the BORDER
8
+ * COLOUR ONLY — the system is explicit that there is "never a blue glow" on an
9
+ * input except the search pill's deliberate 3px ring, and this shipped with
10
+ * `focus-within:ring-3` on every field. The 8px in the system's radii table is
11
+ * for Vuetify's own `v-text-field`; a bespoke input is 12px, the same step as
12
+ * the inner card and the pill input. Written as `rounded-[12px]`, NOT
13
+ * `rounded-xl` — `createAntUnoConfig` overrides `theme.radius.xl` to 24px, so
14
+ * `rounded-xl` rendered this 44px field as a full stadium.
15
+ *
16
+ * ── Which idiom is this? ──────────────────────────────────────────────────
17
+ * CURRENT. UnoCSS-first: native controls plus Vuetify only where it provides
18
+ * costly behaviour (overlay stack, popover anchoring, focus management).
19
+ * Owns no copy — every label arrives as a prop.
20
+ *
21
+ * The `BaseAnt*` components are the SUPERSEDED idiom: thin wrappers around
22
+ * Vuetify fields. Do not use them for new work, and do not mix the two in one
23
+ * form — the border weights and label treatments do not match.
24
+ * ─────────────────────────────────────────────────────────────────────────
25
+ */
26
+ type __VLS_Props = {
27
+ multiline?: boolean;
28
+ rows?: number;
29
+ monospace?: boolean;
30
+ prefix?: string;
31
+ placeholder?: string;
32
+ error?: boolean;
33
+ disabled?: boolean;
34
+ maxLength?: number;
35
+ /**
36
+ * The native input type. `password` masks the value.
37
+ *
38
+ * ⚠️ **IT HAS TO BE A PROP.** The root of this component is the `<label>`, so a
39
+ * `type` written on the tag falls through onto the LABEL and the inner input stays
40
+ * `text` — silently. A secret-token field shipped that way: the value was never
41
+ * masked, so the reveal toggle it was paired with had nothing to toggle and read
42
+ * as a dead button. Ignored for `multiline`, which is a textarea.
43
+ */
44
+ type?: 'text' | 'password' | 'email' | 'url';
45
+ /**
46
+ * Accessible name for the control.
47
+ *
48
+ * The wrapping `<label>` carries no text — callers render their own heading
49
+ * above the field — so without this the input is announced as just "edit text".
50
+ * Pass it whenever there is no visible label the control is associated with.
51
+ *
52
+ * ⚠️ ONE OF `ariaLabel`, `ariaLabelledby` OR `inputId` (paired with a `<label
53
+ * for>`) IS REQUIRED. Not enforced in the type only because a handful of call
54
+ * sites are named by their surroundings today; a field with none of the three
55
+ * has no accessible name at all, and `placeholder` is not one — it is a
56
+ * last-resort fallback that vanishes the moment the user types.
57
+ */
58
+ ariaLabel?: string;
59
+ /**
60
+ * Space-separated ids of the elements that name this control — for the common
61
+ * case where the caller already renders a visible heading above the field and
62
+ * should not repeat it as an `aria-label`.
63
+ *
64
+ * Prefer this over `ariaLabel` when a visible label exists: two different
65
+ * strings for the same field is how a screen reader ends up announcing
66
+ * something the sighted user cannot see.
67
+ */
68
+ ariaLabelledby?: string;
69
+ /**
70
+ * `id` for the native control, so a caller's own `<label for>` can point at it.
71
+ *
72
+ * The component's root IS a `<label>`, but an empty one contributes no text to
73
+ * the accessible name — a `for`-associated label is what actually names the
74
+ * control, and this is the only way to give it a target.
75
+ */
76
+ inputId?: string;
77
+ };
78
+ type __VLS_ModelProps = {
79
+ modelValue?: string;
80
+ };
81
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
82
+ declare var __VLS_1: {};
83
+ type __VLS_Slots = {} & {
84
+ trailing?: (props: typeof __VLS_1) => any;
85
+ };
86
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
87
+ "update:modelValue": (value: string) => any;
88
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
89
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
90
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
91
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
92
+ declare const _default: typeof __VLS_export;
93
+ export default _default;
94
+ type __VLS_WithSlots<T, S> = T & {
95
+ new (): {
96
+ $slots: S;
97
+ };
98
+ };
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Numeric field with optional prefix and suffix.
3
+ *
4
+ * Native `<input type="number">` in a bordered wrapper that takes focus styling via `focus-within`. Generalised from the store's price field.
5
+ *
6
+ * ── Which idiom is this? ──────────────────────────────────────────────────
7
+ * CURRENT. UnoCSS-first: native controls plus Vuetify only where it provides
8
+ * costly behaviour (overlay stack, popover anchoring, focus management).
9
+ * Owns no copy — every label arrives as a prop.
10
+ *
11
+ * The `BaseAnt*` components are the SUPERSEDED idiom: thin wrappers around
12
+ * Vuetify fields. Do not use them for new work, and do not mix the two in one
13
+ * form — the border weights and label treatments do not match.
14
+ * ─────────────────────────────────────────────────────────────────────────
15
+ */
16
+ type __VLS_Props = {
17
+ label: string;
18
+ prefix?: string;
19
+ suffix?: string;
20
+ min?: number;
21
+ };
22
+ type __VLS_ModelProps = {
23
+ modelValue?: number | null;
24
+ };
25
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
26
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
+ "update:modelValue": (value: number | null) => any;
28
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
29
+ "onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
30
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
31
+ declare const _default: typeof __VLS_export;
32
+ export default _default;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Option shape for `AntOptionPicker`.
3
+ *
4
+ * Its own module because `AntOptionPicker` is a `generic` <script setup>, and that
5
+ * transform makes a top-level `export` inside the block illegal (TS1184) — the
6
+ * same reason `AntFilterSelect.types.ts` exists.
7
+ */
8
+ export interface OptionRow<T = string> {
9
+ value: T;
10
+ title: string;
11
+ /** One line explaining what choosing this does. The reason to use rows over a dropdown. */
12
+ description?: string;
13
+ icon?: string;
14
+ /** Trailing detail — a version, a count. */
15
+ meta?: string;
16
+ /** Render `meta` in the mono face with tabular figures (versions, identifiers). */
17
+ mono?: boolean;
18
+ disabled?: boolean;
19
+ }
@@ -0,0 +1,46 @@
1
+ import { OptionRow } from './AntOptionPicker.types';
2
+ declare const __VLS_export: <T extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import('vue').PublicProps & __VLS_PrettifyLocal<({
4
+ options: OptionRow<T>[];
5
+ /** Checkbox semantics and an array model instead of radio semantics. */
6
+ multi?: boolean;
7
+ disabled?: boolean;
8
+ /**
9
+ * Names the group.
10
+ *
11
+ * ⚠️ REQUIRED, deliberately. The root always renders `role="group"` or
12
+ * `role="radiogroup"` and this is its only naming mechanism — the visible
13
+ * heading sits outside in the caller's `AntField`, which has no id to point
14
+ * `aria-labelledby` at. Omitting it produced an announced-but-unnamed control
15
+ * group, so the type now says so rather than the doc comment asking nicely.
16
+ * Every call site already passed it; nothing had to change to make it required.
17
+ *
18
+ * This is a BREAKING change for external consumers of the published package —
19
+ * deliberately, since the compile error is the only thing that tells them they
20
+ * have an unnamed control group. Documented with a migration in
21
+ * `.changeset/option-picker-aria-label-required.md`.
22
+ */
23
+ ariaLabel: string;
24
+ } & {
25
+ value?: T;
26
+ values?: T[];
27
+ }) & {
28
+ "onUpdate:value"?: ((value: T | undefined) => any) | undefined;
29
+ "onUpdate:values"?: ((value: T[] | undefined) => any) | undefined;
30
+ }> & (typeof globalThis extends {
31
+ __VLS_PROPS_FALLBACK: infer P;
32
+ } ? P : {});
33
+ expose: (exposed: {}) => void;
34
+ attrs: any;
35
+ slots: {};
36
+ emit: ((event: "update:value", value: T | undefined) => void) & ((event: "update:values", value: T[] | undefined) => void);
37
+ }>) => import('vue').VNode & {
38
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
39
+ };
40
+ declare const _default: typeof __VLS_export;
41
+ export default _default;
42
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
43
+ [K in keyof T]: T[K];
44
+ } : {
45
+ [K in keyof T as K]: T[K];
46
+ }) & {};
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Sub-section heading with optional subtitle.
3
+ *
4
+ * Pure markup — the smallest unit of form rhythm.
5
+ *
6
+ * ── Which idiom is this? ──────────────────────────────────────────────────
7
+ * CURRENT. UnoCSS-first: native controls plus Vuetify only where it provides
8
+ * costly behaviour (overlay stack, popover anchoring, focus management).
9
+ * Owns no copy — every label arrives as a prop.
10
+ *
11
+ * The `BaseAnt*` components are the SUPERSEDED idiom: thin wrappers around
12
+ * Vuetify fields. Do not use them for new work, and do not mix the two in one
13
+ * form — the border weights and label treatments do not match.
14
+ * ─────────────────────────────────────────────────────────────────────────
15
+ */
16
+ type __VLS_Props = {
17
+ title: string;
18
+ subtitle?: string;
19
+ };
20
+ declare var __VLS_1: {}, __VLS_3: {};
21
+ type __VLS_Slots = {} & {
22
+ titleHint?: (props: typeof __VLS_1) => any;
23
+ } & {
24
+ default?: (props: typeof __VLS_3) => any;
25
+ };
26
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Radio group rendered as selectable cards.
3
+ *
4
+ * Native buttons in a `role="radiogroup"`, with real `aria-checked`. Use when the choice has consequences worth reading, rather than a bare radio list.
5
+ *
6
+ * ⚠️ PREFER `AntOptionPicker` FOR A CHOICE THAT CARRIES A CONSEQUENCE. The design
7
+ * system's chooser is a vertical stack of full-width rows, each explaining
8
+ * itself — not a card grid — and a dropdown or a grid hides exactly the copy the
9
+ * user needs. This component remains for the store screens that were built on a
10
+ * grid before the system was available; it is 12px radius (inner card) and 12px
11
+ * gaps (card grid), and a selected card washes at 5% like an option row.
12
+ *
13
+ * ── Which idiom is this? ──────────────────────────────────────────────────
14
+ * CURRENT. UnoCSS-first: native controls plus Vuetify only where it provides
15
+ * costly behaviour (overlay stack, popover anchoring, focus management).
16
+ * Owns no copy — every label arrives as a prop.
17
+ *
18
+ * The `BaseAnt*` components are the SUPERSEDED idiom: thin wrappers around
19
+ * Vuetify fields. Do not use them for new work, and do not mix the two in one
20
+ * form — the border weights and label treatments do not match.
21
+ * ─────────────────────────────────────────────────────────────────────────
22
+ */
23
+ export interface RadioCardOption<V extends string> {
24
+ value: V;
25
+ label: string;
26
+ icon?: string;
27
+ description?: string;
28
+ }
29
+ declare const __VLS_export: <T extends string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
30
+ props: import('vue').PublicProps & __VLS_PrettifyLocal<({
31
+ options: RadioCardOption<T>[];
32
+ columns?: number;
33
+ disabled?: boolean;
34
+ } & {
35
+ modelValue: T;
36
+ }) & {
37
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
38
+ }> & (typeof globalThis extends {
39
+ __VLS_PROPS_FALLBACK: infer P;
40
+ } ? P : {});
41
+ expose: (exposed: {}) => void;
42
+ attrs: any;
43
+ slots: {};
44
+ emit: (event: "update:modelValue", value: T) => void;
45
+ }>) => import('vue').VNode & {
46
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
47
+ };
48
+ declare const _default: typeof __VLS_export;
49
+ export default _default;
50
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
51
+ [K in keyof T]: T[K];
52
+ } : {
53
+ [K in keyof T as K]: T[K];
54
+ }) & {};