@citizenplatform/core 1.0.0
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 +32 -0
- package/dist/index.js +6 -0
- package/dist/index10.js +110 -0
- package/dist/index10.js.map +1 -0
- package/dist/index100.js +10 -0
- package/dist/index100.js.map +1 -0
- package/dist/index101.js +31 -0
- package/dist/index101.js.map +1 -0
- package/dist/index102.js +165 -0
- package/dist/index102.js.map +1 -0
- package/dist/index103.js +48 -0
- package/dist/index103.js.map +1 -0
- package/dist/index104.js +8 -0
- package/dist/index104.js.map +1 -0
- package/dist/index105.js +14 -0
- package/dist/index105.js.map +1 -0
- package/dist/index106.js +8 -0
- package/dist/index106.js.map +1 -0
- package/dist/index107.js +7 -0
- package/dist/index107.js.map +1 -0
- package/dist/index108.js +16 -0
- package/dist/index108.js.map +1 -0
- package/dist/index109.js +7 -0
- package/dist/index109.js.map +1 -0
- package/dist/index11.js +97 -0
- package/dist/index11.js.map +1 -0
- package/dist/index110.js +22 -0
- package/dist/index110.js.map +1 -0
- package/dist/index111.js +7 -0
- package/dist/index111.js.map +1 -0
- package/dist/index112.js +9 -0
- package/dist/index112.js.map +1 -0
- package/dist/index113.js +20 -0
- package/dist/index113.js.map +1 -0
- package/dist/index114.js +56 -0
- package/dist/index114.js.map +1 -0
- package/dist/index115.js +73 -0
- package/dist/index115.js.map +1 -0
- package/dist/index116.js +20 -0
- package/dist/index116.js.map +1 -0
- package/dist/index117.js +26 -0
- package/dist/index117.js.map +1 -0
- package/dist/index118.js +2 -0
- package/dist/index119.js +3 -0
- package/dist/index12.js +22 -0
- package/dist/index12.js.map +1 -0
- package/dist/index120.js +22 -0
- package/dist/index120.js.map +1 -0
- package/dist/index121.js +149 -0
- package/dist/index121.js.map +1 -0
- package/dist/index122.js +20 -0
- package/dist/index122.js.map +1 -0
- package/dist/index123.js +9 -0
- package/dist/index123.js.map +1 -0
- package/dist/index124.js +9 -0
- package/dist/index124.js.map +1 -0
- package/dist/index125.js +63 -0
- package/dist/index125.js.map +1 -0
- package/dist/index126.js +24 -0
- package/dist/index126.js.map +1 -0
- package/dist/index127.js +9 -0
- package/dist/index127.js.map +1 -0
- package/dist/index128.js +11 -0
- package/dist/index128.js.map +1 -0
- package/dist/index129.js +10 -0
- package/dist/index129.js.map +1 -0
- package/dist/index13.js +18 -0
- package/dist/index13.js.map +1 -0
- package/dist/index130.js +254 -0
- package/dist/index130.js.map +1 -0
- package/dist/index131.js +25 -0
- package/dist/index131.js.map +1 -0
- package/dist/index132.js +250 -0
- package/dist/index132.js.map +1 -0
- package/dist/index133.js +20 -0
- package/dist/index133.js.map +1 -0
- package/dist/index134.js +13 -0
- package/dist/index134.js.map +1 -0
- package/dist/index135.js +15 -0
- package/dist/index135.js.map +1 -0
- package/dist/index136.js +117 -0
- package/dist/index136.js.map +1 -0
- package/dist/index137.js +13 -0
- package/dist/index137.js.map +1 -0
- package/dist/index138.js +22 -0
- package/dist/index138.js.map +1 -0
- package/dist/index139.js +26 -0
- package/dist/index139.js.map +1 -0
- package/dist/index14.js +11 -0
- package/dist/index14.js.map +1 -0
- package/dist/index140.js +20 -0
- package/dist/index140.js.map +1 -0
- package/dist/index141.js +22 -0
- package/dist/index141.js.map +1 -0
- package/dist/index142.js +12 -0
- package/dist/index142.js.map +1 -0
- package/dist/index143.js +26 -0
- package/dist/index143.js.map +1 -0
- package/dist/index144.js +56 -0
- package/dist/index144.js.map +1 -0
- package/dist/index145.js +12 -0
- package/dist/index145.js.map +1 -0
- package/dist/index146.js +212 -0
- package/dist/index146.js.map +1 -0
- package/dist/index147.js +4 -0
- package/dist/index148.js +5 -0
- package/dist/index149.js +7 -0
- package/dist/index15.js +192 -0
- package/dist/index15.js.map +1 -0
- package/dist/index16.js +24 -0
- package/dist/index16.js.map +1 -0
- package/dist/index17.js +14 -0
- package/dist/index17.js.map +1 -0
- package/dist/index18.js +54 -0
- package/dist/index18.js.map +1 -0
- package/dist/index19.js +99 -0
- package/dist/index19.js.map +1 -0
- package/dist/index2.js +13 -0
- package/dist/index20.js +10 -0
- package/dist/index20.js.map +1 -0
- package/dist/index21.js +18 -0
- package/dist/index21.js.map +1 -0
- package/dist/index22.js +9 -0
- package/dist/index22.js.map +1 -0
- package/dist/index23.js +67 -0
- package/dist/index23.js.map +1 -0
- package/dist/index24.js +13 -0
- package/dist/index24.js.map +1 -0
- package/dist/index25.js +64 -0
- package/dist/index25.js.map +1 -0
- package/dist/index26.js +84 -0
- package/dist/index26.js.map +1 -0
- package/dist/index27.js +12 -0
- package/dist/index27.js.map +1 -0
- package/dist/index28.js +41 -0
- package/dist/index28.js.map +1 -0
- package/dist/index29.js +10 -0
- package/dist/index29.js.map +1 -0
- package/dist/index3.js +11 -0
- package/dist/index3.js.map +1 -0
- package/dist/index30.js +10 -0
- package/dist/index30.js.map +1 -0
- package/dist/index31.js +46 -0
- package/dist/index31.js.map +1 -0
- package/dist/index32.js +273 -0
- package/dist/index32.js.map +1 -0
- package/dist/index33.js +49 -0
- package/dist/index33.js.map +1 -0
- package/dist/index34.js +16 -0
- package/dist/index34.js.map +1 -0
- package/dist/index35.js +24 -0
- package/dist/index35.js.map +1 -0
- package/dist/index36.js +61 -0
- package/dist/index36.js.map +1 -0
- package/dist/index37.js +63 -0
- package/dist/index37.js.map +1 -0
- package/dist/index38.js +12 -0
- package/dist/index38.js.map +1 -0
- package/dist/index39.js +26 -0
- package/dist/index39.js.map +1 -0
- package/dist/index4.js +9 -0
- package/dist/index4.js.map +1 -0
- package/dist/index40.js +55 -0
- package/dist/index40.js.map +1 -0
- package/dist/index41.js +48 -0
- package/dist/index41.js.map +1 -0
- package/dist/index42.js +6 -0
- package/dist/index42.js.map +1 -0
- package/dist/index43.js +13 -0
- package/dist/index43.js.map +1 -0
- package/dist/index44.js +10 -0
- package/dist/index44.js.map +1 -0
- package/dist/index45.js +40 -0
- package/dist/index45.js.map +1 -0
- package/dist/index46.js +71 -0
- package/dist/index46.js.map +1 -0
- package/dist/index47.js +10 -0
- package/dist/index47.js.map +1 -0
- package/dist/index48.js +44 -0
- package/dist/index48.js.map +1 -0
- package/dist/index49.js +117 -0
- package/dist/index49.js.map +1 -0
- package/dist/index5.js +6 -0
- package/dist/index5.js.map +1 -0
- package/dist/index50.js +14 -0
- package/dist/index50.js.map +1 -0
- package/dist/index51.js +16 -0
- package/dist/index51.js.map +1 -0
- package/dist/index52.js +28 -0
- package/dist/index52.js.map +1 -0
- package/dist/index53.js +36 -0
- package/dist/index53.js.map +1 -0
- package/dist/index54.js +25 -0
- package/dist/index54.js.map +1 -0
- package/dist/index55.js +44 -0
- package/dist/index55.js.map +1 -0
- package/dist/index56.js +160 -0
- package/dist/index56.js.map +1 -0
- package/dist/index57.js +77 -0
- package/dist/index57.js.map +1 -0
- package/dist/index58.js +14 -0
- package/dist/index58.js.map +1 -0
- package/dist/index59.js +38 -0
- package/dist/index59.js.map +1 -0
- package/dist/index6.js +14 -0
- package/dist/index6.js.map +1 -0
- package/dist/index60.js +15 -0
- package/dist/index60.js.map +1 -0
- package/dist/index61.js +12 -0
- package/dist/index61.js.map +1 -0
- package/dist/index62.js +19 -0
- package/dist/index62.js.map +1 -0
- package/dist/index63.js +20 -0
- package/dist/index63.js.map +1 -0
- package/dist/index64.js +24 -0
- package/dist/index64.js.map +1 -0
- package/dist/index65.js +12 -0
- package/dist/index65.js.map +1 -0
- package/dist/index66.js +25 -0
- package/dist/index66.js.map +1 -0
- package/dist/index67.js +16 -0
- package/dist/index67.js.map +1 -0
- package/dist/index68.js +130 -0
- package/dist/index68.js.map +1 -0
- package/dist/index69.js +32 -0
- package/dist/index69.js.map +1 -0
- package/dist/index7.js +41 -0
- package/dist/index7.js.map +1 -0
- package/dist/index70.js +8 -0
- package/dist/index70.js.map +1 -0
- package/dist/index71.js +122 -0
- package/dist/index71.js.map +1 -0
- package/dist/index72.js +35 -0
- package/dist/index72.js.map +1 -0
- package/dist/index73.js +14 -0
- package/dist/index73.js.map +1 -0
- package/dist/index74.js +13 -0
- package/dist/index74.js.map +1 -0
- package/dist/index75.js +42 -0
- package/dist/index75.js.map +1 -0
- package/dist/index76.js +66 -0
- package/dist/index76.js.map +1 -0
- package/dist/index77.js +10 -0
- package/dist/index77.js.map +1 -0
- package/dist/index78.js +17 -0
- package/dist/index78.js.map +1 -0
- package/dist/index79.js +9 -0
- package/dist/index79.js.map +1 -0
- package/dist/index8.js +6 -0
- package/dist/index8.js.map +1 -0
- package/dist/index80.js +21 -0
- package/dist/index80.js.map +1 -0
- package/dist/index81.js +21 -0
- package/dist/index81.js.map +1 -0
- package/dist/index82.js +21 -0
- package/dist/index82.js.map +1 -0
- package/dist/index83.js +21 -0
- package/dist/index83.js.map +1 -0
- package/dist/index84.js +21 -0
- package/dist/index84.js.map +1 -0
- package/dist/index85.js +21 -0
- package/dist/index85.js.map +1 -0
- package/dist/index86.js +21 -0
- package/dist/index86.js.map +1 -0
- package/dist/index87.js +219 -0
- package/dist/index87.js.map +1 -0
- package/dist/index88.js +12 -0
- package/dist/index88.js.map +1 -0
- package/dist/index89.js +15 -0
- package/dist/index89.js.map +1 -0
- package/dist/index9.js +39 -0
- package/dist/index9.js.map +1 -0
- package/dist/index90.js +55 -0
- package/dist/index90.js.map +1 -0
- package/dist/index91.js +38 -0
- package/dist/index91.js.map +1 -0
- package/dist/index92.js +52 -0
- package/dist/index92.js.map +1 -0
- package/dist/index93.js +12 -0
- package/dist/index93.js.map +1 -0
- package/dist/index94.js +15 -0
- package/dist/index94.js.map +1 -0
- package/dist/index95.js +28 -0
- package/dist/index95.js.map +1 -0
- package/dist/index96.js +111 -0
- package/dist/index96.js.map +1 -0
- package/dist/index97.js +9 -0
- package/dist/index97.js.map +1 -0
- package/dist/index98.js +38 -0
- package/dist/index98.js.map +1 -0
- package/dist/index99.js +8 -0
- package/dist/index99.js.map +1 -0
- package/package.json +88 -0
package/dist/index121.js
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __toESM as e } from "./index2.js";
|
|
3
|
+
import { require_prop_types as t } from "./index34.js";
|
|
4
|
+
import { clsx as n } from "./index63.js";
|
|
5
|
+
import r from "./index78.js";
|
|
6
|
+
import i from "./index108.js";
|
|
7
|
+
import a from "./index109.js";
|
|
8
|
+
import { useDefaultProps as o } from "./index110.js";
|
|
9
|
+
import s from "./index111.js";
|
|
10
|
+
import { getTransitionStyles as c } from "./index113.js";
|
|
11
|
+
import { getSvgIconUtilityClass as l } from "./index120.js";
|
|
12
|
+
import * as u from "react";
|
|
13
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
14
|
+
//#region node_modules/@mui/material/SvgIcon/SvgIcon.mjs
|
|
15
|
+
var p = /* @__PURE__ */ e(t(), 1), m = (e) => {
|
|
16
|
+
let { color: t, fontSize: n, classes: i } = e, a = { root: [
|
|
17
|
+
"root",
|
|
18
|
+
t !== "inherit" && `color${s(t)}`,
|
|
19
|
+
`fontSize${s(n)}`
|
|
20
|
+
] };
|
|
21
|
+
return r(a, l, i);
|
|
22
|
+
}, h = i("svg", {
|
|
23
|
+
name: "MuiSvgIcon",
|
|
24
|
+
slot: "Root",
|
|
25
|
+
overridesResolver: (e, t) => {
|
|
26
|
+
let { ownerState: n } = e;
|
|
27
|
+
return [
|
|
28
|
+
t.root,
|
|
29
|
+
n.color !== "inherit" && t[`color${s(n.color)}`],
|
|
30
|
+
t[`fontSize${s(n.fontSize)}`]
|
|
31
|
+
];
|
|
32
|
+
}
|
|
33
|
+
})(a(({ theme: e }) => ({
|
|
34
|
+
userSelect: "none",
|
|
35
|
+
width: "1em",
|
|
36
|
+
height: "1em",
|
|
37
|
+
display: "inline-block",
|
|
38
|
+
flexShrink: 0,
|
|
39
|
+
...c(e, "fill", { duration: (e.vars ?? e).transitions?.duration?.shorter }),
|
|
40
|
+
variants: [
|
|
41
|
+
{
|
|
42
|
+
props: (e) => !e.hasSvgAsChild,
|
|
43
|
+
style: { fill: "currentColor" }
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
props: { fontSize: "inherit" },
|
|
47
|
+
style: { fontSize: "inherit" }
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
props: { fontSize: "small" },
|
|
51
|
+
style: { fontSize: e.typography?.pxToRem?.(20) || "1.25rem" }
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
props: { fontSize: "medium" },
|
|
55
|
+
style: { fontSize: e.typography?.pxToRem?.(24) || "1.5rem" }
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
props: { fontSize: "large" },
|
|
59
|
+
style: { fontSize: e.typography?.pxToRem?.(35) || "2.1875rem" }
|
|
60
|
+
},
|
|
61
|
+
...Object.entries((e.vars ?? e).palette).filter(([, e]) => e && e.main).map(([t]) => ({
|
|
62
|
+
props: { color: t },
|
|
63
|
+
style: { color: (e.vars ?? e).palette?.[t]?.main }
|
|
64
|
+
})),
|
|
65
|
+
{
|
|
66
|
+
props: { color: "action" },
|
|
67
|
+
style: { color: (e.vars ?? e).palette?.action?.active }
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
props: { color: "disabled" },
|
|
71
|
+
style: { color: (e.vars ?? e).palette?.action?.disabled }
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
props: { color: "inherit" },
|
|
75
|
+
style: { color: void 0 }
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}))), g = /*#__PURE__*/ u.forwardRef(function(e, t) {
|
|
79
|
+
let r = o({
|
|
80
|
+
props: e,
|
|
81
|
+
name: "MuiSvgIcon"
|
|
82
|
+
}), { children: i, className: a, color: s = "inherit", component: c = "svg", fontSize: l = "medium", htmlColor: p, inheritViewBox: g = !1, titleAccess: _, viewBox: v = "0 0 24 24", ...y } = r, b = /*#__PURE__*/ u.isValidElement(i) && i.type === "svg", x = {
|
|
83
|
+
...r,
|
|
84
|
+
color: s,
|
|
85
|
+
component: c,
|
|
86
|
+
fontSize: l,
|
|
87
|
+
instanceFontSize: e.fontSize,
|
|
88
|
+
inheritViewBox: g,
|
|
89
|
+
viewBox: v,
|
|
90
|
+
hasSvgAsChild: b
|
|
91
|
+
}, S = {};
|
|
92
|
+
g || (S.viewBox = v);
|
|
93
|
+
let C = m(x);
|
|
94
|
+
return /*#__PURE__*/ f(h, {
|
|
95
|
+
as: c,
|
|
96
|
+
className: n(C.root, a),
|
|
97
|
+
focusable: "false",
|
|
98
|
+
color: p,
|
|
99
|
+
"aria-hidden": !_ || void 0,
|
|
100
|
+
role: _ ? "img" : void 0,
|
|
101
|
+
ref: t,
|
|
102
|
+
...S,
|
|
103
|
+
...y,
|
|
104
|
+
...b && i.props,
|
|
105
|
+
ownerState: x,
|
|
106
|
+
children: [b ? i.props.children : i, _ ? /*#__PURE__*/ d("title", { children: _ }) : null]
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
process.env.NODE_ENV !== "production" && (g.propTypes = {
|
|
110
|
+
children: p.default.node,
|
|
111
|
+
classes: p.default.object,
|
|
112
|
+
className: p.default.string,
|
|
113
|
+
color: p.default.oneOfType([p.default.oneOf([
|
|
114
|
+
"inherit",
|
|
115
|
+
"action",
|
|
116
|
+
"disabled",
|
|
117
|
+
"primary",
|
|
118
|
+
"secondary",
|
|
119
|
+
"error",
|
|
120
|
+
"info",
|
|
121
|
+
"success",
|
|
122
|
+
"warning"
|
|
123
|
+
]), p.default.string]),
|
|
124
|
+
component: p.default.elementType,
|
|
125
|
+
fontSize: p.default.oneOfType([p.default.oneOf([
|
|
126
|
+
"inherit",
|
|
127
|
+
"large",
|
|
128
|
+
"medium",
|
|
129
|
+
"small"
|
|
130
|
+
]), p.default.string]),
|
|
131
|
+
htmlColor: p.default.string,
|
|
132
|
+
inheritViewBox: p.default.bool,
|
|
133
|
+
shapeRendering: p.default.string,
|
|
134
|
+
sx: p.default.oneOfType([
|
|
135
|
+
p.default.arrayOf(p.default.oneOfType([
|
|
136
|
+
p.default.func,
|
|
137
|
+
p.default.object,
|
|
138
|
+
p.default.bool
|
|
139
|
+
])),
|
|
140
|
+
p.default.func,
|
|
141
|
+
p.default.object
|
|
142
|
+
]),
|
|
143
|
+
titleAccess: p.default.string,
|
|
144
|
+
viewBox: p.default.string
|
|
145
|
+
}), g.muiName = "SvgIcon";
|
|
146
|
+
//#endregion
|
|
147
|
+
export { g as default };
|
|
148
|
+
|
|
149
|
+
//# sourceMappingURL=index121.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index121.js","names":["capitalize","PropTypes"],"sources":["../node_modules/@mui/material/SvgIcon/SvgIcon.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from \"../utils/capitalize.mjs\";\nimport { styled } from \"../zero-styled/index.mjs\";\nimport memoTheme from \"../utils/memoTheme.mjs\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.mjs\";\nimport { getSvgIconUtilityClass } from \"./svgIconClasses.mjs\";\nimport { getTransitionStyles } from \"../transitions/utils.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n color,\n fontSize,\n classes\n } = ownerState;\n const slots = {\n root: ['root', color !== 'inherit' && `color${capitalize(color)}`, `fontSize${capitalize(fontSize)}`]\n };\n return composeClasses(slots, getSvgIconUtilityClass, classes);\n};\nconst SvgIconRoot = styled('svg', {\n name: 'MuiSvgIcon',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.color !== 'inherit' && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n userSelect: 'none',\n width: '1em',\n height: '1em',\n display: 'inline-block',\n flexShrink: 0,\n ...getTransitionStyles(theme, 'fill', {\n duration: (theme.vars ?? theme).transitions?.duration?.shorter\n }),\n variants: [{\n props: props => !props.hasSvgAsChild,\n style: {\n // the <svg> will define the property that has `currentColor`\n // for example heroicons uses fill=\"none\" and stroke=\"currentColor\"\n fill: 'currentColor'\n }\n }, {\n props: {\n fontSize: 'inherit'\n },\n style: {\n fontSize: 'inherit'\n }\n }, {\n props: {\n fontSize: 'small'\n },\n style: {\n fontSize: theme.typography?.pxToRem?.(20) || '1.25rem'\n }\n }, {\n props: {\n fontSize: 'medium'\n },\n style: {\n fontSize: theme.typography?.pxToRem?.(24) || '1.5rem'\n }\n }, {\n props: {\n fontSize: 'large'\n },\n style: {\n fontSize: theme.typography?.pxToRem?.(35) || '2.1875rem'\n }\n },\n // TODO v5 deprecate color prop, v6 remove for sx\n ...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color]) => ({\n props: {\n color\n },\n style: {\n color: (theme.vars ?? theme).palette?.[color]?.main\n }\n })), {\n props: {\n color: 'action'\n },\n style: {\n color: (theme.vars ?? theme).palette?.action?.active\n }\n }, {\n props: {\n color: 'disabled'\n },\n style: {\n color: (theme.vars ?? theme).palette?.action?.disabled\n }\n }, {\n props: {\n color: 'inherit'\n },\n style: {\n color: undefined\n }\n }]\n})));\nconst SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiSvgIcon'\n });\n const {\n children,\n className,\n color = 'inherit',\n component = 'svg',\n fontSize = 'medium',\n htmlColor,\n inheritViewBox = false,\n titleAccess,\n viewBox = '0 0 24 24',\n ...other\n } = props;\n const hasSvgAsChild = /*#__PURE__*/React.isValidElement(children) && children.type === 'svg';\n const ownerState = {\n ...props,\n color,\n component,\n fontSize,\n instanceFontSize: inProps.fontSize,\n inheritViewBox,\n viewBox,\n hasSvgAsChild\n };\n const more = {};\n if (!inheritViewBox) {\n more.viewBox = viewBox;\n }\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(SvgIconRoot, {\n as: component,\n className: clsx(classes.root, className),\n focusable: \"false\",\n color: htmlColor,\n \"aria-hidden\": titleAccess ? undefined : true,\n role: titleAccess ? 'img' : undefined,\n ref: ref,\n ...more,\n ...other,\n ...(hasSvgAsChild && children.props),\n ownerState: ownerState,\n children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /*#__PURE__*/_jsx(\"title\", {\n children: titleAccess\n }) : null]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? SvgIcon.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Node passed into the SVG element.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * You can use the `htmlColor` prop to apply a color attribute to the SVG element.\n * @default 'inherit'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'action', 'disabled', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.\n * @default 'medium'\n */\n fontSize: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'large', 'medium', 'small']), PropTypes.string]),\n /**\n * Applies a color attribute to the SVG element.\n */\n htmlColor: PropTypes.string,\n /**\n * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`\n * prop will be ignored.\n * Useful when you want to reference a custom `component` and have `SvgIcon` pass that\n * `component`'s viewBox to the root node.\n * @default false\n */\n inheritViewBox: PropTypes.bool,\n /**\n * The shape-rendering attribute. The behavior of the different options is described on the\n * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering).\n * If you are having issues with blurry icons you should investigate this prop.\n */\n shapeRendering: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Provides a human-readable title for the element that contains it.\n * https://www.w3.org/TR/SVG-access/#Equivalent\n */\n titleAccess: PropTypes.string,\n /**\n * Allows you to redefine what the coordinates without units mean inside an SVG element.\n * For example, if the SVG element is 500 (width) by 200 (height),\n * and you pass viewBox=\"0 0 50 20\",\n * this means that the coordinates inside the SVG will go from the top left corner (0,0)\n * to bottom right (50,20) and each unit will be worth 10px.\n * @default '0 0 24 24'\n */\n viewBox: PropTypes.string\n} : void 0;\nSvgIcon.muiName = 'SvgIcon';\nexport default SvgIcon;"],"x_google_ignoreList":[0],"mappings":"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"}
|
package/dist/index122.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "./index121.js";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
//#region node_modules/@mui/material/SvgIcon/createSvgIcon.mjs
|
|
6
|
+
function r(r, i) {
|
|
7
|
+
function a(t, a) {
|
|
8
|
+
return /*#__PURE__*/ n(e, {
|
|
9
|
+
"data-testid": process.env.NODE_ENV === "production" ? void 0 : `${i}Icon`,
|
|
10
|
+
ref: a,
|
|
11
|
+
...t,
|
|
12
|
+
children: r
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
return process.env.NODE_ENV !== "production" && (a.displayName = `${i}Icon`), a.muiName = e.muiName, /*#__PURE__*/ t.memo(/*#__PURE__*/ t.forwardRef(a));
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { r as default };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=index122.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index122.js","names":[],"sources":["../node_modules/@mui/material/SvgIcon/createSvgIcon.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport SvgIcon from \"./SvgIcon.mjs\";\n\n/**\n * Private module reserved for @mui packages.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createSvgIcon(path, displayName) {\n function Component(props, ref) {\n return /*#__PURE__*/_jsx(SvgIcon, {\n \"data-testid\": process.env.NODE_ENV !== 'production' ? `${displayName}Icon` : undefined,\n ref: ref,\n ...props,\n children: path\n });\n }\n if (process.env.NODE_ENV !== 'production') {\n // Need to set `displayName` on the inner component for React.memo.\n // React prior to 16.14 ignores `displayName` on the wrapper.\n Component.displayName = `${displayName}Icon`;\n }\n Component.muiName = SvgIcon.muiName;\n return /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(Component));\n}"],"x_google_ignoreList":[0],"mappings":";;;;;AASA,SAAwB,EAAc,GAAM,GAAa;CACvD,SAAS,EAAU,GAAO,GAAK;EAC7B,OAAoB,gBAAK,GAAS;GAChC,eAAA,QAAA,IAAA,aAAwC,eAAsC,KAAA,IAAvB,GAAG,EAAY;GACjE;GACL,GAAG;GACH,UAAU;EACZ,CAAC;CACH;CAOA,OANA,QAAA,IAAA,aAA6B,iBAG3B,EAAU,cAAc,GAAG,EAAY,QAEzC,EAAU,UAAU,EAAQ,SACR,gBAAM,KAAkB,gBAAM,WAAW,CAAS,CAAC;AACzE"}
|
package/dist/index123.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "./index122.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region node_modules/@mui/icons-material/ArrowBack.mjs
|
|
5
|
+
var n = e(/*#__PURE__*/ t("path", { d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z" }), "ArrowBack");
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=index123.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index123.js","names":[],"sources":["../node_modules/@mui/icons-material/ArrowBack.mjs"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z\"\n}), 'ArrowBack');"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,IAAA,IAAe,EAA2B,gBAAK,QAAQ,EACrD,GAAG,4DACL,CAAC,GAAG,WAAW"}
|
package/dist/index124.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "./index122.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region node_modules/@mui/icons-material/ArrowForward.mjs
|
|
5
|
+
var n = e(/*#__PURE__*/ t("path", { d: "m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z" }), "ArrowForward");
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=index124.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index124.js","names":[],"sources":["../node_modules/@mui/icons-material/ArrowForward.mjs"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z\"\n}), 'ArrowForward');"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,IAAA,IAAe,EAA2B,gBAAK,QAAQ,EACrD,GAAG,2DACL,CAAC,GAAG,cAAc"}
|
package/dist/index125.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import e from "./index61.js";
|
|
2
|
+
import t from "./index114.js";
|
|
3
|
+
import n from "./index123.js";
|
|
4
|
+
import r from "./index124.js";
|
|
5
|
+
import { Button as i } from "@mui/material";
|
|
6
|
+
import { useTranslation as a } from "react-i18next";
|
|
7
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
+
//#region src/libs/shared/UI/button/AppButton.tsx
|
|
9
|
+
function c({ label: c, children: l, variantType: u, leftArrow: d, rightArrow: f, bgColor: p, textColor: m, disableHoverEffect: h, variant: g, isMandatory: _ = !1, sx: v, ...y }) {
|
|
10
|
+
let b = e(), x = u ?? (g === "outlined" ? "outlined" : g === "contained" ? "primary" : "secondary"), S = {
|
|
11
|
+
primary: (e) => ({
|
|
12
|
+
backgroundColor: e.palette.text.primary,
|
|
13
|
+
color: e.palette.menuText.primary,
|
|
14
|
+
"&:hover": { backgroundColor: e.palette.primary.dark }
|
|
15
|
+
}),
|
|
16
|
+
secondary: (e) => ({
|
|
17
|
+
backgroundColor: e.palette.text.primary,
|
|
18
|
+
color: u === "outlined" ? e.palette.text.primary : e.palette.menuText.secondary,
|
|
19
|
+
border: 1.2,
|
|
20
|
+
borderColor: e.palette.text.primary,
|
|
21
|
+
"&:hover": { boxShadow: "2px 2px 4px rgba(0, 0, 0, 0.1)" }
|
|
22
|
+
}),
|
|
23
|
+
outlined: (e) => ({
|
|
24
|
+
backgroundColor: e.palette.action.selected,
|
|
25
|
+
color: e.palette.text.primary,
|
|
26
|
+
border: 1.2,
|
|
27
|
+
borderColor: e.palette.disabled.main,
|
|
28
|
+
"&:hover": { boxShadow: "2px 2px 4px rgba(0, 0, 0, 0.1)" }
|
|
29
|
+
})
|
|
30
|
+
}, { t: C } = a();
|
|
31
|
+
return /* @__PURE__ */ s(i, {
|
|
32
|
+
disableElevation: !0,
|
|
33
|
+
variant: g,
|
|
34
|
+
...y,
|
|
35
|
+
startIcon: d ? /* @__PURE__ */ o(n, {}) : void 0,
|
|
36
|
+
endIcon: f ? /* @__PURE__ */ o(r, {}) : void 0,
|
|
37
|
+
sx: {
|
|
38
|
+
height: "2.4rem",
|
|
39
|
+
borderRadius: "44px",
|
|
40
|
+
padding: "12px 32px",
|
|
41
|
+
textTransform: "none",
|
|
42
|
+
fontWeight: 600,
|
|
43
|
+
gap: "4px",
|
|
44
|
+
minWidth: "auto",
|
|
45
|
+
borderWidth: "1.2px",
|
|
46
|
+
...S?.[x]?.(b) ?? {},
|
|
47
|
+
...v,
|
|
48
|
+
...p && {
|
|
49
|
+
backgroundColor: p,
|
|
50
|
+
...h && { "&:hover": { boxShadow: "2px 2px 4px rgba(0, 0, 0, 0.1)" } }
|
|
51
|
+
},
|
|
52
|
+
...m && { color: m }
|
|
53
|
+
},
|
|
54
|
+
children: [typeof c == "string" ? C(c) : l, /* @__PURE__ */ o(t, {
|
|
55
|
+
text: "",
|
|
56
|
+
isRequired: _
|
|
57
|
+
})]
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
export { c as default };
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=index125.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index125.js","names":[],"sources":["../src/libs/shared/UI/button/AppButton.tsx"],"sourcesContent":["import ArrowBackIcon from \"@mui/icons-material/ArrowBack\";\r\nimport ArrowForwardIcon from \"@mui/icons-material/ArrowForward\";\r\nimport { Button} from \"@mui/material\";\r\nimport { useTheme, type Theme } from \"@mui/system\";\r\nimport type { AppButtonProps, VariantType } from \"libs/shared/types/common-types\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\n\r\n\r\n\r\nexport default function AppButton({\r\n label,\r\n children,\r\n variantType,\r\n leftArrow,\r\n rightArrow,\r\n bgColor,\r\n textColor,\r\n disableHoverEffect,\r\n variant,\r\n isMandatory = false,\r\n sx,\r\n ...rest\r\n}: Readonly<AppButtonProps>) {\r\n const theme = useTheme();\r\n const resolvedType: VariantType =\r\n variantType ??\r\n (variant === \"outlined\"\r\n ? \"outlined\"\r\n : variant === \"contained\"\r\n ? \"primary\"\r\n : \"secondary\");\r\n\r\n const variantStyles: Record<\r\n string,\r\n (theme: Theme) => React.CSSProperties\r\n > = {\r\n primary: (theme) => ({\r\n backgroundColor: theme.palette.text.primary,\r\n color: theme.palette.menuText.primary,\r\n\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.primary.dark,\r\n },\r\n }),\r\n\r\n secondary: (theme) => ({\r\n backgroundColor: theme.palette.text.primary,\r\n color: variantType === \"outlined\" ? theme.palette.text.primary : theme.palette.menuText.secondary,\r\n border: 1.2,\r\n borderColor: theme.palette.text.primary,\r\n \"&:hover\": {\r\n boxShadow: \"2px 2px 4px rgba(0, 0, 0, 0.1)\"\r\n },\r\n }),\r\n\r\n outlined: (theme) => ({\r\n backgroundColor: theme.palette.action.selected,\r\n color: theme.palette.text.primary ,\r\n border: 1.2,\r\n borderColor: theme.palette.disabled.main,\r\n\r\n \"&:hover\": {\r\n boxShadow: \"2px 2px 4px rgba(0, 0, 0, 0.1)\"\r\n },\r\n }),\r\n };\r\n\r\n const { t } = useTranslation();\r\n\r\n return (\r\n <Button\r\n disableElevation\r\n variant={variant}\r\n {...rest}\r\n startIcon={leftArrow ? <ArrowBackIcon /> : undefined}\r\n endIcon={rightArrow ? <ArrowForwardIcon /> : undefined}\r\n sx={{\r\n height: '2.4rem',\r\n borderRadius: \"44px\",\r\n padding: \"12px 32px\",\r\n textTransform: \"none\",\r\n fontWeight: 600,\r\n gap: \"4px\",\r\n minWidth: \"auto\",\r\n borderWidth: \"1.2px\",\r\n ...(variantStyles?.[resolvedType]?.(theme) ?? {}),\r\n ...sx,\r\n\r\n ...(bgColor && {\r\n backgroundColor: bgColor,\r\n ...(disableHoverEffect && {\r\n \"&:hover\": { boxShadow: \"2px 2px 4px rgba(0, 0, 0, 0.1)\" },\r\n }),\r\n }),\r\n\r\n ...(textColor && { color: textColor }),\r\n }}\r\n >\r\n {typeof label === \"string\" ? t(label) : children}\r\n <Typography2 text=\"\" isRequired={isMandatory}/>\r\n </Button>\r\n );\r\n}"],"mappings":";;;;;;;;AAUA,SAAwB,EAAU,EAChC,UACA,aACA,gBACA,cACA,eACA,YACA,cACA,uBACA,YACA,iBAAc,IACd,OACA,GAAG,KACwB;CAC3B,IAAM,IAAQ,EAAS,GACjB,IACJ,MACC,MAAY,aACT,aACA,MAAY,cACV,YACA,cAEF,IAGF;EACF,UAAU,OAAW;GACnB,iBAAiB,EAAM,QAAQ,KAAK;GACpC,OAAO,EAAM,QAAQ,SAAS;GAE9B,WAAW,EACT,iBAAiB,EAAM,QAAQ,QAAQ,KACzC;EACF;EAEA,YAAY,OAAW;GACrB,iBAAiB,EAAM,QAAQ,KAAK;GACpC,OAAO,MAAgB,aAAa,EAAM,QAAQ,KAAK,UAAU,EAAM,QAAQ,SAAS;GACxF,QAAQ;GACR,aAAa,EAAM,QAAQ,KAAK;GAChC,WAAW,EACT,WAAW,iCACb;EACF;EAEA,WAAW,OAAW;GACpB,iBAAiB,EAAM,QAAQ,OAAO;GACtC,OAAO,EAAM,QAAQ,KAAK;GAC1B,QAAQ;GACR,aAAa,EAAM,QAAQ,SAAS;GAEpC,WAAW,EACT,WAAW,iCACb;EACF;CACF,GAEM,EAAE,SAAM,EAAe;CAE7B,OACI,kBAAC,GAAD;EACE,kBAAA;EACS;EACT,GAAI;EACJ,WAAW,IAAY,kBAAC,GAAD,CAAgB,CAAA,IAAI,KAAA;EAC3C,SAAS,IAAa,kBAAC,GAAD,CAAmB,CAAA,IAAI,KAAA;EAC7C,IAAI;GACF,QAAQ;GACR,cAAc;GACd,SAAS;GACT,eAAe;GACf,YAAY;GACZ,KAAK;GACL,UAAU;GACV,aAAa;GACb,GAAI,IAAgB,EAAa,GAAG,CAAK,KAAK,CAAC;GAC/C,GAAG;GAEH,GAAI,KAAW;IACb,iBAAiB;IACjB,GAAI,KAAsB,EACxB,WAAW,EAAE,WAAW,iCAAiC,EAC3D;GACF;GAEA,GAAI,KAAa,EAAE,OAAO,EAAU;EACtC;EA1BF,UAAA,CA4BG,OAAO,KAAU,WAAW,EAAE,CAAK,IAAI,GACxC,kBAAC,GAAD;GAAa,MAAK;GAAG,YAAY;EAAa,CAAA,CACxC;;AAEd"}
|
package/dist/index126.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import e from "react";
|
|
2
|
+
import { Box as t, Checkbox as n, FormControlLabel as r, FormHelperText as i } from "@mui/material";
|
|
3
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
|
+
//#region src/libs/shared/UI/checkbox/AppCheckbox.tsx
|
|
5
|
+
function s({ label: e, checked: s, onChange: c, helperText: l, ...u }) {
|
|
6
|
+
return /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ a(r, {
|
|
7
|
+
control: /* @__PURE__ */ a(n, {
|
|
8
|
+
checked: s,
|
|
9
|
+
onChange: (e) => c?.(e, e.target.checked),
|
|
10
|
+
...u,
|
|
11
|
+
sx: {
|
|
12
|
+
color: "primary.main",
|
|
13
|
+
"&.Mui-disabled.Mui-checked": { color: "primary.main" },
|
|
14
|
+
"&.Mui-checked": { color: "primary.main" }
|
|
15
|
+
}
|
|
16
|
+
}),
|
|
17
|
+
label: e
|
|
18
|
+
}), l && /* @__PURE__ */ a(i, { children: l })] });
|
|
19
|
+
}
|
|
20
|
+
var c = e.memo(s);
|
|
21
|
+
//#endregion
|
|
22
|
+
export { c as default };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=index126.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index126.js","names":[],"sources":["../src/libs/shared/UI/checkbox/AppCheckbox.tsx"],"sourcesContent":["import {\r\n FormControlLabel,\r\n Checkbox,\r\n FormHelperText,\r\n Box,\r\n type CheckboxProps,\r\n} from \"@mui/material\";\r\nimport React from \"react\";\r\n\r\ntype Props = CheckboxProps & {\r\n label?: string;\r\n helperText?: string;\r\n};\r\n\r\nfunction AppCheckbox({\r\n label,\r\n checked,\r\n onChange,\r\n helperText,\r\n ...rest\r\n}: Readonly<Props>) {\r\n return (\r\n <Box>\r\n <FormControlLabel\r\n control={\r\n <Checkbox\r\n checked={checked}\r\n onChange={(e) => onChange?.(e, e.target.checked)}\r\n {...rest}\r\n sx={{\r\n color: \"primary.main\",\r\n '&.Mui-disabled.Mui-checked': { color: \"primary.main\" },\r\n '&.Mui-checked': { color: \"primary.main\" }\r\n }}\r\n />\r\n }\r\n label={label}\r\n />\r\n\r\n {helperText && <FormHelperText>{helperText}</FormHelperText>}\r\n </Box>\r\n );\r\n}\r\n\r\nexport default React.memo(AppCheckbox)"],"mappings":";;;;AAcA,SAAS,EAAY,EACnB,UACA,YACA,aACA,eACA,GAAG,KACe;CAClB,OACE,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;EACE,SACE,kBAAC,GAAD;GACW;GACT,WAAW,MAAM,IAAW,GAAG,EAAE,OAAO,OAAO;GAC/C,GAAI;GACJ,IAAI;IACA,OAAO;IACP,8BAA8B,EAAE,OAAO,eAAe;IACtD,iBAAiB,EAAE,OAAO,eAAe;GAC3C;EACH,CAAA;EAEI;CACR,CAAA,GAEA,KAAc,kBAAC,GAAD,EAAA,UAAiB,EAA2B,CAAA,CACxD,EAAA,CAAA;AAET;AAEA,IAAA,IAAe,EAAM,KAAK,CAAW"}
|
package/dist/index127.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "./index122.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region node_modules/@mui/icons-material/MicNoneOutlined.mjs
|
|
5
|
+
var n = e(/*#__PURE__*/ t("path", { d: "M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m-1-9c0-.55.45-1 1-1s1 .45 1 1v6c0 .55-.45 1-1 1s-1-.45-1-1zm6 6c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92z" }), "MicNoneOutlined");
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=index127.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index127.js","names":[],"sources":["../node_modules/@mui/icons-material/MicNoneOutlined.mjs"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m-1-9c0-.55.45-1 1-1s1 .45 1 1v6c0 .55-.45 1-1 1s-1-.45-1-1zm6 6c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92z\"\n}), 'MicNoneOutlined');"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,IAAA,IAAe,EAA2B,gBAAK,QAAQ,EACrD,GAAG,yOACL,CAAC,GAAG,iBAAiB"}
|
package/dist/index128.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e from "react";
|
|
2
|
+
//#region src/libs/core/context/AppThemeContext.ts
|
|
3
|
+
var t = e.createContext(null), n = () => {
|
|
4
|
+
let n = e.useContext(t);
|
|
5
|
+
if (!n) throw Error("useAppThemeContext must be inside provider");
|
|
6
|
+
return n;
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as AppThemeContext, n as useAppThemeContext };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=index128.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index128.js","names":[],"sources":["../src/libs/core/context/AppThemeContext.ts"],"sourcesContent":["import React from \"react\"; \r\nimport type { ThemeMode } from \"../../shared/theme/theme\";\r\nimport type { ColorScheme } from \"../../shared/theme/color\";\r\nimport type { DeviceTypeEnum } from \"libs/shared/enums/common-enums\";\r\n\r\ninterface ContextType {\r\n mode: ThemeMode;\r\n scheme: ColorScheme;\r\n fontSize: number;\r\n sidebarOpen: boolean;\r\n currentDevice: DeviceTypeEnum,\r\n\r\n setScheme: (s: ColorScheme) => void;\r\n toggleMode: () => void;\r\n increaseFont: () => void;\r\n decreaseFont: () => void;\r\n resetTheme: () => void;\r\n toggleSidebar: (val?: boolean) => void;\r\n toggleMobileSidebar: () => void;\r\n handleCurrentDevice: (deviceType: DeviceTypeEnum) => void\r\n}\r\n\r\nexport const AppThemeContext = React.createContext<ContextType | null>(null);\r\n\r\nexport const useAppThemeContext = () => {\r\n const ctx = React.useContext(AppThemeContext);\r\n if (!ctx) throw new Error(\"useAppThemeContext must be inside provider\");\r\n return ctx;\r\n};"],"mappings":";;AAsBA,IAAa,IAAkB,EAAM,cAAkC,IAAI,GAE9D,UAA2B;CACtC,IAAM,IAAM,EAAM,WAAW,CAAe;CAC5C,IAAI,CAAC,GAAK,MAAU,MAAM,4CAA4C;CACtE,OAAO;AACT"}
|
package/dist/index129.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/libs/shared/enums/common-enums.ts
|
|
2
|
+
var e = /* @__PURE__ */ function(e) {
|
|
3
|
+
return e.NUMERIC = "NUMBER", e.PASSWORD = "PASSWORD", e.SELECT = "SELECT", e.EMAIL = "EMAIL", e.TEXT = "TEXT", e.FILE = "FILE", e.RADIOLIST = "RADIOLIST", e.DATE_TIME = "DATE_TIME", e.RADIO = "RADIO", e.DATE = "DATE", e.TIME = "TIME", e.YEAR = "YEAR", e.CHECKBOXLIST = "CHECKBOXLIST", e.ARRAY = "ARRAY", e.CHECKBOX = "CHECKBOX", e.PHONE = "PHONE", e.MOBILE = "MOBILE", e.HIDDEN = "HIDDEN", e.MOBILECOUNTRYCODE = "MOBILECOUNTRYCODE", e.CUSTOM = "CUSTOM", e;
|
|
4
|
+
}({}), t = /* @__PURE__ */ function(e) {
|
|
5
|
+
return e.INHERIT = "inherit", e.RED = "red", e.GREEN = "green", e;
|
|
6
|
+
}({});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as FieldEnum, t as MenuTextColorEnum };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=index129.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index129.js","names":[],"sources":["../src/libs/shared/enums/common-enums.ts"],"sourcesContent":["export enum ApiMethodEnum {\r\n GET = \"GET\",\r\n POST = \"POST\",\r\n PUT = \"PUT\",\r\n DELETE = \"DELETE\",\r\n PATCH = \"PATCH\",\r\n}\r\n\r\nexport enum FieldEnum {\r\n NUMERIC = \"NUMBER\",\r\n PASSWORD = \"PASSWORD\",\r\n SELECT = \"SELECT\",\r\n EMAIL = \"EMAIL\",\r\n TEXT = \"TEXT\",\r\n FILE = \"FILE\",\r\n RADIOLIST = \"RADIOLIST\",\r\n DATE_TIME = \"DATE_TIME\",\r\n RADIO = \"RADIO\",\r\n DATE = \"DATE\",\r\n TIME = \"TIME\",\r\n YEAR = \"YEAR\",\r\n CHECKBOXLIST = \"CHECKBOXLIST\",\r\n ARRAY = \"ARRAY\",\r\n CHECKBOX = \"CHECKBOX\",\r\n PHONE = \"PHONE\",\r\n MOBILE = \"MOBILE\",\r\n HIDDEN = \"HIDDEN\",\r\n MOBILECOUNTRYCODE = \"MOBILECOUNTRYCODE\",\r\n CUSTOM=\"CUSTOM\"\r\n}\r\n\r\nexport enum MenuTextColorEnum {\r\n INHERIT = \"inherit\",\r\n RED = \"red\",\r\n GREEN = \"green\",\r\n}\r\n\r\nexport enum AgePanelEnums {\r\n DATE_OF_BIRTH = 1,\r\n YEAR_OF_BIRTH = 2,\r\n AGE_RANGE = 3,\r\n}\r\n\r\nexport enum ProtestStatusEnum {\r\n REGISTERED = \"registered\",\r\n PENDING = \"pending\",\r\n MODIFICATION_REQUESTED = \"modification requested\",\r\n REJECTED = \"rejected\",\r\n APPROVED = \"approved\",\r\n}\r\n\r\nexport enum RouteEnum {\r\n INTERNAL = \"internal\",\r\n EXTERNAL = \"external\",\r\n}\r\n\r\nexport enum GaurdEnum {\r\n AUTH = \"auth\",\r\n PUBLIC = \"public\",\r\n}\r\n\r\nexport enum ThemeEnum {\r\n LIGHT = \"light\",\r\n DARK = \"dark\",\r\n}\r\n\r\nexport enum ColorEnum {\r\n PURPLE = \"purple\",\r\n BLUE = \"blue\",\r\n GREEN = \"green\",\r\n}\r\n\r\nexport enum SnackbarEnum {\r\n SUCCESS = \"success\",\r\n ERROR = \"error\",\r\n WARNING = \"warning\",\r\n INFO = \"info\",\r\n}\r\n\r\nexport enum DefaultRulesEnum {\r\n REQUIRED = \"required\",\r\n LABEL = \"label\",\r\n TYPE = \"type\",\r\n MIN_LENGTH = \"minLength\",\r\n MAX_LENGTH = \"maxLength\",\r\n AGE_BETWEEN = \"ageBetween\",\r\n IS_CHECK_CHARACTERS = \"isCheckCharacters\",\r\n IS_ALLOWED_OR_NOT_CHARACTERS = \"isAllowdOrNotCharacters\",\r\n LENGTH = \"length\",\r\n NOT_ALLOWED_STRING = \"notAllowedString\",\r\n ALLOWED_STRING = \"allowedString\",\r\n FROM_VALUE = \"fromValue\",\r\n DISABLED = \"disabled\",\r\n ISDISABLED=\"isDisabled\",\r\n INPUT_MODE = \"inputMode\",\r\n VALIDATE_SPECIFIC_CHARS = \"validateSpecificChars\",\r\n NOT_ALLOWED_SPECIFIC_CHARS = \"notAllowedSpecificChars\",\r\n MAX_VALUE = \"maxValue\",\r\n IS_NOT_ALLOWED_CHARACTERS = \"isNotAllowdCharacters\",\r\n EXTRA_REGEX = \"extraRegex\",\r\n MINIMUM_DATE = \"minimumDate\",\r\n MAXIMUM_DATE = \"maximumDate\",\r\n SERVER_FORMAT = \"serverFormat\",\r\n CLIENT_FORMAT = \"clientFormat\",\r\n DEFAULT_VALUE = \"defaultValue\",\r\n IS_CURRENT_TIME_ACCEPT = \"isCurrentTimeAccept\",\r\n CUSTOM_ERROR = \"customError\"\r\n}\r\n\r\nexport enum EConfirmationModalType {\r\n SUBMIT = \"SUBMIT\",\r\n CLEAR = \"CLEAR\",\r\n DELETE = \"DELETE\",\r\n DELETE_ALL = \"DELETE_ALL\",\r\n CHANGE = \"CHANGE\",\r\n CLOSE = \"CLOSE\",\r\n ALERT = \"ALERT\",\r\n}\r\n\r\nexport enum MinBirthYear {\r\n min0 = 0,\r\n min1 = 1,\r\n min7 = 7,\r\n min10 = 10,\r\n min18 = 18,\r\n min21 = 21,\r\n min25 = 25,\r\n min50 = 50,\r\n min100 = 100,\r\n min150 = 150,\r\n min200 = 200,\r\n}\r\n\r\nexport enum RelationTypeEnums {\r\n CLOSE = 1,\r\n DISTANCE = 2,\r\n}\r\n\r\nexport enum AddressTypeEnum {\r\n PRESENT = 1,\r\n PERMANANT = 2,\r\n PREVIOUS = 3\r\n}\r\n\r\nexport enum ButtonActionEnum {\r\n ADD = \"ADD\",\r\n EDIT = \"EDIT\",\r\n VIEW = \"VIEW\",\r\n DELETE = \"DELETE\",\r\n SUBMIT = \"SUBMIT\",\r\n CLOSE = \"CLOSE\",\r\n UPDATE = \"UPDATE\",\r\n NEXT = \"NEXT\",\r\n PRINT = \"PRINT\",\r\n SAVE = \"SAVE\",\r\n CLEAR = \"CLEAR\",\r\n SEARCH = \"SEARCH\"\r\n}\r\n\r\nexport enum IdentificationTypeEnum {\r\n PASSPORT = 1,\r\n DRIVING_LISCENCE = 2,\r\n RATION_CARD = 3,\r\n ARMS_LISCENCE = 4,\r\n VOTER_ID = 5,\r\n PAN_CARD = 6,\r\n OTHERS = 7,\r\n AADHAR_CARD = 8,\r\n}\r\n\r\nexport enum YESNO {\r\n YES = \"Y\",\r\n NO = \"N\"\r\n}\r\nexport enum DeviceTypeEnum {\r\n MOBILE = \"MOBILE\",\r\n TABLET = \"TABLET\",\r\n DESKTOP = \"DESKTOP\",\r\n}\r\n\r\nexport enum StatusCodeEnum {\r\n OK = 200,\r\n SUCCESS = 201\r\n}\r\n\r\nexport const CommonDraftnKeys = { \r\n PAGEABLE: {\r\n KEY: 'pageable',\r\n PAGE: 'page',\r\n PAGE_SIZE: 'pageSize'\r\n },\r\n MODULE_NUMBER: \"moduleNumber\",\r\n MODULE_NAME: \"module\",\r\n DRAFT_ID: \"draftId\",\r\n } as const;\r\n \r\n\r\nexport enum ModuleName { \r\n PROTEST = \"CITIZEN/PROTEST\",\r\n LOSTMOBILE = \"CITIZEN/LOST_MOB\",\r\n PROCESSION = \"CITIZEN/PROCESSION\",\r\n SR_CITIZEN = \"CITIZEN/SENIOR_CITIZEN\",\r\n COMPLAIN = \"CITIZEN/COMPL\",\r\n BLANK = \"BLANK\",\r\n EMPLOYEE_VERIFICATION = \"CITIZEN/EMPLOYEE_VERIFICATION\",\r\n}\r\n\r\nexport enum MODE {\r\n VIEW = \"view\",\r\n EDIT = \"edit\"\r\n}\r\nexport enum StatusEnum {\r\n REGISTERED= \"REGISTERED\",\r\n PENDING= \"PENDING\",\r\n MODIFICATION_REQUESTED= \"MODIFICATION REQUESTED\",\r\n REJECTED= \"REJECTED\",\r\n APPROVED= \"APPROVED\"\r\n}\r\n\r\nexport enum MinYearEnum {\r\n GENERAL = 7,\r\n SENIOR_CITIZEN = 60,\r\n ADULT = 18,\r\n UNKNOWN = 0\r\n}"],"mappings":";AAQA,IAAY,IAAL,yBAAA,GAAA;QACL,EAAA,UAAA,UACA,EAAA,WAAA,YACA,EAAA,SAAA,UACA,EAAA,QAAA,SACA,EAAA,OAAA,QACA,EAAA,OAAA,QACA,EAAA,YAAA,aACA,EAAA,YAAA,aACA,EAAA,QAAA,SACA,EAAA,OAAA,QACA,EAAA,OAAA,QACA,EAAA,OAAA,QACA,EAAA,eAAA,gBACA,EAAA,QAAA,SACA,EAAA,WAAA,YACA,EAAA,QAAA,SACA,EAAA,SAAA,UACA,EAAA,SAAA,UACA,EAAA,oBAAA,qBACA,EAAA,SAAA;AACF,EAAA,CAAA,CAAA,GAEY,IAAL,yBAAA,GAAA;QACL,EAAA,UAAA,WACA,EAAA,MAAA,OACA,EAAA,QAAA;AACF,EAAA,CAAA,CAAA"}
|
package/dist/index13.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { sizeof as e } from "./index9.js";
|
|
2
|
+
//#region node_modules/stylis/src/Middleware.js
|
|
3
|
+
function t(t) {
|
|
4
|
+
var n = e(t);
|
|
5
|
+
return function(e, r, i, a) {
|
|
6
|
+
for (var o = "", s = 0; s < n; s++) o += t[s](e, r, i, a) || "";
|
|
7
|
+
return o;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function n(e) {
|
|
11
|
+
return function(t) {
|
|
12
|
+
t.root || (t = t.return) && e(t);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { t as middleware, n as rulesheet };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=index13.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index13.js","names":[],"sources":["../node_modules/stylis/src/Middleware.js"],"sourcesContent":["import {MS, MOZ, WEBKIT, RULESET, KEYFRAMES, DECLARATION} from './Enum.js'\nimport {match, charat, substr, strlen, sizeof, replace, combine} from './Utility.js'\nimport {copy, tokenize} from './Tokenizer.js'\nimport {serialize} from './Serializer.js'\nimport {prefix} from './Prefixer.js'\n\n/**\n * @param {function[]} collection\n * @return {function}\n */\nexport function middleware (collection) {\n\tvar length = sizeof(collection)\n\n\treturn function (element, index, children, callback) {\n\t\tvar output = ''\n\n\t\tfor (var i = 0; i < length; i++)\n\t\t\toutput += collection[i](element, index, children, callback) || ''\n\n\t\treturn output\n\t}\n}\n\n/**\n * @param {function} callback\n * @return {function}\n */\nexport function rulesheet (callback) {\n\treturn function (element) {\n\t\tif (!element.root)\n\t\t\tif (element = element.return)\n\t\t\t\tcallback(element)\n\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n */\nexport function prefixer (element, index, children, callback) {\n\tif (element.length > -1)\n\t\tif (!element.return)\n\t\t\tswitch (element.type) {\n\t\t\t\tcase DECLARATION: element.return = prefix(element.value, element.length, children)\n\t\t\t\t\treturn\n\t\t\t\tcase KEYFRAMES:\n\t\t\t\t\treturn serialize([copy(element, {value: replace(element.value, '@', '@' + WEBKIT)})], callback)\n\t\t\t\tcase RULESET:\n\t\t\t\t\tif (element.length)\n\t\t\t\t\t\treturn combine(element.props, function (value) {\n\t\t\t\t\t\t\tswitch (match(value, /(::plac\\w+|:read-\\w+)/)) {\n\t\t\t\t\t\t\t\t// :read-(only|write)\n\t\t\t\t\t\t\t\tcase ':read-only': case ':read-write':\n\t\t\t\t\t\t\t\t\treturn serialize([copy(element, {props: [replace(value, /:(read-\\w+)/, ':' + MOZ + '$1')]})], callback)\n\t\t\t\t\t\t\t\t// :placeholder\n\t\t\t\t\t\t\t\tcase '::placeholder':\n\t\t\t\t\t\t\t\t\treturn serialize([\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, ':' + WEBKIT + 'input-$1')]}),\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, ':' + MOZ + '$1')]}),\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, MS + 'input-$1')]})\n\t\t\t\t\t\t\t\t\t], callback)\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn ''\n\t\t\t\t\t\t})\n\t\t\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n */\nexport function namespace (element) {\n\tswitch (element.type) {\n\t\tcase RULESET:\n\t\t\telement.props = element.props.map(function (value) {\n\t\t\t\treturn combine(tokenize(value), function (value, index, children) {\n\t\t\t\t\tswitch (charat(value, 0)) {\n\t\t\t\t\t\t// \\f\n\t\t\t\t\t\tcase 12:\n\t\t\t\t\t\t\treturn substr(value, 1, strlen(value))\n\t\t\t\t\t\t// \\0 ( + > ~\n\t\t\t\t\t\tcase 0: case 40: case 43: case 62: case 126:\n\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t// :\n\t\t\t\t\t\tcase 58:\n\t\t\t\t\t\t\tif (children[++index] === 'global')\n\t\t\t\t\t\t\t\tchildren[index] = '', children[++index] = '\\f' + substr(children[index], index = 1, -1)\n\t\t\t\t\t\t// \\s\n\t\t\t\t\t\tcase 32:\n\t\t\t\t\t\t\treturn index === 1 ? '' : value\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tswitch (index) {\n\t\t\t\t\t\t\t\tcase 0: element = value\n\t\t\t\t\t\t\t\t\treturn sizeof(children) > 1 ? '' : value\n\t\t\t\t\t\t\t\tcase index = sizeof(children) - 1: case 2:\n\t\t\t\t\t\t\t\t\treturn index === 2 ? value + element + element : value + element\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t}\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAUA,SAAgB,EAAY,GAAY;CACvC,IAAI,IAAS,EAAO,CAAU;CAE9B,OAAO,SAAU,GAAS,GAAO,GAAU,GAAU;EAGpD,KAAK,IAFD,IAAS,IAEJ,IAAI,GAAG,IAAI,GAAQ,KAC3B,KAAU,EAAW,EAAE,CAAC,GAAS,GAAO,GAAU,CAAQ,KAAK;EAEhE,OAAO;CACR;AACD;AAMA,SAAgB,EAAW,GAAU;CACpC,OAAO,SAAU,GAAS;EACzB,AAAK,EAAQ,SACR,IAAU,EAAQ,WACrB,EAAS,CAAO;CACnB;AACD"}
|