baseui 12.0.0 → 12.1.2
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/accordion/accordion.js +4 -2
- package/accordion/accordion.js.flow +1 -1
- package/accordion/panel.js +3 -2
- package/accordion/stateful-panel-container.js +1 -0
- package/accordion/styled-components.js +8 -1
- package/accordion/types.d.ts +2 -2
- package/app-nav-bar/app-nav-bar.js +4 -2
- package/app-nav-bar/mobile-menu.js +2 -1
- package/app-nav-bar/styled-components.js +19 -1
- package/app-nav-bar/types.d.ts +2 -2
- package/app-nav-bar/user-menu.js +1 -1
- package/aspect-ratio-box/aspect-ratio-box-body.d.ts +1 -1
- package/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/aspect-ratio-box/types.d.ts +1 -1
- package/avatar/styled-components.js +4 -1
- package/badge/styled-components.js +16 -11
- package/badge/styled-components.js.flow +4 -4
- package/badge/types.d.ts +2 -2
- package/banner/index.d.ts +1 -1
- package/banner/styled-components.js +25 -12
- package/banner/types.d.ts +15 -15
- package/banner/types.js.flow +13 -11
- package/block/block.js +3 -1
- package/block/styled-components.js +2 -1
- package/block/types.d.ts +3 -4
- package/breadcrumbs/styled-components.js +7 -2
- package/button/styled-components.js +7 -0
- package/button/styled-components.js.flow +2 -0
- package/button/types.d.ts +4 -5
- package/button-group/stateful-button-group.js +1 -0
- package/button-group/stateful-container.js +3 -1
- package/button-group/styled-components.js +2 -1
- package/button-group/types.d.ts +4 -5
- package/card/styled-components.js +11 -4
- package/checkbox/styled-components.js +10 -4
- package/checkbox/styled-components.js.flow +1 -1
- package/checkbox/types.d.ts +36 -37
- package/combobox/combobox.js +78 -71
- package/combobox/styled-components.js +5 -1
- package/combobox/types.d.ts +4 -5
- package/data-table/column-anchor.js +3 -0
- package/data-table/column-datetime.js +10 -4
- package/data-table/column-numerical.js +4 -4
- package/data-table/column-string.js +3 -0
- package/data-table/column.js +6 -1
- package/data-table/data-table.js +6 -3
- package/data-table/filter-menu.js +2 -1
- package/data-table/header-cell.js +43 -34
- package/data-table/locale.d.ts +4 -0
- package/data-table/locale.js +3 -1
- package/data-table/locale.js.flow +5 -0
- package/data-table/measure-column-widths.js +5 -4
- package/data-table/stateful-container.js +2 -1
- package/data-table/stateful-data-table.js +4 -4
- package/data-table/types.d.ts +4 -5
- package/datepicker/calendar-header.js +1 -0
- package/datepicker/calendar.js +2 -0
- package/datepicker/datepicker.js +2 -0
- package/datepicker/day.js +2 -1
- package/datepicker/index.d.ts +1 -1
- package/datepicker/index.js +7 -0
- package/datepicker/index.js.flow +1 -1
- package/datepicker/stateful-calendar.js +7 -3
- package/datepicker/stateful-container.js +2 -0
- package/datepicker/stateful-datepicker.js +9 -4
- package/datepicker/styled-components.js +27 -4
- package/datepicker/types.d.ts +2 -2
- package/datepicker/utils/date-helpers.js +2 -1
- package/datepicker/utils/index.js +2 -1
- package/divider/styled-components.js +4 -3
- package/divider/types.d.ts +1 -1
- package/dnd-list/stateful-list-container.js +1 -0
- package/dnd-list/styled-components.js +7 -0
- package/dnd-list/types.d.ts +2 -2
- package/drawer/constants.js +1 -0
- package/drawer/drawer.js +2 -3
- package/drawer/drawer.js.flow +1 -3
- package/drawer/styled-components.js +9 -2
- package/drawer/types.d.ts +2 -2
- package/es/accordion/accordion.js +3 -3
- package/es/accordion/panel.js +3 -2
- package/es/accordion/stateful-panel-container.js +1 -0
- package/es/accordion/styled-components.js +8 -1
- package/es/app-nav-bar/app-nav-bar.js +6 -2
- package/es/app-nav-bar/mobile-menu.js +4 -2
- package/es/app-nav-bar/styled-components.js +19 -1
- package/es/app-nav-bar/user-menu.js +1 -1
- package/es/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/es/avatar/styled-components.js +4 -1
- package/es/badge/styled-components.js +11 -6
- package/es/banner/styled-components.js +16 -3
- package/es/block/block.js +3 -1
- package/es/block/styled-components.js +2 -1
- package/es/breadcrumbs/styled-components.js +7 -2
- package/es/button/button.js +8 -0
- package/es/button/styled-components.js +7 -0
- package/es/button-group/stateful-button-group.js +1 -0
- package/es/button-group/stateful-container.js +3 -1
- package/es/button-group/styled-components.js +2 -1
- package/es/card/index.js +2 -1
- package/es/card/styled-components.js +12 -4
- package/es/checkbox/index.js +1 -0
- package/es/checkbox/stateful-checkbox-container.js +3 -0
- package/es/checkbox/styled-components.js +10 -4
- package/es/combobox/combobox.js +76 -69
- package/es/combobox/styled-components.js +5 -1
- package/es/data-table/column-anchor.js +3 -0
- package/es/data-table/column-datetime.js +12 -5
- package/es/data-table/column-numerical.js +5 -4
- package/es/data-table/column-string.js +3 -0
- package/es/data-table/column.js +4 -1
- package/es/data-table/data-table.js +6 -3
- package/es/data-table/filter-menu.js +2 -1
- package/es/data-table/header-cell.js +41 -34
- package/es/data-table/locale.js +3 -1
- package/es/data-table/measure-column-widths.js +5 -4
- package/es/data-table/stateful-container.js +2 -1
- package/es/data-table/stateful-data-table.js +4 -4
- package/es/datepicker/calendar-header.js +1 -0
- package/es/datepicker/calendar.js +2 -0
- package/es/datepicker/datepicker.js +3 -1
- package/es/datepicker/day.js +2 -1
- package/es/datepicker/index.js +1 -1
- package/es/datepicker/stateful-calendar.js +4 -1
- package/es/datepicker/stateful-container.js +2 -0
- package/es/datepicker/stateful-datepicker.js +5 -1
- package/es/datepicker/styled-components.js +26 -3
- package/es/datepicker/utils/date-helpers.js +2 -1
- package/es/datepicker/utils/index.js +2 -1
- package/es/divider/styled-components.js +3 -2
- package/es/dnd-list/stateful-list-container.js +1 -0
- package/es/dnd-list/styled-components.js +7 -0
- package/es/drawer/constants.js +1 -0
- package/es/drawer/drawer.js +2 -5
- package/es/drawer/styled-components.js +9 -2
- package/es/file-uploader/file-uploader.js +82 -78
- package/es/file-uploader/styled-components.js +6 -1
- package/es/flex-grid/flex-grid-item.js +5 -6
- package/es/flex-grid/flex-grid.js +4 -1
- package/es/form-control/styled-components.js +6 -1
- package/es/header-navigation/styled-components.js +4 -1
- package/es/helper/styled-components.js +3 -1
- package/es/helpers/overrides.js +9 -5
- package/es/icon/build-icons.js +0 -2
- package/es/icon/index.js +1 -1
- package/es/icon/omit-dollar-prefixed-keys.js +1 -0
- package/es/icon/styled-components.js +2 -1
- package/es/input/base-input.js +9 -12
- package/es/input/input.js +9 -13
- package/es/input/masked-input.js +9 -2
- package/es/input/stateful-container.js +1 -0
- package/es/input/styled-components.js +18 -7
- package/es/input/utils.js +2 -0
- package/es/layer/layer.js +24 -0
- package/es/layer/layers-manager.js +91 -1
- package/es/layout-grid/styled-components.js +3 -0
- package/es/link/index.js +2 -1
- package/es/link/styled-components.js +2 -1
- package/es/list/list-heading.js +21 -17
- package/es/list/list-item.js +2 -1
- package/es/list/styled-components.js +17 -1
- package/es/locale/es_AR.js +3 -1
- package/es/locale/index.js +2 -1
- package/es/locale/tr_TR.js +3 -1
- package/es/map-marker/constants.js +14 -0
- package/es/map-marker/fixed-marker.js +1 -0
- package/es/map-marker/index.js +2 -1
- package/es/map-marker/location-puck.js +142 -0
- package/es/map-marker/pin-head.js +1 -0
- package/es/map-marker/styled-components.js +86 -2
- package/es/menu/index.js +1 -1
- package/es/menu/menu.js +14 -4
- package/es/menu/option-profile.js +1 -0
- package/es/menu/stateful-container.js +10 -0
- package/es/menu/styled-components.js +32 -2
- package/es/message-card/constants.js +19 -0
- package/es/message-card/index.js +10 -0
- package/es/message-card/message-card.js +114 -0
- package/es/message-card/styled-components.js +108 -0
- package/es/message-card/types.js +1 -0
- package/es/message-card/utils.js +27 -0
- package/es/modal/modal.js +4 -6
- package/es/modal/styled-components.js +8 -1
- package/es/pagination/stateful-container.js +1 -0
- package/es/pagination/stateful-pagination.js +1 -0
- package/es/pagination/styled-components.js +4 -1
- package/es/payment-card/styled-components.js +2 -1
- package/es/phone-input/base-country-picker.js +3 -1
- package/es/phone-input/country-select-dropdown.js +1 -0
- package/es/phone-input/styled-components.js +15 -4
- package/es/pin-code/styled-components.js +4 -1
- package/es/popover/popover.js +9 -11
- package/es/popover/stateful-container.js +4 -1
- package/es/popover/styled-components.js +9 -4
- package/es/progress-bar/progressbar-rounded.js +1 -0
- package/es/progress-bar/styled-components.js +14 -2
- package/es/progress-steps/progress-steps.js +2 -1
- package/es/progress-steps/styled-components.js +20 -12
- package/es/radio/stateful-radiogroup-container.js +3 -0
- package/es/radio/styled-components.js +10 -3
- package/es/rating/emoticon-rating.js +2 -1
- package/es/rating/star-rating.js +2 -1
- package/es/rating/styled-components.js +5 -1
- package/es/select/autosize-input.js +2 -3
- package/es/select/default-props.js +1 -1
- package/es/select/dropdown.js +2 -1
- package/es/select/multi-value.js +2 -1
- package/es/select/select-component.js +10 -10
- package/es/select/single-select.js +2 -2
- package/es/select/stateful-select-container.js +2 -0
- package/es/select/styled-components.js +33 -6
- package/es/select/value.js +3 -4
- package/es/side-navigation/index.js +2 -1
- package/es/side-navigation/nav-item.js +1 -0
- package/es/side-navigation/nav.js +1 -1
- package/es/side-navigation/stateful-container.js +1 -0
- package/es/side-navigation/styled-components.js +8 -2
- package/es/skeleton/styled-components.js +3 -1
- package/es/slider/slider.js +4 -2
- package/es/slider/stateful-slider-container.js +2 -0
- package/es/slider/styled-components.js +9 -0
- package/es/snackbar/snackbar-element.js +1 -0
- package/es/snackbar/styled-components.js +9 -1
- package/es/spinner/styled-components.js +2 -1
- package/es/styles/__mocks__/styled.js +8 -5
- package/es/styles/styled.js +7 -6
- package/es/table/index.js +2 -1
- package/es/table/styled-components.js +13 -1
- package/es/table-grid/styled-components.js +4 -1
- package/es/table-semantic/styled-components.js +20 -3
- package/es/tabs/stateful-tabs.js +1 -0
- package/es/tabs/styled-components.js +5 -1
- package/es/tabs/tabs.js +4 -2
- package/es/tabs-motion/styled-components.js +32 -2
- package/es/tabs-motion/tab.js +1 -0
- package/es/tabs-motion/tabs.js +31 -6
- package/es/tag/styled-components.js +32 -1
- package/es/tag/tag.js +6 -2
- package/es/textarea/styled-components.js +20 -12
- package/es/textarea/textarea.js +13 -15
- package/es/themes/dark-theme/color-component-tokens.js +1 -1
- package/es/themes/light-theme/color-component-tokens.js +1 -1
- package/es/themes/move-theme/typography.js +36 -0
- package/es/themes/shared/borders.js +8 -3
- package/es/themes/shared/typography.js +10 -10
- package/es/timezonepicker/timezone-picker.js +5 -1
- package/es/timezonepicker/tzdata.js +1 -1
- package/es/timezonepicker/update-tzdata.js +11 -6
- package/es/toast/styled-components.js +5 -1
- package/es/toast/toaster.js +0 -2
- package/es/tokens/colors.js +24 -0
- package/es/tooltip/styled-components.js +4 -1
- package/es/tree-view/index.js +2 -1
- package/es/tree-view/styled-components.js +7 -1
- package/es/tree-view/tree-view.js +3 -1
- package/es/types/globals.d.js +12 -0
- package/es/utils/deep-merge.js +0 -5
- package/es/utils/deprecated-component.js +1 -0
- package/es/utils/focusVisible.js +4 -2
- package/esm/accordion/accordion.js +4 -4
- package/esm/accordion/panel.js +3 -2
- package/esm/accordion/stateful-panel-container.js +1 -0
- package/esm/accordion/styled-components.js +8 -1
- package/esm/app-nav-bar/app-nav-bar.js +4 -2
- package/esm/app-nav-bar/mobile-menu.js +4 -2
- package/esm/app-nav-bar/styled-components.js +19 -1
- package/esm/app-nav-bar/user-menu.js +1 -1
- package/esm/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/esm/avatar/styled-components.js +4 -1
- package/esm/badge/styled-components.js +11 -6
- package/esm/banner/styled-components.js +16 -3
- package/esm/block/block.js +3 -1
- package/esm/block/styled-components.js +2 -1
- package/esm/breadcrumbs/styled-components.js +7 -2
- package/esm/button/styled-components.js +7 -0
- package/esm/button-group/stateful-button-group.js +1 -0
- package/esm/button-group/stateful-container.js +3 -1
- package/esm/button-group/styled-components.js +2 -1
- package/esm/card/index.js +2 -1
- package/esm/card/styled-components.js +12 -4
- package/esm/checkbox/index.js +1 -0
- package/esm/checkbox/styled-components.js +10 -4
- package/esm/combobox/combobox.js +78 -71
- package/esm/combobox/styled-components.js +5 -1
- package/esm/data-table/column-anchor.js +3 -0
- package/esm/data-table/column-datetime.js +12 -5
- package/esm/data-table/column-numerical.js +4 -4
- package/esm/data-table/column-string.js +3 -0
- package/esm/data-table/column.js +5 -1
- package/esm/data-table/data-table.js +6 -3
- package/esm/data-table/filter-menu.js +2 -1
- package/esm/data-table/header-cell.js +42 -34
- package/esm/data-table/locale.js +3 -1
- package/esm/data-table/measure-column-widths.js +5 -4
- package/esm/data-table/stateful-container.js +2 -1
- package/esm/data-table/stateful-data-table.js +4 -4
- package/esm/datepicker/calendar-header.js +1 -0
- package/esm/datepicker/calendar.js +2 -0
- package/esm/datepicker/datepicker.js +3 -1
- package/esm/datepicker/day.js +2 -1
- package/esm/datepicker/index.js +1 -1
- package/esm/datepicker/stateful-calendar.js +7 -3
- package/esm/datepicker/stateful-container.js +2 -0
- package/esm/datepicker/stateful-datepicker.js +9 -4
- package/esm/datepicker/styled-components.js +26 -3
- package/esm/datepicker/utils/date-helpers.js +2 -1
- package/esm/datepicker/utils/index.js +2 -1
- package/esm/divider/styled-components.js +3 -2
- package/esm/dnd-list/stateful-list-container.js +1 -0
- package/esm/dnd-list/styled-components.js +7 -0
- package/esm/drawer/constants.js +1 -0
- package/esm/drawer/drawer.js +2 -5
- package/esm/drawer/styled-components.js +9 -2
- package/esm/file-uploader/file-uploader.js +87 -83
- package/esm/file-uploader/styled-components.js +6 -1
- package/esm/flex-grid/flex-grid-item.js +4 -5
- package/esm/flex-grid/flex-grid.js +7 -3
- package/esm/form-control/styled-components.js +6 -1
- package/esm/header-navigation/styled-components.js +4 -1
- package/esm/helper/styled-components.js +3 -1
- package/esm/helpers/overrides.js +9 -5
- package/esm/icon/build-icons.js +0 -2
- package/esm/icon/index.js +1 -1
- package/esm/icon/omit-dollar-prefixed-keys.js +1 -0
- package/esm/icon/styled-components.js +2 -1
- package/esm/input/base-input.js +9 -12
- package/esm/input/input.js +9 -13
- package/esm/input/masked-input.js +5 -2
- package/esm/input/stateful-container.js +1 -0
- package/esm/input/styled-components.js +18 -7
- package/esm/input/utils.js +2 -0
- package/esm/layer/layer.js +24 -0
- package/esm/layer/layers-manager.js +97 -1
- package/esm/layout-grid/styled-components.js +3 -0
- package/esm/link/index.js +2 -1
- package/esm/link/styled-components.js +2 -1
- package/esm/list/list-heading.js +21 -17
- package/esm/list/list-item.js +2 -1
- package/esm/list/styled-components.js +17 -1
- package/esm/locale/es_AR.js +3 -1
- package/esm/locale/index.js +4 -1
- package/esm/locale/tr_TR.js +3 -1
- package/esm/map-marker/constants.js +12 -2
- package/esm/map-marker/index.js +2 -1
- package/esm/map-marker/location-puck.js +199 -0
- package/esm/map-marker/styled-components.js +82 -2
- package/esm/menu/index.js +1 -1
- package/esm/menu/menu.js +16 -4
- package/esm/menu/option-profile.js +1 -0
- package/esm/menu/stateful-container.js +1 -0
- package/esm/menu/styled-components.js +38 -6
- package/esm/message-card/constants.js +20 -0
- package/esm/message-card/index.js +10 -0
- package/esm/message-card/message-card.js +168 -0
- package/esm/message-card/styled-components.js +116 -0
- package/esm/message-card/types.js +1 -0
- package/esm/message-card/utils.js +26 -0
- package/esm/modal/modal.js +4 -6
- package/esm/modal/styled-components.js +8 -1
- package/esm/pagination/stateful-container.js +1 -0
- package/esm/pagination/stateful-pagination.js +1 -0
- package/esm/pagination/styled-components.js +4 -1
- package/esm/payment-card/styled-components.js +2 -1
- package/esm/phone-input/base-country-picker.js +3 -1
- package/esm/phone-input/country-select-dropdown.js +1 -0
- package/esm/phone-input/styled-components.js +20 -8
- package/esm/pin-code/styled-components.js +4 -1
- package/esm/popover/popover.js +9 -11
- package/esm/popover/stateful-container.js +4 -1
- package/esm/popover/styled-components.js +9 -4
- package/esm/progress-bar/progressbar-rounded.js +1 -0
- package/esm/progress-bar/styled-components.js +14 -2
- package/esm/progress-steps/progress-steps.js +2 -1
- package/esm/progress-steps/styled-components.js +28 -19
- package/esm/radio/styled-components.js +10 -3
- package/esm/rating/emoticon-rating.js +2 -1
- package/esm/rating/star-rating.js +2 -1
- package/esm/rating/styled-components.js +5 -1
- package/esm/select/autosize-input.js +2 -3
- package/esm/select/default-props.js +1 -1
- package/esm/select/dropdown.js +2 -1
- package/esm/select/multi-value.js +2 -1
- package/esm/select/select-component.js +10 -10
- package/esm/select/single-select.js +2 -2
- package/esm/select/styled-components.js +33 -6
- package/esm/select/value.js +3 -4
- package/esm/side-navigation/index.js +2 -1
- package/esm/side-navigation/nav-item.js +1 -0
- package/esm/side-navigation/nav.js +1 -1
- package/esm/side-navigation/stateful-container.js +1 -0
- package/esm/side-navigation/styled-components.js +13 -6
- package/esm/skeleton/styled-components.js +3 -1
- package/esm/slider/slider.js +4 -2
- package/esm/slider/styled-components.js +9 -0
- package/esm/snackbar/snackbar-element.js +1 -0
- package/esm/snackbar/styled-components.js +9 -1
- package/esm/spinner/styled-components.js +2 -1
- package/esm/styles/__mocks__/styled.js +8 -5
- package/esm/styles/styled.js +7 -6
- package/esm/table/index.js +2 -1
- package/esm/table/styled-components.js +13 -1
- package/esm/table-grid/styled-components.js +4 -1
- package/esm/table-semantic/styled-components.js +20 -3
- package/esm/tabs/stateful-tabs.js +1 -0
- package/esm/tabs/styled-components.js +5 -1
- package/esm/tabs/tabs.js +4 -2
- package/esm/tabs-motion/styled-components.js +68 -40
- package/esm/tabs-motion/tab.js +1 -0
- package/esm/tabs-motion/tabs.js +87 -58
- package/esm/tag/styled-components.js +5 -1
- package/esm/tag/tag.js +4 -2
- package/esm/textarea/styled-components.js +11 -6
- package/esm/textarea/textarea.js +13 -15
- package/esm/themes/dark-theme/color-component-tokens.js +1 -1
- package/esm/themes/light-theme/color-component-tokens.js +1 -1
- package/esm/themes/move-theme/typography.js +36 -0
- package/esm/themes/shared/borders.js +8 -3
- package/esm/themes/shared/typography.js +10 -10
- package/esm/timezonepicker/timezone-picker.js +6 -2
- package/esm/timezonepicker/tzdata.js +1 -1
- package/esm/timezonepicker/update-tzdata.js +51 -39
- package/esm/toast/styled-components.js +5 -1
- package/esm/toast/toaster.js +0 -2
- package/esm/tokens/colors.js +24 -0
- package/esm/tooltip/styled-components.js +4 -1
- package/esm/tree-view/index.js +2 -1
- package/esm/tree-view/styled-components.js +7 -1
- package/esm/tree-view/tree-view.js +3 -1
- package/esm/types/globals.d.js +12 -0
- package/esm/utils/deep-merge.js +0 -5
- package/esm/utils/deprecated-component.js +1 -0
- package/esm/utils/focusVisible.js +4 -2
- package/file-uploader/file-uploader.js +87 -83
- package/file-uploader/styled-components.js +6 -1
- package/flex-grid/flex-grid-item.d.ts +1 -1
- package/flex-grid/flex-grid-item.js +6 -8
- package/flex-grid/flex-grid.js +7 -3
- package/flex-grid/types.d.ts +1 -1
- package/form-control/styled-components.js +6 -1
- package/form-control/types.d.ts +1 -1
- package/header-navigation/styled-components.js +4 -1
- package/heading/types.d.ts +1 -1
- package/helper/styled-components.js +3 -1
- package/helpers/overrides.js +8 -3
- package/helpers/overrides.js.flow +1 -1
- package/helpers/types.d.ts +1 -1
- package/icon/build-icons.js +0 -2
- package/icon/build-icons.js.flow +0 -1
- package/icon/index.d.ts +1 -1
- package/icon/index.js +8 -1
- package/icon/index.js.flow +1 -1
- package/icon/omit-dollar-prefixed-keys.js +1 -0
- package/icon/styled-components.js +2 -1
- package/icon/types.d.ts +1 -1
- package/input/base-input.js +8 -12
- package/input/base-input.js.flow +4 -8
- package/input/input.js +9 -13
- package/input/input.js.flow +5 -9
- package/input/masked-input.js +5 -2
- package/input/stateful-container.js +1 -0
- package/input/styled-components.js +18 -7
- package/input/styled-components.js.flow +9 -2
- package/input/types.d.ts +16 -14
- package/input/types.js.flow +3 -0
- package/input/utils.js +2 -0
- package/layer/layer.js +24 -0
- package/layer/layer.js.flow +25 -0
- package/layer/layers-manager.d.ts +8 -0
- package/layer/layers-manager.js +97 -1
- package/layer/layers-manager.js.flow +84 -1
- package/layer/types.d.ts +23 -2
- package/layer/types.js.flow +22 -1
- package/layout-grid/styled-components.js +3 -0
- package/layout-grid/types.d.ts +2 -2
- package/link/index.js +2 -1
- package/link/styled-components.js +2 -1
- package/list/list-heading.js +21 -17
- package/list/list-item.js +2 -1
- package/list/styled-components.js +17 -1
- package/list/types.d.ts +2 -2
- package/locale/en_US.d.ts +1 -1
- package/locale/es_AR.d.ts +1 -1
- package/locale/es_AR.js +3 -1
- package/locale/index.js +4 -1
- package/locale/tr_TR.d.ts +1 -1
- package/locale/tr_TR.js +3 -1
- package/map-marker/constants.d.ts +14 -0
- package/map-marker/constants.js +16 -3
- package/map-marker/constants.js.flow +17 -0
- package/map-marker/index.d.ts +2 -1
- package/map-marker/index.js +24 -1
- package/map-marker/index.js.flow +5 -3
- package/map-marker/location-puck.d.ts +4 -0
- package/map-marker/location-puck.js +211 -0
- package/map-marker/location-puck.js.flow +18 -0
- package/map-marker/styled-components.d.ts +17 -1
- package/map-marker/styled-components.js +88 -2
- package/map-marker/styled-components.js.flow +58 -0
- package/map-marker/types.d.ts +33 -5
- package/map-marker/types.js.flow +37 -3
- package/menu/index.d.ts +2 -3
- package/menu/index.js +8 -1
- package/menu/index.js.flow +1 -0
- package/menu/menu.js +15 -3
- package/menu/menu.js.flow +11 -1
- package/menu/option-profile.js +1 -0
- package/menu/stateful-container.js +1 -0
- package/menu/styled-components.d.ts +1 -0
- package/menu/styled-components.js +40 -7
- package/menu/styled-components.js.flow +13 -0
- package/menu/types.d.ts +13 -13
- package/menu/types.js.flow +1 -0
- package/message-card/constants.d.ts +12 -0
- package/message-card/constants.js +25 -0
- package/message-card/index.d.ts +4 -0
- package/message-card/index.js +60 -0
- package/message-card/index.js.flow +72 -0
- package/message-card/message-card.d.ts +4 -0
- package/message-card/message-card.js +184 -0
- package/message-card/package.json +4 -0
- package/message-card/styled-components.d.ts +14 -0
- package/message-card/styled-components.js +124 -0
- package/message-card/types.d.ts +27 -0
- package/message-card/types.js +5 -0
- package/message-card/utils.d.ts +1 -0
- package/message-card/utils.js +36 -0
- package/modal/modal.js +4 -4
- package/modal/modal.js.flow +1 -3
- package/modal/styled-components.js +8 -1
- package/modal/types.d.ts +2 -2
- package/package.json +10 -12
- package/pagination/stateful-container.js +1 -0
- package/pagination/stateful-pagination.js +1 -0
- package/pagination/styled-components.js +4 -1
- package/pagination/types.d.ts +2 -2
- package/payment-card/styled-components.js +2 -1
- package/phone-input/base-country-picker.js +3 -1
- package/phone-input/country-select-dropdown.js +1 -0
- package/phone-input/styled-components.js +21 -9
- package/phone-input/types.d.ts +5 -6
- package/pin-code/styled-components.js +4 -1
- package/pin-code/types.d.ts +2 -2
- package/popover/popover.js +9 -11
- package/popover/popover.js.flow +2 -12
- package/popover/stateful-container.js +5 -1
- package/popover/styled-components.js +12 -9
- package/popover/types.d.ts +2 -2
- package/progress-bar/progressbar-rounded.js +1 -0
- package/progress-bar/styled-components.d.ts +4 -1
- package/progress-bar/styled-components.js +14 -2
- package/progress-bar/types.d.ts +2 -2
- package/progress-steps/progress-steps.js +2 -1
- package/progress-steps/styled-components.js +28 -19
- package/radio/styled-components.js +10 -3
- package/radio/types.d.ts +19 -20
- package/rating/emoticon-rating.js +2 -1
- package/rating/star-rating.js +2 -1
- package/rating/styled-components.js +5 -1
- package/select/autosize-input.js +2 -1
- package/select/autosize-input.js.flow +1 -1
- package/select/default-props.js +1 -1
- package/select/dropdown.js +2 -1
- package/select/multi-value.js +1 -0
- package/select/select-component.d.ts +1 -1
- package/select/select-component.js +9 -7
- package/select/select-component.js.flow +1 -1
- package/select/single-select.d.ts +2 -2
- package/select/single-select.js +2 -2
- package/select/styled-components.js +33 -6
- package/select/styled-components.js.flow +25 -5
- package/select/types.d.ts +5 -6
- package/select/value.js +2 -3
- package/side-navigation/nav-item.js +1 -0
- package/side-navigation/nav.js +1 -1
- package/side-navigation/stateful-container.js +1 -0
- package/side-navigation/styled-components.js +13 -6
- package/side-navigation/types.d.ts +4 -4
- package/skeleton/styled-components.js +3 -1
- package/slider/slider.js +4 -2
- package/slider/styled-components.js +9 -0
- package/slider/types.d.ts +1 -1
- package/snackbar/snackbar-element.js +1 -0
- package/snackbar/styled-components.js +9 -1
- package/snackbar/types.d.ts +3 -4
- package/spinner/styled-components.js +2 -1
- package/spinner/types.d.ts +1 -1
- package/styles/__mocks__/styled.js +8 -3
- package/styles/styled.d.ts +1 -1
- package/styles/styled.js +7 -6
- package/table/styled-components.js +13 -1
- package/table/types.d.ts +2 -2
- package/table-grid/styled-components.js +4 -1
- package/table-semantic/styled-components.js +20 -3
- package/table-semantic/types.d.ts +2 -2
- package/tabs/stateful-tabs.js +1 -0
- package/tabs/styled-components.js +5 -1
- package/tabs/tabs.js +4 -2
- package/tabs/types.d.ts +2 -2
- package/tabs-motion/styled-components.d.ts +5 -0
- package/tabs-motion/styled-components.js +71 -41
- package/tabs-motion/styled-components.js.flow +21 -0
- package/tabs-motion/tab.js +1 -0
- package/tabs-motion/tabs.d.ts +1 -1
- package/tabs-motion/tabs.js +87 -57
- package/tabs-motion/tabs.js.flow +69 -38
- package/tabs-motion/types.d.ts +5 -2
- package/tabs-motion/types.js.flow +3 -0
- package/tabs-motion/utils.d.ts +1 -1
- package/tag/styled-components.js +5 -1
- package/tag/tag.js +4 -2
- package/tag/types.d.ts +4 -5
- package/textarea/styled-components.js +11 -6
- package/textarea/textarea.js +13 -15
- package/textarea/textarea.js.flow +5 -9
- package/textarea/types.d.ts +6 -5
- package/textarea/types.js.flow +3 -1
- package/themes/dark-theme/color-component-tokens.js +1 -1
- package/themes/dark-theme/color-component-tokens.js.flow +1 -1
- package/themes/light-theme/color-component-tokens.js +1 -1
- package/themes/light-theme/color-component-tokens.js.flow +1 -1
- package/themes/move-theme/typography.d.ts +36 -0
- package/themes/move-theme/typography.js +36 -0
- package/themes/move-theme/typography.js.flow +12 -0
- package/themes/shared/borders.js +8 -3
- package/themes/shared/borders.js.flow +7 -3
- package/themes/shared/typography.js +10 -10
- package/themes/shared/typography.js.flow +10 -10
- package/themes/types.d.ts +3 -0
- package/themes/types.js.flow +3 -0
- package/timezonepicker/timezone-picker.js +6 -2
- package/timezonepicker/types.d.ts +1 -0
- package/timezonepicker/types.js.flow +1 -0
- package/timezonepicker/tzdata.js +1 -1
- package/timezonepicker/update-tzdata.js +51 -39
- package/toast/styled-components.js +5 -1
- package/toast/toaster.js.flow +1 -1
- package/toast/types.d.ts +2 -2
- package/tokens/colors.js +24 -0
- package/tokens/colors.js.flow +27 -0
- package/tokens/types.d.ts +24 -0
- package/tokens/types.js.flow +27 -0
- package/tooltip/styled-components.js +4 -1
- package/tree-view/styled-components.js +7 -1
- package/tree-view/tree-view.js +3 -1
- package/tree-view/types.d.ts +3 -4
- package/types/globals.d.js +14 -1
- package/utils/deep-merge.js +0 -6
- package/utils/deprecated-component.js +1 -0
- package/utils/focusVisible.d.ts +1 -1
- package/utils/focusVisible.js +4 -2
- package/card/images.d.ts +0 -2
- package/card/images.js +0 -17
- package/card/images.js.flow +0 -18
- package/es/card/images.js +0 -8
- package/esm/card/images.js +0 -8
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
Copyright (c) Uber Technologies, Inc.
|
|
5
|
+
|
|
6
|
+
This source code is licensed under the MIT license found in the
|
|
7
|
+
LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import { StyledRoot, StyledImage, StyledContentContainer, StyledHeadingContainer, StyledParagraphContainer } from './styled-components';
|
|
11
|
+
import { Button as DefaultButton, SHAPE, SIZE } from '../button';
|
|
12
|
+
import { useStyletron } from '../styles/index';
|
|
13
|
+
import { ThemeProvider, LightTheme } from '../';
|
|
14
|
+
import { getBackgroundColorType } from './utils';
|
|
15
|
+
import { colors } from '../tokens';
|
|
16
|
+
import { getOverrides } from '../helpers/overrides';
|
|
17
|
+
import { IMAGE_LAYOUT, BACKGROUND_COLOR_TYPE, BUTTON_KIND } from './constants';
|
|
18
|
+
|
|
19
|
+
const ButtonAlwaysLightTheme = ({
|
|
20
|
+
children,
|
|
21
|
+
...restProps
|
|
22
|
+
}) => /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
23
|
+
theme: LightTheme
|
|
24
|
+
}, /*#__PURE__*/React.createElement(DefaultButton, restProps, children));
|
|
25
|
+
|
|
26
|
+
const MessageCard = ({
|
|
27
|
+
backgroundColor = colors.white,
|
|
28
|
+
backgroundColorType: backgroundColorTypeProp,
|
|
29
|
+
buttonKind = BUTTON_KIND.secondary,
|
|
30
|
+
buttonLabel,
|
|
31
|
+
heading,
|
|
32
|
+
image,
|
|
33
|
+
onClick,
|
|
34
|
+
overrides = {},
|
|
35
|
+
paragraph
|
|
36
|
+
}) => {
|
|
37
|
+
const {
|
|
38
|
+
src,
|
|
39
|
+
layout = IMAGE_LAYOUT.top,
|
|
40
|
+
backgroundPosition,
|
|
41
|
+
ariaLabel
|
|
42
|
+
} = image || {};
|
|
43
|
+
const [Root, RootProps] = getOverrides(overrides.Root, StyledRoot);
|
|
44
|
+
const [ContentContainer, ContentContainerProps] = getOverrides(overrides.ContentContainer, StyledContentContainer);
|
|
45
|
+
const [HeadingContainer, HeadingContainerProps] = getOverrides(overrides.HeadingContainer, StyledHeadingContainer);
|
|
46
|
+
const [ParagraphContainer, ParagraphContainerProps] = getOverrides(overrides.ParagraphContainer, StyledParagraphContainer);
|
|
47
|
+
const [Image, ImageProps] = getOverrides(overrides.Image, StyledImage);
|
|
48
|
+
const [Button, ButtonProps] = getOverrides(overrides.Button, ButtonAlwaysLightTheme);
|
|
49
|
+
const [, theme] = useStyletron();
|
|
50
|
+
let backgroundColorType = backgroundColorTypeProp || getBackgroundColorType(backgroundColor);
|
|
51
|
+
|
|
52
|
+
if (!backgroundColorType) {
|
|
53
|
+
backgroundColorType = BACKGROUND_COLOR_TYPE.dark;
|
|
54
|
+
|
|
55
|
+
if (process.env.NODE_ENV !== "production") {
|
|
56
|
+
console.warn(`The provided value for 'backgroundColor', ${backgroundColor}, is not recognized as a \
|
|
57
|
+
Base Web primitive color. Please use the 'backgroundColorType' prop to indicate whether\
|
|
58
|
+
this color is light or dark so the rest of the component can be styled accordingly.`);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
let buttonColors;
|
|
63
|
+
|
|
64
|
+
if (buttonKind === BUTTON_KIND.tertiary && backgroundColorType === BACKGROUND_COLOR_TYPE.dark) {
|
|
65
|
+
buttonColors = {
|
|
66
|
+
color: theme.colors.contentOnColor,
|
|
67
|
+
backgroundColor: theme.colors.buttonTertiaryFill
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (buttonKind !== BUTTON_KIND.tertiary && backgroundColor !== colors.white) {
|
|
72
|
+
buttonColors = {
|
|
73
|
+
color: theme.colors.contentOnColorInverse,
|
|
74
|
+
backgroundColor: theme.colors.backgroundAlwaysLight
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return /*#__PURE__*/React.createElement(Root, _extends({
|
|
79
|
+
onClick: onClick,
|
|
80
|
+
$backgroundColor: backgroundColor,
|
|
81
|
+
$backgroundColorType: backgroundColorType,
|
|
82
|
+
$imageLayout: layout
|
|
83
|
+
}, RootProps), image && /*#__PURE__*/React.createElement(Image, _extends({
|
|
84
|
+
role: "img",
|
|
85
|
+
"aria-label": ariaLabel,
|
|
86
|
+
$src: src,
|
|
87
|
+
$imageLayout: layout,
|
|
88
|
+
$backgroundPosition: backgroundPosition
|
|
89
|
+
}, ImageProps)), /*#__PURE__*/React.createElement(ContentContainer, ContentContainerProps, heading && /*#__PURE__*/React.createElement(HeadingContainer, HeadingContainerProps, heading), paragraph && /*#__PURE__*/React.createElement(ParagraphContainer, ParagraphContainerProps, paragraph), buttonLabel && /*#__PURE__*/React.createElement(Button, _extends({
|
|
90
|
+
$as: "div",
|
|
91
|
+
kind: buttonKind,
|
|
92
|
+
shape: SHAPE.pill,
|
|
93
|
+
size: SIZE.compact,
|
|
94
|
+
role: "none",
|
|
95
|
+
tabIndex: -1,
|
|
96
|
+
colors: buttonColors,
|
|
97
|
+
overrides: {
|
|
98
|
+
BaseButton: {
|
|
99
|
+
style: {
|
|
100
|
+
textAlign: 'center',
|
|
101
|
+
pointerEvents: 'none',
|
|
102
|
+
...(buttonKind === BUTTON_KIND.tertiary ? {
|
|
103
|
+
marginTop: theme.sizing.scale100,
|
|
104
|
+
transform: theme.direction === 'rtl' ? `translateX(${theme.sizing.scale500})` : `translateX(-${theme.sizing.scale500})`
|
|
105
|
+
} : {
|
|
106
|
+
marginTop: theme.sizing.scale500
|
|
107
|
+
})
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}, ButtonProps), buttonLabel)));
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export default MessageCard;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) Uber Technologies, Inc.
|
|
3
|
+
|
|
4
|
+
This source code is licensed under the MIT license found in the
|
|
5
|
+
LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { styled } from '../styles';
|
|
8
|
+
import { IMAGE_LAYOUT, BACKGROUND_COLOR_TYPE } from './constants';
|
|
9
|
+
export const StyledRoot = styled('button', ({
|
|
10
|
+
$theme,
|
|
11
|
+
$backgroundColor,
|
|
12
|
+
$backgroundColorType,
|
|
13
|
+
$imageLayout = IMAGE_LAYOUT.top
|
|
14
|
+
}) => {
|
|
15
|
+
const lightBackgroundStyle = {
|
|
16
|
+
color: $theme.colors.contentOnColorInverse,
|
|
17
|
+
borderStyle: 'solid',
|
|
18
|
+
borderWidth: $theme.sizing.scale0,
|
|
19
|
+
borderColor: $theme.colors.borderOpaque
|
|
20
|
+
};
|
|
21
|
+
const darkBackgroundStyle = {
|
|
22
|
+
color: $theme.colors.contentOnColor,
|
|
23
|
+
border: 'none'
|
|
24
|
+
};
|
|
25
|
+
return {
|
|
26
|
+
alignItems: 'stretch',
|
|
27
|
+
backgroundColor: $backgroundColor,
|
|
28
|
+
borderRadius: $theme.borders.radius400,
|
|
29
|
+
cursor: 'pointer',
|
|
30
|
+
display: 'flex',
|
|
31
|
+
flexDirection: $imageLayout === IMAGE_LAYOUT.top ? 'column' : 'row',
|
|
32
|
+
overflow: 'hidden',
|
|
33
|
+
padding: '0',
|
|
34
|
+
position: 'relative',
|
|
35
|
+
textAlign: 'start',
|
|
36
|
+
width: '100%',
|
|
37
|
+
boxShadow: `inset 999px 999px 0px ${$theme.colors.backgroundOverlayArt}`,
|
|
38
|
+
...($backgroundColorType === BACKGROUND_COLOR_TYPE.light ? lightBackgroundStyle : darkBackgroundStyle),
|
|
39
|
+
':focus': {
|
|
40
|
+
outlineWidth: '3px',
|
|
41
|
+
outlineStyle: 'solid',
|
|
42
|
+
outlineColor: $theme.colors.borderAccent,
|
|
43
|
+
outlineOffset: '-3px'
|
|
44
|
+
},
|
|
45
|
+
':hover:after': {
|
|
46
|
+
content: '""',
|
|
47
|
+
width: '100%',
|
|
48
|
+
height: '100%',
|
|
49
|
+
zIndex: '1',
|
|
50
|
+
position: 'absolute',
|
|
51
|
+
top: '0',
|
|
52
|
+
left: '0',
|
|
53
|
+
backgroundColor: $backgroundColorType === BACKGROUND_COLOR_TYPE.light ? 'rgba(0, 0, 0, 0.04)' : 'rgba(255, 255, 255, 0.10)'
|
|
54
|
+
},
|
|
55
|
+
':active:after': {
|
|
56
|
+
content: '""',
|
|
57
|
+
width: '100%',
|
|
58
|
+
height: '100%',
|
|
59
|
+
zIndex: '1',
|
|
60
|
+
position: 'absolute',
|
|
61
|
+
top: '0',
|
|
62
|
+
left: '0',
|
|
63
|
+
backgroundColor: $backgroundColorType === BACKGROUND_COLOR_TYPE.light ? 'rgba(0, 0, 0, 0.08)' : 'rgba(255, 255, 255, 0.20)'
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
StyledRoot.displayName = "StyledRoot";
|
|
68
|
+
export const StyledImage = styled('div', ({
|
|
69
|
+
$imageLayout = IMAGE_LAYOUT.top,
|
|
70
|
+
$backgroundPosition = 'center',
|
|
71
|
+
$src
|
|
72
|
+
}) => {
|
|
73
|
+
return {
|
|
74
|
+
backgroundImage: `url(${$src})`,
|
|
75
|
+
backgroundSize: 'cover',
|
|
76
|
+
backgroundPosition: $backgroundPosition,
|
|
77
|
+
...($imageLayout === IMAGE_LAYOUT.top ? {
|
|
78
|
+
height: '132px',
|
|
79
|
+
width: '100%'
|
|
80
|
+
} : {
|
|
81
|
+
width: '112px',
|
|
82
|
+
order: '1'
|
|
83
|
+
})
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
StyledImage.displayName = "StyledImage";
|
|
87
|
+
export const StyledContentContainer = styled('div', ({
|
|
88
|
+
$theme
|
|
89
|
+
}) => ({
|
|
90
|
+
width: '100%',
|
|
91
|
+
boxSizing: 'border-box',
|
|
92
|
+
paddingTop: $theme.sizing.scale600,
|
|
93
|
+
paddingRight: $theme.sizing.scale300,
|
|
94
|
+
paddingBottom: $theme.sizing.scale600,
|
|
95
|
+
paddingLeft: $theme.sizing.scale600
|
|
96
|
+
}));
|
|
97
|
+
StyledContentContainer.displayName = "StyledContentContainer";
|
|
98
|
+
export const StyledHeadingContainer = styled('div', ({
|
|
99
|
+
$theme
|
|
100
|
+
}) => ({ ...$theme.typography.HeadingXSmall
|
|
101
|
+
}));
|
|
102
|
+
StyledHeadingContainer.displayName = "StyledHeadingContainer";
|
|
103
|
+
export const StyledParagraphContainer = styled('div', ({
|
|
104
|
+
$theme
|
|
105
|
+
}) => ({ ...$theme.typography.ParagraphSmall,
|
|
106
|
+
marginTop: $theme.sizing.scale100
|
|
107
|
+
}));
|
|
108
|
+
StyledParagraphContainer.displayName = "StyledParagraphContainer";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) Uber Technologies, Inc.
|
|
3
|
+
|
|
4
|
+
This source code is licensed under the MIT license found in the
|
|
5
|
+
LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { colors } from '../tokens';
|
|
8
|
+
import { BACKGROUND_COLOR_TYPE } from './constants';
|
|
9
|
+
const LIGHT_COLORS = new Set([colors.red50, colors.red100, colors.red200, colors.red300, colors.green50, colors.green100, colors.green200, colors.green300, colors.teal50, colors.teal100, colors.teal200, colors.teal300, colors.blue50, colors.blue100, colors.blue200, colors.blue300, colors.cobalt50, colors.cobalt100, colors.cobalt200, colors.purple50, colors.purple100, colors.purple200, colors.purple300, colors.magenta50, colors.magenta100, colors.magenta200, colors.magenta300, colors.brown50, colors.brown100, colors.brown200, colors.brown300, colors.orange50, colors.orange100, colors.orange200, colors.orange300, colors.orange400, colors.lime50, colors.lime100, colors.lime200, colors.lime300, colors.lime400, colors.platinum50, colors.platinum100, colors.platinum200, colors.platinum300, colors.platinum400, colors.yellow50, colors.yellow100, colors.yellow200, colors.yellow300, colors.yellow400, colors.yellow500, colors.white, colors.gray50, colors.gray100, colors.gray200, colors.gray300, colors.gray400]);
|
|
10
|
+
const DARK_COLORS = new Set([colors.red400, colors.red500, colors.red600, colors.red700, colors.green400, colors.green500, colors.green600, colors.green700, colors.teal400, colors.teal500, colors.teal600, colors.teal700, colors.blue400, colors.blue500, colors.blue600, colors.blue700, colors.cobalt300, colors.cobalt400, colors.cobalt500, colors.cobalt600, colors.cobalt700, colors.purple400, colors.purple500, colors.purple600, colors.purple700, colors.magenta400, colors.magenta500, colors.magenta600, colors.magenta700, colors.brown400, colors.brown500, colors.brown600, colors.brown700, colors.orange500, colors.orange600, colors.orange700, colors.lime500, colors.lime600, colors.lime700, colors.platinum500, colors.platinum600, colors.platinum700, colors.platinum800, colors.yellow600, colors.yellow700, colors.gray500, colors.gray600, colors.gray700, colors.gray800, colors.gray900, colors.black]);
|
|
11
|
+
const POOR_CONTRAST_COLORS = new Set([colors.red300, colors.gray500, colors.yellow600]);
|
|
12
|
+
export function getBackgroundColorType(backgroundColor) {
|
|
13
|
+
if (process.env.NODE_ENV !== "production" && POOR_CONTRAST_COLORS.has(backgroundColor)) {
|
|
14
|
+
console.warn(`The provided value for backgroundColor, ${backgroundColor}, is not supported because \
|
|
15
|
+
it does not pass accessibility contrast tests for either white or black text.`);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (LIGHT_COLORS.has(backgroundColor)) {
|
|
19
|
+
return BACKGROUND_COLOR_TYPE.light;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (DARK_COLORS.has(backgroundColor)) {
|
|
23
|
+
return BACKGROUND_COLOR_TYPE.dark;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return null;
|
|
27
|
+
}
|
package/es/modal/modal.js
CHANGED
|
@@ -10,8 +10,6 @@ LICENSE file in the root directory of this source tree.
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/* global document */
|
|
13
|
-
|
|
14
|
-
/* eslint-disable cup/no-undef */
|
|
15
13
|
import * as React from 'react';
|
|
16
14
|
import FocusLock from 'react-focus-lock';
|
|
17
15
|
import { LocaleContext } from '../locale';
|
|
@@ -153,7 +151,6 @@ class Modal extends React.Component {
|
|
|
153
151
|
}
|
|
154
152
|
|
|
155
153
|
if (this.animateStartTimer) {
|
|
156
|
-
// eslint-disable-next-line cup/no-undef
|
|
157
154
|
cancelAnimationFrame(this.animateStartTimer);
|
|
158
155
|
}
|
|
159
156
|
}
|
|
@@ -169,8 +166,7 @@ class Modal extends React.Component {
|
|
|
169
166
|
|
|
170
167
|
|
|
171
168
|
this.clearTimers();
|
|
172
|
-
this.disableMountNodeScroll();
|
|
173
|
-
|
|
169
|
+
this.disableMountNodeScroll();
|
|
174
170
|
this.animateStartTimer = requestAnimationFrame(() => {
|
|
175
171
|
this.setState({
|
|
176
172
|
isVisible: true
|
|
@@ -219,6 +215,7 @@ class Modal extends React.Component {
|
|
|
219
215
|
if (mountNode) {
|
|
220
216
|
return mountNode;
|
|
221
217
|
} // Flow thinks body could be null (cast through any)
|
|
218
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
222
219
|
|
|
223
220
|
|
|
224
221
|
return document.body;
|
|
@@ -261,7 +258,8 @@ class Modal extends React.Component {
|
|
|
261
258
|
}, /*#__PURE__*/React.createElement(Root, _extends({
|
|
262
259
|
"data-baseweb": "modal",
|
|
263
260
|
ref: this.rootRef
|
|
264
|
-
}, sharedProps, rootProps), /*#__PURE__*/React.createElement(DialogContainer
|
|
261
|
+
}, sharedProps, rootProps), /*#__PURE__*/React.createElement(DialogContainer // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
262
|
+
, _extends({
|
|
265
263
|
ref: this.dialogContainerRef
|
|
266
264
|
}, sharedProps, dialogContainerProps), /*#__PURE__*/React.createElement(Dialog, _extends({
|
|
267
265
|
tabIndex: -1,
|
|
@@ -43,6 +43,7 @@ export const Root = styled('div', props => {
|
|
|
43
43
|
};
|
|
44
44
|
});
|
|
45
45
|
Root.displayName = "Root";
|
|
46
|
+
Root.displayName = 'Root';
|
|
46
47
|
export const DialogContainer = styled('div', props => {
|
|
47
48
|
const {
|
|
48
49
|
$animate,
|
|
@@ -71,6 +72,7 @@ export const DialogContainer = styled('div', props => {
|
|
|
71
72
|
};
|
|
72
73
|
});
|
|
73
74
|
DialogContainer.displayName = "DialogContainer";
|
|
75
|
+
DialogContainer.displayName = 'DialogContainer';
|
|
74
76
|
export const Dialog = styled('div', props => {
|
|
75
77
|
const {
|
|
76
78
|
$animate,
|
|
@@ -109,6 +111,7 @@ export const Dialog = styled('div', props => {
|
|
|
109
111
|
};
|
|
110
112
|
});
|
|
111
113
|
Dialog.displayName = "Dialog";
|
|
114
|
+
Dialog.displayName = 'Dialog';
|
|
112
115
|
export const Close = styled('button', props => {
|
|
113
116
|
const {
|
|
114
117
|
$theme,
|
|
@@ -158,6 +161,7 @@ export const Close = styled('button', props => {
|
|
|
158
161
|
};
|
|
159
162
|
});
|
|
160
163
|
Close.displayName = "Close";
|
|
164
|
+
Close.displayName = 'Close';
|
|
161
165
|
export const ModalHeader = styled('div', ({
|
|
162
166
|
$theme
|
|
163
167
|
}) => {
|
|
@@ -173,6 +177,7 @@ export const ModalHeader = styled('div', ({
|
|
|
173
177
|
};
|
|
174
178
|
});
|
|
175
179
|
ModalHeader.displayName = "ModalHeader";
|
|
180
|
+
ModalHeader.displayName = 'ModalHeader';
|
|
176
181
|
export const ModalBody = styled('div', ({
|
|
177
182
|
$theme
|
|
178
183
|
}) => ({ ...$theme.typography.font200,
|
|
@@ -183,6 +188,7 @@ export const ModalBody = styled('div', ({
|
|
|
183
188
|
marginBottom: $theme.sizing.scale700
|
|
184
189
|
}));
|
|
185
190
|
ModalBody.displayName = "ModalBody";
|
|
191
|
+
ModalBody.displayName = 'ModalBody';
|
|
186
192
|
export const ModalFooter = styled('div', ({
|
|
187
193
|
$theme
|
|
188
194
|
}) => ({ ...$theme.typography.font200,
|
|
@@ -193,4 +199,5 @@ export const ModalFooter = styled('div', ({
|
|
|
193
199
|
paddingBottom: $theme.sizing.scale500,
|
|
194
200
|
textAlign: $theme.direction === 'rtl' ? 'left' : 'right'
|
|
195
201
|
}));
|
|
196
|
-
ModalFooter.displayName = "ModalFooter";
|
|
202
|
+
ModalFooter.displayName = "ModalFooter";
|
|
203
|
+
ModalFooter.displayName = 'ModalFooter';
|
|
@@ -74,5 +74,6 @@ export default class PaginationStatefulContainer extends React.Component {
|
|
|
74
74
|
|
|
75
75
|
_defineProperty(PaginationStatefulContainer, "defaultProps", {
|
|
76
76
|
initialState,
|
|
77
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
77
78
|
stateReducer: (changeType, changes) => changes
|
|
78
79
|
});
|
|
@@ -14,6 +14,7 @@ export const StyledRoot = styled('div', ({
|
|
|
14
14
|
...$theme.typography.font350
|
|
15
15
|
}));
|
|
16
16
|
StyledRoot.displayName = "StyledRoot";
|
|
17
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
17
18
|
export const StyledMaxLabel = styled('span', ({
|
|
18
19
|
$theme
|
|
19
20
|
}) => {
|
|
@@ -25,6 +26,7 @@ export const StyledMaxLabel = styled('span', ({
|
|
|
25
26
|
};
|
|
26
27
|
});
|
|
27
28
|
StyledMaxLabel.displayName = "StyledMaxLabel";
|
|
29
|
+
StyledMaxLabel.displayName = 'StyledMaxLabel';
|
|
28
30
|
export const StyledDropdownContainer = styled('div', ({
|
|
29
31
|
$theme,
|
|
30
32
|
$isFocusVisible
|
|
@@ -38,4 +40,5 @@ export const StyledDropdownContainer = styled('div', ({
|
|
|
38
40
|
[marginEndDir]: $theme.sizing.scale300
|
|
39
41
|
};
|
|
40
42
|
});
|
|
41
|
-
StyledDropdownContainer.displayName = "StyledDropdownContainer";
|
|
43
|
+
StyledDropdownContainer.displayName = "StyledDropdownContainer";
|
|
44
|
+
StyledDropdownContainer.displayName = 'StyledDropdownContainer';
|
|
@@ -27,6 +27,7 @@ CountryPicker.defaultProps = {
|
|
|
27
27
|
required: defaultProps.required
|
|
28
28
|
};
|
|
29
29
|
const DropdownListItem = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
30
31
|
const {
|
|
31
32
|
children,
|
|
32
33
|
...rest
|
|
@@ -152,7 +153,8 @@ export default function CountryPicker(props) {
|
|
|
152
153
|
const [Dialcode, dialcodeProps] = getOverrides(overrides.CountrySelectDropdownDialcodeColumn, DefaultDialcodeColumn);
|
|
153
154
|
return /*#__PURE__*/React.createElement(Select, _extends({
|
|
154
155
|
clearable: false,
|
|
155
|
-
disabled: disabled
|
|
156
|
+
disabled: disabled // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
157
|
+
,
|
|
156
158
|
getOptionLabel: ({
|
|
157
159
|
option,
|
|
158
160
|
optionState
|
|
@@ -15,6 +15,7 @@ export const StyledPhoneInputRoot = styled('div', {
|
|
|
15
15
|
display: 'flex'
|
|
16
16
|
});
|
|
17
17
|
StyledPhoneInputRoot.displayName = "StyledPhoneInputRoot";
|
|
18
|
+
StyledPhoneInputRoot.displayName = 'StyledPhoneInputRoot';
|
|
18
19
|
export const StyledFlagContainer = styled('span', ({
|
|
19
20
|
$size = SIZE.default,
|
|
20
21
|
$theme: {
|
|
@@ -30,9 +31,10 @@ export const StyledFlagContainer = styled('span', ({
|
|
|
30
31
|
return {
|
|
31
32
|
fontSize: sizeToFont[$size]
|
|
32
33
|
};
|
|
33
|
-
});
|
|
34
|
-
|
|
34
|
+
});
|
|
35
35
|
StyledFlagContainer.displayName = "StyledFlagContainer";
|
|
36
|
+
StyledFlagContainer.displayName = 'StyledFlagContainer'; // An override component for the Select's Root styled element
|
|
37
|
+
|
|
36
38
|
export const StyledRoot = withStyle(SelectStyledRoot, props => {
|
|
37
39
|
// hard coded widths for the flag dropdown anchor
|
|
38
40
|
const sizeToWidth = {
|
|
@@ -47,6 +49,7 @@ export const StyledRoot = withStyle(SelectStyledRoot, props => {
|
|
|
47
49
|
};
|
|
48
50
|
});
|
|
49
51
|
StyledRoot.displayName = "StyledRoot";
|
|
52
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
50
53
|
export const StyledDialCode = styled('div', ({
|
|
51
54
|
$theme: {
|
|
52
55
|
direction,
|
|
@@ -61,11 +64,13 @@ export const StyledDialCode = styled('div', ({
|
|
|
61
64
|
};
|
|
62
65
|
});
|
|
63
66
|
StyledDialCode.displayName = "StyledDialCode";
|
|
67
|
+
StyledDialCode.displayName = 'StyledDialCode';
|
|
64
68
|
export const StyledCountrySelectContainer = styled('div', {
|
|
65
69
|
display: 'flex',
|
|
66
70
|
alignItems: 'center'
|
|
67
71
|
});
|
|
68
72
|
StyledCountrySelectContainer.displayName = "StyledCountrySelectContainer";
|
|
73
|
+
StyledCountrySelectContainer.displayName = 'StyledCountrySelectContainer';
|
|
69
74
|
export const StyledCountrySelectDropdownContainer = withStyle(StyledList, props => {
|
|
70
75
|
const {
|
|
71
76
|
$height = defaultProps.maxDropdownHeight
|
|
@@ -77,6 +82,7 @@ export const StyledCountrySelectDropdownContainer = withStyle(StyledList, props
|
|
|
77
82
|
};
|
|
78
83
|
});
|
|
79
84
|
StyledCountrySelectDropdownContainer.displayName = "StyledCountrySelectDropdownContainer";
|
|
85
|
+
StyledCountrySelectDropdownContainer.displayName = 'StyledCountrySelectDropdownContainer';
|
|
80
86
|
export const StyledCountrySelectDropdownListItemElement = withStyle(StyledDropdownListItem, {
|
|
81
87
|
paddingTop: 0,
|
|
82
88
|
paddingBottom: 0,
|
|
@@ -87,7 +93,9 @@ export const StyledCountrySelectDropdownListItemElement = withStyle(StyledDropdo
|
|
|
87
93
|
height: '42px'
|
|
88
94
|
});
|
|
89
95
|
StyledCountrySelectDropdownListItemElement.displayName = "StyledCountrySelectDropdownListItemElement";
|
|
90
|
-
|
|
96
|
+
StyledCountrySelectDropdownListItemElement.displayName = 'StyledCountrySelectDropdownListItemElement';
|
|
97
|
+
export const StyledCountrySelectDropdownListItem = withWrapper(StyledCountrySelectDropdownListItemElement, Styled => // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
98
|
+
function StyledCountrySelectDropdownListItem({
|
|
91
99
|
item,
|
|
92
100
|
...restProps
|
|
93
101
|
}) {
|
|
@@ -107,6 +115,7 @@ export const StyledCountrySelectDropdownFlagColumn = styled('div', ({
|
|
|
107
115
|
};
|
|
108
116
|
});
|
|
109
117
|
StyledCountrySelectDropdownFlagColumn.displayName = "StyledCountrySelectDropdownFlagColumn";
|
|
118
|
+
StyledCountrySelectDropdownFlagColumn.displayName = 'StyledCountrySelectDropdownFlagColumn';
|
|
110
119
|
export const StyledCountrySelectDropdownNameColumn = styled('div', ({
|
|
111
120
|
$theme: {
|
|
112
121
|
direction,
|
|
@@ -119,6 +128,7 @@ export const StyledCountrySelectDropdownNameColumn = styled('div', ({
|
|
|
119
128
|
};
|
|
120
129
|
});
|
|
121
130
|
StyledCountrySelectDropdownNameColumn.displayName = "StyledCountrySelectDropdownNameColumn";
|
|
131
|
+
StyledCountrySelectDropdownNameColumn.displayName = 'StyledCountrySelectDropdownNameColumn';
|
|
122
132
|
export const StyledCountrySelectDropdownDialcodeColumn = styled('div', ({
|
|
123
133
|
$theme: {
|
|
124
134
|
direction,
|
|
@@ -132,4 +142,5 @@ export const StyledCountrySelectDropdownDialcodeColumn = styled('div', ({
|
|
|
132
142
|
[marginDir]: 'auto'
|
|
133
143
|
};
|
|
134
144
|
});
|
|
135
|
-
StyledCountrySelectDropdownDialcodeColumn.displayName = "StyledCountrySelectDropdownDialcodeColumn";
|
|
145
|
+
StyledCountrySelectDropdownDialcodeColumn.displayName = "StyledCountrySelectDropdownDialcodeColumn";
|
|
146
|
+
StyledCountrySelectDropdownDialcodeColumn.displayName = 'StyledCountrySelectDropdownDialcodeColumn';
|
|
@@ -11,6 +11,7 @@ export const StyledRoot = styled('div', {
|
|
|
11
11
|
alignItems: 'center'
|
|
12
12
|
});
|
|
13
13
|
StyledRoot.displayName = "StyledRoot";
|
|
14
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
14
15
|
export const StyledInputOverrideRoot = withStyle(StyledInputRoot, ({
|
|
15
16
|
$size = SIZE.default
|
|
16
17
|
}) => {
|
|
@@ -26,9 +27,11 @@ export const StyledInputOverrideRoot = withStyle(StyledInputRoot, ({
|
|
|
26
27
|
};
|
|
27
28
|
});
|
|
28
29
|
StyledInputOverrideRoot.displayName = "StyledInputOverrideRoot";
|
|
30
|
+
StyledInputOverrideRoot.displayName = 'StyledInputOverrideRoot';
|
|
29
31
|
export const StyledInputOverrideInput = withStyle(StyledInputInput, {
|
|
30
32
|
textAlign: 'center',
|
|
31
33
|
paddingLeft: '0',
|
|
32
34
|
paddingRight: '0'
|
|
33
35
|
});
|
|
34
|
-
StyledInputOverrideInput.displayName = "StyledInputOverrideInput";
|
|
36
|
+
StyledInputOverrideInput.displayName = "StyledInputOverrideInput";
|
|
37
|
+
StyledInputOverrideInput.displayName = 'StyledInputOverrideInput';
|
package/es/popover/popover.js
CHANGED
|
@@ -128,13 +128,11 @@ class PopoverInner extends React.Component {
|
|
|
128
128
|
const popper = this.popperRef.current;
|
|
129
129
|
const anchor = this.anchorRef.current; // Ignore document click if it came from popover or anchor
|
|
130
130
|
|
|
131
|
-
if (!popper || popper === target ||
|
|
132
|
-
target instanceof Node && popper.contains(target)) {
|
|
131
|
+
if (!popper || popper === target || target instanceof Node && popper.contains(target)) {
|
|
133
132
|
return;
|
|
134
133
|
}
|
|
135
134
|
|
|
136
|
-
if (!anchor || anchor === target ||
|
|
137
|
-
target instanceof Node && popper.contains(target)) {
|
|
135
|
+
if (!anchor || anchor === target || target instanceof Node && popper.contains(target)) {
|
|
138
136
|
return;
|
|
139
137
|
}
|
|
140
138
|
|
|
@@ -153,7 +151,7 @@ class PopoverInner extends React.Component {
|
|
|
153
151
|
componentDidUpdate(prevProps, prevState) {
|
|
154
152
|
this.init(prevProps, prevState);
|
|
155
153
|
|
|
156
|
-
if (this.props.autoFocus && !this.state.autoFocusAfterPositioning && this.popperRef.current !== null && this.popperRef.current.getBoundingClientRect().top > 0) {
|
|
154
|
+
if (this.props.accessibilityType !== ACCESSIBILITY_TYPE.tooltip && this.props.autoFocus && !this.state.autoFocusAfterPositioning && this.popperRef.current !== null && this.popperRef.current.getBoundingClientRect().top > 0) {
|
|
157
155
|
this.setState({
|
|
158
156
|
autoFocusAfterPositioning: true
|
|
159
157
|
});
|
|
@@ -272,10 +270,6 @@ class PopoverInner extends React.Component {
|
|
|
272
270
|
isOpen
|
|
273
271
|
} = this.props;
|
|
274
272
|
const anchorProps = {
|
|
275
|
-
'aria-haspopup': true,
|
|
276
|
-
'aria-expanded': isOpen ? true : false,
|
|
277
|
-
// @ts-expect-error todo(flow->ts): should it be here?
|
|
278
|
-
key: 'popover-anchor',
|
|
279
273
|
ref: this.anchorRef
|
|
280
274
|
};
|
|
281
275
|
const popoverId = this.getPopoverIdAttr();
|
|
@@ -283,6 +277,8 @@ class PopoverInner extends React.Component {
|
|
|
283
277
|
if (this.isAccessibilityTypeMenu()) {
|
|
284
278
|
const relationAttr = this.isClickTrigger() ? 'aria-controls' : 'aria-owns';
|
|
285
279
|
anchorProps[relationAttr] = isOpen ? popoverId : null;
|
|
280
|
+
anchorProps['aria-haspopup'] = true;
|
|
281
|
+
anchorProps['aria-expanded'] = Boolean(isOpen);
|
|
286
282
|
} else if (this.isAccessibilityTypeTooltip()) {
|
|
287
283
|
anchorProps.id = this.getAnchorIdAttr();
|
|
288
284
|
anchorProps['aria-describedby'] = isOpen ? popoverId : null;
|
|
@@ -373,7 +369,9 @@ class PopoverInner extends React.Component {
|
|
|
373
369
|
return /*#__PURE__*/React.cloneElement(anchor, anchorProps);
|
|
374
370
|
}
|
|
375
371
|
|
|
376
|
-
return /*#__PURE__*/React.createElement("span",
|
|
372
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
373
|
+
key: "popover-anchor"
|
|
374
|
+
}, anchorProps), anchor);
|
|
377
375
|
}
|
|
378
376
|
|
|
379
377
|
renderPopover(renderedContent) {
|
|
@@ -446,7 +444,7 @@ class PopoverInner extends React.Component {
|
|
|
446
444
|
},
|
|
447
445
|
onPopperUpdate: this.onPopperUpdate,
|
|
448
446
|
placement: this.state.placement
|
|
449
|
-
}, this.props.focusLock ? /*#__PURE__*/React.createElement(FocusLock, {
|
|
447
|
+
}, this.props.focusLock && this.props.accessibilityType !== ACCESSIBILITY_TYPE.tooltip ? /*#__PURE__*/React.createElement(FocusLock, {
|
|
450
448
|
disabled: !this.props.focusLock,
|
|
451
449
|
noFocusGuards: false // see popover-focus-loop.scenario.js for why hover cannot return focus
|
|
452
450
|
,
|
|
@@ -8,6 +8,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
8
8
|
*/
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { ACCESSIBILITY_TYPE, PLACEMENT, STATE_CHANGE_TYPE, TRIGGER_TYPE, POPOVER_MARGIN } from './constants';
|
|
11
|
+
import { isFocusVisible } from '../utils/focusVisible';
|
|
11
12
|
|
|
12
13
|
const defaultStateReducer = (type, nextState) => nextState;
|
|
13
14
|
|
|
@@ -57,7 +58,9 @@ class StatefulContainer extends React.Component {
|
|
|
57
58
|
this.props.onFocus(e);
|
|
58
59
|
}
|
|
59
60
|
|
|
60
|
-
|
|
61
|
+
if (isFocusVisible(e)) {
|
|
62
|
+
this.open();
|
|
63
|
+
}
|
|
61
64
|
});
|
|
62
65
|
|
|
63
66
|
_defineProperty(this, "onMouseEnter", e => {
|
|
@@ -56,11 +56,12 @@ export function getBodyStyles(props) {
|
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
export const Body = styled('div', getBodyStyles);
|
|
59
|
+
Body.displayName = "Body";
|
|
60
|
+
Body.displayName = 'Body';
|
|
59
61
|
/**
|
|
60
62
|
* Arrow shown between the popover and the anchor element
|
|
61
63
|
*/
|
|
62
64
|
|
|
63
|
-
Body.displayName = "Body";
|
|
64
65
|
export function getArrowStyles(props) {
|
|
65
66
|
const {
|
|
66
67
|
$arrowOffset,
|
|
@@ -78,6 +79,8 @@ export function getArrowStyles(props) {
|
|
|
78
79
|
};
|
|
79
80
|
}
|
|
80
81
|
export const Arrow = styled('div', getArrowStyles);
|
|
82
|
+
Arrow.displayName = "Arrow";
|
|
83
|
+
Arrow.displayName = 'Arrow';
|
|
81
84
|
/**
|
|
82
85
|
* Extra div that holds the popover content. This extra element
|
|
83
86
|
* is needed for the arrow–the arrow is just a 45deg rotated div,
|
|
@@ -85,7 +88,6 @@ export const Arrow = styled('div', getArrowStyles);
|
|
|
85
88
|
* clips the part of the arrow that extends into the popover.
|
|
86
89
|
*/
|
|
87
90
|
|
|
88
|
-
Arrow.displayName = "Arrow";
|
|
89
91
|
export function getInnerStyles({
|
|
90
92
|
$theme
|
|
91
93
|
}) {
|
|
@@ -100,13 +102,14 @@ export function getInnerStyles({
|
|
|
100
102
|
};
|
|
101
103
|
}
|
|
102
104
|
export const Inner = styled('div', getInnerStyles);
|
|
105
|
+
Inner.displayName = "Inner";
|
|
106
|
+
Inner.displayName = 'Inner';
|
|
103
107
|
/**
|
|
104
108
|
* A drop-in component that provides the recommended padding
|
|
105
109
|
* for popovers. Mostly a convenience for users so they don't
|
|
106
110
|
* have to define this themselves.
|
|
107
111
|
*/
|
|
108
112
|
|
|
109
|
-
Inner.displayName = "Inner";
|
|
110
113
|
export const Padding = styled('div', {
|
|
111
114
|
paddingLeft: '12px',
|
|
112
115
|
paddingTop: '12px',
|
|
@@ -114,7 +117,9 @@ export const Padding = styled('div', {
|
|
|
114
117
|
paddingBottom: '12px'
|
|
115
118
|
});
|
|
116
119
|
Padding.displayName = "Padding";
|
|
120
|
+
Padding.displayName = 'Padding';
|
|
117
121
|
export const Hidden = styled('div', {
|
|
118
122
|
display: 'none'
|
|
119
123
|
});
|
|
120
|
-
Hidden.displayName = "Hidden";
|
|
124
|
+
Hidden.displayName = "Hidden";
|
|
125
|
+
Hidden.displayName = 'Hidden';
|