draft-components 3.5.0 → 4.0.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/css/draft-components-variables.css +418 -230
- package/css/draft-components.css +2547 -1594
- package/dist/components/alert/alert.css +58 -59
- package/dist/components/alert/alert.d.ts +6 -6
- package/dist/components/alert/alert.js +5 -4
- package/dist/components/alert/alert.js.map +1 -0
- package/dist/components/alert/index.js +1 -0
- package/dist/components/alert/index.js.map +1 -0
- package/dist/components/avatar/avatar.css +29 -29
- package/dist/components/avatar/avatar.d.ts +6 -6
- package/dist/components/avatar/avatar.js +6 -5
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/badge.css +8 -8
- package/dist/components/badge/badge.d.ts +5 -5
- package/dist/components/badge/badge.js +2 -0
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbs-context.d.ts +1 -1
- package/dist/components/breadcrumbs/breadcrumbs-context.js +1 -0
- package/dist/components/breadcrumbs/breadcrumbs-context.js.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbs-item.d.ts +7 -6
- package/dist/components/breadcrumbs/breadcrumbs-item.js +2 -0
- package/dist/components/breadcrumbs/breadcrumbs-item.js.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.css +9 -9
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +5 -4
- package/dist/components/breadcrumbs/breadcrumbs.js +2 -0
- package/dist/components/breadcrumbs/breadcrumbs.js.map +1 -0
- package/dist/components/breadcrumbs/index.js +1 -0
- package/dist/components/breadcrumbs/index.js.map +1 -0
- package/dist/components/button/button.css +634 -108
- package/dist/components/button/button.d.ts +7 -6
- package/dist/components/button/button.js +17 -13
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button/icon-button.d.ts +2 -2
- package/dist/components/button/icon-button.js +4 -4
- package/dist/components/button/icon-button.js.map +1 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +4 -3
- package/dist/components/button-group/button-group.js +2 -0
- package/dist/components/button-group/button-group.js.map +1 -0
- package/dist/components/button-group/index.js +1 -0
- package/dist/components/button-group/index.js.map +1 -0
- package/dist/components/caption/caption.css +6 -6
- package/dist/components/caption/caption.d.ts +6 -6
- package/dist/components/caption/caption.js +6 -4
- package/dist/components/caption/caption.js.map +1 -0
- package/dist/components/caption/index.js +1 -0
- package/dist/components/caption/index.js.map +1 -0
- package/dist/components/checkbox/checkbox.css +24 -28
- package/dist/components/checkbox/checkbox.d.ts +5 -5
- package/dist/components/checkbox/checkbox.js +11 -6
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/color-picker/color-picker-button.d.ts +1 -1
- package/dist/components/color-picker/color-picker-button.js +9 -3
- package/dist/components/color-picker/color-picker-button.js.map +1 -0
- package/dist/components/color-picker/color-picker.css +13 -13
- package/dist/components/color-picker/color-picker.d.ts +10 -6
- package/dist/components/color-picker/color-picker.js +2 -0
- package/dist/components/color-picker/color-picker.js.map +1 -0
- package/dist/components/color-picker/index.js +1 -0
- package/dist/components/color-picker/index.js.map +1 -0
- package/dist/components/date-picker/calendar-day.d.ts +5 -4
- package/dist/components/date-picker/calendar-day.js +2 -0
- package/dist/components/date-picker/calendar-day.js.map +1 -0
- package/dist/components/date-picker/calendar-grid-head.d.ts +1 -1
- package/dist/components/date-picker/calendar-grid-head.js +2 -0
- package/dist/components/date-picker/calendar-grid-head.js.map +1 -0
- package/dist/components/date-picker/calendar-grid.d.ts +1 -1
- package/dist/components/date-picker/calendar-grid.js +22 -16
- package/dist/components/date-picker/calendar-grid.js.map +1 -0
- package/dist/components/date-picker/calendar-header.js +3 -2
- package/dist/components/date-picker/calendar-header.js.map +1 -0
- package/dist/components/date-picker/calendar.d.ts +10 -7
- package/dist/components/date-picker/calendar.js +1 -0
- package/dist/components/date-picker/calendar.js.map +1 -0
- package/dist/components/date-picker/date-helpers.js +1 -0
- package/dist/components/date-picker/date-helpers.js.map +1 -0
- package/dist/components/date-picker/date-picker.css +44 -40
- package/dist/components/date-picker/date-picker.d.ts +9 -8
- package/dist/components/date-picker/date-picker.js +4 -2
- package/dist/components/date-picker/date-picker.js.map +1 -0
- package/dist/components/date-picker/date-range-picker.d.ts +10 -9
- package/dist/components/date-picker/date-range-picker.js +5 -4
- package/dist/components/date-picker/date-range-picker.js.map +1 -0
- package/dist/components/date-picker/date-range.d.ts +1 -1
- package/dist/components/date-picker/date-range.js +1 -0
- package/dist/components/date-picker/date-range.js.map +1 -0
- package/dist/components/date-picker/index.js +1 -0
- package/dist/components/date-picker/index.js.map +1 -0
- package/dist/components/date-picker/parse-min-max-props.d.ts +1 -1
- package/dist/components/date-picker/parse-min-max-props.js +1 -0
- package/dist/components/date-picker/parse-min-max-props.js.map +1 -0
- package/dist/components/date-picker-popover/date-picker-popover.d.ts +18 -10
- package/dist/components/date-picker-popover/date-picker-popover.js +18 -5
- package/dist/components/date-picker-popover/date-picker-popover.js.map +1 -0
- package/dist/components/date-picker-popover/index.js +1 -0
- package/dist/components/date-picker-popover/index.js.map +1 -0
- package/dist/components/date-range-picker-popover/date-range-picker-popover-footer.d.ts +1 -1
- package/dist/components/date-range-picker-popover/date-range-picker-popover-footer.js +3 -1
- package/dist/components/date-range-picker-popover/date-range-picker-popover-footer.js.map +1 -0
- package/dist/components/date-range-picker-popover/date-range-picker-popover-presets.d.ts +1 -1
- package/dist/components/date-range-picker-popover/date-range-picker-popover-presets.js +2 -0
- package/dist/components/date-range-picker-popover/date-range-picker-popover-presets.js.map +1 -0
- package/dist/components/date-range-picker-popover/date-range-picker-popover.d.ts +17 -14
- package/dist/components/date-range-picker-popover/date-range-picker-popover.js +20 -14
- package/dist/components/date-range-picker-popover/date-range-picker-popover.js.map +1 -0
- package/dist/components/date-range-picker-popover/helpers.d.ts +1 -1
- package/dist/components/date-range-picker-popover/helpers.js +2 -0
- package/dist/components/date-range-picker-popover/helpers.js.map +1 -0
- package/dist/components/date-range-picker-popover/index.js +1 -0
- package/dist/components/date-range-picker-popover/index.js.map +1 -0
- package/dist/components/date-range-picker-popover/types.d.ts +1 -1
- package/dist/components/date-range-picker-popover/types.js +2 -1
- package/dist/components/date-range-picker-popover/types.js.map +1 -0
- package/dist/components/date-range-picker-popover/use-is-compact-view.js +7 -1
- package/dist/components/date-range-picker-popover/use-is-compact-view.js.map +1 -0
- package/dist/components/dialog/dialog-body.d.ts +9 -4
- package/dist/components/dialog/dialog-body.js +26 -3
- package/dist/components/dialog/dialog-body.js.map +1 -0
- package/dist/components/dialog/dialog-context.d.ts +4 -4
- package/dist/components/dialog/dialog-context.js +10 -7
- package/dist/components/dialog/dialog-context.js.map +1 -0
- package/dist/components/dialog/dialog-footer.d.ts +4 -6
- package/dist/components/dialog/dialog-footer.js +8 -4
- package/dist/components/dialog/dialog-footer.js.map +1 -0
- package/dist/components/dialog/dialog-header.d.ts +8 -8
- package/dist/components/dialog/dialog-header.js +12 -10
- package/dist/components/dialog/dialog-header.js.map +1 -0
- package/dist/components/dialog/dialog.css +321 -100
- package/dist/components/dialog/dialog.d.ts +13 -18
- package/dist/components/dialog/dialog.js +84 -30
- package/dist/components/dialog/dialog.js.map +1 -0
- package/dist/components/dialog/index.js +1 -0
- package/dist/components/dialog/index.js.map +1 -0
- package/dist/components/empty-state/empty-state.css +9 -5
- package/dist/components/empty-state/empty-state.d.ts +7 -6
- package/dist/components/empty-state/empty-state.js +7 -2
- package/dist/components/empty-state/empty-state.js.map +1 -0
- package/dist/components/empty-state/index.js +1 -0
- package/dist/components/empty-state/index.js.map +1 -0
- package/dist/components/file-picker/file-picker.css +19 -16
- package/dist/components/file-picker/file-picker.d.ts +7 -7
- package/dist/components/file-picker/file-picker.js +25 -9
- package/dist/components/file-picker/file-picker.js.map +1 -0
- package/dist/components/file-picker/index.js +1 -0
- package/dist/components/file-picker/index.js.map +1 -0
- package/dist/components/filter-buttons/filter-button.d.ts +6 -5
- package/dist/components/filter-buttons/filter-button.js +4 -3
- package/dist/components/filter-buttons/filter-button.js.map +1 -0
- package/dist/components/filter-buttons/filter-buttons.css +37 -12
- package/dist/components/filter-buttons/filter-buttons.d.ts +2 -2
- package/dist/components/filter-buttons/filter-buttons.js +3 -2
- package/dist/components/filter-buttons/filter-buttons.js.map +1 -0
- package/dist/components/filter-buttons/index.js +1 -0
- package/dist/components/filter-buttons/index.js.map +1 -0
- package/dist/components/filtered-search/filter-item.css +1 -1
- package/dist/components/filtered-search/filter-item.d.ts +1 -1
- package/dist/components/filtered-search/filter-item.js +3 -1
- package/dist/components/filtered-search/filter-item.js.map +1 -0
- package/dist/components/filtered-search/filter-operator-select.js +2 -1
- package/dist/components/filtered-search/filter-operator-select.js.map +1 -0
- package/dist/components/filtered-search/filter-token.css +7 -7
- package/dist/components/filtered-search/filter-token.d.ts +6 -3
- package/dist/components/filtered-search/filter-token.js +5 -4
- package/dist/components/filtered-search/filter-token.js.map +1 -0
- package/dist/components/filtered-search/filter-value-list.css +1 -1
- package/dist/components/filtered-search/filter-value-list.js +3 -1
- package/dist/components/filtered-search/filter-value-list.js.map +1 -0
- package/dist/components/filtered-search/filtered-search.css +56 -52
- package/dist/components/filtered-search/filtered-search.d.ts +6 -5
- package/dist/components/filtered-search/filtered-search.js +12 -9
- package/dist/components/filtered-search/filtered-search.js.map +1 -0
- package/dist/components/filtered-search/index.d.ts +1 -1
- package/dist/components/filtered-search/index.js +3 -1
- package/dist/components/filtered-search/index.js.map +1 -0
- package/dist/components/filtered-search/model/abstract-filter.js +1 -0
- package/dist/components/filtered-search/model/abstract-filter.js.map +1 -0
- package/dist/components/filtered-search/model/string-filter.d.ts +1 -1
- package/dist/components/filtered-search/model/string-filter.js +2 -0
- package/dist/components/filtered-search/model/string-filter.js.map +1 -0
- package/dist/components/filtered-search/model/string-set-filter.js +1 -0
- package/dist/components/filtered-search/model/string-set-filter.js.map +1 -0
- package/dist/components/filtered-search/model/validation-result.js +1 -0
- package/dist/components/filtered-search/model/validation-result.js.map +1 -0
- package/dist/components/filtered-search/string-filter-input.js +2 -1
- package/dist/components/filtered-search/string-filter-input.js.map +1 -0
- package/dist/components/filtered-search/string-filter-item.d.ts +1 -1
- package/dist/components/filtered-search/string-filter-item.js +7 -3
- package/dist/components/filtered-search/string-filter-item.js.map +1 -0
- package/dist/components/filtered-search/string-set-filter-item.d.ts +1 -1
- package/dist/components/filtered-search/string-set-filter-item.js +7 -3
- package/dist/components/filtered-search/string-set-filter-item.js.map +1 -0
- package/dist/components/filtered-search/types.d.ts +2 -2
- package/dist/components/filtered-search/types.js +3 -1
- package/dist/components/filtered-search/types.js.map +1 -0
- package/dist/components/filtered-search/use-combobox-ids.js +1 -0
- package/dist/components/filtered-search/use-combobox-ids.js.map +1 -0
- package/dist/components/filtered-search/use-translations.d.ts +1 -1
- package/dist/components/filtered-search/use-translations.js +1 -0
- package/dist/components/filtered-search/use-translations.js.map +1 -0
- package/dist/components/form-field/form-field.d.ts +7 -10
- package/dist/components/form-field/form-field.js +1 -0
- package/dist/components/form-field/form-field.js.map +1 -0
- package/dist/components/form-field/index.js +1 -0
- package/dist/components/form-field/index.js.map +1 -0
- package/dist/components/hero-icons/24/outline/arrow-down-icon.d.ts +2 -0
- package/dist/components/hero-icons/24/outline/arrow-down-icon.js +6 -0
- package/dist/components/hero-icons/24/outline/arrow-down-icon.js.map +1 -0
- package/dist/components/hero-icons/24/outline/arrow-up-icon.d.ts +2 -0
- package/dist/components/hero-icons/24/outline/arrow-up-icon.js +6 -0
- package/dist/components/hero-icons/24/outline/arrow-up-icon.js.map +1 -0
- package/dist/components/hero-icons/24/outline/arrows-up-down-icon.d.ts +2 -3
- package/dist/components/hero-icons/24/outline/arrows-up-down-icon.js +5 -4
- package/dist/components/hero-icons/24/outline/arrows-up-down-icon.js.map +1 -0
- package/dist/components/hero-icons/24/outline/chevron-left-icon.d.ts +2 -3
- package/dist/components/hero-icons/24/outline/chevron-left-icon.js +5 -4
- package/dist/components/hero-icons/24/outline/chevron-left-icon.js.map +1 -0
- package/dist/components/hero-icons/24/outline/chevron-right-icon.d.ts +2 -3
- package/dist/components/hero-icons/24/outline/chevron-right-icon.js +5 -4
- package/dist/components/hero-icons/24/outline/chevron-right-icon.js.map +1 -0
- package/dist/components/hero-icons/24/outline/eye-icon.d.ts +2 -3
- package/dist/components/hero-icons/24/outline/eye-icon.js +5 -4
- package/dist/components/hero-icons/24/outline/eye-icon.js.map +1 -0
- package/dist/components/hero-icons/24/outline/eye-slash-icon.d.ts +2 -3
- package/dist/components/hero-icons/24/outline/eye-slash-icon.js +5 -4
- package/dist/components/hero-icons/24/outline/eye-slash-icon.js.map +1 -0
- package/dist/components/hero-icons/24/outline/magnifying-glass-icon.d.ts +2 -3
- package/dist/components/hero-icons/24/outline/magnifying-glass-icon.js +5 -4
- package/dist/components/hero-icons/24/outline/magnifying-glass-icon.js.map +1 -0
- package/dist/components/hero-icons/24/outline/trash-icon.d.ts +2 -3
- package/dist/components/hero-icons/24/outline/trash-icon.js +5 -4
- package/dist/components/hero-icons/24/outline/trash-icon.js.map +1 -0
- package/dist/components/hero-icons/24/outline/x-mark-icon.d.ts +2 -3
- package/dist/components/hero-icons/24/outline/x-mark-icon.js +5 -4
- package/dist/components/hero-icons/24/outline/x-mark-icon.js.map +1 -0
- package/dist/components/hero-icons/24/solid/exclamation-triangle-icon.d.ts +2 -3
- package/dist/components/hero-icons/24/solid/exclamation-triangle-icon.js +5 -4
- package/dist/components/hero-icons/24/solid/exclamation-triangle-icon.js.map +1 -0
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.js +1 -2
- package/dist/components/index.js.map +1 -0
- package/dist/components/label/index.js +1 -0
- package/dist/components/label/index.js.map +1 -0
- package/dist/components/label/label.css +5 -5
- package/dist/components/label/label.d.ts +6 -3
- package/dist/components/label/label.js +6 -4
- package/dist/components/label/label.js.map +1 -0
- package/dist/components/menu/index.js +1 -0
- package/dist/components/menu/index.js.map +1 -0
- package/dist/components/menu/menu-item.d.ts +6 -6
- package/dist/components/menu/menu-item.js +9 -14
- package/dist/components/menu/menu-item.js.map +1 -0
- package/dist/components/menu/menu-separator.d.ts +2 -5
- package/dist/components/menu/menu-separator.js +3 -1
- package/dist/components/menu/menu-separator.js.map +1 -0
- package/dist/components/menu/menu.css +25 -26
- package/dist/components/menu/menu.d.ts +22 -26
- package/dist/components/menu/menu.js +121 -116
- package/dist/components/menu/menu.js.map +1 -0
- package/dist/components/nav-list/index.js +1 -0
- package/dist/components/nav-list/index.js.map +1 -0
- package/dist/components/nav-list/nav-list-item.d.ts +7 -6
- package/dist/components/nav-list/nav-list-item.js +2 -0
- package/dist/components/nav-list/nav-list-item.js.map +1 -0
- package/dist/components/nav-list/nav-list-title.d.ts +5 -5
- package/dist/components/nav-list/nav-list-title.js +2 -0
- package/dist/components/nav-list/nav-list-title.js.map +1 -0
- package/dist/components/nav-list/nav-list.css +12 -12
- package/dist/components/nav-list/nav-list.d.ts +8 -2
- package/dist/components/nav-list/nav-list.js +6 -0
- package/dist/components/nav-list/nav-list.js.map +1 -0
- package/dist/components/password-input/index.js +1 -0
- package/dist/components/password-input/index.js.map +1 -0
- package/dist/components/password-input/password-input.css +3 -33
- package/dist/components/password-input/password-input.d.ts +7 -6
- package/dist/components/password-input/password-input.js +9 -7
- package/dist/components/password-input/password-input.js.map +1 -0
- package/dist/components/popover/index.js +1 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/popover/popover.css +43 -70
- package/dist/components/popover/popover.d.ts +28 -49
- package/dist/components/popover/popover.js +101 -82
- package/dist/components/popover/popover.js.map +1 -0
- package/dist/components/portal/index.js +1 -0
- package/dist/components/portal/index.js.map +1 -0
- package/dist/components/portal/portal-context.d.ts +1 -1
- package/dist/components/portal/portal-context.js +1 -0
- package/dist/components/portal/portal-context.js.map +1 -0
- package/dist/components/portal/portal.d.ts +1 -1
- package/dist/components/portal/portal.js +2 -0
- package/dist/components/portal/portal.js.map +1 -0
- package/dist/components/radio/index.js +1 -0
- package/dist/components/radio/index.js.map +1 -0
- package/dist/components/radio/radio.css +24 -28
- package/dist/components/radio/radio.d.ts +5 -5
- package/dist/components/radio/radio.js +11 -6
- package/dist/components/radio/radio.js.map +1 -0
- package/dist/components/search-select/context.d.ts +1 -1
- package/dist/components/search-select/context.js +1 -0
- package/dist/components/search-select/context.js.map +1 -0
- package/dist/components/search-select/icons.d.ts +3 -3
- package/dist/components/search-select/icons.js +2 -0
- package/dist/components/search-select/icons.js.map +1 -0
- package/dist/components/search-select/index.js +1 -0
- package/dist/components/search-select/index.js.map +1 -0
- package/dist/components/search-select/search-select.css +67 -43
- package/dist/components/search-select/search-select.d.ts +9 -10
- package/dist/components/search-select/search-select.js +20 -15
- package/dist/components/search-select/search-select.js.map +1 -0
- package/dist/components/segmented-control/index.js +1 -0
- package/dist/components/segmented-control/index.js.map +1 -0
- package/dist/components/segmented-control/segmented-button.d.ts +1 -1
- package/dist/components/segmented-control/segmented-button.js +2 -0
- package/dist/components/segmented-control/segmented-button.js.map +1 -0
- package/dist/components/segmented-control/segmented-control.css +46 -41
- package/dist/components/segmented-control/segmented-control.d.ts +5 -4
- package/dist/components/segmented-control/segmented-control.js +2 -0
- package/dist/components/segmented-control/segmented-control.js.map +1 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/select/select.css +37 -32
- package/dist/components/select/select.d.ts +6 -31
- package/dist/components/select/select.js +5 -4
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/selection-control/index.js +1 -0
- package/dist/components/selection-control/index.js.map +1 -0
- package/dist/components/selection-control/selection-control.d.ts +8 -13
- package/dist/components/selection-control/selection-control.js +5 -4
- package/dist/components/selection-control/selection-control.js.map +1 -0
- package/dist/components/slider/calc-position.js +1 -0
- package/dist/components/slider/calc-position.js.map +1 -0
- package/dist/components/slider/get-offset-relative-to-thumb.js +4 -3
- package/dist/components/slider/get-offset-relative-to-thumb.js.map +1 -0
- package/dist/components/slider/index.js +2 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/slider/range-slider.d.ts +2 -2
- package/dist/components/slider/range-slider.js +2 -1
- package/dist/components/slider/range-slider.js.map +1 -0
- package/dist/components/slider/slider-thumb.d.ts +1 -1
- package/dist/components/slider/slider-thumb.js +3 -1
- package/dist/components/slider/slider-thumb.js.map +1 -0
- package/dist/components/slider/slider-tick-marks.d.ts +1 -1
- package/dist/components/slider/slider-tick-marks.js +2 -0
- package/dist/components/slider/slider-tick-marks.js.map +1 -0
- package/dist/components/slider/slider-track.d.ts +1 -1
- package/dist/components/slider/slider-track.js +7 -5
- package/dist/components/slider/slider-track.js.map +1 -0
- package/dist/components/slider/slider.css +88 -93
- package/dist/components/slider/slider.d.ts +2 -2
- package/dist/components/slider/slider.js +2 -1
- package/dist/components/slider/slider.js.map +1 -0
- package/dist/components/spinner/index.js +1 -0
- package/dist/components/spinner/index.js.map +1 -0
- package/dist/components/spinner/spinner.d.ts +6 -5
- package/dist/components/spinner/spinner.js +5 -4
- package/dist/components/spinner/spinner.js.map +1 -0
- package/dist/components/switch/index.js +1 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/switch/switch.css +34 -47
- package/dist/components/switch/switch.d.ts +5 -5
- package/dist/components/switch/switch.js +12 -6
- package/dist/components/switch/switch.js.map +1 -0
- package/dist/components/table/index.js +1 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/table/table-body.d.ts +5 -5
- package/dist/components/table/table-body.js +5 -4
- package/dist/components/table/table-body.js.map +1 -0
- package/dist/components/table/table-cell.d.ts +5 -5
- package/dist/components/table/table-cell.js +5 -4
- package/dist/components/table/table-cell.js.map +1 -0
- package/dist/components/table/table-container.d.ts +6 -5
- package/dist/components/table/table-container.js +5 -4
- package/dist/components/table/table-container.js.map +1 -0
- package/dist/components/table/table-head-cell.d.ts +6 -5
- package/dist/components/table/table-head-cell.js +14 -9
- package/dist/components/table/table-head-cell.js.map +1 -0
- package/dist/components/table/table-head.d.ts +6 -5
- package/dist/components/table/table-head.js +5 -4
- package/dist/components/table/table-head.js.map +1 -0
- package/dist/components/table/table-row.d.ts +6 -5
- package/dist/components/table/table-row.js +5 -4
- package/dist/components/table/table-row.js.map +1 -0
- package/dist/components/table/table.css +48 -54
- package/dist/components/table/table.d.ts +21 -6
- package/dist/components/table/table.js +18 -5
- package/dist/components/table/table.js.map +1 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/tabs/tab-list.d.ts +4 -2
- package/dist/components/tabs/tab-list.js +20 -13
- package/dist/components/tabs/tab-list.js.map +1 -0
- package/dist/components/tabs/tab-panel.d.ts +7 -4
- package/dist/components/tabs/tab-panel.js +3 -0
- package/dist/components/tabs/tab-panel.js.map +1 -0
- package/dist/components/tabs/tab.d.ts +6 -3
- package/dist/components/tabs/tab.js +5 -1
- package/dist/components/tabs/tab.js.map +1 -0
- package/dist/components/tabs/tabs-context.d.ts +2 -2
- package/dist/components/tabs/tabs-context.js +2 -0
- package/dist/components/tabs/tabs-context.js.map +1 -0
- package/dist/components/tabs/tabs.css +15 -11
- package/dist/components/tabs/tabs.d.ts +7 -4
- package/dist/components/tabs/tabs.js +3 -0
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/tabs/types.js +1 -0
- package/dist/components/tabs/types.js.map +1 -0
- package/dist/components/tag/index.js +1 -0
- package/dist/components/tag/index.js.map +1 -0
- package/dist/components/tag/tag.css +222 -183
- package/dist/components/tag/tag.d.ts +8 -7
- package/dist/components/tag/tag.js +5 -4
- package/dist/components/tag/tag.js.map +1 -0
- package/dist/components/text-input/index.js +1 -0
- package/dist/components/text-input/index.js.map +1 -0
- package/dist/components/text-input/text-input.css +59 -53
- package/dist/components/text-input/text-input.d.ts +5 -5
- package/dist/components/text-input/text-input.js +5 -4
- package/dist/components/text-input/text-input.js.map +1 -0
- package/dist/components/textarea/index.js +1 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/textarea/textarea.css +36 -31
- package/dist/components/textarea/textarea.d.ts +5 -4
- package/dist/components/textarea/textarea.js +5 -4
- package/dist/components/textarea/textarea.js.map +1 -0
- package/dist/components/toast/index.js +1 -0
- package/dist/components/toast/index.js.map +1 -0
- package/dist/components/toast/toast-button.d.ts +5 -5
- package/dist/components/toast/toast-button.js +5 -4
- package/dist/components/toast/toast-button.js.map +1 -0
- package/dist/components/toast/toast.css +35 -35
- package/dist/components/toast/toast.d.ts +5 -4
- package/dist/components/toast/toast.js +2 -0
- package/dist/components/toast/toast.js.map +1 -0
- package/dist/components/toaster/index.js +1 -0
- package/dist/components/toaster/index.js.map +1 -0
- package/dist/components/toaster/toaster.css +11 -11
- package/dist/components/toaster/toaster.d.ts +1 -1
- package/dist/components/toaster/toaster.js +28 -17
- package/dist/components/toaster/toaster.js.map +1 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/components/tooltip/tooltip.css +79 -12
- package/dist/components/tooltip/tooltip.d.ts +26 -24
- package/dist/components/tooltip/tooltip.js +82 -64
- package/dist/components/tooltip/tooltip.js.map +1 -0
- package/dist/hooks/index.d.ts +4 -5
- package/dist/hooks/index.js +5 -5
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/use-close-on-click-outside.d.ts +10 -0
- package/dist/hooks/use-close-on-click-outside.js +57 -0
- package/dist/hooks/use-close-on-click-outside.js.map +1 -0
- package/dist/hooks/use-close-on-esc.d.ts +5 -0
- package/dist/hooks/use-close-on-esc.js +34 -0
- package/dist/hooks/use-close-on-esc.js.map +1 -0
- package/dist/hooks/use-focus-trap.d.ts +5 -14
- package/dist/hooks/use-focus-trap.js +27 -40
- package/dist/hooks/use-focus-trap.js.map +1 -0
- package/dist/hooks/use-lock-body-scroll.d.ts +3 -0
- package/dist/hooks/use-lock-body-scroll.js +41 -0
- package/dist/hooks/use-lock-body-scroll.js.map +1 -0
- package/dist/hooks/use-preserve-props-when-closed.js +1 -0
- package/dist/hooks/use-preserve-props-when-closed.js.map +1 -0
- package/dist/hooks/{use-callback-ref.d.ts → use-ref-callback.d.ts} +1 -1
- package/dist/hooks/use-ref-callback.js +9 -0
- package/dist/hooks/use-ref-callback.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -0
- package/dist/lib/calc-element-position.d.ts +10 -0
- package/dist/lib/calc-element-position.js +28 -0
- package/dist/lib/calc-element-position.js.map +1 -0
- package/dist/lib/calc-position.d.ts +27 -0
- package/dist/lib/calc-position.js +143 -0
- package/dist/lib/calc-position.js.map +1 -0
- package/dist/lib/get-element-bounding-rect.d.ts +9 -0
- package/dist/lib/get-element-bounding-rect.js +17 -0
- package/dist/lib/get-element-bounding-rect.js.map +1 -0
- package/dist/lib/helpers.d.ts +3 -6
- package/dist/lib/helpers.js +14 -20
- package/dist/lib/helpers.js.map +1 -0
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +2 -1
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/keyboard-key.d.ts +15 -0
- package/dist/lib/keyboard-key.js +16 -0
- package/dist/lib/keyboard-key.js.map +1 -0
- package/dist/lib/observe-element-change.d.ts +3 -0
- package/dist/lib/observe-element-change.js +14 -0
- package/dist/lib/observe-element-change.js.map +1 -0
- package/dist/lib/observe-element-move.d.ts +6 -0
- package/dist/lib/observe-element-move.js +43 -0
- package/dist/lib/observe-element-move.js.map +1 -0
- package/dist/lib/react-helpers.d.ts +1 -9
- package/dist/lib/react-helpers.js +2 -26
- package/dist/lib/react-helpers.js.map +1 -0
- package/dist/storybook-blocks/color-palette/color-palette.d.ts +11 -0
- package/dist/storybook-blocks/color-palette/color-palette.js +22 -0
- package/dist/storybook-blocks/color-palette/color-palette.js.map +1 -0
- package/dist/storybook-blocks/color-palette/index.d.ts +1 -0
- package/dist/storybook-blocks/color-palette/index.js +2 -0
- package/dist/storybook-blocks/color-palette/index.js.map +1 -0
- package/package.json +47 -49
- package/css/draft-components-utilities.css +0 -1710
- package/dist/components/hero-icons/24/outline/arrow-small-down-icon.d.ts +0 -3
- package/dist/components/hero-icons/24/outline/arrow-small-down-icon.js +0 -5
- package/dist/components/hero-icons/24/outline/arrow-small-up-icon.d.ts +0 -3
- package/dist/components/hero-icons/24/outline/arrow-small-up-icon.js +0 -5
- package/dist/components/popover/use-page-click.d.ts +0 -16
- package/dist/components/popover/use-page-click.js +0 -46
- package/dist/components/positioner/calc-position.d.ts +0 -32
- package/dist/components/positioner/calc-position.js +0 -112
- package/dist/components/positioner/index.d.ts +0 -1
- package/dist/components/positioner/index.js +0 -1
- package/dist/components/positioner/positioner.d.ts +0 -20
- package/dist/components/positioner/positioner.js +0 -59
- package/dist/components/positioner/types.d.ts +0 -14
- package/dist/components/positioner/types.js +0 -1
- package/dist/components/slide-over/index.d.ts +0 -4
- package/dist/components/slide-over/index.js +0 -3
- package/dist/components/slide-over/slide-over-body.css +0 -7
- package/dist/components/slide-over/slide-over-body.d.ts +0 -3
- package/dist/components/slide-over/slide-over-body.js +0 -5
- package/dist/components/slide-over/slide-over-context.d.ts +0 -14
- package/dist/components/slide-over/slide-over-context.js +0 -18
- package/dist/components/slide-over/slide-over-header.css +0 -29
- package/dist/components/slide-over/slide-over-header.d.ts +0 -11
- package/dist/components/slide-over/slide-over-header.js +0 -17
- package/dist/components/slide-over/slide-over.css +0 -85
- package/dist/components/slide-over/slide-over.d.ts +0 -25
- package/dist/components/slide-over/slide-over.js +0 -106
- package/dist/components/slide-over/types.d.ts +0 -1
- package/dist/components/slide-over/types.js +0 -1
- package/dist/hooks/use-callback-ref.js +0 -8
- package/dist/hooks/use-disable-body-scroll.d.ts +0 -5
- package/dist/hooks/use-disable-body-scroll.js +0 -32
- package/dist/hooks/use-esc-key-down.d.ts +0 -17
- package/dist/hooks/use-esc-key-down.js +0 -51
- package/dist/hooks/use-mount-transition.d.ts +0 -35
- package/dist/hooks/use-mount-transition.js +0 -39
- package/dist/hooks/use-prefers-reduced-motion.d.ts +0 -1
- package/dist/hooks/use-prefers-reduced-motion.js +0 -15
- package/dist/hooks/use-show-transition.d.ts +0 -16
- package/dist/hooks/use-show-transition.js +0 -69
- package/dist/lib/keyboard-keys.d.ts +0 -15
- package/dist/lib/keyboard-keys.js +0 -15
|
@@ -1,34 +1,111 @@
|
|
|
1
1
|
.dc-dialog {
|
|
2
|
-
--
|
|
3
|
-
--dc-
|
|
4
|
-
--dc-
|
|
5
|
-
--
|
|
6
|
-
--dc-
|
|
7
|
-
--dc-
|
|
8
|
-
--
|
|
9
|
-
--
|
|
10
|
-
--
|
|
11
|
-
--
|
|
12
|
-
--
|
|
2
|
+
--viewport-padding: 16px;
|
|
3
|
+
--modal-font: var(--dc-text-sm);
|
|
4
|
+
--modal-background: var(--dc-background-primary);
|
|
5
|
+
--modal-border: none;
|
|
6
|
+
--modal-shadow: var(--dc-shadow-xl);
|
|
7
|
+
--backdrop-color: rgb(var(--dc-neutral-900-rgb) / 25%);
|
|
8
|
+
--scroll-shadow-top: 0 2px 2px rgb(0 0 0 / 10%);
|
|
9
|
+
--scroll-shadow-bottom: 0 -2px 2px rgb(0 0 0 / 10%);
|
|
10
|
+
--section-delimiter-width: 1px;
|
|
11
|
+
--section-delimiter-color: var(--dc-border-color-2);
|
|
12
|
+
--enter-animation-duration: 100ms;
|
|
13
|
+
--leave-animation-duration: 100ms;
|
|
14
|
+
--enter-slide-animation-duration: 250ms;
|
|
15
|
+
--leave-slide-animation-duration: 250ms;
|
|
16
|
+
}
|
|
13
17
|
|
|
18
|
+
.dc-dialog,
|
|
19
|
+
.dc-dialog_size_md,
|
|
20
|
+
.dc-dialog_size_centered {
|
|
14
21
|
position: fixed;
|
|
15
|
-
|
|
16
|
-
left: 0;
|
|
22
|
+
inset: 0;
|
|
17
23
|
z-index: var(--dc-overlay-z-index);
|
|
18
24
|
box-sizing: border-box;
|
|
19
25
|
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
20
27
|
align-items: center;
|
|
21
28
|
justify-content: center;
|
|
22
|
-
width:
|
|
29
|
+
width: 512px;
|
|
30
|
+
max-width: calc(100% - 2 * var(--viewport-padding));
|
|
31
|
+
height: -moz-fit-content;
|
|
32
|
+
height: fit-content;
|
|
33
|
+
max-height: calc(100% - 2 * var(--viewport-padding));
|
|
34
|
+
margin: auto;
|
|
35
|
+
border-radius: 12px;
|
|
36
|
+
isolation: isolate;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.dc-dialog_size_sm {
|
|
40
|
+
width: 384px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.dc-dialog_size_lg {
|
|
44
|
+
width: 640px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.dc-dialog_position_left,
|
|
48
|
+
.dc-dialog_position_right {
|
|
49
|
+
max-width: calc(100% - var(--viewport-padding));
|
|
23
50
|
height: 100%;
|
|
24
|
-
|
|
25
|
-
|
|
51
|
+
max-height: 100%;
|
|
52
|
+
border-radius: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.dc-dialog_position_right {
|
|
56
|
+
inset: 0 0 0 auto;
|
|
57
|
+
border-top-right-radius: 0;
|
|
58
|
+
border-bottom-right-radius: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.dc-dialog_position_left {
|
|
62
|
+
inset: 0 auto 0 0;
|
|
63
|
+
border-top-left-radius: 0;
|
|
64
|
+
border-bottom-left-radius: 0;
|
|
26
65
|
}
|
|
27
66
|
|
|
28
67
|
.dc-dialog__backdrop {
|
|
29
68
|
position: fixed;
|
|
30
69
|
inset: 0;
|
|
31
|
-
background: var(--
|
|
70
|
+
background: var(--backdrop-color);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@keyframes dc-dialog-backdrop-enter {
|
|
74
|
+
from {
|
|
75
|
+
opacity: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
to {
|
|
79
|
+
opacity: 1;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@keyframes dc-dialog-backdrop-leave {
|
|
84
|
+
from {
|
|
85
|
+
opacity: 1;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
to {
|
|
89
|
+
opacity: 0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.dc-dialog__backdrop[data-animation="enter"] {
|
|
94
|
+
animation: dc-dialog-backdrop-enter var(--enter-animation-duration) ease forwards;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.dc-dialog__backdrop[data-animation="leave"] {
|
|
98
|
+
animation: dc-dialog-backdrop-leave var(--leave-animation-duration) ease forwards;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.dc-dialog_position_right .dc-dialog__backdrop[data-animation="enter"],
|
|
102
|
+
.dc-dialog_position_left .dc-dialog__backdrop[data-animation="enter"] {
|
|
103
|
+
animation-duration: var(--enter-slide-animation-duration);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.dc-dialog_position_right .dc-dialog__backdrop[data-animation="leave"],
|
|
107
|
+
.dc-dialog_position_left .dc-dialog__backdrop[data-animation="leave"] {
|
|
108
|
+
animation-duration: var(--leave-slide-animation-duration);
|
|
32
109
|
}
|
|
33
110
|
|
|
34
111
|
.dc-dialog__modal {
|
|
@@ -36,138 +113,282 @@
|
|
|
36
113
|
box-sizing: border-box;
|
|
37
114
|
display: flex;
|
|
38
115
|
flex-direction: column;
|
|
39
|
-
width:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
background: var(--
|
|
45
|
-
border
|
|
46
|
-
|
|
116
|
+
width: 100%;
|
|
117
|
+
height: auto;
|
|
118
|
+
padding: var(--padding);
|
|
119
|
+
overflow: hidden;
|
|
120
|
+
font: var(--modal-font);
|
|
121
|
+
background: var(--modal-background);
|
|
122
|
+
border: var(--modal-border);
|
|
123
|
+
border-radius: inherit;
|
|
124
|
+
box-shadow: var(--modal-shadow);
|
|
47
125
|
}
|
|
48
126
|
|
|
49
|
-
.dc-
|
|
50
|
-
|
|
127
|
+
.dc-dialog_position_right .dc-dialog__modal,
|
|
128
|
+
.dc-dialog_position_left .dc-dialog__modal {
|
|
129
|
+
height: 100%;
|
|
51
130
|
}
|
|
52
131
|
|
|
53
|
-
|
|
54
|
-
|
|
132
|
+
@keyframes dc-dialog-modal-enter {
|
|
133
|
+
from {
|
|
134
|
+
transform: scale(0.9);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
to {
|
|
138
|
+
transform: scale(1);
|
|
139
|
+
}
|
|
55
140
|
}
|
|
56
141
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
142
|
+
@keyframes dc-dialog-modal-leave {
|
|
143
|
+
from {
|
|
144
|
+
opacity: 1;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
to {
|
|
148
|
+
opacity: 0;
|
|
149
|
+
}
|
|
61
150
|
}
|
|
62
151
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
152
|
+
@keyframes dc-dialog-modal-slide-left-enter {
|
|
153
|
+
from {
|
|
154
|
+
transform: translateX(100%);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
to {
|
|
158
|
+
transform: translateX(0);
|
|
159
|
+
}
|
|
69
160
|
}
|
|
70
161
|
|
|
71
|
-
|
|
72
|
-
|
|
162
|
+
@keyframes dc-dialog-modal-slide-left-leave {
|
|
163
|
+
from {
|
|
164
|
+
transform: translateX(0);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
to {
|
|
168
|
+
transform: translateX(100%);
|
|
169
|
+
}
|
|
73
170
|
}
|
|
74
171
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
172
|
+
@keyframes dc-dialog-modal-slide-right-enter {
|
|
173
|
+
from {
|
|
174
|
+
transform: translateX(-100%);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
to {
|
|
178
|
+
transform: translateX(0);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@keyframes dc-dialog-modal-slide-right-leave {
|
|
183
|
+
from {
|
|
184
|
+
transform: translateX(0);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
to {
|
|
188
|
+
transform: translateX(-100%);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.dc-dialog__modal[data-animation="enter"] {
|
|
193
|
+
animation: dc-dialog-modal-enter var(--enter-animation-duration) ease forwards;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.dc-dialog__modal[data-animation="leave"] {
|
|
197
|
+
animation: dc-dialog-modal-leave var(--leave-animation-duration) ease forwards;
|
|
79
198
|
}
|
|
80
199
|
|
|
81
|
-
.dc-
|
|
82
|
-
|
|
83
|
-
|
|
200
|
+
.dc-dialog_position_right .dc-dialog__modal[data-animation="enter"] {
|
|
201
|
+
animation-name: dc-dialog-modal-slide-left-enter;
|
|
202
|
+
animation-duration: var(--enter-slide-animation-duration);
|
|
84
203
|
}
|
|
85
204
|
|
|
86
|
-
.dc-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
height: 24px;
|
|
205
|
+
.dc-dialog_position_right .dc-dialog__modal[data-animation="leave"] {
|
|
206
|
+
animation-name: dc-dialog-modal-slide-left-leave;
|
|
207
|
+
animation-duration: var(--leave-slide-animation-duration);
|
|
90
208
|
}
|
|
91
209
|
|
|
92
|
-
.dc-
|
|
210
|
+
.dc-dialog_position_left .dc-dialog__modal[data-animation="enter"] {
|
|
211
|
+
animation-name: dc-dialog-modal-slide-right-enter;
|
|
212
|
+
animation-duration: var(--enter-slide-animation-duration);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.dc-dialog_position_left .dc-dialog__modal[data-animation="leave"] {
|
|
216
|
+
animation-name: dc-dialog-modal-slide-right-leave;
|
|
217
|
+
animation-duration: var(--leave-slide-animation-duration);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@media (prefers-reduced-motion) {
|
|
221
|
+
.dc-dialog__backdrop[data-animation="enter"],
|
|
222
|
+
.dc-dialog__backdrop[data-animation="leave"],
|
|
223
|
+
.dc-dialog__modal[data-animation="enter"],
|
|
224
|
+
.dc-dialog__modal[data-animation="leave"] {
|
|
225
|
+
animation-duration: 0ms !important;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.dc-dialog__header,
|
|
230
|
+
.dc-dialog__body,
|
|
231
|
+
.dc-dialog__footer {
|
|
232
|
+
padding: 16px;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.dc-dialog__header,
|
|
236
|
+
.dc-dialog__footer {
|
|
237
|
+
z-index: 1;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.dc-dialog__header {
|
|
93
241
|
position: relative;
|
|
94
|
-
flex-grow: 1;
|
|
95
|
-
padding-top: var(--dc-dialog-safe-area);
|
|
96
|
-
padding-bottom: var(--dc-dialog-safe-area);
|
|
97
|
-
overflow: auto;
|
|
98
|
-
-webkit-overflow-scrolling: touch;
|
|
99
242
|
}
|
|
100
243
|
|
|
101
|
-
.dc-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
244
|
+
.dc-dialog__header_content-align_left {
|
|
245
|
+
text-align: left;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.dc-dialog__header_content-align_right {
|
|
249
|
+
text-align: right;
|
|
107
250
|
}
|
|
108
251
|
|
|
109
|
-
.dc-
|
|
110
|
-
|
|
252
|
+
.dc-dialog__header_content-align_center {
|
|
253
|
+
text-align: center;
|
|
111
254
|
}
|
|
112
255
|
|
|
113
|
-
.dc-
|
|
114
|
-
|
|
115
|
-
border-top-right-radius: inherit;
|
|
256
|
+
.dc-dialog__header_has_scroll-shadow {
|
|
257
|
+
box-shadow: var(--scroll-shadow-top);
|
|
116
258
|
}
|
|
117
259
|
|
|
118
|
-
.dc-
|
|
119
|
-
|
|
120
|
-
|
|
260
|
+
.dc-dialog__close-button {
|
|
261
|
+
--dc-button-width: 24px;
|
|
262
|
+
--dc-button-height: 24px;
|
|
263
|
+
--dc-button-radius: 8px;
|
|
264
|
+
|
|
265
|
+
position: absolute;
|
|
266
|
+
top: 6px;
|
|
121
267
|
}
|
|
122
268
|
|
|
123
|
-
.dc-
|
|
124
|
-
|
|
269
|
+
.dc-dialog__header_content-align_left .dc-dialog__close-button,
|
|
270
|
+
.dc-dialog__header_content-align_center .dc-dialog__close-button {
|
|
271
|
+
right: 6px;
|
|
125
272
|
}
|
|
126
273
|
|
|
127
|
-
.dc-
|
|
128
|
-
|
|
274
|
+
.dc-dialog__header_content-align_right .dc-dialog__close-button {
|
|
275
|
+
left: 6px;
|
|
129
276
|
}
|
|
130
277
|
|
|
131
|
-
.dc-
|
|
132
|
-
|
|
278
|
+
.dc-dialog__title {
|
|
279
|
+
position: relative;
|
|
280
|
+
margin: 0;
|
|
281
|
+
font: var(--dc-text-md);
|
|
282
|
+
font-weight: 700;
|
|
283
|
+
word-break: break-all;
|
|
284
|
+
text-wrap: balance;
|
|
133
285
|
}
|
|
134
286
|
|
|
135
|
-
.dc-
|
|
136
|
-
|
|
287
|
+
.dc-dialog__header_content-align_left .dc-dialog__title {
|
|
288
|
+
padding-right: 10px;
|
|
137
289
|
}
|
|
138
290
|
|
|
139
|
-
.dc-
|
|
140
|
-
|
|
291
|
+
.dc-dialog__header_content-align_right .dc-dialog__title {
|
|
292
|
+
padding-left: 10px;
|
|
141
293
|
}
|
|
142
294
|
|
|
143
|
-
.dc-
|
|
144
|
-
|
|
295
|
+
.dc-dialog__header_content-align_center .dc-dialog__title {
|
|
296
|
+
padding-right: 10px;
|
|
297
|
+
padding-left: 10px;
|
|
145
298
|
}
|
|
146
299
|
|
|
147
|
-
.dc-
|
|
148
|
-
|
|
300
|
+
.dc-dialog__header-body {
|
|
301
|
+
margin-top: 2px;
|
|
149
302
|
}
|
|
150
303
|
|
|
151
|
-
.dc-
|
|
152
|
-
|
|
304
|
+
.dc-dialog__body {
|
|
305
|
+
flex-grow: 1;
|
|
306
|
+
padding-top: 8px;
|
|
307
|
+
padding-bottom: 8px;
|
|
308
|
+
overflow: auto;
|
|
309
|
+
overscroll-behavior: contain;
|
|
310
|
+
scrollbar-width: thin;
|
|
153
311
|
}
|
|
154
312
|
|
|
155
|
-
.dc-
|
|
156
|
-
|
|
313
|
+
.dc-dialog__body:first-child,
|
|
314
|
+
.dc-dialog__body_has_top-delimiter:not(:first-child) {
|
|
315
|
+
padding-top: 16px;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.dc-dialog__body:last-child,
|
|
319
|
+
.dc-dialog__body_has_bottom-delimiter:not(:first-child) {
|
|
320
|
+
padding-bottom: 16px;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.dc-dialog__body_has_top-delimiter:not(:first-child) {
|
|
324
|
+
border-top: var(--section-delimiter-width) solid
|
|
325
|
+
var(--section-delimiter-color);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.dc-dialog__body_has_bottom-delimiter:not(:first-child) {
|
|
329
|
+
border-bottom: var(--section-delimiter-width) solid
|
|
330
|
+
var(--section-delimiter-color);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.dc-dialog__footer {
|
|
334
|
+
display: flex;
|
|
335
|
+
flex-wrap: wrap;
|
|
336
|
+
gap: 8px;
|
|
337
|
+
align-items: center;
|
|
338
|
+
justify-content: flex-end;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.dc-dialog__footer_has_scroll-shadow {
|
|
342
|
+
box-shadow: var(--scroll-shadow-bottom);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
@media screen and ((width < 640px) or ((width < 900px) and (orientation: landscape))) {
|
|
346
|
+
@keyframes dc-dialog-modal-enter {
|
|
347
|
+
from {
|
|
348
|
+
transform: translateY(100%);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
to {
|
|
352
|
+
transform: translateY(0);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
@keyframes dc-dialog-modal-leave {
|
|
357
|
+
from {
|
|
358
|
+
transform: translateY(0);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
to {
|
|
362
|
+
transform: translateY(100%);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.dc-dialog_position_centered {
|
|
367
|
+
inset: auto 0 0;
|
|
368
|
+
max-width: 100%;
|
|
369
|
+
max-height: calc(100% - var(--viewport-padding));
|
|
370
|
+
border-bottom-right-radius: 0;
|
|
371
|
+
border-bottom-left-radius: 0;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.dc-dialog_position_centered .dc-dialog__backdrop[data-animation="enter"],
|
|
375
|
+
.dc-dialog_position_centered .dc-dialog__modal[data-animation="enter"] {
|
|
376
|
+
animation-duration: var(--enter-slide-animation-duration);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.dc-dialog_position_centered .dc-dialog__backdrop[data-animation="leave"],
|
|
380
|
+
.dc-dialog_position_centered .dc-dialog__modal[data-animation="leave"] {
|
|
381
|
+
animation-duration: var(--leave-slide-animation-duration);
|
|
382
|
+
}
|
|
157
383
|
}
|
|
158
384
|
|
|
159
385
|
.dark .dc-dialog,
|
|
160
386
|
.dark.dc-dialog {
|
|
161
|
-
--
|
|
162
|
-
--dc-
|
|
163
|
-
--
|
|
387
|
+
--modal-background: var(--dc-neutral-800);
|
|
388
|
+
--modal-shadow: 0 0 0 1px var(--dc-border-color-2), var(--dc-shadow-xl);
|
|
389
|
+
--backdrop-color: rgb(var(--dc-neutral-900-rgb) / 65%);
|
|
390
|
+
--scroll-shadow-top: 0 1px 1px rgb(255 255 255 / 15%);
|
|
391
|
+
--scroll-shadow-bottom: 0 -1px 1px rgb(255 255 255 / 15%);
|
|
164
392
|
|
|
165
393
|
color-scheme: dark;
|
|
166
394
|
}
|
|
167
|
-
|
|
168
|
-
.dark .dc-dialog .dc-dialog-modal,
|
|
169
|
-
.dark.dc-dialog .dc-dialog-modal {
|
|
170
|
-
box-shadow:
|
|
171
|
-
0 0 0 1px var(--dc-border-color-transparent-2),
|
|
172
|
-
var(--dc-shadow-xl);
|
|
173
|
-
}
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
2
|
import { DialogHeader } from './dialog-header.js';
|
|
3
3
|
import { DialogBody } from './dialog-body.js';
|
|
4
4
|
import { DialogFooter } from './dialog-footer.js';
|
|
5
|
-
type
|
|
6
|
-
type
|
|
7
|
-
type
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
isOpen: boolean;
|
|
18
|
-
onClose: () => void;
|
|
19
|
-
onOpenAnimationEnd?: () => void;
|
|
20
|
-
onCloseAnimationEnd?: () => void;
|
|
21
|
-
} & DialogHTMLProps;
|
|
5
|
+
export type DialogCloseHandler = () => void;
|
|
6
|
+
export type DialogUnmountHandler = () => void;
|
|
7
|
+
type DialogBaseProps = {
|
|
8
|
+
role?: 'dialog' | 'alertdialog';
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
|
+
position?: 'centered' | 'left' | 'right';
|
|
11
|
+
isOpen?: boolean;
|
|
12
|
+
onClose?: DialogCloseHandler;
|
|
13
|
+
onUnmount?: DialogUnmountHandler;
|
|
14
|
+
};
|
|
15
|
+
type DialogHTMLProps = ComponentProps<'div'>;
|
|
16
|
+
export type DialogProps = DialogBaseProps & Omit<DialogHTMLProps, keyof DialogBaseProps>;
|
|
22
17
|
export declare function Dialog(props: DialogProps): import("react/jsx-runtime").JSX.Element | null;
|
|
23
18
|
export declare namespace Dialog {
|
|
24
19
|
var Header: typeof DialogHeader;
|
|
@@ -1,52 +1,106 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useId, useRef } from 'react';
|
|
3
|
-
import { classNames,
|
|
4
|
-
import {
|
|
2
|
+
import { useEffect, useId, useLayoutEffect, useRef, useState } from 'react';
|
|
3
|
+
import { classNames, tryToFocusElement } from '../../lib/react-helpers.js';
|
|
4
|
+
import { useRefCallback } from '../../hooks/use-ref-callback.js';
|
|
5
|
+
import { useCloseOnEsc } from '../../hooks/use-close-on-esc.js';
|
|
6
|
+
import { useLockBodyScroll } from '../../hooks/use-lock-body-scroll.js';
|
|
7
|
+
import { useFocusTrap } from '../../hooks/use-focus-trap.js';
|
|
8
|
+
import { usePreservePropsWhenClosed } from '../../hooks/use-preserve-props-when-closed.js';
|
|
5
9
|
import { Portal } from '../portal/index.js';
|
|
6
10
|
import { DialogContextProvider } from './dialog-context.js';
|
|
7
11
|
import { DialogHeader } from './dialog-header.js';
|
|
8
12
|
import { DialogBody } from './dialog-body.js';
|
|
9
13
|
import { DialogFooter } from './dialog-footer.js';
|
|
10
14
|
export function Dialog(props) {
|
|
11
|
-
const { className,
|
|
15
|
+
const { className, children, role = 'dialog', size = 'md', position = 'centered', isOpen = false, onClose, onUnmount, ...otherProps } = usePreservePropsWhenClosed(props, 'isOpen');
|
|
16
|
+
const [isMounted, setIsMounted] = useState(isOpen);
|
|
12
17
|
const defaultId = useId();
|
|
13
|
-
const dialogRef = useRef(null);
|
|
14
18
|
const modalRef = useRef(null);
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
const backdropRef = useRef(null);
|
|
20
|
+
const close = useRefCallback(() => {
|
|
21
|
+
if (typeof onClose === 'function') {
|
|
22
|
+
onClose();
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const unmount = useRefCallback(() => {
|
|
26
|
+
setIsMounted(false);
|
|
27
|
+
if (typeof onUnmount === 'function') {
|
|
28
|
+
onUnmount();
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
useLayoutEffect(() => {
|
|
32
|
+
const backdrop = backdropRef.current;
|
|
33
|
+
const modal = modalRef.current;
|
|
34
|
+
if (!backdrop || !modal) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (isOpen) {
|
|
38
|
+
setIsMounted((isMounted) => {
|
|
39
|
+
if (isMounted) {
|
|
40
|
+
return isMounted;
|
|
41
|
+
}
|
|
42
|
+
modal.dataset.animation = 'enter';
|
|
43
|
+
backdrop.dataset.animation = 'enter';
|
|
44
|
+
return !isMounted;
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
let isModalAnimationEnded = false;
|
|
49
|
+
let isBackdropAnimationEnded = false;
|
|
50
|
+
const handleModalAnimationEnd = () => {
|
|
51
|
+
isModalAnimationEnded = true;
|
|
52
|
+
if (isModalAnimationEnded && isBackdropAnimationEnded) {
|
|
53
|
+
unmount();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
modal.dataset.animation = 'leave';
|
|
57
|
+
modal.addEventListener('animationend', handleModalAnimationEnd);
|
|
58
|
+
const handleBackdropAnimationEnd = () => {
|
|
59
|
+
isBackdropAnimationEnded = true;
|
|
60
|
+
if (isModalAnimationEnded && isBackdropAnimationEnded) {
|
|
61
|
+
unmount();
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
backdrop.dataset.animation = 'leave';
|
|
65
|
+
backdrop.addEventListener('animationend', handleBackdropAnimationEnd);
|
|
66
|
+
return () => {
|
|
67
|
+
modal.removeEventListener('animationend', handleModalAnimationEnd);
|
|
68
|
+
backdrop.removeEventListener('animationend', handleBackdropAnimationEnd);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
}, [isOpen, unmount]);
|
|
72
|
+
useFocusTrap(modalRef, {
|
|
73
|
+
disabled: !isMounted,
|
|
74
|
+
});
|
|
75
|
+
useLockBodyScroll({
|
|
76
|
+
disabled: !isMounted,
|
|
77
|
+
});
|
|
78
|
+
useCloseOnEsc(close, {
|
|
79
|
+
disabled: !isMounted,
|
|
21
80
|
});
|
|
22
|
-
useDisableBodyScroll({ isEnabled: shouldRender });
|
|
23
|
-
useEscKeyDown(onClose, { isEnabled: shouldRender });
|
|
24
|
-
useFocusTrap(modalRef, { isEnabled: shouldRender });
|
|
25
81
|
useEffect(() => {
|
|
26
|
-
if (
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
82
|
+
if (isOpen) {
|
|
83
|
+
const prevFocusedElement = document.activeElement;
|
|
84
|
+
if (prevFocusedElement instanceof HTMLElement) {
|
|
85
|
+
prevFocusedElement.blur();
|
|
86
|
+
}
|
|
30
87
|
return () => {
|
|
31
|
-
|
|
88
|
+
tryToFocusElement(prevFocusedElement);
|
|
32
89
|
};
|
|
33
90
|
}
|
|
34
|
-
}, [
|
|
35
|
-
if (!
|
|
91
|
+
}, [isOpen]);
|
|
92
|
+
if (!isOpen && !isMounted) {
|
|
36
93
|
return null;
|
|
37
94
|
}
|
|
38
95
|
const id = otherProps.id || defaultId;
|
|
39
96
|
const titleId = `dialog-title-${id}`;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}, children: [_jsx("div", { ...backdropProps, className: classNames('dc-dialog__backdrop', backdropProps.className) }), _jsx("div", { ...otherProps, id: id, className: classNames(className, {
|
|
46
|
-
'dc-dialog__modal': true,
|
|
47
|
-
[`dc-dialog__modal_${width}`]: width,
|
|
48
|
-
}), ref: modalRef, role: "dialog", "aria-labelledby": titleId, "aria-describedby": descriptionId, "aria-modal": true, children: _jsx(DialogContextProvider, { titleId: titleId, descriptionId: descriptionId, isOpen: isOpen, onClose: onClose, children: children }) })] }) }));
|
|
97
|
+
return (_jsx(Portal, { children: _jsx(DialogContextProvider, { titleId: titleId, isOpen: isOpen, onClose: close, children: _jsxs("div", { ...otherProps, id: id, className: classNames(className, {
|
|
98
|
+
'dc-dialog': true,
|
|
99
|
+
[`dc-dialog_size_${size}`]: size,
|
|
100
|
+
[`dc-dialog_position_${position}`]: position,
|
|
101
|
+
}), role: role, "aria-modal": true, "aria-labelledby": titleId, children: [_jsx("div", { className: "dc-dialog__backdrop", ref: backdropRef, "data-testid": "dialog-backdrop" }), _jsx("div", { className: "dc-dialog__modal", ref: modalRef, "data-testid": "dialog-modal", children: children })] }) }) }));
|
|
49
102
|
}
|
|
50
103
|
Dialog.Header = DialogHeader;
|
|
51
104
|
Dialog.Body = DialogBody;
|
|
52
105
|
Dialog.Footer = DialogFooter;
|
|
106
|
+
//# sourceMappingURL=dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.js","sourceRoot":"","sources":["../../../src/components/dialog/dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAuB,SAAS,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjG,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,E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