@antify/ui 1.1.0 → 1.3.0
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 +15 -7
- package/dist/components/AntAccordionItem.vue +19 -5
- package/dist/components/AntAlert.vue +8 -6
- package/dist/components/AntDropdown.vue +50 -36
- package/dist/components/AntIcon.vue +8 -6
- package/dist/components/AntKeycap.vue +10 -10
- package/dist/components/AntListGroup.vue +5 -3
- package/dist/components/AntModal.vue +17 -7
- package/dist/components/AntPopover.vue +118 -42
- package/dist/components/AntSkeleton.vue +1 -1
- package/dist/components/AntTooltip.vue +127 -80
- package/dist/components/__stories/AntAccordion.stories.js +12 -3
- package/dist/components/__stories/AntAccordion.stories.mjs +12 -3
- package/dist/components/__stories/AntDropdown.stories.js +27 -23
- package/dist/components/__stories/AntDropdown.stories.mjs +26 -22
- package/dist/components/__stories/AntListGroup.stories.js +1 -1
- package/dist/components/__stories/AntListGroup.stories.mjs +1 -1
- package/dist/components/__stories/AntModal.stories.js +2 -1
- package/dist/components/__stories/AntModal.stories.mjs +2 -1
- package/dist/components/__stories/AntPopover.stories.js +22 -21
- package/dist/components/__stories/AntPopover.stories.mjs +22 -20
- package/dist/components/__stories/AntTooltip.stories.d.ts +0 -10
- package/dist/components/__stories/AntTooltip.stories.js +34 -212
- package/dist/components/__stories/AntTooltip.stories.mjs +29 -193
- package/dist/components/buttons/AntButton.vue +41 -44
- package/dist/components/crud/AntCrud.vue +1 -1
- package/dist/components/crud/AntCrudDetailActions.vue +1 -0
- package/dist/components/crud/AntCrudDetailNav.vue +1 -0
- package/dist/components/crud/AntCrudTableFilter.vue +20 -18
- package/dist/components/forms/AntField.vue +7 -2
- package/dist/components/forms/__stories/AntField.stories.js +0 -16
- package/dist/components/forms/__stories/AntField.stories.mjs +2 -16
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +7 -7
- package/dist/components/index.mjs +2 -2
- package/dist/components/inputs/AntCheckbox.vue +25 -6
- package/dist/components/inputs/AntDateInput.vue +1 -1
- package/dist/components/inputs/AntRadio.vue +2 -1
- package/dist/components/inputs/AntSelect.vue +25 -22
- package/dist/components/inputs/AntSwitch.vue +2 -7
- package/dist/components/inputs/AntTagInput.vue +91 -114
- package/dist/components/inputs/AntTextarea.vue +16 -4
- package/dist/components/inputs/Elements/AntBaseInput.vue +2 -2
- package/dist/components/inputs/Elements/{AntDropDown.vue → AntSelectMenu.vue} +84 -40
- package/dist/components/inputs/Elements/__stories/AntBaseInput.stories.d.ts +0 -1
- package/dist/components/inputs/Elements/__stories/AntBaseInput.stories.js +1 -29
- package/dist/components/inputs/Elements/__stories/AntBaseInput.stories.mjs +0 -22
- package/dist/components/inputs/Elements/index.d.ts +2 -1
- package/dist/components/inputs/Elements/index.js +7 -0
- package/dist/components/inputs/Elements/index.mjs +3 -1
- package/dist/components/inputs/__stories/AntCheckbox.stories.d.ts +0 -1
- package/dist/components/inputs/__stories/AntCheckbox.stories.js +1 -43
- package/dist/components/inputs/__stories/AntCheckbox.stories.mjs +0 -35
- package/dist/components/inputs/__stories/AntCheckboxGroup.stories.d.ts +0 -1
- package/dist/components/inputs/__stories/AntCheckboxGroup.stories.js +1 -31
- package/dist/components/inputs/__stories/AntCheckboxGroup.stories.mjs +0 -28
- package/dist/components/inputs/__stories/AntDateInput.stories.d.ts +0 -1
- package/dist/components/inputs/__stories/AntDateInput.stories.js +1 -32
- package/dist/components/inputs/__stories/AntDateInput.stories.mjs +0 -28
- package/dist/components/inputs/__stories/AntNumberInput.stories.d.ts +0 -2
- package/dist/components/inputs/__stories/AntNumberInput.stories.js +1 -65
- package/dist/components/inputs/__stories/AntNumberInput.stories.mjs +1 -54
- package/dist/components/inputs/__stories/AntPasswordInput.stories.d.ts +0 -1
- package/dist/components/inputs/__stories/AntPasswordInput.stories.js +1 -35
- package/dist/components/inputs/__stories/AntPasswordInput.stories.mjs +0 -25
- package/dist/components/inputs/__stories/AntRadioGroup.stories.d.ts +0 -1
- package/dist/components/inputs/__stories/AntRadioGroup.stories.js +1 -47
- package/dist/components/inputs/__stories/AntRadioGroup.stories.mjs +0 -46
- package/dist/components/inputs/__stories/AntRangeSlider.stories.d.ts +0 -1
- package/dist/components/inputs/__stories/AntRangeSlider.stories.js +1 -33
- package/dist/components/inputs/__stories/AntRangeSlider.stories.mjs +1 -28
- package/dist/components/inputs/__stories/AntSelect.stories.d.ts +0 -1
- package/dist/components/inputs/__stories/AntSelect.stories.js +18 -46
- package/dist/components/inputs/__stories/AntSelect.stories.mjs +16 -47
- package/dist/components/inputs/__stories/AntSwitch.stories.d.ts +0 -1
- package/dist/components/inputs/__stories/AntSwitch.stories.js +1 -42
- package/dist/components/inputs/__stories/AntSwitch.stories.mjs +1 -37
- package/dist/components/inputs/__stories/AntSwitcher.stories.d.ts +0 -1
- package/dist/components/inputs/__stories/AntSwitcher.stories.js +1 -51
- package/dist/components/inputs/__stories/AntSwitcher.stories.mjs +1 -51
- package/dist/components/inputs/__stories/AntTagInput.stories.d.ts +0 -1
- package/dist/components/inputs/__stories/AntTagInput.stories.js +1 -35
- package/dist/components/inputs/__stories/AntTagInput.stories.mjs +0 -33
- package/dist/components/inputs/__stories/AntTextInput.stories.d.ts +0 -2
- package/dist/components/inputs/__stories/AntTextInput.stories.js +2 -107
- package/dist/components/inputs/__stories/AntTextInput.stories.mjs +1 -104
- package/dist/components/inputs/__stories/AntTextarea.stories.d.ts +0 -2
- package/dist/components/inputs/__stories/AntTextarea.stories.js +7 -66
- package/dist/components/inputs/__stories/AntTextarea.stories.mjs +6 -55
- package/dist/components/inputs/__stories/AntUnitInput.stories.d.ts +0 -2
- package/dist/components/inputs/__stories/AntUnitInput.stories.js +1 -61
- package/dist/components/inputs/__stories/AntUnitInput.stories.mjs +0 -53
- package/dist/components/table/AntTable.vue +17 -15
- package/dist/components/table/AntTd.vue +1 -2
- package/dist/components/table/__stories/AntTable.stories.js +7 -14
- package/dist/components/table/__stories/AntTable.stories.mjs +7 -15
- package/dist/components/tabs/AntTabItem.vue +24 -7
- package/dist/components/tabs/AntTabs.vue +14 -2
- package/dist/components/tabs/__stories/AntTabs.stories.d.ts +1 -0
- package/dist/components/tabs/__stories/AntTabs.stories.js +112 -6
- package/dist/components/tabs/__stories/AntTabs.stories.mjs +120 -5
- package/dist/components/tabs/__types/AntTabItem.types.d.ts +2 -0
- package/dist/components/tabs/__types/AntTabItem.types.js +1 -0
- package/dist/components/tabs/__types/AntTabItem.types.mjs +1 -0
- package/package.json +2 -1
|
@@ -69,6 +69,69 @@ export const FixedHeight = {
|
|
|
69
69
|
}),
|
|
70
70
|
args: Docs.args
|
|
71
71
|
};
|
|
72
|
+
export const HorizontalScrolling = {
|
|
73
|
+
render: (args) => ({
|
|
74
|
+
components: { AntTabs, AntFormGroupLabel, AntFormGroup },
|
|
75
|
+
setup() {
|
|
76
|
+
return { args };
|
|
77
|
+
},
|
|
78
|
+
template: `
|
|
79
|
+
<AntFormGroup>
|
|
80
|
+
|
|
81
|
+
<AntFormGroupLabel>Default Small</AntFormGroupLabel>
|
|
82
|
+
<AntFormGroup class="dashed max-w-[320px] overflow-hidden">
|
|
83
|
+
<AntTabs v-bind="args" v-model="args.modelValue" />
|
|
84
|
+
</AntFormGroup>
|
|
85
|
+
|
|
86
|
+
<AntFormGroupLabel>Expanded Small</AntFormGroupLabel>
|
|
87
|
+
<AntFormGroup class="dashed max-w-[320px] overflow-hidden">
|
|
88
|
+
<AntTabs v-bind="args" v-model="args.modelValue" expanded />
|
|
89
|
+
</AntFormGroup>
|
|
90
|
+
|
|
91
|
+
<AntFormGroupLabel>Default Large</AntFormGroupLabel>
|
|
92
|
+
<AntFormGroup class="dashed">
|
|
93
|
+
<AntTabs v-bind="args" v-model="args.modelValue" />
|
|
94
|
+
</AntFormGroup>
|
|
95
|
+
|
|
96
|
+
<AntFormGroupLabel>Expanded Large</AntFormGroupLabel>
|
|
97
|
+
<AntFormGroup class="dashed">
|
|
98
|
+
<AntTabs v-bind="args" v-model="args.modelValue" expanded />
|
|
99
|
+
</AntFormGroup>
|
|
100
|
+
|
|
101
|
+
</AntFormGroup>
|
|
102
|
+
`
|
|
103
|
+
}),
|
|
104
|
+
args: {
|
|
105
|
+
tabItems: [
|
|
106
|
+
{
|
|
107
|
+
id: "1",
|
|
108
|
+
label: "First tab"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
id: "2",
|
|
112
|
+
label: "Second tab"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
id: "3",
|
|
116
|
+
label: "Third tab",
|
|
117
|
+
state: TabItemState.warning
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
id: "4",
|
|
121
|
+
label: "Fourth tab",
|
|
122
|
+
state: TabItemState.danger
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
id: "5",
|
|
126
|
+
label: "Fifth tab"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
id: "6",
|
|
130
|
+
label: "Sixth tab"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
};
|
|
72
135
|
export const DifferentStates = {
|
|
73
136
|
render: Docs.render,
|
|
74
137
|
args: {
|
|
@@ -90,6 +153,11 @@ export const DifferentStates = {
|
|
|
90
153
|
id: "4",
|
|
91
154
|
label: "Fourth tab",
|
|
92
155
|
state: TabItemState.danger
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
id: "5",
|
|
159
|
+
label: "Fifth tab",
|
|
160
|
+
state: TabItemState.info
|
|
93
161
|
}
|
|
94
162
|
]
|
|
95
163
|
}
|
|
@@ -101,6 +169,7 @@ export const Summary = {
|
|
|
101
169
|
const value_1 = ref();
|
|
102
170
|
const value_2 = ref();
|
|
103
171
|
const value_3 = ref("2");
|
|
172
|
+
const value_4 = ref();
|
|
104
173
|
const tabItems_1 = [
|
|
105
174
|
{
|
|
106
175
|
id: "1",
|
|
@@ -142,14 +211,45 @@ export const Summary = {
|
|
|
142
211
|
to: "/#"
|
|
143
212
|
}
|
|
144
213
|
];
|
|
214
|
+
const tabItems_4 = [
|
|
215
|
+
{
|
|
216
|
+
id: "1",
|
|
217
|
+
label: "First tab"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
id: "2",
|
|
221
|
+
label: "Second tab"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
id: "3",
|
|
225
|
+
label: "Third tab",
|
|
226
|
+
state: TabItemState.warning
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
id: "4",
|
|
230
|
+
label: "Fourth tab",
|
|
231
|
+
state: TabItemState.danger
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
id: "5",
|
|
235
|
+
label: "Fifth tab",
|
|
236
|
+
state: TabItemState.info
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
id: "6",
|
|
240
|
+
label: "Sixth tab"
|
|
241
|
+
}
|
|
242
|
+
];
|
|
145
243
|
return {
|
|
146
244
|
args,
|
|
147
245
|
value_1,
|
|
148
246
|
value_2,
|
|
149
247
|
value_3,
|
|
248
|
+
value_4,
|
|
150
249
|
tabItems_1,
|
|
151
250
|
tabItems_2,
|
|
152
|
-
tabItems_3
|
|
251
|
+
tabItems_3,
|
|
252
|
+
tabItems_4
|
|
153
253
|
};
|
|
154
254
|
},
|
|
155
255
|
template: `
|
|
@@ -163,15 +263,30 @@ export const Summary = {
|
|
|
163
263
|
|
|
164
264
|
<AntFormGroupLabel>Expanded</AntFormGroupLabel>
|
|
165
265
|
<AntFormGroup>
|
|
166
|
-
<div class="dashed"><AntTabs v-model="value_1" :tab-items="tabItems_1" expanded
|
|
167
|
-
<div class="dashed"><AntTabs v-model="value_2" :tab-items="tabItems_2" expanded
|
|
168
|
-
<div class="dashed"><AntTabs v-model="value_3" :tab-items="tabItems_3" expanded
|
|
266
|
+
<div class="dashed"><AntTabs v-model="value_1" :tab-items="tabItems_1" expanded/></div>
|
|
267
|
+
<div class="dashed"><AntTabs v-model="value_2" :tab-items="tabItems_2" expanded/></div>
|
|
268
|
+
<div class="dashed"><AntTabs v-model="value_3" :tab-items="tabItems_3" expanded/></div>
|
|
169
269
|
</AntFormGroup>
|
|
170
270
|
|
|
171
271
|
<AntFormGroupLabel>Larger container</AntFormGroupLabel>
|
|
172
272
|
<div class="h-16 dashed">
|
|
173
|
-
<AntTabs v-model="value_3" :tab-items="tabItems_3" expanded
|
|
273
|
+
<AntTabs v-model="value_3" :tab-items="tabItems_3" expanded/>
|
|
274
|
+
</div>
|
|
275
|
+
|
|
276
|
+
<AntFormGroupLabel>Different States</AntFormGroupLabel>
|
|
277
|
+
<div class="dashed">
|
|
278
|
+
<AntTabs v-model="value_4" :tab-items="tabItems_4" />
|
|
174
279
|
</div>
|
|
280
|
+
|
|
281
|
+
<AntFormGroupLabel>Default Small Parent Container</AntFormGroupLabel>
|
|
282
|
+
<AntFormGroup class="dashed max-w-[320px] overflow-hidden">
|
|
283
|
+
<AntTabs v-model="value_4" :tab-items="tabItems_4" />
|
|
284
|
+
</AntFormGroup>
|
|
285
|
+
|
|
286
|
+
<AntFormGroupLabel>Expanded Small Parent Container</AntFormGroupLabel>
|
|
287
|
+
<AntFormGroup class="dashed max-w-[320px] overflow-hidden">
|
|
288
|
+
<AntTabs v-model="value_4" :tab-items="tabItems_4" expanded />
|
|
289
|
+
</AntFormGroup>
|
|
175
290
|
</AntFormGroup>
|
|
176
291
|
`
|
|
177
292
|
}),
|
|
@@ -4,6 +4,7 @@ export type TabItem = {
|
|
|
4
4
|
id: string;
|
|
5
5
|
label: string;
|
|
6
6
|
state?: TabItemState;
|
|
7
|
+
disabled?: boolean;
|
|
7
8
|
showIcon?: boolean;
|
|
8
9
|
icon?: IconDefinition;
|
|
9
10
|
to?: string | RouteLocationRaw;
|
|
@@ -12,6 +13,7 @@ export type TabItem = {
|
|
|
12
13
|
};
|
|
13
14
|
export declare enum TabItemState {
|
|
14
15
|
base = "base",
|
|
16
|
+
info = "info",
|
|
15
17
|
warning = "warning",
|
|
16
18
|
danger = "danger"
|
|
17
19
|
}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.TabItemState = void 0;
|
|
7
7
|
var TabItemState = exports.TabItemState = /* @__PURE__ */(TabItemState2 => {
|
|
8
8
|
TabItemState2["base"] = "base";
|
|
9
|
+
TabItemState2["info"] = "info";
|
|
9
10
|
TabItemState2["warning"] = "warning";
|
|
10
11
|
TabItemState2["danger"] = "danger";
|
|
11
12
|
return TabItemState2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antify/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"vue": "^3.4.29"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
+
"@floating-ui/vue": "^1.1.5",
|
|
49
50
|
"@fortawesome/free-regular-svg-icons": "^6.5.1",
|
|
50
51
|
"@fortawesome/free-solid-svg-icons": "^6.5.1",
|
|
51
52
|
"@fortawesome/vue-fontawesome": "^3.0.5",
|