@astryx-vue/core 0.2.0 → 0.2.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 (220) hide show
  1. package/dist/AppShell/index.js +1 -1
  2. package/dist/{AppShell-EiGyPFbA.js → AppShell-1wNIEtK_.js} +2 -2
  3. package/dist/Avatar/index.d.ts +1 -1
  4. package/dist/Avatar/index.js +1 -1
  5. package/dist/Avatar-jmHInHwj.js +244 -0
  6. package/dist/AvatarGroup/index.d.ts +1 -1
  7. package/dist/AvatarGroup/index.js +1 -1
  8. package/dist/{AvatarGroup-CZcgAMjM.js → AvatarGroup-QyzSrpYA.js} +8 -7
  9. package/dist/Badge/index.d.ts +1 -1
  10. package/dist/Badge/index.js +1 -1
  11. package/dist/Badge-CjDQPF5g.js +30 -0
  12. package/dist/Banner/index.d.ts +1 -1
  13. package/dist/Breadcrumbs/index.d.ts +2 -2
  14. package/dist/Breadcrumbs/index.js +1 -1
  15. package/dist/{Breadcrumbs-C3YZFQ9w.js → Breadcrumbs-C97HmjkC.js} +45 -11
  16. package/dist/Button/index.d.ts +1 -1
  17. package/dist/ButtonGroup/index.d.ts +1 -1
  18. package/dist/Calendar/index.d.ts +2 -2
  19. package/dist/Calendar/index.js +1 -1
  20. package/dist/Calendar-DqC3EDN1.js +352 -0
  21. package/dist/Card/index.d.ts +1 -1
  22. package/dist/Carousel/index.js +1 -1
  23. package/dist/{Carousel-BTtHkKea.js → Carousel-BGUnskjo.js} +2 -2
  24. package/dist/Chat/index.js +1 -1
  25. package/dist/{Chat-DjNxw5gv.js → Chat-DCjXRiOF.js} +8 -8
  26. package/dist/CheckboxInput/index.d.ts +1 -1
  27. package/dist/CheckboxList/index.d.ts +1 -1
  28. package/dist/CheckboxList/index.js +1 -1
  29. package/dist/Citation/index.js +1 -1
  30. package/dist/{Citation-DijdbUUu.js → Citation-DunoAqVH.js} +2 -2
  31. package/dist/ClickableCard/index.d.ts +1 -1
  32. package/dist/Code/index.js +1 -1
  33. package/dist/{CodeBlock-CxTb6j9_.js → CodeBlock-CAF-VJnh.js} +1 -1
  34. package/dist/Collapsible/index.js +1 -1
  35. package/dist/{Collapsible-9MC08X39.js → Collapsible-DvMiYJp7.js} +1 -1
  36. package/dist/CommandPalette/index.js +1 -1
  37. package/dist/{CommandPalette-BD2iODF5.js → CommandPalette-xfm9ldUI.js} +1 -1
  38. package/dist/ComplexSelector/index.d.ts +1 -1
  39. package/dist/ComplexSelector/index.js +1 -1
  40. package/dist/{ComplexSelector-D9iXd5cH.js → ComplexSelector-B6lBTRhP.js} +2 -2
  41. package/dist/ContextMenu/index.d.ts +2 -2
  42. package/dist/ContextMenu/index.js +1 -1
  43. package/dist/{ContextMenu-HS_WqYIg.js → ContextMenu-DUkED3Z3.js} +101 -63
  44. package/dist/DateInput/index.d.ts +2 -2
  45. package/dist/DateInput/index.js +1 -1
  46. package/dist/DateInput-Crcg-CCj.js +376 -0
  47. package/dist/DateRangeInput/index.d.ts +1 -1
  48. package/dist/DateRangeInput/index.js +1 -1
  49. package/dist/{DateRangeInput-1bhPGG2s.js → DateRangeInput-e9KSxBBK.js} +2 -2
  50. package/dist/DateTimeInput/index.d.ts +1 -1
  51. package/dist/DateTimeInput/index.js +1 -1
  52. package/dist/{DateTimeInput-SnPdgk6P.js → DateTimeInput-fSOfuLex.js} +5 -3
  53. package/dist/Divider/index.d.ts +1 -1
  54. package/dist/DropdownMenu/index.d.ts +3 -2
  55. package/dist/DropdownMenu/index.js +3 -2
  56. package/dist/{DropdownMenu-UJGych6v.js → DropdownMenu-8G0B1UND.js} +63 -16
  57. package/dist/DropdownMenu-XvW4BJob.js +164 -0
  58. package/dist/FileInput/index.d.ts +1 -1
  59. package/dist/FileInput/index.js +1 -1
  60. package/dist/{FileInput-BQiwE-GB.js → FileInput-D-fchyQH.js} +2 -2
  61. package/dist/Icon/index.d.ts +4 -3
  62. package/dist/Icon/index.js +3 -2
  63. package/dist/Icon/plugin.d.ts +45 -0
  64. package/dist/Icon/plugin.js +177 -0
  65. package/dist/Icon-Bku25g_K.js +193 -0
  66. package/dist/Lightbox/index.js +1 -1
  67. package/dist/{Lightbox-CshKoB0r.js → Lightbox-uuVGgHxW.js} +2 -2
  68. package/dist/Link/index.d.ts +1 -1
  69. package/dist/Link/index.js +1 -1
  70. package/dist/Link-DqdQZ37C.js +141 -0
  71. package/dist/List/index.d.ts +1 -1
  72. package/dist/Markdown/index.js +1 -1
  73. package/dist/{Markdown-D-Ua055V.js → Markdown-DLICa3db.js} +3 -3
  74. package/dist/MetadataList/index.d.ts +1 -1
  75. package/dist/MetadataList/index.js +1 -1
  76. package/dist/{MetadataList-sYph_d8Q.js → MetadataList-h492rqEN.js} +1 -1
  77. package/dist/MobileNav/index.js +1 -1
  78. package/dist/{MobileNavToggle-DD9D01aj.js → MobileNavToggle-BMj3Wtuq.js} +1 -1
  79. package/dist/MoreMenu/index.d.ts +1 -1
  80. package/dist/MoreMenu/index.js +1 -1
  81. package/dist/{MoreMenu-BVrK5kkk.js → MoreMenu-DkYi5az5.js} +2 -2
  82. package/dist/MultiSelector/index.d.ts +1 -1
  83. package/dist/MultiSelector/index.js +1 -1
  84. package/dist/{MultiSelector-DiYov9sF.js → MultiSelector-C2IS-EaU.js} +2 -2
  85. package/dist/NavItem/index.d.ts +1 -1
  86. package/dist/NumberInput/index.d.ts +2 -2
  87. package/dist/NumberInput/index.js +1 -1
  88. package/dist/NumberInput-CjfAsFwj.js +210 -0
  89. package/dist/Outline/index.js +1 -1
  90. package/dist/{Outline-DQfEBxlc.js → Outline-BTmrtvXR.js} +1 -1
  91. package/dist/OverflowList/index.d.ts +1 -1
  92. package/dist/OverflowList/index.js +1 -1
  93. package/dist/{OverflowList-BU5VCntl.js → OverflowList-CRE8BE7V.js} +1 -1
  94. package/dist/Overlay/index.d.ts +1 -1
  95. package/dist/Pagination/index.d.ts +2 -2
  96. package/dist/Pagination/index.js +1 -1
  97. package/dist/{Pagination-HdhtykeF.js → Pagination-BpGXPmc7.js} +76 -22
  98. package/dist/ProgressBar/index.d.ts +1 -1
  99. package/dist/ProgressBar/index.js +1 -1
  100. package/dist/{ProgressBar-ChDp-7oe.js → ProgressBar-DO9Chic6.js} +31 -11
  101. package/dist/Radio/index.d.ts +1 -1
  102. package/dist/RadioList/index.d.ts +1 -1
  103. package/dist/Resizable/index.js +1 -1
  104. package/dist/{Resizable-BhSMfO5B.js → Resizable-CE8XQDL2.js} +1 -1
  105. package/dist/ScrollableArea/index.d.ts +1 -1
  106. package/dist/SegmentedControl/index.d.ts +1 -1
  107. package/dist/SelectableCard/index.d.ts +1 -1
  108. package/dist/Selector/index.d.ts +2 -2
  109. package/dist/Selector/index.js +1 -1
  110. package/dist/Selector-DkJOLZSR.js +468 -0
  111. package/dist/SideNav/index.d.ts +1 -1
  112. package/dist/SideNav/index.js +1 -1
  113. package/dist/{SideNav-B-Om6Bz3.js → SideNav-DcDWBnXJ.js} +17 -17
  114. package/dist/Stepper/index.d.ts +1 -1
  115. package/dist/Stepper/index.js +1 -1
  116. package/dist/{Stepper-BZ_8SEZt.js → Stepper-DZKaqEoz.js} +1 -1
  117. package/dist/Switch/index.d.ts +1 -1
  118. package/dist/TabList/index.d.ts +1 -1
  119. package/dist/TabList/index.js +1 -1
  120. package/dist/{TabList-Cnc2Hs1H.js → TabList-hm06QPiW.js} +10 -3
  121. package/dist/Table/index.js +1 -1
  122. package/dist/{Table-D-LhAy_J.js → Table-DwehtMap.js} +4 -4
  123. package/dist/TextArea/index.d.ts +1 -1
  124. package/dist/TextArea/index.js +1 -1
  125. package/dist/{TextArea-Cv9UVbzS.js → TextArea-CPwSytdO.js} +12 -6
  126. package/dist/TextInput/index.d.ts +1 -1
  127. package/dist/Thumbnail/index.js +1 -1
  128. package/dist/{Thumbnail-Dc1UpykG.js → Thumbnail-CAOYds8t.js} +11 -11
  129. package/dist/{TimeField-C7t9Knq9.js → TimeField-BGbxCoKU.js} +2 -2
  130. package/dist/TimeInput/index.d.ts +1 -1
  131. package/dist/TimeInput/index.js +1 -1
  132. package/dist/{TimeInput-BXxCOY98.js → TimeInput-DJP3l4ZS.js} +1 -1
  133. package/dist/Timestamp/index.d.ts +1 -1
  134. package/dist/Timestamp/index.js +2 -1
  135. package/dist/{Timestamp-DlZSmgCJ.js → Timestamp-BzRp8uWc.js} +4 -121
  136. package/dist/Toast/index.d.ts +2 -2
  137. package/dist/Toast/index.js +1 -1
  138. package/dist/{Toast-BKXPvEMp.js → Toast-C2ML-bmi.js} +37 -7
  139. package/dist/ToggleButton/index.d.ts +1 -1
  140. package/dist/Token/index.js +1 -1
  141. package/dist/{Token-wt4e80IM.js → Token-CjocuhzE.js} +1 -1
  142. package/dist/Tokenizer/index.js +1 -1
  143. package/dist/{Tokenizer-nmTqdS9n.js → Tokenizer-mYES5SPM.js} +2 -2
  144. package/dist/Toolbar/index.d.ts +1 -1
  145. package/dist/TopNav/index.d.ts +1 -1
  146. package/dist/TopNav/index.js +1 -1
  147. package/dist/{TopNav-notp-mJx.js → TopNav-C2t6JkZb.js} +3 -3
  148. package/dist/TreeList/index.d.ts +1 -1
  149. package/dist/TreeList/index.js +1 -1
  150. package/dist/{TreeList-s1xBQ0qq.js → TreeList-THJ0KamE.js} +3 -3
  151. package/dist/Typeahead/index.js +1 -1
  152. package/dist/{Typeahead-VAuiCurV.js → Typeahead-D7VnvRpK.js} +2 -2
  153. package/dist/{context-Dbo22sck.js → context-DzcK4T_C.js} +4 -2
  154. package/dist/formatInstant-BDWUIxS7.js +119 -0
  155. package/dist/{index-Bainr_3n.d.ts → index-3p2BDVHq.d.ts} +1 -1
  156. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  157. package/dist/{index-CTolyeii.d.ts → index-BLOEjvaM.d.ts} +16 -2
  158. package/dist/{index-z4p2k9VR.d.ts → index-Bgv4ZmBl.d.ts} +20 -2
  159. package/dist/{index-BoRIw-bP.d.ts → index-Bt7ewoz2.d.ts} +32 -2
  160. package/dist/{index-uQrLBZfF.d.ts → index-Bu3oXIIS.d.ts} +24 -0
  161. package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
  162. package/dist/{index-C59PdX9L.d.ts → index-CBym0hSq.d.ts} +1 -1
  163. package/dist/index-CJlBAXwj.d.ts +100 -0
  164. package/dist/{index-DT9S92sh.d.ts → index-CNjbOgty.d.ts} +15 -0
  165. package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
  166. package/dist/{index-DoFCm2Q2.d.ts → index-Clmz00IK.d.ts} +2 -0
  167. package/dist/{index-DRmb-oUa.d.ts → index-CuFLztiI.d.ts} +6 -1
  168. package/dist/{index-fa72tWIU.d.ts → index-D2bSSSBP.d.ts} +1 -1
  169. package/dist/{index-NzLDrOkk.d.ts → index-DAiGhkNZ.d.ts} +15 -2
  170. package/dist/{index-DOUEn7V0.d.ts → index-DQAnGHu7.d.ts} +2 -2
  171. package/dist/{index-BfOtLyNH.d.ts → index-D_nYxnNv.d.ts} +1 -1
  172. package/dist/{index-C6iJwTL0.d.ts → index-DeOftUMq.d.ts} +181 -72
  173. package/dist/{index-Bn_odHQ9.d.ts → index-Dg3ZmwEg.d.ts} +12 -1
  174. package/dist/{index-BiMGXtD-.d.ts → index-DimuSES0.d.ts} +14 -1
  175. package/dist/{index-C_2Z65Rp.d.ts → index-DnEh-HA0.d.ts} +1 -1
  176. package/dist/{index-D-ZuubCK.d.ts → index-DnSrjbjP.d.ts} +1 -1
  177. package/dist/{index-BtPZKO20.d.ts → index-I4J7gwa1.d.ts} +49 -7
  178. package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
  179. package/dist/{index-C7mxUcDR.d.ts → index-Z_onS2lR.d.ts} +2 -2
  180. package/dist/{index-CVn0GBdB.d.ts → index-cG1E0U2s.d.ts} +1 -1
  181. package/dist/{index-DEeJowZf.d.ts → index-cGagYM1g.d.ts} +15 -2
  182. package/dist/{index-Ck8qy6Rf.d.ts → index-c_TaW8mM.d.ts} +24 -2
  183. package/dist/index.d.ts +68 -67
  184. package/dist/index.js +98 -95
  185. package/dist/locale/index.d.ts +1 -1
  186. package/dist/locale/index.js +1 -1
  187. package/dist/registry-B1ObuP--.d.ts +45 -0
  188. package/dist/registry-C7OZb0PJ.js +135 -0
  189. package/dist/{types-DZoEm_DG.d.ts → types-BKcxXW--.d.ts} +22 -5
  190. package/dist/{index-B8MbfMwV.d.ts → types-DDAAT1Xd.d.ts} +36 -82
  191. package/package.json +6 -1
  192. package/styles/avatar.css +14 -0
  193. package/styles/badge.css +8 -0
  194. package/styles/breadcrumbs.css +6 -1
  195. package/styles/button.css +13 -0
  196. package/styles/calendar.css +16 -0
  197. package/styles/card.css +2 -0
  198. package/styles/chat.css +5 -2
  199. package/styles/dropdown-menu.css +11 -0
  200. package/styles/icon.css +38 -8
  201. package/styles/link.css +5 -0
  202. package/styles/number-input.css +22 -0
  203. package/styles/pagination.css +45 -1
  204. package/styles/progress-bar.css +4 -0
  205. package/styles/selector.css +58 -0
  206. package/styles/tab-list.css +15 -0
  207. package/styles/text-area.css +17 -0
  208. package/styles/text-input.css +5 -0
  209. package/styles/toast.css +7 -0
  210. package/styles/toolbar.css +11 -0
  211. package/dist/Avatar-5s3HSrtN.js +0 -136
  212. package/dist/Badge-Ba0EwsTj.js +0 -19
  213. package/dist/Calendar-BG7wEsro.js +0 -277
  214. package/dist/DateInput-DE2TN1Rq.js +0 -250
  215. package/dist/Icon-Dfr4k6-S.js +0 -86
  216. package/dist/Link-CprjOuTI.js +0 -92
  217. package/dist/NumberInput-CTYiQxHq.js +0 -147
  218. package/dist/Selector-Da-2BO3q.js +0 -325
  219. package/dist/index-DtjAdYEc.d.ts +0 -68
  220. package/dist/{CheckboxList-EsIEXjK_.js → CheckboxList-BbCPiend.js} +1 -1
@@ -1,2 +1,2 @@
1
- import { Jn as DateTimeInputEmits, Xn as DateTimeInputSize, Yn as DateTimeInputProps, qn as _default } from "../index-C6iJwTL0.js";
1
+ import { Jn as DateTimeInputEmits, Xn as DateTimeInputSize, Yn as DateTimeInputProps, qn as _default } from "../index-DeOftUMq.js";
2
2
  export { _default as DateTimeInput, type DateTimeInputEmits, type DateTimeInputProps, type DateTimeInputSize };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateTimeInput-SnPdgk6P.js";
1
+ import { t as _sfc_main } from "../DateTimeInput-fSOfuLex.js";
2
2
  export { _sfc_main as DateTimeInput };
@@ -1,9 +1,9 @@
1
- import { a as useAstryxMessages } from "./context-Dbo22sck.js";
1
+ import { a as useAstryxMessages } from "./context-DzcK4T_C.js";
2
2
  import { t as _sfc_main$1 } from "./FieldIcon--NTgW5IU.js";
3
3
  import { t as _sfc_main$2 } from "./IconButton-BNQuz9W_.js";
4
4
  import { t as _sfc_main$3 } from "./Field-8zRxzDHE.js";
5
- import { t as _sfc_main$4 } from "./DateInput-DE2TN1Rq.js";
6
- import { t as _sfc_main$5 } from "./TimeField-C7t9Knq9.js";
5
+ import { t as _sfc_main$4 } from "./DateInput-Crcg-CCj.js";
6
+ import { t as _sfc_main$5 } from "./TimeField-BGbxCoKU.js";
7
7
  import { computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, mergeModels, openBlock, ref, unref, useId, useModel, watch, withCtx } from "vue";
8
8
  import "../styles/date-time-input.css";
9
9
  //#region src/DateTimeInput/DateTimeInput.vue
@@ -127,6 +127,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
127
127
  id: generatedId,
128
128
  "model-value": dateValue.value,
129
129
  label: unref(messages).dateTimeInput.dateLabel,
130
+ format: "system_date",
131
+ "is-label-hidden": "",
130
132
  placeholder: __props.placeholder,
131
133
  disabled: __props.isDisabled,
132
134
  size: __props.size,
@@ -1,2 +1,2 @@
1
- import { i as DividerVariant, n as DividerOrientation, r as DividerProps, t as _default } from "../index-HV6W3xCx.js";
1
+ import { i as DividerVariant, n as DividerOrientation, r as DividerProps, t as _default } from "../index-Byar3h1e.js";
2
2
  export { _default as Divider, type DividerOrientation, type DividerProps, type DividerVariant };
@@ -1,2 +1,3 @@
1
- import { S as DropdownMenuTriggerProps, _ as DropdownMenuOption, a as DropdownMenuContextValue, b as DropdownMenuSize, c as DropdownMenuDividerData, d as DropdownMenuGroupSlots, f as DropdownMenuItemData, g as DropdownMenuItemVariant, h as DropdownMenuItemSlots, i as _default, l as DropdownMenuEmits, m as DropdownMenuItemProps, n as _default$2, o as useDropdownMenuContext, p as DropdownMenuItemEmits, r as _default$1, s as DropdownMenuButtonProps, t as _default$3, u as DropdownMenuGroupProps, v as DropdownMenuProps, x as DropdownMenuSlots, y as DropdownMenuSection } from "../index-B8MbfMwV.js";
2
- export { _default as DropdownMenu, type DropdownMenuButtonProps, type DropdownMenuContextValue, _default$1 as DropdownMenuDivider, type DropdownMenuDividerData, type DropdownMenuEmits, _default$2 as DropdownMenuGroup, type DropdownMenuGroupProps, type DropdownMenuGroupSlots, _default$3 as DropdownMenuItem, type DropdownMenuItemData, type DropdownMenuItemEmits, type DropdownMenuItemProps, type DropdownMenuItemSlots, type DropdownMenuItemVariant, type DropdownMenuOption, type DropdownMenuProps, type DropdownMenuSection, type DropdownMenuSize, type DropdownMenuSlots, type DropdownMenuTriggerProps, useDropdownMenuContext };
1
+ import { _ as DropdownMenuSubMenuProps, a as DropdownMenuGroupSlots, c as DropdownMenuItemProps, d as DropdownMenuOption, f as DropdownMenuPresentation, g as DropdownMenuSlots, h as DropdownMenuSize, i as DropdownMenuGroupProps, l as DropdownMenuItemSlots, m as DropdownMenuSection, n as DropdownMenuDividerData, o as DropdownMenuItemData, p as DropdownMenuProps, r as DropdownMenuEmits, s as DropdownMenuItemEmits, t as DropdownMenuButtonProps, u as DropdownMenuItemVariant, v as DropdownMenuSubMenuSlots, y as DropdownMenuTriggerProps } from "../types-DDAAT1Xd.js";
2
+ import { a as _default, i as _default$1, n as _default$3, o as DropdownMenuContextValue, r as _default$2, s as useDropdownMenuContext, t as _default$4 } from "../index-CJlBAXwj.js";
3
+ export { _default as DropdownMenu, type DropdownMenuButtonProps, type DropdownMenuContextValue, _default$1 as DropdownMenuDivider, type DropdownMenuDividerData, type DropdownMenuEmits, _default$2 as DropdownMenuGroup, type DropdownMenuGroupProps, type DropdownMenuGroupSlots, _default$3 as DropdownMenuItem, type DropdownMenuItemData, type DropdownMenuItemEmits, type DropdownMenuItemProps, type DropdownMenuItemSlots, type DropdownMenuItemVariant, type DropdownMenuOption, type DropdownMenuPresentation, type DropdownMenuProps, type DropdownMenuSection, type DropdownMenuSize, type DropdownMenuSlots, _default$4 as DropdownMenuSubMenu, type DropdownMenuSubMenuProps, type DropdownMenuSubMenuSlots, type DropdownMenuTriggerProps, useDropdownMenuContext };
@@ -1,2 +1,3 @@
1
- import { a as useDropdownMenuContext, i as _sfc_main$1, n as _sfc_main$3, r as _sfc_main$2, t as _sfc_main } from "../DropdownMenu-UJGych6v.js";
2
- export { _sfc_main as DropdownMenu, _sfc_main$1 as DropdownMenuDivider, _sfc_main$2 as DropdownMenuGroup, _sfc_main$3 as DropdownMenuItem, useDropdownMenuContext };
1
+ import { a as _sfc_main$1, c as useDropdownMenuContext, i as _sfc_main$2, r as _sfc_main$3, t as _sfc_main } from "../DropdownMenu-8G0B1UND.js";
2
+ import { t as _sfc_main$4 } from "../DropdownMenu-XvW4BJob.js";
3
+ export { _sfc_main as DropdownMenu, _sfc_main$1 as DropdownMenuDivider, _sfc_main$2 as DropdownMenuGroup, _sfc_main$3 as DropdownMenuItem, _sfc_main$4 as DropdownMenuSubMenu, useDropdownMenuContext };
@@ -1,10 +1,12 @@
1
1
  import { t as _sfc_main$5 } from "./Button-DrqeomlE.js";
2
+ import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
2
3
  import { t as useDismiss } from "./useDismiss-CAiHU6QD.js";
3
4
  import { t as useTypeahead } from "./useTypeahead-PAK8lMYz.js";
4
- import { t as _sfc_main$6 } from "./Icon-Dfr4k6-S.js";
5
- import { t as _sfc_main$7 } from "./Divider-BtwnL18I.js";
6
- import { t as _sfc_main$8 } from "./Item-C1z6gXn8.js";
7
5
  import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
6
+ import { t as _sfc_main$6 } from "./BottomSheet-Dg95HB1s.js";
7
+ import { t as _sfc_main$7 } from "./Icon-Bku25g_K.js";
8
+ import { t as _sfc_main$8 } from "./Divider-BtwnL18I.js";
9
+ import { t as _sfc_main$9 } from "./Item-C1z6gXn8.js";
8
10
  import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, inject, mergeModels, mergeProps, nextTick, normalizeProps, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useSlots, vShow, watch, withCtx, withDirectives } from "vue";
9
11
  import "../styles/dropdown-menu.css";
10
12
  //#region src/DropdownMenu/context.ts
@@ -57,7 +59,7 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
57
59
  __name: "DropdownMenuDivider",
58
60
  setup(__props) {
59
61
  return (_ctx, _cache) => {
60
- return openBlock(), createBlock(_sfc_main$7, { class: "astryx-dropdown-menu-divider" });
62
+ return openBlock(), createBlock(_sfc_main$8, { class: "astryx-dropdown-menu-divider" });
61
63
  };
62
64
  }
63
65
  });
@@ -116,7 +118,7 @@ const _hoisted_2$1 = {
116
118
  key: 0,
117
119
  class: "astryx-item__start"
118
120
  };
119
- const _hoisted_3 = { class: "astryx-item__content" };
121
+ const _hoisted_3$1 = { class: "astryx-item__content" };
120
122
  const _hoisted_4 = {
121
123
  key: 0,
122
124
  class: "astryx-item__label"
@@ -220,14 +222,14 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
220
222
  onClick: handleClick,
221
223
  onPointermove: handlePointerMove
222
224
  }), [
223
- hasStart.value ? (openBlock(), createElementBlock("span", _hoisted_2$1, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$6, {
225
+ hasStart.value ? (openBlock(), createElementBlock("span", _hoisted_2$1, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$7, {
224
226
  color: iconColor.value,
225
227
  icon: __props.icon,
226
228
  size: "sm"
227
229
  }, null, 8, ["color", "icon"])])])) : createCommentVNode("v-if", true),
228
- createElementVNode("span", _hoisted_3, [hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_4, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])])) : createCommentVNode("v-if", true), hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_5, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])) : createCommentVNode("v-if", true)]),
230
+ createElementVNode("span", _hoisted_3$1, [hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_4, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])])) : createCommentVNode("v-if", true), hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_5, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])) : createCommentVNode("v-if", true)]),
229
231
  hasEnd.value ? (openBlock(), createElementBlock("span", _hoisted_6, [renderSlot(_ctx.$slots, "endContent")])) : createCommentVNode("v-if", true)
230
- ], 16, _hoisted_1$1)) : (openBlock(), createBlock(_sfc_main$8, mergeProps({ key: 1 }, unref(attrs), {
232
+ ], 16, _hoisted_1$1)) : (openBlock(), createBlock(_sfc_main$9, mergeProps({ key: 1 }, unref(attrs), {
231
233
  class: "astryx-dropdown-menu-item",
232
234
  role: "menuitem",
233
235
  "data-menu-size": menuSize.value,
@@ -243,7 +245,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
243
245
  }), createSlots({ _: 2 }, [
244
246
  hasStart.value ? {
245
247
  name: "startContent",
246
- fn: withCtx(() => [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$6, {
248
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$7, {
247
249
  color: iconColor.value,
248
250
  icon: __props.icon,
249
251
  size: "sm"
@@ -451,6 +453,11 @@ function useMenuFocus(options) {
451
453
  //#region src/DropdownMenu/DropdownMenu.vue
452
454
  const _hoisted_1 = ["data-open"];
453
455
  const _hoisted_2 = [
456
+ "id",
457
+ "aria-labelledby",
458
+ "aria-label"
459
+ ];
460
+ const _hoisted_3 = [
454
461
  "id",
455
462
  "aria-labelledby",
456
463
  "aria-label",
@@ -459,6 +466,7 @@ const _hoisted_2 = [
459
466
  const GAP = 4;
460
467
  const DEFAULT_MAX_WIDTH = 320;
461
468
  const DEFAULT_MAX_HEIGHT = "300px";
469
+ const COMPACT_TOUCH_QUERY = "(max-width: 639px) and (pointer: coarse) and (hover: none)";
462
470
  const _sfc_main = /*@__PURE__*/ defineComponent({
463
471
  name: "AstryxDropdownMenu",
464
472
  inheritAttrs: false,
@@ -470,6 +478,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
470
478
  menuWidth: {},
471
479
  menuMaxHeight: {},
472
480
  placement: { default: "below" },
481
+ presentation: { default: "popover" },
473
482
  alignment: { default: "start" },
474
483
  hasChevron: {
475
484
  type: Boolean,
@@ -506,7 +515,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
506
515
  const focusLastOnOpen = shallowRef(false);
507
516
  let openModality = "keyboard";
508
517
  let armedTriggerClickGuard = false;
518
+ const isCompactTouch = useMediaQuery(COMPACT_TOUCH_QUERY);
519
+ const isSheet = computed(() => props.presentation === "bottom-sheet" || props.presentation === "adaptive" && isCompactTouch.value);
520
+ const sheetOpen = computed({
521
+ get: () => isSheet.value && isOpen.value,
522
+ set: (open) => {
523
+ if (!open) closeMenu();
524
+ }
525
+ });
509
526
  const buttonProps = computed(() => props.button ?? {});
527
+ const sheetLabel = computed(() => typeof buttonProps.value.label === "string" ? buttonProps.value.label : "Menu");
510
528
  const menuSize = computed(() => buttonProps.value.size ?? "md");
511
529
  const isIconOnly = computed(() => buttonProps.value.isIconOnly === true);
512
530
  const hasChevron = computed(() => props.hasChevron && !isIconOnly.value);
@@ -548,9 +566,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
548
566
  gap: GAP
549
567
  });
550
568
  watch(isOpen, (nowOpen) => {
551
- layerIsOpen.value = nowOpen;
569
+ layerIsOpen.value = nowOpen && !isSheet.value;
552
570
  });
553
571
  const surfaceStyle = computed(() => {
572
+ if (isSheet.value) return {};
554
573
  const style = {
555
574
  "top": `${position.value.top}px`,
556
575
  "left": `${position.value.left}px`,
@@ -580,7 +599,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
580
599
  useDismiss({
581
600
  container: surfaceRef,
582
601
  trigger: anchorRef,
583
- isEnabled: computed(() => isOpen.value),
602
+ isEnabled: computed(() => isOpen.value && !isSheet.value),
584
603
  onDismiss: closeMenu
585
604
  });
586
605
  function emitOpenChange(next) {
@@ -608,7 +627,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
608
627
  return anchor.querySelector("button, a[href], [role=\"button\"], [tabindex]");
609
628
  }
610
629
  watch(isOpen, async (nowOpen) => {
611
- layerIsOpen.value = nowOpen;
630
+ layerIsOpen.value = nowOpen && !isSheet.value;
612
631
  if (nowOpen) {
613
632
  anchorWidth.value = anchorRef.value?.getBoundingClientRect().width ?? 0;
614
633
  await nextTick();
@@ -686,6 +705,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
686
705
  }));
687
706
  provide(dropdownMenuContextKey, {
688
707
  closeMenu,
708
+ isOpen,
689
709
  menuSize
690
710
  });
691
711
  onMounted(() => {
@@ -712,7 +732,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
712
732
  onKeydown: onTriggerKeydown
713
733
  }), createSlots({ _: 2 }, [hasChevron.value ? {
714
734
  name: "end",
715
- fn: withCtx(() => [createVNode(_sfc_main$6, {
735
+ fn: withCtx(() => [createVNode(_sfc_main$7, {
716
736
  color: "inherit",
717
737
  icon: "chevronDown",
718
738
  size: "sm"
@@ -722,7 +742,34 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
722
742
  "aria-controls",
723
743
  "aria-expanded",
724
744
  "tooltip"
725
- ]))], 8, _hoisted_1), (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(Transition, {
745
+ ]))], 8, _hoisted_1), isSheet.value ? (openBlock(), createBlock(_sfc_main$6, {
746
+ key: 0,
747
+ "is-open": sheetOpen.value,
748
+ "onUpdate:isOpen": _cache[0] || (_cache[0] = ($event) => sheetOpen.value = $event),
749
+ height: "hug",
750
+ label: sheetLabel.value,
751
+ padding: 2
752
+ }, {
753
+ default: withCtx(() => [createElementVNode("div", mergeProps({
754
+ id: surfaceId.value,
755
+ ref_key: "surfaceRef",
756
+ ref: surfaceRef
757
+ }, forwardedAttrs.value, {
758
+ "aria-labelledby": menuAriaLabelledBy.value,
759
+ "aria-label": menuAriaLabel.value,
760
+ class: ["astryx-dropdown-menu is-sheet", unref(attrs).class],
761
+ role: "menu",
762
+ tabindex: "-1",
763
+ onKeydown: onSurfaceKeydown
764
+ }), [__props.items != null ? (openBlock(), createBlock(unref(DropdownMenuItems), {
765
+ key: 0,
766
+ items: __props.items
767
+ }, null, 8, ["items"])) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)], 16, _hoisted_2)]),
768
+ _: 3
769
+ }, 8, ["is-open", "label"])) : (openBlock(), createBlock(Teleport, {
770
+ key: 1,
771
+ to: "body"
772
+ }, [createVNode(Transition, {
726
773
  name: "astryx-dropdown-menu",
727
774
  persisted: ""
728
775
  }, {
@@ -742,11 +789,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
742
789
  }), [__props.items != null ? (openBlock(), createBlock(unref(DropdownMenuItems), {
743
790
  key: 0,
744
791
  items: __props.items
745
- }, null, 8, ["items"])) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)], 16, _hoisted_2), [[vShow, isOpen.value]])]),
792
+ }, null, 8, ["items"])) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)], 16, _hoisted_3), [[vShow, isOpen.value]])]),
746
793
  _: 3
747
794
  })]))], 64);
748
795
  };
749
796
  }
750
797
  });
751
798
  //#endregion
752
- export { useDropdownMenuContext as a, _sfc_main$4 as i, _sfc_main$1 as n, _sfc_main$2 as r, _sfc_main as t };
799
+ export { _sfc_main$4 as a, useDropdownMenuContext as c, _sfc_main$2 as i, useMenuFocus as n, MENU_ITEM_ROLES as o, _sfc_main$1 as r, activateMenuItem as s, _sfc_main as t };
@@ -0,0 +1,164 @@
1
+ import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
2
+ import { t as _sfc_main$1 } from "./Icon-Bku25g_K.js";
3
+ import { c as useDropdownMenuContext, n as useMenuFocus, o as MENU_ITEM_ROLES, s as activateMenuItem } from "./DropdownMenu-8G0B1UND.js";
4
+ import { t as _sfc_main$2 } from "./Item-C1z6gXn8.js";
5
+ import { Fragment, Teleport, computed, createBlock, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, nextTick, normalizeStyle, onBeforeUnmount, openBlock, ref, renderSlot, unref, useSlots, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
6
+ import "../styles/dropdown-menu.css";
7
+ //#region src/DropdownMenu/DropdownMenuSubMenu.vue
8
+ const _sfc_main = /*@__PURE__*/ defineComponent({
9
+ name: "AstryxDropdownMenuSubMenu",
10
+ inheritAttrs: false,
11
+ __name: "DropdownMenuSubMenu",
12
+ props: {
13
+ label: {},
14
+ icon: {},
15
+ description: {},
16
+ isDisabled: {
17
+ type: Boolean,
18
+ default: false
19
+ }
20
+ },
21
+ setup(__props) {
22
+ const props = __props;
23
+ const slots = useSlots();
24
+ const menu = useDropdownMenuContext();
25
+ const rowComponent = ref(null);
26
+ const rowRef = computed(() => rowComponent.value?.element ?? null);
27
+ const flyoutRef = ref(null);
28
+ const flyoutOpen = ref(false);
29
+ const menuSize = computed(() => menu?.menuSize.value ?? "md");
30
+ const density = computed(() => menuSize.value === "sm" ? "compact" : "balanced");
31
+ const hasStart = computed(() => slots.icon != null || props.icon != null);
32
+ const focus = useMenuFocus({ list: flyoutRef });
33
+ const { position } = usePositionedLayer({
34
+ anchor: rowRef,
35
+ layer: flyoutRef,
36
+ isOpen: flyoutOpen,
37
+ placement: computed(() => "end"),
38
+ alignment: computed(() => "start"),
39
+ gap: 4
40
+ });
41
+ const flyoutStyle = computed(() => ({
42
+ top: `${position.value.top}px`,
43
+ left: `${position.value.left}px`,
44
+ zIndex: 1001
45
+ }));
46
+ let closeTimer = 0;
47
+ function cancelClose() {
48
+ if (closeTimer !== 0) window.clearTimeout(closeTimer);
49
+ closeTimer = 0;
50
+ }
51
+ function scheduleClose() {
52
+ cancelClose();
53
+ closeTimer = window.setTimeout(() => {
54
+ flyoutOpen.value = false;
55
+ }, 120);
56
+ }
57
+ async function openFlyout() {
58
+ if (props.isDisabled) return;
59
+ cancelClose();
60
+ flyoutOpen.value = true;
61
+ await nextTick();
62
+ focus.focusFirst();
63
+ }
64
+ function closeFlyout() {
65
+ cancelClose();
66
+ flyoutOpen.value = false;
67
+ rowComponent.value?.focus();
68
+ }
69
+ function onFlyoutKeydown(event) {
70
+ if (event.key === "ArrowLeft" || event.key === "Escape") {
71
+ event.preventDefault();
72
+ event.stopPropagation();
73
+ closeFlyout();
74
+ return;
75
+ }
76
+ if (event.key === "Enter" || event.key === " ") {
77
+ event.preventDefault();
78
+ event.stopPropagation();
79
+ const focused = document.activeElement;
80
+ if (focused instanceof HTMLElement && MENU_ITEM_ROLES.has(focused.getAttribute("role") ?? "")) activateMenuItem(focused, event);
81
+ return;
82
+ }
83
+ event.stopPropagation();
84
+ focus.handleKeyDown(event);
85
+ }
86
+ watch(() => menu?.isOpen.value, (open) => {
87
+ if (!open) flyoutOpen.value = false;
88
+ });
89
+ onBeforeUnmount(cancelClose);
90
+ return (_ctx, _cache) => {
91
+ return openBlock(), createElementBlock(Fragment, null, [createVNode(_sfc_main$2, {
92
+ ref_key: "rowComponent",
93
+ ref: rowComponent,
94
+ class: "astryx-dropdown-menu-item",
95
+ role: "menuitem",
96
+ "aria-haspopup": "menu",
97
+ "aria-expanded": flyoutOpen.value,
98
+ "data-menu-size": menuSize.value,
99
+ "data-variant": "default",
100
+ density: density.value,
101
+ description: __props.description,
102
+ "is-disabled": __props.isDisabled,
103
+ label: __props.label,
104
+ tabindex: __props.isDisabled ? void 0 : -1,
105
+ "on-click": openFlyout,
106
+ onKeydown: [
107
+ withKeys(withModifiers(openFlyout, ["prevent", "stop"]), ["right"]),
108
+ withKeys(withModifiers(openFlyout, ["prevent", "stop"]), ["enter"]),
109
+ withKeys(withModifiers(openFlyout, ["prevent", "stop"]), ["space"])
110
+ ],
111
+ onPointerenter: openFlyout,
112
+ onPointerleave: scheduleClose
113
+ }, createSlots({
114
+ endContent: withCtx(() => [createVNode(_sfc_main$1, {
115
+ color: "secondary",
116
+ icon: "chevronRight",
117
+ size: "sm"
118
+ })]),
119
+ _: 2
120
+ }, [
121
+ hasStart.value ? {
122
+ name: "startContent",
123
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$1, {
124
+ color: "secondary",
125
+ icon: __props.icon,
126
+ size: "sm"
127
+ }, null, 8, ["icon"])])]),
128
+ key: "0"
129
+ } : void 0,
130
+ unref(slots).label ? {
131
+ name: "label",
132
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "label")]),
133
+ key: "1"
134
+ } : void 0,
135
+ unref(slots).description ? {
136
+ name: "description",
137
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "description")]),
138
+ key: "2"
139
+ } : void 0
140
+ ]), 1032, [
141
+ "aria-expanded",
142
+ "data-menu-size",
143
+ "density",
144
+ "description",
145
+ "is-disabled",
146
+ "label",
147
+ "tabindex",
148
+ "onKeydown"
149
+ ]), (openBlock(), createBlock(Teleport, { to: "body" }, [withDirectives(createElementVNode("div", {
150
+ ref_key: "flyoutRef",
151
+ ref: flyoutRef,
152
+ class: "astryx-dropdown-menu astryx-dropdown-submenu",
153
+ role: "menu",
154
+ style: normalizeStyle(flyoutStyle.value),
155
+ tabindex: "-1",
156
+ onKeydown: onFlyoutKeydown,
157
+ onPointerenter: cancelClose,
158
+ onPointerleave: scheduleClose
159
+ }, [renderSlot(_ctx.$slots, "default")], 36), [[vShow, flyoutOpen.value]])]))], 64);
160
+ };
161
+ }
162
+ });
163
+ //#endregion
164
+ export { _sfc_main as t };
@@ -1,2 +1,2 @@
1
- import { Bn as _default, Gn as FileInputStatus, Hn as FileInputMode, Kn as FileInputValue, Un as FileInputProps, Vn as FileInputEmits, Wn as FileInputSize } from "../index-C6iJwTL0.js";
1
+ import { Bn as _default, Gn as FileInputStatus, Hn as FileInputMode, Kn as FileInputValue, Un as FileInputProps, Vn as FileInputEmits, Wn as FileInputSize } from "../index-DeOftUMq.js";
2
2
  export { _default as FileInput, type FileInputEmits, type FileInputMode, type FileInputProps, type FileInputSize, type FileInputStatus, type FileInputValue };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../FileInput-BQiwE-GB.js";
1
+ import { t as _sfc_main } from "../FileInput-D-fchyQH.js";
2
2
  export { _sfc_main as FileInput };
@@ -1,10 +1,10 @@
1
1
  import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
2
2
  import { t as useAnnounce } from "./announce-Cnio10Wk.js";
3
3
  import { n as selectFiles, t as formatFileSize } from "./useFileSelection-BPtaegqK.js";
4
- import { a as useAstryxMessages } from "./context-Dbo22sck.js";
4
+ import { a as useAstryxMessages } from "./context-DzcK4T_C.js";
5
5
  import { t as _sfc_main$2 } from "./FieldIcon--NTgW5IU.js";
6
6
  import { t as _sfc_main$3 } from "./IconButton-BNQuz9W_.js";
7
- import { t as _sfc_main$4 } from "./Icon-Dfr4k6-S.js";
7
+ import { t as _sfc_main$4 } from "./Icon-Bku25g_K.js";
8
8
  import { t as _sfc_main$5 } from "./Spinner-9cYUCnDy.js";
9
9
  import { t as _sfc_main$6 } from "./Field-8zRxzDHE.js";
10
10
  import { computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, openBlock, shallowRef, toDisplayString, unref, useId, useModel, useTemplateRef, withCtx } from "vue";
@@ -1,3 +1,4 @@
1
- import { a as IconSize, i as IconProps, n as IconColor, o as IconSlots, r as IconName } from "../types-DZoEm_DG.js";
2
- import { a as isIconGlyph, i as iconGlyphSlug, n as ICON_GLYPHS, r as IconGlyphName, t as _default } from "../index-Bainr_3n.js";
3
- export { ICON_GLYPHS, _default as Icon, type IconColor, type IconGlyphName, type IconName, type IconProps, type IconSize, type IconSlots, iconGlyphSlug, isIconGlyph };
1
+ import { a as IconSize, i as IconProps, n as IconColor, o as IconSlots, r as IconName } from "../types-BKcxXW--.js";
2
+ import { a as isIconGlyph, i as iconGlyphSlug, n as ICON_GLYPHS, r as IconGlyphName, t as _default } from "../index-3p2BDVHq.js";
3
+ import { i as addIcon, n as IconifyIcon, r as addCollection, t as IconifyCollection } from "../registry-B1ObuP--.js";
4
+ export { ICON_GLYPHS, _default as Icon, type IconColor, type IconGlyphName, type IconName, type IconProps, type IconSize, type IconSlots, type IconifyCollection, type IconifyIcon, addCollection, addIcon, iconGlyphSlug, isIconGlyph };
@@ -1,2 +1,3 @@
1
- import { i as isIconGlyph, n as ICON_GLYPHS, r as iconGlyphSlug, t as _sfc_main } from "../Icon-Dfr4k6-S.js";
2
- export { ICON_GLYPHS, _sfc_main as Icon, iconGlyphSlug, isIconGlyph };
1
+ import { i as isIconGlyph, n as ICON_GLYPHS, r as iconGlyphSlug, t as _sfc_main } from "../Icon-Bku25g_K.js";
2
+ import { n as addCollection, r as addIcon } from "../registry-C7OZb0PJ.js";
3
+ export { ICON_GLYPHS, _sfc_main as Icon, addCollection, addIcon, iconGlyphSlug, isIconGlyph };
@@ -0,0 +1,45 @@
1
+ import { t as IconifyCollection } from "../registry-B1ObuP--.js";
2
+ //#region src/Icon/plugin.d.ts
3
+ export interface AstryxIconsOptions {
4
+ /**
5
+ * Collection prefixes to read, such as `['carbon']`.
6
+ *
7
+ * When omitted, every `@iconify-json/*` dependency of the project is used.
8
+ */
9
+ collections?: readonly string[];
10
+ /**
11
+ * Read a collection by prefix. The default reads
12
+ * `@iconify-json/<prefix>/icons.json` from the project.
13
+ */
14
+ loadCollection?: (prefix: string, root: string) => IconifyCollection | undefined;
15
+ }
16
+ interface AstryxIconsPlugin {
17
+ name: 'astryx-icons';
18
+ enforce: 'pre';
19
+ configResolved: (config: {
20
+ root: string;
21
+ }) => void;
22
+ resolveId: (id: string) => string | undefined;
23
+ load: (id: string) => string | undefined;
24
+ transform: (code: string, id: string) => {
25
+ code: string;
26
+ map: null;
27
+ } | undefined;
28
+ }
29
+ /**
30
+ * Vite plugin that bundles only the icons a project names in source.
31
+ *
32
+ * A static `name="carbon:settings"` becomes an import of that one icon. The
33
+ * collection JSON stays on disk; the client bundle receives the used bodies.
34
+ * Names built at runtime are invisible here — register those with
35
+ * `addCollection`.
36
+ */
37
+ export declare function astryxIcons(options?: AstryxIconsOptions): AstryxIconsPlugin;
38
+ /** Static icon names written as `collection:icon`, or as a `name` binding. */
39
+ export declare function extractIconCandidates(code: string): string[];
40
+ /**
41
+ * VitePress sets the Vite root to `docs/`, which has no package.json.
42
+ * Walk up to the package that actually depends on `@iconify-json/*`.
43
+ */
44
+ export declare function findPackageRoot(start: string): string;
45
+ //#endregion