@povio/ui 4.0.2 → 4.0.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 +5 -1
- package/dist/{Autocomplete-DE2lQi5o.d.ts → Autocomplete-CFJ8ro0I.d.ts} +1 -1
- package/dist/{BottomSheet-CVTF1wQe.js → BottomSheet-DKYJqaKC.js} +2 -2
- package/dist/{Breadcrumbs-BibAIBhY.js → Breadcrumbs-C-mZtdCc.js} +1 -1
- package/dist/{Button-CcZBqoQp.js → Button-YQIr25DP.js} +1 -1
- package/dist/{Calendar-kSEji28A.js → Calendar-D-07OtEr.js} +8 -137
- package/dist/{Checkbox-DBV_Nxtq.js → Checkbox-Dp6dSvU3.js} +1 -1
- package/dist/{DatePicker-BbdtBAGN.js → DatePicker-CmadsYcG.js} +13 -13
- package/dist/{DatePickerInput-eyHwzKPm.js → DatePickerInput-BFI-ZPDb.js} +9 -8
- package/dist/{DateRangePicker-Ct182qur.js → DateRangePicker-4fpEtrbb.js} +17 -187
- package/dist/{DateTimePicker-taYHMMYi.js → DateTimePicker-6ixOSPcA.js} +13 -13
- package/dist/{DropdownMenu-tuf1W-IL.js → DropdownMenu-e1MBg1w0.js} +1 -1
- package/dist/{FileInput-B-ADr0B3.js → FileInput-BYImQc3r.js} +3 -3
- package/dist/{FileUpload-3-4Vt4f1.js → FileUpload-BP1BIT9D.js} +3 -3
- package/dist/{Form-mzpVGNjX.d.ts → Form-opTIGQDc.d.ts} +1 -1
- package/dist/{FormField-CAcDJ4HC.js → FormField-DTO2cbXC.js} +1 -1
- package/dist/{FormFieldHeaderTooltip-C2IDI4ac.js → FormFieldHeaderTooltip-h6e5hq9V.js} +1 -1
- package/dist/{InlineTooltipWrapper-7HG-g2X3.js → InlineTooltipWrapper-Ct6zi24f.js} +1 -1
- package/dist/{InputItem-B3PlrjuD.js → InputItem-CljfmlvS.js} +11 -11
- package/dist/{Inputs-CHEDcuP0.d.ts → Inputs-ClUh3WON.d.ts} +1 -1
- package/dist/{Inputs-WZmrBWrL.js → Inputs-K83n37Fs.js} +1 -1
- package/dist/NumberFormatter-CLDS_LRZ.js +265 -0
- package/dist/{NumberRangeInput-X8G1zfNM.js → NumberRangeInput-DzAM2RIu.js} +7 -6
- package/dist/{PaginationList-CmOJo2r2.js → PaginationList-BsxtDg6w.js} +1 -1
- package/dist/{QuerySelect-Bpz-qI9h.d.ts → QuerySelect-CmnJWLol.d.ts} +2 -2
- package/dist/{RadioGroup-DW_OQQDu.js → RadioGroup-B12aDhAs.js} +2 -2
- package/dist/{RichTextEditor-BOTitK7E.js → RichTextEditor-DcmQtw8H.js} +4 -4
- package/dist/{Select-DmLkOMr1.js → Select-BkCBNUfr.js} +3 -3
- package/dist/{Select-wzB2aQ_X.d.ts → Select-CuvhVk-C.d.ts} +1 -1
- package/dist/{SelectBase-DefgAEzh.d.ts → SelectBase-K2ve5zo6.d.ts} +1 -0
- package/dist/{Slider-Q87Hg_V2.js → Slider-CCVCu1JN.js} +2 -2
- package/dist/{Switch-Cylpjatb.js → Switch-CdF3Zonl.js} +1 -1
- package/dist/{Tag-DNuHvt6J.js → Tag-CK5D4sLA.js} +1 -1
- package/dist/{TextArea-DZv6XaT0.js → TextArea-DIZ8Lv_P.js} +3 -3
- package/dist/{TimePicker-DAoHgk8U.js → TimePicker-CtjPqrmF.js} +11 -10
- package/dist/{ToastContainer-8X5jGBe7.js → ToastContainer-BEt6s7Ry.js} +2 -2
- package/dist/{ToggleGroup-Cho_oRZh.js → ToggleGroup-BK6Ka7WA.js} +5 -66
- package/dist/{Tooltip-D94a1IQl.js → Tooltip--PSxkQA3.js} +2 -2
- package/dist/{TooltipWrapper-S2JC-w4e.js → TooltipWrapper-DW1XJTV8.js} +2 -2
- package/dist/{autocomplete-CaQSVRrw.d.ts → autocomplete-C9xgSizP.d.ts} +2 -2
- package/dist/components/alert-dialog.js +2 -2
- package/dist/components/autocomplete.d.ts +1 -1
- package/dist/components/autocomplete.js +3 -3
- package/dist/components/badge.js +1 -1
- package/dist/components/bottom-sheet.js +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.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/dropdown-menu.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 +2 -2
- package/dist/components/inline-icon-button.js +1 -1
- package/dist/components/input.js +5 -5
- package/dist/components/number-field.js +8 -7
- 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/popover.js +1 -1
- package/dist/components/query-autocomplete.d.ts +2 -2
- package/dist/components/query-autocomplete.js +10 -5
- package/dist/components/query-select.d.ts +1 -1
- package/dist/components/query-select.js +3 -3
- package/dist/components/radio-group.js +1 -1
- 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.js +2 -2
- package/dist/components/switch.js +1 -1
- 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/time-picker.js +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/toggle-button.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/components/use-toast.js +2 -2
- package/dist/config/ui-config.d.ts +1 -1
- package/dist/config/ui-config.js +1 -1
- package/dist/config/ui-router.js +1 -1
- package/dist/{datePickerValue.utils-GADbSu7a.js → datePickerValue.utils-B8aSxcsT.js} +6 -6
- package/dist/{dist-C6GfeeEC.js → dist-CK54f1eE.js} +2 -2
- package/dist/{dom.utils-D3mELNBA.js → dom.utils-CkZXhqc2.js} +1 -1
- package/dist/{dynamicInputs-CQMTixlW.d.ts → dynamicInputs-Wa3FdsbA.d.ts} +15 -15
- package/dist/{fieldAdapter-BYVPxvYi.js → fieldAdapter-B5-U5PYX.js} +1 -1
- package/dist/hooks/use-filters.js +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +26 -26
- package/dist/numberStatic.utils-BX50PSee.js +421 -0
- package/dist/{query-autocomplete-DV8fEkK2.d.ts → query-autocomplete-DfhSserb.d.ts} +2 -2
- package/dist/{query-select-BZ3-5WTu.d.ts → query-select-C6Onz6pF.d.ts} +2 -2
- package/dist/{queryAutocomplete.types-Dm8Ttx4v.d.ts → queryAutocomplete.types-DS9H0Boa.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.js +2 -2
- package/dist/rhf/date-time-picker.js +2 -2
- package/dist/rhf/file-input.js +2 -2
- package/dist/rhf/file-upload.js +2 -2
- package/dist/rhf/input.js +1 -1
- package/dist/rhf/inputs.d.ts +1 -1
- package/dist/rhf/number-field.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/rich-text-editor.js +2 -2
- 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/switch.js +2 -2
- package/dist/rhf/text-area.js +2 -2
- package/dist/rhf/time-picker.js +2 -2
- package/dist/rhf/toggle-group.js +2 -2
- package/dist/{rhf-1_ZO8GhU.js → rhf-__WYbcIJ.js} +1 -1
- package/dist/rhf.d.ts +9 -9
- package/dist/rhf.js +26 -26
- package/dist/rich-text-editor.js +1 -1
- package/dist/{router.context-B0jTMtE0.js → router.context-B4FvsTim.js} +2 -2
- package/dist/{select-DXGbGkZM.d.ts → select-y1GPTzpH.d.ts} +2 -2
- package/dist/staticDateTimeSegments-DzKcCK-Y.js +1763 -0
- package/dist/{staticSelect.utils-ad60elvT.js → staticSelect.utils-DWf8KbFx.js} +10 -147
- 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.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.d.ts +1 -1
- package/dist/tanstack/form.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/rich-text-editor.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/switch.js +1 -1
- package/dist/tanstack/table.js +1 -1
- 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.d.ts +8 -8
- package/dist/tanstack.js +35 -35
- package/dist/{toast.runtime-QMYrNvoQ.js → toast.runtime-D18cXIrS.js} +1 -1
- package/dist/{uiConfig.context-CIoMqe1_.d.ts → uiConfig.context-DQIA0LtD.d.ts} +1 -0
- package/dist/{uiConfig.context-RFvaQYzD.js → uiConfig.context-Dpgiuhxx.js} +1 -0
- package/dist/{useBreakpoint-3kpqzjoC.js → useBreakpoint-BnKj4HZ3.js} +1 -1
- package/dist/useControlledState-CzXkZCX8.js +30 -0
- package/dist/{useFieldAccessibility-CtTdRX2u.js → useFieldAccessibility-DuTAzJ17.js} +2 -2
- package/dist/{useFilters-kkEUFKmQ.js → useFilters-XNH27Md2.js} +1 -1
- package/dist/{useFormAutosave-DqP6lB4l.js → useFormAutosave-DWSqAgMS.js} +2 -2
- package/dist/{useStaticInputHandoff-BAaDW_0z.js → useStaticInputHandoff-C26sYbs1.js} +3 -3
- package/dist/{useTableColumnConfig-DVI_jVHz.js → useTableColumnConfig-ClhWUCBv.js} +3 -3
- package/package.json +1 -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-BQoA94W-.js +0 -3603
- 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,12 +1,12 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-Dpgiuhxx.js";
|
|
2
2
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
3
|
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-Czcqspm7.js";
|
|
4
4
|
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
5
5
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
6
6
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
7
|
-
import { r as FormFieldLabel, t as FormField } from "./FormField-
|
|
7
|
+
import { r as FormFieldLabel, t as FormField } from "./FormField-DTO2cbXC.js";
|
|
8
8
|
import { a as inputSizeDefinition, i as inputSideDefinition, o as useInputCva } from "./input.cva-KYGD4Bdz.js";
|
|
9
|
-
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-
|
|
9
|
+
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-DW1XJTV8.js";
|
|
10
10
|
import $ahdqC$react, { createContext, forwardRef, memo, useRef } from "react";
|
|
11
11
|
import { mergeProps } from "react-aria/mergeProps";
|
|
12
12
|
import { useFocusRing } from "react-aria/useFocusRing";
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-Dpgiuhxx.js";
|
|
2
2
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
3
|
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-D6KlWSFL.js";
|
|
4
4
|
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
5
|
-
import { r as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7, t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-DQxX6LMN.js";
|
|
6
|
-
import { a as getStaticTimeSegments, c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, i as getStaticDateTimeFocusTarget, l as DateSegmentItem, o as DateTimeDialogFooter, s as DateTimeDialog, y as $7541913c0284d84b$export$4c842f6a241dc825 } from "./staticDateTimeSegments-BQoA94W-.js";
|
|
7
5
|
import { t as Typography } from "./Typography-AcUd9df8.js";
|
|
8
6
|
import { InlineIconButton } from "./components/inline-icon-button.js";
|
|
9
7
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
10
8
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
11
|
-
import { r as FormFieldLabel, t as FormField } from "./FormField-
|
|
9
|
+
import { r as FormFieldLabel, t as FormField } from "./FormField-DTO2cbXC.js";
|
|
12
10
|
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-KYGD4Bdz.js";
|
|
13
|
-
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-
|
|
14
|
-
import { i as InputFrame, n as useStaticInputHandoff } from "./useStaticInputHandoff-
|
|
15
|
-
import {
|
|
11
|
+
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-DW1XJTV8.js";
|
|
12
|
+
import { i as InputFrame, n as useStaticInputHandoff } from "./useStaticInputHandoff-C26sYbs1.js";
|
|
13
|
+
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CzXkZCX8.js";
|
|
14
|
+
import { a as getStaticTimeSegments, c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, i as getStaticDateTimeFocusTarget, l as DateSegmentItem, o as DateTimeDialogFooter, s as DateTimeDialog } from "./staticDateTimeSegments-DzKcCK-Y.js";
|
|
15
|
+
import { n as TimePickerForm, t as normalizeDatePickerValue } from "./datePickerValue.utils-B8aSxcsT.js";
|
|
16
16
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
17
17
|
import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
18
18
|
import { GregorianCalendar, Time, getLocalTimeZone, now, toCalendarDateTime, toTime, toZoned, today } from "@internationalized/date";
|
|
19
19
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
20
|
+
import { useLocale, useTimeField } from "react-aria";
|
|
20
21
|
import { useFocusVisible, useFocusWithin, useHover } from "@react-aria/interactions";
|
|
21
22
|
//#region ../../node_modules/.bun/react-stately@3.50.0+83d5fd7b249dbeef/node_modules/react-stately/dist/private/datepicker/useTimeFieldState.mjs
|
|
22
23
|
function $b822555cf9fe955c$export$fd53cef0cc796101(props) {
|
|
@@ -192,7 +193,7 @@ const TimePickerBase = (props) => {
|
|
|
192
193
|
};
|
|
193
194
|
const [isOpen, setIsOpen] = useState(false);
|
|
194
195
|
const initialDateEmitRef = useRef(true);
|
|
195
|
-
const { locale } =
|
|
196
|
+
const { locale } = useLocale();
|
|
196
197
|
const normalizedValue = value ?? null;
|
|
197
198
|
const dialogState = $b822555cf9fe955c$export$fd53cef0cc796101({
|
|
198
199
|
...rest,
|
|
@@ -221,7 +222,7 @@ const TimePickerBase = (props) => {
|
|
|
221
222
|
if (state.timeValue) onChange?.(state.timeValue);
|
|
222
223
|
}, [rest.date]);
|
|
223
224
|
const timeFieldRef = useRef(null);
|
|
224
|
-
const { labelProps, fieldProps } =
|
|
225
|
+
const { labelProps, fieldProps } = useTimeField({
|
|
225
226
|
...rest,
|
|
226
227
|
label,
|
|
227
228
|
isReadOnly: disableManualEntry,
|
|
@@ -312,7 +313,7 @@ const TimePickerInner = ({ renderStaticInput, isFormControlDisabled, ...props })
|
|
|
312
313
|
const timeZone = props.timeZone ?? ui.dateInput.timeZone;
|
|
313
314
|
let effectiveTimeZone = getLocalTimeZone();
|
|
314
315
|
if (timeZone !== "clientLocal") effectiveTimeZone = timeZone;
|
|
315
|
-
const { locale } =
|
|
316
|
+
const { locale } = useLocale();
|
|
316
317
|
const [renderInput, setRenderInput] = useState(!(renderStaticInput ?? ui.renderStaticInput));
|
|
317
318
|
const inputRef = useRef(null);
|
|
318
319
|
const { renderRealInput, replayStaticInputPress } = useStaticInputHandoff({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-Dpgiuhxx.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
3
|
-
import { c as toastWrapper, o as toastContainerDefinition, t as xo } from "./dist-
|
|
3
|
+
import { c as toastWrapper, o as toastContainerDefinition, t as xo } from "./dist-CK54f1eE.js";
|
|
4
4
|
import { i as subscribeToToastActivation, n as isToastRendererActive, r as isToastRendererInactive } from "./toastActivation.store-BELtcr76.js";
|
|
5
5
|
import { useSyncExternalStore } from "react";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,76 +1,15 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { n as $bc25b811ec97a172$export$40258cc1d95ff477, t as $75afe627ae0cc0fa$export$d2b052e7b4be1756 } from "./ToggleButton-BW1ensey.js";
|
|
3
3
|
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
4
|
-
import { i as $23f2114a1b82827e$export$e58f029f0fbfdb29, n as $23f2114a1b82827e$export$4282f70798064fe0, r as $23f2114a1b82827e$export$cd4e5573fbe2b576, t as $c4867b2f328c2698$export$e5c5a5f917a5871c } from "./useLayoutEffect-B2-1tbPJ.js";
|
|
5
|
-
import { n as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f, r as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7, t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-DQxX6LMN.js";
|
|
6
|
-
import { n as $535772f9d2c1f38d$export$c5251b9e124bf29 } from "./FocusScope-CO9oJ1sc.js";
|
|
7
4
|
import { t as Typography } from "./Typography-AcUd9df8.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 {
|
|
7
|
+
import { t as FormField } from "./FormField-DTO2cbXC.js";
|
|
8
|
+
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CzXkZCX8.js";
|
|
9
|
+
import { Fragment, useMemo, useRef } from "react";
|
|
12
10
|
import { c } from "react/compiler-runtime";
|
|
13
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
-
|
|
15
|
-
function $afa781ff67c1cd08$export$fa142eb1681c520(props, ref) {
|
|
16
|
-
const { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, orientation = "horizontal" } = props;
|
|
17
|
-
let [isInToolbar, setInToolbar] = useState(false);
|
|
18
|
-
$c4867b2f328c2698$export$e5c5a5f917a5871c(() => {
|
|
19
|
-
setInToolbar(!!(ref.current && ref.current.parentElement?.closest("[role=\"toolbar\"]")));
|
|
20
|
-
});
|
|
21
|
-
const { direction } = $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7();
|
|
22
|
-
const shouldReverse = direction === "rtl" && orientation === "horizontal";
|
|
23
|
-
let focusManager = $535772f9d2c1f38d$export$c5251b9e124bf29(ref);
|
|
24
|
-
const onKeyDown = (e) => {
|
|
25
|
-
if (!$23f2114a1b82827e$export$4282f70798064fe0(e.currentTarget, $23f2114a1b82827e$export$e58f029f0fbfdb29(e))) return;
|
|
26
|
-
if (orientation === "horizontal" && e.key === "ArrowRight" || orientation === "vertical" && e.key === "ArrowDown") {
|
|
27
|
-
if (shouldReverse) focusManager.focusPrevious();
|
|
28
|
-
else focusManager.focusNext();
|
|
29
|
-
} else if (orientation === "horizontal" && e.key === "ArrowLeft" || orientation === "vertical" && e.key === "ArrowUp") {
|
|
30
|
-
if (shouldReverse) focusManager.focusNext();
|
|
31
|
-
else focusManager.focusPrevious();
|
|
32
|
-
} else if (e.key === "Tab") {
|
|
33
|
-
lastFocused.current = $23f2114a1b82827e$export$cd4e5573fbe2b576();
|
|
34
|
-
if (e.shiftKey) focusManager.focusFirst();
|
|
35
|
-
else focusManager.focusLast();
|
|
36
|
-
return;
|
|
37
|
-
} else return;
|
|
38
|
-
e.stopPropagation();
|
|
39
|
-
e.preventDefault();
|
|
40
|
-
};
|
|
41
|
-
const lastFocused = useRef(null);
|
|
42
|
-
const onBlur = (e) => {
|
|
43
|
-
if (!$23f2114a1b82827e$export$4282f70798064fe0(e.currentTarget, e.relatedTarget) && !lastFocused.current) lastFocused.current = $23f2114a1b82827e$export$e58f029f0fbfdb29(e);
|
|
44
|
-
};
|
|
45
|
-
const onFocus = (e) => {
|
|
46
|
-
if (lastFocused.current && !$23f2114a1b82827e$export$4282f70798064fe0(e.currentTarget, e.relatedTarget) && $23f2114a1b82827e$export$4282f70798064fe0(ref.current, $23f2114a1b82827e$export$e58f029f0fbfdb29(e))) {
|
|
47
|
-
lastFocused.current?.focus();
|
|
48
|
-
lastFocused.current = null;
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
return { toolbarProps: {
|
|
52
|
-
...$8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props, { labelable: true }),
|
|
53
|
-
role: !isInToolbar ? "toolbar" : "group",
|
|
54
|
-
"aria-orientation": orientation,
|
|
55
|
-
"aria-label": ariaLabel,
|
|
56
|
-
"aria-labelledby": ariaLabel == null ? ariaLabelledBy : void 0,
|
|
57
|
-
onKeyDownCapture: !isInToolbar ? onKeyDown : void 0,
|
|
58
|
-
onFocusCapture: !isInToolbar ? onFocus : void 0,
|
|
59
|
-
onBlurCapture: !isInToolbar ? onBlur : void 0
|
|
60
|
-
} };
|
|
61
|
-
}
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/button/useToggleButtonGroup.mjs
|
|
64
|
-
function $162557ba4d6f08dd$export$dd5580ae642f110f(props, state, ref) {
|
|
65
|
-
let { isDisabled } = props;
|
|
66
|
-
let { toolbarProps } = $afa781ff67c1cd08$export$fa142eb1681c520(props, ref);
|
|
67
|
-
return { groupProps: {
|
|
68
|
-
...toolbarProps,
|
|
69
|
-
role: state.selectionMode === "single" ? "radiogroup" : toolbarProps.role,
|
|
70
|
-
"aria-disabled": isDisabled
|
|
71
|
-
} };
|
|
72
|
-
}
|
|
73
|
-
//#endregion
|
|
12
|
+
import { useToggleButtonGroup } from "react-aria";
|
|
74
13
|
//#region ../../node_modules/.bun/react-stately@3.50.0+83d5fd7b249dbeef/node_modules/react-stately/dist/private/toggle/useToggleGroupState.mjs
|
|
75
14
|
function $3d8ad31c4c1725e9$export$8deac67f4addf270(props) {
|
|
76
15
|
let { selectionMode = "single", disallowEmptySelection, isDisabled = false } = props;
|
|
@@ -260,7 +199,7 @@ const ToggleGroupBase = (t0) => {
|
|
|
260
199
|
const props = t3;
|
|
261
200
|
const buttonGroupRef = useRef(null);
|
|
262
201
|
const state = $3d8ad31c4c1725e9$export$8deac67f4addf270(props);
|
|
263
|
-
const { groupProps } =
|
|
202
|
+
const { groupProps } = useToggleButtonGroup(props, state, buttonGroupRef);
|
|
264
203
|
const toggleGroupCva = UIOverrides.useCva("toggleGroup.cva", toggleGroupDefinition);
|
|
265
204
|
let t4;
|
|
266
205
|
if ($[17] !== error || $[18] !== props.isDisabled) {
|
|
@@ -4,7 +4,6 @@ import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
|
4
4
|
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";
|
|
5
5
|
import { n as $4fcfe18fac72dabd$export$746d02f47f4d381, t as $4fcfe18fac72dabd$export$2de4954e8ae13b9f } from "./OverlayArrow-D8z7cCsw.js";
|
|
6
6
|
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
7
|
-
import { t as $d1116acdf220c2da$export$4c014de7c8940b4c } from "./useFocusable-Bd0UsrQ7.js";
|
|
8
7
|
import { t as Typography } from "./Typography-AcUd9df8.js";
|
|
9
8
|
import $ahdqC$react, { Fragment, createContext, forwardRef, useContext, useRef } from "react";
|
|
10
9
|
import { c } from "react/compiler-runtime";
|
|
@@ -17,6 +16,7 @@ import { useOverlayPosition } from "react-aria/useOverlayPosition";
|
|
|
17
16
|
import { OverlayContainer } from "react-aria/private/overlays/useModal";
|
|
18
17
|
import { useTooltip, useTooltipTrigger } from "react-aria/useTooltipTrigger";
|
|
19
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
import { useFocusable } from "react-aria";
|
|
20
20
|
//#region ../../node_modules/.bun/react-aria-components@1.21.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Tooltip.mjs
|
|
21
21
|
const $05a50f7d78b03ad9$export$7a7623236eec67fa = /*#__PURE__*/ createContext(null);
|
|
22
22
|
const $05a50f7d78b03ad9$export$39ae08fa83328b12 = /*#__PURE__*/ createContext(null);
|
|
@@ -147,7 +147,7 @@ const CustomTrigger = (t0) => {
|
|
|
147
147
|
t1 = {};
|
|
148
148
|
$[0] = t1;
|
|
149
149
|
} else t1 = $[0];
|
|
150
|
-
const { focusableProps } =
|
|
150
|
+
const { focusableProps } = useFocusable(t1, ref);
|
|
151
151
|
const t2 = tabIndex ?? 0;
|
|
152
152
|
let t3;
|
|
153
153
|
if ($[1] !== className) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-Dpgiuhxx.js";
|
|
2
2
|
import { t as X } from "./x-B6vfz8Ps.js";
|
|
3
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
4
|
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
@@ -46,7 +46,7 @@ const InputClearButton = ({ onClear, className, style }) => {
|
|
|
46
46
|
};
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region src/components/inputs/shared/TooltipWrapper.tsx
|
|
49
|
-
const InlineTooltipWrapper = lazy(() => import("./InlineTooltipWrapper-
|
|
49
|
+
const InlineTooltipWrapper = lazy(() => import("./InlineTooltipWrapper-Ct6zi24f.js"));
|
|
50
50
|
const TooltipWrapper = (props) => {
|
|
51
51
|
if (props.as !== "inline") return props.children;
|
|
52
52
|
return /* @__PURE__ */ jsx(Suspense, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as SingleSelectProps, i as MultiSelectProps, r as GroupedSelectProps, t as DefaultInitialSelectItem } from "./SelectBase-
|
|
2
|
-
import { n as AutocompleteProps } from "./Autocomplete-
|
|
1
|
+
import { c as SingleSelectProps, i as MultiSelectProps, r as GroupedSelectProps, t as DefaultInitialSelectItem } from "./SelectBase-K2ve5zo6.js";
|
|
2
|
+
import { n as AutocompleteProps } from "./Autocomplete-CFJ8ro0I.js";
|
|
3
3
|
import { t as ControlProps } from "./form.types-ZNGbcqJS.js";
|
|
4
4
|
import { t as FireBlurOnChangeProps } from "./fieldAdapter-C4sDFC8f.js";
|
|
5
5
|
import { Key } from "react-aria-components";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as UIConfig } from "../uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "../uiConfig.context-Dpgiuhxx.js";
|
|
2
2
|
import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
3
3
|
import { t as Typography } from "../Typography-AcUd9df8.js";
|
|
4
|
-
import { t as Button } from "../Button-
|
|
4
|
+
import { t as Button } from "../Button-YQIr25DP.js";
|
|
5
5
|
import { t as Dialog } from "../Dialog-BE9BSDDl.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as AutocompleteProps, r as ControlledAutocompleteProps, t as Autocomplete } from "../Autocomplete-
|
|
1
|
+
import { n as AutocompleteProps, r as ControlledAutocompleteProps, t as Autocomplete } from "../Autocomplete-CFJ8ro0I.js";
|
|
2
2
|
export { Autocomplete, AutocompleteProps, ControlledAutocompleteProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as UIConfig } from "../uiConfig.context-
|
|
2
|
-
import { l as selectInputTagsContentWrapperDefinition, n as StaticSelectTrailingContent, r as SelectBase, t as getStaticSelectValue } from "../staticSelect.utils-
|
|
1
|
+
import { t as UIConfig } from "../uiConfig.context-Dpgiuhxx.js";
|
|
2
|
+
import { l as selectInputTagsContentWrapperDefinition, n as StaticSelectTrailingContent, r as SelectBase, t as getStaticSelectValue } from "../staticSelect.utils-DWf8KbFx.js";
|
|
3
3
|
import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
4
4
|
import { t as UIOverrides } from "../uiOverrides.context-Bfm2n-n8.js";
|
|
5
5
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "../import-BE0r63d8.js";
|
|
6
6
|
import { t as FieldController } from "../form.binding-CG1RPv6o.js";
|
|
7
|
-
import { i as InputFrame, n as useStaticInputHandoff, t as getStaticInputFocusTarget } from "../useStaticInputHandoff-
|
|
7
|
+
import { i as InputFrame, n as useStaticInputHandoff, t as getStaticInputFocusTarget } from "../useStaticInputHandoff-C26sYbs1.js";
|
|
8
8
|
import { memo, useRef, useState } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
//#region src/components/inputs/Selection/Autocomplete/Autocomplete.tsx
|
package/dist/components/badge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as UIConfig } from "../uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "../uiConfig.context-Dpgiuhxx.js";
|
|
2
2
|
import { t as X } from "../x-B6vfz8Ps.js";
|
|
3
3
|
import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
4
4
|
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "../Button-D6KlWSFL.js";
|
|
@@ -3,7 +3,7 @@ import { Suspense, lazy, useEffect, useState } from "react";
|
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/overlays/BottomSheet/BottomSheet.lazy.tsx
|
|
6
|
-
const BottomSheetRenderer = lazy(() => import("../BottomSheet-
|
|
6
|
+
const BottomSheetRenderer = lazy(() => import("../BottomSheet-DKYJqaKC.js").then(({ BottomSheet }) => ({ default: BottomSheet })));
|
|
7
7
|
const BottomSheet = (t0) => {
|
|
8
8
|
const $ = c(26);
|
|
9
9
|
let isOpen;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Breadcrumbs } from "../Breadcrumbs-
|
|
1
|
+
import { t as Breadcrumbs } from "../Breadcrumbs-C-mZtdCc.js";
|
|
2
2
|
export { Breadcrumbs };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Button } from "../Button-
|
|
1
|
+
import { t as Button } from "../Button-YQIr25DP.js";
|
|
2
2
|
export { Button };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as UIConfig } from "../uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "../uiConfig.context-Dpgiuhxx.js";
|
|
2
2
|
import { i as checkboxContentWrapperDefinition, o as checkboxGroupLabelDefinition, r as checkboxContentRowDefinition } from "../CheckboxCheckmark-DJue5Aej.js";
|
|
3
3
|
import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
4
|
-
import { n as CheckboxBase, r as $ed8ccb2e23e76301$export$4aa08d5625cb8ead } from "../Checkbox-
|
|
4
|
+
import { n as CheckboxBase, r as $ed8ccb2e23e76301$export$4aa08d5625cb8ead } from "../Checkbox-Dp6dSvU3.js";
|
|
5
5
|
import { t as UIOverrides } from "../uiOverrides.context-Bfm2n-n8.js";
|
|
6
6
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "../import-BE0r63d8.js";
|
|
7
7
|
import { t as FieldController } from "../form.binding-CG1RPv6o.js";
|
|
8
|
-
import { r as FormFieldLabel, t as FormField } from "../FormField-
|
|
8
|
+
import { r as FormFieldLabel, t as FormField } from "../FormField-DTO2cbXC.js";
|
|
9
9
|
import { a as inputSizeDefinition, t as inputBaseDefinition } from "../input.cva-KYGD4Bdz.js";
|
|
10
10
|
import { memo } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as CheckboxBase, t as Checkbox } from "../Checkbox-
|
|
1
|
+
import { n as CheckboxBase, t as Checkbox } from "../Checkbox-Dp6dSvU3.js";
|
|
2
2
|
export { Checkbox, CheckboxBase };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as DatePicker } from "../DatePicker-
|
|
1
|
+
import { t as DatePicker } from "../DatePicker-CmadsYcG.js";
|
|
2
2
|
export { DatePicker };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as isDateRangePresetValue, c as resolveDateRangePreset, i as hydrateRelativeDateRangeValue, n as dateRangePresetValues, o as isRelativeDateRangeValue, r as getDateRangePreset, s as isStoredRelativeDateRangeValue, t as DateRangePicker } from "../DateRangePicker-
|
|
1
|
+
import { a as isDateRangePresetValue, c as resolveDateRangePreset, i as hydrateRelativeDateRangeValue, n as dateRangePresetValues, o as isRelativeDateRangeValue, r as getDateRangePreset, s as isStoredRelativeDateRangeValue, t as DateRangePicker } from "../DateRangePicker-4fpEtrbb.js";
|
|
2
2
|
export { DateRangePicker, dateRangePresetValues, getDateRangePreset, hydrateRelativeDateRangeValue, isDateRangePresetValue, isRelativeDateRangeValue, isStoredRelativeDateRangeValue, resolveDateRangePreset };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as DateTimePicker } from "../DateTimePicker-
|
|
1
|
+
import { t as DateTimePicker } from "../DateTimePicker-6ixOSPcA.js";
|
|
2
2
|
export { DateTimePicker };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as FileInput } from "../FileInput-
|
|
1
|
+
import { t as FileInput } from "../FileInput-BYImQc3r.js";
|
|
2
2
|
export { FileInput };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as FileUpload } from "../FileUpload-
|
|
1
|
+
import { t as FileUpload } from "../FileUpload-BP1BIT9D.js";
|
|
2
2
|
export { FileUpload };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as FormField } from "../FormField-
|
|
1
|
+
import { t as FormField } from "../FormField-DTO2cbXC.js";
|
|
2
2
|
export { FormField };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Tooltip } from "../Tooltip
|
|
2
|
-
import { t as Button } from "../Button-
|
|
1
|
+
import { t as Tooltip } from "../Tooltip--PSxkQA3.js";
|
|
2
|
+
import { t as Button } from "../Button-YQIr25DP.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/buttons/IconButton/IconButton.tsx
|
package/dist/components/input.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as UIConfig } from "../uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "../uiConfig.context-Dpgiuhxx.js";
|
|
2
2
|
import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
3
3
|
import { n as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "../Input-BsbLZDtC.js";
|
|
4
4
|
import { t as UIOverrides } from "../uiOverrides.context-Bfm2n-n8.js";
|
|
5
5
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "../import-BE0r63d8.js";
|
|
6
6
|
import { t as FieldController } from "../form.binding-CG1RPv6o.js";
|
|
7
|
-
import { t as FormField } from "../FormField-
|
|
7
|
+
import { t as FormField } from "../FormField-DTO2cbXC.js";
|
|
8
8
|
import { t as inputBaseDefinition } from "../input.cva-KYGD4Bdz.js";
|
|
9
|
-
import { t as TooltipWrapper } from "../TooltipWrapper-
|
|
10
|
-
import { n as InputContent, t as useFieldAccessibility } from "../useFieldAccessibility-
|
|
11
|
-
import { i as InputFrame, n as useStaticInputHandoff } from "../useStaticInputHandoff-
|
|
9
|
+
import { t as TooltipWrapper } from "../TooltipWrapper-DW1XJTV8.js";
|
|
10
|
+
import { n as InputContent, t as useFieldAccessibility } from "../useFieldAccessibility-DuTAzJ17.js";
|
|
11
|
+
import { i as InputFrame, n as useStaticInputHandoff } from "../useStaticInputHandoff-C26sYbs1.js";
|
|
12
12
|
import { memo, useEffect, useRef, useState } from "react";
|
|
13
13
|
import { jsx } from "react/jsx-runtime";
|
|
14
14
|
import { useFocusVisible } from "@react-aria/interactions";
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { t as UIConfig } from "../uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "../uiConfig.context-Dpgiuhxx.js";
|
|
2
2
|
import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
3
3
|
import { n as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "../Input-BsbLZDtC.js";
|
|
4
4
|
import { a as $a3be900807531178$re_export$useLocale } from "../exports-BNrTn8Tj.js";
|
|
5
5
|
import { t as UIOverrides } from "../uiOverrides.context-Bfm2n-n8.js";
|
|
6
|
-
import { n as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c, r as $cd2fa56213693c5e$export$23f548e970bdf099, t as getStaticNumberDisplayValue } from "../numberStatic.utils-BMgRzyd3.js";
|
|
7
6
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "../import-BE0r63d8.js";
|
|
8
7
|
import { t as FieldController } from "../form.binding-CG1RPv6o.js";
|
|
9
|
-
import { t as FormField } from "../FormField-
|
|
8
|
+
import { t as FormField } from "../FormField-DTO2cbXC.js";
|
|
10
9
|
import { t as inputBaseDefinition } from "../input.cva-KYGD4Bdz.js";
|
|
11
|
-
import { t as TooltipWrapper } from "../TooltipWrapper-
|
|
12
|
-
import { n as InputContent, t as useFieldAccessibility } from "../useFieldAccessibility-
|
|
13
|
-
import { i as InputFrame, n as useStaticInputHandoff } from "../useStaticInputHandoff-
|
|
10
|
+
import { t as TooltipWrapper } from "../TooltipWrapper-DW1XJTV8.js";
|
|
11
|
+
import { n as InputContent, t as useFieldAccessibility } from "../useFieldAccessibility-DuTAzJ17.js";
|
|
12
|
+
import { i as InputFrame, n as useStaticInputHandoff } from "../useStaticInputHandoff-C26sYbs1.js";
|
|
13
|
+
import { n as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c, t as getStaticNumberDisplayValue } from "../numberStatic.utils-BX50PSee.js";
|
|
14
14
|
import { t as IntlUtils } from "../intl.utils-zwAFoZ0U.js";
|
|
15
15
|
import { memo, useCallback, useEffect, useRef, useState } from "react";
|
|
16
16
|
import { jsx } from "react/jsx-runtime";
|
|
17
|
+
import { useNumberField } from "react-aria";
|
|
17
18
|
import { useFocusVisible } from "@react-aria/interactions";
|
|
18
19
|
//#region src/components/inputs/Input/NumberField/NumberField.tsx
|
|
19
20
|
const NumberFieldBase = (props) => {
|
|
@@ -48,7 +49,7 @@ const NumberFieldBase = (props) => {
|
|
|
48
49
|
formatOptions
|
|
49
50
|
};
|
|
50
51
|
const state = $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c(numberProps);
|
|
51
|
-
const { labelProps, inputProps } =
|
|
52
|
+
const { labelProps, inputProps } = useNumberField(numberProps, state, numberFieldRef);
|
|
52
53
|
const { describedBy, errorMessageId, helperTextId } = useFieldAccessibility({
|
|
53
54
|
describedBy: inputProps["aria-describedby"],
|
|
54
55
|
error,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as NumberRangeInput } from "../NumberRangeInput-
|
|
1
|
+
import { t as NumberRangeInput } from "../NumberRangeInput-DzAM2RIu.js";
|
|
2
2
|
export { NumberRangeInput };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PaginationList } from "../PaginationList-
|
|
1
|
+
import { t as PaginationList } from "../PaginationList-BsxtDg6w.js";
|
|
2
2
|
export { PaginationList };
|
|
@@ -2,7 +2,7 @@ import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
|
2
2
|
import { t as Typography } from "../Typography-AcUd9df8.js";
|
|
3
3
|
import "../i18n-CX2EjhJI.js";
|
|
4
4
|
import { NumberField } from "./number-field.js";
|
|
5
|
-
import { t as PaginationList } from "../PaginationList-
|
|
5
|
+
import { t as PaginationList } from "../PaginationList-BsxtDg6w.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { useTranslation } from "react-i18next";
|
|
@@ -2,7 +2,7 @@ import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
|
2
2
|
import { c as $542a13ca2fa5b484$export$5b6b19405a83ff9d, n as $f2ff30fde7b014be$export$3ddf2d174ce01153, t as $f2ff30fde7b014be$export$2e1e1122cf0cba88 } from "../Dialog-CXoVeIkU.js";
|
|
3
3
|
import { t as UIOverrides } from "../uiOverrides.context-Bfm2n-n8.js";
|
|
4
4
|
import { BottomSheet } from "./bottom-sheet.js";
|
|
5
|
-
import { t as useBreakpoint } from "../useBreakpoint-
|
|
5
|
+
import { t as useBreakpoint } from "../useBreakpoint-BnKj4HZ3.js";
|
|
6
6
|
import { t as popoverDefinition } from "../popover.cva-CXha_UMQ.js";
|
|
7
7
|
import { c } from "react/compiler-runtime";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as FieldValues } from "../form.binding-DVJ5F0JE.js";
|
|
2
|
-
import { s as SelectItem } from "../SelectBase-
|
|
3
|
-
import { n as QueryFn, t as QueryAutocompleteProps } from "../queryAutocomplete.types-
|
|
2
|
+
import { s as SelectItem } from "../SelectBase-K2ve5zo6.js";
|
|
3
|
+
import { n as QueryFn, t as QueryAutocompleteProps } from "../queryAutocomplete.types-DS9H0Boa.js";
|
|
4
4
|
//#region src/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts
|
|
5
5
|
declare const QueryAutocompleteComponent: <TFieldValues extends FieldValues, TSelectItem extends SelectItem<any>, TQueryFn extends QueryFn>(props: QueryAutocompleteProps<TFieldValues, TSelectItem, TQueryFn>) => import("react").JSX.Element;
|
|
6
6
|
declare const QueryAutocomplete: typeof QueryAutocompleteComponent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as UIConfig } from "../uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "../uiConfig.context-Dpgiuhxx.js";
|
|
2
2
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "../import-BE0r63d8.js";
|
|
3
3
|
import { t as FieldController } from "../form.binding-CG1RPv6o.js";
|
|
4
|
-
import { t as getStaticInputFocusTarget } from "../useStaticInputHandoff-
|
|
4
|
+
import { t as getStaticInputFocusTarget } from "../useStaticInputHandoff-C26sYbs1.js";
|
|
5
5
|
import { Autocomplete } from "./autocomplete.js";
|
|
6
6
|
import { n as getQueryItems, r as getSelectionIdsToResolve, t as useQueryAutocomplete } from "../useQueryAutocomplete-CraXvRm_.js";
|
|
7
7
|
import { memo, useCallback, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
@@ -72,14 +72,19 @@ const QueryAutocompleteContent = (props) => {
|
|
|
72
72
|
mapInitialToSelectItem: props.mapInitialToSelectItem
|
|
73
73
|
});
|
|
74
74
|
const [initialFocusFromEnd, setInitialFocusFromEnd] = useState();
|
|
75
|
-
const [
|
|
75
|
+
const [isQueryEnabledInitially, setIsQueryEnabledInitially] = useState(() => !isInitialQueryDisabled && !selection.isResolvedByInitialSelection);
|
|
76
|
+
const [isQueryMounted, setIsQueryMounted] = useState(!selection.isResolvedByInitialSelection);
|
|
77
|
+
if (!isQueryMounted && !selection.isResolvedByInitialSelection) setIsQueryMounted(true);
|
|
76
78
|
if (!selection.isResolvedByInitialSelection || isQueryMounted) return /* @__PURE__ */ jsx(LoadedQueryAutocompleteContent, {
|
|
77
79
|
...props,
|
|
78
|
-
isQueryEnabledInitially
|
|
80
|
+
isQueryEnabledInitially,
|
|
79
81
|
initialFocusFromEnd
|
|
80
82
|
});
|
|
81
83
|
const { query: _, queryParams: _queryParams, queryOptions: _queryOptions, queryMap: _queryMap, resolveSelectedItemsWithIds: _resolveSelectedItemsWithIds, isInitialQueryDisabled: _isInitialQueryDisabled, ...autocompleteProps } = props;
|
|
82
|
-
const mountQuery = () =>
|
|
84
|
+
const mountQuery = () => {
|
|
85
|
+
setIsQueryEnabledInitially(true);
|
|
86
|
+
setIsQueryMounted(true);
|
|
87
|
+
};
|
|
83
88
|
return /* @__PURE__ */ jsx(Autocomplete, {
|
|
84
89
|
...autocompleteProps,
|
|
85
90
|
items: [],
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as QuerySelectProps, t as QuerySelect } from "../QuerySelect-
|
|
1
|
+
import { n as QuerySelectProps, t as QuerySelect } from "../QuerySelect-CmnJWLol.js";
|
|
2
2
|
export { QuerySelect, QuerySelectProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as UIConfig } from "../uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "../uiConfig.context-Dpgiuhxx.js";
|
|
2
2
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "../import-BE0r63d8.js";
|
|
3
3
|
import { t as FieldController } from "../form.binding-CG1RPv6o.js";
|
|
4
|
-
import { t as getStaticInputFocusTarget } from "../useStaticInputHandoff-
|
|
5
|
-
import { t as Select } from "../Select-
|
|
4
|
+
import { t as getStaticInputFocusTarget } from "../useStaticInputHandoff-C26sYbs1.js";
|
|
5
|
+
import { t as Select } from "../Select-BkCBNUfr.js";
|
|
6
6
|
import { n as getQueryItems, r as getSelectionIdsToResolve, t as useQueryAutocomplete } from "../useQueryAutocomplete-CraXvRm_.js";
|
|
7
7
|
import { memo, useCallback, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as RadioGroup } from "../RadioGroup-
|
|
1
|
+
import { t as RadioGroup } from "../RadioGroup-B12aDhAs.js";
|
|
2
2
|
export { RadioGroup };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as SelectAsyncProps, o as SelectBaseProps, s as SelectItem, t as DefaultInitialSelectItem } from "../SelectBase-
|
|
2
|
-
import { n as Select, r as SelectProps, t as ControlledSelectProps } from "../Select-
|
|
1
|
+
import { a as SelectAsyncProps, o as SelectBaseProps, s as SelectItem, t as DefaultInitialSelectItem } from "../SelectBase-K2ve5zo6.js";
|
|
2
|
+
import { n as Select, r as SelectProps, t as ControlledSelectProps } from "../Select-CuvhVk-C.js";
|
|
3
3
|
export { type ControlledSelectProps, type DefaultInitialSelectItem, Select, type SelectAsyncProps, type SelectBaseProps, type SelectItem, type SelectProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Select } from "../Select-
|
|
1
|
+
import { t as Select } from "../Select-BkCBNUfr.js";
|
|
2
2
|
export { Select };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Slider } from "../Slider-
|
|
1
|
+
import { t as Slider } from "../Slider-CCVCu1JN.js";
|
|
2
2
|
export { Slider };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as DropdownMenu } from "../DropdownMenu-
|
|
1
|
+
import { t as DropdownMenu } from "../DropdownMenu-e1MBg1w0.js";
|
|
2
2
|
import { t as ChevronDown } from "../chevron-down-B4Pr8bD3.js";
|
|
3
3
|
import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
4
|
-
import { t as Button } from "../Button-
|
|
4
|
+
import { t as Button } from "../Button-YQIr25DP.js";
|
|
5
5
|
import { IconButton } from "./icon-button.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Switch } from "../Switch-
|
|
1
|
+
import { t as Switch } from "../Switch-CdF3Zonl.js";
|
|
2
2
|
export { Switch };
|
package/dist/components/tag.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Tag } from "../Tag-
|
|
1
|
+
import { t as Tag } from "../Tag-CK5D4sLA.js";
|
|
2
2
|
export { Tag };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TextArea } from "../TextArea-
|
|
1
|
+
import { t as TextArea } from "../TextArea-DIZ8Lv_P.js";
|
|
2
2
|
export { TextArea };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TimePicker } from "../TimePicker-
|
|
1
|
+
import { t as TimePicker } from "../TimePicker-CtjPqrmF.js";
|
|
2
2
|
export { TimePicker };
|
package/dist/components/toast.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as Toast } from "../dist-
|
|
2
|
-
import { n as ToastProvider, t as ToastContainer } from "../ToastContainer-
|
|
1
|
+
import { r as Toast } from "../dist-CK54f1eE.js";
|
|
2
|
+
import { n as ToastProvider, t as ToastContainer } from "../ToastContainer-BEt6s7Ry.js";
|
|
3
3
|
export { Toast, ToastContainer, ToastProvider };
|