@manafishrov/ui 1.2.11 → 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 +6 -6
- 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/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
|
@@ -2,17 +2,17 @@ import { getThumbEl as h, getPointValue as c, getHiddenInputEl as g, dispatchCha
|
|
|
2
2
|
import { normalizeValues as x, constrainValue as E, getRangeAtIndex as d, increment as I, decrement as V, resolveThumbCollision as O, selectMovableThumb as C, getClosestIndex as D } from "./slider.utils.js";
|
|
3
3
|
import { pick as S } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/object.js";
|
|
4
4
|
import { createMachine as A } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/create-machine.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
5
|
+
import { setValueAtIndex as r, getValuePercent as P, getValueRanges as R, snapValueToStep as N, clampValue as k, isValueWithinRange as M } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/number.js";
|
|
6
|
+
import { raf as z } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/raf.js";
|
|
7
|
+
import { setElementValue as p, trackFormControl as F } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/form.js";
|
|
8
|
+
import { resizeObserverBorderBox as _ } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/resize-observer.js";
|
|
9
|
+
import { callAll as w } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/functions.js";
|
|
10
|
+
import { trackPointerMove as B } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/pointer-move.js";
|
|
11
|
+
import { memo as y } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/memo.js";
|
|
12
12
|
import { isEqual as U } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/equal.js";
|
|
13
|
-
var W = (e, t) => e?.width === t?.width && e?.height === t?.height, m = (e, t, n, a, s) =>
|
|
14
|
-
const l =
|
|
15
|
-
if (!
|
|
13
|
+
var W = (e, t) => e?.width === t?.width && e?.height === t?.height, m = (e, t, n, a, s) => R(e, t, n, s * a).map((o) => {
|
|
14
|
+
const l = N(o.value, o.min, o.max, a), i = k(l, o.min, o.max);
|
|
15
|
+
if (!M(i, t, n))
|
|
16
16
|
throw new Error(
|
|
17
17
|
"[zag-js/slider] The configured `min`, `max`, `step` or `minStepsBetweenThumbs` values are invalid"
|
|
18
18
|
);
|
|
@@ -79,9 +79,9 @@ var W = (e, t) => e?.width === t?.width && e?.height === t?.height, m = (e, t, n
|
|
|
79
79
|
isDisabled: ({ context: e, prop: t }) => !!t("disabled") || e.get("fieldsetDisabled"),
|
|
80
80
|
isInteractive: ({ prop: e, computed: t }) => !(e("readOnly") || t("isDisabled")),
|
|
81
81
|
hasMeasuredThumbSize: ({ context: e }) => e.get("thumbSize") != null,
|
|
82
|
-
valuePercent:
|
|
82
|
+
valuePercent: y(
|
|
83
83
|
({ context: e, prop: t }) => [e.get("value"), t("min"), t("max")],
|
|
84
|
-
([e, t, n]) => e.map((a) => 100 *
|
|
84
|
+
([e, t, n]) => e.map((a) => 100 * P(a, t, n))
|
|
85
85
|
)
|
|
86
86
|
},
|
|
87
87
|
watch({ track: e, action: t, context: n, computed: a, send: s }) {
|
|
@@ -179,7 +179,7 @@ var W = (e, t) => e?.width === t?.width && e?.height === t?.height, m = (e, t, n
|
|
|
179
179
|
},
|
|
180
180
|
effects: {
|
|
181
181
|
trackFormControlState({ context: e, scope: t }) {
|
|
182
|
-
return
|
|
182
|
+
return F(b(t), {
|
|
183
183
|
onFieldsetDisabledChange(n) {
|
|
184
184
|
e.set("fieldsetDisabled", n);
|
|
185
185
|
},
|
|
@@ -189,7 +189,7 @@ var W = (e, t) => e?.width === t?.width && e?.height === t?.height, m = (e, t, n
|
|
|
189
189
|
});
|
|
190
190
|
},
|
|
191
191
|
trackPointerMove({ scope: e, send: t }) {
|
|
192
|
-
return
|
|
192
|
+
return B(e.getDoc(), {
|
|
193
193
|
onPointerMove(n) {
|
|
194
194
|
t({ type: "POINTER_MOVE", point: n.point });
|
|
195
195
|
},
|
|
@@ -205,8 +205,8 @@ var W = (e, t) => e?.width === t?.width && e?.height === t?.height, m = (e, t, n
|
|
|
205
205
|
W(e.get("thumbSize"), i) || e.set("thumbSize", i);
|
|
206
206
|
}, s = v(t);
|
|
207
207
|
s.forEach(a);
|
|
208
|
-
const u = s.map((o) =>
|
|
209
|
-
return
|
|
208
|
+
const u = s.map((o) => _.observe(o, () => a(o)));
|
|
209
|
+
return w(...u);
|
|
210
210
|
}
|
|
211
211
|
},
|
|
212
212
|
actions: {
|
|
@@ -216,7 +216,7 @@ var W = (e, t) => e?.width === t?.width && e?.height === t?.height, m = (e, t, n
|
|
|
216
216
|
syncInputElements({ context: e, scope: t }) {
|
|
217
217
|
e.get("value").forEach((n, a) => {
|
|
218
218
|
const s = g(t, a);
|
|
219
|
-
|
|
219
|
+
p(s, n.toString());
|
|
220
220
|
});
|
|
221
221
|
},
|
|
222
222
|
invokeOnChangeEnd({ prop: e, context: t }) {
|
|
@@ -269,7 +269,7 @@ var W = (e, t) => e?.width === t?.width && e?.height === t?.height, m = (e, t, n
|
|
|
269
269
|
});
|
|
270
270
|
},
|
|
271
271
|
focusActiveThumb({ scope: e, context: t }) {
|
|
272
|
-
|
|
272
|
+
z(() => {
|
|
273
273
|
h(e, t.get("focusedIndex"))?.focus({ preventScroll: !0 });
|
|
274
274
|
});
|
|
275
275
|
},
|
|
@@ -6,7 +6,7 @@ import { createScope as H } from "../../../../../@zag-js_core@1.35.3/node_module
|
|
|
6
6
|
import { compact as K } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/object.js";
|
|
7
7
|
import { ensure as L, warn as V } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/warning.js";
|
|
8
8
|
import { MachineStatus as x, INIT_STATE as R } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/types.js";
|
|
9
|
-
import {
|
|
9
|
+
import { getExitEnterStates as Q, resolveStateValue as k, findTransition as U, hasTag as W, matchesState as X } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/state.js";
|
|
10
10
|
import { toArray as Y } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/array.js";
|
|
11
11
|
import { isFunction as E, isString as Z } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/guard.js";
|
|
12
12
|
function dt(n, h = {}) {
|
|
@@ -4,7 +4,7 @@ import { dataAttr as d } from "../../../../../@zag-js_dom-query@1.35.3/node_modu
|
|
|
4
4
|
import { visuallyHiddenStyle as k } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/visually-hidden.js";
|
|
5
5
|
import { isFocusVisible as I } from "../../../../../@zag-js_focus-visible@1.35.3/node_modules/@zag-js/focus-visible/dist/index.js";
|
|
6
6
|
import { parts as u } from "./switch.anatomy.js";
|
|
7
|
-
import { getLabelId as g, getHiddenInputId as h, getControlId as P, getThumbId as S,
|
|
7
|
+
import { getLabelId as g, getHiddenInputId as h, getControlId as P, getThumbId as S, getHiddenInputEl as T, getRootId as x } from "./switch.dom.js";
|
|
8
8
|
function X(m, a) {
|
|
9
9
|
const { context: s, send: i, prop: e, scope: t } = m, r = !!e("disabled"), l = !!e("readOnly"), b = !!e("required"), n = !!s.get("checked"), f = !r && s.get("focused"), E = !r && s.get("focusVisible"), v = !r && s.get("active"), c = {
|
|
10
10
|
"data-active": d(v),
|
package/dist/node_modules/.bun/@zag-js_tabs@1.35.3/node_modules/@zag-js/tabs/dist/tabs.dom.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { queryAll as d, itemById as a, prevById as s, nextById as n } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/query.js";
|
|
2
2
|
import { last as l, first as v } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/array.js";
|
|
3
3
|
var $ = (t) => t.ids?.root ?? `tabs:${t.id}`, o = (t) => t.ids?.list ?? `tabs:${t.id}:list`, I = (t, e) => t.ids?.content?.(e) ?? `tabs:${t.id}:content-${e}`, g = (t, e) => t.ids?.trigger?.(e) ?? `tabs:${t.id}:trigger-${e}`, f = (t) => t.ids?.indicator ?? `tabs:${t.id}:indicator`, y = (t) => t.getById(o(t)), u = (t, e) => t.getById(I(t, e)), T = (t, e) => e != null ? t.getById(g(t, e)) : null, m = (t) => t.getById(f(t)), r = (t) => {
|
|
4
4
|
const i = `[role=tab][data-ownedby='${CSS.escape(o(t))}']:not([disabled])`;
|
|
5
|
-
return
|
|
6
|
-
}, p = (t) => v(r(t)), h = (t) => l(r(t)), w = (t, e) =>
|
|
5
|
+
return d(y(t), i);
|
|
6
|
+
}, p = (t) => v(r(t)), h = (t) => l(r(t)), w = (t, e) => n(r(t), g(t, e.value), e.loopFocus), L = (t, e) => s(r(t), g(t, e.value), e.loopFocus), b = (t) => ({
|
|
7
7
|
x: t?.offsetLeft ?? 0,
|
|
8
8
|
y: t?.offsetTop ?? 0,
|
|
9
9
|
width: t?.offsetWidth ?? 0,
|
|
10
10
|
height: t?.offsetHeight ?? 0
|
|
11
11
|
}), C = (t, e) => {
|
|
12
|
-
const i =
|
|
12
|
+
const i = a(r(t), g(t, e));
|
|
13
13
|
return b(i);
|
|
14
14
|
};
|
|
15
15
|
export {
|
package/dist/node_modules/.bun/@zag-js_tabs@1.35.3/node_modules/@zag-js/tabs/dist/tabs.machine.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { getTriggerEl as n, getIndicatorEl as d, getElements as v, getRectByValue as V, getContentEl as T, getPrevTriggerEl as E, getNextTriggerEl as b, getLastTriggerEl as m, getFirstTriggerEl as F, getOffsetRect as R } from "./tabs.dom.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { resizeObserverBorderBox as O } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/resize-observer.js";
|
|
2
|
+
import { isAnchorElement as C } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/node.js";
|
|
3
|
+
import { callAll as I } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/functions.js";
|
|
4
|
+
import { resizeObserverBorderBox as A } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/resize-observer.js";
|
|
6
5
|
import { raf as c } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/raf.js";
|
|
7
|
-
import { getFocusables as
|
|
8
|
-
import { clickIfLink as
|
|
6
|
+
import { getFocusables as O } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/tabbable.js";
|
|
7
|
+
import { clickIfLink as y } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/navigate.js";
|
|
8
|
+
import { setup as _ } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/create-machine.js";
|
|
9
9
|
import { isEqual as h } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/equal.js";
|
|
10
|
-
var { createMachine: L } =
|
|
10
|
+
var { createMachine: L } = _(), z = L({
|
|
11
11
|
props({ props: e }) {
|
|
12
12
|
return {
|
|
13
13
|
dir: "ltr",
|
|
@@ -16,7 +16,7 @@ var { createMachine: L } = C(), z = L({
|
|
|
16
16
|
loopFocus: !0,
|
|
17
17
|
composite: !0,
|
|
18
18
|
navigate(t) {
|
|
19
|
-
|
|
19
|
+
y(t.node);
|
|
20
20
|
},
|
|
21
21
|
defaultValue: null,
|
|
22
22
|
...e
|
|
@@ -200,7 +200,7 @@ var { createMachine: L } = C(), z = L({
|
|
|
200
200
|
if (!a) return;
|
|
201
201
|
const s = T(t, a);
|
|
202
202
|
if (!s) return;
|
|
203
|
-
|
|
203
|
+
O(s).length > 0 ? s.removeAttribute("tabindex") : s.setAttribute("tabindex", "0");
|
|
204
204
|
});
|
|
205
205
|
},
|
|
206
206
|
cleanupObserver({ refs: e }) {
|
|
@@ -224,14 +224,14 @@ var { createMachine: L } = C(), z = L({
|
|
|
224
224
|
e.set("indicatorRect", (i) => h(i, r) ? i : r);
|
|
225
225
|
};
|
|
226
226
|
l();
|
|
227
|
-
const f = v(a), g =
|
|
227
|
+
const f = v(a), g = I(...f.map((o) => A.observe(o, l)));
|
|
228
228
|
t.set("indicatorCleanup", g);
|
|
229
229
|
},
|
|
230
230
|
navigateIfNeeded({ context: e, prop: t, scope: a }) {
|
|
231
231
|
const s = e.get("value");
|
|
232
232
|
if (!s) return;
|
|
233
233
|
const u = n(a, s);
|
|
234
|
-
|
|
234
|
+
C(u) && t("navigate")?.({ value: s, node: u, href: u.href });
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isLeftClick as _, isComposingEvent as L, getEventKey as S, getNativeEvent as N } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/event.js";
|
|
2
2
|
import { dataAttr as i, ariaAttr as U } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/shared.js";
|
|
3
3
|
import { parts as l } from "./tags-input.anatomy.js";
|
|
4
|
-
import { getClearTriggerId as k,
|
|
4
|
+
import { getClearTriggerId as k, clearHoverIntent as w, setHoverIntent as O, getItemDeleteTriggerId as G, getItemInputId as M, getHiddenInputId as W, getInputId as D, getControlId as q, getLabelId as K, getRootId as B, getInputEl as H, getItemId as F } from "./tags-input.dom.js";
|
|
5
5
|
function Q(h, n) {
|
|
6
6
|
const { state: A, send: a, computed: s, prop: d, scope: u, context: c } = h, g = s("isInteractive"), o = !!d("disabled"), p = !!d("readOnly"), C = !!d("required"), T = d("invalid") || s("isOverflowing"), b = d("translations"), v = A.hasTag("focused"), x = A.matches("editing:tag"), I = s("count") === 0;
|
|
7
7
|
function y(e) {
|
|
@@ -237,7 +237,7 @@ function Q(h, n) {
|
|
|
237
237
|
"data-disabled": i(t.disabled),
|
|
238
238
|
"aria-disabled": t.disabled,
|
|
239
239
|
"data-highlighted": i(t.highlighted),
|
|
240
|
-
id:
|
|
240
|
+
id: G(u, e),
|
|
241
241
|
type: "button",
|
|
242
242
|
disabled: t.disabled,
|
|
243
243
|
"aria-label": b?.deleteTagTriggerLabel?.(e.value),
|
|
@@ -246,10 +246,10 @@ function Q(h, n) {
|
|
|
246
246
|
_(r) && (g || r.preventDefault());
|
|
247
247
|
},
|
|
248
248
|
onPointerMove(r) {
|
|
249
|
-
g &&
|
|
249
|
+
g && O(r.currentTarget);
|
|
250
250
|
},
|
|
251
251
|
onPointerLeave(r) {
|
|
252
|
-
g &&
|
|
252
|
+
g && w(r.currentTarget);
|
|
253
253
|
},
|
|
254
254
|
onClick(r) {
|
|
255
255
|
r.defaultPrevented || g && a({ type: "CLICK_DELETE_TAG", id: t.id });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { indexOfId as g,
|
|
1
|
+
import { indexOfId as g, prevById as l, nextById as I, queryAll as r } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/query.js";
|
|
2
2
|
import { dispatchInputValueEvent as v } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/form.js";
|
|
3
3
|
var s = (t) => t.ids?.root ?? `tags-input:${t.id}`, p = (t) => t.ids?.input ?? `tags-input:${t.id}:input`, y = (t) => t.ids?.clearBtn ?? `tags-input:${t.id}:clear-btn`, u = (t) => t.ids?.hiddenInput ?? `tags-input:${t.id}:hidden-input`, B = (t) => t.ids?.label ?? `tags-input:${t.id}:label`, b = (t) => t.ids?.control ?? `tags-input:${t.id}:control`, i = (t, e) => t.ids?.item?.(e) ?? `tags-input:${t.id}:tag:${e.value}:${e.index}`, T = (t, e) => t.ids?.itemDeleteTrigger?.(e) ?? `${i(t, e)}:delete-btn`, o = (t, e) => t.ids?.itemInput?.(e) ?? `${i(t, e)}:input`, E = (t) => `${t}:input`, h = (t, e) => t.getById(E(e)), H = (t) => r(n(t), "[data-part=item]"), w = (t, e) => t.getById(o(t, e)), n = (t) => t.getById(s(t)), A = (t) => t.getById(p(t)), m = (t) => t.getById(u(t)), a = (t) => r(n(t), "[data-part=item-preview]:not([data-disabled])"), C = (t) => a(t)[0], D = (t) => a(t)[a(t).length - 1], L = (t, e) => l(a(t), e, !1), O = (t, e) => I(a(t), e, !1), R = (t, e) => a(t)[e], q = (t, e) => g(a(t), e), F = (t) => {
|
|
4
4
|
const e = t.closest("[data-part=item-preview]");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { trackInteractOutside as A } from "../../../../../@zag-js_interact-outside@1.35.3/node_modules/@zag-js/interact-outside/dist/index.js";
|
|
2
2
|
import { createLiveRegion as L } from "../../../../../@zag-js_live-region@1.35.3/node_modules/@zag-js/live-region/dist/index.js";
|
|
3
3
|
import { getIndexOfId as o, getEditInputEl as I, getInputEl as c, getTagElAtIndex as O, getPrevEl as R, getLastEl as P, getFirstEl as _, getNextEl as y, dispatchInputEvent as C, getTagInputEl as S, getHiddenInputEl as H, getItemId as v, getItemEls as D } from "./tags-input.dom.js";
|
|
4
|
-
import { isCaretAtStart as N } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/caret.js";
|
|
5
4
|
import { uniq as p, removeAt as E } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/array.js";
|
|
6
|
-
import { autoResizeInput as
|
|
5
|
+
import { autoResizeInput as N } from "../../../../../@zag-js_auto-resize@1.35.3/node_modules/@zag-js/auto-resize/dist/autoresize-input.js";
|
|
6
|
+
import { isCaretAtStart as x } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/caret.js";
|
|
7
7
|
import { createMachine as F, createGuards as U } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/create-machine.js";
|
|
8
8
|
import { raf as r } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/raf.js";
|
|
9
9
|
import { setElementValue as f, trackFormControl as B } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/form.js";
|
|
@@ -351,7 +351,7 @@ var { and: h, not: s, or: b } = U(), ee = F({
|
|
|
351
351
|
clearOnBlur: ({ prop: e }) => e("blurBehavior") === "clear",
|
|
352
352
|
addOnPaste: ({ prop: e }) => !!e("addOnPaste"),
|
|
353
353
|
isTagEditable: ({ prop: e }) => !!e("editable"),
|
|
354
|
-
isCaretAtStart: ({ scope: e }) =>
|
|
354
|
+
isCaretAtStart: ({ scope: e }) => x(c(e))
|
|
355
355
|
},
|
|
356
356
|
effects: {
|
|
357
357
|
trackInteractOutside({ scope: e, prop: t, send: a }) {
|
|
@@ -386,7 +386,7 @@ var { and: h, not: s, or: b } = U(), ee = F({
|
|
|
386
386
|
value: i,
|
|
387
387
|
index: l
|
|
388
388
|
});
|
|
389
|
-
g =
|
|
389
|
+
g = N(d);
|
|
390
390
|
}), () => {
|
|
391
391
|
g?.();
|
|
392
392
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { getRegionEl as n } from "./toast.dom.js";
|
|
2
2
|
import { trackDismissableBranch as u } from "../../../../../@zag-js_dismissable@1.35.3/node_modules/@zag-js/dismissable/dist/dismissable-layer.js";
|
|
3
3
|
import { AnimationFrame as d } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/raf.js";
|
|
4
|
-
import { setup as p } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/create-machine.js";
|
|
5
4
|
import { addDomEvent as l } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/event.js";
|
|
6
|
-
import { uuid as
|
|
7
|
-
|
|
5
|
+
import { uuid as p } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/functions.js";
|
|
6
|
+
import { setup as m } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/create-machine.js";
|
|
7
|
+
var { guards: g, createMachine: E } = m(), { and: h } = g, y = E({
|
|
8
8
|
props({ props: e }) {
|
|
9
9
|
return {
|
|
10
10
|
dir: "ltr",
|
|
11
|
-
id:
|
|
11
|
+
id: p(),
|
|
12
12
|
...e,
|
|
13
13
|
store: e.store
|
|
14
14
|
};
|
|
@@ -3,14 +3,14 @@ import { getRenameInputEl as R, focusNode as d, getNodeId as k } from "./tree-vi
|
|
|
3
3
|
import { toggleBranchChecked as L } from "./utils/checked-state.js";
|
|
4
4
|
import { expandBranches as p } from "./utils/expand-branch.js";
|
|
5
5
|
import { skipFn as r } from "./utils/visit-skip.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { addOrRemove as B, first as m, uniq as P, diff as S, toArray as v, remove as C, last as M } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/array.js";
|
|
6
|
+
import { setElementValue as D } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/form.js";
|
|
7
|
+
import { addOrRemove as B, first as m, uniq as O, diff as S, toArray as v, remove as C, last as F } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/array.js";
|
|
9
8
|
import { isArray as E } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/guard.js";
|
|
9
|
+
import { createMachine as P, createGuards as M } from "../../../../../@zag-js_core@1.35.3/node_modules/@zag-js/core/dist/create-machine.js";
|
|
10
10
|
import { getByTypeahead as A } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/typeahead.js";
|
|
11
11
|
import { raf as g } from "../../../../../@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/raf.js";
|
|
12
12
|
import { isEqual as T } from "../../../../../@zag-js_utils@1.35.3/node_modules/@zag-js/utils/dist/equal.js";
|
|
13
|
-
var { and: N } =
|
|
13
|
+
var { and: N } = M(), j = P({
|
|
14
14
|
props({ props: e }) {
|
|
15
15
|
return {
|
|
16
16
|
selectionMode: "single",
|
|
@@ -292,7 +292,7 @@ var { and: N } = O(), j = D({
|
|
|
292
292
|
actions: {
|
|
293
293
|
selectNode({ context: e, event: t }) {
|
|
294
294
|
const o = t.id || t.value;
|
|
295
|
-
e.set("selectedValue", (n) => o == null ? n : !t.isTrusted && E(o) ? n.concat(...o) : [E(o) ?
|
|
295
|
+
e.set("selectedValue", (n) => o == null ? n : !t.isTrusted && E(o) ? n.concat(...o) : [E(o) ? F(o) : o].filter(Boolean));
|
|
296
296
|
},
|
|
297
297
|
deselectNode({ context: e, event: t }) {
|
|
298
298
|
const o = v(t.id || t.value);
|
|
@@ -406,7 +406,7 @@ var { and: N } = O(), j = D({
|
|
|
406
406
|
l("visibleNodes").forEach(({ node: h }) => {
|
|
407
407
|
const x = c.getNodeValue(h);
|
|
408
408
|
u === 1 && i.push(x), (x === s || x === a) && u++;
|
|
409
|
-
}), t.set("selectedValue",
|
|
409
|
+
}), t.set("selectedValue", O(i));
|
|
410
410
|
},
|
|
411
411
|
extendSelectionToNextNode(e) {
|
|
412
412
|
const { context: t, event: o, prop: n } = e, l = n("collection"), c = l.getNextNode(o.id, { skip: r(e) });
|
|
@@ -504,7 +504,7 @@ var { and: N } = O(), j = D({
|
|
|
504
504
|
const l = o("collection"), c = l.findNode(n);
|
|
505
505
|
if (!c) return;
|
|
506
506
|
const s = l.stringifyNode(c), a = R(t, n);
|
|
507
|
-
|
|
507
|
+
D(a, s);
|
|
508
508
|
},
|
|
509
509
|
focusRenameInput({ context: e, scope: t }) {
|
|
510
510
|
const o = e.get("renamingValue");
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ export const ComboboxLabel: Component<ComboboxPrimitive.LabelProps> = (props) =>
|
|
|
30
30
|
return (
|
|
31
31
|
<ComboboxPrimitive.Label
|
|
32
32
|
class={cn(
|
|
33
|
-
'mb-1 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
33
|
+
'mb-1.5 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
34
34
|
local.class,
|
|
35
35
|
)}
|
|
36
36
|
{...others}
|
|
@@ -61,7 +61,7 @@ export const DatePickerLabel: Component<DatePickerPrimitive.LabelProps> = (props
|
|
|
61
61
|
return (
|
|
62
62
|
<DatePickerPrimitive.Label
|
|
63
63
|
class={cn(
|
|
64
|
-
'mb-1 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
64
|
+
'mb-1.5 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
65
65
|
local.class,
|
|
66
66
|
)}
|
|
67
67
|
{...others}
|
package/src/components/Field.tsx
CHANGED
|
@@ -43,7 +43,7 @@ export const FieldLegend: Component<FieldLegendProps> = (props) => {
|
|
|
43
43
|
data-slot='field-legend'
|
|
44
44
|
data-variant={local.variant ?? 'legend'}
|
|
45
45
|
class={cn(
|
|
46
|
-
'mb-1 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base',
|
|
46
|
+
'mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base',
|
|
47
47
|
local.class,
|
|
48
48
|
)}
|
|
49
49
|
{...others}
|
|
@@ -105,7 +105,7 @@ export const FieldContent: Component<ComponentProps<'div'>> = (props) => {
|
|
|
105
105
|
return (
|
|
106
106
|
<div
|
|
107
107
|
data-slot='field-content'
|
|
108
|
-
class={cn('
|
|
108
|
+
class={cn('group/field-content leading-snug relative flex flex-1 flex-col', local.class)}
|
|
109
109
|
{...others}
|
|
110
110
|
/>
|
|
111
111
|
);
|
|
@@ -171,7 +171,7 @@ export const FieldLabel: Component<PrimitiveField.LabelProps> = (props) => {
|
|
|
171
171
|
<PrimitiveField.Label
|
|
172
172
|
data-slot='field-label'
|
|
173
173
|
class={cn(
|
|
174
|
-
'group-data-[orientation=vertical]/field:mb-1',
|
|
174
|
+
'group-data-[orientation=vertical]/field:mb-1.5',
|
|
175
175
|
'gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
176
176
|
'*:data-[slot=field]:p-2.5 group/field-label peer/field-label leading-snug flex w-fit group-data-disabled/field:opacity-50 has-data-[slot=field]:rounded-lg has-data-[slot=field]:border has-[[data-state=checked]]:border-primary/30 has-[[data-state=checked]]:bg-primary/5 dark:has-[[data-state=checked]]:border-primary/20 dark:has-[[data-state=checked]]:bg-primary/10',
|
|
177
177
|
'has-data-[slot=field]:w-full has-data-[slot=field]:flex-col',
|
|
@@ -190,7 +190,7 @@ export const FieldTitle: Component<ComponentProps<'div'>> = (props) => {
|
|
|
190
190
|
<div
|
|
191
191
|
data-slot='field-label'
|
|
192
192
|
class={cn(
|
|
193
|
-
'group-data-[orientation=vertical]/field:mb-1',
|
|
193
|
+
'group-data-[orientation=vertical]/field:mb-1.5',
|
|
194
194
|
'gap-2 text-sm font-medium leading-snug flex w-fit items-center group-data-disabled/field:opacity-50',
|
|
195
195
|
local.class,
|
|
196
196
|
)}
|
|
@@ -273,10 +273,10 @@ export const FieldError: Component<FieldErrorProps> = (props) => {
|
|
|
273
273
|
});
|
|
274
274
|
|
|
275
275
|
return (
|
|
276
|
-
<div class='mt-[3px] min-h-[0.875rem] flex
|
|
276
|
+
<div class='mt-[3px] flex min-h-[0.875rem] flex-col justify-start'>
|
|
277
277
|
<PrimitiveField.ErrorText
|
|
278
278
|
data-slot='field-error'
|
|
279
|
-
class={cn('text-[0.8rem] leading-[0.875rem]
|
|
279
|
+
class={cn('font-medium text-[0.8rem] leading-[0.875rem] text-destructive', local.class)}
|
|
280
280
|
{...others}
|
|
281
281
|
>
|
|
282
282
|
<Show
|
|
@@ -21,7 +21,7 @@ export const NumberInputLabel: Component<PrimitiveNumberInput.LabelProps> = (pro
|
|
|
21
21
|
return (
|
|
22
22
|
<PrimitiveNumberInput.Label
|
|
23
23
|
class={cn(
|
|
24
|
-
'mb-1 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
24
|
+
'mb-1.5 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
25
25
|
local.class,
|
|
26
26
|
)}
|
|
27
27
|
{...others}
|
|
@@ -20,7 +20,7 @@ export const PasswordInputLabel: Component<PrimitivePasswordInput.LabelProps> =
|
|
|
20
20
|
return (
|
|
21
21
|
<PrimitivePasswordInput.Label
|
|
22
22
|
class={cn(
|
|
23
|
-
'mb-1 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
23
|
+
'mb-1.5 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
24
24
|
local.class,
|
|
25
25
|
)}
|
|
26
26
|
{...others}
|
|
@@ -21,7 +21,7 @@ export const PinInputLabel: Component<PrimitivePinInput.LabelProps> = (props) =>
|
|
|
21
21
|
return (
|
|
22
22
|
<PrimitivePinInput.Label
|
|
23
23
|
class={cn(
|
|
24
|
-
'mb-1 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
24
|
+
'mb-1.5 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
25
25
|
local.class,
|
|
26
26
|
)}
|
|
27
27
|
{...others}
|
|
@@ -9,7 +9,7 @@ export const ProgressCircle: Component<ProgressPrimitive.CircleProps> = (props)
|
|
|
9
9
|
const [local, others] = splitProps(props, ['class', 'children']);
|
|
10
10
|
return (
|
|
11
11
|
<ProgressPrimitive.Circle
|
|
12
|
-
class={cn('text-primary
|
|
12
|
+
class={cn('shrink-0 text-primary', '[--size:2.5rem] [--thickness:4px]', local.class)}
|
|
13
13
|
data-slot='progress-circle'
|
|
14
14
|
{...others}
|
|
15
15
|
>
|
|
@@ -89,7 +89,7 @@ export const ProgressLabel: Component<ProgressPrimitive.LabelProps> = (props) =>
|
|
|
89
89
|
<ProgressPrimitive.Label
|
|
90
90
|
data-slot='progress-label'
|
|
91
91
|
class={cn(
|
|
92
|
-
'mb-1 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
92
|
+
'mb-1.5 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
93
93
|
'text-sm font-medium',
|
|
94
94
|
local.class,
|
|
95
95
|
)}
|
|
@@ -18,7 +18,7 @@ export const RadioGroupLabel: Component<RadioGroupPrimitive.LabelProps> = (props
|
|
|
18
18
|
return (
|
|
19
19
|
<RadioGroupPrimitive.Label
|
|
20
20
|
class={cn(
|
|
21
|
-
'mb-1 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
21
|
+
'mb-1.5 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
22
22
|
'data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-70',
|
|
23
23
|
local.class,
|
|
24
24
|
)}
|
|
@@ -46,9 +46,9 @@ export const RadioGroupItemControl: Component<RadioGroupPrimitive.ItemControlPro
|
|
|
46
46
|
return (
|
|
47
47
|
<RadioGroupPrimitive.ItemControl
|
|
48
48
|
class={cn(
|
|
49
|
-
'peer size-4 shadow-xs group/radio-group-item relative flex aspect-square shrink-0 items-center justify-center rounded-full border border-input bg-background
|
|
50
|
-
'data-[state=checked]:border-
|
|
51
|
-
'data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 data-[focus-visible]:border-ring data-[focus-visible]:ring-[3px] data-[focus-visible]:ring-ring/50
|
|
49
|
+
'peer size-4 shadow-xs group/radio-group-item after:-inset-x-3 after:-inset-y-2 relative flex aspect-square shrink-0 items-center justify-center rounded-full border border-input bg-background transition-[border-color,border-width,box-shadow] outline-none after:absolute',
|
|
50
|
+
'data-[state=checked]:border-[5px] data-[state=checked]:border-primary group-data-invalid/radio-group-item:data-[state=checked]:border-destructive',
|
|
51
|
+
'group-has-focus-visible/radio-group-item:border-ring group-has-focus-visible/radio-group-item:ring-[3px] group-has-focus-visible/radio-group-item:ring-ring/50 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 data-[focus-visible]:border-ring data-[focus-visible]:ring-[3px] data-[focus-visible]:ring-ring/50 data-[invalid=true]:border-destructive data-[invalid=true]:ring-[3px] data-[invalid=true]:ring-destructive/20 dark:bg-input/30 dark:data-[invalid=true]:border-destructive/50 dark:data-[invalid=true]:ring-destructive/40',
|
|
52
52
|
local.class,
|
|
53
53
|
)}
|
|
54
54
|
{...others}
|
|
@@ -120,7 +120,7 @@ export const SelectLabel: Component<SelectPrimitive.LabelProps> = (props) => {
|
|
|
120
120
|
return (
|
|
121
121
|
<SelectPrimitive.Label
|
|
122
122
|
class={cn(
|
|
123
|
-
'mb-1 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
123
|
+
'mb-1.5 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
124
124
|
local.class,
|
|
125
125
|
)}
|
|
126
126
|
{...others}
|
|
@@ -22,7 +22,7 @@ export const SliderLabel: Component<SliderPrimitive.LabelProps> = (props) => {
|
|
|
22
22
|
return (
|
|
23
23
|
<SliderPrimitive.Label
|
|
24
24
|
class={cn(
|
|
25
|
-
'mb-1 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
25
|
+
'mb-1.5 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
26
26
|
local.class,
|
|
27
27
|
)}
|
|
28
28
|
{...others}
|
|
@@ -87,7 +87,7 @@ export const SliderThumb: Component<SliderPrimitive.ThumbProps> = (props) => {
|
|
|
87
87
|
<SliderPrimitive.Thumb
|
|
88
88
|
data-slot='slider-thumb'
|
|
89
89
|
class={cn(
|
|
90
|
-
'size-4 bg-white shadow-sm after:-inset-2 relative block shrink-0 rounded-full border border-ring ring-ring/50 transition-[color,box-shadow] select-none after:absolute hover:ring-[3px] focus-visible:outline-hidden data-active:ring-[3px] data-disabled:pointer-events-none data-[disabled=true]:opacity-50 data-[focus-visible]:ring-[3px] data-[focus-visible]:ring-ring/50
|
|
90
|
+
'size-4 bg-white shadow-sm after:-inset-2 relative block shrink-0 rounded-full border border-ring ring-ring/50 transition-[color,box-shadow] select-none after:absolute hover:ring-[3px] focus-visible:outline-hidden has-focus-visible:ring-[3px] has-focus-visible:ring-ring/50 data-active:ring-[3px] data-disabled:pointer-events-none data-[disabled=true]:opacity-50 data-[focus-visible]:ring-[3px] data-[focus-visible]:ring-ring/50',
|
|
91
91
|
local.class,
|
|
92
92
|
)}
|
|
93
93
|
{...others}
|
|
@@ -100,7 +100,7 @@ export const SliderThumb: Component<SliderPrimitive.ThumbProps> = (props) => {
|
|
|
100
100
|
|
|
101
101
|
export const SliderMarkerGroup: Component<SliderPrimitive.MarkerGroupProps> = (props) => {
|
|
102
102
|
const [local, others] = splitProps(props, ['class']);
|
|
103
|
-
return <SliderPrimitive.MarkerGroup class={cn('mt-2', local.class)} {...others} />;
|
|
103
|
+
return <SliderPrimitive.MarkerGroup class={cn('mt-2 mb-2', local.class)} {...others} />;
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
export const SliderMarker: Component<SliderPrimitive.MarkerProps> = (props) => {
|
|
@@ -108,7 +108,7 @@ export const SliderMarker: Component<SliderPrimitive.MarkerProps> = (props) => {
|
|
|
108
108
|
return (
|
|
109
109
|
<SliderPrimitive.Marker
|
|
110
110
|
class={cn(
|
|
111
|
-
'
|
|
111
|
+
'-translate-x-1/2 text-[10px] text-muted-foreground data-[orientation=vertical]:-translate-y-1/2 data-[state=at-value]:text-foreground',
|
|
112
112
|
local.class,
|
|
113
113
|
)}
|
|
114
114
|
{...others}
|
|
@@ -171,7 +171,7 @@ export const SliderCircleRange: Component<AngleSliderPrimitive.ThumbProps> = (pr
|
|
|
171
171
|
const [local, others] = splitProps(props, ['class', 'children']);
|
|
172
172
|
return (
|
|
173
173
|
<div
|
|
174
|
-
class={cn('inset-0
|
|
174
|
+
class={cn('inset-0 pointer-events-none absolute z-10 rounded-full', local.class)}
|
|
175
175
|
data-slot='slider-circle-range'
|
|
176
176
|
{...others}
|
|
177
177
|
>
|
|
@@ -201,9 +201,9 @@ export const SliderCircleThumb: Component<AngleSliderPrimitive.ThumbProps> = (pr
|
|
|
201
201
|
return (
|
|
202
202
|
<AngleSliderPrimitive.Thumb
|
|
203
203
|
class={cn(
|
|
204
|
-
'inset-0 z-20
|
|
204
|
+
'inset-0 absolute z-20 rounded-full outline-none',
|
|
205
205
|
'before:top-1 before:size-4 before:bg-white before:shadow-sm before:absolute before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:border before:border-ring before:transition-[color,box-shadow] before:data-active:ring-[3px] before:data-active:ring-ring/50',
|
|
206
|
-
'
|
|
206
|
+
'has-focus-visible:ring-[3px] has-focus-visible:ring-ring/50 data-[focus-visible]:ring-[3px] data-[focus-visible]:ring-ring/50',
|
|
207
207
|
local.class,
|
|
208
208
|
)}
|
|
209
209
|
data-slot='slider-circle-thumb'
|
|
@@ -221,7 +221,7 @@ export const SliderCircleMarkerGroup: Component<AngleSliderPrimitive.MarkerGroup
|
|
|
221
221
|
const [local, others] = splitProps(props, ['class', 'children']);
|
|
222
222
|
return (
|
|
223
223
|
<AngleSliderPrimitive.MarkerGroup
|
|
224
|
-
class={cn('inset-0
|
|
224
|
+
class={cn('inset-0 pointer-events-none absolute z-20 rounded-full', local.class)}
|
|
225
225
|
{...others}
|
|
226
226
|
>
|
|
227
227
|
{local.children}
|
|
@@ -11,7 +11,7 @@ export const TagsInputLabel: Component<TagsInputPrimitive.LabelProps> = (props)
|
|
|
11
11
|
return (
|
|
12
12
|
<TagsInputPrimitive.Label
|
|
13
13
|
class={cn(
|
|
14
|
-
'mb-1 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
14
|
+
'mb-1.5 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
15
15
|
local.class,
|
|
16
16
|
)}
|
|
17
17
|
{...others}
|
|
@@ -19,7 +19,7 @@ export const TextInputLabel: Component<PrimitiveField.LabelProps> = (props) => {
|
|
|
19
19
|
return (
|
|
20
20
|
<PrimitiveField.Label
|
|
21
21
|
class={cn(
|
|
22
|
-
'mb-1 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
22
|
+
'mb-1.5 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
23
23
|
local.class,
|
|
24
24
|
)}
|
|
25
25
|
{...others}
|
|
@@ -29,7 +29,9 @@ const SliderInput: Component<{
|
|
|
29
29
|
<SliderTrack>
|
|
30
30
|
<SliderRange />
|
|
31
31
|
</SliderTrack>
|
|
32
|
-
<For each={props.value
|
|
32
|
+
<For each={props.value.map((_, index) => index)}>
|
|
33
|
+
{(index) => <SliderThumb index={index} />}
|
|
34
|
+
</For>
|
|
33
35
|
</SliderControl>
|
|
34
36
|
{props.marks && (
|
|
35
37
|
<SliderMarkerGroup>
|