@poppy-ui/vue 0.5.6 → 0.5.7-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +103 -0
- package/dist/ClassWrapper-BNZO3mhP.cjs +2 -0
- package/dist/ClassWrapper-BNZO3mhP.cjs.map +1 -0
- package/dist/ClassWrapper-DdnnHfAj.js +24 -0
- package/dist/ClassWrapper-DdnnHfAj.js.map +1 -0
- package/dist/Toast-BEnfZApB.cjs +2 -0
- package/dist/Toast-BEnfZApB.cjs.map +1 -0
- package/dist/Toast-BWTVE5_U.js +62 -0
- package/dist/Toast-BWTVE5_U.js.map +1 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/_plugin-vue_export-helper-BTmtiIyf.cjs +1 -0
- package/dist/build-class.util-Cp-ZBFgO.js +1730 -0
- package/dist/build-class.util-Cp-ZBFgO.js.map +1 -0
- package/dist/build-class.util-Lo1-M_t1.cjs +2 -0
- package/dist/build-class.util-Lo1-M_t1.cjs.map +1 -0
- package/dist/components/ClassWrapper.d.ts +27 -0
- package/dist/components/ClassWrapper.d.ts.map +1 -0
- package/dist/components/actions/button/Button.d.ts +18 -0
- package/dist/components/actions/button/Button.d.ts.map +1 -0
- package/dist/components/actions/button/button.context.d.ts +2 -0
- package/dist/components/actions/button/button.context.d.ts.map +1 -0
- package/dist/components/actions/button/button.props.d.ts +59 -0
- package/dist/components/actions/button/button.props.d.ts.map +1 -0
- package/dist/components/actions/button/button.types.d.ts +7 -0
- package/dist/components/actions/button/button.types.d.ts.map +1 -0
- package/dist/components/actions/dropdown/Dropdown.d.ts +25 -0
- package/dist/components/actions/dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/actions/dropdown/dropdown.context.d.ts +2 -0
- package/dist/components/actions/dropdown/dropdown.context.d.ts.map +1 -0
- package/dist/components/actions/dropdown/dropdown.props.d.ts +61 -0
- package/dist/components/actions/dropdown/dropdown.props.d.ts.map +1 -0
- package/dist/components/actions/dropdown/dropdown.types.d.ts +4 -0
- package/dist/components/actions/dropdown/dropdown.types.d.ts.map +1 -0
- package/dist/components/actions/fab/Fab.d.ts +16 -0
- package/dist/components/actions/fab/Fab.d.ts.map +1 -0
- package/dist/components/actions/fab/fab.context.d.ts +2 -0
- package/dist/components/actions/fab/fab.context.d.ts.map +1 -0
- package/dist/components/actions/fab/fab.props.d.ts +11 -0
- package/dist/components/actions/fab/fab.props.d.ts.map +1 -0
- package/dist/components/actions/fab/fab.types.d.ts +2 -0
- package/dist/components/actions/fab/fab.types.d.ts.map +1 -0
- package/dist/components/actions/modal/Modal.d.ts +39 -0
- package/dist/components/actions/modal/Modal.d.ts.map +1 -0
- package/dist/components/actions/modal/modal.context.d.ts +2 -0
- package/dist/components/actions/modal/modal.context.d.ts.map +1 -0
- package/dist/components/actions/modal/modal.props.d.ts +32 -0
- package/dist/components/actions/modal/modal.props.d.ts.map +1 -0
- package/dist/components/actions/modal/modal.types.d.ts +2 -0
- package/dist/components/actions/modal/modal.types.d.ts.map +1 -0
- package/dist/components/actions/public.d.ts +6 -0
- package/dist/components/actions/public.d.ts.map +1 -0
- package/dist/components/actions/public.es.js +319 -0
- package/dist/components/actions/public.es.js.map +1 -0
- package/dist/components/actions/public.types.d.ts +11 -0
- package/dist/components/actions/public.types.d.ts.map +1 -0
- package/dist/components/actions/public.umd.js +2 -0
- package/dist/components/actions/public.umd.js.map +1 -0
- package/dist/components/actions/swap/Swap.d.ts +36 -0
- package/dist/components/actions/swap/Swap.d.ts.map +1 -0
- package/dist/components/actions/swap/swap.context.d.ts +2 -0
- package/dist/components/actions/swap/swap.context.d.ts.map +1 -0
- package/dist/components/actions/swap/swap.props.d.ts +19 -0
- package/dist/components/actions/swap/swap.props.d.ts.map +1 -0
- package/dist/components/actions/swap/swap.types.d.ts +2 -0
- package/dist/components/actions/swap/swap.types.d.ts.map +1 -0
- package/dist/components/app/PoppyApp.d.ts +14 -0
- package/dist/components/app/PoppyApp.d.ts.map +1 -0
- package/dist/components/app/public.d.ts +2 -0
- package/dist/components/app/public.d.ts.map +1 -0
- package/dist/components/app/public.es.js +41 -0
- package/dist/components/app/public.es.js.map +1 -0
- package/dist/components/app/public.umd.js +2 -0
- package/dist/components/app/public.umd.js.map +1 -0
- package/dist/components/data/checkbox/Checkbox.d.ts +20 -0
- package/dist/components/data/checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/data/checkbox/checkbox.context.d.ts +2 -0
- package/dist/components/data/checkbox/checkbox.context.d.ts.map +1 -0
- package/dist/components/data/checkbox/checkbox.props.d.ts +35 -0
- package/dist/components/data/checkbox/checkbox.props.d.ts.map +1 -0
- package/dist/components/data/checkbox/checkbox.types.d.ts +4 -0
- package/dist/components/data/checkbox/checkbox.types.d.ts.map +1 -0
- package/dist/components/data/form/Form.d.ts +37 -0
- package/dist/components/data/form/Form.d.ts.map +1 -0
- package/dist/components/data/form/form.context.d.ts +53 -0
- package/dist/components/data/form/form.context.d.ts.map +1 -0
- package/dist/components/data/form/form.props.d.ts +28 -0
- package/dist/components/data/form/form.props.d.ts.map +1 -0
- package/dist/components/data/form/form.types.d.ts +25 -0
- package/dist/components/data/form/form.types.d.ts.map +1 -0
- package/dist/components/data/form-field/FormField.d.ts +26 -0
- package/dist/components/data/form-field/FormField.d.ts.map +1 -0
- package/dist/components/data/form-field/form-field.context.d.ts +37 -0
- package/dist/components/data/form-field/form-field.context.d.ts.map +1 -0
- package/dist/components/data/form-field/form-field.props.d.ts +30 -0
- package/dist/components/data/form-field/form-field.props.d.ts.map +1 -0
- package/dist/components/data/form-field/form-field.types.d.ts +2 -0
- package/dist/components/data/form-field/form-field.types.d.ts.map +1 -0
- package/dist/components/data/input/Input.d.ts +44 -0
- package/dist/components/data/input/Input.d.ts.map +1 -0
- package/dist/components/data/input/input.context.d.ts +2 -0
- package/dist/components/data/input/input.context.d.ts.map +1 -0
- package/dist/components/data/input/input.props.d.ts +73 -0
- package/dist/components/data/input/input.props.d.ts.map +1 -0
- package/dist/components/data/input/input.types.d.ts +6 -0
- package/dist/components/data/input/input.types.d.ts.map +1 -0
- package/dist/components/data/public.d.ts +11 -0
- package/dist/components/data/public.d.ts.map +1 -0
- package/dist/components/data/public.es.js +1355 -0
- package/dist/components/data/public.es.js.map +1 -0
- package/dist/components/data/public.types.d.ts +21 -0
- package/dist/components/data/public.types.d.ts.map +1 -0
- package/dist/components/data/public.umd.js +2 -0
- package/dist/components/data/public.umd.js.map +1 -0
- package/dist/components/data/radio/Radio.d.ts +20 -0
- package/dist/components/data/radio/Radio.d.ts.map +1 -0
- package/dist/components/data/radio/radio.context.d.ts +2 -0
- package/dist/components/data/radio/radio.context.d.ts.map +1 -0
- package/dist/components/data/radio/radio.props.d.ts +41 -0
- package/dist/components/data/radio/radio.props.d.ts.map +1 -0
- package/dist/components/data/radio/radio.types.d.ts +4 -0
- package/dist/components/data/radio/radio.types.d.ts.map +1 -0
- package/dist/components/data/rating/Rating.d.ts +23 -0
- package/dist/components/data/rating/Rating.d.ts.map +1 -0
- package/dist/components/data/rating/rating.context.d.ts +2 -0
- package/dist/components/data/rating/rating.context.d.ts.map +1 -0
- package/dist/components/data/rating/rating.props.d.ts +45 -0
- package/dist/components/data/rating/rating.props.d.ts.map +1 -0
- package/dist/components/data/rating/rating.types.d.ts +6 -0
- package/dist/components/data/rating/rating.types.d.ts.map +1 -0
- package/dist/components/data/select/Select.d.ts +48 -0
- package/dist/components/data/select/Select.d.ts.map +1 -0
- package/dist/components/data/select/select.context.d.ts +2 -0
- package/dist/components/data/select/select.context.d.ts.map +1 -0
- package/dist/components/data/select/select.props.d.ts +60 -0
- package/dist/components/data/select/select.props.d.ts.map +1 -0
- package/dist/components/data/select/select.types.d.ts +11 -0
- package/dist/components/data/select/select.types.d.ts.map +1 -0
- package/dist/components/data/slider/Slider.d.ts +26 -0
- package/dist/components/data/slider/Slider.d.ts.map +1 -0
- package/dist/components/data/slider/slider.context.d.ts +2 -0
- package/dist/components/data/slider/slider.context.d.ts.map +1 -0
- package/dist/components/data/slider/slider.props.d.ts +71 -0
- package/dist/components/data/slider/slider.props.d.ts.map +1 -0
- package/dist/components/data/slider/slider.types.d.ts +7 -0
- package/dist/components/data/slider/slider.types.d.ts.map +1 -0
- package/dist/components/data/textarea/Textarea.d.ts +44 -0
- package/dist/components/data/textarea/Textarea.d.ts.map +1 -0
- package/dist/components/data/textarea/textarea.context.d.ts +2 -0
- package/dist/components/data/textarea/textarea.context.d.ts.map +1 -0
- package/dist/components/data/textarea/textarea.props.d.ts +66 -0
- package/dist/components/data/textarea/textarea.props.d.ts.map +1 -0
- package/dist/components/data/textarea/textarea.types.d.ts +5 -0
- package/dist/components/data/textarea/textarea.types.d.ts.map +1 -0
- package/dist/components/data/toggle/Toggle.d.ts +28 -0
- package/dist/components/data/toggle/Toggle.d.ts.map +1 -0
- package/dist/components/data/toggle/toggle.context.d.ts +2 -0
- package/dist/components/data/toggle/toggle.context.d.ts.map +1 -0
- package/dist/components/data/toggle/toggle.props.d.ts +28 -0
- package/dist/components/data/toggle/toggle.props.d.ts.map +1 -0
- package/dist/components/data/toggle/toggle.types.d.ts +4 -0
- package/dist/components/data/toggle/toggle.types.d.ts.map +1 -0
- package/dist/components/display/accordion/Accordion.d.ts +42 -0
- package/dist/components/display/accordion/Accordion.d.ts.map +1 -0
- package/dist/components/display/accordion/AccordionItem.d.ts +35 -0
- package/dist/components/display/accordion/AccordionItem.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion-item.context.d.ts +2 -0
- package/dist/components/display/accordion/accordion-item.context.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion-item.props.d.ts +19 -0
- package/dist/components/display/accordion/accordion-item.props.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion-item.types.d.ts +2 -0
- package/dist/components/display/accordion/accordion-item.types.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion.context.d.ts +9 -0
- package/dist/components/display/accordion/accordion.context.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion.props.d.ts +15 -0
- package/dist/components/display/accordion/accordion.props.d.ts.map +1 -0
- package/dist/components/display/avatar/Avatar.d.ts +14 -0
- package/dist/components/display/avatar/Avatar.d.ts.map +1 -0
- package/dist/components/display/avatar/avatar.context.d.ts +2 -0
- package/dist/components/display/avatar/avatar.context.d.ts.map +1 -0
- package/dist/components/display/avatar/avatar.props.d.ts +46 -0
- package/dist/components/display/avatar/avatar.props.d.ts.map +1 -0
- package/dist/components/display/avatar/avatar.types.d.ts +5 -0
- package/dist/components/display/avatar/avatar.types.d.ts.map +1 -0
- package/dist/components/display/badge/Badge.d.ts +12 -0
- package/dist/components/display/badge/Badge.d.ts.map +1 -0
- package/dist/components/display/badge/badge.context.d.ts +2 -0
- package/dist/components/display/badge/badge.context.d.ts.map +1 -0
- package/dist/components/display/badge/badge.props.d.ts +20 -0
- package/dist/components/display/badge/badge.props.d.ts.map +1 -0
- package/dist/components/display/badge/badge.types.d.ts +5 -0
- package/dist/components/display/badge/badge.types.d.ts.map +1 -0
- package/dist/components/display/card/Card.d.ts +12 -0
- package/dist/components/display/card/Card.d.ts.map +1 -0
- package/dist/components/display/card/CardActions.d.ts +12 -0
- package/dist/components/display/card/CardActions.d.ts.map +1 -0
- package/dist/components/display/card/CardBody.d.ts +14 -0
- package/dist/components/display/card/CardBody.d.ts.map +1 -0
- package/dist/components/display/card/CardTitle.d.ts +14 -0
- package/dist/components/display/card/CardTitle.d.ts.map +1 -0
- package/dist/components/display/card/card-actions.context.d.ts +2 -0
- package/dist/components/display/card/card-actions.context.d.ts.map +1 -0
- package/dist/components/display/card/card-actions.props.d.ts +15 -0
- package/dist/components/display/card/card-actions.props.d.ts.map +1 -0
- package/dist/components/display/card/card-actions.types.d.ts +2 -0
- package/dist/components/display/card/card-actions.types.d.ts.map +1 -0
- package/dist/components/display/card/card.context.d.ts +2 -0
- package/dist/components/display/card/card.context.d.ts.map +1 -0
- package/dist/components/display/card/card.props.d.ts +31 -0
- package/dist/components/display/card/card.props.d.ts.map +1 -0
- package/dist/components/display/card/card.types.d.ts +4 -0
- package/dist/components/display/card/card.types.d.ts.map +1 -0
- package/dist/components/display/carousel/Carousel.d.ts +16 -0
- package/dist/components/display/carousel/Carousel.d.ts.map +1 -0
- package/dist/components/display/carousel/carousel.context.d.ts +2 -0
- package/dist/components/display/carousel/carousel.context.d.ts.map +1 -0
- package/dist/components/display/carousel/carousel.props.d.ts +53 -0
- package/dist/components/display/carousel/carousel.props.d.ts.map +1 -0
- package/dist/components/display/carousel/carousel.types.d.ts +3 -0
- package/dist/components/display/carousel/carousel.types.d.ts.map +1 -0
- package/dist/components/display/chat/Chat.d.ts +20 -0
- package/dist/components/display/chat/Chat.d.ts.map +1 -0
- package/dist/components/display/chat/chat.context.d.ts +2 -0
- package/dist/components/display/chat/chat.context.d.ts.map +1 -0
- package/dist/components/display/chat/chat.props.d.ts +18 -0
- package/dist/components/display/chat/chat.props.d.ts.map +1 -0
- package/dist/components/display/chat/chat.types.d.ts +3 -0
- package/dist/components/display/chat/chat.types.d.ts.map +1 -0
- package/dist/components/display/countdown/Countdown.d.ts +38 -0
- package/dist/components/display/countdown/Countdown.d.ts.map +1 -0
- package/dist/components/display/countdown/countdown.props.d.ts +23 -0
- package/dist/components/display/countdown/countdown.props.d.ts.map +1 -0
- package/dist/components/display/countdown/countdown.types.d.ts +23 -0
- package/dist/components/display/countdown/countdown.types.d.ts.map +1 -0
- package/dist/components/display/diff/Diff.d.ts +16 -0
- package/dist/components/display/diff/Diff.d.ts.map +1 -0
- package/dist/components/display/hover-3d/Hover3d.d.ts +12 -0
- package/dist/components/display/hover-3d/Hover3d.d.ts.map +1 -0
- package/dist/components/display/hover-3d/hover-3d.props.d.ts +9 -0
- package/dist/components/display/hover-3d/hover-3d.props.d.ts.map +1 -0
- package/dist/components/display/hover-gallery/HoverGallery.d.ts +14 -0
- package/dist/components/display/hover-gallery/HoverGallery.d.ts.map +1 -0
- package/dist/components/display/kbd/Kbd.d.ts +12 -0
- package/dist/components/display/kbd/Kbd.d.ts.map +1 -0
- package/dist/components/display/kbd/kbd.context.d.ts +2 -0
- package/dist/components/display/kbd/kbd.context.d.ts.map +1 -0
- package/dist/components/display/kbd/kbd.props.d.ts +12 -0
- package/dist/components/display/kbd/kbd.props.d.ts.map +1 -0
- package/dist/components/display/kbd/kbd.types.d.ts +3 -0
- package/dist/components/display/kbd/kbd.types.d.ts.map +1 -0
- package/dist/components/display/list/List.d.ts +17 -0
- package/dist/components/display/list/List.d.ts.map +1 -0
- package/dist/components/display/list/ListItem.d.ts +22 -0
- package/dist/components/display/list/ListItem.d.ts.map +1 -0
- package/dist/components/display/list/list-item.props.d.ts +17 -0
- package/dist/components/display/list/list-item.props.d.ts.map +1 -0
- package/dist/components/display/list/list.props.d.ts +8 -0
- package/dist/components/display/list/list.props.d.ts.map +1 -0
- package/dist/components/display/public.d.ts +19 -0
- package/dist/components/display/public.d.ts.map +1 -0
- package/dist/components/display/public.es.js +2 -0
- package/dist/components/display/public.types.d.ts +24 -0
- package/dist/components/display/public.types.d.ts.map +1 -0
- package/dist/components/display/public.umd.js +1 -0
- package/dist/components/display/status/Status.d.ts +5 -0
- package/dist/components/display/status/Status.d.ts.map +1 -0
- package/dist/components/display/status/status.context.d.ts +2 -0
- package/dist/components/display/status/status.context.d.ts.map +1 -0
- package/dist/components/display/status/status.props.d.ts +27 -0
- package/dist/components/display/status/status.props.d.ts.map +1 -0
- package/dist/components/display/status/status.types.d.ts +5 -0
- package/dist/components/display/status/status.types.d.ts.map +1 -0
- package/dist/components/feedback/alert/Alert.d.ts +14 -0
- package/dist/components/feedback/alert/Alert.d.ts.map +1 -0
- package/dist/components/feedback/alert/alert.context.d.ts +2 -0
- package/dist/components/feedback/alert/alert.context.d.ts.map +1 -0
- package/dist/components/feedback/alert/alert.props.d.ts +27 -0
- package/dist/components/feedback/alert/alert.props.d.ts.map +1 -0
- package/dist/components/feedback/alert/alert.types.d.ts +4 -0
- package/dist/components/feedback/alert/alert.types.d.ts.map +1 -0
- package/dist/components/feedback/loading/Loading.d.ts +5 -0
- package/dist/components/feedback/loading/Loading.d.ts.map +1 -0
- package/dist/components/feedback/loading/loading.context.d.ts +2 -0
- package/dist/components/feedback/loading/loading.context.d.ts.map +1 -0
- package/dist/components/feedback/loading/loading.props.d.ts +23 -0
- package/dist/components/feedback/loading/loading.props.d.ts.map +1 -0
- package/dist/components/feedback/loading/loading.types.d.ts +5 -0
- package/dist/components/feedback/loading/loading.types.d.ts.map +1 -0
- package/dist/components/feedback/progress/Progress.d.ts +5 -0
- package/dist/components/feedback/progress/Progress.d.ts.map +1 -0
- package/dist/components/feedback/progress/progress.context.d.ts +2 -0
- package/dist/components/feedback/progress/progress.context.d.ts.map +1 -0
- package/dist/components/feedback/progress/progress.props.d.ts +29 -0
- package/dist/components/feedback/progress/progress.props.d.ts.map +1 -0
- package/dist/components/feedback/progress/progress.types.d.ts +2 -0
- package/dist/components/feedback/progress/progress.types.d.ts.map +1 -0
- package/dist/components/feedback/public.d.ts +6 -0
- package/dist/components/feedback/public.d.ts.map +1 -0
- package/dist/components/feedback/public.es.js +129 -0
- package/dist/components/feedback/public.es.js.map +1 -0
- package/dist/components/feedback/public.types.d.ts +13 -0
- package/dist/components/feedback/public.types.d.ts.map +1 -0
- package/dist/components/feedback/public.umd.js +2 -0
- package/dist/components/feedback/public.umd.js.map +1 -0
- package/dist/components/feedback/radial-progress/radial-progress.context.d.ts +2 -0
- package/dist/components/feedback/radial-progress/radial-progress.context.d.ts.map +1 -0
- package/dist/components/feedback/radial-progress/radial-progress.props.d.ts +32 -0
- package/dist/components/feedback/radial-progress/radial-progress.props.d.ts.map +1 -0
- package/dist/components/feedback/radial-progress/radial-progress.types.d.ts +2 -0
- package/dist/components/feedback/radial-progress/radial-progress.types.d.ts.map +1 -0
- package/dist/components/feedback/toast/Toast.d.ts +12 -0
- package/dist/components/feedback/toast/Toast.d.ts.map +1 -0
- package/dist/components/feedback/toast/toast.context.d.ts +9 -0
- package/dist/components/feedback/toast/toast.context.d.ts.map +1 -0
- package/dist/components/feedback/toast/toast.props.d.ts +31 -0
- package/dist/components/feedback/toast/toast.props.d.ts.map +1 -0
- package/dist/components/feedback/toast/toast.types.d.ts +5 -0
- package/dist/components/feedback/toast/toast.types.d.ts.map +1 -0
- package/dist/components/feedback/tooltip/Tooltip.d.ts +14 -0
- package/dist/components/feedback/tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/feedback/tooltip/tooltip.context.d.ts +2 -0
- package/dist/components/feedback/tooltip/tooltip.context.d.ts.map +1 -0
- package/dist/components/feedback/tooltip/tooltip.props.d.ts +39 -0
- package/dist/components/feedback/tooltip/tooltip.props.d.ts.map +1 -0
- package/dist/components/feedback/tooltip/tooltip.types.d.ts +3 -0
- package/dist/components/feedback/tooltip/tooltip.types.d.ts.map +1 -0
- package/dist/components/layout/divider/Divider.d.ts +12 -0
- package/dist/components/layout/divider/Divider.d.ts.map +1 -0
- package/dist/components/layout/divider/divider.context.d.ts +2 -0
- package/dist/components/layout/divider/divider.context.d.ts.map +1 -0
- package/dist/components/layout/divider/divider.props.d.ts +26 -0
- package/dist/components/layout/divider/divider.props.d.ts.map +1 -0
- package/dist/components/layout/divider/divider.types.d.ts +4 -0
- package/dist/components/layout/divider/divider.types.d.ts.map +1 -0
- package/dist/components/layout/drawer/Drawer.d.ts +39 -0
- package/dist/components/layout/drawer/Drawer.d.ts.map +1 -0
- package/dist/components/layout/drawer/drawer.context.d.ts +2 -0
- package/dist/components/layout/drawer/drawer.context.d.ts.map +1 -0
- package/dist/components/layout/drawer/drawer.props.d.ts +28 -0
- package/dist/components/layout/drawer/drawer.props.d.ts.map +1 -0
- package/dist/components/layout/drawer/drawer.types.d.ts +6 -0
- package/dist/components/layout/drawer/drawer.types.d.ts.map +1 -0
- package/dist/components/layout/indicator/Indicator.d.ts +14 -0
- package/dist/components/layout/indicator/Indicator.d.ts.map +1 -0
- package/dist/components/layout/indicator/indicator.context.d.ts +2 -0
- package/dist/components/layout/indicator/indicator.context.d.ts.map +1 -0
- package/dist/components/layout/indicator/indicator.props.d.ts +29 -0
- package/dist/components/layout/indicator/indicator.props.d.ts.map +1 -0
- package/dist/components/layout/indicator/indicator.types.d.ts +3 -0
- package/dist/components/layout/indicator/indicator.types.d.ts.map +1 -0
- package/dist/components/layout/join/Join.d.ts +12 -0
- package/dist/components/layout/join/Join.d.ts.map +1 -0
- package/dist/components/layout/join/join.context.d.ts +2 -0
- package/dist/components/layout/join/join.context.d.ts.map +1 -0
- package/dist/components/layout/join/join.props.d.ts +14 -0
- package/dist/components/layout/join/join.props.d.ts.map +1 -0
- package/dist/components/layout/join/join.types.d.ts +2 -0
- package/dist/components/layout/join/join.types.d.ts.map +1 -0
- package/dist/components/layout/mask/Mask.d.ts +12 -0
- package/dist/components/layout/mask/Mask.d.ts.map +1 -0
- package/dist/components/layout/mask/mask.context.d.ts +2 -0
- package/dist/components/layout/mask/mask.context.d.ts.map +1 -0
- package/dist/components/layout/mask/mask.props.d.ts +38 -0
- package/dist/components/layout/mask/mask.props.d.ts.map +1 -0
- package/dist/components/layout/mask/mask.types.d.ts +3 -0
- package/dist/components/layout/mask/mask.types.d.ts.map +1 -0
- package/dist/components/layout/public.d.ts +7 -0
- package/dist/components/layout/public.d.ts.map +1 -0
- package/dist/components/layout/public.es.js +207 -0
- package/dist/components/layout/public.es.js.map +1 -0
- package/dist/components/layout/public.types.d.ts +13 -0
- package/dist/components/layout/public.types.d.ts.map +1 -0
- package/dist/components/layout/public.umd.js +2 -0
- package/dist/components/layout/public.umd.js.map +1 -0
- package/dist/components/layout/stack/Stack.d.ts +12 -0
- package/dist/components/layout/stack/Stack.d.ts.map +1 -0
- package/dist/components/layout/stack/stack.context.d.ts +2 -0
- package/dist/components/layout/stack/stack.context.d.ts.map +1 -0
- package/dist/components/layout/stack/stack.props.d.ts +12 -0
- package/dist/components/layout/stack/stack.props.d.ts.map +1 -0
- package/dist/components/layout/stack/stack.types.d.ts +2 -0
- package/dist/components/layout/stack/stack.types.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts +5 -0
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.context.d.ts +2 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.context.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.props.d.ts +17 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.props.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.types.d.ts +11 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.types.d.ts.map +1 -0
- package/dist/components/navigation/dock/Dock.d.ts +12 -0
- package/dist/components/navigation/dock/Dock.d.ts.map +1 -0
- package/dist/components/navigation/dock/DockItem.d.ts +5 -0
- package/dist/components/navigation/dock/DockItem.d.ts.map +1 -0
- package/dist/components/navigation/dock/dock.context.d.ts +3 -0
- package/dist/components/navigation/dock/dock.context.d.ts.map +1 -0
- package/dist/components/navigation/dock/dock.props.d.ts +30 -0
- package/dist/components/navigation/dock/dock.props.d.ts.map +1 -0
- package/dist/components/navigation/dock/dock.types.d.ts +3 -0
- package/dist/components/navigation/dock/dock.types.d.ts.map +1 -0
- package/dist/components/navigation/link/Link.d.ts +12 -0
- package/dist/components/navigation/link/Link.d.ts.map +1 -0
- package/dist/components/navigation/link/link.context.d.ts +2 -0
- package/dist/components/navigation/link/link.context.d.ts.map +1 -0
- package/dist/components/navigation/link/link.props.d.ts +22 -0
- package/dist/components/navigation/link/link.props.d.ts.map +1 -0
- package/dist/components/navigation/link/link.types.d.ts +2 -0
- package/dist/components/navigation/link/link.types.d.ts.map +1 -0
- package/dist/components/navigation/menu/Menu.d.ts +12 -0
- package/dist/components/navigation/menu/Menu.d.ts.map +1 -0
- package/dist/components/navigation/menu/menu.context.d.ts +3 -0
- package/dist/components/navigation/menu/menu.context.d.ts.map +1 -0
- package/dist/components/navigation/menu/menu.props.d.ts +62 -0
- package/dist/components/navigation/menu/menu.props.d.ts.map +1 -0
- package/dist/components/navigation/menu/menu.types.d.ts +4 -0
- package/dist/components/navigation/menu/menu.types.d.ts.map +1 -0
- package/dist/components/navigation/public.d.ts +6 -0
- package/dist/components/navigation/public.d.ts.map +1 -0
- package/dist/components/navigation/public.es.js +128 -0
- package/dist/components/navigation/public.es.js.map +1 -0
- package/dist/components/navigation/public.types.d.ts +9 -0
- package/dist/components/navigation/public.types.d.ts.map +1 -0
- package/dist/components/navigation/public.umd.js +2 -0
- package/dist/components/navigation/public.umd.js.map +1 -0
- package/dist/composables/public.d.ts +4 -0
- package/dist/composables/public.d.ts.map +1 -0
- package/dist/composables/public.es.js +12 -0
- package/dist/composables/public.es.js.map +1 -0
- package/dist/composables/public.umd.js +2 -0
- package/dist/composables/public.umd.js.map +1 -0
- package/dist/composables/use-component-config.d.ts +27 -0
- package/dist/composables/use-component-config.d.ts.map +1 -0
- package/dist/composables/use-config.d.ts +2 -0
- package/dist/composables/use-config.d.ts.map +1 -0
- package/dist/composables/use-form-field.d.ts +24 -0
- package/dist/composables/use-form-field.d.ts.map +1 -0
- package/dist/composables/use-select-counter.d.ts +13 -0
- package/dist/composables/use-select-counter.d.ts.map +1 -0
- package/dist/composables/use-toast.d.ts +36 -0
- package/dist/composables/use-toast.d.ts.map +1 -0
- package/dist/favicon.svg +1 -0
- package/dist/icons.svg +24 -0
- package/dist/is-true-B9ixxcRp.js +8 -0
- package/dist/is-true-B9ixxcRp.js.map +1 -0
- package/dist/is-true-D7MXJ1b7.cjs +2 -0
- package/dist/is-true-D7MXJ1b7.cjs.map +1 -0
- package/dist/plugin-vue.d.ts +33 -0
- package/dist/plugin-vue.d.ts.map +1 -0
- package/dist/public-CsUi4LK8.cjs +2 -0
- package/dist/public-CsUi4LK8.cjs.map +1 -0
- package/dist/public-D8Z0iHnm.js +563 -0
- package/dist/public-D8Z0iHnm.js.map +1 -0
- package/dist/public.d.ts +9 -0
- package/dist/public.d.ts.map +1 -0
- package/dist/public.es.js +15 -0
- package/dist/public.es.js.map +1 -0
- package/dist/public.umd.js +2 -0
- package/dist/public.umd.js.map +1 -0
- package/dist/symbol-6E8gXxBa.cjs +2 -0
- package/dist/symbol-6E8gXxBa.cjs.map +1 -0
- package/dist/symbol-Dy7mXgB5.js +14 -0
- package/dist/symbol-Dy7mXgB5.js.map +1 -0
- package/dist/symbol.d.ts +6 -0
- package/dist/symbol.d.ts.map +1 -0
- package/dist/types/config.type.d.ts +85 -0
- package/dist/types/config.type.d.ts.map +1 -0
- package/dist/types/public.d.ts +4 -0
- package/dist/types/public.d.ts.map +1 -0
- package/dist/types/public.es.js +0 -0
- package/dist/types/public.umd.js +1 -0
- package/dist/types/size.type.d.ts +2 -0
- package/dist/types/size.type.d.ts.map +1 -0
- package/dist/types/utils.type.d.ts +6 -0
- package/dist/types/utils.type.d.ts.map +1 -0
- package/dist/use-component-config-DX0jSicI.cjs +2 -0
- package/dist/use-component-config-DX0jSicI.cjs.map +1 -0
- package/dist/use-component-config-DfXvZ0-o.js +20 -0
- package/dist/use-component-config-DfXvZ0-o.js.map +1 -0
- package/dist/use-form-field-CHsU-LtQ.js +57 -0
- package/dist/use-form-field-CHsU-LtQ.js.map +1 -0
- package/dist/use-form-field-Zw9_0CVq.cjs +2 -0
- package/dist/use-form-field-Zw9_0CVq.cjs.map +1 -0
- package/dist/utils/build-class.util.d.ts +4 -0
- package/dist/utils/build-class.util.d.ts.map +1 -0
- package/dist/utils/get-validation-message.d.ts +22 -0
- package/dist/utils/get-validation-message.d.ts.map +1 -0
- package/dist/utils/is-true.d.ts +3 -0
- package/dist/utils/is-true.d.ts.map +1 -0
- package/dist/utils/path.d.ts +20 -0
- package/dist/utils/path.d.ts.map +1 -0
- package/dist/utils/props.util.d.ts +2 -0
- package/dist/utils/props.util.d.ts.map +1 -0
- package/dist/utils/public.d.ts +2 -0
- package/dist/utils/public.d.ts.map +1 -0
- package/dist/vue.css +2 -0
- package/package.json +106 -56
- package/src/assets/hero.png +0 -0
- package/src/assets/vite.svg +1 -0
- package/src/assets/vue.svg +1 -0
- package/src/components/ClassWrapper.vue +42 -0
- package/src/components/actions/button/Button.story.vue +187 -0
- package/src/components/actions/button/Button.vue +103 -0
- package/src/components/actions/button/button.context.ts +3 -0
- package/src/components/actions/button/button.props.ts +67 -0
- package/src/components/actions/button/button.types.ts +7 -0
- package/src/components/actions/dropdown/Dropdown.story.vue +349 -0
- package/src/components/actions/dropdown/Dropdown.vue +219 -0
- package/src/components/actions/dropdown/dropdown.context.ts +3 -0
- package/src/components/actions/dropdown/dropdown.props.ts +67 -0
- package/src/components/actions/dropdown/dropdown.types.ts +4 -0
- package/src/components/actions/fab/Fab.story.vue +227 -0
- package/src/components/actions/fab/Fab.vue +33 -0
- package/src/components/actions/fab/fab.context.ts +3 -0
- package/src/components/actions/fab/fab.props.ts +11 -0
- package/src/components/actions/fab/fab.types.ts +1 -0
- package/src/components/actions/modal/Modal.story.vue +284 -0
- package/src/components/actions/modal/Modal.vue +104 -0
- package/src/components/actions/modal/modal.context.ts +3 -0
- package/src/components/actions/modal/modal.props.ts +34 -0
- package/src/components/actions/modal/modal.types.ts +1 -0
- package/src/components/actions/public.ts +5 -0
- package/src/components/actions/public.types.ts +15 -0
- package/src/components/actions/swap/Swap.story.vue +302 -0
- package/src/components/actions/swap/Swap.vue +60 -0
- package/src/components/actions/swap/swap.context.ts +3 -0
- package/src/components/actions/swap/swap.props.ts +20 -0
- package/src/components/actions/swap/swap.types.ts +1 -0
- package/src/components/app/PoppyApp.vue +48 -0
- package/src/components/app/public.ts +1 -0
- package/src/components/data/checkbox/Checkbox.story.vue +156 -0
- package/src/components/data/checkbox/Checkbox.vue +119 -0
- package/src/components/data/checkbox/checkbox.context.ts +3 -0
- package/src/components/data/checkbox/checkbox.props.ts +38 -0
- package/src/components/data/checkbox/checkbox.types.ts +5 -0
- package/src/components/data/form/Form.story.vue +144 -0
- package/src/components/data/form/Form.vue +222 -0
- package/src/components/data/form/form.context.ts +76 -0
- package/src/components/data/form/form.props.ts +30 -0
- package/src/components/data/form/form.types.ts +25 -0
- package/src/components/data/form-field/FormField.vue +133 -0
- package/src/components/data/form-field/form-field.context.ts +51 -0
- package/src/components/data/form-field/form-field.props.ts +34 -0
- package/src/components/data/form-field/form-field.types.ts +1 -0
- package/src/components/data/input/Input.story.vue +219 -0
- package/src/components/data/input/Input.vue +196 -0
- package/src/components/data/input/input.context.ts +3 -0
- package/src/components/data/input/input.props.ts +83 -0
- package/src/components/data/input/input.types.ts +10 -0
- package/src/components/data/public.ts +10 -0
- package/src/components/data/public.types.ts +30 -0
- package/src/components/data/radio/Radio.story.vue +158 -0
- package/src/components/data/radio/Radio.vue +105 -0
- package/src/components/data/radio/radio.context.ts +3 -0
- package/src/components/data/radio/radio.props.ts +46 -0
- package/src/components/data/radio/radio.types.ts +5 -0
- package/src/components/data/rating/Rating.story.vue +150 -0
- package/src/components/data/rating/Rating.vue +178 -0
- package/src/components/data/rating/rating.context.ts +3 -0
- package/src/components/data/rating/rating.props.ts +51 -0
- package/src/components/data/rating/rating.types.ts +8 -0
- package/src/components/data/select/Select.story.vue +221 -0
- package/src/components/data/select/Select.vue +329 -0
- package/src/components/data/select/select.context.ts +3 -0
- package/src/components/data/select/select.props.ts +65 -0
- package/src/components/data/select/select.types.ts +13 -0
- package/src/components/data/slider/Slider.story.vue +276 -0
- package/src/components/data/slider/Slider.vue +772 -0
- package/src/components/data/slider/slider.context.ts +3 -0
- package/src/components/data/slider/slider.props.ts +84 -0
- package/src/components/data/slider/slider.types.ts +11 -0
- package/src/components/data/textarea/Textarea.story.vue +222 -0
- package/src/components/data/textarea/Textarea.vue +179 -0
- package/src/components/data/textarea/textarea.context.ts +3 -0
- package/src/components/data/textarea/textarea.props.ts +75 -0
- package/src/components/data/textarea/textarea.types.ts +7 -0
- package/src/components/data/toggle/Toggle.story.vue +146 -0
- package/src/components/data/toggle/Toggle.vue +115 -0
- package/src/components/data/toggle/toggle.context.ts +3 -0
- package/src/components/data/toggle/toggle.props.ts +30 -0
- package/src/components/data/toggle/toggle.types.ts +5 -0
- package/src/components/display/accordion/Accordion.story.vue +482 -0
- package/src/components/display/accordion/Accordion.vue +112 -0
- package/src/components/display/accordion/AccordionItem.vue +111 -0
- package/src/components/display/accordion/accordion-item.context.ts +3 -0
- package/src/components/display/accordion/accordion-item.props.ts +20 -0
- package/src/components/display/accordion/accordion-item.types.ts +1 -0
- package/src/components/display/accordion/accordion.context.ts +10 -0
- package/src/components/display/accordion/accordion.props.ts +16 -0
- package/src/components/display/avatar/Avatar.story.vue +341 -0
- package/src/components/display/avatar/Avatar.vue +58 -0
- package/src/components/display/avatar/avatar.context.ts +3 -0
- package/src/components/display/avatar/avatar.props.ts +50 -0
- package/src/components/display/avatar/avatar.types.ts +5 -0
- package/src/components/display/badge/Badge.story.vue +156 -0
- package/src/components/display/badge/Badge.vue +51 -0
- package/src/components/display/badge/badge.context.ts +3 -0
- package/src/components/display/badge/badge.props.ts +22 -0
- package/src/components/display/badge/badge.types.ts +5 -0
- package/src/components/display/card/Card.story.vue +308 -0
- package/src/components/display/card/Card.vue +41 -0
- package/src/components/display/card/CardActions.vue +30 -0
- package/src/components/display/card/CardBody.vue +5 -0
- package/src/components/display/card/CardTitle.vue +5 -0
- package/src/components/display/card/card-actions.context.ts +3 -0
- package/src/components/display/card/card-actions.props.ts +15 -0
- package/src/components/display/card/card-actions.types.ts +1 -0
- package/src/components/display/card/card.context.ts +3 -0
- package/src/components/display/card/card.props.ts +34 -0
- package/src/components/display/card/card.types.ts +4 -0
- package/src/components/display/carousel/Carousel.story.vue +216 -0
- package/src/components/display/carousel/Carousel.vue +157 -0
- package/src/components/display/carousel/carousel.context.ts +3 -0
- package/src/components/display/carousel/carousel.props.ts +59 -0
- package/src/components/display/carousel/carousel.types.ts +2 -0
- package/src/components/display/chat/Chat.story.vue +251 -0
- package/src/components/display/chat/Chat.vue +56 -0
- package/src/components/display/chat/chat.context.ts +3 -0
- package/src/components/display/chat/chat.props.ts +19 -0
- package/src/components/display/chat/chat.types.ts +2 -0
- package/src/components/display/countdown/Countdown.story.vue +284 -0
- package/src/components/display/countdown/Countdown.vue +111 -0
- package/src/components/display/countdown/countdown.props.ts +24 -0
- package/src/components/display/countdown/countdown.types.ts +24 -0
- package/src/components/display/diff/Diff.story.vue +118 -0
- package/src/components/display/diff/Diff.vue +13 -0
- package/src/components/display/hover-3d/Hover3d.story.vue +154 -0
- package/src/components/display/hover-3d/Hover3d.vue +37 -0
- package/src/components/display/hover-3d/hover-3d.props.ts +9 -0
- package/src/components/display/hover-gallery/HoverGallery.story.vue +121 -0
- package/src/components/display/hover-gallery/HoverGallery.vue +5 -0
- package/src/components/display/kbd/Kbd.story.vue +214 -0
- package/src/components/display/kbd/Kbd.vue +32 -0
- package/src/components/display/kbd/kbd.context.ts +3 -0
- package/src/components/display/kbd/kbd.props.ts +12 -0
- package/src/components/display/kbd/kbd.types.ts +3 -0
- package/src/components/display/list/List.story.vue +381 -0
- package/src/components/display/list/List.vue +14 -0
- package/src/components/display/list/ListItem.vue +53 -0
- package/src/components/display/list/list-item.props.ts +19 -0
- package/src/components/display/list/list.props.ts +7 -0
- package/src/components/display/public.ts +18 -0
- package/src/components/display/public.types.ts +34 -0
- package/src/components/display/status/Status.story.vue +195 -0
- package/src/components/display/status/Status.vue +70 -0
- package/src/components/display/status/status.context.ts +3 -0
- package/src/components/display/status/status.props.ts +30 -0
- package/src/components/display/status/status.types.ts +5 -0
- package/src/components/feedback/alert/Alert.story.vue +243 -0
- package/src/components/feedback/alert/Alert.vue +46 -0
- package/src/components/feedback/alert/alert.context.ts +3 -0
- package/src/components/feedback/alert/alert.props.ts +29 -0
- package/src/components/feedback/alert/alert.types.ts +3 -0
- package/src/components/feedback/loading/Loading.story.vue +156 -0
- package/src/components/feedback/loading/Loading.vue +55 -0
- package/src/components/feedback/loading/loading.context.ts +3 -0
- package/src/components/feedback/loading/loading.props.ts +25 -0
- package/src/components/feedback/loading/loading.types.ts +5 -0
- package/src/components/feedback/progress/Progress.story.vue +96 -0
- package/src/components/feedback/progress/Progress.vue +37 -0
- package/src/components/feedback/progress/progress.context.ts +3 -0
- package/src/components/feedback/progress/progress.props.ts +32 -0
- package/src/components/feedback/progress/progress.types.ts +1 -0
- package/src/components/feedback/public.ts +5 -0
- package/src/components/feedback/public.types.ts +18 -0
- package/src/components/feedback/radial-progress/RadialProgress.story.vue +118 -0
- package/src/components/feedback/radial-progress/RadialProgress.vue +46 -0
- package/src/components/feedback/radial-progress/radial-progress.context.ts +3 -0
- package/src/components/feedback/radial-progress/radial-progress.props.ts +35 -0
- package/src/components/feedback/radial-progress/radial-progress.types.ts +9 -0
- package/src/components/feedback/toast/Toast.story.vue +356 -0
- package/src/components/feedback/toast/Toast.vue +40 -0
- package/src/components/feedback/toast/toast.context.ts +12 -0
- package/src/components/feedback/toast/toast.props.ts +33 -0
- package/src/components/feedback/toast/toast.types.ts +5 -0
- package/src/components/feedback/tooltip/Tooltip.story.vue +256 -0
- package/src/components/feedback/tooltip/Tooltip.vue +123 -0
- package/src/components/feedback/tooltip/tooltip.context.ts +3 -0
- package/src/components/feedback/tooltip/tooltip.props.ts +44 -0
- package/src/components/feedback/tooltip/tooltip.types.ts +2 -0
- package/src/components/layout/divider/Divider.story.vue +217 -0
- package/src/components/layout/divider/Divider.vue +48 -0
- package/src/components/layout/divider/divider.context.ts +3 -0
- package/src/components/layout/divider/divider.props.ts +28 -0
- package/src/components/layout/divider/divider.types.ts +3 -0
- package/src/components/layout/drawer/Drawer.story.vue +301 -0
- package/src/components/layout/drawer/Drawer.vue +91 -0
- package/src/components/layout/drawer/drawer.context.ts +3 -0
- package/src/components/layout/drawer/drawer.props.ts +31 -0
- package/src/components/layout/drawer/drawer.types.ts +6 -0
- package/src/components/layout/indicator/Indicator.story.vue +264 -0
- package/src/components/layout/indicator/Indicator.vue +44 -0
- package/src/components/layout/indicator/indicator.context.ts +3 -0
- package/src/components/layout/indicator/indicator.props.ts +31 -0
- package/src/components/layout/indicator/indicator.types.ts +2 -0
- package/src/components/layout/join/Join.story.vue +147 -0
- package/src/components/layout/join/Join.vue +32 -0
- package/src/components/layout/join/join.context.ts +3 -0
- package/src/components/layout/join/join.props.ts +14 -0
- package/src/components/layout/join/join.types.ts +1 -0
- package/src/components/layout/mask/Mask.story.vue +181 -0
- package/src/components/layout/mask/Mask.vue +50 -0
- package/src/components/layout/mask/mask.context.ts +3 -0
- package/src/components/layout/mask/mask.props.ts +40 -0
- package/src/components/layout/mask/mask.types.ts +18 -0
- package/src/components/layout/public.ts +6 -0
- package/src/components/layout/public.types.ts +18 -0
- package/src/components/layout/stack/Stack.story.vue +170 -0
- package/src/components/layout/stack/Stack.vue +29 -0
- package/src/components/layout/stack/stack.context.ts +3 -0
- package/src/components/layout/stack/stack.props.ts +12 -0
- package/src/components/layout/stack/stack.types.ts +1 -0
- package/src/components/navigation/breadcrumbs/Breadcrumbs.story.vue +94 -0
- package/src/components/navigation/breadcrumbs/Breadcrumbs.vue +53 -0
- package/src/components/navigation/breadcrumbs/breadcrumbs.context.ts +3 -0
- package/src/components/navigation/breadcrumbs/breadcrumbs.props.ts +18 -0
- package/src/components/navigation/breadcrumbs/breadcrumbs.types.ts +13 -0
- package/src/components/navigation/dock/Dock.story.vue +109 -0
- package/src/components/navigation/dock/Dock.vue +32 -0
- package/src/components/navigation/dock/DockItem.vue +50 -0
- package/src/components/navigation/dock/dock.context.ts +4 -0
- package/src/components/navigation/dock/dock.props.ts +34 -0
- package/src/components/navigation/dock/dock.types.ts +3 -0
- package/src/components/navigation/link/Link.story.vue +129 -0
- package/src/components/navigation/link/Link.vue +58 -0
- package/src/components/navigation/link/link.context.ts +3 -0
- package/src/components/navigation/link/link.props.ts +24 -0
- package/src/components/navigation/link/link.types.ts +1 -0
- package/src/components/navigation/menu/Menu.story.vue +284 -0
- package/src/components/navigation/menu/Menu.vue +41 -0
- package/src/components/navigation/menu/MenuItem.vue +104 -0
- package/src/components/navigation/menu/menu.context.ts +4 -0
- package/src/components/navigation/menu/menu.props.ts +70 -0
- package/src/components/navigation/menu/menu.types.ts +4 -0
- package/src/components/navigation/public.ts +5 -0
- package/src/components/navigation/public.types.ts +12 -0
- package/src/composables/public.ts +3 -0
- package/src/composables/use-component-config.ts +44 -0
- package/src/composables/use-config.ts +6 -0
- package/src/composables/use-form-field.ts +84 -0
- package/src/composables/use-select-counter.ts +59 -0
- package/src/composables/use-toast.ts +47 -0
- package/src/histoire.css +8 -0
- package/src/plugin-vue.ts +53 -0
- package/src/public.ts +9 -0
- package/src/stories/Configuration.story.md +55 -0
- package/src/style.css +6 -0
- package/src/symbol.ts +18 -0
- package/src/types/config.type.ts +96 -0
- package/src/types/public.ts +3 -0
- package/src/types/size.type.ts +1 -0
- package/src/types/utils.type.ts +7 -0
- package/src/utils/build-class.util.ts +38 -0
- package/src/utils/get-validation-message.ts +61 -0
- package/src/utils/is-true.ts +12 -0
- package/src/utils/path.ts +102 -0
- package/src/utils/props.util.ts +11 -0
- package/src/utils/public.ts +1 -0
- package/src/vite-env.d.ts +11 -0
- package/src/vue.d.ts +15 -0
- package/css/core.css +0 -1
- package/css/core.css.map +0 -1
- package/css/global.bundle.css +0 -1
- package/css/global.bundle.css.map +0 -1
- package/css/normalize.css +0 -1
- package/css/normalize.css.map +0 -1
- package/css/poppy.bundle.css +0 -1
- package/css/poppy.bundle.css.map +0 -1
- package/css/structure.css +0 -1
- package/css/structure.css.map +0 -1
- package/css/themes/dark.always.css +0 -1
- package/css/themes/dark.always.css.map +0 -1
- package/css/themes/dark.class.css +0 -1
- package/css/themes/dark.class.css.map +0 -1
- package/css/themes/dark.system.css +0 -1
- package/css/themes/dark.system.css.map +0 -1
- package/css/themes/dark.theme.css +0 -1
- package/css/themes/dark.theme.css.map +0 -1
- package/css/themes/light.always.css +0 -1
- package/css/themes/light.always.css.map +0 -1
- package/css/themes/light.class.css +0 -1
- package/css/themes/light.class.css.map +0 -1
- package/css/themes/light.system.css +0 -1
- package/css/themes/light.system.css.map +0 -1
- package/css/themes/light.theme.css +0 -1
- package/css/themes/light.theme.css.map +0 -1
- package/dist/index.js +0 -448
- package/dist/index.js.map +0 -1
- package/dist/types/generated/components.d.ts +0 -38
- package/dist/types/generated/vue-component-lib/utils.d.ts +0 -16
- package/dist/types/index.d.ts +0 -6
- package/dist/types/plugin.d.ts +0 -3
- package/dist/vetur/attributes.json +0 -1392
- package/dist/vetur/tags.json +0 -376
- package/dist/web-types.json +0 -2940
- package/readme.md +0 -39
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { computed, type Ref } from 'vue'
|
|
2
|
+
|
|
3
|
+
export type SelectCounterFormatter = (count: number, min?: number, max?: number) => string
|
|
4
|
+
|
|
5
|
+
export function useSelectCounter(
|
|
6
|
+
selectedCount: Ref<number>,
|
|
7
|
+
options: {
|
|
8
|
+
multiple?: Ref<boolean | undefined>
|
|
9
|
+
min?: Ref<number | undefined>
|
|
10
|
+
max?: Ref<number | undefined>
|
|
11
|
+
formatter?: Ref<SelectCounterFormatter | undefined>
|
|
12
|
+
},
|
|
13
|
+
) {
|
|
14
|
+
const counterText = computed(() => {
|
|
15
|
+
if (!options.multiple?.value) {
|
|
16
|
+
return null
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (!options.min?.value && !options.max?.value) {
|
|
20
|
+
return null
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (options.formatter?.value) {
|
|
24
|
+
return options.formatter.value(selectedCount.value, options.min?.value, options.max?.value)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (options.max?.value) {
|
|
28
|
+
return `${selectedCount.value} / ${options.max.value}`
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return `${selectedCount.value}`
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
const counterColor = computed(() => {
|
|
35
|
+
if (options.max?.value && selectedCount.value > options.max.value) {
|
|
36
|
+
return 'text-error'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (options.min?.value && selectedCount.value < options.min.value) {
|
|
40
|
+
return 'text-warning'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return 'opacity-40'
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
const isAtMax = computed(() => {
|
|
47
|
+
if (!options.max?.value || !options.multiple?.value) {
|
|
48
|
+
return false
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return selectedCount.value >= options.max.value
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
return {
|
|
55
|
+
counterText,
|
|
56
|
+
counterColor,
|
|
57
|
+
isAtMax,
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -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
|
+
}
|
package/src/histoire.css
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { App } from 'vue'
|
|
2
|
+
import { COMPONENT_SIZE, createComponentConfigKey } from './symbol'
|
|
3
|
+
import type { PoppyComponentConfig } from './types/config.type'
|
|
4
|
+
import type { ComponentSize } from './types/size.type'
|
|
5
|
+
|
|
6
|
+
type Plugin<T> = import('vue').Plugin<T>
|
|
7
|
+
|
|
8
|
+
declare global {
|
|
9
|
+
export interface Window {
|
|
10
|
+
/**
|
|
11
|
+
* Poppy UI plugin options for debugging purposes. This is only set if the `debug` option is enabled when installing the plugin.
|
|
12
|
+
*
|
|
13
|
+
* @since 0.0.0
|
|
14
|
+
*/
|
|
15
|
+
__POPPY_UI_PLUGIN_OPTIONS__?: PluginOptions
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface PluginOptions {
|
|
20
|
+
/**
|
|
21
|
+
* 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.
|
|
22
|
+
* @since 0.0.0
|
|
23
|
+
*/
|
|
24
|
+
size?: ComponentSize
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* 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.
|
|
28
|
+
* @since 0.0.0
|
|
29
|
+
*/
|
|
30
|
+
components?: Partial<PoppyComponentConfig>
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 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.
|
|
34
|
+
* @since 0.0.0
|
|
35
|
+
*/
|
|
36
|
+
debug?: true
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export const PoppyUi = {
|
|
40
|
+
install(app: App, options: PluginOptions = {}) {
|
|
41
|
+
app.provide(COMPONENT_SIZE, options?.size || 'md')
|
|
42
|
+
|
|
43
|
+
for (const [componentName, componentConfig] of Object.entries(options?.components || {})) {
|
|
44
|
+
const key = createComponentConfigKey(componentName as keyof PoppyComponentConfig)
|
|
45
|
+
app.provide(key, componentConfig as never)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (options?.debug) {
|
|
49
|
+
window.__POPPY_UI_PLUGIN_OPTIONS__ = options
|
|
50
|
+
console.log('Poppy UI Plugin Options:', options)
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
} as Plugin<[PluginOptions?]>
|
package/src/public.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PoppyUi } from './plugin-vue'
|
|
2
|
+
|
|
3
|
+
export default PoppyUi
|
|
4
|
+
export * from './components/actions/public.types'
|
|
5
|
+
export * from './components/display/public.types'
|
|
6
|
+
export * from './components/feedback/public.types'
|
|
7
|
+
export * from './components/layout/public.types'
|
|
8
|
+
export * from './components/navigation/public.types'
|
|
9
|
+
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.
|
package/src/style.css
ADDED
package/src/symbol.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ComponentSize } from '@/types/size.type'
|
|
2
|
+
import type { InjectionKey } from 'vue'
|
|
3
|
+
import type { PoppyComponentConfig } from './types/config.type'
|
|
4
|
+
|
|
5
|
+
const knownComponentConfigKeys = new Map<keyof PoppyComponentConfig, InjectionKey<unknown>>()
|
|
6
|
+
|
|
7
|
+
export function createComponentConfigKey<K extends keyof PoppyComponentConfig>(name: K) {
|
|
8
|
+
type Key = InjectionKey<Partial<PoppyComponentConfig[K]>>
|
|
9
|
+
|
|
10
|
+
if (!knownComponentConfigKeys.has(name)) {
|
|
11
|
+
const key = Symbol(`config-${String(name)}`) as Key
|
|
12
|
+
knownComponentConfigKeys.set(name, key)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return knownComponentConfigKeys.get(name) as Key
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const COMPONENT_SIZE = Symbol('pop-component--size') as InjectionKey<ComponentSize>
|
|
@@ -0,0 +1,96 @@
|
|
|
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 { KbdConfigurableProps } from '@/components/display/kbd/kbd.props'
|
|
24
|
+
import type { StatusConfigurableProps } from '@/components/display/status/status.props'
|
|
25
|
+
import type { AlertConfigurableProps } from '@/components/feedback/alert/alert.props'
|
|
26
|
+
import type { LoadingConfigurableProps } from '@/components/feedback/loading/loading.props'
|
|
27
|
+
import type { ProgressConfigurableProps } from '@/components/feedback/progress/progress.props'
|
|
28
|
+
import type { RadialProgressConfigurableProps } from '@/components/feedback/radial-progress/radial-progress.props'
|
|
29
|
+
import type { ToastConfigurableProps } from '@/components/feedback/toast/toast.props'
|
|
30
|
+
import type { TooltipConfigurableProps } from '@/components/feedback/tooltip/tooltip.props'
|
|
31
|
+
import type { DividerConfigurableProps } from '@/components/layout/divider/divider.props'
|
|
32
|
+
import type { DrawerConfigurableProps } from '@/components/layout/drawer/drawer.props'
|
|
33
|
+
import type { IndicatorConfigurableProps } from '@/components/layout/indicator/indicator.props'
|
|
34
|
+
import type { JoinConfigurableProps } from '@/components/layout/join/join.props'
|
|
35
|
+
import type { MaskConfigurableProps } from '@/components/layout/mask/mask.props'
|
|
36
|
+
import type { StackConfigurableProps } from '@/components/layout/stack/stack.props'
|
|
37
|
+
import type { BreadcrumbsConfigurableProps } from '@/components/navigation/breadcrumbs/breadcrumbs.props'
|
|
38
|
+
import type { DockConfigurableProps, DockItemConfigurableProps } from '@/components/navigation/dock/dock.props'
|
|
39
|
+
import type { LinkConfigurableProps } from '@/components/navigation/link/link.props'
|
|
40
|
+
import type { MenuConfigurableProps, MenuItemConfigurableProps } from '@/components/navigation/menu/menu.props'
|
|
41
|
+
|
|
42
|
+
export interface PoppyComponentConfig {
|
|
43
|
+
// Actions
|
|
44
|
+
button: ButtonConfigurableProps
|
|
45
|
+
dropdown: DropdownConfigurableProps
|
|
46
|
+
fab: FabConfigurableProps
|
|
47
|
+
modal: ModalConfigurableProps
|
|
48
|
+
swap: SwapConfigurableProps
|
|
49
|
+
|
|
50
|
+
// Data
|
|
51
|
+
checkbox: CheckboxConfigurableProps
|
|
52
|
+
form: FormConfigurableProps
|
|
53
|
+
formField: FormFieldConfigurableProps
|
|
54
|
+
radio: RadioConfigurableProps
|
|
55
|
+
rating: RatingConfigurableProps
|
|
56
|
+
input: InputConfigurableProps
|
|
57
|
+
select: SelectConfigurableProps
|
|
58
|
+
slider: SliderConfigurableProps
|
|
59
|
+
textarea: TextareaConfigurableProps
|
|
60
|
+
toggle: ToggleConfigurableProps
|
|
61
|
+
|
|
62
|
+
// Display
|
|
63
|
+
accordionItem: AccordionItemConfigurableProps
|
|
64
|
+
avatar: AvatarConfigurableProps
|
|
65
|
+
badge: BadgeConfigurableProps
|
|
66
|
+
card: CardConfigurableProps
|
|
67
|
+
cardActions: CardActionsConfigurableProps
|
|
68
|
+
carousel: CarouselConfigurableProps
|
|
69
|
+
chat: ChatConfigurableProps
|
|
70
|
+
kbd: KbdConfigurableProps
|
|
71
|
+
status: StatusConfigurableProps
|
|
72
|
+
|
|
73
|
+
// Feedback
|
|
74
|
+
alert: AlertConfigurableProps
|
|
75
|
+
loading: LoadingConfigurableProps
|
|
76
|
+
progress: ProgressConfigurableProps
|
|
77
|
+
radialProgress: RadialProgressConfigurableProps
|
|
78
|
+
toast: ToastConfigurableProps
|
|
79
|
+
tooltip: TooltipConfigurableProps
|
|
80
|
+
|
|
81
|
+
// Layout
|
|
82
|
+
divider: DividerConfigurableProps
|
|
83
|
+
drawer: DrawerConfigurableProps
|
|
84
|
+
indicator: IndicatorConfigurableProps
|
|
85
|
+
join: JoinConfigurableProps
|
|
86
|
+
mask: MaskConfigurableProps
|
|
87
|
+
stack: StackConfigurableProps
|
|
88
|
+
|
|
89
|
+
// Navigation
|
|
90
|
+
breadcrumbs: BreadcrumbsConfigurableProps
|
|
91
|
+
dock: DockConfigurableProps
|
|
92
|
+
dockItem: DockItemConfigurableProps
|
|
93
|
+
link: LinkConfigurableProps
|
|
94
|
+
menu: MenuConfigurableProps
|
|
95
|
+
menuItem: MenuItemConfigurableProps
|
|
96
|
+
}
|
|
@@ -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,12 @@
|
|
|
1
|
+
import type { Booleanish } from '@/types/utils.type'
|
|
2
|
+
|
|
3
|
+
export function isTrue(value: Booleanish | null | undefined) {
|
|
4
|
+
if (value === null || value === undefined) {
|
|
5
|
+
return false
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
if (typeof value === 'string') {
|
|
9
|
+
return value === 'true' || value === ''
|
|
10
|
+
}
|
|
11
|
+
return value
|
|
12
|
+
}
|
|
@@ -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
|
+
}
|
package/css/core.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:root{--base-100: oklch(var(--base-100-oklch, 100% 0 0));--base-200: oklch(var(--base-200-oklch, 96.1151% 0 0));--base-300: oklch(var(--base-300-oklch, 92.4169% 0.00108 197.137559));--base-content: oklch(var(--base-content-oklch, 27.8078% 0.029596 256.847952));--neutral: oklch(var(--neutral-oklch, 32.1785% 0.02476 255.701624));--neutral-content: oklch(var(--neutral-content-oklch, 89.4994% 0.011585 252.096176));--primary: oklch(var(--primary-oklch, 49.12% 0.3096 275.75));--primary-content: oklch(var(--primary-content-oklch, 89.824% 0.06192 275.75));--secondary: oklch(var(--secondary-oklch, 69.71% 0.329 342.55));--secondary-content: oklch(var(--secondary-content-oklch, 98.71% 0.0106 342.55));--accent: oklch(var(--accent-oklch, 76.76% 0.184 183.61));--accent-content: oklch(var(--accent-content-oklch, 15.352% 0.0368 183.61));--info: oklch(var(--info-oklch, 72.06% 0.191 231.6));--info-content: oklch(var(--info-content-oklch, 0% 0 0));--success: oklch(var(--success-oklch, 64.8% 0.15 160));--success-content: oklch(var(--success-content-oklch, 0% 0 0));--warning: oklch(var(--warning-oklch, 84.71% 0.199 83.87));--warning-content: oklch(var(--warning-content-oklch, 0% 0 0));--error: oklch(var(--error-oklch, 71.76% 0.221 22.18));--error-content: oklch(var(--error-content-oklch, 0% 0 0))}body{background:var(--base-100);color:var(--base-content);font-family:var(--font, system-ui)}/*# sourceMappingURL=core.css.map */
|
package/css/core.css.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../src/css/core.scss"],"names":[],"mappings":"AAGA,MAWQ,+PAFA,oEAEA,qFAFA,6DAEA,+EAFA,gEAEA,iFAFA,0DAEA,4EAFA,qDAEA,yDAFA,uDAEA,+DAFA,2DAEA,+DAFA,uDAEA,2DAMR,KACE,2BACA,0BACA","file":"core.css","sourcesContent":["@use \"sass:map\";\n@use \"../themes/generator\" as theme;\n\n:root {\n /**\n * Loop through each color object from the\n * `theme/_generator.scss` file\n * and generate CSS Variables for each color.\n */\n @each $color-name, $value in theme.$colors {\n @each $variant-name, $variant in $value {\n @if $variant-name == base {\n --#{$color-name}: oklch(var(--#{$color-name}-oklch, #{$variant}));\n } @else {\n --#{$color-name}-#{$variant-name}: oklch(var(--#{$color-name}-#{$variant-name}-oklch, #{$variant}));\n }\n }\n }\n}\n\nbody {\n background: var(--base-100);\n color: var(--base-content);\n font-family: var(--font, #{theme.$font});\n}\n"]}
|
package/css/global.bundle.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
audio,canvas,progress,video{vertical-align:baseline}audio:not([controls]){display:none;height:0}b,strong{font-weight:bold}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}img{max-width:100%}hr{box-sizing:content-box;height:1px;border-width:0}pre{overflow:auto}code,kbd,pre,samp{font-size:1em;font-family:monospace,monospace}label,input,select,textarea{line-height:normal;font-family:inherit}textarea{height:auto;overflow:auto;color:inherit;font:inherit}textarea::placeholder{padding-left:2px}form,input,optgroup,select{margin:0;color:inherit;font:inherit}html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}a,a div,a span,button,button div,button span,button pop-label,[tappable],[tappable] div,[tappable] span,[tappable] pop-label,input,textarea{touch-action:manipulation}a pop-label,button pop-label{pointer-events:none}button{-webkit-appearance:button;padding:0;border:0;border-radius:0;font-style:inherit;font-variant:inherit;line-height:1;font-family:inherit;text-transform:none;cursor:pointer}[tappable]{cursor:pointer}a[disabled],button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-touch-callout:none}html{width:100%;height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}html:not(.hydrated) body{display:none}html.pop-ce body{display:block}html.plt-pwa{height:100vh}body{position:fixed;width:100%;max-width:100%;height:100%;max-height:100%;margin:0;padding:0;overflow:hidden;transform:translateZ(0);text-rendering:optimizeLegibility;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;overscroll-behavior-y:none;-webkit-text-size-adjust:none;text-size-adjust:none}/*# sourceMappingURL=global.bundle.css.map */
|