@helpdice/ui 1.0.1 → 1.0.2
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/dist/auto-complete/auto-complete-context.d.ts +10 -0
- package/dist/auto-complete/auto-complete-dropdown.d.ts +12 -0
- package/dist/auto-complete/auto-complete-empty.d.ts +8 -0
- package/dist/auto-complete/auto-complete-item.d.ts +8 -0
- package/dist/auto-complete/auto-complete-searching.d.ts +38 -0
- package/dist/auto-complete/auto-complete.d.ts +32 -0
- package/dist/auto-complete/index.d.ts +13 -0
- package/dist/auto-complete/index.js +2334 -0
- package/dist/avatar/avatar-group.d.ts +43 -0
- package/dist/avatar/avatar.d.ts +43 -0
- package/dist/avatar/index.d.ts +9 -0
- package/dist/avatar/index.js +1192 -0
- package/dist/badge/badge-anchor.d.ts +11 -0
- package/dist/badge/badge.d.ts +46 -0
- package/dist/badge/index.d.ts +9 -0
- package/dist/badge/index.js +1290 -0
- package/dist/breadcrumbs/breadcrumbs-item.d.ts +15 -0
- package/dist/breadcrumbs/breadcrumbs-separator.d.ts +42 -0
- package/dist/breadcrumbs/breadcrumbs.d.ts +43 -0
- package/dist/breadcrumbs/index.d.ts +12 -0
- package/dist/breadcrumbs/index.js +1366 -0
- package/dist/button/button-icon.d.ts +10 -0
- package/dist/button/button-loading.d.ts +6 -0
- package/dist/button/button.d.ts +55 -0
- package/dist/button/button.drip.d.ts +10 -0
- package/dist/button/index.d.ts +4 -0
- package/dist/button/index.js +1679 -0
- package/dist/button/styles.d.ts +18 -0
- package/dist/button/utils.d.ts +8 -0
- package/dist/button-dropdown/button-dropdown-context.d.ts +10 -0
- package/dist/button-dropdown/button-dropdown-item.d.ts +13 -0
- package/dist/button-dropdown/button-dropdown.d.ts +49 -0
- package/dist/button-dropdown/icon.d.ts +7 -0
- package/dist/button-dropdown/index.d.ts +9 -0
- package/dist/button-dropdown/index.js +1474 -0
- package/dist/button-dropdown/styles.d.ts +11 -0
- package/dist/button-group/button-group-context.d.ts +10 -0
- package/dist/button-group/button-group.d.ts +47 -0
- package/dist/button-group/index.d.ts +4 -0
- package/dist/button-group/index.js +1183 -0
- package/dist/capacity/capacity.d.ts +43 -0
- package/dist/capacity/index.d.ts +3 -0
- package/dist/capacity/index.js +1186 -0
- package/dist/card/card-content.d.ts +42 -0
- package/dist/card/card-footer.d.ts +43 -0
- package/dist/card/card.d.ts +46 -0
- package/dist/card/index.d.ts +15 -0
- package/dist/card/index.js +1637 -0
- package/dist/card/styles.d.ts +8 -0
- package/dist/cart/index.d.ts +72 -0
- package/dist/cart/useLocalStorage.d.ts +1 -0
- package/dist/checkbox/checkbox-context.d.ts +9 -0
- package/dist/checkbox/checkbox-group.d.ts +45 -0
- package/dist/checkbox/checkbox.d.ts +57 -0
- package/dist/checkbox/checkbox.icon.d.ts +9 -0
- package/dist/checkbox/index.d.ts +9 -0
- package/dist/checkbox/index.js +1410 -0
- package/dist/checkbox/styles.d.ts +7 -0
- package/dist/code/code.d.ts +45 -0
- package/dist/code/index.d.ts +3 -0
- package/dist/code/index.js +1205 -0
- package/dist/code-block/index.d.ts +10 -0
- package/dist/col/index.js +567 -0
- package/dist/collapse/collapse-context.d.ts +7 -0
- package/dist/collapse/collapse-group.d.ts +43 -0
- package/dist/collapse/collapse-icon.d.ts +6 -0
- package/dist/collapse/collapse.d.ts +47 -0
- package/dist/collapse/index.d.ts +9 -0
- package/dist/collapse/index.js +1513 -0
- package/dist/css-baseline/css-baseline.d.ts +11 -0
- package/dist/css-baseline/index.d.ts +1 -0
- package/dist/css-baseline/index.js +839 -0
- package/dist/description/description.d.ts +42 -0
- package/dist/description/index.d.ts +3 -0
- package/dist/description/index.js +1149 -0
- package/dist/display/display.d.ts +44 -0
- package/dist/display/index.d.ts +3 -0
- package/dist/display/index.js +1153 -0
- package/dist/divider/divider.d.ts +46 -0
- package/dist/divider/index.d.ts +4 -0
- package/dist/divider/index.js +1172 -0
- package/dist/dot/dot.d.ts +45 -0
- package/dist/dot/index.d.ts +3 -0
- package/dist/dot/index.js +1159 -0
- package/dist/drawer/drawer-wrapper.d.ts +10 -0
- package/dist/drawer/drawer.d.ts +15 -0
- package/dist/drawer/helper.d.ts +9 -0
- package/dist/drawer/index.d.ts +13 -0
- package/dist/drawer/index.js +1839 -0
- package/dist/fieldset/fieldset-content.d.ts +42 -0
- package/dist/fieldset/fieldset-context.d.ts +12 -0
- package/dist/fieldset/fieldset-footer.d.ts +42 -0
- package/dist/fieldset/fieldset-group.d.ts +44 -0
- package/dist/fieldset/fieldset-subtitle.d.ts +8 -0
- package/dist/fieldset/fieldset-title.d.ts +8 -0
- package/dist/fieldset/fieldset.d.ts +46 -0
- package/dist/fieldset/index.d.ts +22 -0
- package/dist/fieldset/index.js +1444 -0
- package/dist/form/ErrorMessage.d.ts +17 -0
- package/dist/form/Field.d.ts +53 -0
- package/dist/form/FormWrapper.d.ts +62 -0
- package/dist/form/FormikContext.d.ts +6 -0
- package/dist/form/connect.d.ts +12 -0
- package/dist/form/constants.d.ts +1 -0
- package/dist/form/index.d.ts +9 -0
- package/dist/form/types.d.ts +249 -0
- package/dist/form/utils.d.ts +68 -0
- package/dist/form/withFormik.d.ts +68 -0
- package/dist/grid/basic-item.d.ts +19 -0
- package/dist/grid/grid-container.d.ts +299 -0
- package/dist/grid/grid-types.d.ts +11 -0
- package/dist/grid/grid.d.ts +296 -0
- package/dist/grid/index.d.ts +11 -0
- package/dist/grid/index.js +1262 -0
- package/dist/image/helpers.d.ts +2 -0
- package/dist/image/image-browser-https-icon.d.ts +3 -0
- package/dist/image/image-browser.d.ts +47 -0
- package/dist/image/image.d.ts +43 -0
- package/dist/image/image.skeleton.d.ts +7 -0
- package/dist/image/index.d.ts +9 -0
- package/dist/image/index.js +1470 -0
- package/dist/image/styles.d.ts +9 -0
- package/dist/index.d.ts +130 -0
- package/dist/index.js +34412 -0
- package/dist/input/index.d.ts +13 -0
- package/dist/input/index.js +1629 -0
- package/dist/input/input-block-label.d.ts +5 -0
- package/dist/input/input-icon-clear.d.ts +8 -0
- package/dist/input/input-icon.d.ts +8 -0
- package/dist/input/input-label.d.ts +6 -0
- package/dist/input/input-props.d.ts +29 -0
- package/dist/input/input.d.ts +38 -0
- package/dist/input/password-icon.d.ts +6 -0
- package/dist/input/password.d.ts +51 -0
- package/dist/input/styles.d.ts +8 -0
- package/dist/keyboard/index.d.ts +3 -0
- package/dist/keyboard/index.js +1127 -0
- package/dist/keyboard/keyboard.d.ts +46 -0
- package/dist/link/icon.d.ts +4 -0
- package/dist/link/index.d.ts +3 -0
- package/dist/link/index.js +1260 -0
- package/dist/link/link.d.ts +45 -0
- package/dist/loading/index.d.ts +3 -0
- package/dist/loading/index.js +1170 -0
- package/dist/loading/loading.d.ts +47 -0
- package/dist/login-with/LoginSocialAmazon/index.d.ts +19 -0
- package/dist/login-with/LoginSocialApple/index.d.ts +14 -0
- package/dist/login-with/LoginSocialFacebook/index.d.ts +26 -0
- package/dist/login-with/LoginSocialGithub/index.d.ts +21 -0
- package/dist/login-with/LoginSocialGoogle/index.d.ts +25 -0
- package/dist/login-with/LoginSocialInstagram/index.d.ts +22 -0
- package/dist/login-with/LoginSocialLinkedin/index.d.ts +20 -0
- package/dist/login-with/LoginSocialMicrosoft/index.d.ts +24 -0
- package/dist/login-with/LoginSocialPinterest/index.d.ts +19 -0
- package/dist/login-with/LoginSocialTiktok/index.d.ts +16 -0
- package/dist/login-with/LoginSocialTwitter/index.d.ts +20 -0
- package/dist/login-with/index.d.ts +18 -0
- package/dist/modal/index.d.ts +18 -0
- package/dist/modal/index.js +2440 -0
- package/dist/modal/modal-action.d.ts +46 -0
- package/dist/modal/modal-actions.d.ts +5 -0
- package/dist/modal/modal-content.d.ts +42 -0
- package/dist/modal/modal-context.d.ts +6 -0
- package/dist/modal/modal-subtitle.d.ts +42 -0
- package/dist/modal/modal-title.d.ts +42 -0
- package/dist/modal/modal-wrapper.d.ts +8 -0
- package/dist/modal/modal.d.ts +50 -0
- package/dist/note/index.d.ts +3 -0
- package/dist/note/index.js +1177 -0
- package/dist/note/note.d.ts +48 -0
- package/dist/page/index.d.ts +16 -0
- package/dist/page/index.js +1313 -0
- package/dist/page/page-content.d.ts +42 -0
- package/dist/page/page-footer.d.ts +42 -0
- package/dist/page/page-header.d.ts +43 -0
- package/dist/page/page.d.ts +51 -0
- package/dist/pagination/index.d.ts +12 -0
- package/dist/pagination/index.js +1563 -0
- package/dist/pagination/pagination-context.d.ts +11 -0
- package/dist/pagination/pagination-ellipsis.d.ts +7 -0
- package/dist/pagination/pagination-item.d.ts +10 -0
- package/dist/pagination/pagination-next.d.ts +4 -0
- package/dist/pagination/pagination-pages.d.ts +9 -0
- package/dist/pagination/pagination-previous.d.ts +4 -0
- package/dist/pagination/pagination.d.ts +47 -0
- package/dist/popover/index.d.ts +10 -0
- package/dist/popover/index.js +1849 -0
- package/dist/popover/popover-context.d.ts +7 -0
- package/dist/popover/popover-item.d.ts +45 -0
- package/dist/popover/popover.d.ts +52 -0
- package/dist/progress/index.d.ts +3 -0
- package/dist/progress/index.js +1208 -0
- package/dist/progress/progress.d.ts +51 -0
- package/dist/radio/index.d.ts +13 -0
- package/dist/radio/index.js +1392 -0
- package/dist/radio/radio-context.d.ts +9 -0
- package/dist/radio/radio-description.d.ts +42 -0
- package/dist/radio/radio-group.d.ts +47 -0
- package/dist/radio/radio.d.ts +58 -0
- package/dist/radio/styles.d.ts +8 -0
- package/dist/rating/index.d.ts +3 -0
- package/dist/rating/index.js +1297 -0
- package/dist/rating/rating-icon.d.ts +3 -0
- package/dist/rating/rating.d.ts +54 -0
- package/dist/row/index.js +895 -0
- package/dist/search-bar/index.js +1176 -0
- package/dist/select/index.d.ts +9 -0
- package/dist/select/index.js +2125 -0
- package/dist/select/select-context.d.ts +11 -0
- package/dist/select/select-dropdown.d.ts +14 -0
- package/dist/select/select-icon-clear.d.ts +6 -0
- package/dist/select/select-icon.d.ts +3 -0
- package/dist/select/select-input.d.ts +8 -0
- package/dist/select/select-multiple-value.d.ts +7 -0
- package/dist/select/select-option.d.ts +47 -0
- package/dist/select/select.d.ts +62 -0
- package/dist/select/styles.d.ts +9 -0
- package/dist/shared/backdrop.d.ts +14 -0
- package/dist/shared/css-transition.d.ts +12 -0
- package/dist/shared/dropdown.d.ts +9 -0
- package/dist/shared/ellipsis.d.ts +6 -0
- package/dist/shared/expand.d.ts +7 -0
- package/dist/shared/highlight.d.ts +13 -0
- package/dist/skeleton/index.d.ts +14 -0
- package/dist/slider/index.d.ts +3 -0
- package/dist/slider/index.js +1461 -0
- package/dist/slider/slider-dot.d.ts +12 -0
- package/dist/slider/slider-mark.d.ts +10 -0
- package/dist/slider/slider.d.ts +54 -0
- package/dist/slider/styles.d.ts +6 -0
- package/dist/snippet/index.d.ts +4 -0
- package/dist/snippet/index.js +1547 -0
- package/dist/snippet/snippet-icon.d.ts +3 -0
- package/dist/snippet/snippet.d.ts +51 -0
- package/dist/snippet/styles.d.ts +8 -0
- package/dist/spacer/index.d.ts +3 -0
- package/dist/spacer/index.js +1109 -0
- package/dist/spacer/spacer.d.ts +41 -0
- package/dist/spinner/index.d.ts +3 -0
- package/dist/spinner/index.js +1166 -0
- package/dist/spinner/spinner.d.ts +40 -0
- package/dist/styled-jsx.cjs.js +748 -0
- package/dist/table/index.d.ts +5 -0
- package/dist/table/index.js +1486 -0
- package/dist/table/table-body.d.ts +18 -0
- package/dist/table/table-cell.d.ts +18 -0
- package/dist/table/table-column.d.ts +14 -0
- package/dist/table/table-context.d.ts +8 -0
- package/dist/table/table-head.d.ts +14 -0
- package/dist/table/table-types.d.ts +14 -0
- package/dist/table/table.d.ts +57 -0
- package/dist/tabs/index.d.ts +9 -0
- package/dist/tabs/index.js +1488 -0
- package/dist/tabs/tabs-context.d.ts +21 -0
- package/dist/tabs/tabs-item.d.ts +44 -0
- package/dist/tabs/tabs.d.ts +54 -0
- package/dist/tag/index.d.ts +3 -0
- package/dist/tag/index.js +1155 -0
- package/dist/tag/tag.d.ts +51 -0
- package/dist/text/child.d.ts +11 -0
- package/dist/text/index.d.ts +3 -0
- package/dist/text/index.js +1251 -0
- package/dist/text/text.d.ts +59 -0
- package/dist/textarea/index.d.ts +3 -0
- package/dist/textarea/index.js +1298 -0
- package/dist/textarea/textarea.d.ts +54 -0
- package/dist/themes/index.d.ts +4 -0
- package/dist/themes/index.js +302 -0
- package/dist/themes/presets/dark.d.ts +8 -0
- package/dist/themes/presets/default.d.ts +8 -0
- package/dist/themes/presets/index.d.ts +90 -0
- package/dist/themes/presets/shared.d.ts +4 -0
- package/dist/themes/themes.d.ts +18 -0
- package/dist/toggle/index.d.ts +3 -0
- package/dist/toggle/index.js +1245 -0
- package/dist/toggle/styles.d.ts +6 -0
- package/dist/toggle/toggle.d.ts +60 -0
- package/dist/tooltip/helper.d.ts +10 -0
- package/dist/tooltip/index.d.ts +3 -0
- package/dist/tooltip/index.js +1709 -0
- package/dist/tooltip/placement.d.ts +29 -0
- package/dist/tooltip/styles.d.ts +7 -0
- package/dist/tooltip/tooltip-content.d.ts +18 -0
- package/dist/tooltip/tooltip-icon.d.ts +8 -0
- package/dist/tooltip/tooltip.d.ts +59 -0
- package/dist/tree/index.d.ts +10 -0
- package/dist/tree/index.js +1410 -0
- package/dist/tree/tree-context.d.ts +8 -0
- package/dist/tree/tree-file-icon.d.ts +8 -0
- package/dist/tree/tree-file.d.ts +12 -0
- package/dist/tree/tree-folder-icon.d.ts +8 -0
- package/dist/tree/tree-folder.d.ts +12 -0
- package/dist/tree/tree-help.d.ts +4 -0
- package/dist/tree/tree-indents.d.ts +6 -0
- package/dist/tree/tree-status-icon.d.ts +9 -0
- package/dist/tree/tree.d.ts +18 -0
- package/dist/ui-provider/index.d.ts +3 -0
- package/dist/ui-provider/index.js +2155 -0
- package/dist/ui-provider/theme-provider.d.ts +8 -0
- package/dist/ui-provider/ui-provider.d.ts +8 -0
- package/dist/use-all-themes/all-themes-context.d.ts +7 -0
- package/dist/use-all-themes/index.d.ts +3 -0
- package/dist/use-all-themes/index.js +318 -0
- package/dist/use-body-scroll/index.d.ts +3 -0
- package/dist/use-body-scroll/index.js +158 -0
- package/dist/use-body-scroll/use-body-scroll.d.ts +11 -0
- package/dist/use-classes/index.d.ts +2 -0
- package/dist/use-classes/index.js +47 -0
- package/dist/use-classes/use-classes.d.ts +4 -0
- package/dist/use-click-away/index.d.ts +2 -0
- package/dist/use-click-away/index.js +26 -0
- package/dist/use-click-away/use-click-away.d.ts +4 -0
- package/dist/use-clipboard/index.d.ts +3 -0
- package/dist/use-clipboard/index.js +158 -0
- package/dist/use-clipboard/use-clipboard.d.ts +8 -0
- package/dist/use-current-state/index.d.ts +2 -0
- package/dist/use-current-state/index.js +76 -0
- package/dist/use-current-state/use-current-state.d.ts +4 -0
- package/dist/use-input/index.d.ts +3 -0
- package/dist/use-input/index.js +112 -0
- package/dist/use-input/use-input.d.ts +13 -0
- package/dist/use-keyboard/codes.d.ts +92 -0
- package/dist/use-keyboard/helper.d.ts +3 -0
- package/dist/use-keyboard/index.d.ts +5 -0
- package/dist/use-keyboard/index.js +203 -0
- package/dist/use-keyboard/use-keyboard.d.ts +22 -0
- package/dist/use-media-query/index.d.ts +3 -0
- package/dist/use-media-query/index.js +455 -0
- package/dist/use-media-query/use-media-query.d.ts +12 -0
- package/dist/use-modal/index.d.ts +3 -0
- package/dist/use-modal/index.js +97 -0
- package/dist/use-modal/use-modal.d.ts +10 -0
- package/dist/use-scale/index.d.ts +6 -0
- package/dist/use-scale/index.js +592 -0
- package/dist/use-scale/scale-context.d.ts +50 -0
- package/dist/use-scale/utils.d.ts +68 -0
- package/dist/use-scale/with-scale.d.ts +35 -0
- package/dist/use-tabs/index.d.ts +2 -0
- package/dist/use-tabs/index.js +96 -0
- package/dist/use-tabs/use-tabs.d.ts +11 -0
- package/dist/use-theme/index.d.ts +2 -0
- package/dist/use-theme/index.js +316 -0
- package/dist/use-theme/theme-context.d.ts +4 -0
- package/dist/use-toasts/helpers.d.ts +17 -0
- package/dist/use-toasts/index.d.ts +3 -0
- package/dist/use-toasts/index.js +207 -0
- package/dist/use-toasts/toast-container.d.ts +3 -0
- package/dist/use-toasts/toast-item.d.ts +8 -0
- package/dist/use-toasts/use-toast.d.ts +40 -0
- package/dist/user/index.d.ts +8 -0
- package/dist/user/index.js +1392 -0
- package/dist/user/user-link.d.ts +11 -0
- package/dist/user/user.d.ts +46 -0
- package/dist/utils/calculations.d.ts +10 -0
- package/dist/utils/collections.d.ts +15 -0
- package/dist/utils/color.d.ts +2 -0
- package/dist/utils/layouts.d.ts +20 -0
- package/dist/utils/prop-types.d.ts +19 -0
- package/dist/utils/types.d.ts +3 -0
- package/dist/utils/use-body-scroll.d.ts +2 -0
- package/dist/utils/use-click-anywhere.d.ts +2 -0
- package/dist/utils/use-click-away.d.ts +2 -0
- package/dist/utils/use-clipboard.d.ts +2 -0
- package/dist/utils/use-current-state.d.ts +2 -0
- package/dist/utils/use-dom-observer.d.ts +3 -0
- package/dist/utils/use-drag.d.ts +8 -0
- package/dist/utils/use-hd-ui-context.d.ts +16 -0
- package/dist/utils/use-portal.d.ts +2 -0
- package/dist/utils/use-previous.d.ts +2 -0
- package/dist/utils/use-real-shape.d.ts +9 -0
- package/dist/utils/use-resize.d.ts +2 -0
- package/dist/utils/use-ssr.d.ts +6 -0
- package/dist/utils/use-warning.d.ts +2 -0
- package/esm/auto-complete/auto-complete-context.d.ts +10 -0
- package/esm/auto-complete/auto-complete-context.js +8 -0
- package/esm/auto-complete/auto-complete-dropdown.d.ts +12 -0
- package/esm/auto-complete/auto-complete-dropdown.js +43 -0
- package/esm/auto-complete/auto-complete-empty.d.ts +8 -0
- package/esm/auto-complete/auto-complete-empty.js +15 -0
- package/esm/auto-complete/auto-complete-item.d.ts +8 -0
- package/esm/auto-complete/auto-complete-item.js +45 -0
- package/esm/auto-complete/auto-complete-searching.d.ts +38 -0
- package/esm/auto-complete/auto-complete-searching.js +25 -0
- package/esm/auto-complete/auto-complete.d.ts +32 -0
- package/esm/auto-complete/auto-complete.js +197 -0
- package/esm/auto-complete/index.d.ts +13 -0
- package/esm/auto-complete/index.js +11 -0
- package/esm/avatar/avatar-group.d.ts +43 -0
- package/esm/avatar/avatar-group.js +25 -0
- package/esm/avatar/avatar.d.ts +43 -0
- package/esm/avatar/avatar.js +54 -0
- package/esm/avatar/index.d.ts +9 -0
- package/esm/avatar/index.js +6 -0
- package/esm/badge/badge-anchor.d.ts +11 -0
- package/esm/badge/badge-anchor.js +64 -0
- package/esm/badge/badge.d.ts +46 -0
- package/esm/badge/badge.js +50 -0
- package/esm/badge/index.d.ts +9 -0
- package/esm/badge/index.js +6 -0
- package/esm/breadcrumbs/breadcrumbs-item.d.ts +15 -0
- package/esm/breadcrumbs/breadcrumbs-item.js +43 -0
- package/esm/breadcrumbs/breadcrumbs-separator.d.ts +42 -0
- package/esm/breadcrumbs/breadcrumbs-separator.js +21 -0
- package/esm/breadcrumbs/breadcrumbs.d.ts +43 -0
- package/esm/breadcrumbs/breadcrumbs.js +41 -0
- package/esm/breadcrumbs/index.d.ts +12 -0
- package/esm/breadcrumbs/index.js +8 -0
- package/esm/button/button-icon.d.ts +10 -0
- package/esm/button/button-icon.js +26 -0
- package/esm/button/button-loading.d.ts +6 -0
- package/esm/button/button-loading.js +15 -0
- package/esm/button/button.d.ts +55 -0
- package/esm/button/button.drip.d.ts +10 -0
- package/esm/button/button.drip.js +58 -0
- package/esm/button/button.js +132 -0
- package/esm/button/index.d.ts +4 -0
- package/esm/button/index.js +4 -0
- package/esm/button/styles.d.ts +18 -0
- package/esm/button/styles.js +188 -0
- package/esm/button/utils.d.ts +8 -0
- package/esm/button/utils.js +40 -0
- package/esm/button-dropdown/button-dropdown-context.d.ts +10 -0
- package/esm/button-dropdown/button-dropdown-context.js +11 -0
- package/esm/button-dropdown/button-dropdown-item.d.ts +13 -0
- package/esm/button-dropdown/button-dropdown-item.js +47 -0
- package/esm/button-dropdown/button-dropdown.d.ts +49 -0
- package/esm/button-dropdown/button-dropdown.js +105 -0
- package/esm/button-dropdown/icon.d.ts +7 -0
- package/esm/button-dropdown/icon.js +28 -0
- package/esm/button-dropdown/index.d.ts +9 -0
- package/esm/button-dropdown/index.js +6 -0
- package/esm/button-dropdown/styles.d.ts +11 -0
- package/esm/button-dropdown/styles.js +46 -0
- package/esm/button-group/button-group-context.d.ts +10 -0
- package/esm/button-group/button-group-context.js +9 -0
- package/esm/button-group/button-group.d.ts +47 -0
- package/esm/button-group/button-group.js +63 -0
- package/esm/button-group/index.d.ts +4 -0
- package/esm/button-group/index.js +4 -0
- package/esm/capacity/capacity.d.ts +43 -0
- package/esm/capacity/capacity.js +46 -0
- package/esm/capacity/index.d.ts +3 -0
- package/esm/capacity/index.js +4 -0
- package/esm/card/card-content.d.ts +42 -0
- package/esm/card/card-content.js +24 -0
- package/esm/card/card-footer.d.ts +43 -0
- package/esm/card/card-footer.js +31 -0
- package/esm/card/card.d.ts +46 -0
- package/esm/card/card.js +57 -0
- package/esm/card/index.d.ts +15 -0
- package/esm/card/index.js +10 -0
- package/esm/card/styles.d.ts +8 -0
- package/esm/card/styles.js +53 -0
- package/esm/cart/index.d.ts +72 -0
- package/esm/cart/index.js +266 -0
- package/esm/cart/useLocalStorage.d.ts +1 -0
- package/esm/cart/useLocalStorage.js +28 -0
- package/esm/checkbox/checkbox-context.d.ts +9 -0
- package/esm/checkbox/checkbox-context.js +10 -0
- package/esm/checkbox/checkbox-group.d.ts +45 -0
- package/esm/checkbox/checkbox-group.js +64 -0
- package/esm/checkbox/checkbox.d.ts +57 -0
- package/esm/checkbox/checkbox.icon.d.ts +9 -0
- package/esm/checkbox/checkbox.icon.js +46 -0
- package/esm/checkbox/checkbox.js +103 -0
- package/esm/checkbox/index.d.ts +9 -0
- package/esm/checkbox/index.js +6 -0
- package/esm/checkbox/styles.d.ts +7 -0
- package/esm/checkbox/styles.js +27 -0
- package/esm/code/code.d.ts +45 -0
- package/esm/code/code.js +51 -0
- package/esm/code/index.d.ts +3 -0
- package/esm/code/index.js +4 -0
- package/esm/code-block/index.d.ts +10 -0
- package/esm/code-block/index.js +28 -0
- package/esm/col/col.js +26 -0
- package/esm/col/index.js +4 -0
- package/esm/collapse/collapse-context.d.ts +7 -0
- package/esm/collapse/collapse-context.js +8 -0
- package/esm/collapse/collapse-group.d.ts +43 -0
- package/esm/collapse/collapse-group.js +68 -0
- package/esm/collapse/collapse-icon.d.ts +6 -0
- package/esm/collapse/collapse-icon.js +26 -0
- package/esm/collapse/collapse.d.ts +47 -0
- package/esm/collapse/collapse.js +83 -0
- package/esm/collapse/index.d.ts +9 -0
- package/esm/collapse/index.js +6 -0
- package/esm/css-baseline/css-baseline.d.ts +11 -0
- package/esm/css-baseline/css-baseline.js +24 -0
- package/esm/css-baseline/index.d.ts +1 -0
- package/esm/css-baseline/index.js +3 -0
- package/esm/description/description.d.ts +42 -0
- package/esm/description/description.js +34 -0
- package/esm/description/index.d.ts +3 -0
- package/esm/description/index.js +4 -0
- package/esm/display/display.d.ts +44 -0
- package/esm/display/display.js +38 -0
- package/esm/display/index.d.ts +3 -0
- package/esm/display/index.js +4 -0
- package/esm/divider/divider.d.ts +46 -0
- package/esm/divider/divider.js +57 -0
- package/esm/divider/index.d.ts +4 -0
- package/esm/divider/index.js +4 -0
- package/esm/dot/dot.d.ts +45 -0
- package/esm/dot/dot.js +44 -0
- package/esm/dot/index.d.ts +3 -0
- package/esm/dot/index.js +4 -0
- package/esm/drawer/drawer-wrapper.d.ts +10 -0
- package/esm/drawer/drawer-wrapper.js +80 -0
- package/esm/drawer/drawer.d.ts +15 -0
- package/esm/drawer/drawer.js +73 -0
- package/esm/drawer/helper.d.ts +9 -0
- package/esm/drawer/helper.js +27 -0
- package/esm/drawer/index.d.ts +13 -0
- package/esm/drawer/index.js +10 -0
- package/esm/fieldset/fieldset-content.d.ts +42 -0
- package/esm/fieldset/fieldset-content.js +25 -0
- package/esm/fieldset/fieldset-context.d.ts +12 -0
- package/esm/fieldset/fieldset-context.js +9 -0
- package/esm/fieldset/fieldset-footer.d.ts +42 -0
- package/esm/fieldset/fieldset-footer.js +25 -0
- package/esm/fieldset/fieldset-group.d.ts +44 -0
- package/esm/fieldset/fieldset-group.js +79 -0
- package/esm/fieldset/fieldset-subtitle.d.ts +8 -0
- package/esm/fieldset/fieldset-subtitle.js +18 -0
- package/esm/fieldset/fieldset-title.d.ts +8 -0
- package/esm/fieldset/fieldset-title.js +20 -0
- package/esm/fieldset/fieldset.d.ts +46 -0
- package/esm/fieldset/fieldset.js +84 -0
- package/esm/fieldset/index.d.ts +22 -0
- package/esm/fieldset/index.js +15 -0
- package/esm/form/ErrorMessage.d.ts +17 -0
- package/esm/form/ErrorMessage.js +45 -0
- package/esm/form/FastField.js +147 -0
- package/esm/form/Field.d.ts +53 -0
- package/esm/form/Field.js +137 -0
- package/esm/form/FieldArray.js +281 -0
- package/esm/form/Form.js +23 -0
- package/esm/form/FormWrapper.d.ts +62 -0
- package/esm/form/FormWrapper.js +977 -0
- package/esm/form/FormikContext.d.ts +6 -0
- package/esm/form/FormikContext.js +11 -0
- package/esm/form/connect.d.ts +12 -0
- package/esm/form/connect.js +30 -0
- package/esm/form/constants.d.ts +1 -0
- package/esm/form/constants.js +1 -0
- package/esm/form/index.d.ts +9 -0
- package/esm/form/index.js +15 -0
- package/esm/form/types.d.ts +249 -0
- package/esm/form/types.js +1 -0
- package/esm/form/utils.d.ts +68 -0
- package/esm/form/utils.js +179 -0
- package/esm/form/withFormik.d.ts +68 -0
- package/esm/form/withFormik.js +107 -0
- package/esm/formik-native/src/index.js +12 -0
- package/esm/formik-native/test/blah.test.js +5 -0
- package/esm/grid/basic-item.d.ts +19 -0
- package/esm/grid/basic-item.js +87 -0
- package/esm/grid/grid-container.d.ts +299 -0
- package/esm/grid/grid-container.js +40 -0
- package/esm/grid/grid-types.d.ts +11 -0
- package/esm/grid/grid-types.js +8 -0
- package/esm/grid/grid.d.ts +296 -0
- package/esm/grid/grid.js +34 -0
- package/esm/grid/index.d.ts +11 -0
- package/esm/grid/index.js +6 -0
- package/esm/image/helpers.d.ts +2 -0
- package/esm/image/helpers.js +14 -0
- package/esm/image/image-browser-https-icon.d.ts +3 -0
- package/esm/image/image-browser-https-icon.js +21 -0
- package/esm/image/image-browser.d.ts +47 -0
- package/esm/image/image-browser.js +80 -0
- package/esm/image/image.d.ts +43 -0
- package/esm/image/image.js +82 -0
- package/esm/image/image.skeleton.d.ts +7 -0
- package/esm/image/image.skeleton.js +20 -0
- package/esm/image/index.d.ts +9 -0
- package/esm/image/index.js +4 -0
- package/esm/image/styles.d.ts +9 -0
- package/esm/image/styles.js +15 -0
- package/esm/index.d.ts +130 -0
- package/esm/index.js +78 -0
- package/esm/input/index.d.ts +13 -0
- package/esm/input/index.js +8 -0
- package/esm/input/input-block-label.d.ts +5 -0
- package/esm/input/input-block-label.js +16 -0
- package/esm/input/input-icon-clear.d.ts +8 -0
- package/esm/input/input-icon-clear.js +43 -0
- package/esm/input/input-icon.d.ts +8 -0
- package/esm/input/input-icon.js +18 -0
- package/esm/input/input-label.d.ts +6 -0
- package/esm/input/input-label.js +16 -0
- package/esm/input/input-props.d.ts +29 -0
- package/esm/input/input-props.js +1 -0
- package/esm/input/input.d.ts +38 -0
- package/esm/input/input.js +184 -0
- package/esm/input/password-icon.d.ts +6 -0
- package/esm/input/password-icon.js +28 -0
- package/esm/input/password.d.ts +51 -0
- package/esm/input/password.js +54 -0
- package/esm/input/styles.d.ts +8 -0
- package/esm/input/styles.js +31 -0
- package/esm/keyboard/index.d.ts +3 -0
- package/esm/keyboard/index.js +4 -0
- package/esm/keyboard/keyboard.d.ts +46 -0
- package/esm/keyboard/keyboard.js +43 -0
- package/esm/link/icon.d.ts +4 -0
- package/esm/link/icon.js +30 -0
- package/esm/link/index.d.ts +3 -0
- package/esm/link/index.js +2 -0
- package/esm/link/link.d.ts +45 -0
- package/esm/link/link.js +47 -0
- package/esm/loading/index.d.ts +3 -0
- package/esm/loading/index.js +2 -0
- package/esm/loading/loading.d.ts +47 -0
- package/esm/loading/loading.js +55 -0
- package/esm/login-with/LoginSocialAmazon/index.d.ts +19 -0
- package/esm/login-with/LoginSocialAmazon/index.js +142 -0
- package/esm/login-with/LoginSocialApple/index.d.ts +14 -0
- package/esm/login-with/LoginSocialApple/index.js +141 -0
- package/esm/login-with/LoginSocialFacebook/index.d.ts +26 -0
- package/esm/login-with/LoginSocialFacebook/index.js +148 -0
- package/esm/login-with/LoginSocialGithub/index.d.ts +21 -0
- package/esm/login-with/LoginSocialGithub/index.js +163 -0
- package/esm/login-with/LoginSocialGoogle/index.d.ts +25 -0
- package/esm/login-with/LoginSocialGoogle/index.js +206 -0
- package/esm/login-with/LoginSocialInstagram/index.d.ts +22 -0
- package/esm/login-with/LoginSocialInstagram/index.js +145 -0
- package/esm/login-with/LoginSocialLinkedin/index.d.ts +20 -0
- package/esm/login-with/LoginSocialLinkedin/index.js +151 -0
- package/esm/login-with/LoginSocialMicrosoft/index.d.ts +24 -0
- package/esm/login-with/LoginSocialMicrosoft/index.js +154 -0
- package/esm/login-with/LoginSocialPinterest/index.d.ts +19 -0
- package/esm/login-with/LoginSocialPinterest/index.js +171 -0
- package/esm/login-with/LoginSocialTiktok/index.d.ts +16 -0
- package/esm/login-with/LoginSocialTiktok/index.js +152 -0
- package/esm/login-with/LoginSocialTwitter/index.d.ts +20 -0
- package/esm/login-with/LoginSocialTwitter/index.js +177 -0
- package/esm/login-with/helper/signature.js +142 -0
- package/esm/login-with/index.d.ts +18 -0
- package/esm/login-with/index.js +11 -0
- package/esm/modal/index.d.ts +18 -0
- package/esm/modal/index.js +10 -0
- package/esm/modal/modal-action.d.ts +46 -0
- package/esm/modal/modal-action.js +69 -0
- package/esm/modal/modal-actions.d.ts +5 -0
- package/esm/modal/modal-actions.js +36 -0
- package/esm/modal/modal-content.d.ts +42 -0
- package/esm/modal/modal-content.js +24 -0
- package/esm/modal/modal-context.d.ts +6 -0
- package/esm/modal/modal-context.js +6 -0
- package/esm/modal/modal-subtitle.d.ts +42 -0
- package/esm/modal/modal-subtitle.js +25 -0
- package/esm/modal/modal-title.d.ts +42 -0
- package/esm/modal/modal-title.js +25 -0
- package/esm/modal/modal-wrapper.d.ts +8 -0
- package/esm/modal/modal-wrapper.js +74 -0
- package/esm/modal/modal.d.ts +50 -0
- package/esm/modal/modal.js +94 -0
- package/esm/note/index.d.ts +3 -0
- package/esm/note/index.js +2 -0
- package/esm/note/note.d.ts +48 -0
- package/esm/note/note.js +62 -0
- package/esm/page/index.d.ts +16 -0
- package/esm/page/index.js +9 -0
- package/esm/page/page-content.d.ts +42 -0
- package/esm/page/page-content.js +23 -0
- package/esm/page/page-footer.d.ts +42 -0
- package/esm/page/page-footer.js +21 -0
- package/esm/page/page-header.d.ts +43 -0
- package/esm/page/page-header.js +29 -0
- package/esm/page/page.d.ts +51 -0
- package/esm/page/page.js +80 -0
- package/esm/pagination/index.d.ts +12 -0
- package/esm/pagination/index.js +6 -0
- package/esm/pagination/pagination-context.d.ts +11 -0
- package/esm/pagination/pagination-context.js +8 -0
- package/esm/pagination/pagination-ellipsis.d.ts +7 -0
- package/esm/pagination/pagination-ellipsis.js +69 -0
- package/esm/pagination/pagination-item.d.ts +10 -0
- package/esm/pagination/pagination-item.js +43 -0
- package/esm/pagination/pagination-next.d.ts +4 -0
- package/esm/pagination/pagination-next.js +21 -0
- package/esm/pagination/pagination-pages.d.ts +9 -0
- package/esm/pagination/pagination-pages.js +86 -0
- package/esm/pagination/pagination-previous.d.ts +4 -0
- package/esm/pagination/pagination-previous.js +21 -0
- package/esm/pagination/pagination.d.ts +47 -0
- package/esm/pagination/pagination.js +96 -0
- package/esm/popover/index.d.ts +10 -0
- package/esm/popover/index.js +7 -0
- package/esm/popover/popover-context.d.ts +7 -0
- package/esm/popover/popover-context.js +9 -0
- package/esm/popover/popover-item.d.ts +45 -0
- package/esm/popover/popover-item.js +55 -0
- package/esm/popover/popover.d.ts +52 -0
- package/esm/popover/popover.js +86 -0
- package/esm/progress/index.d.ts +3 -0
- package/esm/progress/index.js +2 -0
- package/esm/progress/progress.d.ts +51 -0
- package/esm/progress/progress.js +68 -0
- package/esm/radio/index.d.ts +13 -0
- package/esm/radio/index.js +7 -0
- package/esm/radio/radio-context.d.ts +9 -0
- package/esm/radio/radio-context.js +9 -0
- package/esm/radio/radio-description.d.ts +42 -0
- package/esm/radio/radio-description.js +25 -0
- package/esm/radio/radio-group.d.ts +47 -0
- package/esm/radio/radio-group.js +57 -0
- package/esm/radio/radio.d.ts +58 -0
- package/esm/radio/radio.js +109 -0
- package/esm/radio/styles.d.ts +8 -0
- package/esm/radio/styles.js +31 -0
- package/esm/rating/index.d.ts +3 -0
- package/esm/rating/index.js +2 -0
- package/esm/rating/rating-icon.d.ts +3 -0
- package/esm/rating/rating-icon.js +18 -0
- package/esm/rating/rating.d.ts +54 -0
- package/esm/rating/rating.js +101 -0
- package/esm/row/index.js +2 -0
- package/esm/row/row.js +51 -0
- package/esm/search-bar/components/ClearIcon.js +42 -0
- package/esm/search-bar/components/Results.js +87 -0
- package/esm/search-bar/components/SearchIcon.js +24 -0
- package/esm/search-bar/components/SearchInput.js +75 -0
- package/esm/search-bar/components/index.js +302 -0
- package/esm/search-bar/config/config.js +26 -0
- package/esm/search-bar/index.js +2 -0
- package/esm/search-bar/utils/utils.js +14 -0
- package/esm/select/index.d.ts +9 -0
- package/esm/select/index.js +4 -0
- package/esm/select/select-context.d.ts +11 -0
- package/esm/select/select-context.js +9 -0
- package/esm/select/select-dropdown.d.ts +14 -0
- package/esm/select/select-dropdown.js +41 -0
- package/esm/select/select-icon-clear.d.ts +6 -0
- package/esm/select/select-icon-clear.js +37 -0
- package/esm/select/select-icon.d.ts +3 -0
- package/esm/select/select-icon.js +21 -0
- package/esm/select/select-input.d.ts +8 -0
- package/esm/select/select-input.js +35 -0
- package/esm/select/select-multiple-value.d.ts +7 -0
- package/esm/select/select-multiple-value.js +21 -0
- package/esm/select/select-option.d.ts +47 -0
- package/esm/select/select-option.js +86 -0
- package/esm/select/select.d.ts +62 -0
- package/esm/select/select.js +211 -0
- package/esm/select/styles.d.ts +9 -0
- package/esm/select/styles.js +36 -0
- package/esm/shared/backdrop.d.ts +14 -0
- package/esm/shared/backdrop.js +66 -0
- package/esm/shared/css-transition.d.ts +12 -0
- package/esm/shared/css-transition.js +65 -0
- package/esm/shared/dropdown.d.ts +9 -0
- package/esm/shared/dropdown.js +99 -0
- package/esm/shared/ellipsis.d.ts +6 -0
- package/esm/shared/ellipsis.js +13 -0
- package/esm/shared/expand.d.ts +7 -0
- package/esm/shared/expand.js +86 -0
- package/esm/shared/highlight.d.ts +13 -0
- package/esm/shared/highlight.js +46 -0
- package/esm/skeleton/index.d.ts +14 -0
- package/esm/skeleton/index.js +48 -0
- package/esm/slider/index.d.ts +3 -0
- package/esm/slider/index.js +2 -0
- package/esm/slider/slider-dot.d.ts +12 -0
- package/esm/slider/slider-dot.js +27 -0
- package/esm/slider/slider-mark.d.ts +10 -0
- package/esm/slider/slider-mark.js +35 -0
- package/esm/slider/slider.d.ts +54 -0
- package/esm/slider/slider.js +146 -0
- package/esm/slider/styles.d.ts +6 -0
- package/esm/slider/styles.js +21 -0
- package/esm/snippet/index.d.ts +4 -0
- package/esm/snippet/index.js +2 -0
- package/esm/snippet/snippet-icon.d.ts +3 -0
- package/esm/snippet/snippet-icon.js +25 -0
- package/esm/snippet/snippet.d.ts +51 -0
- package/esm/snippet/snippet.js +93 -0
- package/esm/snippet/styles.d.ts +8 -0
- package/esm/snippet/styles.js +48 -0
- package/esm/spacer/index.d.ts +3 -0
- package/esm/spacer/index.js +2 -0
- package/esm/spacer/spacer.d.ts +41 -0
- package/esm/spacer/spacer.js +24 -0
- package/esm/spinner/index.d.ts +3 -0
- package/esm/spinner/index.js +2 -0
- package/esm/spinner/spinner.d.ts +40 -0
- package/esm/spinner/spinner.js +40 -0
- package/esm/styled-jsx-server.es.js +5 -0
- package/esm/styled-jsx.es.js +737 -0
- package/esm/table/index.d.ts +5 -0
- package/esm/table/index.js +2 -0
- package/esm/table/table-body.d.ts +18 -0
- package/esm/table/table-body.js +45 -0
- package/esm/table/table-cell.d.ts +18 -0
- package/esm/table/table-cell.js +25 -0
- package/esm/table/table-column.d.ts +14 -0
- package/esm/table/table-column.js +33 -0
- package/esm/table/table-context.d.ts +8 -0
- package/esm/table/table-context.js +9 -0
- package/esm/table/table-head.d.ts +14 -0
- package/esm/table/table-head.js +51 -0
- package/esm/table/table-types.d.ts +14 -0
- package/esm/table/table-types.js +1 -0
- package/esm/table/table.d.ts +57 -0
- package/esm/table/table.js +104 -0
- package/esm/tabs/index.d.ts +9 -0
- package/esm/tabs/index.js +7 -0
- package/esm/tabs/tabs-context.d.ts +21 -0
- package/esm/tabs/tabs-context.js +8 -0
- package/esm/tabs/tabs-item.d.ts +44 -0
- package/esm/tabs/tabs-item.js +71 -0
- package/esm/tabs/tabs.d.ts +54 -0
- package/esm/tabs/tabs.js +138 -0
- package/esm/tag/index.d.ts +3 -0
- package/esm/tag/index.js +4 -0
- package/esm/tag/tag.d.ts +51 -0
- package/esm/tag/tag.js +71 -0
- package/esm/text/child.d.ts +11 -0
- package/esm/text/child.js +70 -0
- package/esm/text/index.d.ts +3 -0
- package/esm/text/index.js +4 -0
- package/esm/text/text.d.ts +59 -0
- package/esm/text/text.js +103 -0
- package/esm/textarea/index.d.ts +3 -0
- package/esm/textarea/index.js +2 -0
- package/esm/textarea/textarea.d.ts +54 -0
- package/esm/textarea/textarea.js +105 -0
- package/esm/themes/index.d.ts +4 -0
- package/esm/themes/index.js +2 -0
- package/esm/themes/presets/dark.d.ts +8 -0
- package/esm/themes/presets/dark.js +64 -0
- package/esm/themes/presets/default.d.ts +8 -0
- package/esm/themes/presets/default.js +64 -0
- package/esm/themes/presets/index.d.ts +90 -0
- package/esm/themes/presets/index.js +1 -0
- package/esm/themes/presets/shared.d.ts +4 -0
- package/esm/themes/presets/shared.js +42 -0
- package/esm/themes/themes.d.ts +18 -0
- package/esm/themes/themes.js +76 -0
- package/esm/toggle/index.d.ts +3 -0
- package/esm/toggle/index.js +2 -0
- package/esm/toggle/styles.d.ts +6 -0
- package/esm/toggle/styles.js +21 -0
- package/esm/toggle/toggle.d.ts +60 -0
- package/esm/toggle/toggle.js +76 -0
- package/esm/tooltip/__test__/index.test.js +168 -0
- package/esm/tooltip/helper.d.ts +10 -0
- package/esm/tooltip/helper.js +21 -0
- package/esm/tooltip/index.d.ts +3 -0
- package/esm/tooltip/index.js +2 -0
- package/esm/tooltip/placement.d.ts +29 -0
- package/esm/tooltip/placement.js +160 -0
- package/esm/tooltip/styles.d.ts +7 -0
- package/esm/tooltip/styles.js +16 -0
- package/esm/tooltip/tooltip-content.d.ts +18 -0
- package/esm/tooltip/tooltip-content.js +75 -0
- package/esm/tooltip/tooltip-icon.d.ts +8 -0
- package/esm/tooltip/tooltip-icon.js +28 -0
- package/esm/tooltip/tooltip.d.ts +59 -0
- package/esm/tooltip/tooltip.js +120 -0
- package/esm/tree/index.d.ts +10 -0
- package/esm/tree/index.js +6 -0
- package/esm/tree/tree-context.d.ts +8 -0
- package/esm/tree/tree-context.js +9 -0
- package/esm/tree/tree-file-icon.d.ts +8 -0
- package/esm/tree/tree-file-icon.js +34 -0
- package/esm/tree/tree-file.d.ts +12 -0
- package/esm/tree/tree-file.js +52 -0
- package/esm/tree/tree-folder-icon.d.ts +8 -0
- package/esm/tree/tree-folder-icon.js +31 -0
- package/esm/tree/tree-folder.d.ts +12 -0
- package/esm/tree/tree-folder.js +81 -0
- package/esm/tree/tree-help.d.ts +4 -0
- package/esm/tree/tree-help.js +16 -0
- package/esm/tree/tree-indents.d.ts +6 -0
- package/esm/tree/tree-indents.js +22 -0
- package/esm/tree/tree-status-icon.d.ts +9 -0
- package/esm/tree/tree-status-icon.js +44 -0
- package/esm/tree/tree.d.ts +18 -0
- package/esm/tree/tree.js +62 -0
- package/esm/ui-provider/index.d.ts +3 -0
- package/esm/ui-provider/index.js +2 -0
- package/esm/ui-provider/theme-provider.d.ts +8 -0
- package/esm/ui-provider/theme-provider.js +45 -0
- package/esm/ui-provider/ui-provider.d.ts +8 -0
- package/esm/ui-provider/ui-provider.js +55 -0
- package/esm/use-all-themes/all-themes-context.d.ts +7 -0
- package/esm/use-all-themes/all-themes-context.js +9 -0
- package/esm/use-all-themes/index.d.ts +3 -0
- package/esm/use-all-themes/index.js +2 -0
- package/esm/use-body-scroll/index.d.ts +3 -0
- package/esm/use-body-scroll/index.js +2 -0
- package/esm/use-body-scroll/use-body-scroll.d.ts +11 -0
- package/esm/use-body-scroll/use-body-scroll.js +63 -0
- package/esm/use-classes/index.d.ts +2 -0
- package/esm/use-classes/index.js +2 -0
- package/esm/use-classes/use-classes.d.ts +4 -0
- package/esm/use-classes/use-classes.js +32 -0
- package/esm/use-click-away/index.d.ts +2 -0
- package/esm/use-click-away/index.js +2 -0
- package/esm/use-click-away/use-click-away.d.ts +4 -0
- package/esm/use-click-away/use-click-away.js +21 -0
- package/esm/use-clipboard/index.d.ts +3 -0
- package/esm/use-clipboard/index.js +2 -0
- package/esm/use-clipboard/use-clipboard.d.ts +8 -0
- package/esm/use-clipboard/use-clipboard.js +39 -0
- package/esm/use-current-state/index.d.ts +2 -0
- package/esm/use-current-state/index.js +2 -0
- package/esm/use-current-state/use-current-state.d.ts +4 -0
- package/esm/use-current-state/use-current-state.js +23 -0
- package/esm/use-input/index.d.ts +3 -0
- package/esm/use-input/index.js +2 -0
- package/esm/use-input/use-input.d.ts +13 -0
- package/esm/use-input/use-input.js +29 -0
- package/esm/use-keyboard/codes.d.ts +92 -0
- package/esm/use-keyboard/codes.js +95 -0
- package/esm/use-keyboard/helper.d.ts +3 -0
- package/esm/use-keyboard/helper.js +26 -0
- package/esm/use-keyboard/index.d.ts +5 -0
- package/esm/use-keyboard/index.js +4 -0
- package/esm/use-keyboard/use-keyboard.d.ts +22 -0
- package/esm/use-keyboard/use-keyboard.js +70 -0
- package/esm/use-media-query/index.d.ts +3 -0
- package/esm/use-media-query/index.js +2 -0
- package/esm/use-media-query/use-media-query.d.ts +12 -0
- package/esm/use-media-query/use-media-query.js +81 -0
- package/esm/use-modal/index.d.ts +3 -0
- package/esm/use-modal/index.js +2 -0
- package/esm/use-modal/use-modal.d.ts +10 -0
- package/esm/use-modal/use-modal.js +22 -0
- package/esm/use-scale/index.d.ts +6 -0
- package/esm/use-scale/index.js +8 -0
- package/esm/use-scale/scale-context.d.ts +50 -0
- package/esm/use-scale/scale-context.js +37 -0
- package/esm/use-scale/utils.d.ts +68 -0
- package/esm/use-scale/utils.js +49 -0
- package/esm/use-scale/with-scale.d.ts +35 -0
- package/esm/use-scale/with-scale.js +102 -0
- package/esm/use-tabs/index.d.ts +2 -0
- package/esm/use-tabs/index.js +2 -0
- package/esm/use-tabs/use-tabs.d.ts +11 -0
- package/esm/use-tabs/use-tabs.js +21 -0
- package/esm/use-theme/index.d.ts +2 -0
- package/esm/use-theme/index.js +2 -0
- package/esm/use-theme/theme-context.d.ts +4 -0
- package/esm/use-theme/theme-context.js +9 -0
- package/esm/use-toasts/helpers.d.ts +17 -0
- package/esm/use-toasts/helpers.js +68 -0
- package/esm/use-toasts/index.d.ts +3 -0
- package/esm/use-toasts/index.js +2 -0
- package/esm/use-toasts/toast-container.d.ts +3 -0
- package/esm/use-toasts/toast-container.js +120 -0
- package/esm/use-toasts/toast-item.d.ts +8 -0
- package/esm/use-toasts/toast-item.js +43 -0
- package/esm/use-toasts/use-toast.d.ts +40 -0
- package/esm/use-toasts/use-toast.js +103 -0
- package/esm/user/index.d.ts +8 -0
- package/esm/user/index.js +4 -0
- package/esm/user/user-link.d.ts +11 -0
- package/esm/user/user-link.js +26 -0
- package/esm/user/user.d.ts +46 -0
- package/esm/user/user.js +44 -0
- package/esm/utils/calculations.d.ts +10 -0
- package/esm/utils/calculations.js +27 -0
- package/esm/utils/collections.d.ts +15 -0
- package/esm/utils/collections.js +126 -0
- package/esm/utils/color.d.ts +2 -0
- package/esm/utils/color.js +35 -0
- package/esm/utils/layouts.d.ts +20 -0
- package/esm/utils/layouts.js +73 -0
- package/esm/utils/prop-types.d.ts +19 -0
- package/esm/utils/prop-types.js +20 -0
- package/esm/utils/types.d.ts +3 -0
- package/esm/utils/types.js +1 -0
- package/esm/utils/use-body-scroll.d.ts +2 -0
- package/esm/utils/use-body-scroll.js +2 -0
- package/esm/utils/use-click-anywhere.d.ts +2 -0
- package/esm/utils/use-click-anywhere.js +15 -0
- package/esm/utils/use-click-away.d.ts +2 -0
- package/esm/utils/use-click-away.js +2 -0
- package/esm/utils/use-clipboard.d.ts +2 -0
- package/esm/utils/use-clipboard.js +2 -0
- package/esm/utils/use-context-state/create-geist-context.js +50 -0
- package/esm/utils/use-context-state/use-context-state.js +40 -0
- package/esm/utils/use-current-state.d.ts +2 -0
- package/esm/utils/use-current-state.js +2 -0
- package/esm/utils/use-default-props.js +17 -0
- package/esm/utils/use-dom-observer.d.ts +3 -0
- package/esm/utils/use-dom-observer.js +26 -0
- package/esm/utils/use-drag.d.ts +8 -0
- package/esm/utils/use-drag.js +66 -0
- package/esm/utils/use-hd-ui-context.d.ts +16 -0
- package/esm/utils/use-hd-ui-context.js +27 -0
- package/esm/utils/use-portal.d.ts +2 -0
- package/esm/utils/use-portal.js +34 -0
- package/esm/utils/use-previous.d.ts +2 -0
- package/esm/utils/use-previous.js +11 -0
- package/esm/utils/use-real-shape.d.ts +9 -0
- package/esm/utils/use-real-shape.js +47 -0
- package/esm/utils/use-resize.d.ts +2 -0
- package/esm/utils/use-resize.js +19 -0
- package/esm/utils/use-ssr.d.ts +6 -0
- package/esm/utils/use-ssr.js +19 -0
- package/esm/utils/use-warning.d.ts +2 -0
- package/esm/utils/use-warning.js +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
+
import _JSXStyle from "../styled-jsx.es.js";
|
|
6
|
+
import { default as Fuse } from 'fuse.js';
|
|
7
|
+
import React, { useEffect, useState } from 'react';
|
|
8
|
+
import { defaultFuseOptions, defaultTheme } from '../config/config';
|
|
9
|
+
import { debounce } from '../utils/utils';
|
|
10
|
+
import Results from './Results';
|
|
11
|
+
import SearchInput from './SearchInput';
|
|
12
|
+
export var DEFAULT_INPUT_DEBOUNCE = 200;
|
|
13
|
+
export var MAX_RESULTS = 10;
|
|
14
|
+
export default function ReactSearchAutocomplete(_ref) {
|
|
15
|
+
var _ref$items = _ref.items,
|
|
16
|
+
items = _ref$items === void 0 ? [] : _ref$items,
|
|
17
|
+
_ref$fuseOptions = _ref.fuseOptions,
|
|
18
|
+
fuseOptions = _ref$fuseOptions === void 0 ? defaultFuseOptions : _ref$fuseOptions,
|
|
19
|
+
_ref$inputDebounce = _ref.inputDebounce,
|
|
20
|
+
inputDebounce = _ref$inputDebounce === void 0 ? DEFAULT_INPUT_DEBOUNCE : _ref$inputDebounce,
|
|
21
|
+
_ref$onSearch = _ref.onSearch,
|
|
22
|
+
onSearch = _ref$onSearch === void 0 ? function () {} : _ref$onSearch,
|
|
23
|
+
_ref$onHover = _ref.onHover,
|
|
24
|
+
onHover = _ref$onHover === void 0 ? function () {} : _ref$onHover,
|
|
25
|
+
_ref$onSelect = _ref.onSelect,
|
|
26
|
+
onSelect = _ref$onSelect === void 0 ? function () {} : _ref$onSelect,
|
|
27
|
+
_ref$onFocus = _ref.onFocus,
|
|
28
|
+
onFocus = _ref$onFocus === void 0 ? function () {} : _ref$onFocus,
|
|
29
|
+
_ref$onClear = _ref.onClear,
|
|
30
|
+
onClear = _ref$onClear === void 0 ? function () {} : _ref$onClear,
|
|
31
|
+
_ref$showIcon = _ref.showIcon,
|
|
32
|
+
showIcon = _ref$showIcon === void 0 ? true : _ref$showIcon,
|
|
33
|
+
_ref$showClear = _ref.showClear,
|
|
34
|
+
showClear = _ref$showClear === void 0 ? true : _ref$showClear,
|
|
35
|
+
_ref$maxResults = _ref.maxResults,
|
|
36
|
+
maxResults = _ref$maxResults === void 0 ? MAX_RESULTS : _ref$maxResults,
|
|
37
|
+
_ref$placeholder = _ref.placeholder,
|
|
38
|
+
placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder,
|
|
39
|
+
_ref$autoFocus = _ref.autoFocus,
|
|
40
|
+
autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus,
|
|
41
|
+
_ref$styling = _ref.styling,
|
|
42
|
+
styling = _ref$styling === void 0 ? {} : _ref$styling,
|
|
43
|
+
_ref$resultStringKeyN = _ref.resultStringKeyName,
|
|
44
|
+
resultStringKeyName = _ref$resultStringKeyN === void 0 ? 'name' : _ref$resultStringKeyN,
|
|
45
|
+
_ref$inputSearchStrin = _ref.inputSearchString,
|
|
46
|
+
inputSearchString = _ref$inputSearchStrin === void 0 ? '' : _ref$inputSearchStrin,
|
|
47
|
+
formatResult = _ref.formatResult,
|
|
48
|
+
_ref$showNoResults = _ref.showNoResults,
|
|
49
|
+
showNoResults = _ref$showNoResults === void 0 ? true : _ref$showNoResults,
|
|
50
|
+
_ref$showNoResultsTex = _ref.showNoResultsText,
|
|
51
|
+
showNoResultsText = _ref$showNoResultsTex === void 0 ? 'No results' : _ref$showNoResultsTex,
|
|
52
|
+
_ref$showItemsOnFocus = _ref.showItemsOnFocus,
|
|
53
|
+
showItemsOnFocus = _ref$showItemsOnFocus === void 0 ? false : _ref$showItemsOnFocus,
|
|
54
|
+
_ref$maxLength = _ref.maxLength,
|
|
55
|
+
maxLength = _ref$maxLength === void 0 ? 0 : _ref$maxLength,
|
|
56
|
+
className = _ref.className;
|
|
57
|
+
var theme = _extends({}, defaultTheme, styling);
|
|
58
|
+
var options = _extends({}, defaultFuseOptions, fuseOptions);
|
|
59
|
+
var fuse = new Fuse(items, options);
|
|
60
|
+
fuse.setCollection(items);
|
|
61
|
+
var _useState = useState(inputSearchString),
|
|
62
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
63
|
+
searchString = _useState2[0],
|
|
64
|
+
setSearchString = _useState2[1];
|
|
65
|
+
var _useState3 = useState([]),
|
|
66
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
67
|
+
results = _useState4[0],
|
|
68
|
+
setResults = _useState4[1];
|
|
69
|
+
var _useState5 = useState(-1),
|
|
70
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
71
|
+
highlightedItem = _useState6[0],
|
|
72
|
+
setHighlightedItem = _useState6[1];
|
|
73
|
+
var _useState7 = useState(false),
|
|
74
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
75
|
+
isSearchComplete = _useState8[0],
|
|
76
|
+
setIsSearchComplete = _useState8[1];
|
|
77
|
+
var _useState9 = useState(false),
|
|
78
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
79
|
+
isTyping = _useState10[0],
|
|
80
|
+
setIsTyping = _useState10[1];
|
|
81
|
+
var _useState11 = useState(false),
|
|
82
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
83
|
+
showNoResultsFlag = _useState12[0],
|
|
84
|
+
setShowNoResultsFlag = _useState12[1];
|
|
85
|
+
var _useState13 = useState(false),
|
|
86
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
87
|
+
hasFocus = _useState14[0],
|
|
88
|
+
setHasFocus = _useState14[1];
|
|
89
|
+
useEffect(function () {
|
|
90
|
+
setSearchString(inputSearchString);
|
|
91
|
+
var timeoutId = setTimeout(function () {
|
|
92
|
+
return setResults(fuseResults(inputSearchString));
|
|
93
|
+
}, 0);
|
|
94
|
+
return function () {
|
|
95
|
+
return clearTimeout(timeoutId);
|
|
96
|
+
};
|
|
97
|
+
}, [inputSearchString]);
|
|
98
|
+
useEffect(function () {
|
|
99
|
+
(searchString === null || searchString === void 0 ? void 0 : searchString.length) > 0 && results && (results === null || results === void 0 ? void 0 : results.length) > 0 && setResults(fuseResults(searchString));
|
|
100
|
+
}, [items]);
|
|
101
|
+
useEffect(function () {
|
|
102
|
+
if (showNoResults && searchString.length > 0 && !isTyping && results.length === 0 && !isSearchComplete) {
|
|
103
|
+
setShowNoResultsFlag(true);
|
|
104
|
+
} else {
|
|
105
|
+
setShowNoResultsFlag(false);
|
|
106
|
+
}
|
|
107
|
+
}, [isTyping, showNoResults, isSearchComplete, searchString, results]);
|
|
108
|
+
useEffect(function () {
|
|
109
|
+
if (showItemsOnFocus && results.length === 0 && searchString.length === 0 && hasFocus) {
|
|
110
|
+
setResults(items.slice(0, maxResults));
|
|
111
|
+
}
|
|
112
|
+
}, [showItemsOnFocus, results, searchString, hasFocus]);
|
|
113
|
+
useEffect(function () {
|
|
114
|
+
var handleDocumentClick = function handleDocumentClick() {
|
|
115
|
+
eraseResults();
|
|
116
|
+
setHasFocus(false);
|
|
117
|
+
};
|
|
118
|
+
document.addEventListener('click', handleDocumentClick);
|
|
119
|
+
return function () {
|
|
120
|
+
return document.removeEventListener('click', handleDocumentClick);
|
|
121
|
+
};
|
|
122
|
+
}, []);
|
|
123
|
+
var handleOnFocus = function handleOnFocus(event) {
|
|
124
|
+
onFocus(event);
|
|
125
|
+
setHasFocus(true);
|
|
126
|
+
};
|
|
127
|
+
var callOnSearch = function callOnSearch(keyword) {
|
|
128
|
+
var newResults = [];
|
|
129
|
+
(keyword === null || keyword === void 0 ? void 0 : keyword.length) > 0 && (newResults = fuseResults(keyword));
|
|
130
|
+
setResults(newResults);
|
|
131
|
+
onSearch(keyword, newResults);
|
|
132
|
+
setIsTyping(false);
|
|
133
|
+
};
|
|
134
|
+
var handleOnSearch = React.useCallback(inputDebounce > 0 ? debounce(function (keyword) {
|
|
135
|
+
return callOnSearch(keyword);
|
|
136
|
+
}, inputDebounce) : function (keyword) {
|
|
137
|
+
return callOnSearch(keyword);
|
|
138
|
+
}, [items]);
|
|
139
|
+
var handleOnClick = function handleOnClick(result) {
|
|
140
|
+
eraseResults();
|
|
141
|
+
onSelect(result);
|
|
142
|
+
setSearchString(result[resultStringKeyName]);
|
|
143
|
+
setHighlightedItem(0);
|
|
144
|
+
};
|
|
145
|
+
var fuseResults = function fuseResults(keyword) {
|
|
146
|
+
return fuse.search(keyword, {
|
|
147
|
+
limit: maxResults
|
|
148
|
+
}).map(function (result) {
|
|
149
|
+
return _extends({}, result.item);
|
|
150
|
+
}).slice(0, maxResults);
|
|
151
|
+
};
|
|
152
|
+
var handleSetSearchString = function handleSetSearchString(_ref2) {
|
|
153
|
+
var target = _ref2.target;
|
|
154
|
+
var keyword = target.value;
|
|
155
|
+
setSearchString(keyword);
|
|
156
|
+
handleOnSearch(keyword);
|
|
157
|
+
setIsTyping(true);
|
|
158
|
+
if (isSearchComplete) {
|
|
159
|
+
setIsSearchComplete(false);
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
var eraseResults = function eraseResults() {
|
|
163
|
+
setResults([]);
|
|
164
|
+
setIsSearchComplete(true);
|
|
165
|
+
};
|
|
166
|
+
var handleSetHighlightedItem = function handleSetHighlightedItem(_ref3) {
|
|
167
|
+
var index = _ref3.index,
|
|
168
|
+
event = _ref3.event;
|
|
169
|
+
var itemIndex = -1;
|
|
170
|
+
var setValues = function setValues(index) {
|
|
171
|
+
setHighlightedItem(index);
|
|
172
|
+
(results === null || results === void 0 ? void 0 : results[index]) && onHover(results[index]);
|
|
173
|
+
};
|
|
174
|
+
if (index !== undefined) {
|
|
175
|
+
setHighlightedItem(index);
|
|
176
|
+
(results === null || results === void 0 ? void 0 : results[index]) && onHover(results[index]);
|
|
177
|
+
} else if (event) {
|
|
178
|
+
switch (event.key) {
|
|
179
|
+
case 'Enter':
|
|
180
|
+
if (results.length > 0 && results[highlightedItem]) {
|
|
181
|
+
event.preventDefault();
|
|
182
|
+
onSelect(results[highlightedItem]);
|
|
183
|
+
setSearchString(results[highlightedItem][resultStringKeyName]);
|
|
184
|
+
onSearch(results[highlightedItem][resultStringKeyName], results);
|
|
185
|
+
} else {
|
|
186
|
+
onSearch(searchString, results);
|
|
187
|
+
}
|
|
188
|
+
setHighlightedItem(-1);
|
|
189
|
+
eraseResults();
|
|
190
|
+
break;
|
|
191
|
+
case 'ArrowUp':
|
|
192
|
+
event.preventDefault();
|
|
193
|
+
itemIndex = highlightedItem > -1 ? highlightedItem - 1 : results.length - 1;
|
|
194
|
+
setValues(itemIndex);
|
|
195
|
+
break;
|
|
196
|
+
case 'ArrowDown':
|
|
197
|
+
event.preventDefault();
|
|
198
|
+
itemIndex = highlightedItem < results.length - 1 ? highlightedItem + 1 : -1;
|
|
199
|
+
setValues(itemIndex);
|
|
200
|
+
break;
|
|
201
|
+
default:
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
207
|
+
className: _JSXStyle.dynamic([["3512916558", [function (props) {
|
|
208
|
+
return parseInt(props.theme.height) + 2 + 'px';
|
|
209
|
+
}, function (props) {
|
|
210
|
+
return props.theme.border;
|
|
211
|
+
}, function (props) {
|
|
212
|
+
return props.theme.borderRadius;
|
|
213
|
+
}, function (props) {
|
|
214
|
+
return props.theme.backgroundColor;
|
|
215
|
+
}, function (props) {
|
|
216
|
+
return props.theme.color;
|
|
217
|
+
}, function (props) {
|
|
218
|
+
return props.theme.fontSize;
|
|
219
|
+
}, function (props) {
|
|
220
|
+
return props.theme.fontFamily;
|
|
221
|
+
}, function (props) {
|
|
222
|
+
return props.theme.zIndex;
|
|
223
|
+
}, function (props) {
|
|
224
|
+
return props.theme.boxShadow;
|
|
225
|
+
}, function (props) {
|
|
226
|
+
return props.theme.boxShadow;
|
|
227
|
+
}, function (props) {
|
|
228
|
+
return props.theme.boxShadow;
|
|
229
|
+
}]]]) + " " + "search-bar-wrapper"
|
|
230
|
+
}, /*#__PURE__*/React.createElement(SearchInput, {
|
|
231
|
+
searchString: searchString,
|
|
232
|
+
setSearchString: handleSetSearchString,
|
|
233
|
+
eraseResults: eraseResults,
|
|
234
|
+
autoFocus: autoFocus,
|
|
235
|
+
onFocus: handleOnFocus,
|
|
236
|
+
onClear: onClear,
|
|
237
|
+
placeholder: placeholder,
|
|
238
|
+
showIcon: showIcon,
|
|
239
|
+
showClear: showClear,
|
|
240
|
+
setHighlightedItem: handleSetHighlightedItem,
|
|
241
|
+
maxLength: maxLength
|
|
242
|
+
}), /*#__PURE__*/React.createElement(Results, {
|
|
243
|
+
results: results,
|
|
244
|
+
onClick: handleOnClick,
|
|
245
|
+
setSearchString: setSearchString,
|
|
246
|
+
showIcon: showIcon,
|
|
247
|
+
maxResults: maxResults,
|
|
248
|
+
resultStringKeyName: resultStringKeyName,
|
|
249
|
+
formatResult: formatResult,
|
|
250
|
+
highlightedItem: highlightedItem,
|
|
251
|
+
setHighlightedItem: handleSetHighlightedItem,
|
|
252
|
+
showNoResultsFlag: showNoResultsFlag,
|
|
253
|
+
showNoResultsText: showNoResultsText
|
|
254
|
+
}), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
255
|
+
id: "3512916558",
|
|
256
|
+
dynamic: [function (props) {
|
|
257
|
+
return parseInt(props.theme.height) + 2 + 'px';
|
|
258
|
+
}, function (props) {
|
|
259
|
+
return props.theme.border;
|
|
260
|
+
}, function (props) {
|
|
261
|
+
return props.theme.borderRadius;
|
|
262
|
+
}, function (props) {
|
|
263
|
+
return props.theme.backgroundColor;
|
|
264
|
+
}, function (props) {
|
|
265
|
+
return props.theme.color;
|
|
266
|
+
}, function (props) {
|
|
267
|
+
return props.theme.fontSize;
|
|
268
|
+
}, function (props) {
|
|
269
|
+
return props.theme.fontFamily;
|
|
270
|
+
}, function (props) {
|
|
271
|
+
return props.theme.zIndex;
|
|
272
|
+
}, function (props) {
|
|
273
|
+
return props.theme.boxShadow;
|
|
274
|
+
}, function (props) {
|
|
275
|
+
return props.theme.boxShadow;
|
|
276
|
+
}, function (props) {
|
|
277
|
+
return props.theme.boxShadow;
|
|
278
|
+
}]
|
|
279
|
+
}, ".__jsx-style-dynamic-selector{position:relative;height:".concat(function (props) {
|
|
280
|
+
return parseInt(props.theme.height) + 2 + 'px';
|
|
281
|
+
}, ";}.search-bar-wrapper.__jsx-style-dynamic-selector{position:absolute;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;border:").concat(function (props) {
|
|
282
|
+
return props.theme.border;
|
|
283
|
+
}, ";border-radius:").concat(function (props) {
|
|
284
|
+
return props.theme.borderRadius;
|
|
285
|
+
}, ";background-color:").concat(function (props) {
|
|
286
|
+
return props.theme.backgroundColor;
|
|
287
|
+
}, ";color:").concat(function (props) {
|
|
288
|
+
return props.theme.color;
|
|
289
|
+
}, ";font-size:").concat(function (props) {
|
|
290
|
+
return props.theme.fontSize;
|
|
291
|
+
}, ";font-family:").concat(function (props) {
|
|
292
|
+
return props.theme.fontFamily;
|
|
293
|
+
}, ";z-index:").concat(function (props) {
|
|
294
|
+
return props.theme.zIndex;
|
|
295
|
+
}, ";}.search-bar-wrapper.__jsx-style-dynamic-selector:hover{box-shadow:").concat(function (props) {
|
|
296
|
+
return props.theme.boxShadow;
|
|
297
|
+
}, ";}.search-bar-wrapper.__jsx-style-dynamic-selector:active{box-shadow:").concat(function (props) {
|
|
298
|
+
return props.theme.boxShadow;
|
|
299
|
+
}, ";}.search-bar-wrapper.__jsx-style-dynamic-selector:focus-within{box-shadow:").concat(function (props) {
|
|
300
|
+
return props.theme.boxShadow;
|
|
301
|
+
}, ";}")));
|
|
302
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var defaultTheme = {
|
|
2
|
+
height: '44px',
|
|
3
|
+
border: '1px solid #dfe1e5',
|
|
4
|
+
borderRadius: '24px',
|
|
5
|
+
backgroundColor: 'white',
|
|
6
|
+
boxShadow: 'rgba(32, 33, 36, 0.28) 0px 1px 6px 0px',
|
|
7
|
+
hoverBackgroundColor: '#eee',
|
|
8
|
+
color: '#212121',
|
|
9
|
+
fontSize: '16px',
|
|
10
|
+
fontFamily: 'Arial',
|
|
11
|
+
iconColor: 'grey',
|
|
12
|
+
lineColor: 'rgb(232, 234, 237)',
|
|
13
|
+
placeholderColor: 'grey',
|
|
14
|
+
zIndex: 0,
|
|
15
|
+
clearIconMargin: '3px 14px 0 0',
|
|
16
|
+
searchIconMargin: '0 0 0 16px'
|
|
17
|
+
};
|
|
18
|
+
var defaultFuseOptions = {
|
|
19
|
+
shouldSort: true,
|
|
20
|
+
threshold: 0.6,
|
|
21
|
+
location: 0,
|
|
22
|
+
distance: 100,
|
|
23
|
+
minMatchCharLength: 1,
|
|
24
|
+
keys: ['name']
|
|
25
|
+
};
|
|
26
|
+
export { defaultTheme, defaultFuseOptions };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function debounce(func, wait, immediate) {
|
|
2
|
+
var timeout;
|
|
3
|
+
return function () {
|
|
4
|
+
var context = this;
|
|
5
|
+
var args = arguments;
|
|
6
|
+
var later = function later() {
|
|
7
|
+
timeout = null;
|
|
8
|
+
if (!immediate) func.apply(context, args);
|
|
9
|
+
};
|
|
10
|
+
if (immediate && !timeout) func.apply(context, args);
|
|
11
|
+
timeout && clearTimeout(timeout);
|
|
12
|
+
timeout = setTimeout(later, wait);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Select from "./select";
|
|
2
|
+
import SelectOption from "./select-option";
|
|
3
|
+
export type SelectComponentType = typeof Select & {
|
|
4
|
+
Option: typeof SelectOption;
|
|
5
|
+
};
|
|
6
|
+
export type { SelectProps, SelectTypes, SelectRef } from "./select";
|
|
7
|
+
export type { SelectOptionProps } from "./select-option";
|
|
8
|
+
declare const _default: SelectComponentType;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { MutableRefObject } from 'react';
|
|
2
|
+
export interface SelectConfig {
|
|
3
|
+
value?: string | string[];
|
|
4
|
+
updateValue?: (next: string | undefined) => unknown;
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
updateVisible?: (next: boolean) => unknown;
|
|
7
|
+
disableAll?: boolean;
|
|
8
|
+
ref?: MutableRefObject<HTMLElement | null>;
|
|
9
|
+
}
|
|
10
|
+
export declare const SelectContext: React.Context<SelectConfig>;
|
|
11
|
+
export declare const useSelectContext: () => SelectConfig;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
var defaultContext = {
|
|
3
|
+
visible: false,
|
|
4
|
+
disableAll: false
|
|
5
|
+
};
|
|
6
|
+
export var SelectContext = /*#__PURE__*/React.createContext(defaultContext);
|
|
7
|
+
export var useSelectContext = function useSelectContext() {
|
|
8
|
+
return React.useContext(SelectContext);
|
|
9
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
className?: string;
|
|
5
|
+
dropdownStyle?: CSSProperties;
|
|
6
|
+
disableMatchWidth?: boolean;
|
|
7
|
+
getPopupContainer?: () => HTMLElement | null;
|
|
8
|
+
}
|
|
9
|
+
type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>;
|
|
10
|
+
export type SelectDropdownProps = Props & NativeAttrs;
|
|
11
|
+
declare const SelectDropdown: React.ForwardRefExoticComponent<Props & NativeAttrs & {
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
} & React.RefAttributes<HTMLDivElement | null>>;
|
|
14
|
+
export default SelectDropdown;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import _JSXStyle from "../styled-jsx.es.js";
|
|
4
|
+
import React, { useImperativeHandle, useRef } from 'react';
|
|
5
|
+
import useTheme from '../use-theme';
|
|
6
|
+
import { useSelectContext } from './select-context';
|
|
7
|
+
import Dropdown from '../shared/dropdown';
|
|
8
|
+
import useClasses from '../use-classes';
|
|
9
|
+
var SelectDropdown = /*#__PURE__*/React.forwardRef(function (_ref, dropdownRef) {
|
|
10
|
+
var visible = _ref.visible,
|
|
11
|
+
children = _ref.children,
|
|
12
|
+
_ref$className = _ref.className,
|
|
13
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
14
|
+
_ref$dropdownStyle = _ref.dropdownStyle,
|
|
15
|
+
dropdownStyle = _ref$dropdownStyle === void 0 ? {} : _ref$dropdownStyle,
|
|
16
|
+
disableMatchWidth = _ref.disableMatchWidth,
|
|
17
|
+
getPopupContainer = _ref.getPopupContainer;
|
|
18
|
+
var theme = useTheme();
|
|
19
|
+
var internalDropdownRef = useRef(null);
|
|
20
|
+
var _useSelectContext = useSelectContext(),
|
|
21
|
+
ref = _useSelectContext.ref;
|
|
22
|
+
var classes = useClasses('select-dropdown', className);
|
|
23
|
+
useImperativeHandle(dropdownRef, function () {
|
|
24
|
+
return internalDropdownRef.current;
|
|
25
|
+
});
|
|
26
|
+
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
27
|
+
parent: ref,
|
|
28
|
+
visible: visible,
|
|
29
|
+
disableMatchWidth: disableMatchWidth,
|
|
30
|
+
getPopupContainer: getPopupContainer
|
|
31
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
32
|
+
ref: internalDropdownRef,
|
|
33
|
+
style: dropdownStyle,
|
|
34
|
+
className: _JSXStyle.dynamic([["2782510679", [theme.layout.radius, theme.expressiveness.shadowLarge, theme.palette.background]]]) + " " + (classes || "")
|
|
35
|
+
}, children, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
36
|
+
id: "2782510679",
|
|
37
|
+
dynamic: [theme.layout.radius, theme.expressiveness.shadowLarge, theme.palette.background]
|
|
38
|
+
}, ".select-dropdown.__jsx-style-dynamic-selector{border-radius:".concat(theme.layout.radius, ";box-shadow:").concat(theme.expressiveness.shadowLarge, ";background-color:").concat(theme.palette.background, ";max-height:17em;overflow-y:auto;overflow-anchor:none;padding:0.38em 0;-webkit-scroll-behavior:smooth;-moz-scroll-behavior:smooth;-ms-scroll-behavior:smooth;scroll-behavior:smooth;}"))));
|
|
39
|
+
});
|
|
40
|
+
SelectDropdown.displayName = 'SelectDropdown';
|
|
41
|
+
export default SelectDropdown;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _JSXStyle from "../styled-jsx.es.js";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import useTheme from '../use-theme';
|
|
4
|
+
var SelectIconClear = function SelectIconClear(_ref) {
|
|
5
|
+
var onClick = _ref.onClick;
|
|
6
|
+
var theme = useTheme();
|
|
7
|
+
var clickHandler = function clickHandler(event) {
|
|
8
|
+
event.preventDefault();
|
|
9
|
+
event.stopPropagation();
|
|
10
|
+
event.nativeEvent.stopImmediatePropagation();
|
|
11
|
+
onClick && onClick(event);
|
|
12
|
+
};
|
|
13
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14
|
+
onClick: clickHandler,
|
|
15
|
+
className: _JSXStyle.dynamic([["1984024521", [theme.palette.accents_3, theme.palette.foreground]]]) + " " + "clear-icon"
|
|
16
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
17
|
+
viewBox: "0 0 24 24",
|
|
18
|
+
stroke: "currentColor",
|
|
19
|
+
strokeWidth: "1.5",
|
|
20
|
+
strokeLinecap: "round",
|
|
21
|
+
strokeLinejoin: "round",
|
|
22
|
+
fill: "none",
|
|
23
|
+
shapeRendering: "geometricPrecision",
|
|
24
|
+
className: _JSXStyle.dynamic([["1984024521", [theme.palette.accents_3, theme.palette.foreground]]])
|
|
25
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
26
|
+
d: "M18 6L6 18",
|
|
27
|
+
className: _JSXStyle.dynamic([["1984024521", [theme.palette.accents_3, theme.palette.foreground]]])
|
|
28
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
29
|
+
d: "M6 6l12 12",
|
|
30
|
+
className: _JSXStyle.dynamic([["1984024521", [theme.palette.accents_3, theme.palette.foreground]]])
|
|
31
|
+
})), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
32
|
+
id: "1984024521",
|
|
33
|
+
dynamic: [theme.palette.accents_3, theme.palette.foreground]
|
|
34
|
+
}, ".clear-icon.__jsx-style-dynamic-selector{padding:0 0 0 0.5em;margin:0;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;cursor:pointer;box-sizing:border-box;-webkit-transition:color 150ms ease 0s;transition:color 150ms ease 0s;color:".concat(theme.palette.accents_3, ";visibility:visible;opacity:1;}.clear-icon.__jsx-style-dynamic-selector:hover{color:").concat(theme.palette.foreground, ";}svg.__jsx-style-dynamic-selector{color:currentColor;width:1em;height:1em;}")));
|
|
35
|
+
};
|
|
36
|
+
var MemoSelectIconClear = /*#__PURE__*/React.memo(SelectIconClear);
|
|
37
|
+
export default MemoSelectIconClear;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import _JSXStyle from "../styled-jsx.es.js";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
var SelectIconComponent = function SelectIconComponent() {
|
|
4
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
5
|
+
viewBox: "0 0 24 24",
|
|
6
|
+
strokeWidth: "1",
|
|
7
|
+
strokeLinecap: "round",
|
|
8
|
+
strokeLinejoin: "round",
|
|
9
|
+
fill: "none",
|
|
10
|
+
shapeRendering: "geometricPrecision",
|
|
11
|
+
className: "jsx-2742933678"
|
|
12
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
13
|
+
d: "M6 9l6 6 6-6",
|
|
14
|
+
className: "jsx-2742933678"
|
|
15
|
+
}), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
16
|
+
id: "2742933678"
|
|
17
|
+
}, "svg.jsx-2742933678{color:inherit;stroke:currentColor;-webkit-transition:all 200ms ease;transition:all 200ms ease;width:1.214em;height:1.214em;}"));
|
|
18
|
+
};
|
|
19
|
+
SelectIconComponent.displayName = 'GeistSelectIcon';
|
|
20
|
+
var SelectIcon = /*#__PURE__*/React.memo(SelectIconComponent);
|
|
21
|
+
export default SelectIcon;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type SelectInputProps = {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
onBlur: () => void;
|
|
5
|
+
onFocus: () => void;
|
|
6
|
+
};
|
|
7
|
+
declare const SelectInput: React.ForwardRefExoticComponent<SelectInputProps & React.RefAttributes<HTMLInputElement | null>>;
|
|
8
|
+
export default SelectInput;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import _JSXStyle from "../styled-jsx.es.js";
|
|
4
|
+
import React, { useEffect, useImperativeHandle, useRef } from 'react';
|
|
5
|
+
var SelectInput = /*#__PURE__*/React.forwardRef(function (_ref, inputRef) {
|
|
6
|
+
var visible = _ref.visible,
|
|
7
|
+
onBlur = _ref.onBlur,
|
|
8
|
+
onFocus = _ref.onFocus;
|
|
9
|
+
var ref = useRef(null);
|
|
10
|
+
useImperativeHandle(inputRef, function () {
|
|
11
|
+
return ref.current;
|
|
12
|
+
});
|
|
13
|
+
useEffect(function () {
|
|
14
|
+
if (visible) {
|
|
15
|
+
var _ref$current;
|
|
16
|
+
(_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.focus();
|
|
17
|
+
}
|
|
18
|
+
}, [visible]);
|
|
19
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("input", {
|
|
20
|
+
ref: ref,
|
|
21
|
+
type: "search",
|
|
22
|
+
role: "combobox",
|
|
23
|
+
"aria-haspopup": "listbox",
|
|
24
|
+
readOnly: true,
|
|
25
|
+
unselectable: "on",
|
|
26
|
+
"aria-expanded": visible,
|
|
27
|
+
onBlur: onBlur,
|
|
28
|
+
onFocus: onFocus,
|
|
29
|
+
className: "jsx-2813108835"
|
|
30
|
+
}), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
31
|
+
id: "2813108835"
|
|
32
|
+
}, "input.jsx-2813108835{position:fixed;top:-10000px;left:-10000px;opacity:0;z-index:-1;width:0;height:0;padding:0;font-size:0;border:none;}"));
|
|
33
|
+
});
|
|
34
|
+
SelectInput.displayName = 'GeistSelectInput';
|
|
35
|
+
export default SelectInput;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import _JSXStyle from "../styled-jsx.es.js";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import useTheme from '../use-theme';
|
|
4
|
+
import Grid from '../grid';
|
|
5
|
+
import SelectClearIcon from './select-icon-clear';
|
|
6
|
+
var SelectMultipleValue = function SelectMultipleValue(_ref) {
|
|
7
|
+
var disabled = _ref.disabled,
|
|
8
|
+
onClear = _ref.onClear,
|
|
9
|
+
children = _ref.children;
|
|
10
|
+
var theme = useTheme();
|
|
11
|
+
return /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement("div", {
|
|
12
|
+
className: _JSXStyle.dynamic([["3357578496", [theme.layout.radius, theme.palette.accents_2, disabled ? theme.palette.accents_4 : theme.palette.accents_6]]]) + " " + "item"
|
|
13
|
+
}, children, !!onClear && /*#__PURE__*/React.createElement(SelectClearIcon, {
|
|
14
|
+
onClick: onClear
|
|
15
|
+
})), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
16
|
+
id: "3357578496",
|
|
17
|
+
dynamic: [theme.layout.radius, theme.palette.accents_2, disabled ? theme.palette.accents_4 : theme.palette.accents_6]
|
|
18
|
+
}, ".item.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;justify-items:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1;padding:0 0.5em;font-size:var(--select-font-size);height:calc(var(--select-font-size) * 2);border-radius:".concat(theme.layout.radius, ";background-color:").concat(theme.palette.accents_2, ";color:").concat(disabled ? theme.palette.accents_4 : theme.palette.accents_6, ";}.item.__jsx-style-dynamic-selector>div:not(.clear-icon),.item.__jsx-style-dynamic-selector>div:not(.clear-icon):hover{border-radius:0;background-color:transparent;padding:0;margin:0;color:inherit;}")));
|
|
19
|
+
};
|
|
20
|
+
SelectMultipleValue.displayName = 'GeistSelectMultipleValue';
|
|
21
|
+
export default SelectMultipleValue;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
value?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
divider?: boolean;
|
|
7
|
+
label?: boolean;
|
|
8
|
+
preventAllEvents?: boolean;
|
|
9
|
+
}
|
|
10
|
+
type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>;
|
|
11
|
+
export type SelectOptionProps = Props & NativeAttrs;
|
|
12
|
+
declare const SelectOption: React.ForwardRefExoticComponent<Props & NativeAttrs & {
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
} & {
|
|
15
|
+
width?: string | number | undefined;
|
|
16
|
+
height?: string | number | undefined;
|
|
17
|
+
padding?: string | number | undefined;
|
|
18
|
+
margin?: string | number | undefined;
|
|
19
|
+
w?: string | number | undefined;
|
|
20
|
+
h?: string | number | undefined;
|
|
21
|
+
paddingLeft?: string | number | undefined;
|
|
22
|
+
paddingRight?: string | number | undefined;
|
|
23
|
+
paddingTop?: string | number | undefined;
|
|
24
|
+
paddingBottom?: string | number | undefined;
|
|
25
|
+
pl?: string | number | undefined;
|
|
26
|
+
pr?: string | number | undefined;
|
|
27
|
+
pt?: string | number | undefined;
|
|
28
|
+
pb?: string | number | undefined;
|
|
29
|
+
marginLeft?: string | number | undefined;
|
|
30
|
+
marginRight?: string | number | undefined;
|
|
31
|
+
marginTop?: string | number | undefined;
|
|
32
|
+
marginBottom?: string | number | undefined;
|
|
33
|
+
ml?: string | number | undefined;
|
|
34
|
+
mr?: string | number | undefined;
|
|
35
|
+
mt?: string | number | undefined;
|
|
36
|
+
mb?: string | number | undefined;
|
|
37
|
+
px?: string | number | undefined;
|
|
38
|
+
py?: string | number | undefined;
|
|
39
|
+
mx?: string | number | undefined;
|
|
40
|
+
my?: string | number | undefined;
|
|
41
|
+
font?: string | number | undefined;
|
|
42
|
+
unit?: string | undefined;
|
|
43
|
+
scale?: number | undefined;
|
|
44
|
+
children?: any;
|
|
45
|
+
className?: string | undefined;
|
|
46
|
+
} & React.InputHTMLAttributes<any> & React.RefAttributes<unknown>>;
|
|
47
|
+
export default SelectOption;
|