@puzzle-ui/ui 0.0.0-stage → 0.1.0
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 +16 -2
- package/dist/LICENSE +21 -0
- package/dist/components/actions/button/button-content.cjs +41 -0
- package/dist/components/actions/button/button-content.cjs.map +1 -0
- package/dist/components/actions/button/button-content.js +41 -0
- package/dist/components/actions/button/button-content.js.map +1 -0
- package/dist/components/actions/button/button.css +191 -0
- package/dist/components/actions/button/button.types.d.cts +30 -0
- package/dist/components/actions/button/button.types.d.ts +30 -0
- package/dist/components/actions/button/index.cjs +80 -0
- package/dist/components/actions/button/index.cjs.map +1 -0
- package/dist/components/actions/button/index.d.cts +3 -0
- package/dist/components/actions/button/index.d.ts +3 -0
- package/dist/components/actions/button/index.js +80 -0
- package/dist/components/actions/button/index.js.map +1 -0
- package/dist/components/actions/button-group/button-group.css +64 -0
- package/dist/components/actions/button-group/index.cjs +25 -0
- package/dist/components/actions/button-group/index.cjs.map +1 -0
- package/dist/components/actions/button-group/index.d.cts +14 -0
- package/dist/components/actions/button-group/index.d.ts +14 -0
- package/dist/components/actions/button-group/index.js +25 -0
- package/dist/components/actions/button-group/index.js.map +1 -0
- package/dist/components/actions/toggle-group/index.cjs +124 -0
- package/dist/components/actions/toggle-group/index.cjs.map +1 -0
- package/dist/components/actions/toggle-group/index.d.cts +10 -0
- package/dist/components/actions/toggle-group/index.d.ts +10 -0
- package/dist/components/actions/toggle-group/index.js +124 -0
- package/dist/components/actions/toggle-group/index.js.map +1 -0
- package/dist/components/actions/toggle-group/toggle-group.css +67 -0
- package/dist/components/actions/toggle-group/toggle-group.types.d.cts +54 -0
- package/dist/components/actions/toggle-group/toggle-group.types.d.ts +54 -0
- package/dist/components/data-display/alert/alert.css +128 -0
- package/dist/components/data-display/alert/alert.types.d.cts +14 -0
- package/dist/components/data-display/alert/alert.types.d.ts +14 -0
- package/dist/components/data-display/alert/alert.utils.cjs +11 -0
- package/dist/components/data-display/alert/alert.utils.cjs.map +1 -0
- package/dist/components/data-display/alert/alert.utils.js +11 -0
- package/dist/components/data-display/alert/alert.utils.js.map +1 -0
- package/dist/components/data-display/alert/index.cjs +103 -0
- package/dist/components/data-display/alert/index.cjs.map +1 -0
- package/dist/components/data-display/alert/index.d.cts +3 -0
- package/dist/components/data-display/alert/index.d.ts +3 -0
- package/dist/components/data-display/alert/index.js +103 -0
- package/dist/components/data-display/alert/index.js.map +1 -0
- package/dist/components/data-display/avatar/avatar.css +30 -0
- package/dist/components/data-display/avatar/index.cjs +42 -0
- package/dist/components/data-display/avatar/index.cjs.map +1 -0
- package/dist/components/data-display/avatar/index.d.cts +10 -0
- package/dist/components/data-display/avatar/index.d.ts +10 -0
- package/dist/components/data-display/avatar/index.js +42 -0
- package/dist/components/data-display/avatar/index.js.map +1 -0
- package/dist/components/data-display/badge/badge.css +91 -0
- package/dist/components/data-display/badge/index.cjs +31 -0
- package/dist/components/data-display/badge/index.cjs.map +1 -0
- package/dist/components/data-display/badge/index.d.cts +18 -0
- package/dist/components/data-display/badge/index.d.ts +18 -0
- package/dist/components/data-display/badge/index.js +31 -0
- package/dist/components/data-display/badge/index.js.map +1 -0
- package/dist/components/data-display/card/card.css +164 -0
- package/dist/components/data-display/card/index.cjs +42 -0
- package/dist/components/data-display/card/index.cjs.map +1 -0
- package/dist/components/data-display/card/index.d.cts +29 -0
- package/dist/components/data-display/card/index.d.ts +29 -0
- package/dist/components/data-display/card/index.js +35 -0
- package/dist/components/data-display/card/index.js.map +1 -0
- package/dist/components/data-display/image/image.css +80 -0
- package/dist/components/data-display/image/image.types.d.cts +154 -0
- package/dist/components/data-display/image/image.types.d.ts +154 -0
- package/dist/components/data-display/image/image.utils.cjs +55 -0
- package/dist/components/data-display/image/image.utils.cjs.map +1 -0
- package/dist/components/data-display/image/image.utils.js +51 -0
- package/dist/components/data-display/image/image.utils.js.map +1 -0
- package/dist/components/data-display/image/index.cjs +176 -0
- package/dist/components/data-display/image/index.cjs.map +1 -0
- package/dist/components/data-display/image/index.d.cts +3 -0
- package/dist/components/data-display/image/index.d.ts +3 -0
- package/dist/components/data-display/image/index.js +176 -0
- package/dist/components/data-display/image/index.js.map +1 -0
- package/dist/components/data-display/image/use-image-state.cjs +54 -0
- package/dist/components/data-display/image/use-image-state.cjs.map +1 -0
- package/dist/components/data-display/image/use-image-state.js +54 -0
- package/dist/components/data-display/image/use-image-state.js.map +1 -0
- package/dist/components/data-display/paper/index.cjs +16 -0
- package/dist/components/data-display/paper/index.cjs.map +1 -0
- package/dist/components/data-display/paper/index.d.cts +8 -0
- package/dist/components/data-display/paper/index.d.ts +8 -0
- package/dist/components/data-display/paper/index.js +16 -0
- package/dist/components/data-display/paper/index.js.map +1 -0
- package/dist/components/data-display/paper/paper.css +40 -0
- package/dist/components/data-display/progress/circular-progress.cjs +75 -0
- package/dist/components/data-display/progress/circular-progress.cjs.map +1 -0
- package/dist/components/data-display/progress/circular-progress.css +21 -0
- package/dist/components/data-display/progress/circular-progress.d.cts +9 -0
- package/dist/components/data-display/progress/circular-progress.d.ts +9 -0
- package/dist/components/data-display/progress/circular-progress.js +75 -0
- package/dist/components/data-display/progress/circular-progress.js.map +1 -0
- package/dist/components/data-display/progress/linear-progress.cjs +32 -0
- package/dist/components/data-display/progress/linear-progress.cjs.map +1 -0
- package/dist/components/data-display/progress/linear-progress.css +39 -0
- package/dist/components/data-display/progress/linear-progress.d.cts +5 -0
- package/dist/components/data-display/progress/linear-progress.d.ts +5 -0
- package/dist/components/data-display/progress/linear-progress.js +32 -0
- package/dist/components/data-display/progress/linear-progress.js.map +1 -0
- package/dist/components/data-display/progress/types.d.cts +5 -0
- package/dist/components/data-display/progress/types.d.ts +5 -0
- package/dist/components/data-display/progress/utils.cjs +16 -0
- package/dist/components/data-display/progress/utils.cjs.map +1 -0
- package/dist/components/data-display/progress/utils.js +15 -0
- package/dist/components/data-display/progress/utils.js.map +1 -0
- package/dist/components/data-display/skeleton/index.cjs +18 -0
- package/dist/components/data-display/skeleton/index.cjs.map +1 -0
- package/dist/components/data-display/skeleton/index.d.cts +10 -0
- package/dist/components/data-display/skeleton/index.d.ts +10 -0
- package/dist/components/data-display/skeleton/index.js +18 -0
- package/dist/components/data-display/skeleton/index.js.map +1 -0
- package/dist/components/data-display/skeleton/skeleton.css +47 -0
- package/dist/components/editors/text-editor/editor.cjs +620 -0
- package/dist/components/editors/text-editor/editor.cjs.map +1 -0
- package/dist/components/editors/text-editor/editor.d.cts +1 -0
- package/dist/components/editors/text-editor/editor.d.ts +1 -0
- package/dist/components/editors/text-editor/editor.js +620 -0
- package/dist/components/editors/text-editor/editor.js.map +1 -0
- package/dist/components/editors/text-editor/index.cjs +39 -0
- package/dist/components/editors/text-editor/index.cjs.map +1 -0
- package/dist/components/editors/text-editor/index.d.cts +13 -0
- package/dist/components/editors/text-editor/index.d.ts +13 -0
- package/dist/components/editors/text-editor/index.js +38 -0
- package/dist/components/editors/text-editor/index.js.map +1 -0
- package/dist/components/editors/text-editor/text-document.cjs +406 -0
- package/dist/components/editors/text-editor/text-document.cjs.map +1 -0
- package/dist/components/editors/text-editor/text-document.js +391 -0
- package/dist/components/editors/text-editor/text-document.js.map +1 -0
- package/dist/components/editors/text-editor/text-editor-toolbar.cjs +251 -0
- package/dist/components/editors/text-editor/text-editor-toolbar.cjs.map +1 -0
- package/dist/components/editors/text-editor/text-editor-toolbar.css +16 -0
- package/dist/components/editors/text-editor/text-editor-toolbar.d.cts +7 -0
- package/dist/components/editors/text-editor/text-editor-toolbar.d.ts +7 -0
- package/dist/components/editors/text-editor/text-editor-toolbar.js +251 -0
- package/dist/components/editors/text-editor/text-editor-toolbar.js.map +1 -0
- package/dist/components/editors/text-editor/text-editor.css +116 -0
- package/dist/components/editors/text-editor/text-editor.types.d.cts +37 -0
- package/dist/components/editors/text-editor/text-editor.types.d.ts +37 -0
- package/dist/components/editors/text-editor/text-parser.cjs +262 -0
- package/dist/components/editors/text-editor/text-parser.cjs.map +1 -0
- package/dist/components/editors/text-editor/text-parser.js +261 -0
- package/dist/components/editors/text-editor/text-parser.js.map +1 -0
- package/dist/components/editors/text-editor/text-renderer.cjs +85 -0
- package/dist/components/editors/text-editor/text-renderer.cjs.map +1 -0
- package/dist/components/editors/text-editor/text-renderer.d.cts +7 -0
- package/dist/components/editors/text-editor/text-renderer.d.ts +7 -0
- package/dist/components/editors/text-editor/text-renderer.js +85 -0
- package/dist/components/editors/text-editor/text-renderer.js.map +1 -0
- package/dist/components/forms/autocomplete/autocomplete.css +384 -0
- package/dist/components/forms/autocomplete/autocomplete.types.d.cts +86 -0
- package/dist/components/forms/autocomplete/autocomplete.types.d.ts +86 -0
- package/dist/components/forms/autocomplete/autocomplete.utils.cjs +47 -0
- package/dist/components/forms/autocomplete/autocomplete.utils.cjs.map +1 -0
- package/dist/components/forms/autocomplete/autocomplete.utils.js +44 -0
- package/dist/components/forms/autocomplete/autocomplete.utils.js.map +1 -0
- package/dist/components/forms/autocomplete/index.cjs +532 -0
- package/dist/components/forms/autocomplete/index.cjs.map +1 -0
- package/dist/components/forms/autocomplete/index.d.cts +3 -0
- package/dist/components/forms/autocomplete/index.d.ts +3 -0
- package/dist/components/forms/autocomplete/index.js +532 -0
- package/dist/components/forms/autocomplete/index.js.map +1 -0
- package/dist/components/forms/checkbox/checkbox.css +146 -0
- package/dist/components/forms/checkbox/index.cjs +80 -0
- package/dist/components/forms/checkbox/index.cjs.map +1 -0
- package/dist/components/forms/checkbox/index.d.cts +20 -0
- package/dist/components/forms/checkbox/index.d.ts +20 -0
- package/dist/components/forms/checkbox/index.js +80 -0
- package/dist/components/forms/checkbox/index.js.map +1 -0
- package/dist/components/forms/date-picker/date-picker.css +478 -0
- package/dist/components/forms/date-picker/date-picker.types.d.cts +75 -0
- package/dist/components/forms/date-picker/date-picker.types.d.ts +75 -0
- package/dist/components/forms/date-picker/date-picker.utils.cjs +76 -0
- package/dist/components/forms/date-picker/date-picker.utils.cjs.map +1 -0
- package/dist/components/forms/date-picker/date-picker.utils.js +64 -0
- package/dist/components/forms/date-picker/date-picker.utils.js.map +1 -0
- package/dist/components/forms/date-picker/index.cjs +572 -0
- package/dist/components/forms/date-picker/index.cjs.map +1 -0
- package/dist/components/forms/date-picker/index.d.cts +3 -0
- package/dist/components/forms/date-picker/index.d.ts +3 -0
- package/dist/components/forms/date-picker/index.js +572 -0
- package/dist/components/forms/date-picker/index.js.map +1 -0
- package/dist/components/forms/file-upload/file-upload.css +290 -0
- package/dist/components/forms/file-upload/file-upload.types.d.cts +51 -0
- package/dist/components/forms/file-upload/file-upload.types.d.ts +51 -0
- package/dist/components/forms/file-upload/file-upload.utils.cjs +76 -0
- package/dist/components/forms/file-upload/file-upload.utils.cjs.map +1 -0
- package/dist/components/forms/file-upload/file-upload.utils.js +72 -0
- package/dist/components/forms/file-upload/file-upload.utils.js.map +1 -0
- package/dist/components/forms/file-upload/index.cjs +346 -0
- package/dist/components/forms/file-upload/index.cjs.map +1 -0
- package/dist/components/forms/file-upload/index.d.cts +3 -0
- package/dist/components/forms/file-upload/index.d.ts +3 -0
- package/dist/components/forms/file-upload/index.js +346 -0
- package/dist/components/forms/file-upload/index.js.map +1 -0
- package/dist/components/forms/form-field/form-field-state.cjs +25 -0
- package/dist/components/forms/form-field/form-field-state.cjs.map +1 -0
- package/dist/components/forms/form-field/form-field-state.js +25 -0
- package/dist/components/forms/form-field/form-field-state.js.map +1 -0
- package/dist/components/forms/form-field/form-field.css +44 -0
- package/dist/components/forms/form-field/index.cjs +61 -0
- package/dist/components/forms/form-field/index.cjs.map +1 -0
- package/dist/components/forms/form-field/index.d.cts +23 -0
- package/dist/components/forms/form-field/index.d.ts +23 -0
- package/dist/components/forms/form-field/index.js +61 -0
- package/dist/components/forms/form-field/index.js.map +1 -0
- package/dist/components/forms/input/index.d.cts +4 -0
- package/dist/components/forms/input/index.d.ts +4 -0
- package/dist/components/forms/input/input.css +153 -0
- package/dist/components/forms/input/number-input.cjs +192 -0
- package/dist/components/forms/input/number-input.cjs.map +1 -0
- package/dist/components/forms/input/number-input.d.cts +20 -0
- package/dist/components/forms/input/number-input.d.ts +20 -0
- package/dist/components/forms/input/number-input.js +192 -0
- package/dist/components/forms/input/number-input.js.map +1 -0
- package/dist/components/forms/input/text-area-input.cjs +47 -0
- package/dist/components/forms/input/text-area-input.cjs.map +1 -0
- package/dist/components/forms/input/text-area-input.d.cts +8 -0
- package/dist/components/forms/input/text-area-input.d.ts +8 -0
- package/dist/components/forms/input/text-area-input.js +47 -0
- package/dist/components/forms/input/text-area-input.js.map +1 -0
- package/dist/components/forms/input/text-input.cjs +47 -0
- package/dist/components/forms/input/text-input.cjs.map +1 -0
- package/dist/components/forms/input/text-input.d.cts +9 -0
- package/dist/components/forms/input/text-input.d.ts +9 -0
- package/dist/components/forms/input/text-input.js +47 -0
- package/dist/components/forms/input/text-input.js.map +1 -0
- package/dist/components/forms/label/index.cjs +26 -0
- package/dist/components/forms/label/index.cjs.map +1 -0
- package/dist/components/forms/label/index.d.cts +8 -0
- package/dist/components/forms/label/index.d.ts +8 -0
- package/dist/components/forms/label/index.js +26 -0
- package/dist/components/forms/label/index.js.map +1 -0
- package/dist/components/forms/label/label.css +22 -0
- package/dist/components/forms/radio-group/index.cjs +226 -0
- package/dist/components/forms/radio-group/index.cjs.map +1 -0
- package/dist/components/forms/radio-group/index.d.cts +5 -0
- package/dist/components/forms/radio-group/index.d.ts +5 -0
- package/dist/components/forms/radio-group/index.js +225 -0
- package/dist/components/forms/radio-group/index.js.map +1 -0
- package/dist/components/forms/radio-group/radio-group.css +222 -0
- package/dist/components/forms/radio-group/radio-group.types.d.cts +51 -0
- package/dist/components/forms/radio-group/radio-group.types.d.ts +51 -0
- package/dist/components/forms/radio-group/radio-group.utils.cjs +22 -0
- package/dist/components/forms/radio-group/radio-group.utils.cjs.map +1 -0
- package/dist/components/forms/radio-group/radio-group.utils.js +21 -0
- package/dist/components/forms/radio-group/radio-group.utils.js.map +1 -0
- package/dist/components/forms/select/index.cjs +468 -0
- package/dist/components/forms/select/index.cjs.map +1 -0
- package/dist/components/forms/select/index.d.cts +112 -0
- package/dist/components/forms/select/index.d.ts +112 -0
- package/dist/components/forms/select/index.js +468 -0
- package/dist/components/forms/select/index.js.map +1 -0
- package/dist/components/forms/select/select.css +363 -0
- package/dist/components/forms/slider/index.cjs +93 -0
- package/dist/components/forms/slider/index.cjs.map +1 -0
- package/dist/components/forms/slider/index.d.cts +37 -0
- package/dist/components/forms/slider/index.d.ts +37 -0
- package/dist/components/forms/slider/index.js +93 -0
- package/dist/components/forms/slider/index.js.map +1 -0
- package/dist/components/forms/slider/slider.css +202 -0
- package/dist/components/forms/stepper/index.cjs +113 -0
- package/dist/components/forms/stepper/index.cjs.map +1 -0
- package/dist/components/forms/stepper/index.d.cts +48 -0
- package/dist/components/forms/stepper/index.d.ts +48 -0
- package/dist/components/forms/stepper/index.js +113 -0
- package/dist/components/forms/stepper/index.js.map +1 -0
- package/dist/components/forms/stepper/stepper.css +241 -0
- package/dist/components/forms/switch/index.cjs +45 -0
- package/dist/components/forms/switch/index.cjs.map +1 -0
- package/dist/components/forms/switch/index.d.cts +11 -0
- package/dist/components/forms/switch/index.d.ts +11 -0
- package/dist/components/forms/switch/index.js +45 -0
- package/dist/components/forms/switch/index.js.map +1 -0
- package/dist/components/forms/switch/switch.css +142 -0
- package/dist/components/layout/app-bar/app-bar.css +197 -0
- package/dist/components/layout/app-bar/index.cjs +150 -0
- package/dist/components/layout/app-bar/index.cjs.map +1 -0
- package/dist/components/layout/app-bar/index.d.cts +21 -0
- package/dist/components/layout/app-bar/index.d.ts +21 -0
- package/dist/components/layout/app-bar/index.js +150 -0
- package/dist/components/layout/app-bar/index.js.map +1 -0
- package/dist/components/layout/background/background.css +160 -0
- package/dist/components/layout/background/index.cjs +34 -0
- package/dist/components/layout/background/index.cjs.map +1 -0
- package/dist/components/layout/background/index.d.cts +23 -0
- package/dist/components/layout/background/index.d.ts +23 -0
- package/dist/components/layout/background/index.js +34 -0
- package/dist/components/layout/background/index.js.map +1 -0
- package/dist/components/layout/bottom-navigation/bottom-navigation.css +108 -0
- package/dist/components/layout/bottom-navigation/index.cjs +51 -0
- package/dist/components/layout/bottom-navigation/index.cjs.map +1 -0
- package/dist/components/layout/bottom-navigation/index.d.cts +19 -0
- package/dist/components/layout/bottom-navigation/index.d.ts +19 -0
- package/dist/components/layout/bottom-navigation/index.js +50 -0
- package/dist/components/layout/bottom-navigation/index.js.map +1 -0
- package/dist/components/layout/breadcrumbs/breadcrumbs.css +80 -0
- package/dist/components/layout/breadcrumbs/index.cjs +38 -0
- package/dist/components/layout/breadcrumbs/index.cjs.map +1 -0
- package/dist/components/layout/breadcrumbs/index.d.cts +18 -0
- package/dist/components/layout/breadcrumbs/index.d.ts +18 -0
- package/dist/components/layout/breadcrumbs/index.js +38 -0
- package/dist/components/layout/breadcrumbs/index.js.map +1 -0
- package/dist/components/layout/collapsable-sidebar/collapsable-sidebar.css +240 -0
- package/dist/components/layout/collapsable-sidebar/index.cjs +107 -0
- package/dist/components/layout/collapsable-sidebar/index.cjs.map +1 -0
- package/dist/components/layout/collapsable-sidebar/index.d.cts +35 -0
- package/dist/components/layout/collapsable-sidebar/index.d.ts +35 -0
- package/dist/components/layout/collapsable-sidebar/index.js +107 -0
- package/dist/components/layout/collapsable-sidebar/index.js.map +1 -0
- package/dist/components/layout/container/container.css +24 -0
- package/dist/components/layout/container/container.utils.cjs +11 -0
- package/dist/components/layout/container/container.utils.cjs.map +1 -0
- package/dist/components/layout/container/container.utils.d.cts +1 -0
- package/dist/components/layout/container/container.utils.d.ts +1 -0
- package/dist/components/layout/container/container.utils.js +11 -0
- package/dist/components/layout/container/container.utils.js.map +1 -0
- package/dist/components/layout/container/index.cjs +17 -0
- package/dist/components/layout/container/index.cjs.map +1 -0
- package/dist/components/layout/container/index.d.cts +11 -0
- package/dist/components/layout/container/index.d.ts +11 -0
- package/dist/components/layout/container/index.js +17 -0
- package/dist/components/layout/container/index.js.map +1 -0
- package/dist/components/layout/page-layout/index.cjs +80 -0
- package/dist/components/layout/page-layout/index.cjs.map +1 -0
- package/dist/components/layout/page-layout/index.d.cts +61 -0
- package/dist/components/layout/page-layout/index.d.ts +61 -0
- package/dist/components/layout/page-layout/index.js +80 -0
- package/dist/components/layout/page-layout/index.js.map +1 -0
- package/dist/components/layout/page-layout/page-layout.css +88 -0
- package/dist/components/layout/section/index.cjs +15 -0
- package/dist/components/layout/section/index.cjs.map +1 -0
- package/dist/components/layout/section/index.d.cts +2 -0
- package/dist/components/layout/section/index.d.ts +2 -0
- package/dist/components/layout/section/index.js +15 -0
- package/dist/components/layout/section/index.js.map +1 -0
- package/dist/components/layout/section/section.css +71 -0
- package/dist/components/layout/section/types.d.cts +13 -0
- package/dist/components/layout/section/types.d.ts +13 -0
- package/dist/components/layout/section-stack/index.cjs +29 -0
- package/dist/components/layout/section-stack/index.cjs.map +1 -0
- package/dist/components/layout/section-stack/index.d.cts +8 -0
- package/dist/components/layout/section-stack/index.d.ts +8 -0
- package/dist/components/layout/section-stack/index.js +29 -0
- package/dist/components/layout/section-stack/index.js.map +1 -0
- package/dist/components/layout/sidebar/index.cjs +16 -0
- package/dist/components/layout/sidebar/index.cjs.map +1 -0
- package/dist/components/layout/sidebar/index.d.cts +7 -0
- package/dist/components/layout/sidebar/index.d.ts +7 -0
- package/dist/components/layout/sidebar/index.js +16 -0
- package/dist/components/layout/sidebar/index.js.map +1 -0
- package/dist/components/layout/sidebar/sidebar.css +21 -0
- package/dist/components/layout/stack/index.cjs +30 -0
- package/dist/components/layout/stack/index.cjs.map +1 -0
- package/dist/components/layout/stack/index.d.cts +31 -0
- package/dist/components/layout/stack/index.d.ts +31 -0
- package/dist/components/layout/stack/index.js +30 -0
- package/dist/components/layout/stack/index.js.map +1 -0
- package/dist/components/layout/stack/stack.css +303 -0
- package/dist/components/navigation/accordion/accordion.css +97 -0
- package/dist/components/navigation/accordion/index.cjs +107 -0
- package/dist/components/navigation/accordion/index.cjs.map +1 -0
- package/dist/components/navigation/accordion/index.d.cts +48 -0
- package/dist/components/navigation/accordion/index.d.ts +48 -0
- package/dist/components/navigation/accordion/index.js +107 -0
- package/dist/components/navigation/accordion/index.js.map +1 -0
- package/dist/components/navigation/carousel/carousel.css +283 -0
- package/dist/components/navigation/carousel/controller.cjs +46 -0
- package/dist/components/navigation/carousel/controller.cjs.map +1 -0
- package/dist/components/navigation/carousel/controller.d.cts +16 -0
- package/dist/components/navigation/carousel/controller.d.ts +16 -0
- package/dist/components/navigation/carousel/controller.js +45 -0
- package/dist/components/navigation/carousel/controller.js.map +1 -0
- package/dist/components/navigation/carousel/index.cjs +494 -0
- package/dist/components/navigation/carousel/index.cjs.map +1 -0
- package/dist/components/navigation/carousel/index.d.cts +27 -0
- package/dist/components/navigation/carousel/index.d.ts +27 -0
- package/dist/components/navigation/carousel/index.js +494 -0
- package/dist/components/navigation/carousel/index.js.map +1 -0
- package/dist/components/navigation/link/index.cjs +40 -0
- package/dist/components/navigation/link/index.cjs.map +1 -0
- package/dist/components/navigation/link/index.d.cts +3 -0
- package/dist/components/navigation/link/index.d.ts +3 -0
- package/dist/components/navigation/link/index.js +40 -0
- package/dist/components/navigation/link/index.js.map +1 -0
- package/dist/components/navigation/link/link.css +31 -0
- package/dist/components/navigation/link/types.d.cts +12 -0
- package/dist/components/navigation/link/types.d.ts +12 -0
- package/dist/components/navigation/tabs/index.cjs +111 -0
- package/dist/components/navigation/tabs/index.cjs.map +1 -0
- package/dist/components/navigation/tabs/index.d.cts +30 -0
- package/dist/components/navigation/tabs/index.d.ts +30 -0
- package/dist/components/navigation/tabs/index.js +110 -0
- package/dist/components/navigation/tabs/index.js.map +1 -0
- package/dist/components/navigation/tabs/tabs.css +216 -0
- package/dist/components/navigation/tree-view/index.cjs +455 -0
- package/dist/components/navigation/tree-view/index.cjs.map +1 -0
- package/dist/components/navigation/tree-view/index.d.cts +96 -0
- package/dist/components/navigation/tree-view/index.d.ts +96 -0
- package/dist/components/navigation/tree-view/index.js +455 -0
- package/dist/components/navigation/tree-view/index.js.map +1 -0
- package/dist/components/navigation/tree-view/tree-view.css +258 -0
- package/dist/components/overlays/backdrop/backdrop.css +10 -0
- package/dist/components/overlays/backdrop/index.cjs +70 -0
- package/dist/components/overlays/backdrop/index.cjs.map +1 -0
- package/dist/components/overlays/backdrop/index.d.cts +12 -0
- package/dist/components/overlays/backdrop/index.d.ts +12 -0
- package/dist/components/overlays/backdrop/index.js +70 -0
- package/dist/components/overlays/backdrop/index.js.map +1 -0
- package/dist/components/overlays/command/command.css +154 -0
- package/dist/components/overlays/command/command.types.d.cts +36 -0
- package/dist/components/overlays/command/command.types.d.ts +36 -0
- package/dist/components/overlays/command/command.utils.cjs +39 -0
- package/dist/components/overlays/command/command.utils.cjs.map +1 -0
- package/dist/components/overlays/command/command.utils.js +35 -0
- package/dist/components/overlays/command/command.utils.js.map +1 -0
- package/dist/components/overlays/command/index.cjs +274 -0
- package/dist/components/overlays/command/index.cjs.map +1 -0
- package/dist/components/overlays/command/index.d.cts +4 -0
- package/dist/components/overlays/command/index.d.ts +4 -0
- package/dist/components/overlays/command/index.js +273 -0
- package/dist/components/overlays/command/index.js.map +1 -0
- package/dist/components/overlays/dialog/dialog.css +121 -0
- package/dist/components/overlays/dialog/index.cjs +80 -0
- package/dist/components/overlays/dialog/index.cjs.map +1 -0
- package/dist/components/overlays/dialog/index.d.cts +35 -0
- package/dist/components/overlays/dialog/index.d.ts +35 -0
- package/dist/components/overlays/dialog/index.js +80 -0
- package/dist/components/overlays/dialog/index.js.map +1 -0
- package/dist/components/overlays/drawer/drawer.css +133 -0
- package/dist/components/overlays/drawer/index.cjs +90 -0
- package/dist/components/overlays/drawer/index.cjs.map +1 -0
- package/dist/components/overlays/drawer/index.d.cts +11 -0
- package/dist/components/overlays/drawer/index.d.ts +11 -0
- package/dist/components/overlays/drawer/index.js +90 -0
- package/dist/components/overlays/drawer/index.js.map +1 -0
- package/dist/components/overlays/drawer/use-resize-bar.cjs +152 -0
- package/dist/components/overlays/drawer/use-resize-bar.cjs.map +1 -0
- package/dist/components/overlays/drawer/use-resize-bar.js +152 -0
- package/dist/components/overlays/drawer/use-resize-bar.js.map +1 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-content.cjs +120 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-content.cjs.map +1 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-content.d.cts +3 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-content.d.ts +3 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-content.js +120 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-content.js.map +1 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-items.cjs +136 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-items.cjs.map +1 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-items.d.cts +7 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-items.d.ts +7 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-items.js +132 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-items.js.map +1 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-radio.cjs +76 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-radio.cjs.map +1 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-radio.d.cts +4 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-radio.d.ts +4 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-radio.js +75 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-radio.js.map +1 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-trigger.cjs +96 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-trigger.cjs.map +1 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-trigger.d.cts +3 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-trigger.d.ts +3 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-trigger.js +96 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu-trigger.js.map +1 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.cjs +111 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.cjs.map +1 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.context.cjs +21 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.context.cjs.map +1 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.context.js +18 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.context.js.map +1 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.css +127 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.d.cts +3 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.d.ts +3 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.js +111 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.js.map +1 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.types.d.cts +66 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.types.d.ts +66 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.utils.cjs +44 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.utils.cjs.map +1 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.utils.js +39 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.utils.js.map +1 -0
- package/dist/components/overlays/dropdown-menu/index.cjs +31 -0
- package/dist/components/overlays/dropdown-menu/index.cjs.map +1 -0
- package/dist/components/overlays/dropdown-menu/index.d.cts +19 -0
- package/dist/components/overlays/dropdown-menu/index.d.ts +19 -0
- package/dist/components/overlays/dropdown-menu/index.js +22 -0
- package/dist/components/overlays/dropdown-menu/index.js.map +1 -0
- package/dist/components/overlays/floating-position/calculate-position.cjs +94 -0
- package/dist/components/overlays/floating-position/calculate-position.cjs.map +1 -0
- package/dist/components/overlays/floating-position/calculate-position.js +89 -0
- package/dist/components/overlays/floating-position/calculate-position.js.map +1 -0
- package/dist/components/overlays/floating-position/use-floating-position.cjs +89 -0
- package/dist/components/overlays/floating-position/use-floating-position.cjs.map +1 -0
- package/dist/components/overlays/floating-position/use-floating-position.js +89 -0
- package/dist/components/overlays/floating-position/use-floating-position.js.map +1 -0
- package/dist/components/overlays/notification/index.cjs +142 -0
- package/dist/components/overlays/notification/index.cjs.map +1 -0
- package/dist/components/overlays/notification/index.d.cts +16 -0
- package/dist/components/overlays/notification/index.d.ts +16 -0
- package/dist/components/overlays/notification/index.js +139 -0
- package/dist/components/overlays/notification/index.js.map +1 -0
- package/dist/components/overlays/notification/notification-provider.cjs +69 -0
- package/dist/components/overlays/notification/notification-provider.cjs.map +1 -0
- package/dist/components/overlays/notification/notification-provider.d.cts +3 -0
- package/dist/components/overlays/notification/notification-provider.d.ts +3 -0
- package/dist/components/overlays/notification/notification-provider.js +68 -0
- package/dist/components/overlays/notification/notification-provider.js.map +1 -0
- package/dist/components/overlays/notification/notification.css +172 -0
- package/dist/components/overlays/notification/notification.types.d.cts +41 -0
- package/dist/components/overlays/notification/notification.types.d.ts +41 -0
- package/dist/components/overlays/notification/notification.utils.cjs +23 -0
- package/dist/components/overlays/notification/notification.utils.cjs.map +1 -0
- package/dist/components/overlays/notification/notification.utils.js +22 -0
- package/dist/components/overlays/notification/notification.utils.js.map +1 -0
- package/dist/components/overlays/notification/use-notification.cjs +12 -0
- package/dist/components/overlays/notification/use-notification.cjs.map +1 -0
- package/dist/components/overlays/notification/use-notification.d.cts +3 -0
- package/dist/components/overlays/notification/use-notification.d.ts +3 -0
- package/dist/components/overlays/notification/use-notification.js +12 -0
- package/dist/components/overlays/notification/use-notification.js.map +1 -0
- package/dist/components/overlays/overlay-stack/index.cjs +195 -0
- package/dist/components/overlays/overlay-stack/index.cjs.map +1 -0
- package/dist/components/overlays/overlay-stack/index.js +193 -0
- package/dist/components/overlays/overlay-stack/index.js.map +1 -0
- package/dist/components/overlays/popout/index.cjs +190 -0
- package/dist/components/overlays/popout/index.cjs.map +1 -0
- package/dist/components/overlays/popout/index.d.cts +26 -0
- package/dist/components/overlays/popout/index.d.ts +26 -0
- package/dist/components/overlays/popout/index.js +190 -0
- package/dist/components/overlays/popout/index.js.map +1 -0
- package/dist/components/overlays/popout/popout.css +15 -0
- package/dist/components/overlays/popover/index.cjs +163 -0
- package/dist/components/overlays/popover/index.cjs.map +1 -0
- package/dist/components/overlays/popover/index.d.cts +28 -0
- package/dist/components/overlays/popover/index.d.ts +28 -0
- package/dist/components/overlays/popover/index.js +163 -0
- package/dist/components/overlays/popover/index.js.map +1 -0
- package/dist/components/overlays/popover/popover.css +56 -0
- package/dist/components/overlays/portal/index.cjs +33 -0
- package/dist/components/overlays/portal/index.cjs.map +1 -0
- package/dist/components/overlays/portal/index.d.cts +15 -0
- package/dist/components/overlays/portal/index.d.ts +15 -0
- package/dist/components/overlays/portal/index.js +33 -0
- package/dist/components/overlays/portal/index.js.map +1 -0
- package/dist/components/overlays/portal/target.cjs +17 -0
- package/dist/components/overlays/portal/target.cjs.map +1 -0
- package/dist/components/overlays/portal/target.css +3 -0
- package/dist/components/overlays/portal/target.d.cts +7 -0
- package/dist/components/overlays/portal/target.d.ts +7 -0
- package/dist/components/overlays/portal/target.js +17 -0
- package/dist/components/overlays/portal/target.js.map +1 -0
- package/dist/components/overlays/tooltip/index.cjs +71 -0
- package/dist/components/overlays/tooltip/index.cjs.map +1 -0
- package/dist/components/overlays/tooltip/index.d.cts +24 -0
- package/dist/components/overlays/tooltip/index.d.ts +24 -0
- package/dist/components/overlays/tooltip/index.js +71 -0
- package/dist/components/overlays/tooltip/index.js.map +1 -0
- package/dist/components/overlays/tooltip/tooltip.css +67 -0
- package/dist/components/typography/heading.cjs +14 -0
- package/dist/components/typography/heading.cjs.map +1 -0
- package/dist/components/typography/heading.d.cts +11 -0
- package/dist/components/typography/heading.d.ts +11 -0
- package/dist/components/typography/heading.js +14 -0
- package/dist/components/typography/heading.js.map +1 -0
- package/dist/components/typography/text.cjs +14 -0
- package/dist/components/typography/text.cjs.map +1 -0
- package/dist/components/typography/text.d.cts +12 -0
- package/dist/components/typography/text.d.ts +12 -0
- package/dist/components/typography/text.js +14 -0
- package/dist/components/typography/text.js.map +1 -0
- package/dist/components/utilities/preview/highlight.cjs +79 -0
- package/dist/components/utilities/preview/highlight.cjs.map +1 -0
- package/dist/components/utilities/preview/highlight.js +79 -0
- package/dist/components/utilities/preview/highlight.js.map +1 -0
- package/dist/components/utilities/preview/index.cjs +391 -0
- package/dist/components/utilities/preview/index.cjs.map +1 -0
- package/dist/components/utilities/preview/index.d.cts +20 -0
- package/dist/components/utilities/preview/index.d.ts +20 -0
- package/dist/components/utilities/preview/index.js +391 -0
- package/dist/components/utilities/preview/index.js.map +1 -0
- package/dist/components/utilities/preview/preview.css +268 -0
- package/dist/components/utilities/scroll-lock/index.cjs +124 -0
- package/dist/components/utilities/scroll-lock/index.cjs.map +1 -0
- package/dist/components/utilities/scroll-lock/index.d.cts +6 -0
- package/dist/components/utilities/scroll-lock/index.d.ts +6 -0
- package/dist/components/utilities/scroll-lock/index.js +124 -0
- package/dist/components/utilities/scroll-lock/index.js.map +1 -0
- package/dist/components/utilities/transition/index.cjs +171 -0
- package/dist/components/utilities/transition/index.cjs.map +1 -0
- package/dist/components/utilities/transition/index.d.cts +27 -0
- package/dist/components/utilities/transition/index.d.ts +27 -0
- package/dist/components/utilities/transition/index.js +171 -0
- package/dist/components/utilities/transition/index.js.map +1 -0
- package/dist/components/utilities/transition/transition.css +130 -0
- package/dist/index.cjs +155 -0
- package/dist/index.d.cts +85 -0
- package/dist/index.d.ts +85 -0
- package/dist/index.js +69 -0
- package/package.json +65 -4
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
.puzzle-radio-group {
|
|
2
|
+
align-items: stretch;
|
|
3
|
+
gap: var(--puzzle-space-2, .5rem);
|
|
4
|
+
min-width: 0;
|
|
5
|
+
color: var(--puzzle-color-text);
|
|
6
|
+
font-family: var(--puzzle-font-family-body, inherit);
|
|
7
|
+
border: 0;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
display: flex;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.puzzle-radio-group__legend {
|
|
15
|
+
width: 100%;
|
|
16
|
+
color: var(--puzzle-color-text);
|
|
17
|
+
font-size: var(--puzzle-font-size-sm, .875rem);
|
|
18
|
+
font-weight: var(--puzzle-font-weight-medium, 500);
|
|
19
|
+
line-height: var(--puzzle-font-line-height-normal, 1.5);
|
|
20
|
+
padding: 0;
|
|
21
|
+
display: block;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.puzzle-radio-group__required {
|
|
25
|
+
color: var(--puzzle-color-danger);
|
|
26
|
+
margin-inline-start: .2em;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.puzzle-radio-group__options {
|
|
30
|
+
align-items: flex-start;
|
|
31
|
+
gap: var(--puzzle-space-3, .75rem);
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
min-width: 0;
|
|
34
|
+
display: flex;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.puzzle-radio-group__options[data-orientation="horizontal"] {
|
|
38
|
+
flex-flow: wrap;
|
|
39
|
+
align-items: flex-start;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.puzzle-radio {
|
|
43
|
+
align-items: flex-start;
|
|
44
|
+
gap: var(--puzzle-space-3, .75rem);
|
|
45
|
+
width: fit-content;
|
|
46
|
+
min-width: 0;
|
|
47
|
+
color: var(--puzzle-color-text);
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
user-select: none;
|
|
50
|
+
-webkit-tap-highlight-color: transparent;
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
position: relative;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.puzzle-radio--disabled {
|
|
56
|
+
opacity: .55;
|
|
57
|
+
cursor: not-allowed;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.puzzle-radio__input {
|
|
61
|
+
opacity: 0;
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
cursor: inherit;
|
|
65
|
+
margin: 0;
|
|
66
|
+
padding: 0;
|
|
67
|
+
position: absolute;
|
|
68
|
+
inset: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.puzzle-radio__control {
|
|
72
|
+
box-sizing: border-box;
|
|
73
|
+
width: var(--puzzle-radio-size, 1.125rem);
|
|
74
|
+
height: var(--puzzle-radio-size, 1.125rem);
|
|
75
|
+
margin-top: var(--puzzle-radio-offset, .125rem);
|
|
76
|
+
border: 1.5px solid var(--puzzle-color-border);
|
|
77
|
+
border-radius: var(--puzzle-radius-full, 9999px);
|
|
78
|
+
background: var(--puzzle-color-surface);
|
|
79
|
+
transition: background-color var(--puzzle-duration-fast, .15s) var(--puzzle-easing-standard, ease),
|
|
80
|
+
border-color var(--puzzle-duration-fast, .15s) var(--puzzle-easing-standard, ease),
|
|
81
|
+
box-shadow var(--puzzle-duration-fast, .15s) var(--puzzle-easing-standard, ease);
|
|
82
|
+
flex: none;
|
|
83
|
+
place-items: center;
|
|
84
|
+
display: inline-grid;
|
|
85
|
+
position: relative;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.puzzle-radio__control:after {
|
|
89
|
+
background: var(--puzzle-color-primary);
|
|
90
|
+
content: "";
|
|
91
|
+
width: 50%;
|
|
92
|
+
height: 50%;
|
|
93
|
+
transition: transform var(--puzzle-duration-fast, .15s) var(--puzzle-easing-standard, ease);
|
|
94
|
+
border-radius: 50%;
|
|
95
|
+
display: block;
|
|
96
|
+
transform: scale(0);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.puzzle-radio__input:checked + .puzzle-radio__control {
|
|
100
|
+
border-color: var(--puzzle-color-primary);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.puzzle-radio__input:checked + .puzzle-radio__control:after {
|
|
104
|
+
transform: scale(1);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.puzzle-radio__input:focus-visible + .puzzle-radio__control {
|
|
108
|
+
outline: 2px solid var(--puzzle-color-ring, #2563eb);
|
|
109
|
+
outline-offset: 2px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.puzzle-radio:hover:not([data-disabled="true"]) .puzzle-radio__control {
|
|
113
|
+
border-color: var(--puzzle-color-primary);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.puzzle-radio__content {
|
|
117
|
+
gap: var(--puzzle-space-1, .25rem);
|
|
118
|
+
flex-direction: column;
|
|
119
|
+
min-width: 0;
|
|
120
|
+
display: flex;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.puzzle-radio__label {
|
|
124
|
+
color: var(--puzzle-color-text);
|
|
125
|
+
font-size: var(--puzzle-font-size-sm, .875rem);
|
|
126
|
+
font-weight: var(--puzzle-font-weight-medium, 500);
|
|
127
|
+
line-height: var(--puzzle-font-line-height-normal, 1.5);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.puzzle-radio__description {
|
|
131
|
+
color: var(--puzzle-color-text-muted);
|
|
132
|
+
font-size: var(--puzzle-font-size-xs, .75rem);
|
|
133
|
+
font-weight: var(--puzzle-font-weight-normal, 400);
|
|
134
|
+
line-height: var(--puzzle-font-line-height-normal, 1.5);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.puzzle-radio-group__description, .puzzle-radio-group__error {
|
|
138
|
+
font-size: var(--puzzle-font-size-xs, .75rem);
|
|
139
|
+
line-height: var(--puzzle-font-line-height-normal, 1.5);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.puzzle-radio-group__description {
|
|
143
|
+
color: var(--puzzle-color-text-muted);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.puzzle-radio-group__error {
|
|
147
|
+
color: var(--puzzle-color-danger);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.puzzle-radio-group[data-size="sm"] {
|
|
151
|
+
--puzzle-radio-size: .875rem;
|
|
152
|
+
--puzzle-radio-offset: .125rem;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.puzzle-radio-group[data-size="md"] {
|
|
156
|
+
--puzzle-radio-size: 1.125rem;
|
|
157
|
+
--puzzle-radio-offset: .125rem;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.puzzle-radio-group[data-size="lg"] {
|
|
161
|
+
--puzzle-radio-size: 1.375rem;
|
|
162
|
+
--puzzle-radio-offset: .0625rem;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.puzzle-radio-group[data-disabled="true"] {
|
|
166
|
+
cursor: not-allowed;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.puzzle-radio-group[data-disabled="true"] .puzzle-radio__control {
|
|
170
|
+
background: var(--puzzle-color-surface-sunken);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.puzzle-radio-group[data-invalid="true"] .puzzle-radio__control {
|
|
174
|
+
border-color: var(--puzzle-color-danger);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@media (forced-colors: active) {
|
|
178
|
+
.puzzle-radio--disabled {
|
|
179
|
+
opacity: 1;
|
|
180
|
+
color: graytext;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.puzzle-radio--disabled .puzzle-radio__label, .puzzle-radio--disabled .puzzle-radio__description {
|
|
184
|
+
color: graytext;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.puzzle-radio__control {
|
|
188
|
+
background: canvas;
|
|
189
|
+
border-color: buttontext;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.puzzle-radio__control:after {
|
|
193
|
+
background: highlight;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.puzzle-radio__input:checked + .puzzle-radio__control {
|
|
197
|
+
border-color: highlight;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.puzzle-radio__input:disabled + .puzzle-radio__control {
|
|
201
|
+
background: canvas;
|
|
202
|
+
border-color: graytext;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.puzzle-radio__input:disabled + .puzzle-radio__control:after {
|
|
206
|
+
background: graytext;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.puzzle-radio__input:focus-visible + .puzzle-radio__control {
|
|
210
|
+
outline-color: highlight;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.puzzle-radio-group__error {
|
|
214
|
+
color: mark;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@media (prefers-reduced-motion: reduce) {
|
|
219
|
+
.puzzle-radio__control, .puzzle-radio__control:after {
|
|
220
|
+
transition: none;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { CSSProperties, ComponentPropsWithRef, ComponentPropsWithoutRef, ReactNode } from "react";
|
|
2
|
+
type RadioGroupOrientation = "horizontal" | "vertical";
|
|
3
|
+
type RadioGroupSize = "sm" | "md" | "lg";
|
|
4
|
+
type RadioGroupProps = Omit<ComponentPropsWithoutRef<"fieldset">, "children" | "disabled" | "dir"> & {
|
|
5
|
+
/** Currently selected value. Enables controlled usage. */
|
|
6
|
+
value?: string | null;
|
|
7
|
+
/** Initial selected value for uncontrolled usage. */
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
/** Called when another option is selected. */
|
|
10
|
+
onValueChange?: (value: string) => void;
|
|
11
|
+
/** Name shared by all native radio inputs. */
|
|
12
|
+
name?: string;
|
|
13
|
+
/** Visible group label rendered as a legend. */
|
|
14
|
+
label?: ReactNode;
|
|
15
|
+
/** Supporting description for the group. */
|
|
16
|
+
description?: ReactNode;
|
|
17
|
+
/** Validation error message. */
|
|
18
|
+
error?: ReactNode | boolean;
|
|
19
|
+
/** Explicitly controls the invalid state. */
|
|
20
|
+
invalid?: boolean;
|
|
21
|
+
/** Marks the group as required. */
|
|
22
|
+
required?: boolean;
|
|
23
|
+
/** Disables all options. */
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/** Layout direction. Defaults to vertical. */
|
|
26
|
+
orientation?: RadioGroupOrientation;
|
|
27
|
+
/** Visual size. Defaults to md. */
|
|
28
|
+
size?: RadioGroupSize;
|
|
29
|
+
/** Text direction for keyboard navigation. */
|
|
30
|
+
dir?: "ltr" | "rtl";
|
|
31
|
+
/** Whether keyboard navigation wraps around. */
|
|
32
|
+
loop?: boolean;
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
};
|
|
35
|
+
type RadioProps = Omit<ComponentPropsWithRef<"input">, "children" | "type" | "name" | "value" | "checked" | "defaultChecked" | "disabled" | "required" | "size" | "className" | "style" | "tabIndex" | "form"> & {
|
|
36
|
+
/** Unique option value within the group. */
|
|
37
|
+
value: string;
|
|
38
|
+
/** Visible option label. */
|
|
39
|
+
label?: ReactNode;
|
|
40
|
+
/** Alternative to label for JSX composition. */
|
|
41
|
+
children?: ReactNode;
|
|
42
|
+
/** Supporting text displayed below the label. */
|
|
43
|
+
description?: ReactNode;
|
|
44
|
+
/** Disables this option individually. */
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
/** Class applied to the root label. */
|
|
47
|
+
className?: string;
|
|
48
|
+
/** Inline styles applied to the root label. */
|
|
49
|
+
style?: CSSProperties;
|
|
50
|
+
};
|
|
51
|
+
export type { RadioGroupOrientation, RadioGroupProps, RadioGroupSize, RadioProps };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { CSSProperties, ComponentPropsWithRef, ComponentPropsWithoutRef, ReactNode } from "react";
|
|
2
|
+
type RadioGroupOrientation = "horizontal" | "vertical";
|
|
3
|
+
type RadioGroupSize = "sm" | "md" | "lg";
|
|
4
|
+
type RadioGroupProps = Omit<ComponentPropsWithoutRef<"fieldset">, "children" | "disabled" | "dir"> & {
|
|
5
|
+
/** Currently selected value. Enables controlled usage. */
|
|
6
|
+
value?: string | null;
|
|
7
|
+
/** Initial selected value for uncontrolled usage. */
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
/** Called when another option is selected. */
|
|
10
|
+
onValueChange?: (value: string) => void;
|
|
11
|
+
/** Name shared by all native radio inputs. */
|
|
12
|
+
name?: string;
|
|
13
|
+
/** Visible group label rendered as a legend. */
|
|
14
|
+
label?: ReactNode;
|
|
15
|
+
/** Supporting description for the group. */
|
|
16
|
+
description?: ReactNode;
|
|
17
|
+
/** Validation error message. */
|
|
18
|
+
error?: ReactNode | boolean;
|
|
19
|
+
/** Explicitly controls the invalid state. */
|
|
20
|
+
invalid?: boolean;
|
|
21
|
+
/** Marks the group as required. */
|
|
22
|
+
required?: boolean;
|
|
23
|
+
/** Disables all options. */
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/** Layout direction. Defaults to vertical. */
|
|
26
|
+
orientation?: RadioGroupOrientation;
|
|
27
|
+
/** Visual size. Defaults to md. */
|
|
28
|
+
size?: RadioGroupSize;
|
|
29
|
+
/** Text direction for keyboard navigation. */
|
|
30
|
+
dir?: "ltr" | "rtl";
|
|
31
|
+
/** Whether keyboard navigation wraps around. */
|
|
32
|
+
loop?: boolean;
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
};
|
|
35
|
+
type RadioProps = Omit<ComponentPropsWithRef<"input">, "children" | "type" | "name" | "value" | "checked" | "defaultChecked" | "disabled" | "required" | "size" | "className" | "style" | "tabIndex" | "form"> & {
|
|
36
|
+
/** Unique option value within the group. */
|
|
37
|
+
value: string;
|
|
38
|
+
/** Visible option label. */
|
|
39
|
+
label?: ReactNode;
|
|
40
|
+
/** Alternative to label for JSX composition. */
|
|
41
|
+
children?: ReactNode;
|
|
42
|
+
/** Supporting text displayed below the label. */
|
|
43
|
+
description?: ReactNode;
|
|
44
|
+
/** Disables this option individually. */
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
/** Class applied to the root label. */
|
|
47
|
+
className?: string;
|
|
48
|
+
/** Inline styles applied to the root label. */
|
|
49
|
+
style?: CSSProperties;
|
|
50
|
+
};
|
|
51
|
+
export type { RadioGroupOrientation, RadioGroupProps, RadioGroupSize, RadioProps };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/components/forms/radio-group/radio-group.utils.ts
|
|
2
|
+
const mergeDescribedBy = (...values) => {
|
|
3
|
+
const ids = /* @__PURE__ */ new Set();
|
|
4
|
+
for (const value of values) {
|
|
5
|
+
if (!value) continue;
|
|
6
|
+
for (const id of value.trim().split(/\s+/)) if (id) ids.add(id);
|
|
7
|
+
}
|
|
8
|
+
return ids.size > 0 ? Array.from(ids).join(" ") : void 0;
|
|
9
|
+
};
|
|
10
|
+
const resolveRadioGroupError = (error, invalid) => {
|
|
11
|
+
const errorContent = error === true ? "Invalid value" : error;
|
|
12
|
+
const isInvalid = invalid ?? (error !== void 0 && error !== null && error !== false);
|
|
13
|
+
return {
|
|
14
|
+
isInvalid,
|
|
15
|
+
errorContent,
|
|
16
|
+
hasError: isInvalid && errorContent !== void 0 && errorContent !== null && errorContent !== false
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
exports.mergeDescribedBy = mergeDescribedBy;
|
|
20
|
+
exports.resolveRadioGroupError = resolveRadioGroupError;
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=radio-group.utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.utils.cjs","names":[],"sources":["../../../../src/components/forms/radio-group/radio-group.utils.ts"],"sourcesContent":["import type { ReactNode } from \"react\";\n\ntype RadioGroupErrorState = {\n isInvalid: boolean;\n errorContent: ReactNode | undefined;\n hasError: boolean;\n};\n\nconst mergeDescribedBy = (\n ...values: Array<string | undefined>\n): string | undefined => {\n const ids = new Set<string>();\n\n for (const value of values) {\n if (!value) {\n continue;\n }\n\n for (const id of value.trim().split(/\\s+/)) {\n if (id) {\n ids.add(id);\n }\n }\n }\n\n return ids.size > 0 ? Array.from(ids).join(\" \") : undefined;\n};\n\nconst resolveRadioGroupError = (\n error: ReactNode | boolean | undefined,\n invalid?: boolean,\n): RadioGroupErrorState => {\n const errorContent = error === true ? \"Invalid value\" : error;\n\n const isInvalid =\n invalid ?? (error !== undefined && error !== null && error !== false);\n\n const hasError =\n isInvalid &&\n errorContent !== undefined &&\n errorContent !== null &&\n errorContent !== false;\n\n return {\n isInvalid,\n errorContent,\n hasError,\n };\n};\n\nexport { mergeDescribedBy, resolveRadioGroupError, type RadioGroupErrorState };\n"],"mappings":";AAQA,MAAM,oBACJ,GAAG,WACoB;CACvB,MAAM,sBAAM,IAAI,IAAY;CAE5B,KAAK,MAAM,SAAS,QAAQ;EAC1B,IAAI,CAAC,OACH;EAGF,KAAK,MAAM,MAAM,MAAM,KAAK,CAAC,CAAC,MAAM,KAAK,GACvC,IAAI,IACF,IAAI,IAAI,EAAE;CAGhB;CAEA,OAAO,IAAI,OAAO,IAAI,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,GAAG,IAAI,KAAA;AACpD;AAEA,MAAM,0BACJ,OACA,YACyB;CACzB,MAAM,eAAe,UAAU,OAAO,kBAAkB;CAExD,MAAM,YACJ,YAAY,UAAU,KAAA,KAAa,UAAU,QAAQ,UAAU;CAQjE,OAAO;EACL;EACA;EACA,UARA,aACA,iBAAiB,KAAA,KACjB,iBAAiB,QACjB,iBAAiB;CAMnB;AACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// src/components/forms/radio-group/radio-group.utils.ts
|
|
2
|
+
const mergeDescribedBy = (...values) => {
|
|
3
|
+
const ids = /* @__PURE__ */ new Set();
|
|
4
|
+
for (const value of values) {
|
|
5
|
+
if (!value) continue;
|
|
6
|
+
for (const id of value.trim().split(/\s+/)) if (id) ids.add(id);
|
|
7
|
+
}
|
|
8
|
+
return ids.size > 0 ? Array.from(ids).join(" ") : void 0;
|
|
9
|
+
};
|
|
10
|
+
const resolveRadioGroupError = (error, invalid) => {
|
|
11
|
+
const errorContent = error === true ? "Invalid value" : error;
|
|
12
|
+
const isInvalid = invalid ?? (error !== void 0 && error !== null && error !== false);
|
|
13
|
+
return {
|
|
14
|
+
isInvalid,
|
|
15
|
+
errorContent,
|
|
16
|
+
hasError: isInvalid && errorContent !== void 0 && errorContent !== null && errorContent !== false
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export { mergeDescribedBy, resolveRadioGroupError };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=radio-group.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.utils.js","names":[],"sources":["../../../../src/components/forms/radio-group/radio-group.utils.ts"],"sourcesContent":["import type { ReactNode } from \"react\";\n\ntype RadioGroupErrorState = {\n isInvalid: boolean;\n errorContent: ReactNode | undefined;\n hasError: boolean;\n};\n\nconst mergeDescribedBy = (\n ...values: Array<string | undefined>\n): string | undefined => {\n const ids = new Set<string>();\n\n for (const value of values) {\n if (!value) {\n continue;\n }\n\n for (const id of value.trim().split(/\\s+/)) {\n if (id) {\n ids.add(id);\n }\n }\n }\n\n return ids.size > 0 ? Array.from(ids).join(\" \") : undefined;\n};\n\nconst resolveRadioGroupError = (\n error: ReactNode | boolean | undefined,\n invalid?: boolean,\n): RadioGroupErrorState => {\n const errorContent = error === true ? \"Invalid value\" : error;\n\n const isInvalid =\n invalid ?? (error !== undefined && error !== null && error !== false);\n\n const hasError =\n isInvalid &&\n errorContent !== undefined &&\n errorContent !== null &&\n errorContent !== false;\n\n return {\n isInvalid,\n errorContent,\n hasError,\n };\n};\n\nexport { mergeDescribedBy, resolveRadioGroupError, type RadioGroupErrorState };\n"],"mappings":";AAQA,MAAM,oBACJ,GAAG,WACoB;CACvB,MAAM,sBAAM,IAAI,IAAY;CAE5B,KAAK,MAAM,SAAS,QAAQ;EAC1B,IAAI,CAAC,OACH;EAGF,KAAK,MAAM,MAAM,MAAM,KAAK,CAAC,CAAC,MAAM,KAAK,GACvC,IAAI,IACF,IAAI,IAAI,EAAE;CAGhB;CAEA,OAAO,IAAI,OAAO,IAAI,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,GAAG,IAAI,KAAA;AACpD;AAEA,MAAM,0BACJ,OACA,YACyB;CACzB,MAAM,eAAe,UAAU,OAAO,kBAAkB;CAExD,MAAM,YACJ,YAAY,UAAU,KAAA,KAAa,UAAU,QAAQ,UAAU;CAQjE,OAAO;EACL;EACA;EACA,UARA,aACA,iBAAiB,KAAA,KACjB,iBAAiB,QACjB,iBAAiB;CAMnB;AACF"}
|