baseui 0.0.0-next-c014e5b → 0.0.0-next-d5a66ca
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/README.md +1 -5
- package/a11y/a11y.d.ts +4 -0
- package/a11y/index.d.ts +1 -0
- package/a11y/types.d.ts +5 -0
- package/accordion/accordion.d.ts +14 -0
- package/accordion/constants.d.ts +3 -0
- package/accordion/index.d.ts +12 -0
- package/accordion/locale.d.ts +9 -0
- package/accordion/panel.d.ts +17 -0
- package/accordion/stateful-panel-container.d.ts +18 -0
- package/accordion/stateful-panel.d.ts +3 -0
- package/accordion/stateless-accordion.d.ts +4 -0
- package/accordion/stateless-accordion.js +10 -4
- package/accordion/styled-components.d.ts +13 -0
- package/accordion/types.d.ts +143 -0
- package/app-nav-bar/app-nav-bar.d.ts +3 -0
- package/app-nav-bar/constants.d.ts +8 -0
- package/app-nav-bar/index.d.ts +14 -0
- package/app-nav-bar/mobile-menu.d.ts +3 -0
- package/app-nav-bar/styled-components.d.ts +32 -0
- package/app-nav-bar/types.d.ts +51 -0
- package/app-nav-bar/user-menu.d.ts +7 -0
- package/app-nav-bar/user-profile-tile.d.ts +5 -0
- package/app-nav-bar/utils.d.ts +6 -0
- package/aspect-ratio-box/aspect-ratio-box-body.d.ts +8 -0
- package/aspect-ratio-box/aspect-ratio-box.d.ts +13 -0
- package/aspect-ratio-box/index.d.ts +3 -0
- package/aspect-ratio-box/types.d.ts +6 -0
- package/avatar/avatar.d.ts +3 -0
- package/avatar/index.d.ts +3 -0
- package/avatar/styled-components.d.ts +4 -0
- package/avatar/types.d.ts +28 -0
- package/badge/badge.d.ts +4 -0
- package/badge/constants.d.ts +36 -0
- package/badge/hint-dot.d.ts +4 -0
- package/badge/index.d.ts +23 -0
- package/badge/notification-circle.d.ts +4 -0
- package/badge/styled-components.d.ts +22 -0
- package/badge/types.d.ts +43 -0
- package/badge/utils.d.ts +2 -0
- package/banner/banner.d.ts +3 -0
- package/banner/constants.d.ts +18 -0
- package/banner/index.d.ts +11 -0
- package/banner/styled-components.d.ts +22 -0
- package/banner/types.d.ts +42 -0
- package/block/block.d.ts +3 -0
- package/block/index.d.ts +2 -0
- package/block/styled-components.d.ts +2 -0
- package/block/types.d.ts +210 -0
- package/breadcrumbs/breadcrumbs.d.ts +10 -0
- package/breadcrumbs/index.d.ts +4 -0
- package/breadcrumbs/locale.d.ts +7 -0
- package/breadcrumbs/styled-components.d.ts +4 -0
- package/breadcrumbs/types.d.ts +17 -0
- package/button/button-internals.d.ts +3 -0
- package/button/button.d.ts +10 -0
- package/button/constants.d.ts +18 -0
- package/button/default-props.d.ts +9 -0
- package/button/index.d.ts +7 -0
- package/button/styled-components.d.ts +6 -0
- package/button/types.d.ts +48 -0
- package/button/utils.d.ts +2 -0
- package/button-group/button-group.d.ts +15 -0
- package/button-group/constants.d.ts +7 -0
- package/button-group/index.d.ts +8 -0
- package/button-group/locale.d.ts +7 -0
- package/button-group/stateful-button-group.d.ts +3 -0
- package/button-group/stateful-container.d.ts +18 -0
- package/button-group/styled-components.d.ts +4 -0
- package/button-group/types.d.ts +59 -0
- package/card/card.d.ts +15 -0
- package/card/images.d.ts +2 -0
- package/card/index.d.ts +3 -0
- package/card/styled-components.d.ts +7 -0
- package/card/types.d.ts +44 -0
- package/checkbox/checkbox.d.ts +21 -0
- package/checkbox/constants.d.ts +14 -0
- package/checkbox/index.d.ts +6 -0
- package/checkbox/stateful-checkbox-container.d.ts +15 -0
- package/checkbox/stateful-checkbox.d.ts +7 -0
- package/checkbox/styled-components.d.ts +7 -0
- package/checkbox/types.d.ts +163 -0
- package/combobox/combobox.d.ts +4 -0
- package/combobox/index.d.ts +7 -0
- package/combobox/styled-components.d.ts +10 -0
- package/combobox/types.d.ts +38 -0
- package/data-table/column-anchor.d.ts +17 -0
- package/data-table/column-boolean.d.ts +10 -0
- package/data-table/column-categorical.d.ts +18 -0
- package/data-table/column-custom.d.ts +10 -0
- package/data-table/column-datetime.d.ts +17 -0
- package/data-table/column-numerical.d.ts +19 -0
- package/data-table/column-row-index.d.ts +6 -0
- package/data-table/column-string.d.ts +11 -0
- package/data-table/column.d.ts +3 -0
- package/data-table/constants.d.ts +35 -0
- package/data-table/data-table.d.ts +3 -0
- package/data-table/filter-menu.d.ts +12 -0
- package/data-table/filter-shell.d.ts +11 -0
- package/data-table/header-cell.d.ts +20 -0
- package/data-table/index.d.ts +28 -0
- package/data-table/locale.d.ts +71 -0
- package/data-table/measure-column-widths.d.ts +11 -0
- package/data-table/stateful-container.d.ts +3 -0
- package/data-table/stateful-data-table.d.ts +3 -0
- package/data-table/text-search.d.ts +7 -0
- package/data-table/types.d.ts +143 -0
- package/datepicker/calendar-header.d.ts +64 -0
- package/datepicker/calendar.d.ts +56 -0
- package/datepicker/constants.d.ts +30 -0
- package/datepicker/datepicker.d.ts +46 -0
- package/datepicker/day.d.ts +87 -0
- package/datepicker/index.d.ts +15 -0
- package/datepicker/locale.d.ts +65 -0
- package/datepicker/month.d.ts +32 -0
- package/datepicker/stateful-calendar.d.ts +8 -0
- package/datepicker/stateful-container.d.ts +16 -0
- package/datepicker/stateful-datepicker.d.ts +8 -0
- package/datepicker/styled-components.d.ts +30 -0
- package/datepicker/types.d.ts +341 -0
- package/datepicker/utils/calendar-header-helpers.d.ts +12 -0
- package/datepicker/utils/date-fns-adapter.d.ts +3 -0
- package/datepicker/utils/date-helpers.d.ts +98 -0
- package/datepicker/utils/day-state.d.ts +20 -0
- package/datepicker/utils/index.d.ts +67 -0
- package/datepicker/utils/types.d.ts +69 -0
- package/datepicker/week.d.ts +21 -0
- package/divider/constants.d.ts +5 -0
- package/divider/constants.js +19 -0
- package/divider/constants.js.flow +16 -0
- package/divider/index.d.ts +2 -0
- package/divider/index.js +46 -0
- package/divider/index.js.flow +25 -0
- package/divider/package.json +4 -0
- package/divider/styled-components.d.ts +2 -0
- package/divider/styled-components.js +67 -0
- package/divider/styled-components.js.flow +45 -0
- package/divider/types.d.ts +4 -0
- package/divider/types.js +5 -0
- package/divider/types.js.flow +17 -0
- package/dnd-list/constants.d.ts +3 -0
- package/dnd-list/index.d.ts +11 -0
- package/dnd-list/list.d.ts +15 -0
- package/dnd-list/stateful-list-container.d.ts +16 -0
- package/dnd-list/stateful-list.d.ts +12 -0
- package/dnd-list/styled-components.d.ts +10 -0
- package/dnd-list/types.d.ts +62 -0
- package/drawer/close-icon.d.ts +4 -0
- package/drawer/constants.d.ts +21 -0
- package/drawer/drawer.d.ts +40 -0
- package/drawer/index.d.ts +5 -0
- package/drawer/locale.d.ts +7 -0
- package/drawer/styled-components.d.ts +7 -0
- package/drawer/types.d.ts +69 -0
- package/es/accordion/stateless-accordion.js +9 -4
- package/es/app-nav-bar/index.js +2 -1
- package/es/badge/index.js +2 -1
- package/es/banner/index.js +2 -1
- package/es/button/index.js +2 -1
- package/es/card/index.js +2 -1
- package/es/combobox/index.js +2 -1
- package/es/divider/constants.js +11 -0
- package/es/divider/index.js +17 -0
- package/es/divider/styled-components.js +58 -0
- package/es/divider/types.js +1 -0
- package/es/dnd-list/index.js +2 -1
- package/es/helper/index.js +2 -1
- package/es/icon/index.js +2 -1
- package/es/layout-grid/index.js +2 -1
- package/es/link/index.js +2 -1
- package/es/list/index.js +2 -1
- package/es/map-marker/index.js +2 -1
- package/es/overrides.js +1 -0
- package/es/pin-code/index.js +3 -1
- package/es/side-navigation/index.js +2 -1
- package/es/skeleton/index.js +2 -1
- package/es/slider/index.js +2 -1
- package/es/snackbar/index.js +2 -1
- package/es/styles/styled.js +2 -1
- package/es/table/index.js +2 -1
- package/es/tabs/index.js +2 -1
- package/es/tabs-motion/index.js +4 -1
- package/es/theme.js +1 -0
- package/es/themes/index.js +2 -1
- package/es/timezonepicker/index.js +2 -1
- package/es/toast/index.js +2 -1
- package/es/tokens/index.js +2 -1
- package/es/tree-view/index.js +3 -1
- package/esm/accordion/stateless-accordion.js +9 -4
- package/esm/app-nav-bar/index.js +2 -1
- package/esm/badge/index.js +2 -1
- package/esm/banner/index.js +2 -1
- package/esm/button/index.js +2 -1
- package/esm/card/index.js +2 -1
- package/esm/combobox/index.js +2 -1
- package/esm/divider/constants.js +11 -0
- package/esm/divider/index.js +19 -0
- package/esm/divider/styled-components.js +57 -0
- package/esm/divider/types.js +1 -0
- package/esm/dnd-list/index.js +2 -1
- package/esm/helper/index.js +2 -1
- package/esm/icon/index.js +2 -1
- package/esm/layout-grid/index.js +2 -1
- package/esm/link/index.js +2 -1
- package/esm/list/index.js +2 -1
- package/esm/map-marker/index.js +2 -1
- package/esm/overrides.js +1 -0
- package/esm/pin-code/index.js +3 -1
- package/esm/side-navigation/index.js +2 -1
- package/esm/skeleton/index.js +2 -1
- package/esm/slider/index.js +2 -1
- package/esm/snackbar/index.js +2 -1
- package/esm/styles/styled.js +2 -1
- package/esm/table/index.js +2 -1
- package/esm/tabs/index.js +2 -1
- package/esm/tabs-motion/index.js +4 -1
- package/esm/theme.js +1 -0
- package/esm/themes/index.js +2 -1
- package/esm/timezonepicker/index.js +2 -1
- package/esm/toast/index.js +2 -1
- package/esm/tokens/index.js +2 -1
- package/esm/tree-view/index.js +3 -1
- package/file-uploader/file-uploader.d.ts +10 -0
- package/file-uploader/index.d.ts +4 -0
- package/file-uploader/locale.d.ts +15 -0
- package/file-uploader/styled-components.d.ts +7 -0
- package/file-uploader/types.d.ts +60 -0
- package/flex-grid/flex-grid-item.d.ts +37 -0
- package/flex-grid/flex-grid.d.ts +14 -0
- package/flex-grid/index.d.ts +3 -0
- package/flex-grid/types.d.ts +16 -0
- package/form-control/form-control.d.ts +12 -0
- package/form-control/index.d.ts +3 -0
- package/form-control/styled-components.d.ts +6 -0
- package/form-control/types.d.ts +49 -0
- package/header-navigation/constants.d.ts +5 -0
- package/header-navigation/examples-icons.d.ts +1 -0
- package/header-navigation/header-navigation.d.ts +9 -0
- package/header-navigation/index.d.ts +4 -0
- package/header-navigation/styled-components.d.ts +6 -0
- package/header-navigation/types.d.ts +7 -0
- package/heading/heading-level.d.ts +5 -0
- package/heading/heading.d.ts +5 -0
- package/heading/index.d.ts +3 -0
- package/heading/types.d.ts +10 -0
- package/helper/constants.d.ts +1 -0
- package/helper/helper-steps.d.ts +3 -0
- package/helper/helper.d.ts +31 -0
- package/helper/index.d.ts +9 -0
- package/helper/stateful-helper.d.ts +19 -0
- package/helper/styled-components.d.ts +3 -0
- package/helper/types.d.ts +8 -0
- package/helpers/base-provider.d.ts +4 -0
- package/helpers/i18n-interpolation.d.ts +3 -0
- package/helpers/overrides.d.ts +63 -0
- package/helpers/react-helpers.d.ts +2 -0
- package/helpers/responsive-helpers.d.ts +7 -0
- package/helpers/strings.d.ts +1 -0
- package/helpers/types.d.ts +17 -0
- package/icon/alert.d.ts +9 -0
- package/icon/arrow-down.d.ts +9 -0
- package/icon/arrow-left.d.ts +9 -0
- package/icon/arrow-right.d.ts +9 -0
- package/icon/arrow-up.d.ts +9 -0
- package/icon/blank.d.ts +9 -0
- package/icon/check-indeterminate.d.ts +9 -0
- package/icon/check.d.ts +9 -0
- package/icon/chevron-down.d.ts +9 -0
- package/icon/chevron-left.d.ts +9 -0
- package/icon/chevron-right.d.ts +9 -0
- package/icon/chevron-up.d.ts +9 -0
- package/icon/delete-alt.d.ts +9 -0
- package/icon/delete.d.ts +9 -0
- package/icon/filter.d.ts +9 -0
- package/icon/grab.d.ts +9 -0
- package/icon/hide.d.ts +9 -0
- package/icon/icon-exports.d.ts +28 -0
- package/icon/icon.d.ts +9 -0
- package/icon/index.d.ts +7 -0
- package/icon/menu.d.ts +9 -0
- package/icon/omit-dollar-prefixed-keys.d.ts +3 -0
- package/icon/overflow.d.ts +9 -0
- package/icon/plus.d.ts +9 -0
- package/icon/search.d.ts +9 -0
- package/icon/show.d.ts +9 -0
- package/icon/spinner.d.ts +9 -0
- package/icon/styled-components.d.ts +9 -0
- package/icon/triangle-down.d.ts +9 -0
- package/icon/triangle-left.d.ts +9 -0
- package/icon/triangle-right.d.ts +9 -0
- package/icon/triangle-up.d.ts +9 -0
- package/icon/types.d.ts +21 -0
- package/icon/upload.d.ts +9 -0
- package/index.d.ts +10 -0
- package/input/base-input.d.ts +64 -0
- package/input/constants.d.ts +22 -0
- package/input/index.d.ts +8 -0
- package/input/input.d.ts +33 -0
- package/input/masked-input.d.ts +9 -0
- package/input/stateful-container.d.ts +16 -0
- package/input/stateful-input.d.ts +3 -0
- package/input/styled-components.d.ts +52 -0
- package/input/types.d.ts +168 -0
- package/input/utils.d.ts +2 -0
- package/layer/constants.d.ts +15 -0
- package/layer/index.d.ts +5 -0
- package/layer/layer.d.ts +3 -0
- package/layer/layers-manager.d.ts +19 -0
- package/layer/tether.d.ts +28 -0
- package/layer/types.d.ts +125 -0
- package/layer/utils.d.ts +6 -0
- package/layout-grid/cell.d.ts +3 -0
- package/layout-grid/constants.d.ts +24 -0
- package/layout-grid/grid.d.ts +4 -0
- package/layout-grid/index.d.ts +13 -0
- package/layout-grid/index.js +2 -0
- package/layout-grid/styled-components.d.ts +4 -0
- package/layout-grid/types.d.ts +99 -0
- package/link/index.d.ts +9 -0
- package/link/index.js +2 -0
- package/link/styled-components.d.ts +4 -0
- package/list/constants.d.ts +9 -0
- package/list/index.d.ts +32 -0
- package/list/list-heading.d.ts +4 -0
- package/list/list-item-label.d.ts +4 -0
- package/list/list-item.d.ts +4 -0
- package/list/menu-adapter.d.ts +10 -0
- package/list/styled-components.d.ts +17 -0
- package/list/types.d.ts +76 -0
- package/list/utils.d.ts +2 -0
- package/locale/en_US.d.ts +3 -0
- package/locale/es_AR.d.ts +3 -0
- package/locale/index.d.ts +46 -0
- package/locale/tr_TR.d.ts +3 -0
- package/locale/types.d.ts +26 -0
- package/map-marker/badge-enhancer.d.ts +4 -0
- package/map-marker/constants.d.ts +226 -0
- package/map-marker/drag-shadow.d.ts +4 -0
- package/map-marker/fixed-marker.d.ts +4 -0
- package/map-marker/floating-marker.d.ts +4 -0
- package/map-marker/index.d.ts +49 -0
- package/map-marker/label-enhancer.d.ts +4 -0
- package/map-marker/needle.d.ts +4 -0
- package/map-marker/pin-head.d.ts +4 -0
- package/map-marker/styled-components.d.ts +74 -0
- package/map-marker/types.d.ts +126 -0
- package/menu/constants.d.ts +27 -0
- package/menu/index.d.ts +28 -0
- package/menu/locale.d.ts +6 -0
- package/menu/maybe-child-menu.d.ts +16 -0
- package/menu/menu.d.ts +3 -0
- package/menu/nested-menus.d.ts +29 -0
- package/menu/option-list.d.ts +4 -0
- package/menu/option-profile.d.ts +4 -0
- package/menu/stateful-container.d.ts +27 -0
- package/menu/stateful-menu.d.ts +5 -0
- package/menu/styled-components.d.ts +24 -0
- package/menu/types.d.ts +284 -0
- package/menu/utils.d.ts +1 -0
- package/modal/close-icon.d.ts +2 -0
- package/modal/constants.d.ts +19 -0
- package/modal/focus-once.d.ts +10 -0
- package/modal/index.d.ts +7 -0
- package/modal/locale.d.ts +7 -0
- package/modal/modal-button.d.ts +5 -0
- package/modal/modal.d.ts +39 -0
- package/modal/styled-components.d.ts +8 -0
- package/modal/types.d.ts +69 -0
- package/notification/index.d.ts +2 -0
- package/notification/notification.d.ts +6 -0
- package/overrides.d.ts +2 -0
- package/overrides.js +5 -0
- package/package.json +4 -4
- package/pagination/constants.d.ts +3 -0
- package/pagination/index.d.ts +14 -0
- package/pagination/locale.d.ts +11 -0
- package/pagination/pagination.d.ts +29 -0
- package/pagination/stateful-container.d.ts +15 -0
- package/pagination/stateful-pagination.d.ts +13 -0
- package/pagination/styled-components.d.ts +5 -0
- package/pagination/types.d.ts +68 -0
- package/pagination/utils.d.ts +1 -0
- package/payment-card/custom-cards.config.d.ts +11 -0
- package/payment-card/icons/amex.d.ts +5 -0
- package/payment-card/icons/dinersclub.d.ts +5 -0
- package/payment-card/icons/discover.d.ts +5 -0
- package/payment-card/icons/elo.d.ts +5 -0
- package/payment-card/icons/generic.d.ts +5 -0
- package/payment-card/icons/jcb.d.ts +5 -0
- package/payment-card/icons/maestro.d.ts +5 -0
- package/payment-card/icons/mastercard.d.ts +5 -0
- package/payment-card/icons/uatp.d.ts +5 -0
- package/payment-card/icons/unionpay.d.ts +5 -0
- package/payment-card/icons/visa.d.ts +5 -0
- package/payment-card/index.d.ts +7 -0
- package/payment-card/payment-card.d.ts +24 -0
- package/payment-card/stateful-payment-card.d.ts +3 -0
- package/payment-card/styled-components.d.ts +4 -0
- package/payment-card/types.d.ts +11 -0
- package/payment-card/utils.d.ts +3 -0
- package/phone-input/base-country-picker.d.ts +19 -0
- package/phone-input/constants.d.ts +1214 -0
- package/phone-input/country-picker.d.ts +19 -0
- package/phone-input/country-select-dropdown.d.ts +6 -0
- package/phone-input/country-select.d.ts +19 -0
- package/phone-input/default-props.d.ts +26 -0
- package/phone-input/flag.d.ts +13 -0
- package/phone-input/flags/FlagAD.d.ts +2 -0
- package/phone-input/flags/FlagAE.d.ts +2 -0
- package/phone-input/flags/FlagAF.d.ts +2 -0
- package/phone-input/flags/FlagAG.d.ts +2 -0
- package/phone-input/flags/FlagAI.d.ts +2 -0
- package/phone-input/flags/FlagAL.d.ts +2 -0
- package/phone-input/flags/FlagAM.d.ts +2 -0
- package/phone-input/flags/FlagAO.d.ts +2 -0
- package/phone-input/flags/FlagAR.d.ts +2 -0
- package/phone-input/flags/FlagAS.d.ts +2 -0
- package/phone-input/flags/FlagAT.d.ts +2 -0
- package/phone-input/flags/FlagAU.d.ts +2 -0
- package/phone-input/flags/FlagAW.d.ts +2 -0
- package/phone-input/flags/FlagAX.d.ts +2 -0
- package/phone-input/flags/FlagAZ.d.ts +2 -0
- package/phone-input/flags/FlagBA.d.ts +2 -0
- package/phone-input/flags/FlagBB.d.ts +2 -0
- package/phone-input/flags/FlagBD.d.ts +2 -0
- package/phone-input/flags/FlagBE.d.ts +2 -0
- package/phone-input/flags/FlagBF.d.ts +2 -0
- package/phone-input/flags/FlagBG.d.ts +2 -0
- package/phone-input/flags/FlagBH.d.ts +2 -0
- package/phone-input/flags/FlagBI.d.ts +2 -0
- package/phone-input/flags/FlagBJ.d.ts +2 -0
- package/phone-input/flags/FlagBL.d.ts +2 -0
- package/phone-input/flags/FlagBM.d.ts +2 -0
- package/phone-input/flags/FlagBN.d.ts +2 -0
- package/phone-input/flags/FlagBO.d.ts +2 -0
- package/phone-input/flags/FlagBR.d.ts +2 -0
- package/phone-input/flags/FlagBS.d.ts +2 -0
- package/phone-input/flags/FlagBT.d.ts +2 -0
- package/phone-input/flags/FlagBV.d.ts +2 -0
- package/phone-input/flags/FlagBW.d.ts +2 -0
- package/phone-input/flags/FlagBY.d.ts +2 -0
- package/phone-input/flags/FlagBZ.d.ts +2 -0
- package/phone-input/flags/FlagCA.d.ts +2 -0
- package/phone-input/flags/FlagCC.d.ts +2 -0
- package/phone-input/flags/FlagCD.d.ts +2 -0
- package/phone-input/flags/FlagCF.d.ts +2 -0
- package/phone-input/flags/FlagCG.d.ts +2 -0
- package/phone-input/flags/FlagCH.d.ts +2 -0
- package/phone-input/flags/FlagCI.d.ts +2 -0
- package/phone-input/flags/FlagCK.d.ts +2 -0
- package/phone-input/flags/FlagCL.d.ts +2 -0
- package/phone-input/flags/FlagCM.d.ts +2 -0
- package/phone-input/flags/FlagCN.d.ts +2 -0
- package/phone-input/flags/FlagCO.d.ts +2 -0
- package/phone-input/flags/FlagCR.d.ts +2 -0
- package/phone-input/flags/FlagCU.d.ts +2 -0
- package/phone-input/flags/FlagCV.d.ts +2 -0
- package/phone-input/flags/FlagCW.d.ts +2 -0
- package/phone-input/flags/FlagCX.d.ts +2 -0
- package/phone-input/flags/FlagCY.d.ts +2 -0
- package/phone-input/flags/FlagCZ.d.ts +2 -0
- package/phone-input/flags/FlagDE.d.ts +2 -0
- package/phone-input/flags/FlagDJ.d.ts +2 -0
- package/phone-input/flags/FlagDK.d.ts +2 -0
- package/phone-input/flags/FlagDM.d.ts +2 -0
- package/phone-input/flags/FlagDO.d.ts +2 -0
- package/phone-input/flags/FlagDZ.d.ts +2 -0
- package/phone-input/flags/FlagEC.d.ts +2 -0
- package/phone-input/flags/FlagEE.d.ts +2 -0
- package/phone-input/flags/FlagEG.d.ts +2 -0
- package/phone-input/flags/FlagER.d.ts +2 -0
- package/phone-input/flags/FlagES.d.ts +2 -0
- package/phone-input/flags/FlagET.d.ts +2 -0
- package/phone-input/flags/FlagEU.d.ts +2 -0
- package/phone-input/flags/FlagFI.d.ts +2 -0
- package/phone-input/flags/FlagFJ.d.ts +2 -0
- package/phone-input/flags/FlagFK.d.ts +2 -0
- package/phone-input/flags/FlagFM.d.ts +2 -0
- package/phone-input/flags/FlagFO.d.ts +2 -0
- package/phone-input/flags/FlagFR.d.ts +2 -0
- package/phone-input/flags/FlagGA.d.ts +2 -0
- package/phone-input/flags/FlagGB.d.ts +2 -0
- package/phone-input/flags/FlagGD.d.ts +2 -0
- package/phone-input/flags/FlagGE.d.ts +2 -0
- package/phone-input/flags/FlagGF.d.ts +2 -0
- package/phone-input/flags/FlagGG.d.ts +2 -0
- package/phone-input/flags/FlagGH.d.ts +2 -0
- package/phone-input/flags/FlagGI.d.ts +2 -0
- package/phone-input/flags/FlagGL.d.ts +2 -0
- package/phone-input/flags/FlagGM.d.ts +2 -0
- package/phone-input/flags/FlagGN.d.ts +2 -0
- package/phone-input/flags/FlagGP.d.ts +2 -0
- package/phone-input/flags/FlagGQ.d.ts +2 -0
- package/phone-input/flags/FlagGR.d.ts +2 -0
- package/phone-input/flags/FlagGS.d.ts +2 -0
- package/phone-input/flags/FlagGT.d.ts +2 -0
- package/phone-input/flags/FlagGU.d.ts +2 -0
- package/phone-input/flags/FlagGW.d.ts +2 -0
- package/phone-input/flags/FlagGY.d.ts +2 -0
- package/phone-input/flags/FlagHK.d.ts +2 -0
- package/phone-input/flags/FlagHM.d.ts +2 -0
- package/phone-input/flags/FlagHN.d.ts +2 -0
- package/phone-input/flags/FlagHR.d.ts +2 -0
- package/phone-input/flags/FlagHT.d.ts +2 -0
- package/phone-input/flags/FlagHU.d.ts +2 -0
- package/phone-input/flags/FlagID.d.ts +2 -0
- package/phone-input/flags/FlagIE.d.ts +2 -0
- package/phone-input/flags/FlagIL.d.ts +2 -0
- package/phone-input/flags/FlagIM.d.ts +2 -0
- package/phone-input/flags/FlagIN.d.ts +2 -0
- package/phone-input/flags/FlagIO.d.ts +2 -0
- package/phone-input/flags/FlagIQ.d.ts +2 -0
- package/phone-input/flags/FlagIR.d.ts +2 -0
- package/phone-input/flags/FlagIS.d.ts +2 -0
- package/phone-input/flags/FlagIT.d.ts +2 -0
- package/phone-input/flags/FlagJE.d.ts +2 -0
- package/phone-input/flags/FlagJM.d.ts +2 -0
- package/phone-input/flags/FlagJO.d.ts +2 -0
- package/phone-input/flags/FlagJP.d.ts +2 -0
- package/phone-input/flags/FlagKE.d.ts +2 -0
- package/phone-input/flags/FlagKG.d.ts +2 -0
- package/phone-input/flags/FlagKH.d.ts +2 -0
- package/phone-input/flags/FlagKI.d.ts +2 -0
- package/phone-input/flags/FlagKM.d.ts +2 -0
- package/phone-input/flags/FlagKN.d.ts +2 -0
- package/phone-input/flags/FlagKP.d.ts +2 -0
- package/phone-input/flags/FlagKR.d.ts +2 -0
- package/phone-input/flags/FlagKW.d.ts +2 -0
- package/phone-input/flags/FlagKY.d.ts +2 -0
- package/phone-input/flags/FlagKZ.d.ts +2 -0
- package/phone-input/flags/FlagLA.d.ts +2 -0
- package/phone-input/flags/FlagLB.d.ts +2 -0
- package/phone-input/flags/FlagLC.d.ts +2 -0
- package/phone-input/flags/FlagLI.d.ts +2 -0
- package/phone-input/flags/FlagLK.d.ts +2 -0
- package/phone-input/flags/FlagLR.d.ts +2 -0
- package/phone-input/flags/FlagLS.d.ts +2 -0
- package/phone-input/flags/FlagLT.d.ts +2 -0
- package/phone-input/flags/FlagLU.d.ts +2 -0
- package/phone-input/flags/FlagLV.d.ts +2 -0
- package/phone-input/flags/FlagLY.d.ts +2 -0
- package/phone-input/flags/FlagMA.d.ts +2 -0
- package/phone-input/flags/FlagMC.d.ts +2 -0
- package/phone-input/flags/FlagMD.d.ts +2 -0
- package/phone-input/flags/FlagME.d.ts +2 -0
- package/phone-input/flags/FlagMF.d.ts +2 -0
- package/phone-input/flags/FlagMG.d.ts +2 -0
- package/phone-input/flags/FlagMH.d.ts +2 -0
- package/phone-input/flags/FlagMK.d.ts +2 -0
- package/phone-input/flags/FlagML.d.ts +2 -0
- package/phone-input/flags/FlagMM.d.ts +2 -0
- package/phone-input/flags/FlagMN.d.ts +2 -0
- package/phone-input/flags/FlagMO.d.ts +2 -0
- package/phone-input/flags/FlagMP.d.ts +2 -0
- package/phone-input/flags/FlagMQ.d.ts +2 -0
- package/phone-input/flags/FlagMR.d.ts +2 -0
- package/phone-input/flags/FlagMS.d.ts +2 -0
- package/phone-input/flags/FlagMT.d.ts +2 -0
- package/phone-input/flags/FlagMU.d.ts +2 -0
- package/phone-input/flags/FlagMV.d.ts +2 -0
- package/phone-input/flags/FlagMW.d.ts +2 -0
- package/phone-input/flags/FlagMX.d.ts +2 -0
- package/phone-input/flags/FlagMY.d.ts +2 -0
- package/phone-input/flags/FlagMZ.d.ts +2 -0
- package/phone-input/flags/FlagNA.d.ts +2 -0
- package/phone-input/flags/FlagNC.d.ts +2 -0
- package/phone-input/flags/FlagNE.d.ts +2 -0
- package/phone-input/flags/FlagNF.d.ts +2 -0
- package/phone-input/flags/FlagNG.d.ts +2 -0
- package/phone-input/flags/FlagNI.d.ts +2 -0
- package/phone-input/flags/FlagNL.d.ts +2 -0
- package/phone-input/flags/FlagNO.d.ts +2 -0
- package/phone-input/flags/FlagNP.d.ts +2 -0
- package/phone-input/flags/FlagNR.d.ts +2 -0
- package/phone-input/flags/FlagNU.d.ts +2 -0
- package/phone-input/flags/FlagNZ.d.ts +2 -0
- package/phone-input/flags/FlagOM.d.ts +2 -0
- package/phone-input/flags/FlagPA.d.ts +2 -0
- package/phone-input/flags/FlagPE.d.ts +2 -0
- package/phone-input/flags/FlagPF.d.ts +2 -0
- package/phone-input/flags/FlagPG.d.ts +2 -0
- package/phone-input/flags/FlagPH.d.ts +2 -0
- package/phone-input/flags/FlagPK.d.ts +2 -0
- package/phone-input/flags/FlagPL.d.ts +2 -0
- package/phone-input/flags/FlagPM.d.ts +2 -0
- package/phone-input/flags/FlagPN.d.ts +2 -0
- package/phone-input/flags/FlagPR.d.ts +2 -0
- package/phone-input/flags/FlagPS.d.ts +2 -0
- package/phone-input/flags/FlagPT.d.ts +2 -0
- package/phone-input/flags/FlagPW.d.ts +2 -0
- package/phone-input/flags/FlagPY.d.ts +2 -0
- package/phone-input/flags/FlagQA.d.ts +2 -0
- package/phone-input/flags/FlagRE.d.ts +2 -0
- package/phone-input/flags/FlagRO.d.ts +2 -0
- package/phone-input/flags/FlagRS.d.ts +2 -0
- package/phone-input/flags/FlagRU.d.ts +2 -0
- package/phone-input/flags/FlagRW.d.ts +2 -0
- package/phone-input/flags/FlagSA.d.ts +2 -0
- package/phone-input/flags/FlagSB.d.ts +2 -0
- package/phone-input/flags/FlagSC.d.ts +2 -0
- package/phone-input/flags/FlagSD.d.ts +2 -0
- package/phone-input/flags/FlagSE.d.ts +2 -0
- package/phone-input/flags/FlagSG.d.ts +2 -0
- package/phone-input/flags/FlagSH.d.ts +2 -0
- package/phone-input/flags/FlagSI.d.ts +2 -0
- package/phone-input/flags/FlagSJ.d.ts +2 -0
- package/phone-input/flags/FlagSK.d.ts +2 -0
- package/phone-input/flags/FlagSL.d.ts +2 -0
- package/phone-input/flags/FlagSM.d.ts +2 -0
- package/phone-input/flags/FlagSN.d.ts +2 -0
- package/phone-input/flags/FlagSO.d.ts +2 -0
- package/phone-input/flags/FlagSR.d.ts +2 -0
- package/phone-input/flags/FlagSS.d.ts +2 -0
- package/phone-input/flags/FlagST.d.ts +2 -0
- package/phone-input/flags/FlagSV.d.ts +2 -0
- package/phone-input/flags/FlagSX.d.ts +2 -0
- package/phone-input/flags/FlagSY.d.ts +2 -0
- package/phone-input/flags/FlagSZ.d.ts +2 -0
- package/phone-input/flags/FlagTC.d.ts +2 -0
- package/phone-input/flags/FlagTD.d.ts +2 -0
- package/phone-input/flags/FlagTF.d.ts +2 -0
- package/phone-input/flags/FlagTG.d.ts +2 -0
- package/phone-input/flags/FlagTH.d.ts +2 -0
- package/phone-input/flags/FlagTJ.d.ts +2 -0
- package/phone-input/flags/FlagTK.d.ts +2 -0
- package/phone-input/flags/FlagTL.d.ts +2 -0
- package/phone-input/flags/FlagTM.d.ts +2 -0
- package/phone-input/flags/FlagTN.d.ts +2 -0
- package/phone-input/flags/FlagTO.d.ts +2 -0
- package/phone-input/flags/FlagTR.d.ts +2 -0
- package/phone-input/flags/FlagTT.d.ts +2 -0
- package/phone-input/flags/FlagTV.d.ts +2 -0
- package/phone-input/flags/FlagTW.d.ts +2 -0
- package/phone-input/flags/FlagTZ.d.ts +2 -0
- package/phone-input/flags/FlagUA.d.ts +2 -0
- package/phone-input/flags/FlagUG.d.ts +2 -0
- package/phone-input/flags/FlagUM.d.ts +2 -0
- package/phone-input/flags/FlagUS.d.ts +2 -0
- package/phone-input/flags/FlagUY.d.ts +2 -0
- package/phone-input/flags/FlagUZ.d.ts +2 -0
- package/phone-input/flags/FlagVA.d.ts +2 -0
- package/phone-input/flags/FlagVC.d.ts +2 -0
- package/phone-input/flags/FlagVE.d.ts +2 -0
- package/phone-input/flags/FlagVG.d.ts +2 -0
- package/phone-input/flags/FlagVI.d.ts +2 -0
- package/phone-input/flags/FlagVN.d.ts +2 -0
- package/phone-input/flags/FlagVU.d.ts +2 -0
- package/phone-input/flags/FlagWF.d.ts +2 -0
- package/phone-input/flags/FlagWS.d.ts +2 -0
- package/phone-input/flags/FlagXK.d.ts +2 -0
- package/phone-input/flags/FlagYE.d.ts +2 -0
- package/phone-input/flags/FlagYT.d.ts +2 -0
- package/phone-input/flags/FlagZA.d.ts +2 -0
- package/phone-input/flags/FlagZM.d.ts +2 -0
- package/phone-input/flags/FlagZW.d.ts +2 -0
- package/phone-input/flags/index.d.ts +241 -0
- package/phone-input/index.d.ts +9 -0
- package/phone-input/phone-input-lite.d.ts +31 -0
- package/phone-input/phone-input-next.d.ts +1238 -0
- package/phone-input/phone-input.d.ts +31 -0
- package/phone-input/stateful-phone-input-container.d.ts +25 -0
- package/phone-input/stateful-phone-input-next.d.ts +31 -0
- package/phone-input/stateful-phone-input.d.ts +31 -0
- package/phone-input/styled-components.d.ts +43 -0
- package/phone-input/types.d.ts +136 -0
- package/phone-input/utils.d.ts +1 -0
- package/pin-code/default-props.d.ts +21 -0
- package/pin-code/index.d.ts +8 -0
- package/pin-code/index.js +20 -0
- package/pin-code/pin-code.d.ts +32 -0
- package/pin-code/stateful-pin-code-container.d.ts +14 -0
- package/pin-code/stateful-pin-code.d.ts +26 -0
- package/pin-code/styled-components.d.ts +6 -0
- package/pin-code/types.d.ts +67 -0
- package/popover/constants.d.ts +45 -0
- package/popover/default-props.d.ts +3 -0
- package/popover/index.d.ts +6 -0
- package/popover/popover.d.ts +9 -0
- package/popover/stateful-container.d.ts +32 -0
- package/popover/stateful-popover.d.ts +20 -0
- package/popover/styled-components.d.ts +34 -0
- package/popover/types.d.ts +163 -0
- package/popover/utils.d.ts +47 -0
- package/progress-bar/constants.d.ts +5 -0
- package/progress-bar/index.d.ts +5 -0
- package/progress-bar/progressbar-rounded.d.ts +4 -0
- package/progress-bar/progressbar.d.ts +4 -0
- package/progress-bar/styled-components.d.ts +29 -0
- package/progress-bar/types.d.ts +68 -0
- package/progress-steps/index.d.ts +5 -0
- package/progress-steps/numbered-step.d.ts +10 -0
- package/progress-steps/progress-steps.d.ts +9 -0
- package/progress-steps/step.d.ts +10 -0
- package/progress-steps/styled-components.d.ts +13 -0
- package/progress-steps/types.d.ts +70 -0
- package/radio/constants.d.ts +7 -0
- package/radio/index.d.ts +7 -0
- package/radio/radio.d.ts +33 -0
- package/radio/radiogroup.d.ts +14 -0
- package/radio/stateful-radiogroup-container.d.ts +11 -0
- package/radio/stateful-radiogroup.d.ts +7 -0
- package/radio/styled-components.d.ts +8 -0
- package/radio/types.d.ts +170 -0
- package/rating/emoticon-rating.d.ts +17 -0
- package/rating/index.d.ts +4 -0
- package/rating/star-rating.d.ts +18 -0
- package/rating/styled-components.d.ts +4 -0
- package/rating/svg-icons.d.ts +6 -0
- package/rating/types.d.ts +47 -0
- package/rating/utils.d.ts +4 -0
- package/select/autosize-input.d.ts +24 -0
- package/select/constants.d.ts +10 -0
- package/select/default-props.d.ts +70 -0
- package/select/dropdown.d.ts +21 -0
- package/select/index.d.ts +19 -0
- package/select/locale.d.ts +11 -0
- package/select/multi-select.d.ts +4 -0
- package/select/multi-value.d.ts +2 -0
- package/select/select-component.d.ts +173 -0
- package/select/select.d.ts +4 -0
- package/select/single-select.d.ts +4 -0
- package/select/stateful-select-container.d.ts +19 -0
- package/select/stateful-select.d.ts +74 -0
- package/select/styled-components.d.ts +32 -0
- package/select/types.d.ts +273 -0
- package/select/utils/default-filter-options.d.ts +22 -0
- package/select/utils/index.d.ts +3 -0
- package/select/value.d.ts +2 -0
- package/side-navigation/constants.d.ts +3 -0
- package/side-navigation/index.d.ts +4 -0
- package/side-navigation/nav-item.d.ts +15 -0
- package/side-navigation/nav.d.ts +21 -0
- package/side-navigation/stateful-container.d.ts +17 -0
- package/side-navigation/stateful-nav.d.ts +3 -0
- package/side-navigation/styled-components.d.ts +11 -0
- package/side-navigation/types.d.ts +98 -0
- package/skeleton/index.d.ts +4 -0
- package/skeleton/skeleton.d.ts +7 -0
- package/skeleton/styled-components.d.ts +10 -0
- package/skeleton/types.d.ts +16 -0
- package/slider/constants.d.ts +4 -0
- package/slider/index.d.ts +8 -0
- package/slider/slider.d.ts +4 -0
- package/slider/stateful-slider-container.d.ts +23 -0
- package/slider/stateful-slider.d.ts +3 -0
- package/slider/styled-components.d.ts +10 -0
- package/slider/types.d.ts +74 -0
- package/snackbar/constants.d.ts +14 -0
- package/snackbar/index.d.ts +16 -0
- package/snackbar/snackbar-context.d.ts +13 -0
- package/snackbar/snackbar-element.d.ts +3 -0
- package/snackbar/styled-components.d.ts +18 -0
- package/snackbar/types.d.ts +34 -0
- package/spinner/constants.d.ts +5 -0
- package/spinner/index.d.ts +4 -0
- package/spinner/styled-components.d.ts +2 -0
- package/spinner/types.d.ts +11 -0
- package/styles/as-primary-export-hoc.d.ts +2 -0
- package/styles/index.d.ts +6 -0
- package/styles/styled.d.ts +31 -0
- package/styles/styled.js +2 -1
- package/styles/theme-provider.d.ts +8 -0
- package/styles/types.d.ts +50 -0
- package/styles/util.d.ts +10 -0
- package/table/constants.d.ts +4 -0
- package/table/filter.d.ts +3 -0
- package/table/index.d.ts +6 -0
- package/table/sortable-head-cell.d.ts +5 -0
- package/table/styled-components.d.ts +23 -0
- package/table/table.d.ts +10 -0
- package/table/types.d.ts +65 -0
- package/table-grid/index.d.ts +3 -0
- package/table-grid/sortable-head-cell.d.ts +2 -0
- package/table-grid/styled-components.d.ts +17 -0
- package/table-semantic/constants.d.ts +11 -0
- package/table-semantic/index.d.ts +6 -0
- package/table-semantic/styled-components.d.ts +67 -0
- package/table-semantic/table-builder-column.d.ts +4 -0
- package/table-semantic/table-builder.d.ts +17 -0
- package/table-semantic/table.d.ts +10 -0
- package/table-semantic/types.d.ts +66 -0
- package/tabs/constants.d.ts +7 -0
- package/tabs/index.d.ts +9 -0
- package/tabs/stateful-tabs.d.ts +12 -0
- package/tabs/styled-components.d.ts +5 -0
- package/tabs/tab.d.ts +25 -0
- package/tabs/tabs.d.ts +12 -0
- package/tabs/types.d.ts +68 -0
- package/tabs-motion/constants.d.ts +11 -0
- package/tabs-motion/index.d.ts +14 -0
- package/tabs-motion/stateful-tabs.d.ts +3 -0
- package/tabs-motion/styled-components.d.ts +29 -0
- package/tabs-motion/tab.d.ts +2 -0
- package/tabs-motion/tabs.d.ts +3 -0
- package/tabs-motion/types.d.ts +57 -0
- package/tabs-motion/utils.d.ts +9 -0
- package/tag/constants.d.ts +27 -0
- package/tag/index.d.ts +4 -0
- package/tag/styled-components.d.ts +6 -0
- package/tag/tag.d.ts +4 -0
- package/tag/types.d.ts +85 -0
- package/tag/utils.d.ts +2 -0
- package/textarea/constants.d.ts +1 -0
- package/textarea/index.d.ts +6 -0
- package/textarea/stateful-container.d.ts +2 -0
- package/textarea/stateful-textarea.d.ts +3 -0
- package/textarea/styled-components.d.ts +4 -0
- package/textarea/textarea.d.ts +32 -0
- package/textarea/types.d.ts +43 -0
- package/theme.d.ts +4 -0
- package/theme.js +5 -0
- package/themes/dark-theme/borders.d.ts +3 -0
- package/themes/dark-theme/color-component-tokens.d.ts +3 -0
- package/themes/dark-theme/color-semantic-tokens.d.ts +3 -0
- package/themes/dark-theme/color-tokens.d.ts +3 -0
- package/themes/dark-theme/create-dark-theme.d.ts +3 -0
- package/themes/dark-theme/dark-theme.d.ts +2 -0
- package/themes/dark-theme/primitives.d.ts +3 -0
- package/themes/index.d.ts +15 -0
- package/themes/light-theme/color-component-tokens.d.ts +3 -0
- package/themes/light-theme/color-semantic-tokens.d.ts +3 -0
- package/themes/light-theme/color-tokens.d.ts +3 -0
- package/themes/light-theme/create-light-theme.d.ts +3 -0
- package/themes/light-theme/light-theme.d.ts +2 -0
- package/themes/light-theme/primitives.d.ts +3 -0
- package/themes/move-theme/dark-theme-with-move.d.ts +2 -0
- package/themes/move-theme/light-theme-with-move.d.ts +2 -0
- package/themes/move-theme/typography.d.ts +82 -0
- package/themes/shared/animation.d.ts +3 -0
- package/themes/shared/borders.d.ts +3 -0
- package/themes/shared/breakpoints.d.ts +3 -0
- package/themes/shared/grid.d.ts +3 -0
- package/themes/shared/lighting.d.ts +3 -0
- package/themes/shared/media-query.d.ts +3 -0
- package/themes/shared/sizing.d.ts +3 -0
- package/themes/shared/typography.d.ts +4 -0
- package/themes/types.d.ts +589 -0
- package/timepicker/index.d.ts +2 -0
- package/timepicker/timepicker.d.ts +34 -0
- package/timepicker/types.d.ts +54 -0
- package/timezonepicker/index.d.ts +5 -0
- package/timezonepicker/timezone-picker.d.ts +10 -0
- package/timezonepicker/types.d.ts +50 -0
- package/timezonepicker/tzdata.d.ts +1 -0
- package/toast/constants.d.ts +18 -0
- package/toast/index.d.ts +9 -0
- package/toast/locale.d.ts +7 -0
- package/toast/styled-components.d.ts +10 -0
- package/toast/toast.d.ts +35 -0
- package/toast/toaster.d.ts +41 -0
- package/toast/types.d.ts +97 -0
- package/tokens/colors.d.ts +3 -0
- package/tokens/index.d.ts +5 -0
- package/tokens/types.d.ts +87 -0
- package/tooltip/constants.d.ts +1 -0
- package/tooltip/default-props.d.ts +3 -0
- package/tooltip/index.d.ts +6 -0
- package/tooltip/stateful-tooltip-container.d.ts +7 -0
- package/tooltip/stateful-tooltip.d.ts +7 -0
- package/tooltip/styled-components.d.ts +15 -0
- package/tooltip/tooltip.d.ts +7 -0
- package/tooltip/types.d.ts +8 -0
- package/tree-view/index.d.ts +11 -0
- package/tree-view/index.js +4 -4
- package/tree-view/stateful-container.d.ts +11 -0
- package/tree-view/stateful-tree-view.d.ts +3 -0
- package/tree-view/styled-components.d.ts +15 -0
- package/tree-view/tree-label-interactable.d.ts +8 -0
- package/tree-view/tree-label.d.ts +4 -0
- package/tree-view/tree-node.d.ts +11 -0
- package/tree-view/tree-view.d.ts +3 -0
- package/tree-view/types.d.ts +68 -0
- package/tree-view/utils.d.ts +11 -0
- package/typography/index.d.ts +37 -0
- package/utils/create-event.d.ts +2 -0
- package/utils/deep-merge.d.ts +1 -0
- package/utils/deprecated-component.d.ts +2 -0
- package/utils/focusVisible.d.ts +10 -0
- package/utils/ownerDocument.d.ts +5 -0
package/README.md
CHANGED
|
@@ -58,11 +58,7 @@ export default function Hello () {
|
|
|
58
58
|
}
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
Both Base Web and Styletron come with [flow types](https://flow.org/) and [TypeScript](https://www.typescriptlang.org/index.html). All our components are typed and examples have Vanilla, Flow and TypeScript versions.
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
yarn add @types/styletron-standard @types/styletron-react @types/styletron-engine-atomic
|
|
65
|
-
```
|
|
61
|
+
Both Base Web and Styletron come with [flow types](https://flow.org/) and [TypeScript](https://www.typescriptlang.org/index.html). All our components are typed and examples have Vanilla, Flow and TypeScript versions.
|
|
66
62
|
|
|
67
63
|
## Docs
|
|
68
64
|
|
package/a11y/a11y.d.ts
ADDED
package/a11y/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Unstable_A11y } from './a11y';
|
package/a11y/types.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { AccordionProps, AccordionState, StateChangeType } from './types';
|
|
3
|
+
export default class Accordion extends React.Component<AccordionProps, AccordionState> {
|
|
4
|
+
static defaultProps: Partial<AccordionProps>;
|
|
5
|
+
state: {
|
|
6
|
+
expanded: React.Key[];
|
|
7
|
+
};
|
|
8
|
+
itemRefs: React.RefObject<HTMLDivElement>[];
|
|
9
|
+
onPanelChange(key: React.Key, onChange: (...args: any[]) => {}, ...args: Array<any>): void;
|
|
10
|
+
internalSetState(type: StateChangeType, changes: AccordionState): void;
|
|
11
|
+
handleKeyDown(e: KeyboardEvent): void;
|
|
12
|
+
getItems(): any;
|
|
13
|
+
render(): JSX.Element;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SharedStylePropsArg } from './types';
|
|
2
|
+
export { default as Accordion } from './accordion';
|
|
3
|
+
export { default as Panel } from './panel';
|
|
4
|
+
export { default as StatefulPanel } from './stateful-panel';
|
|
5
|
+
export { default as StatefulPanelContainer } from './stateful-panel-container';
|
|
6
|
+
export { default as StatelessAccordion } from './stateless-accordion';
|
|
7
|
+
export { STATE_CHANGE_TYPE } from './constants';
|
|
8
|
+
export { Root as StyledRoot, PanelContainer as StyledPanelContainer, Header as StyledHeader, Content as StyledContent, ContentAnimationContainer as StyledContentAnimationContainer, ToggleIcon as StyledToggleIcon, ToggleIconGroup as StyledToggleIconGroup, } from './styled-components';
|
|
9
|
+
export * from './types';
|
|
10
|
+
export type { AccordionLocale } from './locale';
|
|
11
|
+
/** @deprecated use SharedStylePropsArg instead. To be removed in future versions.*/
|
|
12
|
+
export declare type SharedProps = SharedStylePropsArg;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const ForwardedPanel: React.ForwardRefExoticComponent<{
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
'aria-controls'?: string;
|
|
6
|
+
key?: React.Key;
|
|
7
|
+
onChange?: import("./types").OnChangeHandler;
|
|
8
|
+
onClick?: (e: Event) => unknown;
|
|
9
|
+
onKeyDown?: (e: KeyboardEvent) => unknown;
|
|
10
|
+
overrides?: import("./types").PanelOverrides;
|
|
11
|
+
title?: React.ReactNode;
|
|
12
|
+
renderPanelContent?: boolean;
|
|
13
|
+
renderAll?: boolean;
|
|
14
|
+
} & {
|
|
15
|
+
expanded?: boolean;
|
|
16
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
17
|
+
export default ForwardedPanel;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { PanelState, StatefulPanelContainerProps, PanelStateReducer, StateChangeType, OnChangeHandler } from './types';
|
|
3
|
+
declare class StatefulPanelContainer extends React.Component<StatefulPanelContainerProps, PanelState> {
|
|
4
|
+
static defaultProps: {
|
|
5
|
+
initialState: {
|
|
6
|
+
expanded: boolean;
|
|
7
|
+
};
|
|
8
|
+
stateReducer: PanelStateReducer;
|
|
9
|
+
onChange: () => void;
|
|
10
|
+
};
|
|
11
|
+
state: {
|
|
12
|
+
expanded: boolean;
|
|
13
|
+
};
|
|
14
|
+
onChange: OnChangeHandler;
|
|
15
|
+
internalSetState(type: StateChangeType, changes: PanelState): void;
|
|
16
|
+
render(): React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export default StatefulPanelContainer;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StatelessAccordionProps } from './types';
|
|
3
|
+
declare function StatelessAccordion({ accordion, children, disabled, expanded, onChange, overrides, renderAll, }: StatelessAccordionProps): JSX.Element;
|
|
4
|
+
export default StatelessAccordion;
|
|
@@ -9,6 +9,8 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _reactIs = require("react-is");
|
|
13
|
+
|
|
12
14
|
var _overrides = require("../helpers/overrides");
|
|
13
15
|
|
|
14
16
|
var _styledComponents = require("./styled-components");
|
|
@@ -67,9 +69,13 @@ function StatelessAccordion(_ref) {
|
|
|
67
69
|
return /*#__PURE__*/React.createElement(Root, _extends({
|
|
68
70
|
"data-baseweb": "accordion"
|
|
69
71
|
}, rootProps), React.Children.map(children, function (child, index) {
|
|
70
|
-
var
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
var normalizedChild = (0, _reactIs.isElement)(child) || (0, _reactIs.isPortal)(child) ? child :
|
|
73
|
+
/*#__PURE__*/
|
|
74
|
+
// if primitive value - wrap it in a fragment
|
|
75
|
+
React.createElement(React.Fragment, null, child);
|
|
76
|
+
var key = normalizedChild.key || String(index);
|
|
77
|
+
return /*#__PURE__*/React.cloneElement(normalizedChild, {
|
|
78
|
+
disabled: normalizedChild.props.disabled || disabled,
|
|
73
79
|
expanded: expanded.includes(key),
|
|
74
80
|
key: key,
|
|
75
81
|
onChange: // Don't bother constructing the wrapper function if no one is listening
|
|
@@ -97,7 +103,7 @@ function StatelessAccordion(_ref) {
|
|
|
97
103
|
expanded: next
|
|
98
104
|
});
|
|
99
105
|
} : onChange,
|
|
100
|
-
overrides:
|
|
106
|
+
overrides: normalizedChild.props.overrides || PanelOverrides,
|
|
101
107
|
renderAll: renderAll
|
|
102
108
|
});
|
|
103
109
|
}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SharedStylePropsArg } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Main component container element
|
|
4
|
+
*/
|
|
5
|
+
export declare const Root: import("styletron-react").StyletronComponent<"ul", {}>;
|
|
6
|
+
export declare const PanelContainer: import("styletron-react").StyletronComponent<"li", SharedStylePropsArg>;
|
|
7
|
+
export declare const Header: import("styletron-react").StyletronComponent<"div", SharedStylePropsArg>;
|
|
8
|
+
export declare const ToggleIcon: import("styletron-react").StyletronComponent<"svg", SharedStylePropsArg>;
|
|
9
|
+
export declare const ToggleIconGroup: import("styletron-react").StyletronComponent<"g", SharedStylePropsArg>;
|
|
10
|
+
export declare const Content: import("styletron-react").StyletronComponent<"div", SharedStylePropsArg>;
|
|
11
|
+
export declare const ContentAnimationContainer: import("styletron-react").StyletronComponent<"div", {
|
|
12
|
+
$height: string | number;
|
|
13
|
+
} & SharedStylePropsArg>;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { Override } from '../helpers/overrides';
|
|
3
|
+
import { STATE_CHANGE_TYPE } from './constants';
|
|
4
|
+
export declare type AccordionState = {
|
|
5
|
+
expanded: Array<React.Key>;
|
|
6
|
+
};
|
|
7
|
+
export declare type PanelState = {
|
|
8
|
+
expanded: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare type StateChangeType = keyof typeof STATE_CHANGE_TYPE;
|
|
11
|
+
export declare type StateReducer = (stateChangeType: StateChangeType, nextState: AccordionState, currentState: AccordionState) => AccordionState;
|
|
12
|
+
export declare type PanelStateReducer = (stateChangeType: StateChangeType, nextState: PanelState, currentState: PanelState) => PanelState;
|
|
13
|
+
export declare type AccordionOverrides = {
|
|
14
|
+
Content?: Override;
|
|
15
|
+
ContentAnimationContainer?: Override;
|
|
16
|
+
Header?: Override;
|
|
17
|
+
PanelContainer?: Override;
|
|
18
|
+
Root?: Override;
|
|
19
|
+
ToggleIcon?: Override;
|
|
20
|
+
ToggleIconGroup?: Override;
|
|
21
|
+
};
|
|
22
|
+
export declare type PanelOverrides = {
|
|
23
|
+
PanelContainer?: Override;
|
|
24
|
+
Header?: Override;
|
|
25
|
+
ToggleIcon?: Override;
|
|
26
|
+
ToggleIconGroup?: Override;
|
|
27
|
+
Content?: Override;
|
|
28
|
+
ContentAnimationContainer?: Override;
|
|
29
|
+
};
|
|
30
|
+
export declare type OnChangeHandler = (a: {
|
|
31
|
+
expanded: boolean;
|
|
32
|
+
}) => unknown;
|
|
33
|
+
export declare type AccordionOnChangeHandler = (a: {
|
|
34
|
+
expanded: Array<React.Key>;
|
|
35
|
+
}) => unknown;
|
|
36
|
+
export declare type AccordionProps = {
|
|
37
|
+
/** Determines how many panels may be expanded at a time. If set to
|
|
38
|
+
* true it will collapse a current panel when a new panel is expanded.
|
|
39
|
+
* If set to false more than one panel may be expanded at a time. */
|
|
40
|
+
accordion?: boolean;
|
|
41
|
+
/** Accordion expandable items. See Panel API below for reference. */
|
|
42
|
+
children: React.ReactNode;
|
|
43
|
+
/** If set to true all its children panels will be disabled from toggling. */
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
initialState?: AccordionState;
|
|
46
|
+
/** Handler called each time a panel is toggled. expanded prop is an array
|
|
47
|
+
* of Panel keys that are currently expanded. */
|
|
48
|
+
onChange?: AccordionOnChangeHandler;
|
|
49
|
+
overrides?: AccordionOverrides;
|
|
50
|
+
/** Handler called each time the component state changes.
|
|
51
|
+
* Used to override default state-change functionality. */
|
|
52
|
+
stateReducer: StateReducer;
|
|
53
|
+
/**
|
|
54
|
+
* Allows users to render all child content whether a panel is expanded or not
|
|
55
|
+
* for SEO purposed
|
|
56
|
+
*/
|
|
57
|
+
renderAll?: boolean;
|
|
58
|
+
};
|
|
59
|
+
export declare type StatelessAccordionOnChangeHandler = (a: {
|
|
60
|
+
expanded: Array<React.Key>;
|
|
61
|
+
key: React.Key;
|
|
62
|
+
}) => unknown;
|
|
63
|
+
export declare type StatelessAccordionProps = {
|
|
64
|
+
/** Determines how many panels may be expanded at a time. If set to
|
|
65
|
+
* true it will collapse a current panel when a new panel is expanded.
|
|
66
|
+
* If set to false more than one panel may be expanded at a time. */
|
|
67
|
+
accordion?: boolean;
|
|
68
|
+
/** Accordion expandable items. See Panel API below for reference. */
|
|
69
|
+
children: React.ReactNode;
|
|
70
|
+
/** If set to true all its children panels will be disabled from toggling. */
|
|
71
|
+
disabled?: boolean;
|
|
72
|
+
/** List of Panel keys which are expanded. */
|
|
73
|
+
expanded: Array<React.Key>;
|
|
74
|
+
/** Handler called each time a panel is toggled. */
|
|
75
|
+
onChange?: StatelessAccordionOnChangeHandler;
|
|
76
|
+
overrides?: AccordionOverrides & PanelOverrides;
|
|
77
|
+
/**
|
|
78
|
+
* Allows users to render all child content whether a panel is expanded or not
|
|
79
|
+
* for SEO purposed
|
|
80
|
+
*/
|
|
81
|
+
renderPanelContent?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Allows users to render all child content whether a panel is expanded or not
|
|
84
|
+
* for SEO purposed
|
|
85
|
+
*/
|
|
86
|
+
renderAll?: boolean;
|
|
87
|
+
};
|
|
88
|
+
declare type SharedPanelProps = {
|
|
89
|
+
/** The content visible when Panel is expanded. */
|
|
90
|
+
children: React.ReactNode;
|
|
91
|
+
/** Defaults to the disabled value provided by the parent Accordion component. */
|
|
92
|
+
disabled?: boolean;
|
|
93
|
+
/** Id for a panel, when provided populates aria-controls
|
|
94
|
+
* attribute for panel button and content
|
|
95
|
+
* */
|
|
96
|
+
'aria-controls'?: string;
|
|
97
|
+
/** The key of a Panel. Used to maintain list of expanded panels.
|
|
98
|
+
* Must be unique across children of the Accordion. */
|
|
99
|
+
key?: React.Key;
|
|
100
|
+
/** Handler for individual Panel change events. */
|
|
101
|
+
onChange?: OnChangeHandler;
|
|
102
|
+
/** Handler for the Header's click events. */
|
|
103
|
+
onClick?: (e: Event) => unknown;
|
|
104
|
+
/** Handler for the Header's keyDown events. */
|
|
105
|
+
onKeyDown?: (e: KeyboardEvent) => unknown;
|
|
106
|
+
overrides?: PanelOverrides;
|
|
107
|
+
/** The title of an accordion panel. */
|
|
108
|
+
title?: React.ReactNode;
|
|
109
|
+
/**
|
|
110
|
+
* Allows users to render all child content whether a panel is expanded or not
|
|
111
|
+
* for SEO purposed
|
|
112
|
+
*/
|
|
113
|
+
renderPanelContent?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Allows users to render all child content whether a panel is expanded or not
|
|
116
|
+
* for SEO purposed
|
|
117
|
+
*/
|
|
118
|
+
renderAll?: boolean;
|
|
119
|
+
};
|
|
120
|
+
export declare type PanelProps = SharedPanelProps & {
|
|
121
|
+
/** Defines if the panel is expanded. If set to true the panel is rendered expanded. */
|
|
122
|
+
expanded?: boolean;
|
|
123
|
+
};
|
|
124
|
+
declare type SharedStatefulPanelContainerProps = {
|
|
125
|
+
/** Initial state of a stateful panel component.
|
|
126
|
+
* The expanded prop indicates if the panel is initially expanded.
|
|
127
|
+
* If set to true the panel will be expanded initially */
|
|
128
|
+
initialState?: PanelState;
|
|
129
|
+
onChange?: OnChangeHandler;
|
|
130
|
+
stateReducer?: PanelStateReducer;
|
|
131
|
+
};
|
|
132
|
+
export declare type StatefulPanelContainerProps = SharedStatefulPanelContainerProps & {
|
|
133
|
+
children: (props: Omit<PanelProps, 'children'>) => React.ReactNode;
|
|
134
|
+
};
|
|
135
|
+
export declare type StatefulPanelProps = SharedStatefulPanelContainerProps & SharedPanelProps;
|
|
136
|
+
export declare type SharedStylePropsArg = {
|
|
137
|
+
$color?: string;
|
|
138
|
+
$disabled: boolean | undefined | null;
|
|
139
|
+
$expanded?: boolean | null;
|
|
140
|
+
$size?: string | number;
|
|
141
|
+
$isFocusVisible: boolean;
|
|
142
|
+
};
|
|
143
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AppNavBarOverrides, NavItem, UserMenuProps, AppNavBarProps } from './types';
|
|
2
|
+
export { default as AppNavBar } from './app-nav-bar';
|
|
3
|
+
export { POSITION } from './constants';
|
|
4
|
+
export * from './styled-components';
|
|
5
|
+
export * from './types';
|
|
6
|
+
export { setItemActive } from './utils';
|
|
7
|
+
/** @deprecated use AppNavBarOverrides instead. To be removed in future versions.*/
|
|
8
|
+
export declare type AppNavBarOverridesT = AppNavBarOverrides;
|
|
9
|
+
/** @deprecated use NavItem instead. To be removed in future versions.*/
|
|
10
|
+
export declare type NavItemT = NavItem;
|
|
11
|
+
/** @deprecated use UserMenuProps instead. To be removed in future versions.*/
|
|
12
|
+
export declare type UserMenuPropsT = UserMenuProps;
|
|
13
|
+
/** @deprecated use AppNavBarProps instead. To be removed in future versions.*/
|
|
14
|
+
export declare type AppNavBarPropsT = AppNavBarProps;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { KIND } from './constants';
|
|
2
|
+
export declare const StyledRoot: import("styletron-react").StyletronComponent<"div", {}>;
|
|
3
|
+
export declare const StyledSubnavContainer: import("styletron-react").StyletronComponent<"div", {}>;
|
|
4
|
+
export declare const StyledSpacing: import("styletron-react").StyletronComponent<"div", {}>;
|
|
5
|
+
export declare const StyledAppName: import("styletron-react").StyletronComponent<"div", {}>;
|
|
6
|
+
export declare const StyledSideMenuButton: import("styletron-react").StyletronComponent<"button", {
|
|
7
|
+
$isFocusVisible: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const StyledPrimaryMenuContainer: import("styletron-react").StyletronComponent<"div", {}>;
|
|
10
|
+
export declare const StyledMainMenuItem: import("styletron-react").StyletronComponent<"div", {
|
|
11
|
+
$active?: boolean;
|
|
12
|
+
$isFocusVisible: boolean;
|
|
13
|
+
$kind: (typeof KIND)[keyof typeof KIND];
|
|
14
|
+
}>;
|
|
15
|
+
export declare const StyledSecondaryMenuContainer: import("styletron-react").StyletronComponent<"div", {}>;
|
|
16
|
+
export declare const StyledUserMenuButton: import("styletron-react").StyletronComponent<"button", {
|
|
17
|
+
$isFocusVisible: boolean;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const StyledUserMenuProfileListItem: import("styletron-react").StyletronComponent<"li", {
|
|
20
|
+
$disabled?: boolean;
|
|
21
|
+
$isFocused?: boolean;
|
|
22
|
+
$isFocusVisible?: boolean;
|
|
23
|
+
$isHighlighted?: boolean;
|
|
24
|
+
$size?: "default" | "compact";
|
|
25
|
+
} & {
|
|
26
|
+
item?: any;
|
|
27
|
+
}>;
|
|
28
|
+
export declare const StyledUserProfileTileContainer: import("styletron-react").StyletronComponent<"div", {}>;
|
|
29
|
+
export declare const StyledUserProfilePictureContainer: import("styletron-react").StyletronComponent<"div", {}>;
|
|
30
|
+
export declare const StyledUserProfileInfoContainer: import("styletron-react").StyletronComponent<"div", {}>;
|
|
31
|
+
export declare const StyledDesktopMenuContainer: import("styletron-react").StyletronComponent<"div", {}>;
|
|
32
|
+
export declare const StyledDesktopMenu: import("styletron-react").StyletronComponent<"div", {}>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { POSITION } from './constants';
|
|
3
|
+
import type { Override } from '../helpers/overrides';
|
|
4
|
+
export declare type AppNavBarOverrides = {
|
|
5
|
+
Root?: Override;
|
|
6
|
+
AppName?: Override;
|
|
7
|
+
DesktopMenu?: Override;
|
|
8
|
+
DesktopMenuContainer?: Override;
|
|
9
|
+
MainMenuItem?: Override;
|
|
10
|
+
PrimaryMenuContainer?: Override;
|
|
11
|
+
ProfileTileContainer?: Override;
|
|
12
|
+
SecondaryMenuContainer?: Override;
|
|
13
|
+
Spacing?: Override;
|
|
14
|
+
SubnavContainer?: Override;
|
|
15
|
+
UserMenuProfileListItem?: Override;
|
|
16
|
+
UserProfileInfoContainer?: Override;
|
|
17
|
+
UserProfilePictureContainer?: Override;
|
|
18
|
+
UserProfileTileContainer?: Override;
|
|
19
|
+
MobileDrawer?: Override;
|
|
20
|
+
MobileMenu?: Override;
|
|
21
|
+
SideMenuButton?: Override;
|
|
22
|
+
UserMenuButton?: Override;
|
|
23
|
+
UserMenu?: Override;
|
|
24
|
+
};
|
|
25
|
+
export declare type NavItem = {
|
|
26
|
+
active?: boolean;
|
|
27
|
+
icon?: React.ComponentType<any>;
|
|
28
|
+
info?: any;
|
|
29
|
+
label: string;
|
|
30
|
+
children?: NavItem[];
|
|
31
|
+
navExitIcon?: React.ComponentType<any>;
|
|
32
|
+
navPosition?: {
|
|
33
|
+
desktop?: typeof POSITION[keyof typeof POSITION];
|
|
34
|
+
mobile?: typeof POSITION[keyof typeof POSITION];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export declare type UserMenuProps = {
|
|
38
|
+
userItems?: NavItem[];
|
|
39
|
+
username?: string;
|
|
40
|
+
usernameSubtitle?: React.ReactNode;
|
|
41
|
+
userImgUrl?: string;
|
|
42
|
+
onUserItemSelect?: (a: NavItem) => unknown;
|
|
43
|
+
};
|
|
44
|
+
export declare type AppNavBarProps = {
|
|
45
|
+
isMainItemActive?: (a: NavItem) => boolean;
|
|
46
|
+
mainItems?: NavItem[];
|
|
47
|
+
mapItemToNode?: (a: NavItem) => React.ReactNode;
|
|
48
|
+
onMainItemSelect?: (a: NavItem) => unknown;
|
|
49
|
+
overrides?: AppNavBarOverrides;
|
|
50
|
+
title?: React.ReactNode;
|
|
51
|
+
} & UserMenuProps;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { UserMenuProps, NavItem, AppNavBarOverrides } from './types';
|
|
3
|
+
export default function UserMenuComponent(props: {
|
|
4
|
+
mapItemToNode: (a: NavItem) => React.ReactNode;
|
|
5
|
+
onItemSelect: (a: NavItem) => unknown;
|
|
6
|
+
overrides: AppNavBarOverrides;
|
|
7
|
+
} & UserMenuProps): JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { NavItem } from './types';
|
|
2
|
+
declare type GetUniqueIdentifier = (a: NavItem) => string | number;
|
|
3
|
+
export declare function defaultMapItemToNode(item: NavItem): string;
|
|
4
|
+
export declare function mapItemsActive(items: NavItem[], predicate: (a: NavItem) => boolean): NavItem[];
|
|
5
|
+
export declare function setItemActive(items: NavItem[], item: NavItem, getUniqueIdentifier?: GetUniqueIdentifier): NavItem[];
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyledBlockProps, BlockProps } from '../block';
|
|
3
|
+
interface AspectRatioBoxBodyComponentType<D extends React.ElementType> {
|
|
4
|
+
<C extends React.ElementType = D>(props: BlockProps<C> & Omit<StyledBlockProps & React.ComponentProps<C>, keyof BlockProps>): JSX.Element;
|
|
5
|
+
displayName?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const AspectRatioBoxBody: AspectRatioBoxBodyComponentType<"div">;
|
|
8
|
+
export default AspectRatioBoxBody;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type StyledBlockProps } from '../block';
|
|
3
|
+
import type { AspectRatioBoxProps } from './types';
|
|
4
|
+
interface AspectRatioCoxComponentType<D extends React.ElementType> {
|
|
5
|
+
<C extends React.ElementType = D>(props: AspectRatioBoxProps<C> & (React.ComponentProps<C> extends {
|
|
6
|
+
ref?: infer R;
|
|
7
|
+
} ? {
|
|
8
|
+
ref?: R;
|
|
9
|
+
} : {}) & Omit<StyledBlockProps & React.ComponentProps<C>, keyof AspectRatioBoxProps>): JSX.Element;
|
|
10
|
+
displayName?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const AspectRatioBoxComponent: AspectRatioCoxComponentType<"div">;
|
|
13
|
+
export default AspectRatioBoxComponent;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BlockProps } from '../block';
|
|
3
|
+
export declare type AspectRatioBoxProps<T extends React.ElementType = React.ElementType> = {
|
|
4
|
+
/** Aspect ratio is width divided by height. */
|
|
5
|
+
readonly aspectRatio?: number;
|
|
6
|
+
} & BlockProps<T>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AvatarStyleProps, RootStyleProps, InitialsStyleProps } from './types';
|
|
2
|
+
export declare const Avatar: import("styletron-react").StyletronComponent<"img", AvatarStyleProps>;
|
|
3
|
+
export declare const Initials: import("styletron-react").StyletronComponent<"div", InitialsStyleProps>;
|
|
4
|
+
export declare const Root: import("styletron-react").StyletronComponent<"div", RootStyleProps>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Override } from '../helpers/overrides';
|
|
2
|
+
export declare type InitialsStyleProps = {};
|
|
3
|
+
export declare type AvatarStyleProps = {
|
|
4
|
+
$didImageFailToLoad?: boolean;
|
|
5
|
+
$imageLoaded?: boolean;
|
|
6
|
+
$size?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type RootStyleProps = {
|
|
9
|
+
$didImageFailToLoad: boolean;
|
|
10
|
+
$size?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare type StyleProps = RootStyleProps;
|
|
13
|
+
export declare type AvatarOverrides = {
|
|
14
|
+
Avatar?: Override;
|
|
15
|
+
Initials?: Override;
|
|
16
|
+
Root?: Override;
|
|
17
|
+
};
|
|
18
|
+
export declare type AvatarProps = {
|
|
19
|
+
/** Bypasses initial generation from provided name with this value. */
|
|
20
|
+
initials?: string;
|
|
21
|
+
/** Defines an alternative text description of the image. */
|
|
22
|
+
name?: string;
|
|
23
|
+
overrides?: AvatarOverrides;
|
|
24
|
+
/** Defines the width/height of the image. Accepts labels from theme.sizing, or passes value to height/width. */
|
|
25
|
+
size?: string;
|
|
26
|
+
/** Image to display. */
|
|
27
|
+
src?: string;
|
|
28
|
+
};
|
package/badge/badge.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const HIERARCHY: Readonly<{
|
|
2
|
+
primary: "primary";
|
|
3
|
+
secondary: "secondary";
|
|
4
|
+
}>;
|
|
5
|
+
export declare const SHAPE: Readonly<{
|
|
6
|
+
pill: "pill";
|
|
7
|
+
rectangle: "rectangle";
|
|
8
|
+
}>;
|
|
9
|
+
export declare const COLOR: Readonly<{
|
|
10
|
+
accent: "accent";
|
|
11
|
+
primary: "primary";
|
|
12
|
+
positive: "positive";
|
|
13
|
+
negative: "negative";
|
|
14
|
+
warning: "warning";
|
|
15
|
+
}>;
|
|
16
|
+
export declare const PLACEMENT: Readonly<{
|
|
17
|
+
topLeft: "topLeft";
|
|
18
|
+
topRight: "topRight";
|
|
19
|
+
bottomRight: "bottomRight";
|
|
20
|
+
bottomLeft: "bottomLeft";
|
|
21
|
+
topLeftEdge: "topLeftEdge";
|
|
22
|
+
topEdge: "topEdge";
|
|
23
|
+
topRightEdge: "topRightEdge";
|
|
24
|
+
bottomRightEdge: "bottomRightEdge";
|
|
25
|
+
bottomEdge: "bottomEdge";
|
|
26
|
+
bottomLeftEdge: "bottomLeftEdge";
|
|
27
|
+
leftTopEdge: "leftTopEdge";
|
|
28
|
+
rightTopEdge: "rightTopEdge";
|
|
29
|
+
rightBottomEdge: "rightBottomEdge";
|
|
30
|
+
leftBottomEdge: "leftBottomEdge";
|
|
31
|
+
}>;
|
|
32
|
+
export declare const ROLE: Readonly<{
|
|
33
|
+
badge: "badge";
|
|
34
|
+
notificationCircle: "notificationCircle";
|
|
35
|
+
hintDot: "hintDot";
|
|
36
|
+
}>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { HintDotProps } from './types';
|
|
3
|
+
declare const HintDot: ({ children, color, horizontalOffset: horizontalOffsetProp, verticalOffset: verticalOffsetProp, hidden, overrides, }: HintDotProps) => JSX.Element;
|
|
4
|
+
export default HintDot;
|
package/badge/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Hierarchy, Shape, Color, Placement, BadgeOverrides, BadgeProps, NotificationCircleProps, HintDotProps } from './types';
|
|
2
|
+
export { default as Badge } from './badge';
|
|
3
|
+
export { default as NotificationCircle } from './notification-circle';
|
|
4
|
+
export { default as HintDot } from './hint-dot';
|
|
5
|
+
export { HIERARCHY, SHAPE, COLOR, PLACEMENT } from './constants';
|
|
6
|
+
export * from './styled-components';
|
|
7
|
+
export * from './types';
|
|
8
|
+
/** @deprecated use Hierarchy instead. To be removed in future versions.*/
|
|
9
|
+
export declare type HierarchyT = Hierarchy;
|
|
10
|
+
/** @deprecated use Shape instead. To be removed in future versions.*/
|
|
11
|
+
export declare type ShapeT = Shape;
|
|
12
|
+
/** @deprecated use Color instead. To be removed in future versions.*/
|
|
13
|
+
export declare type ColorT = Color;
|
|
14
|
+
/** @deprecated use Placement instead. To be removed in future versions.*/
|
|
15
|
+
export declare type PlacementT = Placement;
|
|
16
|
+
/** @deprecated use BadgeOverrides instead. To be removed in future versions.*/
|
|
17
|
+
export declare type BadgeOverridesT = BadgeOverrides;
|
|
18
|
+
/** @deprecated use BadgeProps instead. To be removed in future versions.*/
|
|
19
|
+
export declare type BadgePropsT = BadgeProps;
|
|
20
|
+
/** @deprecated use NotificationCircleProps instead. To be removed in future versions.*/
|
|
21
|
+
export declare type NotificationCirclePropsT = NotificationCircleProps;
|
|
22
|
+
/** @deprecated use HintDotProps instead. To be removed in future versions.*/
|
|
23
|
+
export declare type HintDotPropsT = HintDotProps;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { NotificationCircleProps } from './types';
|
|
3
|
+
declare const NotificationCircle: ({ children, content: contentProp, color, placement, horizontalOffset, verticalOffset, hidden, overrides, }: NotificationCircleProps) => JSX.Element;
|
|
4
|
+
export default NotificationCircle;
|