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
|
@@ -20,7 +20,6 @@ export var StyledRoot = styled('div', function (_ref) {
|
|
|
20
20
|
}, $theme.typography.font350);
|
|
21
21
|
});
|
|
22
22
|
StyledRoot.displayName = "StyledRoot";
|
|
23
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
24
23
|
export var StyledMaxLabel = styled('span', function (_ref2) {
|
|
25
24
|
var _ref3;
|
|
26
25
|
|
|
@@ -30,7 +29,6 @@ export var StyledMaxLabel = styled('span', function (_ref2) {
|
|
|
30
29
|
return _ref3 = {}, _defineProperty(_ref3, marginStartDir, $theme.sizing.scale300), _defineProperty(_ref3, marginEndDir, $theme.sizing.scale600), _ref3;
|
|
31
30
|
});
|
|
32
31
|
StyledMaxLabel.displayName = "StyledMaxLabel";
|
|
33
|
-
StyledMaxLabel.displayName = 'StyledMaxLabel';
|
|
34
32
|
export var StyledDropdownContainer = styled('div', function (_ref4) {
|
|
35
33
|
var _ref5;
|
|
36
34
|
|
|
@@ -43,5 +41,4 @@ export var StyledDropdownContainer = styled('div', function (_ref4) {
|
|
|
43
41
|
outline: $isFocusVisible ? "3px solid ".concat($theme.colors.accent) : 'none'
|
|
44
42
|
}, _defineProperty(_ref5, marginStartDir, $theme.sizing.scale600), _defineProperty(_ref5, marginEndDir, $theme.sizing.scale300), _ref5;
|
|
45
43
|
});
|
|
46
|
-
StyledDropdownContainer.displayName = "StyledDropdownContainer";
|
|
47
|
-
StyledDropdownContainer.displayName = 'StyledDropdownContainer';
|
|
44
|
+
StyledDropdownContainer.displayName = "StyledDropdownContainer";
|
|
@@ -16,5 +16,4 @@ export var IconWrapper = styled('div', function (props) {
|
|
|
16
16
|
var margin = (_margin = {}, _defineProperty(_margin, SIZE.mini, $theme.sizing.scale300), _defineProperty(_margin, SIZE.compact, $theme.sizing.scale500), _defineProperty(_margin, SIZE.default, $theme.sizing.scale600), _defineProperty(_margin, SIZE.large, $theme.sizing.scale700), _margin);
|
|
17
17
|
return _ref = {}, _defineProperty(_ref, $theme.direction === 'rtl' ? 'marginRight' : 'marginLeft', margin[$size]), _defineProperty(_ref, "height", '100%'), _defineProperty(_ref, "display", 'flex'), _defineProperty(_ref, "alignItems", 'center'), _ref;
|
|
18
18
|
});
|
|
19
|
-
IconWrapper.displayName = "IconWrapper";
|
|
20
|
-
IconWrapper.displayName = 'IconWrapper';
|
|
19
|
+
IconWrapper.displayName = "IconWrapper";
|
|
@@ -51,7 +51,6 @@ CountryPicker.defaultProps = {
|
|
|
51
51
|
required: defaultProps.required
|
|
52
52
|
};
|
|
53
53
|
var DropdownListItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
54
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
55
54
|
var children = props.children,
|
|
56
55
|
rest = _objectWithoutProperties(props, _excluded);
|
|
57
56
|
|
|
@@ -204,8 +203,7 @@ export default function CountryPicker(props) {
|
|
|
204
203
|
|
|
205
204
|
return /*#__PURE__*/React.createElement(Select, _extends({
|
|
206
205
|
clearable: false,
|
|
207
|
-
disabled: disabled
|
|
208
|
-
,
|
|
206
|
+
disabled: disabled,
|
|
209
207
|
getOptionLabel: function getOptionLabel(_ref) {
|
|
210
208
|
var option = _ref.option,
|
|
211
209
|
optionState = _ref.optionState;
|
|
@@ -112,7 +112,6 @@ function CountrySelectDropdown(props) {
|
|
|
112
112
|
style = _ref2.style;
|
|
113
113
|
|
|
114
114
|
// resetMenu and getItemLabel should not end up on native html elements
|
|
115
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
116
115
|
var _children$index$props = // @ts-expect-error todo(flow->ts) type issue introduced in react 17
|
|
117
116
|
children[index].props,
|
|
118
117
|
item = _children$index$props.item,
|
|
@@ -23,7 +23,6 @@ export var StyledPhoneInputRoot = styled('div', {
|
|
|
23
23
|
display: 'flex'
|
|
24
24
|
});
|
|
25
25
|
StyledPhoneInputRoot.displayName = "StyledPhoneInputRoot";
|
|
26
|
-
StyledPhoneInputRoot.displayName = 'StyledPhoneInputRoot';
|
|
27
26
|
export var StyledFlagContainer = styled('span', function (_ref) {
|
|
28
27
|
var _sizeToFont;
|
|
29
28
|
|
|
@@ -34,10 +33,9 @@ export var StyledFlagContainer = styled('span', function (_ref) {
|
|
|
34
33
|
return {
|
|
35
34
|
fontSize: sizeToFont[$size]
|
|
36
35
|
};
|
|
37
|
-
});
|
|
38
|
-
StyledFlagContainer.displayName = "StyledFlagContainer";
|
|
39
|
-
StyledFlagContainer.displayName = 'StyledFlagContainer'; // An override component for the Select's Root styled element
|
|
36
|
+
}); // An override component for the Select's Root styled element
|
|
40
37
|
|
|
38
|
+
StyledFlagContainer.displayName = "StyledFlagContainer";
|
|
41
39
|
export var StyledRoot = withStyle(SelectStyledRoot, function (props) {
|
|
42
40
|
var _sizeToWidth;
|
|
43
41
|
|
|
@@ -49,7 +47,6 @@ export var StyledRoot = withStyle(SelectStyledRoot, function (props) {
|
|
|
49
47
|
};
|
|
50
48
|
});
|
|
51
49
|
StyledRoot.displayName = "StyledRoot";
|
|
52
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
53
50
|
export var StyledDialCode = styled('div', function (_ref2) {
|
|
54
51
|
var _ref3;
|
|
55
52
|
|
|
@@ -60,13 +57,11 @@ export var StyledDialCode = styled('div', function (_ref2) {
|
|
|
60
57
|
return _ref3 = {}, _defineProperty(_ref3, marginDir, sizing.scale100), _defineProperty(_ref3, "display", 'flex'), _defineProperty(_ref3, "alignItems", 'center'), _ref3;
|
|
61
58
|
});
|
|
62
59
|
StyledDialCode.displayName = "StyledDialCode";
|
|
63
|
-
StyledDialCode.displayName = 'StyledDialCode';
|
|
64
60
|
export var StyledCountrySelectContainer = styled('div', {
|
|
65
61
|
display: 'flex',
|
|
66
62
|
alignItems: 'center'
|
|
67
63
|
});
|
|
68
64
|
StyledCountrySelectContainer.displayName = "StyledCountrySelectContainer";
|
|
69
|
-
StyledCountrySelectContainer.displayName = 'StyledCountrySelectContainer';
|
|
70
65
|
export var StyledCountrySelectDropdownContainer = withStyle(StyledList, function (props) {
|
|
71
66
|
var _props$$height = props.$height,
|
|
72
67
|
$height = _props$$height === void 0 ? defaultProps.maxDropdownHeight : _props$$height;
|
|
@@ -77,7 +72,6 @@ export var StyledCountrySelectDropdownContainer = withStyle(StyledList, function
|
|
|
77
72
|
};
|
|
78
73
|
});
|
|
79
74
|
StyledCountrySelectDropdownContainer.displayName = "StyledCountrySelectDropdownContainer";
|
|
80
|
-
StyledCountrySelectDropdownContainer.displayName = 'StyledCountrySelectDropdownContainer';
|
|
81
75
|
export var StyledCountrySelectDropdownListItemElement = withStyle(StyledDropdownListItem, {
|
|
82
76
|
paddingTop: 0,
|
|
83
77
|
paddingBottom: 0,
|
|
@@ -88,16 +82,13 @@ export var StyledCountrySelectDropdownListItemElement = withStyle(StyledDropdown
|
|
|
88
82
|
height: '42px'
|
|
89
83
|
});
|
|
90
84
|
StyledCountrySelectDropdownListItemElement.displayName = "StyledCountrySelectDropdownListItemElement";
|
|
91
|
-
StyledCountrySelectDropdownListItemElement.displayName = 'StyledCountrySelectDropdownListItemElement';
|
|
92
85
|
export var StyledCountrySelectDropdownListItem = withWrapper(StyledCountrySelectDropdownListItemElement, function (Styled) {
|
|
93
|
-
return (
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
restProps = _objectWithoutProperties(_ref4, _excluded);
|
|
86
|
+
return function StyledCountrySelectDropdownListItem(_ref4) {
|
|
87
|
+
var item = _ref4.item,
|
|
88
|
+
restProps = _objectWithoutProperties(_ref4, _excluded);
|
|
97
89
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
);
|
|
90
|
+
return /*#__PURE__*/React.createElement(Styled, restProps);
|
|
91
|
+
};
|
|
101
92
|
});
|
|
102
93
|
export var StyledCountrySelectDropdownFlagColumn = styled('div', function (_ref5) {
|
|
103
94
|
var _ref6;
|
|
@@ -109,7 +100,6 @@ export var StyledCountrySelectDropdownFlagColumn = styled('div', function (_ref5
|
|
|
109
100
|
return _ref6 = {}, _defineProperty(_ref6, paddingDir, sizing.scale600), _defineProperty(_ref6, "display", 'flex'), _defineProperty(_ref6, "alignItems", 'center'), _ref6;
|
|
110
101
|
});
|
|
111
102
|
StyledCountrySelectDropdownFlagColumn.displayName = "StyledCountrySelectDropdownFlagColumn";
|
|
112
|
-
StyledCountrySelectDropdownFlagColumn.displayName = 'StyledCountrySelectDropdownFlagColumn';
|
|
113
103
|
export var StyledCountrySelectDropdownNameColumn = styled('div', function (_ref7) {
|
|
114
104
|
var _ref7$$theme = _ref7.$theme,
|
|
115
105
|
direction = _ref7$$theme.direction,
|
|
@@ -118,7 +108,6 @@ export var StyledCountrySelectDropdownNameColumn = styled('div', function (_ref7
|
|
|
118
108
|
return _defineProperty({}, paddingDir, sizing.scale600);
|
|
119
109
|
});
|
|
120
110
|
StyledCountrySelectDropdownNameColumn.displayName = "StyledCountrySelectDropdownNameColumn";
|
|
121
|
-
StyledCountrySelectDropdownNameColumn.displayName = 'StyledCountrySelectDropdownNameColumn';
|
|
122
111
|
export var StyledCountrySelectDropdownDialcodeColumn = styled('div', function (_ref9) {
|
|
123
112
|
var _ref10;
|
|
124
113
|
|
|
@@ -129,5 +118,4 @@ export var StyledCountrySelectDropdownDialcodeColumn = styled('div', function (_
|
|
|
129
118
|
var marginDir = direction === 'rtl' ? 'marginRight' : 'marginLeft';
|
|
130
119
|
return _ref10 = {}, _defineProperty(_ref10, paddingDir, sizing.scale600), _defineProperty(_ref10, marginDir, 'auto'), _ref10;
|
|
131
120
|
});
|
|
132
|
-
StyledCountrySelectDropdownDialcodeColumn.displayName = "StyledCountrySelectDropdownDialcodeColumn";
|
|
133
|
-
StyledCountrySelectDropdownDialcodeColumn.displayName = 'StyledCountrySelectDropdownDialcodeColumn';
|
|
121
|
+
StyledCountrySelectDropdownDialcodeColumn.displayName = "StyledCountrySelectDropdownDialcodeColumn";
|
|
@@ -13,7 +13,6 @@ export var StyledRoot = styled('div', {
|
|
|
13
13
|
alignItems: 'center'
|
|
14
14
|
});
|
|
15
15
|
StyledRoot.displayName = "StyledRoot";
|
|
16
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
17
16
|
export var StyledInputOverrideRoot = withStyle(StyledInputRoot, function (_ref) {
|
|
18
17
|
var _SIZE$mini$SIZE$compa;
|
|
19
18
|
|
|
@@ -26,11 +25,9 @@ export var StyledInputOverrideRoot = withStyle(StyledInputRoot, function (_ref)
|
|
|
26
25
|
};
|
|
27
26
|
});
|
|
28
27
|
StyledInputOverrideRoot.displayName = "StyledInputOverrideRoot";
|
|
29
|
-
StyledInputOverrideRoot.displayName = 'StyledInputOverrideRoot';
|
|
30
28
|
export var StyledInputOverrideInput = withStyle(StyledInputInput, {
|
|
31
29
|
textAlign: 'center',
|
|
32
30
|
paddingLeft: '0',
|
|
33
31
|
paddingRight: '0'
|
|
34
32
|
});
|
|
35
|
-
StyledInputOverrideInput.displayName = "StyledInputOverrideInput";
|
|
36
|
-
StyledInputOverrideInput.displayName = 'StyledInputOverrideInput';
|
|
33
|
+
StyledInputOverrideInput.displayName = "StyledInputOverrideInput";
|
package/esm/popover/popover.js
CHANGED
|
@@ -169,11 +169,13 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
169
169
|
var popper = _this.popperRef.current;
|
|
170
170
|
var anchor = _this.anchorRef.current; // Ignore document click if it came from popover or anchor
|
|
171
171
|
|
|
172
|
-
if (!popper || popper === target ||
|
|
172
|
+
if (!popper || popper === target || // eslint-disable-next-line cup/no-undef
|
|
173
|
+
target instanceof Node && popper.contains(target)) {
|
|
173
174
|
return;
|
|
174
175
|
}
|
|
175
176
|
|
|
176
|
-
if (!anchor || anchor === target ||
|
|
177
|
+
if (!anchor || anchor === target || // eslint-disable-next-line cup/no-undef
|
|
178
|
+
target instanceof Node && popper.contains(target)) {
|
|
177
179
|
return;
|
|
178
180
|
}
|
|
179
181
|
|
|
@@ -197,7 +199,7 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
197
199
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
198
200
|
this.init(prevProps, prevState);
|
|
199
201
|
|
|
200
|
-
if (this.props.
|
|
202
|
+
if (this.props.autoFocus && !this.state.autoFocusAfterPositioning && this.popperRef.current !== null && this.popperRef.current.getBoundingClientRect().top > 0) {
|
|
201
203
|
this.setState({
|
|
202
204
|
autoFocusAfterPositioning: true
|
|
203
205
|
});
|
|
@@ -329,6 +331,10 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
329
331
|
value: function getAnchorProps() {
|
|
330
332
|
var isOpen = this.props.isOpen;
|
|
331
333
|
var anchorProps = {
|
|
334
|
+
'aria-haspopup': true,
|
|
335
|
+
'aria-expanded': isOpen ? true : false,
|
|
336
|
+
// @ts-expect-error todo(flow->ts): should it be here?
|
|
337
|
+
key: 'popover-anchor',
|
|
332
338
|
ref: this.anchorRef
|
|
333
339
|
};
|
|
334
340
|
var popoverId = this.getPopoverIdAttr();
|
|
@@ -336,8 +342,6 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
336
342
|
if (this.isAccessibilityTypeMenu()) {
|
|
337
343
|
var relationAttr = this.isClickTrigger() ? 'aria-controls' : 'aria-owns';
|
|
338
344
|
anchorProps[relationAttr] = isOpen ? popoverId : null;
|
|
339
|
-
anchorProps['aria-haspopup'] = true;
|
|
340
|
-
anchorProps['aria-expanded'] = Boolean(isOpen);
|
|
341
345
|
} else if (this.isAccessibilityTypeTooltip()) {
|
|
342
346
|
anchorProps.id = this.getAnchorIdAttr();
|
|
343
347
|
anchorProps['aria-describedby'] = isOpen ? popoverId : null;
|
|
@@ -365,6 +369,7 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
365
369
|
bodyProps.id = popoverId;
|
|
366
370
|
} else if (this.isAccessibilityTypeTooltip()) {
|
|
367
371
|
bodyProps.id = popoverId;
|
|
372
|
+
bodyProps.role = 'tooltip';
|
|
368
373
|
}
|
|
369
374
|
|
|
370
375
|
if (this.isHoverTrigger()) {
|
|
@@ -428,9 +433,7 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
428
433
|
return /*#__PURE__*/React.cloneElement(anchor, anchorProps);
|
|
429
434
|
}
|
|
430
435
|
|
|
431
|
-
return /*#__PURE__*/React.createElement("span",
|
|
432
|
-
key: "popover-anchor"
|
|
433
|
-
}, anchorProps), anchor);
|
|
436
|
+
return /*#__PURE__*/React.createElement("span", anchorProps, anchor);
|
|
434
437
|
}
|
|
435
438
|
}, {
|
|
436
439
|
key: "renderPopover",
|
|
@@ -506,7 +509,7 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
506
509
|
popperOptions: _objectSpread(_objectSpread({}, defaultPopperOptions), this.props.popperOptions),
|
|
507
510
|
onPopperUpdate: this.onPopperUpdate,
|
|
508
511
|
placement: this.state.placement
|
|
509
|
-
}, this.props.focusLock
|
|
512
|
+
}, this.props.focusLock ? /*#__PURE__*/React.createElement(FocusLock, {
|
|
510
513
|
disabled: !this.props.focusLock,
|
|
511
514
|
noFocusGuards: false // see popover-focus-loop.scenario.js for why hover cannot return focus
|
|
512
515
|
,
|
|
@@ -58,12 +58,11 @@ export function getBodyStyles(props) {
|
|
|
58
58
|
} : {});
|
|
59
59
|
}
|
|
60
60
|
export var Body = styled('div', getBodyStyles);
|
|
61
|
-
Body.displayName = "Body";
|
|
62
|
-
Body.displayName = 'Body';
|
|
63
61
|
/**
|
|
64
62
|
* Arrow shown between the popover and the anchor element
|
|
65
63
|
*/
|
|
66
64
|
|
|
65
|
+
Body.displayName = "Body";
|
|
67
66
|
export function getArrowStyles(props) {
|
|
68
67
|
var $arrowOffset = props.$arrowOffset,
|
|
69
68
|
$placement = props.$placement,
|
|
@@ -78,8 +77,6 @@ export function getArrowStyles(props) {
|
|
|
78
77
|
}, getArrowPositionStyles($arrowOffset, $placement));
|
|
79
78
|
}
|
|
80
79
|
export var Arrow = styled('div', getArrowStyles);
|
|
81
|
-
Arrow.displayName = "Arrow";
|
|
82
|
-
Arrow.displayName = 'Arrow';
|
|
83
80
|
/**
|
|
84
81
|
* Extra div that holds the popover content. This extra element
|
|
85
82
|
* is needed for the arrow–the arrow is just a 45deg rotated div,
|
|
@@ -87,6 +84,7 @@ Arrow.displayName = 'Arrow';
|
|
|
87
84
|
* clips the part of the arrow that extends into the popover.
|
|
88
85
|
*/
|
|
89
86
|
|
|
87
|
+
Arrow.displayName = "Arrow";
|
|
90
88
|
export function getInnerStyles(_ref) {
|
|
91
89
|
var $theme = _ref.$theme;
|
|
92
90
|
return {
|
|
@@ -100,14 +98,13 @@ export function getInnerStyles(_ref) {
|
|
|
100
98
|
};
|
|
101
99
|
}
|
|
102
100
|
export var Inner = styled('div', getInnerStyles);
|
|
103
|
-
Inner.displayName = "Inner";
|
|
104
|
-
Inner.displayName = 'Inner';
|
|
105
101
|
/**
|
|
106
102
|
* A drop-in component that provides the recommended padding
|
|
107
103
|
* for popovers. Mostly a convenience for users so they don't
|
|
108
104
|
* have to define this themselves.
|
|
109
105
|
*/
|
|
110
106
|
|
|
107
|
+
Inner.displayName = "Inner";
|
|
111
108
|
export var Padding = styled('div', {
|
|
112
109
|
paddingLeft: '12px',
|
|
113
110
|
paddingTop: '12px',
|
|
@@ -115,9 +112,7 @@ export var Padding = styled('div', {
|
|
|
115
112
|
paddingBottom: '12px'
|
|
116
113
|
});
|
|
117
114
|
Padding.displayName = "Padding";
|
|
118
|
-
Padding.displayName = 'Padding';
|
|
119
115
|
export var Hidden = styled('div', {
|
|
120
116
|
display: 'none'
|
|
121
117
|
});
|
|
122
|
-
Hidden.displayName = "Hidden";
|
|
123
|
-
Hidden.displayName = 'Hidden';
|
|
118
|
+
Hidden.displayName = "Hidden";
|
|
@@ -22,8 +22,7 @@ function getBarHeight(size) {
|
|
|
22
22
|
var _SIZE$small$SIZE$medi;
|
|
23
23
|
|
|
24
24
|
return (_SIZE$small$SIZE$medi = {}, _defineProperty(_SIZE$small$SIZE$medi, SIZE.small, '2px'), _defineProperty(_SIZE$small$SIZE$medi, SIZE.medium, '4px'), _defineProperty(_SIZE$small$SIZE$medi, SIZE.large, '8px'), _SIZE$small$SIZE$medi)[size];
|
|
25
|
-
}
|
|
26
|
-
|
|
25
|
+
}
|
|
27
26
|
|
|
28
27
|
export var StyledRoot = styled('div', function (props) {
|
|
29
28
|
return {
|
|
@@ -31,7 +30,6 @@ export var StyledRoot = styled('div', function (props) {
|
|
|
31
30
|
};
|
|
32
31
|
});
|
|
33
32
|
StyledRoot.displayName = "StyledRoot";
|
|
34
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
35
33
|
export var StyledBarContainer = styled('div', function (props) {
|
|
36
34
|
var $theme = props.$theme;
|
|
37
35
|
var sizing = $theme.sizing;
|
|
@@ -44,7 +42,6 @@ export var StyledBarContainer = styled('div', function (props) {
|
|
|
44
42
|
};
|
|
45
43
|
});
|
|
46
44
|
StyledBarContainer.displayName = "StyledBarContainer";
|
|
47
|
-
StyledBarContainer.displayName = 'StyledBarContainer';
|
|
48
45
|
export var StyledBar = styled('div', function (props) {
|
|
49
46
|
var $theme = props.$theme,
|
|
50
47
|
$size = props.$size,
|
|
@@ -70,7 +67,6 @@ export var StyledBar = styled('div', function (props) {
|
|
|
70
67
|
});
|
|
71
68
|
});
|
|
72
69
|
StyledBar.displayName = "StyledBar";
|
|
73
|
-
StyledBar.displayName = 'StyledBar';
|
|
74
70
|
export var StyledBarProgress = styled('div', function (props) {
|
|
75
71
|
var $theme = props.$theme,
|
|
76
72
|
$value = props.$value,
|
|
@@ -148,7 +144,6 @@ export var StyledBarProgress = styled('div', function (props) {
|
|
|
148
144
|
}, $steps > 1 ? stepAnimationStyles : animationStyles);
|
|
149
145
|
});
|
|
150
146
|
StyledBarProgress.displayName = "StyledBarProgress";
|
|
151
|
-
StyledBarProgress.displayName = 'StyledBarProgress';
|
|
152
147
|
export var StyledInfiniteBar = styled('div', function (props) {
|
|
153
148
|
var $theme = props.$theme,
|
|
154
149
|
_props$$isLeft = props.$isLeft,
|
|
@@ -212,7 +207,6 @@ export var StyledInfiniteBar = styled('div', function (props) {
|
|
|
212
207
|
}, animationStyles);
|
|
213
208
|
});
|
|
214
209
|
StyledInfiniteBar.displayName = "StyledInfiniteBar";
|
|
215
|
-
StyledInfiniteBar.displayName = 'StyledInfiniteBar';
|
|
216
210
|
export var StyledLabel = styled('div', function (props) {
|
|
217
211
|
return _objectSpread(_objectSpread({
|
|
218
212
|
textAlign: 'center'
|
|
@@ -221,7 +215,6 @@ export var StyledLabel = styled('div', function (props) {
|
|
|
221
215
|
});
|
|
222
216
|
});
|
|
223
217
|
StyledLabel.displayName = "StyledLabel";
|
|
224
|
-
StyledLabel.displayName = 'StyledLabel';
|
|
225
218
|
var PROGRESS_BAR_ROUNDED_SIZES = (_PROGRESS_BAR_ROUNDED = {}, _defineProperty(_PROGRESS_BAR_ROUNDED, SIZE.large, {
|
|
226
219
|
d: 'M47.5 4H71.5529C82.2933 4 91 12.9543 91 24C91 35.0457 82.2933 44 71.5529 44H23.4471C12.7067 44 4 35.0457 4 24C4 12.9543 12.7067 4 23.4471 4H47.5195',
|
|
227
220
|
width: 95,
|
|
@@ -254,7 +247,6 @@ export var StyledProgressBarRoundedRoot = styled('div', function (_ref) {
|
|
|
254
247
|
};
|
|
255
248
|
});
|
|
256
249
|
StyledProgressBarRoundedRoot.displayName = "StyledProgressBarRoundedRoot";
|
|
257
|
-
StyledProgressBarRoundedRoot.displayName = 'StyledProgressBarRoundedRoot';
|
|
258
250
|
|
|
259
251
|
var _StyledProgressBarRoundedSvg = styled('svg', function (_ref2) {
|
|
260
252
|
var $size = _ref2.$size;
|
|
@@ -267,7 +259,6 @@ var _StyledProgressBarRoundedSvg = styled('svg', function (_ref2) {
|
|
|
267
259
|
});
|
|
268
260
|
|
|
269
261
|
_StyledProgressBarRoundedSvg.displayName = "_StyledProgressBarRoundedSvg";
|
|
270
|
-
_StyledProgressBarRoundedSvg.displayName = '_StyledProgressBarRoundedSvg';
|
|
271
262
|
export var StyledProgressBarRoundedSvg = withWrapper(_StyledProgressBarRoundedSvg, function (Styled) {
|
|
272
263
|
return function StyledProgressBarRoundedSvg(props) {
|
|
273
264
|
return /*#__PURE__*/React.createElement(Styled, _extends({
|
|
@@ -287,7 +278,6 @@ var _StyledProgressBarRoundedTrackBackground = styled('path', function (_ref3) {
|
|
|
287
278
|
});
|
|
288
279
|
|
|
289
280
|
_StyledProgressBarRoundedTrackBackground.displayName = "_StyledProgressBarRoundedTrackBackground";
|
|
290
|
-
_StyledProgressBarRoundedTrackBackground.displayName = '_StyledProgressBarRoundedTrackBackground';
|
|
291
281
|
export var StyledProgressBarRoundedTrackBackground = withWrapper(_StyledProgressBarRoundedTrackBackground, function (Styled) {
|
|
292
282
|
return function StyledProgressBarRoundedSvg(props) {
|
|
293
283
|
return /*#__PURE__*/React.createElement(Styled, _extends({
|
|
@@ -312,7 +302,6 @@ var _StyledProgressBarRoundedTrackForeground = styled('path', function (_ref4) {
|
|
|
312
302
|
});
|
|
313
303
|
|
|
314
304
|
_StyledProgressBarRoundedTrackForeground.displayName = "_StyledProgressBarRoundedTrackForeground";
|
|
315
|
-
_StyledProgressBarRoundedTrackForeground.displayName = '_StyledProgressBarRoundedTrackForeground';
|
|
316
305
|
export var StyledProgressBarRoundedTrackForeground = withWrapper(_StyledProgressBarRoundedTrackForeground, function (Styled) {
|
|
317
306
|
return function StyledProgressBarRoundedSvg(props) {
|
|
318
307
|
return /*#__PURE__*/React.createElement(Styled, _extends({
|
|
@@ -327,5 +316,4 @@ export var StyledProgressBarRoundedText = styled('div', function (_ref5) {
|
|
|
327
316
|
color: $theme.colors.contentPrimary
|
|
328
317
|
}, $theme.typography[PROGRESS_BAR_ROUNDED_SIZES[$size].typography]);
|
|
329
318
|
});
|
|
330
|
-
StyledProgressBarRoundedText.displayName = "StyledProgressBarRoundedText";
|
|
331
|
-
StyledProgressBarRoundedText.displayName = 'StyledProgressBarRoundedText';
|
|
319
|
+
StyledProgressBarRoundedText.displayName = "StyledProgressBarRoundedText";
|
|
@@ -39,8 +39,7 @@ function ProgressSteps(_ref) {
|
|
|
39
39
|
Root = _getOverrides2[0],
|
|
40
40
|
rootProps = _getOverrides2[1];
|
|
41
41
|
|
|
42
|
-
var numChildren = React.Children.count(children);
|
|
43
|
-
|
|
42
|
+
var numChildren = React.Children.count(children);
|
|
44
43
|
var modifiedChildren = React.Children.map(children, function (child, index) {
|
|
45
44
|
if (!child) return;
|
|
46
45
|
var childOverrides = child.props.overrides || {};
|
|
@@ -24,8 +24,6 @@ export var StyledProgressSteps = styled('ol', function (_ref) {
|
|
|
24
24
|
};
|
|
25
25
|
});
|
|
26
26
|
StyledProgressSteps.displayName = "StyledProgressSteps";
|
|
27
|
-
StyledProgressSteps.displayName = 'StyledProgressSteps'; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
28
|
-
|
|
29
27
|
export var StyledStep = styled('li', function (_ref2) {
|
|
30
28
|
var $theme = _ref2.$theme;
|
|
31
29
|
return {
|
|
@@ -35,9 +33,7 @@ export var StyledStep = styled('li', function (_ref2) {
|
|
|
35
33
|
};
|
|
36
34
|
});
|
|
37
35
|
StyledStep.displayName = "StyledStep";
|
|
38
|
-
|
|
39
|
-
export var StyledIconContainer = styled('div', // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
40
|
-
function (_ref3) {
|
|
36
|
+
export var StyledIconContainer = styled('div', function (_ref3) {
|
|
41
37
|
var $theme = _ref3.$theme,
|
|
42
38
|
$isActive = _ref3.$isActive,
|
|
43
39
|
$isCompleted = _ref3.$isCompleted,
|
|
@@ -79,11 +75,11 @@ function (_ref3) {
|
|
|
79
75
|
};
|
|
80
76
|
});
|
|
81
77
|
StyledIconContainer.displayName = "StyledIconContainer";
|
|
82
|
-
StyledIconContainer.displayName = 'StyledIconContainer';
|
|
83
78
|
export var StyledIcon = styled('div', function (_ref5) {
|
|
84
79
|
var $theme = _ref5.$theme,
|
|
85
80
|
$isActive = _ref5.$isActive,
|
|
86
|
-
$isCompleted = _ref5.$isCompleted
|
|
81
|
+
$isCompleted = _ref5.$isCompleted,
|
|
82
|
+
$disabled = _ref5.$disabled;
|
|
87
83
|
var currentColor = $theme.colors.mono400;
|
|
88
84
|
var size = $theme.sizing.scale300;
|
|
89
85
|
|
|
@@ -114,7 +110,6 @@ export var StyledIcon = styled('div', function (_ref5) {
|
|
|
114
110
|
};
|
|
115
111
|
});
|
|
116
112
|
StyledIcon.displayName = "StyledIcon";
|
|
117
|
-
StyledIcon.displayName = 'StyledIcon';
|
|
118
113
|
export var StyledInnerIcon = styled('div', function (_ref6) {
|
|
119
114
|
var $theme = _ref6.$theme;
|
|
120
115
|
return {
|
|
@@ -130,14 +125,12 @@ export var StyledInnerIcon = styled('div', function (_ref6) {
|
|
|
130
125
|
};
|
|
131
126
|
});
|
|
132
127
|
StyledInnerIcon.displayName = "StyledInnerIcon";
|
|
133
|
-
StyledInnerIcon.displayName = 'StyledInnerIcon';
|
|
134
128
|
export var StyledContent = styled('div', function (_ref7) {
|
|
135
129
|
var $theme = _ref7.$theme;
|
|
136
130
|
var marginDir = $theme.direction === 'rtl' ? 'marginRight' : 'marginLeft';
|
|
137
131
|
return _defineProperty({}, marginDir, $theme.sizing.scale1600);
|
|
138
132
|
});
|
|
139
133
|
StyledContent.displayName = "StyledContent";
|
|
140
|
-
StyledContent.displayName = 'StyledContent';
|
|
141
134
|
export var StyledContentTitle = styled('div', function (_ref9) {
|
|
142
135
|
var $theme = _ref9.$theme,
|
|
143
136
|
$isActive = _ref9.$isActive,
|
|
@@ -158,7 +151,6 @@ export var StyledContentTitle = styled('div', function (_ref9) {
|
|
|
158
151
|
});
|
|
159
152
|
});
|
|
160
153
|
StyledContentTitle.displayName = "StyledContentTitle";
|
|
161
|
-
StyledContentTitle.displayName = 'StyledContentTitle';
|
|
162
154
|
export var StyledContentTail = styled('div', function (_ref10) {
|
|
163
155
|
var _ref11;
|
|
164
156
|
|
|
@@ -184,7 +176,6 @@ export var StyledContentTail = styled('div', function (_ref10) {
|
|
|
184
176
|
}, _defineProperty(_ref11, dir, '31px'), _defineProperty(_ref11, "top", 0), _defineProperty(_ref11, "height", "calc(100% + ".concat($theme.sizing.scale500, ")")), _defineProperty(_ref11, "marginBottom", 0), _defineProperty(_ref11, "width", $theme.sizing.scale0), _defineProperty(_ref11, "marginTop", "calc(".concat(titlePad, " + (").concat(font.lineHeight, " + ").concat(size, ") / 2)")), _defineProperty(_ref11, "display", 'inline-block'), _defineProperty(_ref11, "backgroundColor", currentColor), _ref11;
|
|
185
177
|
});
|
|
186
178
|
StyledContentTail.displayName = "StyledContentTail";
|
|
187
|
-
StyledContentTail.displayName = 'StyledContentTail';
|
|
188
179
|
export var StyledContentDescription = styled('div', function (_ref12) {
|
|
189
180
|
var $theme = _ref12.$theme;
|
|
190
181
|
return {
|
|
@@ -192,8 +183,8 @@ export var StyledContentDescription = styled('div', function (_ref12) {
|
|
|
192
183
|
};
|
|
193
184
|
});
|
|
194
185
|
StyledContentDescription.displayName = "StyledContentDescription";
|
|
195
|
-
|
|
196
|
-
|
|
186
|
+
export var StyledNumberStep = styled('li', function (_ref13) {
|
|
187
|
+
var $theme = _ref13.$theme;
|
|
197
188
|
return {
|
|
198
189
|
listStyleType: 'none',
|
|
199
190
|
position: 'relative',
|
|
@@ -201,11 +192,11 @@ export var StyledNumberStep = styled('li', function () {
|
|
|
201
192
|
};
|
|
202
193
|
});
|
|
203
194
|
StyledNumberStep.displayName = "StyledNumberStep";
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
$
|
|
208
|
-
$
|
|
195
|
+
export var StyledNumberIcon = styled('div', function (_ref14) {
|
|
196
|
+
var $theme = _ref14.$theme,
|
|
197
|
+
$isActive = _ref14.$isActive,
|
|
198
|
+
$isCompleted = _ref14.$isCompleted,
|
|
199
|
+
$disabled = _ref14.$disabled;
|
|
209
200
|
var backgroundColor = $theme.colors.mono400;
|
|
210
201
|
var color = $theme.colors.contentStateDisabled;
|
|
211
202
|
var size = $theme.sizing.scale950;
|
|
@@ -244,12 +235,13 @@ export var StyledNumberIcon = styled('div', function (_ref13) {
|
|
|
244
235
|
}, font);
|
|
245
236
|
});
|
|
246
237
|
StyledNumberIcon.displayName = "StyledNumberIcon";
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
var _ref15;
|
|
238
|
+
export var StyledNumberContentTail = styled('div', function (_ref15) {
|
|
239
|
+
var _ref16;
|
|
250
240
|
|
|
251
|
-
var $theme =
|
|
252
|
-
$
|
|
241
|
+
var $theme = _ref15.$theme,
|
|
242
|
+
$isActive = _ref15.$isActive,
|
|
243
|
+
$isCompleted = _ref15.$isCompleted,
|
|
244
|
+
$disabled = _ref15.$disabled;
|
|
253
245
|
var currentColor = $theme.colors.mono300;
|
|
254
246
|
var size = $theme.sizing.scale950;
|
|
255
247
|
var titleFont = $theme.typography.LabelMedium;
|
|
@@ -261,9 +253,8 @@ export var StyledNumberContentTail = styled('div', function (_ref14) {
|
|
|
261
253
|
|
|
262
254
|
var marginTop = "calc(".concat(titlePad, " + ").concat(size, " + (").concat(titleFont.lineHeight, " - ").concat(size, ") / 2)");
|
|
263
255
|
var dir = $theme.direction === 'rtl' ? 'right' : 'left';
|
|
264
|
-
return
|
|
256
|
+
return _ref16 = {
|
|
265
257
|
position: 'absolute'
|
|
266
|
-
}, _defineProperty(
|
|
258
|
+
}, _defineProperty(_ref16, dir, '31px'), _defineProperty(_ref16, "top", 0), _defineProperty(_ref16, "height", "calc(100% - ".concat($theme.sizing.scale500, ")")), _defineProperty(_ref16, "paddingBottom", 0), _defineProperty(_ref16, "marginTop", marginTop), _defineProperty(_ref16, "width", $theme.sizing.scale0), _defineProperty(_ref16, "backgroundColor", currentColor), _defineProperty(_ref16, "display", 'inline-block'), _ref16;
|
|
267
259
|
});
|
|
268
|
-
StyledNumberContentTail.displayName = "StyledNumberContentTail";
|
|
269
|
-
StyledNumberContentTail.displayName = 'StyledNumberContentTail';
|
|
260
|
+
StyledNumberContentTail.displayName = "StyledNumberContentTail";
|
|
@@ -148,7 +148,6 @@ export var RadioGroupRoot = styled('div', function (props) {
|
|
|
148
148
|
};
|
|
149
149
|
});
|
|
150
150
|
RadioGroupRoot.displayName = "RadioGroupRoot";
|
|
151
|
-
RadioGroupRoot.displayName = 'RadioGroupRoot';
|
|
152
151
|
export var Root = styled('label', function (props) {
|
|
153
152
|
var _ref2;
|
|
154
153
|
|
|
@@ -169,7 +168,6 @@ export var Root = styled('label', function (props) {
|
|
|
169
168
|
}, _defineProperty(_ref2, "margin".concat(marginAfter), isHorizontal ? sizing.scale200 : null), _defineProperty(_ref2, "marginBottom", $hasDescription && !isHorizontal ? null : sizing.scale200), _ref2;
|
|
170
169
|
});
|
|
171
170
|
Root.displayName = "Root";
|
|
172
|
-
Root.displayName = 'Root';
|
|
173
171
|
export var RadioMarkInner = styled('div', function (props) {
|
|
174
172
|
var _props$$theme = props.$theme,
|
|
175
173
|
animation = _props$$theme.animation,
|
|
@@ -187,7 +185,6 @@ export var RadioMarkInner = styled('div', function (props) {
|
|
|
187
185
|
};
|
|
188
186
|
});
|
|
189
187
|
RadioMarkInner.displayName = "RadioMarkInner";
|
|
190
|
-
RadioMarkInner.displayName = 'RadioMarkInner';
|
|
191
188
|
export var RadioMarkOuter = styled('div', function (props) {
|
|
192
189
|
var _props$$theme2 = props.$theme,
|
|
193
190
|
animation = _props$$theme2.animation,
|
|
@@ -216,7 +213,6 @@ export var RadioMarkOuter = styled('div', function (props) {
|
|
|
216
213
|
};
|
|
217
214
|
});
|
|
218
215
|
RadioMarkOuter.displayName = "RadioMarkOuter";
|
|
219
|
-
RadioMarkOuter.displayName = 'RadioMarkOuter';
|
|
220
216
|
export var Label = styled('div', function (props) {
|
|
221
217
|
var typography = props.$theme.typography;
|
|
222
218
|
return _objectSpread(_objectSpread({
|
|
@@ -224,10 +220,9 @@ export var Label = styled('div', function (props) {
|
|
|
224
220
|
}, getLabelPadding(props)), {}, {
|
|
225
221
|
color: getLabelColor(props)
|
|
226
222
|
}, typography.LabelMedium);
|
|
227
|
-
});
|
|
228
|
-
Label.displayName = "Label";
|
|
229
|
-
Label.displayName = 'Label'; // tricky style for focus event cause display: none doesn't work
|
|
223
|
+
}); // tricky style for focus event cause display: none doesn't work
|
|
230
224
|
|
|
225
|
+
Label.displayName = "Label";
|
|
231
226
|
export var Input = styled('input', {
|
|
232
227
|
width: 0,
|
|
233
228
|
height: 0,
|
|
@@ -243,7 +238,6 @@ export var Input = styled('input', {
|
|
|
243
238
|
position: 'absolute'
|
|
244
239
|
});
|
|
245
240
|
Input.displayName = "Input";
|
|
246
|
-
Input.displayName = 'Input';
|
|
247
241
|
export var Description = styled('div', function (props) {
|
|
248
242
|
var _objectSpread2;
|
|
249
243
|
|
|
@@ -257,5 +251,4 @@ export var Description = styled('div', function (props) {
|
|
|
257
251
|
cursor: 'auto'
|
|
258
252
|
}, _defineProperty(_objectSpread2, "margin".concat(marginBefore), $align === 'horizontal' ? null : $theme.sizing.scale900), _defineProperty(_objectSpread2, "margin".concat(marginAfter), isHorizontal ? $theme.sizing.scale200 : null), _defineProperty(_objectSpread2, "maxWidth", '240px'), _objectSpread2));
|
|
259
253
|
});
|
|
260
|
-
Description.displayName = "Description";
|
|
261
|
-
Description.displayName = 'Description';
|
|
254
|
+
Description.displayName = "Description";
|
|
@@ -130,8 +130,7 @@ var EmoticonRating = /*#__PURE__*/function (_React$Component) {
|
|
|
130
130
|
refs.push(starRef);
|
|
131
131
|
ratings.push( /*#__PURE__*/React.createElement(Emoticon, _extends({
|
|
132
132
|
key: x,
|
|
133
|
-
role: "radio"
|
|
134
|
-
,
|
|
133
|
+
role: "radio",
|
|
135
134
|
ref: starRef,
|
|
136
135
|
tabIndex: isFocusable ? '0' : '-1',
|
|
137
136
|
"aria-setsize": 5,
|
|
@@ -132,8 +132,7 @@ var StarRating = /*#__PURE__*/function (_React$Component) {
|
|
|
132
132
|
ratings.push( /*#__PURE__*/React.createElement(Star, _extends({
|
|
133
133
|
key: x,
|
|
134
134
|
role: "radio",
|
|
135
|
-
title: "rating"
|
|
136
|
-
,
|
|
135
|
+
title: "rating",
|
|
137
136
|
ref: starRef,
|
|
138
137
|
tabIndex: isFocusable ? '0' : '-1',
|
|
139
138
|
"aria-setsize": numItems,
|