@caspeco/casper-ui-library 8.2.0 → 8.2.1

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 +1 @@
1
- {"version":3,"file":"combobox-menu.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/combobox-menu.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACX,kBAAkB,EAIlB,MAAM,SAAS,CAAC;AA2CjB,wBAAgB,qBAAqB,CAAC,EACrC,cAAc,EACd,SAAS,GACT,EAAE;IACF,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;CACnB,2CAEA;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,kBAAkB,2CAiGrD"}
1
+ {"version":3,"file":"combobox-menu.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/combobox-menu.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACX,kBAAkB,EAIlB,MAAM,SAAS,CAAC;AA2CjB,wBAAgB,qBAAqB,CAAC,EACrC,cAAc,EACd,SAAS,GACT,EAAE;IACF,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;CACnB,2CAEA;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,kBAAkB,2CAkGrD"}
@@ -130,6 +130,7 @@ function pe(o) {
130
130
  backgroundColor: d.Surface,
131
131
  padding: `${c.Small} ${c.Medium}`,
132
132
  borderTop: `${N.XSmall} ${d.OnSurfaceBorder}`,
133
+ tabIndex: -1,
133
134
  children: l
134
135
  }
135
136
  )
@@ -179,9 +180,9 @@ const A = ({
179
180
  p.stopPropagation(), p.preventDefault(), s(r);
180
181
  };
181
182
  i.length > 0 && (i[i.length - 1] -= 1);
182
- const m = P++, B = r.children && r.children.length > 0, I = !B || r.isSelectableParent;
183
+ const m = P++, I = r.children && r.children.length > 0, B = !I || r.isSelectableParent;
183
184
  let $ = e.some((p) => p.id === r.id);
184
- return a && B && !r.isSelectableParent && w(r, e) && ($ = !0), /* @__PURE__ */ g(T, { children: [
185
+ return a && I && !r.isSelectableParent && w(r, e) && ($ = !0), /* @__PURE__ */ g(T, { children: [
185
186
  /* @__PURE__ */ g(
186
187
  A,
187
188
  {
@@ -227,7 +228,7 @@ const A = ({
227
228
  }),
228
229
  /* @__PURE__ */ n(H, { item: r, asPlainText: !0, highlightQuery: x })
229
230
  ] }),
230
- I ? /* @__PURE__ */ n(X, { isSingleSelect: k, isChecked: $ }) : a && !k && /* @__PURE__ */ n(W, { isIndeterminate: S(r), isChecked: $ })
231
+ B ? /* @__PURE__ */ n(X, { isSingleSelect: k, isChecked: $ }) : a && !k && /* @__PURE__ */ n(W, { isIndeterminate: S(r), isChecked: $ })
231
232
  ]
232
233
  }
233
234
  ),
@@ -253,7 +254,7 @@ const A = ({
253
254
  e.stopPropagation(), e.preventDefault(), s(i);
254
255
  };
255
256
  return o.map((e, i) => {
256
- const r = t.some((f) => f.id === e.id), v = e.children?.length, m = e.id === "_back", B = x.opened[x.opened.length - 1], I = e.id === B?.id, $ = m ? /* @__PURE__ */ g(y, { gap: c.XSmall, alignItems: "center", children: [
257
+ const r = t.some((f) => f.id === e.id), v = e.children?.length, m = e.id === "_back", I = x.opened[x.opened.length - 1], B = e.id === I?.id, $ = m ? /* @__PURE__ */ g(y, { gap: c.XSmall, alignItems: "center", children: [
257
258
  /* @__PURE__ */ n(z, { icon: D.Back, size: F.Small }),
258
259
  e.label
259
260
  ] }) : /* @__PURE__ */ g(_, { children: [
@@ -264,7 +265,7 @@ const A = ({
264
265
  ] }, f)),
265
266
  /* @__PURE__ */ n(H, { item: e, asPlainText: w })
266
267
  ] }),
267
- P ? void 0 : v && !I && !S ? /* @__PURE__ */ n(
268
+ P ? void 0 : v && !B && !S ? /* @__PURE__ */ n(
268
269
  z,
269
270
  {
270
271
  icon: D.Forward,
@@ -272,7 +273,7 @@ const A = ({
272
273
  color: d.OnBackgroundSubdued
273
274
  }
274
275
  ) : /* @__PURE__ */ n(X, { isSingleSelect: b, isChecked: r })
275
- ] }), p = u.length > 0 && u.length - 1 === i && u.length < o.length, M = !P && !S && (p || (m || I));
276
+ ] }), p = u.length > 0 && u.length - 1 === i && u.length < o.length, M = !P && !S && (p || (m || B));
276
277
  return /* @__PURE__ */ g(T, { children: [
277
278
  /* @__PURE__ */ n(
278
279
  A,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caspeco/casper-ui-library",
3
- "version": "8.2.0",
3
+ "version": "8.2.1",
4
4
  "prettier": "@caspeco/prettier-config",
5
5
  "type": "module",
6
6
  "sideEffects": false,