@antify/ui-module 1.7.3 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -52
- package/dist/module.d.mts +1 -251
- package/dist/module.d.ts +1 -251
- package/dist/module.json +1 -1
- package/dist/module.mjs +97 -418
- package/dist/runtime/composables/useUiClient.d.ts +2 -2
- package/dist/runtime/composables/useUiClient.mjs +1 -2
- package/dist/runtime/plugins/ui-module.mjs +3 -2
- package/dist/runtime/tailwind.config.d.ts +2 -3
- package/dist/runtime/tailwind.config.mjs +20 -204
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +10 -41
- package/dist/runtime/components/AntAccordion.vue +0 -64
- package/dist/runtime/components/AntAccordionItem.vue +0 -81
- package/dist/runtime/components/AntAlert.vue +0 -146
- package/dist/runtime/components/AntCard.vue +0 -34
- package/dist/runtime/components/AntContent.vue +0 -16
- package/dist/runtime/components/AntDropdown.vue +0 -79
- package/dist/runtime/components/AntIcon.vue +0 -56
- package/dist/runtime/components/AntKeycap.vue +0 -45
- package/dist/runtime/components/AntListGroup.vue +0 -24
- package/dist/runtime/components/AntListGroupItem.vue +0 -83
- package/dist/runtime/components/AntModal.vue +0 -88
- package/dist/runtime/components/AntPagination.vue +0 -206
- package/dist/runtime/components/AntPopover.vue +0 -114
- package/dist/runtime/components/AntSkeleton.vue +0 -38
- package/dist/runtime/components/AntSpinner.vue +0 -101
- package/dist/runtime/components/AntTag.vue +0 -114
- package/dist/runtime/components/AntToast.vue +0 -119
- package/dist/runtime/components/AntToaster.vue +0 -51
- package/dist/runtime/components/AntTooltip.vue +0 -189
- package/dist/runtime/components/Main.mdx +0 -11
- package/dist/runtime/components/Main.stories.d.ts +0 -7
- package/dist/runtime/components/Main.stories.mjs +0 -8
- package/dist/runtime/components/__stories/AntAccordion.stories.d.ts +0 -9
- package/dist/runtime/components/__stories/AntAccordion.stories.mjs +0 -101
- package/dist/runtime/components/__stories/AntAlert.stories.d.ts +0 -11
- package/dist/runtime/components/__stories/AntAlert.stories.mjs +0 -81
- package/dist/runtime/components/__stories/AntCard.stories.d.ts +0 -7
- package/dist/runtime/components/__stories/AntCard.stories.mjs +0 -87
- package/dist/runtime/components/__stories/AntContent.stories.d.ts +0 -6
- package/dist/runtime/components/__stories/AntContent.stories.mjs +0 -26
- package/dist/runtime/components/__stories/AntDropdown.stories.d.ts +0 -6
- package/dist/runtime/components/__stories/AntDropdown.stories.mjs +0 -52
- package/dist/runtime/components/__stories/AntIcon.stories.d.ts +0 -8
- package/dist/runtime/components/__stories/AntIcon.stories.mjs +0 -93
- package/dist/runtime/components/__stories/AntKeycap.stories.d.ts +0 -9
- package/dist/runtime/components/__stories/AntKeycap.stories.mjs +0 -69
- package/dist/runtime/components/__stories/AntListGroup.stories.d.ts +0 -7
- package/dist/runtime/components/__stories/AntListGroup.stories.mjs +0 -36
- package/dist/runtime/components/__stories/AntListGroupItem.stories.d.ts +0 -10
- package/dist/runtime/components/__stories/AntListGroupItem.stories.mjs +0 -62
- package/dist/runtime/components/__stories/AntModal.stories.d.ts +0 -7
- package/dist/runtime/components/__stories/AntModal.stories.mjs +0 -78
- package/dist/runtime/components/__stories/AntPagination.stories.d.ts +0 -8
- package/dist/runtime/components/__stories/AntPagination.stories.mjs +0 -39
- package/dist/runtime/components/__stories/AntPopover.stories.d.ts +0 -6
- package/dist/runtime/components/__stories/AntPopover.stories.mjs +0 -47
- package/dist/runtime/components/__stories/AntSkeleton.stories.d.ts +0 -8
- package/dist/runtime/components/__stories/AntSkeleton.stories.mjs +0 -43
- package/dist/runtime/components/__stories/AntSpinner.stories.d.ts +0 -6
- package/dist/runtime/components/__stories/AntSpinner.stories.mjs +0 -34
- package/dist/runtime/components/__stories/AntTag.stories.d.ts +0 -7
- package/dist/runtime/components/__stories/AntTag.stories.mjs +0 -43
- package/dist/runtime/components/__stories/AntToast.stories.d.ts +0 -8
- package/dist/runtime/components/__stories/AntToast.stories.mjs +0 -66
- package/dist/runtime/components/__stories/AntToaster.stories.d.ts +0 -34
- package/dist/runtime/components/__stories/AntToaster.stories.mjs +0 -42
- package/dist/runtime/components/__stories/AntTooltip.stories.d.ts +0 -16
- package/dist/runtime/components/__stories/AntTooltip.stories.mjs +0 -241
- package/dist/runtime/components/__types/AntAccordion.types.d.ts +0 -4
- package/dist/runtime/components/__types/AntAccordion.types.mjs +0 -5
- package/dist/runtime/components/__types/AntIcon.types.d.ts +0 -8
- package/dist/runtime/components/__types/AntIcon.types.mjs +0 -9
- package/dist/runtime/components/__types/AntKeycap.types.d.ts +0 -4
- package/dist/runtime/components/__types/AntKeycap.types.mjs +0 -5
- package/dist/runtime/components/__types/AntListGroupItem.types.d.ts +0 -9
- package/dist/runtime/components/__types/AntListGroupItem.types.mjs +0 -10
- package/dist/runtime/components/__types/AntSpinner.types.d.ts +0 -10
- package/dist/runtime/components/__types/AntSpinner.types.mjs +0 -11
- package/dist/runtime/components/__types/AntTag.types.d.ts +0 -17
- package/dist/runtime/components/__types/AntTag.types.mjs +0 -19
- package/dist/runtime/components/__types/AntToaster.types.d.ts +0 -8
- package/dist/runtime/components/__types/AntToaster.types.mjs +0 -0
- package/dist/runtime/components/__types/index.d.ts +0 -7
- package/dist/runtime/components/__types/index.mjs +0 -7
- package/dist/runtime/components/buttons/AntActionButton.vue +0 -74
- package/dist/runtime/components/buttons/AntButton.vue +0 -257
- package/dist/runtime/components/buttons/AntCreateButton.vue +0 -54
- package/dist/runtime/components/buttons/AntDeleteButton.vue +0 -54
- package/dist/runtime/components/buttons/AntDuplicateButton.vue +0 -54
- package/dist/runtime/components/buttons/AntEditButton.vue +0 -54
- package/dist/runtime/components/buttons/AntSaveAndNewButton.vue +0 -56
- package/dist/runtime/components/buttons/AntSaveButton.vue +0 -55
- package/dist/runtime/components/buttons/__stories/AntActionButton.stories.d.ts +0 -11
- package/dist/runtime/components/buttons/__stories/AntActionButton.stories.mjs +0 -86
- package/dist/runtime/components/buttons/__stories/AntButton.stories.d.ts +0 -16
- package/dist/runtime/components/buttons/__stories/AntButton.stories.mjs +0 -313
- package/dist/runtime/components/buttons/__stories/AntCreateButton.stories.d.ts +0 -12
- package/dist/runtime/components/buttons/__stories/AntCreateButton.stories.mjs +0 -76
- package/dist/runtime/components/buttons/__stories/AntDeleteButton.stories.d.ts +0 -12
- package/dist/runtime/components/buttons/__stories/AntDeleteButton.stories.mjs +0 -76
- package/dist/runtime/components/buttons/__stories/AntDuplicateButton.stories.d.ts +0 -12
- package/dist/runtime/components/buttons/__stories/AntDuplicateButton.stories.mjs +0 -76
- package/dist/runtime/components/buttons/__stories/AntEditButton.stories.d.ts +0 -12
- package/dist/runtime/components/buttons/__stories/AntEditButton.stories.mjs +0 -76
- package/dist/runtime/components/buttons/__stories/AntSaveAndNewButton.stories.d.ts +0 -12
- package/dist/runtime/components/buttons/__stories/AntSaveAndNewButton.stories.mjs +0 -76
- package/dist/runtime/components/buttons/__stories/AntSaveButton.stories.d.ts +0 -12
- package/dist/runtime/components/buttons/__stories/AntSaveButton.stories.mjs +0 -76
- package/dist/runtime/components/buttons/__types/AntButton.types.d.ts +0 -4
- package/dist/runtime/components/buttons/__types/AntButton.types.mjs +0 -5
- package/dist/runtime/components/buttons/__types/index.d.ts +0 -1
- package/dist/runtime/components/buttons/__types/index.mjs +0 -1
- package/dist/runtime/components/crud/AntCrud.vue +0 -45
- package/dist/runtime/components/crud/AntCrudDetail.vue +0 -11
- package/dist/runtime/components/crud/AntCrudDetailActions.vue +0 -58
- package/dist/runtime/components/crud/AntCrudDetailNav.vue +0 -64
- package/dist/runtime/components/crud/AntCrudTableFilter.vue +0 -122
- package/dist/runtime/components/crud/AntCrudTableNav.vue +0 -149
- package/dist/runtime/components/crud/__stories/AntCrud.stories.d.ts +0 -6
- package/dist/runtime/components/crud/__stories/AntCrud.stories.mjs +0 -126
- package/dist/runtime/components/crud/__stories/AntCrudDetail.stories.d.ts +0 -7
- package/dist/runtime/components/crud/__stories/AntCrudDetail.stories.mjs +0 -80
- package/dist/runtime/components/crud/__stories/AntCrudDetailActions.stories.d.ts +0 -6
- package/dist/runtime/components/crud/__stories/AntCrudDetailActions.stories.mjs +0 -25
- package/dist/runtime/components/crud/__stories/AntCrudDetailNav.stories.d.ts +0 -6
- package/dist/runtime/components/crud/__stories/AntCrudDetailNav.stories.mjs +0 -41
- package/dist/runtime/components/crud/__stories/AntCrudTableFilter.stories.d.ts +0 -6
- package/dist/runtime/components/crud/__stories/AntCrudTableFilter.stories.mjs +0 -25
- package/dist/runtime/components/crud/__stories/AntCrudTableNav.stories.d.ts +0 -8
- package/dist/runtime/components/crud/__stories/AntCrudTableNav.stories.mjs +0 -56
- package/dist/runtime/components/dialogs/AntDeleteDialog.vue +0 -29
- package/dist/runtime/components/dialogs/AntDialog.vue +0 -147
- package/dist/runtime/components/dialogs/__stories/AndDeleteDialog.stories.d.ts +0 -6
- package/dist/runtime/components/dialogs/__stories/AndDeleteDialog.stories.mjs +0 -32
- package/dist/runtime/components/dialogs/__stories/AntDialog.stories.d.ts +0 -6
- package/dist/runtime/components/dialogs/__stories/AntDialog.stories.mjs +0 -60
- package/dist/runtime/components/forms/AntField.vue +0 -123
- package/dist/runtime/components/forms/AntFormGroup.vue +0 -36
- package/dist/runtime/components/forms/AntFormGroupLabel.vue +0 -5
- package/dist/runtime/components/forms/__stories/AntField.stories.d.ts +0 -6
- package/dist/runtime/components/forms/__stories/AntField.stories.mjs +0 -80
- package/dist/runtime/components/forms/__stories/AntFormGroup.stories.d.ts +0 -6
- package/dist/runtime/components/forms/__stories/AntFormGroup.stories.mjs +0 -33
- package/dist/runtime/components/forms/__stories/AntFormGroupLabel.stories.d.ts +0 -6
- package/dist/runtime/components/forms/__stories/AntFormGroupLabel.stories.mjs +0 -20
- package/dist/runtime/components/index.d.ts +0 -62
- package/dist/runtime/components/index.mjs +0 -124
- package/dist/runtime/components/inputs/AntCheckbox.vue +0 -182
- package/dist/runtime/components/inputs/AntCheckboxGroup.vue +0 -117
- package/dist/runtime/components/inputs/AntDateInput.vue +0 -104
- package/dist/runtime/components/inputs/AntNumberInput.vue +0 -157
- package/dist/runtime/components/inputs/AntPasswordInput.vue +0 -107
- package/dist/runtime/components/inputs/AntRadio.vue +0 -206
- package/dist/runtime/components/inputs/AntRadioGroup.vue +0 -127
- package/dist/runtime/components/inputs/AntRangeSlider.vue +0 -101
- package/dist/runtime/components/inputs/AntRichTextEditor.vue +0 -237
- package/dist/runtime/components/inputs/AntSearch.vue +0 -75
- package/dist/runtime/components/inputs/AntSelect.vue +0 -319
- package/dist/runtime/components/inputs/AntSwitch.vue +0 -192
- package/dist/runtime/components/inputs/AntSwitcher.vue +0 -196
- package/dist/runtime/components/inputs/AntTagInput.vue +0 -339
- package/dist/runtime/components/inputs/AntTextInput.vue +0 -75
- package/dist/runtime/components/inputs/AntTextarea.vue +0 -191
- package/dist/runtime/components/inputs/AntUnitInput.vue +0 -96
- package/dist/runtime/components/inputs/Elements/AntBaseInput.vue +0 -271
- package/dist/runtime/components/inputs/Elements/AntDropDown.vue +0 -189
- package/dist/runtime/components/inputs/Elements/AntInputDescription.vue +0 -58
- package/dist/runtime/components/inputs/Elements/AntInputLabel.vue +0 -62
- package/dist/runtime/components/inputs/Elements/AntInputLimiter.vue +0 -58
- package/dist/runtime/components/inputs/Elements/__stories/AntBaseInput.stories.d.ts +0 -11
- package/dist/runtime/components/inputs/Elements/__stories/AntBaseInput.stories.mjs +0 -234
- package/dist/runtime/components/inputs/Elements/__stories/AntInputDescription.stories.d.ts +0 -6
- package/dist/runtime/components/inputs/Elements/__stories/AntInputDescription.stories.mjs +0 -34
- package/dist/runtime/components/inputs/Elements/__stories/AntInputLabel.stories.d.ts +0 -7
- package/dist/runtime/components/inputs/Elements/__stories/AntInputLabel.stories.mjs +0 -46
- package/dist/runtime/components/inputs/Elements/__stories/AntInputLimiter.stories.d.ts +0 -6
- package/dist/runtime/components/inputs/Elements/__stories/AntInputLimiter.stories.mjs +0 -37
- package/dist/runtime/components/inputs/Elements/__types/AntBaseInput.types.d.ts +0 -17
- package/dist/runtime/components/inputs/Elements/__types/AntBaseInput.types.mjs +0 -18
- package/dist/runtime/components/inputs/Elements/__types/index.d.ts +0 -1
- package/dist/runtime/components/inputs/Elements/__types/index.mjs +0 -1
- package/dist/runtime/components/inputs/Elements/index.d.ts +0 -6
- package/dist/runtime/components/inputs/Elements/index.mjs +0 -12
- package/dist/runtime/components/inputs/__stories/AntCheckbox.stories.d.ts +0 -8
- package/dist/runtime/components/inputs/__stories/AntCheckbox.stories.mjs +0 -382
- package/dist/runtime/components/inputs/__stories/AntCheckboxGroup.stories.d.ts +0 -7
- package/dist/runtime/components/inputs/__stories/AntCheckboxGroup.stories.mjs +0 -84
- package/dist/runtime/components/inputs/__stories/AntDateInput.stories.d.ts +0 -8
- package/dist/runtime/components/inputs/__stories/AntDateInput.stories.mjs +0 -193
- package/dist/runtime/components/inputs/__stories/AntNumberInput.stories.d.ts +0 -10
- package/dist/runtime/components/inputs/__stories/AntNumberInput.stories.mjs +0 -246
- package/dist/runtime/components/inputs/__stories/AntPasswordInput.stories.d.ts +0 -8
- package/dist/runtime/components/inputs/__stories/AntPasswordInput.stories.mjs +0 -156
- package/dist/runtime/components/inputs/__stories/AntRadioGroup.stories.d.ts +0 -8
- package/dist/runtime/components/inputs/__stories/AntRadioGroup.stories.mjs +0 -251
- package/dist/runtime/components/inputs/__stories/AntRangeSlider.stories.d.ts +0 -7
- package/dist/runtime/components/inputs/__stories/AntRangeSlider.stories.mjs +0 -67
- package/dist/runtime/components/inputs/__stories/AntRichTextEditor.stories-old.d.ts +0 -0
- package/dist/runtime/components/inputs/__stories/AntRichTextEditor.stories-old.mjs +0 -0
- package/dist/runtime/components/inputs/__stories/AntSearch.stories.d.ts +0 -7
- package/dist/runtime/components/inputs/__stories/AntSearch.stories.mjs +0 -103
- package/dist/runtime/components/inputs/__stories/AntSelect.stories.d.ts +0 -13
- package/dist/runtime/components/inputs/__stories/AntSelect.stories.mjs +0 -255
- package/dist/runtime/components/inputs/__stories/AntSwitch.stories.d.ts +0 -8
- package/dist/runtime/components/inputs/__stories/AntSwitch.stories.mjs +0 -344
- package/dist/runtime/components/inputs/__stories/AntSwitcher.stories.d.ts +0 -8
- package/dist/runtime/components/inputs/__stories/AntSwitcher.stories.mjs +0 -235
- package/dist/runtime/components/inputs/__stories/AntTagInput.stories.d.ts +0 -9
- package/dist/runtime/components/inputs/__stories/AntTagInput.stories.mjs +0 -228
- package/dist/runtime/components/inputs/__stories/AntTextInput.stories.d.ts +0 -9
- package/dist/runtime/components/inputs/__stories/AntTextInput.stories.mjs +0 -225
- package/dist/runtime/components/inputs/__stories/AntTextarea.stories.d.ts +0 -9
- package/dist/runtime/components/inputs/__stories/AntTextarea.stories.mjs +0 -144
- package/dist/runtime/components/inputs/__stories/AntUnitInput.stories.d.ts +0 -9
- package/dist/runtime/components/inputs/__stories/AntUnitInput.stories.mjs +0 -116
- package/dist/runtime/components/inputs/__types/AntCheckbox.types.d.ts +0 -6
- package/dist/runtime/components/inputs/__types/AntCheckbox.types.mjs +0 -0
- package/dist/runtime/components/inputs/__types/AntDateInput.types.d.ts +0 -7
- package/dist/runtime/components/inputs/__types/AntDateInput.types.mjs +0 -8
- package/dist/runtime/components/inputs/__types/AntRadio.types.d.ts +0 -9
- package/dist/runtime/components/inputs/__types/AntRadio.types.mjs +0 -0
- package/dist/runtime/components/inputs/__types/AntSelect.types.d.ts +0 -4
- package/dist/runtime/components/inputs/__types/AntSelect.types.mjs +0 -0
- package/dist/runtime/components/inputs/__types/AntSwitcher.types.d.ts +0 -4
- package/dist/runtime/components/inputs/__types/AntSwitcher.types.mjs +0 -0
- package/dist/runtime/components/inputs/__types/AntTagInput.types.d.ts +0 -5
- package/dist/runtime/components/inputs/__types/AntTagInput.types.mjs +0 -6
- package/dist/runtime/components/inputs/__types/AntTextInput.types.d.ts +0 -6
- package/dist/runtime/components/inputs/__types/AntTextInput.types.mjs +0 -7
- package/dist/runtime/components/inputs/__types/index.d.ts +0 -7
- package/dist/runtime/components/inputs/__types/index.mjs +0 -7
- package/dist/runtime/components/layouts/AntNavLeftLayout.vue +0 -36
- package/dist/runtime/components/layouts/__stories/AntNavLeftLayout.stories.d.ts +0 -7
- package/dist/runtime/components/layouts/__stories/AntNavLeftLayout.stories.mjs +0 -68
- package/dist/runtime/components/navbar/AntNavbar.vue +0 -25
- package/dist/runtime/components/navbar/AntNavbarItem.vue +0 -78
- package/dist/runtime/components/navbar/__stories/AntNavbar.stories.d.ts +0 -6
- package/dist/runtime/components/navbar/__stories/AntNavbar.stories.mjs +0 -66
- package/dist/runtime/components/navbar/__types/NavbarItem.types.d.ts +0 -10
- package/dist/runtime/components/navbar/__types/NavbarItem.types.mjs +0 -0
- package/dist/runtime/components/navbar/__types/index.d.ts +0 -1
- package/dist/runtime/components/navbar/__types/index.mjs +0 -1
- package/dist/runtime/components/table/AntTable.vue +0 -218
- package/dist/runtime/components/table/AntTableSortButton.vue +0 -48
- package/dist/runtime/components/table/AntTd.vue +0 -81
- package/dist/runtime/components/table/AntTh.vue +0 -78
- package/dist/runtime/components/table/__stories/AntTable.stories.d.ts +0 -9
- package/dist/runtime/components/table/__stories/AntTable.stories.mjs +0 -273
- package/dist/runtime/components/table/__types/TableHeader.types.d.ts +0 -36
- package/dist/runtime/components/table/__types/TableHeader.types.mjs +0 -25
- package/dist/runtime/components/table/__types/index.d.ts +0 -1
- package/dist/runtime/components/table/__types/index.mjs +0 -1
- package/dist/runtime/components/tabs/AntTabItem.vue +0 -118
- package/dist/runtime/components/tabs/AntTabs.vue +0 -47
- package/dist/runtime/components/tabs/__stories/AntTabItem.stories.d.ts +0 -6
- package/dist/runtime/components/tabs/__stories/AntTabItem.stories.mjs +0 -32
- package/dist/runtime/components/tabs/__stories/AntTabs.stories.d.ts +0 -9
- package/dist/runtime/components/tabs/__stories/AntTabs.stories.mjs +0 -173
- package/dist/runtime/components/tabs/__types/AntTabItem.types.d.ts +0 -17
- package/dist/runtime/components/tabs/__types/AntTabItem.types.mjs +0 -6
- package/dist/runtime/components/tabs/__types/index.d.ts +0 -1
- package/dist/runtime/components/tabs/__types/index.mjs +0 -1
- package/dist/runtime/components/transitions/AntTransitionCollapseHeight.vue +0 -92
- package/dist/runtime/composables/useUi.d.ts +0 -20
- package/dist/runtime/composables/useUi.mjs +0 -31
- package/dist/runtime/composables/useValidator.d.ts +0 -1
- package/dist/runtime/composables/useValidator.mjs +0 -1
- package/dist/runtime/enums/Direction.enum.d.ts +0 -4
- package/dist/runtime/enums/Direction.enum.mjs +0 -5
- package/dist/runtime/enums/Grouped.enum.d.ts +0 -6
- package/dist/runtime/enums/Grouped.enum.mjs +0 -7
- package/dist/runtime/enums/Position.enum.d.ts +0 -12
- package/dist/runtime/enums/Position.enum.mjs +0 -14
- package/dist/runtime/enums/Size.enum.d.ts +0 -7
- package/dist/runtime/enums/Size.enum.mjs +0 -8
- package/dist/runtime/enums/State.enum.d.ts +0 -16
- package/dist/runtime/enums/State.enum.mjs +0 -18
- package/dist/runtime/enums/index.d.ts +0 -5
- package/dist/runtime/enums/index.mjs +0 -5
- package/dist/runtime/env.d.ts +0 -8
- package/dist/runtime/handler.d.ts +0 -1
- package/dist/runtime/handler.mjs +0 -5
- package/dist/runtime/plugins/toaster.d.ts +0 -22
- package/dist/runtime/plugins/toaster.mjs +0 -53
- package/dist/runtime/shims/vue.d.ts +0 -5
- package/dist/runtime/types.d.ts +0 -8
- package/dist/runtime/types.mjs +0 -8
- package/dist/runtime/utils/helper.d.ts +0 -4
- package/dist/runtime/utils/helper.mjs +0 -12
- package/dist/runtime/utils.d.ts +0 -20
- package/dist/runtime/utils.mjs +0 -41
- package/src/runtime/components/AntAccordion.vue +0 -64
- package/src/runtime/components/AntAccordionItem.vue +0 -119
- package/src/runtime/components/AntAlert.vue +0 -146
- package/src/runtime/components/AntCard.vue +0 -34
- package/src/runtime/components/AntContent.vue +0 -16
- package/src/runtime/components/AntDropdown.vue +0 -100
- package/src/runtime/components/AntIcon.vue +0 -56
- package/src/runtime/components/AntKeycap.vue +0 -45
- package/src/runtime/components/AntListGroup.vue +0 -24
- package/src/runtime/components/AntListGroupItem.vue +0 -83
- package/src/runtime/components/AntModal.vue +0 -130
- package/src/runtime/components/AntPagination.vue +0 -206
- package/src/runtime/components/AntPopover.vue +0 -135
- package/src/runtime/components/AntSkeleton.vue +0 -38
- package/src/runtime/components/AntSpinner.vue +0 -101
- package/src/runtime/components/AntTag.vue +0 -114
- package/src/runtime/components/AntToast.vue +0 -119
- package/src/runtime/components/AntToaster.vue +0 -70
- package/src/runtime/components/AntTooltip.vue +0 -189
- package/src/runtime/components/buttons/AntActionButton.vue +0 -74
- package/src/runtime/components/buttons/AntButton.vue +0 -257
- package/src/runtime/components/buttons/AntCreateButton.vue +0 -54
- package/src/runtime/components/buttons/AntDeleteButton.vue +0 -54
- package/src/runtime/components/buttons/AntDuplicateButton.vue +0 -54
- package/src/runtime/components/buttons/AntEditButton.vue +0 -54
- package/src/runtime/components/buttons/AntSaveAndNewButton.vue +0 -56
- package/src/runtime/components/buttons/AntSaveButton.vue +0 -55
- package/src/runtime/components/crud/AntCrud.vue +0 -69
- package/src/runtime/components/crud/AntCrudDetail.vue +0 -11
- package/src/runtime/components/crud/AntCrudDetailActions.vue +0 -58
- package/src/runtime/components/crud/AntCrudDetailNav.vue +0 -64
- package/src/runtime/components/crud/AntCrudTableFilter.vue +0 -122
- package/src/runtime/components/crud/AntCrudTableNav.vue +0 -149
- package/src/runtime/components/dialogs/AntDeleteDialog.vue +0 -29
- package/src/runtime/components/dialogs/AntDialog.vue +0 -181
- package/src/runtime/components/forms/AntField.vue +0 -123
- package/src/runtime/components/forms/AntFormGroup.vue +0 -36
- package/src/runtime/components/forms/AntFormGroupLabel.vue +0 -5
- package/src/runtime/components/inputs/AntCheckbox.vue +0 -201
- package/src/runtime/components/inputs/AntCheckboxGroup.vue +0 -117
- package/src/runtime/components/inputs/AntDateInput.vue +0 -104
- package/src/runtime/components/inputs/AntNumberInput.vue +0 -157
- package/src/runtime/components/inputs/AntPasswordInput.vue +0 -107
- package/src/runtime/components/inputs/AntRadio.vue +0 -214
- package/src/runtime/components/inputs/AntRadioGroup.vue +0 -127
- package/src/runtime/components/inputs/AntRangeSlider.vue +0 -121
- package/src/runtime/components/inputs/AntRichTextEditor.vue +0 -237
- package/src/runtime/components/inputs/AntSearch.vue +0 -75
- package/src/runtime/components/inputs/AntSelect.vue +0 -319
- package/src/runtime/components/inputs/AntSwitch.vue +0 -192
- package/src/runtime/components/inputs/AntSwitcher.vue +0 -196
- package/src/runtime/components/inputs/AntTagInput.vue +0 -339
- package/src/runtime/components/inputs/AntTextInput.vue +0 -75
- package/src/runtime/components/inputs/AntTextarea.vue +0 -191
- package/src/runtime/components/inputs/AntUnitInput.vue +0 -96
- package/src/runtime/components/inputs/Elements/AntBaseInput.vue +0 -319
- package/src/runtime/components/inputs/Elements/AntDropDown.vue +0 -189
- package/src/runtime/components/inputs/Elements/AntInputDescription.vue +0 -58
- package/src/runtime/components/inputs/Elements/AntInputLabel.vue +0 -62
- package/src/runtime/components/inputs/Elements/AntInputLimiter.vue +0 -58
- package/src/runtime/components/layouts/AntNavLeftLayout.vue +0 -36
- package/src/runtime/components/navbar/AntNavbar.vue +0 -25
- package/src/runtime/components/navbar/AntNavbarItem.vue +0 -78
- package/src/runtime/components/table/AntTable.vue +0 -218
- package/src/runtime/components/table/AntTableSortButton.vue +0 -48
- package/src/runtime/components/table/AntTd.vue +0 -81
- package/src/runtime/components/table/AntTh.vue +0 -78
- package/src/runtime/components/tabs/AntTabItem.vue +0 -118
- package/src/runtime/components/tabs/AntTabs.vue +0 -47
- package/src/runtime/components/transitions/AntTransitionCollapseHeight.vue +0 -96
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import AntAccordion from "../AntAccordion.vue";
|
|
2
|
-
import AntAccordionItem from "../AntAccordionItem.vue";
|
|
3
|
-
import { CollapseStrategy } from "../__types/AntAccordion.types.mjs";
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Components/Accordion",
|
|
6
|
-
component: AntAccordion,
|
|
7
|
-
subcomponents: { AntAccordionItem },
|
|
8
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
9
|
-
argTypes: {
|
|
10
|
-
collapseStrategy: {
|
|
11
|
-
control: { type: "select" },
|
|
12
|
-
options: Object.values(CollapseStrategy)
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
export default meta;
|
|
17
|
-
export const Docs = {
|
|
18
|
-
parameters: {
|
|
19
|
-
chromatic: { disableSnapshot: false }
|
|
20
|
-
},
|
|
21
|
-
render: (args) => ({
|
|
22
|
-
components: { AntAccordion, AntAccordionItem },
|
|
23
|
-
setup() {
|
|
24
|
-
return { args };
|
|
25
|
-
},
|
|
26
|
-
template: `
|
|
27
|
-
<div class="p-4">
|
|
28
|
-
<AntAccordion v-bind="args"/>
|
|
29
|
-
</div>`
|
|
30
|
-
}),
|
|
31
|
-
args: {
|
|
32
|
-
items: [
|
|
33
|
-
{
|
|
34
|
-
label: "First entry",
|
|
35
|
-
content: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
label: "Second entry",
|
|
39
|
-
content: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.",
|
|
40
|
-
iconLeft: true
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
label: "Third entry",
|
|
44
|
-
content: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
label: "Fourth entry",
|
|
48
|
-
content: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
export const CustomContent = {
|
|
54
|
-
render: (args) => ({
|
|
55
|
-
components: { AntAccordion, AntAccordionItem },
|
|
56
|
-
setup() {
|
|
57
|
-
return { args };
|
|
58
|
-
},
|
|
59
|
-
template: `
|
|
60
|
-
<div class="p-4">
|
|
61
|
-
<AntAccordion v-bind="args">
|
|
62
|
-
<template #item-content="{item, index}">
|
|
63
|
-
<div class="text-danger-500">{{ item.content }}</div>
|
|
64
|
-
</template>
|
|
65
|
-
</AntAccordion>
|
|
66
|
-
</div>`
|
|
67
|
-
}),
|
|
68
|
-
args: {
|
|
69
|
-
...Docs.args
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
export const MultipleCollapseStrategy = {
|
|
73
|
-
render: Docs.render,
|
|
74
|
-
args: {
|
|
75
|
-
...Docs.args,
|
|
76
|
-
collapseStrategy: CollapseStrategy.multiple
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
export const htmlInContent = {
|
|
80
|
-
render: Docs.render,
|
|
81
|
-
args: {
|
|
82
|
-
items: [
|
|
83
|
-
{
|
|
84
|
-
label: "First entry",
|
|
85
|
-
content: `Lorem <strong>ipsum</strong> dolor sit amet, consetetur sadipscing elitr, <br/>
|
|
86
|
-
sed diam nonumy eirmod tempor invidunt <br/>
|
|
87
|
-
ut labore et dolore magna aliquyam erat, <br/>
|
|
88
|
-
sed diam voluptua. At vero eos et accusam et <br/>
|
|
89
|
-
justo duo dolores et ea rebum. Stet clita kasd`
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
label: "Second entry",
|
|
93
|
-
content: `Lorem <strong>ipsum</strong> dolor sit amet, consetetur sadipscing elitr, <br/>
|
|
94
|
-
sed diam nonumy eirmod tempor invidunt <br/>
|
|
95
|
-
ut labore et dolore magna aliquyam erat, <br/>
|
|
96
|
-
sed diam voluptua. At vero eos et accusam et <br/>
|
|
97
|
-
justo duo dolores et ea rebum. Stet clita kasd`
|
|
98
|
-
}
|
|
99
|
-
]
|
|
100
|
-
}
|
|
101
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import AntAlert from '../AntAlert.vue';
|
|
2
|
-
import { type Meta, type StoryObj } from '@storybook/vue3';
|
|
3
|
-
declare const meta: Meta<typeof AntAlert>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntAlert>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
export declare const WithOutTitle: Story;
|
|
8
|
-
export declare const WithContent: Story;
|
|
9
|
-
export declare const WithoutContent: Story;
|
|
10
|
-
export declare const WithQuestionIcon: Story;
|
|
11
|
-
export declare const Skeleton: Story;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import AntAlert from "../AntAlert.vue";
|
|
2
|
-
import { InputState } from "../../enums/index.mjs";
|
|
3
|
-
const meta = {
|
|
4
|
-
title: "Components/Alert",
|
|
5
|
-
component: AntAlert,
|
|
6
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
7
|
-
argTypes: {
|
|
8
|
-
state: {
|
|
9
|
-
control: { type: "select" },
|
|
10
|
-
options: Object.values(InputState)
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
export default meta;
|
|
15
|
-
export const Docs = {
|
|
16
|
-
render: (args) => ({
|
|
17
|
-
components: { AntAlert },
|
|
18
|
-
setup() {
|
|
19
|
-
function logClick() {
|
|
20
|
-
console.log("Clicked close icon");
|
|
21
|
-
}
|
|
22
|
-
return { args, logClick };
|
|
23
|
-
},
|
|
24
|
-
template: `
|
|
25
|
-
<AntAlert v-bind="args" @close="logClick">
|
|
26
|
-
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, <br/>
|
|
27
|
-
sed diam nonumy eirmod tempor invidunt <br/>
|
|
28
|
-
ut labore et dolore magna aliquyam erat, <br/>
|
|
29
|
-
sed diam voluptua. At vero eos et accusam et <br/>
|
|
30
|
-
justo duo dolores et ea rebum. Stet clita kasd
|
|
31
|
-
</AntAlert>
|
|
32
|
-
`
|
|
33
|
-
}),
|
|
34
|
-
args: {
|
|
35
|
-
title: "Lorem ipsum dolor"
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
export const WithOutTitle = {
|
|
39
|
-
render: Docs.render,
|
|
40
|
-
args: {
|
|
41
|
-
title: "",
|
|
42
|
-
dismissBtn: false,
|
|
43
|
-
icon: false
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
export const WithContent = {
|
|
47
|
-
render: Docs.render,
|
|
48
|
-
args: {
|
|
49
|
-
...Docs.args
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
export const WithoutContent = {
|
|
53
|
-
render: (args, ctx) => ({
|
|
54
|
-
// @ts-ignore
|
|
55
|
-
components: Docs.render(args, ctx).components,
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
setup: Docs.render(args, ctx).setup,
|
|
58
|
-
template: `
|
|
59
|
-
<div class="p-4">
|
|
60
|
-
<AntAlert v-bind="args" @close="logClick"/>
|
|
61
|
-
</div>
|
|
62
|
-
`
|
|
63
|
-
}),
|
|
64
|
-
args: {
|
|
65
|
-
...Docs.args
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
export const WithQuestionIcon = {
|
|
69
|
-
render: Docs.render,
|
|
70
|
-
args: {
|
|
71
|
-
...Docs.args,
|
|
72
|
-
questionMarkText: "Lorem ipsum dolor"
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
export const Skeleton = {
|
|
76
|
-
render: Docs.render,
|
|
77
|
-
args: {
|
|
78
|
-
...Docs.args,
|
|
79
|
-
skeleton: true
|
|
80
|
-
}
|
|
81
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type Meta, type StoryObj } from '@storybook/vue3';
|
|
2
|
-
import AntCard from '../AntCard.vue';
|
|
3
|
-
declare const meta: Meta<typeof AntCard>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntCard>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
export declare const Summary: Story;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import AntCard from "../AntCard.vue";
|
|
2
|
-
import { Size } from "../../enums/index.mjs";
|
|
3
|
-
import AntFormGroup from "../forms/AntFormGroup.vue";
|
|
4
|
-
import AntFormGroupLabel from "../forms/AntFormGroupLabel.vue";
|
|
5
|
-
const meta = {
|
|
6
|
-
title: "Components/Card",
|
|
7
|
-
component: AntCard,
|
|
8
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
9
|
-
argTypes: {
|
|
10
|
-
size: {
|
|
11
|
-
control: { type: "select" },
|
|
12
|
-
options: Object.values(Size)
|
|
13
|
-
},
|
|
14
|
-
padding: {
|
|
15
|
-
control: { type: "boolean" }
|
|
16
|
-
},
|
|
17
|
-
expanded: {
|
|
18
|
-
control: { type: "boolean" }
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
export default meta;
|
|
23
|
-
export const Docs = {
|
|
24
|
-
render: (args) => ({
|
|
25
|
-
components: { AntCard },
|
|
26
|
-
setup() {
|
|
27
|
-
return { args, Size };
|
|
28
|
-
},
|
|
29
|
-
template: `
|
|
30
|
-
<AntCard v-bind="args">
|
|
31
|
-
<div
|
|
32
|
-
class="slot h-40"
|
|
33
|
-
:class="args.expanded ? 'w-full' : 'w-48'"
|
|
34
|
-
>
|
|
35
|
-
SLOT
|
|
36
|
-
</div>
|
|
37
|
-
</AntCard>
|
|
38
|
-
`
|
|
39
|
-
}),
|
|
40
|
-
args: {}
|
|
41
|
-
};
|
|
42
|
-
export const Summary = {
|
|
43
|
-
parameters: {
|
|
44
|
-
chromatic: { disableSnapshot: false }
|
|
45
|
-
},
|
|
46
|
-
render: (args) => ({
|
|
47
|
-
components: { AntCard, AntFormGroup, AntFormGroupLabel },
|
|
48
|
-
setup() {
|
|
49
|
-
return { args, Size };
|
|
50
|
-
},
|
|
51
|
-
template: `
|
|
52
|
-
<AntFormGroup direction="column">
|
|
53
|
-
<AntFormGroupLabel>Size</AntFormGroupLabel>
|
|
54
|
-
<AntFormGroup direction="row">
|
|
55
|
-
<AntCard v-bind="args" :size="Size.lg" :expanded="true">
|
|
56
|
-
<div class="slot h-40">SLOT</div>
|
|
57
|
-
</AntCard>
|
|
58
|
-
<AntCard v-bind="args" :size="Size.md" :expanded="true">
|
|
59
|
-
<div class="slot h-full">SLOT</div>
|
|
60
|
-
</AntCard>
|
|
61
|
-
<AntCard v-bind="args" :size="Size.sm" :expanded="true">
|
|
62
|
-
<div class="slot h-full">SLOT</div>
|
|
63
|
-
</AntCard>
|
|
64
|
-
<AntCard v-bind="args" :size="Size.xs" :expanded="true">
|
|
65
|
-
<div class="slot h-full">SLOT</div>
|
|
66
|
-
</AntCard>
|
|
67
|
-
<AntCard v-bind="args" :size="Size.xs2" :expanded="true">
|
|
68
|
-
<div class="slot h-full">SLOT</div>
|
|
69
|
-
</AntCard>
|
|
70
|
-
</AntFormGroup>
|
|
71
|
-
<AntFormGroupLabel>Paddingles</AntFormGroupLabel>
|
|
72
|
-
<AntCard v-bind="args" :padding="false" class="w-48">
|
|
73
|
-
<div class="slot h-40">SLOT</div>
|
|
74
|
-
</AntCard>
|
|
75
|
-
<AntFormGroupLabel>Expanded</AntFormGroupLabel>
|
|
76
|
-
<AntFormGroup direction="row">
|
|
77
|
-
<AntCard v-bind="args" class="w-48">
|
|
78
|
-
<div class="slot h-40">SLOT</div>
|
|
79
|
-
</AntCard>
|
|
80
|
-
<AntCard v-bind="args" :expanded="true">
|
|
81
|
-
<div class="slot h-40">SLOT</div>
|
|
82
|
-
</AntCard>
|
|
83
|
-
</AntFormGroup>
|
|
84
|
-
</AntFormGroup>`
|
|
85
|
-
}),
|
|
86
|
-
args: {}
|
|
87
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import AntContent from "../AntContent.vue";
|
|
2
|
-
const meta = {
|
|
3
|
-
title: "Components/Content",
|
|
4
|
-
component: AntContent,
|
|
5
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
6
|
-
argTypes: {}
|
|
7
|
-
};
|
|
8
|
-
export default meta;
|
|
9
|
-
export const Docs = {
|
|
10
|
-
parameters: {
|
|
11
|
-
chromatic: { disableSnapshot: false }
|
|
12
|
-
},
|
|
13
|
-
render: (args) => ({
|
|
14
|
-
components: { AntContent },
|
|
15
|
-
setup() {
|
|
16
|
-
return { args };
|
|
17
|
-
},
|
|
18
|
-
template: `
|
|
19
|
-
<div class="outline outline-neutral-300">
|
|
20
|
-
<AntContent v-bind="args" class="h-40">
|
|
21
|
-
<div class="slot h-60">SLOT</div>
|
|
22
|
-
</AntContent>
|
|
23
|
-
</div>`
|
|
24
|
-
}),
|
|
25
|
-
args: {}
|
|
26
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import AntDropdown from "../AntDropdown.vue";
|
|
2
|
-
import AntButton from "../buttons/AntButton.vue";
|
|
3
|
-
import { Position } from "../../enums/Position.enum.mjs";
|
|
4
|
-
import { computed } from "vue";
|
|
5
|
-
const meta = {
|
|
6
|
-
title: "Components/Dropdown",
|
|
7
|
-
component: AntDropdown,
|
|
8
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
9
|
-
argTypes: {
|
|
10
|
-
position: {
|
|
11
|
-
control: { type: "select" },
|
|
12
|
-
options: Object.values(Position)
|
|
13
|
-
},
|
|
14
|
-
contentPadding: {
|
|
15
|
-
description: "If the content require a paddingless dropdown to expand over the whole size, set this to false"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
export default meta;
|
|
20
|
-
export const Docs = {
|
|
21
|
-
render: (args) => ({
|
|
22
|
-
components: { AntDropdown, AntButton },
|
|
23
|
-
setup() {
|
|
24
|
-
const showDropdown = computed({
|
|
25
|
-
get() {
|
|
26
|
-
return args.showDropdown;
|
|
27
|
-
},
|
|
28
|
-
set(val) {
|
|
29
|
-
args.showDropdown = val;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
return { args, showDropdown };
|
|
33
|
-
},
|
|
34
|
-
template: `
|
|
35
|
-
<div class="p-64 flex justify-center items-center">
|
|
36
|
-
<AntDropdown dropdown-classes="w-64" v-bind="args" v-model:show-dropdown="showDropdown">
|
|
37
|
-
<template #content>
|
|
38
|
-
Lorem ipsum dolor sit amet, consetetur sadipscing
|
|
39
|
-
elitr, sed diam nonumy eirmod tempor invidunt ut
|
|
40
|
-
labore et dolore magna aliquyam erat, sed diam voluptua.
|
|
41
|
-
</template>
|
|
42
|
-
<template #default>
|
|
43
|
-
<AntButton @click="() => showDropdown = !showDropdown" filled>Click me</AntButton>
|
|
44
|
-
</template>
|
|
45
|
-
</AntDropdown>
|
|
46
|
-
</div>
|
|
47
|
-
`
|
|
48
|
-
}),
|
|
49
|
-
args: {
|
|
50
|
-
showDropdown: true
|
|
51
|
-
}
|
|
52
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import AntIcon from '../AntIcon.vue';
|
|
2
|
-
import { type Meta, type StoryObj } from '@storybook/vue3';
|
|
3
|
-
declare const meta: Meta<typeof AntIcon>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntIcon>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
export declare const Size: Story;
|
|
8
|
-
export declare const Color: Story;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import AntIcon from "../AntIcon.vue";
|
|
2
|
-
import { faTag } from "@fortawesome/free-solid-svg-icons";
|
|
3
|
-
import { IconSize } from "../__types/AntIcon.types.mjs";
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Components/Icon",
|
|
6
|
-
component: AntIcon,
|
|
7
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
8
|
-
argTypes: {
|
|
9
|
-
size: {
|
|
10
|
-
control: { type: "select" },
|
|
11
|
-
options: Object.values(IconSize)
|
|
12
|
-
},
|
|
13
|
-
icon: {
|
|
14
|
-
control: { type: "none" },
|
|
15
|
-
description: "Use Font-awesome Icons."
|
|
16
|
-
},
|
|
17
|
-
color: {
|
|
18
|
-
control: { type: "text" },
|
|
19
|
-
description: "A text-* css class to change the color of the icon."
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
export default meta;
|
|
24
|
-
export const Docs = {
|
|
25
|
-
render: (args) => ({
|
|
26
|
-
components: { AntIcon },
|
|
27
|
-
setup() {
|
|
28
|
-
return { args };
|
|
29
|
-
},
|
|
30
|
-
template: '<AntIcon v-bind="args"/>'
|
|
31
|
-
}),
|
|
32
|
-
args: {
|
|
33
|
-
icon: faTag
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
export const Size = {
|
|
37
|
-
render: (args) => ({
|
|
38
|
-
components: { AntIcon },
|
|
39
|
-
setup() {
|
|
40
|
-
return { args };
|
|
41
|
-
},
|
|
42
|
-
template: `
|
|
43
|
-
<div class="flex flex-col gap-2.5">
|
|
44
|
-
<AntIcon v-bind="args" size="2xs"/>
|
|
45
|
-
<AntIcon v-bind="args" size="xs"/>
|
|
46
|
-
<AntIcon v-bind="args" size="sm"/>
|
|
47
|
-
<AntIcon v-bind="args" size="md"/>
|
|
48
|
-
<AntIcon v-bind="args" size="lg"/>
|
|
49
|
-
<AntIcon v-bind="args" size="3xl"/>
|
|
50
|
-
</div>
|
|
51
|
-
`
|
|
52
|
-
}),
|
|
53
|
-
args: {
|
|
54
|
-
icon: faTag
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
export const Color = {
|
|
58
|
-
render: (args) => ({
|
|
59
|
-
components: { AntIcon },
|
|
60
|
-
setup() {
|
|
61
|
-
return { args };
|
|
62
|
-
},
|
|
63
|
-
template: `
|
|
64
|
-
<div class="flex items-center gap-2.5">
|
|
65
|
-
<AntIcon v-bind="args" color="text-primary-500"/>
|
|
66
|
-
<span>primary</span>
|
|
67
|
-
</div>
|
|
68
|
-
<div class="flex items-center gap-2.5">
|
|
69
|
-
<AntIcon v-bind="args" color="text-secondary-500"/>
|
|
70
|
-
<span>secondary</span>
|
|
71
|
-
</div>
|
|
72
|
-
<div class="flex items-center gap-2.5">
|
|
73
|
-
<AntIcon v-bind="args" color="text-info-500"/>
|
|
74
|
-
<span>info</span>
|
|
75
|
-
</div>
|
|
76
|
-
<div class="flex items-center gap-2.5">
|
|
77
|
-
<AntIcon v-bind="args" color="text-success-500"/>
|
|
78
|
-
<span>success</span>
|
|
79
|
-
</div>
|
|
80
|
-
<div class="flex items-center gap-2.5">
|
|
81
|
-
<AntIcon v-bind="args" color="text-info-500">Warning</AntIcon>
|
|
82
|
-
<span>warning</span>
|
|
83
|
-
</div>
|
|
84
|
-
<div class="flex items-center gap-2.5">
|
|
85
|
-
<AntIcon v-bind="args" color="text-danger-500"/>
|
|
86
|
-
<span>danger</span>
|
|
87
|
-
</div>
|
|
88
|
-
`
|
|
89
|
-
}),
|
|
90
|
-
args: {
|
|
91
|
-
icon: faTag
|
|
92
|
-
}
|
|
93
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import AntKeycap from '../AntKeycap.vue';
|
|
2
|
-
import { type Meta, type StoryObj } from '@storybook/vue3';
|
|
3
|
-
declare const meta: Meta<typeof AntKeycap>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntKeycap>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
export declare const Text: Story;
|
|
8
|
-
export declare const Icon: Story;
|
|
9
|
-
export declare const Summary: Story;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import AntKeycap from "../AntKeycap.vue";
|
|
2
|
-
import { AntKeycapSize } from "../__types/AntKeycap.types.mjs";
|
|
3
|
-
import { faChevronUp, faChevronDown } from "@fortawesome/free-solid-svg-icons";
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Components/Keycap",
|
|
6
|
-
component: AntKeycap,
|
|
7
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
8
|
-
argTypes: {
|
|
9
|
-
icon: {
|
|
10
|
-
control: { type: "none" },
|
|
11
|
-
description: "Will be displayed instead of the default slot if given.<br>Use Font-awesome Icons."
|
|
12
|
-
},
|
|
13
|
-
size: {
|
|
14
|
-
control: { type: "select" },
|
|
15
|
-
options: Object.values(AntKeycapSize)
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
export default meta;
|
|
20
|
-
export const Docs = {
|
|
21
|
-
render: (args) => ({
|
|
22
|
-
components: { AntKeycap },
|
|
23
|
-
setup() {
|
|
24
|
-
return { args };
|
|
25
|
-
},
|
|
26
|
-
template: '<div class="p-4"><AntKeycap v-bind="args">F</AntKeycap></div>'
|
|
27
|
-
}),
|
|
28
|
-
args: {
|
|
29
|
-
size: AntKeycapSize.sm
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
export const Text = {
|
|
33
|
-
render: Docs.render,
|
|
34
|
-
args: {
|
|
35
|
-
...Docs.args
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
export const Icon = {
|
|
39
|
-
render: Docs.render,
|
|
40
|
-
args: {
|
|
41
|
-
...Docs.args,
|
|
42
|
-
icon: faChevronUp
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
export const Summary = {
|
|
46
|
-
parameters: {
|
|
47
|
-
chromatic: { disableSnapshot: false }
|
|
48
|
-
},
|
|
49
|
-
render: (args) => ({
|
|
50
|
-
components: { AntKeycap, faChevronUp, faChevronDown },
|
|
51
|
-
setup() {
|
|
52
|
-
return { args, faChevronUp, faChevronDown };
|
|
53
|
-
},
|
|
54
|
-
template: `
|
|
55
|
-
<div class="p-4">
|
|
56
|
-
Press
|
|
57
|
-
<AntKeycap v-bind="args" :icon="faChevronUp"/>
|
|
58
|
-
or
|
|
59
|
-
<AntKeycap v-bind="args" :icon="faChevronDown"/>
|
|
60
|
-
to navigate. Press
|
|
61
|
-
<AntKeycap v-bind="args">ctl</AntKeycap>
|
|
62
|
-
+
|
|
63
|
-
<AntKeycap v-bind="args">K</AntKeycap>
|
|
64
|
-
to search.
|
|
65
|
-
</div>
|
|
66
|
-
`
|
|
67
|
-
}),
|
|
68
|
-
args: {}
|
|
69
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import AntListGroup from '../AntListGroup.vue';
|
|
2
|
-
import { type Meta, type StoryObj } from "@storybook/vue3";
|
|
3
|
-
declare const meta: Meta<typeof AntListGroup>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntListGroup>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
export declare const Skeleton: Story;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import AntListGroup from "../AntListGroup.vue";
|
|
2
|
-
import AntListGroupItem from "../AntListGroupItem.vue";
|
|
3
|
-
import { faDownload, faMessage, faUser, faCog } from "@fortawesome/free-solid-svg-icons";
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Components/List Group",
|
|
6
|
-
component: AntListGroup,
|
|
7
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
8
|
-
argTypes: {}
|
|
9
|
-
};
|
|
10
|
-
export default meta;
|
|
11
|
-
export const Docs = {
|
|
12
|
-
render: (args) => ({
|
|
13
|
-
components: { AntListGroup, AntListGroupItem },
|
|
14
|
-
setup() {
|
|
15
|
-
return { args, faUser, faDownload, faMessage, faCog };
|
|
16
|
-
},
|
|
17
|
-
template: `
|
|
18
|
-
<div class="p-4">
|
|
19
|
-
<AntListGroup v-bind="args">
|
|
20
|
-
<AntListGroupItem to="/example" :icon-left="faUser">Profile</AntListGroupItem>
|
|
21
|
-
<AntListGroupItem to="/example" :icon-left="faDownload">Downloads</AntListGroupItem>
|
|
22
|
-
<AntListGroupItem to="/example" :icon-left="faMessage">Messages</AntListGroupItem>
|
|
23
|
-
<AntListGroupItem to="/example" :icon-left="faCog">Settings</AntListGroupItem>
|
|
24
|
-
</AntListGroup>
|
|
25
|
-
</div>
|
|
26
|
-
`
|
|
27
|
-
}),
|
|
28
|
-
args: {}
|
|
29
|
-
};
|
|
30
|
-
export const Skeleton = {
|
|
31
|
-
render: Docs.render,
|
|
32
|
-
args: {
|
|
33
|
-
...Docs.args,
|
|
34
|
-
skeleton: true
|
|
35
|
-
}
|
|
36
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import AntListGroupItem from '../AntListGroupItem.vue';
|
|
2
|
-
import { type Meta, type StoryObj } from '@storybook/vue3';
|
|
3
|
-
declare const meta: Meta<typeof AntListGroupItem>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntListGroupItem>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
export declare const Link: Story;
|
|
8
|
-
export declare const IconLeft: Story;
|
|
9
|
-
export declare const IconRight: Story;
|
|
10
|
-
export declare const IconLeftAndRight: Story;
|