@antify/ui 2.4.4 → 2.4.10
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/AntDropdown.vue +1 -2
- package/dist/components/buttons/AntButton.vue +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +7 -0
- package/dist/components/index.mjs +3 -1
- package/dist/components/inputs/AntColorInput/AntColorInput.stories.d.ts +7 -0
- package/dist/components/inputs/AntColorInput/AntColorInput.stories.js +173 -0
- package/dist/components/inputs/AntColorInput/AntColorInput.stories.mjs +192 -0
- package/dist/components/inputs/AntColorInput/AntColorInput.types.d.ts +9 -0
- package/dist/components/inputs/AntColorInput/AntColorInput.types.js +16 -0
- package/dist/components/inputs/AntColorInput/AntColorInput.types.mjs +10 -0
- package/dist/components/inputs/AntColorInput/AntColorInput.vue +231 -0
- package/dist/components/inputs/AntColorInput/Color.vue +81 -0
- package/dist/components/inputs/AntColorInput/ColorSelection.vue +60 -0
- package/dist/components/inputs/AntImageInput.vue +91 -22
- package/dist/components/inputs/AntSelect.vue +4 -3
- package/dist/components/inputs/AntTagInput.vue +6 -2
- package/dist/components/inputs/Elements/AntSelectMenu.vue +15 -7
- package/dist/components/inputs/__stories/AntSelect.stories.d.ts +1 -0
- package/dist/components/inputs/__stories/AntSelect.stories.js +47 -3
- package/dist/components/inputs/__stories/AntSelect.stories.mjs +48 -2
- package/dist/components/inputs/__types/index.d.ts +1 -0
- package/dist/components/inputs/__types/index.js +11 -0
- package/dist/components/inputs/__types/index.mjs +1 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.withPlaceholder = exports.summary = exports.skeleton = exports.nullable = exports.manyOptions = exports.grouped = exports.ellipsisText = exports.disabled = exports.default = exports.WithSlots = exports.Docs = void 0;
|
|
6
|
+
exports.withPlaceholder = exports.summary = exports.skeleton = exports.nullable = exports.manyOptions = exports.longOptions = exports.grouped = exports.ellipsisText = exports.disabled = exports.default = exports.WithSlots = exports.Docs = void 0;
|
|
7
7
|
var _Size = require("../../../enums/Size.enum");
|
|
8
8
|
var _AntSelect = _interopRequireDefault(require("../AntSelect.vue"));
|
|
9
9
|
var _AntIcon = _interopRequireDefault(require("../../AntIcon.vue"));
|
|
@@ -11,6 +11,8 @@ var _AntSelectMenu = _interopRequireDefault(require("../Elements/AntSelectMenu.v
|
|
|
11
11
|
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
12
12
|
var _vue = require("vue");
|
|
13
13
|
var _enums = require("../../../enums");
|
|
14
|
+
var _AntFormGroup = _interopRequireDefault(require("../../forms/AntFormGroup.vue"));
|
|
15
|
+
var _AntFormGroupLabel = _interopRequireDefault(require("../../forms/AntFormGroupLabel.vue"));
|
|
14
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
17
|
const meta = {
|
|
16
18
|
title: "Inputs/Select",
|
|
@@ -81,6 +83,10 @@ const manySelectOptions = [...Array(24).keys()].map(key => ({
|
|
|
81
83
|
label: `Option ${Number(key) + 1}`,
|
|
82
84
|
value: Number(key) + 1
|
|
83
85
|
}));
|
|
86
|
+
const longSelectOptions = [...Array(4).keys()].map(key => ({
|
|
87
|
+
label: `Very Long Select Option Possibly Larger Than Container ${Number(key) + 1}`,
|
|
88
|
+
value: Number(key) + 1
|
|
89
|
+
}));
|
|
84
90
|
const Docs = exports.Docs = {
|
|
85
91
|
render: args => ({
|
|
86
92
|
components: {
|
|
@@ -193,6 +199,25 @@ const manyOptions = exports.manyOptions = {
|
|
|
193
199
|
options: manySelectOptions
|
|
194
200
|
}
|
|
195
201
|
};
|
|
202
|
+
const longOptions = exports.longOptions = {
|
|
203
|
+
render: (args, ctx) => ({
|
|
204
|
+
// @ts-ignore
|
|
205
|
+
components: Docs.render(args, ctx).components,
|
|
206
|
+
// @ts-ignore
|
|
207
|
+
setup: Docs.render(args, ctx).setup,
|
|
208
|
+
template: `
|
|
209
|
+
<div class="flex justify-center overflow-y-auto h-[100vh] p-2.5 dashed">
|
|
210
|
+
<div class="flex flex-col gap-4 justify-center h-[250vh] max-w-[150px]">
|
|
211
|
+
<AntSelect v-bind="args" v-model="modelValue"/>
|
|
212
|
+
</div>
|
|
213
|
+
</div>
|
|
214
|
+
`
|
|
215
|
+
}),
|
|
216
|
+
args: {
|
|
217
|
+
...Docs.args,
|
|
218
|
+
options: longSelectOptions
|
|
219
|
+
}
|
|
220
|
+
};
|
|
196
221
|
const nullable = exports.nullable = {
|
|
197
222
|
render: Docs.render,
|
|
198
223
|
args: {
|
|
@@ -312,9 +337,18 @@ const summary = exports.summary = {
|
|
|
312
337
|
},
|
|
313
338
|
render: (args, ctx) => ({
|
|
314
339
|
// @ts-ignore
|
|
315
|
-
components:
|
|
340
|
+
components: {
|
|
341
|
+
AntSelect: _AntSelect.default,
|
|
342
|
+
AntFormGroup: _AntFormGroup.default,
|
|
343
|
+
AntFormGroupLabel: _AntFormGroupLabel.default
|
|
344
|
+
},
|
|
316
345
|
// @ts-ignore
|
|
317
|
-
setup
|
|
346
|
+
setup() {
|
|
347
|
+
return {
|
|
348
|
+
...Docs.render(args, ctx).setup(),
|
|
349
|
+
longSelectOptions
|
|
350
|
+
};
|
|
351
|
+
},
|
|
318
352
|
template: `
|
|
319
353
|
<div class="p-4 flex flex-col gap-2.5">
|
|
320
354
|
<div class="flex w-2/5 gap-2.5">
|
|
@@ -385,6 +419,16 @@ const summary = exports.summary = {
|
|
|
385
419
|
<AntSelect v-bind="args" v-model="modelValue" size="sm" nullable state="warning"/>
|
|
386
420
|
<AntSelect v-bind="args" v-model="modelValue" size="sm" nullable state="danger"/>
|
|
387
421
|
</div>
|
|
422
|
+
<AntFormGroup>
|
|
423
|
+
<AntFormGroupLabel>Long Select Options</AntFormGroupLabel>
|
|
424
|
+
<div class="grid grid-cols-5 gap-2.5">
|
|
425
|
+
<AntSelect v-bind="args" v-model="modelValue" :options="longSelectOptions"/>
|
|
426
|
+
<AntSelect v-bind="args" v-model="modelValue" :options="longSelectOptions"/>
|
|
427
|
+
<AntSelect v-bind="args" v-model="modelValue" :options="longSelectOptions"/>
|
|
428
|
+
<AntSelect v-bind="args" v-model="modelValue" :options="longSelectOptions"/>
|
|
429
|
+
<AntSelect v-bind="args" v-model="modelValue" :options="longSelectOptions"/>
|
|
430
|
+
</div>
|
|
431
|
+
</AntFormGroup>
|
|
388
432
|
</div>
|
|
389
433
|
`
|
|
390
434
|
}),
|
|
@@ -15,6 +15,8 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
InputState
|
|
17
17
|
} from "../../../enums/index.mjs";
|
|
18
|
+
import AntFormGroup from "../../forms/AntFormGroup.vue";
|
|
19
|
+
import AntFormGroupLabel from "../../forms/AntFormGroupLabel.vue";
|
|
18
20
|
const meta = {
|
|
19
21
|
title: "Inputs/Select",
|
|
20
22
|
component: AntSelect,
|
|
@@ -91,6 +93,12 @@ const manySelectOptions = [
|
|
|
91
93
|
label: `Option ${Number(key) + 1}`,
|
|
92
94
|
value: Number(key) + 1
|
|
93
95
|
}));
|
|
96
|
+
const longSelectOptions = [
|
|
97
|
+
...Array(4).keys()
|
|
98
|
+
].map((key) => ({
|
|
99
|
+
label: `Very Long Select Option Possibly Larger Than Container ${Number(key) + 1}`,
|
|
100
|
+
value: Number(key) + 1
|
|
101
|
+
}));
|
|
94
102
|
export const Docs = {
|
|
95
103
|
render: (args) => ({
|
|
96
104
|
components: {
|
|
@@ -208,6 +216,25 @@ export const manyOptions = {
|
|
|
208
216
|
options: manySelectOptions
|
|
209
217
|
}
|
|
210
218
|
};
|
|
219
|
+
export const longOptions = {
|
|
220
|
+
render: (args, ctx) => ({
|
|
221
|
+
// @ts-ignore
|
|
222
|
+
components: Docs.render(args, ctx).components,
|
|
223
|
+
// @ts-ignore
|
|
224
|
+
setup: Docs.render(args, ctx).setup,
|
|
225
|
+
template: `
|
|
226
|
+
<div class="flex justify-center overflow-y-auto h-[100vh] p-2.5 dashed">
|
|
227
|
+
<div class="flex flex-col gap-4 justify-center h-[250vh] max-w-[150px]">
|
|
228
|
+
<AntSelect v-bind="args" v-model="modelValue"/>
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
`
|
|
232
|
+
}),
|
|
233
|
+
args: {
|
|
234
|
+
...Docs.args,
|
|
235
|
+
options: longSelectOptions
|
|
236
|
+
}
|
|
237
|
+
};
|
|
211
238
|
export const nullable = {
|
|
212
239
|
render: Docs.render,
|
|
213
240
|
args: {
|
|
@@ -334,9 +361,18 @@ export const summary = {
|
|
|
334
361
|
},
|
|
335
362
|
render: (args, ctx) => ({
|
|
336
363
|
// @ts-ignore
|
|
337
|
-
components:
|
|
364
|
+
components: {
|
|
365
|
+
AntSelect,
|
|
366
|
+
AntFormGroup,
|
|
367
|
+
AntFormGroupLabel
|
|
368
|
+
},
|
|
338
369
|
// @ts-ignore
|
|
339
|
-
setup
|
|
370
|
+
setup() {
|
|
371
|
+
return {
|
|
372
|
+
...Docs.render(args, ctx).setup(),
|
|
373
|
+
longSelectOptions
|
|
374
|
+
};
|
|
375
|
+
},
|
|
340
376
|
template: `
|
|
341
377
|
<div class="p-4 flex flex-col gap-2.5">
|
|
342
378
|
<div class="flex w-2/5 gap-2.5">
|
|
@@ -407,6 +443,16 @@ export const summary = {
|
|
|
407
443
|
<AntSelect v-bind="args" v-model="modelValue" size="sm" nullable state="warning"/>
|
|
408
444
|
<AntSelect v-bind="args" v-model="modelValue" size="sm" nullable state="danger"/>
|
|
409
445
|
</div>
|
|
446
|
+
<AntFormGroup>
|
|
447
|
+
<AntFormGroupLabel>Long Select Options</AntFormGroupLabel>
|
|
448
|
+
<div class="grid grid-cols-5 gap-2.5">
|
|
449
|
+
<AntSelect v-bind="args" v-model="modelValue" :options="longSelectOptions"/>
|
|
450
|
+
<AntSelect v-bind="args" v-model="modelValue" :options="longSelectOptions"/>
|
|
451
|
+
<AntSelect v-bind="args" v-model="modelValue" :options="longSelectOptions"/>
|
|
452
|
+
<AntSelect v-bind="args" v-model="modelValue" :options="longSelectOptions"/>
|
|
453
|
+
<AntSelect v-bind="args" v-model="modelValue" :options="longSelectOptions"/>
|
|
454
|
+
</div>
|
|
455
|
+
</AntFormGroup>
|
|
410
456
|
</div>
|
|
411
457
|
`
|
|
412
458
|
}),
|
|
@@ -79,4 +79,15 @@ Object.keys(_AntTextInput).forEach(function (key) {
|
|
|
79
79
|
return _AntTextInput[key];
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
|
+
});
|
|
83
|
+
var _AntColorInput = require("../AntColorInput/AntColorInput.types");
|
|
84
|
+
Object.keys(_AntColorInput).forEach(function (key) {
|
|
85
|
+
if (key === "default" || key === "__esModule") return;
|
|
86
|
+
if (key in exports && exports[key] === _AntColorInput[key]) return;
|
|
87
|
+
Object.defineProperty(exports, key, {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function () {
|
|
90
|
+
return _AntColorInput[key];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
82
93
|
});
|