@poppy-ui/vue 0.5.5 → 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,91 @@
|
|
|
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 { inject, provide, useId, watch } from 'vue'
|
|
7
|
+
import { DRAWER_CONFIG } from './drawer.context'
|
|
8
|
+
import type { DrawerProps } from './drawer.props'
|
|
9
|
+
import type { DrawerSide } from './drawer.types'
|
|
10
|
+
|
|
11
|
+
const drawerSides: ComponentClass<'drawer', DrawerSide> = {
|
|
12
|
+
start: 'drawer-start',
|
|
13
|
+
end: 'drawer-end',
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const BASE = 20
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<script setup lang="ts">
|
|
20
|
+
const props = defineProps<DrawerProps>()
|
|
21
|
+
const open = defineModel<boolean>({ default: false })
|
|
22
|
+
|
|
23
|
+
const emit = defineEmits<{
|
|
24
|
+
present: []
|
|
25
|
+
close: []
|
|
26
|
+
}>()
|
|
27
|
+
|
|
28
|
+
const config = useComponentConfig(DRAWER_CONFIG, props, {
|
|
29
|
+
side: 'start',
|
|
30
|
+
overlay: true,
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
const parentLevel = inject('drawer-level', 0)
|
|
34
|
+
const level = parentLevel + 1
|
|
35
|
+
provide('drawer-level', level)
|
|
36
|
+
|
|
37
|
+
const zIndex = BASE + level * 10 + 1
|
|
38
|
+
const drawerId = `drawer-${useId()}`
|
|
39
|
+
|
|
40
|
+
watch(open, isOpen => {
|
|
41
|
+
isOpen ? emit('present') : emit('close')
|
|
42
|
+
})
|
|
43
|
+
|
|
44
|
+
function present() {
|
|
45
|
+
open.value = true
|
|
46
|
+
emit('present')
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function close() {
|
|
50
|
+
open.value = false
|
|
51
|
+
emit('close')
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
defineExpose({
|
|
55
|
+
present,
|
|
56
|
+
close,
|
|
57
|
+
})
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<template>
|
|
61
|
+
<div
|
|
62
|
+
class="drawer"
|
|
63
|
+
:class="getClass(drawerSides, config.side)"
|
|
64
|
+
>
|
|
65
|
+
<input
|
|
66
|
+
:id="drawerId"
|
|
67
|
+
v-model="open"
|
|
68
|
+
type="checkbox"
|
|
69
|
+
class="drawer-toggle"
|
|
70
|
+
/>
|
|
71
|
+
|
|
72
|
+
<div class="drawer-content" :class="config.contentClass">
|
|
73
|
+
<slot :drawer-id="drawerId" :is-open="open" :present="present" :close="close" />
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<aside
|
|
77
|
+
class="drawer-side"
|
|
78
|
+
:class="config.sidebarClass"
|
|
79
|
+
:style="{ zIndex }"
|
|
80
|
+
>
|
|
81
|
+
<label
|
|
82
|
+
v-if="isTrue(config.overlay)"
|
|
83
|
+
:for="drawerId"
|
|
84
|
+
aria-label="close"
|
|
85
|
+
class="drawer-overlay"
|
|
86
|
+
/>
|
|
87
|
+
|
|
88
|
+
<slot name="sidebar" :drawer-id="drawerId" :is-open="open" :present="present" :close="close" />
|
|
89
|
+
</aside>
|
|
90
|
+
</div>
|
|
91
|
+
</template>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Booleanish } from '@/types/utils.type'
|
|
2
|
+
import type { ClassValue } from 'vue'
|
|
3
|
+
import type { DrawerSide } from './drawer.types'
|
|
4
|
+
|
|
5
|
+
export interface DrawerConfigurableProps {
|
|
6
|
+
/**
|
|
7
|
+
* Side from which the drawer opens.
|
|
8
|
+
* - `'start'`: Opens from the left (default).
|
|
9
|
+
* - `'end'`: Opens from the right.
|
|
10
|
+
*/
|
|
11
|
+
side?: DrawerSide
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* When `true`, clicking the overlay closes the drawer.
|
|
15
|
+
*
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
overlay?: Booleanish
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Additional classes to apply to the drawer content container.
|
|
22
|
+
*/
|
|
23
|
+
contentClass?: ClassValue
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Additional classes to apply to the drawer sidebar container.
|
|
27
|
+
*/
|
|
28
|
+
sidebarClass?: ClassValue
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface DrawerProps extends DrawerConfigurableProps {}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Badge from '@/components/display/badge/Badge.vue'
|
|
3
|
+
import { reactive } from 'vue'
|
|
4
|
+
import Indicator from './Indicator.vue'
|
|
5
|
+
import type { IndicatorProps } from './indicator.props'
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<script setup lang="ts">
|
|
9
|
+
const state = reactive<IndicatorProps>({
|
|
10
|
+
side: 'end',
|
|
11
|
+
align: undefined,
|
|
12
|
+
hide: false,
|
|
13
|
+
})
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<Story group="components" title="Layout/Indicator" auto-props-disabled>
|
|
18
|
+
<template #default>
|
|
19
|
+
|
|
20
|
+
<Variant title="Default">
|
|
21
|
+
<template #controls>
|
|
22
|
+
<HstSelect title="Side" v-model="state.side" :options="['start', 'end', 'top', 'bottom']" />
|
|
23
|
+
<HstSelect title="Align" v-model="state.align" :options="[{ label: '-- default --', value: undefined }, 'start', 'end', 'center', 'middle']" />
|
|
24
|
+
<HstCheckbox title="Hide" v-model="(state.hide as boolean)" />
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<template #source>
|
|
28
|
+
<textarea v-pre>
|
|
29
|
+
<Indicator side="end">
|
|
30
|
+
<button class="btn">Button with indicator</button>
|
|
31
|
+
</Indicator>
|
|
32
|
+
</textarea>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<div class="p-4">
|
|
36
|
+
<Indicator v-bind="state">
|
|
37
|
+
<template #indicator>
|
|
38
|
+
<Badge color="error" size="xs" class="badge-sm">5</Badge>
|
|
39
|
+
</template>
|
|
40
|
+
<button class="btn">Button with indicator</button>
|
|
41
|
+
</Indicator>
|
|
42
|
+
</div>
|
|
43
|
+
</Variant>
|
|
44
|
+
|
|
45
|
+
<Variant title="Sides">
|
|
46
|
+
<div class="indicator-story p-4">
|
|
47
|
+
<div v-for="side in ['start', 'end', 'top', 'bottom']" :key="side" class="indicator-story--item">
|
|
48
|
+
<Indicator :side="side">
|
|
49
|
+
<button class="btn w-40">{{ side }}</button>
|
|
50
|
+
<template #indicator>
|
|
51
|
+
<Badge color="primary" size="xs" class="badge-sm">!</Badge>
|
|
52
|
+
</template>
|
|
53
|
+
</Indicator>
|
|
54
|
+
<span class="indicator-story--label">{{ side }}</span>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</Variant>
|
|
58
|
+
|
|
59
|
+
<Variant title="Alignment">
|
|
60
|
+
<template #source>
|
|
61
|
+
<textarea v-pre>
|
|
62
|
+
<!-- End side with middle alignment -->
|
|
63
|
+
<Indicator side="end" align="middle" item>
|
|
64
|
+
<button class="btn w-40">End + Middle</button>
|
|
65
|
+
<template #indicator>
|
|
66
|
+
<Badge color="primary">5</Badge>
|
|
67
|
+
</template>
|
|
68
|
+
</Indicator>
|
|
69
|
+
|
|
70
|
+
<!-- Top side with center alignment -->
|
|
71
|
+
<Indicator side="top" align="center" item>
|
|
72
|
+
<button class="btn w-40">Top + Center</button>
|
|
73
|
+
<template #indicator>
|
|
74
|
+
<Badge color="success">new</Badge>
|
|
75
|
+
</template>
|
|
76
|
+
</Indicator>
|
|
77
|
+
</textarea>
|
|
78
|
+
</template>
|
|
79
|
+
|
|
80
|
+
<div class="flex gap-4 flex-wrap p-4">
|
|
81
|
+
<Indicator side="end" align="middle" item>
|
|
82
|
+
<button class="btn w-40">End + Middle</button>
|
|
83
|
+
<template #indicator>
|
|
84
|
+
<Badge color="primary">5</Badge>
|
|
85
|
+
</template>
|
|
86
|
+
</Indicator>
|
|
87
|
+
<Indicator side="start" align="middle" item>
|
|
88
|
+
<button class="btn w-40">Start + Middle</button>
|
|
89
|
+
<template #indicator>
|
|
90
|
+
<Badge color="warning">3</Badge>
|
|
91
|
+
</template>
|
|
92
|
+
</Indicator>
|
|
93
|
+
<Indicator side="top" align="center" item>
|
|
94
|
+
<button class="btn w-40">Top + Center</button>
|
|
95
|
+
<template #indicator>
|
|
96
|
+
<Badge color="success">new</Badge>
|
|
97
|
+
</template>
|
|
98
|
+
</Indicator>
|
|
99
|
+
<Indicator side="bottom" align="center" item>
|
|
100
|
+
<button class="btn w-40">Bottom + Center</button>
|
|
101
|
+
<template #indicator>
|
|
102
|
+
<Badge color="info">2</Badge>
|
|
103
|
+
</template>
|
|
104
|
+
</Indicator>
|
|
105
|
+
</div>
|
|
106
|
+
</Variant>
|
|
107
|
+
|
|
108
|
+
<Variant title="With Badge">
|
|
109
|
+
<template #source>
|
|
110
|
+
<textarea v-pre>
|
|
111
|
+
<Indicator side="end" item>
|
|
112
|
+
<button class="btn">Messages</button>
|
|
113
|
+
<template #indicator>
|
|
114
|
+
<Badge color="error">5</Badge>
|
|
115
|
+
</template>
|
|
116
|
+
</Indicator>
|
|
117
|
+
</textarea>
|
|
118
|
+
</template>
|
|
119
|
+
|
|
120
|
+
<div class="flex gap-4 flex-wrap p-4">
|
|
121
|
+
<Indicator side="end">
|
|
122
|
+
<button class="btn">Messages</button>
|
|
123
|
+
<template #indicator>
|
|
124
|
+
<Badge color="error">5</Badge>
|
|
125
|
+
</template>
|
|
126
|
+
</Indicator>
|
|
127
|
+
<Indicator side="start">
|
|
128
|
+
<button class="btn">Notifications</button>
|
|
129
|
+
<template #indicator>
|
|
130
|
+
<Badge color="warning">3</Badge>
|
|
131
|
+
</template>
|
|
132
|
+
</Indicator>
|
|
133
|
+
<Indicator side="top">
|
|
134
|
+
<button class="btn">Alerts</button>
|
|
135
|
+
<template #indicator>
|
|
136
|
+
<Badge color="success">1</Badge>
|
|
137
|
+
</template>
|
|
138
|
+
</Indicator>
|
|
139
|
+
<Indicator side="bottom">
|
|
140
|
+
<button class="btn">Updates</button>
|
|
141
|
+
<template #indicator>
|
|
142
|
+
<Badge color="info">2</Badge>
|
|
143
|
+
</template>
|
|
144
|
+
</Indicator>
|
|
145
|
+
</div>
|
|
146
|
+
</Variant>
|
|
147
|
+
|
|
148
|
+
<Variant title="Composition">
|
|
149
|
+
<template #source>
|
|
150
|
+
<textarea v-pre>
|
|
151
|
+
<div class="flex gap-4">
|
|
152
|
+
<Indicator side="end" align="middle">
|
|
153
|
+
<div class="w-16 h-16 bg-base-200 rounded-lg"></div>
|
|
154
|
+
<template #indicator>
|
|
155
|
+
<Badge color="success" class="badge-sm">new</Badge>
|
|
156
|
+
</template>
|
|
157
|
+
</Indicator>
|
|
158
|
+
<Indicator side="top" align="center">
|
|
159
|
+
<div class="w-16 h-16 bg-base-200 rounded-lg"></div>
|
|
160
|
+
<template #indicator>
|
|
161
|
+
<Badge color="warning" class="badge-sm">hot</Badge>
|
|
162
|
+
</template>
|
|
163
|
+
</Indicator>
|
|
164
|
+
</div>
|
|
165
|
+
</textarea>
|
|
166
|
+
</template>
|
|
167
|
+
|
|
168
|
+
<div class="flex gap-4 p-4">
|
|
169
|
+
<Indicator side="end" align="middle">
|
|
170
|
+
<div class="w-16 h-16 bg-base-200 rounded-lg"></div>
|
|
171
|
+
<template #indicator>
|
|
172
|
+
<Badge color="success" class="badge-sm">new</Badge>
|
|
173
|
+
</template>
|
|
174
|
+
</Indicator>
|
|
175
|
+
<Indicator side="top" align="center">
|
|
176
|
+
<div class="w-16 h-16 bg-base-200 rounded-lg"></div>
|
|
177
|
+
<template #indicator>
|
|
178
|
+
<Badge color="warning" class="badge-sm">hot</Badge>
|
|
179
|
+
</template>
|
|
180
|
+
</Indicator>
|
|
181
|
+
<Indicator side="start" align="middle">
|
|
182
|
+
<div class="w-16 h-16 bg-base-200 rounded-lg"></div>
|
|
183
|
+
<template #indicator>
|
|
184
|
+
<Badge color="error" class="badge-sm">urgent</Badge>
|
|
185
|
+
</template>
|
|
186
|
+
</Indicator>
|
|
187
|
+
</div>
|
|
188
|
+
</Variant>
|
|
189
|
+
|
|
190
|
+
</template>
|
|
191
|
+
</Story>
|
|
192
|
+
</template>
|
|
193
|
+
|
|
194
|
+
<style scoped>
|
|
195
|
+
.indicator-story {
|
|
196
|
+
display: flex;
|
|
197
|
+
flex-wrap: wrap;
|
|
198
|
+
gap: 2rem;
|
|
199
|
+
padding: 1rem;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.indicator-story--item {
|
|
203
|
+
display: flex;
|
|
204
|
+
flex-direction: column;
|
|
205
|
+
align-items: center;
|
|
206
|
+
gap: 1rem;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.indicator-story--label {
|
|
210
|
+
font-size: 0.7rem;
|
|
211
|
+
color: #9ca3af;
|
|
212
|
+
font-family: monospace;
|
|
213
|
+
}
|
|
214
|
+
</style>
|
|
215
|
+
|
|
216
|
+
<docs lang="md">
|
|
217
|
+
# Indicator
|
|
218
|
+
|
|
219
|
+
## Description
|
|
220
|
+
|
|
221
|
+
Wraps an element to add a small indicator (like a badge or notification dot) at various positions.
|
|
222
|
+
Built on DaisyUI's `indicator` component. Use it to add notification badges, status markers,
|
|
223
|
+
or any small visual indicator to elements.
|
|
224
|
+
|
|
225
|
+
The indicator content is automatically wrapped in a `span` with the `indicator-item` class.
|
|
226
|
+
|
|
227
|
+
## Props
|
|
228
|
+
|
|
229
|
+
| Prop | Type | Default | Required | Configurable | Description |
|
|
230
|
+
|--------|-------------------|-------------|----------|--------------------|--------------------------------------------------------------------------|
|
|
231
|
+
| `side` | `IndicatorSide` | `undefined` | :x: | :white_check_mark: | Side where indicator is placed: `'start'`, `'end'`, `'top'`, `'bottom'`. |
|
|
232
|
+
| `align`| `IndicatorAlign` | `undefined` | :x: | :white_check_mark: | Alignment along the side: `'start'`, `'end'`, `'center'`, `'middle'`. |
|
|
233
|
+
| `hide` | `Booleanish` | `false` | :x: | :x: | When `true`, hides the indicator content. |
|
|
234
|
+
|
|
235
|
+
> **Configurable** props can be set globally via the Poppy UI plugin (`components.indicator` option). See [Plugin Configuration](../../../stories/Configuration.story.md) for more information.
|
|
236
|
+
|
|
237
|
+
## Usage
|
|
238
|
+
|
|
239
|
+
```vue
|
|
240
|
+
<!-- Basic indicator on end side -->
|
|
241
|
+
<Indicator side="end">
|
|
242
|
+
<button class="btn">Messages</button>
|
|
243
|
+
<template #indicator>
|
|
244
|
+
<Badge color="error">5</Badge>
|
|
245
|
+
</template>
|
|
246
|
+
</Indicator>
|
|
247
|
+
|
|
248
|
+
<!-- With alignment: centered vertically on end side -->
|
|
249
|
+
<Indicator side="end" align="middle">
|
|
250
|
+
<button class="btn h-16">Settings</button>
|
|
251
|
+
<template #indicator>
|
|
252
|
+
<Badge color="primary">new</Badge>
|
|
253
|
+
</template>
|
|
254
|
+
</Indicator>
|
|
255
|
+
|
|
256
|
+
<!-- Top side with center alignment -->
|
|
257
|
+
<Indicator side="top" align="center">
|
|
258
|
+
<div class="w-32 h-16 bg-base-200 rounded-lg"></div>
|
|
259
|
+
<template #indicator>
|
|
260
|
+
<Badge color="success">new</Badge>
|
|
261
|
+
</template>
|
|
262
|
+
</Indicator>
|
|
263
|
+
```
|
|
264
|
+
</docs>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import ClassWrapper from '@/components/ClassWrapper.vue'
|
|
3
|
+
import { useComponentConfig } from '@/composables/use-component-config'
|
|
4
|
+
import type { ComponentClass } from '@/types/utils.type'
|
|
5
|
+
import { getClass } from '@/utils/build-class.util'
|
|
6
|
+
import { isTrue } from '@/utils/is-true'
|
|
7
|
+
import { INDICATOR_CONFIG } from './indicator.context'
|
|
8
|
+
import type { IndicatorProps } from './indicator.props'
|
|
9
|
+
import type { IndicatorAlign, IndicatorSide } from './indicator.types'
|
|
10
|
+
|
|
11
|
+
const indicatorSides: ComponentClass<'indicator', IndicatorSide> = {
|
|
12
|
+
start: 'indicator-start',
|
|
13
|
+
end: 'indicator-end',
|
|
14
|
+
top: 'indicator-top',
|
|
15
|
+
bottom: 'indicator-bottom',
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const indicatorAligns: ComponentClass<'indicator', IndicatorAlign> = {
|
|
19
|
+
start: 'indicator-start',
|
|
20
|
+
end: 'indicator-end',
|
|
21
|
+
center: 'indicator-center',
|
|
22
|
+
middle: 'indicator-middle',
|
|
23
|
+
}
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<script setup lang="ts">
|
|
27
|
+
const props = defineProps<IndicatorProps>()
|
|
28
|
+
const config = useComponentConfig(INDICATOR_CONFIG, props)
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<template>
|
|
32
|
+
<div
|
|
33
|
+
class="indicator"
|
|
34
|
+
:class="[
|
|
35
|
+
getClass(indicatorSides, config.side),
|
|
36
|
+
getClass(indicatorAligns, config.align),
|
|
37
|
+
]"
|
|
38
|
+
>
|
|
39
|
+
<ClassWrapper v-if="$slots.indicator && !isTrue(config.hide)" class="indicator-item">
|
|
40
|
+
<slot name="indicator" />
|
|
41
|
+
</ClassWrapper>
|
|
42
|
+
<slot />
|
|
43
|
+
</div>
|
|
44
|
+
</template>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Booleanish } from '@/types/utils.type'
|
|
2
|
+
import type { IndicatorAlign, IndicatorSide } from './indicator.types'
|
|
3
|
+
|
|
4
|
+
export interface IndicatorConfigurableProps {
|
|
5
|
+
/**
|
|
6
|
+
* Side of the element where the indicator is placed.
|
|
7
|
+
* - `'start'`: Left side of the content.
|
|
8
|
+
* - `'end'`: Right side of the content.
|
|
9
|
+
* - `'top'`: Top of the content.
|
|
10
|
+
* - `'bottom'`: Bottom of the content.
|
|
11
|
+
*/
|
|
12
|
+
side?: IndicatorSide
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Alignment of the indicator along the chosen side.
|
|
16
|
+
* - `'start'`: Aligned to the start of the side.
|
|
17
|
+
* - `'end'`: Aligned to the end of the side.
|
|
18
|
+
* - `'center'`: Centered horizontally (for top/bottom sides).
|
|
19
|
+
* - `'middle'`: Centered vertically (for start/end sides).
|
|
20
|
+
*/
|
|
21
|
+
align?: IndicatorAlign
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface IndicatorProps extends IndicatorConfigurableProps {
|
|
25
|
+
/**
|
|
26
|
+
* When `true`, hides the indicator content.
|
|
27
|
+
*
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
hide?: Booleanish
|
|
31
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Button from '@/components/actions/button/Button.vue'
|
|
3
|
+
import { reactive } from 'vue'
|
|
4
|
+
import Join from './Join.vue'
|
|
5
|
+
import type { JoinProps } from './join.props'
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<script setup lang="ts">
|
|
9
|
+
const state = reactive<JoinProps>({
|
|
10
|
+
direction: 'horizontal',
|
|
11
|
+
})
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<Story group="components" title="Layout/Join" auto-props-disabled>
|
|
16
|
+
<template #default>
|
|
17
|
+
|
|
18
|
+
<Variant title="Default">
|
|
19
|
+
<template #controls>
|
|
20
|
+
<HstSelect title="Direction" v-model="state.direction" :options="['horizontal', 'vertical']" />
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<template #source>
|
|
24
|
+
<textarea v-pre>
|
|
25
|
+
<Join>
|
|
26
|
+
<Button>First</Button>
|
|
27
|
+
<Button>Second</Button>
|
|
28
|
+
<Button>Third</Button>
|
|
29
|
+
</Join>
|
|
30
|
+
</textarea>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<Join v-bind="state">
|
|
34
|
+
<Button>First</Button>
|
|
35
|
+
<Button>Second</Button>
|
|
36
|
+
<Button>Third</Button>
|
|
37
|
+
</Join>
|
|
38
|
+
</Variant>
|
|
39
|
+
|
|
40
|
+
<Variant title="Horizontal">
|
|
41
|
+
<template #source>
|
|
42
|
+
<textarea v-pre>
|
|
43
|
+
<Join direction="horizontal">
|
|
44
|
+
<Button>Save</Button>
|
|
45
|
+
<Button>Edit</Button>
|
|
46
|
+
<Button>Delete</Button>
|
|
47
|
+
</Join>
|
|
48
|
+
</textarea>
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<Join direction="horizontal">
|
|
52
|
+
<Button>Save</Button>
|
|
53
|
+
<Button>Edit</Button>
|
|
54
|
+
<Button>Delete</Button>
|
|
55
|
+
</Join>
|
|
56
|
+
</Variant>
|
|
57
|
+
|
|
58
|
+
<Variant title="Vertical">
|
|
59
|
+
<template #source>
|
|
60
|
+
<textarea v-pre>
|
|
61
|
+
<Join direction="vertical">
|
|
62
|
+
<Button>Item 1</Button>
|
|
63
|
+
<Button>Item 2</Button>
|
|
64
|
+
<Button>Item 3</Button>
|
|
65
|
+
</Join>
|
|
66
|
+
</textarea>
|
|
67
|
+
</template>
|
|
68
|
+
|
|
69
|
+
<Join direction="vertical">
|
|
70
|
+
<Button>Item 1</Button>
|
|
71
|
+
<Button>Item 2</Button>
|
|
72
|
+
<Button>Item 3</Button>
|
|
73
|
+
</Join>
|
|
74
|
+
</Variant>
|
|
75
|
+
|
|
76
|
+
<Variant title="Composition">
|
|
77
|
+
<template #source>
|
|
78
|
+
<textarea v-pre>
|
|
79
|
+
<div class="flex gap-4">
|
|
80
|
+
<Join>
|
|
81
|
+
<Button color="primary">Primary</Button>
|
|
82
|
+
<Button color="secondary">Secondary</Button>
|
|
83
|
+
</Join>
|
|
84
|
+
<Join direction="vertical">
|
|
85
|
+
<Button color="accent">Top</Button>
|
|
86
|
+
<Button color="info">Bottom</Button>
|
|
87
|
+
</Join>
|
|
88
|
+
</div>
|
|
89
|
+
</textarea>
|
|
90
|
+
</template>
|
|
91
|
+
|
|
92
|
+
<div class="flex gap-4">
|
|
93
|
+
<Join>
|
|
94
|
+
<Button color="primary">Primary</Button>
|
|
95
|
+
<Button color="secondary">Secondary</Button>
|
|
96
|
+
</Join>
|
|
97
|
+
<Join direction="vertical">
|
|
98
|
+
<Button color="accent">Top</Button>
|
|
99
|
+
<Button color="info">Bottom</Button>
|
|
100
|
+
</Join>
|
|
101
|
+
</div>
|
|
102
|
+
</Variant>
|
|
103
|
+
</template>
|
|
104
|
+
</Story>
|
|
105
|
+
</template>
|
|
106
|
+
|
|
107
|
+
<docs lang="md">
|
|
108
|
+
# Join
|
|
109
|
+
|
|
110
|
+
## Description
|
|
111
|
+
|
|
112
|
+
Groups items together side by side or in a column with joined borders.
|
|
113
|
+
Built on DaisyUI's `join` component. Use it to create button groups, segmented controls,
|
|
114
|
+
or any set of elements that should visually appear connected.
|
|
115
|
+
|
|
116
|
+
## Props
|
|
117
|
+
|
|
118
|
+
| Prop | Type | Default | Required | Configurable | Description |
|
|
119
|
+
|------------|-----------------|----------------|----------|--------------------|---------------------------------------------------|
|
|
120
|
+
| `direction`| `JoinDirection` | `'horizontal'` | :x: | :white_check_mark: | Layout direction: `'horizontal'` or `'vertical'`. |
|
|
121
|
+
|
|
122
|
+
> **Configurable** props can be set globally via the Poppy UI plugin (`components.join` option). See [Plugin Configuration](../../../stories/Configuration.story.md) for more information.
|
|
123
|
+
|
|
124
|
+
## Usage
|
|
125
|
+
|
|
126
|
+
```vue
|
|
127
|
+
<!-- Horizontal join (default) -->
|
|
128
|
+
<Join>
|
|
129
|
+
<Button>First</Button>
|
|
130
|
+
<Button>Second</Button>
|
|
131
|
+
<Button>Third</Button>
|
|
132
|
+
</Join>
|
|
133
|
+
|
|
134
|
+
<!-- Vertical join -->
|
|
135
|
+
<Join direction="vertical">
|
|
136
|
+
<Button>Top</Button>
|
|
137
|
+
<Button>Bottom</Button>
|
|
138
|
+
</Join>
|
|
139
|
+
|
|
140
|
+
<!-- With custom content -->
|
|
141
|
+
<Join>
|
|
142
|
+
<button class="btn">One</button>
|
|
143
|
+
<button class="btn">Two</button>
|
|
144
|
+
<button class="btn">Three</button>
|
|
145
|
+
</Join>
|
|
146
|
+
```
|
|
147
|
+
</docs>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import ClassWrapper from '@/components/ClassWrapper.vue'
|
|
3
|
+
import { useComponentConfig } from '@/composables/use-component-config'
|
|
4
|
+
import type { ComponentClass } from '@/types/utils.type'
|
|
5
|
+
import { getClass } from '@/utils/build-class.util'
|
|
6
|
+
import { JOIN_CONFIG } from './join.context'
|
|
7
|
+
import type { JoinProps } from './join.props'
|
|
8
|
+
import type { JoinDirection } from './join.types'
|
|
9
|
+
|
|
10
|
+
const joinDirections: ComponentClass<'join', JoinDirection> = {
|
|
11
|
+
horizontal: 'join-horizontal',
|
|
12
|
+
vertical: 'join-vertical',
|
|
13
|
+
}
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<script setup lang="ts">
|
|
17
|
+
const props = defineProps<JoinProps>()
|
|
18
|
+
const config = useComponentConfig(JOIN_CONFIG, props, {
|
|
19
|
+
direction: 'horizontal',
|
|
20
|
+
})
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<div
|
|
25
|
+
class="join"
|
|
26
|
+
:class="getClass(joinDirections, config.direction)"
|
|
27
|
+
>
|
|
28
|
+
<ClassWrapper class="join-item">
|
|
29
|
+
<slot></slot>
|
|
30
|
+
</ClassWrapper>
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { JoinDirection } from './join.types'
|
|
2
|
+
|
|
3
|
+
export interface JoinConfigurableProps {
|
|
4
|
+
/**
|
|
5
|
+
* Direction in which joined items are laid out.
|
|
6
|
+
* - `'horizontal'`: Items are joined side by side.
|
|
7
|
+
* - `'vertical'`: Items are joined in a column.
|
|
8
|
+
*
|
|
9
|
+
* @default 'horizontal'
|
|
10
|
+
*/
|
|
11
|
+
direction?: JoinDirection
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface JoinProps extends JoinConfigurableProps {}
|