@astryx-vue/core 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/dist/AppShell/index.js +1 -1
  2. package/dist/{AppShell-EiGyPFbA.js → AppShell-Cb41gIAj.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 +2 -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-CTQ7fjDn.js} +45 -11
  16. package/dist/ButtonGroup/index.d.ts +1 -1
  17. package/dist/Calendar/index.d.ts +2 -2
  18. package/dist/Calendar/index.js +1 -1
  19. package/dist/Calendar-BFaI5AMv.js +352 -0
  20. package/dist/Card/index.d.ts +1 -1
  21. package/dist/Carousel/index.js +1 -1
  22. package/dist/{Carousel-BTtHkKea.js → Carousel-X0cuQkvg.js} +2 -2
  23. package/dist/Chat/index.d.ts +2 -2
  24. package/dist/Chat/index.js +2 -2
  25. package/dist/Chat-M0tiGrNT.js +3148 -0
  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-C1veUk5p.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-DesTJAkm.js} +1 -1
  34. package/dist/Collapsible/index.js +1 -1
  35. package/dist/{Collapsible-9MC08X39.js → Collapsible-BestK35V.js} +1 -1
  36. package/dist/CommandPalette/index.js +1 -1
  37. package/dist/{CommandPalette-BD2iODF5.js → CommandPalette-BArt97V8.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-CAoig1RK.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-9Im6i43E.js} +101 -63
  44. package/dist/DateInput/index.d.ts +2 -2
  45. package/dist/DateInput/index.js +1 -1
  46. package/dist/DateInput-BLocxqC3.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-DwDy3eRo.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-BYiaC9bn.js} +5 -3
  53. package/dist/DropdownMenu/index.d.ts +3 -2
  54. package/dist/DropdownMenu/index.js +3 -2
  55. package/dist/DropdownMenu-Ddfr-aEC.js +164 -0
  56. package/dist/{DropdownMenu-UJGych6v.js → DropdownMenu-Dh-WAHKb.js} +63 -16
  57. package/dist/FileInput/index.d.ts +1 -1
  58. package/dist/FileInput/index.js +1 -1
  59. package/dist/{FileInput-BQiwE-GB.js → FileInput-DLO6V12n.js} +2 -2
  60. package/dist/Icon/index.d.ts +4 -3
  61. package/dist/Icon/index.js +3 -2
  62. package/dist/Icon/plugin.d.ts +45 -0
  63. package/dist/Icon/plugin.js +177 -0
  64. package/dist/Icon-CJKjdJy-.js +198 -0
  65. package/dist/Lightbox/index.js +1 -1
  66. package/dist/{Lightbox-CshKoB0r.js → Lightbox-CdFCS_EA.js} +2 -2
  67. package/dist/Link/index.d.ts +1 -1
  68. package/dist/Link/index.js +1 -1
  69. package/dist/Link-DqdQZ37C.js +141 -0
  70. package/dist/Markdown/index.js +1 -1
  71. package/dist/{Markdown-D-Ua055V.js → Markdown-BqKloI3w.js} +3 -3
  72. package/dist/MetadataList/index.js +1 -1
  73. package/dist/{MetadataList-sYph_d8Q.js → MetadataList-CvZkmisf.js} +1 -1
  74. package/dist/MobileNav/index.js +1 -1
  75. package/dist/{MobileNavToggle-DD9D01aj.js → MobileNavToggle-Bwi0qXXM.js} +1 -1
  76. package/dist/MoreMenu/index.d.ts +1 -1
  77. package/dist/MoreMenu/index.js +1 -1
  78. package/dist/{MoreMenu-BVrK5kkk.js → MoreMenu-BwJaJrkB.js} +2 -2
  79. package/dist/MultiSelector/index.js +1 -1
  80. package/dist/{MultiSelector-DiYov9sF.js → MultiSelector-C-ETfFy_.js} +2 -2
  81. package/dist/NumberInput/index.d.ts +2 -2
  82. package/dist/NumberInput/index.js +1 -1
  83. package/dist/NumberInput-DjetVB8O.js +210 -0
  84. package/dist/Outline/index.js +1 -1
  85. package/dist/{Outline-DQfEBxlc.js → Outline-Bz9c-u5y.js} +1 -1
  86. package/dist/OverflowList/index.d.ts +1 -1
  87. package/dist/OverflowList/index.js +1 -1
  88. package/dist/{OverflowList-BU5VCntl.js → OverflowList-ED-KN9Y5.js} +1 -1
  89. package/dist/Overlay/index.d.ts +1 -1
  90. package/dist/Pagination/index.d.ts +2 -2
  91. package/dist/Pagination/index.js +1 -1
  92. package/dist/{Pagination-HdhtykeF.js → Pagination-Cb66HMEf.js} +76 -22
  93. package/dist/PowerSearch/index.d.ts +2 -0
  94. package/dist/PowerSearch/index.js +2 -0
  95. package/dist/PowerSearch-CjU8y4mi.js +2386 -0
  96. package/dist/ProgressBar/index.d.ts +1 -1
  97. package/dist/ProgressBar/index.js +1 -1
  98. package/dist/{ProgressBar-ChDp-7oe.js → ProgressBar-DO9Chic6.js} +31 -11
  99. package/dist/Radio/index.d.ts +1 -1
  100. package/dist/RadioList/index.d.ts +1 -1
  101. package/dist/Resizable/index.d.ts +1 -1
  102. package/dist/Resizable/index.js +1 -1
  103. package/dist/{Resizable-BhSMfO5B.js → Resizable-D-TBCg0Y.js} +1 -1
  104. package/dist/ScrollableArea/index.d.ts +1 -1
  105. package/dist/SelectableCard/index.d.ts +1 -1
  106. package/dist/Selector/index.d.ts +2 -2
  107. package/dist/Selector/index.js +1 -1
  108. package/dist/Selector-DE2IEFML.js +468 -0
  109. package/dist/SideNav/index.d.ts +1 -1
  110. package/dist/SideNav/index.js +1 -1
  111. package/dist/{SideNav-B-Om6Bz3.js → SideNav-DonEfiAx.js} +17 -17
  112. package/dist/Stepper/index.js +1 -1
  113. package/dist/{Stepper-BZ_8SEZt.js → Stepper-D2ZIcUNx.js} +1 -1
  114. package/dist/Switch/index.d.ts +1 -1
  115. package/dist/TabList/index.d.ts +1 -1
  116. package/dist/TabList/index.js +1 -1
  117. package/dist/{TabList-Cnc2Hs1H.js → TabList-D3F-stq-.js} +10 -3
  118. package/dist/Table/index.d.ts +3 -3
  119. package/dist/Table/index.js +2 -2
  120. package/dist/Table-CrP2Uffq.js +1982 -0
  121. package/dist/TextArea/index.d.ts +1 -1
  122. package/dist/TextArea/index.js +1 -1
  123. package/dist/{TextArea-Cv9UVbzS.js → TextArea-CPwSytdO.js} +12 -6
  124. package/dist/TextInput/index.d.ts +1 -1
  125. package/dist/Thumbnail/index.js +1 -1
  126. package/dist/{Thumbnail-Dc1UpykG.js → Thumbnail-BC5JGPGZ.js} +11 -11
  127. package/dist/{TimeField-C7t9Knq9.js → TimeField-DpHFrNv0.js} +2 -2
  128. package/dist/TimeInput/index.d.ts +1 -1
  129. package/dist/TimeInput/index.js +1 -1
  130. package/dist/{TimeInput-BXxCOY98.js → TimeInput-DJLV0_4z.js} +1 -1
  131. package/dist/Timestamp/index.d.ts +1 -1
  132. package/dist/Timestamp/index.js +2 -1
  133. package/dist/{Timestamp-DlZSmgCJ.js → Timestamp-GKNjjt5g.js} +4 -121
  134. package/dist/Toast/index.d.ts +2 -2
  135. package/dist/Toast/index.js +1 -1
  136. package/dist/{Toast-BKXPvEMp.js → Toast-C2ML-bmi.js} +37 -7
  137. package/dist/ToggleButton/index.d.ts +1 -1
  138. package/dist/Token/index.js +1 -1
  139. package/dist/{Token-wt4e80IM.js → Token-Chu_eCVs.js} +1 -1
  140. package/dist/Tokenizer/index.js +1 -1
  141. package/dist/{Tokenizer-nmTqdS9n.js → Tokenizer-DRDpvQ_l.js} +3 -3
  142. package/dist/Toolbar/index.d.ts +1 -1
  143. package/dist/TopNav/index.d.ts +1 -1
  144. package/dist/TopNav/index.js +1 -1
  145. package/dist/{TopNav-notp-mJx.js → TopNav-CEyWddtA.js} +3 -3
  146. package/dist/TreeList/index.js +1 -1
  147. package/dist/{TreeList-s1xBQ0qq.js → TreeList-COS8US8e.js} +3 -3
  148. package/dist/Typeahead/index.js +1 -1
  149. package/dist/{Typeahead-VAuiCurV.js → Typeahead-P7cCqtaQ.js} +3 -3
  150. package/dist/{useTypeaheadMenu-Ba7XpcZl.js → TypeaheadMenu-CGvo0Tud.js} +107 -107
  151. package/dist/composables/index.d.ts +3 -3
  152. package/dist/{context-Dbo22sck.js → context-CiKncNSH.js} +184 -6
  153. package/dist/formatInstant-BDWUIxS7.js +119 -0
  154. package/dist/{index-SMh42NI8.d.ts → index-B1TG2GPS.d.ts} +2 -2
  155. package/dist/{index-DRmb-oUa.d.ts → index-B9WzWqzk.d.ts} +3 -29
  156. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  157. package/dist/{index-z4p2k9VR.d.ts → index-Bgv4ZmBl.d.ts} +20 -2
  158. package/dist/{index-BoRIw-bP.d.ts → index-Bt7ewoz2.d.ts} +32 -2
  159. package/dist/{index-uQrLBZfF.d.ts → index-Bu3oXIIS.d.ts} +24 -0
  160. package/dist/index-CJlBAXwj.d.ts +100 -0
  161. package/dist/{index-DT9S92sh.d.ts → index-CNjbOgty.d.ts} +15 -0
  162. package/dist/{index-DXSs3rwa.d.ts → index-CngORuiq.d.ts} +137 -2
  163. package/dist/index-Cs5pcwY3.d.ts +416 -0
  164. package/dist/{index-NzLDrOkk.d.ts → index-D4I_obqR.d.ts} +14 -1
  165. package/dist/{index-BtPZKO20.d.ts → index-DGXviOlp.d.ts} +49 -7
  166. package/dist/{index-CTolyeii.d.ts → index-DN7MXPHM.d.ts} +15 -1
  167. package/dist/{index-C6iJwTL0.d.ts → index-DNRBbwp_.d.ts} +165 -55
  168. package/dist/{index-C59PdX9L.d.ts → index-DWH_HzXi.d.ts} +1 -1
  169. package/dist/{index-BfOtLyNH.d.ts → index-D_nYxnNv.d.ts} +1 -1
  170. package/dist/{index-Bn_odHQ9.d.ts → index-Dg3ZmwEg.d.ts} +12 -1
  171. package/dist/{index-BiMGXtD-.d.ts → index-DimuSES0.d.ts} +14 -1
  172. package/dist/{index-DEeJowZf.d.ts → index-cGagYM1g.d.ts} +15 -2
  173. package/dist/{index-Ck8qy6Rf.d.ts → index-c_TaW8mM.d.ts} +24 -2
  174. package/dist/index-kVhSuA9t.d.ts +902 -0
  175. package/dist/{index-1uRMrk63.d.ts → index-nCEmW6wa.d.ts} +1 -1
  176. package/dist/{index-DoFCm2Q2.d.ts → index-qiZtHnGK.d.ts} +26 -0
  177. package/dist/{index-Bainr_3n.d.ts → index-u5ozu0G7.d.ts} +2 -2
  178. package/dist/index.d.ts +79 -76
  179. package/dist/index.js +111 -100
  180. package/dist/locale/index.d.ts +1 -1
  181. package/dist/locale/index.js +1 -1
  182. package/dist/power-search-DrDfcoL1.d.ts +68 -0
  183. package/dist/registry-B1ObuP--.d.ts +45 -0
  184. package/dist/registry-C7OZb0PJ.js +135 -0
  185. package/dist/{types-JktRxujg.d.ts → types-Cp4liug-.d.ts} +66 -3
  186. package/dist/{index-B8MbfMwV.d.ts → types-DDAAT1Xd.d.ts} +36 -82
  187. package/dist/types-DIYwbkpe.d.ts +33 -0
  188. package/dist/{types-DZoEm_DG.d.ts → types-pnljWjEE.d.ts} +23 -6
  189. package/dist/{useResizable-CeESZS1v.d.ts → useResizable-CUoNPmUw.d.ts} +1 -1
  190. package/package.json +10 -1
  191. package/styles/avatar.css +14 -0
  192. package/styles/badge.css +8 -0
  193. package/styles/breadcrumbs.css +6 -1
  194. package/styles/button.css +13 -0
  195. package/styles/calendar.css +16 -0
  196. package/styles/card.css +2 -0
  197. package/styles/chat.css +474 -3
  198. package/styles/dropdown-menu.css +11 -0
  199. package/styles/icon.css +58 -8
  200. package/styles/link.css +5 -0
  201. package/styles/number-input.css +22 -0
  202. package/styles/pagination.css +45 -1
  203. package/styles/power-search.css +303 -0
  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/table.css +304 -1
  208. package/styles/text-area.css +17 -0
  209. package/styles/text-input.css +5 -0
  210. package/styles/toast.css +7 -0
  211. package/styles/toolbar.css +11 -0
  212. package/styles.css +1 -0
  213. package/dist/Avatar-5s3HSrtN.js +0 -136
  214. package/dist/Badge-Ba0EwsTj.js +0 -19
  215. package/dist/Calendar-BG7wEsro.js +0 -277
  216. package/dist/Chat-DjNxw5gv.js +0 -1051
  217. package/dist/DateInput-DE2TN1Rq.js +0 -250
  218. package/dist/Icon-Dfr4k6-S.js +0 -86
  219. package/dist/Link-CprjOuTI.js +0 -92
  220. package/dist/NumberInput-CTYiQxHq.js +0 -147
  221. package/dist/Selector-Da-2BO3q.js +0 -325
  222. package/dist/Table-D-LhAy_J.js +0 -967
  223. package/dist/index-DJo-BmXZ.d.ts +0 -431
  224. package/dist/index-DtjAdYEc.d.ts +0 -68
  225. package/dist/{CheckboxList-EsIEXjK_.js → CheckboxList-BbCPiend.js} +1 -1
@@ -1,8 +1,8 @@
1
1
  import { t as useAnnounce } from "./announce-Cnio10Wk.js";
2
2
  import { t as useScrollLock } from "./scrollLock-BzIvIimL.js";
3
- import { a as useAstryxMessages } from "./context-Dbo22sck.js";
3
+ import { a as useAstryxMessages } from "./context-CiKncNSH.js";
4
4
  import { t as _sfc_main$1 } from "./IconButton-BNQuz9W_.js";
5
- import { t as _sfc_main$2 } from "./Icon-Dfr4k6-S.js";
5
+ import { t as _sfc_main$2 } from "./Icon-CJKjdJy-.js";
6
6
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, ref, toDisplayString, toRef, unref, useTemplateRef, watch, withCtx } from "vue";
7
7
  import "../styles/lightbox.css";
8
8
  //#region src/Lightbox/Lightbox.vue
@@ -1,2 +1,2 @@
1
- import { n as LinkColor, r as LinkProps, t as _default } from "../index-Bn_odHQ9.js";
1
+ import { n as LinkColor, r as LinkProps, t as _default } from "../index-Dg3ZmwEg.js";
2
2
  export { _default as Link, type LinkColor, type LinkProps };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Link-CprjOuTI.js";
1
+ import { t as _sfc_main } from "../Link-DqdQZ37C.js";
2
2
  export { _sfc_main as Link };
@@ -0,0 +1,141 @@
1
+ import { t as _sfc_main$1 } from "./Tooltip-mp0NMh_Y.js";
2
+ import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot, withCtx, withModifiers } from "vue";
3
+ import "../styles/link.css";
4
+ //#region src/Link/Link.vue
5
+ const _hoisted_1 = [
6
+ "href",
7
+ "target",
8
+ "rel",
9
+ "download"
10
+ ];
11
+ const _hoisted_2 = {
12
+ key: 0,
13
+ class: "astryx-link__external",
14
+ "aria-hidden": "true"
15
+ };
16
+ const _hoisted_3 = ["disabled"];
17
+ const _hoisted_4 = [
18
+ "href",
19
+ "target",
20
+ "rel",
21
+ "download"
22
+ ];
23
+ const _hoisted_5 = {
24
+ key: 0,
25
+ class: "astryx-link__external",
26
+ "aria-hidden": "true"
27
+ };
28
+ const _hoisted_6 = ["disabled"];
29
+ const _sfc_main = /*@__PURE__*/ defineComponent({
30
+ inheritAttrs: false,
31
+ __name: "Link",
32
+ props: {
33
+ href: {},
34
+ isExternalLink: {
35
+ type: Boolean,
36
+ default: false
37
+ },
38
+ hasUnderline: {
39
+ type: Boolean,
40
+ default: false
41
+ },
42
+ color: { default: "accent" },
43
+ isDisabled: {
44
+ type: Boolean,
45
+ default: false
46
+ },
47
+ target: {},
48
+ rel: {},
49
+ download: { type: [String, Boolean] },
50
+ tooltip: {},
51
+ isStandalone: {
52
+ type: Boolean,
53
+ default: false
54
+ }
55
+ },
56
+ emits: ["click"],
57
+ setup(__props, { emit: __emit }) {
58
+ const props = __props;
59
+ const emit = __emit;
60
+ const computedTarget = computed(() => {
61
+ return props.isExternalLink ? "_blank" : props.target;
62
+ });
63
+ const computedRel = computed(() => {
64
+ const parts = new Set((props.rel ?? "").split(" ").filter(Boolean));
65
+ if (props.isExternalLink || computedTarget.value === "_blank") {
66
+ parts.add("noopener");
67
+ parts.add("noreferrer");
68
+ }
69
+ return parts.size > 0 ? Array.from(parts).join(" ") : void 0;
70
+ });
71
+ const classes = computed(() => [
72
+ "astryx-link",
73
+ `astryx-link--color-${props.color}`,
74
+ props.hasUnderline && "astryx-link--underlined",
75
+ props.isDisabled && "astryx-link--disabled",
76
+ props.isExternalLink && "astryx-link--external",
77
+ props.isStandalone && "astryx-link--standalone"
78
+ ]);
79
+ const tooltipText = computed(() => {
80
+ return props.tooltip?.trim() || void 0;
81
+ });
82
+ function handleClick(event) {
83
+ if (props.isDisabled) {
84
+ event.preventDefault();
85
+ return;
86
+ }
87
+ emit("click", event);
88
+ }
89
+ return (_ctx, _cache) => {
90
+ return tooltipText.value ? (openBlock(), createBlock(_sfc_main$1, {
91
+ key: 0,
92
+ content: tooltipText.value
93
+ }, {
94
+ default: withCtx(() => [__props.href && !__props.isDisabled ? (openBlock(), createElementBlock("a", {
95
+ key: 0,
96
+ class: normalizeClass(["astryx-link", classes.value]),
97
+ href: __props.href,
98
+ target: computedTarget.value,
99
+ rel: computedRel.value,
100
+ download: __props.download,
101
+ onClick: handleClick
102
+ }, [renderSlot(_ctx.$slots, "default"), __props.isExternalLink ? (openBlock(), createElementBlock("span", _hoisted_2, "↗")) : createCommentVNode("v-if", true)], 10, _hoisted_1)) : __props.href && __props.isDisabled ? (openBlock(), createElementBlock("a", {
103
+ key: 1,
104
+ class: normalizeClass(["astryx-link", classes.value]),
105
+ role: "link",
106
+ "aria-disabled": "true",
107
+ onClick: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent"]))
108
+ }, [renderSlot(_ctx.$slots, "default")], 2)) : (openBlock(), createElementBlock("button", {
109
+ key: 2,
110
+ type: "button",
111
+ class: normalizeClass(["astryx-link", classes.value]),
112
+ disabled: __props.isDisabled,
113
+ onClick: handleClick
114
+ }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_3))]),
115
+ _: 3
116
+ }, 8, ["content"])) : __props.href && !__props.isDisabled ? (openBlock(), createElementBlock("a", {
117
+ key: 1,
118
+ class: normalizeClass(["astryx-link", classes.value]),
119
+ href: __props.href,
120
+ target: computedTarget.value,
121
+ rel: computedRel.value,
122
+ download: __props.download,
123
+ onClick: handleClick
124
+ }, [renderSlot(_ctx.$slots, "default"), __props.isExternalLink ? (openBlock(), createElementBlock("span", _hoisted_5, "↗")) : createCommentVNode("v-if", true)], 10, _hoisted_4)) : __props.href && __props.isDisabled ? (openBlock(), createElementBlock("a", {
125
+ key: 2,
126
+ class: normalizeClass(["astryx-link", classes.value]),
127
+ role: "link",
128
+ "aria-disabled": "true",
129
+ onClick: _cache[1] || (_cache[1] = withModifiers(() => {}, ["prevent"]))
130
+ }, [renderSlot(_ctx.$slots, "default")], 2)) : (openBlock(), createElementBlock("button", {
131
+ key: 3,
132
+ type: "button",
133
+ class: normalizeClass(["astryx-link", classes.value]),
134
+ disabled: __props.isDisabled,
135
+ onClick: handleClick
136
+ }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_6));
137
+ };
138
+ }
139
+ });
140
+ //#endregion
141
+ export { _sfc_main as t };
@@ -1,2 +1,2 @@
1
- import { i as parseMarkdown, n as slugify, r as uniqueSlug, t as _sfc_main } from "../Markdown-D-Ua055V.js";
1
+ import { i as parseMarkdown, n as slugify, r as uniqueSlug, t as _sfc_main } from "../Markdown-BqKloI3w.js";
2
2
  export { _sfc_main as Markdown, parseMarkdown, slugify, uniqueSlug };
@@ -1,10 +1,10 @@
1
1
  import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
2
2
  import { t as _sfc_main$2 } from "./Heading-Dugosn6j.js";
3
- import { a as useAstryxMessages } from "./context-Dbo22sck.js";
3
+ import { a as useAstryxMessages } from "./context-CiKncNSH.js";
4
4
  import { t as _sfc_main$3 } from "./Blockquote-DFqBv_oJ.js";
5
5
  import { t as _sfc_main$4 } from "./CheckboxIndicator-DdJmksHt.js";
6
- import { c as _sfc_main$5, t as _sfc_main$6 } from "./CodeBlock-CxTb6j9_.js";
7
- import { t as _sfc_main$7 } from "./Link-CprjOuTI.js";
6
+ import { c as _sfc_main$5, t as _sfc_main$6 } from "./CodeBlock-DesTJAkm.js";
7
+ import { t as _sfc_main$7 } from "./Link-DqdQZ37C.js";
8
8
  import { Fragment, computed, defineComponent, h, ref } from "vue";
9
9
  import { fromMarkdown } from "mdast-util-from-markdown";
10
10
  import { gfmFromMarkdown } from "mdast-util-gfm";
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, t as _sfc_main$1 } from "../MetadataList-sYph_d8Q.js";
1
+ import { n as _sfc_main, t as _sfc_main$1 } from "../MetadataList-CvZkmisf.js";
2
2
  export { _sfc_main as MetadataList, _sfc_main$1 as MetadataListItem };
@@ -1,4 +1,4 @@
1
- import { a as useAstryxMessages } from "./context-Dbo22sck.js";
1
+ import { a as useAstryxMessages } from "./context-CiKncNSH.js";
2
2
  import { Comment, Fragment, computed, defineComponent, h, inject, provide, ref, useId, useSlots } from "vue";
3
3
  import "../styles/metadata-list.css";
4
4
  //#region src/MetadataList/context.ts
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, r as mobileNavKey, t as _sfc_main$1 } from "../MobileNavToggle-DD9D01aj.js";
1
+ import { n as _sfc_main, r as mobileNavKey, t as _sfc_main$1 } from "../MobileNavToggle-Bwi0qXXM.js";
2
2
  export { _sfc_main as MobileNav, _sfc_main$1 as MobileNavToggle, mobileNavKey };
@@ -1,5 +1,5 @@
1
1
  import { n as useFocusTrap, t as useRestoreFocus } from "./useRestoreFocus-BvMdXVX9.js";
2
- import { a as useAstryxMessages } from "./context-Dbo22sck.js";
2
+ import { a as useAstryxMessages } from "./context-CiKncNSH.js";
3
3
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeModels, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, provide, ref, renderSlot, toDisplayString, unref, useId, useModel, watch } from "vue";
4
4
  import "../styles/mobile-nav.css";
5
5
  //#region src/MobileNav/context.ts
@@ -1,2 +1,2 @@
1
- import { An as MoreMenuIcon, Dn as _default, Fn as MoreMenuPresentation, In as MoreMenuProps, Ln as MoreMenuResolvedPresentation, Mn as MoreMenuItem, Nn as MoreMenuItemVariant, On as MoreMenuDivider, Pn as MoreMenuOption, Rn as MoreMenuSection, jn as MoreMenuInitialFocus, kn as MoreMenuEmits, zn as MoreMenuSlots } from "../index-C6iJwTL0.js";
1
+ import { An as MoreMenuIcon, Dn as _default, Fn as MoreMenuPresentation, In as MoreMenuProps, Ln as MoreMenuResolvedPresentation, Mn as MoreMenuItem, Nn as MoreMenuItemVariant, On as MoreMenuDivider, Pn as MoreMenuOption, Rn as MoreMenuSection, jn as MoreMenuInitialFocus, kn as MoreMenuEmits, zn as MoreMenuSlots } from "../index-DNRBbwp_.js";
2
2
  export { _default as MoreMenu, type MoreMenuDivider, type MoreMenuEmits, type MoreMenuIcon, type MoreMenuInitialFocus, type MoreMenuItem, type MoreMenuItemVariant, type MoreMenuOption, type MoreMenuPresentation, type MoreMenuProps, type MoreMenuResolvedPresentation, type MoreMenuSection, type MoreMenuSlots };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../MoreMenu-BVrK5kkk.js";
1
+ import { t as _sfc_main } from "../MoreMenu-BwJaJrkB.js";
2
2
  export { _sfc_main as MoreMenu };
@@ -1,11 +1,11 @@
1
1
  import { n as getFocusables, t as focusElement } from "./focus-CpficIgf.js";
2
2
  import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
3
3
  import { t as _sfc_main$5 } from "./Heading-Dugosn6j.js";
4
+ import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
4
5
  import { t as _sfc_main$6 } from "./IconButton-BNQuz9W_.js";
5
- import { t as _sfc_main$7 } from "./Icon-Dfr4k6-S.js";
6
+ import { t as _sfc_main$7 } from "./Icon-CJKjdJy-.js";
6
7
  import { t as _sfc_main$8 } from "./Divider-BtwnL18I.js";
7
8
  import { n as _sfc_main$10, t as _sfc_main$9 } from "./ListItem-pGxvn6QJ.js";
8
- import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
9
9
  import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
10
10
  import "../styles/more-menu.css";
11
11
  //#region src/MoreMenu/context.ts
@@ -1,2 +1,2 @@
1
- import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main } from "../MultiSelector-DiYov9sF.js";
1
+ import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main } from "../MultiSelector-C-ETfFy_.js";
2
2
  export { _sfc_main as MultiSelector, SELECT_ALL_VALUE, flattenOptions };
@@ -1,10 +1,10 @@
1
1
  import { t as useCombobox } from "./useCombobox-CTo5C-gc.js";
2
2
  import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
3
- import { a as useAstryxMessages } from "./context-Dbo22sck.js";
3
+ import { a as useAstryxMessages } from "./context-CiKncNSH.js";
4
4
  import { t as _sfc_main$1 } from "./BottomSheet-Dg95HB1s.js";
5
5
  import { t as _sfc_main$2 } from "./CheckboxIndicator-DdJmksHt.js";
6
6
  import { t as _sfc_main$3 } from "./Field-8zRxzDHE.js";
7
- import { t as _sfc_main$4 } from "./Token-wt4e80IM.js";
7
+ import { t as _sfc_main$4 } from "./Token-Chu_eCVs.js";
8
8
  import { n as useAnchoredListbox, t as scrollOptionIntoView } from "./useAnchoredListbox-7W90Ny-9.js";
9
9
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useId, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
10
10
  import "../styles/visually-hidden-utility.css";
@@ -1,2 +1,2 @@
1
- import { n as NumberInputEmits, r as NumberInputProps, t as _default } from "../index-NzLDrOkk.js";
2
- export { _default as NumberInput, type NumberInputEmits, type NumberInputProps };
1
+ import { i as NumberInputStatus, n as NumberInputEmits, r as NumberInputProps, t as _default } from "../index-D4I_obqR.js";
2
+ export { _default as NumberInput, type NumberInputEmits, type NumberInputProps, type NumberInputStatus };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../NumberInput-CTYiQxHq.js";
1
+ import { t as _sfc_main } from "../NumberInput-DjetVB8O.js";
2
2
  export { _sfc_main as NumberInput };
@@ -0,0 +1,210 @@
1
+ import { t as useNumberField } from "./useNumberField-DL-Radsp.js";
2
+ import { a as useAstryxMessages } from "./context-CiKncNSH.js";
3
+ import { t as _sfc_main$1 } from "./FieldIcon--NTgW5IU.js";
4
+ import { t as _sfc_main$2 } from "./Field-8zRxzDHE.js";
5
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, normalizeClass, normalizeProps, openBlock, ref, resolveDynamicComponent, toDisplayString, unref, useId, withCtx } from "vue";
6
+ import "../styles/number-input.css";
7
+ //#region src/NumberInput/NumberInput.vue
8
+ const _hoisted_1 = ["data-status"];
9
+ const _hoisted_2 = [
10
+ "value",
11
+ "placeholder",
12
+ "disabled",
13
+ "aria-label",
14
+ "aria-labelledby",
15
+ "aria-describedby",
16
+ "aria-invalid",
17
+ "title"
18
+ ];
19
+ const _hoisted_3 = {
20
+ key: 0,
21
+ class: "astryx-number-input-units"
22
+ };
23
+ const _hoisted_4 = ["aria-label"];
24
+ const _hoisted_5 = { class: "astryx-number-input-buttons" };
25
+ const _hoisted_6 = ["disabled", "aria-label"];
26
+ const _hoisted_7 = ["disabled", "aria-label"];
27
+ const _hoisted_8 = ["name", "value"];
28
+ const _sfc_main = /*@__PURE__*/ defineComponent({
29
+ name: "AstryxNumberInput",
30
+ __name: "NumberInput",
31
+ props: {
32
+ modelValue: { default: null },
33
+ placeholder: { default: "" },
34
+ min: {},
35
+ max: {},
36
+ step: { default: 1 },
37
+ disabled: {
38
+ type: Boolean,
39
+ default: false
40
+ },
41
+ disabledReason: {},
42
+ size: { default: "md" },
43
+ label: {},
44
+ description: {},
45
+ isLabelHidden: { type: Boolean },
46
+ units: {},
47
+ clearable: { type: Boolean },
48
+ status: {},
49
+ name: {}
50
+ },
51
+ emits: ["update:modelValue", "change"],
52
+ setup(__props, { emit: __emit }) {
53
+ const props = __props;
54
+ const emit = __emit;
55
+ const PassThrough = defineComponent({
56
+ name: "NumberInputPassThrough",
57
+ setup(_, { slots }) {
58
+ return () => slots.default?.({});
59
+ }
60
+ });
61
+ const inputId = `astryx-number-input-${useId()}`;
62
+ const messages = useAstryxMessages();
63
+ const incrementLabel = computed(() => messages.value.numberInput.increment(props.label));
64
+ const decrementLabel = computed(() => messages.value.numberInput.decrement(props.label));
65
+ const inputValue = ref("");
66
+ const modelValueRef = computed({
67
+ get: () => props.modelValue,
68
+ set: (value) => {
69
+ emit("update:modelValue", value);
70
+ emit("change", value);
71
+ }
72
+ });
73
+ const numberField = useNumberField({
74
+ value: modelValueRef,
75
+ min: props.min,
76
+ max: props.max,
77
+ step: props.step,
78
+ disabled: computed(() => props.disabled),
79
+ onChange: (value) => {
80
+ modelValueRef.value = value;
81
+ inputValue.value = value === null ? "" : String(value);
82
+ }
83
+ });
84
+ function onInput(event) {
85
+ const target = event.target;
86
+ const value = target.value.trim();
87
+ if (value === "") {
88
+ numberField.setValue(null);
89
+ return;
90
+ }
91
+ const parsed = Number.parseFloat(value);
92
+ if (!Number.isNaN(parsed)) numberField.setValue(parsed);
93
+ else target.value = inputValue.value;
94
+ }
95
+ function onKeyDown(event) {
96
+ numberField.onKeyDown(event);
97
+ }
98
+ function resolvedStatus(status) {
99
+ if (status == null || status === "default") return void 0;
100
+ if (typeof status === "string") return { type: status };
101
+ return status;
102
+ }
103
+ const statusValue = computed(() => resolvedStatus(props.status));
104
+ const statusType = computed(() => statusValue.value?.type);
105
+ const showsField = computed(() => {
106
+ if (props.isLabelHidden && !props.description && !statusValue.value?.message) return false;
107
+ return Boolean(props.label || props.description || statusValue.value?.message);
108
+ });
109
+ const shell = computed(() => showsField.value ? _sfc_main$2 : PassThrough);
110
+ const fieldBindings = computed(() => showsField.value ? {
111
+ label: props.label ?? "",
112
+ inputId,
113
+ description: props.description,
114
+ isLabelHidden: props.isLabelHidden || !props.label,
115
+ isDisabled: props.disabled,
116
+ status: statusValue.value
117
+ } : {});
118
+ function clearValue() {
119
+ numberField.setValue(null);
120
+ inputValue.value = "";
121
+ }
122
+ function syncDisplayValue() {
123
+ inputValue.value = props.modelValue === null ? "" : String(props.modelValue);
124
+ }
125
+ syncDisplayValue();
126
+ return (_ctx, _cache) => {
127
+ return openBlock(), createBlock(resolveDynamicComponent(shell.value), normalizeProps(guardReactiveProps(fieldBindings.value)), {
128
+ default: withCtx((field) => [createElementVNode("div", {
129
+ class: normalizeClass(["astryx-number-input", `size-${props.size}`]),
130
+ "data-status": statusType.value
131
+ }, [
132
+ createElementVNode("input", {
133
+ id: inputId,
134
+ type: "text",
135
+ inputmode: "decimal",
136
+ class: "astryx-number-input-field",
137
+ value: inputValue.value,
138
+ placeholder: props.placeholder,
139
+ disabled: props.disabled,
140
+ "aria-label": showsField.value ? void 0 : props.label,
141
+ "aria-labelledby": showsField.value ? field?.labelId : void 0,
142
+ "aria-describedby": field?.describedBy,
143
+ "aria-invalid": statusType.value === "error" ? "true" : void 0,
144
+ title: props.disabledReason,
145
+ onInput,
146
+ onKeydown: onKeyDown
147
+ }, null, 40, _hoisted_2),
148
+ props.units ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(props.units), 1)) : createCommentVNode("v-if", true),
149
+ props.clearable && props.modelValue != null && !props.disabled ? (openBlock(), createElementBlock("button", {
150
+ key: 1,
151
+ type: "button",
152
+ class: "astryx-number-input-clear",
153
+ "aria-label": props.label ? `Clear ${props.label}` : "Clear",
154
+ onClick: clearValue
155
+ }, [createVNode(_sfc_main$1, { type: "clear" })], 8, _hoisted_4)) : createCommentVNode("v-if", true),
156
+ createElementVNode("div", _hoisted_5, [createElementVNode("button", {
157
+ type: "button",
158
+ class: "astryx-number-input-button increment",
159
+ disabled: props.disabled,
160
+ "aria-label": incrementLabel.value,
161
+ tabindex: "-1",
162
+ onClick: _cache[0] || (_cache[0] = (...args) => unref(numberField).increment && unref(numberField).increment(...args))
163
+ }, [..._cache[2] || (_cache[2] = [createElementVNode("svg", {
164
+ class: "astryx-number-input-chevron",
165
+ viewBox: "0 0 12 8",
166
+ width: "12",
167
+ height: "8",
168
+ "aria-hidden": "true",
169
+ fill: "none"
170
+ }, [createElementVNode("path", {
171
+ d: "M1.5 1.75 6 6.25 10.5 1.75",
172
+ stroke: "currentColor",
173
+ "stroke-width": "1.5",
174
+ "stroke-linecap": "round",
175
+ "stroke-linejoin": "round"
176
+ })], -1)])], 8, _hoisted_6), createElementVNode("button", {
177
+ type: "button",
178
+ class: "astryx-number-input-button decrement",
179
+ disabled: props.disabled,
180
+ "aria-label": decrementLabel.value,
181
+ tabindex: "-1",
182
+ onClick: _cache[1] || (_cache[1] = (...args) => unref(numberField).decrement && unref(numberField).decrement(...args))
183
+ }, [..._cache[3] || (_cache[3] = [createElementVNode("svg", {
184
+ class: "astryx-number-input-chevron",
185
+ viewBox: "0 0 12 8",
186
+ width: "12",
187
+ height: "8",
188
+ "aria-hidden": "true",
189
+ fill: "none"
190
+ }, [createElementVNode("path", {
191
+ d: "M1.5 1.75 6 6.25 10.5 1.75",
192
+ stroke: "currentColor",
193
+ "stroke-width": "1.5",
194
+ "stroke-linecap": "round",
195
+ "stroke-linejoin": "round"
196
+ })], -1)])], 8, _hoisted_7)]),
197
+ props.name ? (openBlock(), createElementBlock("input", {
198
+ key: 2,
199
+ type: "hidden",
200
+ name: props.name,
201
+ value: props.modelValue ?? ""
202
+ }, null, 8, _hoisted_8)) : createCommentVNode("v-if", true)
203
+ ], 10, _hoisted_1)]),
204
+ _: 1
205
+ }, 16);
206
+ };
207
+ }
208
+ });
209
+ //#endregion
210
+ export { _sfc_main as t };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Outline-DQfEBxlc.js";
1
+ import { t as _sfc_main } from "../Outline-Bz9c-u5y.js";
2
2
  export { _sfc_main as Outline };
@@ -1,5 +1,5 @@
1
1
  import { t as useListFocus } from "./useListFocus-D0iOJl39.js";
2
- import { a as useAstryxMessages } from "./context-Dbo22sck.js";
2
+ import { a as useAstryxMessages } from "./context-CiKncNSH.js";
3
3
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, toDisplayString, toRef, unref, watch } from "vue";
4
4
  import "../styles/outline.css";
5
5
  //#region src/Outline/scrollGeometry.ts
@@ -1,2 +1,2 @@
1
- import { Cn as _default, En as OverflowListProps, Tn as OverflowListItem, wn as OverflowListEmits } from "../index-C6iJwTL0.js";
1
+ import { Cn as _default, En as OverflowListProps, Tn as OverflowListItem, wn as OverflowListEmits } from "../index-DNRBbwp_.js";
2
2
  export { _default as OverflowList, type OverflowListEmits, type OverflowListItem, type OverflowListProps };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../OverflowList-BU5VCntl.js";
1
+ import { t as _sfc_main } from "../OverflowList-ED-KN9Y5.js";
2
2
  export { _sfc_main as OverflowList };
@@ -1,5 +1,5 @@
1
1
  import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
2
- import { a as useAstryxMessages } from "./context-Dbo22sck.js";
2
+ import { a as useAstryxMessages } from "./context-CiKncNSH.js";
3
3
  import { n as resolveNavRoot } from "./link-CdcUSxAj.js";
4
4
  import { t as _sfc_main$2 } from "./NavDisclosure-DHrSNRDR.js";
5
5
  import { n as _sfc_main$3, t as _sfc_main$4 } from "./NavMenuItem-B-k7olt5.js";
@@ -1,2 +1,2 @@
1
- import { a as OverlayContainerProps, c as OverlayScrimMode, d as OverlayShowOn, f as OverlaySlots, i as OverlayAlign, l as OverlayScrimProps, m as UseOverlayResult, n as _default$1, o as OverlayPosition, p as UseOverlayOptions, r as _default, s as OverlayProps, t as useOverlay, u as OverlayScrimSlots } from "../index-BuubzuE8.js";
1
+ import { a as OverlayContainerProps, c as OverlayScrimMode, d as OverlayShowOn, f as OverlaySlots, i as OverlayAlign, l as OverlayScrimProps, m as UseOverlayResult, n as _default$1, o as OverlayPosition, p as UseOverlayOptions, r as _default, s as OverlayProps, t as useOverlay, u as OverlayScrimSlots } from "../index-BDZCJ9ri.js";
2
2
  export { _default as Overlay, type OverlayAlign, type OverlayContainerProps, type OverlayPosition, type OverlayProps, _default$1 as OverlayScrim, type OverlayScrimMode, type OverlayScrimProps, type OverlayScrimSlots, type OverlayShowOn, type OverlaySlots, type UseOverlayOptions, type UseOverlayResult, useOverlay };
@@ -1,2 +1,2 @@
1
- import { i as PaginationSlots, n as PaginationEmits, r as PaginationProps, t as _default } from "../index-Ck8qy6Rf.js";
2
- export { _default as Pagination, type PaginationEmits, type PaginationProps, type PaginationSlots };
1
+ import { a as PaginationSlots, i as PaginationSize, n as PaginationEmits, o as PaginationVariant, r as PaginationProps, t as _default } from "../index-c_TaW8mM.js";
2
+ export { _default as Pagination, type PaginationEmits, type PaginationProps, type PaginationSize, type PaginationSlots, type PaginationVariant };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Pagination-HdhtykeF.js";
1
+ import { t as _sfc_main } from "../Pagination-Cb66HMEf.js";
2
2
  export { _sfc_main as Pagination };