@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,567 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React$1 = require('react');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var React__default$1 = /*#__PURE__*/_interopDefaultLegacy(React$1);
|
|
10
|
+
|
|
11
|
+
function _extends() {
|
|
12
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
13
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
14
|
+
var t = arguments[e];
|
|
15
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
16
|
+
}
|
|
17
|
+
return n;
|
|
18
|
+
}, _extends.apply(null, arguments);
|
|
19
|
+
}
|
|
20
|
+
function _objectWithoutProperties(e, t) {
|
|
21
|
+
if (null == e) return {};
|
|
22
|
+
var o,
|
|
23
|
+
r,
|
|
24
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
25
|
+
if (Object.getOwnPropertySymbols) {
|
|
26
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
27
|
+
for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
28
|
+
}
|
|
29
|
+
return i;
|
|
30
|
+
}
|
|
31
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
32
|
+
if (null == r) return {};
|
|
33
|
+
var t = {};
|
|
34
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
35
|
+
if (e.indexOf(n) >= 0) continue;
|
|
36
|
+
t[n] = r[n];
|
|
37
|
+
}
|
|
38
|
+
return t;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
var index = {};
|
|
42
|
+
|
|
43
|
+
var React = React__default$1["default"];
|
|
44
|
+
|
|
45
|
+
function _interopDefaultLegacy$1 (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
46
|
+
|
|
47
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy$1(React);
|
|
48
|
+
|
|
49
|
+
/*
|
|
50
|
+
Based on Glamor's sheet
|
|
51
|
+
https://github.com/threepointone/glamor/blob/667b480d31b3721a905021b26e1290ce92ca2879/src/sheet.js
|
|
52
|
+
*/ function _defineProperties(target, props) {
|
|
53
|
+
for(var i = 0; i < props.length; i++){
|
|
54
|
+
var descriptor = props[i];
|
|
55
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
56
|
+
descriptor.configurable = true;
|
|
57
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
58
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
62
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
63
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
64
|
+
return Constructor;
|
|
65
|
+
}
|
|
66
|
+
var isProd = typeof process !== "undefined" && process.env && process.env.NODE_ENV === "production";
|
|
67
|
+
var isString = function(o) {
|
|
68
|
+
return Object.prototype.toString.call(o) === "[object String]";
|
|
69
|
+
};
|
|
70
|
+
var StyleSheet = /*#__PURE__*/ function() {
|
|
71
|
+
function StyleSheet(param) {
|
|
72
|
+
var ref = param === void 0 ? {} : param, _name = ref.name, name = _name === void 0 ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? isProd : _optimizeForSpeed;
|
|
73
|
+
invariant$1(isString(name), "`name` must be a string");
|
|
74
|
+
this._name = name;
|
|
75
|
+
this._deletedRulePlaceholder = "#" + name + "-deleted-rule____{}";
|
|
76
|
+
invariant$1(typeof optimizeForSpeed === "boolean", "`optimizeForSpeed` must be a boolean");
|
|
77
|
+
this._optimizeForSpeed = optimizeForSpeed;
|
|
78
|
+
this._serverSheet = undefined;
|
|
79
|
+
this._tags = [];
|
|
80
|
+
this._injected = false;
|
|
81
|
+
this._rulesCount = 0;
|
|
82
|
+
var node = typeof window !== "undefined" && document.querySelector('meta[property="csp-nonce"]');
|
|
83
|
+
this._nonce = node ? node.getAttribute("content") : null;
|
|
84
|
+
}
|
|
85
|
+
var _proto = StyleSheet.prototype;
|
|
86
|
+
_proto.setOptimizeForSpeed = function setOptimizeForSpeed(bool) {
|
|
87
|
+
invariant$1(typeof bool === "boolean", "`setOptimizeForSpeed` accepts a boolean");
|
|
88
|
+
invariant$1(this._rulesCount === 0, "optimizeForSpeed cannot be when rules have already been inserted");
|
|
89
|
+
this.flush();
|
|
90
|
+
this._optimizeForSpeed = bool;
|
|
91
|
+
this.inject();
|
|
92
|
+
};
|
|
93
|
+
_proto.isOptimizeForSpeed = function isOptimizeForSpeed() {
|
|
94
|
+
return this._optimizeForSpeed;
|
|
95
|
+
};
|
|
96
|
+
_proto.inject = function inject() {
|
|
97
|
+
var _this = this;
|
|
98
|
+
invariant$1(!this._injected, "sheet already injected");
|
|
99
|
+
this._injected = true;
|
|
100
|
+
if (typeof window !== "undefined" && this._optimizeForSpeed) {
|
|
101
|
+
this._tags[0] = this.makeStyleTag(this._name);
|
|
102
|
+
this._optimizeForSpeed = "insertRule" in this.getSheet();
|
|
103
|
+
if (!this._optimizeForSpeed) {
|
|
104
|
+
if (!isProd) {
|
|
105
|
+
console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode.");
|
|
106
|
+
}
|
|
107
|
+
this.flush();
|
|
108
|
+
this._injected = true;
|
|
109
|
+
}
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
this._serverSheet = {
|
|
113
|
+
cssRules: [],
|
|
114
|
+
insertRule: function(rule, index) {
|
|
115
|
+
if (typeof index === "number") {
|
|
116
|
+
_this._serverSheet.cssRules[index] = {
|
|
117
|
+
cssText: rule
|
|
118
|
+
};
|
|
119
|
+
} else {
|
|
120
|
+
_this._serverSheet.cssRules.push({
|
|
121
|
+
cssText: rule
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
return index;
|
|
125
|
+
},
|
|
126
|
+
deleteRule: function(index) {
|
|
127
|
+
_this._serverSheet.cssRules[index] = null;
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
_proto.getSheetForTag = function getSheetForTag(tag) {
|
|
132
|
+
if (tag.sheet) {
|
|
133
|
+
return tag.sheet;
|
|
134
|
+
}
|
|
135
|
+
// this weirdness brought to you by firefox
|
|
136
|
+
for(var i = 0; i < document.styleSheets.length; i++){
|
|
137
|
+
if (document.styleSheets[i].ownerNode === tag) {
|
|
138
|
+
return document.styleSheets[i];
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
_proto.getSheet = function getSheet() {
|
|
143
|
+
return this.getSheetForTag(this._tags[this._tags.length - 1]);
|
|
144
|
+
};
|
|
145
|
+
_proto.insertRule = function insertRule(rule, index) {
|
|
146
|
+
invariant$1(isString(rule), "`insertRule` accepts only strings");
|
|
147
|
+
if (typeof window === "undefined") {
|
|
148
|
+
if (typeof index !== "number") {
|
|
149
|
+
index = this._serverSheet.cssRules.length;
|
|
150
|
+
}
|
|
151
|
+
this._serverSheet.insertRule(rule, index);
|
|
152
|
+
return this._rulesCount++;
|
|
153
|
+
}
|
|
154
|
+
if (this._optimizeForSpeed) {
|
|
155
|
+
var sheet = this.getSheet();
|
|
156
|
+
if (typeof index !== "number") {
|
|
157
|
+
index = sheet.cssRules.length;
|
|
158
|
+
}
|
|
159
|
+
// this weirdness for perf, and chrome's weird bug
|
|
160
|
+
// https://stackoverflow.com/questions/20007992/chrome-suddenly-stopped-accepting-insertrule
|
|
161
|
+
try {
|
|
162
|
+
sheet.insertRule(rule, index);
|
|
163
|
+
} catch (error) {
|
|
164
|
+
if (!isProd) {
|
|
165
|
+
console.warn("StyleSheet: illegal rule: \n\n" + rule + "\n\nSee https://stackoverflow.com/q/20007992 for more info");
|
|
166
|
+
}
|
|
167
|
+
return -1;
|
|
168
|
+
}
|
|
169
|
+
} else {
|
|
170
|
+
var insertionPoint = this._tags[index];
|
|
171
|
+
this._tags.push(this.makeStyleTag(this._name, rule, insertionPoint));
|
|
172
|
+
}
|
|
173
|
+
return this._rulesCount++;
|
|
174
|
+
};
|
|
175
|
+
_proto.replaceRule = function replaceRule(index, rule) {
|
|
176
|
+
if (this._optimizeForSpeed || typeof window === "undefined") {
|
|
177
|
+
var sheet = typeof window !== "undefined" ? this.getSheet() : this._serverSheet;
|
|
178
|
+
if (!rule.trim()) {
|
|
179
|
+
rule = this._deletedRulePlaceholder;
|
|
180
|
+
}
|
|
181
|
+
if (!sheet.cssRules[index]) {
|
|
182
|
+
// @TBD Should we throw an error?
|
|
183
|
+
return index;
|
|
184
|
+
}
|
|
185
|
+
sheet.deleteRule(index);
|
|
186
|
+
try {
|
|
187
|
+
sheet.insertRule(rule, index);
|
|
188
|
+
} catch (error) {
|
|
189
|
+
if (!isProd) {
|
|
190
|
+
console.warn("StyleSheet: illegal rule: \n\n" + rule + "\n\nSee https://stackoverflow.com/q/20007992 for more info");
|
|
191
|
+
}
|
|
192
|
+
// In order to preserve the indices we insert a deleteRulePlaceholder
|
|
193
|
+
sheet.insertRule(this._deletedRulePlaceholder, index);
|
|
194
|
+
}
|
|
195
|
+
} else {
|
|
196
|
+
var tag = this._tags[index];
|
|
197
|
+
invariant$1(tag, "old rule at index `" + index + "` not found");
|
|
198
|
+
tag.textContent = rule;
|
|
199
|
+
}
|
|
200
|
+
return index;
|
|
201
|
+
};
|
|
202
|
+
_proto.deleteRule = function deleteRule(index) {
|
|
203
|
+
if (typeof window === "undefined") {
|
|
204
|
+
this._serverSheet.deleteRule(index);
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
if (this._optimizeForSpeed) {
|
|
208
|
+
this.replaceRule(index, "");
|
|
209
|
+
} else {
|
|
210
|
+
var tag = this._tags[index];
|
|
211
|
+
invariant$1(tag, "rule at index `" + index + "` not found");
|
|
212
|
+
tag.parentNode.removeChild(tag);
|
|
213
|
+
this._tags[index] = null;
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
_proto.flush = function flush() {
|
|
217
|
+
this._injected = false;
|
|
218
|
+
this._rulesCount = 0;
|
|
219
|
+
if (typeof window !== "undefined") {
|
|
220
|
+
this._tags.forEach(function(tag) {
|
|
221
|
+
return tag && tag.parentNode.removeChild(tag);
|
|
222
|
+
});
|
|
223
|
+
this._tags = [];
|
|
224
|
+
} else {
|
|
225
|
+
// simpler on server
|
|
226
|
+
this._serverSheet.cssRules = [];
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
_proto.cssRules = function cssRules() {
|
|
230
|
+
var _this = this;
|
|
231
|
+
if (typeof window === "undefined") {
|
|
232
|
+
return this._serverSheet.cssRules;
|
|
233
|
+
}
|
|
234
|
+
return this._tags.reduce(function(rules, tag) {
|
|
235
|
+
if (tag) {
|
|
236
|
+
rules = rules.concat(Array.prototype.map.call(_this.getSheetForTag(tag).cssRules, function(rule) {
|
|
237
|
+
return rule.cssText === _this._deletedRulePlaceholder ? null : rule;
|
|
238
|
+
}));
|
|
239
|
+
} else {
|
|
240
|
+
rules.push(null);
|
|
241
|
+
}
|
|
242
|
+
return rules;
|
|
243
|
+
}, []);
|
|
244
|
+
};
|
|
245
|
+
_proto.makeStyleTag = function makeStyleTag(name, cssString, relativeToTag) {
|
|
246
|
+
if (cssString) {
|
|
247
|
+
invariant$1(isString(cssString), "makeStyleTag accepts only strings as second parameter");
|
|
248
|
+
}
|
|
249
|
+
var tag = document.createElement("style");
|
|
250
|
+
if (this._nonce) tag.setAttribute("nonce", this._nonce);
|
|
251
|
+
tag.type = "text/css";
|
|
252
|
+
tag.setAttribute("data-" + name, "");
|
|
253
|
+
if (cssString) {
|
|
254
|
+
tag.appendChild(document.createTextNode(cssString));
|
|
255
|
+
}
|
|
256
|
+
var head = document.head || document.getElementsByTagName("head")[0];
|
|
257
|
+
if (relativeToTag) {
|
|
258
|
+
head.insertBefore(tag, relativeToTag);
|
|
259
|
+
} else {
|
|
260
|
+
head.appendChild(tag);
|
|
261
|
+
}
|
|
262
|
+
return tag;
|
|
263
|
+
};
|
|
264
|
+
_createClass(StyleSheet, [
|
|
265
|
+
{
|
|
266
|
+
key: "length",
|
|
267
|
+
get: function get() {
|
|
268
|
+
return this._rulesCount;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
]);
|
|
272
|
+
return StyleSheet;
|
|
273
|
+
}();
|
|
274
|
+
function invariant$1(condition, message) {
|
|
275
|
+
if (!condition) {
|
|
276
|
+
throw new Error("StyleSheet: " + message + ".");
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
function hash(str) {
|
|
281
|
+
var _$hash = 5381, i = str.length;
|
|
282
|
+
while(i){
|
|
283
|
+
_$hash = _$hash * 33 ^ str.charCodeAt(--i);
|
|
284
|
+
}
|
|
285
|
+
/* JavaScript does bitwise operations (like XOR, above) on 32-bit signed
|
|
286
|
+
* integers. Since we want the results to be always positive, convert the
|
|
287
|
+
* signed int to an unsigned by doing an unsigned bitshift. */ return _$hash >>> 0;
|
|
288
|
+
}
|
|
289
|
+
var stringHash = hash;
|
|
290
|
+
|
|
291
|
+
var sanitize = function(rule) {
|
|
292
|
+
return rule.replace(/\/style/gi, "\\/style");
|
|
293
|
+
};
|
|
294
|
+
var cache = {};
|
|
295
|
+
/**
|
|
296
|
+
* computeId
|
|
297
|
+
*
|
|
298
|
+
* Compute and memoize a jsx id from a basedId and optionally props.
|
|
299
|
+
*/ function computeId(baseId, props) {
|
|
300
|
+
if (!props) {
|
|
301
|
+
return "jsx-" + baseId;
|
|
302
|
+
}
|
|
303
|
+
var propsToString = String(props);
|
|
304
|
+
var key = baseId + propsToString;
|
|
305
|
+
if (!cache[key]) {
|
|
306
|
+
cache[key] = "jsx-" + stringHash(baseId + "-" + propsToString);
|
|
307
|
+
}
|
|
308
|
+
return cache[key];
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* computeSelector
|
|
312
|
+
*
|
|
313
|
+
* Compute and memoize dynamic selectors.
|
|
314
|
+
*/ function computeSelector(id, css) {
|
|
315
|
+
var selectoPlaceholderRegexp = /__jsx-style-dynamic-selector/g;
|
|
316
|
+
// Sanitize SSR-ed CSS.
|
|
317
|
+
// Client side code doesn't need to be sanitized since we use
|
|
318
|
+
// document.createTextNode (dev) and the CSSOM api sheet.insertRule (prod).
|
|
319
|
+
if (typeof window === "undefined") {
|
|
320
|
+
css = sanitize(css);
|
|
321
|
+
}
|
|
322
|
+
var idcss = id + css;
|
|
323
|
+
if (!cache[idcss]) {
|
|
324
|
+
cache[idcss] = css.replace(selectoPlaceholderRegexp, id);
|
|
325
|
+
}
|
|
326
|
+
return cache[idcss];
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
function mapRulesToStyle(cssRules, options) {
|
|
330
|
+
if (options === void 0) options = {};
|
|
331
|
+
return cssRules.map(function(args) {
|
|
332
|
+
var id = args[0];
|
|
333
|
+
var css = args[1];
|
|
334
|
+
return /*#__PURE__*/ React__default["default"].createElement("style", {
|
|
335
|
+
id: "__" + id,
|
|
336
|
+
// Avoid warnings upon render with a key
|
|
337
|
+
key: "__" + id,
|
|
338
|
+
nonce: options.nonce ? options.nonce : undefined,
|
|
339
|
+
dangerouslySetInnerHTML: {
|
|
340
|
+
__html: css
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
var StyleSheetRegistry = /*#__PURE__*/ function() {
|
|
346
|
+
function StyleSheetRegistry(param) {
|
|
347
|
+
var ref = param === void 0 ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === void 0 ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? false : _optimizeForSpeed;
|
|
348
|
+
this._sheet = styleSheet || new StyleSheet({
|
|
349
|
+
name: "styled-jsx",
|
|
350
|
+
optimizeForSpeed: optimizeForSpeed
|
|
351
|
+
});
|
|
352
|
+
this._sheet.inject();
|
|
353
|
+
if (styleSheet && typeof optimizeForSpeed === "boolean") {
|
|
354
|
+
this._sheet.setOptimizeForSpeed(optimizeForSpeed);
|
|
355
|
+
this._optimizeForSpeed = this._sheet.isOptimizeForSpeed();
|
|
356
|
+
}
|
|
357
|
+
this._fromServer = undefined;
|
|
358
|
+
this._indices = {};
|
|
359
|
+
this._instancesCounts = {};
|
|
360
|
+
}
|
|
361
|
+
var _proto = StyleSheetRegistry.prototype;
|
|
362
|
+
_proto.add = function add(props) {
|
|
363
|
+
var _this = this;
|
|
364
|
+
if (undefined === this._optimizeForSpeed) {
|
|
365
|
+
this._optimizeForSpeed = Array.isArray(props.children);
|
|
366
|
+
this._sheet.setOptimizeForSpeed(this._optimizeForSpeed);
|
|
367
|
+
this._optimizeForSpeed = this._sheet.isOptimizeForSpeed();
|
|
368
|
+
}
|
|
369
|
+
if (typeof window !== "undefined" && !this._fromServer) {
|
|
370
|
+
this._fromServer = this.selectFromServer();
|
|
371
|
+
this._instancesCounts = Object.keys(this._fromServer).reduce(function(acc, tagName) {
|
|
372
|
+
acc[tagName] = 0;
|
|
373
|
+
return acc;
|
|
374
|
+
}, {});
|
|
375
|
+
}
|
|
376
|
+
var ref = this.getIdAndRules(props), styleId = ref.styleId, rules = ref.rules;
|
|
377
|
+
// Deduping: just increase the instances count.
|
|
378
|
+
if (styleId in this._instancesCounts) {
|
|
379
|
+
this._instancesCounts[styleId] += 1;
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
var indices = rules.map(function(rule) {
|
|
383
|
+
return _this._sheet.insertRule(rule);
|
|
384
|
+
})// Filter out invalid rules
|
|
385
|
+
.filter(function(index) {
|
|
386
|
+
return index !== -1;
|
|
387
|
+
});
|
|
388
|
+
this._indices[styleId] = indices;
|
|
389
|
+
this._instancesCounts[styleId] = 1;
|
|
390
|
+
};
|
|
391
|
+
_proto.remove = function remove(props) {
|
|
392
|
+
var _this = this;
|
|
393
|
+
var styleId = this.getIdAndRules(props).styleId;
|
|
394
|
+
invariant(styleId in this._instancesCounts, "styleId: `" + styleId + "` not found");
|
|
395
|
+
this._instancesCounts[styleId] -= 1;
|
|
396
|
+
if (this._instancesCounts[styleId] < 1) {
|
|
397
|
+
var tagFromServer = this._fromServer && this._fromServer[styleId];
|
|
398
|
+
if (tagFromServer) {
|
|
399
|
+
tagFromServer.parentNode.removeChild(tagFromServer);
|
|
400
|
+
delete this._fromServer[styleId];
|
|
401
|
+
} else {
|
|
402
|
+
this._indices[styleId].forEach(function(index) {
|
|
403
|
+
return _this._sheet.deleteRule(index);
|
|
404
|
+
});
|
|
405
|
+
delete this._indices[styleId];
|
|
406
|
+
}
|
|
407
|
+
delete this._instancesCounts[styleId];
|
|
408
|
+
}
|
|
409
|
+
};
|
|
410
|
+
_proto.update = function update(props, nextProps) {
|
|
411
|
+
this.add(nextProps);
|
|
412
|
+
this.remove(props);
|
|
413
|
+
};
|
|
414
|
+
_proto.flush = function flush() {
|
|
415
|
+
this._sheet.flush();
|
|
416
|
+
this._sheet.inject();
|
|
417
|
+
this._fromServer = undefined;
|
|
418
|
+
this._indices = {};
|
|
419
|
+
this._instancesCounts = {};
|
|
420
|
+
};
|
|
421
|
+
_proto.cssRules = function cssRules() {
|
|
422
|
+
var _this = this;
|
|
423
|
+
var fromServer = this._fromServer ? Object.keys(this._fromServer).map(function(styleId) {
|
|
424
|
+
return [
|
|
425
|
+
styleId,
|
|
426
|
+
_this._fromServer[styleId]
|
|
427
|
+
];
|
|
428
|
+
}) : [];
|
|
429
|
+
var cssRules = this._sheet.cssRules();
|
|
430
|
+
return fromServer.concat(Object.keys(this._indices).map(function(styleId) {
|
|
431
|
+
return [
|
|
432
|
+
styleId,
|
|
433
|
+
_this._indices[styleId].map(function(index) {
|
|
434
|
+
return cssRules[index].cssText;
|
|
435
|
+
}).join(_this._optimizeForSpeed ? "" : "\n")
|
|
436
|
+
];
|
|
437
|
+
})// filter out empty rules
|
|
438
|
+
.filter(function(rule) {
|
|
439
|
+
return Boolean(rule[1]);
|
|
440
|
+
}));
|
|
441
|
+
};
|
|
442
|
+
_proto.styles = function styles(options) {
|
|
443
|
+
return mapRulesToStyle(this.cssRules(), options);
|
|
444
|
+
};
|
|
445
|
+
_proto.getIdAndRules = function getIdAndRules(props) {
|
|
446
|
+
var css = props.children, dynamic = props.dynamic, id = props.id;
|
|
447
|
+
if (dynamic) {
|
|
448
|
+
var styleId = computeId(id, dynamic);
|
|
449
|
+
return {
|
|
450
|
+
styleId: styleId,
|
|
451
|
+
rules: Array.isArray(css) ? css.map(function(rule) {
|
|
452
|
+
return computeSelector(styleId, rule);
|
|
453
|
+
}) : [
|
|
454
|
+
computeSelector(styleId, css)
|
|
455
|
+
]
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
return {
|
|
459
|
+
styleId: computeId(id),
|
|
460
|
+
rules: Array.isArray(css) ? css : [
|
|
461
|
+
css
|
|
462
|
+
]
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
/**
|
|
466
|
+
* selectFromServer
|
|
467
|
+
*
|
|
468
|
+
* Collects style tags from the document with id __jsx-XXX
|
|
469
|
+
*/ _proto.selectFromServer = function selectFromServer() {
|
|
470
|
+
var elements = Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]'));
|
|
471
|
+
return elements.reduce(function(acc, element) {
|
|
472
|
+
var id = element.id.slice(2);
|
|
473
|
+
acc[id] = element;
|
|
474
|
+
return acc;
|
|
475
|
+
}, {});
|
|
476
|
+
};
|
|
477
|
+
return StyleSheetRegistry;
|
|
478
|
+
}();
|
|
479
|
+
function invariant(condition, message) {
|
|
480
|
+
if (!condition) {
|
|
481
|
+
throw new Error("StyleSheetRegistry: " + message + ".");
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
var StyleSheetContext = /*#__PURE__*/ React.createContext(null);
|
|
485
|
+
StyleSheetContext.displayName = "StyleSheetContext";
|
|
486
|
+
function createStyleRegistry() {
|
|
487
|
+
return new StyleSheetRegistry();
|
|
488
|
+
}
|
|
489
|
+
function StyleRegistry(param) {
|
|
490
|
+
var configuredRegistry = param.registry, children = param.children;
|
|
491
|
+
var rootRegistry = React.useContext(StyleSheetContext);
|
|
492
|
+
var ref = React.useState(function() {
|
|
493
|
+
return rootRegistry || configuredRegistry || createStyleRegistry();
|
|
494
|
+
}), registry = ref[0];
|
|
495
|
+
return /*#__PURE__*/ React__default["default"].createElement(StyleSheetContext.Provider, {
|
|
496
|
+
value: registry
|
|
497
|
+
}, children);
|
|
498
|
+
}
|
|
499
|
+
function useStyleRegistry() {
|
|
500
|
+
return React.useContext(StyleSheetContext);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
// Opt-into the new `useInsertionEffect` API in React 18, fallback to `useLayoutEffect`.
|
|
504
|
+
// https://github.com/reactwg/react-18/discussions/110
|
|
505
|
+
var useInsertionEffect = React__default["default"].useInsertionEffect || React__default["default"].useLayoutEffect;
|
|
506
|
+
var defaultRegistry = typeof window !== "undefined" ? createStyleRegistry() : undefined;
|
|
507
|
+
function JSXStyle(props) {
|
|
508
|
+
var registry = defaultRegistry ? defaultRegistry : useStyleRegistry();
|
|
509
|
+
// If `registry` does not exist, we do nothing here.
|
|
510
|
+
if (!registry) {
|
|
511
|
+
return null;
|
|
512
|
+
}
|
|
513
|
+
if (typeof window === "undefined") {
|
|
514
|
+
registry.add(props);
|
|
515
|
+
return null;
|
|
516
|
+
}
|
|
517
|
+
useInsertionEffect(function() {
|
|
518
|
+
registry.add(props);
|
|
519
|
+
return function() {
|
|
520
|
+
registry.remove(props);
|
|
521
|
+
};
|
|
522
|
+
// props.children can be string[], will be striped since id is identical
|
|
523
|
+
}, [
|
|
524
|
+
props.id,
|
|
525
|
+
String(props.dynamic)
|
|
526
|
+
]);
|
|
527
|
+
return null;
|
|
528
|
+
}
|
|
529
|
+
JSXStyle.dynamic = function(info) {
|
|
530
|
+
return info.map(function(tagInfo) {
|
|
531
|
+
var baseId = tagInfo[0];
|
|
532
|
+
var props = tagInfo[1];
|
|
533
|
+
return computeId(baseId, props);
|
|
534
|
+
}).join(" ");
|
|
535
|
+
};
|
|
536
|
+
|
|
537
|
+
index.StyleRegistry = StyleRegistry;
|
|
538
|
+
index.createStyleRegistry = createStyleRegistry;
|
|
539
|
+
index.style = JSXStyle;
|
|
540
|
+
index.useStyleRegistry = useStyleRegistry;
|
|
541
|
+
|
|
542
|
+
var style = index.style;
|
|
543
|
+
|
|
544
|
+
var _excluded = ["component", "children", "span", "offset", "className"];
|
|
545
|
+
var Col = function Col(_ref) {
|
|
546
|
+
var _ref$component = _ref.component,
|
|
547
|
+
component = _ref$component === void 0 ? 'div' : _ref$component,
|
|
548
|
+
children = _ref.children,
|
|
549
|
+
_ref$span = _ref.span,
|
|
550
|
+
span = _ref$span === void 0 ? 24 : _ref$span,
|
|
551
|
+
_ref$offset = _ref.offset,
|
|
552
|
+
offset = _ref$offset === void 0 ? 0 : _ref$offset,
|
|
553
|
+
_ref$className = _ref.className,
|
|
554
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
555
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
556
|
+
var Component = component;
|
|
557
|
+
return /*#__PURE__*/React__default$1["default"].createElement(Component, _extends({}, props, {
|
|
558
|
+
className: style.dynamic([["540733280", [100 / 24 * span, 100 / 24 * offset]]]) + " " + (props && props.className != null && props.className || "col ".concat(className))
|
|
559
|
+
}), children, /*#__PURE__*/React__default$1["default"].createElement(style, {
|
|
560
|
+
id: "540733280",
|
|
561
|
+
dynamic: [100 / 24 * span, 100 / 24 * offset]
|
|
562
|
+
}, ".col.__jsx-style-dynamic-selector{float:left;box-sizing:border-box;padding-left:calc(var(--row-gap) / 2);padding-right:calc(var(--row-gap) / 2);width:".concat(100 / 24 * span, "%;margin-left:").concat(100 / 24 * offset, "%;}")));
|
|
563
|
+
};
|
|
564
|
+
Col.displayName = 'Col';
|
|
565
|
+
var Col$1 = Col;
|
|
566
|
+
|
|
567
|
+
exports["default"] = Col$1;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CollapseConfig {
|
|
3
|
+
values: Array<number>;
|
|
4
|
+
updateValues?: (currentIndex: number | undefined, nextState: boolean) => unknown;
|
|
5
|
+
}
|
|
6
|
+
export declare const CollapseContext: React.Context<CollapseConfig>;
|
|
7
|
+
export declare const useCollapseContext: () => CollapseConfig;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
accordion?: boolean;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>;
|
|
7
|
+
export type CollapseGroupProps = Props & NativeAttrs;
|
|
8
|
+
declare const CollapseGroup: React.ForwardRefExoticComponent<Props & NativeAttrs & {
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
} & {
|
|
11
|
+
width?: string | number | undefined;
|
|
12
|
+
height?: string | number | undefined;
|
|
13
|
+
padding?: string | number | undefined;
|
|
14
|
+
margin?: string | number | undefined;
|
|
15
|
+
w?: string | number | undefined;
|
|
16
|
+
h?: string | number | undefined;
|
|
17
|
+
paddingLeft?: string | number | undefined;
|
|
18
|
+
paddingRight?: string | number | undefined;
|
|
19
|
+
paddingTop?: string | number | undefined;
|
|
20
|
+
paddingBottom?: string | number | undefined;
|
|
21
|
+
pl?: string | number | undefined;
|
|
22
|
+
pr?: string | number | undefined;
|
|
23
|
+
pt?: string | number | undefined;
|
|
24
|
+
pb?: string | number | undefined;
|
|
25
|
+
marginLeft?: string | number | undefined;
|
|
26
|
+
marginRight?: string | number | undefined;
|
|
27
|
+
marginTop?: string | number | undefined;
|
|
28
|
+
marginBottom?: string | number | undefined;
|
|
29
|
+
ml?: string | number | undefined;
|
|
30
|
+
mr?: string | number | undefined;
|
|
31
|
+
mt?: string | number | undefined;
|
|
32
|
+
mb?: string | number | undefined;
|
|
33
|
+
px?: string | number | undefined;
|
|
34
|
+
py?: string | number | undefined;
|
|
35
|
+
mx?: string | number | undefined;
|
|
36
|
+
my?: string | number | undefined;
|
|
37
|
+
font?: string | number | undefined;
|
|
38
|
+
unit?: string | undefined;
|
|
39
|
+
scale?: number | undefined;
|
|
40
|
+
children?: any;
|
|
41
|
+
className?: string | undefined;
|
|
42
|
+
} & React.InputHTMLAttributes<any> & React.RefAttributes<unknown>>;
|
|
43
|
+
export default CollapseGroup;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle?: React.ReactNode | string;
|
|
5
|
+
initialVisible?: boolean;
|
|
6
|
+
shadow?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
index?: number;
|
|
9
|
+
}
|
|
10
|
+
type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>;
|
|
11
|
+
export type CollapseProps = Props & NativeAttrs;
|
|
12
|
+
declare const Collapse: React.ForwardRefExoticComponent<Props & NativeAttrs & {
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
} & {
|
|
15
|
+
width?: string | number | undefined;
|
|
16
|
+
height?: string | number | undefined;
|
|
17
|
+
padding?: string | number | undefined;
|
|
18
|
+
margin?: string | number | undefined;
|
|
19
|
+
w?: string | number | undefined;
|
|
20
|
+
h?: string | number | undefined;
|
|
21
|
+
paddingLeft?: string | number | undefined;
|
|
22
|
+
paddingRight?: string | number | undefined;
|
|
23
|
+
paddingTop?: string | number | undefined;
|
|
24
|
+
paddingBottom?: string | number | undefined;
|
|
25
|
+
pl?: string | number | undefined;
|
|
26
|
+
pr?: string | number | undefined;
|
|
27
|
+
pt?: string | number | undefined;
|
|
28
|
+
pb?: string | number | undefined;
|
|
29
|
+
marginLeft?: string | number | undefined;
|
|
30
|
+
marginRight?: string | number | undefined;
|
|
31
|
+
marginTop?: string | number | undefined;
|
|
32
|
+
marginBottom?: string | number | undefined;
|
|
33
|
+
ml?: string | number | undefined;
|
|
34
|
+
mr?: string | number | undefined;
|
|
35
|
+
mt?: string | number | undefined;
|
|
36
|
+
mb?: string | number | undefined;
|
|
37
|
+
px?: string | number | undefined;
|
|
38
|
+
py?: string | number | undefined;
|
|
39
|
+
mx?: string | number | undefined;
|
|
40
|
+
my?: string | number | undefined;
|
|
41
|
+
font?: string | number | undefined;
|
|
42
|
+
unit?: string | undefined;
|
|
43
|
+
scale?: number | undefined;
|
|
44
|
+
children?: any;
|
|
45
|
+
className?: string | undefined;
|
|
46
|
+
} & React.InputHTMLAttributes<any> & React.RefAttributes<unknown>>;
|
|
47
|
+
export default Collapse;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Collapse from "./collapse";
|
|
2
|
+
import CollapseGroup from "./collapse-group";
|
|
3
|
+
export type CollapseComponentType = typeof Collapse & {
|
|
4
|
+
Group: typeof CollapseGroup;
|
|
5
|
+
};
|
|
6
|
+
export type { CollapseProps } from "./collapse";
|
|
7
|
+
export type { CollapseGroupProps } from "./collapse-group";
|
|
8
|
+
declare const _default: CollapseComponentType;
|
|
9
|
+
export default _default;
|