@ironsource/shared-ui 2.2.0-rc.22 → 2.2.0-rc.24
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/TagsFieldChip.vue_vue_type_style_index_0_scoped_cbb21c6a_lang.css +1 -0
- package/components/tagsField/TagsFieldChip.vue.js +3 -3
- package/components/tagsField/TagsFieldChip.vue2.js +34 -32
- package/index.js +1 -1
- package/package.json +1 -1
- package/TagsFieldChip.vue_vue_type_style_index_0_scoped_bdbc1b68_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";.font-tab-label2[data-v-cbb21c6a],.font-chart-2[data-v-cbb21c6a],.font-chart-1[data-v-cbb21c6a]{font-family:Inter,sans-serif;font-weight:700}.chip-input-sizer[data-v-cbb21c6a],.chip-input[data-v-cbb21c6a],.font-chip-label[data-v-cbb21c6a],.font-table-label[data-v-cbb21c6a],.font-button[data-v-cbb21c6a],.font-heading-6[data-v-cbb21c6a],.font-heading-5[data-v-cbb21c6a],.font-heading-4[data-v-cbb21c6a],.font-heading-3[data-v-cbb21c6a],.font-heading-2[data-v-cbb21c6a],.font-heading-1[data-v-cbb21c6a],.font-title[data-v-cbb21c6a]{font-family:Inter,sans-serif;font-weight:600}.font-tab-label1[data-v-cbb21c6a],.font-input-label[data-v-cbb21c6a],.font-overline[data-v-cbb21c6a],.font-subtitle-2[data-v-cbb21c6a],.font-subtitle-1[data-v-cbb21c6a]{font-family:Inter,sans-serif;font-weight:500}.font-caption[data-v-cbb21c6a],.font-body-2[data-v-cbb21c6a],.font-body-1[data-v-cbb21c6a]{font-family:Inter,sans-serif;font-weight:400}.font-title[data-v-cbb21c6a]{font-size:2.5rem;line-height:3rem;letter-spacing:-.055rem}.font-heading-1[data-v-cbb21c6a]{font-size:1.5rem;line-height:1.75rem;letter-spacing:-.0285rem}.font-heading-2[data-v-cbb21c6a]{font-size:1.125rem;line-height:1.75rem;letter-spacing:-.01575rem}.font-heading-3[data-v-cbb21c6a]{font-size:1rem;line-height:1.5rem;letter-spacing:-.011rem}.font-heading-4[data-v-cbb21c6a]{font-size:.875rem;line-height:1rem;letter-spacing:unset}.font-heading-5[data-v-cbb21c6a]{font-size:.8125rem;line-height:16px;letter-spacing:unset}.font-heading-6[data-v-cbb21c6a]{font-size:.75rem;line-height:.75rem;letter-spacing:0}.font-body-1[data-v-cbb21c6a]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-body-2[data-v-cbb21c6a]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-subtitle-1[data-v-cbb21c6a]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-subtitle-2[data-v-cbb21c6a]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-chart-1[data-v-cbb21c6a]{font-size:1.5rem;line-height:1.5rem;letter-spacing:-.015rem}.font-chart-2[data-v-cbb21c6a]{font-size:1.25rem;line-height:1.25rem;letter-spacing:-.0125rem}.font-button[data-v-cbb21c6a]{font-size:.875rem;line-height:1.25rem;letter-spacing:.00875rem}.font-overline[data-v-cbb21c6a]{font-size:.75rem;line-height:1rem;letter-spacing:.045rem;text-transform:uppercase}.font-caption[data-v-cbb21c6a]{font-size:.75rem;line-height:1rem}.font-table-label[data-v-cbb21c6a]{font-size:.8125rem;line-height:1.25rem;letter-spacing:.00813rem}.font-input-label[data-v-cbb21c6a]{font-size:.8125rem;line-height:1rem;letter-spacing:.00813rem}.font-tab-label1[data-v-cbb21c6a],.font-tab-label2[data-v-cbb21c6a]{font-size:.875rem;line-height:1rem}.chip-input-sizer[data-v-cbb21c6a],.chip-input[data-v-cbb21c6a],.font-chip-label[data-v-cbb21c6a]{font-size:.75rem;line-height:1rem}h1[data-v-cbb21c6a],h2[data-v-cbb21c6a],h3[data-v-cbb21c6a],h4[data-v-cbb21c6a],h5[data-v-cbb21c6a],h6[data-v-cbb21c6a]{margin:0}.rounded-chip[data-v-cbb21c6a]{border-radius:100px}.tags-field-chip--editing[data-v-cbb21c6a]{outline:1px solid var(--outline-color)}.chip-content[data-v-cbb21c6a]{display:flex;align-items:center;position:relative;min-width:.625rem;max-width:31.25rem}.chip-label[data-v-cbb21c6a]{min-width:.5rem}.chip-label--hidden[data-v-cbb21c6a]{visibility:hidden}.chip-input[data-v-cbb21c6a]{position:static;width:auto;background:transparent;min-width:.6rem;padding:0;border:none;max-width:100%;overflow-x:auto;white-space:nowrap}.chip-input[data-v-cbb21c6a]:focus{outline:none}.chip-input-outline[data-v-cbb21c6a]::placeholder{color:var(--action-disabled)}.clear-button[data-v-cbb21c6a]{margin-left:.25rem;color:var(--action-active);cursor:pointer}.clear-button[data-v-cbb21c6a]:hover{color:var(--text-primary)}.clear-button--invalid[data-v-cbb21c6a]{color:var(--error-dark)}.clear-button--invalid[data-v-cbb21c6a]:hover{color:var(--error-darker)}.chip-input-sizer[data-v-cbb21c6a]{position:absolute;visibility:hidden;height:0;white-space:pre;pointer-events:none;padding:0}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TagsFieldChip.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../TagsFieldChip.
|
|
4
|
-
const
|
|
3
|
+
// import "../../TagsFieldChip.vue_vue_type_style_index_0_scoped_cbb21c6a_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-cbb21c6a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../../TagsFieldChip.
|
|
1
|
+
import "../../TagsFieldChip.vue_vue_type_style_index_0_scoped_cbb21c6a_lang.css"; import { defineComponent as V, ref as d, computed as b, watch as N, nextTick as k, openBlock as u, createBlock as g, unref as t, normalizeClass as s, normalizeStyle as w, withModifiers as n, withCtx as C, createElementVNode as S, createTextVNode as K, toDisplayString as z, withDirectives as x, createElementBlock as I, isRef as D, withKeys as B, vModelText as F, createCommentVNode as O, createVNode as W, vShow as L } from "vue";
|
|
2
2
|
import U from "../typography/v4/Typography.vue.js";
|
|
3
3
|
import $ from "../icon/v4/IconV4.vue.js";
|
|
4
4
|
import "../icon/v4/IconFlag.vue.js";
|
|
5
5
|
import j from "../chip/v4/ChipV4.vue.js";
|
|
6
|
-
const q = { class: "chip-content" }, A = ["placeholder", "onKeyup"], X = /* @__PURE__ */
|
|
6
|
+
const q = { class: "chip-content" }, A = ["placeholder", "onKeyup"], X = /* @__PURE__ */ V({
|
|
7
7
|
__name: "TagsFieldChip",
|
|
8
8
|
props: {
|
|
9
9
|
label: { default: "" },
|
|
@@ -19,19 +19,19 @@ const q = { class: "chip-content" }, A = ["placeholder", "onKeyup"], X = /* @__P
|
|
|
19
19
|
placeholder: { default: "" }
|
|
20
20
|
},
|
|
21
21
|
emits: ["update:label", "remove", "stopEditing"],
|
|
22
|
-
setup(e, { emit:
|
|
23
|
-
const i = e, a =
|
|
22
|
+
setup(e, { emit: r }) {
|
|
23
|
+
const i = e, a = d(!1), l = b({
|
|
24
24
|
get: () => i.label,
|
|
25
25
|
set: (h) => {
|
|
26
|
-
|
|
26
|
+
r("update:label", h);
|
|
27
27
|
}
|
|
28
|
-
}),
|
|
28
|
+
}), p = d(null), E = () => p.value?.focus(), M = async () => {
|
|
29
29
|
i.disabled || (a.value = !0, await k(), E());
|
|
30
|
-
},
|
|
31
|
-
|
|
30
|
+
}, R = () => {
|
|
31
|
+
r("stopEditing"), c();
|
|
32
32
|
}, c = () => {
|
|
33
|
-
a.value = !1, !l.value && !i.placeholder &&
|
|
34
|
-
}, v =
|
|
33
|
+
a.value = !1, !l.value && !i.placeholder && r("remove");
|
|
34
|
+
}, v = d(null), f = d(void 0);
|
|
35
35
|
N(
|
|
36
36
|
() => [l.value, i.placeholder, a.value],
|
|
37
37
|
async () => {
|
|
@@ -39,7 +39,7 @@ const q = { class: "chip-content" }, A = ["placeholder", "onKeyup"], X = /* @__P
|
|
|
39
39
|
},
|
|
40
40
|
{ immediate: !0 }
|
|
41
41
|
);
|
|
42
|
-
const
|
|
42
|
+
const m = {
|
|
43
43
|
default: "var(--default-outlined-border)",
|
|
44
44
|
primary: "var(--primary-main)",
|
|
45
45
|
info: "var(--info-dark)",
|
|
@@ -47,11 +47,11 @@ const q = { class: "chip-content" }, A = ["placeholder", "onKeyup"], X = /* @__P
|
|
|
47
47
|
warning: "var(--warning-main)",
|
|
48
48
|
success: "var(--success-main)",
|
|
49
49
|
dark: "var(--common-divider)"
|
|
50
|
-
},
|
|
51
|
-
"--outline-color": i.isInvalid ?
|
|
50
|
+
}, T = b(() => a.value && i.variant !== "outlined" ? {
|
|
51
|
+
"--outline-color": i.isInvalid ? m.error : m[i.color] || "var(--default-outlined-border)"
|
|
52
52
|
} : {});
|
|
53
|
-
return (h,
|
|
54
|
-
class:
|
|
53
|
+
return (h, o) => (u(), g(t(j), {
|
|
54
|
+
class: s({
|
|
55
55
|
"rounded-chip": e.rounded,
|
|
56
56
|
"tags-field-chip--editing": a.value && e.variant !== "outlined"
|
|
57
57
|
// outlined chips have an outline
|
|
@@ -62,24 +62,24 @@ const q = { class: "chip-content" }, A = ["placeholder", "onKeyup"], X = /* @__P
|
|
|
62
62
|
size: e.size,
|
|
63
63
|
variant: e.variant,
|
|
64
64
|
disabled: e.disabled,
|
|
65
|
-
style:
|
|
66
|
-
onClick:
|
|
65
|
+
style: w(t(T)),
|
|
66
|
+
onClick: n(M, ["stop"])
|
|
67
67
|
}, {
|
|
68
|
-
default:
|
|
68
|
+
default: C(() => [
|
|
69
69
|
S("div", q, [
|
|
70
|
-
a.value ? x((
|
|
70
|
+
a.value ? x((u(), I("input", {
|
|
71
71
|
key: 1,
|
|
72
72
|
ref_key: "inputRef",
|
|
73
|
-
ref:
|
|
74
|
-
"onUpdate:modelValue":
|
|
73
|
+
ref: p,
|
|
74
|
+
"onUpdate:modelValue": o[0] || (o[0] = (y) => D(l) ? l.value = y : null),
|
|
75
75
|
placeholder: e.placeholder,
|
|
76
|
-
class:
|
|
76
|
+
class: s(["chip-input", { "chip-input-outline": e.variant === "outlined" }]),
|
|
77
77
|
spellcheck: "false",
|
|
78
|
-
style:
|
|
79
|
-
onBlur:
|
|
78
|
+
style: w({ width: f.value }),
|
|
79
|
+
onBlur: R,
|
|
80
80
|
onKeyup: [
|
|
81
|
-
B(
|
|
82
|
-
B(
|
|
81
|
+
B(n(c, ["prevent"]), ["enter"]),
|
|
82
|
+
B(n(c, ["prevent"]), ["esc"])
|
|
83
83
|
]
|
|
84
84
|
}, null, 46, A)), [
|
|
85
85
|
[
|
|
@@ -88,17 +88,17 @@ const q = { class: "chip-content" }, A = ["placeholder", "onKeyup"], X = /* @__P
|
|
|
88
88
|
void 0,
|
|
89
89
|
{ trim: !0 }
|
|
90
90
|
]
|
|
91
|
-
]) : (
|
|
91
|
+
]) : (u(), g(t(U), {
|
|
92
92
|
key: 0,
|
|
93
93
|
variant: "chipLabel",
|
|
94
|
-
class:
|
|
94
|
+
class: s(["chip-label", { "chip-label--placeholder": !t(l) && e.placeholder }])
|
|
95
95
|
}, {
|
|
96
|
-
default:
|
|
96
|
+
default: C(() => [
|
|
97
97
|
K(z(t(l) || e.placeholder), 1)
|
|
98
98
|
]),
|
|
99
99
|
_: 1
|
|
100
100
|
}, 8, ["class"])),
|
|
101
|
-
a.value ? (
|
|
101
|
+
a.value ? (u(), I("span", {
|
|
102
102
|
key: 2,
|
|
103
103
|
ref_key: "sizerRef",
|
|
104
104
|
ref: v,
|
|
@@ -106,12 +106,14 @@ const q = { class: "chip-content" }, A = ["placeholder", "onKeyup"], X = /* @__P
|
|
|
106
106
|
}, z(t(l) || e.placeholder || ""), 513)) : O("", !0)
|
|
107
107
|
]),
|
|
108
108
|
x(W(t($), {
|
|
109
|
-
class:
|
|
109
|
+
class: s(["clear-button", { "clear-button--invalid": e.isInvalid }]),
|
|
110
110
|
name: "x-circle",
|
|
111
111
|
size: "16px",
|
|
112
112
|
type: "fill",
|
|
113
113
|
color: e.isInvalid ? "var(--error-dark)" : e.iconColor,
|
|
114
|
-
|
|
114
|
+
onMousedown: o[1] || (o[1] = n(() => {
|
|
115
|
+
}, ["prevent"])),
|
|
116
|
+
onClick: o[2] || (o[2] = n((y) => r("remove"), ["stop"]))
|
|
115
117
|
}, null, 8, ["class", "color"]), [
|
|
116
118
|
[L, e.removable]
|
|
117
119
|
])
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_a91fcaa5_lang.css';
|
|
2
2
|
import { AppTriggerTypes as eo } from "./components/appTrigger/index.js";
|
|
3
3
|
import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
|
|
4
4
|
import { MenuItemTypes as ao } from "./components/menuItem/index.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";.font-tab-label2[data-v-bdbc1b68],.font-chart-2[data-v-bdbc1b68],.font-chart-1[data-v-bdbc1b68]{font-family:Inter,sans-serif;font-weight:700}.chip-input-sizer[data-v-bdbc1b68],.chip-input[data-v-bdbc1b68],.font-chip-label[data-v-bdbc1b68],.font-table-label[data-v-bdbc1b68],.font-button[data-v-bdbc1b68],.font-heading-6[data-v-bdbc1b68],.font-heading-5[data-v-bdbc1b68],.font-heading-4[data-v-bdbc1b68],.font-heading-3[data-v-bdbc1b68],.font-heading-2[data-v-bdbc1b68],.font-heading-1[data-v-bdbc1b68],.font-title[data-v-bdbc1b68]{font-family:Inter,sans-serif;font-weight:600}.font-tab-label1[data-v-bdbc1b68],.font-input-label[data-v-bdbc1b68],.font-overline[data-v-bdbc1b68],.font-subtitle-2[data-v-bdbc1b68],.font-subtitle-1[data-v-bdbc1b68]{font-family:Inter,sans-serif;font-weight:500}.font-caption[data-v-bdbc1b68],.font-body-2[data-v-bdbc1b68],.font-body-1[data-v-bdbc1b68]{font-family:Inter,sans-serif;font-weight:400}.font-title[data-v-bdbc1b68]{font-size:2.5rem;line-height:3rem;letter-spacing:-.055rem}.font-heading-1[data-v-bdbc1b68]{font-size:1.5rem;line-height:1.75rem;letter-spacing:-.0285rem}.font-heading-2[data-v-bdbc1b68]{font-size:1.125rem;line-height:1.75rem;letter-spacing:-.01575rem}.font-heading-3[data-v-bdbc1b68]{font-size:1rem;line-height:1.5rem;letter-spacing:-.011rem}.font-heading-4[data-v-bdbc1b68]{font-size:.875rem;line-height:1rem;letter-spacing:unset}.font-heading-5[data-v-bdbc1b68]{font-size:.8125rem;line-height:16px;letter-spacing:unset}.font-heading-6[data-v-bdbc1b68]{font-size:.75rem;line-height:.75rem;letter-spacing:0}.font-body-1[data-v-bdbc1b68]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-body-2[data-v-bdbc1b68]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-subtitle-1[data-v-bdbc1b68]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-subtitle-2[data-v-bdbc1b68]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-chart-1[data-v-bdbc1b68]{font-size:1.5rem;line-height:1.5rem;letter-spacing:-.015rem}.font-chart-2[data-v-bdbc1b68]{font-size:1.25rem;line-height:1.25rem;letter-spacing:-.0125rem}.font-button[data-v-bdbc1b68]{font-size:.875rem;line-height:1.25rem;letter-spacing:.00875rem}.font-overline[data-v-bdbc1b68]{font-size:.75rem;line-height:1rem;letter-spacing:.045rem;text-transform:uppercase}.font-caption[data-v-bdbc1b68]{font-size:.75rem;line-height:1rem}.font-table-label[data-v-bdbc1b68]{font-size:.8125rem;line-height:1.25rem;letter-spacing:.00813rem}.font-input-label[data-v-bdbc1b68]{font-size:.8125rem;line-height:1rem;letter-spacing:.00813rem}.font-tab-label1[data-v-bdbc1b68],.font-tab-label2[data-v-bdbc1b68]{font-size:.875rem;line-height:1rem}.chip-input-sizer[data-v-bdbc1b68],.chip-input[data-v-bdbc1b68],.font-chip-label[data-v-bdbc1b68]{font-size:.75rem;line-height:1rem}h1[data-v-bdbc1b68],h2[data-v-bdbc1b68],h3[data-v-bdbc1b68],h4[data-v-bdbc1b68],h5[data-v-bdbc1b68],h6[data-v-bdbc1b68]{margin:0}.rounded-chip[data-v-bdbc1b68]{border-radius:100px}.tags-field-chip--editing[data-v-bdbc1b68]{outline:1px solid var(--outline-color)}.chip-content[data-v-bdbc1b68]{display:flex;align-items:center;position:relative;min-width:.625rem;max-width:31.25rem}.chip-label[data-v-bdbc1b68]{min-width:.5rem}.chip-label--hidden[data-v-bdbc1b68]{visibility:hidden}.chip-input[data-v-bdbc1b68]{position:static;width:auto;background:transparent;min-width:.6rem;padding:0;border:none;max-width:100%;overflow-x:auto;white-space:nowrap}.chip-input[data-v-bdbc1b68]:focus{outline:none}.chip-input-outline[data-v-bdbc1b68]::placeholder{color:var(--action-disabled)}.clear-button[data-v-bdbc1b68]{margin-left:.25rem;color:var(--action-active);cursor:pointer}.clear-button[data-v-bdbc1b68]:hover{color:var(--text-primary)}.clear-button--invalid[data-v-bdbc1b68]{color:var(--error-dark)}.clear-button--invalid[data-v-bdbc1b68]:hover{color:var(--error-darker)}.chip-input-sizer[data-v-bdbc1b68]{position:absolute;visibility:hidden;height:0;white-space:pre;pointer-events:none;padding:0}
|