@wface/pixel-ui 0.5.3 → 0.5.8
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/README.md +187 -60
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +22 -22
- package/dist/styles.css +1 -1
- package/package.json +3 -2
package/dist/index.mjs
CHANGED
|
@@ -25,7 +25,7 @@ const De = xC(void 0), Io = ({ children: A }) => {
|
|
|
25
25
|
const t = localStorage.getItem("expanded");
|
|
26
26
|
t !== null ? B(JSON.parse(t)) : localStorage.setItem("expanded", JSON.stringify(!0));
|
|
27
27
|
}, []), /* @__PURE__ */ l(De.Provider, { value: { theme: g, setTheme: E, toggleTheme: Q, expanded: I, toggleExpand: e }, children: A });
|
|
28
|
-
},
|
|
28
|
+
}, i1 = () => {
|
|
29
29
|
const A = Tg(De);
|
|
30
30
|
if (!A)
|
|
31
31
|
throw new Error("useTheme must be used within ThemeProvider");
|
|
@@ -231,7 +231,7 @@ function wo({ children: A, defaultDuration: g = 3e3, maxVisible: C = 3 }) {
|
|
|
231
231
|
)
|
|
232
232
|
] });
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function a1() {
|
|
235
235
|
const A = Tg(Fe);
|
|
236
236
|
if (!A) throw new Error("useToast must be used within <ToastProvider>");
|
|
237
237
|
return A;
|
|
@@ -532,7 +532,7 @@ const Aa = "_inputContainer_edg5z_1", ga = "_input_edg5z_1", Ca = "_desc_edg5z_1
|
|
|
532
532
|
] });
|
|
533
533
|
};
|
|
534
534
|
aI.displayName = "PiInput";
|
|
535
|
-
const sa = "
|
|
535
|
+
const sa = "_container_1iucr_1", ca = "_textarea_1iucr_4", la = "_desc_1iucr_16", ua = "_wrapper_1iucr_21", da = "_prefix_1iucr_52", fa = "_suffix_1iucr_52", pa = "_withSuffix_1iucr_70", ha = "_withPrefix_1iucr_73", va = "_error_1iucr_86", ba = "_errorMessage_1iucr_89", qA = {
|
|
536
536
|
container: sa,
|
|
537
537
|
textarea: ca,
|
|
538
538
|
desc: la,
|
|
@@ -4695,7 +4695,7 @@ const Xl = "_select_1whzm_1", zl = "_label_1whzm_4", Wl = "_error_1whzm_12", jl
|
|
|
4695
4695
|
(B) => !C.find((E) => E.value === B.value)
|
|
4696
4696
|
) || [];
|
|
4697
4697
|
return [...C, ...I];
|
|
4698
|
-
}, AE = (A, g) => A.length > g ? A.slice(0, g) + "..." : A,
|
|
4698
|
+
}, AE = (A, g) => A.length > g ? A.slice(0, g) + "..." : A, s1 = {
|
|
4699
4699
|
getSortedOptions: nu,
|
|
4700
4700
|
shortenString: AE
|
|
4701
4701
|
};
|
|
@@ -8720,7 +8720,7 @@ const Ev = "_drawer_1y6g1_1", Qv = "_wrapper_1y6g1_1", ev = "_close_1y6g1_8", tv
|
|
|
8720
8720
|
);
|
|
8721
8721
|
};
|
|
8722
8722
|
lv.displayName = "PiDrawer";
|
|
8723
|
-
const uv = "
|
|
8723
|
+
const uv = "_submenu_21ri7_1", dv = "_dropdownMenu_21ri7_1", fv = "_dropdown_21ri7_1", pv = "_menuItem_21ri7_8", hv = "_icon_21ri7_18", vv = "_text_21ri7_28", bv = "_active_21ri7_46", mv = "_dropdownMenuButton_21ri7_59", wv = "_menuItemContainer_21ri7_77", Dv = "_disabled_21ri7_77", yv = "_checkIcon_21ri7_81", Sv = "_line_21ri7_88", Pv = "_title_21ri7_93", Nv = "_submenuIndicator_21ri7_131", mA = {
|
|
8724
8724
|
submenu: uv,
|
|
8725
8725
|
dropdownMenu: dv,
|
|
8726
8726
|
dropdown: fv,
|
|
@@ -15593,7 +15593,7 @@ const he = {
|
|
|
15593
15593
|
[Q, e, B, E]
|
|
15594
15594
|
);
|
|
15595
15595
|
return /* @__PURE__ */ l("div", { className: zC(JA.tableCell, C), style: t, children: g });
|
|
15596
|
-
},
|
|
15596
|
+
}, A1 = (A) => {
|
|
15597
15597
|
const {
|
|
15598
15598
|
children: g,
|
|
15599
15599
|
className: C,
|
|
@@ -15638,7 +15638,7 @@ const he = {
|
|
|
15638
15638
|
)
|
|
15639
15639
|
}
|
|
15640
15640
|
) : /* @__PURE__ */ l("div", { className: r(), id: n, onClick: o, children: i });
|
|
15641
|
-
},
|
|
15641
|
+
}, g1 = (A) => {
|
|
15642
15642
|
const { children: g, className: C, draggable: I, onDragEnd: B } = A, E = Z(
|
|
15643
15643
|
(...e) => B?.(...e),
|
|
15644
15644
|
[B]
|
|
@@ -15658,7 +15658,7 @@ const he = {
|
|
|
15658
15658
|
]
|
|
15659
15659
|
}
|
|
15660
15660
|
) }) }) : /* @__PURE__ */ l("div", { className: Q, children: g });
|
|
15661
|
-
},
|
|
15661
|
+
}, C1 = (A) => /* @__PURE__ */ l("div", { className: zC(JA.tableHeader, A.className), children: A.children }), WC = (A) => {
|
|
15662
15662
|
const {
|
|
15663
15663
|
children: g,
|
|
15664
15664
|
className: C,
|
|
@@ -15683,17 +15683,17 @@ const he = {
|
|
|
15683
15683
|
(r) => D.isValidElement(r) ? D.cloneElement(r, { draggable: e, onDragEnd: n }) : r
|
|
15684
15684
|
) : g });
|
|
15685
15685
|
};
|
|
15686
|
-
WC.TableRow =
|
|
15686
|
+
WC.TableRow = A1;
|
|
15687
15687
|
WC.TableCell = $9;
|
|
15688
|
-
WC.TableBody =
|
|
15689
|
-
WC.TableHeader =
|
|
15688
|
+
WC.TableBody = g1;
|
|
15689
|
+
WC.TableHeader = C1;
|
|
15690
15690
|
WC.displayName = "PiTable";
|
|
15691
|
-
const
|
|
15692
|
-
empty:
|
|
15693
|
-
content:
|
|
15694
|
-
title:
|
|
15695
|
-
desc:
|
|
15696
|
-
},
|
|
15691
|
+
const I1 = "_empty_1xo3m_1", B1 = "_content_1xo3m_5", E1 = "_title_1xo3m_15", Q1 = "_desc_1xo3m_18", QI = {
|
|
15692
|
+
empty: I1,
|
|
15693
|
+
content: B1,
|
|
15694
|
+
title: E1,
|
|
15695
|
+
desc: Q1
|
|
15696
|
+
}, e1 = (A) => {
|
|
15697
15697
|
const { title: g, description: C, footer: I, className: B } = A;
|
|
15698
15698
|
return /* @__PURE__ */ l("div", { className: `${QI.empty} ${B || ""}`, children: /* @__PURE__ */ P("div", { className: QI.content, children: [
|
|
15699
15699
|
/* @__PURE__ */ l(xA, { className: QI.title, weight: "medium", size: "lg", as: "h3", children: g }),
|
|
@@ -15701,7 +15701,7 @@ const Iy = "_empty_1xo3m_1", By = "_content_1xo3m_5", Ey = "_title_1xo3m_15", Qy
|
|
|
15701
15701
|
I
|
|
15702
15702
|
] }) });
|
|
15703
15703
|
};
|
|
15704
|
-
|
|
15704
|
+
e1.displayName = "PiEmpty";
|
|
15705
15705
|
export {
|
|
15706
15706
|
Vo as PiAlert,
|
|
15707
15707
|
Qd as PiAvatar,
|
|
@@ -15716,7 +15716,7 @@ export {
|
|
|
15716
15716
|
qh as PiDateTimePicker,
|
|
15717
15717
|
lv as PiDrawer,
|
|
15718
15718
|
Ov as PiDropdown,
|
|
15719
|
-
|
|
15719
|
+
e1 as PiEmpty,
|
|
15720
15720
|
Rv as PiGrid,
|
|
15721
15721
|
$i as PiHeading,
|
|
15722
15722
|
aI as PiInput,
|
|
@@ -15736,9 +15736,9 @@ export {
|
|
|
15736
15736
|
Do as Pixel,
|
|
15737
15737
|
Io as ThemeProvider,
|
|
15738
15738
|
wo as ToastProvider,
|
|
15739
|
-
|
|
15739
|
+
s1 as helpers,
|
|
15740
15740
|
Fv as useClickOnOutside,
|
|
15741
|
-
|
|
15742
|
-
|
|
15741
|
+
i1 as useTheme,
|
|
15742
|
+
a1 as useToast
|
|
15743
15743
|
};
|
|
15744
15744
|
//# sourceMappingURL=index.mjs.map
|