@oliasoft-open-source/react-ui-library 6.2.4-beta-2 → 6.3.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.
@@ -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,EACZ,SAAS,EAMV,MAAM,OAAO,CAAC;AAEf,OAAO,EAAQ,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACvD,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;AA0DD,eAAO,MAAM,KAAK,GAAI,wHAWnB,iBAAiB,4CAyEnB,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,EAAQ,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACvD,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;AA0DD,eAAO,MAAM,KAAK,GAAI,wHAWnB,iBAAiB,4CA8DnB,CAAC"}
package/dist/index.js CHANGED
@@ -2466,27 +2466,27 @@ var Cr = /* @__PURE__ */ function(e) {
2466
2466
  focused: r === e,
2467
2467
  onSelectOption: (t) => i(t, a[e])
2468
2468
  })
2469
- }), Jo = ({ listRef: e, isMulti: t, sections: n, selectedOptions: r, onSelectOption: i, focusedOptionIndex: a, width: s, small: c, closeLayer: l, testId: f }) => {
2470
- let [h, _] = m(null), v = p(!1), y = d(() => Ko(n, r), [n, r]), b = o((t) => {
2471
- e.current = t, _(t);
2472
- }, [e]);
2473
- u(() => {
2474
- v.current = !1;
2475
- }, [y]), u(() => {
2476
- y !== null && h !== null && h.element !== null && !v.current && (v.current = !0, h.scrollToRow({
2477
- index: y,
2469
+ }), Jo = ({ listRef: e, isMulti: t, sections: n, selectedOptions: r, onSelectOption: i, focusedOptionIndex: a, width: s, small: c, closeLayer: l, testId: u }) => {
2470
+ let d = o((t) => {
2471
+ e.current = t;
2472
+ let i = Ko(n, r);
2473
+ i !== null && t !== null && t.element !== null && t.scrollToRow({
2474
+ index: i,
2478
2475
  align: "start"
2479
- }));
2480
- }, [h, y]);
2481
- let x = c ? 24 : 30, S = n.length < 10 ? x * n.length : x * 10;
2476
+ });
2477
+ }, [
2478
+ e,
2479
+ n,
2480
+ r
2481
+ ]), f = c ? 24 : 30, p = n.length < 10 ? f * n.length : f * 10;
2482
2482
  return /* @__PURE__ */ z("div", {
2483
- "data-testid": f,
2483
+ "data-testid": u,
2484
2484
  className: g(wo.layer, c && wo.small),
2485
2485
  children: n.length ? /* @__PURE__ */ z(qn, {
2486
- listRef: b,
2486
+ listRef: d,
2487
2487
  rowComponent: qo,
2488
2488
  rowCount: n.length,
2489
- rowHeight: x,
2489
+ rowHeight: f,
2490
2490
  rowProps: {
2491
2491
  closeLayer: l,
2492
2492
  focusedOptionIndex: a,
@@ -2496,7 +2496,7 @@ var Cr = /* @__PURE__ */ function(e) {
2496
2496
  selectedOptions: r
2497
2497
  },
2498
2498
  style: {
2499
- height: S,
2499
+ height: p,
2500
2500
  width: s
2501
2501
  }
2502
2502
  }) : /* @__PURE__ */ z("ul", { children: /* @__PURE__ */ z("li", { children: /* @__PURE__ */ z("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "6.2.4-beta-2",
3
+ "version": "6.3.0",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {
@@ -28,6 +28,18 @@
28
28
  "files": [
29
29
  "dist/**/*"
30
30
  ],
31
+ "devEngines": {
32
+ "packageManager": {
33
+ "name": "pnpm",
34
+ "version": "11.3.0",
35
+ "onFail": "download"
36
+ },
37
+ "runtime": {
38
+ "name": "node",
39
+ "version": "26.3.0",
40
+ "onFail": "download"
41
+ }
42
+ },
31
43
  "lint-staged": {
32
44
  "*.{js,jsx,ts,tsx}": [
33
45
  "oxlint --fix"
@@ -103,7 +115,8 @@
103
115
  "vite": "^8.0.14",
104
116
  "vite-plugin-dts": "^5.0.1",
105
117
  "vitest": "^4.1.7",
106
- "wait-on": "^9.0.10"
118
+ "wait-on": "^9.0.10",
119
+ "node": "runtime:26.3.0"
107
120
  },
108
121
  "peerDependencies": {
109
122
  "@dnd-kit/core": "^6",