@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,17 @@
|
|
|
1
|
+
/// <reference types="hoist-non-react-statics" />
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { FormikContextType } from "./types";
|
|
4
|
+
export interface ErrorMessageProps {
|
|
5
|
+
id?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
component?: string | React.ComponentType;
|
|
9
|
+
children?: (errorMessage: string) => React.ReactNode;
|
|
10
|
+
render?: (errorMessage: string) => React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const ErrorMessage: React.FC<ErrorMessageProps> & import("hoist-non-react-statics").NonReactStatics<React.ComponentClass<ErrorMessageProps & {
|
|
13
|
+
formik: FormikContextType<ErrorMessageProps & {
|
|
14
|
+
formik: FormikContextType<any>;
|
|
15
|
+
}>;
|
|
16
|
+
}, any>, {}>;
|
|
17
|
+
export default ErrorMessage;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FormikProps, GenericFieldHTMLAttributes, FieldMetaProps, FieldHelperProps, FieldInputProps, FieldValidator } from "./types";
|
|
3
|
+
export interface FieldProps<V = any, FormValues = any> {
|
|
4
|
+
field: FieldInputProps<V>;
|
|
5
|
+
form: FormikProps<FormValues>;
|
|
6
|
+
meta: FieldMetaProps<V>;
|
|
7
|
+
}
|
|
8
|
+
export interface FieldConfig<V = any> {
|
|
9
|
+
/**
|
|
10
|
+
* Field component to render. Can either be a string like 'select' or a component.
|
|
11
|
+
*/
|
|
12
|
+
component?: string | React.ComponentType<FieldProps<V>> | React.ComponentType | React.ForwardRefExoticComponent<any>;
|
|
13
|
+
/**
|
|
14
|
+
* Component to render. Can either be a string e.g. 'select', 'input', or 'textarea', or a component.
|
|
15
|
+
*/
|
|
16
|
+
as?: React.ComponentType<FieldProps<V>['field']> | string | React.ComponentType | React.ForwardRefExoticComponent<any>;
|
|
17
|
+
/**
|
|
18
|
+
* Render prop (works like React router's <Route render={props =>} />)
|
|
19
|
+
* @deprecated
|
|
20
|
+
*/
|
|
21
|
+
render?: (props: FieldProps<V>) => React.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Children render function <Field name>{props => ...}</Field>)
|
|
24
|
+
*/
|
|
25
|
+
children?: ((props: FieldProps<V>) => React.ReactNode) | React.ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* Validate a single field value independently
|
|
28
|
+
*/
|
|
29
|
+
validate?: FieldValidator;
|
|
30
|
+
/**
|
|
31
|
+
* Used for 'select' and related input types.
|
|
32
|
+
*/
|
|
33
|
+
multiple?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Field name
|
|
36
|
+
*/
|
|
37
|
+
name: string;
|
|
38
|
+
/** HTML input type */
|
|
39
|
+
type?: string;
|
|
40
|
+
/** Field value */
|
|
41
|
+
value?: any;
|
|
42
|
+
/** Inner ref */
|
|
43
|
+
innerRef?: (instance: any) => void;
|
|
44
|
+
}
|
|
45
|
+
export type FieldAttributes<T> = {
|
|
46
|
+
className?: string;
|
|
47
|
+
} & GenericFieldHTMLAttributes & FieldConfig<T> & T & {
|
|
48
|
+
name: string;
|
|
49
|
+
};
|
|
50
|
+
export type FieldHookConfig<T> = GenericFieldHTMLAttributes & FieldConfig<T>;
|
|
51
|
+
export declare function useField<Val = any>(propsOrFieldName: string | FieldHookConfig<Val>): [FieldInputProps<Val>, FieldMetaProps<Val>, FieldHelperProps<Val>];
|
|
52
|
+
export declare function Field({ validate, name, render, children, as: is, // `as` is reserved in typescript lol
|
|
53
|
+
component, className, ...props }: FieldAttributes<any>): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FieldConfig } from "./Field";
|
|
3
|
+
import { FieldHelperProps, FieldInputProps, FieldMetaProps, FormikConfig, FormikErrors, FormikState, FormikTouched, FormikValues } from "./types";
|
|
4
|
+
export declare function useFormik<Values extends FormikValues = FormikValues>({ validateOnChange, validateOnBlur, validateOnMount, isInitialValid, enableReinitialize, onSubmit, ...rest }: FormikConfig<Values>): {
|
|
5
|
+
initialValues: Values;
|
|
6
|
+
initialErrors: FormikErrors<unknown>;
|
|
7
|
+
initialTouched: FormikTouched<unknown>;
|
|
8
|
+
initialStatus: any;
|
|
9
|
+
handleBlur: {
|
|
10
|
+
(e: React.FocusEvent<any, Element>): void;
|
|
11
|
+
<T = any>(fieldOrEvent: T): T extends string ? (e: any) => void : void;
|
|
12
|
+
};
|
|
13
|
+
handleChange: {
|
|
14
|
+
(e: React.ChangeEvent<any>): void;
|
|
15
|
+
<T_1 = string | React.ChangeEvent<any>>(field: T_1): T_1 extends React.ChangeEvent<any> ? void : (e: string | React.ChangeEvent<any>) => void;
|
|
16
|
+
};
|
|
17
|
+
handleReset: (e: any) => void;
|
|
18
|
+
handleSubmit: (e?: React.FormEvent<HTMLFormElement>) => void;
|
|
19
|
+
resetForm: (nextState?: Partial<FormikState<Values>>) => void;
|
|
20
|
+
setErrors: (errors: FormikErrors<Values>) => void;
|
|
21
|
+
setFormikState: (stateOrCb: FormikState<Values> | ((state: FormikState<Values>) => FormikState<Values>)) => void;
|
|
22
|
+
setFieldTouched: (field: string, touched?: boolean, shouldValidate?: boolean) => Promise<void> | Promise<object>;
|
|
23
|
+
setFieldValue: (field: string, value: any, shouldValidate?: boolean) => Promise<void> | Promise<object>;
|
|
24
|
+
setFieldError: (field: string, value: string | undefined) => void;
|
|
25
|
+
setStatus: (status: any) => void;
|
|
26
|
+
setSubmitting: (isSubmitting: boolean) => void;
|
|
27
|
+
setTouched: (touched: FormikTouched<Values>, shouldValidate?: boolean) => Promise<void> | Promise<object>;
|
|
28
|
+
setValues: (values: React.SetStateAction<Values>, shouldValidate?: boolean) => Promise<void> | Promise<object>;
|
|
29
|
+
submitForm: () => Promise<any>;
|
|
30
|
+
validateForm: (values?: Values) => Promise<object>;
|
|
31
|
+
validateField: (name: string) => Promise<void> | Promise<string | undefined>;
|
|
32
|
+
isValid: boolean;
|
|
33
|
+
dirty: boolean;
|
|
34
|
+
unregisterField: (name: string) => void;
|
|
35
|
+
registerField: (name: string, { validate }: any) => void;
|
|
36
|
+
getFieldProps: (nameOrOptions: string | FieldConfig<any>) => FieldInputProps<any>;
|
|
37
|
+
getFieldMeta: (name: string) => FieldMetaProps<any>;
|
|
38
|
+
getFieldHelpers: (name: string) => FieldHelperProps<any>;
|
|
39
|
+
validateOnBlur: boolean;
|
|
40
|
+
validateOnChange: boolean;
|
|
41
|
+
validateOnMount: boolean;
|
|
42
|
+
values: Values;
|
|
43
|
+
errors: FormikErrors<Values>;
|
|
44
|
+
touched: FormikTouched<Values>;
|
|
45
|
+
isSubmitting: boolean;
|
|
46
|
+
isValidating: boolean;
|
|
47
|
+
status?: any;
|
|
48
|
+
submitCount: number;
|
|
49
|
+
};
|
|
50
|
+
export declare function FormWrapper<Values extends FormikValues = FormikValues, ExtraProps = {}>(props: FormikConfig<Values> & ExtraProps): JSX.Element;
|
|
51
|
+
/**
|
|
52
|
+
* Transform Yup ValidationError to a more usable object
|
|
53
|
+
*/
|
|
54
|
+
export declare function yupToFormErrors<Values>(yupError: any): FormikErrors<Values>;
|
|
55
|
+
/**
|
|
56
|
+
* Validate a yup schema.
|
|
57
|
+
*/
|
|
58
|
+
export declare function validateYupSchema<T extends FormikValues>(values: T, schema: any, sync?: boolean, context?: any): Promise<Partial<T>>;
|
|
59
|
+
/**
|
|
60
|
+
* Recursively prepare values.
|
|
61
|
+
*/
|
|
62
|
+
export declare function prepareDataForValidation<T extends FormikValues>(values: T): FormikValues;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FormikContextType } from "./types";
|
|
3
|
+
export declare const FormikContext: React.Context<FormikContextType<any>>;
|
|
4
|
+
export declare const FormikProvider: React.Provider<FormikContextType<any>>;
|
|
5
|
+
export declare const FormikConsumer: React.Consumer<FormikContextType<any>>;
|
|
6
|
+
export declare function useFormikContext<Values>(): FormikContextType<Values>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import hoistNonReactStatics from 'hoist-non-react-statics';
|
|
3
|
+
import { FormikContextType } from "./types";
|
|
4
|
+
/**
|
|
5
|
+
* Connect any component to Formik context, and inject as a prop called `formik`;
|
|
6
|
+
* @param Comp React Component
|
|
7
|
+
*/
|
|
8
|
+
export default function connect<OuterProps, Values = {}>(Comp: React.ComponentType<OuterProps & {
|
|
9
|
+
formik: FormikContextType<Values>;
|
|
10
|
+
}>): React.FC<OuterProps> & hoistNonReactStatics.NonReactStatics<React.ComponentClass<OuterProps & {
|
|
11
|
+
formik: FormikContextType<Values>;
|
|
12
|
+
}, any>, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const __DEV__ = true;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import connect from "./connect";
|
|
2
|
+
import { FormWrapper, useFormik, yupToFormErrors, validateYupSchema, prepareDataForValidation } from "./FormWrapper";
|
|
3
|
+
import withFormik from "./withFormik";
|
|
4
|
+
import { isEmptyArray, isEmptyChildren, isInputEvent, isInteger, isObject, isPromise, isFunction, isNaN, isString, getActiveElement, getIn, setIn, setNestedObjectValues } from "./utils";
|
|
5
|
+
import ErrorMessage from "./ErrorMessage";
|
|
6
|
+
import { FormikContext, FormikProvider, FormikConsumer, useFormikContext } from "./FormikContext";
|
|
7
|
+
import { FieldHelperProps, FieldInputProps, FieldMetaProps, FieldValidator, FormikComputedProps, FormikConfig, FormikContextType, FormikErrors, FormikHandlers, FormikHelpers, FormikProps, FormikRegistration, FormikSharedConfig, FormikState, FormikTouched, FormikValues, GenericFieldHTMLAttributes } from "./types";
|
|
8
|
+
export type { FormikValues, FormikErrors, FormikTouched, FormikState, FormikComputedProps, FormikHelpers, FormikHandlers, FormikSharedConfig, FormikConfig, FormikProps, FormikRegistration, FormikContextType, GenericFieldHTMLAttributes, FieldMetaProps, FieldHelperProps, FieldInputProps, FieldValidator };
|
|
9
|
+
export { FormikContext, FormikProvider, FormikConsumer, useFormikContext, ErrorMessage, FormWrapper, useFormik, yupToFormErrors, validateYupSchema, prepareDataForValidation, connect, withFormik, isEmptyArray, isEmptyChildren, isInputEvent, isInteger, isObject, isPromise, isFunction, isNaN, isString, getActiveElement, getIn, setIn, setNestedObjectValues };
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FieldConfig } from "./Field";
|
|
3
|
+
/**
|
|
4
|
+
* Values of fields in the form
|
|
5
|
+
*/
|
|
6
|
+
export interface FormikValues {
|
|
7
|
+
[field: string]: any;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* An object containing error messages whose keys correspond to FormikValues.
|
|
11
|
+
* Should always be an object of strings, but any is allowed to support i18n libraries.
|
|
12
|
+
*/
|
|
13
|
+
export type FormikErrors<Values> = {
|
|
14
|
+
[K in keyof Values]?: Values[K] extends any[] ? Values[K][number] extends object ? FormikErrors<Values[K][number]>[] | string | string[] : string | string[] : Values[K] extends object ? FormikErrors<Values[K]> : string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* An object containing touched state of the form whose keys correspond to FormikValues.
|
|
18
|
+
*/
|
|
19
|
+
export type FormikTouched<Values> = {
|
|
20
|
+
[K in keyof Values]?: Values[K] extends any[] ? Values[K][number] extends object ? FormikTouched<Values[K][number]>[] : boolean : Values[K] extends object ? FormikTouched<Values[K]> : boolean;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Formik state tree
|
|
24
|
+
*/
|
|
25
|
+
export interface FormikState<Values> {
|
|
26
|
+
/** Form values */
|
|
27
|
+
values: Values;
|
|
28
|
+
/** map of field names to specific error for that field */
|
|
29
|
+
errors: FormikErrors<Values>;
|
|
30
|
+
/** map of field names to whether the field has been touched */
|
|
31
|
+
touched: FormikTouched<Values>;
|
|
32
|
+
/** whether the form is currently submitting */
|
|
33
|
+
isSubmitting: boolean;
|
|
34
|
+
/** whether the form is currently validating (prior to submission) */
|
|
35
|
+
isValidating: boolean;
|
|
36
|
+
/** Top level status state, in case you need it */
|
|
37
|
+
status?: any;
|
|
38
|
+
/** Number of times user tried to submit the form */
|
|
39
|
+
submitCount: number;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Formik computed properties. These are read-only.
|
|
43
|
+
*/
|
|
44
|
+
export interface FormikComputedProps<Values> {
|
|
45
|
+
/** True if any input has been touched. False otherwise. */
|
|
46
|
+
readonly dirty: boolean;
|
|
47
|
+
/** True if state.errors is empty */
|
|
48
|
+
readonly isValid: boolean;
|
|
49
|
+
/** The initial values of the form */
|
|
50
|
+
readonly initialValues: Values;
|
|
51
|
+
/** The initial errors of the form */
|
|
52
|
+
readonly initialErrors: FormikErrors<Values>;
|
|
53
|
+
/** The initial visited fields of the form */
|
|
54
|
+
readonly initialTouched: FormikTouched<Values>;
|
|
55
|
+
/** The initial status of the form */
|
|
56
|
+
readonly initialStatus?: any;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Formik state helpers
|
|
60
|
+
*/
|
|
61
|
+
export interface FormikHelpers<Values> {
|
|
62
|
+
/** Manually set top level status. */
|
|
63
|
+
setStatus: (status?: any) => void;
|
|
64
|
+
/** Manually set errors object */
|
|
65
|
+
setErrors: (errors: FormikErrors<Values>) => void;
|
|
66
|
+
/** Manually set isSubmitting */
|
|
67
|
+
setSubmitting: (isSubmitting: boolean) => void;
|
|
68
|
+
/** Manually set touched object */
|
|
69
|
+
setTouched: (touched: FormikTouched<Values>, shouldValidate?: boolean) => Promise<void | FormikErrors<Values>>;
|
|
70
|
+
/** Manually set values object */
|
|
71
|
+
setValues: (values: React.SetStateAction<Values>, shouldValidate?: boolean) => Promise<void | FormikErrors<Values>>;
|
|
72
|
+
/** Set value of form field directly */
|
|
73
|
+
setFieldValue: (field: string, value: any, shouldValidate?: boolean) => Promise<void | FormikErrors<Values>>;
|
|
74
|
+
/** Set error message of a form field directly */
|
|
75
|
+
setFieldError: (field: string, message: string | undefined) => void;
|
|
76
|
+
/** Set whether field has been touched directly */
|
|
77
|
+
setFieldTouched: (field: string, isTouched?: boolean, shouldValidate?: boolean) => Promise<void | FormikErrors<Values>>;
|
|
78
|
+
/** Validate form values */
|
|
79
|
+
validateForm: (values?: any) => Promise<FormikErrors<Values>>;
|
|
80
|
+
/** Validate field value */
|
|
81
|
+
validateField: (field: string) => Promise<void> | Promise<string | undefined>;
|
|
82
|
+
/** Reset form */
|
|
83
|
+
resetForm: (nextState?: Partial<FormikState<Values>>) => void;
|
|
84
|
+
/** Submit the form imperatively */
|
|
85
|
+
submitForm: () => Promise<void>;
|
|
86
|
+
/** Set Formik state, careful! */
|
|
87
|
+
setFormikState: (f: FormikState<Values> | ((prevState: FormikState<Values>) => FormikState<Values>), cb?: () => void) => void;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Formik form event handlers
|
|
91
|
+
*/
|
|
92
|
+
export interface FormikHandlers {
|
|
93
|
+
/** Form submit handler */
|
|
94
|
+
handleSubmit: (e?: React.FormEvent<HTMLFormElement>) => void;
|
|
95
|
+
/** Reset form event handler */
|
|
96
|
+
handleReset: (e?: React.SyntheticEvent<any>) => void;
|
|
97
|
+
handleBlur: {
|
|
98
|
+
/** Classic React blur handler, keyed by input name */
|
|
99
|
+
(e: React.FocusEvent<any>): void;
|
|
100
|
+
/** Preact-like linkState. Will return a handleBlur function. */
|
|
101
|
+
<T = string | any>(fieldOrEvent: T): T extends string ? (e: any) => void : void;
|
|
102
|
+
};
|
|
103
|
+
handleChange: {
|
|
104
|
+
/** Classic React change handler, keyed by input name */
|
|
105
|
+
(e: React.ChangeEvent<any>): void;
|
|
106
|
+
/** Preact-like linkState. Will return a handleChange function. */
|
|
107
|
+
<T = string | React.ChangeEvent<any>>(field: T): T extends React.ChangeEvent<any> ? void : (e: string | React.ChangeEvent<any>) => void;
|
|
108
|
+
};
|
|
109
|
+
getFieldProps: <Value = any>(props: string | FieldConfig<Value>) => FieldInputProps<Value>;
|
|
110
|
+
getFieldMeta: <Value>(name: string) => FieldMetaProps<Value>;
|
|
111
|
+
getFieldHelpers: <Value = any>(name: string) => FieldHelperProps<Value>;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Base formik configuration/props shared between the HoC and Component.
|
|
115
|
+
*/
|
|
116
|
+
export interface FormikSharedConfig<Props = {}> {
|
|
117
|
+
/** Tells Formik to validate the form on each input's onChange event */
|
|
118
|
+
validateOnChange?: boolean;
|
|
119
|
+
/** Tells Formik to validate the form on each input's onBlur event */
|
|
120
|
+
validateOnBlur?: boolean;
|
|
121
|
+
/** Tells Formik to validate upon mount */
|
|
122
|
+
validateOnMount?: boolean;
|
|
123
|
+
/** Tell Formik if initial form values are valid or not on first render */
|
|
124
|
+
isInitialValid?: boolean | ((props: Props) => boolean);
|
|
125
|
+
/** Should Formik reset the form when new initialValues change */
|
|
126
|
+
enableReinitialize?: boolean;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* <Formik /> props
|
|
130
|
+
*/
|
|
131
|
+
export interface FormikConfig<Values> extends FormikSharedConfig {
|
|
132
|
+
/**
|
|
133
|
+
* Form component to render
|
|
134
|
+
*/
|
|
135
|
+
component?: React.ComponentType<FormikProps<Values>>;
|
|
136
|
+
/**
|
|
137
|
+
* Render prop (works like React router's <Route render={props =>} />)
|
|
138
|
+
* @deprecated
|
|
139
|
+
*/
|
|
140
|
+
render?: (props: FormikProps<Values>) => React.ReactNode;
|
|
141
|
+
/**
|
|
142
|
+
* React children or child render callback
|
|
143
|
+
*/
|
|
144
|
+
children?: ((props: FormikProps<Values>) => React.ReactNode) | React.ReactNode;
|
|
145
|
+
/**
|
|
146
|
+
* Initial values of the form
|
|
147
|
+
*/
|
|
148
|
+
initialValues: Values;
|
|
149
|
+
/**
|
|
150
|
+
* Initial status
|
|
151
|
+
*/
|
|
152
|
+
initialStatus?: any;
|
|
153
|
+
/** Initial object map of field names to specific error for that field */
|
|
154
|
+
initialErrors?: FormikErrors<Values>;
|
|
155
|
+
/** Initial object map of field names to whether the field has been touched */
|
|
156
|
+
initialTouched?: FormikTouched<Values>;
|
|
157
|
+
/**
|
|
158
|
+
* Reset handler
|
|
159
|
+
*/
|
|
160
|
+
onReset?: (values: Values, formikHelpers: FormikHelpers<Values>) => void;
|
|
161
|
+
/**
|
|
162
|
+
* Submission handler
|
|
163
|
+
*/
|
|
164
|
+
onSubmit: (values: Values, formikHelpers: FormikHelpers<Values>) => void | Promise<any>;
|
|
165
|
+
/**
|
|
166
|
+
* A Yup Schema or a function that returns a Yup schema
|
|
167
|
+
*/
|
|
168
|
+
validationSchema?: any | (() => any);
|
|
169
|
+
/**
|
|
170
|
+
* Validation function. Must return an error object or promise that
|
|
171
|
+
* throws an error object where that object keys map to corresponding value.
|
|
172
|
+
*/
|
|
173
|
+
validate?: (values: Values) => void | object | Promise<FormikErrors<Values>>;
|
|
174
|
+
/** Inner ref */
|
|
175
|
+
innerRef?: React.Ref<FormikProps<Values>>;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* State, handlers, and helpers made available to form component or render prop
|
|
179
|
+
* of <Formik/>.
|
|
180
|
+
*/
|
|
181
|
+
export type FormikProps<Values> = FormikSharedConfig & FormikState<Values> & FormikHelpers<Values> & FormikHandlers & FormikComputedProps<Values> & FormikRegistration & {
|
|
182
|
+
submitForm: () => Promise<any>;
|
|
183
|
+
};
|
|
184
|
+
/** Internal Formik registration methods that get passed down as props */
|
|
185
|
+
export interface FormikRegistration {
|
|
186
|
+
registerField: (name: string, fns: {
|
|
187
|
+
validate?: FieldValidator;
|
|
188
|
+
}) => void;
|
|
189
|
+
unregisterField: (name: string) => void;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* State, handlers, and helpers made available to Formik's primitive components through context.
|
|
193
|
+
*/
|
|
194
|
+
export type FormikContextType<Values> = FormikProps<Values> & Pick<FormikConfig<Values>, 'validate' | 'validationSchema'>;
|
|
195
|
+
export interface SharedRenderProps<T> {
|
|
196
|
+
/**
|
|
197
|
+
* Field component to render. Can either be a string like 'select' or a component.
|
|
198
|
+
*/
|
|
199
|
+
component?: keyof JSX.IntrinsicElements | React.ComponentType<T | void>;
|
|
200
|
+
/**
|
|
201
|
+
* Render prop (works like React router's <Route render={props =>} />)
|
|
202
|
+
*/
|
|
203
|
+
render?: (props: T) => React.ReactNode;
|
|
204
|
+
/**
|
|
205
|
+
* Children render function <Field name>{props => ...}</Field>)
|
|
206
|
+
*/
|
|
207
|
+
children?: (props: T) => React.ReactNode;
|
|
208
|
+
}
|
|
209
|
+
export type GenericFieldHTMLAttributes = JSX.IntrinsicElements['input'] | JSX.IntrinsicElements['select'] | JSX.IntrinsicElements['textarea'];
|
|
210
|
+
/** Field metadata */
|
|
211
|
+
export interface FieldMetaProps<Value> {
|
|
212
|
+
/** Value of the field */
|
|
213
|
+
value: Value;
|
|
214
|
+
/** Error message of the field */
|
|
215
|
+
error?: string;
|
|
216
|
+
/** Has the field been visited? */
|
|
217
|
+
touched: boolean;
|
|
218
|
+
/** Initial value of the field */
|
|
219
|
+
initialValue?: Value;
|
|
220
|
+
/** Initial touched state of the field */
|
|
221
|
+
initialTouched: boolean;
|
|
222
|
+
/** Initial error message of the field */
|
|
223
|
+
initialError?: string;
|
|
224
|
+
}
|
|
225
|
+
/** Imperative handles to change a field's value, error and touched */
|
|
226
|
+
export interface FieldHelperProps<Value> {
|
|
227
|
+
/** Set the field's value */
|
|
228
|
+
setValue: (value: Value, shouldValidate?: boolean) => Promise<void | FormikErrors<Value>>;
|
|
229
|
+
/** Set the field's touched value */
|
|
230
|
+
setTouched: (value: boolean, shouldValidate?: boolean) => Promise<void | FormikErrors<Value>>;
|
|
231
|
+
/** Set the field's error value */
|
|
232
|
+
setError: (value: string | undefined) => void;
|
|
233
|
+
}
|
|
234
|
+
/** Field input value, name, and event handlers */
|
|
235
|
+
export interface FieldInputProps<Value> {
|
|
236
|
+
/** Value of the field */
|
|
237
|
+
value: Value;
|
|
238
|
+
/** Name of the field */
|
|
239
|
+
name: string;
|
|
240
|
+
/** Multiple select? */
|
|
241
|
+
multiple?: boolean;
|
|
242
|
+
/** Is the field checked? */
|
|
243
|
+
checked?: boolean;
|
|
244
|
+
/** Change event handler */
|
|
245
|
+
onChange: FormikHandlers['handleChange'];
|
|
246
|
+
/** Blur event handler */
|
|
247
|
+
onBlur: FormikHandlers['handleBlur'];
|
|
248
|
+
}
|
|
249
|
+
export type FieldValidator = (value: any) => string | void | Promise<string | void>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/** @private is the value an empty array? */
|
|
3
|
+
export declare const isEmptyArray: (value?: any) => boolean;
|
|
4
|
+
/** @private is the given object a Function? */
|
|
5
|
+
export declare const isFunction: (obj: any) => obj is Function;
|
|
6
|
+
/** @private is the given object an Object? */
|
|
7
|
+
export declare const isObject: (obj: any) => obj is Object;
|
|
8
|
+
/** @private is the given object an integer? */
|
|
9
|
+
export declare const isInteger: (obj: any) => boolean;
|
|
10
|
+
/** @private is the given object a string? */
|
|
11
|
+
export declare const isString: (obj: any) => obj is string;
|
|
12
|
+
/** @private is the given object a NaN? */
|
|
13
|
+
export declare const isNaN: (obj: any) => boolean;
|
|
14
|
+
/** @private Does a React component have exactly 0 children? */
|
|
15
|
+
export declare const isEmptyChildren: (children: any) => boolean;
|
|
16
|
+
/** @private is the given object/value a promise? */
|
|
17
|
+
export declare const isPromise: (value: any) => value is PromiseLike<any>;
|
|
18
|
+
/** @private is the given object/value a type of synthetic event? */
|
|
19
|
+
export declare const isInputEvent: (value: any) => value is React.SyntheticEvent<any, Event>;
|
|
20
|
+
/**
|
|
21
|
+
* Same as document.activeElement but wraps in a try-catch block. In IE it is
|
|
22
|
+
* not safe to call document.activeElement if there is nothing focused.
|
|
23
|
+
*
|
|
24
|
+
* The activeElement will be null only if the document or document body is not
|
|
25
|
+
* yet defined.
|
|
26
|
+
*
|
|
27
|
+
* @param {?Document} doc Defaults to current document.
|
|
28
|
+
* @return {Element | null}
|
|
29
|
+
* @see https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/dom/getActiveElement.js
|
|
30
|
+
*/
|
|
31
|
+
export declare function getActiveElement(doc?: Document): Element | null;
|
|
32
|
+
/**
|
|
33
|
+
* Deeply get a value from an object via its path.
|
|
34
|
+
*/
|
|
35
|
+
export declare function getIn(obj: any, key: string | string[], def?: any, p?: number): any;
|
|
36
|
+
/**
|
|
37
|
+
* Deeply set a value from in object via it's path. If the value at `path`
|
|
38
|
+
* has changed, return a shallow copy of obj with `value` set at `path`.
|
|
39
|
+
* If `value` has not changed, return the original `obj`.
|
|
40
|
+
*
|
|
41
|
+
* Existing objects / arrays along `path` are also shallow copied. Sibling
|
|
42
|
+
* objects along path retain the same internal js reference. Since new
|
|
43
|
+
* objects / arrays are only created along `path`, we can test if anything
|
|
44
|
+
* changed in a nested structure by comparing the object's reference in
|
|
45
|
+
* the old and new object, similar to how russian doll cache invalidation
|
|
46
|
+
* works.
|
|
47
|
+
*
|
|
48
|
+
* In earlier versions of this function, which used cloneDeep, there were
|
|
49
|
+
* issues whereby settings a nested value would mutate the parent
|
|
50
|
+
* instead of creating a new object. `clone` avoids that bug making a
|
|
51
|
+
* shallow copy of the objects along the update path
|
|
52
|
+
* so no object is mutated in place.
|
|
53
|
+
*
|
|
54
|
+
* Before changing this function, please read through the following
|
|
55
|
+
* discussions.
|
|
56
|
+
*
|
|
57
|
+
* @see https://github.com/developit/linkstate
|
|
58
|
+
* @see https://github.com/jaredpalmer/formik/pull/123
|
|
59
|
+
*/
|
|
60
|
+
export declare function setIn(obj: any, path: string, value: any): any;
|
|
61
|
+
/**
|
|
62
|
+
* Recursively a set the same value for all keys and arrays nested object, cloning
|
|
63
|
+
* @param object
|
|
64
|
+
* @param value
|
|
65
|
+
* @param visited
|
|
66
|
+
* @param response
|
|
67
|
+
*/
|
|
68
|
+
export declare function setNestedObjectValues<T>(object: any, value: any, visited?: any, response?: any): T;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FormikHelpers, FormikProps, FormikSharedConfig, FormikValues, FormikTouched, FormikErrors } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* State, handlers, and helpers injected as props into the wrapped form component.
|
|
5
|
+
* Used with withFormik()
|
|
6
|
+
*
|
|
7
|
+
* @deprecated Use `OuterProps & FormikProps<Values>` instead.
|
|
8
|
+
*/
|
|
9
|
+
export type InjectedFormikProps<Props, Values> = Props & FormikProps<Values>;
|
|
10
|
+
/**
|
|
11
|
+
* Formik helpers + { props }
|
|
12
|
+
*/
|
|
13
|
+
export type FormikBag<P, V> = {
|
|
14
|
+
props: P;
|
|
15
|
+
} & FormikHelpers<V>;
|
|
16
|
+
/**
|
|
17
|
+
* withFormik() configuration options. Backwards compatible.
|
|
18
|
+
*/
|
|
19
|
+
export interface WithFormikConfig<Props, Values extends FormikValues = FormikValues, DeprecatedPayload = Values> extends FormikSharedConfig<Props> {
|
|
20
|
+
/**
|
|
21
|
+
* Set the display name of the component. Useful for React DevTools.
|
|
22
|
+
*/
|
|
23
|
+
displayName?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Submission handler
|
|
26
|
+
*/
|
|
27
|
+
handleSubmit: (values: Values, formikBag: FormikBag<Props, Values>) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Map props to the form values
|
|
30
|
+
*/
|
|
31
|
+
mapPropsToValues?: (props: Props) => Values;
|
|
32
|
+
/**
|
|
33
|
+
* Map props to the form status
|
|
34
|
+
*/
|
|
35
|
+
mapPropsToStatus?: (props: Props) => any;
|
|
36
|
+
/**
|
|
37
|
+
* Map props to the form touched state
|
|
38
|
+
*/
|
|
39
|
+
mapPropsToTouched?: (props: Props) => FormikTouched<Values>;
|
|
40
|
+
/**
|
|
41
|
+
* Map props to the form errors state
|
|
42
|
+
*/
|
|
43
|
+
mapPropsToErrors?: (props: Props) => FormikErrors<Values>;
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated in 0.9.0 (but needed to break TS types)
|
|
46
|
+
*/
|
|
47
|
+
mapValuesToPayload?: (values: Values) => DeprecatedPayload;
|
|
48
|
+
/**
|
|
49
|
+
* A Yup Schema or a function that returns a Yup schema
|
|
50
|
+
*/
|
|
51
|
+
validationSchema?: any | ((props: Props) => any);
|
|
52
|
+
/**
|
|
53
|
+
* Validation function. Must return an error object or promise that
|
|
54
|
+
* throws an error object where that object keys map to corresponding value.
|
|
55
|
+
*/
|
|
56
|
+
validate?: (values: Values, props: Props) => void | object | Promise<any>;
|
|
57
|
+
}
|
|
58
|
+
export type CompositeComponent<P> = React.ComponentClass<P> | React.FunctionComponent<P>;
|
|
59
|
+
export interface ComponentDecorator<TOwnProps, TMergedProps> {
|
|
60
|
+
(component: CompositeComponent<TMergedProps>): React.ComponentType<TOwnProps>;
|
|
61
|
+
}
|
|
62
|
+
export interface InferableComponentDecorator<TOwnProps> {
|
|
63
|
+
<T extends CompositeComponent<TOwnProps>>(component: T): T;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* A public higher-order component to access the imperative API
|
|
67
|
+
*/
|
|
68
|
+
export default function withFormik<OuterProps extends object, Values extends FormikValues, Payload = Values>({ mapPropsToValues, ...config }: WithFormikConfig<OuterProps, Values, Payload>): ComponentDecorator<OuterProps, OuterProps & FormikProps<Values>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GridJustify, GridDirection, GridAlignItems, GridAlignContent } from "./grid-types";
|
|
3
|
+
export type GridBreakpointsValue = number | boolean;
|
|
4
|
+
export interface GridBasicComponentProps {
|
|
5
|
+
xs?: GridBreakpointsValue;
|
|
6
|
+
sm?: GridBreakpointsValue;
|
|
7
|
+
md?: GridBreakpointsValue;
|
|
8
|
+
lg?: GridBreakpointsValue;
|
|
9
|
+
xl?: GridBreakpointsValue;
|
|
10
|
+
justify?: GridJustify;
|
|
11
|
+
direction?: GridDirection;
|
|
12
|
+
alignItems?: GridAlignItems;
|
|
13
|
+
alignContent?: GridAlignContent;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof GridBasicComponentProps>;
|
|
17
|
+
export type GridBasicItemProps = GridBasicComponentProps & NativeAttrs;
|
|
18
|
+
declare const GridBasicItem: React.FC<GridBasicItemProps>;
|
|
19
|
+
export default GridBasicItem;
|