@poppy-ui/vue 0.0.0-dev.36.93ba5b2
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/LICENSE +21 -0
- package/README.md +103 -0
- package/dist/ClassWrapper-BNZO3mhP.cjs +2 -0
- package/dist/ClassWrapper-BNZO3mhP.cjs.map +1 -0
- package/dist/ClassWrapper-DdnnHfAj.js +24 -0
- package/dist/ClassWrapper-DdnnHfAj.js.map +1 -0
- package/dist/Toast-DuytECg8.cjs +2 -0
- package/dist/Toast-DuytECg8.cjs.map +1 -0
- package/dist/Toast-fSQWLl0R.js +63 -0
- package/dist/Toast-fSQWLl0R.js.map +1 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/_plugin-vue_export-helper-BTmtiIyf.cjs +1 -0
- package/dist/build-class.util-Cp-ZBFgO.js +1730 -0
- package/dist/build-class.util-Cp-ZBFgO.js.map +1 -0
- package/dist/build-class.util-Lo1-M_t1.cjs +2 -0
- package/dist/build-class.util-Lo1-M_t1.cjs.map +1 -0
- package/dist/components/ClassWrapper.d.ts +27 -0
- package/dist/components/ClassWrapper.d.ts.map +1 -0
- package/dist/components/actions/button/Button.d.ts +21 -0
- package/dist/components/actions/button/Button.d.ts.map +1 -0
- package/dist/components/actions/button/button.context.d.ts +2 -0
- package/dist/components/actions/button/button.context.d.ts.map +1 -0
- package/dist/components/actions/button/button.props.d.ts +58 -0
- package/dist/components/actions/button/button.props.d.ts.map +1 -0
- package/dist/components/actions/button/button.types.d.ts +7 -0
- package/dist/components/actions/button/button.types.d.ts.map +1 -0
- package/dist/components/actions/dropdown/Dropdown.d.ts +25 -0
- package/dist/components/actions/dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/actions/dropdown/dropdown.context.d.ts +2 -0
- package/dist/components/actions/dropdown/dropdown.context.d.ts.map +1 -0
- package/dist/components/actions/dropdown/dropdown.props.d.ts +60 -0
- package/dist/components/actions/dropdown/dropdown.props.d.ts.map +1 -0
- package/dist/components/actions/dropdown/dropdown.types.d.ts +4 -0
- package/dist/components/actions/dropdown/dropdown.types.d.ts.map +1 -0
- package/dist/components/actions/fab/Fab.d.ts +16 -0
- package/dist/components/actions/fab/Fab.d.ts.map +1 -0
- package/dist/components/actions/fab/fab.context.d.ts +2 -0
- package/dist/components/actions/fab/fab.context.d.ts.map +1 -0
- package/dist/components/actions/fab/fab.props.d.ts +11 -0
- package/dist/components/actions/fab/fab.props.d.ts.map +1 -0
- package/dist/components/actions/fab/fab.types.d.ts +2 -0
- package/dist/components/actions/fab/fab.types.d.ts.map +1 -0
- package/dist/components/actions/modal/Modal.d.ts +42 -0
- package/dist/components/actions/modal/Modal.d.ts.map +1 -0
- package/dist/components/actions/modal/modal.context.d.ts +2 -0
- package/dist/components/actions/modal/modal.context.d.ts.map +1 -0
- package/dist/components/actions/modal/modal.props.d.ts +31 -0
- package/dist/components/actions/modal/modal.props.d.ts.map +1 -0
- package/dist/components/actions/modal/modal.types.d.ts +2 -0
- package/dist/components/actions/modal/modal.types.d.ts.map +1 -0
- package/dist/components/actions/public.d.ts +6 -0
- package/dist/components/actions/public.d.ts.map +1 -0
- package/dist/components/actions/public.es.js +323 -0
- package/dist/components/actions/public.es.js.map +1 -0
- package/dist/components/actions/public.types.d.ts +11 -0
- package/dist/components/actions/public.types.d.ts.map +1 -0
- package/dist/components/actions/public.umd.js +2 -0
- package/dist/components/actions/public.umd.js.map +1 -0
- package/dist/components/actions/swap/Swap.d.ts +36 -0
- package/dist/components/actions/swap/Swap.d.ts.map +1 -0
- package/dist/components/actions/swap/swap.context.d.ts +2 -0
- package/dist/components/actions/swap/swap.context.d.ts.map +1 -0
- package/dist/components/actions/swap/swap.props.d.ts +18 -0
- package/dist/components/actions/swap/swap.props.d.ts.map +1 -0
- package/dist/components/actions/swap/swap.types.d.ts +2 -0
- package/dist/components/actions/swap/swap.types.d.ts.map +1 -0
- package/dist/components/app/PoppyApp.d.ts +14 -0
- package/dist/components/app/PoppyApp.d.ts.map +1 -0
- package/dist/components/app/public.d.ts +2 -0
- package/dist/components/app/public.d.ts.map +1 -0
- package/dist/components/app/public.es.js +42 -0
- package/dist/components/app/public.es.js.map +1 -0
- package/dist/components/app/public.umd.js +2 -0
- package/dist/components/app/public.umd.js.map +1 -0
- package/dist/components/data/checkbox/Checkbox.d.ts +25 -0
- package/dist/components/data/checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/data/checkbox/checkbox.context.d.ts +2 -0
- package/dist/components/data/checkbox/checkbox.context.d.ts.map +1 -0
- package/dist/components/data/checkbox/checkbox.props.d.ts +44 -0
- package/dist/components/data/checkbox/checkbox.props.d.ts.map +1 -0
- package/dist/components/data/checkbox/checkbox.types.d.ts +4 -0
- package/dist/components/data/checkbox/checkbox.types.d.ts.map +1 -0
- package/dist/components/data/field-set/FieldSet.d.ts +21 -0
- package/dist/components/data/field-set/FieldSet.d.ts.map +1 -0
- package/dist/components/data/field-set/field-set.props.d.ts +20 -0
- package/dist/components/data/field-set/field-set.props.d.ts.map +1 -0
- package/dist/components/data/form/Form.d.ts +37 -0
- package/dist/components/data/form/Form.d.ts.map +1 -0
- package/dist/components/data/form/form.context.d.ts +57 -0
- package/dist/components/data/form/form.context.d.ts.map +1 -0
- package/dist/components/data/form/form.props.d.ts +28 -0
- package/dist/components/data/form/form.props.d.ts.map +1 -0
- package/dist/components/data/form/form.types.d.ts +25 -0
- package/dist/components/data/form/form.types.d.ts.map +1 -0
- package/dist/components/data/form-field/FormField.d.ts +28 -0
- package/dist/components/data/form-field/FormField.d.ts.map +1 -0
- package/dist/components/data/form-field/form-field.context.d.ts +53 -0
- package/dist/components/data/form-field/form-field.context.d.ts.map +1 -0
- package/dist/components/data/form-field/form-field.props.d.ts +37 -0
- package/dist/components/data/form-field/form-field.props.d.ts.map +1 -0
- package/dist/components/data/form-field/form-field.types.d.ts +2 -0
- package/dist/components/data/form-field/form-field.types.d.ts.map +1 -0
- package/dist/components/data/input/Input.d.ts +31 -0
- package/dist/components/data/input/Input.d.ts.map +1 -0
- package/dist/components/data/input/input.context.d.ts +2 -0
- package/dist/components/data/input/input.context.d.ts.map +1 -0
- package/dist/components/data/input/input.props.d.ts +78 -0
- package/dist/components/data/input/input.props.d.ts.map +1 -0
- package/dist/components/data/input/input.types.d.ts +6 -0
- package/dist/components/data/input/input.types.d.ts.map +1 -0
- package/dist/components/data/public.d.ts +13 -0
- package/dist/components/data/public.d.ts.map +1 -0
- package/dist/components/data/public.es.js +1816 -0
- package/dist/components/data/public.es.js.map +1 -0
- package/dist/components/data/public.types.d.ts +21 -0
- package/dist/components/data/public.types.d.ts.map +1 -0
- package/dist/components/data/public.umd.js +2 -0
- package/dist/components/data/public.umd.js.map +1 -0
- package/dist/components/data/radio/Radio.d.ts +25 -0
- package/dist/components/data/radio/Radio.d.ts.map +1 -0
- package/dist/components/data/radio/radio.context.d.ts +2 -0
- package/dist/components/data/radio/radio.context.d.ts.map +1 -0
- package/dist/components/data/radio/radio.props.d.ts +47 -0
- package/dist/components/data/radio/radio.props.d.ts.map +1 -0
- package/dist/components/data/radio/radio.types.d.ts +4 -0
- package/dist/components/data/radio/radio.types.d.ts.map +1 -0
- package/dist/components/data/radio-group/RadioGroup.d.ts +28 -0
- package/dist/components/data/radio-group/RadioGroup.d.ts.map +1 -0
- package/dist/components/data/radio-group/radio-group.context.d.ts +13 -0
- package/dist/components/data/radio-group/radio-group.context.d.ts.map +1 -0
- package/dist/components/data/radio-group/radio-group.props.d.ts +12 -0
- package/dist/components/data/radio-group/radio-group.props.d.ts.map +1 -0
- package/dist/components/data/rating/Rating.d.ts +26 -0
- package/dist/components/data/rating/Rating.d.ts.map +1 -0
- package/dist/components/data/rating/rating.context.d.ts +2 -0
- package/dist/components/data/rating/rating.context.d.ts.map +1 -0
- package/dist/components/data/rating/rating.props.d.ts +44 -0
- package/dist/components/data/rating/rating.props.d.ts.map +1 -0
- package/dist/components/data/rating/rating.types.d.ts +6 -0
- package/dist/components/data/rating/rating.types.d.ts.map +1 -0
- package/dist/components/data/select/Select.d.ts +79 -0
- package/dist/components/data/select/Select.d.ts.map +1 -0
- package/dist/components/data/select/select.context.d.ts +2 -0
- package/dist/components/data/select/select.context.d.ts.map +1 -0
- package/dist/components/data/select/select.props.d.ts +99 -0
- package/dist/components/data/select/select.props.d.ts.map +1 -0
- package/dist/components/data/select/select.types.d.ts +20 -0
- package/dist/components/data/select/select.types.d.ts.map +1 -0
- package/dist/components/data/slider/Slider.d.ts +29 -0
- package/dist/components/data/slider/Slider.d.ts.map +1 -0
- package/dist/components/data/slider/slider.context.d.ts +2 -0
- package/dist/components/data/slider/slider.context.d.ts.map +1 -0
- package/dist/components/data/slider/slider.props.d.ts +70 -0
- package/dist/components/data/slider/slider.props.d.ts.map +1 -0
- package/dist/components/data/slider/slider.types.d.ts +7 -0
- package/dist/components/data/slider/slider.types.d.ts.map +1 -0
- package/dist/components/data/textarea/Textarea.d.ts +22 -0
- package/dist/components/data/textarea/Textarea.d.ts.map +1 -0
- package/dist/components/data/textarea/textarea.context.d.ts +2 -0
- package/dist/components/data/textarea/textarea.context.d.ts.map +1 -0
- package/dist/components/data/textarea/textarea.props.d.ts +64 -0
- package/dist/components/data/textarea/textarea.props.d.ts.map +1 -0
- package/dist/components/data/textarea/textarea.types.d.ts +5 -0
- package/dist/components/data/textarea/textarea.types.d.ts.map +1 -0
- package/dist/components/data/toggle/Toggle.d.ts +31 -0
- package/dist/components/data/toggle/Toggle.d.ts.map +1 -0
- package/dist/components/data/toggle/toggle.context.d.ts +2 -0
- package/dist/components/data/toggle/toggle.context.d.ts.map +1 -0
- package/dist/components/data/toggle/toggle.props.d.ts +38 -0
- package/dist/components/data/toggle/toggle.props.d.ts.map +1 -0
- package/dist/components/data/toggle/toggle.types.d.ts +4 -0
- package/dist/components/data/toggle/toggle.types.d.ts.map +1 -0
- package/dist/components/display/accordion/Accordion.d.ts +42 -0
- package/dist/components/display/accordion/Accordion.d.ts.map +1 -0
- package/dist/components/display/accordion/AccordionItem.d.ts +35 -0
- package/dist/components/display/accordion/AccordionItem.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion-item.context.d.ts +2 -0
- package/dist/components/display/accordion/accordion-item.context.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion-item.props.d.ts +19 -0
- package/dist/components/display/accordion/accordion-item.props.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion-item.types.d.ts +2 -0
- package/dist/components/display/accordion/accordion-item.types.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion.context.d.ts +9 -0
- package/dist/components/display/accordion/accordion.context.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion.props.d.ts +15 -0
- package/dist/components/display/accordion/accordion.props.d.ts.map +1 -0
- package/dist/components/display/avatar/Avatar.d.ts +14 -0
- package/dist/components/display/avatar/Avatar.d.ts.map +1 -0
- package/dist/components/display/avatar/avatar.context.d.ts +2 -0
- package/dist/components/display/avatar/avatar.context.d.ts.map +1 -0
- package/dist/components/display/avatar/avatar.props.d.ts +45 -0
- package/dist/components/display/avatar/avatar.props.d.ts.map +1 -0
- package/dist/components/display/avatar/avatar.types.d.ts +5 -0
- package/dist/components/display/avatar/avatar.types.d.ts.map +1 -0
- package/dist/components/display/badge/Badge.d.ts +12 -0
- package/dist/components/display/badge/Badge.d.ts.map +1 -0
- package/dist/components/display/badge/badge.context.d.ts +2 -0
- package/dist/components/display/badge/badge.context.d.ts.map +1 -0
- package/dist/components/display/badge/badge.props.d.ts +20 -0
- package/dist/components/display/badge/badge.props.d.ts.map +1 -0
- package/dist/components/display/badge/badge.types.d.ts +5 -0
- package/dist/components/display/badge/badge.types.d.ts.map +1 -0
- package/dist/components/display/card/Card.d.ts +12 -0
- package/dist/components/display/card/Card.d.ts.map +1 -0
- package/dist/components/display/card/CardActions.d.ts +12 -0
- package/dist/components/display/card/CardActions.d.ts.map +1 -0
- package/dist/components/display/card/CardBody.d.ts +14 -0
- package/dist/components/display/card/CardBody.d.ts.map +1 -0
- package/dist/components/display/card/CardTitle.d.ts +14 -0
- package/dist/components/display/card/CardTitle.d.ts.map +1 -0
- package/dist/components/display/card/card-actions.context.d.ts +2 -0
- package/dist/components/display/card/card-actions.context.d.ts.map +1 -0
- package/dist/components/display/card/card-actions.props.d.ts +15 -0
- package/dist/components/display/card/card-actions.props.d.ts.map +1 -0
- package/dist/components/display/card/card-actions.types.d.ts +2 -0
- package/dist/components/display/card/card-actions.types.d.ts.map +1 -0
- package/dist/components/display/card/card.context.d.ts +2 -0
- package/dist/components/display/card/card.context.d.ts.map +1 -0
- package/dist/components/display/card/card.props.d.ts +30 -0
- package/dist/components/display/card/card.props.d.ts.map +1 -0
- package/dist/components/display/card/card.types.d.ts +4 -0
- package/dist/components/display/card/card.types.d.ts.map +1 -0
- package/dist/components/display/carousel/Carousel.d.ts +16 -0
- package/dist/components/display/carousel/Carousel.d.ts.map +1 -0
- package/dist/components/display/carousel/carousel.context.d.ts +2 -0
- package/dist/components/display/carousel/carousel.context.d.ts.map +1 -0
- package/dist/components/display/carousel/carousel.props.d.ts +52 -0
- package/dist/components/display/carousel/carousel.props.d.ts.map +1 -0
- package/dist/components/display/carousel/carousel.types.d.ts +3 -0
- package/dist/components/display/carousel/carousel.types.d.ts.map +1 -0
- package/dist/components/display/chat/Chat.d.ts +20 -0
- package/dist/components/display/chat/Chat.d.ts.map +1 -0
- package/dist/components/display/chat/chat.context.d.ts +2 -0
- package/dist/components/display/chat/chat.context.d.ts.map +1 -0
- package/dist/components/display/chat/chat.props.d.ts +18 -0
- package/dist/components/display/chat/chat.props.d.ts.map +1 -0
- package/dist/components/display/chat/chat.types.d.ts +3 -0
- package/dist/components/display/chat/chat.types.d.ts.map +1 -0
- package/dist/components/display/countdown/Countdown.d.ts +38 -0
- package/dist/components/display/countdown/Countdown.d.ts.map +1 -0
- package/dist/components/display/countdown/countdown.context.d.ts +2 -0
- package/dist/components/display/countdown/countdown.context.d.ts.map +1 -0
- package/dist/components/display/countdown/countdown.props.d.ts +25 -0
- package/dist/components/display/countdown/countdown.props.d.ts.map +1 -0
- package/dist/components/display/countdown/countdown.types.d.ts +23 -0
- package/dist/components/display/countdown/countdown.types.d.ts.map +1 -0
- package/dist/components/display/diff/Diff.d.ts +16 -0
- package/dist/components/display/diff/Diff.d.ts.map +1 -0
- package/dist/components/display/hover-3d/Hover3d.d.ts +12 -0
- package/dist/components/display/hover-3d/Hover3d.d.ts.map +1 -0
- package/dist/components/display/hover-3d/hover-3d.props.d.ts +9 -0
- package/dist/components/display/hover-3d/hover-3d.props.d.ts.map +1 -0
- package/dist/components/display/hover-gallery/HoverGallery.d.ts +14 -0
- package/dist/components/display/hover-gallery/HoverGallery.d.ts.map +1 -0
- package/dist/components/display/kbd/Kbd.d.ts +12 -0
- package/dist/components/display/kbd/Kbd.d.ts.map +1 -0
- package/dist/components/display/kbd/kbd.context.d.ts +2 -0
- package/dist/components/display/kbd/kbd.context.d.ts.map +1 -0
- package/dist/components/display/kbd/kbd.props.d.ts +12 -0
- package/dist/components/display/kbd/kbd.props.d.ts.map +1 -0
- package/dist/components/display/kbd/kbd.types.d.ts +3 -0
- package/dist/components/display/kbd/kbd.types.d.ts.map +1 -0
- package/dist/components/display/list/List.d.ts +17 -0
- package/dist/components/display/list/List.d.ts.map +1 -0
- package/dist/components/display/list/ListItem.d.ts +22 -0
- package/dist/components/display/list/ListItem.d.ts.map +1 -0
- package/dist/components/display/list/list-item.props.d.ts +17 -0
- package/dist/components/display/list/list-item.props.d.ts.map +1 -0
- package/dist/components/display/list/list.props.d.ts +8 -0
- package/dist/components/display/list/list.props.d.ts.map +1 -0
- package/dist/components/display/public.d.ts +21 -0
- package/dist/components/display/public.d.ts.map +1 -0
- package/dist/components/display/public.es.js +2 -0
- package/dist/components/display/public.types.d.ts +28 -0
- package/dist/components/display/public.types.d.ts.map +1 -0
- package/dist/components/display/public.umd.js +1 -0
- package/dist/components/display/stat/Stat.d.ts +22 -0
- package/dist/components/display/stat/Stat.d.ts.map +1 -0
- package/dist/components/display/stat/Stats.d.ts +12 -0
- package/dist/components/display/stat/Stats.d.ts.map +1 -0
- package/dist/components/display/stat/stat.context.d.ts +2 -0
- package/dist/components/display/stat/stat.context.d.ts.map +1 -0
- package/dist/components/display/stat/stat.props.d.ts +42 -0
- package/dist/components/display/stat/stat.props.d.ts.map +1 -0
- package/dist/components/display/stat/stat.types.d.ts +2 -0
- package/dist/components/display/stat/stat.types.d.ts.map +1 -0
- package/dist/components/display/stat/stats.context.d.ts +2 -0
- package/dist/components/display/stat/stats.context.d.ts.map +1 -0
- package/dist/components/display/stat/stats.props.d.ts +11 -0
- package/dist/components/display/stat/stats.props.d.ts.map +1 -0
- package/dist/components/display/stat/stats.types.d.ts +2 -0
- package/dist/components/display/stat/stats.types.d.ts.map +1 -0
- package/dist/components/display/status/Status.d.ts +5 -0
- package/dist/components/display/status/Status.d.ts.map +1 -0
- package/dist/components/display/status/status.context.d.ts +2 -0
- package/dist/components/display/status/status.context.d.ts.map +1 -0
- package/dist/components/display/status/status.props.d.ts +27 -0
- package/dist/components/display/status/status.props.d.ts.map +1 -0
- package/dist/components/display/status/status.types.d.ts +5 -0
- package/dist/components/display/status/status.types.d.ts.map +1 -0
- package/dist/components/feedback/alert/Alert.d.ts +14 -0
- package/dist/components/feedback/alert/Alert.d.ts.map +1 -0
- package/dist/components/feedback/alert/alert.context.d.ts +2 -0
- package/dist/components/feedback/alert/alert.context.d.ts.map +1 -0
- package/dist/components/feedback/alert/alert.props.d.ts +27 -0
- package/dist/components/feedback/alert/alert.props.d.ts.map +1 -0
- package/dist/components/feedback/alert/alert.types.d.ts +4 -0
- package/dist/components/feedback/alert/alert.types.d.ts.map +1 -0
- package/dist/components/feedback/loading/Loading.d.ts +5 -0
- package/dist/components/feedback/loading/Loading.d.ts.map +1 -0
- package/dist/components/feedback/loading/loading.context.d.ts +2 -0
- package/dist/components/feedback/loading/loading.context.d.ts.map +1 -0
- package/dist/components/feedback/loading/loading.props.d.ts +23 -0
- package/dist/components/feedback/loading/loading.props.d.ts.map +1 -0
- package/dist/components/feedback/loading/loading.types.d.ts +5 -0
- package/dist/components/feedback/loading/loading.types.d.ts.map +1 -0
- package/dist/components/feedback/progress/Progress.d.ts +5 -0
- package/dist/components/feedback/progress/Progress.d.ts.map +1 -0
- package/dist/components/feedback/progress/progress.context.d.ts +2 -0
- package/dist/components/feedback/progress/progress.context.d.ts.map +1 -0
- package/dist/components/feedback/progress/progress.props.d.ts +28 -0
- package/dist/components/feedback/progress/progress.props.d.ts.map +1 -0
- package/dist/components/feedback/progress/progress.types.d.ts +2 -0
- package/dist/components/feedback/progress/progress.types.d.ts.map +1 -0
- package/dist/components/feedback/public.d.ts +6 -0
- package/dist/components/feedback/public.d.ts.map +1 -0
- package/dist/components/feedback/public.es.js +128 -0
- package/dist/components/feedback/public.es.js.map +1 -0
- package/dist/components/feedback/public.types.d.ts +13 -0
- package/dist/components/feedback/public.types.d.ts.map +1 -0
- package/dist/components/feedback/public.umd.js +2 -0
- package/dist/components/feedback/public.umd.js.map +1 -0
- package/dist/components/feedback/radial-progress/radial-progress.context.d.ts +2 -0
- package/dist/components/feedback/radial-progress/radial-progress.context.d.ts.map +1 -0
- package/dist/components/feedback/radial-progress/radial-progress.props.d.ts +32 -0
- package/dist/components/feedback/radial-progress/radial-progress.props.d.ts.map +1 -0
- package/dist/components/feedback/radial-progress/radial-progress.types.d.ts +2 -0
- package/dist/components/feedback/radial-progress/radial-progress.types.d.ts.map +1 -0
- package/dist/components/feedback/toast/Toast.d.ts +12 -0
- package/dist/components/feedback/toast/Toast.d.ts.map +1 -0
- package/dist/components/feedback/toast/toast.context.d.ts +9 -0
- package/dist/components/feedback/toast/toast.context.d.ts.map +1 -0
- package/dist/components/feedback/toast/toast.props.d.ts +31 -0
- package/dist/components/feedback/toast/toast.props.d.ts.map +1 -0
- package/dist/components/feedback/toast/toast.types.d.ts +5 -0
- package/dist/components/feedback/toast/toast.types.d.ts.map +1 -0
- package/dist/components/feedback/tooltip/Tooltip.d.ts +14 -0
- package/dist/components/feedback/tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/feedback/tooltip/tooltip.context.d.ts +2 -0
- package/dist/components/feedback/tooltip/tooltip.context.d.ts.map +1 -0
- package/dist/components/feedback/tooltip/tooltip.props.d.ts +39 -0
- package/dist/components/feedback/tooltip/tooltip.props.d.ts.map +1 -0
- package/dist/components/feedback/tooltip/tooltip.types.d.ts +3 -0
- package/dist/components/feedback/tooltip/tooltip.types.d.ts.map +1 -0
- package/dist/components/layout/divider/Divider.d.ts +12 -0
- package/dist/components/layout/divider/Divider.d.ts.map +1 -0
- package/dist/components/layout/divider/divider.context.d.ts +2 -0
- package/dist/components/layout/divider/divider.context.d.ts.map +1 -0
- package/dist/components/layout/divider/divider.props.d.ts +26 -0
- package/dist/components/layout/divider/divider.props.d.ts.map +1 -0
- package/dist/components/layout/divider/divider.types.d.ts +4 -0
- package/dist/components/layout/divider/divider.types.d.ts.map +1 -0
- package/dist/components/layout/drawer/Drawer.d.ts +39 -0
- package/dist/components/layout/drawer/Drawer.d.ts.map +1 -0
- package/dist/components/layout/drawer/drawer.context.d.ts +2 -0
- package/dist/components/layout/drawer/drawer.context.d.ts.map +1 -0
- package/dist/components/layout/drawer/drawer.props.d.ts +27 -0
- package/dist/components/layout/drawer/drawer.props.d.ts.map +1 -0
- package/dist/components/layout/drawer/drawer.types.d.ts +6 -0
- package/dist/components/layout/drawer/drawer.types.d.ts.map +1 -0
- package/dist/components/layout/indicator/Indicator.d.ts +14 -0
- package/dist/components/layout/indicator/Indicator.d.ts.map +1 -0
- package/dist/components/layout/indicator/indicator.context.d.ts +2 -0
- package/dist/components/layout/indicator/indicator.context.d.ts.map +1 -0
- package/dist/components/layout/indicator/indicator.props.d.ts +28 -0
- package/dist/components/layout/indicator/indicator.props.d.ts.map +1 -0
- package/dist/components/layout/indicator/indicator.types.d.ts +3 -0
- package/dist/components/layout/indicator/indicator.types.d.ts.map +1 -0
- package/dist/components/layout/join/Join.d.ts +12 -0
- package/dist/components/layout/join/Join.d.ts.map +1 -0
- package/dist/components/layout/join/join.context.d.ts +2 -0
- package/dist/components/layout/join/join.context.d.ts.map +1 -0
- package/dist/components/layout/join/join.props.d.ts +14 -0
- package/dist/components/layout/join/join.props.d.ts.map +1 -0
- package/dist/components/layout/join/join.types.d.ts +2 -0
- package/dist/components/layout/join/join.types.d.ts.map +1 -0
- package/dist/components/layout/mask/Mask.d.ts +12 -0
- package/dist/components/layout/mask/Mask.d.ts.map +1 -0
- package/dist/components/layout/mask/mask.context.d.ts +2 -0
- package/dist/components/layout/mask/mask.context.d.ts.map +1 -0
- package/dist/components/layout/mask/mask.props.d.ts +37 -0
- package/dist/components/layout/mask/mask.props.d.ts.map +1 -0
- package/dist/components/layout/mask/mask.types.d.ts +3 -0
- package/dist/components/layout/mask/mask.types.d.ts.map +1 -0
- package/dist/components/layout/public.d.ts +7 -0
- package/dist/components/layout/public.d.ts.map +1 -0
- package/dist/components/layout/public.es.js +206 -0
- package/dist/components/layout/public.es.js.map +1 -0
- package/dist/components/layout/public.types.d.ts +13 -0
- package/dist/components/layout/public.types.d.ts.map +1 -0
- package/dist/components/layout/public.umd.js +2 -0
- package/dist/components/layout/public.umd.js.map +1 -0
- package/dist/components/layout/stack/Stack.d.ts +12 -0
- package/dist/components/layout/stack/Stack.d.ts.map +1 -0
- package/dist/components/layout/stack/stack.context.d.ts +2 -0
- package/dist/components/layout/stack/stack.context.d.ts.map +1 -0
- package/dist/components/layout/stack/stack.props.d.ts +12 -0
- package/dist/components/layout/stack/stack.props.d.ts.map +1 -0
- package/dist/components/layout/stack/stack.types.d.ts +2 -0
- package/dist/components/layout/stack/stack.types.d.ts.map +1 -0
- package/dist/components/media/img/Img.d.ts +15 -0
- package/dist/components/media/img/Img.d.ts.map +1 -0
- package/dist/components/media/img/img.context.d.ts +2 -0
- package/dist/components/media/img/img.context.d.ts.map +1 -0
- package/dist/components/media/img/img.props.d.ts +76 -0
- package/dist/components/media/img/img.props.d.ts.map +1 -0
- package/dist/components/media/img/img.types.d.ts +33 -0
- package/dist/components/media/img/img.types.d.ts.map +1 -0
- package/dist/components/media/public.d.ts +2 -0
- package/dist/components/media/public.d.ts.map +1 -0
- package/dist/components/media/public.es.js +143 -0
- package/dist/components/media/public.es.js.map +1 -0
- package/dist/components/media/public.types.d.ts +3 -0
- package/dist/components/media/public.types.d.ts.map +1 -0
- package/dist/components/media/public.umd.js +2 -0
- package/dist/components/media/public.umd.js.map +1 -0
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts +5 -0
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.context.d.ts +2 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.context.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.props.d.ts +17 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.props.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.types.d.ts +11 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.types.d.ts.map +1 -0
- package/dist/components/navigation/dock/Dock.d.ts +12 -0
- package/dist/components/navigation/dock/Dock.d.ts.map +1 -0
- package/dist/components/navigation/dock/DockItem.d.ts +5 -0
- package/dist/components/navigation/dock/DockItem.d.ts.map +1 -0
- package/dist/components/navigation/dock/dock.context.d.ts +3 -0
- package/dist/components/navigation/dock/dock.context.d.ts.map +1 -0
- package/dist/components/navigation/dock/dock.props.d.ts +30 -0
- package/dist/components/navigation/dock/dock.props.d.ts.map +1 -0
- package/dist/components/navigation/dock/dock.types.d.ts +3 -0
- package/dist/components/navigation/dock/dock.types.d.ts.map +1 -0
- package/dist/components/navigation/link/Link.d.ts +12 -0
- package/dist/components/navigation/link/Link.d.ts.map +1 -0
- package/dist/components/navigation/link/link.context.d.ts +2 -0
- package/dist/components/navigation/link/link.context.d.ts.map +1 -0
- package/dist/components/navigation/link/link.props.d.ts +21 -0
- package/dist/components/navigation/link/link.props.d.ts.map +1 -0
- package/dist/components/navigation/link/link.types.d.ts +2 -0
- package/dist/components/navigation/link/link.types.d.ts.map +1 -0
- package/dist/components/navigation/menu/Menu.d.ts +12 -0
- package/dist/components/navigation/menu/Menu.d.ts.map +1 -0
- package/dist/components/navigation/menu/MenuItem.d.ts +36 -0
- package/dist/components/navigation/menu/MenuItem.d.ts.map +1 -0
- package/dist/components/navigation/menu/menu.context.d.ts +3 -0
- package/dist/components/navigation/menu/menu.context.d.ts.map +1 -0
- package/dist/components/navigation/menu/menu.props.d.ts +61 -0
- package/dist/components/navigation/menu/menu.props.d.ts.map +1 -0
- package/dist/components/navigation/menu/menu.types.d.ts +4 -0
- package/dist/components/navigation/menu/menu.types.d.ts.map +1 -0
- package/dist/components/navigation/navbar/Navbar.d.ts +4 -0
- package/dist/components/navigation/navbar/Navbar.d.ts.map +1 -0
- package/dist/components/navigation/public.d.ts +10 -0
- package/dist/components/navigation/public.d.ts.map +1 -0
- package/dist/components/navigation/public.es.js +2 -0
- package/dist/components/navigation/public.types.d.ts +11 -0
- package/dist/components/navigation/public.types.d.ts.map +1 -0
- package/dist/components/navigation/public.umd.js +1 -0
- package/dist/components/navigation/tab/Tab.d.ts +19 -0
- package/dist/components/navigation/tab/Tab.d.ts.map +1 -0
- package/dist/components/navigation/tab/Tabs.d.ts +20 -0
- package/dist/components/navigation/tab/Tabs.d.ts.map +1 -0
- package/dist/components/navigation/tab/tab.context.d.ts +10 -0
- package/dist/components/navigation/tab/tab.context.d.ts.map +1 -0
- package/dist/components/navigation/tab/tab.props.d.ts +59 -0
- package/dist/components/navigation/tab/tab.props.d.ts.map +1 -0
- package/dist/components/navigation/tab/tab.types.d.ts +5 -0
- package/dist/components/navigation/tab/tab.types.d.ts.map +1 -0
- package/dist/composables/public.d.ts +6 -0
- package/dist/composables/public.d.ts.map +1 -0
- package/dist/composables/public.es.js +39 -0
- package/dist/composables/public.es.js.map +1 -0
- package/dist/composables/public.umd.js +2 -0
- package/dist/composables/public.umd.js.map +1 -0
- package/dist/composables/use-component-config.d.ts +27 -0
- package/dist/composables/use-component-config.d.ts.map +1 -0
- package/dist/composables/use-config.d.ts +2 -0
- package/dist/composables/use-config.d.ts.map +1 -0
- package/dist/composables/use-form-field.d.ts +24 -0
- package/dist/composables/use-form-field.d.ts.map +1 -0
- package/dist/composables/use-select-counter.d.ts +13 -0
- package/dist/composables/use-select-counter.d.ts.map +1 -0
- package/dist/composables/use-toast.d.ts +36 -0
- package/dist/composables/use-toast.d.ts.map +1 -0
- package/dist/config/config.type.d.ts +96 -0
- package/dist/config/config.type.d.ts.map +1 -0
- package/dist/config/public.d.ts +3 -0
- package/dist/config/public.d.ts.map +1 -0
- package/dist/config/public.es.js +2 -0
- package/dist/config/public.types.d.ts +2 -0
- package/dist/config/public.types.d.ts.map +1 -0
- package/dist/config/public.umd.js +1 -0
- package/dist/config/size.context.d.ts +4 -0
- package/dist/config/size.context.d.ts.map +1 -0
- package/dist/config/symbol.d.ts +4 -0
- package/dist/config/symbol.d.ts.map +1 -0
- package/dist/plugin-vue.d.ts +33 -0
- package/dist/plugin-vue.d.ts.map +1 -0
- package/dist/public-1PFjXgZ6.cjs +2 -0
- package/dist/public-1PFjXgZ6.cjs.map +1 -0
- package/dist/public-D_MhbTxP.cjs +2 -0
- package/dist/public-D_MhbTxP.cjs.map +1 -0
- package/dist/public-Dqelew6J.js +615 -0
- package/dist/public-Dqelew6J.js.map +1 -0
- package/dist/public-H9TCdoJr.js +296 -0
- package/dist/public-H9TCdoJr.js.map +1 -0
- package/dist/public.d.ts +12 -0
- package/dist/public.d.ts.map +1 -0
- package/dist/public.es.js +15 -0
- package/dist/public.es.js.map +1 -0
- package/dist/public.umd.js +2 -0
- package/dist/public.umd.js.map +1 -0
- package/dist/style.css +2 -0
- package/dist/symbol-Cleu4XHu.cjs +2 -0
- package/dist/symbol-Cleu4XHu.cjs.map +1 -0
- package/dist/symbol-CziS7Pho.js +13 -0
- package/dist/symbol-CziS7Pho.js.map +1 -0
- package/dist/toast.context-BNg0Zn09.cjs +2 -0
- package/dist/toast.context-BNg0Zn09.cjs.map +1 -0
- package/dist/toast.context-CTPY2imu.js +7 -0
- package/dist/toast.context-CTPY2imu.js.map +1 -0
- package/dist/types/public.d.ts +3 -0
- package/dist/types/public.d.ts.map +1 -0
- package/dist/types/public.es.js +0 -0
- package/dist/types/public.umd.js +1 -0
- package/dist/types/size.type.d.ts +2 -0
- package/dist/types/size.type.d.ts.map +1 -0
- package/dist/types/utils.type.d.ts +5 -0
- package/dist/types/utils.type.d.ts.map +1 -0
- package/dist/use-component-config-C-IlXF0W.cjs +2 -0
- package/dist/use-component-config-C-IlXF0W.cjs.map +1 -0
- package/dist/use-component-config-CaJQbJOW.js +20 -0
- package/dist/use-component-config-CaJQbJOW.js.map +1 -0
- package/dist/use-select-counter-CgQha-_T.cjs +2 -0
- package/dist/use-select-counter-CgQha-_T.cjs.map +1 -0
- package/dist/use-select-counter-D_-Qwz61.js +72 -0
- package/dist/use-select-counter-D_-Qwz61.js.map +1 -0
- package/dist/utils/build-class.util.d.ts +4 -0
- package/dist/utils/build-class.util.d.ts.map +1 -0
- package/dist/utils/get-validation-message.d.ts +22 -0
- package/dist/utils/get-validation-message.d.ts.map +1 -0
- package/dist/utils/path.d.ts +20 -0
- package/dist/utils/path.d.ts.map +1 -0
- package/dist/utils/props.util.d.ts +2 -0
- package/dist/utils/props.util.d.ts.map +1 -0
- package/dist/utils/public.d.ts +2 -0
- package/dist/utils/public.d.ts.map +1 -0
- package/package.json +138 -0
- package/src/components/ClassWrapper.vue +42 -0
- package/src/components/actions/button/Button.story.vue +184 -0
- package/src/components/actions/button/Button.vue +110 -0
- package/src/components/actions/button/button.context.ts +3 -0
- package/src/components/actions/button/button.props.ts +56 -0
- package/src/components/actions/button/button.types.ts +7 -0
- package/src/components/actions/dropdown/Dropdown.story.vue +360 -0
- package/src/components/actions/dropdown/Dropdown.vue +218 -0
- package/src/components/actions/dropdown/dropdown.context.ts +3 -0
- package/src/components/actions/dropdown/dropdown.props.ts +59 -0
- package/src/components/actions/dropdown/dropdown.types.ts +4 -0
- package/src/components/actions/fab/Fab.story.vue +227 -0
- package/src/components/actions/fab/Fab.vue +33 -0
- package/src/components/actions/fab/fab.context.ts +3 -0
- package/src/components/actions/fab/fab.props.ts +11 -0
- package/src/components/actions/fab/fab.types.ts +1 -0
- package/src/components/actions/modal/Modal.story.vue +285 -0
- package/src/components/actions/modal/Modal.vue +106 -0
- package/src/components/actions/modal/modal.context.ts +3 -0
- package/src/components/actions/modal/modal.props.ts +29 -0
- package/src/components/actions/modal/modal.types.ts +1 -0
- package/src/components/actions/public.ts +5 -0
- package/src/components/actions/public.types.ts +15 -0
- package/src/components/actions/swap/Swap.story.vue +302 -0
- package/src/components/actions/swap/Swap.vue +59 -0
- package/src/components/actions/swap/swap.context.ts +3 -0
- package/src/components/actions/swap/swap.props.ts +17 -0
- package/src/components/actions/swap/swap.types.ts +1 -0
- package/src/components/app/PoppyApp.vue +48 -0
- package/src/components/app/public.ts +1 -0
- package/src/components/data/checkbox/Checkbox.story.vue +206 -0
- package/src/components/data/checkbox/Checkbox.vue +139 -0
- package/src/components/data/checkbox/checkbox.context.ts +3 -0
- package/src/components/data/checkbox/checkbox.props.ts +42 -0
- package/src/components/data/checkbox/checkbox.types.ts +5 -0
- package/src/components/data/field-set/FieldSet.story.vue +163 -0
- package/src/components/data/field-set/FieldSet.vue +22 -0
- package/src/components/data/field-set/field-set.props.ts +21 -0
- package/src/components/data/form/Form.story.vue +144 -0
- package/src/components/data/form/Form.vue +235 -0
- package/src/components/data/form/form.context.ts +82 -0
- package/src/components/data/form/form.props.ts +30 -0
- package/src/components/data/form/form.types.ts +25 -0
- package/src/components/data/form-field/FormField.vue +176 -0
- package/src/components/data/form-field/form-field.context.ts +71 -0
- package/src/components/data/form-field/form-field.props.ts +42 -0
- package/src/components/data/form-field/form-field.types.ts +1 -0
- package/src/components/data/input/Input.story.vue +276 -0
- package/src/components/data/input/Input.vue +233 -0
- package/src/components/data/input/input.context.ts +3 -0
- package/src/components/data/input/input.props.ts +87 -0
- package/src/components/data/input/input.types.ts +10 -0
- package/src/components/data/public.ts +12 -0
- package/src/components/data/public.types.ts +30 -0
- package/src/components/data/radio/Radio.story.vue +228 -0
- package/src/components/data/radio/Radio.vue +152 -0
- package/src/components/data/radio/radio.context.ts +3 -0
- package/src/components/data/radio/radio.props.ts +53 -0
- package/src/components/data/radio/radio.types.ts +5 -0
- package/src/components/data/radio-group/RadioGroup.story.vue +155 -0
- package/src/components/data/radio-group/RadioGroup.vue +65 -0
- package/src/components/data/radio-group/radio-group.context.ts +14 -0
- package/src/components/data/radio-group/radio-group.props.ts +12 -0
- package/src/components/data/rating/Rating.story.vue +150 -0
- package/src/components/data/rating/Rating.vue +190 -0
- package/src/components/data/rating/rating.context.ts +3 -0
- package/src/components/data/rating/rating.props.ts +43 -0
- package/src/components/data/rating/rating.types.ts +8 -0
- package/src/components/data/select/Select.story.vue +317 -0
- package/src/components/data/select/Select.vue +747 -0
- package/src/components/data/select/select.context.ts +3 -0
- package/src/components/data/select/select.props.ts +110 -0
- package/src/components/data/select/select.types.ts +24 -0
- package/src/components/data/slider/Slider.story.vue +276 -0
- package/src/components/data/slider/Slider.vue +802 -0
- package/src/components/data/slider/slider.context.ts +3 -0
- package/src/components/data/slider/slider.props.ts +69 -0
- package/src/components/data/slider/slider.types.ts +11 -0
- package/src/components/data/textarea/Textarea.story.vue +222 -0
- package/src/components/data/textarea/Textarea.vue +168 -0
- package/src/components/data/textarea/textarea.context.ts +3 -0
- package/src/components/data/textarea/textarea.props.ts +71 -0
- package/src/components/data/textarea/textarea.types.ts +7 -0
- package/src/components/data/toggle/Toggle.story.vue +195 -0
- package/src/components/data/toggle/Toggle.vue +136 -0
- package/src/components/data/toggle/toggle.context.ts +3 -0
- package/src/components/data/toggle/toggle.props.ts +40 -0
- package/src/components/data/toggle/toggle.types.ts +5 -0
- package/src/components/display/accordion/Accordion.story.vue +482 -0
- package/src/components/display/accordion/Accordion.vue +112 -0
- package/src/components/display/accordion/AccordionItem.vue +111 -0
- package/src/components/display/accordion/accordion-item.context.ts +3 -0
- package/src/components/display/accordion/accordion-item.props.ts +20 -0
- package/src/components/display/accordion/accordion-item.types.ts +1 -0
- package/src/components/display/accordion/accordion.context.ts +10 -0
- package/src/components/display/accordion/accordion.props.ts +16 -0
- package/src/components/display/avatar/Avatar.story.vue +341 -0
- package/src/components/display/avatar/Avatar.vue +57 -0
- package/src/components/display/avatar/avatar.context.ts +3 -0
- package/src/components/display/avatar/avatar.props.ts +44 -0
- package/src/components/display/avatar/avatar.types.ts +5 -0
- package/src/components/display/badge/Badge.story.vue +156 -0
- package/src/components/display/badge/Badge.vue +51 -0
- package/src/components/display/badge/badge.context.ts +3 -0
- package/src/components/display/badge/badge.props.ts +22 -0
- package/src/components/display/badge/badge.types.ts +5 -0
- package/src/components/display/card/Card.story.vue +312 -0
- package/src/components/display/card/Card.vue +40 -0
- package/src/components/display/card/CardActions.vue +30 -0
- package/src/components/display/card/CardBody.vue +5 -0
- package/src/components/display/card/CardTitle.vue +5 -0
- package/src/components/display/card/card-actions.context.ts +3 -0
- package/src/components/display/card/card-actions.props.ts +15 -0
- package/src/components/display/card/card-actions.types.ts +1 -0
- package/src/components/display/card/card.context.ts +3 -0
- package/src/components/display/card/card.props.ts +29 -0
- package/src/components/display/card/card.types.ts +4 -0
- package/src/components/display/carousel/Carousel.story.vue +216 -0
- package/src/components/display/carousel/Carousel.vue +156 -0
- package/src/components/display/carousel/carousel.context.ts +3 -0
- package/src/components/display/carousel/carousel.props.ts +51 -0
- package/src/components/display/carousel/carousel.types.ts +2 -0
- package/src/components/display/chat/Chat.story.vue +251 -0
- package/src/components/display/chat/Chat.vue +56 -0
- package/src/components/display/chat/chat.context.ts +3 -0
- package/src/components/display/chat/chat.props.ts +19 -0
- package/src/components/display/chat/chat.types.ts +2 -0
- package/src/components/display/countdown/Countdown.story.vue +285 -0
- package/src/components/display/countdown/Countdown.vue +114 -0
- package/src/components/display/countdown/countdown.context.ts +3 -0
- package/src/components/display/countdown/countdown.props.ts +26 -0
- package/src/components/display/countdown/countdown.types.ts +24 -0
- package/src/components/display/diff/Diff.story.vue +118 -0
- package/src/components/display/diff/Diff.vue +13 -0
- package/src/components/display/hover-3d/Hover3d.story.vue +154 -0
- package/src/components/display/hover-3d/Hover3d.vue +37 -0
- package/src/components/display/hover-3d/hover-3d.props.ts +9 -0
- package/src/components/display/hover-gallery/HoverGallery.story.vue +121 -0
- package/src/components/display/hover-gallery/HoverGallery.vue +5 -0
- package/src/components/display/kbd/Kbd.story.vue +214 -0
- package/src/components/display/kbd/Kbd.vue +32 -0
- package/src/components/display/kbd/kbd.context.ts +3 -0
- package/src/components/display/kbd/kbd.props.ts +12 -0
- package/src/components/display/kbd/kbd.types.ts +3 -0
- package/src/components/display/list/List.story.vue +381 -0
- package/src/components/display/list/List.vue +14 -0
- package/src/components/display/list/ListItem.vue +53 -0
- package/src/components/display/list/list-item.props.ts +19 -0
- package/src/components/display/list/list.props.ts +7 -0
- package/src/components/display/public.ts +20 -0
- package/src/components/display/public.types.ts +40 -0
- package/src/components/display/stat/Stat.story.vue +181 -0
- package/src/components/display/stat/Stat.vue +43 -0
- package/src/components/display/stat/Stats.vue +29 -0
- package/src/components/display/stat/stat.context.ts +3 -0
- package/src/components/display/stat/stat.props.ts +50 -0
- package/src/components/display/stat/stat.types.ts +1 -0
- package/src/components/display/stat/stats.context.ts +3 -0
- package/src/components/display/stat/stats.props.ts +11 -0
- package/src/components/display/stat/stats.types.ts +1 -0
- package/src/components/display/status/Status.story.vue +195 -0
- package/src/components/display/status/Status.vue +70 -0
- package/src/components/display/status/status.context.ts +3 -0
- package/src/components/display/status/status.props.ts +30 -0
- package/src/components/display/status/status.types.ts +5 -0
- package/src/components/feedback/alert/Alert.story.vue +243 -0
- package/src/components/feedback/alert/Alert.vue +46 -0
- package/src/components/feedback/alert/alert.context.ts +3 -0
- package/src/components/feedback/alert/alert.props.ts +29 -0
- package/src/components/feedback/alert/alert.types.ts +3 -0
- package/src/components/feedback/loading/Loading.story.vue +156 -0
- package/src/components/feedback/loading/Loading.vue +55 -0
- package/src/components/feedback/loading/loading.context.ts +3 -0
- package/src/components/feedback/loading/loading.props.ts +25 -0
- package/src/components/feedback/loading/loading.types.ts +5 -0
- package/src/components/feedback/progress/Progress.story.vue +96 -0
- package/src/components/feedback/progress/Progress.vue +36 -0
- package/src/components/feedback/progress/progress.context.ts +3 -0
- package/src/components/feedback/progress/progress.props.ts +27 -0
- package/src/components/feedback/progress/progress.types.ts +1 -0
- package/src/components/feedback/public.ts +5 -0
- package/src/components/feedback/public.types.ts +18 -0
- package/src/components/feedback/radial-progress/RadialProgress.story.vue +118 -0
- package/src/components/feedback/radial-progress/RadialProgress.vue +46 -0
- package/src/components/feedback/radial-progress/radial-progress.context.ts +3 -0
- package/src/components/feedback/radial-progress/radial-progress.props.ts +35 -0
- package/src/components/feedback/radial-progress/radial-progress.types.ts +9 -0
- package/src/components/feedback/toast/Toast.story.vue +356 -0
- package/src/components/feedback/toast/Toast.vue +40 -0
- package/src/components/feedback/toast/toast.context.ts +12 -0
- package/src/components/feedback/toast/toast.props.ts +33 -0
- package/src/components/feedback/toast/toast.types.ts +5 -0
- package/src/components/feedback/tooltip/Tooltip.story.vue +256 -0
- package/src/components/feedback/tooltip/Tooltip.vue +123 -0
- package/src/components/feedback/tooltip/tooltip.context.ts +3 -0
- package/src/components/feedback/tooltip/tooltip.props.ts +44 -0
- package/src/components/feedback/tooltip/tooltip.types.ts +2 -0
- package/src/components/layout/divider/Divider.story.vue +217 -0
- package/src/components/layout/divider/Divider.vue +48 -0
- package/src/components/layout/divider/divider.context.ts +3 -0
- package/src/components/layout/divider/divider.props.ts +28 -0
- package/src/components/layout/divider/divider.types.ts +3 -0
- package/src/components/layout/drawer/Drawer.story.vue +301 -0
- package/src/components/layout/drawer/Drawer.vue +88 -0
- package/src/components/layout/drawer/drawer.context.ts +3 -0
- package/src/components/layout/drawer/drawer.props.ts +25 -0
- package/src/components/layout/drawer/drawer.types.ts +6 -0
- package/src/components/layout/indicator/Indicator.story.vue +264 -0
- package/src/components/layout/indicator/Indicator.vue +43 -0
- package/src/components/layout/indicator/indicator.context.ts +3 -0
- package/src/components/layout/indicator/indicator.props.ts +27 -0
- package/src/components/layout/indicator/indicator.types.ts +2 -0
- package/src/components/layout/join/Join.story.vue +147 -0
- package/src/components/layout/join/Join.vue +32 -0
- package/src/components/layout/join/join.context.ts +3 -0
- package/src/components/layout/join/join.props.ts +14 -0
- package/src/components/layout/join/join.types.ts +1 -0
- package/src/components/layout/mask/Mask.story.vue +181 -0
- package/src/components/layout/mask/Mask.vue +49 -0
- package/src/components/layout/mask/mask.context.ts +3 -0
- package/src/components/layout/mask/mask.props.ts +36 -0
- package/src/components/layout/mask/mask.types.ts +18 -0
- package/src/components/layout/public.ts +6 -0
- package/src/components/layout/public.types.ts +18 -0
- package/src/components/layout/stack/Stack.story.vue +170 -0
- package/src/components/layout/stack/Stack.vue +29 -0
- package/src/components/layout/stack/stack.context.ts +3 -0
- package/src/components/layout/stack/stack.props.ts +12 -0
- package/src/components/layout/stack/stack.types.ts +1 -0
- package/src/components/media/img/Img.story.vue +214 -0
- package/src/components/media/img/Img.vue +189 -0
- package/src/components/media/img/img.context.ts +3 -0
- package/src/components/media/img/img.props.ts +88 -0
- package/src/components/media/img/img.types.ts +35 -0
- package/src/components/media/public.ts +1 -0
- package/src/components/media/public.types.ts +3 -0
- package/src/components/navigation/breadcrumbs/Breadcrumbs.story.vue +94 -0
- package/src/components/navigation/breadcrumbs/Breadcrumbs.vue +53 -0
- package/src/components/navigation/breadcrumbs/breadcrumbs.context.ts +3 -0
- package/src/components/navigation/breadcrumbs/breadcrumbs.props.ts +18 -0
- package/src/components/navigation/breadcrumbs/breadcrumbs.types.ts +13 -0
- package/src/components/navigation/dock/Dock.story.vue +109 -0
- package/src/components/navigation/dock/Dock.vue +32 -0
- package/src/components/navigation/dock/DockItem.vue +50 -0
- package/src/components/navigation/dock/dock.context.ts +4 -0
- package/src/components/navigation/dock/dock.props.ts +34 -0
- package/src/components/navigation/dock/dock.types.ts +3 -0
- package/src/components/navigation/link/Link.story.vue +129 -0
- package/src/components/navigation/link/Link.vue +57 -0
- package/src/components/navigation/link/link.context.ts +3 -0
- package/src/components/navigation/link/link.props.ts +20 -0
- package/src/components/navigation/link/link.types.ts +1 -0
- package/src/components/navigation/menu/Menu.story.vue +284 -0
- package/src/components/navigation/menu/Menu.vue +41 -0
- package/src/components/navigation/menu/MenuItem.vue +106 -0
- package/src/components/navigation/menu/menu.context.ts +4 -0
- package/src/components/navigation/menu/menu.props.ts +59 -0
- package/src/components/navigation/menu/menu.types.ts +4 -0
- package/src/components/navigation/navbar/Navbar.story.vue +154 -0
- package/src/components/navigation/navbar/Navbar.vue +8 -0
- package/src/components/navigation/public.ts +9 -0
- package/src/components/navigation/public.types.ts +15 -0
- package/src/components/navigation/tab/Tab.story.vue +186 -0
- package/src/components/navigation/tab/Tab.vue +106 -0
- package/src/components/navigation/tab/Tabs.vue +76 -0
- package/src/components/navigation/tab/tab.context.ts +13 -0
- package/src/components/navigation/tab/tab.props.ts +57 -0
- package/src/components/navigation/tab/tab.types.ts +5 -0
- package/src/composables/public.ts +5 -0
- package/src/composables/use-component-config.ts +44 -0
- package/src/composables/use-config.ts +6 -0
- package/src/composables/use-form-field.ts +99 -0
- package/src/composables/use-select-counter.ts +58 -0
- package/src/composables/use-toast.ts +47 -0
- package/src/config/config.type.ts +109 -0
- package/src/config/public.ts +2 -0
- package/src/config/public.types.ts +1 -0
- package/src/config/size.context.ts +4 -0
- package/src/config/symbol.ts +15 -0
- package/src/histoire.css +8 -0
- package/src/plugin-vue.ts +54 -0
- package/src/public.ts +12 -0
- package/src/stories/Configuration.story.md +55 -0
- package/src/types/public.ts +2 -0
- package/src/types/size.type.ts +1 -0
- package/src/types/utils.type.ts +5 -0
- package/src/utils/build-class.util.ts +38 -0
- package/src/utils/get-validation-message.ts +61 -0
- package/src/utils/path.ts +102 -0
- package/src/utils/props.util.ts +11 -0
- package/src/utils/public.ts +1 -0
- package/src/vite-env.d.ts +11 -0
- package/src/vue.d.ts +15 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Breadcrumbs
|
|
2
|
+
export type { BreadcrumbsProps } from './breadcrumbs/breadcrumbs.props'
|
|
3
|
+
export * from './breadcrumbs/breadcrumbs.types'
|
|
4
|
+
// Dock
|
|
5
|
+
export type { DockItemProps, DockProps } from './dock/dock.props'
|
|
6
|
+
export * from './dock/dock.types'
|
|
7
|
+
// Link
|
|
8
|
+
export type { LinkProps } from './link/link.props'
|
|
9
|
+
export * from './link/link.types'
|
|
10
|
+
// Menu
|
|
11
|
+
export type { MenuItemProps, MenuProps } from './menu/menu.props'
|
|
12
|
+
export * from './menu/menu.types'
|
|
13
|
+
// Tab
|
|
14
|
+
export type { TabProps, TabsProps } from './tab/tab.props'
|
|
15
|
+
export * from './tab/tab.types'
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { Home, Settings, User } from '@lucide/vue'
|
|
3
|
+
import { ref } from 'vue'
|
|
4
|
+
import Tab from './Tab.vue'
|
|
5
|
+
import Tabs from './Tabs.vue'
|
|
6
|
+
|
|
7
|
+
const activeBottom = ref('tab1')
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<Story group="components" title="Navigation/Tab" auto-props-disabled>
|
|
12
|
+
|
|
13
|
+
<Variant title="Border" id="border">
|
|
14
|
+
<Tabs variant="border">
|
|
15
|
+
<Tab value="tab1" title="Tab 1">
|
|
16
|
+
<p>Content of Tab 1 — Lorem ipsum dolor sit amet.</p>
|
|
17
|
+
</Tab>
|
|
18
|
+
<Tab value="tab2" title="Tab 2">
|
|
19
|
+
<p>Content of Tab 2 — Consectetur adipiscing elit.</p>
|
|
20
|
+
</Tab>
|
|
21
|
+
<Tab value="tab3" title="Tab 3">
|
|
22
|
+
<p>Content of Tab 3 — Sed do eiusmod tempor.</p>
|
|
23
|
+
</Tab>
|
|
24
|
+
</Tabs>
|
|
25
|
+
</Variant>
|
|
26
|
+
|
|
27
|
+
<Variant title="Lift" id="lift">
|
|
28
|
+
<Tabs variant="lift">
|
|
29
|
+
<Tab value="tab1" title="Tab 1">
|
|
30
|
+
<p>Content of Tab 1 — Lorem ipsum dolor sit amet.</p>
|
|
31
|
+
</Tab>
|
|
32
|
+
<Tab value="tab2" title="Tab 2">
|
|
33
|
+
<p>Content of Tab 2 — Consectetur adipiscing elit.</p>
|
|
34
|
+
</Tab>
|
|
35
|
+
<Tab value="tab3" title="Tab 3">
|
|
36
|
+
<p>Content of Tab 3 — Sed do eiusmod tempor.</p>
|
|
37
|
+
</Tab>
|
|
38
|
+
</Tabs>
|
|
39
|
+
</Variant>
|
|
40
|
+
|
|
41
|
+
<Variant title="Box" id="box">
|
|
42
|
+
<Tabs variant="box">
|
|
43
|
+
<Tab value="tab1" title="Tab 1">
|
|
44
|
+
<p>Content of Tab 1 — Lorem ipsum dolor sit amet.</p>
|
|
45
|
+
</Tab>
|
|
46
|
+
<Tab value="tab2" title="Tab 2">
|
|
47
|
+
<p>Content of Tab 2 — Consectetur adipiscing elit.</p>
|
|
48
|
+
</Tab>
|
|
49
|
+
<Tab value="tab3" title="Tab 3">
|
|
50
|
+
<p>Content of Tab 3 — Sed do eiusmod tempor.</p>
|
|
51
|
+
</Tab>
|
|
52
|
+
</Tabs>
|
|
53
|
+
</Variant>
|
|
54
|
+
|
|
55
|
+
<Variant title="With icons" id="with-icons">
|
|
56
|
+
<Tabs variant="lift">
|
|
57
|
+
<Tab value="home" :icon="Home">
|
|
58
|
+
<template #title>Home</template>
|
|
59
|
+
<p>Welcome to the home page.</p>
|
|
60
|
+
</Tab>
|
|
61
|
+
<Tab value="profile" :icon="User">
|
|
62
|
+
<template #title>Profile</template>
|
|
63
|
+
<p>Manage your profile here.</p>
|
|
64
|
+
</Tab>
|
|
65
|
+
<Tab value="settings" :icon="Settings">
|
|
66
|
+
<template #title>Settings</template>
|
|
67
|
+
<p>Configure your settings here.</p>
|
|
68
|
+
</Tab>
|
|
69
|
+
</Tabs>
|
|
70
|
+
</Variant>
|
|
71
|
+
|
|
72
|
+
<Variant title="Bottom placement" id="bottom">
|
|
73
|
+
<Tabs v-model="activeBottom" variant="border" placement="bottom">
|
|
74
|
+
<Tab value="tab1" title="Tab 1">
|
|
75
|
+
<p>Content of Tab 1.</p>
|
|
76
|
+
</Tab>
|
|
77
|
+
<Tab value="tab2" title="Tab 2">
|
|
78
|
+
<p>Content of Tab 2.</p>
|
|
79
|
+
</Tab>
|
|
80
|
+
<Tab value="tab3" title="Tab 3">
|
|
81
|
+
<p>Content of Tab 3.</p>
|
|
82
|
+
</Tab>
|
|
83
|
+
</Tabs>
|
|
84
|
+
</Variant>
|
|
85
|
+
|
|
86
|
+
<Variant title="Sizes" id="sizes">
|
|
87
|
+
<div class="flex flex-col gap-4">
|
|
88
|
+
<Tabs v-for="size in ['xs', 'sm', 'md', 'lg', 'xl']" :key="size" :size="size" variant="lift">
|
|
89
|
+
<Tab value="a" :title="size" active>Active</Tab>
|
|
90
|
+
<Tab value="b" title="Tab">Normal</Tab>
|
|
91
|
+
</Tabs>
|
|
92
|
+
</div>
|
|
93
|
+
</Variant>
|
|
94
|
+
|
|
95
|
+
<Variant title="Disabled" id="disabled">
|
|
96
|
+
<Tabs variant="lift">
|
|
97
|
+
<Tab value="a" title="Active" active>Content</Tab>
|
|
98
|
+
<Tab value="b" title="Disabled" disabled>Hidden</Tab>
|
|
99
|
+
<Tab value="c" title="Normal">Content</Tab>
|
|
100
|
+
</Tabs>
|
|
101
|
+
</Variant>
|
|
102
|
+
|
|
103
|
+
<Variant title="Router mode" id="router">
|
|
104
|
+
<template #source>
|
|
105
|
+
<textarea v-pre>
|
|
106
|
+
<Tabs variant="border">
|
|
107
|
+
<Tab to="/home" title="Home" />
|
|
108
|
+
<Tab to="/profile" title="Profile" />
|
|
109
|
+
<Tab to="/settings" title="Settings" />
|
|
110
|
+
</Tabs>
|
|
111
|
+
</textarea>
|
|
112
|
+
</template>
|
|
113
|
+
<Tabs variant="border">
|
|
114
|
+
<Tab to="#" title="Home" />
|
|
115
|
+
<Tab to="#" title="Profile" />
|
|
116
|
+
<Tab to="#" title="Settings" />
|
|
117
|
+
</Tabs>
|
|
118
|
+
</Variant>
|
|
119
|
+
|
|
120
|
+
</Story>
|
|
121
|
+
</template>
|
|
122
|
+
|
|
123
|
+
<docs lang="md">
|
|
124
|
+
# Tab
|
|
125
|
+
|
|
126
|
+
## Description
|
|
127
|
+
|
|
128
|
+
Tabs component for switching between views. Each `<Tab />` renders both the tab button and its content panel as adjacent elements — matching DaisyUI's structure.
|
|
129
|
+
|
|
130
|
+
Supports two modes:
|
|
131
|
+
- **Controlled mode** (`v-model`): First tab is active by default. Click switches tabs via JS.
|
|
132
|
+
- **Router mode** (`to` prop): Each `Tab` renders as a `RouterLink`. Content is provided by `<RouterView />`.
|
|
133
|
+
|
|
134
|
+
## API
|
|
135
|
+
|
|
136
|
+
### Tabs (container)
|
|
137
|
+
|
|
138
|
+
| Prop | Type | Default | Configurable | Description |
|
|
139
|
+
|-------------|----------------|-------------|--------------------|-----------------------------------------------------------------------|
|
|
140
|
+
| `v-model` | `string` | `undefined` | :x: | Active tab value. When omitted, first tab with `active` prop is used. |
|
|
141
|
+
| `variant` | `TabVariant` | `undefined` | :white_check_mark: | Visual style: `'border'`, `'lift'`, `'box'`. |
|
|
142
|
+
| `size` | `TabSize` | `'md'` | :white_check_mark: | Tab size. |
|
|
143
|
+
| `placement` | `TabPlacement` | `'top'` | :white_check_mark: | Tabs position: `'top'`, `'bottom'`. |
|
|
144
|
+
|
|
145
|
+
### Tab (item)
|
|
146
|
+
|
|
147
|
+
| Prop | Type | Default | Description |
|
|
148
|
+
|------------|--------------|-------------|-----------------------------------------------------------------|
|
|
149
|
+
| `value` | `string` | `undefined` | Tab identifier — matches `v-model` on parent `<Tabs />`. |
|
|
150
|
+
| `title` | `string` | `undefined` | Tab header label. Use `#title` slot for rich content. |
|
|
151
|
+
| `active` | `boolean` | `false` | Initial active state hint (ignored once context is set). |
|
|
152
|
+
| `disabled` | `boolean` | `false` | Disables the tab. |
|
|
153
|
+
| `icon` | `Component` | `undefined` | Icon displayed before the label. |
|
|
154
|
+
| `to` | `string` | `undefined` | Router target. Renders as `RouterLink`; no content panel shown. |
|
|
155
|
+
|
|
156
|
+
### Slots
|
|
157
|
+
|
|
158
|
+
| Slot | Component | Description |
|
|
159
|
+
|-----------|-----------|----------------------------------------------------------|
|
|
160
|
+
| `default` | `Tabs` | `Tab` items. |
|
|
161
|
+
| `default` | `Tab` | Content panel shown when tab is active. |
|
|
162
|
+
| `title` | `Tab` | Tab header label (overrides `title` prop, rich content). |
|
|
163
|
+
| `icon` | `Tab` | Icon content (overrides `icon` prop). |
|
|
164
|
+
|
|
165
|
+
## Usage
|
|
166
|
+
|
|
167
|
+
```vue
|
|
168
|
+
<!-- Controlled mode (v-model) -->
|
|
169
|
+
<Tabs v-model="activeTab" variant="lift">
|
|
170
|
+
<Tab value="home" title="Home">
|
|
171
|
+
Home content here
|
|
172
|
+
</Tab>
|
|
173
|
+
<Tab value="profile">
|
|
174
|
+
<template #title>Profile <span class="badge">New</span></template>
|
|
175
|
+
Profile content here
|
|
176
|
+
</Tab>
|
|
177
|
+
</Tabs>
|
|
178
|
+
|
|
179
|
+
<!-- Router mode -->
|
|
180
|
+
<Tabs variant="border">
|
|
181
|
+
<Tab to="/home" title="Home" />
|
|
182
|
+
<Tab to="/profile" title="Profile" />
|
|
183
|
+
</Tabs>
|
|
184
|
+
<RouterView />
|
|
185
|
+
```
|
|
186
|
+
</docs>
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { useComponentConfig } from '@/composables/use-component-config'
|
|
3
|
+
import { computed, inject, useSlots, useTemplateRef } from 'vue'
|
|
4
|
+
import { RouterLink, useLink } from 'vue-router'
|
|
5
|
+
import { TAB_CONFIG, TABS_CONTEXT } from './tab.context'
|
|
6
|
+
import type { TabProps } from './tab.props'
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<script setup lang="ts">
|
|
10
|
+
const props = defineProps<TabProps>()
|
|
11
|
+
const config = useComponentConfig(TAB_CONFIG, props, {})
|
|
12
|
+
const tabsContext = inject(TABS_CONTEXT, null)
|
|
13
|
+
const slots = useSlots()
|
|
14
|
+
|
|
15
|
+
if (tabsContext && props.value !== undefined) {
|
|
16
|
+
tabsContext.register(props.value, !!props.active)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const tag = computed(() => {
|
|
20
|
+
if (!props.to) {
|
|
21
|
+
return 'button'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (props.to.startsWith('#')) {
|
|
25
|
+
return 'a'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return RouterLink
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
const attr = computed(() => {
|
|
32
|
+
if (tag.value === 'button') {
|
|
33
|
+
return {}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (tag.value === 'a') {
|
|
37
|
+
return { href: props.to }
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return { to: props.to }
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
const isRouterActive = computed(() => {
|
|
44
|
+
if (!props.to || props.to === '#') {
|
|
45
|
+
return false
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const { isExactActive } = useLink({ to: computed(() => props.to!) })
|
|
49
|
+
return isExactActive.value
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
const isActive = computed(() => {
|
|
53
|
+
if (tabsContext && props.value !== undefined) {
|
|
54
|
+
return tabsContext.activeValue.value === props.value
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (props.to) {
|
|
58
|
+
return isRouterActive.value
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return config.value.active
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
const hasContent = computed(() => !!slots.default)
|
|
65
|
+
|
|
66
|
+
function onClick() {
|
|
67
|
+
if (!props.to && tabsContext && props.value !== undefined) {
|
|
68
|
+
tabsContext.setActive(props.value)
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const tabEl = useTemplateRef('tab-el')
|
|
73
|
+
|
|
74
|
+
defineExpose({
|
|
75
|
+
$el: tabEl,
|
|
76
|
+
focus: () => tabEl.value?.focus(),
|
|
77
|
+
})
|
|
78
|
+
</script>
|
|
79
|
+
|
|
80
|
+
<template>
|
|
81
|
+
<component
|
|
82
|
+
ref="tab-el"
|
|
83
|
+
:is="tag"
|
|
84
|
+
v-bind="attr"
|
|
85
|
+
role="tab"
|
|
86
|
+
class="tab"
|
|
87
|
+
:class="{
|
|
88
|
+
'tab-active': isActive,
|
|
89
|
+
'tab-disabled': config.disabled
|
|
90
|
+
}"
|
|
91
|
+
:disabled="!props.to && config.disabled"
|
|
92
|
+
@click="onClick"
|
|
93
|
+
>
|
|
94
|
+
<slot name="icon">
|
|
95
|
+
<component v-if="config.icon" :is="config.icon" :size="16" class="me-2" />
|
|
96
|
+
</slot>
|
|
97
|
+
<slot name="title">{{ config.title }}</slot>
|
|
98
|
+
</component>
|
|
99
|
+
<div
|
|
100
|
+
v-if="hasContent"
|
|
101
|
+
class="tab-content bg-base-100 border-base-300 p-6"
|
|
102
|
+
:style="{ display: isActive ? 'block' : 'none' }"
|
|
103
|
+
>
|
|
104
|
+
<slot />
|
|
105
|
+
</div>
|
|
106
|
+
</template>
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { useComponentConfig } from '@/composables/use-component-config'
|
|
3
|
+
import type { ComponentClass } from '@/types/utils.type'
|
|
4
|
+
import { getClass } from '@/utils/build-class.util'
|
|
5
|
+
import { onMounted, provide } from 'vue'
|
|
6
|
+
import { TABS_CONFIG, TABS_CONTEXT } from './tab.context'
|
|
7
|
+
import type { TabsProps } from './tab.props'
|
|
8
|
+
import type { TabPlacement, TabSize, TabVariant } from './tab.types'
|
|
9
|
+
|
|
10
|
+
const variants: ComponentClass<'tabs', TabVariant> = {
|
|
11
|
+
box: 'tabs-box',
|
|
12
|
+
border: 'tabs-border',
|
|
13
|
+
lift: 'tabs-lift',
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const sizes: ComponentClass<'tabs', TabSize> = {
|
|
17
|
+
xs: 'tabs-xs',
|
|
18
|
+
sm: 'tabs-sm',
|
|
19
|
+
md: 'tabs-md',
|
|
20
|
+
lg: 'tabs-lg',
|
|
21
|
+
xl: 'tabs-xl',
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const placements: ComponentClass<'tabs', TabPlacement> = {
|
|
25
|
+
top: 'tabs-top',
|
|
26
|
+
bottom: 'tabs-bottom',
|
|
27
|
+
}
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<script setup lang="ts">
|
|
31
|
+
const model = defineModel<string>()
|
|
32
|
+
const props = defineProps<TabsProps>()
|
|
33
|
+
const config = useComponentConfig(TABS_CONFIG, props, {
|
|
34
|
+
size: 'md',
|
|
35
|
+
placement: 'top',
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
const registeredTabs: Array<{ value: string; initiallyActive: boolean }> = []
|
|
39
|
+
|
|
40
|
+
provide(TABS_CONTEXT, {
|
|
41
|
+
activeValue: model,
|
|
42
|
+
setActive: (value) => { model.value = value },
|
|
43
|
+
register: (value, initiallyActive) => { registeredTabs.push({ value, initiallyActive }) },
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
onMounted(() => {
|
|
47
|
+
if (model.value !== undefined) {
|
|
48
|
+
return
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const preSelected = registeredTabs.find(t => t.initiallyActive)
|
|
52
|
+
|
|
53
|
+
if (preSelected) {
|
|
54
|
+
model.value = preSelected.value
|
|
55
|
+
return
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (registeredTabs.length > 0) {
|
|
59
|
+
model.value = registeredTabs[0].value
|
|
60
|
+
}
|
|
61
|
+
})
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<template>
|
|
65
|
+
<div
|
|
66
|
+
role="tablist"
|
|
67
|
+
class="tabs"
|
|
68
|
+
:class="[
|
|
69
|
+
getClass(variants, config.variant),
|
|
70
|
+
getClass(sizes, config.size),
|
|
71
|
+
getClass(placements, config.placement),
|
|
72
|
+
]"
|
|
73
|
+
>
|
|
74
|
+
<slot />
|
|
75
|
+
</div>
|
|
76
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createComponentConfigKey } from '@/config/symbol'
|
|
2
|
+
import type { InjectionKey, Ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
export const TABS_CONFIG = createComponentConfigKey('tabs')
|
|
5
|
+
export const TAB_CONFIG = createComponentConfigKey('tab')
|
|
6
|
+
|
|
7
|
+
export interface TabsContext {
|
|
8
|
+
activeValue: Ref<string | undefined>
|
|
9
|
+
setActive: (value: string) => void
|
|
10
|
+
register: (value: string, initiallyActive: boolean) => void
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const TABS_CONTEXT: InjectionKey<TabsContext> = Symbol('tabs')
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { Component } from 'vue'
|
|
2
|
+
import type { TabPlacement, TabSize, TabVariant } from './tab.types'
|
|
3
|
+
export interface TabsConfigurableProps {
|
|
4
|
+
/**
|
|
5
|
+
* Visual variant of the tabs.
|
|
6
|
+
* - `'box'`: Boxed variant
|
|
7
|
+
* - `'border'`: With bottom border
|
|
8
|
+
* - `'lift'`: Lifted variant
|
|
9
|
+
*/
|
|
10
|
+
variant?: TabVariant
|
|
11
|
+
/**
|
|
12
|
+
* Size of the tabs.
|
|
13
|
+
*
|
|
14
|
+
* @default 'md'
|
|
15
|
+
*/
|
|
16
|
+
size?: TabSize
|
|
17
|
+
/**
|
|
18
|
+
* Placement of the tabs relative to content.
|
|
19
|
+
* - `'top'`: Tabs on top (default)
|
|
20
|
+
* - `'bottom'`: Tabs on bottom
|
|
21
|
+
*/
|
|
22
|
+
placement?: TabPlacement
|
|
23
|
+
}
|
|
24
|
+
export interface TabsProps extends TabsConfigurableProps {}
|
|
25
|
+
// biome-ignore lint/suspicious/noEmptyInterface: Intentionally empty to allow future configurable props and global plugin configuration
|
|
26
|
+
export interface TabConfigurableProps {}
|
|
27
|
+
export interface TabProps extends TabConfigurableProps {
|
|
28
|
+
/**
|
|
29
|
+
* Unique value identifying this tab. Used with `v-model` on the parent `<Tabs>` for controlled mode.
|
|
30
|
+
*/
|
|
31
|
+
value?: string
|
|
32
|
+
/**
|
|
33
|
+
* Tab header label. Rendered inside the tab button.
|
|
34
|
+
* Can also be set via the `#title` slot for rich content.
|
|
35
|
+
*/
|
|
36
|
+
title?: string
|
|
37
|
+
/**
|
|
38
|
+
* Whether the tab is active. Auto-computed when `value` is set and a parent `<Tabs v-model>` exists.
|
|
39
|
+
*
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
active?: boolean
|
|
43
|
+
/**
|
|
44
|
+
* Whether the tab is disabled.
|
|
45
|
+
*
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
disabled?: boolean
|
|
49
|
+
/**
|
|
50
|
+
* Optional icon component displayed before the tab label.
|
|
51
|
+
*/
|
|
52
|
+
icon?: Component
|
|
53
|
+
/**
|
|
54
|
+
* Navigation target (Vue Router location). When provided, renders as RouterLink.
|
|
55
|
+
*/
|
|
56
|
+
to?: string
|
|
57
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { COMPONENT_SIZE } from '@/config/size.context'
|
|
2
|
+
import { type ComputedRef, computed, type InjectionKey, inject } from 'vue'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Merges objects while ignoring `undefined` values, allowing lower-priority
|
|
6
|
+
* configuration to remain in effect.
|
|
7
|
+
*
|
|
8
|
+
* Priority order (rightmost wins):
|
|
9
|
+
* defaults → pluginConfig → contextOverrides (Form → FormField) → local props
|
|
10
|
+
*/
|
|
11
|
+
export function mergeProps<T extends Record<string, any>[]>(...objects: T): any {
|
|
12
|
+
return objects.reduce((acc, curr) => {
|
|
13
|
+
const cleanCurr = Object.fromEntries(Object.entries(curr).filter(([_, v]) => v !== undefined))
|
|
14
|
+
return { ...acc, ...cleanCurr }
|
|
15
|
+
}, {})
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Resolves the final config of a component by merging in the following order:
|
|
20
|
+
*
|
|
21
|
+
* 1. `defaults` — hardcoded component defaults (e.g. `{ size: 'md', counter: false }`)
|
|
22
|
+
* 2. `pluginConfig` — inject(key) — global config provided via PoppyPlugin
|
|
23
|
+
* 3. `contextOverrides` — values inherited from Form / FormField (passed explicitly)
|
|
24
|
+
* 4. `props` — local props declared on the instance (highest priority)
|
|
25
|
+
*
|
|
26
|
+
* `undefined` values are ignored at each level, which allows `false` to correctly
|
|
27
|
+
* override a parent value without `undefined` inadvertently clearing it.
|
|
28
|
+
*
|
|
29
|
+
* @param key - InjectionKey for the component's pluginConfig
|
|
30
|
+
* @param props - Instance props (defineProps)
|
|
31
|
+
* @param defaults - Hardcoded default values
|
|
32
|
+
* @param contextOverrides - Values inherited from the Form/FormField context (optional)
|
|
33
|
+
*/
|
|
34
|
+
export function useComponentConfig<T extends Record<string, any>, P extends Record<string, any>>(
|
|
35
|
+
key: InjectionKey<T>,
|
|
36
|
+
props: P,
|
|
37
|
+
defaults?: Partial<P & T>,
|
|
38
|
+
contextOverrides?: Record<string, any>,
|
|
39
|
+
): ComputedRef<P & T> {
|
|
40
|
+
const pluginConfig = inject(key, {} as T)
|
|
41
|
+
const globalSize = inject(COMPONENT_SIZE, 'md')
|
|
42
|
+
|
|
43
|
+
return computed(() => mergeProps({ size: globalSize }, defaults ?? {}, pluginConfig, contextOverrides ?? {}, props))
|
|
44
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { FormFieldContext } from '@/components/data/form-field/form-field.context'
|
|
2
|
+
import { FORM_FIELD_CONTEXT_KEY } from '@/components/data/form-field/form-field.context'
|
|
3
|
+
import { getValidationMessage } from '@/utils/get-validation-message'
|
|
4
|
+
import { type ComputedRef, computed, inject, onMounted, onUnmounted, type Ref, watch } from 'vue'
|
|
5
|
+
import { useI18n } from 'vue-i18n'
|
|
6
|
+
|
|
7
|
+
export interface UseFormFieldOptions {
|
|
8
|
+
required: ComputedRef<boolean>
|
|
9
|
+
inputEl?: Ref<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | null>
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface UseFormFieldReturn<T> {
|
|
13
|
+
/** The FormFieldContext when inside a <FormField>, null otherwise. */
|
|
14
|
+
field: FormFieldContext<T> | null
|
|
15
|
+
/** The current field value typed as T, or undefined when not in a FormField. */
|
|
16
|
+
fieldValue: ComputedRef<T | undefined>
|
|
17
|
+
/** True when the field has a server-side error set via setErrors(). */
|
|
18
|
+
hasServerError: ComputedRef<boolean>
|
|
19
|
+
/** Triggers HTML5 constraint validation on the input element. */
|
|
20
|
+
validate: () => boolean
|
|
21
|
+
/** To be called on the input's blur event — marks the field as touched. */
|
|
22
|
+
onBlur: () => void
|
|
23
|
+
/** Clears the current field error. */
|
|
24
|
+
clearError: () => void
|
|
25
|
+
/** Sets a custom validation message (delegates to el.setCustomValidity). */
|
|
26
|
+
setDelegateMessage: (msg: string) => void
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function useFormField<T = unknown>(options: UseFormFieldOptions): UseFormFieldReturn<T> {
|
|
30
|
+
const { t } = useI18n()
|
|
31
|
+
|
|
32
|
+
const field = inject(FORM_FIELD_CONTEXT_KEY, null) as FormFieldContext<T> | null
|
|
33
|
+
|
|
34
|
+
// Signal required state to FormField on mount and on change
|
|
35
|
+
onMounted(() => {
|
|
36
|
+
field?.setRequired(options.required.value)
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
watch(options.required, val => {
|
|
40
|
+
field?.setRequired(val)
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
// Register this input's validator with the parent Form so it runs on submit
|
|
44
|
+
const validatorKey = Symbol()
|
|
45
|
+
|
|
46
|
+
onMounted(() => {
|
|
47
|
+
if (!field) return
|
|
48
|
+
field.registerValidator(validatorKey, () => {
|
|
49
|
+
field.setTouched(true)
|
|
50
|
+
return validate()
|
|
51
|
+
})
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
onUnmounted(() => {
|
|
55
|
+
field?.unregisterValidator(validatorKey)
|
|
56
|
+
})
|
|
57
|
+
|
|
58
|
+
const fieldValue = computed<T | undefined>(() => field?.value.value as T | undefined)
|
|
59
|
+
|
|
60
|
+
const hasServerError = computed<boolean>(() => {
|
|
61
|
+
if (!field) return false
|
|
62
|
+
const state = field.state.value
|
|
63
|
+
return state.hasError && !state.isDirty
|
|
64
|
+
})
|
|
65
|
+
|
|
66
|
+
function validate(): boolean {
|
|
67
|
+
const el = options.inputEl?.value
|
|
68
|
+
if (!el || !field) return true
|
|
69
|
+
|
|
70
|
+
const message = getValidationMessage(el, t)
|
|
71
|
+
field.setError(message ?? undefined)
|
|
72
|
+
return !message
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function onBlur(): void {
|
|
76
|
+
field?.setTouched(true)
|
|
77
|
+
validate()
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function clearError(): void {
|
|
81
|
+
field?.setError(undefined)
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function setDelegateMessage(msg: string): void {
|
|
85
|
+
const el = options.inputEl?.value
|
|
86
|
+
if (!el) return
|
|
87
|
+
el.setCustomValidity(msg)
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
field,
|
|
92
|
+
fieldValue,
|
|
93
|
+
hasServerError,
|
|
94
|
+
validate,
|
|
95
|
+
onBlur,
|
|
96
|
+
clearError,
|
|
97
|
+
setDelegateMessage,
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { CounterFn } from '@/types/utils.type'
|
|
2
|
+
import { computed, type Ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
export function useSelectCounter(
|
|
5
|
+
selectedCount: Ref<number>,
|
|
6
|
+
options: {
|
|
7
|
+
multiple?: Ref<boolean | undefined>
|
|
8
|
+
min?: Ref<number | undefined>
|
|
9
|
+
max?: Ref<number | undefined>
|
|
10
|
+
formatter?: Ref<CounterFn | undefined>
|
|
11
|
+
},
|
|
12
|
+
) {
|
|
13
|
+
const counterText = computed(() => {
|
|
14
|
+
if (!options.multiple?.value) {
|
|
15
|
+
return null
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (!options.min?.value && !options.max?.value) {
|
|
19
|
+
return null
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (options.formatter?.value) {
|
|
23
|
+
return options.formatter.value(selectedCount.value, options.min?.value, options.max?.value)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (options.max?.value) {
|
|
27
|
+
return `${selectedCount.value} / ${options.max.value}`
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return `${selectedCount.value}`
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
const counterColor = computed(() => {
|
|
34
|
+
if (options.max?.value && selectedCount.value > options.max.value) {
|
|
35
|
+
return 'text-error'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (options.min?.value && selectedCount.value < options.min.value) {
|
|
39
|
+
return 'text-warning'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return 'opacity-40'
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
const isAtMax = computed(() => {
|
|
46
|
+
if (!options.max?.value || !options.multiple?.value) {
|
|
47
|
+
return false
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return selectedCount.value >= options.max.value
|
|
51
|
+
})
|
|
52
|
+
|
|
53
|
+
return {
|
|
54
|
+
counterText,
|
|
55
|
+
counterColor,
|
|
56
|
+
isAtMax,
|
|
57
|
+
}
|
|
58
|
+
}
|