@povio/ui 2.2.0 → 2.2.1
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/README.md +1 -1
- package/dist/{rolldown_runtime.js → _virtual/rolldown:runtime.js} +17 -2
- package/dist/{HighlightOn.js → assets/icons/HighlightOn.js} +1 -1
- package/dist/{TextColor.js → assets/icons/TextColor.js} +1 -1
- package/dist/{Breadcrumbs.js → components/Breadcrumbs/Breadcrumbs.js} +6 -6
- package/dist/components/Menu/Menu.d.ts +0 -1
- package/dist/{Menu2.js → components/Menu/Menu.js} +1 -1
- package/dist/components/Menu/MenuDesktop.d.ts +1 -1
- package/dist/components/Menu/MenuDesktop.js +12 -0
- package/dist/{MenuItem.js → components/Menu/MenuItem.js} +3 -3
- package/dist/{MenuMobile.js → components/Menu/MenuMobile.js} +4 -4
- package/dist/{MenuPopover.js → components/Menu/MenuPopover.js} +2 -2
- package/dist/components/buttons/Button/Button.d.ts +3 -3
- package/dist/components/buttons/Button/Button.js +48 -0
- package/dist/{button.cva.js → components/buttons/Button/button.cva.js} +3 -12
- package/dist/components/buttons/IconButton/IconButton.d.ts +1 -1
- package/dist/components/buttons/IconButton/IconButton.js +17 -0
- package/dist/{InlineIconButton.js → components/buttons/InlineIconButton/InlineIconButton.js} +2 -2
- package/dist/components/buttons/PillButton/PillButton.d.ts +3 -2
- package/dist/components/buttons/PillButton/PillButton.js +33 -0
- package/dist/{pillButton.cva.js → components/buttons/PillButton/pillButton.cva.js} +4 -4
- package/dist/{SplitButton.js → components/buttons/SplitButton/SplitButton.js} +5 -5
- package/dist/components/buttons/TextButton/TextButton.d.ts +0 -1
- package/dist/{TextButton.js → components/buttons/TextButton/TextButton.js} +2 -3
- package/dist/components/buttons/ToggleButton/ToggleButton.d.ts +0 -1
- package/dist/{ToggleButton.js → components/buttons/ToggleButton/ToggleButton.js} +2 -3
- package/dist/components/buttons/shared/ButtonContent.d.ts +3 -5
- package/dist/components/buttons/shared/ButtonContent.js +35 -0
- package/dist/components/buttons/shared/buttonContent.cva.d.ts +4 -0
- package/dist/components/buttons/shared/buttonContent.cva.js +36 -0
- package/dist/{Checkbox.js → components/inputs/Checkbox/Checkbox.js} +7 -7
- package/dist/{CheckboxCheckmark2.js → components/inputs/Checkbox/CheckboxCheckmark.js} +4 -4
- package/dist/{checkbox.cva.js → components/inputs/Checkbox/checkbox.cva.js} +2 -2
- package/dist/{DatePicker.js → components/inputs/DateTime/DatePicker/DatePicker.js} +11 -11
- package/dist/{DateRangePicker.js → components/inputs/DateTime/DateRangePicker/DateRangePicker.js} +13 -13
- package/dist/{DateTimePicker.js → components/inputs/DateTime/DateTimePicker/DateTimePicker.js} +11 -11
- package/dist/{TimePicker.js → components/inputs/DateTime/TimePicker/TimePicker.js} +10 -10
- package/dist/{Calendar2.js → components/inputs/DateTime/shared/Calendar.js} +1 -1
- package/dist/{CalendarCell.js → components/inputs/DateTime/shared/CalendarCell.js} +2 -2
- package/dist/{CalendarGrid.js → components/inputs/DateTime/shared/CalendarGrid.js} +2 -2
- package/dist/{CalendarHeader.js → components/inputs/DateTime/shared/CalendarHeader.js} +5 -5
- package/dist/{CalendarSelectHeader.js → components/inputs/DateTime/shared/CalendarSelectHeader.js} +9 -9
- package/dist/{DateField.js → components/inputs/DateTime/shared/DateField.js} +1 -1
- package/dist/{DatePickerInput.js → components/inputs/DateTime/shared/DatePickerInput.js} +11 -11
- package/dist/{DateTimeDialog.js → components/inputs/DateTime/shared/DateTimeDialog.js} +4 -4
- package/dist/{DateTimeDialogFooter.js → components/inputs/DateTime/shared/DateTimeDialogFooter.js} +2 -2
- package/dist/{MonthPicker.js → components/inputs/DateTime/shared/MonthPicker.js} +1 -1
- package/dist/{TimePickerForm.js → components/inputs/DateTime/shared/TimePickerForm.js} +6 -6
- package/dist/{TimePickerInput.js → components/inputs/DateTime/shared/TimePickerInput.js} +8 -8
- package/dist/{YearPicker.js → components/inputs/DateTime/shared/YearPicker.js} +2 -2
- package/dist/{FileUpload.js → components/inputs/File/FileUpload.js} +10 -10
- package/dist/{InputUpload.js → components/inputs/File/InputUpload.js} +7 -7
- package/dist/{FileUploadContent.js → components/inputs/File/shared/FileUploadContent.js} +1 -1
- package/dist/{FileUploadContentEmpty.js → components/inputs/File/shared/FileUploadContentEmpty.js} +4 -4
- package/dist/{FileUploadContentError.js → components/inputs/File/shared/FileUploadContentError.js} +7 -7
- package/dist/{FileUploadContentFilled.js → components/inputs/File/shared/FileUploadContentFilled.js} +8 -8
- package/dist/{FileUploadContentLoading.js → components/inputs/File/shared/FileUploadContentLoading.js} +7 -7
- package/dist/{InputUploadContent.js → components/inputs/File/shared/InputUploadContent.js} +8 -8
- package/dist/{InputUploadFilled.js → components/inputs/File/shared/InputUploadFilled.js} +5 -5
- package/dist/{ProgressBar.js → components/inputs/File/shared/ProgressBar.js} +1 -1
- package/dist/{fileUpload.cva.js → components/inputs/File/shared/fileUpload.cva.js} +1 -1
- package/dist/{inputUploadButton.cva.js → components/inputs/File/shared/inputUploadButton.cva.js} +1 -1
- package/dist/{FormFieldError.js → components/inputs/FormField/FormFieldError.js} +1 -1
- package/dist/{FormFieldHeader.js → components/inputs/FormField/FormFieldHeader.js} +3 -3
- package/dist/{FormFieldHeaderClose.js → components/inputs/FormField/FormFieldHeaderClose.js} +2 -2
- package/dist/{FormFieldLabel.js → components/inputs/FormField/FormFieldLabel.js} +4 -4
- package/dist/{NumberInput.js → components/inputs/Input/NumberInput/NumberInput.js} +7 -7
- package/dist/{PasswordInput.js → components/inputs/Input/PasswordInput/PasswordInput.js} +4 -4
- package/dist/{TextArea.js → components/inputs/Input/TextArea/TextArea.js} +9 -9
- package/dist/{TextInput.js → components/inputs/Input/TextInput/TextInput.js} +7 -7
- package/dist/{InputContent.js → components/inputs/Input/shared/InputContent.js} +7 -7
- package/dist/{Form.js → components/inputs/Inputs/Form.js} +4 -4
- package/dist/{InputItem.js → components/inputs/Inputs/InputItem.js} +15 -15
- package/dist/{RadioGroup.js → components/inputs/RadioGroup/RadioGroup.js} +6 -6
- package/dist/{radio.cva.js → components/inputs/RadioGroup/radio.cva.js} +2 -2
- package/dist/{Autocomplete.js → components/inputs/Selection/Autocomplete/Autocomplete.js} +2 -2
- package/dist/{QueryAutocomplete.js → components/inputs/Selection/Autocomplete/QueryAutocomplete.js} +1 -1
- package/dist/{Select.js → components/inputs/Selection/Select/Select.js} +2 -2
- package/dist/{SelectBase.js → components/inputs/Selection/shared/SelectBase.js} +2 -2
- package/dist/{SelectDesktop.js → components/inputs/Selection/shared/SelectDesktop.js} +6 -5
- package/dist/{SelectInput.js → components/inputs/Selection/shared/SelectInput.js} +8 -8
- package/dist/{SelectInputTags.js → components/inputs/Selection/shared/SelectInputTags.js} +1 -1
- package/dist/{SelectListBox.js → components/inputs/Selection/shared/SelectListBox.js} +1 -1
- package/dist/{SelectListBoxItem.js → components/inputs/Selection/shared/SelectListBoxItem.js} +2 -2
- package/dist/{SelectListBoxItemSelectAll.js → components/inputs/Selection/shared/SelectListBoxItemSelectAll.js} +2 -2
- package/dist/{SelectListBoxLoadingItem.js → components/inputs/Selection/shared/SelectListBoxLoadingItem.js} +3 -3
- package/dist/{SelectListBoxSelectionBar.js → components/inputs/Selection/shared/SelectListBoxSelectionBar.js} +2 -2
- package/dist/{SelectMobile.js → components/inputs/Selection/shared/SelectMobile.js} +6 -6
- package/dist/{select.context.js → components/inputs/Selection/shared/select.context.js} +2 -2
- package/dist/{Slider.js → components/inputs/Slider/Slider.js} +6 -6
- package/dist/{TextEditor.js → components/inputs/TextEditor/TextEditor.js} +6 -6
- package/dist/{ColorPickerDropdown.js → components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js} +3 -3
- package/dist/{HyperlinkAction.js → components/inputs/TextEditor/Toolbar/HyperlinkAction.js} +6 -6
- package/dist/{TextAlignSelect.js → components/inputs/TextEditor/Toolbar/TextAlignSelect.js} +6 -6
- package/dist/{TextColorSelect.js → components/inputs/TextEditor/Toolbar/TextColorSelect.js} +2 -2
- package/dist/{TextHighlightSelect.js → components/inputs/TextEditor/Toolbar/TextHighlightSelect.js} +3 -3
- package/dist/{TextListActions.js → components/inputs/TextEditor/Toolbar/TextListActions.js} +4 -4
- package/dist/{TextMarksActions.js → components/inputs/TextEditor/Toolbar/TextMarksActions.js} +6 -6
- package/dist/{TextStyleSelect.js → components/inputs/TextEditor/Toolbar/TextStyleSelect.js} +3 -3
- package/dist/{Toggle.js → components/inputs/Toggle/Toggle.js} +6 -6
- package/dist/{toggle.cva.js → components/inputs/Toggle/toggle.cva.js} +2 -2
- package/dist/{CheckContent.js → components/inputs/shared/CheckContent.js} +3 -3
- package/dist/{InputClear.js → components/inputs/shared/InputClear.js} +3 -3
- package/dist/{TooltipWrapper.js → components/inputs/shared/TooltipWrapper.js} +1 -1
- package/dist/components/inputs/shared/input.cva.d.ts +4 -4
- package/dist/{input.cva.js → components/inputs/shared/input.cva.js} +4 -4
- package/dist/components/inputs/shared/label.cva.d.ts +2 -2
- package/dist/{label.cva.js → components/inputs/shared/label.cva.js} +1 -1
- package/dist/{Accordion.js → components/navigation/Accordion/Accordion.js} +1 -1
- package/dist/{AccordionItem.js → components/navigation/Accordion/AccordionItem.js} +3 -3
- package/dist/{Stepper.js → components/navigation/Stepper/Stepper.js} +1 -1
- package/dist/{StepperItem.js → components/navigation/Stepper/StepperItem.js} +3 -3
- package/dist/{StepperSeparator.js → components/navigation/Stepper/StepperSeparator.js} +1 -1
- package/dist/{ActionModal.js → components/overlays/ActionModal/ActionModal.js} +4 -4
- package/dist/{BottomSheet.js → components/overlays/BottomSheet/BottomSheet.js} +7 -7
- package/dist/{Drawer.js → components/overlays/Drawer/Drawer.js} +1 -1
- package/dist/{Modal.js → components/overlays/Modal/Modal.js} +4 -4
- package/dist/{ResponsivePopover.js → components/overlays/ResponsivePopover/ResponsivePopover.js} +4 -4
- package/dist/{Tooltip.js → components/overlays/Tooltip/Tooltip.js} +7 -6
- package/dist/components/overlays/Tooltip/TooltipEllipsis.d.ts +3 -2
- package/dist/{TooltipEllipsis.js → components/overlays/Tooltip/TooltipEllipsis.js} +2 -1
- package/dist/{Segment.js → components/segment/Segment.js} +4 -4
- package/dist/{SegmentItem.js → components/segment/SegmentItem.js} +3 -3
- package/dist/{Pagination.js → components/shared/pagination/Pagination.js} +3 -3
- package/dist/{PaginationList.js → components/shared/pagination/PaginationList.js} +6 -6
- package/dist/{Alert.js → components/status/Alert/Alert.js} +4 -4
- package/dist/{Loader.js → components/status/Loader/Loader.js} +1 -1
- package/dist/{Toast.js → components/status/Toast/Toast.js} +6 -6
- package/dist/{toast.cva.js → components/status/Toast/toast.cva.js} +1 -1
- package/dist/{CellText.js → components/table/CellText.js} +1 -1
- package/dist/{ColumnConfig.js → components/table/ColumnConfig.js} +5 -5
- package/dist/{HeaderText.js → components/table/HeaderText.js} +1 -1
- package/dist/{InfiniteTable.js → components/table/InfiniteTable.js} +3 -3
- package/dist/{PaginatedTable.js → components/table/PaginatedTable.js} +2 -2
- package/dist/{Table.js → components/table/Table.js} +9 -9
- package/dist/{table.cva.js → components/table/table.cva.js} +1 -1
- package/dist/{Link2.js → components/text/Link/Link.js} +3 -3
- package/dist/{link.cva.js → components/text/Link/link.cva.js} +1 -1
- package/dist/components/text/Tag/Tag.d.ts +3 -1
- package/dist/components/text/Tag/Tag.js +38 -0
- package/dist/{tag.cva.js → components/text/Tag/tag.cva.js} +1 -1
- package/dist/{Typography.js → components/text/Typography/Typography.js} +2 -2
- package/dist/{confirmation.context.js → config/confirmation.context.js} +1 -1
- package/dist/config/i18n.js +8 -0
- package/dist/{theme.context.js → config/theme.context.js} +1 -1
- package/dist/{uiConfig.context.js → config/uiConfig.context.js} +2 -2
- package/dist/{dynamicColumns.js → helpers/dynamicColumns.js} +3 -3
- package/dist/{dynamicInputs.js → helpers/dynamicInputs.js} +2 -2
- package/dist/{useAutosave.js → hooks/useAutosave.js} +2 -2
- package/dist/{useDeepCompare.js → hooks/useDeepCompare.js} +1 -1
- package/dist/{useFilters.js → hooks/useFilters.js} +1 -1
- package/dist/{useForm.js → hooks/useForm.js} +1 -1
- package/dist/{useFormAutosave.js → hooks/useFormAutosave.js} +2 -2
- package/dist/{usePagination.js → hooks/usePagination.js} +1 -1
- package/dist/{useSorting.js → hooks/useSorting.js} +1 -1
- package/dist/{useStateAndRef.js → hooks/useStateAndRef.js} +1 -1
- package/dist/{useTableNav.js → hooks/useTableNav.js} +1 -1
- package/dist/index.js +137 -137
- package/dist/node_modules/.pnpm/motion@12.23.28_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/motion/dist/es/react.js +10 -0
- package/dist/text-editor.js +1 -1
- package/package.json +1 -1
- package/dist/Button.js +0 -54
- package/dist/ButtonContent.js +0 -28
- package/dist/IconButton.js +0 -12
- package/dist/MenuDesktop.js +0 -54
- package/dist/PillButton.js +0 -37
- package/dist/Tag.js +0 -42
- package/dist/buttonContent.cva.js +0 -10
- package/dist/i18n.js +0 -8
- package/dist/react.js +0 -6
- /package/dist/{AlignCenter.js → assets/icons/AlignCenter.js} +0 -0
- /package/dist/{AlignLeft.js → assets/icons/AlignLeft.js} +0 -0
- /package/dist/{AlignLeftRight.js → assets/icons/AlignLeftRight.js} +0 -0
- /package/dist/{AlignRight.js → assets/icons/AlignRight.js} +0 -0
- /package/dist/{ArrowDropDown.js → assets/icons/ArrowDropDown.js} +0 -0
- /package/dist/{ArrowDropUp.js → assets/icons/ArrowDropUp.js} +0 -0
- /package/dist/{ArrowLeft.js → assets/icons/ArrowLeft.js} +0 -0
- /package/dist/{ArrowRight.js → assets/icons/ArrowRight.js} +0 -0
- /package/dist/{Bold.js → assets/icons/Bold.js} +0 -0
- /package/dist/{BulletedList.js → assets/icons/BulletedList.js} +0 -0
- /package/dist/{Calendar.js → assets/icons/Calendar.js} +0 -0
- /package/dist/{Check.js → assets/icons/Check.js} +0 -0
- /package/dist/{CheckCircle.js → assets/icons/CheckCircle.js} +0 -0
- /package/dist/{CheckboxCheckmark.js → assets/icons/CheckboxCheckmark.js} +0 -0
- /package/dist/{CheckboxIndeterminate.js → assets/icons/CheckboxIndeterminate.js} +0 -0
- /package/dist/{ChevronDown.js → assets/icons/ChevronDown.js} +0 -0
- /package/dist/{ChevronLeft.js → assets/icons/ChevronLeft.js} +0 -0
- /package/dist/{ChevronRight.js → assets/icons/ChevronRight.js} +0 -0
- /package/dist/{ChevronUp.js → assets/icons/ChevronUp.js} +0 -0
- /package/dist/{ChevronsLeft.js → assets/icons/ChevronsLeft.js} +0 -0
- /package/dist/{ChevronsRight.js → assets/icons/ChevronsRight.js} +0 -0
- /package/dist/{Clock.js → assets/icons/Clock.js} +0 -0
- /package/dist/{Close.js → assets/icons/Close.js} +0 -0
- /package/dist/{DateTime.js → assets/icons/DateTime.js} +0 -0
- /package/dist/{DragIndicator.js → assets/icons/DragIndicator.js} +0 -0
- /package/dist/{File.js → assets/icons/File.js} +0 -0
- /package/dist/{Highlight.js → assets/icons/Highlight.js} +0 -0
- /package/dist/{Home.js → assets/icons/Home.js} +0 -0
- /package/dist/{Info.js → assets/icons/Info.js} +0 -0
- /package/dist/{Italic.js → assets/icons/Italic.js} +0 -0
- /package/dist/{Link.js → assets/icons/Link.js} +0 -0
- /package/dist/{Menu.js → assets/icons/Menu.js} +0 -0
- /package/dist/{NumberedList.js → assets/icons/NumberedList.js} +0 -0
- /package/dist/{PointerHorizontal.js → assets/icons/PointerHorizontal.js} +0 -0
- /package/dist/{PointerVertical.js → assets/icons/PointerVertical.js} +0 -0
- /package/dist/{Send.js → assets/icons/Send.js} +0 -0
- /package/dist/{Strikethrough.js → assets/icons/Strikethrough.js} +0 -0
- /package/dist/{Today.js → assets/icons/Today.js} +0 -0
- /package/dist/{Underlined.js → assets/icons/Underlined.js} +0 -0
- /package/dist/{Upload.js → assets/icons/Upload.js} +0 -0
- /package/dist/{Visibility.js → assets/icons/Visibility.js} +0 -0
- /package/dist/{VisibilityOff.js → assets/icons/VisibilityOff.js} +0 -0
- /package/dist/{WarningFilled.js → assets/icons/WarningFilled.js} +0 -0
- /package/dist/{translation.js → assets/locales/en/translation.json.js} +0 -0
- /package/dist/{translation2.js → assets/locales/sl/translation.json.js} +0 -0
- /package/dist/{breadcrumbs.cva.js → components/Breadcrumbs/breadcrumbs.cva.js} +0 -0
- /package/dist/{menu.cva.js → components/Menu/menu.cva.js} +0 -0
- /package/dist/{DateSegmentItem.js → components/inputs/DateTime/shared/DateSegmentItem.js} +0 -0
- /package/dist/{RangeCalendar.js → components/inputs/DateTime/shared/RangeCalendar.js} +0 -0
- /package/dist/{TimeField.js → components/inputs/DateTime/shared/TimeField.js} +0 -0
- /package/dist/{FileUploadContainer.js → components/inputs/File/FileUploadContainer.js} +0 -0
- /package/dist/{FileCard.js → components/inputs/File/shared/FileCard.js} +0 -0
- /package/dist/{FileCardList.js → components/inputs/File/shared/FileCardList.js} +0 -0
- /package/dist/{FormField.js → components/inputs/FormField/FormField.js} +0 -0
- /package/dist/{Inputs.js → components/inputs/Inputs/Inputs.js} +0 -0
- /package/dist/{useSelectItems.js → components/inputs/Selection/shared/useSelectItems.js} +0 -0
- /package/dist/{ColorPicker.js → components/inputs/TextEditor/Toolbar/ColorPicker.js} +0 -0
- /package/dist/{TextEditorToolbar.js → components/inputs/TextEditor/Toolbar/TextEditorToolbar.js} +0 -0
- /package/dist/{textEditor.types.js → components/inputs/TextEditor/textEditor.types.js} +0 -0
- /package/dist/{accordion.cva.js → components/navigation/Accordion/accordion.cva.js} +0 -0
- /package/dist/{stepper.cva.js → components/navigation/Stepper/stepper.cva.js} +0 -0
- /package/dist/{outline.clsx.js → components/outline.clsx.js} +0 -0
- /package/dist/{modal.cva.js → components/overlays/Modal/modal.cva.js} +0 -0
- /package/dist/{tooltip.cva.js → components/overlays/Tooltip/tooltip.cva.js} +0 -0
- /package/dist/{segment.cva.js → components/segment/segment.cva.js} +0 -0
- /package/dist/{minWidth.cva.js → components/shared/pagination/minWidth.cva.js} +0 -0
- /package/dist/{alert.cva.js → components/status/Alert/alert.cva.js} +0 -0
- /package/dist/{loader.cva.js → components/status/Loader/loader.cva.js} +0 -0
- /package/dist/{useToast.js → components/status/Toast/useToast.js} +0 -0
- /package/dist/{status.cva.js → components/status/shared/status.cva.js} +0 -0
- /package/dist/{typography.cva.js → components/text/Typography/typography.cva.js} +0 -0
- /package/dist/{link.context.js → config/link.context.js} +0 -0
- /package/dist/{router.context.js → config/router.context.js} +0 -0
- /package/dist/{uiStyle.context.js → config/uiStyle.context.js} +0 -0
- /package/dist/{useBreakpoint.js → hooks/useBreakpoint.js} +0 -0
- /package/dist/{useDebounceCallback.js → hooks/useDebounceCallback.js} +0 -0
- /package/dist/{useIntersectionObserver.js → hooks/useIntersectionObserver.js} +0 -0
- /package/dist/{useLocalStorage.js → hooks/useLocalStorage.js} +0 -0
- /package/dist/{useLongPressRepeat.js → hooks/useLongPressRepeat.js} +0 -0
- /package/dist/{useScrollableListBox.js → hooks/useScrollableListBox.js} +0 -0
- /package/dist/{useTableColumnConfig.js → hooks/useTableColumnConfig.js} +0 -0
- /package/dist/{useTranslationMemo.js → hooks/useTranslationMemo.js} +0 -0
- /package/dist/{array.utils.js → utils/array.utils.js} +0 -0
- /package/dist/{compoundMapper.js → utils/compoundMapper.js} +0 -0
- /package/dist/{date-time.utils.js → utils/date-time.utils.js} +0 -0
- /package/dist/{date.utils.js → utils/date.utils.js} +0 -0
- /package/dist/{dom.utils.js → utils/dom.utils.js} +0 -0
- /package/dist/{file.utils.js → utils/file.utils.js} +0 -0
- /package/dist/{isEqual.js → utils/isEqual.js} +0 -0
- /package/dist/{logger.js → utils/logger.js} +0 -0
- /package/dist/{object.utils.js → utils/object.utils.js} +0 -0
- /package/dist/{queries.utils.js → utils/queries.utils.js} +0 -0
- /package/dist/{rest.utils.js → utils/rest.utils.js} +0 -0
- /package/dist/{routing.utils.js → utils/routing.utils.js} +0 -0
- /package/dist/{string.utils.js → utils/string.utils.js} +0 -0
- /package/dist/{zod.utils.js → utils/zod.utils.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { UIConfig } from "
|
|
2
|
-
import { Calendar } from "
|
|
3
|
-
import { DatePickerInput } from "
|
|
4
|
-
import { DateTimeDialog } from "
|
|
5
|
-
import { DateTimeDialogFooter } from "
|
|
6
|
-
import { FormField } from "
|
|
7
|
-
import { TooltipWrapper } from "
|
|
8
|
-
import { DateTimeUtils } from "
|
|
1
|
+
import { UIConfig } from "../../../../config/uiConfig.context.js";
|
|
2
|
+
import { Calendar } from "../shared/Calendar.js";
|
|
3
|
+
import { DatePickerInput } from "../shared/DatePickerInput.js";
|
|
4
|
+
import { DateTimeDialog } from "../shared/DateTimeDialog.js";
|
|
5
|
+
import { DateTimeDialogFooter } from "../shared/DateTimeDialogFooter.js";
|
|
6
|
+
import { FormField } from "../../FormField/FormField.js";
|
|
7
|
+
import { TooltipWrapper } from "../../shared/TooltipWrapper.js";
|
|
8
|
+
import { DateTimeUtils } from "../../../../utils/date-time.utils.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { clsx } from "clsx";
|
|
11
11
|
import { useImperativeHandle, useMemo, useRef } from "react";
|
|
@@ -18,7 +18,7 @@ import { useCalendarState, useDatePickerState } from "react-stately";
|
|
|
18
18
|
var PLACEHOLDER_VALUE = new CalendarDate(2024, 1, 1);
|
|
19
19
|
var DatePickerBase = (props) => {
|
|
20
20
|
const ui = UIConfig.useConfig();
|
|
21
|
-
const { ref, label, tooltipText, helperText, isRequired, rightContent, isDirty, isDisabled, headerClassName, errorClassName, isHeaderHidden, error, onChange, value, disableDropdown, className, placeholder, as = ui.input.as, hideLabel = ui.input.hideLabel, variant = ui.input.variant, size = ui.input.size, isClearable = ui.input.isClearable, todayIcon = ui.dateInput.todayIcon, shouldForceLeadingZeros = ui.dateInput.shouldForceLeadingZeros, disableManualEntry = ui.dateInput.disableManualEntry
|
|
21
|
+
const { ref, label, tooltipText, helperText, isRequired, rightContent, isDirty, isDisabled, headerClassName, errorClassName, isHeaderHidden, error, onChange, value, disableDropdown, className, placeholder, as = ui.input.as, hideLabel = ui.input.hideLabel, variant = ui.input.variant, size = ui.input.size, isClearable = ui.input.isClearable, todayIcon = ui.dateInput.todayIcon, shouldForceLeadingZeros = ui.dateInput.shouldForceLeadingZeros, disableManualEntry = ui.dateInput.disableManualEntry, ...rest } = props;
|
|
22
22
|
const formFieldProps = {
|
|
23
23
|
error,
|
|
24
24
|
label,
|
|
@@ -152,7 +152,7 @@ var DatePickerBase = (props) => {
|
|
|
152
152
|
})
|
|
153
153
|
});
|
|
154
154
|
};
|
|
155
|
-
const DatePicker = ({ fullIso = true, minValue, maxValue
|
|
155
|
+
const DatePicker = ({ fullIso = true, minValue, maxValue, ...props }) => {
|
|
156
156
|
const formatCalendarDate = (calendarDate) => {
|
|
157
157
|
if (calendarDate === null) return null;
|
|
158
158
|
if (fullIso) return DateTimeUtils.fromCalendarDateToUTCISO(calendarDate);
|
|
@@ -170,7 +170,7 @@ const DatePicker = ({ fullIso = true, minValue, maxValue,...props }) => {
|
|
|
170
170
|
maxValue: typeof maxValue === "string" ? parseCalendarDate(maxValue) : maxValue
|
|
171
171
|
};
|
|
172
172
|
if ("formControl" in props && props.formControl) {
|
|
173
|
-
const { formControl, ref
|
|
173
|
+
const { formControl, ref, ...innerProps } = props;
|
|
174
174
|
return /* @__PURE__ */ jsx(Controller, {
|
|
175
175
|
control: formControl.control,
|
|
176
176
|
name: formControl.name,
|
package/dist/{DateRangePicker.js → components/inputs/DateTime/DateRangePicker/DateRangePicker.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Typography } from "
|
|
2
|
-
import { UIConfig } from "
|
|
3
|
-
import { ns } from "
|
|
4
|
-
import { DatePickerInput } from "
|
|
5
|
-
import { DateTimeDialog } from "
|
|
6
|
-
import { DateTimeDialogFooter } from "
|
|
7
|
-
import { FormField } from "
|
|
8
|
-
import { TooltipWrapper } from "
|
|
9
|
-
import { DateTimeUtils } from "
|
|
10
|
-
import { RangeCalendar } from "
|
|
1
|
+
import { Typography } from "../../../text/Typography/Typography.js";
|
|
2
|
+
import { UIConfig } from "../../../../config/uiConfig.context.js";
|
|
3
|
+
import { ns } from "../../../../config/i18n.js";
|
|
4
|
+
import { DatePickerInput } from "../shared/DatePickerInput.js";
|
|
5
|
+
import { DateTimeDialog } from "../shared/DateTimeDialog.js";
|
|
6
|
+
import { DateTimeDialogFooter } from "../shared/DateTimeDialogFooter.js";
|
|
7
|
+
import { FormField } from "../../FormField/FormField.js";
|
|
8
|
+
import { TooltipWrapper } from "../../shared/TooltipWrapper.js";
|
|
9
|
+
import { DateTimeUtils } from "../../../../utils/date-time.utils.js";
|
|
10
|
+
import { RangeCalendar } from "../shared/RangeCalendar.js";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { clsx } from "clsx";
|
|
13
13
|
import { useCallback, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
@@ -23,7 +23,7 @@ var PLACEHOLDER_VALUE = new CalendarDate(2024, 1, 1);
|
|
|
23
23
|
var DateRangePickerBase = (props) => {
|
|
24
24
|
const ui = UIConfig.useConfig();
|
|
25
25
|
const { t } = useTranslation();
|
|
26
|
-
const { ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, onChange, value, disableDropdown, className, hideSidebar, placeholder, hideLabel = ui.input.hideLabel, variant = ui.input.variant, as = ui.input.as, size = ui.input.size, isClearable = ui.input.isClearable, todayIcon = ui.dateInput.todayIcon, shouldForceLeadingZeros = ui.dateInput.shouldForceLeadingZeros, disableManualEntry = ui.dateInput.disableManualEntry
|
|
26
|
+
const { ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, onChange, value, disableDropdown, className, hideSidebar, placeholder, hideLabel = ui.input.hideLabel, variant = ui.input.variant, as = ui.input.as, size = ui.input.size, isClearable = ui.input.isClearable, todayIcon = ui.dateInput.todayIcon, shouldForceLeadingZeros = ui.dateInput.shouldForceLeadingZeros, disableManualEntry = ui.dateInput.disableManualEntry, ...rest } = props;
|
|
27
27
|
const [validationRangeError, setValidationRangeError] = useState();
|
|
28
28
|
const datePickerInputRef = useRef(null);
|
|
29
29
|
const dateRangePickerRef = useMemo(() => ({ get current() {
|
|
@@ -534,7 +534,7 @@ var DateRangePickerBase = (props) => {
|
|
|
534
534
|
})
|
|
535
535
|
});
|
|
536
536
|
};
|
|
537
|
-
const DateRangePicker = ({ fullIso = true, minValue, maxValue
|
|
537
|
+
const DateRangePicker = ({ fullIso = true, minValue, maxValue, ...props }) => {
|
|
538
538
|
const formatDateRange = (range) => {
|
|
539
539
|
if (!range?.start || !range?.end) return null;
|
|
540
540
|
if (fullIso) return {
|
|
@@ -574,7 +574,7 @@ const DateRangePicker = ({ fullIso = true, minValue, maxValue,...props }) => {
|
|
|
574
574
|
maxValue: typeof maxValue === "string" ? parseCalendarDate(maxValue) : maxValue
|
|
575
575
|
};
|
|
576
576
|
if ("formControl" in props && props.formControl) {
|
|
577
|
-
const { formControl, ref
|
|
577
|
+
const { formControl, ref, ...innerProps } = props;
|
|
578
578
|
return /* @__PURE__ */ jsx(Controller, {
|
|
579
579
|
control: formControl.control,
|
|
580
580
|
name: formControl.name,
|
package/dist/{DateTimePicker.js → components/inputs/DateTime/DateTimePicker/DateTimePicker.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { UIConfig } from "
|
|
2
|
-
import { Calendar } from "
|
|
3
|
-
import { DatePickerInput } from "
|
|
4
|
-
import { DateTimeDialog } from "
|
|
5
|
-
import { DateTimeDialogFooter } from "
|
|
6
|
-
import { FormField } from "
|
|
7
|
-
import { TooltipWrapper } from "
|
|
8
|
-
import { DateTimeUtils } from "
|
|
1
|
+
import { UIConfig } from "../../../../config/uiConfig.context.js";
|
|
2
|
+
import { Calendar } from "../shared/Calendar.js";
|
|
3
|
+
import { DatePickerInput } from "../shared/DatePickerInput.js";
|
|
4
|
+
import { DateTimeDialog } from "../shared/DateTimeDialog.js";
|
|
5
|
+
import { DateTimeDialogFooter } from "../shared/DateTimeDialogFooter.js";
|
|
6
|
+
import { FormField } from "../../FormField/FormField.js";
|
|
7
|
+
import { TooltipWrapper } from "../../shared/TooltipWrapper.js";
|
|
8
|
+
import { DateTimeUtils } from "../../../../utils/date-time.utils.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useEffect, useImperativeHandle, useMemo, useRef } from "react";
|
|
11
11
|
import { useDatePicker, useLocale } from "react-aria";
|
|
@@ -16,7 +16,7 @@ import { useCalendarState, useDatePickerState } from "react-stately";
|
|
|
16
16
|
var PLACEHOLDER_VALUE = new CalendarDateTime(2024, 1, 1);
|
|
17
17
|
var DateTimePickerBase = (props) => {
|
|
18
18
|
const ui = UIConfig.useConfig();
|
|
19
|
-
const { ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, onChange, value, disableDropdown, isTimeOptional, placeholder, hideLabel = ui.input.hideLabel, variant = ui.input.variant, as = ui.input.as, size = ui.input.size, isClearable = ui.input.isClearable, todayIcon = ui.dateInput.todayIcon, shouldForceLeadingZeros = ui.dateInput.shouldForceLeadingZeros, disableManualEntry = ui.dateInput.disableManualEntry
|
|
19
|
+
const { ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, onChange, value, disableDropdown, isTimeOptional, placeholder, hideLabel = ui.input.hideLabel, variant = ui.input.variant, as = ui.input.as, size = ui.input.size, isClearable = ui.input.isClearable, todayIcon = ui.dateInput.todayIcon, shouldForceLeadingZeros = ui.dateInput.shouldForceLeadingZeros, disableManualEntry = ui.dateInput.disableManualEntry, ...rest } = props;
|
|
20
20
|
const formFieldProps = {
|
|
21
21
|
error,
|
|
22
22
|
label,
|
|
@@ -173,7 +173,7 @@ var DateTimePickerBase = (props) => {
|
|
|
173
173
|
})
|
|
174
174
|
});
|
|
175
175
|
};
|
|
176
|
-
const DateTimePicker = ({ fullIso = true
|
|
176
|
+
const DateTimePicker = ({ fullIso = true, ...props }) => {
|
|
177
177
|
const formatDateValue = (dateValue) => {
|
|
178
178
|
if (dateValue === null) return null;
|
|
179
179
|
if (fullIso) return DateTimeUtils.fromCalendarDateTimeToUTCISO(dateValue);
|
|
@@ -184,7 +184,7 @@ const DateTimePicker = ({ fullIso = true,...props }) => {
|
|
|
184
184
|
return DateTimeUtils.fromUTCISOToCalendarDateTime(isoString);
|
|
185
185
|
};
|
|
186
186
|
if ("formControl" in props && props.formControl) {
|
|
187
|
-
const { formControl, ref
|
|
187
|
+
const { formControl, ref, ...innerProps } = props;
|
|
188
188
|
return /* @__PURE__ */ jsx(Controller, {
|
|
189
189
|
control: formControl.control,
|
|
190
190
|
name: formControl.name,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { UIConfig } from "
|
|
2
|
-
import { TimePickerForm } from "
|
|
3
|
-
import { DateTimeDialog } from "
|
|
4
|
-
import { DateTimeDialogFooter } from "
|
|
5
|
-
import { FormField } from "
|
|
6
|
-
import { TooltipWrapper } from "
|
|
7
|
-
import { DateTimeUtils } from "
|
|
8
|
-
import { TimePickerInput } from "
|
|
1
|
+
import { UIConfig } from "../../../../config/uiConfig.context.js";
|
|
2
|
+
import { TimePickerForm } from "../shared/TimePickerForm.js";
|
|
3
|
+
import { DateTimeDialog } from "../shared/DateTimeDialog.js";
|
|
4
|
+
import { DateTimeDialogFooter } from "../shared/DateTimeDialogFooter.js";
|
|
5
|
+
import { FormField } from "../../FormField/FormField.js";
|
|
6
|
+
import { TooltipWrapper } from "../../shared/TooltipWrapper.js";
|
|
7
|
+
import { DateTimeUtils } from "../../../../utils/date-time.utils.js";
|
|
8
|
+
import { TimePickerInput } from "../shared/TimePickerInput.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useEffect, useRef, useState } from "react";
|
|
11
11
|
import { useLocale, useTimeField } from "react-aria";
|
|
@@ -16,7 +16,7 @@ import { DateTime } from "luxon";
|
|
|
16
16
|
import { useTimeFieldState } from "react-stately";
|
|
17
17
|
var TimePickerBase = (props) => {
|
|
18
18
|
const ui = UIConfig.useConfig();
|
|
19
|
-
const { ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, onChange, value, disableDropdown, placeholder, variant = ui.input.variant, as = ui.input.as, size = ui.input.size, hideLabel = ui.input.hideLabel, isClearable = ui.input.isClearable, disableManualEntry = ui.dateInput.disableManualEntry
|
|
19
|
+
const { ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, onChange, value, disableDropdown, placeholder, variant = ui.input.variant, as = ui.input.as, size = ui.input.size, hideLabel = ui.input.hideLabel, isClearable = ui.input.isClearable, disableManualEntry = ui.dateInput.disableManualEntry, ...rest } = props;
|
|
20
20
|
const formFieldProps = {
|
|
21
21
|
error,
|
|
22
22
|
label,
|
|
@@ -134,7 +134,7 @@ const TimePicker = (props) => {
|
|
|
134
134
|
return toTime(DateTimeUtils.fromISOtoZonedDateTime(isoString));
|
|
135
135
|
};
|
|
136
136
|
if ("formControl" in props && props.formControl) {
|
|
137
|
-
const { formControl, ref
|
|
137
|
+
const { formControl, ref, ...innerProps } = props;
|
|
138
138
|
return /* @__PURE__ */ jsx(Controller, {
|
|
139
139
|
control: formControl.control,
|
|
140
140
|
name: formControl.name,
|
|
@@ -7,7 +7,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
8
|
import { useState } from "react";
|
|
9
9
|
import { useCalendar } from "@react-aria/calendar";
|
|
10
|
-
const Calendar = ({ className, includesTime, datePickerState, hourCycle, onApply
|
|
10
|
+
const Calendar = ({ className, includesTime, datePickerState, hourCycle, onApply, ...props }) => {
|
|
11
11
|
const [toggleState, setToggleState] = useState(null);
|
|
12
12
|
const { calendarProps, prevButtonProps, nextButtonProps } = useCalendar(props.calendarProps, props.state);
|
|
13
13
|
const handleDateChange = () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Typography } from "
|
|
1
|
+
import { Typography } from "../../../text/Typography/Typography.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { useCallback, useMemo, useRef } from "react";
|
|
@@ -9,7 +9,7 @@ import { useFocusRing } from "@react-aria/focus";
|
|
|
9
9
|
var isRange = (state) => {
|
|
10
10
|
return "highlightedRange" in state;
|
|
11
11
|
};
|
|
12
|
-
const CalendarCell = ({ state, onApply, shouldCloseOnSelect = true, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation
|
|
12
|
+
const CalendarCell = ({ state, onApply, shouldCloseOnSelect = true, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation, ...props }) => {
|
|
13
13
|
const ref = useRef(null);
|
|
14
14
|
const { cellProps, buttonProps, formattedDate, isSelected, isDisabled, isOutsideVisibleRange } = useCalendarCell(props, state, ref);
|
|
15
15
|
const { focusProps } = useFocusRing();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Typography } from "
|
|
1
|
+
import { Typography } from "../../../text/Typography/Typography.js";
|
|
2
2
|
import { CalendarCell } from "./CalendarCell.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { clsx } from "clsx";
|
|
@@ -11,7 +11,7 @@ var WEEK_INDICES = [
|
|
|
11
11
|
4,
|
|
12
12
|
5
|
|
13
13
|
];
|
|
14
|
-
const CalendarGrid = ({ state, onApply, shouldCloseOnSelect, offset = {}, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation, className, calendarSide
|
|
14
|
+
const CalendarGrid = ({ state, onApply, shouldCloseOnSelect, offset = {}, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation, className, calendarSide, ...props }) => {
|
|
15
15
|
const { gridProps, headerProps, weekDays } = useCalendarGrid({
|
|
16
16
|
...props,
|
|
17
17
|
weekdayStyle: "short"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ArrowDropDownIcon } from "
|
|
2
|
-
import { ArrowDropUpIcon } from "
|
|
3
|
-
import { ChevronLeftIcon } from "
|
|
4
|
-
import { ChevronRightIcon } from "
|
|
5
|
-
import { PillButton } from "
|
|
1
|
+
import { ArrowDropDownIcon } from "../../../../assets/icons/ArrowDropDown.js";
|
|
2
|
+
import { ArrowDropUpIcon } from "../../../../assets/icons/ArrowDropUp.js";
|
|
3
|
+
import { ChevronLeftIcon } from "../../../../assets/icons/ChevronLeft.js";
|
|
4
|
+
import { ChevronRightIcon } from "../../../../assets/icons/ChevronRight.js";
|
|
5
|
+
import { PillButton } from "../../../buttons/PillButton/PillButton.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
8
|
import { Button, ToggleButtonGroup } from "react-aria-components";
|
package/dist/{CalendarSelectHeader.js → components/inputs/DateTime/shared/CalendarSelectHeader.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ArrowDropDownIcon } from "
|
|
2
|
-
import { ChevronLeftIcon } from "
|
|
3
|
-
import { ChevronRightIcon } from "
|
|
4
|
-
import { ChevronsLeftIcon } from "
|
|
5
|
-
import { ChevronsRightIcon } from "
|
|
6
|
-
import { InlineIconButton } from "
|
|
7
|
-
import { PillButton } from "
|
|
8
|
-
import { ns } from "
|
|
9
|
-
import { Select } from "
|
|
1
|
+
import { ArrowDropDownIcon } from "../../../../assets/icons/ArrowDropDown.js";
|
|
2
|
+
import { ChevronLeftIcon } from "../../../../assets/icons/ChevronLeft.js";
|
|
3
|
+
import { ChevronRightIcon } from "../../../../assets/icons/ChevronRight.js";
|
|
4
|
+
import { ChevronsLeftIcon } from "../../../../assets/icons/ChevronsLeft.js";
|
|
5
|
+
import { ChevronsRightIcon } from "../../../../assets/icons/ChevronsRight.js";
|
|
6
|
+
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
7
|
+
import { PillButton } from "../../../buttons/PillButton/PillButton.js";
|
|
8
|
+
import { ns } from "../../../../config/i18n.js";
|
|
9
|
+
import { Select } from "../../Selection/Select/Select.js";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { useMemo } from "react";
|
|
12
12
|
import { useDateFormatter } from "@react-aria/i18n";
|
|
@@ -5,7 +5,7 @@ import { useEffect, useImperativeHandle, useRef } from "react";
|
|
|
5
5
|
import { useDateField, useLocale } from "react-aria";
|
|
6
6
|
import { createCalendar } from "@internationalized/date";
|
|
7
7
|
import { useDateFieldState } from "react-stately";
|
|
8
|
-
const DateField = ({ ref, onClearChange, hidePlaceholder, isDisabled, disableManualEntry
|
|
8
|
+
const DateField = ({ ref, onClearChange, hidePlaceholder, isDisabled, disableManualEntry, ...props }) => {
|
|
9
9
|
const { locale } = useLocale();
|
|
10
10
|
const state = useDateFieldState({
|
|
11
11
|
...props,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { CalendarIcon } from "
|
|
2
|
-
import { DateTimeIcon } from "
|
|
3
|
-
import { UIStyle } from "
|
|
4
|
-
import { Typography } from "
|
|
5
|
-
import { IconButton } from "
|
|
6
|
-
import { InlineIconButton } from "
|
|
7
|
-
import { TodayIcon } from "
|
|
1
|
+
import { CalendarIcon } from "../../../../assets/icons/Calendar.js";
|
|
2
|
+
import { DateTimeIcon } from "../../../../assets/icons/DateTime.js";
|
|
3
|
+
import { UIStyle } from "../../../../config/uiStyle.context.js";
|
|
4
|
+
import { Typography } from "../../../text/Typography/Typography.js";
|
|
5
|
+
import { IconButton } from "../../../buttons/IconButton/IconButton.js";
|
|
6
|
+
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
7
|
+
import { TodayIcon } from "../../../../assets/icons/Today.js";
|
|
8
8
|
import { DateField } from "./DateField.js";
|
|
9
|
-
import { inputSide, useInputCva } from "
|
|
10
|
-
import { FormFieldLabel } from "
|
|
11
|
-
import { InputClear } from "
|
|
9
|
+
import { inputSide, useInputCva } from "../../shared/input.cva.js";
|
|
10
|
+
import { FormFieldLabel } from "../../FormField/FormFieldLabel.js";
|
|
11
|
+
import { InputClear } from "../../shared/InputClear.js";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { clsx } from "clsx";
|
|
14
14
|
import { useCallback, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
@@ -16,7 +16,7 @@ import { Button } from "react-aria-components";
|
|
|
16
16
|
import { useFocusVisible, useFocusWithin, useHover } from "react-aria";
|
|
17
17
|
import { getLocalTimeZone, now, toCalendarDateTime, today } from "@internationalized/date";
|
|
18
18
|
import useMeasure from "react-use-measure";
|
|
19
|
-
const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, buttonProps, isDisabled, isInvalid, disableDropdown, variant, size, isDateTime, isClearable, headerProps, todayIcon, isDirty, isRequired, disableManualEntry, placeholder, onOpenDropdown
|
|
19
|
+
const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, buttonProps, isDisabled, isInvalid, disableDropdown, variant, size, isDateTime, isClearable, headerProps, todayIcon, isDirty, isRequired, disableManualEntry, placeholder, onOpenDropdown, ...props }) => {
|
|
20
20
|
const inputCva = useInputCva();
|
|
21
21
|
const inputSideCva = UIStyle.useConfig()?.input?.sideCva ?? inputSide;
|
|
22
22
|
const [canClear, setCanClear] = useState(false);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BottomSheet } from "
|
|
2
|
-
import { useBreakpoint } from "
|
|
3
|
-
import { FormFieldHeader } from "
|
|
4
|
-
import { FormFieldHeaderClose } from "
|
|
1
|
+
import { BottomSheet } from "../../../overlays/BottomSheet/BottomSheet.js";
|
|
2
|
+
import { useBreakpoint } from "../../../../hooks/useBreakpoint.js";
|
|
3
|
+
import { FormFieldHeader } from "../../FormField/FormFieldHeader.js";
|
|
4
|
+
import { FormFieldHeaderClose } from "../../FormField/FormFieldHeaderClose.js";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Dialog, Popover } from "react-aria-components";
|
|
7
7
|
const DateTimeDialog = ({ hideSidebar, children, footer, sidebar, label, isOpen, triggerRef, dialogProps, onOpenChange }) => {
|
package/dist/{DateTimeDialogFooter.js → components/inputs/DateTime/shared/DateTimeDialogFooter.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TextButton } from "
|
|
2
|
-
import { ns } from "
|
|
1
|
+
import { TextButton } from "../../../buttons/TextButton/TextButton.js";
|
|
2
|
+
import { ns } from "../../../../config/i18n.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ChevronDownIcon } from "
|
|
2
|
-
import { ChevronUpIcon } from "
|
|
3
|
-
import { Typography } from "
|
|
4
|
-
import { InlineIconButton } from "
|
|
5
|
-
import { useBreakpoint } from "
|
|
1
|
+
import { ChevronDownIcon } from "../../../../assets/icons/ChevronDown.js";
|
|
2
|
+
import { ChevronUpIcon } from "../../../../assets/icons/ChevronUp.js";
|
|
3
|
+
import { Typography } from "../../../text/Typography/Typography.js";
|
|
4
|
+
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
5
|
+
import { useBreakpoint } from "../../../../hooks/useBreakpoint.js";
|
|
6
6
|
import { getPlaceholder } from "./DateSegmentItem.js";
|
|
7
|
-
import { useLongPressRepeat } from "
|
|
7
|
+
import { useLongPressRepeat } from "../../../../hooks/useLongPressRepeat.js";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { clsx } from "clsx";
|
|
10
10
|
import { useEffect, useRef } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ClockIcon } from "
|
|
2
|
-
import { UIStyle } from "
|
|
3
|
-
import { Typography } from "
|
|
4
|
-
import { InlineIconButton } from "
|
|
5
|
-
import { inputSide, useInputCva } from "
|
|
6
|
-
import { FormFieldLabel } from "
|
|
7
|
-
import { InputClear } from "
|
|
1
|
+
import { ClockIcon } from "../../../../assets/icons/Clock.js";
|
|
2
|
+
import { UIStyle } from "../../../../config/uiStyle.context.js";
|
|
3
|
+
import { Typography } from "../../../text/Typography/Typography.js";
|
|
4
|
+
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
5
|
+
import { inputSide, useInputCva } from "../../shared/input.cva.js";
|
|
6
|
+
import { FormFieldLabel } from "../../FormField/FormFieldLabel.js";
|
|
7
|
+
import { InputClear } from "../../shared/InputClear.js";
|
|
8
8
|
import { TimeField } from "./TimeField.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { clsx } from "clsx";
|
|
@@ -12,7 +12,7 @@ import { useMemo, useState } from "react";
|
|
|
12
12
|
import { Button } from "react-aria-components";
|
|
13
13
|
import { useFocusVisible, useFocusWithin, useHover } from "react-aria";
|
|
14
14
|
import useMeasure from "react-use-measure";
|
|
15
|
-
const TimePickerInput = ({ ref, as, fieldProps, state, isDisabled, isDirty, isInvalid, disableDropdown, variant, size, isClearable, headerProps, disableManualEntry, placeholder, onPress
|
|
15
|
+
const TimePickerInput = ({ ref, as, fieldProps, state, isDisabled, isDirty, isInvalid, disableDropdown, variant, size, isClearable, headerProps, disableManualEntry, placeholder, onPress, ...props }) => {
|
|
16
16
|
const inputCva = useInputCva();
|
|
17
17
|
const inputSideCva = UIStyle.useConfig()?.input?.sideCva ?? inputSide;
|
|
18
18
|
const { hoverProps, isHovered } = useHover({ isDisabled });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Typography } from "
|
|
2
|
-
import { useScrollableListBox } from "
|
|
1
|
+
import { Typography } from "../../../text/Typography/Typography.js";
|
|
2
|
+
import { useScrollableListBox } from "../../../../hooks/useScrollableListBox.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { useMemo } from "react";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { UIConfig } from "
|
|
2
|
-
import { ns } from "
|
|
3
|
-
import { FormField } from "
|
|
4
|
-
import { FileUtils } from "
|
|
5
|
-
import { FileCardList } from "./FileCardList.js";
|
|
6
|
-
import { FileUploadContentEmpty } from "./FileUploadContentEmpty.js";
|
|
7
|
-
import { FileUploadContent } from "./FileUploadContent.js";
|
|
8
|
-
import { fileUploadDropZone } from "./fileUpload.cva.js";
|
|
1
|
+
import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
2
|
+
import { ns } from "../../../config/i18n.js";
|
|
3
|
+
import { FormField } from "../FormField/FormField.js";
|
|
4
|
+
import { FileUtils } from "../../../utils/file.utils.js";
|
|
5
|
+
import { FileCardList } from "./shared/FileCardList.js";
|
|
6
|
+
import { FileUploadContentEmpty } from "./shared/FileUploadContentEmpty.js";
|
|
7
|
+
import { FileUploadContent } from "./shared/FileUploadContent.js";
|
|
8
|
+
import { fileUploadDropZone } from "./shared/fileUpload.cva.js";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { clsx } from "clsx";
|
|
11
11
|
import { useCallback, useState } from "react";
|
|
@@ -15,7 +15,7 @@ import { Controller } from "react-hook-form";
|
|
|
15
15
|
import { useTranslation } from "react-i18next";
|
|
16
16
|
var FileUploadBase = (props) => {
|
|
17
17
|
const { t } = useTranslation("ui");
|
|
18
|
-
const { ref: _ref, label, tooltipText, variant = "vertical", as = "button", helperText, isRequired, isDisabled, headerClassName, errorClassName, isHeaderHidden, error, className, allowsMultiple = false, hideLabel, acceptedFileTypes, clearOnSuccess, emptyText = t(($) => $.ui.fileUpload.emptyText), uploadText = t(($) => $.ui.fileUpload.uploadText), browseText = t(($) => $.ui.fileUpload.browse), fileUpload, fileRemove, children, listRenderer, onInvalidFileType
|
|
18
|
+
const { ref: _ref, label, tooltipText, variant = "vertical", as = "button", helperText, isRequired, isDisabled, headerClassName, errorClassName, isHeaderHidden, error, className, allowsMultiple = false, hideLabel, acceptedFileTypes, clearOnSuccess, emptyText = t(($) => $.ui.fileUpload.emptyText), uploadText = t(($) => $.ui.fileUpload.uploadText), browseText = t(($) => $.ui.fileUpload.browse), fileUpload, fileRemove, children, listRenderer, onInvalidFileType, ...rest } = props;
|
|
19
19
|
const ui = UIConfig.useConfig();
|
|
20
20
|
const [uploadState, setUploadState] = useState(props.value ?? []);
|
|
21
21
|
const formFieldProps = {
|
|
@@ -170,7 +170,7 @@ var FileUploadBase = (props) => {
|
|
|
170
170
|
};
|
|
171
171
|
const FileUpload = (props) => {
|
|
172
172
|
if ("formControl" in props && props.formControl) {
|
|
173
|
-
const { formControl, ref
|
|
173
|
+
const { formControl, ref, ...innerProps } = props;
|
|
174
174
|
return /* @__PURE__ */ jsx(Controller, {
|
|
175
175
|
control: formControl.control,
|
|
176
176
|
name: formControl.name,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { UIConfig } from "
|
|
2
|
-
import { FormField } from "
|
|
3
|
-
import { FileUtils } from "
|
|
4
|
-
import { InputUploadContent } from "./InputUploadContent.js";
|
|
5
|
-
import { InputUploadFilled } from "./InputUploadFilled.js";
|
|
1
|
+
import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
2
|
+
import { FormField } from "../FormField/FormField.js";
|
|
3
|
+
import { FileUtils } from "../../../utils/file.utils.js";
|
|
4
|
+
import { InputUploadContent } from "./shared/InputUploadContent.js";
|
|
5
|
+
import { InputUploadFilled } from "./shared/InputUploadFilled.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
8
|
import { useState } from "react";
|
|
9
9
|
import { mergeRefs, useLabels } from "@react-aria/utils";
|
|
10
10
|
import { Controller } from "react-hook-form";
|
|
11
|
-
var InputUploadBase = ({ ref: _ref, label, tooltipText, variant, helperText, isRequired, isDisabled, headerClassName, errorClassName, isHeaderHidden, error, className, onChange, onInvalidFileType, value, defaultValue, allowsMultiple = false, hideLabel, acceptedFileTypes
|
|
11
|
+
var InputUploadBase = ({ ref: _ref, label, tooltipText, variant, helperText, isRequired, isDisabled, headerClassName, errorClassName, isHeaderHidden, error, className, onChange, onInvalidFileType, value, defaultValue, allowsMultiple = false, hideLabel, acceptedFileTypes, ...rest }) => {
|
|
12
12
|
const ui = UIConfig.useConfig();
|
|
13
13
|
const [internalFiles, setInternalFiles] = useState(() => {
|
|
14
14
|
if (value !== void 0) {
|
|
@@ -92,7 +92,7 @@ var InputUploadBase = ({ ref: _ref, label, tooltipText, variant, helperText, isR
|
|
|
92
92
|
};
|
|
93
93
|
const InputUpload = (props) => {
|
|
94
94
|
if ("formControl" in props && props.formControl) {
|
|
95
|
-
const { formControl, ref
|
|
95
|
+
const { formControl, ref, ...innerProps } = props;
|
|
96
96
|
return /* @__PURE__ */ jsx(Controller, {
|
|
97
97
|
control: formControl.control,
|
|
98
98
|
name: formControl.name,
|
|
@@ -4,7 +4,7 @@ import { FileUploadContentLoading } from "./FileUploadContentLoading.js";
|
|
|
4
4
|
import { FileUploadContentEmpty } from "./FileUploadContentEmpty.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { FileTrigger } from "react-aria-components";
|
|
7
|
-
const FileUploadContent = ({ variant, as, isDisabled, browseText, uploadText, emptyText, uploadState, handleCancelUpload, handleRemove, acceptedFileTypes, allowsMultiple, handleSelect
|
|
7
|
+
const FileUploadContent = ({ variant, as, isDisabled, browseText, uploadText, emptyText, uploadState, handleCancelUpload, handleRemove, acceptedFileTypes, allowsMultiple, handleSelect, ...rest }) => {
|
|
8
8
|
const currentState = uploadState.at(0);
|
|
9
9
|
const fileTriggerProps = {
|
|
10
10
|
...rest,
|
package/dist/{FileUploadContentEmpty.js → components/inputs/File/shared/FileUploadContentEmpty.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Typography } from "
|
|
2
|
-
import { Button } from "
|
|
3
|
-
import { TextButton } from "
|
|
4
|
-
import { UploadIcon } from "
|
|
1
|
+
import { Typography } from "../../../text/Typography/Typography.js";
|
|
2
|
+
import { Button } from "../../../buttons/Button/Button.js";
|
|
3
|
+
import { TextButton } from "../../../buttons/TextButton/TextButton.js";
|
|
4
|
+
import { UploadIcon } from "../../../../assets/icons/Upload.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
const FileUploadContentEmpty = ({ variant, as, isDisabled, title, browseText, uploadText, singleFile, hideButton = false, className }) => {
|
package/dist/{FileUploadContentError.js → components/inputs/File/shared/FileUploadContentError.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CloseIcon } from "
|
|
2
|
-
import { Typography } from "
|
|
3
|
-
import { Button as Button$1 } from "
|
|
4
|
-
import { InlineIconButton } from "
|
|
5
|
-
import { TextButton } from "
|
|
6
|
-
import { ns } from "
|
|
7
|
-
import { WarningFilledIcon } from "
|
|
1
|
+
import { CloseIcon } from "../../../../assets/icons/Close.js";
|
|
2
|
+
import { Typography } from "../../../text/Typography/Typography.js";
|
|
3
|
+
import { Button as Button$1 } from "../../../buttons/Button/Button.js";
|
|
4
|
+
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
5
|
+
import { TextButton } from "../../../buttons/TextButton/TextButton.js";
|
|
6
|
+
import { ns } from "../../../../config/i18n.js";
|
|
7
|
+
import { WarningFilledIcon } from "../../../../assets/icons/WarningFilled.js";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { clsx } from "clsx";
|
|
10
10
|
import { FileTrigger } from "react-aria-components";
|
package/dist/{FileUploadContentFilled.js → components/inputs/File/shared/FileUploadContentFilled.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CloseIcon } from "
|
|
2
|
-
import { Typography } from "
|
|
3
|
-
import { Button as Button$1 } from "
|
|
4
|
-
import { InlineIconButton } from "
|
|
5
|
-
import { TextButton } from "
|
|
6
|
-
import { ns } from "
|
|
7
|
-
import { FileUtils } from "
|
|
8
|
-
import { CheckCircleIcon } from "
|
|
1
|
+
import { CloseIcon } from "../../../../assets/icons/Close.js";
|
|
2
|
+
import { Typography } from "../../../text/Typography/Typography.js";
|
|
3
|
+
import { Button as Button$1 } from "../../../buttons/Button/Button.js";
|
|
4
|
+
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
5
|
+
import { TextButton } from "../../../buttons/TextButton/TextButton.js";
|
|
6
|
+
import { ns } from "../../../../config/i18n.js";
|
|
7
|
+
import { FileUtils } from "../../../../utils/file.utils.js";
|
|
8
|
+
import { CheckCircleIcon } from "../../../../assets/icons/CheckCircle.js";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { clsx } from "clsx";
|
|
11
11
|
import { FileTrigger } from "react-aria-components";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CloseIcon } from "
|
|
2
|
-
import { Typography } from "
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { InlineIconButton } from "
|
|
5
|
-
import { ns } from "
|
|
6
|
-
import { FileUtils } from "
|
|
7
|
-
import { FileIcon } from "
|
|
1
|
+
import { CloseIcon } from "../../../../assets/icons/Close.js";
|
|
2
|
+
import { Typography } from "../../../text/Typography/Typography.js";
|
|
3
|
+
import { Button } from "../../../buttons/Button/Button.js";
|
|
4
|
+
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
5
|
+
import { ns } from "../../../../config/i18n.js";
|
|
6
|
+
import { FileUtils } from "../../../../utils/file.utils.js";
|
|
7
|
+
import { FileIcon } from "../../../../assets/icons/File.js";
|
|
8
8
|
import { ProgressBar } from "./ProgressBar.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { clsx } from "clsx";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { UIStyle } from "
|
|
2
|
-
import { Typography } from "
|
|
3
|
-
import { Button as Button$1 } from "
|
|
4
|
-
import { TextButton } from "
|
|
5
|
-
import { inputSize } from "
|
|
6
|
-
import { ns } from "
|
|
7
|
-
import { UploadIcon } from "
|
|
1
|
+
import { UIStyle } from "../../../../config/uiStyle.context.js";
|
|
2
|
+
import { Typography } from "../../../text/Typography/Typography.js";
|
|
3
|
+
import { Button as Button$1 } from "../../../buttons/Button/Button.js";
|
|
4
|
+
import { TextButton } from "../../../buttons/TextButton/TextButton.js";
|
|
5
|
+
import { inputSize } from "../../shared/input.cva.js";
|
|
6
|
+
import { ns } from "../../../../config/i18n.js";
|
|
7
|
+
import { UploadIcon } from "../../../../assets/icons/Upload.js";
|
|
8
8
|
import { inputUploadButton, inputUploadDropZone } from "./inputUploadButton.cva.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { clsx } from "clsx";
|
|
11
11
|
import { DropZone, FileTrigger } from "react-aria-components";
|
|
12
12
|
import { useTranslation } from "react-i18next";
|
|
13
13
|
const InputUploadContent = (props) => {
|
|
14
|
-
const { variant, isDisabled, error, placeholder, buttonText
|
|
14
|
+
const { variant, isDisabled, error, placeholder, buttonText, ...rest } = props;
|
|
15
15
|
const { t } = useTranslation("ui");
|
|
16
16
|
const inputSizeCva = UIStyle.useConfig()?.input?.sizeCva ?? inputSize;
|
|
17
17
|
return /* @__PURE__ */ jsx(FileTrigger, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CloseIcon } from "
|
|
2
|
-
import { UIStyle } from "
|
|
3
|
-
import { Typography } from "
|
|
4
|
-
import { InlineIconButton } from "
|
|
5
|
-
import { inputSize } from "
|
|
1
|
+
import { CloseIcon } from "../../../../assets/icons/Close.js";
|
|
2
|
+
import { UIStyle } from "../../../../config/uiStyle.context.js";
|
|
3
|
+
import { Typography } from "../../../text/Typography/Typography.js";
|
|
4
|
+
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
5
|
+
import { inputSize } from "../../shared/input.cva.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
8
|
const InputUploadFilled = ({ files, onRemove, isDisabled }) => {
|