1mpacto-react-ui 0.0.71 → 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/assets/style.css +1 -1
- package/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +116 -108
- package/dist/index.mjs.map +1 -1
- package/dist/src/components/NumberFormat/NumberFormat.d.ts +1 -1
- package/dist/src/interfaces/components/NumberFormat/index.d.ts +2 -0
- package/package.json +4 -3
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 = "
|
3451
|
-
"button-base": "_button-
|
3452
|
-
"button-xs": "_button-
|
3453
|
-
"button-s": "_button-
|
3454
|
-
"button-m": "_button-
|
3455
|
-
"button-l": "_button-
|
3456
|
-
"button-small": "_button-
|
3457
|
-
"button-reguler": "_button-
|
3458
|
-
"button-large": "_button-
|
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-
|
3461
|
-
"nude-laba-red-10": "_nude-laba-red-
|
3462
|
-
"nude-gray-500": "_nude-gray-
|
3463
|
-
"nude-laba-blue-10": "_nude-laba-blue-
|
3464
|
-
"ghost-blue-gray-100-bg_white": "_ghost-blue-gray-100-
|
3465
|
-
"ghost-laba-blue-10": "_ghost-laba-blue-
|
3466
|
-
"filled-laba-blue-10": "_filled-laba-blue-
|
3467
|
-
"button-disabled-gray-100": "_button-disabled-gray-
|
3468
|
-
"tertiary-gray-500": "_tertiary-gray-
|
3469
|
-
"tertiary-red-600": "_tertiary-red-
|
3470
|
-
"tertiary-red-300": "_tertiary-red-
|
3471
|
-
"tertiary-blue-700": "_tertiary-blue-
|
3472
|
-
"secondary-green-600": "_secondary-green-
|
3473
|
-
"secondary-red-600": "_secondary-red-
|
3474
|
-
"secondary-blue-700": "_secondary-blue-
|
3475
|
-
"primary-red-700": "_primary-red-
|
3476
|
-
"primary-blue-700": "_primary-blue-
|
3477
|
-
"icon-loading": "_icon-
|
3478
|
-
"spin-loading": "_spin-
|
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
|
-
|
3519
|
-
|
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: `${
|
3562
|
+
className: `${m.size[n]} ${m.variants[r]}
|
3562
3563
|
${l ? Ye.loading : ""} ${u ?? ""}`,
|
3563
3564
|
type: f,
|
3564
|
-
|
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: `${
|
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(),
|
@@ -11408,7 +11410,7 @@ const D2 = /* @__PURE__ */ Be(() => {
|
|
11408
11410
|
endReached: I
|
11409
11411
|
} = e, [E, C] = de(0), S = () => {
|
11410
11412
|
if (i === "min-max") {
|
11411
|
-
const k = (o + 1) * u;
|
11413
|
+
const k = (o + (o === 0 ? 1 : 0)) * u;
|
11412
11414
|
return { height: o > l ? s : E > k ? E : k };
|
11413
11415
|
}
|
11414
11416
|
return i === "container" ? { height: E } : {};
|
@@ -11728,7 +11730,7 @@ const W2 = ({ style: e, context: t, ...n }) => /* @__PURE__ */ D.jsx("table", {
|
|
11728
11730
|
classNamePointer: c,
|
11729
11731
|
emptyPlaceholder: f
|
11730
11732
|
}) => {
|
11731
|
-
var m, p;
|
11733
|
+
var m, p, b;
|
11732
11734
|
const [g, d] = A.useState(0);
|
11733
11735
|
return /* @__PURE__ */ D.jsx(
|
11734
11736
|
Jm,
|
@@ -11745,67 +11747,67 @@ const W2 = ({ style: e, context: t, ...n }) => /* @__PURE__ */ D.jsx("table", {
|
|
11745
11747
|
// eslint-disable-next-line
|
11746
11748
|
// @ts-ignore
|
11747
11749
|
Table: W2,
|
11748
|
-
EmptyPlaceholder: () => /* @__PURE__ */ D.jsx("
|
11749
|
-
var
|
11750
|
-
return d(((
|
11751
|
-
}, children: /* @__PURE__ */ D.jsx("td", { colSpan: e.getVisibleFlatColumns().length, children: ye(f) && f }) })
|
11750
|
+
EmptyPlaceholder: () => /* @__PURE__ */ D.jsx("tbody", { ref: (h) => {
|
11751
|
+
var v;
|
11752
|
+
return d(((v = h == null ? void 0 : h.getBoundingClientRect()) == null ? void 0 : v.height) ?? 0);
|
11753
|
+
}, children: /* @__PURE__ */ D.jsx("tr", { children: /* @__PURE__ */ D.jsx("td", { colSpan: e.getVisibleFlatColumns().length, children: ye(f) && f }) }) })
|
11752
11754
|
},
|
11753
11755
|
classNameContainer: t,
|
11754
|
-
fixedHeaderContent: () => e.getHeaderGroups().map((
|
11755
|
-
var
|
11756
|
+
fixedHeaderContent: () => e.getHeaderGroups().map((h) => /* @__PURE__ */ D.jsx("tr", { children: h.headers.map((v) => {
|
11757
|
+
var y, w;
|
11756
11758
|
return /* @__PURE__ */ D.jsx(
|
11757
11759
|
"th",
|
11758
11760
|
{
|
11759
|
-
colSpan:
|
11760
|
-
style: typeof ((
|
11761
|
-
children:
|
11761
|
+
colSpan: v.colSpan,
|
11762
|
+
style: typeof ((y = v.column.columnDef.meta) == null ? void 0 : y.styleTh) == "function" ? (w = v.column.columnDef.meta) == null ? void 0 : w.styleTh(v.column.columnDef) : {},
|
11763
|
+
children: v.isPlaceholder ? null : /* @__PURE__ */ D.jsxs(
|
11762
11764
|
"div",
|
11763
11765
|
{
|
11764
|
-
className:
|
11765
|
-
onClick:
|
11766
|
+
className: v.column.getCanSort() ? Qr.sorting : "",
|
11767
|
+
onClick: v.column.getToggleSortingHandler(),
|
11766
11768
|
children: [
|
11767
|
-
za(
|
11768
|
-
|
11769
|
-
|
11770
|
-
|
11769
|
+
za(v.column.columnDef.header, v.getContext()),
|
11770
|
+
v.column.getCanSort() && /* @__PURE__ */ D.jsx("span", { className: "1ru-flex-shrink-0", children: v.column.getIsSorted() === "asc" || v.column.getIsSorted() === "desc" ? /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
|
11771
|
+
v.column.getIsSorted() === "asc" && /* @__PURE__ */ D.jsx(D.Fragment, { children: s }),
|
11772
|
+
v.column.getIsSorted() === "desc" && /* @__PURE__ */ D.jsx(D.Fragment, { children: l })
|
11771
11773
|
] }) : /* @__PURE__ */ D.jsx(D.Fragment, {}) })
|
11772
11774
|
]
|
11773
11775
|
}
|
11774
11776
|
)
|
11775
11777
|
},
|
11776
|
-
|
11778
|
+
v.id
|
11777
11779
|
);
|
11778
|
-
}) },
|
11779
|
-
itemContent: (
|
11780
|
-
var
|
11781
|
-
const
|
11782
|
-
return /* @__PURE__ */ D.jsx(
|
11780
|
+
}) }, h.id)),
|
11781
|
+
itemContent: (h, v) => {
|
11782
|
+
var w, x;
|
11783
|
+
const y = (x = (w = e.getRowModel()) == null ? void 0 : w.rows) == null ? void 0 : x[v];
|
11784
|
+
return /* @__PURE__ */ D.jsx(h, { children: ({ ...I }) => /* @__PURE__ */ sl(
|
11783
11785
|
"tr",
|
11784
11786
|
{
|
11785
|
-
...
|
11786
|
-
onClick: (
|
11787
|
-
|
11787
|
+
...I,
|
11788
|
+
onClick: (E) => {
|
11789
|
+
E.stopPropagation(), r && typeof n == "function" && n(y.original, y);
|
11788
11790
|
},
|
11789
11791
|
className: r ? c : "",
|
11790
|
-
key:
|
11791
|
-
id: i(
|
11792
|
+
key: y.id,
|
11793
|
+
id: i(y)
|
11792
11794
|
},
|
11793
|
-
|
11794
|
-
var
|
11795
|
+
y.getVisibleCells().map((E) => {
|
11796
|
+
var C, S, B;
|
11795
11797
|
return /* @__PURE__ */ D.jsx(D.Fragment, { children: /* @__PURE__ */ D.jsx(
|
11796
11798
|
"td",
|
11797
11799
|
{
|
11798
|
-
style: typeof ((
|
11799
|
-
className: typeof ((
|
11800
|
-
children: za(
|
11800
|
+
style: typeof ((C = E.column.columnDef.meta) == null ? void 0 : C.styleTd) == "function" ? E.column.columnDef.meta.styleTd(y.original, y) : {},
|
11801
|
+
className: typeof ((S = E.column.columnDef.meta) == null ? void 0 : S.classNameTd) == "function" ? (B = E.column.columnDef.meta) == null ? void 0 : B.classNameTd(y.original, y) : "",
|
11802
|
+
children: za(E.column.columnDef.cell, E.getContext())
|
11801
11803
|
},
|
11802
|
-
|
11804
|
+
E.id
|
11803
11805
|
) });
|
11804
11806
|
})
|
11805
|
-
) },
|
11807
|
+
) }, y.id);
|
11806
11808
|
},
|
11807
11809
|
...a,
|
11808
|
-
minHeightItem: ((a == null ? void 0 : a.minHeightItem) ?? 60) + g
|
11810
|
+
minHeightItem: ((a == null ? void 0 : a.minHeightItem) ?? 60) + ((((b = e.getRowModel().rows) == null ? void 0 : b.length) || 0) > 0 ? 0 : g)
|
11809
11811
|
}
|
11810
11812
|
);
|
11811
11813
|
}, wS = ({
|
@@ -11902,7 +11904,7 @@ const W2 = ({ style: e, context: t, ...n }) => /* @__PURE__ */ D.jsx("table", {
|
|
11902
11904
|
endReached: x
|
11903
11905
|
} = e, [I, E] = de(0), C = () => {
|
11904
11906
|
if (i === "min-max") {
|
11905
|
-
const $ = (o + 1) * u;
|
11907
|
+
const $ = (o + (o === 0 ? 1 : 0)) * u;
|
11906
11908
|
return { height: o > l ? s : I > $ ? I : $ };
|
11907
11909
|
}
|
11908
11910
|
return i === "container" ? { height: I } : {};
|
@@ -23384,35 +23386,35 @@ const Q1 = (e) => {
|
|
23384
23386
|
]
|
23385
23387
|
}
|
23386
23388
|
);
|
23387
|
-
}, G9 = "
|
23388
|
-
"button-base": "_button-
|
23389
|
-
"button-xs": "_button-
|
23390
|
-
"button-s": "_button-
|
23391
|
-
"button-m": "_button-
|
23392
|
-
"button-l": "_button-
|
23393
|
-
"button-small": "_button-
|
23394
|
-
"button-reguler": "_button-
|
23395
|
-
"button-large": "_button-
|
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-
|
23398
|
-
"nude-laba-red-10": "_nude-laba-red-
|
23399
|
-
"nude-gray-500": "_nude-gray-
|
23400
|
-
"nude-laba-blue-10": "_nude-laba-blue-
|
23401
|
-
"ghost-blue-gray-100-bg_white": "_ghost-blue-gray-100-
|
23402
|
-
"ghost-laba-blue-10": "_ghost-laba-blue-
|
23403
|
-
"filled-laba-blue-10": "_filled-laba-blue-
|
23404
|
-
"button-disabled-gray-100": "_button-disabled-gray-
|
23405
|
-
"tertiary-gray-500": "_tertiary-gray-
|
23406
|
-
"tertiary-red-600": "_tertiary-red-
|
23407
|
-
"tertiary-red-300": "_tertiary-red-
|
23408
|
-
"tertiary-blue-700": "_tertiary-blue-
|
23409
|
-
"secondary-green-600": "_secondary-green-
|
23410
|
-
"secondary-red-600": "_secondary-red-
|
23411
|
-
"secondary-blue-700": "_secondary-blue-
|
23412
|
-
"primary-red-700": "_primary-red-
|
23413
|
-
"primary-blue-700": "_primary-blue-
|
23414
|
-
"icon-loading": "_icon-
|
23415
|
-
"spin-loading": "_spin-
|
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
|
-
|
23454
|
-
|
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: `${
|
23499
|
+
className: `${g.size[n]} ${g.variants[r]}
|
23497
23500
|
${u ? Ue.loading : ""} ${o ?? ""}`,
|
23498
23501
|
type: l,
|
23499
|
-
|
23502
|
+
disabled: u ?? c,
|
23503
|
+
...f,
|
23500
23504
|
children: [
|
23501
|
-
u && /* @__PURE__ */ D.jsx(H9, { className: `${
|
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,
|
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: (
|
25043
|
-
onValueChange: (
|
25044
|
-
typeof
|
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
|
-
|
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,
|