@povio/ui 3.4.0-rc.1 → 3.4.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/locales/en/translation.json.d.ts +158 -0
- package/dist/assets/locales/sl/translation.json.d.ts +154 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +7 -7
- package/dist/components/Menu/MenuDesktop.js +1 -1
- package/dist/components/Menu/MenuItem.js +4 -4
- package/dist/components/Menu/MenuMobile.js +5 -5
- package/dist/components/Menu/MenuPopover.js +2 -2
- package/dist/components/buttons/Button/Button.js +1 -1
- package/dist/components/buttons/PillButton/PillButton.js +4 -4
- package/dist/components/buttons/PillButton/pillButton.cva.d.ts +1 -1
- package/dist/components/buttons/SplitButton/SplitButton.js +3 -3
- package/dist/components/buttons/shared/ButtonContent.js +2 -2
- package/dist/components/buttons/shared/buttonContent.cva.d.ts +1 -1
- package/dist/components/inputs/Checkbox/Checkbox.js +2 -2
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +2 -3
- package/dist/components/inputs/Checkbox/CheckboxGroup.js +2 -2
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +5 -3
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +5 -3
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +9 -6
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +199 -193
- package/dist/components/inputs/DateTime/shared/Calendar.js +1 -1
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +1 -1
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +1 -1
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +7 -10
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +8 -12
- package/dist/components/inputs/DateTime/shared/DateField.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/DateField.js +4 -4
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +8 -7
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +3 -3
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +2 -2
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +1 -1
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +2 -2
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +2 -2
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +4 -5
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +49 -47
- package/dist/components/inputs/DateTime/shared/YearPicker.js +2 -2
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +46 -1
- package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +1 -1
- package/dist/components/inputs/File/FileUpload.js +3 -3
- package/dist/components/inputs/File/InputUpload.js +2 -2
- package/dist/components/inputs/File/shared/FileCard.js +1 -1
- package/dist/components/inputs/File/shared/FileCardList.js +1 -1
- package/dist/components/inputs/File/shared/FileUploadContent.js +1 -1
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +3 -3
- package/dist/components/inputs/File/shared/FileUploadContentError.js +5 -6
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +5 -6
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +4 -5
- package/dist/components/inputs/File/shared/InputUploadContent.js +4 -4
- package/dist/components/inputs/File/shared/InputUploadFilled.js +3 -3
- package/dist/components/inputs/FormField/FormFieldError.js +1 -1
- package/dist/components/inputs/FormField/FormFieldHeader.js +4 -4
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +3 -3
- package/dist/components/inputs/FormField/FormFieldHelper.js +1 -1
- package/dist/components/inputs/FormField/FormFieldLabel.js +2 -2
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +90 -88
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +2 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +265 -254
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +1 -0
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +7 -6
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +3 -4
- package/dist/components/inputs/Input/TextArea/TextArea.d.ts +1 -0
- package/dist/components/inputs/Input/TextArea/TextArea.js +100 -99
- package/dist/components/inputs/Input/TextInput/TextInput.js +93 -91
- package/dist/components/inputs/Input/shared/InputContent.d.ts +2 -1
- package/dist/components/inputs/Input/shared/InputContent.js +50 -48
- package/dist/components/inputs/Inputs/Form.js +1 -1
- package/dist/components/inputs/Inputs/InputItem.d.ts +1 -1
- package/dist/components/inputs/Inputs/InputItem.js +1 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.js +2 -2
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +3 -3
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +1 -1
- package/dist/components/inputs/Selection/Select/QuerySelect.js +1 -1
- package/dist/components/inputs/Selection/Select/Select.js +4 -4
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +1 -0
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +58 -56
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectInput.js +57 -56
- package/dist/components/inputs/Selection/shared/SelectListBox.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +2 -2
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +2 -2
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectMobile.js +5 -4
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +3 -3
- package/dist/components/inputs/Selection/shared/select.context.js +1 -1
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +1 -0
- package/dist/components/inputs/Skeleton/InputFrame.js +10 -7
- package/dist/components/inputs/Slider/Slider.js +2 -2
- package/dist/components/inputs/TextEditor/TextEditor.js +2 -2
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +2 -2
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +4 -4
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +4 -4
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +5 -8
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +3 -3
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +4 -5
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +4 -5
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +6 -9
- package/dist/components/inputs/Toggle/Toggle.js +2 -2
- package/dist/components/inputs/shared/CheckContent.js +1 -1
- package/dist/components/inputs/shared/InputClear.js +45 -28
- package/dist/components/inputs/shared/TooltipWrapper.d.ts +1 -1
- package/dist/components/inputs/shared/input.cva.js +1 -1
- package/dist/components/inputs/shared/useStaticInputHandoff.js +64 -38
- package/dist/components/navigation/Accordion/Accordion.js +1 -1
- package/dist/components/navigation/Accordion/AccordionItem.js +3 -3
- package/dist/components/navigation/Stepper/Stepper.js +2 -2
- package/dist/components/navigation/Stepper/StepperItem.js +4 -4
- package/dist/components/overlays/ActionModal/ActionModal.js +1 -1
- package/dist/components/overlays/BottomSheet/BottomSheet.js +3 -3
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +4 -4
- package/dist/components/overlays/Drawer/Drawer.js +2 -2
- package/dist/components/overlays/Modal/Modal.js +3 -3
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +15 -8
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +1 -1
- package/dist/components/segment/Segment.js +4 -4
- package/dist/components/segment/SegmentItem.js +1 -1
- package/dist/components/shared/pagination/Pagination.js +1 -1
- package/dist/components/shared/pagination/PaginationList.js +6 -9
- package/dist/components/table/ColumnConfig.js +1 -1
- package/dist/components/table/InfiniteTable.js +1 -1
- package/dist/components/table/Table.js +6 -8
- package/dist/components/text/Link/Link.js +1 -1
- package/dist/components/text/Pill/Pill.js +3 -3
- package/dist/components/text/Tag/Tag.js +3 -3
- package/dist/config/confirmation.context.js +1 -1
- package/dist/config/link.context.js +1 -1
- package/dist/config/router.context.js +1 -1
- package/dist/config/theme.context.js +1 -1
- package/dist/config/uiConfig.context.d.ts +13 -4
- package/dist/config/uiConfig.context.js +19 -12
- package/dist/config/uiOverrides.context.js +2 -2
- package/dist/hooks/useFilters.js +1 -1
- package/dist/hooks/useForm.js +1 -1
- package/dist/hooks/useIntersectionObserver.js +1 -1
- package/dist/hooks/useLocalStorage.js +1 -1
- package/dist/hooks/usePagination.js +1 -1
- package/dist/hooks/useScrollableListBox.js +1 -1
- package/dist/hooks/useSorting.js +1 -1
- package/dist/hooks/useStateAndRef.js +1 -1
- package/dist/hooks/useTableColumnConfig.js +1 -1
- package/dist/index.d.ts +1 -263
- package/dist/index.js +10 -70
- package/dist/rhf/Inputs.d.ts +60 -0
- package/dist/rhf/Inputs.js +148 -0
- package/dist/rhf/components.d.ts +80 -0
- package/dist/rhf/components.js +101 -0
- package/dist/rhf/dynamicInputs.d.ts +18 -0
- package/dist/rhf/dynamicInputs.js +5 -0
- package/dist/rhf/entrypoints.type-test.d.ts +1 -0
- package/dist/rhf/fieldAdapter.d.ts +7 -0
- package/dist/rhf/fieldAdapter.js +40 -0
- package/dist/rhf/form.types.d.ts +12 -0
- package/dist/rhf/useAutosave.d.ts +10 -0
- package/dist/rhf/useAutosave.js +71 -0
- package/dist/rhf/useForm.d.ts +18 -0
- package/dist/rhf/useForm.js +48 -0
- package/dist/rhf/useFormAutosave.d.ts +15 -0
- package/dist/rhf/useFormAutosave.js +59 -0
- package/dist/rhf.d.ts +225 -0
- package/dist/tanstack.d.ts +224 -0
- package/dist/tanstack.js +141 -0
- package/package.json +15 -2
- package/dist/assets/icons/Account.d.ts +0 -2
- package/dist/assets/icons/AlignCenter.d.ts +0 -2
- package/dist/assets/icons/AlignCenter.js +0 -30
- package/dist/assets/icons/AlignLeft.d.ts +0 -2
- package/dist/assets/icons/AlignLeft.js +0 -30
- package/dist/assets/icons/AlignLeftRight.d.ts +0 -2
- package/dist/assets/icons/AlignLeftRight.js +0 -30
- package/dist/assets/icons/AlignRight.d.ts +0 -2
- package/dist/assets/icons/AlignRight.js +0 -30
- package/dist/assets/icons/ArrowDropDown.d.ts +0 -2
- package/dist/assets/icons/ArrowDropDown.js +0 -30
- package/dist/assets/icons/ArrowDropUp.d.ts +0 -2
- package/dist/assets/icons/ArrowDropUp.js +0 -30
- package/dist/assets/icons/ArrowLeft.d.ts +0 -2
- package/dist/assets/icons/ArrowLeft.js +0 -30
- package/dist/assets/icons/ArrowRight.d.ts +0 -2
- package/dist/assets/icons/ArrowRight.js +0 -30
- package/dist/assets/icons/Board.d.ts +0 -2
- package/dist/assets/icons/Bold.d.ts +0 -2
- package/dist/assets/icons/Bold.js +0 -30
- package/dist/assets/icons/BulletedList.d.ts +0 -2
- package/dist/assets/icons/BulletedList.js +0 -30
- package/dist/assets/icons/Calendar.d.ts +0 -2
- package/dist/assets/icons/Calendar.js +0 -32
- package/dist/assets/icons/Check.d.ts +0 -2
- package/dist/assets/icons/Check.js +0 -32
- package/dist/assets/icons/CheckCircle.d.ts +0 -2
- package/dist/assets/icons/CheckCircle.js +0 -30
- package/dist/assets/icons/CheckboxCheckmark.d.ts +0 -2
- package/dist/assets/icons/CheckboxCheckmark.js +0 -33
- package/dist/assets/icons/CheckboxIndeterminate.d.ts +0 -2
- package/dist/assets/icons/CheckboxIndeterminate.js +0 -33
- package/dist/assets/icons/ChevronDown.d.ts +0 -2
- package/dist/assets/icons/ChevronDown.js +0 -32
- package/dist/assets/icons/ChevronLeft.d.ts +0 -2
- package/dist/assets/icons/ChevronLeft.js +0 -32
- package/dist/assets/icons/ChevronRight.d.ts +0 -2
- package/dist/assets/icons/ChevronRight.js +0 -32
- package/dist/assets/icons/ChevronUp.d.ts +0 -2
- package/dist/assets/icons/ChevronUp.js +0 -32
- package/dist/assets/icons/ChevronsLeft.d.ts +0 -2
- package/dist/assets/icons/ChevronsLeft.js +0 -32
- package/dist/assets/icons/ChevronsRight.d.ts +0 -2
- package/dist/assets/icons/ChevronsRight.js +0 -32
- package/dist/assets/icons/Clock.d.ts +0 -2
- package/dist/assets/icons/Clock.js +0 -30
- package/dist/assets/icons/Close.d.ts +0 -2
- package/dist/assets/icons/Close.js +0 -30
- package/dist/assets/icons/DateTime.d.ts +0 -2
- package/dist/assets/icons/DateTime.js +0 -39
- package/dist/assets/icons/DragIndicator.d.ts +0 -2
- package/dist/assets/icons/DragIndicator.js +0 -30
- package/dist/assets/icons/Edit.d.ts +0 -2
- package/dist/assets/icons/Emoji.d.ts +0 -2
- package/dist/assets/icons/File.d.ts +0 -2
- package/dist/assets/icons/File.js +0 -32
- package/dist/assets/icons/Grid.d.ts +0 -2
- package/dist/assets/icons/Highlight.d.ts +0 -2
- package/dist/assets/icons/Highlight.js +0 -30
- package/dist/assets/icons/HighlightOn.d.ts +0 -6
- package/dist/assets/icons/HighlightOn.js +0 -55
- package/dist/assets/icons/Home.d.ts +0 -2
- package/dist/assets/icons/Home.js +0 -30
- package/dist/assets/icons/Image.d.ts +0 -2
- package/dist/assets/icons/ImageError.d.ts +0 -2
- package/dist/assets/icons/Info.d.ts +0 -2
- package/dist/assets/icons/Info.js +0 -41
- package/dist/assets/icons/Italic.d.ts +0 -2
- package/dist/assets/icons/Italic.js +0 -30
- package/dist/assets/icons/Link.d.ts +0 -2
- package/dist/assets/icons/Link.js +0 -30
- package/dist/assets/icons/Loader.d.ts +0 -2
- package/dist/assets/icons/MapPin.d.ts +0 -2
- package/dist/assets/icons/Menu.d.ts +0 -2
- package/dist/assets/icons/Menu.js +0 -30
- package/dist/assets/icons/Minus.d.ts +0 -2
- package/dist/assets/icons/MoreHoriz.d.ts +0 -2
- package/dist/assets/icons/NumberedList.d.ts +0 -2
- package/dist/assets/icons/NumberedList.js +0 -30
- package/dist/assets/icons/Pause.d.ts +0 -2
- package/dist/assets/icons/Plus.d.ts +0 -2
- package/dist/assets/icons/PointerHorizontal.d.ts +0 -2
- package/dist/assets/icons/PointerHorizontal.js +0 -30
- package/dist/assets/icons/PointerVertical.d.ts +0 -2
- package/dist/assets/icons/PointerVertical.js +0 -30
- package/dist/assets/icons/Retry.d.ts +0 -2
- package/dist/assets/icons/Search.d.ts +0 -2
- package/dist/assets/icons/Search.js +0 -30
- package/dist/assets/icons/Send.d.ts +0 -2
- package/dist/assets/icons/Send.js +0 -32
- package/dist/assets/icons/Share.d.ts +0 -2
- package/dist/assets/icons/Slash.d.ts +0 -2
- package/dist/assets/icons/Strikethrough.d.ts +0 -2
- package/dist/assets/icons/Strikethrough.js +0 -30
- package/dist/assets/icons/TextColor.d.ts +0 -6
- package/dist/assets/icons/TextColor.js +0 -52
- package/dist/assets/icons/Today.d.ts +0 -2
- package/dist/assets/icons/Today.js +0 -30
- package/dist/assets/icons/Trash.d.ts +0 -2
- package/dist/assets/icons/Underlined.d.ts +0 -2
- package/dist/assets/icons/Underlined.js +0 -32
- package/dist/assets/icons/Upload.d.ts +0 -2
- package/dist/assets/icons/Upload.js +0 -39
- package/dist/assets/icons/User.d.ts +0 -2
- package/dist/assets/icons/Visibility.d.ts +0 -2
- package/dist/assets/icons/Visibility.js +0 -30
- package/dist/assets/icons/VisibilityOff.d.ts +0 -2
- package/dist/assets/icons/VisibilityOff.js +0 -30
- package/dist/assets/icons/WarningFilled.d.ts +0 -2
- package/dist/assets/icons/WarningFilled.js +0 -32
- package/dist/assets/icons/WarningOutlined.d.ts +0 -2
|
@@ -2,11 +2,11 @@ import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
|
2
2
|
import { BottomSheetHeader } from "./BottomSheetHeader.js";
|
|
3
3
|
import { useStateAndRef } from "../../../hooks/useStateAndRef.js";
|
|
4
4
|
import { DomUtils } from "../../../utils/dom.utils.js";
|
|
5
|
-
import { c } from "react/compiler-runtime";
|
|
6
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
5
|
import { clsx } from "clsx";
|
|
8
6
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
9
7
|
import { Dialog, DialogTrigger, Modal, ModalOverlay } from "react-aria-components";
|
|
8
|
+
import { c } from "react/compiler-runtime";
|
|
9
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useResizeObserver, useViewportSize } from "@react-aria/utils";
|
|
11
11
|
import { AnimatePresence, animate, motion, useDragControls, useMotionValue } from "motion/react";
|
|
12
12
|
//#region src/components/overlays/BottomSheet/BottomSheet.tsx
|
|
@@ -175,7 +175,7 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = tr
|
|
|
175
175
|
className: "relative flex min-h-0 flex-1 flex-col items-stretch outline-none",
|
|
176
176
|
ref: dialogRef,
|
|
177
177
|
"aria-label": label,
|
|
178
|
-
children: ({ close }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
178
|
+
children: ({ close }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
179
179
|
/* @__PURE__ */ jsx("div", {
|
|
180
180
|
style: { minHeight: `${sheetMarginTop}px` },
|
|
181
181
|
className: clsx("shrink-0", height === "auto" && "grow")
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CloseIcon } from "../../../assets/icons/Close.js";
|
|
2
1
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
3
2
|
import "../../../config/i18n.js";
|
|
4
|
-
import {
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { X } from "lucide-react";
|
|
6
4
|
import { clsx } from "clsx";
|
|
7
5
|
import { Button } from "react-aria-components";
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { useTranslation } from "react-i18next";
|
|
9
9
|
//#region src/components/overlays/BottomSheet/BottomSheetHeader.tsx
|
|
10
10
|
var BottomSheetHeader = (t0) => {
|
|
@@ -47,7 +47,7 @@ var BottomSheetHeader = (t0) => {
|
|
|
47
47
|
onPress: onClose,
|
|
48
48
|
"aria-label": t(_temp),
|
|
49
49
|
className: "-m-2 shrink-0 p-2 text-interactive-text-secondary-idle focus-visible:outline-interactive-text-secondary-focus",
|
|
50
|
-
children: /* @__PURE__ */ jsx(
|
|
50
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-6" })
|
|
51
51
|
})]
|
|
52
52
|
});
|
|
53
53
|
$[6] = headerTypography;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { modalOverlay } from "../Modal/modal.cva.js";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
2
|
import { clsx } from "clsx";
|
|
5
3
|
import { Dialog, DialogTrigger, Modal, ModalOverlay } from "react-aria-components";
|
|
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);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CloseIcon } from "../../../assets/icons/Close.js";
|
|
2
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
3
2
|
import { InlineIconButton } from "../../buttons/InlineIconButton/InlineIconButton.js";
|
|
4
3
|
import "../../../config/i18n.js";
|
|
5
4
|
import { modalContentDefinition, modalMainDefinition, modalOverlayDefinition } from "./modal.cva.js";
|
|
6
|
-
import {
|
|
5
|
+
import { X } from "lucide-react";
|
|
7
6
|
import { clsx } from "clsx";
|
|
8
7
|
import { Dialog, Modal, ModalOverlay } from "react-aria-components";
|
|
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 }) => {
|
|
@@ -42,7 +42,7 @@ var Modal$1 = ({ isOpen, portalContainerRef, onClose, aside, children, modalClas
|
|
|
42
42
|
children: [showCloseIcon && /* @__PURE__ */ jsx(InlineIconButton, {
|
|
43
43
|
color: "secondary",
|
|
44
44
|
onPress: onClose,
|
|
45
|
-
icon:
|
|
45
|
+
icon: X,
|
|
46
46
|
className: clsx("absolute top-0 right-0 p-modal-gap-desktop-modal-close-icon-top-right", closeIconClassName),
|
|
47
47
|
label: t(($) => $.ui.modal.closeBtn),
|
|
48
48
|
disableTooltip: true
|
|
@@ -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,13 +1,12 @@
|
|
|
1
|
-
import { PointerHorizontalIcon } from "../../../assets/icons/PointerHorizontal.js";
|
|
2
|
-
import { PointerVerticalIcon } from "../../../assets/icons/PointerVertical.js";
|
|
3
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
4
2
|
import { tooltipDefinition, tooltipPointerHorizontalDefinition, tooltipPointerVerticalDefinition, tooltipTextDefinition } from "./tooltip.cva.js";
|
|
5
3
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
6
|
-
import {
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Triangle, TriangleRight } from "lucide-react";
|
|
8
5
|
import { clsx } from "clsx";
|
|
9
|
-
import { Fragment
|
|
6
|
+
import { Fragment, useRef } from "react";
|
|
10
7
|
import { OverlayArrow, Tooltip, TooltipTrigger } from "react-aria-components";
|
|
8
|
+
import { c } from "react/compiler-runtime";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
10
|
import { useFocusable } from "react-aria";
|
|
12
11
|
//#region src/components/overlays/Tooltip/Tooltip.tsx
|
|
13
12
|
var CustomTrigger = (t0) => {
|
|
@@ -51,7 +50,7 @@ var Tooltip$1 = (t0) => {
|
|
|
51
50
|
const tooltipPointerHorizontalCva = UIOverrides.useCva("tooltip.pointerHorizontalCva", tooltipPointerHorizontalDefinition);
|
|
52
51
|
const tooltipPointerVerticalCva = UIOverrides.useCva("tooltip.pointerVerticalCva", tooltipPointerVerticalDefinition);
|
|
53
52
|
const tooltipTextCva = UIOverrides.useCva("tooltip.textCva", tooltipTextDefinition);
|
|
54
|
-
const Trigger = isNonInteractiveTrigger ? CustomTrigger : Fragment
|
|
53
|
+
const Trigger = isNonInteractiveTrigger ? CustomTrigger : Fragment;
|
|
55
54
|
const T0 = TooltipTrigger;
|
|
56
55
|
const t1 = delay ?? 0;
|
|
57
56
|
const t2 = closeDelay ?? 0;
|
|
@@ -83,7 +82,11 @@ var Tooltip$1 = (t0) => {
|
|
|
83
82
|
} else t5 = $[8];
|
|
84
83
|
let t6;
|
|
85
84
|
if ($[9] !== t5) {
|
|
86
|
-
t6 = /* @__PURE__ */ jsx(
|
|
85
|
+
t6 = /* @__PURE__ */ jsx(Triangle, {
|
|
86
|
+
className: t5,
|
|
87
|
+
fill: "currentColor",
|
|
88
|
+
strokeWidth: 0
|
|
89
|
+
});
|
|
87
90
|
$[9] = t5;
|
|
88
91
|
$[10] = t6;
|
|
89
92
|
} else t6 = $[10];
|
|
@@ -96,7 +99,11 @@ var Tooltip$1 = (t0) => {
|
|
|
96
99
|
} else t7 = $[13];
|
|
97
100
|
let t8;
|
|
98
101
|
if ($[14] !== t7) {
|
|
99
|
-
t8 = /* @__PURE__ */ jsx(
|
|
102
|
+
t8 = /* @__PURE__ */ jsx(TriangleRight, {
|
|
103
|
+
className: t7,
|
|
104
|
+
fill: "currentColor",
|
|
105
|
+
strokeWidth: 0
|
|
106
|
+
});
|
|
100
107
|
$[14] = t7;
|
|
101
108
|
$[15] = t8;
|
|
102
109
|
} else t8 = $[15];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tooltip } from "./Tooltip.js";
|
|
2
|
+
import { useState } from "react";
|
|
2
3
|
import { c } from "react/compiler-runtime";
|
|
3
4
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { useState } from "react";
|
|
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 { c } from "react/compiler-runtime";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
6
|
import { clsx } from "clsx";
|
|
9
|
-
import { Fragment
|
|
7
|
+
import { Fragment, useRef } from "react";
|
|
10
8
|
import { ToggleButtonGroup } from "react-aria-components";
|
|
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
|
|
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 { ToggleButton } from "react-aria-components";
|
|
4
5
|
import { c } from "react/compiler-runtime";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { ToggleButton } from "react-aria-components";
|
|
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,13 +1,10 @@
|
|
|
1
|
-
import { ChevronLeftIcon } from "../../../assets/icons/ChevronLeft.js";
|
|
2
|
-
import { ChevronRightIcon } from "../../../assets/icons/ChevronRight.js";
|
|
3
|
-
import { ChevronsLeftIcon } from "../../../assets/icons/ChevronsLeft.js";
|
|
4
|
-
import { ChevronsRightIcon } from "../../../assets/icons/ChevronsRight.js";
|
|
5
1
|
import { Button } from "../../buttons/Button/Button.js";
|
|
6
2
|
import "../../../config/i18n.js";
|
|
7
3
|
import { minWidth } from "./minWidth.cva.js";
|
|
4
|
+
import { ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight } from "lucide-react";
|
|
5
|
+
import { clsx } from "clsx";
|
|
8
6
|
import { c } from "react/compiler-runtime";
|
|
9
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { clsx } from "clsx";
|
|
11
8
|
import { useTranslation } from "react-i18next";
|
|
12
9
|
//#region src/components/shared/pagination/PaginationList.tsx
|
|
13
10
|
var PaginationList = (t0) => {
|
|
@@ -91,7 +88,7 @@ var PaginationList = (t0) => {
|
|
|
91
88
|
color,
|
|
92
89
|
variant,
|
|
93
90
|
iconOnly: hideText,
|
|
94
|
-
icon:
|
|
91
|
+
icon: ChevronsLeft,
|
|
95
92
|
children: t(_temp)
|
|
96
93
|
});
|
|
97
94
|
$[17] = color;
|
|
@@ -113,7 +110,7 @@ var PaginationList = (t0) => {
|
|
|
113
110
|
color,
|
|
114
111
|
variant,
|
|
115
112
|
iconOnly: hideText,
|
|
116
|
-
icon:
|
|
113
|
+
icon: ChevronLeft,
|
|
117
114
|
children: t(_temp2)
|
|
118
115
|
});
|
|
119
116
|
$[26] = color;
|
|
@@ -136,7 +133,7 @@ var PaginationList = (t0) => {
|
|
|
136
133
|
color,
|
|
137
134
|
variant,
|
|
138
135
|
iconOnly: hideText,
|
|
139
|
-
icon:
|
|
136
|
+
icon: ChevronRight,
|
|
140
137
|
children: t(_temp3)
|
|
141
138
|
});
|
|
142
139
|
$[35] = color;
|
|
@@ -158,7 +155,7 @@ var PaginationList = (t0) => {
|
|
|
158
155
|
color,
|
|
159
156
|
variant,
|
|
160
157
|
iconOnly: hideText,
|
|
161
|
-
icon:
|
|
158
|
+
icon: ChevronsRight,
|
|
162
159
|
children: t(_temp4)
|
|
163
160
|
});
|
|
164
161
|
$[44] = color;
|
|
@@ -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 { useEffect, useState } from "react";
|
|
7
8
|
import { c } from "react/compiler-runtime";
|
|
8
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { useEffect, useState } from "react";
|
|
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,23 +1,21 @@
|
|
|
1
1
|
"use no memo";
|
|
2
|
-
import { ChevronDownIcon } from "../../assets/icons/ChevronDown.js";
|
|
3
|
-
import { ChevronUpIcon } from "../../assets/icons/ChevronUp.js";
|
|
4
2
|
import { UIOverrides } from "../../config/uiOverrides.context.js";
|
|
5
3
|
import { InlineIconButton } from "../buttons/InlineIconButton/InlineIconButton.js";
|
|
6
4
|
import { useIntersectionObserver } from "../../hooks/useIntersectionObserver.js";
|
|
7
5
|
import { tableDataDefinition, tableHeadDataDefinition, tableHeadRowDefinition, tableRowDefinition, theadDefinition } from "./table.cva.js";
|
|
8
6
|
import { CellText } from "./CellText.js";
|
|
9
|
-
import { DragIndicatorIcon } from "../../assets/icons/DragIndicator.js";
|
|
10
7
|
import { HeaderText } from "./HeaderText.js";
|
|
11
8
|
import { useTableNav } from "../../hooks/useTableNav.js";
|
|
12
|
-
import {
|
|
9
|
+
import { ChevronDown, ChevronUp, GripVertical } from "lucide-react";
|
|
13
10
|
import { clsx } from "clsx";
|
|
14
11
|
import { useCallback, useMemo, useRef, useState } from "react";
|
|
15
|
-
import
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
13
|
import { DndContext, KeyboardSensor, MouseSensor, TouchSensor, closestCenter, useSensor, useSensors } from "@dnd-kit/core";
|
|
17
14
|
import { restrictToVerticalAxis } from "@dnd-kit/modifiers";
|
|
18
15
|
import { SortableContext, arrayMove, useSortable, verticalListSortingStrategy } from "@dnd-kit/sortable";
|
|
19
16
|
import { CSS } from "@dnd-kit/utilities";
|
|
20
17
|
import { flexRender, getCoreRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from "@tanstack/react-table";
|
|
18
|
+
import i18next from "i18next";
|
|
21
19
|
//#region src/components/table/Table.tsx
|
|
22
20
|
var CustomCellContext = (context) => {
|
|
23
21
|
return {
|
|
@@ -38,7 +36,7 @@ var RowDragHandleCell = ({ rowId }) => {
|
|
|
38
36
|
...listeners,
|
|
39
37
|
className: "cursor-move p-1",
|
|
40
38
|
label: "Drag handle",
|
|
41
|
-
icon:
|
|
39
|
+
icon: GripVertical
|
|
42
40
|
});
|
|
43
41
|
};
|
|
44
42
|
var AutoDragHandleCell = ({ row }) => /* @__PURE__ */ jsx(RowDragHandleCell, { rowId: row.id });
|
|
@@ -199,11 +197,11 @@ var Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, classN
|
|
|
199
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),
|
|
200
198
|
onClick: header_0.column.getToggleSortingHandler(),
|
|
201
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 }), {
|
|
202
|
-
asc: /* @__PURE__ */ jsx(
|
|
200
|
+
asc: /* @__PURE__ */ jsx(ChevronUp, {
|
|
203
201
|
width: 18,
|
|
204
202
|
height: 18
|
|
205
203
|
}),
|
|
206
|
-
desc: /* @__PURE__ */ jsx(
|
|
204
|
+
desc: /* @__PURE__ */ jsx(ChevronDown, {
|
|
207
205
|
width: 18,
|
|
208
206
|
height: 18
|
|
209
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 { Link } from "react-aria-components";
|
|
4
5
|
import { c } from "react/compiler-runtime";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import { Link } from "react-aria-components";
|
|
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 { CloseIcon } from "../../../assets/icons/Close.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 {
|
|
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,7 +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(
|
|
39
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-4" })
|
|
40
40
|
})]
|
|
41
41
|
});
|
|
42
42
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { CloseIcon } from "../../../assets/icons/Close.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 {
|
|
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,7 +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(
|
|
38
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-4" })
|
|
39
39
|
})]
|
|
40
40
|
});
|
|
41
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 { createContext, use } from "react";
|
|
1
2
|
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { createContext, use } from "react";
|
|
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;
|
|
@@ -26,9 +26,15 @@ export declare namespace UIConfig {
|
|
|
26
26
|
};
|
|
27
27
|
button: Pick<ButtonProps, "variant" | "size">;
|
|
28
28
|
numberInput: Pick<NumberInputProps, "formatOptions">;
|
|
29
|
-
radioGroup: Pick<RadioGroupProps, "variant" | "hideLabel"
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
radioGroup: Pick<RadioGroupProps, "variant" | "hideLabel"> & {
|
|
30
|
+
fireBlurOnChange?: boolean;
|
|
31
|
+
};
|
|
32
|
+
checkbox: Pick<CheckboxProps, "variant"> & {
|
|
33
|
+
fireBlurOnChange?: boolean;
|
|
34
|
+
};
|
|
35
|
+
select: Pick<SelectBaseProps, "selectionMode" | "isSearchable" | "collapseAfter" | "selectedTagsType" | "hideSearchIcon" | "multiSelectAutoConfirm"> & {
|
|
36
|
+
fireBlurOnChange?: boolean;
|
|
37
|
+
};
|
|
32
38
|
queryAutocomplete: {
|
|
33
39
|
isInitialQueryDisabled?: boolean;
|
|
34
40
|
resolveSelectedItemsWithIds?: boolean;
|
|
@@ -39,7 +45,9 @@ export declare namespace UIConfig {
|
|
|
39
45
|
resolveSelectedItemsWithIds?: boolean;
|
|
40
46
|
searchDebounceDelay?: number;
|
|
41
47
|
};
|
|
42
|
-
toggle: Pick<ToggleProps, "variant"
|
|
48
|
+
toggle: Pick<ToggleProps, "variant"> & {
|
|
49
|
+
fireBlurOnChange?: boolean;
|
|
50
|
+
};
|
|
43
51
|
slider: Pick<SliderProps, "minValue" | "maxValue">;
|
|
44
52
|
dateInput: Pick<DatePickerProps, "todayIcon" | "todayIconButtonSize" | "todayIconPlacement" | "shouldForceLeadingZeros" | "disableManualEntry" | "shouldUpdateDateOnMonthYearChange" | "granularity" | "autoFixYear"> & {
|
|
45
53
|
calendarIcon?: ReactElement;
|
|
@@ -49,6 +57,7 @@ export declare namespace UIConfig {
|
|
|
49
57
|
timeZone?: string;
|
|
50
58
|
todayIconButtonComponent?: DatePickerProps["todayIconButtonComponent"];
|
|
51
59
|
allowPartialRange?: boolean;
|
|
60
|
+
fireBlurOnChange?: boolean;
|
|
52
61
|
};
|
|
53
62
|
actionModal: Pick<ActionModalProps, "titleTypography" | "descriptionTypography">;
|
|
54
63
|
bottomSheet: Pick<BottomSheetProps, "closeDragThreshold" | "closeVelocityThreshold" | "hideThumb" | "headerTypography">;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { CalendarIcon } from "../assets/icons/Calendar.js";
|
|
2
|
-
import { ClockIcon } from "../assets/icons/Clock.js";
|
|
3
|
-
import { DateTimeIcon } from "../assets/icons/DateTime.js";
|
|
4
1
|
import { ObjectUtils } from "../utils/object.utils.js";
|
|
5
2
|
import { useDeepCompareMemo } from "../hooks/useDeepCompare.js";
|
|
6
|
-
import {
|
|
3
|
+
import { Calendar, CalendarClock, Clock } from "lucide-react";
|
|
7
4
|
import { createContext, use } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
6
|
//#region src/config/uiConfig.context.tsx
|
|
9
7
|
var UIConfig;
|
|
10
8
|
(function(_UIConfig) {
|
|
@@ -28,16 +26,21 @@ var UIConfig;
|
|
|
28
26
|
} },
|
|
29
27
|
radioGroup: {
|
|
30
28
|
variant: "default",
|
|
31
|
-
hideLabel: false
|
|
29
|
+
hideLabel: false,
|
|
30
|
+
fireBlurOnChange: false
|
|
31
|
+
},
|
|
32
|
+
checkbox: {
|
|
33
|
+
variant: "default",
|
|
34
|
+
fireBlurOnChange: false
|
|
32
35
|
},
|
|
33
|
-
checkbox: { variant: "default" },
|
|
34
36
|
select: {
|
|
35
37
|
selectionMode: "single",
|
|
36
38
|
isSearchable: false,
|
|
37
39
|
selectedTagsType: "list",
|
|
38
40
|
collapseAfter: 3,
|
|
39
41
|
hideSearchIcon: false,
|
|
40
|
-
multiSelectAutoConfirm: false
|
|
42
|
+
multiSelectAutoConfirm: false,
|
|
43
|
+
fireBlurOnChange: false
|
|
41
44
|
},
|
|
42
45
|
queryAutocomplete: {
|
|
43
46
|
isInitialQueryDisabled: false,
|
|
@@ -49,7 +52,10 @@ var UIConfig;
|
|
|
49
52
|
resolveSelectedItemsWithIds: false,
|
|
50
53
|
searchDebounceDelay: 500
|
|
51
54
|
},
|
|
52
|
-
toggle: {
|
|
55
|
+
toggle: {
|
|
56
|
+
variant: "default",
|
|
57
|
+
fireBlurOnChange: false
|
|
58
|
+
},
|
|
53
59
|
slider: {
|
|
54
60
|
minValue: 0,
|
|
55
61
|
maxValue: 100
|
|
@@ -62,14 +68,15 @@ var UIConfig;
|
|
|
62
68
|
shouldForceLeadingZeros: false,
|
|
63
69
|
disableManualEntry: false,
|
|
64
70
|
autoFixYear: false,
|
|
65
|
-
calendarIcon: /* @__PURE__ */ jsx(
|
|
66
|
-
dateTimeIcon: /* @__PURE__ */ jsx(
|
|
67
|
-
timeIcon: /* @__PURE__ */ jsx(
|
|
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" }),
|
|
68
74
|
setDateValueOnDateSelection: false,
|
|
69
75
|
timeZone: "clientLocal",
|
|
70
76
|
granularity: "day",
|
|
71
77
|
shouldUpdateDateOnMonthYearChange: false,
|
|
72
|
-
allowPartialRange: false
|
|
78
|
+
allowPartialRange: false,
|
|
79
|
+
fireBlurOnChange: false
|
|
73
80
|
},
|
|
74
81
|
actionModal: {
|
|
75
82
|
titleTypography: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { StyleMergeUtils } from "../utils/style-merge.util.js";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
2
|
import { clsx } from "clsx";
|
|
5
3
|
import { createContext, use } from "react";
|
|
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) {
|
package/dist/hooks/useFilters.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UIRouter } from "../config/router.context.js";
|
|
2
2
|
import { RoutingUtils } from "../utils/routing.utils.js";
|
|
3
|
-
import { c } from "react/compiler-runtime";
|
|
4
3
|
import { useEffect, useState } from "react";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/hooks/useFilters.ts
|
|
7
7
|
function getFieldType(schema, fieldKey) {
|
package/dist/hooks/useForm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c } from "react/compiler-runtime";
|
|
2
1
|
import { useEffect, useMemo, useRef } from "react";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useForm, useStore } from "@tanstack/react-form";
|
|
4
4
|
//#region src/hooks/useForm.ts
|
|
5
5
|
function useForm$1({ defaultValues, disabled = false, mode = "onSubmit", onSubmitAsync, zodSchema } = {}) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UIRouter } from "../config/router.context.js";
|
|
2
2
|
import { RoutingUtils } from "../utils/routing.utils.js";
|
|
3
|
-
import { c } from "react/compiler-runtime";
|
|
4
3
|
import { useEffect, useState } from "react";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
5
|
//#region src/hooks/usePagination.ts
|
|
6
6
|
var DEFAULT_STATE = {
|
|
7
7
|
pageIndex: 1,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useBreakpoint } from "./useBreakpoint.js";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
2
|
import { useEffect, useRef } from "react";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
4
|
//#region src/hooks/useScrollableListBox.ts
|
|
5
5
|
function useScrollableListBox() {
|
|
6
6
|
const $ = c(4);
|
package/dist/hooks/useSorting.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UIRouter } from "../config/router.context.js";
|
|
2
2
|
import { RoutingUtils } from "../utils/routing.utils.js";
|
|
3
|
-
import { c } from "react/compiler-runtime";
|
|
4
3
|
import { useEffect, useState } from "react";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
5
|
//#region src/hooks/useSorting.ts
|
|
6
6
|
function useSorting(defaultSorting, t0) {
|
|
7
7
|
const $ = c(16);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ObjectUtils } from "../utils/object.utils.js";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
2
|
import { useRef, useState } from "react";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
4
|
//#region src/hooks/useStateAndRef.ts
|
|
5
5
|
var useStateAndRef = (initialState) => {
|
|
6
6
|
const $ = c(3);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c } from "react/compiler-runtime";
|
|
2
1
|
import { useEffect, useState } from "react";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
3
|
//#region src/hooks/useTableColumnConfig.ts
|
|
4
4
|
function sortByKeyOrder(data, orderedKeys = []) {
|
|
5
5
|
return [...data].sort((a, b) => {
|