@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
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { defineNuxtPlugin } from "#app";
|
|
2
|
+
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
|
3
|
+
import toaster from "./toaster.mjs";
|
|
4
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
5
|
+
nuxtApp.vueApp.component("fa-icon", FontAwesomeIcon);
|
|
6
|
+
return {
|
|
7
|
+
provide: {
|
|
8
|
+
uiModule: {
|
|
9
|
+
toaster: toaster()
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
});
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/** @type {import('tailwindcss').Config} */
|
|
2
|
+
declare const _default: {
|
|
3
|
+
content: string[];
|
|
4
|
+
theme: {
|
|
5
|
+
colors: {
|
|
6
|
+
'for-white-bg-font': any;
|
|
7
|
+
'for-black-bg-font': any;
|
|
8
|
+
'neutral-50-font': any;
|
|
9
|
+
'neutral-100-font': any;
|
|
10
|
+
'neutral-200-font': any;
|
|
11
|
+
'neutral-300-font': any;
|
|
12
|
+
'neutral-400-font': any;
|
|
13
|
+
'neutral-500-font': any;
|
|
14
|
+
'neutral-600-font': any;
|
|
15
|
+
'neutral-700-font': any;
|
|
16
|
+
'neutral-800-font': any;
|
|
17
|
+
'neutral-900-font': any;
|
|
18
|
+
'neutral-950-font': any;
|
|
19
|
+
'primary-50-font': any;
|
|
20
|
+
'primary-100-font': any;
|
|
21
|
+
'primary-200-font': any;
|
|
22
|
+
'primary-300-font': any;
|
|
23
|
+
'primary-400-font': any;
|
|
24
|
+
'primary-500-font': any;
|
|
25
|
+
'primary-600-font': any;
|
|
26
|
+
'primary-700-font': any;
|
|
27
|
+
'primary-800-font': any;
|
|
28
|
+
'primary-900-font': any;
|
|
29
|
+
'primary-950-font': any;
|
|
30
|
+
'secondary-50-font': any;
|
|
31
|
+
'secondary-100-font': any;
|
|
32
|
+
'secondary-200-font': any;
|
|
33
|
+
'secondary-300-font': any;
|
|
34
|
+
'secondary-400-font': any;
|
|
35
|
+
'secondary-500-font': any;
|
|
36
|
+
'secondary-600-font': any;
|
|
37
|
+
'secondary-700-font': any;
|
|
38
|
+
'secondary-800-font': any;
|
|
39
|
+
'secondary-900-font': any;
|
|
40
|
+
'secondary-950-font': any;
|
|
41
|
+
'success-50-font': any;
|
|
42
|
+
'success-100-font': any;
|
|
43
|
+
'success-200-font': any;
|
|
44
|
+
'success-300-font': any;
|
|
45
|
+
'success-400-font': any;
|
|
46
|
+
'success-500-font': any;
|
|
47
|
+
'success-600-font': any;
|
|
48
|
+
'success-700-font': any;
|
|
49
|
+
'success-800-font': any;
|
|
50
|
+
'success-900-font': any;
|
|
51
|
+
'success-950-font': any;
|
|
52
|
+
'info-50-font': any;
|
|
53
|
+
'info-100-font': any;
|
|
54
|
+
'info-200-font': any;
|
|
55
|
+
'info-300-font': any;
|
|
56
|
+
'info-400-font': any;
|
|
57
|
+
'info-500-font': any;
|
|
58
|
+
'info-600-font': any;
|
|
59
|
+
'info-700-font': any;
|
|
60
|
+
'info-800-font': any;
|
|
61
|
+
'info-900-font': any;
|
|
62
|
+
'info-950-font': any;
|
|
63
|
+
'warning-50-font': any;
|
|
64
|
+
'warning-100-font': any;
|
|
65
|
+
'warning-200-font': any;
|
|
66
|
+
'warning-300-font': any;
|
|
67
|
+
'warning-400-font': any;
|
|
68
|
+
'warning-500-font': any;
|
|
69
|
+
'warning-600-font': any;
|
|
70
|
+
'warning-700-font': any;
|
|
71
|
+
'warning-800-font': any;
|
|
72
|
+
'warning-900-font': any;
|
|
73
|
+
'warning-950-font': any;
|
|
74
|
+
'danger-50-font': any;
|
|
75
|
+
'danger-100-font': any;
|
|
76
|
+
'danger-200-font': any;
|
|
77
|
+
'danger-300-font': any;
|
|
78
|
+
'danger-400-font': any;
|
|
79
|
+
'danger-500-font': any;
|
|
80
|
+
'danger-600-font': any;
|
|
81
|
+
'danger-700-font': any;
|
|
82
|
+
'danger-800-font': any;
|
|
83
|
+
'danger-900-font': any;
|
|
84
|
+
'danger-950-font': any;
|
|
85
|
+
white: any;
|
|
86
|
+
black: any;
|
|
87
|
+
'neutral-50': any;
|
|
88
|
+
'neutral-100': any;
|
|
89
|
+
'neutral-200': any;
|
|
90
|
+
'neutral-300': any;
|
|
91
|
+
'neutral-400': any;
|
|
92
|
+
'neutral-500': any;
|
|
93
|
+
'neutral-600': any;
|
|
94
|
+
'neutral-700': any;
|
|
95
|
+
'neutral-800': any;
|
|
96
|
+
'neutral-900': any;
|
|
97
|
+
'neutral-950': any;
|
|
98
|
+
'primary-50': any;
|
|
99
|
+
'primary-100': any;
|
|
100
|
+
'primary-200': any;
|
|
101
|
+
'primary-300': any;
|
|
102
|
+
'primary-400': any;
|
|
103
|
+
'primary-500': any;
|
|
104
|
+
'primary-600': any;
|
|
105
|
+
'primary-700': any;
|
|
106
|
+
'primary-800': any;
|
|
107
|
+
'primary-900': any;
|
|
108
|
+
'primary-950': any;
|
|
109
|
+
'secondary-50': any;
|
|
110
|
+
'secondary-100': any;
|
|
111
|
+
'secondary-200': any;
|
|
112
|
+
'secondary-300': any;
|
|
113
|
+
'secondary-400': any;
|
|
114
|
+
'secondary-500': any;
|
|
115
|
+
'secondary-600': any;
|
|
116
|
+
'secondary-700': any;
|
|
117
|
+
'secondary-800': any;
|
|
118
|
+
'secondary-900': any;
|
|
119
|
+
'secondary-950': any;
|
|
120
|
+
'info-50': any;
|
|
121
|
+
'info-100': any;
|
|
122
|
+
'info-200': any;
|
|
123
|
+
'info-300': any;
|
|
124
|
+
'info-400': any;
|
|
125
|
+
'info-500': any;
|
|
126
|
+
'info-600': any;
|
|
127
|
+
'info-700': any;
|
|
128
|
+
'info-800': any;
|
|
129
|
+
'info-900': any;
|
|
130
|
+
'info-950': any;
|
|
131
|
+
'success-50': any;
|
|
132
|
+
'success-100': any;
|
|
133
|
+
'success-200': any;
|
|
134
|
+
'success-300': any;
|
|
135
|
+
'success-400': any;
|
|
136
|
+
'success-500': any;
|
|
137
|
+
'success-600': any;
|
|
138
|
+
'success-700': any;
|
|
139
|
+
'success-800': any;
|
|
140
|
+
'success-900': any;
|
|
141
|
+
'success-950': any;
|
|
142
|
+
'warning-50': any;
|
|
143
|
+
'warning-100': any;
|
|
144
|
+
'warning-200': any;
|
|
145
|
+
'warning-300': any;
|
|
146
|
+
'warning-400': any;
|
|
147
|
+
'warning-500': any;
|
|
148
|
+
'warning-600': any;
|
|
149
|
+
'warning-700': any;
|
|
150
|
+
'warning-800': any;
|
|
151
|
+
'warning-900': any;
|
|
152
|
+
'warning-950': any;
|
|
153
|
+
'danger-50': any;
|
|
154
|
+
'danger-100': any;
|
|
155
|
+
'danger-200': any;
|
|
156
|
+
'danger-300': any;
|
|
157
|
+
'danger-400': any;
|
|
158
|
+
'danger-500': any;
|
|
159
|
+
'danger-600': any;
|
|
160
|
+
'danger-700': any;
|
|
161
|
+
'danger-800': any;
|
|
162
|
+
'danger-900': any;
|
|
163
|
+
'danger-950': any;
|
|
164
|
+
};
|
|
165
|
+
extend: {
|
|
166
|
+
animation: {
|
|
167
|
+
skeleton: string;
|
|
168
|
+
};
|
|
169
|
+
keyframes: {
|
|
170
|
+
skeleton: {
|
|
171
|
+
'0%, 100%': {
|
|
172
|
+
'background-color': any;
|
|
173
|
+
};
|
|
174
|
+
'50%': {
|
|
175
|
+
'background-color': any;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
export default _default;
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import defaultColors from "tailwindcss/colors.js";
|
|
2
|
+
const colors = {
|
|
3
|
+
"white": defaultColors.white,
|
|
4
|
+
"black": defaultColors.black,
|
|
5
|
+
"neutral-50": defaultColors.slate["50"],
|
|
6
|
+
"neutral-100": defaultColors.slate["100"],
|
|
7
|
+
"neutral-200": defaultColors.slate["200"],
|
|
8
|
+
"neutral-300": defaultColors.slate["300"],
|
|
9
|
+
"neutral-400": defaultColors.slate["400"],
|
|
10
|
+
"neutral-500": defaultColors.slate["500"],
|
|
11
|
+
"neutral-600": defaultColors.slate["600"],
|
|
12
|
+
"neutral-700": defaultColors.slate["700"],
|
|
13
|
+
"neutral-800": defaultColors.slate["800"],
|
|
14
|
+
"neutral-900": defaultColors.slate["900"],
|
|
15
|
+
"neutral-950": defaultColors.slate["950"],
|
|
16
|
+
"primary-50": defaultColors.sky["50"],
|
|
17
|
+
"primary-100": defaultColors.sky["100"],
|
|
18
|
+
"primary-200": defaultColors.sky["200"],
|
|
19
|
+
"primary-300": defaultColors.sky["300"],
|
|
20
|
+
"primary-400": defaultColors.sky["400"],
|
|
21
|
+
"primary-500": defaultColors.sky["500"],
|
|
22
|
+
"primary-600": defaultColors.sky["600"],
|
|
23
|
+
"primary-700": defaultColors.sky["700"],
|
|
24
|
+
"primary-800": defaultColors.sky["800"],
|
|
25
|
+
"primary-900": defaultColors.sky["900"],
|
|
26
|
+
"primary-950": defaultColors.sky["950"],
|
|
27
|
+
"secondary-50": defaultColors.lime["50"],
|
|
28
|
+
"secondary-100": defaultColors.lime["100"],
|
|
29
|
+
"secondary-200": defaultColors.lime["200"],
|
|
30
|
+
"secondary-300": defaultColors.lime["300"],
|
|
31
|
+
"secondary-400": defaultColors.lime["400"],
|
|
32
|
+
"secondary-500": defaultColors.lime["500"],
|
|
33
|
+
"secondary-600": defaultColors.lime["600"],
|
|
34
|
+
"secondary-700": defaultColors.lime["700"],
|
|
35
|
+
"secondary-800": defaultColors.lime["800"],
|
|
36
|
+
"secondary-900": defaultColors.lime["900"],
|
|
37
|
+
"secondary-950": defaultColors.lime["950"],
|
|
38
|
+
"info-50": defaultColors.blue["50"],
|
|
39
|
+
"info-100": defaultColors.blue["100"],
|
|
40
|
+
"info-200": defaultColors.blue["200"],
|
|
41
|
+
"info-300": defaultColors.blue["300"],
|
|
42
|
+
"info-400": defaultColors.blue["400"],
|
|
43
|
+
"info-500": defaultColors.blue["500"],
|
|
44
|
+
"info-600": defaultColors.blue["600"],
|
|
45
|
+
"info-700": defaultColors.blue["700"],
|
|
46
|
+
"info-800": defaultColors.blue["800"],
|
|
47
|
+
"info-900": defaultColors.blue["900"],
|
|
48
|
+
"info-950": defaultColors.blue["950"],
|
|
49
|
+
"success-50": defaultColors.green["50"],
|
|
50
|
+
"success-100": defaultColors.green["100"],
|
|
51
|
+
"success-200": defaultColors.green["200"],
|
|
52
|
+
"success-300": defaultColors.green["300"],
|
|
53
|
+
"success-400": defaultColors.green["400"],
|
|
54
|
+
"success-500": defaultColors.green["500"],
|
|
55
|
+
"success-600": defaultColors.green["600"],
|
|
56
|
+
"success-700": defaultColors.green["700"],
|
|
57
|
+
"success-800": defaultColors.green["800"],
|
|
58
|
+
"success-900": defaultColors.green["900"],
|
|
59
|
+
"success-950": defaultColors.green["950"],
|
|
60
|
+
"warning-50": defaultColors.yellow["50"],
|
|
61
|
+
"warning-100": defaultColors.yellow["100"],
|
|
62
|
+
"warning-200": defaultColors.yellow["200"],
|
|
63
|
+
"warning-300": defaultColors.yellow["300"],
|
|
64
|
+
"warning-400": defaultColors.yellow["400"],
|
|
65
|
+
"warning-500": defaultColors.yellow["500"],
|
|
66
|
+
"warning-600": defaultColors.yellow["600"],
|
|
67
|
+
"warning-700": defaultColors.yellow["700"],
|
|
68
|
+
"warning-800": defaultColors.yellow["800"],
|
|
69
|
+
"warning-900": defaultColors.yellow["900"],
|
|
70
|
+
"warning-950": defaultColors.yellow["950"],
|
|
71
|
+
"danger-50": defaultColors.red["50"],
|
|
72
|
+
"danger-100": defaultColors.red["100"],
|
|
73
|
+
"danger-200": defaultColors.red["200"],
|
|
74
|
+
"danger-300": defaultColors.red["300"],
|
|
75
|
+
"danger-400": defaultColors.red["400"],
|
|
76
|
+
"danger-500": defaultColors.red["500"],
|
|
77
|
+
"danger-600": defaultColors.red["600"],
|
|
78
|
+
"danger-700": defaultColors.red["700"],
|
|
79
|
+
"danger-800": defaultColors.red["800"],
|
|
80
|
+
"danger-900": defaultColors.red["900"],
|
|
81
|
+
"danger-950": defaultColors.red["950"]
|
|
82
|
+
};
|
|
83
|
+
const fontColors = {
|
|
84
|
+
"for-white-bg-font": colors["neutral-900"],
|
|
85
|
+
"for-black-bg-font": colors["neutral-100"],
|
|
86
|
+
"neutral-50-font": colors["neutral-600"],
|
|
87
|
+
"neutral-100-font": colors["neutral-600"],
|
|
88
|
+
"neutral-200-font": colors["neutral-600"],
|
|
89
|
+
"neutral-300-font": colors["neutral-600"],
|
|
90
|
+
"neutral-400-font": colors["neutral-600"],
|
|
91
|
+
"neutral-500-font": colors["neutral-100"],
|
|
92
|
+
"neutral-600-font": colors["neutral-100"],
|
|
93
|
+
"neutral-700-font": colors["neutral-100"],
|
|
94
|
+
"neutral-800-font": colors["neutral-100"],
|
|
95
|
+
"neutral-900-font": colors["neutral-100"],
|
|
96
|
+
"neutral-950-font": colors["neutral-100"],
|
|
97
|
+
"primary-50-font": colors["neutral-600"],
|
|
98
|
+
"primary-100-font": colors["neutral-600"],
|
|
99
|
+
"primary-200-font": colors["neutral-600"],
|
|
100
|
+
"primary-300-font": colors["neutral-600"],
|
|
101
|
+
"primary-400-font": colors["neutral-600"],
|
|
102
|
+
"primary-500-font": colors["neutral-100"],
|
|
103
|
+
"primary-600-font": colors["neutral-100"],
|
|
104
|
+
"primary-700-font": colors["neutral-100"],
|
|
105
|
+
"primary-800-font": colors["neutral-100"],
|
|
106
|
+
"primary-900-font": colors["neutral-100"],
|
|
107
|
+
"primary-950-font": colors["neutral-100"],
|
|
108
|
+
"secondary-50-font": colors["neutral-600"],
|
|
109
|
+
"secondary-100-font": colors["neutral-600"],
|
|
110
|
+
"secondary-200-font": colors["neutral-600"],
|
|
111
|
+
"secondary-300-font": colors["neutral-600"],
|
|
112
|
+
"secondary-400-font": colors["neutral-600"],
|
|
113
|
+
"secondary-500-font": colors["neutral-100"],
|
|
114
|
+
"secondary-600-font": colors["neutral-100"],
|
|
115
|
+
"secondary-700-font": colors["neutral-100"],
|
|
116
|
+
"secondary-800-font": colors["neutral-100"],
|
|
117
|
+
"secondary-900-font": colors["neutral-100"],
|
|
118
|
+
"secondary-950-font": colors["neutral-100"],
|
|
119
|
+
"success-50-font": colors["neutral-600"],
|
|
120
|
+
"success-100-font": colors["neutral-600"],
|
|
121
|
+
"success-200-font": colors["neutral-600"],
|
|
122
|
+
"success-300-font": colors["neutral-600"],
|
|
123
|
+
"success-400-font": colors["neutral-600"],
|
|
124
|
+
"success-500-font": colors["neutral-100"],
|
|
125
|
+
"success-600-font": colors["neutral-100"],
|
|
126
|
+
"success-700-font": colors["neutral-100"],
|
|
127
|
+
"success-800-font": colors["neutral-100"],
|
|
128
|
+
"success-900-font": colors["neutral-100"],
|
|
129
|
+
"success-950-font": colors["neutral-100"],
|
|
130
|
+
"info-50-font": colors["neutral-600"],
|
|
131
|
+
"info-100-font": colors["neutral-600"],
|
|
132
|
+
"info-200-font": colors["neutral-600"],
|
|
133
|
+
"info-300-font": colors["neutral-600"],
|
|
134
|
+
"info-400-font": colors["neutral-600"],
|
|
135
|
+
"info-500-font": colors["neutral-100"],
|
|
136
|
+
"info-600-font": colors["neutral-100"],
|
|
137
|
+
"info-700-font": colors["neutral-100"],
|
|
138
|
+
"info-800-font": colors["neutral-100"],
|
|
139
|
+
"info-900-font": colors["neutral-100"],
|
|
140
|
+
"info-950-font": colors["neutral-100"],
|
|
141
|
+
"warning-50-font": colors["neutral-600"],
|
|
142
|
+
"warning-100-font": colors["neutral-600"],
|
|
143
|
+
"warning-200-font": colors["neutral-600"],
|
|
144
|
+
"warning-300-font": colors["neutral-600"],
|
|
145
|
+
"warning-400-font": colors["neutral-600"],
|
|
146
|
+
"warning-500-font": colors["neutral-100"],
|
|
147
|
+
"warning-600-font": colors["neutral-100"],
|
|
148
|
+
"warning-700-font": colors["neutral-100"],
|
|
149
|
+
"warning-800-font": colors["neutral-100"],
|
|
150
|
+
"warning-900-font": colors["neutral-100"],
|
|
151
|
+
"warning-950-font": colors["neutral-100"],
|
|
152
|
+
"danger-50-font": colors["neutral-600"],
|
|
153
|
+
"danger-100-font": colors["neutral-600"],
|
|
154
|
+
"danger-200-font": colors["neutral-600"],
|
|
155
|
+
"danger-300-font": colors["neutral-600"],
|
|
156
|
+
"danger-400-font": colors["neutral-600"],
|
|
157
|
+
"danger-500-font": colors["neutral-100"],
|
|
158
|
+
"danger-600-font": colors["neutral-100"],
|
|
159
|
+
"danger-700-font": colors["neutral-100"],
|
|
160
|
+
"danger-800-font": colors["neutral-100"],
|
|
161
|
+
"danger-900-font": colors["neutral-100"],
|
|
162
|
+
"danger-950-font": colors["neutral-100"]
|
|
163
|
+
};
|
|
164
|
+
export default {
|
|
165
|
+
content: [
|
|
166
|
+
// For module dev
|
|
167
|
+
"./src/runtime/**/*.{vue,js,ts,jsx,tsx}",
|
|
168
|
+
"./src/runtime/**/*.stories.ts",
|
|
169
|
+
"./playground/**/*.{vue,js,ts,jsx,tsx}",
|
|
170
|
+
"../ui-module/src/**/*.{vue,js,ts,jsx,tsx}",
|
|
171
|
+
// For project dev
|
|
172
|
+
"./app.vue",
|
|
173
|
+
"./components.{vue,js,ts,jsx,tsx}",
|
|
174
|
+
"./pages.{vue,js,ts,jsx,tsx}",
|
|
175
|
+
// If this config is used in a project
|
|
176
|
+
"./node_modules/@antify/*/dist/**/*.{js,vue,ts}",
|
|
177
|
+
"./node_modules/@antify/*/src/**/*.{js,vue,ts}"
|
|
178
|
+
],
|
|
179
|
+
theme: {
|
|
180
|
+
colors: {
|
|
181
|
+
...colors,
|
|
182
|
+
...fontColors
|
|
183
|
+
},
|
|
184
|
+
extend: {
|
|
185
|
+
animation: {
|
|
186
|
+
skeleton: "skeleton 2s ease-out infinite"
|
|
187
|
+
},
|
|
188
|
+
keyframes: {
|
|
189
|
+
"skeleton": {
|
|
190
|
+
"0%, 100%": { "background-color": colors["neutral-300"] },
|
|
191
|
+
"50%": { "background-color": colors["neutral-100"] }
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum ListGroupItemColorType {
|
|
2
|
+
danger = "danger",
|
|
3
|
+
info = "info",
|
|
4
|
+
neutral700 = "neutral-700",
|
|
5
|
+
neutral300 = "neutral-300",
|
|
6
|
+
neutral50 = "neutral-50",
|
|
7
|
+
primary = "primary",
|
|
8
|
+
secondary = "secondary",
|
|
9
|
+
success = "success",
|
|
10
|
+
warning = "warning"
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export var ListGroupItemColorType = /* @__PURE__ */ ((ListGroupItemColorType2) => {
|
|
2
|
+
ListGroupItemColorType2["danger"] = "danger";
|
|
3
|
+
ListGroupItemColorType2["info"] = "info";
|
|
4
|
+
ListGroupItemColorType2["neutral700"] = "neutral-700";
|
|
5
|
+
ListGroupItemColorType2["neutral300"] = "neutral-300";
|
|
6
|
+
ListGroupItemColorType2["neutral50"] = "neutral-50";
|
|
7
|
+
ListGroupItemColorType2["primary"] = "primary";
|
|
8
|
+
ListGroupItemColorType2["secondary"] = "secondary";
|
|
9
|
+
ListGroupItemColorType2["success"] = "success";
|
|
10
|
+
ListGroupItemColorType2["warning"] = "warning";
|
|
11
|
+
return ListGroupItemColorType2;
|
|
12
|
+
})(ListGroupItemColorType || {});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export var TagColorType = /* @__PURE__ */ ((TagColorType2) => {
|
|
2
|
+
TagColorType2["danger"] = "danger";
|
|
3
|
+
TagColorType2["info"] = "info";
|
|
4
|
+
TagColorType2["neutral300"] = "neutral-300";
|
|
5
|
+
TagColorType2["neutral50"] = "neutral-50";
|
|
6
|
+
TagColorType2["success"] = "success";
|
|
7
|
+
TagColorType2["warning"] = "warning";
|
|
8
|
+
return TagColorType2;
|
|
9
|
+
})(TagColorType || {});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./AntListGroupItem.type.mjs";
|
|
2
|
+
export * from "./AntTag.type.mjs";
|
|
3
|
+
export * from "./Checkbox.type.mjs";
|
|
4
|
+
export * from "./NavItem.type.mjs";
|
|
5
|
+
export * from "./RadioButton.type.mjs";
|
|
6
|
+
export * from "./Tabs.type.mjs";
|
|
7
|
+
export * from "./Toaster.type.mjs";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './enums';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export * from './components/__types';
|
|
4
|
+
export * from './components/table/__types/TableHeader.type';
|
|
5
|
+
export * from './components/form/__types';
|
|
6
|
+
export * from './components/buttons/__types';
|
|
7
|
+
export * from './components/form/Elements/__types';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./enums/index.mjs";
|
|
2
|
+
export * from "./types/index.mjs";
|
|
3
|
+
export * from "./components/__types/index.mjs";
|
|
4
|
+
export * from "./components/table/__types/TableHeader.type.mjs";
|
|
5
|
+
export * from "./components/form/__types/index.mjs";
|
|
6
|
+
export * from "./components/buttons/__types/index.mjs";
|
|
7
|
+
export * from "./components/form/Elements/__types/index.mjs";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const generateId = (length) => {
|
|
2
|
+
let result = "";
|
|
3
|
+
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
4
|
+
const charactersLength = characters.length;
|
|
5
|
+
for (var i = 0; i < length; i++) {
|
|
6
|
+
result += characters.charAt(Math.floor(Math.random() * charactersLength));
|
|
7
|
+
}
|
|
8
|
+
return result;
|
|
9
|
+
};
|
|
10
|
+
export const antfocus = {
|
|
11
|
+
mounted: (el) => el.focus()
|
|
12
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convert html class syntax given as undefined, string ("text-base bg-primary-500") or
|
|
3
|
+
* object syntax ({"text-base bg-primary-500": true}) always to object syntax ({"text-base bg-primary-500": true}).
|
|
4
|
+
*
|
|
5
|
+
* @param classes
|
|
6
|
+
*/
|
|
7
|
+
export declare function classesToObjectSyntax(classes: string | undefined | Record<string, boolean>): Record<string, boolean>;
|
|
8
|
+
/**
|
|
9
|
+
* Convert the given enum to a string for documentation.
|
|
10
|
+
*
|
|
11
|
+
* @param value
|
|
12
|
+
* @param className
|
|
13
|
+
*/
|
|
14
|
+
export declare function enumToPlainText(value: object, className: string): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export function classesToObjectSyntax(classes) {
|
|
2
|
+
if (typeof classes === "object") {
|
|
3
|
+
return classes;
|
|
4
|
+
}
|
|
5
|
+
if (classes === void 0) {
|
|
6
|
+
return {};
|
|
7
|
+
}
|
|
8
|
+
return {
|
|
9
|
+
[classes]: true
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export function enumToPlainText(value, className) {
|
|
13
|
+
let text = `enum ${className} {
|
|
14
|
+
`;
|
|
15
|
+
Object.keys(value).forEach((key) => {
|
|
16
|
+
text += ` ${key} = '${value[key]}',
|
|
17
|
+
`;
|
|
18
|
+
});
|
|
19
|
+
return text + "}";
|
|
20
|
+
}
|
package/dist/types.d.mts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
import type { } from './module.js'
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export type { AntTableAlign, AntTableRowTypes, AntTableSortDirection, BaseInputType, ButtonType, CollapseStrategy, ColorType, CornerPosition, Grouped, IconSize, InputColorType, Position, SelectOption, Size, SwitcherOption, TableHeader, TextInputType, default } from './module.js'
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
import type { } from './module'
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export type { AntTableAlign, AntTableRowTypes, AntTableSortDirection, BaseInputType, ButtonType, CollapseStrategy, ColorType, CornerPosition, Grouped, IconSize, InputColorType, Position, SelectOption, Size, SwitcherOption, TableHeader, TextInputType, default } from './module'
|