@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,14 +1,14 @@
|
|
|
1
1
|
import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
2
|
+
import { FieldController } from "../shared/form.binding.js";
|
|
2
3
|
import { FormField } from "../FormField/FormField.js";
|
|
3
4
|
import { FileUtils } from "../../../utils/file.utils.js";
|
|
4
5
|
import { InputUploadContent } from "./shared/InputUploadContent.js";
|
|
5
6
|
import { InputUploadFilled } from "./shared/InputUploadFilled.js";
|
|
6
|
-
import { c } from "react/compiler-runtime";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
7
|
import { clsx } from "clsx";
|
|
9
8
|
import { useState } from "react";
|
|
9
|
+
import { c } from "react/compiler-runtime";
|
|
10
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
11
|
import { mergeRefs, useLabels } from "@react-aria/utils";
|
|
11
|
-
import { Controller } from "react-hook-form";
|
|
12
12
|
//#region src/components/inputs/File/InputUpload.tsx
|
|
13
13
|
var InputUploadBase = ({ ref: _ref, label, tooltipText, variant, helperText, isRequired, isDisabled, headerClassName, errorClassName, isHeaderHidden, error, className, onChange, onInvalidFileType, value, defaultValue, allowsMultiple = false, hideLabel, acceptedFileTypes, size, ...rest }) => {
|
|
14
14
|
const ui = UIConfig.useConfig();
|
|
@@ -96,32 +96,32 @@ var InputUploadBase = ({ ref: _ref, label, tooltipText, variant, helperText, isR
|
|
|
96
96
|
};
|
|
97
97
|
var InputUpload = (props) => {
|
|
98
98
|
const $ = c(15);
|
|
99
|
-
if ("
|
|
100
|
-
let
|
|
99
|
+
if ("field" in props && props.field) {
|
|
100
|
+
let field;
|
|
101
101
|
let innerProps;
|
|
102
102
|
let ref;
|
|
103
103
|
if ($[0] !== props) {
|
|
104
|
-
({
|
|
104
|
+
({field, ref, ...innerProps} = props);
|
|
105
105
|
$[0] = props;
|
|
106
|
-
$[1] =
|
|
106
|
+
$[1] = field;
|
|
107
107
|
$[2] = innerProps;
|
|
108
108
|
$[3] = ref;
|
|
109
109
|
} else {
|
|
110
|
-
|
|
110
|
+
field = $[1];
|
|
111
111
|
innerProps = $[2];
|
|
112
112
|
ref = $[3];
|
|
113
113
|
}
|
|
114
114
|
let t0;
|
|
115
115
|
if ($[4] !== innerProps || $[5] !== props.error || $[6] !== props.isDisabled || $[7] !== ref) {
|
|
116
116
|
t0 = (t1) => {
|
|
117
|
-
const { field, fieldState: t2 } = t1;
|
|
117
|
+
const { field: field_0, fieldState: t2 } = t1;
|
|
118
118
|
const { error } = t2;
|
|
119
119
|
return /* @__PURE__ */ jsx(InputUploadBase, {
|
|
120
120
|
...innerProps,
|
|
121
|
-
ref: mergeRefs(ref,
|
|
122
|
-
value:
|
|
123
|
-
onChange:
|
|
124
|
-
isDisabled:
|
|
121
|
+
ref: mergeRefs(ref, field_0.ref),
|
|
122
|
+
value: field_0.value,
|
|
123
|
+
onChange: field_0.onChange,
|
|
124
|
+
isDisabled: field_0.disabled || props.isDisabled,
|
|
125
125
|
error: props.error ?? error?.message
|
|
126
126
|
});
|
|
127
127
|
};
|
|
@@ -132,14 +132,14 @@ var InputUpload = (props) => {
|
|
|
132
132
|
$[8] = t0;
|
|
133
133
|
} else t0 = $[8];
|
|
134
134
|
let t1;
|
|
135
|
-
if ($[9] !==
|
|
136
|
-
t1 = /* @__PURE__ */ jsx(
|
|
137
|
-
control:
|
|
138
|
-
name:
|
|
135
|
+
if ($[9] !== field.form || $[10] !== field.name || $[11] !== t0) {
|
|
136
|
+
t1 = /* @__PURE__ */ jsx(FieldController, {
|
|
137
|
+
control: field.form,
|
|
138
|
+
name: field.name,
|
|
139
139
|
render: t0
|
|
140
140
|
});
|
|
141
|
-
$[9] =
|
|
142
|
-
$[10] =
|
|
141
|
+
$[9] = field.form;
|
|
142
|
+
$[10] = field.name;
|
|
143
143
|
$[11] = t0;
|
|
144
144
|
$[12] = t1;
|
|
145
145
|
} else t1 = $[12];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode, Ref } from 'react';
|
|
2
2
|
import { DropZoneProps, FileTriggerProps } from 'react-aria-components';
|
|
3
|
-
import { FieldValues } from '
|
|
3
|
+
import { FieldValues } from '../shared/form.binding';
|
|
4
4
|
import { ButtonProps } from '../../buttons/Button/Button';
|
|
5
5
|
import { FormFieldProps } from '../FormField/FormField';
|
|
6
6
|
import { ControlProps } from '../shared/form.types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'react';
|
|
2
2
|
import { DropZoneProps, FileTriggerProps } from 'react-aria-components';
|
|
3
|
-
import { FieldValues } from '
|
|
3
|
+
import { FieldValues } from '../shared/form.binding';
|
|
4
4
|
import { FormFieldProps } from '../FormField/FormField';
|
|
5
5
|
import { ControlProps } from '../shared/form.types';
|
|
6
6
|
import { InputUploadButtonProps } from './shared/inputUploadButton.cva';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FileUploadContentError } from "./FileUploadContentError.js";
|
|
2
2
|
import { FileUploadContentFilled } from "./FileUploadContentFilled.js";
|
|
3
3
|
import { FileUploadContentLoading } from "./FileUploadContentLoading.js";
|
|
4
|
+
import { clsx } from "clsx";
|
|
4
5
|
import { c } from "react/compiler-runtime";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import { clsx } from "clsx";
|
|
7
7
|
//#region src/components/inputs/File/shared/FileCard.tsx
|
|
8
8
|
var FileCard = (t0) => {
|
|
9
9
|
const $ = c(31);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileCard } from "./FileCard.js";
|
|
2
|
+
import { clsx } from "clsx";
|
|
2
3
|
import { c } from "react/compiler-runtime";
|
|
3
4
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
5
|
//#region src/components/inputs/File/shared/FileCardList.tsx
|
|
6
6
|
var FileCardList = (t0) => {
|
|
7
7
|
const $ = c(20);
|
|
@@ -2,9 +2,9 @@ import { FileUploadContentError } from "./FileUploadContentError.js";
|
|
|
2
2
|
import { FileUploadContentFilled } from "./FileUploadContentFilled.js";
|
|
3
3
|
import { FileUploadContentLoading } from "./FileUploadContentLoading.js";
|
|
4
4
|
import { FileUploadContentEmpty } from "./FileUploadContentEmpty.js";
|
|
5
|
+
import { FileTrigger } from "react-aria-components";
|
|
5
6
|
import { c } from "react/compiler-runtime";
|
|
6
7
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import { FileTrigger } from "react-aria-components";
|
|
8
8
|
//#region src/components/inputs/File/shared/FileUploadContent.tsx
|
|
9
9
|
var FileUploadContent = (t0) => {
|
|
10
10
|
const $ = c(63);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Typography } from "../../../text/Typography/Typography.js";
|
|
2
2
|
import { Button } from "../../../buttons/Button/Button.js";
|
|
3
3
|
import { TextButton } from "../../../buttons/TextButton/TextButton.js";
|
|
4
|
-
import {
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Upload } from "lucide-react";
|
|
6
5
|
import { clsx } from "clsx";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/inputs/File/shared/FileUploadContentEmpty.tsx
|
|
8
8
|
var FileUploadContentEmpty = ({ variant, as, isDisabled, title, browseText, uploadText, singleFile, hideButton = false, className, browseButtonProps }) => {
|
|
9
9
|
const { size: browseButtonSize = "xs", variant: browseButtonVariant = "outlined", width: browseButtonWidth = "hug", ...browseButtonRestProps } = browseButtonProps ?? {};
|
|
@@ -18,7 +18,7 @@ var FileUploadContentEmpty = ({ variant, as, isDisabled, title, browseText, uplo
|
|
|
18
18
|
"flex-row": variant === "horizontal",
|
|
19
19
|
"opacity-50": isDisabled
|
|
20
20
|
}),
|
|
21
|
-
children: [/* @__PURE__ */ jsx(
|
|
21
|
+
children: [/* @__PURE__ */ jsx(Upload, { className: "h-6 w-6 text-text-default-1" }), /* @__PURE__ */ jsx(Typography, {
|
|
22
22
|
variant: "prominent-1",
|
|
23
23
|
size: "label-1",
|
|
24
24
|
as: "span",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { CloseIcon } from "../../../../assets/icons/Close.js";
|
|
2
1
|
import { Typography } from "../../../text/Typography/Typography.js";
|
|
3
2
|
import { Button as Button$1 } from "../../../buttons/Button/Button.js";
|
|
4
3
|
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
5
4
|
import "../../../../config/i18n.js";
|
|
6
5
|
import { TextButton } from "../../../buttons/TextButton/TextButton.js";
|
|
7
|
-
import {
|
|
8
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { CircleAlert, X } from "lucide-react";
|
|
9
7
|
import { clsx } from "clsx";
|
|
10
8
|
import { FileTrigger } from "react-aria-components";
|
|
9
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
10
|
import { useTranslation } from "react-i18next";
|
|
12
11
|
//#region src/components/inputs/File/shared/FileUploadContentError.tsx
|
|
13
12
|
var FileUploadContentError = ({ variant, as, isDisabled, state, browseText, fileTriggerProps, removeWithIcon = false, singleFile, onRemove, browseButtonProps }) => {
|
|
@@ -28,7 +27,7 @@ var FileUploadContentError = ({ variant, as, isDisabled, state, browseText, file
|
|
|
28
27
|
"flex-row": variant === "horizontal",
|
|
29
28
|
"opacity-50": isDisabled
|
|
30
29
|
}),
|
|
31
|
-
children: [/* @__PURE__ */ jsx(
|
|
30
|
+
children: [/* @__PURE__ */ jsx(CircleAlert, { className: "h-6 w-6 text-elevation-fill-warning-1" }), /* @__PURE__ */ jsxs("div", {
|
|
32
31
|
className: clsx("flex flex-col gap-file-upload-content-gap-text-to-text", {
|
|
33
32
|
"max-w-full items-center": variant === "vertical",
|
|
34
33
|
"max-w-[calc(100%_-_32px)]": variant === "horizontal"
|
|
@@ -71,7 +70,7 @@ var FileUploadContentError = ({ variant, as, isDisabled, state, browseText, file
|
|
|
71
70
|
onPress: () => {
|
|
72
71
|
onRemove(state.id ?? "");
|
|
73
72
|
},
|
|
74
|
-
icon:
|
|
73
|
+
icon: X
|
|
75
74
|
}) : /* @__PURE__ */ jsx(TextButton, {
|
|
76
75
|
className: "text-interactive-text-primary-idle lowercase",
|
|
77
76
|
onPress: () => {
|
|
@@ -96,7 +95,7 @@ var FileUploadContentError = ({ variant, as, isDisabled, state, browseText, file
|
|
|
96
95
|
onPress: () => {
|
|
97
96
|
onRemove(state.id ?? "");
|
|
98
97
|
},
|
|
99
|
-
icon:
|
|
98
|
+
icon: X
|
|
100
99
|
}) : /* @__PURE__ */ jsx(TextButton, {
|
|
101
100
|
color: "secondary",
|
|
102
101
|
onPress: () => {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { CloseIcon } from "../../../../assets/icons/Close.js";
|
|
2
1
|
import { Typography } from "../../../text/Typography/Typography.js";
|
|
3
2
|
import { Button as Button$1 } from "../../../buttons/Button/Button.js";
|
|
4
3
|
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
5
4
|
import "../../../../config/i18n.js";
|
|
6
5
|
import { TextButton } from "../../../buttons/TextButton/TextButton.js";
|
|
7
6
|
import { FileUtils } from "../../../../utils/file.utils.js";
|
|
8
|
-
import {
|
|
9
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { CheckCircle, X } from "lucide-react";
|
|
10
8
|
import { clsx } from "clsx";
|
|
11
9
|
import { FileTrigger } from "react-aria-components";
|
|
10
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
11
|
import { useTranslation } from "react-i18next";
|
|
13
12
|
//#region src/components/inputs/File/shared/FileUploadContentFilled.tsx
|
|
14
13
|
var FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, fileTriggerProps, removeWithIcon = false, singleFile, onRemove, browseButtonProps }) => {
|
|
@@ -29,7 +28,7 @@ var FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, fil
|
|
|
29
28
|
"flex-row": variant === "horizontal",
|
|
30
29
|
"opacity-50": isDisabled
|
|
31
30
|
}),
|
|
32
|
-
children: [/* @__PURE__ */ jsx(
|
|
31
|
+
children: [/* @__PURE__ */ jsx(CheckCircle, { className: "h-6 w-6 text-text-default-1" }), /* @__PURE__ */ jsxs("div", {
|
|
33
32
|
className: clsx("flex flex-col gap-file-upload-content-gap-text-to-text", {
|
|
34
33
|
"max-w-full items-center": variant === "vertical",
|
|
35
34
|
"max-w-[calc(100%-32px)]": variant === "horizontal"
|
|
@@ -73,7 +72,7 @@ var FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, fil
|
|
|
73
72
|
onPress: () => {
|
|
74
73
|
onRemove(state.id ?? "");
|
|
75
74
|
},
|
|
76
|
-
icon:
|
|
75
|
+
icon: X
|
|
77
76
|
}) : /* @__PURE__ */ jsx(TextButton, {
|
|
78
77
|
className: clsx(variant === "vertical" && "text-interactive-text-primary-idle lowercase [&>span>span]:font-medium!"),
|
|
79
78
|
color: variant === "horizontal" ? "secondary" : "primary",
|
|
@@ -99,7 +98,7 @@ var FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, fil
|
|
|
99
98
|
onPress: () => {
|
|
100
99
|
onRemove(state.id ?? "");
|
|
101
100
|
},
|
|
102
|
-
icon:
|
|
101
|
+
icon: X,
|
|
103
102
|
isDisabled
|
|
104
103
|
}) : /* @__PURE__ */ jsx(TextButton, {
|
|
105
104
|
color: "secondary",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { CloseIcon } from "../../../../assets/icons/Close.js";
|
|
2
1
|
import { Typography } from "../../../text/Typography/Typography.js";
|
|
3
2
|
import { Button } from "../../../buttons/Button/Button.js";
|
|
4
3
|
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
5
4
|
import "../../../../config/i18n.js";
|
|
6
5
|
import { FileUtils } from "../../../../utils/file.utils.js";
|
|
7
|
-
import { FileIcon } from "../../../../assets/icons/File.js";
|
|
8
6
|
import { ProgressBar } from "./ProgressBar.js";
|
|
9
|
-
import {
|
|
7
|
+
import { File, X } from "lucide-react";
|
|
10
8
|
import { clsx } from "clsx";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
10
|
import { useTranslation } from "react-i18next";
|
|
12
11
|
//#region src/components/inputs/File/shared/FileUploadContentLoading.tsx
|
|
13
12
|
var FileUploadContentLoading = ({ index, variant, as, state, isDisabled, singleFile, onCancel, cancelButtonProps }) => {
|
|
@@ -30,7 +29,7 @@ var FileUploadContentLoading = ({ index, variant, as, state, isDisabled, singleF
|
|
|
30
29
|
"w-full flex-col": variant === "vertical",
|
|
31
30
|
"w-1/2": variant === "horizontal"
|
|
32
31
|
}),
|
|
33
|
-
children: [/* @__PURE__ */ jsx(
|
|
32
|
+
children: [/* @__PURE__ */ jsx(File, { className: "h-6 w-6 text-text-default-1" }), /* @__PURE__ */ jsxs("div", {
|
|
34
33
|
className: clsx("flex flex-col", {
|
|
35
34
|
"max-w-full gap-file-upload-content-gap-icon-to-content text-center": variant === "vertical",
|
|
36
35
|
"max-w-[calc(100%-32px)] gap-file-upload-content-gap-text-to-text": variant === "horizontal"
|
|
@@ -60,7 +59,7 @@ var FileUploadContentLoading = ({ index, variant, as, state, isDisabled, singleF
|
|
|
60
59
|
onPress: () => {
|
|
61
60
|
onCancel(index);
|
|
62
61
|
},
|
|
63
|
-
icon:
|
|
62
|
+
icon: X
|
|
64
63
|
})]
|
|
65
64
|
})]
|
|
66
65
|
}), as === "button" && variant === "vertical" && /* @__PURE__ */ jsx(Button, {
|
|
@@ -4,13 +4,13 @@ import { Button as Button$1 } from "../../../buttons/Button/Button.js";
|
|
|
4
4
|
import "../../../../config/i18n.js";
|
|
5
5
|
import { TextButton } from "../../../buttons/TextButton/TextButton.js";
|
|
6
6
|
import { inputSizeDefinition } from "../../shared/input.cva.js";
|
|
7
|
-
import { UploadIcon } from "../../../../assets/icons/Upload.js";
|
|
8
7
|
import { inputButtonSizeMapping } from "../inputUpload.types.js";
|
|
9
8
|
import { inputUploadButton, inputUploadDropZone } from "./inputUploadButton.cva.js";
|
|
10
|
-
import {
|
|
11
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { Upload } from "lucide-react";
|
|
12
10
|
import { clsx } from "clsx";
|
|
13
11
|
import { DropZone, FileTrigger } from "react-aria-components";
|
|
12
|
+
import { c } from "react/compiler-runtime";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { useTranslation } from "react-i18next";
|
|
15
15
|
//#region src/components/inputs/File/shared/InputUploadContent.tsx
|
|
16
16
|
var InputUploadContent = (props) => {
|
|
@@ -86,7 +86,7 @@ var InputUploadContent = (props) => {
|
|
|
86
86
|
if ($[19] !== buttonText || $[20] !== isDisabled || $[21] !== t || $[22] !== variant) {
|
|
87
87
|
t7 = variant === "nested" && /* @__PURE__ */ jsx(TextButton, {
|
|
88
88
|
isDisabled,
|
|
89
|
-
icon:
|
|
89
|
+
icon: Upload,
|
|
90
90
|
children: buttonText ?? t(_temp2)
|
|
91
91
|
});
|
|
92
92
|
$[19] = buttonText;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CloseIcon } from "../../../../assets/icons/Close.js";
|
|
2
1
|
import { UIOverrides } from "../../../../config/uiOverrides.context.js";
|
|
3
2
|
import { Typography } from "../../../text/Typography/Typography.js";
|
|
4
3
|
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
5
4
|
import { inputSizeDefinition } from "../../shared/input.cva.js";
|
|
5
|
+
import { X } from "lucide-react";
|
|
6
|
+
import { clsx } from "clsx";
|
|
6
7
|
import { c } from "react/compiler-runtime";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { clsx } from "clsx";
|
|
9
9
|
//#region src/components/inputs/File/shared/InputUploadFilled.tsx
|
|
10
10
|
var InputUploadFilled = (t0) => {
|
|
11
11
|
const $ = c(14);
|
|
@@ -41,7 +41,7 @@ var InputUploadFilled = (t0) => {
|
|
|
41
41
|
t4 = /* @__PURE__ */ jsx(InlineIconButton, {
|
|
42
42
|
label: "Remove files",
|
|
43
43
|
color: "secondary",
|
|
44
|
-
icon:
|
|
44
|
+
icon: X,
|
|
45
45
|
isDisabled,
|
|
46
46
|
onPress: onRemove
|
|
47
47
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
import { formFieldErrorDefinition } from "./formFieldError.cva.js";
|
|
3
|
+
import { clsx } from "clsx";
|
|
3
4
|
import { c } from "react/compiler-runtime";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
6
|
//#region src/components/inputs/FormField/FormFieldError.tsx
|
|
7
7
|
var FormFieldError = (t0) => {
|
|
8
8
|
const $ = c(7);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { InfoIcon } from "../../../assets/icons/Info.js";
|
|
2
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
3
2
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
4
3
|
import { Tooltip as Tooltip$1 } from "../../overlays/Tooltip/Tooltip.js";
|
|
5
4
|
import { formFieldHeaderDefinition } from "./formFieldHeader.cva.js";
|
|
6
5
|
import { FormFieldLabel } from "./FormFieldLabel.js";
|
|
7
|
-
import {
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Info } from "lucide-react";
|
|
9
7
|
import { clsx } from "clsx";
|
|
10
8
|
import { Focusable } from "react-aria-components";
|
|
9
|
+
import { c } from "react/compiler-runtime";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region src/components/inputs/FormField/FormFieldHeader.tsx
|
|
12
12
|
var FormFieldHeader = (t0) => {
|
|
13
13
|
const $ = c(24);
|
|
@@ -40,7 +40,7 @@ var FormFieldHeader = (t0) => {
|
|
|
40
40
|
if ($[9] !== isDisabled || $[10] !== tooltipText) {
|
|
41
41
|
t4 = tooltipText && /* @__PURE__ */ jsx(Tooltip$1, {
|
|
42
42
|
text: tooltipText,
|
|
43
|
-
children: /* @__PURE__ */ jsx(Focusable, { children: /* @__PURE__ */ jsx(
|
|
43
|
+
children: /* @__PURE__ */ jsx(Focusable, { children: /* @__PURE__ */ jsx(Info, {
|
|
44
44
|
className: clsx("size-6", isDisabled ? "text-interactive-text-secondary-disabled" : "text-interactive-text-secondary-idle hover:text-interactive-text-secondary-hover"),
|
|
45
45
|
tabIndex: 0
|
|
46
46
|
}) })
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CloseIcon } from "../../../assets/icons/Close.js";
|
|
2
1
|
import "../../../config/i18n.js";
|
|
2
|
+
import { X } from "lucide-react";
|
|
3
|
+
import { Button } from "react-aria-components";
|
|
3
4
|
import { c } from "react/compiler-runtime";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import { Button } from "react-aria-components";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
7
|
//#region src/components/inputs/FormField/FormFieldHeaderClose.tsx
|
|
8
8
|
var FormFieldHeaderClose = (t0) => {
|
|
@@ -17,7 +17,7 @@ var FormFieldHeaderClose = (t0) => {
|
|
|
17
17
|
} else t1 = $[1];
|
|
18
18
|
let t2;
|
|
19
19
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
20
|
-
t2 = /* @__PURE__ */ jsx(
|
|
20
|
+
t2 = /* @__PURE__ */ jsx(X, { className: "size-6 text-interactive-text-secondary-idle" });
|
|
21
21
|
$[2] = t2;
|
|
22
22
|
} else t2 = $[2];
|
|
23
23
|
let t3;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
import { formFieldHelperDefinition } from "./formFieldHelper.cva.js";
|
|
3
|
+
import { clsx } from "clsx";
|
|
3
4
|
import { c } from "react/compiler-runtime";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
6
|
//#region src/components/inputs/FormField/FormFieldHelper.tsx
|
|
7
7
|
var FormFieldHelper = (t0) => {
|
|
8
8
|
const $ = c(7);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
import { typographyDefinition } from "../../text/Typography/typography.cva.js";
|
|
3
3
|
import { labelDefinition, labelTypography } from "../shared/label.cva.js";
|
|
4
|
-
import { c } from "react/compiler-runtime";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
4
|
import { clsx } from "clsx";
|
|
7
5
|
import { Label } from "react-aria-components";
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/inputs/FormField/FormFieldLabel.tsx
|
|
9
9
|
var FormFieldLabel = (t0) => {
|
|
10
10
|
const $ = c(16);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FocusEvent, Ref } from 'react';
|
|
2
2
|
import { NumberFieldProps as AriaNumberFieldProps } from 'react-aria-components';
|
|
3
|
-
import { FieldValues } from '
|
|
3
|
+
import { FieldValues } from '../../shared/form.binding';
|
|
4
4
|
import { FormFieldProps } from '../../FormField/FormField';
|
|
5
5
|
import { InputContentProps } from '../shared/InputContent';
|
|
6
6
|
import { ControlProps } from '../../shared/form.types';
|