@antcde/component-library 0.1.25 → 0.1.26-rc.1

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
package/README.md CHANGED
@@ -35,7 +35,8 @@ npm run build
35
35
  ### Run Tests with [Vitest](https://vitest.dev/)
36
36
 
37
37
  ```sh
38
- npm run test:unit
38
+ pnpm test # single run
39
+ pnpm test:watch # watch mode
39
40
  ```
40
41
 
41
42
  ### Lint with [ESLint](https://eslint.org/)
package/dist/build/uno.js CHANGED
@@ -2,6 +2,8 @@ import presetRemToPx from '@unocss/preset-rem-to-px';
2
2
  import presetTypography from '@unocss/preset-typography';
3
3
  import presetWind4 from '@unocss/preset-wind4';
4
4
  import { defineConfig, transformerDirectives, transformerVariantGroup } from 'unocss';
5
+ import { libraryClassSafelist } from './uno.safelist';
6
+ import { antShortcuts } from './uno.shortcuts';
5
7
  const antColors = {
6
8
  primary: '#125CFF',
7
9
  secondary: '#64748B',
@@ -39,6 +41,16 @@ const antDesignTokens = [
39
41
  const antPreflights = [
40
42
  { getCSS: () => ':root { --ant-warning-text-emphasis: #9b5b00; }' },
41
43
  ];
44
+ /**
45
+ * Composite shortcuts every ANT surface needs, not only the storefront.
46
+ *
47
+ * These lived in `ant-os/src/utils/uno.storefront.ts` until AAD-980 needed them
48
+ * in an app that is a different repo (`ant-apps/ant-app-triggers-management`).
49
+ * They sit here rather than being copied because a missing shortcut fails
50
+ * SILENTLY: UnoCSS emits no rule, the element renders unstyled, and there is no
51
+ * build error to notice. Anything genuinely store-specific stays behind in
52
+ * `uno.storefront.ts`.
53
+ */
42
54
  /**
43
55
  * Normalizes shortcuts from either array or object form to array form.
44
56
  *
@@ -80,7 +92,7 @@ function normalizeShortcuts(shortcuts) {
80
92
  * ```
81
93
  */
82
94
  export function createAntUnoConfig(overrides = {}) {
83
- const { rules, presets, transformers, theme, shortcuts, preflights, ...rest } = overrides;
95
+ const { rules, presets, transformers, theme, shortcuts, preflights, safelist, content, ...rest } = overrides;
84
96
  // UnoCSS types `theme` as `object` on `UserConfig`, so destructured fields
85
97
  // lose their shape. Cast to a loose record to access `colors`/`breakpoints`/`radius`.
86
98
  const overrideTheme = theme;
@@ -90,6 +102,31 @@ export function createAntUnoConfig(overrides = {}) {
90
102
  cssLayerName: (layer) => layer === 'properties' ? null : `uno-${layer}`,
91
103
  },
92
104
  preflights: [...antPreflights, ...(preflights ?? [])],
105
+ /**
106
+ * ⚠️ REQUIRED, not an optimisation. UnoCSS extracts class names only from files
107
+ * its pipeline includes (`.vue`, `.jsx`, `.html`, …). Every class written INSIDE
108
+ * this library reaches a consuming app only as `dist/index.js`, which is never
109
+ * scanned — so the rule is never emitted and the element renders naked, with no
110
+ * build error. `ant-cta` shipped invisible to the triggers app that way, and
111
+ * `ant-save-bar` broke the store's own save bar.
112
+ *
113
+ * The list is GENERATED from this library's components (see `genSafelist.mjs`),
114
+ * because hand-listing the shortcut names covers 9 of the 57 classes actually at
115
+ * risk and silently drops focus rings, transitions and toggle geometry.
116
+ */
117
+ safelist: [...libraryClassSafelist, ...(safelist ?? [])],
118
+ /**
119
+ * ⚠️ DEV FIRST LOAD. The Vite plugin only knows the classes of modules Vite has
120
+ * already transformed, and `__uno.css` is requested before a lazy route's
121
+ * components are. In an iframe app the stylesheet then arrives without them and
122
+ * the page renders naked until the second reload, when the module graph is warm.
123
+ * Scanning the source tree from disk as well makes the first stylesheet complete.
124
+ * Same files as the pipeline would find, so the built CSS does not change.
125
+ */
126
+ content: {
127
+ ...content,
128
+ filesystem: ['src/**/*.{vue,ts,tsx}', ...(content?.filesystem ?? [])],
129
+ },
93
130
  rules: [
94
131
  ...antDesignTokens,
95
132
  ...overrideRules,
@@ -107,6 +144,8 @@ export function createAntUnoConfig(overrides = {}) {
107
144
  presetTypography(),
108
145
  ],
109
146
  shortcuts: [
147
+ ...antShortcuts,
148
+ // App overrides come last so an app can redefine a shared shortcut.
110
149
  ...normalizeShortcuts(shortcuts),
111
150
  ],
112
151
  transformers: transformers ?? [
@@ -0,0 +1,10 @@
1
+ /**
2
+ * GENERATED by lib/build/genSafelist.mjs — do not edit by hand.
3
+ *
4
+ * Every utility class this library's own components use, so a consuming app emits
5
+ * them even though UnoCSS never scans `dist/index.js`. See the generator for why.
6
+ *
7
+ * 244 classes, from 947 candidates, filtered by asking Uno
8
+ * which ones actually resolve.
9
+ */
10
+ export declare const libraryClassSafelist: string[];
@@ -0,0 +1,52 @@
1
+ /**
2
+ * GENERATED by lib/build/genSafelist.mjs — do not edit by hand.
3
+ *
4
+ * Every utility class this library's own components use, so a consuming app emits
5
+ * them even though UnoCSS never scans `dist/index.js`. See the generator for why.
6
+ *
7
+ * 244 classes, from 947 candidates, filtered by asking Uno
8
+ * which ones actually resolve.
9
+ */
10
+ export const libraryClassSafelist = [
11
+ 'absolute', 'align-middle', 'align-start', 'ant-check', 'ant-check--on', 'ant-field-label',
12
+ 'ant-hint-banner', 'ant-icon-button', 'ant-option-row', 'ant-option-row--on', 'ant-pill', 'ant-pill--sm',
13
+ 'ant-pill-input', 'ant-pill-input--button', 'ant-pill-menu', 'ant-pill-menu__item', 'ant-pill-menu__item--active', 'ant-radio',
14
+ 'ant-radio--on', 'ant-radio__dot', 'ant-save-bar', 'ant-section__header', 'basis-full', 'bg-ant-inset',
15
+ 'bg-ant-panel', 'bg-ant-surface', 'bg-error', 'bg-primary', 'bg-primary/4', 'bg-primary/5',
16
+ 'bg-success', 'bg-transparent', 'bg-warning', 'bg-white', 'bg-white/12', 'block',
17
+ 'border', 'border-0', 'border-2', 'border-ant', 'border-b', 'border-error',
18
+ 'border-none', 'border-opacity-50', 'border-primary', 'border-t', 'border-white/20', 'bottom-0',
19
+ 'capitalize', 'cursor-help', 'cursor-not-allowed', 'cursor-pointer', 'disabled:cursor-not-allowed', 'disabled:hover:bg-transparent',
20
+ 'disabled:opacity-50', 'duration-150', 'duration-200', 'ease-in', 'ease-out', 'flex',
21
+ 'flex-1', 'flex-col', 'flex-grow-1', 'flex-shrink-0', 'flex-wrap', 'focus-visible:border-primary',
22
+ 'focus-visible:opacity-100', 'focus-visible:outline-2', 'focus-visible:outline-offset-2', 'focus-visible:outline-primary', 'focus-within:border-primary', 'focus:border-error',
23
+ 'focus:border-primary', 'focus:outline-none', 'focus:ring-error/10', 'focus:ring-primary/10', 'font-[inherit]', 'font-medium',
24
+ 'font-mono', 'font-normal', 'font-semibold', 'gap-0.5', 'gap-1', 'gap-1.5',
25
+ 'gap-2', 'gap-3', 'gap-8', 'gap-[5px]', 'gap-[6px]', 'grid',
26
+ 'h-11', 'h-2', 'h-4', 'h-7', 'h-8', 'h-[18px]',
27
+ 'h-[22px]', 'h-full', 'hover:bg-ant-hover', 'hover:bg-primary/6', 'hover:bg-primary/8', 'hover:bg-white/10',
28
+ 'hover:opacity-100', 'inline-block', 'inline-flex', 'items-center', 'items-start', 'justify-between',
29
+ 'justify-center', 'justify-end', 'justify-start', 'leading-none', 'leading-relaxed', 'leading-snug',
30
+ 'leading-tight', 'left-0.5', 'lg:flex-initial', 'lg:min-w-[220px]', 'm-0', 'max-h-[88vh]',
31
+ 'max-w-[180px]', 'max-w-[240px]', 'mb-1', 'mb-2', 'mb-2.5', 'mb-3',
32
+ 'mb-4', 'md:basis-auto', 'md:flex-1', 'md:max-w-[420px]', 'md:min-w-[260px]', 'min-w-0',
33
+ 'min-w-[168px]', 'min-w-[180px]', 'min-w-[200px]', 'ml-1', 'ml-2', 'mr-1',
34
+ 'mr-2', 'ms-auto', 'mt-0.5', 'mt-1', 'mt-2', 'mt-3',
35
+ 'mt-px', 'my-1', 'opacity-0', 'opacity-20', 'opacity-30', 'opacity-40',
36
+ 'opacity-50', 'opacity-55', 'opacity-60', 'opacity-70', 'outline-none', 'overflow-hidden',
37
+ 'overflow-y-auto', 'p-0', 'p-3.5', 'pa-2', 'pa-3', 'pb-0',
38
+ 'pb-1', 'pb-2', 'pb-5', 'pl-1', 'pointer-events-none', 'position-relative',
39
+ 'pr-1', 'pr-1.5', 'pt-1', 'pt-2', 'pt-3', 'pt-5',
40
+ 'px-0', 'px-15', 'px-2', 'px-3', 'px-3.5', 'px-4',
41
+ 'px-5', 'px-5.5', 'py-0', 'py-1', 'py-2', 'py-2.5',
42
+ 'py-3', 'py-4', 'py-5', 'py-6', 'relative', 'resize-y',
43
+ 'right-0', 'rounded', 'rounded-2xl', 'rounded-[12px]', 'rounded-[20px]', 'rounded-full',
44
+ 'rounded-xl', 'shadow', 'shadow-sm', 'shrink-0', 'tabular-nums', 'text-[10px]',
45
+ 'text-[11.5px]', 'text-[11px]', 'text-[12.5px]', 'text-[13.5px]', 'text-[13px]', 'text-black',
46
+ 'text-body', 'text-center', 'text-error', 'text-heading', 'text-left', 'text-lg',
47
+ 'text-muted', 'text-primary', 'text-sm', 'text-truncate', 'text-warning', 'text-white',
48
+ 'text-white/45', 'text-wrap', 'text-xs', 'top-0.5', 'tracking-[0.16em]', 'transition-[border-color]',
49
+ 'transition-all', 'transition-colors', 'transition-opacity', 'transition-transform', 'translate-x-0', 'translate-x-4',
50
+ 'translate-y-4', 'truncate', 'uppercase', 'w-2', 'w-4', 'w-[18px]',
51
+ 'w-[38px]', 'w-full', 'whitespace-normal', 'whitespace-nowrap',
52
+ ];
@@ -0,0 +1,27 @@
1
+ /**
2
+ * The ANT semantic class vocabulary.
3
+ *
4
+ * Its own module because `uno.ts` outgrew the 250-line cap once the documented
5
+ * classes from the design system's `tokens/utilities.css` were added in AAD-980 —
6
+ * and because this list is the thing people come here to read or extend, while the
7
+ * presets and breakpoints around it change roughly never.
8
+ *
9
+ * ⚠️ A MISSING SHORTCUT FAILS SILENTLY. No rule is emitted, no error is raised, and
10
+ * the element renders naked. That is how `ant-cta` and three of its variants shipped
11
+ * to an app that could not see them: they were defined only in ant-os's own
12
+ * `uno.storefront.ts`, which no other app's Uno config loads. Anything used outside
13
+ * ant-os belongs HERE, and the way to prove it works is to generate CSS from the
14
+ * consuming app's own `uno.config.ts` — never to assume.
15
+ *
16
+ * ⚠️ COPY EXACT VALUES from the design system. It has TWO radius scales: Vuetify
17
+ * components keep their configured defaults (`v-card` 24px, form fields 8px), while
18
+ * bespoke chrome is smaller and more varied — section card 16, app card 18, inner
19
+ * card and pill input 12, option row and tab tray 10, sidebar row and CTA 8. The
20
+ * system says it outright: "Do NOT round 18px to 16px or 10px to 12px."
21
+ *
22
+ * ⚠️ **NEVER `rounded-xl` FOR THE 12px STEP.** `createAntUnoConfig` overrides
23
+ * `theme.radius.xl` to **24px**, so `rounded-xl` is the Vuetify card step, not the
24
+ * 12px one — a 44px-tall `ant-pill-input` written that way renders as a full
25
+ * stadium. Write the 12px step as `rounded-[12px]`.
26
+ */
27
+ export declare const antShortcuts: [string, string][];
@@ -0,0 +1,209 @@
1
+ /**
2
+ * The ANT semantic class vocabulary.
3
+ *
4
+ * Its own module because `uno.ts` outgrew the 250-line cap once the documented
5
+ * classes from the design system's `tokens/utilities.css` were added in AAD-980 —
6
+ * and because this list is the thing people come here to read or extend, while the
7
+ * presets and breakpoints around it change roughly never.
8
+ *
9
+ * ⚠️ A MISSING SHORTCUT FAILS SILENTLY. No rule is emitted, no error is raised, and
10
+ * the element renders naked. That is how `ant-cta` and three of its variants shipped
11
+ * to an app that could not see them: they were defined only in ant-os's own
12
+ * `uno.storefront.ts`, which no other app's Uno config loads. Anything used outside
13
+ * ant-os belongs HERE, and the way to prove it works is to generate CSS from the
14
+ * consuming app's own `uno.config.ts` — never to assume.
15
+ *
16
+ * ⚠️ COPY EXACT VALUES from the design system. It has TWO radius scales: Vuetify
17
+ * components keep their configured defaults (`v-card` 24px, form fields 8px), while
18
+ * bespoke chrome is smaller and more varied — section card 16, app card 18, inner
19
+ * card and pill input 12, option row and tab tray 10, sidebar row and CTA 8. The
20
+ * system says it outright: "Do NOT round 18px to 16px or 10px to 12px."
21
+ *
22
+ * ⚠️ **NEVER `rounded-xl` FOR THE 12px STEP.** `createAntUnoConfig` overrides
23
+ * `theme.radius.xl` to **24px**, so `rounded-xl` is the Vuetify card step, not the
24
+ * 12px one — a 44px-tall `ant-pill-input` written that way renders as a full
25
+ * stadium. Write the 12px step as `rounded-[12px]`.
26
+ */
27
+ export const antShortcuts = [
28
+ // Pill input / trigger (44px) and its floating menu.
29
+ //
30
+ // Promoted from `uno.storefront.ts` in AAD-980: these are the geometry behind the
31
+ // store's hand-rolled select and search — a native button or input plus `v-menu`
32
+ // for anchoring only — which is the idiom the whole platform is standardising on.
33
+ // They have to live here before any component using them is shared, because a
34
+ // missing shortcut emits NO rule and NO error: the element simply renders naked.
35
+ ['ant-pill-input', 'h-11 px-3.5 flex items-center gap-3 rounded-[12px] bg-ant-surface border border-ant text-heading transition-colors'],
36
+ ['ant-pill-input--button', 'ant-pill-input w-full whitespace-nowrap cursor-pointer hover:bg-ant-hover'],
37
+ // The bare input that goes INSIDE `ant-pill-input`. The wrapper owns the border
38
+ // and the focus treatment, so the field itself must contribute no chrome at all —
39
+ // this is the second half of the design system's own worked example.
40
+ ['ant-bare-input', 'flex-1 min-w-0 w-full bg-transparent border-0 outline-none text-sm text-heading placeholder:text-muted'],
41
+ ['ant-pill-menu', 'flex flex-col gap-1 p-2 rounded-[12px] bg-ant-surface border-[0.5px] border-ant shadow-[0_8px_32px_rgba(0,0,0,0.12)]'],
42
+ ['ant-pill-menu__item', 'flex items-center gap-2 w-full px-3 py-2.5 rounded-[12px] bg-transparent border-0 text-heading text-sm text-left cursor-pointer hover:bg-ant-hover'],
43
+ ['ant-pill-menu__item--active', 'bg-primary/8 hover:bg-primary/12'],
44
+ // ── The documented ANT-OS semantic vocabulary, added in AAD-980 ─────────
45
+ //
46
+ // These class names are transcribed from the ANT-OS design system's own
47
+ // `tokens/utilities.css`, which describes itself as "the EXACT class names
48
+ // ANT-OS production writes, so markup copied out of the repo renders
49
+ // correctly". They existed in the system and in the design kit but NOWHERE in
50
+ // this repo, so every screen re-derived the geometry by eye off the store —
51
+ // and the store itself diverges from the system (its `SectionCard` is a 24px
52
+ // radius with a 16px/500 title; the system says 16px and 14px/600).
53
+ //
54
+ // ⚠️ COPY THE EXACT VALUES. The system is explicit: "Do NOT round 18px to 16px
55
+ // or 10px to 12px." There are two radius scales — Vuetify components keep
56
+ // their configured defaults (v-card 24px, v-field 8px), and bespoke chrome is
57
+ // smaller and more varied. `rounded-lg` on a CTA is correct at 8px; the same
58
+ // class on a bespoke text input is wrong, because those are 12px.
59
+ ['ant-section', 'rounded-2xl overflow-hidden bg-ant-surface border border-ant'],
60
+ ['ant-section__header', 'px-5 py-4 border-b border-ant'],
61
+ ['ant-section__row', 'px-5 py-3 flex items-center gap-3'],
62
+ // The bespoke select: a stack of full-width rows, each explaining itself.
63
+ // Reach for this instead of a dropdown whenever the choice carries a
64
+ // consequence — a dropdown hides exactly the copy the user needs. A selected
65
+ // row BORDERS AND WASHES at 5%; it is never a filled row (a filled pill means
66
+ // a selected filter chip, which is a different thing).
67
+ ['ant-option-row', 'px-3 py-2.5 text-left rounded-[10px] flex items-center gap-2.5 font-[inherit] cursor-pointer bg-ant-surface border border-ant transition-[border-color,background-color] duration-150 hover:bg-ant-hover'],
68
+ ['ant-option-row--on', '!border-primary bg-primary/5 hover:bg-primary/8'],
69
+ // Always-on guidance at the top of a complex section. The system's first form
70
+ // rule is that every one of them opens with one: "Titles alone don't teach."
71
+ ['ant-hint-banner', 'flex items-start gap-2 px-3.5 py-2.5 rounded-[12px] bg-primary/6 text-[12.5px] leading-[1.6] text-body'],
72
+ // Field label — ABOVE the control at 12px/600 in body tone, never Vuetify's
73
+ // floating outlined label.
74
+ ['ant-field-label', 'text-xs font-semibold inline-flex items-center gap-1 text-body'],
75
+ // Status token. TONAL ONLY — saturated text on a 10% wash of the same channel.
76
+ //
77
+ // ⚠️ There is no flat or outlined status variant in this system. A FILLED pill
78
+ // means a selected FILTER CHIP, which is a different thing; using one for status
79
+ // makes the two read as the same control.
80
+ ['ant-pill', 'inline-flex items-center gap-1.5 h-6 px-2.5 rounded-full text-xs font-semibold whitespace-nowrap'],
81
+ ['ant-pill--sm', 'h-5 px-2 gap-1 text-[11px]'],
82
+ // Floating commit bar — dark glass pill, bottom centre. One of only two places
83
+ // glassmorphism is used (the other is popover panels).
84
+ ['ant-save-bar', 'fixed bottom-5 left-1/2 -translate-x-1/2 z-60 flex items-center gap-3.5 py-2.5 pl-4.5 pr-3 rounded-full text-white bg-[rgba(20,20,20,0.94)] backdrop-blur-[20px] shadow-[0_8px_32px_rgba(0,0,0,0.22)]'],
85
+ // ── Buttons and chips, promoted in AAD-980 ──────────────────────────────
86
+ //
87
+ // ⚠️ PROMOTED BECAUSE THEY WERE ALREADY BEING USED OUTSIDE ant-os AND SILENTLY
88
+ // RENDERING NOTHING. `ant-cta` and its variants are the platform's hand-rolled
89
+ // button — the triggers app's own Cancel/Save row, its dialogs and its empty-state
90
+ // actions all reach for them — but they were defined only in
91
+ // `ant-os/src/utils/uno.storefront.ts`, which no other app's Uno config loads. A
92
+ // missing shortcut emits NO rule and NO error, so those buttons rendered as bare
93
+ // text and nothing failed. The comment on `ant-empty-icon` below even points at
94
+ // `ant-cta` while it lived somewhere unreachable.
95
+ //
96
+ // The whole `--*` family moves together on purpose: promoting three of four
97
+ // variants leaves the fourth as exactly the same trap for the next caller.
98
+ //
99
+ // ⚠️ The text colours are `!important` ON PURPOSE. These are used on both
100
+ // <button> and <a> (an action carrying `:to` renders an anchor), and something in
101
+ // the global cascade sets `color` on anchors with enough weight to beat a plain
102
+ // utility — verified in-browser: the same classes give white on <span>/<button>
103
+ // and rgba(0,0,0,0.87) on <a>, i.e. black on blue. Without the `!` the flat
104
+ // variant is unreadable everywhere it links.
105
+ ['ant-cta', 'h-[34px] px-3.5 inline-flex items-center gap-1.5 rounded-lg text-[14px] font-medium whitespace-nowrap cursor-pointer border-0 no-underline [font-family:inherit]'],
106
+ ['ant-cta--flat', 'bg-primary !text-white hover:brightness-[0.96]'],
107
+ ['ant-cta--outlined', 'bg-transparent !text-primary border border-[rgba(18,92,255,0.5)] hover:bg-[rgba(18,92,255,0.06)]'],
108
+ ['ant-cta--tonal', 'bg-[rgba(18,92,255,0.10)] !text-primary hover:bg-[rgba(18,92,255,0.14)]'],
109
+ ['ant-cta--ghost', 'bg-transparent !text-primary hover:bg-[rgba(18,92,255,0.08)]'],
110
+ // Neutral secondary button — same 34px geometry as a CTA, no colour claim.
111
+ ['ant-view-btn', 'h-[34px] px-3.5 inline-flex items-center gap-1.5 rounded-lg border border-ant bg-transparent text-heading text-[14px] font-medium whitespace-nowrap cursor-pointer hover:bg-ant-hover'],
112
+ // Full-width dashed "add another row" affordance for editable lists.
113
+ ['ant-install-another-btn', 'w-full mt-1.5 mb-1 h-[30px] bg-transparent border border-dashed border-ant text-muted [font-family:inherit] text-[12px] font-medium rounded-lg cursor-pointer inline-flex items-center justify-center gap-1 hover:bg-ant-hover'],
114
+ // Small metadata chip.
115
+ ['ant-cat-chip', 'h-[22px] px-2 inline-flex items-center rounded-md bg-ant-inset text-[11px] font-medium text-muted whitespace-nowrap cursor-pointer hover:bg-ant-hover'],
116
+ ['ant-icon-button', 'inline-flex items-center justify-center w-7 h-7 rounded-lg bg-transparent border-0 text-muted cursor-pointer hover:bg-ant-hover hover:text-body'],
117
+ // 64x64 icon container for empty states.
118
+ //
119
+ // ⚠️ Do NOT pair this with `v-btn color="primary" variant="flat"` carrying
120
+ // `:to`. A `v-btn` with `:to` renders an <a>, and on an anchor Vuetify's
121
+ // colour class does not set the text colour — it inherits the page's, giving
122
+ // BLACK TEXT ON BLUE. Verified in-browser: identical classes give
123
+ // rgb(255,255,255) on <button> and rgba(0,0,0,0.87) on <a>. Use a CTA class
124
+ // that states its own text colour (ant-os has `ant-cta ant-cta--flat`).
125
+ ['ant-empty-icon', 'w-16 h-16 inline-flex items-center justify-center rounded-2xl bg-ant-panel border border-ant text-muted'],
126
+ ['ant-info-box', 'text-[12px] px-3 py-2.5 border border-info/16 rounded-[10px] bg-info/6 flex gap-2 items-start text-body'],
127
+ ['ant-warning-box', 'text-[12px] px-3 py-2.5 border border-warning/16 rounded-[10px] bg-warning/6 flex gap-2 items-start text-body'],
128
+ ['ant-section-label', 'text-[10px] tracking-[0.14em] font-semibold mb-2 uppercase text-muted'],
129
+ // Bespoke check-square — contrasty unchecked state BY DEFAULT (inset fill +
130
+ // visible border) so it never goes white-on-white. Put an mdi-check inside and
131
+ // add `ant-check--on` (primary) or `ant-check--danger` (error) when checked.
132
+ ['ant-check', 'inline-flex items-center justify-center flex-shrink-0 w-[18px] h-[18px] rounded-[5px] border-[1.5px] border-solid border-[rgba(var(--v-theme-on-surface),0.4)] bg-ant-inset transition-colors'],
133
+ ['ant-check--on', '!bg-primary !border-primary text-white'],
134
+ ['ant-check--danger', '!bg-error !border-error text-white'],
135
+ // ── Page, section and tab vocabulary (AAD-980 detail redesign) ──────────
136
+ //
137
+ // ⚠️ ADDED BECAUSE THEY WERE ALREADY IN USE AND RENDERING NAKED. `ant-page-title`,
138
+ // `ant-page-sub`, `ant-fine`, `ant-overline` and `ant-section-title` are written by
139
+ // the triggers app's index, its route shells and its history cards, and NONE of
140
+ // them emitted a rule — the exact silent failure the header of this file warns
141
+ // about, found by generating CSS from the consuming app's own config rather than
142
+ // by reading either file. The tab classes are new for the trigger detail.
143
+ //
144
+ // The type scale is the design system's and is deliberately OFF the Tailwind
145
+ // ramp — 11.5px, 10px, 12.5px. Snapping them to 12/14/16 is what made an earlier
146
+ // pass "look like the store instead of the system".
147
+ // Page heading — 24px/500 with optical tracking, and no margin of its own so the
148
+ // surrounding stack owns the rhythm.
149
+ ['ant-page-title', 'text-2xl font-medium leading-[1.2] tracking-[-0.015em] m-0 text-heading'],
150
+ ['ant-page-sub', 'text-sm mt-1 mb-0 text-body'],
151
+ // Fine print — the smallest type in the system. Consequences, counts and caveats
152
+ // that must be readable but must not compete with the thing they qualify.
153
+ ['ant-fine', 'text-[11.5px] text-muted'],
154
+ // Uppercase eyebrow above a block. Same type as `ant-section-label` without its
155
+ // bottom margin: that one labels a form section and always has a control under it,
156
+ // this one labels an arbitrary block and the caller owns the spacing.
157
+ ['ant-overline', 'text-[10px] font-semibold tracking-[0.14em] uppercase text-muted'],
158
+ // Titles inside `ant-section__header` (and the same type for a row-level card
159
+ // title). 14px/600 — NOT the store's 16px/500, which is where the store diverges
160
+ // from the system.
161
+ ['ant-section-title', 'text-sm font-semibold text-heading'],
162
+ ['ant-section-sub', 'text-xs mt-0.5 text-body'],
163
+ ['ant-card-title', 'text-sm font-semibold text-heading'],
164
+ // Segmented tab tray — an inset track holding pills, 10px radius on the tray and
165
+ // 8px on the pill (the system says outright: do not round 10px to 12px).
166
+ //
167
+ // ⚠️ The active pill's overrides are `!` ON PURPOSE, matching `ant-option-row--on`
168
+ // and `ant-check--on` above. A shortcut expands to ordinary utilities, so which of
169
+ // `text-muted` and `text-heading` wins is decided by CSS source order, not by the
170
+ // order the classes appear in the attribute. Without `!` an active tab is muted
171
+ // grey exactly as often as the generator happens to sort the other way.
172
+ ['ant-tab-tray', 'inline-flex items-center p-1 rounded-[10px] bg-ant-inset border border-ant'],
173
+ ['ant-tab-pill', 'h-9 px-3.5 mx-0.5 inline-flex items-center gap-2 rounded-lg bg-transparent border-0 [font-family:inherit] text-sm text-muted cursor-pointer transition-[color,background-color] duration-150 hover:text-body'],
174
+ ['ant-tab-pill--active', 'bg-ant-surface !text-heading font-medium shadow-[0_1px_2px_rgba(0,0,0,0.05)]'],
175
+ ['ant-tab-badge', 'min-w-5 h-5 px-1.5 rounded-[10px] bg-[rgba(var(--v-theme-on-surface),0.10)] text-body font-mono text-xs font-semibold leading-none inline-flex items-center justify-center'],
176
+ // Two more CTA variants. Neutral is the secondary action that makes no colour
177
+ // claim; danger states its consequence without filling, because a filled red
178
+ // button reads as the primary path.
179
+ //
180
+ // ⚠️ `!border-solid` and the explicit width beat `ant-cta`'s own `border-0` for the
181
+ // same source-order reason as the active tab pill.
182
+ ['ant-cta--neutral', 'bg-transparent !text-heading !border-1 !border-solid border-ant hover:bg-ant-hover'],
183
+ ['ant-cta--danger', 'bg-transparent !text-error !border-1 !border-solid !border-error/40 hover:bg-error/6'],
184
+ // ── The lens rail (AAD-980) ─────────────────────────────────────────────
185
+ //
186
+ // A persistent left rail of destinations, each with a count. 32px tall on an 8px
187
+ // radius — the design system's "sidebar row" step, which is the same 8 as a CTA
188
+ // and deliberately NOT the 10 of a tab tray or the 12 of a pill input.
189
+ //
190
+ // 13px type, not 14: a rail is scanned down, not read across, and the system's
191
+ // scale is off the Tailwind ramp on purpose.
192
+ ['ant-rail-item', 'h-8 px-2.5 w-full flex items-center gap-2.5 rounded-lg border-0 bg-transparent [font-family:inherit] text-[13px] text-left cursor-pointer text-body transition-colors duration-150 hover:bg-ant-hover'],
193
+ ['ant-rail-item--active', 'bg-primary/10 !text-primary font-medium'],
194
+ // Count beside a rail label. Mono, because these are quantities you compare
195
+ // between rows rather than read as words.
196
+ ['ant-rail-badge', 'font-mono text-[11px] font-semibold px-1.5 h-[18px] min-w-5 rounded-full inline-flex items-center justify-center bg-ant-inset text-body'],
197
+ ['ant-rail-badge--active', '!bg-primary !text-white'],
198
+ // Tiny uppercase tag for a fact about a row — "CUSTOM PATH", "TABLE". Inset
199
+ // rather than tinted: it qualifies the row it sits in, it does not report a state,
200
+ // so it must not read as a status pill.
201
+ ['ant-tag-inset', 'text-[10px] font-semibold tracking-[0.03em] uppercase px-1.5 py-0.5 rounded bg-ant-inset text-muted'],
202
+ // The chooser's radio. 18px, and the SELECTED one is FILLED with a white dot in
203
+ // it — not an outline with a coloured dot, which is the weaker treatment this
204
+ // shipped with and the most visible difference on the create screen. Unselected
205
+ // carries an inset fill so it never disappears against the row.
206
+ ['ant-radio', 'w-[18px] h-[18px] rounded-full inline-flex items-center justify-center flex-shrink-0 border border-solid border-[rgba(var(--v-border-color),0.28)] bg-ant-inset'],
207
+ ['ant-radio--on', '!bg-primary !border-primary'],
208
+ ['ant-radio__dot', 'w-1.5 h-1.5 rounded-full bg-white inline-block'],
209
+ ];