@povio/ui 3.4.0-rc.24 → 3.4.0-rc.26
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/{Autocomplete-Ce3ygKxG.d.ts → Autocomplete-0tckACUz.d.ts} +1 -1
- package/dist/{BottomSheet-BWKej2PR.d.ts → BottomSheet-BZXBtOHF.d.ts} +1 -2
- package/dist/{BottomSheet-DNnVqMw9.js → BottomSheet-CEyxZ2Nd.js} +6 -50
- package/dist/BottomSheet.lazy-DT02808T.d.ts +5 -0
- package/dist/{Breadcrumbs-DentRJc_.js → Breadcrumbs-Cbl2-M7J.js} +2 -2
- package/dist/{Button-B8T7AjGP.js → Button-CtPMeT8f.js} +1 -1
- package/dist/{Calendar-B7OLjVV9.js → Calendar-Dc1UbbAq.js} +5 -5
- package/dist/{Checkbox-B7f8NgnO.js → Checkbox-Feyideqw.js} +1 -1
- package/dist/{DatePicker-p5zEtFfc.js → DatePicker-BdRp_rG7.js} +7 -7
- package/dist/{DatePickerInput-BLL4-Sqj.js → DatePickerInput-D3kmFpMZ.js} +16 -9
- package/dist/{DateRangePicker-CjOo8S9R.d.ts → DateRangePicker-CMWUdyh1.d.ts} +25 -12
- package/dist/{DateRangePicker-BELkyFZ3.js → DateRangePicker-XhfuEunT.js} +123 -32
- package/dist/{DateTimePicker-YxEZH7Kk.js → DateTimePicker-_PD3JGVy.js} +7 -7
- package/dist/{Dialog-DpLXaUXz.js → Dialog-CXVxCqvL.js} +1 -1
- package/dist/Drawer-XaAwht0J.js +98 -0
- package/dist/{FileUpload-uqaBcMUE.js → FileUpload-CNM9dv4D.js} +3 -3
- package/dist/{Form-BO5xLioQ.d.ts → Form-BX_x2VGS.d.ts} +1 -1
- package/dist/{InputItem-C_njDXaE.js → InputItem-DWuSzs16.js} +10 -10
- package/dist/{InputUpload-BEda9AO8.js → InputUpload-BQpUaRQl.js} +3 -3
- package/dist/{Inputs-6bq2_53x.d.ts → Inputs-B5F_klPo.d.ts} +1 -1
- package/dist/{Inputs-CTywD5sa.js → Inputs-D4duTr-F.js} +1 -1
- package/dist/{ListBox-BCW74bzR.js → ListBox-lSDt9Q4j.js} +1 -1
- package/dist/{Menu-DTiZS3t_.js → Menu-DDKo6fUO.js} +4 -4
- package/dist/{Menu-CVgRPAB3.d.ts → Menu-ucX0h-jq.d.ts} +1 -1
- package/dist/{MenuDesktop-CEftscnb.js → MenuDesktop-AnvU8TNb.js} +1 -1
- package/dist/{MenuItem-xJq_qdIf.d.ts → MenuItem--lQvt0VV.d.ts} +1 -1
- package/dist/{Modal-DdKOgTpG.js → Modal-BrOOpTQ4.js} +2 -2
- package/dist/{Modal-HBOqpsZ3.js → Modal-CAAJgOQb.js} +1 -1
- package/dist/{NumberRangeInput-vrceL7KX.js → NumberRangeInput-CBM_ycX_.js} +3 -3
- package/dist/{PaginationList-DwPkbMEh.js → PaginationList-B27QL6gG.js} +1 -1
- package/dist/{QuerySelect-CuZjxrle.d.ts → QuerySelect-tupQOlAT.d.ts} +2 -2
- package/dist/{RadioGroup-DopLBNzi.js → RadioGroup-DbMmwkLQ.js} +1 -1
- package/dist/{ResponsivePopover-C8IriWcI.d.ts → ResponsivePopover-B-Z9sFxq.d.ts} +2 -1
- package/dist/{Select-T4am7u5p.js → Select-BXhqcKAI.js} +3 -3
- package/dist/{Select-BQ9YJzFg.d.ts → Select-Do5qWHLj.d.ts} +1 -1
- package/dist/{SelectBase-Ds3nqzVg.d.ts → SelectBase-aSvWd7Cx.d.ts} +1 -1
- package/dist/{Slider-RhB5Rcwv.js → Slider-YdD68ygp.js} +1 -1
- package/dist/{SplitButton-Cv9ej6Or.d.ts → SplitButton-DxrWH3EX.d.ts} +1 -1
- package/dist/TableDnd-CuHxANWh.js +133 -0
- package/dist/{Tag-BspEXTbs.js → Tag-BAFkwLDe.js} +1 -1
- package/dist/{TextArea-Dqg717Gx.js → TextArea-B8TIZZ5i.js} +2 -2
- package/dist/{TextEditor-DXFlGnkW.js → TextEditor-Co_gbkPT.js} +6 -6
- package/dist/{TimePicker-lAn8yzYJ.js → TimePicker-dftQtlWT.js} +5 -5
- package/dist/Toast-BDoTQFr5.js +49 -0
- package/dist/{Toast-DDkev3SZ.d.ts → Toast-JL9yaI35.d.ts} +1 -2
- package/dist/ToastContainer-9OS5SK5K.d.ts +5 -0
- package/dist/ToastContainer-TRM91co1.js +23 -0
- package/dist/ToastRenderer-Dpax9sKV.js +40 -0
- package/dist/{Toggle-BZCEmMGO.js → Toggle-Bw15KIly.js} +1 -1
- package/dist/{TooltipWrapper-D8gfa-pC.js → TooltipWrapper-eCF5-eNP.js} +1 -1
- package/dist/{autocomplete-NiLahf70.d.ts → autocomplete-bNuG6_dG.d.ts} +2 -2
- package/dist/components/action-modal.js +3 -3
- package/dist/components/autocomplete.d.ts +1 -1
- package/dist/components/autocomplete.js +3 -3
- package/dist/components/bottom-sheet.d.ts +3 -2
- package/dist/components/bottom-sheet.js +108 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox-group.js +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.d.ts +2 -2
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/drawer.d.ts +5 -2
- package/dist/components/drawer.js +80 -87
- package/dist/components/file-upload-container.js +1 -1
- package/dist/components/file-upload.js +1 -1
- package/dist/components/icon-button.js +1 -1
- package/dist/components/inline-icon-button.js +1 -1
- package/dist/components/input-upload.js +1 -1
- package/dist/components/menu.d.ts +2 -2
- package/dist/components/menu.js +2 -2
- package/dist/components/modal.js +1 -1
- package/dist/components/number-input.js +4 -4
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/pagination-list.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/pill.js +1 -1
- package/dist/components/query-autocomplete.d.ts +2 -2
- package/dist/components/query-autocomplete.js +1 -1
- package/dist/components/query-select.d.ts +1 -1
- package/dist/components/query-select.js +2 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/responsive-popover.d.ts +1 -1
- package/dist/components/responsive-popover.js +3 -3
- package/dist/components/select.d.ts +2 -2
- package/dist/components/select.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/split-button.d.ts +1 -1
- package/dist/components/split-button.js +2 -2
- package/dist/components/tag.js +1 -1
- package/dist/components/text-area.js +1 -1
- package/dist/components/text-button.js +1 -1
- package/dist/components/text-input.js +4 -4
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.d.ts +3 -2
- package/dist/components/toast.js +3 -2
- package/dist/components/toggle-button.js +1 -1
- package/dist/components/toggle.js +1 -1
- package/dist/components/use-toast.d.ts +1 -1
- package/dist/components/use-toast.js +37 -64
- package/dist/config/confirmation.js +1 -1
- package/dist/config/ui-config.d.ts +3 -2
- package/dist/config/ui-config.js +1 -1
- package/dist/confirmation.context-2-6G831n.js +117 -0
- package/dist/confirmation.dialog-Cveu3s5D.js +16 -0
- package/dist/{date-range-picker-DaLQYShd.d.ts → date-range-picker-BYdeSyMU.d.ts} +1 -1
- package/dist/{datePickerValue.utils-BqdbvGFL.js → datePickerValue.utils-469FeRCl.js} +2 -2
- package/dist/{Toast-DycxJVq5.js → dist-B4xyoAhc.js} +1 -288
- package/dist/dom.utils-CeVnXH-T.js +49 -0
- package/dist/{dynamicInputs-BoAqswLw.d.ts → dynamicInputs-CecPNXsF.d.ts} +21 -21
- package/dist/{fieldAdapter-C_3uizcT.js → fieldAdapter-C1EWUhUl.js} +1 -1
- package/dist/index.d.ts +22 -20
- package/dist/index.js +31 -28
- package/dist/{logger-BPhG2izn.js → logger-WPC6ostp.js} +1 -1
- package/dist/{query-autocomplete-B3qBhSDk.d.ts → query-autocomplete-CHtcx_ND.d.ts} +2 -2
- package/dist/{query-select-BNNjF0Bc.d.ts → query-select-CD0iFQqR.d.ts} +2 -2
- package/dist/{queryAutocomplete.types-CpLHyvqN.d.ts → queryAutocomplete.types-DaTDttX5.d.ts} +2 -2
- package/dist/rhf/autocomplete.d.ts +2 -2
- package/dist/rhf/autocomplete.js +1 -1
- package/dist/rhf/checkbox-group.js +1 -1
- package/dist/rhf/checkbox.js +2 -2
- package/dist/rhf/date-picker.js +2 -2
- package/dist/rhf/date-range-picker.d.ts +3 -3
- package/dist/rhf/date-range-picker.js +2 -2
- package/dist/rhf/date-time-picker.js +2 -2
- package/dist/rhf/file-upload.js +2 -2
- package/dist/rhf/input-upload.js +2 -2
- package/dist/rhf/inputs.d.ts +1 -1
- package/dist/rhf/number-input.js +1 -1
- package/dist/rhf/number-range-input.js +2 -2
- package/dist/rhf/password-input.js +1 -1
- package/dist/rhf/query-autocomplete.d.ts +1 -1
- package/dist/rhf/query-autocomplete.js +1 -1
- package/dist/rhf/query-select.d.ts +1 -1
- package/dist/rhf/query-select.js +1 -1
- package/dist/rhf/radio-group.js +2 -2
- package/dist/rhf/segment.js +1 -1
- package/dist/rhf/select.d.ts +2 -2
- package/dist/rhf/select.js +2 -2
- package/dist/rhf/slider.js +2 -2
- package/dist/rhf/text-area.js +2 -2
- package/dist/rhf/text-editor.js +2 -2
- package/dist/rhf/text-input.js +1 -1
- package/dist/rhf/time-picker.js +2 -2
- package/dist/rhf/toggle.js +2 -2
- package/dist/{rhf-Ca72CryM.js → rhf-oYBHBWj-.js} +1 -1
- package/dist/rhf.d.ts +22 -20
- package/dist/rhf.js +31 -28
- package/dist/{rolldown-runtime-DUp30N8C.js → rolldown-runtime-B-lAHAz2.js} +10 -1
- package/dist/{select-CYuTeweS.d.ts → select-D80pWSgi.d.ts} +2 -2
- package/dist/{staticDateTimeSegments-C8AOKnEO.js → staticDateTimeSegments-BOFCK9Ub.js} +5 -5
- package/dist/{staticSelect.utils-CYV-eubF.js → staticSelect.utils-Bh1OVHuT.js} +9 -9
- package/dist/tanstack/autocomplete.d.ts +1 -1
- package/dist/tanstack/checkbox.js +1 -1
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.d.ts +2 -2
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.d.ts +1 -1
- package/dist/tanstack/form.js +1 -1
- package/dist/tanstack/input-upload.js +1 -1
- package/dist/tanstack/inputs.d.ts +2 -2
- package/dist/tanstack/inputs.js +1 -1
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/query-select.d.ts +1 -1
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/select.d.ts +1 -1
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/table.d.ts +1 -1
- package/dist/tanstack/table.js +1 -1
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/text-editor.js +1 -1
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle.js +1 -1
- package/dist/tanstack.d.ts +20 -18
- package/dist/tanstack.js +40 -37
- package/dist/text-editor.js +1 -1
- package/dist/toast.cva-BGJCi2qq.js +211 -0
- package/dist/toast.runtime--mTw_-fT.js +18 -0
- package/dist/toastActivation.store-BELtcr76.js +16 -0
- package/dist/{uiConfig.context-DyCOXtaZ.d.ts → uiConfig.context-B27wINPD.d.ts} +6 -3
- package/dist/{uiConfig.context-SBtRegKv.js → uiConfig.context-B_wBkrQZ.js} +2 -1
- package/dist/{useBreakpoint-D0s71F97.js → useBreakpoint-YuMYUdpG.js} +1 -1
- package/dist/{useFieldAccessibility-Bdt6GY7h.js → useFieldAccessibility-BsEP3ts2.js} +1 -1
- package/dist/{useFilter-BQRb0JpC.js → useFilter-DjR64hmy.js} +1 -1
- package/dist/{useFormAutosave-CyuAM0Mh.js → useFormAutosave-DtYELduH.js} +2 -2
- package/dist/{useStaticInputHandoff-pnEcfX_d.js → useStaticInputHandoff-ClwANfo-.js} +2 -2
- package/dist/{useTableColumnConfig-BZ4H6gha.js → useTableColumnConfig-CR0gk7hI.js} +55 -73
- package/dist/{useTableNav-BoQOVqZF.d.ts → useTableNav-CFHbvYvu.d.ts} +1 -1
- package/dist/{useToast-gQ9gzrbt.d.ts → useToast-B55ZUvwy.d.ts} +1 -1
- package/dist/utils/logger.js +1 -1
- package/package.json +1 -1
- package/dist/confirmation.context-C1-ZF9CW.js +0 -80
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as Key } from "./types-BSiv-Igp.js";
|
|
2
2
|
import { n as FieldValues } from "./form.binding-DWlFTecs.js";
|
|
3
|
-
import { i as GroupedSelectProps, n as DefaultInitialSelectItem, r as GroupedSelectControlProps, t as SelectBaseProps } from "./SelectBase-
|
|
3
|
+
import { i as GroupedSelectProps, n as DefaultInitialSelectItem, r as GroupedSelectControlProps, t as SelectBaseProps } from "./SelectBase-aSvWd7Cx.js";
|
|
4
4
|
import { s as OmitDiscriminatedUnion } from "./common-UBFya8WY.js";
|
|
5
5
|
import { ReactElement } from "react";
|
|
6
6
|
//#region src/components/inputs/Selection/Autocomplete/Autocomplete.d.ts
|
|
@@ -29,6 +29,5 @@ interface BottomSheetBaseProps {
|
|
|
29
29
|
interface BottomSheetProps extends BottomSheetBaseProps {
|
|
30
30
|
trigger?: ReactNode;
|
|
31
31
|
}
|
|
32
|
-
declare const BottomSheet: ({ isOpen, portalContainerRef, onOpenChange, trigger, children, ...rest }: BottomSheetProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
32
|
//#endregion
|
|
34
|
-
export { BottomSheetProps as
|
|
33
|
+
export { BottomSheetProps as t };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-B_wBkrQZ.js";
|
|
2
2
|
import { t as X } from "./x-BYOEO0gW.js";
|
|
3
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
|
-
import { n as $de32f1b87079253c$export$3ddf2d174ce01153, t as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "./Dialog-
|
|
4
|
+
import { n as $de32f1b87079253c$export$3ddf2d174ce01153, t as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "./Dialog-CXVxCqvL.js";
|
|
5
5
|
import { f as $9daab02d461809db$export$683480f191c0e3ea } from "./OverlayArrow-Bz_8bYjT.js";
|
|
6
|
-
import { n as $f3f84453ead64de5$export$8948f78d83984c69, r as $5df64b3807dc15ee$export$d699905dd57c73ca, t as $f3f84453ead64de5$export$2b77a92f1a5ad772 } from "./Modal-
|
|
6
|
+
import { n as $f3f84453ead64de5$export$8948f78d83984c69, r as $5df64b3807dc15ee$export$d699905dd57c73ca, t as $f3f84453ead64de5$export$2b77a92f1a5ad772 } from "./Modal-CAAJgOQb.js";
|
|
7
7
|
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-oSE-CM83.js";
|
|
8
8
|
import { t as Typography } from "./Typography-AcUd9df8.js";
|
|
9
9
|
import "./i18n-C2TBJvnh.js";
|
|
10
|
+
import { n as useStateAndRef, t as DomUtils } from "./dom.utils-CeVnXH-T.js";
|
|
10
11
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
11
12
|
import { c } from "react/compiler-runtime";
|
|
12
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { AnimatePresence, animate, motion, useDragControls, useMotionValue } from "motion/react";
|
|
14
14
|
import { useTranslation } from "react-i18next";
|
|
15
|
+
import { AnimatePresence, animate, motion, useDragControls, useMotionValue } from "motion/react";
|
|
15
16
|
//#region src/components/overlays/BottomSheet/BottomSheetHeader.tsx
|
|
16
17
|
const BottomSheetHeader = (t0) => {
|
|
17
18
|
const $ = c(17);
|
|
@@ -81,51 +82,6 @@ function _temp($) {
|
|
|
81
82
|
return $.ui.closeAlt;
|
|
82
83
|
}
|
|
83
84
|
//#endregion
|
|
84
|
-
//#region src/hooks/useStateAndRef.ts
|
|
85
|
-
const useStateAndRef = (initialState) => {
|
|
86
|
-
const $ = c(3);
|
|
87
|
-
const [state, setState] = useState(initialState);
|
|
88
|
-
const ref = useRef(state);
|
|
89
|
-
let t0;
|
|
90
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
91
|
-
t0 = (value) => {
|
|
92
|
-
ref.current = ObjectUtils.isFunction(value) ? value(ref.current) : value;
|
|
93
|
-
setState(ref.current);
|
|
94
|
-
};
|
|
95
|
-
$[0] = t0;
|
|
96
|
-
} else t0 = $[0];
|
|
97
|
-
const updateValue = t0;
|
|
98
|
-
let t1;
|
|
99
|
-
if ($[1] !== state) {
|
|
100
|
-
t1 = [
|
|
101
|
-
state,
|
|
102
|
-
ref,
|
|
103
|
-
updateValue
|
|
104
|
-
];
|
|
105
|
-
$[1] = state;
|
|
106
|
-
$[2] = t1;
|
|
107
|
-
} else t1 = $[2];
|
|
108
|
-
return t1;
|
|
109
|
-
};
|
|
110
|
-
//#endregion
|
|
111
|
-
//#region src/utils/dom.utils.ts
|
|
112
|
-
let DomUtils;
|
|
113
|
-
(function(_DomUtils) {
|
|
114
|
-
const KEYBOARD_INPUTS = /* @__PURE__ */ new Set([
|
|
115
|
-
"button",
|
|
116
|
-
"submit",
|
|
117
|
-
"checkbox",
|
|
118
|
-
"file",
|
|
119
|
-
"image"
|
|
120
|
-
]);
|
|
121
|
-
_DomUtils.isKeyboardInput = (elem) => {
|
|
122
|
-
return elem.tagName === "INPUT" && !KEYBOARD_INPUTS.has(elem.type) || elem.tagName === "TEXTAREA" || elem.hasAttribute("contenteditable");
|
|
123
|
-
};
|
|
124
|
-
_DomUtils.isKeyboardEvent = (event) => {
|
|
125
|
-
return event.nativeEvent instanceof KeyboardEvent;
|
|
126
|
-
};
|
|
127
|
-
})(DomUtils || (DomUtils = {}));
|
|
128
|
-
//#endregion
|
|
129
85
|
//#region src/components/overlays/BottomSheet/BottomSheet.tsx
|
|
130
86
|
const MotionModal = motion.create($f3f84453ead64de5$export$2b77a92f1a5ad772);
|
|
131
87
|
const MotionModalOverlay = motion.create($f3f84453ead64de5$export$8948f78d83984c69);
|
|
@@ -445,4 +401,4 @@ const BottomSheet = (t0) => {
|
|
|
445
401
|
return t3;
|
|
446
402
|
};
|
|
447
403
|
//#endregion
|
|
448
|
-
export {
|
|
404
|
+
export { BottomSheet };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { t as BottomSheetProps } from "./BottomSheet-BZXBtOHF.js";
|
|
2
|
+
//#region src/components/overlays/BottomSheet/BottomSheet.lazy.d.ts
|
|
3
|
+
declare const BottomSheet: ({ isOpen, onOpenChange, trigger, ...props }: BottomSheetProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { BottomSheet as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as MenuDesktop } from "./MenuDesktop-
|
|
1
|
+
import { t as MenuDesktop } from "./MenuDesktop-AnvU8TNb.js";
|
|
2
2
|
import { t as ChevronRight } from "./chevron-right-C_M98bh3.js";
|
|
3
3
|
import { t as Tooltip } from "./Tooltip-CVBOnHy-.js";
|
|
4
4
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
5
5
|
import { d as $64fa3d84918910a7$export$df3a06d6289f983e, g as $3ef42575df84b30b$export$9d1611c77c2fe928, h as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, o as $64fa3d84918910a7$export$29f1550f4b0d4415, p as $64fa3d84918910a7$export$fabf2dc03a41866e, s as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./import-CuNJ25EP.js";
|
|
6
|
-
import { _ as $e1995378a142960e$export$18af5c7a9e9b3664, h as $7135fc7d473fd974$export$4feb769f8ddf26c5, v as $e1995378a142960e$export$bf788dd355e3a401, x as $23b9f4fcf0fe224b$export$d68d59712b04d9d1, y as $e1995378a142960e$export$fb8073518f34e6ec } from "./Dialog-
|
|
6
|
+
import { _ as $e1995378a142960e$export$18af5c7a9e9b3664, h as $7135fc7d473fd974$export$4feb769f8ddf26c5, v as $e1995378a142960e$export$bf788dd355e3a401, x as $23b9f4fcf0fe224b$export$d68d59712b04d9d1, y as $e1995378a142960e$export$fb8073518f34e6ec } from "./Dialog-CXVxCqvL.js";
|
|
7
7
|
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-oSE-CM83.js";
|
|
8
8
|
import { n as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-D9TmTRN_.js";
|
|
9
9
|
import { n as $4f118338184dc1d9$export$e2509388b49734e7, t as $4f118338184dc1d9$export$a6c7ac8248d6e38a } from "./Link-iPOFlrxY.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-B_wBkrQZ.js";
|
|
2
2
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
3
|
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-oSE-CM83.js";
|
|
4
4
|
import { t as $4f118338184dc1d9$export$a6c7ac8248d6e38a } from "./Link-iPOFlrxY.js";
|
|
@@ -2,22 +2,22 @@ import { t as ChevronDown } from "./chevron-down-Ciz9yP9R.js";
|
|
|
2
2
|
import { t as ChevronLeft } from "./chevron-left-VO8YZrXZ.js";
|
|
3
3
|
import { t as ChevronRight } from "./chevron-right-C_M98bh3.js";
|
|
4
4
|
import { t as ChevronUp } from "./chevron-up-CHRnDSA3.js";
|
|
5
|
-
import { i as CalendarGrid } from "./DatePickerInput-
|
|
5
|
+
import { i as CalendarGrid } from "./DatePickerInput-D3kmFpMZ.js";
|
|
6
6
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
7
7
|
import { b as $bdb11010cef70236$export$f680877a34711e37, g as $3ef42575df84b30b$export$9d1611c77c2fe928, h as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./import-CuNJ25EP.js";
|
|
8
8
|
import { n as $d4ee10de306f2510$export$4282f70798064fe0, t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-HV79Qf_F.js";
|
|
9
9
|
import { o as $9bf71ea28793e738$export$c5251b9e124bf29 } from "./SelectionIndicator-BiAHPBz2.js";
|
|
10
10
|
import { t as $ef06256079686ba0$export$f8aeda7b10753fa1 } from "./useDescription-D8raJPFb.js";
|
|
11
|
-
import { C as $dfb4eba373ed9493$exports, S as $3dfb0f96be0d6a08$export$4a931266a3838b86, v as $16f0b7bb276bc17e$export$300019f83c56d282, w as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./staticDateTimeSegments-
|
|
12
|
-
import { i as $eed445e0843c11d0$export$a11e76429ed99b4, t as $eed445e0843c11d0$export$41f133550aa26f48 } from "./ListBox-
|
|
11
|
+
import { C as $dfb4eba373ed9493$exports, S as $3dfb0f96be0d6a08$export$4a931266a3838b86, v as $16f0b7bb276bc17e$export$300019f83c56d282, w as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./staticDateTimeSegments-BOFCK9Ub.js";
|
|
12
|
+
import { i as $eed445e0843c11d0$export$a11e76429ed99b4, t as $eed445e0843c11d0$export$41f133550aa26f48 } from "./ListBox-lSDt9Q4j.js";
|
|
13
13
|
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-oSE-CM83.js";
|
|
14
14
|
import { n as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-D9TmTRN_.js";
|
|
15
15
|
import { n as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidationState-Bpry7Uk5.js";
|
|
16
16
|
import { n as $84b7d8702d4ff4a8$export$40258cc1d95ff477 } from "./ToggleButton-DYVFkuEk.js";
|
|
17
17
|
import { t as Typography } from "./Typography-AcUd9df8.js";
|
|
18
18
|
import { PillButton } from "./components/pill-button.js";
|
|
19
|
-
import { t as useBreakpoint } from "./useBreakpoint-
|
|
20
|
-
import { n as TimePickerForm } from "./datePickerValue.utils-
|
|
19
|
+
import { t as useBreakpoint } from "./useBreakpoint-YuMYUdpG.js";
|
|
20
|
+
import { n as TimePickerForm } from "./datePickerValue.utils-469FeRCl.js";
|
|
21
21
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
22
22
|
import { c } from "react/compiler-runtime";
|
|
23
23
|
import { CalendarDateTime, Time, today } from "@internationalized/date";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-B_wBkrQZ.js";
|
|
2
2
|
import { c as checkboxIndicatorClass, l as checkboxTypography, n as checkboxContentClassName, t as CheckboxCheckmark } from "./CheckboxCheckmark-C7Oq15ms.js";
|
|
3
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
4
|
import { n as $4e85f108e88277b8$export$b085522c77523c51 } from "./RSPContexts-DHQi1l7F.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-B_wBkrQZ.js";
|
|
2
2
|
import { t as FormField } from "./FormField-ChDNTHr4.js";
|
|
3
|
-
import { n as renderDatePickerTodayIcon, r as datePickerInputContentRowDefinition, t as DatePickerInput } from "./DatePickerInput-
|
|
3
|
+
import { n as renderDatePickerTodayIcon, r as datePickerInputContentRowDefinition, t as DatePickerInput } from "./DatePickerInput-D3kmFpMZ.js";
|
|
4
4
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
5
5
|
import { _ as $5dc95899b306f630$export$c9058316764c140e } from "./import-CuNJ25EP.js";
|
|
6
6
|
import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-HV79Qf_F.js";
|
|
7
|
-
import { d as useCalendarState, i as getStaticDateTimeFocusTarget, o as DateTimeDialogFooter, p as useDatePickerState, s as DateTimeDialog, t as getStaticCalendarDateSegments } from "./staticDateTimeSegments-
|
|
8
|
-
import { r as $6057a3d2a53a12fd$export$42df105a73306d51, t as Calendar } from "./Calendar-
|
|
7
|
+
import { d as useCalendarState, i as getStaticDateTimeFocusTarget, o as DateTimeDialogFooter, p as useDatePickerState, s as DateTimeDialog, t as getStaticCalendarDateSegments } from "./staticDateTimeSegments-BOFCK9Ub.js";
|
|
8
|
+
import { r as $6057a3d2a53a12fd$export$42df105a73306d51, t as Calendar } from "./Calendar-Dc1UbbAq.js";
|
|
9
9
|
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
10
10
|
import { t as FieldController } from "./form.binding-DyZ4fH8l.js";
|
|
11
|
-
import { t as TooltipWrapper } from "./TooltipWrapper-
|
|
12
|
-
import { n as InputFrame, t as useStaticInputHandoff } from "./useStaticInputHandoff-
|
|
13
|
-
import { t as normalizeDatePickerValue } from "./datePickerValue.utils-
|
|
11
|
+
import { t as TooltipWrapper } from "./TooltipWrapper-eCF5-eNP.js";
|
|
12
|
+
import { n as InputFrame, t as useStaticInputHandoff } from "./useStaticInputHandoff-ClwANfo-.js";
|
|
13
|
+
import { t as normalizeDatePickerValue } from "./datePickerValue.utils-469FeRCl.js";
|
|
14
14
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
15
15
|
import { memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
16
16
|
import { createCalendar, getLocalTimeZone, toCalendarDate, today } from "@internationalized/date";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as createLucideIcon } from "./createLucideIcon-CskCrR9z.js";
|
|
2
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
2
|
+
import { t as UIConfig } from "./uiConfig.context-B_wBkrQZ.js";
|
|
3
3
|
import { r as FormFieldLabel } from "./FormField-ChDNTHr4.js";
|
|
4
4
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
5
5
|
import { g as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./import-CuNJ25EP.js";
|
|
6
6
|
import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-HV79Qf_F.js";
|
|
7
|
-
import { b as $16f0b7bb276bc17e$export$5591b0b878c1a989, c as useFirefoxDateSegmentSelectionGuard, f as useDateFieldState, l as DateSegmentItem } from "./staticDateTimeSegments-
|
|
7
|
+
import { b as $16f0b7bb276bc17e$export$5591b0b878c1a989, c as useFirefoxDateSegmentSelectionGuard, f as useDateFieldState, l as DateSegmentItem } from "./staticDateTimeSegments-BOFCK9Ub.js";
|
|
8
8
|
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-oSE-CM83.js";
|
|
9
9
|
import { t as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-Cd0lBvKO.js";
|
|
10
10
|
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
11
11
|
import { t as Typography } from "./Typography-AcUd9df8.js";
|
|
12
12
|
import { IconButton } from "./components/icon-button.js";
|
|
13
13
|
import { InlineIconButton } from "./components/inline-icon-button.js";
|
|
14
|
-
import { r as InputClear } from "./TooltipWrapper-
|
|
14
|
+
import { r as InputClear } from "./TooltipWrapper-eCF5-eNP.js";
|
|
15
15
|
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-KYGD4Bdz.js";
|
|
16
16
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
17
17
|
import { t as DateUtils } from "./date.utils-B8_QF9y6.js";
|
|
@@ -187,7 +187,7 @@ const WEEK_INDICES = [
|
|
|
187
187
|
5
|
|
188
188
|
];
|
|
189
189
|
const NO_CALENDAR_OFFSET = {};
|
|
190
|
-
const CalendarGrid = ({ state, onApply, onDoubleClickApply, shouldApplyOnDateSelection, shouldCloseOnSelect, offset = NO_CALENDAR_OFFSET, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation, className, calendarSide, ...props }) => {
|
|
190
|
+
const CalendarGrid = ({ state, onApply, onDoubleClickApply, shouldApplyOnDateSelection, shouldCloseOnSelect, offset = NO_CALENDAR_OFFSET, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation, className, calendarSide, isSelectionDisabled, ...props }) => {
|
|
191
191
|
const { gridProps, headerProps, weekDays } = useCalendarGrid({
|
|
192
192
|
...props,
|
|
193
193
|
weekdayStyle: "short"
|
|
@@ -198,6 +198,8 @@ const CalendarGrid = ({ state, onApply, onDoubleClickApply, shouldApplyOnDateSel
|
|
|
198
198
|
};
|
|
199
199
|
return /* @__PURE__ */ jsx("div", {
|
|
200
200
|
className: clsx("h-72 w-full px-3 py-1 md:w-80", className),
|
|
201
|
+
inert: isSelectionDisabled || void 0,
|
|
202
|
+
"aria-disabled": isSelectionDisabled || void 0,
|
|
201
203
|
children: /* @__PURE__ */ jsxs("table", {
|
|
202
204
|
...gridProps,
|
|
203
205
|
cellPadding: "0",
|
|
@@ -419,7 +421,7 @@ const renderDatePickerTodayIcon = (todayIcon, options) => {
|
|
|
419
421
|
};
|
|
420
422
|
//#endregion
|
|
421
423
|
//#region src/components/inputs/DateTime/shared/DatePickerInput.tsx
|
|
422
|
-
const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, fieldValue, endFieldValue, isValueControlled, hasValue, buttonProps, isDisabled, isInvalid, disableDropdown, variant, size, isDateTime, shouldShrinkInput, isClearable, isClearableIfDisabled, headerProps, todayIcon, todayIconButtonSize = "none", todayIconButtonComponent, todayIconPlacement = "content", isDirty, isRequired, disableManualEntry, autoFixYear = false, placeholder, className, onOpenDropdown, dateGranularity = "day", timeZone: timeZoneProp, isTimeOptional = false, format, onClear: onClearProp, ...props }) => {
|
|
424
|
+
const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, fieldValue, endFieldValue, isValueControlled, hasValue, buttonProps, isDisabled, isInvalid, disableDropdown, variant, size, isDateTime, shouldShrinkInput, isClearable, isClearableIfDisabled, headerProps, todayIcon, todayIconButtonSize = "none", todayIconButtonComponent, todayIconPlacement = "content", isDirty, isRequired, disableManualEntry, autoFixYear = false, placeholder, displayValue, className, onOpenDropdown, dateGranularity = "day", timeZone: timeZoneProp, isTimeOptional = false, format, onClear: onClearProp, ...props }) => {
|
|
423
425
|
const uiConfig = UIConfig.useConfig();
|
|
424
426
|
const timeZone = timeZoneProp ?? uiConfig.dateInput.timeZone;
|
|
425
427
|
let effectiveTimeZone = getLocalTimeZone();
|
|
@@ -474,6 +476,7 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
474
476
|
setCanClear(canClearInput);
|
|
475
477
|
}, []);
|
|
476
478
|
const showClear = (!isDisabled || isClearableIfDisabled === true) && (canClear || hasValue || normalizedFieldProps.value != null || normalizedEndFieldProps?.value != null);
|
|
479
|
+
const hasDisplayedValue = !!hasValue || normalizedFieldProps.value != null;
|
|
477
480
|
const isTodayIconDisabled = isDisabled || buttonProps.isDisabled;
|
|
478
481
|
const onToday = () => {
|
|
479
482
|
if (isTodayIconDisabled) return;
|
|
@@ -511,13 +514,13 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
511
514
|
"data-disabled": isDisabled || void 0,
|
|
512
515
|
"data-is-disabled": isDisabled || void 0,
|
|
513
516
|
"data-invalid": isInvalid || void 0,
|
|
514
|
-
"data-is-empty":
|
|
517
|
+
"data-is-empty": !hasDisplayedValue || void 0,
|
|
515
518
|
"data-focus-within": isFocused || void 0,
|
|
516
519
|
"data-focus-visible": isFocused && isFocusVisible || void 0,
|
|
517
|
-
"data-has-selection":
|
|
520
|
+
"data-has-selection": hasDisplayedValue || void 0,
|
|
518
521
|
"data-is-dirty": isDirty || void 0,
|
|
519
522
|
"data-is-required": isRequired || void 0,
|
|
520
|
-
"data-is-filled":
|
|
523
|
+
"data-is-filled": hasDisplayedValue || void 0,
|
|
521
524
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
522
525
|
className: clsx("flex items-center gap-input-gap-input-text-to-elements pr-0!", shouldShrinkInput ? "min-w-0 flex-1 w-full" : "w-full", inputSizeCva({
|
|
523
526
|
size,
|
|
@@ -538,7 +541,11 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
538
541
|
isDisabled
|
|
539
542
|
}),
|
|
540
543
|
!shouldRenderTodayIconWithFieldLabel && todayIconButton,
|
|
541
|
-
|
|
544
|
+
displayValue ? /* @__PURE__ */ jsx(Typography, {
|
|
545
|
+
size: "label-1",
|
|
546
|
+
className: "truncate",
|
|
547
|
+
children: displayValue
|
|
548
|
+
}) : disableManualEntry && placeholder && !fieldProps.value ? /* @__PURE__ */ jsx(Typography, {
|
|
542
549
|
size: "label-1",
|
|
543
550
|
className: "text-text-default-3",
|
|
544
551
|
children: placeholder
|
|
@@ -25,23 +25,36 @@ interface DateRangePickerBaseProps extends FormFieldProps, InputVariantProps, Om
|
|
|
25
25
|
inputClassName?: string;
|
|
26
26
|
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
27
27
|
allowPartialRange?: boolean;
|
|
28
|
+
mode?: "absolute" | "relative";
|
|
29
|
+
relativeValue?: string | null;
|
|
30
|
+
relativeOptions?: DateRangeRelativeOption[];
|
|
31
|
+
onRelativeChange?: (value: string | null) => void;
|
|
28
32
|
}
|
|
29
|
-
interface
|
|
30
|
-
value
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} | null) => void;
|
|
33
|
+
interface DateRangeRelativeOption {
|
|
34
|
+
/** Stable value emitted by DateRangePicker when mode is `relative`. */
|
|
35
|
+
value: string;
|
|
36
|
+
/** Human-readable value shown in the input and options list. */
|
|
37
|
+
label: string;
|
|
38
|
+
isDisabled?: boolean;
|
|
39
|
+
}
|
|
40
|
+
interface DateRangePickerSharedProps extends Omit<DateRangePickerBaseProps, "value" | "onChange" | "minValue" | "maxValue"> {
|
|
38
41
|
fullIso?: boolean;
|
|
39
42
|
minValue?: DateValue$1 | string;
|
|
40
43
|
maxValue?: DateValue$1 | string;
|
|
41
44
|
renderStaticInput?: boolean;
|
|
42
45
|
}
|
|
43
|
-
type
|
|
44
|
-
|
|
46
|
+
type DateRangePickerValue = {
|
|
47
|
+
start: string | null;
|
|
48
|
+
end: string | null;
|
|
49
|
+
} | string | null;
|
|
50
|
+
type DateRangePickerProps<TMode extends "absolute" | "relative" = "absolute"> = DateRangePickerSharedProps & {
|
|
51
|
+
/** `relative` returns and displays an option key instead of a concrete range. */
|
|
52
|
+
mode?: TMode;
|
|
53
|
+
value?: TMode extends "relative" ? string | null : Exclude<DateRangePickerValue, string>;
|
|
54
|
+
onChange?: (value: TMode extends "relative" ? string | null : Exclude<DateRangePickerValue, string>) => void;
|
|
55
|
+
};
|
|
56
|
+
type ControlledDateRangePickerProps<TFieldValues extends FieldValues, TMode extends "absolute" | "relative" = "absolute"> = ControlProps<DateRangePickerProps<TMode>, TFieldValues>;
|
|
57
|
+
declare const DateRangePickerComponent: <TFieldValues extends FieldValues, TMode extends "absolute" | "relative" = "absolute">({ fullIso, minValue, maxValue, renderStaticInput, ...props }: ControlledDateRangePickerProps<TFieldValues, TMode>) => import("react/jsx-runtime").JSX.Element;
|
|
45
58
|
declare const DateRangePicker: typeof DateRangePickerComponent;
|
|
46
59
|
//#endregion
|
|
47
|
-
export { DateRangePicker as n, DateRangePickerProps as r, ControlledDateRangePickerProps as t };
|
|
60
|
+
export { DateRangeRelativeOption as i, DateRangePicker as n, DateRangePickerProps as r, ControlledDateRangePickerProps as t };
|