@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/modal/types.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ModalVariants } from "@uxf/ui/modal/theme";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
import type { DialogProps } from "../dialog";
|
|
4
|
-
export type ModalVariant = keyof ModalVariants;
|
|
5
|
-
export interface ModalProviderProps {
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
className?: DialogProps["className"];
|
|
8
|
-
isBackdropCloseDisabled?: DialogProps["isBackdropCloseDisabled"];
|
|
9
|
-
onClose?: () => void;
|
|
10
|
-
variant?: ModalVariant;
|
|
11
|
-
}
|
|
12
|
-
export interface ModalRef {
|
|
13
|
-
close: () => void;
|
|
14
|
-
open: (modal: ModalProviderProps) => void;
|
|
15
|
-
}
|
|
16
|
-
export interface ModalProps {
|
|
17
|
-
children: ReactNode;
|
|
18
|
-
className?: DialogProps["className"];
|
|
19
|
-
close: () => void;
|
|
20
|
-
isBackdropCloseDisabled?: boolean;
|
|
21
|
-
isOpen: boolean;
|
|
22
|
-
variant?: ModalVariant;
|
|
23
|
-
}
|
package/modal/types.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { DialogPanelWidth } from "../dialog";
|
|
3
|
-
interface ModalDialogProps {
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
footer?: ReactNode;
|
|
7
|
-
icon?: ReactNode;
|
|
8
|
-
title: string;
|
|
9
|
-
width?: DialogPanelWidth;
|
|
10
|
-
isDialogPanelHidden?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare function ModalDialog(props: ModalDialogProps): React.JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,18 +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
|
-
exports.ModalDialog = ModalDialog;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const dialog_1 = require("../dialog");
|
|
9
|
-
function ModalDialog(props) {
|
|
10
|
-
var _a, _b;
|
|
11
|
-
const Content = (react_1.default.createElement("div", { className: `uxf-modal-dialog ${(_a = props.className) !== null && _a !== void 0 ? _a : ""}` },
|
|
12
|
-
react_1.default.createElement("div", { className: "uxf-modal-dialog__header" },
|
|
13
|
-
props.icon,
|
|
14
|
-
react_1.default.createElement("div", { className: "uxf-modal-dialog__title" }, props.title)),
|
|
15
|
-
props.children && react_1.default.createElement("div", { className: "uxf-modal-dialog__text" }, props.children),
|
|
16
|
-
props.footer && react_1.default.createElement("div", { className: "uxf-modal-dialog__footer" }, props.footer)));
|
|
17
|
-
return props.isDialogPanelHidden ? Content : react_1.default.createElement(dialog_1.DialogPanel, { width: (_b = props.width) !== null && _b !== void 0 ? _b : "xs" }, Content);
|
|
18
|
-
}
|
|
@@ -1,28 +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
|
-
exports.Default = Default;
|
|
7
|
-
const button_1 = require("@uxf/ui/button");
|
|
8
|
-
const react_1 = __importDefault(require("react"));
|
|
9
|
-
const icon_1 = require("../icon");
|
|
10
|
-
const modal_dialog_1 = require("./modal-dialog");
|
|
11
|
-
function Default() {
|
|
12
|
-
return (react_1.default.createElement("div", { className: "space-y-6 bg-neutral-200 p-6" },
|
|
13
|
-
react_1.default.createElement(modal_dialog_1.ModalDialog, { footer: react_1.default.createElement(react_1.default.Fragment, null,
|
|
14
|
-
react_1.default.createElement(button_1.Button, { variant: "text" }, "Close"),
|
|
15
|
-
react_1.default.createElement(button_1.Button, null, "Button")), title: "Default dialog" }, "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam erat volutpat. Praesent dapibus. Vestibulum fermentum tortor id mi."),
|
|
16
|
-
react_1.default.createElement(modal_dialog_1.ModalDialog, { footer: react_1.default.createElement(react_1.default.Fragment, null,
|
|
17
|
-
react_1.default.createElement(button_1.Button, { variant: "text" }, "Close"),
|
|
18
|
-
react_1.default.createElement(button_1.Button, { color: "warning" }, "Button")), icon: react_1.default.createElement(icon_1.Icon, { color: "warning", name: "triangle-exclamation" }), title: "Warning dialog" }, "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam erat volutpat. Praesent dapibus. Vestibulum fermentum tortor id mi."),
|
|
19
|
-
react_1.default.createElement(modal_dialog_1.ModalDialog, { footer: react_1.default.createElement(react_1.default.Fragment, null,
|
|
20
|
-
react_1.default.createElement(button_1.Button, { variant: "text" }, "Cancel"),
|
|
21
|
-
react_1.default.createElement(button_1.Button, { color: "positive" }, "Save")), icon: react_1.default.createElement(icon_1.Icon, { color: "positive", name: "youtube" }), title: "Positive dialog asda ksdjahs kjdhakj shdk jahksdjh kajsdh k" }, "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam erat volutpat. Praesent dapibus. Vestibulum fermentum tortor id mi."),
|
|
22
|
-
react_1.default.createElement(modal_dialog_1.ModalDialog, { footer: react_1.default.createElement(react_1.default.Fragment, null,
|
|
23
|
-
react_1.default.createElement(button_1.Button, { variant: "text" }, "Cancel"),
|
|
24
|
-
react_1.default.createElement(button_1.Button, { color: "negative" }, "Save")), icon: react_1.default.createElement(icon_1.Icon, { color: "negative", name: "xmark", size: 48 }), title: "Negative dialog" }, "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam erat volutpat. Praesent dapibus. Vestibulum fermentum tortor id mi."),
|
|
25
|
-
react_1.default.createElement(modal_dialog_1.ModalDialog, { footer: react_1.default.createElement(react_1.default.Fragment, null,
|
|
26
|
-
react_1.default.createElement(button_1.Button, { variant: "text" }, "Cancel"),
|
|
27
|
-
react_1.default.createElement(button_1.Button, { color: "info" }, "Save")), icon: react_1.default.createElement(icon_1.Icon, { color: "info", name: "circle-info" }), title: "Info dialog", width: "lg" }, "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam erat volutpat. Praesent dapibus. Vestibulum fermentum tortor id mi.")));
|
|
28
|
-
}
|
package/modal-header/index.d.ts
DELETED
package/modal-header/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModalHeader = void 0;
|
|
4
|
-
var modal_header_1 = require("./modal-header");
|
|
5
|
-
Object.defineProperty(exports, "ModalHeader", { enumerable: true, get: function () { return modal_header_1.ModalHeader; } });
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
export interface ModalHeaderProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
onGoBack?: () => void;
|
|
5
|
-
onClose?: () => void;
|
|
6
|
-
actionsComponent?: ReactNode;
|
|
7
|
-
title: ReactNode;
|
|
8
|
-
description?: ReactNode;
|
|
9
|
-
}
|
|
10
|
-
export declare function ModalHeader(props: ModalHeaderProps): React.JSX.Element;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.ModalHeader = ModalHeader;
|
|
8
|
-
const show_1 = require("@uxf/core-react/components/show");
|
|
9
|
-
const cx_1 = require("@uxf/core/utils/cx");
|
|
10
|
-
const is_not_nil_1 = require("@uxf/core/utils/is-not-nil");
|
|
11
|
-
const react_1 = __importDefault(require("react"));
|
|
12
|
-
const button_1 = require("../button");
|
|
13
|
-
const icon_1 = require("../icon");
|
|
14
|
-
function ModalHeader(props) {
|
|
15
|
-
return (react_1.default.createElement("header", { className: (0, cx_1.cx)("uxf-modal-header", props.onGoBack && "uxf-modal-header--has-go-back", props.className) },
|
|
16
|
-
react_1.default.createElement(show_1.Show, { when: (0, is_not_nil_1.isNotNil)(props.onGoBack) },
|
|
17
|
-
react_1.default.createElement(button_1.Button, { isIconButton: true, onClick: props.onGoBack, size: "sm", variant: "text" },
|
|
18
|
-
react_1.default.createElement(icon_1.Icon, { name: "angle-left" }))),
|
|
19
|
-
react_1.default.createElement("div", { className: "uxf-modal-header__text-wrapper" },
|
|
20
|
-
react_1.default.createElement("div", { className: "uxf-modal-header__title" }, props.title),
|
|
21
|
-
react_1.default.createElement(show_1.Show, { when: (0, is_not_nil_1.isNotNil)(props.description) },
|
|
22
|
-
react_1.default.createElement("div", { className: "uxf-modal-header__description" }, props.description))),
|
|
23
|
-
props.actionsComponent,
|
|
24
|
-
react_1.default.createElement(show_1.Show, { when: (0, is_not_nil_1.isNotNil)(props.onClose) },
|
|
25
|
-
react_1.default.createElement(button_1.Button, { isIconButton: true, onClick: props.onClose, size: "sm", variant: "text" },
|
|
26
|
-
react_1.default.createElement(icon_1.Icon, { name: "xmark" })))));
|
|
27
|
-
}
|
|
@@ -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 modal_header_stories_1 = require("./modal-header.stories");
|
|
9
|
-
(0, snap_test_1.snapTest)("render stories", react_1.default.createElement(modal_header_stories_1.Default, null));
|
|
@@ -1,19 +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
|
-
exports.Default = Default;
|
|
7
|
-
const noop_1 = require("@uxf/core/utils/noop");
|
|
8
|
-
const react_1 = __importDefault(require("react"));
|
|
9
|
-
const button_1 = require("../button");
|
|
10
|
-
const icon_1 = require("../icon");
|
|
11
|
-
const modal_header_1 = require("./modal-header");
|
|
12
|
-
function Default() {
|
|
13
|
-
return (react_1.default.createElement("div", { className: "flex max-w-[480px] flex-col gap-4 p-8" },
|
|
14
|
-
react_1.default.createElement(modal_header_1.ModalHeader, { onClose: noop_1.noop, title: "Time of details" }),
|
|
15
|
-
react_1.default.createElement(modal_header_1.ModalHeader, { description: "View and manage your time off", title: "Time of details" }),
|
|
16
|
-
react_1.default.createElement(modal_header_1.ModalHeader, { description: "View and manage your time off", onClose: noop_1.noop, onGoBack: () => alert("going back!"), title: "Time of details" }),
|
|
17
|
-
react_1.default.createElement(modal_header_1.ModalHeader, { actionsComponent: react_1.default.createElement(button_1.Button, { isIconButton: true, onClick: () => alert("action!"), size: "sm", variant: "text" },
|
|
18
|
-
react_1.default.createElement(icon_1.Icon, { name: "ellipsis-vertical" })), description: "View and manage your time off", onClose: noop_1.noop, onGoBack: () => alert("going back!"), title: "Time of details" })));
|
|
19
|
-
}
|
package/multi-combobox/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MultiCombobox = void 0;
|
|
4
|
-
var multi_combobox_1 = require("./multi-combobox");
|
|
5
|
-
Object.defineProperty(exports, "MultiCombobox", { enumerable: true, get: function () { return multi_combobox_1.MultiCombobox; } });
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { MultiComboboxOption, MultiComboboxProps, MultiComboboxValueId } from "./types";
|
|
3
|
-
export declare const MultiCombobox: React.ForwardRefExoticComponent<MultiComboboxProps<MultiComboboxValueId, MultiComboboxOption<MultiComboboxValueId>> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,172 +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.MultiCombobox = 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 empty_array_1 = require("@uxf/core/constants/empty-array");
|
|
35
|
-
const cx_1 = require("@uxf/core/utils/cx");
|
|
36
|
-
const is_empty_1 = require("@uxf/core/utils/is-empty");
|
|
37
|
-
const is_not_empty_1 = require("@uxf/core/utils/is-not-empty");
|
|
38
|
-
const is_not_nil_1 = require("@uxf/core/utils/is-not-nil");
|
|
39
|
-
const last_1 = require("@uxf/core/utils/last");
|
|
40
|
-
const slugify_1 = require("@uxf/core/utils/slugify");
|
|
41
|
-
const checkbox_input_1 = require("@uxf/ui/checkbox-input");
|
|
42
|
-
const chip_1 = require("@uxf/ui/chip");
|
|
43
|
-
const use_async_loading_1 = require("@uxf/ui/hooks/use-async-loading");
|
|
44
|
-
const use_dropdown_1 = require("@uxf/ui/hooks/use-dropdown");
|
|
45
|
-
const input_1 = require("@uxf/ui/input");
|
|
46
|
-
const label_1 = require("@uxf/ui/label");
|
|
47
|
-
const react_3 = __importStar(require("react"));
|
|
48
|
-
function handleInputKeyDownRecursion(selectedOptions, onRemove) {
|
|
49
|
-
const lastSelectedOption = (0, last_1.last)(selectedOptions);
|
|
50
|
-
if (!lastSelectedOption) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
if (lastSelectedOption.disabled) {
|
|
54
|
-
handleInputKeyDownRecursion(selectedOptions.slice(0, -1), onRemove);
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
onRemove(lastSelectedOption.id);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
function Option(props) {
|
|
61
|
-
const option = props.option;
|
|
62
|
-
return (react_3.default.createElement(react_2.Combobox.Option, { className: (optionState) => (0, cx_1.cx)("uxf-dropdown__item uxf-multi-combobox__dropdown-item", optionState.active && classes_1.CLASSES.IS_ACTIVE, optionState.disabled && classes_1.CLASSES.IS_DISABLED, optionState.selected && classes_1.CLASSES.IS_SELECTED), disabled: option.disabled, value: option }, (optionState) => {
|
|
63
|
-
var _a, _b;
|
|
64
|
-
return (react_3.default.createElement(react_3.default.Fragment, null, props.withCheckboxes ? (react_3.default.createElement(checkbox_input_1.CheckboxInput, { isDisabled: optionState.disabled, isFocused: optionState.active, label: option.label, name: option.id.toString(), onChange: props.handleCheckboxChange, value: optionState.selected })) : (((_b = (_a = props.renderOption) === null || _a === void 0 ? void 0 : _a.call(props, props.option)) !== null && _b !== void 0 ? _b : option.label))));
|
|
65
|
-
}));
|
|
66
|
-
}
|
|
67
|
-
Option.displayName = "UxfUiMultiComboboxOption";
|
|
68
|
-
function Options(props) {
|
|
69
|
-
var _a, _b;
|
|
70
|
-
return (react_3.default.createElement(react_2.Combobox.Options, { className: (0, cx_1.cx)("uxf-dropdown uxf-multi-combobox__dropdown", `uxf-dropdown--size-${(_a = props.size) !== null && _a !== void 0 ? _a : "default"}`, `uxf-dropdown--variant-${(_b = props.variant) !== null && _b !== void 0 ? _b : "default"}`, props.matchWidth ? "uxf-dropdown--match-width" : "uxf-dropdown--not-match-width", props.placement === "bottom" && "uxf-dropdown--bottom", props.placement === "top" && "uxf-dropdown--top", props.className), ref: props.forwardRef, static: true, style: props.style }, (0, is_not_empty_1.isNotEmpty)(props.options) ? (props.options.map((option) => {
|
|
71
|
-
var _a, _b;
|
|
72
|
-
const optionTyped = option;
|
|
73
|
-
return (react_3.default.createElement(Option, { handleCheckboxChange: props.onCheckboxChange(optionTyped.id), key: (_b = (_a = props.keyExtractor) === null || _a === void 0 ? void 0 : _a.call(props, option)) !== null && _b !== void 0 ? _b : optionTyped.id, option: optionTyped, withCheckboxes: props.withCheckboxes }));
|
|
74
|
-
})) : (react_3.default.createElement("div", { className: "uxf-dropdown__empty-wrapper" }, props.emptyMessage))));
|
|
75
|
-
}
|
|
76
|
-
Options.displayName = "UxfUiMultiComboboxOptions";
|
|
77
|
-
function useMultiComboboxOptions(query, props) {
|
|
78
|
-
var _a, _b;
|
|
79
|
-
const isAsync = (0, is_not_nil_1.isNotNil)(props.loadOptions);
|
|
80
|
-
const options = (0, use_async_loading_1.useAsyncLoading)(query, (_a = props.options) !== null && _a !== void 0 ? _a : empty_array_1.EMPTY_ARRAY, props.loadOptions);
|
|
81
|
-
const selectedOptions = (_b = props.value) !== null && _b !== void 0 ? _b : empty_array_1.EMPTY_ARRAY;
|
|
82
|
-
const filteredOptions = isAsync
|
|
83
|
-
? options
|
|
84
|
-
: options.filter((item) => (!selectedOptions.some((v) => v.id === item.id) || props.withCheckboxes) &&
|
|
85
|
-
((0, is_empty_1.isEmpty)(query) || (0, slugify_1.slugify)(item.label).includes((0, slugify_1.slugify)(query))));
|
|
86
|
-
return {
|
|
87
|
-
options,
|
|
88
|
-
selectedOptions,
|
|
89
|
-
filteredOptions,
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
exports.MultiCombobox = (0, react_3.forwardRef)((props, ref) => {
|
|
93
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
94
|
-
const generatedId = (0, react_3.useId)();
|
|
95
|
-
const id = (_a = props.id) !== null && _a !== void 0 ? _a : generatedId;
|
|
96
|
-
const errorId = props.isInvalid ? `${id}--error-message` : undefined;
|
|
97
|
-
const [query, setQuery] = (0, react_3.useState)("");
|
|
98
|
-
const { filteredOptions, selectedOptions, options } = useMultiComboboxOptions(query, {
|
|
99
|
-
loadOptions: props.loadOptions,
|
|
100
|
-
options: props.options,
|
|
101
|
-
value: props.value,
|
|
102
|
-
withCheckboxes: props.withCheckboxes,
|
|
103
|
-
});
|
|
104
|
-
const iconName = (_b = props.iconName) !== null && _b !== void 0 ? _b : "caretDown";
|
|
105
|
-
const dropdown = (0, use_dropdown_1.useDropdown)((_c = props.dropdownPlacement) !== null && _c !== void 0 ? _c : "bottom", true, props.dropdownMaxHeight, props.dropdownStrategy);
|
|
106
|
-
const inputRef = (0, react_3.useRef)(null);
|
|
107
|
-
const input = (0, use_input_focus_1.useInputFocus)(inputRef, props.onBlur, props.onFocus);
|
|
108
|
-
const stableRef = (0, react_3.useMemo)(() => (0, compose_refs_1.composeRefs)(inputRef, dropdown.refs.setReference), [dropdown.refs.setReference]);
|
|
109
|
-
const optionRemoveHandler = (valueId) => props.onChange(selectedOptions.filter((v) => v.id.toString() !== valueId.toString()));
|
|
110
|
-
const chipCloseHandler = (valueId) => (e) => {
|
|
111
|
-
e.preventDefault();
|
|
112
|
-
e.stopPropagation();
|
|
113
|
-
optionRemoveHandler(valueId);
|
|
114
|
-
};
|
|
115
|
-
const checkboxChangeHandler = (valueId) => (checked) => {
|
|
116
|
-
const isAlreadySelected = selectedOptions.find((v) => v.id.toString() === valueId.toString());
|
|
117
|
-
if (isAlreadySelected && !checked) {
|
|
118
|
-
optionRemoveHandler(valueId);
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
const newOption = options.find((o) => o.id === valueId);
|
|
122
|
-
// adding new option if not in value
|
|
123
|
-
if (!isAlreadySelected && checked && newOption) {
|
|
124
|
-
props.onChange([...selectedOptions, newOption]);
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
const inputKeyDownHandler = (e) => {
|
|
128
|
-
if (e.key === "Backspace" && (0, is_empty_1.isEmpty)(query) && (0, is_not_empty_1.isNotEmpty)(selectedOptions)) {
|
|
129
|
-
handleInputKeyDownRecursion(selectedOptions, optionRemoveHandler);
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
const inputChangeHandler = (e) => setQuery(e.target.value);
|
|
133
|
-
const changeHandler = (v) => {
|
|
134
|
-
props.onChange(v);
|
|
135
|
-
setQuery("");
|
|
136
|
-
};
|
|
137
|
-
const emptyMessage = (0, is_empty_1.isEmpty)(query)
|
|
138
|
-
? ((_d = props.noQueryMessage) !== null && _d !== void 0 ? _d : "Pro zobrazení možností začněte psát")
|
|
139
|
-
: selectedOptions.length === options.length && (0, is_not_empty_1.isNotEmpty)(selectedOptions)
|
|
140
|
-
? ((_e = props.allOptionsSelectedMessage) !== null && _e !== void 0 ? _e : "Všechny možnosti jsou již vybrány")
|
|
141
|
-
: (0, is_empty_1.isEmpty)(options)
|
|
142
|
-
? ((_f = props.noOptionsMessage) !== null && _f !== void 0 ? _f : "Nabídka neosahuje žádné položky")
|
|
143
|
-
: ((_g = props.notFoundMessage) !== null && _g !== void 0 ? _g : "Nic nenalezeno");
|
|
144
|
-
const onBlur = (e) => {
|
|
145
|
-
/* TODO: refactor component to enable this */
|
|
146
|
-
// setQuery("");
|
|
147
|
-
var _a;
|
|
148
|
-
(_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
149
|
-
};
|
|
150
|
-
const isNotInteractive = props.isDisabled || props.isReadOnly;
|
|
151
|
-
return (react_3.default.createElement(react_2.Combobox, { as: "div", by: "id", className: (0, cx_1.cx)("uxf-form-component uxf-multi-combobox", props.isInvalid && classes_1.CLASSES.IS_INVALID, props.isRequired && classes_1.CLASSES.IS_REQUIRED, props.isReadOnly && classes_1.CLASSES.IS_READONLY, props.isDisabled && classes_1.CLASSES.IS_DISABLED, props.className), "data-name": props.name, disabled: isNotInteractive, form: props.form, multiple: true, name: props.name, onChange: changeHandler, style: props.style, value: selectedOptions }, (renderProps) => {
|
|
152
|
-
var _a, _b;
|
|
153
|
-
return (react_3.default.createElement(react_3.default.Fragment, null,
|
|
154
|
-
react_3.default.createElement("div", { className: "uxf-form-component__label" },
|
|
155
|
-
react_3.default.createElement(react_2.Combobox.Label, { as: label_1.Label, isHidden: props.hiddenLabel, isRequired: props.isRequired, onClick: isNotInteractive ? undefined : input.focus }, props.label)),
|
|
156
|
-
react_3.default.createElement("div", { className: "uxf-form-component__input" },
|
|
157
|
-
react_3.default.createElement(react_2.Combobox.Button, { "aria-describedby": errorId, "aria-invalid": props.isInvalid, as: "div", className: (0, cx_1.cx)("uxf-input uxf-multi-combobox__button", (renderProps.open || input.focused) && classes_1.CLASSES.IS_FOCUSED, renderProps.disabled && classes_1.CLASSES.IS_DISABLED, props.isReadOnly && classes_1.CLASSES.IS_READONLY, props.isInvalid && classes_1.CLASSES.IS_INVALID, dropdown.placement === "bottom" && `${classes_1.CLASSES.IS_OPEN}--bottom`, dropdown.placement === "top" && `${classes_1.CLASSES.IS_OPEN}--top`, renderProps.open && classes_1.CLASSES.IS_OPEN), onBlur: input.onBlur, onFocus: input.onFocus, ref: stableRef },
|
|
158
|
-
props.leftAddon && react_3.default.createElement(input_1.Input.LeftAddon, null, props.leftAddon),
|
|
159
|
-
props.leftElement && react_3.default.createElement(input_1.Input.LeftElement, null, props.leftElement),
|
|
160
|
-
react_3.default.createElement("div", { className: "uxf-multi-combobox__selected-options" },
|
|
161
|
-
selectedOptions.map((item) => (react_3.default.createElement(chip_1.Chip, { className: "uxf-multi-combobox__input-chip", color: item.color, key: item.id, onClose: props.isDisabled || item.disabled ? undefined : chipCloseHandler(item.id), size: "large", suppressFocus: true }, item.label))),
|
|
162
|
-
react_3.default.createElement(react_2.Combobox.Input, { autoComplete: "off", className: "uxf-input__element uxf-multi-combobox__input", id: id, onBlur: onBlur, onChange: inputChangeHandler, onKeyDown: inputKeyDownHandler, placeholder: props.placeholder, ref: ref, type: "text", value: query })),
|
|
163
|
-
props.rightAddon && react_3.default.createElement(input_1.Input.RightAddon, null, props.rightAddon),
|
|
164
|
-
props.rightElement && react_3.default.createElement(input_1.Input.RightElement, null, props.rightElement), (_b = (_a = props.inputArrow) === null || _a === void 0 ? void 0 : _a.call(props, renderProps.open)) !== null && _b !== void 0 ? _b : (react_3.default.createElement(input_1.Input.ArrowIcon, { iconName: iconName, isOpen: renderProps.open }))),
|
|
165
|
-
react_3.default.createElement(show_1.Show, { when: renderProps.open },
|
|
166
|
-
react_3.default.createElement(react_1.FloatingPortal, null,
|
|
167
|
-
react_3.default.createElement(Options, { className: props.dropdownClassName, emptyMessage: emptyMessage, forwardRef: dropdown.refs.setFloating, keyExtractor: props.keyExtractor, matchWidth: props.dropdownMatchesInputWidth, onCheckboxChange: checkboxChangeHandler, options: filteredOptions, placement: dropdown.placement, renderOption: props.renderOption, size: props.size, style: dropdown.floatingStyles, variant: props.variant, withCheckboxes: props.withCheckboxes }))),
|
|
168
|
-
react_3.default.createElement(show_1.Show, { when: Boolean(props.helperText) },
|
|
169
|
-
react_3.default.createElement("div", { className: (0, cx_1.cx)("uxf-helper-text", props.isInvalid && classes_1.CLASSES.IS_INVALID), id: errorId }, props.helperText)))));
|
|
170
|
-
}));
|
|
171
|
-
});
|
|
172
|
-
exports.MultiCombobox.displayName = "UxfUiMultiCombobox";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +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 multi_combobox_stories_1 = require("./multi-combobox.stories");
|
|
9
|
-
(0, snap_test_1.snapTest)("render default stories", react_1.default.createElement(multi_combobox_stories_1.Default, null));
|
|
10
|
-
(0, snap_test_1.snapTest)("render async stories", react_1.default.createElement(multi_combobox_stories_1.Async, null));
|
|
@@ -1,89 +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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.Default = Default;
|
|
30
|
-
exports.Async = Async;
|
|
31
|
-
exports.ComponentStructure = ComponentStructure;
|
|
32
|
-
const react_1 = __importStar(require("react"));
|
|
33
|
-
const action_1 = require("../utils/action");
|
|
34
|
-
const component_structure_analyzer_1 = __importDefault(require("../utils/component-structure-analyzer"));
|
|
35
|
-
const multi_combobox_1 = require("./multi-combobox");
|
|
36
|
-
const options = [
|
|
37
|
-
{ id: "one", label: "Option red", color: "red" },
|
|
38
|
-
{ id: "two", label: "Option blue", color: "blue", disabled: true },
|
|
39
|
-
{ id: "three", label: "Option green", color: "green" },
|
|
40
|
-
{ id: "four", label: "Option four" },
|
|
41
|
-
{ id: "five", label: "Option five disabled" },
|
|
42
|
-
{ id: "six", label: "Option with diacritics (ěščřžýáíé)" },
|
|
43
|
-
{ id: "seven", label: "Option seven" },
|
|
44
|
-
{ id: "eight", label: "Option eight" },
|
|
45
|
-
{ id: "nine", label: "Option nine" },
|
|
46
|
-
{ id: "ten", label: "Option ten" },
|
|
47
|
-
{ id: "twelve", label: "Option twelve" },
|
|
48
|
-
{ id: "thirteen", label: "Option thirteen" },
|
|
49
|
-
];
|
|
50
|
-
function Default() {
|
|
51
|
-
const [value, setValue] = (0, react_1.useState)(null);
|
|
52
|
-
const onChange = (0, action_1.action)("onChange", (v) => {
|
|
53
|
-
// eslint-disable-next-line no-console
|
|
54
|
-
console.log("Select values: ", v);
|
|
55
|
-
setValue(v);
|
|
56
|
-
});
|
|
57
|
-
const storyComboboxes = (react_1.default.createElement("div", { className: "space-y-8" },
|
|
58
|
-
react_1.default.createElement(multi_combobox_1.MultiCombobox, { dropdownMaxHeight: 350, id: "multi-combobox-1", label: "MultiCombobox", name: "multi-combobox", onChange: onChange, options: options, placeholder: "Vyberte pros\u00EDm jednu nebo v\u00EDce mo\u017Enost\u00ED", value: value }),
|
|
59
|
-
react_1.default.createElement(multi_combobox_1.MultiCombobox, { id: "multi-combobox-2", label: "MultiCombobox with checkboxes", name: "multi-combobox", onChange: onChange, options: options, placeholder: "Vyberte...", value: value, withCheckboxes: true }),
|
|
60
|
-
react_1.default.createElement(multi_combobox_1.MultiCombobox, { helperText: "Start typing to see options...", id: "multi-combobox-3", label: "MultiCombobox with helper text", name: "multi-combobox", onChange: onChange, options: options, placeholder: "Vyberte...", value: value }),
|
|
61
|
-
react_1.default.createElement(multi_combobox_1.MultiCombobox, { helperText: "Error message", id: "multi-combobox-4", isInvalid: true, isRequired: true, label: "MultiCombobox invalid", name: "multi-combobox-invalid", onChange: onChange, options: options, placeholder: "Vyberte...", value: value }),
|
|
62
|
-
react_1.default.createElement(multi_combobox_1.MultiCombobox, { dropdownPlacement: "top", id: "multi-combobox-5", label: "MultiCombobox with dropdown top", name: "multi-combobox", onChange: onChange, options: options, placeholder: "Vyberte...", value: value }),
|
|
63
|
-
react_1.default.createElement(multi_combobox_1.MultiCombobox, { id: "multi-combobox-6", label: "MultiCombobox with renderOption", name: "multi-combobox", onChange: onChange, options: options, placeholder: "Vyberte...", renderOption: (option) => react_1.default.createElement(react_1.default.Fragment, null,
|
|
64
|
-
"Option: ",
|
|
65
|
-
option.label), value: value }),
|
|
66
|
-
react_1.default.createElement(multi_combobox_1.MultiCombobox, { id: "multi-combobox-disabled", isDisabled: true, label: "MultiCombobox disabled", name: "multi-combobox-disabled", onChange: onChange, options: options, placeholder: "Vyberte...", renderOption: (option) => react_1.default.createElement(react_1.default.Fragment, null,
|
|
67
|
-
"Option: ",
|
|
68
|
-
option.label), value: value })));
|
|
69
|
-
return (react_1.default.createElement("div", { className: "flex flex-col lg:flex-row" },
|
|
70
|
-
react_1.default.createElement("div", { className: "space-y-2 p-20 lg:w-1/2" }, storyComboboxes)));
|
|
71
|
-
}
|
|
72
|
-
function Async() {
|
|
73
|
-
const [value, setValue] = (0, react_1.useState)(null);
|
|
74
|
-
const onChange = (0, action_1.action)("onChange", (v) => {
|
|
75
|
-
// eslint-disable-next-line no-console
|
|
76
|
-
console.log("Select values: ", v);
|
|
77
|
-
setValue(v);
|
|
78
|
-
});
|
|
79
|
-
const loadOptions = (query) => Promise.resolve(options.filter((option) => !query || option.label.toLowerCase().includes(query.toLowerCase())));
|
|
80
|
-
const storyComboboxes = (react_1.default.createElement("div", { className: "space-y-8" },
|
|
81
|
-
react_1.default.createElement(multi_combobox_1.MultiCombobox, { id: "multi-combobox-async-1", label: "MultiCombobox", loadOptions: loadOptions, name: "multi-combobox", onChange: onChange, placeholder: "Vyberte...", value: value })));
|
|
82
|
-
return (react_1.default.createElement("div", { className: "flex flex-col lg:flex-row" },
|
|
83
|
-
react_1.default.createElement("div", { className: "space-y-2 p-20 lg:w-1/2" }, storyComboboxes)));
|
|
84
|
-
}
|
|
85
|
-
function ComponentStructure() {
|
|
86
|
-
const [value, onChange] = (0, react_1.useState)(null);
|
|
87
|
-
return (react_1.default.createElement(component_structure_analyzer_1.default, null,
|
|
88
|
-
react_1.default.createElement(multi_combobox_1.MultiCombobox, { helperText: "Start typing to see options...", id: "multi-combobox-structure", label: "MultiCombobox with helper text", name: "multi-combobox", onChange: onChange, options: options, value: value })));
|
|
89
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Placement, Strategy } from "@floating-ui/react";
|
|
2
|
-
import { InputGroupSizes, InputGroupVariants } from "@uxf/ui/input/theme";
|
|
3
|
-
import { CSSProperties, ReactNode } from "react";
|
|
4
|
-
import { ChipColor } from "../chip";
|
|
5
|
-
import { IconsSet } from "../icon/theme";
|
|
6
|
-
import { FormControlProps } from "../types";
|
|
7
|
-
export type MultiComboboxValueId = number | string;
|
|
8
|
-
export type MultiComboboxValue<ValueId = MultiComboboxValueId> = {
|
|
9
|
-
id: ValueId;
|
|
10
|
-
label: string;
|
|
11
|
-
};
|
|
12
|
-
export interface MultiComboboxOption<ValueId = MultiComboboxValueId> extends MultiComboboxValue<ValueId> {
|
|
13
|
-
color?: ChipColor;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface MultiComboboxProps<ValueId = MultiComboboxValueId, Option = MultiComboboxOption<ValueId>> extends FormControlProps<Option[] | null> {
|
|
17
|
-
allOptionsSelectedMessage?: string;
|
|
18
|
-
className?: string;
|
|
19
|
-
dropdownClassName?: string;
|
|
20
|
-
dropdownMatchesInputWidth?: boolean;
|
|
21
|
-
dropdownMaxHeight?: number;
|
|
22
|
-
dropdownPlacement?: Placement;
|
|
23
|
-
dropdownStrategy?: Strategy;
|
|
24
|
-
form?: string;
|
|
25
|
-
helperText?: ReactNode;
|
|
26
|
-
hiddenLabel?: boolean;
|
|
27
|
-
iconName?: keyof IconsSet;
|
|
28
|
-
id?: string;
|
|
29
|
-
inputArrow?: (open: boolean) => ReactNode;
|
|
30
|
-
keyExtractor?: (option: Option) => string | number;
|
|
31
|
-
label: string;
|
|
32
|
-
leftAddon?: ReactNode;
|
|
33
|
-
leftElement?: ReactNode;
|
|
34
|
-
loadOptions?: (query: string) => Promise<Option[]>;
|
|
35
|
-
noOptionsMessage?: string;
|
|
36
|
-
noQueryMessage?: string;
|
|
37
|
-
notFoundMessage?: string;
|
|
38
|
-
options?: Option[];
|
|
39
|
-
placeholder?: string;
|
|
40
|
-
renderOption?: (option: Option) => ReactNode;
|
|
41
|
-
rightAddon?: ReactNode;
|
|
42
|
-
rightElement?: ReactNode;
|
|
43
|
-
size?: keyof InputGroupSizes;
|
|
44
|
-
style?: CSSProperties;
|
|
45
|
-
variant?: keyof InputGroupVariants;
|
|
46
|
-
withCheckboxes?: boolean;
|
|
47
|
-
}
|
|
48
|
-
export type MultiComboboxRef = HTMLInputElement;
|
package/multi-combobox/types.js
DELETED
package/multi-select/index.d.ts
DELETED
package/multi-select/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MultiSelect = void 0;
|
|
4
|
-
var multi_select_1 = require("./multi-select");
|
|
5
|
-
Object.defineProperty(exports, "MultiSelect", { enumerable: true, get: function () { return multi_select_1.MultiSelect; } });
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { MultiSelectOption, MultiSelectProps, MultiSelectValueId } from "./types";
|
|
3
|
-
export declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps<MultiSelectValueId, MultiSelectOption<MultiSelectValueId>> & React.RefAttributes<HTMLDivElement>>;
|