@leapdevuk/component-toolbox 0.0.69 → 0.0.72
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
|
@@ -671,27 +671,18 @@ const af = ({
|
|
|
671
671
|
children: "Help"
|
|
672
672
|
}
|
|
673
673
|
) }) })
|
|
674
|
-
] }), Ye = (
|
|
675
|
-
disabled: t,
|
|
676
|
-
onClick: n,
|
|
677
|
-
primary: e,
|
|
678
|
-
size: r,
|
|
679
|
-
children: a,
|
|
680
|
-
variant: o,
|
|
681
|
-
sx: i,
|
|
682
|
-
...s
|
|
683
|
-
}) => /* @__PURE__ */ m.jsx(
|
|
674
|
+
] }), Ye = (t) => /* @__PURE__ */ m.jsx(
|
|
684
675
|
He,
|
|
685
676
|
{
|
|
686
|
-
color:
|
|
687
|
-
disabled: t,
|
|
677
|
+
color: t.color || "primary",
|
|
678
|
+
disabled: t.disabled,
|
|
688
679
|
disableRipple: !0,
|
|
689
|
-
onClick:
|
|
690
|
-
size:
|
|
691
|
-
variant:
|
|
692
|
-
sx:
|
|
693
|
-
...
|
|
694
|
-
children:
|
|
680
|
+
onClick: t.onClick,
|
|
681
|
+
size: t.size || "small",
|
|
682
|
+
variant: t.variant || "contained",
|
|
683
|
+
sx: t.sx,
|
|
684
|
+
...t,
|
|
685
|
+
children: t.children
|
|
695
686
|
}
|
|
696
687
|
), of = ({
|
|
697
688
|
decimalScale: t,
|
|
@@ -6099,7 +6090,7 @@ function pu(t, n, e) {
|
|
|
6099
6090
|
};
|
|
6100
6091
|
}
|
|
6101
6092
|
/**
|
|
6102
|
-
* @mui/styled-engine v6.1.
|
|
6093
|
+
* @mui/styled-engine v6.1.5
|
|
6103
6094
|
*
|
|
6104
6095
|
* @license MIT
|
|
6105
6096
|
* This source code is licensed under the MIT license found in the
|
|
@@ -8218,7 +8209,6 @@ const go = ({
|
|
|
8218
8209
|
)
|
|
8219
8210
|
), W(!1);
|
|
8220
8211
|
},
|
|
8221
|
-
primary: !0,
|
|
8222
8212
|
size: "small",
|
|
8223
8213
|
children: "Today"
|
|
8224
8214
|
}
|
|
@@ -8237,7 +8227,6 @@ const go = ({
|
|
|
8237
8227
|
)
|
|
8238
8228
|
), W(!1);
|
|
8239
8229
|
},
|
|
8240
|
-
primary: !0,
|
|
8241
8230
|
size: "small",
|
|
8242
8231
|
children: S.label
|
|
8243
8232
|
}
|
|
@@ -8269,7 +8258,6 @@ const go = ({
|
|
|
8269
8258
|
onClick: () => {
|
|
8270
8259
|
P(null);
|
|
8271
8260
|
},
|
|
8272
|
-
primary: !0,
|
|
8273
8261
|
children: "Keep Value"
|
|
8274
8262
|
}
|
|
8275
8263
|
) }),
|
|
@@ -8581,17 +8569,14 @@ const go = ({
|
|
|
8581
8569
|
{
|
|
8582
8570
|
style: {
|
|
8583
8571
|
backgroundColor: "#fff",
|
|
8584
|
-
border: "1px solid rgba(0, 0, 0, 0.12)"
|
|
8572
|
+
border: "1px solid rgba(0, 0, 0, 0.12)",
|
|
8573
|
+
borderRadius: 0
|
|
8585
8574
|
},
|
|
8586
8575
|
children: /* @__PURE__ */ m.jsxs(
|
|
8587
8576
|
"div",
|
|
8588
8577
|
{
|
|
8589
|
-
className: "displayFlex",
|
|
8590
|
-
style: {
|
|
8591
|
-
flexDirection: "row",
|
|
8592
|
-
alignItems: "center",
|
|
8593
|
-
borderRight: "1px solid rgba(0, 0, 0, 0.12)"
|
|
8594
|
-
},
|
|
8578
|
+
className: "displayFlex dateActionButtons",
|
|
8579
|
+
style: { flexDirection: "row" },
|
|
8595
8580
|
children: [
|
|
8596
8581
|
((s == null ? void 0 : s.showToday) || (s == null ? void 0 : s.showYesterday) || (s == null ? void 0 : s.showThisWeek) || (s == null ? void 0 : s.showLastWeek) || (s == null ? void 0 : s.showThisMonth) || (s == null ? void 0 : s.showLastMonth) || (s == null ? void 0 : s.showLast30) || (s == null ? void 0 : s.showLast60) || (s == null ? void 0 : s.showLast90) || (s == null ? void 0 : s.customActions)) && /* @__PURE__ */ m.jsxs(
|
|
8597
8582
|
"div",
|
|
@@ -8875,62 +8860,73 @@ const go = ({
|
|
|
8875
8860
|
}
|
|
8876
8861
|
),
|
|
8877
8862
|
/* @__PURE__ */ m.jsx(
|
|
8878
|
-
|
|
8863
|
+
"div",
|
|
8879
8864
|
{
|
|
8880
|
-
|
|
8881
|
-
|
|
8865
|
+
className: "displayFlex",
|
|
8866
|
+
style: {
|
|
8867
|
+
flexDirection: "column",
|
|
8868
|
+
borderLeft: "1px solid #e0e0e0",
|
|
8869
|
+
alignSelf: "flex-start"
|
|
8870
|
+
},
|
|
8882
8871
|
children: /* @__PURE__ */ m.jsx(
|
|
8883
|
-
|
|
8872
|
+
Ea,
|
|
8884
8873
|
{
|
|
8885
|
-
|
|
8886
|
-
|
|
8887
|
-
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
|
|
8900
|
-
|
|
8901
|
-
|
|
8902
|
-
|
|
8903
|
-
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
8919
|
-
|
|
8920
|
-
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8874
|
+
dateAdapter: Wa,
|
|
8875
|
+
adapterLocale: x,
|
|
8876
|
+
children: /* @__PURE__ */ m.jsx(
|
|
8877
|
+
ls,
|
|
8878
|
+
{
|
|
8879
|
+
value: [
|
|
8880
|
+
O ? new Date(O) : null,
|
|
8881
|
+
M ? new Date(M) : null
|
|
8882
|
+
],
|
|
8883
|
+
onChange: (v, $) => {
|
|
8884
|
+
$ !== "partial" && R(!1);
|
|
8885
|
+
const D = v[0] ? v[0] : null, B = v[1] ? v[1] : null;
|
|
8886
|
+
if (h) {
|
|
8887
|
+
const ye = h(D);
|
|
8888
|
+
ye && c(ye);
|
|
8889
|
+
const E = h(B);
|
|
8890
|
+
E && c(E);
|
|
8891
|
+
}
|
|
8892
|
+
_(d), W(
|
|
8893
|
+
D && Ee(new Date(D), A)
|
|
8894
|
+
), L(
|
|
8895
|
+
B && Ee(new Date(B), A)
|
|
8896
|
+
), i(
|
|
8897
|
+
te(
|
|
8898
|
+
D ? new Date(D) : null,
|
|
8899
|
+
!0,
|
|
8900
|
+
a,
|
|
8901
|
+
e,
|
|
8902
|
+
o
|
|
8903
|
+
),
|
|
8904
|
+
te(
|
|
8905
|
+
B ? new Date(B) : null,
|
|
8906
|
+
r,
|
|
8907
|
+
!0,
|
|
8908
|
+
e,
|
|
8909
|
+
o
|
|
8910
|
+
)
|
|
8911
|
+
);
|
|
8912
|
+
},
|
|
8913
|
+
calendars: k || 2,
|
|
8914
|
+
sx: {
|
|
8915
|
+
"& .MuiTypography-caption": { height: 30, width: 30 },
|
|
8916
|
+
"& .MuiDateRangePickerDay-rangeIntervalPreview": {
|
|
8917
|
+
height: 30,
|
|
8918
|
+
width: 30
|
|
8919
|
+
},
|
|
8920
|
+
"& .MuiDayCalendar-slideTransition": {
|
|
8921
|
+
minHeight: 220,
|
|
8922
|
+
height: 220
|
|
8923
|
+
}
|
|
8924
|
+
},
|
|
8925
|
+
slotProps: {
|
|
8926
|
+
day: { style: { height: 30, width: 30 } }
|
|
8927
|
+
}
|
|
8929
8928
|
}
|
|
8930
|
-
|
|
8931
|
-
slotProps: {
|
|
8932
|
-
day: { style: { height: 30, width: 30 } }
|
|
8933
|
-
}
|
|
8929
|
+
)
|
|
8934
8930
|
}
|
|
8935
8931
|
)
|
|
8936
8932
|
}
|
|
@@ -8952,7 +8948,6 @@ const go = ({
|
|
|
8952
8948
|
onClick: () => {
|
|
8953
8949
|
c(null);
|
|
8954
8950
|
},
|
|
8955
|
-
primary: !0,
|
|
8956
8951
|
children: "Keep Value"
|
|
8957
8952
|
}
|
|
8958
8953
|
) }),
|
|
@@ -9213,13 +9208,13 @@ const go = ({
|
|
|
9213
9208
|
t && /* @__PURE__ */ m.jsx(m.Fragment, { children: t }),
|
|
9214
9209
|
/* @__PURE__ */ m.jsx("div", { className: "flex1" }),
|
|
9215
9210
|
n && /* @__PURE__ */ m.jsx(m.Fragment, { children: n }),
|
|
9216
|
-
e && /* @__PURE__ */ m.jsx(Ye, { onClick: e,
|
|
9211
|
+
e && /* @__PURE__ */ m.jsx(Ye, { onClick: e, color: "secondary", size: "small", children: "Cancel" }),
|
|
9217
9212
|
a && /* @__PURE__ */ m.jsx("div", { style: { marginRight: 5 }, children: /* @__PURE__ */ m.jsx(
|
|
9218
9213
|
Ye,
|
|
9219
9214
|
{
|
|
9215
|
+
color: "primary",
|
|
9220
9216
|
disabled: o || !1,
|
|
9221
9217
|
onClick: a,
|
|
9222
|
-
primary: !0,
|
|
9223
9218
|
size: "small",
|
|
9224
9219
|
children: "OK"
|
|
9225
9220
|
}
|
|
@@ -9609,10 +9604,7 @@ process.env.NODE_ENV !== "production" && (po.propTypes = {
|
|
|
9609
9604
|
*/
|
|
9610
9605
|
variantMapping: V.object
|
|
9611
9606
|
});
|
|
9612
|
-
const wf = ({
|
|
9613
|
-
children: t,
|
|
9614
|
-
variant: n = "body1"
|
|
9615
|
-
}) => /* @__PURE__ */ m.jsx(po, { variant: n, children: t });
|
|
9607
|
+
const wf = (t) => /* @__PURE__ */ m.jsx(po, { variant: t.variant || "body1", ...t, children: t.children });
|
|
9616
9608
|
export {
|
|
9617
9609
|
af as LCTAppBar,
|
|
9618
9610
|
Ye as LCTButton,
|