@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,37 @@
|
|
|
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 { isTrue } from '@/utils/is-true'
|
|
6
|
+
import { computed } from 'vue'
|
|
7
|
+
import { PROGRESS_CONFIG } from './progress.context'
|
|
8
|
+
import type { ProgressProps } from './progress.props'
|
|
9
|
+
import type { ProgressColor } from './progress.types'
|
|
10
|
+
|
|
11
|
+
const colors: ComponentClass<'progress', ProgressColor> = {
|
|
12
|
+
neutral: 'progress-neutral',
|
|
13
|
+
primary: 'progress-primary',
|
|
14
|
+
secondary: 'progress-secondary',
|
|
15
|
+
accent: 'progress-accent',
|
|
16
|
+
info: 'progress-info',
|
|
17
|
+
success: 'progress-success',
|
|
18
|
+
warning: 'progress-warning',
|
|
19
|
+
error: 'progress-error',
|
|
20
|
+
}
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<script setup lang="ts">
|
|
24
|
+
const props = defineProps<ProgressProps>()
|
|
25
|
+
const config = useComponentConfig(PROGRESS_CONFIG, props, { max: 100 })
|
|
26
|
+
|
|
27
|
+
const isIndeterminate = computed(() => isTrue(props.indeterminate) || props.value === undefined)
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<template>
|
|
31
|
+
<progress
|
|
32
|
+
class="progress"
|
|
33
|
+
:class="getClass(colors, config.color)"
|
|
34
|
+
:value="isIndeterminate ? undefined : props.value"
|
|
35
|
+
:max="isIndeterminate ? undefined : config.max"
|
|
36
|
+
/>
|
|
37
|
+
</template>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Booleanish } from '@/types/utils.type'
|
|
2
|
+
import type { ProgressColor } from './progress.types'
|
|
3
|
+
|
|
4
|
+
export interface ProgressConfigurableProps {
|
|
5
|
+
/**
|
|
6
|
+
* Color of the progress bar.
|
|
7
|
+
*/
|
|
8
|
+
color?: ProgressColor
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface ProgressProps extends ProgressConfigurableProps {
|
|
12
|
+
/**
|
|
13
|
+
* Current value of the progress bar.
|
|
14
|
+
* Omit or set to `undefined` for indeterminate state.
|
|
15
|
+
*/
|
|
16
|
+
value?: number
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Maximum value of the progress bar.
|
|
20
|
+
*
|
|
21
|
+
* @default 100
|
|
22
|
+
*/
|
|
23
|
+
max?: number
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* When true, renders the progress bar in an indeterminate (animated) state.
|
|
27
|
+
* Takes precedence over `value`.
|
|
28
|
+
*
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
indeterminate?: Booleanish
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ProgressColor = 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error'
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Alert } from './alert/Alert.vue'
|
|
2
|
+
export { default as Loading } from './loading/Loading.vue'
|
|
3
|
+
export { default as Progress } from './progress/Progress.vue'
|
|
4
|
+
export { default as Toast } from './toast/Toast.vue'
|
|
5
|
+
export { default as Tooltip } from './tooltip/Tooltip.vue'
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Alert
|
|
2
|
+
export type { AlertProps } from './alert/alert.props'
|
|
3
|
+
export * from './alert/alert.types'
|
|
4
|
+
// Loading
|
|
5
|
+
export type { LoadingProps } from './loading/loading.props'
|
|
6
|
+
export * from './loading/loading.types'
|
|
7
|
+
// Progress
|
|
8
|
+
export type { ProgressProps } from './progress/progress.props'
|
|
9
|
+
export * from './progress/progress.types'
|
|
10
|
+
// Radial Progress
|
|
11
|
+
export type { RadialProgressProps } from './radial-progress/radial-progress.props'
|
|
12
|
+
export * from './radial-progress/radial-progress.types'
|
|
13
|
+
// Toast
|
|
14
|
+
export type { ToastProps } from './toast/toast.props'
|
|
15
|
+
export * from './toast/toast.types'
|
|
16
|
+
// Tooltip
|
|
17
|
+
export type { TooltipProps } from './tooltip/tooltip.props'
|
|
18
|
+
export * from './tooltip/tooltip.types'
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { reactive } from 'vue'
|
|
3
|
+
import RadialProgress from './RadialProgress.vue'
|
|
4
|
+
import type { RadialProgressProps } from './radial-progress.props'
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<script setup lang="ts">
|
|
8
|
+
const state = reactive<RadialProgressProps>({
|
|
9
|
+
value: 70,
|
|
10
|
+
color: undefined,
|
|
11
|
+
size: undefined,
|
|
12
|
+
thickness: undefined,
|
|
13
|
+
})
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<Story group="components" title="Feedback/RadialProgress" auto-props-disabled>
|
|
18
|
+
|
|
19
|
+
<Variant title="Default">
|
|
20
|
+
<template #controls>
|
|
21
|
+
<HstSelect
|
|
22
|
+
v-model="state.color"
|
|
23
|
+
title="Color"
|
|
24
|
+
:options="[
|
|
25
|
+
{ label: '-- default --', value: undefined },
|
|
26
|
+
'neutral', 'primary', 'secondary', 'accent',
|
|
27
|
+
'info', 'success', 'warning', 'error',
|
|
28
|
+
]"
|
|
29
|
+
/>
|
|
30
|
+
<HstSlider v-model="state.value" title="Value" :min="0" :max="100" />
|
|
31
|
+
</template>
|
|
32
|
+
<div class="bg-base-100 p-4 rounded-lg">
|
|
33
|
+
<RadialProgress v-bind="state" />
|
|
34
|
+
</div>
|
|
35
|
+
</Variant>
|
|
36
|
+
|
|
37
|
+
<Variant title="Colors">
|
|
38
|
+
<div class="flex flex-wrap gap-4 bg-base-100 p-4 rounded-lg">
|
|
39
|
+
<RadialProgress color="neutral" :value="70" />
|
|
40
|
+
<RadialProgress color="primary" :value="70" />
|
|
41
|
+
<RadialProgress color="secondary" :value="70" />
|
|
42
|
+
<RadialProgress color="accent" :value="70" />
|
|
43
|
+
<RadialProgress color="info" :value="70" />
|
|
44
|
+
<RadialProgress color="success" :value="70" />
|
|
45
|
+
<RadialProgress color="warning" :value="70" />
|
|
46
|
+
<RadialProgress color="error" :value="70" />
|
|
47
|
+
</div>
|
|
48
|
+
</Variant>
|
|
49
|
+
|
|
50
|
+
<Variant title="Different values">
|
|
51
|
+
<div class="flex flex-wrap gap-4 bg-base-100 p-4 rounded-lg">
|
|
52
|
+
<RadialProgress color="primary" :value="0" />
|
|
53
|
+
<RadialProgress color="primary" :value="25" />
|
|
54
|
+
<RadialProgress color="primary" :value="50" />
|
|
55
|
+
<RadialProgress color="primary" :value="75" />
|
|
56
|
+
<RadialProgress color="primary" :value="100" />
|
|
57
|
+
</div>
|
|
58
|
+
</Variant>
|
|
59
|
+
|
|
60
|
+
<Variant title="Custom size and thickness">
|
|
61
|
+
<div class="flex flex-wrap gap-4 bg-base-100 p-4 rounded-lg">
|
|
62
|
+
<RadialProgress color="primary" :value="70" size="8rem" thickness="2px" />
|
|
63
|
+
<RadialProgress color="primary" :value="70" size="8rem" thickness="1rem" />
|
|
64
|
+
<RadialProgress color="primary" :value="70" size="12rem" thickness="4px" />
|
|
65
|
+
</div>
|
|
66
|
+
</Variant>
|
|
67
|
+
|
|
68
|
+
<Variant title="Custom slot content">
|
|
69
|
+
<div class="flex flex-wrap gap-4 bg-base-100 p-4 rounded-lg">
|
|
70
|
+
<RadialProgress color="primary" :value="70">
|
|
71
|
+
<span class="text-xs font-bold">70%</span>
|
|
72
|
+
</RadialProgress>
|
|
73
|
+
<RadialProgress color="success" :value="100">
|
|
74
|
+
✓
|
|
75
|
+
</RadialProgress>
|
|
76
|
+
<RadialProgress color="warning" :value="30">
|
|
77
|
+
Low
|
|
78
|
+
</RadialProgress>
|
|
79
|
+
</div>
|
|
80
|
+
</Variant>
|
|
81
|
+
|
|
82
|
+
</Story>
|
|
83
|
+
</template>
|
|
84
|
+
|
|
85
|
+
<docs lang="md">
|
|
86
|
+
# RadialProgress
|
|
87
|
+
|
|
88
|
+
## Description
|
|
89
|
+
Radial progress bar used to show the completion of a task or the passing of time.
|
|
90
|
+
Renders as a `<div role="progressbar" />` for cross-browser compatibility (Firefox doesn't support pseudo-elements inside `<progress />`).
|
|
91
|
+
|
|
92
|
+
## Props
|
|
93
|
+
| Prop | Type | Default | Required | Configurable | Description |
|
|
94
|
+
|-------------|-----------------------|-------------|----------|--------------------|----------------------------------------------------|
|
|
95
|
+
| `value` | `number` | `0` | :x: | :x: | Current value (0–100) |
|
|
96
|
+
| `color` | `RadialProgressColor` | `undefined` | :x: | :white_check_mark: | Color of the progress arc (`text-{color}`) |
|
|
97
|
+
| `size` | `string` | `'5rem'` | :x: | :white_check_mark: | Size of the circle (any CSS value, e.g. `'8rem'`) |
|
|
98
|
+
| `thickness` | `string` | `'10%'` | :x: | :white_check_mark: | Thickness of the arc (any CSS value, e.g. `'2px'`) |
|
|
99
|
+
|
|
100
|
+
## Slots
|
|
101
|
+
| Slot | Description |
|
|
102
|
+
|-----------|---------------------------------------------------------|
|
|
103
|
+
| `default` | Content displayed at the center. Defaults to `{value}%` |
|
|
104
|
+
|
|
105
|
+
## Usage
|
|
106
|
+
```vue
|
|
107
|
+
<!-- Default -->
|
|
108
|
+
<RadialProgress color="primary" :value="70" />
|
|
109
|
+
|
|
110
|
+
<!-- Custom size & thickness -->
|
|
111
|
+
<RadialProgress color="success" :value="40" size="8rem" thickness="4px" />
|
|
112
|
+
|
|
113
|
+
<!-- Custom center content -->
|
|
114
|
+
<RadialProgress color="warning" :value="30">
|
|
115
|
+
Low
|
|
116
|
+
</RadialProgress>
|
|
117
|
+
```
|
|
118
|
+
</docs>
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { computed } from 'vue'
|
|
6
|
+
import { RADIAL_PROGRESS_CONFIG } from './radial-progress.context'
|
|
7
|
+
import type { RadialProgressProps } from './radial-progress.props'
|
|
8
|
+
import type { RadialProgressColor } from './radial-progress.types'
|
|
9
|
+
|
|
10
|
+
const colors: ComponentClass<'text', RadialProgressColor> = {
|
|
11
|
+
neutral: 'text-neutral',
|
|
12
|
+
primary: 'text-primary',
|
|
13
|
+
secondary: 'text-secondary',
|
|
14
|
+
accent: 'text-accent',
|
|
15
|
+
info: 'text-info',
|
|
16
|
+
success: 'text-success',
|
|
17
|
+
warning: 'text-warning',
|
|
18
|
+
error: 'text-error',
|
|
19
|
+
}
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<script setup lang="ts">
|
|
23
|
+
const props = defineProps<RadialProgressProps>()
|
|
24
|
+
const config = useComponentConfig(RADIAL_PROGRESS_CONFIG, props, {
|
|
25
|
+
value: 0,
|
|
26
|
+
size: '5rem',
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
const cssVars = computed(() => ({
|
|
30
|
+
'--value': config.value.value,
|
|
31
|
+
...(config.value.size && { '--size': config.value.size }),
|
|
32
|
+
...(config.value.thickness && { '--thickness': config.value.thickness }),
|
|
33
|
+
}))
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<template>
|
|
37
|
+
<div
|
|
38
|
+
class="radial-progress"
|
|
39
|
+
:class="getClass(colors, config.color)"
|
|
40
|
+
:style="cssVars"
|
|
41
|
+
:aria-valuenow="config.value"
|
|
42
|
+
role="progressbar"
|
|
43
|
+
>
|
|
44
|
+
<slot>{{ config.value }}%</slot>
|
|
45
|
+
</div>
|
|
46
|
+
</template>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { RadialProgressColor } from './radial-progress.types'
|
|
2
|
+
|
|
3
|
+
export interface RadialProgressConfigurableProps {
|
|
4
|
+
/**
|
|
5
|
+
* Color of the radial progress arc.
|
|
6
|
+
* Applied as a `text-{color}` Tailwind class.
|
|
7
|
+
*/
|
|
8
|
+
color?: RadialProgressColor
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Size of the radial progress circle.
|
|
12
|
+
* Accepts any valid CSS size value.
|
|
13
|
+
*
|
|
14
|
+
* @default '5rem'
|
|
15
|
+
*/
|
|
16
|
+
size?: string
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Thickness of the progress arc.
|
|
20
|
+
* Accepts any valid CSS size value. Defaults to 10% of `size`.
|
|
21
|
+
*
|
|
22
|
+
* @example '2px'
|
|
23
|
+
* @example '1rem'
|
|
24
|
+
*/
|
|
25
|
+
thickness?: string
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface RadialProgressProps extends RadialProgressConfigurableProps {
|
|
29
|
+
/**
|
|
30
|
+
* Current value of the radial progress (0–100).
|
|
31
|
+
*
|
|
32
|
+
* @default 0
|
|
33
|
+
*/
|
|
34
|
+
value?: number
|
|
35
|
+
}
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import Button from '@/components/actions/button/Button.vue'
|
|
3
|
+
import Alert from '@/components/feedback/alert/Alert.vue'
|
|
4
|
+
import type { ToastItem } from '@/composables/use-toast.ts'
|
|
5
|
+
import { computed, provide, reactive, ref } from 'vue'
|
|
6
|
+
import Toast from './Toast.vue'
|
|
7
|
+
import { TOAST_CONTEXT_KEY } from './toast.context'
|
|
8
|
+
import type { ToastProps } from './toast.props'
|
|
9
|
+
import type { ToastAlign, ToastSide } from './toast.types'
|
|
10
|
+
|
|
11
|
+
const state = reactive<ToastProps>({
|
|
12
|
+
align: 'end',
|
|
13
|
+
side: 'bottom',
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
// ── Toast state ───────────────────────────────────────────────────────────────
|
|
17
|
+
|
|
18
|
+
const toasts = ref<ToastItem[]>([])
|
|
19
|
+
let nextId = 0
|
|
20
|
+
|
|
21
|
+
function push(message: string, options?: Partial<Omit<ToastItem, 'id' | 'message'>>) {
|
|
22
|
+
const duration = options?.duration ?? 3000
|
|
23
|
+
const item: ToastItem = { id: nextId++, message, duration, ...options }
|
|
24
|
+
toasts.value.push(item)
|
|
25
|
+
if (item.duration) setTimeout(() => dismiss(item.id), item.duration)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function dismiss(id: number) {
|
|
29
|
+
toasts.value = toasts.value.filter(t => t.id !== id)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
provide(TOAST_CONTEXT_KEY, { push, dismiss })
|
|
33
|
+
|
|
34
|
+
// ── Positions variant ─────────────────────────────────────────────────────────
|
|
35
|
+
|
|
36
|
+
type PositionToast = ToastItem & { align: ToastAlign; side: ToastSide }
|
|
37
|
+
|
|
38
|
+
const positionToasts = ref<PositionToast[]>([])
|
|
39
|
+
let posNextId = 0
|
|
40
|
+
|
|
41
|
+
const positions: { align: ToastAlign; side: ToastSide; label: string }[] = [
|
|
42
|
+
{ align: 'start', side: 'top', label: 'top start' },
|
|
43
|
+
{ align: 'center', side: 'top', label: 'top center' },
|
|
44
|
+
{ align: 'end', side: 'top', label: 'top end' },
|
|
45
|
+
{ align: 'start', side: 'middle', label: 'middle start' },
|
|
46
|
+
{ align: 'center', side: 'middle', label: 'middle center' },
|
|
47
|
+
{ align: 'end', side: 'middle', label: 'middle end' },
|
|
48
|
+
{ align: 'start', side: 'bottom', label: 'bottom start' },
|
|
49
|
+
{ align: 'center', side: 'bottom', label: 'bottom center' },
|
|
50
|
+
{ align: 'end', side: 'bottom', label: 'bottom end' },
|
|
51
|
+
]
|
|
52
|
+
|
|
53
|
+
function pushAt(align: ToastAlign, side: ToastSide) {
|
|
54
|
+
const item: PositionToast = { id: posNextId++, message: `${align} · ${side}`, duration: 3000, align, side }
|
|
55
|
+
positionToasts.value.push(item)
|
|
56
|
+
setTimeout(() => {
|
|
57
|
+
positionToasts.value = positionToasts.value.filter(t => t.id !== item.id)
|
|
58
|
+
}, 3000)
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const positionGroups = computed(() => {
|
|
62
|
+
const map = new Map<string, { align: ToastAlign; side: ToastSide; toasts: PositionToast[] }>()
|
|
63
|
+
for (const toast of positionToasts.value) {
|
|
64
|
+
const key = `${toast.align}-${toast.side}`
|
|
65
|
+
if (!map.has(key)) map.set(key, { align: toast.align, side: toast.side, toasts: [] })
|
|
66
|
+
map.get(key)?.toasts.push(toast)
|
|
67
|
+
}
|
|
68
|
+
return [...map.values()]
|
|
69
|
+
})
|
|
70
|
+
</script>
|
|
71
|
+
|
|
72
|
+
<template>
|
|
73
|
+
<Story group="components" title="Feedback/Toast" auto-props-disabled>
|
|
74
|
+
<template #default>
|
|
75
|
+
|
|
76
|
+
<Variant title="Default">
|
|
77
|
+
<template #controls>
|
|
78
|
+
<HstSelect title="Align" v-model="state.align" :options="['start', 'center', 'end']" />
|
|
79
|
+
<HstSelect title="Side" v-model="state.side" :options="['top', 'middle', 'bottom']" />
|
|
80
|
+
</template>
|
|
81
|
+
|
|
82
|
+
<template #source>
|
|
83
|
+
<textarea v-pre>
|
|
84
|
+
<Toast :align="state.align" :side="state.side" class="z-50">
|
|
85
|
+
<Alert
|
|
86
|
+
v-for="toast in toasts"
|
|
87
|
+
:key="toast.id"
|
|
88
|
+
:color="toast.color"
|
|
89
|
+
class="cursor-pointer"
|
|
90
|
+
@click="dismiss(toast.id)"
|
|
91
|
+
>
|
|
92
|
+
{{ toast.message }}
|
|
93
|
+
</Alert>
|
|
94
|
+
</Toast>
|
|
95
|
+
</textarea>
|
|
96
|
+
</template>
|
|
97
|
+
|
|
98
|
+
<div class="toast-story toast-story--col">
|
|
99
|
+
<p class="toast-story--hint">
|
|
100
|
+
Toasts are teleported to <code><body></code> — change align/side to see them move.
|
|
101
|
+
</p>
|
|
102
|
+
<div class="toast-story--row">
|
|
103
|
+
<Button color="primary" @click="push('Default toast message')">Push toast</Button>
|
|
104
|
+
<Button color="info" @click="push('Info message', { color: 'info' })">Info</Button>
|
|
105
|
+
<Button color="success" @click="push('Changes saved!', { color: 'success' })">Success</Button>
|
|
106
|
+
<Button color="warning" @click="push('Check your settings', { color: 'warning' })">Warning</Button>
|
|
107
|
+
<Button color="error" @click="push('Something went wrong', { color: 'error' })">Error</Button>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
|
|
111
|
+
<Teleport to="body">
|
|
112
|
+
<Toast v-bind="state" class="z-50">
|
|
113
|
+
<Alert
|
|
114
|
+
v-for="toast in toasts"
|
|
115
|
+
:key="toast.id"
|
|
116
|
+
:color="toast.color"
|
|
117
|
+
class="cursor-pointer"
|
|
118
|
+
@click="dismiss(toast.id)"
|
|
119
|
+
>
|
|
120
|
+
{{ toast.message }}
|
|
121
|
+
</Alert>
|
|
122
|
+
</Toast>
|
|
123
|
+
</Teleport>
|
|
124
|
+
</Variant>
|
|
125
|
+
|
|
126
|
+
<Variant title="Positions">
|
|
127
|
+
<div class="toast-story toast-story--col">
|
|
128
|
+
<p class="toast-story--hint">Click a button to see a toast appear at that position.</p>
|
|
129
|
+
<div class="toast-story--grid">
|
|
130
|
+
<Button
|
|
131
|
+
v-for="pos in positions"
|
|
132
|
+
:key="`${pos.align}-${pos.side}`"
|
|
133
|
+
size="sm"
|
|
134
|
+
variant="outline"
|
|
135
|
+
@click="pushAt(pos.align, pos.side)"
|
|
136
|
+
>
|
|
137
|
+
{{ pos.label }}
|
|
138
|
+
</Button>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
|
|
142
|
+
<Teleport to="body">
|
|
143
|
+
<Toast
|
|
144
|
+
v-for="group in positionGroups"
|
|
145
|
+
:key="`${group.align}-${group.side}`"
|
|
146
|
+
:align="group.align"
|
|
147
|
+
:side="group.side"
|
|
148
|
+
class="z-50"
|
|
149
|
+
>
|
|
150
|
+
<Alert
|
|
151
|
+
v-for="toast in group.toasts"
|
|
152
|
+
:key="toast.id"
|
|
153
|
+
:color="toast.color"
|
|
154
|
+
class="cursor-pointer"
|
|
155
|
+
@click="positionToasts = positionToasts.filter(t => t.id !== toast.id)"
|
|
156
|
+
>
|
|
157
|
+
{{ toast.message }}
|
|
158
|
+
</Alert>
|
|
159
|
+
</Toast>
|
|
160
|
+
</Teleport>
|
|
161
|
+
</Variant>
|
|
162
|
+
|
|
163
|
+
<Variant title="Duration">
|
|
164
|
+
<div class="toast-story toast-story--col">
|
|
165
|
+
<p class="toast-story--hint">
|
|
166
|
+
Each toast auto-dismisses after its <code>duration</code>.
|
|
167
|
+
Set to <code>0</code> to disable auto-dismiss — click to close manually.
|
|
168
|
+
</p>
|
|
169
|
+
<div class="toast-story--row">
|
|
170
|
+
<Button size="sm" @click="push('1 second', { duration: 1000, color: 'info' })">1s</Button>
|
|
171
|
+
<Button size="sm" @click="push('3 seconds (default)', { duration: 3000, color: 'success' })">3s</Button>
|
|
172
|
+
<Button size="sm" @click="push('5 seconds', { duration: 5000, color: 'warning' })">5s</Button>
|
|
173
|
+
<Button size="sm" @click="push('No auto-dismiss — click to close', { duration: 0, color: 'error' })">∞</Button>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
|
|
177
|
+
<Teleport to="body">
|
|
178
|
+
<Toast class="z-50">
|
|
179
|
+
<Alert
|
|
180
|
+
v-for="toast in toasts"
|
|
181
|
+
:key="toast.id"
|
|
182
|
+
:color="toast.color"
|
|
183
|
+
class="cursor-pointer"
|
|
184
|
+
@click="dismiss(toast.id)"
|
|
185
|
+
>
|
|
186
|
+
{{ toast.message }}
|
|
187
|
+
</Alert>
|
|
188
|
+
</Toast>
|
|
189
|
+
</Teleport>
|
|
190
|
+
</Variant>
|
|
191
|
+
|
|
192
|
+
<Variant title="PoppyApp — useToast()">
|
|
193
|
+
<template #source>
|
|
194
|
+
<textarea v-pre>
|
|
195
|
+
<!-- App.vue -->
|
|
196
|
+
<PoppyApp>
|
|
197
|
+
<MyLayout>
|
|
198
|
+
<RouterView />
|
|
199
|
+
</MyLayout>
|
|
200
|
+
</PoppyApp>
|
|
201
|
+
|
|
202
|
+
<!-- AnyComponent.vue -->
|
|
203
|
+
<script setup>
|
|
204
|
+
const { push } = useToast()
|
|
205
|
+
</script>
|
|
206
|
+
|
|
207
|
+
<Button @click="push('Done!', { color: 'success' })">Save</Button>
|
|
208
|
+
</textarea>
|
|
209
|
+
</template>
|
|
210
|
+
<div class="toast-story toast-story--col">
|
|
211
|
+
<p class="toast-story--hint">
|
|
212
|
+
In a real app, wrap your root with <code><PoppyApp></code>.
|
|
213
|
+
Any component in the tree can then call <code>useToast()</code> to push notifications.
|
|
214
|
+
</p>
|
|
215
|
+
|
|
216
|
+
<div class="toast-story--row">
|
|
217
|
+
<Button color="primary" @click="push('Pushed via useToast()!', { color: 'success' })">
|
|
218
|
+
Simulate useToast().push()
|
|
219
|
+
</Button>
|
|
220
|
+
</div>
|
|
221
|
+
</div>
|
|
222
|
+
|
|
223
|
+
<Teleport to="body">
|
|
224
|
+
<Toast class="z-50">
|
|
225
|
+
<Alert
|
|
226
|
+
v-for="toast in toasts"
|
|
227
|
+
:key="toast.id"
|
|
228
|
+
:color="toast.color"
|
|
229
|
+
class="cursor-pointer"
|
|
230
|
+
@click="dismiss(toast.id)"
|
|
231
|
+
>
|
|
232
|
+
{{ toast.message }}
|
|
233
|
+
</Alert>
|
|
234
|
+
</Toast>
|
|
235
|
+
</Teleport>
|
|
236
|
+
</Variant>
|
|
237
|
+
|
|
238
|
+
</template>
|
|
239
|
+
</Story>
|
|
240
|
+
</template>
|
|
241
|
+
|
|
242
|
+
<style scoped>
|
|
243
|
+
.toast-story {
|
|
244
|
+
display: flex;
|
|
245
|
+
flex-wrap: wrap;
|
|
246
|
+
gap: 0.75rem;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.toast-story--row {
|
|
250
|
+
display: flex;
|
|
251
|
+
flex-wrap: wrap;
|
|
252
|
+
gap: 0.5rem;
|
|
253
|
+
align-items: center;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.toast-story--col {
|
|
257
|
+
flex-direction: column;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.toast-story--grid {
|
|
261
|
+
display: grid;
|
|
262
|
+
grid-template-columns: repeat(3, auto);
|
|
263
|
+
gap: 0.5rem;
|
|
264
|
+
width: fit-content;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.toast-story--hint {
|
|
268
|
+
font-size: 0.875rem;
|
|
269
|
+
color: #6b7280;
|
|
270
|
+
background: #f9fafb;
|
|
271
|
+
border-left: 3px solid #d1d5db;
|
|
272
|
+
padding: 0.6rem 0.875rem;
|
|
273
|
+
border-radius: 0 4px 4px 0;
|
|
274
|
+
max-width: 480px;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.toast-story--hint code {
|
|
278
|
+
font-size: 0.8rem;
|
|
279
|
+
background: #e5e7eb;
|
|
280
|
+
padding: 1px 4px;
|
|
281
|
+
border-radius: 3px;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
</style>
|
|
285
|
+
|
|
286
|
+
<docs lang="md">
|
|
287
|
+
# Toast
|
|
288
|
+
|
|
289
|
+
## Description
|
|
290
|
+
|
|
291
|
+
A fixed-position container for stacked notification messages. Built on DaisyUI's `toast` class system.
|
|
292
|
+
Each notification is rendered as an `Alert` inside the `Toast` container.
|
|
293
|
+
|
|
294
|
+
In most cases, use `<PoppyApp />` at the root and `useToast()` anywhere in the tree to push notifications transparently.
|
|
295
|
+
The `Toast` component itself remains available as a low-level primitive for custom implementations.
|
|
296
|
+
|
|
297
|
+
## Toast props
|
|
298
|
+
|
|
299
|
+
| Prop | Type | Default | Required | Configurable | Description |
|
|
300
|
+
|------------|--------------|------------|----------|--------------------|-----------------------------------------------------------------------|
|
|
301
|
+
| `align` | `ToastAlign` | `'end'` | :x: | :white_check_mark: | Horizontal position. `start` / `center` / `end`. |
|
|
302
|
+
| `side` | `ToastSide` | `'bottom'` | :x: | :white_check_mark: | Vertical position. `top` / `middle` / `bottom`. |
|
|
303
|
+
| `duration` | `number` | `3000` | :x: | :white_check_mark: | Default auto-dismiss delay in ms. Set to `0` to disable auto-dismiss. |
|
|
304
|
+
|
|
305
|
+
> **Configurable** props can be set globally via the Poppy UI plugin (`components.toast` option). See [Plugin Configuration](../../../stories/Configuration.story.md) for more information.
|
|
306
|
+
|
|
307
|
+
## ToastItem
|
|
308
|
+
|
|
309
|
+
| Field | Type | Default | Description |
|
|
310
|
+
|-----------|--------------|-------------|--------------------------------------------------------|
|
|
311
|
+
| `id` | `number` | auto | Auto-incremented identifier. |
|
|
312
|
+
| `message` | `string` | `undefined` | Text content of the notification. |
|
|
313
|
+
| `color` | `ToastColor` | `undefined` | Alert color. `info` / `success` / `warning` / `error`. |
|
|
314
|
+
| `duration`| `number` | `3000` | Overrides the global default for this toast. |
|
|
315
|
+
|
|
316
|
+
## useToast()
|
|
317
|
+
|
|
318
|
+
```ts
|
|
319
|
+
const { push, dismiss } = useToast()
|
|
320
|
+
|
|
321
|
+
// Push a notification
|
|
322
|
+
push('Saved!', { color: 'success' })
|
|
323
|
+
|
|
324
|
+
// Push with custom duration
|
|
325
|
+
push('Check this out', { color: 'info', duration: 5000 })
|
|
326
|
+
|
|
327
|
+
// Push with no auto-dismiss
|
|
328
|
+
push('Action required', { color: 'warning', duration: 0 })
|
|
329
|
+
|
|
330
|
+
// Dismiss manually
|
|
331
|
+
dismiss(id)
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
## PoppyApp
|
|
335
|
+
|
|
336
|
+
Wrap your root component with `<PoppyApp />` to enable `useToast()` anywhere in the tree.
|
|
337
|
+
The toast container is rendered automatically via `Teleport`.
|
|
338
|
+
|
|
339
|
+
```vue
|
|
340
|
+
<!-- App.vue -->
|
|
341
|
+
<PoppyApp>
|
|
342
|
+
<MyLayout>
|
|
343
|
+
<RouterView />
|
|
344
|
+
</MyLayout>
|
|
345
|
+
</PoppyApp>
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
> **Nuxt note** — `useToast()` uses `inject()` to read state from `<PoppyApp />`, avoiding module-level singletons that would be shared across SSR requests.
|
|
349
|
+
|
|
350
|
+
## Slots
|
|
351
|
+
|
|
352
|
+
| Component | Slot | Description |
|
|
353
|
+
|------------|-----------|-------------------------------------|
|
|
354
|
+
| `Toast` | `default` | Alert components to display. |
|
|
355
|
+
| `PoppyApp` | `default` | App content (layouts, RouterView…). |
|
|
356
|
+
</docs>
|