@uxf/ui 11.72.3 → 11.74.0
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 +3 -1
- package/package.json +2 -2
- package/translations/translations.d.ts +237 -0
- package/translations/translations.js +31 -0
- package/_file-input-base/file-input-base.d.ts +0 -13
- package/_file-input-base/file-input-base.js +0 -50
- package/_file-input-base/index.d.ts +0 -2
- package/_file-input-base/index.js +0 -5
- package/_input-with-popover/index.d.ts +0 -2
- package/_input-with-popover/index.js +0 -5
- package/_input-with-popover/input-with-popover.d.ts +0 -25
- package/_input-with-popover/input-with-popover.js +0 -93
- package/_private-utils/get-provider-config.d.ts +0 -2
- package/_private-utils/get-provider-config.js +0 -19
- package/accordion/accordion.d.ts +0 -33
- package/accordion/accordion.js +0 -78
- package/accordion/accordion.spec.d.ts +0 -1
- package/accordion/accordion.spec.js +0 -9
- package/accordion/accordion.stories.d.ts +0 -2
- package/accordion/accordion.stories.js +0 -20
- package/accordion/index.d.ts +0 -2
- package/accordion/index.js +0 -5
- package/alert-bubble/alert-bubble.d.ts +0 -10
- package/alert-bubble/alert-bubble.js +0 -22
- package/alert-bubble/alert-bubble.spec.d.ts +0 -1
- package/alert-bubble/alert-bubble.spec.js +0 -9
- package/alert-bubble/alert-bubble.stories.d.ts +0 -2
- package/alert-bubble/alert-bubble.stories.js +0 -43
- package/alert-bubble/index.d.ts +0 -3
- package/alert-bubble/index.js +0 -5
- package/alert-bubble/theme.d.ts +0 -16
- package/alert-bubble/theme.js +0 -2
- package/announcement-bar/announcement-bar.d.ts +0 -9
- package/announcement-bar/announcement-bar.js +0 -40
- package/announcement-bar/announcement-bar.spec.d.ts +0 -1
- package/announcement-bar/announcement-bar.spec.js +0 -9
- package/announcement-bar/announcement-bar.stories.d.ts +0 -2
- package/announcement-bar/announcement-bar.stories.js +0 -36
- package/announcement-bar/index.d.ts +0 -2
- package/announcement-bar/index.js +0 -5
- package/announcement-bar/theme.d.ts +0 -9
- package/announcement-bar/theme.js +0 -2
- package/avatar/avatar.d.ts +0 -6
- package/avatar/avatar.js +0 -35
- package/avatar/avatar.spec.d.ts +0 -1
- package/avatar/avatar.spec.js +0 -9
- package/avatar/avatar.stories.d.ts +0 -2
- package/avatar/avatar.stories.js +0 -13
- package/avatar/index.d.ts +0 -2
- package/avatar/index.js +0 -5
- package/avatar-file-input/avatar-file-input.d.ts +0 -18
- package/avatar-file-input/avatar-file-input.js +0 -71
- package/avatar-file-input/avatar-file-input.spec.d.ts +0 -1
- package/avatar-file-input/avatar-file-input.spec.js +0 -9
- package/avatar-file-input/avatar-file-input.stories.d.ts +0 -2
- package/avatar-file-input/avatar-file-input.stories.js +0 -48
- package/avatar-file-input/index.d.ts +0 -2
- package/avatar-file-input/index.js +0 -5
- package/avatar-file-input/theme.d.ts +0 -5
- package/avatar-file-input/theme.js +0 -2
- package/badge/badge.d.ts +0 -7
- package/badge/badge.js +0 -35
- package/badge/badge.spec.d.ts +0 -1
- package/badge/badge.spec.js +0 -9
- package/badge/badge.stories.d.ts +0 -2
- package/badge/badge.stories.js +0 -32
- package/badge/index.d.ts +0 -3
- package/badge/index.js +0 -5
- package/badge/theme.d.ts +0 -6
- package/badge/theme.js +0 -2
- package/button/button.d.ts +0 -17
- package/button/button.js +0 -50
- package/button/button.spec.d.ts +0 -1
- package/button/button.spec.js +0 -9
- package/button/button.stories.d.ts +0 -4
- package/button/button.stories.js +0 -94
- package/button/index.d.ts +0 -3
- package/button/index.js +0 -5
- package/button/theme.d.ts +0 -22
- package/button/theme.js +0 -2
- package/button-group/button-group.d.ts +0 -6
- package/button-group/button-group.js +0 -13
- package/button-group/button-group.spec.d.ts +0 -1
- package/button-group/button-group.spec.js +0 -9
- package/button-group/button-group.stories.d.ts +0 -2
- package/button-group/button-group.stories.js +0 -34
- package/button-group/index.d.ts +0 -2
- package/button-group/index.js +0 -5
- package/button-list/button-list.d.ts +0 -25
- package/button-list/button-list.js +0 -85
- package/button-list/button-list.spec.d.ts +0 -1
- package/button-list/button-list.spec.js +0 -9
- package/button-list/button-list.stories.d.ts +0 -2
- package/button-list/button-list.stories.js +0 -58
- package/button-list/index.d.ts +0 -2
- package/button-list/index.js +0 -5
- package/calendar/calendar-day-cell.d.ts +0 -10
- package/calendar/calendar-day-cell.js +0 -65
- package/calendar/calendar-navigation.d.ts +0 -9
- package/calendar/calendar-navigation.js +0 -26
- package/calendar/calendar-provider.d.ts +0 -6
- package/calendar/calendar-provider.js +0 -26
- package/calendar/calendar.d.ts +0 -12
- package/calendar/calendar.js +0 -51
- package/calendar/calendar.stories.d.ts +0 -2
- package/calendar/calendar.stories.js +0 -35
- package/calendar/index.d.ts +0 -4
- package/calendar/index.js +0 -7
- package/calendar/utils/get-class-names-from-flags.d.ts +0 -2
- package/calendar/utils/get-class-names-from-flags.js +0 -7
- package/checkbox/checkbox.d.ts +0 -12
- package/checkbox/checkbox.js +0 -54
- package/checkbox/checkbox.spec.d.ts +0 -1
- package/checkbox/checkbox.spec.js +0 -9
- package/checkbox/checkbox.stories.d.ts +0 -2
- package/checkbox/checkbox.stories.js +0 -40
- package/checkbox/index.d.ts +0 -3
- package/checkbox/index.js +0 -5
- package/checkbox/theme.d.ts +0 -5
- package/checkbox/theme.js +0 -2
- package/checkbox-button/checkbox-button.d.ts +0 -9
- package/checkbox-button/checkbox-button.js +0 -39
- package/checkbox-button/checkbox-button.spec.d.ts +0 -1
- package/checkbox-button/checkbox-button.spec.js +0 -9
- package/checkbox-button/checkbox-button.stories.d.ts +0 -2
- package/checkbox-button/checkbox-button.stories.js +0 -38
- package/checkbox-button/index.d.ts +0 -2
- package/checkbox-button/index.js +0 -5
- package/checkbox-input/checkbox-input.d.ts +0 -14
- package/checkbox-input/checkbox-input.js +0 -43
- package/checkbox-input/checkbox-input.spec.d.ts +0 -1
- package/checkbox-input/checkbox-input.spec.js +0 -9
- package/checkbox-input/checkbox-input.stories.d.ts +0 -2
- package/checkbox-input/checkbox-input.stories.js +0 -40
- package/checkbox-input/index.d.ts +0 -2
- package/checkbox-input/index.js +0 -5
- package/checkbox-list/checkbox-list.d.ts +0 -6
- package/checkbox-list/checkbox-list.js +0 -52
- package/checkbox-list/checkbox-list.spec.d.ts +0 -1
- package/checkbox-list/checkbox-list.spec.js +0 -9
- package/checkbox-list/checkbox-list.stories.d.ts +0 -2
- package/checkbox-list/checkbox-list.stories.js +0 -40
- package/checkbox-list/index.d.ts +0 -2
- package/checkbox-list/index.js +0 -5
- package/checkbox-list/types.d.ts +0 -16
- package/checkbox-list/types.js +0 -2
- package/chip/chip.d.ts +0 -13
- package/chip/chip.js +0 -58
- package/chip/chip.spec.d.ts +0 -1
- package/chip/chip.spec.js +0 -9
- package/chip/chip.stories.d.ts +0 -2
- package/chip/chip.stories.js +0 -47
- package/chip/index.d.ts +0 -3
- package/chip/index.js +0 -5
- package/chip/theme.d.ts +0 -25
- package/chip/theme.js +0 -2
- package/color-radio/color-radio.d.ts +0 -12
- package/color-radio/color-radio.js +0 -66
- package/color-radio/color-radio.spec.d.ts +0 -1
- package/color-radio/color-radio.spec.js +0 -9
- package/color-radio/color-radio.stories.d.ts +0 -2
- package/color-radio/color-radio.stories.js +0 -25
- package/color-radio/index.d.ts +0 -2
- package/color-radio/index.js +0 -5
- package/color-radio-group/color-radio-group.d.ts +0 -18
- package/color-radio-group/color-radio-group.js +0 -49
- package/color-radio-group/color-radio-group.spec.d.ts +0 -1
- package/color-radio-group/color-radio-group.spec.js +0 -9
- package/color-radio-group/color-radio-group.stories.d.ts +0 -2
- package/color-radio-group/color-radio-group.stories.js +0 -75
- package/color-radio-group/index.d.ts +0 -2
- package/color-radio-group/index.js +0 -5
- package/color-scheme/color-scheme-defaults.d.ts +0 -8
- package/color-scheme/color-scheme-defaults.js +0 -10
- package/color-scheme/get-color-scheme-class-name.d.ts +0 -2
- package/color-scheme/get-color-scheme-class-name.js +0 -13
- package/color-scheme/get-color-scheme.d.ts +0 -2
- package/color-scheme/get-color-scheme.js +0 -16
- package/color-scheme/index.d.ts +0 -5
- package/color-scheme/index.js +0 -13
- package/color-scheme/use-color-scheme.d.ts +0 -2
- package/color-scheme/use-color-scheme.js +0 -15
- package/color-scheme/use-handle-color-scheme.d.ts +0 -9
- package/color-scheme/use-handle-color-scheme.js +0 -23
- package/color-scheme/use-toggle-color-scheme.d.ts +0 -1
- package/color-scheme/use-toggle-color-scheme.js +0 -29
- package/combobox/combobox.d.ts +0 -51
- package/combobox/combobox.js +0 -106
- package/combobox/combobox.spec.d.ts +0 -1
- package/combobox/combobox.spec.js +0 -10
- package/combobox/combobox.stories.d.ts +0 -3
- package/combobox/combobox.stories.js +0 -55
- package/combobox/index.d.ts +0 -2
- package/combobox/index.js +0 -5
- package/components.d.ts +0 -317
- package/components.js +0 -344
- package/config/icons-config.d.ts +0 -2
- package/config/icons-config.js +0 -5
- package/config/icons.d.ts +0 -127
- package/config/icons.js +0 -30
- package/content/content-schema.d.ts +0 -3
- package/content/content-schema.js +0 -2
- package/content/types.d.ts +0 -27
- package/content/types.js +0 -2
- package/context/context.d.ts +0 -17
- package/context/context.js +0 -5
- package/context/index.d.ts +0 -3
- package/context/index.js +0 -19
- package/context/provider.d.ts +0 -8
- package/context/provider.js +0 -20
- package/context/use-component-context.d.ts +0 -3
- package/context/use-component-context.js +0 -13
- package/create-component-preview-page/create-component-preview-page.d.ts +0 -13
- package/create-component-preview-page/create-component-preview-page.js +0 -43
- package/create-component-preview-page/index.d.ts +0 -2
- package/create-component-preview-page/index.js +0 -18
- package/date-picker/date-picker-content.d.ts +0 -10
- package/date-picker/date-picker-content.js +0 -58
- package/date-picker/date-picker-decade.d.ts +0 -9
- package/date-picker/date-picker-decade.js +0 -89
- package/date-picker/date-picker-month.d.ts +0 -10
- package/date-picker/date-picker-month.js +0 -85
- package/date-picker/date-picker-year.d.ts +0 -9
- package/date-picker/date-picker-year.js +0 -94
- package/date-picker/date-picker.d.ts +0 -20
- package/date-picker/date-picker.js +0 -31
- package/date-picker/date-picker.spec.d.ts +0 -1
- package/date-picker/date-picker.spec.js +0 -9
- package/date-picker/date-picker.stories.d.ts +0 -2
- package/date-picker/date-picker.stories.js +0 -80
- package/date-picker/index.d.ts +0 -3
- package/date-picker/index.js +0 -5
- package/date-picker/types.d.ts +0 -11
- package/date-picker/types.js +0 -2
- package/date-picker-input/date-picker-input.d.ts +0 -23
- package/date-picker-input/date-picker-input.js +0 -88
- package/date-picker-input/date-picker-input.spec.d.ts +0 -1
- package/date-picker-input/date-picker-input.spec.js +0 -9
- package/date-picker-input/date-picker-input.stories.d.ts +0 -2
- package/date-picker-input/date-picker-input.stories.js +0 -55
- package/date-picker-input/index.d.ts +0 -2
- package/date-picker-input/index.js +0 -8
- package/date-range-picker/date-range-picker-content.d.ts +0 -6
- package/date-range-picker/date-range-picker-content.js +0 -56
- package/date-range-picker/date-range-picker-decade.d.ts +0 -9
- package/date-range-picker/date-range-picker-decade.js +0 -93
- package/date-range-picker/date-range-picker-month.d.ts +0 -10
- package/date-range-picker/date-range-picker-month.js +0 -82
- package/date-range-picker/date-range-picker-year.d.ts +0 -9
- package/date-range-picker/date-range-picker-year.js +0 -91
- package/date-range-picker/date-range-picker.d.ts +0 -15
- package/date-range-picker/date-range-picker.js +0 -53
- package/date-range-picker/date-range-picker.spec.d.ts +0 -1
- package/date-range-picker/date-range-picker.spec.js +0 -9
- package/date-range-picker/date-range-picker.stories.d.ts +0 -2
- package/date-range-picker/date-range-picker.stories.js +0 -36
- package/date-range-picker/index.d.ts +0 -3
- package/date-range-picker/index.js +0 -5
- package/date-range-picker/types.d.ts +0 -5
- package/date-range-picker/types.js +0 -2
- package/date-range-picker-input/date-range-picker-input.d.ts +0 -21
- package/date-range-picker-input/date-range-picker-input.js +0 -62
- package/date-range-picker-input/date-range-picker-input.spec.d.ts +0 -1
- package/date-range-picker-input/date-range-picker-input.spec.js +0 -9
- package/date-range-picker-input/date-range-picker-input.stories.d.ts +0 -2
- package/date-range-picker-input/date-range-picker-input.stories.js +0 -44
- package/date-range-picker-input/index.d.ts +0 -2
- package/date-range-picker-input/index.js +0 -5
- package/datetime-picker/datetime-picker.d.ts +0 -17
- package/datetime-picker/datetime-picker.js +0 -96
- package/datetime-picker/datetime-picker.spec.d.ts +0 -1
- package/datetime-picker/datetime-picker.spec.js +0 -9
- package/datetime-picker/datetime-picker.stories.d.ts +0 -2
- package/datetime-picker/datetime-picker.stories.js +0 -37
- package/datetime-picker/index.d.ts +0 -2
- package/datetime-picker/index.js +0 -7
- package/datetime-picker-input/datetime-picker-input.d.ts +0 -21
- package/datetime-picker-input/datetime-picker-input.js +0 -85
- package/datetime-picker-input/datetime-picker-input.spec.d.ts +0 -1
- package/datetime-picker-input/datetime-picker-input.spec.js +0 -9
- package/datetime-picker-input/datetime-picker-input.stories.d.ts +0 -2
- package/datetime-picker-input/datetime-picker-input.stories.js +0 -45
- package/datetime-picker-input/get-datetime-string.d.ts +0 -6
- package/datetime-picker-input/get-datetime-string.js +0 -18
- package/datetime-picker-input/index.d.ts +0 -2
- package/datetime-picker-input/index.js +0 -7
- package/dialog/dialog-panel.d.ts +0 -12
- package/dialog/dialog-panel.js +0 -13
- package/dialog/dialog.d.ts +0 -28
- package/dialog/dialog.js +0 -75
- package/dialog/dialog.spec.d.ts +0 -1
- package/dialog/dialog.spec.js +0 -9
- package/dialog/dialog.stories.d.ts +0 -2
- package/dialog/dialog.stories.js +0 -20
- package/dialog/index.d.ts +0 -4
- package/dialog/index.js +0 -7
- package/dialog/theme.d.ts +0 -11
- package/dialog/theme.js +0 -2
- package/dropdown/dropdown.d.ts +0 -13
- package/dropdown/dropdown.js +0 -50
- package/dropdown/dropdown.spec.d.ts +0 -1
- package/dropdown/dropdown.spec.js +0 -9
- package/dropdown/dropdown.stories.d.ts +0 -2
- package/dropdown/dropdown.stories.js +0 -23
- package/dropdown/index.d.ts +0 -2
- package/dropdown/index.js +0 -5
- package/dropzone/dropzone-input.d.ts +0 -24
- package/dropzone/dropzone-input.js +0 -146
- package/dropzone/dropzone-list.d.ts +0 -15
- package/dropzone/dropzone-list.js +0 -81
- package/dropzone/dropzone.spec.d.ts +0 -1
- package/dropzone/dropzone.spec.js +0 -9
- package/dropzone/dropzone.stories.d.ts +0 -2
- package/dropzone/dropzone.stories.js +0 -63
- package/dropzone/handle-rejected-files.d.ts +0 -2
- package/dropzone/handle-rejected-files.js +0 -17
- package/dropzone/index.d.ts +0 -6
- package/dropzone/index.js +0 -6
- package/dropzone/types.d.ts +0 -10
- package/dropzone/types.js +0 -2
- package/error-message/error-message.d.ts +0 -6
- package/error-message/error-message.js +0 -12
- package/error-message/error-message.spec.d.ts +0 -1
- package/error-message/error-message.spec.js +0 -9
- package/error-message/error-message.stories.d.ts +0 -2
- package/error-message/error-message.stories.js +0 -12
- package/error-message/index.d.ts +0 -1
- package/error-message/index.js +0 -5
- package/file-input/file-input.d.ts +0 -15
- package/file-input/file-input.js +0 -72
- package/file-input/file-input.spec.d.ts +0 -1
- package/file-input/file-input.spec.js +0 -9
- package/file-input/file-input.stories.d.ts +0 -2
- package/file-input/file-input.stories.js +0 -43
- package/file-input/index.d.ts +0 -2
- package/file-input/index.js +0 -5
- package/flash-messages/flash-message.d.ts +0 -17
- package/flash-messages/flash-message.js +0 -47
- package/flash-messages/flash-messages-service.d.ts +0 -4
- package/flash-messages/flash-messages-service.js +0 -14
- package/flash-messages/flash-messages.d.ts +0 -8
- package/flash-messages/flash-messages.js +0 -116
- package/flash-messages/flash-messages.spec.d.ts +0 -1
- package/flash-messages/flash-messages.spec.js +0 -9
- package/flash-messages/flash-messages.stories.d.ts +0 -2
- package/flash-messages/flash-messages.stories.js +0 -70
- package/flash-messages/index.d.ts +0 -3
- package/flash-messages/index.js +0 -8
- package/flash-messages/theme.d.ts +0 -6
- package/flash-messages/theme.js +0 -2
- package/form-component/form-component.d.ts +0 -14
- package/form-component/form-component.js +0 -41
- package/form-component/form-component.spec.d.ts +0 -1
- package/form-component/form-component.spec.js +0 -9
- package/form-component/form-component.stories.d.ts +0 -2
- package/form-component/form-component.stories.js +0 -19
- package/form-component/index.d.ts +0 -2
- package/form-component/index.js +0 -5
- package/hooks/use-async-loading.d.ts +0 -4
- package/hooks/use-async-loading.js +0 -31
- package/hooks/use-dropdown.d.ts +0 -39
- package/hooks/use-dropdown.js +0 -28
- package/hooks/use-input-submit.d.ts +0 -4
- package/hooks/use-input-submit.js +0 -39
- package/icon/icon.d.ts +0 -20
- package/icon/icon.js +0 -59
- package/icon/icon.spec.d.ts +0 -1
- package/icon/icon.spec.js +0 -10
- package/icon/icon.stories.d.ts +0 -6
- package/icon/icon.stories.js +0 -43
- package/icon/index.d.ts +0 -3
- package/icon/index.js +0 -5
- package/icon/theme.d.ts +0 -10
- package/icon/theme.js +0 -2
- package/icon/types.d.ts +0 -2
- package/icon/types.js +0 -2
- package/icon-button/icon-button.d.ts +0 -9
- package/icon-button/icon-button.js +0 -36
- package/icon-button/icon-button.spec.d.ts +0 -1
- package/icon-button/icon-button.spec.js +0 -9
- package/icon-button/icon-button.stories.d.ts +0 -2
- package/icon-button/icon-button.stories.js +0 -58
- package/icon-button/index.d.ts +0 -2
- package/icon-button/index.js +0 -5
- package/image-gallery/components/close-button.d.ts +0 -8
- package/image-gallery/components/close-button.js +0 -15
- package/image-gallery/components/dot.d.ts +0 -6
- package/image-gallery/components/dot.js +0 -14
- package/image-gallery/components/gallery.d.ts +0 -15
- package/image-gallery/components/gallery.js +0 -80
- package/image-gallery/components/next-button.d.ts +0 -7
- package/image-gallery/components/next-button.js +0 -14
- package/image-gallery/components/prev-button.d.ts +0 -7
- package/image-gallery/components/prev-button.js +0 -14
- package/image-gallery/context.d.ts +0 -9
- package/image-gallery/context.js +0 -12
- package/image-gallery/image-gallery.d.ts +0 -14
- package/image-gallery/image-gallery.js +0 -58
- package/image-gallery/image-gallery.spec.d.ts +0 -1
- package/image-gallery/image-gallery.spec.js +0 -9
- package/image-gallery/image-gallery.stories.d.ts +0 -2
- package/image-gallery/image-gallery.stories.js +0 -36
- package/image-gallery/image.d.ts +0 -3
- package/image-gallery/image.js +0 -18
- package/image-gallery/index.d.ts +0 -5
- package/image-gallery/index.js +0 -8
- package/image-gallery/types.d.ts +0 -9
- package/image-gallery/types.js +0 -2
- package/image-gallery/use-image.d.ts +0 -2
- package/image-gallery/use-image.js +0 -16
- package/info-box/index.d.ts +0 -2
- package/info-box/index.js +0 -5
- package/info-box/info-box.d.ts +0 -15
- package/info-box/info-box.js +0 -61
- package/info-box/info-box.spec.d.ts +0 -1
- package/info-box/info-box.spec.js +0 -9
- package/info-box/info-box.stories.d.ts +0 -2
- package/info-box/info-box.stories.js +0 -20
- package/info-box/theme.d.ts +0 -15
- package/info-box/theme.js +0 -2
- package/info-box/types.d.ts +0 -3
- package/info-box/types.js +0 -2
- package/input/index.d.ts +0 -14
- package/input/index.js +0 -20
- package/input/input-arrow-icon.d.ts +0 -8
- package/input/input-arrow-icon.js +0 -15
- package/input/input-element.d.ts +0 -24
- package/input/input-element.js +0 -33
- package/input/input-left-addon.d.ts +0 -5
- package/input/input-left-addon.js +0 -14
- package/input/input-left-element.d.ts +0 -5
- package/input/input-left-element.js +0 -12
- package/input/input-remove-button.d.ts +0 -5
- package/input/input-remove-button.js +0 -29
- package/input/input-right-addon.d.ts +0 -5
- package/input/input-right-addon.js +0 -14
- package/input/input-right-element.d.ts +0 -5
- package/input/input-right-element.js +0 -12
- package/input/input.d.ts +0 -20
- package/input/input.js +0 -66
- package/input/input.spec.d.ts +0 -1
- package/input/input.spec.js +0 -10
- package/input/input.stories.d.ts +0 -4
- package/input/input.stories.js +0 -90
- package/input/theme.d.ts +0 -10
- package/input/theme.js +0 -2
- package/label/index.d.ts +0 -2
- package/label/index.js +0 -5
- package/label/label.d.ts +0 -12
- package/label/label.js +0 -37
- package/label/label.spec.d.ts +0 -1
- package/label/label.spec.js +0 -9
- package/label/label.stories.d.ts +0 -2
- package/label/label.stories.js +0 -12
- package/layout/index.d.ts +0 -2
- package/layout/index.js +0 -5
- package/layout/layout.d.ts +0 -13
- package/layout/layout.js +0 -44
- package/layout/layout.spec.d.ts +0 -1
- package/layout/layout.spec.js +0 -9
- package/layout/layout.stories.d.ts +0 -2
- package/layout/layout.stories.js +0 -15
- package/layout/uxf-logo.d.ts +0 -6
- package/layout/uxf-logo.js +0 -13
- package/lightbox/components/lightbox-close-button.d.ts +0 -6
- package/lightbox/components/lightbox-close-button.js +0 -14
- package/lightbox/components/lightbox-dialog.d.ts +0 -15
- package/lightbox/components/lightbox-dialog.js +0 -49
- package/lightbox/components/lightbox-dot.d.ts +0 -9
- package/lightbox/components/lightbox-dot.js +0 -13
- package/lightbox/components/lightbox-next-button.d.ts +0 -6
- package/lightbox/components/lightbox-next-button.js +0 -14
- package/lightbox/components/lightbox-prev-button.d.ts +0 -6
- package/lightbox/components/lightbox-prev-button.js +0 -14
- package/lightbox/components/use-lightbox-dialog.d.ts +0 -34
- package/lightbox/components/use-lightbox-dialog.js +0 -51
- package/lightbox/context.d.ts +0 -11
- package/lightbox/context.js +0 -17
- package/lightbox/index.d.ts +0 -4
- package/lightbox/index.js +0 -9
- package/lightbox/lightbox.d.ts +0 -14
- package/lightbox/lightbox.js +0 -27
- package/lightbox/lightbox.spec.d.ts +0 -1
- package/lightbox/lightbox.spec.js +0 -9
- package/lightbox/lightbox.stories.d.ts +0 -2
- package/lightbox/lightbox.stories.js +0 -43
- package/lightbox/types.d.ts +0 -20
- package/lightbox/types.js +0 -2
- package/lightbox/use-lightbox-image.d.ts +0 -2
- package/lightbox/use-lightbox-image.js +0 -17
- package/lightbox/use-lightbox.d.ts +0 -11
- package/lightbox/use-lightbox.js +0 -34
- package/list-item/index.d.ts +0 -2
- package/list-item/index.js +0 -5
- package/list-item/list-item.d.ts +0 -10
- package/list-item/list-item.js +0 -45
- package/list-item/list-item.spec.d.ts +0 -1
- package/list-item/list-item.spec.js +0 -9
- package/list-item/list-item.stories.d.ts +0 -2
- package/list-item/list-item.stories.js +0 -28
- package/loader/index.d.ts +0 -2
- package/loader/index.js +0 -5
- package/loader/loader.d.ts +0 -5
- package/loader/loader.js +0 -34
- package/loader/loader.spec.d.ts +0 -1
- package/loader/loader.spec.js +0 -9
- package/loader/loader.stories.d.ts +0 -2
- package/loader/loader.stories.js +0 -16
- package/lozenge/index.d.ts +0 -3
- package/lozenge/index.js +0 -5
- package/lozenge/lozenge.d.ts +0 -7
- package/lozenge/lozenge.js +0 -35
- package/lozenge/lozenge.spec.d.ts +0 -1
- package/lozenge/lozenge.spec.js +0 -9
- package/lozenge/lozenge.stories.d.ts +0 -2
- package/lozenge/lozenge.stories.js +0 -16
- package/lozenge/theme.d.ts +0 -14
- package/lozenge/theme.js +0 -2
- package/message/index.d.ts +0 -3
- package/message/index.js +0 -7
- package/message/message-content.d.ts +0 -20
- package/message/message-content.js +0 -42
- package/message/message-service.d.ts +0 -13
- package/message/message-service.js +0 -30
- package/message/message.d.ts +0 -24
- package/message/message.js +0 -55
- package/message/message.spec.d.ts +0 -1
- package/message/message.spec.js +0 -9
- package/message/message.stories.d.ts +0 -2
- package/message/message.stories.js +0 -71
- package/message/theme.d.ts +0 -12
- package/message/theme.js +0 -2
- package/modal/index.d.ts +0 -4
- package/modal/index.js +0 -11
- package/modal/modal-provider.d.ts +0 -3
- package/modal/modal-provider.js +0 -57
- package/modal/modal-service.d.ts +0 -4
- package/modal/modal-service.js +0 -20
- package/modal/modal.d.ts +0 -3
- package/modal/modal.js +0 -27
- package/modal/modal.spec.d.ts +0 -1
- package/modal/modal.spec.js +0 -9
- package/modal/modal.stories.d.ts +0 -3
- package/modal/modal.stories.js +0 -109
- package/modal/theme.d.ts +0 -4
- package/modal/theme.js +0 -2
- package/modal/types.d.ts +0 -23
- package/modal/types.js +0 -2
- package/modal-dialog/modal-dialog.d.ts +0 -13
- package/modal-dialog/modal-dialog.js +0 -18
- package/modal-dialog/modal-dialog.stories.d.ts +0 -2
- package/modal-dialog/modal-dialog.stories.js +0 -28
- package/modal-header/index.d.ts +0 -2
- package/modal-header/index.js +0 -5
- package/modal-header/modal-header.d.ts +0 -10
- package/modal-header/modal-header.js +0 -27
- package/modal-header/modal-header.spec.d.ts +0 -1
- package/modal-header/modal-header.spec.js +0 -9
- package/modal-header/modal-header.stories.d.ts +0 -2
- package/modal-header/modal-header.stories.js +0 -19
- package/multi-combobox/index.d.ts +0 -2
- package/multi-combobox/index.js +0 -5
- package/multi-combobox/multi-combobox.d.ts +0 -3
- package/multi-combobox/multi-combobox.js +0 -172
- package/multi-combobox/multi-combobox.spec.d.ts +0 -1
- package/multi-combobox/multi-combobox.spec.js +0 -10
- package/multi-combobox/multi-combobox.stories.d.ts +0 -4
- package/multi-combobox/multi-combobox.stories.js +0 -89
- package/multi-combobox/types.d.ts +0 -48
- package/multi-combobox/types.js +0 -2
- package/multi-select/index.d.ts +0 -2
- package/multi-select/index.js +0 -5
- package/multi-select/multi-select.d.ts +0 -3
- package/multi-select/multi-select.js +0 -136
- package/multi-select/multi-select.spec.d.ts +0 -1
- package/multi-select/multi-select.spec.js +0 -9
- package/multi-select/multi-select.stories.d.ts +0 -3
- package/multi-select/multi-select.stories.js +0 -75
- package/multi-select/types.d.ts +0 -43
- package/multi-select/types.js +0 -2
- package/pagination/index.d.ts +0 -2
- package/pagination/index.js +0 -5
- package/pagination/pagination.d.ts +0 -12
- package/pagination/pagination.js +0 -62
- package/pagination/pagination.spec.d.ts +0 -1
- package/pagination/pagination.spec.js +0 -9
- package/pagination/pagination.stories.d.ts +0 -2
- package/pagination/pagination.stories.js +0 -40
- package/pagination/theme.d.ts +0 -7
- package/pagination/theme.js +0 -2
- package/paper/index.d.ts +0 -2
- package/paper/index.js +0 -5
- package/paper/paper.d.ts +0 -5
- package/paper/paper.js +0 -33
- package/paper/paper.spec.d.ts +0 -1
- package/paper/paper.spec.js +0 -9
- package/paper/paper.stories.d.ts +0 -2
- package/paper/paper.stories.js +0 -13
- package/radio/index.d.ts +0 -3
- package/radio/index.js +0 -5
- package/radio/radio.d.ts +0 -12
- package/radio/radio.js +0 -53
- package/radio/radio.spec.d.ts +0 -1
- package/radio/radio.spec.js +0 -9
- package/radio/radio.stories.d.ts +0 -2
- package/radio/radio.stories.js +0 -29
- package/radio/theme.d.ts +0 -5
- package/radio/theme.js +0 -2
- package/radio-group/index.d.ts +0 -3
- package/radio-group/index.js +0 -5
- package/radio-group/radio-group.d.ts +0 -23
- package/radio-group/radio-group.js +0 -51
- package/radio-group/radio-group.spec.d.ts +0 -1
- package/radio-group/radio-group.spec.js +0 -9
- package/radio-group/radio-group.stories.d.ts +0 -2
- package/radio-group/radio-group.stories.js +0 -55
- package/radio-group/theme.d.ts +0 -7
- package/radio-group/theme.js +0 -2
- package/raster-image/empty-image.d.ts +0 -9
- package/raster-image/empty-image.js +0 -12
- package/raster-image/img-sources.d.ts +0 -17
- package/raster-image/img-sources.js +0 -44
- package/raster-image/index.d.ts +0 -2
- package/raster-image/index.js +0 -5
- package/raster-image/raster-image.d.ts +0 -35
- package/raster-image/raster-image.js +0 -36
- package/raster-image/raster-image.spec.d.ts +0 -1
- package/raster-image/raster-image.spec.js +0 -9
- package/raster-image/raster-image.stories.d.ts +0 -2
- package/raster-image/raster-image.stories.js +0 -12
- package/raster-image/responsive-img-sources.d.ts +0 -15
- package/raster-image/responsive-img-sources.js +0 -19
- package/readmes.d.ts +0 -66
- package/readmes.js +0 -135
- package/select/index.d.ts +0 -2
- package/select/index.js +0 -5
- package/select/select.d.ts +0 -47
- package/select/select.js +0 -101
- package/select/select.spec.d.ts +0 -1
- package/select/select.spec.js +0 -9
- package/select/select.stories.d.ts +0 -3
- package/select/select.stories.js +0 -78
- package/tabs/components/tabs-button-list.d.ts +0 -12
- package/tabs/components/tabs-button-list.js +0 -36
- package/tabs/components/tabs-button.d.ts +0 -17
- package/tabs/components/tabs-button.js +0 -40
- package/tabs/components/tabs-panel.d.ts +0 -11
- package/tabs/components/tabs-panel.js +0 -16
- package/tabs/components/tabs-panels.d.ts +0 -2
- package/tabs/components/tabs-panels.js +0 -10
- package/tabs/components/tabs-root.d.ts +0 -10
- package/tabs/components/tabs-root.js +0 -12
- package/tabs/create-tab-id.d.ts +0 -1
- package/tabs/create-tab-id.js +0 -6
- package/tabs/index.d.ts +0 -2
- package/tabs/index.js +0 -18
- package/tabs/panel-content.d.ts +0 -9
- package/tabs/panel-content.js +0 -35
- package/tabs/panel.d.ts +0 -21
- package/tabs/panel.js +0 -11
- package/tabs/tabs.d.ts +0 -22
- package/tabs/tabs.js +0 -74
- package/tabs/tabs.spec.d.ts +0 -1
- package/tabs/tabs.spec.js +0 -10
- package/tabs/tabs.stories.d.ts +0 -3
- package/tabs/tabs.stories.js +0 -68
- package/tabs/theme.d.ts +0 -4
- package/tabs/theme.js +0 -2
- package/tabs/types.d.ts +0 -2
- package/tabs/types.js +0 -2
- package/text-input/index.d.ts +0 -2
- package/text-input/index.js +0 -5
- package/text-input/text-input.d.ts +0 -33
- package/text-input/text-input.js +0 -51
- package/text-input/text-input.spec.d.ts +0 -1
- package/text-input/text-input.spec.js +0 -9
- package/text-input/text-input.stories.d.ts +0 -3
- package/text-input/text-input.stories.js +0 -64
- package/text-link/index.d.ts +0 -2
- package/text-link/index.js +0 -5
- package/text-link/text-link.d.ts +0 -10
- package/text-link/text-link.js +0 -41
- package/text-link/text-link.spec.d.ts +0 -1
- package/text-link/text-link.spec.js +0 -9
- package/text-link/text-link.stories.d.ts +0 -2
- package/text-link/text-link.stories.js +0 -17
- package/text-link/theme.d.ts +0 -4
- package/text-link/theme.js +0 -2
- package/textarea/index.d.ts +0 -2
- package/textarea/index.js +0 -5
- package/textarea/textarea.d.ts +0 -18
- package/textarea/textarea.js +0 -59
- package/textarea/textarea.spec.d.ts +0 -1
- package/textarea/textarea.spec.js +0 -9
- package/textarea/textarea.stories.d.ts +0 -2
- package/textarea/textarea.stories.js +0 -39
- package/time-picker/index.d.ts +0 -2
- package/time-picker/index.js +0 -5
- package/time-picker/time-picker-hour.d.ts +0 -5
- package/time-picker/time-picker-hour.js +0 -49
- package/time-picker/time-picker-hours.d.ts +0 -2
- package/time-picker/time-picker-hours.js +0 -15
- package/time-picker/time-picker-minute.d.ts +0 -5
- package/time-picker/time-picker-minute.js +0 -49
- package/time-picker/time-picker-minutes.d.ts +0 -2
- package/time-picker/time-picker-minutes.js +0 -15
- package/time-picker/time-picker.d.ts +0 -9
- package/time-picker/time-picker.js +0 -72
- package/time-picker/time-picker.spec.d.ts +0 -1
- package/time-picker/time-picker.spec.js +0 -9
- package/time-picker/time-picker.stories.d.ts +0 -2
- package/time-picker/time-picker.stories.js +0 -36
- package/time-picker-input/index.d.ts +0 -2
- package/time-picker-input/index.js +0 -8
- package/time-picker-input/time-picker-input.d.ts +0 -17
- package/time-picker-input/time-picker-input.js +0 -83
- package/time-picker-input/time-picker-input.spec.d.ts +0 -1
- package/time-picker-input/time-picker-input.spec.js +0 -9
- package/time-picker-input/time-picker-input.stories.d.ts +0 -2
- package/time-picker-input/time-picker-input.stories.js +0 -45
- package/toggle/index.d.ts +0 -3
- package/toggle/index.js +0 -5
- package/toggle/theme.d.ts +0 -10
- package/toggle/theme.js +0 -2
- package/toggle/toggle.d.ts +0 -13
- package/toggle/toggle.js +0 -39
- package/toggle/toggle.spec.d.ts +0 -1
- package/toggle/toggle.spec.js +0 -9
- package/toggle/toggle.stories.d.ts +0 -2
- package/toggle/toggle.stories.js +0 -41
- package/tooltip/index.d.ts +0 -4
- package/tooltip/index.js +0 -7
- package/tooltip/tooltip.d.ts +0 -9
- package/tooltip/tooltip.js +0 -73
- package/tooltip/tooltip.spec.d.ts +0 -1
- package/tooltip/tooltip.spec.js +0 -9
- package/tooltip/tooltip.stories.d.ts +0 -2
- package/tooltip/tooltip.stories.js +0 -38
- package/tooltip/use-tooltip.d.ts +0 -55
- package/tooltip/use-tooltip.js +0 -39
- package/tw-tokens/tw-box-shadow.d.ts +0 -12
- package/tw-tokens/tw-box-shadow.js +0 -15
- package/tw-tokens/tw-colors.d.ts +0 -468
- package/tw-tokens/tw-colors.js +0 -471
- package/tw-tokens/tw-containers.d.ts +0 -8
- package/tw-tokens/tw-containers.js +0 -5
- package/tw-tokens/tw-font-size.d.ts +0 -55
- package/tw-tokens/tw-font-size.js +0 -32
- package/tw-tokens/tw-font-weight.d.ts +0 -12
- package/tw-tokens/tw-font-weight.js +0 -15
- package/tw-tokens/tw-line-height.d.ts +0 -17
- package/tw-tokens/tw-line-height.js +0 -20
- package/tw-tokens/tw-screens.d.ts +0 -8
- package/tw-tokens/tw-screens.js +0 -5
- package/tw-tokens/tw-spacing.d.ts +0 -39
- package/tw-tokens/tw-spacing.js +0 -42
- package/tw-tokens/tw-z-index.d.ts +0 -21
- package/tw-tokens/tw-z-index.js +0 -24
- package/types/color.d.ts +0 -2
- package/types/color.js +0 -2
- package/types/file-response.d.ts +0 -6
- package/types/file-response.js +0 -2
- package/types/form-control-props.d.ts +0 -30
- package/types/form-control-props.js +0 -2
- package/types/index.d.ts +0 -3
- package/types/index.js +0 -19
- package/typography/typography.spec.d.ts +0 -1
- package/typography/typography.spec.js +0 -9
- package/typography/typography.stories.d.ts +0 -2
- package/typography/typography.stories.js +0 -23
- package/utils/action.d.ts +0 -3
- package/utils/action.js +0 -10
- package/utils/component-structure-analyzer.d.ts +0 -6
- package/utils/component-structure-analyzer.js +0 -10
- package/utils/files/get-file-icon.d.ts +0 -2
- package/utils/files/get-file-icon.js +0 -18
- package/utils/files/get-file-icon.test.d.ts +0 -1
- package/utils/files/get-file-icon.test.js +0 -22
- package/utils/files/get-file-url.d.ts +0 -2
- package/utils/files/get-file-url.js +0 -6
- package/utils/files/get-file-url.test.d.ts +0 -1
- package/utils/files/get-file-url.test.js +0 -44
- package/utils/get-default-icon-name.d.ts +0 -4
- package/utils/get-default-icon-name.js +0 -19
- package/utils/get-dropzone-state.d.ts +0 -7
- package/utils/get-dropzone-state.js +0 -23
- package/utils/get-dropzone-state.test.d.ts +0 -1
- package/utils/get-dropzone-state.test.js +0 -88
- package/utils/mocks/upload-file.mock.d.ts +0 -3
- package/utils/mocks/upload-file.mock.js +0 -46
- package/utils/mocks/upload-file.mock.test.d.ts +0 -1
- package/utils/mocks/upload-file.mock.test.js +0 -34
- package/utils/next-link.d.ts +0 -22
- package/utils/next-link.js +0 -2
- package/utils/snap-test.d.ts +0 -2
- package/utils/snap-test.js +0 -22
- package/utils/storybook-config.d.ts +0 -49
- package/utils/storybook-config.js +0 -72
- package/utils/validator/validator-exceptions.d.ts +0 -3
- package/utils/validator/validator-exceptions.js +0 -7
package/README.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# @uxf/ui
|
|
2
2
|
|
|
3
|
+
> **Note:** This package contains translations. For proper functionality, you must use the `TranslationsProvider` from `@uxf/core-react/translations`. See the [core-react documentation](https://fe.uxf.dev/docs/core-react) for more information.
|
|
4
|
+
|
|
3
5
|
## [Documentation](https://ui.uxf.dev)
|
|
4
6
|
|
|
5
7
|
## How to install
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
10
|
yarn add @uxf/ui
|
|
9
|
-
```
|
|
11
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxf/ui",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.74.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@floating-ui/react": "0.26.28",
|
|
25
25
|
"@headlessui/react": "1.7.19",
|
|
26
26
|
"@uxf/core": "11.72.3",
|
|
27
|
-
"@uxf/core-react": "11.
|
|
27
|
+
"@uxf/core-react": "11.74.0",
|
|
28
28
|
"@uxf/datepicker": "11.61.0",
|
|
29
29
|
"@uxf/styles": "11.72.3",
|
|
30
30
|
"color2k": "2.0.3",
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"uxf-ui-time-picker": {
|
|
3
|
+
readonly previous: {
|
|
4
|
+
readonly cs: "Předchozí";
|
|
5
|
+
readonly en: "Previous";
|
|
6
|
+
readonly sk: "Predchádzajúci";
|
|
7
|
+
readonly de: "Zurück";
|
|
8
|
+
};
|
|
9
|
+
readonly next: {
|
|
10
|
+
readonly cs: "Nadcházející";
|
|
11
|
+
readonly en: "Next";
|
|
12
|
+
readonly sk: "Nasledujúci";
|
|
13
|
+
readonly de: "Weiter";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
"uxf-ui-select": {
|
|
17
|
+
"no-options-message": {
|
|
18
|
+
cs: string;
|
|
19
|
+
en: string;
|
|
20
|
+
sk: string;
|
|
21
|
+
de: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
"uxf-ui-multi-select": {
|
|
25
|
+
"all-options-selected": {
|
|
26
|
+
cs: string;
|
|
27
|
+
en: string;
|
|
28
|
+
sk: string;
|
|
29
|
+
de: string;
|
|
30
|
+
};
|
|
31
|
+
"no-options-message": {
|
|
32
|
+
cs: string;
|
|
33
|
+
en: string;
|
|
34
|
+
sk: string;
|
|
35
|
+
de: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
"uxf-ui-multi-combobox": {
|
|
39
|
+
"no-query-message": {
|
|
40
|
+
cs: string;
|
|
41
|
+
en: string;
|
|
42
|
+
sk: string;
|
|
43
|
+
de: string;
|
|
44
|
+
};
|
|
45
|
+
"all-options-selected": {
|
|
46
|
+
cs: string;
|
|
47
|
+
en: string;
|
|
48
|
+
sk: string;
|
|
49
|
+
de: string;
|
|
50
|
+
};
|
|
51
|
+
"no-options-message": {
|
|
52
|
+
cs: string;
|
|
53
|
+
en: string;
|
|
54
|
+
sk: string;
|
|
55
|
+
de: string;
|
|
56
|
+
};
|
|
57
|
+
"not-found-message": {
|
|
58
|
+
cs: string;
|
|
59
|
+
en: string;
|
|
60
|
+
sk: string;
|
|
61
|
+
de: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
"uxf-ui-lightbox": {
|
|
65
|
+
readonly next: {
|
|
66
|
+
readonly cs: "Další";
|
|
67
|
+
readonly en: "Next";
|
|
68
|
+
readonly sk: "Ďalší";
|
|
69
|
+
readonly de: "Weiter";
|
|
70
|
+
};
|
|
71
|
+
readonly close: {
|
|
72
|
+
readonly cs: "Zavřít";
|
|
73
|
+
readonly en: "Close";
|
|
74
|
+
readonly sk: "Zatvoriť";
|
|
75
|
+
readonly de: "Schließen";
|
|
76
|
+
};
|
|
77
|
+
readonly previous: {
|
|
78
|
+
readonly cs: "Předchozí";
|
|
79
|
+
readonly en: "Previous";
|
|
80
|
+
readonly sk: "Predchádzajúci";
|
|
81
|
+
readonly de: "Zurück";
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
"uxf-ui-layout": {
|
|
85
|
+
"open-menu": {
|
|
86
|
+
cs: string;
|
|
87
|
+
en: string;
|
|
88
|
+
sk: string;
|
|
89
|
+
de: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
"uxf-ui-image-gallery": {
|
|
93
|
+
"close-button": {
|
|
94
|
+
cs: string;
|
|
95
|
+
en: string;
|
|
96
|
+
sk: string;
|
|
97
|
+
de: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
"uxf-ui-datetime-picker": {
|
|
101
|
+
readonly dateTab: {
|
|
102
|
+
readonly cs: "Datum";
|
|
103
|
+
readonly en: "Date";
|
|
104
|
+
readonly sk: "Dátum";
|
|
105
|
+
readonly de: "Datum";
|
|
106
|
+
};
|
|
107
|
+
readonly timeTab: {
|
|
108
|
+
readonly cs: "Čas";
|
|
109
|
+
readonly en: "Time";
|
|
110
|
+
readonly sk: "Čas";
|
|
111
|
+
readonly de: "Zeit";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
"uxf-ui-date-range-picker": {
|
|
115
|
+
readonly "prev-year": {
|
|
116
|
+
readonly cs: "Předchozí rok";
|
|
117
|
+
readonly en: "Previous year";
|
|
118
|
+
readonly sk: "Predchádzajúci rok";
|
|
119
|
+
readonly de: "Vorheriges Jahr";
|
|
120
|
+
};
|
|
121
|
+
readonly "next-year": {
|
|
122
|
+
readonly cs: "Nadcházející rok";
|
|
123
|
+
readonly en: "Next year";
|
|
124
|
+
readonly sk: "Nasledujúci rok";
|
|
125
|
+
readonly de: "Nächstes Jahr";
|
|
126
|
+
};
|
|
127
|
+
readonly "select-year": {
|
|
128
|
+
readonly cs: "Vybrat rok";
|
|
129
|
+
readonly en: "Select year";
|
|
130
|
+
readonly sk: "Vybrať rok";
|
|
131
|
+
readonly de: "Jahr auswählen";
|
|
132
|
+
};
|
|
133
|
+
readonly "select-month": {
|
|
134
|
+
readonly cs: "Vybrat měsíc";
|
|
135
|
+
readonly en: "Select month";
|
|
136
|
+
readonly sk: "Vybrať mesiac";
|
|
137
|
+
readonly de: "Monat auswählen";
|
|
138
|
+
};
|
|
139
|
+
readonly "next-month": {
|
|
140
|
+
readonly cs: "Nadcházející měsíc";
|
|
141
|
+
readonly en: "Next month";
|
|
142
|
+
readonly sk: "Nasledujúci mesiac";
|
|
143
|
+
readonly de: "Nächster Monat";
|
|
144
|
+
};
|
|
145
|
+
readonly "prev-month": {
|
|
146
|
+
readonly cs: "Předchozí měsíc";
|
|
147
|
+
readonly en: "Previous month";
|
|
148
|
+
readonly sk: "Predchádzajúci mesiac";
|
|
149
|
+
readonly de: "Vorheriger Monat";
|
|
150
|
+
};
|
|
151
|
+
readonly "next-decade": {
|
|
152
|
+
readonly cs: "Vpřed";
|
|
153
|
+
readonly en: "Forward";
|
|
154
|
+
readonly sk: "Vpred";
|
|
155
|
+
readonly de: "Vorwärts";
|
|
156
|
+
};
|
|
157
|
+
readonly "prev-decade": {
|
|
158
|
+
readonly cs: "Zpět";
|
|
159
|
+
readonly en: "Back";
|
|
160
|
+
readonly sk: "Späť";
|
|
161
|
+
readonly de: "Zurück";
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
"uxf-ui-date-picker": {
|
|
165
|
+
readonly "prev-year": {
|
|
166
|
+
readonly cs: "Předchozí rok";
|
|
167
|
+
readonly en: "Previous year";
|
|
168
|
+
readonly sk: "Predchádzajúci rok";
|
|
169
|
+
readonly de: "Vorheriges Jahr";
|
|
170
|
+
};
|
|
171
|
+
readonly "next-year": {
|
|
172
|
+
readonly cs: "Nadcházející rok";
|
|
173
|
+
readonly en: "Next year";
|
|
174
|
+
readonly sk: "Nasledujúci rok";
|
|
175
|
+
readonly de: "Nächstes Jahr";
|
|
176
|
+
};
|
|
177
|
+
readonly "select-year": {
|
|
178
|
+
readonly cs: "Vybrat rok";
|
|
179
|
+
readonly en: "Select year";
|
|
180
|
+
readonly sk: "Vybrať rok";
|
|
181
|
+
readonly de: "Jahr auswählen";
|
|
182
|
+
};
|
|
183
|
+
readonly "select-month": {
|
|
184
|
+
readonly cs: "Vybrat měsíc";
|
|
185
|
+
readonly en: "Select month";
|
|
186
|
+
readonly sk: "Vybrať mesiac";
|
|
187
|
+
readonly de: "Monat auswählen";
|
|
188
|
+
};
|
|
189
|
+
readonly "next-month": {
|
|
190
|
+
readonly cs: "Nadcházející měsíc";
|
|
191
|
+
readonly en: "Next month";
|
|
192
|
+
readonly sk: "Nasledujúci mesiac";
|
|
193
|
+
readonly de: "Nächster Monat";
|
|
194
|
+
};
|
|
195
|
+
readonly "prev-month": {
|
|
196
|
+
readonly cs: "Předchozí měsíc";
|
|
197
|
+
readonly en: "Previous month";
|
|
198
|
+
readonly sk: "Predchádzajúci mesiac";
|
|
199
|
+
readonly de: "Vorheriger Monat";
|
|
200
|
+
};
|
|
201
|
+
readonly "next-decade": {
|
|
202
|
+
readonly cs: "Vpřed";
|
|
203
|
+
readonly en: "Forward";
|
|
204
|
+
readonly sk: "Vpred";
|
|
205
|
+
readonly de: "Vorwärts";
|
|
206
|
+
};
|
|
207
|
+
readonly "prev-decade": {
|
|
208
|
+
readonly cs: "Zpět";
|
|
209
|
+
readonly en: "Back";
|
|
210
|
+
readonly sk: "Späť";
|
|
211
|
+
readonly de: "Zurück";
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
"uxf-ui-combobox": {
|
|
215
|
+
"no-query-message": {
|
|
216
|
+
cs: string;
|
|
217
|
+
en: string;
|
|
218
|
+
sk: string;
|
|
219
|
+
de: string;
|
|
220
|
+
};
|
|
221
|
+
"no-options-message": {
|
|
222
|
+
cs: string;
|
|
223
|
+
en: string;
|
|
224
|
+
sk: string;
|
|
225
|
+
de: string;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
"uxf-ui-chip": {
|
|
229
|
+
"remove-item": {
|
|
230
|
+
cs: string;
|
|
231
|
+
en: string;
|
|
232
|
+
sk: string;
|
|
233
|
+
de: string;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const translations_1 = __importDefault(require("@uxf/ui/chip/translations"));
|
|
7
|
+
const translations_2 = __importDefault(require("@uxf/ui/combobox/translations"));
|
|
8
|
+
const translations_3 = __importDefault(require("@uxf/ui/date-picker/translations"));
|
|
9
|
+
const translations_4 = __importDefault(require("@uxf/ui/date-range-picker/translations"));
|
|
10
|
+
const translations_5 = __importDefault(require("@uxf/ui/datetime-picker/translations"));
|
|
11
|
+
const translations_6 = __importDefault(require("@uxf/ui/image-gallery/translations"));
|
|
12
|
+
const translations_7 = __importDefault(require("@uxf/ui/layout/translations"));
|
|
13
|
+
const translations_8 = __importDefault(require("@uxf/ui/lightbox/translations"));
|
|
14
|
+
const translations_9 = __importDefault(require("@uxf/ui/multi-combobox/translations"));
|
|
15
|
+
const translations_10 = __importDefault(require("@uxf/ui/multi-select/translations"));
|
|
16
|
+
const translations_11 = __importDefault(require("@uxf/ui/select/translations"));
|
|
17
|
+
const translations_12 = __importDefault(require("@uxf/ui/time-picker/translations"));
|
|
18
|
+
exports.default = {
|
|
19
|
+
...translations_1.default,
|
|
20
|
+
...translations_2.default,
|
|
21
|
+
...translations_3.default,
|
|
22
|
+
...translations_4.default,
|
|
23
|
+
...translations_5.default,
|
|
24
|
+
...translations_6.default,
|
|
25
|
+
...translations_7.default,
|
|
26
|
+
...translations_8.default,
|
|
27
|
+
...translations_9.default,
|
|
28
|
+
...translations_10.default,
|
|
29
|
+
...translations_11.default,
|
|
30
|
+
...translations_12.default,
|
|
31
|
+
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FileResponse, FileUploadProps } from "@uxf/core/types";
|
|
2
|
-
import { FormControlProps } from "@uxf/ui/types";
|
|
3
|
-
import React from "react";
|
|
4
|
-
export interface FileInputBaseProps extends FormControlProps<FileResponse | null>, FileUploadProps {
|
|
5
|
-
"aria-describedby"?: string;
|
|
6
|
-
accept?: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
form?: string;
|
|
9
|
-
id?: string;
|
|
10
|
-
maxFileSize?: number;
|
|
11
|
-
onUploadError?: (err: unknown) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const _FileInputBase: React.ForwardRefExoticComponent<FileInputBaseProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
-
if (mod && mod.__esModule) return mod;
|
|
21
|
-
var result = {};
|
|
22
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
-
__setModuleDefault(result, mod);
|
|
24
|
-
return result;
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports._FileInputBase = void 0;
|
|
28
|
-
const is_not_nil_1 = require("@uxf/core/utils/is-not-nil");
|
|
29
|
-
const validator_exceptions_1 = require("@uxf/ui//utils/validator/validator-exceptions");
|
|
30
|
-
const react_1 = __importStar(require("react"));
|
|
31
|
-
exports._FileInputBase = (0, react_1.forwardRef)((props, ref) => {
|
|
32
|
-
const onChange = async (e) => {
|
|
33
|
-
var _a, _b;
|
|
34
|
-
const file = (_a = e.target.files) === null || _a === void 0 ? void 0 : _a.item(0);
|
|
35
|
-
if ((0, is_not_nil_1.isNotNil)(file)) {
|
|
36
|
-
try {
|
|
37
|
-
if (props.maxFileSize && file.size > props.maxFileSize) {
|
|
38
|
-
throw validator_exceptions_1.ValidatorExceptions.MaxFileSize;
|
|
39
|
-
}
|
|
40
|
-
const response = await props.onUploadFile(file);
|
|
41
|
-
await props.onChange(response, e);
|
|
42
|
-
}
|
|
43
|
-
catch (err) {
|
|
44
|
-
(_b = props.onUploadError) === null || _b === void 0 ? void 0 : _b.call(props, err);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
return (react_1.default.createElement("input", { accept: props.accept, "aria-describedby": props["aria-describedby"], "aria-invalid": props.isInvalid, className: props.className, disabled: props.isDisabled, form: props.form, id: props.id, name: props.name, onBlur: props.onBlur, onChange: onChange, onFocus: props.onFocus, readOnly: props.isReadOnly, ref: ref, required: props.isRequired, tabIndex: props.isDisabled ? -1 : undefined, type: "file" }));
|
|
49
|
-
});
|
|
50
|
-
exports._FileInputBase.displayName = "UxfUiFileInputBase";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._FileInputBase = void 0;
|
|
4
|
-
var file_input_base_1 = require("./file-input-base");
|
|
5
|
-
Object.defineProperty(exports, "_FileInputBase", { enumerable: true, get: function () { return file_input_base_1._FileInputBase; } });
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._InputWithPopover = void 0;
|
|
4
|
-
var input_with_popover_1 = require("./input-with-popover");
|
|
5
|
-
Object.defineProperty(exports, "_InputWithPopover", { enumerable: true, get: function () { return input_with_popover_1._InputWithPopover; } });
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Placement, Strategy } from "@floating-ui/react";
|
|
2
|
-
import { InputProps } from "@uxf/ui/input";
|
|
3
|
-
import React, { MutableRefObject, ReactElement, ReactNode } from "react";
|
|
4
|
-
import { Clearable, FormControlProps } from "../types";
|
|
5
|
-
export interface InputWithPopoverProps<ValueType = string> extends FormControlProps<ValueType>, Pick<InputProps, "size" | "variant">, Clearable {
|
|
6
|
-
autoFocus?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
children: (args: {
|
|
9
|
-
close: (focusableElement?: HTMLElement | MutableRefObject<HTMLElement | null>) => void;
|
|
10
|
-
}) => ReactElement;
|
|
11
|
-
form?: string;
|
|
12
|
-
helperText?: ReactNode;
|
|
13
|
-
hiddenLabel?: boolean;
|
|
14
|
-
id?: string;
|
|
15
|
-
label?: ReactNode;
|
|
16
|
-
leftAddon?: ReactNode;
|
|
17
|
-
leftElement?: ReactNode;
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
popoverPlacement?: Placement;
|
|
20
|
-
popoverStrategy?: Strategy;
|
|
21
|
-
rightAddon?: ReactNode;
|
|
22
|
-
rightElement?: ReactNode;
|
|
23
|
-
triggerElement: ReactNode;
|
|
24
|
-
}
|
|
25
|
-
export declare const _InputWithPopover: React.ForwardRefExoticComponent<InputWithPopoverProps<string> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
-
if (mod && mod.__esModule) return mod;
|
|
21
|
-
var result = {};
|
|
22
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
-
__setModuleDefault(result, mod);
|
|
24
|
-
return result;
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports._InputWithPopover = void 0;
|
|
28
|
-
const react_1 = require("@floating-ui/react");
|
|
29
|
-
const react_2 = require("@headlessui/react");
|
|
30
|
-
const show_1 = require("@uxf/core-react/components/show");
|
|
31
|
-
const use_input_focus_1 = require("@uxf/core-react/hooks/use-input-focus");
|
|
32
|
-
const compose_refs_1 = require("@uxf/core-react/utils/compose-refs");
|
|
33
|
-
const classes_1 = require("@uxf/core/constants/classes");
|
|
34
|
-
const cx_1 = require("@uxf/core/utils/cx");
|
|
35
|
-
const form_component_1 = require("@uxf/ui/form-component");
|
|
36
|
-
const input_1 = require("@uxf/ui/input");
|
|
37
|
-
const react_3 = __importStar(require("react"));
|
|
38
|
-
function useErrorProps(error, id, isInvalid) {
|
|
39
|
-
const errorId = isInvalid ? `${id}--error-message` : undefined;
|
|
40
|
-
return {
|
|
41
|
-
errorId,
|
|
42
|
-
ariaDescribedby: errorId,
|
|
43
|
-
ariaErrormessage: error && errorId ? `${errorId}--error-message` : undefined,
|
|
44
|
-
ariaInvalid: Boolean(error),
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
exports._InputWithPopover = (0, react_3.forwardRef)((props, ref) => {
|
|
48
|
-
var _a, _b, _c;
|
|
49
|
-
const generatedId = (0, react_3.useId)();
|
|
50
|
-
const id = (_a = props.id) !== null && _a !== void 0 ? _a : generatedId;
|
|
51
|
-
const innerRef = (0, react_3.useRef)(null);
|
|
52
|
-
const input = (0, use_input_focus_1.useInputFocus)(innerRef, props.onBlur, props.onFocus);
|
|
53
|
-
const error = useErrorProps(props.helperText, id, props.isInvalid);
|
|
54
|
-
const rootClassName = (0, cx_1.cx)("uxf-input-with-popover", ((_b = props.isFocused) !== null && _b !== void 0 ? _b : input.focused) && classes_1.CLASSES.IS_FOCUSED, props.isDisabled && classes_1.CLASSES.IS_DISABLED, props.isInvalid && classes_1.CLASSES.IS_INVALID, props.isReadOnly && classes_1.CLASSES.IS_READONLY, props.isRequired && classes_1.CLASSES.IS_REQUIRED, props.className);
|
|
55
|
-
const floatingPopover = (0, react_1.useFloating)({
|
|
56
|
-
placement: (_c = props.popoverPlacement) !== null && _c !== void 0 ? _c : "bottom",
|
|
57
|
-
middleware: [
|
|
58
|
-
(0, react_1.flip)(),
|
|
59
|
-
(0, react_1.shift)(),
|
|
60
|
-
(0, react_1.size)({
|
|
61
|
-
apply({ availableHeight, availableWidth, elements }) {
|
|
62
|
-
Object.assign(elements.floating.style, {
|
|
63
|
-
maxHeight: Math.max(50, availableHeight) + "px",
|
|
64
|
-
maxWidth: Math.max(240, availableWidth) + "px",
|
|
65
|
-
});
|
|
66
|
-
},
|
|
67
|
-
}),
|
|
68
|
-
],
|
|
69
|
-
strategy: props.popoverStrategy,
|
|
70
|
-
whileElementsMounted: (reference, floating, update) => (0, react_1.autoUpdate)(reference, floating, update, {
|
|
71
|
-
elementResize: typeof ResizeObserver !== "undefined",
|
|
72
|
-
}),
|
|
73
|
-
});
|
|
74
|
-
const isInteractive = !props.isDisabled && !props.isReadOnly;
|
|
75
|
-
const showRemoveButton = Boolean(props.value && isInteractive && props.isClearable);
|
|
76
|
-
return (react_3.default.createElement(form_component_1.FormComponent, { className: rootClassName, errorId: error.errorId, form: props.form, helperText: props.helperText, hiddenLabel: props.hiddenLabel, inputId: id, isRequired: props.isRequired, label: props.label, name: props.name },
|
|
77
|
-
react_3.default.createElement(react_2.Popover, { as: react_3.Fragment }, (renderProps) => (react_3.default.createElement(react_3.default.Fragment, null,
|
|
78
|
-
react_3.default.createElement(input_1.Input, { inputFocus: input, inputGroupRef: floatingPopover.refs.setReference, ref: (0, compose_refs_1.composeRefs)(innerRef, ref), size: props.size, variant: props.variant },
|
|
79
|
-
props.leftAddon && react_3.default.createElement(input_1.Input.LeftAddon, null, props.leftAddon),
|
|
80
|
-
props.leftElement && react_3.default.createElement(input_1.Input.LeftElement, null, props.leftElement),
|
|
81
|
-
react_3.default.createElement(input_1.Input.Element, { "aria-describedby": error.ariaDescribedby, "aria-errormessage": error.ariaErrormessage, "aria-invalid": error.ariaInvalid, "aria-live": "polite", autoComplete: "off", autoFocus: props.autoFocus, form: props.form, id: id, isDisabled: props.isDisabled, isInvalid: props.isInvalid, isReadOnly: props.isReadOnly, isRequired: props.isRequired, name: props.name, onChange: props.onChange, placeholder: props.placeholder, type: "text", value: props.value }),
|
|
82
|
-
react_3.default.createElement(input_1.Input.RightElement, null,
|
|
83
|
-
react_3.default.createElement(show_1.Show, { when: showRemoveButton },
|
|
84
|
-
react_3.default.createElement(input_1.Input.RemoveButton, { onChange: () => props.onChange("") })),
|
|
85
|
-
react_3.default.createElement(react_2.Popover.Button, { className: "uxf-input-with-popover__trigger-element" }, props.triggerElement),
|
|
86
|
-
props.rightElement),
|
|
87
|
-
props.rightAddon && react_3.default.createElement(input_1.Input.RightAddon, null, props.rightAddon)),
|
|
88
|
-
react_3.default.createElement(show_1.Show, { when: isInteractive && renderProps.open },
|
|
89
|
-
react_3.default.createElement(react_1.FloatingPortal, null,
|
|
90
|
-
react_3.default.createElement(react_2.Popover.Panel, { className: (0, cx_1.cx)("uxf-input-with-popover__panel", floatingPopover.placement === "bottom" &&
|
|
91
|
-
"uxf-input-with-popover__panel--bottom", floatingPopover.placement === "top" && "uxf-input-with-popover__panel--top"), ref: floatingPopover.refs.setFloating, static: true, style: floatingPopover.floatingStyles }, props.children))))))));
|
|
92
|
-
});
|
|
93
|
-
exports._InputWithPopover.displayName = "UxfUiInputWithPopover";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getProviderConfig = void 0;
|
|
4
|
-
const color_scheme_1 = require("../color-scheme");
|
|
5
|
-
const icons_1 = require("../config/icons");
|
|
6
|
-
const tw_screens_1 = require("../tw-tokens/tw-screens");
|
|
7
|
-
const getProviderConfig = () => ({
|
|
8
|
-
colorScheme: {
|
|
9
|
-
...color_scheme_1.COLOR_SCHEME_DEFAULTS,
|
|
10
|
-
respectSystemSetting: false,
|
|
11
|
-
respectUserSettings: false,
|
|
12
|
-
},
|
|
13
|
-
domain: "https://localhost:6006",
|
|
14
|
-
icon: { spriteFilePath: "/icons-generated/_icon-sprite.svg", iconsConfig: icons_1.ICONS },
|
|
15
|
-
rasterImage: {
|
|
16
|
-
breakpoints: tw_screens_1.twScreens,
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
exports.getProviderConfig = getProviderConfig;
|
package/accordion/accordion.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { IconName } from "../icon/types";
|
|
3
|
-
export type AccordionItemOpenBehaviour = "single" | "multiple";
|
|
4
|
-
export interface AccordionItemProps {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
className?: string;
|
|
7
|
-
closeIconName?: IconName;
|
|
8
|
-
id: string;
|
|
9
|
-
iconSize?: number;
|
|
10
|
-
isOpen?: boolean;
|
|
11
|
-
name?: string;
|
|
12
|
-
openIconName?: IconName;
|
|
13
|
-
title: ReactNode;
|
|
14
|
-
}
|
|
15
|
-
declare function Item(props: AccordionItemProps): React.JSX.Element;
|
|
16
|
-
declare namespace Item {
|
|
17
|
-
var displayName: string;
|
|
18
|
-
}
|
|
19
|
-
export interface AccordionProps {
|
|
20
|
-
children: ReactNode;
|
|
21
|
-
className?: string;
|
|
22
|
-
closeIconName?: AccordionItemProps["closeIconName"];
|
|
23
|
-
itemOpenBehavior?: AccordionItemOpenBehaviour;
|
|
24
|
-
openIconName?: AccordionItemProps["openIconName"];
|
|
25
|
-
}
|
|
26
|
-
declare function Root(props: AccordionProps): React.JSX.Element;
|
|
27
|
-
declare namespace Root {
|
|
28
|
-
var displayName: string;
|
|
29
|
-
}
|
|
30
|
-
export declare const Accordion: typeof Root & {
|
|
31
|
-
Item: typeof Item;
|
|
32
|
-
};
|
|
33
|
-
export {};
|
package/accordion/accordion.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.Accordion = void 0;
|
|
27
|
-
const is_nil_1 = require("@uxf/core/utils/is-nil");
|
|
28
|
-
const react_1 = __importStar(require("react"));
|
|
29
|
-
const icon_1 = require("../icon");
|
|
30
|
-
function isExclusiveAccordionSupported() {
|
|
31
|
-
const details = document.createElement("details");
|
|
32
|
-
const uniqueTestValue = Date.now().toString();
|
|
33
|
-
details.name = uniqueTestValue;
|
|
34
|
-
const isSupported = details.getAttribute("name") === uniqueTestValue;
|
|
35
|
-
details.remove();
|
|
36
|
-
return isSupported;
|
|
37
|
-
}
|
|
38
|
-
function Item(props) {
|
|
39
|
-
var _a, _b, _c, _d;
|
|
40
|
-
const innerRef = (0, react_1.useRef)(null);
|
|
41
|
-
const itemClickHandler = () => {
|
|
42
|
-
const node = innerRef.current;
|
|
43
|
-
if (isExclusiveAccordionSupported() || (0, is_nil_1.isNil)(props.name) || (0, is_nil_1.isNil)(node)) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
document.querySelectorAll("details").forEach((child) => {
|
|
47
|
-
if (child !== node && child.getAttribute("name") === props.name) {
|
|
48
|
-
child.open = false;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
const iconSize = (_a = props.iconSize) !== null && _a !== void 0 ? _a : 16;
|
|
53
|
-
return (react_1.default.createElement("details", { className: `uxf-accordion__item ${(_b = props.className) !== null && _b !== void 0 ? _b : ""}`, id: props.id, name: props.name, open: props.isOpen, ref: innerRef },
|
|
54
|
-
react_1.default.createElement("summary", { className: "uxf-accordion__item-button", onClick: itemClickHandler },
|
|
55
|
-
react_1.default.createElement("span", { className: "uxf-accordion__item-title" }, props.title),
|
|
56
|
-
react_1.default.createElement(icon_1.Icon, { className: "uxf-accordion__item-icon uxf-accordion__item-icon-close", name: (_c = props.closeIconName) !== null && _c !== void 0 ? _c : "chevronUp", size: iconSize }),
|
|
57
|
-
react_1.default.createElement(icon_1.Icon, { className: "uxf-accordion__item-icon uxf-accordion__item-icon-open", name: (_d = props.openIconName) !== null && _d !== void 0 ? _d : "chevronDown", size: iconSize })),
|
|
58
|
-
react_1.default.createElement("div", { className: "uxf-accordion__item-content" },
|
|
59
|
-
react_1.default.createElement("div", { className: "uxf-accordion__item-content-inner" }, props.children))));
|
|
60
|
-
}
|
|
61
|
-
const ACCORDION_ITEM_DISPLAY_NAME = "UxfUiAccordionItem";
|
|
62
|
-
Item.displayName = ACCORDION_ITEM_DISPLAY_NAME;
|
|
63
|
-
function Root(props) {
|
|
64
|
-
var _a;
|
|
65
|
-
const id = (0, react_1.useId)();
|
|
66
|
-
const accordionItems = react_1.Children.toArray(props.children).filter((child) => (0, react_1.isValidElement)(child) && child.type.displayName === ACCORDION_ITEM_DISPLAY_NAME);
|
|
67
|
-
return (react_1.default.createElement("div", { className: `uxf-accordion ${(_a = props.className) !== null && _a !== void 0 ? _a : ""}` }, accordionItems.map((child) => {
|
|
68
|
-
var _a, _b;
|
|
69
|
-
return (0, react_1.cloneElement)(child, {
|
|
70
|
-
closeIconName: (_a = child.props.closeIconName) !== null && _a !== void 0 ? _a : props.closeIconName,
|
|
71
|
-
key: child.props.id,
|
|
72
|
-
name: props.itemOpenBehavior === "multiple" ? id : child.props.name,
|
|
73
|
-
openIconName: (_b = child.props.openIconName) !== null && _b !== void 0 ? _b : props.openIconName,
|
|
74
|
-
});
|
|
75
|
-
})));
|
|
76
|
-
}
|
|
77
|
-
Root.displayName = "UxfUiAccordion";
|
|
78
|
-
exports.Accordion = Object.assign(Root, { Item });
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const react_1 = __importDefault(require("react"));
|
|
7
|
-
const snap_test_1 = require("../utils/snap-test");
|
|
8
|
-
const accordion_stories_1 = require("./accordion.stories");
|
|
9
|
-
(0, snap_test_1.snapTest)("render stories", react_1.default.createElement(accordion_stories_1.Default, null));
|