platformscode-new-react 0.0.26 → 0.0.27
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/index.cjs.js +5 -5
- package/dist/index.js +42 -43
- package/package.json +1 -1
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Bold.woff +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Bold.woff2 +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Medium.woff +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Medium.woff2 +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Regular.woff +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Regular.woff2 +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-SemiBold.woff +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-SemiBold.woff2 +0 -0
package/dist/index.js
CHANGED
|
@@ -283,31 +283,31 @@ var J, De, ae, Ce = !1, ve = !1, Ie = !1, z = !1, ke = (s, e, n, i) => {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
}, Li = (s, e, n, i, o = !1) => {
|
|
286
|
-
let d = 0, f = 0, u = 0, h = 0, b = e.length - 1, x = e[0], y = e[b], $ = i.length - 1,
|
|
286
|
+
let d = 0, f = 0, u = 0, h = 0, b = e.length - 1, x = e[0], y = e[b], $ = i.length - 1, _ = i[0], E = i[$], H, O;
|
|
287
287
|
for (; d <= b && f <= $; )
|
|
288
288
|
if (x == null)
|
|
289
289
|
x = e[++d];
|
|
290
290
|
else if (y == null)
|
|
291
291
|
y = e[--b];
|
|
292
|
-
else if (E == null)
|
|
293
|
-
E = i[++f];
|
|
294
292
|
else if (_ == null)
|
|
295
|
-
_ = i[
|
|
296
|
-
else if (
|
|
297
|
-
|
|
298
|
-
else if (fe(y, _, o))
|
|
299
|
-
V(y, _, o), y = e[--b], _ = i[--$];
|
|
293
|
+
_ = i[++f];
|
|
294
|
+
else if (E == null)
|
|
295
|
+
E = i[--$];
|
|
300
296
|
else if (fe(x, _, o))
|
|
301
|
-
|
|
297
|
+
V(x, _, o), x = e[++d], _ = i[++f];
|
|
302
298
|
else if (fe(y, E, o))
|
|
303
|
-
|
|
299
|
+
V(y, E, o), y = e[--b], E = i[--$];
|
|
300
|
+
else if (fe(x, E, o))
|
|
301
|
+
(x.$tag$ === "slot" || E.$tag$ === "slot") && oe(x.$elm$.parentNode, !1), V(x, E, o), Z(s, x.$elm$, y.$elm$.nextSibling), x = e[++d], E = i[--$];
|
|
302
|
+
else if (fe(y, _, o))
|
|
303
|
+
(x.$tag$ === "slot" || E.$tag$ === "slot") && oe(y.$elm$.parentNode, !1), V(y, _, o), Z(s, y.$elm$, x.$elm$), y = e[--b], _ = i[++f];
|
|
304
304
|
else {
|
|
305
305
|
for (u = -1, h = d; h <= b; ++h)
|
|
306
|
-
if (e[h] && e[h].$key$ !== null && e[h].$key$ ===
|
|
306
|
+
if (e[h] && e[h].$key$ !== null && e[h].$key$ === _.$key$) {
|
|
307
307
|
u = h;
|
|
308
308
|
break;
|
|
309
309
|
}
|
|
310
|
-
u >= 0 ? (O = e[u], O.$tag$ !==
|
|
310
|
+
u >= 0 ? (O = e[u], O.$tag$ !== _.$tag$ ? H = ke(e && e[f], n, u, s) : (V(O, _, o), e[u] = void 0, H = O.$elm$), _ = i[++f]) : (H = ke(e && e[f], n, f, s), _ = i[++f]), H && Z(xt(x.$elm$), H, Oe(x.$elm$));
|
|
311
311
|
}
|
|
312
312
|
d > b ? kt(
|
|
313
313
|
s,
|
|
@@ -391,20 +391,20 @@ var J, De, ae, Ce = !1, ve = !1, Ie = !1, z = !1, ke = (s, e, n, i) => {
|
|
|
391
391
|
for (const y of P) {
|
|
392
392
|
const $ = y.$nodeToRelocate$;
|
|
393
393
|
if (!$["s-ol"]) {
|
|
394
|
-
const
|
|
395
|
-
|
|
394
|
+
const _ = K.createTextNode("");
|
|
395
|
+
_["s-nr"] = $, Z($.parentNode, $["s-ol"] = _, $);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
for (const y of P) {
|
|
399
|
-
const $ = y.$nodeToRelocate$,
|
|
400
|
-
if (
|
|
401
|
-
const
|
|
402
|
-
let H =
|
|
399
|
+
const $ = y.$nodeToRelocate$, _ = y.$slotRefNode$;
|
|
400
|
+
if (_) {
|
|
401
|
+
const E = _.parentNode;
|
|
402
|
+
let H = _.nextSibling;
|
|
403
403
|
{
|
|
404
404
|
let O = (i = $["s-ol"]) == null ? void 0 : i.previousSibling;
|
|
405
405
|
for (; O; ) {
|
|
406
406
|
let M = (o = O["s-nr"]) != null ? o : null;
|
|
407
|
-
if (M && M["s-sn"] === $["s-sn"] &&
|
|
407
|
+
if (M && M["s-sn"] === $["s-sn"] && E === M.parentNode) {
|
|
408
408
|
for (M = M.nextSibling; M === $ || M != null && M["s-sr"]; )
|
|
409
409
|
M = M == null ? void 0 : M.nextSibling;
|
|
410
410
|
if (!M || !M["s-nr"]) {
|
|
@@ -415,7 +415,7 @@ var J, De, ae, Ce = !1, ve = !1, Ie = !1, z = !1, ke = (s, e, n, i) => {
|
|
|
415
415
|
O = O.previousSibling;
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
(!H &&
|
|
418
|
+
(!H && E !== $.parentNode || $.nextSibling !== H) && $ !== H && (!$["s-hn"] && $["s-ol"] && ($["s-hn"] = $["s-ol"].parentNode.nodeName), Z(E, $, H), $.nodeType === 1 && ($.hidden = (d = $["s-ih"]) != null ? d : !1)), $ && typeof _["s-rf"] == "function" && _["s-rf"]($);
|
|
419
419
|
} else
|
|
420
420
|
$.nodeType === 1 && (n && ($["s-ih"] = (f = $.hidden) != null ? f : !1), $.hidden = !0);
|
|
421
421
|
}
|
|
@@ -483,8 +483,8 @@ var J, De, ae, Ce = !1, ve = !1, Ie = !1, z = !1, ke = (s, e, n, i) => {
|
|
|
483
483
|
y && y.map(($) => {
|
|
484
484
|
try {
|
|
485
485
|
h[$](n, f, e);
|
|
486
|
-
} catch (
|
|
487
|
-
ye(
|
|
486
|
+
} catch (_) {
|
|
487
|
+
ye(_, d);
|
|
488
488
|
}
|
|
489
489
|
});
|
|
490
490
|
}
|
|
@@ -522,8 +522,8 @@ var J, De, ae, Ce = !1, ve = !1, Ie = !1, z = !1, ke = (s, e, n, i) => {
|
|
|
522
522
|
this[$] == x)
|
|
523
523
|
return;
|
|
524
524
|
if ($ == null) {
|
|
525
|
-
const
|
|
526
|
-
if (
|
|
525
|
+
const _ = Y(this), E = _ == null ? void 0 : _.$flags$;
|
|
526
|
+
if (E && !(E & 8) && E & 128 && x !== b) {
|
|
527
527
|
const O = this, M = (y = e.$watchers$) == null ? void 0 : y[h];
|
|
528
528
|
M == null || M.forEach((W) => {
|
|
529
529
|
O[W] != null && O[W].call(O, x, b, h);
|
|
@@ -2387,10 +2387,10 @@ const Wa = {}, qa = /* @__PURE__ */ Object.freeze({
|
|
|
2387
2387
|
o.JS_MD5_NO_WINDOW && (i = !1);
|
|
2388
2388
|
var d = !i && typeof self == "object", f = !o.JS_MD5_NO_NODE_JS && typeof process == "object" && process.versions && process.versions.node;
|
|
2389
2389
|
f ? o = va : d && (o = self);
|
|
2390
|
-
var u = !o.JS_MD5_NO_COMMON_JS && !0 && s.exports, h = !o.JS_MD5_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", b = "0123456789abcdef".split(""), x = [128, 32768, 8388608, -2147483648], y = [0, 8, 16, 24], $ = ["hex", "array", "digest", "buffer", "arrayBuffer", "base64"],
|
|
2390
|
+
var u = !o.JS_MD5_NO_COMMON_JS && !0 && s.exports, h = !o.JS_MD5_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", b = "0123456789abcdef".split(""), x = [128, 32768, 8388608, -2147483648], y = [0, 8, 16, 24], $ = ["hex", "array", "digest", "buffer", "arrayBuffer", "base64"], _ = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), E = [], H;
|
|
2391
2391
|
if (h) {
|
|
2392
2392
|
var O = new ArrayBuffer(68);
|
|
2393
|
-
H = new Uint8Array(O),
|
|
2393
|
+
H = new Uint8Array(O), E = new Uint32Array(O);
|
|
2394
2394
|
}
|
|
2395
2395
|
var M = Array.isArray;
|
|
2396
2396
|
(o.JS_MD5_NO_NODE_JS || !M) && (M = function(a) {
|
|
@@ -2459,7 +2459,7 @@ const Wa = {}, qa = /* @__PURE__ */ Object.freeze({
|
|
|
2459
2459
|
};
|
|
2460
2460
|
function I(a) {
|
|
2461
2461
|
if (a)
|
|
2462
|
-
|
|
2462
|
+
E[0] = E[16] = E[1] = E[2] = E[3] = E[4] = E[5] = E[6] = E[7] = E[8] = E[9] = E[10] = E[11] = E[12] = E[13] = E[14] = E[15] = 0, this.blocks = E, this.buffer8 = H;
|
|
2463
2463
|
else if (h) {
|
|
2464
2464
|
var l = new ArrayBuffer(68);
|
|
2465
2465
|
this.buffer8 = new Uint8Array(l), this.blocks = new Uint32Array(l);
|
|
@@ -2529,8 +2529,8 @@ const Wa = {}, qa = /* @__PURE__ */ Object.freeze({
|
|
|
2529
2529
|
return l[0] = this.h0, l[1] = this.h1, l[2] = this.h2, l[3] = this.h3, a;
|
|
2530
2530
|
}, I.prototype.buffer = I.prototype.arrayBuffer, I.prototype.base64 = function() {
|
|
2531
2531
|
for (var a, l, r, c = "", w = this.array(), k = 0; k < 15; )
|
|
2532
|
-
a = w[k++], l = w[k++], r = w[k++], c +=
|
|
2533
|
-
return a = w[k], c +=
|
|
2532
|
+
a = w[k++], l = w[k++], r = w[k++], c += _[a >>> 2] + _[(a << 4 | l >>> 4) & 63] + _[(l << 2 | r >>> 6) & 63] + _[r & 63];
|
|
2533
|
+
return a = w[k], c += _[a >>> 2] + _[a << 4 & 63] + "==", c;
|
|
2534
2534
|
};
|
|
2535
2535
|
function de(a, l) {
|
|
2536
2536
|
var r, c = We(a);
|
|
@@ -2572,12 +2572,12 @@ const Ga = (s) => (e) => null;
|
|
|
2572
2572
|
*/
|
|
2573
2573
|
const Ja = (s, e) => {
|
|
2574
2574
|
const n = ne.exports.forwardRef(({ color: i = "currentColor", size: o = 24, strokeWidth: d, className: f = "", variant: u = "stroke", type: h = "rounded", ...b }, x) => {
|
|
2575
|
-
var
|
|
2576
|
-
const y = `${u}.${h}`, $ = { ref: x, ...Aa, width: o, height: o, color: i, className: f, ...b },
|
|
2575
|
+
var E;
|
|
2576
|
+
const y = `${u}.${h}`, $ = { ref: x, ...Aa, width: o, height: o, color: i, className: f, ...b }, _ = (E = e[y]) == null ? void 0 : E.map(([H, O]) => {
|
|
2577
2577
|
const M = { ...O };
|
|
2578
2578
|
return d !== void 0 && "strokeWidth" in O && (M.strokeWidth = d), ne.exports.createElement(H, { ...M, key: O.key });
|
|
2579
2579
|
});
|
|
2580
|
-
return ne.exports.createElement("svg", $,
|
|
2580
|
+
return ne.exports.createElement("svg", $, _);
|
|
2581
2581
|
});
|
|
2582
2582
|
return n.displayName = `${s}Icon`, Ga();
|
|
2583
2583
|
};
|
|
@@ -4955,8 +4955,7 @@ const Bn = /* @__PURE__ */ g(class extends m {
|
|
|
4955
4955
|
super(), this.__registerHost(), this.config = void 0;
|
|
4956
4956
|
}
|
|
4957
4957
|
render() {
|
|
4958
|
-
|
|
4959
|
-
return t("dga-nav-header", { key: "be5082e5b3f415c36207a1e99c474d9e85bc0511", fullWidth: e, divider: n }, t("dga-nav-header-main", { key: "96b52005a412b05580746f2c1b75039537d45d39", collapsed: !0 }, t("dga-nav-header-logos", { key: "a4c2efc96b31e7fb8f192891f0ce6021069bb726", logoSrc: d, govSrc: f, logoLink: u, govLink: h }), t("dga-nav-header-menu", { key: "fa6a999040e8b0eb3d24999c08f8f598c9f5acc2" }, b.map((y) => t("dga-nav-header-link", { active: !1, onClick: () => console.log("clicked"), label: y.label, icon: t("dga-icon", { icon: y.icon }), subMenuBackground: i, subMenuFullWidth: o }, y.subMenu.map(($) => t("dga-nav-header-sub-menu-column", null, $.columns.map((E) => t("dga-nav-header-sub-menu-column", null, E.links.map((_) => t("dga-nav-header-sub-menu-link", { background: i, label: _.label, helperText: _.helperText, icon: t("dga-icon", { icon: _.icon }), linkStyle: _.linkStyle })))))))))), t("dga-nav-header-actions", { key: "666aa1c363acddb8f97b4b23b978266a38aa1fdb" }, x.map((y) => t("dga-nav-header-action-btn", { onClick: () => console.log("clicked"), label: y.label, icon: t("dga-icon", { icon: y.icon }) }))));
|
|
4958
|
+
return t("dga-nav-header", { key: "598e0d352b92fd36966481d74b51646dedcaadfb", fullWidth: this.config.fullWidth, divider: this.config.divider }, t("dga-nav-header-main", { key: "c6e838db15a9a3bf770d65961f6b9f0e2ac6bb39", collapsed: !0 }, t("dga-nav-header-logos", { key: "31a9e48184ecf188f8e6997336b9166bc870b4ff", logoSrc: this.config.logoSrc, govSrc: this.config.govSrc, logoLink: this.config.logoLink, govLink: this.config.govLink }), t("dga-nav-header-menu", { key: "83c097f6b6499b82bcbeace6fc0311e429c3dd48" }, this.config.headerLinks.map((e) => t("dga-nav-header-link", { active: !1, onClick: () => console.log("clicked"), label: e.label, icon: t("dga-icon", { icon: e.icon }), subMenuBackground: this.config.subMenuBackground, subMenuFullWidth: this.config.subMenuFullWidth }, e.subMenu.map((n) => t("dga-nav-header-sub-menu-column", null, n.columns.map((i) => t("dga-nav-header-sub-menu-column", null, i.links.map((o) => t("dga-nav-header-sub-menu-link", { background: this.config.subMenuBackground, label: o.label, helperText: o.helperText, icon: t("dga-icon", { icon: o.icon }), linkStyle: o.linkStyle })))))))))), t("dga-nav-header-actions", { key: "9a40429d3ae6bae6caaf299e8e28c6ea0c67376b" }, this.config.actions.map((e) => t("dga-nav-header-action-btn", { onClick: () => console.log("clicked"), label: e.label, icon: t("dga-icon", { icon: e.icon }) }))));
|
|
4960
4959
|
}
|
|
4961
4960
|
}, [0, "dga-header", {
|
|
4962
4961
|
config: [16]
|
|
@@ -5242,18 +5241,18 @@ const El = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
|
|
|
5242
5241
|
}, wl = ({ react: s, tagName: e, elementClass: n, events: i, displayName: o }) => {
|
|
5243
5242
|
const d = new Set(Object.keys(i ?? {})), f = s.forwardRef((u, h) => {
|
|
5244
5243
|
const b = s.useRef(/* @__PURE__ */ new Map()), x = s.useRef(null), y = {}, $ = {};
|
|
5245
|
-
for (const [
|
|
5244
|
+
for (const [_, E] of Object.entries(u)) El.has(_) ? y[_ === "className" ? "class" : _] = E : d.has(_) || _ in n.prototype ? $[_] = E : y[_] = E;
|
|
5246
5245
|
return s.useLayoutEffect(() => {
|
|
5247
5246
|
if (x.current === null) return;
|
|
5248
|
-
const
|
|
5249
|
-
for (const
|
|
5250
|
-
for (const [
|
|
5251
|
-
b.current =
|
|
5247
|
+
const _ = /* @__PURE__ */ new Map();
|
|
5248
|
+
for (const E in $) ut(x.current, E, u[E], b.current.get(E), i), b.current.delete(E), _.set(E, u[E]);
|
|
5249
|
+
for (const [E, H] of b.current) ut(x.current, E, void 0, H, i);
|
|
5250
|
+
b.current = _;
|
|
5252
5251
|
}), s.useLayoutEffect(() => {
|
|
5253
|
-
var
|
|
5254
|
-
(
|
|
5255
|
-
}, []), y.suppressHydrationWarning = !0, s.createElement(e, { ...y, ref: s.useCallback((
|
|
5256
|
-
x.current =
|
|
5252
|
+
var _;
|
|
5253
|
+
(_ = x.current) == null || _.removeAttribute("defer-hydration");
|
|
5254
|
+
}, []), y.suppressHydrationWarning = !0, s.createElement(e, { ...y, ref: s.useCallback((_) => {
|
|
5255
|
+
x.current = _, typeof h == "function" ? h(_) : h !== null && (h.current = _);
|
|
5257
5256
|
}, [h]) });
|
|
5258
5257
|
});
|
|
5259
5258
|
return f.displayName = o ?? n.name, f;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|