@manafishrov/ui 1.2.10 → 1.2.12
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/Theme.js +3 -3
- package/dist/_virtual/calendar-month.js +3 -3
- package/dist/_virtual/check-circle.js +3 -3
- package/dist/_virtual/check.js +3 -3
- package/dist/_virtual/chevron-left.js +3 -3
- package/dist/_virtual/chevron-right.js +3 -3
- package/dist/_virtual/close.js +3 -3
- package/dist/_virtual/error.js +3 -3
- package/dist/_virtual/expand-less.js +3 -3
- package/dist/_virtual/expand-more.js +3 -3
- package/dist/_virtual/info.js +3 -3
- package/dist/_virtual/more-horiz.js +3 -3
- package/dist/_virtual/progress-activity.js +3 -3
- package/dist/_virtual/search.js +3 -3
- package/dist/_virtual/side-navigation.js +3 -3
- package/dist/_virtual/visibility-off.js +3 -3
- package/dist/_virtual/visibility.js +3 -3
- package/dist/_virtual/warning.js +3 -3
- package/dist/components/Accordion.js +3 -3
- package/dist/components/AlertDialog.js +5 -5
- package/dist/components/AspectRatio.js +3 -3
- package/dist/components/Avatar.js +5 -5
- package/dist/components/Badge.js +3 -3
- package/dist/components/Breadcrumb.js +8 -8
- package/dist/components/Button.js +5 -5
- package/dist/components/Card.js +9 -9
- package/dist/components/Carousel.js +8 -8
- package/dist/components/Combobox.js +4 -4
- package/dist/components/Combobox.js.map +1 -1
- package/dist/components/DatePicker.js +5 -5
- package/dist/components/DatePicker.js.map +1 -1
- package/dist/components/Dialog.js +4 -4
- package/dist/components/Empty.js +8 -8
- package/dist/components/Field.js +8 -8
- package/dist/components/Field.js.map +1 -1
- package/dist/components/InputGroup.js +7 -7
- package/dist/components/Item.js +11 -11
- package/dist/components/Kbd.js +4 -4
- package/dist/components/Menu.js +3 -3
- package/dist/components/MenuCombobox.js +1 -1
- package/dist/components/MenuComboboxList.js +1 -1
- package/dist/components/NumberInput.js +5 -5
- package/dist/components/NumberInput.js.map +1 -1
- package/dist/components/Pagination.js +5 -5
- package/dist/components/PasswordInput.js +1 -1
- package/dist/components/PasswordInput.js.map +1 -1
- package/dist/components/PinInput.js +5 -5
- package/dist/components/PinInput.js.map +1 -1
- package/dist/components/Popover.js +3 -3
- package/dist/components/Progress.js +2 -2
- package/dist/components/Progress.js.map +1 -1
- package/dist/components/RadioGroup.js +2 -2
- package/dist/components/RadioGroup.js.map +1 -1
- package/dist/components/Select.js +2 -2
- package/dist/components/Select.js.map +1 -1
- package/dist/components/Separator.js +3 -3
- package/dist/components/Sheet.js +1 -1
- package/dist/components/Skeleton.js +3 -3
- package/dist/components/Slider.js +29 -29
- package/dist/components/Slider.js.map +1 -1
- package/dist/components/Spinner.js +4 -4
- package/dist/components/Table.js +10 -10
- package/dist/components/TagsInput.js +1 -1
- package/dist/components/TagsInput.js.map +1 -1
- package/dist/components/TextInput.js +4 -4
- package/dist/components/TextInput.js.map +1 -1
- package/dist/components/Typography.js +1 -1
- package/dist/components/form/ComboboxField.js +1 -1
- package/dist/components/form/SliderField.js +16 -18
- package/dist/components/form/SliderField.js.map +1 -1
- package/dist/components/sidebar/SidebarDesktop.js +10 -10
- package/dist/components/sidebar/SidebarDesktop.js.map +1 -1
- package/dist/components/sidebar/SidebarMenu.js +11 -11
- package/dist/components/sidebar/SidebarMobile.js +1 -1
- package/dist/components/sidebar/SidebarProvider.js +4 -4
- package/dist/components/sidebar/SidebarSubComponents.js +11 -11
- package/dist/components/toaster/Toaster.js +4 -4
- package/dist/index.js +16 -16
- package/dist/node_modules/.bun/@ark-ui_solid@5.34.1_2e1854f049906f04/node_modules/@ark-ui/solid/dist/chunk/ZMQW6EBL.js +4 -4
- package/dist/node_modules/.bun/{@floating-ui_core@1.7.4 → @floating-ui_core@1.7.5}/node_modules/@floating-ui/core/dist/floating-ui.core.js +171 -171
- package/dist/node_modules/.bun/@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
- package/dist/node_modules/.bun/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +404 -0
- package/dist/node_modules/.bun/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
- package/dist/node_modules/.bun/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +137 -0
- package/dist/node_modules/.bun/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
- package/dist/node_modules/.bun/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +129 -0
- package/dist/node_modules/.bun/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
- package/dist/node_modules/.bun/@internationalized_date@3.11.0/node_modules/@internationalized/date/dist/CalendarDate.js +1 -1
- package/dist/node_modules/.bun/{@swc_helpers@0.5.18 → @swc_helpers@0.5.19}/node_modules/@swc/helpers/esm/_check_private_redeclaration.js.map +1 -1
- package/dist/node_modules/.bun/{@swc_helpers@0.5.18 → @swc_helpers@0.5.19}/node_modules/@swc/helpers/esm/_class_private_field_init.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_angle-slider@1.35.3/node_modules/@zag-js/angle-slider/dist/angle-slider.connect.js +1 -1
- package/dist/node_modules/.bun/@zag-js_checkbox@1.35.3/node_modules/@zag-js/checkbox/dist/checkbox.connect.js +3 -3
- package/dist/node_modules/.bun/@zag-js_combobox@1.35.3/node_modules/@zag-js/combobox/dist/combobox.connect.js +3 -3
- package/dist/node_modules/.bun/@zag-js_combobox@1.35.3/node_modules/@zag-js/combobox/dist/combobox.machine.js +7 -7
- package/dist/node_modules/.bun/@zag-js_date-picker@1.35.3_ee33ebb1f804619f/node_modules/@zag-js/date-picker/dist/date-picker.connect.js +10 -10
- package/dist/node_modules/.bun/@zag-js_date-picker@1.35.3_ee33ebb1f804619f/node_modules/@zag-js/date-picker/dist/date-picker.machine.js +20 -20
- package/dist/node_modules/.bun/@zag-js_dismissable@1.35.3/node_modules/@zag-js/dismissable/dist/dismissable-layer.js +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/press.js +3 -3
- package/dist/node_modules/.bun/@zag-js_hover-card@1.35.3/node_modules/@zag-js/hover-card/dist/hover-card.machine.js +1 -1
- package/dist/node_modules/.bun/@zag-js_menu@1.35.3/node_modules/@zag-js/menu/dist/menu.dom.js +4 -4
- package/dist/node_modules/.bun/@zag-js_menu@1.35.3/node_modules/@zag-js/menu/dist/menu.machine.js +5 -5
- package/dist/node_modules/.bun/@zag-js_navigation-menu@1.35.3/node_modules/@zag-js/navigation-menu/dist/navigation-menu.connect.js +1 -1
- package/dist/node_modules/.bun/@zag-js_navigation-menu@1.35.3/node_modules/@zag-js/navigation-menu/dist/navigation-menu.machine.js +12 -12
- package/dist/node_modules/.bun/@zag-js_number-input@1.35.3/node_modules/@zag-js/number-input/dist/number-input.connect.js +1 -1
- package/dist/node_modules/.bun/@zag-js_number-input@1.35.3/node_modules/@zag-js/number-input/dist/number-input.machine.js +23 -23
- package/dist/node_modules/.bun/@zag-js_pin-input@1.35.3/node_modules/@zag-js/pin-input/dist/pin-input.machine.js +4 -4
- package/dist/node_modules/.bun/@zag-js_popper@1.35.3/node_modules/@zag-js/popper/dist/get-placement.js +5 -5
- package/dist/node_modules/.bun/@zag-js_radio-group@1.35.3/node_modules/@zag-js/radio-group/dist/radio-group.connect.js +3 -3
- package/dist/node_modules/.bun/@zag-js_remove-scroll@1.35.3/node_modules/@zag-js/remove-scroll/dist/index.js +4 -4
- package/dist/node_modules/.bun/@zag-js_select@1.35.3/node_modules/@zag-js/select/dist/select.connect.js +1 -1
- package/dist/node_modules/.bun/@zag-js_select@1.35.3/node_modules/@zag-js/select/dist/select.machine.js +2 -2
- package/dist/node_modules/.bun/@zag-js_slider@1.35.3/node_modules/@zag-js/slider/dist/slider.dom.js +4 -4
- package/dist/node_modules/.bun/@zag-js_slider@1.35.3/node_modules/@zag-js/slider/dist/slider.machine.js +18 -18
- package/dist/node_modules/.bun/@zag-js_solid@1.35.3_2e1854f049906f04/node_modules/@zag-js/solid/dist/machine.js +1 -1
- package/dist/node_modules/.bun/@zag-js_switch@1.35.3/node_modules/@zag-js/switch/dist/switch.connect.js +1 -1
- package/dist/node_modules/.bun/@zag-js_tabs@1.35.3/node_modules/@zag-js/tabs/dist/tabs.dom.js +4 -4
- package/dist/node_modules/.bun/@zag-js_tabs@1.35.3/node_modules/@zag-js/tabs/dist/tabs.machine.js +11 -11
- package/dist/node_modules/.bun/@zag-js_tags-input@1.35.3/node_modules/@zag-js/tags-input/dist/tags-input.connect.js +4 -4
- package/dist/node_modules/.bun/@zag-js_tags-input@1.35.3/node_modules/@zag-js/tags-input/dist/tags-input.dom.js +1 -1
- package/dist/node_modules/.bun/@zag-js_tags-input@1.35.3/node_modules/@zag-js/tags-input/dist/tags-input.machine.js +4 -4
- package/dist/node_modules/.bun/@zag-js_toast@1.35.3/node_modules/@zag-js/toast/dist/toast-group.machine.js +4 -4
- package/dist/node_modules/.bun/@zag-js_tree-view@1.35.3/node_modules/@zag-js/tree-view/dist/tree-view.machine.js +7 -7
- package/package.json +1 -1
- package/src/components/Combobox.tsx +1 -1
- package/src/components/DatePicker.tsx +1 -1
- package/src/components/Field.tsx +6 -6
- package/src/components/NumberInput.tsx +1 -1
- package/src/components/PasswordInput.tsx +1 -1
- package/src/components/PinInput.tsx +1 -1
- package/src/components/Progress.tsx +2 -2
- package/src/components/RadioGroup.tsx +4 -4
- package/src/components/Select.tsx +1 -1
- package/src/components/Slider.tsx +8 -8
- package/src/components/TagsInput.tsx +1 -1
- package/src/components/TextInput.tsx +1 -1
- package/src/components/form/SliderField.tsx +3 -1
- package/src/components/sidebar/SidebarDesktop.tsx +0 -1
- package/dist/node_modules/.bun/@floating-ui_core@1.7.4/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
- package/dist/node_modules/.bun/@floating-ui_dom@1.7.5/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -403
- package/dist/node_modules/.bun/@floating-ui_dom@1.7.5/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
- package/dist/node_modules/.bun/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -137
- package/dist/node_modules/.bun/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
- package/dist/node_modules/.bun/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -131
- package/dist/node_modules/.bun/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
- /package/dist/node_modules/.bun/{@swc_helpers@0.5.18 → @swc_helpers@0.5.19}/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +0 -0
- /package/dist/node_modules/.bun/{@swc_helpers@0.5.18 → @swc_helpers@0.5.19}/node_modules/@swc/helpers/esm/_class_private_field_init.js +0 -0
|
@@ -3,13 +3,13 @@ import { DateFormatter as Z } from "../../../../../@internationalized_date@3.11.
|
|
|
3
3
|
import { createLiveRegion as H } from "../../../../../@zag-js_live-region@1.35.3/node_modules/@zag-js/live-region/dist/index.js";
|
|
4
4
|
import { getPlacement as U } from "../../../../../@zag-js_popper@1.35.3/node_modules/@zag-js/popper/dist/get-placement.js";
|
|
5
5
|
import { getInputEls as V, getYearSelectEl as W, getMonthSelectEl as G, getTriggerEl as D, getFocusedCell as F, getContentEl as A, getClearTriggerEl as _, getControlEl as $, getPositionerEl as j } from "./date-picker.dom.js";
|
|
6
|
-
import {
|
|
7
|
-
import { getEndDate as te } from "../../../../../@zag-js_date-utils@1.35.3_ee33ebb1f804619f/node_modules/@zag-js/date-utils/dist/duration.js";
|
|
6
|
+
import { isValidDate as M, adjustStartAndEndDate as N, sortDates as x, getPreviousView as K, getNextView as q, isAboveMinView as z, getVisibleRangeText as X, clampView as J, eachView as Q, isBelowMinView as ee } from "./date-picker.utils.js";
|
|
8
7
|
import { alignDate as k } from "../../../../../@zag-js_date-utils@1.35.3_ee33ebb1f804619f/node_modules/@zag-js/date-utils/dist/align.js";
|
|
9
|
-
import { getPreviousSection as
|
|
10
|
-
import { restoreTextSelection as
|
|
8
|
+
import { getPreviousSection as te, getNextSection as ne, getPreviousPage as se, getNextPage as oe, getAdjustedDateFn as ae } from "../../../../../@zag-js_date-utils@1.35.3_ee33ebb1f804619f/node_modules/@zag-js/date-utils/dist/pagination.js";
|
|
9
|
+
import { restoreTextSelection as ie, disableTextSelection as ce } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/text-selection.js";
|
|
11
10
|
import { formatSelectedDate as O } from "../../../../../@zag-js_date-utils@1.35.3_ee33ebb1f804619f/node_modules/@zag-js/date-utils/dist/format.js";
|
|
12
|
-
import { isDateOutsideRange as
|
|
11
|
+
import { isDateOutsideRange as ue, isDateEqual as d, isNextRangeInvalid as le, isPreviousRangeInvalid as re } from "../../../../../@zag-js_date-utils@1.35.3_ee33ebb1f804619f/node_modules/@zag-js/date-utils/dist/assertion.js";
|
|
12
|
+
import { getEndDate as de } from "../../../../../@zag-js_date-utils@1.35.3_ee33ebb1f804619f/node_modules/@zag-js/date-utils/dist/duration.js";
|
|
13
13
|
import { parseDateString as ge } from "../../../../../@zag-js_date-utils@1.35.3_ee33ebb1f804619f/node_modules/@zag-js/date-utils/dist/parse-date.js";
|
|
14
14
|
import { createMachine as fe, createGuards as ve } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/create-machine.js";
|
|
15
15
|
import { constrainValue as m } from "../../../../../@zag-js_date-utils@1.35.3_ee33ebb1f804619f/node_modules/@zag-js/date-utils/dist/constrain.js";
|
|
@@ -142,9 +142,9 @@ var pe = fe({
|
|
|
142
142
|
computed: {
|
|
143
143
|
isInteractive: ({ prop: e }) => !e("disabled") && !e("readOnly"),
|
|
144
144
|
visibleDuration: ({ prop: e }) => ({ months: e("numOfMonths") }),
|
|
145
|
-
endValue: ({ context: e, computed: t }) =>
|
|
145
|
+
endValue: ({ context: e, computed: t }) => de(e.get("startValue"), t("visibleDuration")),
|
|
146
146
|
visibleRange: ({ context: e, computed: t }) => ({ start: e.get("startValue"), end: t("endValue") }),
|
|
147
|
-
visibleRangeText: ({ context: e, prop: t, computed: n }) =>
|
|
147
|
+
visibleRangeText: ({ context: e, prop: t, computed: n }) => X({
|
|
148
148
|
view: e.get("view"),
|
|
149
149
|
startValue: e.get("startValue"),
|
|
150
150
|
endValue: n("endValue"),
|
|
@@ -152,8 +152,8 @@ var pe = fe({
|
|
|
152
152
|
timeZone: t("timeZone"),
|
|
153
153
|
selectionMode: t("selectionMode")
|
|
154
154
|
}),
|
|
155
|
-
isPrevVisibleRangeValid: ({ context: e, prop: t }) => !
|
|
156
|
-
isNextVisibleRangeValid: ({ prop: e, computed: t }) => !
|
|
155
|
+
isPrevVisibleRangeValid: ({ context: e, prop: t }) => !re(e.get("startValue"), t("min"), t("max")),
|
|
156
|
+
isNextVisibleRangeValid: ({ prop: e, computed: t }) => !le(t("endValue"), e("min"), e("max")),
|
|
157
157
|
valueAsString: ({ context: e, prop: t }) => C(e.get("value"), t)
|
|
158
158
|
},
|
|
159
159
|
effects: ["setupLiveRegion"],
|
|
@@ -601,7 +601,7 @@ var pe = fe({
|
|
|
601
601
|
},
|
|
602
602
|
implementations: {
|
|
603
603
|
guards: {
|
|
604
|
-
isAboveMinView: ({ context: e, prop: t }) =>
|
|
604
|
+
isAboveMinView: ({ context: e, prop: t }) => z(e.get("view"), t("minView")),
|
|
605
605
|
isDayView: ({ context: e, event: t }) => (t.view || e.get("view")) === "day",
|
|
606
606
|
isMonthView: ({ context: e, event: t }) => (t.view || e.get("view")) === "month",
|
|
607
607
|
isYearView: ({ context: e, event: t }) => (t.view || e.get("view")) === "year",
|
|
@@ -658,11 +658,11 @@ var pe = fe({
|
|
|
658
658
|
},
|
|
659
659
|
actions: {
|
|
660
660
|
setNextView({ context: e, prop: t }) {
|
|
661
|
-
const n =
|
|
661
|
+
const n = q(e.get("view"), t("minView"), t("maxView"));
|
|
662
662
|
e.set("view", n);
|
|
663
663
|
},
|
|
664
664
|
setPreviousView({ context: e, prop: t }) {
|
|
665
|
-
const n =
|
|
665
|
+
const n = K(e.get("view"), t("minView"), t("maxView"));
|
|
666
666
|
e.set("view", n);
|
|
667
667
|
},
|
|
668
668
|
setView({ context: e, event: t }) {
|
|
@@ -686,10 +686,10 @@ var pe = fe({
|
|
|
686
686
|
t.get("announcer")?.announce(n);
|
|
687
687
|
},
|
|
688
688
|
disableTextSelection({ scope: e }) {
|
|
689
|
-
|
|
689
|
+
ce({ target: A(e), doc: e.getDoc() });
|
|
690
690
|
},
|
|
691
691
|
enableTextSelection({ scope: e }) {
|
|
692
|
-
|
|
692
|
+
ie({ doc: e.getDoc(), target: A(e) });
|
|
693
693
|
},
|
|
694
694
|
focusFirstSelectedDate(e) {
|
|
695
695
|
const { context: t } = e;
|
|
@@ -773,7 +773,7 @@ var pe = fe({
|
|
|
773
773
|
c(e, n);
|
|
774
774
|
},
|
|
775
775
|
focusNextPage(e) {
|
|
776
|
-
const { context: t, computed: n, prop: s } = e, o =
|
|
776
|
+
const { context: t, computed: n, prop: s } = e, o = oe(
|
|
777
777
|
t.get("focusedValue"),
|
|
778
778
|
t.get("startValue"),
|
|
779
779
|
n("visibleDuration"),
|
|
@@ -784,7 +784,7 @@ var pe = fe({
|
|
|
784
784
|
T(e, o);
|
|
785
785
|
},
|
|
786
786
|
focusPreviousPage(e) {
|
|
787
|
-
const { context: t, computed: n, prop: s } = e, o =
|
|
787
|
+
const { context: t, computed: n, prop: s } = e, o = se(
|
|
788
788
|
t.get("focusedValue"),
|
|
789
789
|
t.get("startValue"),
|
|
790
790
|
n("visibleDuration"),
|
|
@@ -803,7 +803,7 @@ var pe = fe({
|
|
|
803
803
|
c(e, t("endValue").copy());
|
|
804
804
|
},
|
|
805
805
|
focusNextSection(e) {
|
|
806
|
-
const { context: t, event: n, computed: s, prop: o } = e, a =
|
|
806
|
+
const { context: t, event: n, computed: s, prop: o } = e, a = ne(
|
|
807
807
|
t.get("focusedValue"),
|
|
808
808
|
t.get("startValue"),
|
|
809
809
|
n.larger,
|
|
@@ -815,7 +815,7 @@ var pe = fe({
|
|
|
815
815
|
a && T(e, a);
|
|
816
816
|
},
|
|
817
817
|
focusPreviousSection(e) {
|
|
818
|
-
const { context: t, event: n, computed: s, prop: o } = e, a =
|
|
818
|
+
const { context: t, event: n, computed: s, prop: o } = e, a = te(
|
|
819
819
|
t.get("focusedValue"),
|
|
820
820
|
t.get("startValue"),
|
|
821
821
|
n.larger,
|
|
@@ -962,7 +962,7 @@ var pe = fe({
|
|
|
962
962
|
},
|
|
963
963
|
setStartValue({ context: e, computed: t, prop: n }) {
|
|
964
964
|
const s = e.get("focusedValue");
|
|
965
|
-
if (!
|
|
965
|
+
if (!ue(s, e.get("startValue"), t("endValue"))) return;
|
|
966
966
|
const a = k(s, "start", { months: n("numOfMonths") }, n("locale"));
|
|
967
967
|
e.set("startValue", a);
|
|
968
968
|
},
|
|
@@ -1006,7 +1006,7 @@ function c(e, t) {
|
|
|
1006
1006
|
if (!t) return;
|
|
1007
1007
|
const a = I(e, t);
|
|
1008
1008
|
if (d(n.get("focusedValue"), a)) return;
|
|
1009
|
-
const u =
|
|
1009
|
+
const u = ae(o("visibleDuration"), s("locale"), s("min"), s("max"))({
|
|
1010
1010
|
focusedDate: a,
|
|
1011
1011
|
startDate: n.get("startValue")
|
|
1012
1012
|
});
|
|
@@ -5,8 +5,8 @@ import { assignPointerEventToLayers as p, disablePointerEventsOutside as x, clea
|
|
|
5
5
|
import { raf as g } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/raf.js";
|
|
6
6
|
import { isFunction as h } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/guard.js";
|
|
7
7
|
import { warn as y } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/warning.js";
|
|
8
|
-
import { isHTMLElement as T, contains as K } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/node.js";
|
|
9
8
|
import { getEventTarget as E } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/event.js";
|
|
9
|
+
import { isHTMLElement as T, contains as K } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/node.js";
|
|
10
10
|
function M(e, n) {
|
|
11
11
|
const { warnOnMissingNode: c = !0 } = n;
|
|
12
12
|
if (c && !e) {
|
package/dist/node_modules/.bun/@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/press.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { addDomEvent as t,
|
|
1
|
+
import { addDomEvent as t, getEventTarget as S, getEventPoint as T } from "./event.js";
|
|
2
2
|
import { getWindow as x, isActiveElement as C, contains as F } from "./node.js";
|
|
3
3
|
import { noop as a, pipe as v } from "./shared.js";
|
|
4
4
|
function j(b) {
|
|
@@ -14,7 +14,7 @@ function j(b) {
|
|
|
14
14
|
const s = x(o);
|
|
15
15
|
let w = a, i = a, y = a;
|
|
16
16
|
const c = (e) => ({
|
|
17
|
-
point:
|
|
17
|
+
point: T(e),
|
|
18
18
|
event: e
|
|
19
19
|
});
|
|
20
20
|
function L(e) {
|
|
@@ -26,7 +26,7 @@ function j(b) {
|
|
|
26
26
|
const K = t(o, "pointerdown", (e) => {
|
|
27
27
|
i();
|
|
28
28
|
const u = t(s, "pointerup", (n) => {
|
|
29
|
-
const m =
|
|
29
|
+
const m = S(n);
|
|
30
30
|
F(o, m) ? P?.(c(n)) : p?.(c(n));
|
|
31
31
|
}, { passive: !P, once: !0 }), l = t(s, "pointercancel", g, {
|
|
32
32
|
passive: !p,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getPlacement as r } from "../../../../../@zag-js_popper@1.35.3/node_modules/@zag-js/popper/dist/get-placement.js";
|
|
2
|
-
import {
|
|
2
|
+
import { getTriggerEl as a, getPositionerEl as l, getContentEl as g } from "./hover-card.dom.js";
|
|
3
3
|
import { createMachine as E, createGuards as d } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/create-machine.js";
|
|
4
4
|
import { trackDismissableElement as p } from "../../../../../@zag-js_dismissable@1.35.3/node_modules/@zag-js/dismissable/dist/dismissable-layer.js";
|
|
5
5
|
var { not: s, and: c } = d(), L = E({
|
package/dist/node_modules/.bun/@zag-js_menu@1.35.3/node_modules/@zag-js/menu/dist/menu.dom.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { prev as g, next as s, last as l, first as u } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/array.js";
|
|
2
2
|
import { getByTypeahead as m } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/typeahead.js";
|
|
3
3
|
import { getWindow as v, isHTMLElement as I } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/node.js";
|
|
4
4
|
import { queryAll as p } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/query.js";
|
|
5
5
|
var E = (e) => e.ids?.trigger ?? `menu:${e.id}:trigger`, c = (e) => e.ids?.contextTrigger ?? `menu:${e.id}:ctx-trigger`, d = (e) => e.ids?.content ?? `menu:${e.id}:content`, C = (e) => e.ids?.arrow ?? `menu:${e.id}:arrow`, y = (e) => e.ids?.positioner ?? `menu:${e.id}:popper`, A = (e, t) => e.ids?.group?.(t) ?? `menu:${e.id}:group:${t}`, f = (e, t) => `${e.id}/${t}`, S = (e) => e?.dataset.value ?? null, L = (e, t) => e.ids?.groupLabel?.(t) ?? `menu:${e.id}:group-label:${t}`, $ = (e) => e.getById(d(e)), F = (e) => e.getById(y(e)), P = (e) => e.getById(E(e)), k = (e, t) => t ? e.getById(f(e, t)) : null, G = (e) => e.getById(c(e)), a = (e) => {
|
|
6
6
|
const r = `[role^="menuitem"][data-ownedby=${CSS.escape(d(e))}]:not([data-disabled])`;
|
|
7
7
|
return p($(e), r);
|
|
8
|
-
}, M = (e) =>
|
|
8
|
+
}, M = (e) => u(a(e)), W = (e) => l(a(e)), o = (e, t) => t ? e.id === t || e.dataset.value === t : !1, q = (e, t) => {
|
|
9
9
|
const r = a(e), n = r.findIndex((i) => o(i, t.value));
|
|
10
|
-
return
|
|
10
|
+
return s(r, n, { loop: t.loop ?? t.loopFocus });
|
|
11
11
|
}, D = (e, t) => {
|
|
12
12
|
const r = a(e), n = r.findIndex((i) => o(i, t.value));
|
|
13
|
-
return
|
|
13
|
+
return g(r, n, { loop: t.loop ?? t.loopFocus });
|
|
14
14
|
}, H = (e, t) => {
|
|
15
15
|
const r = a(e), n = r.find((i) => o(i, t.value));
|
|
16
16
|
return m(r, { state: t.typeaheadState, key: t.key, activeId: n?.id ?? null });
|
package/dist/node_modules/.bun/@zag-js_menu@1.35.3/node_modules/@zag-js/menu/dist/menu.machine.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { setInteractionModality as S, trackFocusVisible as N, getInteractionModality as k } from "../../../../../@zag-js_focus-visible@1.35.3/node_modules/@zag-js/focus-visible/dist/index.js";
|
|
2
2
|
import { getPlacement as I } from "../../../../../@zag-js_popper@1.35.3/node_modules/@zag-js/popper/dist/get-placement.js";
|
|
3
3
|
import { getPlacementSide as L } from "../../../../../@zag-js_popper@1.35.3/node_modules/@zag-js/popper/dist/placement.js";
|
|
4
|
-
import {
|
|
4
|
+
import { getItemValue as u, isTriggerItem as f, getContentEl as c, getElemByKey as y, getTriggerEl as h, getItemEl as M, dispatchSelectionEvent as A, getPrevEl as H, getNextEl as _, getLastEl as D, getFirstEl as V, getContextTriggerEl as E, getPositionerEl as P, getItemId as T, getTriggerId as F } from "./menu.dom.js";
|
|
5
5
|
import { isPointInPolygon as R, getElementPolygon as b } from "../../../../../@zag-js_rect-utils@1.35.3/node_modules/@zag-js/rect-utils/dist/polygon.js";
|
|
6
6
|
import { createMachine as G, createGuards as U } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/create-machine.js";
|
|
7
|
-
import { isEditableElement as w, contains as m, isAnchorElement as W } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/node.js";
|
|
8
7
|
import { raf as O } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/raf.js";
|
|
9
|
-
import { getInitialFocus as
|
|
8
|
+
import { getInitialFocus as w } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/initial-focus.js";
|
|
9
|
+
import { contains as m, isAnchorElement as W, isEditableElement as x } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/node.js";
|
|
10
10
|
import { isEqual as B } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/equal.js";
|
|
11
11
|
import { observeAttributes as Y } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/mutation-observer.js";
|
|
12
12
|
import { addDomEvent as q, getEventTarget as C } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/event.js";
|
|
@@ -489,7 +489,7 @@ var { not: g, and: d, or: z } = U(), pe = G({
|
|
|
489
489
|
isTriggerItemHighlighted: ({ event: e, scope: t, computed: n }) => !!(e.target ?? t.getById(n("highlightedId")))?.hasAttribute("data-controls"),
|
|
490
490
|
isSubmenu: ({ context: e }) => e.get("isSubmenu"),
|
|
491
491
|
isPointerSuspended: ({ context: e }) => e.get("suspendPointer"),
|
|
492
|
-
isHighlightedItemEditable: ({ scope: e, computed: t }) =>
|
|
492
|
+
isHighlightedItemEditable: ({ scope: e, computed: t }) => x(e.getById(t("highlightedId"))),
|
|
493
493
|
// guard assertions (for controlled mode)
|
|
494
494
|
isOpenControlled: ({ prop: e }) => e("open") !== void 0,
|
|
495
495
|
isArrowLeftEvent: ({ event: e }) => e.previousEvent?.type === "ARROW_LEFT",
|
|
@@ -663,7 +663,7 @@ var { not: g, and: d, or: z } = U(), pe = G({
|
|
|
663
663
|
focusMenu({ scope: e }) {
|
|
664
664
|
O(() => {
|
|
665
665
|
const t = c(e);
|
|
666
|
-
|
|
666
|
+
w({
|
|
667
667
|
root: t,
|
|
668
668
|
enabled: !m(t, e.getActiveElement()),
|
|
669
669
|
filter(i) {
|
|
@@ -5,7 +5,7 @@ import { dataAttr as h } from "../../../../../@zag-js_dom-query@1.35.3/node_modu
|
|
|
5
5
|
import { getTabbables as G } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/tabbable.js";
|
|
6
6
|
import { visuallyHiddenStyle as M } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/visually-hidden.js";
|
|
7
7
|
import { parts as u } from "./navigation-menu.anatomy.js";
|
|
8
|
-
import { getViewportId as B, getRootEl as H, focusFirst as U, getTriggerProxyEl as W,
|
|
8
|
+
import { getViewportId as B, getRootEl as H, focusFirst as U, getTriggerProxyEl as W, getLinkEls as j, getElements as C, getContentId as b, getContentEl as q, getTriggerEl as J, getTriggerProxyId as S, getListId as Q, getRootId as X, getViewportEl as Y, getTriggerId as Z, getItemId as _ } from "./navigation-menu.dom.js";
|
|
9
9
|
import { toPx as l } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/number.js";
|
|
10
10
|
function se(O, d) {
|
|
11
11
|
const { context: v, send: s, prop: r, scope: o } = O, f = v.get("triggerRect"), m = v.get("viewportSize"), T = v.get("viewportPosition"), E = v.get("value"), N = v.get("previousValue"), w = !!E, P = v.get("isViewportRendered"), R = E && !N;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { getRootEl as V, getViewportEl as v, getTabbableEls as I, removeFromTabOrder as D, getContentEl as p, getTriggerEl as h, getLinkEls as P, focusFirst as z, setMotionAttr as k, getListEl as L, trackResizeObserver as R, getTriggerEls as A } from "./navigation-menu.dom.js";
|
|
2
2
|
import { setOpenTimeout as S, clearOpenTimeout as W, setCloseTimeout as F, clearAllOpenTimeouts as M, clearCloseTimeout as G } from "./navigation-menu.utils.js";
|
|
3
|
-
import { setup as H } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/create-machine.js";
|
|
4
3
|
import { contains as N } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/node.js";
|
|
5
|
-
import { navigate as
|
|
6
|
-
import { raf as
|
|
7
|
-
import { callAll as
|
|
4
|
+
import { navigate as H } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/navigate.js";
|
|
5
|
+
import { raf as B } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/raf.js";
|
|
6
|
+
import { callAll as U } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/functions.js";
|
|
8
7
|
import { addDomEvent as w } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/event.js";
|
|
9
|
-
import { trackDismissableElement as
|
|
10
|
-
import { ensureProps as
|
|
11
|
-
|
|
8
|
+
import { trackDismissableElement as K } from "../../../../../@zag-js_dismissable@1.35.3/node_modules/@zag-js/dismissable/dist/dismissable-layer.js";
|
|
9
|
+
import { ensureProps as j } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/warning.js";
|
|
10
|
+
import { setup as q } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/create-machine.js";
|
|
11
|
+
var { createMachine: J } = q(), se = J({
|
|
12
12
|
props({ props: e }) {
|
|
13
|
-
return
|
|
13
|
+
return j(e, ["id"]), {
|
|
14
14
|
dir: "ltr",
|
|
15
15
|
openDelay: 200,
|
|
16
16
|
closeDelay: 300,
|
|
@@ -186,7 +186,7 @@ var { createMachine: J } = H(), se = J({
|
|
|
186
186
|
const r = () => e.set("previousValue", "");
|
|
187
187
|
o.set(
|
|
188
188
|
"contentExitCompleteCleanup",
|
|
189
|
-
|
|
189
|
+
U(
|
|
190
190
|
w(l, "exitcomplete", r),
|
|
191
191
|
w(a, "exitcomplete", r)
|
|
192
192
|
)
|
|
@@ -202,7 +202,7 @@ var { createMachine: J } = H(), se = J({
|
|
|
202
202
|
});
|
|
203
203
|
o.set("contentResizeObserverCleanup", l);
|
|
204
204
|
}
|
|
205
|
-
const f =
|
|
205
|
+
const f = K(() => v(t) || p(t, e.get("value")), {
|
|
206
206
|
defer: !0,
|
|
207
207
|
onFocusOutside(l) {
|
|
208
208
|
const a = l.detail.target;
|
|
@@ -236,7 +236,7 @@ var { createMachine: J } = H(), se = J({
|
|
|
236
236
|
e.get("isViewportRendered") && k(t, e.get("value"), e.get("previousValue"));
|
|
237
237
|
},
|
|
238
238
|
focusFirstTabbableEl({ event: e, scope: t, context: o }) {
|
|
239
|
-
|
|
239
|
+
B(() => {
|
|
240
240
|
const s = e.value || o.get("value"), n = I(t, s), i = e.side === "start" ? n : n.reverse();
|
|
241
241
|
i.length && z(t, i);
|
|
242
242
|
});
|
|
@@ -244,7 +244,7 @@ var { createMachine: J } = H(), se = J({
|
|
|
244
244
|
focusNextLink({ event: e, scope: t }) {
|
|
245
245
|
const o = t.getActiveElement(), s = P(t, e.value);
|
|
246
246
|
if (o == null || !s.includes(o)) return;
|
|
247
|
-
|
|
247
|
+
H(s, o, { key: e.key, loop: !1 })?.focus();
|
|
248
248
|
},
|
|
249
249
|
focusTrigger({ scope: e, event: t, context: o }) {
|
|
250
250
|
const s = t.value ?? o.get("value");
|
|
@@ -5,7 +5,7 @@ import { raf as v } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@
|
|
|
5
5
|
import { dataAttr as t, ariaAttr as A } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/shared.js";
|
|
6
6
|
import { recordCursor as x } from "./cursor.js";
|
|
7
7
|
import { parts as c } from "./number-input.anatomy.js";
|
|
8
|
-
import {
|
|
8
|
+
import { getInputEl as R, getScrubberId as _, getInputId as T, getIncrementTriggerId as W, getDecrementTriggerId as k, getLabelId as q, getRootId as B } from "./number-input.dom.js";
|
|
9
9
|
import { roundToDpr as V } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/number.js";
|
|
10
10
|
function $(C, s) {
|
|
11
11
|
const { state: I, send: a, prop: r, scope: i, computed: n } = C, m = I.hasTag("focus"), o = n("isDisabled"), b = !!r("readOnly"), L = !!r("required"), u = I.matches("scrubbing"), h = n("isValueEmpty"), p = r("invalid") !== void 0 ? !!r("invalid") : n("isOutOfRange"), g = o || !n("canIncrement") || b, f = o || !n("canDecrement") || b, D = r("translations");
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { recordCursor as C, restoreCursor as N } from "./cursor.js";
|
|
2
2
|
import { getCursorEl as P, getInputEl as o, getPressedTriggerEl as b, preventTextSelection as I, setupVirtualCursor as A, getMousemoveValue as h } from "./number-input.dom.js";
|
|
3
3
|
import { formatValue as i, parseValue as m, createParser as T, createFormatter as p, getDefaultStep as S } from "./number-input.utils.js";
|
|
4
|
-
import {
|
|
4
|
+
import { clampValue as l, decrementValue as U, incrementValue as D, isValueWithinRange as H, isValueAtMax as x, isValueAtMin as M } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/number.js";
|
|
5
5
|
import { requestPointerLock as k } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/pointer-lock.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { setElementValue as w, trackFormControl as y } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/form.js";
|
|
10
|
-
import { callAll as F } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/functions.js";
|
|
6
|
+
import { raf as v } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/raf.js";
|
|
7
|
+
import { setElementValue as B, trackFormControl as w } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/form.js";
|
|
8
|
+
import { callAll as y } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/functions.js";
|
|
11
9
|
import { addDomEvent as f } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/event.js";
|
|
12
|
-
import { isSafari as
|
|
13
|
-
import { observeAttributes as
|
|
14
|
-
|
|
10
|
+
import { isSafari as F } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/platform.js";
|
|
11
|
+
import { observeAttributes as _ } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/mutation-observer.js";
|
|
12
|
+
import { memo as d } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/memo.js";
|
|
13
|
+
import { setup as G } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/create-machine.js";
|
|
14
|
+
var { choose: L, guards: W, createMachine: $ } = G(), { not: g, and: E } = W, re = $({
|
|
15
15
|
props({ props: e }) {
|
|
16
16
|
const t = S(e.step, e.formatOptions);
|
|
17
17
|
return {
|
|
@@ -62,19 +62,19 @@ var { choose: L, guards: W, createMachine: $ } = B(), { not: g, and: E } = W, re
|
|
|
62
62
|
isRtl: ({ prop: e }) => e("dir") === "rtl",
|
|
63
63
|
valueAsNumber: ({ context: e, computed: t, prop: n }) => m(e.get("value"), { computed: t, prop: n }),
|
|
64
64
|
formattedValue: ({ computed: e, prop: t }) => i(e("valueAsNumber"), { computed: e, prop: t }),
|
|
65
|
-
isAtMin: ({ computed: e, prop: t }) =>
|
|
66
|
-
isAtMax: ({ computed: e, prop: t }) =>
|
|
67
|
-
isOutOfRange: ({ computed: e, prop: t }) => !
|
|
65
|
+
isAtMin: ({ computed: e, prop: t }) => M(e("valueAsNumber"), t("min")),
|
|
66
|
+
isAtMax: ({ computed: e, prop: t }) => x(e("valueAsNumber"), t("max")),
|
|
67
|
+
isOutOfRange: ({ computed: e, prop: t }) => !H(e("valueAsNumber"), t("min"), t("max")),
|
|
68
68
|
isValueEmpty: ({ context: e }) => e.get("value") === "",
|
|
69
69
|
isDisabled: ({ prop: e, context: t }) => !!e("disabled") || t.get("fieldsetDisabled"),
|
|
70
70
|
canIncrement: ({ prop: e, computed: t }) => e("allowOverflow") || !t("isAtMax"),
|
|
71
71
|
canDecrement: ({ prop: e, computed: t }) => e("allowOverflow") || !t("isAtMin"),
|
|
72
72
|
valueText: ({ prop: e, context: t }) => e("translations").valueText?.(t.get("value")),
|
|
73
|
-
formatter:
|
|
73
|
+
formatter: d(
|
|
74
74
|
({ prop: e }) => [e("locale"), e("formatOptions")],
|
|
75
75
|
([e, t]) => p(e, t)
|
|
76
76
|
),
|
|
77
|
-
parser:
|
|
77
|
+
parser: d(
|
|
78
78
|
({ prop: e }) => [e("locale"), e("formatOptions")],
|
|
79
79
|
([e, t]) => T(e, t)
|
|
80
80
|
)
|
|
@@ -254,7 +254,7 @@ var { choose: L, guards: W, createMachine: $ } = B(), { not: g, and: E } = W, re
|
|
|
254
254
|
},
|
|
255
255
|
trackFormControl({ context: e, scope: t }) {
|
|
256
256
|
const n = o(t);
|
|
257
|
-
return
|
|
257
|
+
return w(n, {
|
|
258
258
|
onFieldsetDisabledChange(a) {
|
|
259
259
|
e.set("fieldsetDisabled", a);
|
|
260
260
|
},
|
|
@@ -272,7 +272,7 @@ var { choose: L, guards: W, createMachine: $ } = B(), { not: g, and: E } = W, re
|
|
|
272
272
|
},
|
|
273
273
|
trackButtonDisabled({ context: e, scope: t, send: n }) {
|
|
274
274
|
const a = e.get("hint"), r = b(t, a);
|
|
275
|
-
return
|
|
275
|
+
return _(r, {
|
|
276
276
|
attributes: ["disabled"],
|
|
277
277
|
callback() {
|
|
278
278
|
n({ type: "TRIGGER.PRESS_UP", src: "attr" });
|
|
@@ -290,7 +290,7 @@ var { choose: L, guards: W, createMachine: $ } = B(), { not: g, and: E } = W, re
|
|
|
290
290
|
return f(a, "wheel", r, { passive: !1 });
|
|
291
291
|
},
|
|
292
292
|
activatePointerLock({ scope: e }) {
|
|
293
|
-
if (!
|
|
293
|
+
if (!F())
|
|
294
294
|
return k(e.getDoc());
|
|
295
295
|
},
|
|
296
296
|
trackMousemove({ scope: e, send: t, context: n, computed: a }) {
|
|
@@ -306,21 +306,21 @@ var { choose: L, guards: W, createMachine: $ } = B(), { not: g, and: E } = W, re
|
|
|
306
306
|
function u() {
|
|
307
307
|
t({ type: "SCRUBBER.POINTER_UP" });
|
|
308
308
|
}
|
|
309
|
-
return
|
|
309
|
+
return y(f(r, "mousemove", s, !1), f(r, "mouseup", u, !1));
|
|
310
310
|
}
|
|
311
311
|
},
|
|
312
312
|
actions: {
|
|
313
313
|
focusInput({ scope: e, prop: t }) {
|
|
314
314
|
if (!t("focusInputOnChange")) return;
|
|
315
315
|
const n = o(e);
|
|
316
|
-
e.isActiveElement(n) ||
|
|
316
|
+
e.isActiveElement(n) || v(() => n?.focus({ preventScroll: !0 }));
|
|
317
317
|
},
|
|
318
318
|
increment({ context: e, event: t, prop: n, computed: a }) {
|
|
319
|
-
let r =
|
|
319
|
+
let r = D(a("valueAsNumber"), t.step ?? n("step"));
|
|
320
320
|
n("allowOverflow") || (r = l(r, n("min"), n("max"))), e.set("value", i(r, { computed: a, prop: n }));
|
|
321
321
|
},
|
|
322
322
|
decrement({ context: e, event: t, prop: n, computed: a }) {
|
|
323
|
-
let r =
|
|
323
|
+
let r = U(a("valueAsNumber"), t.step ?? n("step"));
|
|
324
324
|
n("allowOverflow") || (r = l(r, n("min"), n("max"))), e.set("value", i(r, { computed: a, prop: n }));
|
|
325
325
|
},
|
|
326
326
|
setClampedValue({ context: e, prop: t, computed: n }) {
|
|
@@ -383,8 +383,8 @@ var { choose: L, guards: W, createMachine: $ } = B(), { not: g, and: E } = W, re
|
|
|
383
383
|
},
|
|
384
384
|
syncInputElement({ context: e, event: t, computed: n, scope: a }) {
|
|
385
385
|
const r = t.type.endsWith("CHANGE") ? e.get("value") : n("formattedValue"), s = o(a), u = t.selection ?? C(s, a);
|
|
386
|
-
|
|
387
|
-
|
|
386
|
+
v(() => {
|
|
387
|
+
B(s, r), N(s, u, a);
|
|
388
388
|
});
|
|
389
389
|
},
|
|
390
390
|
setFormattedValue({ context: e, computed: t, action: n }) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getHiddenInputEl as f, getInputElAtIndex as a, getInputEls as v, setInputValue as i } from "./pin-input.dom.js";
|
|
2
2
|
import { setValueAtIndex as r } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/number.js";
|
|
3
3
|
import { dispatchInputValueEvent as m } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/form.js";
|
|
4
|
-
import { setup as F } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/create-machine.js";
|
|
5
4
|
import { raf as d } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/raf.js";
|
|
6
|
-
import { isEqual as
|
|
7
|
-
|
|
5
|
+
import { isEqual as F } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/equal.js";
|
|
6
|
+
import { setup as E } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/create-machine.js";
|
|
7
|
+
var { choose: A, createMachine: C } = E(), _ = C({
|
|
8
8
|
props({ props: e }) {
|
|
9
9
|
return {
|
|
10
10
|
placeholder: "○",
|
|
@@ -26,7 +26,7 @@ var { choose: A, createMachine: C } = F(), _ = C({
|
|
|
26
26
|
value: t(() => ({
|
|
27
27
|
value: e("value"),
|
|
28
28
|
defaultValue: e("defaultValue"),
|
|
29
|
-
isEqual:
|
|
29
|
+
isEqual: F,
|
|
30
30
|
onChange(u) {
|
|
31
31
|
e("onValueChange")?.({ value: u, valueAsString: u.join("") });
|
|
32
32
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { autoUpdate as b, offset as D, flip as S, shift as R, arrow as W, size as C, hide as H, computePosition as O, limitShift as U } from "../../../../../@floating-ui_dom@1.7.
|
|
1
|
+
import { autoUpdate as b, offset as D, flip as S, shift as R, arrow as W, size as C, hide as H, computePosition as O, limitShift as U } from "../../../../../@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
2
2
|
import { getAnchorElement as I } from "./get-anchor.js";
|
|
3
|
-
import {
|
|
3
|
+
import { rectMiddleware as q, shiftArrowMiddleware as B, createTransformOriginMiddleware as V } from "./middleware.js";
|
|
4
4
|
import { getPlacementDetails as j } from "./placement.js";
|
|
5
5
|
import { noop as k } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/functions.js";
|
|
6
6
|
import { isNull as N } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/guard.js";
|
|
@@ -92,14 +92,14 @@ function te(e, t, n = {}) {
|
|
|
92
92
|
Q(r),
|
|
93
93
|
Z(r),
|
|
94
94
|
K(s, t.ownerDocument, r),
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
B(s),
|
|
96
|
+
V(
|
|
97
97
|
{ gutter: r.gutter, offset: r.offset, overlap: r.overlap },
|
|
98
98
|
s
|
|
99
99
|
),
|
|
100
100
|
_(r),
|
|
101
101
|
F(r),
|
|
102
|
-
|
|
102
|
+
q
|
|
103
103
|
], { placement: d, strategy: f, onComplete: u, onPositioned: a } = r;
|
|
104
104
|
let g, P, x = !1;
|
|
105
105
|
const A = async () => {
|
|
@@ -4,7 +4,7 @@ import { dataAttr as a } from "../../../../../@zag-js_dom-query@1.35.3/node_modu
|
|
|
4
4
|
import { visuallyHiddenStyle as S } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/visually-hidden.js";
|
|
5
5
|
import { isFocusVisible as C } from "../../../../../@zag-js_focus-visible@1.35.3/node_modules/@zag-js/focus-visible/dist/index.js";
|
|
6
6
|
import { parts as u } from "./radio-group.anatomy.js";
|
|
7
|
-
import { getIndicatorId as P, getItemHiddenInputId as y, getRootId as h, getItemControlId as k, getItemLabelId as D,
|
|
7
|
+
import { getIndicatorId as P, getItemHiddenInputId as y, getRootId as h, getItemControlId as k, getItemLabelId as D, getItemHiddenInputEl as _, getItemId as A, getLabelId as I, getFirstEnabledAndCheckedInputEl as F, getFirstEnabledInputEl as q } from "./radio-group.dom.js";
|
|
8
8
|
import { toPx as f } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/number.js";
|
|
9
9
|
function B(E, l) {
|
|
10
10
|
const { context: o, send: n, computed: T, prop: t, scope: d } = E, s = T("isDisabled"), m = t("invalid"), v = t("readOnly");
|
|
@@ -84,7 +84,7 @@ function B(E, l) {
|
|
|
84
84
|
return l.label({
|
|
85
85
|
...u.item.attrs,
|
|
86
86
|
dir: t("dir"),
|
|
87
|
-
id:
|
|
87
|
+
id: A(d, e.value),
|
|
88
88
|
htmlFor: y(d, e.value),
|
|
89
89
|
...g(e),
|
|
90
90
|
onPointerMove() {
|
|
@@ -100,7 +100,7 @@ function B(E, l) {
|
|
|
100
100
|
i.disabled || n({ type: "SET_ACTIVE", value: null });
|
|
101
101
|
},
|
|
102
102
|
onClick() {
|
|
103
|
-
!i.disabled && p() &&
|
|
103
|
+
!i.disabled && p() && _(d, e.value)?.focus();
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { isIos as x } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/platform.js";
|
|
2
|
+
import { setStyleProperty as L, setStyle as u } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/set.js";
|
|
3
3
|
import { getComputedStyle as A } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/computed-style.js";
|
|
4
4
|
var c = "data-scroll-lock";
|
|
5
5
|
function P(e) {
|
|
@@ -15,7 +15,7 @@ function G(e) {
|
|
|
15
15
|
if (r.hasAttribute(c)) return;
|
|
16
16
|
const i = h(n) || h(r), l = t.innerWidth - n.clientWidth;
|
|
17
17
|
r.setAttribute(c, "");
|
|
18
|
-
const y = () =>
|
|
18
|
+
const y = () => L(n, "--scrollbar-width", `${l}px`), d = P(n), b = () => {
|
|
19
19
|
const o = {
|
|
20
20
|
overflow: "hidden"
|
|
21
21
|
};
|
|
@@ -33,7 +33,7 @@ function G(e) {
|
|
|
33
33
|
return () => {
|
|
34
34
|
v?.(), t.scrollTo({ left: o, top: a, behavior: "instant" });
|
|
35
35
|
};
|
|
36
|
-
}, g = [y(),
|
|
36
|
+
}, g = [y(), x() ? S() : b()];
|
|
37
37
|
return () => {
|
|
38
38
|
g.forEach((o) => o?.()), r.removeAttribute(c);
|
|
39
39
|
};
|
|
@@ -7,7 +7,7 @@ import { getByTypeahead as V } from "../../../../../@zag-js_dom-query@1.35.3/nod
|
|
|
7
7
|
import { visuallyHiddenStyle as J } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/visually-hidden.js";
|
|
8
8
|
import { getPlacementStyles as $ } from "../../../../../@zag-js_popper@1.35.3/node_modules/@zag-js/popper/dist/get-styles.js";
|
|
9
9
|
import { parts as o } from "./select.anatomy.js";
|
|
10
|
-
import { getItemId as D, getTriggerId as H, getLabelId as b, getContentId as x, getPositionerId as Q,
|
|
10
|
+
import { getItemId as D, getTriggerId as H, getLabelId as b, getContentId as x, getPositionerId as Q, getTriggerEl as S, getHiddenSelectId as M, getClearTriggerId as X, getItemGroupLabelId as w, getItemGroupId as Z, getControlId as z, getRootId as ee } from "./select.dom.js";
|
|
11
11
|
import { ensure as te } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/warning.js";
|
|
12
12
|
function me(g, n) {
|
|
13
13
|
const { context: c, prop: a, scope: d, state: R, computed: m, send: t } = g, s = a("disabled") || c.get("fieldsetDisabled"), p = !!a("invalid"), O = !!a("required"), f = !!a("readOnly"), y = a("composite"), h = a("collection"), E = R.hasTag("open"), A = R.matches("focused"), I = c.get("highlightedValue"), U = c.get("highlightedItem"), _ = m("selectedItems"), P = c.get("currentPlacement"), L = m("isTypingAhead"), G = m("isInteractive"), C = I ? D(d, I) : void 0;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { setInteractionModality as R, trackFocusVisible as F, getInteractionModality as S } from "../../../../../@zag-js_focus-visible@1.35.3/node_modules/@zag-js/focus-visible/dist/index.js";
|
|
2
2
|
import { getPlacement as p } from "../../../../../@zag-js_popper@1.35.3/node_modules/@zag-js/popper/dist/get-placement.js";
|
|
3
|
-
import {
|
|
3
|
+
import { deriveSelectionState as h, resolveSelectedItems as L, createSelectedItemMap as H } from "../../../../../@zag-js_collection@1.35.3/node_modules/@zag-js/collection/dist/selection-map.js";
|
|
4
4
|
import { collection as G } from "./select.collection.js";
|
|
5
|
-
import { getHiddenSelectEl as E, getItemEl as O, getContentEl as g, getTriggerEl as d,
|
|
5
|
+
import { getHiddenSelectEl as E, getItemEl as O, getContentEl as g, getTriggerEl as d, getClearTriggerEl as k, getPositionerEl as C } from "./select.dom.js";
|
|
6
6
|
import { markAsInternalChangeEvent as N, trackFormControl as y } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/form.js";
|
|
7
7
|
import { getInitialFocus as M } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/initial-focus.js";
|
|
8
8
|
import { createMachine as A, createGuards as P } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/create-machine.js";
|
package/dist/node_modules/.bun/@zag-js_slider@1.35.3/node_modules/@zag-js/slider/dist/slider.dom.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getPercentValue as E, clampPercent as v } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/number.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
var V = (t) => t.ids?.root ?? `slider:${t.id}`, k = (t, e) => t.ids?.thumb?.(e) ?? `slider:${t.id}:thumb:${e}`, C = (t, e) => t.ids?.hiddenInput?.(e) ?? `slider:${t.id}:input:${e}`, R = (t) => t.ids?.control ?? `slider:${t.id}:control`, A = (t) => t.ids?.track ?? `slider:${t.id}:track`, O = (t) => t.ids?.range ?? `slider:${t.id}:range`, q = (t) => t.ids?.label ?? `slider:${t.id}:label`, x = (t) => t.ids?.valueText ?? `slider:${t.id}:value-text`, D = (t, e) => t.ids?.marker?.(e) ?? `slider:${t.id}:marker:${e}`, F = (t) => t.getById(V(t)), M = (t, e) => t.getById(k(t, e)), B = (t) =>
|
|
2
|
+
import { dispatchInputValueEvent as P } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/form.js";
|
|
3
|
+
import { queryAll as T } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/query.js";
|
|
4
|
+
var V = (t) => t.ids?.root ?? `slider:${t.id}`, k = (t, e) => t.ids?.thumb?.(e) ?? `slider:${t.id}:thumb:${e}`, C = (t, e) => t.ids?.hiddenInput?.(e) ?? `slider:${t.id}:input:${e}`, R = (t) => t.ids?.control ?? `slider:${t.id}:control`, A = (t) => t.ids?.track ?? `slider:${t.id}:track`, O = (t) => t.ids?.range ?? `slider:${t.id}:range`, q = (t) => t.ids?.label ?? `slider:${t.id}:label`, x = (t) => t.ids?.valueText ?? `slider:${t.id}:value-text`, D = (t, e) => t.ids?.marker?.(e) ?? `slider:${t.id}:marker:${e}`, F = (t) => t.getById(V(t)), M = (t, e) => t.getById(k(t, e)), B = (t) => T(h(t), "[role=slider]"), X = (t) => B(t)[0], H = (t, e) => t.getById(C(t, e)), h = (t) => t.getById(R(t)), j = (t, e, i) => e === "contain" ? (i === "vertical" ? t?.height ?? 0 : t?.width ?? 0) / 2 : 0, Y = (t, e) => {
|
|
5
5
|
const { context: i, prop: r, scope: n, refs: c } = t, l = h(n);
|
|
6
6
|
if (!l) return;
|
|
7
7
|
const a = c.get("thumbDragOffset"), g = {
|
|
@@ -31,7 +31,7 @@ function w(t, e, i) {
|
|
|
31
31
|
var G = (t, e) => {
|
|
32
32
|
e.forEach((i, r) => {
|
|
33
33
|
const n = H(t, r);
|
|
34
|
-
n &&
|
|
34
|
+
n && P(n, { value: i });
|
|
35
35
|
});
|
|
36
36
|
}, J = (t) => ({
|
|
37
37
|
left: t?.offsetLeft ?? 0,
|