@povio/ui 2.1.22 → 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/assets/icons/{ViewOff.d.ts → Account.d.ts} +1 -1
- package/dist/{ArrowDropDown.js → assets/icons/ArrowDropDown.js} +1 -1
- package/dist/{ArrowDropUp.js → assets/icons/ArrowDropUp.js} +1 -1
- package/dist/{ArrowLeft.js → assets/icons/ArrowLeft.js} +1 -1
- package/dist/{ArrowRight.js → assets/icons/ArrowRight.js} +1 -1
- package/dist/assets/icons/Board.d.ts +2 -0
- package/dist/assets/icons/Calendar.js +15 -0
- package/dist/{Check.js → assets/icons/Check.js} +1 -1
- package/dist/assets/icons/CheckCircle.js +13 -0
- package/dist/{ChevronDown.js → assets/icons/ChevronDown.js} +1 -1
- package/dist/{ChevronUp.js → assets/icons/ChevronUp.js} +1 -1
- package/dist/assets/icons/Clock.js +13 -0
- package/dist/assets/icons/DateTime.js +16 -0
- package/dist/assets/icons/DragIndicator.d.ts +2 -0
- package/dist/{Drag.js → assets/icons/DragIndicator.js} +2 -2
- package/dist/assets/icons/{Drag.d.ts → Edit.d.ts} +1 -1
- package/dist/assets/icons/Emoji.d.ts +2 -0
- package/dist/assets/icons/File.js +15 -0
- package/dist/assets/icons/{View.d.ts → Grid.d.ts} +1 -1
- package/dist/{HighlightOn.js → assets/icons/HighlightOn.js} +1 -1
- package/dist/assets/icons/Home.d.ts +2 -0
- package/dist/assets/icons/Home.js +13 -0
- package/dist/assets/icons/Image.d.ts +2 -0
- package/dist/assets/icons/ImageError.d.ts +2 -0
- package/dist/{Info.js → assets/icons/Info.js} +2 -2
- package/dist/assets/icons/Loader.d.ts +2 -0
- package/dist/assets/icons/MapPin.d.ts +2 -0
- package/dist/assets/icons/Menu.js +13 -0
- package/dist/assets/icons/Minus.d.ts +2 -0
- package/dist/assets/icons/MoreHoriz.d.ts +2 -0
- package/dist/assets/icons/Pause.d.ts +2 -0
- package/dist/assets/icons/Plus.d.ts +2 -0
- package/dist/assets/icons/Retry.d.ts +2 -0
- package/dist/assets/icons/Search.d.ts +2 -0
- package/dist/assets/icons/Share.d.ts +2 -0
- package/dist/assets/icons/Slash.d.ts +2 -0
- package/dist/{TextColor.js → assets/icons/TextColor.js} +1 -1
- package/dist/assets/icons/Trash.d.ts +2 -0
- package/dist/assets/icons/User.d.ts +2 -0
- package/dist/assets/icons/Visibility.d.ts +2 -0
- package/dist/assets/icons/Visibility.js +13 -0
- package/dist/assets/icons/VisibilityOff.d.ts +2 -0
- package/dist/assets/icons/VisibilityOff.js +13 -0
- package/dist/assets/icons/WarningOutlined.d.ts +2 -0
- package/dist/{translation.js → assets/locales/en/translation.json.js} +0 -8
- package/dist/{translation2.js → assets/locales/sl/translation.json.js} +0 -7
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +15 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +111 -0
- package/dist/components/Breadcrumbs/breadcrumbs.cva.d.ts +19 -0
- package/dist/components/Breadcrumbs/breadcrumbs.cva.js +22 -0
- package/dist/components/Menu/Menu.d.ts +2 -3
- 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} +5 -5
- package/dist/{MenuPopover.js → components/Menu/MenuPopover.js} +3 -3
- package/dist/{menu.cva.js → components/Menu/menu.cva.js} +2 -3
- 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} +5 -5
- 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} +15 -15
- 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} +12 -12
- 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} +9 -9
- package/dist/{YearPicker.js → components/inputs/DateTime/shared/YearPicker.js} +3 -3
- package/dist/{FileUpload.js → components/inputs/File/FileUpload.js} +11 -11
- package/dist/{InputUpload.js → components/inputs/File/InputUpload.js} +7 -7
- package/dist/components/inputs/File/fileUpload.types.d.ts +1 -1
- 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} +9 -9
- 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} +8 -8
- package/dist/{PasswordInput.js → components/inputs/Input/PasswordInput/PasswordInput.js} +5 -5
- package/dist/{TextArea.js → components/inputs/Input/TextArea/TextArea.js} +10 -10
- package/dist/{TextInput.js → components/inputs/Input/TextInput/TextInput.js} +8 -8
- 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/components/inputs/Inputs/InputItem.d.ts +1 -1
- 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 -12
- 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} +4 -4
- package/dist/{SelectInput.js → components/inputs/Selection/shared/SelectInput.js} +9 -9
- 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} +4 -4
- package/dist/{SelectListBoxItemSelectAll.js → components/inputs/Selection/shared/SelectListBoxItemSelectAll.js} +3 -3
- package/dist/{SelectListBoxLoadingItem.js → components/inputs/Selection/shared/SelectListBoxLoadingItem.js} +4 -4
- package/dist/{SelectListBoxSelectionBar.js → components/inputs/Selection/shared/SelectListBoxSelectionBar.js} +2 -2
- package/dist/{SelectMobile.js → components/inputs/Selection/shared/SelectMobile.js} +7 -7
- 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} +4 -4
- 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} +33 -33
- package/dist/components/inputs/shared/label.cva.d.ts +2 -2
- package/dist/{label.cva.js → components/inputs/shared/label.cva.js} +2 -2
- package/dist/components/navigation/Accordion/Accordion.d.ts +3 -0
- package/dist/components/navigation/Accordion/Accordion.js +32 -0
- package/dist/components/navigation/Accordion/AccordionItem.d.ts +2 -0
- package/dist/components/navigation/Accordion/AccordionItem.js +62 -0
- package/dist/components/navigation/Accordion/accordion.cva.d.ts +45 -0
- package/dist/components/navigation/Accordion/accordion.cva.js +97 -0
- package/dist/components/navigation/Accordion/accordion.types.d.ts +52 -0
- package/dist/components/navigation/Stepper/Stepper.d.ts +2 -0
- package/dist/components/navigation/Stepper/Stepper.js +32 -0
- package/dist/components/navigation/Stepper/StepperItem.d.ts +2 -0
- package/dist/components/navigation/Stepper/StepperItem.js +52 -0
- package/dist/components/navigation/Stepper/StepperSeparator.d.ts +5 -0
- package/dist/components/navigation/Stepper/StepperSeparator.js +10 -0
- package/dist/components/navigation/Stepper/stepper.cva.d.ts +37 -0
- package/dist/components/navigation/Stepper/stepper.cva.js +93 -0
- package/dist/components/navigation/Stepper/stepper.types.d.ts +41 -0
- package/dist/{ActionModal.js → components/overlays/ActionModal/ActionModal.js} +4 -4
- package/dist/{BottomSheet.js → components/overlays/BottomSheet/BottomSheet.js} +8 -8
- 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} +8 -7
- package/dist/components/overlays/Tooltip/TooltipEllipsis.d.ts +3 -2
- package/dist/{TooltipEllipsis.js → components/overlays/Tooltip/TooltipEllipsis.js} +2 -1
- package/dist/{tooltip.cva.js → components/overlays/Tooltip/tooltip.cva.js} +1 -1
- package/dist/{Segment.js → components/segment/Segment.js} +5 -5
- 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} +10 -10
- 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} +2 -2
- 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.d.ts +0 -15
- 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/config/uiStyle.context.d.ts +31 -0
- 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.d.ts +13 -7
- package/dist/index.js +138 -136
- 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/dist/types/error-handling.d.ts +6 -0
- package/dist/types/react-query.d.ts +1 -1
- package/package.json +2 -3
- package/dist/AclGuard.js +0 -12
- package/dist/AuthGuard.js +0 -22
- package/dist/Button.js +0 -54
- package/dist/ButtonContent.js +0 -28
- package/dist/Calendar.js +0 -15
- package/dist/Can.js +0 -13
- package/dist/CheckCircle.js +0 -13
- package/dist/Clock.js +0 -13
- package/dist/DateTime.js +0 -18
- package/dist/File.js +0 -15
- package/dist/IconButton.js +0 -12
- package/dist/Menu.js +0 -13
- package/dist/MenuDesktop.js +0 -54
- package/dist/PillButton.js +0 -37
- package/dist/Tag.js +0 -42
- package/dist/View.js +0 -13
- package/dist/ViewOff.js +0 -13
- package/dist/ability.context.js +0 -35
- package/dist/auth.context.js +0 -37
- package/dist/auth.d.ts +0 -6
- package/dist/auth.js +0 -6
- package/dist/buttonContent.cva.js +0 -10
- package/dist/error-handling.js +0 -99
- package/dist/i18n.js +0 -8
- package/dist/react.js +0 -6
- package/dist/rest-interceptor.js +0 -22
- package/dist/utils/vendor/acl/AclGuard.d.ts +0 -8
- package/dist/utils/vendor/acl/Can.d.ts +0 -9
- package/dist/utils/vendor/acl/ability.context.d.ts +0 -15
- package/dist/utils/vendor/acl/appAbility.types.d.ts +0 -3
- package/dist/utils/vendor/auth/AuthGuard.d.ts +0 -6
- package/dist/utils/vendor/auth/auth.context.d.ts +0 -22
- package/dist/utils/vendor/error-handling.d.ts +0 -21
- package/dist/utils/vendor/rest-client.types.d.ts +0 -23
- package/dist/utils/vendor/rest-interceptor.d.ts +0 -8
- 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/{Bold.js → assets/icons/Bold.js} +0 -0
- package/dist/{BulletedList.js → assets/icons/BulletedList.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/{ChevronLeft.js → assets/icons/ChevronLeft.js} +0 -0
- package/dist/{ChevronRight.js → assets/icons/ChevronRight.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/{Close.js → assets/icons/Close.js} +0 -0
- package/dist/{Highlight.js → assets/icons/Highlight.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/{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/{WarningFilled.js → assets/icons/WarningFilled.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} +1 -1
- /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/{outline.clsx.js → components/outline.clsx.js} +0 -0
- /package/dist/{modal.cva.js → components/overlays/Modal/modal.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
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
const accordionCva = cva("flex w-full flex-col", {
|
|
3
|
+
variants: {
|
|
4
|
+
variant: {
|
|
5
|
+
filled: "gap-1",
|
|
6
|
+
outlined: ""
|
|
7
|
+
},
|
|
8
|
+
singleItem: {
|
|
9
|
+
true: "",
|
|
10
|
+
false: ""
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
variant: "filled",
|
|
15
|
+
singleItem: false
|
|
16
|
+
},
|
|
17
|
+
compoundVariants: [{
|
|
18
|
+
variant: "outlined",
|
|
19
|
+
singleItem: false,
|
|
20
|
+
className: "rounded-global-rounding-s border border-elevation-outline-default-1"
|
|
21
|
+
}]
|
|
22
|
+
});
|
|
23
|
+
const accordionItemCva = cva("flex w-full flex-col", {
|
|
24
|
+
variants: {
|
|
25
|
+
variant: {
|
|
26
|
+
filled: "rounded-accordion-rounding-filled bg-elevation-fill-default-2",
|
|
27
|
+
outlined: ""
|
|
28
|
+
},
|
|
29
|
+
singleItem: {
|
|
30
|
+
true: "",
|
|
31
|
+
false: ""
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
defaultVariants: {
|
|
35
|
+
variant: "filled",
|
|
36
|
+
singleItem: false
|
|
37
|
+
},
|
|
38
|
+
compoundVariants: [{
|
|
39
|
+
singleItem: true,
|
|
40
|
+
variant: "outlined",
|
|
41
|
+
className: "border-elevation-outline-default-1 border-b"
|
|
42
|
+
}, {
|
|
43
|
+
singleItem: false,
|
|
44
|
+
variant: "outlined",
|
|
45
|
+
className: "not-last:border-elevation-outline-default-1 not-last:border-b"
|
|
46
|
+
}]
|
|
47
|
+
});
|
|
48
|
+
const accordionTriggerCva = cva([
|
|
49
|
+
"group flex w-full items-center gap-accordion-gap-content-to-arrow",
|
|
50
|
+
"px-accordion-side-accordion py-accordion-height-accordion",
|
|
51
|
+
"outline-none focus-visible:ring-2 focus-visible:ring-interactive-contained-primary-focus"
|
|
52
|
+
], {
|
|
53
|
+
variants: {
|
|
54
|
+
variant: {
|
|
55
|
+
outlined: "rounded-accordion-rounding-outlined hover:bg-elevation-fill-default-2",
|
|
56
|
+
filled: "rounded-accordion-rounding-filled bg-elevation-fill-default-2 hover:bg-elevation-fill-default-3"
|
|
57
|
+
},
|
|
58
|
+
actionPosition: {
|
|
59
|
+
left: "flex-row-reverse",
|
|
60
|
+
right: "flex-row"
|
|
61
|
+
},
|
|
62
|
+
disabled: { true: "opacity-50" }
|
|
63
|
+
},
|
|
64
|
+
defaultVariants: {
|
|
65
|
+
variant: "filled",
|
|
66
|
+
actionPosition: "right"
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
const accordionHeadingCva = cva("flex flex-1 items-center justify-between gap-accordion-gap-content-to-arrow", {
|
|
70
|
+
variants: {},
|
|
71
|
+
defaultVariants: {}
|
|
72
|
+
});
|
|
73
|
+
const accordionHeadingTitleCva = cva("flex-1 text-left text-text-default-1", {
|
|
74
|
+
variants: {},
|
|
75
|
+
defaultVariants: {}
|
|
76
|
+
});
|
|
77
|
+
const accordionHeadingSubtitleCva = cva("flex-1 text-left text-text-default-2", {
|
|
78
|
+
variants: {},
|
|
79
|
+
defaultVariants: {}
|
|
80
|
+
});
|
|
81
|
+
const accordionChevronCva = cva("size-6 shrink-0 text-interactive-text-secondary-idle transition-transform duration-200", {
|
|
82
|
+
variants: { isExpanded: {
|
|
83
|
+
true: "rotate-180",
|
|
84
|
+
false: "rotate-0"
|
|
85
|
+
} },
|
|
86
|
+
defaultVariants: { isExpanded: false }
|
|
87
|
+
});
|
|
88
|
+
const accordionIconCva = cva("size-6 shrink-0 text-text-default-3", {
|
|
89
|
+
variants: {},
|
|
90
|
+
defaultVariants: {}
|
|
91
|
+
});
|
|
92
|
+
const accordionPanelCva = cva("", { variants: { isExpanded: { true: "px-accordion-side-accordion pt-0 pb-accordion-height-accordion" } } });
|
|
93
|
+
const accordionPanelContentCva = cva("py-accordion-height-content", {
|
|
94
|
+
variants: {},
|
|
95
|
+
defaultVariants: {}
|
|
96
|
+
});
|
|
97
|
+
export { accordionChevronCva, accordionCva, accordionHeadingCva, accordionHeadingSubtitleCva, accordionHeadingTitleCva, accordionIconCva, accordionItemCva, accordionPanelContentCva, accordionPanelCva, accordionTriggerCva };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { FC, ReactNode, SVGProps } from 'react';
|
|
2
|
+
import { Key } from 'react-aria-components';
|
|
3
|
+
export interface AccordionItem {
|
|
4
|
+
/** Unique identifier for the item */
|
|
5
|
+
id: Key;
|
|
6
|
+
/** Main heading text */
|
|
7
|
+
heading: string;
|
|
8
|
+
/** Optional subheading text */
|
|
9
|
+
subheading?: string;
|
|
10
|
+
/** Content displayed when expanded */
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
/** Optional leading icon */
|
|
13
|
+
icon?: FC<SVGProps<SVGSVGElement>>;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface AccordionProps {
|
|
17
|
+
/** Array of accordion items */
|
|
18
|
+
items: AccordionItem[];
|
|
19
|
+
/** Visual style variant */
|
|
20
|
+
variant?: "filled" | "outlined";
|
|
21
|
+
/** Position of the expand/collapse chevron */
|
|
22
|
+
actionPosition?: "left" | "right";
|
|
23
|
+
/** Allow multiple items to be expanded simultaneously */
|
|
24
|
+
allowsMultipleExpanded?: boolean;
|
|
25
|
+
/** Controlled expanded keys */
|
|
26
|
+
expandedKeys?: Iterable<Key>;
|
|
27
|
+
/** Default expanded keys (uncontrolled) */
|
|
28
|
+
defaultExpandedKeys?: Iterable<Key>;
|
|
29
|
+
/** Callback when expansion state changes */
|
|
30
|
+
onExpandedChange?: (keys: Set<Key>) => void;
|
|
31
|
+
/** Additional CSS class */
|
|
32
|
+
className?: string;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface AccordionItemProps {
|
|
36
|
+
/** Unique identifier for the item */
|
|
37
|
+
id: Key;
|
|
38
|
+
/** Main heading text */
|
|
39
|
+
heading: string;
|
|
40
|
+
/** Optional subheading text */
|
|
41
|
+
subheading?: string;
|
|
42
|
+
/** Content displayed when expanded */
|
|
43
|
+
children: ReactNode;
|
|
44
|
+
/** Optional leading icon */
|
|
45
|
+
icon?: FC<SVGProps<SVGSVGElement>>;
|
|
46
|
+
/** Visual style variant */
|
|
47
|
+
variant?: "filled" | "outlined";
|
|
48
|
+
/** Position of the expand/collapse chevron */
|
|
49
|
+
actionPosition?: "left" | "right";
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
isSingle?: boolean;
|
|
52
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
2
|
+
import { stepperCva } from "./stepper.cva.js";
|
|
3
|
+
import { StepperItem } from "./StepperItem.js";
|
|
4
|
+
import { StepperSeparator } from "./StepperSeparator.js";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Fragment as Fragment$1 } from "react";
|
|
7
|
+
const Stepper = ({ steps, currentStep, orientation = "horizontal", contentOrientation = "horizontal", iconsOnly, titlesOnly, onStepClick, className }) => {
|
|
8
|
+
return /* @__PURE__ */ jsx("div", {
|
|
9
|
+
className: (UIStyle.useConfig()?.stepper?.cva ?? stepperCva)({
|
|
10
|
+
orientation,
|
|
11
|
+
className
|
|
12
|
+
}),
|
|
13
|
+
role: "group",
|
|
14
|
+
"aria-label": "Progress",
|
|
15
|
+
children: steps.map((step, index) => {
|
|
16
|
+
const status = index < currentStep ? "completed" : index === currentStep ? "active" : "todo";
|
|
17
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(StepperItem, {
|
|
18
|
+
step,
|
|
19
|
+
stepNumber: index + 1,
|
|
20
|
+
status,
|
|
21
|
+
contentOrientation,
|
|
22
|
+
iconsOnly,
|
|
23
|
+
titlesOnly,
|
|
24
|
+
onPress: onStepClick && status === "completed" ? () => onStepClick(index) : void 0
|
|
25
|
+
}), index < steps.length - 1 && /* @__PURE__ */ jsx(StepperSeparator, {
|
|
26
|
+
orientation,
|
|
27
|
+
contentOrientation
|
|
28
|
+
})] }, step.id);
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
export { Stepper };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { CheckIcon } from "../../../assets/icons/Check.js";
|
|
2
|
+
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
3
|
+
import { Typography } from "../../text/Typography/Typography.js";
|
|
4
|
+
import { stepperIconCva, stepperItemCva, stepperNumberCva, stepperSubtextCva, stepperTitleCva } from "./stepper.cva.js";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
|
+
import { Button } from "react-aria-components";
|
|
8
|
+
const StepperItem = ({ step, stepNumber, status, contentOrientation, iconsOnly, titlesOnly, onPress }) => {
|
|
9
|
+
const uiStyle = UIStyle.useConfig();
|
|
10
|
+
const stepperItemCva$1 = uiStyle?.stepper?.itemCva ?? stepperItemCva;
|
|
11
|
+
const stepperIconCva$1 = uiStyle?.stepper?.iconCva ?? stepperIconCva;
|
|
12
|
+
const stepperNumberCva$1 = uiStyle?.stepper?.numberCva ?? stepperNumberCva;
|
|
13
|
+
const stepperTitleCva$1 = uiStyle?.stepper?.titleCva ?? stepperTitleCva;
|
|
14
|
+
const stepperSubtextCva$1 = uiStyle?.stepper?.subtextCva ?? stepperSubtextCva;
|
|
15
|
+
const showTitle = !iconsOnly;
|
|
16
|
+
const showSubtext = !iconsOnly && !titlesOnly && !!step.subtext;
|
|
17
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
18
|
+
className: stepperIconCva$1({ status }),
|
|
19
|
+
children: status === "completed" ? /* @__PURE__ */ jsx(CheckIcon, { className: "size-5 text-interactive-contained-primary-on-idle" }) : /* @__PURE__ */ jsx(Typography, {
|
|
20
|
+
className: stepperNumberCva$1({ status }),
|
|
21
|
+
variant: "prominent-1",
|
|
22
|
+
size: "label-3",
|
|
23
|
+
children: stepNumber
|
|
24
|
+
})
|
|
25
|
+
}), showTitle && /* @__PURE__ */ jsxs("div", {
|
|
26
|
+
className: "flex flex-col gap-stepper-gap-text-to-subtext",
|
|
27
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
28
|
+
className: stepperTitleCva$1({ status }),
|
|
29
|
+
size: "label-2",
|
|
30
|
+
variant: "default",
|
|
31
|
+
children: step.title
|
|
32
|
+
}), showSubtext && /* @__PURE__ */ jsx(Typography, {
|
|
33
|
+
className: stepperSubtextCva$1({ status }),
|
|
34
|
+
size: "label-3",
|
|
35
|
+
variant: "default",
|
|
36
|
+
children: step.subtext
|
|
37
|
+
})]
|
|
38
|
+
})] });
|
|
39
|
+
const className = stepperItemCva$1({ contentOrientation });
|
|
40
|
+
if (onPress) return /* @__PURE__ */ jsx(Button, {
|
|
41
|
+
onPress,
|
|
42
|
+
className: clsx("group cursor-pointer", className),
|
|
43
|
+
"aria-current": status === "active" ? "step" : void 0,
|
|
44
|
+
children: content
|
|
45
|
+
});
|
|
46
|
+
return /* @__PURE__ */ jsx("div", {
|
|
47
|
+
className,
|
|
48
|
+
"aria-current": status === "active" ? "step" : void 0,
|
|
49
|
+
children: content
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
export { StepperItem };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { StepperSeparatorVariantProps } from './stepper.cva';
|
|
2
|
+
interface StepperSeparatorProps extends StepperSeparatorVariantProps {
|
|
3
|
+
}
|
|
4
|
+
export declare const StepperSeparator: ({ orientation, contentOrientation }: StepperSeparatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
2
|
+
import { stepperSeparatorCva } from "./stepper.cva.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
const StepperSeparator = ({ orientation, contentOrientation }) => {
|
|
5
|
+
return /* @__PURE__ */ jsx("div", { className: (UIStyle.useConfig()?.stepper?.separatorCva ?? stepperSeparatorCva)({
|
|
6
|
+
orientation,
|
|
7
|
+
contentOrientation
|
|
8
|
+
}) });
|
|
9
|
+
};
|
|
10
|
+
export { StepperSeparator };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const stepperCva: (props?: ({
|
|
3
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export interface StepperVariantProps extends VariantProps<typeof stepperCva> {
|
|
6
|
+
}
|
|
7
|
+
export declare const stepperItemCva: (props?: ({
|
|
8
|
+
contentOrientation?: "horizontal" | "vertical" | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
+
export interface StepperItemVariantProps extends VariantProps<typeof stepperItemCva> {
|
|
11
|
+
}
|
|
12
|
+
export declare const stepperIconCva: (props?: ({
|
|
13
|
+
status?: "completed" | "active" | "todo" | null | undefined;
|
|
14
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
15
|
+
export interface StepperIconVariantProps extends VariantProps<typeof stepperIconCva> {
|
|
16
|
+
}
|
|
17
|
+
export declare const stepperNumberCva: (props?: ({
|
|
18
|
+
status?: "completed" | "active" | "todo" | null | undefined;
|
|
19
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
20
|
+
export interface StepperNumberVariantProps extends VariantProps<typeof stepperNumberCva> {
|
|
21
|
+
}
|
|
22
|
+
export declare const stepperTitleCva: (props?: ({
|
|
23
|
+
status?: "completed" | "active" | "todo" | null | undefined;
|
|
24
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
25
|
+
export interface StepperTitleVariantProps extends VariantProps<typeof stepperTitleCva> {
|
|
26
|
+
}
|
|
27
|
+
export declare const stepperSubtextCva: (props?: ({
|
|
28
|
+
status?: "completed" | "active" | "todo" | null | undefined;
|
|
29
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
30
|
+
export interface StepperSubtextVariantProps extends VariantProps<typeof stepperSubtextCva> {
|
|
31
|
+
}
|
|
32
|
+
export declare const stepperSeparatorCva: (props?: ({
|
|
33
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
34
|
+
contentOrientation?: "horizontal" | "vertical" | null | undefined;
|
|
35
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
36
|
+
export interface StepperSeparatorVariantProps extends VariantProps<typeof stepperSeparatorCva> {
|
|
37
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
const stepperCva = cva("", {
|
|
3
|
+
variants: { orientation: {
|
|
4
|
+
horizontal: "flex flex-row items-center gap-stepper-gap-step-to-line-horizontal",
|
|
5
|
+
vertical: "inline-flex flex-col gap-stepper-gap-step-to-line-vertical"
|
|
6
|
+
} },
|
|
7
|
+
defaultVariants: { orientation: "horizontal" }
|
|
8
|
+
});
|
|
9
|
+
const stepperItemCva = cva("flex shrink-0", {
|
|
10
|
+
variants: { contentOrientation: {
|
|
11
|
+
horizontal: "flex-row items-center gap-stepper-gap-icon-to-text-horizontal text-left",
|
|
12
|
+
vertical: "flex-col items-center gap-stepper-gap-icon-to-text-vertical text-center"
|
|
13
|
+
} },
|
|
14
|
+
defaultVariants: { contentOrientation: "horizontal" }
|
|
15
|
+
});
|
|
16
|
+
const stepperIconCva = cva("inline-flex size-5 shrink-0 items-center justify-center rounded-stepper-rounding-icon", {
|
|
17
|
+
variants: { status: {
|
|
18
|
+
completed: [
|
|
19
|
+
"border border-interactive-outlined-primary-outline-idle border-solid bg-interactive-contained-primary-idle",
|
|
20
|
+
"group-hover:border-interactive-outlined-primary-outline-hover group-hover:bg-interactive-contained-primary-hover",
|
|
21
|
+
"group-pressed:border-interactive-outlined-primary-outline-pressed group-pressed:bg-interactive-contained-primary-pressed"
|
|
22
|
+
],
|
|
23
|
+
active: "border border-interactive-outlined-primary-on-idle border-solid bg-interactive-outlined-primary-idle",
|
|
24
|
+
todo: "border border-interactive-outlined-primary-outline-disabled border-solid bg-interactive-outlined-primary-disabled"
|
|
25
|
+
} },
|
|
26
|
+
defaultVariants: { status: "todo" }
|
|
27
|
+
});
|
|
28
|
+
const stepperNumberCva = cva("text-center align-middle", {
|
|
29
|
+
variants: { status: {
|
|
30
|
+
completed: "",
|
|
31
|
+
active: "text-interactive-outlined-primary-on-idle",
|
|
32
|
+
todo: "text-interactive-outlined-primary-on-disabled"
|
|
33
|
+
} },
|
|
34
|
+
defaultVariants: { status: "todo" }
|
|
35
|
+
});
|
|
36
|
+
const stepperTitleCva = cva("", {
|
|
37
|
+
variants: { status: {
|
|
38
|
+
completed: [
|
|
39
|
+
"text-interactive-text-secondary-idle",
|
|
40
|
+
"group-hover:text-interactive-text-secondary-hover",
|
|
41
|
+
"group-pressed:text-interactive-text-secondary-pressed"
|
|
42
|
+
],
|
|
43
|
+
active: "text-interactive-text-primary-idle",
|
|
44
|
+
todo: "text-interactive-text-secondary-disabled"
|
|
45
|
+
} },
|
|
46
|
+
defaultVariants: { status: "todo" }
|
|
47
|
+
});
|
|
48
|
+
const stepperSubtextCva = cva("", {
|
|
49
|
+
variants: { status: {
|
|
50
|
+
completed: [
|
|
51
|
+
"text-interactive-text-secondary-idle",
|
|
52
|
+
"group-hover:text-interactive-text-secondary-hover",
|
|
53
|
+
"group-pressed:text-interactive-text-secondary-pressed"
|
|
54
|
+
],
|
|
55
|
+
active: "text-interactive-text-secondary-idle",
|
|
56
|
+
todo: "text-interactive-text-secondary-disabled"
|
|
57
|
+
} },
|
|
58
|
+
defaultVariants: { status: "todo" }
|
|
59
|
+
});
|
|
60
|
+
const stepperSeparatorCva = cva("bg-elevation-outline-default-1", {
|
|
61
|
+
variants: {
|
|
62
|
+
orientation: {
|
|
63
|
+
horizontal: "h-px min-w-4 flex-1",
|
|
64
|
+
vertical: "min-h-16 w-px"
|
|
65
|
+
},
|
|
66
|
+
contentOrientation: {
|
|
67
|
+
horizontal: "",
|
|
68
|
+
vertical: ""
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
defaultVariants: {
|
|
72
|
+
orientation: "horizontal",
|
|
73
|
+
contentOrientation: "horizontal"
|
|
74
|
+
},
|
|
75
|
+
compoundVariants: [
|
|
76
|
+
{
|
|
77
|
+
orientation: "horizontal",
|
|
78
|
+
contentOrientation: "vertical",
|
|
79
|
+
className: "mt-stepper-horizontal-line-top self-start"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
orientation: "vertical",
|
|
83
|
+
contentOrientation: "vertical",
|
|
84
|
+
className: "self-center"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
orientation: "vertical",
|
|
88
|
+
contentOrientation: "horizontal",
|
|
89
|
+
className: "ml-stepper-vertical-line-side"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
});
|
|
93
|
+
export { stepperCva, stepperIconCva, stepperItemCva, stepperNumberCva, stepperSeparatorCva, stepperSubtextCva, stepperTitleCva };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { StepperItemVariantProps, StepperVariantProps } from './stepper.cva';
|
|
2
|
+
/** A single step definition passed by the consumer. */
|
|
3
|
+
export interface StepItem {
|
|
4
|
+
/** Unique key for React rendering. */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Step title text. Rendered unless iconsOnly is true. */
|
|
7
|
+
title: string;
|
|
8
|
+
/** Optional subtext beneath the title. Only rendered in default (full) mode. */
|
|
9
|
+
subtext?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Derived step status, computed from currentStep index. */
|
|
12
|
+
export type StepStatus = "completed" | "active" | "todo";
|
|
13
|
+
/** Public props for the Stepper component. */
|
|
14
|
+
export interface StepperProps extends StepperVariantProps, StepperItemVariantProps {
|
|
15
|
+
/** Array of step definitions. Order determines step numbering (1-based). */
|
|
16
|
+
steps: StepItem[];
|
|
17
|
+
/**
|
|
18
|
+
* The current active step index (0-based).
|
|
19
|
+
* - Steps at index < currentStep are "completed"
|
|
20
|
+
* - Step at index === currentStep is "active"
|
|
21
|
+
* - Steps at index > currentStep are "todo"
|
|
22
|
+
*/
|
|
23
|
+
currentStep: number;
|
|
24
|
+
/** When true, only step indicator icons are rendered (no title or subtext). */
|
|
25
|
+
iconsOnly?: boolean;
|
|
26
|
+
/** When true, step indicator icons and titles are rendered (no subtext). Takes no effect if iconsOnly is true. */
|
|
27
|
+
titlesOnly?: boolean;
|
|
28
|
+
/** Callback when a completed step is clicked. Receives the 0-based step index. */
|
|
29
|
+
onStepClick?: (stepIndex: number) => void;
|
|
30
|
+
/** Optional className for the root container. */
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
33
|
+
/** Internal props for StepperItem sub-component. */
|
|
34
|
+
export interface StepperItemProps extends StepperItemVariantProps {
|
|
35
|
+
step: StepItem;
|
|
36
|
+
stepNumber: number;
|
|
37
|
+
status: StepStatus;
|
|
38
|
+
iconsOnly?: boolean;
|
|
39
|
+
titlesOnly?: boolean;
|
|
40
|
+
onPress?: () => void;
|
|
41
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Typography } from "
|
|
2
|
-
import { Button } from "
|
|
3
|
-
import { Modal } from "
|
|
1
|
+
import { Typography } from "../../text/Typography/Typography.js";
|
|
2
|
+
import { Button } from "../../buttons/Button/Button.js";
|
|
3
|
+
import { Modal } from "../Modal/Modal.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
var textAlignClassMap = {
|
|
@@ -8,7 +8,7 @@ var textAlignClassMap = {
|
|
|
8
8
|
center: "text-center",
|
|
9
9
|
right: "text-right"
|
|
10
10
|
};
|
|
11
|
-
const ActionModal = ({ heading, description, primaryAction, secondaryAction, buttonSize = "m", textAlign = "left", modalClassName
|
|
11
|
+
const ActionModal = ({ heading, description, primaryAction, secondaryAction, buttonSize = "m", textAlign = "left", modalClassName, ...modalProps }) => {
|
|
12
12
|
const textAlignClass = textAlignClassMap[textAlign];
|
|
13
13
|
return /* @__PURE__ */ jsxs(Modal, {
|
|
14
14
|
modalClassName: clsx("w-modal", modalClassName),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { react_exports } from "
|
|
2
|
-
import { DomUtils } from "
|
|
1
|
+
import { motion, react_exports } from "../../../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";
|
|
2
|
+
import { DomUtils } from "../../../utils/dom.utils.js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
|
-
import { Dialog, DialogTrigger, Modal, ModalOverlay } from "react-aria-components";
|
|
6
5
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
6
|
+
import { Dialog, DialogTrigger, Modal, ModalOverlay } from "react-aria-components";
|
|
7
7
|
import { useResizeObserver, useViewportSize } from "@react-aria/utils";
|
|
8
|
-
var MotionModal =
|
|
9
|
-
var MotionModalOverlay =
|
|
8
|
+
var MotionModal = motion.create(Modal);
|
|
9
|
+
var MotionModalOverlay = motion.create(ModalOverlay);
|
|
10
10
|
var inertiaTransition = {
|
|
11
11
|
type: "inertia",
|
|
12
12
|
bounceStiffness: 300,
|
|
@@ -66,7 +66,7 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = fa
|
|
|
66
66
|
style: { height: viewport.height },
|
|
67
67
|
ref: overlayRef,
|
|
68
68
|
shouldCloseOnInteractOutside,
|
|
69
|
-
children: [/* @__PURE__ */ jsx(
|
|
69
|
+
children: [/* @__PURE__ */ jsx(motion.div, {
|
|
70
70
|
className: "pointer-events-none absolute inset-0 bg-support-overlay",
|
|
71
71
|
animate: { opacity: 1 },
|
|
72
72
|
initial: { opacity: 0 },
|
|
@@ -154,7 +154,7 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = fa
|
|
|
154
154
|
/* @__PURE__ */ jsx("div", { className: "absolute top-full h-screen w-full bg-elevation-fill-default-1" })
|
|
155
155
|
]
|
|
156
156
|
}),
|
|
157
|
-
footer && /* @__PURE__ */ jsx(
|
|
157
|
+
footer && /* @__PURE__ */ jsx(motion.div, {
|
|
158
158
|
ref: footerRef,
|
|
159
159
|
className: clsx("pointer-events-auto absolute z-50 w-full bg-elevation-fill-default-2", "top-(--visual-viewport-height) left-0 translate-y-[calc(-100%-var(--scroll-position,0px))]"),
|
|
160
160
|
children: footer
|
|
@@ -164,7 +164,7 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = fa
|
|
|
164
164
|
})]
|
|
165
165
|
}) });
|
|
166
166
|
};
|
|
167
|
-
const BottomSheet = ({ isOpen, portalContainerRef, onOpenChange, trigger, children
|
|
167
|
+
const BottomSheet = ({ isOpen, portalContainerRef, onOpenChange, trigger, children, ...rest }) => {
|
|
168
168
|
const [isSheetOpen, setIsSheetOpen] = useState(!!isOpen);
|
|
169
169
|
const hasTrigger = !!trigger;
|
|
170
170
|
useEffect(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CloseIcon } from "
|
|
2
|
-
import { UIStyle } from "
|
|
3
|
-
import { InlineIconButton } from "
|
|
4
|
-
import { ns } from "
|
|
1
|
+
import { CloseIcon } from "../../../assets/icons/Close.js";
|
|
2
|
+
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
3
|
+
import { InlineIconButton } from "../../buttons/InlineIconButton/InlineIconButton.js";
|
|
4
|
+
import { ns } from "../../../config/i18n.js";
|
|
5
5
|
import { modalContent, modalMain, modalOverlay } from "./modal.cva.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { clsx } from "clsx";
|
package/dist/{ResponsivePopover.js → components/overlays/ResponsivePopover/ResponsivePopover.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BottomSheet } from "
|
|
2
|
-
import { useBreakpoint } from "
|
|
3
|
-
import { FormFieldHeader } from "
|
|
4
|
-
import { FormFieldHeaderClose } from "
|
|
1
|
+
import { BottomSheet } from "../BottomSheet/BottomSheet.js";
|
|
2
|
+
import { useBreakpoint } from "../../../hooks/useBreakpoint.js";
|
|
3
|
+
import { FormFieldHeader } from "../../inputs/FormField/FormFieldHeader.js";
|
|
4
|
+
import { FormFieldHeaderClose } from "../../inputs/FormField/FormFieldHeaderClose.js";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { Dialog, DialogTrigger, Popover } from "react-aria-components";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { PointerHorizontalIcon } from "
|
|
2
|
-
import { PointerVerticalIcon } from "
|
|
3
|
-
import { UIStyle } from "
|
|
4
|
-
import { Typography } from "./Typography.js";
|
|
1
|
+
import { PointerHorizontalIcon } from "../../../assets/icons/PointerHorizontal.js";
|
|
2
|
+
import { PointerVerticalIcon } from "../../../assets/icons/PointerVertical.js";
|
|
3
|
+
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
5
4
|
import { tooltipCva, tooltipPointerHorizontalCva, tooltipPointerVerticalCva, tooltipTextCva } from "./tooltip.cva.js";
|
|
5
|
+
import { Typography } from "../../text/Typography/Typography.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
8
|
import { Fragment as Fragment$1, useRef } from "react";
|
|
9
|
+
import { OverlayArrow, Tooltip, TooltipTrigger } from "react-aria-components";
|
|
9
10
|
import { useFocusable } from "react-aria";
|
|
10
11
|
var CustomTrigger = ({ children, className, tabIndex }) => {
|
|
11
12
|
const ref = useRef(null);
|
|
@@ -14,11 +15,11 @@ var CustomTrigger = ({ children, className, tabIndex }) => {
|
|
|
14
15
|
ref,
|
|
15
16
|
...focusableProps,
|
|
16
17
|
tabIndex: tabIndex ?? 0,
|
|
17
|
-
className,
|
|
18
|
+
className: clsx("inline-flex", className),
|
|
18
19
|
children
|
|
19
20
|
});
|
|
20
21
|
};
|
|
21
|
-
const Tooltip$1 = ({ children, text, isDisabled, delay, closeDelay, color, isNonInteractiveTrigger, triggerClassName, triggerTabIndex
|
|
22
|
+
const Tooltip$1 = ({ children, text, isDisabled, delay, closeDelay, color, isNonInteractiveTrigger, triggerClassName, triggerTabIndex, ...tooltipProps }) => {
|
|
22
23
|
const uiStyle = UIStyle.useConfig();
|
|
23
24
|
const tooltipCva$1 = uiStyle?.tooltip?.cva ?? tooltipCva;
|
|
24
25
|
const tooltipPointerHorizontalCva$1 = uiStyle?.tooltip?.pointerHorizontalCva ?? tooltipPointerHorizontalCva;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { JSX, Ref } from 'react';
|
|
2
2
|
export interface TooltipEllipsisProps {
|
|
3
3
|
text: string;
|
|
4
|
-
children: (ref: Ref<
|
|
4
|
+
children: (ref: Ref<HTMLElement> | undefined) => JSX.Element;
|
|
5
5
|
isDisabled?: boolean;
|
|
6
|
+
isNonInteractiveTrigger?: boolean;
|
|
6
7
|
}
|
|
7
|
-
export declare const TooltipEllipsis: ({ text, children, isDisabled }: TooltipEllipsisProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const TooltipEllipsis: ({ text, children, isDisabled, isNonInteractiveTrigger }: TooltipEllipsisProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tooltip } from "./Tooltip.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
-
const TooltipEllipsis = ({ text, children, isDisabled }) => {
|
|
4
|
+
const TooltipEllipsis = ({ text, children, isDisabled, isNonInteractiveTrigger }) => {
|
|
5
5
|
const [isEllipsisActive, setIsEllipsisActive] = useState(false);
|
|
6
6
|
const onContentRef = (ref) => {
|
|
7
7
|
if (ref) setIsEllipsisActive(ref.offsetWidth < ref.scrollWidth);
|
|
@@ -11,6 +11,7 @@ const TooltipEllipsis = ({ text, children, isDisabled }) => {
|
|
|
11
11
|
text,
|
|
12
12
|
placement: "bottom",
|
|
13
13
|
isDisabled,
|
|
14
|
+
isNonInteractiveTrigger,
|
|
14
15
|
children: content
|
|
15
16
|
});
|
|
16
17
|
return content;
|
|
@@ -22,7 +22,7 @@ const tooltipPointerVerticalCva = cva(["h-5 w-2-5 group-placement-bottom:hidden
|
|
|
22
22
|
});
|
|
23
23
|
const tooltipTextCva = cva([], {
|
|
24
24
|
variants: { color: {
|
|
25
|
-
default: ["text-
|
|
25
|
+
default: ["text-interactive-contained-secondary-on-idle"],
|
|
26
26
|
error: ["text-text-error-inverted-1"]
|
|
27
27
|
} },
|
|
28
28
|
defaultVariants: { color: "default" }
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { UIStyle } from "
|
|
2
|
-
import { FormField } from "
|
|
1
|
+
import { UIStyle } from "../../config/uiStyle.context.js";
|
|
2
|
+
import { FormField } from "../inputs/FormField/FormField.js";
|
|
3
3
|
import { segmentCva } from "./segment.cva.js";
|
|
4
4
|
import { SegmentItem } from "./SegmentItem.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
|
-
import { ToggleButtonGroup } from "react-aria-components";
|
|
8
7
|
import { Fragment as Fragment$1, useMemo, useRef } from "react";
|
|
8
|
+
import { ToggleButtonGroup } from "react-aria-components";
|
|
9
9
|
import { useToggleButtonGroup } from "react-aria";
|
|
10
10
|
import { mergeRefs } from "@react-aria/utils";
|
|
11
11
|
import { Controller } from "react-hook-form";
|
|
12
12
|
import { useToggleGroupState } from "react-stately";
|
|
13
|
-
var SegmentBase = ({ className, items, error, onChange, value, defaultValue
|
|
13
|
+
var SegmentBase = ({ className, items, error, onChange, value, defaultValue, ...rest }) => {
|
|
14
14
|
const props = {
|
|
15
15
|
...rest,
|
|
16
16
|
defaultSelectedKeys: defaultValue ? Array.isArray(defaultValue) ? defaultValue : [defaultValue] : void 0,
|
|
@@ -63,7 +63,7 @@ var SegmentBase = ({ className, items, error, onChange, value, defaultValue,...r
|
|
|
63
63
|
};
|
|
64
64
|
const Segment = (props) => {
|
|
65
65
|
if ("formControl" in props && props.formControl) {
|
|
66
|
-
const { formControl, ref
|
|
66
|
+
const { formControl, ref, ...innerProps } = props;
|
|
67
67
|
return /* @__PURE__ */ jsx(Controller, {
|
|
68
68
|
control: formControl.control,
|
|
69
69
|
name: formControl.name,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { UIStyle } from "
|
|
2
|
-
import { Typography } from "
|
|
1
|
+
import { UIStyle } from "../../config/uiStyle.context.js";
|
|
2
|
+
import { Typography } from "../text/Typography/Typography.js";
|
|
3
3
|
import { segmentItemCva } from "./segment.cva.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { ToggleButton } from "react-aria-components";
|
|
6
|
-
const SegmentItem = ({ label, icon, id, isDisabled
|
|
6
|
+
const SegmentItem = ({ label, icon, id, isDisabled, ...props }) => {
|
|
7
7
|
const IconComponent = icon;
|
|
8
8
|
const iconOnly = !!(icon && !label);
|
|
9
9
|
const segmentItemCva$1 = UIStyle.useConfig()?.segment?.itemCva ?? segmentItemCva;
|