@ironsource/shared-ui 1.4.2-test.14 → 1.4.2-test.15
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/DollarInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/FloatingToolbar.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/PasswordInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/PercentageInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Table.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/components/appIcon/AppIcon.vue.d.ts +1 -1
- package/components/appIcon/AppIcon.vue.js +3 -3
- package/components/appIcon/index.d.ts +1 -1
- package/components/appTrigger/AppTrigger.vue.d.ts +1 -1
- package/components/appTrigger/AppTrigger.vue.js +22 -25
- package/components/appTrigger/index.d.ts +1 -1
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.d.ts +1 -1
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.js +14 -16
- package/components/autocompleteDropdown/AutocompleteInput.vue.d.ts +1 -1
- package/components/autocompleteDropdown/AutocompleteInput.vue.js +7 -7
- package/components/autocompleteDropdown/GroupOption.vue.d.ts +1 -1
- package/components/autocompleteDropdown/GroupOption.vue.js +3 -4
- package/components/autocompleteDropdown/index.d.ts +1 -1
- package/components/banner/Banner.vue.d.ts +1 -1
- package/components/banner/Banner.vue.js +4 -4
- package/components/banner/index.d.ts +1 -1
- package/components/button/Button.vue.d.ts +1 -1
- package/components/button/Button.vue.js +12 -12
- package/components/button/ButtonBase.vue.d.ts +1 -1
- package/components/button/ButtonBase.vue.js +11 -12
- package/components/button/IconButton.vue.d.ts +1 -1
- package/components/button/IconButton.vue.js +5 -5
- package/components/button/ScrollButton.vue.d.ts +1 -1
- package/components/button/ScrollButton.vue.js +8 -9
- package/components/button/index.d.ts +3 -3
- package/components/checkbox/Checkbox.vue.d.ts +1 -1
- package/components/checkbox/Checkbox.vue.js +15 -16
- package/components/checkbox/index.d.ts +1 -1
- package/components/chip/Chip.vue.d.ts +1 -1
- package/components/chip/Chip.vue.js +5 -5
- package/components/chip/index.d.ts +1 -1
- package/components/datePicker/DatePicker.vue.d.ts +1 -1
- package/components/datePicker/DatePicker.vue.js +11 -11
- package/components/datePicker/DatePickerMonth.vue.d.ts +1 -1
- package/components/datePicker/DatePickerMonth.vue.js +4 -4
- package/components/datePicker/index.d.ts +1 -1
- package/components/dateRange/CalendarMonth.vue.d.ts +1 -1
- package/components/dateRange/CalendarMonth.vue.js +19 -20
- package/components/dateRange/DateRange.vue.d.ts +1 -1
- package/components/dateRange/DateRange.vue.js +26 -28
- package/components/dateRange/DateRangePicker.vue.d.ts +1 -1
- package/components/dateRange/index.d.ts +1 -1
- package/components/dialog/Dialog.vue.d.ts +1 -1
- package/components/dialog/Dialog.vue.js +16 -16
- package/components/dialog/index.d.ts +1 -1
- package/components/dropdown/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/Dropdown.vue.js +57 -60
- package/components/dropdown/Label.vue.d.ts +1 -1
- package/components/dropdown/Label.vue.js +3 -4
- package/components/dropdown/Option.vue.d.ts +1 -1
- package/components/dropdown/Option.vue.js +16 -17
- package/components/dropdown/SearchInput.vue.d.ts +1 -1
- package/components/dropdown/SearchInput.vue.js +6 -6
- package/components/dropdown/index.d.ts +398 -1
- package/components/emptyState/EmptyState.vue.d.ts +1 -1
- package/components/emptyState/EmptyState.vue.js +19 -21
- package/components/emptyState/index.d.ts +1 -1
- package/components/filterDropdown/AddFilterButton.vue.d.ts +1 -1
- package/components/filterDropdown/AddFilterButton.vue.js +7 -7
- package/components/filterDropdown/FilterDropdown.vue.d.ts +1 -1
- package/components/filterDropdown/FilterDropdown.vue.js +15 -17
- package/components/filterDropdown/index.d.ts +2 -2
- package/components/filtersPanel/FilterSearchInput.vue.d.ts +1 -1
- package/components/filtersPanel/FilterSearchInput.vue.js +7 -7
- package/components/filtersPanel/FiltersPanel.vue.d.ts +1 -1
- package/components/filtersPanel/FiltersPanel.vue.js +8 -8
- package/components/filtersPanel/index.d.ts +1 -1
- package/components/floatingToolbar/FloatingToolbar.vue.d.ts +1 -1
- package/components/floatingToolbar/FloatingToolbar.vue.js +3 -3
- package/components/floatingToolbar/index.d.ts +1 -1
- package/components/icon/Icon.vue.d.ts +1 -1
- package/components/icon/Icon.vue.js +4 -4
- package/components/icon/index.d.ts +1 -1
- package/components/icon/storyComponents/Code.vue.d.ts +1 -1
- package/components/icon/storyComponents/IconWrapper.vue.d.ts +1 -1
- package/components/icon/storyComponents/Page.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExclude.vue.js +50 -52
- package/components/includeExclude/IncludeExcludeAppHeader.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeAppHeader.vue.js +25 -26
- package/components/includeExclude/IncludeExcludeAppTrigger.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeAppTrigger.vue.js +19 -22
- package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeChipFilter.vue.js +40 -42
- package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOption.vue.js +21 -22
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.js +17 -18
- package/components/includeExclude/index.d.ts +5 -5
- package/components/input/DollarInput.vue.d.ts +2 -2
- package/components/input/DollarInput.vue.js +3 -4
- package/components/input/Input.vue.d.ts +1 -1
- package/components/input/Input.vue.js +30 -33
- package/components/input/PasswordInput.vue.d.ts +2 -2
- package/components/input/PasswordInput.vue.js +3 -4
- package/components/input/PercentageInput.vue.d.ts +2 -2
- package/components/input/PercentageInput.vue.js +3 -4
- package/components/input/index.d.ts +2 -2
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/menu/Menu.vue.js +4 -4
- package/components/menu/index.d.ts +1 -1
- package/components/menuItem/MenuItem.vue.d.ts +1 -1
- package/components/menuItem/MenuItem.vue.js +3 -4
- package/components/menuItem/index.d.ts +1 -1
- package/components/popover/Popover.vue.d.ts +1 -1
- package/components/popover/Popover.vue.js +7 -7
- package/components/popover/index.d.ts +1 -1
- package/components/radioButton/RadioButton.vue.d.ts +1 -1
- package/components/radioButton/RadioButton.vue.js +9 -9
- package/components/radioButton/RadioGroup.vue.d.ts +1 -1
- package/components/radioButton/RadioGroup.vue.js +3 -3
- package/components/radioButton/index.d.ts +2 -2
- package/components/radioButton/useRadio.d.ts +1 -1
- package/components/search/Search.vue.d.ts +1 -1
- package/components/search/Search.vue.js +15 -15
- package/components/search/index.d.ts +1 -1
- package/components/skeleton/Skeleton.vue.d.ts +1 -1
- package/components/skeleton/Skeleton.vue.js +2 -2
- package/components/skeleton/index.d.ts +1 -1
- package/components/snackbar/Snackbar.vue.d.ts +1 -1
- package/components/snackbar/Snackbar.vue.js +26 -26
- package/components/switch/Switch.vue.d.ts +1 -1
- package/components/switch/Switch.vue.js +9 -9
- package/components/switch/index.d.ts +1 -1
- package/components/table/Pagination.vue.d.ts +1 -1
- package/components/table/Table.vue.d.ts +1 -1
- package/components/table/Table.vue.js +37 -42
- package/components/table/TableHeaderSorter.vue.d.ts +1 -1
- package/components/table/TableHeaderSorter.vue.js +4 -4
- package/components/table/index.d.ts +1 -1
- package/components/table-cells/Editable.vue.d.ts +1 -1
- package/components/table-cells/Editable.vue.js +4 -4
- package/components/table-cells/index.d.ts +1 -1
- package/components/tabs/Tabs.vue.d.ts +1 -1
- package/components/tabs/Tabs.vue.js +15 -16
- package/components/tabs/index.d.ts +1 -1
- package/components/textArea/TextArea.vue.d.ts +1 -1
- package/components/textArea/TextArea.vue.js +12 -13
- package/components/textArea/index.d.ts +1 -1
- package/components/toggle/Toggle.vue.d.ts +1 -1
- package/components/toggle/Toggle.vue.js +16 -17
- package/components/toggle/index.d.ts +1 -1
- package/components/tooltip/TextWithTitleContent.vue.d.ts +1 -1
- package/components/tooltip/TextWithTitleContent.vue.js +7 -8
- package/components/tooltip/Tooltip.vue.d.ts +1 -1
- package/components/tooltip/Tooltip.vue.js +10 -11
- package/components/tooltip/index.d.ts +1 -1
- package/components/tooltip/storybookComponents/CustomTooltip.vue.d.ts +1 -1
- package/components/typography/Heading.vue.d.ts +1 -1
- package/components/typography/Heading.vue.js +4 -4
- package/components/typography/Text.vue.d.ts +1 -1
- package/components/typography/Text.vue.js +3 -3
- package/components/typography/index.d.ts +2 -2
- package/index.vue.js +3 -3
- package/package.json +3 -3
|
@@ -177,7 +177,7 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("./TableConte
|
|
|
177
177
|
rowHeight: number | ((index: number) => number);
|
|
178
178
|
loadingRowCount: number;
|
|
179
179
|
defaultScrollPosition: number;
|
|
180
|
-
}
|
|
180
|
+
}>)[];
|
|
181
181
|
export { default as Table } from './Table.vue';
|
|
182
182
|
export { TableContext } from './TableContext';
|
|
183
183
|
export type { Column, Sort } from './Table.types';
|
|
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
27
27
|
isLoading: boolean;
|
|
28
28
|
isEditing: boolean;
|
|
29
29
|
validateFunction: (value: unknown) => string | boolean;
|
|
30
|
-
}
|
|
30
|
+
}>;
|
|
31
31
|
export default _default;
|
|
32
32
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
33
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -11,15 +11,15 @@ const _hoisted_2 = {
|
|
|
11
11
|
key: 1,
|
|
12
12
|
class: "editable-content"
|
|
13
13
|
};
|
|
14
|
-
const _sfc_main = defineComponent({
|
|
14
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
15
|
__name: "Editable",
|
|
16
16
|
props: {
|
|
17
17
|
cell: { default: "" },
|
|
18
18
|
isEditing: { type: Boolean, default: false },
|
|
19
19
|
validateFunction: { type: Function, default: () => false },
|
|
20
20
|
isLoading: { type: Boolean, default: false },
|
|
21
|
-
rowIndex:
|
|
22
|
-
cellIndex:
|
|
21
|
+
rowIndex: null,
|
|
22
|
+
cellIndex: null
|
|
23
23
|
},
|
|
24
24
|
setup(__props) {
|
|
25
25
|
const props = __props;
|
|
@@ -73,7 +73,7 @@ const _sfc_main = defineComponent({
|
|
|
73
73
|
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
74
74
|
createVNode(Text, { size: "sm" }, {
|
|
75
75
|
default: withCtx(() => [
|
|
76
|
-
createTextVNode(toDisplayString(
|
|
76
|
+
createTextVNode(toDisplayString(__props.cell), 1)
|
|
77
77
|
]),
|
|
78
78
|
_: 1
|
|
79
79
|
})
|
|
@@ -61,7 +61,7 @@ declare const EditableTypes: () => (import("vue").InjectionKey<import("./Editabl
|
|
|
61
61
|
isLoading: boolean;
|
|
62
62
|
isEditing: boolean;
|
|
63
63
|
validateFunction: (value: unknown) => string | boolean;
|
|
64
|
-
}
|
|
64
|
+
}>)[];
|
|
65
65
|
export { default as Editable } from './Editable.vue';
|
|
66
66
|
export { EditableContext, useEditableContext } from './EditableContext';
|
|
67
67
|
export { EditableTypes };
|
|
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
39
39
|
iconName: string;
|
|
40
40
|
disabled?: boolean;
|
|
41
41
|
}[];
|
|
42
|
-
}
|
|
42
|
+
}>;
|
|
43
43
|
export default _default;
|
|
44
44
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
45
45
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { defineComponent, useCssVars, ref, computed, openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, createBlock,
|
|
2
|
-
import '
|
|
1
|
+
import { defineComponent, useCssVars, unref, ref, computed, openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, createBlock, createCommentVNode, withCtx, createTextVNode, toDisplayString, pushScopeId, popScopeId, createElementVNode } from 'vue';
|
|
2
|
+
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
3
3
|
import Text from '../typography/Text.vue.js';
|
|
4
4
|
import Icon from '../icon/Icon.vue.js';
|
|
5
|
-
/* empty css */
|
|
6
|
-
|
|
5
|
+
/* empty css */
|
|
7
6
|
import "../../Tabs.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
8
7
|
const _withScopeId = (n) => (pushScopeId("data-v-43f1459d"), n = n(), popScopeId(), n);
|
|
9
8
|
const _hoisted_1 = ["onClick", "onMouseover"];
|
|
@@ -12,12 +11,11 @@ const _hoisted_3 = {
|
|
|
12
11
|
key: 0,
|
|
13
12
|
class: "tabs-border-line-hover"
|
|
14
13
|
};
|
|
15
|
-
const
|
|
16
|
-
const _sfc_main = defineComponent({
|
|
14
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
15
|
__name: "Tabs",
|
|
18
16
|
props: {
|
|
19
17
|
tabsList: { default: () => [] },
|
|
20
|
-
selectedTab:
|
|
18
|
+
selectedTab: null,
|
|
21
19
|
variant: { default: "fill" },
|
|
22
20
|
size: { default: "sm" }
|
|
23
21
|
},
|
|
@@ -25,13 +23,14 @@ const _sfc_main = defineComponent({
|
|
|
25
23
|
setup(__props, { emit }) {
|
|
26
24
|
const props = __props;
|
|
27
25
|
useCssVars((_ctx) => ({
|
|
28
|
-
"87ea7e12": selectedTabPosition
|
|
29
|
-
"fb546e90": selectedTabWidth
|
|
30
|
-
"b3e2e0ba": selectedTabCenter
|
|
31
|
-
"2213a50a": hoveredTabCenter
|
|
26
|
+
"87ea7e12": unref(selectedTabPosition),
|
|
27
|
+
"fb546e90": unref(selectedTabWidth),
|
|
28
|
+
"b3e2e0ba": unref(selectedTabCenter),
|
|
29
|
+
"2213a50a": unref(hoveredTabCenter)
|
|
32
30
|
}));
|
|
33
31
|
const tabsNewList = ref([]);
|
|
34
32
|
const hoveredTab = ref(null);
|
|
33
|
+
const fixUnderlineLength = 12;
|
|
35
34
|
const skipUnwrap = { tabsNewList };
|
|
36
35
|
const isHovered = computed(
|
|
37
36
|
() => hoveredTab.value && hoveredTab.value !== props.selectedTab
|
|
@@ -77,16 +76,16 @@ const _sfc_main = defineComponent({
|
|
|
77
76
|
};
|
|
78
77
|
return (_ctx, _cache) => {
|
|
79
78
|
return openBlock(), createElementBlock("ul", {
|
|
80
|
-
class: normalizeClass(["tabs-wrap", [
|
|
79
|
+
class: normalizeClass(["tabs-wrap", [__props.size, __props.variant]])
|
|
81
80
|
}, [
|
|
82
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
81
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabsList, (tab) => {
|
|
83
82
|
return openBlock(), createElementBlock("li", {
|
|
84
83
|
ref_for: true,
|
|
85
84
|
ref: skipUnwrap.tabsNewList,
|
|
86
85
|
key: tab.id,
|
|
87
86
|
class: normalizeClass(["tab-item", {
|
|
88
87
|
"disabled-tab": tab.disabled,
|
|
89
|
-
"selected-tab": tab.id ===
|
|
88
|
+
"selected-tab": tab.id === __props.selectedTab
|
|
90
89
|
}]),
|
|
91
90
|
onClick: ($event) => selectTab(tab),
|
|
92
91
|
onMouseover: ($event) => setHover(tab),
|
|
@@ -97,7 +96,7 @@ const _sfc_main = defineComponent({
|
|
|
97
96
|
key: 0,
|
|
98
97
|
name: tab.iconName,
|
|
99
98
|
class: normalizeClass(["tab-icon", {
|
|
100
|
-
size:
|
|
99
|
+
size: __props.size,
|
|
101
100
|
"lone-icon": !tab.name
|
|
102
101
|
}])
|
|
103
102
|
}, null, 8, ["name", "class"])) : createCommentVNode("", true),
|
|
@@ -115,7 +114,7 @@ const _sfc_main = defineComponent({
|
|
|
115
114
|
], 42, _hoisted_1);
|
|
116
115
|
}), 128)),
|
|
117
116
|
_hoisted_2,
|
|
118
|
-
isHovered
|
|
117
|
+
unref(isHovered) ? (openBlock(), createElementBlock("div", _hoisted_3)) : createCommentVNode("", true)
|
|
119
118
|
], 2);
|
|
120
119
|
};
|
|
121
120
|
}
|
|
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
37
37
|
placeholder: string;
|
|
38
38
|
feedbackHelpText: string;
|
|
39
39
|
feedbackErrorText: string;
|
|
40
|
-
}
|
|
40
|
+
}>;
|
|
41
41
|
export default _default;
|
|
42
42
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
43
43
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, createVNode, unref, withCtx, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from 'vue';
|
|
2
|
-
import '
|
|
2
|
+
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
3
3
|
import Text from '../typography/Text.vue.js';
|
|
4
|
-
/* empty css */
|
|
5
|
-
|
|
4
|
+
/* empty css */
|
|
6
5
|
import "../../TextArea.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
7
6
|
const _hoisted_1 = {
|
|
8
7
|
key: 0,
|
|
@@ -13,7 +12,7 @@ const _hoisted_3 = {
|
|
|
13
12
|
key: 1,
|
|
14
13
|
class: "extra-text-container"
|
|
15
14
|
};
|
|
16
|
-
const _sfc_main = defineComponent({
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
16
|
__name: "TextArea",
|
|
18
17
|
props: {
|
|
19
18
|
modelValue: { default: "" },
|
|
@@ -30,30 +29,30 @@ const _sfc_main = defineComponent({
|
|
|
30
29
|
};
|
|
31
30
|
return (_ctx, _cache) => {
|
|
32
31
|
return openBlock(), createElementBlock("div", {
|
|
33
|
-
class: normalizeClass({ "textarea-with-label-container": true, disabled:
|
|
32
|
+
class: normalizeClass({ "textarea-with-label-container": true, disabled: __props.disabled })
|
|
34
33
|
}, [
|
|
35
|
-
|
|
34
|
+
__props.label ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
36
35
|
createVNode(unref(Text), { class: "label" }, {
|
|
37
36
|
default: withCtx(() => [
|
|
38
|
-
createTextVNode(toDisplayString(
|
|
37
|
+
createTextVNode(toDisplayString(__props.label), 1)
|
|
39
38
|
]),
|
|
40
39
|
_: 1
|
|
41
40
|
})
|
|
42
41
|
])) : createCommentVNode("", true),
|
|
43
42
|
createElementVNode("textarea", {
|
|
44
43
|
class: "textarea",
|
|
45
|
-
value:
|
|
46
|
-
placeholder:
|
|
47
|
-
disabled:
|
|
44
|
+
value: __props.modelValue,
|
|
45
|
+
placeholder: __props.placeholder,
|
|
46
|
+
disabled: __props.disabled,
|
|
48
47
|
onInput: handleInput
|
|
49
48
|
}, null, 40, _hoisted_2),
|
|
50
|
-
|
|
49
|
+
__props.feedbackErrorText || __props.feedbackHelpText ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
51
50
|
createVNode(unref(Text), {
|
|
52
|
-
class: normalizeClass({ [
|
|
51
|
+
class: normalizeClass({ [__props.feedbackErrorText ? "error" : "help"]: true }),
|
|
53
52
|
size: "caption"
|
|
54
53
|
}, {
|
|
55
54
|
default: withCtx(() => [
|
|
56
|
-
createTextVNode(toDisplayString(
|
|
55
|
+
createTextVNode(toDisplayString(__props.feedbackErrorText || __props.feedbackHelpText), 1)
|
|
57
56
|
]),
|
|
58
57
|
_: 1
|
|
59
58
|
}, 8, ["class"])
|
|
@@ -44,7 +44,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
44
44
|
activeText: string;
|
|
45
45
|
inactiveText: string;
|
|
46
46
|
isDisabled: boolean;
|
|
47
|
-
}
|
|
47
|
+
}>;
|
|
48
48
|
export default _default;
|
|
49
49
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
50
50
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { defineComponent, useCssVars, openBlock, createElementBlock, createElementVNode, normalizeClass, createCommentVNode, createVNode, unref, withCtx, createTextVNode, toDisplayString, createBlock } from 'vue';
|
|
2
|
-
import '
|
|
2
|
+
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
3
3
|
import Text from '../typography/Text.vue.js';
|
|
4
4
|
import { COLORS } from '../../consts/colors.vue.js';
|
|
5
|
-
/* empty css */
|
|
6
|
-
|
|
5
|
+
/* empty css */
|
|
7
6
|
import "../../Toggle.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
8
7
|
const _hoisted_1 = { class: "toggle-wrap" };
|
|
9
8
|
const _hoisted_2 = { class: "toggle-head" };
|
|
10
9
|
const _hoisted_3 = ["disabled", "checked"];
|
|
11
|
-
const _sfc_main = defineComponent({
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
11
|
__name: "Toggle",
|
|
13
12
|
props: {
|
|
14
13
|
modelValue: { type: Boolean },
|
|
@@ -24,7 +23,7 @@ const _sfc_main = defineComponent({
|
|
|
24
23
|
setup(__props, { emit }) {
|
|
25
24
|
const props = __props;
|
|
26
25
|
useCssVars((_ctx) => ({
|
|
27
|
-
"7a6f4588":
|
|
26
|
+
"7a6f4588": __props.color
|
|
28
27
|
}));
|
|
29
28
|
const toggleValue = () => {
|
|
30
29
|
if (props.isDisabled)
|
|
@@ -35,53 +34,53 @@ const _sfc_main = defineComponent({
|
|
|
35
34
|
return openBlock(), createElementBlock("div", null, [
|
|
36
35
|
createElementVNode("div", _hoisted_1, [
|
|
37
36
|
createElementVNode("div", {
|
|
38
|
-
class: normalizeClass(["toggle-body", { "toggle-active":
|
|
37
|
+
class: normalizeClass(["toggle-body", { "toggle-active": __props.modelValue, "toggle-disabled": __props.isDisabled }]),
|
|
39
38
|
onClick: toggleValue
|
|
40
39
|
}, [
|
|
41
40
|
createElementVNode("div", _hoisted_2, [
|
|
42
|
-
|
|
41
|
+
__props.isLoading ? (openBlock(), createElementBlock("span", {
|
|
43
42
|
key: 0,
|
|
44
43
|
class: normalizeClass(["loader", {
|
|
45
|
-
"loader-active":
|
|
44
|
+
"loader-active": __props.modelValue
|
|
46
45
|
}])
|
|
47
46
|
}, null, 2)) : createCommentVNode("", true)
|
|
48
47
|
])
|
|
49
48
|
], 2),
|
|
50
49
|
createElementVNode("input", {
|
|
51
50
|
type: "checkbox",
|
|
52
|
-
disabled:
|
|
53
|
-
checked:
|
|
51
|
+
disabled: __props.isDisabled,
|
|
52
|
+
checked: __props.modelValue,
|
|
54
53
|
class: "checkbox"
|
|
55
54
|
}, null, 8, _hoisted_3),
|
|
56
55
|
createVNode(unref(Text), {
|
|
57
56
|
size: "sm",
|
|
58
57
|
"is-truncated": "",
|
|
59
|
-
class: normalizeClass(["item-text", { "text-disabled":
|
|
58
|
+
class: normalizeClass(["item-text", { "text-disabled": __props.isDisabled }])
|
|
60
59
|
}, {
|
|
61
60
|
default: withCtx(() => [
|
|
62
|
-
createTextVNode(toDisplayString(
|
|
61
|
+
createTextVNode(toDisplayString(__props.modelValue ? __props.activeText : __props.inactiveText), 1)
|
|
63
62
|
]),
|
|
64
63
|
_: 1
|
|
65
64
|
}, 8, ["class"])
|
|
66
65
|
]),
|
|
67
66
|
createElementVNode("div", null, [
|
|
68
|
-
|
|
67
|
+
__props.helperText ? (openBlock(), createBlock(unref(Text), {
|
|
69
68
|
key: 0,
|
|
70
69
|
size: "caption",
|
|
71
70
|
class: "helper-text"
|
|
72
71
|
}, {
|
|
73
72
|
default: withCtx(() => [
|
|
74
|
-
createTextVNode(toDisplayString(
|
|
73
|
+
createTextVNode(toDisplayString(__props.helperText), 1)
|
|
75
74
|
]),
|
|
76
75
|
_: 1
|
|
77
76
|
})) : createCommentVNode("", true),
|
|
78
|
-
|
|
77
|
+
__props.errorText ? (openBlock(), createBlock(unref(Text), {
|
|
79
78
|
key: 1,
|
|
80
79
|
size: "caption",
|
|
81
|
-
class: normalizeClass(["error-text", { "error-and-help": !!
|
|
80
|
+
class: normalizeClass(["error-text", { "error-and-help": !!__props.helperText }])
|
|
82
81
|
}, {
|
|
83
82
|
default: withCtx(() => [
|
|
84
|
-
createTextVNode(toDisplayString(
|
|
83
|
+
createTextVNode(toDisplayString(__props.errorText), 1)
|
|
85
84
|
]),
|
|
86
85
|
_: 1
|
|
87
86
|
}, 8, ["class"])) : createCommentVNode("", true)
|
|
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
4
4
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
5
|
text: string;
|
|
6
6
|
header: string;
|
|
7
|
-
}>>>, {}
|
|
7
|
+
}>>>, {}>;
|
|
8
8
|
export default _default;
|
|
9
9
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
10
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
2
|
-
import '
|
|
2
|
+
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
3
3
|
import Text from '../typography/Text.vue.js';
|
|
4
|
-
/* empty css */
|
|
5
|
-
|
|
4
|
+
/* empty css */
|
|
6
5
|
import "../../TextWithTitleContent.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
7
6
|
const _hoisted_1 = { class: "content-wrap" };
|
|
8
7
|
const _hoisted_2 = { class: "content-header" };
|
|
9
8
|
const _hoisted_3 = { class: "content-body" };
|
|
10
|
-
const _sfc_main = defineComponent({
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
10
|
__name: "TextWithTitleContent",
|
|
12
11
|
props: {
|
|
13
|
-
text:
|
|
14
|
-
header:
|
|
12
|
+
text: null,
|
|
13
|
+
header: null
|
|
15
14
|
},
|
|
16
15
|
setup(__props) {
|
|
17
16
|
return (_ctx, _cache) => {
|
|
@@ -23,7 +22,7 @@ const _sfc_main = defineComponent({
|
|
|
23
22
|
strong: ""
|
|
24
23
|
}, {
|
|
25
24
|
default: withCtx(() => [
|
|
26
|
-
createTextVNode(toDisplayString(
|
|
25
|
+
createTextVNode(toDisplayString(__props.header), 1)
|
|
27
26
|
]),
|
|
28
27
|
_: 1
|
|
29
28
|
})
|
|
@@ -35,7 +34,7 @@ const _sfc_main = defineComponent({
|
|
|
35
34
|
strong: ""
|
|
36
35
|
}, {
|
|
37
36
|
default: withCtx(() => [
|
|
38
|
-
createTextVNode(toDisplayString(
|
|
37
|
+
createTextVNode(toDisplayString(__props.text), 1)
|
|
39
38
|
]),
|
|
40
39
|
_: 1
|
|
41
40
|
})
|
|
@@ -43,7 +43,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
43
43
|
forceShowWithTruncate: boolean;
|
|
44
44
|
placement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
45
45
|
disabled: boolean;
|
|
46
|
-
}
|
|
46
|
+
}>;
|
|
47
47
|
export default _default;
|
|
48
48
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
49
49
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { defineComponent, ref, useSlots, watch, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createTextVNode, toDisplayString, createElementVNode, nextTick } from 'vue';
|
|
2
2
|
import TextWithTitleContent from './TextWithTitleContent.vue.js';
|
|
3
|
-
import '../typography/
|
|
4
|
-
import Text from '../typography/Text.vue.js';
|
|
3
|
+
/* empty css */import Text from '../typography/Text.vue.js';
|
|
5
4
|
import { Tooltip } from 'floating-vue';
|
|
6
5
|
/* empty css */
|
|
7
6
|
import "../../Tooltip.vue_vue_type_style_index_0_lang.css";
|
|
8
|
-
const _sfc_main = defineComponent({
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
8
|
__name: "Tooltip",
|
|
10
9
|
props: {
|
|
11
10
|
text: { default: null },
|
|
@@ -53,17 +52,17 @@ const _sfc_main = defineComponent({
|
|
|
53
52
|
);
|
|
54
53
|
return (_ctx, _cache) => {
|
|
55
54
|
return openBlock(), createBlock(unref(Tooltip), mergeProps(_ctx.$props, {
|
|
56
|
-
theme:
|
|
55
|
+
theme: __props.theme,
|
|
57
56
|
"no-auto-focus": "",
|
|
58
|
-
triggers:
|
|
59
|
-
delay: { show:
|
|
60
|
-
placement:
|
|
61
|
-
disabled:
|
|
57
|
+
triggers: __props.triggers,
|
|
58
|
+
delay: { show: __props.delay, hide: 0 },
|
|
59
|
+
placement: __props.placement,
|
|
60
|
+
disabled: __props.disabled || __props.text && !textForDisplay.value,
|
|
62
61
|
"auto-hide": ""
|
|
63
62
|
}), {
|
|
64
63
|
popper: withCtx(() => [
|
|
65
64
|
renderSlot(_ctx.$slots, "tooltip", { text: textForDisplay.value }, () => [
|
|
66
|
-
!
|
|
65
|
+
!__props.header ? (openBlock(), createBlock(unref(Text), {
|
|
67
66
|
key: 0,
|
|
68
67
|
size: "sm",
|
|
69
68
|
"is-truncated": false,
|
|
@@ -75,8 +74,8 @@ const _sfc_main = defineComponent({
|
|
|
75
74
|
_: 1
|
|
76
75
|
})) : (openBlock(), createBlock(TextWithTitleContent, {
|
|
77
76
|
key: 1,
|
|
78
|
-
text:
|
|
79
|
-
header:
|
|
77
|
+
text: __props.text,
|
|
78
|
+
header: __props.header
|
|
80
79
|
}, null, 8, ["text", "header"]))
|
|
81
80
|
])
|
|
82
81
|
]),
|
|
@@ -89,6 +89,6 @@ declare const TooltipTypes: () => import("vue").DefineComponent<{
|
|
|
89
89
|
forceShowWithTruncate: boolean;
|
|
90
90
|
placement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
91
91
|
disabled: boolean;
|
|
92
|
-
}
|
|
92
|
+
}>[];
|
|
93
93
|
export { default as Tooltip } from './Tooltip.vue';
|
|
94
94
|
export { TooltipTypes };
|
|
@@ -2,7 +2,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
2
2
|
args: unknown;
|
|
3
3
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
args: unknown;
|
|
5
|
-
}>>>, {}
|
|
5
|
+
}>>>, {}>;
|
|
6
6
|
export default _default;
|
|
7
7
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
8
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
10
10
|
level: string;
|
|
11
11
|
}>>>, {
|
|
12
12
|
level: '1' | '2' | '3' | '4' | '5' | '6' | 'label';
|
|
13
|
-
}
|
|
13
|
+
}>;
|
|
14
14
|
export default _default;
|
|
15
15
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
16
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock, resolveDynamicComponent, normalizeClass, withCtx, renderSlot } from 'vue';
|
|
1
|
+
import { defineComponent, computed, openBlock, createBlock, resolveDynamicComponent, unref, normalizeClass, withCtx, renderSlot } from 'vue';
|
|
2
2
|
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
3
3
|
|
|
4
4
|
import "../../Heading.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
5
|
-
const _sfc_main = defineComponent({
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "Heading",
|
|
7
7
|
props: {
|
|
8
8
|
isTruncated: { type: Boolean },
|
|
@@ -17,8 +17,8 @@ const _sfc_main = defineComponent({
|
|
|
17
17
|
return `h${props.level}`;
|
|
18
18
|
});
|
|
19
19
|
return (_ctx, _cache) => {
|
|
20
|
-
return openBlock(), createBlock(resolveDynamicComponent(tag
|
|
21
|
-
class: normalizeClass(["heading", { truncate:
|
|
20
|
+
return openBlock(), createBlock(resolveDynamicComponent(unref(tag)), {
|
|
21
|
+
class: normalizeClass(["heading", { truncate: __props.isTruncated }])
|
|
22
22
|
}, {
|
|
23
23
|
default: withCtx(() => [
|
|
24
24
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
12
12
|
size: string;
|
|
13
13
|
}>>>, {
|
|
14
14
|
size: 'caption' | 'xs' | 'sm' | 'md' | 'lg';
|
|
15
|
-
}
|
|
15
|
+
}>;
|
|
16
16
|
export default _default;
|
|
17
17
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
18
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, renderSlot } from 'vue';
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
|
|
2
2
|
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
3
3
|
|
|
4
4
|
import "../../Text.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
5
|
-
const _sfc_main = defineComponent({
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "Text",
|
|
7
7
|
props: {
|
|
8
8
|
isTruncated: { type: Boolean },
|
|
@@ -16,7 +16,7 @@ const _sfc_main = defineComponent({
|
|
|
16
16
|
});
|
|
17
17
|
return (_ctx, _cache) => {
|
|
18
18
|
return openBlock(), createElementBlock("span", {
|
|
19
|
-
class: normalizeClass(["text", { strong:
|
|
19
|
+
class: normalizeClass(["text", { strong: __props.strong, [unref(sizeClass)]: true, truncate: __props.isTruncated }])
|
|
20
20
|
}, [
|
|
21
21
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
22
22
|
], 2);
|
|
@@ -18,7 +18,7 @@ declare const TypographyTypes: () => (import("vue").DefineComponent<{
|
|
|
18
18
|
};
|
|
19
19
|
}>>, {
|
|
20
20
|
level: "label" | "1" | "2" | "3" | "4" | "5" | "6";
|
|
21
|
-
}
|
|
21
|
+
}> | import("vue").DefineComponent<{
|
|
22
22
|
size: {
|
|
23
23
|
type: import("vue").PropType<"md" | "sm" | "lg" | "caption" | "xs">;
|
|
24
24
|
} & {
|
|
@@ -44,7 +44,7 @@ declare const TypographyTypes: () => (import("vue").DefineComponent<{
|
|
|
44
44
|
};
|
|
45
45
|
}>>, {
|
|
46
46
|
size: "md" | "sm" | "lg" | "caption" | "xs";
|
|
47
|
-
}
|
|
47
|
+
}>)[];
|
|
48
48
|
export { default as Heading } from './Heading.vue';
|
|
49
49
|
export { default as Text } from './Text.vue';
|
|
50
50
|
export { TypographyTypes };
|
package/index.vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './MenuItem.vue_vue_type_style_index_0_scoped_true_lang.css';
|
|
2
2
|
export { AppTriggerTypes } from './components/appTrigger/index.vue.js';
|
|
3
3
|
export { AutocompleteDropdownTypes } from './components/autocompleteDropdown/index.vue.js';
|
|
4
4
|
export { MenuItemTypes } from './components/menuItem/index.vue.js';
|
|
@@ -36,6 +36,8 @@ export { useSearch } from './composables/useSearch.vue.js';
|
|
|
36
36
|
export { DateRangeTypes } from './components/dateRange/index.vue.js';
|
|
37
37
|
export { DatePickerTypes } from './components/datePicker/index.vue.js';
|
|
38
38
|
export { BannerTypes } from './components/banner/index.vue.js';
|
|
39
|
+
export { default as Popover } from './components/popover/Popover.vue.js';
|
|
40
|
+
export { default as Tooltip } from './components/tooltip/Tooltip.vue.js';
|
|
39
41
|
export { default as AppTrigger } from './components/appTrigger/AppTrigger.vue.js';
|
|
40
42
|
export { default as AutocompleteDropdown } from './components/autocompleteDropdown/AutocompleteDropdown.vue.js';
|
|
41
43
|
export { default as MenuItem } from './components/menuItem/MenuItem.vue.js';
|
|
@@ -78,10 +80,8 @@ export { default as Search } from './components/search/Search.vue.js';
|
|
|
78
80
|
export { default as Skeleton } from './components/skeleton/Skeleton.vue.js';
|
|
79
81
|
export { default as Heading } from './components/typography/Heading.vue.js';
|
|
80
82
|
export { default as Text } from './components/typography/Text.vue.js';
|
|
81
|
-
export { default as Popover } from './components/popover/Popover.vue.js';
|
|
82
83
|
export { default as Chip } from './components/chip/Chip.vue.js';
|
|
83
84
|
export { default as Toggle } from './components/toggle/Toggle.vue.js';
|
|
84
|
-
export { default as Tooltip } from './components/tooltip/Tooltip.vue.js';
|
|
85
85
|
export { default as Input } from './components/input/Input.vue.js';
|
|
86
86
|
export { default as DollarInput } from './components/input/DollarInput.vue.js';
|
|
87
87
|
export { default as PercentageInput } from './components/input/PercentageInput.vue.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ironsource/shared-ui",
|
|
3
|
-
"version": "1.4.2-test.
|
|
3
|
+
"version": "1.4.2-test.15",
|
|
4
4
|
"engines": {
|
|
5
5
|
"npm": ">=7.0.0",
|
|
6
6
|
"node": ">=16.0.0"
|
|
@@ -48,8 +48,6 @@
|
|
|
48
48
|
"date-fns": "^2.29.1",
|
|
49
49
|
"floating-vue": "2.0.0-beta.20",
|
|
50
50
|
"focus-trap": "^6.9.4",
|
|
51
|
-
"react": "^18.2.0",
|
|
52
|
-
"react-dom": "^18.2.0",
|
|
53
51
|
"vue": "^3.2.31",
|
|
54
52
|
"vuedraggable": "^4.1.0"
|
|
55
53
|
},
|
|
@@ -117,6 +115,8 @@
|
|
|
117
115
|
"prettier": "^2.6.0",
|
|
118
116
|
"prismjs": "^1.29.0",
|
|
119
117
|
"puppeteer": "^19.4.1",
|
|
118
|
+
"react": "^18.2.0",
|
|
119
|
+
"react-dom": "^18.2.0",
|
|
120
120
|
"replace": "^1.2.1",
|
|
121
121
|
"rimraf": "^3.0.2",
|
|
122
122
|
"sass": "^1.49.7",
|