@astryx-vue/core 0.30.0 → 0.30.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.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-D_lrpZz_.js → AlertDialog-B_p1yL3k.js} +7 -7
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-CxUmt6hX.js → AppShell-D3KZSLvb.js} +5 -5
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-DT5RbxDa.js → AvatarGroup-Dd-yDDNz.js} +2 -2
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-Ctg1puM6.js → Banner-DKmvoMxD.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-CmNOXlZO.js → BottomSheet-Btf8Yn8k.js} +845 -276
- package/dist/{BottomSheet-_K41Oliv.js → BottomSheet-CQGtoh2x.js} +1 -1
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CdGqhFKU.js → Breadcrumbs-D6825HQI.js} +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-CvHeZGf1.js → Button-DdPty46q.js} +2 -2
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-CUN_rC57.js → ButtonGroup-oI99JAyN.js} +3 -3
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-CbdHb8MD.js → Carousel-BNr79JpP.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-B7ccEmTR.js → Chat-BadS0fEx.js} +2 -2
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-5r6VWqId.js → CheckboxInput-CzP8gP3v.js} +3 -3
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-CKeQzQ0W.js → CheckboxListItem-CxBjpX3d.js} +4 -4
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-ChmOwgYq.js → ClickableCard-B86P2aiM.js} +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-4i1vvmOc.js → CodeBlock-Cgm4uOhG.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-B2vrr_YP.js → Collapsible-CfTN722D.js} +3 -3
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BMwvTjff.js → CommandPalette-BgVwGtdA.js} +2 -2
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-B4iFyilD.js → ComplexSelector-DqWJVx7H.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DquYeIEF.js → ContextMenu-C9dJGu3M.js} +3 -3
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-MNNyi4XK.js → DateInput-CGKaozkw.js} +3 -3
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DOHntScL.js → DateRangeInput-BVHXgzXz.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BaghFHW6.js → DateTimeInput-DRm3lekJ.js} +5 -5
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-Ctha_b_L.js → Dialog-BN-NycQr.js} +1 -1
- package/dist/{Dialog-CGf64DqF.js → Dialog-Dt0gNuMT.js} +1 -1
- package/dist/{DialogHeader-BxTV37GT.js → DialogHeader-CSH2_5v-.js} +2 -2
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-DAnc2ut9.js → Drawer-PeMgE4iA.js} +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-BPi0pm0w.js → DropdownMenu-C9bvYZPt.js} +5 -5
- package/dist/{DropdownMenu-DuSVFQoS.js → DropdownMenu-_lQQyQCn.js} +6 -6
- package/dist/Field/index.js +3 -3
- package/dist/{Field-d5R_kRMv.js → Field-D-fRqyso.js} +1 -1
- package/dist/{FieldInfoTip-BhKtjq3g.js → FieldInfoTip-Bstp5Lvd.js} +1 -1
- package/dist/{FieldLabel-BHNpYFx7.js → FieldLabel-lV_qLaGp.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BCg4HROm.js → FileInput-CTNnDIkm.js} +3 -3
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-BZgU_THt.js → IconButton-DPezhVBA.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-E2-OzKti.js → InfoTip-B4BFfLtT.js} +1 -1
- package/dist/{InputClearButton-B62_uexC.js → InputClearButton-CxU3iv-5.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-DKBqRYFf.js → InputGroup-CraWGK6Y.js} +1 -1
- package/dist/{Item-C8UAQwFQ.js → Item-C9u_kQUO.js} +15 -14
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-Bou1gTfv.js → Lightbox-BNUG9CQ1.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-CaJ5lmKk.js → Link-Bwgpn-di.js} +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-BlrEngDO.js → ListItem-_lOmngHp.js} +2 -2
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-BE6vdvPG.js → Markdown-BlEi5UGN.js} +2 -2
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-D5yGMHU4.js → MobileNavToggle-wVa9dzH1.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-CNzTagqr.js → MoreMenu-MmvMRWv5.js} +3 -3
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-MGEiRi1W.js → MultiSelector-DXrKQLmq.js} +4 -4
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-kj9FbbFS.js → NavItem-D4xHjSTo.js} +1 -1
- package/dist/NavMenu/index.js +2 -2
- package/dist/{NavMenu-ZN5cqCxO.js → NavMenu-NCg3VjAQ.js} +2 -2
- package/dist/{NavMenuItem-xm3e0V8q.js → NavMenuItem-Bla6fYVl.js} +3 -3
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-D4ECOHh_.js → NumberInput-DicgvFte.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-DI9MZnuQ.js → Outline-DlO_97b4.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-m1tf_fR1.js → OverflowList-BYYz3ePw.js} +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-BdjxuxM3.js → Pagination-DM_W9Ue-.js} +3 -3
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-DEj8xWN-.js → Popover-CxReY-4u.js} +5 -5
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-BJDFietK.js → PowerSearch-BwUWZG3p.js} +19 -19
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-B3UoJrOA.js → RadioGroup-CsJYGjyx.js} +3 -3
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-CD7kUGlN.js → RadioListItem-Yc3K82YE.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-DGd6JlaD.js → SegmentedControl-C-F5dkcG.js} +2 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-GRWYx3iD.js → SelectableCard-CwfpgsS8.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-BD0u-5Fy.js → Selector-bH99g1vj.js} +2 -2
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-DoqCLRiX.js → SideNav-C1ZxusAB.js} +6 -6
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DHR7HZ7N.js → Slider-Bq_7Nskr.js} +2 -2
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CCuggsov.js → Stepper-CWluGqBs.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-CnFC7jGw.js → Switch-DTPvMAxd.js} +2 -2
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-fMlX8m6n.js → TabList-C4i7UZkp.js} +3 -3
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-DoKmVdhZ.js → Table-ClHIgsKO.js} +13 -13
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-y9mmYAIy.js → TextArea-J2_wct0p.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-BLGEh7vE.js → TextInput-Da1TYd57.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-Dm8krgGF.js → Thumbnail-1LsaJ4_m.js} +2 -2
- package/dist/{TimeField-DS30hnty.js → TimeField-i5ESA500.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-DcY4b3dg.js → TimeInput-frnKZo1M.js} +2 -2
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-BhBuBHu8.js → Timestamp-SseS_qtf.js} +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-CnLk7LzS.js → Toast-tAq4S96S.js} +149 -20
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-B9IJcpdJ.js → ToggleButton-B6hBzeVl.js} +3 -3
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-C7Dt5ygK.js → Token-DTGUCgpn.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-D7ZCTbnf.js → Tokenizer-iFZAuIwu.js} +7 -7
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-DSWH8ll4.js → Toolbar-BHkPxDxA.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CK_F6Ud5.js → TopNav-CcIayfsW.js} +4 -4
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-Dh0uAj2B.js → TreeList-Da_OKrv_.js} +4 -4
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-Cs-46obm.js → Typeahead-BD6xXNKh.js} +3 -3
- package/dist/VelocityTracker-DgjmootV.js +165 -0
- package/dist/{animator-BGq5a6vT.js → animator-CEHDYTfQ.js} +29 -173
- package/dist/{batch-BhaAWUIt.js → batch-D2a2MsSW.js} +4 -19
- package/dist/bezier-Dko5MnTp.js +37 -0
- package/dist/{clickGuard-FrlnECMp.js → clickGuard-C3VmOLhI.js} +2 -1
- package/dist/composables/index.js +7 -7
- package/dist/composables-Bs0O_SRd.js +2548 -0
- package/dist/{context-jtpQfR6F.js → context-NKb_prrS.js} +2 -2
- package/dist/{edge-CJIswPTX.js → edge-tj-cLZYh.js} +1 -1
- package/dist/{edgeRide-Drk4V-MC.js → edgeRide-DcUqLXE2.js} +4 -4
- package/dist/{handle-BazRxHwq.js → handle-CwxCHapJ.js} +1 -1
- package/dist/{holdEntranceInput-DMCOeRqu.js → holdEntranceInput-DgimbgGm.js} +1 -1
- package/dist/{index-BVeTS-R5.d.ts → index-3qz8Qztx.d.ts} +4 -4
- package/dist/{index-Q1oG9yIT.d.ts → index-B-3EGjfQ.d.ts} +2 -2
- package/dist/{index-C1e8LNx2.d.ts → index-BjqoHLMq.d.ts} +1 -1
- package/dist/{index-DQ3akoRZ.d.ts → index-Bu4R0WZA.d.ts} +3 -3
- package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
- package/dist/{index-BL9fE6gs.d.ts → index-Cw4CUe06.d.ts} +5 -5
- package/dist/{index-CUuUoX3h.d.ts → index-JE1HrzdJ.d.ts} +3 -3
- package/dist/{index-hUa5oQ5O.d.ts → index-m3DOxOw6.d.ts} +42 -42
- package/dist/index.d.ts +9 -9
- package/dist/index.js +85 -85
- package/dist/{inputHold-BmChuR9x.js → inputHold-DW2LYHb5.js} +4 -4
- package/dist/{inputHoldState-pblUT4oh.js → inputHoldState-xntIqr5W.js} +2 -1
- package/dist/{inputStream-LZdK8luP.js → inputStream-bPd9eB2b.js} +2 -49
- package/dist/isRtlElement-NHuH48AA.js +23 -0
- package/dist/{landing-CBaXCGEg.js → landing-Bi7X7w_7.js} +3 -3
- package/dist/{lazyBottomSheet-Cmd-WMEE.js → lazyBottomSheet-BVZ1yH8g.js} +1 -1
- package/dist/{timing-CSHWQbTJ.js → linearEasing-ScK9LqAY.js} +30 -1
- package/dist/{bezier-Df-yGuNZ.js → presentation-Cy_yf56y.js} +2 -39
- package/dist/{pressFeedback-DVR5V1b6.js → pressFeedback-9dqGYjxv.js} +2 -2
- package/dist/{resolveMotion-CurhYTVC.js → resolveMotion-1cwESYvK.js} +202 -1
- package/dist/resolveSnapPoint-DdZyBkT4.js +717 -0
- package/dist/{flatTree-BB4yPMNL.js → sharedRealm-H1OrlP0V.js} +49 -1
- package/dist/{themeTiming-BFDOPRjK.js → themeTiming-NUkH9HsU.js} +1 -1
- package/dist/{touchHold-CFJlSClt.js → touchHold-DXtx7npm.js} +1 -1
- package/dist/{useActionGroupTracking-C6BzQzvp.js → useActionGroupTracking-CLFF7FI2.js} +2 -2
- package/dist/{useAnimatedLayout-DC2l3WrE.js → useAnimatedLayout-DWWc31RR.js} +1 -1
- package/dist/{composables-BTRbNgmR.js → useAttachment-BuNyeUXy.js} +44 -3464
- package/dist/{useChatStreamScroll-Cv51kRT0.js → useChatStreamScroll-CuMzkXgD.js} +1 -1
- package/dist/{useInputStatusIcon-BngSzjVd.js → useInputStatusIcon-BqV6YzTV.js} +1 -1
- package/dist/{useListFocus-CkHfsZp0.js → useListFocus-Ccd_HU9T.js} +2 -23
- package/dist/{useMenuDrillIn-BQx6lQMz.js → useMenuDrillIn-Cj6MM77J.js} +1 -1
- package/dist/{useMenuEntranceHold-buV5S9yk.js → useMenuEntranceHold-HznOwIry.js} +1 -1
- package/dist/{useMenuHover-CfQtWMg-.js → useMenuHover-DoBatZeD.js} +1 -1
- package/dist/{useMenuPress-DU6pAIHy.js → useMenuPress-DcwVUsQO.js} +3 -3
- package/dist/{usePressFeedback-BhNcuxQv.js → usePressFeedback-DHdmAsMp.js} +1 -1
- package/dist/{useTouchHitArea-CNZyA18Y.js → useTouchHitArea-SY1ITxSJ.js} +2 -2
- package/package.json +1 -1
- package/styles/bottom-sheet.css +28 -8
- package/dist/{index-D8lv2BiD.d.ts → index-BqhgeAT4.d.ts} +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as subscribeInput } from "./inputStream-
|
|
1
|
+
import { i as subscribeInput } from "./inputStream-bPd9eB2b.js";
|
|
2
2
|
import { t as useMediaQuery } from "./useMediaQuery-BzXGT1Aw.js";
|
|
3
3
|
import { onScopeDispose, ref, toValue, watch } from "vue";
|
|
4
4
|
//#region src/composables/useChatNewMessages.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as _sfc_main } from "./FieldIcon-BU1ZWAuo.js";
|
|
2
|
-
import { t as _sfc_main$1 } from "./FieldInfoTip-
|
|
2
|
+
import { t as _sfc_main$1 } from "./FieldInfoTip-Bstp5Lvd.js";
|
|
3
3
|
import { computed, toValue } from "vue";
|
|
4
4
|
//#region src/composables/useInputStatusIcon.ts
|
|
5
5
|
/**
|
|
@@ -1,26 +1,5 @@
|
|
|
1
|
+
import { t as isRtlElement } from "./isRtlElement-NHuH48AA.js";
|
|
1
2
|
import { ref, toValue, watch } from "vue";
|
|
2
|
-
//#region src/utils/isRtlElement.ts
|
|
3
|
-
/**
|
|
4
|
-
* @file isRtlElement.ts
|
|
5
|
-
* @input DOM element (nullable)
|
|
6
|
-
* @output Exports isRtlElement helper resolving an element's computed text
|
|
7
|
-
* direction
|
|
8
|
-
* @position Internal hook utility; used by useListFocus and useGridFocus to
|
|
9
|
-
* auto-detect RTL for arrow-key navigation (same getComputedStyle precedent
|
|
10
|
-
* as Resizable's ResizeHandle drag deltas).
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Whether `el` renders right-to-left, per its computed `direction`.
|
|
14
|
-
*
|
|
15
|
-
* SSR-safe: returns false when `el` is null or no DOM is available. Callers
|
|
16
|
-
* should invoke this lazily (on keydown, not on render) so getComputedStyle
|
|
17
|
-
* runs only when a horizontal arrow key is actually handled.
|
|
18
|
-
*/
|
|
19
|
-
function isRtlElement(el) {
|
|
20
|
-
if (!el || typeof window === "undefined") return false;
|
|
21
|
-
return window.getComputedStyle(el).direction === "rtl";
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
3
|
//#region src/composables/useListFocus.ts
|
|
25
4
|
const TEXT_INPUT_TYPES = /* @__PURE__ */ new Set([
|
|
26
5
|
"text",
|
|
@@ -275,4 +254,4 @@ function useListFocus(options = {}) {
|
|
|
275
254
|
};
|
|
276
255
|
}
|
|
277
256
|
//#endregion
|
|
278
|
-
export {
|
|
257
|
+
export { useListFocus as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
2
|
import { t as _sfc_main$4 } from "./Icon-Dk0jccgU.js";
|
|
3
3
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
4
|
-
import { t as _sfc_main$5 } from "./Item-
|
|
4
|
+
import { t as _sfc_main$5 } from "./Item-C9u_kQUO.js";
|
|
5
5
|
import { t as _sfc_main$6 } from "./CheckboxIndicator-fH4d-JE1.js";
|
|
6
6
|
import { a as useCompactDefinition, r as readCompactTouch } from "./presentationHold-7IkbR4d8.js";
|
|
7
7
|
import { t as dropdownMenuMessages } from "./dropdown-menu-BDu4gWwQ.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useMediaQuery } from "./useMediaQuery-BzXGT1Aw.js";
|
|
2
|
-
import { t as useListFocus } from "./useListFocus-
|
|
2
|
+
import { t as useListFocus } from "./useListFocus-Ccd_HU9T.js";
|
|
3
3
|
import { t as createHideTimer } from "./hoverIntent-DMHGb85c.js";
|
|
4
4
|
import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { m as msSinceInput } from "./pressFeedback-
|
|
2
|
-
import { i as withoutClickGuard, r as disarmEveryClickGuard, t as armClickGuard } from "./clickGuard-
|
|
1
|
+
import { m as msSinceInput } from "./pressFeedback-9dqGYjxv.js";
|
|
2
|
+
import { i as withoutClickGuard, r as disarmEveryClickGuard, t as armClickGuard } from "./clickGuard-C3VmOLhI.js";
|
|
3
3
|
import { c as currentGesture } from "./layerDepth-D3Rh8T5C.js";
|
|
4
4
|
import { t as focusForLastInput } from "./focusReturn-DfZS7TCp.js";
|
|
5
|
-
import { r as isInputShield } from "./inputHoldState-
|
|
5
|
+
import { r as isInputShield } from "./inputHoldState-xntIqr5W.js";
|
|
6
6
|
import { getCurrentScope, onScopeDispose, toValue } from "vue";
|
|
7
7
|
//#region src/composables/useLongPress.ts
|
|
8
8
|
const DEFAULT_DELAY_MS = 500;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as PRESS_ACTION_ATTRIBUTE, i as PRESSABLE_ATTRIBUTE, n as installPressFeedback, o as PRESS_CONTAINER_ATTRIBUTE } from "./pressFeedback-
|
|
1
|
+
import { a as PRESS_ACTION_ATTRIBUTE, i as PRESSABLE_ATTRIBUTE, n as installPressFeedback, o as PRESS_CONTAINER_ATTRIBUTE } from "./pressFeedback-9dqGYjxv.js";
|
|
2
2
|
import { getCurrentInstance, getCurrentScope, onMounted, onScopeDispose } from "vue";
|
|
3
3
|
import "../styles/pressable.css";
|
|
4
4
|
//#region src/composables/usePressFeedback.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as isTrackedByGroup, r as pressFadeMs, s as PRESS_GROUP_ITEM_ATTRIBUTE, t as PRESSED_ATTRIBUTE } from "./pressFeedback-
|
|
2
|
-
import { t as armClickGuard } from "./clickGuard-
|
|
1
|
+
import { c as isTrackedByGroup, r as pressFadeMs, s as PRESS_GROUP_ITEM_ATTRIBUTE, t as PRESSED_ATTRIBUTE } from "./pressFeedback-9dqGYjxv.js";
|
|
2
|
+
import { t as armClickGuard } from "./clickGuard-C3VmOLhI.js";
|
|
3
3
|
import { toValue, watch } from "vue";
|
|
4
4
|
import "../styles/touch-hit-area.css";
|
|
5
5
|
/** 不长:热区就是目标本身。 */
|
package/package.json
CHANGED
package/styles/bottom-sheet.css
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
background: var(--astryx-bottom-sheet-scrim, var(--astryx-color-overlay, rgb(0 0 0 / 50%)));
|
|
35
35
|
opacity: var(--_sheet-scrim-opacity, 1);
|
|
36
36
|
transition-property: opacity, display;
|
|
37
|
-
transition-duration: var(--astryx-duration-medium-max, 400ms);
|
|
37
|
+
transition-duration: var(--_sheet-scrim-duration, var(--astryx-duration-medium-max, 400ms));
|
|
38
38
|
transition-timing-function: var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
|
|
39
39
|
transition-behavior: allow-discrete;
|
|
40
40
|
}
|
|
@@ -42,10 +42,12 @@
|
|
|
42
42
|
/*
|
|
43
43
|
* The dim leaves with the sheet on a linear curve: a fade covers no distance,
|
|
44
44
|
* so a decelerate token would front-load its progress and leave an undimmed
|
|
45
|
-
* page under a sheet that is still sliding across it.
|
|
45
|
+
* page under a sheet that is still sliding across it. A swipe's close writes
|
|
46
|
+
* its spring's progress as the easing instead, so the dim clears as the
|
|
47
|
+
* sheet slides out.
|
|
46
48
|
*/
|
|
47
49
|
.astryx-bottom-sheet-dialog--closing::backdrop {
|
|
48
|
-
transition-timing-function: linear;
|
|
50
|
+
transition-timing-function: var(--_sheet-scrim-easing, linear);
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
@starting-style {
|
|
@@ -144,8 +146,8 @@
|
|
|
144
146
|
min-width: 0;
|
|
145
147
|
min-height: 0;
|
|
146
148
|
flex-direction: column;
|
|
147
|
-
margin-block-end: -48px;
|
|
148
|
-
padding-block-end: calc(env(safe-area-inset-bottom, 0px) + 48px);
|
|
149
|
+
margin-block-end: calc(-1 * var(--_sheet-reserve, 48px));
|
|
150
|
+
padding-block-end: calc(env(safe-area-inset-bottom, 0px) + var(--_sheet-reserve, 48px));
|
|
149
151
|
border-block-start: var(--astryx-border-width, 1px) solid var(--_sheet-border);
|
|
150
152
|
border-inline-start: var(--astryx-border-width, 1px) solid var(--_sheet-border);
|
|
151
153
|
border-inline-end: var(--astryx-border-width, 1px) solid var(--_sheet-border);
|
|
@@ -165,6 +167,15 @@
|
|
|
165
167
|
transition-duration: var(--astryx-duration-medium-max, 400ms);
|
|
166
168
|
transition-timing-function: var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
|
|
167
169
|
will-change: transform, opacity;
|
|
170
|
+
|
|
171
|
+
/*
|
|
172
|
+
* The dialog writes the scrim's values on itself for each move of a drag,
|
|
173
|
+
* and only its backdrop reads them. The panel ends their inheritance, so
|
|
174
|
+
* each write restyles nothing inside the sheet.
|
|
175
|
+
*/
|
|
176
|
+
--_sheet-scrim-opacity: initial;
|
|
177
|
+
--_sheet-scrim-duration: initial;
|
|
178
|
+
--_sheet-scrim-easing: initial;
|
|
168
179
|
}
|
|
169
180
|
|
|
170
181
|
/*
|
|
@@ -194,6 +205,15 @@
|
|
|
194
205
|
}
|
|
195
206
|
}
|
|
196
207
|
|
|
208
|
+
/*
|
|
209
|
+
* A finger's swipe close under reduced motion does not travel: the sheet
|
|
210
|
+
* holds where the finger left it and fades out there, within 200ms.
|
|
211
|
+
*/
|
|
212
|
+
.astryx-bottom-sheet[data-state='exiting'][data-exit='fade'] {
|
|
213
|
+
opacity: 0;
|
|
214
|
+
transition-duration: 0.01s, 200ms;
|
|
215
|
+
}
|
|
216
|
+
|
|
197
217
|
.astryx-bottom-sheet[data-dragging],
|
|
198
218
|
.astryx-bottom-sheet[data-reconciling] {
|
|
199
219
|
transition: none;
|
|
@@ -201,13 +221,13 @@
|
|
|
201
221
|
|
|
202
222
|
.astryx-bottom-sheet[data-height='hug'] {
|
|
203
223
|
height: fit-content;
|
|
204
|
-
max-height: calc(92dvh + 48px);
|
|
224
|
+
max-height: calc(92dvh + var(--_sheet-reserve, 48px));
|
|
205
225
|
}
|
|
206
226
|
|
|
207
227
|
.astryx-bottom-sheet[data-height='capped'],
|
|
208
228
|
.astryx-bottom-sheet[data-height='tall'],
|
|
209
229
|
.astryx-bottom-sheet[data-height='custom'] {
|
|
210
|
-
height: calc(var(--_sheet-budget, 62dvh) + 48px);
|
|
230
|
+
height: calc(var(--_sheet-budget, 62dvh) + var(--_sheet-reserve, 48px));
|
|
211
231
|
}
|
|
212
232
|
|
|
213
233
|
/*
|
|
@@ -390,7 +410,7 @@
|
|
|
390
410
|
}
|
|
391
411
|
|
|
392
412
|
.astryx-bottom-sheet-dialog--scrim::backdrop {
|
|
393
|
-
transition-duration: 0.01s;
|
|
413
|
+
transition-duration: var(--_sheet-scrim-duration, 0.01s);
|
|
394
414
|
}
|
|
395
415
|
}
|
|
396
416
|
}
|
|
@@ -43,9 +43,9 @@ declare const __VLS_base: import("vue").DefineComponent<TokenProps, {}, {}, {},
|
|
|
43
43
|
onRemove?: ((event: Event) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
45
|
size: TokenSize;
|
|
46
|
-
color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
|
|
47
46
|
labelHidden: boolean;
|
|
48
47
|
disabled: boolean;
|
|
48
|
+
color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
|
|
49
49
|
removable: boolean;
|
|
50
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
51
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|