@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,592 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
+
|
|
11
|
+
function _arrayLikeToArray(r, a) {
|
|
12
|
+
(null == a || a > r.length) && (a = r.length);
|
|
13
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
14
|
+
return n;
|
|
15
|
+
}
|
|
16
|
+
function _createForOfIteratorHelper(r, e) {
|
|
17
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
18
|
+
if (!t) {
|
|
19
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
20
|
+
t && (r = t);
|
|
21
|
+
var n = 0,
|
|
22
|
+
F = function () {};
|
|
23
|
+
return {
|
|
24
|
+
s: F,
|
|
25
|
+
n: function () {
|
|
26
|
+
return n >= r.length ? {
|
|
27
|
+
done: !0
|
|
28
|
+
} : {
|
|
29
|
+
done: !1,
|
|
30
|
+
value: r[n++]
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
e: function (r) {
|
|
34
|
+
throw r;
|
|
35
|
+
},
|
|
36
|
+
f: F
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
40
|
+
}
|
|
41
|
+
var o,
|
|
42
|
+
a = !0,
|
|
43
|
+
u = !1;
|
|
44
|
+
return {
|
|
45
|
+
s: function () {
|
|
46
|
+
t = t.call(r);
|
|
47
|
+
},
|
|
48
|
+
n: function () {
|
|
49
|
+
var r = t.next();
|
|
50
|
+
return a = r.done, r;
|
|
51
|
+
},
|
|
52
|
+
e: function (r) {
|
|
53
|
+
u = !0, o = r;
|
|
54
|
+
},
|
|
55
|
+
f: function () {
|
|
56
|
+
try {
|
|
57
|
+
a || null == t.return || t.return();
|
|
58
|
+
} finally {
|
|
59
|
+
if (u) throw o;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function _defineProperty(e, r, t) {
|
|
65
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
66
|
+
value: t,
|
|
67
|
+
enumerable: !0,
|
|
68
|
+
configurable: !0,
|
|
69
|
+
writable: !0
|
|
70
|
+
}) : e[r] = t, e;
|
|
71
|
+
}
|
|
72
|
+
function _extends() {
|
|
73
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
74
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
75
|
+
var t = arguments[e];
|
|
76
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
77
|
+
}
|
|
78
|
+
return n;
|
|
79
|
+
}, _extends.apply(null, arguments);
|
|
80
|
+
}
|
|
81
|
+
function ownKeys(e, r) {
|
|
82
|
+
var t = Object.keys(e);
|
|
83
|
+
if (Object.getOwnPropertySymbols) {
|
|
84
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
85
|
+
r && (o = o.filter(function (r) {
|
|
86
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
87
|
+
})), t.push.apply(t, o);
|
|
88
|
+
}
|
|
89
|
+
return t;
|
|
90
|
+
}
|
|
91
|
+
function _objectSpread2(e) {
|
|
92
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
93
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
94
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
95
|
+
_defineProperty(e, r, t[r]);
|
|
96
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
97
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
return e;
|
|
101
|
+
}
|
|
102
|
+
function _objectWithoutProperties(e, t) {
|
|
103
|
+
if (null == e) return {};
|
|
104
|
+
var o,
|
|
105
|
+
r,
|
|
106
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
107
|
+
if (Object.getOwnPropertySymbols) {
|
|
108
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
109
|
+
for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
110
|
+
}
|
|
111
|
+
return i;
|
|
112
|
+
}
|
|
113
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
114
|
+
if (null == r) return {};
|
|
115
|
+
var t = {};
|
|
116
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
117
|
+
if (e.indexOf(n) >= 0) continue;
|
|
118
|
+
t[n] = r[n];
|
|
119
|
+
}
|
|
120
|
+
return t;
|
|
121
|
+
}
|
|
122
|
+
function _toPrimitive(t, r) {
|
|
123
|
+
if ("object" != typeof t || !t) return t;
|
|
124
|
+
var e = t[Symbol.toPrimitive];
|
|
125
|
+
if (void 0 !== e) {
|
|
126
|
+
var i = e.call(t, r || "default");
|
|
127
|
+
if ("object" != typeof i) return i;
|
|
128
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
129
|
+
}
|
|
130
|
+
return ("string" === r ? String : Number)(t);
|
|
131
|
+
}
|
|
132
|
+
function _toPropertyKey(t) {
|
|
133
|
+
var i = _toPrimitive(t, "string");
|
|
134
|
+
return "symbol" == typeof i ? i : i + "";
|
|
135
|
+
}
|
|
136
|
+
function _typeof(o) {
|
|
137
|
+
"@babel/helpers - typeof";
|
|
138
|
+
|
|
139
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
140
|
+
return typeof o;
|
|
141
|
+
} : function (o) {
|
|
142
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
143
|
+
}, _typeof(o);
|
|
144
|
+
}
|
|
145
|
+
function _unsupportedIterableToArray(r, a) {
|
|
146
|
+
if (r) {
|
|
147
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
148
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
149
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
var ScalePropKeys = ['width', 'height', 'padding', 'margin', 'w', 'h', 'paddingLeft', 'paddingRight', 'paddingTop', 'paddingBottom', 'pl', 'pr', 'pt', 'pb', 'marginLeft', 'marginRight', 'marginTop', 'marginBottom', 'ml', 'mr', 'mt', 'mb', 'px', 'py', 'mx', 'my', 'font', 'unit', 'scale'];
|
|
154
|
+
var defaultDynamicLayoutPipe = function defaultDynamicLayoutPipe(scale1x) {
|
|
155
|
+
return "".concat(scale1x);
|
|
156
|
+
};
|
|
157
|
+
var defaultContext = {
|
|
158
|
+
getScaleProps: function getScaleProps() {
|
|
159
|
+
return undefined;
|
|
160
|
+
},
|
|
161
|
+
getAllScaleProps: function getAllScaleProps() {
|
|
162
|
+
return {};
|
|
163
|
+
},
|
|
164
|
+
SCALES: {
|
|
165
|
+
pl: defaultDynamicLayoutPipe,
|
|
166
|
+
pr: defaultDynamicLayoutPipe,
|
|
167
|
+
pb: defaultDynamicLayoutPipe,
|
|
168
|
+
pt: defaultDynamicLayoutPipe,
|
|
169
|
+
px: defaultDynamicLayoutPipe,
|
|
170
|
+
py: defaultDynamicLayoutPipe,
|
|
171
|
+
mb: defaultDynamicLayoutPipe,
|
|
172
|
+
ml: defaultDynamicLayoutPipe,
|
|
173
|
+
mr: defaultDynamicLayoutPipe,
|
|
174
|
+
mt: defaultDynamicLayoutPipe,
|
|
175
|
+
mx: defaultDynamicLayoutPipe,
|
|
176
|
+
my: defaultDynamicLayoutPipe,
|
|
177
|
+
width: defaultDynamicLayoutPipe,
|
|
178
|
+
height: defaultDynamicLayoutPipe,
|
|
179
|
+
font: defaultDynamicLayoutPipe
|
|
180
|
+
},
|
|
181
|
+
unit: '16px'
|
|
182
|
+
};
|
|
183
|
+
var ScaleContext = /*#__PURE__*/React__default["default"].createContext(defaultContext);
|
|
184
|
+
var useScale$1 = function useScale() {
|
|
185
|
+
return React__default["default"].useContext(ScaleContext);
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
var defaultFont = {
|
|
189
|
+
sans: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',
|
|
190
|
+
mono: 'Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace',
|
|
191
|
+
prism: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,"Liberation Mono", "Courier New", monospace'
|
|
192
|
+
};
|
|
193
|
+
var defaultBreakpoints = {
|
|
194
|
+
xs: {
|
|
195
|
+
min: '0',
|
|
196
|
+
max: '650px'
|
|
197
|
+
},
|
|
198
|
+
sm: {
|
|
199
|
+
min: '650px',
|
|
200
|
+
max: '900px'
|
|
201
|
+
},
|
|
202
|
+
md: {
|
|
203
|
+
min: '900px',
|
|
204
|
+
max: '1280px'
|
|
205
|
+
},
|
|
206
|
+
lg: {
|
|
207
|
+
min: '1280px',
|
|
208
|
+
max: '1920px'
|
|
209
|
+
},
|
|
210
|
+
xl: {
|
|
211
|
+
min: '1920px',
|
|
212
|
+
max: '10000px'
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
var defaultLayout = {
|
|
216
|
+
gap: '16pt',
|
|
217
|
+
gapNegative: '-16pt',
|
|
218
|
+
gapHalf: '8pt',
|
|
219
|
+
gapHalfNegative: '-8pt',
|
|
220
|
+
gapQuarter: '4pt',
|
|
221
|
+
gapQuarterNegative: '-4pt',
|
|
222
|
+
pageMargin: '16pt',
|
|
223
|
+
pageWidth: '750pt',
|
|
224
|
+
pageWidthWithMargin: '782pt',
|
|
225
|
+
breakpointMobile: defaultBreakpoints.xs.max,
|
|
226
|
+
breakpointTablet: defaultBreakpoints.sm.max,
|
|
227
|
+
radius: '6px',
|
|
228
|
+
unit: '16px'
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
var palette$1 = {
|
|
232
|
+
accents_1: '#fafafa',
|
|
233
|
+
accents_2: '#eaeaea',
|
|
234
|
+
accents_3: '#999',
|
|
235
|
+
accents_4: '#888',
|
|
236
|
+
accents_5: '#666',
|
|
237
|
+
accents_6: '#444',
|
|
238
|
+
accents_7: '#333',
|
|
239
|
+
accents_8: '#111',
|
|
240
|
+
background: '#fff',
|
|
241
|
+
foreground: '#000',
|
|
242
|
+
selection: '#79ffe1',
|
|
243
|
+
secondary: '#666',
|
|
244
|
+
code: '#f81ce5',
|
|
245
|
+
border: '#eaeaea',
|
|
246
|
+
error: '#e00',
|
|
247
|
+
errorLight: '#ff1a1a',
|
|
248
|
+
errorLighter: '#f7d4d6',
|
|
249
|
+
errorDark: '#c50000',
|
|
250
|
+
success: '#0070f3',
|
|
251
|
+
successLight: '#3291ff',
|
|
252
|
+
successLighter: '#d3e5ff',
|
|
253
|
+
successDark: '#0761d1',
|
|
254
|
+
warning: '#f5a623',
|
|
255
|
+
warningLight: '#f7b955',
|
|
256
|
+
warningLighter: '#ffefcf',
|
|
257
|
+
warningDark: '#ab570a',
|
|
258
|
+
cyan: '#50e3c2',
|
|
259
|
+
cyanLighter: '#aaffec',
|
|
260
|
+
cyanLight: '#79ffe1',
|
|
261
|
+
cyanDark: '#29bc9b',
|
|
262
|
+
violet: '#7928ca',
|
|
263
|
+
violetLighter: '#e3d7fc',
|
|
264
|
+
violetLight: '#8a63d2',
|
|
265
|
+
violetDark: '#4c2889',
|
|
266
|
+
purple: '#f81ce5',
|
|
267
|
+
alert: '#ff0080',
|
|
268
|
+
magenta: '#eb367f',
|
|
269
|
+
link: '#0070f3'
|
|
270
|
+
};
|
|
271
|
+
var expressiveness$1 = {
|
|
272
|
+
linkStyle: 'none',
|
|
273
|
+
linkHoverStyle: 'none',
|
|
274
|
+
dropdownBoxShadow: '0 4px 4px 0 rgba(0, 0, 0, 0.02)',
|
|
275
|
+
scrollerStart: 'rgba(255, 255, 255, 1)',
|
|
276
|
+
scrollerEnd: 'rgba(255, 255, 255, 0)',
|
|
277
|
+
shadowSmall: '0 5px 10px rgba(0, 0, 0, 0.12)',
|
|
278
|
+
shadowMedium: '0 8px 30px rgba(0, 0, 0, 0.12)',
|
|
279
|
+
shadowLarge: '0 30px 60px rgba(0, 0, 0, 0.12)',
|
|
280
|
+
portalOpacity: 0.25
|
|
281
|
+
};
|
|
282
|
+
var font$1 = defaultFont;
|
|
283
|
+
var breakpoints$1 = defaultBreakpoints;
|
|
284
|
+
var layout$1 = defaultLayout;
|
|
285
|
+
var themes$1 = {
|
|
286
|
+
type: 'light',
|
|
287
|
+
font: font$1,
|
|
288
|
+
layout: layout$1,
|
|
289
|
+
palette: palette$1,
|
|
290
|
+
breakpoints: breakpoints$1,
|
|
291
|
+
expressiveness: expressiveness$1
|
|
292
|
+
};
|
|
293
|
+
var lightTheme = themes$1;
|
|
294
|
+
|
|
295
|
+
var palette = {
|
|
296
|
+
accents_1: '#111',
|
|
297
|
+
accents_2: '#333',
|
|
298
|
+
accents_3: '#444',
|
|
299
|
+
accents_4: '#666',
|
|
300
|
+
accents_5: '#888',
|
|
301
|
+
accents_6: '#999',
|
|
302
|
+
accents_7: '#eaeaea',
|
|
303
|
+
accents_8: '#fafafa',
|
|
304
|
+
background: '#000',
|
|
305
|
+
foreground: '#fff',
|
|
306
|
+
selection: '#f81ce5',
|
|
307
|
+
secondary: '#888',
|
|
308
|
+
code: '#79ffe1',
|
|
309
|
+
border: '#333',
|
|
310
|
+
error: '#e00',
|
|
311
|
+
errorLighter: '#f7d4d6',
|
|
312
|
+
errorLight: '#ff1a1a',
|
|
313
|
+
errorDark: '#c50000',
|
|
314
|
+
success: '#0070f3',
|
|
315
|
+
successLighter: '#d3e5ff',
|
|
316
|
+
successLight: '#3291ff',
|
|
317
|
+
successDark: '#0761d1',
|
|
318
|
+
warning: '#f5a623',
|
|
319
|
+
warningLighter: '#ffefcf',
|
|
320
|
+
warningLight: '#f7b955',
|
|
321
|
+
warningDark: '#ab570a',
|
|
322
|
+
cyan: '#50e3c2',
|
|
323
|
+
cyanLighter: '#aaffec',
|
|
324
|
+
cyanLight: '#79ffe1',
|
|
325
|
+
cyanDark: '#29bc9b',
|
|
326
|
+
violet: '#7928ca',
|
|
327
|
+
violetLighter: '#e3d7fc',
|
|
328
|
+
violetLight: '#8a63d2',
|
|
329
|
+
violetDark: '#4c2889',
|
|
330
|
+
purple: '#f81ce5',
|
|
331
|
+
alert: '#ff0080',
|
|
332
|
+
magenta: '#eb367f',
|
|
333
|
+
link: '#3291ff'
|
|
334
|
+
};
|
|
335
|
+
var expressiveness = {
|
|
336
|
+
linkStyle: 'none',
|
|
337
|
+
linkHoverStyle: 'none',
|
|
338
|
+
dropdownBoxShadow: '0 0 0 1px #333',
|
|
339
|
+
scrollerStart: 'rgba(255, 255, 255, 1)',
|
|
340
|
+
scrollerEnd: 'rgba(255, 255, 255, 0)',
|
|
341
|
+
shadowSmall: '0 0 0 1px #333',
|
|
342
|
+
shadowMedium: '0 0 0 1px #333',
|
|
343
|
+
shadowLarge: '0 0 0 1px #333',
|
|
344
|
+
portalOpacity: 0.75
|
|
345
|
+
};
|
|
346
|
+
var font = defaultFont;
|
|
347
|
+
var breakpoints = defaultBreakpoints;
|
|
348
|
+
var layout = defaultLayout;
|
|
349
|
+
var themes = {
|
|
350
|
+
type: 'dark',
|
|
351
|
+
font: font,
|
|
352
|
+
layout: layout,
|
|
353
|
+
palette: palette,
|
|
354
|
+
breakpoints: breakpoints,
|
|
355
|
+
expressiveness: expressiveness
|
|
356
|
+
};
|
|
357
|
+
var darkTheme = themes;
|
|
358
|
+
|
|
359
|
+
var isObject = function isObject(target) {
|
|
360
|
+
return target && _typeof(target) === 'object';
|
|
361
|
+
};
|
|
362
|
+
var deepDuplicable = function deepDuplicable(source, target) {
|
|
363
|
+
if (!isObject(target) || !isObject(source)) return source;
|
|
364
|
+
var sourceKeys = Object.keys(source);
|
|
365
|
+
var result = {};
|
|
366
|
+
for (var _i = 0, _sourceKeys = sourceKeys; _i < _sourceKeys.length; _i++) {
|
|
367
|
+
var key = _sourceKeys[_i];
|
|
368
|
+
var sourceValue = source[key];
|
|
369
|
+
var targetValue = target[key];
|
|
370
|
+
if (Array.isArray(sourceValue) && Array.isArray(targetValue)) {
|
|
371
|
+
result[key] = targetValue.concat(sourceValue);
|
|
372
|
+
} else if (isObject(sourceValue) && isObject(targetValue)) {
|
|
373
|
+
result[key] = deepDuplicable(sourceValue, _objectSpread2({}, targetValue));
|
|
374
|
+
} else if (targetValue) {
|
|
375
|
+
result[key] = targetValue;
|
|
376
|
+
} else {
|
|
377
|
+
result[key] = sourceValue;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
return result;
|
|
381
|
+
};
|
|
382
|
+
var getPresets = function getPresets() {
|
|
383
|
+
return [lightTheme, darkTheme];
|
|
384
|
+
};
|
|
385
|
+
var getPresetStaticTheme = function getPresetStaticTheme() {
|
|
386
|
+
return lightTheme;
|
|
387
|
+
};
|
|
388
|
+
var isAvailableThemeType = function isAvailableThemeType(type) {
|
|
389
|
+
if (!type) return false;
|
|
390
|
+
var presetThemes = getPresets();
|
|
391
|
+
var hasType = presetThemes.find(function (theme) {
|
|
392
|
+
return theme.type === type;
|
|
393
|
+
});
|
|
394
|
+
return !hasType;
|
|
395
|
+
};
|
|
396
|
+
var isPresetTheme = function isPresetTheme(themeOrType) {
|
|
397
|
+
if (!themeOrType) return false;
|
|
398
|
+
var isType = typeof themeOrType === 'string';
|
|
399
|
+
var type = isType ? themeOrType : themeOrType.type;
|
|
400
|
+
return !isAvailableThemeType(type);
|
|
401
|
+
};
|
|
402
|
+
var hasUserCustomTheme = function hasUserCustomTheme() {
|
|
403
|
+
var themes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
404
|
+
return !!themes.find(function (item) {
|
|
405
|
+
return isAvailableThemeType(item.type);
|
|
406
|
+
});
|
|
407
|
+
};
|
|
408
|
+
var create = function create(base, custom) {
|
|
409
|
+
if (!isAvailableThemeType(custom.type)) {
|
|
410
|
+
throw new Error('Duplicate or unavailable theme type');
|
|
411
|
+
}
|
|
412
|
+
return deepDuplicable(base, custom);
|
|
413
|
+
};
|
|
414
|
+
var createFromDark = function createFromDark(custom) {
|
|
415
|
+
return create(darkTheme, custom);
|
|
416
|
+
};
|
|
417
|
+
var createFromLight = function createFromLight(custom) {
|
|
418
|
+
return create(lightTheme, custom);
|
|
419
|
+
};
|
|
420
|
+
var Themes = {
|
|
421
|
+
isPresetTheme: isPresetTheme,
|
|
422
|
+
isAvailableThemeType: isAvailableThemeType,
|
|
423
|
+
hasUserCustomTheme: hasUserCustomTheme,
|
|
424
|
+
getPresets: getPresets,
|
|
425
|
+
getPresetStaticTheme: getPresetStaticTheme,
|
|
426
|
+
create: create,
|
|
427
|
+
createFromDark: createFromDark,
|
|
428
|
+
createFromLight: createFromLight
|
|
429
|
+
};
|
|
430
|
+
var Themes$1 = Themes;
|
|
431
|
+
|
|
432
|
+
var defaultTheme = Themes$1.getPresetStaticTheme();
|
|
433
|
+
var ThemeContext = /*#__PURE__*/React__default["default"].createContext(defaultTheme);
|
|
434
|
+
var useTheme$1 = function useTheme() {
|
|
435
|
+
return React__default["default"].useContext(ThemeContext);
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
var useTheme = useTheme$1;
|
|
439
|
+
|
|
440
|
+
var isCSSNumberValue = function isCSSNumberValue(value) {
|
|
441
|
+
return value !== undefined && !Number.isNaN(+value);
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
var generateGetScaleProps = function generateGetScaleProps(props) {
|
|
445
|
+
var getScaleProps = function getScaleProps(keyOrKeys) {
|
|
446
|
+
if (!Array.isArray(keyOrKeys)) return props[keyOrKeys];
|
|
447
|
+
var value = undefined;
|
|
448
|
+
var _iterator = _createForOfIteratorHelper(keyOrKeys),
|
|
449
|
+
_step;
|
|
450
|
+
try {
|
|
451
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
452
|
+
var key = _step.value;
|
|
453
|
+
var currentValue = props[key];
|
|
454
|
+
if (typeof currentValue !== 'undefined') {
|
|
455
|
+
value = currentValue;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
} catch (err) {
|
|
459
|
+
_iterator.e(err);
|
|
460
|
+
} finally {
|
|
461
|
+
_iterator.f();
|
|
462
|
+
}
|
|
463
|
+
return value;
|
|
464
|
+
};
|
|
465
|
+
return getScaleProps;
|
|
466
|
+
};
|
|
467
|
+
var generateGetAllScaleProps = function generateGetAllScaleProps(props) {
|
|
468
|
+
var getAllScaleProps = function getAllScaleProps() {
|
|
469
|
+
var scaleProps = {};
|
|
470
|
+
var _iterator2 = _createForOfIteratorHelper(ScalePropKeys),
|
|
471
|
+
_step2;
|
|
472
|
+
try {
|
|
473
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
474
|
+
var key = _step2.value;
|
|
475
|
+
var value = props[key];
|
|
476
|
+
if (typeof value !== 'undefined') {
|
|
477
|
+
scaleProps[key] = value;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
} catch (err) {
|
|
481
|
+
_iterator2.e(err);
|
|
482
|
+
} finally {
|
|
483
|
+
_iterator2.f();
|
|
484
|
+
}
|
|
485
|
+
return scaleProps;
|
|
486
|
+
};
|
|
487
|
+
return getAllScaleProps;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
var _excluded = ["children"];
|
|
491
|
+
var reduceScaleCoefficient = function reduceScaleCoefficient(scale) {
|
|
492
|
+
if (scale === 1) return scale;
|
|
493
|
+
var diff = Math.abs((scale - 1) / 2);
|
|
494
|
+
return scale > 1 ? 1 + diff : 1 - diff;
|
|
495
|
+
};
|
|
496
|
+
var withScale = function withScale(Render) {
|
|
497
|
+
var ScaleFC = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
498
|
+
var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31, _ref32, _ref33;
|
|
499
|
+
var children = _ref.children,
|
|
500
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
501
|
+
var _useTheme = useTheme(),
|
|
502
|
+
layout = _useTheme.layout;
|
|
503
|
+
var paddingLeft = props.paddingLeft,
|
|
504
|
+
pl = props.pl,
|
|
505
|
+
paddingRight = props.paddingRight,
|
|
506
|
+
pr = props.pr,
|
|
507
|
+
paddingTop = props.paddingTop,
|
|
508
|
+
pt = props.pt,
|
|
509
|
+
paddingBottom = props.paddingBottom,
|
|
510
|
+
pb = props.pb,
|
|
511
|
+
marginTop = props.marginTop,
|
|
512
|
+
mt = props.mt,
|
|
513
|
+
marginRight = props.marginRight,
|
|
514
|
+
mr = props.mr,
|
|
515
|
+
marginBottom = props.marginBottom,
|
|
516
|
+
mb = props.mb,
|
|
517
|
+
marginLeft = props.marginLeft,
|
|
518
|
+
ml = props.ml,
|
|
519
|
+
px = props.px,
|
|
520
|
+
py = props.py,
|
|
521
|
+
mx = props.mx,
|
|
522
|
+
my = props.my,
|
|
523
|
+
width = props.width,
|
|
524
|
+
height = props.height,
|
|
525
|
+
font = props.font,
|
|
526
|
+
w = props.w,
|
|
527
|
+
h = props.h,
|
|
528
|
+
margin = props.margin,
|
|
529
|
+
padding = props.padding,
|
|
530
|
+
_props$unit = props.unit,
|
|
531
|
+
unit = _props$unit === void 0 ? layout.unit : _props$unit,
|
|
532
|
+
_props$scale = props.scale,
|
|
533
|
+
scale = _props$scale === void 0 ? 1 : _props$scale;
|
|
534
|
+
var makeScaleHandler = function makeScaleHandler(attrValue) {
|
|
535
|
+
return function (scale1x, defaultValue) {
|
|
536
|
+
// 0 means disable scale and the default value is 0
|
|
537
|
+
if (scale1x === 0) {
|
|
538
|
+
scale1x = 1;
|
|
539
|
+
defaultValue = defaultValue || 0;
|
|
540
|
+
}
|
|
541
|
+
var factor = reduceScaleCoefficient(scale) * scale1x;
|
|
542
|
+
if (typeof attrValue === 'undefined') {
|
|
543
|
+
if (typeof defaultValue !== 'undefined') return "".concat(defaultValue);
|
|
544
|
+
return "calc(".concat(factor, " * ").concat(unit, ")");
|
|
545
|
+
}
|
|
546
|
+
if (!isCSSNumberValue(attrValue)) return "".concat(attrValue);
|
|
547
|
+
var customFactor = factor * Number(attrValue);
|
|
548
|
+
return "calc(".concat(customFactor, " * ").concat(unit, ")");
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
var value = {
|
|
552
|
+
unit: unit,
|
|
553
|
+
SCALES: {
|
|
554
|
+
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
|
|
555
|
+
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
|
|
556
|
+
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
|
|
557
|
+
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
|
|
558
|
+
px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !== void 0 ? px : paddingLeft) !== null && _ref13 !== void 0 ? _ref13 : paddingRight) !== null && _ref12 !== void 0 ? _ref12 : pl) !== null && _ref11 !== void 0 ? _ref11 : pr) !== null && _ref10 !== void 0 ? _ref10 : padding),
|
|
559
|
+
py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !== void 0 ? py : paddingTop) !== null && _ref17 !== void 0 ? _ref17 : paddingBottom) !== null && _ref16 !== void 0 ? _ref16 : pt) !== null && _ref15 !== void 0 ? _ref15 : pb) !== null && _ref14 !== void 0 ? _ref14 : padding),
|
|
560
|
+
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
|
|
561
|
+
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
|
|
562
|
+
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
|
|
563
|
+
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
|
|
564
|
+
mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !== void 0 ? mx : marginLeft) !== null && _ref29 !== void 0 ? _ref29 : marginRight) !== null && _ref28 !== void 0 ? _ref28 : ml) !== null && _ref27 !== void 0 ? _ref27 : mr) !== null && _ref26 !== void 0 ? _ref26 : margin),
|
|
565
|
+
my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !== void 0 ? my : marginTop) !== null && _ref33 !== void 0 ? _ref33 : marginBottom) !== null && _ref32 !== void 0 ? _ref32 : mt) !== null && _ref31 !== void 0 ? _ref31 : mb) !== null && _ref30 !== void 0 ? _ref30 : margin),
|
|
566
|
+
width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
|
|
567
|
+
height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
|
|
568
|
+
font: makeScaleHandler(font)
|
|
569
|
+
},
|
|
570
|
+
getScaleProps: generateGetScaleProps(props),
|
|
571
|
+
getAllScaleProps: generateGetAllScaleProps(props)
|
|
572
|
+
};
|
|
573
|
+
return /*#__PURE__*/React__default["default"].createElement(ScaleContext.Provider, {
|
|
574
|
+
value: value
|
|
575
|
+
}, /*#__PURE__*/React__default["default"].createElement(Render, _extends({}, props, {
|
|
576
|
+
ref: ref
|
|
577
|
+
}), children));
|
|
578
|
+
});
|
|
579
|
+
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
580
|
+
return ScaleFC;
|
|
581
|
+
};
|
|
582
|
+
var withScale$1 = withScale;
|
|
583
|
+
|
|
584
|
+
var useScale = useScale$1;
|
|
585
|
+
|
|
586
|
+
exports.ScaleContext = ScaleContext;
|
|
587
|
+
exports.ScalePropKeys = ScalePropKeys;
|
|
588
|
+
exports["default"] = useScale;
|
|
589
|
+
exports.generateGetAllScaleProps = generateGetAllScaleProps;
|
|
590
|
+
exports.generateGetScaleProps = generateGetScaleProps;
|
|
591
|
+
exports.useScale = useScale$1;
|
|
592
|
+
exports.withScale = withScale$1;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ScalePropKeys: string[];
|
|
3
|
+
export type ScaleProps = {
|
|
4
|
+
width?: string | number;
|
|
5
|
+
height?: string | number;
|
|
6
|
+
padding?: string | number;
|
|
7
|
+
margin?: string | number;
|
|
8
|
+
w?: string | number;
|
|
9
|
+
h?: string | number;
|
|
10
|
+
paddingLeft?: string | number;
|
|
11
|
+
paddingRight?: string | number;
|
|
12
|
+
paddingTop?: string | number;
|
|
13
|
+
paddingBottom?: string | number;
|
|
14
|
+
pl?: string | number;
|
|
15
|
+
pr?: string | number;
|
|
16
|
+
pt?: string | number;
|
|
17
|
+
pb?: string | number;
|
|
18
|
+
marginLeft?: string | number;
|
|
19
|
+
marginRight?: string | number;
|
|
20
|
+
marginTop?: string | number;
|
|
21
|
+
marginBottom?: string | number;
|
|
22
|
+
ml?: string | number;
|
|
23
|
+
mr?: string | number;
|
|
24
|
+
mt?: string | number;
|
|
25
|
+
mb?: string | number;
|
|
26
|
+
px?: string | number;
|
|
27
|
+
py?: string | number;
|
|
28
|
+
mx?: string | number;
|
|
29
|
+
my?: string | number;
|
|
30
|
+
font?: string | number;
|
|
31
|
+
unit?: string;
|
|
32
|
+
scale?: number;
|
|
33
|
+
children?: any;
|
|
34
|
+
className?: string;
|
|
35
|
+
} & React.InputHTMLAttributes<any>;
|
|
36
|
+
export type DynamicLayoutPipe = (scale1x: number, defaultValue?: string | number) => string;
|
|
37
|
+
export type ScaleInputKeys = 'pl' | 'pr' | 'pt' | 'pb' | 'px' | 'py' | 'ml' | 'mr' | 'mt' | 'mb' | 'mx' | 'my' | 'width' | 'height' | 'font';
|
|
38
|
+
export type DynamicScales = {
|
|
39
|
+
[key in ScaleInputKeys]: DynamicLayoutPipe;
|
|
40
|
+
};
|
|
41
|
+
export type GetScalePropsFunction = (key: keyof ScaleProps | Array<keyof ScaleProps>) => ScaleProps[keyof ScaleProps];
|
|
42
|
+
export type GetAllScalePropsFunction = () => ScaleProps;
|
|
43
|
+
export interface ScaleConfig {
|
|
44
|
+
SCALES: DynamicScales;
|
|
45
|
+
getScaleProps: GetScalePropsFunction;
|
|
46
|
+
getAllScaleProps: GetAllScalePropsFunction;
|
|
47
|
+
unit: string;
|
|
48
|
+
}
|
|
49
|
+
export declare const ScaleContext: React.Context<ScaleConfig>;
|
|
50
|
+
export declare const useScale: () => ScaleConfig;
|