@ironsource/shared-ui 1.4.3-rc.2 → 1.4.3-rc.4
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/AddFilterButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/AppTrigger.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/AutocompleteInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Banner.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Button.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/ButtonBase.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/ButtonBase.vue_vue_type_style_index_1_scoped_true_lang.css +1 -0
- package/ButtonSuper.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Chip.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/ChipV4.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
- package/DateRange.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Dialog.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Dropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Dropdown.vue_vue_type_style_index_1_lang.css +1 -1
- package/Editable.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/EmptyState.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/FilterSearchInput.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/IconButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IncludeExcludeAppTrigger.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IncludeExcludeChipFilter.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Input.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Menu.vue_vue_type_style_index_1_lang.css +1 -1
- package/MenuItem.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Popover.vue_vue_type_style_index_0_lang.css +1 -1
- package/README.md +21 -36
- package/ScrollButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Search.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/SearchInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Snackbar.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Switch.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
- package/Table.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Table.vue_vue_type_style_index_1_lang.css +1 -1
- package/Tabs.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/TextArea.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Toggle.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/components/ThemeWrapper/ThemeStrore.d.ts +4 -0
- package/components/ThemeWrapper/ThemeWrapper.vue.d.ts +15 -0
- package/components/appTrigger/AppTrigger.vue.js +3 -3
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.js +2 -1
- package/components/button/{ButtonBase.vue.d.ts → common/ButtonBase.vue.d.ts} +9 -9
- package/components/button/{ButtonBase.vue.js → common/ButtonBase.vue.js} +8 -8
- package/components/button/common/ButtonSuper.vue.d.ts +42 -0
- package/components/button/{Button.vue.js → common/ButtonSuper.vue.js} +7 -7
- package/components/button/v3/Button.vue.js +40 -0
- package/components/button/{IconButton.vue.js → v3/IconButton.vue.js} +7 -7
- package/components/button/{ScrollButton.vue.js → v3/ScrollButton.vue.js} +6 -6
- package/components/button/v3/index.d.ts +126 -0
- package/components/button/v4/ButtonV4.vue.d.ts +52 -0
- package/components/button/v4/ButtonV4.vue.js +44 -0
- package/components/button/v4/index.d.ts +72 -0
- package/components/button/v4/index.vue.js +6 -0
- package/components/checkbox/Checkbox.vue.d.ts +1 -1
- package/components/checkbox/index.d.ts +9 -9
- package/components/chip/{Chip.vue.js → v3/Chip.vue.js} +5 -5
- package/components/chip/v4/ChipV4.vue.d.ts +48 -0
- package/components/chip/v4/ChipV4.vue.js +76 -0
- package/components/chip/v4/index.d.ts +63 -0
- package/components/chip/v4/index.vue.js +6 -0
- package/components/dateRange/CalendarMonth.vue.js +3 -3
- package/components/dateRange/DateRange.vue.js +4 -4
- package/components/dialog/Dialog.vue.d.ts +1 -1
- package/components/dialog/Dialog.vue.js +7 -6
- package/components/dialog/index.d.ts +11 -11
- package/components/dropdown/Dropdown.vue.d.ts +2 -2
- package/components/dropdown/Dropdown.vue.js +5 -5
- package/components/dropdown/SearchInput.vue.js +6 -5
- package/components/dropdown/index.d.ts +16 -16
- package/components/emptyState/EmptyState.vue.d.ts +1 -1
- package/components/emptyState/EmptyState.vue.js +4 -4
- package/components/emptyState/index.d.ts +14 -14
- package/components/filterDropdown/AddFilterButton.vue.js +2 -2
- package/components/filterDropdown/FilterDropdown.vue.js +2 -1
- package/components/filtersPanel/FilterSearchInput.vue.js +2 -2
- package/components/floatingToolbar/FloatingToolbar.vue.js +6 -5
- package/components/icon/Icon.vue.js +0 -1
- package/components/icon/icons/index.d.ts +0 -3
- package/components/icon/icons/index.vue.js +0 -3
- package/components/icon/index.d.ts +0 -3
- package/components/includeExclude/IncludeExclude.vue.js +4 -4
- package/components/includeExclude/IncludeExcludeAppHeader.vue.js +1 -1
- package/components/includeExclude/IncludeExcludeAppTrigger.vue.js +3 -3
- package/components/includeExclude/IncludeExcludeChipFilter.vue.js +4 -4
- package/components/input/Input.vue.d.ts +2 -2
- package/components/input/Input.vue.js +3 -3
- package/components/input/index.d.ts +16 -16
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/menu/index.d.ts +5 -5
- package/components/snackbar/Snackbar.vue.d.ts +1 -1
- package/components/snackbar/Snackbar.vue.js +6 -5
- package/components/switch/{Switch.vue.js → v3/Switch.vue.js} +5 -5
- package/components/switch/v4/SwitchV4.vue.d.ts +37 -0
- package/components/switch/v4/SwitchV4.vue.js +87 -0
- package/components/switch/v4/index.d.ts +46 -0
- package/components/switch/v4/index.vue.js +6 -0
- package/components/table/Table.vue.js +3 -3
- package/components/tooltip/Tooltip.vue.d.ts +1 -1
- package/components/tooltip/index.d.ts +5 -5
- package/components/typography/index.d.ts +9 -9
- package/index.d.ts +429 -3
- package/index.vue.js +18 -9
- package/package.json +20 -11
- package/styleguide.scss +77 -78
- package/components/button/index.d.ts +0 -126
- package/components/icon/icons/Hammer.vue.d.ts +0 -2
- package/components/icon/icons/Hammer.vue.js +0 -26
- /package/components/button/{Button.vue.d.ts → v3/Button.vue.d.ts} +0 -0
- /package/components/button/{IconButton.vue.d.ts → v3/IconButton.vue.d.ts} +0 -0
- /package/components/button/{ScrollButton.vue.d.ts → v3/ScrollButton.vue.d.ts} +0 -0
- /package/components/button/{index.vue.js → v3/index.vue.js} +0 -0
- /package/components/chip/{Chip.vue.d.ts → v3/Chip.vue.d.ts} +0 -0
- /package/components/chip/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/chip/{index.vue.js → v3/index.vue.js} +0 -0
- /package/components/switch/{Switch.vue.d.ts → v3/Switch.vue.d.ts} +0 -0
- /package/components/switch/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/switch/{index.vue.js → v3/index.vue.js} +0 -0
|
@@ -3,8 +3,8 @@ import DollarInput from './DollarInput.vue';
|
|
|
3
3
|
import PercentageInput from './PercentageInput.vue';
|
|
4
4
|
import PasswordInput from './PasswordInput.vue';
|
|
5
5
|
declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
6
|
-
|
|
7
|
-
type: import("vue").PropType<"
|
|
6
|
+
type: {
|
|
7
|
+
type: import("vue").PropType<"number" | "text" | "password">;
|
|
8
8
|
} & {
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
@@ -13,8 +13,8 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
13
13
|
} & {
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
type: import("vue").PropType<"
|
|
16
|
+
size: {
|
|
17
|
+
type: import("vue").PropType<"sm" | "lg">;
|
|
18
18
|
} & {
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
@@ -96,8 +96,8 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
96
96
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
97
97
|
"update:modelValue": (value: string | number) => void;
|
|
98
98
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
99
|
-
|
|
100
|
-
type: import("vue").PropType<"
|
|
99
|
+
type: {
|
|
100
|
+
type: import("vue").PropType<"number" | "text" | "password">;
|
|
101
101
|
} & {
|
|
102
102
|
default: string;
|
|
103
103
|
};
|
|
@@ -106,8 +106,8 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
106
106
|
} & {
|
|
107
107
|
default: string;
|
|
108
108
|
};
|
|
109
|
-
|
|
110
|
-
type: import("vue").PropType<"
|
|
109
|
+
size: {
|
|
110
|
+
type: import("vue").PropType<"sm" | "lg">;
|
|
111
111
|
} & {
|
|
112
112
|
default: string;
|
|
113
113
|
};
|
|
@@ -189,9 +189,9 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
189
189
|
}>> & {
|
|
190
190
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
191
191
|
}, {
|
|
192
|
-
size: "sm" | "lg";
|
|
193
|
-
label: string;
|
|
194
192
|
type: "number" | "text" | "password";
|
|
193
|
+
label: string;
|
|
194
|
+
size: "sm" | "lg";
|
|
195
195
|
testId: string;
|
|
196
196
|
disabled: boolean;
|
|
197
197
|
modelValue: string | number;
|
|
@@ -211,15 +211,15 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
211
211
|
ref: {
|
|
212
212
|
type: import("vue").PropType<import("vue").VNodeRef>;
|
|
213
213
|
};
|
|
214
|
-
size: {
|
|
215
|
-
type: import("vue").PropType<"sm" | "lg">;
|
|
216
|
-
};
|
|
217
214
|
label: {
|
|
218
215
|
type: import("vue").PropType<string>;
|
|
219
216
|
};
|
|
220
217
|
style: {
|
|
221
218
|
type: import("vue").PropType<unknown>;
|
|
222
219
|
};
|
|
220
|
+
size: {
|
|
221
|
+
type: import("vue").PropType<"sm" | "lg">;
|
|
222
|
+
};
|
|
223
223
|
testId: {
|
|
224
224
|
type: import("vue").PropType<string>;
|
|
225
225
|
};
|
|
@@ -330,15 +330,15 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
330
330
|
ref: {
|
|
331
331
|
type: import("vue").PropType<import("vue").VNodeRef>;
|
|
332
332
|
};
|
|
333
|
-
size: {
|
|
334
|
-
type: import("vue").PropType<"sm" | "lg">;
|
|
335
|
-
};
|
|
336
333
|
label: {
|
|
337
334
|
type: import("vue").PropType<string>;
|
|
338
335
|
};
|
|
339
336
|
style: {
|
|
340
337
|
type: import("vue").PropType<unknown>;
|
|
341
338
|
};
|
|
339
|
+
size: {
|
|
340
|
+
type: import("vue").PropType<"sm" | "lg">;
|
|
341
|
+
};
|
|
342
342
|
testId: {
|
|
343
343
|
type: import("vue").PropType<string>;
|
|
344
344
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const MenuTypes: () => import("vue").DefineComponent<{
|
|
2
|
-
|
|
2
|
+
theme: {
|
|
3
3
|
type: import("vue").PropType<string>;
|
|
4
4
|
} & {
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
testId: {
|
|
8
8
|
type: import("vue").PropType<string>;
|
|
9
9
|
} & {
|
|
10
10
|
default: string;
|
|
@@ -30,12 +30,12 @@ declare const MenuTypes: () => import("vue").DefineComponent<{
|
|
|
30
30
|
default: string;
|
|
31
31
|
};
|
|
32
32
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
-
|
|
33
|
+
theme: {
|
|
34
34
|
type: import("vue").PropType<string>;
|
|
35
35
|
} & {
|
|
36
36
|
default: string;
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
testId: {
|
|
39
39
|
type: import("vue").PropType<string>;
|
|
40
40
|
} & {
|
|
41
41
|
default: string;
|
|
@@ -61,8 +61,8 @@ declare const MenuTypes: () => import("vue").DefineComponent<{
|
|
|
61
61
|
default: string;
|
|
62
62
|
};
|
|
63
63
|
}>>, {
|
|
64
|
-
testId: string;
|
|
65
64
|
theme: string;
|
|
65
|
+
testId: string;
|
|
66
66
|
isOnTop: boolean;
|
|
67
67
|
distance: number;
|
|
68
68
|
skidding: number;
|
|
@@ -46,8 +46,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
46
46
|
}>>> & {
|
|
47
47
|
onDestroy?: (...args: any[]) => any;
|
|
48
48
|
}, {
|
|
49
|
-
title: string;
|
|
50
49
|
type: 'success' | 'error' | 'info';
|
|
50
|
+
title: string;
|
|
51
51
|
position: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
52
52
|
zIndex: number;
|
|
53
53
|
duration: number;
|
|
@@ -3,10 +3,11 @@ import { useEventListener, useTimeoutFn } from '@vueuse/core';
|
|
|
3
3
|
import Icon from '../icon/Icon.vue.js';
|
|
4
4
|
import Close from '../icon/icons/Close.vue.js';
|
|
5
5
|
import Check from '../icon/icons/Check.vue.js';
|
|
6
|
-
import
|
|
6
|
+
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
7
7
|
import Text from '../typography/Text.vue.js';
|
|
8
|
-
/* empty css
|
|
9
|
-
|
|
8
|
+
/* empty css *//* empty css *//* empty css *//* empty css */import IconButton from '../button/v3/IconButton.vue.js';
|
|
9
|
+
/* empty css */import 'floating-vue';
|
|
10
|
+
/* empty css *//* empty css *//* empty css */
|
|
10
11
|
import "../../Snackbar.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
11
12
|
const _hoisted_1 = ["id"];
|
|
12
13
|
const _hoisted_2 = { class: "container" };
|
|
@@ -148,7 +149,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
148
149
|
[vShow, __props.message]
|
|
149
150
|
])
|
|
150
151
|
]),
|
|
151
|
-
__props.showClose ? (openBlock(), createBlock(IconButton, {
|
|
152
|
+
__props.showClose ? (openBlock(), createBlock(unref(IconButton), {
|
|
152
153
|
key: 0,
|
|
153
154
|
theme: "third",
|
|
154
155
|
size: "sm",
|
|
@@ -176,6 +177,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
176
177
|
};
|
|
177
178
|
}
|
|
178
179
|
});
|
|
179
|
-
var SnackbarConstructor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
180
|
+
var SnackbarConstructor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fdd11e8e"]]);
|
|
180
181
|
|
|
181
182
|
export { SnackbarConstructor as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, onMounted, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, Fragment, renderList, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
2
2
|
import { useVModel } from '@vueuse/core';
|
|
3
|
-
import Text from '
|
|
4
|
-
import { SwitchTestIdModifiers } from '
|
|
5
|
-
/* empty css */import _export_sfc from '
|
|
3
|
+
import Text from '../../typography/Text.vue.js';
|
|
4
|
+
import { SwitchTestIdModifiers } from '../../../testids/index.vue.js';
|
|
5
|
+
/* empty css */import _export_sfc from '../../../_virtual/plugin-vue_export-helper.vue.js';
|
|
6
6
|
|
|
7
|
-
import "
|
|
7
|
+
import "../../../Switch.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
8
8
|
const _hoisted_1 = ["data-testid"];
|
|
9
9
|
const _hoisted_2 = ["aria-label", "data-testid", "onClick"];
|
|
10
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -82,6 +82,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
|
-
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
85
|
+
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0266f48c"]]);
|
|
86
86
|
|
|
87
87
|
export { Switch as default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
options: string[];
|
|
3
|
+
modelValue: string;
|
|
4
|
+
size?: 'sm' | 'lg';
|
|
5
|
+
testId?: string;
|
|
6
|
+
}>, {
|
|
7
|
+
size: string;
|
|
8
|
+
testId: string;
|
|
9
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
options: string[];
|
|
11
|
+
modelValue: string;
|
|
12
|
+
size?: 'sm' | 'lg';
|
|
13
|
+
testId?: string;
|
|
14
|
+
}>, {
|
|
15
|
+
size: string;
|
|
16
|
+
testId: string;
|
|
17
|
+
}>>> & {
|
|
18
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
19
|
+
}, {
|
|
20
|
+
size: 'sm' | 'lg';
|
|
21
|
+
testId: string;
|
|
22
|
+
}>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: import('vue').PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
type __VLS_WithDefaults<P, D> = {
|
|
34
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
35
|
+
default: D[K];
|
|
36
|
+
} : P[K];
|
|
37
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, onMounted, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, Fragment, renderList, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
2
|
+
import { useVModel } from '@vueuse/core';
|
|
3
|
+
import Text from '../../typography/Text.vue.js';
|
|
4
|
+
import { SwitchTestIdModifiers } from '../../../testids/index.vue.js';
|
|
5
|
+
/* empty css */import _export_sfc from '../../../_virtual/plugin-vue_export-helper.vue.js';
|
|
6
|
+
|
|
7
|
+
import "../../../SwitchV4.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
8
|
+
const _hoisted_1 = ["data-testid"];
|
|
9
|
+
const _hoisted_2 = ["aria-label", "data-testid", "onClick"];
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "SwitchV4",
|
|
12
|
+
props: {
|
|
13
|
+
options: null,
|
|
14
|
+
modelValue: null,
|
|
15
|
+
size: { default: "lg" },
|
|
16
|
+
testId: { default: "" }
|
|
17
|
+
},
|
|
18
|
+
emits: ["update:modelValue"],
|
|
19
|
+
setup(__props, { emit }) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const box = ref(null);
|
|
22
|
+
const data = useVModel(props, "modelValue", emit);
|
|
23
|
+
const optionsRefs = ref([]);
|
|
24
|
+
const skipUnwrap = { optionsRefs };
|
|
25
|
+
const selected = ref();
|
|
26
|
+
const selectedPosition = computed(() => {
|
|
27
|
+
return {
|
|
28
|
+
left: optionsRefs.value[selected.value]?.offsetLeft,
|
|
29
|
+
width: optionsRefs.value[selected.value]?.offsetWidth
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
onMounted(() => {
|
|
33
|
+
selected.value = props.options.findIndex(
|
|
34
|
+
(option) => option === props.modelValue
|
|
35
|
+
);
|
|
36
|
+
});
|
|
37
|
+
const onClick = (option, index) => {
|
|
38
|
+
selected.value = index;
|
|
39
|
+
data.value = option;
|
|
40
|
+
};
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return openBlock(), createElementBlock("div", {
|
|
43
|
+
class: normalizeClass(["switch", { "switch--lg": __props.size === "lg", "switch--sm": __props.size === "sm" }]),
|
|
44
|
+
"data-testid": `${__props.testId}-${unref(SwitchTestIdModifiers).WRAPPER}`
|
|
45
|
+
}, [
|
|
46
|
+
createElementVNode("span", {
|
|
47
|
+
ref_key: "box",
|
|
48
|
+
ref: box,
|
|
49
|
+
class: normalizeClass(["box", { "box--lg": __props.size === "lg", "box--sm": __props.size === "sm" }]),
|
|
50
|
+
style: normalizeStyle({
|
|
51
|
+
transform: `translateX(${unref(selectedPosition)?.left}px)`,
|
|
52
|
+
width: unref(selectedPosition)?.width + "px"
|
|
53
|
+
})
|
|
54
|
+
}, null, 6),
|
|
55
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
|
|
56
|
+
return openBlock(), createElementBlock("button", {
|
|
57
|
+
ref_for: true,
|
|
58
|
+
ref: skipUnwrap.optionsRefs,
|
|
59
|
+
key: index,
|
|
60
|
+
"aria-label": option,
|
|
61
|
+
class: normalizeClass([{ "option--selected": selected.value === index }, "option"]),
|
|
62
|
+
"data-testid": `${__props.testId}-${unref(SwitchTestIdModifiers).BUTTON}`,
|
|
63
|
+
onClick: ($event) => onClick(option, index)
|
|
64
|
+
}, [
|
|
65
|
+
renderSlot(_ctx.$slots, "default", {
|
|
66
|
+
option,
|
|
67
|
+
selected: selected.value === index
|
|
68
|
+
}, () => [
|
|
69
|
+
createVNode(Text, {
|
|
70
|
+
size: "caption",
|
|
71
|
+
"data-testid": `${__props.testId}-${unref(SwitchTestIdModifiers).TEXT}`
|
|
72
|
+
}, {
|
|
73
|
+
default: withCtx(() => [
|
|
74
|
+
createTextVNode(toDisplayString(option), 1)
|
|
75
|
+
]),
|
|
76
|
+
_: 2
|
|
77
|
+
}, 1032, ["data-testid"])
|
|
78
|
+
], true)
|
|
79
|
+
], 10, _hoisted_2);
|
|
80
|
+
}), 128))
|
|
81
|
+
], 10, _hoisted_1);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0bfee819"]]);
|
|
86
|
+
|
|
87
|
+
export { Switch as default };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
declare const SwitchTypes: () => import("vue").DefineComponent<{
|
|
2
|
+
size: {
|
|
3
|
+
type: import("vue").PropType<"sm" | "lg">;
|
|
4
|
+
} & {
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
testId: {
|
|
8
|
+
type: import("vue").PropType<string>;
|
|
9
|
+
} & {
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
options: {
|
|
13
|
+
type: import("vue").PropType<string[]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
modelValue: {
|
|
17
|
+
type: import("vue").PropType<string>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
size: {
|
|
22
|
+
type: import("vue").PropType<"sm" | "lg">;
|
|
23
|
+
} & {
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
testId: {
|
|
27
|
+
type: import("vue").PropType<string>;
|
|
28
|
+
} & {
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
options: {
|
|
32
|
+
type: import("vue").PropType<string[]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
modelValue: {
|
|
36
|
+
type: import("vue").PropType<string>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
}>> & {
|
|
40
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
41
|
+
}, {
|
|
42
|
+
size: "sm" | "lg";
|
|
43
|
+
testId: string;
|
|
44
|
+
}>[];
|
|
45
|
+
export { default as Switch } from './SwitchV4.vue';
|
|
46
|
+
export { SwitchTypes };
|
|
@@ -2,7 +2,7 @@ import { defineComponent, useCssVars, unref, ref, provide, computed, onMounted,
|
|
|
2
2
|
import { TableTestIdModifiers } from '../../testids/index.vue.js';
|
|
3
3
|
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
4
4
|
import Text from '../typography/Text.vue.js';
|
|
5
|
-
/* empty css *//* empty css
|
|
5
|
+
/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import ScrollButton from '../button/v3/ScrollButton.vue.js';
|
|
6
6
|
import Skeleton from '../skeleton/Skeleton.vue.js';
|
|
7
7
|
import EmptyState from '../emptyState/EmptyState.vue.js';
|
|
8
8
|
import TableHeaderSorter from './TableHeaderSorter.vue.js';
|
|
@@ -45,7 +45,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
setup(__props, { emit }) {
|
|
46
46
|
const props = __props;
|
|
47
47
|
useCssVars((_ctx) => ({
|
|
48
|
-
"
|
|
48
|
+
"ebaab674": unref(gridColumnTemplate)
|
|
49
49
|
}));
|
|
50
50
|
const savingRows = ref([]);
|
|
51
51
|
provide(TableContext, {
|
|
@@ -341,6 +341,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
343
|
});
|
|
344
|
-
var Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
344
|
+
var Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-00fbc25d"]]);
|
|
345
345
|
|
|
346
346
|
export { Table as default };
|
|
@@ -41,8 +41,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
41
41
|
}>>>, {
|
|
42
42
|
header: string;
|
|
43
43
|
text: string;
|
|
44
|
-
testId: string;
|
|
45
44
|
theme: string;
|
|
45
|
+
testId: string;
|
|
46
46
|
delay: number;
|
|
47
47
|
triggers: ("hover" | "click" | "focus" | "touch")[];
|
|
48
48
|
forceShowWithTruncate: boolean;
|
|
@@ -9,12 +9,12 @@ declare const TooltipTypes: () => import("vue").DefineComponent<{
|
|
|
9
9
|
} & {
|
|
10
10
|
default: any;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
theme: {
|
|
13
13
|
type: import("vue").PropType<string>;
|
|
14
14
|
} & {
|
|
15
15
|
default: string;
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
testId: {
|
|
18
18
|
type: import("vue").PropType<string>;
|
|
19
19
|
} & {
|
|
20
20
|
default: string;
|
|
@@ -55,12 +55,12 @@ declare const TooltipTypes: () => import("vue").DefineComponent<{
|
|
|
55
55
|
} & {
|
|
56
56
|
default: any;
|
|
57
57
|
};
|
|
58
|
-
|
|
58
|
+
theme: {
|
|
59
59
|
type: import("vue").PropType<string>;
|
|
60
60
|
} & {
|
|
61
61
|
default: string;
|
|
62
62
|
};
|
|
63
|
-
|
|
63
|
+
testId: {
|
|
64
64
|
type: import("vue").PropType<string>;
|
|
65
65
|
} & {
|
|
66
66
|
default: string;
|
|
@@ -93,8 +93,8 @@ declare const TooltipTypes: () => import("vue").DefineComponent<{
|
|
|
93
93
|
}>>, {
|
|
94
94
|
header: string;
|
|
95
95
|
text: string;
|
|
96
|
-
testId: string;
|
|
97
96
|
theme: string;
|
|
97
|
+
testId: string;
|
|
98
98
|
delay: number;
|
|
99
99
|
triggers: ("hover" | "click" | "focus" | "touch")[];
|
|
100
100
|
forceShowWithTruncate: boolean;
|
|
@@ -30,14 +30,14 @@ declare const TypographyTypes: () => (import("vue").DefineComponent<{
|
|
|
30
30
|
level: "label" | "1" | "2" | "3" | "4" | "5" | "6";
|
|
31
31
|
testId: string;
|
|
32
32
|
}> | import("vue").DefineComponent<{
|
|
33
|
+
strong: {
|
|
34
|
+
type: import("vue").PropType<boolean>;
|
|
35
|
+
};
|
|
33
36
|
size: {
|
|
34
|
-
type: import("vue").PropType<"
|
|
37
|
+
type: import("vue").PropType<"caption" | "md" | "sm" | "lg" | "xs">;
|
|
35
38
|
} & {
|
|
36
39
|
default: string;
|
|
37
40
|
};
|
|
38
|
-
strong: {
|
|
39
|
-
type: import("vue").PropType<boolean>;
|
|
40
|
-
};
|
|
41
41
|
testId: {
|
|
42
42
|
type: import("vue").PropType<string>;
|
|
43
43
|
} & {
|
|
@@ -47,14 +47,14 @@ declare const TypographyTypes: () => (import("vue").DefineComponent<{
|
|
|
47
47
|
type: import("vue").PropType<boolean>;
|
|
48
48
|
};
|
|
49
49
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
+
strong: {
|
|
51
|
+
type: import("vue").PropType<boolean>;
|
|
52
|
+
};
|
|
50
53
|
size: {
|
|
51
|
-
type: import("vue").PropType<"
|
|
54
|
+
type: import("vue").PropType<"caption" | "md" | "sm" | "lg" | "xs">;
|
|
52
55
|
} & {
|
|
53
56
|
default: string;
|
|
54
57
|
};
|
|
55
|
-
strong: {
|
|
56
|
-
type: import("vue").PropType<boolean>;
|
|
57
|
-
};
|
|
58
58
|
testId: {
|
|
59
59
|
type: import("vue").PropType<string>;
|
|
60
60
|
} & {
|
|
@@ -64,7 +64,7 @@ declare const TypographyTypes: () => (import("vue").DefineComponent<{
|
|
|
64
64
|
type: import("vue").PropType<boolean>;
|
|
65
65
|
};
|
|
66
66
|
}>>, {
|
|
67
|
-
size: "
|
|
67
|
+
size: "caption" | "md" | "sm" | "lg" | "xs";
|
|
68
68
|
testId: string;
|
|
69
69
|
}>)[];
|
|
70
70
|
export { default as Heading } from './Heading.vue';
|