@beautinique/frontend-components 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +389 -14
- package/dist/auth/AuthBottomInstructions.d.cts +42 -0
- package/dist/auth/AuthBottomInstructions.d.cts.map +1 -0
- package/dist/auth/AuthBottomInstructions.d.ts +42 -0
- package/dist/auth/AuthBottomInstructions.d.ts.map +1 -0
- package/dist/auth/SocialAuth.d.cts +33 -0
- package/dist/auth/SocialAuth.d.cts.map +1 -0
- package/dist/auth/SocialAuth.d.ts +33 -0
- package/dist/auth/SocialAuth.d.ts.map +1 -0
- package/dist/auth/index.cjs +84 -0
- package/dist/auth/index.cjs.map +1 -0
- package/dist/auth/index.d.cts +3 -0
- package/dist/auth/index.d.cts.map +1 -0
- package/dist/auth/index.d.ts +3 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +81 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/breadcrumb/Breadcrumb.d.cts +34 -0
- package/dist/breadcrumb/Breadcrumb.d.cts.map +1 -0
- package/dist/breadcrumb/Breadcrumb.d.ts +34 -0
- package/dist/breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/breadcrumb/breadcrumb-icons.d.cts +6 -0
- package/dist/breadcrumb/breadcrumb-icons.d.cts.map +1 -0
- package/dist/breadcrumb/breadcrumb-icons.d.ts +6 -0
- package/dist/breadcrumb/breadcrumb-icons.d.ts.map +1 -0
- package/dist/breadcrumb/getBreadcrumbItems.d.cts +16 -0
- package/dist/breadcrumb/getBreadcrumbItems.d.cts.map +1 -0
- package/dist/breadcrumb/getBreadcrumbItems.d.ts +16 -0
- package/dist/breadcrumb/getBreadcrumbItems.d.ts.map +1 -0
- package/dist/breadcrumb/index.cjs +110 -0
- package/dist/breadcrumb/index.cjs.map +1 -0
- package/dist/breadcrumb/index.d.cts +3 -0
- package/dist/breadcrumb/index.d.cts.map +1 -0
- package/dist/breadcrumb/index.d.ts +3 -0
- package/dist/breadcrumb/index.d.ts.map +1 -0
- package/dist/breadcrumb/index.js +107 -0
- package/dist/breadcrumb/index.js.map +1 -0
- package/dist/color-input/ColorInput.d.cts +33 -0
- package/dist/color-input/ColorInput.d.cts.map +1 -0
- package/dist/color-input/ColorInput.d.ts +33 -0
- package/dist/color-input/ColorInput.d.ts.map +1 -0
- package/dist/color-input/color-input-icons.d.cts +6 -0
- package/dist/color-input/color-input-icons.d.cts.map +1 -0
- package/dist/color-input/color-input-icons.d.ts +6 -0
- package/dist/color-input/color-input-icons.d.ts.map +1 -0
- package/dist/color-input/color.d.cts +10 -0
- package/dist/color-input/color.d.cts.map +1 -0
- package/dist/color-input/color.d.ts +10 -0
- package/dist/color-input/color.d.ts.map +1 -0
- package/dist/color-input/index.cjs +375 -0
- package/dist/color-input/index.cjs.map +1 -0
- package/dist/color-input/index.d.cts +2 -0
- package/dist/color-input/index.d.cts.map +1 -0
- package/dist/color-input/index.d.ts +2 -0
- package/dist/color-input/index.d.ts.map +1 -0
- package/dist/color-input/index.js +373 -0
- package/dist/color-input/index.js.map +1 -0
- package/dist/file-input/FileInput.d.cts +53 -0
- package/dist/file-input/FileInput.d.cts.map +1 -0
- package/dist/file-input/FileInput.d.ts +53 -0
- package/dist/file-input/FileInput.d.ts.map +1 -0
- package/dist/file-input/file-input-icons.d.cts +6 -0
- package/dist/file-input/file-input-icons.d.cts.map +1 -0
- package/dist/file-input/file-input-icons.d.ts +6 -0
- package/dist/file-input/file-input-icons.d.ts.map +1 -0
- package/dist/file-input/index.cjs +259 -0
- package/dist/file-input/index.cjs.map +1 -0
- package/dist/file-input/index.d.cts +3 -0
- package/dist/file-input/index.d.cts.map +1 -0
- package/dist/file-input/index.d.ts +3 -0
- package/dist/file-input/index.d.ts.map +1 -0
- package/dist/file-input/index.js +256 -0
- package/dist/file-input/index.js.map +1 -0
- package/dist/file-input/media-type.d.cts +8 -0
- package/dist/file-input/media-type.d.cts.map +1 -0
- package/dist/file-input/media-type.d.ts +8 -0
- package/dist/file-input/media-type.d.ts.map +1 -0
- package/dist/file-input/useObjectUrls.d.cts +10 -0
- package/dist/file-input/useObjectUrls.d.cts.map +1 -0
- package/dist/file-input/useObjectUrls.d.ts +10 -0
- package/dist/file-input/useObjectUrls.d.ts.map +1 -0
- package/dist/hierarchy-select/HierarchySelect.d.cts +58 -0
- package/dist/hierarchy-select/HierarchySelect.d.cts.map +1 -0
- package/dist/hierarchy-select/HierarchySelect.d.ts +58 -0
- package/dist/hierarchy-select/HierarchySelect.d.ts.map +1 -0
- package/dist/hierarchy-select/hierarchy-select-icons.d.cts +6 -0
- package/dist/hierarchy-select/hierarchy-select-icons.d.cts.map +1 -0
- package/dist/hierarchy-select/hierarchy-select-icons.d.ts +6 -0
- package/dist/hierarchy-select/hierarchy-select-icons.d.ts.map +1 -0
- package/dist/hierarchy-select/index.cjs +596 -0
- package/dist/hierarchy-select/index.cjs.map +1 -0
- package/dist/hierarchy-select/index.d.cts +2 -0
- package/dist/hierarchy-select/index.d.cts.map +1 -0
- package/dist/hierarchy-select/index.d.ts +2 -0
- package/dist/hierarchy-select/index.d.ts.map +1 -0
- package/dist/hierarchy-select/index.js +594 -0
- package/dist/hierarchy-select/index.js.map +1 -0
- package/dist/hierarchy-select/tree.d.cts +38 -0
- package/dist/hierarchy-select/tree.d.cts.map +1 -0
- package/dist/hierarchy-select/tree.d.ts +38 -0
- package/dist/hierarchy-select/tree.d.ts.map +1 -0
- package/dist/index.cjs +21 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/inputs/Checkbox.d.cts +21 -0
- package/dist/inputs/Checkbox.d.cts.map +1 -0
- package/dist/inputs/Checkbox.d.ts +21 -0
- package/dist/inputs/Checkbox.d.ts.map +1 -0
- package/dist/inputs/Input.d.cts +26 -0
- package/dist/inputs/Input.d.cts.map +1 -0
- package/dist/inputs/Input.d.ts +26 -0
- package/dist/inputs/Input.d.ts.map +1 -0
- package/dist/inputs/InputError.d.cts +11 -0
- package/dist/inputs/InputError.d.cts.map +1 -0
- package/dist/inputs/InputError.d.ts +11 -0
- package/dist/inputs/InputError.d.ts.map +1 -0
- package/dist/inputs/InputIcon.d.cts +9 -0
- package/dist/inputs/InputIcon.d.cts.map +1 -0
- package/dist/inputs/InputIcon.d.ts +9 -0
- package/dist/inputs/InputIcon.d.ts.map +1 -0
- package/dist/inputs/InputLabel.d.cts +8 -0
- package/dist/inputs/InputLabel.d.cts.map +1 -0
- package/dist/inputs/InputLabel.d.ts +8 -0
- package/dist/inputs/InputLabel.d.ts.map +1 -0
- package/dist/inputs/Radio.d.cts +25 -0
- package/dist/inputs/Radio.d.cts.map +1 -0
- package/dist/inputs/Radio.d.ts +25 -0
- package/dist/inputs/Radio.d.ts.map +1 -0
- package/dist/inputs/Select.d.cts +53 -0
- package/dist/inputs/Select.d.cts.map +1 -0
- package/dist/inputs/Select.d.ts +53 -0
- package/dist/inputs/Select.d.ts.map +1 -0
- package/dist/inputs/Textarea.d.cts +19 -0
- package/dist/inputs/Textarea.d.cts.map +1 -0
- package/dist/inputs/Textarea.d.ts +19 -0
- package/dist/inputs/Textarea.d.ts.map +1 -0
- package/dist/inputs/index.cjs +746 -0
- package/dist/inputs/index.cjs.map +1 -0
- package/dist/inputs/index.d.cts +10 -0
- package/dist/inputs/index.d.cts.map +1 -0
- package/dist/inputs/index.d.ts +10 -0
- package/dist/inputs/index.d.ts.map +1 -0
- package/dist/inputs/index.js +737 -0
- package/dist/inputs/index.js.map +1 -0
- package/dist/inputs/inputs-icons.d.cts +6 -0
- package/dist/inputs/inputs-icons.d.cts.map +1 -0
- package/dist/inputs/inputs-icons.d.ts +6 -0
- package/dist/inputs/inputs-icons.d.ts.map +1 -0
- package/dist/inputs/types.d.cts +48 -0
- package/dist/inputs/types.d.cts.map +1 -0
- package/dist/inputs/types.d.ts +48 -0
- package/dist/inputs/types.d.ts.map +1 -0
- package/dist/inputs/useFieldIds.d.cts +24 -0
- package/dist/inputs/useFieldIds.d.cts.map +1 -0
- package/dist/inputs/useFieldIds.d.ts +24 -0
- package/dist/inputs/useFieldIds.d.ts.map +1 -0
- package/dist/layout/ApiStatus.d.cts +20 -0
- package/dist/layout/ApiStatus.d.cts.map +1 -0
- package/dist/layout/ApiStatus.d.ts +20 -0
- package/dist/layout/ApiStatus.d.ts.map +1 -0
- package/dist/layout/BorderGradient.d.cts +11 -0
- package/dist/layout/BorderGradient.d.cts.map +1 -0
- package/dist/layout/BorderGradient.d.ts +11 -0
- package/dist/layout/BorderGradient.d.ts.map +1 -0
- package/dist/layout/ConfirmModal.d.cts +44 -0
- package/dist/layout/ConfirmModal.d.cts.map +1 -0
- package/dist/layout/ConfirmModal.d.ts +44 -0
- package/dist/layout/ConfirmModal.d.ts.map +1 -0
- package/dist/layout/Dropdown.d.cts +33 -0
- package/dist/layout/Dropdown.d.cts.map +1 -0
- package/dist/layout/Dropdown.d.ts +33 -0
- package/dist/layout/Dropdown.d.ts.map +1 -0
- package/dist/layout/LoadingPage.d.cts +11 -0
- package/dist/layout/LoadingPage.d.cts.map +1 -0
- package/dist/layout/LoadingPage.d.ts +11 -0
- package/dist/layout/LoadingPage.d.ts.map +1 -0
- package/dist/layout/LoadingRings.d.cts +12 -0
- package/dist/layout/LoadingRings.d.cts.map +1 -0
- package/dist/layout/LoadingRings.d.ts +12 -0
- package/dist/layout/LoadingRings.d.ts.map +1 -0
- package/dist/layout/LoadingText.d.cts +13 -0
- package/dist/layout/LoadingText.d.cts.map +1 -0
- package/dist/layout/LoadingText.d.ts +13 -0
- package/dist/layout/LoadingText.d.ts.map +1 -0
- package/dist/layout/ModalWrapper.d.cts +48 -0
- package/dist/layout/ModalWrapper.d.cts.map +1 -0
- package/dist/layout/ModalWrapper.d.ts +48 -0
- package/dist/layout/ModalWrapper.d.ts.map +1 -0
- package/dist/layout/NetworkStatusToaster.d.cts +39 -0
- package/dist/layout/NetworkStatusToaster.d.cts.map +1 -0
- package/dist/layout/NetworkStatusToaster.d.ts +39 -0
- package/dist/layout/NetworkStatusToaster.d.ts.map +1 -0
- package/dist/layout/ScrollToTop.d.cts +36 -0
- package/dist/layout/ScrollToTop.d.cts.map +1 -0
- package/dist/layout/ScrollToTop.d.ts +36 -0
- package/dist/layout/ScrollToTop.d.ts.map +1 -0
- package/dist/layout/ScrollableGradientContainer.d.cts +28 -0
- package/dist/layout/ScrollableGradientContainer.d.cts.map +1 -0
- package/dist/layout/ScrollableGradientContainer.d.ts +28 -0
- package/dist/layout/ScrollableGradientContainer.d.ts.map +1 -0
- package/dist/layout/Skeleton.d.cts +9 -0
- package/dist/layout/Skeleton.d.cts.map +1 -0
- package/dist/layout/Skeleton.d.ts +9 -0
- package/dist/layout/Skeleton.d.ts.map +1 -0
- package/dist/layout/Table.d.cts +9 -0
- package/dist/layout/Table.d.cts.map +1 -0
- package/dist/layout/Table.d.ts +9 -0
- package/dist/layout/Table.d.ts.map +1 -0
- package/dist/layout/index.cjs +773 -0
- package/dist/layout/index.cjs.map +1 -0
- package/dist/layout/index.d.cts +14 -0
- package/dist/layout/index.d.cts.map +1 -0
- package/dist/layout/index.d.ts +14 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/layout/index.js +753 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/layout/layout-icons.d.cts +6 -0
- package/dist/layout/layout-icons.d.cts.map +1 -0
- package/dist/layout/layout-icons.d.ts +6 -0
- package/dist/layout/layout-icons.d.ts.map +1 -0
- package/dist/lib/content.d.cts +7 -0
- package/dist/lib/content.d.cts.map +1 -0
- package/dist/lib/content.d.ts +7 -0
- package/dist/lib/content.d.ts.map +1 -0
- package/dist/lib/countdown.d.cts +13 -0
- package/dist/lib/countdown.d.cts.map +1 -0
- package/dist/lib/countdown.d.ts +13 -0
- package/dist/lib/countdown.d.ts.map +1 -0
- package/dist/lib/dropdown-position.d.cts +33 -0
- package/dist/lib/dropdown-position.d.cts.map +1 -0
- package/dist/lib/dropdown-position.d.ts +33 -0
- package/dist/lib/dropdown-position.d.ts.map +1 -0
- package/dist/lib/focus.d.cts +3 -0
- package/dist/lib/focus.d.cts.map +1 -0
- package/dist/lib/focus.d.ts +3 -0
- package/dist/lib/focus.d.ts.map +1 -0
- package/dist/lib/icon-registry.d.cts +14 -0
- package/dist/lib/icon-registry.d.cts.map +1 -0
- package/dist/lib/icon-registry.d.ts +14 -0
- package/dist/lib/icon-registry.d.ts.map +1 -0
- package/dist/lib/mergeRefs.d.cts +10 -0
- package/dist/lib/mergeRefs.d.cts.map +1 -0
- package/dist/lib/mergeRefs.d.ts +10 -0
- package/dist/lib/mergeRefs.d.ts.map +1 -0
- package/dist/lib/scrollRowIntoView.d.cts +7 -0
- package/dist/lib/scrollRowIntoView.d.cts.map +1 -0
- package/dist/lib/scrollRowIntoView.d.ts +7 -0
- package/dist/lib/scrollRowIntoView.d.ts.map +1 -0
- package/dist/lib/stepper.d.cts +9 -0
- package/dist/lib/stepper.d.cts.map +1 -0
- package/dist/lib/stepper.d.ts +9 -0
- package/dist/lib/stepper.d.ts.map +1 -0
- package/dist/lib/typeahead.d.cts +21 -0
- package/dist/lib/typeahead.d.cts.map +1 -0
- package/dist/lib/typeahead.d.ts +21 -0
- package/dist/lib/typeahead.d.ts.map +1 -0
- package/dist/lib/useAnchoredBox.d.cts +26 -0
- package/dist/lib/useAnchoredBox.d.cts.map +1 -0
- package/dist/lib/useAnchoredBox.d.ts +26 -0
- package/dist/lib/useAnchoredBox.d.ts.map +1 -0
- package/dist/lib/useDismiss.d.cts +34 -0
- package/dist/lib/useDismiss.d.cts.map +1 -0
- package/dist/lib/useDismiss.d.ts +34 -0
- package/dist/lib/useDismiss.d.ts.map +1 -0
- package/dist/lib/useFocusTrap.d.cts +24 -0
- package/dist/lib/useFocusTrap.d.cts.map +1 -0
- package/dist/lib/useFocusTrap.d.ts +24 -0
- package/dist/lib/useFocusTrap.d.ts.map +1 -0
- package/dist/lib/useIsClient.d.cts +7 -0
- package/dist/lib/useIsClient.d.cts.map +1 -0
- package/dist/lib/useIsClient.d.ts +7 -0
- package/dist/lib/useIsClient.d.ts.map +1 -0
- package/dist/lib/usePrefersReducedMotion.d.cts +7 -0
- package/dist/lib/usePrefersReducedMotion.d.cts.map +1 -0
- package/dist/lib/usePrefersReducedMotion.d.ts +7 -0
- package/dist/lib/usePrefersReducedMotion.d.ts.map +1 -0
- package/dist/lib/useScrollLock.d.cts +7 -0
- package/dist/lib/useScrollLock.d.cts.map +1 -0
- package/dist/lib/useScrollLock.d.ts +7 -0
- package/dist/lib/useScrollLock.d.ts.map +1 -0
- package/dist/lib/useScrollable.d.cts +17 -0
- package/dist/lib/useScrollable.d.cts.map +1 -0
- package/dist/lib/useScrollable.d.ts +17 -0
- package/dist/lib/useScrollable.d.ts.map +1 -0
- package/dist/linear-gradient/LinearGradient.d.cts +13 -0
- package/dist/linear-gradient/LinearGradient.d.cts.map +1 -0
- package/dist/linear-gradient/LinearGradient.d.ts +13 -0
- package/dist/linear-gradient/LinearGradient.d.ts.map +1 -0
- package/dist/linear-gradient/index.cjs +25 -0
- package/dist/linear-gradient/index.cjs.map +1 -0
- package/dist/linear-gradient/index.d.cts +2 -0
- package/dist/linear-gradient/index.d.cts.map +1 -0
- package/dist/linear-gradient/index.d.ts +2 -0
- package/dist/linear-gradient/index.d.ts.map +1 -0
- package/dist/linear-gradient/index.js +23 -0
- package/dist/linear-gradient/index.js.map +1 -0
- package/dist/loading-screen/LoadingScreen.d.cts +21 -0
- package/dist/loading-screen/LoadingScreen.d.cts.map +1 -0
- package/dist/loading-screen/LoadingScreen.d.ts +21 -0
- package/dist/loading-screen/LoadingScreen.d.ts.map +1 -0
- package/dist/loading-screen/Teddy.d.cts +10 -0
- package/dist/loading-screen/Teddy.d.cts.map +1 -0
- package/dist/loading-screen/Teddy.d.ts +10 -0
- package/dist/loading-screen/Teddy.d.ts.map +1 -0
- package/dist/loading-screen/WakeUpProgress.d.cts +16 -0
- package/dist/loading-screen/WakeUpProgress.d.cts.map +1 -0
- package/dist/loading-screen/WakeUpProgress.d.ts +16 -0
- package/dist/loading-screen/WakeUpProgress.d.ts.map +1 -0
- package/dist/loading-screen/beauty-facts.d.cts +4 -0
- package/dist/loading-screen/beauty-facts.d.cts.map +1 -0
- package/dist/loading-screen/beauty-facts.d.ts +4 -0
- package/dist/loading-screen/beauty-facts.d.ts.map +1 -0
- package/dist/loading-screen/index.cjs +405 -0
- package/dist/loading-screen/index.cjs.map +1 -0
- package/dist/loading-screen/index.d.cts +5 -0
- package/dist/loading-screen/index.d.cts.map +1 -0
- package/dist/loading-screen/index.d.ts +5 -0
- package/dist/loading-screen/index.d.ts.map +1 -0
- package/dist/loading-screen/index.js +400 -0
- package/dist/loading-screen/index.js.map +1 -0
- package/dist/loading-screen/loading-screen-icons.d.cts +6 -0
- package/dist/loading-screen/loading-screen-icons.d.cts.map +1 -0
- package/dist/loading-screen/loading-screen-icons.d.ts +6 -0
- package/dist/loading-screen/loading-screen-icons.d.ts.map +1 -0
- package/dist/media/MediaCarousel.d.cts +30 -0
- package/dist/media/MediaCarousel.d.cts.map +1 -0
- package/dist/media/MediaCarousel.d.ts +30 -0
- package/dist/media/MediaCarousel.d.ts.map +1 -0
- package/dist/media/MediaCarouselWithModal.d.cts +17 -0
- package/dist/media/MediaCarouselWithModal.d.cts.map +1 -0
- package/dist/media/MediaCarouselWithModal.d.ts +17 -0
- package/dist/media/MediaCarouselWithModal.d.ts.map +1 -0
- package/dist/media/MediaCarouselWithParentMedia.d.cts +30 -0
- package/dist/media/MediaCarouselWithParentMedia.d.cts.map +1 -0
- package/dist/media/MediaCarouselWithParentMedia.d.ts +30 -0
- package/dist/media/MediaCarouselWithParentMedia.d.ts.map +1 -0
- package/dist/media/MediaModal.d.cts +27 -0
- package/dist/media/MediaModal.d.cts.map +1 -0
- package/dist/media/MediaModal.d.ts +27 -0
- package/dist/media/MediaModal.d.ts.map +1 -0
- package/dist/media/VideoPlayer.d.cts +37 -0
- package/dist/media/VideoPlayer.d.cts.map +1 -0
- package/dist/media/VideoPlayer.d.ts +37 -0
- package/dist/media/VideoPlayer.d.ts.map +1 -0
- package/dist/media/captureVideoPoster.d.cts +20 -0
- package/dist/media/captureVideoPoster.d.cts.map +1 -0
- package/dist/media/captureVideoPoster.d.ts +20 -0
- package/dist/media/captureVideoPoster.d.ts.map +1 -0
- package/dist/media/index.cjs +613 -0
- package/dist/media/index.cjs.map +1 -0
- package/dist/media/index.d.cts +8 -0
- package/dist/media/index.d.cts.map +1 -0
- package/dist/media/index.d.ts +8 -0
- package/dist/media/index.d.ts.map +1 -0
- package/dist/media/index.js +605 -0
- package/dist/media/index.js.map +1 -0
- package/dist/media/labels.d.cts +33 -0
- package/dist/media/labels.d.cts.map +1 -0
- package/dist/media/labels.d.ts +33 -0
- package/dist/media/labels.d.ts.map +1 -0
- package/dist/media/media-icons.d.cts +6 -0
- package/dist/media/media-icons.d.cts.map +1 -0
- package/dist/media/media-icons.d.ts +6 -0
- package/dist/media/media-icons.d.ts.map +1 -0
- package/dist/media/streaming.d.cts +18 -0
- package/dist/media/streaming.d.cts.map +1 -0
- package/dist/media/streaming.d.ts +18 -0
- package/dist/media/streaming.d.ts.map +1 -0
- package/dist/resend/Resend.d.cts +37 -0
- package/dist/resend/Resend.d.cts.map +1 -0
- package/dist/resend/Resend.d.ts +37 -0
- package/dist/resend/Resend.d.ts.map +1 -0
- package/dist/resend/index.cjs +115 -0
- package/dist/resend/index.cjs.map +1 -0
- package/dist/resend/index.d.cts +2 -0
- package/dist/resend/index.d.cts.map +1 -0
- package/dist/resend/index.d.ts +2 -0
- package/dist/resend/index.d.ts.map +1 -0
- package/dist/resend/index.js +113 -0
- package/dist/resend/index.js.map +1 -0
- package/dist/static-page/StaticPage.d.cts +91 -0
- package/dist/static-page/StaticPage.d.cts.map +1 -0
- package/dist/static-page/StaticPage.d.ts +91 -0
- package/dist/static-page/StaticPage.d.ts.map +1 -0
- package/dist/static-page/index.cjs +247 -0
- package/dist/static-page/index.cjs.map +1 -0
- package/dist/static-page/index.d.cts +2 -0
- package/dist/static-page/index.d.cts.map +1 -0
- package/dist/static-page/index.d.ts +2 -0
- package/dist/static-page/index.d.ts.map +1 -0
- package/dist/static-page/index.js +235 -0
- package/dist/static-page/index.js.map +1 -0
- package/dist/static-page/static-page-icons.d.cts +6 -0
- package/dist/static-page/static-page-icons.d.cts.map +1 -0
- package/dist/static-page/static-page-icons.d.ts +6 -0
- package/dist/static-page/static-page-icons.d.ts.map +1 -0
- package/dist/stepper/Stepper.d.cts +35 -0
- package/dist/stepper/Stepper.d.cts.map +1 -0
- package/dist/stepper/Stepper.d.ts +35 -0
- package/dist/stepper/Stepper.d.ts.map +1 -0
- package/dist/stepper/index.cjs +149 -0
- package/dist/stepper/index.cjs.map +1 -0
- package/dist/stepper/index.d.cts +2 -0
- package/dist/stepper/index.d.cts.map +1 -0
- package/dist/stepper/index.d.ts +2 -0
- package/dist/stepper/index.d.ts.map +1 -0
- package/dist/stepper/index.js +147 -0
- package/dist/stepper/index.js.map +1 -0
- package/dist/stepper/stepper-icons.d.cts +10 -0
- package/dist/stepper/stepper-icons.d.cts.map +1 -0
- package/dist/stepper/stepper-icons.d.ts +10 -0
- package/dist/stepper/stepper-icons.d.ts.map +1 -0
- package/dist/testimonials/TestimonialCarousel.d.cts +40 -0
- package/dist/testimonials/TestimonialCarousel.d.cts.map +1 -0
- package/dist/testimonials/TestimonialCarousel.d.ts +40 -0
- package/dist/testimonials/TestimonialCarousel.d.ts.map +1 -0
- package/dist/testimonials/index.cjs +246 -0
- package/dist/testimonials/index.cjs.map +1 -0
- package/dist/testimonials/index.d.cts +2 -0
- package/dist/testimonials/index.d.cts.map +1 -0
- package/dist/testimonials/index.d.ts +2 -0
- package/dist/testimonials/index.d.ts.map +1 -0
- package/dist/testimonials/index.js +244 -0
- package/dist/testimonials/index.js.map +1 -0
- package/dist/testimonials/testimonials-icons.d.cts +6 -0
- package/dist/testimonials/testimonials-icons.d.cts.map +1 -0
- package/dist/testimonials/testimonials-icons.d.ts +6 -0
- package/dist/testimonials/testimonials-icons.d.ts.map +1 -0
- package/dist/theme/Theme.d.cts +23 -0
- package/dist/theme/Theme.d.cts.map +1 -0
- package/dist/theme/Theme.d.ts +23 -0
- package/dist/theme/Theme.d.ts.map +1 -0
- package/dist/theme/index.cjs +76 -0
- package/dist/theme/index.cjs.map +1 -0
- package/dist/theme/index.d.cts +2 -0
- package/dist/theme/index.d.cts.map +1 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +74 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/theme-icons.d.cts +21 -0
- package/dist/theme/theme-icons.d.cts.map +1 -0
- package/dist/theme/theme-icons.d.ts +21 -0
- package/dist/theme/theme-icons.d.ts.map +1 -0
- package/dist/toast/index.cjs +2 -38
- package/dist/toast/index.cjs.map +1 -1
- package/dist/toast/index.js +1 -37
- package/dist/toast/index.js.map +1 -1
- package/dist/ui/Badge.d.cts +12 -0
- package/dist/ui/Badge.d.cts.map +1 -0
- package/dist/ui/Badge.d.ts +12 -0
- package/dist/ui/Badge.d.ts.map +1 -0
- package/dist/ui/Divider.d.cts +12 -0
- package/dist/ui/Divider.d.cts.map +1 -0
- package/dist/ui/Divider.d.ts +12 -0
- package/dist/ui/Divider.d.ts.map +1 -0
- package/dist/ui/GradientText.d.cts +30 -0
- package/dist/ui/GradientText.d.cts.map +1 -0
- package/dist/ui/GradientText.d.ts +30 -0
- package/dist/ui/GradientText.d.ts.map +1 -0
- package/dist/ui/index.cjs +37 -3
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +3 -0
- package/dist/ui/index.d.cts.map +1 -1
- package/dist/ui/index.d.ts +3 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +35 -4
- package/dist/ui/index.js.map +1 -1
- package/package.json +108 -6
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type TInputIcons } from '../inputs/index.js';
|
|
3
|
+
import type { IClassName } from '../types/component.js';
|
|
4
|
+
export interface IDropdownApi {
|
|
5
|
+
/** Closes the dropdown, e.g. when something in it was chosen. */
|
|
6
|
+
close: () => void;
|
|
7
|
+
}
|
|
8
|
+
export interface IDropdown extends IClassName {
|
|
9
|
+
/** What the button says: text, or an element. */
|
|
10
|
+
title: ReactNode;
|
|
11
|
+
/** An icon on each side of the title. One with an `onClick` is a button and needs a `label`. */
|
|
12
|
+
icons?: TInputIcons;
|
|
13
|
+
/** What is in the dropdown, or a function that gets `{ close }` to close it. */
|
|
14
|
+
children: ReactNode | ((api: IDropdownApi) => ReactNode);
|
|
15
|
+
/** Open when it is first shown. @default false */
|
|
16
|
+
defaultOpen?: boolean;
|
|
17
|
+
/** A press outside closes it. @default false */
|
|
18
|
+
closeOnOutsideClick?: boolean;
|
|
19
|
+
/** Escape closes it (unless a popup over it takes the Escape first). @default false */
|
|
20
|
+
closeOnEscape?: boolean;
|
|
21
|
+
/** The content floats over the page under the button instead of pushing it down. @default false */
|
|
22
|
+
isAbsolute?: boolean;
|
|
23
|
+
showShadow?: boolean;
|
|
24
|
+
isRounded?: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A button that opens and closes a panel under it (a disclosure): `aria-expanded` says which it is, the
|
|
28
|
+
* panel opens and closes with a slide, and a closed panel is out of reach of the keyboard and of
|
|
29
|
+
* assistive technology (`inert`), not only out of sight. The slide stops for a person who asked for
|
|
30
|
+
* less motion.
|
|
31
|
+
*/
|
|
32
|
+
export declare const Dropdown: ({ title, icons, children, className, defaultOpen, closeOnOutsideClick, closeOnEscape, isAbsolute, showShadow, isRounded, }: IDropdown) => import("react").JSX.Element;
|
|
33
|
+
//# sourceMappingURL=Dropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../src/layout/Dropdown.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,OAAO,CAAC;AAGxD,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGxD,MAAM,WAAW,YAAY;IAC3B,iEAAiE;IACjE,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,MAAM,WAAW,SAAU,SAAQ,UAAU;IAC3C,iDAAiD;IACjD,KAAK,EAAE,SAAS,CAAC;IACjB,gGAAgG;IAChG,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,gFAAgF;IAChF,QAAQ,EAAE,SAAS,GAAG,CAAC,CAAC,GAAG,EAAE,YAAY,KAAK,SAAS,CAAC,CAAC;IACzD,kDAAkD;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gDAAgD;IAChD,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,uFAAuF;IACvF,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mGAAmG;IACnG,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,4HAWtB,SAAS,gCA6DX,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IClassName } from '../types/component.js';
|
|
2
|
+
export interface ILoadingPage extends IClassName {
|
|
3
|
+
/** The word under the rings. @default 'Loading' */
|
|
4
|
+
text?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A whole page that is loading: the rings in the middle of the window, over what is behind. Put it
|
|
8
|
+
* where the page goes (a route that is still being loaded).
|
|
9
|
+
*/
|
|
10
|
+
export declare const LoadingPage: ({ text, className }: ILoadingPage) => import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=LoadingPage.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingPage.d.cts","sourceRoot":"","sources":["../../src/layout/LoadingPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGxD,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,qBAA0B,YAAY,gCAMjE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IClassName } from '../types/component.js';
|
|
2
|
+
export interface ILoadingPage extends IClassName {
|
|
3
|
+
/** The word under the rings. @default 'Loading' */
|
|
4
|
+
text?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A whole page that is loading: the rings in the middle of the window, over what is behind. Put it
|
|
8
|
+
* where the page goes (a route that is still being loaded).
|
|
9
|
+
*/
|
|
10
|
+
export declare const LoadingPage: ({ text, className }: ILoadingPage) => import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=LoadingPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingPage.d.ts","sourceRoot":"","sources":["../../src/layout/LoadingPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGxD,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,qBAA0B,YAAY,gCAMjE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IClassName } from '../types/component.js';
|
|
2
|
+
export interface ILoadingRings extends IClassName {
|
|
3
|
+
/** The word under the rings. @default 'Loading' */
|
|
4
|
+
text?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Three rings that turn in space over a word, for a part of a page that is loading. The size follows
|
|
8
|
+
* the window (`vmin`). The turning is drawn by the `ring-spin` animation of
|
|
9
|
+
* `@beautinique/frontend-styles`, and stops for a person who asked for less motion.
|
|
10
|
+
*/
|
|
11
|
+
export declare const LoadingRings: ({ className, text }: ILoadingRings) => import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=LoadingRings.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingRings.d.cts","sourceRoot":"","sources":["../../src/layout/LoadingRings.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGxD,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AASD;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,qBAAsC,aAAa,gCAwB/E,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IClassName } from '../types/component.js';
|
|
2
|
+
export interface ILoadingRings extends IClassName {
|
|
3
|
+
/** The word under the rings. @default 'Loading' */
|
|
4
|
+
text?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Three rings that turn in space over a word, for a part of a page that is loading. The size follows
|
|
8
|
+
* the window (`vmin`). The turning is drawn by the `ring-spin` animation of
|
|
9
|
+
* `@beautinique/frontend-styles`, and stops for a person who asked for less motion.
|
|
10
|
+
*/
|
|
11
|
+
export declare const LoadingRings: ({ className, text }: ILoadingRings) => import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=LoadingRings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingRings.d.ts","sourceRoot":"","sources":["../../src/layout/LoadingRings.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGxD,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AASD;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,qBAAsC,aAAa,gCAwB/E,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IClassName } from '../types/component.js';
|
|
2
|
+
export interface ILoadingText extends IClassName {
|
|
3
|
+
/** What is written, with a shine that goes over its letters. @default 'Loading' */
|
|
4
|
+
text?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The word "Loading" (or another), with a shine that goes over its letters while the app waits. The
|
|
8
|
+
* shine is drawn by the `loading-text` utility of `@beautinique/frontend-styles` from the `data-text`
|
|
9
|
+
* attribute, which a screen reader does not read, so the text is also written for it
|
|
10
|
+
* (`role="status"`).
|
|
11
|
+
*/
|
|
12
|
+
export declare const LoadingText: ({ text, className }: ILoadingText) => import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=LoadingText.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingText.d.cts","sourceRoot":"","sources":["../../src/layout/LoadingText.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,mFAAmF;IACnF,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,qBAAsC,YAAY,gCAc7E,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IClassName } from '../types/component.js';
|
|
2
|
+
export interface ILoadingText extends IClassName {
|
|
3
|
+
/** What is written, with a shine that goes over its letters. @default 'Loading' */
|
|
4
|
+
text?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The word "Loading" (or another), with a shine that goes over its letters while the app waits. The
|
|
8
|
+
* shine is drawn by the `loading-text` utility of `@beautinique/frontend-styles` from the `data-text`
|
|
9
|
+
* attribute, which a screen reader does not read, so the text is also written for it
|
|
10
|
+
* (`role="status"`).
|
|
11
|
+
*/
|
|
12
|
+
export declare const LoadingText: ({ text, className }: ILoadingText) => import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=LoadingText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingText.d.ts","sourceRoot":"","sources":["../../src/layout/LoadingText.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,mFAAmF;IACnF,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,qBAAsC,YAAY,gCAc7E,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type ComponentProps, type CSSProperties, type ReactNode, type RefObject } from 'react';
|
|
2
|
+
import type { IClassName } from '../types/component.js';
|
|
3
|
+
export interface IModalHeader {
|
|
4
|
+
/** The title: it is the name of the dialog for assistive technology. */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** A button that closes the dialog. */
|
|
7
|
+
showCloseIcon?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface IModalWrapper extends IClassName {
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
/** Called when the dialog asks to be closed: Escape, the close button, a press on the backdrop. */
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
/** Attributes of the backdrop (the layer behind the dialog), e.g. `className`. */
|
|
15
|
+
containerProps?: ComponentProps<'div'>;
|
|
16
|
+
header?: IModalHeader;
|
|
17
|
+
/** Pressing the backdrop closes the dialog. @default true */
|
|
18
|
+
closeOnOutsideClick?: boolean;
|
|
19
|
+
/** The style of the dialog box. */
|
|
20
|
+
style?: CSSProperties;
|
|
21
|
+
/**
|
|
22
|
+
* A name for the dialog when it has no `header.title` ("Sign in"). Give one of the two: a dialog
|
|
23
|
+
* that has no name is announced as just "dialog".
|
|
24
|
+
*/
|
|
25
|
+
label?: string;
|
|
26
|
+
/** The `id` of an element that names the dialog, when it is not the `header.title` or `label`. */
|
|
27
|
+
labelledBy?: string;
|
|
28
|
+
/** The `id` of the element that describes the dialog. */
|
|
29
|
+
describedBy?: string;
|
|
30
|
+
/** A dialog that interrupts to ask for a decision is an `alertdialog`. @default 'dialog' */
|
|
31
|
+
role?: 'dialog' | 'alertdialog';
|
|
32
|
+
/** The element that gets the focus when it opens. @default the first thing Tab stops on */
|
|
33
|
+
initialFocus?: RefObject<HTMLElement | null>;
|
|
34
|
+
/** What the close button is called, for assistive technology. @default 'Close' */
|
|
35
|
+
closeLabel?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A dialog over the page, drawn in `document.body` over a backdrop.
|
|
39
|
+
*
|
|
40
|
+
* It behaves as a dialog has to: it is announced as one (`role="dialog"`, `aria-modal`, named by its
|
|
41
|
+
* title or `label`), the keyboard stays inside it (Tab goes round), the focus goes into it when it
|
|
42
|
+
* opens and back to what had it when it closes, the page behind does not scroll, and Escape closes it
|
|
43
|
+
* (only the one that is on top when there are several). A press on the backdrop closes it too, unless
|
|
44
|
+
* `closeOnOutsideClick` is false; a press that starts inside the dialog and ends on the backdrop (a
|
|
45
|
+
* text that is selected by dragging) does not.
|
|
46
|
+
*/
|
|
47
|
+
export declare const ModalWrapper: ({ isOpen, onClose, children, containerProps, className, header, closeOnOutsideClick, style, label, labelledBy, describedBy, role, initialFocus, closeLabel, }: IModalWrapper) => import("react").ReactPortal | null;
|
|
48
|
+
//# sourceMappingURL=ModalWrapper.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalWrapper.d.cts","sourceRoot":"","sources":["../../src/layout/ModalWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,aAAa,EAGlB,KAAK,SAAS,EACd,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAKxD,MAAM,WAAW,YAAY;IAC3B,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,MAAM,EAAE,OAAO,CAAC;IAChB,mGAAmG;IACnG,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,kFAAkF;IAClF,cAAc,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;IACvC,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,6DAA6D;IAC7D,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,mCAAmC;IACnC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kGAAkG;IAClG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4FAA4F;IAC5F,IAAI,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC;IAChC,2FAA2F;IAC3F,YAAY,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC7C,kFAAkF;IAClF,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,GAAI,+JAe1B,aAAa,uCAqGf,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type ComponentProps, type CSSProperties, type ReactNode, type RefObject } from 'react';
|
|
2
|
+
import type { IClassName } from '../types/component.js';
|
|
3
|
+
export interface IModalHeader {
|
|
4
|
+
/** The title: it is the name of the dialog for assistive technology. */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** A button that closes the dialog. */
|
|
7
|
+
showCloseIcon?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface IModalWrapper extends IClassName {
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
/** Called when the dialog asks to be closed: Escape, the close button, a press on the backdrop. */
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
/** Attributes of the backdrop (the layer behind the dialog), e.g. `className`. */
|
|
15
|
+
containerProps?: ComponentProps<'div'>;
|
|
16
|
+
header?: IModalHeader;
|
|
17
|
+
/** Pressing the backdrop closes the dialog. @default true */
|
|
18
|
+
closeOnOutsideClick?: boolean;
|
|
19
|
+
/** The style of the dialog box. */
|
|
20
|
+
style?: CSSProperties;
|
|
21
|
+
/**
|
|
22
|
+
* A name for the dialog when it has no `header.title` ("Sign in"). Give one of the two: a dialog
|
|
23
|
+
* that has no name is announced as just "dialog".
|
|
24
|
+
*/
|
|
25
|
+
label?: string;
|
|
26
|
+
/** The `id` of an element that names the dialog, when it is not the `header.title` or `label`. */
|
|
27
|
+
labelledBy?: string;
|
|
28
|
+
/** The `id` of the element that describes the dialog. */
|
|
29
|
+
describedBy?: string;
|
|
30
|
+
/** A dialog that interrupts to ask for a decision is an `alertdialog`. @default 'dialog' */
|
|
31
|
+
role?: 'dialog' | 'alertdialog';
|
|
32
|
+
/** The element that gets the focus when it opens. @default the first thing Tab stops on */
|
|
33
|
+
initialFocus?: RefObject<HTMLElement | null>;
|
|
34
|
+
/** What the close button is called, for assistive technology. @default 'Close' */
|
|
35
|
+
closeLabel?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A dialog over the page, drawn in `document.body` over a backdrop.
|
|
39
|
+
*
|
|
40
|
+
* It behaves as a dialog has to: it is announced as one (`role="dialog"`, `aria-modal`, named by its
|
|
41
|
+
* title or `label`), the keyboard stays inside it (Tab goes round), the focus goes into it when it
|
|
42
|
+
* opens and back to what had it when it closes, the page behind does not scroll, and Escape closes it
|
|
43
|
+
* (only the one that is on top when there are several). A press on the backdrop closes it too, unless
|
|
44
|
+
* `closeOnOutsideClick` is false; a press that starts inside the dialog and ends on the backdrop (a
|
|
45
|
+
* text that is selected by dragging) does not.
|
|
46
|
+
*/
|
|
47
|
+
export declare const ModalWrapper: ({ isOpen, onClose, children, containerProps, className, header, closeOnOutsideClick, style, label, labelledBy, describedBy, role, initialFocus, closeLabel, }: IModalWrapper) => import("react").ReactPortal | null;
|
|
48
|
+
//# sourceMappingURL=ModalWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalWrapper.d.ts","sourceRoot":"","sources":["../../src/layout/ModalWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,aAAa,EAGlB,KAAK,SAAS,EACd,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAKxD,MAAM,WAAW,YAAY;IAC3B,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,MAAM,EAAE,OAAO,CAAC;IAChB,mGAAmG;IACnG,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,kFAAkF;IAClF,cAAc,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;IACvC,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,6DAA6D;IAC7D,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,mCAAmC;IACnC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kGAAkG;IAClG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4FAA4F;IAC5F,IAAI,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC;IAChC,2FAA2F;IAC3F,YAAY,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC7C,kFAAkF;IAClF,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,GAAI,+JAe1B,aAAa,uCAqGf,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** How the connection is: `'connecting'` is back on the network but nothing has answered yet. */
|
|
2
|
+
export type TNetworkStatus = 'online' | 'offline' | 'connecting';
|
|
3
|
+
/**
|
|
4
|
+
* The part of the toaster of `@beautinique/frontend-stores` (`createToaster`) that this uses. The
|
|
5
|
+
* toaster is the app's: it is given in, this package has none.
|
|
6
|
+
*/
|
|
7
|
+
export interface INetworkToaster {
|
|
8
|
+
success: (data: {
|
|
9
|
+
title: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
closeTimer?: number;
|
|
12
|
+
}) => string;
|
|
13
|
+
warning: (data: {
|
|
14
|
+
title: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
autoClose?: boolean;
|
|
17
|
+
isClosable?: boolean;
|
|
18
|
+
}) => string;
|
|
19
|
+
loading: (data: {
|
|
20
|
+
title: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
}) => string;
|
|
23
|
+
remove: (toastId: string) => void;
|
|
24
|
+
}
|
|
25
|
+
export interface INetworkStatusToaster {
|
|
26
|
+
/** The state of the connection, e.g. `useOnlineStatus().status` of `@beautinique/frontend-hooks`. */
|
|
27
|
+
status: TNetworkStatus;
|
|
28
|
+
toaster: INetworkToaster;
|
|
29
|
+
}
|
|
30
|
+
/** How long "Back online" stays on screen. Offline and connecting stay until the status changes. */
|
|
31
|
+
export declare const BACK_ONLINE_TOAST_MS = 3000;
|
|
32
|
+
/**
|
|
33
|
+
* Tells the user when the internet goes away and when it comes back, with one toast at a time:
|
|
34
|
+
* "You're offline" (stays), then "Connecting to internet..." (stays) once the network is back but
|
|
35
|
+
* nothing has answered yet, then "Back online" (goes away by itself). Nothing is shown while the user
|
|
36
|
+
* simply is online. It draws nothing itself.
|
|
37
|
+
*/
|
|
38
|
+
export declare const NetworkStatusToaster: ({ status, toaster }: INetworkStatusToaster) => null;
|
|
39
|
+
//# sourceMappingURL=NetworkStatusToaster.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NetworkStatusToaster.d.cts","sourceRoot":"","sources":["../../src/layout/NetworkStatusToaster.tsx"],"names":[],"mappings":"AAEA,iGAAiG;AACjG,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,YAAY,CAAC;AAEjE;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;IACxF,OAAO,EAAE,CAAC,IAAI,EAAE;QACd,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB,KAAK,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;IACnE,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,MAAM,WAAW,qBAAqB;IACpC,qGAAqG;IACrG,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,oGAAoG;AACpG,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,qBAAqB,qBAAqB,SAwD9E,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** How the connection is: `'connecting'` is back on the network but nothing has answered yet. */
|
|
2
|
+
export type TNetworkStatus = 'online' | 'offline' | 'connecting';
|
|
3
|
+
/**
|
|
4
|
+
* The part of the toaster of `@beautinique/frontend-stores` (`createToaster`) that this uses. The
|
|
5
|
+
* toaster is the app's: it is given in, this package has none.
|
|
6
|
+
*/
|
|
7
|
+
export interface INetworkToaster {
|
|
8
|
+
success: (data: {
|
|
9
|
+
title: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
closeTimer?: number;
|
|
12
|
+
}) => string;
|
|
13
|
+
warning: (data: {
|
|
14
|
+
title: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
autoClose?: boolean;
|
|
17
|
+
isClosable?: boolean;
|
|
18
|
+
}) => string;
|
|
19
|
+
loading: (data: {
|
|
20
|
+
title: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
}) => string;
|
|
23
|
+
remove: (toastId: string) => void;
|
|
24
|
+
}
|
|
25
|
+
export interface INetworkStatusToaster {
|
|
26
|
+
/** The state of the connection, e.g. `useOnlineStatus().status` of `@beautinique/frontend-hooks`. */
|
|
27
|
+
status: TNetworkStatus;
|
|
28
|
+
toaster: INetworkToaster;
|
|
29
|
+
}
|
|
30
|
+
/** How long "Back online" stays on screen. Offline and connecting stay until the status changes. */
|
|
31
|
+
export declare const BACK_ONLINE_TOAST_MS = 3000;
|
|
32
|
+
/**
|
|
33
|
+
* Tells the user when the internet goes away and when it comes back, with one toast at a time:
|
|
34
|
+
* "You're offline" (stays), then "Connecting to internet..." (stays) once the network is back but
|
|
35
|
+
* nothing has answered yet, then "Back online" (goes away by itself). Nothing is shown while the user
|
|
36
|
+
* simply is online. It draws nothing itself.
|
|
37
|
+
*/
|
|
38
|
+
export declare const NetworkStatusToaster: ({ status, toaster }: INetworkStatusToaster) => null;
|
|
39
|
+
//# sourceMappingURL=NetworkStatusToaster.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NetworkStatusToaster.d.ts","sourceRoot":"","sources":["../../src/layout/NetworkStatusToaster.tsx"],"names":[],"mappings":"AAEA,iGAAiG;AACjG,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,YAAY,CAAC;AAEjE;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;IACxF,OAAO,EAAE,CAAC,IAAI,EAAE;QACd,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB,KAAK,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;IACnE,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,MAAM,WAAW,qBAAqB;IACpC,qGAAqG;IACrG,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,oGAAoG;AACpG,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,qBAAqB,qBAAqB,SAwD9E,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface IScrollToTop {
|
|
2
|
+
/**
|
|
3
|
+
* The current path of the page, from the router (`useLocation().pathname`). The scroll happens
|
|
4
|
+
* when it changes. The query and the hash are not part of it: a search that only changes `?page=2`
|
|
5
|
+
* does not throw people back to the top.
|
|
6
|
+
*/
|
|
7
|
+
pathname: string;
|
|
8
|
+
/**
|
|
9
|
+
* The `id` of the element that scrolls: the one that holds the page. Nothing happens when the page
|
|
10
|
+
* has no element with this id.
|
|
11
|
+
* @default 'main'
|
|
12
|
+
*/
|
|
13
|
+
id?: string;
|
|
14
|
+
/**
|
|
15
|
+
* `'smooth'` is turned into `'auto'` for a person who asked their system for less motion.
|
|
16
|
+
* @default 'auto'
|
|
17
|
+
*/
|
|
18
|
+
behavior?: ScrollBehavior;
|
|
19
|
+
/** @default 'start' */
|
|
20
|
+
block?: ScrollLogicalPosition;
|
|
21
|
+
/** @default 'nearest' */
|
|
22
|
+
inline?: ScrollLogicalPosition;
|
|
23
|
+
/**
|
|
24
|
+
* Leaves the page where it is when the component first shows, and scrolls only on the changes of
|
|
25
|
+
* `pathname` after that. Needed when the browser puts the page back where it was on a reload.
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
skipInitial?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Scrolls an element of the page (`#main` unless told another) to the top each time the path
|
|
32
|
+
* changes, as a router does not do it for a single page app. It draws nothing; put it once, inside
|
|
33
|
+
* the layout that has the element.
|
|
34
|
+
*/
|
|
35
|
+
export declare const ScrollToTop: ({ pathname, id, behavior, block, inline, skipInitial, }: IScrollToTop) => null;
|
|
36
|
+
//# sourceMappingURL=ScrollToTop.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScrollToTop.d.cts","sourceRoot":"","sources":["../../src/layout/ScrollToTop.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,uBAAuB;IACvB,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B,yBAAyB;IACzB,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,yDAOzB,YAAY,SAsBd,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface IScrollToTop {
|
|
2
|
+
/**
|
|
3
|
+
* The current path of the page, from the router (`useLocation().pathname`). The scroll happens
|
|
4
|
+
* when it changes. The query and the hash are not part of it: a search that only changes `?page=2`
|
|
5
|
+
* does not throw people back to the top.
|
|
6
|
+
*/
|
|
7
|
+
pathname: string;
|
|
8
|
+
/**
|
|
9
|
+
* The `id` of the element that scrolls: the one that holds the page. Nothing happens when the page
|
|
10
|
+
* has no element with this id.
|
|
11
|
+
* @default 'main'
|
|
12
|
+
*/
|
|
13
|
+
id?: string;
|
|
14
|
+
/**
|
|
15
|
+
* `'smooth'` is turned into `'auto'` for a person who asked their system for less motion.
|
|
16
|
+
* @default 'auto'
|
|
17
|
+
*/
|
|
18
|
+
behavior?: ScrollBehavior;
|
|
19
|
+
/** @default 'start' */
|
|
20
|
+
block?: ScrollLogicalPosition;
|
|
21
|
+
/** @default 'nearest' */
|
|
22
|
+
inline?: ScrollLogicalPosition;
|
|
23
|
+
/**
|
|
24
|
+
* Leaves the page where it is when the component first shows, and scrolls only on the changes of
|
|
25
|
+
* `pathname` after that. Needed when the browser puts the page back where it was on a reload.
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
skipInitial?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Scrolls an element of the page (`#main` unless told another) to the top each time the path
|
|
32
|
+
* changes, as a router does not do it for a single page app. It draws nothing; put it once, inside
|
|
33
|
+
* the layout that has the element.
|
|
34
|
+
*/
|
|
35
|
+
export declare const ScrollToTop: ({ pathname, id, behavior, block, inline, skipInitial, }: IScrollToTop) => null;
|
|
36
|
+
//# sourceMappingURL=ScrollToTop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScrollToTop.d.ts","sourceRoot":"","sources":["../../src/layout/ScrollToTop.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,uBAAuB;IACvB,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B,yBAAyB;IACzB,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,yDAOzB,YAAY,SAsBd,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type ReactNode, type Ref } from 'react';
|
|
2
|
+
import { type TGradientPosition } from '../linear-gradient/index.js';
|
|
3
|
+
import { type TScrollDirection } from '../lib/useScrollable.js';
|
|
4
|
+
import type { IClassName, IContainerClassName } from '../types/component.js';
|
|
5
|
+
export interface IScrollableGradientContainer extends IClassName, IContainerClassName {
|
|
6
|
+
/** The way the content scrolls: a row (`'horizontal'`) or a column (`'vertical'`). */
|
|
7
|
+
direction: TScrollDirection;
|
|
8
|
+
/** Classes for the fade on each edge, e.g. `{ top: 'h-8!' }`. */
|
|
9
|
+
gradientClassNames?: Partial<Record<TGradientPosition, string>>;
|
|
10
|
+
/**
|
|
11
|
+
* Names the area that scrolls for assistive technology (`role="region"`). Give it when what scrolls
|
|
12
|
+
* is a part of the page of its own (a list of thumbnails, a long form) and not the page.
|
|
13
|
+
*/
|
|
14
|
+
label?: string;
|
|
15
|
+
/** The element that scrolls, e.g. to move it to an item (`scrollLeft`, `scrollTop`). */
|
|
16
|
+
scrollerRef?: Ref<HTMLDivElement>;
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Content that scrolls inside a box, with a fade on the edge that has more behind it. The fade
|
|
21
|
+
* shows only once there is something to scroll to, and goes when the end is reached. The content is
|
|
22
|
+
* centred while it fits, and starts at the beginning once it scrolls.
|
|
23
|
+
*
|
|
24
|
+
* A box that scrolls can be reached with the keyboard (it is a tab stop while it scrolls) so that
|
|
25
|
+
* people who do not use a mouse can scroll it with the arrow keys.
|
|
26
|
+
*/
|
|
27
|
+
export declare const ScrollableGradientContainer: ({ direction, gradientClassNames, className, containerClassName, label, scrollerRef, children, }: IScrollableGradientContainer) => import("react").JSX.Element;
|
|
28
|
+
//# sourceMappingURL=ScrollableGradientContainer.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScrollableGradientContainer.d.cts","sourceRoot":"","sources":["../../src/layout/ScrollableGradientContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAW,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAkB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErF,OAAO,EAAE,KAAK,gBAAgB,EAAiB,MAAM,yBAAyB,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE7E,MAAM,WAAW,4BAA6B,SAAQ,UAAU,EAAE,mBAAmB;IACnF,sFAAsF;IACtF,SAAS,EAAE,gBAAgB,CAAC;IAC5B,iEAAiE;IACjE,kBAAkB,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,CAAC;IAChE;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wFAAwF;IACxF,WAAW,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAClC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAKD;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,GAAI,iGAQzC,4BAA4B,gCAkC9B,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type ReactNode, type Ref } from 'react';
|
|
2
|
+
import { type TGradientPosition } from '../linear-gradient/index.js';
|
|
3
|
+
import { type TScrollDirection } from '../lib/useScrollable.js';
|
|
4
|
+
import type { IClassName, IContainerClassName } from '../types/component.js';
|
|
5
|
+
export interface IScrollableGradientContainer extends IClassName, IContainerClassName {
|
|
6
|
+
/** The way the content scrolls: a row (`'horizontal'`) or a column (`'vertical'`). */
|
|
7
|
+
direction: TScrollDirection;
|
|
8
|
+
/** Classes for the fade on each edge, e.g. `{ top: 'h-8!' }`. */
|
|
9
|
+
gradientClassNames?: Partial<Record<TGradientPosition, string>>;
|
|
10
|
+
/**
|
|
11
|
+
* Names the area that scrolls for assistive technology (`role="region"`). Give it when what scrolls
|
|
12
|
+
* is a part of the page of its own (a list of thumbnails, a long form) and not the page.
|
|
13
|
+
*/
|
|
14
|
+
label?: string;
|
|
15
|
+
/** The element that scrolls, e.g. to move it to an item (`scrollLeft`, `scrollTop`). */
|
|
16
|
+
scrollerRef?: Ref<HTMLDivElement>;
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Content that scrolls inside a box, with a fade on the edge that has more behind it. The fade
|
|
21
|
+
* shows only once there is something to scroll to, and goes when the end is reached. The content is
|
|
22
|
+
* centred while it fits, and starts at the beginning once it scrolls.
|
|
23
|
+
*
|
|
24
|
+
* A box that scrolls can be reached with the keyboard (it is a tab stop while it scrolls) so that
|
|
25
|
+
* people who do not use a mouse can scroll it with the arrow keys.
|
|
26
|
+
*/
|
|
27
|
+
export declare const ScrollableGradientContainer: ({ direction, gradientClassNames, className, containerClassName, label, scrollerRef, children, }: IScrollableGradientContainer) => import("react").JSX.Element;
|
|
28
|
+
//# sourceMappingURL=ScrollableGradientContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScrollableGradientContainer.d.ts","sourceRoot":"","sources":["../../src/layout/ScrollableGradientContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAW,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAkB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErF,OAAO,EAAE,KAAK,gBAAgB,EAAiB,MAAM,yBAAyB,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE7E,MAAM,WAAW,4BAA6B,SAAQ,UAAU,EAAE,mBAAmB;IACnF,sFAAsF;IACtF,SAAS,EAAE,gBAAgB,CAAC;IAC5B,iEAAiE;IACjE,kBAAkB,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,CAAC;IAChE;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wFAAwF;IACxF,WAAW,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAClC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAKD;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,GAAI,iGAQzC,4BAA4B,gCAkC9B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A grey block that pulses where something is still loading. It is only a picture of the shape, so
|
|
4
|
+
* it is hidden from assistive technology: say that the area is loading where it is (`aria-busy` on
|
|
5
|
+
* the area, a `role="status"` text) and not on every block. The pulse stops for a person who asked
|
|
6
|
+
* for less motion.
|
|
7
|
+
*/
|
|
8
|
+
export declare const Skeleton: ({ className, ...divProps }: ComponentProps<"div">) => import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=Skeleton.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.d.cts","sourceRoot":"","sources":["../../src/layout/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,4BAAiC,cAAc,CAAC,KAAK,CAAC,gCAM9E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A grey block that pulses where something is still loading. It is only a picture of the shape, so
|
|
4
|
+
* it is hidden from assistive technology: say that the area is loading where it is (`aria-busy` on
|
|
5
|
+
* the area, a `role="status"` text) and not on every block. The pulse stops for a person who asked
|
|
6
|
+
* for less motion.
|
|
7
|
+
*/
|
|
8
|
+
export declare const Skeleton: ({ className, ...divProps }: ComponentProps<"div">) => import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=Skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../src/layout/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,4BAAiC,cAAc,CAAC,KAAK,CAAC,gCAM9E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export declare const Table: ({ className, ...props }: ComponentProps<"table">) => import("react").JSX.Element;
|
|
3
|
+
export declare const TableHead: ({ className, ...props }: ComponentProps<"thead">) => import("react").JSX.Element;
|
|
4
|
+
export declare const TableBody: (props: ComponentProps<"tbody">) => import("react").JSX.Element;
|
|
5
|
+
export declare const TableRow: ({ className, ...props }: ComponentProps<"tr">) => import("react").JSX.Element;
|
|
6
|
+
/** A header cell. It is the header of its column unless told otherwise (`scope="row"`). */
|
|
7
|
+
export declare const TableHeadCell: ({ className, scope, ...props }: ComponentProps<"th">) => import("react").JSX.Element;
|
|
8
|
+
export declare const TableRowCell: ({ className, ...props }: ComponentProps<"td">) => import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=Table.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.cts","sourceRoot":"","sources":["../../src/layout/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAQ5C,eAAO,MAAM,KAAK,GAAI,yBAA8B,cAAc,CAAC,OAAO,CAAC,gCAE1E,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,yBAA8B,cAAc,CAAC,OAAO,CAAC,gCAE9E,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,CAAC,OAAO,CAAC,gCAAyB,CAAC;AAElF,eAAO,MAAM,QAAQ,GAAI,yBAA8B,cAAc,CAAC,IAAI,CAAC,gCAE1E,CAAC;AAEF,2FAA2F;AAC3F,eAAO,MAAM,aAAa,GAAI,gCAI3B,cAAc,CAAC,IAAI,CAAC,gCAMtB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,yBAA8B,cAAc,CAAC,IAAI,CAAC,gCAK9E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export declare const Table: ({ className, ...props }: ComponentProps<"table">) => import("react").JSX.Element;
|
|
3
|
+
export declare const TableHead: ({ className, ...props }: ComponentProps<"thead">) => import("react").JSX.Element;
|
|
4
|
+
export declare const TableBody: (props: ComponentProps<"tbody">) => import("react").JSX.Element;
|
|
5
|
+
export declare const TableRow: ({ className, ...props }: ComponentProps<"tr">) => import("react").JSX.Element;
|
|
6
|
+
/** A header cell. It is the header of its column unless told otherwise (`scope="row"`). */
|
|
7
|
+
export declare const TableHeadCell: ({ className, scope, ...props }: ComponentProps<"th">) => import("react").JSX.Element;
|
|
8
|
+
export declare const TableRowCell: ({ className, ...props }: ComponentProps<"td">) => import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../src/layout/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAQ5C,eAAO,MAAM,KAAK,GAAI,yBAA8B,cAAc,CAAC,OAAO,CAAC,gCAE1E,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,yBAA8B,cAAc,CAAC,OAAO,CAAC,gCAE9E,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,CAAC,OAAO,CAAC,gCAAyB,CAAC;AAElF,eAAO,MAAM,QAAQ,GAAI,yBAA8B,cAAc,CAAC,IAAI,CAAC,gCAE1E,CAAC;AAEF,2FAA2F;AAC3F,eAAO,MAAM,aAAa,GAAI,gCAI3B,cAAc,CAAC,IAAI,CAAC,gCAMtB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,yBAA8B,cAAc,CAAC,IAAI,CAAC,gCAK9E,CAAC"}
|