@noix-dev/brix-vue 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +74 -2
  3. package/package.json +117 -3
  4. package/src/components/address-field/AddressField.vue +337 -0
  5. package/src/components/address-field/index.ts +1 -0
  6. package/src/components/appearance-picker/AppearancePicker.vue +502 -0
  7. package/src/components/appearance-picker/AppearanceSegment.vue +175 -0
  8. package/src/components/appearance-picker/index.ts +44 -0
  9. package/src/components/autofill/AutoFillDialog.vue +264 -0
  10. package/src/components/autofill/index.ts +1 -0
  11. package/src/components/badge/Badge.vue +23 -0
  12. package/src/components/badge/index.ts +106 -0
  13. package/src/components/build-stamp/BuildStamp.vue +62 -0
  14. package/src/components/build-stamp/index.ts +1 -0
  15. package/src/components/button/Button.vue +31 -0
  16. package/src/components/button/index.ts +122 -0
  17. package/src/components/card/Card.vue +29 -0
  18. package/src/components/card/CardAction.vue +17 -0
  19. package/src/components/card/CardContent.vue +14 -0
  20. package/src/components/card/CardDescription.vue +14 -0
  21. package/src/components/card/CardFooter.vue +22 -0
  22. package/src/components/card/CardHeader.vue +22 -0
  23. package/src/components/card/CardTitle.vue +29 -0
  24. package/src/components/card/index.ts +47 -0
  25. package/src/components/chart/BarChart.vue +123 -0
  26. package/src/components/chart/StackedBarChart.vue +149 -0
  27. package/src/components/chart/appearanceRevision.ts +22 -0
  28. package/src/components/chart/chartColor.ts +59 -0
  29. package/src/components/chart/index.ts +6 -0
  30. package/src/components/checkbox/Checkbox.vue +61 -0
  31. package/src/components/checkbox/index.ts +1 -0
  32. package/src/components/code-editor/CodeEditor.vue +352 -0
  33. package/src/components/code-editor/index.ts +9 -0
  34. package/src/components/code-editor/syntaxTheme.ts +110 -0
  35. package/src/components/colour-picker/ColourPicker.vue +421 -0
  36. package/src/components/colour-picker/index.ts +1 -0
  37. package/src/components/combobox/Combobox.vue +337 -0
  38. package/src/components/combobox/index.ts +1 -0
  39. package/src/components/comments/CommentComposer.vue +302 -0
  40. package/src/components/comments/CommentMessage.vue +259 -0
  41. package/src/components/comments/CommentThread.vue +250 -0
  42. package/src/components/comments/commentBody.ts +185 -0
  43. package/src/components/comments/commentLevels.ts +139 -0
  44. package/src/components/comments/commentNode.ts +35 -0
  45. package/src/components/comments/composer.ts +20 -0
  46. package/src/components/comments/index.ts +29 -0
  47. package/src/components/confirm-dialog/ConfirmDialog.vue +153 -0
  48. package/src/components/confirm-dialog/index.ts +1 -0
  49. package/src/components/containers/Box.vue +42 -0
  50. package/src/components/containers/Section.vue +88 -0
  51. package/src/components/containers/SectionAction.vue +17 -0
  52. package/src/components/containers/SectionContent.vue +14 -0
  53. package/src/components/containers/SectionDescription.vue +14 -0
  54. package/src/components/containers/SectionHeader.vue +22 -0
  55. package/src/components/containers/SectionTitle.vue +17 -0
  56. package/src/components/containers/index.ts +9 -0
  57. package/src/components/data-table/ColumnMenu.vue +241 -0
  58. package/src/components/data-table/DataTable.vue +447 -0
  59. package/src/components/data-table/ExpandCaret.vue +34 -0
  60. package/src/components/data-table/SortableHead.vue +184 -0
  61. package/src/components/data-table/TableLoadingRow.vue +13 -0
  62. package/src/components/data-table/TableProgressRow.vue +26 -0
  63. package/src/components/data-table/columns.ts +13 -0
  64. package/src/components/data-table/index.ts +3 -0
  65. package/src/components/data-table/pinned.ts +19 -0
  66. package/src/components/data-table/rowActivation.ts +14 -0
  67. package/src/components/data-table/sort.ts +13 -0
  68. package/src/components/data-table/types.ts +23 -0
  69. package/src/components/date-picker/CalendarPanel.vue +432 -0
  70. package/src/components/date-picker/DateField.vue +293 -0
  71. package/src/components/date-picker/DatePicker.vue +147 -0
  72. package/src/components/date-picker/UntilDatePicker.vue +96 -0
  73. package/src/components/date-picker/dateFieldGuard.ts +87 -0
  74. package/src/components/date-picker/index.ts +4 -0
  75. package/src/components/date-picker/useDateField.ts +37 -0
  76. package/src/components/date-range-picker/DateRangePicker.vue +247 -0
  77. package/src/components/date-range-picker/index.ts +1 -0
  78. package/src/components/date-time-picker/DateTimePicker.vue +291 -0
  79. package/src/components/date-time-picker/index.ts +1 -0
  80. package/src/components/dialog/Dialog.vue +250 -0
  81. package/src/components/dialog/DialogSurface.vue +214 -0
  82. package/src/components/dialog/dialogEdges.ts +65 -0
  83. package/src/components/dialog/dialogSizes.ts +35 -0
  84. package/src/components/dialog/index.ts +12 -0
  85. package/src/components/dialog/toastHost.ts +18 -0
  86. package/src/components/dropdown/Dropdown.vue +101 -0
  87. package/src/components/dropdown/DropdownItems.vue +154 -0
  88. package/src/components/dropdown/dropdown.ts +64 -0
  89. package/src/components/dropdown/index.ts +2 -0
  90. package/src/components/file-preview/FilePreview.vue +78 -0
  91. package/src/components/file-preview/index.ts +1 -0
  92. package/src/components/file-upload/FileUpload.vue +234 -0
  93. package/src/components/file-upload/index.ts +1 -0
  94. package/src/components/filter-check-menu/FilterCheckMenu.vue +562 -0
  95. package/src/components/filter-check-menu/filterCheckOption.ts +10 -0
  96. package/src/components/filter-check-menu/index.ts +2 -0
  97. package/src/components/form-field/FormField.vue +74 -0
  98. package/src/components/form-field/index.ts +2 -0
  99. package/src/components/form-field/types.ts +5 -0
  100. package/src/components/frames/FrameCentred.vue +137 -0
  101. package/src/components/frames/FrameSidebar.vue +113 -0
  102. package/src/components/frames/FrameSplit.vue +109 -0
  103. package/src/components/frames/index.ts +3 -0
  104. package/src/components/icon/BellIcon.vue +27 -0
  105. package/src/components/icon/BoldIcon.vue +31 -0
  106. package/src/components/icon/CalendarDaysIcon.vue +33 -0
  107. package/src/components/icon/CheckIcon.vue +31 -0
  108. package/src/components/icon/ChevronDownIcon.vue +30 -0
  109. package/src/components/icon/ChevronLeftIcon.vue +31 -0
  110. package/src/components/icon/ChevronRightIcon.vue +31 -0
  111. package/src/components/icon/ChevronUpIcon.vue +30 -0
  112. package/src/components/icon/CircleAlertIcon.vue +29 -0
  113. package/src/components/icon/ClockIcon.vue +31 -0
  114. package/src/components/icon/Columns3Icon.vue +32 -0
  115. package/src/components/icon/FlipHorizontalIcon.vue +29 -0
  116. package/src/components/icon/ItalicIcon.vue +28 -0
  117. package/src/components/icon/LinkIcon.vue +27 -0
  118. package/src/components/icon/ListIcon.vue +29 -0
  119. package/src/components/icon/ListOrderedIcon.vue +28 -0
  120. package/src/components/icon/PenLineIcon.vue +31 -0
  121. package/src/components/icon/PlusIcon.vue +28 -0
  122. package/src/components/icon/RotateCcwIcon.vue +28 -0
  123. package/src/components/icon/RotateCwIcon.vue +28 -0
  124. package/src/components/icon/SearchIcon.vue +31 -0
  125. package/src/components/icon/StarIcon.vue +29 -0
  126. package/src/components/icon/TriangleAlertIcon.vue +29 -0
  127. package/src/components/icon/UnderlineIcon.vue +27 -0
  128. package/src/components/icon/Undo2Icon.vue +28 -0
  129. package/src/components/icon/XIcon.vue +31 -0
  130. package/src/components/icon/ZoomInIcon.vue +30 -0
  131. package/src/components/icon/ZoomOutIcon.vue +29 -0
  132. package/src/components/icon/index.ts +37 -0
  133. package/src/components/icon-picker/IconPicker.vue +560 -0
  134. package/src/components/icon-picker/index.ts +1 -0
  135. package/src/components/image-crop-dialog/CropRatioRow.vue +132 -0
  136. package/src/components/image-crop-dialog/CropVariantStrip.vue +277 -0
  137. package/src/components/image-crop-dialog/ImageCropDialog.vue +1541 -0
  138. package/src/components/image-crop-dialog/index.ts +16 -0
  139. package/src/components/image-upload/ImageUpload.vue +345 -0
  140. package/src/components/image-upload/index.ts +2 -0
  141. package/src/components/input/Input.vue +48 -0
  142. package/src/components/input/index.ts +1 -0
  143. package/src/components/keycap/Keycap.vue +49 -0
  144. package/src/components/keycap/index.ts +1 -0
  145. package/src/components/label/Label.vue +26 -0
  146. package/src/components/label/index.ts +1 -0
  147. package/src/components/menu/MenuCheckboxItem.vue +63 -0
  148. package/src/components/menu/MenuContent.vue +45 -0
  149. package/src/components/menu/MenuGroup.vue +22 -0
  150. package/src/components/menu/MenuItem.vue +34 -0
  151. package/src/components/menu/MenuLabel.vue +22 -0
  152. package/src/components/menu/MenuRadioGroup.vue +22 -0
  153. package/src/components/menu/MenuRadioItem.vue +50 -0
  154. package/src/components/menu/MenuRoot.vue +25 -0
  155. package/src/components/menu/MenuSeparator.vue +27 -0
  156. package/src/components/menu/MenuSub.vue +29 -0
  157. package/src/components/menu/MenuSubContent.vue +48 -0
  158. package/src/components/menu/MenuSubTrigger.vue +49 -0
  159. package/src/components/menu/MenuTrigger.vue +22 -0
  160. package/src/components/menu/index.ts +20 -0
  161. package/src/components/menu/menuClasses.ts +74 -0
  162. package/src/components/morph-select/MorphSelect.vue +150 -0
  163. package/src/components/morph-select/index.ts +1 -0
  164. package/src/components/nav/NavFlyout.vue +343 -0
  165. package/src/components/nav/NavGroup.vue +306 -0
  166. package/src/components/nav/NavItem.vue +243 -0
  167. package/src/components/nav/NavNodes.ts +66 -0
  168. package/src/components/nav/NavSection.vue +105 -0
  169. package/src/components/nav/NavSidebar.vue +137 -0
  170. package/src/components/nav/index.ts +5 -0
  171. package/src/components/nav/navChain.ts +112 -0
  172. package/src/components/nav/navClasses.ts +229 -0
  173. package/src/components/nav/navNode.ts +10 -0
  174. package/src/components/nav/navRegistry.ts +24 -0
  175. package/src/components/notification-list/NotificationList.vue +314 -0
  176. package/src/components/notification-list/index.ts +2 -0
  177. package/src/components/notification-list/notifications.ts +21 -0
  178. package/src/components/pagination/Pagination.vue +296 -0
  179. package/src/components/pagination/index.ts +1 -0
  180. package/src/components/pin-field/PinField.vue +332 -0
  181. package/src/components/pin-field/index.ts +1 -0
  182. package/src/components/popover-panel/PopoverPanel.vue +115 -0
  183. package/src/components/popover-panel/index.ts +5 -0
  184. package/src/components/rating/Rating.vue +201 -0
  185. package/src/components/rating/index.ts +1 -0
  186. package/src/components/record-avatar/RecordAvatar.vue +76 -0
  187. package/src/components/record-avatar/index.ts +1 -0
  188. package/src/components/result-window/ResultWindow.vue +399 -0
  189. package/src/components/result-window/index.ts +2 -0
  190. package/src/components/result-window/results.ts +75 -0
  191. package/src/components/rich-editor/RichEditor.vue +370 -0
  192. package/src/components/rich-editor/RichEditorLinkDialog.vue +133 -0
  193. package/src/components/rich-editor/index.ts +8 -0
  194. package/src/components/row-actions/RowActions.vue +262 -0
  195. package/src/components/row-actions/index.ts +2 -0
  196. package/src/components/row-actions/rowActions.ts +44 -0
  197. package/src/components/search-select/SearchSelect.vue +599 -0
  198. package/src/components/search-select/index.ts +2 -0
  199. package/src/components/search-select/types.ts +14 -0
  200. package/src/components/segmented-choice/SegmentedChoice.vue +136 -0
  201. package/src/components/segmented-choice/index.ts +2 -0
  202. package/src/components/segmented-choice/segmentedOption.ts +6 -0
  203. package/src/components/select/Select.vue +18 -0
  204. package/src/components/select/SelectContent.vue +73 -0
  205. package/src/components/select/SelectGroup.vue +21 -0
  206. package/src/components/select/SelectItem.vue +47 -0
  207. package/src/components/select/SelectItemText.vue +12 -0
  208. package/src/components/select/SelectLabel.vue +17 -0
  209. package/src/components/select/SelectScrollDownButton.vue +36 -0
  210. package/src/components/select/SelectScrollUpButton.vue +36 -0
  211. package/src/components/select/SelectSeparator.vue +19 -0
  212. package/src/components/select/SelectTrigger.vue +52 -0
  213. package/src/components/select/SelectValue.vue +12 -0
  214. package/src/components/select/index.ts +11 -0
  215. package/src/components/session/IdleTimer.vue +71 -0
  216. package/src/components/session/SessionDialogs.vue +177 -0
  217. package/src/components/session/index.ts +2 -0
  218. package/src/components/split-button/SplitButton.vue +122 -0
  219. package/src/components/split-button/index.ts +2 -0
  220. package/src/components/split-button/splitButtonItem.ts +7 -0
  221. package/src/components/switch/Switch.vue +60 -0
  222. package/src/components/switch/index.ts +1 -0
  223. package/src/components/table/Table.vue +51 -0
  224. package/src/components/table/TableBody.vue +14 -0
  225. package/src/components/table/TableCaption.vue +17 -0
  226. package/src/components/table/TableCell.vue +22 -0
  227. package/src/components/table/TableEmpty.vue +72 -0
  228. package/src/components/table/TableFooter.vue +17 -0
  229. package/src/components/table/TableHead.vue +22 -0
  230. package/src/components/table/TableHeader.vue +14 -0
  231. package/src/components/table/TableRow.vue +22 -0
  232. package/src/components/table/index.ts +9 -0
  233. package/src/components/tabs/Tabs.vue +173 -0
  234. package/src/components/tabs/index.ts +2 -0
  235. package/src/components/tabs/tabItem.ts +12 -0
  236. package/src/components/textarea/LimitedTextarea.vue +81 -0
  237. package/src/components/textarea/TextLimitCounter.vue +107 -0
  238. package/src/components/textarea/Textarea.vue +42 -0
  239. package/src/components/textarea/index.ts +4 -0
  240. package/src/components/textarea/textLimit.ts +43 -0
  241. package/src/components/time-picker/TimePicker.vue +522 -0
  242. package/src/components/time-picker/index.ts +1 -0
  243. package/src/components/toast/ToastHost.vue +276 -0
  244. package/src/components/toast/index.ts +1 -0
  245. package/src/components/update-notice/UpdateNotice.vue +103 -0
  246. package/src/components/update-notice/index.ts +1 -0
  247. package/src/components/user-menu/UserMenu.vue +154 -0
  248. package/src/components/user-menu/index.ts +1 -0
  249. package/src/index.ts +182 -0
  250. package/src/lib/cn.ts +21 -0
  251. package/src/lib/panelFocus.ts +65 -0
  252. package/src/lib/sessionMonitor.ts +390 -0
  253. package/src/lib/slotContent.ts +17 -0
  254. package/src/lib/updateCheck.ts +133 -0
  255. package/src/styles.css +82 -0
@@ -0,0 +1,31 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * Every attribute below is a DEFAULT. `v-bind="$attrs"` is written last on purpose: the
6
+ * compiler emits `mergeProps` in source order and the last argument wins, so a caller's
7
+ * `stroke-width="3"` replaces the 2 rather than being silently dropped. Written first — as
8
+ * these were — it is dropped with no error. The first consumer in this repository to hit
9
+ * exactly that needed a different glyph, the check (see `CheckIcon.vue`). `class` is the one
10
+ * attribute that is merged rather than replaced, by `cn`, so `size-3` beats the `size-4`.
11
+ */
12
+ defineOptions({ inheritAttrs: false });
13
+ </script>
14
+
15
+ <template>
16
+ <svg
17
+ xmlns="http://www.w3.org/2000/svg"
18
+ viewBox="0 0 24 24"
19
+ fill="none"
20
+ stroke="currentColor"
21
+ stroke-width="2"
22
+ stroke-linecap="round"
23
+ stroke-linejoin="round"
24
+ aria-hidden="true"
25
+ focusable="false"
26
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
27
+ >
28
+ <circle cx="12" cy="12" r="9" />
29
+ <path d="M12 7v5l3 2" />
30
+ </svg>
31
+ </template>
@@ -0,0 +1,32 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * Every attribute below is a DEFAULT. `v-bind="$attrs"` is written last on purpose: the
6
+ * compiler emits `mergeProps` in source order and the last argument wins, so a caller's
7
+ * `stroke-width="3"` replaces the 2 rather than being silently dropped. Written first — as
8
+ * these were — it is dropped with no error. The first consumer in this repository to hit
9
+ * exactly that needed a different glyph, the check (see `CheckIcon.vue`). `class` is the one
10
+ * attribute that is merged rather than replaced, by `cn`, so `size-3` beats the `size-4`.
11
+ */
12
+ defineOptions({ inheritAttrs: false });
13
+ </script>
14
+
15
+ <template>
16
+ <svg
17
+ xmlns="http://www.w3.org/2000/svg"
18
+ viewBox="0 0 24 24"
19
+ fill="none"
20
+ stroke="currentColor"
21
+ stroke-width="2"
22
+ stroke-linecap="round"
23
+ stroke-linejoin="round"
24
+ aria-hidden="true"
25
+ focusable="false"
26
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
27
+ >
28
+ <rect width="18" height="18" x="3" y="3" rx="2" />
29
+ <path d="M9 3v18" />
30
+ <path d="M15 3v18" />
31
+ </svg>
32
+ </template>
@@ -0,0 +1,29 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * Two arrowheads pointing away from a vertical axis, the glyph of a left-to-right mirror. Every attribute below is a DEFAULT: `v-bind="$attrs"` is written last, so a
6
+ * caller's `stroke-width` replaces the 2, and `class` is merged through `cn` so `size-3` beats the
7
+ * `size-4`. Drawn inline because the package ships no icon set (ADR 0013).
8
+ */
9
+ defineOptions({ inheritAttrs: false });
10
+ </script>
11
+
12
+ <template>
13
+ <svg
14
+ xmlns="http://www.w3.org/2000/svg"
15
+ viewBox="0 0 24 24"
16
+ fill="none"
17
+ stroke="currentColor"
18
+ stroke-width="2"
19
+ stroke-linecap="round"
20
+ stroke-linejoin="round"
21
+ aria-hidden="true"
22
+ focusable="false"
23
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
24
+ >
25
+ <path d="M12 3v18" />
26
+ <path d="m16 7 5 5-5 5" />
27
+ <path d="m8 7-5 5 5 5" />
28
+ </svg>
29
+ </template>
@@ -0,0 +1,28 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * Every attribute below is a DEFAULT; see the contract in `index.ts`. `v-bind` is written
6
+ * last so a caller's attributes win, and `class` is merged through `cn`.
7
+ */
8
+ defineOptions({ inheritAttrs: false });
9
+ </script>
10
+
11
+ <template>
12
+ <svg
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ viewBox="0 0 24 24"
15
+ fill="none"
16
+ stroke="currentColor"
17
+ stroke-width="2"
18
+ stroke-linecap="round"
19
+ stroke-linejoin="round"
20
+ aria-hidden="true"
21
+ focusable="false"
22
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
23
+ >
24
+ <path d="M15 5h-5" />
25
+ <path d="M14 19H9" />
26
+ <path d="M14.5 5 10 19" />
27
+ </svg>
28
+ </template>
@@ -0,0 +1,27 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * Every attribute below is a DEFAULT; see the contract in `index.ts`. `v-bind` is written
6
+ * last so a caller's attributes win, and `class` is merged through `cn`.
7
+ */
8
+ defineOptions({ inheritAttrs: false });
9
+ </script>
10
+
11
+ <template>
12
+ <svg
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ viewBox="0 0 24 24"
15
+ fill="none"
16
+ stroke="currentColor"
17
+ stroke-width="2"
18
+ stroke-linecap="round"
19
+ stroke-linejoin="round"
20
+ aria-hidden="true"
21
+ focusable="false"
22
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
23
+ >
24
+ <path d="M10.5 13.5a3.5 3.5 0 0 0 5 0l3-3a3.5 3.5 0 0 0-5-5l-1.2 1.2" />
25
+ <path d="M13.5 10.5a3.5 3.5 0 0 0-5 0l-3 3a3.5 3.5 0 0 0 5 5l1.2-1.2" />
26
+ </svg>
27
+ </template>
@@ -0,0 +1,29 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * Every attribute below is a DEFAULT; see the contract in `index.ts`. `v-bind` is written
6
+ * last so a caller's attributes win, and `class` is merged through `cn`.
7
+ */
8
+ defineOptions({ inheritAttrs: false });
9
+ </script>
10
+
11
+ <template>
12
+ <svg
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ viewBox="0 0 24 24"
15
+ fill="none"
16
+ stroke="currentColor"
17
+ stroke-width="2"
18
+ stroke-linecap="round"
19
+ stroke-linejoin="round"
20
+ aria-hidden="true"
21
+ focusable="false"
22
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
23
+ >
24
+ <path d="M9 6h11M9 12h11M9 18h11" />
25
+ <circle cx="4.5" cy="6" r="1.5" fill="currentColor" stroke="none" />
26
+ <circle cx="4.5" cy="12" r="1.5" fill="currentColor" stroke="none" />
27
+ <circle cx="4.5" cy="18" r="1.5" fill="currentColor" stroke="none" />
28
+ </svg>
29
+ </template>
@@ -0,0 +1,28 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * Every attribute below is a DEFAULT; see the contract in `index.ts`. `v-bind` is written
6
+ * last so a caller's attributes win, and `class` is merged through `cn`.
7
+ */
8
+ defineOptions({ inheritAttrs: false });
9
+ </script>
10
+
11
+ <template>
12
+ <svg
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ viewBox="0 0 24 24"
15
+ fill="none"
16
+ stroke="currentColor"
17
+ stroke-width="2"
18
+ stroke-linecap="round"
19
+ stroke-linejoin="round"
20
+ aria-hidden="true"
21
+ focusable="false"
22
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
23
+ >
24
+ <path d="M10 6h10M10 12h10M10 18h10" />
25
+ <path d="M4 5.5 5.5 4.6V9" />
26
+ <path d="M3.4 14.2c.1-.8.8-1.3 1.6-1.2.7.1 1.2.7 1.1 1.4-.1.9-2.3 1.8-2.7 3.4h2.9" />
27
+ </svg>
28
+ </template>
@@ -0,0 +1,31 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * Every attribute below is a DEFAULT. `v-bind="$attrs"` is written last on purpose: the
6
+ * compiler emits `mergeProps` in source order and the last argument wins, so a caller's
7
+ * `stroke-width="3"` replaces the 2 rather than being silently dropped. Written first — as
8
+ * these were — it is dropped with no error. The first consumer in this repository to hit
9
+ * exactly that needed a different glyph, the check (see `CheckIcon.vue`). `class` is the one
10
+ * attribute that is merged rather than replaced, by `cn`, so `size-3` beats the `size-4`.
11
+ */
12
+ defineOptions({ inheritAttrs: false });
13
+ </script>
14
+
15
+ <template>
16
+ <svg
17
+ xmlns="http://www.w3.org/2000/svg"
18
+ viewBox="0 0 24 24"
19
+ fill="none"
20
+ stroke="currentColor"
21
+ stroke-width="2"
22
+ stroke-linecap="round"
23
+ stroke-linejoin="round"
24
+ aria-hidden="true"
25
+ focusable="false"
26
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
27
+ >
28
+ <path d="M12 20h9" />
29
+ <path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z" />
30
+ </svg>
31
+ </template>
@@ -0,0 +1,28 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * A plus, the glyph of an add or pick action. Every attribute below is a DEFAULT: `v-bind="$attrs"` is written last, so a
6
+ * caller's `stroke-width` replaces the 2, and `class` is merged through `cn` so `size-3` beats the
7
+ * `size-4`. Drawn inline because the package ships no icon set (ADR 0013).
8
+ */
9
+ defineOptions({ inheritAttrs: false });
10
+ </script>
11
+
12
+ <template>
13
+ <svg
14
+ xmlns="http://www.w3.org/2000/svg"
15
+ viewBox="0 0 24 24"
16
+ fill="none"
17
+ stroke="currentColor"
18
+ stroke-width="2"
19
+ stroke-linecap="round"
20
+ stroke-linejoin="round"
21
+ aria-hidden="true"
22
+ focusable="false"
23
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
24
+ >
25
+ <path d="M5 12h14" />
26
+ <path d="M12 5v14" />
27
+ </svg>
28
+ </template>
@@ -0,0 +1,28 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * A circular arrow turning counter-clockwise, the glyph of a quarter turn to the left. Every attribute below is a DEFAULT: `v-bind="$attrs"` is written last, so a
6
+ * caller's `stroke-width` replaces the 2, and `class` is merged through `cn` so `size-3` beats the
7
+ * `size-4`. Drawn inline because the package ships no icon set (ADR 0013).
8
+ */
9
+ defineOptions({ inheritAttrs: false });
10
+ </script>
11
+
12
+ <template>
13
+ <svg
14
+ xmlns="http://www.w3.org/2000/svg"
15
+ viewBox="0 0 24 24"
16
+ fill="none"
17
+ stroke="currentColor"
18
+ stroke-width="2"
19
+ stroke-linecap="round"
20
+ stroke-linejoin="round"
21
+ aria-hidden="true"
22
+ focusable="false"
23
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
24
+ >
25
+ <path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" />
26
+ <path d="M3 3v5h5" />
27
+ </svg>
28
+ </template>
@@ -0,0 +1,28 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * A circular arrow turning clockwise, the glyph of a quarter turn to the right. Every attribute below is a DEFAULT: `v-bind="$attrs"` is written last, so a
6
+ * caller's `stroke-width` replaces the 2, and `class` is merged through `cn` so `size-3` beats the
7
+ * `size-4`. Drawn inline because the package ships no icon set (ADR 0013).
8
+ */
9
+ defineOptions({ inheritAttrs: false });
10
+ </script>
11
+
12
+ <template>
13
+ <svg
14
+ xmlns="http://www.w3.org/2000/svg"
15
+ viewBox="0 0 24 24"
16
+ fill="none"
17
+ stroke="currentColor"
18
+ stroke-width="2"
19
+ stroke-linecap="round"
20
+ stroke-linejoin="round"
21
+ aria-hidden="true"
22
+ focusable="false"
23
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
24
+ >
25
+ <path d="M21 12a9 9 0 1 1-9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" />
26
+ <path d="M21 3v5h-5" />
27
+ </svg>
28
+ </template>
@@ -0,0 +1,31 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * Every attribute below is a DEFAULT. `v-bind="$attrs"` is written last on purpose: the
6
+ * compiler emits `mergeProps` in source order and the last argument wins, so a caller's
7
+ * `stroke-width="3"` replaces the 2 rather than being silently dropped. Written first — as
8
+ * these were — it is dropped with no error. The first consumer in this repository to hit
9
+ * exactly that needed a different glyph, the check (see `CheckIcon.vue`). `class` is the one
10
+ * attribute that is merged rather than replaced, by `cn`, so `size-3` beats the `size-4`.
11
+ */
12
+ defineOptions({ inheritAttrs: false });
13
+ </script>
14
+
15
+ <template>
16
+ <svg
17
+ xmlns="http://www.w3.org/2000/svg"
18
+ viewBox="0 0 24 24"
19
+ fill="none"
20
+ stroke="currentColor"
21
+ stroke-width="2"
22
+ stroke-linecap="round"
23
+ stroke-linejoin="round"
24
+ aria-hidden="true"
25
+ focusable="false"
26
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
27
+ >
28
+ <circle cx="11" cy="11" r="7" />
29
+ <path d="m20 20-3.5-3.5" />
30
+ </svg>
31
+ </template>
@@ -0,0 +1,29 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * Drawn as an outline. A caller fills it with `fill="currentColor"`, which is how the rating
6
+ * tells a given star from one not yet given by shape as well as by colour. See `CheckIcon`
7
+ * for why the caller's attributes are bound last.
8
+ */
9
+ defineOptions({ inheritAttrs: false });
10
+ </script>
11
+
12
+ <template>
13
+ <svg
14
+ xmlns="http://www.w3.org/2000/svg"
15
+ viewBox="0 0 24 24"
16
+ fill="none"
17
+ stroke="currentColor"
18
+ stroke-width="2"
19
+ stroke-linecap="round"
20
+ stroke-linejoin="round"
21
+ aria-hidden="true"
22
+ focusable="false"
23
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
24
+ >
25
+ <path
26
+ d="M12.00 3.50 L14.59 9.44 L21.04 10.06 L16.18 14.36 L17.58 20.69 L12.00 17.40 L6.42 20.69 L7.82 14.36 L2.96 10.06 L9.41 9.44 Z"
27
+ />
28
+ </svg>
29
+ </template>
@@ -0,0 +1,29 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * A warning triangle with an exclamation mark, the glyph beside a message about something refused. Every attribute below is a DEFAULT: `v-bind="$attrs"` is written last, so a
6
+ * caller's `stroke-width` replaces the 2, and `class` is merged through `cn` so `size-3` beats the
7
+ * `size-4`. Drawn inline because the package ships no icon set (ADR 0013).
8
+ */
9
+ defineOptions({ inheritAttrs: false });
10
+ </script>
11
+
12
+ <template>
13
+ <svg
14
+ xmlns="http://www.w3.org/2000/svg"
15
+ viewBox="0 0 24 24"
16
+ fill="none"
17
+ stroke="currentColor"
18
+ stroke-width="2"
19
+ stroke-linecap="round"
20
+ stroke-linejoin="round"
21
+ aria-hidden="true"
22
+ focusable="false"
23
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
24
+ >
25
+ <path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" />
26
+ <path d="M12 9v4" />
27
+ <path d="M12 17h.01" />
28
+ </svg>
29
+ </template>
@@ -0,0 +1,27 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * Every attribute below is a DEFAULT; see the contract in `index.ts`. `v-bind` is written
6
+ * last so a caller's attributes win, and `class` is merged through `cn`.
7
+ */
8
+ defineOptions({ inheritAttrs: false });
9
+ </script>
10
+
11
+ <template>
12
+ <svg
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ viewBox="0 0 24 24"
15
+ fill="none"
16
+ stroke="currentColor"
17
+ stroke-width="2"
18
+ stroke-linecap="round"
19
+ stroke-linejoin="round"
20
+ aria-hidden="true"
21
+ focusable="false"
22
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
23
+ >
24
+ <path d="M7 4v6a5 5 0 0 0 10 0V4" />
25
+ <path d="M6 20h12" />
26
+ </svg>
27
+ </template>
@@ -0,0 +1,28 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * A bent arrow returning to where it started, the glyph of putting a change back as it was. Every attribute below is a DEFAULT: `v-bind="$attrs"` is written last, so a
6
+ * caller's `stroke-width` replaces the 2, and `class` is merged through `cn` so `size-3` beats the
7
+ * `size-4`. Drawn inline because the package ships no icon set (ADR 0013).
8
+ */
9
+ defineOptions({ inheritAttrs: false });
10
+ </script>
11
+
12
+ <template>
13
+ <svg
14
+ xmlns="http://www.w3.org/2000/svg"
15
+ viewBox="0 0 24 24"
16
+ fill="none"
17
+ stroke="currentColor"
18
+ stroke-width="2"
19
+ stroke-linecap="round"
20
+ stroke-linejoin="round"
21
+ aria-hidden="true"
22
+ focusable="false"
23
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
24
+ >
25
+ <path d="M9 14 4 9l5-5" />
26
+ <path d="M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11" />
27
+ </svg>
28
+ </template>
@@ -0,0 +1,31 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * Every attribute below is a DEFAULT. `v-bind="$attrs"` is written last on purpose: the
6
+ * compiler emits `mergeProps` in source order and the last argument wins, so a caller's
7
+ * `stroke-width="3"` replaces the 2 rather than being silently dropped. Written first — as
8
+ * these were — it is dropped with no error. The first consumer in this repository to hit
9
+ * exactly that needed a different glyph, the check (see `CheckIcon.vue`). `class` is the one
10
+ * attribute that is merged rather than replaced, by `cn`, so `size-3` beats the `size-4`.
11
+ */
12
+ defineOptions({ inheritAttrs: false });
13
+ </script>
14
+
15
+ <template>
16
+ <svg
17
+ xmlns="http://www.w3.org/2000/svg"
18
+ viewBox="0 0 24 24"
19
+ fill="none"
20
+ stroke="currentColor"
21
+ stroke-width="2"
22
+ stroke-linecap="round"
23
+ stroke-linejoin="round"
24
+ aria-hidden="true"
25
+ focusable="false"
26
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
27
+ >
28
+ <path d="M18 6 6 18" />
29
+ <path d="m6 6 12 12" />
30
+ </svg>
31
+ </template>
@@ -0,0 +1,30 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * A magnifying glass with a plus in its lens, the glyph of an enlarge-the-view action. Every attribute below is a DEFAULT: `v-bind="$attrs"` is written last, so a
6
+ * caller's `stroke-width` replaces the 2, and `class` is merged through `cn` so `size-3` beats the
7
+ * `size-4`. Drawn inline because the package ships no icon set (ADR 0013).
8
+ */
9
+ defineOptions({ inheritAttrs: false });
10
+ </script>
11
+
12
+ <template>
13
+ <svg
14
+ xmlns="http://www.w3.org/2000/svg"
15
+ viewBox="0 0 24 24"
16
+ fill="none"
17
+ stroke="currentColor"
18
+ stroke-width="2"
19
+ stroke-linecap="round"
20
+ stroke-linejoin="round"
21
+ aria-hidden="true"
22
+ focusable="false"
23
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
24
+ >
25
+ <circle cx="11" cy="11" r="7" />
26
+ <path d="m21 21-4.35-4.35" />
27
+ <path d="M11 8v6" />
28
+ <path d="M8 11h6" />
29
+ </svg>
30
+ </template>
@@ -0,0 +1,29 @@
1
+ <script setup lang="ts">
2
+ import { cn } from '../../lib/cn';
3
+
4
+ /**
5
+ * A magnifying glass with a minus in its lens, the glyph of a shrink-the-view action. Every attribute below is a DEFAULT: `v-bind="$attrs"` is written last, so a
6
+ * caller's `stroke-width` replaces the 2, and `class` is merged through `cn` so `size-3` beats the
7
+ * `size-4`. Drawn inline because the package ships no icon set (ADR 0013).
8
+ */
9
+ defineOptions({ inheritAttrs: false });
10
+ </script>
11
+
12
+ <template>
13
+ <svg
14
+ xmlns="http://www.w3.org/2000/svg"
15
+ viewBox="0 0 24 24"
16
+ fill="none"
17
+ stroke="currentColor"
18
+ stroke-width="2"
19
+ stroke-linecap="round"
20
+ stroke-linejoin="round"
21
+ aria-hidden="true"
22
+ focusable="false"
23
+ v-bind="{ ...$attrs, class: cn('size-4', $attrs.class as string | undefined) }"
24
+ >
25
+ <circle cx="11" cy="11" r="7" />
26
+ <path d="m21 21-4.35-4.35" />
27
+ <path d="M8 11h6" />
28
+ </svg>
29
+ </template>
@@ -0,0 +1,37 @@
1
+ // Internal door for the components that show an icon. Deliberately not re-exported from
2
+ // the package barrel: see docs/decisions/0013-icons-as-slots.md.
3
+ //
4
+ // The contract each of these keeps: a 24x24 grid, `currentColor` stroke, `aria-hidden` and
5
+ // not focusable, `size-4` — and every one of those is a DEFAULT, not a fixture. The caller's
6
+ // attributes are bound last, so `<CheckIcon stroke-width="3" />` draws at 3 and
7
+ // `<XIcon aria-hidden="false" />` reaches the accessibility tree. `class` is merged through
8
+ // `cn` rather than replaced, which is what lets `size-3` beat the default `size-4`.
9
+ // `Icon.test.ts` pins both halves.
10
+ export { default as BellIcon } from './BellIcon.vue';
11
+ export { default as BoldIcon } from './BoldIcon.vue';
12
+ export { default as CalendarDaysIcon } from './CalendarDaysIcon.vue';
13
+ export { default as CheckIcon } from './CheckIcon.vue';
14
+ export { default as ChevronDownIcon } from './ChevronDownIcon.vue';
15
+ export { default as ChevronLeftIcon } from './ChevronLeftIcon.vue';
16
+ export { default as ChevronRightIcon } from './ChevronRightIcon.vue';
17
+ export { default as ChevronUpIcon } from './ChevronUpIcon.vue';
18
+ export { default as CircleAlertIcon } from './CircleAlertIcon.vue';
19
+ export { default as ClockIcon } from './ClockIcon.vue';
20
+ export { default as Columns3Icon } from './Columns3Icon.vue';
21
+ export { default as FlipHorizontalIcon } from './FlipHorizontalIcon.vue';
22
+ export { default as ItalicIcon } from './ItalicIcon.vue';
23
+ export { default as LinkIcon } from './LinkIcon.vue';
24
+ export { default as ListIcon } from './ListIcon.vue';
25
+ export { default as ListOrderedIcon } from './ListOrderedIcon.vue';
26
+ export { default as PenLineIcon } from './PenLineIcon.vue';
27
+ export { default as PlusIcon } from './PlusIcon.vue';
28
+ export { default as RotateCcwIcon } from './RotateCcwIcon.vue';
29
+ export { default as RotateCwIcon } from './RotateCwIcon.vue';
30
+ export { default as SearchIcon } from './SearchIcon.vue';
31
+ export { default as StarIcon } from './StarIcon.vue';
32
+ export { default as TriangleAlertIcon } from './TriangleAlertIcon.vue';
33
+ export { default as UnderlineIcon } from './UnderlineIcon.vue';
34
+ export { default as Undo2Icon } from './Undo2Icon.vue';
35
+ export { default as XIcon } from './XIcon.vue';
36
+ export { default as ZoomInIcon } from './ZoomInIcon.vue';
37
+ export { default as ZoomOutIcon } from './ZoomOutIcon.vue';