@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/index96.js
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import e from "./index4.js";
|
|
2
|
+
import t from "./index39.js";
|
|
3
|
+
import n from "./index56.js";
|
|
4
|
+
import r from "./index57.js";
|
|
5
|
+
import i from "./index59.js";
|
|
6
|
+
import a from "./index64.js";
|
|
7
|
+
import { alpha as o, darken as s, lighten as c } from "./index71.js";
|
|
8
|
+
import l from "./index87.js";
|
|
9
|
+
import u from "./index89.js";
|
|
10
|
+
import d from "./index90.js";
|
|
11
|
+
import f from "./index91.js";
|
|
12
|
+
import p from "./index92.js";
|
|
13
|
+
import m from "./index93.js";
|
|
14
|
+
import h from "./index94.js";
|
|
15
|
+
import { stringifyTheme as g } from "./index95.js";
|
|
16
|
+
//#region node_modules/@mui/material/styles/createThemeNoVars.mjs
|
|
17
|
+
function _(e) {
|
|
18
|
+
return typeof e == "number" ? `${(e * 100).toFixed(0)}%` : `calc((${e}) * 100%)`;
|
|
19
|
+
}
|
|
20
|
+
var v = (e) => {
|
|
21
|
+
if (!Number.isNaN(+e)) return +e;
|
|
22
|
+
let t = e.match(/\d*\.?\d+/g);
|
|
23
|
+
if (!t) return 0;
|
|
24
|
+
let n = 0;
|
|
25
|
+
for (let e = 0; e < t.length; e += 1) n += +t[e];
|
|
26
|
+
return n;
|
|
27
|
+
};
|
|
28
|
+
function y(e) {
|
|
29
|
+
Object.assign(e, {
|
|
30
|
+
alpha(t, n) {
|
|
31
|
+
let r = this || e;
|
|
32
|
+
return r.colorSpace ? `oklch(from ${t} l c h / ${typeof n == "string" ? `calc(${n})` : n})` : r.vars ? `rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g, "var(--$1Channel)")} / ${typeof n == "string" ? `calc(${n})` : n})` : o(t, v(n));
|
|
33
|
+
},
|
|
34
|
+
lighten(t, n) {
|
|
35
|
+
let r = this || e;
|
|
36
|
+
return r.colorSpace ? `color-mix(in ${r.colorSpace}, ${t}, #fff ${_(n)})` : c(t, n);
|
|
37
|
+
},
|
|
38
|
+
darken(t, n) {
|
|
39
|
+
let r = this || e;
|
|
40
|
+
return r.colorSpace ? `color-mix(in ${r.colorSpace}, ${t}, #000 ${_(n)})` : s(t, n);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function b(o = {}, ...s) {
|
|
45
|
+
let { breakpoints: c, mixins: _ = {}, spacing: v, palette: b = {}, motion: x = {}, transitions: S = {}, typography: C = {}, shape: w, colorSpace: T, ...E } = o;
|
|
46
|
+
if (o.vars && o.generateThemeVars === void 0) throw Error(process.env.NODE_ENV === "production" ? e(22) : "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.");
|
|
47
|
+
let D = l({
|
|
48
|
+
...b,
|
|
49
|
+
colorSpace: T
|
|
50
|
+
}), O = i(o), k = t(O, {
|
|
51
|
+
mixins: u(O.breakpoints, _),
|
|
52
|
+
palette: D,
|
|
53
|
+
shadows: f.slice(),
|
|
54
|
+
typography: d(D, C),
|
|
55
|
+
motion: m(x),
|
|
56
|
+
transitions: p(S),
|
|
57
|
+
zIndex: { ...h }
|
|
58
|
+
});
|
|
59
|
+
if (k = t(k, E), k = s.reduce((e, n) => t(e, n), k), delete k.transitions.reducedMotion, process.env.NODE_ENV !== "production") {
|
|
60
|
+
let e = [
|
|
61
|
+
"active",
|
|
62
|
+
"checked",
|
|
63
|
+
"completed",
|
|
64
|
+
"disabled",
|
|
65
|
+
"error",
|
|
66
|
+
"expanded",
|
|
67
|
+
"focused",
|
|
68
|
+
"focusVisible",
|
|
69
|
+
"required",
|
|
70
|
+
"selected"
|
|
71
|
+
], t = (t, n) => {
|
|
72
|
+
let r;
|
|
73
|
+
for (r in t) {
|
|
74
|
+
let i = t[r];
|
|
75
|
+
if (e.includes(r) && Object.keys(i).length > 0) {
|
|
76
|
+
if (process.env.NODE_ENV !== "production") {
|
|
77
|
+
let e = a("", r);
|
|
78
|
+
console.error([
|
|
79
|
+
`MUI: The \`${n}\` component increases the CSS specificity of the \`${r}\` internal state.`,
|
|
80
|
+
"You can not override it like this: ",
|
|
81
|
+
JSON.stringify(t, null, 2),
|
|
82
|
+
"",
|
|
83
|
+
`Instead, you need to use the '&.${e}' syntax:`,
|
|
84
|
+
JSON.stringify({ root: { [`&.${e}`]: i } }, null, 2),
|
|
85
|
+
"",
|
|
86
|
+
"https://mui.com/r/state-classes-guide"
|
|
87
|
+
].join("\n"));
|
|
88
|
+
}
|
|
89
|
+
t[r] = {};
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
Object.keys(k.components).forEach((e) => {
|
|
94
|
+
let n = k.components[e].styleOverrides;
|
|
95
|
+
n && e.startsWith("Mui") && t(n, e);
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
return k.unstable_sxConfig = {
|
|
99
|
+
...n,
|
|
100
|
+
...E?.unstable_sxConfig
|
|
101
|
+
}, k.unstable_sx = function(e) {
|
|
102
|
+
return r({
|
|
103
|
+
sx: e,
|
|
104
|
+
theme: this
|
|
105
|
+
});
|
|
106
|
+
}, k.toRuntimeSource = g, y(k), k;
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
export { b as default };
|
|
110
|
+
|
|
111
|
+
//# sourceMappingURL=index96.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index96.js","names":["systemAlpha","systemLighten","systemDarken","_formatErrorMessage","systemCreateTheme","styleFunctionSx"],"sources":["../node_modules/@mui/material/styles/createThemeNoVars.mjs"],"sourcesContent":["import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport deepmerge from '@mui/utils/deepmerge';\nimport styleFunctionSx, { unstable_defaultSxConfig as defaultSxConfig } from '@mui/system/styleFunctionSx';\nimport systemCreateTheme from '@mui/system/createTheme';\nimport { alpha as systemAlpha, lighten as systemLighten, darken as systemDarken } from '@mui/system/colorManipulator';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport createMixins from \"./createMixins.mjs\";\nimport createPalette from \"./createPalette.mjs\";\nimport createTypography from \"./createTypography.mjs\";\nimport shadows from \"./shadows.mjs\";\nimport createTransitions from \"./createTransitions.mjs\";\nimport createMotion from \"./createMotion.mjs\";\nimport zIndex from \"./zIndex.mjs\";\nimport { stringifyTheme } from \"./stringifyTheme.mjs\";\nfunction coefficientToPercentage(coefficient) {\n if (typeof coefficient === 'number') {\n return `${(coefficient * 100).toFixed(0)}%`;\n }\n return `calc((${coefficient}) * 100%)`;\n}\n\n// This can be removed when moved to `color-mix()` entirely.\nconst parseAddition = str => {\n if (!Number.isNaN(+str)) {\n return +str;\n }\n const numbers = str.match(/\\d*\\.?\\d+/g);\n if (!numbers) {\n return 0;\n }\n let sum = 0;\n for (let i = 0; i < numbers.length; i += 1) {\n sum += +numbers[i];\n }\n return sum;\n};\nfunction attachColorManipulators(theme) {\n Object.assign(theme, {\n alpha(color, coefficient) {\n const obj = this || theme;\n if (obj.colorSpace) {\n return `oklch(from ${color} l c h / ${typeof coefficient === 'string' ? `calc(${coefficient})` : coefficient})`;\n }\n if (obj.vars) {\n // To preserve the behavior of the CSS theme variables\n // In the future, this could be replaced by `color-mix` (when https://caniuse.com/?search=color-mix reaches 95%).\n return `rgba(${color.replace(/var\\(--([^,\\s)]+)(?:,[^)]+)?\\)+/g, 'var(--$1Channel)')} / ${typeof coefficient === 'string' ? `calc(${coefficient})` : coefficient})`;\n }\n return systemAlpha(color, parseAddition(coefficient));\n },\n lighten(color, coefficient) {\n const obj = this || theme;\n if (obj.colorSpace) {\n return `color-mix(in ${obj.colorSpace}, ${color}, #fff ${coefficientToPercentage(coefficient)})`;\n }\n return systemLighten(color, coefficient);\n },\n darken(color, coefficient) {\n const obj = this || theme;\n if (obj.colorSpace) {\n return `color-mix(in ${obj.colorSpace}, ${color}, #000 ${coefficientToPercentage(coefficient)})`;\n }\n return systemDarken(color, coefficient);\n }\n });\n}\nfunction createThemeNoVars(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput,\n mixins: mixinsInput = {},\n spacing: spacingInput,\n palette: paletteInput = {},\n motion: motionInput = {},\n transitions: transitionsInput = {},\n typography: typographyInput = {},\n shape: shapeInput,\n colorSpace,\n ...other\n } = options;\n if (options.vars &&\n // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.\n // `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.\n options.generateThemeVars === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI: `vars` is a private field used for CSS variables support.\\n' +\n // #host-reference\n 'Please use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.' : _formatErrorMessage(22));\n }\n const palette = createPalette({\n ...paletteInput,\n colorSpace\n });\n const systemTheme = systemCreateTheme(options);\n let muiTheme = deepmerge(systemTheme, {\n mixins: createMixins(systemTheme.breakpoints, mixinsInput),\n palette,\n // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.\n shadows: shadows.slice(),\n typography: createTypography(palette, typographyInput),\n motion: createMotion(motionInput),\n transitions: createTransitions(transitionsInput),\n zIndex: {\n ...zIndex\n }\n });\n muiTheme = deepmerge(muiTheme, other);\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n // `reducedMotion` is owned by `theme.motion`; remove stale values preserved by systemCreateTheme.\n delete muiTheme.transitions.reducedMotion;\n if (process.env.NODE_ENV !== 'production') {\n // TODO v6: Refactor to use globalStateClassesMapping from @mui/utils once `readOnly` state class is used in Rating component.\n const stateClasses = ['active', 'checked', 'completed', 'disabled', 'error', 'expanded', 'focused', 'focusVisible', 'required', 'selected'];\n const traverse = (node, component) => {\n let key;\n\n // eslint-disable-next-line guard-for-in\n for (key in node) {\n const child = node[key];\n if (stateClasses.includes(key) && Object.keys(child).length > 0) {\n if (process.env.NODE_ENV !== 'production') {\n const stateClass = generateUtilityClass('', key);\n console.error([`MUI: The \\`${component}\\` component increases ` + `the CSS specificity of the \\`${key}\\` internal state.`, 'You can not override it like this: ', JSON.stringify(node, null, 2), '', `Instead, you need to use the '&.${stateClass}' syntax:`, JSON.stringify({\n root: {\n [`&.${stateClass}`]: child\n }\n }, null, 2), '', 'https://mui.com/r/state-classes-guide'].join('\\n'));\n }\n // Remove the style to prevent global conflicts.\n node[key] = {};\n }\n }\n };\n Object.keys(muiTheme.components).forEach(component => {\n const styleOverrides = muiTheme.components[component].styleOverrides;\n if (styleOverrides && component.startsWith('Mui')) {\n traverse(styleOverrides, component);\n }\n });\n }\n muiTheme.unstable_sxConfig = {\n ...defaultSxConfig,\n ...other?.unstable_sxConfig\n };\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n muiTheme.toRuntimeSource = stringifyTheme; // for Pigment CSS integration\n\n attachColorManipulators(muiTheme);\n return muiTheme;\n}\nexport default createThemeNoVars;"],"x_google_ignoreList":[0],"mappings":"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"}
|
package/dist/index97.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/@mui/material/styles/getOverlayAlpha.mjs
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t;
|
|
4
|
+
return t = e < 1 ? 5.11916 * e ** 2 : 4.5 * Math.log(e + 1) + 2, Math.round(t * 10) / 1e3;
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as default };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=index97.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index97.js","names":[],"sources":["../node_modules/@mui/material/styles/getOverlayAlpha.mjs"],"sourcesContent":["// Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61\nexport default function getOverlayAlpha(elevation) {\n let alphaValue;\n if (elevation < 1) {\n alphaValue = 5.11916 * elevation ** 2;\n } else {\n alphaValue = 4.5 * Math.log(elevation + 1) + 2;\n }\n return Math.round(alphaValue * 10) / 1000;\n}"],"x_google_ignoreList":[0],"mappings":";AACA,SAAwB,EAAgB,GAAW;CACjD,IAAI;CAMJ,OALA,AAGE,IAHE,IAAY,IACD,UAAU,KAAa,IAEvB,MAAM,KAAK,IAAI,IAAY,CAAC,IAAI,GAExC,KAAK,MAAM,IAAa,EAAE,IAAI;AACvC"}
|
package/dist/index98.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import e from "./index87.js";
|
|
2
|
+
import t from "./index97.js";
|
|
3
|
+
//#region node_modules/@mui/material/styles/createColorScheme.mjs
|
|
4
|
+
var n = [...Array(25)].map((e, n) => {
|
|
5
|
+
if (n === 0) return "none";
|
|
6
|
+
let r = t(n);
|
|
7
|
+
return `linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`;
|
|
8
|
+
});
|
|
9
|
+
function r(e) {
|
|
10
|
+
return {
|
|
11
|
+
inputPlaceholder: e === "dark" ? .5 : .42,
|
|
12
|
+
inputUnderline: e === "dark" ? .7 : .42,
|
|
13
|
+
switchTrackDisabled: e === "dark" ? .2 : .12,
|
|
14
|
+
switchTrack: e === "dark" ? .3 : .38
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function i(e) {
|
|
18
|
+
return e === "dark" ? n : [];
|
|
19
|
+
}
|
|
20
|
+
function a(t) {
|
|
21
|
+
let { palette: n = { mode: "light" }, opacity: a, overlays: o, colorSpace: s, ...c } = t, l = e({
|
|
22
|
+
...n,
|
|
23
|
+
colorSpace: s
|
|
24
|
+
});
|
|
25
|
+
return {
|
|
26
|
+
palette: l,
|
|
27
|
+
opacity: {
|
|
28
|
+
...r(l.mode),
|
|
29
|
+
...a
|
|
30
|
+
},
|
|
31
|
+
overlays: o || i(l.mode),
|
|
32
|
+
...c
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { a as default, r as getOpacity, i as getOverlays };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=index98.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index98.js","names":[],"sources":["../node_modules/@mui/material/styles/createColorScheme.mjs"],"sourcesContent":["import createPalette from \"./createPalette.mjs\";\nimport getOverlayAlpha from \"./getOverlayAlpha.mjs\";\nconst defaultDarkOverlays = [...Array(25)].map((_, index) => {\n if (index === 0) {\n return 'none';\n }\n const overlay = getOverlayAlpha(index);\n return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;\n});\nexport function getOpacity(mode) {\n return {\n inputPlaceholder: mode === 'dark' ? 0.5 : 0.42,\n inputUnderline: mode === 'dark' ? 0.7 : 0.42,\n switchTrackDisabled: mode === 'dark' ? 0.2 : 0.12,\n switchTrack: mode === 'dark' ? 0.3 : 0.38\n };\n}\nexport function getOverlays(mode) {\n return mode === 'dark' ? defaultDarkOverlays : [];\n}\nexport default function createColorScheme(options) {\n const {\n palette: paletteInput = {\n mode: 'light'\n },\n // need to cast to avoid module augmentation test\n opacity,\n overlays,\n colorSpace,\n ...other\n } = options;\n // need to cast because `colorSpace` is considered internal at the moment.\n const palette = createPalette({\n ...paletteInput,\n colorSpace\n });\n return {\n palette,\n opacity: {\n ...getOpacity(palette.mode),\n ...opacity\n },\n overlays: overlays || getOverlays(palette.mode),\n ...other\n };\n}"],"x_google_ignoreList":[0],"mappings":";;;AAEA,IAAM,IAAsB,CAAC,GAAG,MAAM,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,MAAU;CAC3D,IAAI,MAAU,GACZ,OAAO;CAET,IAAM,IAAU,EAAgB,CAAK;CACrC,OAAO,sCAAsC,EAAQ,wBAAwB,EAAQ;AACvF,CAAC;AACD,SAAgB,EAAW,GAAM;CAC/B,OAAO;EACL,kBAAkB,MAAS,SAAS,KAAM;EAC1C,gBAAgB,MAAS,SAAS,KAAM;EACxC,qBAAqB,MAAS,SAAS,KAAM;EAC7C,aAAa,MAAS,SAAS,KAAM;CACvC;AACF;AACA,SAAgB,EAAY,GAAM;CAChC,OAAO,MAAS,SAAS,IAAsB,CAAC;AAClD;AACA,SAAwB,EAAkB,GAAS;CACjD,IAAM,EACJ,SAAS,IAAe,EACtB,MAAM,QACR,GAEA,YACA,aACA,eACA,GAAG,MACD,GAEE,IAAU,EAAc;EAC5B,GAAG;EACH;CACF,CAAC;CACD,OAAO;EACL;EACA,SAAS;GACP,GAAG,EAAW,EAAQ,IAAI;GAC1B,GAAG;EACL;EACA,UAAU,KAAY,EAAY,EAAQ,IAAI;EAC9C,GAAG;CACL;AACF"}
|
package/dist/index99.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region node_modules/@mui/material/styles/shouldSkipGeneratingVar.mjs
|
|
2
|
+
function e(e) {
|
|
3
|
+
return e[0] === "motion" || !!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || e[0] === "palette" && !!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
|
|
4
|
+
}
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as default };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=index99.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index99.js","names":[],"sources":["../node_modules/@mui/material/styles/shouldSkipGeneratingVar.mjs"],"sourcesContent":["export default function shouldSkipGeneratingVar(keys) {\n return keys[0] === 'motion' || !!keys[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||\n // ends with sxConfig\n keys[0] === 'palette' && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/);\n}"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAwB,EAAwB,GAAM;CACpD,OAAO,EAAK,OAAO,YAAY,CAAC,CAAC,EAAK,EAAE,CAAC,MAAM,sHAAsH,KAAK,CAAC,CAAC,EAAK,EAAE,CAAC,MAAM,WAAW,KAErM,EAAK,OAAO,aAAa,CAAC,CAAC,EAAK,EAAE,EAAE,MAAM,sCAAsC;AAClF"}
|
package/package.json
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@citizenplatform/core",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=22",
|
|
8
|
+
"npm": ">=10"
|
|
9
|
+
},
|
|
10
|
+
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"module": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
|
|
19
|
+
"scripts": {
|
|
20
|
+
"dev": "vite build --watch",
|
|
21
|
+
"build": "tsc -b && vite build",
|
|
22
|
+
"lint": "eslint .",
|
|
23
|
+
"test": "vitest",
|
|
24
|
+
"typecheck": "tsc --noEmit"
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"axios": "^1.15.1",
|
|
29
|
+
"dayjs": "^1.11.20",
|
|
30
|
+
"i18next": "^26.0.6",
|
|
31
|
+
"i18next-browser-languagedetector": "^8.2.1",
|
|
32
|
+
"i18next-http-backend": "^4.0.0",
|
|
33
|
+
"react-i18next": "^17.0.6",
|
|
34
|
+
"uuid": "^14.0.0"
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"react": "^19.2.4",
|
|
39
|
+
"react-dom": "^19.2.4",
|
|
40
|
+
|
|
41
|
+
"@emotion/react": "^11.14.0",
|
|
42
|
+
"@emotion/styled": "^11.14.1",
|
|
43
|
+
|
|
44
|
+
"@mui/material": "^9.2.0",
|
|
45
|
+
"@mui/icons-material": "^9.2.0",
|
|
46
|
+
"@mui/system": "^9.0.0",
|
|
47
|
+
"@mui/x-data-grid": "^9.1.0",
|
|
48
|
+
"@mui/x-date-pickers": "^9.2.0",
|
|
49
|
+
|
|
50
|
+
"@reduxjs/toolkit": "^2.11.2",
|
|
51
|
+
"react-redux": "^9.2.0",
|
|
52
|
+
|
|
53
|
+
"react-router-dom": "^7.14.1"
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@eslint/js": "^9.39.4",
|
|
58
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
59
|
+
"@testing-library/react": "^16.3.2",
|
|
60
|
+
|
|
61
|
+
"@types/jest": "^30.0.0",
|
|
62
|
+
"@types/node": "^24.12.2",
|
|
63
|
+
"@types/react": "^19.2.14",
|
|
64
|
+
"@types/react-dom": "^19.2.3",
|
|
65
|
+
|
|
66
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
67
|
+
|
|
68
|
+
"eslint": "^9.39.4",
|
|
69
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
70
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
71
|
+
|
|
72
|
+
"globals": "^17.4.0",
|
|
73
|
+
|
|
74
|
+
"jsdom": "^29.1.0",
|
|
75
|
+
|
|
76
|
+
"path": "^0.12.7",
|
|
77
|
+
|
|
78
|
+
"typescript": "5.9.3",
|
|
79
|
+
"typescript-eslint": "^8.58.0",
|
|
80
|
+
|
|
81
|
+
"vite": "^8.0.4",
|
|
82
|
+
"vitest": "^4.1.5"
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
"overrides": {
|
|
86
|
+
"typescript": "5.9.3"
|
|
87
|
+
}
|
|
88
|
+
}
|