@idds/react 1.6.31 → 1.6.32

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/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { jsxs as y, jsx as n, Fragment as et } from "react/jsx-runtime";
1
+ import { jsxs as y, jsx as n, Fragment as tt } from "react/jsx-runtime";
2
2
  import he, { useRef as ce, useState as J, useCallback as ye, useMemo as Pe, useContext as zt, createContext as Bt, useId as ba, useEffect as de, forwardRef as wa, useImperativeHandle as ka, Fragment as en } from "react";
3
3
  import { createPortal as Pt } from "react-dom";
4
4
  const xr = {
@@ -1134,7 +1134,7 @@ function Kr({
1134
1134
  open: e,
1135
1135
  locked: a,
1136
1136
  onClose: t,
1137
- children: r = /* @__PURE__ */ n(et, {})
1137
+ children: r = /* @__PURE__ */ n(tt, {})
1138
1138
  }) {
1139
1139
  const s = ce(null), i = Pe(() => {
1140
1140
  const f = ["bottom-sheet-dropdown"];
@@ -2589,7 +2589,7 @@ function ns({
2589
2589
  ]
2590
2590
  }
2591
2591
  ),
2592
- D.length > 0 && /* @__PURE__ */ y(et, { children: [
2592
+ D.length > 0 && /* @__PURE__ */ y(tt, { children: [
2593
2593
  /* @__PURE__ */ n("div", { className: "ina-file-upload__files", children: (s && D.length > 5 && !T ? D.slice(0, 5) : D).map((L) => {
2594
2594
  const P = D.findIndex(
2595
2595
  (W) => W.file.name === L.file.name && W.file.size === L.file.size && W.status === L.status
@@ -2621,7 +2621,7 @@ function ns({
2621
2621
  L.error && /* @__PURE__ */ n("div", { className: "ina-file-upload__file-error", children: L.error })
2622
2622
  ] }),
2623
2623
  /* @__PURE__ */ y("div", { className: "ina-file-upload__file-actions", children: [
2624
- L.status === "error" && /* @__PURE__ */ y(et, { children: [
2624
+ L.status === "error" && /* @__PURE__ */ y(tt, { children: [
2625
2625
  /* @__PURE__ */ n(
2626
2626
  "button",
2627
2627
  {
@@ -2973,14 +2973,14 @@ function rs({
2973
2973
  role: "button",
2974
2974
  "aria-label": C ? `File: ${C.name}` : "Upload file",
2975
2975
  children: [
2976
- !C && S === "idle" && /* @__PURE__ */ y(et, { children: [
2976
+ !C && S === "idle" && /* @__PURE__ */ y(tt, { children: [
2977
2977
  /* @__PURE__ */ n("div", { className: "ina-single-file-upload__icon-wrapper ina-single-file-upload__icon-wrapper--default", children: /* @__PURE__ */ n(At, { size: 24 }) }),
2978
2978
  /* @__PURE__ */ y("div", { className: "ina-single-file-upload__content", children: [
2979
2979
  /* @__PURE__ */ n("div", { className: "ina-single-file-upload__title", children: e }),
2980
2980
  /* @__PURE__ */ n("div", { className: "ina-single-file-upload__description", children: a })
2981
2981
  ] })
2982
2982
  ] }),
2983
- !C && S === "uploading" && /* @__PURE__ */ y(et, { children: [
2983
+ !C && S === "uploading" && /* @__PURE__ */ y(tt, { children: [
2984
2984
  /* @__PURE__ */ n("div", { className: "ina-single-file-upload__icon-wrapper ina-single-file-upload__icon-wrapper--default", children: /* @__PURE__ */ n(At, { size: 24 }) }),
2985
2985
  /* @__PURE__ */ y("div", { className: "ina-single-file-upload__progress", children: [
2986
2986
  /* @__PURE__ */ n("div", { className: "ina-single-file-upload__progress-bar", children: /* @__PURE__ */ n(
@@ -2997,7 +2997,7 @@ function rs({
2997
2997
  ] })
2998
2998
  ] })
2999
2999
  ] }),
3000
- C && S === "success" && /* @__PURE__ */ y(et, { children: [
3000
+ C && S === "success" && /* @__PURE__ */ y(tt, { children: [
3001
3001
  /* @__PURE__ */ n("div", { className: "ina-single-file-upload__icon-wrapper ina-single-file-upload__icon-wrapper--file", children: ne() }),
3002
3002
  /* @__PURE__ */ y("div", { className: "ina-single-file-upload__content", children: [
3003
3003
  /* @__PURE__ */ n("div", { className: "ina-single-file-upload__title", children: C.name }),
@@ -5369,7 +5369,7 @@ function _s({
5369
5369
  }
5370
5370
  }
5371
5371
  ),
5372
- !l && /* @__PURE__ */ y(et, { children: [
5372
+ !l && /* @__PURE__ */ y(tt, { children: [
5373
5373
  /* @__PURE__ */ n("div", { className: "ina-spinner__title", children: s }),
5374
5374
  /* @__PURE__ */ n("div", { className: "ina-spinner__subtitle", children: i })
5375
5375
  ] })
@@ -6853,9 +6853,9 @@ const Fa = Bt({
6853
6853
  ))
6854
6854
  ] });
6855
6855
  };
6856
- var ut = (e) => e.type === "checkbox", tt = (e) => e instanceof Date, Ge = (e) => e == null;
6856
+ var ut = (e) => e.type === "checkbox", et = (e) => e instanceof Date, Ge = (e) => e == null;
6857
6857
  const Ra = (e) => typeof e == "object";
6858
- var Re = (e) => !Ge(e) && !Array.isArray(e) && Ra(e) && !tt(e), za = (e) => Re(e) && e.target ? ut(e.target) ? e.target.checked : e.target.value : e, Jn = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Ba = (e, a) => e.has(Jn(a)), Zn = (e) => {
6858
+ var Re = (e) => !Ge(e) && !Array.isArray(e) && Ra(e) && !et(e), za = (e) => Re(e) && e.target ? ut(e.target) ? e.target.checked : e.target.value : e, Jn = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Ba = (e, a) => e.has(Jn(a)), Zn = (e) => {
6859
6859
  const a = e.constructor && e.constructor.prototype;
6860
6860
  return Re(a) && a.hasOwnProperty("isPrototypeOf");
6861
6861
  }, Ht = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
@@ -6957,7 +6957,7 @@ var je = (e) => typeof e == "string", Vt = (e, a, t, r, s) => je(e) ? (r && a.wa
6957
6957
  function qe(e, a, t = /* @__PURE__ */ new WeakSet()) {
6958
6958
  if (Ft(e) || Ft(a))
6959
6959
  return Object.is(e, a);
6960
- if (tt(e) && tt(a))
6960
+ if (et(e) && et(a))
6961
6961
  return Object.is(e.getTime(), a.getTime());
6962
6962
  const r = Object.keys(e), s = Object.keys(a);
6963
6963
  if (r.length !== s.length)
@@ -6971,7 +6971,7 @@ function qe(e, a, t = /* @__PURE__ */ new WeakSet()) {
6971
6971
  return !1;
6972
6972
  if (i !== "ref") {
6973
6973
  const c = a[i];
6974
- if (tt(l) && tt(c) || Re(l) && Re(c) || Array.isArray(l) && Array.isArray(c) ? !qe(l, c, t) : !Object.is(l, c))
6974
+ if (et(l) && et(c) || Re(l) && Re(c) || Array.isArray(l) && Array.isArray(c) ? !qe(l, c, t) : !Object.is(l, c))
6975
6975
  return !1;
6976
6976
  }
6977
6977
  }
@@ -7630,7 +7630,7 @@ function vr(e = {}) {
7630
7630
  if (!h.hasOwnProperty(F))
7631
7631
  return;
7632
7632
  const V = h[F], R = o + "." + F, X = re(r, R);
7633
- (c.array.has(o) || Re(V) || X && !X._f) && !tt(V) ? se(R, V, N) : ee(R, V, N);
7633
+ (c.array.has(o) || Re(V) || X && !X._f) && !et(V) ? se(R, V, N) : ee(R, V, N);
7634
7634
  }
7635
7635
  }, ne = (o, h, N = {}) => {
7636
7636
  const F = re(r, o), V = c.array.has(o), R = Fe(h);
@@ -7654,7 +7654,7 @@ function vr(e = {}) {
7654
7654
  const h = o.target;
7655
7655
  let N = h.name, F = !0;
7656
7656
  const V = re(r, N), R = (me) => {
7657
- F = Number.isNaN(me) || tt(me) && isNaN(me.getTime()) || qe(me, re(i, N, me));
7657
+ F = Number.isNaN(me) || et(me) && isNaN(me.getTime()) || qe(me, re(i, N, me));
7658
7658
  }, X = ca(a.mode), ue = ca(a.reValidateMode);
7659
7659
  if (V) {
7660
7660
  let me, d;
@@ -9203,7 +9203,7 @@ const Ya = [
9203
9203
  _,
9204
9204
  p && /* @__PURE__ */ n("span", { className: "ina-date-picker__required", children: "*" })
9205
9205
  ] }),
9206
- !T && /* @__PURE__ */ y(et, { children: [
9206
+ !T && /* @__PURE__ */ y("div", { className: "ina-date-picker__trigger-wrapper", children: [
9207
9207
  /* @__PURE__ */ y(
9208
9208
  "button",
9209
9209
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idds/react",
3
- "version": "1.6.31",
3
+ "version": "1.6.32",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -53,7 +53,7 @@
53
53
  "./*": "./dist/*"
54
54
  },
55
55
  "dependencies": {
56
- "@idds/styles": "^1.6.27",
56
+ "@idds/styles": "^1.6.28",
57
57
  "clsx": "^2.1.1",
58
58
  "react-hook-form": "^7.60.0"
59
59
  },