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
|
@@ -26,7 +26,6 @@ export var StyledTreeItemList = styled('ul', function (_ref) {
|
|
|
26
26
|
}, _defineProperty(_ref2, "margin".concat(direction), $isChildNode ? $theme.sizing.scale550 : 0), _defineProperty(_ref2, "overflow", 'auto'), _defineProperty(_ref2, "paddingTop", 0), _defineProperty(_ref2, "paddingBottom", 0), _defineProperty(_ref2, "padding".concat(direction), $isChildNode ? $theme.sizing.scale200 : 0), _defineProperty(_ref2, "position", 'relative'), _defineProperty(_ref2, "outline", 'none'), _defineProperty(_ref2, "display", $expanded ? 'block' : 'none'), _defineProperty(_ref2, "border".concat(direction), $indentGuides && $isChildNode ? "1px solid ".concat($theme.colors.borderOpaque) : 'none'), _ref2;
|
|
27
27
|
});
|
|
28
28
|
StyledTreeItemList.displayName = "StyledTreeItemList";
|
|
29
|
-
StyledTreeItemList.displayName = 'StyledTreeItemList';
|
|
30
29
|
export var StyledTreeItem = styled('li', function (_ref3) {
|
|
31
30
|
var $theme = _ref3.$theme,
|
|
32
31
|
$isLeafNode = _ref3.$isLeafNode;
|
|
@@ -46,7 +45,6 @@ export var StyledTreeItem = styled('li', function (_ref3) {
|
|
|
46
45
|
};
|
|
47
46
|
});
|
|
48
47
|
StyledTreeItem.displayName = "StyledTreeItem";
|
|
49
|
-
StyledTreeItem.displayName = 'StyledTreeItem';
|
|
50
48
|
export var StyledItemContent = styled('div', function (_ref4) {
|
|
51
49
|
var $theme = _ref4.$theme,
|
|
52
50
|
$isSelected = _ref4.$isSelected,
|
|
@@ -72,7 +70,6 @@ export var StyledItemContent = styled('div', function (_ref4) {
|
|
|
72
70
|
});
|
|
73
71
|
});
|
|
74
72
|
StyledItemContent.displayName = "StyledItemContent";
|
|
75
|
-
StyledItemContent.displayName = 'StyledItemContent';
|
|
76
73
|
export var StyledIconContainer = styled('div', function (_ref5) {
|
|
77
74
|
var $theme = _ref5.$theme;
|
|
78
75
|
var marginDirection = $theme.direction === 'rtl' ? 'marginLeft' : 'marginRight';
|
|
@@ -85,7 +82,6 @@ export var StyledIconContainer = styled('div', function (_ref5) {
|
|
|
85
82
|
}, marginDirection, $theme.sizing.scale200);
|
|
86
83
|
});
|
|
87
84
|
StyledIconContainer.displayName = "StyledIconContainer";
|
|
88
|
-
StyledIconContainer.displayName = 'StyledIconContainer';
|
|
89
85
|
export var StyledNoIconContainer = styled('div', function (_ref7) {
|
|
90
86
|
var _ref8;
|
|
91
87
|
|
|
@@ -100,11 +96,9 @@ export var StyledNoIconContainer = styled('div', function (_ref7) {
|
|
|
100
96
|
}, _defineProperty(_ref8, marginDirection, $theme.sizing.scale200), _defineProperty(_ref8, "width", 0), _defineProperty(_ref8, "height", '1em'), _ref8;
|
|
101
97
|
});
|
|
102
98
|
StyledNoIconContainer.displayName = "StyledNoIconContainer";
|
|
103
|
-
StyledNoIconContainer.displayName = 'StyledNoIconContainer';
|
|
104
99
|
export var StyledLabelInteractable = styled('div', function () {
|
|
105
100
|
return {
|
|
106
101
|
width: '100%'
|
|
107
102
|
};
|
|
108
103
|
});
|
|
109
|
-
StyledLabelInteractable.displayName = "StyledLabelInteractable";
|
|
110
|
-
StyledLabelInteractable.displayName = 'StyledLabelInteractable';
|
|
104
|
+
StyledLabelInteractable.displayName = "StyledLabelInteractable";
|
|
@@ -66,7 +66,6 @@ export default function TreeView(props) {
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
var onKeyDown = function onKeyDown(e, node) {
|
|
69
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
70
69
|
var elementId = e.target.getAttribute('data-nodeid'); // this check prevents bubbling
|
|
71
70
|
|
|
72
71
|
if (elementId !== getId(node) && parseInt(elementId) !== getId(node)) {
|
|
@@ -155,8 +154,7 @@ export default function TreeView(props) {
|
|
|
155
154
|
if (selectedNodeId === null && data.length) {
|
|
156
155
|
setSelectedNodeId(getId(data[0]));
|
|
157
156
|
}
|
|
158
|
-
};
|
|
159
|
-
|
|
157
|
+
};
|
|
160
158
|
|
|
161
159
|
var onBlur = function onBlur(event) {
|
|
162
160
|
if (focusVisible) {
|
package/esm/types/globals.d.js
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (c) Uber Technologies, Inc.
|
|
3
|
-
|
|
4
|
-
This source code is licensed under the MIT license found in the
|
|
5
|
-
LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10
|
-
var PlaywrightTest;
|
|
11
|
-
|
|
12
|
-
(function (_PlaywrightTest) {})(PlaywrightTest || (PlaywrightTest = {}));
|
package/esm/utils/deep-merge.js
CHANGED
|
@@ -6,6 +6,8 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
6
6
|
This source code is licensed under the MIT license found in the
|
|
7
7
|
LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
+
|
|
10
|
+
/* flowlint unclear-type:off */
|
|
9
11
|
export default function deepMerge(target) {
|
|
10
12
|
target = target || {};
|
|
11
13
|
var len = arguments.length <= 1 ? 0 : arguments.length - 1;
|
|
@@ -32,6 +34,9 @@ export default function deepMerge(target) {
|
|
|
32
34
|
|
|
33
35
|
return target;
|
|
34
36
|
}
|
|
37
|
+
/* flowlint unclear-type:error */
|
|
38
|
+
|
|
39
|
+
/* eslint-disable-next-line flowtype/no-weak-types */
|
|
35
40
|
|
|
36
41
|
function isCloneable(obj) {
|
|
37
42
|
/* eslint-disable-next-line eqeqeq */
|
|
@@ -8,7 +8,6 @@ LICENSE file in the root directory of this source tree.
|
|
|
8
8
|
*/
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
export default function (Component, displayName) {
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
11
|
var DeprecatedComponent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
13
12
|
if (process.env.NODE_ENV !== "production") {
|
|
14
13
|
console.warn("We have stabilized the ".concat(displayName, " component, so you can drop the \"Unstable_\" prefix from your imports. We will remove the \"Unstable_\" exports soon, so please make these changes as soon as possible!"));
|
|
@@ -145,8 +145,7 @@ export function initFocusVisible(node) {
|
|
|
145
145
|
prepare(node.ownerDocument);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
export var forkFocus =
|
|
149
|
-
function forkFocus(rootProps, handler) {
|
|
148
|
+
export var forkFocus = function forkFocus(rootProps, handler) {
|
|
150
149
|
return function (e) {
|
|
151
150
|
if (typeof rootProps.onFocus === 'function') {
|
|
152
151
|
rootProps.onFocus(e);
|
|
@@ -155,8 +154,7 @@ function forkFocus(rootProps, handler) {
|
|
|
155
154
|
handler(e);
|
|
156
155
|
};
|
|
157
156
|
};
|
|
158
|
-
export var forkBlur =
|
|
159
|
-
function forkBlur(rootProps, handler) {
|
|
157
|
+
export var forkBlur = function forkBlur(rootProps, handler) {
|
|
160
158
|
return function (e) {
|
|
161
159
|
if (typeof rootProps.onBlur === 'function') {
|
|
162
160
|
rootProps.onBlur(e);
|
|
@@ -48,7 +48,6 @@ var StyledFileDragAndDrop = (0, _styles.styled)('div', function (props) {
|
|
|
48
48
|
});
|
|
49
49
|
exports.StyledFileDragAndDrop = StyledFileDragAndDrop;
|
|
50
50
|
StyledFileDragAndDrop.displayName = "StyledFileDragAndDrop";
|
|
51
|
-
StyledFileDragAndDrop.displayName = 'StyledFileDragAndDrop';
|
|
52
51
|
var StyledContentMessage = (0, _styles.styled)('div', function (_ref) {
|
|
53
52
|
var $theme = _ref.$theme,
|
|
54
53
|
$afterFileDrop = _ref.$afterFileDrop,
|
|
@@ -61,7 +60,6 @@ var StyledContentMessage = (0, _styles.styled)('div', function (_ref) {
|
|
|
61
60
|
});
|
|
62
61
|
exports.StyledContentMessage = StyledContentMessage;
|
|
63
62
|
StyledContentMessage.displayName = "StyledContentMessage";
|
|
64
|
-
StyledContentMessage.displayName = 'StyledContentMessage';
|
|
65
63
|
var StyledContentSeparator = StyledContentMessage;
|
|
66
64
|
exports.StyledContentSeparator = StyledContentSeparator;
|
|
67
65
|
var StyledErrorMessage = (0, _styles.styled)('div', function (props) {
|
|
@@ -73,7 +71,6 @@ var StyledErrorMessage = (0, _styles.styled)('div', function (props) {
|
|
|
73
71
|
});
|
|
74
72
|
exports.StyledErrorMessage = StyledErrorMessage;
|
|
75
73
|
StyledErrorMessage.displayName = "StyledErrorMessage";
|
|
76
|
-
StyledErrorMessage.displayName = 'StyledErrorMessage';
|
|
77
74
|
var StyledRoot = (0, _styles.styled)('div', function (props) {
|
|
78
75
|
return _objectSpread(_objectSpread({}, props.$theme.typography.font300), {}, {
|
|
79
76
|
color: props.$theme.colors.fileUploaderMessageColor
|
|
@@ -81,8 +78,6 @@ var StyledRoot = (0, _styles.styled)('div', function (props) {
|
|
|
81
78
|
});
|
|
82
79
|
exports.StyledRoot = StyledRoot;
|
|
83
80
|
StyledRoot.displayName = "StyledRoot";
|
|
84
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
85
81
|
var StyledHiddenInput = (0, _styles.styled)('input', {});
|
|
86
82
|
exports.StyledHiddenInput = StyledHiddenInput;
|
|
87
|
-
StyledHiddenInput.displayName = "StyledHiddenInput";
|
|
88
|
-
StyledHiddenInput.displayName = 'StyledHiddenInput';
|
|
83
|
+
StyledHiddenInput.displayName = "StyledHiddenInput";
|
|
@@ -16,7 +16,7 @@ export declare const flexGridItemMediaQueryStyle: ({ $theme, flexGridColumnCount
|
|
|
16
16
|
width: `calc(${string} - .5px)`;
|
|
17
17
|
marginBottom: any;
|
|
18
18
|
}>;
|
|
19
|
-
export declare
|
|
19
|
+
export declare const getResponsiveValue: <T extends unknown>(responsive: Responsive<T>, i: number) => T;
|
|
20
20
|
export declare const flexGridItemStyle: ({ $flexGridColumnCount, $flexGridColumnGap, $flexGridRowGap, $flexGridItemIndex, $flexGridItemCount, $theme, }: {
|
|
21
21
|
$flexGridColumnCount?: Responsive<number>;
|
|
22
22
|
$flexGridColumnGap?: Responsive<Scale>;
|
|
@@ -5,8 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.flexGridItemStyle = exports.flexGridItemMediaQueryStyle = exports.default = void 0;
|
|
9
|
-
exports.getResponsiveValue = getResponsiveValue;
|
|
8
|
+
exports.getResponsiveValue = exports.flexGridItemStyle = exports.flexGridItemMediaQueryStyle = exports.default = void 0;
|
|
10
9
|
|
|
11
10
|
var React = _interopRequireWildcard(require("react"));
|
|
12
11
|
|
|
@@ -67,12 +66,14 @@ var flexGridItemMediaQueryStyle = function flexGridItemMediaQueryStyle(_ref) {
|
|
|
67
66
|
// Subtract .5px to avoid rounding issues on IE/Edge
|
|
68
67
|
// See https://github.com/uber/baseweb/pull/1748
|
|
69
68
|
width: "calc(".concat(widthCalc, " - .5px)")
|
|
70
|
-
}, _defineProperty(_objectSpread2, marginDirection, colGapQuantity && (
|
|
69
|
+
}, _defineProperty(_objectSpread2, marginDirection, colGapQuantity && ( //flowlint-line sketchy-number-and:off
|
|
70
|
+
(itemIndex + 1) % colCount !== 0 ? colGap : 0)), _defineProperty(_objectSpread2, "marginBottom", rowGapQuantity && ( //flowlint-line sketchy-number-and:off
|
|
71
|
+
~~(itemIndex / colCount) !== ~~((itemCount - 1) / colCount) ? rowGap : 0)), _objectSpread2), itemIndex === itemCount - 1 && (itemIndex + 1) % colCount !== 0 ? _defineProperty({}, marginDirection, "calc(".concat(colCount - itemIndex % colCount - 1, " * (").concat(colGap, " + ").concat(widthCalc, "))")) : {}));
|
|
71
72
|
};
|
|
72
73
|
|
|
73
74
|
exports.flexGridItemMediaQueryStyle = flexGridItemMediaQueryStyle;
|
|
74
75
|
|
|
75
|
-
function getResponsiveValue(responsive, i) {
|
|
76
|
+
var getResponsiveValue = function getResponsiveValue(responsive, i) {
|
|
76
77
|
if (!responsive) {
|
|
77
78
|
return null;
|
|
78
79
|
}
|
|
@@ -82,7 +83,9 @@ function getResponsiveValue(responsive, i) {
|
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
return responsive[i] || responsive[responsive.length - 1];
|
|
85
|
-
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
exports.getResponsiveValue = getResponsiveValue;
|
|
86
89
|
|
|
87
90
|
var flexGridItemStyle = function flexGridItemStyle(_ref3) {
|
|
88
91
|
var $flexGridColumnCount = _ref3.$flexGridColumnCount,
|
|
@@ -161,7 +164,6 @@ var FlexGridItem = function FlexGridItem(_ref4) {
|
|
|
161
164
|
var blockOverrides = overrides ? (0, _overrides.mergeOverrides)(flexGridItemOverrides, overrides) : flexGridItemOverrides;
|
|
162
165
|
return /*#__PURE__*/React.createElement(_block.Block // coerced to any because of how react components are typed.
|
|
163
166
|
// cannot guarantee an html element
|
|
164
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
165
167
|
, _extends({
|
|
166
168
|
ref: forwardedRef,
|
|
167
169
|
as: as,
|
package/flex-grid/flex-grid.js
CHANGED
|
@@ -90,13 +90,9 @@ var FlexGrid = function FlexGrid(_ref2) {
|
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
var FlexGridComponent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
93
|
-
return (
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
React.createElement(FlexGrid, _extends({}, props, {
|
|
97
|
-
forwardedRef: ref
|
|
98
|
-
}))
|
|
99
|
-
);
|
|
93
|
+
return /*#__PURE__*/React.createElement(FlexGrid, _extends({}, props, {
|
|
94
|
+
forwardedRef: ref
|
|
95
|
+
}));
|
|
100
96
|
});
|
|
101
97
|
FlexGridComponent.displayName = 'FlexGrid';
|
|
102
98
|
var _default = FlexGridComponent;
|
|
@@ -30,7 +30,6 @@ var Label = (0, _styles.styled)('label', function (props) {
|
|
|
30
30
|
});
|
|
31
31
|
exports.Label = Label;
|
|
32
32
|
Label.displayName = "Label";
|
|
33
|
-
Label.displayName = 'Label';
|
|
34
33
|
var LabelContainer = (0, _styles.styled)('span', function (_ref) {
|
|
35
34
|
var sizing = _ref.$theme.sizing;
|
|
36
35
|
return {
|
|
@@ -44,7 +43,6 @@ var LabelContainer = (0, _styles.styled)('span', function (_ref) {
|
|
|
44
43
|
});
|
|
45
44
|
exports.LabelContainer = LabelContainer;
|
|
46
45
|
LabelContainer.displayName = "LabelContainer";
|
|
47
|
-
LabelContainer.displayName = 'LabelContainer';
|
|
48
46
|
var LabelEndEnhancer = (0, _styles.styled)('span', function (_ref2) {
|
|
49
47
|
var $disabled = _ref2.$disabled,
|
|
50
48
|
$counterError = _ref2.$counterError,
|
|
@@ -59,7 +57,6 @@ var LabelEndEnhancer = (0, _styles.styled)('span', function (_ref2) {
|
|
|
59
57
|
});
|
|
60
58
|
exports.LabelEndEnhancer = LabelEndEnhancer;
|
|
61
59
|
LabelEndEnhancer.displayName = "LabelEndEnhancer";
|
|
62
|
-
LabelEndEnhancer.displayName = 'LabelEndEnhancer';
|
|
63
60
|
var Caption = (0, _styles.styled)('div', function (props) {
|
|
64
61
|
var $error = props.$error,
|
|
65
62
|
$positive = props.$positive,
|
|
@@ -89,7 +86,6 @@ var Caption = (0, _styles.styled)('div', function (props) {
|
|
|
89
86
|
});
|
|
90
87
|
exports.Caption = Caption;
|
|
91
88
|
Caption.displayName = "Caption";
|
|
92
|
-
Caption.displayName = 'Caption';
|
|
93
89
|
var ControlContainer = (0, _styles.styled)('div', function (props) {
|
|
94
90
|
var sizing = props.$theme.sizing;
|
|
95
91
|
return {
|
|
@@ -98,5 +94,4 @@ var ControlContainer = (0, _styles.styled)('div', function (props) {
|
|
|
98
94
|
};
|
|
99
95
|
});
|
|
100
96
|
exports.ControlContainer = ControlContainer;
|
|
101
|
-
ControlContainer.displayName = "ControlContainer";
|
|
102
|
-
ControlContainer.displayName = 'ControlContainer';
|
|
97
|
+
ControlContainer.displayName = "ControlContainer";
|
|
@@ -32,7 +32,6 @@ var Root = (0, _styles.styled)('nav', function (props) {
|
|
|
32
32
|
});
|
|
33
33
|
exports.Root = Root;
|
|
34
34
|
Root.displayName = "Root";
|
|
35
|
-
Root.displayName = 'Root';
|
|
36
35
|
var NavigationItem = (0, _styles.styled)('li', function (props) {
|
|
37
36
|
var $theme = props.$theme;
|
|
38
37
|
var scale800 = $theme.sizing.scale800;
|
|
@@ -43,7 +42,6 @@ var NavigationItem = (0, _styles.styled)('li', function (props) {
|
|
|
43
42
|
});
|
|
44
43
|
exports.NavigationItem = NavigationItem;
|
|
45
44
|
NavigationItem.displayName = "NavigationItem";
|
|
46
|
-
NavigationItem.displayName = 'NavigationItem';
|
|
47
45
|
var NavigationList = (0, _styles.styled)('ul', function (props) {
|
|
48
46
|
var $align = props.$align,
|
|
49
47
|
$theme = props.$theme;
|
|
@@ -72,5 +70,4 @@ var NavigationList = (0, _styles.styled)('ul', function (props) {
|
|
|
72
70
|
};
|
|
73
71
|
});
|
|
74
72
|
exports.NavigationList = NavigationList;
|
|
75
|
-
NavigationList.displayName = "NavigationList";
|
|
76
|
-
NavigationList.displayName = 'NavigationList';
|
|
73
|
+
NavigationList.displayName = "NavigationList";
|
|
@@ -202,10 +202,8 @@ var StyledBody = (0, _styles.styled)('div', function (props) {
|
|
|
202
202
|
});
|
|
203
203
|
exports.StyledBody = StyledBody;
|
|
204
204
|
StyledBody.displayName = "StyledBody";
|
|
205
|
-
StyledBody.displayName = 'StyledBody';
|
|
206
205
|
var StyledArrow = (0, _styles.styled)('div', function (props) {
|
|
207
206
|
return _objectSpread({}, clampArrowStyle(props.$arrowOffset, props.$placement, props.$theme.colors.backgroundPrimary));
|
|
208
207
|
});
|
|
209
208
|
exports.StyledArrow = StyledArrow;
|
|
210
|
-
StyledArrow.displayName = "StyledArrow";
|
|
211
|
-
StyledArrow.displayName = 'StyledArrow';
|
|
209
|
+
StyledArrow.displayName = "StyledArrow";
|
package/helpers/overrides.js
CHANGED
|
@@ -37,7 +37,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
37
37
|
/**
|
|
38
38
|
* Given an override argument, returns the component implementation override if it exists
|
|
39
39
|
*/
|
|
40
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
41
40
|
function getOverride(_override) {
|
|
42
41
|
if ((0, _reactIs.isValidElementType)(_override)) {
|
|
43
42
|
return _override;
|
|
@@ -47,7 +46,6 @@ function getOverride(_override) {
|
|
|
47
46
|
if (_override && _typeof(_override) === 'object') {
|
|
48
47
|
// Remove this 'any' once this flow issue is fixed:
|
|
49
48
|
// https://github.com/facebook/flow/issues/6666
|
|
50
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
51
49
|
return _override.component;
|
|
52
50
|
} // null/undefined
|
|
53
51
|
|
|
@@ -87,13 +85,11 @@ function getOverrideProps(_override) {
|
|
|
87
85
|
function toObjectOverride(_override) {
|
|
88
86
|
if ((0, _reactIs.isValidElementType)(_override)) {
|
|
89
87
|
return {
|
|
90
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
91
88
|
component: _override
|
|
92
89
|
};
|
|
93
90
|
} // Flow can't figure out that typeof 'function' above will
|
|
94
91
|
// catch React.StatelessFunctionalComponent
|
|
95
92
|
// (probably related to https://github.com/facebook/flow/issues/6666)
|
|
96
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
97
93
|
|
|
98
94
|
|
|
99
95
|
return _override || {};
|
|
@@ -101,12 +97,9 @@ function toObjectOverride(_override) {
|
|
|
101
97
|
/**
|
|
102
98
|
* Get a convenient override array that will always have [component, props]
|
|
103
99
|
*/
|
|
104
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
105
100
|
|
|
106
101
|
|
|
107
|
-
function getOverrides(
|
|
108
|
-
_override, // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
109
|
-
defaultComponent) {
|
|
102
|
+
function getOverrides(_override, defaultComponent) {
|
|
110
103
|
var Component = getOverride(_override) || defaultComponent;
|
|
111
104
|
|
|
112
105
|
if (_override && _typeof(_override) === 'object' && typeof _override.props === 'function') {
|
|
@@ -133,6 +126,8 @@ defaultComponent) {
|
|
|
133
126
|
var props = getOverrideProps(_override);
|
|
134
127
|
return [Component, props];
|
|
135
128
|
}
|
|
129
|
+
/* flowlint unclear-type:error */
|
|
130
|
+
|
|
136
131
|
/**
|
|
137
132
|
* Merges two overrides objects – this is useful if you want to inject your own
|
|
138
133
|
* overrides into a child component, but also accept further overrides from
|
|
@@ -5,7 +5,7 @@ This source code is licensed under the MIT license found in the
|
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
// @flow
|
|
8
|
-
|
|
8
|
+
/* eslint-disable cup/no-undef */
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { isValidElementType } from 'react-is';
|
|
11
11
|
import deepMerge from '../utils/deep-merge.js';
|
package/icon/build-icons.js
CHANGED
package/icon/build-icons.js.flow
CHANGED
|
@@ -7,6 +7,7 @@ This source code is licensed under the MIT license found in the
|
|
|
7
7
|
LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
/* eslint-disable flowtype/require-valid-file-annotation */
|
|
10
11
|
/* eslint-env node*/
|
|
11
12
|
const fs = require('fs');
|
|
12
13
|
const path = require('path');
|
|
@@ -11,7 +11,6 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
11
11
|
This source code is licensed under the MIT license found in the
|
|
12
12
|
LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
14
|
function omitDollarPrefixedKeys(source) {
|
|
16
15
|
var result = {};
|
|
17
16
|
|
package/input/masked-input.js
CHANGED
|
@@ -82,11 +82,8 @@ function MaskedInput(_ref2) {
|
|
|
82
82
|
restOverrides = _objectWithoutProperties(_ref2$overrides, _excluded2),
|
|
83
83
|
restProps = _objectWithoutProperties(_ref2, _excluded3);
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
var
|
|
87
|
-
|
|
88
|
-
var propsOverride = {}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
89
|
-
|
|
85
|
+
var componentOverride = MaskOverride;
|
|
86
|
+
var propsOverride = {};
|
|
90
87
|
var styleOverride = {};
|
|
91
88
|
|
|
92
89
|
if (typeof inputOverride === 'function') {
|
|
@@ -93,7 +93,6 @@ var StatefulContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
93
93
|
_createClass(StatefulContainer, [{
|
|
94
94
|
key: "render",
|
|
95
95
|
value: function render() {
|
|
96
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
97
96
|
var _this$props = this.props,
|
|
98
97
|
children = _this$props.children,
|
|
99
98
|
initialState = _this$props.initialState,
|
|
@@ -42,7 +42,6 @@ var StyledMaskToggleButton = (0, _styles.styled)('button', function (_ref) {
|
|
|
42
42
|
});
|
|
43
43
|
exports.StyledMaskToggleButton = StyledMaskToggleButton;
|
|
44
44
|
StyledMaskToggleButton.displayName = "StyledMaskToggleButton";
|
|
45
|
-
StyledMaskToggleButton.displayName = 'StyledMaskToggleButton';
|
|
46
45
|
var StyledClearIconContainer = (0, _styles.styled)('div', function (_ref2) {
|
|
47
46
|
var _SIZE$mini$SIZE$compa2;
|
|
48
47
|
|
|
@@ -62,7 +61,6 @@ var StyledClearIconContainer = (0, _styles.styled)('div', function (_ref2) {
|
|
|
62
61
|
});
|
|
63
62
|
exports.StyledClearIconContainer = StyledClearIconContainer;
|
|
64
63
|
StyledClearIconContainer.displayName = "StyledClearIconContainer";
|
|
65
|
-
StyledClearIconContainer.displayName = 'StyledClearIconContainer';
|
|
66
64
|
var StyledClearIcon = (0, _styles.styled)(_deleteAlt.default, function (_ref3) {
|
|
67
65
|
var $theme = _ref3.$theme,
|
|
68
66
|
$isFocusVisible = _ref3.$isFocusVisible;
|
|
@@ -73,7 +71,6 @@ var StyledClearIcon = (0, _styles.styled)(_deleteAlt.default, function (_ref3) {
|
|
|
73
71
|
});
|
|
74
72
|
exports.StyledClearIcon = StyledClearIcon;
|
|
75
73
|
StyledClearIcon.displayName = "StyledClearIcon";
|
|
76
|
-
StyledClearIcon.displayName = 'StyledClearIcon';
|
|
77
74
|
|
|
78
75
|
function getInputPadding(size, sizing) {
|
|
79
76
|
var _SIZE$mini$SIZE$compa3;
|
|
@@ -213,10 +210,10 @@ var getRootStyles = function getRootStyles(props) {
|
|
|
213
210
|
};
|
|
214
211
|
|
|
215
212
|
exports.getRootStyles = getRootStyles;
|
|
216
|
-
var Root = (0, _styles.styled)('div', getRootStyles);
|
|
213
|
+
var Root = (0, _styles.styled)('div', getRootStyles); // InputEnhancer
|
|
214
|
+
|
|
217
215
|
exports.Root = Root;
|
|
218
216
|
Root.displayName = "Root";
|
|
219
|
-
Root.displayName = 'Root'; // InputEnhancer
|
|
220
217
|
|
|
221
218
|
function getInputEnhancerPadding($size, sizing) {
|
|
222
219
|
var _SIZE$mini$SIZE$compa5;
|
|
@@ -290,10 +287,10 @@ var InputEnhancer = (0, _styles.styled)('div', function (props) {
|
|
|
290
287
|
transitionDuration: animation.timing200,
|
|
291
288
|
transitionTimingFunction: animation.easeOutCurve
|
|
292
289
|
}, getFont($size, typography)), getInputEnhancerPadding($size, sizing)), getInputEnhancerColors($disabled, $isFocused, $error, $positive, colors));
|
|
293
|
-
});
|
|
290
|
+
}); // InputContainer
|
|
291
|
+
|
|
294
292
|
exports.InputEnhancer = InputEnhancer;
|
|
295
293
|
InputEnhancer.displayName = "InputEnhancer";
|
|
296
|
-
InputEnhancer.displayName = 'InputEnhancer'; // InputContainer
|
|
297
294
|
|
|
298
295
|
function getInputContainerColors($disabled, $isFocused, $error, $positive, colors) {
|
|
299
296
|
if ($disabled) {
|
|
@@ -353,7 +350,6 @@ exports.getInputContainerStyles = getInputContainerStyles;
|
|
|
353
350
|
var InputContainer = (0, _styles.styled)('div', getInputContainerStyles);
|
|
354
351
|
exports.InputContainer = InputContainer;
|
|
355
352
|
InputContainer.displayName = "InputContainer";
|
|
356
|
-
InputContainer.displayName = 'InputContainer';
|
|
357
353
|
|
|
358
354
|
function getInputColors($disabled, $isFocused, $error, colors) {
|
|
359
355
|
if ($disabled) {
|
|
@@ -413,5 +409,4 @@ var getInputStyles = function getInputStyles(props) {
|
|
|
413
409
|
exports.getInputStyles = getInputStyles;
|
|
414
410
|
var Input = (0, _styles.styled)('input', getInputStyles);
|
|
415
411
|
exports.Input = Input;
|
|
416
|
-
Input.displayName = "Input";
|
|
417
|
-
Input.displayName = 'Input';
|
|
412
|
+
Input.displayName = "Input";
|
package/layer/layer.js
CHANGED
|
@@ -83,24 +83,6 @@ var LayerComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
|
|
86
|
-
_defineProperty(_assertThisInitialized(_this), "onKeyDown", function (event) {
|
|
87
|
-
if (_this.props.onKeyDown) {
|
|
88
|
-
_this.props.onKeyDown(event);
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
_defineProperty(_assertThisInitialized(_this), "onKeyUp", function (event) {
|
|
93
|
-
if (_this.props.onKeyUp) {
|
|
94
|
-
_this.props.onKeyUp(event);
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
_defineProperty(_assertThisInitialized(_this), "onKeyPress", function (event) {
|
|
99
|
-
if (_this.props.onKeyPress) {
|
|
100
|
-
_this.props.onKeyPress(event);
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
|
|
104
86
|
_defineProperty(_assertThisInitialized(_this), "onDocumentClick", function (event) {
|
|
105
87
|
if (_this.props.onDocumentClick) {
|
|
106
88
|
_this.props.onDocumentClick(event);
|
|
@@ -114,9 +96,6 @@ var LayerComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
114
96
|
key: "componentDidMount",
|
|
115
97
|
value: function componentDidMount() {
|
|
116
98
|
this.context.addEscapeHandler(this.onEscape);
|
|
117
|
-
this.context.addKeyDownHandler(this.onKeyDown);
|
|
118
|
-
this.context.addKeyUpHandler(this.onKeyUp);
|
|
119
|
-
this.context.addKeyPressHandler(this.onKeyPress);
|
|
120
99
|
|
|
121
100
|
if (!this.props.isHoverLayer) {
|
|
122
101
|
this.context.addDocClickHandler(this.onDocumentClick);
|
|
@@ -175,9 +154,6 @@ var LayerComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
175
154
|
key: "componentWillUnmount",
|
|
176
155
|
value: function componentWillUnmount() {
|
|
177
156
|
this.context.removeEscapeHandler(this.onEscape);
|
|
178
|
-
this.context.removeKeyDownHandler(this.onKeyDown);
|
|
179
|
-
this.context.removeKeyUpHandler(this.onKeyUp);
|
|
180
|
-
this.context.removeKeyPressHandler(this.onKeyPress);
|
|
181
157
|
this.context.removeDocClickHandler(this.onDocumentClick);
|
|
182
158
|
|
|
183
159
|
if (this.props.onUnmount) {
|
package/layer/layer.js.flow
CHANGED
|
@@ -27,10 +27,6 @@ class LayerComponent extends React.Component<LayerComponentPropsT, LayerStateT>
|
|
|
27
27
|
|
|
28
28
|
componentDidMount() {
|
|
29
29
|
this.context.addEscapeHandler(this.onEscape);
|
|
30
|
-
this.context.addKeyDownHandler(this.onKeyDown);
|
|
31
|
-
this.context.addKeyUpHandler(this.onKeyUp);
|
|
32
|
-
this.context.addKeyPressHandler(this.onKeyPress);
|
|
33
|
-
|
|
34
30
|
if (!this.props.isHoverLayer) {
|
|
35
31
|
this.context.addDocClickHandler(this.onDocumentClick);
|
|
36
32
|
}
|
|
@@ -78,9 +74,6 @@ class LayerComponent extends React.Component<LayerComponentPropsT, LayerStateT>
|
|
|
78
74
|
|
|
79
75
|
componentWillUnmount() {
|
|
80
76
|
this.context.removeEscapeHandler(this.onEscape);
|
|
81
|
-
this.context.removeKeyDownHandler(this.onKeyDown);
|
|
82
|
-
this.context.removeKeyUpHandler(this.onKeyUp);
|
|
83
|
-
this.context.removeKeyPressHandler(this.onKeyPress);
|
|
84
77
|
this.context.removeDocClickHandler(this.onDocumentClick);
|
|
85
78
|
|
|
86
79
|
if (this.props.onUnmount) {
|
|
@@ -102,24 +95,6 @@ class LayerComponent extends React.Component<LayerComponentPropsT, LayerStateT>
|
|
|
102
95
|
}
|
|
103
96
|
};
|
|
104
97
|
|
|
105
|
-
onKeyDown = (event: KeyboardEvent) => {
|
|
106
|
-
if (this.props.onKeyDown) {
|
|
107
|
-
this.props.onKeyDown(event);
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
onKeyUp = (event: KeyboardEvent) => {
|
|
112
|
-
if (this.props.onKeyUp) {
|
|
113
|
-
this.props.onKeyUp(event);
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
onKeyPress = (event: KeyboardEvent) => {
|
|
118
|
-
if (this.props.onKeyPress) {
|
|
119
|
-
this.props.onKeyPress(event);
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
|
|
123
98
|
onDocumentClick = (event: MouseEvent) => {
|
|
124
99
|
if (this.props.onDocumentClick) {
|
|
125
100
|
this.props.onDocumentClick(event);
|
|
@@ -10,17 +10,9 @@ export default class LayersManager extends React.Component<LayersManagerProps, L
|
|
|
10
10
|
componentDidMount(): void;
|
|
11
11
|
componentWillUnmount(): void;
|
|
12
12
|
onDocumentClick: (event: MouseEvent) => void;
|
|
13
|
-
onKeyDown: (event: KeyboardEvent) => void;
|
|
14
13
|
onKeyUp: (event: KeyboardEvent) => void;
|
|
15
|
-
onKeyPress: (event: KeyboardEvent) => void;
|
|
16
14
|
onAddEscapeHandler: (escapeKeyHandler: () => unknown) => void;
|
|
17
15
|
onRemoveEscapeHandler: (escapeKeyHandler: () => unknown) => void;
|
|
18
|
-
onAddKeyDownHandler: (keyDownHandler: () => unknown) => void;
|
|
19
|
-
onRemoveKeyDownHandler: (keyDownHandler: () => unknown) => void;
|
|
20
|
-
onAddKeyUpHandler: (keyUpHandler: () => unknown) => void;
|
|
21
|
-
onRemoveKeyUpHandler: (keyUpHandler: () => unknown) => void;
|
|
22
|
-
onAddKeyPressHandler: (keyPressHandler: () => unknown) => void;
|
|
23
|
-
onRemoveKeyPressHandler: (keyPressHandler: () => unknown) => void;
|
|
24
16
|
onAddDocClickHandler: (docClickHandler: (event: MouseEvent) => unknown) => void;
|
|
25
17
|
onRemoveDocClickHandler: (docClickHandler: (event: MouseEvent) => unknown) => void;
|
|
26
18
|
render(): JSX.Element;
|