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
|
@@ -72,7 +72,6 @@ export const StyledDropdownContainer = styled('div', props => {
|
|
|
72
72
|
};
|
|
73
73
|
});
|
|
74
74
|
StyledDropdownContainer.displayName = "StyledDropdownContainer";
|
|
75
|
-
StyledDropdownContainer.displayName = 'StyledDropdownContainer';
|
|
76
75
|
export const StyledDropdown = StyledList;
|
|
77
76
|
export const StyledDropdownListItem = StyledListItem;
|
|
78
77
|
export const StyledOptionContent = styled('div', props => {
|
|
@@ -89,7 +88,6 @@ export const StyledOptionContent = styled('div', props => {
|
|
|
89
88
|
};
|
|
90
89
|
});
|
|
91
90
|
StyledOptionContent.displayName = "StyledOptionContent";
|
|
92
|
-
StyledOptionContent.displayName = 'StyledOptionContent';
|
|
93
91
|
export const StyledRoot = styled('div', props => {
|
|
94
92
|
const {
|
|
95
93
|
$theme: {
|
|
@@ -104,7 +102,6 @@ export const StyledRoot = styled('div', props => {
|
|
|
104
102
|
};
|
|
105
103
|
});
|
|
106
104
|
StyledRoot.displayName = "StyledRoot";
|
|
107
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
108
105
|
|
|
109
106
|
function getControlContainerColors($disabled, $isFocused, $isPseudoFocused, $positive, $error, colors) {
|
|
110
107
|
if ($disabled) {
|
|
@@ -202,7 +199,6 @@ export const StyledControlContainer = styled('div', props => {
|
|
|
202
199
|
};
|
|
203
200
|
});
|
|
204
201
|
StyledControlContainer.displayName = "StyledControlContainer";
|
|
205
|
-
StyledControlContainer.displayName = 'StyledControlContainer';
|
|
206
202
|
export const StyledValueContainer = styled('div', props => {
|
|
207
203
|
const padding = getControlPadding(props);
|
|
208
204
|
return {
|
|
@@ -219,7 +215,6 @@ export const StyledValueContainer = styled('div', props => {
|
|
|
219
215
|
};
|
|
220
216
|
});
|
|
221
217
|
StyledValueContainer.displayName = "StyledValueContainer";
|
|
222
|
-
StyledValueContainer.displayName = 'StyledValueContainer';
|
|
223
218
|
export const StyledPlaceholder = styled('div', props => {
|
|
224
219
|
const {
|
|
225
220
|
$disabled,
|
|
@@ -236,7 +231,6 @@ export const StyledPlaceholder = styled('div', props => {
|
|
|
236
231
|
};
|
|
237
232
|
});
|
|
238
233
|
StyledPlaceholder.displayName = "StyledPlaceholder";
|
|
239
|
-
StyledPlaceholder.displayName = 'StyledPlaceholder';
|
|
240
234
|
export const StyledSingleValue = styled('div', props => {
|
|
241
235
|
const {
|
|
242
236
|
$searchable,
|
|
@@ -258,7 +252,6 @@ export const StyledSingleValue = styled('div', props => {
|
|
|
258
252
|
};
|
|
259
253
|
});
|
|
260
254
|
StyledSingleValue.displayName = "StyledSingleValue";
|
|
261
|
-
StyledSingleValue.displayName = 'StyledSingleValue';
|
|
262
255
|
export const StyledInputContainer = styled('div', props => {
|
|
263
256
|
const {
|
|
264
257
|
$size,
|
|
@@ -295,7 +288,6 @@ export const StyledInputContainer = styled('div', props => {
|
|
|
295
288
|
};
|
|
296
289
|
});
|
|
297
290
|
StyledInputContainer.displayName = "StyledInputContainer";
|
|
298
|
-
StyledInputContainer.displayName = 'StyledInputContainer';
|
|
299
291
|
export const StyledInput = styled('input', props => {
|
|
300
292
|
const {
|
|
301
293
|
$theme: {
|
|
@@ -330,7 +322,6 @@ export const StyledInput = styled('input', props => {
|
|
|
330
322
|
};
|
|
331
323
|
});
|
|
332
324
|
StyledInput.displayName = "StyledInput";
|
|
333
|
-
StyledInput.displayName = 'StyledInput';
|
|
334
325
|
export const StyledInputSizer = styled('div', ({
|
|
335
326
|
$size,
|
|
336
327
|
$theme,
|
|
@@ -350,7 +341,6 @@ export const StyledInputSizer = styled('div', ({
|
|
|
350
341
|
};
|
|
351
342
|
});
|
|
352
343
|
StyledInputSizer.displayName = "StyledInputSizer";
|
|
353
|
-
StyledInputSizer.displayName = 'StyledInputSizer';
|
|
354
344
|
export const StyledIconsContainer = styled('div', ({
|
|
355
345
|
$theme,
|
|
356
346
|
$theme: {
|
|
@@ -369,7 +359,6 @@ export const StyledIconsContainer = styled('div', ({
|
|
|
369
359
|
};
|
|
370
360
|
});
|
|
371
361
|
StyledIconsContainer.displayName = "StyledIconsContainer";
|
|
372
|
-
StyledIconsContainer.displayName = 'StyledIconsContainer';
|
|
373
362
|
|
|
374
363
|
function getSvgStyles({
|
|
375
364
|
$theme
|
|
@@ -414,7 +403,6 @@ export const StyledSelectArrow = styled('svg', props => {
|
|
|
414
403
|
};
|
|
415
404
|
});
|
|
416
405
|
StyledSelectArrow.displayName = "StyledSelectArrow";
|
|
417
|
-
StyledSelectArrow.displayName = 'StyledSelectArrow';
|
|
418
406
|
export const StyledClearIcon = styled('svg', props => {
|
|
419
407
|
const {
|
|
420
408
|
$theme,
|
|
@@ -445,7 +433,6 @@ export const StyledClearIcon = styled('svg', props => {
|
|
|
445
433
|
};
|
|
446
434
|
});
|
|
447
435
|
StyledClearIcon.displayName = "StyledClearIcon";
|
|
448
|
-
StyledClearIcon.displayName = 'StyledClearIcon';
|
|
449
436
|
export const StyledLoadingIndicator = withStyle(Spinner, ({
|
|
450
437
|
$theme
|
|
451
438
|
}) => {
|
|
@@ -462,7 +449,6 @@ export const StyledLoadingIndicator = withStyle(Spinner, ({
|
|
|
462
449
|
};
|
|
463
450
|
});
|
|
464
451
|
StyledLoadingIndicator.displayName = "StyledLoadingIndicator";
|
|
465
|
-
StyledLoadingIndicator.displayName = 'StyledLoadingIndicator';
|
|
466
452
|
export const StyledSearchIconContainer = styled('div', props => {
|
|
467
453
|
const {
|
|
468
454
|
$disabled,
|
|
@@ -484,5 +470,4 @@ export const StyledSearchIconContainer = styled('div', props => {
|
|
|
484
470
|
height: '100%'
|
|
485
471
|
};
|
|
486
472
|
});
|
|
487
|
-
StyledSearchIconContainer.displayName = "StyledSearchIconContainer";
|
|
488
|
-
StyledSearchIconContainer.displayName = 'StyledSearchIconContainer';
|
|
473
|
+
StyledSearchIconContainer.displayName = "StyledSearchIconContainer";
|
package/es/select/value.js
CHANGED
|
@@ -8,13 +8,14 @@ LICENSE file in the root directory of this source tree.
|
|
|
8
8
|
*/
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { StyledSingleValue } from './styled-components';
|
|
11
|
-
import { getOverrides } from '../helpers/overrides';
|
|
12
|
-
|
|
11
|
+
import { getOverrides } from '../helpers/overrides';
|
|
13
12
|
export default function Value(props) {
|
|
14
13
|
const {
|
|
15
14
|
overrides = {},
|
|
16
15
|
...restProps
|
|
17
16
|
} = props;
|
|
18
17
|
const [SingleValue, singleValueProps] = getOverrides(overrides.SingleValue, StyledSingleValue);
|
|
19
|
-
return /*#__PURE__*/React.createElement(SingleValue, _extends({
|
|
18
|
+
return /*#__PURE__*/React.createElement(SingleValue, _extends({
|
|
19
|
+
"aria-selected": "true"
|
|
20
|
+
}, restProps, singleValueProps), props.children);
|
|
20
21
|
}
|
|
@@ -10,5 +10,4 @@ export { default as NavItem } from './nav-item'; // Styled elements
|
|
|
10
10
|
export * from './styled-components'; // Types
|
|
11
11
|
|
|
12
12
|
export * from './types';
|
|
13
|
-
/** @deprecated type is already removed*/
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13
|
+
/** @deprecated type is already removed*/
|
|
@@ -90,7 +90,7 @@ export default class SideNav extends React.Component {
|
|
|
90
90
|
overrides: overrides
|
|
91
91
|
}, sharedProps)), item.subNav ? /*#__PURE__*/React.createElement(SubNavContainer, _extends({
|
|
92
92
|
role: "list"
|
|
93
|
-
}, sharedProps, subNavContainerProps), item.subNav.map(subitem => {
|
|
93
|
+
}, sharedProps, subNavContainerProps), item.subNav.map((subitem, idx) => {
|
|
94
94
|
return renderNavItem(subitem, level + 1, index);
|
|
95
95
|
})) : null));
|
|
96
96
|
};
|
|
@@ -27,10 +27,8 @@ export const StyledRoot = styled('nav', props => {
|
|
|
27
27
|
};
|
|
28
28
|
});
|
|
29
29
|
StyledRoot.displayName = "StyledRoot";
|
|
30
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
31
30
|
export const StyledNavItemContainer = styled('li', {});
|
|
32
31
|
StyledNavItemContainer.displayName = "StyledNavItemContainer";
|
|
33
|
-
StyledNavItemContainer.displayName = 'StyledNavItemContainer';
|
|
34
32
|
export const StyledNavLink = styled('a', ({
|
|
35
33
|
$theme,
|
|
36
34
|
$isFocusVisible
|
|
@@ -50,7 +48,6 @@ export const StyledNavLink = styled('a', ({
|
|
|
50
48
|
}
|
|
51
49
|
}));
|
|
52
50
|
StyledNavLink.displayName = "StyledNavLink";
|
|
53
|
-
StyledNavLink.displayName = 'StyledNavLink';
|
|
54
51
|
export const StyledNavItemElement = styled('div', props => {
|
|
55
52
|
const {
|
|
56
53
|
$active,
|
|
@@ -101,9 +98,7 @@ export const StyledNavItemElement = styled('div', props => {
|
|
|
101
98
|
};
|
|
102
99
|
});
|
|
103
100
|
StyledNavItemElement.displayName = "StyledNavItemElement";
|
|
104
|
-
|
|
105
|
-
export const StyledNavItem = withWrapper(StyledNavItemElement, Styled => // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
106
|
-
function StyledNav({
|
|
101
|
+
export const StyledNavItem = withWrapper(StyledNavItemElement, Styled => function StyledNav({
|
|
107
102
|
item,
|
|
108
103
|
...restProps
|
|
109
104
|
}) {
|
|
@@ -120,5 +115,4 @@ export const StyledSubNavContainer = styled('ul', {
|
|
|
120
115
|
paddingLeft: 0,
|
|
121
116
|
paddingRight: 0
|
|
122
117
|
});
|
|
123
|
-
StyledSubNavContainer.displayName = "StyledSubNavContainer";
|
|
124
|
-
StyledSubNavContainer.displayName = 'StyledSubNavContainer';
|
|
118
|
+
StyledSubNavContainer.displayName = "StyledSubNavContainer";
|
|
@@ -60,7 +60,6 @@ export const StyledRoot = styled('div', props => {
|
|
|
60
60
|
};
|
|
61
61
|
});
|
|
62
62
|
StyledRoot.displayName = "StyledRoot";
|
|
63
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
64
63
|
export const StyledRow = styled('div', props => {
|
|
65
64
|
return { ...(props.$animation ? { ...animationStyle,
|
|
66
65
|
backgroundImage: getAnimationColor(props)
|
|
@@ -72,5 +71,4 @@ export const StyledRow = styled('div', props => {
|
|
|
72
71
|
marginBottom: props.$isLastRow ? '0px' : '10px'
|
|
73
72
|
};
|
|
74
73
|
});
|
|
75
|
-
StyledRow.displayName = "StyledRow";
|
|
76
|
-
StyledRow.displayName = 'StyledRow';
|
|
74
|
+
StyledRow.displayName = "StyledRow";
|
package/es/slider/slider.js
CHANGED
|
@@ -45,13 +45,11 @@ function Slider({
|
|
|
45
45
|
const handleFocus = React.useCallback(event => {
|
|
46
46
|
if (focusVisible(event)) {
|
|
47
47
|
setIsFocusVisible(true);
|
|
48
|
-
}
|
|
49
|
-
|
|
48
|
+
}
|
|
50
49
|
|
|
51
50
|
const index = event.target.parentNode.firstChild === event.target ? 0 : 1;
|
|
52
51
|
setFocusedThumbIndex(index);
|
|
53
|
-
}, []);
|
|
54
|
-
|
|
52
|
+
}, []);
|
|
55
53
|
const handleBlur = React.useCallback(event => {
|
|
56
54
|
if (isFocusVisible !== false) {
|
|
57
55
|
setIsFocusVisible(false);
|
|
@@ -48,10 +48,8 @@ class StatefulSliderContainer extends React.Component {
|
|
|
48
48
|
render() {
|
|
49
49
|
const {
|
|
50
50
|
children,
|
|
51
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
52
51
|
initialState,
|
|
53
52
|
// eslint-disable-line no-unused-vars
|
|
54
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
55
53
|
stateReducer,
|
|
56
54
|
// eslint-disable-line no-unused-vars
|
|
57
55
|
...restProps
|
|
@@ -11,7 +11,6 @@ export const Root = styled('div', {
|
|
|
11
11
|
width: '100%'
|
|
12
12
|
});
|
|
13
13
|
Root.displayName = "Root";
|
|
14
|
-
Root.displayName = 'Root';
|
|
15
14
|
Root.displayName = 'StyledRoot';
|
|
16
15
|
export const Track = styled('div', props => {
|
|
17
16
|
const {
|
|
@@ -44,7 +43,6 @@ export const Track = styled('div', props => {
|
|
|
44
43
|
};
|
|
45
44
|
});
|
|
46
45
|
Track.displayName = "Track";
|
|
47
|
-
Track.displayName = 'Track';
|
|
48
46
|
Track.displayName = 'StyledTrack';
|
|
49
47
|
export const InnerTrack = styled('div', props => {
|
|
50
48
|
const {
|
|
@@ -79,7 +77,6 @@ export const InnerTrack = styled('div', props => {
|
|
|
79
77
|
};
|
|
80
78
|
});
|
|
81
79
|
InnerTrack.displayName = "InnerTrack";
|
|
82
|
-
InnerTrack.displayName = 'InnerTrack';
|
|
83
80
|
InnerTrack.displayName = 'StyledInnerTrack';
|
|
84
81
|
export const Mark = styled('div', props => {
|
|
85
82
|
return {
|
|
@@ -90,7 +87,6 @@ export const Mark = styled('div', props => {
|
|
|
90
87
|
};
|
|
91
88
|
});
|
|
92
89
|
Mark.displayName = "Mark";
|
|
93
|
-
Mark.displayName = 'Mark';
|
|
94
90
|
Mark.displayName = 'StyledMark';
|
|
95
91
|
export const Tick = styled('div', props => {
|
|
96
92
|
return { ...props.$theme.typography.font200,
|
|
@@ -98,7 +94,6 @@ export const Tick = styled('div', props => {
|
|
|
98
94
|
};
|
|
99
95
|
});
|
|
100
96
|
Tick.displayName = "Tick";
|
|
101
|
-
Tick.displayName = 'Tick';
|
|
102
97
|
Tick.displayName = 'StyledTick';
|
|
103
98
|
export const TickBar = styled('div', props => {
|
|
104
99
|
const {
|
|
@@ -117,7 +112,6 @@ export const TickBar = styled('div', props => {
|
|
|
117
112
|
};
|
|
118
113
|
});
|
|
119
114
|
TickBar.displayName = "TickBar";
|
|
120
|
-
TickBar.displayName = 'TickBar';
|
|
121
115
|
TickBar.displayName = 'StyledTickBar';
|
|
122
116
|
export const Thumb = styled('div', props => {
|
|
123
117
|
const {
|
|
@@ -151,7 +145,6 @@ export const Thumb = styled('div', props => {
|
|
|
151
145
|
};
|
|
152
146
|
});
|
|
153
147
|
Thumb.displayName = "Thumb";
|
|
154
|
-
Thumb.displayName = 'Thumb';
|
|
155
148
|
Thumb.displayName = 'StyledThumb';
|
|
156
149
|
export const InnerThumb = styled('div', props => {
|
|
157
150
|
const {
|
|
@@ -167,7 +160,6 @@ export const InnerThumb = styled('div', props => {
|
|
|
167
160
|
};
|
|
168
161
|
});
|
|
169
162
|
InnerThumb.displayName = "InnerThumb";
|
|
170
|
-
InnerThumb.displayName = 'InnerThumb';
|
|
171
163
|
InnerThumb.displayName = 'StyledInnerThumb';
|
|
172
164
|
export const ThumbValue = styled('div', props => {
|
|
173
165
|
const {
|
|
@@ -192,5 +184,4 @@ export const ThumbValue = styled('div', props => {
|
|
|
192
184
|
};
|
|
193
185
|
});
|
|
194
186
|
ThumbValue.displayName = "ThumbValue";
|
|
195
|
-
ThumbValue.displayName = 'ThumbValue';
|
|
196
187
|
ThumbValue.displayName = 'StyledThumbValue';
|
|
@@ -12,7 +12,6 @@ import { getOverrides } from '../helpers/overrides';
|
|
|
12
12
|
import { useStyletron } from '../styles';
|
|
13
13
|
import { StyledRoot, StyledContent, StyledStartEnhancerContainer, StyledSpinner, StyledMessage, StyledWrapActionButtonContainer, StyledActionButtonContainer } from './styled-components';
|
|
14
14
|
// todo(flow->ts): types
|
|
15
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
15
|
const ActionButton = /*#__PURE__*/React.forwardRef(({
|
|
17
16
|
onClick,
|
|
18
17
|
message,
|
|
@@ -24,14 +24,12 @@ export const StyledRoot = styled('div', ({
|
|
|
24
24
|
};
|
|
25
25
|
});
|
|
26
26
|
StyledRoot.displayName = "StyledRoot";
|
|
27
|
-
StyledRoot.displayName = 'StyledRoot';
|
|
28
27
|
export const StyledContent = styled('div', {
|
|
29
28
|
alignItems: 'center',
|
|
30
29
|
display: 'inline-flex',
|
|
31
30
|
width: '100%'
|
|
32
31
|
});
|
|
33
32
|
StyledContent.displayName = "StyledContent";
|
|
34
|
-
StyledContent.displayName = 'StyledContent';
|
|
35
33
|
export const StyledStartEnhancerContainer = styled('span', ({
|
|
36
34
|
$theme
|
|
37
35
|
}) => {
|
|
@@ -43,7 +41,6 @@ export const StyledStartEnhancerContainer = styled('span', ({
|
|
|
43
41
|
};
|
|
44
42
|
});
|
|
45
43
|
StyledStartEnhancerContainer.displayName = "StyledStartEnhancerContainer";
|
|
46
|
-
StyledStartEnhancerContainer.displayName = 'StyledStartEnhancerContainer';
|
|
47
44
|
export const StyledSpinner = withStyle(Spinner, ({
|
|
48
45
|
$height,
|
|
49
46
|
$width
|
|
@@ -55,7 +52,6 @@ export const StyledSpinner = withStyle(Spinner, ({
|
|
|
55
52
|
};
|
|
56
53
|
});
|
|
57
54
|
StyledSpinner.displayName = "StyledSpinner";
|
|
58
|
-
StyledSpinner.displayName = 'StyledSpinner';
|
|
59
55
|
export const StyledMessage = styled('p', //$FlowExpectedError[incompatible-shape]
|
|
60
56
|
({
|
|
61
57
|
$theme,
|
|
@@ -75,13 +71,11 @@ export const StyledMessage = styled('p', //$FlowExpectedError[incompatible-shape
|
|
|
75
71
|
};
|
|
76
72
|
});
|
|
77
73
|
StyledMessage.displayName = "StyledMessage";
|
|
78
|
-
StyledMessage.displayName = 'StyledMessage';
|
|
79
74
|
export const StyledWrapActionButtonContainer = styled('div', {
|
|
80
75
|
display: 'flex',
|
|
81
76
|
justifyContent: 'flex-end'
|
|
82
77
|
});
|
|
83
78
|
StyledWrapActionButtonContainer.displayName = "StyledWrapActionButtonContainer";
|
|
84
|
-
StyledWrapActionButtonContainer.displayName = 'StyledWrapActionButtonContainer';
|
|
85
79
|
export const StyledActionButtonContainer = styled('div', ({
|
|
86
80
|
$theme
|
|
87
81
|
}) => {
|
|
@@ -91,7 +85,6 @@ export const StyledActionButtonContainer = styled('div', ({
|
|
|
91
85
|
};
|
|
92
86
|
});
|
|
93
87
|
StyledActionButtonContainer.displayName = "StyledActionButtonContainer";
|
|
94
|
-
StyledActionButtonContainer.displayName = 'StyledActionButtonContainer';
|
|
95
88
|
|
|
96
89
|
function placementRules(placement) {
|
|
97
90
|
switch (placement) {
|
|
@@ -169,5 +162,4 @@ export const StyledPlacementContainer = styled('div', ({
|
|
|
169
162
|
}
|
|
170
163
|
};
|
|
171
164
|
});
|
|
172
|
-
StyledPlacementContainer.displayName = "StyledPlacementContainer";
|
|
173
|
-
StyledPlacementContainer.displayName = 'StyledPlacementContainer';
|
|
165
|
+
StyledPlacementContainer.displayName = "StyledPlacementContainer";
|
|
@@ -8,6 +8,8 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
8
8
|
This source code is licensed under the MIT license found in the
|
|
9
9
|
LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
+
|
|
12
|
+
/* flowlint unclear-type:off */
|
|
11
13
|
import * as React from 'react';
|
|
12
14
|
import { getInitialStyle } from 'styletron-standard';
|
|
13
15
|
import { LightTheme } from '../../themes';
|
|
@@ -17,7 +19,6 @@ const MOCK_THEME = createMockTheme(LightTheme);
|
|
|
17
19
|
const IDENTITY = x => x;
|
|
18
20
|
|
|
19
21
|
export function useStyletron() {
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
22
|
function css(styles) {
|
|
22
23
|
return {
|
|
23
24
|
label: 'useStyletron mock describes the applied css properties',
|
|
@@ -26,8 +27,7 @@ export function useStyletron() {
|
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
return [css, MOCK_THEME];
|
|
29
|
-
}
|
|
30
|
-
|
|
30
|
+
}
|
|
31
31
|
export function styled(ElementName, objOrFn = {}) {
|
|
32
32
|
class MockStyledComponent extends React.Component {
|
|
33
33
|
constructor(...args) {
|
|
@@ -63,7 +63,6 @@ export function styled(ElementName, objOrFn = {}) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
getPassedProps() {
|
|
66
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
67
66
|
const {
|
|
68
67
|
forwardedRef,
|
|
69
68
|
...restProps
|
|
@@ -100,10 +99,8 @@ export function styled(ElementName, objOrFn = {}) {
|
|
|
100
99
|
}, props)));
|
|
101
100
|
}
|
|
102
101
|
export const withStyle = styled;
|
|
103
|
-
export function withWrapper(
|
|
104
|
-
|
|
105
|
-
wrapperFn) {
|
|
106
|
-
// eslint-disable-next-line react/display-name,@typescript-eslint/no-explicit-any
|
|
102
|
+
export function withWrapper(StyledElement, wrapperFn) {
|
|
103
|
+
// eslint-disable-next-line react/display-name
|
|
107
104
|
return /*#__PURE__*/React.forwardRef((props, ref) => wrapperFn(StyledElement)({
|
|
108
105
|
ref: ref,
|
|
109
106
|
...props,
|
package/es/styles/styled.js
CHANGED
|
@@ -20,33 +20,32 @@ const wrapper = StyledComponent => {
|
|
|
20
20
|
}))));
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
+
/* eslint-enable flowtype/generic-spacing */
|
|
24
|
+
|
|
25
|
+
/* flowlint unclear-type:error */
|
|
23
26
|
export function createThemedStyled() {
|
|
24
27
|
return createStyled({
|
|
25
28
|
wrapper,
|
|
26
29
|
getInitialStyle,
|
|
27
|
-
driver
|
|
28
|
-
|
|
30
|
+
driver
|
|
29
31
|
});
|
|
30
32
|
}
|
|
31
33
|
export const styled = createThemedStyled();
|
|
32
34
|
export function createThemedWithStyle() {
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
34
35
|
return styletronWithStyle;
|
|
35
36
|
}
|
|
36
37
|
export const withStyle = createThemedWithStyle();
|
|
37
38
|
export function createThemedUseStyletron() {
|
|
38
39
|
return function () {
|
|
39
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40
40
|
const theme = React.useContext(ThemeContext);
|
|
41
41
|
const [css] = styletronUseStyletron();
|
|
42
42
|
return [css, theme];
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
export const useStyletron = createThemedUseStyletron();
|
|
46
|
-
|
|
45
|
+
export const useStyletron = createThemedUseStyletron();
|
|
47
46
|
export function withWrapper(StyledElement, wrapperFn) {
|
|
48
47
|
return styletronWithWrapper(StyledElement, Styled => {
|
|
49
|
-
// eslint-disable-next-line
|
|
48
|
+
// eslint-disable-next-line react/display-name
|
|
50
49
|
return /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(ThemeContext.Consumer, null, theme => // @ts-ignore
|
|
51
50
|
wrapperFn(Styled)({
|
|
52
51
|
ref: ref,
|
package/es/table/index.js
CHANGED
|
@@ -13,5 +13,4 @@ export { SORT_DIRECTION } from './constants'; // Styled elements
|
|
|
13
13
|
export { StyledTable, StyledFilterButton, StyledFilterContent, StyledFilterHeading, StyledFilterFooter, StyledHead, StyledHeadCell, StyledBody, StyledRow, StyledCell, StyledAction, StyledSortableLabel } from './styled-components'; // Flow
|
|
14
14
|
|
|
15
15
|
export * from './types';
|
|
16
|
-
/** @deprecated use HeadCellOverrides instead. To be removed in future versions.*/
|
|
17
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
16
|
+
/** @deprecated use HeadCellOverrides instead. To be removed in future versions.*/
|
|
@@ -24,7 +24,6 @@ const StyledTableElement = styled('div', ({
|
|
|
24
24
|
};
|
|
25
25
|
});
|
|
26
26
|
StyledTableElement.displayName = "StyledTableElement";
|
|
27
|
-
StyledTableElement.displayName = 'StyledTableElement';
|
|
28
27
|
export const StyledTable = withWrapper(StyledTableElement, StyledComponent => function StyledTable(props) {
|
|
29
28
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
30
29
|
"data-baseweb": "table-custom",
|
|
@@ -44,7 +43,6 @@ const StyledHeadElement = styled('div', ({
|
|
|
44
43
|
};
|
|
45
44
|
});
|
|
46
45
|
StyledHeadElement.displayName = "StyledHeadElement";
|
|
47
|
-
StyledHeadElement.displayName = 'StyledHeadElement';
|
|
48
46
|
export const StyledHead = withWrapper(StyledHeadElement, StyledComponent => function StyledHead(props) {
|
|
49
47
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
50
48
|
role: "row"
|
|
@@ -75,7 +73,6 @@ const StyledHeadCellElement = styled('div', ({
|
|
|
75
73
|
};
|
|
76
74
|
});
|
|
77
75
|
StyledHeadCellElement.displayName = "StyledHeadCellElement";
|
|
78
|
-
StyledHeadCellElement.displayName = 'StyledHeadCellElement';
|
|
79
76
|
export const StyledHeadCell = withWrapper(StyledHeadCellElement, StyledComponent => function StyledHeadCell(props) {
|
|
80
77
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
81
78
|
role: "columnheader"
|
|
@@ -103,7 +100,6 @@ export const StyledSortableLabel = styled('button', ({
|
|
|
103
100
|
};
|
|
104
101
|
});
|
|
105
102
|
StyledSortableLabel.displayName = "StyledSortableLabel";
|
|
106
|
-
StyledSortableLabel.displayName = 'StyledSortableLabel';
|
|
107
103
|
const StyledBodyElement = styled('div', ({
|
|
108
104
|
$width
|
|
109
105
|
}) => {
|
|
@@ -116,7 +112,6 @@ const StyledBodyElement = styled('div', ({
|
|
|
116
112
|
};
|
|
117
113
|
});
|
|
118
114
|
StyledBodyElement.displayName = "StyledBodyElement";
|
|
119
|
-
StyledBodyElement.displayName = 'StyledBodyElement';
|
|
120
115
|
export const StyledBody = withWrapper(StyledBodyElement, StyledComponent => function StyledBody(props) {
|
|
121
116
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
122
117
|
role: "rowgroup"
|
|
@@ -127,7 +122,6 @@ const StyledRowElement = styled('div', {
|
|
|
127
122
|
alignItems: 'center'
|
|
128
123
|
});
|
|
129
124
|
StyledRowElement.displayName = "StyledRowElement";
|
|
130
|
-
StyledRowElement.displayName = 'StyledRowElement';
|
|
131
125
|
export const StyledRow = withWrapper(StyledRowElement, StyledComponent => function StyledRow(props) {
|
|
132
126
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
133
127
|
role: "row"
|
|
@@ -149,7 +143,6 @@ const StyledCellElement = styled('div', ({
|
|
|
149
143
|
};
|
|
150
144
|
});
|
|
151
145
|
StyledCellElement.displayName = "StyledCellElement";
|
|
152
|
-
StyledCellElement.displayName = 'StyledCellElement';
|
|
153
146
|
export const StyledCell = withWrapper(StyledCellElement, StyledComponent => function StyledCell(props) {
|
|
154
147
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
155
148
|
role: "gridcell"
|
|
@@ -194,7 +187,6 @@ export const StyledFilterButton = styled('button', props => {
|
|
|
194
187
|
};
|
|
195
188
|
});
|
|
196
189
|
StyledFilterButton.displayName = "StyledFilterButton";
|
|
197
|
-
StyledFilterButton.displayName = 'StyledFilterButton';
|
|
198
190
|
export const StyledFilterContent = styled('div', ({
|
|
199
191
|
$theme
|
|
200
192
|
}) => ({ ...expandBorderStyles($theme.borders.border300),
|
|
@@ -207,7 +199,6 @@ export const StyledFilterContent = styled('div', ({
|
|
|
207
199
|
overflow: 'auto'
|
|
208
200
|
}));
|
|
209
201
|
StyledFilterContent.displayName = "StyledFilterContent";
|
|
210
|
-
StyledFilterContent.displayName = 'StyledFilterContent';
|
|
211
202
|
export const StyledFilterHeading = styled('div', ({
|
|
212
203
|
$theme
|
|
213
204
|
}) => ({ ...$theme.typography.font250,
|
|
@@ -218,7 +209,6 @@ export const StyledFilterHeading = styled('div', ({
|
|
|
218
209
|
paddingLeft: $theme.sizing.scale600
|
|
219
210
|
}));
|
|
220
211
|
StyledFilterHeading.displayName = "StyledFilterHeading";
|
|
221
|
-
StyledFilterHeading.displayName = 'StyledFilterHeading';
|
|
222
212
|
export const StyledFilterFooter = styled('div', ({
|
|
223
213
|
$theme
|
|
224
214
|
}) => ({
|
|
@@ -232,7 +222,6 @@ export const StyledFilterFooter = styled('div', ({
|
|
|
232
222
|
minWidth: '216px'
|
|
233
223
|
}));
|
|
234
224
|
StyledFilterFooter.displayName = "StyledFilterFooter";
|
|
235
|
-
StyledFilterFooter.displayName = 'StyledFilterFooter';
|
|
236
225
|
export const StyledAction = styled('button', ({
|
|
237
226
|
$theme
|
|
238
227
|
}) => {
|
|
@@ -254,5 +243,4 @@ export const StyledAction = styled('button', ({
|
|
|
254
243
|
}
|
|
255
244
|
};
|
|
256
245
|
});
|
|
257
|
-
StyledAction.displayName = "StyledAction";
|
|
258
|
-
StyledAction.displayName = 'StyledAction';
|
|
246
|
+
StyledAction.displayName = "StyledAction";
|
|
@@ -20,7 +20,6 @@ const StyledTableElement = withStyle(FlexStyledTable, props => {
|
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
StyledTableElement.displayName = "StyledTableElement";
|
|
23
|
-
StyledTableElement.displayName = 'StyledTableElement';
|
|
24
23
|
export const StyledTable = withWrapper(StyledTableElement, StyledComponent => function StyledTable(props) {
|
|
25
24
|
return /*#__PURE__*/React.createElement(StyledComponent, _extends({
|
|
26
25
|
"data-baseweb": "table-grid"
|
|
@@ -45,7 +44,6 @@ export const StyledHeadCell = withStyle(FlexStyledHeadCell, ({
|
|
|
45
44
|
};
|
|
46
45
|
});
|
|
47
46
|
StyledHeadCell.displayName = "StyledHeadCell";
|
|
48
|
-
StyledHeadCell.displayName = 'StyledHeadCell';
|
|
49
47
|
export const StyledBodyCell = withStyle(FlexStyledBodyCell, props => {
|
|
50
48
|
return {
|
|
51
49
|
display: 'block',
|
|
@@ -58,5 +56,4 @@ export const StyledBodyCell = withStyle(FlexStyledBodyCell, props => {
|
|
|
58
56
|
}
|
|
59
57
|
};
|
|
60
58
|
});
|
|
61
|
-
StyledBodyCell.displayName = "StyledBodyCell";
|
|
62
|
-
StyledBodyCell.displayName = 'StyledBodyCell';
|
|
59
|
+
StyledBodyCell.displayName = "StyledBodyCell";
|