baseui 0.0.0-alpha-3479e57 → 0.0.0-alpha-e79754d
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 +2 -4
- package/accordion/accordion.js.flow +1 -1
- package/accordion/panel.js +2 -3
- package/accordion/stateful-panel-container.js +0 -1
- package/accordion/styled-components.js +1 -8
- package/app-nav-bar/app-nav-bar.js +2 -4
- package/app-nav-bar/mobile-menu.js +1 -2
- package/app-nav-bar/styled-components.js +1 -19
- package/app-nav-bar/user-menu.js +1 -1
- package/aspect-ratio-box/aspect-ratio-box.js +1 -3
- package/avatar/styled-components.js +1 -4
- package/badge/styled-components.js +7 -12
- package/banner/styled-components.js +11 -21
- package/banner/types.d.ts +11 -12
- package/banner/types.js.flow +11 -13
- package/block/block.js +1 -3
- package/block/styled-components.js +1 -2
- package/breadcrumbs/styled-components.js +1 -5
- package/button/styled-components.js +0 -5
- package/button-group/stateful-button-group.js +0 -1
- package/button-group/stateful-container.js +1 -3
- package/button-group/styled-components.js +1 -2
- package/card/images.d.ts +1 -1
- package/card/styled-components.js +4 -11
- package/checkbox/styled-components.js +3 -9
- package/combobox/combobox.js +71 -78
- package/combobox/styled-components.js +1 -5
- package/data-table/column-anchor.js +0 -3
- package/data-table/column-datetime.js +4 -10
- package/data-table/column-numerical.js +4 -4
- package/data-table/column-string.js +0 -3
- package/data-table/column.js +1 -6
- package/data-table/data-table.js +6 -7
- package/data-table/filter-menu.js +1 -2
- package/data-table/header-cell.js +34 -43
- package/data-table/locale.d.ts +0 -4
- package/data-table/locale.js +1 -3
- package/data-table/locale.js.flow +0 -5
- package/data-table/measure-column-widths.js +1 -2
- package/data-table/stateful-container.js +1 -2
- package/data-table/stateful-data-table.js +4 -4
- package/datepicker/calendar-header.js +0 -1
- package/datepicker/calendar.js +0 -2
- package/datepicker/datepicker.js +0 -2
- package/datepicker/day.js +1 -2
- package/datepicker/stateful-calendar.js +3 -7
- package/datepicker/stateful-container.js +0 -2
- package/datepicker/stateful-datepicker.js +4 -9
- package/datepicker/styled-components.js +4 -27
- package/datepicker/utils/date-helpers.js +1 -2
- package/datepicker/utils/index.js +1 -2
- package/divider/styled-components.js +3 -4
- package/dnd-list/stateful-list-container.js +0 -1
- package/dnd-list/styled-components.js +0 -7
- package/drawer/constants.js +0 -1
- package/drawer/drawer.js +3 -2
- package/drawer/drawer.js.flow +3 -1
- package/drawer/styled-components.js +2 -9
- package/es/accordion/accordion.js +3 -3
- package/es/accordion/panel.js +2 -3
- package/es/accordion/stateful-panel-container.js +0 -1
- package/es/accordion/styled-components.js +1 -8
- package/es/app-nav-bar/app-nav-bar.js +2 -6
- package/es/app-nav-bar/mobile-menu.js +2 -4
- package/es/app-nav-bar/styled-components.js +1 -19
- package/es/app-nav-bar/user-menu.js +1 -1
- package/es/aspect-ratio-box/aspect-ratio-box.js +1 -3
- package/es/avatar/styled-components.js +1 -4
- package/es/badge/styled-components.js +2 -7
- package/es/banner/styled-components.js +2 -12
- package/es/block/block.js +1 -3
- package/es/block/styled-components.js +1 -2
- package/es/breadcrumbs/styled-components.js +1 -5
- package/es/button/button.js +0 -8
- package/es/button/styled-components.js +0 -5
- package/es/button-group/stateful-button-group.js +0 -1
- package/es/button-group/stateful-container.js +1 -3
- package/es/button-group/styled-components.js +1 -2
- package/es/card/index.js +1 -2
- package/es/card/styled-components.js +4 -12
- package/es/checkbox/index.js +0 -1
- package/es/checkbox/stateful-checkbox-container.js +0 -3
- package/es/checkbox/styled-components.js +3 -9
- package/es/combobox/combobox.js +69 -76
- package/es/combobox/styled-components.js +1 -5
- package/es/data-table/column-anchor.js +0 -3
- package/es/data-table/column-datetime.js +5 -12
- package/es/data-table/column-numerical.js +4 -5
- package/es/data-table/column-string.js +0 -3
- package/es/data-table/column.js +1 -4
- package/es/data-table/data-table.js +6 -7
- package/es/data-table/filter-menu.js +1 -2
- package/es/data-table/header-cell.js +34 -41
- package/es/data-table/locale.js +1 -3
- package/es/data-table/measure-column-widths.js +1 -2
- package/es/data-table/stateful-container.js +1 -2
- package/es/data-table/stateful-data-table.js +4 -4
- package/es/datepicker/calendar-header.js +0 -1
- package/es/datepicker/calendar.js +0 -2
- package/es/datepicker/datepicker.js +1 -3
- package/es/datepicker/day.js +1 -2
- package/es/datepicker/stateful-calendar.js +1 -4
- package/es/datepicker/stateful-container.js +0 -2
- package/es/datepicker/stateful-datepicker.js +1 -5
- package/es/datepicker/styled-components.js +3 -26
- package/es/datepicker/utils/date-helpers.js +1 -2
- package/es/datepicker/utils/index.js +1 -2
- package/es/divider/styled-components.js +2 -3
- package/es/dnd-list/stateful-list-container.js +0 -1
- package/es/dnd-list/styled-components.js +0 -7
- package/es/drawer/constants.js +0 -1
- package/es/drawer/drawer.js +5 -2
- package/es/drawer/styled-components.js +2 -9
- package/es/file-uploader/styled-components.js +1 -6
- package/es/flex-grid/flex-grid-item.js +6 -5
- package/es/flex-grid/flex-grid.js +1 -4
- package/es/form-control/styled-components.js +1 -6
- package/es/header-navigation/styled-components.js +1 -4
- package/es/helper/styled-components.js +1 -3
- package/es/helpers/overrides.js +5 -9
- package/es/icon/build-icons.js +2 -0
- package/es/icon/omit-dollar-prefixed-keys.js +0 -1
- package/es/icon/styled-components.js +1 -2
- package/es/input/base-input.js +0 -1
- package/es/input/masked-input.js +2 -9
- package/es/input/stateful-container.js +0 -1
- package/es/input/styled-components.js +5 -10
- package/es/layer/layer.js +0 -24
- package/es/layer/layers-manager.js +1 -91
- package/es/layout-grid/styled-components.js +0 -3
- package/es/link/index.js +1 -2
- package/es/link/styled-components.js +1 -2
- package/es/list/list-heading.js +17 -21
- package/es/list/list-item.js +1 -2
- package/es/list/styled-components.js +1 -15
- package/es/locale/es_AR.js +1 -3
- package/es/locale/index.js +1 -2
- package/es/locale/tr_TR.js +1 -3
- package/es/map-marker/constants.js +0 -14
- package/es/map-marker/fixed-marker.js +0 -1
- package/es/map-marker/index.js +1 -2
- package/es/map-marker/pin-head.js +0 -1
- package/es/map-marker/styled-components.js +2 -86
- package/es/menu/menu.js +3 -7
- package/es/menu/option-profile.js +0 -1
- package/es/menu/stateful-container.js +0 -10
- package/es/menu/styled-components.js +2 -15
- package/es/modal/modal.js +6 -4
- package/es/modal/styled-components.js +1 -8
- package/es/pagination/stateful-container.js +0 -1
- package/es/pagination/stateful-pagination.js +0 -1
- package/es/pagination/styled-components.js +1 -4
- package/es/payment-card/styled-components.js +1 -2
- package/es/phone-input/base-country-picker.js +1 -3
- package/es/phone-input/country-select-dropdown.js +0 -1
- package/es/phone-input/styled-components.js +4 -15
- package/es/pin-code/styled-components.js +1 -4
- package/es/popover/popover.js +12 -9
- package/es/popover/styled-components.js +4 -9
- package/es/progress-bar/progressbar-rounded.js +0 -1
- package/es/progress-bar/styled-components.js +2 -14
- package/es/progress-steps/progress-steps.js +1 -2
- package/es/progress-steps/styled-components.js +12 -20
- package/es/radio/stateful-radiogroup-container.js +0 -3
- package/es/radio/styled-components.js +3 -10
- package/es/rating/emoticon-rating.js +1 -2
- package/es/rating/star-rating.js +1 -2
- package/es/rating/styled-components.js +1 -5
- package/es/select/autosize-input.js +3 -2
- package/es/select/dropdown.js +1 -2
- package/es/select/multi-value.js +1 -2
- package/es/select/select-component.js +10 -10
- package/es/select/single-select.js +2 -2
- package/es/select/stateful-select-container.js +0 -2
- package/es/select/styled-components.js +1 -16
- package/es/select/value.js +4 -3
- package/es/side-navigation/index.js +1 -2
- package/es/side-navigation/nav-item.js +0 -1
- package/es/side-navigation/nav.js +1 -1
- package/es/side-navigation/stateful-container.js +0 -1
- package/es/side-navigation/styled-components.js +2 -8
- package/es/skeleton/styled-components.js +1 -3
- package/es/slider/slider.js +2 -4
- package/es/slider/stateful-slider-container.js +0 -2
- package/es/slider/styled-components.js +0 -9
- package/es/snackbar/snackbar-element.js +0 -1
- package/es/snackbar/styled-components.js +1 -9
- package/es/spinner/styled-components.js +1 -2
- package/es/styles/__mocks__/styled.js +5 -8
- package/es/styles/styled.js +6 -7
- package/es/table/index.js +1 -2
- package/es/table/styled-components.js +1 -13
- package/es/table-grid/styled-components.js +1 -4
- package/es/table-semantic/styled-components.js +2 -20
- package/es/tabs/stateful-tabs.js +0 -1
- package/es/tabs/styled-components.js +1 -5
- package/es/tabs/tabs.js +2 -4
- package/es/tabs-motion/styled-components.js +1 -9
- package/es/tabs-motion/tab.js +0 -1
- package/es/tabs-motion/tabs.js +1 -2
- package/es/tag/styled-components.js +1 -32
- package/es/tag/tag.js +2 -6
- package/es/textarea/styled-components.js +1 -4
- package/es/themes/shared/typography.js +10 -10
- package/es/toast/styled-components.js +1 -5
- package/es/toast/toaster.js +2 -0
- package/es/tokens/colors.js +0 -24
- package/es/tooltip/styled-components.js +1 -4
- package/es/tree-view/index.js +1 -2
- package/es/tree-view/styled-components.js +1 -7
- package/es/tree-view/tree-view.js +1 -3
- package/es/types/globals.d.js +0 -12
- package/es/utils/deep-merge.js +5 -0
- package/es/utils/deprecated-component.js +0 -1
- package/es/utils/focusVisible.js +2 -4
- package/esm/accordion/accordion.js +4 -4
- package/esm/accordion/panel.js +2 -3
- package/esm/accordion/stateful-panel-container.js +0 -1
- package/esm/accordion/styled-components.js +1 -8
- package/esm/app-nav-bar/app-nav-bar.js +2 -4
- package/esm/app-nav-bar/mobile-menu.js +2 -4
- package/esm/app-nav-bar/styled-components.js +1 -19
- package/esm/app-nav-bar/user-menu.js +1 -1
- package/esm/aspect-ratio-box/aspect-ratio-box.js +1 -3
- package/esm/avatar/styled-components.js +1 -4
- package/esm/badge/styled-components.js +2 -7
- package/esm/banner/styled-components.js +2 -12
- package/esm/block/block.js +1 -3
- package/esm/block/styled-components.js +1 -2
- package/esm/breadcrumbs/styled-components.js +1 -5
- package/esm/button/styled-components.js +0 -5
- package/esm/button-group/stateful-button-group.js +0 -1
- package/esm/button-group/stateful-container.js +1 -3
- package/esm/button-group/styled-components.js +1 -2
- package/esm/card/index.js +1 -2
- package/esm/card/styled-components.js +4 -12
- package/esm/checkbox/index.js +0 -1
- package/esm/checkbox/styled-components.js +3 -9
- package/esm/combobox/combobox.js +71 -78
- package/esm/combobox/styled-components.js +1 -5
- package/esm/data-table/column-anchor.js +0 -3
- package/esm/data-table/column-datetime.js +5 -12
- package/esm/data-table/column-numerical.js +4 -4
- package/esm/data-table/column-string.js +0 -3
- package/esm/data-table/column.js +1 -5
- package/esm/data-table/data-table.js +6 -7
- package/esm/data-table/filter-menu.js +1 -2
- package/esm/data-table/header-cell.js +34 -42
- package/esm/data-table/locale.js +1 -3
- package/esm/data-table/measure-column-widths.js +1 -2
- package/esm/data-table/stateful-container.js +1 -2
- package/esm/data-table/stateful-data-table.js +4 -4
- package/esm/datepicker/calendar-header.js +0 -1
- package/esm/datepicker/calendar.js +0 -2
- package/esm/datepicker/datepicker.js +1 -3
- package/esm/datepicker/day.js +1 -2
- package/esm/datepicker/stateful-calendar.js +3 -7
- package/esm/datepicker/stateful-container.js +0 -2
- package/esm/datepicker/stateful-datepicker.js +4 -9
- package/esm/datepicker/styled-components.js +3 -26
- package/esm/datepicker/utils/date-helpers.js +1 -2
- package/esm/datepicker/utils/index.js +1 -2
- package/esm/divider/styled-components.js +2 -3
- package/esm/dnd-list/stateful-list-container.js +0 -1
- package/esm/dnd-list/styled-components.js +0 -7
- package/esm/drawer/constants.js +0 -1
- package/esm/drawer/drawer.js +5 -2
- package/esm/drawer/styled-components.js +2 -9
- package/esm/file-uploader/styled-components.js +1 -6
- package/esm/flex-grid/flex-grid-item.js +5 -4
- package/esm/flex-grid/flex-grid.js +3 -7
- package/esm/form-control/styled-components.js +1 -6
- package/esm/header-navigation/styled-components.js +1 -4
- package/esm/helper/styled-components.js +1 -3
- package/esm/helpers/overrides.js +5 -9
- package/esm/icon/build-icons.js +2 -0
- package/esm/icon/omit-dollar-prefixed-keys.js +0 -1
- package/esm/icon/styled-components.js +1 -2
- package/esm/input/base-input.js +0 -1
- package/esm/input/masked-input.js +2 -5
- package/esm/input/stateful-container.js +0 -1
- package/esm/input/styled-components.js +5 -10
- package/esm/layer/layer.js +0 -24
- package/esm/layer/layers-manager.js +1 -97
- package/esm/layout-grid/styled-components.js +0 -3
- package/esm/link/index.js +1 -2
- package/esm/link/styled-components.js +1 -2
- package/esm/list/list-heading.js +17 -21
- package/esm/list/list-item.js +1 -2
- package/esm/list/styled-components.js +1 -15
- package/esm/locale/es_AR.js +1 -3
- package/esm/locale/index.js +1 -4
- package/esm/locale/tr_TR.js +1 -3
- package/esm/map-marker/constants.js +2 -12
- package/esm/map-marker/index.js +1 -2
- package/esm/map-marker/styled-components.js +2 -82
- package/esm/menu/menu.js +3 -6
- package/esm/menu/option-profile.js +0 -1
- package/esm/menu/stateful-container.js +0 -1
- package/esm/menu/styled-components.js +6 -20
- package/esm/modal/modal.js +6 -4
- package/esm/modal/styled-components.js +1 -8
- package/esm/pagination/stateful-container.js +0 -1
- package/esm/pagination/stateful-pagination.js +0 -1
- package/esm/pagination/styled-components.js +1 -4
- package/esm/payment-card/styled-components.js +1 -2
- package/esm/phone-input/base-country-picker.js +1 -3
- package/esm/phone-input/country-select-dropdown.js +0 -1
- package/esm/phone-input/styled-components.js +8 -20
- package/esm/pin-code/styled-components.js +1 -4
- package/esm/popover/popover.js +12 -9
- package/esm/popover/styled-components.js +4 -9
- package/esm/progress-bar/progressbar-rounded.js +0 -1
- package/esm/progress-bar/styled-components.js +2 -14
- package/esm/progress-steps/progress-steps.js +1 -2
- package/esm/progress-steps/styled-components.js +19 -28
- package/esm/radio/styled-components.js +3 -10
- package/esm/rating/emoticon-rating.js +1 -2
- package/esm/rating/star-rating.js +1 -2
- package/esm/rating/styled-components.js +1 -5
- package/esm/select/autosize-input.js +3 -2
- package/esm/select/dropdown.js +1 -2
- package/esm/select/multi-value.js +1 -2
- package/esm/select/select-component.js +10 -10
- package/esm/select/single-select.js +2 -2
- package/esm/select/styled-components.js +1 -16
- package/esm/select/value.js +4 -3
- package/esm/side-navigation/index.js +1 -2
- package/esm/side-navigation/nav-item.js +0 -1
- package/esm/side-navigation/nav.js +1 -1
- package/esm/side-navigation/stateful-container.js +0 -1
- package/esm/side-navigation/styled-components.js +6 -13
- package/esm/skeleton/styled-components.js +1 -3
- package/esm/slider/slider.js +2 -4
- package/esm/slider/styled-components.js +0 -9
- package/esm/snackbar/snackbar-element.js +0 -1
- package/esm/snackbar/styled-components.js +1 -9
- package/esm/spinner/styled-components.js +1 -2
- package/esm/styles/__mocks__/styled.js +5 -8
- package/esm/styles/styled.js +6 -7
- package/esm/table/index.js +1 -2
- package/esm/table/styled-components.js +1 -13
- package/esm/table-grid/styled-components.js +1 -4
- package/esm/table-semantic/styled-components.js +2 -20
- package/esm/tabs/stateful-tabs.js +0 -1
- package/esm/tabs/styled-components.js +1 -5
- package/esm/tabs/tabs.js +2 -4
- package/esm/tabs-motion/styled-components.js +1 -8
- package/esm/tabs-motion/tab.js +0 -1
- package/esm/tabs-motion/tabs.js +1 -2
- package/esm/tag/styled-components.js +1 -5
- package/esm/tag/tag.js +2 -4
- package/esm/textarea/styled-components.js +1 -4
- package/esm/themes/shared/typography.js +10 -10
- package/esm/toast/styled-components.js +1 -5
- package/esm/toast/toaster.js +2 -0
- package/esm/tokens/colors.js +0 -24
- package/esm/tooltip/styled-components.js +1 -4
- package/esm/tree-view/index.js +1 -2
- package/esm/tree-view/styled-components.js +1 -7
- package/esm/tree-view/tree-view.js +1 -3
- package/esm/types/globals.d.js +0 -12
- package/esm/utils/deep-merge.js +5 -0
- package/esm/utils/deprecated-component.js +0 -1
- package/esm/utils/focusVisible.js +2 -4
- package/file-uploader/styled-components.js +1 -6
- package/flex-grid/flex-grid-item.d.ts +1 -1
- package/flex-grid/flex-grid-item.js +8 -6
- package/flex-grid/flex-grid.js +3 -7
- package/form-control/styled-components.js +1 -6
- package/header-navigation/styled-components.js +1 -4
- package/helper/styled-components.js +1 -3
- package/helpers/overrides.js +3 -8
- package/helpers/overrides.js.flow +1 -1
- package/icon/build-icons.js +2 -0
- package/icon/build-icons.js.flow +1 -0
- package/icon/omit-dollar-prefixed-keys.js +0 -1
- package/icon/styled-components.js +1 -2
- package/input/masked-input.js +2 -5
- package/input/stateful-container.js +0 -1
- package/input/styled-components.js +5 -10
- package/layer/layer.js +0 -24
- package/layer/layer.js.flow +0 -25
- package/layer/layers-manager.d.ts +0 -8
- package/layer/layers-manager.js +1 -97
- package/layer/layers-manager.js.flow +1 -84
- package/layer/types.d.ts +0 -21
- package/layer/types.js.flow +1 -22
- package/layout-grid/styled-components.js +0 -3
- package/link/index.js +1 -2
- package/link/styled-components.js +1 -2
- package/list/list-heading.js +17 -21
- package/list/list-item.js +1 -2
- package/list/styled-components.js +1 -15
- package/locale/es_AR.js +1 -3
- package/locale/index.js +1 -4
- package/locale/tr_TR.js +1 -3
- package/map-marker/constants.d.ts +0 -14
- package/map-marker/constants.js +3 -16
- package/map-marker/constants.js.flow +0 -17
- package/map-marker/index.d.ts +1 -2
- package/map-marker/index.js +1 -24
- package/map-marker/index.js.flow +3 -5
- package/map-marker/styled-components.d.ts +1 -17
- package/map-marker/styled-components.js +2 -88
- package/map-marker/styled-components.js.flow +0 -58
- package/map-marker/types.d.ts +1 -29
- package/map-marker/types.js.flow +0 -34
- package/menu/menu.js +3 -6
- package/menu/option-profile.js +0 -1
- package/menu/stateful-container.js +0 -1
- package/menu/styled-components.js +6 -20
- package/modal/modal.js +4 -4
- package/modal/modal.js.flow +3 -1
- package/modal/styled-components.js +1 -8
- package/package.json +11 -9
- package/pagination/stateful-container.js +0 -1
- package/pagination/stateful-pagination.js +0 -1
- package/pagination/styled-components.js +1 -4
- package/payment-card/styled-components.js +1 -2
- package/phone-input/base-country-picker.js +1 -3
- package/phone-input/country-select-dropdown.js +0 -1
- package/phone-input/styled-components.js +9 -21
- package/pin-code/styled-components.js +1 -4
- package/popover/popover.js +12 -9
- package/popover/popover.js.flow +12 -2
- package/popover/styled-components.js +9 -12
- package/progress-bar/progressbar-rounded.js +0 -1
- package/progress-bar/styled-components.js +2 -14
- package/progress-steps/progress-steps.js +1 -2
- package/progress-steps/styled-components.js +19 -28
- package/radio/styled-components.js +3 -10
- package/rating/emoticon-rating.js +1 -2
- package/rating/star-rating.js +1 -2
- package/rating/styled-components.js +1 -5
- package/select/autosize-input.js +1 -2
- package/select/autosize-input.js.flow +1 -1
- package/select/dropdown.js +1 -2
- package/select/multi-value.js +0 -1
- package/select/select-component.d.ts +1 -1
- package/select/select-component.js +7 -9
- 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 +1 -16
- package/select/value.js +3 -2
- package/side-navigation/nav-item.js +0 -1
- package/side-navigation/nav.js +1 -1
- package/side-navigation/stateful-container.js +0 -1
- package/side-navigation/styled-components.js +6 -13
- package/skeleton/styled-components.js +1 -3
- package/slider/slider.js +2 -4
- package/slider/styled-components.js +0 -9
- package/snackbar/snackbar-element.js +0 -1
- package/snackbar/styled-components.js +1 -9
- package/spinner/styled-components.js +1 -2
- package/styles/__mocks__/styled.js +3 -8
- package/styles/styled.js +6 -7
- package/table/styled-components.js +1 -13
- package/table-grid/styled-components.js +1 -4
- package/table-semantic/styled-components.js +2 -20
- package/tabs/stateful-tabs.js +0 -1
- package/tabs/styled-components.js +1 -5
- package/tabs/tabs.js +2 -4
- package/tabs-motion/styled-components.js +1 -8
- package/tabs-motion/tab.js +0 -1
- package/tabs-motion/tabs.js +1 -2
- package/tag/styled-components.js +1 -5
- package/tag/tag.js +2 -4
- package/textarea/styled-components.js +1 -4
- package/themes/shared/typography.js +10 -10
- package/themes/shared/typography.js.flow +10 -10
- package/toast/styled-components.js +1 -5
- package/toast/toaster.js.flow +1 -1
- package/tokens/colors.js +0 -24
- package/tokens/colors.js.flow +0 -27
- package/tokens/types.d.ts +0 -24
- package/tokens/types.js.flow +0 -27
- package/tooltip/styled-components.js +1 -4
- package/tree-view/styled-components.js +1 -7
- package/tree-view/tree-view.js +1 -3
- package/types/globals.d.js +1 -14
- package/utils/deep-merge.js +6 -0
- package/utils/deprecated-component.js +0 -1
- package/utils/focusVisible.js +2 -4
- package/es/map-marker/location-puck.js +0 -142
- package/es/message-card/constants.js +0 -19
- package/es/message-card/index.js +0 -10
- package/es/message-card/message-card.js +0 -112
- package/es/message-card/styled-components.js +0 -108
- package/es/message-card/types.js +0 -1
- package/es/message-card/utils.js +0 -27
- package/esm/map-marker/location-puck.js +0 -199
- package/esm/message-card/constants.js +0 -20
- package/esm/message-card/index.js +0 -10
- package/esm/message-card/message-card.js +0 -166
- package/esm/message-card/styled-components.js +0 -116
- package/esm/message-card/types.js +0 -1
- package/esm/message-card/utils.js +0 -26
- package/map-marker/location-puck.d.ts +0 -4
- package/map-marker/location-puck.js +0 -211
- package/map-marker/location-puck.js.flow +0 -18
- package/message-card/constants.d.ts +0 -12
- package/message-card/constants.js +0 -25
- package/message-card/index.d.ts +0 -4
- package/message-card/index.js +0 -60
- package/message-card/index.js.flow +0 -72
- package/message-card/message-card.d.ts +0 -4
- package/message-card/message-card.js +0 -182
- package/message-card/package.json +0 -4
- package/message-card/styled-components.d.ts +0 -14
- package/message-card/styled-components.js +0 -124
- package/message-card/types.d.ts +0 -27
- package/message-card/types.js +0 -5
- package/message-card/utils.d.ts +0 -1
- package/message-card/utils.js +0 -36
|
@@ -56,7 +56,6 @@ var StyledList = (0, _styles.styled)('ul', function (_ref) {
|
|
|
56
56
|
});
|
|
57
57
|
exports.StyledList = StyledList;
|
|
58
58
|
StyledList.displayName = "StyledList";
|
|
59
|
-
StyledList.displayName = 'StyledList';
|
|
60
59
|
|
|
61
60
|
function getFontColor(props) {
|
|
62
61
|
if (props.$disabled) {
|
|
@@ -105,7 +104,6 @@ var StyledEmptyState = (0, _styles.styled)('li', function (props) {
|
|
|
105
104
|
});
|
|
106
105
|
exports.StyledEmptyState = StyledEmptyState;
|
|
107
106
|
StyledEmptyState.displayName = "StyledEmptyState";
|
|
108
|
-
StyledEmptyState.displayName = 'StyledEmptyState';
|
|
109
107
|
var StyledOptgroupHeader = (0, _styles.styled)('li', function (props) {
|
|
110
108
|
var paddingX = props.$theme.sizing.scale300;
|
|
111
109
|
var paddingY = props.$theme.sizing.scale200;
|
|
@@ -119,7 +117,6 @@ var StyledOptgroupHeader = (0, _styles.styled)('li', function (props) {
|
|
|
119
117
|
});
|
|
120
118
|
exports.StyledOptgroupHeader = StyledOptgroupHeader;
|
|
121
119
|
StyledOptgroupHeader.displayName = "StyledOptgroupHeader";
|
|
122
|
-
StyledOptgroupHeader.displayName = 'StyledOptgroupHeader';
|
|
123
120
|
var StyledListItemAnchor = (0, _styles.styled)('a', function (props) {
|
|
124
121
|
return {
|
|
125
122
|
display: 'block',
|
|
@@ -128,7 +125,6 @@ var StyledListItemAnchor = (0, _styles.styled)('a', function (props) {
|
|
|
128
125
|
});
|
|
129
126
|
exports.StyledListItemAnchor = StyledListItemAnchor;
|
|
130
127
|
StyledListItemAnchor.displayName = "StyledListItemAnchor";
|
|
131
|
-
StyledListItemAnchor.displayName = 'StyledListItemAnchor';
|
|
132
128
|
var StyledListItemElement = (0, _styles.styled)('li', function (props) {
|
|
133
129
|
var $disabled = props.$disabled,
|
|
134
130
|
$theme = props.$theme,
|
|
@@ -154,16 +150,13 @@ var StyledListItemElement = (0, _styles.styled)('li', function (props) {
|
|
|
154
150
|
});
|
|
155
151
|
exports.StyledListItemElement = StyledListItemElement;
|
|
156
152
|
StyledListItemElement.displayName = "StyledListItemElement";
|
|
157
|
-
StyledListItemElement.displayName = 'StyledListItemElement';
|
|
158
153
|
var StyledListItem = (0, _styles.withWrapper)(StyledListItemElement, function (Styled) {
|
|
159
|
-
return (
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
restProps = _objectWithoutProperties(_ref2, _excluded);
|
|
154
|
+
return function StyledListItem(_ref2) {
|
|
155
|
+
var item = _ref2.item,
|
|
156
|
+
restProps = _objectWithoutProperties(_ref2, _excluded);
|
|
163
157
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
);
|
|
158
|
+
return /*#__PURE__*/React.createElement(Styled, restProps);
|
|
159
|
+
};
|
|
167
160
|
});
|
|
168
161
|
exports.StyledListItem = StyledListItem;
|
|
169
162
|
var StyledListItemProfile = (0, _styles.styled)('li', function (_ref3) {
|
|
@@ -187,7 +180,6 @@ var StyledListItemProfile = (0, _styles.styled)('li', function (_ref3) {
|
|
|
187
180
|
});
|
|
188
181
|
exports.StyledListItemProfile = StyledListItemProfile;
|
|
189
182
|
StyledListItemProfile.displayName = "StyledListItemProfile";
|
|
190
|
-
StyledListItemProfile.displayName = 'StyledListItemProfile';
|
|
191
183
|
var StyledProfileImgContainer = (0, _styles.styled)('div', {
|
|
192
184
|
width: '60px',
|
|
193
185
|
height: '60px',
|
|
@@ -197,7 +189,6 @@ var StyledProfileImgContainer = (0, _styles.styled)('div', {
|
|
|
197
189
|
});
|
|
198
190
|
exports.StyledProfileImgContainer = StyledProfileImgContainer;
|
|
199
191
|
StyledProfileImgContainer.displayName = "StyledProfileImgContainer";
|
|
200
|
-
StyledProfileImgContainer.displayName = 'StyledProfileImgContainer';
|
|
201
192
|
var StyledProfileImg = (0, _styles.styled)('img', {
|
|
202
193
|
width: '100%',
|
|
203
194
|
height: '100%',
|
|
@@ -208,7 +199,6 @@ var StyledProfileImg = (0, _styles.styled)('img', {
|
|
|
208
199
|
});
|
|
209
200
|
exports.StyledProfileImg = StyledProfileImg;
|
|
210
201
|
StyledProfileImg.displayName = "StyledProfileImg";
|
|
211
|
-
StyledProfileImg.displayName = 'StyledProfileImg';
|
|
212
202
|
var StyledProfileLabelsContainer = (0, _styles.styled)('div', function (_ref4) {
|
|
213
203
|
var _ref4$$theme = _ref4.$theme,
|
|
214
204
|
direction = _ref4$$theme.direction,
|
|
@@ -225,7 +215,6 @@ var StyledProfileLabelsContainer = (0, _styles.styled)('div', function (_ref4) {
|
|
|
225
215
|
});
|
|
226
216
|
exports.StyledProfileLabelsContainer = StyledProfileLabelsContainer;
|
|
227
217
|
StyledProfileLabelsContainer.displayName = "StyledProfileLabelsContainer";
|
|
228
|
-
StyledProfileLabelsContainer.displayName = 'StyledProfileLabelsContainer';
|
|
229
218
|
var StyledProfileTitle = (0, _styles.styled)('h6', function (_ref5) {
|
|
230
219
|
var $theme = _ref5.$theme;
|
|
231
220
|
return _objectSpread(_objectSpread({}, $theme.typography.font350), {}, {
|
|
@@ -238,7 +227,6 @@ var StyledProfileTitle = (0, _styles.styled)('h6', function (_ref5) {
|
|
|
238
227
|
});
|
|
239
228
|
exports.StyledProfileTitle = StyledProfileTitle;
|
|
240
229
|
StyledProfileTitle.displayName = "StyledProfileTitle";
|
|
241
|
-
StyledProfileTitle.displayName = 'StyledProfileTitle';
|
|
242
230
|
var StyledProfileSubtitle = (0, _styles.styled)('p', function (_ref6) {
|
|
243
231
|
var $theme = _ref6.$theme;
|
|
244
232
|
return _objectSpread(_objectSpread({}, $theme.typography.font200), {}, {
|
|
@@ -251,7 +239,6 @@ var StyledProfileSubtitle = (0, _styles.styled)('p', function (_ref6) {
|
|
|
251
239
|
});
|
|
252
240
|
exports.StyledProfileSubtitle = StyledProfileSubtitle;
|
|
253
241
|
StyledProfileSubtitle.displayName = "StyledProfileSubtitle";
|
|
254
|
-
StyledProfileSubtitle.displayName = 'StyledProfileSubtitle';
|
|
255
242
|
var StyledProfileBody = (0, _styles.styled)('p', function (_ref7) {
|
|
256
243
|
var $theme = _ref7.$theme;
|
|
257
244
|
return _objectSpread(_objectSpread({}, $theme.typography.font100), {}, {
|
|
@@ -263,5 +250,4 @@ var StyledProfileBody = (0, _styles.styled)('p', function (_ref7) {
|
|
|
263
250
|
});
|
|
264
251
|
});
|
|
265
252
|
exports.StyledProfileBody = StyledProfileBody;
|
|
266
|
-
StyledProfileBody.displayName = "StyledProfileBody";
|
|
267
|
-
StyledProfileBody.displayName = 'StyledProfileBody';
|
|
253
|
+
StyledProfileBody.displayName = "StyledProfileBody";
|
package/modal/modal.js
CHANGED
|
@@ -217,6 +217,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
if (this.animateStartTimer) {
|
|
220
|
+
// eslint-disable-next-line cup/no-undef
|
|
220
221
|
cancelAnimationFrame(this.animateStartTimer);
|
|
221
222
|
}
|
|
222
223
|
}
|
|
@@ -235,7 +236,8 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
|
235
236
|
|
|
236
237
|
|
|
237
238
|
this.clearTimers();
|
|
238
|
-
this.disableMountNodeScroll();
|
|
239
|
+
this.disableMountNodeScroll(); // eslint-disable-next-line cup/no-undef
|
|
240
|
+
|
|
239
241
|
this.animateStartTimer = requestAnimationFrame(function () {
|
|
240
242
|
_this2.setState({
|
|
241
243
|
isVisible: true
|
|
@@ -285,7 +287,6 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
|
285
287
|
if (mountNode) {
|
|
286
288
|
return mountNode;
|
|
287
289
|
} // Flow thinks body could be null (cast through any)
|
|
288
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
289
290
|
|
|
290
291
|
|
|
291
292
|
return document.body;
|
|
@@ -346,8 +347,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
|
346
347
|
}, /*#__PURE__*/React.createElement(Root, _extends({
|
|
347
348
|
"data-baseweb": "modal",
|
|
348
349
|
ref: _this3.rootRef
|
|
349
|
-
}, sharedProps, rootProps), /*#__PURE__*/React.createElement(DialogContainer
|
|
350
|
-
, _extends({
|
|
350
|
+
}, sharedProps, rootProps), /*#__PURE__*/React.createElement(DialogContainer, _extends({
|
|
351
351
|
ref: _this3.dialogContainerRef
|
|
352
352
|
}, sharedProps, dialogContainerProps), /*#__PURE__*/React.createElement(Dialog, _extends({
|
|
353
353
|
tabIndex: -1,
|
package/modal/modal.js.flow
CHANGED
|
@@ -6,7 +6,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
6
6
|
*/
|
|
7
7
|
// @flow
|
|
8
8
|
/* global document */
|
|
9
|
-
|
|
9
|
+
/* eslint-disable cup/no-undef */
|
|
10
10
|
import * as React from 'react';
|
|
11
11
|
import FocusLock from 'react-focus-lock';
|
|
12
12
|
|
|
@@ -148,6 +148,7 @@ class Modal extends React.Component<ModalPropsT, ModalStateT> {
|
|
|
148
148
|
clearTimeout(this.animateOutTimer);
|
|
149
149
|
}
|
|
150
150
|
if (this.animateStartTimer) {
|
|
151
|
+
// eslint-disable-next-line cup/no-undef
|
|
151
152
|
cancelAnimationFrame(this.animateStartTimer);
|
|
152
153
|
}
|
|
153
154
|
}
|
|
@@ -165,6 +166,7 @@ class Modal extends React.Component<ModalPropsT, ModalStateT> {
|
|
|
165
166
|
|
|
166
167
|
this.disableMountNodeScroll();
|
|
167
168
|
|
|
169
|
+
// eslint-disable-next-line cup/no-undef
|
|
168
170
|
this.animateStartTimer = requestAnimationFrame(() => {
|
|
169
171
|
this.setState({ isVisible: true });
|
|
170
172
|
});
|
|
@@ -50,7 +50,6 @@ var Root = (0, _styles.styled)('div', function (props) {
|
|
|
50
50
|
});
|
|
51
51
|
exports.Root = Root;
|
|
52
52
|
Root.displayName = "Root";
|
|
53
|
-
Root.displayName = 'Root';
|
|
54
53
|
var DialogContainer = (0, _styles.styled)('div', function (props) {
|
|
55
54
|
var $animate = props.$animate,
|
|
56
55
|
$isOpen = props.$isOpen,
|
|
@@ -77,7 +76,6 @@ var DialogContainer = (0, _styles.styled)('div', function (props) {
|
|
|
77
76
|
});
|
|
78
77
|
exports.DialogContainer = DialogContainer;
|
|
79
78
|
DialogContainer.displayName = "DialogContainer";
|
|
80
|
-
DialogContainer.displayName = 'DialogContainer';
|
|
81
79
|
var Dialog = (0, _styles.styled)('div', function (props) {
|
|
82
80
|
var $animate = props.$animate,
|
|
83
81
|
$isOpen = props.$isOpen,
|
|
@@ -115,7 +113,6 @@ var Dialog = (0, _styles.styled)('div', function (props) {
|
|
|
115
113
|
});
|
|
116
114
|
exports.Dialog = Dialog;
|
|
117
115
|
Dialog.displayName = "Dialog";
|
|
118
|
-
Dialog.displayName = 'Dialog';
|
|
119
116
|
var Close = (0, _styles.styled)('button', function (props) {
|
|
120
117
|
var _ref;
|
|
121
118
|
|
|
@@ -159,7 +156,6 @@ var Close = (0, _styles.styled)('button', function (props) {
|
|
|
159
156
|
});
|
|
160
157
|
exports.Close = Close;
|
|
161
158
|
Close.displayName = "Close";
|
|
162
|
-
Close.displayName = 'Close';
|
|
163
159
|
var ModalHeader = (0, _styles.styled)('div', function (_ref2) {
|
|
164
160
|
var _objectSpread2;
|
|
165
161
|
|
|
@@ -174,7 +170,6 @@ var ModalHeader = (0, _styles.styled)('div', function (_ref2) {
|
|
|
174
170
|
});
|
|
175
171
|
exports.ModalHeader = ModalHeader;
|
|
176
172
|
ModalHeader.displayName = "ModalHeader";
|
|
177
|
-
ModalHeader.displayName = 'ModalHeader';
|
|
178
173
|
var ModalBody = (0, _styles.styled)('div', function (_ref3) {
|
|
179
174
|
var $theme = _ref3.$theme;
|
|
180
175
|
return _objectSpread(_objectSpread({}, $theme.typography.font200), {}, {
|
|
@@ -187,7 +182,6 @@ var ModalBody = (0, _styles.styled)('div', function (_ref3) {
|
|
|
187
182
|
});
|
|
188
183
|
exports.ModalBody = ModalBody;
|
|
189
184
|
ModalBody.displayName = "ModalBody";
|
|
190
|
-
ModalBody.displayName = 'ModalBody';
|
|
191
185
|
var ModalFooter = (0, _styles.styled)('div', function (_ref4) {
|
|
192
186
|
var $theme = _ref4.$theme;
|
|
193
187
|
return _objectSpread(_objectSpread({}, $theme.typography.font200), {}, {
|
|
@@ -200,5 +194,4 @@ var ModalFooter = (0, _styles.styled)('div', function (_ref4) {
|
|
|
200
194
|
});
|
|
201
195
|
});
|
|
202
196
|
exports.ModalFooter = ModalFooter;
|
|
203
|
-
ModalFooter.displayName = "ModalFooter";
|
|
204
|
-
ModalFooter.displayName = 'ModalFooter';
|
|
197
|
+
ModalFooter.displayName = "ModalFooter";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "baseui",
|
|
3
|
-
"version": "0.0.0-alpha-
|
|
3
|
+
"version": "0.0.0-alpha-e79754d",
|
|
4
4
|
"description": "A React Component library implementing the Base design language",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"e2e:serve": "static-server build-ladle --port 8080",
|
|
37
37
|
"e2e:test": "playwright test",
|
|
38
38
|
"e2e:test:ci": "PUPPETEER_TARGET_URL=http://e2e-server:8080 yarn e2e:test",
|
|
39
|
-
"vrt": "playwright test --config playwright-vrt.config.
|
|
39
|
+
"vrt": "playwright test --config playwright-vrt.config.js",
|
|
40
40
|
"vrt:docker:run": "docker-compose run e2e-test bash -c 'PUPPETEER_TARGET_URL=http://e2e-server:8080 yarn vrt'",
|
|
41
41
|
"vrt:docker:update": "docker-compose run e2e-test bash -c 'PUPPETEER_TARGET_URL=http://e2e-server:8080 yarn vrt --update'",
|
|
42
42
|
"vrt:ci": "PUPPETEER_TARGET_URL=http://e2e-server:8080 node ./vrt/ci.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"documentation:build": "run-s prebuild build:cjs next:build next:export",
|
|
54
54
|
"documentation:serve": "static-server public --port 8081",
|
|
55
55
|
"next:dev": "next dev documentation-site",
|
|
56
|
-
"next:build": "NODE_OPTIONS=--max_old_space_size=
|
|
56
|
+
"next:build": "NODE_OPTIONS=--max_old_space_size=4096 next build documentation-site",
|
|
57
57
|
"next:export": "next export documentation-site -o public",
|
|
58
58
|
"tsc": "tsc",
|
|
59
59
|
"validate:examples": "node ./scripts/validate-examples.js"
|
|
@@ -85,12 +85,12 @@
|
|
|
85
85
|
"@date-io/luxon": "^2.7.0",
|
|
86
86
|
"@date-io/moment": "^2.7.0",
|
|
87
87
|
"@dubstep/core": "^3.5.3",
|
|
88
|
-
"@ladle/react": "^
|
|
88
|
+
"@ladle/react": "^1.0.1",
|
|
89
89
|
"@mdx-js/tag": "^0.20.0",
|
|
90
90
|
"@octokit/rest": "^16.33.1",
|
|
91
|
-
"@playwright/test": "^1.
|
|
91
|
+
"@playwright/test": "^1.22.2",
|
|
92
92
|
"@svgr/cli": "^4.3.2",
|
|
93
|
-
"@testing-library/dom": "^8.
|
|
93
|
+
"@testing-library/dom": "^8.13.0",
|
|
94
94
|
"@testing-library/jest-dom": "^5.16.3",
|
|
95
95
|
"@testing-library/react": "^12.1.4",
|
|
96
96
|
"@testing-library/user-event": "^13.5.0",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"@typescript-eslint/parser": "^5.26.0",
|
|
118
118
|
"@zeit/next-css": "^1.0.1",
|
|
119
119
|
"@zeit/next-mdx": "^1.2.0",
|
|
120
|
-
"axe-core": "^4.
|
|
120
|
+
"axe-core": "^4.2.2",
|
|
121
121
|
"babel-core": "^7.0.0-bridge.0",
|
|
122
122
|
"babel-eslint": "10.1.0",
|
|
123
123
|
"babel-jest": "^24.0.0",
|
|
@@ -145,6 +145,7 @@
|
|
|
145
145
|
"eslint-plugin-react": "^7.27.0",
|
|
146
146
|
"eslint-plugin-react-hooks": "3.0.0",
|
|
147
147
|
"flow-bin": "0.131.0",
|
|
148
|
+
"flow-remove-types": "^2.179.0",
|
|
148
149
|
"globby": "^10.0.1",
|
|
149
150
|
"husky": "^3.0.0",
|
|
150
151
|
"isomorphic-fetch": "^2.2.1",
|
|
@@ -166,7 +167,7 @@
|
|
|
166
167
|
"node-fetch": "^2.6.1",
|
|
167
168
|
"now": "16.5.2",
|
|
168
169
|
"npm-run-all": "^4.1.5",
|
|
169
|
-
"playwright": "^1.
|
|
170
|
+
"playwright": "^1.22.2",
|
|
170
171
|
"prettier": "^2.5.1",
|
|
171
172
|
"pretty-proptypes": "^1.0.5",
|
|
172
173
|
"pretty-quick": "^1.4.1",
|
|
@@ -186,6 +187,7 @@
|
|
|
186
187
|
"react-view": "^2.3.3",
|
|
187
188
|
"react-vis": "^1.11.6",
|
|
188
189
|
"remove-flow-types-loader": "^1.1.0",
|
|
190
|
+
"rollup-pluginutils": "^2.8.2",
|
|
189
191
|
"semver": "^6.2.0",
|
|
190
192
|
"shx": "^0.3.2",
|
|
191
193
|
"static-server": "^2.2.1",
|
|
@@ -244,7 +246,7 @@
|
|
|
244
246
|
}
|
|
245
247
|
},
|
|
246
248
|
"volta": {
|
|
247
|
-
"node": "
|
|
249
|
+
"node": "14.15.4",
|
|
248
250
|
"yarn": "1.19.1"
|
|
249
251
|
},
|
|
250
252
|
"engines": {
|
|
@@ -115,7 +115,6 @@ exports.default = PaginationStatefulContainer;
|
|
|
115
115
|
|
|
116
116
|
_defineProperty(PaginationStatefulContainer, "defaultProps", {
|
|
117
117
|
initialState: initialState,
|
|
118
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
119
118
|
stateReducer: function stateReducer(changeType, changes) {
|
|
120
119
|
return changes;
|
|
121
120
|
}
|
|
@@ -23,7 +23,6 @@ var StyledRoot = (0, _styles.styled)('div', function (_ref) {
|
|
|
23
23
|
});
|
|
24
24
|
exports.StyledRoot = StyledRoot;
|
|
25
25
|
StyledRoot.displayName = "StyledRoot";
|
|
26
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
27
26
|
var StyledMaxLabel = (0, _styles.styled)('span', function (_ref2) {
|
|
28
27
|
var _ref3;
|
|
29
28
|
|
|
@@ -34,7 +33,6 @@ var StyledMaxLabel = (0, _styles.styled)('span', function (_ref2) {
|
|
|
34
33
|
});
|
|
35
34
|
exports.StyledMaxLabel = StyledMaxLabel;
|
|
36
35
|
StyledMaxLabel.displayName = "StyledMaxLabel";
|
|
37
|
-
StyledMaxLabel.displayName = 'StyledMaxLabel';
|
|
38
36
|
var StyledDropdownContainer = (0, _styles.styled)('div', function (_ref4) {
|
|
39
37
|
var _ref5;
|
|
40
38
|
|
|
@@ -48,5 +46,4 @@ var StyledDropdownContainer = (0, _styles.styled)('div', function (_ref4) {
|
|
|
48
46
|
}, _defineProperty(_ref5, marginStartDir, $theme.sizing.scale600), _defineProperty(_ref5, marginEndDir, $theme.sizing.scale300), _ref5;
|
|
49
47
|
});
|
|
50
48
|
exports.StyledDropdownContainer = StyledDropdownContainer;
|
|
51
|
-
StyledDropdownContainer.displayName = "StyledDropdownContainer";
|
|
52
|
-
StyledDropdownContainer.displayName = 'StyledDropdownContainer';
|
|
49
|
+
StyledDropdownContainer.displayName = "StyledDropdownContainer";
|
|
@@ -20,5 +20,4 @@ var IconWrapper = (0, _styles.styled)('div', function (props) {
|
|
|
20
20
|
return _ref = {}, _defineProperty(_ref, $theme.direction === 'rtl' ? 'marginRight' : 'marginLeft', margin[$size]), _defineProperty(_ref, "height", '100%'), _defineProperty(_ref, "display", 'flex'), _defineProperty(_ref, "alignItems", 'center'), _ref;
|
|
21
21
|
});
|
|
22
22
|
exports.IconWrapper = IconWrapper;
|
|
23
|
-
IconWrapper.displayName = "IconWrapper";
|
|
24
|
-
IconWrapper.displayName = 'IconWrapper';
|
|
23
|
+
IconWrapper.displayName = "IconWrapper";
|
|
@@ -68,7 +68,6 @@ CountryPicker.defaultProps = {
|
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
var DropdownListItem = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
71
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
72
71
|
var children = props.children,
|
|
73
72
|
rest = _objectWithoutProperties(props, _excluded);
|
|
74
73
|
|
|
@@ -222,8 +221,7 @@ function CountryPicker(props) {
|
|
|
222
221
|
|
|
223
222
|
return /*#__PURE__*/_react.default.createElement(Select, _extends({
|
|
224
223
|
clearable: false,
|
|
225
|
-
disabled: disabled
|
|
226
|
-
,
|
|
224
|
+
disabled: disabled,
|
|
227
225
|
getOptionLabel: function getOptionLabel(_ref) {
|
|
228
226
|
var option = _ref.option,
|
|
229
227
|
optionState = _ref.optionState;
|
|
@@ -129,7 +129,6 @@ function CountrySelectDropdown(props) {
|
|
|
129
129
|
style = _ref2.style;
|
|
130
130
|
|
|
131
131
|
// resetMenu and getItemLabel should not end up on native html elements
|
|
132
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
133
132
|
var _children$index$props = // @ts-expect-error todo(flow->ts) type issue introduced in react 17
|
|
134
133
|
children[index].props,
|
|
135
134
|
item = _children$index$props.item,
|
|
@@ -39,7 +39,6 @@ var StyledPhoneInputRoot = (0, _styles.styled)('div', {
|
|
|
39
39
|
});
|
|
40
40
|
exports.StyledPhoneInputRoot = StyledPhoneInputRoot;
|
|
41
41
|
StyledPhoneInputRoot.displayName = "StyledPhoneInputRoot";
|
|
42
|
-
StyledPhoneInputRoot.displayName = 'StyledPhoneInputRoot';
|
|
43
42
|
var StyledFlagContainer = (0, _styles.styled)('span', function (_ref) {
|
|
44
43
|
var _sizeToFont;
|
|
45
44
|
|
|
@@ -50,11 +49,10 @@ var StyledFlagContainer = (0, _styles.styled)('span', function (_ref) {
|
|
|
50
49
|
return {
|
|
51
50
|
fontSize: sizeToFont[$size]
|
|
52
51
|
};
|
|
53
|
-
});
|
|
52
|
+
}); // An override component for the Select's Root styled element
|
|
53
|
+
|
|
54
54
|
exports.StyledFlagContainer = StyledFlagContainer;
|
|
55
55
|
StyledFlagContainer.displayName = "StyledFlagContainer";
|
|
56
|
-
StyledFlagContainer.displayName = 'StyledFlagContainer'; // An override component for the Select's Root styled element
|
|
57
|
-
|
|
58
56
|
var StyledRoot = (0, _styles.withStyle)(_select.StyledRoot, function (props) {
|
|
59
57
|
var _sizeToWidth;
|
|
60
58
|
|
|
@@ -67,7 +65,6 @@ var StyledRoot = (0, _styles.withStyle)(_select.StyledRoot, function (props) {
|
|
|
67
65
|
});
|
|
68
66
|
exports.StyledRoot = StyledRoot;
|
|
69
67
|
StyledRoot.displayName = "StyledRoot";
|
|
70
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
71
68
|
var StyledDialCode = (0, _styles.styled)('div', function (_ref2) {
|
|
72
69
|
var _ref3;
|
|
73
70
|
|
|
@@ -79,14 +76,12 @@ var StyledDialCode = (0, _styles.styled)('div', function (_ref2) {
|
|
|
79
76
|
});
|
|
80
77
|
exports.StyledDialCode = StyledDialCode;
|
|
81
78
|
StyledDialCode.displayName = "StyledDialCode";
|
|
82
|
-
StyledDialCode.displayName = 'StyledDialCode';
|
|
83
79
|
var StyledCountrySelectContainer = (0, _styles.styled)('div', {
|
|
84
80
|
display: 'flex',
|
|
85
81
|
alignItems: 'center'
|
|
86
82
|
});
|
|
87
83
|
exports.StyledCountrySelectContainer = StyledCountrySelectContainer;
|
|
88
84
|
StyledCountrySelectContainer.displayName = "StyledCountrySelectContainer";
|
|
89
|
-
StyledCountrySelectContainer.displayName = 'StyledCountrySelectContainer';
|
|
90
85
|
var StyledCountrySelectDropdownContainer = (0, _styles.withStyle)(_menu.StyledList, function (props) {
|
|
91
86
|
var _props$$height = props.$height,
|
|
92
87
|
$height = _props$$height === void 0 ? _defaultProps.default.maxDropdownHeight : _props$$height;
|
|
@@ -98,7 +93,6 @@ var StyledCountrySelectDropdownContainer = (0, _styles.withStyle)(_menu.StyledLi
|
|
|
98
93
|
});
|
|
99
94
|
exports.StyledCountrySelectDropdownContainer = StyledCountrySelectDropdownContainer;
|
|
100
95
|
StyledCountrySelectDropdownContainer.displayName = "StyledCountrySelectDropdownContainer";
|
|
101
|
-
StyledCountrySelectDropdownContainer.displayName = 'StyledCountrySelectDropdownContainer';
|
|
102
96
|
var StyledCountrySelectDropdownListItemElement = (0, _styles.withStyle)(_select.StyledDropdownListItem, {
|
|
103
97
|
paddingTop: 0,
|
|
104
98
|
paddingBottom: 0,
|
|
@@ -110,16 +104,13 @@ var StyledCountrySelectDropdownListItemElement = (0, _styles.withStyle)(_select.
|
|
|
110
104
|
});
|
|
111
105
|
exports.StyledCountrySelectDropdownListItemElement = StyledCountrySelectDropdownListItemElement;
|
|
112
106
|
StyledCountrySelectDropdownListItemElement.displayName = "StyledCountrySelectDropdownListItemElement";
|
|
113
|
-
StyledCountrySelectDropdownListItemElement.displayName = 'StyledCountrySelectDropdownListItemElement';
|
|
114
107
|
var StyledCountrySelectDropdownListItem = (0, _styles.withWrapper)(StyledCountrySelectDropdownListItemElement, function (Styled) {
|
|
115
|
-
return (
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
);
|
|
108
|
+
return function StyledCountrySelectDropdownListItem(_ref4) {
|
|
109
|
+
var item = _ref4.item,
|
|
110
|
+
restProps = _objectWithoutProperties(_ref4, _excluded);
|
|
111
|
+
|
|
112
|
+
return /*#__PURE__*/React.createElement(Styled, restProps);
|
|
113
|
+
};
|
|
123
114
|
});
|
|
124
115
|
exports.StyledCountrySelectDropdownListItem = StyledCountrySelectDropdownListItem;
|
|
125
116
|
var StyledCountrySelectDropdownFlagColumn = (0, _styles.styled)('div', function (_ref5) {
|
|
@@ -133,7 +124,6 @@ var StyledCountrySelectDropdownFlagColumn = (0, _styles.styled)('div', function
|
|
|
133
124
|
});
|
|
134
125
|
exports.StyledCountrySelectDropdownFlagColumn = StyledCountrySelectDropdownFlagColumn;
|
|
135
126
|
StyledCountrySelectDropdownFlagColumn.displayName = "StyledCountrySelectDropdownFlagColumn";
|
|
136
|
-
StyledCountrySelectDropdownFlagColumn.displayName = 'StyledCountrySelectDropdownFlagColumn';
|
|
137
127
|
var StyledCountrySelectDropdownNameColumn = (0, _styles.styled)('div', function (_ref7) {
|
|
138
128
|
var _ref7$$theme = _ref7.$theme,
|
|
139
129
|
direction = _ref7$$theme.direction,
|
|
@@ -143,7 +133,6 @@ var StyledCountrySelectDropdownNameColumn = (0, _styles.styled)('div', function
|
|
|
143
133
|
});
|
|
144
134
|
exports.StyledCountrySelectDropdownNameColumn = StyledCountrySelectDropdownNameColumn;
|
|
145
135
|
StyledCountrySelectDropdownNameColumn.displayName = "StyledCountrySelectDropdownNameColumn";
|
|
146
|
-
StyledCountrySelectDropdownNameColumn.displayName = 'StyledCountrySelectDropdownNameColumn';
|
|
147
136
|
var StyledCountrySelectDropdownDialcodeColumn = (0, _styles.styled)('div', function (_ref9) {
|
|
148
137
|
var _ref10;
|
|
149
138
|
|
|
@@ -155,5 +144,4 @@ var StyledCountrySelectDropdownDialcodeColumn = (0, _styles.styled)('div', funct
|
|
|
155
144
|
return _ref10 = {}, _defineProperty(_ref10, paddingDir, sizing.scale600), _defineProperty(_ref10, marginDir, 'auto'), _ref10;
|
|
156
145
|
});
|
|
157
146
|
exports.StyledCountrySelectDropdownDialcodeColumn = StyledCountrySelectDropdownDialcodeColumn;
|
|
158
|
-
StyledCountrySelectDropdownDialcodeColumn.displayName = "StyledCountrySelectDropdownDialcodeColumn";
|
|
159
|
-
StyledCountrySelectDropdownDialcodeColumn.displayName = 'StyledCountrySelectDropdownDialcodeColumn';
|
|
147
|
+
StyledCountrySelectDropdownDialcodeColumn.displayName = "StyledCountrySelectDropdownDialcodeColumn";
|
|
@@ -17,7 +17,6 @@ var StyledRoot = (0, _styles.styled)('div', {
|
|
|
17
17
|
});
|
|
18
18
|
exports.StyledRoot = StyledRoot;
|
|
19
19
|
StyledRoot.displayName = "StyledRoot";
|
|
20
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
21
20
|
var StyledInputOverrideRoot = (0, _styles.withStyle)(_input.StyledRoot, function (_ref) {
|
|
22
21
|
var _SIZE$mini$SIZE$compa;
|
|
23
22
|
|
|
@@ -31,12 +30,10 @@ var StyledInputOverrideRoot = (0, _styles.withStyle)(_input.StyledRoot, function
|
|
|
31
30
|
});
|
|
32
31
|
exports.StyledInputOverrideRoot = StyledInputOverrideRoot;
|
|
33
32
|
StyledInputOverrideRoot.displayName = "StyledInputOverrideRoot";
|
|
34
|
-
StyledInputOverrideRoot.displayName = 'StyledInputOverrideRoot';
|
|
35
33
|
var StyledInputOverrideInput = (0, _styles.withStyle)(_input.StyledInput, {
|
|
36
34
|
textAlign: 'center',
|
|
37
35
|
paddingLeft: '0',
|
|
38
36
|
paddingRight: '0'
|
|
39
37
|
});
|
|
40
38
|
exports.StyledInputOverrideInput = StyledInputOverrideInput;
|
|
41
|
-
StyledInputOverrideInput.displayName = "StyledInputOverrideInput";
|
|
42
|
-
StyledInputOverrideInput.displayName = 'StyledInputOverrideInput';
|
|
39
|
+
StyledInputOverrideInput.displayName = "StyledInputOverrideInput";
|
package/popover/popover.js
CHANGED
|
@@ -184,11 +184,13 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
184
184
|
var popper = _this.popperRef.current;
|
|
185
185
|
var anchor = _this.anchorRef.current; // Ignore document click if it came from popover or anchor
|
|
186
186
|
|
|
187
|
-
if (!popper || popper === target ||
|
|
187
|
+
if (!popper || popper === target || // eslint-disable-next-line cup/no-undef
|
|
188
|
+
target instanceof Node && popper.contains(target)) {
|
|
188
189
|
return;
|
|
189
190
|
}
|
|
190
191
|
|
|
191
|
-
if (!anchor || anchor === target ||
|
|
192
|
+
if (!anchor || anchor === target || // eslint-disable-next-line cup/no-undef
|
|
193
|
+
target instanceof Node && popper.contains(target)) {
|
|
192
194
|
return;
|
|
193
195
|
}
|
|
194
196
|
|
|
@@ -212,7 +214,7 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
212
214
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
213
215
|
this.init(prevProps, prevState);
|
|
214
216
|
|
|
215
|
-
if (this.props.
|
|
217
|
+
if (this.props.autoFocus && !this.state.autoFocusAfterPositioning && this.popperRef.current !== null && this.popperRef.current.getBoundingClientRect().top > 0) {
|
|
216
218
|
this.setState({
|
|
217
219
|
autoFocusAfterPositioning: true
|
|
218
220
|
});
|
|
@@ -344,6 +346,10 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
344
346
|
value: function getAnchorProps() {
|
|
345
347
|
var isOpen = this.props.isOpen;
|
|
346
348
|
var anchorProps = {
|
|
349
|
+
'aria-haspopup': true,
|
|
350
|
+
'aria-expanded': isOpen ? true : false,
|
|
351
|
+
// @ts-expect-error todo(flow->ts): should it be here?
|
|
352
|
+
key: 'popover-anchor',
|
|
347
353
|
ref: this.anchorRef
|
|
348
354
|
};
|
|
349
355
|
var popoverId = this.getPopoverIdAttr();
|
|
@@ -351,8 +357,6 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
351
357
|
if (this.isAccessibilityTypeMenu()) {
|
|
352
358
|
var relationAttr = this.isClickTrigger() ? 'aria-controls' : 'aria-owns';
|
|
353
359
|
anchorProps[relationAttr] = isOpen ? popoverId : null;
|
|
354
|
-
anchorProps['aria-haspopup'] = true;
|
|
355
|
-
anchorProps['aria-expanded'] = Boolean(isOpen);
|
|
356
360
|
} else if (this.isAccessibilityTypeTooltip()) {
|
|
357
361
|
anchorProps.id = this.getAnchorIdAttr();
|
|
358
362
|
anchorProps['aria-describedby'] = isOpen ? popoverId : null;
|
|
@@ -380,6 +384,7 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
380
384
|
bodyProps.id = popoverId;
|
|
381
385
|
} else if (this.isAccessibilityTypeTooltip()) {
|
|
382
386
|
bodyProps.id = popoverId;
|
|
387
|
+
bodyProps.role = 'tooltip';
|
|
383
388
|
}
|
|
384
389
|
|
|
385
390
|
if (this.isHoverTrigger()) {
|
|
@@ -443,9 +448,7 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
443
448
|
return /*#__PURE__*/React.cloneElement(anchor, anchorProps);
|
|
444
449
|
}
|
|
445
450
|
|
|
446
|
-
return /*#__PURE__*/React.createElement("span",
|
|
447
|
-
key: "popover-anchor"
|
|
448
|
-
}, anchorProps), anchor);
|
|
451
|
+
return /*#__PURE__*/React.createElement("span", anchorProps, anchor);
|
|
449
452
|
}
|
|
450
453
|
}, {
|
|
451
454
|
key: "renderPopover",
|
|
@@ -525,7 +528,7 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
525
528
|
popperOptions: _objectSpread(_objectSpread({}, defaultPopperOptions), this.props.popperOptions),
|
|
526
529
|
onPopperUpdate: this.onPopperUpdate,
|
|
527
530
|
placement: this.state.placement
|
|
528
|
-
}, this.props.focusLock
|
|
531
|
+
}, this.props.focusLock ? /*#__PURE__*/React.createElement(_reactFocusLock.default, {
|
|
529
532
|
disabled: !this.props.focusLock,
|
|
530
533
|
noFocusGuards: false // see popover-focus-loop.scenario.js for why hover cannot return focus
|
|
531
534
|
,
|
package/popover/popover.js.flow
CHANGED
|
@@ -240,10 +240,20 @@ class PopoverInner extends React.Component<PopoverPropsT, PopoverPrivateStateT>
|
|
|
240
240
|
const popper = this.popperRef.current;
|
|
241
241
|
const anchor = this.anchorRef.current;
|
|
242
242
|
// Ignore document click if it came from popover or anchor
|
|
243
|
-
if (
|
|
243
|
+
if (
|
|
244
|
+
!popper ||
|
|
245
|
+
popper === target ||
|
|
246
|
+
// eslint-disable-next-line cup/no-undef
|
|
247
|
+
(target instanceof Node && popper.contains(target))
|
|
248
|
+
) {
|
|
244
249
|
return;
|
|
245
250
|
}
|
|
246
|
-
if (
|
|
251
|
+
if (
|
|
252
|
+
!anchor ||
|
|
253
|
+
anchor === target ||
|
|
254
|
+
// eslint-disable-next-line cup/no-undef
|
|
255
|
+
(target instanceof Node && popper.contains(target))
|
|
256
|
+
) {
|
|
247
257
|
return;
|
|
248
258
|
}
|
|
249
259
|
if (this.props.onClickOutside) {
|
|
@@ -65,13 +65,13 @@ function getBodyStyles(props) {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
var Body = (0, _styles.styled)('div', getBodyStyles);
|
|
68
|
-
exports.Body = Body;
|
|
69
|
-
Body.displayName = "Body";
|
|
70
|
-
Body.displayName = 'Body';
|
|
71
68
|
/**
|
|
72
69
|
* Arrow shown between the popover and the anchor element
|
|
73
70
|
*/
|
|
74
71
|
|
|
72
|
+
exports.Body = Body;
|
|
73
|
+
Body.displayName = "Body";
|
|
74
|
+
|
|
75
75
|
function getArrowStyles(props) {
|
|
76
76
|
var $arrowOffset = props.$arrowOffset,
|
|
77
77
|
$placement = props.$placement,
|
|
@@ -87,9 +87,6 @@ function getArrowStyles(props) {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
var Arrow = (0, _styles.styled)('div', getArrowStyles);
|
|
90
|
-
exports.Arrow = Arrow;
|
|
91
|
-
Arrow.displayName = "Arrow";
|
|
92
|
-
Arrow.displayName = 'Arrow';
|
|
93
90
|
/**
|
|
94
91
|
* Extra div that holds the popover content. This extra element
|
|
95
92
|
* is needed for the arrow–the arrow is just a 45deg rotated div,
|
|
@@ -97,6 +94,9 @@ Arrow.displayName = 'Arrow';
|
|
|
97
94
|
* clips the part of the arrow that extends into the popover.
|
|
98
95
|
*/
|
|
99
96
|
|
|
97
|
+
exports.Arrow = Arrow;
|
|
98
|
+
Arrow.displayName = "Arrow";
|
|
99
|
+
|
|
100
100
|
function getInnerStyles(_ref) {
|
|
101
101
|
var $theme = _ref.$theme;
|
|
102
102
|
return {
|
|
@@ -111,15 +111,14 @@ function getInnerStyles(_ref) {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
var Inner = (0, _styles.styled)('div', getInnerStyles);
|
|
114
|
-
exports.Inner = Inner;
|
|
115
|
-
Inner.displayName = "Inner";
|
|
116
|
-
Inner.displayName = 'Inner';
|
|
117
114
|
/**
|
|
118
115
|
* A drop-in component that provides the recommended padding
|
|
119
116
|
* for popovers. Mostly a convenience for users so they don't
|
|
120
117
|
* have to define this themselves.
|
|
121
118
|
*/
|
|
122
119
|
|
|
120
|
+
exports.Inner = Inner;
|
|
121
|
+
Inner.displayName = "Inner";
|
|
123
122
|
var Padding = (0, _styles.styled)('div', {
|
|
124
123
|
paddingLeft: '12px',
|
|
125
124
|
paddingTop: '12px',
|
|
@@ -128,10 +127,8 @@ var Padding = (0, _styles.styled)('div', {
|
|
|
128
127
|
});
|
|
129
128
|
exports.Padding = Padding;
|
|
130
129
|
Padding.displayName = "Padding";
|
|
131
|
-
Padding.displayName = 'Padding';
|
|
132
130
|
var Hidden = (0, _styles.styled)('div', {
|
|
133
131
|
display: 'none'
|
|
134
132
|
});
|
|
135
133
|
exports.Hidden = Hidden;
|
|
136
|
-
Hidden.displayName = "Hidden";
|
|
137
|
-
Hidden.displayName = 'Hidden';
|
|
134
|
+
Hidden.displayName = "Hidden";
|