@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,62 +0,0 @@
|
|
|
1
|
-
import AntListGroupItem from "../AntListGroupItem.vue";
|
|
2
|
-
import { faUser, faChevronRight } from "@fortawesome/free-solid-svg-icons";
|
|
3
|
-
import { ListGroupItemState } from "../__types/AntListGroupItem.types.mjs";
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Components/List Group Item",
|
|
6
|
-
component: AntListGroupItem,
|
|
7
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
8
|
-
argTypes: {
|
|
9
|
-
state: {
|
|
10
|
-
control: { type: "select" },
|
|
11
|
-
options: Object.values(ListGroupItemState)
|
|
12
|
-
},
|
|
13
|
-
iconLeft: {
|
|
14
|
-
control: { type: "none" },
|
|
15
|
-
description: "Will be displayed right to the default slot.<br>Use Font-awesome Icons."
|
|
16
|
-
},
|
|
17
|
-
iconRight: {
|
|
18
|
-
control: { type: "none" },
|
|
19
|
-
description: "Will be displayed right to the default slot.<br>Use Font-awesome Icons."
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
export default meta;
|
|
24
|
-
export const Docs = {
|
|
25
|
-
render: (args) => ({
|
|
26
|
-
components: { AntListGroupItem },
|
|
27
|
-
setup() {
|
|
28
|
-
return { args };
|
|
29
|
-
},
|
|
30
|
-
template: '<div class="p-4 bg-neutral-100"><AntListGroupItem v-bind="args">Item</AntListGroupItem></div>'
|
|
31
|
-
}),
|
|
32
|
-
args: {}
|
|
33
|
-
};
|
|
34
|
-
export const Link = {
|
|
35
|
-
render: Docs.render,
|
|
36
|
-
args: {
|
|
37
|
-
...Docs.args,
|
|
38
|
-
to: "/example"
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
export const IconLeft = {
|
|
42
|
-
render: Docs.render,
|
|
43
|
-
args: {
|
|
44
|
-
...Docs.args,
|
|
45
|
-
iconLeft: faUser
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
export const IconRight = {
|
|
49
|
-
render: Docs.render,
|
|
50
|
-
args: {
|
|
51
|
-
...Docs.args,
|
|
52
|
-
iconRight: faChevronRight
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
export const IconLeftAndRight = {
|
|
56
|
-
render: Docs.render,
|
|
57
|
-
args: {
|
|
58
|
-
...Docs.args,
|
|
59
|
-
iconLeft: faUser,
|
|
60
|
-
iconRight: faChevronRight
|
|
61
|
-
}
|
|
62
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import AntModal from '../AntModal.vue';
|
|
2
|
-
import { type Meta, type StoryObj } from '@storybook/vue3';
|
|
3
|
-
declare const meta: Meta<typeof AntModal>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntModal>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
export declare const Fullscreen: Story;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import AntModal from "../AntModal.vue";
|
|
2
|
-
import AntButton from "../buttons/AntButton.vue";
|
|
3
|
-
import { computed } from "vue";
|
|
4
|
-
import AntKeycap from "../AntKeycap.vue";
|
|
5
|
-
const meta = {
|
|
6
|
-
title: "Components/Modal",
|
|
7
|
-
component: AntModal,
|
|
8
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
9
|
-
argTypes: {}
|
|
10
|
-
};
|
|
11
|
-
export default meta;
|
|
12
|
-
export const Docs = {
|
|
13
|
-
render: (args) => ({
|
|
14
|
-
components: { AntModal, AntButton, AntKeycap },
|
|
15
|
-
setup() {
|
|
16
|
-
const open = computed({
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
get: () => args.open,
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
set: (val) => args.open = val
|
|
21
|
-
});
|
|
22
|
-
return { args, open };
|
|
23
|
-
},
|
|
24
|
-
template: `
|
|
25
|
-
<div
|
|
26
|
-
class="p-4 h-96 flex items-center justify-center relative"
|
|
27
|
-
:class="{'border-b border-dashed': args.fullscreen}"
|
|
28
|
-
>
|
|
29
|
-
<div class="absolute inset-0">
|
|
30
|
-
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, <br/>
|
|
31
|
-
sed diam nonumy eirmod tempor invidunt <br/>
|
|
32
|
-
ut labore et dolore magna aliquyam erat, <br/>
|
|
33
|
-
sed diam voluptua. At vero eos et accusam et <br/>
|
|
34
|
-
justo duo dolores et ea rebum. Stet clita kasd
|
|
35
|
-
</div>
|
|
36
|
-
<div class="absolute bottom-0 right-0">
|
|
37
|
-
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, <br/>
|
|
38
|
-
sed diam nonumy eirmod tempor invidunt <br/>
|
|
39
|
-
ut labore et dolore magna aliquyam erat, <br/>
|
|
40
|
-
sed diam voluptua. At vero eos et accusam et <br/>
|
|
41
|
-
justo duo dolores et ea rebum. Stet clita kasd
|
|
42
|
-
</div>
|
|
43
|
-
<AntButton @click="() => open = true" state="primary">Open Modal</AntButton>
|
|
44
|
-
|
|
45
|
-
<AntModal v-bind="args" v-model:open="open">
|
|
46
|
-
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, <br/>
|
|
47
|
-
sed diam nonumy eirmod tempor invidunt <br/>
|
|
48
|
-
ut labore et dolore magna aliquyam erat, <br/>
|
|
49
|
-
sed diam voluptua. At vero eos et accusam et <br/>
|
|
50
|
-
justo duo dolores et ea rebum. Stet clita kasd
|
|
51
|
-
|
|
52
|
-
<template #footer>
|
|
53
|
-
<div class="flex justify-between items-center">
|
|
54
|
-
<div>
|
|
55
|
-
Press
|
|
56
|
-
<AntKeycap>esc</AntKeycap>
|
|
57
|
-
to close modal
|
|
58
|
-
</div>
|
|
59
|
-
|
|
60
|
-
<AntButton state="primary">Save</AntButton>
|
|
61
|
-
</div>
|
|
62
|
-
</template>
|
|
63
|
-
</AntModal>
|
|
64
|
-
</div>
|
|
65
|
-
`
|
|
66
|
-
}),
|
|
67
|
-
args: {
|
|
68
|
-
title: "Lorem ipsum dolor"
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
export const Fullscreen = {
|
|
72
|
-
render: Docs.render,
|
|
73
|
-
args: {
|
|
74
|
-
...Docs.args,
|
|
75
|
-
open: true,
|
|
76
|
-
fullscreen: true
|
|
77
|
-
}
|
|
78
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import AntPagination from '../AntPagination.vue';
|
|
2
|
-
import { type Meta, type StoryObj } from '@storybook/vue3';
|
|
3
|
-
declare const meta: Meta<typeof AntPagination>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntPagination>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
export declare const LightVersion: Story;
|
|
8
|
-
export declare const Skeleton: Story;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import AntPagination from "../AntPagination.vue";
|
|
2
|
-
import { faAngleRight } from "@fortawesome/free-solid-svg-icons";
|
|
3
|
-
const meta = {
|
|
4
|
-
title: "Components/Pagination",
|
|
5
|
-
component: AntPagination,
|
|
6
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
7
|
-
argTypes: {
|
|
8
|
-
pageQuery: {
|
|
9
|
-
description: "Which query parameter should be used, for writing the current page into it."
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
export default meta;
|
|
14
|
-
export const Docs = {
|
|
15
|
-
render: (args) => ({
|
|
16
|
-
components: { AntPagination },
|
|
17
|
-
setup() {
|
|
18
|
-
return { args, faAngleRight };
|
|
19
|
-
},
|
|
20
|
-
template: '<AntPagination v-bind="args"/>'
|
|
21
|
-
}),
|
|
22
|
-
args: {
|
|
23
|
-
pages: 20
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
export const LightVersion = {
|
|
27
|
-
render: Docs.render,
|
|
28
|
-
args: {
|
|
29
|
-
...Docs.args,
|
|
30
|
-
lightVersion: true
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
export const Skeleton = {
|
|
34
|
-
render: Docs.render,
|
|
35
|
-
args: {
|
|
36
|
-
...Docs.args,
|
|
37
|
-
skeleton: true
|
|
38
|
-
}
|
|
39
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import AntPopover from "../AntPopover.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/Popover",
|
|
7
|
-
component: AntPopover,
|
|
8
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
9
|
-
argTypes: {
|
|
10
|
-
position: {
|
|
11
|
-
control: { type: "select" },
|
|
12
|
-
options: Object.values(Position)
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
export default meta;
|
|
17
|
-
export const Docs = {
|
|
18
|
-
render: (args) => ({
|
|
19
|
-
components: { AntPopover, AntButton },
|
|
20
|
-
setup() {
|
|
21
|
-
const dummyText = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.";
|
|
22
|
-
const showPopover = computed({
|
|
23
|
-
get() {
|
|
24
|
-
return args.showPopover;
|
|
25
|
-
},
|
|
26
|
-
set(val) {
|
|
27
|
-
args.showPopover = val;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
return { args, showPopover, dummyText };
|
|
31
|
-
},
|
|
32
|
-
template: `
|
|
33
|
-
<div class="p-64 flex justify-center items-center">
|
|
34
|
-
<AntPopover popover-classes="w-64" v-bind="args">
|
|
35
|
-
<template #content>{{ dummyText }}</template>
|
|
36
|
-
<template #default>
|
|
37
|
-
<AntButton @click="() => showPopover = !showPopover" filled>Click me</AntButton>
|
|
38
|
-
</template>
|
|
39
|
-
</AntPopover>
|
|
40
|
-
</div>
|
|
41
|
-
`
|
|
42
|
-
}),
|
|
43
|
-
args: {
|
|
44
|
-
showPopover: true,
|
|
45
|
-
title: "Title"
|
|
46
|
-
}
|
|
47
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import AntSkeleton from '../AntSkeleton.vue';
|
|
2
|
-
import { type Meta, type StoryObj } from '@storybook/vue3';
|
|
3
|
-
declare const meta: Meta<typeof AntSkeleton>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntSkeleton>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
export declare const Rounded: Story;
|
|
8
|
-
export declare const Grouped: Story;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import AntSkeleton from "../AntSkeleton.vue";
|
|
2
|
-
import { Grouped as _Grouped } from "../../enums/Grouped.enum.mjs";
|
|
3
|
-
const meta = {
|
|
4
|
-
title: "Components/Skeleton",
|
|
5
|
-
component: AntSkeleton,
|
|
6
|
-
argTypes: {
|
|
7
|
-
grouped: {
|
|
8
|
-
control: { type: "select" },
|
|
9
|
-
options: Object.values(_Grouped),
|
|
10
|
-
description: "Where is this fields position in a group",
|
|
11
|
-
table: { defaultValue: { summary: _Grouped.none } }
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
export default meta;
|
|
16
|
-
export const Docs = {
|
|
17
|
-
render: (args) => ({
|
|
18
|
-
components: { AntSkeleton },
|
|
19
|
-
setup() {
|
|
20
|
-
return { args };
|
|
21
|
-
},
|
|
22
|
-
template: `
|
|
23
|
-
<AntSkeleton
|
|
24
|
-
v-bind="args"
|
|
25
|
-
class="h-5 w-full"
|
|
26
|
-
/>`
|
|
27
|
-
}),
|
|
28
|
-
args: {}
|
|
29
|
-
};
|
|
30
|
-
export const Rounded = {
|
|
31
|
-
render: Docs.render,
|
|
32
|
-
args: {
|
|
33
|
-
...Docs.args,
|
|
34
|
-
rounded: true
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
export const Grouped = {
|
|
38
|
-
render: Docs.render,
|
|
39
|
-
args: {
|
|
40
|
-
...Docs.args,
|
|
41
|
-
grouped: _Grouped.left
|
|
42
|
-
}
|
|
43
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import AntSpinner from "../AntSpinner.vue";
|
|
2
|
-
import { AntSpinnerSize } from "../__types/AntSpinner.types.mjs";
|
|
3
|
-
import { State } from "../../enums/State.enum.mjs";
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Components/Spinner",
|
|
6
|
-
component: AntSpinner,
|
|
7
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
8
|
-
argTypes: {
|
|
9
|
-
size: {
|
|
10
|
-
control: { type: "select" },
|
|
11
|
-
options: Object.values(AntSpinnerSize),
|
|
12
|
-
table: { defaultValue: { summary: AntSpinnerSize.md } }
|
|
13
|
-
},
|
|
14
|
-
state: {
|
|
15
|
-
control: { type: "select" },
|
|
16
|
-
options: Object.values(State)
|
|
17
|
-
},
|
|
18
|
-
inverted: {
|
|
19
|
-
control: "boolean",
|
|
20
|
-
table: { defaultValue: { summary: false } }
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
export default meta;
|
|
25
|
-
export const Docs = {
|
|
26
|
-
render: (args) => ({
|
|
27
|
-
components: { AntSpinner },
|
|
28
|
-
setup() {
|
|
29
|
-
return { args };
|
|
30
|
-
},
|
|
31
|
-
template: '<div class="p-4"><AntSpinner v-bind="args" /></div>'
|
|
32
|
-
}),
|
|
33
|
-
args: {}
|
|
34
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import AntTag from '../AntTag.vue';
|
|
2
|
-
import { type Meta, type StoryObj } from '@storybook/vue3';
|
|
3
|
-
declare const meta: Meta<typeof AntTag>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntTag>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
export declare const IconLeft: Story;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import AntTag from "../AntTag.vue";
|
|
2
|
-
import { AntTagSize, TagState } from "../__types/AntTag.types.mjs";
|
|
3
|
-
import { faTag } from "@fortawesome/free-solid-svg-icons";
|
|
4
|
-
const meta = {
|
|
5
|
-
title: "Components/Tag",
|
|
6
|
-
component: AntTag,
|
|
7
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
8
|
-
argTypes: {
|
|
9
|
-
size: {
|
|
10
|
-
control: { type: "select" },
|
|
11
|
-
options: Object.values(AntTagSize)
|
|
12
|
-
},
|
|
13
|
-
state: {
|
|
14
|
-
control: { type: "select" },
|
|
15
|
-
options: Object.values(TagState)
|
|
16
|
-
},
|
|
17
|
-
iconLeft: {
|
|
18
|
-
control: { type: "none" },
|
|
19
|
-
description: "Will be displayed left to the default slot.<br>Use Font-awesome Icons."
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
export default meta;
|
|
24
|
-
export const Docs = {
|
|
25
|
-
render: (args) => ({
|
|
26
|
-
components: { AntTag },
|
|
27
|
-
setup() {
|
|
28
|
-
function logClick() {
|
|
29
|
-
console.log("Clicked close icon");
|
|
30
|
-
}
|
|
31
|
-
return { args, logClick };
|
|
32
|
-
},
|
|
33
|
-
template: '<div class="p-4"><AntTag v-bind="args" @close="logClick">Tag</AntTag></div>'
|
|
34
|
-
}),
|
|
35
|
-
args: {}
|
|
36
|
-
};
|
|
37
|
-
export const IconLeft = {
|
|
38
|
-
render: Docs.render,
|
|
39
|
-
args: {
|
|
40
|
-
...Docs.args,
|
|
41
|
-
iconLeft: faTag
|
|
42
|
-
}
|
|
43
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import AntToast from '../AntToast.vue';
|
|
2
|
-
import { type Meta, type StoryObj } from '@storybook/vue3';
|
|
3
|
-
declare const meta: Meta<typeof AntToast>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntToast>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
export declare const WithContent: Story;
|
|
8
|
-
export declare const WithoutContent: Story;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import AntToast from "../AntToast.vue";
|
|
2
|
-
import { InputState } from "../../enums/index.mjs";
|
|
3
|
-
const meta = {
|
|
4
|
-
title: "Components/Toast",
|
|
5
|
-
component: AntToast,
|
|
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: { AntToast },
|
|
18
|
-
setup() {
|
|
19
|
-
function logClick() {
|
|
20
|
-
console.log("Clicked close icon");
|
|
21
|
-
}
|
|
22
|
-
function logUndoClick() {
|
|
23
|
-
console.log("Clicked undo button");
|
|
24
|
-
}
|
|
25
|
-
return { args, logClick, logUndoClick };
|
|
26
|
-
},
|
|
27
|
-
template: `
|
|
28
|
-
<div class="p-4">
|
|
29
|
-
<AntToast v-bind="args" @close="logClick" @undo="logUndoClick">
|
|
30
|
-
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, <br/>
|
|
31
|
-
sed diam nonumy eirmod tempor invidunt <br/>
|
|
32
|
-
ut labore et dolore magna aliquyam erat, <br/>
|
|
33
|
-
sed diam voluptua. At vero eos et accusam et <br/>
|
|
34
|
-
justo duo dolores et ea rebum. Stet clita kasd
|
|
35
|
-
</AntToast>
|
|
36
|
-
</div>
|
|
37
|
-
`
|
|
38
|
-
}),
|
|
39
|
-
args: {
|
|
40
|
-
title: "Lorem ipsum dolor",
|
|
41
|
-
showUndo: true
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
export const WithContent = {
|
|
45
|
-
render: Docs.render,
|
|
46
|
-
args: {
|
|
47
|
-
...Docs.args
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
export const WithoutContent = {
|
|
51
|
-
render: (args, ctx) => ({
|
|
52
|
-
// @ts-ignore
|
|
53
|
-
components: Docs.render(args, ctx).components,
|
|
54
|
-
// @ts-ignore
|
|
55
|
-
setup: Docs.render(args, ctx).setup,
|
|
56
|
-
template: `
|
|
57
|
-
<div class="p-4">
|
|
58
|
-
<AntToast v-bind="args" @close="logClick" @undo="logUndoClick"></AntToast>
|
|
59
|
-
</div>
|
|
60
|
-
`
|
|
61
|
-
}),
|
|
62
|
-
args: {
|
|
63
|
-
...Docs.args,
|
|
64
|
-
showUndo: false
|
|
65
|
-
}
|
|
66
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { InputState } from '../../enums';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
parameters: {
|
|
5
|
-
controls: {
|
|
6
|
-
sort: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
argTypes: {
|
|
10
|
-
position: {
|
|
11
|
-
description: string;
|
|
12
|
-
table: {
|
|
13
|
-
defaultValue: {
|
|
14
|
-
summary: string;
|
|
15
|
-
};
|
|
16
|
-
type: {
|
|
17
|
-
summary: string;
|
|
18
|
-
detail: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
25
|
-
export declare const Simple: (args: any) => {
|
|
26
|
-
components: {
|
|
27
|
-
AntButton: any;
|
|
28
|
-
};
|
|
29
|
-
setup(): {
|
|
30
|
-
args: any;
|
|
31
|
-
InputState: typeof InputState;
|
|
32
|
-
};
|
|
33
|
-
template: string;
|
|
34
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import AntButton from "../buttons/AntButton.vue";
|
|
2
|
-
import { CornerPosition, InputState } from "../../enums/index.mjs";
|
|
3
|
-
import { enumToPlainText } from "../../utils.mjs";
|
|
4
|
-
export default {
|
|
5
|
-
title: "Components/Toaster",
|
|
6
|
-
parameters: { controls: { sort: "requiredFirst" } },
|
|
7
|
-
argTypes: {
|
|
8
|
-
position: {
|
|
9
|
-
description: "Defines where the toasts will appear",
|
|
10
|
-
table: {
|
|
11
|
-
defaultValue: {
|
|
12
|
-
summary: "CornerPosition.bottomRight"
|
|
13
|
-
},
|
|
14
|
-
type: {
|
|
15
|
-
summary: "CornerPosition",
|
|
16
|
-
detail: enumToPlainText(CornerPosition, "CornerPosition")
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
export const Simple = (args) => ({
|
|
23
|
-
components: { AntButton },
|
|
24
|
-
setup() {
|
|
25
|
-
return { args, InputState };
|
|
26
|
-
},
|
|
27
|
-
template: `
|
|
28
|
-
<div class="flex flex-col m-4 space-y-2">
|
|
29
|
-
<p>
|
|
30
|
-
This module use the <code>useNuxtApp</code> and <code>defineNuxtPlugin</code> functions to provide the toaster to the app. <br>
|
|
31
|
-
Because storybook does not support nuxt enternals, the component is not useable here. <br>
|
|
32
|
-
To test it, open the nuxt playground.
|
|
33
|
-
</p>
|
|
34
|
-
|
|
35
|
-
<AntButton
|
|
36
|
-
v-for="state in Object.values(InputState)"
|
|
37
|
-
>
|
|
38
|
-
Toast {{ state }}
|
|
39
|
-
</AntButton>
|
|
40
|
-
</div>
|
|
41
|
-
`
|
|
42
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import AntTooltip from '../AntTooltip.vue';
|
|
2
|
-
import { type Meta, type StoryObj } from '@storybook/vue3';
|
|
3
|
-
declare const meta: Meta<typeof AntTooltip>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AntTooltip>;
|
|
6
|
-
export declare const Docs: Story;
|
|
7
|
-
/**
|
|
8
|
-
* Make sure, no tooltip get shown if no content is provided.
|
|
9
|
-
*/
|
|
10
|
-
export declare const WithoutContent: Story;
|
|
11
|
-
/**
|
|
12
|
-
* Test multiple tooltips in one page to make sure that
|
|
13
|
-
* each tooltips delay does not bug with others.
|
|
14
|
-
*/
|
|
15
|
-
export declare const Multiple: Story;
|
|
16
|
-
export declare const Summary: Story;
|