@golstats/gsc-landing 1.0.19 → 1.0.21

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.
@@ -1,6 +1,6 @@
1
1
  import { openBlock as r, createElementBlock as o, Fragment as a, renderList as u, createVNode as d, createBlock as n, unref as i } from "vue";
2
- import { L as m } from "./gsc-checkbox-9572f28d-OEktJZP_.js";
3
- import { q as l } from "./index-qTu45z7N.js";
2
+ import { L as m } from "./gsc-checkbox-0735d028-JE5Zs_ri.js";
3
+ import { z as l } from "./index-KCQeS3QL.js";
4
4
  const b = { class: "subcategory-group" }, g = {
5
5
  __name: "SubcategoryGroup",
6
6
  props: {
@@ -1,5 +1,5 @@
1
- import { useCssVars as m, ref as h, computed as s, watch as y, openBlock as i, createElementBlock as n, normalizeClass as v, createElementVNode as a, normalizeStyle as u, Fragment as C, toDisplayString as b, createCommentVNode as x } from "vue";
2
- const S = (t, r) => {
1
+ import { useCssVars as m, ref as h, computed as s, watch as y, openBlock as i, createElementBlock as n, normalizeClass as v, createElementVNode as a, normalizeStyle as u, Fragment as S, toDisplayString as b, createCommentVNode as x } from "vue";
2
+ const C = (t, r) => {
3
3
  const e = t.__vccOpts || t;
4
4
  for (const [l, d] of r)
5
5
  e[l] = d;
@@ -13,7 +13,7 @@ const S = (t, r) => {
13
13
  }, B = ["fill"], V = {
14
14
  key: 0,
15
15
  class: "checkbox__teams"
16
- }, F = { class: "checkbox__teams__logo" }, w = ["src"], I = { class: "checkbox__teams__logo" }, z = ["src"], P = {
16
+ }, w = { class: "checkbox__teams__logo" }, F = ["src"], I = { class: "checkbox__teams__logo" }, W = ["src"], z = {
17
17
  __name: "GSC-Checkbox",
18
18
  props: {
19
19
  width: {
@@ -28,6 +28,10 @@ const S = (t, r) => {
28
28
  type: String,
29
29
  default: ""
30
30
  },
31
+ labelWhiteSpace: {
32
+ type: String,
33
+ default: "normal"
34
+ },
31
35
  labelColor: {
32
36
  type: String,
33
37
  default: "white"
@@ -72,6 +76,10 @@ const S = (t, r) => {
72
76
  return ["left", "right", "top", "bottom"].includes(t);
73
77
  }
74
78
  },
79
+ boxMarginTop: {
80
+ type: String,
81
+ default: "0.2em"
82
+ },
75
83
  boxWidthAndHeight: {
76
84
  type: String,
77
85
  default: "16px"
@@ -117,8 +125,8 @@ const S = (t, r) => {
117
125
  setup(t, { emit: r }) {
118
126
  const e = t;
119
127
  m((o) => ({
120
- "6f1f9c87": t.width,
121
- "5b04fa86": t.height
128
+ 70501426: t.width,
129
+ "1957cde0": t.height
122
130
  }));
123
131
  const l = h(!1), d = s(() => {
124
132
  const o = {
@@ -127,19 +135,21 @@ const S = (t, r) => {
127
135
  height: e.boxWidthAndHeight,
128
136
  width: e.boxWidthAndHeight,
129
137
  minWidth: e.boxWidthAndHeight,
130
- "border-radius": e.boxBorderRadius
138
+ "border-radius": e.boxBorderRadius,
139
+ "margin-top": e.boxMarginTop
131
140
  };
132
141
  return l.value ? (o["background-color"] = e.boxBackgroundColor, o.border = `solid ${e.boxBorderWidth} ${e.boxBackgroundColor}`) : o.border = `solid ${e.boxBorderWidth} ${e.boxBorderColor}`, o;
133
- }), f = s(() => ({
142
+ }), p = s(() => ({
134
143
  "font-family": e.boxValueFontFamily,
135
144
  "font-size": e.boxValueFontSize,
136
145
  color: e.boxValueColor,
137
146
  "line-height": 1
138
- })), p = s(() => {
147
+ })), f = s(() => {
139
148
  const o = {
140
149
  color: e.labelColor,
141
150
  "font-family": e.fontFamily,
142
151
  "font-size": e.labelFontSize,
152
+ "white-space": e.labelWhiteSpace,
143
153
  "text-align": e.boxPosition === "top" || e.boxPosition === "bottom" ? "center" : e.boxPosition
144
154
  };
145
155
  return (e.boxPosition === "left" || e.boxPosition === "right") && (o[`margin-${e.boxPosition}`] = e.isBoxOnly ? "0" : e.teamsIds ? "8px" : "10px"), o;
@@ -157,7 +167,7 @@ const S = (t, r) => {
157
167
  function c(o) {
158
168
  return `${{}.TEAM_LOGOS_URL || "https://az755631.vo.msecnd.net/teams-80/"}${o}.png`;
159
169
  }
160
- return (o, W) => (i(), n("div", {
170
+ return (o, P) => (i(), n("div", {
161
171
  class: v(["checkbox", `box-${t.boxPosition}`]),
162
172
  onClick: g
163
173
  }, [
@@ -165,11 +175,11 @@ const S = (t, r) => {
165
175
  class: "checkbox__box",
166
176
  style: u(d.value)
167
177
  }, [
168
- l.value ? (i(), n(C, { key: 0 }, [
178
+ l.value ? (i(), n(S, { key: 0 }, [
169
179
  e.boxValue ? (i(), n("div", {
170
180
  key: 0,
171
181
  class: "checkbox__box__value",
172
- style: u(f.value)
182
+ style: u(p.value)
173
183
  }, b(t.boxValue), 5)) : (i(), n("div", _, [
174
184
  (i(), n("svg", k, [
175
185
  a("path", {
@@ -181,26 +191,26 @@ const S = (t, r) => {
181
191
  ], 64)) : x("", !0)
182
192
  ], 4),
183
193
  t.teamsIds && t.teamsIds.length ? (i(), n("div", V, [
184
- a("div", F, [
194
+ a("div", w, [
185
195
  a("img", {
186
196
  src: c(t.teamsIds[0]),
187
197
  alt: ""
188
- }, null, 8, w)
198
+ }, null, 8, F)
189
199
  ]),
190
200
  a("div", I, [
191
201
  a("img", {
192
202
  src: c(t.teamsIds[1]),
193
203
  alt: ""
194
- }, null, 8, z)
204
+ }, null, 8, W)
195
205
  ])
196
206
  ])) : x("", !0),
197
207
  a("div", {
198
208
  class: "checkbox__label",
199
- style: u(p.value)
209
+ style: u(f.value)
200
210
  }, b(t.label), 5)
201
211
  ], 2));
202
212
  }
203
- }, L = /* @__PURE__ */ S(P, [["__scopeId", "data-v-c33c3628"]]);
213
+ }, L = /* @__PURE__ */ C(z, [["__scopeId", "data-v-8ab85812"]]);
204
214
  export {
205
215
  L
206
216
  };
@@ -1,4 +1,4 @@
1
- import { g } from "./index-qTu45z7N.js";
1
+ import { g } from "./index-KCQeS3QL.js";
2
2
  import "vue";
3
3
  export {
4
4
  g as GSCLanding