@max-ts/components 0.2.4 → 0.3.1

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.
Files changed (141) hide show
  1. package/lib/components/Accordion/styles.d.ts +2 -2
  2. package/lib/components/Accordion/styles.mjs +19 -10
  3. package/lib/components/ActionCell/MainAction/MainAction.d.ts +1 -4
  4. package/lib/components/ActionCell/MainAction/MainAction.mjs +110 -44
  5. package/lib/components/ActionCell/SecondaryAction/SecondaryActions.d.ts +0 -3
  6. package/lib/components/ActionCell/styles.mjs +12 -3
  7. package/lib/components/ActionGroup/ActionGroup.d.ts +23 -0
  8. package/lib/components/ActionGroup/ActionGroup.mjs +17 -0
  9. package/lib/components/ActionGroup/MainActions/MainActions.d.ts +65 -0
  10. package/lib/components/ActionGroup/MainActions/MainActions.mjs +129 -0
  11. package/lib/components/ActionGroup/MainActions/index.d.ts +1 -0
  12. package/lib/components/ActionGroup/MainActions/styles.d.ts +13 -0
  13. package/lib/components/ActionGroup/MainActions/styles.mjs +17 -0
  14. package/lib/components/ActionGroup/SecondaryActions/SecondaryActions.d.ts +21 -0
  15. package/lib/components/ActionGroup/SecondaryActions/SecondaryActions.mjs +97 -0
  16. package/lib/components/ActionGroup/SecondaryActions/index.d.ts +1 -0
  17. package/lib/components/ActionGroup/SecondaryVisibleActions/SecondaryVisibleActions.d.ts +19 -0
  18. package/lib/components/ActionGroup/SecondaryVisibleActions/SecondaryVisibleActions.mjs +103 -0
  19. package/lib/components/ActionGroup/SecondaryVisibleActions/index.d.ts +1 -0
  20. package/lib/components/ActionGroup/SecondaryVisibleActions/styles.d.ts +9 -0
  21. package/lib/components/ActionGroup/index.d.ts +1 -0
  22. package/lib/components/ActionGroup/styles.d.ts +1 -0
  23. package/lib/components/ActionGroup/styles.mjs +17 -0
  24. package/lib/components/ActionGroup/useLogic/index.d.ts +1 -0
  25. package/lib/components/ActionGroup/useLogic/useLogic.d.ts +7 -0
  26. package/lib/components/ActionGroup/useLogic/useLogic.mjs +9 -0
  27. package/lib/components/Autocomplete/styles.mjs +13 -4
  28. package/lib/components/Badge/styles.d.ts +1 -1
  29. package/lib/components/BottomDrawer/styles.d.ts +3 -3
  30. package/lib/components/Breadcrumbs/index.d.ts +1 -0
  31. package/lib/components/Button/Button.mjs +17 -17
  32. package/lib/components/Button/constants.d.ts +1 -1
  33. package/lib/components/Button/constants.mjs +2 -2
  34. package/lib/components/Button/styles.d.ts +1 -1
  35. package/lib/components/ButtonBase/ButtonBase.d.ts +1 -0
  36. package/lib/components/ButtonBase/index.d.ts +1 -0
  37. package/lib/components/ButtonGroup/index.d.ts +1 -0
  38. package/lib/components/Card/index.d.ts +1 -0
  39. package/lib/components/CardActions/index.d.ts +1 -0
  40. package/lib/components/CardContent/index.d.ts +1 -0
  41. package/lib/components/CardHeader/index.d.ts +1 -0
  42. package/lib/components/CheckboxField/styles.mjs +13 -4
  43. package/lib/components/Chevron/styles.mjs +13 -4
  44. package/lib/components/ConfirmAction/styles.d.ts +2 -2
  45. package/lib/components/ConfirmAction/styles.mjs +15 -6
  46. package/lib/components/ConfirmDialog/styles.mjs +7 -2
  47. package/lib/components/ConfirmDialog/useLogic/useLogic.d.ts +1 -1
  48. package/lib/components/Container/styles.d.ts +1 -0
  49. package/lib/components/Container/styles.mjs +16 -13
  50. package/lib/components/ContentState/styles.mjs +11 -2
  51. package/lib/components/CopyTypography/styles.d.ts +2 -2
  52. package/lib/components/CopyTypography/styles.mjs +15 -6
  53. package/lib/components/DataGrid/Body/styles.mjs +11 -2
  54. package/lib/components/DataGrid/Cell/styles.mjs +15 -6
  55. package/lib/components/DataGrid/Head/styles.mjs +19 -10
  56. package/lib/components/DataGrid/HeadCell/styles.d.ts +2 -2
  57. package/lib/components/DataGrid/HeadCell/styles.mjs +16 -7
  58. package/lib/components/DataGrid/Row/styles.mjs +18 -9
  59. package/lib/components/DataGrid/styles.mjs +19 -10
  60. package/lib/components/DataGridActionCell/styles.mjs +12 -3
  61. package/lib/components/DataGridOld/Cell/styles.d.ts +1 -1
  62. package/lib/components/DataGridOld/HeadCell/styles.d.ts +1 -1
  63. package/lib/components/DataGridPagination/styles.d.ts +2 -2
  64. package/lib/components/DataGridPagination/styles.mjs +21 -12
  65. package/lib/components/Description/Name/styles.mjs +14 -5
  66. package/lib/components/Description/Value/styles.d.ts +10 -10
  67. package/lib/components/Description/Value/styles.mjs +81 -8
  68. package/lib/components/Description/Value/useLogic/useLogic.mjs +3 -3
  69. package/lib/components/Description/styles.mjs +11 -2
  70. package/lib/components/Description/useLogic/useLogic.d.ts +1 -1
  71. package/lib/components/DescriptionList/styles.mjs +18 -9
  72. package/lib/components/DescriptionTooltip/DescriptionTooltip.d.ts +9 -0
  73. package/lib/components/DescriptionTooltip/DescriptionTooltip.mjs +14 -0
  74. package/lib/components/DescriptionTooltip/index.d.ts +1 -0
  75. package/lib/components/DescriptionTooltip/styles.d.ts +4 -0
  76. package/lib/components/DescriptionTooltip/styles.mjs +26 -0
  77. package/lib/components/DialogContentText/styles.d.ts +1 -1
  78. package/lib/components/DialogHeader/styles.mjs +21 -12
  79. package/lib/components/Filename/styles.d.ts +2 -2
  80. package/lib/components/Filename/styles.mjs +15 -6
  81. package/lib/components/FormHelperText/FormHelperTextContent/styles.mjs +25 -16
  82. package/lib/components/FormLabel/styles.d.ts +1 -1
  83. package/lib/components/IconButton/styles.mjs +18 -13
  84. package/lib/components/Link/Link.d.ts +1 -1
  85. package/lib/components/Link/styles.d.ts +1 -1
  86. package/lib/components/ListItem/styles.d.ts +1 -1
  87. package/lib/components/MaskField/MaskField.d.ts +6 -0
  88. package/lib/components/MaskField/MaskField.mjs +10 -0
  89. package/lib/components/MaskField/index.d.ts +1 -0
  90. package/lib/components/MenuList/styles.d.ts +1 -1
  91. package/lib/components/NavMenu/Item/ItemButton/styles.d.ts +125 -125
  92. package/lib/components/OverflowTypography/styles.d.ts +4 -4
  93. package/lib/components/OverflowTypography/styles.mjs +14 -5
  94. package/lib/components/Placeholder/Image/styles.mjs +14 -5
  95. package/lib/components/Placeholder/styles.d.ts +4 -4
  96. package/lib/components/Placeholder/styles.mjs +30 -21
  97. package/lib/components/SearchField/styles.mjs +20 -11
  98. package/lib/components/Select/styles.d.ts +1 -1
  99. package/lib/components/Skeleton/styles.d.ts +1 -1
  100. package/lib/components/Skeleton/styles.mjs +7 -10
  101. package/lib/components/Slider/Slider.d.ts +2 -0
  102. package/lib/components/Slider/Slider.mjs +6 -0
  103. package/lib/components/Slider/index.d.ts +1 -0
  104. package/lib/components/Slider/styles.d.ts +1 -0
  105. package/lib/components/Slider/styles.mjs +39 -0
  106. package/lib/components/Tab/styles.d.ts +1 -1
  107. package/lib/components/Tabs/styles.mjs +14 -5
  108. package/lib/components/Tag/Tag.mjs +18 -15
  109. package/lib/components/Tag/styles.d.ts +1 -1
  110. package/lib/components/TagBadge/styles.mjs +11 -2
  111. package/lib/components/TagsList/Tag/styles.d.ts +1 -1
  112. package/lib/components/TagsList/Tag/styles.mjs +11 -2
  113. package/lib/components/TagsList/styles.mjs +11 -2
  114. package/lib/components/ThemeProvider/ThemeProvider.d.ts +11 -0
  115. package/lib/components/ThemeProvider/ThemeProvider.mjs +9 -0
  116. package/lib/components/ThemeProvider/index.d.ts +1 -0
  117. package/lib/components/index.d.ts +12 -0
  118. package/lib/components.css +1 -0
  119. package/lib/icons/index.d.ts +1 -0
  120. package/lib/index.mjs +221 -198
  121. package/lib/node_modules/.pnpm/@react-input_core@2.0.2_@types_react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-input/core/module/Input.mjs +55 -0
  122. package/lib/node_modules/.pnpm/@react-input_core@2.0.2_@types_react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-input/core/module/SyntheticChangeError.mjs +11 -0
  123. package/lib/node_modules/.pnpm/@react-input_core@2.0.2_@types_react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-input/core/module/createProxy.mjs +8 -0
  124. package/lib/node_modules/.pnpm/@react-input_core@2.0.2_@types_react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-input/core/module/helpers-C8k3UfPS.mjs +129 -0
  125. package/lib/node_modules/.pnpm/@react-input_mask@2.0.4_@types_react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-input/mask/module/Mask.mjs +90 -0
  126. package/lib/node_modules/.pnpm/@react-input_mask@2.0.4_@types_react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-input/mask/module/helpers-BtaZ0NTN.mjs +226 -0
  127. package/lib/node_modules/.pnpm/@react-input_mask@2.0.4_@types_react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-input/mask/module/useMask.mjs +12 -0
  128. package/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.mjs +9 -9
  129. package/lib/theme/baseTheme/baseTheme.d.ts +1 -3
  130. package/lib/theme/baseTheme/baseTheme.mjs +21 -21
  131. package/lib/theme/components/MuiButton.mjs +5 -5
  132. package/lib/theme/components/MuiSwitch.mjs +1 -1
  133. package/lib/theme/components/components.d.ts +1 -19
  134. package/lib/theme/components/components.mjs +71 -108
  135. package/lib/theme/index.d.ts +1 -1
  136. package/lib/theme/palette/palette.mjs +20 -20
  137. package/lib/theme/typography.mjs +6 -2
  138. package/package.json +3 -1
  139. package/lib/theme/hooks/index.d.ts +0 -1
  140. package/lib/theme/hooks/useTheme/index.d.ts +0 -2
  141. package/lib/theme/hooks/useTheme/index.mjs +0 -5
@@ -0,0 +1,129 @@
1
+ function v(r, e, t) {
2
+ return e = a(e), function(n, o) {
3
+ if (o && (typeof o == "object" || typeof o == "function")) return o;
4
+ if (o !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
5
+ return function(u) {
6
+ if (u === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
7
+ return u;
8
+ }(n);
9
+ }(r, s() ? Reflect.construct(e, t || [], a(r).constructor) : e.apply(r, t));
10
+ }
11
+ function w(r, e) {
12
+ if (!(r instanceof e)) throw new TypeError("Cannot call a class as a function");
13
+ }
14
+ function j(r, e, t) {
15
+ return Object.defineProperty(r, "prototype", { writable: !1 }), r;
16
+ }
17
+ function O(r, e, t) {
18
+ return (e = function(n) {
19
+ var o = function(u, i) {
20
+ if (typeof u != "object" || !u) return u;
21
+ var c = u[Symbol.toPrimitive];
22
+ if (c !== void 0) {
23
+ var f = c.call(u, i);
24
+ if (typeof f != "object") return f;
25
+ throw new TypeError("@@toPrimitive must return a primitive value.");
26
+ }
27
+ return (i === "string" ? String : Number)(u);
28
+ }(n, "string");
29
+ return typeof o == "symbol" ? o : o + "";
30
+ }(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
31
+ }
32
+ function a(r) {
33
+ return a = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
34
+ return e.__proto__ || Object.getPrototypeOf(e);
35
+ }, a(r);
36
+ }
37
+ function g(r, e) {
38
+ if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
39
+ r.prototype = Object.create(e && e.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), Object.defineProperty(r, "prototype", { writable: !1 }), e && p(r, e);
40
+ }
41
+ function s() {
42
+ try {
43
+ var r = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
44
+ }));
45
+ } catch {
46
+ }
47
+ return (s = function() {
48
+ return !!r;
49
+ })();
50
+ }
51
+ function y(r, e) {
52
+ var t = Object.keys(r);
53
+ if (Object.getOwnPropertySymbols) {
54
+ var n = Object.getOwnPropertySymbols(r);
55
+ e && (n = n.filter(function(o) {
56
+ return Object.getOwnPropertyDescriptor(r, o).enumerable;
57
+ })), t.push.apply(t, n);
58
+ }
59
+ return t;
60
+ }
61
+ function d(r) {
62
+ for (var e = 1; e < arguments.length; e++) {
63
+ var t = arguments[e] != null ? arguments[e] : {};
64
+ e % 2 ? y(Object(t), !0).forEach(function(n) {
65
+ O(r, n, t[n]);
66
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : y(Object(t)).forEach(function(n) {
67
+ Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
68
+ });
69
+ }
70
+ return r;
71
+ }
72
+ function m(r, e) {
73
+ if (r == null) return {};
74
+ var t, n, o = function(i, c) {
75
+ if (i == null) return {};
76
+ var f = {};
77
+ for (var l in i) if ({}.hasOwnProperty.call(i, l)) {
78
+ if (c.includes(l)) continue;
79
+ f[l] = i[l];
80
+ }
81
+ return f;
82
+ }(r, e);
83
+ if (Object.getOwnPropertySymbols) {
84
+ var u = Object.getOwnPropertySymbols(r);
85
+ for (n = 0; n < u.length; n++) t = u[n], e.includes(t) || {}.propertyIsEnumerable.call(r, t) && (o[t] = r[t]);
86
+ }
87
+ return o;
88
+ }
89
+ function p(r, e) {
90
+ return p = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
91
+ return t.__proto__ = n, t;
92
+ }, p(r, e);
93
+ }
94
+ function b(r) {
95
+ var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
96
+ return b = function(t) {
97
+ if (t === null || !function(o) {
98
+ try {
99
+ return Function.toString.call(o).indexOf("[native code]") !== -1;
100
+ } catch {
101
+ return typeof o == "function";
102
+ }
103
+ }(t)) return t;
104
+ if (typeof t != "function") throw new TypeError("Super expression must either be null or a function");
105
+ if (e !== void 0) {
106
+ if (e.has(t)) return e.get(t);
107
+ e.set(t, n);
108
+ }
109
+ function n() {
110
+ return function(o, u, i) {
111
+ if (s()) return Reflect.construct.apply(null, arguments);
112
+ var c = [null];
113
+ c.push.apply(c, u);
114
+ var f = new (o.bind.apply(o, c))();
115
+ return i && p(f, i.prototype), f;
116
+ }(t, arguments, a(this).constructor);
117
+ }
118
+ return n.prototype = Object.create(t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), p(n, t);
119
+ }, b(r);
120
+ }
121
+ export {
122
+ j as a,
123
+ w as b,
124
+ d as c,
125
+ m as d,
126
+ g as e,
127
+ b as f,
128
+ v as g
129
+ };
@@ -0,0 +1,90 @@
1
+ import { e as te, d as re, h as ne, i as ie, f as le, a as oe, u as se, g as ue, j as Z, _ as ce, k as $, l as W, m as B, n as pe, c as de } from "./helpers-BtaZ0NTN.mjs";
2
+ import me from "../../../../../@react-input_core@2.0.2_@types_react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-input/core/module/Input.mjs";
3
+ import X from "../../../../../@react-input_core@2.0.2_@types_react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-input/core/module/SyntheticChangeError.mjs";
4
+ var D = function(i) {
5
+ return function() {
6
+ for (var l = arguments.length, n = new Array(l), t = 0; t < l; t++) n[t] = arguments[t];
7
+ return new i("".concat(n.join(`
8
+
9
+ `), `
10
+ `));
11
+ };
12
+ }, Y, he = ["track", "modify"];
13
+ function V(i) {
14
+ var l, n, t, e;
15
+ return { mask: (l = i.mask) !== null && l !== void 0 ? l : "", replacement: typeof i.replacement == "string" ? Z(i.replacement) : (n = i.replacement) !== null && n !== void 0 ? n : {}, showMask: (t = i.showMask) !== null && t !== void 0 && t, separate: (e = i.separate) !== null && e !== void 0 && e, track: i.track, modify: i.modify };
16
+ }
17
+ var ve = function(i) {
18
+ function l() {
19
+ var n, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
20
+ return ne(this, l), (n = ie(this, l, [{ init: function(e) {
21
+ var o = e.initialValue, M = e.controlled, h = V(t), r = h.mask, b = h.replacement, z = h.separate, C = h.showMask;
22
+ return o = M || o ? o : C ? r : "", process.env.NODE_ENV !== "production" && function(w) {
23
+ var d = w.initialValue, v = w.mask, p = w.replacement;
24
+ d.length > v.length && console.error(D(Error)("The initialized value of the `value` or `defaultValue` property is longer than the value specified in the `mask` property. Check the correctness of the initialized value in the specified property.", 'Invalid value: "'.concat(d, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
25
+ var s = Object.keys(p).filter(function(a) {
26
+ return a.length > 1;
27
+ });
28
+ s.length > 0 && console.error(D(Error)("Object keys in the `replacement` property are longer than one character. Replacement keys must be one character long. Check the correctness of the value in the specified property.", "Invalid keys: ".concat(s.join(", "), "."), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
29
+ for (var f = v.slice(0, d.length), u = -1, c = 0; c < f.length; c++) {
30
+ var g = Object.prototype.hasOwnProperty.call(p, f[c]);
31
+ if (!(f[c] === d[c] || g && p[f[c]].test(d[c]))) {
32
+ u = c;
33
+ break;
34
+ }
35
+ }
36
+ u !== -1 && console.error(D(Error)("An invalid character was found in the initialized property value `value` or `defaultValue` (index: ".concat(u, "). Check the correctness of the initialized value in the specified property."), 'Invalid value: "'.concat(d, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
37
+ }({ initialValue: o, mask: r, replacement: b }), { value: o, options: { mask: r, replacement: b, separate: z } };
38
+ }, tracking: function(e) {
39
+ var o = e.inputType, M = e.previousValue, h = e.previousOptions, r = e.addedValue, b = e.changeStart, z = e.changeEnd, C = V(t), w = C.track, d = C.modify, v = ce(C, he), p = v.mask, s = v.replacement, f = v.showMask, u = v.separate, c = $($({}, o === "insert" ? { inputType: o, data: r } : { inputType: o, data: null }), {}, { value: M, selectionStart: b, selectionEnd: z }), g = w?.(c);
40
+ if (g === !1) throw new X("Custom tracking stop.");
41
+ g === null ? r = "" : g !== !0 && g !== void 0 && (r = g);
42
+ var a = d?.(c);
43
+ a?.mask !== void 0 && (p = a.mask), a?.replacement !== void 0 && (s = typeof a?.replacement == "string" ? Z(a?.replacement) : a.replacement), a?.showMask !== void 0 && (f = a.showMask), a?.separate !== void 0 && (u = a.separate);
44
+ var O = W(M, $({ end: b }, h)), m = W(M, $({ start: z }, h)), F = RegExp("[^".concat(Object.keys(s).join(""), "]"), "g"), k = p.replace(F, "");
45
+ if (O && (O = B(O, { replacementChars: k, replacement: s, separate: u }), k = k.slice(O.length)), r && (r = B(r, { replacementChars: k, replacement: s, separate: !1 }), k = k.slice(r.length)), o === "insert" && r === "") throw new X("The character does not match the key value of the `replacement` object.");
46
+ if (u) {
47
+ var q = p.slice(b, z).replace(F, ""), E = q.length - r.length;
48
+ E < 0 ? m = m.slice(-E) : E > 0 && (m = q.slice(-E) + m);
49
+ }
50
+ m && (m = B(m, { replacementChars: k, replacement: s, separate: u }));
51
+ var G = pe(O + r + m, { mask: p, replacement: s, separate: u, showMask: f }), H = function(y) {
52
+ var x, P, S, A = y.inputType, I = y.value, J = y.addedValue, N = y.beforeChangeValue, ee = y.mask, K = y.replacement, ae = y.separate, R = de(I, { mask: ee, replacement: K }).filter(function(_) {
53
+ var U = _.type;
54
+ return U === "input" || ae && U === "replacement";
55
+ }), L = (x = R[N.length + J.length - 1]) === null || x === void 0 ? void 0 : x.index, j = (P = R[N.length - 1]) === null || P === void 0 ? void 0 : P.index, T = (S = R[N.length + J.length]) === null || S === void 0 ? void 0 : S.index;
56
+ if (A === "insert") {
57
+ if (L !== void 0) return L + 1;
58
+ if (T !== void 0) return T;
59
+ if (j !== void 0) return j + 1;
60
+ }
61
+ if (A === "deleteForward") {
62
+ if (T !== void 0) return T;
63
+ if (j !== void 0) return j + 1;
64
+ }
65
+ if (A === "deleteBackward") {
66
+ if (j !== void 0) return j + 1;
67
+ if (T !== void 0) return T;
68
+ }
69
+ var Q = I.split("").findIndex(function(_) {
70
+ return Object.prototype.hasOwnProperty.call(K, _);
71
+ });
72
+ return Q !== -1 ? Q : I.length;
73
+ }({ inputType: o, value: G, addedValue: r, beforeChangeValue: O, mask: p, replacement: s, separate: u });
74
+ return { value: G, selectionStart: H, selectionEnd: H, options: { mask: p, replacement: s, separate: u } };
75
+ } }])).format = function(e) {
76
+ return le(e, V(t));
77
+ }, n.formatToParts = function(e) {
78
+ return oe(e, V(t));
79
+ }, n.unformat = function(e) {
80
+ return se(e, V(t));
81
+ }, n.generatePattern = function(e) {
82
+ return ue(e, V(t));
83
+ }, n;
84
+ }
85
+ return re(l, me), te(l);
86
+ }();
87
+ Y = ve, Object.defineProperty(Y.prototype, Symbol.toStringTag, { writable: !1, enumerable: !1, configurable: !0, value: "Mask" });
88
+ export {
89
+ ve as default
90
+ };
@@ -0,0 +1,226 @@
1
+ function v(e, r) {
2
+ (r == null || r > e.length) && (r = e.length);
3
+ for (var t = 0, n = Array(r); t < r; t++) n[t] = e[t];
4
+ return n;
5
+ }
6
+ function x(e, r, t) {
7
+ return r = y(r), function(n, a) {
8
+ if (a && (typeof a == "object" || typeof a == "function")) return a;
9
+ if (a !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
10
+ return function(c) {
11
+ if (c === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
12
+ return c;
13
+ }(n);
14
+ }(e, j() ? Reflect.construct(r, t || [], y(e).constructor) : r.apply(e, t));
15
+ }
16
+ function A(e, r) {
17
+ if (!(e instanceof r)) throw new TypeError("Cannot call a class as a function");
18
+ }
19
+ function C(e, r, t) {
20
+ return Object.defineProperty(e, "prototype", { writable: !1 }), e;
21
+ }
22
+ function g(e, r) {
23
+ var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
24
+ if (!t) {
25
+ if (Array.isArray(e) || (t = function(o, l) {
26
+ if (o) {
27
+ if (typeof o == "string") return v(o, l);
28
+ var f = {}.toString.call(o).slice(8, -1);
29
+ return f === "Object" && o.constructor && (f = o.constructor.name), f === "Map" || f === "Set" ? Array.from(o) : f === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f) ? v(o, l) : void 0;
30
+ }
31
+ }(e)) || r) {
32
+ t && (e = t);
33
+ var n = 0, a = function() {
34
+ };
35
+ return { s: a, n: function() {
36
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
37
+ }, e: function(o) {
38
+ throw o;
39
+ }, f: a };
40
+ }
41
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
42
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
43
+ }
44
+ var c, i = !0, u = !1;
45
+ return { s: function() {
46
+ t = t.call(e);
47
+ }, n: function() {
48
+ var o = t.next();
49
+ return i = o.done, o;
50
+ }, e: function(o) {
51
+ u = !0, c = o;
52
+ }, f: function() {
53
+ try {
54
+ i || t.return == null || t.return();
55
+ } finally {
56
+ if (u) throw c;
57
+ }
58
+ } };
59
+ }
60
+ function d(e, r, t) {
61
+ return (r = function(n) {
62
+ var a = function(c, i) {
63
+ if (typeof c != "object" || !c) return c;
64
+ var u = c[Symbol.toPrimitive];
65
+ if (u !== void 0) {
66
+ var o = u.call(c, i);
67
+ if (typeof o != "object") return o;
68
+ throw new TypeError("@@toPrimitive must return a primitive value.");
69
+ }
70
+ return (i === "string" ? String : Number)(c);
71
+ }(n, "string");
72
+ return typeof a == "symbol" ? a : a + "";
73
+ }(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
74
+ }
75
+ function y(e) {
76
+ return y = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
77
+ return r.__proto__ || Object.getPrototypeOf(r);
78
+ }, y(e);
79
+ }
80
+ function D(e, r) {
81
+ if (typeof r != "function" && r !== null) throw new TypeError("Super expression must either be null or a function");
82
+ e.prototype = Object.create(r && r.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), r && m(e, r);
83
+ }
84
+ function j() {
85
+ try {
86
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
87
+ }));
88
+ } catch {
89
+ }
90
+ return (j = function() {
91
+ return !!e;
92
+ })();
93
+ }
94
+ function O(e, r) {
95
+ var t = Object.keys(e);
96
+ if (Object.getOwnPropertySymbols) {
97
+ var n = Object.getOwnPropertySymbols(e);
98
+ r && (n = n.filter(function(a) {
99
+ return Object.getOwnPropertyDescriptor(e, a).enumerable;
100
+ })), t.push.apply(t, n);
101
+ }
102
+ return t;
103
+ }
104
+ function R(e) {
105
+ for (var r = 1; r < arguments.length; r++) {
106
+ var t = arguments[r] != null ? arguments[r] : {};
107
+ r % 2 ? O(Object(t), !0).forEach(function(n) {
108
+ d(e, n, t[n]);
109
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : O(Object(t)).forEach(function(n) {
110
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
111
+ });
112
+ }
113
+ return e;
114
+ }
115
+ function T(e, r) {
116
+ if (e == null) return {};
117
+ var t, n, a = function(i, u) {
118
+ if (i == null) return {};
119
+ var o = {};
120
+ for (var l in i) if ({}.hasOwnProperty.call(i, l)) {
121
+ if (u.includes(l)) continue;
122
+ o[l] = i[l];
123
+ }
124
+ return o;
125
+ }(e, r);
126
+ if (Object.getOwnPropertySymbols) {
127
+ var c = Object.getOwnPropertySymbols(e);
128
+ for (n = 0; n < c.length; n++) t = c[n], r.includes(t) || {}.propertyIsEnumerable.call(e, t) && (a[t] = e[t]);
129
+ }
130
+ return a;
131
+ }
132
+ function m(e, r) {
133
+ return m = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
134
+ return t.__proto__ = n, t;
135
+ }, m(e, r);
136
+ }
137
+ function w(e, r) {
138
+ var t, n = r.replacementChars, a = r.replacement, c = r.separate, i = n, u = "", o = g(e);
139
+ try {
140
+ for (o.s(); !(t = o.n()).done; ) {
141
+ var l, f = t.value, s = !Object.prototype.hasOwnProperty.call(a, f) && ((l = a[i[0]]) === null || l === void 0 ? void 0 : l.test(f));
142
+ (c && f === i[0] || s) && (i = i.slice(1), u += f);
143
+ }
144
+ } catch (p) {
145
+ o.e(p);
146
+ } finally {
147
+ o.f();
148
+ }
149
+ return u;
150
+ }
151
+ function P(e, r) {
152
+ var t, n = r.mask, a = r.replacement, c = r.separate, i = r.showMask, u = 0, o = "", l = g(n);
153
+ try {
154
+ for (l.s(); !(t = l.n()).done; ) {
155
+ var f = t.value;
156
+ if (!i && e[u] === void 0) break;
157
+ Object.prototype.hasOwnProperty.call(a, f) && e[u] !== void 0 ? o += e[u++] : o += f;
158
+ }
159
+ } catch (p) {
160
+ l.e(p);
161
+ } finally {
162
+ l.f();
163
+ }
164
+ if (c && !i) {
165
+ for (var s = n.length - 1; s >= 0 && o[s] === n[s]; s--) ;
166
+ o = o.slice(0, s + 1);
167
+ }
168
+ return o;
169
+ }
170
+ function k(e, r) {
171
+ for (var t = r.mask, n = r.replacement, a = [], c = 0; c < t.length; c++) {
172
+ var i, u = (i = e[c]) !== null && i !== void 0 ? i : t[c], o = Object.prototype.hasOwnProperty.call(n, u) ? "replacement" : e[c] !== void 0 && e[c] !== t[c] ? "input" : "mask";
173
+ a.push({ type: o, value: u, index: c });
174
+ }
175
+ return a;
176
+ }
177
+ function b(e) {
178
+ return e.length > 0 ? d({}, e, /./) : {};
179
+ }
180
+ function S(e, r) {
181
+ for (var t = r.start, n = t === void 0 ? 0 : t, a = r.end, c = r.mask, i = r.replacement, u = r.separate, o = e.slice(n, a), l = c.slice(n, a), f = "", s = 0; s < l.length; s++) {
182
+ var p = Object.prototype.hasOwnProperty.call(i, l[s]);
183
+ p && o[s] !== void 0 && o[s] !== l[s] ? f += o[s] : p && u && (f += l[s]);
184
+ }
185
+ return f;
186
+ }
187
+ function E(e, r) {
188
+ var t = r.mask, n = r.replacement, a = typeof n == "string" ? b(n) : n, c = RegExp("[^".concat(Object.keys(a).join(""), "]"), "g");
189
+ return P(w(e, { replacementChars: t.replace(c, ""), replacement: a, separate: !1 }), { mask: t, replacement: a, separate: !1, showMask: !1 });
190
+ }
191
+ function I(e, r) {
192
+ var t = r.mask, n = r.replacement, a = typeof n == "string" ? b(n) : n, c = S(e, { mask: t, replacement: a, separate: !1 }), i = RegExp("[^".concat(Object.keys(a).join(""), "]"), "g");
193
+ return w(c, { replacementChars: t.replace(i, ""), replacement: a, separate: !1 });
194
+ }
195
+ function M(e, r) {
196
+ var t = r.mask, n = r.replacement, a = typeof n == "string" ? b(n) : n;
197
+ return k(E(e, { mask: t, replacement: a }), { mask: t, replacement: a });
198
+ }
199
+ var _ = ["[", "]", "\\", "/", "^", "$", ".", "|", "?", "*", "+", "(", ")", "{", "}"];
200
+ function h(e) {
201
+ return _.includes(e) ? "\\".concat(e) : e;
202
+ }
203
+ function $(e, r) {
204
+ for (var t = r.mask, n = r.replacement, a = typeof n == "string" ? b(n) : n, c = e === "partial" || e === "partial-inexact", i = e === "full" || e === "partial", u = "", o = 0; o < t.length; o++) {
205
+ var l = t[o];
206
+ o === 0 && (u = "^"), c && (u += "("), u += Object.prototype.hasOwnProperty.call(a, l) ? "".concat(i ? "(?!".concat(h(l), ")") : "", "(").concat(a[l].source, ")") : h(l), o === t.length - 1 && (c && (u += ")?".repeat(t.length)), u += "$");
207
+ }
208
+ return u;
209
+ }
210
+ export {
211
+ T as _,
212
+ M as a,
213
+ k as c,
214
+ D as d,
215
+ C as e,
216
+ E as f,
217
+ $ as g,
218
+ A as h,
219
+ x as i,
220
+ b as j,
221
+ R as k,
222
+ S as l,
223
+ w as m,
224
+ P as n,
225
+ I as u
226
+ };
@@ -0,0 +1,12 @@
1
+ import { useRef as o, useMemo as p } from "react";
2
+ import f from "./Mask.mjs";
3
+ import i from "../../../../../@react-input_core@2.0.2_@types_react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-input/core/module/createProxy.mjs";
4
+ function g() {
5
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mask, a = e.replacement, n = e.showMask, m = e.separate, s = e.track, u = e.modify, c = o(null), r = o({ mask: t, replacement: a, showMask: n, separate: m, track: s, modify: u });
6
+ return r.current.mask = t, r.current.replacement = a, r.current.showMask = n, r.current.separate = m, r.current.track = s, r.current.modify = u, p(function() {
7
+ return i(c, new f(r.current));
8
+ }, []);
9
+ }
10
+ export {
11
+ g as default
12
+ };
@@ -22,9 +22,9 @@ function he() {
22
22
  return "Fragment";
23
23
  case de:
24
24
  return "Portal";
25
- case H:
25
+ case K:
26
26
  return "Profiler";
27
- case G:
27
+ case H:
28
28
  return "StrictMode";
29
29
  case A:
30
30
  return "Suspense";
@@ -35,9 +35,9 @@ function he() {
35
35
  switch (typeof e.tag == "number" && console.error(
36
36
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
37
37
  ), e.$$typeof) {
38
- case X:
38
+ case q:
39
39
  return (e.displayName || "Context") + ".Provider";
40
- case K:
40
+ case X:
41
41
  return (e._context.displayName || "Context") + ".Consumer";
42
42
  case S:
43
43
  var r = e.render;
@@ -305,7 +305,7 @@ function he() {
305
305
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
306
306
  }
307
307
  function z(e, r, o, n, u, a) {
308
- if (typeof e == "string" || typeof e == "function" || e === j || e === H || e === G || e === A || e === k || e === ge || typeof e == "object" && e !== null && (e.$$typeof === N || e.$$typeof === p || e.$$typeof === X || e.$$typeof === K || e.$$typeof === S || e.$$typeof === _e || e.getModuleId !== void 0)) {
308
+ if (typeof e == "string" || typeof e == "function" || e === j || e === K || e === H || e === A || e === k || e === ge || typeof e == "object" && e !== null && (e.$$typeof === N || e.$$typeof === p || e.$$typeof === q || e.$$typeof === X || e.$$typeof === S || e.$$typeof === _e || e.getModuleId !== void 0)) {
309
309
  var t = r.children;
310
310
  if (t !== void 0)
311
311
  if (n)
@@ -357,19 +357,19 @@ React keys must be passed directly to JSX without using spread:
357
357
  if (R(e))
358
358
  for (var o = 0; o < e.length; o++) {
359
359
  var n = e[o];
360
- h(n) && q(n, r);
360
+ h(n) && G(n, r);
361
361
  }
362
362
  else if (h(e))
363
363
  e._store && (e._store.validated = 1);
364
364
  else if (e === null || typeof e != "object" ? o = null : (o = B && e[B] || e["@@iterator"], o = typeof o == "function" ? o : null), typeof o == "function" && o !== e.entries && (o = o.call(e), o !== e))
365
365
  for (; !(e = o.next()).done; )
366
- h(e.value) && q(e.value, r);
366
+ h(e.value) && G(e.value, r);
367
367
  }
368
368
  }
369
369
  function h(e) {
370
370
  return typeof e == "object" && e !== null && e.$$typeof === O;
371
371
  }
372
- function q(e, r) {
372
+ function G(e, r) {
373
373
  if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = ve(r), !ae[r])) {
374
374
  ae[r] = !0;
375
375
  var o = "";
@@ -393,7 +393,7 @@ Check the render method of \`` + o + "`."), r || (e = s(e)) && (r = `
393
393
 
394
394
  Check the top-level render call using <` + e + ">."), r;
395
395
  }
396
- var be = we, O = Symbol.for("react.transitional.element"), de = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), G = Symbol.for("react.strict_mode"), H = Symbol.for("react.profiler"), K = Symbol.for("react.consumer"), X = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), ge = Symbol.for("react.offscreen"), B = Symbol.iterator, me = Symbol.for("react.client.reference"), E = be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, v = Object.assign, _e = Symbol.for("react.client.reference"), R = Array.isArray, g = 0, Z, F, I, L, Q, D, ee;
396
+ var be = we, O = Symbol.for("react.transitional.element"), de = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), H = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), q = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), ge = Symbol.for("react.offscreen"), B = Symbol.iterator, me = Symbol.for("react.client.reference"), E = be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, v = Object.assign, _e = Symbol.for("react.client.reference"), R = Array.isArray, g = 0, Z, F, I, L, Q, D, ee;
397
397
  $.__reactDisabledLog = !0;
398
398
  var x, re, P = !1, Y = new (typeof WeakMap == "function" ? WeakMap : Map)(), ye = Symbol.for("react.client.reference"), oe, te = {}, ne = {}, ae = {};
399
399
  _.Fragment = j, _.jsx = function(e, r, o, n, u) {
@@ -1,9 +1,7 @@
1
1
  import { BreakpointsOptions, ThemeOptions } from '@mui/material';
2
- import { FontsUrls } from '../components';
3
2
  import { Theme } from '../types';
4
3
  export type CreateThemeParams = {
5
4
  options?: ThemeOptions;
6
- fontsUrls: FontsUrls;
7
5
  breakpoints?: BreakpointsOptions;
8
6
  };
9
- export declare const createTheme: (params: CreateThemeParams) => Theme;
7
+ export declare const createTheme: (params?: CreateThemeParams) => Theme;
@@ -1,26 +1,26 @@
1
1
  import { createTheme as i } from "@mui/material";
2
2
  import { mergeDeep as n } from "remeda";
3
- import { defaultBreakpoints as f } from "../breakpoints.mjs";
4
- import { getComponents as c } from "../components/components.mjs";
5
- import { SPACING as h } from "../constants.mjs";
6
- import { elevation as o } from "../elevation.mjs";
7
- import { getPalette as g } from "../palette/palette.mjs";
8
- import { shape as t } from "../shape.mjs";
9
- import { getTypography as T } from "../typography.mjs";
10
- const x = (r) => {
11
- const { options: m = {}, fontsUrls: p, breakpoints: s = f } = r, a = {
12
- breakpoints: s,
13
- spacing: h,
14
- palette: g(),
15
- components: c(p),
16
- shape: t,
17
- elevation: o
18
- }, e = i(a);
19
- return n(e, {
20
- elevation: o,
21
- shape: t,
22
- typography: T(e),
23
- ...m
3
+ import { defaultBreakpoints as s } from "../breakpoints.mjs";
4
+ import { components as a } from "../components/components.mjs";
5
+ import { SPACING as c } from "../constants.mjs";
6
+ import { elevation as t } from "../elevation.mjs";
7
+ import { getPalette as f } from "../palette/palette.mjs";
8
+ import { shape as r } from "../shape.mjs";
9
+ import { getTypography as h } from "../typography.mjs";
10
+ const x = (e) => {
11
+ const p = e?.options || {}, m = {
12
+ breakpoints: e?.breakpoints || s,
13
+ spacing: c,
14
+ palette: f(),
15
+ components: a,
16
+ shape: r,
17
+ elevation: t
18
+ }, o = i(m);
19
+ return n(o, {
20
+ elevation: t,
21
+ shape: r,
22
+ typography: h(o),
23
+ ...p
24
24
  });
25
25
  };
26
26
  export {
@@ -93,10 +93,10 @@ const s = ({ type: t, values: r, defaultValue: a }) => t && r[t] || a, f = (t) =
93
93
  }) => {
94
94
  const l = {
95
95
  selected: {
96
- default: e.palette.grey[900],
97
- hover: e.palette.grey[700],
98
- active: e.palette.grey[800],
99
- focus: e.palette.grey[900]
96
+ default: e.palette.primary[900],
97
+ hover: e.palette.primary[700],
98
+ active: e.palette.primary[800],
99
+ focus: e.palette.primary[900]
100
100
  },
101
101
  light: {
102
102
  error: {
@@ -114,7 +114,7 @@ const s = ({ type: t, values: r, defaultValue: a }) => t && r[t] || a, f = (t) =
114
114
  primary: {
115
115
  default: e.palette.grey[100],
116
116
  hover: e.palette.grey[200],
117
- active: e.palette.primary[100],
117
+ active: e.palette.grey[100],
118
118
  focus: e.palette.grey[100]
119
119
  },
120
120
  warning: {
@@ -20,7 +20,7 @@ const o = (t) => t.replace("#", "%23"), e = (t) => `url('data:image/svg+xml;utf8
20
20
  "& :not(.Mui-checked).MuiSwitch-switchBase": {
21
21
  padding: 0,
22
22
  "& + .MuiSwitch-track": {
23
- backgroundColor: t.palette.grey[700],
23
+ backgroundColor: t.palette.grey[600],
24
24
  opacity: 1
25
25
  }
26
26
  },
@@ -1,21 +1,3 @@
1
1
  import { Components } from '@mui/material';
2
2
  import { Theme } from '../types';
3
- export type FontsUrls = {
4
- bold: {
5
- woff: string;
6
- woff2: string;
7
- };
8
- light: {
9
- woff: string;
10
- woff2: string;
11
- };
12
- medium: {
13
- woff: string;
14
- woff2: string;
15
- };
16
- regular: {
17
- woff: string;
18
- woff2: string;
19
- };
20
- };
21
- export declare const getComponents: (fontUrls: FontsUrls) => Components<Theme>;
3
+ export declare const components: Components<Theme>;