@astryx-vue/core 0.36.1 → 0.37.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 (168) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-C4oB89RV.js → AlertDialog-DwITRN1M.js} +1 -1
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-CU12SF6s.js → AppShell-ClZ2Y8cu.js} +2 -2
  5. package/dist/AvatarGroup/index.d.ts +1 -1
  6. package/dist/Banner/index.d.ts +1 -1
  7. package/dist/BottomSheet/index.d.ts +1 -1
  8. package/dist/BottomSheet/index.js +2 -2
  9. package/dist/{BottomSheet-DCLOhzZP.js → BottomSheet-CDxV1Rkx.js} +3 -3
  10. package/dist/BottomSheet-Cr6FacYP.js +1853 -0
  11. package/dist/Breadcrumbs/index.js +2 -2
  12. package/dist/{Breadcrumbs-BfjWIfgO.js → Breadcrumbs-DaxgM0-F.js} +1 -1
  13. package/dist/ButtonGroup/index.d.ts +1 -1
  14. package/dist/Calendar/index.d.ts +1 -1
  15. package/dist/Carousel/index.d.ts +1 -1
  16. package/dist/Chat/index.d.ts +1 -1
  17. package/dist/Chat/index.js +1 -1
  18. package/dist/{Chat-f9HzZe5y.js → Chat-BRtDKajd.js} +230 -12
  19. package/dist/CheckboxInput/index.d.ts +1 -1
  20. package/dist/CheckboxList/index.d.ts +1 -1
  21. package/dist/ClickableCard/index.d.ts +1 -1
  22. package/dist/Collapsible/index.js +1 -1
  23. package/dist/{Collapsible-Dxp-BWv-.js → Collapsible-DfVihLCR.js} +1 -1
  24. package/dist/CommandPalette/index.js +1 -1
  25. package/dist/{CommandPalette-PyPfsPLY.js → CommandPalette-CWaKVNGZ.js} +2 -1
  26. package/dist/ComplexSelector/index.js +1 -1
  27. package/dist/{ComplexSelector-B07QdP_p.js → ComplexSelector-D2QRdM57.js} +1 -1
  28. package/dist/ContextMenu/index.d.ts +1 -1
  29. package/dist/ContextMenu/index.js +2 -2
  30. package/dist/{ContextMenu-B6NH9NBS.js → ContextMenu-D-G53u7B.js} +4 -4
  31. package/dist/DateInput/index.d.ts +1 -1
  32. package/dist/DateInput/index.js +1 -1
  33. package/dist/{DateInput-TrPijW9a.js → DateInput-BHSp4fZS.js} +2 -2
  34. package/dist/DateRangeInput/index.d.ts +1 -1
  35. package/dist/DateRangeInput/index.js +1 -1
  36. package/dist/{DateRangeInput-bKPzsoHA.js → DateRangeInput-DP1QWK_6.js} +1 -1
  37. package/dist/DateTimeInput/index.d.ts +1 -1
  38. package/dist/DateTimeInput/index.js +1 -1
  39. package/dist/{DateTimeInput-5jZPqFu2.js → DateTimeInput-Bgx9lgWb.js} +3 -3
  40. package/dist/Dialog/index.d.ts +1 -1
  41. package/dist/Dialog/index.js +3 -3
  42. package/dist/{Dialog-CDAicnpK.js → Dialog-DCKT1dWC.js} +2 -1
  43. package/dist/{Dialog-dm_qZ9NI.js → Dialog-DRQrtKHT.js} +5 -82
  44. package/dist/{DialogHeader-CQfcOIfF.js → DialogHeader-C3Mc580J.js} +1 -1
  45. package/dist/Drawer/index.d.ts +1 -1
  46. package/dist/Drawer/index.js +1 -1
  47. package/dist/Drawer-CnFTUjln.js +422 -0
  48. package/dist/DropdownMenu/index.js +2 -2
  49. package/dist/{DropdownMenu-C-SLsVSO.js → DropdownMenu-DU_Rw88D.js} +4 -4
  50. package/dist/HoverCard/index.d.ts +1 -1
  51. package/dist/InfoTip/index.d.ts +1 -1
  52. package/dist/Layout/index.js +2 -2
  53. package/dist/{Layout-CpFgVnlQ.js → Layout-BDS2ZN6C.js} +1 -1
  54. package/dist/{LayoutPanel-Dhm0Hubb.js → LayoutPanel-D56PBM4I.js} +1 -1
  55. package/dist/Lightbox/index.js +1 -1
  56. package/dist/{Lightbox-BSzyDGkK.js → Lightbox-CnTXrgq6.js} +2 -2
  57. package/dist/Link/index.d.ts +1 -1
  58. package/dist/List/index.d.ts +1 -1
  59. package/dist/Markdown/index.d.ts +1 -1
  60. package/dist/MobileNav/index.js +1 -1
  61. package/dist/{MobileNavToggle-C1_IinAo.js → MobileNavToggle-CjlgmcSf.js} +2 -2
  62. package/dist/MoreMenu/index.d.ts +1 -1
  63. package/dist/MoreMenu/index.js +1 -1
  64. package/dist/{MoreMenu-DbYO8V7N.js → MoreMenu-CGTbwTyw.js} +1 -1
  65. package/dist/MultiSelector/index.d.ts +1 -1
  66. package/dist/MultiSelector/index.js +1 -1
  67. package/dist/{MultiSelector-CthCkW-w.js → MultiSelector-DUQMNBoZ.js} +1 -1
  68. package/dist/NavItem/index.d.ts +1 -1
  69. package/dist/NavMenu/index.js +2 -2
  70. package/dist/{NavMenu-g8ZVhLMG.js → NavMenu-BflnhBtX.js} +1 -1
  71. package/dist/{NavMenuItem-DJg9jfHm.js → NavMenuItem-CrFrczWe.js} +1 -1
  72. package/dist/NumberInput/index.d.ts +1 -1
  73. package/dist/NumberInput/index.js +1 -1
  74. package/dist/{NumberInput-BM52uE72.js → NumberInput-vWUcgJU8.js} +2 -0
  75. package/dist/OverflowList/index.d.ts +1 -1
  76. package/dist/OverflowList/index.js +1 -1
  77. package/dist/{OverflowList-nW6GCEsY.js → OverflowList-D9Ua6e3-.js} +1 -1
  78. package/dist/Overlay/index.d.ts +1 -1
  79. package/dist/Pagination/index.d.ts +1 -1
  80. package/dist/Pagination/index.js +1 -1
  81. package/dist/{Pagination-DFZivDZZ.js → Pagination-DBikmHyn.js} +3 -3
  82. package/dist/Popover/index.js +1 -1
  83. package/dist/{Popover-IvZGq1LC.js → Popover-CTCWhA_K.js} +3 -3
  84. package/dist/PowerSearch/index.d.ts +1 -1
  85. package/dist/PowerSearch/index.js +1 -1
  86. package/dist/{PowerSearch-CQdyB8_N.js → PowerSearch-CTNFHNnr.js} +10 -10
  87. package/dist/ProgressBar/index.d.ts +1 -1
  88. package/dist/Radio/index.d.ts +1 -1
  89. package/dist/RadioList/index.d.ts +1 -1
  90. package/dist/ScrollableArea/index.d.ts +1 -1
  91. package/dist/SelectableCard/index.d.ts +1 -1
  92. package/dist/Selector/index.d.ts +1 -1
  93. package/dist/Selector/index.js +1 -1
  94. package/dist/{Selector-icOfE3ja.js → Selector-BvxQXUYr.js} +1 -1
  95. package/dist/SideNav/index.d.ts +1 -1
  96. package/dist/SideNav/index.js +1 -1
  97. package/dist/{SideNav-ZZ5zCQz0.js → SideNav-D8jQrwtL.js} +1 -1
  98. package/dist/Stack/index.d.ts +1 -1
  99. package/dist/Stepper/index.d.ts +1 -1
  100. package/dist/Switch/index.d.ts +1 -1
  101. package/dist/TabList/index.d.ts +1 -1
  102. package/dist/TabList/index.js +1 -1
  103. package/dist/{TabList-C-HBxmkc.js → TabList-DjRutwar.js} +1 -1
  104. package/dist/Table/index.d.ts +1 -1
  105. package/dist/Table/index.js +1 -1
  106. package/dist/{Table-aMqVf_iH.js → Table-3GiSElIS.js} +8 -8
  107. package/dist/TextArea/index.d.ts +1 -1
  108. package/dist/TextArea/index.js +1 -1
  109. package/dist/{TextArea-YJtL9Fi6.js → TextArea-BtBC4IoD.js} +2 -0
  110. package/dist/TextInput/index.d.ts +1 -1
  111. package/dist/TextInput/index.js +1 -1
  112. package/dist/{TextInput-CuPxOApN.js → TextInput-cotkU2bC.js} +2 -0
  113. package/dist/{TimeField-DNxPI2cM.js → TimeField-BYuUKUNq.js} +1 -1
  114. package/dist/TimeInput/index.d.ts +1 -1
  115. package/dist/TimeInput/index.js +1 -1
  116. package/dist/{TimeInput-PJdyNX0T.js → TimeInput-Bqo_oHMl.js} +1 -1
  117. package/dist/Timer/index.d.ts +1 -1
  118. package/dist/Timestamp/index.d.ts +1 -1
  119. package/dist/Toast/index.js +1 -1
  120. package/dist/{Toast-W6aKxXlF.js → Toast-BSay0eZw.js} +14 -6
  121. package/dist/ToggleButton/index.d.ts +1 -1
  122. package/dist/Tokenizer/index.js +1 -1
  123. package/dist/{Tokenizer-CdyoUaoZ.js → Tokenizer-D-wBxbBE.js} +3 -3
  124. package/dist/Toolbar/index.d.ts +1 -1
  125. package/dist/Tooltip/index.d.ts +1 -1
  126. package/dist/TopNav/index.d.ts +1 -1
  127. package/dist/TopNav/index.js +1 -1
  128. package/dist/{TopNav-CxAm5bN5.js → TopNav-D7jH9iwk.js} +2 -2
  129. package/dist/TreeList/index.d.ts +1 -1
  130. package/dist/{accessibleName-CN1vKvS_.js → accessibleName-CHrrgpAy.js} +1 -1
  131. package/dist/composables/index.js +4 -4
  132. package/dist/{focusLeaving-DMkbxFkF.js → focusLeaving-BbZ69DYV.js} +1 -1
  133. package/dist/{focusReturn-DfZS7TCp.js → focusReturn-BeSRm0xD.js} +34 -3
  134. package/dist/{index-ZXrvTM3A.d.ts → index-0RIgvtdm.d.ts} +2 -2
  135. package/dist/{index-tdOyqA_U.d.ts → index-Ak1b0V24.d.ts} +1 -1
  136. package/dist/{index-DYabo8TI.d.ts → index-B44fLswd.d.ts} +2 -2
  137. package/dist/{index-B27k2e77.d.ts → index-B7Rd2RuL.d.ts} +44 -32
  138. package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
  139. package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
  140. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  141. package/dist/{index-x7g2WHHx.d.ts → index-BhpRhww0.d.ts} +3 -3
  142. package/dist/{index-rr6Rns7h.d.ts → index-CGRtGORf.d.ts} +1 -1
  143. package/dist/{index-C4S65SAW.d.ts → index-CKnr0JlT.d.ts} +1 -1
  144. package/dist/{index-CdvmnNMH.d.ts → index-COgrQZIL.d.ts} +1 -1
  145. package/dist/{index-CBOv5j3c.d.ts → index-CbA8rR_b.d.ts} +1 -1
  146. package/dist/{index-JE1HrzdJ.d.ts → index-DVX2jlTQ.d.ts} +2 -2
  147. package/dist/{index-DofC9Rll.d.ts → index-Dk50Zh3F.d.ts} +2 -2
  148. package/dist/{index-BfFpUr1B.d.ts → index-ZKBj_1nu.d.ts} +1 -1
  149. package/dist/{index-BufuCsTx.d.ts → index-hwP1oWCA.d.ts} +2 -2
  150. package/dist/{index-C3JmGujU.d.ts → index-mK1ICsVg.d.ts} +1 -1
  151. package/dist/index.d.ts +17 -17
  152. package/dist/index.js +46 -46
  153. package/dist/{layerFocusReturn-CEvrMbxH.js → layerFocusReturn-uixUCSc8.js} +1 -1
  154. package/dist/{lazyBottomSheet-DlrpPOl8.js → lazyBottomSheet-C6Rw8yoX.js} +1 -1
  155. package/dist/{modalOutlet-Drr9a16b.js → modalOutlet-BwR9AAlm.js} +16 -1
  156. package/dist/position-DwHfneha.js +79 -0
  157. package/dist/rideKeyboard-BCzVooOd.js +1635 -0
  158. package/dist/sheetTransition-BEm1GCv1.js +76 -0
  159. package/dist/{useChatStreamScroll-DWhnCSP1.js → useChatStreamScroll-3mJvbNtI.js} +30 -4
  160. package/dist/{useFocusTrap-DcjriBe1.js → useFocusTrap-Bj9GskLh.js} +1 -1
  161. package/dist/{useMenuPress-zOinmIFS.js → useMenuPress-kjmot8Bn.js} +1 -1
  162. package/dist/useMobileKeyboard-BDPV51xl.js +806 -0
  163. package/dist/{useRestoreFocus-DS7uQWok.js → useRestoreFocus-m3rsqE4d.js} +1 -1
  164. package/package.json +1 -1
  165. package/styles/chat.css +6 -0
  166. package/styles/drawer.css +136 -44
  167. package/dist/BottomSheet-Chr9yCIL.js +0 -4353
  168. package/dist/Drawer-DKSqpR2p.js +0 -137
@@ -1,137 +0,0 @@
1
- import { t as _sfc_main$2 } from "./Dialog-dm_qZ9NI.js";
2
- import { t as _sfc_main$3 } from "./DialogHeader-CQfcOIfF.js";
3
- import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, unref, useAttrs, useSlots, withCtx } from "vue";
4
- import "../styles/drawer.css";
5
- //#region src/Drawer/Drawer.vue
6
- const _hoisted_1 = { class: "astryx-drawer-body" };
7
- const _hoisted_2 = {
8
- key: 0,
9
- class: "astryx-drawer-footer"
10
- };
11
- /**
12
- * 贴边的模态面板。模态、焦点陷阱、焦点归还、滚动锁和 `purpose` 的关闭规则
13
- * 都由 `Dialog` 负责,这里只决定贴哪一边和多大。
14
- */
15
- const _sfc_main$1 = /*@__PURE__*/ defineComponent({
16
- name: "AstryxDrawer",
17
- inheritAttrs: false,
18
- __name: "Drawer",
19
- props: {
20
- isOpen: { type: Boolean },
21
- label: {},
22
- placement: { default: "end" },
23
- width: { default: 400 },
24
- padding: { default: void 0 },
25
- purpose: { default: "info" }
26
- },
27
- emits: ["openChange"],
28
- setup(__props, { emit: __emit }) {
29
- const props = __props;
30
- const emit = __emit;
31
- const attrs = useAttrs();
32
- const position = computed(() => props.placement === "start" ? {
33
- start: 0,
34
- top: 0,
35
- bottom: 0
36
- } : {
37
- end: 0,
38
- top: 0,
39
- bottom: 0
40
- });
41
- const rootAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([name]) => name !== "class" && name !== "style")));
42
- return (_ctx, _cache) => {
43
- return openBlock(), createBlock(_sfc_main$2, mergeProps(rootAttrs.value, {
44
- "aria-label": __props.label,
45
- class: ["astryx-drawer", [`astryx-drawer--${__props.placement}`, unref(attrs).class]],
46
- "is-open": __props.isOpen,
47
- "max-height": "100dvh",
48
- padding: __props.padding,
49
- position: position.value,
50
- purpose: __props.purpose,
51
- style: unref(attrs).style,
52
- width: __props.width,
53
- onOpenChange: _cache[0] || (_cache[0] = ($event) => emit("openChange", $event))
54
- }), {
55
- default: withCtx(() => [createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")]), _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_ctx.$slots, "footer")])) : createCommentVNode("v-if", true)]),
56
- _: 3
57
- }, 16, [
58
- "aria-label",
59
- "class",
60
- "is-open",
61
- "padding",
62
- "position",
63
- "purpose",
64
- "style",
65
- "width"
66
- ]);
67
- };
68
- }
69
- });
70
- //#endregion
71
- //#region src/Drawer/DrawerHeader.vue
72
- /**
73
- * 抽屉的标题行。布局、标题语义和关闭按钮的补偿边都复用 `DialogHeader`,
74
- * 这里只把关闭按钮的默认值和事件名换成抽屉的说法。
75
- */
76
- const _sfc_main = /*@__PURE__*/ defineComponent({
77
- name: "AstryxDrawerHeader",
78
- __name: "DrawerHeader",
79
- props: {
80
- title: {},
81
- subtitle: { default: void 0 },
82
- hasCloseButton: {
83
- type: Boolean,
84
- default: void 0
85
- },
86
- closeButtonLabel: { default: void 0 }
87
- },
88
- emits: ["openChange"],
89
- setup(__props, { emit: __emit }) {
90
- const props = __props;
91
- const emit = __emit;
92
- const instance = getCurrentInstance();
93
- const slots = useSlots();
94
- /**
95
- * 关闭按钮只在有人接关闭请求时出现:没人处理的按钮点了什么也不会发生。
96
- * 显式传 `hasCloseButton` 时以传入值为准。监听函数在渲染时才看得到,所以放在 computed 里读。
97
- */
98
- const showClose = computed(() => props.hasCloseButton ?? instance?.vnode?.props?.onOpenChange != null);
99
- return (_ctx, _cache) => {
100
- return openBlock(), createBlock(_sfc_main$3, {
101
- "close-button-label": __props.closeButtonLabel,
102
- "has-close-button": showClose.value,
103
- subtitle: __props.subtitle,
104
- title: __props.title,
105
- onOpenChange: _cache[0] || (_cache[0] = ($event) => emit("openChange", false))
106
- }, createSlots({ _: 2 }, [
107
- unref(slots).title ? {
108
- name: "title",
109
- fn: withCtx(() => [renderSlot(_ctx.$slots, "title")]),
110
- key: "0"
111
- } : void 0,
112
- unref(slots).subtitle ? {
113
- name: "subtitle",
114
- fn: withCtx(() => [renderSlot(_ctx.$slots, "subtitle")]),
115
- key: "1"
116
- } : void 0,
117
- unref(slots).startContent ? {
118
- name: "startContent",
119
- fn: withCtx(() => [renderSlot(_ctx.$slots, "startContent")]),
120
- key: "2"
121
- } : void 0,
122
- unref(slots).endContent ? {
123
- name: "endContent",
124
- fn: withCtx(() => [renderSlot(_ctx.$slots, "endContent")]),
125
- key: "3"
126
- } : void 0
127
- ]), 1032, [
128
- "close-button-label",
129
- "has-close-button",
130
- "subtitle",
131
- "title"
132
- ]);
133
- };
134
- }
135
- });
136
- //#endregion
137
- export { _sfc_main$1 as n, _sfc_main as t };