@povio/ui 3.4.0-rc.16 → 3.4.0-rc.18
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 +20 -1
- package/dist/components/Menu/Menu.d.ts +1 -1
- package/dist/components/Menu/MenuMobile.js +1 -1
- package/dist/components/accordion.d.ts +3 -0
- package/dist/components/accordion.js +2 -0
- package/dist/components/{overlays/ActionModal/ActionModal.d.ts → action-modal.d.ts} +3 -3
- package/dist/components/{overlays/ActionModal/ActionModal.js → action-modal.js} +4 -4
- package/dist/components/{status/Alert/Alert.d.ts → alert.d.ts} +1 -1
- package/dist/components/{status/Alert/Alert.js → alert.js} +5 -5
- package/dist/components/{inputs/Selection/Autocomplete/Autocomplete.d.ts → autocomplete.d.ts} +4 -4
- package/dist/components/{inputs/Selection/Autocomplete/Autocomplete.js → autocomplete.js} +9 -9
- package/dist/components/{overlays/BottomSheet/BottomSheet.d.ts → bottom-sheet.d.ts} +1 -1
- package/dist/components/{overlays/BottomSheet/BottomSheet.js → bottom-sheet.js} +4 -4
- package/dist/components/{Breadcrumbs/Breadcrumbs.d.ts → breadcrumbs.d.ts} +3 -3
- package/dist/components/{Breadcrumbs/Breadcrumbs.js → breadcrumbs.js} +11 -11
- package/dist/components/button.d.ts +3 -0
- package/dist/components/button.js +2 -0
- package/dist/components/buttons/Button/Button.d.ts +1 -1
- package/dist/components/buttons/shared/ButtonContent.js +1 -1
- package/dist/components/{inputs/Checkbox/CheckboxGroup.d.ts → checkbox-group.d.ts} +11 -11
- package/dist/components/{inputs/Checkbox/CheckboxGroup.js → checkbox-group.js} +12 -12
- package/dist/components/checkbox.d.ts +24 -0
- package/dist/components/{inputs/Checkbox/Checkbox.js → checkbox.js} +11 -11
- package/dist/components/date-picker.d.ts +2 -0
- package/dist/components/date-picker.js +2 -0
- package/dist/components/date-range-picker.d.ts +2 -0
- package/dist/components/date-range-picker.js +2 -0
- package/dist/components/date-time-picker.d.ts +2 -0
- package/dist/components/date-time-picker.js +2 -0
- package/dist/components/{overlays/Drawer/Drawer.js → drawer.js} +1 -1
- package/dist/components/{inputs/File/FileUploadContainer.d.ts → file-upload-container.d.ts} +1 -1
- package/dist/components/{inputs/File/FileUploadContainer.js → file-upload-container.js} +1 -1
- package/dist/components/{inputs/File/FileUpload.d.ts → file-upload.d.ts} +3 -3
- package/dist/components/{inputs/File/FileUpload.js → file-upload.js} +10 -10
- package/dist/components/{inputs/FormField/FormField.d.ts → form-field.d.ts} +3 -3
- package/dist/components/{inputs/FormField/FormField.js → form-field.js} +3 -3
- package/dist/components/{buttons/IconButton/IconButton.d.ts → icon-button.d.ts} +2 -2
- package/dist/components/{buttons/IconButton/IconButton.js → icon-button.js} +2 -2
- package/dist/components/{buttons/InlineIconButton/InlineIconButton.d.ts → inline-icon-button.d.ts} +2 -2
- package/dist/components/{buttons/InlineIconButton/InlineIconButton.js → inline-icon-button.js} +1 -1
- package/dist/components/{inputs/File/InputUpload.d.ts → input-upload.d.ts} +2 -2
- package/dist/components/{inputs/File/InputUpload.js → input-upload.js} +6 -6
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +1 -1
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +4 -4
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +4 -4
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +1 -1
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +4 -4
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +1 -1
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +4 -4
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +1 -1
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +2 -2
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +2 -2
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +1 -1
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +1 -1
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +1 -1
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +2 -2
- package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +1 -1
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +2 -2
- 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/FileUploadContentEmpty.js +1 -1
- package/dist/components/inputs/File/shared/FileUploadContentError.js +2 -2
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +2 -2
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +1 -1
- package/dist/components/inputs/File/shared/InputUploadContent.js +1 -1
- package/dist/components/inputs/File/shared/InputUploadFilled.js +1 -1
- package/dist/components/inputs/FormField/FormFieldHeader.js +1 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +1 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +1 -1
- package/dist/components/inputs/Input/shared/InputContent.d.ts +1 -1
- package/dist/components/inputs/Input/shared/InputContent.js +3 -3
- package/dist/components/inputs/Inputs/InputItem.d.ts +16 -16
- package/dist/components/inputs/Inputs/InputItem.js +13 -13
- package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +1 -1
- package/dist/components/inputs/Selection/Select/Select.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +3 -3
- package/dist/components/inputs/Selection/shared/SelectInput.js +2 -2
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +1 -1
- 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 +3 -3
- package/dist/components/inputs/Skeleton/InputFrame.js +4 -4
- package/dist/components/inputs/TextEditor/TextEditor.d.ts +1 -1
- package/dist/components/inputs/TextEditor/TextEditor.js +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +3 -3
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +1 -1
- package/dist/components/inputs/shared/InputClear.js +1 -1
- package/dist/components/inputs/shared/TooltipWrapper.js +1 -1
- package/dist/components/link.d.ts +11 -0
- package/dist/components/{text/Link/Link.js → link.js} +7 -7
- package/dist/components/{status/Loader/Loader.d.ts → loader.d.ts} +1 -1
- package/dist/components/{status/Loader/Loader.js → loader.js} +1 -1
- package/dist/components/menu.d.ts +3 -0
- package/dist/components/menu.js +3 -0
- package/dist/components/modal.d.ts +2 -0
- package/dist/components/modal.js +2 -0
- package/dist/components/{inputs/Input/NumberInput/NumberInput.d.ts → number-input.d.ts} +5 -5
- package/dist/components/{inputs/Input/NumberInput/NumberInput.js → number-input.js} +12 -12
- package/dist/components/{inputs/Input/NumberRangeInput/NumberRangeInput.d.ts → number-range-input.d.ts} +5 -5
- package/dist/components/{inputs/Input/NumberRangeInput/NumberRangeInput.js → number-range-input.js} +11 -11
- package/dist/components/overlays/Modal/Modal.js +1 -1
- package/dist/components/{shared/pagination/PaginationList.d.ts → pagination-list.d.ts} +1 -1
- package/dist/components/{shared/pagination/PaginationList.js → pagination-list.js} +3 -3
- package/dist/components/{shared/pagination/Pagination.d.ts → pagination.d.ts} +1 -1
- package/dist/components/{shared/pagination/Pagination.js → pagination.js} +4 -4
- package/dist/components/{inputs/Input/PasswordInput/PasswordInput.d.ts → password-input.d.ts} +3 -3
- package/dist/components/{inputs/Input/PasswordInput/PasswordInput.js → password-input.js} +2 -2
- package/dist/components/{buttons/PillButton/PillButton.d.ts → pill-button.d.ts} +2 -2
- package/dist/components/{buttons/PillButton/PillButton.js → pill-button.js} +3 -3
- package/dist/components/{text/Pill/Pill.d.ts → pill.d.ts} +2 -2
- package/dist/components/{text/Pill/Pill.js → pill.js} +5 -5
- package/dist/components/progress-bar.d.ts +2 -0
- package/dist/components/progress-bar.js +2 -0
- package/dist/components/{inputs/Selection/Autocomplete/QueryAutocomplete.d.ts → query-autocomplete.d.ts} +3 -3
- package/dist/components/{inputs/Selection/Autocomplete/QueryAutocomplete.js → query-autocomplete.js} +5 -5
- package/dist/components/{inputs/Selection/Select/QuerySelect.d.ts → query-select.d.ts} +5 -5
- package/dist/components/{inputs/Selection/Select/QuerySelect.js → query-select.js} +5 -5
- package/dist/components/radio-group.d.ts +24 -0
- package/dist/components/{inputs/RadioGroup/RadioGroup.js → radio-group.js} +12 -12
- package/dist/components/{overlays/ResponsivePopover/ResponsivePopover.d.ts → responsive-popover.d.ts} +1 -1
- package/dist/components/{overlays/ResponsivePopover/ResponsivePopover.js → responsive-popover.js} +4 -4
- package/dist/components/segment/Segment.js +1 -1
- package/dist/components/segment.d.ts +3 -0
- package/dist/components/segment.js +2 -0
- package/dist/components/select.d.ts +4 -0
- package/dist/components/select.js +2 -0
- package/dist/components/{inputs/Slider/Slider.d.ts → slider.d.ts} +9 -9
- package/dist/components/{inputs/Slider/Slider.js → slider.js} +9 -9
- package/dist/components/{buttons/SplitButton/SplitButton.d.ts → split-button.d.ts} +3 -3
- package/dist/components/{buttons/SplitButton/SplitButton.js → split-button.js} +3 -3
- package/dist/components/status/Toast/Toast.js +1 -1
- package/dist/components/stepper.d.ts +3 -0
- package/dist/components/stepper.js +2 -0
- package/dist/components/table/ColumnConfig.js +1 -1
- package/dist/components/table/InfiniteTable.js +1 -1
- package/dist/components/table/PaginatedTable.js +1 -1
- package/dist/components/table/Table.js +1 -1
- package/dist/components/{text/Tag/Tag.d.ts → tag.d.ts} +2 -2
- package/dist/components/{text/Tag/Tag.js → tag.js} +5 -5
- package/dist/components/text-area.d.ts +21 -0
- package/dist/components/{inputs/Input/TextArea/TextArea.js → text-area.js} +13 -13
- package/dist/components/{buttons/TextButton/TextButton.d.ts → text-button.d.ts} +4 -4
- package/dist/components/{buttons/TextButton/TextButton.js → text-button.js} +1 -1
- package/dist/components/{inputs/Input/TextInput/TextInput.d.ts → text-input.d.ts} +5 -5
- package/dist/components/{inputs/Input/TextInput/TextInput.js → text-input.js} +10 -10
- package/dist/components/time-picker.d.ts +2 -0
- package/dist/components/time-picker.js +2 -0
- package/dist/components/toast.d.ts +3 -0
- package/dist/components/toast.js +2 -0
- package/dist/components/toggle-button.d.ts +12 -0
- package/dist/components/{buttons/ToggleButton/ToggleButton.js → toggle-button.js} +1 -1
- package/dist/components/{inputs/Toggle/Toggle.d.ts → toggle.d.ts} +4 -4
- package/dist/components/{inputs/Toggle/Toggle.js → toggle.js} +6 -6
- package/dist/components/{overlays/Tooltip/TooltipEllipsis.js → tooltip-ellipsis.js} +1 -1
- package/dist/components/tooltip.d.ts +16 -0
- package/dist/components/{overlays/Tooltip/Tooltip.js → tooltip.js} +7 -7
- package/dist/components/typography.d.ts +3 -0
- package/dist/components/typography.js +2 -0
- package/dist/components/use-toast.d.ts +16 -0
- package/dist/components/{status/Toast/useToast.js → use-toast.js} +1 -1
- package/dist/config/confirmation.context.d.ts +1 -1
- package/dist/config/confirmation.context.js +1 -1
- package/dist/config/confirmation.d.ts +2 -0
- package/dist/config/confirmation.js +2 -0
- package/dist/config/link-context.d.ts +3 -0
- package/dist/config/link-context.js +2 -0
- package/dist/config/link.context.d.ts +1 -1
- package/dist/config/resources.d.ts +2 -0
- package/dist/config/resources.js +2 -0
- package/dist/config/theme-context.d.ts +2 -0
- package/dist/config/theme-context.js +2 -0
- package/dist/config/ui-config.d.ts +2 -0
- package/dist/config/ui-config.js +2 -0
- package/dist/config/ui-overrides.d.ts +2 -0
- package/dist/config/ui-overrides.js +2 -0
- package/dist/config/ui-router.d.ts +2 -0
- package/dist/config/ui-router.js +2 -0
- package/dist/config/uiConfig.context.d.ts +10 -10
- package/dist/helpers/dynamicInputs.d.ts +1 -1
- package/dist/hooks/use-filters.d.ts +2 -0
- package/dist/hooks/use-filters.js +2 -0
- package/dist/hooks/use-local-storage.d.ts +2 -0
- package/dist/hooks/use-local-storage.js +2 -0
- package/dist/hooks/use-translation-memo.d.ts +2 -0
- package/dist/hooks/use-translation-memo.js +2 -0
- package/dist/hooks/useTableNav.js +1 -1
- package/dist/icons.d.ts +2 -0
- package/dist/icons.js +2 -0
- package/dist/index.d.ts +87 -67
- package/dist/index.js +58 -38
- package/dist/rhf/Inputs.d.ts +19 -1
- package/dist/rhf/{Inputs.js → Inputs2.js} +18 -1
- package/dist/rhf/autocomplete.d.ts +16 -0
- package/dist/rhf/autocomplete.js +9 -0
- package/dist/rhf/checkbox-group.d.ts +9 -0
- package/dist/rhf/checkbox-group.js +9 -0
- package/dist/rhf/checkbox.d.ts +9 -0
- package/dist/rhf/checkbox.js +9 -0
- package/dist/rhf/components.d.ts +39 -78
- package/dist/rhf/date-picker.d.ts +9 -0
- package/dist/rhf/date-picker.js +10 -0
- package/dist/rhf/date-range-picker.d.ts +9 -0
- package/dist/rhf/date-range-picker.js +10 -0
- package/dist/rhf/date-time-picker.d.ts +9 -0
- package/dist/rhf/date-time-picker.js +10 -0
- package/dist/rhf/date.transforms.js +15 -0
- package/dist/rhf/entry.utils.js +22 -0
- package/dist/rhf/file-upload.d.ts +10 -0
- package/dist/rhf/file-upload.js +7 -0
- package/dist/rhf/input-upload.d.ts +10 -0
- package/dist/rhf/input-upload.js +7 -0
- package/dist/rhf/inputs.js +3 -0
- package/dist/rhf/inputs2.d.ts +6 -0
- package/dist/rhf/number-input.d.ts +8 -0
- package/dist/rhf/number-input.js +7 -0
- package/dist/rhf/number-range-input.d.ts +8 -0
- package/dist/rhf/number-range-input.js +7 -0
- package/dist/rhf/password-input.d.ts +8 -0
- package/dist/rhf/password-input.js +7 -0
- package/dist/rhf/query-autocomplete.d.ts +14 -0
- package/dist/rhf/query-autocomplete.js +9 -0
- package/dist/rhf/query-select.d.ts +15 -0
- package/dist/rhf/query-select.js +9 -0
- package/dist/rhf/radio-group.d.ts +9 -0
- package/dist/rhf/radio-group.js +9 -0
- package/dist/rhf/segment.d.ts +9 -0
- package/dist/rhf/segment.js +7 -0
- package/dist/rhf/select.d.ts +16 -0
- package/dist/rhf/select.js +9 -0
- package/dist/rhf/slider.d.ts +8 -0
- package/dist/rhf/slider.js +7 -0
- package/dist/rhf/text-area.d.ts +8 -0
- package/dist/rhf/text-area.js +7 -0
- package/dist/rhf/text-editor.d.ts +8 -0
- package/dist/rhf/text-editor.js +7 -0
- package/dist/rhf/text-input.d.ts +8 -0
- package/dist/rhf/text-input.js +7 -0
- package/dist/rhf/time-picker.d.ts +9 -0
- package/dist/rhf/time-picker.js +10 -0
- package/dist/rhf/toggle.d.ts +9 -0
- package/dist/rhf/toggle.js +9 -0
- package/dist/rhf.d.ts +89 -68
- package/dist/rhf.js +58 -38
- package/dist/styles/input.d.ts +2 -0
- package/dist/styles/input.js +0 -0
- package/dist/styles/outline.d.ts +2 -0
- package/dist/styles/outline.js +2 -0
- package/dist/tanstack/autocomplete.d.ts +2 -0
- package/dist/tanstack/autocomplete.js +2 -0
- package/dist/tanstack/checkbox-group.d.ts +2 -0
- package/dist/tanstack/checkbox-group.js +2 -0
- package/dist/tanstack/checkbox.d.ts +2 -0
- package/dist/tanstack/checkbox.js +2 -0
- package/dist/tanstack/date-picker.d.ts +2 -0
- package/dist/tanstack/date-picker.js +2 -0
- package/dist/tanstack/date-range-picker.d.ts +2 -0
- package/dist/tanstack/date-range-picker.js +2 -0
- package/dist/tanstack/date-time-picker.d.ts +2 -0
- package/dist/tanstack/date-time-picker.js +2 -0
- package/dist/tanstack/file-upload.d.ts +3 -0
- package/dist/tanstack/file-upload.js +2 -0
- package/dist/tanstack/form.d.ts +4 -0
- package/dist/tanstack/form.js +4 -0
- package/dist/tanstack/input-upload.d.ts +3 -0
- package/dist/tanstack/input-upload.js +2 -0
- package/dist/tanstack/inputs.d.ts +6 -0
- package/dist/tanstack/inputs.js +3 -0
- package/dist/tanstack/number-input.d.ts +2 -0
- package/dist/tanstack/number-input.js +2 -0
- package/dist/tanstack/number-range-input.d.ts +3 -0
- package/dist/tanstack/number-range-input.js +2 -0
- package/dist/tanstack/password-input.d.ts +2 -0
- package/dist/tanstack/password-input.js +2 -0
- package/dist/tanstack/query-autocomplete.d.ts +2 -0
- package/dist/tanstack/query-autocomplete.js +2 -0
- package/dist/tanstack/query-select.d.ts +2 -0
- package/dist/tanstack/query-select.js +2 -0
- package/dist/tanstack/radio-group.d.ts +2 -0
- package/dist/tanstack/radio-group.js +2 -0
- package/dist/tanstack/segment.d.ts +3 -0
- package/dist/tanstack/segment.js +2 -0
- package/dist/tanstack/select.d.ts +2 -0
- package/dist/tanstack/select.js +2 -0
- package/dist/tanstack/slider.d.ts +2 -0
- package/dist/tanstack/slider.js +2 -0
- package/dist/tanstack/table.d.ts +13 -0
- package/dist/tanstack/table.js +12 -0
- package/dist/tanstack/text-area.d.ts +2 -0
- package/dist/tanstack/text-area.js +2 -0
- package/dist/tanstack/text-editor.d.ts +2 -0
- package/dist/tanstack/text-editor.js +2 -0
- package/dist/tanstack/text-input.d.ts +2 -0
- package/dist/tanstack/text-input.js +2 -0
- package/dist/tanstack/time-picker.d.ts +2 -0
- package/dist/tanstack/time-picker.js +2 -0
- package/dist/tanstack/toggle.d.ts +2 -0
- package/dist/tanstack/toggle.js +2 -0
- package/dist/tanstack.d.ts +73 -73
- package/dist/tanstack.js +52 -52
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +0 -0
- package/dist/utils/compound-mapper.d.ts +2 -0
- package/dist/utils/compound-mapper.js +2 -0
- package/dist/utils/date-time.d.ts +2 -0
- package/dist/utils/date-time.js +2 -0
- package/dist/utils/date.d.ts +2 -0
- package/dist/utils/date.js +2 -0
- package/dist/utils/file.d.ts +2 -0
- package/dist/utils/file.js +2 -0
- package/dist/utils/intl.d.ts +2 -0
- package/dist/utils/intl.js +2 -0
- package/dist/utils/logger.js +1 -18
- package/dist/utils/logger2.d.ts +2 -0
- package/dist/utils/logger2.js +19 -0
- package/dist/utils/string.d.ts +2 -0
- package/dist/utils/string.js +2 -0
- package/package.json +642 -10
- package/dist/components/buttons/ToggleButton/ToggleButton.d.ts +0 -12
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +0 -23
- package/dist/components/inputs/Input/TextArea/TextArea.d.ts +0 -21
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +0 -24
- package/dist/components/overlays/Tooltip/Tooltip.d.ts +0 -16
- package/dist/components/status/Toast/useToast.d.ts +0 -16
- package/dist/components/text/Link/Link.d.ts +0 -11
- package/dist/rhf/components.js +0 -101
- /package/dist/components/{overlays/Drawer/Drawer.d.ts → drawer.d.ts} +0 -0
- /package/dist/components/{overlays/Tooltip/TooltipEllipsis.d.ts → tooltip-ellipsis.d.ts} +0 -0
- /package/dist/styles/{editor.css → styles/editor.css} +0 -0
package/README.md
CHANGED
|
@@ -6,6 +6,25 @@ UI Components that match Povio's Atlas Design System.
|
|
|
6
6
|
|
|
7
7
|
`bun add @povio/ui`
|
|
8
8
|
|
|
9
|
+
## Imports
|
|
10
|
+
|
|
11
|
+
Use component and feature subpaths in application code. Each subpath resolves to an isolated ESM entry and lets route-level bundlers retain only the component graph used by that route.
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import { Button } from "@povio/ui/button";
|
|
15
|
+
import { Modal } from "@povio/ui/modal";
|
|
16
|
+
import { Select } from "@povio/ui/tanstack/select";
|
|
17
|
+
import { useForm } from "@povio/ui/tanstack/form";
|
|
18
|
+
import { Table } from "@povio/ui/tanstack/table";
|
|
19
|
+
import { TextEditor } from "@povio/ui/text-editor";
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Form inputs are available from matching integration paths, such as `@povio/ui/rhf/text-input` and `@povio/ui/tanstack/text-input`. Dynamic input builders are exposed from `@povio/ui/rhf/inputs` and `@povio/ui/tanstack/inputs`.
|
|
23
|
+
|
|
24
|
+
The broad `@povio/ui`, `@povio/ui/rhf`, and `@povio/ui/tanstack` entries remain for compatibility. They are not recommended for new application imports because they reconnect otherwise independent feature graphs.
|
|
25
|
+
|
|
26
|
+
Feature dependencies are optional peers. Install the matching packages when using date/calendar entries, `@povio/ui/tanstack/table`, RHF/TanStack Form inputs, or the text editor. Basic components such as Button, Typography, and Modal do not require table, drag-and-drop, calendar, or TipTap packages.
|
|
27
|
+
|
|
9
28
|
## Versioning
|
|
10
29
|
|
|
11
30
|
`^2.1` still corresponds to Atlas 2.1. All versions after that currently target Atlas 2.2 and follow semantic versioning — breaking changes bump the major version.
|
|
@@ -122,7 +141,7 @@ To override the translations, add a partial `ui-translation.json` file for the l
|
|
|
122
141
|
|
|
123
142
|
```ts
|
|
124
143
|
// src/config/i18n.ts
|
|
125
|
-
import { resources as uiDefaultResources, ns as uiNs } from "@povio/ui";
|
|
144
|
+
import { resources as uiDefaultResources, ns as uiNs } from "@povio/ui/resources";
|
|
126
145
|
import deepMerge from "deepmerge";
|
|
127
146
|
|
|
128
147
|
import uiTranslationEN from "./locales/en/ui-translation.json";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BottomSheetProps } from "../
|
|
1
|
+
import { BottomSheetProps } from "../bottom-sheet.js";
|
|
2
2
|
import { MenuCvaVariantProps, MenuItemVariantProps, MenuPopoverVariantProps, MenuPopoverWrapperVariantProps } from "./menu.cva.js";
|
|
3
3
|
import { ReactElement } from "react";
|
|
4
4
|
import { Key, MenuItemProps } from "react-aria-components";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UIOverrides } from "../../config/uiOverrides.context.js";
|
|
2
2
|
import { menuDefinition, menuItemDefinition } from "./menu.cva.js";
|
|
3
3
|
import { MenuItem as MenuItem$1 } from "./MenuItem.js";
|
|
4
|
-
import { BottomSheet } from "../
|
|
4
|
+
import { BottomSheet } from "../bottom-sheet.js";
|
|
5
5
|
import { ArrowLeft } from "lucide-react";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { clsx } from "clsx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ButtonVariantProps } from "
|
|
2
|
-
import { ModalProps } from "
|
|
3
|
-
import { TypographyPropsCva } from "
|
|
1
|
+
import { ButtonVariantProps } from "./buttons/Button/button.cva.js";
|
|
2
|
+
import { ModalProps } from "./overlays/Modal/Modal.js";
|
|
3
|
+
import { TypographyPropsCva } from "./text/Typography/Typography.js";
|
|
4
4
|
//#region src/components/overlays/ActionModal/ActionModal.d.ts
|
|
5
5
|
interface ActionModalAction {
|
|
6
6
|
label: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Typography } from "
|
|
2
|
-
import { UIConfig } from "
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { Modal } from "
|
|
1
|
+
import { Typography } from "./text/Typography/Typography.js";
|
|
2
|
+
import { UIConfig } from "../config/uiConfig.context.js";
|
|
3
|
+
import { Button } from "./buttons/Button/Button.js";
|
|
4
|
+
import { Modal } from "./overlays/Modal/Modal.js";
|
|
5
5
|
import { c } from "react/compiler-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { UIOverrides } from "
|
|
2
|
-
import { Typography } from "
|
|
3
|
-
import { Loader } from "
|
|
4
|
-
import { alertDefinition } from "./alert.cva.js";
|
|
5
|
-
import { statusIconDefinition, statusSeparatorDefinition } from "
|
|
1
|
+
import { UIOverrides } from "../config/uiOverrides.context.js";
|
|
2
|
+
import { Typography } from "./text/Typography/Typography.js";
|
|
3
|
+
import { Loader } from "./loader.js";
|
|
4
|
+
import { alertDefinition } from "./status/Alert/alert.cva.js";
|
|
5
|
+
import { statusIconDefinition, statusSeparatorDefinition } from "./status/shared/status.cva.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/status/Alert/Alert.tsx
|
package/dist/components/{inputs/Selection/Autocomplete/Autocomplete.d.ts → autocomplete.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FieldValues } from "
|
|
2
|
-
import { DefaultInitialSelectItem, GroupedSelectControlProps, GroupedSelectProps } from "
|
|
3
|
-
import { SelectBaseProps } from "
|
|
4
|
-
import { OmitDiscriminatedUnion } from "
|
|
1
|
+
import { FieldValues } from "./inputs/shared/form.binding.js";
|
|
2
|
+
import { DefaultInitialSelectItem, GroupedSelectControlProps, GroupedSelectProps } from "./inputs/Selection/shared/select.types.js";
|
|
3
|
+
import { SelectBaseProps } from "./inputs/Selection/shared/SelectBase.js";
|
|
4
|
+
import { OmitDiscriminatedUnion } from "../types/common.js";
|
|
5
5
|
import { ReactElement } from "react";
|
|
6
6
|
import { Key } from "react-aria-components";
|
|
7
7
|
//#region src/components/inputs/Selection/Autocomplete/Autocomplete.d.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { UIOverrides } from "
|
|
2
|
-
import { UIConfig } from "
|
|
3
|
-
import { FieldController } from "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { SelectBase } from "
|
|
8
|
-
import { StaticSelectTrailingContent } from "
|
|
9
|
-
import { getStaticSelectValue } from "
|
|
1
|
+
import { UIOverrides } from "../config/uiOverrides.context.js";
|
|
2
|
+
import { UIConfig } from "../config/uiConfig.context.js";
|
|
3
|
+
import { FieldController } from "./inputs/shared/form.binding.js";
|
|
4
|
+
import { selectInputTagsContentWrapperDefinition } from "./inputs/Selection/shared/selectInput.cva.js";
|
|
5
|
+
import { InputFrame } from "./inputs/Skeleton/InputFrame.js";
|
|
6
|
+
import { useStaticInputHandoff } from "./inputs/shared/useStaticInputHandoff.js";
|
|
7
|
+
import { SelectBase } from "./inputs/Selection/shared/SelectBase.js";
|
|
8
|
+
import { StaticSelectTrailingContent } from "./inputs/Selection/shared/StaticSelectTrailingContent.js";
|
|
9
|
+
import { getStaticSelectValue } from "./inputs/Selection/shared/staticSelect.utils.js";
|
|
10
10
|
import { clsx } from "clsx";
|
|
11
11
|
import { memo, useRef, useState } from "react";
|
|
12
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TypographyVariantProps } from "
|
|
1
|
+
import { TypographyVariantProps } from "./text/Typography/typography.cva.js";
|
|
2
2
|
import { ReactNode, RefObject } from "react";
|
|
3
3
|
//#region src/components/overlays/BottomSheet/BottomSheet.d.ts
|
|
4
4
|
type BottomSheetState = "closed" | "opening" | "opened" | "closing";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UIConfig } from "
|
|
2
|
-
import { BottomSheetHeader } from "./BottomSheetHeader.js";
|
|
3
|
-
import { useStateAndRef } from "
|
|
4
|
-
import { DomUtils } from "
|
|
1
|
+
import { UIConfig } from "../config/uiConfig.context.js";
|
|
2
|
+
import { BottomSheetHeader } from "./overlays/BottomSheet/BottomSheetHeader.js";
|
|
3
|
+
import { useStateAndRef } from "../hooks/useStateAndRef.js";
|
|
4
|
+
import { DomUtils } from "../utils/dom.utils.js";
|
|
5
5
|
import { c } from "react/compiler-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinkNavigationProps } from "
|
|
1
|
+
import { LinkNavigationProps } from "./link.js";
|
|
2
2
|
import { FC, SVGProps } from "react";
|
|
3
3
|
import { Key } from "react-aria-components";
|
|
4
4
|
//#region src/components/Breadcrumbs/Breadcrumbs.d.ts
|
|
@@ -14,6 +14,6 @@ interface BreadcrumbsProps {
|
|
|
14
14
|
onAction?: (id: Key) => void;
|
|
15
15
|
iconOnly?: boolean;
|
|
16
16
|
}
|
|
17
|
-
declare const Breadcrumbs
|
|
17
|
+
declare const Breadcrumbs: ({ items, className, onAction, iconOnly }: BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
|
-
export { BreadcrumbItem, Breadcrumbs
|
|
19
|
+
export { BreadcrumbItem, Breadcrumbs, BreadcrumbsProps };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { UIOverrides } from "
|
|
2
|
-
import { breadcrumbChevronDefinition, breadcrumbIconDefinition, breadcrumbItemDefinition, breadcrumbSegmentDefinition, breadcrumbsDefinition } from "./breadcrumbs.cva.js";
|
|
3
|
-
import { MenuDesktop } from "
|
|
4
|
-
import { Typography } from "
|
|
5
|
-
import { Tooltip as Tooltip$1 } from "
|
|
6
|
-
import { LinkContext } from "
|
|
1
|
+
import { UIOverrides } from "../config/uiOverrides.context.js";
|
|
2
|
+
import { breadcrumbChevronDefinition, breadcrumbIconDefinition, breadcrumbItemDefinition, breadcrumbSegmentDefinition, breadcrumbsDefinition } from "./Breadcrumbs/breadcrumbs.cva.js";
|
|
3
|
+
import { MenuDesktop } from "./Menu/MenuDesktop.js";
|
|
4
|
+
import { Typography } from "./text/Typography/Typography.js";
|
|
5
|
+
import { Tooltip as Tooltip$1 } from "./tooltip.js";
|
|
6
|
+
import { LinkContext } from "../config/link.context.js";
|
|
7
7
|
import { ChevronRight } from "lucide-react";
|
|
8
8
|
import { c } from "react/compiler-runtime";
|
|
9
9
|
import { clsx } from "clsx";
|
|
10
10
|
import { useLayoutEffect, useRef, useState } from "react";
|
|
11
|
-
import { Breadcrumb, Breadcrumbs, Button, Link as Link$1 } from "react-aria-components";
|
|
11
|
+
import { Breadcrumb, Breadcrumbs as Breadcrumbs$1, Button, Link as Link$1 } from "react-aria-components";
|
|
12
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
//#region src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
14
|
-
const Breadcrumbs
|
|
14
|
+
const Breadcrumbs = (t0) => {
|
|
15
15
|
const $ = c(58);
|
|
16
16
|
const { items, className, onAction, iconOnly: t1 } = t0;
|
|
17
17
|
const iconOnly = t1 === void 0 ? false : t1;
|
|
@@ -185,7 +185,7 @@ const Breadcrumbs$1 = (t0) => {
|
|
|
185
185
|
$[39] = t18;
|
|
186
186
|
$[40] = t19;
|
|
187
187
|
} else t19 = $[40];
|
|
188
|
-
return /* @__PURE__ */ jsxs(Breadcrumbs, {
|
|
188
|
+
return /* @__PURE__ */ jsxs(Breadcrumbs$1, {
|
|
189
189
|
onAction,
|
|
190
190
|
className: t5,
|
|
191
191
|
children: [
|
|
@@ -232,7 +232,7 @@ const Breadcrumbs$1 = (t0) => {
|
|
|
232
232
|
} else t8 = $[51];
|
|
233
233
|
let t9;
|
|
234
234
|
if ($[52] !== items || $[53] !== onAction || $[54] !== t5 || $[55] !== t7 || $[56] !== t8) {
|
|
235
|
-
t9 = /* @__PURE__ */ jsx(Breadcrumbs, {
|
|
235
|
+
t9 = /* @__PURE__ */ jsx(Breadcrumbs$1, {
|
|
236
236
|
ref: containerRef,
|
|
237
237
|
items,
|
|
238
238
|
onAction,
|
|
@@ -260,4 +260,4 @@ function _temp2(i) {
|
|
|
260
260
|
return i.label;
|
|
261
261
|
}
|
|
262
262
|
//#endregion
|
|
263
|
-
export { Breadcrumbs
|
|
263
|
+
export { Breadcrumbs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinkNavigationProps } from "../../
|
|
1
|
+
import { LinkNavigationProps } from "../../link.js";
|
|
2
2
|
import { ButtonVariantProps } from "./button.cva.js";
|
|
3
3
|
import { ButtonContentVariantProps } from "../shared/buttonContent.cva.js";
|
|
4
4
|
import { FC, ReactElement, ReactNode, Ref, SVGProps } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
import { typographyDefinition } from "../../text/Typography/typography.cva.js";
|
|
3
3
|
import { buttonContentLabel } from "./buttonContent.cva.js";
|
|
4
|
-
import { Loader } from "../../
|
|
4
|
+
import { Loader } from "../../loader.js";
|
|
5
5
|
import { c } from "react/compiler-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { isValidElement } from "react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { FieldValues } from "
|
|
2
|
-
import { CheckboxVariantProps } from "./checkbox.cva.js";
|
|
3
|
-
import { ControlProps } from "
|
|
4
|
-
import { InputVariantProps } from "
|
|
5
|
-
import { FormFieldProps } from "
|
|
1
|
+
import { FieldValues } from "./inputs/shared/form.binding.js";
|
|
2
|
+
import { CheckboxVariantProps } from "./inputs/Checkbox/checkbox.cva.js";
|
|
3
|
+
import { ControlProps } from "./inputs/shared/form.types.js";
|
|
4
|
+
import { InputVariantProps } from "./inputs/shared/input.cva.js";
|
|
5
|
+
import { FormFieldProps } from "./form-field.js";
|
|
6
6
|
import { ReactElement, Ref } from "react";
|
|
7
|
-
import { CheckboxGroupProps } from "react-aria-components";
|
|
7
|
+
import { CheckboxGroupProps as CheckboxGroupProps$1 } from "react-aria-components";
|
|
8
8
|
//#region src/components/inputs/Checkbox/CheckboxGroup.d.ts
|
|
9
|
-
interface CheckboxGroupBaseProps extends Omit<FormFieldProps, "variant">, CheckboxVariantProps, Omit<InputVariantProps, "variant">, Omit<CheckboxGroupProps, "children" | "className" | "defaultValue" | "label" | "onChange" | "value"> {
|
|
9
|
+
interface CheckboxGroupBaseProps extends Omit<FormFieldProps, "variant">, CheckboxVariantProps, Omit<InputVariantProps, "variant">, Omit<CheckboxGroupProps$1, "children" | "className" | "defaultValue" | "label" | "onChange" | "value"> {
|
|
10
10
|
ref?: Ref<HTMLDivElement>;
|
|
11
11
|
options: {
|
|
12
12
|
label: string | ReactElement;
|
|
@@ -20,9 +20,9 @@ interface CheckboxGroupBaseProps extends Omit<FormFieldProps, "variant">, Checkb
|
|
|
20
20
|
inputClassName?: string;
|
|
21
21
|
labelClassName?: string;
|
|
22
22
|
}
|
|
23
|
-
interface CheckboxGroupProps
|
|
24
|
-
type ControlledCheckboxGroupProps<TFieldValues extends FieldValues> = ControlProps<CheckboxGroupProps
|
|
23
|
+
interface CheckboxGroupProps extends CheckboxGroupBaseProps {}
|
|
24
|
+
type ControlledCheckboxGroupProps<TFieldValues extends FieldValues> = ControlProps<CheckboxGroupProps, TFieldValues>;
|
|
25
25
|
declare const CheckboxGroupComponent: <TFieldValues extends FieldValues>(props: ControlledCheckboxGroupProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
declare const CheckboxGroup
|
|
26
|
+
declare const CheckboxGroup: typeof CheckboxGroupComponent;
|
|
27
27
|
//#endregion
|
|
28
|
-
export { CheckboxGroup
|
|
28
|
+
export { CheckboxGroup, CheckboxGroupProps, ControlledCheckboxGroupProps };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { UIOverrides } from "
|
|
2
|
-
import { UIConfig } from "
|
|
3
|
-
import { FieldController } from "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { UIOverrides } from "../config/uiOverrides.context.js";
|
|
2
|
+
import { UIConfig } from "../config/uiConfig.context.js";
|
|
3
|
+
import { FieldController } from "./inputs/shared/form.binding.js";
|
|
4
|
+
import { FormFieldLabel } from "./inputs/FormField/FormFieldLabel.js";
|
|
5
|
+
import { FormField } from "./form-field.js";
|
|
6
|
+
import { inputBaseDefinition, inputSizeDefinition } from "./inputs/shared/input.cva.js";
|
|
7
|
+
import { checkboxContentRowDefinition, checkboxContentWrapperDefinition, checkboxGroupLabelDefinition } from "./inputs/Checkbox/checkbox.cva.js";
|
|
8
|
+
import { CheckboxBase } from "./checkbox.js";
|
|
9
9
|
import { clsx } from "clsx";
|
|
10
10
|
import { memo } from "react";
|
|
11
|
-
import { CheckboxGroup } from "react-aria-components";
|
|
11
|
+
import { CheckboxGroup as CheckboxGroup$1 } from "react-aria-components";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useLabel } from "react-aria";
|
|
14
14
|
import { mergeRefs } from "@react-aria/utils";
|
|
@@ -67,7 +67,7 @@ const CheckboxGroupBase = (props) => {
|
|
|
67
67
|
const hasAllOptions = allValue !== void 0 && optionValues.length > 0 && optionValues.every((optionValue) => nextValue.includes(optionValue));
|
|
68
68
|
onChange?.(hasAllOptions ? allValue : nextValue);
|
|
69
69
|
};
|
|
70
|
-
return /* @__PURE__ */ jsx(CheckboxGroup, {
|
|
70
|
+
return /* @__PURE__ */ jsx(CheckboxGroup$1, {
|
|
71
71
|
...rest,
|
|
72
72
|
...fieldProps,
|
|
73
73
|
ref,
|
|
@@ -158,6 +158,6 @@ const CheckboxGroupComponent = (props) => {
|
|
|
158
158
|
}
|
|
159
159
|
return /* @__PURE__ */ jsx(CheckboxGroupBase, { ...props });
|
|
160
160
|
};
|
|
161
|
-
const CheckboxGroup
|
|
161
|
+
const CheckboxGroup = memo(CheckboxGroupComponent);
|
|
162
162
|
//#endregion
|
|
163
|
-
export { CheckboxGroup
|
|
163
|
+
export { CheckboxGroup };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FieldValues } from "./inputs/shared/form.binding.js";
|
|
2
|
+
import { CheckboxVariantProps } from "./inputs/Checkbox/checkbox.cva.js";
|
|
3
|
+
import { FormFieldErrorProps } from "./inputs/FormField/FormFieldError.js";
|
|
4
|
+
import { ControlProps } from "./inputs/shared/form.types.js";
|
|
5
|
+
import { ComponentType, ReactElement, Ref, SVGProps } from "react";
|
|
6
|
+
import { CheckboxProps as CheckboxProps$1 } from "react-aria-components";
|
|
7
|
+
//#region src/components/inputs/Checkbox/Checkbox.d.ts
|
|
8
|
+
interface CheckboxBaseProps extends FormFieldErrorProps, CheckboxVariantProps, Omit<CheckboxProps$1, "className"> {
|
|
9
|
+
ref?: Ref<HTMLLabelElement>;
|
|
10
|
+
children: string | ReactElement;
|
|
11
|
+
hideLabel?: boolean;
|
|
12
|
+
hideError?: boolean;
|
|
13
|
+
selectedIcon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
14
|
+
indeterminateIcon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
15
|
+
isDirty?: boolean;
|
|
16
|
+
labelClassName?: string;
|
|
17
|
+
}
|
|
18
|
+
declare const CheckboxBase: (props: CheckboxBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
type CheckboxProps = CheckboxBaseProps;
|
|
20
|
+
type ControlledCheckboxProps<TFieldValues extends FieldValues> = ControlProps<CheckboxProps, TFieldValues, "isSelected">;
|
|
21
|
+
declare const CheckboxComponent: <TFieldValues extends FieldValues>(props: ControlledCheckboxProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare const Checkbox: typeof CheckboxComponent;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { Checkbox, CheckboxBase, CheckboxBaseProps, CheckboxProps, ControlledCheckboxProps };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { UIOverrides } from "
|
|
2
|
-
import { UIConfig } from "
|
|
3
|
-
import { FieldController } from "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { UIOverrides } from "../config/uiOverrides.context.js";
|
|
2
|
+
import { UIConfig } from "../config/uiConfig.context.js";
|
|
3
|
+
import { FieldController } from "./inputs/shared/form.binding.js";
|
|
4
|
+
import { FormFieldError } from "./inputs/FormField/FormFieldError.js";
|
|
5
|
+
import { checkboxContentClassName, checkboxIndicatorClass, checkboxTypography } from "./inputs/Checkbox/checkbox.cva.js";
|
|
6
|
+
import { CheckboxCheckmark } from "./inputs/Checkbox/CheckboxCheckmark.js";
|
|
7
|
+
import { CheckContent } from "./inputs/shared/CheckContent.js";
|
|
8
8
|
import { clsx } from "clsx";
|
|
9
9
|
import { memo } from "react";
|
|
10
|
-
import { Checkbox } from "react-aria-components";
|
|
10
|
+
import { Checkbox as Checkbox$1 } from "react-aria-components";
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { mergeRefs } from "@react-aria/utils";
|
|
13
13
|
//#region src/components/inputs/Checkbox/Checkbox.tsx
|
|
@@ -25,7 +25,7 @@ const CheckboxBase = (props) => {
|
|
|
25
25
|
const handleChange = (isSelected) => {
|
|
26
26
|
onChange?.(isSelected);
|
|
27
27
|
};
|
|
28
|
-
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(Checkbox, {
|
|
28
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(Checkbox$1, {
|
|
29
29
|
...rest,
|
|
30
30
|
isDisabled,
|
|
31
31
|
isInvalid: !!error,
|
|
@@ -75,6 +75,6 @@ const CheckboxComponent = (props) => {
|
|
|
75
75
|
}
|
|
76
76
|
return /* @__PURE__ */ jsx(CheckboxBase, { ...props });
|
|
77
77
|
};
|
|
78
|
-
const Checkbox
|
|
78
|
+
const Checkbox = memo(CheckboxComponent);
|
|
79
79
|
//#endregion
|
|
80
|
-
export { Checkbox
|
|
80
|
+
export { Checkbox, CheckboxBase };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { modalOverlay } from "
|
|
1
|
+
import { modalOverlay } from "./overlays/Modal/modal.cva.js";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { Dialog, DialogTrigger, Modal, ModalOverlay } from "react-aria-components";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FileUploadContainerProps } from "./fileUpload.types.js";
|
|
1
|
+
import { FileUploadContainerProps } from "./inputs/File/fileUpload.types.js";
|
|
2
2
|
//#region src/components/inputs/File/FileUploadContainer.d.ts
|
|
3
3
|
declare const FileUploadContainer: import("react").MemoExoticComponent<(props: FileUploadContainerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
4
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FieldValues } from "
|
|
2
|
-
import { DefaultFile, FileUploadBaseProps, FileUploadButtonProps, FileUploadError, FileUploadProps, FileUploadRequest, FileUploadResponse, FileUploadState } from "./fileUpload.types.js";
|
|
1
|
+
import { FieldValues } from "./inputs/shared/form.binding.js";
|
|
2
|
+
import { DefaultFile, FileUploadBaseProps, FileUploadButtonProps, FileUploadError, FileUploadProps, FileUploadRequest, FileUploadResponse, FileUploadState } from "./inputs/File/fileUpload.types.js";
|
|
3
3
|
//#region src/components/inputs/File/FileUpload.d.ts
|
|
4
4
|
declare const FileUploadComponent: <TFieldValues extends FieldValues = FieldValues>(props: FileUploadProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare const FileUpload: typeof FileUploadComponent;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { FileUpload, type FileUploadBaseProps, type FileUploadError, type FileUploadProps, type FileUploadRequest, type FileUploadState };
|
|
7
|
+
export { type DefaultFile, FileUpload, type FileUploadBaseProps, type FileUploadButtonProps, type FileUploadError, type FileUploadProps, type FileUploadRequest, type FileUploadResponse, type FileUploadState };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { UIOverrides } from "
|
|
2
|
-
import { UIConfig } from "
|
|
3
|
-
import "
|
|
4
|
-
import { FieldController } from "
|
|
5
|
-
import { FormField } from "
|
|
6
|
-
import { FileUtils } from "
|
|
7
|
-
import { FileCardList } from "./shared/FileCardList.js";
|
|
8
|
-
import { FileUploadContentEmpty } from "./shared/FileUploadContentEmpty.js";
|
|
9
|
-
import { FileUploadContent } from "./shared/FileUploadContent.js";
|
|
10
|
-
import { fileUploadDropZoneDefinition } from "./shared/fileUpload.cva.js";
|
|
1
|
+
import { UIOverrides } from "../config/uiOverrides.context.js";
|
|
2
|
+
import { UIConfig } from "../config/uiConfig.context.js";
|
|
3
|
+
import "../config/i18n.js";
|
|
4
|
+
import { FieldController } from "./inputs/shared/form.binding.js";
|
|
5
|
+
import { FormField } from "./form-field.js";
|
|
6
|
+
import { FileUtils } from "../utils/file.utils.js";
|
|
7
|
+
import { FileCardList } from "./inputs/File/shared/FileCardList.js";
|
|
8
|
+
import { FileUploadContentEmpty } from "./inputs/File/shared/FileUploadContentEmpty.js";
|
|
9
|
+
import { FileUploadContent } from "./inputs/File/shared/FileUploadContent.js";
|
|
10
|
+
import { fileUploadDropZoneDefinition } from "./inputs/File/shared/fileUpload.cva.js";
|
|
11
11
|
import { clsx } from "clsx";
|
|
12
12
|
import { memo, useCallback, useState } from "react";
|
|
13
13
|
import { DropZone } from "react-aria-components";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FormFieldErrorProps } from "./FormFieldError.js";
|
|
2
|
-
import { FormFieldHeaderProps } from "./FormFieldHeader.js";
|
|
3
|
-
import { TextInputProps } from "
|
|
1
|
+
import { FormFieldErrorProps } from "./inputs/FormField/FormFieldError.js";
|
|
2
|
+
import { FormFieldHeaderProps } from "./inputs/FormField/FormFieldHeader.js";
|
|
3
|
+
import { TextInputProps } from "./text-input.js";
|
|
4
4
|
import { FocusEventHandler, MouseEventHandler, PropsWithChildren, Ref } from "react";
|
|
5
5
|
//#region src/components/inputs/FormField/FormField.d.ts
|
|
6
6
|
interface FormFieldProps extends Omit<FormFieldHeaderProps, "className" | "labelProps">, Omit<FormFieldErrorProps, "className"> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FormFieldError } from "./FormFieldError.js";
|
|
2
|
-
import { FormFieldHeader } from "./FormFieldHeader.js";
|
|
3
|
-
import { FormFieldHelper } from "./FormFieldHelper.js";
|
|
1
|
+
import { FormFieldError } from "./inputs/FormField/FormFieldError.js";
|
|
2
|
+
import { FormFieldHeader } from "./inputs/FormField/FormFieldHeader.js";
|
|
3
|
+
import { FormFieldHelper } from "./inputs/FormField/FormFieldHelper.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/inputs/FormField/FormField.tsx
|
|
6
6
|
const FormField = ({ ref, as, label, tooltipText, helperText, helperTextId, isRequired, rightContent, isDisabled, error, errorMessageId, hideLabel, headerClassName, errorClassName, children, className, labelProps, isHeaderHidden, tabIndex, onMouseEnter, onFocusCapture }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LinkNavigationProps } from "
|
|
2
|
-
import { ButtonVariantProps } from "
|
|
1
|
+
import { LinkNavigationProps } from "./link.js";
|
|
2
|
+
import { ButtonVariantProps } from "./buttons/Button/button.cva.js";
|
|
3
3
|
import { FC, ReactElement, SVGProps } from "react";
|
|
4
4
|
import { ButtonProps } from "react-aria-components";
|
|
5
5
|
//#region src/components/buttons/IconButton/IconButton.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Tooltip } from "
|
|
2
|
-
import { Button } from "
|
|
1
|
+
import { Tooltip } from "./tooltip.js";
|
|
2
|
+
import { Button } from "./buttons/Button/Button.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/buttons/IconButton/IconButton.tsx
|
package/dist/components/{buttons/InlineIconButton/InlineIconButton.d.ts → inline-icon-button.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LinkNavigationProps } from "
|
|
2
|
-
import { ButtonVariantProps } from "
|
|
1
|
+
import { LinkNavigationProps } from "./link.js";
|
|
2
|
+
import { ButtonVariantProps } from "./buttons/Button/button.cva.js";
|
|
3
3
|
import { FC, ReactElement, RefObject, SVGProps } from "react";
|
|
4
4
|
import { ButtonProps } from "react-aria-components";
|
|
5
5
|
//#region src/components/buttons/InlineIconButton/InlineIconButton.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FieldValues } from "
|
|
2
|
-
import { InputUploadBaseProps, InputUploadProps } from "./inputUpload.types.js";
|
|
1
|
+
import { FieldValues } from "./inputs/shared/form.binding.js";
|
|
2
|
+
import { InputUploadBaseProps, InputUploadProps } from "./inputs/File/inputUpload.types.js";
|
|
3
3
|
//#region src/components/inputs/File/InputUpload.d.ts
|
|
4
4
|
declare const InputUploadComponent: <TFieldValues extends FieldValues = FieldValues>(props: InputUploadProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare const InputUpload: typeof InputUploadComponent;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { UIConfig } from "
|
|
2
|
-
import { FieldController } from "
|
|
3
|
-
import { FormField } from "
|
|
4
|
-
import { FileUtils } from "
|
|
5
|
-
import { InputUploadContent } from "./shared/InputUploadContent.js";
|
|
6
|
-
import { InputUploadFilled } from "./shared/InputUploadFilled.js";
|
|
1
|
+
import { UIConfig } from "../config/uiConfig.context.js";
|
|
2
|
+
import { FieldController } from "./inputs/shared/form.binding.js";
|
|
3
|
+
import { FormField } from "./form-field.js";
|
|
4
|
+
import { FileUtils } from "../utils/file.utils.js";
|
|
5
|
+
import { InputUploadContent } from "./inputs/File/shared/InputUploadContent.js";
|
|
6
|
+
import { InputUploadFilled } from "./inputs/File/shared/InputUploadFilled.js";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
8
|
import { memo, useState } from "react";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FieldValues } from "../../shared/form.binding.js";
|
|
2
2
|
import { ControlProps } from "../../shared/form.types.js";
|
|
3
3
|
import { InputVariantProps } from "../../shared/input.cva.js";
|
|
4
|
-
import { FormFieldProps } from "
|
|
4
|
+
import { FormFieldProps } from "../../../form-field.js";
|
|
5
5
|
import { DatePickerTodayIcon, DatePickerTodayIconButtonComponent, DatePickerTodayIconButtonSize, DatePickerTodayIconPlacement } from "../shared/datePicker.types.js";
|
|
6
6
|
import { DatePickerInputHandle } from "../shared/DatePickerInput.js";
|
|
7
7
|
import { FocusEvent, Ref } from "react";
|