@ironsource/shared-ui 2.0.0-rc.6 → 2.0.0-rc.7

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.
Files changed (182) hide show
  1. package/ButtonV4.vue_vue_type_style_index_0_scoped_3fd2281b_lang.css +1 -0
  2. package/Checkbox.vue_vue_type_style_index_0_scoped_58dedb90_lang.css +1 -0
  3. package/CheckboxV4.vue_vue_type_style_index_0_scoped_ee3e6d82_lang.css +1 -0
  4. package/DataGrid.vue_vue_type_style_index_0_scoped_7a670808_lang.css +1 -0
  5. package/Dropdown.vue_vue_type_style_index_0_scoped_e8324d12_lang.css +1 -0
  6. package/FilterDropdown.vue_vue_type_style_index_0_scoped_1320b13b_lang.css +1 -0
  7. package/FilterSearchInput.vue_vue_type_style_index_0_scoped_51006ea0_lang.css +1 -0
  8. package/FiltersPanel.vue_vue_type_style_index_0_scoped_9d2f3413_lang.css +1 -0
  9. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +1 -0
  10. package/IncludeExclude.vue_vue_type_style_index_0_scoped_2a01a791_lang.css +1 -0
  11. package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_85bff8f4_lang.css +1 -0
  12. package/IncludeExcludeOption.vue_vue_type_style_index_0_scoped_91bc7787_lang.css +1 -0
  13. package/Label.vue_vue_type_style_index_0_scoped_48e00c04_lang.css +1 -0
  14. package/Option.vue_vue_type_style_index_0_scoped_3d6ce2fc_lang.css +1 -0
  15. package/OptionV4.vue_vue_type_style_index_0_scoped_92add735_lang.css +1 -0
  16. package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +1 -0
  17. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css +1 -0
  18. package/RadioGroup.vue_vue_type_style_index_0_scoped_3071ef24_lang.css +1 -0
  19. package/RadioGroupV4.vue_vue_type_style_index_0_scoped_f8e8cbab_lang.css +1 -0
  20. package/SearchInput.vue_vue_type_style_index_0_scoped_b256f8ef_lang.css +1 -0
  21. package/Snackbar.vue_vue_type_style_index_0_scoped_cec4f8e5_lang.css +1 -0
  22. package/SnackbarV4.vue_vue_type_style_index_0_scoped_48311746_lang.css +1 -0
  23. package/components/autocompleteDropdown/AutocompleteDropdown.vue2.js +3 -3
  24. package/components/button/common/ButtonSuper.vue.d.ts +6 -6
  25. package/components/button/v3/Button.vue.d.ts +6 -6
  26. package/components/button/v4/ButtonV4.vue.d.ts +11 -6
  27. package/components/button/v4/ButtonV4.vue.js +3 -3
  28. package/components/button/v4/ButtonV4.vue2.js +13 -10
  29. package/components/button/v4/index.d.ts +34 -15
  30. package/components/checkbox/common/Checkbox.common.d.ts +11 -0
  31. package/components/checkbox/common/Checkbox.common.js +32 -0
  32. package/components/checkbox/v3/Checkbox.vue.js +7 -0
  33. package/components/checkbox/v3/Checkbox.vue2.js +99 -0
  34. package/components/checkbox/{icons → v3/icons}/checked.vue.js +1 -1
  35. package/components/checkbox/{icons → v3/icons}/indeterminate.vue.js +1 -1
  36. package/components/checkbox/{icons → v3/icons}/unchecked.vue.js +1 -1
  37. package/components/checkbox/v4/CheckboxV4.vue.d.ts +53 -0
  38. package/components/checkbox/v4/CheckboxV4.vue.js +7 -0
  39. package/components/checkbox/v4/CheckboxV4.vue2.js +107 -0
  40. package/components/checkbox/v4/icons/CheckedDisabledState.vue.js +38 -0
  41. package/components/checkbox/v4/icons/CheckedState.vue.d.ts +2 -0
  42. package/components/checkbox/v4/icons/CheckedState.vue.js +38 -0
  43. package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.d.ts +2 -0
  44. package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.js +40 -0
  45. package/components/checkbox/v4/icons/IndeterminateState.vue.d.ts +2 -0
  46. package/components/checkbox/v4/icons/IndeterminateState.vue.js +40 -0
  47. package/components/checkbox/v4/icons/UncheckedDisabledState.vue.d.ts +2 -0
  48. package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +31 -0
  49. package/components/checkbox/v4/icons/UncheckedState.vue.d.ts +2 -0
  50. package/components/checkbox/v4/icons/UncheckedState.vue.js +31 -0
  51. package/components/checkbox/v4/index.d.ts +152 -0
  52. package/components/checkbox/v4/index.js +6 -0
  53. package/components/dropdown/v3/Dropdown.vue.js +2 -2
  54. package/components/dropdown/v3/Dropdown.vue2.js +3 -3
  55. package/components/dropdown/v3/Label.vue.js +7 -0
  56. package/components/dropdown/{common → v3}/Label.vue2.js +2 -2
  57. package/components/dropdown/v3/Option.vue.js +7 -0
  58. package/components/dropdown/{common → v3}/Option.vue2.js +3 -3
  59. package/components/dropdown/{common → v3}/SearchInput.vue.js +2 -2
  60. package/components/dropdown/{common → v3}/SearchInput.vue2.js +2 -2
  61. package/components/dropdown/v3/index.d.ts +3 -3
  62. package/components/dropdown/v3/index.js +3 -3
  63. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  64. package/components/dropdown/v4/OptionV4.vue2.js +2 -2
  65. package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
  66. package/components/emptyState/v3/index.d.ts +7 -7
  67. package/components/filterDropdown/FilterDropdown.vue.d.ts +1 -1
  68. package/components/filterDropdown/FilterDropdown.vue.js +2 -2
  69. package/components/filterDropdown/FilterDropdown.vue2.js +4 -4
  70. package/components/filterDropdown/index.d.ts +2 -2
  71. package/components/filtersPanel/v3/FilterSearchInput.vue.d.ts +2 -0
  72. package/components/filtersPanel/v3/FilterSearchInput.vue.js +7 -0
  73. package/components/filtersPanel/{FilterSearchInput.vue2.js → v3/FilterSearchInput.vue2.js} +6 -6
  74. package/components/filtersPanel/v3/FiltersPanel.vue.js +7 -0
  75. package/components/filtersPanel/{FiltersPanel.vue2.js → v3/FiltersPanel.vue2.js} +1 -1
  76. package/components/filtersPanel/v4/FiltersPanelV4.vue.d.ts +44 -0
  77. package/components/filtersPanel/v4/FiltersPanelV4.vue.js +7 -0
  78. package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +23 -0
  79. package/components/filtersPanel/v4/index.d.ts +101 -0
  80. package/components/filtersPanel/v4/index.js +6 -0
  81. package/components/filtersPanel/v4/storyConsts.d.ts +20 -0
  82. package/components/icon/icons/FiltersSearch.vue.d.ts +2 -0
  83. package/components/icon/v3/icons/index.d.ts +3 -0
  84. package/components/icon/v3/icons/index.js +3 -0
  85. package/components/icon/v3/index.d.ts +3 -0
  86. package/components/includeExclude/IncludeExclude.vue.js +3 -3
  87. package/components/includeExclude/IncludeExclude.vue2.js +2 -2
  88. package/components/includeExclude/IncludeExcludeDragDrop.vue.js +3 -3
  89. package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +2 -2
  90. package/components/includeExclude/IncludeExcludeOption.vue.js +5 -5
  91. package/components/includeExclude/IncludeExcludeOption.vue2.js +2 -2
  92. package/components/radioButton/common/radioGroup.common.d.ts +3 -0
  93. package/components/radioButton/common/radioGroup.common.js +26 -0
  94. package/components/radioButton/v3/RadioButton.vue.js +7 -0
  95. package/components/radioButton/v3/RadioButton.vue2.js +79 -0
  96. package/components/radioButton/v3/RadioGroup.vue.js +7 -0
  97. package/components/radioButton/v3/RadioGroup.vue2.js +29 -0
  98. package/components/radioButton/v4/RadioButtonV4.vue.d.ts +59 -0
  99. package/components/radioButton/v4/RadioButtonV4.vue.js +7 -0
  100. package/components/radioButton/v4/RadioButtonV4.vue2.js +67 -0
  101. package/components/radioButton/v4/RadioGroupV4.vue.d.ts +61 -0
  102. package/components/radioButton/v4/RadioGroupV4.vue.js +7 -0
  103. package/components/radioButton/v4/RadioGroupV4.vue2.js +29 -0
  104. package/components/radioButton/v4/index.d.ts +334 -0
  105. package/components/radioButton/v4/index.js +8 -0
  106. package/components/snackbar/common/notify.d.ts +3 -0
  107. package/components/snackbar/common/notify.js +82 -0
  108. package/components/snackbar/common/snackbar.common.d.ts +11 -0
  109. package/components/snackbar/common/snackbar.common.js +51 -0
  110. package/components/snackbar/v3/Snackbar.vue.js +7 -0
  111. package/components/snackbar/v3/Snackbar.vue2.js +129 -0
  112. package/components/snackbar/v3/index.d.ts +3 -0
  113. package/components/snackbar/v3/index.js +10 -0
  114. package/components/snackbar/v4/SnackbarV4.vue.d.ts +186 -0
  115. package/components/snackbar/v4/SnackbarV4.vue.js +7 -0
  116. package/components/snackbar/v4/SnackbarV4.vue2.js +137 -0
  117. package/components/snackbar/v4/index.d.ts +4 -0
  118. package/components/snackbar/v4/index.js +11 -0
  119. package/components/table/v4/DataGrid.vue.js +2 -2
  120. package/components/table/v4/DataGrid.vue2.js +28 -29
  121. package/index.d.ts +1255 -34
  122. package/index.js +145 -152
  123. package/package.json +40 -15
  124. package/testids/index.d.ts +8 -0
  125. package/testids/index.js +14 -13
  126. package/ButtonV4.vue_vue_type_style_index_0_scoped_43578f8c_lang.css +0 -1
  127. package/Checkbox.vue_vue_type_style_index_0_scoped_518c02d0_lang.css +0 -1
  128. package/DataGrid.vue_vue_type_style_index_0_scoped_f080f37f_lang.css +0 -1
  129. package/Dropdown.vue_vue_type_style_index_0_scoped_0114904e_lang.css +0 -1
  130. package/FilterDropdown.vue_vue_type_style_index_0_scoped_b25c5605_lang.css +0 -1
  131. package/FilterSearchInput.vue_vue_type_style_index_0_scoped_9198bf4e_lang.css +0 -1
  132. package/FiltersPanel.vue_vue_type_style_index_0_scoped_2996b384_lang.css +0 -1
  133. package/IncludeExclude.vue_vue_type_style_index_0_scoped_2c9debd6_lang.css +0 -1
  134. package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_ff32d111_lang.css +0 -1
  135. package/IncludeExcludeOption.vue_vue_type_style_index_0_scoped_4a87e4fd_lang.css +0 -1
  136. package/Label.vue_vue_type_style_index_0_scoped_5faaafce_lang.css +0 -1
  137. package/Option.vue_vue_type_style_index_0_scoped_2432f13f_lang.css +0 -1
  138. package/OptionV4.vue_vue_type_style_index_0_scoped_b879fe79_lang.css +0 -1
  139. package/RadioButton.vue_vue_type_style_index_0_scoped_f5d3359c_lang.css +0 -1
  140. package/RadioGroup.vue_vue_type_style_index_0_scoped_50bc6963_lang.css +0 -1
  141. package/SearchInput.vue_vue_type_style_index_0_scoped_0b1ea2f6_lang.css +0 -1
  142. package/Snackbar.vue_vue_type_style_index_0_scoped_d14230ca_lang.css +0 -1
  143. package/components/checkbox/Checkbox.vue.js +0 -7
  144. package/components/checkbox/Checkbox.vue2.js +0 -97
  145. package/components/dropdown/common/Label.vue.js +0 -7
  146. package/components/dropdown/common/Option.vue.js +0 -7
  147. package/components/filtersPanel/FilterSearchInput.vue.js +0 -7
  148. package/components/filtersPanel/FiltersPanel.vue.js +0 -7
  149. package/components/radioButton/RadioButton.vue.js +0 -7
  150. package/components/radioButton/RadioButton.vue2.js +0 -82
  151. package/components/radioButton/RadioGroup.vue.js +0 -7
  152. package/components/radioButton/RadioGroup.vue2.js +0 -44
  153. package/components/snackbar/Snackbar.vue.js +0 -7
  154. package/components/snackbar/Snackbar.vue2.js +0 -150
  155. package/components/snackbar/index.d.ts +0 -3
  156. package/components/snackbar/index.js +0 -6
  157. package/components/snackbar/notify.js +0 -84
  158. /package/components/checkbox/{Checkbox.vue.d.ts → v3/Checkbox.vue.d.ts} +0 -0
  159. /package/components/checkbox/{icons → v3/icons}/checked.vue.d.ts +0 -0
  160. /package/components/checkbox/{icons → v3/icons}/indeterminate.vue.d.ts +0 -0
  161. /package/components/checkbox/{icons → v3/icons}/unchecked.vue.d.ts +0 -0
  162. /package/components/checkbox/{index.d.ts → v3/index.d.ts} +0 -0
  163. /package/components/checkbox/{index.js → v3/index.js} +0 -0
  164. /package/components/{filtersPanel/FilterSearchInput.vue.d.ts → checkbox/v4/icons/CheckedDisabledState.vue.d.ts} +0 -0
  165. /package/components/dropdown/{common → v3}/Label.vue.d.ts +0 -0
  166. /package/components/dropdown/{common → v3}/Option.vue.d.ts +0 -0
  167. /package/components/dropdown/{common → v3}/SearchInput.vue.d.ts +0 -0
  168. /package/components/filtersPanel/{Filter.d.ts → v3/Filter.d.ts} +0 -0
  169. /package/components/filtersPanel/{index.d.ts → v3/index.d.ts} +0 -0
  170. /package/components/filtersPanel/{index.js → v3/index.js} +0 -0
  171. /package/components/filtersPanel/{useHiddenFilter.d.ts → v3/useHiddenFilter.d.ts} +0 -0
  172. /package/components/filtersPanel/{useHiddenFilter.js → v3/useHiddenFilter.js} +0 -0
  173. /package/components/radioButton/{useRadio.d.ts → common/useRadio.d.ts} +0 -0
  174. /package/components/radioButton/{useRadio.js → common/useRadio.js} +0 -0
  175. /package/components/radioButton/{RadioButton.vue.d.ts → v3/RadioButton.vue.d.ts} +0 -0
  176. /package/components/radioButton/{RadioGroup.vue.d.ts → v3/RadioGroup.vue.d.ts} +0 -0
  177. /package/components/radioButton/{index.d.ts → v3/index.d.ts} +0 -0
  178. /package/components/radioButton/{index.js → v3/index.js} +0 -0
  179. /package/components/snackbar/{notify.d.ts → common/notify_old.d.ts} +0 -0
  180. /package/components/snackbar/{snackbar.types.d.ts → common/snackbar.types.d.ts} +0 -0
  181. /package/components/snackbar/{snackbar.types.js → common/snackbar.types.js} +0 -0
  182. /package/components/snackbar/{Snackbar.vue.d.ts → v3/Snackbar.vue.d.ts} +0 -0
@@ -0,0 +1,99 @@
1
+ import "../../../Checkbox.vue_vue_type_style_index_0_scoped_58dedb90_lang.css"; import { defineComponent as z, openBlock as i, createElementBlock as B, unref as e, normalizeClass as E, createElementVNode as r, mergeProps as V, createVNode as S, withCtx as p, createBlock as s, createCommentVNode as c, renderSlot as F, createTextVNode as N, toDisplayString as g, pushScopeId as D, popScopeId as L } from "vue";
2
+ import "../../typography/Heading.vue.js";
3
+ import P from "../../typography/Text.vue.js";
4
+ import T from "../../icon/v3/Icon.vue.js";
5
+ import v from "./icons/unchecked.vue.js";
6
+ import w from "./icons/checked.vue.js";
7
+ import A from "./icons/indeterminate.vue.js";
8
+ import { CheckboxTestIdModifiers as a } from "../../../testids/index.js";
9
+ import { checkboxCommon as R } from "../common/Checkbox.common.js";
10
+ const H = (t) => (D("data-v-58dedb90"), t = t(), L(), t), K = ["for", "data-testid"], M = { class: "checkboxes" }, U = ["id", "disabled", "checked", ".indeterminate", "data-testid"], W = /* @__PURE__ */ H(() => /* @__PURE__ */ r("span", { class: "checkbox__inner" }, null, -1)), _ = /* @__PURE__ */ z({
11
+ __name: "Checkbox",
12
+ props: {
13
+ isChecked: { type: Boolean },
14
+ isIndeterminate: { type: Boolean },
15
+ disabled: { type: Boolean },
16
+ size: { default: "md" },
17
+ label: { default: "" },
18
+ testId: { default: "" }
19
+ },
20
+ emits: ["update:isChecked", "click"],
21
+ setup(t, { emit: u }) {
22
+ const x = t;
23
+ function I() {
24
+ console.log("side-effect");
25
+ }
26
+ I();
27
+ const {
28
+ id: m,
29
+ checkbox: C,
30
+ isFocusVisible: $,
31
+ handleFocus: k,
32
+ handleBlur: f,
33
+ indeterminate: n,
34
+ checked: b,
35
+ unchecked: y,
36
+ updateValue: h
37
+ } = R(x, u);
38
+ return (l, d) => (i(), B("label", {
39
+ for: e(m),
40
+ class: E([[t.size, { "focus-visible": e($), disabled: t.disabled }], "checkbox"]),
41
+ "data-testid": `${t.testId}-${e(a).WRAPPER}`
42
+ }, [
43
+ r("span", M, [
44
+ r("input", V(l.$attrs, {
45
+ id: e(m),
46
+ ref: e(C),
47
+ disabled: t.disabled,
48
+ checked: e(b),
49
+ class: "input",
50
+ ".indeterminate": e(n),
51
+ type: "checkbox",
52
+ "data-testid": `${t.testId}-${e(a).FIELD}`,
53
+ onBlur: d[0] || (d[0] = //@ts-ignore
54
+ (...o) => e(f) && e(f)(...o)),
55
+ onFocus: d[1] || (d[1] = //@ts-ignore
56
+ (...o) => e(k) && e(k)(...o)),
57
+ onClick: d[2] || (d[2] = (o) => u("click", o)),
58
+ onInput: d[3] || (d[3] = //@ts-ignore
59
+ (...o) => e(h) && e(h)(...o))
60
+ }), null, 16, U),
61
+ W,
62
+ S(e(T), { "font-size": t.size }, {
63
+ default: p(() => [
64
+ e(b) ? (i(), s(w, {
65
+ key: 0,
66
+ class: "checkbox-icon checked",
67
+ "data-testid": `${t.testId}-${e(a).CHECKED}`
68
+ }, null, 8, ["data-testid"])) : c("", !0),
69
+ e(n) ? (i(), s(A, {
70
+ key: 1,
71
+ class: "checkbox-icon indeterminate"
72
+ })) : c("", !0),
73
+ e(y) && !e(n) ? (i(), s(v, {
74
+ key: 2,
75
+ class: "checkbox-icon unchecked"
76
+ })) : c("", !0)
77
+ ]),
78
+ _: 1
79
+ }, 8, ["font-size"])
80
+ ]),
81
+ t.label || l.$slots.default ? (i(), s(e(P), {
82
+ key: 0,
83
+ size: t.size,
84
+ class: "checkbox-text",
85
+ "data-testid": `${t.testId}-${e(a).LABEL}`
86
+ }, {
87
+ default: p(() => [
88
+ F(l.$slots, "default", {}, () => [
89
+ N(g(t.label), 1)
90
+ ], !0)
91
+ ]),
92
+ _: 3
93
+ }, 8, ["size", "data-testid"])) : c("", !0)
94
+ ], 10, K));
95
+ }
96
+ });
97
+ export {
98
+ _ as default
99
+ };
@@ -1,5 +1,5 @@
1
1
  import { openBlock as t, createElementBlock as o, createElementVNode as e } from "vue";
2
- import n from "../../../_virtual/_plugin-vue_export-helper.js";
2
+ import n from "../../../../_virtual/_plugin-vue_export-helper.js";
3
3
  const l = {}, r = {
4
4
  viewBox: "0 0 16 16",
5
5
  fill: "none",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as t, createElementBlock as o, createElementVNode as e } from "vue";
2
- import n from "../../../_virtual/_plugin-vue_export-helper.js";
2
+ import n from "../../../../_virtual/_plugin-vue_export-helper.js";
3
3
  const r = {}, c = {
4
4
  viewBox: "0 0 16 16",
5
5
  fill: "none",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
2
- import r from "../../../_virtual/_plugin-vue_export-helper.js";
2
+ import r from "../../../../_virtual/_plugin-vue_export-helper.js";
3
3
  const c = {}, n = {
4
4
  viewBox: "0 0 16 16",
5
5
  fill: "none",
@@ -0,0 +1,53 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ isChecked: boolean;
3
+ isIndeterminate?: boolean;
4
+ disabled?: boolean;
5
+ label?: string;
6
+ testId?: string;
7
+ }>, {
8
+ label: string;
9
+ testId: string;
10
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ "update:isChecked": (value: boolean) => void;
12
+ click: (event: MouseEvent) => void;
13
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
14
+ isChecked: boolean;
15
+ isIndeterminate?: boolean;
16
+ disabled?: boolean;
17
+ label?: string;
18
+ testId?: string;
19
+ }>, {
20
+ label: string;
21
+ testId: string;
22
+ }>>> & {
23
+ onClick?: (event: MouseEvent) => any;
24
+ "onUpdate:isChecked"?: (value: boolean) => any;
25
+ }, {
26
+ label: string;
27
+ testId: string;
28
+ }>, {
29
+ default?(_: {}): any;
30
+ }>;
31
+ export default _default;
32
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
+ type __VLS_TypePropsToRuntimeProps<T> = {
34
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
35
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
36
+ } : {
37
+ type: import('vue').PropType<T[K]>;
38
+ required: true;
39
+ };
40
+ };
41
+ type __VLS_WithDefaults<P, D> = {
42
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
43
+ default: D[K];
44
+ }> : P[K];
45
+ };
46
+ type __VLS_Prettify<T> = {
47
+ [K in keyof T]: T[K];
48
+ } & {};
49
+ type __VLS_WithTemplateSlots<T, S> = T & {
50
+ new (): {
51
+ $slots: S;
52
+ };
53
+ };
@@ -0,0 +1,7 @@
1
+ import e from "./CheckboxV4.vue2.js";
2
+ /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../CheckboxV4.vue_vue_type_style_index_0_scoped_ee3e6d82_lang.css"; //*');
4
+ const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-ee3e6d82"]]);
5
+ export {
6
+ c as default
7
+ };
@@ -0,0 +1,107 @@
1
+ import "../../../CheckboxV4.vue_vue_type_style_index_0_scoped_ee3e6d82_lang.css"; import { defineComponent as D, openBlock as o, createElementBlock as p, mergeProps as r, unref as e, createElementVNode as m, Fragment as x, createBlock as n, createCommentVNode as s, withCtx as V, renderSlot as F, createTextVNode as g, toDisplayString as A, pushScopeId as T, popScopeId as v } from "vue";
2
+ import L from "../../typography/v4/Typography.vue.js";
3
+ import N from "./icons/UncheckedState.vue.js";
4
+ import P from "./icons/CheckedState.vue.js";
5
+ import $ from "./icons/IndeterminateState.vue.js";
6
+ import w from "./icons/UncheckedDisabledState.vue.js";
7
+ import H from "./icons/CheckedDisabledState.vue.js";
8
+ import K from "./icons/IndeterminateDisabledState.vue.js";
9
+ import { CheckboxTestIdModifiers as i } from "../../../testids/index.js";
10
+ import { checkboxCommon as R } from "../common/Checkbox.common.js";
11
+ import { useTestIdAttrs as U } from "../../../utils/testIds.js";
12
+ const M = (t) => (T("data-v-ee3e6d82"), t = t(), v(), t), W = ["for"], j = { class: "checkboxes" }, q = ["id", "disabled", "checked", ".indeterminate"], z = /* @__PURE__ */ M(() => /* @__PURE__ */ m("span", { class: "checkbox__inner" }, null, -1)), G = { class: "states" }, de = /* @__PURE__ */ D({
13
+ __name: "CheckboxV4",
14
+ props: {
15
+ isChecked: { type: Boolean },
16
+ isIndeterminate: { type: Boolean },
17
+ disabled: { type: Boolean },
18
+ label: { default: "" },
19
+ testId: { default: "" }
20
+ },
21
+ emits: ["update:isChecked", "click"],
22
+ setup(t, { emit: b }) {
23
+ const h = t, {
24
+ id: f,
25
+ checkbox: B,
26
+ isFocusVisible: E,
27
+ handleFocus: y,
28
+ handleBlur: C,
29
+ indeterminate: a,
30
+ checked: u,
31
+ unchecked: I,
32
+ updateValue: S
33
+ } = R(h, b), l = U(h.testId, i);
34
+ return (k, d) => (o(), p("label", r({
35
+ for: e(f),
36
+ class: [{
37
+ "focus-visible": e(E),
38
+ disabled: t.disabled
39
+ }, "checkbox"]
40
+ }, e(l)[e(i).WRAPPER]), [
41
+ m("span", j, [
42
+ m("input", r({ ...k.$attrs, ...e(l)[e(i).FIELD] }, {
43
+ id: e(f),
44
+ ref: e(B),
45
+ disabled: t.disabled,
46
+ checked: e(u),
47
+ class: "input",
48
+ ".indeterminate": e(a),
49
+ type: "checkbox",
50
+ onBlur: d[0] || (d[0] = //@ts-ignore
51
+ (...c) => e(C) && e(C)(...c)),
52
+ onFocus: d[1] || (d[1] = //@ts-ignore
53
+ (...c) => e(y) && e(y)(...c)),
54
+ onClick: d[2] || (d[2] = (c) => b("click", c)),
55
+ onInput: d[3] || (d[3] = //@ts-ignore
56
+ (...c) => e(S) && e(S)(...c))
57
+ }), null, 16, q),
58
+ z,
59
+ m("span", G, [
60
+ t.disabled ? s("", !0) : (o(), p(x, { key: 0 }, [
61
+ e(u) ? (o(), n(P, r({
62
+ key: 0,
63
+ class: "icon checked"
64
+ }, e(l)[e(i).CHECKED]), null, 16)) : s("", !0),
65
+ e(a) ? (o(), n($, {
66
+ key: 1,
67
+ class: "icon indeterminate"
68
+ })) : s("", !0),
69
+ e(I) && !e(a) ? (o(), n(N, {
70
+ key: 2,
71
+ class: "icon unchecked"
72
+ })) : s("", !0)
73
+ ], 64)),
74
+ t.disabled ? (o(), p(x, { key: 1 }, [
75
+ e(u) ? (o(), n(H, r({
76
+ key: 0,
77
+ class: "icon checked"
78
+ }, e(l)[e(i).CHECKED]), null, 16)) : s("", !0),
79
+ e(a) ? (o(), n(K, {
80
+ key: 1,
81
+ class: "icon indeterminate"
82
+ })) : s("", !0),
83
+ e(I) && !e(a) ? (o(), n(w, {
84
+ key: 2,
85
+ class: "icon unchecked"
86
+ })) : s("", !0)
87
+ ], 64)) : s("", !0)
88
+ ])
89
+ ]),
90
+ t.label || k.$slots.default ? (o(), n(e(L), r({
91
+ key: 0,
92
+ variant: "body2",
93
+ class: "checkbox-label"
94
+ }, e(l)[e(i).LABEL]), {
95
+ default: V(() => [
96
+ F(k.$slots, "default", {}, () => [
97
+ g(A(t.label), 1)
98
+ ], !0)
99
+ ]),
100
+ _: 3
101
+ }, 16)) : s("", !0)
102
+ ], 16, W));
103
+ }
104
+ });
105
+ export {
106
+ de as default
107
+ };
@@ -0,0 +1,38 @@
1
+ import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
2
+ import r from "../../../../_virtual/_plugin-vue_export-helper.js";
3
+ const n = {}, s = {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ viewBox: "0 0 16 16",
6
+ fill: "none"
7
+ }, c = /* @__PURE__ */ t("rect", {
8
+ width: "16",
9
+ height: "16",
10
+ rx: "4",
11
+ fill: "#CEE7FE"
12
+ }, null, -1), i = /* @__PURE__ */ t("rect", {
13
+ x: "0.5",
14
+ y: "0.5",
15
+ width: "15",
16
+ height: "15",
17
+ rx: "3.5",
18
+ stroke: "#0091FF",
19
+ "stroke-opacity": "0.5"
20
+ }, null, -1), l = /* @__PURE__ */ t("path", {
21
+ d: "M12.125 5.375L6.875 10.625L4.25 8",
22
+ stroke: "#0091FF",
23
+ "stroke-opacity": "0.5",
24
+ "stroke-width": "1.5",
25
+ "stroke-linecap": "round",
26
+ "stroke-linejoin": "round"
27
+ }, null, -1), _ = [
28
+ c,
29
+ i,
30
+ l
31
+ ];
32
+ function d(h, a) {
33
+ return e(), o("svg", s, _);
34
+ }
35
+ const f = /* @__PURE__ */ r(n, [["render", d]]);
36
+ export {
37
+ f as default
38
+ };
@@ -0,0 +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<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,38 @@
1
+ import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
2
+ import n from "../../../../_virtual/_plugin-vue_export-helper.js";
3
+ const r = {}, s = {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ viewBox: "0 0 16 16",
6
+ fill: "none"
7
+ }, c = /* @__PURE__ */ t("rect", {
8
+ x: "0.5",
9
+ y: "0.5",
10
+ width: "15",
11
+ height: "15",
12
+ rx: "3.5",
13
+ fill: "#0091FF"
14
+ }, null, -1), i = /* @__PURE__ */ t("rect", {
15
+ x: "0.5",
16
+ y: "0.5",
17
+ width: "15",
18
+ height: "15",
19
+ rx: "3.5",
20
+ stroke: "#0880EA"
21
+ }, null, -1), l = /* @__PURE__ */ t("path", {
22
+ d: "M12.125 5.375L6.875 10.625L4.25 8",
23
+ stroke: "white",
24
+ "stroke-width": "1.5",
25
+ "stroke-linecap": "round",
26
+ "stroke-linejoin": "round"
27
+ }, null, -1), _ = [
28
+ c,
29
+ i,
30
+ l
31
+ ];
32
+ function h(d, a) {
33
+ return e(), o("svg", s, _);
34
+ }
35
+ const x = /* @__PURE__ */ n(r, [["render", h]]);
36
+ export {
37
+ x as default
38
+ };
@@ -0,0 +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<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,40 @@
1
+ import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
2
+ import n from "../../../../_virtual/_plugin-vue_export-helper.js";
3
+ const r = {}, s = {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ viewBox: "0 0 16 16",
6
+ fill: "none"
7
+ }, c = /* @__PURE__ */ t("rect", {
8
+ width: "16",
9
+ height: "16",
10
+ rx: "4",
11
+ fill: "#CEE7FE"
12
+ }, null, -1), i = /* @__PURE__ */ t("rect", {
13
+ x: "0.5",
14
+ y: "0.5",
15
+ width: "15",
16
+ height: "15",
17
+ rx: "3.5",
18
+ stroke: "#0091FF",
19
+ "stroke-opacity": "0.5"
20
+ }, null, -1), l = /* @__PURE__ */ t("line", {
21
+ x1: "4.75",
22
+ y1: "8.25",
23
+ x2: "11.25",
24
+ y2: "8.25",
25
+ stroke: "#0091FF",
26
+ "stroke-opacity": "0.5",
27
+ "stroke-width": "1.5",
28
+ "stroke-linecap": "round"
29
+ }, null, -1), _ = [
30
+ c,
31
+ i,
32
+ l
33
+ ];
34
+ function d(h, a) {
35
+ return e(), o("svg", s, _);
36
+ }
37
+ const m = /* @__PURE__ */ n(r, [["render", d]]);
38
+ export {
39
+ m as default
40
+ };
@@ -0,0 +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<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,40 @@
1
+ import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
2
+ import n from "../../../../_virtual/_plugin-vue_export-helper.js";
3
+ const r = {}, s = {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ viewBox: "0 0 16 16",
6
+ fill: "none"
7
+ }, c = /* @__PURE__ */ t("rect", {
8
+ x: "0.5",
9
+ y: "0.5",
10
+ width: "15",
11
+ height: "15",
12
+ rx: "3.5",
13
+ fill: "#0091FF"
14
+ }, null, -1), i = /* @__PURE__ */ t("rect", {
15
+ x: "0.5",
16
+ y: "0.5",
17
+ width: "15",
18
+ height: "15",
19
+ rx: "3.5",
20
+ stroke: "#0880EA"
21
+ }, null, -1), l = /* @__PURE__ */ t("line", {
22
+ x1: "4.75",
23
+ y1: "8.25",
24
+ x2: "11.25",
25
+ y2: "8.25",
26
+ stroke: "white",
27
+ "stroke-width": "1.5",
28
+ "stroke-linecap": "round"
29
+ }, null, -1), _ = [
30
+ c,
31
+ i,
32
+ l
33
+ ];
34
+ function h(d, x) {
35
+ return e(), o("svg", s, _);
36
+ }
37
+ const m = /* @__PURE__ */ n(r, [["render", h]]);
38
+ export {
39
+ m as default
40
+ };
@@ -0,0 +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<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import { openBlock as t, createElementBlock as o, createElementVNode as e } from "vue";
2
+ import c from "../../../../_virtual/_plugin-vue_export-helper.js";
3
+ const n = {}, r = {
4
+ viewBox: "0 0 16 16",
5
+ fill: "none",
6
+ xmlns: "http://www.w3.org/2000/svg"
7
+ }, s = /* @__PURE__ */ e("rect", {
8
+ x: "0.5",
9
+ y: "0.5",
10
+ width: "15",
11
+ height: "15",
12
+ rx: "3.5",
13
+ fill: "#EBEBEB"
14
+ }, null, -1), i = /* @__PURE__ */ e("rect", {
15
+ x: "0.5",
16
+ y: "0.5",
17
+ width: "15",
18
+ height: "15",
19
+ rx: "3.5",
20
+ stroke: "#EBEBEB"
21
+ }, null, -1), _ = [
22
+ s,
23
+ i
24
+ ];
25
+ function l(h, d) {
26
+ return t(), o("svg", r, _);
27
+ }
28
+ const B = /* @__PURE__ */ c(n, [["render", l]]);
29
+ export {
30
+ B as default
31
+ };
@@ -0,0 +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<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import { openBlock as t, createElementBlock as o, createElementVNode as e } from "vue";
2
+ import c from "../../../../_virtual/_plugin-vue_export-helper.js";
3
+ const n = {}, r = {
4
+ viewBox: "0 0 16 16",
5
+ fill: "none",
6
+ xmlns: "http://www.w3.org/2000/svg"
7
+ }, s = /* @__PURE__ */ e("rect", {
8
+ x: "0.5",
9
+ y: "0.5",
10
+ width: "15",
11
+ height: "15",
12
+ rx: "3.5",
13
+ fill: "#EBEBEB"
14
+ }, null, -1), _ = /* @__PURE__ */ e("rect", {
15
+ x: "0.5",
16
+ y: "0.5",
17
+ width: "15",
18
+ height: "15",
19
+ rx: "3.5",
20
+ stroke: "#BBBBBB"
21
+ }, null, -1), i = [
22
+ s,
23
+ _
24
+ ];
25
+ function l(h, B) {
26
+ return t(), o("svg", r, i);
27
+ }
28
+ const x = /* @__PURE__ */ c(n, [["render", l]]);
29
+ export {
30
+ x as default
31
+ };