@poppy-ui/vue 0.0.0-dev.36.93ba5b2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +103 -0
- package/dist/ClassWrapper-BNZO3mhP.cjs +2 -0
- package/dist/ClassWrapper-BNZO3mhP.cjs.map +1 -0
- package/dist/ClassWrapper-DdnnHfAj.js +24 -0
- package/dist/ClassWrapper-DdnnHfAj.js.map +1 -0
- package/dist/Toast-DuytECg8.cjs +2 -0
- package/dist/Toast-DuytECg8.cjs.map +1 -0
- package/dist/Toast-fSQWLl0R.js +63 -0
- package/dist/Toast-fSQWLl0R.js.map +1 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/_plugin-vue_export-helper-BTmtiIyf.cjs +1 -0
- package/dist/build-class.util-Cp-ZBFgO.js +1730 -0
- package/dist/build-class.util-Cp-ZBFgO.js.map +1 -0
- package/dist/build-class.util-Lo1-M_t1.cjs +2 -0
- package/dist/build-class.util-Lo1-M_t1.cjs.map +1 -0
- package/dist/components/ClassWrapper.d.ts +27 -0
- package/dist/components/ClassWrapper.d.ts.map +1 -0
- package/dist/components/actions/button/Button.d.ts +21 -0
- package/dist/components/actions/button/Button.d.ts.map +1 -0
- package/dist/components/actions/button/button.context.d.ts +2 -0
- package/dist/components/actions/button/button.context.d.ts.map +1 -0
- package/dist/components/actions/button/button.props.d.ts +58 -0
- package/dist/components/actions/button/button.props.d.ts.map +1 -0
- package/dist/components/actions/button/button.types.d.ts +7 -0
- package/dist/components/actions/button/button.types.d.ts.map +1 -0
- package/dist/components/actions/dropdown/Dropdown.d.ts +25 -0
- package/dist/components/actions/dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/actions/dropdown/dropdown.context.d.ts +2 -0
- package/dist/components/actions/dropdown/dropdown.context.d.ts.map +1 -0
- package/dist/components/actions/dropdown/dropdown.props.d.ts +60 -0
- package/dist/components/actions/dropdown/dropdown.props.d.ts.map +1 -0
- package/dist/components/actions/dropdown/dropdown.types.d.ts +4 -0
- package/dist/components/actions/dropdown/dropdown.types.d.ts.map +1 -0
- package/dist/components/actions/fab/Fab.d.ts +16 -0
- package/dist/components/actions/fab/Fab.d.ts.map +1 -0
- package/dist/components/actions/fab/fab.context.d.ts +2 -0
- package/dist/components/actions/fab/fab.context.d.ts.map +1 -0
- package/dist/components/actions/fab/fab.props.d.ts +11 -0
- package/dist/components/actions/fab/fab.props.d.ts.map +1 -0
- package/dist/components/actions/fab/fab.types.d.ts +2 -0
- package/dist/components/actions/fab/fab.types.d.ts.map +1 -0
- package/dist/components/actions/modal/Modal.d.ts +42 -0
- package/dist/components/actions/modal/Modal.d.ts.map +1 -0
- package/dist/components/actions/modal/modal.context.d.ts +2 -0
- package/dist/components/actions/modal/modal.context.d.ts.map +1 -0
- package/dist/components/actions/modal/modal.props.d.ts +31 -0
- package/dist/components/actions/modal/modal.props.d.ts.map +1 -0
- package/dist/components/actions/modal/modal.types.d.ts +2 -0
- package/dist/components/actions/modal/modal.types.d.ts.map +1 -0
- package/dist/components/actions/public.d.ts +6 -0
- package/dist/components/actions/public.d.ts.map +1 -0
- package/dist/components/actions/public.es.js +323 -0
- package/dist/components/actions/public.es.js.map +1 -0
- package/dist/components/actions/public.types.d.ts +11 -0
- package/dist/components/actions/public.types.d.ts.map +1 -0
- package/dist/components/actions/public.umd.js +2 -0
- package/dist/components/actions/public.umd.js.map +1 -0
- package/dist/components/actions/swap/Swap.d.ts +36 -0
- package/dist/components/actions/swap/Swap.d.ts.map +1 -0
- package/dist/components/actions/swap/swap.context.d.ts +2 -0
- package/dist/components/actions/swap/swap.context.d.ts.map +1 -0
- package/dist/components/actions/swap/swap.props.d.ts +18 -0
- package/dist/components/actions/swap/swap.props.d.ts.map +1 -0
- package/dist/components/actions/swap/swap.types.d.ts +2 -0
- package/dist/components/actions/swap/swap.types.d.ts.map +1 -0
- package/dist/components/app/PoppyApp.d.ts +14 -0
- package/dist/components/app/PoppyApp.d.ts.map +1 -0
- package/dist/components/app/public.d.ts +2 -0
- package/dist/components/app/public.d.ts.map +1 -0
- package/dist/components/app/public.es.js +42 -0
- package/dist/components/app/public.es.js.map +1 -0
- package/dist/components/app/public.umd.js +2 -0
- package/dist/components/app/public.umd.js.map +1 -0
- package/dist/components/data/checkbox/Checkbox.d.ts +25 -0
- package/dist/components/data/checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/data/checkbox/checkbox.context.d.ts +2 -0
- package/dist/components/data/checkbox/checkbox.context.d.ts.map +1 -0
- package/dist/components/data/checkbox/checkbox.props.d.ts +44 -0
- package/dist/components/data/checkbox/checkbox.props.d.ts.map +1 -0
- package/dist/components/data/checkbox/checkbox.types.d.ts +4 -0
- package/dist/components/data/checkbox/checkbox.types.d.ts.map +1 -0
- package/dist/components/data/field-set/FieldSet.d.ts +21 -0
- package/dist/components/data/field-set/FieldSet.d.ts.map +1 -0
- package/dist/components/data/field-set/field-set.props.d.ts +20 -0
- package/dist/components/data/field-set/field-set.props.d.ts.map +1 -0
- package/dist/components/data/form/Form.d.ts +37 -0
- package/dist/components/data/form/Form.d.ts.map +1 -0
- package/dist/components/data/form/form.context.d.ts +57 -0
- package/dist/components/data/form/form.context.d.ts.map +1 -0
- package/dist/components/data/form/form.props.d.ts +28 -0
- package/dist/components/data/form/form.props.d.ts.map +1 -0
- package/dist/components/data/form/form.types.d.ts +25 -0
- package/dist/components/data/form/form.types.d.ts.map +1 -0
- package/dist/components/data/form-field/FormField.d.ts +28 -0
- package/dist/components/data/form-field/FormField.d.ts.map +1 -0
- package/dist/components/data/form-field/form-field.context.d.ts +53 -0
- package/dist/components/data/form-field/form-field.context.d.ts.map +1 -0
- package/dist/components/data/form-field/form-field.props.d.ts +37 -0
- package/dist/components/data/form-field/form-field.props.d.ts.map +1 -0
- package/dist/components/data/form-field/form-field.types.d.ts +2 -0
- package/dist/components/data/form-field/form-field.types.d.ts.map +1 -0
- package/dist/components/data/input/Input.d.ts +31 -0
- package/dist/components/data/input/Input.d.ts.map +1 -0
- package/dist/components/data/input/input.context.d.ts +2 -0
- package/dist/components/data/input/input.context.d.ts.map +1 -0
- package/dist/components/data/input/input.props.d.ts +78 -0
- package/dist/components/data/input/input.props.d.ts.map +1 -0
- package/dist/components/data/input/input.types.d.ts +6 -0
- package/dist/components/data/input/input.types.d.ts.map +1 -0
- package/dist/components/data/public.d.ts +13 -0
- package/dist/components/data/public.d.ts.map +1 -0
- package/dist/components/data/public.es.js +1816 -0
- package/dist/components/data/public.es.js.map +1 -0
- package/dist/components/data/public.types.d.ts +21 -0
- package/dist/components/data/public.types.d.ts.map +1 -0
- package/dist/components/data/public.umd.js +2 -0
- package/dist/components/data/public.umd.js.map +1 -0
- package/dist/components/data/radio/Radio.d.ts +25 -0
- package/dist/components/data/radio/Radio.d.ts.map +1 -0
- package/dist/components/data/radio/radio.context.d.ts +2 -0
- package/dist/components/data/radio/radio.context.d.ts.map +1 -0
- package/dist/components/data/radio/radio.props.d.ts +47 -0
- package/dist/components/data/radio/radio.props.d.ts.map +1 -0
- package/dist/components/data/radio/radio.types.d.ts +4 -0
- package/dist/components/data/radio/radio.types.d.ts.map +1 -0
- package/dist/components/data/radio-group/RadioGroup.d.ts +28 -0
- package/dist/components/data/radio-group/RadioGroup.d.ts.map +1 -0
- package/dist/components/data/radio-group/radio-group.context.d.ts +13 -0
- package/dist/components/data/radio-group/radio-group.context.d.ts.map +1 -0
- package/dist/components/data/radio-group/radio-group.props.d.ts +12 -0
- package/dist/components/data/radio-group/radio-group.props.d.ts.map +1 -0
- package/dist/components/data/rating/Rating.d.ts +26 -0
- package/dist/components/data/rating/Rating.d.ts.map +1 -0
- package/dist/components/data/rating/rating.context.d.ts +2 -0
- package/dist/components/data/rating/rating.context.d.ts.map +1 -0
- package/dist/components/data/rating/rating.props.d.ts +44 -0
- package/dist/components/data/rating/rating.props.d.ts.map +1 -0
- package/dist/components/data/rating/rating.types.d.ts +6 -0
- package/dist/components/data/rating/rating.types.d.ts.map +1 -0
- package/dist/components/data/select/Select.d.ts +79 -0
- package/dist/components/data/select/Select.d.ts.map +1 -0
- package/dist/components/data/select/select.context.d.ts +2 -0
- package/dist/components/data/select/select.context.d.ts.map +1 -0
- package/dist/components/data/select/select.props.d.ts +99 -0
- package/dist/components/data/select/select.props.d.ts.map +1 -0
- package/dist/components/data/select/select.types.d.ts +20 -0
- package/dist/components/data/select/select.types.d.ts.map +1 -0
- package/dist/components/data/slider/Slider.d.ts +29 -0
- package/dist/components/data/slider/Slider.d.ts.map +1 -0
- package/dist/components/data/slider/slider.context.d.ts +2 -0
- package/dist/components/data/slider/slider.context.d.ts.map +1 -0
- package/dist/components/data/slider/slider.props.d.ts +70 -0
- package/dist/components/data/slider/slider.props.d.ts.map +1 -0
- package/dist/components/data/slider/slider.types.d.ts +7 -0
- package/dist/components/data/slider/slider.types.d.ts.map +1 -0
- package/dist/components/data/textarea/Textarea.d.ts +22 -0
- package/dist/components/data/textarea/Textarea.d.ts.map +1 -0
- package/dist/components/data/textarea/textarea.context.d.ts +2 -0
- package/dist/components/data/textarea/textarea.context.d.ts.map +1 -0
- package/dist/components/data/textarea/textarea.props.d.ts +64 -0
- package/dist/components/data/textarea/textarea.props.d.ts.map +1 -0
- package/dist/components/data/textarea/textarea.types.d.ts +5 -0
- package/dist/components/data/textarea/textarea.types.d.ts.map +1 -0
- package/dist/components/data/toggle/Toggle.d.ts +31 -0
- package/dist/components/data/toggle/Toggle.d.ts.map +1 -0
- package/dist/components/data/toggle/toggle.context.d.ts +2 -0
- package/dist/components/data/toggle/toggle.context.d.ts.map +1 -0
- package/dist/components/data/toggle/toggle.props.d.ts +38 -0
- package/dist/components/data/toggle/toggle.props.d.ts.map +1 -0
- package/dist/components/data/toggle/toggle.types.d.ts +4 -0
- package/dist/components/data/toggle/toggle.types.d.ts.map +1 -0
- package/dist/components/display/accordion/Accordion.d.ts +42 -0
- package/dist/components/display/accordion/Accordion.d.ts.map +1 -0
- package/dist/components/display/accordion/AccordionItem.d.ts +35 -0
- package/dist/components/display/accordion/AccordionItem.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion-item.context.d.ts +2 -0
- package/dist/components/display/accordion/accordion-item.context.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion-item.props.d.ts +19 -0
- package/dist/components/display/accordion/accordion-item.props.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion-item.types.d.ts +2 -0
- package/dist/components/display/accordion/accordion-item.types.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion.context.d.ts +9 -0
- package/dist/components/display/accordion/accordion.context.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion.props.d.ts +15 -0
- package/dist/components/display/accordion/accordion.props.d.ts.map +1 -0
- package/dist/components/display/avatar/Avatar.d.ts +14 -0
- package/dist/components/display/avatar/Avatar.d.ts.map +1 -0
- package/dist/components/display/avatar/avatar.context.d.ts +2 -0
- package/dist/components/display/avatar/avatar.context.d.ts.map +1 -0
- package/dist/components/display/avatar/avatar.props.d.ts +45 -0
- package/dist/components/display/avatar/avatar.props.d.ts.map +1 -0
- package/dist/components/display/avatar/avatar.types.d.ts +5 -0
- package/dist/components/display/avatar/avatar.types.d.ts.map +1 -0
- package/dist/components/display/badge/Badge.d.ts +12 -0
- package/dist/components/display/badge/Badge.d.ts.map +1 -0
- package/dist/components/display/badge/badge.context.d.ts +2 -0
- package/dist/components/display/badge/badge.context.d.ts.map +1 -0
- package/dist/components/display/badge/badge.props.d.ts +20 -0
- package/dist/components/display/badge/badge.props.d.ts.map +1 -0
- package/dist/components/display/badge/badge.types.d.ts +5 -0
- package/dist/components/display/badge/badge.types.d.ts.map +1 -0
- package/dist/components/display/card/Card.d.ts +12 -0
- package/dist/components/display/card/Card.d.ts.map +1 -0
- package/dist/components/display/card/CardActions.d.ts +12 -0
- package/dist/components/display/card/CardActions.d.ts.map +1 -0
- package/dist/components/display/card/CardBody.d.ts +14 -0
- package/dist/components/display/card/CardBody.d.ts.map +1 -0
- package/dist/components/display/card/CardTitle.d.ts +14 -0
- package/dist/components/display/card/CardTitle.d.ts.map +1 -0
- package/dist/components/display/card/card-actions.context.d.ts +2 -0
- package/dist/components/display/card/card-actions.context.d.ts.map +1 -0
- package/dist/components/display/card/card-actions.props.d.ts +15 -0
- package/dist/components/display/card/card-actions.props.d.ts.map +1 -0
- package/dist/components/display/card/card-actions.types.d.ts +2 -0
- package/dist/components/display/card/card-actions.types.d.ts.map +1 -0
- package/dist/components/display/card/card.context.d.ts +2 -0
- package/dist/components/display/card/card.context.d.ts.map +1 -0
- package/dist/components/display/card/card.props.d.ts +30 -0
- package/dist/components/display/card/card.props.d.ts.map +1 -0
- package/dist/components/display/card/card.types.d.ts +4 -0
- package/dist/components/display/card/card.types.d.ts.map +1 -0
- package/dist/components/display/carousel/Carousel.d.ts +16 -0
- package/dist/components/display/carousel/Carousel.d.ts.map +1 -0
- package/dist/components/display/carousel/carousel.context.d.ts +2 -0
- package/dist/components/display/carousel/carousel.context.d.ts.map +1 -0
- package/dist/components/display/carousel/carousel.props.d.ts +52 -0
- package/dist/components/display/carousel/carousel.props.d.ts.map +1 -0
- package/dist/components/display/carousel/carousel.types.d.ts +3 -0
- package/dist/components/display/carousel/carousel.types.d.ts.map +1 -0
- package/dist/components/display/chat/Chat.d.ts +20 -0
- package/dist/components/display/chat/Chat.d.ts.map +1 -0
- package/dist/components/display/chat/chat.context.d.ts +2 -0
- package/dist/components/display/chat/chat.context.d.ts.map +1 -0
- package/dist/components/display/chat/chat.props.d.ts +18 -0
- package/dist/components/display/chat/chat.props.d.ts.map +1 -0
- package/dist/components/display/chat/chat.types.d.ts +3 -0
- package/dist/components/display/chat/chat.types.d.ts.map +1 -0
- package/dist/components/display/countdown/Countdown.d.ts +38 -0
- package/dist/components/display/countdown/Countdown.d.ts.map +1 -0
- package/dist/components/display/countdown/countdown.context.d.ts +2 -0
- package/dist/components/display/countdown/countdown.context.d.ts.map +1 -0
- package/dist/components/display/countdown/countdown.props.d.ts +25 -0
- package/dist/components/display/countdown/countdown.props.d.ts.map +1 -0
- package/dist/components/display/countdown/countdown.types.d.ts +23 -0
- package/dist/components/display/countdown/countdown.types.d.ts.map +1 -0
- package/dist/components/display/diff/Diff.d.ts +16 -0
- package/dist/components/display/diff/Diff.d.ts.map +1 -0
- package/dist/components/display/hover-3d/Hover3d.d.ts +12 -0
- package/dist/components/display/hover-3d/Hover3d.d.ts.map +1 -0
- package/dist/components/display/hover-3d/hover-3d.props.d.ts +9 -0
- package/dist/components/display/hover-3d/hover-3d.props.d.ts.map +1 -0
- package/dist/components/display/hover-gallery/HoverGallery.d.ts +14 -0
- package/dist/components/display/hover-gallery/HoverGallery.d.ts.map +1 -0
- package/dist/components/display/kbd/Kbd.d.ts +12 -0
- package/dist/components/display/kbd/Kbd.d.ts.map +1 -0
- package/dist/components/display/kbd/kbd.context.d.ts +2 -0
- package/dist/components/display/kbd/kbd.context.d.ts.map +1 -0
- package/dist/components/display/kbd/kbd.props.d.ts +12 -0
- package/dist/components/display/kbd/kbd.props.d.ts.map +1 -0
- package/dist/components/display/kbd/kbd.types.d.ts +3 -0
- package/dist/components/display/kbd/kbd.types.d.ts.map +1 -0
- package/dist/components/display/list/List.d.ts +17 -0
- package/dist/components/display/list/List.d.ts.map +1 -0
- package/dist/components/display/list/ListItem.d.ts +22 -0
- package/dist/components/display/list/ListItem.d.ts.map +1 -0
- package/dist/components/display/list/list-item.props.d.ts +17 -0
- package/dist/components/display/list/list-item.props.d.ts.map +1 -0
- package/dist/components/display/list/list.props.d.ts +8 -0
- package/dist/components/display/list/list.props.d.ts.map +1 -0
- package/dist/components/display/public.d.ts +21 -0
- package/dist/components/display/public.d.ts.map +1 -0
- package/dist/components/display/public.es.js +2 -0
- package/dist/components/display/public.types.d.ts +28 -0
- package/dist/components/display/public.types.d.ts.map +1 -0
- package/dist/components/display/public.umd.js +1 -0
- package/dist/components/display/stat/Stat.d.ts +22 -0
- package/dist/components/display/stat/Stat.d.ts.map +1 -0
- package/dist/components/display/stat/Stats.d.ts +12 -0
- package/dist/components/display/stat/Stats.d.ts.map +1 -0
- package/dist/components/display/stat/stat.context.d.ts +2 -0
- package/dist/components/display/stat/stat.context.d.ts.map +1 -0
- package/dist/components/display/stat/stat.props.d.ts +42 -0
- package/dist/components/display/stat/stat.props.d.ts.map +1 -0
- package/dist/components/display/stat/stat.types.d.ts +2 -0
- package/dist/components/display/stat/stat.types.d.ts.map +1 -0
- package/dist/components/display/stat/stats.context.d.ts +2 -0
- package/dist/components/display/stat/stats.context.d.ts.map +1 -0
- package/dist/components/display/stat/stats.props.d.ts +11 -0
- package/dist/components/display/stat/stats.props.d.ts.map +1 -0
- package/dist/components/display/stat/stats.types.d.ts +2 -0
- package/dist/components/display/stat/stats.types.d.ts.map +1 -0
- package/dist/components/display/status/Status.d.ts +5 -0
- package/dist/components/display/status/Status.d.ts.map +1 -0
- package/dist/components/display/status/status.context.d.ts +2 -0
- package/dist/components/display/status/status.context.d.ts.map +1 -0
- package/dist/components/display/status/status.props.d.ts +27 -0
- package/dist/components/display/status/status.props.d.ts.map +1 -0
- package/dist/components/display/status/status.types.d.ts +5 -0
- package/dist/components/display/status/status.types.d.ts.map +1 -0
- package/dist/components/feedback/alert/Alert.d.ts +14 -0
- package/dist/components/feedback/alert/Alert.d.ts.map +1 -0
- package/dist/components/feedback/alert/alert.context.d.ts +2 -0
- package/dist/components/feedback/alert/alert.context.d.ts.map +1 -0
- package/dist/components/feedback/alert/alert.props.d.ts +27 -0
- package/dist/components/feedback/alert/alert.props.d.ts.map +1 -0
- package/dist/components/feedback/alert/alert.types.d.ts +4 -0
- package/dist/components/feedback/alert/alert.types.d.ts.map +1 -0
- package/dist/components/feedback/loading/Loading.d.ts +5 -0
- package/dist/components/feedback/loading/Loading.d.ts.map +1 -0
- package/dist/components/feedback/loading/loading.context.d.ts +2 -0
- package/dist/components/feedback/loading/loading.context.d.ts.map +1 -0
- package/dist/components/feedback/loading/loading.props.d.ts +23 -0
- package/dist/components/feedback/loading/loading.props.d.ts.map +1 -0
- package/dist/components/feedback/loading/loading.types.d.ts +5 -0
- package/dist/components/feedback/loading/loading.types.d.ts.map +1 -0
- package/dist/components/feedback/progress/Progress.d.ts +5 -0
- package/dist/components/feedback/progress/Progress.d.ts.map +1 -0
- package/dist/components/feedback/progress/progress.context.d.ts +2 -0
- package/dist/components/feedback/progress/progress.context.d.ts.map +1 -0
- package/dist/components/feedback/progress/progress.props.d.ts +28 -0
- package/dist/components/feedback/progress/progress.props.d.ts.map +1 -0
- package/dist/components/feedback/progress/progress.types.d.ts +2 -0
- package/dist/components/feedback/progress/progress.types.d.ts.map +1 -0
- package/dist/components/feedback/public.d.ts +6 -0
- package/dist/components/feedback/public.d.ts.map +1 -0
- package/dist/components/feedback/public.es.js +128 -0
- package/dist/components/feedback/public.es.js.map +1 -0
- package/dist/components/feedback/public.types.d.ts +13 -0
- package/dist/components/feedback/public.types.d.ts.map +1 -0
- package/dist/components/feedback/public.umd.js +2 -0
- package/dist/components/feedback/public.umd.js.map +1 -0
- package/dist/components/feedback/radial-progress/radial-progress.context.d.ts +2 -0
- package/dist/components/feedback/radial-progress/radial-progress.context.d.ts.map +1 -0
- package/dist/components/feedback/radial-progress/radial-progress.props.d.ts +32 -0
- package/dist/components/feedback/radial-progress/radial-progress.props.d.ts.map +1 -0
- package/dist/components/feedback/radial-progress/radial-progress.types.d.ts +2 -0
- package/dist/components/feedback/radial-progress/radial-progress.types.d.ts.map +1 -0
- package/dist/components/feedback/toast/Toast.d.ts +12 -0
- package/dist/components/feedback/toast/Toast.d.ts.map +1 -0
- package/dist/components/feedback/toast/toast.context.d.ts +9 -0
- package/dist/components/feedback/toast/toast.context.d.ts.map +1 -0
- package/dist/components/feedback/toast/toast.props.d.ts +31 -0
- package/dist/components/feedback/toast/toast.props.d.ts.map +1 -0
- package/dist/components/feedback/toast/toast.types.d.ts +5 -0
- package/dist/components/feedback/toast/toast.types.d.ts.map +1 -0
- package/dist/components/feedback/tooltip/Tooltip.d.ts +14 -0
- package/dist/components/feedback/tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/feedback/tooltip/tooltip.context.d.ts +2 -0
- package/dist/components/feedback/tooltip/tooltip.context.d.ts.map +1 -0
- package/dist/components/feedback/tooltip/tooltip.props.d.ts +39 -0
- package/dist/components/feedback/tooltip/tooltip.props.d.ts.map +1 -0
- package/dist/components/feedback/tooltip/tooltip.types.d.ts +3 -0
- package/dist/components/feedback/tooltip/tooltip.types.d.ts.map +1 -0
- package/dist/components/layout/divider/Divider.d.ts +12 -0
- package/dist/components/layout/divider/Divider.d.ts.map +1 -0
- package/dist/components/layout/divider/divider.context.d.ts +2 -0
- package/dist/components/layout/divider/divider.context.d.ts.map +1 -0
- package/dist/components/layout/divider/divider.props.d.ts +26 -0
- package/dist/components/layout/divider/divider.props.d.ts.map +1 -0
- package/dist/components/layout/divider/divider.types.d.ts +4 -0
- package/dist/components/layout/divider/divider.types.d.ts.map +1 -0
- package/dist/components/layout/drawer/Drawer.d.ts +39 -0
- package/dist/components/layout/drawer/Drawer.d.ts.map +1 -0
- package/dist/components/layout/drawer/drawer.context.d.ts +2 -0
- package/dist/components/layout/drawer/drawer.context.d.ts.map +1 -0
- package/dist/components/layout/drawer/drawer.props.d.ts +27 -0
- package/dist/components/layout/drawer/drawer.props.d.ts.map +1 -0
- package/dist/components/layout/drawer/drawer.types.d.ts +6 -0
- package/dist/components/layout/drawer/drawer.types.d.ts.map +1 -0
- package/dist/components/layout/indicator/Indicator.d.ts +14 -0
- package/dist/components/layout/indicator/Indicator.d.ts.map +1 -0
- package/dist/components/layout/indicator/indicator.context.d.ts +2 -0
- package/dist/components/layout/indicator/indicator.context.d.ts.map +1 -0
- package/dist/components/layout/indicator/indicator.props.d.ts +28 -0
- package/dist/components/layout/indicator/indicator.props.d.ts.map +1 -0
- package/dist/components/layout/indicator/indicator.types.d.ts +3 -0
- package/dist/components/layout/indicator/indicator.types.d.ts.map +1 -0
- package/dist/components/layout/join/Join.d.ts +12 -0
- package/dist/components/layout/join/Join.d.ts.map +1 -0
- package/dist/components/layout/join/join.context.d.ts +2 -0
- package/dist/components/layout/join/join.context.d.ts.map +1 -0
- package/dist/components/layout/join/join.props.d.ts +14 -0
- package/dist/components/layout/join/join.props.d.ts.map +1 -0
- package/dist/components/layout/join/join.types.d.ts +2 -0
- package/dist/components/layout/join/join.types.d.ts.map +1 -0
- package/dist/components/layout/mask/Mask.d.ts +12 -0
- package/dist/components/layout/mask/Mask.d.ts.map +1 -0
- package/dist/components/layout/mask/mask.context.d.ts +2 -0
- package/dist/components/layout/mask/mask.context.d.ts.map +1 -0
- package/dist/components/layout/mask/mask.props.d.ts +37 -0
- package/dist/components/layout/mask/mask.props.d.ts.map +1 -0
- package/dist/components/layout/mask/mask.types.d.ts +3 -0
- package/dist/components/layout/mask/mask.types.d.ts.map +1 -0
- package/dist/components/layout/public.d.ts +7 -0
- package/dist/components/layout/public.d.ts.map +1 -0
- package/dist/components/layout/public.es.js +206 -0
- package/dist/components/layout/public.es.js.map +1 -0
- package/dist/components/layout/public.types.d.ts +13 -0
- package/dist/components/layout/public.types.d.ts.map +1 -0
- package/dist/components/layout/public.umd.js +2 -0
- package/dist/components/layout/public.umd.js.map +1 -0
- package/dist/components/layout/stack/Stack.d.ts +12 -0
- package/dist/components/layout/stack/Stack.d.ts.map +1 -0
- package/dist/components/layout/stack/stack.context.d.ts +2 -0
- package/dist/components/layout/stack/stack.context.d.ts.map +1 -0
- package/dist/components/layout/stack/stack.props.d.ts +12 -0
- package/dist/components/layout/stack/stack.props.d.ts.map +1 -0
- package/dist/components/layout/stack/stack.types.d.ts +2 -0
- package/dist/components/layout/stack/stack.types.d.ts.map +1 -0
- package/dist/components/media/img/Img.d.ts +15 -0
- package/dist/components/media/img/Img.d.ts.map +1 -0
- package/dist/components/media/img/img.context.d.ts +2 -0
- package/dist/components/media/img/img.context.d.ts.map +1 -0
- package/dist/components/media/img/img.props.d.ts +76 -0
- package/dist/components/media/img/img.props.d.ts.map +1 -0
- package/dist/components/media/img/img.types.d.ts +33 -0
- package/dist/components/media/img/img.types.d.ts.map +1 -0
- package/dist/components/media/public.d.ts +2 -0
- package/dist/components/media/public.d.ts.map +1 -0
- package/dist/components/media/public.es.js +143 -0
- package/dist/components/media/public.es.js.map +1 -0
- package/dist/components/media/public.types.d.ts +3 -0
- package/dist/components/media/public.types.d.ts.map +1 -0
- package/dist/components/media/public.umd.js +2 -0
- package/dist/components/media/public.umd.js.map +1 -0
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts +5 -0
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.context.d.ts +2 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.context.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.props.d.ts +17 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.props.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.types.d.ts +11 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.types.d.ts.map +1 -0
- package/dist/components/navigation/dock/Dock.d.ts +12 -0
- package/dist/components/navigation/dock/Dock.d.ts.map +1 -0
- package/dist/components/navigation/dock/DockItem.d.ts +5 -0
- package/dist/components/navigation/dock/DockItem.d.ts.map +1 -0
- package/dist/components/navigation/dock/dock.context.d.ts +3 -0
- package/dist/components/navigation/dock/dock.context.d.ts.map +1 -0
- package/dist/components/navigation/dock/dock.props.d.ts +30 -0
- package/dist/components/navigation/dock/dock.props.d.ts.map +1 -0
- package/dist/components/navigation/dock/dock.types.d.ts +3 -0
- package/dist/components/navigation/dock/dock.types.d.ts.map +1 -0
- package/dist/components/navigation/link/Link.d.ts +12 -0
- package/dist/components/navigation/link/Link.d.ts.map +1 -0
- package/dist/components/navigation/link/link.context.d.ts +2 -0
- package/dist/components/navigation/link/link.context.d.ts.map +1 -0
- package/dist/components/navigation/link/link.props.d.ts +21 -0
- package/dist/components/navigation/link/link.props.d.ts.map +1 -0
- package/dist/components/navigation/link/link.types.d.ts +2 -0
- package/dist/components/navigation/link/link.types.d.ts.map +1 -0
- package/dist/components/navigation/menu/Menu.d.ts +12 -0
- package/dist/components/navigation/menu/Menu.d.ts.map +1 -0
- package/dist/components/navigation/menu/MenuItem.d.ts +36 -0
- package/dist/components/navigation/menu/MenuItem.d.ts.map +1 -0
- package/dist/components/navigation/menu/menu.context.d.ts +3 -0
- package/dist/components/navigation/menu/menu.context.d.ts.map +1 -0
- package/dist/components/navigation/menu/menu.props.d.ts +61 -0
- package/dist/components/navigation/menu/menu.props.d.ts.map +1 -0
- package/dist/components/navigation/menu/menu.types.d.ts +4 -0
- package/dist/components/navigation/menu/menu.types.d.ts.map +1 -0
- package/dist/components/navigation/navbar/Navbar.d.ts +4 -0
- package/dist/components/navigation/navbar/Navbar.d.ts.map +1 -0
- package/dist/components/navigation/public.d.ts +10 -0
- package/dist/components/navigation/public.d.ts.map +1 -0
- package/dist/components/navigation/public.es.js +2 -0
- package/dist/components/navigation/public.types.d.ts +11 -0
- package/dist/components/navigation/public.types.d.ts.map +1 -0
- package/dist/components/navigation/public.umd.js +1 -0
- package/dist/components/navigation/tab/Tab.d.ts +19 -0
- package/dist/components/navigation/tab/Tab.d.ts.map +1 -0
- package/dist/components/navigation/tab/Tabs.d.ts +20 -0
- package/dist/components/navigation/tab/Tabs.d.ts.map +1 -0
- package/dist/components/navigation/tab/tab.context.d.ts +10 -0
- package/dist/components/navigation/tab/tab.context.d.ts.map +1 -0
- package/dist/components/navigation/tab/tab.props.d.ts +59 -0
- package/dist/components/navigation/tab/tab.props.d.ts.map +1 -0
- package/dist/components/navigation/tab/tab.types.d.ts +5 -0
- package/dist/components/navigation/tab/tab.types.d.ts.map +1 -0
- package/dist/composables/public.d.ts +6 -0
- package/dist/composables/public.d.ts.map +1 -0
- package/dist/composables/public.es.js +39 -0
- package/dist/composables/public.es.js.map +1 -0
- package/dist/composables/public.umd.js +2 -0
- package/dist/composables/public.umd.js.map +1 -0
- package/dist/composables/use-component-config.d.ts +27 -0
- package/dist/composables/use-component-config.d.ts.map +1 -0
- package/dist/composables/use-config.d.ts +2 -0
- package/dist/composables/use-config.d.ts.map +1 -0
- package/dist/composables/use-form-field.d.ts +24 -0
- package/dist/composables/use-form-field.d.ts.map +1 -0
- package/dist/composables/use-select-counter.d.ts +13 -0
- package/dist/composables/use-select-counter.d.ts.map +1 -0
- package/dist/composables/use-toast.d.ts +36 -0
- package/dist/composables/use-toast.d.ts.map +1 -0
- package/dist/config/config.type.d.ts +96 -0
- package/dist/config/config.type.d.ts.map +1 -0
- package/dist/config/public.d.ts +3 -0
- package/dist/config/public.d.ts.map +1 -0
- package/dist/config/public.es.js +2 -0
- package/dist/config/public.types.d.ts +2 -0
- package/dist/config/public.types.d.ts.map +1 -0
- package/dist/config/public.umd.js +1 -0
- package/dist/config/size.context.d.ts +4 -0
- package/dist/config/size.context.d.ts.map +1 -0
- package/dist/config/symbol.d.ts +4 -0
- package/dist/config/symbol.d.ts.map +1 -0
- package/dist/plugin-vue.d.ts +33 -0
- package/dist/plugin-vue.d.ts.map +1 -0
- package/dist/public-1PFjXgZ6.cjs +2 -0
- package/dist/public-1PFjXgZ6.cjs.map +1 -0
- package/dist/public-D_MhbTxP.cjs +2 -0
- package/dist/public-D_MhbTxP.cjs.map +1 -0
- package/dist/public-Dqelew6J.js +615 -0
- package/dist/public-Dqelew6J.js.map +1 -0
- package/dist/public-H9TCdoJr.js +296 -0
- package/dist/public-H9TCdoJr.js.map +1 -0
- package/dist/public.d.ts +12 -0
- package/dist/public.d.ts.map +1 -0
- package/dist/public.es.js +15 -0
- package/dist/public.es.js.map +1 -0
- package/dist/public.umd.js +2 -0
- package/dist/public.umd.js.map +1 -0
- package/dist/style.css +2 -0
- package/dist/symbol-Cleu4XHu.cjs +2 -0
- package/dist/symbol-Cleu4XHu.cjs.map +1 -0
- package/dist/symbol-CziS7Pho.js +13 -0
- package/dist/symbol-CziS7Pho.js.map +1 -0
- package/dist/toast.context-BNg0Zn09.cjs +2 -0
- package/dist/toast.context-BNg0Zn09.cjs.map +1 -0
- package/dist/toast.context-CTPY2imu.js +7 -0
- package/dist/toast.context-CTPY2imu.js.map +1 -0
- package/dist/types/public.d.ts +3 -0
- package/dist/types/public.d.ts.map +1 -0
- package/dist/types/public.es.js +0 -0
- package/dist/types/public.umd.js +1 -0
- package/dist/types/size.type.d.ts +2 -0
- package/dist/types/size.type.d.ts.map +1 -0
- package/dist/types/utils.type.d.ts +5 -0
- package/dist/types/utils.type.d.ts.map +1 -0
- package/dist/use-component-config-C-IlXF0W.cjs +2 -0
- package/dist/use-component-config-C-IlXF0W.cjs.map +1 -0
- package/dist/use-component-config-CaJQbJOW.js +20 -0
- package/dist/use-component-config-CaJQbJOW.js.map +1 -0
- package/dist/use-select-counter-CgQha-_T.cjs +2 -0
- package/dist/use-select-counter-CgQha-_T.cjs.map +1 -0
- package/dist/use-select-counter-D_-Qwz61.js +72 -0
- package/dist/use-select-counter-D_-Qwz61.js.map +1 -0
- package/dist/utils/build-class.util.d.ts +4 -0
- package/dist/utils/build-class.util.d.ts.map +1 -0
- package/dist/utils/get-validation-message.d.ts +22 -0
- package/dist/utils/get-validation-message.d.ts.map +1 -0
- package/dist/utils/path.d.ts +20 -0
- package/dist/utils/path.d.ts.map +1 -0
- package/dist/utils/props.util.d.ts +2 -0
- package/dist/utils/props.util.d.ts.map +1 -0
- package/dist/utils/public.d.ts +2 -0
- package/dist/utils/public.d.ts.map +1 -0
- package/package.json +138 -0
- package/src/components/ClassWrapper.vue +42 -0
- package/src/components/actions/button/Button.story.vue +184 -0
- package/src/components/actions/button/Button.vue +110 -0
- package/src/components/actions/button/button.context.ts +3 -0
- package/src/components/actions/button/button.props.ts +56 -0
- package/src/components/actions/button/button.types.ts +7 -0
- package/src/components/actions/dropdown/Dropdown.story.vue +360 -0
- package/src/components/actions/dropdown/Dropdown.vue +218 -0
- package/src/components/actions/dropdown/dropdown.context.ts +3 -0
- package/src/components/actions/dropdown/dropdown.props.ts +59 -0
- package/src/components/actions/dropdown/dropdown.types.ts +4 -0
- package/src/components/actions/fab/Fab.story.vue +227 -0
- package/src/components/actions/fab/Fab.vue +33 -0
- package/src/components/actions/fab/fab.context.ts +3 -0
- package/src/components/actions/fab/fab.props.ts +11 -0
- package/src/components/actions/fab/fab.types.ts +1 -0
- package/src/components/actions/modal/Modal.story.vue +285 -0
- package/src/components/actions/modal/Modal.vue +106 -0
- package/src/components/actions/modal/modal.context.ts +3 -0
- package/src/components/actions/modal/modal.props.ts +29 -0
- package/src/components/actions/modal/modal.types.ts +1 -0
- package/src/components/actions/public.ts +5 -0
- package/src/components/actions/public.types.ts +15 -0
- package/src/components/actions/swap/Swap.story.vue +302 -0
- package/src/components/actions/swap/Swap.vue +59 -0
- package/src/components/actions/swap/swap.context.ts +3 -0
- package/src/components/actions/swap/swap.props.ts +17 -0
- package/src/components/actions/swap/swap.types.ts +1 -0
- package/src/components/app/PoppyApp.vue +48 -0
- package/src/components/app/public.ts +1 -0
- package/src/components/data/checkbox/Checkbox.story.vue +206 -0
- package/src/components/data/checkbox/Checkbox.vue +139 -0
- package/src/components/data/checkbox/checkbox.context.ts +3 -0
- package/src/components/data/checkbox/checkbox.props.ts +42 -0
- package/src/components/data/checkbox/checkbox.types.ts +5 -0
- package/src/components/data/field-set/FieldSet.story.vue +163 -0
- package/src/components/data/field-set/FieldSet.vue +22 -0
- package/src/components/data/field-set/field-set.props.ts +21 -0
- package/src/components/data/form/Form.story.vue +144 -0
- package/src/components/data/form/Form.vue +235 -0
- package/src/components/data/form/form.context.ts +82 -0
- package/src/components/data/form/form.props.ts +30 -0
- package/src/components/data/form/form.types.ts +25 -0
- package/src/components/data/form-field/FormField.vue +176 -0
- package/src/components/data/form-field/form-field.context.ts +71 -0
- package/src/components/data/form-field/form-field.props.ts +42 -0
- package/src/components/data/form-field/form-field.types.ts +1 -0
- package/src/components/data/input/Input.story.vue +276 -0
- package/src/components/data/input/Input.vue +233 -0
- package/src/components/data/input/input.context.ts +3 -0
- package/src/components/data/input/input.props.ts +87 -0
- package/src/components/data/input/input.types.ts +10 -0
- package/src/components/data/public.ts +12 -0
- package/src/components/data/public.types.ts +30 -0
- package/src/components/data/radio/Radio.story.vue +228 -0
- package/src/components/data/radio/Radio.vue +152 -0
- package/src/components/data/radio/radio.context.ts +3 -0
- package/src/components/data/radio/radio.props.ts +53 -0
- package/src/components/data/radio/radio.types.ts +5 -0
- package/src/components/data/radio-group/RadioGroup.story.vue +155 -0
- package/src/components/data/radio-group/RadioGroup.vue +65 -0
- package/src/components/data/radio-group/radio-group.context.ts +14 -0
- package/src/components/data/radio-group/radio-group.props.ts +12 -0
- package/src/components/data/rating/Rating.story.vue +150 -0
- package/src/components/data/rating/Rating.vue +190 -0
- package/src/components/data/rating/rating.context.ts +3 -0
- package/src/components/data/rating/rating.props.ts +43 -0
- package/src/components/data/rating/rating.types.ts +8 -0
- package/src/components/data/select/Select.story.vue +317 -0
- package/src/components/data/select/Select.vue +747 -0
- package/src/components/data/select/select.context.ts +3 -0
- package/src/components/data/select/select.props.ts +110 -0
- package/src/components/data/select/select.types.ts +24 -0
- package/src/components/data/slider/Slider.story.vue +276 -0
- package/src/components/data/slider/Slider.vue +802 -0
- package/src/components/data/slider/slider.context.ts +3 -0
- package/src/components/data/slider/slider.props.ts +69 -0
- package/src/components/data/slider/slider.types.ts +11 -0
- package/src/components/data/textarea/Textarea.story.vue +222 -0
- package/src/components/data/textarea/Textarea.vue +168 -0
- package/src/components/data/textarea/textarea.context.ts +3 -0
- package/src/components/data/textarea/textarea.props.ts +71 -0
- package/src/components/data/textarea/textarea.types.ts +7 -0
- package/src/components/data/toggle/Toggle.story.vue +195 -0
- package/src/components/data/toggle/Toggle.vue +136 -0
- package/src/components/data/toggle/toggle.context.ts +3 -0
- package/src/components/data/toggle/toggle.props.ts +40 -0
- package/src/components/data/toggle/toggle.types.ts +5 -0
- package/src/components/display/accordion/Accordion.story.vue +482 -0
- package/src/components/display/accordion/Accordion.vue +112 -0
- package/src/components/display/accordion/AccordionItem.vue +111 -0
- package/src/components/display/accordion/accordion-item.context.ts +3 -0
- package/src/components/display/accordion/accordion-item.props.ts +20 -0
- package/src/components/display/accordion/accordion-item.types.ts +1 -0
- package/src/components/display/accordion/accordion.context.ts +10 -0
- package/src/components/display/accordion/accordion.props.ts +16 -0
- package/src/components/display/avatar/Avatar.story.vue +341 -0
- package/src/components/display/avatar/Avatar.vue +57 -0
- package/src/components/display/avatar/avatar.context.ts +3 -0
- package/src/components/display/avatar/avatar.props.ts +44 -0
- package/src/components/display/avatar/avatar.types.ts +5 -0
- package/src/components/display/badge/Badge.story.vue +156 -0
- package/src/components/display/badge/Badge.vue +51 -0
- package/src/components/display/badge/badge.context.ts +3 -0
- package/src/components/display/badge/badge.props.ts +22 -0
- package/src/components/display/badge/badge.types.ts +5 -0
- package/src/components/display/card/Card.story.vue +312 -0
- package/src/components/display/card/Card.vue +40 -0
- package/src/components/display/card/CardActions.vue +30 -0
- package/src/components/display/card/CardBody.vue +5 -0
- package/src/components/display/card/CardTitle.vue +5 -0
- package/src/components/display/card/card-actions.context.ts +3 -0
- package/src/components/display/card/card-actions.props.ts +15 -0
- package/src/components/display/card/card-actions.types.ts +1 -0
- package/src/components/display/card/card.context.ts +3 -0
- package/src/components/display/card/card.props.ts +29 -0
- package/src/components/display/card/card.types.ts +4 -0
- package/src/components/display/carousel/Carousel.story.vue +216 -0
- package/src/components/display/carousel/Carousel.vue +156 -0
- package/src/components/display/carousel/carousel.context.ts +3 -0
- package/src/components/display/carousel/carousel.props.ts +51 -0
- package/src/components/display/carousel/carousel.types.ts +2 -0
- package/src/components/display/chat/Chat.story.vue +251 -0
- package/src/components/display/chat/Chat.vue +56 -0
- package/src/components/display/chat/chat.context.ts +3 -0
- package/src/components/display/chat/chat.props.ts +19 -0
- package/src/components/display/chat/chat.types.ts +2 -0
- package/src/components/display/countdown/Countdown.story.vue +285 -0
- package/src/components/display/countdown/Countdown.vue +114 -0
- package/src/components/display/countdown/countdown.context.ts +3 -0
- package/src/components/display/countdown/countdown.props.ts +26 -0
- package/src/components/display/countdown/countdown.types.ts +24 -0
- package/src/components/display/diff/Diff.story.vue +118 -0
- package/src/components/display/diff/Diff.vue +13 -0
- package/src/components/display/hover-3d/Hover3d.story.vue +154 -0
- package/src/components/display/hover-3d/Hover3d.vue +37 -0
- package/src/components/display/hover-3d/hover-3d.props.ts +9 -0
- package/src/components/display/hover-gallery/HoverGallery.story.vue +121 -0
- package/src/components/display/hover-gallery/HoverGallery.vue +5 -0
- package/src/components/display/kbd/Kbd.story.vue +214 -0
- package/src/components/display/kbd/Kbd.vue +32 -0
- package/src/components/display/kbd/kbd.context.ts +3 -0
- package/src/components/display/kbd/kbd.props.ts +12 -0
- package/src/components/display/kbd/kbd.types.ts +3 -0
- package/src/components/display/list/List.story.vue +381 -0
- package/src/components/display/list/List.vue +14 -0
- package/src/components/display/list/ListItem.vue +53 -0
- package/src/components/display/list/list-item.props.ts +19 -0
- package/src/components/display/list/list.props.ts +7 -0
- package/src/components/display/public.ts +20 -0
- package/src/components/display/public.types.ts +40 -0
- package/src/components/display/stat/Stat.story.vue +181 -0
- package/src/components/display/stat/Stat.vue +43 -0
- package/src/components/display/stat/Stats.vue +29 -0
- package/src/components/display/stat/stat.context.ts +3 -0
- package/src/components/display/stat/stat.props.ts +50 -0
- package/src/components/display/stat/stat.types.ts +1 -0
- package/src/components/display/stat/stats.context.ts +3 -0
- package/src/components/display/stat/stats.props.ts +11 -0
- package/src/components/display/stat/stats.types.ts +1 -0
- package/src/components/display/status/Status.story.vue +195 -0
- package/src/components/display/status/Status.vue +70 -0
- package/src/components/display/status/status.context.ts +3 -0
- package/src/components/display/status/status.props.ts +30 -0
- package/src/components/display/status/status.types.ts +5 -0
- package/src/components/feedback/alert/Alert.story.vue +243 -0
- package/src/components/feedback/alert/Alert.vue +46 -0
- package/src/components/feedback/alert/alert.context.ts +3 -0
- package/src/components/feedback/alert/alert.props.ts +29 -0
- package/src/components/feedback/alert/alert.types.ts +3 -0
- package/src/components/feedback/loading/Loading.story.vue +156 -0
- package/src/components/feedback/loading/Loading.vue +55 -0
- package/src/components/feedback/loading/loading.context.ts +3 -0
- package/src/components/feedback/loading/loading.props.ts +25 -0
- package/src/components/feedback/loading/loading.types.ts +5 -0
- package/src/components/feedback/progress/Progress.story.vue +96 -0
- package/src/components/feedback/progress/Progress.vue +36 -0
- package/src/components/feedback/progress/progress.context.ts +3 -0
- package/src/components/feedback/progress/progress.props.ts +27 -0
- package/src/components/feedback/progress/progress.types.ts +1 -0
- package/src/components/feedback/public.ts +5 -0
- package/src/components/feedback/public.types.ts +18 -0
- package/src/components/feedback/radial-progress/RadialProgress.story.vue +118 -0
- package/src/components/feedback/radial-progress/RadialProgress.vue +46 -0
- package/src/components/feedback/radial-progress/radial-progress.context.ts +3 -0
- package/src/components/feedback/radial-progress/radial-progress.props.ts +35 -0
- package/src/components/feedback/radial-progress/radial-progress.types.ts +9 -0
- package/src/components/feedback/toast/Toast.story.vue +356 -0
- package/src/components/feedback/toast/Toast.vue +40 -0
- package/src/components/feedback/toast/toast.context.ts +12 -0
- package/src/components/feedback/toast/toast.props.ts +33 -0
- package/src/components/feedback/toast/toast.types.ts +5 -0
- package/src/components/feedback/tooltip/Tooltip.story.vue +256 -0
- package/src/components/feedback/tooltip/Tooltip.vue +123 -0
- package/src/components/feedback/tooltip/tooltip.context.ts +3 -0
- package/src/components/feedback/tooltip/tooltip.props.ts +44 -0
- package/src/components/feedback/tooltip/tooltip.types.ts +2 -0
- package/src/components/layout/divider/Divider.story.vue +217 -0
- package/src/components/layout/divider/Divider.vue +48 -0
- package/src/components/layout/divider/divider.context.ts +3 -0
- package/src/components/layout/divider/divider.props.ts +28 -0
- package/src/components/layout/divider/divider.types.ts +3 -0
- package/src/components/layout/drawer/Drawer.story.vue +301 -0
- package/src/components/layout/drawer/Drawer.vue +88 -0
- package/src/components/layout/drawer/drawer.context.ts +3 -0
- package/src/components/layout/drawer/drawer.props.ts +25 -0
- package/src/components/layout/drawer/drawer.types.ts +6 -0
- package/src/components/layout/indicator/Indicator.story.vue +264 -0
- package/src/components/layout/indicator/Indicator.vue +43 -0
- package/src/components/layout/indicator/indicator.context.ts +3 -0
- package/src/components/layout/indicator/indicator.props.ts +27 -0
- package/src/components/layout/indicator/indicator.types.ts +2 -0
- package/src/components/layout/join/Join.story.vue +147 -0
- package/src/components/layout/join/Join.vue +32 -0
- package/src/components/layout/join/join.context.ts +3 -0
- package/src/components/layout/join/join.props.ts +14 -0
- package/src/components/layout/join/join.types.ts +1 -0
- package/src/components/layout/mask/Mask.story.vue +181 -0
- package/src/components/layout/mask/Mask.vue +49 -0
- package/src/components/layout/mask/mask.context.ts +3 -0
- package/src/components/layout/mask/mask.props.ts +36 -0
- package/src/components/layout/mask/mask.types.ts +18 -0
- package/src/components/layout/public.ts +6 -0
- package/src/components/layout/public.types.ts +18 -0
- package/src/components/layout/stack/Stack.story.vue +170 -0
- package/src/components/layout/stack/Stack.vue +29 -0
- package/src/components/layout/stack/stack.context.ts +3 -0
- package/src/components/layout/stack/stack.props.ts +12 -0
- package/src/components/layout/stack/stack.types.ts +1 -0
- package/src/components/media/img/Img.story.vue +214 -0
- package/src/components/media/img/Img.vue +189 -0
- package/src/components/media/img/img.context.ts +3 -0
- package/src/components/media/img/img.props.ts +88 -0
- package/src/components/media/img/img.types.ts +35 -0
- package/src/components/media/public.ts +1 -0
- package/src/components/media/public.types.ts +3 -0
- package/src/components/navigation/breadcrumbs/Breadcrumbs.story.vue +94 -0
- package/src/components/navigation/breadcrumbs/Breadcrumbs.vue +53 -0
- package/src/components/navigation/breadcrumbs/breadcrumbs.context.ts +3 -0
- package/src/components/navigation/breadcrumbs/breadcrumbs.props.ts +18 -0
- package/src/components/navigation/breadcrumbs/breadcrumbs.types.ts +13 -0
- package/src/components/navigation/dock/Dock.story.vue +109 -0
- package/src/components/navigation/dock/Dock.vue +32 -0
- package/src/components/navigation/dock/DockItem.vue +50 -0
- package/src/components/navigation/dock/dock.context.ts +4 -0
- package/src/components/navigation/dock/dock.props.ts +34 -0
- package/src/components/navigation/dock/dock.types.ts +3 -0
- package/src/components/navigation/link/Link.story.vue +129 -0
- package/src/components/navigation/link/Link.vue +57 -0
- package/src/components/navigation/link/link.context.ts +3 -0
- package/src/components/navigation/link/link.props.ts +20 -0
- package/src/components/navigation/link/link.types.ts +1 -0
- package/src/components/navigation/menu/Menu.story.vue +284 -0
- package/src/components/navigation/menu/Menu.vue +41 -0
- package/src/components/navigation/menu/MenuItem.vue +106 -0
- package/src/components/navigation/menu/menu.context.ts +4 -0
- package/src/components/navigation/menu/menu.props.ts +59 -0
- package/src/components/navigation/menu/menu.types.ts +4 -0
- package/src/components/navigation/navbar/Navbar.story.vue +154 -0
- package/src/components/navigation/navbar/Navbar.vue +8 -0
- package/src/components/navigation/public.ts +9 -0
- package/src/components/navigation/public.types.ts +15 -0
- package/src/components/navigation/tab/Tab.story.vue +186 -0
- package/src/components/navigation/tab/Tab.vue +106 -0
- package/src/components/navigation/tab/Tabs.vue +76 -0
- package/src/components/navigation/tab/tab.context.ts +13 -0
- package/src/components/navigation/tab/tab.props.ts +57 -0
- package/src/components/navigation/tab/tab.types.ts +5 -0
- package/src/composables/public.ts +5 -0
- package/src/composables/use-component-config.ts +44 -0
- package/src/composables/use-config.ts +6 -0
- package/src/composables/use-form-field.ts +99 -0
- package/src/composables/use-select-counter.ts +58 -0
- package/src/composables/use-toast.ts +47 -0
- package/src/config/config.type.ts +109 -0
- package/src/config/public.ts +2 -0
- package/src/config/public.types.ts +1 -0
- package/src/config/size.context.ts +4 -0
- package/src/config/symbol.ts +15 -0
- package/src/histoire.css +8 -0
- package/src/plugin-vue.ts +54 -0
- package/src/public.ts +12 -0
- package/src/stories/Configuration.story.md +55 -0
- package/src/types/public.ts +2 -0
- package/src/types/size.type.ts +1 -0
- package/src/types/utils.type.ts +5 -0
- package/src/utils/build-class.util.ts +38 -0
- package/src/utils/get-validation-message.ts +61 -0
- package/src/utils/path.ts +102 -0
- package/src/utils/props.util.ts +11 -0
- package/src/utils/public.ts +1 -0
- package/src/vite-env.d.ts +11 -0
- package/src/vue.d.ts +15 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { ToastColor } from '@/components/feedback/public.types'
|
|
2
|
+
import { TOAST_CONTEXT_KEY } from '@/components/feedback/toast/toast.context'
|
|
3
|
+
import { inject, ref } from 'vue'
|
|
4
|
+
|
|
5
|
+
export type ToastItem = {
|
|
6
|
+
id: number
|
|
7
|
+
message: string
|
|
8
|
+
color?: ToastColor
|
|
9
|
+
duration?: number
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Composable to push and dismiss toast notifications.
|
|
14
|
+
*
|
|
15
|
+
* Must be used inside a component tree wrapped by `<PoppyApp>`,
|
|
16
|
+
* which provides the toast context via `provide()`.
|
|
17
|
+
*
|
|
18
|
+
* @nuxt-safe — State lives in the component tree via provide/inject,
|
|
19
|
+
* avoiding module-level singletons that would be shared across SSR requests.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* const { push, dismiss } = useToast()
|
|
23
|
+
* push('Saved!', { color: 'success' })
|
|
24
|
+
*/
|
|
25
|
+
export function useToast() {
|
|
26
|
+
const ctx = inject(TOAST_CONTEXT_KEY, null)
|
|
27
|
+
|
|
28
|
+
if (!ctx) {
|
|
29
|
+
// Fallback for usage outside PoppyApp (e.g. unit tests, Storybook variants)
|
|
30
|
+
const toasts = ref<ToastItem[]>([])
|
|
31
|
+
let nextId = 0
|
|
32
|
+
|
|
33
|
+
function push(message: string, options?: Partial<Omit<ToastItem, 'id' | 'message'>>) {
|
|
34
|
+
const item: ToastItem = { id: nextId++, message, duration: 3000, ...options }
|
|
35
|
+
toasts.value.push(item)
|
|
36
|
+
if (item.duration) setTimeout(() => dismiss(item.id), item.duration)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function dismiss(id: number) {
|
|
40
|
+
toasts.value = toasts.value.filter(t => t.id !== id)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return { toasts, push, dismiss }
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return ctx
|
|
47
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import type { ButtonConfigurableProps } from '@/components/actions/button/button.props'
|
|
2
|
+
import type { DropdownConfigurableProps } from '@/components/actions/dropdown/dropdown.props'
|
|
3
|
+
import type { FabConfigurableProps } from '@/components/actions/fab/fab.props'
|
|
4
|
+
import type { ModalConfigurableProps } from '@/components/actions/modal/modal.props'
|
|
5
|
+
import type { SwapConfigurableProps } from '@/components/actions/swap/swap.props'
|
|
6
|
+
import type { CheckboxConfigurableProps } from '@/components/data/checkbox/checkbox.props'
|
|
7
|
+
import type { FormConfigurableProps } from '@/components/data/form/form.props'
|
|
8
|
+
import type { FormFieldConfigurableProps } from '@/components/data/form-field/form-field.props'
|
|
9
|
+
import type { InputConfigurableProps } from '@/components/data/input/input.props'
|
|
10
|
+
import type { RadioConfigurableProps } from '@/components/data/radio/radio.props'
|
|
11
|
+
import type { RatingConfigurableProps } from '@/components/data/rating/rating.props'
|
|
12
|
+
import type { SelectConfigurableProps } from '@/components/data/select/select.props'
|
|
13
|
+
import type { SliderConfigurableProps } from '@/components/data/slider/slider.props'
|
|
14
|
+
import type { TextareaConfigurableProps } from '@/components/data/textarea/textarea.props'
|
|
15
|
+
import type { ToggleConfigurableProps } from '@/components/data/toggle/toggle.props'
|
|
16
|
+
import type { AccordionItemConfigurableProps } from '@/components/display/accordion/accordion-item.props'
|
|
17
|
+
import type { AvatarConfigurableProps } from '@/components/display/avatar/avatar.props'
|
|
18
|
+
import type { BadgeConfigurableProps } from '@/components/display/badge/badge.props'
|
|
19
|
+
import type { CardConfigurableProps } from '@/components/display/card/card.props'
|
|
20
|
+
import type { CardActionsConfigurableProps } from '@/components/display/card/card-actions.props'
|
|
21
|
+
import type { CarouselConfigurableProps } from '@/components/display/carousel/carousel.props'
|
|
22
|
+
import type { ChatConfigurableProps } from '@/components/display/chat/chat.props'
|
|
23
|
+
import type { CountdownConfigurableProps } from '@/components/display/countdown/countdown.props'
|
|
24
|
+
import type { KbdConfigurableProps } from '@/components/display/kbd/kbd.props'
|
|
25
|
+
import type { StatConfigurableProps } from '@/components/display/stat/stat.props'
|
|
26
|
+
import type { StatsConfigurableProps } from '@/components/display/stat/stats.props'
|
|
27
|
+
import type { StatusConfigurableProps } from '@/components/display/status/status.props'
|
|
28
|
+
import type { AlertConfigurableProps } from '@/components/feedback/alert/alert.props'
|
|
29
|
+
import type { LoadingConfigurableProps } from '@/components/feedback/loading/loading.props'
|
|
30
|
+
import type { ProgressConfigurableProps } from '@/components/feedback/progress/progress.props'
|
|
31
|
+
import type { RadialProgressConfigurableProps } from '@/components/feedback/radial-progress/radial-progress.props'
|
|
32
|
+
import type { ToastConfigurableProps } from '@/components/feedback/toast/toast.props'
|
|
33
|
+
import type { TooltipConfigurableProps } from '@/components/feedback/tooltip/tooltip.props'
|
|
34
|
+
import type { DividerConfigurableProps } from '@/components/layout/divider/divider.props'
|
|
35
|
+
import type { DrawerConfigurableProps } from '@/components/layout/drawer/drawer.props'
|
|
36
|
+
import type { IndicatorConfigurableProps } from '@/components/layout/indicator/indicator.props'
|
|
37
|
+
import type { JoinConfigurableProps } from '@/components/layout/join/join.props'
|
|
38
|
+
import type { MaskConfigurableProps } from '@/components/layout/mask/mask.props'
|
|
39
|
+
import type { StackConfigurableProps } from '@/components/layout/stack/stack.props'
|
|
40
|
+
import type { ImgConfigurableProps } from '@/components/media/img/img.props'
|
|
41
|
+
import type { BreadcrumbsConfigurableProps } from '@/components/navigation/breadcrumbs/breadcrumbs.props'
|
|
42
|
+
import type { DockConfigurableProps, DockItemConfigurableProps } from '@/components/navigation/dock/dock.props'
|
|
43
|
+
import type { LinkConfigurableProps } from '@/components/navigation/link/link.props'
|
|
44
|
+
import type { MenuConfigurableProps, MenuItemConfigurableProps } from '@/components/navigation/menu/menu.props'
|
|
45
|
+
import type { TabConfigurableProps, TabsConfigurableProps } from '@/components/navigation/tab/tab.props'
|
|
46
|
+
|
|
47
|
+
export interface PoppyComponentConfig {
|
|
48
|
+
// Actions
|
|
49
|
+
button: ButtonConfigurableProps
|
|
50
|
+
dropdown: DropdownConfigurableProps
|
|
51
|
+
fab: FabConfigurableProps
|
|
52
|
+
modal: ModalConfigurableProps
|
|
53
|
+
swap: SwapConfigurableProps
|
|
54
|
+
|
|
55
|
+
// Data
|
|
56
|
+
checkbox: CheckboxConfigurableProps
|
|
57
|
+
form: FormConfigurableProps
|
|
58
|
+
formField: FormFieldConfigurableProps
|
|
59
|
+
radio: RadioConfigurableProps
|
|
60
|
+
rating: RatingConfigurableProps
|
|
61
|
+
input: InputConfigurableProps
|
|
62
|
+
select: SelectConfigurableProps
|
|
63
|
+
slider: SliderConfigurableProps
|
|
64
|
+
textarea: TextareaConfigurableProps
|
|
65
|
+
toggle: ToggleConfigurableProps
|
|
66
|
+
|
|
67
|
+
// Display
|
|
68
|
+
accordionItem: AccordionItemConfigurableProps
|
|
69
|
+
avatar: AvatarConfigurableProps
|
|
70
|
+
badge: BadgeConfigurableProps
|
|
71
|
+
card: CardConfigurableProps
|
|
72
|
+
cardActions: CardActionsConfigurableProps
|
|
73
|
+
carousel: CarouselConfigurableProps
|
|
74
|
+
chat: ChatConfigurableProps
|
|
75
|
+
countdown: CountdownConfigurableProps
|
|
76
|
+
kbd: KbdConfigurableProps
|
|
77
|
+
stat: StatConfigurableProps
|
|
78
|
+
stats: StatsConfigurableProps
|
|
79
|
+
status: StatusConfigurableProps
|
|
80
|
+
|
|
81
|
+
// Feedback
|
|
82
|
+
alert: AlertConfigurableProps
|
|
83
|
+
loading: LoadingConfigurableProps
|
|
84
|
+
progress: ProgressConfigurableProps
|
|
85
|
+
radialProgress: RadialProgressConfigurableProps
|
|
86
|
+
toast: ToastConfigurableProps
|
|
87
|
+
tooltip: TooltipConfigurableProps
|
|
88
|
+
|
|
89
|
+
// Layout
|
|
90
|
+
divider: DividerConfigurableProps
|
|
91
|
+
drawer: DrawerConfigurableProps
|
|
92
|
+
indicator: IndicatorConfigurableProps
|
|
93
|
+
join: JoinConfigurableProps
|
|
94
|
+
mask: MaskConfigurableProps
|
|
95
|
+
stack: StackConfigurableProps
|
|
96
|
+
|
|
97
|
+
// Navigation
|
|
98
|
+
breadcrumbs: BreadcrumbsConfigurableProps
|
|
99
|
+
dock: DockConfigurableProps
|
|
100
|
+
dockItem: DockItemConfigurableProps
|
|
101
|
+
link: LinkConfigurableProps
|
|
102
|
+
menu: MenuConfigurableProps
|
|
103
|
+
menuItem: MenuItemConfigurableProps
|
|
104
|
+
tab: TabConfigurableProps
|
|
105
|
+
tabs: TabsConfigurableProps
|
|
106
|
+
|
|
107
|
+
// Media
|
|
108
|
+
img: ImgConfigurableProps
|
|
109
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './config.type'
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PoppyComponentConfig } from '@/config/config.type'
|
|
2
|
+
import type { InjectionKey } from 'vue'
|
|
3
|
+
|
|
4
|
+
const knownComponentConfigKeys = new Map<keyof PoppyComponentConfig, InjectionKey<unknown>>()
|
|
5
|
+
|
|
6
|
+
export function createComponentConfigKey<K extends keyof PoppyComponentConfig>(name: K) {
|
|
7
|
+
type Key = InjectionKey<Partial<PoppyComponentConfig[K]>>
|
|
8
|
+
|
|
9
|
+
if (!knownComponentConfigKeys.has(name)) {
|
|
10
|
+
const key = Symbol(`config-${String(name)}`) as Key
|
|
11
|
+
knownComponentConfigKeys.set(name, key)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return knownComponentConfigKeys.get(name) as Key
|
|
15
|
+
}
|
package/src/histoire.css
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { App } from 'vue'
|
|
2
|
+
import type { PoppyComponentConfig } from './config/config.type'
|
|
3
|
+
import { COMPONENT_SIZE } from './config/size.context'
|
|
4
|
+
import { createComponentConfigKey } from './config/symbol'
|
|
5
|
+
import type { ComponentSize } from './types/size.type'
|
|
6
|
+
|
|
7
|
+
type Plugin<T> = import('vue').Plugin<T>
|
|
8
|
+
|
|
9
|
+
declare global {
|
|
10
|
+
export interface Window {
|
|
11
|
+
/**
|
|
12
|
+
* Poppy UI plugin options for debugging purposes. This is only set if the `debug` option is enabled when installing the plugin.
|
|
13
|
+
*
|
|
14
|
+
* @since 0.0.0
|
|
15
|
+
*/
|
|
16
|
+
__POPPY_UI_PLUGIN_OPTIONS__?: PluginOptions
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface PluginOptions {
|
|
21
|
+
/**
|
|
22
|
+
* Default size for all components. This will be used as the default size for any component that doesn't have a specific size prop set. You can override this default size on a per-component basis by providing specific configurations in the `components` option or by passing the `size` prop directly to individual components.
|
|
23
|
+
* @since 0.0.0
|
|
24
|
+
*/
|
|
25
|
+
size?: ComponentSize
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Component-specific default configurations. You can specify default props for each component here, which will be merged with the props passed directly to the component. This allows you to set global defaults for your components while still allowing individual instances to override them as needed.
|
|
29
|
+
* @since 0.0.0
|
|
30
|
+
*/
|
|
31
|
+
components?: Partial<PoppyComponentConfig>
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Allows you to enable debug mode, which will log the plugin options to the console and expose them on the `window` object for easier debugging.
|
|
35
|
+
* @since 0.0.0
|
|
36
|
+
*/
|
|
37
|
+
debug?: true
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const PoppyUi = {
|
|
41
|
+
install(app: App, options: PluginOptions = {}) {
|
|
42
|
+
app.provide(COMPONENT_SIZE, options?.size || 'md')
|
|
43
|
+
|
|
44
|
+
for (const [componentName, componentConfig] of Object.entries(options?.components || {})) {
|
|
45
|
+
const key = createComponentConfigKey(componentName as keyof PoppyComponentConfig)
|
|
46
|
+
app.provide(key, componentConfig as never)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (options?.debug) {
|
|
50
|
+
window.__POPPY_UI_PLUGIN_OPTIONS__ = options
|
|
51
|
+
console.log('Poppy UI Plugin Options:', options)
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
} as Plugin<[PluginOptions?]>
|
package/src/public.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PoppyUi } from './plugin-vue'
|
|
2
|
+
|
|
3
|
+
export default PoppyUi
|
|
4
|
+
export * from './components/actions/public.types'
|
|
5
|
+
export * from './components/data/public.types'
|
|
6
|
+
export * from './components/display/public.types'
|
|
7
|
+
export * from './components/feedback/public.types'
|
|
8
|
+
export * from './components/layout/public.types'
|
|
9
|
+
export * from './components/media/public.types'
|
|
10
|
+
export * from './components/navigation/public.types'
|
|
11
|
+
export * from './config/public.types'
|
|
12
|
+
export type { PluginOptions } from './plugin-vue'
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
group: 'top'
|
|
3
|
+
title: 'Configuration'
|
|
4
|
+
icon: 'lucide:settings'
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Plugin Configuration
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
The `PoppyUi` plugin is installed once in `main.ts` and lets you define global defaults
|
|
12
|
+
for every component. This avoids prop-drilling and keeps your design tokens consistent
|
|
13
|
+
across the entire application.
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
// main.ts
|
|
17
|
+
import { createApp } from 'vue'
|
|
18
|
+
import { PoppyUi } from '@poppy-ui/vue'
|
|
19
|
+
import App from './App.vue'
|
|
20
|
+
|
|
21
|
+
createApp(App)
|
|
22
|
+
.use(PoppyUi, {
|
|
23
|
+
size: 'md',
|
|
24
|
+
components: {
|
|
25
|
+
button: {
|
|
26
|
+
color: 'primary',
|
|
27
|
+
variant: 'solid',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
})
|
|
31
|
+
.mount('#app')
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Options
|
|
35
|
+
|
|
36
|
+
| Option | Type | Default | Description |
|
|
37
|
+
|--------------|------------------------|-------------|-----------------------------------------------------------------------------------|
|
|
38
|
+
| `size` | `ComponentSize` | `'md'` | Global size fallback for all components. |
|
|
39
|
+
| `components` | `PoppyComponentConfig` | `{}` | Per-component default configurable props. |
|
|
40
|
+
| `debug` | `true` | `undefined` | Logs options to console and exposes them on `window.__POPPY_UI_PLUGIN_OPTIONS__`. |
|
|
41
|
+
|
|
42
|
+
## Priority order
|
|
43
|
+
|
|
44
|
+
When resolving a prop value, the following priority applies (highest to lowest):
|
|
45
|
+
|
|
46
|
+
1. Prop passed directly to the component instance
|
|
47
|
+
2. `components.[name]` in plugin options
|
|
48
|
+
3. Global `size` in plugin options
|
|
49
|
+
4. Component's own internal default
|
|
50
|
+
|
|
51
|
+
## Configurable props
|
|
52
|
+
|
|
53
|
+
Only props marked **Configurable :white_check_mark:** in each component's documentation can be set
|
|
54
|
+
via the plugin. Non-configurable props (e.g. `disabled`, `loading`, `type`) must always
|
|
55
|
+
be passed directly to the component instance.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl'
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { twMerge } from 'tailwind-merge'
|
|
2
|
+
import type { ClassValue } from 'vue'
|
|
3
|
+
|
|
4
|
+
export function getClass<T extends string = string>(values: Record<T, string>, key: T | undefined) {
|
|
5
|
+
if (key === undefined) {
|
|
6
|
+
return undefined
|
|
7
|
+
}
|
|
8
|
+
return values[key]
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function normalize(input: ClassValue): string {
|
|
12
|
+
if (!input) return ''
|
|
13
|
+
|
|
14
|
+
if (typeof input === 'string') return input
|
|
15
|
+
|
|
16
|
+
if (Array.isArray(input)) {
|
|
17
|
+
return input.map(normalize).filter(Boolean).join(' ')
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
if (typeof input === 'object') {
|
|
21
|
+
return Object.entries(input)
|
|
22
|
+
.filter(([, value]) => Boolean(value))
|
|
23
|
+
.map(([key]) => key)
|
|
24
|
+
.join(' ')
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return ''
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function dedupe(classStr: string): string {
|
|
31
|
+
return [...new Set(classStr.split(/\s+/))].join(' ')
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function clsx(...inputs: ClassValue[]) {
|
|
35
|
+
const merged = twMerge(inputs.map(normalize).filter(Boolean).join(' '))
|
|
36
|
+
|
|
37
|
+
return dedupe(merged)
|
|
38
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
type ValidationElement = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement
|
|
2
|
+
type ValidationAnyElement = HTMLElement & {
|
|
3
|
+
validity: ValidityState
|
|
4
|
+
checkValidity: () => boolean
|
|
5
|
+
value: string
|
|
6
|
+
getAttribute: (name: string) => string | null
|
|
7
|
+
validationMessage: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Reads element's validity state and returns a localized validation message.
|
|
12
|
+
* Returns null when element is valid.
|
|
13
|
+
*
|
|
14
|
+
* This is a factory function that takes a translation function (t) from vue-i18n.
|
|
15
|
+
* The consumer is responsible for providing the translation function.
|
|
16
|
+
*
|
|
17
|
+
* @param el - The input/textarea/select element to check
|
|
18
|
+
* @param t - Translation function from vue-i18n's useI18n()
|
|
19
|
+
* @returns Localized error message or null if valid
|
|
20
|
+
*/
|
|
21
|
+
export function getValidationMessage(
|
|
22
|
+
el: ValidationElement | ValidationAnyElement,
|
|
23
|
+
t: (key: string, params?: Record<string, string | number>, fallback?: string) => string,
|
|
24
|
+
): string | null {
|
|
25
|
+
if (el.validity.valid) return null
|
|
26
|
+
|
|
27
|
+
const validity = el.validity
|
|
28
|
+
|
|
29
|
+
if (validity.valueMissing) return t('common.validation.required')
|
|
30
|
+
if (validity.typeMismatch) {
|
|
31
|
+
const type = el.getAttribute('type') || 'default'
|
|
32
|
+
return t(`common.validation.format.${type}`, {}, t('common.validation.format.default'))
|
|
33
|
+
}
|
|
34
|
+
if (validity.tooShort) {
|
|
35
|
+
const min = el.getAttribute('minLength')
|
|
36
|
+
return t('common.validation.minLength', { min: min || '0' })
|
|
37
|
+
}
|
|
38
|
+
if (validity.tooLong) {
|
|
39
|
+
const max = el.getAttribute('maxLength')
|
|
40
|
+
return t('common.validation.maxLength', { max: max || '0' })
|
|
41
|
+
}
|
|
42
|
+
if (validity.rangeUnderflow) {
|
|
43
|
+
const min = el.getAttribute('min')
|
|
44
|
+
return t('common.validation.min', { min: min || '0' })
|
|
45
|
+
}
|
|
46
|
+
if (validity.rangeOverflow) {
|
|
47
|
+
const max = el.getAttribute('max')
|
|
48
|
+
return t('common.validation.max', { max: max || '0' })
|
|
49
|
+
}
|
|
50
|
+
if (validity.patternMismatch) {
|
|
51
|
+
const title = el.getAttribute('title')
|
|
52
|
+
if (title) return title
|
|
53
|
+
return t('common.validation.pattern')
|
|
54
|
+
}
|
|
55
|
+
if (validity.stepMismatch) return t('common.validation.stepMismatch')
|
|
56
|
+
if (validity.badInput) return t('common.validation.badInput')
|
|
57
|
+
if (validity.customError) return el.validationMessage || t('common.validation.customError')
|
|
58
|
+
|
|
59
|
+
// Fallback to browser's validation message
|
|
60
|
+
return el.validationMessage || null
|
|
61
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gets a value from an object using a dot-notation path.
|
|
3
|
+
* Supports nested objects and array indices.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* getByPath({ a: { b: 1 } }, 'a.b') // returns 1
|
|
7
|
+
* getByPath({ users: [{ name: 'John' }] }, 'users.0.name') // returns 'John'
|
|
8
|
+
*/
|
|
9
|
+
export function getByPath(obj: Record<string, unknown>, path: string): unknown {
|
|
10
|
+
if (!obj || !path) return undefined
|
|
11
|
+
|
|
12
|
+
const keys = parsePath(path)
|
|
13
|
+
let current: unknown = obj
|
|
14
|
+
|
|
15
|
+
for (const key of keys) {
|
|
16
|
+
if (current === null || current === undefined) {
|
|
17
|
+
return undefined
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
if (typeof current !== 'object') {
|
|
21
|
+
return undefined
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
current = (current as Record<string, unknown>)[key]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return current
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Sets a value in an object using a dot-notation path.
|
|
32
|
+
* Creates intermediate objects/arrays as needed.
|
|
33
|
+
* Supports nested objects and array indices.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* setByPath({}, 'a.b', 1) // returns { a: { b: 1 } }
|
|
37
|
+
* setByPath({ users: [] }, 'users.0.name', 'John') // returns { users: [{ name: 'John' }] }
|
|
38
|
+
*/
|
|
39
|
+
export function setByPath(obj: Record<string, unknown>, path: string, value: unknown): void {
|
|
40
|
+
if (!path) return
|
|
41
|
+
|
|
42
|
+
const keys = parsePath(path)
|
|
43
|
+
let current: Record<string, unknown> = obj
|
|
44
|
+
|
|
45
|
+
for (let i = 0; i < keys.length - 1; i++) {
|
|
46
|
+
const key = keys[i]
|
|
47
|
+
const nextKey = keys[i + 1]
|
|
48
|
+
|
|
49
|
+
if (current[key] === undefined) {
|
|
50
|
+
// Create array if next key is numeric
|
|
51
|
+
if (isNumericKey(nextKey)) {
|
|
52
|
+
current[key] = []
|
|
53
|
+
} else {
|
|
54
|
+
current[key] = {}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (typeof current[key] !== 'object' || current[key] === null) {
|
|
59
|
+
// Overwrite with array if next key is numeric
|
|
60
|
+
if (isNumericKey(nextKey)) {
|
|
61
|
+
current[key] = []
|
|
62
|
+
} else {
|
|
63
|
+
current[key] = {}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
current = current[key] as Record<string, unknown>
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const lastKey = keys[keys.length - 1]
|
|
71
|
+
if (isNumericKey(lastKey)) {
|
|
72
|
+
const arr = current as unknown as unknown[]
|
|
73
|
+
const index = Number.parseInt(lastKey, 10)
|
|
74
|
+
// Expand array if needed
|
|
75
|
+
while (arr.length <= index) {
|
|
76
|
+
arr.push(undefined)
|
|
77
|
+
}
|
|
78
|
+
arr[index] = value
|
|
79
|
+
} else {
|
|
80
|
+
current[lastKey] = value
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Parses a dot-notation path into an array of keys.
|
|
86
|
+
* Handles array indices (e.g., 'users.0.name' -> ['users', '0', 'name'])
|
|
87
|
+
*/
|
|
88
|
+
function parsePath(path: string): string[] {
|
|
89
|
+
// Handle empty path
|
|
90
|
+
if (!path.trim()) return []
|
|
91
|
+
|
|
92
|
+
// Split by dots, but preserve empty strings for consecutive dots
|
|
93
|
+
// Then filter out empty strings
|
|
94
|
+
return path.split('.').filter(key => key !== '')
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Checks if a key is a numeric index (for arrays).
|
|
99
|
+
*/
|
|
100
|
+
function isNumericKey(key: string): boolean {
|
|
101
|
+
return /^\d+$/.test(key)
|
|
102
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function mergeProps<T extends Record<string, any>, U extends Record<string, any>>(
|
|
2
|
+
componentProps: T,
|
|
3
|
+
config: U,
|
|
4
|
+
): T & U {
|
|
5
|
+
const cleanProps = Object.fromEntries(Object.entries(componentProps).filter(([_, v]) => v !== undefined))
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
...config,
|
|
9
|
+
...cleanProps,
|
|
10
|
+
} as T & U
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
/// <reference types="@histoire/plugin-vue/components" />
|
|
3
|
+
/** biome-ignore-all lint/suspicious/noExplicitAny: Define Vue component */
|
|
4
|
+
/** biome-ignore-all lint/complexity/noBannedTypes: Define Vue component */
|
|
5
|
+
|
|
6
|
+
declare module '*.vue' {
|
|
7
|
+
import type { DefineComponent } from 'vue'
|
|
8
|
+
|
|
9
|
+
const component: DefineComponent<{}, {}, any>
|
|
10
|
+
export default component
|
|
11
|
+
}
|
package/src/vue.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import 'vue'
|
|
2
|
+
|
|
3
|
+
// Patch vue event
|
|
4
|
+
declare module 'vue' {
|
|
5
|
+
interface InputHTMLAttributes {
|
|
6
|
+
onChange?: (event: ChangeEvent & { target: HTMLInputElement }) => void
|
|
7
|
+
onInput?: (event: InputEvent & { target: HTMLInputElement }) => void
|
|
8
|
+
onFocus?: (event: FocusEvent & { target: HTMLInputElement }) => void
|
|
9
|
+
onPointerdown?: (event: PointerEvent & { target: HTMLInputElement }) => void
|
|
10
|
+
onPointerup?: (event: PointerEvent & { target: HTMLInputElement }) => void
|
|
11
|
+
}
|
|
12
|
+
interface SelectHTMLAttributes {
|
|
13
|
+
onChange?: (event: Event & { target: HTMLSelectElement }) => void
|
|
14
|
+
}
|
|
15
|
+
}
|