@volverjs/ui-vue 0.0.9-beta.8 → 0.0.9
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/auto-imports.d.ts +2 -2
- package/dist/components/VvAccordion/VvAccordion.es.js +8 -7
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +8 -7
- package/dist/components/VvAction/VvAction.es.js +8 -7
- package/dist/components/VvAlert/VvAlert.es.js +8 -7
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +8 -7
- package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +7 -7
- package/dist/components/VvAlertGroup/index.d.ts +2 -2
- package/dist/components/VvAvatar/VvAvatar.es.js +8 -7
- package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +8 -7
- package/dist/components/VvBadge/VvBadge.es.js +8 -7
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +8 -7
- package/dist/components/VvButton/VvButton.es.js +8 -7
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +8 -7
- package/dist/components/VvCard/VvCard.es.js +8 -7
- package/dist/components/VvCheckbox/VvCheckbox.es.js +28 -20
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +28 -20
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.es.js +165 -129
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +306 -90
- package/dist/components/VvCombobox/index.d.ts +108 -31
- package/dist/components/VvDialog/VvDialog.es.js +37 -31
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.es.js +19 -16
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +301 -93
- package/dist/components/VvDropdown/index.d.ts +99 -30
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +8 -7
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +8 -7
- package/dist/components/VvDropdownOption/VvDropdownOption.es.js +8 -7
- package/dist/components/VvInputText/VvInputText.es.js +212 -115
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +19 -37
- package/dist/components/VvInputText/index.d.ts +15 -33
- package/dist/components/VvNav/VvNav.es.js +8 -7
- package/dist/components/VvProgress/VvProgress.es.js +8 -7
- package/dist/components/VvRadio/VvRadio.es.js +28 -20
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +28 -20
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.es.js +28 -20
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.vue.d.ts +1 -1
- package/dist/components/VvTab/VvTab.es.js +8 -7
- package/dist/components/VvTextarea/VvTextarea.es.js +36 -25
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTooltip/VvTooltip.es.js +8 -7
- package/dist/components/index.es.js +390 -257
- package/dist/components/index.umd.js +1 -1
- package/dist/constants.d.ts +4 -0
- package/dist/directives/index.es.js +8 -7
- package/dist/directives/v-tooltip.es.js +8 -7
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/props/index.d.ts +100 -31
- package/dist/resolvers/unplugin.es.js +3 -0
- package/dist/resolvers/unplugin.umd.js +1 -1
- package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +1 -1
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +11 -11
- package/dist/stories/Combobox/Combobox.settings.d.ts +8 -0
- package/dist/stories/InputText/InputText.settings.d.ts +31 -9
- package/dist/stories/InputText/InputText.stories.d.ts +0 -1
- package/dist/stories/InputText/InputTextMask.stories.d.ts +12 -0
- package/package.json +63 -62
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvAlertGroup/VvAlertGroup.vue +2 -0
- package/src/components/VvCombobox/VvCombobox.vue +40 -19
- package/src/components/VvCombobox/index.ts +13 -0
- package/src/components/VvDialog/VvDialog.vue +16 -13
- package/src/components/VvDropdown/VvDropdown.vue +18 -16
- package/src/components/VvInputText/VvInputText.vue +170 -55
- package/src/components/VvInputText/index.ts +32 -34
- package/src/components/VvTextarea/VvTextarea.vue +8 -5
- package/src/components/common/HintSlot.ts +20 -12
- package/src/constants.ts +5 -0
- package/src/props/index.ts +7 -11
- package/src/resolvers/unplugin.ts +3 -0
- package/src/stories/Combobox/Combobox.settings.ts +8 -0
- package/src/stories/Combobox/Combobox.test.ts +1 -1
- package/src/stories/InputText/InputText.settings.ts +36 -15
- package/src/stories/InputText/InputText.stories.ts +4 -12
- package/src/stories/InputText/InputText.test.ts +31 -15
- package/src/stories/InputText/InputTextMask.stories.ts +122 -0
package/dist/props/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import type { Option } from '../types/generic';
|
|
3
|
-
import { Placement, Position, Side, AnchorTarget, ButtonType } from '../constants';
|
|
3
|
+
import { Placement, Strategy, Position, Side, AnchorTarget, ButtonType } from '../constants';
|
|
4
4
|
export declare const LinkProps: {
|
|
5
5
|
/**
|
|
6
6
|
* The router-link/nuxt-link property, if it is defined the button is rendered as a ruouter-link or nuxt-link.
|
|
@@ -217,9 +217,9 @@ export declare const DropdownProps: {
|
|
|
217
217
|
* Dropdown strategy
|
|
218
218
|
*/
|
|
219
219
|
strategy: {
|
|
220
|
-
type: PropType<"
|
|
221
|
-
default:
|
|
222
|
-
validator: (value:
|
|
220
|
+
type: PropType<"absolute" | "fixed">;
|
|
221
|
+
default: undefined;
|
|
222
|
+
validator: (value: Strategy) => boolean;
|
|
223
223
|
};
|
|
224
224
|
/**
|
|
225
225
|
* Dropdown show / hide transition name
|
|
@@ -240,12 +240,30 @@ export declare const DropdownProps: {
|
|
|
240
240
|
* @see https://floating-ui.com/docs/shift
|
|
241
241
|
*/
|
|
242
242
|
shift: {
|
|
243
|
-
type: PropType<boolean |
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
243
|
+
type: PropType<boolean | {
|
|
244
|
+
mainAxis?: boolean | undefined;
|
|
245
|
+
crossAxis?: boolean | undefined;
|
|
246
|
+
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
247
|
+
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
248
|
+
altBoundary?: boolean | undefined;
|
|
249
|
+
padding?: import("@floating-ui/core").Padding | undefined;
|
|
250
|
+
limiter?: {
|
|
251
|
+
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/core").Coords;
|
|
252
|
+
options?: any;
|
|
253
|
+
} | undefined;
|
|
254
|
+
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
255
|
+
} | import("@floating-ui/dom").Derivable<{
|
|
256
|
+
mainAxis?: boolean | undefined;
|
|
257
|
+
crossAxis?: boolean | undefined;
|
|
258
|
+
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
259
|
+
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
260
|
+
altBoundary?: boolean | undefined;
|
|
261
|
+
padding?: import("@floating-ui/core").Padding | undefined;
|
|
262
|
+
limiter?: {
|
|
263
|
+
fn: (state: import("@floating-ui/core").MiddlewareState) => import("@floating-ui/core").Coords;
|
|
264
|
+
options?: any;
|
|
265
|
+
} | undefined;
|
|
266
|
+
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
249
267
|
}> | undefined>;
|
|
250
268
|
default: boolean;
|
|
251
269
|
};
|
|
@@ -254,12 +272,30 @@ export declare const DropdownProps: {
|
|
|
254
272
|
* @see https://floating-ui.com/docs/flip
|
|
255
273
|
*/
|
|
256
274
|
flip: {
|
|
257
|
-
type: PropType<boolean |
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
275
|
+
type: PropType<boolean | {
|
|
276
|
+
mainAxis?: boolean | undefined;
|
|
277
|
+
crossAxis?: boolean | undefined;
|
|
278
|
+
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
279
|
+
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
280
|
+
altBoundary?: boolean | undefined;
|
|
281
|
+
padding?: import("@floating-ui/core").Padding | undefined;
|
|
282
|
+
fallbackPlacements?: import("@floating-ui/core").Placement[] | undefined;
|
|
283
|
+
fallbackStrategy?: "initialPlacement" | "bestFit" | undefined;
|
|
284
|
+
fallbackAxisSideDirection?: "start" | "end" | "none" | undefined;
|
|
285
|
+
flipAlignment?: boolean | undefined;
|
|
286
|
+
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
287
|
+
} | import("@floating-ui/dom").Derivable<{
|
|
288
|
+
mainAxis?: boolean | undefined;
|
|
289
|
+
crossAxis?: boolean | undefined;
|
|
290
|
+
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
291
|
+
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
292
|
+
altBoundary?: boolean | undefined;
|
|
293
|
+
padding?: import("@floating-ui/core").Padding | undefined;
|
|
294
|
+
fallbackPlacements?: import("@floating-ui/core").Placement[] | undefined;
|
|
295
|
+
fallbackStrategy?: "initialPlacement" | "bestFit" | undefined;
|
|
296
|
+
fallbackAxisSideDirection?: "start" | "end" | "none" | undefined;
|
|
297
|
+
flipAlignment?: boolean | undefined;
|
|
298
|
+
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
263
299
|
}> | undefined>;
|
|
264
300
|
default: boolean;
|
|
265
301
|
};
|
|
@@ -268,13 +304,38 @@ export declare const DropdownProps: {
|
|
|
268
304
|
* @see https://floating-ui.com/docs/size
|
|
269
305
|
*/
|
|
270
306
|
size: {
|
|
271
|
-
type: PropType<boolean |
|
|
272
|
-
|
|
307
|
+
type: PropType<boolean | {
|
|
308
|
+
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
309
|
+
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
310
|
+
altBoundary?: boolean | undefined;
|
|
311
|
+
padding?: import("@floating-ui/core").Padding | undefined;
|
|
312
|
+
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
313
|
+
apply?: ((args: {
|
|
273
314
|
x: number;
|
|
274
315
|
y: number;
|
|
316
|
+
initialPlacement: import("@floating-ui/core").Placement;
|
|
275
317
|
placement: import("@floating-ui/core").Placement;
|
|
276
318
|
strategy: import("@floating-ui/core").Strategy;
|
|
319
|
+
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
320
|
+
rects: import("@floating-ui/core").ElementRects;
|
|
321
|
+
platform: import("@floating-ui/core").Platform;
|
|
322
|
+
elements: import("@floating-ui/dom").Elements;
|
|
323
|
+
} & {
|
|
324
|
+
availableWidth: number;
|
|
325
|
+
availableHeight: number;
|
|
326
|
+
}) => void | Promise<void>) | undefined;
|
|
327
|
+
} | import("@floating-ui/dom").Derivable<{
|
|
328
|
+
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
329
|
+
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
330
|
+
altBoundary?: boolean | undefined;
|
|
331
|
+
padding?: import("@floating-ui/core").Padding | undefined;
|
|
332
|
+
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
333
|
+
apply?: ((args: {
|
|
334
|
+
x: number;
|
|
335
|
+
y: number;
|
|
277
336
|
initialPlacement: import("@floating-ui/core").Placement;
|
|
337
|
+
placement: import("@floating-ui/core").Placement;
|
|
338
|
+
strategy: import("@floating-ui/core").Strategy;
|
|
278
339
|
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
279
340
|
rects: import("@floating-ui/core").ElementRects;
|
|
280
341
|
platform: import("@floating-ui/core").Platform;
|
|
@@ -282,13 +343,7 @@ export declare const DropdownProps: {
|
|
|
282
343
|
} & {
|
|
283
344
|
availableWidth: number;
|
|
284
345
|
availableHeight: number;
|
|
285
|
-
}) => void | Promise<void
|
|
286
|
-
} & {
|
|
287
|
-
rootBoundary: import("@floating-ui/core").RootBoundary;
|
|
288
|
-
elementContext: import("@floating-ui/core").ElementContext;
|
|
289
|
-
altBoundary: boolean;
|
|
290
|
-
padding: import("@floating-ui/core").Padding;
|
|
291
|
-
boundary: import("@floating-ui/dom").Boundary;
|
|
346
|
+
}) => void | Promise<void>) | undefined;
|
|
292
347
|
}> | undefined>;
|
|
293
348
|
default: () => {
|
|
294
349
|
padding: number;
|
|
@@ -299,12 +354,26 @@ export declare const DropdownProps: {
|
|
|
299
354
|
* @see https://floating-ui.com/docs/autoPlacement
|
|
300
355
|
*/
|
|
301
356
|
autoPlacement: {
|
|
302
|
-
type: PropType<boolean |
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
357
|
+
type: PropType<boolean | {
|
|
358
|
+
crossAxis?: boolean | undefined;
|
|
359
|
+
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
360
|
+
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
361
|
+
altBoundary?: boolean | undefined;
|
|
362
|
+
padding?: import("@floating-ui/core").Padding | undefined;
|
|
363
|
+
alignment?: import("@floating-ui/core").Alignment | null | undefined;
|
|
364
|
+
autoAlignment?: boolean | undefined;
|
|
365
|
+
allowedPlacements?: import("@floating-ui/core").Placement[] | undefined;
|
|
366
|
+
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
367
|
+
} | import("@floating-ui/dom").Derivable<{
|
|
368
|
+
crossAxis?: boolean | undefined;
|
|
369
|
+
rootBoundary?: import("@floating-ui/core").RootBoundary | undefined;
|
|
370
|
+
elementContext?: import("@floating-ui/core").ElementContext | undefined;
|
|
371
|
+
altBoundary?: boolean | undefined;
|
|
372
|
+
padding?: import("@floating-ui/core").Padding | undefined;
|
|
373
|
+
alignment?: import("@floating-ui/core").Alignment | null | undefined;
|
|
374
|
+
autoAlignment?: boolean | undefined;
|
|
375
|
+
allowedPlacements?: import("@floating-ui/core").Placement[] | undefined;
|
|
376
|
+
boundary?: import("@floating-ui/dom").Boundary | undefined;
|
|
308
377
|
}> | undefined>;
|
|
309
378
|
default: boolean;
|
|
310
379
|
};
|
|
@@ -22,6 +22,9 @@ const getStyleNames = function(kebabName) {
|
|
|
22
22
|
"vv-dropdown-action"
|
|
23
23
|
];
|
|
24
24
|
}
|
|
25
|
+
if (kebabName === "vv-button-group") {
|
|
26
|
+
return ["vv-button", "vv-button-group"];
|
|
27
|
+
}
|
|
25
28
|
if (kebabName === "vv-accordion-group") {
|
|
26
29
|
return ["vv-accordion", "vv-accordion-group"];
|
|
27
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(o,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((o="undefined"!=typeof globalThis?globalThis:o||self).components={})}(this,(function(o){"use strict";function e(o,e){if("string"!=typeof o)throw new TypeError("expected a string");return o.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\W/g,(o=>/[À-ž]/.test(o)?o:"-")).replace(/^-+|-+$/g,"").replace(/-{2,}/g,(o=>(null==e?void 0:e.condense)?"-":o)).toLowerCase()}const
|
|
1
|
+
!function(o,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((o="undefined"!=typeof globalThis?globalThis:o||self).components={})}(this,(function(o){"use strict";function e(o,e){if("string"!=typeof o)throw new TypeError("expected a string");return o.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\W/g,(o=>/[À-ž]/.test(o)?o:"-")).replace(/^-+|-+$/g,"").replace(/-{2,}/g,(o=>(null==e?void 0:e.condense)?"-":o)).toLowerCase()}const t=["vv-icon","vv-action"],r=["v-tooltip"],v=function(o){if(!t.includes(o))return"vv-dropdown"===o?["vv-dropdown","vv-dropdown-option","vv-dropdown-action"]:"vv-combobox"===o?["vv-select","vv-dropdown-option","vv-dropdown-optgroup","vv-dropdown","vv-dropdown-action"]:"vv-button-group"===o?["vv-button","vv-button-group"]:"vv-accordion-group"===o?["vv-accordion","vv-accordion-group"]:"vv-checkbox-group"===o?["vv-checkbox","vv-checkbox-group"]:"vv-radio-group"===o?["vv-radio","vv-radio-group"]:"vv-alert-group"===o?["vv-alert","vv-alert-group"]:"v-tooltip"===o?["vv-tooltip"]:[o]},n=function(o,e){const t=[];if(!e)return t;const r=v(o);return r&&r.forEach((o=>{t.push(`@volverjs/style/${"scss"===e?"scss/":""}components/${o}`)})),t};o.VolverResolver=function({prefix:o="vv",importStyle:t,directives:v,ignore:i}={}){return[{type:"component",resolve:r=>{if(!o||!r.toLowerCase().startsWith(o.toLowerCase()))return;const v=e(r).replace(`${o}-`,"vv-");return i&&i.includes(v)?void 0:{from:`@volverjs/ui-vue/${v}`,sideEffects:n(v,t)}}},{type:"directive",resolve:o=>{if(!v)return;const c=`v-${e(o)}`;return!r.includes(c)||i&&i.includes(c)?void 0:{from:`@volverjs/ui-vue/${c}`,sideEffects:n(c,t)}}}]},o.getStyleNames=v,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -16,9 +16,9 @@ declare const _default: Meta<{
|
|
|
16
16
|
readonly modifiers?: string | string[] | undefined;
|
|
17
17
|
key?: string | number | symbol | undefined;
|
|
18
18
|
style?: unknown;
|
|
19
|
+
class?: unknown;
|
|
19
20
|
ref_for?: boolean | undefined;
|
|
20
21
|
ref_key?: string | undefined;
|
|
21
|
-
class?: unknown;
|
|
22
22
|
readonly storeKey?: string | undefined;
|
|
23
23
|
};
|
|
24
24
|
$attrs: {
|
|
@@ -16,15 +16,15 @@ declare const _default: {
|
|
|
16
16
|
readonly modifiers?: string | string[] | undefined;
|
|
17
17
|
key?: string | number | symbol | undefined;
|
|
18
18
|
style?: unknown;
|
|
19
|
+
class?: unknown;
|
|
19
20
|
ref_for?: boolean | undefined;
|
|
20
21
|
ref_key?: string | undefined;
|
|
21
|
-
class?: unknown;
|
|
22
22
|
readonly storeKey?: string | undefined;
|
|
23
23
|
} & {
|
|
24
24
|
default?: import("vue").VNodeChild | ((_: {}) => any);
|
|
25
25
|
}>, "props"> | undefined;
|
|
26
26
|
subcomponents?: Record<string, Omit<import("vue").ConcreteComponent<unknown>, "props">> | undefined;
|
|
27
|
-
play?: import("@storybook/types").PlayFunction<import("@storybook/vue3/dist/render-
|
|
27
|
+
play?: import("@storybook/types").PlayFunction<import("@storybook/vue3/dist/render-ddbe18a8").V, import("@storybook/vue3").ComponentPropsAndSlots<{
|
|
28
28
|
new (...args: any[]): {
|
|
29
29
|
$: import("vue").ComponentInternalInstance;
|
|
30
30
|
$data: {};
|
|
@@ -40,9 +40,9 @@ declare const _default: {
|
|
|
40
40
|
readonly modifiers?: string | string[] | undefined;
|
|
41
41
|
key?: string | number | symbol | undefined;
|
|
42
42
|
style?: unknown;
|
|
43
|
+
class?: unknown;
|
|
43
44
|
ref_for?: boolean | undefined;
|
|
44
45
|
ref_key?: string | undefined;
|
|
45
|
-
class?: unknown;
|
|
46
46
|
readonly storeKey?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
$attrs: {
|
|
@@ -151,7 +151,7 @@ declare const _default: {
|
|
|
151
151
|
};
|
|
152
152
|
})>> | undefined;
|
|
153
153
|
tags?: string[] | undefined;
|
|
154
|
-
decorators?: import("@storybook/types").DecoratorFunction<import("@storybook/vue3/dist/render-
|
|
154
|
+
decorators?: import("@storybook/types").DecoratorFunction<import("@storybook/vue3/dist/render-ddbe18a8").V, {
|
|
155
155
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
156
156
|
disabled?: boolean | undefined;
|
|
157
157
|
not?: boolean | undefined;
|
|
@@ -163,9 +163,9 @@ declare const _default: {
|
|
|
163
163
|
readonly modifiers?: string | string[] | undefined;
|
|
164
164
|
key?: string | number | symbol | undefined;
|
|
165
165
|
style?: unknown;
|
|
166
|
+
class?: unknown;
|
|
166
167
|
ref_for?: boolean | undefined;
|
|
167
168
|
ref_key?: string | undefined;
|
|
168
|
-
class?: unknown;
|
|
169
169
|
readonly storeKey?: string | undefined;
|
|
170
170
|
default?: import("vue").VNodeChild | ((_: {}) => any);
|
|
171
171
|
}>[] | undefined;
|
|
@@ -186,9 +186,9 @@ declare const _default: {
|
|
|
186
186
|
readonly modifiers?: string | string[] | undefined;
|
|
187
187
|
key?: string | number | symbol | undefined;
|
|
188
188
|
style?: unknown;
|
|
189
|
+
class?: unknown;
|
|
189
190
|
ref_for?: boolean | undefined;
|
|
190
191
|
ref_key?: string | undefined;
|
|
191
|
-
class?: unknown;
|
|
192
192
|
readonly storeKey?: string | undefined;
|
|
193
193
|
};
|
|
194
194
|
$attrs: {
|
|
@@ -312,9 +312,9 @@ declare const _default: {
|
|
|
312
312
|
readonly modifiers?: string | string[] | undefined;
|
|
313
313
|
key?: string | number | symbol | undefined;
|
|
314
314
|
style?: unknown;
|
|
315
|
+
class?: unknown;
|
|
315
316
|
ref_for?: boolean | undefined;
|
|
316
317
|
ref_key?: string | undefined;
|
|
317
|
-
class?: unknown;
|
|
318
318
|
readonly storeKey?: string | undefined;
|
|
319
319
|
};
|
|
320
320
|
$attrs: {
|
|
@@ -422,7 +422,7 @@ declare const _default: {
|
|
|
422
422
|
default?(_: {}): any;
|
|
423
423
|
};
|
|
424
424
|
})>>> | undefined;
|
|
425
|
-
loaders?: import("@storybook/types").LoaderFunction<import("@storybook/vue3/dist/render-
|
|
425
|
+
loaders?: import("@storybook/types").LoaderFunction<import("@storybook/vue3/dist/render-ddbe18a8").V, import("@storybook/vue3").ComponentPropsAndSlots<{
|
|
426
426
|
new (...args: any[]): {
|
|
427
427
|
$: import("vue").ComponentInternalInstance;
|
|
428
428
|
$data: {};
|
|
@@ -438,9 +438,9 @@ declare const _default: {
|
|
|
438
438
|
readonly modifiers?: string | string[] | undefined;
|
|
439
439
|
key?: string | number | symbol | undefined;
|
|
440
440
|
style?: unknown;
|
|
441
|
+
class?: unknown;
|
|
441
442
|
ref_for?: boolean | undefined;
|
|
442
443
|
ref_key?: string | undefined;
|
|
443
|
-
class?: unknown;
|
|
444
444
|
readonly storeKey?: string | undefined;
|
|
445
445
|
};
|
|
446
446
|
$attrs: {
|
|
@@ -548,7 +548,7 @@ declare const _default: {
|
|
|
548
548
|
default?(_: {}): any;
|
|
549
549
|
};
|
|
550
550
|
})>>[] | undefined;
|
|
551
|
-
render?: import("@storybook/types").ArgsStoryFn<import("@storybook/vue3/dist/render-
|
|
551
|
+
render?: import("@storybook/types").ArgsStoryFn<import("@storybook/vue3/dist/render-ddbe18a8").V, import("@storybook/vue3").ComponentPropsAndSlots<{
|
|
552
552
|
new (...args: any[]): {
|
|
553
553
|
$: import("vue").ComponentInternalInstance;
|
|
554
554
|
$data: {};
|
|
@@ -564,9 +564,9 @@ declare const _default: {
|
|
|
564
564
|
readonly modifiers?: string | string[] | undefined;
|
|
565
565
|
key?: string | number | symbol | undefined;
|
|
566
566
|
style?: unknown;
|
|
567
|
+
class?: unknown;
|
|
567
568
|
ref_for?: boolean | undefined;
|
|
568
569
|
ref_key?: string | undefined;
|
|
569
|
-
class?: unknown;
|
|
570
570
|
readonly storeKey?: string | undefined;
|
|
571
571
|
};
|
|
572
572
|
$attrs: {
|
|
@@ -129,6 +129,14 @@ export declare const argTypes: {
|
|
|
129
129
|
};
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
|
+
searchFunction: {
|
|
133
|
+
description: string;
|
|
134
|
+
table: {
|
|
135
|
+
defaultValue: {
|
|
136
|
+
summary: undefined;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
132
140
|
searchPlaceholder: {
|
|
133
141
|
description: string;
|
|
134
142
|
control: {
|
|
@@ -145,42 +145,64 @@ export declare const argTypes: {
|
|
|
145
145
|
};
|
|
146
146
|
};
|
|
147
147
|
};
|
|
148
|
-
|
|
148
|
+
iMask: {
|
|
149
149
|
description: string;
|
|
150
150
|
control: {
|
|
151
151
|
type: string;
|
|
152
152
|
};
|
|
153
153
|
};
|
|
154
|
-
|
|
154
|
+
masked: {
|
|
155
155
|
description: string;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
summary: boolean;
|
|
159
|
-
};
|
|
156
|
+
control: {
|
|
157
|
+
type: string;
|
|
160
158
|
};
|
|
161
159
|
};
|
|
162
|
-
|
|
160
|
+
autoWidth: {
|
|
163
161
|
description: string;
|
|
162
|
+
control: {
|
|
163
|
+
type: string;
|
|
164
|
+
};
|
|
164
165
|
table: {
|
|
165
166
|
defaultValue: {
|
|
166
167
|
summary: boolean;
|
|
167
168
|
};
|
|
169
|
+
type: {
|
|
170
|
+
summary: string;
|
|
171
|
+
};
|
|
168
172
|
};
|
|
169
173
|
};
|
|
170
|
-
|
|
174
|
+
hideActions: {
|
|
171
175
|
description: string;
|
|
176
|
+
control: {
|
|
177
|
+
type: string;
|
|
178
|
+
};
|
|
172
179
|
table: {
|
|
173
180
|
defaultValue: {
|
|
181
|
+
summary: boolean;
|
|
182
|
+
};
|
|
183
|
+
type: {
|
|
174
184
|
summary: string;
|
|
175
185
|
};
|
|
176
186
|
};
|
|
177
187
|
};
|
|
178
|
-
|
|
188
|
+
unit: {
|
|
189
|
+
description: string;
|
|
190
|
+
control: {
|
|
191
|
+
type: string;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
selectOnFocus: {
|
|
179
195
|
description: string;
|
|
196
|
+
control: {
|
|
197
|
+
type: string;
|
|
198
|
+
};
|
|
180
199
|
table: {
|
|
181
200
|
defaultValue: {
|
|
182
201
|
summary: boolean;
|
|
183
202
|
};
|
|
203
|
+
type: {
|
|
204
|
+
summary: string;
|
|
205
|
+
};
|
|
184
206
|
};
|
|
185
207
|
};
|
|
186
208
|
before: {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import VvInputText from '@/components/VvInputText/VvInputText.vue';
|
|
3
|
+
declare const meta: Meta<typeof VvInputText>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof VvInputText>;
|
|
6
|
+
export declare const RegExp: Story;
|
|
7
|
+
export declare const PhoneNumber: Story;
|
|
8
|
+
export declare const Pattern: Story;
|
|
9
|
+
export declare const IntlNumber: Story;
|
|
10
|
+
export declare const DatePlaceholder: Story;
|
|
11
|
+
export declare const PhoneOrEmail: Story;
|
|
12
|
+
export declare const Currency: Story;
|
package/package.json
CHANGED
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "https://github.com/volverjs/ui-vue/issues"
|
|
21
21
|
},
|
|
22
|
-
"version": "0.0.9
|
|
22
|
+
"version": "0.0.9",
|
|
23
23
|
"engines": {
|
|
24
24
|
"node": ">= 16.x"
|
|
25
25
|
},
|
|
26
|
-
"packageManager": "pnpm@8.
|
|
26
|
+
"packageManager": "pnpm@8.7.0",
|
|
27
27
|
"type": "module",
|
|
28
28
|
"main": "./dist/Volver.umd.js",
|
|
29
29
|
"module": "./dist/Volver.es.js",
|
|
@@ -38,92 +38,93 @@
|
|
|
38
38
|
"*.d.ts"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@floating-ui/vue": "^1.0.
|
|
42
|
-
"@iconify/tools": "^3.0.
|
|
43
|
-
"@iconify/vue": "4.1.1",
|
|
44
|
-
"@vueuse/core": "^10.1
|
|
41
|
+
"@floating-ui/vue": "^1.0.2",
|
|
42
|
+
"@iconify/tools": "^3.0.5",
|
|
43
|
+
"@iconify/vue": "^4.1.1",
|
|
44
|
+
"@vueuse/core": "^10.4.1",
|
|
45
45
|
"jsdom": "^22.1.0",
|
|
46
|
-
"
|
|
47
|
-
"mitt": "^3.0.0",
|
|
46
|
+
"mitt": "^3.0.1",
|
|
48
47
|
"nanoid": "^4.0.2",
|
|
49
|
-
"ts-dot-prop": "^2.1.
|
|
50
|
-
"vue": "^3.3.4"
|
|
48
|
+
"ts-dot-prop": "^2.1.3",
|
|
49
|
+
"vue": "^3.3.4",
|
|
50
|
+
"vue-imask": "^7.1.3"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@volverjs/style": "0.*"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@babel/core": "^7.22.
|
|
57
|
-
"@babel/preset-env": "^7.22.
|
|
58
|
-
"@babel/preset-typescript": "^7.
|
|
56
|
+
"@babel/core": "^7.22.11",
|
|
57
|
+
"@babel/preset-env": "^7.22.10",
|
|
58
|
+
"@babel/preset-typescript": "^7.22.11",
|
|
59
59
|
"@iconify/types": "^2.0.0",
|
|
60
|
-
"@iconify/utils": "^2.1.
|
|
60
|
+
"@iconify/utils": "^2.1.9",
|
|
61
61
|
"@mdx-js/react": "^2.3.0",
|
|
62
|
-
"@rushstack/eslint-patch": "^1.3.
|
|
63
|
-
"@storybook/addon-a11y": "^7.0
|
|
64
|
-
"@storybook/addon-actions": "^7.0
|
|
65
|
-
"@storybook/addon-docs": "^7.0
|
|
66
|
-
"@storybook/addon-essentials": "^7.0
|
|
67
|
-
"@storybook/addon-interactions": "^7.0
|
|
68
|
-
"@storybook/addon-links": "^7.0
|
|
69
|
-
"@storybook/channel-postmessage": "^7.0
|
|
70
|
-
"@storybook/channel-websocket": "^7.0
|
|
71
|
-
"@storybook/cli": "^7.0
|
|
72
|
-
"@storybook/client-api": "^7.0
|
|
73
|
-
"@storybook/client-logger": "^7.0
|
|
74
|
-
"@storybook/core-common": "^7.0
|
|
75
|
-
"@storybook/jest": "^0.
|
|
76
|
-
"@storybook/preview-api": "^7.0
|
|
77
|
-
"@storybook/preview-web": "^7.0
|
|
78
|
-
"@storybook/test-runner": "^0.
|
|
79
|
-
"@storybook/testing-library": "^0.
|
|
80
|
-
"@storybook/vue3": "^7.0
|
|
81
|
-
"@storybook/vue3-vite": "^7.0
|
|
82
|
-
"@tsconfig/node18": "^2.
|
|
62
|
+
"@rushstack/eslint-patch": "^1.3.3",
|
|
63
|
+
"@storybook/addon-a11y": "^7.4.0",
|
|
64
|
+
"@storybook/addon-actions": "^7.4.0",
|
|
65
|
+
"@storybook/addon-docs": "^7.4.0",
|
|
66
|
+
"@storybook/addon-essentials": "^7.4.0",
|
|
67
|
+
"@storybook/addon-interactions": "^7.4.0",
|
|
68
|
+
"@storybook/addon-links": "^7.4.0",
|
|
69
|
+
"@storybook/channel-postmessage": "^7.4.0",
|
|
70
|
+
"@storybook/channel-websocket": "^7.4.0",
|
|
71
|
+
"@storybook/cli": "^7.4.0",
|
|
72
|
+
"@storybook/client-api": "^7.4.0",
|
|
73
|
+
"@storybook/client-logger": "^7.4.0",
|
|
74
|
+
"@storybook/core-common": "^7.4.0",
|
|
75
|
+
"@storybook/jest": "^0.2.2",
|
|
76
|
+
"@storybook/preview-api": "^7.4.0",
|
|
77
|
+
"@storybook/preview-web": "^7.4.0",
|
|
78
|
+
"@storybook/test-runner": "^0.13.0",
|
|
79
|
+
"@storybook/testing-library": "^0.2.0",
|
|
80
|
+
"@storybook/vue3": "^7.4.0",
|
|
81
|
+
"@storybook/vue3-vite": "^7.4.0",
|
|
82
|
+
"@tsconfig/node18": "^18.2.1",
|
|
83
83
|
"@types/jest-axe": "^3.5.5",
|
|
84
|
-
"@types/jsdom": "^21.1.
|
|
85
|
-
"@types/node": "^20.
|
|
86
|
-
"@types/react": "^18.2.
|
|
84
|
+
"@types/jsdom": "^21.1.2",
|
|
85
|
+
"@types/node": "^20.5.7",
|
|
86
|
+
"@types/react": "^18.2.21",
|
|
87
87
|
"@types/yargs": "^17.0.24",
|
|
88
|
-
"@vitejs/plugin-vue": "^4.
|
|
88
|
+
"@vitejs/plugin-vue": "^4.3.4",
|
|
89
89
|
"@volverjs/style": "0.1.12-beta.4",
|
|
90
90
|
"@vue/compiler-sfc": "^3.3.4",
|
|
91
|
-
"@vue/eslint-config-prettier": "^
|
|
91
|
+
"@vue/eslint-config-prettier": "^8.0.0",
|
|
92
92
|
"@vue/eslint-config-typescript": "^11.0.3",
|
|
93
|
-
"@vue/test-utils": "^2.
|
|
93
|
+
"@vue/test-utils": "^2.4.1",
|
|
94
94
|
"@vue/tsconfig": "^0.4.0",
|
|
95
95
|
"change-case": "^4.1.2",
|
|
96
|
-
"eslint": "^8.
|
|
97
|
-
"eslint-config-prettier": "^
|
|
98
|
-
"eslint-mdx": "^2.
|
|
99
|
-
"eslint-plugin-mdx": "^2.
|
|
100
|
-
"eslint-plugin-
|
|
101
|
-
"eslint-plugin-
|
|
96
|
+
"eslint": "^8.48.0",
|
|
97
|
+
"eslint-config-prettier": "^9.0.0",
|
|
98
|
+
"eslint-mdx": "^2.2.0",
|
|
99
|
+
"eslint-plugin-mdx": "^2.2.0",
|
|
100
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
101
|
+
"eslint-plugin-storybook": "^0.6.13",
|
|
102
|
+
"eslint-plugin-vue": "^9.17.0",
|
|
102
103
|
"glob": "7.2.3",
|
|
103
|
-
"jest-axe": "^
|
|
104
|
-
"jest-diff": "^29.
|
|
105
|
-
"jest-get-type": "^29.
|
|
104
|
+
"jest-axe": "^8.0.0",
|
|
105
|
+
"jest-diff": "^29.6.4",
|
|
106
|
+
"jest-get-type": "^29.6.3",
|
|
106
107
|
"jsdom": "^22.1.0",
|
|
107
108
|
"npm-run-all": "^4.1.5",
|
|
108
|
-
"prettier": "^
|
|
109
|
-
"pretty-format": "^29.
|
|
109
|
+
"prettier": "^3.0.3",
|
|
110
|
+
"pretty-format": "^29.6.3",
|
|
110
111
|
"react": "^18.2.0",
|
|
111
112
|
"react-dom": "^18.2.0",
|
|
112
113
|
"remark": "^14.0.3",
|
|
113
|
-
"sass": "^1.
|
|
114
|
-
"storybook": "7.0
|
|
115
|
-
"storybook-addon-markdown-docs": "^
|
|
116
|
-
"storybook-dark-mode": "^3.0.
|
|
114
|
+
"sass": "^1.66.1",
|
|
115
|
+
"storybook": "^7.4.0",
|
|
116
|
+
"storybook-addon-markdown-docs": "^2.0.0",
|
|
117
|
+
"storybook-dark-mode": "^3.0.1",
|
|
117
118
|
"storybook-version": "^0.1.1",
|
|
118
|
-
"terser": "^5.
|
|
119
|
+
"terser": "^5.19.3",
|
|
119
120
|
"ts-node": "^10.9.1",
|
|
120
|
-
"typescript": "~5.
|
|
121
|
-
"unplugin-auto-import": "^0.16.
|
|
121
|
+
"typescript": "~5.2.2",
|
|
122
|
+
"unplugin-auto-import": "^0.16.6",
|
|
122
123
|
"unplugin-vue-components": "^0.25.1",
|
|
123
|
-
"vite": "^4.
|
|
124
|
+
"vite": "^4.4.9",
|
|
124
125
|
"vite-plugin-eslint": "^1.8.1",
|
|
125
|
-
"vite-plugin-externalize-deps": "^0.
|
|
126
|
-
"vue-tsc": "^1.
|
|
126
|
+
"vite-plugin-externalize-deps": "^0.7.0",
|
|
127
|
+
"vue-tsc": "^1.8.8",
|
|
127
128
|
"yargs": "^17.7.2"
|
|
128
129
|
},
|
|
129
130
|
"typesVersions": {
|