@jigowatts/jigowatts-ui 0.0.1-12
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 +50 -0
- package/dist/AccordionSummary-B4zooGpd.js +831 -0
- package/dist/ButtonBase-pxtIu13Q.js +866 -0
- package/dist/DateTimePicker-DJSOr5wM.js +4653 -0
- package/dist/ListContext-DOVwHqy-.js +180 -0
- package/dist/MenuItem-yBaT3_db.js +470 -0
- package/dist/Paper-COvYqxZa.js +522 -0
- package/dist/Tabs-D3lJRumZ.js +1085 -0
- package/dist/_commonjsHelpers-CT_km90n.js +30 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/index10.css +1 -0
- package/dist/assets/index11.css +1 -0
- package/dist/assets/index12.css +1 -0
- package/dist/assets/index13.css +1 -0
- package/dist/assets/index14.css +1 -0
- package/dist/assets/index15.css +1 -0
- package/dist/assets/index16.css +1 -0
- package/dist/assets/index17.css +1 -0
- package/dist/assets/index18.css +1 -0
- package/dist/assets/index19.css +1 -0
- package/dist/assets/index2.css +1 -0
- package/dist/assets/index20.css +1 -0
- package/dist/assets/index21.css +1 -0
- package/dist/assets/index22.css +1 -0
- package/dist/assets/index23.css +1 -0
- package/dist/assets/index24.css +1 -0
- package/dist/assets/index25.css +1 -0
- package/dist/assets/index26.css +1 -0
- package/dist/assets/index27.css +1 -0
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/assets/index5.css +1 -0
- package/dist/assets/index6.css +1 -0
- package/dist/assets/index7.css +1 -0
- package/dist/assets/index8.css +1 -0
- package/dist/assets/index9.css +1 -0
- package/dist/browser-DxfwT6rn.js +656 -0
- package/dist/components/Button/index.d.ts +28 -0
- package/dist/components/Button/index.js +18 -0
- package/dist/components/Button/index.test.d.ts +1 -0
- package/dist/components/Button/index.test.js +23 -0
- package/dist/components/Card/index.d.ts +16 -0
- package/dist/components/Card/index.js +37 -0
- package/dist/components/Card/index.test.d.ts +1 -0
- package/dist/components/Card/index.test.js +35 -0
- package/dist/components/CustomLink/index.d.ts +11 -0
- package/dist/components/CustomLink/index.js +1670 -0
- package/dist/components/CustomLink/index.test.d.ts +1 -0
- package/dist/components/CustomLink/index.test.js +40 -0
- package/dist/components/DataTable/index.d.ts +28 -0
- package/dist/components/DataTable/index.js +137 -0
- package/dist/components/DataTable/index.test.d.ts +1 -0
- package/dist/components/DataTable/index.test.js +3010 -0
- package/dist/components/DatePickerController/index.d.ts +16 -0
- package/dist/components/DatePickerController/index.js +83 -0
- package/dist/components/DatePickerController/index.test.d.ts +1 -0
- package/dist/components/DatePickerController/index.test.js +24 -0
- package/dist/components/ErrorMessage/index.d.ts +5 -0
- package/dist/components/ErrorMessage/index.js +11 -0
- package/dist/components/ErrorMessage/index.test.d.ts +1 -0
- package/dist/components/ErrorMessage/index.test.js +17 -0
- package/dist/components/EvseStateLabel/index.d.ts +5 -0
- package/dist/components/EvseStateLabel/index.js +36 -0
- package/dist/components/FlexButtons/index.d.ts +9 -0
- package/dist/components/FlexButtons/index.js +13 -0
- package/dist/components/Form/index.d.ts +8 -0
- package/dist/components/Form/index.js +11 -0
- package/dist/components/Form/index.test.d.ts +1 -0
- package/dist/components/Form/index.test.js +25 -0
- package/dist/components/FormItem/index.d.ts +9 -0
- package/dist/components/FormItem/index.js +19 -0
- package/dist/components/FormItem/index.test.d.ts +1 -0
- package/dist/components/FormItem/index.test.js +15 -0
- package/dist/components/FormTitle/index.d.ts +5 -0
- package/dist/components/FormTitle/index.js +11 -0
- package/dist/components/FormTitle/index.test.d.ts +1 -0
- package/dist/components/FormTitle/index.test.js +15 -0
- package/dist/components/Input/index.d.ts +15 -0
- package/dist/components/Input/index.js +39 -0
- package/dist/components/Input/index.test.d.ts +1 -0
- package/dist/components/Input/index.test.js +39 -0
- package/dist/components/InputController/index.d.ts +20 -0
- package/dist/components/InputController/index.js +81 -0
- package/dist/components/InputController/index.test.d.ts +1 -0
- package/dist/components/InputController/index.test.js +56 -0
- package/dist/components/InputGroup/index.d.ts +7 -0
- package/dist/components/InputGroup/index.js +11 -0
- package/dist/components/InputGroup/index.test.d.ts +1 -0
- package/dist/components/InputGroup/index.test.js +15 -0
- package/dist/components/Label/index.d.ts +7 -0
- package/dist/components/Label/index.js +14 -0
- package/dist/components/Label/index.test.d.ts +1 -0
- package/dist/components/Label/index.test.js +25 -0
- package/dist/components/LabeledContent/index.d.ts +15 -0
- package/dist/components/LabeledContent/index.js +28 -0
- package/dist/components/LabeledContent/index.test.d.ts +1 -0
- package/dist/components/LabeledContent/index.test.js +19 -0
- package/dist/components/LoadingOverlay/index.d.ts +2 -0
- package/dist/components/LoadingOverlay/index.js +134 -0
- package/dist/components/LoadingOverlay/index.test.d.ts +1 -0
- package/dist/components/LoadingOverlay/index.test.js +12 -0
- package/dist/components/Map/index.d.ts +8 -0
- package/dist/components/Map/index.js +6575 -0
- package/dist/components/MaxWidthContainer/index.d.ts +13 -0
- package/dist/components/MaxWidthContainer/index.js +15 -0
- package/dist/components/MaxWidthContainer/index.test.d.ts +1 -0
- package/dist/components/MaxWidthContainer/index.test.js +24 -0
- package/dist/components/NumericFieldController/index.d.ts +53 -0
- package/dist/components/NumericFieldController/index.js +620 -0
- package/dist/components/NumericFieldController/index.test.d.ts +1 -0
- package/dist/components/NumericFieldController/index.test.js +24 -0
- package/dist/components/OfflineLabel/index.d.ts +5 -0
- package/dist/components/OfflineLabel/index.js +34 -0
- package/dist/components/PageSizeSelector/index.d.ts +15 -0
- package/dist/components/PageSizeSelector/index.js +43 -0
- package/dist/components/Pagination/index.d.ts +9 -0
- package/dist/components/Pagination/index.js +7 -0
- package/dist/components/Pagination/index.test.d.ts +1 -0
- package/dist/components/Pagination/index.test.js +34 -0
- package/dist/components/PasswordInputController/index.d.ts +17 -0
- package/dist/components/PasswordInputController/index.js +78 -0
- package/dist/components/PasswordInputController/index.test.d.ts +1 -0
- package/dist/components/PasswordInputController/index.test.js +37 -0
- package/dist/components/RadioButton/index.d.ts +13 -0
- package/dist/components/RadioButton/index.js +7 -0
- package/dist/components/RadioButton/index.test.d.ts +1 -0
- package/dist/components/RadioButton/index.test.js +38 -0
- package/dist/components/RadioGroupController/index.d.ts +15 -0
- package/dist/components/RadioGroupController/index.js +48 -0
- package/dist/components/RadioGroupController/index.test.d.ts +1 -0
- package/dist/components/RadioGroupController/index.test.js +48 -0
- package/dist/components/RangeDatePicker/index.d.ts +14 -0
- package/dist/components/RangeDatePicker/index.js +1594 -0
- package/dist/components/RangeDatePickerController/index.d.ts +21 -0
- package/dist/components/RangeDatePickerController/index.js +123 -0
- package/dist/components/RangeDatePickerController/index.test.d.ts +1 -0
- package/dist/components/RangeDatePickerController/index.test.js +24 -0
- package/dist/components/ReportCard/index.d.ts +12 -0
- package/dist/components/ReportCard/index.js +18 -0
- package/dist/components/ReportCard/index.test.d.ts +1 -0
- package/dist/components/ReportCard/index.test.js +27 -0
- package/dist/components/ReportChart/index.d.ts +22 -0
- package/dist/components/ReportChart/index.js +23101 -0
- package/dist/components/ScrollableDialog/index.d.ts +19 -0
- package/dist/components/ScrollableDialog/index.js +42 -0
- package/dist/components/ScrollableDialog/index.test.d.ts +1 -0
- package/dist/components/ScrollableDialog/index.test.js +59 -0
- package/dist/components/SearchForm/index.d.ts +13 -0
- package/dist/components/SearchForm/index.js +86 -0
- package/dist/components/SelectBox/index.d.ts +18 -0
- package/dist/components/SelectBox/index.js +7 -0
- package/dist/components/SelectBox/index.test.d.ts +1 -0
- package/dist/components/SelectBox/index.test.js +34 -0
- package/dist/components/SelectBoxController/index.d.ts +20 -0
- package/dist/components/SelectBoxController/index.js +87 -0
- package/dist/components/SelectBoxController/index.test.d.ts +1 -0
- package/dist/components/SelectBoxController/index.test.js +52 -0
- package/dist/components/SubMenu/index.d.ts +22 -0
- package/dist/components/SubMenu/index.js +278 -0
- package/dist/components/SubMenu/index.test.d.ts +1 -0
- package/dist/components/SubMenu/index.test.js +41 -0
- package/dist/components/Tabs/index.d.ts +21 -0
- package/dist/components/Tabs/index.js +100 -0
- package/dist/components/Tabs/index.test.d.ts +1 -0
- package/dist/components/Tabs/index.test.js +24 -0
- package/dist/components/Textarea/index.d.ts +18 -0
- package/dist/components/Textarea/index.js +34 -0
- package/dist/components/Textarea/index.test.d.ts +1 -0
- package/dist/components/Textarea/index.test.js +25 -0
- package/dist/components/ToggleButton/index.d.ts +16 -0
- package/dist/components/ToggleButton/index.js +39 -0
- package/dist/components/ToggleButton/index.test.d.ts +1 -0
- package/dist/components/ToggleButton/index.test.js +49 -0
- package/dist/constants/datetime.d.ts +2 -0
- package/dist/constants/datetime.js +5 -0
- package/dist/createSvgIcon-B53UOwxg.js +183 -0
- package/dist/createSvgIcon-Dj8zNxRS.js +72 -0
- package/dist/index-BLPOOjNr.js +184 -0
- package/dist/index-BOjtnFU5.js +34 -0
- package/dist/index-Bs3JCwgu.js +689 -0
- package/dist/index-CICI7n5Y.js +19688 -0
- package/dist/index-CQDJfJT1.js +50 -0
- package/dist/index-C_i0-R5C.js +393 -0
- package/dist/index-DWRHnq8_.js +42 -0
- package/dist/index-Di2gTfPF.js +25175 -0
- package/dist/index-VF82hRp0.js +2522 -0
- package/dist/index-kvi6aotO.js +39 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.esm-ChwJSgnF.js +1052 -0
- package/dist/index.js +77 -0
- package/dist/isEqual-BBhdD79C.js +667 -0
- package/dist/mergeSlotProps-J197zKan.js +63 -0
- package/dist/react.esm-C8amP77L.js +11182 -0
- package/dist/styled-CWju4EfZ.js +2702 -0
- package/dist/unsupportedProp-DZaWZqWQ.js +30 -0
- package/dist/useControlled-BQCJRJNJ.js +64 -0
- package/dist/useIsFocusVisible-BxB-Hdhb.js +124 -0
- package/dist/useSlotProps-Bh7akxXV.js +33 -0
- package/package.json +360 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function i(e, n = 166) {
|
|
2
|
+
let o;
|
|
3
|
+
function t(...r) {
|
|
4
|
+
const u = () => {
|
|
5
|
+
e.apply(this, r);
|
|
6
|
+
};
|
|
7
|
+
clearTimeout(o), o = setTimeout(u, n);
|
|
8
|
+
}
|
|
9
|
+
return t.clear = () => {
|
|
10
|
+
clearTimeout(o);
|
|
11
|
+
}, t;
|
|
12
|
+
}
|
|
13
|
+
function c(e) {
|
|
14
|
+
return e && e.ownerDocument || document;
|
|
15
|
+
}
|
|
16
|
+
function a(e) {
|
|
17
|
+
return c(e).defaultView || window;
|
|
18
|
+
}
|
|
19
|
+
function l(e, n, o, t, r) {
|
|
20
|
+
if (process.env.NODE_ENV === "production")
|
|
21
|
+
return null;
|
|
22
|
+
const u = r || n;
|
|
23
|
+
return typeof e[n] < "u" ? new Error(`The prop \`${u}\` is not supported. Please remove it.`) : null;
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
a,
|
|
27
|
+
i as d,
|
|
28
|
+
c as o,
|
|
29
|
+
l as u
|
|
30
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
function m(...e) {
|
|
3
|
+
return e.reduce((n, t) => t == null ? n : function(...l) {
|
|
4
|
+
n.apply(this, l), t.apply(this, l);
|
|
5
|
+
}, () => {
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
function p(e, n) {
|
|
9
|
+
var t, o;
|
|
10
|
+
return /* @__PURE__ */ u.isValidElement(e) && n.indexOf(
|
|
11
|
+
// For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
12
|
+
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
13
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
14
|
+
(t = e.type.muiName) != null ? t : (o = e.type) == null || (o = o._payload) == null || (o = o.value) == null ? void 0 : o.muiName
|
|
15
|
+
) !== -1;
|
|
16
|
+
}
|
|
17
|
+
let s = 0;
|
|
18
|
+
function h(e) {
|
|
19
|
+
const [n, t] = u.useState(e), o = e || n;
|
|
20
|
+
return u.useEffect(() => {
|
|
21
|
+
n == null && (s += 1, t(`mui-${s}`));
|
|
22
|
+
}, [n]), o;
|
|
23
|
+
}
|
|
24
|
+
const r = u.useId;
|
|
25
|
+
function I(e) {
|
|
26
|
+
if (r !== void 0) {
|
|
27
|
+
const n = r();
|
|
28
|
+
return e ?? n;
|
|
29
|
+
}
|
|
30
|
+
return h(e);
|
|
31
|
+
}
|
|
32
|
+
function g({
|
|
33
|
+
controlled: e,
|
|
34
|
+
default: n,
|
|
35
|
+
name: t,
|
|
36
|
+
state: o = "value"
|
|
37
|
+
}) {
|
|
38
|
+
const {
|
|
39
|
+
current: l
|
|
40
|
+
} = u.useRef(e !== void 0), [c, a] = u.useState(n), f = l ? e : c;
|
|
41
|
+
if (process.env.NODE_ENV !== "production") {
|
|
42
|
+
u.useEffect(() => {
|
|
43
|
+
l !== (e !== void 0) && console.error([`MUI: A component is changing the ${l ? "" : "un"}controlled ${o} state of ${t} to be ${l ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${t} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
44
|
+
`));
|
|
45
|
+
}, [o, t, e]);
|
|
46
|
+
const {
|
|
47
|
+
current: i
|
|
48
|
+
} = u.useRef(n);
|
|
49
|
+
u.useEffect(() => {
|
|
50
|
+
!l && i !== n && console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${t} after being initialized. To suppress this warning opt to use a controlled ${t}.`].join(`
|
|
51
|
+
`));
|
|
52
|
+
}, [JSON.stringify(n)]);
|
|
53
|
+
}
|
|
54
|
+
const d = u.useCallback((i) => {
|
|
55
|
+
l || a(i);
|
|
56
|
+
}, []);
|
|
57
|
+
return [f, d];
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
g as a,
|
|
61
|
+
m as c,
|
|
62
|
+
p as i,
|
|
63
|
+
I as u
|
|
64
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as n from "react";
|
|
2
|
+
const f = typeof window < "u" ? n.useLayoutEffect : n.useEffect;
|
|
3
|
+
function d(e, t) {
|
|
4
|
+
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
5
|
+
}
|
|
6
|
+
function v(e) {
|
|
7
|
+
const t = n.useRef(e);
|
|
8
|
+
return f(() => {
|
|
9
|
+
t.current = e;
|
|
10
|
+
}), n.useRef((...r) => (
|
|
11
|
+
// @ts-expect-error hide `this`
|
|
12
|
+
(0, t.current)(...r)
|
|
13
|
+
)).current;
|
|
14
|
+
}
|
|
15
|
+
function F(...e) {
|
|
16
|
+
return n.useMemo(() => e.every((t) => t == null) ? null : (t) => {
|
|
17
|
+
e.forEach((r) => {
|
|
18
|
+
d(r, t);
|
|
19
|
+
});
|
|
20
|
+
}, e);
|
|
21
|
+
}
|
|
22
|
+
const o = {};
|
|
23
|
+
function h(e, t) {
|
|
24
|
+
const r = n.useRef(o);
|
|
25
|
+
return r.current === o && (r.current = e(t)), r;
|
|
26
|
+
}
|
|
27
|
+
const y = [];
|
|
28
|
+
function E(e) {
|
|
29
|
+
n.useEffect(e, y);
|
|
30
|
+
}
|
|
31
|
+
class s {
|
|
32
|
+
constructor() {
|
|
33
|
+
this.currentId = null, this.clear = () => {
|
|
34
|
+
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
|
|
35
|
+
}, this.disposeEffect = () => this.clear;
|
|
36
|
+
}
|
|
37
|
+
static create() {
|
|
38
|
+
return new s();
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
42
|
+
*/
|
|
43
|
+
start(t, r) {
|
|
44
|
+
this.clear(), this.currentId = setTimeout(() => {
|
|
45
|
+
this.currentId = null, r();
|
|
46
|
+
}, t);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function L() {
|
|
50
|
+
const e = h(s.create).current;
|
|
51
|
+
return E(e.disposeEffect), e;
|
|
52
|
+
}
|
|
53
|
+
let i = !0, a = !1;
|
|
54
|
+
const m = new s(), b = {
|
|
55
|
+
text: !0,
|
|
56
|
+
search: !0,
|
|
57
|
+
url: !0,
|
|
58
|
+
tel: !0,
|
|
59
|
+
email: !0,
|
|
60
|
+
password: !0,
|
|
61
|
+
number: !0,
|
|
62
|
+
date: !0,
|
|
63
|
+
month: !0,
|
|
64
|
+
week: !0,
|
|
65
|
+
time: !0,
|
|
66
|
+
datetime: !0,
|
|
67
|
+
"datetime-local": !0
|
|
68
|
+
};
|
|
69
|
+
function p(e) {
|
|
70
|
+
const {
|
|
71
|
+
type: t,
|
|
72
|
+
tagName: r
|
|
73
|
+
} = e;
|
|
74
|
+
return !!(r === "INPUT" && b[t] && !e.readOnly || r === "TEXTAREA" && !e.readOnly || e.isContentEditable);
|
|
75
|
+
}
|
|
76
|
+
function w(e) {
|
|
77
|
+
e.metaKey || e.altKey || e.ctrlKey || (i = !0);
|
|
78
|
+
}
|
|
79
|
+
function c() {
|
|
80
|
+
i = !1;
|
|
81
|
+
}
|
|
82
|
+
function I() {
|
|
83
|
+
this.visibilityState === "hidden" && a && (i = !0);
|
|
84
|
+
}
|
|
85
|
+
function R(e) {
|
|
86
|
+
e.addEventListener("keydown", w, !0), e.addEventListener("mousedown", c, !0), e.addEventListener("pointerdown", c, !0), e.addEventListener("touchstart", c, !0), e.addEventListener("visibilitychange", I, !0);
|
|
87
|
+
}
|
|
88
|
+
function T(e) {
|
|
89
|
+
const {
|
|
90
|
+
target: t
|
|
91
|
+
} = e;
|
|
92
|
+
try {
|
|
93
|
+
return t.matches(":focus-visible");
|
|
94
|
+
} catch {
|
|
95
|
+
}
|
|
96
|
+
return i || p(t);
|
|
97
|
+
}
|
|
98
|
+
function V() {
|
|
99
|
+
const e = n.useCallback((u) => {
|
|
100
|
+
u != null && R(u.ownerDocument);
|
|
101
|
+
}, []), t = n.useRef(!1);
|
|
102
|
+
function r() {
|
|
103
|
+
return t.current ? (a = !0, m.start(100, () => {
|
|
104
|
+
a = !1;
|
|
105
|
+
}), t.current = !1, !0) : !1;
|
|
106
|
+
}
|
|
107
|
+
function l(u) {
|
|
108
|
+
return T(u) ? (t.current = !0, !0) : !1;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
isFocusVisibleRef: t,
|
|
112
|
+
onFocus: l,
|
|
113
|
+
onBlur: r,
|
|
114
|
+
ref: e
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
export {
|
|
118
|
+
f as a,
|
|
119
|
+
v as b,
|
|
120
|
+
V as c,
|
|
121
|
+
L as d,
|
|
122
|
+
d as s,
|
|
123
|
+
F as u
|
|
124
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as p from "react";
|
|
2
|
+
import { P as s } from "./index-Bs3JCwgu.js";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import { _ as P, a as n } from "./styled-CWju4EfZ.js";
|
|
5
|
+
import { r as f, m as v, a as S } from "./mergeSlotProps-J197zKan.js";
|
|
6
|
+
import { u as x } from "./useIsFocusVisible-BxB-Hdhb.js";
|
|
7
|
+
const R = /* @__PURE__ */ p.createContext();
|
|
8
|
+
process.env.NODE_ENV !== "production" && (s.node, s.bool);
|
|
9
|
+
const b = () => {
|
|
10
|
+
const o = p.useContext(R);
|
|
11
|
+
return o ?? !1;
|
|
12
|
+
}, _ = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
|
|
13
|
+
function h(o) {
|
|
14
|
+
var t;
|
|
15
|
+
const {
|
|
16
|
+
elementType: l,
|
|
17
|
+
externalSlotProps: a,
|
|
18
|
+
ownerState: r,
|
|
19
|
+
skipResolvingSlotProps: i = !1
|
|
20
|
+
} = o, c = P(o, _), e = i ? {} : f(a, r), {
|
|
21
|
+
props: m,
|
|
22
|
+
internalRef: u
|
|
23
|
+
} = v(n({}, c, {
|
|
24
|
+
externalSlotProps: e
|
|
25
|
+
})), d = x(u, e == null ? void 0 : e.ref, (t = o.additionalProps) == null ? void 0 : t.ref);
|
|
26
|
+
return S(l, n({}, m, {
|
|
27
|
+
ref: d
|
|
28
|
+
}), r);
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
b as a,
|
|
32
|
+
h as u
|
|
33
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jigowatts/jigowatts-ui",
|
|
3
|
+
"version": "0.0.1-12",
|
|
4
|
+
"description": "",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"./Button": {
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./dist/components/Button/index.d.ts",
|
|
18
|
+
"default": "./dist/components/Button/index.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"./Card": {
|
|
22
|
+
"import": {
|
|
23
|
+
"types": "./dist/components/Card/index.d.ts",
|
|
24
|
+
"default": "./dist/components/Card/index.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"./CustomLink": {
|
|
28
|
+
"import": {
|
|
29
|
+
"types": "./dist/components/CustomLink/index.d.ts",
|
|
30
|
+
"default": "./dist/components/CustomLink/index.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"./DataTable": {
|
|
34
|
+
"import": {
|
|
35
|
+
"types": "./dist/components/DataTable/index.d.ts",
|
|
36
|
+
"default": "./dist/components/DataTable/index.js"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"./DatePickerController": {
|
|
40
|
+
"import": {
|
|
41
|
+
"types": "./dist/components/DatePickerController/index.d.ts",
|
|
42
|
+
"default": "./dist/components/DatePickerController/index.js"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"./ErrorMessage": {
|
|
46
|
+
"import": {
|
|
47
|
+
"types": "./dist/components/ErrorMessage/index.d.ts",
|
|
48
|
+
"default": "./dist/components/ErrorMessage/index.js"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"./EvseStateLabel": {
|
|
52
|
+
"import": {
|
|
53
|
+
"types": "./dist/components/EvseStateLabel/index.d.ts",
|
|
54
|
+
"default": "./dist/components/EvseStateLabel/index.js"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"./FlexButtons": {
|
|
58
|
+
"import": {
|
|
59
|
+
"types": "./dist/components/FlexButtons/index.d.ts",
|
|
60
|
+
"default": "./dist/components/FlexButtons/index.js"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"./Form": {
|
|
64
|
+
"import": {
|
|
65
|
+
"types": "./dist/components/Form/index.d.ts",
|
|
66
|
+
"default": "./dist/components/Form/index.js"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"./FormItem": {
|
|
70
|
+
"import": {
|
|
71
|
+
"types": "./dist/components/FormItem/index.d.ts",
|
|
72
|
+
"default": "./dist/components/FormItem/index.js"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"./FormTitle": {
|
|
76
|
+
"import": {
|
|
77
|
+
"types": "./dist/components/FormTitle/index.d.ts",
|
|
78
|
+
"default": "./dist/components/FormTitle/index.js"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"./Input": {
|
|
82
|
+
"import": {
|
|
83
|
+
"types": "./dist/components/Input/index.d.ts",
|
|
84
|
+
"default": "./dist/components/Input/index.js"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"./InputController": {
|
|
88
|
+
"import": {
|
|
89
|
+
"types": "./dist/components/InputController/index.d.ts",
|
|
90
|
+
"default": "./dist/components/InputController/index.js"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"./InputGroup": {
|
|
94
|
+
"import": {
|
|
95
|
+
"types": "./dist/components/InputGroup/index.d.ts",
|
|
96
|
+
"default": "./dist/components/InputGroup/index.js"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"./Label": {
|
|
100
|
+
"import": {
|
|
101
|
+
"types": "./dist/components/Label/index.d.ts",
|
|
102
|
+
"default": "./dist/components/Label/index.js"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"./LabeledContent": {
|
|
106
|
+
"import": {
|
|
107
|
+
"types": "./dist/components/LabeledContent/index.d.ts",
|
|
108
|
+
"default": "./dist/components/LabeledContent/index.js"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"./LoadingOverlay": {
|
|
112
|
+
"import": {
|
|
113
|
+
"types": "./dist/components/LoadingOverlay/index.d.ts",
|
|
114
|
+
"default": "./dist/components/LoadingOverlay/index.js"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"./Map": {
|
|
118
|
+
"import": {
|
|
119
|
+
"types": "./dist/components/Map/index.d.ts",
|
|
120
|
+
"default": "./dist/components/Map/index.js"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"./MaxWidthContainer": {
|
|
124
|
+
"import": {
|
|
125
|
+
"types": "./dist/components/MaxWidthContainer/index.d.ts",
|
|
126
|
+
"default": "./dist/components/MaxWidthContainer/index.js"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"./NumericFieldController": {
|
|
130
|
+
"import": {
|
|
131
|
+
"types": "./dist/components/NumericFieldController/index.d.ts",
|
|
132
|
+
"default": "./dist/components/NumericFieldController/index.js"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"./OfflineLabel": {
|
|
136
|
+
"import": {
|
|
137
|
+
"types": "./dist/components/OfflineLabel/index.d.ts",
|
|
138
|
+
"default": "./dist/components/OfflineLabel/index.js"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"./PageSizeSelector": {
|
|
142
|
+
"import": {
|
|
143
|
+
"types": "./dist/components/PageSizeSelector/index.d.ts",
|
|
144
|
+
"default": "./dist/components/PageSizeSelector/index.js"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"./Pagination": {
|
|
148
|
+
"import": {
|
|
149
|
+
"types": "./dist/components/Pagination/index.d.ts",
|
|
150
|
+
"default": "./dist/components/Pagination/index.js"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"./PasswordInputController": {
|
|
154
|
+
"import": {
|
|
155
|
+
"types": "./dist/components/PasswordInputController/index.d.ts",
|
|
156
|
+
"default": "./dist/components/PasswordInputController/index.js"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"./RadioButton": {
|
|
160
|
+
"import": {
|
|
161
|
+
"types": "./dist/components/RadioButton/index.d.ts",
|
|
162
|
+
"default": "./dist/components/RadioButton/index.js"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"./RadioGroupController": {
|
|
166
|
+
"import": {
|
|
167
|
+
"types": "./dist/components/RadioGroupController/index.d.ts",
|
|
168
|
+
"default": "./dist/components/RadioGroupController/index.js"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"./RangeDatePicker": {
|
|
172
|
+
"import": {
|
|
173
|
+
"types": "./dist/components/RangeDatePicker/index.d.ts",
|
|
174
|
+
"default": "./dist/components/RangeDatePicker/index.js"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"./RangeDatePickerController": {
|
|
178
|
+
"import": {
|
|
179
|
+
"types": "./dist/components/RangeDatePickerController/index.d.ts",
|
|
180
|
+
"default": "./dist/components/RangeDatePickerController/index.js"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"./ReportCard": {
|
|
184
|
+
"import": {
|
|
185
|
+
"types": "./dist/components/ReportCard/index.d.ts",
|
|
186
|
+
"default": "./dist/components/ReportCard/index.js"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"./ReportChart": {
|
|
190
|
+
"import": {
|
|
191
|
+
"types": "./dist/components/ReportChart/index.d.ts",
|
|
192
|
+
"default": "./dist/components/ReportChart/index.js"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"./ScrollableDialog": {
|
|
196
|
+
"import": {
|
|
197
|
+
"types": "./dist/components/ScrollableDialog/index.d.ts",
|
|
198
|
+
"default": "./dist/components/ScrollableDialog/index.js"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"./SearchForm": {
|
|
202
|
+
"import": {
|
|
203
|
+
"types": "./dist/components/SearchForm/index.d.ts",
|
|
204
|
+
"default": "./dist/components/SearchForm/index.js"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"./SelectBox": {
|
|
208
|
+
"import": {
|
|
209
|
+
"types": "./dist/components/SelectBox/index.d.ts",
|
|
210
|
+
"default": "./dist/components/SelectBox/index.js"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"./SelectBoxController": {
|
|
214
|
+
"import": {
|
|
215
|
+
"types": "./dist/components/SelectBoxController/index.d.ts",
|
|
216
|
+
"default": "./dist/components/SelectBoxController/index.js"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"./SubMenu": {
|
|
220
|
+
"import": {
|
|
221
|
+
"types": "./dist/components/SubMenu/index.d.ts",
|
|
222
|
+
"default": "./dist/components/SubMenu/index.js"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"./Tabs": {
|
|
226
|
+
"import": {
|
|
227
|
+
"types": "./dist/components/Tabs/index.d.ts",
|
|
228
|
+
"default": "./dist/components/Tabs/index.js"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"./Textarea": {
|
|
232
|
+
"import": {
|
|
233
|
+
"types": "./dist/components/Textarea/index.d.ts",
|
|
234
|
+
"default": "./dist/components/Textarea/index.js"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"./ToggleButton": {
|
|
238
|
+
"import": {
|
|
239
|
+
"types": "./dist/components/ToggleButton/index.d.ts",
|
|
240
|
+
"default": "./dist/components/ToggleButton/index.js"
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"files": [
|
|
245
|
+
"dist"
|
|
246
|
+
],
|
|
247
|
+
"sideEffects": [
|
|
248
|
+
"**/*.css"
|
|
249
|
+
],
|
|
250
|
+
"devDependencies": {
|
|
251
|
+
"@emotion/react": "^11.11.4",
|
|
252
|
+
"@emotion/styled": "^11.11.5",
|
|
253
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.1.1",
|
|
254
|
+
"@next/env": "^14.1.0",
|
|
255
|
+
"@storybook/addon-essentials": "^8.1.5",
|
|
256
|
+
"@storybook/addon-interactions": "^8.1.5",
|
|
257
|
+
"@storybook/addon-links": "^8.1.5",
|
|
258
|
+
"@storybook/addon-onboarding": "^8.1.5",
|
|
259
|
+
"@storybook/blocks": "^8.1.5",
|
|
260
|
+
"@storybook/react": "^8.0.9",
|
|
261
|
+
"@storybook/react-vite": "^8.1.5",
|
|
262
|
+
"@storybook/test": "^8.1.5",
|
|
263
|
+
"@storybook/types": "^8.0.9",
|
|
264
|
+
"@testing-library/dom": "^10.0.0",
|
|
265
|
+
"@testing-library/jest-dom": "^6.4.2",
|
|
266
|
+
"@testing-library/react": "^15.0.4",
|
|
267
|
+
"@testing-library/user-event": "^14.5.2",
|
|
268
|
+
"@types/jest": "^29.5.12",
|
|
269
|
+
"@types/jest-axe": "^3.5.9",
|
|
270
|
+
"@types/leaflet": "^1.9.12",
|
|
271
|
+
"@types/node": "^20.12.7",
|
|
272
|
+
"@types/react": "^18.2.79",
|
|
273
|
+
"@types/react-dom": "^18.2.18",
|
|
274
|
+
"@typescript-eslint/eslint-plugin": "^7.7.1",
|
|
275
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
276
|
+
"autoprefixer": "^10.4.19",
|
|
277
|
+
"chart.js": "^4.4.2",
|
|
278
|
+
"eslint": "^8.56.0",
|
|
279
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
280
|
+
"eslint-config-next": "^14.0.4",
|
|
281
|
+
"eslint-config-prettier": "^9.1.0",
|
|
282
|
+
"eslint-plugin-import": "^2.29.1",
|
|
283
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
284
|
+
"eslint-plugin-prettier": "^5.1.0",
|
|
285
|
+
"eslint-plugin-react": "^7.34.1",
|
|
286
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
287
|
+
"eslint-plugin-react-refresh": "^0.4.6",
|
|
288
|
+
"eslint-plugin-storybook": "^0.6.15",
|
|
289
|
+
"glob": "^10.4.1",
|
|
290
|
+
"jest": "^29.7.0",
|
|
291
|
+
"jest-axe": "^8.0.0",
|
|
292
|
+
"jest-css-modules": "^2.1.0",
|
|
293
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
294
|
+
"jest-fetch-mock": "^3.0.3",
|
|
295
|
+
"react-dom": "18.2.0",
|
|
296
|
+
"storybook": "^8.1.5",
|
|
297
|
+
"ts-jest": "^29.1.2",
|
|
298
|
+
"typescript": "^5.4.5",
|
|
299
|
+
"vite": "^5.2.10",
|
|
300
|
+
"vite-plugin-dts": "^3.9.0",
|
|
301
|
+
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
302
|
+
"vite-tsconfig-paths": "^4.3.2"
|
|
303
|
+
},
|
|
304
|
+
"peerDependencies": {
|
|
305
|
+
"@emotion/react": "^11.11.3",
|
|
306
|
+
"@emotion/styled": "^11.11.0",
|
|
307
|
+
"@mui/icons-material": "^5.15.6",
|
|
308
|
+
"@mui/material": "^5.15.6",
|
|
309
|
+
"@mui/styled-engine-sc": "6.0.0-alpha.13",
|
|
310
|
+
"@mui/system": "^5.15.6",
|
|
311
|
+
"@mui/utils": "^5.15.6",
|
|
312
|
+
"@mui/x-date-pickers": "^6.19.2",
|
|
313
|
+
"chart.js": "^4.4.1",
|
|
314
|
+
"classnames": "^2.3.2",
|
|
315
|
+
"date-fns": "^2.29.3",
|
|
316
|
+
"leaflet": "^1.9.4",
|
|
317
|
+
"next": "^14.0.4",
|
|
318
|
+
"react": "18.2.0",
|
|
319
|
+
"react-chartjs-2": "^5.2.0",
|
|
320
|
+
"react-dom": "18.2.0",
|
|
321
|
+
"react-hook-form": "^7.49.2",
|
|
322
|
+
"react-icons": "^4.12.0",
|
|
323
|
+
"react-leaflet": "^4.2.1",
|
|
324
|
+
"react-number-format": "^5.3.1",
|
|
325
|
+
"react-paginate": "^8.2.0",
|
|
326
|
+
"react-spinners": "^0.13.8",
|
|
327
|
+
"recharts": "^2.12.1",
|
|
328
|
+
"sass": "^1.69.5",
|
|
329
|
+
"styled-components": "^6.1.8"
|
|
330
|
+
},
|
|
331
|
+
"packageManager": "pnpm@8.12.1",
|
|
332
|
+
"engines": {
|
|
333
|
+
"node": ">=v20.10.0",
|
|
334
|
+
"pnpm": ">=v8.12.1",
|
|
335
|
+
"yarn": "PLEASE USE PNPM!",
|
|
336
|
+
"npm": "PLEASE USE PNPM!"
|
|
337
|
+
},
|
|
338
|
+
"volta": {
|
|
339
|
+
"node": "20.10.0"
|
|
340
|
+
},
|
|
341
|
+
"lint-staged": {
|
|
342
|
+
"*.{js,jsx,ts,tsx}": [
|
|
343
|
+
"eslint --fix",
|
|
344
|
+
"prettier --write"
|
|
345
|
+
]
|
|
346
|
+
},
|
|
347
|
+
"dependencies": {
|
|
348
|
+
"rollup-plugin-postcss": "^4.0.2"
|
|
349
|
+
},
|
|
350
|
+
"scripts": {
|
|
351
|
+
"test": "jest",
|
|
352
|
+
"vite:build": "tsc --p ./tsconfig.build.json && vite build",
|
|
353
|
+
"lint": "eslint --fix \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
354
|
+
"lint:check": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
355
|
+
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
356
|
+
"format:check": "prettier --check \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
357
|
+
"storybook": "storybook dev -p 6006",
|
|
358
|
+
"build-storybook": "storybook build"
|
|
359
|
+
}
|
|
360
|
+
}
|