@scbt-ecom/ui 0.21.2 → 0.22.0

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/README.md CHANGED
@@ -34,7 +34,7 @@ export default {
34
34
  - На проекте для unit тестирования используется vitest, документация — https://vitest.dev/
35
35
  - Все тесты лежат в папке test, она полностью должно дублировать структуру папки lib, собственно, что мы и тестируем
36
36
  - Снепшоты создаются также с помощью vitest, функция toMatchSnapshot(). Тут главное не нужно создавать на всё подряд их, желательно для реакт компонентов, каких-то больших и сложных объектов, конфигурационных файлов, API-ответов, сложных выходных данных
37
- - Чтобы обновить снепшоты введите
37
+ - Чтобы обновить снепшоты введите.
38
38
 
39
39
  ```
40
40
  npx vitest -u
package/dist/ui.js CHANGED
@@ -41467,27 +41467,28 @@ const ZY = ({
41467
41467
  className: c,
41468
41468
  invalid: u,
41469
41469
  filterOptionDisabled: d,
41470
- ...f
41471
- }, p) => {
41472
- const h = d || !t && !e ? null : void 0;
41473
- return /* @__PURE__ */ T.jsx(
41470
+ value: f,
41471
+ ...p
41472
+ }, h) => {
41473
+ const m = d || !t && !e ? null : void 0;
41474
+ return console.log("SelectBase value: ", f), /* @__PURE__ */ T.jsx(
41474
41475
  Bw,
41475
41476
  {
41476
- ref: p,
41477
- ...f,
41477
+ ref: h,
41478
+ ...p,
41478
41479
  closeMenuOnSelect: !e,
41479
41480
  isMulti: e,
41480
- filterOption: h,
41481
+ filterOption: m,
41481
41482
  onMenuClose: s,
41482
41483
  className: H("w-full", l == null ? void 0 : l.container, c),
41483
41484
  hideSelectedOptions: i,
41484
- getOptionLabel: a ? (m) => a(m) : void 0,
41485
- getOptionValue: o ? (m) => o(m) : void 0,
41485
+ getOptionLabel: a ? (g) => a(g) : void 0,
41486
+ getOptionValue: o ? (g) => o(g) : void 0,
41486
41487
  components: {
41487
- Control: (m) => /* @__PURE__ */ T.jsx(
41488
+ Control: (g) => /* @__PURE__ */ T.jsx(
41488
41489
  YY,
41489
41490
  {
41490
- ...m,
41491
+ ...g,
41491
41492
  invalid: u,
41492
41493
  displayValue: a,
41493
41494
  isSearchable: t,
@@ -41496,8 +41497,8 @@ const ZY = ({
41496
41497
  classes: l == null ? void 0 : l.control
41497
41498
  }
41498
41499
  ),
41499
- Option: (m) => /* @__PURE__ */ T.jsx(ZY, { ...m, classes: l == null ? void 0 : l.option }),
41500
- MenuList: (m) => /* @__PURE__ */ T.jsx(UY, { ...m, classes: l == null ? void 0 : l.list })
41500
+ Option: (g) => /* @__PURE__ */ T.jsx(ZY, { ...g, classes: l == null ? void 0 : l.option }),
41501
+ MenuList: (g) => /* @__PURE__ */ T.jsx(UY, { ...g, classes: l == null ? void 0 : l.list })
41501
41502
  }
41502
41503
  }
41503
41504
  );
@@ -41992,7 +41993,7 @@ const h6 = ({
41992
41993
  y(k);
41993
41994
  } else p6(S) && y(s ? s(S) : S.value);
41994
41995
  }, E = Pe(() => Array.isArray(w) ? l.filter((S) => w.includes(s ? s(S) : S.value)) : l.find((S) => (s ? s(S) : S.value) === w) || null, [l, s, w]);
41995
- return /* @__PURE__ */ T.jsxs(Rn, { size: u, className: H("items-start gap-y-2", g), children: [
41996
+ return console.log("SelectControl value: ", w), console.log("SelectControl selected value: ", E), /* @__PURE__ */ T.jsxs(Rn, { size: u, className: H("items-start gap-y-2", g), children: [
41996
41997
  /* @__PURE__ */ T.jsx(
41997
41998
  wr.SelectBase,
41998
41999
  {