@povio/ui 3.3.0 → 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.d.ts +1 -2
- package/dist/components/inputs/Checkbox/Checkbox.js +95 -102
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +2 -3
- package/dist/components/inputs/Checkbox/CheckboxGroup.d.ts +1 -2
- package/dist/components/inputs/Checkbox/CheckboxGroup.js +111 -115
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +2 -2
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +17 -22
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +17 -23
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +2 -2
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +21 -25
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +2 -2
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +225 -238
- 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 -2
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +8 -16
- 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 -2
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +10 -11
- 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.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 +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.d.ts +1 -1
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +109 -107
- 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 +2 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +25 -24
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +3 -4
- package/dist/components/inputs/Input/TextArea/TextArea.d.ts +2 -1
- package/dist/components/inputs/Input/TextArea/TextArea.js +118 -117
- 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 +2 -1
- package/dist/components/inputs/Input/shared/InputContent.js +50 -48
- 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 +36 -37
- package/dist/components/inputs/Inputs/Inputs.d.ts +2 -2
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +1 -2
- package/dist/components/inputs/RadioGroup/RadioGroup.js +109 -113
- 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 +34 -37
- 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.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/select.context.js +5 -9
- package/dist/components/inputs/Selection/shared/select.types.d.ts +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.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 +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.d.ts +1 -2
- package/dist/components/inputs/Toggle/Toggle.js +61 -65
- 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/form.binding.d.ts +27 -0
- package/dist/components/inputs/shared/form.binding.js +57 -0
- package/dist/components/inputs/shared/form.types.d.ts +9 -8
- package/dist/components/inputs/shared/form.types.js +8 -0
- 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.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 +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 +14 -5
- package/dist/config/uiConfig.context.js +9 -11
- 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 +64 -49
- package/dist/hooks/useFilters.js +1 -1
- package/dist/hooks/useForm.d.ts +39 -15
- package/dist/hooks/useForm.js +96 -43
- package/dist/hooks/useFormAutosave.d.ts +8 -9
- package/dist/hooks/useFormAutosave.js +23 -9
- 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 +11 -71
- 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/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 -3
- 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
- /package/dist/{hooks/useAutosave.spec.d.ts → rhf/entrypoints.type-test.d.ts} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ChevronDownIcon } from "../../../assets/icons/ChevronDown.js";
|
|
2
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
3
2
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
4
3
|
import { accordionChevronDefinition, accordionHeadingDefinition, accordionHeadingSubtitleDefinition, accordionHeadingTitleDefinition, accordionIconDefinition, accordionItemDefinition, accordionPanelContentDefinition, accordionPanelDefinition, accordionTriggerDefinition } from "./accordion.cva.js";
|
|
5
|
-
import {
|
|
4
|
+
import { ChevronDown } from "lucide-react";
|
|
6
5
|
import { Button, Disclosure, DisclosurePanel, Heading } from "react-aria-components";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/navigation/Accordion/AccordionItem.tsx
|
|
8
8
|
var AccordionItem = ({ id, disabled, heading, subheading, children, icon: Icon, variant = "filled", actionPosition = "right", isSingle }) => {
|
|
9
9
|
const itemCva = UIOverrides.useCva("accordion.itemCva", accordionItemDefinition);
|
|
@@ -49,7 +49,7 @@ var AccordionItem = ({ id, disabled, heading, subheading, children, icon: Icon,
|
|
|
49
49
|
})
|
|
50
50
|
]
|
|
51
51
|
})
|
|
52
|
-
}), /* @__PURE__ */ jsx(
|
|
52
|
+
}), /* @__PURE__ */ jsx(ChevronDown, { className: chevronCva({ isExpanded }) })]
|
|
53
53
|
}) }), /* @__PURE__ */ jsx(DisclosurePanel, {
|
|
54
54
|
className: panelCva({ isExpanded }),
|
|
55
55
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -2,8 +2,8 @@ import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
|
2
2
|
import { stepperDefinition } from "./stepper.cva.js";
|
|
3
3
|
import { StepperItem } from "./StepperItem.js";
|
|
4
4
|
import { StepperSeparator } from "./StepperSeparator.js";
|
|
5
|
+
import { Fragment } from "react";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { Fragment as Fragment$1 } from "react";
|
|
7
7
|
//#region src/components/navigation/Stepper/Stepper.tsx
|
|
8
8
|
var Stepper = ({ steps, currentStep, orientation = "horizontal", contentOrientation = "horizontal", iconsOnly, titlesOnly, onStepClick, className }) => {
|
|
9
9
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -15,7 +15,7 @@ var Stepper = ({ steps, currentStep, orientation = "horizontal", contentOrientat
|
|
|
15
15
|
"aria-label": "Progress",
|
|
16
16
|
children: steps.map((step, index) => {
|
|
17
17
|
const status = index < currentStep ? "completed" : index === currentStep ? "active" : "todo";
|
|
18
|
-
return /* @__PURE__ */ jsxs(Fragment
|
|
18
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(StepperItem, {
|
|
19
19
|
step,
|
|
20
20
|
stepNumber: index + 1,
|
|
21
21
|
status,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CheckIcon } from "../../../assets/icons/Check.js";
|
|
2
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
3
2
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
4
3
|
import { stepperIconDefinition, stepperItemDefinition, stepperNumberDefinition, stepperSubtextDefinition, stepperTitleDefinition } from "./stepper.cva.js";
|
|
5
|
-
import {
|
|
6
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Check } from "lucide-react";
|
|
7
5
|
import { clsx } from "clsx";
|
|
8
6
|
import { Button } from "react-aria-components";
|
|
7
|
+
import { c } from "react/compiler-runtime";
|
|
8
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/navigation/Stepper/StepperItem.tsx
|
|
10
10
|
var StepperItem = (t0) => {
|
|
11
11
|
const $ = c(31);
|
|
@@ -26,7 +26,7 @@ var StepperItem = (t0) => {
|
|
|
26
26
|
} else t1 = $[2];
|
|
27
27
|
let t2;
|
|
28
28
|
if ($[3] !== status || $[4] !== stepNumber || $[5] !== stepperNumberCva) {
|
|
29
|
-
t2 = status === "completed" ? /* @__PURE__ */ jsx(
|
|
29
|
+
t2 = status === "completed" ? /* @__PURE__ */ jsx(Check, { className: "size-5 text-interactive-contained-primary-on-idle" }) : /* @__PURE__ */ jsx(Typography, {
|
|
30
30
|
className: stepperNumberCva({ status }),
|
|
31
31
|
variant: "prominent-1",
|
|
32
32
|
size: "label-3",
|
|
@@ -2,8 +2,8 @@ import { Typography } from "../../text/Typography/Typography.js";
|
|
|
2
2
|
import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
3
3
|
import { Button } from "../../buttons/Button/Button.js";
|
|
4
4
|
import { Modal } from "../Modal/Modal.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
|
//#region src/components/overlays/ActionModal/ActionModal.tsx
|
|
8
8
|
var textAlignClassMap = {
|
|
9
9
|
left: "text-left",
|
|
@@ -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);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Key } from 'react-aria-components';
|
|
2
|
-
import { FieldValues } from '
|
|
2
|
+
import { FieldValues } from '../inputs/shared/form.binding';
|
|
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";
|
|
2
3
|
import { FormField } from "../inputs/FormField/FormField.js";
|
|
3
4
|
import { segmentDefinition } from "./segment.cva.js";
|
|
4
5
|
import { SegmentItem } from "./SegmentItem.js";
|
|
5
|
-
import { c } from "react/compiler-runtime";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import { clsx } from "clsx";
|
|
8
|
-
import { Fragment
|
|
7
|
+
import { Fragment, useRef } from "react";
|
|
9
8
|
import { ToggleButtonGroup } from "react-aria-components";
|
|
9
|
+
import { c } from "react/compiler-runtime";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
11
|
import { useToggleButtonGroup } from "react-aria";
|
|
11
12
|
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
|
|
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,
|
|
@@ -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 ("field" in props && props.field) {
|
|
185
|
+
let field;
|
|
186
186
|
let innerProps;
|
|
187
187
|
let ref;
|
|
188
188
|
if ($[0] !== props) {
|
|
189
|
-
({
|
|
189
|
+
({field, ref, ...innerProps} = props);
|
|
190
190
|
$[0] = props;
|
|
191
|
-
$[1] =
|
|
191
|
+
$[1] = field;
|
|
192
192
|
$[2] = innerProps;
|
|
193
193
|
$[3] = ref;
|
|
194
194
|
} else {
|
|
195
|
-
|
|
195
|
+
field = $[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, fieldState: t2 } = t1;
|
|
202
|
+
const { field: field_0, 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_0.ref),
|
|
207
|
+
value: field_0.value,
|
|
208
|
+
onChange: field_0.onChange,
|
|
209
|
+
isDisabled: field_0.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] !== field.form || $[10] !== field.name || $[11] !== t0) {
|
|
221
|
+
t1 = /* @__PURE__ */ jsx(FieldController, {
|
|
222
|
+
control: field.form,
|
|
223
|
+
name: field.name,
|
|
224
224
|
render: t0
|
|
225
225
|
});
|
|
226
|
-
$[9] =
|
|
227
|
-
$[10] =
|
|
226
|
+
$[9] = field.form;
|
|
227
|
+
$[10] = field.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";
|
|
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);
|
|
@@ -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 '../inputs/shared/form.binding';
|
|
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 { 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,9 +45,11 @@ 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
|
-
dateInput: Pick<DatePickerProps, "todayIcon" | "todayIconButtonSize" | "todayIconPlacement" | "shouldForceLeadingZeros" | "disableManualEntry" | "shouldUpdateDateOnMonthYearChange" | "granularity" | "autoFixYear"
|
|
52
|
+
dateInput: Pick<DatePickerProps, "todayIcon" | "todayIconButtonSize" | "todayIconPlacement" | "shouldForceLeadingZeros" | "disableManualEntry" | "shouldUpdateDateOnMonthYearChange" | "granularity" | "autoFixYear"> & {
|
|
45
53
|
calendarIcon?: ReactElement;
|
|
46
54
|
dateTimeIcon?: ReactElement;
|
|
47
55
|
timeIcon?: 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">;
|