@caipira/tamandua 0.0.3 → 0.0.6
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/README.md +10 -2
- package/dist/Avatar.js +6 -0
- package/dist/Avatar.vue_vue_type_script_setup_true_lang-C3xje4Mr.js +51 -0
- package/dist/Backdrop.js +6 -0
- package/dist/Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js +22 -0
- package/dist/Button-Bzvqv1bQ.js +6 -0
- package/dist/Button.js +6 -0
- package/dist/Button.vue_vue_type_style_index_0_scoped_5056001e_lang-DmQxrvfv.js +143 -0
- package/dist/ButtonCopy.js +6 -0
- package/dist/ButtonCopy.vue_vue_type_script_setup_true_lang-C8Ndx2n_.js +43 -0
- package/dist/Drawer-DH5EEenO.js +74 -0
- package/dist/Drawer.js +6 -0
- package/dist/Dropdown.js +6 -0
- package/dist/Dropdown.vue_vue_type_script_setup_true_lang-CJ6tMLP5.js +135 -0
- package/dist/FileDrop.js +6 -0
- package/dist/FileDrop.vue_vue_type_script_setup_true_lang-Cmrpt2_c.js +86 -0
- package/dist/Form.js +6 -0
- package/dist/Form.vue_vue_type_script_setup_true_lang-CgTo7ahn.js +186 -0
- package/dist/FormItem.js +6 -0
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-CV5hpJ8B.js +69 -0
- package/dist/GraphyEmpty.js +6 -0
- package/dist/GraphyEmpty.vue_vue_type_script_setup_true_lang-B-hAjDCw.js +15 -0
- package/dist/GraphyLabel.js +6 -0
- package/dist/GraphyLabel.vue_vue_type_script_setup_true_lang-dEuzASQp.js +27 -0
- package/dist/GraphyPrice.js +6 -0
- package/dist/GraphyPrice.vue_vue_type_script_setup_true_lang-BOW4su3l.js +42 -0
- package/dist/GraphySubtitle.js +6 -0
- package/dist/GraphySubtitle.vue_vue_type_script_setup_true_lang-DtAmgZWp.js +18 -0
- package/dist/GraphyTitle.js +6 -0
- package/dist/GraphyTitle.vue_vue_type_script_setup_true_lang-DXnrZHV2.js +15 -0
- package/dist/Icon.js +6 -0
- package/dist/Icon.vue_vue_type_script_setup_true_lang-hxJ1wXXd.js +46 -0
- package/dist/IconButton.js +6 -0
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-BDjy7ycQ.js +106 -0
- package/dist/InputAvatar.js +6 -0
- package/dist/InputAvatar.vue_vue_type_script_setup_true_lang-Dzq2QUAy.js +52 -0
- package/dist/InputCheckbox.js +6 -0
- package/dist/InputCheckbox.vue_vue_type_script_setup_true_lang-B5zoxg5A.js +46 -0
- package/dist/InputColor.js +6 -0
- package/dist/InputColor.vue_vue_type_script_setup_true_lang-DunYzjId.js +35 -0
- package/dist/InputDate.js +6 -0
- package/dist/InputDate.vue_vue_type_script_setup_true_lang-DM9vaaiW.js +188 -0
- package/dist/InputMultiplier.js +6 -0
- package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-w2RuSz1R.js +83 -0
- package/dist/InputPassword.js +6 -0
- package/dist/InputPassword.vue_vue_type_script_setup_true_lang-SuGempaV.js +139 -0
- package/dist/InputPhone.js +6 -0
- package/dist/InputPhone.vue_vue_type_script_setup_true_lang-BH89TX0s.js +76 -0
- package/dist/InputPrice.js +6 -0
- package/dist/InputPrice.vue_vue_type_script_setup_true_lang-Zi-JuhSl.js +63 -0
- package/dist/InputRadio.js +6 -0
- package/dist/InputRadio.vue_vue_type_script_setup_true_lang-cPnYGpJ_.js +34 -0
- package/dist/InputSelect.js +6 -0
- package/dist/InputSelect.vue_vue_type_script_setup_true_lang-DSM-ClgU.js +216 -0
- package/dist/InputSwitch.js +6 -0
- package/dist/InputSwitch.vue_vue_type_script_setup_true_lang-DCYkakov.js +62 -0
- package/dist/InputText.js +6 -0
- package/dist/InputText.vue_vue_type_script_setup_true_lang-KUUuOOlk.js +41 -0
- package/dist/InputTextarea.js +6 -0
- package/dist/InputTextarea.vue_vue_type_script_setup_true_lang-01amgZ6U.js +43 -0
- package/dist/LineChart.js +6 -0
- package/dist/LineChart.vue_vue_type_script_setup_true_lang-Do8SXht4.js +17 -0
- package/dist/Modal.js +6 -0
- package/dist/Modal.vue_vue_type_script_setup_true_lang-DE2ySBCY.js +82 -0
- package/dist/ModalForm.js +6 -0
- package/dist/ModalForm.vue_vue_type_script_setup_true_lang-VhRoRmxZ.js +108 -0
- package/dist/Pagination.js +6 -0
- package/dist/Pagination.vue_vue_type_script_setup_true_lang-PLZQJUd0.js +89 -0
- package/dist/PieChart.js +6 -0
- package/dist/PieChart.vue_vue_type_script_setup_true_lang-CmEDNOuk.js +17 -0
- package/dist/Popconfirm.js +6 -0
- package/dist/Popconfirm.vue_vue_type_script_setup_true_lang-Dy1m3j6J.js +65 -0
- package/dist/Popover.js +6 -0
- package/dist/Popover.vue_vue_type_script_setup_true_lang-OFi2-aWk.js +987 -0
- package/dist/ProgressCircle-iWjZBZwm.js +58 -0
- package/dist/ProgressCircle.js +6 -0
- package/dist/ProgressLine-BT-YgI1t.js +62 -0
- package/dist/ProgressLine.js +6 -0
- package/dist/SensitiveInfo.js +6 -0
- package/dist/SensitiveInfo.vue_vue_type_script_setup_true_lang-lCdRDxvZ.js +22 -0
- package/dist/Tab.js +6 -0
- package/dist/Tab.vue_vue_type_script_setup_true_lang-VzvYvoqa.js +47 -0
- package/dist/Table-CTeoQmG3.js +154 -0
- package/dist/Table.js +6 -0
- package/dist/Tag.js +6 -0
- package/dist/Tag.vue_vue_type_script_setup_true_lang-BeWozUNz.js +63 -0
- package/dist/Toast.js +6 -0
- package/dist/Toast.vue_vue_type_script_setup_true_lang-CpDXLnat.js +61 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/components.js +89 -0
- package/dist/composables.js +17 -0
- package/dist/crud-d9NUddtZ.js +61 -0
- package/dist/date.js +155 -0
- package/dist/enums.js +9 -0
- package/dist/form2.js +20 -0
- package/dist/index-CVD_wAsU.js +2022 -0
- package/dist/index-CgLIzaY3.js +7772 -0
- package/dist/index-CjvqeRf7.js +1280 -0
- package/dist/index-CuyePt3m.js +40 -0
- package/dist/index-DBecmJ_I.js +7 -0
- package/dist/index.css +297 -0
- package/dist/plugin--u5hKcI0.js +10 -0
- package/dist/plugin-2nTovNcx.js +10 -0
- package/dist/plugin-5vn4G57V.js +10 -0
- package/dist/plugin-APHHlXVq.js +10 -0
- package/dist/plugin-B5Guy9c3.js +10 -0
- package/dist/plugin-BC-6G-0o.js +10 -0
- package/dist/plugin-BHaaQBWr.js +10 -0
- package/dist/plugin-BLe_xel4.js +10 -0
- package/dist/plugin-BPR3wKP8.js +10 -0
- package/dist/plugin-BTfinCzO.js +10 -0
- package/dist/plugin-BYkYqIjb.js +10 -0
- package/dist/plugin-BeNCIHgJ.js +10 -0
- package/dist/plugin-Bg2uvrOR.js +10 -0
- package/dist/plugin-Br57SoWk.js +10 -0
- package/dist/plugin-Buc7eEox.js +10 -0
- package/dist/plugin-C-iGigb_.js +10 -0
- package/dist/plugin-C27tBvHp.js +10 -0
- package/dist/plugin-C2MSl67l.js +10 -0
- package/dist/plugin-CF2ujTru.js +10 -0
- package/dist/plugin-CHF44uaz.js +10 -0
- package/dist/plugin-CHyrn6sC.js +10 -0
- package/dist/plugin-CIRUNt1_.js +10 -0
- package/dist/plugin-CQ6DHzD0.js +10 -0
- package/dist/plugin-CSrviP_c.js +10 -0
- package/dist/plugin-CoGzF5YO.js +10 -0
- package/dist/plugin-CpACKUGt.js +10 -0
- package/dist/plugin-CxGfRAW1.js +10 -0
- package/dist/plugin-DDPcV7Fj.js +10 -0
- package/dist/plugin-DN54VuID.js +10 -0
- package/dist/plugin-DOeDaXWj.js +10 -0
- package/dist/plugin-DSCBycRO.js +10 -0
- package/dist/plugin-DaibhM02.js +10 -0
- package/dist/plugin-Dbdsdqqh.js +10 -0
- package/dist/plugin-DdQB9R9S.js +10 -0
- package/dist/plugin-DdrfzyNc.js +35 -0
- package/dist/plugin-Dg87-qPm.js +10 -0
- package/dist/plugin-Xg1SCgfO.js +10 -0
- package/dist/plugin-YUomn9tF.js +10 -0
- package/dist/plugin-cvHKUGjm.js +10 -0
- package/dist/plugin-hpCgD9-h.js +10 -0
- package/dist/plugin-nzCD2cWq.js +10 -0
- package/dist/plugin-rFDM6yOH.js +10 -0
- package/dist/plugin-turENJ3j.js +10 -0
- package/dist/plugins-DumG9GBB.js +107 -0
- package/dist/plugins.js +103 -0
- package/dist/register-component-B-fdqewb.js +6 -0
- package/dist/tamandua.js +17 -15366
- package/dist/{components → types/components}/Avatar/Avatar.vue.d.ts +1 -1
- package/dist/types/components/Avatar/index.d.ts +4 -0
- package/dist/{components/Tag/index.d.ts → types/components/Avatar/plugin.d.ts} +0 -2
- package/dist/types/components/Backdrop/index.d.ts +4 -0
- package/dist/{components/Tab/index.d.ts → types/components/Backdrop/plugin.d.ts} +0 -2
- package/dist/{components → types/components}/Button/Button.story.d.ts +1 -1
- package/dist/{components → types/components}/Button/Button.vue.d.ts +1 -1
- package/dist/types/components/Button/index.d.ts +4 -0
- package/dist/{components/Form/index.d.ts → types/components/Button/plugin.d.ts} +0 -2
- package/dist/types/components/ButtonCopy/index.d.ts +4 -0
- package/dist/{components/Icon/index.d.ts → types/components/ButtonCopy/plugin.d.ts} +0 -2
- package/dist/types/components/Drawer/index.d.ts +4 -0
- package/dist/types/components/Drawer/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Dropdown/Dropdown.vue.d.ts +4 -4
- package/dist/types/components/Dropdown/index.d.ts +4 -0
- package/dist/types/components/Dropdown/plugin.d.ts +4 -0
- package/dist/types/components/FileDrop/index.d.ts +4 -0
- package/dist/types/components/FileDrop/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Form/Form.vue.d.ts +3 -3
- package/dist/types/components/Form/index.d.ts +4 -0
- package/dist/types/components/Form/plugin.d.ts +4 -0
- package/dist/types/components/FormItem/index.d.ts +4 -0
- package/dist/types/components/FormItem/plugin.d.ts +4 -0
- package/dist/types/components/GraphyEmpty/index.d.ts +4 -0
- package/dist/types/components/GraphyEmpty/plugin.d.ts +4 -0
- package/dist/types/components/GraphyLabel/index.d.ts +4 -0
- package/dist/types/components/GraphyLabel/plugin.d.ts +4 -0
- package/dist/{components → types/components}/GraphyPrice/GraphyPrice.vue.d.ts +1 -1
- package/dist/types/components/GraphyPrice/index.d.ts +4 -0
- package/dist/types/components/GraphyPrice/plugin.d.ts +4 -0
- package/dist/types/components/GraphySubtitle/index.d.ts +4 -0
- package/dist/types/components/GraphySubtitle/plugin.d.ts +4 -0
- package/dist/types/components/GraphyTitle/index.d.ts +4 -0
- package/dist/types/components/GraphyTitle/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Icon/Icon.vue.d.ts +1 -1
- package/dist/types/components/Icon/index.d.ts +4 -0
- package/dist/types/components/Icon/plugin.d.ts +4 -0
- package/dist/{components → types/components}/IconButton/IconButton.vue.d.ts +1 -1
- package/dist/types/components/IconButton/index.d.ts +4 -0
- package/dist/types/components/IconButton/plugin.d.ts +4 -0
- package/dist/types/components/InputAvatar/index.d.ts +4 -0
- package/dist/types/components/InputAvatar/plugin.d.ts +4 -0
- package/dist/types/components/InputCheckbox/index.d.ts +4 -0
- package/dist/types/components/InputCheckbox/plugin.d.ts +4 -0
- package/dist/types/components/InputColor/index.d.ts +4 -0
- package/dist/types/components/InputColor/plugin.d.ts +4 -0
- package/dist/types/components/InputDate/index.d.ts +4 -0
- package/dist/types/components/InputDate/plugin.d.ts +4 -0
- package/dist/types/components/InputMultiplier/InputMultiplier.vue.d.ts +4 -0
- package/dist/types/components/InputMultiplier/index.d.ts +4 -0
- package/dist/types/components/InputMultiplier/plugin.d.ts +4 -0
- package/dist/{components → types/components}/InputPassword/InputPassword.vue.d.ts +1 -1
- package/dist/types/components/InputPassword/index.d.ts +4 -0
- package/dist/types/components/InputPassword/plugin.d.ts +4 -0
- package/dist/types/components/InputPhone/index.d.ts +4 -0
- package/dist/types/components/InputPhone/plugin.d.ts +4 -0
- package/dist/{components → types/components}/InputPrice/InputPrice.vue.d.ts +1 -1
- package/dist/types/components/InputPrice/index.d.ts +4 -0
- package/dist/types/components/InputPrice/plugin.d.ts +4 -0
- package/dist/types/components/InputRadio/index.d.ts +4 -0
- package/dist/types/components/InputRadio/plugin.d.ts +4 -0
- package/dist/{components → types/components}/InputSelect/InputSelect.vue.d.ts +4 -4
- package/dist/types/components/InputSelect/index.d.ts +4 -0
- package/dist/types/components/InputSelect/plugin.d.ts +4 -0
- package/dist/types/components/InputSwitch/index.d.ts +4 -0
- package/dist/types/components/InputSwitch/plugin.d.ts +4 -0
- package/dist/types/components/InputText/index.d.ts +4 -0
- package/dist/types/components/InputText/plugin.d.ts +4 -0
- package/dist/types/components/InputTextarea/index.d.ts +4 -0
- package/dist/types/components/InputTextarea/plugin.d.ts +4 -0
- package/dist/types/components/LineChart/index.d.ts +4 -0
- package/dist/types/components/LineChart/plugin.d.ts +4 -0
- package/dist/types/components/Modal/index.d.ts +4 -0
- package/dist/types/components/Modal/plugin.d.ts +4 -0
- package/dist/{components → types/components}/ModalForm/ModalForm.vue.d.ts +1 -1
- package/dist/types/components/ModalForm/index.d.ts +4 -0
- package/dist/types/components/ModalForm/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Pagination/Pagination.vue.d.ts +1 -1
- package/dist/types/components/Pagination/index.d.ts +4 -0
- package/dist/types/components/Pagination/plugin.d.ts +4 -0
- package/dist/types/components/PieChart/index.d.ts +4 -0
- package/dist/types/components/PieChart/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Popconfirm/Popconfirm.vue.d.ts +1 -1
- package/dist/types/components/Popconfirm/index.d.ts +4 -0
- package/dist/types/components/Popconfirm/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Popover/Popover.vue.d.ts +2 -2
- package/dist/types/components/Popover/index.d.ts +4 -0
- package/dist/types/components/Popover/plugin.d.ts +4 -0
- package/dist/types/components/ProgressCircle/index.d.ts +4 -0
- package/dist/types/components/ProgressCircle/plugin.d.ts +4 -0
- package/dist/types/components/ProgressLine/index.d.ts +4 -0
- package/dist/types/components/ProgressLine/plugin.d.ts +4 -0
- package/dist/types/components/SensitiveInfo/index.d.ts +4 -0
- package/dist/types/components/SensitiveInfo/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Tab/Tab.vue.d.ts +1 -1
- package/dist/types/components/Tab/index.d.ts +4 -0
- package/dist/types/components/Tab/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Table/Table.vue.d.ts +3 -3
- package/dist/types/components/Table/index.d.ts +4 -0
- package/dist/types/components/Table/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Table/types.d.ts +1 -1
- package/dist/{components → types/components}/Tag/Tag.vue.d.ts +2 -2
- package/dist/types/components/Tag/index.d.ts +4 -0
- package/dist/types/components/Tag/plugin.d.ts +4 -0
- package/dist/{components → types/components}/Tag/types.d.ts +1 -1
- package/dist/{components → types/components}/Toast/Toast.vue.d.ts +1 -1
- package/dist/types/components/Toast/index.d.ts +4 -0
- package/dist/types/components/Toast/plugin.d.ts +4 -0
- package/dist/types/components/index.d.ts +45 -0
- package/dist/types/components/plugins.d.ts +45 -0
- package/dist/types/composables/index.d.ts +4 -0
- package/dist/types/composables/useRender.d.ts +3 -0
- package/dist/{enums → types/enums}/form.d.ts +1 -1
- package/dist/types/enums/index.d.ts +4 -0
- package/dist/{enums → types/enums}/ui.d.ts +8 -8
- package/dist/{form → types/form}/crud.d.ts +1 -1
- package/dist/{form → types/form}/form-data-transformers.d.ts +2 -2
- package/dist/{form → types/form}/form-transformer.d.ts +2 -2
- package/dist/{form → types/form}/form-value-transformers.d.ts +2 -2
- package/dist/types/form/index.d.ts +4 -0
- package/dist/{form → types/form}/json-transformers.d.ts +2 -2
- package/dist/types/index.d.ts +4 -5
- package/dist/types/services/date.d.ts +3 -0
- package/dist/types/{form.d.ts → types/form.d.ts} +6 -6
- package/dist/types/types/index.d.ts +5 -0
- package/dist/types/{ui.d.ts → types/ui.d.ts} +1 -1
- package/dist/ui-BLR-4Xlv.js +11 -0
- package/dist/ui-MicIL_Lw.js +23 -0
- package/dist/useRender-D8PeooXE.js +16 -0
- package/package.json +38 -15
- package/volar.d.ts +48 -0
- package/dist/components/Avatar/index.d.ts +0 -6
- package/dist/components/Backdrop/index.d.ts +0 -6
- package/dist/components/Button/index.d.ts +0 -6
- package/dist/components/ButtonCopy/index.d.ts +0 -6
- package/dist/components/Drawer/index.d.ts +0 -6
- package/dist/components/Dropdown/index.d.ts +0 -6
- package/dist/components/FileDrop/index.d.ts +0 -6
- package/dist/components/FormItem/index.d.ts +0 -6
- package/dist/components/GraphyEmpty/index.d.ts +0 -6
- package/dist/components/GraphyLabel/index.d.ts +0 -6
- package/dist/components/GraphyPrice/index.d.ts +0 -6
- package/dist/components/GraphySubtitle/index.d.ts +0 -6
- package/dist/components/GraphyTitle/index.d.ts +0 -6
- package/dist/components/IconButton/index.d.ts +0 -6
- package/dist/components/InputAvatar/index.d.ts +0 -6
- package/dist/components/InputCheckbox/index.d.ts +0 -6
- package/dist/components/InputColor/index.d.ts +0 -6
- package/dist/components/InputDate/index.d.ts +0 -6
- package/dist/components/InputMultiplier/InputMultiplier.vue.d.ts +0 -41
- package/dist/components/InputMultiplier/index.d.ts +0 -6
- package/dist/components/InputPassword/index.d.ts +0 -6
- package/dist/components/InputPhone/index.d.ts +0 -6
- package/dist/components/InputPrice/index.d.ts +0 -6
- package/dist/components/InputRadio/index.d.ts +0 -7
- package/dist/components/InputSelect/index.d.ts +0 -6
- package/dist/components/InputSwitch/index.d.ts +0 -6
- package/dist/components/InputText/index.d.ts +0 -6
- package/dist/components/InputTextarea/index.d.ts +0 -6
- package/dist/components/LineChart/index.d.ts +0 -6
- package/dist/components/Modal/index.d.ts +0 -6
- package/dist/components/ModalForm/index.d.ts +0 -6
- package/dist/components/Pagination/index.d.ts +0 -6
- package/dist/components/PieChart/index.d.ts +0 -6
- package/dist/components/Popconfirm/index.d.ts +0 -6
- package/dist/components/Popover/index.d.ts +0 -6
- package/dist/components/ProgressCircle/index.d.ts +0 -6
- package/dist/components/ProgressLine/index.d.ts +0 -6
- package/dist/components/SensitiveInfo/index.d.ts +0 -6
- package/dist/components/Table/index.d.ts +0 -6
- package/dist/components/Toast/index.d.ts +0 -6
- package/dist/components/index.d.ts +0 -43
- package/dist/components/plugins.d.ts +0 -45
- package/dist/composables/index.d.ts +0 -2
- package/dist/composables/useRender.d.ts +0 -3
- package/dist/enums/app.d.ts +0 -5
- package/dist/enums/index.d.ts +0 -3
- package/dist/index.d.ts +0 -5
- package/dist/services/date.d.ts +0 -16
- package/dist/style.css +0 -1
- package/dist/vite.config.d.mts +0 -2
- /package/dist/{components → types/components}/Avatar/Avatar.story.d.ts +0 -0
- /package/dist/{components → types/components}/Backdrop/Backdrop.vue.d.ts +0 -0
- /package/dist/{components → types/components}/ButtonCopy/ButtonCopy.vue.d.ts +0 -0
- /package/dist/{components → types/components}/Drawer/Drawer.vue.d.ts +0 -0
- /package/dist/{components → types/components}/EventListener/EventListener.vue.d.ts +0 -0
- /package/dist/{components → types/components}/FileDrop/FileDrop.vue.d.ts +0 -0
- /package/dist/{components → types/components}/Form/Form.spec.d.ts +0 -0
- /package/dist/{components → types/components}/FormItem/FormItem.vue.d.ts +0 -0
- /package/dist/{components → types/components}/GraphyEmpty/GraphyEmpty.vue.d.ts +0 -0
- /package/dist/{components → types/components}/GraphyLabel/GraphyLabel.vue.d.ts +0 -0
- /package/dist/{components → types/components}/GraphyPrice/GraphyPrice.story.d.ts +0 -0
- /package/dist/{components → types/components}/GraphySubtitle/GraphySubtitle.vue.d.ts +0 -0
- /package/dist/{components → types/components}/GraphyTitle/GraphyTitle.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputAvatar/InputAvatar.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputCheckbox/InputCheckbox.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputColor/InputColor.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputDate/InputDate.story.d.ts +0 -0
- /package/dist/{components → types/components}/InputDate/InputDate.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputMultiplier/input-multiplier.story.d.ts +0 -0
- /package/dist/{components → types/components}/InputMultiplier/types.d.ts +0 -0
- /package/dist/{components → types/components}/InputPhone/InputPhone.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputRadio/InputRadio.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputRadio/InputRadioGroup.story.d.ts +0 -0
- /package/dist/{components → types/components}/InputRadio/InputRadioGroup.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputSelect/InputSelect.story.d.ts +0 -0
- /package/dist/{components → types/components}/InputSwitch/InputSwitch.story.d.ts +0 -0
- /package/dist/{components → types/components}/InputSwitch/InputSwitch.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputText/InputText.vue.d.ts +0 -0
- /package/dist/{components → types/components}/InputTextarea/InputTextarea.vue.d.ts +0 -0
- /package/dist/{components → types/components}/LineChart/LineChart.vue.d.ts +0 -0
- /package/dist/{components → types/components}/Modal/Modal.vue.d.ts +0 -0
- /package/dist/{components → types/components}/Pagination/Pagination.story.d.ts +0 -0
- /package/dist/{components → types/components}/PieChart/PieChart.vue.d.ts +0 -0
- /package/dist/{components → types/components}/ProgressCircle/ProgressCircle.story.d.ts +0 -0
- /package/dist/{components → types/components}/ProgressCircle/ProgressCircle.vue.d.ts +0 -0
- /package/dist/{components → types/components}/ProgressLine/ProgressLine.story.d.ts +0 -0
- /package/dist/{components → types/components}/ProgressLine/ProgressLine.vue.d.ts +0 -0
- /package/dist/{components → types/components}/SensitiveInfo/SensitiveInfo.vue.d.ts +0 -0
- /package/dist/{components → types/components}/Table/Table.story.d.ts +0 -0
- /package/dist/{composables → types/composables}/useBreakpoints.d.ts +0 -0
- /package/dist/{form → types/form}/convertors.d.ts +0 -0
- /package/dist/{form → types/form}/form.test.d.ts +0 -0
- /package/dist/{i18n.d.ts → types/i18n.d.ts} +0 -0
- /package/dist/{plugins → types/plugins}/register-component.d.ts +0 -0
- /package/dist/{services → types/services}/clipboard.d.ts +0 -0
- /package/dist/{services → types/services}/password.d.ts +0 -0
- /package/dist/{services → types/services}/ui.d.ts +0 -0
- /package/dist/types/{address.d.ts → types/address.d.ts} +0 -0
- /package/dist/types/{api.d.ts → types/api.d.ts} +0 -0
- /package/dist/types/{common.d.ts → types/common.d.ts} +0 -0
- /package/dist/types/{website.d.ts → types/website.d.ts} +0 -0
- /package/dist/{vitest.setup.d.ts → types/vitest.setup.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -4,12 +4,20 @@ Tamanduá is a UI library designed for the Caipira ecosystem
|
|
|
4
4
|
|
|
5
5
|
## Storybook
|
|
6
6
|
|
|
7
|
-
You can start
|
|
7
|
+
You can start storybook by running:
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
10
|
npm run start:sb
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
## Bundle
|
|
14
|
+
|
|
15
|
+
You can analyze the bundle by running:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npx vite-bundle-visualizer
|
|
19
|
+
```
|
|
20
|
+
|
|
13
21
|
## Reference
|
|
14
22
|
|
|
15
|
-
[Storybook](https://storybook.js.org/docs/get-started/vue3-vite)
|
|
23
|
+
[Storybook](https://storybook.js.org/docs/get-started/vue3-vite) [TailwindCSS](https://tailwindcss.com/)
|
package/dist/Avatar.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent as m, getCurrentInstance as f, computed as _, resolveComponent as h, openBlock as n, createElementBlock as r, normalizeClass as v, unref as t, createBlock as y, toDisplayString as A, createCommentVNode as E } from "vue";
|
|
2
|
+
import { E as o, a as s } from "./ui-BLR-4Xlv.js";
|
|
3
|
+
import { u as a } from "./ui-MicIL_Lw.js";
|
|
4
|
+
const S = ["role"], z = ["src"], C = { key: 2 }, R = /* @__PURE__ */ m({
|
|
5
|
+
name: "TAvatar",
|
|
6
|
+
__name: "Avatar",
|
|
7
|
+
props: {
|
|
8
|
+
icon: {},
|
|
9
|
+
text: { default: "" },
|
|
10
|
+
role: { default: "" },
|
|
11
|
+
size: { default: o.DEFAULT },
|
|
12
|
+
image: { default: "" },
|
|
13
|
+
shape: { default: s.CIRCLE },
|
|
14
|
+
disableStyle: { type: Boolean, default: !1 }
|
|
15
|
+
},
|
|
16
|
+
setup(c) {
|
|
17
|
+
const e = c, i = f(), p = _(() => e.role !== "" ? e.role : i && a.isPopoverActivator(i) ? "button" : ""), u = (l) => {
|
|
18
|
+
i && a.isPopoverActivator(i) && a.onPopoverActivatorClick(l, i);
|
|
19
|
+
};
|
|
20
|
+
return (l, L) => {
|
|
21
|
+
const d = h("t-icon");
|
|
22
|
+
return n(), r("div", {
|
|
23
|
+
role: p.value,
|
|
24
|
+
class: v([{
|
|
25
|
+
"h-5 w-5": !e.disableStyle && e.size === t(o).EXTRA_SMALL,
|
|
26
|
+
"h-7 w-7": !e.disableStyle && e.size === t(o).SMALL,
|
|
27
|
+
"h-10 w-10": !e.disableStyle && e.size === t(o).DEFAULT,
|
|
28
|
+
"h-20 w-20": !e.disableStyle && e.size === t(o).LARGE,
|
|
29
|
+
"h-40 w-40": !e.disableStyle && e.size === t(o).EXTRA_LARGE,
|
|
30
|
+
"rounded-full": e.shape === t(s).CIRCLE,
|
|
31
|
+
rounded: e.shape === t(s).SQUARE
|
|
32
|
+
}, "overflow-hidden inline-flex items-center justify-center bg-caipira-primary-inverted"]),
|
|
33
|
+
onClick: u
|
|
34
|
+
}, [
|
|
35
|
+
e.image ? (n(), r("img", {
|
|
36
|
+
key: 0,
|
|
37
|
+
class: "w-full h-full object-cover",
|
|
38
|
+
src: e.image
|
|
39
|
+
}, null, 8, z)) : e.icon ? (n(), y(d, {
|
|
40
|
+
key: 1,
|
|
41
|
+
class: "color-caipira-primary",
|
|
42
|
+
icon: e.icon,
|
|
43
|
+
size: e.size
|
|
44
|
+
}, null, 8, ["icon", "size"])) : e.text ? (n(), r("span", C, A(e.text), 1)) : E("", !0)
|
|
45
|
+
], 10, S);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
R as _
|
|
51
|
+
};
|
package/dist/Backdrop.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as i, openBlock as s, createElementBlock as c, normalizeClass as p } from "vue";
|
|
2
|
+
const k = /* @__PURE__ */ i({
|
|
3
|
+
name: "TBackdrop",
|
|
4
|
+
__name: "Backdrop",
|
|
5
|
+
props: {
|
|
6
|
+
isTransparent: { type: Boolean, default: !1 }
|
|
7
|
+
},
|
|
8
|
+
emits: ["click"],
|
|
9
|
+
setup(t, { emit: n }) {
|
|
10
|
+
const o = t, r = n;
|
|
11
|
+
return (l, e) => (s(), c("div", {
|
|
12
|
+
class: p(["fixed inset-0", {
|
|
13
|
+
"bg-caipira-tertiary opacity-80": !o.isTransparent
|
|
14
|
+
}]),
|
|
15
|
+
role: "button",
|
|
16
|
+
onClick: e[0] || (e[0] = (a) => r("click", a))
|
|
17
|
+
}, null, 2));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
k as _
|
|
22
|
+
};
|
package/dist/Button.js
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import './Button.css';
|
|
2
|
+
import { defineComponent as w, getCurrentInstance as O, ref as y, computed as o, resolveComponent as U, openBlock as s, createBlock as m, resolveDynamicComponent as _, normalizeClass as c, unref as i, withCtx as B, renderSlot as k, createCommentVNode as u, createElementBlock as b, toDisplayString as z } from "vue";
|
|
3
|
+
import { B as a, E as l, a as d, b as r } from "./ui-BLR-4Xlv.js";
|
|
4
|
+
import { u as h } from "./ui-MicIL_Lw.js";
|
|
5
|
+
import "./Icon.vue_vue_type_script_setup_true_lang-hxJ1wXXd.js";
|
|
6
|
+
const x = ["multiple"], K = /* @__PURE__ */ w({
|
|
7
|
+
name: "TButton",
|
|
8
|
+
__name: "Button",
|
|
9
|
+
props: {
|
|
10
|
+
to: {},
|
|
11
|
+
icon: {},
|
|
12
|
+
href: { default: "" },
|
|
13
|
+
type: { default: a.BUTTON },
|
|
14
|
+
size: { default: l.DEFAULT },
|
|
15
|
+
label: { default: "" },
|
|
16
|
+
shape: { default: d.ROUNDED },
|
|
17
|
+
target: { default: void 0 },
|
|
18
|
+
variant: { default: r.DEFAULT },
|
|
19
|
+
multiple: { type: Boolean, default: !1 },
|
|
20
|
+
isOutline: { type: Boolean, default: !1 },
|
|
21
|
+
isDisabled: { type: Boolean, default: !1 },
|
|
22
|
+
injectStyle: { default: () => ({ icon: "" }) },
|
|
23
|
+
disableStyle: { type: Boolean, default: !1 }
|
|
24
|
+
},
|
|
25
|
+
emits: ["upload"],
|
|
26
|
+
setup(g, { expose: S, emit: E }) {
|
|
27
|
+
const e = g, A = E, p = O(), f = y(), v = y(null), R = o(() => e.href ? e.href : void 0), D = o(() => {
|
|
28
|
+
switch (e.type) {
|
|
29
|
+
case a.LINK:
|
|
30
|
+
return;
|
|
31
|
+
case a.FILE:
|
|
32
|
+
return "button";
|
|
33
|
+
default:
|
|
34
|
+
return e.type;
|
|
35
|
+
}
|
|
36
|
+
}), L = o(() => e.type === a.SUBMIT ? e.label : void 0), T = o(() => {
|
|
37
|
+
switch (e.type) {
|
|
38
|
+
case a.SUBMIT:
|
|
39
|
+
return "input";
|
|
40
|
+
case a.LINK:
|
|
41
|
+
return "a";
|
|
42
|
+
case a.ROUTER_LINK:
|
|
43
|
+
return "router-link";
|
|
44
|
+
default:
|
|
45
|
+
return "button";
|
|
46
|
+
}
|
|
47
|
+
}), C = (t) => {
|
|
48
|
+
p && h.isPopoverActivator(p) && h.onPopoverActivatorClick(t, p), e.type === a.SUBMIT && t.preventDefault(), e.type === a.FILE && f.value?.click();
|
|
49
|
+
}, I = (t) => {
|
|
50
|
+
t.stopPropagation();
|
|
51
|
+
const n = t.target.files;
|
|
52
|
+
!n || !n.length || A("upload", n);
|
|
53
|
+
};
|
|
54
|
+
return S({ iconReference: v }), (t, N) => {
|
|
55
|
+
const n = U("t-icon");
|
|
56
|
+
return s(), m(_(T.value), {
|
|
57
|
+
type: D.value,
|
|
58
|
+
href: R.value,
|
|
59
|
+
value: L.value,
|
|
60
|
+
to: e.to,
|
|
61
|
+
disabled: e.isDisabled,
|
|
62
|
+
target: e.target,
|
|
63
|
+
class: c([{
|
|
64
|
+
"font-bold": !e.disableStyle,
|
|
65
|
+
"opacity-50": e.isDisabled,
|
|
66
|
+
// Padding
|
|
67
|
+
"px-1 py-0": !e.disableStyle && e.size === i(l).EXTRA_SMALL,
|
|
68
|
+
"px-4 h-9": !e.disableStyle && e.size === i(l).SMALL,
|
|
69
|
+
"px-4 py-2 h-10": !e.disableStyle && e.size === i(l).DEFAULT,
|
|
70
|
+
// Border
|
|
71
|
+
border: e.isOutline,
|
|
72
|
+
// Shape
|
|
73
|
+
"rounded-full": e.shape === i(d).CIRCLE,
|
|
74
|
+
"input-roundness": e.shape === i(d).ROUNDED,
|
|
75
|
+
// Cursor
|
|
76
|
+
"cursor-pointer": !e.isDisabled,
|
|
77
|
+
"cursor-not-allowed": e.isDisabled,
|
|
78
|
+
// Default color
|
|
79
|
+
"border-caipira-primary-inverted fill-caipira-primary-inverted": e.variant === i(r).DEFAULT,
|
|
80
|
+
"bg-transparent color-caipira-primary-inverted hover:bg-caipira-primary-inverted hover:color-caipira-primary hover:fill-white": e.variant === i(r).DEFAULT && e.isOutline,
|
|
81
|
+
"bg-caipira-primary-inverted color-caipira-primary": e.variant === i(r).DEFAULT && !e.isOutline,
|
|
82
|
+
// Primary color
|
|
83
|
+
"fill-caipira-primary": e.variant === i(r).PRIMARY,
|
|
84
|
+
"bg-transparent border-caipira-blue color-caipira-blue hover:bg-caipira-blue hover:color-caipira-primary hover:fill-white": e.variant === i(r).PRIMARY && e.isOutline,
|
|
85
|
+
"bg-caipira-blue color-caipira-primary": e.variant === i(r).PRIMARY && !e.isOutline,
|
|
86
|
+
// Success color
|
|
87
|
+
"fill-caipira-green": e.variant === i(r).SUCCESS,
|
|
88
|
+
"bg-transparent border-caipira-green color-caipira-green hover:bg-caipira-green hover:color-caipira-primary hover:fill-white": e.variant === i(r).SUCCESS && e.isOutline,
|
|
89
|
+
"bg-caipira-green color-caipira-primary": e.variant === i(r).SUCCESS && !e.isOutline,
|
|
90
|
+
// Warning color
|
|
91
|
+
"fill-caipira-yellow": e.variant === i(r).WARNING,
|
|
92
|
+
"bg-transparent border-caipira-yellow color-caipira-yellow hover:bg-caipira-yellow hover:color-caipira-primary hover:fill-white": e.variant === i(r).WARNING && e.isOutline,
|
|
93
|
+
"bg-caipira-yellow color-caipira-primary": e.variant === i(r).WARNING && !e.isOutline,
|
|
94
|
+
// Danger color
|
|
95
|
+
"fill-caipira-red": e.variant === i(r).DANGER,
|
|
96
|
+
"bg-transparent border-caipira-red color-caipira-red hover:bg-caipira-red hover:color-caipira-primary hover:fill-white": e.variant === i(r).DANGER && e.isOutline,
|
|
97
|
+
"bg-caipira-red color-caipira-primary": e.variant === i(r).DANGER && !e.isOutline,
|
|
98
|
+
// Transparent color
|
|
99
|
+
"transparent-button": e.variant === i(r).TRANSPARENT
|
|
100
|
+
}, "input-outline inline-flex items-center"]),
|
|
101
|
+
role: "button",
|
|
102
|
+
onClick: C
|
|
103
|
+
}, {
|
|
104
|
+
default: B(() => [
|
|
105
|
+
k(t.$slots, "default", {}, void 0, !0),
|
|
106
|
+
e.icon ? (s(), m(n, {
|
|
107
|
+
key: 0,
|
|
108
|
+
ref_key: "iconReference",
|
|
109
|
+
ref: v,
|
|
110
|
+
size: e.size,
|
|
111
|
+
icon: e.icon,
|
|
112
|
+
"is-outline": e.isOutline,
|
|
113
|
+
class: c({
|
|
114
|
+
[e.injectStyle.icon]: !0
|
|
115
|
+
})
|
|
116
|
+
}, null, 8, ["size", "icon", "is-outline", "class"])) : u("", !0),
|
|
117
|
+
e.label && e.type !== i(a).SUBMIT ? (s(), b("span", {
|
|
118
|
+
key: 1,
|
|
119
|
+
class: c([{
|
|
120
|
+
"ml-2": !!e.icon,
|
|
121
|
+
"text-lg": e.size === i(l).LARGE,
|
|
122
|
+
"text-sm": e.size === i(l).SMALL,
|
|
123
|
+
"text-xs": e.size === i(l).EXTRA_SMALL
|
|
124
|
+
}, "whitespace-nowrap"])
|
|
125
|
+
}, z(e.label), 3)) : u("", !0),
|
|
126
|
+
e.type === "file" ? (s(), b("input", {
|
|
127
|
+
key: 2,
|
|
128
|
+
multiple: e.multiple,
|
|
129
|
+
onChange: I,
|
|
130
|
+
type: "file",
|
|
131
|
+
ref_key: "fileInput",
|
|
132
|
+
ref: f,
|
|
133
|
+
class: "hidden"
|
|
134
|
+
}, null, 40, x)) : u("", !0)
|
|
135
|
+
]),
|
|
136
|
+
_: 3
|
|
137
|
+
}, 8, ["type", "href", "value", "to", "disabled", "target", "class"]);
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
export {
|
|
142
|
+
K as _
|
|
143
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent as l, ref as c, resolveComponent as u, openBlock as f, createBlock as y } from "vue";
|
|
2
|
+
import { g as p } from "./index-CVD_wAsU.js";
|
|
3
|
+
import "./Button.vue_vue_type_style_index_0_scoped_5056001e_lang-DmQxrvfv.js";
|
|
4
|
+
const d = async (o) => {
|
|
5
|
+
navigator.clipboard && await navigator.clipboard.writeText(o);
|
|
6
|
+
}, x = /* @__PURE__ */ l({
|
|
7
|
+
name: "TButtonCopy",
|
|
8
|
+
__name: "ButtonCopy",
|
|
9
|
+
props: {
|
|
10
|
+
text: {},
|
|
11
|
+
isDisabled: { type: Boolean, default: !1 }
|
|
12
|
+
},
|
|
13
|
+
setup(o) {
|
|
14
|
+
const a = c(null), n = c(!1), e = o, r = async (s) => {
|
|
15
|
+
n.value = !0, s.stopPropagation();
|
|
16
|
+
const i = typeof e.text == "function" ? await e.text() : e.text, t = a.value?.iconReference?.reference;
|
|
17
|
+
await d(i), t && p.to(t, {
|
|
18
|
+
scale: 4,
|
|
19
|
+
yoyo: !0,
|
|
20
|
+
opacity: 0,
|
|
21
|
+
duration: 0.2,
|
|
22
|
+
ease: "power3.easeInOut",
|
|
23
|
+
onComplete: () => {
|
|
24
|
+
p.set(t, { opacity: 1, scale: 1 });
|
|
25
|
+
}
|
|
26
|
+
}), n.value = !1;
|
|
27
|
+
};
|
|
28
|
+
return (s, i) => {
|
|
29
|
+
const t = u("t-icon-button");
|
|
30
|
+
return f(), y(t, {
|
|
31
|
+
"is-disabled": n.value || e.isDisabled,
|
|
32
|
+
icon: "copy",
|
|
33
|
+
size: "xs",
|
|
34
|
+
ref_key: "buttonRef",
|
|
35
|
+
ref: a,
|
|
36
|
+
onClick: r
|
|
37
|
+
}, null, 8, ["is-disabled"]);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
x as _
|
|
43
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import './Drawer.css';
|
|
2
|
+
import { defineComponent as _, ref as y, onMounted as v, resolveComponent as b, openBlock as o, createElementBlock as t, withKeys as h, createVNode as i, createElementVNode as a, normalizeClass as c, renderSlot as l, toDisplayString as w, createCommentVNode as d } from "vue";
|
|
3
|
+
import { _ as k } from "./Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js";
|
|
4
|
+
import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const C = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "flex justify-between items-center p-4 border-b border-color"
|
|
8
|
+
}, $ = { key: 0 }, g = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "inline-block text-base"
|
|
11
|
+
}, D = { class: "flex flex-col flex-1 relative overflow-y-auto scrollbar" }, z = /* @__PURE__ */ _({
|
|
12
|
+
name: "TDrawer",
|
|
13
|
+
__name: "Drawer",
|
|
14
|
+
props: {
|
|
15
|
+
title: { default: "" },
|
|
16
|
+
style: { default: () => ({
|
|
17
|
+
footer: ""
|
|
18
|
+
}) },
|
|
19
|
+
direction: { default: "rtl" },
|
|
20
|
+
showHeader: { type: Boolean, default: !0 }
|
|
21
|
+
},
|
|
22
|
+
emits: ["closed"],
|
|
23
|
+
setup(f, { emit: m }) {
|
|
24
|
+
const r = f, p = m, n = y(null), s = (e) => {
|
|
25
|
+
e.stopPropagation(), p("closed");
|
|
26
|
+
};
|
|
27
|
+
return v(() => {
|
|
28
|
+
n.value?.focus();
|
|
29
|
+
}), (e, B) => {
|
|
30
|
+
const u = b("t-icon");
|
|
31
|
+
return o(), t("div", {
|
|
32
|
+
class: "fixed inset-0 flex items-center z-10",
|
|
33
|
+
tabindex: "0",
|
|
34
|
+
ref_key: "modal",
|
|
35
|
+
ref: n,
|
|
36
|
+
onKeyup: h(s, ["esc"])
|
|
37
|
+
}, [
|
|
38
|
+
i(k, { onClick: s }),
|
|
39
|
+
a("div", {
|
|
40
|
+
class: c(["w-[38rem] absolute inset-y-0 z-20 flex flex-col bg-caipira-primary drawer", {
|
|
41
|
+
"right-0 drop-shadow-lg": r.direction === "ltr",
|
|
42
|
+
"left-0": r.direction === "rtl"
|
|
43
|
+
}])
|
|
44
|
+
}, [
|
|
45
|
+
r.showHeader ? (o(), t("div", C, [
|
|
46
|
+
e.$slots.header ? (o(), t("div", $, [
|
|
47
|
+
l(e.$slots, "header", {}, void 0, !0)
|
|
48
|
+
])) : (o(), t("span", g, w(r.title), 1)),
|
|
49
|
+
i(u, {
|
|
50
|
+
icon: "close",
|
|
51
|
+
role: "button",
|
|
52
|
+
onClick: s,
|
|
53
|
+
size: "sm"
|
|
54
|
+
})
|
|
55
|
+
])) : d("", !0),
|
|
56
|
+
a("div", D, [
|
|
57
|
+
l(e.$slots, "default", {}, void 0, !0)
|
|
58
|
+
]),
|
|
59
|
+
e.$slots.footer ? (o(), t("div", {
|
|
60
|
+
key: 1,
|
|
61
|
+
class: c(["p-4 border-t border-color", {
|
|
62
|
+
[e.style.footer]: !0
|
|
63
|
+
}])
|
|
64
|
+
}, [
|
|
65
|
+
l(e.$slots, "footer", {}, void 0, !0)
|
|
66
|
+
], 2)) : d("", !0)
|
|
67
|
+
], 2)
|
|
68
|
+
], 544);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
}), H = /* @__PURE__ */ x(z, [["__scopeId", "data-v-921c45c2"]]);
|
|
72
|
+
export {
|
|
73
|
+
H as D
|
|
74
|
+
};
|
package/dist/Drawer.js
ADDED
package/dist/Dropdown.js
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { defineComponent as T, ref as h, resolveComponent as z, openBlock as r, createElementBlock as a, normalizeClass as w, Fragment as R, renderList as A, toDisplayString as P, withKeys as L, renderSlot as N, normalizeProps as V, mergeProps as E, createBlock as G, createCommentVNode as $, createTextVNode as I } from "vue";
|
|
2
|
+
const O = ["aria-selected", "onKeydown", "onClick"], F = {
|
|
3
|
+
key: 1,
|
|
4
|
+
class: "inline-flex items-center input-label"
|
|
5
|
+
}, j = /* @__PURE__ */ T({
|
|
6
|
+
name: "TDropdown",
|
|
7
|
+
__name: "Dropdown",
|
|
8
|
+
props: {
|
|
9
|
+
items: { default: () => [] },
|
|
10
|
+
owner: {},
|
|
11
|
+
multiple: { type: Boolean, default: !1 },
|
|
12
|
+
isVisible: { type: Boolean, default: !1 },
|
|
13
|
+
optionMarginClass: { default: "" },
|
|
14
|
+
optionPaddingClass: { default: "py-2 px-2" },
|
|
15
|
+
optionRoundnessClass: { default: "" },
|
|
16
|
+
wrapperRoundnessClass: { default: "rounded-md" },
|
|
17
|
+
wrapperPaddingClass: { default: "" }
|
|
18
|
+
},
|
|
19
|
+
emits: ["change", "end-reached", "created"],
|
|
20
|
+
setup(H, { expose: D, emit: S }) {
|
|
21
|
+
const s = H, C = S, i = h(-1), b = h(null), u = h([]), d = h("keyboard"), y = (o = i.value, t = s.items[o], n = void 0) => {
|
|
22
|
+
n?.stopPropagation(), C("change", {
|
|
23
|
+
index: o,
|
|
24
|
+
option: t,
|
|
25
|
+
hold: n?.ctrlKey ?? !1
|
|
26
|
+
}), t.action && t.action();
|
|
27
|
+
}, B = (o) => {
|
|
28
|
+
if (!s.isVisible)
|
|
29
|
+
return !1;
|
|
30
|
+
switch (o.preventDefault(), d.value = "keyboard", o.key) {
|
|
31
|
+
case "ArrowUp":
|
|
32
|
+
case "ArrowDown":
|
|
33
|
+
return x(o);
|
|
34
|
+
case "Enter":
|
|
35
|
+
return y();
|
|
36
|
+
}
|
|
37
|
+
}, x = (o) => {
|
|
38
|
+
const t = o.key === "ArrowDown", n = s.items.length;
|
|
39
|
+
let e = i.value;
|
|
40
|
+
const l = () => s.items[e] ? "isGroupLabel" in s.items[e] && s.items[e].isGroupLabel : !1, f = () => {
|
|
41
|
+
e === n - 1 ? e = 0 : e++;
|
|
42
|
+
}, M = () => {
|
|
43
|
+
e === 0 ? e = n - 1 : e--;
|
|
44
|
+
};
|
|
45
|
+
if (t)
|
|
46
|
+
do
|
|
47
|
+
f();
|
|
48
|
+
while (l());
|
|
49
|
+
else
|
|
50
|
+
do
|
|
51
|
+
M();
|
|
52
|
+
while (l());
|
|
53
|
+
e > -1 && e < n && (i.value = e);
|
|
54
|
+
const v = b.value, k = u.value[i.value], p = k.offsetTop, m = k.offsetHeight, _ = v.offsetHeight, c = v.scrollTop;
|
|
55
|
+
let g = 0;
|
|
56
|
+
if (k.focus(), p === 0 || c === 0)
|
|
57
|
+
g = p - _ + m;
|
|
58
|
+
else if (t && p + m > _ + c)
|
|
59
|
+
g = c + m;
|
|
60
|
+
else if (!t && p < c)
|
|
61
|
+
g = c - m;
|
|
62
|
+
else
|
|
63
|
+
return !0;
|
|
64
|
+
return v.scroll({ top: g }), !0;
|
|
65
|
+
}, K = (o) => {
|
|
66
|
+
const t = o.target, n = u.value[0];
|
|
67
|
+
!t || !n || t.scrollTop + t.clientHeight + n.offsetHeight >= t.scrollHeight && C("end-reached");
|
|
68
|
+
};
|
|
69
|
+
return D({ move: x }), (o, t) => {
|
|
70
|
+
const n = z("t-icon");
|
|
71
|
+
return r(), a("ul", {
|
|
72
|
+
ref_key: "listRef",
|
|
73
|
+
ref: b,
|
|
74
|
+
role: "listbox",
|
|
75
|
+
class: w(["text-left max-h-60 min-w-[12rem] z-10 overflow-y-auto scrollbar select-none floatable", [s.wrapperRoundnessClass, s.wrapperPaddingClass]]),
|
|
76
|
+
onScrollend: K,
|
|
77
|
+
onMousemove: t[0] || (t[0] = () => d.value = "mouse"),
|
|
78
|
+
onKeydown: B
|
|
79
|
+
}, [
|
|
80
|
+
o.items.length === 0 ? (r(), a("li", {
|
|
81
|
+
key: 0,
|
|
82
|
+
role: "option",
|
|
83
|
+
"aria-disabled": "true",
|
|
84
|
+
class: w(["whitespace-nowrap text-gray-400", [
|
|
85
|
+
s.optionPaddingClass,
|
|
86
|
+
s.optionMarginClass,
|
|
87
|
+
s.optionRoundnessClass
|
|
88
|
+
]])
|
|
89
|
+
}, " Nothing here ", 2)) : (r(!0), a(R, { key: 1 }, A(o.items, (e, l) => (r(), a(R, { key: l }, [
|
|
90
|
+
e.isGroupLabel ? (r(), a("li", {
|
|
91
|
+
key: 0,
|
|
92
|
+
class: w(["text-xs font-bold tracking-wider text-neutral-600", [
|
|
93
|
+
s.optionPaddingClass,
|
|
94
|
+
s.optionMarginClass,
|
|
95
|
+
s.optionRoundnessClass
|
|
96
|
+
]]),
|
|
97
|
+
ref_for: !0,
|
|
98
|
+
ref_key: "itemRefs",
|
|
99
|
+
ref: u
|
|
100
|
+
}, P(e.label), 3)) : (r(), a("li", {
|
|
101
|
+
key: 1,
|
|
102
|
+
class: w([{
|
|
103
|
+
"bg-hover": l === i.value && d.value === "keyboard",
|
|
104
|
+
"hover:bg-hover": d.value === "mouse",
|
|
105
|
+
[s.optionMarginClass]: !0,
|
|
106
|
+
[s.optionPaddingClass]: !0,
|
|
107
|
+
[s.optionRoundnessClass]: !0
|
|
108
|
+
}, "flex text-base cursor-pointer whitespace-nowrap items-center focus-visible:outline-none"]),
|
|
109
|
+
role: "option",
|
|
110
|
+
ref_for: !0,
|
|
111
|
+
ref_key: "itemRefs",
|
|
112
|
+
ref: u,
|
|
113
|
+
tabindex: 0,
|
|
114
|
+
"aria-selected": l === i.value,
|
|
115
|
+
onKeydown: L((f) => y(l, e), ["enter"]),
|
|
116
|
+
onClick: (f) => y(l, e, f)
|
|
117
|
+
}, [
|
|
118
|
+
o.$slots.default ? N(o.$slots, "default", V(E({ key: 0 }, e))) : (r(), a("div", F, [
|
|
119
|
+
e.icon ? (r(), G(n, {
|
|
120
|
+
key: 0,
|
|
121
|
+
icon: e.icon,
|
|
122
|
+
class: "mr-2",
|
|
123
|
+
size: "xs"
|
|
124
|
+
}, null, 8, ["icon"])) : $("", !0),
|
|
125
|
+
I(" " + P(e.label), 1)
|
|
126
|
+
]))
|
|
127
|
+
], 42, O))
|
|
128
|
+
], 64))), 128))
|
|
129
|
+
], 34);
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
export {
|
|
134
|
+
j as _
|
|
135
|
+
};
|
package/dist/FileDrop.js
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { defineComponent as b, ref as k, inject as C, computed as i, resolveComponent as F, openBlock as o, createElementBlock as s, normalizeClass as c, unref as V, createElementVNode as e, Fragment as z, renderList as N, toDisplayString as u, createVNode as d, createTextVNode as j } from "vue";
|
|
2
|
+
const w = { class: "flex items-center justify-center w-full" }, D = {
|
|
3
|
+
for: "dropzone-file",
|
|
4
|
+
class: "flex flex-col items-center justify-center w-full h-full cursor-pointer border input-border border-dashed input-roundness input-text-color input-bg-color hover:bg-caipira-secondary"
|
|
5
|
+
}, G = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "my-5"
|
|
8
|
+
}, S = { class: "text-xs" }, B = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "flex items-center justify-evenly my-4 w-full"
|
|
11
|
+
}, P = { class: "text-center" }, E = /* @__PURE__ */ e("p", { class: "mb-2 text-sm text-gray-500 dark:text-gray-400" }, [
|
|
12
|
+
/* @__PURE__ */ e("span", { class: "font-semibold" }, "Click to upload"),
|
|
13
|
+
/* @__PURE__ */ j(" or drag and drop ")
|
|
14
|
+
], -1), T = { class: "text-xs text-gray-500 dark:text-gray-400" }, A = ["multiple"], J = /* @__PURE__ */ b({
|
|
15
|
+
name: "TFileDrop",
|
|
16
|
+
__name: "FileDrop",
|
|
17
|
+
props: {
|
|
18
|
+
types: {},
|
|
19
|
+
multiple: { type: Boolean, default: !0 },
|
|
20
|
+
modelValue: { default: () => [] }
|
|
21
|
+
},
|
|
22
|
+
emits: ["update:modelValue"],
|
|
23
|
+
setup(p, { emit: m }) {
|
|
24
|
+
const r = p, f = m, a = k([]), _ = C("formStyle", { label: "", input: "" }), y = i(() => r.modelValue.length > 0), h = i(() => {
|
|
25
|
+
switch (r.types) {
|
|
26
|
+
default:
|
|
27
|
+
return "SVG, PNG, JPG or GIF";
|
|
28
|
+
}
|
|
29
|
+
}), x = (l) => {
|
|
30
|
+
}, g = (l) => {
|
|
31
|
+
l.stopPropagation();
|
|
32
|
+
const t = l.target.files;
|
|
33
|
+
!t || !t.length || (a.value = Array.from(t), f("update:modelValue", t));
|
|
34
|
+
};
|
|
35
|
+
return (l, v) => {
|
|
36
|
+
const t = F("t-icon");
|
|
37
|
+
return o(), s("div", {
|
|
38
|
+
class: c({ [V(_).input]: !0 })
|
|
39
|
+
}, [
|
|
40
|
+
e("div", w, [
|
|
41
|
+
e("label", D, [
|
|
42
|
+
y.value ? (o(), s("div", G, [
|
|
43
|
+
(o(!0), s(z, null, N(a.value, (n) => (o(), s("div", {
|
|
44
|
+
key: n.name,
|
|
45
|
+
class: "flex items-center"
|
|
46
|
+
}, [
|
|
47
|
+
e("img", {
|
|
48
|
+
class: c(["fs mr-1", [n.name.split(".").pop()]])
|
|
49
|
+
}, null, 2),
|
|
50
|
+
e("span", S, u(n.name), 1),
|
|
51
|
+
d(t, {
|
|
52
|
+
icon: "close",
|
|
53
|
+
class: "ml-2 text-red-400",
|
|
54
|
+
size: "sm",
|
|
55
|
+
role: "button",
|
|
56
|
+
onClick: () => x(n.name)
|
|
57
|
+
}, null, 8, ["onClick"])
|
|
58
|
+
]))), 128))
|
|
59
|
+
])) : (o(), s("div", B, [
|
|
60
|
+
d(t, {
|
|
61
|
+
class: "dark:fill-gray-400",
|
|
62
|
+
icon: "upload",
|
|
63
|
+
role: "button",
|
|
64
|
+
size: "lg"
|
|
65
|
+
}),
|
|
66
|
+
e("div", P, [
|
|
67
|
+
E,
|
|
68
|
+
e("p", T, u(h.value), 1)
|
|
69
|
+
])
|
|
70
|
+
])),
|
|
71
|
+
e("input", {
|
|
72
|
+
id: "dropzone-file",
|
|
73
|
+
type: "file",
|
|
74
|
+
class: "hidden",
|
|
75
|
+
multiple: l.multiple,
|
|
76
|
+
onChange: g
|
|
77
|
+
}, null, 40, A)
|
|
78
|
+
])
|
|
79
|
+
])
|
|
80
|
+
], 2);
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
export {
|
|
85
|
+
J as _
|
|
86
|
+
};
|