@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
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
3
|
-
import { FieldController } from "../shared/form.binding.js";
|
|
4
3
|
import { FormFieldError } from "../FormField/FormFieldError.js";
|
|
5
4
|
import { CheckContent } from "../shared/CheckContent.js";
|
|
6
5
|
import { toggleContentClassName, toggleDefinition, toggleTypography } from "./toggle.cva.js";
|
|
7
|
-
import { clsx } from "clsx";
|
|
8
|
-
import { Switch } from "react-aria-components";
|
|
9
6
|
import { c } from "react/compiler-runtime";
|
|
10
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { clsx } from "clsx";
|
|
9
|
+
import { Switch } from "react-aria-components";
|
|
11
10
|
import { mergeRefs } from "@react-aria/utils";
|
|
11
|
+
import { Controller } from "react-hook-form";
|
|
12
12
|
//#region src/components/inputs/Toggle/Toggle.tsx
|
|
13
13
|
var ToggleBase = (props) => {
|
|
14
|
-
const $ = c(
|
|
14
|
+
const $ = c(50);
|
|
15
15
|
const ui = UIConfig.useConfig();
|
|
16
16
|
const toggleCva = UIOverrides.useCva("toggle.cva", toggleDefinition);
|
|
17
17
|
const toggleTypographyMap = UIOverrides.useMapper("toggle.typography", toggleTypography);
|
|
@@ -31,9 +31,10 @@ var ToggleBase = (props) => {
|
|
|
31
31
|
let t8;
|
|
32
32
|
let t9;
|
|
33
33
|
if ($[0] !== props || $[1] !== toggleContentClassNameMap || $[2] !== toggleCva || $[3] !== toggleTypographyMap || $[4] !== ui) {
|
|
34
|
-
const { className, children: t10, isDisabled, error, variant: variantProp, onChange, onBlur, ...rest } = props;
|
|
34
|
+
const { className, children: t10, isDisabled, error, variant: variantProp, fireBlurOnChange: fireBlurOnChangeProp, onChange, onBlur, ...rest } = props;
|
|
35
35
|
children = t10;
|
|
36
36
|
const variant = variantProp ?? ui.toggle.variant;
|
|
37
|
+
const fireBlurOnChange = fireBlurOnChangeProp ?? ui.toggle.fireBlurOnChange;
|
|
37
38
|
let t11;
|
|
38
39
|
if ($[19] !== error || $[20] !== isDisabled) {
|
|
39
40
|
t11 = {
|
|
@@ -46,13 +47,16 @@ var ToggleBase = (props) => {
|
|
|
46
47
|
} else t11 = $[21];
|
|
47
48
|
formFieldErrorProps = t11;
|
|
48
49
|
let t12;
|
|
49
|
-
if ($[22] !== onChange) {
|
|
50
|
+
if ($[22] !== fireBlurOnChange || $[23] !== onBlur || $[24] !== onChange) {
|
|
50
51
|
t12 = (isSelected) => {
|
|
51
52
|
onChange?.(isSelected);
|
|
53
|
+
if (fireBlurOnChange) onBlur?.({});
|
|
52
54
|
};
|
|
53
|
-
$[22] =
|
|
54
|
-
$[23] =
|
|
55
|
-
|
|
55
|
+
$[22] = fireBlurOnChange;
|
|
56
|
+
$[23] = onBlur;
|
|
57
|
+
$[24] = onChange;
|
|
58
|
+
$[25] = t12;
|
|
59
|
+
} else t12 = $[25];
|
|
56
60
|
const handleChange = t12;
|
|
57
61
|
T1 = Switch;
|
|
58
62
|
t2 = rest;
|
|
@@ -62,12 +66,12 @@ var ToggleBase = (props) => {
|
|
|
62
66
|
t6 = handleChange;
|
|
63
67
|
t7 = onBlur;
|
|
64
68
|
const t13 = !isDisabled && "cursor-pointer";
|
|
65
|
-
if ($[
|
|
69
|
+
if ($[26] !== className || $[27] !== t13) {
|
|
66
70
|
t8 = clsx("group flex items-center gap-2", t13, className);
|
|
67
|
-
$[
|
|
68
|
-
$[
|
|
69
|
-
$[
|
|
70
|
-
} else t8 = $[
|
|
71
|
+
$[26] = className;
|
|
72
|
+
$[27] = t13;
|
|
73
|
+
$[28] = t8;
|
|
74
|
+
} else t8 = $[28];
|
|
71
75
|
t9 = /* @__PURE__ */ jsx("div", { className: toggleCva({
|
|
72
76
|
variant,
|
|
73
77
|
...rest
|
|
@@ -117,20 +121,20 @@ var ToggleBase = (props) => {
|
|
|
117
121
|
t9 = $[18];
|
|
118
122
|
}
|
|
119
123
|
let t10;
|
|
120
|
-
if ($[
|
|
124
|
+
if ($[29] !== T0 || $[30] !== children || $[31] !== t0 || $[32] !== t1) {
|
|
121
125
|
t10 = /* @__PURE__ */ jsx(T0, {
|
|
122
126
|
typography: t0,
|
|
123
127
|
contentClassName: t1,
|
|
124
128
|
children
|
|
125
129
|
});
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
130
|
-
$[
|
|
131
|
-
} else t10 = $[
|
|
130
|
+
$[29] = T0;
|
|
131
|
+
$[30] = children;
|
|
132
|
+
$[31] = t0;
|
|
133
|
+
$[32] = t1;
|
|
134
|
+
$[33] = t10;
|
|
135
|
+
} else t10 = $[33];
|
|
132
136
|
let t11;
|
|
133
|
-
if ($[
|
|
137
|
+
if ($[34] !== T1 || $[35] !== t10 || $[36] !== t2 || $[37] !== t3 || $[38] !== t4 || $[39] !== t5 || $[40] !== t6 || $[41] !== t7 || $[42] !== t8 || $[43] !== t9) {
|
|
134
138
|
t11 = /* @__PURE__ */ jsxs(T1, {
|
|
135
139
|
...t2,
|
|
136
140
|
"data-is-dirty": t3,
|
|
@@ -141,64 +145,64 @@ var ToggleBase = (props) => {
|
|
|
141
145
|
className: t8,
|
|
142
146
|
children: [t9, t10]
|
|
143
147
|
});
|
|
144
|
-
$[
|
|
145
|
-
$[
|
|
146
|
-
$[
|
|
147
|
-
$[
|
|
148
|
-
$[
|
|
149
|
-
$[
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
155
|
-
} else t11 = $[
|
|
148
|
+
$[34] = T1;
|
|
149
|
+
$[35] = t10;
|
|
150
|
+
$[36] = t2;
|
|
151
|
+
$[37] = t3;
|
|
152
|
+
$[38] = t4;
|
|
153
|
+
$[39] = t5;
|
|
154
|
+
$[40] = t6;
|
|
155
|
+
$[41] = t7;
|
|
156
|
+
$[42] = t8;
|
|
157
|
+
$[43] = t9;
|
|
158
|
+
$[44] = t11;
|
|
159
|
+
} else t11 = $[44];
|
|
156
160
|
let t12;
|
|
157
|
-
if ($[
|
|
161
|
+
if ($[45] !== formFieldErrorProps) {
|
|
158
162
|
t12 = /* @__PURE__ */ jsx(FormFieldError, { ...formFieldErrorProps });
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
161
|
-
} else t12 = $[
|
|
163
|
+
$[45] = formFieldErrorProps;
|
|
164
|
+
$[46] = t12;
|
|
165
|
+
} else t12 = $[46];
|
|
162
166
|
let t13;
|
|
163
|
-
if ($[
|
|
167
|
+
if ($[47] !== t11 || $[48] !== t12) {
|
|
164
168
|
t13 = /* @__PURE__ */ jsxs(Fragment, { children: [t11, t12] });
|
|
165
|
-
$[
|
|
166
|
-
$[
|
|
167
|
-
$[
|
|
168
|
-
} else t13 = $[
|
|
169
|
+
$[47] = t11;
|
|
170
|
+
$[48] = t12;
|
|
171
|
+
$[49] = t13;
|
|
172
|
+
} else t13 = $[49];
|
|
169
173
|
return t13;
|
|
170
174
|
};
|
|
171
175
|
var Toggle = (props) => {
|
|
172
176
|
const $ = c(15);
|
|
173
|
-
if ("
|
|
174
|
-
let
|
|
177
|
+
if ("formControl" in props && props.formControl) {
|
|
178
|
+
let formControl;
|
|
175
179
|
let innerProps;
|
|
176
180
|
let ref;
|
|
177
181
|
if ($[0] !== props) {
|
|
178
|
-
({
|
|
182
|
+
({formControl, ref, ...innerProps} = props);
|
|
179
183
|
$[0] = props;
|
|
180
|
-
$[1] =
|
|
184
|
+
$[1] = formControl;
|
|
181
185
|
$[2] = innerProps;
|
|
182
186
|
$[3] = ref;
|
|
183
187
|
} else {
|
|
184
|
-
|
|
188
|
+
formControl = $[1];
|
|
185
189
|
innerProps = $[2];
|
|
186
190
|
ref = $[3];
|
|
187
191
|
}
|
|
188
192
|
let t0;
|
|
189
193
|
if ($[4] !== innerProps || $[5] !== props.error || $[6] !== props.isDisabled || $[7] !== ref) {
|
|
190
194
|
t0 = (t1) => {
|
|
191
|
-
const { field
|
|
195
|
+
const { field, fieldState: t2 } = t1;
|
|
192
196
|
const { error, isDirty } = t2;
|
|
193
197
|
return /* @__PURE__ */ jsx(ToggleBase, {
|
|
194
198
|
...innerProps,
|
|
195
|
-
ref: mergeRefs(ref,
|
|
196
|
-
isSelected:
|
|
197
|
-
onChange:
|
|
198
|
-
onBlur:
|
|
199
|
-
name:
|
|
199
|
+
ref: mergeRefs(ref, field.ref),
|
|
200
|
+
isSelected: field.value,
|
|
201
|
+
onChange: field.onChange,
|
|
202
|
+
onBlur: field.onBlur,
|
|
203
|
+
name: field.name,
|
|
200
204
|
isDirty,
|
|
201
|
-
isDisabled:
|
|
205
|
+
isDisabled: field.disabled || props.isDisabled,
|
|
202
206
|
error: props.error ?? error?.message
|
|
203
207
|
});
|
|
204
208
|
};
|
|
@@ -209,14 +213,14 @@ var Toggle = (props) => {
|
|
|
209
213
|
$[8] = t0;
|
|
210
214
|
} else t0 = $[8];
|
|
211
215
|
let t1;
|
|
212
|
-
if ($[9] !==
|
|
213
|
-
t1 = /* @__PURE__ */ jsx(
|
|
214
|
-
control:
|
|
215
|
-
name:
|
|
216
|
+
if ($[9] !== formControl.control || $[10] !== formControl.name || $[11] !== t0) {
|
|
217
|
+
t1 = /* @__PURE__ */ jsx(Controller, {
|
|
218
|
+
control: formControl.control,
|
|
219
|
+
name: formControl.name,
|
|
216
220
|
render: t0
|
|
217
221
|
});
|
|
218
|
-
$[9] =
|
|
219
|
-
$[10] =
|
|
222
|
+
$[9] = formControl.control;
|
|
223
|
+
$[10] = formControl.name;
|
|
220
224
|
$[11] = t0;
|
|
221
225
|
$[12] = t1;
|
|
222
226
|
} else t1 = $[12];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
import { typographyDefinition } from "../../text/Typography/typography.cva.js";
|
|
3
|
-
import clsx$1 from "clsx";
|
|
4
3
|
import { c } from "react/compiler-runtime";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import clsx$1 from "clsx";
|
|
6
6
|
//#region src/components/inputs/shared/CheckContent.tsx
|
|
7
7
|
var CheckContent = (t0) => {
|
|
8
8
|
const $ = c(3);
|
|
@@ -1,77 +1,63 @@
|
|
|
1
|
+
import { CloseIcon } from "../../../assets/icons/Close.js";
|
|
1
2
|
import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
2
3
|
import { InlineIconButton } from "../../buttons/InlineIconButton/InlineIconButton.js";
|
|
3
4
|
import "../../../config/i18n.js";
|
|
4
|
-
import { X } from "lucide-react";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
5
|
import { c } from "react/compiler-runtime";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
8
|
import { useTranslation } from "react-i18next";
|
|
9
9
|
//#region src/components/inputs/shared/InputClear.tsx
|
|
10
10
|
var InputClear = (t0) => {
|
|
11
|
-
const $ = c(
|
|
11
|
+
const $ = c(12);
|
|
12
12
|
const { onClear, className, style, show, renderStatic } = t0;
|
|
13
|
-
const
|
|
14
|
-
const { t } = useTranslation("ui");
|
|
15
|
-
const alwaysShowClear = ui.input.alwaysShowClear;
|
|
13
|
+
const alwaysShowClear = UIConfig.useConfig().input.alwaysShowClear;
|
|
16
14
|
let clearClassName;
|
|
17
15
|
let t1;
|
|
18
|
-
if ($[0] !== alwaysShowClear || $[1] !== className || $[2] !==
|
|
16
|
+
if ($[0] !== alwaysShowClear || $[1] !== className || $[2] !== renderStatic || $[3] !== show || $[4] !== style) {
|
|
19
17
|
t1 = Symbol.for("react.early_return_sentinel");
|
|
20
18
|
bb0: {
|
|
21
19
|
clearClassName = clsx("relative z-raised flex items-center", !alwaysShowClear && "md:invisible group-focus-within:visible group-hover/date-picker-content:visible group-hover/select-content:visible group-hover/text-area:visible group-hover:visible", "border-0!", !show && "invisible!", className);
|
|
22
20
|
if (renderStatic) {
|
|
23
21
|
let t2;
|
|
24
|
-
if ($[
|
|
25
|
-
t2 =
|
|
26
|
-
$[
|
|
27
|
-
|
|
28
|
-
$[11] = t2;
|
|
29
|
-
} else t2 = $[11];
|
|
30
|
-
let t3;
|
|
31
|
-
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
32
|
-
t3 = /* @__PURE__ */ jsx(X, { className: "h-6 w-6 shrink-0" });
|
|
33
|
-
$[12] = t3;
|
|
34
|
-
} else t3 = $[12];
|
|
22
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
23
|
+
t2 = /* @__PURE__ */ jsx(CloseIcon, { className: "h-6 w-6 shrink-0" });
|
|
24
|
+
$[7] = t2;
|
|
25
|
+
} else t2 = $[7];
|
|
35
26
|
t1 = /* @__PURE__ */ jsx("button", {
|
|
36
27
|
type: "button",
|
|
37
|
-
"aria-hidden":
|
|
38
|
-
"aria-label": t2,
|
|
39
|
-
"data-static-clear-action": true,
|
|
28
|
+
"aria-hidden": "true",
|
|
40
29
|
tabIndex: -1,
|
|
41
|
-
onClick: onClear,
|
|
42
30
|
className: clsx("group inline-flex items-center justify-center border border-solid border-support-transparent-outline", "rounded-button-rounding-s p-0 text-interactive-text-secondary-idle", clearClassName),
|
|
43
31
|
style,
|
|
44
|
-
children:
|
|
32
|
+
children: t2
|
|
45
33
|
});
|
|
46
34
|
break bb0;
|
|
47
35
|
}
|
|
48
36
|
}
|
|
49
37
|
$[0] = alwaysShowClear;
|
|
50
38
|
$[1] = className;
|
|
51
|
-
$[2] =
|
|
52
|
-
$[3] =
|
|
53
|
-
$[4] =
|
|
54
|
-
$[5] =
|
|
55
|
-
$[6] =
|
|
56
|
-
$[7] = clearClassName;
|
|
57
|
-
$[8] = t1;
|
|
39
|
+
$[2] = renderStatic;
|
|
40
|
+
$[3] = show;
|
|
41
|
+
$[4] = style;
|
|
42
|
+
$[5] = clearClassName;
|
|
43
|
+
$[6] = t1;
|
|
58
44
|
} else {
|
|
59
|
-
clearClassName = $[
|
|
60
|
-
t1 = $[
|
|
45
|
+
clearClassName = $[5];
|
|
46
|
+
t1 = $[6];
|
|
61
47
|
}
|
|
62
48
|
if (t1 !== Symbol.for("react.early_return_sentinel")) return t1;
|
|
63
49
|
let t2;
|
|
64
|
-
if ($[
|
|
50
|
+
if ($[8] !== clearClassName || $[9] !== onClear || $[10] !== style) {
|
|
65
51
|
t2 = /* @__PURE__ */ jsx(InputClearButton, {
|
|
66
52
|
onClear,
|
|
67
53
|
className: clearClassName,
|
|
68
54
|
style
|
|
69
55
|
});
|
|
70
|
-
$[
|
|
71
|
-
$[
|
|
72
|
-
$[
|
|
73
|
-
$[
|
|
74
|
-
} else t2 = $[
|
|
56
|
+
$[8] = clearClassName;
|
|
57
|
+
$[9] = onClear;
|
|
58
|
+
$[10] = style;
|
|
59
|
+
$[11] = t2;
|
|
60
|
+
} else t2 = $[11];
|
|
75
61
|
return t2;
|
|
76
62
|
};
|
|
77
63
|
var InputClearButton = (t0) => {
|
|
@@ -80,7 +66,7 @@ var InputClearButton = (t0) => {
|
|
|
80
66
|
const { t } = useTranslation("ui");
|
|
81
67
|
let t1;
|
|
82
68
|
if ($[0] !== t) {
|
|
83
|
-
t1 = t(
|
|
69
|
+
t1 = t(_temp);
|
|
84
70
|
$[0] = t;
|
|
85
71
|
$[1] = t1;
|
|
86
72
|
} else t1 = $[1];
|
|
@@ -90,9 +76,9 @@ var InputClearButton = (t0) => {
|
|
|
90
76
|
color: "secondary",
|
|
91
77
|
className,
|
|
92
78
|
label: t1,
|
|
93
|
-
icon:
|
|
79
|
+
icon: CloseIcon,
|
|
94
80
|
onPress: onClear,
|
|
95
|
-
onMouseDown:
|
|
81
|
+
onMouseDown: _temp2,
|
|
96
82
|
excludeFromTabOrder: true,
|
|
97
83
|
style
|
|
98
84
|
});
|
|
@@ -107,10 +93,7 @@ var InputClearButton = (t0) => {
|
|
|
107
93
|
function _temp($) {
|
|
108
94
|
return $.ui.clearAlt;
|
|
109
95
|
}
|
|
110
|
-
function _temp2(
|
|
111
|
-
return $.ui.clearAlt;
|
|
112
|
-
}
|
|
113
|
-
function _temp3(e) {
|
|
96
|
+
function _temp2(e) {
|
|
114
97
|
return e.preventDefault();
|
|
115
98
|
}
|
|
116
99
|
//#endregion
|
|
@@ -6,5 +6,5 @@ interface TooltipWrapperProps {
|
|
|
6
6
|
triggerClassName?: string;
|
|
7
7
|
triggerTabIndex?: number;
|
|
8
8
|
}
|
|
9
|
-
export declare const TooltipWrapper: (props: TooltipWrapperProps) => string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> |
|
|
9
|
+
export declare const TooltipWrapper: (props: TooltipWrapperProps) => string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | null | undefined;
|
|
10
10
|
export {};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Control, FieldPath, FieldPathValue, FieldValues } from 'react-hook-form';
|
|
2
2
|
export type ControlKeys<TProps, TValueProp extends keyof TProps = "value" extends keyof TProps ? "value" : never> = TValueProp | "onChange" | "onBlur";
|
|
3
|
-
export interface FormControl<TFieldValues extends
|
|
4
|
-
|
|
3
|
+
export interface FormControl<TFieldValues extends FieldValues, TType> {
|
|
4
|
+
control: Control<TFieldValues>;
|
|
5
5
|
name: {
|
|
6
|
-
[K in
|
|
7
|
-
}[
|
|
6
|
+
[K in FieldPath<TFieldValues>]: FieldPathValue<TFieldValues, K> extends TType ? K : never;
|
|
7
|
+
}[FieldPath<TFieldValues>];
|
|
8
8
|
}
|
|
9
|
-
export type FormControlProps<TProps, TFieldValues extends
|
|
10
|
-
|
|
9
|
+
export type FormControlProps<TProps, TFieldValues extends FieldValues, TValueProp extends keyof TProps = "value" extends keyof TProps ? "value" : never> = {
|
|
10
|
+
formControl: FormControl<TFieldValues, TProps[TValueProp] | null>;
|
|
11
11
|
} & Omit<TProps, ControlKeys<TProps, TValueProp>> & Partial<Record<ControlKeys<TProps, TValueProp>, never>>;
|
|
12
|
-
export type ControlProps<TProps, TFieldValues extends
|
|
13
|
-
export declare const getFieldError: (errors: unknown[]) => string | undefined;
|
|
12
|
+
export type ControlProps<TProps, TFieldValues extends FieldValues, TValueProp extends keyof TProps = "value" extends keyof TProps ? "value" : never> = FormControlProps<TProps, TFieldValues, TValueProp> | TProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
import { uiOutlineClass } from "../../outline.clsx.js";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
3
|
import { c } from "react/compiler-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
5
|
//#region src/components/inputs/shared/input.cva.ts
|
|
6
6
|
var inputBaseDefinition = UIOverrides.defineConfig({
|
|
7
7
|
base: [uiOutlineClass, "flex w-full not-[textarea]:truncate"],
|
|
@@ -1,33 +1,18 @@
|
|
|
1
|
-
import { useLayoutEffect, useRef, useState } from "react";
|
|
2
1
|
import { c } from "react/compiler-runtime";
|
|
2
|
+
import { useLayoutEffect, useRef, useState } from "react";
|
|
3
3
|
//#region src/components/inputs/shared/useStaticInputHandoff.ts
|
|
4
4
|
var useStaticInputHandoff = (t0) => {
|
|
5
|
-
const $ = c(
|
|
5
|
+
const $ = c(16);
|
|
6
6
|
const { inputRef, renderInput, setRenderInput, getFocusTarget, getPressTarget } = t0;
|
|
7
7
|
const [shouldFocus, setShouldFocus] = useState(false);
|
|
8
8
|
const pendingStaticChangeRef = useRef(null);
|
|
9
9
|
const pendingStaticFocusTargetRef = useRef(null);
|
|
10
10
|
const resolvedFocusTargetRef = useRef(null);
|
|
11
11
|
const shouldReplayStaticPressRef = useRef(false);
|
|
12
|
-
const hoverHandoffFrameRef = useRef(null);
|
|
13
12
|
let t1;
|
|
14
13
|
let t2;
|
|
15
|
-
if ($[0]
|
|
16
|
-
t1 = () =>
|
|
17
|
-
if (hoverHandoffFrameRef.current !== null) cancelAnimationFrame(hoverHandoffFrameRef.current);
|
|
18
|
-
};
|
|
19
|
-
t2 = [];
|
|
20
|
-
$[0] = t1;
|
|
21
|
-
$[1] = t2;
|
|
22
|
-
} else {
|
|
23
|
-
t1 = $[0];
|
|
24
|
-
t2 = $[1];
|
|
25
|
-
}
|
|
26
|
-
useLayoutEffect(t1, t2);
|
|
27
|
-
let t3;
|
|
28
|
-
let t4;
|
|
29
|
-
if ($[2] !== getFocusTarget || $[3] !== getPressTarget || $[4] !== inputRef || $[5] !== renderInput || $[6] !== shouldFocus) {
|
|
30
|
-
t3 = () => {
|
|
14
|
+
if ($[0] !== getFocusTarget || $[1] !== getPressTarget || $[2] !== inputRef || $[3] !== renderInput || $[4] !== shouldFocus) {
|
|
15
|
+
t1 = () => {
|
|
31
16
|
if (!renderInput || !shouldFocus) return;
|
|
32
17
|
const focusRealInput = (replayPendingInteraction) => {
|
|
33
18
|
const input = inputRef.current;
|
|
@@ -60,79 +45,68 @@ var useStaticInputHandoff = (t0) => {
|
|
|
60
45
|
cancelAnimationFrame(frame);
|
|
61
46
|
};
|
|
62
47
|
};
|
|
63
|
-
|
|
48
|
+
t2 = [
|
|
64
49
|
getFocusTarget,
|
|
65
50
|
getPressTarget,
|
|
66
51
|
inputRef,
|
|
67
52
|
renderInput,
|
|
68
53
|
shouldFocus
|
|
69
54
|
];
|
|
70
|
-
$[
|
|
71
|
-
$[
|
|
72
|
-
$[
|
|
73
|
-
$[
|
|
74
|
-
$[
|
|
75
|
-
$[
|
|
76
|
-
$[
|
|
55
|
+
$[0] = getFocusTarget;
|
|
56
|
+
$[1] = getPressTarget;
|
|
57
|
+
$[2] = inputRef;
|
|
58
|
+
$[3] = renderInput;
|
|
59
|
+
$[4] = shouldFocus;
|
|
60
|
+
$[5] = t1;
|
|
61
|
+
$[6] = t2;
|
|
77
62
|
} else {
|
|
78
|
-
|
|
79
|
-
|
|
63
|
+
t1 = $[5];
|
|
64
|
+
t2 = $[6];
|
|
80
65
|
}
|
|
81
|
-
useLayoutEffect(
|
|
66
|
+
useLayoutEffect(t1, t2);
|
|
67
|
+
let t3;
|
|
68
|
+
let t4;
|
|
82
69
|
let t5;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
if ($[9] !== setRenderInput) {
|
|
86
|
-
t5 = (focus, target) => {
|
|
70
|
+
if ($[7] !== setRenderInput) {
|
|
71
|
+
t3 = (focus, target) => {
|
|
87
72
|
pendingStaticFocusTargetRef.current = target ?? null;
|
|
88
73
|
setShouldFocus(focus);
|
|
89
|
-
|
|
90
|
-
if (hoverHandoffFrameRef.current !== null) {
|
|
91
|
-
cancelAnimationFrame(hoverHandoffFrameRef.current);
|
|
92
|
-
hoverHandoffFrameRef.current = null;
|
|
93
|
-
}
|
|
94
|
-
setRenderInput(true);
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
hoverHandoffFrameRef.current = requestAnimationFrame(() => {
|
|
98
|
-
hoverHandoffFrameRef.current = null;
|
|
99
|
-
setRenderInput(true);
|
|
100
|
-
});
|
|
74
|
+
setRenderInput(true);
|
|
101
75
|
};
|
|
102
|
-
|
|
76
|
+
t4 = (value) => {
|
|
103
77
|
pendingStaticChangeRef.current = value;
|
|
104
78
|
setShouldFocus(true);
|
|
105
79
|
setRenderInput(true);
|
|
106
80
|
};
|
|
107
|
-
|
|
81
|
+
t5 = () => {
|
|
108
82
|
shouldReplayStaticPressRef.current = true;
|
|
109
83
|
setShouldFocus(true);
|
|
110
84
|
setRenderInput(true);
|
|
111
85
|
};
|
|
112
|
-
$[
|
|
86
|
+
$[7] = setRenderInput;
|
|
87
|
+
$[8] = t3;
|
|
88
|
+
$[9] = t4;
|
|
113
89
|
$[10] = t5;
|
|
114
|
-
$[11] = t6;
|
|
115
|
-
$[12] = t7;
|
|
116
90
|
} else {
|
|
91
|
+
t3 = $[8];
|
|
92
|
+
t4 = $[9];
|
|
117
93
|
t5 = $[10];
|
|
118
|
-
t6 = $[11];
|
|
119
|
-
t7 = $[12];
|
|
120
94
|
}
|
|
121
|
-
let
|
|
122
|
-
if ($[
|
|
123
|
-
|
|
95
|
+
let t6;
|
|
96
|
+
if ($[11] !== shouldFocus || $[12] !== t3 || $[13] !== t4 || $[14] !== t5) {
|
|
97
|
+
t6 = {
|
|
124
98
|
shouldFocus,
|
|
125
|
-
renderRealInput:
|
|
126
|
-
replayStaticInputChange:
|
|
127
|
-
replayStaticInputPress:
|
|
99
|
+
renderRealInput: t3,
|
|
100
|
+
replayStaticInputChange: t4,
|
|
101
|
+
replayStaticInputPress: t5
|
|
128
102
|
};
|
|
129
|
-
$[
|
|
103
|
+
$[11] = shouldFocus;
|
|
104
|
+
$[12] = t3;
|
|
105
|
+
$[13] = t4;
|
|
130
106
|
$[14] = t5;
|
|
131
107
|
$[15] = t6;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
} else t8 = $[17];
|
|
135
|
-
return t8;
|
|
108
|
+
} else t6 = $[15];
|
|
109
|
+
return t6;
|
|
136
110
|
};
|
|
137
111
|
//#endregion
|
|
138
112
|
export { useStaticInputHandoff };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
import { accordionDefinition } from "./accordion.cva.js";
|
|
3
3
|
import { AccordionItem } from "./AccordionItem.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
5
|
import { clsx } from "clsx";
|
|
5
6
|
import { DisclosureGroup } from "react-aria-components";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/navigation/Accordion/Accordion.tsx
|
|
8
8
|
var Accordion = ({ items, variant = "filled", actionPosition = "right", allowsMultipleExpanded = false, expandedKeys, defaultExpandedKeys, onExpandedChange, className, disabled }) => {
|
|
9
9
|
return /* @__PURE__ */ jsx(DisclosureGroup, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { ChevronDownIcon } from "../../../assets/icons/ChevronDown.js";
|
|
1
2
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
3
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
3
4
|
import { accordionChevronDefinition, accordionHeadingDefinition, accordionHeadingSubtitleDefinition, accordionHeadingTitleDefinition, accordionIconDefinition, accordionItemDefinition, accordionPanelContentDefinition, accordionPanelDefinition, accordionTriggerDefinition } from "./accordion.cva.js";
|
|
4
|
-
import { ChevronDown } from "lucide-react";
|
|
5
|
-
import { Button, Disclosure, DisclosurePanel, Heading } from "react-aria-components";
|
|
6
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Button, Disclosure, DisclosurePanel, Heading } from "react-aria-components";
|
|
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(ChevronDownIcon, { 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";
|
|
6
5
|
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, { children: [/* @__PURE__ */ jsx(StepperItem, {
|
|
18
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { 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";
|
|
1
2
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
3
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
3
4
|
import { stepperIconDefinition, stepperItemDefinition, stepperNumberDefinition, stepperSubtextDefinition, stepperTitleDefinition } from "./stepper.cva.js";
|
|
4
|
-
import { Check } from "lucide-react";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
|
-
import { Button } from "react-aria-components";
|
|
7
5
|
import { c } from "react/compiler-runtime";
|
|
8
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
|
+
import { Button } from "react-aria-components";
|
|
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(CheckIcon, { 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 { clsx } from "clsx";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
7
|
//#region src/components/overlays/ActionModal/ActionModal.tsx
|
|
8
8
|
var textAlignClassMap = {
|
|
9
9
|
left: "text-left",
|