master-components-react-ts 2.1.2 → 2.1.4
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/dist/_virtual/_commonjsHelpers.js +8 -0
- package/dist/_virtual/customParseFormat.js +4 -0
- package/dist/assets/Icons/IconArrowUp.js +13 -0
- package/dist/assets/Icons/IconCalendar.js +32 -0
- package/dist/assets/Icons/IconCheck.js +15 -0
- package/dist/assets/Icons/IconCheckCircle.js +16 -0
- package/dist/assets/Icons/IconCheckmark.js +15 -0
- package/dist/assets/Icons/IconCircularLoading.js +36 -0
- package/dist/assets/Icons/IconClose.js +31 -0
- package/dist/assets/Icons/IconCloseBackground.js +15 -0
- package/dist/assets/Icons/IconCloseCircle.js +15 -0
- package/dist/assets/Icons/IconErrorDash.js +15 -0
- package/dist/assets/Icons/IconExclamation.js +15 -0
- package/dist/assets/Icons/IconLeft.js +13 -0
- package/dist/assets/Icons/IconLoading.js +22 -0
- package/dist/assets/Icons/IconMinus.js +7 -0
- package/dist/assets/Icons/IconRadioChecked.js +19 -0
- package/dist/assets/Icons/IconRadioCheckedDisabled.js +19 -0
- package/dist/assets/Icons/IconRadioUnchecked.js +16 -0
- package/dist/assets/Icons/IconRadioUncheckedDisabled.js +16 -0
- package/dist/assets/Icons/IconRight.js +13 -0
- package/dist/assets/Icons/IconSave.js +16 -0
- package/dist/assets/Icons/IconSearch.js +26 -0
- package/dist/assets/Icons/IconSuccess.js +15 -0
- package/dist/assets/Icons/IconTrash.js +16 -0
- package/dist/assets/style-CXs6Ghy1.css +2249 -0
- package/dist/components/ActionDropdown/ActionDropdown.js +74 -0
- package/dist/components/ActionDropdown/ActionDropdown.module.scss.js +29 -0
- package/dist/components/Checkbox/Checkbox.js +54 -0
- package/dist/components/Checkbox/Checkbox.module.scss.js +26 -0
- package/dist/components/DatePicker/Calendar.js +437 -0
- package/dist/components/DatePicker/Calendar.module.scss.js +83 -0
- package/dist/components/DatePicker/DatePicker.js +211 -0
- package/dist/components/DatePicker/Datepicker.module.scss.js +17 -0
- package/dist/components/Dropdown/Dropdown.js +337 -0
- package/dist/components/Dropdown/Dropdown.module.scss.js +74 -0
- package/dist/components/FormInput/FormInput.js +151 -0
- package/dist/components/FormInput/FormInput.module.scss.js +62 -0
- package/dist/components/InlineLoading/InlineLoading.js +24 -0
- package/dist/components/InlineLoading/InlineLoading.module.scss.js +11 -0
- package/dist/components/MainButton/MainButton.js +72 -0
- package/dist/components/MainButton/MainButton.module.scss.js +56 -0
- package/dist/components/NotificationToast/NotificationContext.js +57 -0
- package/dist/components/NotificationToast/NotificationToast.js +66 -0
- package/dist/components/NotificationToast/NotificationToast.module.scss.js +59 -0
- package/dist/components/NotificationToast/createNotificationToast.js +10 -0
- package/dist/components/Popup/Popup.js +116 -0
- package/dist/components/Popup/Popup.module.scss.js +41 -0
- package/dist/components/Radio/Radio.js +46 -0
- package/dist/components/Radio/Radio.module.scss.js +8 -0
- package/dist/components/Skeleton/Skeleton.js +8 -0
- package/dist/components/Skeleton/Skeleton.module.scss.js +20 -0
- package/dist/components/Textarea/Textarea.js +149 -0
- package/dist/components/Textarea/Textarea.module.scss.js +41 -0
- package/dist/components/TimePicker/TimePicker.js +172 -0
- package/dist/components/TimePicker/TimePicker.module.scss.js +50 -0
- package/dist/components/Toggle/Toggle.js +20 -0
- package/dist/components/Toggle/Toggle.module.scss.js +29 -0
- package/dist/components/Tooltip/Tooltip.js +153 -0
- package/dist/components/Tooltip/Tooltip.module.scss.js +35 -0
- package/dist/context/NamespaceContext.js +7 -0
- package/dist/index.js +32 -5154
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +129 -0
- package/dist/utils/Helpers.js +15 -0
- package/package.json +10 -14
- 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,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,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "master-components-react-ts",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.4",
|
|
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":
|
|
9
|
+
"sideEffects": [
|
|
10
|
+
"**/*.css"
|
|
11
|
+
],
|
|
10
12
|
"files": [
|
|
11
13
|
"dist"
|
|
12
14
|
],
|
|
13
15
|
"exports": {
|
|
14
16
|
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
15
18
|
"import": "./dist/index.js",
|
|
16
|
-
"
|
|
17
|
-
},
|
|
18
|
-
"./*": {
|
|
19
|
-
"import": "./dist/components/*/index.js",
|
|
20
|
-
"types": "./dist/components/*/index.d.ts"
|
|
19
|
+
"default": "./dist/index.js"
|
|
21
20
|
}
|
|
22
21
|
},
|
|
23
22
|
"scripts": {
|
|
24
23
|
"dev": "vite --port 3737 --strictPort",
|
|
25
|
-
"
|
|
26
|
-
"build": "npm run generate-css-types && tsc-alias && vite build",
|
|
24
|
+
"build": "tsc && tsc-alias && vite build",
|
|
27
25
|
"build:prod": "tsc && tsc-alias && vite build --config vite.config.prod.ts",
|
|
28
26
|
"build:analyze": "vite build --mode analyze",
|
|
29
27
|
"preview": "vite preview --port 3737 --strictPort",
|
|
@@ -49,14 +47,12 @@
|
|
|
49
47
|
"sass": "^1.81.0",
|
|
50
48
|
"terser": "^5.43.1",
|
|
51
49
|
"tsc-alias": "^1.8.16",
|
|
52
|
-
"typed-css-modules": "^0.9.1",
|
|
53
50
|
"typescript": "^5.8.3",
|
|
54
51
|
"vite": "^5.4.11",
|
|
55
|
-
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
56
52
|
"vite-plugin-dts": "^4.5.4"
|
|
57
53
|
},
|
|
58
54
|
"peerDependencies": {
|
|
59
|
-
"react": "^19.
|
|
60
|
-
"react-dom": "^19.
|
|
55
|
+
"react": "^18.2.0 || ^19.0.0",
|
|
56
|
+
"react-dom": "^18.2.0 || ^19.0.0"
|
|
61
57
|
}
|
|
62
|
-
}
|
|
58
|
+
}
|