@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
|
@@ -1,183 +1,3 @@
|
|
|
1
1
|
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
declare const _default:
|
|
3
|
-
content: string[];
|
|
4
|
-
theme: {
|
|
5
|
-
colors: {
|
|
6
|
-
'for-white-bg-font': any;
|
|
7
|
-
'for-black-bg-font': any;
|
|
8
|
-
'neutral-50-font': any;
|
|
9
|
-
'neutral-100-font': any;
|
|
10
|
-
'neutral-200-font': any;
|
|
11
|
-
'neutral-300-font': any;
|
|
12
|
-
'neutral-400-font': any;
|
|
13
|
-
'neutral-500-font': any;
|
|
14
|
-
'neutral-600-font': any;
|
|
15
|
-
'neutral-700-font': any;
|
|
16
|
-
'neutral-800-font': any;
|
|
17
|
-
'neutral-900-font': any;
|
|
18
|
-
'neutral-950-font': any;
|
|
19
|
-
'primary-50-font': any;
|
|
20
|
-
'primary-100-font': any;
|
|
21
|
-
'primary-200-font': any;
|
|
22
|
-
'primary-300-font': any;
|
|
23
|
-
'primary-400-font': any;
|
|
24
|
-
'primary-500-font': any;
|
|
25
|
-
'primary-600-font': any;
|
|
26
|
-
'primary-700-font': any;
|
|
27
|
-
'primary-800-font': any;
|
|
28
|
-
'primary-900-font': any;
|
|
29
|
-
'primary-950-font': any;
|
|
30
|
-
'secondary-50-font': any;
|
|
31
|
-
'secondary-100-font': any;
|
|
32
|
-
'secondary-200-font': any;
|
|
33
|
-
'secondary-300-font': any;
|
|
34
|
-
'secondary-400-font': any;
|
|
35
|
-
'secondary-500-font': any;
|
|
36
|
-
'secondary-600-font': any;
|
|
37
|
-
'secondary-700-font': any;
|
|
38
|
-
'secondary-800-font': any;
|
|
39
|
-
'secondary-900-font': any;
|
|
40
|
-
'secondary-950-font': any;
|
|
41
|
-
'success-50-font': any;
|
|
42
|
-
'success-100-font': any;
|
|
43
|
-
'success-200-font': any;
|
|
44
|
-
'success-300-font': any;
|
|
45
|
-
'success-400-font': any;
|
|
46
|
-
'success-500-font': any;
|
|
47
|
-
'success-600-font': any;
|
|
48
|
-
'success-700-font': any;
|
|
49
|
-
'success-800-font': any;
|
|
50
|
-
'success-900-font': any;
|
|
51
|
-
'success-950-font': any;
|
|
52
|
-
'info-50-font': any;
|
|
53
|
-
'info-100-font': any;
|
|
54
|
-
'info-200-font': any;
|
|
55
|
-
'info-300-font': any;
|
|
56
|
-
'info-400-font': any;
|
|
57
|
-
'info-500-font': any;
|
|
58
|
-
'info-600-font': any;
|
|
59
|
-
'info-700-font': any;
|
|
60
|
-
'info-800-font': any;
|
|
61
|
-
'info-900-font': any;
|
|
62
|
-
'info-950-font': any;
|
|
63
|
-
'warning-50-font': any;
|
|
64
|
-
'warning-100-font': any;
|
|
65
|
-
'warning-200-font': any;
|
|
66
|
-
'warning-300-font': any;
|
|
67
|
-
'warning-400-font': any;
|
|
68
|
-
'warning-500-font': any;
|
|
69
|
-
'warning-600-font': any;
|
|
70
|
-
'warning-700-font': any;
|
|
71
|
-
'warning-800-font': any;
|
|
72
|
-
'warning-900-font': any;
|
|
73
|
-
'warning-950-font': any;
|
|
74
|
-
'danger-50-font': any;
|
|
75
|
-
'danger-100-font': any;
|
|
76
|
-
'danger-200-font': any;
|
|
77
|
-
'danger-300-font': any;
|
|
78
|
-
'danger-400-font': any;
|
|
79
|
-
'danger-500-font': any;
|
|
80
|
-
'danger-600-font': any;
|
|
81
|
-
'danger-700-font': any;
|
|
82
|
-
'danger-800-font': any;
|
|
83
|
-
'danger-900-font': any;
|
|
84
|
-
'danger-950-font': any;
|
|
85
|
-
transparent: any;
|
|
86
|
-
white: any;
|
|
87
|
-
black: any;
|
|
88
|
-
'neutral-50': any;
|
|
89
|
-
'neutral-100': any;
|
|
90
|
-
'neutral-200': any;
|
|
91
|
-
'neutral-300': any;
|
|
92
|
-
'neutral-400': any;
|
|
93
|
-
'neutral-500': any;
|
|
94
|
-
'neutral-600': any;
|
|
95
|
-
'neutral-700': any;
|
|
96
|
-
'neutral-800': any;
|
|
97
|
-
'neutral-900': any;
|
|
98
|
-
'neutral-950': any;
|
|
99
|
-
'primary-50': any;
|
|
100
|
-
'primary-100': any;
|
|
101
|
-
'primary-200': any;
|
|
102
|
-
'primary-300': any;
|
|
103
|
-
'primary-400': any;
|
|
104
|
-
'primary-500': any;
|
|
105
|
-
'primary-600': any;
|
|
106
|
-
'primary-700': any;
|
|
107
|
-
'primary-800': any;
|
|
108
|
-
'primary-900': any;
|
|
109
|
-
'primary-950': any;
|
|
110
|
-
'secondary-50': any;
|
|
111
|
-
'secondary-100': any;
|
|
112
|
-
'secondary-200': any;
|
|
113
|
-
'secondary-300': any;
|
|
114
|
-
'secondary-400': any;
|
|
115
|
-
'secondary-500': any;
|
|
116
|
-
'secondary-600': any;
|
|
117
|
-
'secondary-700': any;
|
|
118
|
-
'secondary-800': any;
|
|
119
|
-
'secondary-900': any;
|
|
120
|
-
'secondary-950': any;
|
|
121
|
-
'info-50': any;
|
|
122
|
-
'info-100': any;
|
|
123
|
-
'info-200': any;
|
|
124
|
-
'info-300': any;
|
|
125
|
-
'info-400': any;
|
|
126
|
-
'info-500': any;
|
|
127
|
-
'info-600': any;
|
|
128
|
-
'info-700': any;
|
|
129
|
-
'info-800': any;
|
|
130
|
-
'info-900': any;
|
|
131
|
-
'info-950': any;
|
|
132
|
-
'success-50': any;
|
|
133
|
-
'success-100': any;
|
|
134
|
-
'success-200': any;
|
|
135
|
-
'success-300': any;
|
|
136
|
-
'success-400': any;
|
|
137
|
-
'success-500': any;
|
|
138
|
-
'success-600': any;
|
|
139
|
-
'success-700': any;
|
|
140
|
-
'success-800': any;
|
|
141
|
-
'success-900': any;
|
|
142
|
-
'success-950': any;
|
|
143
|
-
'warning-50': any;
|
|
144
|
-
'warning-100': any;
|
|
145
|
-
'warning-200': any;
|
|
146
|
-
'warning-300': any;
|
|
147
|
-
'warning-400': any;
|
|
148
|
-
'warning-500': any;
|
|
149
|
-
'warning-600': any;
|
|
150
|
-
'warning-700': any;
|
|
151
|
-
'warning-800': any;
|
|
152
|
-
'warning-900': any;
|
|
153
|
-
'warning-950': any;
|
|
154
|
-
'danger-50': any;
|
|
155
|
-
'danger-100': any;
|
|
156
|
-
'danger-200': any;
|
|
157
|
-
'danger-300': any;
|
|
158
|
-
'danger-400': any;
|
|
159
|
-
'danger-500': any;
|
|
160
|
-
'danger-600': any;
|
|
161
|
-
'danger-700': any;
|
|
162
|
-
'danger-800': any;
|
|
163
|
-
'danger-900': any;
|
|
164
|
-
'danger-950': any;
|
|
165
|
-
};
|
|
166
|
-
extend: {
|
|
167
|
-
animation: {
|
|
168
|
-
skeleton: string;
|
|
169
|
-
};
|
|
170
|
-
keyframes: {
|
|
171
|
-
skeleton: {
|
|
172
|
-
'0%, 100%': {
|
|
173
|
-
'background-color': any;
|
|
174
|
-
};
|
|
175
|
-
'50%': {
|
|
176
|
-
'background-color': any;
|
|
177
|
-
};
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
};
|
|
2
|
+
declare const _default: import("tailwindcss/types/config").Config;
|
|
183
3
|
export default _default;
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export * from './enums';
|
|
2
|
-
export * from './types';
|
|
3
2
|
export * from './components/__types';
|
|
4
|
-
export * from './components/table/__types/TableHeader.type';
|
|
5
|
-
export * from './components/form/__types';
|
|
6
3
|
export * from './components/buttons/__types';
|
|
7
|
-
export * from './components/
|
|
4
|
+
export * from './components/inputs/__types';
|
|
5
|
+
export * from './components/inputs/Elements/__types';
|
|
6
|
+
export * from './components/navbar/__types';
|
|
7
|
+
export * from './components/table/__types';
|
|
8
|
+
export * from './components/tabs/__types';
|
package/dist/runtime/types.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export * from "./enums/index.mjs";
|
|
2
|
-
export * from "./types/index.mjs";
|
|
3
2
|
export * from "./components/__types/index.mjs";
|
|
4
|
-
export * from "./components/table/__types/TableHeader.type.mjs";
|
|
5
|
-
export * from "./components/form/__types/index.mjs";
|
|
6
3
|
export * from "./components/buttons/__types/index.mjs";
|
|
7
|
-
export * from "./components/
|
|
4
|
+
export * from "./components/inputs/__types/index.mjs";
|
|
5
|
+
export * from "./components/inputs/Elements/__types/index.mjs";
|
|
6
|
+
export * from "./components/navbar/__types/index.mjs";
|
|
7
|
+
export * from "./components/table/__types/index.mjs";
|
|
8
|
+
export * from "./components/tabs/__types/index.mjs";
|
package/dist/types.d.mts
CHANGED
|
@@ -5,4 +5,4 @@ import type { } from './module.js'
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
export type { AntTableAlign, AntTableRowTypes, AntTableSortDirection, BaseInputType, ButtonType, CollapseStrategy,
|
|
8
|
+
export type { AntCheckboxSize, AntCheckboxType, AntDateInputTypes, AntKeycapSize, AntRadioSize, AntRadioTypes, AntSpinnerSize, AntTableAlign, AntTableRowTypes, AntTableSize, AntTableSortDirection, AntTagInputSize, AntTagSize, BaseInputType, ButtonType, CollapseStrategy, CornerPosition, Direction, Grouped, IconSize, InputState, ListGroupItemState, NavbarItemTypes, Position, SelectOption, Size, State, SwitcherOption, TabItem, TabItemState, TableHeader, TagState, TextInputType, Toast, default } from './module.js'
|
package/dist/types.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ import type { } from './module'
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
export type { AntTableAlign, AntTableRowTypes, AntTableSortDirection, BaseInputType, ButtonType, CollapseStrategy,
|
|
8
|
+
export type { AntCheckboxSize, AntCheckboxType, AntDateInputTypes, AntKeycapSize, AntRadioSize, AntRadioTypes, AntSpinnerSize, AntTableAlign, AntTableRowTypes, AntTableSize, AntTableSortDirection, AntTagInputSize, AntTagSize, BaseInputType, ButtonType, CollapseStrategy, CornerPosition, Direction, Grouped, IconSize, InputState, ListGroupItemState, NavbarItemTypes, Position, SelectOption, Size, State, SwitcherOption, TabItem, TabItemState, TableHeader, TagState, TextInputType, Toast, default } from './module'
|
package/package.json
CHANGED
|
@@ -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>
|