@caipira/tamandua 0.0.2 → 0.0.3
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/dist/account-BJGxzbeL.js +5 -0
- package/dist/alert-octagon-D8wznooU.js +4 -0
- package/dist/alert-octagon-outline-fM2QVbyq.js +5 -0
- package/dist/archive-DDuuzVUo.js +5 -0
- package/dist/archive-outline-BT6uCRX5.js +5 -0
- package/dist/arrow-left-CVipcGWo.js +5 -0
- package/dist/arrow-right-DHFo5L72.js +5 -0
- package/dist/bank-lwoR1P6d.js +5 -0
- package/dist/bank-outline-wy0O9ni0.js +5 -0
- package/dist/camera-BXoPauop.js +5 -0
- package/dist/cards-outline-B0no8Z63.js +5 -0
- package/dist/cards-variant-CU6V8mdM.js +5 -0
- package/dist/cart-outline-C99s8OpS.js +4 -0
- package/dist/chart-box-outline-C9ymwfIH.js +5 -0
- package/dist/chart-box-tyepg_QH.js +5 -0
- package/dist/check-circle-C3Kf7DnE.js +5 -0
- package/dist/check-circle-outline-B4zmPfuc.js +5 -0
- package/dist/check-iUT-FuWa.js +5 -0
- package/dist/checkbox-TojXdFTq.js +5 -0
- package/dist/checkbox-dark-D_btgwCX.js +5 -0
- package/dist/checkbox-indeterminate-CtbmyFkw.js +5 -0
- package/dist/checkbox-indeterminate-dark-CSrkJBRG.js +5 -0
- package/dist/chevron-down-CJLshITY.js +5 -0
- package/dist/chevron-left-n_sGCmlG.js +5 -0
- package/dist/chevron-right-C8uLqjmq.js +5 -0
- package/dist/chevron-up-b6VdQM8S.js +5 -0
- package/dist/circle-DhoEDuC5.js +5 -0
- package/dist/clock-BqMI2OIG.js +5 -0
- package/dist/close-DemH4JAO.js +5 -0
- package/dist/close-circle-Bsf9_pUR.js +4 -0
- package/dist/close-circle-outline-CUXfYV4M.js +5 -0
- package/dist/cog-Dd9I6z5D.js +5 -0
- package/dist/color-fill-DWx77G0p.js +5 -0
- package/dist/components/Avatar/Avatar.story.d.ts +9 -0
- package/dist/components/Avatar/Avatar.vue.d.ts +58 -0
- package/dist/components/Avatar/index.d.ts +6 -0
- package/dist/components/Backdrop/Backdrop.vue.d.ts +33 -0
- package/dist/components/Backdrop/index.d.ts +6 -0
- package/dist/components/Button/Button.story.d.ts +70 -0
- package/dist/components/Button/Button.vue.d.ts +153 -0
- package/dist/components/Button/index.d.ts +6 -0
- package/dist/components/ButtonCopy/ButtonCopy.vue.d.ts +32 -0
- package/dist/components/ButtonCopy/index.d.ts +6 -0
- package/dist/components/Drawer/Drawer.vue.d.ts +67 -0
- package/dist/components/Drawer/index.d.ts +6 -0
- package/dist/components/Dropdown/Dropdown.vue.d.ts +117 -0
- package/dist/components/Dropdown/index.d.ts +6 -0
- package/dist/components/EventListener/EventListener.vue.d.ts +6 -0
- package/dist/components/FileDrop/FileDrop.vue.d.ts +40 -0
- package/dist/components/FileDrop/index.d.ts +6 -0
- package/dist/components/Form/Form.spec.d.ts +1 -0
- package/dist/components/Form/Form.vue.d.ts +111 -0
- package/dist/components/Form/index.d.ts +6 -0
- package/dist/components/FormItem/FormItem.vue.d.ts +41 -0
- package/dist/components/FormItem/index.d.ts +6 -0
- package/dist/components/GraphyEmpty/GraphyEmpty.vue.d.ts +23 -0
- package/dist/components/GraphyEmpty/index.d.ts +6 -0
- package/dist/components/GraphyLabel/GraphyLabel.vue.d.ts +43 -0
- package/dist/components/GraphyLabel/index.d.ts +6 -0
- package/dist/components/GraphyPrice/GraphyPrice.story.d.ts +6 -0
- package/dist/components/GraphyPrice/GraphyPrice.vue.d.ts +45 -0
- package/dist/components/GraphyPrice/index.d.ts +6 -0
- package/dist/components/GraphySubtitle/GraphySubtitle.vue.d.ts +31 -0
- package/dist/components/GraphySubtitle/index.d.ts +6 -0
- package/dist/components/GraphyTitle/GraphyTitle.vue.d.ts +15 -0
- package/dist/components/GraphyTitle/index.d.ts +6 -0
- package/dist/components/Icon/Icon.vue.d.ts +40 -0
- package/dist/components/Icon/index.d.ts +6 -0
- package/dist/components/IconButton/IconButton.vue.d.ts +153 -0
- package/dist/components/IconButton/index.d.ts +6 -0
- package/dist/components/InputAvatar/InputAvatar.vue.d.ts +19 -0
- package/dist/components/InputAvatar/index.d.ts +6 -0
- package/dist/components/InputCheckbox/InputCheckbox.vue.d.ts +52 -0
- package/dist/components/InputCheckbox/index.d.ts +6 -0
- package/dist/components/InputColor/InputColor.vue.d.ts +40 -0
- package/dist/components/InputColor/index.d.ts +6 -0
- package/dist/components/InputDate/InputDate.story.d.ts +6 -0
- package/dist/components/InputDate/InputDate.vue.d.ts +23 -0
- package/dist/components/InputDate/index.d.ts +6 -0
- package/dist/components/InputMultiplier/InputMultiplier.vue.d.ts +41 -0
- package/dist/components/InputMultiplier/index.d.ts +6 -0
- package/dist/components/InputMultiplier/input-multiplier.story.d.ts +19 -0
- package/{components/InputMultiplier/types.ts → dist/components/InputMultiplier/types.d.ts} +1 -2
- package/dist/components/InputPassword/InputPassword.vue.d.ts +68 -0
- package/dist/components/InputPassword/index.d.ts +6 -0
- package/dist/components/InputPhone/InputPhone.vue.d.ts +40 -0
- package/dist/components/InputPhone/index.d.ts +6 -0
- package/dist/components/InputPrice/InputPrice.vue.d.ts +39 -0
- package/dist/components/InputPrice/index.d.ts +6 -0
- package/dist/components/InputRadio/InputRadio.vue.d.ts +17 -0
- package/dist/components/InputRadio/InputRadioGroup.story.d.ts +7 -0
- package/dist/components/InputRadio/InputRadioGroup.vue.d.ts +44 -0
- package/dist/components/InputRadio/index.d.ts +7 -0
- package/dist/components/InputSelect/InputSelect.story.d.ts +6 -0
- package/dist/components/InputSelect/InputSelect.vue.d.ts +116 -0
- package/dist/components/InputSelect/index.d.ts +6 -0
- package/dist/components/InputSwitch/InputSwitch.story.d.ts +29 -0
- package/dist/components/InputSwitch/InputSwitch.vue.d.ts +40 -0
- package/dist/components/InputSwitch/index.d.ts +6 -0
- package/dist/components/InputText/InputText.vue.d.ts +60 -0
- package/dist/components/InputText/index.d.ts +6 -0
- package/dist/components/InputTextarea/InputTextarea.vue.d.ts +50 -0
- package/dist/components/InputTextarea/index.d.ts +6 -0
- package/dist/components/LineChart/LineChart.vue.d.ts +17 -0
- package/dist/components/LineChart/index.d.ts +6 -0
- package/dist/components/Modal/Modal.vue.d.ts +70 -0
- package/dist/components/Modal/index.d.ts +6 -0
- package/dist/components/ModalForm/ModalForm.vue.d.ts +53 -0
- package/dist/components/ModalForm/index.d.ts +6 -0
- package/dist/components/Pagination/Pagination.story.d.ts +5 -0
- package/dist/components/Pagination/Pagination.vue.d.ts +50 -0
- package/dist/components/Pagination/index.d.ts +6 -0
- package/dist/components/PieChart/PieChart.vue.d.ts +17 -0
- package/dist/components/PieChart/index.d.ts +6 -0
- package/dist/components/Popconfirm/Popconfirm.vue.d.ts +49 -0
- package/dist/components/Popconfirm/index.d.ts +6 -0
- package/dist/components/Popover/Popover.vue.d.ts +68 -0
- package/dist/components/Popover/index.d.ts +6 -0
- package/dist/components/ProgressCircle/ProgressCircle.story.d.ts +5 -0
- package/dist/components/ProgressCircle/ProgressCircle.vue.d.ts +56 -0
- package/dist/components/ProgressCircle/index.d.ts +6 -0
- package/dist/components/ProgressLine/ProgressLine.story.d.ts +5 -0
- package/dist/components/ProgressLine/ProgressLine.vue.d.ts +75 -0
- package/dist/components/ProgressLine/index.d.ts +6 -0
- package/dist/components/SensitiveInfo/SensitiveInfo.vue.d.ts +22 -0
- package/dist/components/SensitiveInfo/index.d.ts +6 -0
- package/dist/components/Tab/Tab.vue.d.ts +36 -0
- package/dist/components/Tab/index.d.ts +6 -0
- package/dist/components/Table/Table.story.d.ts +5 -0
- package/dist/components/Table/Table.vue.d.ts +97 -0
- package/dist/components/Table/index.d.ts +6 -0
- package/{components/Table/types.ts → dist/components/Table/types.d.ts} +1 -2
- package/dist/components/Tag/Tag.vue.d.ts +54 -0
- package/dist/components/Tag/index.d.ts +6 -0
- package/{components/Tag/types.ts → dist/components/Tag/types.d.ts} +1 -2
- package/dist/components/Toast/Toast.vue.d.ts +21 -0
- package/dist/components/Toast/index.d.ts +6 -0
- package/dist/components/index.d.ts +43 -0
- package/dist/components/plugins.d.ts +45 -0
- package/dist/composables/index.d.ts +2 -0
- package/dist/composables/useBreakpoints.d.ts +5 -0
- package/dist/composables/useRender.d.ts +3 -0
- package/dist/copy-D-Dqxp8h.js +5 -0
- package/dist/credit-card-B3VjoUad.js +5 -0
- package/dist/credit-card-plus-TUZq5Zi0.js +4 -0
- package/dist/currency-BuSji4qA.js +5 -0
- package/dist/database-CNG_l2Or.js +5 -0
- package/dist/dots-grid-BhRGZg1t.js +5 -0
- package/dist/dots-vertical-nYIDxlT1.js +5 -0
- package/dist/email-open-outline-NlRAK8vu.js +5 -0
- package/dist/email-outline-v-beMKo_.js +5 -0
- package/dist/enums/app.d.ts +5 -0
- package/dist/enums/form.d.ts +23 -0
- package/dist/enums/index.d.ts +3 -0
- package/{enums/ui.ts → dist/enums/ui.d.ts} +16 -30
- package/dist/eye-C7_UM0rn.js +5 -0
- package/dist/eye-off-Dq2WOPSG.js +5 -0
- package/dist/file-document-plus-outline-C_GeG8ak.js +5 -0
- package/dist/filmstrip-Dg66xHap.js +4 -0
- package/dist/filter-07gM0IrM.js +5 -0
- package/dist/form/convertors.d.ts +3 -0
- package/dist/form/crud.d.ts +27 -0
- package/dist/form/form-data-transformers.d.ts +4 -0
- package/dist/form/form-transformer.d.ts +7 -0
- package/dist/form/form-value-transformers.d.ts +8 -0
- package/dist/form/form.test.d.ts +1 -0
- package/dist/form/json-transformers.d.ts +4 -0
- package/dist/fullscreen-daZRwm-1.js +5 -0
- package/dist/fullscreen-exit-DvHy2f8E.js +5 -0
- package/dist/group-B1HQcmCl.js +5 -0
- package/dist/i18n.d.ts +15 -0
- package/dist/image-C-DY_SfK.js +5 -0
- package/dist/image-album-DVl72ioK.js +5 -0
- package/dist/image-album-outline-oiPipPnp.js +5 -0
- package/dist/image-outline-CLpFyr7w.js +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/info-outline-Mn6Hjz_K.js +5 -0
- package/dist/key-B8iEXxGx.js +5 -0
- package/dist/key-chain-D-8-GrU2.js +5 -0
- package/dist/key-variant-DViBRFAJ.js +5 -0
- package/dist/listbox-outline-BBriTS-r.js +5 -0
- package/dist/loading-E4eFmVsP.js +5 -0
- package/dist/lock-Nv-e-b24.js +5 -0
- package/dist/lock-outline-K2LxC2b6.js +5 -0
- package/dist/logout-BHwFpuou.js +5 -0
- package/dist/menu-down-B4Fy5IG1.js +4 -0
- package/dist/menu-left-D8G3frKt.js +4 -0
- package/dist/menu-pq7WWaJu.js +5 -0
- package/dist/menu-right-CMt4thJ2.js +4 -0
- package/dist/minus-CSCkQnOm.js +5 -0
- package/dist/minus-circle-D_N5NZW-.js +5 -0
- package/dist/minus-circle-outline-B-x6EXPD.js +5 -0
- package/dist/moon-Bhm_ZTV6.js +5 -0
- package/dist/open-in-new-C2Btl_1k.js +5 -0
- package/dist/pencil-BETebgXX.js +5 -0
- package/dist/people-BUW1DRzH.js +5 -0
- package/dist/piggy-bank-outline-5cDQNrSU.js +5 -0
- package/dist/plugins/register-component.d.ts +4 -0
- package/dist/plus-circle-Cl0YprEp.js +5 -0
- package/dist/plus-circle-outline-C-kkX0ke.js +5 -0
- package/dist/plus-sbcOm60H.js +5 -0
- package/dist/qrcode-scan-CpLrVFw_.js +5 -0
- package/dist/radio-DkjVAhsO.js +5 -0
- package/dist/radio-dark-Cr5v17AF.js +5 -0
- package/dist/refresh-DPlMWd1M.js +5 -0
- package/dist/save-BmMH4S8b.js +4 -0
- package/dist/search-Co2MwWOK.js +5 -0
- package/dist/services/clipboard.d.ts +2 -0
- package/dist/services/date.d.ts +16 -0
- package/dist/services/password.d.ts +7 -0
- package/dist/services/ui.d.ts +9 -0
- package/dist/spotlight-TNyCQzOY.js +4 -0
- package/dist/store-outline-B-fuVZzv.js +5 -0
- package/dist/style.css +1 -0
- package/dist/sun-BWKjCEHH.js +5 -0
- package/dist/swap-CNbqKTl0.js +5 -0
- package/dist/swap-horizontal-DociZUG2.js +5 -0
- package/dist/swap-left-Bd2DOgf3.js +5 -0
- package/dist/swap-right-D0VYxBDb.js +5 -0
- package/dist/system-theme-Cez6mSv_.js +5 -0
- package/dist/tag-outline-Ce_qOxif.js +5 -0
- package/dist/tamandua.js +15370 -0
- package/dist/trash-can-CKPtMqSf.js +5 -0
- package/dist/trash-can-outline-DjtqZHOC.js +5 -0
- package/{types/address.ts → dist/types/address.d.ts} +0 -5
- package/{types/api.ts → dist/types/api.d.ts} +0 -4
- package/{types/common.ts → dist/types/common.d.ts} +0 -1
- package/{types/form.ts → dist/types/form.d.ts} +32 -62
- package/dist/types/index.d.ts +5 -0
- package/{types/ui.ts → dist/types/ui.d.ts} +11 -16
- package/{types/website.ts → dist/types/website.d.ts} +0 -1
- package/dist/upload-CKfrBexU.js +5 -0
- package/dist/user-circle-D102n1FB.js +5 -0
- package/dist/vite.config.d.mts +2 -0
- package/dist/vitest.setup.d.ts +1 -0
- package/dist/zip-box-C10560VY.js +5 -0
- package/package.json +16 -5
- package/.editorconfig +0 -12
- package/.prettierrc +0 -5
- package/.storybook/main.ts +0 -22
- package/.storybook/preview-body.html +0 -3
- package/.storybook/preview.ts +0 -24
- package/App.vue +0 -1
- package/Dockerfile +0 -21
- package/assets/icons/account.svg +0 -1
- package/assets/icons/alert-octagon-outline.svg +0 -1
- package/assets/icons/alert-octagon.svg +0 -1
- package/assets/icons/archive-outline.svg +0 -1
- package/assets/icons/archive.svg +0 -1
- package/assets/icons/arrow-left.svg +0 -1
- package/assets/icons/arrow-right.svg +0 -1
- package/assets/icons/bank-outline.svg +0 -1
- package/assets/icons/bank.svg +0 -1
- package/assets/icons/camera.svg +0 -1
- package/assets/icons/cards-outline.svg +0 -1
- package/assets/icons/cards-variant.svg +0 -1
- package/assets/icons/cart-outline.svg +0 -1
- package/assets/icons/chart-box-outline.svg +0 -1
- package/assets/icons/chart-box.svg +0 -1
- package/assets/icons/check-circle-outline.svg +0 -1
- package/assets/icons/check-circle.svg +0 -1
- package/assets/icons/check.svg +0 -1
- package/assets/icons/checkbox-dark.svg +0 -1
- package/assets/icons/checkbox-indeterminate-dark.svg +0 -1
- package/assets/icons/checkbox-indeterminate.svg +0 -1
- package/assets/icons/checkbox.svg +0 -1
- package/assets/icons/chevron-down.svg +0 -1
- package/assets/icons/chevron-left.svg +0 -1
- package/assets/icons/chevron-right.svg +0 -1
- package/assets/icons/chevron-up.svg +0 -1
- package/assets/icons/circle.svg +0 -1
- package/assets/icons/clock.svg +0 -1
- package/assets/icons/close-circle-outline.svg +0 -1
- package/assets/icons/close-circle.svg +0 -1
- package/assets/icons/close.svg +0 -1
- package/assets/icons/cog.svg +0 -1
- package/assets/icons/color-fill.svg +0 -1
- package/assets/icons/copy.svg +0 -1
- package/assets/icons/credit-card-plus.svg +0 -1
- package/assets/icons/credit-card.svg +0 -1
- package/assets/icons/currency.svg +0 -1
- package/assets/icons/database.svg +0 -1
- package/assets/icons/dots-grid.svg +0 -1
- package/assets/icons/dots-vertical.svg +0 -1
- package/assets/icons/email-open-outline.svg +0 -1
- package/assets/icons/email-outline.svg +0 -1
- package/assets/icons/eye-off.svg +0 -1
- package/assets/icons/eye.svg +0 -1
- package/assets/icons/file-document-plus-outline.svg +0 -1
- package/assets/icons/filmstrip.svg +0 -1
- package/assets/icons/filter.svg +0 -1
- package/assets/icons/fullscreen-exit.svg +0 -1
- package/assets/icons/fullscreen.svg +0 -1
- package/assets/icons/group.svg +0 -1
- package/assets/icons/image-album-outline.svg +0 -1
- package/assets/icons/image-album.svg +0 -1
- package/assets/icons/image-outline.svg +0 -1
- package/assets/icons/image.svg +0 -1
- package/assets/icons/info-outline.svg +0 -1
- package/assets/icons/key-chain.svg +0 -1
- package/assets/icons/key-variant.svg +0 -1
- package/assets/icons/key.svg +0 -1
- package/assets/icons/listbox-outline.svg +0 -1
- package/assets/icons/loading.svg +0 -1
- package/assets/icons/lock-outline.svg +0 -1
- package/assets/icons/lock.svg +0 -1
- package/assets/icons/logout.svg +0 -1
- package/assets/icons/menu-down.svg +0 -1
- package/assets/icons/menu-left.svg +0 -1
- package/assets/icons/menu-right.svg +0 -1
- package/assets/icons/menu.svg +0 -1
- package/assets/icons/minus-circle-outline.svg +0 -1
- package/assets/icons/minus-circle.svg +0 -1
- package/assets/icons/minus.svg +0 -1
- package/assets/icons/moon.svg +0 -1
- package/assets/icons/open-in-new.svg +0 -1
- package/assets/icons/pencil.svg +0 -1
- package/assets/icons/people.svg +0 -1
- package/assets/icons/piggy-bank-outline.svg +0 -1
- package/assets/icons/plus-circle-outline.svg +0 -1
- package/assets/icons/plus-circle.svg +0 -1
- package/assets/icons/plus.svg +0 -1
- package/assets/icons/qrcode-scan.svg +0 -1
- package/assets/icons/radio-dark.svg +0 -1
- package/assets/icons/radio.svg +0 -1
- package/assets/icons/refresh.svg +0 -1
- package/assets/icons/save.svg +0 -1
- package/assets/icons/search.svg +0 -1
- package/assets/icons/spotlight.svg +0 -1
- package/assets/icons/store-outline.svg +0 -1
- package/assets/icons/sun.svg +0 -1
- package/assets/icons/swap-horizontal.svg +0 -1
- package/assets/icons/swap-left.svg +0 -1
- package/assets/icons/swap-right.svg +0 -1
- package/assets/icons/swap.svg +0 -1
- package/assets/icons/system-theme.svg +0 -1
- package/assets/icons/tag-outline.svg +0 -1
- package/assets/icons/trash-can-outline.svg +0 -1
- package/assets/icons/trash-can.svg +0 -1
- package/assets/icons/upload.svg +0 -1
- package/assets/icons/user-circle.svg +0 -1
- package/assets/icons/zip-box.svg +0 -1
- package/assets/images/fs/apk.svg +0 -11
- package/assets/images/fs/bmp.svg +0 -7
- package/assets/images/fs/css.svg +0 -8
- package/assets/images/fs/doc.svg +0 -9
- package/assets/images/fs/docx.svg +0 -9
- package/assets/images/fs/folder-adwaita.svg +0 -8
- package/assets/images/fs/folder-black.svg +0 -8
- package/assets/images/fs/folder-brown.svg +0 -8
- package/assets/images/fs/folder-grey.svg +0 -8
- package/assets/images/fs/folder-nordic.svg +0 -8
- package/assets/images/fs/folder-orange.svg +0 -8
- package/assets/images/fs/folder-palebrown.svg +0 -8
- package/assets/images/fs/folder-paleorange.svg +0 -8
- package/assets/images/fs/folder-teal.svg +0 -8
- package/assets/images/fs/folder-white.svg +0 -8
- package/assets/images/fs/folder-yellow.svg +0 -8
- package/assets/images/fs/gif.svg +0 -7
- package/assets/images/fs/go.svg +0 -9
- package/assets/images/fs/ics.svg +0 -24
- package/assets/images/fs/iso.svg +0 -10
- package/assets/images/fs/jpeg.svg +0 -7
- package/assets/images/fs/jpg.svg +0 -7
- package/assets/images/fs/js.svg +0 -9
- package/assets/images/fs/json.svg +0 -9
- package/assets/images/fs/lua.svg +0 -9
- package/assets/images/fs/m4v.svg +0 -7
- package/assets/images/fs/md.svg +0 -10
- package/assets/images/fs/mov.svg +0 -7
- package/assets/images/fs/mp3.svg +0 -9
- package/assets/images/fs/mp4.svg +0 -7
- package/assets/images/fs/pdf.svg +0 -9
- package/assets/images/fs/pgp.svg +0 -8
- package/assets/images/fs/php.svg +0 -9
- package/assets/images/fs/png.svg +0 -7
- package/assets/images/fs/ppt.svg +0 -9
- package/assets/images/fs/py.svg +0 -9
- package/assets/images/fs/rar.svg +0 -20
- package/assets/images/fs/rpm.svg +0 -7
- package/assets/images/fs/rs.svg +0 -9
- package/assets/images/fs/sh.svg +0 -9
- package/assets/images/fs/tar.svg +0 -20
- package/assets/images/fs/txt.svg +0 -8
- package/assets/images/fs/unknown.svg +0 -8
- package/assets/images/fs/xls.svg +0 -9
- package/assets/images/fs/xlsx.svg +0 -9
- package/assets/images/fs/xml.svg +0 -8
- package/assets/images/fs/yaml.svg +0 -9
- package/assets/images/fs/zip.svg +0 -20
- package/components/Avatar/Avatar.story.ts +0 -55
- package/components/Avatar/Avatar.vue +0 -82
- package/components/Avatar/index.ts +0 -12
- package/components/Backdrop/Backdrop.vue +0 -27
- package/components/Backdrop/index.ts +0 -12
- package/components/Button/Button.story.ts +0 -74
- package/components/Button/Button.vue +0 -230
- package/components/Button/index.ts +0 -12
- package/components/ButtonCopy/ButtonCopy.vue +0 -61
- package/components/ButtonCopy/index.ts +0 -12
- package/components/Drawer/Drawer.vue +0 -102
- package/components/Drawer/index.ts +0 -12
- package/components/Dropdown/Dropdown.vue +0 -258
- package/components/Dropdown/index.ts +0 -12
- package/components/EventListener/EventListener.vue +0 -12
- package/components/FileDrop/FileDrop.vue +0 -116
- package/components/FileDrop/index.ts +0 -12
- package/components/Form/Form.spec.ts +0 -72
- package/components/Form/Form.vue +0 -134
- package/components/Form/index.ts +0 -12
- package/components/FormItem/FormItem.vue +0 -85
- package/components/FormItem/index.ts +0 -12
- package/components/GraphyEmpty/GraphyEmpty.vue +0 -16
- package/components/GraphyEmpty/index.ts +0 -12
- package/components/GraphyLabel/GraphyLabel.vue +0 -34
- package/components/GraphyLabel/index.ts +0 -12
- package/components/GraphyPrice/GraphyPrice.story.ts +0 -37
- package/components/GraphyPrice/GraphyPrice.vue +0 -65
- package/components/GraphyPrice/index.ts +0 -12
- package/components/GraphySubtitle/GraphySubtitle.vue +0 -22
- package/components/GraphySubtitle/index.ts +0 -12
- package/components/GraphyTitle/GraphyTitle.vue +0 -13
- package/components/GraphyTitle/index.ts +0 -12
- package/components/Icon/Icon.vue +0 -84
- package/components/Icon/index.ts +0 -12
- package/components/IconButton/IconButton.vue +0 -168
- package/components/IconButton/index.ts +0 -12
- package/components/InputAvatar/InputAvatar.vue +0 -63
- package/components/InputAvatar/index.ts +0 -12
- package/components/InputCheckbox/InputCheckbox.vue +0 -77
- package/components/InputCheckbox/index.ts +0 -12
- package/components/InputColor/InputColor.vue +0 -54
- package/components/InputColor/index.ts +0 -12
- package/components/InputDate/InputDate.story.ts +0 -15
- package/components/InputDate/InputDate.vue +0 -368
- package/components/InputDate/index.ts +0 -12
- package/components/InputMultiplier/InputMultiplier.vue +0 -119
- package/components/InputMultiplier/index.ts +0 -12
- package/components/InputMultiplier/input-multiplier.story.ts +0 -30
- package/components/InputPassword/InputPassword.vue +0 -170
- package/components/InputPassword/index.ts +0 -12
- package/components/InputPhone/InputPhone.vue +0 -125
- package/components/InputPhone/index.ts +0 -12
- package/components/InputPrice/InputPrice.vue +0 -96
- package/components/InputPrice/index.ts +0 -12
- package/components/InputRadio/InputRadio.vue +0 -41
- package/components/InputRadio/InputRadioGroup.story.ts +0 -24
- package/components/InputRadio/InputRadioGroup.vue +0 -48
- package/components/InputRadio/index.ts +0 -14
- package/components/InputSelect/InputSelect.story.ts +0 -87
- package/components/InputSelect/InputSelect.vue +0 -507
- package/components/InputSelect/index.ts +0 -12
- package/components/InputSwitch/InputSwitch.story.ts +0 -34
- package/components/InputSwitch/InputSwitch.vue +0 -82
- package/components/InputSwitch/index.ts +0 -12
- package/components/InputText/InputText.vue +0 -62
- package/components/InputText/index.ts +0 -12
- package/components/InputTextarea/InputTextarea.vue +0 -64
- package/components/InputTextarea/index.ts +0 -12
- package/components/LineChart/LineChart.vue +0 -14
- package/components/LineChart/index.ts +0 -12
- package/components/Modal/Modal.vue +0 -106
- package/components/Modal/index.ts +0 -12
- package/components/ModalForm/ModalForm.vue +0 -141
- package/components/ModalForm/index.ts +0 -12
- package/components/Pagination/Pagination.story.ts +0 -15
- package/components/Pagination/Pagination.vue +0 -138
- package/components/Pagination/index.ts +0 -12
- package/components/PieChart/PieChart.vue +0 -14
- package/components/PieChart/index.ts +0 -12
- package/components/Popconfirm/Popconfirm.vue +0 -80
- package/components/Popconfirm/index.ts +0 -12
- package/components/Popover/Popover.vue +0 -133
- package/components/Popover/index.ts +0 -12
- package/components/ProgressCircle/ProgressCircle.story.ts +0 -31
- package/components/ProgressCircle/ProgressCircle.vue +0 -82
- package/components/ProgressCircle/index.ts +0 -12
- package/components/ProgressLine/ProgressLine.story.ts +0 -27
- package/components/ProgressLine/ProgressLine.vue +0 -104
- package/components/ProgressLine/index.ts +0 -12
- package/components/SensitiveInfo/SensitiveInfo.vue +0 -18
- package/components/SensitiveInfo/index.ts +0 -12
- package/components/Tab/Tab.vue +0 -58
- package/components/Tab/index.ts +0 -12
- package/components/Table/Table.story.ts +0 -30
- package/components/Table/Table.vue +0 -291
- package/components/Table/index.ts +0 -12
- package/components/Tag/Tag.vue +0 -61
- package/components/Tag/index.ts +0 -12
- package/components/Toast/Toast.vue +0 -75
- package/components/Toast/index.ts +0 -12
- package/components/index.ts +0 -43
- package/components/plugins.ts +0 -89
- package/composables/index.ts +0 -2
- package/composables/useBreakpoints.ts +0 -30
- package/composables/useRender.ts +0 -29
- package/entrypoint.sh +0 -19
- package/enums/app.ts +0 -5
- package/enums/form.ts +0 -25
- package/env.d.ts +0 -8
- package/form/convertors.ts +0 -31
- package/form/crud.ts +0 -109
- package/form/form-data-transformers.ts +0 -148
- package/form/form-transformer.ts +0 -54
- package/form/form-value-transformers.ts +0 -32
- package/form/form.test.ts +0 -96
- package/form/json-transformers.ts +0 -91
- package/i18n.ts +0 -20
- package/index.css +0 -297
- package/index.html +0 -22
- package/index.ts +0 -14
- package/main.ts +0 -31
- package/plugins/register-component.ts +0 -5
- package/postcss.config.js +0 -6
- package/services/clipboard.ts +0 -5
- package/services/date.ts +0 -27
- package/services/password.ts +0 -309
- package/services/ui.ts +0 -43
- package/tailwind.config.js +0 -16
- package/tsconfig.json +0 -23
- package/types/index.ts +0 -5
- package/vite.config.mts +0 -14
- package/vitest.setup.ts +0 -21
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import { ElementPosition, ElementTrigger } from "@/enums/ui";
|
|
3
|
-
|
|
4
|
-
import uiService from "@/services/ui";
|
|
5
|
-
import { createPopper } from "@popperjs/core";
|
|
6
|
-
import { ref, computed, onMounted, onBeforeMount, onBeforeUnmount } from "vue";
|
|
7
|
-
|
|
8
|
-
import EventListener from "@/components/EventListener/EventListener.vue";
|
|
9
|
-
|
|
10
|
-
defineOptions({ name: "TPopover" });
|
|
11
|
-
|
|
12
|
-
const props = withDefaults(
|
|
13
|
-
defineProps<{
|
|
14
|
-
trigger?: `${ElementTrigger}`;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
isVisible?: boolean | null;
|
|
17
|
-
placement?: `${ElementPosition}`;
|
|
18
|
-
disableStyle?: boolean;
|
|
19
|
-
slotWrapperClasses?: string;
|
|
20
|
-
}>(),
|
|
21
|
-
{
|
|
22
|
-
trigger: ElementTrigger.CLICK,
|
|
23
|
-
disabled: false,
|
|
24
|
-
isVisible: null,
|
|
25
|
-
placement: ElementPosition.BOTTOM,
|
|
26
|
-
disableStyle: false,
|
|
27
|
-
slotWrapperClasses: "",
|
|
28
|
-
},
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
const visible = ref<boolean>(false);
|
|
32
|
-
const popoverRef = ref<HTMLElement>();
|
|
33
|
-
const wrapperRef = ref<HTMLElement>();
|
|
34
|
-
|
|
35
|
-
const classes = computed<string>(() => {
|
|
36
|
-
return props.slotWrapperClasses;
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
const onTogglePopover = (isVisible: boolean = !visible.value) => {
|
|
40
|
-
visible.value = isVisible;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
const onGlobalClick = (event: any) => {
|
|
44
|
-
if (
|
|
45
|
-
wrapperRef.value &&
|
|
46
|
-
uiService.wasClickOutsideOfContainer(event, wrapperRef.value)
|
|
47
|
-
) {
|
|
48
|
-
visible.value = false;
|
|
49
|
-
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return true;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
onBeforeMount(() => {
|
|
57
|
-
document.addEventListener("click", onGlobalClick);
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Get the first element inside the default slot that has the aria-describedby=tooltip
|
|
62
|
-
*/
|
|
63
|
-
onMounted(() => {
|
|
64
|
-
if (!wrapperRef.value || !popoverRef.value) {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
let parent: HTMLElement | undefined = undefined;
|
|
69
|
-
|
|
70
|
-
for (const node of wrapperRef.value.childNodes.values()) {
|
|
71
|
-
if (
|
|
72
|
-
"hasAttribute" in node &&
|
|
73
|
-
(node as Element).hasAttribute("aria-describedby") &&
|
|
74
|
-
(node as Element).getAttribute("aria-describedby") === "tooltip"
|
|
75
|
-
) {
|
|
76
|
-
parent = node as HTMLElement;
|
|
77
|
-
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
if (!parent) {
|
|
83
|
-
console.error(
|
|
84
|
-
'[caipira-cloud-ui]: Popover activator not found (aria-describedby="tooltip")',
|
|
85
|
-
);
|
|
86
|
-
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
createPopper(parent, popoverRef.value, {
|
|
91
|
-
placement: props.placement,
|
|
92
|
-
strategy: "fixed",
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
onBeforeUnmount(() => {
|
|
97
|
-
document.removeEventListener("click", onGlobalClick);
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
defineExpose({ visible });
|
|
101
|
-
</script>
|
|
102
|
-
|
|
103
|
-
<template>
|
|
104
|
-
<div
|
|
105
|
-
ref="wrapperRef"
|
|
106
|
-
class="inline"
|
|
107
|
-
>
|
|
108
|
-
<event-listener
|
|
109
|
-
v-if="$slots.default"
|
|
110
|
-
@popover-click="onTogglePopover"
|
|
111
|
-
>
|
|
112
|
-
<slot />
|
|
113
|
-
</event-listener>
|
|
114
|
-
<div
|
|
115
|
-
v-if="!props.disabled"
|
|
116
|
-
ref="popoverRef"
|
|
117
|
-
role="tooltip"
|
|
118
|
-
class="shadow bg-caipira-primary border-color z-10"
|
|
119
|
-
:class="{
|
|
120
|
-
hidden:
|
|
121
|
-
(props.isVisible !== null && props.isVisible === false) ||
|
|
122
|
-
(props.isVisible === null && visible === false),
|
|
123
|
-
'rounded-lg': !props.disableStyle,
|
|
124
|
-
[classes]: true,
|
|
125
|
-
}"
|
|
126
|
-
>
|
|
127
|
-
<slot
|
|
128
|
-
name="content"
|
|
129
|
-
v-bind="{ onTogglePopover }"
|
|
130
|
-
/>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
</template>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { App, Plugin } from "vue";
|
|
2
|
-
import registerComponent from "@/plugins/register-component";
|
|
3
|
-
|
|
4
|
-
import Popover from "./Popover.vue";
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
install(app: App) {
|
|
8
|
-
registerComponent(app, Popover);
|
|
9
|
-
},
|
|
10
|
-
} as Plugin;
|
|
11
|
-
|
|
12
|
-
export { Popover };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
const story = {
|
|
2
|
-
title: "Progress/Circle",
|
|
3
|
-
};
|
|
4
|
-
|
|
5
|
-
const Template = (args: any) => ({
|
|
6
|
-
setup() {
|
|
7
|
-
return { args };
|
|
8
|
-
},
|
|
9
|
-
template: `
|
|
10
|
-
<t-progress-circle
|
|
11
|
-
:value="value"
|
|
12
|
-
:width="width"
|
|
13
|
-
:strokeWidth="strokeWidth"
|
|
14
|
-
:strokeColor="strokeColor"
|
|
15
|
-
:backgroundColor="backgroundColor"
|
|
16
|
-
>
|
|
17
|
-
<span class="text-2xl">{{ value }}%</span>
|
|
18
|
-
</t-progress-circle>
|
|
19
|
-
`,
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
const defaultArgs: any = {
|
|
23
|
-
value: 75,
|
|
24
|
-
width: 100,
|
|
25
|
-
strokeWidth: 13,
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const Default: any = Template.bind({});
|
|
29
|
-
Default.args = { ...defaultArgs };
|
|
30
|
-
|
|
31
|
-
export { story as default, Default };
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import { computed } from "vue";
|
|
3
|
-
|
|
4
|
-
defineOptions({ name: "TProgressCircle" });
|
|
5
|
-
|
|
6
|
-
const props = withDefaults(
|
|
7
|
-
defineProps<{
|
|
8
|
-
value?: number;
|
|
9
|
-
width?: number;
|
|
10
|
-
strokeWidth?: number;
|
|
11
|
-
strokeColor?: string;
|
|
12
|
-
backgroundColor?: string;
|
|
13
|
-
}>(),
|
|
14
|
-
{
|
|
15
|
-
value: 0,
|
|
16
|
-
width: 90,
|
|
17
|
-
strokeWidth: 1,
|
|
18
|
-
strokeColor: "var(--caipira-blue)",
|
|
19
|
-
backgroundColor: "var(--caipira-tertiary)",
|
|
20
|
-
},
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
const radius = 90;
|
|
24
|
-
|
|
25
|
-
const dashOffset = computed(() => {
|
|
26
|
-
const c = Math.PI * (radius * 2);
|
|
27
|
-
let value = props.value;
|
|
28
|
-
|
|
29
|
-
if (props.value < 0) {
|
|
30
|
-
value = 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
if (props.value > 100) {
|
|
34
|
-
value = 100;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return ((100 - value) / 100) * c;
|
|
38
|
-
});
|
|
39
|
-
</script>
|
|
40
|
-
|
|
41
|
-
<style scoped>
|
|
42
|
-
svg circle {
|
|
43
|
-
transition: stroke-dashoffset 1s linear;
|
|
44
|
-
}
|
|
45
|
-
</style>
|
|
46
|
-
|
|
47
|
-
<template>
|
|
48
|
-
<div class="relative w-min">
|
|
49
|
-
<svg
|
|
50
|
-
viewBox="0 0 200 200"
|
|
51
|
-
:width="props.width"
|
|
52
|
-
:heigh="props.width"
|
|
53
|
-
>
|
|
54
|
-
<circle
|
|
55
|
-
cy="100"
|
|
56
|
-
cx="100"
|
|
57
|
-
fill="transparent"
|
|
58
|
-
stroke-dasharray="565.48"
|
|
59
|
-
:r="radius"
|
|
60
|
-
:stroke-width="props.strokeWidth"
|
|
61
|
-
:stroke="props.backgroundColor"
|
|
62
|
-
stroke-dashoffset="0"
|
|
63
|
-
/>
|
|
64
|
-
<circle
|
|
65
|
-
cy="100"
|
|
66
|
-
cx="100"
|
|
67
|
-
fill="transparent"
|
|
68
|
-
stroke-dasharray="565.48"
|
|
69
|
-
:r="radius"
|
|
70
|
-
:stroke-width="props.strokeWidth"
|
|
71
|
-
:stroke="props.strokeColor"
|
|
72
|
-
:stroke-dashoffset="dashOffset"
|
|
73
|
-
/>
|
|
74
|
-
</svg>
|
|
75
|
-
<div
|
|
76
|
-
v-if="$slots.default"
|
|
77
|
-
class="absolute transform -translate-x-1/2 -translate-y-1/2 top-2/4 left-2/4"
|
|
78
|
-
>
|
|
79
|
-
<slot />
|
|
80
|
-
</div>
|
|
81
|
-
</div>
|
|
82
|
-
</template>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { App, Plugin } from "vue";
|
|
2
|
-
import registerComponent from "@/plugins/register-component";
|
|
3
|
-
|
|
4
|
-
import ProgressCircle from "./ProgressCircle.vue";
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
install(app: App) {
|
|
8
|
-
registerComponent(app, ProgressCircle);
|
|
9
|
-
},
|
|
10
|
-
} as Plugin;
|
|
11
|
-
|
|
12
|
-
export { ProgressCircle };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const story = {
|
|
2
|
-
title: "Progress/Line",
|
|
3
|
-
};
|
|
4
|
-
|
|
5
|
-
const Template = (args: any) => ({
|
|
6
|
-
setup() {
|
|
7
|
-
return { args };
|
|
8
|
-
},
|
|
9
|
-
template: `
|
|
10
|
-
<div class="w-96">
|
|
11
|
-
<c-progress-line
|
|
12
|
-
:value="value"
|
|
13
|
-
:height="height"
|
|
14
|
-
/>
|
|
15
|
-
</div>
|
|
16
|
-
`,
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
const defaultArgs: any = {
|
|
20
|
-
value: 25,
|
|
21
|
-
height: 5,
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const Default: any = Template.bind({});
|
|
25
|
-
Default.args = { ...defaultArgs };
|
|
26
|
-
|
|
27
|
-
export { story as default, Default };
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import { computed, ref, watch } from "vue";
|
|
3
|
-
|
|
4
|
-
defineOptions({ name: "TProgressLine" });
|
|
5
|
-
|
|
6
|
-
const props = withDefaults(
|
|
7
|
-
defineProps<{
|
|
8
|
-
value?: number;
|
|
9
|
-
height?: number;
|
|
10
|
-
borderRadius?: number;
|
|
11
|
-
showPercentage?: boolean;
|
|
12
|
-
|
|
13
|
-
// CSS classes
|
|
14
|
-
svgClass?: string;
|
|
15
|
-
labelClass?: string;
|
|
16
|
-
|
|
17
|
-
// Colors
|
|
18
|
-
overColor?: string;
|
|
19
|
-
progressColor?: string;
|
|
20
|
-
finishedColor?: string;
|
|
21
|
-
backgroundColor?: string;
|
|
22
|
-
}>(),
|
|
23
|
-
{
|
|
24
|
-
value: 0,
|
|
25
|
-
height: 10,
|
|
26
|
-
borderRadius: 2,
|
|
27
|
-
showPercentage: true,
|
|
28
|
-
|
|
29
|
-
// Colors
|
|
30
|
-
overColor: "#f38ba8",
|
|
31
|
-
progressColor: "#89b4fa",
|
|
32
|
-
finishedColor: "#a6e3a1",
|
|
33
|
-
backgroundColor: "var(--caipira-tertiary)",
|
|
34
|
-
},
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
const percentage = ref<number>(0);
|
|
38
|
-
|
|
39
|
-
watch(
|
|
40
|
-
() => props.value,
|
|
41
|
-
(value: number) => {
|
|
42
|
-
if (value) {
|
|
43
|
-
percentage.value = Math.round(value);
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
{ immediate: true },
|
|
47
|
-
);
|
|
48
|
-
|
|
49
|
-
const fillColor = computed<string>(() => {
|
|
50
|
-
if (percentage.value === 100) {
|
|
51
|
-
return props.finishedColor;
|
|
52
|
-
} else if (percentage.value > 100) {
|
|
53
|
-
return props.overColor;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return props.progressColor;
|
|
57
|
-
});
|
|
58
|
-
</script>
|
|
59
|
-
|
|
60
|
-
<template>
|
|
61
|
-
<div class="flex items-center">
|
|
62
|
-
<svg
|
|
63
|
-
width="100%"
|
|
64
|
-
:height="props.height"
|
|
65
|
-
class="inline-block flex-grow"
|
|
66
|
-
:class="props.svgClass"
|
|
67
|
-
>
|
|
68
|
-
<rect
|
|
69
|
-
width="100%"
|
|
70
|
-
height="100%"
|
|
71
|
-
:rx="props.borderRadius"
|
|
72
|
-
:fill="props.backgroundColor"
|
|
73
|
-
/>
|
|
74
|
-
<rect
|
|
75
|
-
height="100%"
|
|
76
|
-
:width="`${props.value}%`"
|
|
77
|
-
:rx="props.borderRadius"
|
|
78
|
-
:fill="fillColor"
|
|
79
|
-
/>
|
|
80
|
-
</svg>
|
|
81
|
-
<div
|
|
82
|
-
v-if="props.showPercentage"
|
|
83
|
-
class="flex-none ml-2"
|
|
84
|
-
:class="labelClass"
|
|
85
|
-
>
|
|
86
|
-
<slot
|
|
87
|
-
v-if="$slots.label"
|
|
88
|
-
name="label"
|
|
89
|
-
/>
|
|
90
|
-
<span
|
|
91
|
-
v-else
|
|
92
|
-
class="text-sm"
|
|
93
|
-
>
|
|
94
|
-
{{ percentage }}%
|
|
95
|
-
</span>
|
|
96
|
-
</div>
|
|
97
|
-
</div>
|
|
98
|
-
</template>
|
|
99
|
-
|
|
100
|
-
<style scoped>
|
|
101
|
-
svg rect {
|
|
102
|
-
transition: width 0.3s linear;
|
|
103
|
-
}
|
|
104
|
-
</style>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { App, Plugin } from "vue";
|
|
2
|
-
import registerComponent from "@/plugins/register-component";
|
|
3
|
-
|
|
4
|
-
import ProgressLine from "./ProgressLine.vue";
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
install(app: App) {
|
|
8
|
-
registerComponent(app, ProgressLine);
|
|
9
|
-
},
|
|
10
|
-
} as Plugin;
|
|
11
|
-
|
|
12
|
-
export { ProgressLine };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
defineOptions({ name: "TSensitiveInfo" });
|
|
3
|
-
|
|
4
|
-
const props = defineProps<{
|
|
5
|
-
private: boolean;
|
|
6
|
-
}>();
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<template>
|
|
10
|
-
<div
|
|
11
|
-
:class="{
|
|
12
|
-
'blur-sm': props.private,
|
|
13
|
-
'filter grayscale': false,
|
|
14
|
-
}"
|
|
15
|
-
>
|
|
16
|
-
<slot />
|
|
17
|
-
</div>
|
|
18
|
-
</template>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { App, Plugin } from "vue";
|
|
2
|
-
import registerComponent from "@/plugins/register-component";
|
|
3
|
-
|
|
4
|
-
import SensitiveInfo from "./SensitiveInfo.vue";
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
install(app: App) {
|
|
8
|
-
registerComponent(app, SensitiveInfo);
|
|
9
|
-
},
|
|
10
|
-
} as Plugin;
|
|
11
|
-
|
|
12
|
-
export { SensitiveInfo };
|
package/components/Tab/Tab.vue
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import { Tab } from "@/types/ui";
|
|
3
|
-
|
|
4
|
-
import { ref } from "vue";
|
|
5
|
-
|
|
6
|
-
defineOptions({ name: "TTab" });
|
|
7
|
-
|
|
8
|
-
const props = withDefaults(
|
|
9
|
-
defineProps<{
|
|
10
|
-
tabs?: Tab[];
|
|
11
|
-
}>(),
|
|
12
|
-
{
|
|
13
|
-
tabs: () => [],
|
|
14
|
-
},
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
const activeTabIndex = ref<number>(0);
|
|
18
|
-
</script>
|
|
19
|
-
|
|
20
|
-
<template>
|
|
21
|
-
<ul
|
|
22
|
-
class="flex flex-col md:flex-row flex-wrap rounded-sm list-none mb-6 pt-1 bg-caipira-tertiary"
|
|
23
|
-
role="tablist"
|
|
24
|
-
>
|
|
25
|
-
<li
|
|
26
|
-
role="presentation"
|
|
27
|
-
v-for="(tab, index) in props.tabs"
|
|
28
|
-
:key="index"
|
|
29
|
-
>
|
|
30
|
-
<a
|
|
31
|
-
class="block uppercase py-2 px-4"
|
|
32
|
-
:class="{
|
|
33
|
-
'bg-caipira-primary': index === activeTabIndex,
|
|
34
|
-
}"
|
|
35
|
-
href="#"
|
|
36
|
-
role="tab"
|
|
37
|
-
aria-selected="true"
|
|
38
|
-
@click="activeTabIndex = index"
|
|
39
|
-
>
|
|
40
|
-
{{ tab.title }}
|
|
41
|
-
</a>
|
|
42
|
-
</li>
|
|
43
|
-
</ul>
|
|
44
|
-
<div
|
|
45
|
-
class="tab-content"
|
|
46
|
-
id="tabs-tabContent"
|
|
47
|
-
>
|
|
48
|
-
<div
|
|
49
|
-
v-for="(tab, index) in props.tabs"
|
|
50
|
-
:key="index"
|
|
51
|
-
class=""
|
|
52
|
-
:class="{ hidden: index !== activeTabIndex }"
|
|
53
|
-
role="tabpanel"
|
|
54
|
-
>
|
|
55
|
-
<slot :name="tab.slot" />
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
</template>
|
package/components/Tab/index.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { faker } from "@faker-js/faker";
|
|
2
|
-
|
|
3
|
-
const story = {
|
|
4
|
-
title: "Table",
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
const Template = (args: any) => ({
|
|
8
|
-
setup() {
|
|
9
|
-
return { args };
|
|
10
|
-
},
|
|
11
|
-
template: `<t-table v-bind="args" />`,
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
const Default: any = Template.bind({});
|
|
15
|
-
Default.args = {
|
|
16
|
-
loading: false,
|
|
17
|
-
data: (Array.from({ length: 10 }) as any).map(() => ({
|
|
18
|
-
id: faker.string.uuid(),
|
|
19
|
-
name: faker.person.fullName(),
|
|
20
|
-
email: faker.internet.email(),
|
|
21
|
-
job: faker.person.jobTitle(),
|
|
22
|
-
})),
|
|
23
|
-
columns: [
|
|
24
|
-
{ title: "Name", property: "name" },
|
|
25
|
-
{ title: "Email", property: "email" },
|
|
26
|
-
{ title: "Job", property: "job" },
|
|
27
|
-
],
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export { story as default, Default };
|