@ironsource/shared-ui 1.4.2-test.7 → 1.4.2
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/AutocompleteDropdown.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/CalendarMonth.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Checkbox.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/DatePicker.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/DatePickerMonth.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- 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/DollarInput.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/FilterDropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/FiltersPanel.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/Heading.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/Input.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Menu.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/README.md +1 -1
- package/RadioButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/RadioGroup.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/Switch.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/Tabs.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Text.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/TextWithTitleContent.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/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 +6 -1
- package/components/appTrigger/AppTrigger.vue.js +49 -39
- package/components/appTrigger/index.d.ts +12 -1
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.d.ts +6 -1
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.js +20 -19
- package/components/autocompleteDropdown/AutocompleteInput.vue.d.ts +6 -1
- package/components/autocompleteDropdown/AutocompleteInput.vue.js +19 -13
- package/components/autocompleteDropdown/GroupOption.vue.d.ts +1 -1
- package/components/autocompleteDropdown/GroupOption.vue.js +3 -4
- package/components/autocompleteDropdown/index.d.ts +12 -1
- package/components/banner/Banner.vue.d.ts +10 -1
- package/components/banner/Banner.vue.js +24 -13
- package/components/banner/index.d.ts +10 -1
- package/components/button/Button.vue.d.ts +6 -1
- package/components/button/Button.vue.js +17 -15
- 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 +20 -9
- package/components/checkbox/Checkbox.vue.d.ts +6 -1
- package/components/checkbox/Checkbox.vue.js +33 -28
- package/components/checkbox/index.d.ts +12 -1
- package/components/chip/Chip.vue.d.ts +6 -1
- package/components/chip/Chip.vue.js +16 -11
- package/components/chip/index.d.ts +12 -1
- package/components/datePicker/DatePicker.vue.d.ts +6 -1
- package/components/datePicker/DatePicker.vue.js +22 -17
- package/components/datePicker/DatePickerMonth.vue.d.ts +6 -1
- package/components/datePicker/DatePickerMonth.vue.js +9 -7
- package/components/datePicker/index.d.ts +12 -1
- package/components/dateRange/CalendarMonth.vue.d.ts +6 -1
- package/components/dateRange/CalendarMonth.vue.js +58 -41
- package/components/dateRange/DateRange.vue.d.ts +6 -1
- package/components/dateRange/DateRange.vue.js +72 -61
- package/components/dateRange/DateRangePicker.vue.d.ts +6 -1
- package/components/dateRange/index.d.ts +12 -1
- package/components/dialog/Dialog.vue.d.ts +6 -1
- package/components/dialog/Dialog.vue.js +49 -34
- package/components/dialog/index.d.ts +12 -1
- package/components/dropdown/Dropdown.vue.d.ts +6 -1
- package/components/dropdown/Dropdown.vue.js +112 -88
- 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 +409 -1
- package/components/emptyState/EmptyState.vue.d.ts +1 -1
- package/components/emptyState/EmptyState.vue.js +19 -21
- package/components/emptyState/index.d.ts +4 -4
- package/components/filterDropdown/AddFilterButton.vue.d.ts +3 -1
- package/components/filterDropdown/AddFilterButton.vue.js +11 -9
- package/components/filterDropdown/FilterDropdown.vue.d.ts +6 -1
- package/components/filterDropdown/FilterDropdown.vue.js +21 -20
- package/components/filterDropdown/index.d.ts +19 -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 +6 -1
- package/components/filtersPanel/FiltersPanel.vue.js +15 -12
- 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 -5
- package/components/icon/icons/index.d.ts +0 -3
- package/components/icon/icons/index.vue.js +0 -3
- package/components/icon/index.d.ts +1 -4
- 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 +6 -14
- package/components/includeExclude/IncludeExclude.vue.js +123 -187
- package/components/includeExclude/IncludeExcludeAppHeader.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeAppHeader.vue.js +22 -24
- 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/includeExcludeMocks.d.ts +0 -12
- package/components/includeExclude/index.d.ts +28 -32
- package/components/includeExclude/index.vue.js +0 -3
- package/components/input/DollarInput.vue.d.ts +2 -2
- package/components/input/DollarInput.vue.js +3 -4
- package/components/input/Input.vue.d.ts +11 -1
- package/components/input/Input.vue.js +87 -64
- 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 +36 -2
- package/components/menu/Menu.vue.d.ts +6 -1
- package/components/menu/Menu.vue.js +10 -8
- package/components/menu/index.d.ts +12 -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 +6 -1
- package/components/popover/Popover.vue.js +11 -9
- package/components/popover/index.d.ts +12 -1
- package/components/radioButton/RadioButton.vue.d.ts +6 -1
- package/components/radioButton/RadioButton.vue.js +24 -17
- package/components/radioButton/RadioGroup.vue.d.ts +6 -1
- package/components/radioButton/RadioGroup.vue.js +12 -8
- package/components/radioButton/index.d.ts +24 -2
- package/components/radioButton/useRadio.d.ts +1 -1
- package/components/search/Search.vue.d.ts +6 -1
- package/components/search/Search.vue.js +27 -21
- package/components/search/index.d.ts +12 -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 +6 -1
- package/components/switch/Switch.vue.js +24 -16
- package/components/switch/index.d.ts +12 -1
- package/components/table/Table.types.d.ts +0 -1
- package/components/table/Table.vue.d.ts +6 -11
- package/components/table/Table.vue.js +80 -79
- package/components/table/TableHeaderSorter.vue.d.ts +1 -1
- package/components/table/TableHeaderSorter.vue.js +4 -4
- package/components/table/index.d.ts +12 -23
- 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 +6 -1
- package/components/tabs/Tabs.vue.js +29 -25
- package/components/tabs/index.d.ts +12 -1
- package/components/textArea/TextArea.vue.d.ts +6 -1
- package/components/textArea/TextArea.vue.js +32 -26
- package/components/textArea/index.d.ts +12 -1
- package/components/toggle/Toggle.vue.d.ts +11 -1
- package/components/toggle/Toggle.vue.js +48 -32
- package/components/toggle/index.d.ts +23 -1
- package/components/tooltip/TextWithTitleContent.vue.d.ts +16 -3
- package/components/tooltip/TextWithTitleContent.vue.js +17 -13
- package/components/tooltip/Tooltip.vue.d.ts +6 -1
- package/components/tooltip/Tooltip.vue.js +18 -15
- package/components/tooltip/index.d.ts +12 -1
- package/components/tooltip/storybookComponents/CustomTooltip.vue.d.ts +1 -1
- package/components/typography/Heading.vue.d.ts +6 -1
- package/components/typography/Heading.vue.js +10 -7
- package/components/typography/Text.vue.d.ts +6 -1
- package/components/typography/Text.vue.js +10 -6
- package/components/typography/index.d.ts +24 -2
- package/consts/regex.d.ts +1 -0
- package/consts/regex.vue.js +3 -0
- package/consts/style.d.ts +1 -0
- package/consts/style.vue.js +3 -0
- package/index.vue.js +3 -4
- package/package.json +4 -5
- package/testids/index.d.ts +146 -0
- package/testids/index.vue.js +170 -0
- package/utils/style.d.ts +1 -0
- package/utils/style.vue.js +5 -0
- package/IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_true_lang.css +0 -1
- package/components/icon/icons/TableEdit.vue.d.ts +0 -2
- package/components/icon/icons/TableEdit.vue.js +0 -24
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +0 -43
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.js +0 -123
- package/components/table/Pagination.vue.d.ts +0 -43
|
@@ -18,6 +18,11 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
18
18
|
} & {
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
|
+
testId: {
|
|
22
|
+
type: import("vue").PropType<string>;
|
|
23
|
+
} & {
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
21
26
|
disabled: {
|
|
22
27
|
type: import("vue").PropType<boolean>;
|
|
23
28
|
} & {
|
|
@@ -83,6 +88,11 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
83
88
|
} & {
|
|
84
89
|
default: string;
|
|
85
90
|
};
|
|
91
|
+
onlyDigits: {
|
|
92
|
+
type: import("vue").PropType<boolean>;
|
|
93
|
+
} & {
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
86
96
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
87
97
|
"update:modelValue": (value: string | number) => void;
|
|
88
98
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -101,6 +111,11 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
101
111
|
} & {
|
|
102
112
|
default: string;
|
|
103
113
|
};
|
|
114
|
+
testId: {
|
|
115
|
+
type: import("vue").PropType<string>;
|
|
116
|
+
} & {
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
104
119
|
disabled: {
|
|
105
120
|
type: import("vue").PropType<boolean>;
|
|
106
121
|
} & {
|
|
@@ -166,12 +181,18 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
166
181
|
} & {
|
|
167
182
|
default: string;
|
|
168
183
|
};
|
|
184
|
+
onlyDigits: {
|
|
185
|
+
type: import("vue").PropType<boolean>;
|
|
186
|
+
} & {
|
|
187
|
+
default: boolean;
|
|
188
|
+
};
|
|
169
189
|
}>> & {
|
|
170
190
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
171
191
|
}, {
|
|
172
192
|
size: "sm" | "lg";
|
|
173
193
|
label: string;
|
|
174
194
|
type: "number" | "text" | "password";
|
|
195
|
+
testId: string;
|
|
175
196
|
disabled: boolean;
|
|
176
197
|
modelValue: string | number;
|
|
177
198
|
placeholder: string;
|
|
@@ -185,7 +206,8 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
185
206
|
step: number;
|
|
186
207
|
hoverHelpText: string;
|
|
187
208
|
hoverHelpTextPlacement: "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";
|
|
188
|
-
|
|
209
|
+
onlyDigits: boolean;
|
|
210
|
+
}> | import("vue").DefineComponent<{
|
|
189
211
|
ref: {
|
|
190
212
|
type: import("vue").PropType<import("vue").VNodeRef>;
|
|
191
213
|
};
|
|
@@ -198,6 +220,9 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
198
220
|
style: {
|
|
199
221
|
type: import("vue").PropType<unknown>;
|
|
200
222
|
};
|
|
223
|
+
testId: {
|
|
224
|
+
type: import("vue").PropType<string>;
|
|
225
|
+
};
|
|
201
226
|
key: {
|
|
202
227
|
type: import("vue").PropType<string | number | symbol>;
|
|
203
228
|
};
|
|
@@ -296,6 +321,9 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
296
321
|
hoverHelpTextPlacement: {
|
|
297
322
|
type: import("vue").PropType<"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">;
|
|
298
323
|
};
|
|
324
|
+
onlyDigits: {
|
|
325
|
+
type: import("vue").PropType<boolean>;
|
|
326
|
+
};
|
|
299
327
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
300
328
|
"update:modelValue": (value: number) => void;
|
|
301
329
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -311,6 +339,9 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
311
339
|
style: {
|
|
312
340
|
type: import("vue").PropType<unknown>;
|
|
313
341
|
};
|
|
342
|
+
testId: {
|
|
343
|
+
type: import("vue").PropType<string>;
|
|
344
|
+
};
|
|
314
345
|
key: {
|
|
315
346
|
type: import("vue").PropType<string | number | symbol>;
|
|
316
347
|
};
|
|
@@ -409,7 +440,10 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
|
|
|
409
440
|
hoverHelpTextPlacement: {
|
|
410
441
|
type: import("vue").PropType<"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">;
|
|
411
442
|
};
|
|
443
|
+
onlyDigits: {
|
|
444
|
+
type: import("vue").PropType<boolean>;
|
|
445
|
+
};
|
|
412
446
|
}>> & {
|
|
413
447
|
"onUpdate:modelValue"?: (value: number) => any;
|
|
414
|
-
}, {}
|
|
448
|
+
}, {}>)[];
|
|
415
449
|
export { Input, DollarInput, PercentageInput, PasswordInput, InputTypes };
|
|
@@ -4,31 +4,36 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
4
4
|
theme?: string;
|
|
5
5
|
skidding?: number;
|
|
6
6
|
container?: string;
|
|
7
|
+
testId?: string;
|
|
7
8
|
}>, {
|
|
8
9
|
isOnTop: boolean;
|
|
9
10
|
theme: string;
|
|
10
11
|
container: string;
|
|
11
12
|
distance: number;
|
|
12
13
|
skidding: number;
|
|
14
|
+
testId: string;
|
|
13
15
|
}>, {}, 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<{
|
|
14
16
|
isOnTop?: boolean;
|
|
15
17
|
distance?: number;
|
|
16
18
|
theme?: string;
|
|
17
19
|
skidding?: number;
|
|
18
20
|
container?: string;
|
|
21
|
+
testId?: string;
|
|
19
22
|
}>, {
|
|
20
23
|
isOnTop: boolean;
|
|
21
24
|
theme: string;
|
|
22
25
|
container: string;
|
|
23
26
|
distance: number;
|
|
24
27
|
skidding: number;
|
|
28
|
+
testId: string;
|
|
25
29
|
}>>>, {
|
|
30
|
+
testId: string;
|
|
26
31
|
theme: string;
|
|
27
32
|
isOnTop: boolean;
|
|
28
33
|
distance: number;
|
|
29
34
|
skidding: number;
|
|
30
35
|
container: string;
|
|
31
|
-
}
|
|
36
|
+
}>;
|
|
32
37
|
export default _default;
|
|
33
38
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
34
39
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -5,14 +5,15 @@ import { useToggle } from '../../composables/useToggle.vue.js';
|
|
|
5
5
|
/* empty css *//* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
6
6
|
|
|
7
7
|
import "../../Menu.vue_vue_type_style_index_0_scoped_true_lang.css";import "../../Menu.vue_vue_type_style_index_1_lang.css";
|
|
8
|
-
const _sfc_main = defineComponent({
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "Menu",
|
|
10
10
|
props: {
|
|
11
11
|
isOnTop: { type: Boolean, default: true },
|
|
12
12
|
distance: { default: 0 },
|
|
13
13
|
theme: { default: "dropdown" },
|
|
14
14
|
skidding: { default: 0 },
|
|
15
|
-
container: { default: "body" }
|
|
15
|
+
container: { default: "body" },
|
|
16
|
+
testId: { default: "" }
|
|
16
17
|
},
|
|
17
18
|
setup(__props) {
|
|
18
19
|
const [open, toggle] = useToggle({ initialValue: false });
|
|
@@ -38,11 +39,12 @@ const _sfc_main = defineComponent({
|
|
|
38
39
|
triggers: [],
|
|
39
40
|
shown: unref(open),
|
|
40
41
|
placement: "auto-start",
|
|
41
|
-
container:
|
|
42
|
+
container: __props.container,
|
|
42
43
|
flip: "",
|
|
43
|
-
distance:
|
|
44
|
-
skidding:
|
|
45
|
-
"auto-hide": false
|
|
44
|
+
distance: __props.isOnTop ? unref(skiddingOffset) : __props.distance,
|
|
45
|
+
skidding: __props.isOnTop ? -unref(location)?.height / 2 : __props.distance,
|
|
46
|
+
"auto-hide": false,
|
|
47
|
+
"test-id": __props.testId
|
|
46
48
|
}, {
|
|
47
49
|
popper: withCtx(() => [
|
|
48
50
|
createElementVNode("div", {
|
|
@@ -64,10 +66,10 @@ const _sfc_main = defineComponent({
|
|
|
64
66
|
], 512)
|
|
65
67
|
]),
|
|
66
68
|
_: 3
|
|
67
|
-
}, 8, ["shown", "container", "distance", "skidding"]);
|
|
69
|
+
}, 8, ["shown", "container", "distance", "skidding", "test-id"]);
|
|
68
70
|
};
|
|
69
71
|
}
|
|
70
72
|
});
|
|
71
|
-
var Menu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
73
|
+
var Menu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8f8ffdce"]]);
|
|
72
74
|
|
|
73
75
|
export { Menu as default };
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
declare const MenuTypes: () => import("vue").DefineComponent<{
|
|
2
|
+
testId: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
} & {
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
2
7
|
theme: {
|
|
3
8
|
type: import("vue").PropType<string>;
|
|
4
9
|
} & {
|
|
@@ -25,6 +30,11 @@ declare const MenuTypes: () => import("vue").DefineComponent<{
|
|
|
25
30
|
default: string;
|
|
26
31
|
};
|
|
27
32
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
testId: {
|
|
34
|
+
type: import("vue").PropType<string>;
|
|
35
|
+
} & {
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
28
38
|
theme: {
|
|
29
39
|
type: import("vue").PropType<string>;
|
|
30
40
|
} & {
|
|
@@ -51,11 +61,12 @@ declare const MenuTypes: () => import("vue").DefineComponent<{
|
|
|
51
61
|
default: string;
|
|
52
62
|
};
|
|
53
63
|
}>>, {
|
|
64
|
+
testId: string;
|
|
54
65
|
theme: string;
|
|
55
66
|
isOnTop: boolean;
|
|
56
67
|
distance: number;
|
|
57
68
|
skidding: number;
|
|
58
69
|
container: string;
|
|
59
|
-
}
|
|
70
|
+
}>[];
|
|
60
71
|
export { default as Menu } from './Menu.vue';
|
|
61
72
|
export { MenuTypes };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
2
|
export default _default;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import '../typography/Heading.vue.js';
|
|
2
|
-
import Text from '../typography/Text.vue.js';
|
|
3
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createVNode, withCtx } from 'vue';
|
|
4
|
-
/* empty css
|
|
5
|
-
|
|
2
|
+
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
3
|
+
import Text from '../typography/Text.vue.js';
|
|
4
|
+
/* empty css */
|
|
6
5
|
import "../../MenuItem.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
7
6
|
const _sfc_main = {
|
|
8
7
|
components: { Text },
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const MenuItemTypes: () => import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}
|
|
1
|
+
declare const MenuItemTypes: () => import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>[];
|
|
2
2
|
export { default as MenuItem } from './MenuItem.vue';
|
|
3
3
|
export { MenuItemTypes };
|
|
@@ -7,6 +7,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
7
7
|
placement?: Placement;
|
|
8
8
|
distance?: number;
|
|
9
9
|
skidding?: number;
|
|
10
|
+
testId?: string;
|
|
10
11
|
}>, {
|
|
11
12
|
trigger: string;
|
|
12
13
|
autoHide: boolean;
|
|
@@ -14,6 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
14
15
|
placement: string;
|
|
15
16
|
distance: number;
|
|
16
17
|
skidding: number;
|
|
18
|
+
testId: string;
|
|
17
19
|
}>, {}, 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<{
|
|
18
20
|
open: boolean;
|
|
19
21
|
autoHide?: boolean;
|
|
@@ -22,6 +24,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
22
24
|
placement?: Placement;
|
|
23
25
|
distance?: number;
|
|
24
26
|
skidding?: number;
|
|
27
|
+
testId?: string;
|
|
25
28
|
}>, {
|
|
26
29
|
trigger: string;
|
|
27
30
|
autoHide: boolean;
|
|
@@ -29,14 +32,16 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
29
32
|
placement: string;
|
|
30
33
|
distance: number;
|
|
31
34
|
skidding: number;
|
|
35
|
+
testId: string;
|
|
32
36
|
}>>>, {
|
|
37
|
+
testId: string;
|
|
33
38
|
placement: Placement;
|
|
34
39
|
disabled: boolean;
|
|
35
40
|
distance: number;
|
|
36
41
|
skidding: number;
|
|
37
42
|
autoHide: boolean;
|
|
38
43
|
trigger: 'click' | 'hover' | 'focus' | 'touch' | 'managed';
|
|
39
|
-
}
|
|
44
|
+
}>;
|
|
40
45
|
export default _default;
|
|
41
46
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
42
47
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -2,7 +2,7 @@ import { defineComponent, openBlock, createBlock, unref, withCtx, renderSlot } f
|
|
|
2
2
|
import { Dropdown } from 'floating-vue';
|
|
3
3
|
/* empty css */
|
|
4
4
|
import "../../Popover.vue_vue_type_style_index_0_lang.css";
|
|
5
|
-
const _sfc_main = defineComponent({
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "Popover",
|
|
7
7
|
props: {
|
|
8
8
|
open: { type: Boolean },
|
|
@@ -11,18 +11,20 @@ const _sfc_main = defineComponent({
|
|
|
11
11
|
disabled: { type: Boolean, default: false },
|
|
12
12
|
placement: { default: "bottom-start" },
|
|
13
13
|
distance: { default: 0 },
|
|
14
|
-
skidding: { default: 0 }
|
|
14
|
+
skidding: { default: 0 },
|
|
15
|
+
testId: { default: "" }
|
|
15
16
|
},
|
|
16
17
|
setup(__props) {
|
|
17
18
|
return (_ctx, _cache) => {
|
|
18
19
|
return openBlock(), createBlock(unref(Dropdown), {
|
|
19
20
|
theme: "custom-popover",
|
|
20
|
-
placement:
|
|
21
|
-
shown: !!
|
|
22
|
-
triggers:
|
|
23
|
-
"auto-hide":
|
|
24
|
-
distance:
|
|
25
|
-
skidding:
|
|
21
|
+
placement: __props.placement,
|
|
22
|
+
shown: !!__props.open,
|
|
23
|
+
triggers: __props.trigger === "managed" ? [] : [__props.trigger],
|
|
24
|
+
"auto-hide": __props.autoHide,
|
|
25
|
+
distance: __props.distance,
|
|
26
|
+
skidding: __props.skidding,
|
|
27
|
+
"data-testid": __props.testId
|
|
26
28
|
}, {
|
|
27
29
|
popper: withCtx(({ hide }) => [
|
|
28
30
|
renderSlot(_ctx.$slots, "content", { hide })
|
|
@@ -31,7 +33,7 @@ const _sfc_main = defineComponent({
|
|
|
31
33
|
renderSlot(_ctx.$slots, "trigger")
|
|
32
34
|
]),
|
|
33
35
|
_: 3
|
|
34
|
-
}, 8, ["placement", "shown", "triggers", "auto-hide", "distance", "skidding"]);
|
|
36
|
+
}, 8, ["placement", "shown", "triggers", "auto-hide", "distance", "skidding", "data-testid"]);
|
|
35
37
|
};
|
|
36
38
|
}
|
|
37
39
|
});
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
declare const PopoverTypes: () => import("vue").DefineComponent<{
|
|
2
|
+
testId: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
} & {
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
2
7
|
placement: {
|
|
3
8
|
type: import("vue").PropType<import("floating-vue").Placement>;
|
|
4
9
|
} & {
|
|
@@ -34,6 +39,11 @@ declare const PopoverTypes: () => import("vue").DefineComponent<{
|
|
|
34
39
|
default: string;
|
|
35
40
|
};
|
|
36
41
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
testId: {
|
|
43
|
+
type: import("vue").PropType<string>;
|
|
44
|
+
} & {
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
37
47
|
placement: {
|
|
38
48
|
type: import("vue").PropType<import("floating-vue").Placement>;
|
|
39
49
|
} & {
|
|
@@ -69,12 +79,13 @@ declare const PopoverTypes: () => import("vue").DefineComponent<{
|
|
|
69
79
|
default: string;
|
|
70
80
|
};
|
|
71
81
|
}>>, {
|
|
82
|
+
testId: string;
|
|
72
83
|
placement: import("floating-vue").Placement;
|
|
73
84
|
disabled: boolean;
|
|
74
85
|
distance: number;
|
|
75
86
|
skidding: number;
|
|
76
87
|
autoHide: boolean;
|
|
77
88
|
trigger: "hover" | "click" | "focus" | "touch" | "managed";
|
|
78
|
-
}
|
|
89
|
+
}>[];
|
|
79
90
|
export { default as Popover } from './Popover.vue';
|
|
80
91
|
export { PopoverTypes };
|
|
@@ -4,34 +4,39 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
4
4
|
helperText?: string;
|
|
5
5
|
errorText?: string;
|
|
6
6
|
modelValue?: string;
|
|
7
|
+
testId?: string;
|
|
7
8
|
}>, {
|
|
8
9
|
label: string;
|
|
9
10
|
name: string;
|
|
10
11
|
helperText: string;
|
|
11
12
|
errorText: string;
|
|
12
13
|
modelValue: any;
|
|
14
|
+
testId: string;
|
|
13
15
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
14
16
|
label: string;
|
|
15
17
|
name?: string;
|
|
16
18
|
helperText?: string;
|
|
17
19
|
errorText?: string;
|
|
18
20
|
modelValue?: string;
|
|
21
|
+
testId?: string;
|
|
19
22
|
}>, {
|
|
20
23
|
label: string;
|
|
21
24
|
name: string;
|
|
22
25
|
helperText: string;
|
|
23
26
|
errorText: string;
|
|
24
27
|
modelValue: any;
|
|
28
|
+
testId: string;
|
|
25
29
|
}>>> & {
|
|
26
30
|
onChange?: (...args: any[]) => any;
|
|
27
31
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
28
32
|
}, {
|
|
29
33
|
name: string;
|
|
30
34
|
label: string;
|
|
35
|
+
testId: string;
|
|
31
36
|
modelValue: string;
|
|
32
37
|
helperText: string;
|
|
33
38
|
errorText: string;
|
|
34
|
-
}
|
|
39
|
+
}>;
|
|
35
40
|
export default _default;
|
|
36
41
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
37
42
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, withDirectives, isRef, vModelRadio, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString, createBlock, createCommentVNode } from 'vue';
|
|
2
2
|
import Text from '../typography/Text.vue.js';
|
|
3
3
|
import { useRadio } from './useRadio.vue.js';
|
|
4
|
+
import { RadioTestIdModifiers } from '../../testids/index.vue.js';
|
|
4
5
|
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
5
6
|
|
|
6
7
|
import "../../RadioButton.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
7
8
|
const _hoisted_1 = { class: "wrapper" };
|
|
8
|
-
const _hoisted_2 = ["value", "name", "disabled"];
|
|
9
|
-
const _hoisted_3 =
|
|
10
|
-
const _sfc_main = defineComponent({
|
|
9
|
+
const _hoisted_2 = ["value", "name", "disabled", "data-testid"];
|
|
10
|
+
const _hoisted_3 = ["data-testid"];
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
12
|
__name: "RadioButton",
|
|
12
13
|
props: {
|
|
13
14
|
label: { default: "" },
|
|
14
15
|
name: { default: "" },
|
|
15
16
|
helperText: { default: "" },
|
|
16
17
|
errorText: { default: "" },
|
|
17
|
-
modelValue: { default: void 0 }
|
|
18
|
+
modelValue: { default: void 0 },
|
|
19
|
+
testId: { default: "" }
|
|
18
20
|
},
|
|
19
21
|
emits: ["update:modelValue", "change"],
|
|
20
22
|
setup(__props, { emit }) {
|
|
@@ -32,53 +34,58 @@ const _sfc_main = defineComponent({
|
|
|
32
34
|
ref_key: "radioRef",
|
|
33
35
|
ref: radioRef,
|
|
34
36
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
35
|
-
value:
|
|
36
|
-
name:
|
|
37
|
+
value: __props.label,
|
|
38
|
+
name: __props.name || unref(radioGroup)?.name,
|
|
37
39
|
type: "radio",
|
|
38
40
|
disabled: unref(disabled),
|
|
41
|
+
"data-testid": `${__props.testId}-${unref(RadioTestIdModifiers).FIELD}`,
|
|
39
42
|
onFocus: _cache[1] || (_cache[1] = ($event) => focus.value = true),
|
|
40
43
|
onBlur: _cache[2] || (_cache[2] = ($event) => focus.value = false)
|
|
41
44
|
}, null, 40, _hoisted_2), [
|
|
42
45
|
[vModelRadio, unref(modelValue)]
|
|
43
46
|
]),
|
|
44
47
|
createElementVNode("span", {
|
|
45
|
-
class: normalizeClass([{ "circle--selected": unref(modelValue) ===
|
|
48
|
+
class: normalizeClass([{ "circle--selected": unref(modelValue) === __props.label }, "circle"])
|
|
46
49
|
}, null, 2)
|
|
47
50
|
]),
|
|
48
|
-
createElementVNode("span",
|
|
51
|
+
createElementVNode("span", {
|
|
52
|
+
class: "label",
|
|
53
|
+
"data-testid": `${__props.testId}-${unref(RadioTestIdModifiers).LABEL}`
|
|
54
|
+
}, [
|
|
49
55
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
50
56
|
createVNode(Text, { "is-truncated": "" }, {
|
|
51
57
|
default: withCtx(() => [
|
|
52
|
-
createTextVNode(toDisplayString(
|
|
58
|
+
createTextVNode(toDisplayString(__props.label), 1)
|
|
53
59
|
]),
|
|
54
60
|
_: 1
|
|
55
61
|
})
|
|
56
62
|
], true),
|
|
57
|
-
!
|
|
63
|
+
!__props.errorText && __props.helperText ? (openBlock(), createBlock(Text, {
|
|
58
64
|
key: 0,
|
|
59
65
|
class: "helper-text--text helper-text",
|
|
60
66
|
size: "caption"
|
|
61
67
|
}, {
|
|
62
68
|
default: withCtx(() => [
|
|
63
|
-
createTextVNode(toDisplayString(
|
|
69
|
+
createTextVNode(toDisplayString(__props.helperText), 1)
|
|
64
70
|
]),
|
|
65
71
|
_: 1
|
|
66
72
|
})) : createCommentVNode("", true),
|
|
67
|
-
|
|
73
|
+
__props.errorText ? (openBlock(), createBlock(Text, {
|
|
68
74
|
key: 1,
|
|
69
75
|
size: "caption",
|
|
70
|
-
class: "helper-text--error helper-text"
|
|
76
|
+
class: "helper-text--error helper-text",
|
|
77
|
+
"data-testid": `${__props.testId}-${unref(RadioTestIdModifiers).ERROR_TEXT}`
|
|
71
78
|
}, {
|
|
72
79
|
default: withCtx(() => [
|
|
73
|
-
createTextVNode(toDisplayString(
|
|
80
|
+
createTextVNode(toDisplayString(__props.errorText), 1)
|
|
74
81
|
]),
|
|
75
82
|
_: 1
|
|
76
|
-
})) : createCommentVNode("", true)
|
|
77
|
-
])
|
|
83
|
+
}, 8, ["data-testid"])) : createCommentVNode("", true)
|
|
84
|
+
], 8, _hoisted_3)
|
|
78
85
|
], 2);
|
|
79
86
|
};
|
|
80
87
|
}
|
|
81
88
|
});
|
|
82
|
-
var RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
89
|
+
var RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5b237369"]]);
|
|
83
90
|
|
|
84
91
|
export { RadioButton as default };
|
|
@@ -3,29 +3,34 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
modelValue: string;
|
|
5
5
|
row?: boolean;
|
|
6
|
+
testId?: string;
|
|
6
7
|
}>, {
|
|
7
8
|
disabled: boolean;
|
|
8
9
|
label: string;
|
|
9
10
|
name: string;
|
|
10
11
|
row: boolean;
|
|
12
|
+
testId: string;
|
|
11
13
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
14
|
name?: string;
|
|
13
15
|
disabled?: boolean;
|
|
14
16
|
modelValue: string;
|
|
15
17
|
row?: boolean;
|
|
18
|
+
testId?: string;
|
|
16
19
|
}>, {
|
|
17
20
|
disabled: boolean;
|
|
18
21
|
label: string;
|
|
19
22
|
name: string;
|
|
20
23
|
row: boolean;
|
|
24
|
+
testId: string;
|
|
21
25
|
}>>> & {
|
|
22
26
|
onChange?: (...args: any[]) => any;
|
|
23
27
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
24
28
|
}, {
|
|
25
29
|
name: string;
|
|
30
|
+
testId: string;
|
|
26
31
|
disabled: boolean;
|
|
27
32
|
row: boolean;
|
|
28
|
-
}
|
|
33
|
+
}>;
|
|
29
34
|
export default _default;
|
|
30
35
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
31
36
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, computed, provide, reactive, toRefs, openBlock, createElementBlock, normalizeClass, renderSlot, nextTick } from 'vue';
|
|
1
|
+
import { defineComponent, ref, onMounted, computed, provide, reactive, toRefs, openBlock, createElementBlock, normalizeClass, unref, renderSlot, nextTick } from 'vue';
|
|
2
2
|
import { useId } from '../../composables/useId.vue.js';
|
|
3
3
|
import { radioGroupKey } from './useRadio.vue.js';
|
|
4
|
+
import { RadioTestIdModifiers } from '../../testids/index.vue.js';
|
|
4
5
|
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
5
6
|
|
|
6
7
|
import "../../RadioGroup.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
7
|
-
const
|
|
8
|
+
const _hoisted_1 = ["data-testid"];
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
10
|
__name: "RadioGroup",
|
|
9
11
|
props: {
|
|
10
12
|
name: { default: "" },
|
|
11
13
|
disabled: { type: Boolean, default: false },
|
|
12
|
-
modelValue:
|
|
13
|
-
row: { type: Boolean, default: false }
|
|
14
|
+
modelValue: null,
|
|
15
|
+
row: { type: Boolean, default: false },
|
|
16
|
+
testId: { default: "" }
|
|
14
17
|
},
|
|
15
18
|
emits: ["update:modelValue", "change"],
|
|
16
19
|
setup(__props, { emit }) {
|
|
@@ -43,14 +46,15 @@ const _sfc_main = defineComponent({
|
|
|
43
46
|
return openBlock(), createElementBlock("div", {
|
|
44
47
|
ref_key: "radioGroupRef",
|
|
45
48
|
ref: radioGroupRef,
|
|
46
|
-
class: normalizeClass([{ "radio-group--row":
|
|
47
|
-
role: "radiogroup"
|
|
49
|
+
class: normalizeClass([{ "radio-group--row": __props.row }, "radio-group"]),
|
|
50
|
+
role: "radiogroup",
|
|
51
|
+
"data-testid": `${__props.testId}-${unref(RadioTestIdModifiers).GROUP}`
|
|
48
52
|
}, [
|
|
49
53
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
50
|
-
],
|
|
54
|
+
], 10, _hoisted_1);
|
|
51
55
|
};
|
|
52
56
|
}
|
|
53
57
|
});
|
|
54
|
-
var RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
58
|
+
var RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5ec84e04"]]);
|
|
55
59
|
|
|
56
60
|
export { RadioGroup as default };
|