@povio/ui 3.4.0-rc.10 → 3.4.0-rc.11
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/icons/Account.d.ts +2 -0
- package/dist/assets/icons/AlignCenter.d.ts +2 -0
- package/dist/assets/icons/AlignCenter.js +30 -0
- package/dist/assets/icons/AlignLeft.d.ts +2 -0
- package/dist/assets/icons/AlignLeft.js +30 -0
- package/dist/assets/icons/AlignLeftRight.d.ts +2 -0
- package/dist/assets/icons/AlignLeftRight.js +30 -0
- package/dist/assets/icons/AlignRight.d.ts +2 -0
- package/dist/assets/icons/AlignRight.js +30 -0
- package/dist/assets/icons/ArrowDropDown.d.ts +2 -0
- package/dist/assets/icons/ArrowDropDown.js +30 -0
- package/dist/assets/icons/ArrowDropUp.d.ts +2 -0
- package/dist/assets/icons/ArrowDropUp.js +30 -0
- package/dist/assets/icons/ArrowLeft.d.ts +2 -0
- package/dist/assets/icons/ArrowLeft.js +30 -0
- package/dist/assets/icons/ArrowRight.d.ts +2 -0
- package/dist/assets/icons/ArrowRight.js +30 -0
- package/dist/assets/icons/Board.d.ts +2 -0
- package/dist/assets/icons/Bold.d.ts +2 -0
- package/dist/assets/icons/Bold.js +30 -0
- package/dist/assets/icons/BulletedList.d.ts +2 -0
- package/dist/assets/icons/BulletedList.js +30 -0
- package/dist/assets/icons/Calendar.d.ts +2 -0
- package/dist/assets/icons/Calendar.js +32 -0
- package/dist/assets/icons/Check.d.ts +2 -0
- package/dist/assets/icons/Check.js +32 -0
- package/dist/assets/icons/CheckCircle.d.ts +2 -0
- package/dist/assets/icons/CheckCircle.js +30 -0
- package/dist/assets/icons/CheckboxCheckmark.d.ts +2 -0
- package/dist/assets/icons/CheckboxCheckmark.js +33 -0
- package/dist/assets/icons/CheckboxIndeterminate.d.ts +2 -0
- package/dist/assets/icons/CheckboxIndeterminate.js +33 -0
- package/dist/assets/icons/ChevronDown.d.ts +2 -0
- package/dist/assets/icons/ChevronDown.js +32 -0
- package/dist/assets/icons/ChevronLeft.d.ts +2 -0
- package/dist/assets/icons/ChevronLeft.js +32 -0
- package/dist/assets/icons/ChevronRight.d.ts +2 -0
- package/dist/assets/icons/ChevronRight.js +32 -0
- package/dist/assets/icons/ChevronUp.d.ts +2 -0
- package/dist/assets/icons/ChevronUp.js +32 -0
- package/dist/assets/icons/ChevronsLeft.d.ts +2 -0
- package/dist/assets/icons/ChevronsLeft.js +32 -0
- package/dist/assets/icons/ChevronsRight.d.ts +2 -0
- package/dist/assets/icons/ChevronsRight.js +32 -0
- package/dist/assets/icons/Clock.d.ts +2 -0
- package/dist/assets/icons/Clock.js +30 -0
- package/dist/assets/icons/Close.d.ts +2 -0
- package/dist/assets/icons/Close.js +30 -0
- package/dist/assets/icons/DateTime.d.ts +2 -0
- package/dist/assets/icons/DateTime.js +39 -0
- package/dist/assets/icons/DragIndicator.d.ts +2 -0
- package/dist/assets/icons/DragIndicator.js +30 -0
- package/dist/assets/icons/Edit.d.ts +2 -0
- package/dist/assets/icons/Emoji.d.ts +2 -0
- package/dist/assets/icons/File.d.ts +2 -0
- package/dist/assets/icons/File.js +32 -0
- package/dist/assets/icons/Grid.d.ts +2 -0
- package/dist/assets/icons/Highlight.d.ts +2 -0
- package/dist/assets/icons/Highlight.js +30 -0
- package/dist/assets/icons/HighlightOn.d.ts +6 -0
- package/dist/assets/icons/HighlightOn.js +55 -0
- package/dist/assets/icons/Home.d.ts +2 -0
- package/dist/assets/icons/Home.js +30 -0
- package/dist/assets/icons/Image.d.ts +2 -0
- package/dist/assets/icons/ImageError.d.ts +2 -0
- package/dist/assets/icons/Info.d.ts +2 -0
- package/dist/assets/icons/Info.js +41 -0
- package/dist/assets/icons/Italic.d.ts +2 -0
- package/dist/assets/icons/Italic.js +30 -0
- package/dist/assets/icons/Link.d.ts +2 -0
- package/dist/assets/icons/Link.js +30 -0
- package/dist/assets/icons/Loader.d.ts +2 -0
- package/dist/assets/icons/MapPin.d.ts +2 -0
- package/dist/assets/icons/Menu.d.ts +2 -0
- package/dist/assets/icons/Menu.js +30 -0
- package/dist/assets/icons/Minus.d.ts +2 -0
- package/dist/assets/icons/MoreHoriz.d.ts +2 -0
- package/dist/assets/icons/NumberedList.d.ts +2 -0
- package/dist/assets/icons/NumberedList.js +30 -0
- package/dist/assets/icons/Pause.d.ts +2 -0
- package/dist/assets/icons/Plus.d.ts +2 -0
- package/dist/assets/icons/PointerHorizontal.d.ts +2 -0
- package/dist/assets/icons/PointerHorizontal.js +30 -0
- package/dist/assets/icons/PointerVertical.d.ts +2 -0
- package/dist/assets/icons/PointerVertical.js +30 -0
- package/dist/assets/icons/Retry.d.ts +2 -0
- package/dist/assets/icons/Search.d.ts +2 -0
- package/dist/assets/icons/Search.js +30 -0
- package/dist/assets/icons/Send.d.ts +2 -0
- package/dist/assets/icons/Send.js +32 -0
- package/dist/assets/icons/Share.d.ts +2 -0
- package/dist/assets/icons/Slash.d.ts +2 -0
- package/dist/assets/icons/Strikethrough.d.ts +2 -0
- package/dist/assets/icons/Strikethrough.js +30 -0
- package/dist/assets/icons/TextColor.d.ts +6 -0
- package/dist/assets/icons/TextColor.js +52 -0
- package/dist/assets/icons/Today.d.ts +2 -0
- package/dist/assets/icons/Today.js +30 -0
- package/dist/assets/icons/Trash.d.ts +2 -0
- package/dist/assets/icons/Underlined.d.ts +2 -0
- package/dist/assets/icons/Underlined.js +32 -0
- package/dist/assets/icons/Upload.d.ts +2 -0
- package/dist/assets/icons/Upload.js +39 -0
- package/dist/assets/icons/User.d.ts +2 -0
- package/dist/assets/icons/Visibility.d.ts +2 -0
- package/dist/assets/icons/Visibility.js +30 -0
- package/dist/assets/icons/VisibilityOff.d.ts +2 -0
- package/dist/assets/icons/VisibilityOff.js +30 -0
- package/dist/assets/icons/WarningFilled.d.ts +2 -0
- package/dist/assets/icons/WarningFilled.js +32 -0
- package/dist/assets/icons/WarningOutlined.d.ts +2 -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.d.ts +2 -1
- package/dist/components/inputs/Checkbox/Checkbox.js +102 -95
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +3 -2
- package/dist/components/inputs/Checkbox/CheckboxGroup.d.ts +2 -1
- package/dist/components/inputs/Checkbox/CheckboxGroup.js +115 -111
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +2 -2
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +22 -17
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +23 -17
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +2 -2
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +25 -21
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +2 -2
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +238 -225
- 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 +10 -7
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +12 -8
- package/dist/components/inputs/DateTime/shared/DateField.d.ts +1 -2
- package/dist/components/inputs/DateTime/shared/DateField.js +4 -4
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +2 -2
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +16 -8
- 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 +5 -4
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +2 -2
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +11 -10
- package/dist/components/inputs/DateTime/shared/YearPicker.js +2 -2
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +1 -46
- package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +1 -1
- package/dist/components/inputs/File/FileUpload.d.ts +1 -1
- package/dist/components/inputs/File/FileUpload.js +20 -20
- package/dist/components/inputs/File/InputUpload.d.ts +1 -1
- package/dist/components/inputs/File/InputUpload.js +19 -19
- package/dist/components/inputs/File/fileUpload.types.d.ts +1 -1
- package/dist/components/inputs/File/inputUpload.types.d.ts +1 -1
- 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 +6 -5
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +6 -5
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +5 -4
- 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.d.ts +1 -1
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +107 -109
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +1 -2
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +254 -265
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +1 -2
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +24 -25
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +4 -3
- package/dist/components/inputs/Input/TextArea/TextArea.d.ts +1 -2
- package/dist/components/inputs/Input/TextArea/TextArea.js +117 -118
- package/dist/components/inputs/Input/TextInput/TextInput.d.ts +2 -2
- package/dist/components/inputs/Input/TextInput/TextInput.js +129 -129
- package/dist/components/inputs/Input/shared/InputContent.d.ts +1 -2
- package/dist/components/inputs/Input/shared/InputContent.js +48 -50
- package/dist/components/inputs/Inputs/Form.d.ts +4 -4
- package/dist/components/inputs/Inputs/Form.js +1 -1
- package/dist/components/inputs/Inputs/InputItem.d.ts +22 -22
- package/dist/components/inputs/Inputs/InputItem.js +37 -36
- package/dist/components/inputs/Inputs/Inputs.d.ts +2 -2
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +2 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.js +113 -109
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +16 -16
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +1 -1
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +20 -20
- package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +1 -1
- package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +1 -1
- package/dist/components/inputs/Selection/Select/QuerySelect.js +20 -20
- package/dist/components/inputs/Selection/Select/Select.d.ts +1 -1
- package/dist/components/inputs/Selection/Select/Select.js +23 -23
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectBase.js +37 -34
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +56 -58
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectInput.js +56 -57
- 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 +4 -5
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +3 -3
- package/dist/components/inputs/Selection/shared/select.context.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/select.context.js +9 -5
- package/dist/components/inputs/Selection/shared/select.types.d.ts +1 -1
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +0 -1
- package/dist/components/inputs/Skeleton/InputFrame.js +7 -10
- package/dist/components/inputs/Slider/Slider.d.ts +1 -1
- package/dist/components/inputs/Slider/Slider.js +20 -20
- package/dist/components/inputs/TextEditor/TextEditor.d.ts +1 -1
- package/dist/components/inputs/TextEditor/TextEditor.js +20 -20
- 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 +8 -5
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +3 -3
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +5 -4
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +5 -4
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +9 -6
- package/dist/components/inputs/Toggle/Toggle.d.ts +2 -1
- package/dist/components/inputs/Toggle/Toggle.js +65 -61
- package/dist/components/inputs/shared/CheckContent.js +1 -1
- package/dist/components/inputs/shared/InputClear.js +28 -45
- package/dist/components/inputs/shared/TooltipWrapper.d.ts +1 -1
- package/dist/components/inputs/shared/form.types.d.ts +8 -9
- package/dist/components/inputs/shared/input.cva.js +1 -1
- package/dist/components/inputs/shared/useStaticInputHandoff.js +38 -64
- 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 +8 -15
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +1 -1
- package/dist/components/segment/Segment.d.ts +1 -1
- package/dist/components/segment/Segment.js +21 -21
- package/dist/components/segment/SegmentItem.js +1 -1
- package/dist/components/segment/segment.types.d.ts +1 -1
- package/dist/components/shared/pagination/Pagination.js +1 -1
- package/dist/components/shared/pagination/PaginationList.js +9 -6
- package/dist/components/table/ColumnConfig.js +1 -1
- package/dist/components/table/InfiniteTable.js +1 -1
- package/dist/components/table/Table.js +8 -6
- 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 +5 -14
- package/dist/config/uiConfig.context.js +11 -9
- package/dist/config/uiOverrides.context.js +2 -2
- package/dist/helpers/dynamicColumns.d.ts +1 -1
- package/dist/helpers/dynamicInputs.d.ts +7 -7
- package/dist/hooks/useAutosave.d.ts +4 -4
- package/dist/hooks/useAutosave.js +49 -64
- package/dist/hooks/useFilters.js +1 -1
- package/dist/hooks/useForm.d.ts +15 -39
- package/dist/hooks/useForm.js +43 -96
- package/dist/hooks/useFormAutosave.d.ts +9 -8
- package/dist/hooks/useFormAutosave.js +9 -23
- 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 +263 -1
- package/dist/index.js +71 -11
- package/package.json +3 -15
- package/dist/assets/locales/en/translation.json.d.ts +0 -158
- package/dist/assets/locales/sl/translation.json.d.ts +0 -154
- package/dist/components/inputs/shared/form.binding.d.ts +0 -27
- package/dist/components/inputs/shared/form.binding.js +0 -57
- package/dist/components/inputs/shared/form.types.js +0 -8
- package/dist/rhf/Inputs.d.ts +0 -60
- package/dist/rhf/Inputs.js +0 -148
- package/dist/rhf/components.d.ts +0 -80
- package/dist/rhf/components.js +0 -101
- package/dist/rhf/dynamicInputs.d.ts +0 -18
- package/dist/rhf/dynamicInputs.js +0 -5
- package/dist/rhf/fieldAdapter.d.ts +0 -7
- package/dist/rhf/fieldAdapter.js +0 -40
- package/dist/rhf/form.types.d.ts +0 -12
- package/dist/rhf/useAutosave.d.ts +0 -10
- package/dist/rhf/useAutosave.js +0 -71
- package/dist/rhf/useForm.d.ts +0 -18
- package/dist/rhf/useForm.js +0 -48
- package/dist/rhf/useFormAutosave.d.ts +0 -15
- package/dist/rhf/useFormAutosave.js +0 -59
- package/dist/rhf.d.ts +0 -225
- package/dist/tanstack.d.ts +0 -224
- package/dist/tanstack.js +0 -141
- /package/dist/{rhf/entrypoints.type-test.d.ts → hooks/useAutosave.spec.d.ts} +0 -0
|
@@ -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";
|
|
5
7
|
import { clsx } from "clsx";
|
|
6
8
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
7
9
|
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
|
|
178
|
+
children: ({ close }) => /* @__PURE__ */ jsxs(Fragment, { 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";
|
|
1
2
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
2
3
|
import "../../../config/i18n.js";
|
|
3
|
-
import { X } from "lucide-react";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
|
-
import { Button } from "react-aria-components";
|
|
6
4
|
import { c } from "react/compiler-runtime";
|
|
7
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
|
+
import { Button } from "react-aria-components";
|
|
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(CloseIcon, { 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 { clsx } from "clsx";
|
|
3
|
-
import { Dialog, DialogTrigger, Modal, ModalOverlay } from "react-aria-components";
|
|
4
2
|
import { c } from "react/compiler-runtime";
|
|
5
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
|
+
import { Dialog, DialogTrigger, Modal, ModalOverlay } from "react-aria-components";
|
|
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";
|
|
1
2
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
3
|
import { InlineIconButton } from "../../buttons/InlineIconButton/InlineIconButton.js";
|
|
3
4
|
import "../../../config/i18n.js";
|
|
4
5
|
import { modalContentDefinition, modalMainDefinition, modalOverlayDefinition } from "./modal.cva.js";
|
|
5
|
-
import {
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
7
|
import { clsx } from "clsx";
|
|
7
8
|
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: CloseIcon,
|
|
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";
|
|
5
6
|
import { clsx } from "clsx";
|
|
6
7
|
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,13 @@
|
|
|
1
|
+
import { PointerHorizontalIcon } from "../../../assets/icons/PointerHorizontal.js";
|
|
2
|
+
import { PointerVerticalIcon } from "../../../assets/icons/PointerVertical.js";
|
|
1
3
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
4
|
import { tooltipDefinition, tooltipPointerHorizontalDefinition, tooltipPointerVerticalDefinition, tooltipTextDefinition } from "./tooltip.cva.js";
|
|
3
5
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
4
|
-
import { Triangle, TriangleRight } from "lucide-react";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
|
-
import { Fragment, useRef } from "react";
|
|
7
|
-
import { OverlayArrow, Tooltip, TooltipTrigger } from "react-aria-components";
|
|
8
6
|
import { c } from "react/compiler-runtime";
|
|
9
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { clsx } from "clsx";
|
|
9
|
+
import { Fragment as Fragment$1, useRef } from "react";
|
|
10
|
+
import { OverlayArrow, Tooltip, TooltipTrigger } from "react-aria-components";
|
|
10
11
|
import { useFocusable } from "react-aria";
|
|
11
12
|
//#region src/components/overlays/Tooltip/Tooltip.tsx
|
|
12
13
|
var CustomTrigger = (t0) => {
|
|
@@ -50,7 +51,7 @@ var Tooltip$1 = (t0) => {
|
|
|
50
51
|
const tooltipPointerHorizontalCva = UIOverrides.useCva("tooltip.pointerHorizontalCva", tooltipPointerHorizontalDefinition);
|
|
51
52
|
const tooltipPointerVerticalCva = UIOverrides.useCva("tooltip.pointerVerticalCva", tooltipPointerVerticalDefinition);
|
|
52
53
|
const tooltipTextCva = UIOverrides.useCva("tooltip.textCva", tooltipTextDefinition);
|
|
53
|
-
const Trigger = isNonInteractiveTrigger ? CustomTrigger : Fragment;
|
|
54
|
+
const Trigger = isNonInteractiveTrigger ? CustomTrigger : Fragment$1;
|
|
54
55
|
const T0 = TooltipTrigger;
|
|
55
56
|
const t1 = delay ?? 0;
|
|
56
57
|
const t2 = closeDelay ?? 0;
|
|
@@ -82,11 +83,7 @@ var Tooltip$1 = (t0) => {
|
|
|
82
83
|
} else t5 = $[8];
|
|
83
84
|
let t6;
|
|
84
85
|
if ($[9] !== t5) {
|
|
85
|
-
t6 = /* @__PURE__ */ jsx(
|
|
86
|
-
className: t5,
|
|
87
|
-
fill: "currentColor",
|
|
88
|
-
strokeWidth: 0
|
|
89
|
-
});
|
|
86
|
+
t6 = /* @__PURE__ */ jsx(PointerHorizontalIcon, { className: t5 });
|
|
90
87
|
$[9] = t5;
|
|
91
88
|
$[10] = t6;
|
|
92
89
|
} else t6 = $[10];
|
|
@@ -99,11 +96,7 @@ var Tooltip$1 = (t0) => {
|
|
|
99
96
|
} else t7 = $[13];
|
|
100
97
|
let t8;
|
|
101
98
|
if ($[14] !== t7) {
|
|
102
|
-
t8 = /* @__PURE__ */ jsx(
|
|
103
|
-
className: t7,
|
|
104
|
-
fill: "currentColor",
|
|
105
|
-
strokeWidth: 0
|
|
106
|
-
});
|
|
99
|
+
t8 = /* @__PURE__ */ jsx(PointerVerticalIcon, { className: t7 });
|
|
107
100
|
$[14] = t7;
|
|
108
101
|
$[15] = t8;
|
|
109
102
|
} else t8 = $[15];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tooltip } from "./Tooltip.js";
|
|
2
|
-
import { useState } from "react";
|
|
3
2
|
import { c } from "react/compiler-runtime";
|
|
4
3
|
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);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Key } from 'react-aria-components';
|
|
2
|
-
import { FieldValues } from '
|
|
2
|
+
import { FieldValues } from 'react-hook-form';
|
|
3
3
|
import { ControlledSegmentProps } from './segment.types';
|
|
4
4
|
export declare const Segment: <TFieldValues extends FieldValues, TKey extends Key = Key>(props: ControlledSegmentProps<TFieldValues, TKey>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { UIOverrides } from "../../config/uiOverrides.context.js";
|
|
2
|
-
import { FieldController } from "../inputs/shared/form.binding.js";
|
|
3
2
|
import { FormField } from "../inputs/FormField/FormField.js";
|
|
4
3
|
import { segmentDefinition } from "./segment.cva.js";
|
|
5
4
|
import { SegmentItem } from "./SegmentItem.js";
|
|
6
|
-
import { clsx } from "clsx";
|
|
7
|
-
import { Fragment, useRef } from "react";
|
|
8
|
-
import { ToggleButtonGroup } from "react-aria-components";
|
|
9
5
|
import { c } from "react/compiler-runtime";
|
|
10
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
|
+
import { Fragment as Fragment$1, useRef } from "react";
|
|
9
|
+
import { ToggleButtonGroup } from "react-aria-components";
|
|
11
10
|
import { useToggleButtonGroup } from "react-aria";
|
|
12
11
|
import { mergeRefs } from "@react-aria/utils";
|
|
12
|
+
import { Controller } from "react-hook-form";
|
|
13
13
|
import { useToggleGroupState } from "react-stately";
|
|
14
14
|
//#region src/components/segment/Segment.tsx
|
|
15
15
|
var SegmentBase = (t0) => {
|
|
@@ -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, { children: [/* @__PURE__ */ jsx(SegmentItem, {
|
|
131
|
+
t10 = items.map((item, index) => /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(SegmentItem, {
|
|
132
132
|
...item,
|
|
133
133
|
className: clsx(item.className, segmentItemClassName),
|
|
134
134
|
isDisabled: item.isDisabled || props.isDisabled,
|
|
@@ -181,32 +181,32 @@ var SegmentBase = (t0) => {
|
|
|
181
181
|
};
|
|
182
182
|
var Segment = (props) => {
|
|
183
183
|
const $ = c(15);
|
|
184
|
-
if ("
|
|
185
|
-
let
|
|
184
|
+
if ("formControl" in props && props.formControl) {
|
|
185
|
+
let formControl;
|
|
186
186
|
let innerProps;
|
|
187
187
|
let ref;
|
|
188
188
|
if ($[0] !== props) {
|
|
189
|
-
({
|
|
189
|
+
({formControl, ref, ...innerProps} = props);
|
|
190
190
|
$[0] = props;
|
|
191
|
-
$[1] =
|
|
191
|
+
$[1] = formControl;
|
|
192
192
|
$[2] = innerProps;
|
|
193
193
|
$[3] = ref;
|
|
194
194
|
} else {
|
|
195
|
-
|
|
195
|
+
formControl = $[1];
|
|
196
196
|
innerProps = $[2];
|
|
197
197
|
ref = $[3];
|
|
198
198
|
}
|
|
199
199
|
let t0;
|
|
200
200
|
if ($[4] !== innerProps || $[5] !== props.error || $[6] !== props.isDisabled || $[7] !== ref) {
|
|
201
201
|
t0 = (t1) => {
|
|
202
|
-
const { field
|
|
202
|
+
const { field, fieldState: t2 } = t1;
|
|
203
203
|
const { error } = t2;
|
|
204
204
|
return /* @__PURE__ */ jsx(SegmentBase, {
|
|
205
205
|
...innerProps,
|
|
206
|
-
ref: mergeRefs(ref,
|
|
207
|
-
value:
|
|
208
|
-
onChange:
|
|
209
|
-
isDisabled:
|
|
206
|
+
ref: mergeRefs(ref, field.ref),
|
|
207
|
+
value: field.value,
|
|
208
|
+
onChange: field.onChange,
|
|
209
|
+
isDisabled: field.disabled || props.isDisabled,
|
|
210
210
|
error: props.error ?? error?.message
|
|
211
211
|
});
|
|
212
212
|
};
|
|
@@ -217,14 +217,14 @@ var Segment = (props) => {
|
|
|
217
217
|
$[8] = t0;
|
|
218
218
|
} else t0 = $[8];
|
|
219
219
|
let t1;
|
|
220
|
-
if ($[9] !==
|
|
221
|
-
t1 = /* @__PURE__ */ jsx(
|
|
222
|
-
control:
|
|
223
|
-
name:
|
|
220
|
+
if ($[9] !== formControl.control || $[10] !== formControl.name || $[11] !== t0) {
|
|
221
|
+
t1 = /* @__PURE__ */ jsx(Controller, {
|
|
222
|
+
control: formControl.control,
|
|
223
|
+
name: formControl.name,
|
|
224
224
|
render: t0
|
|
225
225
|
});
|
|
226
|
-
$[9] =
|
|
227
|
-
$[10] =
|
|
226
|
+
$[9] = formControl.control;
|
|
227
|
+
$[10] = formControl.name;
|
|
228
228
|
$[11] = t0;
|
|
229
229
|
$[12] = t1;
|
|
230
230
|
} else t1 = $[12];
|
|
@@ -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";
|
|
5
4
|
import { c } from "react/compiler-runtime";
|
|
6
5
|
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);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactElement, Ref, SVGProps } from 'react';
|
|
2
2
|
import { Key, ToggleButtonGroupProps, ToggleButtonProps } from 'react-aria-components';
|
|
3
|
-
import { FieldValues } from '
|
|
3
|
+
import { FieldValues } from 'react-hook-form';
|
|
4
4
|
import { ControlProps } from '../inputs/shared/form.types';
|
|
5
5
|
import { SegmentItemVariantProps, SegmentVariantProps } from './segment.cva';
|
|
6
6
|
export interface SegmentItem<TKey extends Key = Key> extends ToggleButtonProps, SegmentItemVariantProps {
|
|
@@ -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 { clsx } from "clsx";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { clsx } from "clsx";
|
|
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,13 @@
|
|
|
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";
|
|
1
5
|
import { Button } from "../../buttons/Button/Button.js";
|
|
2
6
|
import "../../../config/i18n.js";
|
|
3
7
|
import { minWidth } from "./minWidth.cva.js";
|
|
4
|
-
import { ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight } from "lucide-react";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
8
|
import { c } from "react/compiler-runtime";
|
|
7
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { clsx } from "clsx";
|
|
8
11
|
import { useTranslation } from "react-i18next";
|
|
9
12
|
//#region src/components/shared/pagination/PaginationList.tsx
|
|
10
13
|
var PaginationList = (t0) => {
|
|
@@ -88,7 +91,7 @@ var PaginationList = (t0) => {
|
|
|
88
91
|
color,
|
|
89
92
|
variant,
|
|
90
93
|
iconOnly: hideText,
|
|
91
|
-
icon:
|
|
94
|
+
icon: ChevronsLeftIcon,
|
|
92
95
|
children: t(_temp)
|
|
93
96
|
});
|
|
94
97
|
$[17] = color;
|
|
@@ -110,7 +113,7 @@ var PaginationList = (t0) => {
|
|
|
110
113
|
color,
|
|
111
114
|
variant,
|
|
112
115
|
iconOnly: hideText,
|
|
113
|
-
icon:
|
|
116
|
+
icon: ChevronLeftIcon,
|
|
114
117
|
children: t(_temp2)
|
|
115
118
|
});
|
|
116
119
|
$[26] = color;
|
|
@@ -133,7 +136,7 @@ var PaginationList = (t0) => {
|
|
|
133
136
|
color,
|
|
134
137
|
variant,
|
|
135
138
|
iconOnly: hideText,
|
|
136
|
-
icon:
|
|
139
|
+
icon: ChevronRightIcon,
|
|
137
140
|
children: t(_temp3)
|
|
138
141
|
});
|
|
139
142
|
$[35] = color;
|
|
@@ -155,7 +158,7 @@ var PaginationList = (t0) => {
|
|
|
155
158
|
color,
|
|
156
159
|
variant,
|
|
157
160
|
iconOnly: hideText,
|
|
158
|
-
icon:
|
|
161
|
+
icon: ChevronsRightIcon,
|
|
159
162
|
children: t(_temp4)
|
|
160
163
|
});
|
|
161
164
|
$[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";
|
|
8
7
|
import { c } from "react/compiler-runtime";
|
|
9
8
|
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 { useCallback } from "react";
|
|
5
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { useCallback } from "react";
|
|
6
6
|
//#region src/components/table/InfiniteTable.tsx
|
|
7
7
|
var InfiniteTable = ({ hasNextPage, isFetchingNextPage = false, fetchNextPage, ...rest }) => {
|
|
8
8
|
const { ref } = useIntersectionObserver({
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
"use no memo";
|
|
2
|
+
import { ChevronDownIcon } from "../../assets/icons/ChevronDown.js";
|
|
3
|
+
import { ChevronUpIcon } from "../../assets/icons/ChevronUp.js";
|
|
2
4
|
import { UIOverrides } from "../../config/uiOverrides.context.js";
|
|
3
5
|
import { InlineIconButton } from "../buttons/InlineIconButton/InlineIconButton.js";
|
|
4
6
|
import { useIntersectionObserver } from "../../hooks/useIntersectionObserver.js";
|
|
5
7
|
import { tableDataDefinition, tableHeadDataDefinition, tableHeadRowDefinition, tableRowDefinition, theadDefinition } from "./table.cva.js";
|
|
6
8
|
import { CellText } from "./CellText.js";
|
|
9
|
+
import { DragIndicatorIcon } from "../../assets/icons/DragIndicator.js";
|
|
7
10
|
import { HeaderText } from "./HeaderText.js";
|
|
8
11
|
import { useTableNav } from "../../hooks/useTableNav.js";
|
|
9
|
-
import {
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
13
|
import { clsx } from "clsx";
|
|
11
14
|
import { useCallback, useMemo, useRef, useState } from "react";
|
|
12
|
-
import
|
|
15
|
+
import i18next from "i18next";
|
|
13
16
|
import { DndContext, KeyboardSensor, MouseSensor, TouchSensor, closestCenter, useSensor, useSensors } from "@dnd-kit/core";
|
|
14
17
|
import { restrictToVerticalAxis } from "@dnd-kit/modifiers";
|
|
15
18
|
import { SortableContext, arrayMove, useSortable, verticalListSortingStrategy } from "@dnd-kit/sortable";
|
|
16
19
|
import { CSS } from "@dnd-kit/utilities";
|
|
17
20
|
import { flexRender, getCoreRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from "@tanstack/react-table";
|
|
18
|
-
import i18next from "i18next";
|
|
19
21
|
//#region src/components/table/Table.tsx
|
|
20
22
|
var CustomCellContext = (context) => {
|
|
21
23
|
return {
|
|
@@ -36,7 +38,7 @@ var RowDragHandleCell = ({ rowId }) => {
|
|
|
36
38
|
...listeners,
|
|
37
39
|
className: "cursor-move p-1",
|
|
38
40
|
label: "Drag handle",
|
|
39
|
-
icon:
|
|
41
|
+
icon: DragIndicatorIcon
|
|
40
42
|
});
|
|
41
43
|
};
|
|
42
44
|
var AutoDragHandleCell = ({ row }) => /* @__PURE__ */ jsx(RowDragHandleCell, { rowId: row.id });
|
|
@@ -197,11 +199,11 @@ var Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, classN
|
|
|
197
199
|
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),
|
|
198
200
|
onClick: header_0.column.getToggleSortingHandler(),
|
|
199
201
|
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 }), {
|
|
200
|
-
asc: /* @__PURE__ */ jsx(
|
|
202
|
+
asc: /* @__PURE__ */ jsx(ChevronUpIcon, {
|
|
201
203
|
width: 18,
|
|
202
204
|
height: 18
|
|
203
205
|
}),
|
|
204
|
-
desc: /* @__PURE__ */ jsx(
|
|
206
|
+
desc: /* @__PURE__ */ jsx(ChevronDownIcon, {
|
|
205
207
|
width: 18,
|
|
206
208
|
height: 18
|
|
207
209
|
})
|
|
@@ -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";
|
|
5
4
|
import { c } from "react/compiler-runtime";
|
|
6
5
|
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";
|
|
1
2
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
3
|
import { Typography } from "../Typography/Typography.js";
|
|
3
4
|
import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
4
5
|
import { pillButtonDefinition } from "../../buttons/PillButton/pillButton.cva.js";
|
|
5
6
|
import "../../../config/i18n.js";
|
|
6
|
-
import {
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
8
|
import { clsx } from "clsx";
|
|
8
9
|
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(CloseIcon, { className: "size-4" })
|
|
40
40
|
})]
|
|
41
41
|
});
|
|
42
42
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { CloseIcon } from "../../../assets/icons/Close.js";
|
|
1
2
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
3
|
import { Typography } from "../Typography/Typography.js";
|
|
3
4
|
import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
4
5
|
import "../../../config/i18n.js";
|
|
5
6
|
import { tagDefinition } from "./tag.cva.js";
|
|
6
|
-
import {
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
8
|
import { clsx } from "clsx";
|
|
8
9
|
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(CloseIcon, { 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 { createContext, use, useCallback, useMemo, useState } from "react";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { createContext, use, useCallback, useMemo, useState } from "react";
|
|
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";
|
|
2
1
|
import { c } from "react/compiler-runtime";
|
|
3
2
|
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 { createContext, use, useCallback, useEffect, useMemo, useState } from "react";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { createContext, use, useCallback, useEffect, useMemo, useState } from "react";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/config/theme.context.tsx
|
|
6
6
|
var ThemeContext;
|
|
@@ -26,15 +26,9 @@ 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
|
-
|
|
32
|
-
checkbox: Pick<CheckboxProps, "variant"> & {
|
|
33
|
-
fireBlurOnChange?: boolean;
|
|
34
|
-
};
|
|
35
|
-
select: Pick<SelectBaseProps, "selectionMode" | "isSearchable" | "collapseAfter" | "selectedTagsType" | "hideSearchIcon" | "multiSelectAutoConfirm"> & {
|
|
36
|
-
fireBlurOnChange?: boolean;
|
|
37
|
-
};
|
|
29
|
+
radioGroup: Pick<RadioGroupProps, "variant" | "hideLabel" | "fireBlurOnChange">;
|
|
30
|
+
checkbox: Pick<CheckboxProps, "variant" | "fireBlurOnChange">;
|
|
31
|
+
select: Pick<SelectBaseProps, "selectionMode" | "isSearchable" | "collapseAfter" | "selectedTagsType" | "hideSearchIcon" | "fireBlurOnChange" | "multiSelectAutoConfirm">;
|
|
38
32
|
queryAutocomplete: {
|
|
39
33
|
isInitialQueryDisabled?: boolean;
|
|
40
34
|
resolveSelectedItemsWithIds?: boolean;
|
|
@@ -45,11 +39,9 @@ export declare namespace UIConfig {
|
|
|
45
39
|
resolveSelectedItemsWithIds?: boolean;
|
|
46
40
|
searchDebounceDelay?: number;
|
|
47
41
|
};
|
|
48
|
-
toggle: Pick<ToggleProps, "variant"
|
|
49
|
-
fireBlurOnChange?: boolean;
|
|
50
|
-
};
|
|
42
|
+
toggle: Pick<ToggleProps, "variant" | "fireBlurOnChange">;
|
|
51
43
|
slider: Pick<SliderProps, "minValue" | "maxValue">;
|
|
52
|
-
dateInput: Pick<DatePickerProps, "todayIcon" | "todayIconButtonSize" | "todayIconPlacement" | "shouldForceLeadingZeros" | "disableManualEntry" | "shouldUpdateDateOnMonthYearChange" | "granularity" | "autoFixYear"> & {
|
|
44
|
+
dateInput: Pick<DatePickerProps, "todayIcon" | "todayIconButtonSize" | "todayIconPlacement" | "shouldForceLeadingZeros" | "disableManualEntry" | "shouldUpdateDateOnMonthYearChange" | "granularity" | "autoFixYear" | "fireBlurOnChange"> & {
|
|
53
45
|
calendarIcon?: ReactElement;
|
|
54
46
|
dateTimeIcon?: ReactElement;
|
|
55
47
|
timeIcon?: ReactElement;
|
|
@@ -57,7 +49,6 @@ export declare namespace UIConfig {
|
|
|
57
49
|
timeZone?: string;
|
|
58
50
|
todayIconButtonComponent?: DatePickerProps["todayIconButtonComponent"];
|
|
59
51
|
allowPartialRange?: boolean;
|
|
60
|
-
fireBlurOnChange?: boolean;
|
|
61
52
|
};
|
|
62
53
|
actionModal: Pick<ActionModalProps, "titleTypography" | "descriptionTypography">;
|
|
63
54
|
bottomSheet: Pick<BottomSheetProps, "closeDragThreshold" | "closeVelocityThreshold" | "hideThumb" | "headerTypography">;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { CalendarIcon } from "../assets/icons/Calendar.js";
|
|
2
|
+
import { ClockIcon } from "../assets/icons/Clock.js";
|
|
3
|
+
import { DateTimeIcon } from "../assets/icons/DateTime.js";
|
|
1
4
|
import { ObjectUtils } from "../utils/object.utils.js";
|
|
2
5
|
import { useDeepCompareMemo } from "../hooks/useDeepCompare.js";
|
|
3
|
-
import { Calendar, CalendarClock, Clock } from "lucide-react";
|
|
4
|
-
import { createContext, use } from "react";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { createContext, use } from "react";
|
|
6
8
|
//#region src/config/uiConfig.context.tsx
|
|
7
9
|
var UIConfig;
|
|
8
10
|
(function(_UIConfig) {
|
|
@@ -39,8 +41,8 @@ var UIConfig;
|
|
|
39
41
|
selectedTagsType: "list",
|
|
40
42
|
collapseAfter: 3,
|
|
41
43
|
hideSearchIcon: false,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
fireBlurOnChange: false,
|
|
45
|
+
multiSelectAutoConfirm: false
|
|
44
46
|
},
|
|
45
47
|
queryAutocomplete: {
|
|
46
48
|
isInitialQueryDisabled: false,
|
|
@@ -68,15 +70,15 @@ var UIConfig;
|
|
|
68
70
|
shouldForceLeadingZeros: false,
|
|
69
71
|
disableManualEntry: false,
|
|
70
72
|
autoFixYear: false,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
fireBlurOnChange: false,
|
|
74
|
+
calendarIcon: /* @__PURE__ */ jsx(CalendarIcon, { className: "size-5" }),
|
|
75
|
+
dateTimeIcon: /* @__PURE__ */ jsx(DateTimeIcon, { className: "size-5" }),
|
|
76
|
+
timeIcon: /* @__PURE__ */ jsx(ClockIcon, { className: "size-6 text-interactive-text-secondary-idle" }),
|
|
74
77
|
setDateValueOnDateSelection: false,
|
|
75
78
|
timeZone: "clientLocal",
|
|
76
79
|
granularity: "day",
|
|
77
80
|
shouldUpdateDateOnMonthYearChange: false,
|
|
78
|
-
allowPartialRange: false
|
|
79
|
-
fireBlurOnChange: false
|
|
81
|
+
allowPartialRange: false
|
|
80
82
|
},
|
|
81
83
|
actionModal: {
|
|
82
84
|
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";
|
|
2
4
|
import { clsx } from "clsx";
|
|
3
5
|
import { createContext, use } from "react";
|
|
4
|
-
import { c } from "react/compiler-runtime";
|
|
5
6
|
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,6 +1,6 @@
|
|
|
1
1
|
import { CellContext, ColumnDef, ColumnMeta } from '@tanstack/react-table';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { FieldPath } from '
|
|
3
|
+
import { FieldPath } from 'react-hook-form';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
type NestedTypeFromKey<T, K extends string> = K extends keyof T ? T[K] : K extends `${infer First}.${infer Rest}` ? First extends keyof T ? NestedTypeFromKey<T[First], Rest> : never : never;
|
|
6
6
|
type SchemaType<TSchema extends z.ZodObject<any>> = z.infer<TSchema>;
|