@ironsource/shared-ui 2.1.2 → 2.1.3-rc.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/AppHeader.vue_vue_type_style_index_0_scoped_209ecc03_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_f0c4710f_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_78c1497e_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_2f0a0202_lang.css +1 -0
- package/README.md +1 -1
- package/components/appHeader/AppHeader.vue.js +2 -2
- package/components/appHeader/AppHeader.vue2.js +16 -15
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +5 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +15 -13
- package/components/dropdown/v4/DropdownV4.vue.d.ts +5 -0
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +60 -58
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
- package/components/dropdown/v4/index.d.ts +40 -2
- package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +22 -21
- package/components/inlineCopy/index.d.ts +9 -0
- package/index.d.ts +98 -4
- package/package.json +6 -2
- package/AppHeader.vue_vue_type_style_index_0_scoped_aa538d40_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_5fa01c78_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_258b9f7e_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_117ac157_lang.css +0 -1
|
@@ -561,6 +561,7 @@ declare const DropdownTypes: () => (({
|
|
|
561
561
|
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";
|
|
562
562
|
feedbackText: string;
|
|
563
563
|
feedbackVariant: "success" | "warning" | "error";
|
|
564
|
+
showFeedbackIcon: boolean;
|
|
564
565
|
statusDotType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
565
566
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
566
567
|
label: {
|
|
@@ -653,13 +654,17 @@ declare const DropdownTypes: () => (({
|
|
|
653
654
|
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
654
655
|
default: any;
|
|
655
656
|
};
|
|
657
|
+
showFeedbackIcon: {
|
|
658
|
+
type: import("vue").PropType<boolean>;
|
|
659
|
+
default: boolean;
|
|
660
|
+
};
|
|
656
661
|
statusDotType: {
|
|
657
662
|
type: import("vue").PropType<"default" | "disabled" | "success" | "warning" | "error" | "archive">;
|
|
658
663
|
default: any;
|
|
659
664
|
};
|
|
660
665
|
}>> & {
|
|
661
666
|
onClick?: () => any;
|
|
662
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "disabled" | "size" | "open" | "mandatory" | "loading" | "testId" | "options" | "singleAppSelection" | "placeholder" | "multi" | "selectedOption" | "brandIconType" | "optionNameKey" | "optionImageKey" | "optionIconKey" | "optionIconType" | "hoverHelpText" | "hoverHelpTextPlacement" | "feedbackText" | "feedbackVariant" | "statusDotType">;
|
|
667
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "disabled" | "size" | "open" | "mandatory" | "loading" | "testId" | "options" | "singleAppSelection" | "placeholder" | "multi" | "selectedOption" | "brandIconType" | "optionNameKey" | "optionImageKey" | "optionIconKey" | "optionIconType" | "hoverHelpText" | "hoverHelpTextPlacement" | "feedbackText" | "feedbackVariant" | "showFeedbackIcon" | "statusDotType">;
|
|
663
668
|
$attrs: {
|
|
664
669
|
[x: string]: unknown;
|
|
665
670
|
};
|
|
@@ -764,6 +769,10 @@ declare const DropdownTypes: () => (({
|
|
|
764
769
|
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
765
770
|
default: any;
|
|
766
771
|
};
|
|
772
|
+
showFeedbackIcon: {
|
|
773
|
+
type: import("vue").PropType<boolean>;
|
|
774
|
+
default: boolean;
|
|
775
|
+
};
|
|
767
776
|
statusDotType: {
|
|
768
777
|
type: import("vue").PropType<"default" | "disabled" | "success" | "warning" | "error" | "archive">;
|
|
769
778
|
default: any;
|
|
@@ -794,6 +803,7 @@ declare const DropdownTypes: () => (({
|
|
|
794
803
|
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";
|
|
795
804
|
feedbackText: string;
|
|
796
805
|
feedbackVariant: "success" | "warning" | "error";
|
|
806
|
+
showFeedbackIcon: boolean;
|
|
797
807
|
statusDotType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
798
808
|
}, {}, string> & {
|
|
799
809
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -906,6 +916,10 @@ declare const DropdownTypes: () => (({
|
|
|
906
916
|
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
907
917
|
default: any;
|
|
908
918
|
};
|
|
919
|
+
showFeedbackIcon: {
|
|
920
|
+
type: import("vue").PropType<boolean>;
|
|
921
|
+
default: boolean;
|
|
922
|
+
};
|
|
909
923
|
statusDotType: {
|
|
910
924
|
type: import("vue").PropType<"default" | "disabled" | "success" | "warning" | "error" | "archive">;
|
|
911
925
|
default: any;
|
|
@@ -1007,6 +1021,10 @@ declare const DropdownTypes: () => (({
|
|
|
1007
1021
|
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
1008
1022
|
default: any;
|
|
1009
1023
|
};
|
|
1024
|
+
showFeedbackIcon: {
|
|
1025
|
+
type: import("vue").PropType<boolean>;
|
|
1026
|
+
default: boolean;
|
|
1027
|
+
};
|
|
1010
1028
|
statusDotType: {
|
|
1011
1029
|
type: import("vue").PropType<"default" | "disabled" | "success" | "warning" | "error" | "archive">;
|
|
1012
1030
|
default: any;
|
|
@@ -1037,6 +1055,7 @@ declare const DropdownTypes: () => (({
|
|
|
1037
1055
|
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";
|
|
1038
1056
|
feedbackText: string;
|
|
1039
1057
|
feedbackVariant: "success" | "warning" | "error";
|
|
1058
|
+
showFeedbackIcon: boolean;
|
|
1040
1059
|
statusDotType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
1041
1060
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
1042
1061
|
$slots: {
|
|
@@ -1352,6 +1371,7 @@ declare const DropdownTypes: () => (({
|
|
|
1352
1371
|
triggerHelperText: string;
|
|
1353
1372
|
triggerFeedbackText: string;
|
|
1354
1373
|
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
1374
|
+
triggerFeedbackShowIcon: boolean;
|
|
1355
1375
|
searchAutoFocus: boolean;
|
|
1356
1376
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
1357
1377
|
fullWidth: boolean;
|
|
@@ -1515,6 +1535,10 @@ declare const DropdownTypes: () => (({
|
|
|
1515
1535
|
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
1516
1536
|
default: any;
|
|
1517
1537
|
};
|
|
1538
|
+
triggerFeedbackShowIcon: {
|
|
1539
|
+
type: import("vue").PropType<boolean>;
|
|
1540
|
+
default: boolean;
|
|
1541
|
+
};
|
|
1518
1542
|
searchAutoFocus: {
|
|
1519
1543
|
type: import("vue").PropType<boolean>;
|
|
1520
1544
|
default: boolean;
|
|
@@ -1541,7 +1565,7 @@ declare const DropdownTypes: () => (({
|
|
|
1541
1565
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
1542
1566
|
onOpened?: () => any;
|
|
1543
1567
|
onClosed?: () => any;
|
|
1544
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "disabled" | "size" | "flip" | "mandatory" | "testId" | "container" | "placement" | "distance" | "popperClass" | "selected" | "modelValue" | "placeholder" | "isOnTop" | "multi" | "inlineSearch" | "noResultsText" | "showSelectAll" | "defaultOpen" | "skidding" | "onSearch" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "valueToCopy" | "optionNameKey" | "optionImageKey" | "optionIconKey" | "optionIconType" | "onClear" | "inlineSearchPlaceholder" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "searchAutoFocus" | "predefinedTrigger" | "fullWidth" | "optionsListWidth" | "statusType">;
|
|
1568
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "disabled" | "size" | "flip" | "mandatory" | "testId" | "container" | "placement" | "distance" | "popperClass" | "selected" | "modelValue" | "placeholder" | "isOnTop" | "multi" | "inlineSearch" | "noResultsText" | "showSelectAll" | "defaultOpen" | "skidding" | "onSearch" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "valueToCopy" | "optionNameKey" | "optionImageKey" | "optionIconKey" | "optionIconType" | "onClear" | "inlineSearchPlaceholder" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "searchAutoFocus" | "predefinedTrigger" | "fullWidth" | "optionsListWidth" | "statusType">;
|
|
1545
1569
|
$attrs: {
|
|
1546
1570
|
[x: string]: unknown;
|
|
1547
1571
|
};
|
|
@@ -1713,6 +1737,10 @@ declare const DropdownTypes: () => (({
|
|
|
1713
1737
|
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
1714
1738
|
default: any;
|
|
1715
1739
|
};
|
|
1740
|
+
triggerFeedbackShowIcon: {
|
|
1741
|
+
type: import("vue").PropType<boolean>;
|
|
1742
|
+
default: boolean;
|
|
1743
|
+
};
|
|
1716
1744
|
searchAutoFocus: {
|
|
1717
1745
|
type: import("vue").PropType<boolean>;
|
|
1718
1746
|
default: boolean;
|
|
@@ -1784,6 +1812,7 @@ declare const DropdownTypes: () => (({
|
|
|
1784
1812
|
triggerHelperText: string;
|
|
1785
1813
|
triggerFeedbackText: string;
|
|
1786
1814
|
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
1815
|
+
triggerFeedbackShowIcon: boolean;
|
|
1787
1816
|
searchAutoFocus: boolean;
|
|
1788
1817
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
1789
1818
|
fullWidth: boolean;
|
|
@@ -1967,6 +1996,10 @@ declare const DropdownTypes: () => (({
|
|
|
1967
1996
|
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
1968
1997
|
default: any;
|
|
1969
1998
|
};
|
|
1999
|
+
triggerFeedbackShowIcon: {
|
|
2000
|
+
type: import("vue").PropType<boolean>;
|
|
2001
|
+
default: boolean;
|
|
2002
|
+
};
|
|
1970
2003
|
searchAutoFocus: {
|
|
1971
2004
|
type: import("vue").PropType<boolean>;
|
|
1972
2005
|
default: boolean;
|
|
@@ -2158,6 +2191,10 @@ declare const DropdownTypes: () => (({
|
|
|
2158
2191
|
type: import("vue").PropType<"success" | "warning" | "error">;
|
|
2159
2192
|
default: any;
|
|
2160
2193
|
};
|
|
2194
|
+
triggerFeedbackShowIcon: {
|
|
2195
|
+
type: import("vue").PropType<boolean>;
|
|
2196
|
+
default: boolean;
|
|
2197
|
+
};
|
|
2161
2198
|
searchAutoFocus: {
|
|
2162
2199
|
type: import("vue").PropType<boolean>;
|
|
2163
2200
|
default: boolean;
|
|
@@ -2229,6 +2266,7 @@ declare const DropdownTypes: () => (({
|
|
|
2229
2266
|
triggerHelperText: string;
|
|
2230
2267
|
triggerFeedbackText: string;
|
|
2231
2268
|
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
2269
|
+
triggerFeedbackShowIcon: boolean;
|
|
2232
2270
|
searchAutoFocus: boolean;
|
|
2233
2271
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
2234
2272
|
fullWidth: boolean;
|
|
@@ -3,26 +3,31 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
3
3
|
size: 'small' | 'medium';
|
|
4
4
|
testId: string;
|
|
5
5
|
hideTextValue: boolean;
|
|
6
|
+
iconSize?: string;
|
|
6
7
|
}>, {
|
|
7
8
|
size: string;
|
|
8
9
|
text: string;
|
|
9
10
|
testId: string;
|
|
10
11
|
hideTextValue: boolean;
|
|
12
|
+
iconSize: any;
|
|
11
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<{
|
|
12
14
|
text: string;
|
|
13
15
|
size: 'small' | 'medium';
|
|
14
16
|
testId: string;
|
|
15
17
|
hideTextValue: boolean;
|
|
18
|
+
iconSize?: string;
|
|
16
19
|
}>, {
|
|
17
20
|
size: string;
|
|
18
21
|
text: string;
|
|
19
22
|
testId: string;
|
|
20
23
|
hideTextValue: boolean;
|
|
24
|
+
iconSize: any;
|
|
21
25
|
}>>>, {
|
|
22
26
|
text: string;
|
|
23
27
|
size: 'small' | 'medium';
|
|
24
28
|
testId: string;
|
|
25
29
|
hideTextValue: boolean;
|
|
30
|
+
iconSize: string;
|
|
26
31
|
}>;
|
|
27
32
|
export default _default;
|
|
28
33
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./InlineCopy.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../InlineCopy.
|
|
4
|
-
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../InlineCopy.vue_vue_type_style_index_0_scoped_2f0a0202_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-2f0a0202"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import "../../InlineCopy.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useClipboard as
|
|
5
|
-
import { Snackbar as
|
|
6
|
-
import
|
|
7
|
-
import { useTestIdAttrs as
|
|
8
|
-
import { InlineCopyTestIdModifiers as
|
|
1
|
+
import "../../InlineCopy.vue_vue_type_style_index_0_scoped_2f0a0202_lang.css"; import { defineComponent as d, computed as f, openBlock as a, createElementBlock as y, createBlock as x, unref as e, mergeProps as c, withCtx as s, createTextVNode as C, toDisplayString as T, createCommentVNode as z, createVNode as l } from "vue";
|
|
2
|
+
import I from "../icon/v4/IconV4.vue.js";
|
|
3
|
+
import h from "../typography/v4/Typography.vue.js";
|
|
4
|
+
import { useClipboard as k } from "@vueuse/core";
|
|
5
|
+
import { Snackbar as S } from "../snackbar/v4/index.js";
|
|
6
|
+
import V from "../tooltip/v4/TooltipV4.vue.js";
|
|
7
|
+
import { useTestIdAttrs as B } from "../../utils/testIds.js";
|
|
8
|
+
import { InlineCopyTestIdModifiers as i } from "../../testids/index.js";
|
|
9
9
|
const M = /* @__PURE__ */ d({
|
|
10
10
|
__name: "InlineCopy",
|
|
11
11
|
props: {
|
|
12
12
|
text: { default: "" },
|
|
13
13
|
size: { default: "small" },
|
|
14
14
|
testId: { default: "" },
|
|
15
|
-
hideTextValue: { type: Boolean, default: !1 }
|
|
15
|
+
hideTextValue: { type: Boolean, default: !1 },
|
|
16
|
+
iconSize: { default: null }
|
|
16
17
|
},
|
|
17
18
|
setup(t) {
|
|
18
|
-
const o = t, { copy: n, copied: p } =
|
|
19
|
+
const o = t, { copy: n, copied: p } = k({}), m = f(() => {
|
|
19
20
|
switch (o.size) {
|
|
20
21
|
case "medium":
|
|
21
22
|
return "0.875rem";
|
|
@@ -24,33 +25,33 @@ const M = /* @__PURE__ */ d({
|
|
|
24
25
|
return "0.75rem";
|
|
25
26
|
}
|
|
26
27
|
}), u = async () => {
|
|
27
|
-
await n(o.text), p.value &&
|
|
28
|
+
await n(o.text), p.value && S({
|
|
28
29
|
title: "Copied successfully",
|
|
29
30
|
type: "success",
|
|
30
31
|
duration: 2e3
|
|
31
32
|
});
|
|
32
|
-
},
|
|
33
|
-
return (N,
|
|
33
|
+
}, r = B(o.testId, i);
|
|
34
|
+
return (N, b) => (a(), y("div", {
|
|
34
35
|
class: "inline-copy",
|
|
35
36
|
onClick: u
|
|
36
37
|
}, [
|
|
37
|
-
t.hideTextValue ?
|
|
38
|
+
t.hideTextValue ? z("", !0) : (a(), x(e(h), c({
|
|
38
39
|
key: 0,
|
|
39
40
|
variant: "caption",
|
|
40
41
|
style: { fontSize: e(m) }
|
|
41
|
-
}, e(
|
|
42
|
-
default:
|
|
42
|
+
}, e(r)[e(i).TEXT]), {
|
|
43
|
+
default: s(() => [
|
|
43
44
|
C(T(t.text), 1)
|
|
44
45
|
]),
|
|
45
46
|
_: 1
|
|
46
47
|
}, 16, ["style"])),
|
|
47
|
-
l(e(
|
|
48
|
-
default:
|
|
49
|
-
l(e(
|
|
48
|
+
l(e(V), { text: "Copy to clipboar" }, {
|
|
49
|
+
default: s(() => [
|
|
50
|
+
l(e(I), c({
|
|
50
51
|
class: "icon-copy",
|
|
51
52
|
name: "copy",
|
|
52
|
-
size: "16px"
|
|
53
|
-
}, e(
|
|
53
|
+
size: t.iconSize || "16px"
|
|
54
|
+
}, e(r)[e(i).COPY_BTN]), null, 16, ["size"])
|
|
54
55
|
]),
|
|
55
56
|
_: 1
|
|
56
57
|
})
|
|
@@ -20,6 +20,10 @@ declare const InlineCopyTypes: () => import("vue").DefineComponent<{
|
|
|
20
20
|
required: true;
|
|
21
21
|
default: boolean;
|
|
22
22
|
};
|
|
23
|
+
iconSize: {
|
|
24
|
+
type: import("vue").PropType<string>;
|
|
25
|
+
default: any;
|
|
26
|
+
};
|
|
23
27
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
28
|
text: {
|
|
25
29
|
type: import("vue").PropType<string>;
|
|
@@ -41,10 +45,15 @@ declare const InlineCopyTypes: () => import("vue").DefineComponent<{
|
|
|
41
45
|
required: true;
|
|
42
46
|
default: boolean;
|
|
43
47
|
};
|
|
48
|
+
iconSize: {
|
|
49
|
+
type: import("vue").PropType<string>;
|
|
50
|
+
default: any;
|
|
51
|
+
};
|
|
44
52
|
}>>, {
|
|
45
53
|
text: string;
|
|
46
54
|
size: "small" | "medium";
|
|
47
55
|
testId: string;
|
|
48
56
|
hideTextValue: boolean;
|
|
57
|
+
iconSize: string;
|
|
49
58
|
}>[];
|
|
50
59
|
export { InlineCopy, InlineCopyTypes };
|