master-components-react-ts 2.1.2 → 2.1.3

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 (85) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +8 -0
  2. package/dist/_virtual/customParseFormat.js +4 -0
  3. package/dist/_virtual/jsx-runtime.js +4 -0
  4. package/dist/_virtual/react-jsx-runtime.production.js +4 -0
  5. package/dist/assets/Icons/IconArrowUp.js +13 -0
  6. package/dist/assets/Icons/IconCalendar.js +32 -0
  7. package/dist/assets/Icons/IconCheck.js +15 -0
  8. package/dist/assets/Icons/IconCheckCircle.js +16 -0
  9. package/dist/assets/Icons/IconCheckmark.js +15 -0
  10. package/dist/assets/Icons/IconCircularLoading.js +36 -0
  11. package/dist/assets/Icons/IconClose.js +31 -0
  12. package/dist/assets/Icons/IconCloseBackground.js +15 -0
  13. package/dist/assets/Icons/IconCloseCircle.js +15 -0
  14. package/dist/assets/Icons/IconErrorDash.js +15 -0
  15. package/dist/assets/Icons/IconExclamation.js +15 -0
  16. package/dist/assets/Icons/IconLeft.js +13 -0
  17. package/dist/assets/Icons/IconLoading.js +22 -0
  18. package/dist/assets/Icons/IconMinus.js +7 -0
  19. package/dist/assets/Icons/IconRadioChecked.js +19 -0
  20. package/dist/assets/Icons/IconRadioCheckedDisabled.js +19 -0
  21. package/dist/assets/Icons/IconRadioUnchecked.js +16 -0
  22. package/dist/assets/Icons/IconRadioUncheckedDisabled.js +16 -0
  23. package/dist/assets/Icons/IconRight.js +13 -0
  24. package/dist/assets/Icons/IconSave.js +16 -0
  25. package/dist/assets/Icons/IconSearch.js +26 -0
  26. package/dist/assets/Icons/IconSuccess.js +15 -0
  27. package/dist/assets/Icons/IconTrash.js +16 -0
  28. package/dist/assets/components/ActionDropdown/ActionDropdown.module-CJpBa8kB.css +85 -0
  29. package/dist/assets/components/Checkbox/Checkbox.module-_XqqEodq.css +82 -0
  30. package/dist/assets/components/DatePicker/Calendar.module-D3fcZWFD.css +316 -0
  31. package/dist/assets/components/DatePicker/Datepicker.module-BxWRyQpP.css +39 -0
  32. package/dist/assets/components/Dropdown/Dropdown.module-DgjqziBo.css +242 -0
  33. package/dist/assets/components/FormInput/FormInput.module-DvfUbgbC.css +240 -0
  34. package/dist/assets/components/InlineLoading/InlineLoading.module-iVTVTMU0.css +40 -0
  35. package/dist/assets/components/MainButton/MainButton.module-8Us8t8Lb.css +306 -0
  36. package/dist/assets/components/NotificationToast/NotificationToast.module-mSanXElM.css +179 -0
  37. package/dist/assets/components/Popup/Popup.module-C1XFPW6u.css +152 -0
  38. package/dist/assets/components/Radio/Radio.module-BvqKw6WX.css +21 -0
  39. package/dist/assets/components/Skeleton/Skeleton.module-BxbVrXDg.css +57 -0
  40. package/dist/assets/components/Textarea/Textarea.module-BxaBUjlU.css +167 -0
  41. package/dist/assets/components/TimePicker/TimePicker.module-DfRiUaeb.css +150 -0
  42. package/dist/assets/components/Toggle/Toggle.module-DBfTR8Br.css +75 -0
  43. package/dist/assets/components/Tooltip/Tooltip.module-DEYqvQtd.css +113 -0
  44. package/dist/components/ActionDropdown/ActionDropdown.js +74 -0
  45. package/dist/components/ActionDropdown/ActionDropdown.module.scss.js +29 -0
  46. package/dist/components/Checkbox/Checkbox.js +54 -0
  47. package/dist/components/Checkbox/Checkbox.module.scss.js +26 -0
  48. package/dist/components/DatePicker/Calendar.js +437 -0
  49. package/dist/components/DatePicker/Calendar.module.scss.js +83 -0
  50. package/dist/components/DatePicker/DatePicker.js +211 -0
  51. package/dist/components/DatePicker/Datepicker.module.scss.js +17 -0
  52. package/dist/components/Dropdown/Dropdown.js +337 -0
  53. package/dist/components/Dropdown/Dropdown.module.scss.js +74 -0
  54. package/dist/components/FormInput/FormInput.js +151 -0
  55. package/dist/components/FormInput/FormInput.module.scss.js +62 -0
  56. package/dist/components/InlineLoading/InlineLoading.js +24 -0
  57. package/dist/components/InlineLoading/InlineLoading.module.scss.js +11 -0
  58. package/dist/components/MainButton/MainButton.js +72 -0
  59. package/dist/components/MainButton/MainButton.module.scss.js +56 -0
  60. package/dist/components/NotificationToast/NotificationContext.js +57 -0
  61. package/dist/components/NotificationToast/NotificationToast.js +66 -0
  62. package/dist/components/NotificationToast/NotificationToast.module.scss.js +59 -0
  63. package/dist/components/NotificationToast/createNotificationToast.js +10 -0
  64. package/dist/components/Popup/Popup.js +116 -0
  65. package/dist/components/Popup/Popup.module.scss.js +41 -0
  66. package/dist/components/Radio/Radio.js +46 -0
  67. package/dist/components/Radio/Radio.module.scss.js +8 -0
  68. package/dist/components/Skeleton/Skeleton.js +8 -0
  69. package/dist/components/Skeleton/Skeleton.module.scss.js +20 -0
  70. package/dist/components/Textarea/Textarea.js +149 -0
  71. package/dist/components/Textarea/Textarea.module.scss.js +41 -0
  72. package/dist/components/TimePicker/TimePicker.js +172 -0
  73. package/dist/components/TimePicker/TimePicker.module.scss.js +50 -0
  74. package/dist/components/Toggle/Toggle.js +20 -0
  75. package/dist/components/Toggle/Toggle.module.scss.js +29 -0
  76. package/dist/components/Tooltip/Tooltip.js +153 -0
  77. package/dist/components/Tooltip/Tooltip.module.scss.js +35 -0
  78. package/dist/context/NamespaceContext.js +7 -0
  79. package/dist/index.js +32 -5154
  80. package/dist/node_modules/dayjs/plugin/customParseFormat.js +129 -0
  81. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +35 -0
  82. package/dist/node_modules/react/jsx-runtime.js +10 -0
  83. package/dist/utils/Helpers.js +15 -0
  84. package/package.json +10 -15
  85. package/dist/types/css-modules.d.ts +0 -9
@@ -0,0 +1,129 @@
1
+ import { getDefaultExportFromCjs, commonjsGlobal } from "../../../_virtual/_commonjsHelpers.js";
2
+ import { __module as customParseFormat$1 } from "../../../_virtual/customParseFormat.js";
3
+ (function(module, exports) {
4
+ !function(e, t) {
5
+ module.exports = t();
6
+ }(commonjsGlobal, function() {
7
+ var e = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, r = /\d\d/, i = /\d\d?/, o = /\d*[^-_:/,()\s\d]+/, s = {}, a = function(e2) {
8
+ return (e2 = +e2) + (e2 > 68 ? 1900 : 2e3);
9
+ };
10
+ var f = function(e2) {
11
+ return function(t2) {
12
+ this[e2] = +t2;
13
+ };
14
+ }, h = [/[+-]\d\d:?(\d\d)?|Z/, function(e2) {
15
+ (this.zone || (this.zone = {})).offset = function(e3) {
16
+ if (!e3) return 0;
17
+ if ("Z" === e3) return 0;
18
+ var t2 = e3.match(/([+-]|\d\d)/g), n2 = 60 * t2[1] + (+t2[2] || 0);
19
+ return 0 === n2 ? 0 : "+" === t2[0] ? -n2 : n2;
20
+ }(e2);
21
+ }], u = function(e2) {
22
+ var t2 = s[e2];
23
+ return t2 && (t2.indexOf ? t2 : t2.s.concat(t2.f));
24
+ }, d = function(e2, t2) {
25
+ var n2, r2 = s.meridiem;
26
+ if (r2) {
27
+ for (var i2 = 1; i2 <= 24; i2 += 1) if (e2.indexOf(r2(i2, 0, t2)) > -1) {
28
+ n2 = i2 > 12;
29
+ break;
30
+ }
31
+ } else n2 = e2 === (t2 ? "pm" : "PM");
32
+ return n2;
33
+ }, c = { A: [o, function(e2) {
34
+ this.afternoon = d(e2, false);
35
+ }], a: [o, function(e2) {
36
+ this.afternoon = d(e2, true);
37
+ }], Q: [n, function(e2) {
38
+ this.month = 3 * (e2 - 1) + 1;
39
+ }], S: [n, function(e2) {
40
+ this.milliseconds = 100 * +e2;
41
+ }], SS: [r, function(e2) {
42
+ this.milliseconds = 10 * +e2;
43
+ }], SSS: [/\d{3}/, function(e2) {
44
+ this.milliseconds = +e2;
45
+ }], s: [i, f("seconds")], ss: [i, f("seconds")], m: [i, f("minutes")], mm: [i, f("minutes")], H: [i, f("hours")], h: [i, f("hours")], HH: [i, f("hours")], hh: [i, f("hours")], D: [i, f("day")], DD: [r, f("day")], Do: [o, function(e2) {
46
+ var t2 = s.ordinal, n2 = e2.match(/\d+/);
47
+ if (this.day = n2[0], t2) for (var r2 = 1; r2 <= 31; r2 += 1) t2(r2).replace(/\[|\]/g, "") === e2 && (this.day = r2);
48
+ }], w: [i, f("week")], ww: [r, f("week")], M: [i, f("month")], MM: [r, f("month")], MMM: [o, function(e2) {
49
+ var t2 = u("months"), n2 = (u("monthsShort") || t2.map(function(e3) {
50
+ return e3.slice(0, 3);
51
+ })).indexOf(e2) + 1;
52
+ if (n2 < 1) throw new Error();
53
+ this.month = n2 % 12 || n2;
54
+ }], MMMM: [o, function(e2) {
55
+ var t2 = u("months").indexOf(e2) + 1;
56
+ if (t2 < 1) throw new Error();
57
+ this.month = t2 % 12 || t2;
58
+ }], Y: [/[+-]?\d+/, f("year")], YY: [r, function(e2) {
59
+ this.year = a(e2);
60
+ }], YYYY: [/\d{4}/, f("year")], Z: h, ZZ: h };
61
+ function l(n2) {
62
+ var r2, i2;
63
+ r2 = n2, i2 = s && s.formats;
64
+ for (var o2 = (n2 = r2.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t2, n3, r3) {
65
+ var o3 = r3 && r3.toUpperCase();
66
+ return n3 || i2[r3] || e[r3] || i2[o3].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(e2, t3, n4) {
67
+ return t3 || n4.slice(1);
68
+ });
69
+ })).match(t), a2 = o2.length, f2 = 0; f2 < a2; f2 += 1) {
70
+ var h2 = o2[f2], u2 = c[h2], d2 = u2 && u2[0], l2 = u2 && u2[1];
71
+ o2[f2] = l2 ? { regex: d2, parser: l2 } : h2.replace(/^\[|\]$/g, "");
72
+ }
73
+ return function(e2) {
74
+ for (var t2 = {}, n3 = 0, r3 = 0; n3 < a2; n3 += 1) {
75
+ var i3 = o2[n3];
76
+ if ("string" == typeof i3) r3 += i3.length;
77
+ else {
78
+ var s2 = i3.regex, f3 = i3.parser, h3 = e2.slice(r3), u3 = s2.exec(h3)[0];
79
+ f3.call(t2, u3), e2 = e2.replace(u3, "");
80
+ }
81
+ }
82
+ return function(e3) {
83
+ var t3 = e3.afternoon;
84
+ if (void 0 !== t3) {
85
+ var n4 = e3.hours;
86
+ t3 ? n4 < 12 && (e3.hours += 12) : 12 === n4 && (e3.hours = 0), delete e3.afternoon;
87
+ }
88
+ }(t2), t2;
89
+ };
90
+ }
91
+ return function(e2, t2, n2) {
92
+ n2.p.customParseFormat = true, e2 && e2.parseTwoDigitYear && (a = e2.parseTwoDigitYear);
93
+ var r2 = t2.prototype, i2 = r2.parse;
94
+ r2.parse = function(e3) {
95
+ var t3 = e3.date, r3 = e3.utc, o2 = e3.args;
96
+ this.$u = r3;
97
+ var a2 = o2[1];
98
+ if ("string" == typeof a2) {
99
+ var f2 = true === o2[2], h2 = true === o2[3], u2 = f2 || h2, d2 = o2[2];
100
+ h2 && (d2 = o2[2]), s = this.$locale(), !f2 && d2 && (s = n2.Ls[d2]), this.$d = function(e4, t4, n3, r4) {
101
+ try {
102
+ if (["x", "X"].indexOf(t4) > -1) return new Date(("X" === t4 ? 1e3 : 1) * e4);
103
+ var i3 = l(t4)(e4), o3 = i3.year, s2 = i3.month, a3 = i3.day, f3 = i3.hours, h3 = i3.minutes, u3 = i3.seconds, d3 = i3.milliseconds, c3 = i3.zone, m2 = i3.week, M2 = /* @__PURE__ */ new Date(), Y = a3 || (o3 || s2 ? 1 : M2.getDate()), p = o3 || M2.getFullYear(), v = 0;
104
+ o3 && !s2 || (v = s2 > 0 ? s2 - 1 : M2.getMonth());
105
+ var D, w = f3 || 0, g = h3 || 0, y = u3 || 0, L = d3 || 0;
106
+ return c3 ? new Date(Date.UTC(p, v, Y, w, g, y, L + 60 * c3.offset * 1e3)) : n3 ? new Date(Date.UTC(p, v, Y, w, g, y, L)) : (D = new Date(p, v, Y, w, g, y, L), m2 && (D = r4(D).week(m2).toDate()), D);
107
+ } catch (e5) {
108
+ return /* @__PURE__ */ new Date("");
109
+ }
110
+ }(t3, a2, r3, n2), this.init(), d2 && true !== d2 && (this.$L = this.locale(d2).$L), u2 && t3 != this.format(a2) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
111
+ } else if (a2 instanceof Array) for (var c2 = a2.length, m = 1; m <= c2; m += 1) {
112
+ o2[1] = a2[m - 1];
113
+ var M = n2.apply(this, o2);
114
+ if (M.isValid()) {
115
+ this.$d = M.$d, this.$L = M.$L, this.init();
116
+ break;
117
+ }
118
+ m === c2 && (this.$d = /* @__PURE__ */ new Date(""));
119
+ }
120
+ else i2.call(this, e3);
121
+ };
122
+ };
123
+ });
124
+ })(customParseFormat$1);
125
+ var customParseFormatExports = customParseFormat$1.exports;
126
+ const customParseFormat = /* @__PURE__ */ getDefaultExportFromCjs(customParseFormatExports);
127
+ export {
128
+ customParseFormat as default
129
+ };
@@ -0,0 +1,35 @@
1
+ import { __exports as reactJsxRuntime_production } from "../../../_virtual/react-jsx-runtime.production.js";
2
+ /**
3
+ * @license React
4
+ * react-jsx-runtime.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
12
+ function jsxProd(type, config, maybeKey) {
13
+ var key = null;
14
+ void 0 !== maybeKey && (key = "" + maybeKey);
15
+ void 0 !== config.key && (key = "" + config.key);
16
+ if ("key" in config) {
17
+ maybeKey = {};
18
+ for (var propName in config)
19
+ "key" !== propName && (maybeKey[propName] = config[propName]);
20
+ } else maybeKey = config;
21
+ config = maybeKey.ref;
22
+ return {
23
+ $$typeof: REACT_ELEMENT_TYPE,
24
+ type,
25
+ key,
26
+ ref: void 0 !== config ? config : null,
27
+ props: maybeKey
28
+ };
29
+ }
30
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
31
+ reactJsxRuntime_production.jsx = jsxProd;
32
+ reactJsxRuntime_production.jsxs = jsxProd;
33
+ export {
34
+ reactJsxRuntime_production as default
35
+ };
@@ -0,0 +1,10 @@
1
+ import { __module as jsxRuntime } from "../../_virtual/jsx-runtime.js";
2
+ import { __exports as reactJsxRuntime_production } from "../../_virtual/react-jsx-runtime.production.js";
3
+ import "./cjs/react-jsx-runtime.production.js";
4
+ {
5
+ jsxRuntime.exports = reactJsxRuntime_production;
6
+ }
7
+ var jsxRuntimeExports = jsxRuntime.exports;
8
+ export {
9
+ jsxRuntimeExports as j
10
+ };
@@ -0,0 +1,15 @@
1
+ location.href.indexOf(".upgaming.dev") > 0 || location.href.indexOf(".upgaming.com") > 0;
2
+ const _filterUnique = (arr, key) => {
3
+ const uniqueKeys = /* @__PURE__ */ new Set();
4
+ return arr.filter((item) => {
5
+ if (uniqueKeys.has(item[key])) {
6
+ return false;
7
+ } else {
8
+ uniqueKeys.add(item[key]);
9
+ return true;
10
+ }
11
+ });
12
+ };
13
+ export {
14
+ _filterUnique
15
+ };
package/package.json CHANGED
@@ -1,29 +1,26 @@
1
1
  {
2
2
  "name": "master-components-react-ts",
3
3
  "private": false,
4
- "version": "2.1.2",
4
+ "version": "2.1.3",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
9
- "sideEffects": false,
9
+ "sideEffects": [
10
+ "**/*.css"
11
+ ],
10
12
  "files": [
11
13
  "dist"
12
14
  ],
13
15
  "exports": {
14
16
  ".": {
15
- "import": "./dist/index.js",
16
- "types": "./dist/index.d.ts"
17
- },
18
- "./*": {
19
- "import": "./dist/components/*/index.js",
20
- "types": "./dist/components/*/index.d.ts"
17
+ "types": "./dist/index.d.ts",
18
+ "import": "./dist/index.js"
21
19
  }
22
20
  },
23
21
  "scripts": {
24
22
  "dev": "vite --port 3737 --strictPort",
25
- "generate-css-types": "tcm src --pattern '**/*.module.scss'",
26
- "build": "npm run generate-css-types && tsc-alias && vite build",
23
+ "build": "tsc && tsc-alias && vite build",
27
24
  "build:prod": "tsc && tsc-alias && vite build --config vite.config.prod.ts",
28
25
  "build:analyze": "vite build --mode analyze",
29
26
  "preview": "vite preview --port 3737 --strictPort",
@@ -49,14 +46,12 @@
49
46
  "sass": "^1.81.0",
50
47
  "terser": "^5.43.1",
51
48
  "tsc-alias": "^1.8.16",
52
- "typed-css-modules": "^0.9.1",
53
49
  "typescript": "^5.8.3",
54
50
  "vite": "^5.4.11",
55
- "vite-plugin-css-injected-by-js": "^3.5.2",
56
51
  "vite-plugin-dts": "^4.5.4"
57
52
  },
58
53
  "peerDependencies": {
59
- "react": "^19.1.0",
60
- "react-dom": "^19.1.0"
54
+ "react": "^18.2.0 || ^19.0.0",
55
+ "react-dom": "^18.2.0 || ^19.0.0"
61
56
  }
62
- }
57
+ }
@@ -1,9 +0,0 @@
1
- declare module '*.module.scss' {
2
- const classes: { [key: string]: string }
3
- export default classes
4
- }
5
-
6
- declare module '*.module.css' {
7
- const classes: { [key: string]: string }
8
- export default classes
9
- }