@ironsource/shared-ui 2.1.3-rc.8 → 2.1.3-rc.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/FormRow.vue_vue_type_style_index_0_scoped_c5265707_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css +1 -0
- package/components/button/v4/ButtonV4.vue2.js +1 -90
- package/components/forms/FormRow.vue.d.ts +10 -0
- package/components/forms/FormRow.vue.js +3 -3
- package/components/forms/FormRow.vue2.js +22 -29
- package/components/forms/index.d.ts +39 -1
- package/components/textArea/v4/TextAreaV4.vue.d.ts +10 -0
- package/components/textArea/v4/TextAreaV4.vue.js +2 -2
- package/components/textArea/v4/TextAreaV4.vue2.js +25 -25
- package/components/textArea/v4/index.d.ts +18 -0
- package/index.d.ts +36 -0
- package/package.json +1 -1
- package/FormRow.vue_vue_type_style_index_0_scoped_39f48410_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_6e91a617_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.form-row[data-v-c5265707]{display:flex;height:auto;gap:1.5rem;align-items:baseline}.form-row .label-container[data-v-c5265707]{display:flex;align-items:center;min-height:1.75rem;height:100%;width:12.875rem;gap:.25rem;flex-shrink:0}.form-row .label-container[data-v-c5265707] .field-label{margin-bottom:0}.form-row .content[data-v-c5265707]{display:flex;flex-direction:column;align-items:stretch;gap:.25rem;width:100%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";.font-tab-label2[data-v-0336a92f],.font-chart-2[data-v-0336a92f],.font-chart-1[data-v-0336a92f]{font-family:Inter,sans-serif;font-weight:700}.font-chip-label[data-v-0336a92f],.font-table-label[data-v-0336a92f],.font-button[data-v-0336a92f],.font-heading-6[data-v-0336a92f],.font-heading-5[data-v-0336a92f],.font-heading-4[data-v-0336a92f],.font-heading-3[data-v-0336a92f],.font-heading-2[data-v-0336a92f],.font-heading-1[data-v-0336a92f],.font-title[data-v-0336a92f]{font-family:Inter,sans-serif;font-weight:600}.font-tab-label1[data-v-0336a92f],.font-input-label[data-v-0336a92f],.font-overline[data-v-0336a92f],.font-subtitle-2[data-v-0336a92f],.font-subtitle-1[data-v-0336a92f]{font-family:Inter,sans-serif;font-weight:500}.font-caption[data-v-0336a92f],.font-body-2[data-v-0336a92f],.textarea[data-v-0336a92f],.font-body-1[data-v-0336a92f]{font-family:Inter,sans-serif;font-weight:400}.font-title[data-v-0336a92f]{font-size:2.5rem;line-height:3rem;letter-spacing:-.055rem}.font-heading-1[data-v-0336a92f]{font-size:1.5rem;line-height:1.75rem;letter-spacing:-.0285rem}.font-heading-2[data-v-0336a92f]{font-size:1.125rem;line-height:1.75rem;letter-spacing:-.01575rem}.font-heading-3[data-v-0336a92f]{font-size:1rem;line-height:1.5rem;letter-spacing:-.011rem}.font-heading-4[data-v-0336a92f]{font-size:.875rem;line-height:1rem;letter-spacing:unset}.font-heading-5[data-v-0336a92f]{font-size:.8125rem;line-height:16px;letter-spacing:unset}.font-heading-6[data-v-0336a92f]{font-size:.75rem;line-height:.75rem;letter-spacing:0}.textarea[data-v-0336a92f],.font-body-1[data-v-0336a92f]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-body-2[data-v-0336a92f]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-subtitle-1[data-v-0336a92f]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-subtitle-2[data-v-0336a92f]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-chart-1[data-v-0336a92f]{font-size:1.5rem;line-height:1.5rem;letter-spacing:-.015rem}.font-chart-2[data-v-0336a92f]{font-size:1.25rem;line-height:1.25rem;letter-spacing:-.0125rem}.font-button[data-v-0336a92f]{font-size:.875rem;line-height:1.25rem;letter-spacing:.00875rem}.font-overline[data-v-0336a92f]{font-size:.75rem;line-height:1rem;letter-spacing:.045rem;text-transform:uppercase}.font-caption[data-v-0336a92f]{font-size:.75rem;line-height:1rem}.font-table-label[data-v-0336a92f]{font-size:.8125rem;line-height:1.25rem;letter-spacing:.00813rem}.font-input-label[data-v-0336a92f]{font-size:.8125rem;line-height:1rem;letter-spacing:.00813rem}.font-tab-label1[data-v-0336a92f],.font-tab-label2[data-v-0336a92f]{font-size:.875rem;line-height:1rem}.font-chip-label[data-v-0336a92f]{font-size:.75rem;line-height:1rem}h1[data-v-0336a92f],h2[data-v-0336a92f],h3[data-v-0336a92f],h4[data-v-0336a92f],h5[data-v-0336a92f],h6[data-v-0336a92f]{margin:0}.textarea-field[data-v-0336a92f]{display:flex;flex-direction:column}.textarea[data-v-0336a92f]{flex-grow:1;background:var(--default-main);color:var(--text-primary);padding:var(--spacing-125) var(--spacing-100);height:calc(var(--spacing-900) - 1px);width:100%;border:none;border-radius:var(--border-radius-md);outline:1px solid var(--action-outlined-border)}.textarea[data-v-0336a92f]:hover{outline:1px solid var(--action-active)}.textarea[data-v-0336a92f]:focus{outline:2px solid var(--primary-main)}.textarea[data-v-0336a92f]::placeholder{color:var(--text-secondary)}.textarea--disabled[data-v-0336a92f]{color:var(--text-disabled)}.textarea--disabled[data-v-0336a92f]::placeholder{color:var(--text-disabled)}.textarea--disabled[data-v-0336a92f]:hover{outline:1px solid var(--action-outlined-border)}.textarea--variant-success[data-v-0336a92f],.textarea--variant-success[data-v-0336a92f]:hover,.textarea--variant-success[data-v-0336a92f]:focus{outline:2px solid var(--success-dark)}.textarea--variant-error[data-v-0336a92f],.textarea--variant-error[data-v-0336a92f]:hover,.textarea--variant-error[data-v-0336a92f]:focus{outline:2px solid var(--error-main)}.textarea--variant-warning[data-v-0336a92f],.textarea--variant-warning[data-v-0336a92f]:hover,.textarea--variant-warning[data-v-0336a92f]:focus{outline:2px solid var(--warning-dark)}.textarea-label[data-v-0336a92f]{flex-grow:initial}.footer[data-v-0336a92f]{display:flex;justify-content:flex-end;align-items:center;margin:var(--spacing-50) 0}
|
|
@@ -1,90 +1 @@
|
|
|
1
|
-
import "../../../ButtonV4.vue_vue_type_style_index_0_scoped_38c0ed72_lang.css";
|
|
2
|
-
import I from "../../typography/v4/Typography.vue.js";
|
|
3
|
-
import y from "../../icon/v4/IconV4.vue.js";
|
|
4
|
-
import b from "../../loader/v4/Loader.vue.js";
|
|
5
|
-
const k = ["data-testid", "disabled"], v = { key: 0 }, V = /* @__PURE__ */ N({
|
|
6
|
-
__name: "ButtonV4",
|
|
7
|
-
props: {
|
|
8
|
-
variant: { default: "contained" },
|
|
9
|
-
color: { default: "primary" },
|
|
10
|
-
size: { default: "medium" },
|
|
11
|
-
loading: { type: Boolean, default: !1 },
|
|
12
|
-
disabled: { type: Boolean, default: !1 },
|
|
13
|
-
testId: { default: "" },
|
|
14
|
-
content: { default: "" },
|
|
15
|
-
startIconName: { default: null },
|
|
16
|
-
endIconName: { default: null },
|
|
17
|
-
startIconType: { default: "regular" },
|
|
18
|
-
endIconType: { default: "regular" }
|
|
19
|
-
},
|
|
20
|
-
setup(e) {
|
|
21
|
-
const d = e, o = h(
|
|
22
|
-
() => d.size === "small" || d.size === "medium" ? 16 : 20
|
|
23
|
-
);
|
|
24
|
-
return (l, w) => (a(), s("button", {
|
|
25
|
-
class: i([[
|
|
26
|
-
e.size,
|
|
27
|
-
e.color,
|
|
28
|
-
e.variant,
|
|
29
|
-
{ loading: e.loading },
|
|
30
|
-
{
|
|
31
|
-
"with-start-icon": !!e.startIconName,
|
|
32
|
-
"with-end-icon": !!e.endIconName
|
|
33
|
-
}
|
|
34
|
-
], "button-wrap"]),
|
|
35
|
-
"data-testid": d.testId,
|
|
36
|
-
disabled: e.disabled
|
|
37
|
-
}, [
|
|
38
|
-
e.loading ? n("", !0) : (a(), s("span", v, [
|
|
39
|
-
r("div", {
|
|
40
|
-
class: i({
|
|
41
|
-
flex: e.startIconName || e.endIconName
|
|
42
|
-
})
|
|
43
|
-
}, [
|
|
44
|
-
e.startIconName ? (a(), f(t(y), {
|
|
45
|
-
key: 0,
|
|
46
|
-
name: e.startIconName,
|
|
47
|
-
size: `${t(o)}px`,
|
|
48
|
-
type: e.startIconType,
|
|
49
|
-
class: "start-icon"
|
|
50
|
-
}, null, 8, ["name", "size", "type"])) : n("", !0),
|
|
51
|
-
c(t(I), { variant: "button" }, {
|
|
52
|
-
default: u(() => [
|
|
53
|
-
m(l.$slots, "default", {}, () => [
|
|
54
|
-
z(g(e.content), 1)
|
|
55
|
-
], !0)
|
|
56
|
-
]),
|
|
57
|
-
_: 3
|
|
58
|
-
}),
|
|
59
|
-
e.endIconName ? (a(), f(t(y), {
|
|
60
|
-
key: 1,
|
|
61
|
-
name: e.endIconName,
|
|
62
|
-
size: `${t(o)}px`,
|
|
63
|
-
type: e.endIconType,
|
|
64
|
-
class: "end-icon"
|
|
65
|
-
}, null, 8, ["name", "size", "type"])) : n("", !0)
|
|
66
|
-
], 2)
|
|
67
|
-
])),
|
|
68
|
-
e.loading ? m(l.$slots, "loader", { key: 1 }, () => [
|
|
69
|
-
c(t(b), { "max-width": t(o) }, {
|
|
70
|
-
default: u(() => [
|
|
71
|
-
r("div", {
|
|
72
|
-
class: i({ "content-with-icon": e.startIconName || e.endIconName })
|
|
73
|
-
}, [
|
|
74
|
-
c(t(I), { variant: "button" }, {
|
|
75
|
-
default: u(() => [
|
|
76
|
-
m(l.$slots, "default", {}, void 0, !0)
|
|
77
|
-
]),
|
|
78
|
-
_: 3
|
|
79
|
-
})
|
|
80
|
-
], 2)
|
|
81
|
-
]),
|
|
82
|
-
_: 3
|
|
83
|
-
}, 8, ["max-width"])
|
|
84
|
-
], !0) : n("", !0)
|
|
85
|
-
], 10, k));
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
export {
|
|
89
|
-
V as default
|
|
90
|
-
};
|
|
1
|
+
import "../../../ButtonV4.vue_vue_type_style_index_0_scoped_38c0ed72_lang.css";
|
|
@@ -2,22 +2,32 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
2
2
|
label: string;
|
|
3
3
|
mandatory?: boolean;
|
|
4
4
|
testId?: string;
|
|
5
|
+
hoverHelpText?: string;
|
|
6
|
+
hoverHelpTextPlacement?: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
5
7
|
}>, {
|
|
6
8
|
label: string;
|
|
7
9
|
mandatory: boolean;
|
|
8
10
|
testId: string;
|
|
11
|
+
hoverHelpText: string;
|
|
12
|
+
hoverHelpTextPlacement: string;
|
|
9
13
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
14
|
label: string;
|
|
11
15
|
mandatory?: boolean;
|
|
12
16
|
testId?: string;
|
|
17
|
+
hoverHelpText?: string;
|
|
18
|
+
hoverHelpTextPlacement?: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
13
19
|
}>, {
|
|
14
20
|
label: string;
|
|
15
21
|
mandatory: boolean;
|
|
16
22
|
testId: string;
|
|
23
|
+
hoverHelpText: string;
|
|
24
|
+
hoverHelpTextPlacement: string;
|
|
17
25
|
}>>>, {
|
|
18
26
|
label: string;
|
|
19
27
|
mandatory: boolean;
|
|
20
28
|
testId: string;
|
|
29
|
+
hoverHelpText: string;
|
|
30
|
+
hoverHelpTextPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
21
31
|
}>, {
|
|
22
32
|
default?(_: {}): any;
|
|
23
33
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./FormRow.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../FormRow.
|
|
4
|
-
const
|
|
3
|
+
// import "../../FormRow.vue_vue_type_style_index_0_scoped_c5265707_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ _(o, [["__scopeId", "data-v-c5265707"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,41 +1,34 @@
|
|
|
1
|
-
import "../../FormRow.
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import "../../FormRow.vue_vue_type_style_index_0_scoped_c5265707_lang.css"; import { defineComponent as o, openBlock as t, createElementBlock as l, createVNode as d, createCommentVNode as n, createElementVNode as r, renderSlot as c } from "vue";
|
|
2
|
+
import m from "../shared/FieldLabel.vue.js";
|
|
3
|
+
const s = { class: "form-row" }, h = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "label-container"
|
|
6
|
+
}, i = { class: "content" }, p = /* @__PURE__ */ o({
|
|
4
7
|
__name: "FormRow",
|
|
5
8
|
props: {
|
|
6
9
|
label: { default: "" },
|
|
7
10
|
mandatory: { type: Boolean, default: !1 },
|
|
8
|
-
testId: { default: "" }
|
|
11
|
+
testId: { default: "" },
|
|
12
|
+
hoverHelpText: { default: "" },
|
|
13
|
+
hoverHelpTextPlacement: { default: "top" }
|
|
9
14
|
},
|
|
10
15
|
setup(e) {
|
|
11
|
-
return (
|
|
12
|
-
e.label ? (t(),
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
})
|
|
23
|
-
e.mandatory ? (t(), u(o(n), {
|
|
24
|
-
key: 0,
|
|
25
|
-
class: "mandatory"
|
|
26
|
-
}, {
|
|
27
|
-
default: l(() => [
|
|
28
|
-
d("*")
|
|
29
|
-
]),
|
|
30
|
-
_: 1
|
|
31
|
-
})) : r("", !0)
|
|
32
|
-
], 8, _)) : r("", !0),
|
|
33
|
-
f("div", h, [
|
|
34
|
-
y(s.$slots, "default", {}, void 0, !0)
|
|
16
|
+
return (a, f) => (t(), l("div", s, [
|
|
17
|
+
e.label ? (t(), l("div", h, [
|
|
18
|
+
d(m, {
|
|
19
|
+
label: e.label,
|
|
20
|
+
mandatory: e.mandatory,
|
|
21
|
+
"hover-help-text": e.hoverHelpText,
|
|
22
|
+
"hover-help-text-placement": e.hoverHelpTextPlacement,
|
|
23
|
+
"data-testid": e.testId
|
|
24
|
+
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "data-testid"])
|
|
25
|
+
])) : n("", !0),
|
|
26
|
+
r("div", i, [
|
|
27
|
+
c(a.$slots, "default", {}, void 0, !0)
|
|
35
28
|
])
|
|
36
29
|
]));
|
|
37
30
|
}
|
|
38
31
|
});
|
|
39
32
|
export {
|
|
40
|
-
|
|
33
|
+
p as default
|
|
41
34
|
};
|
|
@@ -383,6 +383,8 @@ declare const FormCardTypes: () => (({
|
|
|
383
383
|
label: string;
|
|
384
384
|
mandatory: boolean;
|
|
385
385
|
testId: string;
|
|
386
|
+
hoverHelpText: string;
|
|
387
|
+
hoverHelpTextPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
386
388
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
387
389
|
label: {
|
|
388
390
|
type: import("vue").PropType<string>;
|
|
@@ -397,7 +399,15 @@ declare const FormCardTypes: () => (({
|
|
|
397
399
|
type: import("vue").PropType<string>;
|
|
398
400
|
default: string;
|
|
399
401
|
};
|
|
400
|
-
|
|
402
|
+
hoverHelpText: {
|
|
403
|
+
type: import("vue").PropType<string>;
|
|
404
|
+
default: string;
|
|
405
|
+
};
|
|
406
|
+
hoverHelpTextPlacement: {
|
|
407
|
+
type: import("vue").PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
|
|
408
|
+
default: string;
|
|
409
|
+
};
|
|
410
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "mandatory" | "testId" | "hoverHelpText" | "hoverHelpTextPlacement">;
|
|
401
411
|
$attrs: {
|
|
402
412
|
[x: string]: unknown;
|
|
403
413
|
};
|
|
@@ -425,10 +435,20 @@ declare const FormCardTypes: () => (({
|
|
|
425
435
|
type: import("vue").PropType<string>;
|
|
426
436
|
default: string;
|
|
427
437
|
};
|
|
438
|
+
hoverHelpText: {
|
|
439
|
+
type: import("vue").PropType<string>;
|
|
440
|
+
default: string;
|
|
441
|
+
};
|
|
442
|
+
hoverHelpTextPlacement: {
|
|
443
|
+
type: import("vue").PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
|
|
444
|
+
default: string;
|
|
445
|
+
};
|
|
428
446
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
429
447
|
label: string;
|
|
430
448
|
mandatory: boolean;
|
|
431
449
|
testId: string;
|
|
450
|
+
hoverHelpText: string;
|
|
451
|
+
hoverHelpTextPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
432
452
|
}, {}, string> & {
|
|
433
453
|
beforeCreate?: (() => void) | (() => void)[];
|
|
434
454
|
created?: (() => void) | (() => void)[];
|
|
@@ -463,6 +483,14 @@ declare const FormCardTypes: () => (({
|
|
|
463
483
|
type: import("vue").PropType<string>;
|
|
464
484
|
default: string;
|
|
465
485
|
};
|
|
486
|
+
hoverHelpText: {
|
|
487
|
+
type: import("vue").PropType<string>;
|
|
488
|
+
default: string;
|
|
489
|
+
};
|
|
490
|
+
hoverHelpTextPlacement: {
|
|
491
|
+
type: import("vue").PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
|
|
492
|
+
default: string;
|
|
493
|
+
};
|
|
466
494
|
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
467
495
|
__isFragment?: never;
|
|
468
496
|
__isTeleport?: never;
|
|
@@ -481,10 +509,20 @@ declare const FormCardTypes: () => (({
|
|
|
481
509
|
type: import("vue").PropType<string>;
|
|
482
510
|
default: string;
|
|
483
511
|
};
|
|
512
|
+
hoverHelpText: {
|
|
513
|
+
type: import("vue").PropType<string>;
|
|
514
|
+
default: string;
|
|
515
|
+
};
|
|
516
|
+
hoverHelpTextPlacement: {
|
|
517
|
+
type: import("vue").PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
|
|
518
|
+
default: string;
|
|
519
|
+
};
|
|
484
520
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
485
521
|
label: string;
|
|
486
522
|
mandatory: boolean;
|
|
487
523
|
testId: string;
|
|
524
|
+
hoverHelpText: string;
|
|
525
|
+
hoverHelpTextPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
488
526
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
489
527
|
$slots: {
|
|
490
528
|
default?(_: {}): any;
|
|
@@ -12,6 +12,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
12
12
|
feedbackVariant?: FeedbackVariant;
|
|
13
13
|
feedbackText?: string;
|
|
14
14
|
showFeedbackTextIcon?: boolean;
|
|
15
|
+
resize?: 'none' | 'vertical' | 'horizontal' | 'both';
|
|
16
|
+
height?: string;
|
|
15
17
|
testId?: string;
|
|
16
18
|
}>, {
|
|
17
19
|
modelValue: string;
|
|
@@ -25,7 +27,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
25
27
|
feedbackText: string;
|
|
26
28
|
feedbackVariant: any;
|
|
27
29
|
showFeedbackTextIcon: boolean;
|
|
30
|
+
resize: string;
|
|
28
31
|
testId: string;
|
|
32
|
+
height: any;
|
|
29
33
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
34
|
"update:modelValue": (value: string) => void;
|
|
31
35
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -40,6 +44,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
40
44
|
feedbackVariant?: FeedbackVariant;
|
|
41
45
|
feedbackText?: string;
|
|
42
46
|
showFeedbackTextIcon?: boolean;
|
|
47
|
+
resize?: 'none' | 'vertical' | 'horizontal' | 'both';
|
|
48
|
+
height?: string;
|
|
43
49
|
testId?: string;
|
|
44
50
|
}>, {
|
|
45
51
|
modelValue: string;
|
|
@@ -53,12 +59,16 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
53
59
|
feedbackText: string;
|
|
54
60
|
feedbackVariant: any;
|
|
55
61
|
showFeedbackTextIcon: boolean;
|
|
62
|
+
resize: string;
|
|
56
63
|
testId: string;
|
|
64
|
+
height: any;
|
|
57
65
|
}>>> & {
|
|
58
66
|
"onUpdate:modelValue"?: (value: string) => any;
|
|
59
67
|
}, {
|
|
60
68
|
label: string;
|
|
61
69
|
disabled: boolean;
|
|
70
|
+
height: string;
|
|
71
|
+
resize: 'none' | 'vertical' | 'horizontal' | 'both';
|
|
62
72
|
mandatory: boolean;
|
|
63
73
|
testId: string;
|
|
64
74
|
modelValue: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./TextAreaV4.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../TextAreaV4.
|
|
4
|
-
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-0336a92f"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import "../../../TextAreaV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css"; import { defineComponent as s, computed as b, openBlock as t, createElementBlock as i, mergeProps as c, unref as a, createBlock as n, createCommentVNode as l, createElementVNode as g } from "vue";
|
|
2
|
+
import v from "../../shared/FieldLabel.vue.js";
|
|
3
3
|
import k from "../../shared/FieldMaxLength.vue.js";
|
|
4
4
|
import T from "../../shared/FieldHelpText.vue.js";
|
|
5
|
-
import { TextAreaTestIdModifiers as
|
|
5
|
+
import { TextAreaTestIdModifiers as u } from "../../../testids/index.js";
|
|
6
6
|
import { useTestIdAttrs as V } from "../../../utils/testIds.js";
|
|
7
|
-
const
|
|
7
|
+
const y = ["value", "placeholder", "disabled", "maxlength"], I = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "footer"
|
|
10
|
-
},
|
|
11
|
-
inheritAttrs: !1
|
|
12
|
-
}, E = /* @__PURE__ */ x({
|
|
13
|
-
...L,
|
|
10
|
+
}, w = /* @__PURE__ */ s({
|
|
14
11
|
__name: "TextAreaV4",
|
|
15
12
|
props: {
|
|
16
13
|
modelValue: { default: "" },
|
|
@@ -24,51 +21,54 @@ const I = ["value", "placeholder", "disabled", "maxlength"], y = {
|
|
|
24
21
|
feedbackVariant: { default: null },
|
|
25
22
|
feedbackText: { default: "" },
|
|
26
23
|
showFeedbackTextIcon: { type: Boolean, default: !0 },
|
|
24
|
+
resize: { default: "none" },
|
|
25
|
+
height: { default: null },
|
|
27
26
|
testId: { default: "" }
|
|
28
27
|
},
|
|
29
28
|
emits: ["update:modelValue"],
|
|
30
|
-
setup(e, { emit:
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
return (
|
|
35
|
-
e.label ? (t(), n(
|
|
29
|
+
setup(e, { emit: h }) {
|
|
30
|
+
const o = e, m = (d) => {
|
|
31
|
+
h("update:modelValue", d.target.value);
|
|
32
|
+
}, x = b(() => (o.modelValue || "").length), r = V(o.testId, u);
|
|
33
|
+
return (d, f) => (t(), i("div", c({ class: "textarea-field" }, a(r)[a(u).WRAPPER]), [
|
|
34
|
+
e.label ? (t(), n(v, {
|
|
36
35
|
key: 0,
|
|
36
|
+
class: "textarea-label",
|
|
37
37
|
label: e.label,
|
|
38
38
|
mandatory: e.mandatory,
|
|
39
39
|
"hover-help-text": e.hoverHelpText,
|
|
40
40
|
"hover-help-text-placement": e.hoverHelpTextPlacement,
|
|
41
41
|
disabled: e.disabled,
|
|
42
42
|
"test-id": e.testId
|
|
43
|
-
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) :
|
|
44
|
-
|
|
43
|
+
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : l("", !0),
|
|
44
|
+
g("textarea", c({
|
|
45
45
|
class: ["textarea", {
|
|
46
46
|
"textarea--disabled": e.disabled,
|
|
47
47
|
[`textarea--variant-${e.feedbackVariant}`]: !0
|
|
48
48
|
}],
|
|
49
|
+
style: { resize: e.resize, height: e.height },
|
|
49
50
|
value: e.modelValue,
|
|
50
51
|
placeholder: e.placeholder,
|
|
51
52
|
disabled: e.disabled,
|
|
52
|
-
maxlength: e.maxLength
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
e.feedbackText || e.maxLength ? (t(), c("div", y, [
|
|
53
|
+
maxlength: e.maxLength
|
|
54
|
+
}, a(r)[a(u).FIELD], { onInput: m }), null, 16, y),
|
|
55
|
+
e.feedbackText || e.maxLength ? (t(), i("div", I, [
|
|
56
56
|
e.feedbackText ? (t(), n(T, {
|
|
57
57
|
key: 0,
|
|
58
58
|
text: e.feedbackText,
|
|
59
59
|
variant: e.feedbackVariant,
|
|
60
60
|
"show-icon": e.showFeedbackTextIcon,
|
|
61
61
|
"test-id": e.testId
|
|
62
|
-
}, null, 8, ["text", "variant", "show-icon", "test-id"])) :
|
|
62
|
+
}, null, 8, ["text", "variant", "show-icon", "test-id"])) : l("", !0),
|
|
63
63
|
e.maxLength ? (t(), n(k, {
|
|
64
64
|
key: 1,
|
|
65
|
-
"current-length": a(
|
|
65
|
+
"current-length": a(x),
|
|
66
66
|
"max-length": e.maxLength
|
|
67
|
-
}, null, 8, ["current-length", "max-length"])) :
|
|
68
|
-
])) :
|
|
67
|
+
}, null, 8, ["current-length", "max-length"])) : l("", !0)
|
|
68
|
+
])) : l("", !0)
|
|
69
69
|
], 16));
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
export {
|
|
73
|
-
|
|
73
|
+
w as default
|
|
74
74
|
};
|
|
@@ -7,6 +7,14 @@ declare const TextAreaTypes: () => import("vue").DefineComponent<{
|
|
|
7
7
|
type: import("vue").PropType<boolean>;
|
|
8
8
|
default: boolean;
|
|
9
9
|
};
|
|
10
|
+
height: {
|
|
11
|
+
type: import("vue").PropType<string>;
|
|
12
|
+
default: any;
|
|
13
|
+
};
|
|
14
|
+
resize: {
|
|
15
|
+
type: import("vue").PropType<"both" | "none" | "horizontal" | "vertical">;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
10
18
|
mandatory: {
|
|
11
19
|
type: import("vue").PropType<boolean>;
|
|
12
20
|
default: boolean;
|
|
@@ -58,6 +66,14 @@ declare const TextAreaTypes: () => import("vue").DefineComponent<{
|
|
|
58
66
|
type: import("vue").PropType<boolean>;
|
|
59
67
|
default: boolean;
|
|
60
68
|
};
|
|
69
|
+
height: {
|
|
70
|
+
type: import("vue").PropType<string>;
|
|
71
|
+
default: any;
|
|
72
|
+
};
|
|
73
|
+
resize: {
|
|
74
|
+
type: import("vue").PropType<"both" | "none" | "horizontal" | "vertical">;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
61
77
|
mandatory: {
|
|
62
78
|
type: import("vue").PropType<boolean>;
|
|
63
79
|
default: boolean;
|
|
@@ -103,6 +119,8 @@ declare const TextAreaTypes: () => import("vue").DefineComponent<{
|
|
|
103
119
|
}, {
|
|
104
120
|
label: string;
|
|
105
121
|
disabled: boolean;
|
|
122
|
+
height: string;
|
|
123
|
+
resize: "both" | "none" | "horizontal" | "vertical";
|
|
106
124
|
mandatory: boolean;
|
|
107
125
|
testId: string;
|
|
108
126
|
modelValue: string;
|
package/index.d.ts
CHANGED
|
@@ -1127,6 +1127,14 @@ declare const _default: {
|
|
|
1127
1127
|
type: import("vue").PropType<boolean>;
|
|
1128
1128
|
default: boolean;
|
|
1129
1129
|
};
|
|
1130
|
+
height: {
|
|
1131
|
+
type: import("vue").PropType<string>;
|
|
1132
|
+
default: any;
|
|
1133
|
+
};
|
|
1134
|
+
resize: {
|
|
1135
|
+
type: import("vue").PropType<"both" | "none" | "horizontal" | "vertical">;
|
|
1136
|
+
default: string;
|
|
1137
|
+
};
|
|
1130
1138
|
mandatory: {
|
|
1131
1139
|
type: import("vue").PropType<boolean>;
|
|
1132
1140
|
default: boolean;
|
|
@@ -1178,6 +1186,14 @@ declare const _default: {
|
|
|
1178
1186
|
type: import("vue").PropType<boolean>;
|
|
1179
1187
|
default: boolean;
|
|
1180
1188
|
};
|
|
1189
|
+
height: {
|
|
1190
|
+
type: import("vue").PropType<string>;
|
|
1191
|
+
default: any;
|
|
1192
|
+
};
|
|
1193
|
+
resize: {
|
|
1194
|
+
type: import("vue").PropType<"both" | "none" | "horizontal" | "vertical">;
|
|
1195
|
+
default: string;
|
|
1196
|
+
};
|
|
1181
1197
|
mandatory: {
|
|
1182
1198
|
type: import("vue").PropType<boolean>;
|
|
1183
1199
|
default: boolean;
|
|
@@ -1223,6 +1239,8 @@ declare const _default: {
|
|
|
1223
1239
|
}, {
|
|
1224
1240
|
label: string;
|
|
1225
1241
|
disabled: boolean;
|
|
1242
|
+
height: string;
|
|
1243
|
+
resize: "both" | "none" | "horizontal" | "vertical";
|
|
1226
1244
|
mandatory: boolean;
|
|
1227
1245
|
testId: string;
|
|
1228
1246
|
modelValue: string;
|
|
@@ -1243,6 +1261,14 @@ declare const _default: {
|
|
|
1243
1261
|
type: import("vue").PropType<boolean>;
|
|
1244
1262
|
default: boolean;
|
|
1245
1263
|
};
|
|
1264
|
+
height: {
|
|
1265
|
+
type: import("vue").PropType<string>;
|
|
1266
|
+
default: any;
|
|
1267
|
+
};
|
|
1268
|
+
resize: {
|
|
1269
|
+
type: import("vue").PropType<"both" | "none" | "horizontal" | "vertical">;
|
|
1270
|
+
default: string;
|
|
1271
|
+
};
|
|
1246
1272
|
mandatory: {
|
|
1247
1273
|
type: import("vue").PropType<boolean>;
|
|
1248
1274
|
default: boolean;
|
|
@@ -1294,6 +1320,14 @@ declare const _default: {
|
|
|
1294
1320
|
type: import("vue").PropType<boolean>;
|
|
1295
1321
|
default: boolean;
|
|
1296
1322
|
};
|
|
1323
|
+
height: {
|
|
1324
|
+
type: import("vue").PropType<string>;
|
|
1325
|
+
default: any;
|
|
1326
|
+
};
|
|
1327
|
+
resize: {
|
|
1328
|
+
type: import("vue").PropType<"both" | "none" | "horizontal" | "vertical">;
|
|
1329
|
+
default: string;
|
|
1330
|
+
};
|
|
1297
1331
|
mandatory: {
|
|
1298
1332
|
type: import("vue").PropType<boolean>;
|
|
1299
1333
|
default: boolean;
|
|
@@ -1339,6 +1373,8 @@ declare const _default: {
|
|
|
1339
1373
|
}, {
|
|
1340
1374
|
label: string;
|
|
1341
1375
|
disabled: boolean;
|
|
1376
|
+
height: string;
|
|
1377
|
+
resize: "both" | "none" | "horizontal" | "vertical";
|
|
1342
1378
|
mandatory: boolean;
|
|
1343
1379
|
testId: string;
|
|
1344
1380
|
modelValue: string;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.form-row[data-v-39f48410]{display:flex;height:auto;gap:1.5rem;align-items:baseline}.form-row .label-container[data-v-39f48410]{display:flex;align-items:center;min-height:1.75rem;height:100%;width:12.875rem;gap:.25rem;flex-shrink:0}.form-row .label-container .mandatory[data-v-39f48410]{color:var(--error-main);padding-top:.1875rem}.form-row .content[data-v-39f48410]{display:flex;flex-direction:column;align-items:stretch;gap:.25rem;width:100%}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";.font-tab-label2[data-v-6e91a617],.font-chart-2[data-v-6e91a617],.font-chart-1[data-v-6e91a617]{font-family:Inter,sans-serif;font-weight:700}.font-chip-label[data-v-6e91a617],.font-table-label[data-v-6e91a617],.font-button[data-v-6e91a617],.font-heading-6[data-v-6e91a617],.font-heading-5[data-v-6e91a617],.font-heading-4[data-v-6e91a617],.font-heading-3[data-v-6e91a617],.font-heading-2[data-v-6e91a617],.font-heading-1[data-v-6e91a617],.font-title[data-v-6e91a617]{font-family:Inter,sans-serif;font-weight:600}.font-tab-label1[data-v-6e91a617],.font-input-label[data-v-6e91a617],.font-overline[data-v-6e91a617],.font-subtitle-2[data-v-6e91a617],.font-subtitle-1[data-v-6e91a617]{font-family:Inter,sans-serif;font-weight:500}.font-caption[data-v-6e91a617],.font-body-2[data-v-6e91a617],.textarea[data-v-6e91a617],.font-body-1[data-v-6e91a617]{font-family:Inter,sans-serif;font-weight:400}.font-title[data-v-6e91a617]{font-size:2.5rem;line-height:3rem;letter-spacing:-.055rem}.font-heading-1[data-v-6e91a617]{font-size:1.5rem;line-height:1.75rem;letter-spacing:-.0285rem}.font-heading-2[data-v-6e91a617]{font-size:1.125rem;line-height:1.75rem;letter-spacing:-.01575rem}.font-heading-3[data-v-6e91a617]{font-size:1rem;line-height:1.5rem;letter-spacing:-.011rem}.font-heading-4[data-v-6e91a617]{font-size:.875rem;line-height:1rem;letter-spacing:unset}.font-heading-5[data-v-6e91a617]{font-size:.8125rem;line-height:16px;letter-spacing:unset}.font-heading-6[data-v-6e91a617]{font-size:.75rem;line-height:.75rem;letter-spacing:0}.textarea[data-v-6e91a617],.font-body-1[data-v-6e91a617]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-body-2[data-v-6e91a617]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-subtitle-1[data-v-6e91a617]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-subtitle-2[data-v-6e91a617]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-chart-1[data-v-6e91a617]{font-size:1.5rem;line-height:1.5rem;letter-spacing:-.015rem}.font-chart-2[data-v-6e91a617]{font-size:1.25rem;line-height:1.25rem;letter-spacing:-.0125rem}.font-button[data-v-6e91a617]{font-size:.875rem;line-height:1.25rem;letter-spacing:.00875rem}.font-overline[data-v-6e91a617]{font-size:.75rem;line-height:1rem;letter-spacing:.045rem;text-transform:uppercase}.font-caption[data-v-6e91a617]{font-size:.75rem;line-height:1rem}.font-table-label[data-v-6e91a617]{font-size:.8125rem;line-height:1.25rem;letter-spacing:.00813rem}.font-input-label[data-v-6e91a617]{font-size:.8125rem;line-height:1rem;letter-spacing:.00813rem}.font-tab-label1[data-v-6e91a617],.font-tab-label2[data-v-6e91a617]{font-size:.875rem;line-height:1rem}.font-chip-label[data-v-6e91a617]{font-size:.75rem;line-height:1rem}h1[data-v-6e91a617],h2[data-v-6e91a617],h3[data-v-6e91a617],h4[data-v-6e91a617],h5[data-v-6e91a617],h6[data-v-6e91a617]{margin:0}.textarea-field[data-v-6e91a617]{display:flex;flex-direction:column}.textarea[data-v-6e91a617]{background:var(--default-main);color:var(--text-primary);padding:var(--spacing-125) var(--spacing-100);height:calc(var(--spacing-900) - 1px);width:100%;border:none;border-radius:var(--border-radius-md);outline:1px solid var(--action-outlined-border)}.textarea[data-v-6e91a617]:hover{outline:1px solid var(--action-active)}.textarea[data-v-6e91a617]:focus{outline:2px solid var(--primary-main)}.textarea[data-v-6e91a617]::placeholder{color:var(--text-secondary)}.textarea--disabled[data-v-6e91a617]{color:var(--text-disabled)}.textarea--disabled[data-v-6e91a617]::placeholder{color:var(--text-disabled)}.textarea--disabled[data-v-6e91a617]:hover{outline:1px solid var(--action-outlined-border)}.textarea--variant-success[data-v-6e91a617],.textarea--variant-success[data-v-6e91a617]:hover,.textarea--variant-success[data-v-6e91a617]:focus{outline:2px solid var(--success-dark)}.textarea--variant-error[data-v-6e91a617],.textarea--variant-error[data-v-6e91a617]:hover,.textarea--variant-error[data-v-6e91a617]:focus{outline:2px solid var(--error-main)}.textarea--variant-warning[data-v-6e91a617],.textarea--variant-warning[data-v-6e91a617]:hover,.textarea--variant-warning[data-v-6e91a617]:focus{outline:2px solid var(--warning-dark)}.footer[data-v-6e91a617]{display:flex;justify-content:flex-end;align-items:center;margin:var(--spacing-50) 0}
|