@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,111 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { computed, onUnmounted, ref, watch } from 'vue'
|
|
3
|
+
import type { CountdownProps } from './countdown.props'
|
|
4
|
+
import type { CountdownDelta, CountdownTarget } from './countdown.types'
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Converts any supported CountdownTarget to a Unix timestamp in ms.
|
|
8
|
+
*/
|
|
9
|
+
function toTimestamp(to: CountdownTarget): number {
|
|
10
|
+
// Native Date
|
|
11
|
+
if (to instanceof Date) return to.getTime()
|
|
12
|
+
|
|
13
|
+
// String or number
|
|
14
|
+
if (typeof to === 'string' || typeof to === 'number') return new Date(to).getTime()
|
|
15
|
+
|
|
16
|
+
// Temporal API (feature detection via duck typing)
|
|
17
|
+
if (typeof to === 'object' && to !== null) {
|
|
18
|
+
// Temporal.Instant — has epochMilliseconds
|
|
19
|
+
if ('epochMilliseconds' in to) return (to as Temporal.Instant).epochMilliseconds
|
|
20
|
+
|
|
21
|
+
// Temporal.ZonedDateTime — has epochMilliseconds
|
|
22
|
+
if ('epochMilliseconds' in to && 'timeZoneId' in to) return (to as Temporal.ZonedDateTime).epochMilliseconds
|
|
23
|
+
|
|
24
|
+
// Temporal.PlainDateTime — no timezone, convert via Temporal.Now.timeZoneId
|
|
25
|
+
if ('toZonedDateTime' in to) {
|
|
26
|
+
const zdt = (to as Temporal.PlainDateTime).toZonedDateTime(
|
|
27
|
+
typeof Temporal !== 'undefined' ? Temporal.Now.timeZoneId() : 'UTC',
|
|
28
|
+
)
|
|
29
|
+
return zdt.epochMilliseconds
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return Number.NaN
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function getDelta(targetMs: number): CountdownDelta {
|
|
37
|
+
const diff = Math.max(0, targetMs - Date.now())
|
|
38
|
+
return {
|
|
39
|
+
days: Math.floor(diff / 1000 / 60 / 60 / 24),
|
|
40
|
+
hours: Math.floor(diff / 1000 / 60 / 60) % 24,
|
|
41
|
+
minutes: Math.floor(diff / 1000 / 60) % 60,
|
|
42
|
+
seconds: Math.floor(diff / 1000) % 60,
|
|
43
|
+
done: diff === 0,
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
</script>
|
|
47
|
+
|
|
48
|
+
<script setup lang="ts">
|
|
49
|
+
const props = defineProps<CountdownProps>()
|
|
50
|
+
|
|
51
|
+
const digits = computed(() => props.digits ?? 2)
|
|
52
|
+
|
|
53
|
+
const emit = defineEmits<{
|
|
54
|
+
/**
|
|
55
|
+
* Emitted once when the countdown reaches zero.
|
|
56
|
+
*/
|
|
57
|
+
end: []
|
|
58
|
+
}>()
|
|
59
|
+
|
|
60
|
+
const targetMs = computed(() => toTimestamp(props.to))
|
|
61
|
+
const delta = ref<CountdownDelta>(getDelta(targetMs.value))
|
|
62
|
+
|
|
63
|
+
let interval: ReturnType<typeof setInterval> | undefined
|
|
64
|
+
|
|
65
|
+
function stop() {
|
|
66
|
+
if (interval !== undefined) {
|
|
67
|
+
clearInterval(interval)
|
|
68
|
+
interval = undefined
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function start() {
|
|
73
|
+
stop()
|
|
74
|
+
interval = setInterval(() => {
|
|
75
|
+
delta.value = getDelta(targetMs.value)
|
|
76
|
+
if (delta.value.done) {
|
|
77
|
+
stop()
|
|
78
|
+
emit('end')
|
|
79
|
+
}
|
|
80
|
+
}, 500)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
watch(targetMs, () => {
|
|
84
|
+
delta.value = getDelta(targetMs.value)
|
|
85
|
+
start()
|
|
86
|
+
}, { immediate: true })
|
|
87
|
+
|
|
88
|
+
onUnmounted(stop)
|
|
89
|
+
|
|
90
|
+
defineExpose({ delta })
|
|
91
|
+
</script>
|
|
92
|
+
|
|
93
|
+
<template>
|
|
94
|
+
<slot
|
|
95
|
+
:days="delta.days"
|
|
96
|
+
:hours="delta.hours"
|
|
97
|
+
:minutes="delta.minutes"
|
|
98
|
+
:seconds="delta.seconds"
|
|
99
|
+
:done="delta.done"
|
|
100
|
+
:digits="digits"
|
|
101
|
+
>
|
|
102
|
+
<!-- Default render: hh:mm:ss -->
|
|
103
|
+
<span class="countdown font-mono text-2xl">
|
|
104
|
+
<span :style="{ '--value': delta.hours, '--digits': digits }" :aria-label="String(delta.hours)">{{ delta.hours }}</span>
|
|
105
|
+
:
|
|
106
|
+
<span :style="{ '--value': delta.minutes, '--digits': digits }" :aria-label="String(delta.minutes)">{{ delta.minutes }}</span>
|
|
107
|
+
:
|
|
108
|
+
<span :style="{ '--value': delta.seconds, '--digits': digits }" :aria-label="String(delta.seconds)">{{ delta.seconds }}</span>
|
|
109
|
+
</span>
|
|
110
|
+
</slot>
|
|
111
|
+
</template>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { CountdownTarget } from './countdown.types'
|
|
2
|
+
|
|
3
|
+
export interface CountdownProps {
|
|
4
|
+
/**
|
|
5
|
+
* Target date/time to count down to.
|
|
6
|
+
*
|
|
7
|
+
* Accepts:
|
|
8
|
+
* - `Date` — native JS Date object
|
|
9
|
+
* - `string` — ISO 8601 string (e.g. `'2026-12-31T23:59:59'`)
|
|
10
|
+
* - `number` — Unix timestamp in milliseconds
|
|
11
|
+
* - `Temporal.Instant` — TC39 Temporal API
|
|
12
|
+
* - `Temporal.ZonedDateTime` — TC39 Temporal API
|
|
13
|
+
* - `Temporal.PlainDateTime` — TC39 Temporal API (assumed local timezone)
|
|
14
|
+
*/
|
|
15
|
+
to: CountdownTarget
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Minimum number of digits displayed per value.
|
|
19
|
+
* `2` forces `05` instead of `5`.
|
|
20
|
+
*
|
|
21
|
+
* @default 2
|
|
22
|
+
*/
|
|
23
|
+
digits?: 1 | 2 | 3
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supported input types for the countdown target date.
|
|
3
|
+
* - `Date`: native JS Date object
|
|
4
|
+
* - `string`: ISO 8601 string (e.g. `'2026-12-31T23:59:59'`)
|
|
5
|
+
* - `number`: Unix timestamp in milliseconds
|
|
6
|
+
* - Temporal types: `Temporal.Instant`, `Temporal.ZonedDateTime`, `Temporal.PlainDateTime`
|
|
7
|
+
* (TC39 Temporal API — available natively in modern browsers or via `@js-temporal/polyfill`)
|
|
8
|
+
*/
|
|
9
|
+
export type CountdownTarget = Date | string | number | object
|
|
10
|
+
|
|
11
|
+
export type CountdownDelta = {
|
|
12
|
+
days: number
|
|
13
|
+
hours: number
|
|
14
|
+
minutes: number
|
|
15
|
+
seconds: number
|
|
16
|
+
done: boolean
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type CountdownEmits = {
|
|
20
|
+
/**
|
|
21
|
+
* Emitted once when the countdown reaches zero.
|
|
22
|
+
*/
|
|
23
|
+
end: []
|
|
24
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Diff from './Diff.vue'
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup lang="ts">
|
|
6
|
+
const IMG = 'https://img.daisyui.com/images/stock/photo-1560717789-0ac7c58ac90a.webp'
|
|
7
|
+
const IMG_B = 'https://img.daisyui.com/images/stock/photo-1560717789-0ac7c58ac90a-blur.webp'
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<Story group="components" title="Display/Diff" auto-props-disabled>
|
|
12
|
+
<template #default>
|
|
13
|
+
|
|
14
|
+
<Variant title="Images">
|
|
15
|
+
<template #source>
|
|
16
|
+
<textarea v-pre>
|
|
17
|
+
<Diff class="aspect-16/9">
|
|
18
|
+
<template #item-1>
|
|
19
|
+
<img alt="original" src="..." />
|
|
20
|
+
</template>
|
|
21
|
+
<template #item-2>
|
|
22
|
+
<img alt="modified" src="..." />
|
|
23
|
+
</template>
|
|
24
|
+
</Diff>
|
|
25
|
+
</textarea>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<Diff class="aspect-16/9 w-full max-w-2xl">
|
|
29
|
+
<template #item-1>
|
|
30
|
+
<img :src="IMG" alt="original" />
|
|
31
|
+
</template>
|
|
32
|
+
<template #item-2>
|
|
33
|
+
<img :src="IMG_B" alt="blurred" />
|
|
34
|
+
</template>
|
|
35
|
+
</Diff>
|
|
36
|
+
</Variant>
|
|
37
|
+
|
|
38
|
+
<Variant title="Text">
|
|
39
|
+
<template #source>
|
|
40
|
+
<textarea v-pre>
|
|
41
|
+
<Diff class="aspect-16/9">
|
|
42
|
+
<template #item-1>
|
|
43
|
+
<div class="bg-primary text-primary-content grid place-content-center text-9xl font-black">
|
|
44
|
+
POPPY
|
|
45
|
+
</div>
|
|
46
|
+
</template>
|
|
47
|
+
<template #item-2>
|
|
48
|
+
<div class="bg-base-200 grid place-content-center text-9xl font-black">
|
|
49
|
+
POPPY
|
|
50
|
+
</div>
|
|
51
|
+
</template>
|
|
52
|
+
</Diff>
|
|
53
|
+
</textarea>
|
|
54
|
+
</template>
|
|
55
|
+
|
|
56
|
+
<Diff class="aspect-16/9 w-full max-w-2xl">
|
|
57
|
+
<template #item-1>
|
|
58
|
+
<div class="bg-primary text-primary-content grid place-content-center text-9xl font-black h-full">
|
|
59
|
+
POPPY
|
|
60
|
+
</div>
|
|
61
|
+
</template>
|
|
62
|
+
<template #item-2>
|
|
63
|
+
<div class="bg-base-200 grid place-content-center text-9xl font-black h-full">
|
|
64
|
+
POPPY
|
|
65
|
+
</div>
|
|
66
|
+
</template>
|
|
67
|
+
</Diff>
|
|
68
|
+
</Variant>
|
|
69
|
+
|
|
70
|
+
</template>
|
|
71
|
+
</Story>
|
|
72
|
+
</template>
|
|
73
|
+
|
|
74
|
+
<docs lang="md">
|
|
75
|
+
# Diff
|
|
76
|
+
|
|
77
|
+
## Description
|
|
78
|
+
|
|
79
|
+
A side-by-side comparison component with a draggable resizer.
|
|
80
|
+
Built on DaisyUI's `diff` class system. Works with any content — images, text, UI components.
|
|
81
|
+
|
|
82
|
+
## Slots
|
|
83
|
+
|
|
84
|
+
| Slot | Description |
|
|
85
|
+
|----------|-------------------------------------|
|
|
86
|
+
| `item-1` | Left/front content (`diff-item-1`). |
|
|
87
|
+
| `item-2` | Right/back content (`diff-item-2`). |
|
|
88
|
+
|
|
89
|
+
The resizer handle is rendered automatically.
|
|
90
|
+
|
|
91
|
+
## Usage
|
|
92
|
+
|
|
93
|
+
```vue
|
|
94
|
+
<!-- Images -->
|
|
95
|
+
<Diff class="aspect-16/9">
|
|
96
|
+
<template #item-1>
|
|
97
|
+
<img src="original.jpg" alt="original" />
|
|
98
|
+
</template>
|
|
99
|
+
<template #item-2>
|
|
100
|
+
<img src="modified.jpg" alt="modified" />
|
|
101
|
+
</template>
|
|
102
|
+
</Diff>
|
|
103
|
+
|
|
104
|
+
<!-- Text -->
|
|
105
|
+
<Diff class="aspect-16/9">
|
|
106
|
+
<template #item-1>
|
|
107
|
+
<div class="bg-primary text-primary-content grid place-content-center text-9xl font-black h-full">
|
|
108
|
+
Before
|
|
109
|
+
</div>
|
|
110
|
+
</template>
|
|
111
|
+
<template #item-2>
|
|
112
|
+
<div class="bg-base-200 grid place-content-center text-9xl font-black h-full">
|
|
113
|
+
After
|
|
114
|
+
</div>
|
|
115
|
+
</template>
|
|
116
|
+
</Diff>
|
|
117
|
+
```
|
|
118
|
+
</docs>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script setup lang="ts"></script>
|
|
2
|
+
|
|
3
|
+
<template>
|
|
4
|
+
<figure class="diff" tabindex="0">
|
|
5
|
+
<div class="diff-item-1" role="img" tabindex="0">
|
|
6
|
+
<slot name="item-1"></slot>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="diff-item-2" role="img">
|
|
9
|
+
<slot name="item-2"></slot>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="diff-resizer"></div>
|
|
12
|
+
</figure>
|
|
13
|
+
</template>
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Card from '@/components/display/card/Card.vue'
|
|
3
|
+
import CardBody from '@/components/display/card/CardBody.vue'
|
|
4
|
+
import Hover3d from './Hover3d.vue'
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<script setup lang="ts">
|
|
8
|
+
const IMG_CARD = 'https://img.daisyui.com/images/stock/creditcard.webp'
|
|
9
|
+
const IMG_1 = 'https://img.daisyui.com/images/stock/card-1.webp'
|
|
10
|
+
const IMG_2 = 'https://img.daisyui.com/images/stock/card-2.webp'
|
|
11
|
+
const IMG_3 = 'https://img.daisyui.com/images/stock/card-3.webp'
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<Story group="components" title="Display/Hover3d" auto-props-disabled>
|
|
16
|
+
<template #default>
|
|
17
|
+
|
|
18
|
+
<Variant title="Image">
|
|
19
|
+
<template #source>
|
|
20
|
+
<textarea v-pre>
|
|
21
|
+
<Hover3d>
|
|
22
|
+
<figure class="max-w-100 rounded-2xl">
|
|
23
|
+
<img src="..." alt="3D card" />
|
|
24
|
+
</figure>
|
|
25
|
+
</Hover3d>
|
|
26
|
+
</textarea>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<Hover3d class="my-12 mx-2">
|
|
30
|
+
<figure class="max-w-xs rounded-2xl overflow-hidden">
|
|
31
|
+
<img :src="IMG_CARD" alt="Credit card" />
|
|
32
|
+
</figure>
|
|
33
|
+
</Hover3d>
|
|
34
|
+
</Variant>
|
|
35
|
+
|
|
36
|
+
<Variant title="Card with RouterLink (to)">
|
|
37
|
+
<template #source>
|
|
38
|
+
<textarea v-pre>
|
|
39
|
+
<Hover3d class="cursor-pointer my-12 mx-2">
|
|
40
|
+
<Card class="w-80 bg-black text-white">
|
|
41
|
+
<CardBody>
|
|
42
|
+
<div class="flex justify-between mb-10">
|
|
43
|
+
<div class="font-bold">BANK OF LATVERIA</div>
|
|
44
|
+
<div class="text-5xl opacity-10">❁</div>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="text-lg mb-4 opacity-40">0210 8820 1150 0222</div>
|
|
47
|
+
<div class="flex justify-between">
|
|
48
|
+
<div>
|
|
49
|
+
<div class="text-xs opacity-20">CARD HOLDER</div>
|
|
50
|
+
<div>VICTOR VON D.</div>
|
|
51
|
+
</div>
|
|
52
|
+
<div>
|
|
53
|
+
<div class="text-xs opacity-20">EXPIRES</div>
|
|
54
|
+
<div>29/08</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</CardBody>
|
|
58
|
+
</Card>
|
|
59
|
+
</Hover3d>
|
|
60
|
+
</textarea>
|
|
61
|
+
</template>
|
|
62
|
+
|
|
63
|
+
<div class="hover3d-story hover3d-story--row">
|
|
64
|
+
<Hover3d to="#" class="cursor-pointer my-12 mx-2">
|
|
65
|
+
<Card class="w-96 bg-black text-white bg-[radial-gradient(circle_at_bottom_left,#ffffff04_35%,transparent_36%),radial-gradient(circle_at_top_right,#ffffff04_35%,transparent_36%)] bg-size-[4.95em_4.95em]">
|
|
66
|
+
<CardBody>
|
|
67
|
+
<div class="flex justify-between mb-10">
|
|
68
|
+
<div class="font-bold">BANK OF LATVERIA</div>
|
|
69
|
+
<div class="text-5xl opacity-10">❁</div>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="text-lg mb-4 opacity-40">0210 8820 1150 0222</div>
|
|
72
|
+
<div class="flex justify-between">
|
|
73
|
+
<div>
|
|
74
|
+
<div class="text-xs opacity-20">CARD HOLDER</div>
|
|
75
|
+
<div>VICTOR VON D.</div>
|
|
76
|
+
</div>
|
|
77
|
+
<div>
|
|
78
|
+
<div class="text-xs opacity-20">EXPIRES</div>
|
|
79
|
+
<div>29/08</div>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
</CardBody>
|
|
83
|
+
</Card>
|
|
84
|
+
</Hover3d>
|
|
85
|
+
</div>
|
|
86
|
+
</Variant>
|
|
87
|
+
|
|
88
|
+
<Variant title="Image gallery">
|
|
89
|
+
<div class="hover3d-story hover3d-story--row">
|
|
90
|
+
<Hover3d v-for="(src, i) in [IMG_1, IMG_2, IMG_3]" :key="i" class="my-12 mx-2">
|
|
91
|
+
<figure class="w-48 rounded-2xl overflow-hidden">
|
|
92
|
+
<img :src="src" alt="Gallery image" />
|
|
93
|
+
</figure>
|
|
94
|
+
</Hover3d>
|
|
95
|
+
</div>
|
|
96
|
+
</Variant>
|
|
97
|
+
|
|
98
|
+
</template>
|
|
99
|
+
</Story>
|
|
100
|
+
</template>
|
|
101
|
+
|
|
102
|
+
<style scoped>
|
|
103
|
+
.hover3d-story {
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-wrap: wrap;
|
|
106
|
+
gap: 1rem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.hover3d-story--row {
|
|
110
|
+
align-items: center;
|
|
111
|
+
}
|
|
112
|
+
</style>
|
|
113
|
+
|
|
114
|
+
<docs lang="md">
|
|
115
|
+
# Hover3d
|
|
116
|
+
|
|
117
|
+
## Description
|
|
118
|
+
|
|
119
|
+
A wrapper that adds a 3D tilt effect on hover. Built on DaisyUI's `hover-3d` class system.
|
|
120
|
+
The effect works by placing 8 invisible hover zones over the content — these are injected automatically.
|
|
121
|
+
|
|
122
|
+
> Only use non-interactive content inside `Hover3d`. If you want the whole card to be clickable,
|
|
123
|
+
> use the `to` prop to render as a `RouterLink` instead of putting interactive elements inside.
|
|
124
|
+
|
|
125
|
+
## Props
|
|
126
|
+
|
|
127
|
+
| Prop | Type | Default | Required | Configurable | Description |
|
|
128
|
+
|------|--------------------|-------------|----------|--------------|-------------------------------------------------------------------------------------------|
|
|
129
|
+
| `to` | `RouteLocationRaw` | `undefined` | :x: | :x: | If provided, renders as a `RouterLink`. Accepts a string path or a route location object. |
|
|
130
|
+
|
|
131
|
+
## Slots
|
|
132
|
+
|
|
133
|
+
| Slot | Description |
|
|
134
|
+
|-----------|------------------------------------|
|
|
135
|
+
| `default` | Content to apply the 3D effect to. |
|
|
136
|
+
|
|
137
|
+
## Usage
|
|
138
|
+
|
|
139
|
+
```vue
|
|
140
|
+
<!-- Basic image -->
|
|
141
|
+
<Hover3d>
|
|
142
|
+
<figure class="max-w-xs rounded-2xl overflow-hidden">
|
|
143
|
+
<img src="..." alt="3D card" />
|
|
144
|
+
</figure>
|
|
145
|
+
</Hover3d>
|
|
146
|
+
|
|
147
|
+
<!-- Clickable card via RouterLink -->
|
|
148
|
+
<Hover3d :to="{ name: 'product', params: { id: 1 } }" class="cursor-pointer">
|
|
149
|
+
<Card class="w-80">
|
|
150
|
+
<CardBody>...</CardBody>
|
|
151
|
+
</Card>
|
|
152
|
+
</Hover3d>
|
|
153
|
+
```
|
|
154
|
+
</docs>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { computed } from 'vue'
|
|
3
|
+
import { RouterLink } from 'vue-router'
|
|
4
|
+
import type { Hover3dProps } from './hover-3d.props'
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<script setup lang="ts">
|
|
8
|
+
const props = defineProps<Hover3dProps>()
|
|
9
|
+
|
|
10
|
+
const tag = computed(() => props.to ?
|
|
11
|
+
props.to === '#'
|
|
12
|
+
? 'a'
|
|
13
|
+
: RouterLink
|
|
14
|
+
: 'div')
|
|
15
|
+
|
|
16
|
+
const attr = computed(() => {
|
|
17
|
+
if (tag.value === 'a') {
|
|
18
|
+
return {
|
|
19
|
+
href: props.to
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
if (tag.value === 'div') {
|
|
23
|
+
return {}
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
to: props.to
|
|
27
|
+
}
|
|
28
|
+
})
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<template>
|
|
32
|
+
<component :is="tag" class="hover-3d" v-bind="attr">
|
|
33
|
+
<slot />
|
|
34
|
+
<!-- 8 empty divs required for the 3D zone detection -->
|
|
35
|
+
<div v-for="i in 8" :key="i" />
|
|
36
|
+
</component>
|
|
37
|
+
</template>
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Card from '@/components/display/card/Card.vue'
|
|
3
|
+
import CardBody from '@/components/display/card/CardBody.vue'
|
|
4
|
+
import CardTitle from '@/components/display/card/CardTitle.vue'
|
|
5
|
+
import HoverGallery from './HoverGallery.vue'
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<script setup lang="ts">
|
|
9
|
+
const IMG_HAT_1 = 'https://img.daisyui.com/images/stock/daisyui-hat-1.webp'
|
|
10
|
+
const IMG_HAT_2 = 'https://img.daisyui.com/images/stock/daisyui-hat-2.webp'
|
|
11
|
+
const IMG_HAT_3 = 'https://img.daisyui.com/images/stock/daisyui-hat-3.webp'
|
|
12
|
+
const IMG_HAT_4 = 'https://img.daisyui.com/images/stock/daisyui-hat-4.webp'
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<Story group="components" title="Display/HoverGallery" auto-props-disabled>
|
|
17
|
+
<template #default>
|
|
18
|
+
|
|
19
|
+
<Variant title="Basic">
|
|
20
|
+
<template #source>
|
|
21
|
+
<textarea v-pre>
|
|
22
|
+
<HoverGallery class="max-w-60">
|
|
23
|
+
<img src="..." />
|
|
24
|
+
<img src="..." />
|
|
25
|
+
<img src="..." />
|
|
26
|
+
<img src="..." />
|
|
27
|
+
</HoverGallery>
|
|
28
|
+
</textarea>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<HoverGallery class="max-w-60">
|
|
32
|
+
<img :src="IMG_HAT_1" alt="Hat 1" />
|
|
33
|
+
<img :src="IMG_HAT_2" alt="Hat 2" />
|
|
34
|
+
<img :src="IMG_HAT_3" alt="Hat 3" />
|
|
35
|
+
<img :src="IMG_HAT_4" alt="Hat 4" />
|
|
36
|
+
</HoverGallery>
|
|
37
|
+
</Variant>
|
|
38
|
+
|
|
39
|
+
<Variant title="In a card">
|
|
40
|
+
<template #source>
|
|
41
|
+
<textarea v-pre>
|
|
42
|
+
<Card class="bg-base-200 max-w-60 shadow">
|
|
43
|
+
<HoverGallery>
|
|
44
|
+
<img src="..." />
|
|
45
|
+
<img src="..." />
|
|
46
|
+
<img src="..." />
|
|
47
|
+
<img src="..." />
|
|
48
|
+
</HoverGallery>
|
|
49
|
+
<CardBody>
|
|
50
|
+
<CardTitle class="flex justify-between">
|
|
51
|
+
Product Name
|
|
52
|
+
<span class="font-normal">$25</span>
|
|
53
|
+
</CardTitle>
|
|
54
|
+
<p>Product description</p>
|
|
55
|
+
</CardBody>
|
|
56
|
+
</Card>
|
|
57
|
+
</textarea>
|
|
58
|
+
</template>
|
|
59
|
+
|
|
60
|
+
<Card class="bg-base-200 max-w-60 shadow">
|
|
61
|
+
<HoverGallery>
|
|
62
|
+
<img :src="IMG_HAT_1" alt="Hat 1" />
|
|
63
|
+
<img :src="IMG_HAT_2" alt="Hat 2" />
|
|
64
|
+
<img :src="IMG_HAT_3" alt="Hat 3" />
|
|
65
|
+
<img :src="IMG_HAT_4" alt="Hat 4" />
|
|
66
|
+
</HoverGallery>
|
|
67
|
+
<CardBody>
|
|
68
|
+
<CardTitle class="flex justify-between">
|
|
69
|
+
daisyUI Hat
|
|
70
|
+
<span class="font-normal">$25</span>
|
|
71
|
+
</CardTitle>
|
|
72
|
+
<p>High Quality classic cap hat with stitch logo</p>
|
|
73
|
+
</CardBody>
|
|
74
|
+
</Card>
|
|
75
|
+
</Variant>
|
|
76
|
+
|
|
77
|
+
</template>
|
|
78
|
+
</Story>
|
|
79
|
+
</template>
|
|
80
|
+
|
|
81
|
+
<docs lang="md">
|
|
82
|
+
# HoverGallery
|
|
83
|
+
|
|
84
|
+
## Description
|
|
85
|
+
|
|
86
|
+
A container that creates a hover gallery effect. The first image is visible by default, and hovering horizontally reveals other images. Built on DaisyUI's `hover-gallery` class. Always renders as a `<figure />` element.
|
|
87
|
+
|
|
88
|
+
> Hover Gallery can include up to 10 images.
|
|
89
|
+
|
|
90
|
+
## Slots
|
|
91
|
+
|
|
92
|
+
| Slot | Description |
|
|
93
|
+
|-----------|-----------------------------------------|
|
|
94
|
+
| `default` | Images to display in the hover gallery. |
|
|
95
|
+
|
|
96
|
+
## Usage
|
|
97
|
+
|
|
98
|
+
```vue
|
|
99
|
+
<!-- Basic usage -->
|
|
100
|
+
<HoverGallery class="max-w-60">
|
|
101
|
+
<img src="image-1.webp" alt="Image 1" />
|
|
102
|
+
<img src="image-2.webp" alt="Image 2" />
|
|
103
|
+
<img src="image-3.webp" alt="Image 3" />
|
|
104
|
+
<img src="image-4.webp" alt="Image 4" />
|
|
105
|
+
</HoverGallery>
|
|
106
|
+
|
|
107
|
+
<!-- In a card -->
|
|
108
|
+
<Card class="bg-base-200 max-w-60 shadow">
|
|
109
|
+
<HoverGallery>
|
|
110
|
+
<img src="..." />
|
|
111
|
+
<img src="..." />
|
|
112
|
+
<img src="..." />
|
|
113
|
+
</HoverGallery>
|
|
114
|
+
<CardBody>
|
|
115
|
+
<CardTitle>Product Name</CardTitle>
|
|
116
|
+
<p>Product description</p>
|
|
117
|
+
</CardBody>
|
|
118
|
+
</Card>
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
</docs>
|