@antify/ui 2.2.1 → 2.2.4
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/components/AntAccordion.vue +25 -12
- package/dist/components/AntAccordionItem.vue +28 -13
- package/dist/components/AntAlert.vue +25 -15
- package/dist/components/AntCard.vue +26 -14
- package/dist/components/AntContent.vue +4 -4
- package/dist/components/AntDropdown.vue +41 -23
- package/dist/components/AntIcon.vue +18 -6
- package/dist/components/AntKeycap.vue +31 -16
- package/dist/components/AntListGroup.vue +13 -11
- package/dist/components/AntListGroupItem.vue +19 -9
- package/dist/components/AntModal.vue +26 -15
- package/dist/components/AntPagination.vue +28 -15
- package/dist/components/AntPopover.vue +74 -51
- package/dist/components/AntSkeleton.vue +8 -4
- package/dist/components/AntSpinner.vue +14 -6
- package/dist/components/AntTag.vue +25 -13
- package/dist/components/AntToast.vue +19 -11
- package/dist/components/AntToaster.vue +13 -5
- package/dist/components/AntTooltip.vue +78 -54
- package/dist/components/__stories/AntAccordion.stories.js +4 -4
- package/dist/components/__stories/AntAccordion.stories.mjs +50 -17
- package/dist/components/__stories/AntAlert.stories.mjs +18 -5
- package/dist/components/__stories/AntCard.stories.mjs +36 -10
- package/dist/components/__stories/AntContent.stories.mjs +14 -4
- package/dist/components/__stories/AntDropdown.stories.mjs +20 -4
- package/dist/components/__stories/AntIcon.stories.mjs +38 -12
- package/dist/components/__stories/AntKeycap.stories.mjs +35 -10
- package/dist/components/__stories/AntListGroup.stories.d.ts +1 -1
- package/dist/components/__stories/AntListGroup.stories.mjs +22 -4
- package/dist/components/__stories/AntListGroupItem.stories.mjs +27 -8
- package/dist/components/__stories/AntModal.stories.mjs +17 -4
- package/dist/components/__stories/AntPagination.stories.mjs +21 -6
- package/dist/components/__stories/AntPopover.stories.mjs +20 -4
- package/dist/components/__stories/AntSkeleton.stories.mjs +17 -5
- package/dist/components/__stories/AntSpinner.stories.mjs +33 -9
- package/dist/components/__stories/AntTag.stories.mjs +28 -8
- package/dist/components/__stories/AntToast.stories.mjs +19 -5
- package/dist/components/__stories/AntToaster.stories.d.ts +1 -1
- package/dist/components/__stories/AntToaster.stories.mjs +35 -9
- package/dist/components/__stories/AntTooltip.stories.js +1 -1
- package/dist/components/__stories/AntTooltip.stories.mjs +44 -13
- package/dist/components/buttons/AntActionButton.vue +38 -29
- package/dist/components/buttons/AntButton.vue +34 -13
- package/dist/components/buttons/AntCreateButton.vue +11 -4
- package/dist/components/buttons/AntDeleteButton.vue +11 -4
- package/dist/components/buttons/AntDuplicateButton.vue +11 -4
- package/dist/components/buttons/AntEditButton.vue +11 -4
- package/dist/components/buttons/AntSaveAndNewButton.vue +11 -4
- package/dist/components/buttons/AntSaveButton.vue +11 -4
- package/dist/components/buttons/__stories/AntActionButton.stories.mjs +35 -10
- package/dist/components/buttons/__stories/AntButton.stories.mjs +77 -23
- package/dist/components/buttons/__stories/AntCreateButton.stories.mjs +25 -7
- package/dist/components/buttons/__stories/AntDeleteButton.stories.mjs +25 -7
- package/dist/components/buttons/__stories/AntDuplicateButton.stories.mjs +25 -7
- package/dist/components/buttons/__stories/AntEditButton.stories.mjs +25 -7
- package/dist/components/buttons/__stories/AntSaveAndNewButton.stories.mjs +25 -7
- package/dist/components/buttons/__stories/AntSaveButton.stories.mjs +25 -7
- package/dist/components/crud/AntCrud.vue +6 -6
- package/dist/components/crud/AntCrudDetail.vue +8 -5
- package/dist/components/crud/AntCrudDetailActions.vue +14 -8
- package/dist/components/crud/AntCrudDetailNav.vue +21 -13
- package/dist/components/crud/AntCrudTableFilter.vue +29 -17
- package/dist/components/crud/AntCrudTableNav.vue +36 -22
- package/dist/components/crud/__stories/AntCrud.stories.mjs +17 -5
- package/dist/components/crud/__stories/AntCrudDetail.stories.mjs +11 -3
- package/dist/components/crud/__stories/AntCrudDetailActions.stories.mjs +10 -2
- package/dist/components/crud/__stories/AntCrudDetailNav.stories.mjs +11 -3
- package/dist/components/crud/__stories/AntCrudTableFilter.stories.mjs +17 -5
- package/dist/components/crud/__stories/AntCrudTableNav.stories.mjs +23 -7
- package/dist/components/dialogs/AntDeleteDialog.vue +13 -5
- package/dist/components/dialogs/AntDialog.vue +23 -13
- package/dist/components/dialogs/__stories/AndDeleteDialog.stories.mjs +12 -3
- package/dist/components/dialogs/__stories/AntDialog.stories.mjs +28 -7
- package/dist/components/forms/AntField.vue +18 -7
- package/dist/components/forms/AntFormGroup.vue +9 -5
- package/dist/components/forms/AntFormGroupLabel.vue +1 -1
- package/dist/components/forms/__stories/AntField.stories.mjs +37 -9
- package/dist/components/forms/__stories/AntFormGroup.stories.mjs +20 -5
- package/dist/components/forms/__stories/AntFormGroupLabel.stories.mjs +11 -3
- package/dist/components/index.d.ts +1 -1
- package/dist/components/inputs/AntCheckbox.vue +60 -36
- package/dist/components/inputs/AntCheckboxGroup.vue +39 -15
- package/dist/components/inputs/AntDateInput.vue +35 -12
- package/dist/components/inputs/AntNumberInput.vue +33 -12
- package/dist/components/inputs/AntPasswordInput.vue +32 -11
- package/dist/components/inputs/AntRadio.vue +57 -34
- package/dist/components/inputs/AntRadioGroup.vue +60 -35
- package/dist/components/inputs/AntRangeSlider.vue +31 -12
- package/dist/components/inputs/AntSearch.vue +19 -7
- package/dist/components/inputs/AntSelect.vue +107 -83
- package/dist/components/inputs/AntSwitch.vue +35 -18
- package/dist/components/inputs/AntSwitcher.vue +30 -15
- package/dist/components/inputs/AntTagInput.vue +91 -61
- package/dist/components/inputs/AntTextInput.vue +31 -11
- package/dist/components/inputs/AntTextarea.vue +53 -25
- package/dist/components/inputs/AntUnitInput.vue +33 -12
- package/dist/components/inputs/Elements/AntBaseInput.vue +47 -18
- package/dist/components/inputs/Elements/AntInputDescription.vue +16 -8
- package/dist/components/inputs/Elements/AntInputLabel.vue +13 -5
- package/dist/components/inputs/Elements/AntInputLimiter.vue +13 -5
- package/dist/components/inputs/Elements/AntSelectMenu.vue +65 -41
- package/dist/components/inputs/Elements/__stories/AntBaseInput.stories.mjs +104 -27
- package/dist/components/inputs/Elements/__stories/AntInputDescription.stories.mjs +33 -9
- package/dist/components/inputs/Elements/__stories/AntInputLabel.stories.mjs +34 -9
- package/dist/components/inputs/Elements/__stories/AntInputLimiter.stories.mjs +33 -9
- package/dist/components/inputs/Elements/index.d.ts +1 -1
- package/dist/components/inputs/__stories/AntCheckbox.stories.mjs +34 -9
- package/dist/components/inputs/__stories/AntCheckboxGroup.stories.mjs +45 -21
- package/dist/components/inputs/__stories/AntDateInput.stories.mjs +52 -14
- package/dist/components/inputs/__stories/AntNumberInput.stories.mjs +66 -17
- package/dist/components/inputs/__stories/AntPasswordInput.stories.mjs +51 -13
- package/dist/components/inputs/__stories/AntRadioGroup.stories.mjs +45 -12
- package/dist/components/inputs/__stories/AntRangeSlider.stories.mjs +16 -5
- package/dist/components/inputs/__stories/AntSearch.stories.mjs +41 -10
- package/dist/components/inputs/__stories/AntSelect.stories.mjs +59 -15
- package/dist/components/inputs/__stories/AntSwitch.stories.js +126 -102
- package/dist/components/inputs/__stories/AntSwitch.stories.mjs +162 -112
- package/dist/components/inputs/__stories/AntSwitcher.stories.mjs +38 -10
- package/dist/components/inputs/__stories/AntTagInput.stories.mjs +46 -12
- package/dist/components/inputs/__stories/AntTextInput.stories.mjs +59 -16
- package/dist/components/inputs/__stories/AntTextarea.stories.mjs +47 -13
- package/dist/components/inputs/__stories/AntUnitInput.stories.mjs +46 -12
- package/dist/components/layouts/AntNavLeftLayout.vue +12 -6
- package/dist/components/layouts/__stories/AntNavLeftLayout.stories.mjs +10 -2
- package/dist/components/navbar/AntNavbar.vue +7 -3
- package/dist/components/navbar/AntNavbarItem.vue +12 -6
- package/dist/components/navbar/__stories/AntNavbar.stories.mjs +59 -37
- package/dist/components/table/AntCollapsibleTableRowContent.vue +7 -5
- package/dist/components/table/AntTable.vue +210 -165
- package/dist/components/table/AntTableSkeleton.vue +126 -0
- package/dist/components/table/AntTableSortButton.vue +22 -13
- package/dist/components/table/AntTd.vue +21 -17
- package/dist/components/table/AntTh.vue +19 -12
- package/dist/components/table/__stories/AntTable.stories.js +1 -1
- package/dist/components/table/__stories/AntTable.stories.mjs +190 -62
- package/dist/components/tabs/AntTabItem.vue +20 -8
- package/dist/components/tabs/AntTabs.vue +35 -21
- package/dist/components/tabs/__stories/AntTabItem.stories.mjs +23 -7
- package/dist/components/tabs/__stories/AntTabs.stories.mjs +45 -13
- package/dist/components/transitions/AntTransitionCollapseHeight.vue +1 -1
- package/dist/composables/useToaster.mjs +25 -7
- package/dist/index.css +1 -0
- package/dist/utils.mjs +3 -1
- package/package.json +23 -16
- package/dist/tailwind.config.d.ts +0 -3
- package/dist/tailwind.config.js +0 -198
- package/dist/tailwind.config.mjs +0 -189
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import AntTabItem from "../AntTabItem.vue";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
TabItemState
|
|
4
|
+
} from "../__types/AntTabItem.types.mjs";
|
|
5
|
+
import {
|
|
6
|
+
vueRouter
|
|
7
|
+
} from "storybook-vue3-router";
|
|
4
8
|
const meta = {
|
|
5
9
|
title: "Components/Tab Item",
|
|
6
10
|
component: AntTabItem,
|
|
7
|
-
parameters: {
|
|
11
|
+
parameters: {
|
|
12
|
+
controls: {
|
|
13
|
+
sort: "requiredFirst"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
8
16
|
decorators: [
|
|
9
|
-
() => ({
|
|
17
|
+
() => ({
|
|
18
|
+
template: '<div class="dashed"><story /></div>'
|
|
19
|
+
}),
|
|
10
20
|
vueRouter()
|
|
11
21
|
],
|
|
12
22
|
argTypes: {
|
|
@@ -15,7 +25,9 @@ const meta = {
|
|
|
15
25
|
description: "Some InputStates can have an icon. Control with this property if it gets shown or not."
|
|
16
26
|
},
|
|
17
27
|
state: {
|
|
18
|
-
control: {
|
|
28
|
+
control: {
|
|
29
|
+
type: "select"
|
|
30
|
+
},
|
|
19
31
|
options: Object.values(TabItemState)
|
|
20
32
|
}
|
|
21
33
|
}
|
|
@@ -23,9 +35,13 @@ const meta = {
|
|
|
23
35
|
export default meta;
|
|
24
36
|
export const Docs = {
|
|
25
37
|
render: (args) => ({
|
|
26
|
-
components: {
|
|
38
|
+
components: {
|
|
39
|
+
AntTabItem
|
|
40
|
+
},
|
|
27
41
|
setup() {
|
|
28
|
-
return {
|
|
42
|
+
return {
|
|
43
|
+
args
|
|
44
|
+
};
|
|
29
45
|
},
|
|
30
46
|
template: '<AntTabItem v-bind="args"/>'
|
|
31
47
|
}),
|
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
import AntTabs from "../AntTabs.vue";
|
|
2
2
|
import AntFormGroupLabel from "../../forms/AntFormGroupLabel.vue";
|
|
3
3
|
import AntFormGroup from "../../forms/AntFormGroup.vue";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
ref
|
|
6
|
+
} from "vue";
|
|
7
|
+
import {
|
|
8
|
+
faUserCircle
|
|
9
|
+
} from "@fortawesome/free-regular-svg-icons";
|
|
10
|
+
import {
|
|
11
|
+
TabItemState
|
|
12
|
+
} from "../__types/AntTabItem.types.mjs";
|
|
13
|
+
import {
|
|
14
|
+
vueRouter
|
|
15
|
+
} from "storybook-vue3-router";
|
|
8
16
|
const meta = {
|
|
9
17
|
title: "Components/Tabs",
|
|
10
18
|
component: AntTabs,
|
|
11
|
-
parameters: {
|
|
12
|
-
|
|
19
|
+
parameters: {
|
|
20
|
+
controls: {
|
|
21
|
+
sort: "requiredFirst"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
decorators: [
|
|
25
|
+
vueRouter()
|
|
26
|
+
],
|
|
13
27
|
argTypes: {
|
|
14
28
|
modelValue: {
|
|
15
29
|
control: "text",
|
|
@@ -24,9 +38,13 @@ const meta = {
|
|
|
24
38
|
export default meta;
|
|
25
39
|
export const Docs = {
|
|
26
40
|
render: (args) => ({
|
|
27
|
-
components: {
|
|
41
|
+
components: {
|
|
42
|
+
AntTabs
|
|
43
|
+
},
|
|
28
44
|
setup() {
|
|
29
|
-
return {
|
|
45
|
+
return {
|
|
46
|
+
args
|
|
47
|
+
};
|
|
30
48
|
},
|
|
31
49
|
template: `
|
|
32
50
|
<div class="dashed">
|
|
@@ -57,9 +75,13 @@ export const Docs = {
|
|
|
57
75
|
};
|
|
58
76
|
export const FixedHeight = {
|
|
59
77
|
render: (args) => ({
|
|
60
|
-
components: {
|
|
78
|
+
components: {
|
|
79
|
+
AntTabs
|
|
80
|
+
},
|
|
61
81
|
setup() {
|
|
62
|
-
return {
|
|
82
|
+
return {
|
|
83
|
+
args
|
|
84
|
+
};
|
|
63
85
|
},
|
|
64
86
|
template: `
|
|
65
87
|
<div class="dashed h-20">
|
|
@@ -71,9 +93,15 @@ export const FixedHeight = {
|
|
|
71
93
|
};
|
|
72
94
|
export const HorizontalScrolling = {
|
|
73
95
|
render: (args) => ({
|
|
74
|
-
components: {
|
|
96
|
+
components: {
|
|
97
|
+
AntTabs,
|
|
98
|
+
AntFormGroupLabel,
|
|
99
|
+
AntFormGroup
|
|
100
|
+
},
|
|
75
101
|
setup() {
|
|
76
|
-
return {
|
|
102
|
+
return {
|
|
103
|
+
args
|
|
104
|
+
};
|
|
77
105
|
},
|
|
78
106
|
template: `
|
|
79
107
|
<AntFormGroup>
|
|
@@ -164,7 +192,11 @@ export const DifferentStates = {
|
|
|
164
192
|
};
|
|
165
193
|
export const Summary = {
|
|
166
194
|
render: (args) => ({
|
|
167
|
-
components: {
|
|
195
|
+
components: {
|
|
196
|
+
AntTabs,
|
|
197
|
+
AntFormGroupLabel,
|
|
198
|
+
AntFormGroup
|
|
199
|
+
},
|
|
168
200
|
setup() {
|
|
169
201
|
const value_1 = ref();
|
|
170
202
|
const value_2 = ref();
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
ref
|
|
3
|
+
} from "vue";
|
|
4
|
+
import {
|
|
5
|
+
InputState
|
|
6
|
+
} from "../enums/index.mjs";
|
|
3
7
|
export const useToaster = () => {
|
|
4
8
|
const toasts = ref([]);
|
|
5
9
|
return {
|
|
6
10
|
getToasts() {
|
|
7
|
-
return [
|
|
11
|
+
return [
|
|
12
|
+
...toasts.value
|
|
13
|
+
].reverse();
|
|
8
14
|
},
|
|
9
15
|
toast(toast) {
|
|
10
16
|
const id = `${Date.now()}`;
|
|
@@ -26,16 +32,28 @@ export const useToaster = () => {
|
|
|
26
32
|
}
|
|
27
33
|
},
|
|
28
34
|
toastSuccess(message) {
|
|
29
|
-
this.toast({
|
|
35
|
+
this.toast({
|
|
36
|
+
title: message,
|
|
37
|
+
type: InputState.success
|
|
38
|
+
});
|
|
30
39
|
},
|
|
31
40
|
toastError(message) {
|
|
32
|
-
this.toast({
|
|
41
|
+
this.toast({
|
|
42
|
+
title: message,
|
|
43
|
+
type: InputState.danger
|
|
44
|
+
});
|
|
33
45
|
},
|
|
34
46
|
toastWarning(message) {
|
|
35
|
-
this.toast({
|
|
47
|
+
this.toast({
|
|
48
|
+
title: message,
|
|
49
|
+
type: InputState.warning
|
|
50
|
+
});
|
|
36
51
|
},
|
|
37
52
|
toastInfo(message) {
|
|
38
|
-
this.toast({
|
|
53
|
+
this.toast({
|
|
54
|
+
title: message,
|
|
55
|
+
type: InputState.info
|
|
56
|
+
});
|
|
39
57
|
},
|
|
40
58
|
toastDeleted() {
|
|
41
59
|
this.toastSuccess("Deleted");
|
package/dist/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "tailwindcss";@theme inline{--color-base-50:var(--color-slate-50);--color-base-100:var(--color-slate-100);--color-base-200:var(--color-slate-200);--color-base-300:var(--color-slate-300);--color-base-400:var(--color-slate-400);--color-base-500:var(--color-slate-500);--color-base-600:var(--color-slate-600);--color-base-700:var(--color-slate-700);--color-base-800:var(--color-slate-800);--color-base-900:var(--color-slate-900);--color-base-950:var(--color-slate-950);--color-primary-50:var(--color-sky-50);--color-primary-100:var(--color-sky-100);--color-primary-200:var(--color-sky-200);--color-primary-300:var(--color-sky-300);--color-primary-400:var(--color-sky-400);--color-primary-500:var(--color-sky-500);--color-primary-600:var(--color-sky-600);--color-primary-700:var(--color-sky-700);--color-primary-800:var(--color-sky-800);--color-primary-900:var(--color-sky-900);--color-primary-950:var(--color-sky-950);--color-secondary-50:var(--color-lime-50);--color-secondary-100:var(--color-lime-100);--color-secondary-200:var(--color-lime-200);--color-secondary-300:var(--color-lime-300);--color-secondary-400:var(--color-lime-400);--color-secondary-500:var(--color-lime-500);--color-secondary-600:var(--color-lime-600);--color-secondary-700:var(--color-lime-700);--color-secondary-800:var(--color-lime-800);--color-secondary-900:var(--color-lime-900);--color-secondary-950:var(--color-lime-950);--color-info-50:var(--color-blue-50);--color-info-100:var(--color-blue-100);--color-info-200:var(--color-blue-200);--color-info-300:var(--color-blue-300);--color-info-400:var(--color-blue-400);--color-info-500:var(--color-blue-500);--color-info-600:var(--color-blue-600);--color-info-700:var(--color-blue-700);--color-info-800:var(--color-blue-800);--color-info-900:var(--color-blue-900);--color-info-950:var(--color-blue-950);--color-success-50:var(--color-green-50);--color-success-100:var(--color-green-100);--color-success-200:var(--color-green-200);--color-success-300:var(--color-green-300);--color-success-400:var(--color-green-400);--color-success-500:var(--color-green-500);--color-success-600:var(--color-green-600);--color-success-700:var(--color-green-700);--color-success-800:var(--color-green-800);--color-success-900:var(--color-green-900);--color-success-950:var(--color-green-950);--color-warning-50:var(--color-yellow-50);--color-warning-100:var(--color-yellow-100);--color-warning-200:var(--color-yellow-200);--color-warning-300:var(--color-yellow-300);--color-warning-400:var(--color-yellow-400);--color-warning-500:var(--color-yellow-500);--color-warning-600:var(--color-yellow-600);--color-warning-700:var(--color-yellow-700);--color-warning-800:var(--color-yellow-800);--color-warning-900:var(--color-yellow-900);--color-warning-950:var(--color-yellow-950);--color-danger-50:var(--color-red-50);--color-danger-100:var(--color-red-100);--color-danger-200:var(--color-red-200);--color-danger-300:var(--color-red-300);--color-danger-400:var(--color-red-400);--color-danger-500:var(--color-red-500);--color-danger-600:var(--color-red-600);--color-danger-700:var(--color-red-700);--color-danger-800:var(--color-red-800);--color-danger-900:var(--color-red-900);--color-danger-950:var(--color-red-950);--color-for-white-bg-font:var(--color-base-600);--color-for-black-bg-font:var(--color-base-100);--color-base-50-font:var(--color-base-600);--color-base-100-font:var(--color-base-600);--color-base-200-font:var(--color-base-600);--color-base-300-font:var(--color-base-600);--color-base-400-font:var(--color-base-600);--color-base-500-font:var(--color-base-100);--color-base-600-font:var(--color-base-100);--color-base-700-font:var(--color-base-100);--color-base-800-font:var(--color-base-100);--color-base-900-font:var(--color-base-100);--color-base-950-font:var(--color-base-100);--color-primary-50-font:var(--color-base-600);--color-primary-100-font:var(--color-base-600);--color-primary-200-font:var(--color-base-600);--color-primary-300-font:var(--color-base-600);--color-primary-400-font:var(--color-base-600);--color-primary-500-font:var(--color-base-100);--color-primary-600-font:var(--color-base-100);--color-primary-700-font:var(--color-base-100);--color-primary-800-font:var(--color-base-100);--color-primary-900-font:var(--color-base-100);--color-primary-950-font:var(--color-base-100);--color-secondary-50-font:var(--color-base-600);--color-secondary-100-font:var(--color-base-600);--color-secondary-200-font:var(--color-base-600);--color-secondary-300-font:var(--color-base-600);--color-secondary-400-font:var(--color-base-600);--color-secondary-500-font:var(--color-base-100);--color-secondary-600-font:var(--color-base-100);--color-secondary-700-font:var(--color-base-100);--color-secondary-800-font:var(--color-base-100);--color-secondary-900-font:var(--color-base-100);--color-secondary-950-font:var(--color-base-100);--color-success-50-font:var(--color-base-600);--color-success-100-font:var(--color-base-600);--color-success-200-font:var(--color-base-600);--color-success-300-font:var(--color-base-600);--color-success-400-font:var(--color-base-600);--color-success-500-font:var(--color-base-100);--color-success-600-font:var(--color-base-100);--color-success-700-font:var(--color-base-100);--color-success-800-font:var(--color-base-100);--color-success-900-font:var(--color-base-100);--color-success-950-font:var(--color-base-100);--color-info-50-font:var(--color-base-600);--color-info-100-font:var(--color-base-600);--color-info-200-font:var(--color-base-600);--color-info-300-font:var(--color-base-600);--color-info-400-font:var(--color-base-600);--color-info-500-font:var(--color-base-100);--color-info-600-font:var(--color-base-100);--color-info-700-font:var(--color-base-100);--color-info-800-font:var(--color-base-100);--color-info-900-font:var(--color-base-100);--color-info-950-font:var(--color-base-100);--color-warning-50-font:var(--color-base-600);--color-warning-100-font:var(--color-base-600);--color-warning-200-font:var(--color-base-600);--color-warning-300-font:var(--color-base-600);--color-warning-400-font:var(--color-base-600);--color-warning-500-font:var(--color-base-100);--color-warning-600-font:var(--color-base-100);--color-warning-700-font:var(--color-base-100);--color-warning-800-font:var(--color-base-100);--color-warning-900-font:var(--color-base-100);--color-warning-950-font:var(--color-base-100);--color-danger-50-font:var(--color-base-600);--color-danger-100-font:var(--color-base-600);--color-danger-200-font:var(--color-base-600);--color-danger-300-font:var(--color-base-600);--color-danger-400-font:var(--color-base-600);--color-danger-500-font:var(--color-base-100);--color-danger-600-font:var(--color-base-100);--color-danger-700-font:var(--color-base-100);--color-danger-800-font:var(--color-base-100);--color-danger-900-font:var(--color-base-100);--color-danger-950-font:var(--color-base-100);--text-2xs:0.625rem;--text-2xs--line-height:0.75rem;--animate-skeleton:skeleton 2s ease-out infinite;@keyframes skeleton{0%,to{background-color:var(--color-base-300)}50%{background-color:var(--color-base-100)}}}
|
package/dist/utils.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antify/ui",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -14,10 +14,9 @@
|
|
|
14
14
|
"import": "./dist/components/index.mjs",
|
|
15
15
|
"require": "./dist/components/index.js"
|
|
16
16
|
},
|
|
17
|
-
"./
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"require": "./dist/tailwind.config.js"
|
|
17
|
+
"./styles": {
|
|
18
|
+
"import": "./dist/index.css",
|
|
19
|
+
"require": "./dist/index.css"
|
|
21
20
|
},
|
|
22
21
|
"./install": {
|
|
23
22
|
"types": "./dist/install.d.ts",
|
|
@@ -42,7 +41,7 @@
|
|
|
42
41
|
"dist"
|
|
43
42
|
],
|
|
44
43
|
"peerDependencies": {
|
|
45
|
-
"tailwindcss": "^
|
|
44
|
+
"tailwindcss": "^4.0.3",
|
|
46
45
|
"vue": "^3.4.29"
|
|
47
46
|
},
|
|
48
47
|
"dependencies": {
|
|
@@ -50,6 +49,7 @@
|
|
|
50
49
|
"@fortawesome/free-regular-svg-icons": "^6.5.1",
|
|
51
50
|
"@fortawesome/free-solid-svg-icons": "^6.5.1",
|
|
52
51
|
"@fortawesome/vue-fontawesome": "^3.0.5",
|
|
52
|
+
"@tailwindcss/vite": "^4.0.3",
|
|
53
53
|
"@tiptap/extension-heading": "^2.1.16",
|
|
54
54
|
"@tiptap/extension-underline": "^2.1.16",
|
|
55
55
|
"@tiptap/pm": "^2.1.16",
|
|
@@ -63,16 +63,19 @@
|
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@antify/validate": "^1.14.0",
|
|
66
|
-
"@chromatic-com/storybook": "^
|
|
66
|
+
"@chromatic-com/storybook": "^3.2.4",
|
|
67
|
+
"@eslint/js": "^9.19.0",
|
|
67
68
|
"@faker-js/faker": "^8.4.1",
|
|
68
|
-
"@
|
|
69
|
-
"@storybook/addon-
|
|
70
|
-
"@storybook/addon-
|
|
71
|
-
"@storybook/addon-
|
|
72
|
-
"@storybook/
|
|
73
|
-
"@storybook/
|
|
74
|
-
"@storybook/
|
|
75
|
-
"@storybook/vue3
|
|
69
|
+
"@nuxt/eslint-plugin": "^1.0.0",
|
|
70
|
+
"@storybook/addon-essentials": "^8.5.3",
|
|
71
|
+
"@storybook/addon-interactions": "^8.5.3",
|
|
72
|
+
"@storybook/addon-links": "^8.5.3",
|
|
73
|
+
"@storybook/addon-onboarding": "^8.5.3",
|
|
74
|
+
"@storybook/blocks": "^8.5.3",
|
|
75
|
+
"@storybook/test": "^8.5.3",
|
|
76
|
+
"@storybook/vue3": "^8.5.3",
|
|
77
|
+
"@storybook/vue3-vite": "^8.5.3",
|
|
78
|
+
"@stylistic/eslint-plugin": "^3.0.1",
|
|
76
79
|
"@tsconfig/node20": "^20.1.4",
|
|
77
80
|
"@types/big.js": "^6.2.2",
|
|
78
81
|
"@types/jsdom": "^21.1.7",
|
|
@@ -81,12 +84,16 @@
|
|
|
81
84
|
"@vue/test-utils": "^2.4.6",
|
|
82
85
|
"@vue/tsconfig": "^0.5.1",
|
|
83
86
|
"chromatic": "^11.7.1",
|
|
87
|
+
"eslint-plugin-storybook": "^0.11.2",
|
|
88
|
+
"eslint-plugin-vue": "^9.32.0",
|
|
89
|
+
"globals": "^15.14.0",
|
|
84
90
|
"jsdom": "^24.1.0",
|
|
85
91
|
"npm-run-all2": "^6.2.0",
|
|
86
92
|
"standard-version": "^9.5.0",
|
|
87
|
-
"storybook": "^8.
|
|
93
|
+
"storybook": "^8.5.3",
|
|
88
94
|
"storybook-vue3-router": "^5.0.0",
|
|
89
95
|
"typescript": "~5.5.0",
|
|
96
|
+
"typescript-eslint": "^8.23.0",
|
|
90
97
|
"unbuild": "^2.0.0",
|
|
91
98
|
"vite": "^5.3.1",
|
|
92
99
|
"vitest": "^1.6.0",
|
package/dist/tailwind.config.js
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _colors = _interopRequireDefault(require("tailwindcss/colors.js"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
const colors = {
|
|
10
|
-
"transparent": _colors.default.transparent,
|
|
11
|
-
"white": _colors.default.white,
|
|
12
|
-
"black": _colors.default.black,
|
|
13
|
-
"base-50": _colors.default.slate["50"],
|
|
14
|
-
"base-100": _colors.default.slate["100"],
|
|
15
|
-
"base-200": _colors.default.slate["200"],
|
|
16
|
-
"base-300": _colors.default.slate["300"],
|
|
17
|
-
"base-400": _colors.default.slate["400"],
|
|
18
|
-
"base-500": _colors.default.slate["500"],
|
|
19
|
-
"base-600": _colors.default.slate["600"],
|
|
20
|
-
"base-700": _colors.default.slate["700"],
|
|
21
|
-
"base-800": _colors.default.slate["800"],
|
|
22
|
-
"base-900": _colors.default.slate["900"],
|
|
23
|
-
"base-950": _colors.default.slate["950"],
|
|
24
|
-
"primary-50": _colors.default.sky["50"],
|
|
25
|
-
"primary-100": _colors.default.sky["100"],
|
|
26
|
-
"primary-200": _colors.default.sky["200"],
|
|
27
|
-
"primary-300": _colors.default.sky["300"],
|
|
28
|
-
"primary-400": _colors.default.sky["400"],
|
|
29
|
-
"primary-500": _colors.default.sky["500"],
|
|
30
|
-
"primary-600": _colors.default.sky["600"],
|
|
31
|
-
"primary-700": _colors.default.sky["700"],
|
|
32
|
-
"primary-800": _colors.default.sky["800"],
|
|
33
|
-
"primary-900": _colors.default.sky["900"],
|
|
34
|
-
"primary-950": _colors.default.sky["950"],
|
|
35
|
-
"secondary-50": _colors.default.lime["50"],
|
|
36
|
-
"secondary-100": _colors.default.lime["100"],
|
|
37
|
-
"secondary-200": _colors.default.lime["200"],
|
|
38
|
-
"secondary-300": _colors.default.lime["300"],
|
|
39
|
-
"secondary-400": _colors.default.lime["400"],
|
|
40
|
-
"secondary-500": _colors.default.lime["500"],
|
|
41
|
-
"secondary-600": _colors.default.lime["600"],
|
|
42
|
-
"secondary-700": _colors.default.lime["700"],
|
|
43
|
-
"secondary-800": _colors.default.lime["800"],
|
|
44
|
-
"secondary-900": _colors.default.lime["900"],
|
|
45
|
-
"secondary-950": _colors.default.lime["950"],
|
|
46
|
-
"info-50": _colors.default.blue["50"],
|
|
47
|
-
"info-100": _colors.default.blue["100"],
|
|
48
|
-
"info-200": _colors.default.blue["200"],
|
|
49
|
-
"info-300": _colors.default.blue["300"],
|
|
50
|
-
"info-400": _colors.default.blue["400"],
|
|
51
|
-
"info-500": _colors.default.blue["500"],
|
|
52
|
-
"info-600": _colors.default.blue["600"],
|
|
53
|
-
"info-700": _colors.default.blue["700"],
|
|
54
|
-
"info-800": _colors.default.blue["800"],
|
|
55
|
-
"info-900": _colors.default.blue["900"],
|
|
56
|
-
"info-950": _colors.default.blue["950"],
|
|
57
|
-
"success-50": _colors.default.green["50"],
|
|
58
|
-
"success-100": _colors.default.green["100"],
|
|
59
|
-
"success-200": _colors.default.green["200"],
|
|
60
|
-
"success-300": _colors.default.green["300"],
|
|
61
|
-
"success-400": _colors.default.green["400"],
|
|
62
|
-
"success-500": _colors.default.green["500"],
|
|
63
|
-
"success-600": _colors.default.green["600"],
|
|
64
|
-
"success-700": _colors.default.green["700"],
|
|
65
|
-
"success-800": _colors.default.green["800"],
|
|
66
|
-
"success-900": _colors.default.green["900"],
|
|
67
|
-
"success-950": _colors.default.green["950"],
|
|
68
|
-
"warning-50": _colors.default.yellow["50"],
|
|
69
|
-
"warning-100": _colors.default.yellow["100"],
|
|
70
|
-
"warning-200": _colors.default.yellow["200"],
|
|
71
|
-
"warning-300": _colors.default.yellow["300"],
|
|
72
|
-
"warning-400": _colors.default.yellow["400"],
|
|
73
|
-
"warning-500": _colors.default.yellow["500"],
|
|
74
|
-
"warning-600": _colors.default.yellow["600"],
|
|
75
|
-
"warning-700": _colors.default.yellow["700"],
|
|
76
|
-
"warning-800": _colors.default.yellow["800"],
|
|
77
|
-
"warning-900": _colors.default.yellow["900"],
|
|
78
|
-
"warning-950": _colors.default.yellow["950"],
|
|
79
|
-
"danger-50": _colors.default.red["50"],
|
|
80
|
-
"danger-100": _colors.default.red["100"],
|
|
81
|
-
"danger-200": _colors.default.red["200"],
|
|
82
|
-
"danger-300": _colors.default.red["300"],
|
|
83
|
-
"danger-400": _colors.default.red["400"],
|
|
84
|
-
"danger-500": _colors.default.red["500"],
|
|
85
|
-
"danger-600": _colors.default.red["600"],
|
|
86
|
-
"danger-700": _colors.default.red["700"],
|
|
87
|
-
"danger-800": _colors.default.red["800"],
|
|
88
|
-
"danger-900": _colors.default.red["900"],
|
|
89
|
-
"danger-950": _colors.default.red["950"]
|
|
90
|
-
};
|
|
91
|
-
const fontColors = {
|
|
92
|
-
"for-white-bg-font": colors["base-600"],
|
|
93
|
-
"for-black-bg-font": colors["base-100"],
|
|
94
|
-
"base-50-font": colors["base-600"],
|
|
95
|
-
"base-100-font": colors["base-600"],
|
|
96
|
-
"base-200-font": colors["base-600"],
|
|
97
|
-
"base-300-font": colors["base-600"],
|
|
98
|
-
"base-400-font": colors["base-600"],
|
|
99
|
-
"base-500-font": colors["base-100"],
|
|
100
|
-
"base-600-font": colors["base-100"],
|
|
101
|
-
"base-700-font": colors["base-100"],
|
|
102
|
-
"base-800-font": colors["base-100"],
|
|
103
|
-
"base-900-font": colors["base-100"],
|
|
104
|
-
"base-950-font": colors["base-100"],
|
|
105
|
-
"primary-50-font": colors["base-600"],
|
|
106
|
-
"primary-100-font": colors["base-600"],
|
|
107
|
-
"primary-200-font": colors["base-600"],
|
|
108
|
-
"primary-300-font": colors["base-600"],
|
|
109
|
-
"primary-400-font": colors["base-600"],
|
|
110
|
-
"primary-500-font": colors["base-100"],
|
|
111
|
-
"primary-600-font": colors["base-100"],
|
|
112
|
-
"primary-700-font": colors["base-100"],
|
|
113
|
-
"primary-800-font": colors["base-100"],
|
|
114
|
-
"primary-900-font": colors["base-100"],
|
|
115
|
-
"primary-950-font": colors["base-100"],
|
|
116
|
-
"secondary-50-font": colors["base-600"],
|
|
117
|
-
"secondary-100-font": colors["base-600"],
|
|
118
|
-
"secondary-200-font": colors["base-600"],
|
|
119
|
-
"secondary-300-font": colors["base-600"],
|
|
120
|
-
"secondary-400-font": colors["base-600"],
|
|
121
|
-
"secondary-500-font": colors["base-100"],
|
|
122
|
-
"secondary-600-font": colors["base-100"],
|
|
123
|
-
"secondary-700-font": colors["base-100"],
|
|
124
|
-
"secondary-800-font": colors["base-100"],
|
|
125
|
-
"secondary-900-font": colors["base-100"],
|
|
126
|
-
"secondary-950-font": colors["base-100"],
|
|
127
|
-
"success-50-font": colors["base-600"],
|
|
128
|
-
"success-100-font": colors["base-600"],
|
|
129
|
-
"success-200-font": colors["base-600"],
|
|
130
|
-
"success-300-font": colors["base-600"],
|
|
131
|
-
"success-400-font": colors["base-600"],
|
|
132
|
-
"success-500-font": colors["base-100"],
|
|
133
|
-
"success-600-font": colors["base-100"],
|
|
134
|
-
"success-700-font": colors["base-100"],
|
|
135
|
-
"success-800-font": colors["base-100"],
|
|
136
|
-
"success-900-font": colors["base-100"],
|
|
137
|
-
"success-950-font": colors["base-100"],
|
|
138
|
-
"info-50-font": colors["base-600"],
|
|
139
|
-
"info-100-font": colors["base-600"],
|
|
140
|
-
"info-200-font": colors["base-600"],
|
|
141
|
-
"info-300-font": colors["base-600"],
|
|
142
|
-
"info-400-font": colors["base-600"],
|
|
143
|
-
"info-500-font": colors["base-100"],
|
|
144
|
-
"info-600-font": colors["base-100"],
|
|
145
|
-
"info-700-font": colors["base-100"],
|
|
146
|
-
"info-800-font": colors["base-100"],
|
|
147
|
-
"info-900-font": colors["base-100"],
|
|
148
|
-
"info-950-font": colors["base-100"],
|
|
149
|
-
"warning-50-font": colors["base-600"],
|
|
150
|
-
"warning-100-font": colors["base-600"],
|
|
151
|
-
"warning-200-font": colors["base-600"],
|
|
152
|
-
"warning-300-font": colors["base-600"],
|
|
153
|
-
"warning-400-font": colors["base-600"],
|
|
154
|
-
"warning-500-font": colors["base-100"],
|
|
155
|
-
"warning-600-font": colors["base-100"],
|
|
156
|
-
"warning-700-font": colors["base-100"],
|
|
157
|
-
"warning-800-font": colors["base-100"],
|
|
158
|
-
"warning-900-font": colors["base-100"],
|
|
159
|
-
"warning-950-font": colors["base-100"],
|
|
160
|
-
"danger-50-font": colors["base-600"],
|
|
161
|
-
"danger-100-font": colors["base-600"],
|
|
162
|
-
"danger-200-font": colors["base-600"],
|
|
163
|
-
"danger-300-font": colors["base-600"],
|
|
164
|
-
"danger-400-font": colors["base-600"],
|
|
165
|
-
"danger-500-font": colors["base-100"],
|
|
166
|
-
"danger-600-font": colors["base-100"],
|
|
167
|
-
"danger-700-font": colors["base-100"],
|
|
168
|
-
"danger-800-font": colors["base-100"],
|
|
169
|
-
"danger-900-font": colors["base-100"],
|
|
170
|
-
"danger-950-font": colors["base-100"]
|
|
171
|
-
};
|
|
172
|
-
module.exports = {
|
|
173
|
-
content: ["./src/**/*.{vue,js,ts,jsx,tsx}"],
|
|
174
|
-
theme: {
|
|
175
|
-
colors: {
|
|
176
|
-
...colors,
|
|
177
|
-
...fontColors
|
|
178
|
-
},
|
|
179
|
-
extend: {
|
|
180
|
-
fontSize: {
|
|
181
|
-
"2xs": ["0.625rem", "0.75rem"]
|
|
182
|
-
},
|
|
183
|
-
animation: {
|
|
184
|
-
skeleton: "skeleton 2s ease-out infinite"
|
|
185
|
-
},
|
|
186
|
-
keyframes: {
|
|
187
|
-
"skeleton": {
|
|
188
|
-
"0%, 100%": {
|
|
189
|
-
"background-color": colors["base-300"]
|
|
190
|
-
},
|
|
191
|
-
"50%": {
|
|
192
|
-
"background-color": colors["base-100"]
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
};
|