@oliasoft-open-source/react-ui-library 6.0.0-beta-2 → 6.0.0-beta-3

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":"layer.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/custom-select/layer/layer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAoB,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAGzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAW,MAAM,WAAW,CAAC;AAEpD,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,eAAe,EAAE,qBAAqB,GAAG,qBAAqB,EAAE,CAAC;IACjE,cAAc,EAAE,CACd,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,EACpD,OAAO,CAAC,EAAE,cAAc,KACrB,IAAI,CAAC;IACV,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAqDD,eAAO,MAAM,KAAK,GAAI,kJAYnB,iBAAiB,4CAqDnB,CAAC"}
1
+ {"version":3,"file":"layer.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/custom-select/layer/layer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAe,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAoB,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAGzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAW,MAAM,WAAW,CAAC;AAEpD,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,eAAe,EAAE,qBAAqB,GAAG,qBAAqB,EAAE,CAAC;IACjE,cAAc,EAAE,CACd,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,EACpD,OAAO,CAAC,EAAE,cAAc,KACrB,IAAI,CAAC;IACV,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAqDD,eAAO,MAAM,KAAK,GAAI,kJAYnB,iBAAiB,4CA0DnB,CAAC"}
package/dist/index.js CHANGED
@@ -2488,22 +2488,21 @@ var Tr = /* @__PURE__ */ function(e) {
2488
2488
  onSelectOption: (t) => a(t, o[e])
2489
2489
  })
2490
2490
  });
2491
- }, Ko = Yn, qo = ({ listRef: e, isMulti: t, sections: n, selectedOptions: r, onSelectOption: i, focusedOptionIndex: a, width: o, small: s, firstSelectedOptionIndex: l, closeLayer: u, testId: d }) => {
2492
- c(() => {
2493
- l != null && e.current !== null && typeof e.current.scrollToRow == "function" && e.current.scrollToRow({
2491
+ }, Ko = Yn, qo = ({ listRef: e, isMulti: t, sections: n, selectedOptions: r, onSelectOption: i, focusedOptionIndex: a, width: s, small: c, firstSelectedOptionIndex: l, closeLayer: u, testId: d }) => {
2492
+ let f = o((t) => {
2493
+ e.current = t, l != null && t !== null && t.element !== null && t.scrollToRow({
2494
2494
  index: l,
2495
2495
  align: "start"
2496
2496
  });
2497
- }, [l, e]);
2498
- let f = s ? 24 : 30, p = n.length < 10 ? f * n.length : f * 10;
2497
+ }, [l, e]), p = c ? 24 : 30, m = n.length < 10 ? p * n.length : p * 10;
2499
2498
  return /* @__PURE__ */ z("div", {
2500
2499
  "data-testid": d,
2501
- className: g(wo.layer, s && wo.small),
2500
+ className: g(wo.layer, c && wo.small),
2502
2501
  children: n.length ? /* @__PURE__ */ z(Ko, {
2503
- listRef: e,
2502
+ listRef: f,
2504
2503
  rowComponent: Go,
2505
2504
  rowCount: n.length,
2506
- rowHeight: f,
2505
+ rowHeight: p,
2507
2506
  rowProps: {
2508
2507
  closeLayer: u,
2509
2508
  focusedOptionIndex: a,
@@ -2513,12 +2512,12 @@ var Tr = /* @__PURE__ */ function(e) {
2513
2512
  selectedOptions: r
2514
2513
  },
2515
2514
  style: {
2516
- height: p,
2517
- width: o
2515
+ height: m,
2516
+ width: s
2518
2517
  }
2519
2518
  }) : /* @__PURE__ */ z("ul", { children: /* @__PURE__ */ z("li", { children: /* @__PURE__ */ z("div", {
2520
2519
  className: wo.message,
2521
- style: { width: o },
2520
+ style: { width: s },
2522
2521
  children: "No matches"
2523
2522
  }) }) })
2524
2523
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "6.0.0-beta-2",
3
+ "version": "6.0.0-beta-3",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {