1mpacto-react-ui 0.0.72 → 0.0.73

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.mjs CHANGED
@@ -3447,35 +3447,35 @@ const Vt = {
3447
3447
  lg: "1024px",
3448
3448
  xl: "1280px",
3449
3449
  "2xl": "1536px"
3450
- }, pS = () => /* @__PURE__ */ D.jsx("div", { className: "1ru-w-full 1ru-bg-red-900", children: "index" }), f3 = "_loading_6tim5_10", Ye = {
3451
- "button-base": "_button-base_6tim5_6",
3452
- "button-xs": "_button-xs_6tim5_6",
3453
- "button-s": "_button-s_6tim5_6",
3454
- "button-m": "_button-m_6tim5_6",
3455
- "button-l": "_button-l_6tim5_6",
3456
- "button-small": "_button-small_6tim5_6",
3457
- "button-reguler": "_button-reguler_6tim5_6",
3458
- "button-large": "_button-large_6tim5_6",
3450
+ }, pS = () => /* @__PURE__ */ D.jsx("div", { className: "1ru-w-full 1ru-bg-red-900", children: "index" }), f3 = "_loading_55t43_10", Ye = {
3451
+ "button-base": "_button-base_55t43_6",
3452
+ "button-xs": "_button-xs_55t43_6",
3453
+ "button-s": "_button-s_55t43_6",
3454
+ "button-m": "_button-m_55t43_6",
3455
+ "button-l": "_button-l_55t43_6",
3456
+ "button-small": "_button-small_55t43_6",
3457
+ "button-reguler": "_button-reguler_55t43_6",
3458
+ "button-large": "_button-large_55t43_6",
3459
3459
  loading: f3,
3460
- "button-disabled-laba-grey-06": "_button-disabled-laba-grey-06_6tim5_18",
3461
- "nude-laba-red-10": "_nude-laba-red-10_6tim5_18",
3462
- "nude-gray-500": "_nude-gray-500_6tim5_18",
3463
- "nude-laba-blue-10": "_nude-laba-blue-10_6tim5_18",
3464
- "ghost-blue-gray-100-bg_white": "_ghost-blue-gray-100-bg_white_6tim5_18",
3465
- "ghost-laba-blue-10": "_ghost-laba-blue-10_6tim5_18",
3466
- "filled-laba-blue-10": "_filled-laba-blue-10_6tim5_18",
3467
- "button-disabled-gray-100": "_button-disabled-gray-100_6tim5_18",
3468
- "tertiary-gray-500": "_tertiary-gray-500_6tim5_18",
3469
- "tertiary-red-600": "_tertiary-red-600_6tim5_18",
3470
- "tertiary-red-300": "_tertiary-red-300_6tim5_18",
3471
- "tertiary-blue-700": "_tertiary-blue-700_6tim5_18",
3472
- "secondary-green-600": "_secondary-green-600_6tim5_18",
3473
- "secondary-red-600": "_secondary-red-600_6tim5_18",
3474
- "secondary-blue-700": "_secondary-blue-700_6tim5_18",
3475
- "primary-red-700": "_primary-red-700_6tim5_18",
3476
- "primary-blue-700": "_primary-blue-700_6tim5_18",
3477
- "icon-loading": "_icon-loading_6tim5_90",
3478
- "spin-loading": "_spin-loading_6tim5_1"
3460
+ "button-disabled-laba-grey-06": "_button-disabled-laba-grey-06_55t43_18",
3461
+ "nude-laba-red-10": "_nude-laba-red-10_55t43_18",
3462
+ "nude-gray-500": "_nude-gray-500_55t43_18",
3463
+ "nude-laba-blue-10": "_nude-laba-blue-10_55t43_18",
3464
+ "ghost-blue-gray-100-bg_white": "_ghost-blue-gray-100-bg_white_55t43_18",
3465
+ "ghost-laba-blue-10": "_ghost-laba-blue-10_55t43_18",
3466
+ "filled-laba-blue-10": "_filled-laba-blue-10_55t43_18",
3467
+ "button-disabled-gray-100": "_button-disabled-gray-100_55t43_18",
3468
+ "tertiary-gray-500": "_tertiary-gray-500_55t43_18",
3469
+ "tertiary-red-600": "_tertiary-red-600_55t43_18",
3470
+ "tertiary-red-300": "_tertiary-red-300_55t43_18",
3471
+ "tertiary-blue-700": "_tertiary-blue-700_55t43_18",
3472
+ "secondary-green-600": "_secondary-green-600_55t43_18",
3473
+ "secondary-red-600": "_secondary-red-600_55t43_18",
3474
+ "secondary-blue-700": "_secondary-blue-700_55t43_18",
3475
+ "primary-red-700": "_primary-red-700_55t43_18",
3476
+ "primary-blue-700": "_primary-blue-700_55t43_18",
3477
+ "icon-loading": "_icon-loading_55t43_90",
3478
+ "spin-loading": "_spin-loading_55t43_1"
3479
3479
  }, g3 = ({ className: e = "" }) => /* @__PURE__ */ D.jsx(
3480
3480
  "svg",
3481
3481
  {
@@ -3515,8 +3515,9 @@ const Vt = {
3515
3515
  loading: l,
3516
3516
  onClick: c,
3517
3517
  type: f = "button",
3518
- ...g
3519
- } = e, d = {
3518
+ disabled: g,
3519
+ ...d
3520
+ } = e, m = {
3520
3521
  size: {
3521
3522
  large: Ye["button-large"],
3522
3523
  reguler: Ye["button-reguler"],
@@ -3558,16 +3559,17 @@ const Vt = {
3558
3559
  {
3559
3560
  onClick: l ? void 0 : c,
3560
3561
  ref: t,
3561
- className: `${d.size[n]} ${d.variants[r]}
3562
+ className: `${m.size[n]} ${m.variants[r]}
3562
3563
  ${l ? Ye.loading : ""} ${u ?? ""}`,
3563
3564
  type: f,
3564
- ...g,
3565
+ disabled: l ?? g,
3566
+ ...d,
3565
3567
  children: [
3566
3568
  !l && /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
3567
3569
  typeof a == "function" && a(),
3568
3570
  ye(a) && a
3569
3571
  ] }),
3570
- l && /* @__PURE__ */ D.jsx(g3, { className: `${d.loadingSize[n]} ${s}` }),
3572
+ l && /* @__PURE__ */ D.jsx(g3, { className: `${m.loadingSize[n]} ${s}` }),
3571
3573
  i,
3572
3574
  !l && /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
3573
3575
  typeof o == "function" && o(),
@@ -23384,35 +23386,35 @@ const Q1 = (e) => {
23384
23386
  ]
23385
23387
  }
23386
23388
  );
23387
- }, G9 = "_loading_1o7qs_10", Ue = {
23388
- "button-base": "_button-base_1o7qs_6",
23389
- "button-xs": "_button-xs_1o7qs_6",
23390
- "button-s": "_button-s_1o7qs_6",
23391
- "button-m": "_button-m_1o7qs_6",
23392
- "button-l": "_button-l_1o7qs_6",
23393
- "button-small": "_button-small_1o7qs_6",
23394
- "button-reguler": "_button-reguler_1o7qs_6",
23395
- "button-large": "_button-large_1o7qs_6",
23389
+ }, G9 = "_loading_1bhvc_10", Ue = {
23390
+ "button-base": "_button-base_1bhvc_6",
23391
+ "button-xs": "_button-xs_1bhvc_6",
23392
+ "button-s": "_button-s_1bhvc_6",
23393
+ "button-m": "_button-m_1bhvc_6",
23394
+ "button-l": "_button-l_1bhvc_6",
23395
+ "button-small": "_button-small_1bhvc_6",
23396
+ "button-reguler": "_button-reguler_1bhvc_6",
23397
+ "button-large": "_button-large_1bhvc_6",
23396
23398
  loading: G9,
23397
- "button-disabled-laba-grey-06": "_button-disabled-laba-grey-06_1o7qs_18",
23398
- "nude-laba-red-10": "_nude-laba-red-10_1o7qs_18",
23399
- "nude-gray-500": "_nude-gray-500_1o7qs_18",
23400
- "nude-laba-blue-10": "_nude-laba-blue-10_1o7qs_18",
23401
- "ghost-blue-gray-100-bg_white": "_ghost-blue-gray-100-bg_white_1o7qs_18",
23402
- "ghost-laba-blue-10": "_ghost-laba-blue-10_1o7qs_18",
23403
- "filled-laba-blue-10": "_filled-laba-blue-10_1o7qs_18",
23404
- "button-disabled-gray-100": "_button-disabled-gray-100_1o7qs_18",
23405
- "tertiary-gray-500": "_tertiary-gray-500_1o7qs_18",
23406
- "tertiary-red-600": "_tertiary-red-600_1o7qs_18",
23407
- "tertiary-red-300": "_tertiary-red-300_1o7qs_18",
23408
- "tertiary-blue-700": "_tertiary-blue-700_1o7qs_18",
23409
- "secondary-green-600": "_secondary-green-600_1o7qs_18",
23410
- "secondary-red-600": "_secondary-red-600_1o7qs_18",
23411
- "secondary-blue-700": "_secondary-blue-700_1o7qs_18",
23412
- "primary-red-700": "_primary-red-700_1o7qs_18",
23413
- "primary-blue-700": "_primary-blue-700_1o7qs_18",
23414
- "icon-loading": "_icon-loading_1o7qs_76",
23415
- "spin-loading": "_spin-loading_1o7qs_1"
23399
+ "button-disabled-laba-grey-06": "_button-disabled-laba-grey-06_1bhvc_18",
23400
+ "nude-laba-red-10": "_nude-laba-red-10_1bhvc_18",
23401
+ "nude-gray-500": "_nude-gray-500_1bhvc_18",
23402
+ "nude-laba-blue-10": "_nude-laba-blue-10_1bhvc_18",
23403
+ "ghost-blue-gray-100-bg_white": "_ghost-blue-gray-100-bg_white_1bhvc_18",
23404
+ "ghost-laba-blue-10": "_ghost-laba-blue-10_1bhvc_18",
23405
+ "filled-laba-blue-10": "_filled-laba-blue-10_1bhvc_18",
23406
+ "button-disabled-gray-100": "_button-disabled-gray-100_1bhvc_18",
23407
+ "tertiary-gray-500": "_tertiary-gray-500_1bhvc_18",
23408
+ "tertiary-red-600": "_tertiary-red-600_1bhvc_18",
23409
+ "tertiary-red-300": "_tertiary-red-300_1bhvc_18",
23410
+ "tertiary-blue-700": "_tertiary-blue-700_1bhvc_18",
23411
+ "secondary-green-600": "_secondary-green-600_1bhvc_18",
23412
+ "secondary-red-600": "_secondary-red-600_1bhvc_18",
23413
+ "secondary-blue-700": "_secondary-blue-700_1bhvc_18",
23414
+ "primary-red-700": "_primary-red-700_1bhvc_18",
23415
+ "primary-blue-700": "_primary-blue-700_1bhvc_18",
23416
+ "icon-loading": "_icon-loading_1bhvc_76",
23417
+ "spin-loading": "_spin-loading_1bhvc_1"
23416
23418
  }, H9 = ({ className: e = "" }) => /* @__PURE__ */ D.jsx(
23417
23419
  "svg",
23418
23420
  {
@@ -23450,8 +23452,9 @@ const Q1 = (e) => {
23450
23452
  loading: u,
23451
23453
  onClick: s,
23452
23454
  type: l = "button",
23453
- ...c
23454
- } = e, f = {
23455
+ disabled: c,
23456
+ ...f
23457
+ } = e, g = {
23455
23458
  size: {
23456
23459
  large: Ue["button-large"],
23457
23460
  reguler: Ue["button-reguler"],
@@ -23493,12 +23496,13 @@ const Q1 = (e) => {
23493
23496
  {
23494
23497
  onClick: u ? void 0 : s,
23495
23498
  ref: t,
23496
- className: `${f.size[n]} ${f.variants[r]}
23499
+ className: `${g.size[n]} ${g.variants[r]}
23497
23500
  ${u ? Ue.loading : ""} ${o ?? ""}`,
23498
23501
  type: l,
23499
- ...c,
23502
+ disabled: u ?? c,
23503
+ ...f,
23500
23504
  children: [
23501
- u && /* @__PURE__ */ D.jsx(H9, { className: `${f.loadingSize[n]} ${i}` }),
23505
+ u && /* @__PURE__ */ D.jsx(H9, { className: `${g.loadingSize[n]} ${i}` }),
23502
23506
  a
23503
23507
  ]
23504
23508
  }
@@ -25036,19 +25040,23 @@ function VS(e) {
25036
25040
  var t = G$(e);
25037
25041
  return A.createElement(db, Object.assign({}, t));
25038
25042
  }
25039
- const NS = ({ max: e, min: t, onChange: n, ...r }) => /* @__PURE__ */ D.jsx(
25043
+ const NS = ({ max: e, min: t, selectedText: n = "Rp0", onChange: r, onFocusInput: a, ...o }) => /* @__PURE__ */ D.jsx(
25040
25044
  M$,
25041
25045
  {
25042
- isAllowed: (a) => e !== void 0 && fs(e) && Number(a.value) > e ? (typeof n == "function" && n({ target: { value: e.toString() } }), !1) : t !== void 0 && fs(t) && Number(a.value) < t ? (typeof n == "function" && n({ target: { value: t.toString() } }), !1) : !0,
25043
- onValueChange: (a, { source: o }) => {
25044
- typeof n == "function" && o.includes("event") && n({ target: { value: a.value } });
25046
+ isAllowed: (i) => e !== void 0 && fs(e) && Number(i.value) > e ? (typeof r == "function" && r({ target: { value: e.toString() } }), !1) : t !== void 0 && fs(t) && Number(i.value) < t ? (typeof r == "function" && r({ target: { value: t.toString() } }), !1) : !0,
25047
+ onValueChange: (i, { source: u }) => {
25048
+ typeof r == "function" && u.includes("event") && r({ target: { value: i.value } });
25045
25049
  },
25046
25050
  decimalSeparator: ",",
25047
25051
  thousandSeparator: ".",
25048
25052
  decimalScale: 2,
25049
25053
  valueIsNumericString: !0,
25050
25054
  thousandsGroupStyle: "thousand",
25051
- ...r
25055
+ onFocus: (i) => {
25056
+ var u;
25057
+ ((u = i == null ? void 0 : i.target) == null ? void 0 : u.value) === n && (typeof a == "function" ? a("") : typeof r == "function" && r({ target: { value: "" } }));
25058
+ },
25059
+ ...o
25052
25060
  }
25053
25061
  ), OS = ({
25054
25062
  children: e,