@ark-ui/solid 5.31.0 → 5.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk/{AFGSUR6R.js → 26AFWRWR.js} +1 -1
- package/dist/chunk/{NHSNBGCC.js → 2DWWKUQD.js} +1 -1
- package/dist/chunk/{7LBRKLXW.js → 2HZTFCLA.js} +1 -1
- package/dist/chunk/{Q2EC4X24.jsx → 2KZV6B32.jsx} +7 -5
- package/dist/chunk/{DFHJBZM6.js → 3CGAZ37C.js} +3 -2
- package/dist/chunk/{WMMVKZHK.jsx → 3JJJT3ZB.jsx} +4 -4
- package/dist/chunk/{OSFE5N7D.js → 3QFD7O3R.js} +1 -1
- package/dist/chunk/{G7BHQPOC.js → 3WVUTGI5.js} +1 -1
- package/dist/chunk/{SLOK7RQU.js → 46J43BJK.js} +1 -1
- package/dist/chunk/{ZQJU3MNB.jsx → 4CRPJKY4.jsx} +14 -10
- package/dist/chunk/{XTL34GZH.js → 4NX2BXDE.js} +1 -1
- package/dist/chunk/{DNRJCAR4.jsx → 4OJLSY6B.jsx} +3 -3
- package/dist/chunk/{5O3D32XK.jsx → 4RPVBIDO.jsx} +6 -6
- package/dist/chunk/{CMGVBYH6.jsx → 4V5X4XYS.jsx} +38 -9
- package/dist/chunk/5BSMJBO7.jsx +136 -0
- package/dist/chunk/{5SEYLBQQ.jsx → 5UOOPLZE.jsx} +4 -4
- package/dist/chunk/{S7ILHA7C.jsx → 64BWQJ5X.jsx} +7 -5
- package/dist/chunk/{Q67V4SSK.js → 6CIJMDKA.js} +1 -1
- package/dist/chunk/{T4C4OLH5.jsx → 77WG4BKE.jsx} +6 -6
- package/dist/chunk/{NYBDSWDH.js → 7N7WQTZL.js} +2 -2
- package/dist/chunk/{SCMBWJVC.jsx → 7RLMGBOC.jsx} +3 -3
- package/dist/chunk/{D4GWWUQY.jsx → BB22DOQW.jsx} +7 -5
- package/dist/chunk/{XMIVUAEB.jsx → BKN7PQAU.jsx} +4 -4
- package/dist/chunk/{RBYLWQEE.js → BNK2OLFQ.js} +1 -1
- package/dist/chunk/{V6TUJPSE.jsx → BNSRP6TN.jsx} +3 -3
- package/dist/chunk/{AOAGDS53.jsx → BWUVF6ZV.jsx} +3 -3
- package/dist/chunk/{YJZT56R5.js → CSPYRAHE.js} +1 -1
- package/dist/chunk/{CTYC3XVM.js → CVZHE2SA.js} +3 -2
- package/dist/chunk/DIPPYNXP.jsx +306 -0
- package/dist/chunk/{RVOPDSQY.js → EM5SH6A3.js} +12 -1
- package/dist/chunk/{VQAY7ALM.js → EWZDTHD5.js} +3 -2
- package/dist/chunk/{NT6ZYH25.js → EZUEPSKL.js} +1 -1
- package/dist/chunk/{YTEBGEQ4.jsx → FPLD7TDU.jsx} +9 -7
- package/dist/chunk/{DM5NMT5Y.jsx → GOIBDXMD.jsx} +7 -5
- package/dist/chunk/{UGSFGPFW.jsx → GUAJ4JKS.jsx} +4 -4
- package/dist/chunk/{RY7KBPRA.jsx → GVJQBGKQ.jsx} +3 -3
- package/dist/chunk/{YRAJJHEJ.jsx → H72X6NDR.jsx} +5 -5
- package/dist/chunk/{VUOC2LCL.js → HBI6JRIQ.js} +1 -1
- package/dist/chunk/{A7ULUG37.jsx → HNGLQNVW.jsx} +4 -4
- package/dist/chunk/{JFOWNFC7.jsx → HOPBYFHD.jsx} +20 -3
- package/dist/chunk/{5WXM756C.js → IBHRQZGE.js} +2 -2
- package/dist/chunk/{KMYFS63G.js → IYV66IHX.js} +20 -4
- package/dist/chunk/{4GOETTVP.js → J6DQNRLJ.js} +1 -1
- package/dist/chunk/{2WRCIBVP.js → JBLHW7IM.js} +4 -29
- package/dist/chunk/{4GELDCEE.jsx → JBLKWLWL.jsx} +4 -4
- package/dist/chunk/{WJ3SED2J.js → JS3XBGMJ.js} +1 -1
- package/dist/chunk/{WYVADPK7.js → JTLQTUVA.js} +1 -1
- package/dist/chunk/{O6CMUPUG.js → JXG4T6X4.js} +1 -1
- package/dist/chunk/{TAEJBOHF.js → K3OREICY.js} +2 -2
- package/dist/chunk/{CCBSY5FU.js → K4UPRSXC.js} +3 -2
- package/dist/chunk/{3JI3LEL3.js → KLVISEUF.js} +3 -2
- package/dist/chunk/{LYCTCPBV.js → KQNSJPVJ.js} +1 -1
- package/dist/chunk/KWLZPDF4.jsx +6 -0
- package/dist/chunk/{CGB5YI3F.jsx → LBXPKVCB.jsx} +1 -1
- package/dist/chunk/{Z326BLVT.js → LDQ53A2W.js} +7 -4
- package/dist/chunk/{BHJYCERG.js → LGI6RFKK.js} +3 -2
- package/dist/chunk/{7LG5FPBU.js → LPVFYK7O.js} +4 -3
- package/dist/chunk/{TJ7E237D.js → LQ6WK4Z4.js} +1 -1
- package/dist/chunk/{EMHNANVE.jsx → MB6S2OKT.jsx} +3 -3
- package/dist/chunk/{2SGHC324.js → MKDWWRA5.js} +2 -2
- package/dist/chunk/{KH2XV4KM.jsx → MQWCA23U.jsx} +7 -5
- package/dist/chunk/NEU4F4NG.jsx +52 -0
- package/dist/chunk/{KQGHYOLW.jsx → NH3KCKN2.jsx} +4 -4
- package/dist/chunk/NJVZNV63.js +121 -0
- package/dist/chunk/{MDSG7I6V.js → NSXJ2QGV.js} +1 -1
- package/dist/chunk/{EV7COIUN.jsx → O6MULJWC.jsx} +4 -4
- package/dist/chunk/{ZSFOKQ3Z.jsx → OAH52JX6.jsx} +3 -3
- package/dist/chunk/{VTTFCXVC.jsx → OEGORBLT.jsx} +1 -47
- package/dist/chunk/ORFQCCEF.js +7 -0
- package/dist/chunk/{RLUEXDAM.jsx → OULN7AIR.jsx} +7 -5
- package/dist/chunk/{C56T2HRV.jsx → PPH4D7AF.jsx} +4 -4
- package/dist/chunk/{VPKUVVDM.js → QKALXKQ2.js} +3 -2
- package/dist/chunk/{IM2L53FZ.jsx → QM5PBW35.jsx} +7 -5
- package/dist/chunk/{5LGVYTH5.js → QP67RQ4U.js} +1 -1
- package/dist/chunk/{5QVNY35H.js → QXSMGAB3.js} +1 -1
- package/dist/chunk/{2KCVIKG7.jsx → QY2YSMFW.jsx} +3 -3
- package/dist/chunk/{TQCLH765.jsx → RJHFA54S.jsx} +9 -6
- package/dist/chunk/{ZYS6A6GV.jsx → RROG5OYX.jsx} +3 -3
- package/dist/chunk/RT4GKNE7.js +1 -0
- package/dist/chunk/{BV6RNXMH.js → RTMU5FC3.js} +3 -2
- package/dist/chunk/{UGCFDJSO.jsx → SFGMQBWT.jsx} +3 -3
- package/dist/chunk/{G2UMJWTM.js → SMG76T6Y.js} +2 -2
- package/dist/chunk/{2TPQPUX6.jsx → SPOOGCGR.jsx} +3 -3
- package/dist/chunk/{DON7WJR6.jsx → TFTY2V3E.jsx} +3 -3
- package/dist/chunk/{6N44QPMY.jsx → TGBMUR4Z.jsx} +10 -8
- package/dist/chunk/{YQOHTJFL.js → TKBMSQRY.js} +1 -1
- package/dist/chunk/UCE6BN4G.js +239 -0
- package/dist/chunk/{5LDIC54T.jsx → UQTBTRSG.jsx} +3 -3
- package/dist/chunk/{GXLS3QZ4.js → W5FJUJL2.js} +3 -2
- package/dist/chunk/{4UQ4BNTC.js → WEHZ7AD5.js} +1 -1
- package/dist/chunk/{ZOKZFKHJ.jsx → WHD7YP7Q.jsx} +4 -4
- package/dist/chunk/{VUSRNP23.js → WSIS4VPD.js} +3 -2
- package/dist/chunk/X22PRPOR.js +31 -0
- package/dist/chunk/{EOQC4OFF.js → XCCC6IWM.js} +1 -1
- package/dist/chunk/{VVSGL3B5.js → XUKSV26K.js} +2 -2
- package/dist/chunk/XVU3GCCX.jsx +9 -0
- package/dist/chunk/{FQY342YD.jsx → Z3LUEVRS.jsx} +10 -8
- package/dist/chunk/{76UE3KN4.jsx → Z5FQB54Q.jsx} +5 -5
- package/dist/chunk/{IHT5Q6Q3.jsx → ZG4V7QA5.jsx} +4 -4
- package/dist/chunk/{MMBOU3ZC.jsx → ZLZED63N.jsx} +4 -4
- package/dist/chunk/{TZA2XQYK.jsx → ZMQW6EBL.jsx} +1 -1
- package/dist/chunk/{GOJHNXPD.jsx → ZW5OSILD.jsx} +4 -4
- package/dist/chunk/{CKMDA3R6.js → ZZDF5GUB.js} +1 -1
- package/dist/{combobox.anatomy-CW3VXK4N.d.ts → combobox.anatomy-5H6l0CJs.d.ts} +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.jsx +5 -5
- package/dist/components/anatomy.d.ts +5 -4
- package/dist/components/anatomy.js +12 -11
- package/dist/components/anatomy.jsx +61 -57
- package/dist/components/angle-slider/index.js +1 -1
- package/dist/components/angle-slider/index.jsx +4 -4
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.jsx +4 -4
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/index.jsx +4 -4
- package/dist/components/checkbox/index.d.ts +4 -0
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.jsx +6 -6
- package/dist/components/clipboard/index.jsx +3 -3
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collapsible/index.jsx +4 -4
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-picker/index.jsx +8 -7
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/combobox/index.jsx +9 -8
- package/dist/components/date-picker/index.d.ts +24 -5
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/index.jsx +10 -5
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.jsx +6 -5
- package/dist/components/download-trigger/index.jsx +1 -1
- package/dist/components/drawer/index.d.ts +121 -0
- package/dist/components/drawer/index.js +2 -0
- package/dist/components/drawer/index.jsx +56 -0
- package/dist/components/editable/index.js +1 -1
- package/dist/components/editable/index.jsx +6 -6
- package/dist/components/field/index.d.ts +18 -17
- package/dist/components/field/index.jsx +5 -5
- package/dist/components/fieldset/index.d.ts +5 -4
- package/dist/components/fieldset/index.jsx +4 -4
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/file-upload/index.jsx +6 -6
- package/dist/components/floating-panel/index.js +1 -1
- package/dist/components/floating-panel/index.jsx +6 -5
- package/dist/components/format/index.js +1 -1
- package/dist/components/format/index.jsx +2 -2
- package/dist/components/frame/index.jsx +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/hover-card/index.jsx +6 -5
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/image-cropper/index.jsx +4 -4
- package/dist/components/index.d.ts +10 -7
- package/dist/components/index.js +62 -59
- package/dist/components/index.jsx +514 -480
- package/dist/components/json-tree-view/index.js +1 -1
- package/dist/components/json-tree-view/index.jsx +6 -6
- package/dist/components/listbox/index.d.ts +2 -2
- package/dist/components/listbox/index.js +1 -1
- package/dist/components/listbox/index.jsx +4 -4
- package/dist/components/marquee/index.js +1 -1
- package/dist/components/marquee/index.jsx +4 -4
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.jsx +6 -5
- package/dist/components/navigation-menu/index.js +3 -2
- package/dist/components/navigation-menu/index.jsx +7 -5
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/index.jsx +6 -6
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/index.jsx +4 -4
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/password-input/index.jsx +6 -6
- package/dist/components/pin-input/index.js +1 -1
- package/dist/components/pin-input/index.jsx +6 -6
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.jsx +6 -5
- package/dist/components/presence/index.js +2 -1
- package/dist/components/presence/index.jsx +4 -2
- package/dist/components/progress/index.d.ts +2 -2
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/index.jsx +4 -4
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/qr-code/index.jsx +4 -4
- package/dist/components/radio-group/index.d.ts +2 -2
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/index.jsx +5 -5
- package/dist/components/rating-group/index.js +1 -1
- package/dist/components/rating-group/index.jsx +6 -6
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/index.jsx +4 -4
- package/dist/components/segment-group/index.d.ts +2 -2
- package/dist/components/segment-group/index.js +1 -1
- package/dist/components/segment-group/index.jsx +4 -4
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/index.jsx +9 -8
- package/dist/components/signature-pad/index.js +1 -1
- package/dist/components/signature-pad/index.jsx +6 -6
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.jsx +4 -4
- package/dist/components/splitter/index.js +1 -1
- package/dist/components/splitter/index.jsx +4 -4
- package/dist/components/steps/index.js +1 -1
- package/dist/components/steps/index.jsx +4 -4
- package/dist/components/swap/index.d.ts +74 -0
- package/dist/components/swap/index.js +2 -0
- package/dist/components/swap/index.jsx +28 -0
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.jsx +6 -6
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.jsx +6 -5
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/index.jsx +6 -6
- package/dist/components/timer/index.jsx +3 -3
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/index.jsx +3 -3
- package/dist/components/toggle/index.jsx +2 -2
- package/dist/components/toggle-group/index.js +1 -1
- package/dist/components/toggle-group/index.jsx +4 -4
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.jsx +6 -5
- package/dist/components/tour/index.d.ts +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/tour/index.jsx +6 -5
- package/dist/components/tree-view/index.js +1 -1
- package/dist/components/tree-view/index.jsx +5 -5
- package/dist/{date-picker.anatomy-DPHKzZh7.d.ts → date-picker.anatomy-DMDOrz3v.d.ts} +1 -1
- package/dist/index.d.ts +12 -8
- package/dist/index.js +63 -60
- package/dist/index.jsx +521 -485
- package/dist/providers/index.d.ts +3 -1
- package/dist/providers/index.js +1 -1
- package/dist/providers/index.jsx +8 -6
- package/dist/providers/locale/index.d.ts +10 -1
- package/dist/providers/locale/index.js +1 -1
- package/dist/providers/locale/index.jsx +4 -1
- package/dist/swap.anatomy-BTCTOTbL.d.ts +5 -0
- package/dist/{tour.anatomy-BwE3XSIU.d.ts → tour.anatomy-B2Ub0NWQ.d.ts} +1 -1
- package/package.json +77 -76
- package/dist/chunk/2R6SK2X3.js +0 -1
- package/dist/chunk/52P3DPTR.js +0 -178
- package/dist/chunk/DLQR7VNM.jsx +0 -231
- package/dist/chunk/WMZBRARY.jsx +0 -6
- package/dist/components/bottom-sheet/index.d.ts +0 -92
- package/dist/components/bottom-sheet/index.js +0 -2
- package/dist/components/bottom-sheet/index.jsx +0 -45
- package/dist/chunk/{TEKM4RER.jsx → AIK4SKXT.jsx} +3 -3
- package/dist/chunk/{PJLQLDQ3.js → PMEYD5LG.js} +0 -0
- package/dist/chunk/{EDXDNGEO.jsx → S6EAXNU4.jsx} +0 -0
- package/dist/chunk/{CG273YBB.jsx → WZBYH43M.jsx} +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useCollapsibleContext, collapsible_exports } from './
|
|
1
|
+
import { useCollapsibleContext, collapsible_exports } from './HBI6JRIQ.js';
|
|
2
2
|
import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './GUFIKGZ6.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
5
4
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
5
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
6
6
|
import { runIfFn } from './DT73WLR4.js';
|
|
7
7
|
import { ark } from './EPLBB4QN.js';
|
|
8
8
|
import { createContext } from './THN5C4U6.js';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { splitPresenceProps,
|
|
1
|
+
import { splitPresenceProps, PresenceProvider, usePresenceContext } from './JBLHW7IM.js';
|
|
2
|
+
import { usePresence } from './X22PRPOR.js';
|
|
2
3
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
3
4
|
import { datePickerAnatomy } from './YA3LD5QR.js';
|
|
4
5
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
5
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
6
6
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
7
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
7
8
|
import { runIfFn } from './DT73WLR4.js';
|
|
8
9
|
import { ark } from './EPLBB4QN.js';
|
|
9
10
|
import { createContext } from './THN5C4U6.js';
|
|
@@ -201,7 +202,7 @@ var useDatePicker = (props) => {
|
|
|
201
202
|
// src/components/date-picker/date-picker-root.tsx
|
|
202
203
|
var DatePickerRoot = (props) => {
|
|
203
204
|
const [presenceProps, datePickerProps] = splitPresenceProps(props);
|
|
204
|
-
const [useDatePickerProps, localProps] = createSplitProps()(datePickerProps, ["closeOnSelect", "defaultFocusedValue", "defaultOpen", "defaultValue", "defaultView", "disabled", "fixedWeeks", "focusedValue", "format", "id", "ids", "inline", "invalid", "isDateUnavailable", "locale", "max", "maxView", "min", "minView", "name", "numOfMonths", "onFocusChange", "onOpenChange", "onValueChange", "onViewChange", "onVisibleRangeChange", "open", "outsideDaySelectable", "parse", "placeholder", "positioning", "readOnly", "required", "selectionMode", "startOfWeek", "timeZone", "translations", "value", "view"]);
|
|
205
|
+
const [useDatePickerProps, localProps] = createSplitProps()(datePickerProps, ["closeOnSelect", "createCalendar", "defaultFocusedValue", "defaultOpen", "defaultValue", "defaultView", "disabled", "fixedWeeks", "focusedValue", "format", "id", "ids", "inline", "invalid", "isDateUnavailable", "locale", "max", "maxSelectedDates", "maxView", "min", "minView", "name", "numOfMonths", "onFocusChange", "onOpenChange", "onValueChange", "onViewChange", "onVisibleRangeChange", "open", "openOnClick", "outsideDaySelectable", "parse", "placeholder", "positioning", "readOnly", "required", "selectionMode", "showWeekNumbers", "startOfWeek", "timeZone", "translations", "value", "view"]);
|
|
205
206
|
const api = useDatePicker(useDatePickerProps);
|
|
206
207
|
const apiPresence = usePresence(mergeProps(presenceProps, () => ({
|
|
207
208
|
present: api().open
|
|
@@ -366,6 +367,19 @@ var DatePickerViewTrigger = (props) => {
|
|
|
366
367
|
const mergedProps = mergeProps(() => api().getViewTriggerProps(viewProps), props);
|
|
367
368
|
return createComponent(ark.button, mergedProps);
|
|
368
369
|
};
|
|
370
|
+
var splitWeekNumberCellProps = createSplitProps();
|
|
371
|
+
var DatePickerWeekNumberCell = (props) => {
|
|
372
|
+
const [cellProps, localProps] = splitWeekNumberCellProps(props, ["weekIndex", "week"]);
|
|
373
|
+
const datePicker2 = useDatePickerContext();
|
|
374
|
+
const mergedProps = mergeProps(() => datePicker2().getWeekNumberCellProps(cellProps), localProps);
|
|
375
|
+
return createComponent(ark.td, mergedProps);
|
|
376
|
+
};
|
|
377
|
+
var DatePickerWeekNumberHeaderCell = (props) => {
|
|
378
|
+
const api = useDatePickerContext();
|
|
379
|
+
const tableProps = useDatePickerTableContext();
|
|
380
|
+
const mergedProps = mergeProps(() => api().getWeekNumberHeaderCellProps(tableProps), props);
|
|
381
|
+
return createComponent(ark.th, mergedProps);
|
|
382
|
+
};
|
|
369
383
|
var DatePickerYearSelect = (props) => {
|
|
370
384
|
const datePicker2 = useDatePickerContext();
|
|
371
385
|
const mergedProps = mergeProps(() => datePicker2().getYearSelectProps(), props);
|
|
@@ -417,7 +431,9 @@ __export(date_picker_exports, {
|
|
|
417
431
|
View: () => DatePickerView,
|
|
418
432
|
ViewControl: () => DatePickerViewControl,
|
|
419
433
|
ViewTrigger: () => DatePickerViewTrigger,
|
|
434
|
+
WeekNumberCell: () => DatePickerWeekNumberCell,
|
|
435
|
+
WeekNumberHeaderCell: () => DatePickerWeekNumberHeaderCell,
|
|
420
436
|
YearSelect: () => DatePickerYearSelect
|
|
421
437
|
});
|
|
422
438
|
|
|
423
|
-
export { DatePickerClearTrigger, DatePickerContent, DatePickerContext, DatePickerControl, DatePickerInput, DatePickerLabel, DatePickerMonthSelect, DatePickerNextTrigger, DatePickerPositioner, DatePickerPresetTrigger, DatePickerPrevTrigger, DatePickerRangeText, DatePickerRoot, DatePickerRootProvider, DatePickerTable, DatePickerTableBody, DatePickerTableCell, DatePickerTableCellTrigger, DatePickerTableHead, DatePickerTableHeader, DatePickerTableRow, DatePickerTrigger, DatePickerValueText, DatePickerView, DatePickerViewControl, DatePickerViewTrigger, DatePickerYearSelect, date_picker_exports, useDatePicker, useDatePickerContext };
|
|
439
|
+
export { DatePickerClearTrigger, DatePickerContent, DatePickerContext, DatePickerControl, DatePickerInput, DatePickerLabel, DatePickerMonthSelect, DatePickerNextTrigger, DatePickerPositioner, DatePickerPresetTrigger, DatePickerPrevTrigger, DatePickerRangeText, DatePickerRoot, DatePickerRootProvider, DatePickerTable, DatePickerTableBody, DatePickerTableCell, DatePickerTableCellTrigger, DatePickerTableHead, DatePickerTableHeader, DatePickerTableRow, DatePickerTrigger, DatePickerValueText, DatePickerView, DatePickerViewControl, DatePickerViewTrigger, DatePickerWeekNumberCell, DatePickerWeekNumberHeaderCell, DatePickerYearSelect, date_picker_exports, useDatePicker, useDatePickerContext };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useFieldContext } from './S3VN2YFH.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
4
3
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
4
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
5
5
|
import { runIfFn } from './DT73WLR4.js';
|
|
6
6
|
import { ark } from './EPLBB4QN.js';
|
|
7
7
|
import { createContext } from './THN5C4U6.js';
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { usePresence } from './X22PRPOR.js';
|
|
1
2
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
2
|
-
import { splitRenderStrategyProps } from './GUFIKGZ6.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
|
-
import { runIfFn } from './DT73WLR4.js';
|
|
5
4
|
import { ark } from './EPLBB4QN.js';
|
|
6
5
|
import { createContext } from './THN5C4U6.js';
|
|
7
6
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import * as presence from '@zag-js/presence';
|
|
7
|
+
import { mergeProps } from '@zag-js/solid';
|
|
8
|
+
import { Show } from 'solid-js';
|
|
11
9
|
|
|
12
10
|
// src/components/presence/split-presence-props.ts
|
|
13
11
|
var splitPresenceProps = (props) => createSplitProps()(props, [
|
|
@@ -18,29 +16,6 @@ var splitPresenceProps = (props) => createSplitProps()(props, [
|
|
|
18
16
|
"skipAnimationOnMount",
|
|
19
17
|
"unmountOnExit"
|
|
20
18
|
]);
|
|
21
|
-
var usePresence = (props) => {
|
|
22
|
-
const [renderStrategyProps, localProps] = splitRenderStrategyProps(runIfFn(props));
|
|
23
|
-
const [wasEverPresent, setWasEverPresent] = createSignal(false);
|
|
24
|
-
const service = useMachine(presence.machine, props);
|
|
25
|
-
const api = createMemo(() => presence.connect(service, normalizeProps));
|
|
26
|
-
createEffect(() => {
|
|
27
|
-
const present = api().present;
|
|
28
|
-
if (present) setWasEverPresent(true);
|
|
29
|
-
});
|
|
30
|
-
const setNode = (node) => {
|
|
31
|
-
if (!node) return;
|
|
32
|
-
service.send({ type: "NODE.SET", node });
|
|
33
|
-
};
|
|
34
|
-
return createMemo(() => ({
|
|
35
|
-
unmounted: !api().present && !wasEverPresent() && renderStrategyProps.lazyMount || renderStrategyProps.unmountOnExit && !api().present && wasEverPresent(),
|
|
36
|
-
present: api().present,
|
|
37
|
-
ref: setNode,
|
|
38
|
-
presenceProps: {
|
|
39
|
-
hidden: !api().present,
|
|
40
|
-
"data-state": api().skip && localProps.skipAnimationOnMount ? void 0 : localProps.present ? "open" : "closed"
|
|
41
|
-
}
|
|
42
|
-
}));
|
|
43
|
-
};
|
|
44
19
|
|
|
45
20
|
// src/components/presence/presence.tsx
|
|
46
21
|
var Presence = (props) => {
|
|
@@ -70,4 +45,4 @@ var [PresenceProvider, usePresenceContext] = createContext({
|
|
|
70
45
|
providerName: "<PresenceProvider />"
|
|
71
46
|
});
|
|
72
47
|
|
|
73
|
-
export { Presence, PresenceProvider, splitPresenceProps,
|
|
48
|
+
export { Presence, PresenceProvider, splitPresenceProps, usePresenceContext };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collapsible_exports
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./RROG5OYX.jsx";
|
|
4
4
|
import {
|
|
5
5
|
RenderStrategyProvider,
|
|
6
6
|
splitRenderStrategyProps,
|
|
@@ -9,6 +9,9 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
createSplitProps
|
|
11
11
|
} from "./6WEDGJKQ.jsx";
|
|
12
|
+
import {
|
|
13
|
+
useLocaleContext
|
|
14
|
+
} from "./HOPBYFHD.jsx";
|
|
12
15
|
import {
|
|
13
16
|
useEnvironmentContext
|
|
14
17
|
} from "./HDGILMRT.jsx";
|
|
@@ -18,9 +21,6 @@ import {
|
|
|
18
21
|
import {
|
|
19
22
|
ark
|
|
20
23
|
} from "./UFYZ7HLU.jsx";
|
|
21
|
-
import {
|
|
22
|
-
useLocaleContext
|
|
23
|
-
} from "./JFOWNFC7.jsx";
|
|
24
24
|
import {
|
|
25
25
|
createContext
|
|
26
26
|
} from "./UZJJWJQM.jsx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useFieldContext } from './S3VN2YFH.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
4
3
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
4
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
5
5
|
import { runIfFn } from './DT73WLR4.js';
|
|
6
6
|
import { ark } from './EPLBB4QN.js';
|
|
7
7
|
import { createContext } from './THN5C4U6.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
3
2
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
3
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
4
4
|
import { ark } from './EPLBB4QN.js';
|
|
5
5
|
import { createContext } from './THN5C4U6.js';
|
|
6
6
|
import { __export } from './ESLJRKWD.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
3
2
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
3
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
4
4
|
import { runIfFn } from './DT73WLR4.js';
|
|
5
5
|
import { ark } from './EPLBB4QN.js';
|
|
6
6
|
import { createContext } from './THN5C4U6.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { collapsible_exports } from './
|
|
1
|
+
import { collapsible_exports } from './HBI6JRIQ.js';
|
|
2
2
|
import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './GUFIKGZ6.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
5
4
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
5
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
6
6
|
import { runIfFn } from './DT73WLR4.js';
|
|
7
7
|
import { ark } from './EPLBB4QN.js';
|
|
8
8
|
import { createContext } from './THN5C4U6.js';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { splitPresenceProps,
|
|
1
|
+
import { splitPresenceProps, PresenceProvider, usePresenceContext } from './JBLHW7IM.js';
|
|
2
|
+
import { usePresence } from './X22PRPOR.js';
|
|
2
3
|
import { useFieldContext } from './S3VN2YFH.js';
|
|
3
4
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
4
5
|
import { comboboxAnatomy } from './POIATK64.js';
|
|
5
6
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
6
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
7
7
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
8
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
8
9
|
import { runIfFn } from './DT73WLR4.js';
|
|
9
10
|
import { ark } from './EPLBB4QN.js';
|
|
10
11
|
import { createContext } from './THN5C4U6.js';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { usePresenceContext, splitPresenceProps,
|
|
1
|
+
import { usePresenceContext, splitPresenceProps, PresenceProvider } from './JBLHW7IM.js';
|
|
2
|
+
import { usePresence } from './X22PRPOR.js';
|
|
2
3
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
3
4
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
5
5
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
6
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
6
7
|
import { runIfFn } from './DT73WLR4.js';
|
|
7
8
|
import { ark } from './EPLBB4QN.js';
|
|
8
9
|
import { createContext } from './THN5C4U6.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useFieldContext } from './S3VN2YFH.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
4
3
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
4
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
5
5
|
import { runIfFn } from './DT73WLR4.js';
|
|
6
6
|
import { ark } from './EPLBB4QN.js';
|
|
7
7
|
import { createContext } from './THN5C4U6.js';
|
|
@@ -2,8 +2,8 @@ import { useFieldContext } from './S3VN2YFH.js';
|
|
|
2
2
|
import { useFieldsetContext } from './37BRFTCN.js';
|
|
3
3
|
import { checkboxAnatomy } from './G5RHOVDI.js';
|
|
4
4
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
5
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
6
5
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
6
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
7
7
|
import { runIfFn } from './DT73WLR4.js';
|
|
8
8
|
import { ark } from './EPLBB4QN.js';
|
|
9
9
|
import { createContext } from './THN5C4U6.js';
|
|
@@ -61,9 +61,11 @@ function useCheckboxGroup(props = {}) {
|
|
|
61
61
|
const toggleValue = (val) => {
|
|
62
62
|
isChecked(val) ? removeValue(val) : addValue(val);
|
|
63
63
|
};
|
|
64
|
+
const isAtMax = props.maxSelectedValues != null && value().length >= props.maxSelectedValues;
|
|
64
65
|
const addValue = (val) => {
|
|
65
66
|
if (!interactive()) return;
|
|
66
67
|
if (isChecked(val)) return;
|
|
68
|
+
if (isAtMax) return;
|
|
67
69
|
setValue(value().concat(val));
|
|
68
70
|
};
|
|
69
71
|
const removeValue = (val) => {
|
|
@@ -71,15 +73,16 @@ function useCheckboxGroup(props = {}) {
|
|
|
71
73
|
setValue(value().filter((v) => String(v) !== String(val)));
|
|
72
74
|
};
|
|
73
75
|
const getItemProps = (itemProps) => {
|
|
76
|
+
const checked = itemProps.value != null ? isChecked(itemProps.value) : void 0;
|
|
74
77
|
return {
|
|
75
|
-
checked
|
|
78
|
+
checked,
|
|
76
79
|
onCheckedChange() {
|
|
77
80
|
if (itemProps.value != null) {
|
|
78
81
|
toggleValue(itemProps.value);
|
|
79
82
|
}
|
|
80
83
|
},
|
|
81
84
|
name: props.name,
|
|
82
|
-
disabled: disabled(),
|
|
85
|
+
disabled: disabled() || isAtMax && !checked,
|
|
83
86
|
readOnly: props.readOnly,
|
|
84
87
|
invalid: invalid()
|
|
85
88
|
};
|
|
@@ -108,7 +111,7 @@ var [CheckboxGroupContextProvider, useCheckboxGroupContext] = createContext({
|
|
|
108
111
|
|
|
109
112
|
// src/components/checkbox/checkbox-group.tsx
|
|
110
113
|
var CheckboxGroup = (props) => {
|
|
111
|
-
const [checkboxGroupProps, localProps] = createSplitProps()(props, ["defaultValue", "value", "onValueChange", "disabled", "invalid", "readOnly", "name"]);
|
|
114
|
+
const [checkboxGroupProps, localProps] = createSplitProps()(props, ["defaultValue", "value", "onValueChange", "disabled", "invalid", "readOnly", "name", "maxSelectedValues"]);
|
|
112
115
|
const checkboxGroup = useCheckboxGroup(checkboxGroupProps);
|
|
113
116
|
return createComponent(CheckboxGroupContextProvider, {
|
|
114
117
|
value: checkboxGroup,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { splitPresenceProps,
|
|
1
|
+
import { splitPresenceProps, PresenceProvider, usePresenceContext } from './JBLHW7IM.js';
|
|
2
|
+
import { usePresence } from './X22PRPOR.js';
|
|
2
3
|
import { useFieldContext } from './S3VN2YFH.js';
|
|
3
4
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
4
5
|
import { colorPickerAnatomy } from './7ANKVUWM.js';
|
|
5
6
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
6
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
7
7
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
8
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
8
9
|
import { runIfFn } from './DT73WLR4.js';
|
|
9
10
|
import { ark } from './EPLBB4QN.js';
|
|
10
11
|
import { createContext } from './THN5C4U6.js';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { splitPresenceProps,
|
|
1
|
+
import { splitPresenceProps, PresenceProvider, usePresenceContext } from './JBLHW7IM.js';
|
|
2
|
+
import { usePresence } from './X22PRPOR.js';
|
|
2
3
|
import { useFieldContext } from './S3VN2YFH.js';
|
|
3
4
|
import { composeRefs } from './ROP6QZQ7.js';
|
|
4
5
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
5
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
6
6
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
7
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
7
8
|
import { runIfFn } from './DT73WLR4.js';
|
|
8
9
|
import { ark } from './EPLBB4QN.js';
|
|
9
10
|
import { createContext } from './THN5C4U6.js';
|
|
@@ -220,7 +221,7 @@ var useSelect = (props) => {
|
|
|
220
221
|
// src/components/select/select-root.tsx
|
|
221
222
|
var SelectRoot = (props) => {
|
|
222
223
|
const [presenceProps, selectProps] = splitPresenceProps(props);
|
|
223
|
-
const [useSelectProps, localProps] = createSplitProps()(selectProps, ["closeOnSelect", "collection", "composite", "defaultHighlightedValue", "defaultOpen", "defaultValue", "deselectable", "disabled", "form", "highlightedValue", "id", "ids", "invalid", "loopFocus", "multiple", "name", "onFocusOutside", "onHighlightChange", "onInteractOutside", "onOpenChange", "onPointerDownOutside", "onSelect", "onValueChange", "open", "positioning", "readOnly", "required", "scrollToIndexFn", "value"]);
|
|
224
|
+
const [useSelectProps, localProps] = createSplitProps()(selectProps, ["autoComplete", "closeOnSelect", "collection", "composite", "defaultHighlightedValue", "defaultOpen", "defaultValue", "deselectable", "disabled", "form", "highlightedValue", "id", "ids", "invalid", "loopFocus", "multiple", "name", "onFocusOutside", "onHighlightChange", "onInteractOutside", "onOpenChange", "onPointerDownOutside", "onSelect", "onValueChange", "open", "positioning", "readOnly", "required", "scrollToIndexFn", "value"]);
|
|
224
225
|
const select2 = useSelect(useSelectProps);
|
|
225
226
|
const presenceApi = usePresence(mergeProps(() => ({
|
|
226
227
|
present: select2().open
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
3
2
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
3
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
4
4
|
import { runIfFn } from './DT73WLR4.js';
|
|
5
5
|
import { ark } from './EPLBB4QN.js';
|
|
6
6
|
import { createContext } from './THN5C4U6.js';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSplitProps
|
|
3
3
|
} from "./6WEDGJKQ.jsx";
|
|
4
|
+
import {
|
|
5
|
+
useLocaleContext
|
|
6
|
+
} from "./HOPBYFHD.jsx";
|
|
4
7
|
import {
|
|
5
8
|
useEnvironmentContext
|
|
6
9
|
} from "./HDGILMRT.jsx";
|
|
@@ -10,9 +13,6 @@ import {
|
|
|
10
13
|
import {
|
|
11
14
|
ark
|
|
12
15
|
} from "./UFYZ7HLU.jsx";
|
|
13
|
-
import {
|
|
14
|
-
useLocaleContext
|
|
15
|
-
} from "./JFOWNFC7.jsx";
|
|
16
16
|
import {
|
|
17
17
|
createContext
|
|
18
18
|
} from "./UZJJWJQM.jsx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { listboxAnatomy } from './3I7TGCD3.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
4
3
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
4
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
5
5
|
import { runIfFn } from './DT73WLR4.js';
|
|
6
6
|
import { ark } from './EPLBB4QN.js';
|
|
7
7
|
import { createContext } from './THN5C4U6.js';
|
|
@@ -132,7 +132,7 @@ var ListboxItemText = (props) => {
|
|
|
132
132
|
var ListboxLabel = (props) => {
|
|
133
133
|
const listbox2 = useListboxContext();
|
|
134
134
|
const mergedProps = mergeProps(() => listbox2().getLabelProps(), props);
|
|
135
|
-
return createComponent(ark.
|
|
135
|
+
return createComponent(ark.span, mergedProps);
|
|
136
136
|
};
|
|
137
137
|
var useListbox = (props) => {
|
|
138
138
|
const id = createUniqueId();
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PresenceProvider,
|
|
3
3
|
splitPresenceProps,
|
|
4
|
-
usePresence,
|
|
5
4
|
usePresenceContext
|
|
6
|
-
} from "./
|
|
5
|
+
} from "./NEU4F4NG.jsx";
|
|
6
|
+
import {
|
|
7
|
+
usePresence
|
|
8
|
+
} from "./OEGORBLT.jsx";
|
|
7
9
|
import {
|
|
8
10
|
composeRefs
|
|
9
11
|
} from "./PT2CJE3O.jsx";
|
|
10
12
|
import {
|
|
11
13
|
createSplitProps
|
|
12
14
|
} from "./6WEDGJKQ.jsx";
|
|
15
|
+
import {
|
|
16
|
+
useLocaleContext
|
|
17
|
+
} from "./HOPBYFHD.jsx";
|
|
13
18
|
import {
|
|
14
19
|
useEnvironmentContext
|
|
15
20
|
} from "./HDGILMRT.jsx";
|
|
@@ -19,9 +24,6 @@ import {
|
|
|
19
24
|
import {
|
|
20
25
|
ark
|
|
21
26
|
} from "./UFYZ7HLU.jsx";
|
|
22
|
-
import {
|
|
23
|
-
useLocaleContext
|
|
24
|
-
} from "./JFOWNFC7.jsx";
|
|
25
27
|
import {
|
|
26
28
|
createContext
|
|
27
29
|
} from "./UZJJWJQM.jsx";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {
|
|
2
|
+
usePresence
|
|
3
|
+
} from "./OEGORBLT.jsx";
|
|
4
|
+
import {
|
|
5
|
+
composeRefs
|
|
6
|
+
} from "./PT2CJE3O.jsx";
|
|
7
|
+
import {
|
|
8
|
+
createSplitProps
|
|
9
|
+
} from "./6WEDGJKQ.jsx";
|
|
10
|
+
import {
|
|
11
|
+
ark
|
|
12
|
+
} from "./UFYZ7HLU.jsx";
|
|
13
|
+
import {
|
|
14
|
+
createContext
|
|
15
|
+
} from "./UZJJWJQM.jsx";
|
|
16
|
+
|
|
17
|
+
// src/components/presence/presence.tsx
|
|
18
|
+
import { mergeProps } from "@zag-js/solid";
|
|
19
|
+
import { Show } from "solid-js";
|
|
20
|
+
|
|
21
|
+
// src/components/presence/split-presence-props.ts
|
|
22
|
+
var splitPresenceProps = (props) => createSplitProps()(props, [
|
|
23
|
+
"immediate",
|
|
24
|
+
"lazyMount",
|
|
25
|
+
"onExitComplete",
|
|
26
|
+
"present",
|
|
27
|
+
"skipAnimationOnMount",
|
|
28
|
+
"unmountOnExit"
|
|
29
|
+
]);
|
|
30
|
+
|
|
31
|
+
// src/components/presence/presence.tsx
|
|
32
|
+
var Presence = (props) => {
|
|
33
|
+
const [presenceProps, localProps] = splitPresenceProps(props);
|
|
34
|
+
const api = usePresence(presenceProps);
|
|
35
|
+
const mergedProps = mergeProps(() => api().presenceProps, localProps);
|
|
36
|
+
return <Show when={!api().unmounted}>
|
|
37
|
+
<ark.div {...mergedProps} ref={composeRefs(api().ref, props.ref)} data-scope="presence" data-part="root" />
|
|
38
|
+
</Show>;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// src/components/presence/use-presence-context.ts
|
|
42
|
+
var [PresenceProvider, usePresenceContext] = createContext({
|
|
43
|
+
hookName: "usePresenceContext",
|
|
44
|
+
providerName: "<PresenceProvider />"
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
splitPresenceProps,
|
|
49
|
+
Presence,
|
|
50
|
+
PresenceProvider,
|
|
51
|
+
usePresenceContext
|
|
52
|
+
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSplitProps
|
|
3
3
|
} from "./6WEDGJKQ.jsx";
|
|
4
|
+
import {
|
|
5
|
+
useLocaleContext
|
|
6
|
+
} from "./HOPBYFHD.jsx";
|
|
4
7
|
import {
|
|
5
8
|
useEnvironmentContext
|
|
6
9
|
} from "./HDGILMRT.jsx";
|
|
@@ -10,9 +13,6 @@ import {
|
|
|
10
13
|
import {
|
|
11
14
|
ark
|
|
12
15
|
} from "./UFYZ7HLU.jsx";
|
|
13
|
-
import {
|
|
14
|
-
useLocaleContext
|
|
15
|
-
} from "./JFOWNFC7.jsx";
|
|
16
16
|
import {
|
|
17
17
|
createContext
|
|
18
18
|
} from "./UZJJWJQM.jsx";
|
|
@@ -60,7 +60,7 @@ import { mergeProps as mergeProps4 } from "@zag-js/solid";
|
|
|
60
60
|
var ProgressLabel = (props) => {
|
|
61
61
|
const api = useProgressContext();
|
|
62
62
|
const mergedProps = mergeProps4(() => api().getLabelProps(), props);
|
|
63
|
-
return <ark.
|
|
63
|
+
return <ark.span {...mergedProps} />;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
// src/components/progress/progress-range.tsx
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { usePresence } from './X22PRPOR.js';
|
|
2
|
+
import { composeRefs } from './ROP6QZQ7.js';
|
|
3
|
+
import { swapAnatomy, parts } from './ORFQCCEF.js';
|
|
4
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
5
|
+
import { ark } from './EPLBB4QN.js';
|
|
6
|
+
import { createContext } from './THN5C4U6.js';
|
|
7
|
+
import { __export } from './ESLJRKWD.js';
|
|
8
|
+
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
9
|
+
import { mergeProps } from '@zag-js/solid';
|
|
10
|
+
import { splitProps, Show, createMemo } from 'solid-js';
|
|
11
|
+
|
|
12
|
+
// src/components/swap/swap.ts
|
|
13
|
+
var swap_exports = {};
|
|
14
|
+
__export(swap_exports, {
|
|
15
|
+
Indicator: () => SwapIndicator,
|
|
16
|
+
Root: () => SwapRoot,
|
|
17
|
+
RootProvider: () => SwapRootProvider,
|
|
18
|
+
swapAnatomy: () => swapAnatomy
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// src/components/swap/use-swap-context.ts
|
|
22
|
+
var [SwapProvider, useSwapContext] = createContext({
|
|
23
|
+
hookName: "useSwapContext",
|
|
24
|
+
providerName: "<SwapProvider />"
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
// src/components/swap/swap-indicator.tsx
|
|
28
|
+
var SwapIndicator = (props) => {
|
|
29
|
+
const [localProps, restProps] = splitProps(props, ["type", "ref"]);
|
|
30
|
+
const swap = useSwapContext();
|
|
31
|
+
const presence = () => {
|
|
32
|
+
const p = localProps.type === "on" ? swap().onPresence : swap().offPresence;
|
|
33
|
+
return p();
|
|
34
|
+
};
|
|
35
|
+
const mergedProps = mergeProps(() => swap().getIndicatorProps({
|
|
36
|
+
type: localProps.type
|
|
37
|
+
}), restProps);
|
|
38
|
+
return createComponent(Show, {
|
|
39
|
+
get when() {
|
|
40
|
+
return !presence().unmounted;
|
|
41
|
+
},
|
|
42
|
+
get children() {
|
|
43
|
+
return createComponent(ark.span, mergeProps$1(mergedProps, {
|
|
44
|
+
ref(r$) {
|
|
45
|
+
var _ref$ = composeRefs(presence().ref, localProps.ref);
|
|
46
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
47
|
+
}
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
var useSwap = (props = {}) => {
|
|
53
|
+
const resolved = createMemo(() => runIfFn(props));
|
|
54
|
+
const onPresence = usePresence(
|
|
55
|
+
mergeProps(() => ({
|
|
56
|
+
present: resolved().swap ?? false,
|
|
57
|
+
lazyMount: resolved().lazyMount,
|
|
58
|
+
unmountOnExit: resolved().unmountOnExit,
|
|
59
|
+
skipAnimationOnMount: true
|
|
60
|
+
}))
|
|
61
|
+
);
|
|
62
|
+
const offPresence = usePresence(
|
|
63
|
+
mergeProps(() => ({
|
|
64
|
+
present: !(resolved().swap ?? false),
|
|
65
|
+
lazyMount: resolved().lazyMount,
|
|
66
|
+
unmountOnExit: resolved().unmountOnExit,
|
|
67
|
+
skipAnimationOnMount: true
|
|
68
|
+
}))
|
|
69
|
+
);
|
|
70
|
+
return createMemo(() => {
|
|
71
|
+
const swap = resolved().swap ?? false;
|
|
72
|
+
return {
|
|
73
|
+
swap,
|
|
74
|
+
onPresence,
|
|
75
|
+
offPresence,
|
|
76
|
+
getRootProps() {
|
|
77
|
+
return {
|
|
78
|
+
...parts.root.attrs,
|
|
79
|
+
"data-swap": swap ? "on" : "off",
|
|
80
|
+
style: { display: "inline-grid" }
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
getIndicatorProps({ type }) {
|
|
84
|
+
const presence = type === "on" ? onPresence() : offPresence();
|
|
85
|
+
return {
|
|
86
|
+
...parts.indicator.attrs,
|
|
87
|
+
...presence.presenceProps,
|
|
88
|
+
"data-type": type,
|
|
89
|
+
style: { "grid-area": "1 / 1", display: "inline-flex" }
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
// src/components/swap/swap-root.tsx
|
|
97
|
+
var SwapRoot = (props) => {
|
|
98
|
+
const [swapProps, localProps] = splitProps(props, ["swap", "lazyMount", "unmountOnExit"]);
|
|
99
|
+
const swap = useSwap(() => swapProps);
|
|
100
|
+
const mergedProps = mergeProps(() => swap().getRootProps(), localProps);
|
|
101
|
+
return createComponent(SwapProvider, {
|
|
102
|
+
value: swap,
|
|
103
|
+
get children() {
|
|
104
|
+
return createComponent(ark.span, mergedProps);
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
var SwapRootProvider = (props) => {
|
|
109
|
+
const [providerProps, localProps] = splitProps(props, ["value"]);
|
|
110
|
+
const mergedProps = mergeProps(() => providerProps.value().getRootProps(), localProps);
|
|
111
|
+
return createComponent(SwapProvider, {
|
|
112
|
+
get value() {
|
|
113
|
+
return providerProps.value;
|
|
114
|
+
},
|
|
115
|
+
get children() {
|
|
116
|
+
return createComponent(ark.span, mergedProps);
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export { SwapIndicator, SwapRoot, SwapRootProvider, swap_exports, useSwap, useSwapContext };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
|
-
import { useLocaleContext } from './RVOPDSQY.js';
|
|
3
2
|
import { useEnvironmentContext } from './3P5T77QU.js';
|
|
3
|
+
import { useLocaleContext } from './EM5SH6A3.js';
|
|
4
4
|
import { runIfFn } from './DT73WLR4.js';
|
|
5
5
|
import { ark } from './EPLBB4QN.js';
|
|
6
6
|
import { createContext } from './THN5C4U6.js';
|