@antify/ui-module 1.1.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/LICENSE +21 -0
- package/README.md +74 -0
- package/dist/module.cjs +5 -0
- package/dist/module.d.mts +131 -0
- package/dist/module.d.ts +131 -0
- package/dist/module.json +5 -0
- package/dist/module.mjs +339 -0
- package/dist/runtime/assets/tailwind.css +1 -0
- package/dist/runtime/components/AntAccordion.vue +59 -0
- package/dist/runtime/components/AntAccordionItem.vue +66 -0
- package/dist/runtime/components/AntAlert.vue +137 -0
- package/dist/runtime/components/AntDropdown.vue +79 -0
- package/dist/runtime/components/AntIcon.vue +51 -0
- package/dist/runtime/components/AntKeycap.vue +24 -0
- package/dist/runtime/components/AntListGroup.vue +24 -0
- package/dist/runtime/components/AntListGroupItem.vue +81 -0
- package/dist/runtime/components/AntModal.vue +87 -0
- package/dist/runtime/components/AntPagination.vue +201 -0
- package/dist/runtime/components/AntPopover.vue +112 -0
- package/dist/runtime/components/AntSkeleton.vue +38 -0
- package/dist/runtime/components/AntSpinner.vue +95 -0
- package/dist/runtime/components/AntTag.vue +79 -0
- package/dist/runtime/components/AntToast.vue +109 -0
- package/dist/runtime/components/AntToaster.vue +46 -0
- package/dist/runtime/components/AntTooltip.vue +165 -0
- package/dist/runtime/components/Main.stories.mdx +10 -0
- package/dist/runtime/components/__stories/AntAccordion.stories.d.ts +9 -0
- package/dist/runtime/components/__stories/AntAccordion.stories.mjs +97 -0
- package/dist/runtime/components/__stories/AntAlert.stories.d.ts +10 -0
- package/dist/runtime/components/__stories/AntAlert.stories.mjs +75 -0
- package/dist/runtime/components/__stories/AntDropdown.stories.d.ts +6 -0
- package/dist/runtime/components/__stories/AntDropdown.stories.mjs +52 -0
- package/dist/runtime/components/__stories/AntIcon.stories.d.ts +8 -0
- package/dist/runtime/components/__stories/AntIcon.stories.mjs +90 -0
- package/dist/runtime/components/__stories/AntKeycap.stories.d.ts +9 -0
- package/dist/runtime/components/__stories/AntKeycap.stories.mjs +59 -0
- package/dist/runtime/components/__stories/AntListGroup.stories.d.ts +7 -0
- package/dist/runtime/components/__stories/AntListGroup.stories.mjs +36 -0
- package/dist/runtime/components/__stories/AntListGroupItem.stories.d.ts +10 -0
- package/dist/runtime/components/__stories/AntListGroupItem.stories.mjs +62 -0
- package/dist/runtime/components/__stories/AntModal.stories.d.ts +7 -0
- package/dist/runtime/components/__stories/AntModal.stories.mjs +78 -0
- package/dist/runtime/components/__stories/AntPagination.stories.d.ts +8 -0
- package/dist/runtime/components/__stories/AntPagination.stories.mjs +39 -0
- package/dist/runtime/components/__stories/AntPopover.stories.d.ts +6 -0
- package/dist/runtime/components/__stories/AntPopover.stories.mjs +47 -0
- package/dist/runtime/components/__stories/AntSkeleton.stories.d.ts +8 -0
- package/dist/runtime/components/__stories/AntSkeleton.stories.mjs +43 -0
- package/dist/runtime/components/__stories/AntSpinner.stories.d.ts +6 -0
- package/dist/runtime/components/__stories/AntSpinner.stories.mjs +34 -0
- package/dist/runtime/components/__stories/AntTag.stories.d.ts +7 -0
- package/dist/runtime/components/__stories/AntTag.stories.mjs +44 -0
- package/dist/runtime/components/__stories/AntToast.stories.d.ts +8 -0
- package/dist/runtime/components/__stories/AntToast.stories.mjs +66 -0
- package/dist/runtime/components/__stories/AntToaster.stories.d.ts +34 -0
- package/dist/runtime/components/__stories/AntToaster.stories.mjs +42 -0
- package/dist/runtime/components/__stories/AntTooltip.stories.d.ts +6 -0
- package/dist/runtime/components/__stories/AntTooltip.stories.mjs +43 -0
- package/dist/runtime/components/__types/Accordion.types.d.ts +4 -0
- package/dist/runtime/components/__types/Accordion.types.mjs +5 -0
- package/dist/runtime/components/__types/AntIcon.types.d.ts +5 -0
- package/dist/runtime/components/__types/AntIcon.types.mjs +6 -0
- package/dist/runtime/components/__types/AntToaster.types.d.ts +8 -0
- package/dist/runtime/components/__types/AntToaster.types.mjs +0 -0
- package/dist/runtime/components/__types/index.d.ts +2 -0
- package/dist/runtime/components/__types/index.mjs +2 -0
- package/dist/runtime/components/buttons/AntButton.vue +227 -0
- package/dist/runtime/components/buttons/AntCreateButton.vue +32 -0
- package/dist/runtime/components/buttons/AntDeleteButton.vue +32 -0
- package/dist/runtime/components/buttons/AntSaveAndNewButton.vue +32 -0
- package/dist/runtime/components/buttons/AntSaveButton.vue +31 -0
- package/dist/runtime/components/buttons/__stories/AntButton.stories.d.ts +15 -0
- package/dist/runtime/components/buttons/__stories/AntButton.stories.mjs +272 -0
- package/dist/runtime/components/buttons/__stories/AntCreateButton.stories.d.ts +10 -0
- package/dist/runtime/components/buttons/__stories/AntCreateButton.stories.mjs +57 -0
- package/dist/runtime/components/buttons/__stories/AntDeleteButton.stories.d.ts +10 -0
- package/dist/runtime/components/buttons/__stories/AntDeleteButton.stories.mjs +57 -0
- package/dist/runtime/components/buttons/__stories/AntSaveAndNewButton.stories.d.ts +10 -0
- package/dist/runtime/components/buttons/__stories/AntSaveAndNewButton.stories.mjs +57 -0
- package/dist/runtime/components/buttons/__stories/AntSaveButton.stories.d.ts +10 -0
- package/dist/runtime/components/buttons/__stories/AntSaveButton.stories.mjs +57 -0
- package/dist/runtime/components/buttons/__types/AntButton.type.d.ts +4 -0
- package/dist/runtime/components/buttons/__types/AntButton.type.mjs +5 -0
- package/dist/runtime/components/buttons/__types/index.d.ts +1 -0
- package/dist/runtime/components/buttons/__types/index.mjs +1 -0
- package/dist/runtime/components/crud/AntCrud.vue +42 -0
- package/dist/runtime/components/crud/AntCrudDetail.vue +11 -0
- package/dist/runtime/components/crud/AntCrudDetailActions.vue +51 -0
- package/dist/runtime/components/crud/AntCrudDetailNav.vue +51 -0
- package/dist/runtime/components/crud/AntCrudTableFilter.vue +120 -0
- package/dist/runtime/components/crud/AntCrudTableNav.vue +129 -0
- package/dist/runtime/components/crud/__stories/AntCrud.stories.d.ts +6 -0
- package/dist/runtime/components/crud/__stories/AntCrud.stories.mjs +126 -0
- package/dist/runtime/components/crud/__stories/AntCrudDetail.stories.d.ts +7 -0
- package/dist/runtime/components/crud/__stories/AntCrudDetail.stories.mjs +80 -0
- package/dist/runtime/components/crud/__stories/AntCrudDetailActions.stories.d.ts +6 -0
- package/dist/runtime/components/crud/__stories/AntCrudDetailActions.stories.mjs +25 -0
- package/dist/runtime/components/crud/__stories/AntCrudDetailNav.stories.d.ts +6 -0
- package/dist/runtime/components/crud/__stories/AntCrudDetailNav.stories.mjs +41 -0
- package/dist/runtime/components/crud/__stories/AntCrudTableFilter.stories.d.ts +6 -0
- package/dist/runtime/components/crud/__stories/AntCrudTableFilter.stories.mjs +25 -0
- package/dist/runtime/components/crud/__stories/AntCrudTableNav.stories.d.ts +8 -0
- package/dist/runtime/components/crud/__stories/AntCrudTableNav.stories.mjs +56 -0
- package/dist/runtime/components/dialogs/AntDeleteDialog.vue +29 -0
- package/dist/runtime/components/dialogs/AntDialog.vue +147 -0
- package/dist/runtime/components/dialogs/__stories/AndDeleteDialog.stories.d.ts +6 -0
- package/dist/runtime/components/dialogs/__stories/AndDeleteDialog.stories.mjs +30 -0
- package/dist/runtime/components/dialogs/__stories/AntDialog.stories.d.ts +6 -0
- package/dist/runtime/components/dialogs/__stories/AntDialog.stories.mjs +60 -0
- package/dist/runtime/components/form/AntCheckboxWidget/AntCheckbox.vue +145 -0
- package/dist/runtime/components/form/AntCheckboxWidget/AntCheckboxGroup.vue +91 -0
- package/dist/runtime/components/form/AntCheckboxWidget/__stories/AntCheckbox.stories.d.ts +8 -0
- package/dist/runtime/components/form/AntCheckboxWidget/__stories/AntCheckbox.stories.mjs +286 -0
- package/dist/runtime/components/form/AntCheckboxWidget/__stories/AntCheckboxGroup.stories.d.ts +7 -0
- package/dist/runtime/components/form/AntCheckboxWidget/__stories/AntCheckboxGroup.stories.mjs +96 -0
- package/dist/runtime/components/form/AntCheckboxWidget/__types/AntCheckbox.d.ts +6 -0
- package/dist/runtime/components/form/AntCheckboxWidget/__types/AntCheckbox.mjs +0 -0
- package/dist/runtime/components/form/AntFormGroup.vue +21 -0
- package/dist/runtime/components/form/AntFormGroupLabel.vue +5 -0
- package/dist/runtime/components/form/AntNumberInput.vue +170 -0
- package/dist/runtime/components/form/AntRadioWidget/AntRadio.vue +139 -0
- package/dist/runtime/components/form/AntRadioWidget/AntRadioGroup.vue +80 -0
- package/dist/runtime/components/form/AntRadioWidget/__stories/AntRadio.stories.d.ts +8 -0
- package/dist/runtime/components/form/AntRadioWidget/__stories/AntRadio.stories.mjs +79 -0
- package/dist/runtime/components/form/AntRadioWidget/__stories/AntRadioGroup.stories.d.ts +8 -0
- package/dist/runtime/components/form/AntRadioWidget/__stories/AntRadioGroup.stories.mjs +125 -0
- package/dist/runtime/components/form/AntRadioWidget/__types/AntRadio.type.d.ts +9 -0
- package/dist/runtime/components/form/AntRadioWidget/__types/AntRadio.type.mjs +0 -0
- package/dist/runtime/components/form/AntRangeSlider.vue +81 -0
- package/dist/runtime/components/form/AntRichTextEditor.vue +237 -0
- package/dist/runtime/components/form/AntSearch.vue +76 -0
- package/dist/runtime/components/form/AntSelect.vue +346 -0
- package/dist/runtime/components/form/AntSwitch.vue +145 -0
- package/dist/runtime/components/form/AntSwitcher.vue +184 -0
- package/dist/runtime/components/form/AntTextInput.vue +73 -0
- package/dist/runtime/components/form/AntTextarea.vue +170 -0
- package/dist/runtime/components/form/AntUnitInput.vue +99 -0
- package/dist/runtime/components/form/Elements/AntBaseInput.vue +216 -0
- package/dist/runtime/components/form/Elements/AntDropDown.vue +160 -0
- package/dist/runtime/components/form/Elements/AntField.vue +102 -0
- package/dist/runtime/components/form/Elements/AntInputDescription.vue +55 -0
- package/dist/runtime/components/form/Elements/AntInputLabel.vue +55 -0
- package/dist/runtime/components/form/Elements/AntInputLimiter.vue +55 -0
- package/dist/runtime/components/form/Elements/__stories/AntBaseInput.stories.d.ts +9 -0
- package/dist/runtime/components/form/Elements/__stories/AntBaseInput.stories.mjs +168 -0
- package/dist/runtime/components/form/Elements/__stories/AntField.stories.d.ts +6 -0
- package/dist/runtime/components/form/Elements/__stories/AntField.stories.mjs +80 -0
- package/dist/runtime/components/form/Elements/__stories/AntInputDescription.stories.d.ts +6 -0
- package/dist/runtime/components/form/Elements/__stories/AntInputDescription.stories.mjs +34 -0
- package/dist/runtime/components/form/Elements/__stories/AntInputLabel.stories.d.ts +7 -0
- package/dist/runtime/components/form/Elements/__stories/AntInputLabel.stories.mjs +46 -0
- package/dist/runtime/components/form/Elements/__stories/AntInputLimiter.stories.d.ts +6 -0
- package/dist/runtime/components/form/Elements/__stories/AntInputLimiter.stories.mjs +37 -0
- package/dist/runtime/components/form/Elements/__types/AntBaseInput.type.d.ts +16 -0
- package/dist/runtime/components/form/Elements/__types/AntBaseInput.type.mjs +17 -0
- package/dist/runtime/components/form/Elements/__types/index.d.ts +1 -0
- package/dist/runtime/components/form/Elements/__types/index.mjs +1 -0
- package/dist/runtime/components/form/Elements/index.d.ts +6 -0
- package/dist/runtime/components/form/Elements/index.mjs +12 -0
- package/dist/runtime/components/form/__stories/AntFormGroup.stories.d.ts +6 -0
- package/dist/runtime/components/form/__stories/AntFormGroup.stories.mjs +33 -0
- package/dist/runtime/components/form/__stories/AntFormGroupLabel.stories.d.ts +6 -0
- package/dist/runtime/components/form/__stories/AntFormGroupLabel.stories.mjs +20 -0
- package/dist/runtime/components/form/__stories/AntNumberInput.stories.d.ts +7 -0
- package/dist/runtime/components/form/__stories/AntNumberInput.stories.mjs +67 -0
- package/dist/runtime/components/form/__stories/AntRangeSlider.stories.d.ts +6 -0
- package/dist/runtime/components/form/__stories/AntRangeSlider.stories.mjs +40 -0
- package/dist/runtime/components/form/__stories/AntRichTextEditor.stories-old.d.ts +0 -0
- package/dist/runtime/components/form/__stories/AntRichTextEditor.stories-old.mjs +0 -0
- package/dist/runtime/components/form/__stories/AntSearch.stories.d.ts +6 -0
- package/dist/runtime/components/form/__stories/AntSearch.stories.mjs +43 -0
- package/dist/runtime/components/form/__stories/AntSelect.stories.d.ts +13 -0
- package/dist/runtime/components/form/__stories/AntSelect.stories.mjs +220 -0
- package/dist/runtime/components/form/__stories/AntSwitch.stories.d.ts +8 -0
- package/dist/runtime/components/form/__stories/AntSwitch.stories.mjs +215 -0
- package/dist/runtime/components/form/__stories/AntSwitcher.stories.d.ts +8 -0
- package/dist/runtime/components/form/__stories/AntSwitcher.stories.mjs +225 -0
- package/dist/runtime/components/form/__stories/AntTextInput.stories.d.ts +7 -0
- package/dist/runtime/components/form/__stories/AntTextInput.stories.mjs +68 -0
- package/dist/runtime/components/form/__stories/AntTextarea.stories.d.ts +8 -0
- package/dist/runtime/components/form/__stories/AntTextarea.stories.mjs +128 -0
- package/dist/runtime/components/form/__stories/AntUnitInput.stories.d.ts +8 -0
- package/dist/runtime/components/form/__stories/AntUnitInput.stories.mjs +84 -0
- package/dist/runtime/components/form/__types/AntSelect.type.d.ts +4 -0
- package/dist/runtime/components/form/__types/AntSelect.type.mjs +0 -0
- package/dist/runtime/components/form/__types/AntSwitcher.type.d.ts +4 -0
- package/dist/runtime/components/form/__types/AntSwitcher.type.mjs +0 -0
- package/dist/runtime/components/form/__types/AntTextInput.type.d.ts +7 -0
- package/dist/runtime/components/form/__types/AntTextInput.type.mjs +8 -0
- package/dist/runtime/components/form/__types/index.d.ts +3 -0
- package/dist/runtime/components/form/__types/index.mjs +3 -0
- package/dist/runtime/components/form/index.d.ts +11 -0
- package/dist/runtime/components/form/index.mjs +22 -0
- package/dist/runtime/components/index.d.ts +22 -0
- package/dist/runtime/components/index.mjs +41 -0
- package/dist/runtime/components/layouts/AntNavLeftLayout.vue +36 -0
- package/dist/runtime/components/layouts/__stories/AntNavLeftLayout.stories.d.ts +7 -0
- package/dist/runtime/components/layouts/__stories/AntNavLeftLayout.stories.mjs +68 -0
- package/dist/runtime/components/navbar/AntNavbar.vue +25 -0
- package/dist/runtime/components/navbar/AntNavbarItem.vue +78 -0
- package/dist/runtime/components/navbar/__stories/AntNavbar.stories.d.ts +6 -0
- package/dist/runtime/components/navbar/__stories/AntNavbar.stories.mjs +66 -0
- package/dist/runtime/components/navbar/__types/NavbarItem.d.ts +10 -0
- package/dist/runtime/components/navbar/__types/NavbarItem.mjs +0 -0
- package/dist/runtime/components/table/AntTable.vue +192 -0
- package/dist/runtime/components/table/AntTableSortButton.vue +26 -0
- package/dist/runtime/components/table/AntTd.vue +70 -0
- package/dist/runtime/components/table/AntTh.vue +67 -0
- package/dist/runtime/components/table/__stories/AntTable.stories.d.ts +9 -0
- package/dist/runtime/components/table/__stories/AntTable.stories.mjs +274 -0
- package/dist/runtime/components/table/__types/TableHeader.type.d.ts +31 -0
- package/dist/runtime/components/table/__types/TableHeader.type.mjs +19 -0
- package/dist/runtime/components/tabs/AntTabItem.vue +115 -0
- package/dist/runtime/components/tabs/AntTabs.vue +47 -0
- package/dist/runtime/components/tabs/__stories/AntTabItem.stories.d.ts +6 -0
- package/dist/runtime/components/tabs/__stories/AntTabItem.stories.mjs +32 -0
- package/dist/runtime/components/tabs/__stories/AntTabs.stories.d.ts +9 -0
- package/dist/runtime/components/tabs/__stories/AntTabs.stories.mjs +173 -0
- package/dist/runtime/components/tabs/__types/AntTabItem.types.d.ts +17 -0
- package/dist/runtime/components/tabs/__types/AntTabItem.types.mjs +6 -0
- package/dist/runtime/components/transitions/AntTransitionCollapseHeight.vue +92 -0
- package/dist/runtime/composables/useUi.d.ts +20 -0
- package/dist/runtime/composables/useUi.mjs +31 -0
- package/dist/runtime/composables/useUiClient.d.ts +34 -0
- package/dist/runtime/composables/useUiClient.mjs +61 -0
- package/dist/runtime/composables/useValidator.d.ts +1 -0
- package/dist/runtime/composables/useValidator.mjs +1 -0
- package/dist/runtime/enums/ColorType.enum.d.ts +16 -0
- package/dist/runtime/enums/ColorType.enum.mjs +18 -0
- package/dist/runtime/enums/Direction.enum.d.ts +4 -0
- package/dist/runtime/enums/Direction.enum.mjs +5 -0
- package/dist/runtime/enums/Grouped.enum.d.ts +6 -0
- package/dist/runtime/enums/Grouped.enum.mjs +7 -0
- package/dist/runtime/enums/Position.enum.d.ts +12 -0
- package/dist/runtime/enums/Position.enum.mjs +14 -0
- package/dist/runtime/enums/Size.enum.d.ts +4 -0
- package/dist/runtime/enums/Size.enum.mjs +5 -0
- package/dist/runtime/enums/index.d.ts +4 -0
- package/dist/runtime/enums/index.mjs +4 -0
- package/dist/runtime/env.d.ts +8 -0
- package/dist/runtime/handler.d.ts +1 -0
- package/dist/runtime/handler.mjs +5 -0
- package/dist/runtime/plugins/toaster.d.ts +22 -0
- package/dist/runtime/plugins/toaster.mjs +53 -0
- package/dist/runtime/plugins/ui-module.d.ts +2 -0
- package/dist/runtime/plugins/ui-module.mjs +13 -0
- package/dist/runtime/shims/vue.d.ts +5 -0
- package/dist/runtime/tailwind.config.d.ts +182 -0
- package/dist/runtime/tailwind.config.mjs +196 -0
- package/dist/runtime/types/AntListGroupItem.type.d.ts +11 -0
- package/dist/runtime/types/AntListGroupItem.type.mjs +12 -0
- package/dist/runtime/types/AntTag.type.d.ts +8 -0
- package/dist/runtime/types/AntTag.type.mjs +9 -0
- package/dist/runtime/types/Checkbox.type.d.ts +8 -0
- package/dist/runtime/types/Checkbox.type.mjs +0 -0
- package/dist/runtime/types/NavItem.type.d.ts +9 -0
- package/dist/runtime/types/NavItem.type.mjs +0 -0
- package/dist/runtime/types/RadioButton.type.d.ts +5 -0
- package/dist/runtime/types/RadioButton.type.mjs +0 -0
- package/dist/runtime/types/Tabs.type.d.ts +6 -0
- package/dist/runtime/types/Tabs.type.mjs +0 -0
- package/dist/runtime/types/Toaster.type.d.ts +6 -0
- package/dist/runtime/types/Toaster.type.mjs +0 -0
- package/dist/runtime/types/index.d.ts +7 -0
- package/dist/runtime/types/index.mjs +7 -0
- package/dist/runtime/types.d.ts +7 -0
- package/dist/runtime/types.mjs +7 -0
- package/dist/runtime/utils/helper.d.ts +4 -0
- package/dist/runtime/utils/helper.mjs +12 -0
- package/dist/runtime/utils.d.ts +14 -0
- package/dist/runtime/utils.mjs +20 -0
- package/dist/types.d.mts +8 -0
- package/dist/types.d.ts +8 -0
- package/package.json +81 -0
- package/src/runtime/components/AntAccordion.vue +59 -0
- package/src/runtime/components/AntAccordionItem.vue +104 -0
- package/src/runtime/components/AntAlert.vue +137 -0
- package/src/runtime/components/AntDropdown.vue +100 -0
- package/src/runtime/components/AntIcon.vue +51 -0
- package/src/runtime/components/AntKeycap.vue +24 -0
- package/src/runtime/components/AntListGroup.vue +24 -0
- package/src/runtime/components/AntListGroupItem.vue +81 -0
- package/src/runtime/components/AntModal.vue +129 -0
- package/src/runtime/components/AntPagination.vue +201 -0
- package/src/runtime/components/AntPopover.vue +133 -0
- package/src/runtime/components/AntSkeleton.vue +38 -0
- package/src/runtime/components/AntSpinner.vue +95 -0
- package/src/runtime/components/AntTag.vue +79 -0
- package/src/runtime/components/AntToast.vue +109 -0
- package/src/runtime/components/AntToaster.vue +71 -0
- package/src/runtime/components/AntTooltip.vue +165 -0
- package/src/runtime/components/buttons/AntButton.vue +227 -0
- package/src/runtime/components/buttons/AntCreateButton.vue +32 -0
- package/src/runtime/components/buttons/AntDeleteButton.vue +32 -0
- package/src/runtime/components/buttons/AntSaveAndNewButton.vue +32 -0
- package/src/runtime/components/buttons/AntSaveButton.vue +31 -0
- package/src/runtime/components/crud/AntCrud.vue +66 -0
- package/src/runtime/components/crud/AntCrudDetail.vue +11 -0
- package/src/runtime/components/crud/AntCrudDetailActions.vue +51 -0
- package/src/runtime/components/crud/AntCrudDetailNav.vue +51 -0
- package/src/runtime/components/crud/AntCrudTableFilter.vue +120 -0
- package/src/runtime/components/crud/AntCrudTableNav.vue +129 -0
- package/src/runtime/components/dialogs/AntDeleteDialog.vue +29 -0
- package/src/runtime/components/dialogs/AntDialog.vue +181 -0
- package/src/runtime/components/form/AntCheckboxWidget/AntCheckbox.vue +167 -0
- package/src/runtime/components/form/AntCheckboxWidget/AntCheckboxGroup.vue +91 -0
- package/src/runtime/components/form/AntFormGroup.vue +21 -0
- package/src/runtime/components/form/AntFormGroupLabel.vue +5 -0
- package/src/runtime/components/form/AntNumberInput.vue +170 -0
- package/src/runtime/components/form/AntRadioWidget/AntRadio.vue +164 -0
- package/src/runtime/components/form/AntRadioWidget/AntRadioGroup.vue +80 -0
- package/src/runtime/components/form/AntRangeSlider.vue +101 -0
- package/src/runtime/components/form/AntRichTextEditor.vue +237 -0
- package/src/runtime/components/form/AntSearch.vue +76 -0
- package/src/runtime/components/form/AntSelect.vue +346 -0
- package/src/runtime/components/form/AntSwitch.vue +145 -0
- package/src/runtime/components/form/AntSwitcher.vue +200 -0
- package/src/runtime/components/form/AntTextInput.vue +73 -0
- package/src/runtime/components/form/AntTextarea.vue +170 -0
- package/src/runtime/components/form/AntUnitInput.vue +99 -0
- package/src/runtime/components/form/Elements/AntBaseInput.vue +247 -0
- package/src/runtime/components/form/Elements/AntDropDown.vue +160 -0
- package/src/runtime/components/form/Elements/AntField.vue +102 -0
- package/src/runtime/components/form/Elements/AntInputDescription.vue +55 -0
- package/src/runtime/components/form/Elements/AntInputLabel.vue +55 -0
- package/src/runtime/components/form/Elements/AntInputLimiter.vue +55 -0
- package/src/runtime/components/layouts/AntNavLeftLayout.vue +36 -0
- package/src/runtime/components/navbar/AntNavbar.vue +25 -0
- package/src/runtime/components/navbar/AntNavbarItem.vue +78 -0
- package/src/runtime/components/table/AntTable.vue +192 -0
- package/src/runtime/components/table/AntTableSortButton.vue +26 -0
- package/src/runtime/components/table/AntTd.vue +70 -0
- package/src/runtime/components/table/AntTh.vue +67 -0
- package/src/runtime/components/tabs/AntTabItem.vue +115 -0
- package/src/runtime/components/tabs/AntTabs.vue +47 -0
- package/src/runtime/components/transitions/AntTransitionCollapseHeight.vue +96 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 antify
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Ui module
|
|
2
|
+
|
|
3
|
+
The antify ui module is a nuxt component library for applications based on tailwindcss.
|
|
4
|
+
|
|
5
|
+
Compared to other component libraries, antify ui ships a fixed defined ux.
|
|
6
|
+
It also provides a set of helper functions to easly implement that ux.
|
|
7
|
+
|
|
8
|
+
The predefined ux defines, for example, what should happen if a requested
|
|
9
|
+
entry is not found.
|
|
10
|
+
|
|
11
|
+
The ux definitions you can find in the repo's wiki.
|
|
12
|
+
|
|
13
|
+
# Development
|
|
14
|
+
|
|
15
|
+
- Run `pnpm run dev:prepare` to generate type stubs.
|
|
16
|
+
- Use `pnpm run dev` to start [playground](playground) in development mode.
|
|
17
|
+
|
|
18
|
+
# Storybook
|
|
19
|
+
## Start
|
|
20
|
+
```
|
|
21
|
+
pnpm storybook
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Build
|
|
25
|
+
```
|
|
26
|
+
pnpm build-storybook
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Update Chromatic Build
|
|
30
|
+
```
|
|
31
|
+
pnpm chromatic
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Useful links:
|
|
35
|
+
|
|
36
|
+
- Chromatic docu: https://www.chromatic.com/docs/
|
|
37
|
+
- Storybook docu: https://storybook.js.org/docs/vue/get-started/introduction
|
|
38
|
+
|
|
39
|
+
# Additional
|
|
40
|
+
|
|
41
|
+
## SSR
|
|
42
|
+
SSR is not included in the UX definition, because applications does not require SSR.
|
|
43
|
+
To keep the UX as simple as possible, we decided to not support SSR.
|
|
44
|
+
|
|
45
|
+
# Known issues
|
|
46
|
+
|
|
47
|
+
## Using this module as pnpm linked dependency
|
|
48
|
+
|
|
49
|
+
Pnpm link does not work for local development, because the tailwindcss module can not
|
|
50
|
+
get installed outside of this project. An error "Cannot find module 'tailwindcss'" will be thrown.
|
|
51
|
+
|
|
52
|
+
Use file link instead:
|
|
53
|
+
```
|
|
54
|
+
"peerDependecies": {
|
|
55
|
+
"@antify/ui-module": "file:../ui-module"
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Keep in mind to reinstall the module after every change.
|
|
60
|
+
|
|
61
|
+
Also add the following to your `nuxt.config.ts`:
|
|
62
|
+
```
|
|
63
|
+
/**
|
|
64
|
+
* Allow using packages outside the project dir with "link:../../example-package".
|
|
65
|
+
* Without strict, vite would throw 403 error.
|
|
66
|
+
*/
|
|
67
|
+
vite: {
|
|
68
|
+
server: {
|
|
69
|
+
fs: {
|
|
70
|
+
strict: false,
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
```
|
package/dist/module.cjs
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { NuxtModule } from 'nuxt/schema';
|
|
2
|
+
|
|
3
|
+
declare enum ColorType {
|
|
4
|
+
base = "base",
|
|
5
|
+
primary = "primary",
|
|
6
|
+
secondary = "secondary",
|
|
7
|
+
danger = "danger",
|
|
8
|
+
info = "info",
|
|
9
|
+
success = "success",
|
|
10
|
+
warning = "warning"
|
|
11
|
+
}
|
|
12
|
+
declare enum InputColorType {
|
|
13
|
+
base = "base",
|
|
14
|
+
danger = "danger",
|
|
15
|
+
info = "info",
|
|
16
|
+
success = "success",
|
|
17
|
+
warning = "warning"
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare enum Grouped {
|
|
21
|
+
none = "none",
|
|
22
|
+
left = "left",
|
|
23
|
+
center = "center",
|
|
24
|
+
right = "right"
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare enum Position {
|
|
28
|
+
top = "top",
|
|
29
|
+
right = "right",
|
|
30
|
+
bottom = "bottom",
|
|
31
|
+
left = "left"
|
|
32
|
+
}
|
|
33
|
+
declare enum CornerPosition {
|
|
34
|
+
topLeft = "topLeft",
|
|
35
|
+
topRight = "topRight",
|
|
36
|
+
bottomRight = "bottomRight",
|
|
37
|
+
bottomLeft = "bottomLeft"
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare enum Size {
|
|
41
|
+
sm = "sm",
|
|
42
|
+
md = "md"
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare enum CollapseStrategy {
|
|
46
|
+
single = "single",
|
|
47
|
+
multiple = "multiple"
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare enum IconSize {
|
|
51
|
+
sm = "sm",
|
|
52
|
+
md = "md",
|
|
53
|
+
xl3 = "3xl"
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare enum AntTableRowTypes {
|
|
57
|
+
text = "text",
|
|
58
|
+
html = "html",
|
|
59
|
+
link = "link",
|
|
60
|
+
slot = "slot"
|
|
61
|
+
}
|
|
62
|
+
declare enum AntTableAlign {
|
|
63
|
+
left = "left",
|
|
64
|
+
center = "center",
|
|
65
|
+
right = "right"
|
|
66
|
+
}
|
|
67
|
+
declare enum AntTableSortDirection {
|
|
68
|
+
asc = "asc",
|
|
69
|
+
desc = "desc",
|
|
70
|
+
neutral = "neutral"
|
|
71
|
+
}
|
|
72
|
+
type TableHeader = {
|
|
73
|
+
identifier: string;
|
|
74
|
+
title?: string;
|
|
75
|
+
type: AntTableRowTypes;
|
|
76
|
+
sortable?: boolean;
|
|
77
|
+
sort?: (a: unknown, b: unknown, direction: AntTableSortDirection) => number;
|
|
78
|
+
headerClassList?: string;
|
|
79
|
+
rowClassList?: string;
|
|
80
|
+
align?: AntTableAlign;
|
|
81
|
+
toProp?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Emit if the column should be shown on light table version.
|
|
84
|
+
*/
|
|
85
|
+
lightVersion?: boolean;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
type SelectOption = {
|
|
89
|
+
label: string;
|
|
90
|
+
value: string | number;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
type SwitcherOption = {
|
|
94
|
+
label: string;
|
|
95
|
+
value: string | number;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
declare enum TextInputType {
|
|
99
|
+
email = "email",
|
|
100
|
+
password = "password",
|
|
101
|
+
tel = "tel",
|
|
102
|
+
text = "text",
|
|
103
|
+
url = "url"
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
declare enum ButtonType {
|
|
107
|
+
button = "button",
|
|
108
|
+
submit = "submit"
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
declare enum BaseInputType {
|
|
112
|
+
date = "date",
|
|
113
|
+
datetime = "datetime",
|
|
114
|
+
email = "email",
|
|
115
|
+
hidden = "hidden",
|
|
116
|
+
month = "month",
|
|
117
|
+
number = "number",
|
|
118
|
+
password = "password",
|
|
119
|
+
search = "search",
|
|
120
|
+
tel = "tel",
|
|
121
|
+
text = "text",
|
|
122
|
+
time = "time",
|
|
123
|
+
url = "url",
|
|
124
|
+
week = "week",
|
|
125
|
+
range = "range"
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
type ModuleOptions = {};
|
|
129
|
+
declare const module: NuxtModule<ModuleOptions>;
|
|
130
|
+
|
|
131
|
+
export { AntTableAlign, AntTableRowTypes, AntTableSortDirection, BaseInputType, ButtonType, CollapseStrategy, ColorType, CornerPosition, Grouped, IconSize, InputColorType, Position, type SelectOption, Size, type SwitcherOption, type TableHeader, TextInputType, module as default };
|
package/dist/module.d.ts
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { NuxtModule } from 'nuxt/schema';
|
|
2
|
+
|
|
3
|
+
declare enum ColorType {
|
|
4
|
+
base = "base",
|
|
5
|
+
primary = "primary",
|
|
6
|
+
secondary = "secondary",
|
|
7
|
+
danger = "danger",
|
|
8
|
+
info = "info",
|
|
9
|
+
success = "success",
|
|
10
|
+
warning = "warning"
|
|
11
|
+
}
|
|
12
|
+
declare enum InputColorType {
|
|
13
|
+
base = "base",
|
|
14
|
+
danger = "danger",
|
|
15
|
+
info = "info",
|
|
16
|
+
success = "success",
|
|
17
|
+
warning = "warning"
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare enum Grouped {
|
|
21
|
+
none = "none",
|
|
22
|
+
left = "left",
|
|
23
|
+
center = "center",
|
|
24
|
+
right = "right"
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare enum Position {
|
|
28
|
+
top = "top",
|
|
29
|
+
right = "right",
|
|
30
|
+
bottom = "bottom",
|
|
31
|
+
left = "left"
|
|
32
|
+
}
|
|
33
|
+
declare enum CornerPosition {
|
|
34
|
+
topLeft = "topLeft",
|
|
35
|
+
topRight = "topRight",
|
|
36
|
+
bottomRight = "bottomRight",
|
|
37
|
+
bottomLeft = "bottomLeft"
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare enum Size {
|
|
41
|
+
sm = "sm",
|
|
42
|
+
md = "md"
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare enum CollapseStrategy {
|
|
46
|
+
single = "single",
|
|
47
|
+
multiple = "multiple"
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare enum IconSize {
|
|
51
|
+
sm = "sm",
|
|
52
|
+
md = "md",
|
|
53
|
+
xl3 = "3xl"
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare enum AntTableRowTypes {
|
|
57
|
+
text = "text",
|
|
58
|
+
html = "html",
|
|
59
|
+
link = "link",
|
|
60
|
+
slot = "slot"
|
|
61
|
+
}
|
|
62
|
+
declare enum AntTableAlign {
|
|
63
|
+
left = "left",
|
|
64
|
+
center = "center",
|
|
65
|
+
right = "right"
|
|
66
|
+
}
|
|
67
|
+
declare enum AntTableSortDirection {
|
|
68
|
+
asc = "asc",
|
|
69
|
+
desc = "desc",
|
|
70
|
+
neutral = "neutral"
|
|
71
|
+
}
|
|
72
|
+
type TableHeader = {
|
|
73
|
+
identifier: string;
|
|
74
|
+
title?: string;
|
|
75
|
+
type: AntTableRowTypes;
|
|
76
|
+
sortable?: boolean;
|
|
77
|
+
sort?: (a: unknown, b: unknown, direction: AntTableSortDirection) => number;
|
|
78
|
+
headerClassList?: string;
|
|
79
|
+
rowClassList?: string;
|
|
80
|
+
align?: AntTableAlign;
|
|
81
|
+
toProp?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Emit if the column should be shown on light table version.
|
|
84
|
+
*/
|
|
85
|
+
lightVersion?: boolean;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
type SelectOption = {
|
|
89
|
+
label: string;
|
|
90
|
+
value: string | number;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
type SwitcherOption = {
|
|
94
|
+
label: string;
|
|
95
|
+
value: string | number;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
declare enum TextInputType {
|
|
99
|
+
email = "email",
|
|
100
|
+
password = "password",
|
|
101
|
+
tel = "tel",
|
|
102
|
+
text = "text",
|
|
103
|
+
url = "url"
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
declare enum ButtonType {
|
|
107
|
+
button = "button",
|
|
108
|
+
submit = "submit"
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
declare enum BaseInputType {
|
|
112
|
+
date = "date",
|
|
113
|
+
datetime = "datetime",
|
|
114
|
+
email = "email",
|
|
115
|
+
hidden = "hidden",
|
|
116
|
+
month = "month",
|
|
117
|
+
number = "number",
|
|
118
|
+
password = "password",
|
|
119
|
+
search = "search",
|
|
120
|
+
tel = "tel",
|
|
121
|
+
text = "text",
|
|
122
|
+
time = "time",
|
|
123
|
+
url = "url",
|
|
124
|
+
week = "week",
|
|
125
|
+
range = "range"
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
type ModuleOptions = {};
|
|
129
|
+
declare const module: NuxtModule<ModuleOptions>;
|
|
130
|
+
|
|
131
|
+
export { AntTableAlign, AntTableRowTypes, AntTableSortDirection, BaseInputType, ButtonType, CollapseStrategy, ColorType, CornerPosition, Grouped, IconSize, InputColorType, Position, type SelectOption, Size, type SwitcherOption, type TableHeader, TextInputType, module as default };
|