baseui 12.0.0 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.js +4 -2
- package/accordion/accordion.js.flow +1 -1
- package/accordion/panel.js +3 -2
- package/accordion/stateful-panel-container.js +1 -0
- package/accordion/styled-components.js +8 -1
- package/accordion/types.d.ts +2 -2
- package/app-nav-bar/app-nav-bar.js +4 -2
- package/app-nav-bar/mobile-menu.js +2 -1
- package/app-nav-bar/styled-components.js +19 -1
- package/app-nav-bar/types.d.ts +2 -2
- package/app-nav-bar/user-menu.js +1 -1
- package/aspect-ratio-box/aspect-ratio-box-body.d.ts +1 -1
- package/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/aspect-ratio-box/types.d.ts +1 -1
- package/avatar/styled-components.js +4 -1
- package/badge/styled-components.js +16 -11
- package/badge/styled-components.js.flow +4 -4
- package/badge/types.d.ts +2 -2
- package/banner/index.d.ts +1 -1
- package/banner/styled-components.js +25 -12
- package/banner/types.d.ts +15 -15
- package/banner/types.js.flow +13 -11
- package/block/block.js +3 -1
- package/block/styled-components.js +2 -1
- package/block/types.d.ts +3 -4
- package/breadcrumbs/styled-components.js +5 -1
- package/button/styled-components.js +7 -0
- package/button/styled-components.js.flow +2 -0
- package/button/types.d.ts +4 -5
- package/button-group/stateful-button-group.js +1 -0
- package/button-group/stateful-container.js +3 -1
- package/button-group/styled-components.js +2 -1
- package/button-group/types.d.ts +4 -5
- package/card/styled-components.js +11 -4
- package/checkbox/styled-components.js +10 -4
- package/checkbox/styled-components.js.flow +1 -1
- package/checkbox/types.d.ts +36 -37
- package/combobox/combobox.js +78 -71
- package/combobox/styled-components.js +5 -1
- package/combobox/types.d.ts +4 -5
- package/data-table/column-anchor.js +3 -0
- package/data-table/column-datetime.js +10 -4
- package/data-table/column-numerical.js +4 -4
- package/data-table/column-string.js +3 -0
- package/data-table/column.js +6 -1
- package/data-table/data-table.js +6 -3
- package/data-table/filter-menu.js +2 -1
- package/data-table/header-cell.js +43 -34
- package/data-table/locale.d.ts +4 -0
- package/data-table/locale.js +3 -1
- package/data-table/locale.js.flow +5 -0
- package/data-table/measure-column-widths.js +5 -4
- package/data-table/stateful-container.js +2 -1
- package/data-table/stateful-data-table.js +4 -4
- package/data-table/types.d.ts +4 -5
- package/datepicker/calendar-header.js +1 -0
- package/datepicker/calendar.js +2 -0
- package/datepicker/datepicker.js +2 -0
- package/datepicker/day.js +2 -1
- package/datepicker/index.d.ts +1 -1
- package/datepicker/index.js +7 -0
- package/datepicker/index.js.flow +1 -1
- package/datepicker/stateful-calendar.js +7 -3
- package/datepicker/stateful-container.js +2 -0
- package/datepicker/stateful-datepicker.js +9 -4
- package/datepicker/styled-components.js +27 -4
- package/datepicker/types.d.ts +2 -2
- package/datepicker/utils/date-helpers.js +2 -1
- package/datepicker/utils/index.js +2 -1
- package/divider/styled-components.js +4 -3
- package/divider/types.d.ts +1 -1
- package/dnd-list/stateful-list-container.js +1 -0
- package/dnd-list/styled-components.js +7 -0
- package/dnd-list/types.d.ts +2 -2
- package/drawer/constants.js +1 -0
- package/drawer/drawer.js +2 -3
- package/drawer/drawer.js.flow +1 -3
- package/drawer/styled-components.js +9 -2
- package/drawer/types.d.ts +2 -2
- package/es/accordion/accordion.js +3 -3
- package/es/accordion/panel.js +3 -2
- package/es/accordion/stateful-panel-container.js +1 -0
- package/es/accordion/styled-components.js +8 -1
- package/es/app-nav-bar/app-nav-bar.js +6 -2
- package/es/app-nav-bar/mobile-menu.js +4 -2
- package/es/app-nav-bar/styled-components.js +19 -1
- package/es/app-nav-bar/user-menu.js +1 -1
- package/es/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/es/avatar/styled-components.js +4 -1
- package/es/badge/styled-components.js +11 -6
- package/es/banner/styled-components.js +16 -3
- package/es/block/block.js +3 -1
- package/es/block/styled-components.js +2 -1
- package/es/breadcrumbs/styled-components.js +5 -1
- package/es/button/button.js +8 -0
- package/es/button/styled-components.js +7 -0
- package/es/button-group/stateful-button-group.js +1 -0
- package/es/button-group/stateful-container.js +3 -1
- package/es/button-group/styled-components.js +2 -1
- package/es/card/index.js +2 -1
- package/es/card/styled-components.js +12 -4
- package/es/checkbox/index.js +1 -0
- package/es/checkbox/stateful-checkbox-container.js +3 -0
- package/es/checkbox/styled-components.js +10 -4
- package/es/combobox/combobox.js +76 -69
- package/es/combobox/styled-components.js +5 -1
- package/es/data-table/column-anchor.js +3 -0
- package/es/data-table/column-datetime.js +12 -5
- package/es/data-table/column-numerical.js +5 -4
- package/es/data-table/column-string.js +3 -0
- package/es/data-table/column.js +4 -1
- package/es/data-table/data-table.js +6 -3
- package/es/data-table/filter-menu.js +2 -1
- package/es/data-table/header-cell.js +41 -34
- package/es/data-table/locale.js +3 -1
- package/es/data-table/measure-column-widths.js +5 -4
- package/es/data-table/stateful-container.js +2 -1
- package/es/data-table/stateful-data-table.js +4 -4
- package/es/datepicker/calendar-header.js +1 -0
- package/es/datepicker/calendar.js +2 -0
- package/es/datepicker/datepicker.js +3 -1
- package/es/datepicker/day.js +2 -1
- package/es/datepicker/index.js +1 -1
- package/es/datepicker/stateful-calendar.js +4 -1
- package/es/datepicker/stateful-container.js +2 -0
- package/es/datepicker/stateful-datepicker.js +5 -1
- package/es/datepicker/styled-components.js +26 -3
- package/es/datepicker/utils/date-helpers.js +2 -1
- package/es/datepicker/utils/index.js +2 -1
- package/es/divider/styled-components.js +3 -2
- package/es/dnd-list/stateful-list-container.js +1 -0
- package/es/dnd-list/styled-components.js +7 -0
- package/es/drawer/constants.js +1 -0
- package/es/drawer/drawer.js +2 -5
- package/es/drawer/styled-components.js +9 -2
- package/es/file-uploader/styled-components.js +6 -1
- package/es/flex-grid/flex-grid-item.js +5 -6
- package/es/flex-grid/flex-grid.js +4 -1
- package/es/form-control/styled-components.js +6 -1
- package/es/header-navigation/styled-components.js +4 -1
- package/es/helper/styled-components.js +3 -1
- package/es/helpers/overrides.js +9 -5
- package/es/icon/build-icons.js +0 -2
- package/es/icon/index.js +1 -1
- package/es/icon/omit-dollar-prefixed-keys.js +1 -0
- package/es/icon/styled-components.js +2 -1
- package/es/input/base-input.js +1 -0
- package/es/input/masked-input.js +9 -2
- package/es/input/stateful-container.js +1 -0
- package/es/input/styled-components.js +18 -7
- package/es/input/utils.js +2 -0
- package/es/layer/layer.js +24 -0
- package/es/layer/layers-manager.js +91 -1
- package/es/layout-grid/styled-components.js +3 -0
- package/es/link/index.js +2 -1
- package/es/link/styled-components.js +2 -1
- package/es/list/list-heading.js +21 -17
- package/es/list/list-item.js +2 -1
- package/es/list/styled-components.js +17 -1
- package/es/locale/es_AR.js +3 -1
- package/es/locale/index.js +2 -1
- package/es/locale/tr_TR.js +3 -1
- package/es/map-marker/constants.js +14 -0
- package/es/map-marker/fixed-marker.js +1 -0
- package/es/map-marker/index.js +2 -1
- package/es/map-marker/location-puck.js +142 -0
- package/es/map-marker/pin-head.js +1 -0
- package/es/map-marker/styled-components.js +86 -2
- package/es/menu/index.js +1 -1
- package/es/menu/menu.js +14 -4
- package/es/menu/option-profile.js +1 -0
- package/es/menu/stateful-container.js +10 -0
- package/es/menu/styled-components.js +32 -2
- package/es/message-card/constants.js +19 -0
- package/es/message-card/index.js +10 -0
- package/es/message-card/message-card.js +114 -0
- package/es/message-card/styled-components.js +108 -0
- package/es/message-card/types.js +1 -0
- package/es/message-card/utils.js +27 -0
- package/es/modal/modal.js +4 -6
- package/es/modal/styled-components.js +8 -1
- package/es/pagination/stateful-container.js +1 -0
- package/es/pagination/stateful-pagination.js +1 -0
- package/es/pagination/styled-components.js +4 -1
- package/es/payment-card/styled-components.js +2 -1
- package/es/phone-input/base-country-picker.js +3 -1
- package/es/phone-input/country-select-dropdown.js +1 -0
- package/es/phone-input/styled-components.js +15 -4
- package/es/pin-code/styled-components.js +4 -1
- package/es/popover/popover.js +9 -12
- package/es/popover/styled-components.js +9 -4
- package/es/progress-bar/progressbar-rounded.js +1 -0
- package/es/progress-bar/styled-components.js +14 -2
- package/es/progress-steps/progress-steps.js +2 -1
- package/es/progress-steps/styled-components.js +20 -12
- package/es/radio/stateful-radiogroup-container.js +3 -0
- package/es/radio/styled-components.js +10 -3
- package/es/rating/emoticon-rating.js +2 -1
- package/es/rating/star-rating.js +2 -1
- package/es/rating/styled-components.js +5 -1
- package/es/select/autosize-input.js +2 -3
- package/es/select/default-props.js +1 -1
- package/es/select/dropdown.js +2 -1
- package/es/select/multi-value.js +2 -1
- package/es/select/select-component.js +10 -10
- package/es/select/single-select.js +2 -2
- package/es/select/stateful-select-container.js +2 -0
- package/es/select/styled-components.js +33 -6
- package/es/select/value.js +3 -4
- package/es/side-navigation/index.js +2 -1
- package/es/side-navigation/nav-item.js +1 -0
- package/es/side-navigation/nav.js +1 -1
- package/es/side-navigation/stateful-container.js +1 -0
- package/es/side-navigation/styled-components.js +8 -2
- package/es/skeleton/styled-components.js +3 -1
- package/es/slider/slider.js +4 -2
- package/es/slider/stateful-slider-container.js +2 -0
- package/es/slider/styled-components.js +9 -0
- package/es/snackbar/snackbar-element.js +1 -0
- package/es/snackbar/styled-components.js +9 -1
- package/es/spinner/styled-components.js +2 -1
- package/es/styles/__mocks__/styled.js +8 -5
- package/es/styles/styled.js +7 -6
- package/es/table/index.js +2 -1
- package/es/table/styled-components.js +13 -1
- package/es/table-grid/styled-components.js +4 -1
- package/es/table-semantic/styled-components.js +20 -3
- package/es/tabs/stateful-tabs.js +1 -0
- package/es/tabs/styled-components.js +5 -1
- package/es/tabs/tabs.js +4 -2
- package/es/tabs-motion/styled-components.js +32 -2
- package/es/tabs-motion/tab.js +1 -0
- package/es/tabs-motion/tabs.js +31 -6
- package/es/tag/styled-components.js +32 -1
- package/es/tag/tag.js +6 -2
- package/es/textarea/styled-components.js +20 -12
- package/es/textarea/textarea.js +4 -2
- package/es/themes/move-theme/typography.js +36 -0
- package/es/themes/shared/borders.js +8 -3
- package/es/themes/shared/typography.js +10 -10
- package/es/timezonepicker/timezone-picker.js +5 -1
- package/es/timezonepicker/tzdata.js +1 -1
- package/es/toast/styled-components.js +5 -1
- package/es/toast/toaster.js +0 -2
- package/es/tokens/colors.js +24 -0
- package/es/tooltip/styled-components.js +4 -1
- package/es/tree-view/index.js +2 -1
- package/es/tree-view/styled-components.js +7 -1
- package/es/tree-view/tree-view.js +3 -1
- package/es/types/globals.d.js +12 -0
- package/es/utils/deep-merge.js +0 -5
- package/es/utils/deprecated-component.js +1 -0
- package/es/utils/focusVisible.js +4 -2
- package/esm/accordion/accordion.js +4 -4
- package/esm/accordion/panel.js +3 -2
- package/esm/accordion/stateful-panel-container.js +1 -0
- package/esm/accordion/styled-components.js +8 -1
- package/esm/app-nav-bar/app-nav-bar.js +4 -2
- package/esm/app-nav-bar/mobile-menu.js +4 -2
- package/esm/app-nav-bar/styled-components.js +19 -1
- package/esm/app-nav-bar/user-menu.js +1 -1
- package/esm/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/esm/avatar/styled-components.js +4 -1
- package/esm/badge/styled-components.js +11 -6
- package/esm/banner/styled-components.js +16 -3
- package/esm/block/block.js +3 -1
- package/esm/block/styled-components.js +2 -1
- package/esm/breadcrumbs/styled-components.js +5 -1
- package/esm/button/styled-components.js +7 -0
- package/esm/button-group/stateful-button-group.js +1 -0
- package/esm/button-group/stateful-container.js +3 -1
- package/esm/button-group/styled-components.js +2 -1
- package/esm/card/index.js +2 -1
- package/esm/card/styled-components.js +12 -4
- package/esm/checkbox/index.js +1 -0
- package/esm/checkbox/styled-components.js +10 -4
- package/esm/combobox/combobox.js +78 -71
- package/esm/combobox/styled-components.js +5 -1
- package/esm/data-table/column-anchor.js +3 -0
- package/esm/data-table/column-datetime.js +12 -5
- package/esm/data-table/column-numerical.js +4 -4
- package/esm/data-table/column-string.js +3 -0
- package/esm/data-table/column.js +5 -1
- package/esm/data-table/data-table.js +6 -3
- package/esm/data-table/filter-menu.js +2 -1
- package/esm/data-table/header-cell.js +42 -34
- package/esm/data-table/locale.js +3 -1
- package/esm/data-table/measure-column-widths.js +5 -4
- package/esm/data-table/stateful-container.js +2 -1
- package/esm/data-table/stateful-data-table.js +4 -4
- package/esm/datepicker/calendar-header.js +1 -0
- package/esm/datepicker/calendar.js +2 -0
- package/esm/datepicker/datepicker.js +3 -1
- package/esm/datepicker/day.js +2 -1
- package/esm/datepicker/index.js +1 -1
- package/esm/datepicker/stateful-calendar.js +7 -3
- package/esm/datepicker/stateful-container.js +2 -0
- package/esm/datepicker/stateful-datepicker.js +9 -4
- package/esm/datepicker/styled-components.js +26 -3
- package/esm/datepicker/utils/date-helpers.js +2 -1
- package/esm/datepicker/utils/index.js +2 -1
- package/esm/divider/styled-components.js +3 -2
- package/esm/dnd-list/stateful-list-container.js +1 -0
- package/esm/dnd-list/styled-components.js +7 -0
- package/esm/drawer/constants.js +1 -0
- package/esm/drawer/drawer.js +2 -5
- package/esm/drawer/styled-components.js +9 -2
- package/esm/file-uploader/styled-components.js +6 -1
- package/esm/flex-grid/flex-grid-item.js +4 -5
- package/esm/flex-grid/flex-grid.js +7 -3
- package/esm/form-control/styled-components.js +6 -1
- package/esm/header-navigation/styled-components.js +4 -1
- package/esm/helper/styled-components.js +3 -1
- package/esm/helpers/overrides.js +9 -5
- package/esm/icon/build-icons.js +0 -2
- package/esm/icon/index.js +1 -1
- package/esm/icon/omit-dollar-prefixed-keys.js +1 -0
- package/esm/icon/styled-components.js +2 -1
- package/esm/input/base-input.js +1 -0
- package/esm/input/masked-input.js +5 -2
- package/esm/input/stateful-container.js +1 -0
- package/esm/input/styled-components.js +18 -7
- package/esm/input/utils.js +2 -0
- package/esm/layer/layer.js +24 -0
- package/esm/layer/layers-manager.js +97 -1
- package/esm/layout-grid/styled-components.js +3 -0
- package/esm/link/index.js +2 -1
- package/esm/link/styled-components.js +2 -1
- package/esm/list/list-heading.js +21 -17
- package/esm/list/list-item.js +2 -1
- package/esm/list/styled-components.js +17 -1
- package/esm/locale/es_AR.js +3 -1
- package/esm/locale/index.js +4 -1
- package/esm/locale/tr_TR.js +3 -1
- package/esm/map-marker/constants.js +12 -2
- package/esm/map-marker/index.js +2 -1
- package/esm/map-marker/location-puck.js +199 -0
- package/esm/map-marker/styled-components.js +82 -2
- package/esm/menu/index.js +1 -1
- package/esm/menu/menu.js +16 -4
- package/esm/menu/option-profile.js +1 -0
- package/esm/menu/stateful-container.js +1 -0
- package/esm/menu/styled-components.js +38 -6
- package/esm/message-card/constants.js +20 -0
- package/esm/message-card/index.js +10 -0
- package/esm/message-card/message-card.js +168 -0
- package/esm/message-card/styled-components.js +116 -0
- package/esm/message-card/types.js +1 -0
- package/esm/message-card/utils.js +26 -0
- package/esm/modal/modal.js +4 -6
- package/esm/modal/styled-components.js +8 -1
- package/esm/pagination/stateful-container.js +1 -0
- package/esm/pagination/stateful-pagination.js +1 -0
- package/esm/pagination/styled-components.js +4 -1
- package/esm/payment-card/styled-components.js +2 -1
- package/esm/phone-input/base-country-picker.js +3 -1
- package/esm/phone-input/country-select-dropdown.js +1 -0
- package/esm/phone-input/styled-components.js +20 -8
- package/esm/pin-code/styled-components.js +4 -1
- package/esm/popover/popover.js +9 -12
- package/esm/popover/styled-components.js +9 -4
- package/esm/progress-bar/progressbar-rounded.js +1 -0
- package/esm/progress-bar/styled-components.js +14 -2
- package/esm/progress-steps/progress-steps.js +2 -1
- package/esm/progress-steps/styled-components.js +28 -19
- package/esm/radio/styled-components.js +10 -3
- package/esm/rating/emoticon-rating.js +2 -1
- package/esm/rating/star-rating.js +2 -1
- package/esm/rating/styled-components.js +5 -1
- package/esm/select/autosize-input.js +2 -3
- package/esm/select/default-props.js +1 -1
- package/esm/select/dropdown.js +2 -1
- package/esm/select/multi-value.js +2 -1
- package/esm/select/select-component.js +10 -10
- package/esm/select/single-select.js +2 -2
- package/esm/select/styled-components.js +33 -6
- package/esm/select/value.js +3 -4
- package/esm/side-navigation/index.js +2 -1
- package/esm/side-navigation/nav-item.js +1 -0
- package/esm/side-navigation/nav.js +1 -1
- package/esm/side-navigation/stateful-container.js +1 -0
- package/esm/side-navigation/styled-components.js +13 -6
- package/esm/skeleton/styled-components.js +3 -1
- package/esm/slider/slider.js +4 -2
- package/esm/slider/styled-components.js +9 -0
- package/esm/snackbar/snackbar-element.js +1 -0
- package/esm/snackbar/styled-components.js +9 -1
- package/esm/spinner/styled-components.js +2 -1
- package/esm/styles/__mocks__/styled.js +8 -5
- package/esm/styles/styled.js +7 -6
- package/esm/table/index.js +2 -1
- package/esm/table/styled-components.js +13 -1
- package/esm/table-grid/styled-components.js +4 -1
- package/esm/table-semantic/styled-components.js +20 -3
- package/esm/tabs/stateful-tabs.js +1 -0
- package/esm/tabs/styled-components.js +5 -1
- package/esm/tabs/tabs.js +4 -2
- package/esm/tabs-motion/styled-components.js +68 -40
- package/esm/tabs-motion/tab.js +1 -0
- package/esm/tabs-motion/tabs.js +87 -58
- package/esm/tag/styled-components.js +5 -1
- package/esm/tag/tag.js +4 -2
- package/esm/textarea/styled-components.js +11 -6
- package/esm/textarea/textarea.js +4 -2
- package/esm/themes/move-theme/typography.js +36 -0
- package/esm/themes/shared/borders.js +8 -3
- package/esm/themes/shared/typography.js +10 -10
- package/esm/timezonepicker/timezone-picker.js +6 -2
- package/esm/timezonepicker/tzdata.js +1 -1
- package/esm/toast/styled-components.js +5 -1
- package/esm/toast/toaster.js +0 -2
- package/esm/tokens/colors.js +24 -0
- package/esm/tooltip/styled-components.js +4 -1
- package/esm/tree-view/index.js +2 -1
- package/esm/tree-view/styled-components.js +7 -1
- package/esm/tree-view/tree-view.js +3 -1
- package/esm/types/globals.d.js +12 -0
- package/esm/utils/deep-merge.js +0 -5
- package/esm/utils/deprecated-component.js +1 -0
- package/esm/utils/focusVisible.js +4 -2
- package/file-uploader/styled-components.js +6 -1
- package/flex-grid/flex-grid-item.d.ts +1 -1
- package/flex-grid/flex-grid-item.js +6 -8
- package/flex-grid/flex-grid.js +7 -3
- package/flex-grid/types.d.ts +1 -1
- package/form-control/styled-components.js +6 -1
- package/form-control/types.d.ts +1 -1
- package/header-navigation/styled-components.js +4 -1
- package/heading/types.d.ts +1 -1
- package/helper/styled-components.js +3 -1
- package/helpers/overrides.js +8 -3
- package/helpers/overrides.js.flow +1 -1
- package/helpers/types.d.ts +1 -1
- package/icon/build-icons.js +0 -2
- package/icon/build-icons.js.flow +0 -1
- package/icon/index.d.ts +1 -1
- package/icon/index.js +8 -1
- package/icon/index.js.flow +1 -1
- package/icon/omit-dollar-prefixed-keys.js +1 -0
- package/icon/styled-components.js +2 -1
- package/icon/types.d.ts +1 -1
- package/input/masked-input.js +5 -2
- package/input/stateful-container.js +1 -0
- package/input/styled-components.js +18 -7
- package/input/styled-components.js.flow +9 -2
- package/input/types.d.ts +16 -14
- package/input/types.js.flow +3 -0
- package/input/utils.js +2 -0
- package/layer/layer.js +24 -0
- package/layer/layer.js.flow +25 -0
- package/layer/layers-manager.d.ts +8 -0
- package/layer/layers-manager.js +97 -1
- package/layer/layers-manager.js.flow +84 -1
- package/layer/types.d.ts +23 -2
- package/layer/types.js.flow +22 -1
- package/layout-grid/styled-components.js +3 -0
- package/layout-grid/types.d.ts +2 -2
- package/link/index.js +2 -1
- package/link/styled-components.js +2 -1
- package/list/list-heading.js +21 -17
- package/list/list-item.js +2 -1
- package/list/styled-components.js +17 -1
- package/list/types.d.ts +2 -2
- package/locale/en_US.d.ts +1 -1
- package/locale/es_AR.d.ts +1 -1
- package/locale/es_AR.js +3 -1
- package/locale/index.js +4 -1
- package/locale/tr_TR.d.ts +1 -1
- package/locale/tr_TR.js +3 -1
- package/map-marker/constants.d.ts +14 -0
- package/map-marker/constants.js +16 -3
- package/map-marker/constants.js.flow +17 -0
- package/map-marker/index.d.ts +2 -1
- package/map-marker/index.js +24 -1
- package/map-marker/index.js.flow +5 -3
- package/map-marker/location-puck.d.ts +4 -0
- package/map-marker/location-puck.js +211 -0
- package/map-marker/location-puck.js.flow +18 -0
- package/map-marker/styled-components.d.ts +17 -1
- package/map-marker/styled-components.js +88 -2
- package/map-marker/styled-components.js.flow +58 -0
- package/map-marker/types.d.ts +33 -5
- package/map-marker/types.js.flow +37 -3
- package/menu/index.d.ts +2 -3
- package/menu/index.js +8 -1
- package/menu/index.js.flow +1 -0
- package/menu/menu.js +15 -3
- package/menu/menu.js.flow +11 -1
- package/menu/option-profile.js +1 -0
- package/menu/stateful-container.js +1 -0
- package/menu/styled-components.d.ts +1 -0
- package/menu/styled-components.js +40 -7
- package/menu/styled-components.js.flow +13 -0
- package/menu/types.d.ts +13 -13
- package/menu/types.js.flow +1 -0
- package/message-card/constants.d.ts +12 -0
- package/message-card/constants.js +25 -0
- package/message-card/index.d.ts +4 -0
- package/message-card/index.js +60 -0
- package/message-card/index.js.flow +72 -0
- package/message-card/message-card.d.ts +4 -0
- package/message-card/message-card.js +184 -0
- package/message-card/package.json +4 -0
- package/message-card/styled-components.d.ts +14 -0
- package/message-card/styled-components.js +124 -0
- package/message-card/types.d.ts +27 -0
- package/message-card/types.js +5 -0
- package/message-card/utils.d.ts +1 -0
- package/message-card/utils.js +36 -0
- package/modal/modal.js +4 -4
- package/modal/modal.js.flow +1 -3
- package/modal/styled-components.js +8 -1
- package/modal/types.d.ts +2 -2
- package/package.json +9 -11
- package/pagination/stateful-container.js +1 -0
- package/pagination/stateful-pagination.js +1 -0
- package/pagination/styled-components.js +4 -1
- package/pagination/types.d.ts +2 -2
- package/payment-card/styled-components.js +2 -1
- package/phone-input/base-country-picker.js +3 -1
- package/phone-input/country-select-dropdown.js +1 -0
- package/phone-input/styled-components.js +21 -9
- package/phone-input/types.d.ts +5 -6
- package/pin-code/styled-components.js +4 -1
- package/pin-code/types.d.ts +2 -2
- package/popover/popover.js +9 -12
- package/popover/popover.js.flow +2 -12
- package/popover/styled-components.js +12 -9
- package/popover/types.d.ts +2 -2
- package/progress-bar/progressbar-rounded.js +1 -0
- package/progress-bar/styled-components.js +14 -2
- package/progress-bar/types.d.ts +2 -2
- package/progress-steps/progress-steps.js +2 -1
- package/progress-steps/styled-components.js +28 -19
- package/radio/styled-components.js +10 -3
- package/radio/types.d.ts +19 -20
- package/rating/emoticon-rating.js +2 -1
- package/rating/star-rating.js +2 -1
- package/rating/styled-components.js +5 -1
- package/select/autosize-input.js +2 -1
- package/select/autosize-input.js.flow +1 -1
- package/select/default-props.js +1 -1
- package/select/dropdown.js +2 -1
- package/select/multi-value.js +1 -0
- package/select/select-component.d.ts +1 -1
- package/select/select-component.js +9 -7
- package/select/select-component.js.flow +1 -1
- package/select/single-select.d.ts +2 -2
- package/select/single-select.js +2 -2
- package/select/styled-components.js +33 -6
- package/select/styled-components.js.flow +25 -5
- package/select/types.d.ts +5 -6
- package/select/value.js +2 -3
- package/side-navigation/nav-item.js +1 -0
- package/side-navigation/nav.js +1 -1
- package/side-navigation/stateful-container.js +1 -0
- package/side-navigation/styled-components.js +13 -6
- package/side-navigation/types.d.ts +1 -1
- package/skeleton/styled-components.js +3 -1
- package/slider/slider.js +4 -2
- package/slider/styled-components.js +9 -0
- package/slider/types.d.ts +1 -1
- package/snackbar/snackbar-element.js +1 -0
- package/snackbar/styled-components.js +9 -1
- package/snackbar/types.d.ts +3 -4
- package/spinner/styled-components.js +2 -1
- package/spinner/types.d.ts +1 -1
- package/styles/__mocks__/styled.js +8 -3
- package/styles/styled.d.ts +1 -1
- package/styles/styled.js +7 -6
- package/table/styled-components.js +13 -1
- package/table/types.d.ts +2 -2
- package/table-grid/styled-components.js +4 -1
- package/table-semantic/styled-components.js +20 -3
- package/table-semantic/types.d.ts +2 -2
- package/tabs/stateful-tabs.js +1 -0
- package/tabs/styled-components.js +5 -1
- package/tabs/tabs.js +4 -2
- package/tabs/types.d.ts +2 -2
- package/tabs-motion/styled-components.d.ts +5 -0
- package/tabs-motion/styled-components.js +71 -41
- package/tabs-motion/styled-components.js.flow +21 -0
- package/tabs-motion/tab.js +1 -0
- package/tabs-motion/tabs.d.ts +1 -1
- package/tabs-motion/tabs.js +87 -57
- package/tabs-motion/tabs.js.flow +69 -38
- package/tabs-motion/types.d.ts +5 -2
- package/tabs-motion/types.js.flow +3 -0
- package/tabs-motion/utils.d.ts +1 -1
- package/tag/styled-components.js +5 -1
- package/tag/tag.js +4 -2
- package/tag/types.d.ts +4 -5
- package/textarea/styled-components.js +11 -6
- package/textarea/textarea.js +4 -2
- package/textarea/types.d.ts +6 -5
- package/textarea/types.js.flow +3 -1
- package/themes/move-theme/typography.d.ts +36 -0
- package/themes/move-theme/typography.js +36 -0
- package/themes/move-theme/typography.js.flow +12 -0
- package/themes/shared/borders.js +8 -3
- package/themes/shared/borders.js.flow +7 -3
- package/themes/shared/typography.js +10 -10
- package/themes/shared/typography.js.flow +10 -10
- package/themes/types.d.ts +3 -0
- package/themes/types.js.flow +3 -0
- package/timezonepicker/timezone-picker.js +6 -2
- package/timezonepicker/types.d.ts +1 -0
- package/timezonepicker/types.js.flow +1 -0
- package/timezonepicker/tzdata.js +1 -1
- package/toast/styled-components.js +5 -1
- package/toast/toaster.js.flow +1 -1
- package/toast/types.d.ts +2 -2
- package/tokens/colors.js +24 -0
- package/tokens/colors.js.flow +27 -0
- package/tokens/types.d.ts +24 -0
- package/tokens/types.js.flow +27 -0
- package/tooltip/styled-components.js +4 -1
- package/tree-view/styled-components.js +7 -1
- package/tree-view/tree-view.js +3 -1
- package/tree-view/types.d.ts +3 -4
- package/types/globals.d.js +14 -1
- package/utils/deep-merge.js +0 -6
- package/utils/deprecated-component.js +1 -0
- package/utils/focusVisible.d.ts +1 -1
- package/utils/focusVisible.js +4 -2
- package/card/images.d.ts +0 -2
- package/card/images.js +0 -17
- package/card/images.js.flow +0 -18
- package/es/card/images.js +0 -8
- package/esm/card/images.js +0 -8
|
@@ -29,6 +29,21 @@ function getFont() {
|
|
|
29
29
|
return (_SIZE$mini$SIZE$compa = {}, _defineProperty(_SIZE$mini$SIZE$compa, _constants.SIZE.mini, typography.font100), _defineProperty(_SIZE$mini$SIZE$compa, _constants.SIZE.compact, typography.font200), _defineProperty(_SIZE$mini$SIZE$compa, _constants.SIZE.default, typography.font300), _defineProperty(_SIZE$mini$SIZE$compa, _constants.SIZE.large, typography.font400), _SIZE$mini$SIZE$compa)[size];
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
function getBorderRadius(size, borders) {
|
|
33
|
+
var radius = borders.inputBorderRadius;
|
|
34
|
+
|
|
35
|
+
if (size === _constants.SIZE.mini) {
|
|
36
|
+
radius = borders.inputBorderRadiusMini;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return {
|
|
40
|
+
borderTopLeftRadius: radius,
|
|
41
|
+
borderBottomLeftRadius: radius,
|
|
42
|
+
borderTopRightRadius: radius,
|
|
43
|
+
borderBottomRightRadius: radius
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
32
47
|
function getControlPadding(props) {
|
|
33
48
|
var _SIZE$mini, _SIZE$compact, _SIZE$default, _SIZE$large, _SIZE$mini$SIZE$compa2;
|
|
34
49
|
|
|
@@ -69,6 +84,7 @@ var StyledDropdownContainer = (0, _styles.styled)('div', function (props) {
|
|
|
69
84
|
});
|
|
70
85
|
exports.StyledDropdownContainer = StyledDropdownContainer;
|
|
71
86
|
StyledDropdownContainer.displayName = "StyledDropdownContainer";
|
|
87
|
+
StyledDropdownContainer.displayName = 'StyledDropdownContainer';
|
|
72
88
|
var StyledDropdown = _menu.StyledList;
|
|
73
89
|
exports.StyledDropdown = StyledDropdown;
|
|
74
90
|
var StyledDropdownListItem = _menu.StyledListItem;
|
|
@@ -86,6 +102,7 @@ var StyledOptionContent = (0, _styles.styled)('div', function (props) {
|
|
|
86
102
|
});
|
|
87
103
|
exports.StyledOptionContent = StyledOptionContent;
|
|
88
104
|
StyledOptionContent.displayName = "StyledOptionContent";
|
|
105
|
+
StyledOptionContent.displayName = 'StyledOptionContent';
|
|
89
106
|
var StyledRoot = (0, _styles.styled)('div', function (props) {
|
|
90
107
|
var typography = props.$theme.typography,
|
|
91
108
|
$size = props.$size;
|
|
@@ -97,6 +114,7 @@ var StyledRoot = (0, _styles.styled)('div', function (props) {
|
|
|
97
114
|
});
|
|
98
115
|
exports.StyledRoot = StyledRoot;
|
|
99
116
|
StyledRoot.displayName = "StyledRoot";
|
|
117
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
100
118
|
|
|
101
119
|
function getControlContainerColors($disabled, $isFocused, $isPseudoFocused, $positive, $error, colors) {
|
|
102
120
|
if ($disabled) {
|
|
@@ -161,15 +179,12 @@ var StyledControlContainer = (0, _styles.styled)('div', function (props) {
|
|
|
161
179
|
$isPseudoFocused = props.$isPseudoFocused,
|
|
162
180
|
$type = props.$type,
|
|
163
181
|
$searchable = props.$searchable,
|
|
182
|
+
$size = props.$size,
|
|
164
183
|
_props$$theme = props.$theme,
|
|
165
184
|
borders = _props$$theme.borders,
|
|
166
185
|
colors = _props$$theme.colors,
|
|
167
186
|
animation = _props$$theme.animation;
|
|
168
|
-
return _objectSpread({
|
|
169
|
-
borderTopLeftRadius: borders.inputBorderRadius,
|
|
170
|
-
borderTopRightRadius: borders.inputBorderRadius,
|
|
171
|
-
borderBottomRightRadius: borders.inputBorderRadius,
|
|
172
|
-
borderBottomLeftRadius: borders.inputBorderRadius,
|
|
187
|
+
return _objectSpread(_objectSpread({}, getBorderRadius($size, borders)), {}, {
|
|
173
188
|
boxSizing: 'border-box',
|
|
174
189
|
overflow: 'hidden',
|
|
175
190
|
width: '100%',
|
|
@@ -191,6 +206,7 @@ var StyledControlContainer = (0, _styles.styled)('div', function (props) {
|
|
|
191
206
|
});
|
|
192
207
|
exports.StyledControlContainer = StyledControlContainer;
|
|
193
208
|
StyledControlContainer.displayName = "StyledControlContainer";
|
|
209
|
+
StyledControlContainer.displayName = 'StyledControlContainer';
|
|
194
210
|
var StyledValueContainer = (0, _styles.styled)('div', function (props) {
|
|
195
211
|
var padding = getControlPadding(props);
|
|
196
212
|
return _objectSpread({
|
|
@@ -207,6 +223,7 @@ var StyledValueContainer = (0, _styles.styled)('div', function (props) {
|
|
|
207
223
|
});
|
|
208
224
|
exports.StyledValueContainer = StyledValueContainer;
|
|
209
225
|
StyledValueContainer.displayName = "StyledValueContainer";
|
|
226
|
+
StyledValueContainer.displayName = 'StyledValueContainer';
|
|
210
227
|
var StyledPlaceholder = (0, _styles.styled)('div', function (props) {
|
|
211
228
|
var $disabled = props.$disabled,
|
|
212
229
|
colors = props.$theme.colors;
|
|
@@ -220,6 +237,7 @@ var StyledPlaceholder = (0, _styles.styled)('div', function (props) {
|
|
|
220
237
|
});
|
|
221
238
|
exports.StyledPlaceholder = StyledPlaceholder;
|
|
222
239
|
StyledPlaceholder.displayName = "StyledPlaceholder";
|
|
240
|
+
StyledPlaceholder.displayName = 'StyledPlaceholder';
|
|
223
241
|
var StyledSingleValue = (0, _styles.styled)('div', function (props) {
|
|
224
242
|
var _objectSpread2;
|
|
225
243
|
|
|
@@ -236,6 +254,7 @@ var StyledSingleValue = (0, _styles.styled)('div', function (props) {
|
|
|
236
254
|
});
|
|
237
255
|
exports.StyledSingleValue = StyledSingleValue;
|
|
238
256
|
StyledSingleValue.displayName = "StyledSingleValue";
|
|
257
|
+
StyledSingleValue.displayName = 'StyledSingleValue';
|
|
239
258
|
var StyledInputContainer = (0, _styles.styled)('div', function (props) {
|
|
240
259
|
var $size = props.$size,
|
|
241
260
|
$searchable = props.$searchable,
|
|
@@ -270,6 +289,7 @@ var StyledInputContainer = (0, _styles.styled)('div', function (props) {
|
|
|
270
289
|
});
|
|
271
290
|
exports.StyledInputContainer = StyledInputContainer;
|
|
272
291
|
StyledInputContainer.displayName = "StyledInputContainer";
|
|
292
|
+
StyledInputContainer.displayName = 'StyledInputContainer';
|
|
273
293
|
var StyledInput = (0, _styles.styled)('input', function (props) {
|
|
274
294
|
var _props$$theme3 = props.$theme,
|
|
275
295
|
colors = _props$$theme3.colors,
|
|
@@ -302,6 +322,7 @@ var StyledInput = (0, _styles.styled)('input', function (props) {
|
|
|
302
322
|
});
|
|
303
323
|
exports.StyledInput = StyledInput;
|
|
304
324
|
StyledInput.displayName = "StyledInput";
|
|
325
|
+
StyledInput.displayName = 'StyledInput';
|
|
305
326
|
var StyledInputSizer = (0, _styles.styled)('div', function (_ref) {
|
|
306
327
|
var _objectSpread3;
|
|
307
328
|
|
|
@@ -316,6 +337,7 @@ var StyledInputSizer = (0, _styles.styled)('div', function (_ref) {
|
|
|
316
337
|
});
|
|
317
338
|
exports.StyledInputSizer = StyledInputSizer;
|
|
318
339
|
StyledInputSizer.displayName = "StyledInputSizer";
|
|
340
|
+
StyledInputSizer.displayName = 'StyledInputSizer';
|
|
319
341
|
var StyledIconsContainer = (0, _styles.styled)('div', function (_ref2) {
|
|
320
342
|
var $theme = _ref2.$theme,
|
|
321
343
|
sizing = _ref2.$theme.sizing;
|
|
@@ -331,6 +353,7 @@ var StyledIconsContainer = (0, _styles.styled)('div', function (_ref2) {
|
|
|
331
353
|
});
|
|
332
354
|
exports.StyledIconsContainer = StyledIconsContainer;
|
|
333
355
|
StyledIconsContainer.displayName = "StyledIconsContainer";
|
|
356
|
+
StyledIconsContainer.displayName = 'StyledIconsContainer';
|
|
334
357
|
|
|
335
358
|
function getSvgStyles(_ref4) {
|
|
336
359
|
var $theme = _ref4.$theme;
|
|
@@ -368,6 +391,7 @@ var StyledSelectArrow = (0, _styles.styled)('svg', function (props) {
|
|
|
368
391
|
});
|
|
369
392
|
exports.StyledSelectArrow = StyledSelectArrow;
|
|
370
393
|
StyledSelectArrow.displayName = "StyledSelectArrow";
|
|
394
|
+
StyledSelectArrow.displayName = 'StyledSelectArrow';
|
|
371
395
|
var StyledClearIcon = (0, _styles.styled)('svg', function (props) {
|
|
372
396
|
var _sizes2;
|
|
373
397
|
|
|
@@ -392,6 +416,7 @@ var StyledClearIcon = (0, _styles.styled)('svg', function (props) {
|
|
|
392
416
|
});
|
|
393
417
|
exports.StyledClearIcon = StyledClearIcon;
|
|
394
418
|
StyledClearIcon.displayName = "StyledClearIcon";
|
|
419
|
+
StyledClearIcon.displayName = 'StyledClearIcon';
|
|
395
420
|
var StyledLoadingIndicator = (0, _styles.withStyle)(_spinner.Spinner, function (_ref5) {
|
|
396
421
|
var $theme = _ref5.$theme;
|
|
397
422
|
return {
|
|
@@ -408,6 +433,7 @@ var StyledLoadingIndicator = (0, _styles.withStyle)(_spinner.Spinner, function (
|
|
|
408
433
|
});
|
|
409
434
|
exports.StyledLoadingIndicator = StyledLoadingIndicator;
|
|
410
435
|
StyledLoadingIndicator.displayName = "StyledLoadingIndicator";
|
|
436
|
+
StyledLoadingIndicator.displayName = 'StyledLoadingIndicator';
|
|
411
437
|
var StyledSearchIconContainer = (0, _styles.styled)('div', function (props) {
|
|
412
438
|
var _objectSpread4;
|
|
413
439
|
|
|
@@ -424,4 +450,5 @@ var StyledSearchIconContainer = (0, _styles.styled)('div', function (props) {
|
|
|
424
450
|
}, _defineProperty(_objectSpread4, dir, sizing.scale500), _defineProperty(_objectSpread4, "display", 'flex'), _defineProperty(_objectSpread4, "alignItems", 'center'), _defineProperty(_objectSpread4, "height", '100%'), _objectSpread4));
|
|
425
451
|
});
|
|
426
452
|
exports.StyledSearchIconContainer = StyledSearchIconContainer;
|
|
427
|
-
StyledSearchIconContainer.displayName = "StyledSearchIconContainer";
|
|
453
|
+
StyledSearchIconContainer.displayName = "StyledSearchIconContainer";
|
|
454
|
+
StyledSearchIconContainer.displayName = 'StyledSearchIconContainer';
|
|
@@ -11,7 +11,8 @@ import { TYPE, SIZE } from './constants.js';
|
|
|
11
11
|
import { StyledList, StyledListItem } from '../menu/index.js';
|
|
12
12
|
import { Spinner } from '../spinner/index.js';
|
|
13
13
|
|
|
14
|
-
import type { SharedStylePropsArgT } from './types.js';
|
|
14
|
+
import type { SizeT, SharedStylePropsArgT } from './types.js';
|
|
15
|
+
import type { ThemeT } from '../styles/types.js';
|
|
15
16
|
import { ellipsisText } from '../styles/util.js';
|
|
16
17
|
|
|
17
18
|
function getFont(size = SIZE.default, typography) {
|
|
@@ -23,6 +24,27 @@ function getFont(size = SIZE.default, typography) {
|
|
|
23
24
|
}[size];
|
|
24
25
|
}
|
|
25
26
|
|
|
27
|
+
function getBorderRadius(
|
|
28
|
+
size = SIZE.default,
|
|
29
|
+
borders
|
|
30
|
+
): {|
|
|
31
|
+
borderTopLeftRadius: string,
|
|
32
|
+
borderBottomLeftRadius: string,
|
|
33
|
+
borderTopRightRadius: string,
|
|
34
|
+
borderBottomRightRadius: string,
|
|
35
|
+
|} {
|
|
36
|
+
let radius = borders.inputBorderRadius;
|
|
37
|
+
if (size === SIZE.mini) {
|
|
38
|
+
radius = borders.inputBorderRadiusMini;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
borderTopLeftRadius: radius,
|
|
42
|
+
borderBottomLeftRadius: radius,
|
|
43
|
+
borderTopRightRadius: radius,
|
|
44
|
+
borderBottomRightRadius: radius,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
26
48
|
function getControlPadding(props) {
|
|
27
49
|
const {
|
|
28
50
|
$theme,
|
|
@@ -184,13 +206,11 @@ export const StyledControlContainer = styled<SharedStylePropsArgT>('div', (props
|
|
|
184
206
|
$isPseudoFocused,
|
|
185
207
|
$type,
|
|
186
208
|
$searchable,
|
|
209
|
+
$size,
|
|
187
210
|
$theme: { borders, colors, animation },
|
|
188
211
|
} = props;
|
|
189
212
|
return {
|
|
190
|
-
|
|
191
|
-
borderTopRightRadius: borders.inputBorderRadius,
|
|
192
|
-
borderBottomRightRadius: borders.inputBorderRadius,
|
|
193
|
-
borderBottomLeftRadius: borders.inputBorderRadius,
|
|
213
|
+
...getBorderRadius($size, borders),
|
|
194
214
|
boxSizing: 'border-box',
|
|
195
215
|
overflow: 'hidden',
|
|
196
216
|
width: '100%',
|
package/select/types.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { STATE_CHANGE_TYPE, SIZE, TYPE } from './constants';
|
|
3
|
+
import type { STATE_CHANGE_TYPE, SIZE, TYPE } from './constants';
|
|
4
4
|
import type { OnItemSelectFn } from '../menu';
|
|
5
|
-
import type { ReactNode, SyntheticEvent, ChangeEvent } from 'react';
|
|
6
5
|
export declare type ChangeAction = keyof typeof STATE_CHANGE_TYPE;
|
|
7
6
|
export declare type Size = keyof typeof SIZE;
|
|
8
7
|
export declare type Type = keyof typeof TYPE;
|
|
@@ -141,8 +140,8 @@ export declare type SelectProps = {
|
|
|
141
140
|
onBlurResetsInput?: boolean;
|
|
142
141
|
/** change handler of the select to be called when a value is changed. */
|
|
143
142
|
onChange?: (params: OnChangeParams) => unknown;
|
|
144
|
-
onFocus?: (e: SyntheticEvent<HTMLElement>) => unknown;
|
|
145
|
-
onInputChange?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
143
|
+
onFocus?: (e: React.SyntheticEvent<HTMLElement>) => unknown;
|
|
144
|
+
onInputChange?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
146
145
|
/** Defines if the input value is reset to an empty string when dropdown is closed. */
|
|
147
146
|
onCloseResetsInput?: boolean;
|
|
148
147
|
/** Defines if the input value is reset to an empty string when a selection is made. */
|
|
@@ -196,7 +195,7 @@ export declare type State = {
|
|
|
196
195
|
export declare type StateReducer = (stateType: string, nextState: State, currentState: State) => State;
|
|
197
196
|
export declare type StatefulContainerProps = {
|
|
198
197
|
overrides: SelectOverrides;
|
|
199
|
-
children: (a: SelectProps) => ReactNode;
|
|
198
|
+
children: (a: SelectProps) => React.ReactNode;
|
|
200
199
|
initialState: State;
|
|
201
200
|
stateReducer: StateReducer;
|
|
202
201
|
onChange: (params: OnChangeParams) => unknown;
|
package/select/value.js
CHANGED
|
@@ -37,6 +37,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
37
37
|
|
|
38
38
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
39
39
|
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40
41
|
function Value(props) {
|
|
41
42
|
var _props$overrides = props.overrides,
|
|
42
43
|
overrides = _props$overrides === void 0 ? {} : _props$overrides,
|
|
@@ -47,7 +48,5 @@ function Value(props) {
|
|
|
47
48
|
SingleValue = _getOverrides2[0],
|
|
48
49
|
singleValueProps = _getOverrides2[1];
|
|
49
50
|
|
|
50
|
-
return /*#__PURE__*/React.createElement(SingleValue, _extends({
|
|
51
|
-
"aria-selected": "true"
|
|
52
|
-
}, restProps, singleValueProps), props.children);
|
|
51
|
+
return /*#__PURE__*/React.createElement(SingleValue, _extends({}, restProps, singleValueProps), props.children);
|
|
53
52
|
}
|
|
@@ -109,6 +109,7 @@ var NavItem = /*#__PURE__*/function (_React$Component) {
|
|
|
109
109
|
_createClass(NavItem, [{
|
|
110
110
|
key: "render",
|
|
111
111
|
value: function render() {
|
|
112
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
112
113
|
var _this$props3 = this.props,
|
|
113
114
|
item = _this$props3.item,
|
|
114
115
|
overrides = _this$props3.overrides,
|
package/side-navigation/nav.js
CHANGED
|
@@ -171,7 +171,7 @@ var SideNav = /*#__PURE__*/function (_React$Component) {
|
|
|
171
171
|
overrides: overrides
|
|
172
172
|
}, sharedProps)), item.subNav ? /*#__PURE__*/React.createElement(SubNavContainer, _extends({
|
|
173
173
|
role: "list"
|
|
174
|
-
}, sharedProps, subNavContainerProps), item.subNav.map(function (subitem
|
|
174
|
+
}, sharedProps, subNavContainerProps), item.subNav.map(function (subitem) {
|
|
175
175
|
return renderNavItem(subitem, level + 1, index);
|
|
176
176
|
})) : null));
|
|
177
177
|
};
|
|
@@ -102,6 +102,7 @@ var StatefulContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
102
102
|
key: "render",
|
|
103
103
|
value: function render() {
|
|
104
104
|
// eslint-disable-next-line no-unused-vars
|
|
105
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
105
106
|
var _this$props = this.props,
|
|
106
107
|
children = _this$props.children,
|
|
107
108
|
initialState = _this$props.initialState,
|
|
@@ -46,9 +46,11 @@ var StyledRoot = (0, _styles.styled)('nav', function (props) {
|
|
|
46
46
|
});
|
|
47
47
|
exports.StyledRoot = StyledRoot;
|
|
48
48
|
StyledRoot.displayName = "StyledRoot";
|
|
49
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
49
50
|
var StyledNavItemContainer = (0, _styles.styled)('li', {});
|
|
50
51
|
exports.StyledNavItemContainer = StyledNavItemContainer;
|
|
51
52
|
StyledNavItemContainer.displayName = "StyledNavItemContainer";
|
|
53
|
+
StyledNavItemContainer.displayName = 'StyledNavItemContainer';
|
|
52
54
|
var StyledNavLink = (0, _styles.styled)('a', function (_ref) {
|
|
53
55
|
var $theme = _ref.$theme,
|
|
54
56
|
$isFocusVisible = _ref.$isFocusVisible;
|
|
@@ -70,6 +72,7 @@ var StyledNavLink = (0, _styles.styled)('a', function (_ref) {
|
|
|
70
72
|
});
|
|
71
73
|
exports.StyledNavLink = StyledNavLink;
|
|
72
74
|
StyledNavLink.displayName = "StyledNavLink";
|
|
75
|
+
StyledNavLink.displayName = 'StyledNavLink';
|
|
73
76
|
var StyledNavItemElement = (0, _styles.styled)('div', function (props) {
|
|
74
77
|
var _ref2;
|
|
75
78
|
|
|
@@ -109,13 +112,16 @@ var StyledNavItemElement = (0, _styles.styled)('div', function (props) {
|
|
|
109
112
|
});
|
|
110
113
|
exports.StyledNavItemElement = StyledNavItemElement;
|
|
111
114
|
StyledNavItemElement.displayName = "StyledNavItemElement";
|
|
115
|
+
StyledNavItemElement.displayName = 'StyledNavItemElement';
|
|
112
116
|
var StyledNavItem = (0, _styles.withWrapper)(StyledNavItemElement, function (Styled) {
|
|
113
|
-
return
|
|
114
|
-
|
|
115
|
-
|
|
117
|
+
return (// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
118
|
+
function StyledNav(_ref3) {
|
|
119
|
+
var item = _ref3.item,
|
|
120
|
+
restProps = _objectWithoutProperties(_ref3, _excluded);
|
|
116
121
|
|
|
117
|
-
|
|
118
|
-
|
|
122
|
+
return /*#__PURE__*/React.createElement(Styled, restProps);
|
|
123
|
+
}
|
|
124
|
+
);
|
|
119
125
|
});
|
|
120
126
|
exports.StyledNavItem = StyledNavItem;
|
|
121
127
|
var StyledSubNavContainer = (0, _styles.styled)('ul', {
|
|
@@ -130,4 +136,5 @@ var StyledSubNavContainer = (0, _styles.styled)('ul', {
|
|
|
130
136
|
paddingRight: 0
|
|
131
137
|
});
|
|
132
138
|
exports.StyledSubNavContainer = StyledSubNavContainer;
|
|
133
|
-
StyledSubNavContainer.displayName = "StyledSubNavContainer";
|
|
139
|
+
StyledSubNavContainer.displayName = "StyledSubNavContainer";
|
|
140
|
+
StyledSubNavContainer.displayName = 'StyledSubNavContainer';
|
|
@@ -53,6 +53,7 @@ var StyledRoot = (0, _styles.styled)('div', function (props) {
|
|
|
53
53
|
});
|
|
54
54
|
exports.StyledRoot = StyledRoot;
|
|
55
55
|
StyledRoot.displayName = "StyledRoot";
|
|
56
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
56
57
|
var StyledRow = (0, _styles.styled)('div', function (props) {
|
|
57
58
|
return _objectSpread(_objectSpread({}, props.$animation ? _objectSpread(_objectSpread({}, animationStyle), {}, {
|
|
58
59
|
backgroundImage: getAnimationColor(props)
|
|
@@ -65,4 +66,5 @@ var StyledRow = (0, _styles.styled)('div', function (props) {
|
|
|
65
66
|
});
|
|
66
67
|
});
|
|
67
68
|
exports.StyledRow = StyledRow;
|
|
68
|
-
StyledRow.displayName = "StyledRow";
|
|
69
|
+
StyledRow.displayName = "StyledRow";
|
|
70
|
+
StyledRow.displayName = 'StyledRow';
|
package/slider/slider.js
CHANGED
|
@@ -104,11 +104,13 @@ function Slider(_ref) {
|
|
|
104
104
|
var handleFocus = React.useCallback(function (event) {
|
|
105
105
|
if ((0, _focusVisible.isFocusVisible)(event)) {
|
|
106
106
|
setIsFocusVisible(true);
|
|
107
|
-
}
|
|
107
|
+
} // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
108
|
+
|
|
108
109
|
|
|
109
110
|
var index = event.target.parentNode.firstChild === event.target ? 0 : 1;
|
|
110
111
|
setFocusedThumbIndex(index);
|
|
111
|
-
}, []);
|
|
112
|
+
}, []); // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
113
|
+
|
|
112
114
|
var handleBlur = React.useCallback(function (event) {
|
|
113
115
|
if (isFocusVisible !== false) {
|
|
114
116
|
setIsFocusVisible(false);
|
|
@@ -21,6 +21,7 @@ var Root = (0, _styles.styled)('div', {
|
|
|
21
21
|
});
|
|
22
22
|
exports.Root = Root;
|
|
23
23
|
Root.displayName = "Root";
|
|
24
|
+
Root.displayName = 'Root';
|
|
24
25
|
Root.displayName = 'StyledRoot';
|
|
25
26
|
var Track = (0, _styles.styled)('div', function (props) {
|
|
26
27
|
var $theme = props.$theme,
|
|
@@ -51,6 +52,7 @@ var Track = (0, _styles.styled)('div', function (props) {
|
|
|
51
52
|
});
|
|
52
53
|
exports.Track = Track;
|
|
53
54
|
Track.displayName = "Track";
|
|
55
|
+
Track.displayName = 'Track';
|
|
54
56
|
Track.displayName = 'StyledTrack';
|
|
55
57
|
var InnerTrack = (0, _styles.styled)('div', function (props) {
|
|
56
58
|
var $theme = props.$theme,
|
|
@@ -83,6 +85,7 @@ var InnerTrack = (0, _styles.styled)('div', function (props) {
|
|
|
83
85
|
});
|
|
84
86
|
exports.InnerTrack = InnerTrack;
|
|
85
87
|
InnerTrack.displayName = "InnerTrack";
|
|
88
|
+
InnerTrack.displayName = 'InnerTrack';
|
|
86
89
|
InnerTrack.displayName = 'StyledInnerTrack';
|
|
87
90
|
var Mark = (0, _styles.styled)('div', function (props) {
|
|
88
91
|
return {
|
|
@@ -94,6 +97,7 @@ var Mark = (0, _styles.styled)('div', function (props) {
|
|
|
94
97
|
});
|
|
95
98
|
exports.Mark = Mark;
|
|
96
99
|
Mark.displayName = "Mark";
|
|
100
|
+
Mark.displayName = 'Mark';
|
|
97
101
|
Mark.displayName = 'StyledMark';
|
|
98
102
|
var Tick = (0, _styles.styled)('div', function (props) {
|
|
99
103
|
return _objectSpread(_objectSpread({}, props.$theme.typography.font200), {}, {
|
|
@@ -102,6 +106,7 @@ var Tick = (0, _styles.styled)('div', function (props) {
|
|
|
102
106
|
});
|
|
103
107
|
exports.Tick = Tick;
|
|
104
108
|
Tick.displayName = "Tick";
|
|
109
|
+
Tick.displayName = 'Tick';
|
|
105
110
|
Tick.displayName = 'StyledTick';
|
|
106
111
|
var TickBar = (0, _styles.styled)('div', function (props) {
|
|
107
112
|
var $theme = props.$theme;
|
|
@@ -117,6 +122,7 @@ var TickBar = (0, _styles.styled)('div', function (props) {
|
|
|
117
122
|
});
|
|
118
123
|
exports.TickBar = TickBar;
|
|
119
124
|
TickBar.displayName = "TickBar";
|
|
125
|
+
TickBar.displayName = 'TickBar';
|
|
120
126
|
TickBar.displayName = 'StyledTickBar';
|
|
121
127
|
var Thumb = (0, _styles.styled)('div', function (props) {
|
|
122
128
|
var $theme = props.$theme,
|
|
@@ -150,6 +156,7 @@ var Thumb = (0, _styles.styled)('div', function (props) {
|
|
|
150
156
|
});
|
|
151
157
|
exports.Thumb = Thumb;
|
|
152
158
|
Thumb.displayName = "Thumb";
|
|
159
|
+
Thumb.displayName = 'Thumb';
|
|
153
160
|
Thumb.displayName = 'StyledThumb';
|
|
154
161
|
var InnerThumb = (0, _styles.styled)('div', function (props) {
|
|
155
162
|
var $disabled = props.$disabled,
|
|
@@ -164,6 +171,7 @@ var InnerThumb = (0, _styles.styled)('div', function (props) {
|
|
|
164
171
|
});
|
|
165
172
|
exports.InnerThumb = InnerThumb;
|
|
166
173
|
InnerThumb.displayName = "InnerThumb";
|
|
174
|
+
InnerThumb.displayName = 'InnerThumb';
|
|
167
175
|
InnerThumb.displayName = 'StyledInnerThumb';
|
|
168
176
|
var ThumbValue = (0, _styles.styled)('div', function (props) {
|
|
169
177
|
var $disabled = props.$disabled,
|
|
@@ -187,4 +195,5 @@ var ThumbValue = (0, _styles.styled)('div', function (props) {
|
|
|
187
195
|
});
|
|
188
196
|
exports.ThumbValue = ThumbValue;
|
|
189
197
|
ThumbValue.displayName = "ThumbValue";
|
|
198
|
+
ThumbValue.displayName = 'ThumbValue';
|
|
190
199
|
ThumbValue.displayName = 'StyledThumbValue';
|
package/slider/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Override } from '../helpers/overrides';
|
|
2
|
-
import { STATE_CHANGE_TYPE } from './constants';
|
|
2
|
+
import type { STATE_CHANGE_TYPE } from './constants';
|
|
3
3
|
import type { ReactNode } from 'react';
|
|
4
4
|
export declare type ChangeAction = keyof typeof STATE_CHANGE_TYPE;
|
|
5
5
|
export declare type Params = {
|
|
@@ -36,6 +36,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
36
36
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
37
|
|
|
38
38
|
// todo(flow->ts): types
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
39
40
|
var ActionButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
40
41
|
var onClick = _ref.onClick,
|
|
41
42
|
message = _ref.message,
|
|
@@ -34,6 +34,7 @@ var StyledRoot = (0, _styles.styled)('div', function (_ref) {
|
|
|
34
34
|
});
|
|
35
35
|
exports.StyledRoot = StyledRoot;
|
|
36
36
|
StyledRoot.displayName = "StyledRoot";
|
|
37
|
+
StyledRoot.displayName = 'StyledRoot';
|
|
37
38
|
var StyledContent = (0, _styles.styled)('div', {
|
|
38
39
|
alignItems: 'center',
|
|
39
40
|
display: 'inline-flex',
|
|
@@ -41,6 +42,7 @@ var StyledContent = (0, _styles.styled)('div', {
|
|
|
41
42
|
});
|
|
42
43
|
exports.StyledContent = StyledContent;
|
|
43
44
|
StyledContent.displayName = "StyledContent";
|
|
45
|
+
StyledContent.displayName = 'StyledContent';
|
|
44
46
|
var StyledStartEnhancerContainer = (0, _styles.styled)('span', function (_ref2) {
|
|
45
47
|
var $theme = _ref2.$theme;
|
|
46
48
|
var paddingDir = $theme.direction === 'rtl' ? 'paddingRight' : 'paddingLeft';
|
|
@@ -51,6 +53,7 @@ var StyledStartEnhancerContainer = (0, _styles.styled)('span', function (_ref2)
|
|
|
51
53
|
});
|
|
52
54
|
exports.StyledStartEnhancerContainer = StyledStartEnhancerContainer;
|
|
53
55
|
StyledStartEnhancerContainer.displayName = "StyledStartEnhancerContainer";
|
|
56
|
+
StyledStartEnhancerContainer.displayName = 'StyledStartEnhancerContainer';
|
|
54
57
|
var StyledSpinner = (0, _styles.withStyle)(_spinner.Spinner, function (_ref4) {
|
|
55
58
|
var $height = _ref4.$height,
|
|
56
59
|
$width = _ref4.$width;
|
|
@@ -62,6 +65,7 @@ var StyledSpinner = (0, _styles.withStyle)(_spinner.Spinner, function (_ref4) {
|
|
|
62
65
|
});
|
|
63
66
|
exports.StyledSpinner = StyledSpinner;
|
|
64
67
|
StyledSpinner.displayName = "StyledSpinner";
|
|
68
|
+
StyledSpinner.displayName = 'StyledSpinner';
|
|
65
69
|
var StyledMessage = (0, _styles.styled)('p', //$FlowExpectedError[incompatible-shape]
|
|
66
70
|
function (_ref5) {
|
|
67
71
|
var _objectSpread2;
|
|
@@ -81,12 +85,14 @@ function (_ref5) {
|
|
|
81
85
|
});
|
|
82
86
|
exports.StyledMessage = StyledMessage;
|
|
83
87
|
StyledMessage.displayName = "StyledMessage";
|
|
88
|
+
StyledMessage.displayName = 'StyledMessage';
|
|
84
89
|
var StyledWrapActionButtonContainer = (0, _styles.styled)('div', {
|
|
85
90
|
display: 'flex',
|
|
86
91
|
justifyContent: 'flex-end'
|
|
87
92
|
});
|
|
88
93
|
exports.StyledWrapActionButtonContainer = StyledWrapActionButtonContainer;
|
|
89
94
|
StyledWrapActionButtonContainer.displayName = "StyledWrapActionButtonContainer";
|
|
95
|
+
StyledWrapActionButtonContainer.displayName = 'StyledWrapActionButtonContainer';
|
|
90
96
|
var StyledActionButtonContainer = (0, _styles.styled)('div', function (_ref6) {
|
|
91
97
|
var $theme = _ref6.$theme;
|
|
92
98
|
var marginDir = $theme.direction === 'rtl' ? 'marginRight' : 'marginLeft';
|
|
@@ -94,6 +100,7 @@ var StyledActionButtonContainer = (0, _styles.styled)('div', function (_ref6) {
|
|
|
94
100
|
});
|
|
95
101
|
exports.StyledActionButtonContainer = StyledActionButtonContainer;
|
|
96
102
|
StyledActionButtonContainer.displayName = "StyledActionButtonContainer";
|
|
103
|
+
StyledActionButtonContainer.displayName = 'StyledActionButtonContainer';
|
|
97
104
|
|
|
98
105
|
function placementRules(placement) {
|
|
99
106
|
switch (placement) {
|
|
@@ -170,4 +177,5 @@ var StyledPlacementContainer = (0, _styles.styled)('div', function (_ref8) {
|
|
|
170
177
|
}));
|
|
171
178
|
});
|
|
172
179
|
exports.StyledPlacementContainer = StyledPlacementContainer;
|
|
173
|
-
StyledPlacementContainer.displayName = "StyledPlacementContainer";
|
|
180
|
+
StyledPlacementContainer.displayName = "StyledPlacementContainer";
|
|
181
|
+
StyledPlacementContainer.displayName = 'StyledPlacementContainer';
|
package/snackbar/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { DURATION, PLACEMENT } from './constants';
|
|
4
|
-
import type { SyntheticEvent } from 'react';
|
|
3
|
+
import type { DURATION, PLACEMENT } from './constants';
|
|
5
4
|
export declare type Duration = typeof DURATION.infinite | typeof DURATION.short | typeof DURATION.medium | typeof DURATION.long;
|
|
6
5
|
export declare type Placement = typeof PLACEMENT.topLeft | typeof PLACEMENT.top | typeof PLACEMENT.topRight | typeof PLACEMENT.bottomLeft | typeof PLACEMENT.bottom | typeof PLACEMENT.bottomRight;
|
|
7
6
|
export declare type SnackbarElementOverrides = {
|
|
@@ -15,7 +14,7 @@ export declare type SnackbarElementOverrides = {
|
|
|
15
14
|
};
|
|
16
15
|
export declare type SnackbarElementProps = {
|
|
17
16
|
actionMessage?: string;
|
|
18
|
-
actionOnClick?: (a: SyntheticEvent<HTMLButtonElement>) => unknown;
|
|
17
|
+
actionOnClick?: (a: React.SyntheticEvent<HTMLButtonElement>) => unknown;
|
|
19
18
|
focus?: boolean;
|
|
20
19
|
message: React.ReactNode;
|
|
21
20
|
overrides?: SnackbarElementOverrides;
|
package/spinner/types.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ var IDENTITY = function IDENTITY(x) {
|
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
function useStyletron() {
|
|
68
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
68
69
|
function css(styles) {
|
|
69
70
|
return _objectSpread({
|
|
70
71
|
label: 'useStyletron mock describes the applied css properties'
|
|
@@ -72,7 +73,8 @@ function useStyletron() {
|
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
return [css, MOCK_THEME];
|
|
75
|
-
}
|
|
76
|
+
} // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
77
|
+
|
|
76
78
|
|
|
77
79
|
function styled(ElementName) {
|
|
78
80
|
var objOrFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -101,6 +103,7 @@ function styled(ElementName) {
|
|
|
101
103
|
_createClass(MockStyledComponent, [{
|
|
102
104
|
key: "getPassedProps",
|
|
103
105
|
value: function getPassedProps() {
|
|
106
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
104
107
|
var _this$props = this.props,
|
|
105
108
|
forwardedRef = _this$props.forwardedRef,
|
|
106
109
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
|
@@ -169,8 +172,10 @@ function styled(ElementName) {
|
|
|
169
172
|
var withStyle = styled;
|
|
170
173
|
exports.withStyle = withStyle;
|
|
171
174
|
|
|
172
|
-
function withWrapper(
|
|
173
|
-
|
|
175
|
+
function withWrapper( // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
176
|
+
StyledElement, // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
177
|
+
wrapperFn) {
|
|
178
|
+
// eslint-disable-next-line react/display-name,@typescript-eslint/no-explicit-any
|
|
174
179
|
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
175
180
|
return wrapperFn(StyledElement)(_objectSpread(_objectSpread({
|
|
176
181
|
ref: ref
|
package/styles/styled.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { StyletronComponent } from 'styletron-react';
|
|
2
|
+
import type { StyletronComponent } from 'styletron-react';
|
|
3
3
|
import type { StyleObject } from 'styletron-standard';
|
|
4
4
|
import type { Theme } from './types';
|
|
5
5
|
export type { StyletronComponent };
|
package/styles/styled.js
CHANGED
|
@@ -56,14 +56,12 @@ var wrapper = function wrapper(StyledComponent) {
|
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
/* eslint-enable flowtype/generic-spacing */
|
|
60
|
-
|
|
61
|
-
/* flowlint unclear-type:error */
|
|
62
59
|
function createThemedStyled() {
|
|
63
60
|
return (0, _styletronReact.createStyled)({
|
|
64
61
|
wrapper: wrapper,
|
|
65
62
|
getInitialStyle: _styletronStandard.getInitialStyle,
|
|
66
|
-
driver: _styletronStandard.driver
|
|
63
|
+
driver: _styletronStandard.driver // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
64
|
+
|
|
67
65
|
});
|
|
68
66
|
}
|
|
69
67
|
|
|
@@ -71,6 +69,7 @@ var styled = createThemedStyled();
|
|
|
71
69
|
exports.styled = styled;
|
|
72
70
|
|
|
73
71
|
function createThemedWithStyle() {
|
|
72
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
74
73
|
return _styletronReact.withStyle;
|
|
75
74
|
}
|
|
76
75
|
|
|
@@ -79,6 +78,7 @@ exports.withStyle = withStyle;
|
|
|
79
78
|
|
|
80
79
|
function createThemedUseStyletron() {
|
|
81
80
|
return function () {
|
|
81
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
82
82
|
var theme = React.useContext(_themeProvider.ThemeContext);
|
|
83
83
|
|
|
84
84
|
var _styletronUseStyletro = (0, _styletronReact.useStyletron)(),
|
|
@@ -89,12 +89,13 @@ function createThemedUseStyletron() {
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
var useStyletron = createThemedUseStyletron();
|
|
92
|
+
var useStyletron = createThemedUseStyletron(); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
93
|
+
|
|
93
94
|
exports.useStyletron = useStyletron;
|
|
94
95
|
|
|
95
96
|
function withWrapper(StyledElement, wrapperFn) {
|
|
96
97
|
return (0, _styletronReact.withWrapper)(StyledElement, function (Styled) {
|
|
97
|
-
// eslint-disable-next-line react/display-name
|
|
98
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any,react/display-name
|
|
98
99
|
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
99
100
|
return /*#__PURE__*/React.createElement(_themeProvider.ThemeContext.Consumer, null, function (theme) {
|
|
100
101
|
return (// @ts-ignore
|