@quidgest/ui 0.12.2 → 0.13.1
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/manifest/components.json +2 -0
- package/dist/ui.css +166 -1
- package/dist/ui.esm.js +1045 -830
- package/dist/ui.js +6 -6
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +111 -93
- package/dist/ui.scss +122 -2
- package/esm/components/QBadge/QBadge.d.ts +72 -0
- package/esm/components/QBadge/QBadge.d.ts.map +1 -0
- package/esm/components/QBadge/QBadge.vue.js +87 -0
- package/esm/components/QBadge/QBadge.vue2.js +4 -0
- package/esm/components/QBadge/index.d.ts +119 -0
- package/esm/components/QBadge/index.d.ts.map +1 -0
- package/esm/components/QBadge/index.js +6 -0
- package/esm/components/QButton/index.d.ts +3 -0
- package/esm/components/QButton/index.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +10 -10
- package/esm/components/QCombobox/index.d.ts +30 -30
- package/esm/components/QDialog/QDialog.d.ts +184 -0
- package/esm/components/QDialog/QDialog.d.ts.map +1 -0
- package/esm/components/QDialog/QDialog.vue.js +146 -0
- package/esm/components/QDialog/QDialog.vue2.js +4 -0
- package/esm/components/QDialog/index.d.ts +237 -0
- package/esm/components/QDialog/index.d.ts.map +1 -0
- package/esm/components/QDialog/index.js +6 -0
- package/esm/components/QList/index.d.ts +16 -16
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +34 -34
- package/esm/components/QTextField/QTextField.d.ts +5 -5
- package/esm/components/QTextField/index.d.ts +11 -11
- package/esm/components/QTooltip/QTooltip.d.ts +15 -0
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +44 -27
- package/esm/components/QTooltip/index.d.ts +20 -0
- package/esm/components/QTooltip/index.d.ts.map +1 -1
- package/esm/components/index.d.ts +2 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +43 -39
- package/esm/index.d.ts +2 -0
- package/esm/utils/color.d.ts +7 -1
- package/esm/utils/color.d.ts.map +1 -1
- package/esm/utils/color.js +54 -9
- package/package.json +1 -1
package/dist/ui.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Quidgest UI v0.
|
|
2
|
+
* Quidgest UI v0.13.1
|
|
3
3
|
* (c) 2024 Quidgest - Consultores de Gestão, S.A.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -238,6 +238,79 @@ body {
|
|
|
238
238
|
.fade-leave-active {
|
|
239
239
|
transition: opacity 0.2s;
|
|
240
240
|
}
|
|
241
|
+
.q-badge {
|
|
242
|
+
$this: &;
|
|
243
|
+
display: inline-flex;
|
|
244
|
+
border-width: 1px;
|
|
245
|
+
border-color: transparent;
|
|
246
|
+
border-radius: $border-radius;
|
|
247
|
+
padding: 0.25em 0.5em;
|
|
248
|
+
line-height: 1rem;
|
|
249
|
+
font-size: 0.75rem;
|
|
250
|
+
position: relative;
|
|
251
|
+
color: var(--q-badge-text-color);
|
|
252
|
+
&__underlay {
|
|
253
|
+
position: absolute;
|
|
254
|
+
top: 0;
|
|
255
|
+
left: 0;
|
|
256
|
+
width: 100%;
|
|
257
|
+
height: 100%;
|
|
258
|
+
border-radius: inherit;
|
|
259
|
+
background-color: var(--q-badge-color);
|
|
260
|
+
opacity: 0.1;
|
|
261
|
+
}
|
|
262
|
+
&__content {
|
|
263
|
+
display: inline-flex;
|
|
264
|
+
align-items: center;
|
|
265
|
+
gap: 0.25rem;
|
|
266
|
+
min-height: 1rem;
|
|
267
|
+
z-index: 1;
|
|
268
|
+
}
|
|
269
|
+
&__remove.q-btn:not(:disabled) {
|
|
270
|
+
padding: 0;
|
|
271
|
+
border-radius: 9999px;
|
|
272
|
+
color: inherit;
|
|
273
|
+
&:hover {
|
|
274
|
+
background-color: var(--q-badge-color);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
&--pill {
|
|
279
|
+
border-radius: 9999px;
|
|
280
|
+
}
|
|
281
|
+
&--bold {
|
|
282
|
+
#{$this}__underlay {
|
|
283
|
+
opacity: 1;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
&--outlined {
|
|
287
|
+
border-color: currentColor;
|
|
288
|
+
#{$this}__underlay {
|
|
289
|
+
opacity: 0;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
@mixin color-variant($color) {
|
|
293
|
+
&--#{$color} {
|
|
294
|
+
--q-badge-color: var(--q-theme-#{$color});
|
|
295
|
+
}
|
|
296
|
+
&--#{$color}.q-badge--tonal,
|
|
297
|
+
&--#{$color}.q-badge--outlined {
|
|
298
|
+
--q-badge-text-color: var(--q-theme-#{$color});
|
|
299
|
+
}
|
|
300
|
+
&--#{$color}.q-badge--bold {
|
|
301
|
+
--q-badge-text-color: var(--q-theme-on-#{$color});
|
|
302
|
+
.q-badge__remove.q-btn:not(:disabled):hover {
|
|
303
|
+
background-color: var(--q-badge-text-color);
|
|
304
|
+
color: var(--q-badge-color);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
@include color-variant(primary);
|
|
309
|
+
@include color-variant(info);
|
|
310
|
+
@include color-variant(success);
|
|
311
|
+
@include color-variant(warning);
|
|
312
|
+
@include color-variant(danger);
|
|
313
|
+
}
|
|
241
314
|
$button-primary: var(--q-theme-primary);
|
|
242
315
|
$button-primary-hover: var(--q-theme-primary-dark);
|
|
243
316
|
$button-primary-shadow: var(--q-theme-primary-dark-rgb);
|
|
@@ -453,6 +526,49 @@ $button-text-on-plain: var(--q-theme-on-background);
|
|
|
453
526
|
.q-combobox__chevron svg {
|
|
454
527
|
transition: all 0.2s;
|
|
455
528
|
}
|
|
529
|
+
.q-dialog {
|
|
530
|
+
display: flex;
|
|
531
|
+
flex-direction: column;
|
|
532
|
+
align-items: center;
|
|
533
|
+
justify-content: center;
|
|
534
|
+
max-width: 50rem;
|
|
535
|
+
min-width: 20rem;
|
|
536
|
+
padding: $space-base;
|
|
537
|
+
}
|
|
538
|
+
.q-dialog__header {
|
|
539
|
+
display: flex;
|
|
540
|
+
width: 100%;
|
|
541
|
+
justify-content: space-between;
|
|
542
|
+
padding: 0.4rem $space-base;
|
|
543
|
+
&-title {
|
|
544
|
+
align-self: flex-start;
|
|
545
|
+
font-weight: $font-weight-bold;
|
|
546
|
+
padding: 0.4rem;
|
|
547
|
+
font-size: 1rem;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
.q-dialog__header .q-btn {
|
|
551
|
+
align-items: center;
|
|
552
|
+
}
|
|
553
|
+
.q-dialog__body {
|
|
554
|
+
display: flex;
|
|
555
|
+
flex-direction: column;
|
|
556
|
+
align-items: center;
|
|
557
|
+
padding: $space-base 0.65rem;
|
|
558
|
+
gap: 0.4rem;
|
|
559
|
+
&-icon svg {
|
|
560
|
+
height: 5em;
|
|
561
|
+
width: 5em;
|
|
562
|
+
}
|
|
563
|
+
&-actions {
|
|
564
|
+
display: flex;
|
|
565
|
+
justify-content: center;
|
|
566
|
+
flex-wrap: wrap;
|
|
567
|
+
gap: 0.5rem;
|
|
568
|
+
padding: 0.65rem;
|
|
569
|
+
padding-bottom: 0.5rem;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
456
572
|
.q-field {
|
|
457
573
|
$this: &;
|
|
458
574
|
display: flex;
|
|
@@ -750,6 +866,7 @@ $line-color: var(--q-theme-primary);
|
|
|
750
866
|
.q-icon {
|
|
751
867
|
font-size: inherit;
|
|
752
868
|
flex-shrink: 0;
|
|
869
|
+
height: 1lh;
|
|
753
870
|
}
|
|
754
871
|
}
|
|
755
872
|
& + & {
|
|
@@ -1052,8 +1169,11 @@ $spinner-color: var(--q-theme-primary);
|
|
|
1052
1169
|
caret-color: var(--q-theme-on-background);
|
|
1053
1170
|
}
|
|
1054
1171
|
.q-tooltip .q-overlay__content {
|
|
1172
|
+
display: flex;
|
|
1173
|
+
flex-direction: column;
|
|
1174
|
+
gap: $space-base;
|
|
1175
|
+
align-items: center;
|
|
1055
1176
|
padding: 0.5rem;
|
|
1056
|
-
text-align: center;
|
|
1057
1177
|
font-style: normal;
|
|
1058
1178
|
font-size: calc($font-size-base * 0.9);
|
|
1059
1179
|
font-weight: $font-weight-regular;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Icon } from '../QIcon';
|
|
2
|
+
|
|
3
|
+
export type QBadgeProps = {
|
|
4
|
+
/**
|
|
5
|
+
* The color of the badge.
|
|
6
|
+
* Can be chosen from utility colors like 'success' or 'danger', or specified using CSS color codes.
|
|
7
|
+
*/
|
|
8
|
+
color?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The visual style variant of the badge.
|
|
11
|
+
*/
|
|
12
|
+
variant?: 'tonal' | 'bold' | 'outlined';
|
|
13
|
+
/**
|
|
14
|
+
* Indicates if the badge can be removed.
|
|
15
|
+
*/
|
|
16
|
+
removable?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to convey a pill shape to the badge.
|
|
19
|
+
*/
|
|
20
|
+
pill?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The icons of the component.
|
|
23
|
+
*/
|
|
24
|
+
icons?: Icons;
|
|
25
|
+
};
|
|
26
|
+
declare const DEFAULT_ICONS: Record<string, Icon>;
|
|
27
|
+
type Icons = typeof DEFAULT_ICONS;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QBadgeProps>, {
|
|
29
|
+
text: string;
|
|
30
|
+
icons: () => Record<string, Icon>;
|
|
31
|
+
color: string;
|
|
32
|
+
variant: string;
|
|
33
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
34
|
+
"click:remove": () => void;
|
|
35
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QBadgeProps>, {
|
|
36
|
+
text: string;
|
|
37
|
+
icons: () => Record<string, Icon>;
|
|
38
|
+
color: string;
|
|
39
|
+
variant: string;
|
|
40
|
+
}>>> & {
|
|
41
|
+
"onClick:remove"?: (() => any) | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
variant: "bold" | "tonal" | "outlined";
|
|
44
|
+
color: string;
|
|
45
|
+
icons: Record<string, Icon>;
|
|
46
|
+
}, {}>, {
|
|
47
|
+
default?(_: {}): any;
|
|
48
|
+
}>;
|
|
49
|
+
export default _default;
|
|
50
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
51
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
52
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
53
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
54
|
+
} : {
|
|
55
|
+
type: import('vue').PropType<T[K]>;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
type __VLS_WithDefaults<P, D> = {
|
|
60
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
61
|
+
default: D[K];
|
|
62
|
+
}> : P[K];
|
|
63
|
+
};
|
|
64
|
+
type __VLS_Prettify<T> = {
|
|
65
|
+
[K in keyof T]: T[K];
|
|
66
|
+
} & {};
|
|
67
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
68
|
+
new (): {
|
|
69
|
+
$slots: S;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=QBadge.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/QBadge.vue"],"names":[],"mappings":"AAmBA;AAOC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAM9C,MAAM,MAAM,WAAW,GAAG;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,CAAA;IAEvC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAA;CACb,CAAA;AAKD,QAAA,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAIvC,CAAA;AAED,KAAK,KAAK,GAAG,OAAO,aAAa,CAAA;;;;;;;;;;;;;;;;;;;;qBAkJJ,GAAG;;AAjJjC,wBA2KI;AAAA,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACrE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { defineComponent as g, computed as l, openBlock as a, createElementBlock as _, normalizeClass as b, normalizeStyle as C, createElementVNode as s, renderSlot as y, createBlock as q, unref as n, withCtx as k, createVNode as B, normalizeProps as h, guardReactiveProps as x, createCommentVNode as N } from "vue";
|
|
2
|
+
import { QButton as z } from "../QButton/index.js";
|
|
3
|
+
import { QIcon as E } from "../QIcon/index.js";
|
|
4
|
+
import { parseColor as Q, rgbToHsl as S, getContrastingColor as V } from "../../utils/color.js";
|
|
5
|
+
const $ = /* @__PURE__ */ s(
|
|
6
|
+
"div",
|
|
7
|
+
{ class: "q-badge__underlay" },
|
|
8
|
+
null,
|
|
9
|
+
-1
|
|
10
|
+
/* HOISTED */
|
|
11
|
+
), w = { class: "q-badge__content" }, I = {
|
|
12
|
+
remove: {
|
|
13
|
+
icon: "close"
|
|
14
|
+
}
|
|
15
|
+
}, A = /* @__PURE__ */ g({
|
|
16
|
+
__name: "QBadge",
|
|
17
|
+
props: {
|
|
18
|
+
color: { default: "primary" },
|
|
19
|
+
variant: { default: "tonal" },
|
|
20
|
+
removable: { type: Boolean },
|
|
21
|
+
pill: { type: Boolean },
|
|
22
|
+
icons: { default: () => I }
|
|
23
|
+
},
|
|
24
|
+
emits: ["click:remove"],
|
|
25
|
+
setup(c, { emit: i }) {
|
|
26
|
+
const e = c, d = i, r = l(
|
|
27
|
+
() => ["primary", "info", "success", "warning", "danger"].includes(e.color)
|
|
28
|
+
), m = l(() => {
|
|
29
|
+
const o = r.value ? `q-badge--${e.color}` : void 0;
|
|
30
|
+
return ["q-badge", `q-badge--${e.variant}`, o, { "q-badge--pill": e.pill }];
|
|
31
|
+
}), u = l(() => {
|
|
32
|
+
let o, t;
|
|
33
|
+
if (!r.value)
|
|
34
|
+
if (o = e.color, e.variant === "tonal")
|
|
35
|
+
t = e.color;
|
|
36
|
+
else {
|
|
37
|
+
const v = Q(o), f = S(v);
|
|
38
|
+
t = V(f.l);
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
"--q-badge-color": o,
|
|
42
|
+
"--q-badge-text-color": t
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
function p() {
|
|
46
|
+
d("click:remove");
|
|
47
|
+
}
|
|
48
|
+
return (o, t) => (a(), _(
|
|
49
|
+
"span",
|
|
50
|
+
{
|
|
51
|
+
class: b(m.value),
|
|
52
|
+
role: "presentation",
|
|
53
|
+
style: C(u.value)
|
|
54
|
+
},
|
|
55
|
+
[
|
|
56
|
+
$,
|
|
57
|
+
s("div", w, [
|
|
58
|
+
y(o.$slots, "default"),
|
|
59
|
+
e.removable ? (a(), q(n(z), {
|
|
60
|
+
key: 0,
|
|
61
|
+
class: "q-badge__remove",
|
|
62
|
+
borderless: "",
|
|
63
|
+
tabindex: "0",
|
|
64
|
+
onClick: p
|
|
65
|
+
}, {
|
|
66
|
+
default: k(() => [
|
|
67
|
+
B(
|
|
68
|
+
n(E),
|
|
69
|
+
h(x(e.icons.remove)),
|
|
70
|
+
null,
|
|
71
|
+
16
|
|
72
|
+
/* FULL_PROPS */
|
|
73
|
+
)
|
|
74
|
+
]),
|
|
75
|
+
_: 1
|
|
76
|
+
/* STABLE */
|
|
77
|
+
})) : N("v-if", !0)
|
|
78
|
+
])
|
|
79
|
+
],
|
|
80
|
+
6
|
|
81
|
+
/* CLASS, STYLE */
|
|
82
|
+
));
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
export {
|
|
86
|
+
A as default
|
|
87
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
declare const QBadge: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
variant: {
|
|
4
|
+
type: import('vue').PropType<"bold" | "tonal" | "outlined">;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: import('vue').PropType<string>;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
removable: {
|
|
12
|
+
type: import('vue').PropType<boolean>;
|
|
13
|
+
};
|
|
14
|
+
pill: {
|
|
15
|
+
type: import('vue').PropType<boolean>;
|
|
16
|
+
};
|
|
17
|
+
icons: {
|
|
18
|
+
type: import('vue').PropType<Record<string, import('..').Icon>>;
|
|
19
|
+
default: () => Record<string, import('..').Icon>;
|
|
20
|
+
};
|
|
21
|
+
}>> & {
|
|
22
|
+
"onClick:remove"?: (() => any) | undefined;
|
|
23
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
"click:remove": () => void;
|
|
25
|
+
}, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
|
|
26
|
+
variant: {
|
|
27
|
+
type: import('vue').PropType<"bold" | "tonal" | "outlined">;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
color: {
|
|
31
|
+
type: import('vue').PropType<string>;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
removable: {
|
|
35
|
+
type: import('vue').PropType<boolean>;
|
|
36
|
+
};
|
|
37
|
+
pill: {
|
|
38
|
+
type: import('vue').PropType<boolean>;
|
|
39
|
+
};
|
|
40
|
+
icons: {
|
|
41
|
+
type: import('vue').PropType<Record<string, import('..').Icon>>;
|
|
42
|
+
default: () => Record<string, import('..').Icon>;
|
|
43
|
+
};
|
|
44
|
+
}>> & {
|
|
45
|
+
"onClick:remove"?: (() => any) | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
variant: "bold" | "tonal" | "outlined";
|
|
48
|
+
color: string;
|
|
49
|
+
icons: Record<string, import('..').Icon>;
|
|
50
|
+
}, true, {}, {}, {
|
|
51
|
+
P: {};
|
|
52
|
+
B: {};
|
|
53
|
+
D: {};
|
|
54
|
+
C: {};
|
|
55
|
+
M: {};
|
|
56
|
+
Defaults: {};
|
|
57
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
58
|
+
variant: {
|
|
59
|
+
type: import('vue').PropType<"bold" | "tonal" | "outlined">;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
color: {
|
|
63
|
+
type: import('vue').PropType<string>;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
removable: {
|
|
67
|
+
type: import('vue').PropType<boolean>;
|
|
68
|
+
};
|
|
69
|
+
pill: {
|
|
70
|
+
type: import('vue').PropType<boolean>;
|
|
71
|
+
};
|
|
72
|
+
icons: {
|
|
73
|
+
type: import('vue').PropType<Record<string, import('..').Icon>>;
|
|
74
|
+
default: () => Record<string, import('..').Icon>;
|
|
75
|
+
};
|
|
76
|
+
}>> & {
|
|
77
|
+
"onClick:remove"?: (() => any) | undefined;
|
|
78
|
+
}, {}, {}, {}, {}, {
|
|
79
|
+
variant: "bold" | "tonal" | "outlined";
|
|
80
|
+
color: string;
|
|
81
|
+
icons: Record<string, import('..').Icon>;
|
|
82
|
+
}>;
|
|
83
|
+
__isFragment?: undefined;
|
|
84
|
+
__isTeleport?: undefined;
|
|
85
|
+
__isSuspense?: undefined;
|
|
86
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
87
|
+
variant: {
|
|
88
|
+
type: import('vue').PropType<"bold" | "tonal" | "outlined">;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
color: {
|
|
92
|
+
type: import('vue').PropType<string>;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
removable: {
|
|
96
|
+
type: import('vue').PropType<boolean>;
|
|
97
|
+
};
|
|
98
|
+
pill: {
|
|
99
|
+
type: import('vue').PropType<boolean>;
|
|
100
|
+
};
|
|
101
|
+
icons: {
|
|
102
|
+
type: import('vue').PropType<Record<string, import('..').Icon>>;
|
|
103
|
+
default: () => Record<string, import('..').Icon>;
|
|
104
|
+
};
|
|
105
|
+
}>> & {
|
|
106
|
+
"onClick:remove"?: (() => any) | undefined;
|
|
107
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
108
|
+
"click:remove": () => void;
|
|
109
|
+
}, string, {
|
|
110
|
+
variant: "bold" | "tonal" | "outlined";
|
|
111
|
+
color: string;
|
|
112
|
+
icons: Record<string, import('..').Icon>;
|
|
113
|
+
}, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
114
|
+
$slots: {
|
|
115
|
+
default?(_: {}): any;
|
|
116
|
+
};
|
|
117
|
+
});
|
|
118
|
+
export { QBadge };
|
|
119
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6C,CAAA;AAGzD,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { QButtonProps } from './QButton';
|
|
2
|
+
|
|
1
3
|
declare const QButton: {
|
|
2
4
|
new (...args: any[]): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
|
|
3
5
|
size: {
|
|
@@ -195,4 +197,5 @@ declare const QButton: {
|
|
|
195
197
|
};
|
|
196
198
|
});
|
|
197
199
|
export { QButton };
|
|
200
|
+
export type { QButtonProps };
|
|
198
201
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAKjD,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+C,CAAA;AAG5D,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,YAAY,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -186,8 +186,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
186
186
|
class: string | unknown[];
|
|
187
187
|
type: string;
|
|
188
188
|
label: string;
|
|
189
|
-
id: string;
|
|
190
189
|
role: string;
|
|
190
|
+
id: string;
|
|
191
191
|
maxLength: number;
|
|
192
192
|
placeholder: string;
|
|
193
193
|
}> & Omit<{
|
|
@@ -198,9 +198,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
198
198
|
readonly class?: string | unknown[] | undefined;
|
|
199
199
|
readonly disabled?: boolean | undefined;
|
|
200
200
|
readonly required?: boolean | undefined;
|
|
201
|
+
readonly role?: string | undefined;
|
|
201
202
|
readonly modelValue?: string | undefined;
|
|
202
203
|
readonly id?: string | undefined;
|
|
203
|
-
readonly role?: string | undefined;
|
|
204
204
|
readonly maxLength?: number | undefined;
|
|
205
205
|
readonly readonly?: boolean | undefined;
|
|
206
206
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -227,11 +227,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
227
227
|
required: {
|
|
228
228
|
type: import('vue').PropType<boolean>;
|
|
229
229
|
};
|
|
230
|
-
|
|
230
|
+
role: {
|
|
231
231
|
type: import('vue').PropType<string>;
|
|
232
232
|
default: undefined;
|
|
233
233
|
};
|
|
234
|
-
|
|
234
|
+
id: {
|
|
235
235
|
type: import('vue').PropType<string>;
|
|
236
236
|
default: undefined;
|
|
237
237
|
};
|
|
@@ -246,7 +246,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
246
246
|
readonly: {
|
|
247
247
|
type: import('vue').PropType<boolean>;
|
|
248
248
|
};
|
|
249
|
-
}>>, "size" | "class" | "type" | "label" | "
|
|
249
|
+
}>>, "size" | "class" | "type" | "label" | "role" | "id" | "maxLength" | "placeholder">;
|
|
250
250
|
$attrs: {
|
|
251
251
|
[x: string]: unknown;
|
|
252
252
|
};
|
|
@@ -284,11 +284,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
284
284
|
required: {
|
|
285
285
|
type: import('vue').PropType<boolean>;
|
|
286
286
|
};
|
|
287
|
-
|
|
287
|
+
role: {
|
|
288
288
|
type: import('vue').PropType<string>;
|
|
289
289
|
default: undefined;
|
|
290
290
|
};
|
|
291
|
-
|
|
291
|
+
id: {
|
|
292
292
|
type: import('vue').PropType<string>;
|
|
293
293
|
default: undefined;
|
|
294
294
|
};
|
|
@@ -311,8 +311,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
311
311
|
class: string | unknown[];
|
|
312
312
|
type: string;
|
|
313
313
|
label: string;
|
|
314
|
-
id: string;
|
|
315
314
|
role: string;
|
|
315
|
+
id: string;
|
|
316
316
|
maxLength: number;
|
|
317
317
|
placeholder: string;
|
|
318
318
|
}, {}, string, {}> & {
|
|
@@ -359,11 +359,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
359
359
|
required: {
|
|
360
360
|
type: import('vue').PropType<boolean>;
|
|
361
361
|
};
|
|
362
|
-
|
|
362
|
+
role: {
|
|
363
363
|
type: import('vue').PropType<string>;
|
|
364
364
|
default: undefined;
|
|
365
365
|
};
|
|
366
|
-
|
|
366
|
+
id: {
|
|
367
367
|
type: import('vue').PropType<string>;
|
|
368
368
|
default: undefined;
|
|
369
369
|
};
|