@povio/ui 5.0.0-rc.3 → 5.0.0-rc.4
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/README.md +6 -2
- package/dist/{Breadcrumbs-CbKzAq1v.js → Breadcrumbs-FF8hMfXd.js} +1 -1
- package/dist/{Calendar-CVSQH-rC.js → Calendar-BTjajO6i.js} +6 -136
- package/dist/{Checkbox-BU0d702K.js → Checkbox-CV1ILXXO.js} +1 -1
- package/dist/{CheckboxCheckmark-usHsolNj.js → CheckboxCheckmark-CpC3wlMs.js} +1 -1
- package/dist/{ComponentGallery-DIFeJqGx.js → ComponentGallery-BWiPGUL8.js} +1343 -206
- package/dist/{DatePicker-D95gDPhg.js → DatePicker-DOLL7mkc.js} +12 -12
- package/dist/{DatePickerInput-CX6NYim4.js → DatePickerInput-BLBcySA2.js} +8 -7
- package/dist/{DateRangePicker-_uTQk_ae.js → DateRangePicker-BF-1CztH.js} +13 -185
- package/dist/{DateTimePicker-BB058Z34.js → DateTimePicker-Cj0qvJUz.js} +12 -12
- package/dist/{FileInput-C0-6bw4w.js → FileInput-Br5DQaGQ.js} +3 -2
- package/dist/{FileTrigger-CDXcQthK.js → FileTrigger-Cthk5_Wp.js} +1 -30
- package/dist/{FileUpload-DDpYMn8f.js → FileUpload--7ub3EZO.js} +3 -2
- package/dist/{FormField-U_-d4V_g.js → FormField-B99dLt8o.js} +1 -1
- package/dist/{FormFieldHeaderTooltip-DXbuu88v.js → FormFieldHeaderTooltip-BV2Ju4oB.js} +1 -1
- package/dist/{InlineTooltipWrapper-Bpmd--e7.js → InlineTooltipWrapper-BpApaGXV.js} +1 -1
- package/dist/{InputItem-D-KuiNSc.js → InputItem-CIxbTxZu.js} +10 -10
- package/dist/{Inputs-j3JmcLWR.js → Inputs-DJSKiaWY.js} +1 -1
- package/dist/NumberFormatter-CLDS_LRZ.js +265 -0
- package/dist/{NumberRangeInput-C-8U05wF.js → NumberRangeInput-B8-LHfg3.js} +6 -5
- package/dist/{RadioGroup-B7_pNwn9.js → RadioGroup-DOw3PRoX.js} +1 -1
- package/dist/{RichTextEditor-D9-B1Cze.js → RichTextEditor-D4yN7Wj7.js} +2 -2
- package/dist/{Select-CkujlTjm.js → Select-UR0ec2Ux.js} +2 -2
- package/dist/{Slider-BHPl0OPy.js → Slider-CzEmKYBF.js} +1 -1
- package/dist/{Table-BDNSuEWc.js → Table-piX1SWvN.js} +1 -1
- package/dist/{TextArea-DqHDiRGJ.js → TextArea-D8WkKsGn.js} +3 -3
- package/dist/{TimePicker-DQ6JCkGB.js → TimePicker-C4taAOFQ.js} +10 -9
- package/dist/{ToggleGroup-DX0VYXwP.js → ToggleGroup-DOk27fgI.js} +5 -66
- package/dist/{Tooltip-B9DKcYvr.js → Tooltip-CpG1nz7Y.js} +2 -2
- package/dist/{TooltipWrapper-DznDgVJB.js → TooltipWrapper-3jyN0Wss.js} +1 -1
- package/dist/components/autocomplete.js +2 -2
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/checkbox-group.js +3 -3
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload-container.js +1 -1
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.js +1 -1
- package/dist/components/icon-button.js +1 -1
- package/dist/components/input.js +4 -4
- package/dist/components/number-field.js +7 -6
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/pagination.js +32 -28
- package/dist/components/query-autocomplete.js +1 -1
- package/dist/components/query-select.js +2 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/text-area.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip-ellipsis.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/config/ui-configurator-theme.js +1 -1
- package/dist/config/ui-configurator.js +1081 -257
- package/dist/config/ui-router.js +1 -1
- package/dist/{datePickerValue.utils-CUzkWie8.js → datePickerValue.utils-DCgoSrP3.js} +5 -5
- package/dist/hooks/use-filters.js +1 -1
- package/dist/index.js +15 -15
- package/dist/numberStatic.utils-BX50PSee.js +421 -0
- package/dist/rhf/checkbox.js +1 -1
- package/dist/rhf/date-picker.js +1 -1
- package/dist/rhf/date-range-picker.js +1 -1
- package/dist/rhf/date-time-picker.js +1 -1
- package/dist/rhf/file-input.js +1 -1
- package/dist/rhf/file-upload.js +1 -1
- package/dist/rhf/number-range-input.js +1 -1
- package/dist/rhf/radio-group.js +1 -1
- package/dist/rhf/rich-text-editor.js +1 -1
- package/dist/rhf/select.js +1 -1
- package/dist/rhf/slider.js +1 -1
- package/dist/rhf/text-area.js +1 -1
- package/dist/rhf/time-picker.js +1 -1
- package/dist/rhf/toggle-group.js +1 -1
- package/dist/rhf.js +15 -15
- package/dist/rich-text-editor.js +1 -1
- package/dist/{router.context-B0jTMtE0.js → router.context-B4FvsTim.js} +2 -2
- package/dist/staticDateTimeSegments-DtU63_dw.js +1764 -0
- package/dist/{staticSelect.utils-BemUyaaA.js → staticSelect.utils-uHa8f_c6.js} +5 -144
- package/dist/styles/configurator.css +731 -218
- package/dist/{table.cva-BikE8qJH.js → table.cva-DlMT-zLD.js} +2 -3
- package/dist/tanstack/checkbox.js +1 -1
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-input.js +1 -1
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.js +1 -1
- package/dist/tanstack/inputs.js +1 -1
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/rich-text-editor.js +1 -1
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/table.js +2 -2
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle-group.js +1 -1
- package/dist/tanstack.js +27 -27
- package/dist/theme-model-DtYPxNvH.js +406 -0
- package/dist/upload-CXU83BJ4.js +30 -0
- package/dist/useControlledState-CzXkZCX8.js +30 -0
- package/dist/{useFieldAccessibility-B4MVL6fz.js → useFieldAccessibility-ScC6Mtd5.js} +2 -2
- package/dist/{useFilters-kkEUFKmQ.js → useFilters-XNH27Md2.js} +1 -1
- package/dist/{useFormAutosave-Mg-tdwMh.js → useFormAutosave-DfuP7drj.js} +1 -1
- package/dist/{useStaticInputHandoff-CvSBPUB3.js → useStaticInputHandoff-NeZVnci-.js} +3 -3
- package/dist/{useTableColumnConfig-gfVame8v.js → useTableColumnConfig-BTGZiluz.js} +3 -3
- package/package.json +1 -1
- package/src/configurator/README.md +3 -3
- package/dist/FocusScope-CO9oJ1sc.js +0 -343
- package/dist/chain-DIXr2VAT.js +0 -10
- package/dist/focusSafely-DCGrr2bb.js +0 -447
- package/dist/getScrollParent-kSR7EtoT.js +0 -47
- package/dist/numberStatic.utils-BMgRzyd3.js +0 -902
- package/dist/openLink-CQhMhfzO.js +0 -121
- package/dist/platform-BXNIIAfU.js +0 -42
- package/dist/staticDateTimeSegments-CsCE9Buo.js +0 -3604
- package/dist/theme-model-C-QMCksE.js +0 -136
- package/dist/useControlledState-DQxX6LMN.js +0 -189
- package/dist/useFocusable-Bd0UsrQ7.js +0 -63
- package/dist/useFormValidationState-D3z-gafz.js +0 -1341
- package/dist/useLayoutEffect-B2-1tbPJ.js +0 -83
- package/dist/useSyncRef-RGMv0rXK.js +0 -338
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
|
-
import { n as renderDatePickerTodayIcon, o as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, t as DatePickerInput } from "./DatePickerInput-
|
|
2
|
+
import { n as renderDatePickerTodayIcon, o as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, t as DatePickerInput } from "./DatePickerInput-BLBcySA2.js";
|
|
3
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
4
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
5
|
-
import { r as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./useControlledState-DQxX6LMN.js";
|
|
6
|
-
import { i as getStaticDateTimeFocusTarget, o as DateTimeDialogFooter, s as DateTimeDialog, t as getStaticCalendarDateSegments } from "./staticDateTimeSegments-CsCE9Buo.js";
|
|
7
|
-
import { i as $6902a2bb26917a07$export$42df105a73306d51, r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar-CVSQH-rC.js";
|
|
8
5
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
9
6
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
10
|
-
import { t as FormField } from "./FormField-
|
|
11
|
-
import { t as TooltipWrapper } from "./TooltipWrapper-
|
|
12
|
-
import { i as InputFrame, n as useStaticInputHandoff } from "./useStaticInputHandoff-
|
|
13
|
-
import { t as
|
|
7
|
+
import { t as FormField } from "./FormField-B99dLt8o.js";
|
|
8
|
+
import { t as TooltipWrapper } from "./TooltipWrapper-3jyN0Wss.js";
|
|
9
|
+
import { i as InputFrame, n as useStaticInputHandoff } from "./useStaticInputHandoff-NeZVnci-.js";
|
|
10
|
+
import { i as getStaticDateTimeFocusTarget, o as DateTimeDialogFooter, s as DateTimeDialog, t as getStaticCalendarDateSegments } from "./staticDateTimeSegments-DtU63_dw.js";
|
|
11
|
+
import { r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar-BTjajO6i.js";
|
|
12
|
+
import { t as normalizeDatePickerValue } from "./datePickerValue.utils-DCgoSrP3.js";
|
|
14
13
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
15
14
|
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-Cd7UUN61.js";
|
|
16
15
|
import { memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
17
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
17
|
import { createCalendar, getLocalTimeZone, toCalendarDate, today } from "@internationalized/date";
|
|
18
|
+
import { useDatePicker, useLocale } from "react-aria";
|
|
19
19
|
//#region src/components/inputs/DateTime/DatePicker/DatePicker.tsx
|
|
20
20
|
const DatePickerBase = (props) => {
|
|
21
21
|
const ui = UIConfig.useConfig();
|
|
@@ -99,17 +99,17 @@ const DatePickerBase = (props) => {
|
|
|
99
99
|
},
|
|
100
100
|
shouldCloseOnSelect: false
|
|
101
101
|
});
|
|
102
|
-
const { groupProps, labelProps, fieldProps, buttonProps, dialogProps } =
|
|
102
|
+
const { groupProps, labelProps, fieldProps, buttonProps, dialogProps } = useDatePicker({
|
|
103
103
|
...rest,
|
|
104
104
|
label,
|
|
105
105
|
shouldForceLeadingZeros
|
|
106
106
|
}, state, datePickerRef);
|
|
107
|
-
const { calendarProps } =
|
|
107
|
+
const { calendarProps } = useDatePicker({
|
|
108
108
|
...rest,
|
|
109
109
|
label,
|
|
110
110
|
shouldForceLeadingZeros
|
|
111
111
|
}, dialogState, datePickerRef);
|
|
112
|
-
const { locale } =
|
|
112
|
+
const { locale } = useLocale();
|
|
113
113
|
const calendarState = $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f({
|
|
114
114
|
...calendarProps,
|
|
115
115
|
locale,
|
|
@@ -270,7 +270,7 @@ const DatePickerBase = (props) => {
|
|
|
270
270
|
const DatePickerInner = ({ fullIso = true, granularity = "day", minValue, maxValue, renderStaticInput, isFormControlDisabled, ...props }) => {
|
|
271
271
|
const ui = UIConfig.useConfig();
|
|
272
272
|
const datePickerInputContentRowCva = UIOverrides.useCva("datePickerInput.contentRowCva", datePickerInputContentRowDefinition);
|
|
273
|
-
const { locale } =
|
|
273
|
+
const { locale } = useLocale();
|
|
274
274
|
const shouldForceLeadingZeros = props.shouldForceLeadingZeros ?? ui.dateInput.shouldForceLeadingZeros;
|
|
275
275
|
const [renderInput, setRenderInput] = useState(!(renderStaticInput ?? ui.renderStaticInput));
|
|
276
276
|
const inputRef = useRef(null);
|
|
@@ -3,17 +3,17 @@ import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
|
3
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
4
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
5
5
|
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-D6KlWSFL.js";
|
|
6
|
-
import { r as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7, t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-DQxX6LMN.js";
|
|
7
|
-
import { b as $7541913c0284d84b$export$5591b0b878c1a989, c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, l as DateSegmentItem } from "./staticDateTimeSegments-CsCE9Buo.js";
|
|
8
6
|
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
9
7
|
import { IconButton } from "./components/icon-button.js";
|
|
10
8
|
import { InlineIconButton } from "./components/inline-icon-button.js";
|
|
11
9
|
import { n as $a8ea2faf2ebe4d2f$re_export$mergeProps } from "./import-BE0r63d8.js";
|
|
12
|
-
import { r as FormFieldLabel } from "./FormField-
|
|
10
|
+
import { r as FormFieldLabel } from "./FormField-B99dLt8o.js";
|
|
13
11
|
import "./i18n-CX2EjhJI.js";
|
|
14
12
|
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-DJA8ovm_.js";
|
|
15
|
-
import { n as InputClear } from "./TooltipWrapper-
|
|
16
|
-
import { r as $32daac5f69beb98a$re_export$useFocusRing } from "./useStaticInputHandoff-
|
|
13
|
+
import { n as InputClear } from "./TooltipWrapper-3jyN0Wss.js";
|
|
14
|
+
import { r as $32daac5f69beb98a$re_export$useFocusRing } from "./useStaticInputHandoff-NeZVnci-.js";
|
|
15
|
+
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CzXkZCX8.js";
|
|
16
|
+
import { c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, l as DateSegmentItem } from "./staticDateTimeSegments-DtU63_dw.js";
|
|
17
17
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
18
18
|
import { t as DateUtils } from "./date.utils-B8_QF9y6.js";
|
|
19
19
|
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-Cd7UUN61.js";
|
|
@@ -26,6 +26,7 @@ import "react-aria/useCollator";
|
|
|
26
26
|
import "react-aria/useLocalizedStringFormatter";
|
|
27
27
|
import "react-aria/useFilter";
|
|
28
28
|
import "react-aria/useListFormatter";
|
|
29
|
+
import { useDateField, useLocale as useLocale$1 } from "react-aria";
|
|
29
30
|
import { useFocusVisible, useFocusWithin, useHover } from "@react-aria/interactions";
|
|
30
31
|
import { useTranslation } from "react-i18next";
|
|
31
32
|
import { useCalendarCell, useCalendarGrid } from "@react-aria/calendar";
|
|
@@ -621,7 +622,7 @@ const CalendarGrid = ({ state, showWeekNumbers = false, onApply, onDoubleClickAp
|
|
|
621
622
|
//#region src/components/inputs/DateTime/shared/DateField.tsx
|
|
622
623
|
const omitNullValue = ({ value: _value, ...props }) => props;
|
|
623
624
|
const DateField = ({ ref, onClearChange, hidePlaceholder, isDisabled, disableManualEntry, dateGranularity = "day", isTimeOptional = false, format, timeZone, segmentGroup, shouldAutoFixYear = false, preserveNullValue = false, ...props }) => {
|
|
624
|
-
const { locale } = $
|
|
625
|
+
const { locale } = useLocale$1();
|
|
625
626
|
const previousValueRef = useRef(props.value);
|
|
626
627
|
const dateFieldProps = props.value == null && !preserveNullValue ? omitNullValue(props) : props;
|
|
627
628
|
const state = $8e7461aabf74661f$export$60e84778edff6d26({
|
|
@@ -632,7 +633,7 @@ const DateField = ({ ref, onClearChange, hidePlaceholder, isDisabled, disableMan
|
|
|
632
633
|
createCalendar
|
|
633
634
|
});
|
|
634
635
|
const dataFieldRef = useRef(null);
|
|
635
|
-
const { fieldProps } =
|
|
636
|
+
const { fieldProps } = useDateField({
|
|
636
637
|
...dateFieldProps,
|
|
637
638
|
isDisabled,
|
|
638
639
|
isReadOnly: disableManualEntry
|
|
@@ -3,204 +3,32 @@ import { t as ChevronDown } from "./chevron-down-B4Pr8bD3.js";
|
|
|
3
3
|
import { t as ChevronLeft } from "./chevron-left-Dgo_b9wJ.js";
|
|
4
4
|
import { t as ChevronRight } from "./chevron-right-3nKJR5Bb.js";
|
|
5
5
|
import { n as ChevronsLeft, t as ChevronsRight } from "./chevrons-right-DJPPn2fD.js";
|
|
6
|
-
import { a as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6, c as $dd602d3c757202f2$export$a1d3911297b952d7, i as CalendarGrid, l as $dd602d3c757202f2$export$eac50920cf2fd59a, n as renderDatePickerTodayIcon, o as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, r as $1697a7ad3db7b79f$re_export$useDateFormatter, s as $dd602d3c757202f2$export$4f5203c0d889109e, t as DatePickerInput, u as $dd602d3c757202f2$export$f4a51ff076cc9a09 } from "./DatePickerInput-
|
|
6
|
+
import { a as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6, c as $dd602d3c757202f2$export$a1d3911297b952d7, i as CalendarGrid, l as $dd602d3c757202f2$export$eac50920cf2fd59a, n as renderDatePickerTodayIcon, o as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, r as $1697a7ad3db7b79f$re_export$useDateFormatter, s as $dd602d3c757202f2$export$4f5203c0d889109e, t as DatePickerInput, u as $dd602d3c757202f2$export$f4a51ff076cc9a09 } from "./DatePickerInput-BLBcySA2.js";
|
|
7
7
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
8
8
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
9
9
|
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-D6KlWSFL.js";
|
|
10
10
|
import { t as Switch } from "./Switch-CqnGEdeD.js";
|
|
11
|
-
import { n as $23f2114a1b82827e$export$4282f70798064fe0 } from "./useLayoutEffect-B2-1tbPJ.js";
|
|
12
|
-
import { a as $390e54f620492c70$export$f680877a34711e37, r as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./useSyncRef-RGMv0rXK.js";
|
|
13
|
-
import { c as $191c9b6d48a0a4e2$export$294aa081a6c6f55d, m as $cf2482eff2eeeec2$export$f12b703ca79dfbb1, r as $fd2148440a13ec26$export$fc1a364ae1f3ff10, s as $2c9edc598a03d523$export$420e68273165f4ec } from "./useFormValidationState-D3z-gafz.js";
|
|
14
|
-
import { n as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f, r as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7, t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-DQxX6LMN.js";
|
|
15
|
-
import { C as $0014db39426443c5$exports, S as $6a440d0e2d99dd46$export$4a931266a3838b86, f as $8b141f2f71e88f85$export$2440da353cedad43, h as $8b141f2f71e88f85$export$c5221a78ef73c5e9, i as getStaticDateTimeFocusTarget, m as $8b141f2f71e88f85$export$80ff8fc0ae339c13, o as DateTimeDialogFooter, p as $8b141f2f71e88f85$export$7e319ea407e63bc0, r as getStaticDateRangeSegments, s as DateTimeDialog, v as $7541913c0284d84b$export$300019f83c56d282, w as $121970af65029459$export$f8aeda7b10753fa1, x as $7541913c0284d84b$export$7b3062cd49e80452 } from "./staticDateTimeSegments-CsCE9Buo.js";
|
|
16
|
-
import { n as $535772f9d2c1f38d$export$c5251b9e124bf29 } from "./FocusScope-CO9oJ1sc.js";
|
|
17
11
|
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
18
12
|
import { InlineIconButton } from "./components/inline-icon-button.js";
|
|
19
13
|
import { BadgeButton } from "./components/badge-button.js";
|
|
20
14
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
21
15
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
22
|
-
import { t as FormField } from "./FormField-
|
|
16
|
+
import { t as FormField } from "./FormField-B99dLt8o.js";
|
|
23
17
|
import "./i18n-CX2EjhJI.js";
|
|
24
|
-
import { t as TooltipWrapper } from "./TooltipWrapper-
|
|
25
|
-
import { i as InputFrame, n as useStaticInputHandoff } from "./useStaticInputHandoff-
|
|
18
|
+
import { t as TooltipWrapper } from "./TooltipWrapper-3jyN0Wss.js";
|
|
19
|
+
import { i as InputFrame, n as useStaticInputHandoff } from "./useStaticInputHandoff-NeZVnci-.js";
|
|
20
|
+
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CzXkZCX8.js";
|
|
21
|
+
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10 } from "./NumberFormatter-CLDS_LRZ.js";
|
|
22
|
+
import { f as $8b141f2f71e88f85$export$2440da353cedad43, h as $8b141f2f71e88f85$export$c5221a78ef73c5e9, i as getStaticDateTimeFocusTarget, m as $8b141f2f71e88f85$export$80ff8fc0ae339c13, o as DateTimeDialogFooter, p as $8b141f2f71e88f85$export$7e319ea407e63bc0, r as getStaticDateRangeSegments, s as DateTimeDialog } from "./staticDateTimeSegments-DtU63_dw.js";
|
|
26
23
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
27
24
|
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-Cd7UUN61.js";
|
|
28
|
-
import { t as Select } from "./Select-
|
|
25
|
+
import { t as Select } from "./Select-UR0ec2Ux.js";
|
|
29
26
|
import { memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
30
27
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
31
28
|
import { DateFormatter, GregorianCalendar, createCalendar, endOfMonth, endOfWeek, endOfYear, getLocalTimeZone, maxDate, minDate, startOfMonth, startOfWeek, startOfYear, toCalendar, toCalendarDate, toCalendarDateTime, today } from "@internationalized/date";
|
|
32
|
-
import {
|
|
29
|
+
import { useDateRangePicker, useLocale } from "react-aria";
|
|
33
30
|
import { useTranslation } from "react-i18next";
|
|
34
31
|
import { useRangeCalendar } from "@react-aria/calendar";
|
|
35
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/datepicker/useDateRangePicker.mjs
|
|
36
|
-
function $parcel$interopDefault(a) {
|
|
37
|
-
return a && a.__esModule ? a.default : a;
|
|
38
|
-
}
|
|
39
|
-
function $cccdba1b2bb08448$export$12fd5f0e9f4bb192(props, state, ref) {
|
|
40
|
-
let stringFormatter = $cf2482eff2eeeec2$export$f12b703ca79dfbb1($parcel$interopDefault($0014db39426443c5$exports), "@react-aria/datepicker");
|
|
41
|
-
let { isInvalid, validationErrors, validationDetails } = state.displayValidation;
|
|
42
|
-
let { labelProps, fieldProps, descriptionProps, errorMessageProps } = $191c9b6d48a0a4e2$export$294aa081a6c6f55d({
|
|
43
|
-
...props,
|
|
44
|
-
labelElementType: "span",
|
|
45
|
-
isInvalid,
|
|
46
|
-
errorMessage: props.errorMessage || validationErrors
|
|
47
|
-
});
|
|
48
|
-
let labelledBy = fieldProps["aria-labelledby"] || fieldProps.id;
|
|
49
|
-
let { locale } = $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7();
|
|
50
|
-
let range = state.formatValue(locale, { month: "long" });
|
|
51
|
-
let description = range ? stringFormatter.format("selectedRangeDescription", {
|
|
52
|
-
startDate: range.start,
|
|
53
|
-
endDate: range.end
|
|
54
|
-
}) : "";
|
|
55
|
-
let descProps = $121970af65029459$export$f8aeda7b10753fa1(description);
|
|
56
|
-
let startFieldProps = {
|
|
57
|
-
"aria-label": stringFormatter.format("startDate"),
|
|
58
|
-
"aria-labelledby": labelledBy
|
|
59
|
-
};
|
|
60
|
-
let endFieldProps = {
|
|
61
|
-
"aria-label": stringFormatter.format("endDate"),
|
|
62
|
-
"aria-labelledby": labelledBy
|
|
63
|
-
};
|
|
64
|
-
let buttonId = $390e54f620492c70$export$f680877a34711e37();
|
|
65
|
-
let dialogId = $390e54f620492c70$export$f680877a34711e37();
|
|
66
|
-
let groupProps = $6a440d0e2d99dd46$export$4a931266a3838b86(state, ref);
|
|
67
|
-
let ariaDescribedBy = [descProps["aria-describedby"], fieldProps["aria-describedby"]].filter(Boolean).join(" ") || void 0;
|
|
68
|
-
let focusManager = useMemo(() => $535772f9d2c1f38d$export$c5251b9e124bf29(ref, { accept: (element) => element.id !== buttonId }), [ref, buttonId]);
|
|
69
|
-
let commonFieldProps = {
|
|
70
|
-
[$7541913c0284d84b$export$7b3062cd49e80452]: focusManager,
|
|
71
|
-
[$7541913c0284d84b$export$300019f83c56d282]: "presentation",
|
|
72
|
-
"aria-describedby": ariaDescribedBy,
|
|
73
|
-
placeholderValue: props.placeholderValue,
|
|
74
|
-
hideTimeZone: props.hideTimeZone,
|
|
75
|
-
hourCycle: props.hourCycle,
|
|
76
|
-
granularity: props.granularity,
|
|
77
|
-
shouldForceLeadingZeros: props.shouldForceLeadingZeros,
|
|
78
|
-
isDisabled: props.isDisabled,
|
|
79
|
-
isReadOnly: props.isReadOnly,
|
|
80
|
-
isRequired: props.isRequired,
|
|
81
|
-
validationBehavior: props.validationBehavior
|
|
82
|
-
};
|
|
83
|
-
let domProps = $8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props);
|
|
84
|
-
let isFocused = useRef(false);
|
|
85
|
-
let { focusWithinProps } = $2c9edc598a03d523$export$420e68273165f4ec({
|
|
86
|
-
...props,
|
|
87
|
-
isDisabled: state.isOpen,
|
|
88
|
-
onBlurWithin: (e) => {
|
|
89
|
-
let dialog = document.getElementById(dialogId);
|
|
90
|
-
if (!$23f2114a1b82827e$export$4282f70798064fe0(dialog, e.relatedTarget)) {
|
|
91
|
-
isFocused.current = false;
|
|
92
|
-
props.onBlur?.(e);
|
|
93
|
-
props.onFocusChange?.(false);
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
onFocusWithin: (e) => {
|
|
97
|
-
if (!isFocused.current) {
|
|
98
|
-
isFocused.current = true;
|
|
99
|
-
props.onFocus?.(e);
|
|
100
|
-
props.onFocusChange?.(true);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
let startFieldValidation = useRef(DEFAULT_VALIDATION_RESULT);
|
|
105
|
-
let endFieldValidation = useRef(DEFAULT_VALIDATION_RESULT);
|
|
106
|
-
return {
|
|
107
|
-
groupProps: $bbaa08b3cd72f041$export$9d1611c77c2fe928(domProps, groupProps, fieldProps, descProps, focusWithinProps, {
|
|
108
|
-
role: "group",
|
|
109
|
-
"aria-disabled": props.isDisabled || null,
|
|
110
|
-
"aria-describedby": ariaDescribedBy,
|
|
111
|
-
onKeyDown(e) {
|
|
112
|
-
if (state.isOpen) return;
|
|
113
|
-
if (props.onKeyDown) props.onKeyDown(e);
|
|
114
|
-
},
|
|
115
|
-
onKeyUp(e) {
|
|
116
|
-
if (state.isOpen) return;
|
|
117
|
-
if (props.onKeyUp) props.onKeyUp(e);
|
|
118
|
-
}
|
|
119
|
-
}),
|
|
120
|
-
labelProps: {
|
|
121
|
-
...labelProps,
|
|
122
|
-
onClick: () => {
|
|
123
|
-
focusManager.focusFirst();
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
buttonProps: {
|
|
127
|
-
...descProps,
|
|
128
|
-
id: buttonId,
|
|
129
|
-
"aria-haspopup": "dialog",
|
|
130
|
-
"aria-label": stringFormatter.format("calendar"),
|
|
131
|
-
"aria-labelledby": `${buttonId} ${labelledBy}`,
|
|
132
|
-
"aria-describedby": ariaDescribedBy,
|
|
133
|
-
"aria-expanded": state.isOpen,
|
|
134
|
-
isDisabled: props.isDisabled || props.isReadOnly,
|
|
135
|
-
onPress: () => state.setOpen(true)
|
|
136
|
-
},
|
|
137
|
-
dialogProps: {
|
|
138
|
-
id: dialogId,
|
|
139
|
-
"aria-labelledby": `${buttonId} ${labelledBy}`
|
|
140
|
-
},
|
|
141
|
-
startFieldProps: {
|
|
142
|
-
...startFieldProps,
|
|
143
|
-
...commonFieldProps,
|
|
144
|
-
value: state.value?.start ?? null,
|
|
145
|
-
defaultValue: state.defaultValue?.start,
|
|
146
|
-
onChange: (start) => state.setDateTime("start", start),
|
|
147
|
-
autoFocus: props.autoFocus,
|
|
148
|
-
name: props.startName,
|
|
149
|
-
form: props.form,
|
|
150
|
-
[privateValidationStateProp]: {
|
|
151
|
-
realtimeValidation: state.realtimeValidation,
|
|
152
|
-
displayValidation: state.displayValidation,
|
|
153
|
-
updateValidation(e) {
|
|
154
|
-
startFieldValidation.current = e;
|
|
155
|
-
state.updateValidation(mergeValidation(e, endFieldValidation.current));
|
|
156
|
-
},
|
|
157
|
-
resetValidation: state.resetValidation,
|
|
158
|
-
commitValidation: state.commitValidation
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
endFieldProps: {
|
|
162
|
-
...endFieldProps,
|
|
163
|
-
...commonFieldProps,
|
|
164
|
-
value: state.value?.end ?? null,
|
|
165
|
-
defaultValue: state.defaultValue?.end,
|
|
166
|
-
onChange: (end) => state.setDateTime("end", end),
|
|
167
|
-
name: props.endName,
|
|
168
|
-
form: props.form,
|
|
169
|
-
[privateValidationStateProp]: {
|
|
170
|
-
realtimeValidation: state.realtimeValidation,
|
|
171
|
-
displayValidation: state.displayValidation,
|
|
172
|
-
updateValidation(e) {
|
|
173
|
-
endFieldValidation.current = e;
|
|
174
|
-
state.updateValidation(mergeValidation(startFieldValidation.current, e));
|
|
175
|
-
},
|
|
176
|
-
resetValidation: state.resetValidation,
|
|
177
|
-
commitValidation: state.commitValidation
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
descriptionProps,
|
|
181
|
-
errorMessageProps,
|
|
182
|
-
calendarProps: {
|
|
183
|
-
autoFocus: true,
|
|
184
|
-
value: state.dateRange?.start && state.dateRange.end ? state.dateRange : null,
|
|
185
|
-
onChange: state.setDateRange,
|
|
186
|
-
minValue: props.minValue,
|
|
187
|
-
maxValue: props.maxValue,
|
|
188
|
-
isDisabled: props.isDisabled,
|
|
189
|
-
isReadOnly: props.isReadOnly,
|
|
190
|
-
isDateUnavailable: props.isDateUnavailable,
|
|
191
|
-
allowsNonContiguousRanges: props.allowsNonContiguousRanges,
|
|
192
|
-
defaultFocusedValue: state.dateRange ? void 0 : props.placeholderValue,
|
|
193
|
-
isInvalid: state.isInvalid,
|
|
194
|
-
errorMessage: typeof props.errorMessage === "function" ? props.errorMessage(state.displayValidation) : props.errorMessage || state.displayValidation.validationErrors.join(" "),
|
|
195
|
-
firstDayOfWeek: props.firstDayOfWeek,
|
|
196
|
-
pageBehavior: props.pageBehavior
|
|
197
|
-
},
|
|
198
|
-
isInvalid,
|
|
199
|
-
validationErrors,
|
|
200
|
-
validationDetails
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
//#endregion
|
|
204
32
|
//#region ../../node_modules/.bun/react-stately@3.50.0+83d5fd7b249dbeef/node_modules/react-stately/dist/private/calendar/useRangeCalendarState.mjs
|
|
205
33
|
function $a0a87fb6fcfb22ec$export$9a987164d97ecc90(props) {
|
|
206
34
|
let { value: valueProp, defaultValue, onChange, createCalendar, locale, visibleDuration = { months: 1 }, minValue, maxValue, ...calendarProps } = props;
|
|
@@ -930,14 +758,14 @@ const DateRangePickerBase = (props) => {
|
|
|
930
758
|
},
|
|
931
759
|
shouldCloseOnSelect: false
|
|
932
760
|
});
|
|
933
|
-
const { groupProps, labelProps, startFieldProps, endFieldProps, buttonProps, dialogProps } =
|
|
761
|
+
const { groupProps, labelProps, startFieldProps, endFieldProps, buttonProps, dialogProps } = useDateRangePicker({
|
|
934
762
|
...rest,
|
|
935
763
|
label,
|
|
936
764
|
shouldForceLeadingZeros,
|
|
937
765
|
minValue,
|
|
938
766
|
maxValue
|
|
939
767
|
}, state, dateRangePickerRef);
|
|
940
|
-
const { calendarProps } =
|
|
768
|
+
const { calendarProps } = useDateRangePicker({
|
|
941
769
|
...rest,
|
|
942
770
|
label,
|
|
943
771
|
shouldForceLeadingZeros,
|
|
@@ -955,7 +783,7 @@ const DateRangePickerBase = (props) => {
|
|
|
955
783
|
const newValue = partialRange.start || partialRange.end ? partialRange : null;
|
|
956
784
|
onChange?.(newValue);
|
|
957
785
|
};
|
|
958
|
-
const { locale } =
|
|
786
|
+
const { locale } = useLocale();
|
|
959
787
|
useImperativeHandle(ref, () => ({
|
|
960
788
|
clear: () => {
|
|
961
789
|
datePickerInputRef.current?.clear();
|
|
@@ -1613,7 +1441,7 @@ const DateRangePickerInner = ({ fullIso = true, minValue, maxValue, renderStatic
|
|
|
1613
1441
|
const ui = UIConfig.useConfig();
|
|
1614
1442
|
const { t } = useTranslation();
|
|
1615
1443
|
const datePickerInputContentRowCva = UIOverrides.useCva("datePickerInput.contentRowCva", datePickerInputContentRowDefinition);
|
|
1616
|
-
const { locale } =
|
|
1444
|
+
const { locale } = useLocale();
|
|
1617
1445
|
const shouldForceLeadingZeros = props.shouldForceLeadingZeros ?? ui.dateInput.shouldForceLeadingZeros;
|
|
1618
1446
|
const allowPartialRange = props.allowPartialRange ?? ui.dateInput.allowPartialRange;
|
|
1619
1447
|
const [renderInput, setRenderInput] = useState(!(renderStaticInput ?? ui.renderStaticInput));
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
|
-
import { n as renderDatePickerTodayIcon, o as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, t as DatePickerInput } from "./DatePickerInput-
|
|
2
|
+
import { n as renderDatePickerTodayIcon, o as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, t as DatePickerInput } from "./DatePickerInput-BLBcySA2.js";
|
|
3
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
4
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
5
|
-
import { r as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./useControlledState-DQxX6LMN.js";
|
|
6
|
-
import { i as getStaticDateTimeFocusTarget, n as getStaticCalendarDateTimeSegments, o as DateTimeDialogFooter, s as DateTimeDialog } from "./staticDateTimeSegments-CsCE9Buo.js";
|
|
7
|
-
import { i as $6902a2bb26917a07$export$42df105a73306d51, r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar-CVSQH-rC.js";
|
|
8
5
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
9
6
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
10
|
-
import { t as FormField } from "./FormField-
|
|
11
|
-
import { t as TooltipWrapper } from "./TooltipWrapper-
|
|
12
|
-
import { i as InputFrame, n as useStaticInputHandoff } from "./useStaticInputHandoff-
|
|
13
|
-
import {
|
|
7
|
+
import { t as FormField } from "./FormField-B99dLt8o.js";
|
|
8
|
+
import { t as TooltipWrapper } from "./TooltipWrapper-3jyN0Wss.js";
|
|
9
|
+
import { i as InputFrame, n as useStaticInputHandoff } from "./useStaticInputHandoff-NeZVnci-.js";
|
|
10
|
+
import { i as getStaticDateTimeFocusTarget, n as getStaticCalendarDateTimeSegments, o as DateTimeDialogFooter, s as DateTimeDialog } from "./staticDateTimeSegments-DtU63_dw.js";
|
|
11
|
+
import { r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar-BTjajO6i.js";
|
|
12
|
+
import { t as normalizeDatePickerValue } from "./datePickerValue.utils-DCgoSrP3.js";
|
|
14
13
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
15
14
|
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-Cd7UUN61.js";
|
|
16
15
|
import { memo, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
17
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
17
|
import { Time, createCalendar, getLocalTimeZone, toCalendarDate, toCalendarDateTime, today } from "@internationalized/date";
|
|
18
|
+
import { useDatePicker, useLocale } from "react-aria";
|
|
19
19
|
//#region src/components/inputs/DateTime/DateTimePicker/DateTimePicker.tsx
|
|
20
20
|
const DateTimePickerBase = (props) => {
|
|
21
21
|
const ui = UIConfig.useConfig();
|
|
@@ -89,19 +89,19 @@ const DateTimePickerBase = (props) => {
|
|
|
89
89
|
granularity: "minute",
|
|
90
90
|
hideTimeZone: true
|
|
91
91
|
});
|
|
92
|
-
const { groupProps, labelProps, fieldProps, buttonProps, dialogProps } =
|
|
92
|
+
const { groupProps, labelProps, fieldProps, buttonProps, dialogProps } = useDatePicker({
|
|
93
93
|
...rest,
|
|
94
94
|
label,
|
|
95
95
|
granularity: "minute",
|
|
96
96
|
hideTimeZone: true,
|
|
97
97
|
shouldForceLeadingZeros
|
|
98
98
|
}, state, datePickerRef);
|
|
99
|
-
const { calendarProps } =
|
|
99
|
+
const { calendarProps } = useDatePicker({
|
|
100
100
|
...rest,
|
|
101
101
|
label,
|
|
102
102
|
shouldForceLeadingZeros
|
|
103
103
|
}, dialogState, datePickerRef);
|
|
104
|
-
const { locale } =
|
|
104
|
+
const { locale } = useLocale();
|
|
105
105
|
const calendarState = $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f({
|
|
106
106
|
...calendarProps,
|
|
107
107
|
locale,
|
|
@@ -253,7 +253,7 @@ const DateTimePickerBase = (props) => {
|
|
|
253
253
|
const DateTimePickerInner = ({ fullIso: _fullIso = true, renderStaticInput, isFormControlDisabled, ...props }) => {
|
|
254
254
|
const ui = UIConfig.useConfig();
|
|
255
255
|
const datePickerInputContentRowCva = UIOverrides.useCva("datePickerInput.contentRowCva", datePickerInputContentRowDefinition);
|
|
256
|
-
const { locale } =
|
|
256
|
+
const { locale } = useLocale();
|
|
257
257
|
const shouldForceLeadingZeros = props.shouldForceLeadingZeros ?? ui.dateInput.shouldForceLeadingZeros;
|
|
258
258
|
const [renderInput, setRenderInput] = useState(!(renderStaticInput ?? ui.renderStaticInput));
|
|
259
259
|
const inputRef = useRef(null);
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
|
-
import {
|
|
2
|
+
import { t as Upload } from "./upload-CXU83BJ4.js";
|
|
3
3
|
import { t as X } from "./x-B6vfz8Ps.js";
|
|
4
4
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
5
5
|
import { r as cva, t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
6
|
+
import { n as $070c0dd15dc89b58$export$3c6489d84dc98b6, t as $b325d7bd7e74496a$export$6fb4a10d2c950550 } from "./FileTrigger-Cthk5_Wp.js";
|
|
6
7
|
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
7
8
|
import { t as Button } from "./Button-C5rv4Cr2.js";
|
|
8
9
|
import { InlineIconButton } from "./components/inline-icon-button.js";
|
|
9
10
|
import { TextButton } from "./components/text-button.js";
|
|
10
11
|
import { i as $a8ea2faf2ebe4d2f$re_export$useLabels, r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
11
12
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
12
|
-
import { t as FormField } from "./FormField-
|
|
13
|
+
import { t as FormField } from "./FormField-B99dLt8o.js";
|
|
13
14
|
import "./i18n-CX2EjhJI.js";
|
|
14
15
|
import { a as inputSizeDefinition } from "./input.cva-DJA8ovm_.js";
|
|
15
16
|
import { t as FileUtils } from "./file.utils-DqQxnuAm.js";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
|
|
2
1
|
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-Czcqspm7.js";
|
|
3
2
|
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-D2MPZ3sY.js";
|
|
4
3
|
import { n as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "./Input-BsbLZDtC.js";
|
|
@@ -20,34 +19,6 @@ import { isFocusable } from "react-aria/private/utils/isFocusable";
|
|
|
20
19
|
import { useClipboard } from "react-aria/useClipboard";
|
|
21
20
|
import { useLabels } from "react-aria/private/utils/useLabels";
|
|
22
21
|
import { useSlotId } from "react-aria/private/utils/useId";
|
|
23
|
-
//#region ../../node_modules/.bun/lucide-react@1.43.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/upload.mjs
|
|
24
|
-
/**
|
|
25
|
-
* @license lucide-react v1.43.0 - ISC
|
|
26
|
-
*
|
|
27
|
-
* This source code is licensed under the ISC license.
|
|
28
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/
|
|
30
|
-
const __iconData = {
|
|
31
|
-
name: "upload",
|
|
32
|
-
size: 24,
|
|
33
|
-
node: [
|
|
34
|
-
["path", {
|
|
35
|
-
d: "M12 3v12",
|
|
36
|
-
key: "1x0j5s"
|
|
37
|
-
}],
|
|
38
|
-
["path", {
|
|
39
|
-
d: "m17 8-5-5-5 5",
|
|
40
|
-
key: "7q97r8"
|
|
41
|
-
}],
|
|
42
|
-
["path", {
|
|
43
|
-
d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",
|
|
44
|
-
key: "ih7n3h"
|
|
45
|
-
}]
|
|
46
|
-
]
|
|
47
|
-
};
|
|
48
|
-
__iconData.node;
|
|
49
|
-
const Upload = createLucideIcon(__iconData);
|
|
50
|
-
//#endregion
|
|
51
22
|
//#region ../../node_modules/.bun/react-aria-components@1.21.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/DropZone.mjs
|
|
52
23
|
function $parcel$interopDefault(a) {
|
|
53
24
|
return a && a.__esModule ? a.default : a;
|
|
@@ -149,4 +120,4 @@ const $b325d7bd7e74496a$export$6fb4a10d2c950550 = /*#__PURE__*/ forwardRef(funct
|
|
|
149
120
|
}));
|
|
150
121
|
});
|
|
151
122
|
//#endregion
|
|
152
|
-
export { $070c0dd15dc89b58$export$3c6489d84dc98b6 as n,
|
|
123
|
+
export { $070c0dd15dc89b58$export$3c6489d84dc98b6 as n, $b325d7bd7e74496a$export$6fb4a10d2c950550 as t };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
|
|
2
2
|
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
3
|
-
import {
|
|
3
|
+
import { t as Upload } from "./upload-CXU83BJ4.js";
|
|
4
4
|
import { t as X } from "./x-B6vfz8Ps.js";
|
|
5
5
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
6
6
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
7
7
|
import { t as IconSlot } from "./IconSlot-DSK7qNxc.js";
|
|
8
|
+
import { n as $070c0dd15dc89b58$export$3c6489d84dc98b6, t as $b325d7bd7e74496a$export$6fb4a10d2c950550 } from "./FileTrigger-Cthk5_Wp.js";
|
|
8
9
|
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
9
10
|
import { t as Button } from "./Button-C5rv4Cr2.js";
|
|
10
11
|
import { InlineIconButton } from "./components/inline-icon-button.js";
|
|
11
12
|
import { TextButton } from "./components/text-button.js";
|
|
12
13
|
import { i as $a8ea2faf2ebe4d2f$re_export$useLabels, r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
13
14
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
14
|
-
import { t as FormField } from "./FormField-
|
|
15
|
+
import { t as FormField } from "./FormField-B99dLt8o.js";
|
|
15
16
|
import "./i18n-CX2EjhJI.js";
|
|
16
17
|
import { t as FileUtils } from "./file.utils-DqQxnuAm.js";
|
|
17
18
|
import { t as Progress } from "./Progress-B3mY9rIP.js";
|
|
@@ -110,7 +110,7 @@ const FormFieldLabel = ({ ref, as, label, isRequired, isDisabled, labelProps, cl
|
|
|
110
110
|
};
|
|
111
111
|
//#endregion
|
|
112
112
|
//#region src/components/inputs/FormField/FormFieldHeader.tsx
|
|
113
|
-
const FormFieldHeaderTooltip = lazy(() => import("./FormFieldHeaderTooltip-
|
|
113
|
+
const FormFieldHeaderTooltip = lazy(() => import("./FormFieldHeaderTooltip-BV2Ju4oB.js"));
|
|
114
114
|
const FormFieldHeader = ({ label, tooltipText, helperText, isRequired, rightContent, isHeaderHidden, isDisabled, className, labelProps }) => {
|
|
115
115
|
const formFieldHeaderCva = UIOverrides.useCva("formField.headerCva", formFieldHeaderDefinition);
|
|
116
116
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Info } from "./info-iUmX3uDk.js";
|
|
2
2
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
3
|
import { t as IconSlot } from "./IconSlot-DSK7qNxc.js";
|
|
4
|
-
import { t as Tooltip } from "./Tooltip-
|
|
4
|
+
import { t as Tooltip } from "./Tooltip-CpG1nz7Y.js";
|
|
5
5
|
import { t as $a3be900807531178$re_export$Focusable } from "./exports-BNrTn8Tj.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/inputs/FormField/FormFieldHeaderTooltip.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
2
|
-
import { t as Tooltip } from "./Tooltip-
|
|
2
|
+
import { t as Tooltip } from "./Tooltip-CpG1nz7Y.js";
|
|
3
3
|
import { t as tooltipWrapperTriggerDefinition } from "./tooltipWrapper.cva-BBQ4ic3D.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/inputs/shared/InlineTooltipWrapper.tsx
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as PasswordInput } from "./PasswordInput-DYwUZ4-k.js";
|
|
2
|
-
import { t as Checkbox } from "./Checkbox-
|
|
3
|
-
import { t as Slider } from "./Slider-
|
|
2
|
+
import { t as Checkbox } from "./Checkbox-CV1ILXXO.js";
|
|
3
|
+
import { t as Slider } from "./Slider-CzEmKYBF.js";
|
|
4
4
|
import { t as Switch } from "./Switch-CqnGEdeD.js";
|
|
5
|
-
import { t as TextArea } from "./TextArea-
|
|
6
|
-
import { t as ToggleGroup } from "./ToggleGroup-DX0VYXwP.js";
|
|
7
|
-
import { t as DateRangePicker } from "./DateRangePicker-_uTQk_ae.js";
|
|
5
|
+
import { t as TextArea } from "./TextArea-D8WkKsGn.js";
|
|
8
6
|
import { Input } from "./components/input.js";
|
|
9
7
|
import { Autocomplete } from "./components/autocomplete.js";
|
|
10
8
|
import { CheckboxGroup } from "./components/checkbox-group.js";
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
9
|
+
import { t as DateRangePicker } from "./DateRangePicker-BF-1CztH.js";
|
|
10
|
+
import { t as TimePicker } from "./TimePicker-C4taAOFQ.js";
|
|
11
|
+
import { t as ToggleGroup } from "./ToggleGroup-DOk27fgI.js";
|
|
12
|
+
import { t as DatePicker } from "./DatePicker-DOLL7mkc.js";
|
|
13
|
+
import { t as Select } from "./Select-UR0ec2Ux.js";
|
|
14
|
+
import { t as DateTimePicker } from "./DateTimePicker-Cj0qvJUz.js";
|
|
15
15
|
import { NumberField } from "./components/number-field.js";
|
|
16
|
-
import { t as NumberRangeInput } from "./NumberRangeInput-
|
|
16
|
+
import { t as NumberRangeInput } from "./NumberRangeInput-B8-LHfg3.js";
|
|
17
17
|
import { QueryAutocomplete } from "./components/query-autocomplete.js";
|
|
18
18
|
import { QuerySelect } from "./components/query-select.js";
|
|
19
19
|
import { useMemo } from "react";
|