@povio/ui 6.0.0-rc.3 → 6.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.
@@ -368,7 +368,7 @@ function $6de3e3f1a7663217$var$isCompleteRange(value) {
368
368
  }
369
369
  //#endregion
370
370
  //#region src/components/inputs/DateTime/shared/RangeCalendar.lazy.tsx
371
- const loadRangeCalendar = () => import("./RangeCalendar-CXLwzK5Z.js");
371
+ const loadRangeCalendar = () => import("./RangeCalendar-CjaTtdUQ.js");
372
372
  const RangeCalendarRenderer = lazy(() => loadRangeCalendar().then(({ RangeCalendar }) => ({ default: RangeCalendar })));
373
373
  /** Fetches the range calendar chunk ahead of the dialog opening (hover, focus). */
374
374
  const preloadRangeCalendar = () => {
@@ -1,6 +1,6 @@
1
1
  import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
2
2
  import { t as FieldController } from "./form.binding-B-2id68q.js";
3
- import { n as DateRangePickerInner } from "./DateRangePicker-4CrjSCAx.js";
3
+ import { n as DateRangePickerInner } from "./DateRangePicker-D4lU0oQF.js";
4
4
  import { memo } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  //#region src/components/inputs/DateTime/DateRangePicker/DateRangePicker.bound.tsx
@@ -2,7 +2,7 @@ import { t as ChevronDown } from "./chevron-down-B4Pr8bD3.js";
2
2
  import { r as ChevronLeft } from "./Tooltip-CqbyoJhl.js";
3
3
  import { t as ChevronRight } from "./chevron-right-3nKJR5Bb.js";
4
4
  import { n as ChevronsLeft, t as ChevronsRight } from "./chevrons-right-DJPPn2fD.js";
5
- import { t as Select } from "./Select-DbZOJ-0u.js";
5
+ import { t as Select } from "./Select-DOrH8Q5O.js";
6
6
  import { t as clsx } from "./clsx-CnD0nOiA.js";
7
7
  import { IconButton } from "./components/icon-button.js";
8
8
  import { BadgeButton } from "./components/badge-button.js";
@@ -1,6 +1,6 @@
1
1
  import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
2
2
  import { t as ChevronDown } from "./chevron-down-B4Pr8bD3.js";
3
- import { t as Select } from "./Select-DbZOJ-0u.js";
3
+ import { t as Select } from "./Select-DOrH8Q5O.js";
4
4
  import { t as clsx } from "./clsx-CnD0nOiA.js";
5
5
  import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
6
6
  import { t as IconSlot } from "./IconSlot-Cuvpj1gd.js";
@@ -699,7 +699,7 @@ const SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvali
699
699
  };
700
700
  //#endregion
701
701
  //#region src/components/inputs/Selection/shared/SelectListBox.lazy.tsx
702
- const loadSelectListBox = () => import("./SelectListBox-CFOH3brT.js");
702
+ const loadSelectListBox = () => import("./SelectListBox-PITCjHi6.js");
703
703
  const SelectListBoxRenderer = lazy(() => loadSelectListBox().then(({ SelectListBox }) => ({ default: SelectListBox })));
704
704
  /** Fetches the list box chunk ahead of the list opening (hover, focus). */
705
705
  const preloadSelectListBox = () => {
@@ -740,6 +740,8 @@ const SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, i
740
740
  const [popoverWidth, setPopoverWidth] = useState(void 0);
741
741
  const [isPopoverAbove, setIsPopoverAbove] = useState(false);
742
742
  const { fieldState, isOpen, setIsOpen, onInputChange, onChange, onClear, onSelectAll, listItems, selectableListItems, selectedIds, isMultiple } = SelectContext.useSelect();
743
+ const [hasOpened, setHasOpened] = useState(isOpen);
744
+ if (isOpen && !hasOpened) setHasOpened(true);
743
745
  usePreventScroll({ isDisabled: !isOpen });
744
746
  useLayoutEffect(() => {
745
747
  if (!isOpen || !wrapperRef.current) return;
@@ -875,7 +877,7 @@ const SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, i
875
877
  },
876
878
  fieldProps,
877
879
  headerProps
878
- }), (!isSearchable || showPopover) && /* @__PURE__ */ jsx($542a13ca2fa5b484$export$5b6b19405a83ff9d, {
880
+ }), hasOpened && (!isSearchable || showPopover) && /* @__PURE__ */ jsx($542a13ca2fa5b484$export$5b6b19405a83ff9d, {
879
881
  ref: popoverRef,
880
882
  triggerRef,
881
883
  isOpen,
@@ -1,4 +1,4 @@
1
- import { n as SelectInner } from "./Select-DbZOJ-0u.js";
1
+ import { n as SelectInner } from "./Select-DOrH8Q5O.js";
2
2
  import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
3
3
  import { t as FieldController } from "./form.binding-B-2id68q.js";
4
4
  import { memo } from "react";
@@ -1,6 +1,6 @@
1
1
  import { t as Check } from "./check-DYMBkp_Z.js";
2
2
  import { t as CheckboxCheckmark } from "./CheckboxCheckmark-C4yFclkZ.js";
3
- import { c as LoadingItemId, o as SelectContext } from "./Select-DbZOJ-0u.js";
3
+ import { c as LoadingItemId, o as SelectContext } from "./Select-DOrH8Q5O.js";
4
4
  import { t as clsx } from "./clsx-CnD0nOiA.js";
5
5
  import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
6
6
  import { m as $263ab7fc0f95ccdb$export$4feb769f8ddf26c5, p as $263ab7fc0f95ccdb$export$2dbbd341daed716d } from "./Dialog-lFYX-7Ax.js";
@@ -1,2 +1,2 @@
1
- import { a as hydrateRelativeDateRangeValue, c as isStoredRelativeDateRangeValue, i as getDateRangePreset, l as resolveDateRangePreset, o as isDateRangePresetValue, r as dateRangePresetValues, s as isRelativeDateRangeValue, t as DateRangePicker } from "../DateRangePicker-4CrjSCAx.js";
1
+ import { a as hydrateRelativeDateRangeValue, c as isStoredRelativeDateRangeValue, i as getDateRangePreset, l as resolveDateRangePreset, o as isDateRangePresetValue, r as dateRangePresetValues, s as isRelativeDateRangeValue, t as DateRangePicker } from "../DateRangePicker-D4lU0oQF.js";
2
2
  export { DateRangePicker, dateRangePresetValues, getDateRangePreset, hydrateRelativeDateRangeValue, isDateRangePresetValue, isRelativeDateRangeValue, isStoredRelativeDateRangeValue, resolveDateRangePreset };
@@ -1,2 +1,2 @@
1
- import { t as Select } from "../Select-DbZOJ-0u.js";
1
+ import { t as Select } from "../Select-DOrH8Q5O.js";
2
2
  export { Select };
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { i as useDeepCompareMemo, n as useDeepCompareEffect, r as useDeepCompare
5
5
  import { t as Tooltip } from "./Tooltip-CqbyoJhl.js";
6
6
  import { t as PaginationList } from "./PaginationList-vfqgyTIP.js";
7
7
  import { a as InfiniteTable, c as useTableNav, i as PaginatedTable, l as HeaderText, n as useSorting, o as ColumnConfigModal, r as usePagination, s as Table, t as useTableColumnConfig, u as CellText } from "./useTableColumnConfig-CGtkUBG8.js";
8
- import { a as useKeyInteractions, i as getKeyInteractionAction, r as createKeyInteractionsHandler, s as useDebounceCallback } from "./Select-DbZOJ-0u.js";
8
+ import { a as useKeyInteractions, i as getKeyInteractionAction, r as createKeyInteractionsHandler, s as useDebounceCallback } from "./Select-DOrH8Q5O.js";
9
9
  import { t as X } from "./x-B6vfz8Ps.js";
10
10
  import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
11
11
  import { n as iconSlotDefinition, t as IconSlot } from "./IconSlot-Cuvpj1gd.js";
@@ -47,7 +47,7 @@ import { n as resources, t as ns } from "./i18n-BjNKHh_D.js";
47
47
  import { t as popoverDefinition } from "./popover.cva-Ciu9Ro5G.js";
48
48
  import { t as DatePicker } from "./DatePicker.bound-NquZAtFK.js";
49
49
  import { n as switchDefinition } from "./switch.cva-C9bO_QI-.js";
50
- import { t as DateRangePicker } from "./DateRangePicker.bound-D530tUJL.js";
50
+ import { t as DateRangePicker } from "./DateRangePicker.bound-B_gZlQvv.js";
51
51
  import { t as DateTimePicker } from "./DateTimePicker.bound-BJzw56_u.js";
52
52
  import { n as useLongPressRepeat } from "./TimePickerForm-BReCXELG.js";
53
53
  import { t as TimePicker } from "./TimePicker.bound-DBovZwLJ.js";
@@ -72,7 +72,7 @@ import { t as Autocomplete } from "./Autocomplete.bound-DTKSW9Sb.js";
72
72
  import { t as tagDefinition } from "./tag.cva-BVa0EWBU.js";
73
73
  import { Tag } from "./components/tag.js";
74
74
  import { n as selectInputTagsContentWrapperDefinition, t as selectPopoverDefinition } from "./selectDesktop.cva-CGBkscBY.js";
75
- import { t as Select } from "./Select.bound-B9c9mP8o.js";
75
+ import { t as Select } from "./Select.bound-RxqOhlbq.js";
76
76
  import { t as Slider } from "./Slider.bound-BoIYW8I5.js";
77
77
  import { t as Switch } from "./Switch.bound-Brw5UUA6.js";
78
78
  import { a as accordionHeadingTitleDefinition, c as accordionPanelContentDefinition, i as accordionHeadingSubtitleDefinition, l as accordionPanelDefinition, n as accordionDefinition, o as accordionIconDefinition, r as accordionHeadingDefinition, s as accordionItemDefinition, t as accordionChevronDefinition, u as accordionTriggerDefinition } from "./accordion.cva-C-gUiXk5.js";
@@ -1,2 +1,2 @@
1
- import { t as RichTextEditor } from "./RichTextEditor-DDGSNZyF.js";
1
+ import { t as RichTextEditor } from "./RichTextEditor-DpIQS8gk.js";
2
2
  export { RichTextEditor };
@@ -1,2 +1,2 @@
1
- import { t as DateRangePicker } from "../DateRangePicker.bound-D530tUJL.js";
1
+ import { t as DateRangePicker } from "../DateRangePicker.bound-B_gZlQvv.js";
2
2
  export { DateRangePicker };
@@ -1,4 +1,4 @@
1
- import { n as TextEditorBase } from "../RichTextEditor-DDGSNZyF.js";
1
+ import { n as TextEditorBase } from "../RichTextEditor-DpIQS8gk.js";
2
2
  import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "../import-D_3dPATF.js";
3
3
  import { t as FieldController } from "../form.binding-B-2id68q.js";
4
4
  import { memo } from "react";
@@ -1,2 +1,2 @@
1
- import { t as Select } from "../Select.bound-B9c9mP8o.js";
1
+ import { t as Select } from "../Select.bound-RxqOhlbq.js";
2
2
  export { Select };
package/dist/tanstack.js CHANGED
@@ -5,7 +5,7 @@ import { i as useDeepCompareMemo, n as useDeepCompareEffect, r as useDeepCompare
5
5
  import { t as Tooltip } from "./Tooltip-CqbyoJhl.js";
6
6
  import { t as PaginationList } from "./PaginationList-vfqgyTIP.js";
7
7
  import { a as InfiniteTable, c as useTableNav, i as PaginatedTable, l as HeaderText, n as useSorting, o as ColumnConfigModal, r as usePagination, s as Table, t as useTableColumnConfig, u as CellText } from "./useTableColumnConfig-CGtkUBG8.js";
8
- import { a as useKeyInteractions, i as getKeyInteractionAction, r as createKeyInteractionsHandler, s as useDebounceCallback } from "./Select-DbZOJ-0u.js";
8
+ import { a as useKeyInteractions, i as getKeyInteractionAction, r as createKeyInteractionsHandler, s as useDebounceCallback } from "./Select-DOrH8Q5O.js";
9
9
  import { t as X } from "./x-B6vfz8Ps.js";
10
10
  import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
11
11
  import { n as iconSlotDefinition, t as IconSlot } from "./IconSlot-Cuvpj1gd.js";
@@ -47,7 +47,7 @@ import { n as resources, t as ns } from "./i18n-BjNKHh_D.js";
47
47
  import { t as popoverDefinition } from "./popover.cva-Ciu9Ro5G.js";
48
48
  import { t as DatePicker } from "./DatePicker.bound-NquZAtFK.js";
49
49
  import { n as switchDefinition } from "./switch.cva-C9bO_QI-.js";
50
- import { t as DateRangePicker } from "./DateRangePicker.bound-D530tUJL.js";
50
+ import { t as DateRangePicker } from "./DateRangePicker.bound-B_gZlQvv.js";
51
51
  import { t as DateTimePicker } from "./DateTimePicker.bound-BJzw56_u.js";
52
52
  import { n as useLongPressRepeat } from "./TimePickerForm-BReCXELG.js";
53
53
  import { t as TimePicker } from "./TimePicker.bound-DBovZwLJ.js";
@@ -72,7 +72,7 @@ import { t as Autocomplete } from "./Autocomplete.bound-DTKSW9Sb.js";
72
72
  import { t as tagDefinition } from "./tag.cva-BVa0EWBU.js";
73
73
  import { Tag } from "./components/tag.js";
74
74
  import { n as selectInputTagsContentWrapperDefinition, t as selectPopoverDefinition } from "./selectDesktop.cva-CGBkscBY.js";
75
- import { t as Select } from "./Select.bound-B9c9mP8o.js";
75
+ import { t as Select } from "./Select.bound-RxqOhlbq.js";
76
76
  import { t as Slider } from "./Slider.bound-BoIYW8I5.js";
77
77
  import { t as Switch } from "./Switch.bound-Brw5UUA6.js";
78
78
  import { a as accordionHeadingTitleDefinition, c as accordionPanelContentDefinition, i as accordionHeadingSubtitleDefinition, l as accordionPanelDefinition, n as accordionDefinition, o as accordionIconDefinition, r as accordionHeadingDefinition, s as accordionItemDefinition, t as accordionChevronDefinition, u as accordionTriggerDefinition } from "./accordion.cva-C-gUiXk5.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@povio/ui",
3
- "version": "6.0.0-rc.3",
3
+ "version": "6.0.0-rc.4",
4
4
  "type": "module",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",