@povio/ui 3.4.0-rc.7 → 3.4.0-rc.9

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.
Files changed (137) hide show
  1. package/dist/components/Breadcrumbs/Breadcrumbs.js +7 -16
  2. package/dist/components/Menu/Menu.js +1 -1
  3. package/dist/components/Menu/MenuDesktop.js +1 -1
  4. package/dist/components/Menu/MenuItem.js +3 -6
  5. package/dist/components/Menu/MenuMobile.js +4 -7
  6. package/dist/components/Menu/MenuPopover.js +1 -1
  7. package/dist/components/buttons/Button/Button.js +1 -1
  8. package/dist/components/buttons/IconButton/IconButton.js +1 -1
  9. package/dist/components/buttons/PillButton/PillButton.js +2 -2
  10. package/dist/components/buttons/SplitButton/SplitButton.js +2 -2
  11. package/dist/components/buttons/TextButton/TextButton.js +1 -1
  12. package/dist/components/buttons/ToggleButton/ToggleButton.js +1 -1
  13. package/dist/components/buttons/shared/ButtonContent.js +2 -2
  14. package/dist/components/inputs/Checkbox/Checkbox.js +1 -1
  15. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +1 -1
  16. package/dist/components/inputs/Checkbox/CheckboxGroup.js +1 -1
  17. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +1 -1
  18. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +1 -1
  19. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +1 -1
  20. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +1 -1
  21. package/dist/components/inputs/DateTime/shared/Calendar.js +1 -1
  22. package/dist/components/inputs/DateTime/shared/CalendarCell.js +1 -1
  23. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +1 -1
  24. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +4 -11
  25. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +2 -2
  26. package/dist/components/inputs/DateTime/shared/DateField.js +2 -2
  27. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +3 -3
  28. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +2 -2
  29. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +1 -1
  30. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +1 -1
  31. package/dist/components/inputs/DateTime/shared/MonthPicker.js +1 -1
  32. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +1 -1
  33. package/dist/components/inputs/DateTime/shared/TimeField.js +1 -1
  34. package/dist/components/inputs/DateTime/shared/TimePickerForm.js +2 -2
  35. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +1 -1
  36. package/dist/components/inputs/DateTime/shared/YearPicker.js +1 -1
  37. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +1 -1
  38. package/dist/components/inputs/File/FileUpload.js +2 -2
  39. package/dist/components/inputs/File/FileUploadContainer.js +1 -1
  40. package/dist/components/inputs/File/InputUpload.js +1 -1
  41. package/dist/components/inputs/File/shared/FileCard.js +1 -1
  42. package/dist/components/inputs/File/shared/FileCardList.js +1 -1
  43. package/dist/components/inputs/File/shared/FileUploadContent.js +1 -1
  44. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +3 -6
  45. package/dist/components/inputs/File/shared/FileUploadContentError.js +3 -7
  46. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +3 -7
  47. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +3 -7
  48. package/dist/components/inputs/File/shared/InputUploadContent.js +2 -2
  49. package/dist/components/inputs/File/shared/InputUploadFilled.js +2 -2
  50. package/dist/components/inputs/FormField/FormField.js +1 -1
  51. package/dist/components/inputs/FormField/FormFieldError.js +1 -1
  52. package/dist/components/inputs/FormField/FormFieldHeader.js +3 -4
  53. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +3 -6
  54. package/dist/components/inputs/FormField/FormFieldHelper.js +1 -1
  55. package/dist/components/inputs/FormField/FormFieldLabel.js +1 -1
  56. package/dist/components/inputs/Input/NumberInput/NumberInput.js +1 -1
  57. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +1 -1
  58. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +2 -2
  59. package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +2 -2
  60. package/dist/components/inputs/Input/TextArea/TextArea.js +1 -1
  61. package/dist/components/inputs/Input/TextInput/TextInput.js +1 -1
  62. package/dist/components/inputs/Input/shared/InputContent.js +1 -1
  63. package/dist/components/inputs/Inputs/Form.js +1 -1
  64. package/dist/components/inputs/Inputs/InputItem.js +1 -1
  65. package/dist/components/inputs/Inputs/Inputs.js +1 -1
  66. package/dist/components/inputs/RadioGroup/RadioGroup.js +1 -1
  67. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +2 -2
  68. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +1 -1
  69. package/dist/components/inputs/Selection/Select/QuerySelect.js +1 -1
  70. package/dist/components/inputs/Selection/Select/Select.js +3 -3
  71. package/dist/components/inputs/Selection/shared/SelectBase.js +1 -1
  72. package/dist/components/inputs/Selection/shared/SelectDesktop.js +3 -3
  73. package/dist/components/inputs/Selection/shared/SelectInput.js +4 -5
  74. package/dist/components/inputs/Selection/shared/SelectInputTags.js +1 -1
  75. package/dist/components/inputs/Selection/shared/SelectListBox.js +1 -1
  76. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +1 -1
  77. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +1 -1
  78. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +1 -1
  79. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +1 -1
  80. package/dist/components/inputs/Selection/shared/SelectMobile.js +3 -6
  81. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +3 -6
  82. package/dist/components/inputs/Selection/shared/select.context.js +1 -1
  83. package/dist/components/inputs/Skeleton/InputFrame.js +3 -3
  84. package/dist/components/inputs/Slider/Slider.js +1 -1
  85. package/dist/components/inputs/TextEditor/TextEditor.js +1 -1
  86. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +1 -1
  87. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +3 -4
  88. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +2 -2
  89. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +2 -2
  90. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +3 -4
  91. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +1 -1
  92. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +4 -8
  93. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +2 -2
  94. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +2 -2
  95. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +1 -1
  96. package/dist/components/inputs/Toggle/Toggle.js +1 -1
  97. package/dist/components/inputs/shared/CheckContent.js +1 -1
  98. package/dist/components/inputs/shared/InputClear.js +14 -22
  99. package/dist/components/inputs/shared/TooltipWrapper.js +1 -1
  100. package/dist/components/inputs/shared/form.binding.js +1 -1
  101. package/dist/components/navigation/Accordion/Accordion.js +1 -1
  102. package/dist/components/navigation/Accordion/AccordionItem.js +3 -6
  103. package/dist/components/navigation/Stepper/Stepper.js +2 -2
  104. package/dist/components/navigation/Stepper/StepperItem.js +3 -6
  105. package/dist/components/navigation/Stepper/StepperSeparator.js +1 -1
  106. package/dist/components/overlays/ActionModal/ActionModal.js +1 -1
  107. package/dist/components/overlays/BottomSheet/BottomSheet.js +2 -2
  108. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +3 -6
  109. package/dist/components/overlays/Drawer/Drawer.js +1 -1
  110. package/dist/components/overlays/Modal/Modal.js +2 -2
  111. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +1 -1
  112. package/dist/components/overlays/Tooltip/Tooltip.js +6 -8
  113. package/dist/components/overlays/Tooltip/TooltipEllipsis.js +1 -1
  114. package/dist/components/segment/Segment.js +3 -3
  115. package/dist/components/segment/SegmentItem.js +1 -1
  116. package/dist/components/shared/pagination/Pagination.js +1 -1
  117. package/dist/components/shared/pagination/PaginationList.js +2 -2
  118. package/dist/components/status/Loader/Loader.js +1 -1
  119. package/dist/components/status/Toast/Toast.js +1 -1
  120. package/dist/components/status/Toast/useToast.js +1 -1
  121. package/dist/components/table/ColumnConfig.js +1 -1
  122. package/dist/components/table/InfiniteTable.js +1 -1
  123. package/dist/components/table/PaginatedTable.js +1 -1
  124. package/dist/components/table/Table.js +39 -149
  125. package/dist/components/text/Link/Link.js +1 -1
  126. package/dist/components/text/Pill/Pill.js +3 -6
  127. package/dist/components/text/Tag/Tag.js +3 -6
  128. package/dist/config/confirmation.context.js +1 -1
  129. package/dist/config/link.context.js +1 -1
  130. package/dist/config/router.context.js +1 -1
  131. package/dist/config/theme.context.js +1 -1
  132. package/dist/config/uiConfig.context.js +5 -14
  133. package/dist/config/uiOverrides.context.js +1 -1
  134. package/dist/rhf/Inputs.js +1 -1
  135. package/package.json +1 -1
  136. package/dist/node_modules/.pnpm/react-icons-sprite@1.1.1_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.js +0 -15
  137. package/dist/react-icons-sprite-8250f4ef.svg +0 -1
@@ -1,8 +1,8 @@
1
1
  import { modalOverlay } from "../Modal/modal.cva.js";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
2
  import { clsx } from "clsx";
4
3
  import { Dialog, DialogTrigger, Modal, ModalOverlay } from "react-aria-components";
5
4
  import { c } from "react/compiler-runtime";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/components/overlays/Drawer/Drawer.tsx
7
7
  var Drawer = (t0) => {
8
8
  const $ = c(25);
@@ -2,10 +2,10 @@ import { UIOverrides } from "../../../config/uiOverrides.context.js";
2
2
  import { InlineIconButton } from "../../buttons/InlineIconButton/InlineIconButton.js";
3
3
  import "../../../config/i18n.js";
4
4
  import { modalContentDefinition, modalMainDefinition, modalOverlayDefinition } from "./modal.cva.js";
5
- import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { X } from "lucide-react";
6
6
  import { clsx } from "clsx";
7
7
  import { Dialog, Modal, ModalOverlay } from "react-aria-components";
8
- import { X } from "lucide-react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
9
  import { useTranslation } from "react-i18next";
10
10
  //#region src/components/overlays/Modal/Modal.tsx
11
11
  var Modal$1 = ({ isOpen, portalContainerRef, onClose, aside, children, modalClassName, closeIconClassName, overlayClassName, showCloseIcon, isDismissable = true, isKeyboardDismissable, shouldCloseOnInteractOutside }) => {
@@ -2,9 +2,9 @@ import { UIOverrides } from "../../../config/uiOverrides.context.js";
2
2
  import { BottomSheet } from "../BottomSheet/BottomSheet.js";
3
3
  import { useBreakpoint } from "../../../hooks/useBreakpoint.js";
4
4
  import { popoverDefinition } from "../../shared/popover.cva.js";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
5
  import { clsx } from "clsx";
7
6
  import { Dialog, DialogTrigger, Popover } from "react-aria-components";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
8
  //#region src/components/overlays/ResponsivePopover/ResponsivePopover.tsx
9
9
  var ResponsivePopover = ({ trigger, isOpen, onOpenChange, children, popoverClassName, sheetLabel, bottomSheetProps, popoverProps }) => {
10
10
  const popoverCva = UIOverrides.useCva("popover.cva", popoverDefinition);
@@ -1,12 +1,12 @@
1
- import { ReactIconsSpriteIcon } from "../../../node_modules/.pnpm/react-icons-sprite@1.1.1_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.js";
2
1
  import { UIOverrides } from "../../../config/uiOverrides.context.js";
3
2
  import { tooltipDefinition, tooltipPointerHorizontalDefinition, tooltipPointerVerticalDefinition, tooltipTextDefinition } from "./tooltip.cva.js";
4
3
  import { Typography } from "../../text/Typography/Typography.js";
5
- import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { Triangle, TriangleRight } from "lucide-react";
6
5
  import { clsx } from "clsx";
7
- import { Fragment as Fragment$1, useRef } from "react";
6
+ import { Fragment, useRef } from "react";
8
7
  import { OverlayArrow, Tooltip, TooltipTrigger } from "react-aria-components";
9
8
  import { c } from "react/compiler-runtime";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
10
  import { useFocusable } from "react-aria";
11
11
  //#region src/components/overlays/Tooltip/Tooltip.tsx
12
12
  var CustomTrigger = (t0) => {
@@ -50,7 +50,7 @@ var Tooltip$1 = (t0) => {
50
50
  const tooltipPointerHorizontalCva = UIOverrides.useCva("tooltip.pointerHorizontalCva", tooltipPointerHorizontalDefinition);
51
51
  const tooltipPointerVerticalCva = UIOverrides.useCva("tooltip.pointerVerticalCva", tooltipPointerVerticalDefinition);
52
52
  const tooltipTextCva = UIOverrides.useCva("tooltip.textCva", tooltipTextDefinition);
53
- const Trigger = isNonInteractiveTrigger ? CustomTrigger : Fragment$1;
53
+ const Trigger = isNonInteractiveTrigger ? CustomTrigger : Fragment;
54
54
  const T0 = TooltipTrigger;
55
55
  const t1 = delay ?? 0;
56
56
  const t2 = closeDelay ?? 0;
@@ -82,8 +82,7 @@ var Tooltip$1 = (t0) => {
82
82
  } else t5 = $[8];
83
83
  let t6;
84
84
  if ($[9] !== t5) {
85
- t6 = /* @__PURE__ */ jsx(ReactIconsSpriteIcon, {
86
- iconId: "ri-lucide-react-Triangle",
85
+ t6 = /* @__PURE__ */ jsx(Triangle, {
87
86
  className: t5,
88
87
  fill: "currentColor",
89
88
  strokeWidth: 0
@@ -100,8 +99,7 @@ var Tooltip$1 = (t0) => {
100
99
  } else t7 = $[13];
101
100
  let t8;
102
101
  if ($[14] !== t7) {
103
- t8 = /* @__PURE__ */ jsx(ReactIconsSpriteIcon, {
104
- iconId: "ri-lucide-react-TriangleRight",
102
+ t8 = /* @__PURE__ */ jsx(TriangleRight, {
105
103
  className: t7,
106
104
  fill: "currentColor",
107
105
  strokeWidth: 0
@@ -1,7 +1,7 @@
1
1
  import { Tooltip } from "./Tooltip.js";
2
- import { jsx } from "react/jsx-runtime";
3
2
  import { useState } from "react";
4
3
  import { c } from "react/compiler-runtime";
4
+ import { jsx } from "react/jsx-runtime";
5
5
  //#region src/components/overlays/Tooltip/TooltipEllipsis.tsx
6
6
  var TooltipEllipsis = (t0) => {
7
7
  const $ = c(8);
@@ -3,11 +3,11 @@ import { FieldController } from "../inputs/shared/form.binding.js";
3
3
  import { FormField } from "../inputs/FormField/FormField.js";
4
4
  import { segmentDefinition } from "./segment.cva.js";
5
5
  import { SegmentItem } from "./SegmentItem.js";
6
- import { jsx, jsxs } from "react/jsx-runtime";
7
6
  import { clsx } from "clsx";
8
- import { Fragment as Fragment$1, useRef } from "react";
7
+ import { Fragment, useRef } from "react";
9
8
  import { ToggleButtonGroup } from "react-aria-components";
10
9
  import { c } from "react/compiler-runtime";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
11
  import { useToggleButtonGroup } from "react-aria";
12
12
  import { mergeRefs } from "@react-aria/utils";
13
13
  import { useToggleGroupState } from "react-stately";
@@ -128,7 +128,7 @@ var SegmentBase = (t0) => {
128
128
  } else t9 = $[32];
129
129
  let t10;
130
130
  if ($[33] !== items || $[34] !== props.isDisabled || $[35] !== segmentItemClassName || $[36] !== state) {
131
- t10 = items.map((item, index) => /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(SegmentItem, {
131
+ t10 = items.map((item, index) => /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(SegmentItem, {
132
132
  ...item,
133
133
  className: clsx(item.className, segmentItemClassName),
134
134
  isDisabled: item.isDisabled || props.isDisabled,
@@ -1,9 +1,9 @@
1
1
  import { UIOverrides } from "../../config/uiOverrides.context.js";
2
2
  import { Typography } from "../text/Typography/Typography.js";
3
3
  import { segmentItemDefinition } from "./segment.cva.js";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
4
  import { ToggleButton } from "react-aria-components";
6
5
  import { c } from "react/compiler-runtime";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region src/components/segment/SegmentItem.tsx
8
8
  var SegmentItem = (t0) => {
9
9
  const $ = c(23);
@@ -2,8 +2,8 @@ import { Typography } from "../../text/Typography/Typography.js";
2
2
  import "../../../config/i18n.js";
3
3
  import { NumberInput } from "../../inputs/Input/NumberInput/NumberInput.js";
4
4
  import { PaginationList } from "./PaginationList.js";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
5
  import { clsx } from "clsx";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { useTranslation } from "react-i18next";
8
8
  //#region src/components/shared/pagination/Pagination.tsx
9
9
  var Pagination = ({ size = "s", variant = "subtle", color = "secondary", page, totalItems, totalPages, pageSize, hideText = true, hideFirstLast = true, hidePrevNext = false, hideNumbers = false, className, onPageChange, onPageSizeChange }) => {
@@ -1,10 +1,10 @@
1
1
  import { Button } from "../../buttons/Button/Button.js";
2
2
  import "../../../config/i18n.js";
3
3
  import { minWidth } from "./minWidth.cva.js";
4
- import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight } from "lucide-react";
5
5
  import { clsx } from "clsx";
6
6
  import { c } from "react/compiler-runtime";
7
- import { ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight } from "lucide-react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { useTranslation } from "react-i18next";
9
9
  //#region src/components/shared/pagination/PaginationList.tsx
10
10
  var PaginationList = (t0) => {
@@ -1,6 +1,6 @@
1
1
  import { loader, loaderWrapper } from "./loader.cva.js";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
2
  import { c } from "react/compiler-runtime";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
4
  //#region src/components/status/Loader/Loader.tsx
5
5
  var Loader = (t0) => {
6
6
  const $ = c(18);
@@ -4,8 +4,8 @@ import { Loader } from "../Loader/Loader.js";
4
4
  import { UIConfig } from "../../../config/uiConfig.context.js";
5
5
  import { Button } from "../../buttons/Button/Button.js";
6
6
  import { buttonColorVariant, statusIconDefinition, statusSeparatorDefinition, toastContainerDefinition, toastDefinition, toastWrapper } from "./toast.cva.js";
7
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
7
  import { c } from "react/compiler-runtime";
8
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
9
  import { ToastContainer } from "react-toastify";
10
10
  //#region src/components/status/Toast/Toast.tsx
11
11
  var Toast = ({ text, isLoading = false, actions = [], icon: Icon, ...props }) => {
@@ -1,6 +1,6 @@
1
1
  import { Toast } from "./Toast.js";
2
- import { jsx } from "react/jsx-runtime";
3
2
  import { c } from "react/compiler-runtime";
3
+ import { jsx } from "react/jsx-runtime";
4
4
  import { toast } from "react-toastify";
5
5
  //#region src/components/status/Toast/useToast.tsx
6
6
  var useToast = () => {
@@ -4,9 +4,9 @@ import { Checkbox } from "../inputs/Checkbox/Checkbox.js";
4
4
  import { Modal } from "../overlays/Modal/Modal.js";
5
5
  import { Table } from "./Table.js";
6
6
  import { useTranslationMemo } from "../../hooks/useTranslationMemo.js";
7
- import { jsx, jsxs } from "react/jsx-runtime";
8
7
  import { useEffect, useState } from "react";
9
8
  import { c } from "react/compiler-runtime";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
10
  import { useTranslation } from "react-i18next";
11
11
  //#region src/components/table/ColumnConfig.tsx
12
12
  var VisibilityCell = (t0) => {
@@ -1,8 +1,8 @@
1
1
  import { Loader } from "../status/Loader/Loader.js";
2
2
  import { useIntersectionObserver } from "../../hooks/useIntersectionObserver.js";
3
3
  import { Table } from "./Table.js";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
4
  import { useCallback } from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/components/table/InfiniteTable.tsx
7
7
  var InfiniteTable = ({ hasNextPage, isFetchingNextPage = false, fetchNextPage, ...rest }) => {
8
8
  const { ref } = useIntersectionObserver({
@@ -1,7 +1,7 @@
1
1
  import { Pagination } from "../shared/pagination/Pagination.js";
2
2
  import { Table } from "./Table.js";
3
- import { jsx, jsxs } from "react/jsx-runtime";
4
3
  import { c } from "react/compiler-runtime";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/table/PaginatedTable.tsx
6
6
  var PaginatedTable = (t0) => {
7
7
  const $ = c(24);
@@ -1,4 +1,4 @@
1
- import { ReactIconsSpriteIcon } from "../../node_modules/.pnpm/react-icons-sprite@1.1.1_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.js";
1
+ "use no memo";
2
2
  import { UIOverrides } from "../../config/uiOverrides.context.js";
3
3
  import { InlineIconButton } from "../buttons/InlineIconButton/InlineIconButton.js";
4
4
  import { useIntersectionObserver } from "../../hooks/useIntersectionObserver.js";
@@ -6,11 +6,10 @@ import { tableDataDefinition, tableHeadDataDefinition, tableHeadRowDefinition, t
6
6
  import { CellText } from "./CellText.js";
7
7
  import { HeaderText } from "./HeaderText.js";
8
8
  import { useTableNav } from "../../hooks/useTableNav.js";
9
- import { jsx, jsxs } from "react/jsx-runtime";
9
+ import { ChevronDown, ChevronUp, GripVertical } from "lucide-react";
10
10
  import { clsx } from "clsx";
11
11
  import { useCallback, useMemo, useRef, useState } from "react";
12
- import { c } from "react/compiler-runtime";
13
- import { GripVertical } from "lucide-react";
12
+ import { jsx, jsxs } from "react/jsx-runtime";
14
13
  import { DndContext, KeyboardSensor, MouseSensor, TouchSensor, closestCenter, useSensor, useSensors } from "@dnd-kit/core";
15
14
  import { restrictToVerticalAxis } from "@dnd-kit/modifiers";
16
15
  import { SortableContext, arrayMove, useSortable, verticalListSortingStrategy } from "@dnd-kit/sortable";
@@ -30,155 +29,48 @@ var renderCell = (Comp, props) => {
30
29
  const rendered = flexRender(Comp, props);
31
30
  return typeof rendered === "string" ? /* @__PURE__ */ jsx(CellText, { children: rendered }) : rendered;
32
31
  };
33
- var RowDragHandleCell = (t0) => {
34
- const $ = c(5);
35
- const { rowId } = t0;
36
- let t1;
37
- if ($[0] !== rowId) {
38
- t1 = { id: rowId };
39
- $[0] = rowId;
40
- $[1] = t1;
41
- } else t1 = $[1];
42
- const { attributes, listeners } = useSortable(t1);
43
- let t2;
44
- if ($[2] !== attributes || $[3] !== listeners) {
45
- t2 = /* @__PURE__ */ jsx(InlineIconButton, {
46
- ...attributes,
47
- ...listeners,
48
- className: "cursor-move p-1",
49
- label: "Drag handle",
50
- icon: GripVertical
51
- });
52
- $[2] = attributes;
53
- $[3] = listeners;
54
- $[4] = t2;
55
- } else t2 = $[4];
56
- return t2;
57
- };
58
- var AutoDragHandleCell = (t0) => {
59
- const $ = c(2);
60
- const { row } = t0;
61
- let t1;
62
- if ($[0] !== row.id) {
63
- t1 = /* @__PURE__ */ jsx(RowDragHandleCell, { rowId: row.id });
64
- $[0] = row.id;
65
- $[1] = t1;
66
- } else t1 = $[1];
67
- return t1;
32
+ var RowDragHandleCell = ({ rowId }) => {
33
+ const { attributes, listeners } = useSortable({ id: rowId });
34
+ return /* @__PURE__ */ jsx(InlineIconButton, {
35
+ ...attributes,
36
+ ...listeners,
37
+ className: "cursor-move p-1",
38
+ label: "Drag handle",
39
+ icon: GripVertical
40
+ });
68
41
  };
69
- var DraggableRow = (t0) => {
70
- const $ = c(36);
71
- const { row, showCellBorder, onRowClick, onDoubleClick, tableRowCva, tableDataCva, hasOnClick, ...props } = t0;
72
- let t1;
73
- if ($[0] !== row.id) {
74
- t1 = { id: row.id };
75
- $[0] = row.id;
76
- $[1] = t1;
77
- } else t1 = $[1];
78
- const { transform, transition, setNodeRef, isDragging } = useSortable(t1);
79
- let t2;
80
- if ($[2] !== transform) {
81
- t2 = CSS.Transform.toString(transform);
82
- $[2] = transform;
83
- $[3] = t2;
84
- } else t2 = $[3];
85
- const t3 = isDragging ? .8 : 1;
86
- const t4 = isDragging ? 1 : 0;
87
- let t5;
88
- if ($[4] !== t2 || $[5] !== t3 || $[6] !== t4 || $[7] !== transition) {
89
- t5 = {
90
- transform: t2,
42
+ var AutoDragHandleCell = ({ row }) => /* @__PURE__ */ jsx(RowDragHandleCell, { rowId: row.id });
43
+ var DraggableRow = ({ row, showCellBorder, onRowClick, onDoubleClick, tableRowCva, tableDataCva, hasOnClick, ...props }) => {
44
+ const { transform, transition, setNodeRef, isDragging } = useSortable({ id: row.id });
45
+ return /* @__PURE__ */ jsx("tr", {
46
+ ref: setNodeRef,
47
+ style: {
48
+ transform: CSS.Transform.toString(transform),
91
49
  transition,
92
- opacity: t3,
93
- zIndex: t4,
50
+ opacity: isDragging ? .8 : 1,
51
+ zIndex: isDragging ? 1 : 0,
94
52
  position: "relative"
95
- };
96
- $[4] = t2;
97
- $[5] = t3;
98
- $[6] = t4;
99
- $[7] = transition;
100
- $[8] = t5;
101
- } else t5 = $[8];
102
- const style = t5;
103
- let t6;
104
- if ($[9] !== hasOnClick || $[10] !== row) {
105
- t6 = hasOnClick || row.getCanSelect() || void 0;
106
- $[9] = hasOnClick;
107
- $[10] = row;
108
- $[11] = t6;
109
- } else t6 = $[11];
110
- let t7;
111
- if ($[12] !== row) {
112
- t7 = row.getIsSelected() || void 0;
113
- $[12] = row;
114
- $[13] = t7;
115
- } else t7 = $[13];
116
- const t8 = clsx(tableRowCva(props));
117
- let t9;
118
- if ($[14] !== onRowClick || $[15] !== row) {
119
- t9 = () => {
53
+ },
54
+ "data-clickable": hasOnClick || row.getCanSelect() || void 0,
55
+ "data-selected": row.getIsSelected() || void 0,
56
+ className: clsx(tableRowCva(props)),
57
+ onClick: () => {
120
58
  if (onRowClick) {
121
59
  onRowClick(row.original);
122
60
  return;
123
61
  }
124
62
  if (row.getCanSelect()) row.toggleSelected();
125
- };
126
- $[14] = onRowClick;
127
- $[15] = row;
128
- $[16] = t9;
129
- } else t9 = $[16];
130
- let t10;
131
- if ($[17] !== onDoubleClick || $[18] !== row.original) {
132
- t10 = () => onDoubleClick?.(row.original);
133
- $[17] = onDoubleClick;
134
- $[18] = row.original;
135
- $[19] = t10;
136
- } else t10 = $[19];
137
- let t11;
138
- if ($[20] !== row || $[21] !== showCellBorder || $[22] !== tableDataCva) {
139
- let t12;
140
- if ($[24] !== showCellBorder || $[25] !== tableDataCva) {
141
- t12 = (cell, cellIndex) => {
142
- const columnMeta = cell.column.columnDef.meta ?? {};
143
- return /* @__PURE__ */ jsx("td", {
144
- tabIndex: -1,
145
- className: clsx(tableDataCva({ hasRightBorder: cellIndex > 0 && showCellBorder }), columnMeta.cellClass, columnMeta.width),
146
- children: renderCell(cell.column.columnDef.cell, CustomCellContext(cell.getContext()))
147
- }, cell.id);
148
- };
149
- $[24] = showCellBorder;
150
- $[25] = tableDataCva;
151
- $[26] = t12;
152
- } else t12 = $[26];
153
- t11 = row.getVisibleCells().map(t12);
154
- $[20] = row;
155
- $[21] = showCellBorder;
156
- $[22] = tableDataCva;
157
- $[23] = t11;
158
- } else t11 = $[23];
159
- let t12;
160
- if ($[27] !== setNodeRef || $[28] !== style || $[29] !== t10 || $[30] !== t11 || $[31] !== t6 || $[32] !== t7 || $[33] !== t8 || $[34] !== t9) {
161
- t12 = /* @__PURE__ */ jsx("tr", {
162
- ref: setNodeRef,
163
- style,
164
- "data-clickable": t6,
165
- "data-selected": t7,
166
- className: t8,
167
- onClick: t9,
168
- onDoubleClick: t10,
169
- children: t11
170
- });
171
- $[27] = setNodeRef;
172
- $[28] = style;
173
- $[29] = t10;
174
- $[30] = t11;
175
- $[31] = t6;
176
- $[32] = t7;
177
- $[33] = t8;
178
- $[34] = t9;
179
- $[35] = t12;
180
- } else t12 = $[35];
181
- return t12;
63
+ },
64
+ onDoubleClick: () => onDoubleClick?.(row.original),
65
+ children: row.getVisibleCells().map((cell, cellIndex) => {
66
+ const columnMeta = cell.column.columnDef.meta ?? {};
67
+ return /* @__PURE__ */ jsx("td", {
68
+ tabIndex: -1,
69
+ className: clsx(tableDataCva({ hasRightBorder: cellIndex > 0 && showCellBorder }), columnMeta.cellClass, columnMeta.width),
70
+ children: renderCell(cell.column.columnDef.cell, CustomCellContext(cell.getContext()))
71
+ }, cell.id);
72
+ })
73
+ });
182
74
  };
183
75
  var Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, className, sorting, setSorting, columnOrder, setColumnOrder, columnVisibility, setColumnVisibility, bulkSelectionActions: ActionHeader, enableDragDrop = false, onDragEnd, onReorder, getRowId, enableRowSelection, enableMultiRowSelection = false, defaultSelectedRows, onRowSelectionChange, ...props }) => {
184
76
  const tableRowCva = UIOverrides.useCva("table.rowCva", tableRowDefinition);
@@ -305,13 +197,11 @@ var Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, classN
305
197
  className: clsx("flex select-none items-center gap-1 text-text-default-1", header_0.column.getCanSort() ? "h-6 cursor-pointer rounded-xs px-1 hover:bg-elevation-fill-default-2" : "cursor-default", columnMeta.sortClass),
306
198
  onClick: header_0.column.getToggleSortingHandler(),
307
199
  children: [typeof header_0.column.columnDef.header === "function" ? flexRender(header_0.column.columnDef.header, header_0.getContext()) : /* @__PURE__ */ jsx(HeaderText, { children: header_0.column.columnDef.header }), {
308
- asc: /* @__PURE__ */ jsx(ReactIconsSpriteIcon, {
309
- iconId: "ri-lucide-react-ChevronUp",
200
+ asc: /* @__PURE__ */ jsx(ChevronUp, {
310
201
  width: 18,
311
202
  height: 18
312
203
  }),
313
- desc: /* @__PURE__ */ jsx(ReactIconsSpriteIcon, {
314
- iconId: "ri-lucide-react-ChevronDown",
204
+ desc: /* @__PURE__ */ jsx(ChevronDown, {
315
205
  width: 18,
316
206
  height: 18
317
207
  })
@@ -1,9 +1,9 @@
1
1
  import { UIOverrides } from "../../../config/uiOverrides.context.js";
2
2
  import { LinkContext } from "../../../config/link.context.js";
3
3
  import { linkDefinition } from "./link.cva.js";
4
- import { jsx } from "react/jsx-runtime";
5
4
  import { Link } from "react-aria-components";
6
5
  import { c } from "react/compiler-runtime";
6
+ import { jsx } from "react/jsx-runtime";
7
7
  //#region src/components/text/Link/Link.tsx
8
8
  var Link$1 = (t0) => {
9
9
  const $ = c(4);
@@ -1,12 +1,12 @@
1
- import { ReactIconsSpriteIcon } from "../../../node_modules/.pnpm/react-icons-sprite@1.1.1_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.js";
2
1
  import { UIOverrides } from "../../../config/uiOverrides.context.js";
3
2
  import { Typography } from "../Typography/Typography.js";
4
3
  import { UIConfig } from "../../../config/uiConfig.context.js";
5
4
  import { pillButtonDefinition } from "../../buttons/PillButton/pillButton.cva.js";
6
5
  import "../../../config/i18n.js";
7
- import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { X } from "lucide-react";
8
7
  import { clsx } from "clsx";
9
8
  import { Button } from "react-aria-components";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
10
  import { useTranslation } from "react-i18next";
11
11
  //#region src/components/text/Pill/Pill.tsx
12
12
  var Pill = ({ className, children, dismissable, isDisabled, onDismiss, contentRef, variant = "subtle", ...props }) => {
@@ -36,10 +36,7 @@ var Pill = ({ className, children, dismissable, isDisabled, onDismiss, contentRe
36
36
  }), dismissable && /* @__PURE__ */ jsx(Button, {
37
37
  ...buttonProps,
38
38
  className: "pointer-events-auto shrink-0",
39
- children: /* @__PURE__ */ jsx(ReactIconsSpriteIcon, {
40
- iconId: "ri-lucide-react-X",
41
- className: "size-4"
42
- })
39
+ children: /* @__PURE__ */ jsx(X, { className: "size-4" })
43
40
  })]
44
41
  });
45
42
  };
@@ -1,12 +1,12 @@
1
- import { ReactIconsSpriteIcon } from "../../../node_modules/.pnpm/react-icons-sprite@1.1.1_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.js";
2
1
  import { UIOverrides } from "../../../config/uiOverrides.context.js";
3
2
  import { Typography } from "../Typography/Typography.js";
4
3
  import { UIConfig } from "../../../config/uiConfig.context.js";
5
4
  import "../../../config/i18n.js";
6
5
  import { tagDefinition } from "./tag.cva.js";
7
- import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { X } from "lucide-react";
8
7
  import { clsx } from "clsx";
9
8
  import { Button } from "react-aria-components";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
10
  import { useTranslation } from "react-i18next";
11
11
  //#region src/components/text/Tag/Tag.tsx
12
12
  var Tag = ({ className, children, dismissable, isDisabled, onDismiss, contentRef, ...props }) => {
@@ -35,10 +35,7 @@ var Tag = ({ className, children, dismissable, isDisabled, onDismiss, contentRef
35
35
  }), dismissable && /* @__PURE__ */ jsx(Button, {
36
36
  ...buttonProps,
37
37
  className: "pointer-events-auto shrink-0",
38
- children: /* @__PURE__ */ jsx(ReactIconsSpriteIcon, {
39
- iconId: "ri-lucide-react-X",
40
- className: "size-4"
41
- })
38
+ children: /* @__PURE__ */ jsx(X, { className: "size-4" })
42
39
  })]
43
40
  });
44
41
  };
@@ -1,7 +1,7 @@
1
1
  import "./i18n.js";
2
2
  import { ActionModal } from "../components/overlays/ActionModal/ActionModal.js";
3
- import { jsx, jsxs } from "react/jsx-runtime";
4
3
  import { createContext, use, useCallback, useMemo, useState } from "react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { useTranslation } from "react-i18next";
6
6
  //#region src/config/confirmation.context.tsx
7
7
  var Confirmation;
@@ -1,6 +1,6 @@
1
- import { jsx } from "react/jsx-runtime";
2
1
  import { createContext, use } from "react";
3
2
  import { c } from "react/compiler-runtime";
3
+ import { jsx } from "react/jsx-runtime";
4
4
  //#region src/config/link.context.tsx
5
5
  var LinkContext;
6
6
  (function(_LinkContext) {
@@ -1,6 +1,6 @@
1
- import { jsx } from "react/jsx-runtime";
2
1
  import { createContext, use } from "react";
3
2
  import { c } from "react/compiler-runtime";
3
+ import { jsx } from "react/jsx-runtime";
4
4
  import { RouterProvider } from "react-aria";
5
5
  //#region src/config/router.context.tsx
6
6
  var UIRouter;
@@ -1,6 +1,6 @@
1
1
  import { useLocalStorage } from "../hooks/useLocalStorage.js";
2
- import { jsx } from "react/jsx-runtime";
3
2
  import { createContext, use, useCallback, useEffect, useMemo, useState } from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
4
  import { z } from "zod";
5
5
  //#region src/config/theme.context.tsx
6
6
  var ThemeContext;
@@ -1,8 +1,8 @@
1
- import { ReactIconsSpriteIcon } from "../node_modules/.pnpm/react-icons-sprite@1.1.1_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.js";
2
1
  import { ObjectUtils } from "../utils/object.utils.js";
3
2
  import { useDeepCompareMemo } from "../hooks/useDeepCompare.js";
4
- import { jsx } from "react/jsx-runtime";
3
+ import { Calendar, CalendarClock, Clock } from "lucide-react";
5
4
  import { createContext, use } from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
6
  //#region src/config/uiConfig.context.tsx
7
7
  var UIConfig;
8
8
  (function(_UIConfig) {
@@ -68,18 +68,9 @@ var UIConfig;
68
68
  shouldForceLeadingZeros: false,
69
69
  disableManualEntry: false,
70
70
  autoFixYear: false,
71
- calendarIcon: /* @__PURE__ */ jsx(ReactIconsSpriteIcon, {
72
- iconId: "ri-lucide-react-Calendar",
73
- className: "size-4"
74
- }),
75
- dateTimeIcon: /* @__PURE__ */ jsx(ReactIconsSpriteIcon, {
76
- iconId: "ri-lucide-react-CalendarClock",
77
- className: "size-4"
78
- }),
79
- timeIcon: /* @__PURE__ */ jsx(ReactIconsSpriteIcon, {
80
- iconId: "ri-lucide-react-Clock",
81
- className: "size-4 text-interactive-text-secondary-idle"
82
- }),
71
+ calendarIcon: /* @__PURE__ */ jsx(Calendar, { className: "size-4" }),
72
+ dateTimeIcon: /* @__PURE__ */ jsx(CalendarClock, { className: "size-4" }),
73
+ timeIcon: /* @__PURE__ */ jsx(Clock, { className: "size-4 text-interactive-text-secondary-idle" }),
83
74
  setDateValueOnDateSelection: false,
84
75
  timeZone: "clientLocal",
85
76
  granularity: "day",
@@ -1,9 +1,9 @@
1
1
  import { StyleMergeUtils } from "../utils/style-merge.util.js";
2
- import { jsx } from "react/jsx-runtime";
3
2
  import { clsx } from "clsx";
4
3
  import { createContext, use } from "react";
5
4
  import { c } from "react/compiler-runtime";
6
5
  import { cva } from "class-variance-authority";
6
+ import { jsx } from "react/jsx-runtime";
7
7
  //#region src/config/uiOverrides.context.tsx
8
8
  var UIOverrides;
9
9
  (function(_UIOverrides) {
@@ -1,8 +1,8 @@
1
1
  import { Autocomplete, Checkbox, CheckboxGroup, DatePicker, DateRangePicker, DateTimePicker, NumberInput, NumberRangeInput, PasswordInput, QueryAutocomplete, QuerySelect, Segment, Select, Slider, TextArea, TextInput, TimePicker, Toggle } from "./components.js";
2
2
  import { StringUtils } from "../utils/string.utils.js";
3
3
  import { ZodUtils } from "../utils/zod.utils.js";
4
- import { jsx } from "react/jsx-runtime";
5
4
  import { c } from "react/compiler-runtime";
5
+ import { jsx } from "react/jsx-runtime";
6
6
  import { z } from "zod";
7
7
  //#region src/rhf/Inputs.tsx
8
8
  var componentRegistry = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@povio/ui",
3
- "version": "3.4.0-rc.7",
3
+ "version": "3.4.0-rc.9",
4
4
  "type": "module",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,15 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- //#region ../../node_modules/.pnpm/react-icons-sprite@1.1.1_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.mjs
3
- var ReactIconsSpriteIcon = ({ iconId, ...rest }) => {
4
- const iconHref = `/react-icons-sprite-8250f4ef.svg#${iconId}`;
5
- return /* @__PURE__ */ jsx("svg", {
6
- height: "1em",
7
- width: "1em",
8
- preserveAspectRatio: "xMidYMid meet",
9
- viewBox: "0 0 24 24",
10
- ...rest,
11
- children: /* @__PURE__ */ jsx("use", { href: iconHref })
12
- });
13
- };
14
- //#endregion
15
- export { ReactIconsSpriteIcon };