@poppy-ui/vue 0.5.6 → 0.5.7-beta.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/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-BEnfZApB.cjs +2 -0
- package/dist/Toast-BEnfZApB.cjs.map +1 -0
- package/dist/Toast-BWTVE5_U.js +62 -0
- package/dist/Toast-BWTVE5_U.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 +18 -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 +59 -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 +61 -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 +39 -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 +32 -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 +319 -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 +19 -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 +41 -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 +20 -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 +35 -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/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 +53 -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 +26 -0
- package/dist/components/data/form-field/FormField.d.ts.map +1 -0
- package/dist/components/data/form-field/form-field.context.d.ts +37 -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 +30 -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 +44 -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 +73 -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 +11 -0
- package/dist/components/data/public.d.ts.map +1 -0
- package/dist/components/data/public.es.js +1355 -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 +20 -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 +41 -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/rating/Rating.d.ts +23 -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 +45 -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 +48 -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 +60 -0
- package/dist/components/data/select/select.props.d.ts.map +1 -0
- package/dist/components/data/select/select.types.d.ts +11 -0
- package/dist/components/data/select/select.types.d.ts.map +1 -0
- package/dist/components/data/slider/Slider.d.ts +26 -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 +71 -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 +44 -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 +66 -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 +28 -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 +28 -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 +46 -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 +31 -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 +53 -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.props.d.ts +23 -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 +19 -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 +24 -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/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 +29 -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 +129 -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 +28 -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 +29 -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 +38 -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 +207 -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/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 +22 -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/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 +62 -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/public.d.ts +6 -0
- package/dist/components/navigation/public.d.ts.map +1 -0
- package/dist/components/navigation/public.es.js +128 -0
- package/dist/components/navigation/public.es.js.map +1 -0
- package/dist/components/navigation/public.types.d.ts +9 -0
- package/dist/components/navigation/public.types.d.ts.map +1 -0
- package/dist/components/navigation/public.umd.js +2 -0
- package/dist/components/navigation/public.umd.js.map +1 -0
- package/dist/composables/public.d.ts +4 -0
- package/dist/composables/public.d.ts.map +1 -0
- package/dist/composables/public.es.js +12 -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/favicon.svg +1 -0
- package/dist/icons.svg +24 -0
- package/dist/is-true-B9ixxcRp.js +8 -0
- package/dist/is-true-B9ixxcRp.js.map +1 -0
- package/dist/is-true-D7MXJ1b7.cjs +2 -0
- package/dist/is-true-D7MXJ1b7.cjs.map +1 -0
- package/dist/plugin-vue.d.ts +33 -0
- package/dist/plugin-vue.d.ts.map +1 -0
- package/dist/public-CsUi4LK8.cjs +2 -0
- package/dist/public-CsUi4LK8.cjs.map +1 -0
- package/dist/public-D8Z0iHnm.js +563 -0
- package/dist/public-D8Z0iHnm.js.map +1 -0
- package/dist/public.d.ts +9 -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/symbol-6E8gXxBa.cjs +2 -0
- package/dist/symbol-6E8gXxBa.cjs.map +1 -0
- package/dist/symbol-Dy7mXgB5.js +14 -0
- package/dist/symbol-Dy7mXgB5.js.map +1 -0
- package/dist/symbol.d.ts +6 -0
- package/dist/symbol.d.ts.map +1 -0
- package/dist/types/config.type.d.ts +85 -0
- package/dist/types/config.type.d.ts.map +1 -0
- package/dist/types/public.d.ts +4 -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 +6 -0
- package/dist/types/utils.type.d.ts.map +1 -0
- package/dist/use-component-config-DX0jSicI.cjs +2 -0
- package/dist/use-component-config-DX0jSicI.cjs.map +1 -0
- package/dist/use-component-config-DfXvZ0-o.js +20 -0
- package/dist/use-component-config-DfXvZ0-o.js.map +1 -0
- package/dist/use-form-field-CHsU-LtQ.js +57 -0
- package/dist/use-form-field-CHsU-LtQ.js.map +1 -0
- package/dist/use-form-field-Zw9_0CVq.cjs +2 -0
- package/dist/use-form-field-Zw9_0CVq.cjs.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/is-true.d.ts +3 -0
- package/dist/utils/is-true.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/dist/vue.css +2 -0
- package/package.json +106 -56
- package/src/assets/hero.png +0 -0
- package/src/assets/vite.svg +1 -0
- package/src/assets/vue.svg +1 -0
- package/src/components/ClassWrapper.vue +42 -0
- package/src/components/actions/button/Button.story.vue +187 -0
- package/src/components/actions/button/Button.vue +103 -0
- package/src/components/actions/button/button.context.ts +3 -0
- package/src/components/actions/button/button.props.ts +67 -0
- package/src/components/actions/button/button.types.ts +7 -0
- package/src/components/actions/dropdown/Dropdown.story.vue +349 -0
- package/src/components/actions/dropdown/Dropdown.vue +219 -0
- package/src/components/actions/dropdown/dropdown.context.ts +3 -0
- package/src/components/actions/dropdown/dropdown.props.ts +67 -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 +284 -0
- package/src/components/actions/modal/Modal.vue +104 -0
- package/src/components/actions/modal/modal.context.ts +3 -0
- package/src/components/actions/modal/modal.props.ts +34 -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 +60 -0
- package/src/components/actions/swap/swap.context.ts +3 -0
- package/src/components/actions/swap/swap.props.ts +20 -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 +156 -0
- package/src/components/data/checkbox/Checkbox.vue +119 -0
- package/src/components/data/checkbox/checkbox.context.ts +3 -0
- package/src/components/data/checkbox/checkbox.props.ts +38 -0
- package/src/components/data/checkbox/checkbox.types.ts +5 -0
- package/src/components/data/form/Form.story.vue +144 -0
- package/src/components/data/form/Form.vue +222 -0
- package/src/components/data/form/form.context.ts +76 -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 +133 -0
- package/src/components/data/form-field/form-field.context.ts +51 -0
- package/src/components/data/form-field/form-field.props.ts +34 -0
- package/src/components/data/form-field/form-field.types.ts +1 -0
- package/src/components/data/input/Input.story.vue +219 -0
- package/src/components/data/input/Input.vue +196 -0
- package/src/components/data/input/input.context.ts +3 -0
- package/src/components/data/input/input.props.ts +83 -0
- package/src/components/data/input/input.types.ts +10 -0
- package/src/components/data/public.ts +10 -0
- package/src/components/data/public.types.ts +30 -0
- package/src/components/data/radio/Radio.story.vue +158 -0
- package/src/components/data/radio/Radio.vue +105 -0
- package/src/components/data/radio/radio.context.ts +3 -0
- package/src/components/data/radio/radio.props.ts +46 -0
- package/src/components/data/radio/radio.types.ts +5 -0
- package/src/components/data/rating/Rating.story.vue +150 -0
- package/src/components/data/rating/Rating.vue +178 -0
- package/src/components/data/rating/rating.context.ts +3 -0
- package/src/components/data/rating/rating.props.ts +51 -0
- package/src/components/data/rating/rating.types.ts +8 -0
- package/src/components/data/select/Select.story.vue +221 -0
- package/src/components/data/select/Select.vue +329 -0
- package/src/components/data/select/select.context.ts +3 -0
- package/src/components/data/select/select.props.ts +65 -0
- package/src/components/data/select/select.types.ts +13 -0
- package/src/components/data/slider/Slider.story.vue +276 -0
- package/src/components/data/slider/Slider.vue +772 -0
- package/src/components/data/slider/slider.context.ts +3 -0
- package/src/components/data/slider/slider.props.ts +84 -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 +179 -0
- package/src/components/data/textarea/textarea.context.ts +3 -0
- package/src/components/data/textarea/textarea.props.ts +75 -0
- package/src/components/data/textarea/textarea.types.ts +7 -0
- package/src/components/data/toggle/Toggle.story.vue +146 -0
- package/src/components/data/toggle/Toggle.vue +115 -0
- package/src/components/data/toggle/toggle.context.ts +3 -0
- package/src/components/data/toggle/toggle.props.ts +30 -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 +58 -0
- package/src/components/display/avatar/avatar.context.ts +3 -0
- package/src/components/display/avatar/avatar.props.ts +50 -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 +308 -0
- package/src/components/display/card/Card.vue +41 -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 +34 -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 +157 -0
- package/src/components/display/carousel/carousel.context.ts +3 -0
- package/src/components/display/carousel/carousel.props.ts +59 -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 +284 -0
- package/src/components/display/countdown/Countdown.vue +111 -0
- package/src/components/display/countdown/countdown.props.ts +24 -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 +18 -0
- package/src/components/display/public.types.ts +34 -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 +37 -0
- package/src/components/feedback/progress/progress.context.ts +3 -0
- package/src/components/feedback/progress/progress.props.ts +32 -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 +91 -0
- package/src/components/layout/drawer/drawer.context.ts +3 -0
- package/src/components/layout/drawer/drawer.props.ts +31 -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 +44 -0
- package/src/components/layout/indicator/indicator.context.ts +3 -0
- package/src/components/layout/indicator/indicator.props.ts +31 -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 +50 -0
- package/src/components/layout/mask/mask.context.ts +3 -0
- package/src/components/layout/mask/mask.props.ts +40 -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/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 +58 -0
- package/src/components/navigation/link/link.context.ts +3 -0
- package/src/components/navigation/link/link.props.ts +24 -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 +104 -0
- package/src/components/navigation/menu/menu.context.ts +4 -0
- package/src/components/navigation/menu/menu.props.ts +70 -0
- package/src/components/navigation/menu/menu.types.ts +4 -0
- package/src/components/navigation/public.ts +5 -0
- package/src/components/navigation/public.types.ts +12 -0
- package/src/composables/public.ts +3 -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 +84 -0
- package/src/composables/use-select-counter.ts +59 -0
- package/src/composables/use-toast.ts +47 -0
- package/src/histoire.css +8 -0
- package/src/plugin-vue.ts +53 -0
- package/src/public.ts +9 -0
- package/src/stories/Configuration.story.md +55 -0
- package/src/style.css +6 -0
- package/src/symbol.ts +18 -0
- package/src/types/config.type.ts +96 -0
- package/src/types/public.ts +3 -0
- package/src/types/size.type.ts +1 -0
- package/src/types/utils.type.ts +7 -0
- package/src/utils/build-class.util.ts +38 -0
- package/src/utils/get-validation-message.ts +61 -0
- package/src/utils/is-true.ts +12 -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
- package/css/core.css +0 -1
- package/css/core.css.map +0 -1
- package/css/global.bundle.css +0 -1
- package/css/global.bundle.css.map +0 -1
- package/css/normalize.css +0 -1
- package/css/normalize.css.map +0 -1
- package/css/poppy.bundle.css +0 -1
- package/css/poppy.bundle.css.map +0 -1
- package/css/structure.css +0 -1
- package/css/structure.css.map +0 -1
- package/css/themes/dark.always.css +0 -1
- package/css/themes/dark.always.css.map +0 -1
- package/css/themes/dark.class.css +0 -1
- package/css/themes/dark.class.css.map +0 -1
- package/css/themes/dark.system.css +0 -1
- package/css/themes/dark.system.css.map +0 -1
- package/css/themes/dark.theme.css +0 -1
- package/css/themes/dark.theme.css.map +0 -1
- package/css/themes/light.always.css +0 -1
- package/css/themes/light.always.css.map +0 -1
- package/css/themes/light.class.css +0 -1
- package/css/themes/light.class.css.map +0 -1
- package/css/themes/light.system.css +0 -1
- package/css/themes/light.system.css.map +0 -1
- package/css/themes/light.theme.css +0 -1
- package/css/themes/light.theme.css.map +0 -1
- package/dist/index.js +0 -448
- package/dist/index.js.map +0 -1
- package/dist/types/generated/components.d.ts +0 -38
- package/dist/types/generated/vue-component-lib/utils.d.ts +0 -16
- package/dist/types/index.d.ts +0 -6
- package/dist/types/plugin.d.ts +0 -3
- package/dist/vetur/attributes.json +0 -1392
- package/dist/vetur/tags.json +0 -376
- package/dist/web-types.json +0 -2940
- package/readme.md +0 -39
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { BarChart, Home, Inbox, Info, Settings } from '@lucide/vue'
|
|
3
|
+
import Menu from './Menu.vue'
|
|
4
|
+
import MenuItem from './MenuItem.vue'
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<Story group="components" title="Navigation/Menu" auto-props-disabled>
|
|
9
|
+
|
|
10
|
+
<Variant title="Default">
|
|
11
|
+
<template #source>
|
|
12
|
+
<textarea v-pre>
|
|
13
|
+
<Menu class="bg-base-200 w-56">
|
|
14
|
+
<MenuItem to="/">Home</MenuItem>
|
|
15
|
+
<MenuItem to="/inbox">Inbox</MenuItem>
|
|
16
|
+
<MenuItem to="/settings">Settings</MenuItem>
|
|
17
|
+
</Menu>
|
|
18
|
+
</textarea>
|
|
19
|
+
</template>
|
|
20
|
+
<Menu class="bg-base-200 w-56">
|
|
21
|
+
<MenuItem to="#">Home</MenuItem>
|
|
22
|
+
<MenuItem to="#">Inbox</MenuItem>
|
|
23
|
+
<MenuItem to="#">Settings</MenuItem>
|
|
24
|
+
</Menu>
|
|
25
|
+
</Variant>
|
|
26
|
+
|
|
27
|
+
<Variant title="With icons">
|
|
28
|
+
<template #source>
|
|
29
|
+
<textarea v-pre>
|
|
30
|
+
<Menu class="bg-base-200 w-56">
|
|
31
|
+
<MenuItem :icon="Home" to="/">Home</MenuItem>
|
|
32
|
+
<MenuItem :icon="Inbox" to="/inbox">Inbox</MenuItem>
|
|
33
|
+
<MenuItem :icon="Settings" to="/settings">Settings</MenuItem>
|
|
34
|
+
</Menu>
|
|
35
|
+
</textarea>
|
|
36
|
+
</template>
|
|
37
|
+
<Menu class="bg-base-200 w-56">
|
|
38
|
+
<MenuItem :icon="Home" to="#">Home</MenuItem>
|
|
39
|
+
<MenuItem :icon="Inbox" to="#">Inbox</MenuItem>
|
|
40
|
+
<MenuItem :icon="Settings" to="#">Settings</MenuItem>
|
|
41
|
+
</Menu>
|
|
42
|
+
</Variant>
|
|
43
|
+
|
|
44
|
+
<Variant title="With title">
|
|
45
|
+
<template #source>
|
|
46
|
+
<textarea v-pre>
|
|
47
|
+
<Menu class="bg-base-200 w-56">
|
|
48
|
+
<MenuItem title>Navigation</MenuItem>
|
|
49
|
+
<MenuItem :icon="Home" to="/">Home</MenuItem>
|
|
50
|
+
<MenuItem :icon="Inbox" to="/inbox">Inbox</MenuItem>
|
|
51
|
+
<MenuItem title>Account</MenuItem>
|
|
52
|
+
<MenuItem :icon="Settings" to="/settings">Settings</MenuItem>
|
|
53
|
+
</Menu>
|
|
54
|
+
</textarea>
|
|
55
|
+
</template>
|
|
56
|
+
<Menu class="bg-base-200 w-56">
|
|
57
|
+
<MenuItem title>Navigation</MenuItem>
|
|
58
|
+
<MenuItem :icon="Home" to="#">Home</MenuItem>
|
|
59
|
+
<MenuItem :icon="Inbox" to="#">Inbox</MenuItem>
|
|
60
|
+
<MenuItem title>Account</MenuItem>
|
|
61
|
+
<MenuItem :icon="Settings" to="#">Settings</MenuItem>
|
|
62
|
+
</Menu>
|
|
63
|
+
</Variant>
|
|
64
|
+
|
|
65
|
+
<Variant title="With badge">
|
|
66
|
+
<template #source>
|
|
67
|
+
<textarea v-pre>
|
|
68
|
+
<Menu class="bg-base-200 w-56">
|
|
69
|
+
<MenuItem :icon="Home" to="/">Home</MenuItem>
|
|
70
|
+
<MenuItem :icon="Inbox" to="/inbox">
|
|
71
|
+
Inbox
|
|
72
|
+
<template #badge>
|
|
73
|
+
<span class="badge badge-xs badge-warning">99+</span>
|
|
74
|
+
</template>
|
|
75
|
+
</MenuItem>
|
|
76
|
+
<MenuItem :icon="BarChart" to="/stats">
|
|
77
|
+
Stats
|
|
78
|
+
<template #badge>
|
|
79
|
+
<span class="badge badge-xs badge-info" />
|
|
80
|
+
</template>
|
|
81
|
+
</MenuItem>
|
|
82
|
+
</Menu>
|
|
83
|
+
</textarea>
|
|
84
|
+
</template>
|
|
85
|
+
<Menu class="bg-base-200 w-56">
|
|
86
|
+
<MenuItem :icon="Home" to="#">Home</MenuItem>
|
|
87
|
+
<MenuItem :icon="Inbox" to="#">
|
|
88
|
+
Inbox
|
|
89
|
+
<template #badge>
|
|
90
|
+
<span class="badge badge-xs badge-warning">99+</span>
|
|
91
|
+
</template>
|
|
92
|
+
</MenuItem>
|
|
93
|
+
<MenuItem :icon="BarChart" to="#">
|
|
94
|
+
Stats
|
|
95
|
+
<template #badge>
|
|
96
|
+
<span class="badge badge-xs badge-info" />
|
|
97
|
+
</template>
|
|
98
|
+
</MenuItem>
|
|
99
|
+
</Menu>
|
|
100
|
+
</Variant>
|
|
101
|
+
|
|
102
|
+
<Variant title="With static submenu">
|
|
103
|
+
<template #source>
|
|
104
|
+
<textarea v-pre>
|
|
105
|
+
<Menu class="bg-base-200 w-56">
|
|
106
|
+
<MenuItem to="/">Home</MenuItem>
|
|
107
|
+
<MenuItem to="/parent">
|
|
108
|
+
Parent
|
|
109
|
+
<template #submenu>
|
|
110
|
+
<MenuItem to="/parent/sub-1">Submenu 1</MenuItem>
|
|
111
|
+
<MenuItem to="/parent/sub-2">Submenu 2</MenuItem>
|
|
112
|
+
</template>
|
|
113
|
+
</MenuItem>
|
|
114
|
+
<MenuItem to="/other">Other</MenuItem>
|
|
115
|
+
</Menu>
|
|
116
|
+
</textarea>
|
|
117
|
+
</template>
|
|
118
|
+
<Menu class="bg-base-200 w-56">
|
|
119
|
+
<MenuItem to="#">Home</MenuItem>
|
|
120
|
+
<MenuItem to="#">
|
|
121
|
+
Parent
|
|
122
|
+
<template #submenu>
|
|
123
|
+
<MenuItem to="#">Submenu 1</MenuItem>
|
|
124
|
+
<MenuItem to="#">Submenu 2</MenuItem>
|
|
125
|
+
</template>
|
|
126
|
+
</MenuItem>
|
|
127
|
+
<MenuItem to="#">Other</MenuItem>
|
|
128
|
+
</Menu>
|
|
129
|
+
</Variant>
|
|
130
|
+
|
|
131
|
+
<Variant title="With collapsible submenu">
|
|
132
|
+
<template #source>
|
|
133
|
+
<textarea v-pre>
|
|
134
|
+
<Menu class="bg-base-200 w-56">
|
|
135
|
+
<MenuItem to="/">Home</MenuItem>
|
|
136
|
+
<MenuItem collapsible>
|
|
137
|
+
Parent
|
|
138
|
+
<template #submenu>
|
|
139
|
+
<MenuItem to="/parent/sub-1">Submenu 1</MenuItem>
|
|
140
|
+
<MenuItem to="/parent/sub-2">Submenu 2</MenuItem>
|
|
141
|
+
<MenuItem collapsible>
|
|
142
|
+
Nested parent
|
|
143
|
+
<template #submenu>
|
|
144
|
+
<MenuItem to="/parent/sub-2/a">Submenu A</MenuItem>
|
|
145
|
+
<MenuItem to="/parent/sub-2/b">Submenu B</MenuItem>
|
|
146
|
+
</template>
|
|
147
|
+
</MenuItem>
|
|
148
|
+
</template>
|
|
149
|
+
</MenuItem>
|
|
150
|
+
<MenuItem to="/other">Other</MenuItem>
|
|
151
|
+
</Menu>
|
|
152
|
+
</textarea>
|
|
153
|
+
</template>
|
|
154
|
+
<Menu class="bg-base-200 w-56">
|
|
155
|
+
<MenuItem to="#">Home</MenuItem>
|
|
156
|
+
<MenuItem collapsible>
|
|
157
|
+
Parent
|
|
158
|
+
<template #submenu>
|
|
159
|
+
<MenuItem to="#">Submenu 1</MenuItem>
|
|
160
|
+
<MenuItem to="#">Submenu 2</MenuItem>
|
|
161
|
+
<MenuItem collapsible>
|
|
162
|
+
Nested parent
|
|
163
|
+
<template #submenu>
|
|
164
|
+
<MenuItem to="#">Submenu A</MenuItem>
|
|
165
|
+
<MenuItem to="#">Submenu B</MenuItem>
|
|
166
|
+
</template>
|
|
167
|
+
</MenuItem>
|
|
168
|
+
</template>
|
|
169
|
+
</MenuItem>
|
|
170
|
+
<MenuItem to="#">Other</MenuItem>
|
|
171
|
+
</Menu>
|
|
172
|
+
</Variant>
|
|
173
|
+
|
|
174
|
+
<Variant title="With disabled items">
|
|
175
|
+
<Menu class="bg-base-200 w-56">
|
|
176
|
+
<MenuItem to="#">Enabled</MenuItem>
|
|
177
|
+
<MenuItem disabled>Disabled</MenuItem>
|
|
178
|
+
<MenuItem to="#">Enabled</MenuItem>
|
|
179
|
+
</Menu>
|
|
180
|
+
</Variant>
|
|
181
|
+
|
|
182
|
+
<Variant title="Horizontal">
|
|
183
|
+
<template #source>
|
|
184
|
+
<textarea v-pre>
|
|
185
|
+
<Menu direction="horizontal" class="bg-base-200">
|
|
186
|
+
<MenuItem :icon="Home" to="/">Home</MenuItem>
|
|
187
|
+
<MenuItem :icon="Inbox" to="/inbox">Inbox</MenuItem>
|
|
188
|
+
<MenuItem :icon="Info" to="/about">About</MenuItem>
|
|
189
|
+
</Menu>
|
|
190
|
+
</textarea>
|
|
191
|
+
</template>
|
|
192
|
+
<Menu direction="horizontal" class="bg-base-200">
|
|
193
|
+
<MenuItem :icon="Home" to="#">Home</MenuItem>
|
|
194
|
+
<MenuItem :icon="Inbox" to="#">Inbox</MenuItem>
|
|
195
|
+
<MenuItem :icon="Info" to="#">About</MenuItem>
|
|
196
|
+
</Menu>
|
|
197
|
+
</Variant>
|
|
198
|
+
|
|
199
|
+
<Variant title="Sizes">
|
|
200
|
+
<div class="flex flex-col gap-4">
|
|
201
|
+
<Menu v-for="size in ['xs', 'sm', 'md', 'lg', 'xl']" :key="size" :size="size" class="bg-base-200 w-56">
|
|
202
|
+
<MenuItem to="#">Item 1</MenuItem>
|
|
203
|
+
<MenuItem to="#">Item 2</MenuItem>
|
|
204
|
+
</Menu>
|
|
205
|
+
</div>
|
|
206
|
+
</Variant>
|
|
207
|
+
|
|
208
|
+
</Story>
|
|
209
|
+
</template>
|
|
210
|
+
|
|
211
|
+
<docs lang="md">
|
|
212
|
+
# Menu
|
|
213
|
+
|
|
214
|
+
## Description
|
|
215
|
+
|
|
216
|
+
Displays a list of navigation links vertically or horizontally.
|
|
217
|
+
Supports icons, badges, titles, static submenus, and collapsible submenus.
|
|
218
|
+
|
|
219
|
+
## API
|
|
220
|
+
|
|
221
|
+
<details>
|
|
222
|
+
<summary>Menu</summary>
|
|
223
|
+
|
|
224
|
+
### Props
|
|
225
|
+
|
|
226
|
+
| Prop | Type | Default | Required | Configurable | Description |
|
|
227
|
+
|-------------|-----------------|--------------|----------|--------------------|-----------------------|
|
|
228
|
+
| `size` | `MenuSize` | `'md'` | :x: | :white_check_mark: | Size of the menu |
|
|
229
|
+
| `direction` | `MenuDirection` | `'vertical'` | :x: | :white_check_mark: | Direction of the menu |
|
|
230
|
+
|
|
231
|
+
</details>
|
|
232
|
+
|
|
233
|
+
<details>
|
|
234
|
+
<summary>MenuItem</summary>
|
|
235
|
+
|
|
236
|
+
### Props
|
|
237
|
+
|
|
238
|
+
| Prop | Type | Default | Required | Configurable | Description |
|
|
239
|
+
|---------------|--------------------|-------------|----------|--------------|------------------------------------------------------------------------|
|
|
240
|
+
| `icon` | `Component` | `undefined` | :x: | :x: | Icon component (e.g. Lucide icon) |
|
|
241
|
+
| `to` | `RouteLocationRaw` | `undefined` | :x: | :x: | Vue Router location. Absent = renders as `<a />` |
|
|
242
|
+
| `title` | `Booleanish` | `false` | :x: | :x: | Renders the item as a non-interactive section title |
|
|
243
|
+
| `active` | `Booleanish` | `false` | :x: | :x: | Forces the active state (auto-detected via `useLink` when `to` is set) |
|
|
244
|
+
| `disabled` | `Booleanish` | `false` | :x: | :x: | Disables the item |
|
|
245
|
+
| `collapsible` | `Booleanish` | `false` | :x: | :x: | Wraps `submenu` slot in `<details />` when true |
|
|
246
|
+
|
|
247
|
+
### Slots
|
|
248
|
+
|
|
249
|
+
| Slot | Description |
|
|
250
|
+
|-----------|------------------------------------------|
|
|
251
|
+
| `default` | Item label |
|
|
252
|
+
| `badge` | Optional badge displayed after the label |
|
|
253
|
+
| `submenu` | Nested `MenuItem` components |
|
|
254
|
+
|
|
255
|
+
</details>
|
|
256
|
+
|
|
257
|
+
## Notes
|
|
258
|
+
|
|
259
|
+
- `active` state is automatically detected via `useLink` (Vue Router) when `to` is provided.
|
|
260
|
+
- Without `to`, the item renders as a plain `<a />` tag.
|
|
261
|
+
- `collapsible` only takes effect when the `submenu` slot is populated.
|
|
262
|
+
- `<details />` collapsible is CSS-only, no JS required.
|
|
263
|
+
|
|
264
|
+
## Usage
|
|
265
|
+
```vue
|
|
266
|
+
<Menu size="md">
|
|
267
|
+
<MenuItem title>Navigation</MenuItem>
|
|
268
|
+
<MenuItem :icon="Home" to="/">Home</MenuItem>
|
|
269
|
+
<MenuItem :icon="Inbox" to="/inbox">
|
|
270
|
+
Inbox
|
|
271
|
+
<template #badge>
|
|
272
|
+
<span class="badge badge-xs badge-warning">99+</span>
|
|
273
|
+
</template>
|
|
274
|
+
</MenuItem>
|
|
275
|
+
<MenuItem collapsible>
|
|
276
|
+
Settings
|
|
277
|
+
<template #submenu>
|
|
278
|
+
<MenuItem to="/settings/profile">Profile</MenuItem>
|
|
279
|
+
<MenuItem to="/settings/security">Security</MenuItem>
|
|
280
|
+
</template>
|
|
281
|
+
</MenuItem>
|
|
282
|
+
</Menu>
|
|
283
|
+
```
|
|
284
|
+
</docs>
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { MENU_CONFIG } from './menu.context'
|
|
6
|
+
import type { MenuProps } from './menu.props'
|
|
7
|
+
import type { MenuDirection, MenuSize } from './menu.types'
|
|
8
|
+
|
|
9
|
+
const sizes: ComponentClass<'menu', MenuSize> = {
|
|
10
|
+
xs: 'menu-xs',
|
|
11
|
+
sm: 'menu-sm',
|
|
12
|
+
md: 'menu-md',
|
|
13
|
+
lg: 'menu-lg',
|
|
14
|
+
xl: 'menu-xl',
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const directions: ComponentClass<'menu', MenuDirection> = {
|
|
18
|
+
vertical: 'menu-vertical',
|
|
19
|
+
horizontal: 'menu-horizontal',
|
|
20
|
+
}
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<script setup lang="ts">
|
|
24
|
+
const props = defineProps<MenuProps>()
|
|
25
|
+
const config = useComponentConfig(MENU_CONFIG, props, {
|
|
26
|
+
size: 'md',
|
|
27
|
+
direction: 'vertical'
|
|
28
|
+
})
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<template>
|
|
32
|
+
<ul
|
|
33
|
+
class="menu"
|
|
34
|
+
:class="[
|
|
35
|
+
getClass(sizes, config.size),
|
|
36
|
+
getClass(directions, config.direction),
|
|
37
|
+
]"
|
|
38
|
+
>
|
|
39
|
+
<slot />
|
|
40
|
+
</ul>
|
|
41
|
+
</template>
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { useComponentConfig } from '@/composables/use-component-config'
|
|
3
|
+
import { isTrue } from '@/utils/is-true'
|
|
4
|
+
import { computed, useSlots } from 'vue'
|
|
5
|
+
import { RouterLink, useLink } from 'vue-router'
|
|
6
|
+
import { MENU_ITEM_CONFIG } from './menu.context'
|
|
7
|
+
import type { MenuItemProps } from './menu.props'
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<script setup lang="ts">
|
|
11
|
+
const props = defineProps<MenuItemProps>()
|
|
12
|
+
const config = useComponentConfig(MENU_ITEM_CONFIG, props, {})
|
|
13
|
+
|
|
14
|
+
const slots = useSlots()
|
|
15
|
+
|
|
16
|
+
const hasSubmenu = computed(() => !!slots.submenu)
|
|
17
|
+
const isTitle = computed(() => isTrue(props.title))
|
|
18
|
+
|
|
19
|
+
const tag = computed(() => {
|
|
20
|
+
if (!props.to) return 'a'
|
|
21
|
+
return props.to === '#' ? 'a' : RouterLink
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
const attr = computed(() => {
|
|
25
|
+
if (tag.value === 'a') return { href: props.to }
|
|
26
|
+
return { to: props.to }
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
const isActive = computed(() => {
|
|
30
|
+
if (isTrue(props.active)) return true
|
|
31
|
+
if (!props.to || props.to === '#') return false
|
|
32
|
+
const { isActive } = useLink({ to: computed(() => props.to!) })
|
|
33
|
+
return isActive.value
|
|
34
|
+
})
|
|
35
|
+
</script>
|
|
36
|
+
|
|
37
|
+
<template>
|
|
38
|
+
<!-- Title item (standalone) -->
|
|
39
|
+
<li v-if="isTitle && !hasSubmenu" class="menu-title inline-flex items-center gap-2">
|
|
40
|
+
<component :is="props.icon" v-if="props.icon" :size="14" />
|
|
41
|
+
<slot />
|
|
42
|
+
</li>
|
|
43
|
+
|
|
44
|
+
<!-- Title item as parent (with submenu): uses <h2> per DaisyUI spec -->
|
|
45
|
+
<template v-else-if="isTitle && hasSubmenu">
|
|
46
|
+
<h2 class="menu-title inline-flex items-center gap-2">
|
|
47
|
+
<component :is="props.icon" v-if="props.icon" :size="14" />
|
|
48
|
+
<slot />
|
|
49
|
+
</h2>
|
|
50
|
+
<ul>
|
|
51
|
+
<slot name="submenu" />
|
|
52
|
+
</ul>
|
|
53
|
+
</template>
|
|
54
|
+
|
|
55
|
+
<!-- Regular item -->
|
|
56
|
+
<li v-else :class="{
|
|
57
|
+
'menu-disabled': isTrue(config.disabled)
|
|
58
|
+
}">
|
|
59
|
+
|
|
60
|
+
<!-- With submenu + collapsible: <details>/<summary> -->
|
|
61
|
+
<template v-if="hasSubmenu && isTrue(config.collapsible)">
|
|
62
|
+
<details>
|
|
63
|
+
<summary>
|
|
64
|
+
<component :is="config.icon" v-if="config.icon" :size="16" />
|
|
65
|
+
<slot />
|
|
66
|
+
<slot name="badge" />
|
|
67
|
+
</summary>
|
|
68
|
+
<ul>
|
|
69
|
+
<slot name="submenu" />
|
|
70
|
+
</ul>
|
|
71
|
+
</details>
|
|
72
|
+
</template>
|
|
73
|
+
|
|
74
|
+
<!-- With submenu, static: label + nested <ul> -->
|
|
75
|
+
<template v-else-if="hasSubmenu">
|
|
76
|
+
<component
|
|
77
|
+
:is="tag"
|
|
78
|
+
v-bind="attr"
|
|
79
|
+
:class="isActive && 'menu-active'"
|
|
80
|
+
>
|
|
81
|
+
<component :is="config.icon" v-if="config.icon" :size="16" />
|
|
82
|
+
<slot />
|
|
83
|
+
<slot name="badge" />
|
|
84
|
+
</component>
|
|
85
|
+
<ul>
|
|
86
|
+
<slot name="submenu" />
|
|
87
|
+
</ul>
|
|
88
|
+
</template>
|
|
89
|
+
|
|
90
|
+
<!-- Leaf item -->
|
|
91
|
+
<template v-else>
|
|
92
|
+
<component
|
|
93
|
+
:is="tag"
|
|
94
|
+
v-bind="attr"
|
|
95
|
+
:class="isActive && 'menu-active'"
|
|
96
|
+
>
|
|
97
|
+
<component :is="config.icon" v-if="config.icon" :size="16" />
|
|
98
|
+
<slot />
|
|
99
|
+
<slot name="badge" />
|
|
100
|
+
</component>
|
|
101
|
+
</template>
|
|
102
|
+
|
|
103
|
+
</li>
|
|
104
|
+
</template>
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { Booleanish } from '@/types/utils.type'
|
|
2
|
+
import type { Component } from 'vue'
|
|
3
|
+
import type { RouteLocationRaw } from 'vue-router'
|
|
4
|
+
import type { MenuDirection, MenuSize } from './menu.types'
|
|
5
|
+
|
|
6
|
+
export interface MenuConfigurableProps {
|
|
7
|
+
/**
|
|
8
|
+
* Size of the menu.
|
|
9
|
+
*
|
|
10
|
+
* @default 'md'
|
|
11
|
+
*/
|
|
12
|
+
size?: MenuSize
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Direction of the menu.
|
|
16
|
+
*
|
|
17
|
+
* @default 'vertical'
|
|
18
|
+
*/
|
|
19
|
+
direction?: MenuDirection
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface MenuProps extends MenuConfigurableProps {}
|
|
23
|
+
|
|
24
|
+
// biome-ignore lint/suspicious/noEmptyInterface: Intentionally empty to allow future configurable props and global plugin configuration
|
|
25
|
+
export interface MenuItemConfigurableProps {}
|
|
26
|
+
|
|
27
|
+
export interface MenuItemProps extends MenuItemConfigurableProps {
|
|
28
|
+
/**
|
|
29
|
+
* Optional icon component to display before the label (e.g. Lucide icon).
|
|
30
|
+
*/
|
|
31
|
+
icon?: Component
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Navigation target (Vue Router location).
|
|
35
|
+
* When provided, renders as RouterLink.
|
|
36
|
+
*/
|
|
37
|
+
to?: RouteLocationRaw
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Renders the item as a section title (non-interactive).
|
|
41
|
+
* Renders the item as a non-interactive section title (`menu-title`).
|
|
42
|
+
*
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
title?: Booleanish
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Disables the item.
|
|
49
|
+
*
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
disabled?: Booleanish
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Forces the active state on the item.
|
|
56
|
+
* When `to` is provided, the active state is automatically detected via `useLink`.
|
|
57
|
+
* Use this prop to manually control the active state when no `to` is provided.
|
|
58
|
+
*
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
active?: Booleanish
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* When true and a `submenu` slot is provided, wraps the submenu
|
|
65
|
+
* in a `<details>/<summary>` for native collapsible behavior.
|
|
66
|
+
*
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
collapsible?: Booleanish
|
|
70
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Breadcrumbs } from './breadcrumbs/Breadcrumbs.vue'
|
|
2
|
+
export { default as Dock } from './dock/Dock.vue'
|
|
3
|
+
export { default as DockItem } from './dock/DockItem.vue'
|
|
4
|
+
export { default as Link } from './link/Link.vue'
|
|
5
|
+
export { default as Menu } from './menu/Menu.vue'
|
|
@@ -0,0 +1,12 @@
|
|
|
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'
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { COMPONENT_SIZE } from '@/symbol'
|
|
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,84 @@
|
|
|
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, 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
|
+
const fieldValue = computed<T | undefined>(() => field?.value.value as T | undefined)
|
|
44
|
+
|
|
45
|
+
const hasServerError = computed<boolean>(() => {
|
|
46
|
+
if (!field) return false
|
|
47
|
+
const state = field.state.value
|
|
48
|
+
return state.hasError && !state.isDirty
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
function validate(): boolean {
|
|
52
|
+
const el = options.inputEl?.value
|
|
53
|
+
if (!el || !field) return true
|
|
54
|
+
|
|
55
|
+
const message = getValidationMessage(el, t)
|
|
56
|
+
field.setError(message ?? undefined)
|
|
57
|
+
return !message
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function onBlur(): void {
|
|
61
|
+
field?.setTouched(true)
|
|
62
|
+
validate()
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function clearError(): void {
|
|
66
|
+
field?.setError(undefined)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function setDelegateMessage(msg: string): void {
|
|
70
|
+
const el = options.inputEl?.value
|
|
71
|
+
if (!el) return
|
|
72
|
+
el.setCustomValidity(msg)
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
field,
|
|
77
|
+
fieldValue,
|
|
78
|
+
hasServerError,
|
|
79
|
+
validate,
|
|
80
|
+
onBlur,
|
|
81
|
+
clearError,
|
|
82
|
+
setDelegateMessage,
|
|
83
|
+
}
|
|
84
|
+
}
|