@uxf/ui 1.0.0-beta.98 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/_file-input-base/file-input-base.d.ts +12 -0
- package/_file-input-base/file-input-base.js +32 -0
- package/_file-input-base/index.d.ts +2 -0
- package/_file-input-base/index.js +5 -0
- package/_input-with-popover/index.d.ts +2 -0
- package/_input-with-popover/index.js +5 -0
- package/_input-with-popover/input-with-popover.d.ts +27 -0
- package/_input-with-popover/input-with-popover.js +89 -0
- package/_private-utils/get-provider-config.js +1 -0
- package/_select-base/_select-base.d.ts +53 -0
- package/_select-base/_select-base.js +94 -0
- package/_select-base/index.d.ts +2 -0
- package/_select-base/index.js +5 -0
- package/avatar/avatar.js +25 -5
- package/avatar/avatar.spec.js +2 -2
- package/avatar/avatar.stories.d.ts +1 -1
- package/avatar/index.d.ts +2 -1
- package/avatar/index.js +3 -15
- package/avatar-file-input/avatar-file-input.d.ts +5 -30
- package/avatar-file-input/avatar-file-input.js +12 -34
- package/avatar-file-input/avatar-file-input.spec.d.ts +1 -0
- package/avatar-file-input/avatar-file-input.spec.js +9 -0
- package/avatar-file-input/avatar-file-input.stories.d.ts +1 -1
- package/avatar-file-input/avatar-file-input.stories.js +44 -18
- package/avatar-file-input/index.d.ts +2 -1
- package/avatar-file-input/index.js +3 -15
- package/badge/badge.d.ts +1 -1
- package/badge/badge.js +25 -5
- package/badge/badge.spec.d.ts +1 -0
- package/badge/badge.spec.js +9 -0
- package/badge/badge.stories.d.ts +1 -1
- package/badge/index.d.ts +3 -1
- package/badge/index.js +3 -15
- package/badge/theme.d.ts +1 -0
- package/button/button.d.ts +3 -3
- package/button/button.js +26 -8
- package/button/button.spec.d.ts +1 -0
- package/button/button.spec.js +9 -0
- package/button/button.stories.d.ts +2 -6
- package/button/button.stories.js +19 -17
- package/button/index.d.ts +3 -1
- package/button/index.js +3 -15
- package/button/theme.d.ts +3 -0
- package/button-group/button-group.d.ts +6 -0
- package/button-group/button-group.js +13 -0
- package/button-group/button-group.spec.d.ts +1 -0
- package/button-group/button-group.spec.js +9 -0
- package/button-group/button-group.stories.d.ts +7 -0
- package/button-group/button-group.stories.js +40 -0
- package/button-group/index.d.ts +2 -0
- package/button-group/index.js +5 -0
- package/button-list/button-list.d.ts +21 -0
- package/button-list/button-list.js +77 -0
- package/button-list/button-list.spec.d.ts +1 -0
- package/button-list/button-list.spec.js +9 -0
- package/button-list/button-list.stories.d.ts +7 -0
- package/button-list/button-list.stories.js +55 -0
- package/button-list/index.d.ts +2 -0
- package/button-list/index.js +5 -0
- package/calendar/calendar-day-cell.d.ts +7 -0
- package/{date-picker-input/date-picker-day.js → calendar/calendar-day-cell.js} +8 -9
- package/calendar/calendar-provider.d.ts +6 -0
- package/{date-picker-input/date-picker-provider.js → calendar/calendar-provider.js} +9 -9
- package/calendar/calendar.d.ts +7 -0
- package/calendar/calendar.js +53 -0
- package/calendar/calendar.stories.d.ts +10 -0
- package/calendar/calendar.stories.js +49 -0
- package/calendar/index.d.ts +1 -0
- package/{form-control → calendar}/index.js +1 -1
- package/checkbox/checkbox.d.ts +6 -7
- package/checkbox/checkbox.js +48 -13
- package/checkbox/checkbox.spec.js +2 -4
- package/checkbox/checkbox.stories.d.ts +2 -2
- package/checkbox/checkbox.stories.js +8 -6
- package/checkbox/index.d.ts +3 -1
- package/checkbox/index.js +3 -15
- package/{checkbox-visual → checkbox}/theme.d.ts +1 -0
- package/checkbox-button/checkbox-button.d.ts +3 -2
- package/checkbox-button/checkbox-button.js +26 -6
- package/checkbox-button/checkbox-button.spec.js +2 -3
- package/checkbox-button/checkbox-button.stories.d.ts +1 -1
- package/checkbox-button/checkbox-button.stories.js +8 -18
- package/checkbox-button/index.d.ts +2 -1
- package/checkbox-button/index.js +3 -15
- package/checkbox-input/checkbox-input.d.ts +12 -0
- package/checkbox-input/checkbox-input.js +37 -0
- package/checkbox-input/checkbox-input.spec.d.ts +1 -0
- package/checkbox-input/checkbox-input.spec.js +9 -0
- package/{checkbox-visual/checkbox-visual.stories.d.ts → checkbox-input/checkbox-input.stories.d.ts} +2 -2
- package/{checkbox-visual/checkbox-visual.stories.js → checkbox-input/checkbox-input.stories.js} +9 -7
- package/checkbox-input/index.d.ts +2 -0
- package/checkbox-input/index.js +5 -0
- package/chip/chip.d.ts +5 -4
- package/chip/chip.js +26 -6
- package/chip/chip.stories.d.ts +2 -6
- package/chip/chip.stories.js +2 -2
- package/chip/theme.d.ts +5 -4
- package/color-radio/color-radio.d.ts +12 -0
- package/color-radio/color-radio.js +65 -0
- package/color-radio/color-radio.spec.d.ts +1 -0
- package/color-radio/color-radio.spec.js +9 -0
- package/color-radio/color-radio.stories.d.ts +7 -0
- package/color-radio/color-radio.stories.js +31 -0
- package/color-radio/index.d.ts +2 -0
- package/color-radio/index.js +5 -0
- package/color-radio-group/color-radio-group.d.ts +3 -2
- package/color-radio-group/color-radio-group.js +12 -10
- package/color-radio-group/color-radio-group.spec.d.ts +1 -0
- package/color-radio-group/color-radio-group.spec.js +9 -0
- package/color-radio-group/color-radio-group.stories.d.ts +1 -1
- package/color-radio-group/color-radio-group.stories.js +4 -2
- package/color-radio-group/index.d.ts +2 -1
- package/color-radio-group/index.js +3 -15
- package/color-scheme/index.d.ts +1 -0
- package/color-scheme/index.js +3 -1
- package/color-scheme/use-color-scheme.d.ts +1 -0
- package/color-scheme/use-color-scheme.js +19 -0
- package/combobox/combobox.d.ts +19 -20
- package/combobox/combobox.js +19 -31
- package/combobox/combobox.spec.d.ts +1 -0
- package/combobox/combobox.spec.js +10 -0
- package/combobox/combobox.stories.d.ts +7 -4
- package/combobox/combobox.stories.js +25 -12
- package/combobox/index.d.ts +2 -1
- package/combobox/index.js +3 -15
- package/config/icons-config.d.ts +1 -1
- package/config/icons-config.js +1 -1
- package/config/icons.d.ts +41 -1
- package/config/icons.js +8 -0
- package/content/types.d.ts +3 -3
- package/context/context.d.ts +2 -1
- package/context/provider.d.ts +1 -1
- package/context/provider.js +3 -0
- package/context/use-component-context.d.ts +1 -1
- package/date-picker/date-picker-content.d.ts +2 -0
- package/{date-picker-input/date-picker.js → date-picker/date-picker-content.js} +5 -3
- package/{date-picker-input → date-picker}/date-picker-decade.js +12 -10
- package/{date-picker-input → date-picker}/date-picker-month.js +21 -15
- package/date-picker/date-picker-navigation.d.ts +9 -0
- package/date-picker/date-picker-navigation.js +19 -0
- package/{date-picker-input → date-picker}/date-picker-year.js +16 -11
- package/date-picker/date-picker.d.ts +10 -0
- package/date-picker/date-picker.js +27 -0
- package/date-picker/date-picker.spec.d.ts +1 -0
- package/date-picker/date-picker.spec.js +9 -0
- package/date-picker/date-picker.stories.d.ts +7 -0
- package/date-picker/date-picker.stories.js +43 -0
- package/date-picker/index.d.ts +3 -0
- package/date-picker/index.js +5 -0
- package/date-picker/types.d.ts +1 -0
- package/date-picker-input/date-picker-input.d.ts +9 -18
- package/date-picker-input/date-picker-input.js +54 -59
- package/date-picker-input/date-picker-input.spec.d.ts +1 -0
- package/date-picker-input/date-picker-input.spec.js +9 -0
- package/date-picker-input/date-picker-input.stories.d.ts +1 -8
- package/date-picker-input/date-picker-input.stories.js +9 -14
- package/date-picker-input/index.d.ts +2 -3
- package/date-picker-input/index.js +6 -17
- package/datetime-picker/datetime-picker.d.ts +13 -0
- package/datetime-picker/datetime-picker.js +94 -0
- package/datetime-picker/datetime-picker.spec.d.ts +1 -0
- package/datetime-picker/datetime-picker.spec.js +9 -0
- package/datetime-picker/datetime-picker.stories.d.ts +7 -0
- package/datetime-picker/datetime-picker.stories.js +43 -0
- package/datetime-picker/index.d.ts +2 -0
- package/datetime-picker/index.js +7 -0
- package/datetime-picker-input/datetime-picker-input.d.ts +12 -0
- package/datetime-picker-input/datetime-picker-input.js +81 -0
- package/datetime-picker-input/datetime-picker-input.spec.d.ts +1 -0
- package/datetime-picker-input/datetime-picker-input.spec.js +9 -0
- package/datetime-picker-input/datetime-picker-input.stories.d.ts +7 -0
- package/datetime-picker-input/datetime-picker-input.stories.js +49 -0
- package/datetime-picker-input/index.d.ts +2 -0
- package/datetime-picker-input/index.js +7 -0
- package/dropdown/dropdown.d.ts +4 -4
- package/dropdown/dropdown.js +27 -6
- package/dropdown/dropdown.spec.d.ts +1 -0
- package/dropdown/dropdown.spec.js +9 -0
- package/dropdown/dropdown.stories.d.ts +2 -2
- package/dropdown/index.d.ts +2 -1
- package/dropdown/index.js +3 -15
- package/dropzone/dropzone-input.d.ts +19 -0
- package/dropzone/dropzone-input.js +121 -0
- package/dropzone/dropzone-list.d.ts +10 -0
- package/dropzone/dropzone-list.js +92 -0
- package/dropzone/dropzone.spec.d.ts +1 -0
- package/dropzone/dropzone.spec.js +9 -0
- package/dropzone/dropzone.stories.d.ts +10 -0
- package/dropzone/dropzone.stories.js +63 -0
- package/dropzone/index.d.ts +6 -0
- package/dropzone/index.js +6 -0
- package/dropzone/types.d.ts +10 -0
- package/dropzone/types.js +2 -0
- package/error-message/error-message.d.ts +3 -4
- package/error-message/error-message.js +3 -2
- package/error-message/error-message.spec.d.ts +1 -0
- package/error-message/error-message.spec.js +9 -0
- package/error-message/error-message.stories.d.ts +3 -4
- package/error-message/index.d.ts +1 -1
- package/error-message/index.js +3 -15
- package/file-input/file-input.d.ts +12 -0
- package/file-input/file-input.js +75 -0
- package/file-input/file-input.spec.d.ts +1 -0
- package/file-input/file-input.spec.js +9 -0
- package/file-input/file-input.stories.d.ts +7 -0
- package/file-input/file-input.stories.js +50 -0
- package/file-input/index.d.ts +2 -0
- package/file-input/index.js +5 -0
- package/flash-messages/flash-message.d.ts +1 -1
- package/flash-messages/flash-message.js +1 -0
- package/flash-messages/flash-messages.js +1 -1
- package/flash-messages/flash-messages.spec.d.ts +1 -0
- package/flash-messages/flash-messages.spec.js +9 -0
- package/flash-messages/flash-messages.stories.d.ts +1 -1
- package/flash-messages/flash-messages.stories.js +26 -7
- package/flash-messages/index.d.ts +3 -0
- package/flash-messages/index.js +8 -0
- package/flash-messages/theme.d.ts +2 -0
- package/{form-control/form-control.d.ts → form-component/form-component.d.ts} +2 -2
- package/form-component/form-component.js +41 -0
- package/form-component/form-component.spec.d.ts +1 -0
- package/form-component/form-component.spec.js +9 -0
- package/{form-control/form-control.stories.d.ts → form-component/form-component.stories.d.ts} +2 -2
- package/form-component/form-component.stories.js +25 -0
- package/form-component/index.d.ts +2 -0
- package/form-component/index.js +5 -0
- package/hooks/use-async-loading.d.ts +4 -0
- package/hooks/use-async-loading.js +32 -0
- package/hooks/use-dropdown.d.ts +32 -2
- package/hooks/use-dropdown.js +4 -6
- package/hooks/use-input-submit.d.ts +1 -1
- package/icon/icon.d.ts +3 -3
- package/icon/icon.js +25 -5
- package/icon/icon.spec.d.ts +1 -0
- package/icon/icon.spec.js +10 -0
- package/icon/icon.stories.d.ts +6 -10
- package/icon/icon.stories.js +2 -2
- package/icon/index.d.ts +2 -1
- package/icon/index.js +3 -15
- package/icon/types.d.ts +1 -1
- package/image-gallery/components/arrow-button.d.ts +7 -0
- package/image-gallery/components/{previous-button.js → arrow-button.js} +7 -5
- package/image-gallery/components/close-button.d.ts +4 -3
- package/image-gallery/components/close-button.js +9 -5
- package/image-gallery/components/dot.d.ts +3 -3
- package/image-gallery/components/dot.js +6 -4
- package/image-gallery/components/gallery.d.ts +4 -3
- package/image-gallery/components/gallery.js +20 -20
- package/image-gallery/context.d.ts +1 -1
- package/image-gallery/image-gallery.d.ts +4 -4
- package/image-gallery/image-gallery.js +7 -8
- package/image-gallery/image-gallery.spec.d.ts +1 -0
- package/image-gallery/image-gallery.spec.js +9 -0
- package/image-gallery/image-gallery.stories.d.ts +5 -4
- package/image-gallery/image-gallery.stories.js +21 -10
- package/image-gallery/image.d.ts +2 -3
- package/image-gallery/image.js +8 -4
- package/image-gallery/index.d.ts +6 -4
- package/image-gallery/index.js +6 -24
- package/image-gallery/types.d.ts +4 -2
- package/image-gallery/use-image.js +3 -2
- package/input/index.d.ts +9 -8
- package/input/index.js +4 -2
- package/input/input-element.d.ts +2 -1
- package/input/input-element.js +28 -6
- package/input/input-left-addon.d.ts +3 -7
- package/input/input-left-addon.js +6 -4
- package/input/input-left-element.d.ts +3 -7
- package/input/input-left-element.js +3 -3
- package/input/input-remove-button.d.ts +5 -0
- package/input/input-remove-button.js +29 -0
- package/input/input-right-addon.d.ts +2 -5
- package/input/input-right-addon.js +6 -4
- package/input/input-right-element.d.ts +3 -7
- package/input/input-right-element.js +3 -3
- package/input/input.d.ts +11 -1
- package/input/input.js +23 -23
- package/input/input.spec.d.ts +1 -0
- package/input/input.spec.js +10 -0
- package/input/input.stories.d.ts +10 -9
- package/input/input.stories.js +13 -10
- package/input/theme.d.ts +2 -0
- package/label/index.d.ts +2 -1
- package/label/index.js +3 -15
- package/label/label.js +28 -6
- package/label/label.spec.d.ts +1 -0
- package/label/label.spec.js +9 -0
- package/label/label.stories.d.ts +1 -1
- package/layout/index.d.ts +2 -1
- package/layout/index.js +3 -15
- package/layout/layout.js +5 -4
- package/layout/layout.spec.d.ts +1 -0
- package/layout/layout.spec.js +9 -0
- package/layout/layout.stories.d.ts +1 -1
- package/list-item/index.d.ts +2 -1
- package/list-item/index.js +3 -15
- package/list-item/list-item.js +25 -5
- package/list-item/list-item.spec.d.ts +1 -0
- package/list-item/list-item.spec.js +9 -0
- package/list-item/list-item.stories.d.ts +1 -1
- package/list-item/list-item.stories.js +7 -5
- package/loader/index.d.ts +2 -0
- package/loader/index.js +5 -0
- package/loader/loader.d.ts +5 -2
- package/loader/loader.js +27 -6
- package/loader/loader.spec.d.ts +1 -0
- package/loader/loader.spec.js +9 -0
- package/loader/loader.stories.d.ts +2 -2
- package/loader/loader.stories.js +4 -3
- package/modal/index.d.ts +3 -0
- package/modal/index.js +9 -0
- package/modal/modal-dialog.d.ts +11 -0
- package/modal/modal-dialog.js +38 -0
- package/modal/modal-service.d.ts +5 -0
- package/modal/modal-service.js +21 -0
- package/modal/modal.d.ts +14 -0
- package/modal/modal.js +51 -0
- package/modal/modal.spec.d.ts +1 -0
- package/modal/modal.spec.js +9 -0
- package/modal/modal.stories.d.ts +7 -0
- package/modal/modal.stories.js +50 -0
- package/modal/theme.d.ts +5 -0
- package/modal/theme.js +2 -0
- package/multi-combobox/_multi-combobox-base.d.ts +8 -0
- package/multi-combobox/_multi-combobox-base.js +112 -0
- package/multi-combobox/index.d.ts +2 -0
- package/multi-combobox/index.js +5 -0
- package/multi-combobox/multi-combobox.d.ts +3 -0
- package/multi-combobox/multi-combobox.js +67 -0
- package/multi-combobox/multi-combobox.spec.d.ts +1 -0
- package/multi-combobox/multi-combobox.spec.js +10 -0
- package/multi-combobox/multi-combobox.stories.d.ts +10 -0
- package/multi-combobox/multi-combobox.stories.js +86 -0
- package/multi-combobox/types.d.ts +36 -0
- package/multi-combobox/types.js +2 -0
- package/multi-select/_multi-select-base.d.ts +8 -0
- package/multi-select/_multi-select-base.js +77 -0
- package/multi-select/index.d.ts +2 -0
- package/multi-select/index.js +5 -0
- package/multi-select/multi-select.d.ts +3 -0
- package/multi-select/multi-select.js +55 -0
- package/multi-select/multi-select.spec.d.ts +1 -0
- package/multi-select/multi-select.spec.js +9 -0
- package/multi-select/multi-select.stories.d.ts +9 -0
- package/{mutli-combobox/multi-combobox.stories.js → multi-select/multi-select.stories.js} +17 -22
- package/multi-select/types.d.ts +31 -0
- package/multi-select/types.js +2 -0
- package/package.json +11 -11
- package/pagination/index.d.ts +2 -0
- package/pagination/index.js +5 -0
- package/pagination/pagination.d.ts +3 -0
- package/pagination/pagination.js +11 -6
- package/pagination/pagination.spec.d.ts +1 -0
- package/pagination/pagination.spec.js +9 -0
- package/pagination/pagination.stories.d.ts +4 -1
- package/pagination/pagination.stories.js +23 -3
- package/pagination/theme.d.ts +7 -0
- package/pagination/theme.js +2 -0
- package/paper/index.d.ts +2 -0
- package/paper/index.js +5 -0
- package/paper/paper.d.ts +2 -2
- package/paper/paper.js +25 -5
- package/paper/paper.spec.d.ts +1 -0
- package/paper/paper.spec.js +9 -0
- package/paper/paper.stories.d.ts +2 -2
- package/radio/index.d.ts +3 -1
- package/radio/index.js +3 -15
- package/radio/radio.d.ts +9 -6
- package/radio/radio.js +45 -9
- package/radio/radio.spec.js +2 -3
- package/radio/radio.stories.d.ts +2 -2
- package/radio/radio.stories.js +12 -12
- package/radio/theme.d.ts +1 -0
- package/radio-group/index.d.ts +3 -1
- package/radio-group/index.js +3 -15
- package/radio-group/radio-group.d.ts +3 -4
- package/radio-group/radio-group.js +10 -8
- package/radio-group/radio-group.spec.js +2 -17
- package/radio-group/radio-group.stories.d.ts +1 -1
- package/radio-group/radio-group.stories.js +7 -4
- package/radio-group/theme.d.ts +2 -0
- package/raster-image/index.d.ts +2 -1
- package/raster-image/index.js +3 -15
- package/raster-image/raster-image.d.ts +3 -3
- package/raster-image/raster-image.js +2 -1
- package/raster-image/raster-image.spec.d.ts +1 -0
- package/raster-image/raster-image.spec.js +9 -0
- package/raster-image/raster-image.stories.d.ts +2 -25
- package/select/index.d.ts +2 -1
- package/select/index.js +3 -15
- package/select/select.d.ts +16 -17
- package/select/select.js +16 -52
- package/select/select.spec.d.ts +1 -0
- package/select/select.spec.js +9 -0
- package/select/select.stories.d.ts +6 -4
- package/select/select.stories.js +24 -27
- package/select/theme.d.ts +5 -0
- package/select/theme.js +2 -0
- package/tabs/index.d.ts +2 -1
- package/tabs/index.js +3 -15
- package/tabs/tabs.d.ts +2 -1
- package/tabs/tabs.js +4 -3
- package/tabs/tabs.spec.d.ts +1 -0
- package/tabs/tabs.spec.js +9 -0
- package/tabs/tabs.stories.d.ts +1 -1
- package/text-input/index.d.ts +2 -1
- package/text-input/index.js +3 -15
- package/text-input/text-input.d.ts +2 -2
- package/text-input/text-input.js +12 -19
- package/text-input/text-input.spec.js +2 -2
- package/text-input/text-input.stories.d.ts +2 -2
- package/text-input/text-input.stories.js +23 -7
- package/text-link/index.d.ts +2 -1
- package/text-link/index.js +3 -15
- package/text-link/text-link.d.ts +3 -0
- package/text-link/text-link.js +27 -7
- package/text-link/text-link.spec.d.ts +1 -0
- package/text-link/text-link.spec.js +9 -0
- package/text-link/text-link.stories.d.ts +1 -1
- package/text-link/text-link.stories.js +4 -2
- package/text-link/theme.d.ts +3 -0
- package/text-link/theme.js +2 -0
- package/textarea/index.d.ts +2 -1
- package/textarea/index.js +3 -15
- package/textarea/textarea.js +11 -19
- package/textarea/textarea.spec.d.ts +1 -0
- package/textarea/textarea.spec.js +9 -0
- package/textarea/textarea.stories.d.ts +1 -1
- package/textarea/textarea.stories.js +4 -2
- package/time-picker/index.d.ts +2 -0
- package/time-picker/index.js +5 -0
- package/{time-picker-input → time-picker}/time-picker-hour.js +2 -0
- package/{time-picker-input → time-picker}/time-picker-hours.js +1 -0
- package/time-picker/time-picker-input.spec.d.ts +1 -0
- package/time-picker/time-picker-input.spec.js +9 -0
- package/time-picker/time-picker-input.stories.d.ts +7 -0
- package/time-picker/time-picker-input.stories.js +43 -0
- package/{time-picker-input → time-picker}/time-picker-minute.js +2 -0
- package/{time-picker-input → time-picker}/time-picker-minutes.js +1 -0
- package/{time-picker-input → time-picker}/time-picker.d.ts +1 -1
- package/{time-picker-input → time-picker}/time-picker.js +2 -1
- package/time-picker-input/index.d.ts +2 -2
- package/time-picker-input/index.js +6 -16
- package/time-picker-input/time-picker-input.d.ts +7 -19
- package/time-picker-input/time-picker-input.js +51 -62
- package/time-picker-input/time-picker-input.spec.d.ts +1 -0
- package/time-picker-input/time-picker-input.spec.js +9 -0
- package/time-picker-input/time-picker-input.stories.d.ts +1 -1
- package/time-picker-input/time-picker-input.stories.js +9 -6
- package/toggle/index.d.ts +3 -1
- package/toggle/index.js +3 -15
- package/toggle/theme.d.ts +1 -0
- package/toggle/toggle.d.ts +6 -6
- package/toggle/toggle.js +26 -6
- package/toggle/toggle.spec.d.ts +1 -0
- package/toggle/toggle.spec.js +9 -0
- package/toggle/toggle.stories.d.ts +1 -1
- package/toggle/toggle.stories.js +6 -12
- package/tooltip/index.d.ts +4 -0
- package/tooltip/index.js +7 -0
- package/tooltip/tooltip.d.ts +9 -0
- package/tooltip/tooltip.js +70 -0
- package/tooltip/tooltip.spec.d.ts +1 -0
- package/tooltip/tooltip.spec.js +9 -0
- package/tooltip/tooltip.stories.d.ts +7 -0
- package/tooltip/tooltip.stories.js +19 -0
- package/tooltip/use-tooltip.d.ts +43 -0
- package/tooltip/use-tooltip.js +36 -0
- package/tw-tokens/tw-box-shadow.d.ts +1 -1
- package/tw-tokens/tw-colors.d.ts +27 -1
- package/tw-tokens/tw-colors.js +26 -0
- package/tw-tokens/tw-containers.d.ts +1 -1
- package/tw-tokens/tw-font-size.d.ts +1 -1
- package/tw-tokens/tw-font-weight.d.ts +1 -1
- package/tw-tokens/tw-line-height.d.ts +1 -1
- package/tw-tokens/tw-screens.d.ts +1 -1
- package/tw-tokens/tw-spacing.d.ts +1 -1
- package/tw-tokens/tw-z-index.d.ts +1 -1
- package/types/color.d.ts +2 -2
- package/types/file-response.d.ts +12 -0
- package/types/file-response.js +2 -0
- package/types/form-control-props.d.ts +10 -6
- package/types/index.d.ts +1 -0
- package/types/index.js +1 -0
- package/typography/typography.spec.js +2 -14
- package/typography/typography.stories.d.ts +2 -2
- package/utils/component-structure-analyzer.d.ts +2 -2
- package/utils/files/get-file-url.d.ts +2 -0
- package/utils/files/get-file-url.js +7 -0
- package/utils/icons-config.js +40 -0
- package/utils/mocks/uploadFIle.mock.d.ts +2 -0
- package/utils/mocks/uploadFIle.mock.js +46 -0
- package/utils/snap-test.js +5 -0
- package/utils/storybook-config.d.ts +2 -2
- package/utils/storybook-config.js +1 -1
- package/utils/tailwind-config.js +17 -74
- package/utils/tailwind-plugins/container.js +39 -0
- package/utils/tailwind-plugins/variants.js +15 -0
- package/utils/tailwind-theme-defaults.js +20 -0
- package/checkbox-visual/checkbox-visual.d.ts +0 -10
- package/checkbox-visual/checkbox-visual.js +0 -17
- package/checkbox-visual/index.d.ts +0 -1
- package/checkbox-visual/index.js +0 -17
- package/color-radio-group/color-radio.d.ts +0 -7
- package/color-radio-group/color-radio.js +0 -22
- package/css/avatar-file-input.css +0 -7
- package/css/avatar.css +0 -15
- package/css/badge.css +0 -23
- package/css/button.css +0 -221
- package/css/button.old.css +0 -231
- package/css/checkbox-button.css +0 -98
- package/css/checkbox.css +0 -147
- package/css/chip.css +0 -171
- package/css/chip.old.css +0 -37
- package/css/color-radio-group.css +0 -21
- package/css/color-radio.css +0 -21
- package/css/combobox.css +0 -108
- package/css/combobox.old.css +0 -102
- package/css/component-structure-analyzer.css +0 -31
- package/css/date-picker-input.css +0 -135
- package/css/date-picker.css +0 -90
- package/css/dropdown.css +0 -24
- package/css/dropdown.old.css +0 -24
- package/css/error-message.css +0 -3
- package/css/flash-messages.css +0 -20
- package/css/form-control.css +0 -7
- package/css/icon.css +0 -7
- package/css/input-basic.css +0 -18
- package/css/input.css +0 -205
- package/css/input.old.css +0 -193
- package/css/label.css +0 -15
- package/css/layout.css +0 -47
- package/css/list-item.css +0 -29
- package/css/loader.css +0 -11
- package/css/multi-combobox.css +0 -72
- package/css/pagination.css +0 -28
- package/css/paper.css +0 -3
- package/css/radio-group.css +0 -160
- package/css/radio.css +0 -105
- package/css/raster-image.css +0 -20
- package/css/select.css +0 -72
- package/css/select.old.css +0 -66
- package/css/tabs.css +0 -131
- package/css/text-link.css +0 -12
- package/css/textarea.css +0 -117
- package/css/time-picker-input.css +0 -138
- package/css/time-picker.css +0 -27
- package/css/toggle.css +0 -80
- package/css/typography.css +0 -51
- package/date-picker-input/date-picker-day.d.ts +0 -8
- package/date-picker-input/date-picker-provider.d.ts +0 -8
- package/date-picker-input/date-picker.d.ts +0 -3
- package/date-picker-input/types.d.ts +0 -5
- package/form-control/form-control.js +0 -19
- package/form-control/form-control.stories.js +0 -25
- package/form-control/index.d.ts +0 -1
- package/image-gallery/components/next-button.d.ts +0 -6
- package/image-gallery/components/next-button.js +0 -12
- package/image-gallery/components/previous-button.d.ts +0 -6
- package/mutli-combobox/index.d.ts +0 -1
- package/mutli-combobox/index.js +0 -17
- package/mutli-combobox/multi-combobox.d.ts +0 -27
- package/mutli-combobox/multi-combobox.js +0 -94
- package/mutli-combobox/multi-combobox.stories.d.ts +0 -10
- /package/{checkbox-visual → checkbox}/theme.js +0 -0
- /package/{date-picker-input → date-picker}/date-picker-decade.d.ts +0 -0
- /package/{date-picker-input → date-picker}/date-picker-month.d.ts +0 -0
- /package/{date-picker-input → date-picker}/date-picker-year.d.ts +0 -0
- /package/{date-picker-input → date-picker}/types.js +0 -0
- /package/{time-picker-input → time-picker}/time-picker-hour.d.ts +0 -0
- /package/{time-picker-input → time-picker}/time-picker-hours.d.ts +0 -0
- /package/{time-picker-input → time-picker}/time-picker-minute.d.ts +0 -0
- /package/{time-picker-input → time-picker}/time-picker-minutes.d.ts +0 -0
package/utils/tailwind-config.js
CHANGED
|
@@ -1,32 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
const {
|
|
1
|
+
const tailwindThemeDefaults = require("./tailwind-theme-defaults");
|
|
2
|
+
const { colors, fontFamily } = require("tailwindcss/defaultTheme");
|
|
3
3
|
const { rem } = require("@uxf/styles/units/rem");
|
|
4
4
|
|
|
5
|
-
/** @type {Record<string, string>} */
|
|
6
|
-
const CONTAINERS = {
|
|
7
|
-
xs: rem(540),
|
|
8
|
-
sm: rem(720),
|
|
9
|
-
md: rem(928),
|
|
10
|
-
lg: rem(1024),
|
|
11
|
-
xl: rem(1216),
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
/** @type {Record<string, string>} */
|
|
15
|
-
const SCREENS = {
|
|
16
|
-
xs: em(576),
|
|
17
|
-
sm: em(768),
|
|
18
|
-
md: em(992),
|
|
19
|
-
lg: em(1200),
|
|
20
|
-
xl: em(1440),
|
|
21
|
-
};
|
|
22
|
-
|
|
23
5
|
/** @type {import('tailwindcss').Config} */
|
|
24
6
|
module.exports = {
|
|
25
7
|
content: [],
|
|
26
8
|
darkMode: "class",
|
|
27
9
|
theme: {
|
|
28
|
-
containers:
|
|
29
|
-
screens:
|
|
10
|
+
containers: tailwindThemeDefaults.containers,
|
|
11
|
+
screens: tailwindThemeDefaults.screens,
|
|
30
12
|
inputSize: {
|
|
31
13
|
xs: "30px",
|
|
32
14
|
sm: "34px",
|
|
@@ -38,8 +20,13 @@ module.exports = {
|
|
|
38
20
|
borderRadius: {
|
|
39
21
|
inherit: "inherit",
|
|
40
22
|
},
|
|
23
|
+
boxShadow: {
|
|
24
|
+
paper: "0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06)",
|
|
25
|
+
},
|
|
41
26
|
colors: {
|
|
42
27
|
inherit: "inherit",
|
|
28
|
+
transparent: "transparent",
|
|
29
|
+
current: "currentColor",
|
|
43
30
|
lightHigh: "#111827",
|
|
44
31
|
lightMedium: "#4b5563",
|
|
45
32
|
lightLow: "#9ca3af",
|
|
@@ -49,6 +36,7 @@ module.exports = {
|
|
|
49
36
|
lightBorder: "#e5e7eb",
|
|
50
37
|
darkBorder: "#374151",
|
|
51
38
|
primary: {
|
|
39
|
+
DEFAULT: "#3b82f6",
|
|
52
40
|
50: "#eff6ff",
|
|
53
41
|
100: "#dbeafe",
|
|
54
42
|
200: "#bfdbfe",
|
|
@@ -61,6 +49,7 @@ module.exports = {
|
|
|
61
49
|
900: "#1e3a8a",
|
|
62
50
|
},
|
|
63
51
|
success: {
|
|
52
|
+
DEFAULT: "#22c55e",
|
|
64
53
|
50: "#f0fdf4",
|
|
65
54
|
100: "#dcfce7",
|
|
66
55
|
200: "#bbf7d0",
|
|
@@ -73,6 +62,7 @@ module.exports = {
|
|
|
73
62
|
900: "#14532d",
|
|
74
63
|
},
|
|
75
64
|
warning: {
|
|
65
|
+
DEFAULT: "#f97316",
|
|
76
66
|
50: "#fff7ed",
|
|
77
67
|
100: "#ffedd5",
|
|
78
68
|
200: "#fed7aa",
|
|
@@ -85,6 +75,7 @@ module.exports = {
|
|
|
85
75
|
900: "#7c2d12",
|
|
86
76
|
},
|
|
87
77
|
error: {
|
|
78
|
+
DEFAULT: "#ef4444",
|
|
88
79
|
50: "#fef2f2",
|
|
89
80
|
100: "#fee2e2",
|
|
90
81
|
200: "#fecaca",
|
|
@@ -97,8 +88,8 @@ module.exports = {
|
|
|
97
88
|
900: "#7f1d1d",
|
|
98
89
|
},
|
|
99
90
|
},
|
|
100
|
-
|
|
101
|
-
|
|
91
|
+
fontFamily: {
|
|
92
|
+
sans: ["var(--font-inter)", ...fontFamily.sans],
|
|
102
93
|
},
|
|
103
94
|
fontSize: {
|
|
104
95
|
desktopH1: [rem(96), 112 / 96],
|
|
@@ -132,58 +123,10 @@ module.exports = {
|
|
|
132
123
|
},
|
|
133
124
|
},
|
|
134
125
|
corePlugins: {
|
|
135
|
-
aspectRatio: false,
|
|
136
126
|
container: false,
|
|
137
127
|
},
|
|
138
128
|
plugins: [
|
|
139
|
-
require("
|
|
140
|
-
require("
|
|
141
|
-
plugin(
|
|
142
|
-
({ addComponents, theme }) => {
|
|
143
|
-
const screens = theme("screens", SCREENS);
|
|
144
|
-
const containers = theme("containers", CONTAINERS);
|
|
145
|
-
|
|
146
|
-
const mqs = Object.entries(screens);
|
|
147
|
-
const widths = mqs
|
|
148
|
-
.map((item) => {
|
|
149
|
-
const key = item[0];
|
|
150
|
-
const value = item[1];
|
|
151
|
-
const width = containers[key];
|
|
152
|
-
if (width) {
|
|
153
|
-
return { [`@media (min-width: ${value})`]: { ".container": { "max-width": width } } };
|
|
154
|
-
}
|
|
155
|
-
})
|
|
156
|
-
.filter((i) => i);
|
|
157
|
-
|
|
158
|
-
addComponents([
|
|
159
|
-
{
|
|
160
|
-
".container": {
|
|
161
|
-
"margin-left": "auto",
|
|
162
|
-
"margin-right": "auto",
|
|
163
|
-
width: "100%",
|
|
164
|
-
},
|
|
165
|
-
},
|
|
166
|
-
...widths,
|
|
167
|
-
]);
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
content: [],
|
|
171
|
-
theme: {
|
|
172
|
-
containers: CONTAINERS,
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
|
-
),
|
|
176
|
-
plugin(({ addVariant }) => {
|
|
177
|
-
addVariant("is-active", "&.is-active");
|
|
178
|
-
addVariant("is-selected", "&.is-selected");
|
|
179
|
-
addVariant("is-hoverable", ["&.is-hoverable:active", "&.is-hoverable:hover"]);
|
|
180
|
-
addVariant("is-focused", "&.is-focused");
|
|
181
|
-
addVariant("is-required", ["&.is-required", "&:required"]);
|
|
182
|
-
addVariant("is-invalid", "&.is-invalid");
|
|
183
|
-
addVariant("is-loading", ["&.is-loading"]);
|
|
184
|
-
addVariant("is-readonly", ["&.is-readonly", "&:readonly"]);
|
|
185
|
-
addVariant("is-disabled", ["&.is-disabled", "&:disabled"]);
|
|
186
|
-
addVariant("is-empty", ["&.is-empty"]);
|
|
187
|
-
}),
|
|
129
|
+
require("./tailwind-plugins/container")(tailwindThemeDefaults.screens, tailwindThemeDefaults.containers),
|
|
130
|
+
require("./tailwind-plugins/variants"),
|
|
188
131
|
],
|
|
189
132
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const plugin = require("tailwindcss/plugin");
|
|
2
|
+
|
|
3
|
+
/** @type {(screens: Record<string, string>, containers: Record<string, string>) => import('tailwindcss').Plugin} */
|
|
4
|
+
module.exports = (screens, containers) =>
|
|
5
|
+
plugin(
|
|
6
|
+
({ addComponents, theme }) => {
|
|
7
|
+
const _screens = theme("screens", containers);
|
|
8
|
+
const _containers = theme("containers", screens);
|
|
9
|
+
|
|
10
|
+
const mqs = Object.entries(_screens);
|
|
11
|
+
const widths = mqs
|
|
12
|
+
.map((item) => {
|
|
13
|
+
const key = item[0];
|
|
14
|
+
const value = item[1];
|
|
15
|
+
const width = _containers[key];
|
|
16
|
+
if (width) {
|
|
17
|
+
return { [`@media (min-width: ${value})`]: { ".container": { "max-width": width } } };
|
|
18
|
+
}
|
|
19
|
+
})
|
|
20
|
+
.filter((i) => i);
|
|
21
|
+
|
|
22
|
+
addComponents([
|
|
23
|
+
{
|
|
24
|
+
".container": {
|
|
25
|
+
"margin-left": "auto",
|
|
26
|
+
"margin-right": "auto",
|
|
27
|
+
width: "100%",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
...widths,
|
|
31
|
+
]);
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
content: [],
|
|
35
|
+
theme: {
|
|
36
|
+
containers,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const plugin = require("tailwindcss/plugin");
|
|
2
|
+
|
|
3
|
+
/** @type {import('tailwindcss').Plugin} */
|
|
4
|
+
module.exports = plugin(({ addVariant }) => {
|
|
5
|
+
addVariant("is-active", "&.is-active");
|
|
6
|
+
addVariant("is-selected", "&.is-selected");
|
|
7
|
+
addVariant("is-hoverable", ["&.is-hoverable:active", "&.is-hoverable:hover"]);
|
|
8
|
+
addVariant("is-focused", "&.is-focused");
|
|
9
|
+
addVariant("is-required", ["&.is-required", "&:required"]);
|
|
10
|
+
addVariant("is-invalid", "&.is-invalid");
|
|
11
|
+
addVariant("is-loading", ["&.is-loading"]);
|
|
12
|
+
addVariant("is-readonly", ["&.is-readonly", "&:readonly"]);
|
|
13
|
+
addVariant("is-disabled", ["&.is-disabled", "&:disabled"]);
|
|
14
|
+
addVariant("is-empty", ["&.is-empty"]);
|
|
15
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const { em } = require("@uxf/styles/units/em");
|
|
2
|
+
const { rem } = require("@uxf/styles/units/rem");
|
|
3
|
+
|
|
4
|
+
/** @type {{ containers: Record<string, string>; screens: Record<string, string>;}} */
|
|
5
|
+
module.exports = {
|
|
6
|
+
containers: {
|
|
7
|
+
xs: rem(540),
|
|
8
|
+
sm: rem(720),
|
|
9
|
+
md: rem(928),
|
|
10
|
+
lg: rem(1024),
|
|
11
|
+
xl: rem(1216),
|
|
12
|
+
},
|
|
13
|
+
screens: {
|
|
14
|
+
xs: em(576),
|
|
15
|
+
sm: em(768),
|
|
16
|
+
md: em(992),
|
|
17
|
+
lg: em(1200),
|
|
18
|
+
xl: em(1440),
|
|
19
|
+
},
|
|
20
|
+
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { FormControlProps } from "../types";
|
|
3
|
-
import { CheckboxSizes } from "./theme";
|
|
4
|
-
export declare type CheckboxSize = keyof CheckboxSizes;
|
|
5
|
-
export interface CheckboxVisualProps extends FormControlProps<boolean> {
|
|
6
|
-
indeterminate?: boolean;
|
|
7
|
-
isFocused?: boolean;
|
|
8
|
-
size?: CheckboxSize;
|
|
9
|
-
}
|
|
10
|
-
export declare const CheckboxVisual: React.ForwardRefExoticComponent<CheckboxVisualProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,17 +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.CheckboxVisual = void 0;
|
|
7
|
-
const classes_1 = require("@uxf/core/constants/classes");
|
|
8
|
-
const cx_1 = require("@uxf/core/utils/cx");
|
|
9
|
-
const forwardRef_1 = require("@uxf/core/utils/forwardRef");
|
|
10
|
-
const react_1 = __importDefault(require("react"));
|
|
11
|
-
const icon_1 = require("../icon");
|
|
12
|
-
exports.CheckboxVisual = (0, forwardRef_1.forwardRef)("CheckboxVisual", (props, ref) => {
|
|
13
|
-
var _a;
|
|
14
|
-
return (react_1.default.createElement("div", { className: (0, cx_1.cx)("uxf-checkbox", `uxf-checkbox--size-${(_a = props.size) !== null && _a !== void 0 ? _a : "default"}`, props.indeterminate && classes_1.CLASSES.IS_INDETERMINATE, props.isDisabled && classes_1.CLASSES.IS_DISABLED, props.isFocused && classes_1.CLASSES.IS_FOCUSED, props.isInvalid && classes_1.CLASSES.IS_INVALID, props.isReadOnly && classes_1.CLASSES.IS_READONLY, props.value && classes_1.CLASSES.IS_SELECTED), onClick: () => { var _a; return (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, !props.value); }, ref: ref },
|
|
15
|
-
react_1.default.createElement("span", { className: "uxf-checkbox__icon" },
|
|
16
|
-
react_1.default.createElement(icon_1.Icon, { name: "check" }))));
|
|
17
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./checkbox-visual";
|
package/checkbox-visual/index.js
DELETED
|
@@ -1,17 +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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./checkbox-visual"), exports);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { FormControlProps, HexColor } from "../types";
|
|
3
|
-
export interface ColorRadioProps extends FormControlProps<boolean> {
|
|
4
|
-
color: HexColor;
|
|
5
|
-
colorLabel: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const ColorRadio: React.ForwardRefExoticComponent<ColorRadioProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,22 +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.ColorRadio = void 0;
|
|
7
|
-
const classes_1 = require("@uxf/core/constants/classes");
|
|
8
|
-
const cx_1 = require("@uxf/core/utils/cx");
|
|
9
|
-
const forwardRef_1 = require("@uxf/core/utils/forwardRef");
|
|
10
|
-
const color2k_1 = require("color2k");
|
|
11
|
-
const react_1 = __importDefault(require("react"));
|
|
12
|
-
function CheckIcon() {
|
|
13
|
-
return (react_1.default.createElement("svg", { fill: "none", viewBox: "0 0 16 16" },
|
|
14
|
-
react_1.default.createElement("path", { d: "M13.333 4 6 11.333 2.667 8", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2" })));
|
|
15
|
-
}
|
|
16
|
-
exports.ColorRadio = (0, forwardRef_1.forwardRef)("ColorRadio", (props, ref) => {
|
|
17
|
-
const colorRadioStyle = { "--bg-color": props.color };
|
|
18
|
-
return (react_1.default.createElement("div", { className: (0, cx_1.cx)("uxf-color-radio", props.value && classes_1.CLASSES.IS_SELECTED), onClick: () => { var _a; return (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, !props.value); }, ref: ref, style: colorRadioStyle },
|
|
19
|
-
react_1.default.createElement("span", { className: "uxf-color-radio__label" }, props.colorLabel),
|
|
20
|
-
react_1.default.createElement("span", { className: `uxf-color-radio__icon ${(0, color2k_1.readableColorIsBlack)(props.color) ? "uxf-color-radio__icon--dark" : ""}` },
|
|
21
|
-
react_1.default.createElement(CheckIcon, null))));
|
|
22
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
.uxf-avatar-file-input {
|
|
2
|
-
@apply overflow-hidden relative mx-auto h-24 w-24 rounded-full bg-gray-300 text-gray-300 transition
|
|
3
|
-
before:absolute before:inset-0 before:border before:border-dashed before:border-current before:rounded-full
|
|
4
|
-
hover:before:border-2 is-focused:text-gray-800 is-focused:bg-white
|
|
5
|
-
is-disabled:opacity-50 is-disabled:pointer-events-none is-readonly:pointer-events-none
|
|
6
|
-
is-invalid:text-red-600 is-invalid:is-focused:ring-red-300;
|
|
7
|
-
}
|
package/css/avatar.css
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
.uxf-avatar {
|
|
2
|
-
@apply relative inline-flex items-center justify-center h-10 w-10 rounded-full;
|
|
3
|
-
|
|
4
|
-
&__image {
|
|
5
|
-
@apply absolute left-0 top-0 block h-full w-full rounded-inherit object-cover;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
:root .light & {
|
|
9
|
-
@apply text-gray-700 bg-gray-200;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
:root .dark & {
|
|
13
|
-
@apply text-gray-200 bg-gray-800;
|
|
14
|
-
}
|
|
15
|
-
}
|
package/css/badge.css
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
.uxf-badge {
|
|
2
|
-
@apply inline-flex items-center justify-center font-bold;
|
|
3
|
-
|
|
4
|
-
&--size-small {
|
|
5
|
-
@apply h-6 min-w-[24px] text-sm rounded-[12px] px-1.5;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
&--size-medium {
|
|
9
|
-
@apply h-8 min-w-[32px] text-base rounded-[16px] px-2;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&--size-large {
|
|
13
|
-
@apply h-10 min-w-[40px] text-lg rounded-[20px] px-2;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:root .light & {
|
|
17
|
-
@apply text-white bg-primary-500;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:root .dark & {
|
|
21
|
-
@apply text-gray-900 bg-white;
|
|
22
|
-
}
|
|
23
|
-
}
|
package/css/button.css
DELETED
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
@keyframes spinner {
|
|
2
|
-
to {
|
|
3
|
-
transform: rotate(360deg);
|
|
4
|
-
}
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.uxf-button {
|
|
8
|
-
@apply inline-flex items-center justify-center rounded-md font-medium shadow-sm
|
|
9
|
-
focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors;
|
|
10
|
-
|
|
11
|
-
.uxf-icon {
|
|
12
|
-
@apply h-6;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&__text {
|
|
16
|
-
@apply truncate;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&--full-width {
|
|
20
|
-
@apply w-full flex flex-row justify-center;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&.is-disabled {
|
|
24
|
-
@apply pointer-events-none;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&.uxf-button--icon-button.is-loading {
|
|
28
|
-
&::after {
|
|
29
|
-
@apply ml-0;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&.is-loading {
|
|
34
|
-
@apply pointer-events-none;
|
|
35
|
-
|
|
36
|
-
&::after {
|
|
37
|
-
animation: spinner 0.8s linear infinite;
|
|
38
|
-
border-radius: 50%;
|
|
39
|
-
border-right: 2px solid transparent;
|
|
40
|
-
border-top: 2px solid;
|
|
41
|
-
content: "";
|
|
42
|
-
height: 20px;
|
|
43
|
-
margin-left: 8px;
|
|
44
|
-
width: 20px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&.uxf-button--icon-button::after {
|
|
48
|
-
margin-left: 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.uxf-icon {
|
|
52
|
-
@apply hidden;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&--size-xs {
|
|
57
|
-
height: theme("inputSize.xs");
|
|
58
|
-
|
|
59
|
-
@apply px-2.5 text-xs rounded;
|
|
60
|
-
|
|
61
|
-
&.is-loading::after {
|
|
62
|
-
height: 14px;
|
|
63
|
-
width: 14px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&.uxf-button--icon-button {
|
|
67
|
-
width: theme("inputSize.xs");
|
|
68
|
-
|
|
69
|
-
@apply p-0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.uxf-icon {
|
|
73
|
-
@apply h-4 w-4;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&--size-sm {
|
|
78
|
-
height: theme("inputSize.sm");
|
|
79
|
-
|
|
80
|
-
@apply px-3 text-sm leading-4;
|
|
81
|
-
|
|
82
|
-
&.is-loading::after {
|
|
83
|
-
height: 16px;
|
|
84
|
-
width: 16px;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&.uxf-button--icon-button {
|
|
88
|
-
width: theme("inputSize.sm");
|
|
89
|
-
|
|
90
|
-
@apply p-0;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.uxf-icon {
|
|
94
|
-
@apply h-4 w-4;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&--size-default {
|
|
99
|
-
height: theme("inputSize.default");
|
|
100
|
-
|
|
101
|
-
@apply px-4 text-sm;
|
|
102
|
-
|
|
103
|
-
&.uxf-button--icon-button {
|
|
104
|
-
width: theme("inputSize.default");
|
|
105
|
-
|
|
106
|
-
@apply p-0;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&--size-lg {
|
|
111
|
-
height: theme("inputSize.lg");
|
|
112
|
-
|
|
113
|
-
@apply px-4 text-base;
|
|
114
|
-
|
|
115
|
-
&.uxf-button--icon-button {
|
|
116
|
-
width: theme("inputSize.lg");
|
|
117
|
-
|
|
118
|
-
@apply p-0;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
&--size-xl {
|
|
123
|
-
height: theme("inputSize.xl");
|
|
124
|
-
|
|
125
|
-
@apply px-6 text-base;
|
|
126
|
-
|
|
127
|
-
&.uxf-button--icon-button {
|
|
128
|
-
width: theme("inputSize.xl");
|
|
129
|
-
|
|
130
|
-
@apply p-0;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
&--variant-outlined {
|
|
135
|
-
@apply border bg-white;
|
|
136
|
-
|
|
137
|
-
&.uxf-button--color-default {
|
|
138
|
-
@apply text-primary-600 border-primary-500 hover:bg-primary-50;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
&.uxf-button--color-success {
|
|
142
|
-
@apply text-success-600 border-success-500 hover:bg-success-50;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
&.uxf-button--color-error {
|
|
146
|
-
@apply text-error-600 border-error-500 hover:bg-error-50;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
&.is-disabled {
|
|
150
|
-
@apply border-gray-300 text-gray-400;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
&--variant-default {
|
|
155
|
-
@apply text-white;
|
|
156
|
-
|
|
157
|
-
&.uxf-button--color-default {
|
|
158
|
-
@apply text-white bg-primary-500 is-hoverable:bg-primary-400 focus-visible:ring-primary-500;
|
|
159
|
-
|
|
160
|
-
&.is-disabled {
|
|
161
|
-
@apply bg-gray-100 text-gray-400;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
&.uxf-button--color-success {
|
|
166
|
-
@apply text-white bg-success-500 is-hoverable:bg-success-400 focus-visible:ring-success-500;
|
|
167
|
-
|
|
168
|
-
&.is-disabled {
|
|
169
|
-
@apply bg-gray-100 text-gray-400;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
&.uxf-button--color-error {
|
|
174
|
-
@apply text-white bg-error-500 is-hoverable:bg-error-400 focus-visible:ring-error-500;
|
|
175
|
-
|
|
176
|
-
&.is-disabled {
|
|
177
|
-
@apply bg-gray-100 text-gray-400;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
&--variant-white {
|
|
183
|
-
@apply border border-gray-300 bg-white hover:bg-gray-50;
|
|
184
|
-
|
|
185
|
-
&.uxf-button--color-default {
|
|
186
|
-
@apply text-primary-600;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
&.uxf-button--color-success {
|
|
190
|
-
@apply text-success-600;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
&.uxf-button--color-error {
|
|
194
|
-
@apply text-error-600;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
&.is-disabled {
|
|
198
|
-
@apply border-gray-300 text-gray-400;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
&--variant-text {
|
|
203
|
-
@apply shadow-none;
|
|
204
|
-
|
|
205
|
-
&.uxf-button--color-default {
|
|
206
|
-
@apply text-primary-600 hover:text-primary-800;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
&.uxf-button--color-success {
|
|
210
|
-
@apply text-success-600 hover:text-success-800;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
&.uxf-button--color-error {
|
|
214
|
-
@apply text-error-600 hover:text-error-800;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
&.is-disabled {
|
|
218
|
-
@apply text-gray-400;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}
|