@antify/ui-module 1.6.0 → 1.7.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/dist/module.d.mts +182 -51
- package/dist/module.d.ts +182 -51
- package/dist/module.json +1 -1
- package/dist/module.mjs +152 -49
- package/dist/runtime/components/AntAccordion.vue +10 -5
- package/dist/runtime/components/AntAccordionItem.vue +19 -7
- package/dist/runtime/components/AntAlert.vue +27 -27
- package/dist/runtime/components/AntCard.vue +34 -0
- package/dist/runtime/components/AntDropdown.vue +2 -2
- package/dist/runtime/components/AntIcon.vue +21 -16
- package/dist/runtime/components/AntKeycap.vue +26 -5
- package/dist/runtime/components/AntListGroupItem.vue +24 -28
- package/dist/runtime/components/AntModal.vue +5 -5
- package/dist/runtime/components/AntPagination.vue +45 -45
- package/dist/runtime/components/AntPopover.vue +3 -3
- package/dist/runtime/components/AntSpinner.vue +56 -50
- package/dist/runtime/components/AntTag.vue +75 -40
- package/dist/runtime/components/AntToast.vue +40 -31
- package/dist/runtime/components/AntToaster.vue +14 -9
- package/dist/runtime/components/AntTooltip.vue +75 -69
- package/dist/runtime/components/__stories/AntAccordion.stories.mjs +3 -2
- package/dist/runtime/components/__stories/AntAlert.stories.mjs +3 -3
- package/dist/runtime/components/__stories/AntCard.stories.d.ts +7 -0
- package/dist/runtime/components/__stories/AntCard.stories.mjs +87 -0
- package/dist/runtime/components/__stories/AntIcon.stories.mjs +7 -4
- package/dist/runtime/components/__stories/AntKeycap.stories.mjs +8 -1
- package/dist/runtime/components/__stories/AntListGroupItem.stories.mjs +3 -3
- package/dist/runtime/components/__stories/AntModal.stories.mjs +2 -2
- package/dist/runtime/components/__stories/AntSpinner.stories.mjs +7 -7
- package/dist/runtime/components/__stories/AntTag.stories.mjs +5 -6
- package/dist/runtime/components/__stories/AntToast.stories.mjs +3 -3
- package/dist/runtime/components/__stories/AntToaster.stories.d.ts +2 -2
- package/dist/runtime/components/__stories/AntToaster.stories.mjs +4 -4
- package/dist/runtime/components/__stories/AntTooltip.stories.d.ts +5 -0
- package/dist/runtime/components/__stories/AntTooltip.stories.mjs +35 -11
- package/dist/runtime/components/__types/AntIcon.types.d.ts +5 -3
- package/dist/runtime/components/__types/AntIcon.types.mjs +5 -3
- package/dist/runtime/components/__types/AntKeycap.types.d.ts +4 -0
- package/dist/runtime/components/__types/AntKeycap.types.mjs +5 -0
- package/dist/runtime/components/__types/AntListGroupItem.types.d.ts +9 -0
- package/dist/runtime/components/__types/AntListGroupItem.types.mjs +10 -0
- package/dist/runtime/components/__types/AntSpinner.types.d.ts +10 -0
- package/dist/runtime/components/__types/AntSpinner.types.mjs +11 -0
- package/dist/runtime/components/__types/AntTag.types.d.ts +17 -0
- package/dist/runtime/components/__types/AntTag.types.mjs +19 -0
- package/dist/runtime/components/__types/AntToaster.types.d.ts +2 -2
- package/dist/runtime/components/__types/index.d.ts +6 -1
- package/dist/runtime/components/__types/index.mjs +6 -1
- package/dist/runtime/components/buttons/AntActionButton.vue +26 -23
- package/dist/runtime/components/buttons/AntButton.vue +85 -75
- package/dist/runtime/components/buttons/AntCreateButton.vue +2 -2
- package/dist/runtime/components/buttons/AntDeleteButton.vue +2 -2
- package/dist/runtime/components/buttons/AntDuplicateButton.vue +2 -2
- package/dist/runtime/components/buttons/AntEditButton.vue +2 -2
- package/dist/runtime/components/buttons/AntSaveAndNewButton.vue +14 -13
- package/dist/runtime/components/buttons/AntSaveButton.vue +13 -12
- package/dist/runtime/components/buttons/__stories/AntActionButton.stories.mjs +15 -11
- package/dist/runtime/components/buttons/__stories/AntButton.stories.mjs +39 -36
- package/dist/runtime/components/buttons/__stories/AntCreateButton.stories.mjs +1 -1
- package/dist/runtime/components/buttons/__stories/AntDeleteButton.stories.mjs +1 -1
- package/dist/runtime/components/buttons/__stories/AntDuplicateButton.stories.mjs +1 -1
- package/dist/runtime/components/buttons/__stories/AntEditButton.stories.mjs +1 -1
- package/dist/runtime/components/buttons/__stories/AntSaveAndNewButton.stories.mjs +1 -1
- package/dist/runtime/components/buttons/__stories/AntSaveButton.stories.mjs +1 -1
- package/dist/runtime/components/buttons/__types/index.d.ts +1 -1
- package/dist/runtime/components/buttons/__types/index.mjs +1 -1
- package/dist/runtime/components/crud/AntCrudDetailActions.vue +2 -2
- package/dist/runtime/components/crud/AntCrudDetailNav.vue +10 -3
- package/dist/runtime/components/crud/AntCrudTableFilter.vue +14 -14
- package/dist/runtime/components/crud/AntCrudTableNav.vue +27 -27
- package/dist/runtime/components/crud/__stories/AntCrud.stories.mjs +1 -1
- package/dist/runtime/components/dialogs/AntDeleteDialog.vue +3 -3
- package/dist/runtime/components/dialogs/AntDialog.vue +23 -23
- package/dist/runtime/components/dialogs/__stories/AndDeleteDialog.stories.mjs +3 -1
- package/dist/runtime/components/dialogs/__stories/AntDialog.stories.mjs +4 -4
- package/dist/runtime/components/forms/AntField.vue +123 -0
- package/dist/runtime/components/forms/AntFormGroupLabel.vue +5 -0
- package/dist/runtime/components/{form/Elements → forms}/__stories/AntField.stories.mjs +15 -15
- package/dist/runtime/components/{form → forms}/__stories/AntFormGroup.stories.mjs +3 -3
- package/dist/runtime/components/{form → forms}/__stories/AntFormGroupLabel.stories.mjs +1 -1
- package/dist/runtime/components/index.d.ts +46 -6
- package/dist/runtime/components/index.mjs +90 -7
- package/dist/runtime/components/inputs/AntCheckbox.vue +183 -0
- package/dist/runtime/components/inputs/AntCheckboxGroup.vue +117 -0
- package/dist/runtime/components/inputs/AntDateInput.vue +97 -0
- package/{src/runtime/components/form → dist/runtime/components/inputs}/AntNumberInput.vue +28 -50
- package/dist/runtime/components/inputs/AntPasswordInput.vue +107 -0
- package/dist/runtime/components/inputs/AntRadio.vue +192 -0
- package/dist/runtime/components/inputs/AntRadioGroup.vue +116 -0
- package/dist/runtime/components/inputs/AntRangeSlider.vue +101 -0
- package/{src/runtime/components/form → dist/runtime/components/inputs}/AntSearch.vue +17 -21
- package/dist/runtime/components/{form → inputs}/AntSelect.vue +68 -60
- package/dist/runtime/components/inputs/AntSwitch.vue +192 -0
- package/dist/runtime/components/inputs/AntSwitcher.vue +196 -0
- package/{src/runtime/components/form → dist/runtime/components/inputs}/AntTagInput.vue +94 -69
- package/dist/runtime/components/inputs/AntTextInput.vue +72 -0
- package/dist/runtime/components/{form → inputs}/AntTextarea.vue +53 -41
- package/dist/runtime/components/{form → inputs}/AntUnitInput.vue +17 -23
- package/dist/runtime/components/inputs/Elements/AntBaseInput.vue +256 -0
- package/dist/runtime/components/{form → inputs}/Elements/AntDropDown.vue +29 -30
- package/dist/runtime/components/{form → inputs}/Elements/AntInputDescription.vue +17 -14
- package/dist/runtime/components/inputs/Elements/AntInputLabel.vue +65 -0
- package/dist/runtime/components/inputs/Elements/AntInputLimiter.vue +58 -0
- package/dist/runtime/components/{form → inputs}/Elements/__stories/AntBaseInput.stories.d.ts +2 -0
- package/dist/runtime/components/inputs/Elements/__stories/AntBaseInput.stories.mjs +234 -0
- package/dist/runtime/components/{form → inputs}/Elements/__stories/AntInputDescription.stories.mjs +5 -5
- package/dist/runtime/components/{form → inputs}/Elements/__stories/AntInputLabel.stories.mjs +3 -3
- package/dist/runtime/components/{form → inputs}/Elements/__stories/AntInputLimiter.stories.mjs +5 -5
- package/dist/runtime/components/inputs/Elements/__types/index.d.ts +1 -0
- package/dist/runtime/components/inputs/Elements/__types/index.mjs +1 -0
- package/dist/runtime/components/{form → inputs}/Elements/index.d.ts +1 -1
- package/dist/runtime/components/{form → inputs}/Elements/index.mjs +1 -1
- package/dist/runtime/components/inputs/__stories/AntCheckbox.stories.mjs +341 -0
- package/dist/runtime/components/{form/AntCheckboxWidget → inputs}/__stories/AntCheckboxGroup.stories.mjs +23 -34
- package/dist/runtime/components/inputs/__stories/AntDateInput.stories.d.ts +8 -0
- package/dist/runtime/components/inputs/__stories/AntDateInput.stories.mjs +193 -0
- package/dist/runtime/components/{form → inputs}/__stories/AntNumberInput.stories.d.ts +2 -1
- package/dist/runtime/components/inputs/__stories/AntNumberInput.stories.mjs +106 -0
- package/dist/runtime/components/inputs/__stories/AntPasswordInput.stories.d.ts +8 -0
- package/dist/runtime/components/inputs/__stories/AntPasswordInput.stories.mjs +156 -0
- package/dist/runtime/components/{form/AntRadioWidget → inputs}/__stories/AntRadioGroup.stories.d.ts +1 -1
- package/dist/runtime/components/inputs/__stories/AntRadioGroup.stories.mjs +243 -0
- package/dist/runtime/components/inputs/__stories/AntRangeSlider.stories.d.ts +7 -0
- package/dist/runtime/components/inputs/__stories/AntRangeSlider.stories.mjs +67 -0
- package/dist/runtime/components/{form → inputs}/__stories/AntSearch.stories.d.ts +1 -0
- package/dist/runtime/components/inputs/__stories/AntSearch.stories.mjs +103 -0
- package/dist/runtime/components/{form → inputs}/__stories/AntSelect.stories.mjs +78 -46
- package/dist/runtime/components/{form → inputs}/__stories/AntSwitch.stories.d.ts +1 -1
- package/dist/runtime/components/inputs/__stories/AntSwitch.stories.mjs +344 -0
- package/dist/runtime/components/{form → inputs}/__stories/AntSwitcher.stories.d.ts +1 -1
- package/dist/runtime/components/inputs/__stories/AntSwitcher.stories.mjs +235 -0
- package/dist/runtime/components/{form → inputs}/__stories/AntTagInput.stories.d.ts +3 -3
- package/dist/runtime/components/inputs/__stories/AntTagInput.stories.mjs +228 -0
- package/dist/runtime/components/{form → inputs}/__stories/AntTextInput.stories.d.ts +2 -0
- package/dist/runtime/components/inputs/__stories/AntTextInput.stories.mjs +225 -0
- package/dist/runtime/components/{form → inputs}/__stories/AntTextarea.stories.d.ts +1 -0
- package/dist/runtime/components/{form → inputs}/__stories/AntTextarea.stories.mjs +44 -31
- package/dist/runtime/components/{form → inputs}/__stories/AntUnitInput.stories.d.ts +1 -0
- package/dist/runtime/components/{form → inputs}/__stories/AntUnitInput.stories.mjs +49 -17
- package/dist/runtime/components/{form/AntCheckboxWidget/__types/AntCheckbox.d.ts → inputs/__types/AntCheckbox.types.d.ts} +4 -0
- package/dist/runtime/components/inputs/__types/AntCheckbox.types.mjs +5 -0
- package/dist/runtime/components/inputs/__types/AntDateInput.types.d.ts +7 -0
- package/dist/runtime/components/inputs/__types/AntDateInput.types.mjs +8 -0
- package/dist/runtime/components/inputs/__types/AntRadio.types.d.ts +13 -0
- package/dist/runtime/components/inputs/__types/AntRadio.types.mjs +5 -0
- package/dist/runtime/components/inputs/__types/AntTagInput.types.d.ts +5 -0
- package/dist/runtime/components/inputs/__types/AntTagInput.types.mjs +6 -0
- package/dist/runtime/components/{form/__types/AntTextInput.type.d.ts → inputs/__types/AntTextInput.types.d.ts} +0 -1
- package/dist/runtime/components/{form/__types/AntTextInput.type.mjs → inputs/__types/AntTextInput.types.mjs} +0 -1
- package/dist/runtime/components/inputs/__types/index.d.ts +7 -0
- package/dist/runtime/components/inputs/__types/index.mjs +7 -0
- package/dist/runtime/components/layouts/AntNavLeftLayout.vue +3 -3
- package/dist/runtime/components/navbar/AntNavbar.vue +10 -10
- package/dist/runtime/components/navbar/AntNavbarItem.vue +5 -5
- package/dist/runtime/components/navbar/__types/{NavbarItem.d.ts → NavbarItem.types.d.ts} +2 -2
- package/dist/runtime/components/navbar/__types/index.d.ts +1 -0
- package/dist/runtime/components/navbar/__types/index.mjs +1 -0
- package/dist/runtime/components/table/AntTable.vue +10 -6
- package/dist/runtime/components/table/AntTableSortButton.vue +37 -27
- package/dist/runtime/components/table/AntTd.vue +21 -10
- package/dist/runtime/components/table/AntTh.vue +21 -14
- package/dist/runtime/components/table/__stories/AntTable.stories.mjs +35 -36
- package/dist/runtime/components/table/__types/{TableHeader.type.d.ts → TableHeader.types.d.ts} +5 -0
- package/dist/runtime/components/table/__types/{TableHeader.type.mjs → TableHeader.types.mjs} +6 -0
- package/dist/runtime/components/table/__types/index.d.ts +1 -0
- package/dist/runtime/components/table/__types/index.mjs +1 -0
- package/dist/runtime/components/tabs/AntTabItem.vue +34 -34
- package/dist/runtime/components/tabs/__stories/AntTabItem.stories.mjs +4 -4
- package/dist/runtime/components/tabs/__stories/AntTabs.stories.mjs +3 -3
- package/dist/runtime/components/tabs/__types/AntTabItem.types.d.ts +2 -2
- package/dist/runtime/components/tabs/__types/AntTabItem.types.mjs +6 -6
- package/dist/runtime/components/tabs/__types/index.d.ts +1 -0
- package/dist/runtime/components/tabs/__types/index.mjs +1 -0
- package/dist/runtime/composables/useUi.d.ts +6 -6
- package/dist/runtime/composables/useUi.mjs +8 -8
- package/dist/runtime/enums/Size.enum.d.ts +4 -1
- package/dist/runtime/enums/Size.enum.mjs +4 -1
- package/dist/runtime/enums/{ColorType.enum.d.ts → State.enum.d.ts} +2 -2
- package/dist/runtime/enums/State.enum.mjs +18 -0
- package/dist/runtime/enums/index.d.ts +2 -1
- package/dist/runtime/enums/index.mjs +2 -1
- package/dist/runtime/plugins/toaster.d.ts +2 -2
- package/dist/runtime/plugins/toaster.mjs +5 -5
- package/dist/runtime/plugins/ui-module.mjs +1 -1
- package/dist/runtime/tailwind.config.d.ts +1 -181
- package/dist/runtime/tailwind.config.mjs +3 -0
- package/dist/runtime/types.d.ts +5 -4
- package/dist/runtime/types.mjs +5 -4
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
- package/src/runtime/components/AntAccordion.vue +10 -5
- package/src/runtime/components/AntAccordionItem.vue +19 -7
- package/src/runtime/components/AntAlert.vue +27 -27
- package/src/runtime/components/AntCard.vue +34 -0
- package/src/runtime/components/AntDropdown.vue +2 -2
- package/src/runtime/components/AntIcon.vue +21 -16
- package/src/runtime/components/AntKeycap.vue +26 -5
- package/src/runtime/components/AntListGroupItem.vue +24 -28
- package/src/runtime/components/AntModal.vue +5 -5
- package/src/runtime/components/AntPagination.vue +45 -45
- package/src/runtime/components/AntPopover.vue +3 -3
- package/src/runtime/components/AntSpinner.vue +56 -50
- package/src/runtime/components/AntTag.vue +75 -40
- package/src/runtime/components/AntToast.vue +40 -31
- package/src/runtime/components/AntToaster.vue +16 -17
- package/src/runtime/components/AntTooltip.vue +75 -69
- package/src/runtime/components/buttons/AntActionButton.vue +26 -23
- package/src/runtime/components/buttons/AntButton.vue +85 -75
- package/src/runtime/components/buttons/AntCreateButton.vue +2 -2
- package/src/runtime/components/buttons/AntDeleteButton.vue +2 -2
- package/src/runtime/components/buttons/AntDuplicateButton.vue +2 -2
- package/src/runtime/components/buttons/AntEditButton.vue +2 -2
- package/src/runtime/components/buttons/AntSaveAndNewButton.vue +14 -13
- package/src/runtime/components/buttons/AntSaveButton.vue +13 -12
- package/src/runtime/components/crud/AntCrudDetailActions.vue +2 -2
- package/src/runtime/components/crud/AntCrudDetailNav.vue +10 -3
- package/src/runtime/components/crud/AntCrudTableFilter.vue +14 -14
- package/src/runtime/components/crud/AntCrudTableNav.vue +27 -27
- package/src/runtime/components/dialogs/AntDeleteDialog.vue +3 -3
- package/src/runtime/components/dialogs/AntDialog.vue +23 -23
- package/src/runtime/components/forms/AntField.vue +123 -0
- package/src/runtime/components/forms/AntFormGroupLabel.vue +5 -0
- package/src/runtime/components/inputs/AntCheckbox.vue +202 -0
- package/src/runtime/components/inputs/AntCheckboxGroup.vue +117 -0
- package/src/runtime/components/inputs/AntDateInput.vue +97 -0
- package/{dist/runtime/components/form → src/runtime/components/inputs}/AntNumberInput.vue +28 -50
- package/src/runtime/components/inputs/AntPasswordInput.vue +107 -0
- package/src/runtime/components/inputs/AntRadio.vue +200 -0
- package/src/runtime/components/inputs/AntRadioGroup.vue +116 -0
- package/src/runtime/components/inputs/AntRangeSlider.vue +121 -0
- package/{dist/runtime/components/form → src/runtime/components/inputs}/AntSearch.vue +17 -21
- package/src/runtime/components/{form → inputs}/AntSelect.vue +68 -60
- package/src/runtime/components/inputs/AntSwitch.vue +192 -0
- package/src/runtime/components/inputs/AntSwitcher.vue +196 -0
- package/{dist/runtime/components/form → src/runtime/components/inputs}/AntTagInput.vue +94 -69
- package/src/runtime/components/inputs/AntTextInput.vue +72 -0
- package/src/runtime/components/{form → inputs}/AntTextarea.vue +53 -41
- package/src/runtime/components/{form → inputs}/AntUnitInput.vue +17 -23
- package/src/runtime/components/inputs/Elements/AntBaseInput.vue +304 -0
- package/src/runtime/components/{form → inputs}/Elements/AntDropDown.vue +29 -30
- package/src/runtime/components/{form → inputs}/Elements/AntInputDescription.vue +17 -14
- package/src/runtime/components/inputs/Elements/AntInputLabel.vue +65 -0
- package/src/runtime/components/inputs/Elements/AntInputLimiter.vue +58 -0
- package/src/runtime/components/layouts/AntNavLeftLayout.vue +3 -3
- package/src/runtime/components/navbar/AntNavbar.vue +10 -10
- package/src/runtime/components/navbar/AntNavbarItem.vue +5 -5
- package/src/runtime/components/table/AntTable.vue +10 -6
- package/src/runtime/components/table/AntTableSortButton.vue +37 -27
- package/src/runtime/components/table/AntTd.vue +21 -10
- package/src/runtime/components/table/AntTh.vue +21 -14
- package/src/runtime/components/tabs/AntTabItem.vue +34 -34
- package/dist/runtime/components/form/AntCheckboxWidget/AntCheckbox.vue +0 -144
- package/dist/runtime/components/form/AntCheckboxWidget/AntCheckboxGroup.vue +0 -91
- package/dist/runtime/components/form/AntCheckboxWidget/__stories/AntCheckbox.stories.mjs +0 -289
- package/dist/runtime/components/form/AntFormGroupLabel.vue +0 -5
- package/dist/runtime/components/form/AntRadioWidget/AntRadio.vue +0 -139
- package/dist/runtime/components/form/AntRadioWidget/AntRadioGroup.vue +0 -80
- package/dist/runtime/components/form/AntRadioWidget/__stories/AntRadio.stories.d.ts +0 -8
- package/dist/runtime/components/form/AntRadioWidget/__stories/AntRadio.stories.mjs +0 -79
- package/dist/runtime/components/form/AntRadioWidget/__stories/AntRadioGroup.stories.mjs +0 -125
- package/dist/runtime/components/form/AntRadioWidget/__types/AntRadio.type.d.ts +0 -9
- package/dist/runtime/components/form/AntRangeSlider.vue +0 -81
- package/dist/runtime/components/form/AntSwitch.vue +0 -153
- package/dist/runtime/components/form/AntSwitcher.vue +0 -184
- package/dist/runtime/components/form/AntTextInput.vue +0 -73
- package/dist/runtime/components/form/Elements/AntBaseInput.vue +0 -220
- package/dist/runtime/components/form/Elements/AntField.vue +0 -105
- package/dist/runtime/components/form/Elements/AntInputLabel.vue +0 -55
- package/dist/runtime/components/form/Elements/AntInputLimiter.vue +0 -55
- package/dist/runtime/components/form/Elements/__stories/AntBaseInput.stories.mjs +0 -171
- package/dist/runtime/components/form/Elements/__types/index.d.ts +0 -1
- package/dist/runtime/components/form/Elements/__types/index.mjs +0 -1
- package/dist/runtime/components/form/__stories/AntNumberInput.stories.mjs +0 -74
- package/dist/runtime/components/form/__stories/AntRangeSlider.stories.d.ts +0 -6
- package/dist/runtime/components/form/__stories/AntRangeSlider.stories.mjs +0 -40
- package/dist/runtime/components/form/__stories/AntSearch.stories.mjs +0 -43
- package/dist/runtime/components/form/__stories/AntSwitch.stories.mjs +0 -218
- package/dist/runtime/components/form/__stories/AntSwitcher.stories.mjs +0 -228
- package/dist/runtime/components/form/__stories/AntTagInput.stories.mjs +0 -106
- package/dist/runtime/components/form/__stories/AntTextInput.stories.mjs +0 -68
- package/dist/runtime/components/form/__types/AntSwitcher.type.mjs +0 -0
- package/dist/runtime/components/form/__types/index.d.ts +0 -3
- package/dist/runtime/components/form/__types/index.mjs +0 -3
- package/dist/runtime/components/form/index.d.ts +0 -12
- package/dist/runtime/components/form/index.mjs +0 -24
- package/dist/runtime/components/navbar/__types/NavbarItem.mjs +0 -0
- package/dist/runtime/enums/ColorType.enum.mjs +0 -18
- package/dist/runtime/types/AntListGroupItem.type.d.ts +0 -11
- package/dist/runtime/types/AntListGroupItem.type.mjs +0 -12
- package/dist/runtime/types/AntTag.type.d.ts +0 -7
- package/dist/runtime/types/AntTag.type.mjs +0 -8
- package/dist/runtime/types/Checkbox.type.d.ts +0 -8
- package/dist/runtime/types/Checkbox.type.mjs +0 -0
- package/dist/runtime/types/NavItem.type.d.ts +0 -9
- package/dist/runtime/types/NavItem.type.mjs +0 -0
- package/dist/runtime/types/RadioButton.type.d.ts +0 -5
- package/dist/runtime/types/RadioButton.type.mjs +0 -0
- package/dist/runtime/types/Tabs.type.d.ts +0 -6
- package/dist/runtime/types/Tabs.type.mjs +0 -0
- package/dist/runtime/types/Toaster.type.d.ts +0 -6
- package/dist/runtime/types/Toaster.type.mjs +0 -0
- package/dist/runtime/types/index.d.ts +0 -7
- package/dist/runtime/types/index.mjs +0 -7
- package/src/runtime/components/form/AntCheckboxWidget/AntCheckbox.vue +0 -166
- package/src/runtime/components/form/AntCheckboxWidget/AntCheckboxGroup.vue +0 -91
- package/src/runtime/components/form/AntFormGroupLabel.vue +0 -5
- package/src/runtime/components/form/AntRadioWidget/AntRadio.vue +0 -164
- package/src/runtime/components/form/AntRadioWidget/AntRadioGroup.vue +0 -80
- package/src/runtime/components/form/AntRangeSlider.vue +0 -101
- package/src/runtime/components/form/AntSwitch.vue +0 -153
- package/src/runtime/components/form/AntSwitcher.vue +0 -200
- package/src/runtime/components/form/AntTextInput.vue +0 -73
- package/src/runtime/components/form/Elements/AntBaseInput.vue +0 -251
- package/src/runtime/components/form/Elements/AntField.vue +0 -105
- package/src/runtime/components/form/Elements/AntInputLabel.vue +0 -55
- package/src/runtime/components/form/Elements/AntInputLimiter.vue +0 -55
- /package/dist/runtime/components/__types/{Accordion.types.d.ts → AntAccordion.types.d.ts} +0 -0
- /package/dist/runtime/components/__types/{Accordion.types.mjs → AntAccordion.types.mjs} +0 -0
- /package/dist/runtime/components/buttons/__types/{AntButton.type.d.ts → AntButton.types.d.ts} +0 -0
- /package/dist/runtime/components/buttons/__types/{AntButton.type.mjs → AntButton.types.mjs} +0 -0
- /package/dist/runtime/components/{form → forms}/AntFormGroup.vue +0 -0
- /package/dist/runtime/components/{form/Elements → forms}/__stories/AntField.stories.d.ts +0 -0
- /package/dist/runtime/components/{form → forms}/__stories/AntFormGroup.stories.d.ts +0 -0
- /package/dist/runtime/components/{form → forms}/__stories/AntFormGroupLabel.stories.d.ts +0 -0
- /package/dist/runtime/components/{form → inputs}/AntRichTextEditor.vue +0 -0
- /package/dist/runtime/components/{form → inputs}/Elements/__stories/AntInputDescription.stories.d.ts +0 -0
- /package/dist/runtime/components/{form → inputs}/Elements/__stories/AntInputLabel.stories.d.ts +0 -0
- /package/dist/runtime/components/{form → inputs}/Elements/__stories/AntInputLimiter.stories.d.ts +0 -0
- /package/dist/runtime/components/{form/Elements/__types/AntBaseInput.type.d.ts → inputs/Elements/__types/AntBaseInput.types.d.ts} +0 -0
- /package/dist/runtime/components/{form/Elements/__types/AntBaseInput.type.mjs → inputs/Elements/__types/AntBaseInput.types.mjs} +0 -0
- /package/dist/runtime/components/{form/AntCheckboxWidget → inputs}/__stories/AntCheckbox.stories.d.ts +0 -0
- /package/dist/runtime/components/{form/AntCheckboxWidget → inputs}/__stories/AntCheckboxGroup.stories.d.ts +0 -0
- /package/dist/runtime/components/{form → inputs}/__stories/AntRichTextEditor.stories-old.d.ts +0 -0
- /package/dist/runtime/components/{form → inputs}/__stories/AntRichTextEditor.stories-old.mjs +0 -0
- /package/dist/runtime/components/{form → inputs}/__stories/AntSelect.stories.d.ts +0 -0
- /package/dist/runtime/components/{form/__types/AntSelect.type.d.ts → inputs/__types/AntSelect.types.d.ts} +0 -0
- /package/dist/runtime/components/{form/AntCheckboxWidget/__types/AntCheckbox.mjs → inputs/__types/AntSelect.types.mjs} +0 -0
- /package/dist/runtime/components/{form/__types/AntSwitcher.type.d.ts → inputs/__types/AntSwitcher.types.d.ts} +0 -0
- /package/dist/runtime/components/{form/AntRadioWidget/__types/AntRadio.type.mjs → inputs/__types/AntSwitcher.types.mjs} +0 -0
- /package/dist/runtime/components/{form/__types/AntSelect.type.mjs → navbar/__types/NavbarItem.types.mjs} +0 -0
- /package/src/runtime/components/{form → forms}/AntFormGroup.vue +0 -0
- /package/src/runtime/components/{form → inputs}/AntRichTextEditor.vue +0 -0
package/dist/module.mjs
CHANGED
|
@@ -189,6 +189,9 @@ const tailwindcss = {
|
|
|
189
189
|
...fontColors
|
|
190
190
|
},
|
|
191
191
|
extend: {
|
|
192
|
+
fontSize: {
|
|
193
|
+
"2xs": ["0.625rem", "0.75rem"]
|
|
194
|
+
},
|
|
192
195
|
animation: {
|
|
193
196
|
skeleton: "skeleton 2s ease-out infinite"
|
|
194
197
|
},
|
|
@@ -202,24 +205,11 @@ const tailwindcss = {
|
|
|
202
205
|
}
|
|
203
206
|
};
|
|
204
207
|
|
|
205
|
-
var
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
ColorType2["info"] = "info";
|
|
211
|
-
ColorType2["success"] = "success";
|
|
212
|
-
ColorType2["warning"] = "warning";
|
|
213
|
-
return ColorType2;
|
|
214
|
-
})(ColorType || {});
|
|
215
|
-
var InputColorType = /* @__PURE__ */ ((InputColorType2) => {
|
|
216
|
-
InputColorType2["base"] = "base";
|
|
217
|
-
InputColorType2["danger"] = "danger";
|
|
218
|
-
InputColorType2["info"] = "info";
|
|
219
|
-
InputColorType2["success"] = "success";
|
|
220
|
-
InputColorType2["warning"] = "warning";
|
|
221
|
-
return InputColorType2;
|
|
222
|
-
})(InputColorType || {});
|
|
208
|
+
var Direction = /* @__PURE__ */ ((Direction2) => {
|
|
209
|
+
Direction2["column"] = "column";
|
|
210
|
+
Direction2["row"] = "row";
|
|
211
|
+
return Direction2;
|
|
212
|
+
})(Direction || {});
|
|
223
213
|
|
|
224
214
|
var Grouped = /* @__PURE__ */ ((Grouped2) => {
|
|
225
215
|
Grouped2["none"] = "none";
|
|
@@ -245,11 +235,33 @@ var CornerPosition = /* @__PURE__ */ ((CornerPosition2) => {
|
|
|
245
235
|
})(CornerPosition || {});
|
|
246
236
|
|
|
247
237
|
var Size = /* @__PURE__ */ ((Size2) => {
|
|
248
|
-
Size2["
|
|
238
|
+
Size2["lg"] = "lg";
|
|
249
239
|
Size2["md"] = "md";
|
|
240
|
+
Size2["sm"] = "sm";
|
|
241
|
+
Size2["xs"] = "xs";
|
|
242
|
+
Size2["xs2"] = "2xs";
|
|
250
243
|
return Size2;
|
|
251
244
|
})(Size || {});
|
|
252
245
|
|
|
246
|
+
var State = /* @__PURE__ */ ((State2) => {
|
|
247
|
+
State2["base"] = "base";
|
|
248
|
+
State2["primary"] = "primary";
|
|
249
|
+
State2["secondary"] = "secondary";
|
|
250
|
+
State2["danger"] = "danger";
|
|
251
|
+
State2["info"] = "info";
|
|
252
|
+
State2["success"] = "success";
|
|
253
|
+
State2["warning"] = "warning";
|
|
254
|
+
return State2;
|
|
255
|
+
})(State || {});
|
|
256
|
+
var InputState = /* @__PURE__ */ ((InputState2) => {
|
|
257
|
+
InputState2["base"] = "base";
|
|
258
|
+
InputState2["danger"] = "danger";
|
|
259
|
+
InputState2["info"] = "info";
|
|
260
|
+
InputState2["success"] = "success";
|
|
261
|
+
InputState2["warning"] = "warning";
|
|
262
|
+
return InputState2;
|
|
263
|
+
})(InputState || {});
|
|
264
|
+
|
|
253
265
|
var CollapseStrategy = /* @__PURE__ */ ((CollapseStrategy2) => {
|
|
254
266
|
CollapseStrategy2["single"] = "single";
|
|
255
267
|
CollapseStrategy2["multiple"] = "multiple";
|
|
@@ -257,48 +269,106 @@ var CollapseStrategy = /* @__PURE__ */ ((CollapseStrategy2) => {
|
|
|
257
269
|
})(CollapseStrategy || {});
|
|
258
270
|
|
|
259
271
|
var IconSize = /* @__PURE__ */ ((IconSize2) => {
|
|
260
|
-
IconSize2["xs"] = "xs";
|
|
261
|
-
IconSize2["sm"] = "sm";
|
|
262
|
-
IconSize2["md"] = "md";
|
|
263
272
|
IconSize2["xl3"] = "3xl";
|
|
273
|
+
IconSize2["lg"] = "lg";
|
|
274
|
+
IconSize2["md"] = "md";
|
|
275
|
+
IconSize2["sm"] = "sm";
|
|
276
|
+
IconSize2["xs"] = "xs";
|
|
277
|
+
IconSize2["xs2"] = "2xs";
|
|
264
278
|
return IconSize2;
|
|
265
279
|
})(IconSize || {});
|
|
266
280
|
|
|
267
|
-
var
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
281
|
+
var AntKeycapSize = /* @__PURE__ */ ((AntKeycapSize2) => {
|
|
282
|
+
AntKeycapSize2["sm"] = "sm";
|
|
283
|
+
AntKeycapSize2["xs"] = "xs";
|
|
284
|
+
return AntKeycapSize2;
|
|
285
|
+
})(AntKeycapSize || {});
|
|
286
|
+
|
|
287
|
+
var ListGroupItemState = /* @__PURE__ */ ((ListGroupItemState2) => {
|
|
288
|
+
ListGroupItemState2["base"] = "base";
|
|
289
|
+
ListGroupItemState2["primary"] = "primary";
|
|
290
|
+
ListGroupItemState2["secondary"] = "secondary";
|
|
291
|
+
ListGroupItemState2["info"] = "info";
|
|
292
|
+
ListGroupItemState2["success"] = "success";
|
|
293
|
+
ListGroupItemState2["warning"] = "warning";
|
|
294
|
+
ListGroupItemState2["danger"] = "danger";
|
|
295
|
+
return ListGroupItemState2;
|
|
296
|
+
})(ListGroupItemState || {});
|
|
297
|
+
|
|
298
|
+
var AntSpinnerSize = /* @__PURE__ */ ((AntSpinnerSize2) => {
|
|
299
|
+
AntSpinnerSize2["xl4"] = "4xl";
|
|
300
|
+
AntSpinnerSize2["xl3"] = "3xl";
|
|
301
|
+
AntSpinnerSize2["xl2"] = "2xl";
|
|
302
|
+
AntSpinnerSize2["lg"] = "lg";
|
|
303
|
+
AntSpinnerSize2["md"] = "md";
|
|
304
|
+
AntSpinnerSize2["sm"] = "sm";
|
|
305
|
+
AntSpinnerSize2["xs"] = "xs";
|
|
306
|
+
AntSpinnerSize2["xs2"] = "2xs";
|
|
307
|
+
return AntSpinnerSize2;
|
|
308
|
+
})(AntSpinnerSize || {});
|
|
309
|
+
|
|
310
|
+
var TagState = /* @__PURE__ */ ((TagState2) => {
|
|
311
|
+
TagState2["base"] = "base";
|
|
312
|
+
TagState2["primary"] = "primary";
|
|
313
|
+
TagState2["secondary"] = "secondary";
|
|
314
|
+
TagState2["info"] = "info";
|
|
315
|
+
TagState2["success"] = "success";
|
|
316
|
+
TagState2["warning"] = "warning";
|
|
317
|
+
TagState2["danger"] = "danger";
|
|
318
|
+
return TagState2;
|
|
319
|
+
})(TagState || {});
|
|
320
|
+
var AntTagSize = /* @__PURE__ */ ((AntTagSize2) => {
|
|
321
|
+
AntTagSize2["lg"] = "lg";
|
|
322
|
+
AntTagSize2["md"] = "md";
|
|
323
|
+
AntTagSize2["sm"] = "sm";
|
|
324
|
+
AntTagSize2["xs"] = "xs";
|
|
325
|
+
AntTagSize2["xs2"] = "2xs";
|
|
326
|
+
AntTagSize2["xs3"] = "3xs";
|
|
327
|
+
return AntTagSize2;
|
|
328
|
+
})(AntTagSize || {});
|
|
329
|
+
|
|
330
|
+
var ButtonType = /* @__PURE__ */ ((ButtonType2) => {
|
|
331
|
+
ButtonType2["button"] = "button";
|
|
332
|
+
ButtonType2["submit"] = "submit";
|
|
333
|
+
return ButtonType2;
|
|
334
|
+
})(ButtonType || {});
|
|
335
|
+
|
|
336
|
+
var AntCheckboxSize = /* @__PURE__ */ ((AntCheckboxSize2) => {
|
|
337
|
+
AntCheckboxSize2["md"] = "md";
|
|
338
|
+
AntCheckboxSize2["sm"] = "sm";
|
|
339
|
+
return AntCheckboxSize2;
|
|
340
|
+
})(AntCheckboxSize || {});
|
|
341
|
+
|
|
342
|
+
var AntDateInputTypes = /* @__PURE__ */ ((AntDateInputTypes2) => {
|
|
343
|
+
AntDateInputTypes2["date"] = "date";
|
|
344
|
+
AntDateInputTypes2["datetimeLocal"] = "datetime-local";
|
|
345
|
+
AntDateInputTypes2["month"] = "month";
|
|
346
|
+
AntDateInputTypes2["time"] = "time";
|
|
347
|
+
AntDateInputTypes2["week"] = "week";
|
|
348
|
+
return AntDateInputTypes2;
|
|
349
|
+
})(AntDateInputTypes || {});
|
|
350
|
+
|
|
351
|
+
var AntRadioSize = /* @__PURE__ */ ((AntRadioSize2) => {
|
|
352
|
+
AntRadioSize2["md"] = "md";
|
|
353
|
+
AntRadioSize2["sm"] = "sm";
|
|
354
|
+
return AntRadioSize2;
|
|
355
|
+
})(AntRadioSize || {});
|
|
356
|
+
|
|
357
|
+
var AntTagInputSize = /* @__PURE__ */ ((AntTagInputSize2) => {
|
|
358
|
+
AntTagInputSize2["lg"] = "lg";
|
|
359
|
+
AntTagInputSize2["md"] = "md";
|
|
360
|
+
AntTagInputSize2["sm"] = "sm";
|
|
361
|
+
return AntTagInputSize2;
|
|
362
|
+
})(AntTagInputSize || {});
|
|
286
363
|
|
|
287
364
|
var TextInputType = /* @__PURE__ */ ((TextInputType2) => {
|
|
288
365
|
TextInputType2["email"] = "email";
|
|
289
|
-
TextInputType2["password"] = "password";
|
|
290
366
|
TextInputType2["tel"] = "tel";
|
|
291
367
|
TextInputType2["text"] = "text";
|
|
292
368
|
TextInputType2["url"] = "url";
|
|
293
369
|
return TextInputType2;
|
|
294
370
|
})(TextInputType || {});
|
|
295
371
|
|
|
296
|
-
var ButtonType = /* @__PURE__ */ ((ButtonType2) => {
|
|
297
|
-
ButtonType2["button"] = "button";
|
|
298
|
-
ButtonType2["submit"] = "submit";
|
|
299
|
-
return ButtonType2;
|
|
300
|
-
})(ButtonType || {});
|
|
301
|
-
|
|
302
372
|
var BaseInputType = /* @__PURE__ */ ((BaseInputType2) => {
|
|
303
373
|
BaseInputType2["date"] = "date";
|
|
304
374
|
BaseInputType2["datetime"] = "datetime";
|
|
@@ -318,6 +388,39 @@ var BaseInputType = /* @__PURE__ */ ((BaseInputType2) => {
|
|
|
318
388
|
return BaseInputType2;
|
|
319
389
|
})(BaseInputType || {});
|
|
320
390
|
|
|
391
|
+
var AntTableRowTypes = /* @__PURE__ */ ((AntTableRowTypes2) => {
|
|
392
|
+
AntTableRowTypes2["text"] = "text";
|
|
393
|
+
AntTableRowTypes2["html"] = "html";
|
|
394
|
+
AntTableRowTypes2["link"] = "link";
|
|
395
|
+
AntTableRowTypes2["slot"] = "slot";
|
|
396
|
+
return AntTableRowTypes2;
|
|
397
|
+
})(AntTableRowTypes || {});
|
|
398
|
+
var AntTableAlign = /* @__PURE__ */ ((AntTableAlign2) => {
|
|
399
|
+
AntTableAlign2["left"] = "left";
|
|
400
|
+
AntTableAlign2["center"] = "center";
|
|
401
|
+
AntTableAlign2["right"] = "right";
|
|
402
|
+
return AntTableAlign2;
|
|
403
|
+
})(AntTableAlign || {});
|
|
404
|
+
var AntTableSortDirection = /* @__PURE__ */ ((AntTableSortDirection2) => {
|
|
405
|
+
AntTableSortDirection2["asc"] = "asc";
|
|
406
|
+
AntTableSortDirection2["desc"] = "desc";
|
|
407
|
+
AntTableSortDirection2["neutral"] = "neutral";
|
|
408
|
+
return AntTableSortDirection2;
|
|
409
|
+
})(AntTableSortDirection || {});
|
|
410
|
+
var AntTableSize = /* @__PURE__ */ ((AntTableSize2) => {
|
|
411
|
+
AntTableSize2["lg"] = "lg";
|
|
412
|
+
AntTableSize2["md"] = "md";
|
|
413
|
+
AntTableSize2["sm"] = "sm";
|
|
414
|
+
return AntTableSize2;
|
|
415
|
+
})(AntTableSize || {});
|
|
416
|
+
|
|
417
|
+
var TabItemState = /* @__PURE__ */ ((TabItemState2) => {
|
|
418
|
+
TabItemState2["base"] = "base";
|
|
419
|
+
TabItemState2["warning"] = "warning";
|
|
420
|
+
TabItemState2["danger"] = "danger";
|
|
421
|
+
return TabItemState2;
|
|
422
|
+
})(TabItemState || {});
|
|
423
|
+
|
|
321
424
|
const moduleKey = "uiModule";
|
|
322
425
|
const module = defineNuxtModule({
|
|
323
426
|
meta: {
|
|
@@ -344,4 +447,4 @@ const module = defineNuxtModule({
|
|
|
344
447
|
}
|
|
345
448
|
});
|
|
346
449
|
|
|
347
|
-
export { AntTableAlign, AntTableRowTypes, AntTableSortDirection, BaseInputType, ButtonType, CollapseStrategy,
|
|
450
|
+
export { AntCheckboxSize, AntDateInputTypes, AntKeycapSize, AntRadioSize, AntSpinnerSize, AntTableAlign, AntTableRowTypes, AntTableSize, AntTableSortDirection, AntTagInputSize, AntTagSize, BaseInputType, ButtonType, CollapseStrategy, CornerPosition, Direction, Grouped, IconSize, InputState, ListGroupItemState, Position, Size, State, TabItemState, TagState, TextInputType, module as default };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
import AntAccordionItem from './AntAccordionItem.vue';
|
|
3
3
|
import {onMounted, ref} from 'vue';
|
|
4
|
-
import {CollapseStrategy} from './__types/
|
|
4
|
+
import {CollapseStrategy} from './__types/AntAccordion.types';
|
|
5
5
|
|
|
6
6
|
const props = withDefaults(defineProps<{
|
|
7
7
|
items: {
|
|
8
8
|
label?: string;
|
|
9
9
|
content?: string;
|
|
10
10
|
isOpen?: boolean;
|
|
11
|
+
iconLeft?: boolean;
|
|
11
12
|
}[];
|
|
12
13
|
collapseStrategy?: CollapseStrategy;
|
|
13
14
|
}>(), {
|
|
@@ -20,7 +21,7 @@ onMounted(() => {
|
|
|
20
21
|
openItems.value = props.items
|
|
21
22
|
.map((item, index) => item.isOpen ? index : -1)
|
|
22
23
|
.filter((index) => index !== -1);
|
|
23
|
-
})
|
|
24
|
+
});
|
|
24
25
|
|
|
25
26
|
function onOpen(index: number) {
|
|
26
27
|
if (props.collapseStrategy === CollapseStrategy.single) {
|
|
@@ -44,14 +45,18 @@ function onClose(index: number) {
|
|
|
44
45
|
<slot>
|
|
45
46
|
<AntAccordionItem
|
|
46
47
|
v-for="(item, index) in items"
|
|
48
|
+
:key="`accordion-item-${index}`"
|
|
47
49
|
:label="item.label"
|
|
48
50
|
:is-open="openItems.includes(index)"
|
|
49
|
-
:
|
|
51
|
+
:icon-left="item.iconLeft"
|
|
50
52
|
@open="() => onOpen(index)"
|
|
51
53
|
@close="() => onClose(index)"
|
|
52
54
|
>
|
|
53
|
-
<slot
|
|
54
|
-
|
|
55
|
+
<slot
|
|
56
|
+
name="item-content"
|
|
57
|
+
v-bind="{item, index}"
|
|
58
|
+
>
|
|
59
|
+
<div v-html="item.content" />
|
|
55
60
|
</slot>
|
|
56
61
|
</AntAccordionItem>
|
|
57
62
|
</slot>
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import {faAngleDown, faAngleUp} from '@fortawesome/free-solid-svg-icons';
|
|
2
|
+
import {faAngleDown, faAngleUp, faQuestionCircle} from '@fortawesome/free-solid-svg-icons';
|
|
3
3
|
import AntIcon from './AntIcon.vue';
|
|
4
4
|
import AntTransitionCollapseHeight from './transitions/AntTransitionCollapseHeight.vue';
|
|
5
|
+
import {IconSize} from './__types/AntIcon.types';
|
|
5
6
|
|
|
6
7
|
const props = withDefaults(defineProps<{
|
|
7
8
|
isOpen: boolean;
|
|
8
9
|
label?: string;
|
|
9
10
|
collapseTransition?: string;
|
|
11
|
+
iconLeft: boolean;
|
|
10
12
|
}>(), {
|
|
11
|
-
collapseTransition: 'slide'
|
|
13
|
+
collapseTransition: 'slide',
|
|
14
|
+
iconLeft: false,
|
|
12
15
|
});
|
|
13
16
|
const emit = defineEmits(['close', 'open']);
|
|
14
17
|
|
|
@@ -24,7 +27,7 @@ function onClick() {
|
|
|
24
27
|
|
|
25
28
|
<template>
|
|
26
29
|
<div
|
|
27
|
-
class="p-2
|
|
30
|
+
class="p-2 select-none cursor-pointer transition-colors"
|
|
28
31
|
:class="{'bg-primary-500 text-primary-500-font': isOpen, 'bg-white text-for-white-bg-font': !isOpen}"
|
|
29
32
|
@click="onClick"
|
|
30
33
|
>
|
|
@@ -35,9 +38,18 @@ function onClick() {
|
|
|
35
38
|
<div
|
|
36
39
|
class="hover:text-gray-800 flex justify-between items-center"
|
|
37
40
|
>
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
<div class="flex items-center gap-2">
|
|
42
|
+
<AntIcon
|
|
43
|
+
v-if="iconLeft"
|
|
44
|
+
:size="IconSize.sm"
|
|
45
|
+
:icon="faQuestionCircle"
|
|
46
|
+
:color="isOpen ? 'text-primary-500-font' : 'text-for-white-bg-font'"
|
|
47
|
+
/>
|
|
48
|
+
|
|
49
|
+
<span class="text-sm font-semibold">
|
|
50
|
+
{{ label }}
|
|
51
|
+
</span>
|
|
52
|
+
</div>
|
|
41
53
|
|
|
42
54
|
<AntIcon
|
|
43
55
|
:icon="isOpen ? faAngleUp : faAngleDown"
|
|
@@ -55,7 +67,7 @@ function onClick() {
|
|
|
55
67
|
<Transition name="bounce">
|
|
56
68
|
<div
|
|
57
69
|
v-show="isOpen"
|
|
58
|
-
class="p-2
|
|
70
|
+
class="p-2 text-sm bg-white text-for-white-bg-font"
|
|
59
71
|
>
|
|
60
72
|
<slot />
|
|
61
73
|
</div>
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
import AntIcon from './AntIcon.vue';
|
|
13
13
|
import AntTooltip from './AntTooltip.vue';
|
|
14
14
|
import AntSkeleton from './AntSkeleton.vue';
|
|
15
|
-
import {
|
|
15
|
+
import {InputState, Position} from '../enums';
|
|
16
16
|
import {IconSize} from './__types';
|
|
17
17
|
|
|
18
18
|
defineEmits(['close']);
|
|
19
19
|
|
|
20
20
|
const props = withDefaults(defineProps<{
|
|
21
21
|
title?: string | null,
|
|
22
|
-
|
|
22
|
+
state?: InputState,
|
|
23
23
|
icon?: boolean,
|
|
24
24
|
expanded?: boolean,
|
|
25
25
|
questionMarkText?: string | null,
|
|
@@ -27,7 +27,7 @@ const props = withDefaults(defineProps<{
|
|
|
27
27
|
dismissBtn?: boolean,
|
|
28
28
|
}>(), {
|
|
29
29
|
title: null,
|
|
30
|
-
|
|
30
|
+
state: InputState.base,
|
|
31
31
|
icon: true,
|
|
32
32
|
expanded: false,
|
|
33
33
|
questionMarkText: null,
|
|
@@ -36,45 +36,45 @@ const props = withDefaults(defineProps<{
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
const icons = {
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
39
|
+
[InputState.base]: faInfoCircle,
|
|
40
|
+
[InputState.info]: faInfoCircle,
|
|
41
|
+
[InputState.danger]: faExclamationCircle,
|
|
42
|
+
[InputState.warning]: faExclamationTriangle,
|
|
43
|
+
[InputState.success]: faCheckCircle,
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
const _icon = computed(() => icons[props.
|
|
46
|
+
const _icon = computed(() => icons[props.state]);
|
|
47
47
|
const classes = computed(() => {
|
|
48
|
-
const variants: Record<
|
|
49
|
-
[
|
|
50
|
-
[
|
|
51
|
-
[
|
|
52
|
-
[
|
|
53
|
-
[
|
|
48
|
+
const variants: Record<InputState, string> = {
|
|
49
|
+
[InputState.danger]: 'bg-danger-100 text-danger-700',
|
|
50
|
+
[InputState.info]: 'bg-info-100 text-info-700',
|
|
51
|
+
[InputState.base]: 'bg-neutral-100 text-neutral-100-font',
|
|
52
|
+
[InputState.success]: 'bg-success-100 text-success-700',
|
|
53
|
+
[InputState.warning]: 'bg-warning-100 text-warning-700',
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
return {
|
|
57
|
-
'inline-flex flex-col gap-2
|
|
57
|
+
'inline-flex flex-col gap-2 rounded-md p-2 transition-colors text-sm relative': true,
|
|
58
58
|
'w-full': props.expanded,
|
|
59
|
-
[variants[props.
|
|
59
|
+
[variants[props.state]]: true,
|
|
60
60
|
};
|
|
61
61
|
});
|
|
62
62
|
const hasDefaultSlot = computed(() => useSlots()['default'] || false);
|
|
63
63
|
const hasQuestionMark = computed(() => (useSlots()['question-mark-text'] || false) || props.questionMarkText);
|
|
64
64
|
const iconColor = computed(() => {
|
|
65
65
|
const variants = {
|
|
66
|
-
[
|
|
67
|
-
[
|
|
68
|
-
[
|
|
69
|
-
[
|
|
70
|
-
[
|
|
66
|
+
[InputState.base]: 'text-neutral-100-font',
|
|
67
|
+
[InputState.danger]: 'text-danger-700',
|
|
68
|
+
[InputState.info]: 'text-info-700',
|
|
69
|
+
[InputState.success]: 'text-success-700',
|
|
70
|
+
[InputState.warning]: 'text-warning-700',
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
return variants[props.
|
|
73
|
+
return variants[props.state];
|
|
74
74
|
});
|
|
75
75
|
|
|
76
76
|
onMounted(() => {
|
|
77
|
-
handleEnumValidation(props.
|
|
77
|
+
handleEnumValidation(props.state, InputState, 'state');
|
|
78
78
|
});
|
|
79
79
|
</script>
|
|
80
80
|
|
|
@@ -91,10 +91,10 @@ onMounted(() => {
|
|
|
91
91
|
|
|
92
92
|
<div
|
|
93
93
|
v-if="icon || hasQuestionMark || dismissBtn || title"
|
|
94
|
-
class="inline-flex items-center justify-between w-content gap-2
|
|
94
|
+
class="inline-flex items-center justify-between w-content gap-2"
|
|
95
95
|
:class="{'invisible': skeleton}"
|
|
96
96
|
>
|
|
97
|
-
<div class="inline-flex items-center gap-2
|
|
97
|
+
<div class="inline-flex items-center gap-2">
|
|
98
98
|
<AntIcon
|
|
99
99
|
v-if="icon"
|
|
100
100
|
:icon="_icon"
|
|
@@ -111,7 +111,7 @@ onMounted(() => {
|
|
|
111
111
|
</div>
|
|
112
112
|
</div>
|
|
113
113
|
|
|
114
|
-
<div class="flex gap-2
|
|
114
|
+
<div class="flex gap-2">
|
|
115
115
|
<div v-if="hasQuestionMark">
|
|
116
116
|
<slot name="questionMarkText">
|
|
117
117
|
<AntTooltip :position="Position.bottom">
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {computed} from 'vue';
|
|
3
|
+
import {Size} from '../enums/Size.enum';
|
|
4
|
+
|
|
5
|
+
const props = withDefaults(defineProps<{
|
|
6
|
+
size?: Size;
|
|
7
|
+
padding?: boolean;
|
|
8
|
+
expanded?: boolean;
|
|
9
|
+
}>(), {
|
|
10
|
+
size: Size.md,
|
|
11
|
+
padding: true,
|
|
12
|
+
expanded: false
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const cardClass = computed(() => ({
|
|
16
|
+
'inline-block': true,
|
|
17
|
+
'w-full': props.expanded,
|
|
18
|
+
'p-0': !props.padding,
|
|
19
|
+
'p-2.5': props.size === Size.lg && props.padding,
|
|
20
|
+
'p-2': props.size === Size.md && props.padding,
|
|
21
|
+
'p-1.5': props.size === Size.sm || props.size === Size.xs && props.padding,
|
|
22
|
+
'p-1': props.size === Size.xs2 && props.padding,
|
|
23
|
+
})
|
|
24
|
+
);
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<template>
|
|
28
|
+
<div
|
|
29
|
+
:class="cardClass"
|
|
30
|
+
class="bg-white border border-neutral-300 rounded-md"
|
|
31
|
+
>
|
|
32
|
+
<slot />
|
|
33
|
+
</div>
|
|
34
|
+
</template>
|
|
@@ -36,7 +36,7 @@ const _dropdownClasses = computed(() => ({
|
|
|
36
36
|
}));
|
|
37
37
|
|
|
38
38
|
onMounted(() => {
|
|
39
|
-
handleEnumValidation(props.position, Position, 'Position')
|
|
39
|
+
handleEnumValidation(props.position, Position, 'Position');
|
|
40
40
|
});
|
|
41
41
|
onKeyStroke('Escape', (e: KeyboardEvent) => {
|
|
42
42
|
if (props.showDropdown) {
|
|
@@ -65,7 +65,7 @@ function onClickOutside() {
|
|
|
65
65
|
>
|
|
66
66
|
<div
|
|
67
67
|
class="shadow-lg border border-neutral-300 rounded-md text-sm relative inline-flex flex-col relative bg-white text-for-white-bg-font w-full"
|
|
68
|
-
:class="{'p-2
|
|
68
|
+
:class="{'p-2': contentPadding}"
|
|
69
69
|
>
|
|
70
70
|
<slot name="content" />
|
|
71
71
|
</div>
|
|
@@ -13,24 +13,29 @@ const props = withDefaults(defineProps<{
|
|
|
13
13
|
*/
|
|
14
14
|
color?: string;
|
|
15
15
|
}>(), {
|
|
16
|
-
size: IconSize.
|
|
16
|
+
size: IconSize.sm,
|
|
17
17
|
color: 'text-for-white-bg-font'
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
const containerClasses = computed(() => ({
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
'inline-flex items-center justify-center': true,
|
|
22
|
+
'w-3 h-3': props.size === IconSize.xs2,
|
|
23
|
+
'w-4 h-4': props.size === IconSize.xs,
|
|
24
|
+
'w-5 h-5': props.size === IconSize.sm,
|
|
25
|
+
'w-6 h-6': props.size === IconSize.md,
|
|
26
|
+
'w-7 h-7': props.size === IconSize.lg,
|
|
27
|
+
'w-9 h-9': props.size === IconSize.xl3,
|
|
28
|
+
[props.color]: true,
|
|
26
29
|
}));
|
|
27
30
|
|
|
28
|
-
// TODO:: replace with/height with font-size
|
|
29
31
|
const iconClasses = computed(() => ({
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
'transition-colors': true,
|
|
33
|
+
'text-2xs': props.size === IconSize.xs2,
|
|
34
|
+
'text-xs': props.size === IconSize.xs,
|
|
35
|
+
'text-sm': props.size === IconSize.sm,
|
|
36
|
+
'text-md': props.size === IconSize.md,
|
|
37
|
+
'text-lg': props.size === IconSize.lg,
|
|
38
|
+
'text-3xl': props.size === IconSize.xl3,
|
|
34
39
|
}));
|
|
35
40
|
|
|
36
41
|
onMounted(() => {
|
|
@@ -40,12 +45,12 @@ onMounted(() => {
|
|
|
40
45
|
|
|
41
46
|
<template>
|
|
42
47
|
<span
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
v-if="icon"
|
|
49
|
+
:class="containerClasses"
|
|
45
50
|
>
|
|
46
|
-
<
|
|
47
|
-
|
|
48
|
-
|
|
51
|
+
<FaIcon
|
|
52
|
+
:icon="icon"
|
|
53
|
+
:class="iconClasses"
|
|
49
54
|
/>
|
|
50
55
|
</span>
|
|
51
56
|
</template>
|
|
@@ -3,22 +3,43 @@
|
|
|
3
3
|
import AntIcon from './AntIcon.vue';
|
|
4
4
|
import {type IconDefinition} from '@fortawesome/free-solid-svg-icons';
|
|
5
5
|
import {IconSize} from './__types';
|
|
6
|
+
import {AntKeycapSize} from './__types/AntKeycap.types';
|
|
7
|
+
import {computed} from 'vue';
|
|
6
8
|
|
|
7
|
-
defineProps<{
|
|
9
|
+
const props = withDefaults(defineProps<{
|
|
8
10
|
icon?: IconDefinition
|
|
9
|
-
|
|
11
|
+
size: AntKeycapSize
|
|
12
|
+
|
|
13
|
+
}>(),{
|
|
14
|
+
size: AntKeycapSize.sm
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const classes = computed(() => {
|
|
18
|
+
return {
|
|
19
|
+
'text-sm px-px min-w-5': props.size === AntKeycapSize.sm,
|
|
20
|
+
'text-2xs px-px py-0.5 min-w-[18px]': props.size === AntKeycapSize.xs,
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
const iconClasses = computed(() => {
|
|
24
|
+
if(props.size === AntKeycapSize.sm) {
|
|
25
|
+
return IconSize.sm;
|
|
26
|
+
} else {
|
|
27
|
+
return IconSize.xs2;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
10
30
|
</script>
|
|
11
31
|
|
|
12
32
|
<template>
|
|
13
33
|
<span
|
|
14
|
-
class="inline-block
|
|
34
|
+
class="inline-block bg-neutral-300 rounded-md text-center text-neutral-500-font font-medium"
|
|
35
|
+
:class="classes"
|
|
15
36
|
>
|
|
16
37
|
<AntIcon
|
|
17
38
|
v-if="icon"
|
|
18
39
|
:icon="icon"
|
|
19
|
-
:size="
|
|
40
|
+
:size="iconClasses"
|
|
20
41
|
/>
|
|
21
42
|
|
|
22
|
-
<slot v-else/>
|
|
43
|
+
<slot v-else />
|
|
23
44
|
</span>
|
|
24
45
|
</template>
|