@webority/ui-react 0.143.1 → 0.144.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.
- package/dist/canvas-kit/kit.js +153 -42
- package/dist/canvas-kit/manifest.json +138 -2
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppAvatar.js +1 -1
- package/dist/components/AppConfirmDialog.js +1 -1
- package/dist/components/AppModal.js +1 -1
- package/dist/guidance.json +1 -1
- package/package.json +7 -7
package/dist/canvas-kit/kit.js
CHANGED
|
@@ -13397,40 +13397,36 @@ function vfe(e) {
|
|
|
13397
13397
|
return Number.isNaN(t) ? 32 : t;
|
|
13398
13398
|
}
|
|
13399
13399
|
function bc(r) {
|
|
13400
|
-
let { marker: i, props: a } = U("AppAvatar", r), { name: o, src: s, size: c = "md", shape: l = "circle", tone: u = "primary", status: d = "none", ring: f = !1, label: p, icon: m, iconVariant:
|
|
13401
|
-
G("AppAvatar",
|
|
13402
|
-
let { style:
|
|
13403
|
-
h(() => {
|
|
13404
|
-
A(!1);
|
|
13405
|
-
}, [s]);
|
|
13406
|
-
let j = typeof c == "string" && mfe.has(c), M = j ? null : typeof c == "number" || /^\d+$/.test(c) ? `${c}px` : c, N = v != null || y != null, P = s != null && s !== "" && !k, F = [
|
|
13400
|
+
let { marker: i, props: a } = U("AppAvatar", r), { name: o, src: s, size: c = "md", shape: l = "circle", tone: u = "primary", status: d = "none", ring: f = !1, label: p, icon: m, iconVariant: h, badge: g, href: _, onClick: v, linkComponent: y, tooltip: b, tooltipPlacement: x, className: S = "", photoLabel: w = "Profile photo", ...T } = a;
|
|
13401
|
+
G("AppAvatar", T), W("AppAvatar", "shape", l, ufe), W("AppAvatar", "tone", u, dfe), W("AppAvatar", "status", d, ffe), W("AppAvatar", "iconVariant", h, pfe);
|
|
13402
|
+
let { style: E, ...D } = T, [O, k] = C(null), A = O != null && O === s, j = typeof c == "string" && mfe.has(c), M = j ? null : typeof c == "number" || /^\d+$/.test(c) ? `${c}px` : c, N = _ != null || v != null, P = s != null && s !== "" && !A, F = [
|
|
13407
13403
|
"avatar",
|
|
13408
13404
|
j && c !== "md" ? `avatar-${c}` : "",
|
|
13409
13405
|
l === "circle" ? "" : `avatar-${l}`,
|
|
13410
13406
|
u === "primary" ? "" : `avatar-${u}`,
|
|
13411
13407
|
f ? "avatar-ring" : "",
|
|
13412
13408
|
N ? "avatar-clickable" : "",
|
|
13413
|
-
|
|
13409
|
+
S
|
|
13414
13410
|
].filter(Boolean).join(" "), I = {};
|
|
13415
13411
|
M && (I["--avatar-size"] = M), u === "auto" && (I["--avatar-hue"] = _fe(o));
|
|
13416
|
-
let L = Object.keys(I).length ||
|
|
13412
|
+
let L = Object.keys(I).length || E ? {
|
|
13417
13413
|
...I,
|
|
13418
|
-
...
|
|
13414
|
+
...E
|
|
13419
13415
|
} : void 0, R = /* @__PURE__ */ t("span", {
|
|
13420
13416
|
className: "avatar-face",
|
|
13421
13417
|
"aria-hidden": "true",
|
|
13422
13418
|
children: m != null && m !== !1 && m !== "" ? yc(m, {
|
|
13423
13419
|
size: Math.round(vfe(c) * .55),
|
|
13424
|
-
variant:
|
|
13420
|
+
variant: h
|
|
13425
13421
|
}) : gfe(o)
|
|
13426
13422
|
}), z = /* @__PURE__ */ n(e, { children: [
|
|
13427
13423
|
d !== "none" && /* @__PURE__ */ t("span", {
|
|
13428
13424
|
className: `avatar-status avatar-status-${d}`,
|
|
13429
13425
|
"aria-hidden": "true"
|
|
13430
13426
|
}),
|
|
13431
|
-
|
|
13427
|
+
g != null && /* @__PURE__ */ t("span", {
|
|
13432
13428
|
className: "avatar-badge",
|
|
13433
|
-
children:
|
|
13429
|
+
children: g
|
|
13434
13430
|
}),
|
|
13435
13431
|
p != null && /* @__PURE__ */ t("span", {
|
|
13436
13432
|
className: "avatar-label",
|
|
@@ -13442,47 +13438,47 @@ function bc(r) {
|
|
|
13442
13438
|
P && /* @__PURE__ */ t("img", {
|
|
13443
13439
|
className: "avatar-img",
|
|
13444
13440
|
src: s,
|
|
13445
|
-
alt: N ? "" : o ||
|
|
13446
|
-
onError: () =>
|
|
13441
|
+
alt: N ? "" : o || w,
|
|
13442
|
+
onError: () => k(s)
|
|
13447
13443
|
}),
|
|
13448
13444
|
z
|
|
13449
13445
|
] });
|
|
13450
|
-
if (
|
|
13451
|
-
let e =
|
|
13446
|
+
if (_ != null) {
|
|
13447
|
+
let e = y || "a", n = y ? { to: _ } : { href: _ };
|
|
13452
13448
|
return nc(/* @__PURE__ */ t(e, {
|
|
13453
13449
|
className: F,
|
|
13454
13450
|
style: L,
|
|
13455
13451
|
...i,
|
|
13456
|
-
...
|
|
13452
|
+
...D,
|
|
13457
13453
|
"aria-label": p || o,
|
|
13458
13454
|
...n,
|
|
13459
|
-
onClick:
|
|
13455
|
+
onClick: v,
|
|
13460
13456
|
children: B
|
|
13461
|
-
}),
|
|
13457
|
+
}), b, x);
|
|
13462
13458
|
}
|
|
13463
|
-
if (
|
|
13459
|
+
if (v != null) return nc(/* @__PURE__ */ t("button", {
|
|
13464
13460
|
type: "button",
|
|
13465
13461
|
className: F,
|
|
13466
13462
|
style: L,
|
|
13467
13463
|
...i,
|
|
13468
|
-
...
|
|
13464
|
+
...D,
|
|
13469
13465
|
"aria-label": p || o,
|
|
13470
|
-
onClick:
|
|
13466
|
+
onClick: v,
|
|
13471
13467
|
children: B
|
|
13472
|
-
}),
|
|
13468
|
+
}), b, x);
|
|
13473
13469
|
if (P) return nc(/* @__PURE__ */ t("span", {
|
|
13474
13470
|
className: F,
|
|
13475
13471
|
style: L,
|
|
13476
13472
|
...i,
|
|
13477
|
-
...
|
|
13473
|
+
...D,
|
|
13478
13474
|
children: B
|
|
13479
|
-
}),
|
|
13475
|
+
}), b, x);
|
|
13480
13476
|
let V = p?.trim() || o?.trim();
|
|
13481
13477
|
return nc(V ? /* @__PURE__ */ t("span", {
|
|
13482
13478
|
className: F,
|
|
13483
13479
|
style: L,
|
|
13484
13480
|
...i,
|
|
13485
|
-
...
|
|
13481
|
+
...D,
|
|
13486
13482
|
role: "img",
|
|
13487
13483
|
"aria-label": V,
|
|
13488
13484
|
children: B
|
|
@@ -13490,10 +13486,10 @@ function bc(r) {
|
|
|
13490
13486
|
className: F,
|
|
13491
13487
|
style: L,
|
|
13492
13488
|
...i,
|
|
13493
|
-
...
|
|
13489
|
+
...D,
|
|
13494
13490
|
"aria-hidden": "true",
|
|
13495
13491
|
children: B
|
|
13496
|
-
}),
|
|
13492
|
+
}), b, x);
|
|
13497
13493
|
}
|
|
13498
13494
|
// dist/components/AppAccountSwitcher.js
|
|
13499
13495
|
function yfe(e) {
|
|
@@ -59958,7 +59954,7 @@ function OG(e) {
|
|
|
59958
59954
|
let e = B.current?.closest(".modal-content");
|
|
59959
59955
|
if (!e) return;
|
|
59960
59956
|
let t = () => Array.from(e.querySelectorAll(AUe));
|
|
59961
|
-
(e.querySelector("[data-autofocus]") || t().find((e) => !e.classList.contains("wui-modal-close") && !e.classList.contains("wui-modal-back")) || t()[0] || e).focus?.();
|
|
59957
|
+
(e.querySelector("[data-autofocus]") || t().find((e) => !e.classList.contains("wui-modal-close") && !e.classList.contains("wui-modal-back")) || t()[0] || e).focus?.({ preventScroll: !0 });
|
|
59962
59958
|
let n = e.closest(".modal"), r = FUe(), i = (e) => PUe(e, n);
|
|
59963
59959
|
return n?.addEventListener("keydown", i), () => {
|
|
59964
59960
|
n?.removeEventListener("keydown", i);
|
|
@@ -62466,7 +62462,8 @@ function nGe(r) {
|
|
|
62466
62462
|
footer: /* @__PURE__ */ n("div", {
|
|
62467
62463
|
className: "wui-confirm-actions",
|
|
62468
62464
|
children: [/* @__PURE__ */ t(Ec, {
|
|
62469
|
-
|
|
62465
|
+
tone: "neutral",
|
|
62466
|
+
...F ? {} : { variant: "soft" },
|
|
62470
62467
|
size: I,
|
|
62471
62468
|
disabled: x,
|
|
62472
62469
|
onClick: z,
|
|
@@ -68231,7 +68228,7 @@ function hJe(e) {
|
|
|
68231
68228
|
children: c
|
|
68232
68229
|
});
|
|
68233
68230
|
}
|
|
68234
|
-
// ../elements/dist/WuiDrawer-
|
|
68231
|
+
// ../elements/dist/WuiDrawer-SkxcDhgf.js
|
|
68235
68232
|
Sm();
|
|
68236
68233
|
var gJe = [50, 90], _Je = 10, vJe = 100;
|
|
68237
68234
|
function yJe(e, t = gJe) {
|
|
@@ -68356,7 +68353,7 @@ var EJe = class extends xm {
|
|
|
68356
68353
|
let e = this._panel();
|
|
68357
68354
|
if (!e) return;
|
|
68358
68355
|
let t = e.querySelector("[data-autofocus]"), n = this._sheet() ? null : this._focusables().find((e) => e.closest(".wui-drawer-body"));
|
|
68359
|
-
(t || n || e).focus?.();
|
|
68356
|
+
(t || n || e).focus?.({ preventScroll: !0 });
|
|
68360
68357
|
}
|
|
68361
68358
|
_dismissible() {
|
|
68362
68359
|
return !this.hasAttribute("static") && !this.hasAttribute("no-dismiss");
|
|
@@ -134419,7 +134416,7 @@ var rSt = d(function({ compact: r, tenant: i, "aria-label": a, className: o, ...
|
|
|
134419
134416
|
kind: "WeborityWeb",
|
|
134420
134417
|
library: {
|
|
134421
134418
|
name: "@webority/ui-react",
|
|
134422
|
-
version: "0.
|
|
134419
|
+
version: "0.144.1"
|
|
134423
134420
|
},
|
|
134424
134421
|
rendererProtocolVersion: 13,
|
|
134425
134422
|
platform: "Web",
|
|
@@ -161012,13 +161009,86 @@ var rSt = d(function({ compact: r, tenant: i, "aria-label": a, className: o, ...
|
|
|
161012
161009
|
},
|
|
161013
161010
|
{
|
|
161014
161011
|
version: "0.108.0",
|
|
161015
|
-
components: [
|
|
161016
|
-
|
|
161017
|
-
|
|
161018
|
-
|
|
161019
|
-
|
|
161020
|
-
|
|
161021
|
-
|
|
161012
|
+
components: [
|
|
161013
|
+
{
|
|
161014
|
+
name: "AppSelectMini",
|
|
161015
|
+
to: "AppSelect",
|
|
161016
|
+
props: { prefix: "valuePrefix" },
|
|
161017
|
+
values: {},
|
|
161018
|
+
added: { compact: !0 },
|
|
161019
|
+
removed: {}
|
|
161020
|
+
},
|
|
161021
|
+
{
|
|
161022
|
+
name: "AppInfoList",
|
|
161023
|
+
to: "AppDescriptions",
|
|
161024
|
+
props: {},
|
|
161025
|
+
values: {},
|
|
161026
|
+
added: {
|
|
161027
|
+
layout: "list",
|
|
161028
|
+
columns: 1
|
|
161029
|
+
},
|
|
161030
|
+
removed: {}
|
|
161031
|
+
},
|
|
161032
|
+
{
|
|
161033
|
+
name: "AppLogoPicker",
|
|
161034
|
+
to: "AppImagePicker",
|
|
161035
|
+
props: {},
|
|
161036
|
+
values: {},
|
|
161037
|
+
added: {},
|
|
161038
|
+
removed: {}
|
|
161039
|
+
},
|
|
161040
|
+
{
|
|
161041
|
+
name: "AppAvatarPicker",
|
|
161042
|
+
to: "AppImagePicker",
|
|
161043
|
+
props: { initials: "fallback" },
|
|
161044
|
+
values: {},
|
|
161045
|
+
added: { kind: "avatar" },
|
|
161046
|
+
removed: {}
|
|
161047
|
+
},
|
|
161048
|
+
{
|
|
161049
|
+
name: "AppPagination",
|
|
161050
|
+
to: "AppTablePagination",
|
|
161051
|
+
props: {},
|
|
161052
|
+
values: {},
|
|
161053
|
+
added: { variant: "standalone" },
|
|
161054
|
+
removed: {}
|
|
161055
|
+
},
|
|
161056
|
+
{
|
|
161057
|
+
name: "AppSidebarMenu",
|
|
161058
|
+
to: "AppDrawer",
|
|
161059
|
+
props: { show: "open" },
|
|
161060
|
+
values: { side: {
|
|
161061
|
+
right: "end",
|
|
161062
|
+
left: "start"
|
|
161063
|
+
} },
|
|
161064
|
+
added: {
|
|
161065
|
+
sheet: !1,
|
|
161066
|
+
width: "420px"
|
|
161067
|
+
},
|
|
161068
|
+
removed: {
|
|
161069
|
+
backdrop: "removed: AppDrawer always draws its backdrop; use staticBackdrop to stop a click closing it",
|
|
161070
|
+
scroll: "removed: the page behind a drawer never scrolls",
|
|
161071
|
+
keyboard: "removed: Escape always closes; set dismissible={false} for a drawer only an action closes",
|
|
161072
|
+
responsive: "removed: no inline mode; render the content in the page at that width instead",
|
|
161073
|
+
closeButton: "removed: set dismissible={false}"
|
|
161074
|
+
}
|
|
161075
|
+
},
|
|
161076
|
+
{
|
|
161077
|
+
name: "AppTableEmptyState",
|
|
161078
|
+
to: "AppEmptyState",
|
|
161079
|
+
props: {},
|
|
161080
|
+
values: {},
|
|
161081
|
+
added: { variant: "table" },
|
|
161082
|
+
removed: {}
|
|
161083
|
+
},
|
|
161084
|
+
{
|
|
161085
|
+
name: "AppStepper",
|
|
161086
|
+
props: { activeStep: "active" },
|
|
161087
|
+
values: {},
|
|
161088
|
+
added: {},
|
|
161089
|
+
removed: {}
|
|
161090
|
+
}
|
|
161091
|
+
],
|
|
161022
161092
|
values: {}
|
|
161023
161093
|
},
|
|
161024
161094
|
{
|
|
@@ -161299,7 +161369,48 @@ var rSt = d(function({ compact: r, tenant: i, "aria-label": a, className: o, ...
|
|
|
161299
161369
|
},
|
|
161300
161370
|
{
|
|
161301
161371
|
version: "0.139.0",
|
|
161302
|
-
components: [
|
|
161372
|
+
components: [
|
|
161373
|
+
{
|
|
161374
|
+
name: "AppAutocomplete",
|
|
161375
|
+
to: "AppSelect",
|
|
161376
|
+
props: {},
|
|
161377
|
+
values: {},
|
|
161378
|
+
added: { mode: "search" },
|
|
161379
|
+
removed: {}
|
|
161380
|
+
},
|
|
161381
|
+
{
|
|
161382
|
+
name: "AppMultiSelect",
|
|
161383
|
+
to: "AppSelect",
|
|
161384
|
+
props: {
|
|
161385
|
+
values: "value",
|
|
161386
|
+
defaultValues: "defaultValue",
|
|
161387
|
+
customPattern: "pattern",
|
|
161388
|
+
customInvalidMessage: "invalidMessage"
|
|
161389
|
+
},
|
|
161390
|
+
values: {},
|
|
161391
|
+
added: { mode: "multiple" },
|
|
161392
|
+
removed: {}
|
|
161393
|
+
},
|
|
161394
|
+
{
|
|
161395
|
+
name: "AppTagInput",
|
|
161396
|
+
to: "AppSelect",
|
|
161397
|
+
props: {
|
|
161398
|
+
values: "value",
|
|
161399
|
+
defaultValues: "defaultValue"
|
|
161400
|
+
},
|
|
161401
|
+
values: {},
|
|
161402
|
+
added: { mode: "tag" },
|
|
161403
|
+
removed: {}
|
|
161404
|
+
},
|
|
161405
|
+
{
|
|
161406
|
+
name: "AppCountrySelect",
|
|
161407
|
+
to: "AppSelect",
|
|
161408
|
+
props: {},
|
|
161409
|
+
values: {},
|
|
161410
|
+
added: { mode: "country" },
|
|
161411
|
+
removed: {}
|
|
161412
|
+
}
|
|
161413
|
+
],
|
|
161303
161414
|
values: {}
|
|
161304
161415
|
}
|
|
161305
161416
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"kind": "WeborityWeb",
|
|
3
3
|
"library": {
|
|
4
4
|
"name": "@webority/ui-react",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.144.1"
|
|
6
6
|
},
|
|
7
7
|
"rendererProtocolVersion": 13,
|
|
8
8
|
"platform": "Web",
|
|
@@ -29941,6 +29941,93 @@
|
|
|
29941
29941
|
{
|
|
29942
29942
|
"version": "0.108.0",
|
|
29943
29943
|
"components": [
|
|
29944
|
+
{
|
|
29945
|
+
"name": "AppSelectMini",
|
|
29946
|
+
"to": "AppSelect",
|
|
29947
|
+
"props": {
|
|
29948
|
+
"prefix": "valuePrefix"
|
|
29949
|
+
},
|
|
29950
|
+
"values": {},
|
|
29951
|
+
"added": {
|
|
29952
|
+
"compact": true
|
|
29953
|
+
},
|
|
29954
|
+
"removed": {}
|
|
29955
|
+
},
|
|
29956
|
+
{
|
|
29957
|
+
"name": "AppInfoList",
|
|
29958
|
+
"to": "AppDescriptions",
|
|
29959
|
+
"props": {},
|
|
29960
|
+
"values": {},
|
|
29961
|
+
"added": {
|
|
29962
|
+
"layout": "list",
|
|
29963
|
+
"columns": 1
|
|
29964
|
+
},
|
|
29965
|
+
"removed": {}
|
|
29966
|
+
},
|
|
29967
|
+
{
|
|
29968
|
+
"name": "AppLogoPicker",
|
|
29969
|
+
"to": "AppImagePicker",
|
|
29970
|
+
"props": {},
|
|
29971
|
+
"values": {},
|
|
29972
|
+
"added": {},
|
|
29973
|
+
"removed": {}
|
|
29974
|
+
},
|
|
29975
|
+
{
|
|
29976
|
+
"name": "AppAvatarPicker",
|
|
29977
|
+
"to": "AppImagePicker",
|
|
29978
|
+
"props": {
|
|
29979
|
+
"initials": "fallback"
|
|
29980
|
+
},
|
|
29981
|
+
"values": {},
|
|
29982
|
+
"added": {
|
|
29983
|
+
"kind": "avatar"
|
|
29984
|
+
},
|
|
29985
|
+
"removed": {}
|
|
29986
|
+
},
|
|
29987
|
+
{
|
|
29988
|
+
"name": "AppPagination",
|
|
29989
|
+
"to": "AppTablePagination",
|
|
29990
|
+
"props": {},
|
|
29991
|
+
"values": {},
|
|
29992
|
+
"added": {
|
|
29993
|
+
"variant": "standalone"
|
|
29994
|
+
},
|
|
29995
|
+
"removed": {}
|
|
29996
|
+
},
|
|
29997
|
+
{
|
|
29998
|
+
"name": "AppSidebarMenu",
|
|
29999
|
+
"to": "AppDrawer",
|
|
30000
|
+
"props": {
|
|
30001
|
+
"show": "open"
|
|
30002
|
+
},
|
|
30003
|
+
"values": {
|
|
30004
|
+
"side": {
|
|
30005
|
+
"right": "end",
|
|
30006
|
+
"left": "start"
|
|
30007
|
+
}
|
|
30008
|
+
},
|
|
30009
|
+
"added": {
|
|
30010
|
+
"sheet": false,
|
|
30011
|
+
"width": "420px"
|
|
30012
|
+
},
|
|
30013
|
+
"removed": {
|
|
30014
|
+
"backdrop": "removed: AppDrawer always draws its backdrop; use staticBackdrop to stop a click closing it",
|
|
30015
|
+
"scroll": "removed: the page behind a drawer never scrolls",
|
|
30016
|
+
"keyboard": "removed: Escape always closes; set dismissible={false} for a drawer only an action closes",
|
|
30017
|
+
"responsive": "removed: no inline mode; render the content in the page at that width instead",
|
|
30018
|
+
"closeButton": "removed: set dismissible={false}"
|
|
30019
|
+
}
|
|
30020
|
+
},
|
|
30021
|
+
{
|
|
30022
|
+
"name": "AppTableEmptyState",
|
|
30023
|
+
"to": "AppEmptyState",
|
|
30024
|
+
"props": {},
|
|
30025
|
+
"values": {},
|
|
30026
|
+
"added": {
|
|
30027
|
+
"variant": "table"
|
|
30028
|
+
},
|
|
30029
|
+
"removed": {}
|
|
30030
|
+
},
|
|
29944
30031
|
{
|
|
29945
30032
|
"name": "AppStepper",
|
|
29946
30033
|
"props": {
|
|
@@ -30315,7 +30402,56 @@
|
|
|
30315
30402
|
},
|
|
30316
30403
|
{
|
|
30317
30404
|
"version": "0.139.0",
|
|
30318
|
-
"components": [
|
|
30405
|
+
"components": [
|
|
30406
|
+
{
|
|
30407
|
+
"name": "AppAutocomplete",
|
|
30408
|
+
"to": "AppSelect",
|
|
30409
|
+
"props": {},
|
|
30410
|
+
"values": {},
|
|
30411
|
+
"added": {
|
|
30412
|
+
"mode": "search"
|
|
30413
|
+
},
|
|
30414
|
+
"removed": {}
|
|
30415
|
+
},
|
|
30416
|
+
{
|
|
30417
|
+
"name": "AppMultiSelect",
|
|
30418
|
+
"to": "AppSelect",
|
|
30419
|
+
"props": {
|
|
30420
|
+
"values": "value",
|
|
30421
|
+
"defaultValues": "defaultValue",
|
|
30422
|
+
"customPattern": "pattern",
|
|
30423
|
+
"customInvalidMessage": "invalidMessage"
|
|
30424
|
+
},
|
|
30425
|
+
"values": {},
|
|
30426
|
+
"added": {
|
|
30427
|
+
"mode": "multiple"
|
|
30428
|
+
},
|
|
30429
|
+
"removed": {}
|
|
30430
|
+
},
|
|
30431
|
+
{
|
|
30432
|
+
"name": "AppTagInput",
|
|
30433
|
+
"to": "AppSelect",
|
|
30434
|
+
"props": {
|
|
30435
|
+
"values": "value",
|
|
30436
|
+
"defaultValues": "defaultValue"
|
|
30437
|
+
},
|
|
30438
|
+
"values": {},
|
|
30439
|
+
"added": {
|
|
30440
|
+
"mode": "tag"
|
|
30441
|
+
},
|
|
30442
|
+
"removed": {}
|
|
30443
|
+
},
|
|
30444
|
+
{
|
|
30445
|
+
"name": "AppCountrySelect",
|
|
30446
|
+
"to": "AppSelect",
|
|
30447
|
+
"props": {},
|
|
30448
|
+
"values": {},
|
|
30449
|
+
"added": {
|
|
30450
|
+
"mode": "country"
|
|
30451
|
+
},
|
|
30452
|
+
"removed": {}
|
|
30453
|
+
}
|
|
30454
|
+
],
|
|
30319
30455
|
"values": {}
|
|
30320
30456
|
}
|
|
30321
30457
|
]
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webority-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.144.1",
|
|
4
4
|
"platform": "Web",
|
|
5
5
|
"kitModuleVersion": 2,
|
|
6
6
|
"rendererProtocolVersion": 13,
|
|
7
7
|
"library": {
|
|
8
8
|
"name": "@webority/ui-react",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.144.1"
|
|
10
10
|
},
|
|
11
11
|
"files": {
|
|
12
12
|
"manifest.json": {
|
|
13
|
-
"sha256": "
|
|
14
|
-
"bytes":
|
|
13
|
+
"sha256": "601720b5976c7e3294668bd46e46b3465499bc74df386958eae1bf6a32d37af9",
|
|
14
|
+
"bytes": 983587
|
|
15
15
|
},
|
|
16
16
|
"kit.js": {
|
|
17
|
-
"sha256": "
|
|
18
|
-
"bytes":
|
|
17
|
+
"sha256": "088b014b68e92d2c2b2276fec87116ad3ecd95fdd1b01feed99a9cdb11fd22b7",
|
|
18
|
+
"bytes": 11175319
|
|
19
19
|
},
|
|
20
20
|
"kit.css": {
|
|
21
21
|
"sha256": "13b14f71fb6ea024945f95cba617b4f1d49f44a65ba7c7ed05d2354805539ef6",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{initialsOf as e}from"../lib/initials.js";import{TONES as t}from"../lib/vocabulary.js";import{splitMarkerProps as n}from"../lib/wuiMarker.js";import r from"./renderIconProp.js";import i from"./warnInvalidValue.js";import a from"./warnUnknownProps.js";import o from"./withTooltip.js";import{
|
|
1
|
+
import{initialsOf as e}from"../lib/initials.js";import{TONES as t}from"../lib/vocabulary.js";import{splitMarkerProps as n}from"../lib/wuiMarker.js";import r from"./renderIconProp.js";import i from"./warnInvalidValue.js";import a from"./warnUnknownProps.js";import o from"./withTooltip.js";import{useState as s}from"react";import{Fragment as c,jsx as l,jsxs as u}from"react/jsx-runtime";var d=[`circle`,`rounded`,`square`],ee=[...t,`auto`],f=[`none`,`online`,`offline`,`away`,`busy`],p=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],m=/* @__PURE__ */ new Set([`xs`,`sm`,`md`,`lg`,`xl`,`2xl`]),h={xs:20,sm:24,md:32,lg:48,xl:64,"2xl":96};function g(t){return e(t)||`?`}function _(e){let t=e||``,n=0;for(let e=0;e<t.length;e+=1)n=Math.imul(n,31)+t.charCodeAt(e)>>>0;return n%360}function v(e){if(typeof e==`number`)return e;if(h[e]!=null)return h[e];let t=Number.parseInt(e,10);return Number.isNaN(t)?32:t}function y(e){let{marker:t,props:h}=n(`AppAvatar`,e),{name:y,src:b,size:x=`md`,shape:S=`circle`,tone:C=`primary`,status:w=`none`,ring:T=!1,label:E,icon:D,iconVariant:O,badge:k,href:A,onClick:j,linkComponent:M,tooltip:N,tooltipPlacement:P,className:F=``,photoLabel:I=`Profile photo`,...L}=h;a(`AppAvatar`,L),i(`AppAvatar`,`shape`,S,d),i(`AppAvatar`,`tone`,C,ee),i(`AppAvatar`,`status`,w,f),i(`AppAvatar`,`iconVariant`,O,p);let{style:R,...z}=L,[B,V]=s(null),H=B!=null&&B===b,U=typeof x==`string`&&m.has(x),W=U?null:typeof x==`number`||/^\d+$/.test(x)?`${x}px`:x,G=A!=null||j!=null,K=b!=null&&b!==``&&!H,q=[`avatar`,U&&x!==`md`?`avatar-${x}`:``,S===`circle`?``:`avatar-${S}`,C===`primary`?``:`avatar-${C}`,T?`avatar-ring`:``,G?`avatar-clickable`:``,F].filter(Boolean).join(` `),J={};W&&(J[`--avatar-size`]=W),C===`auto`&&(J[`--avatar-hue`]=_(y));let Y=Object.keys(J).length||R?{...J,...R}:void 0,X=/* @__PURE__ */ l(`span`,{className:`avatar-face`,"aria-hidden":`true`,children:D!=null&&D!==!1&&D!==``?r(D,{size:Math.round(v(x)*.55),variant:O}):g(y)}),Z=/* @__PURE__ */ u(c,{children:[w!==`none`&&/* @__PURE__ */ l(`span`,{className:`avatar-status avatar-status-${w}`,"aria-hidden":`true`}),k!=null&&/* @__PURE__ */ l(`span`,{className:`avatar-badge`,children:k}),E!=null&&/* @__PURE__ */ l(`span`,{className:`avatar-label`,"aria-hidden":`true`,children:E})]}),Q=/* @__PURE__ */ u(c,{children:[X,K&&/* @__PURE__ */ l(`img`,{className:`avatar-img`,src:b,alt:G?``:y||I,onError:()=>V(b)}),Z]});if(A!=null){let e=M||`a`,n=M?{to:A}:{href:A};return o(/* @__PURE__ */ l(e,{className:q,style:Y,...t,...z,"aria-label":E||y,...n,onClick:j,children:Q}),N,P)}if(j!=null)return o(/* @__PURE__ */ l(`button`,{type:`button`,className:q,style:Y,...t,...z,"aria-label":E||y,onClick:j,children:Q}),N,P);if(K)return o(/* @__PURE__ */ l(`span`,{className:q,style:Y,...t,...z,children:Q}),N,P);let $=E?.trim()||y?.trim();return o($?/* @__PURE__ */ l(`span`,{className:q,style:Y,...t,...z,role:`img`,"aria-label":$,children:Q}):/* @__PURE__ */ l(`span`,{className:q,style:Y,...t,...z,"aria-hidden":`true`,children:Q}),N,P)}export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../lib/fillLabel.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./AppButton.js";import r from"./AppIcon.js";import i from"./AppInput.js";import a from"./AppModal.js";import{MODAL_ICONS as o}from"./ModalIcons.js";import s from"./warnInvalidValue.js";import c from"./warnUnknownProps.js";import{useEffect as l,useState as u}from"react";import{Fragment as d,jsx as f,jsxs as p}from"react/jsx-runtime";var m=[`sm`,`md`,`lg`,`xl`],h=[`default`,`plain`],g=[`success`,`danger`,`warning`,`info`,`primary`];function _(_){let{marker:v,props:y}=t(`AppConfirmDialog`,_),{open:b,title:x,variant:S=`default`,description:C,confirmLabel:w=`Confirm`,cancelLabel:T=`Cancel`,typePhraseLabel:E=`Type {phrase} to confirm`,tone:D,image:O,icon:k,iconSize:A,confirmPhrase:j,onConfirm:M,onClose:N,loading:P=!1,staticBackdrop:F=!0,placement:I=`center`,size:L=`md`,className:R=``,children:z,...B}=y;c(`AppConfirmDialog`,B),s(`AppConfirmDialog`,`tone`,D,g),s(`AppConfirmDialog`,`size`,typeof L==`string`?L:null,m),s(`AppConfirmDialog`,`variant`,S,h);let[V,H]=u(``);if(l(()=>{b||H(``)},[b]),!b)return null;let U=!!j&&V.trim()!==j,[W,...G]=E.split(`{phrase}`),K=G.join(j),q=S===`plain`,J=q?`sm`:`md`,Y=q||O||k?null:o[D===`danger`?`delete`:D??`info`],X=A>0?{"--wui-confirm-icon-size":`${A}px`}:void 0,Z=()=>{P||N?.()};return/* @__PURE__ */ f(a,{...v,...B,open:b,hideHeader:!0,title:x,onClose:Z,staticBackdrop:F,placement:I,size:L,className:[`wui-confirm`,q&&`wui-confirm-plain`,R].filter(Boolean).join(` `),footer:/* @__PURE__ */ p(`div`,{className:`wui-confirm-actions`,children:[/* @__PURE__ */ f(n,{
|
|
1
|
+
import e from"../lib/fillLabel.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./AppButton.js";import r from"./AppIcon.js";import i from"./AppInput.js";import a from"./AppModal.js";import{MODAL_ICONS as o}from"./ModalIcons.js";import s from"./warnInvalidValue.js";import c from"./warnUnknownProps.js";import{useEffect as l,useState as u}from"react";import{Fragment as d,jsx as f,jsxs as p}from"react/jsx-runtime";var m=[`sm`,`md`,`lg`,`xl`],h=[`default`,`plain`],g=[`success`,`danger`,`warning`,`info`,`primary`];function _(_){let{marker:v,props:y}=t(`AppConfirmDialog`,_),{open:b,title:x,variant:S=`default`,description:C,confirmLabel:w=`Confirm`,cancelLabel:T=`Cancel`,typePhraseLabel:E=`Type {phrase} to confirm`,tone:D,image:O,icon:k,iconSize:A,confirmPhrase:j,onConfirm:M,onClose:N,loading:P=!1,staticBackdrop:F=!0,placement:I=`center`,size:L=`md`,className:R=``,children:z,...B}=y;c(`AppConfirmDialog`,B),s(`AppConfirmDialog`,`tone`,D,g),s(`AppConfirmDialog`,`size`,typeof L==`string`?L:null,m),s(`AppConfirmDialog`,`variant`,S,h);let[V,H]=u(``);if(l(()=>{b||H(``)},[b]),!b)return null;let U=!!j&&V.trim()!==j,[W,...G]=E.split(`{phrase}`),K=G.join(j),q=S===`plain`,J=q?`sm`:`md`,Y=q||O||k?null:o[D===`danger`?`delete`:D??`info`],X=A>0?{"--wui-confirm-icon-size":`${A}px`}:void 0,Z=()=>{P||N?.()};return/* @__PURE__ */ f(a,{...v,...B,open:b,hideHeader:!0,title:x,onClose:Z,staticBackdrop:F,placement:I,size:L,className:[`wui-confirm`,q&&`wui-confirm-plain`,R].filter(Boolean).join(` `),footer:/* @__PURE__ */ p(`div`,{className:`wui-confirm-actions`,children:[/* @__PURE__ */ f(n,{tone:`neutral`,...q?{}:{variant:`soft`},size:J,disabled:P,onClick:Z,children:T}),/* @__PURE__ */ f(n,{tone:D===`danger`?`danger`:void 0,size:J,disabled:U,loading:P,onClick:M,children:w})]}),children:/* @__PURE__ */ p(`div`,{className:`wui-confirm-content`,children:[!q&&O?/* @__PURE__ */ f(`span`,{className:`wui-confirm-icon`,style:X,children:/* @__PURE__ */ f(`img`,{src:O,alt:``,"aria-hidden":`true`})}):!q&&k?/* @__PURE__ */ f(`span`,{className:`wui-confirm-icon`,style:X,children:typeof k==`string`?/* @__PURE__ */ f(r,{name:k,size:80}):k}):Y&&/* @__PURE__ */ f(`span`,{className:`wui-confirm-icon`,style:X,children:/* @__PURE__ */ f(Y,{size:120})}),/* @__PURE__ */ f(`h3`,{className:`wui-confirm-title`,tabIndex:-1,"data-autofocus":``,children:x}),C&&/* @__PURE__ */ f(`p`,{className:`wui-confirm-msg`,children:C}),z!=null&&z!==!1&&/* @__PURE__ */ f(`div`,{className:`wui-confirm-body`,children:z}),j&&/* @__PURE__ */ f(i,{fieldClassName:`mt-3 mb-0 w-100 text-start`,label:/* @__PURE__ */ p(d,{children:[W,/* @__PURE__ */ f(`strong`,{children:j}),K]}),value:V,onChange:e=>H(e.target.value),"aria-label":e(E,{phrase:j}),disabled:P})]})})}export{_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../lib/DiscardPrompt.js";import{devWarn as t}from"../lib/devWarn.js";import{lockPageScroll as n}from"../lib/pageScrollLock.js";import{splitMarkerProps as r}from"../lib/wuiMarker.js";import i from"./AppIcon.js";import a from"./warnInvalidValue.js";import o from"./warnUnknownProps.js";import{useCallback as s,useEffect as c,useRef as l,useState as u}from"react";import{Modal as ee}from"react-bootstrap";import{jsx as d,jsxs as f}from"react/jsx-runtime";var te=[`neutral`,`danger`,`success`,`warning`],ne=[`center`,`top`],p=`a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])`,m={sm:380,md:440,lg:640,xl:880},re=`wui-modal-fullscreen`,h=!1;function ie(){let e=!0;try{e=process.env.NODE_ENV!==`production`}catch{e=!0}e&&!h&&(h=!0,t("[@webority/ui-react] <AppModal hideHeader> has no accessible name: pass `ariaLabel` (or a string `title`)."))}function g(e,t){if(e.key!==`Tab`)return;let n=Array.from(t.querySelectorAll(p));if(!n.length){e.preventDefault(),t.focus();return}let r=n[0],i=n[n.length-1],a=document.activeElement;e.shiftKey&&(a===r||a===t)?(e.preventDefault(),i.focus()):!e.shiftKey&&a===i&&(e.preventDefault(),r.focus())}function ae(){let e=[];for(let t of document.body.children)t.hasAttribute(`inert`)||t.matches(`.modal, .modal-backdrop`)||(t.setAttribute(`inert`,``),e.push(t));return e}function oe(){return typeof document<`u`&&document.querySelector(`wui-drawer[open], .offcanvas.show`)!==null}function _(t){let{marker:h,props:_}=r(`AppModal`,t),{open:v,eyebrow:y,title:b,subtitle:x,headerIcon:S,tone:C=`neutral`,dismissible:w=!0,onClose:T,onBack:E,backLabel:D=`Back`,headerActions:O,footer:k,size:A=`md`,placement:j=`center`,hideHeader:M=!1,staticBackdrop:N=!0,confirmDiscard:P,dirty:se=!1,ariaLabel:F,closeLabel:ce=`Close`,className:le=``,children:ue,...I}=_;o(`AppModal`,I),a(`AppModal`,`tone`,C,te),a(`AppModal`,`placement`,j,ne),a(`AppModal`,`size`,typeof A==`string`?A:null,[...Object.keys(m),`fullscreen`]);let{style:L,ref:R,"data-wui":z,"data-wui-props":B,...V}=I,H=z?{"data-wui":z,"data-wui-props":B}:h,U=H[`data-wui`],W=H[`data-wui-props`];M&&!F&&typeof b!=`string`&&ie();let G=l(null),K=l(null),[q,J]=u(!1);c(()=>{v||J(!1)},[v]),c(()=>{q&&K.current?.focus()},[q]),c(()=>{if(v)return n()},[v]),c(()=>{let e=G.current?.closest(`.modal`);e&&(P?e.setAttribute(`confirm-discard`,P):e.removeAttribute(`confirm-discard`))},[v,P]);let Y=l(null),de=s(e=>{Y.current=e,typeof R==`function`?R(e):R&&(R.current=e)},[R]);c(()=>{let e=Y.current?.dialog;e&&(e.setAttribute(`data-wui`,U),W===void 0?e.removeAttribute(`data-wui-props`):e.setAttribute(`data-wui-props`,W))},[v,U,W]),c(()=>{if(!v)return;let e=G.current?.closest(`.modal-content`);if(!e)return;let t=()=>Array.from(e.querySelectorAll(p));(e.querySelector(`[data-autofocus]`)||t().find(e=>!e.classList.contains(`wui-modal-close`)&&!e.classList.contains(`wui-modal-back`))||t()[0]||e).focus?.();let n=e.closest(`.modal`),r=ae(),i=e=>g(e,n);return n?.addEventListener(`keydown`,i),()=>{n?.removeEventListener(`keydown`,i);for(let e of r)e.removeAttribute(`inert`);n&&setTimeout(()=>{n.isConnected&&!n.classList.contains(`show`)&&n.dispatchEvent(new Event(`transitionend`,{bubbles:!0}))},500)}},[v]);let X=()=>{P&&se?J(!0):T?.()},Z=e=>{e.target.closest?.(`[data-wui-dismiss]`)&&X()},fe=()=>{J(!1),T?.()},pe=()=>{J(!1),(G.current?.querySelector(`input:not([type="hidden"]):not([disabled]),select:not([disabled]),textarea:not([disabled])`))?.focus()},Q=A===`fullscreen`,me=typeof A==`number`?A:m[A]??m.md,he=[`wui-modal`,C===`neutral`?``:`tone-${C}`,le].filter(Boolean).join(` `),$=v&&oe(),ge=[`wui-modal-shell`,Q&&re,$&&`wui-modal-stacked`].filter(Boolean).join(` `);return/* @__PURE__ */ f(ee,{...V,ref:de,show:v,onHide:X,backdrop:!N||`static`,keyboard:!N,autoFocus:!1,enforceFocus:!0,restoreFocus:!0,centered:j!==`top`,className:ge,style:Q?L:{"--wui-modal-max-width":`${me}px`,...L},dialogClassName:`wui-rb-dialog`,contentClassName:he,backdropClassName:$?`wui-modal-dim wui-modal-backdrop-stacked`:`wui-modal-dim`,"aria-label":F||(typeof b==`string`?b:void 0),children:[!M&&/* @__PURE__ */ f(`div`,{className:`wui-modal-header`,children:[E&&/* @__PURE__ */ d(`button`,{type:`button`,className:`wui-modal-back`,onClick:E,"aria-label":D,children:/* @__PURE__ */ d(i,{name:`arrow-left`,size:18})}),/* @__PURE__ */ f(`div`,{className:`wui-modal-heading`,children:[S&&/* @__PURE__ */ d(`span`,{className:`wui-modal-headicon`,children:/* @__PURE__ */ d(i,{name:S,size:18})}),/* @__PURE__ */ f(`div`,{className:`wui-modal-headtext`,children:[y&&/* @__PURE__ */ d(`div`,{className:`wui-modal-eyebrow`,children:y}),/* @__PURE__ */ d(`div`,{className:`wui-modal-title`,children:b}),x&&/* @__PURE__ */ d(`div`,{className:`wui-modal-subtitle`,children:x})]})]}),O&&/* @__PURE__ */ d(`div`,{className:`wui-modal-header-actions`,children:O}),w&&/* @__PURE__ */ d(`button`,{type:`button`,className:`wui-modal-close`,onClick:X,"aria-label":ce,children:/* @__PURE__ */ d(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:/* @__PURE__ */ d(`path`,{d:`M18 6 6 18M6 6l12 12`})})})]}),/* @__PURE__ */ d(`div`,{className:`wui-modal-body`,ref:G,onClick:Z,children:ue}),(k||q)&&/* @__PURE__ */ f(`div`,{className:q?`wui-modal-footer wui-drawer-discarding`:`wui-modal-footer`,onClick:Z,children:[q&&/* @__PURE__ */ d(e,{text:P,confirmRef:K,onDiscard:fe,onKeep:pe}),k]})]})}export{_ as default};
|
|
1
|
+
import e from"../lib/DiscardPrompt.js";import{devWarn as t}from"../lib/devWarn.js";import{lockPageScroll as n}from"../lib/pageScrollLock.js";import{splitMarkerProps as r}from"../lib/wuiMarker.js";import i from"./AppIcon.js";import a from"./warnInvalidValue.js";import o from"./warnUnknownProps.js";import{useCallback as s,useEffect as c,useRef as l,useState as u}from"react";import{Modal as ee}from"react-bootstrap";import{jsx as d,jsxs as f}from"react/jsx-runtime";var te=[`neutral`,`danger`,`success`,`warning`],ne=[`center`,`top`],p=`a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])`,m={sm:380,md:440,lg:640,xl:880},re=`wui-modal-fullscreen`,h=!1;function ie(){let e=!0;try{e=process.env.NODE_ENV!==`production`}catch{e=!0}e&&!h&&(h=!0,t("[@webority/ui-react] <AppModal hideHeader> has no accessible name: pass `ariaLabel` (or a string `title`)."))}function g(e,t){if(e.key!==`Tab`)return;let n=Array.from(t.querySelectorAll(p));if(!n.length){e.preventDefault(),t.focus();return}let r=n[0],i=n[n.length-1],a=document.activeElement;e.shiftKey&&(a===r||a===t)?(e.preventDefault(),i.focus()):!e.shiftKey&&a===i&&(e.preventDefault(),r.focus())}function ae(){let e=[];for(let t of document.body.children)t.hasAttribute(`inert`)||t.matches(`.modal, .modal-backdrop`)||(t.setAttribute(`inert`,``),e.push(t));return e}function oe(){return typeof document<`u`&&document.querySelector(`wui-drawer[open], .offcanvas.show`)!==null}function _(t){let{marker:h,props:_}=r(`AppModal`,t),{open:v,eyebrow:y,title:b,subtitle:x,headerIcon:S,tone:C=`neutral`,dismissible:w=!0,onClose:T,onBack:E,backLabel:D=`Back`,headerActions:O,footer:k,size:A=`md`,placement:j=`center`,hideHeader:M=!1,staticBackdrop:N=!0,confirmDiscard:P,dirty:se=!1,ariaLabel:F,closeLabel:ce=`Close`,className:le=``,children:ue,...I}=_;o(`AppModal`,I),a(`AppModal`,`tone`,C,te),a(`AppModal`,`placement`,j,ne),a(`AppModal`,`size`,typeof A==`string`?A:null,[...Object.keys(m),`fullscreen`]);let{style:L,ref:R,"data-wui":z,"data-wui-props":B,...V}=I,H=z?{"data-wui":z,"data-wui-props":B}:h,U=H[`data-wui`],W=H[`data-wui-props`];M&&!F&&typeof b!=`string`&&ie();let G=l(null),K=l(null),[q,J]=u(!1);c(()=>{v||J(!1)},[v]),c(()=>{q&&K.current?.focus()},[q]),c(()=>{if(v)return n()},[v]),c(()=>{let e=G.current?.closest(`.modal`);e&&(P?e.setAttribute(`confirm-discard`,P):e.removeAttribute(`confirm-discard`))},[v,P]);let Y=l(null),de=s(e=>{Y.current=e,typeof R==`function`?R(e):R&&(R.current=e)},[R]);c(()=>{let e=Y.current?.dialog;e&&(e.setAttribute(`data-wui`,U),W===void 0?e.removeAttribute(`data-wui-props`):e.setAttribute(`data-wui-props`,W))},[v,U,W]),c(()=>{if(!v)return;let e=G.current?.closest(`.modal-content`);if(!e)return;let t=()=>Array.from(e.querySelectorAll(p));(e.querySelector(`[data-autofocus]`)||t().find(e=>!e.classList.contains(`wui-modal-close`)&&!e.classList.contains(`wui-modal-back`))||t()[0]||e).focus?.({preventScroll:!0});let n=e.closest(`.modal`),r=ae(),i=e=>g(e,n);return n?.addEventListener(`keydown`,i),()=>{n?.removeEventListener(`keydown`,i);for(let e of r)e.removeAttribute(`inert`);n&&setTimeout(()=>{n.isConnected&&!n.classList.contains(`show`)&&n.dispatchEvent(new Event(`transitionend`,{bubbles:!0}))},500)}},[v]);let X=()=>{P&&se?J(!0):T?.()},Z=e=>{e.target.closest?.(`[data-wui-dismiss]`)&&X()},fe=()=>{J(!1),T?.()},pe=()=>{J(!1),(G.current?.querySelector(`input:not([type="hidden"]):not([disabled]),select:not([disabled]),textarea:not([disabled])`))?.focus()},Q=A===`fullscreen`,me=typeof A==`number`?A:m[A]??m.md,he=[`wui-modal`,C===`neutral`?``:`tone-${C}`,le].filter(Boolean).join(` `),$=v&&oe(),ge=[`wui-modal-shell`,Q&&re,$&&`wui-modal-stacked`].filter(Boolean).join(` `);return/* @__PURE__ */ f(ee,{...V,ref:de,show:v,onHide:X,backdrop:!N||`static`,keyboard:!N,autoFocus:!1,enforceFocus:!0,restoreFocus:!0,centered:j!==`top`,className:ge,style:Q?L:{"--wui-modal-max-width":`${me}px`,...L},dialogClassName:`wui-rb-dialog`,contentClassName:he,backdropClassName:$?`wui-modal-dim wui-modal-backdrop-stacked`:`wui-modal-dim`,"aria-label":F||(typeof b==`string`?b:void 0),children:[!M&&/* @__PURE__ */ f(`div`,{className:`wui-modal-header`,children:[E&&/* @__PURE__ */ d(`button`,{type:`button`,className:`wui-modal-back`,onClick:E,"aria-label":D,children:/* @__PURE__ */ d(i,{name:`arrow-left`,size:18})}),/* @__PURE__ */ f(`div`,{className:`wui-modal-heading`,children:[S&&/* @__PURE__ */ d(`span`,{className:`wui-modal-headicon`,children:/* @__PURE__ */ d(i,{name:S,size:18})}),/* @__PURE__ */ f(`div`,{className:`wui-modal-headtext`,children:[y&&/* @__PURE__ */ d(`div`,{className:`wui-modal-eyebrow`,children:y}),/* @__PURE__ */ d(`div`,{className:`wui-modal-title`,children:b}),x&&/* @__PURE__ */ d(`div`,{className:`wui-modal-subtitle`,children:x})]})]}),O&&/* @__PURE__ */ d(`div`,{className:`wui-modal-header-actions`,children:O}),w&&/* @__PURE__ */ d(`button`,{type:`button`,className:`wui-modal-close`,onClick:X,"aria-label":ce,children:/* @__PURE__ */ d(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:/* @__PURE__ */ d(`path`,{d:`M18 6 6 18M6 6l12 12`})})})]}),/* @__PURE__ */ d(`div`,{className:`wui-modal-body`,ref:G,onClick:Z,children:ue}),(k||q)&&/* @__PURE__ */ f(`div`,{className:q?`wui-modal-footer wui-drawer-discarding`:`wui-modal-footer`,onClick:Z,children:[q&&/* @__PURE__ */ d(e,{text:P,confirmRef:K,onDiscard:fe,onKeep:pe}),k]})]})}export{_ as default};
|
package/dist/guidance.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/ui-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.144.1",
|
|
4
4
|
"description": "Webority shared React component library — App* primitives on react-bootstrap + the @webority/theme design system.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
},
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@webority/markdown-core": "0.
|
|
33
|
-
"@webority/theme": "0.
|
|
34
|
-
"@webority/ui-elements": "0.
|
|
35
|
-
"@webority/web-core": "0.
|
|
32
|
+
"@webority/markdown-core": "0.144.1",
|
|
33
|
+
"@webority/theme": "0.144.1",
|
|
34
|
+
"@webority/ui-elements": "0.144.1",
|
|
35
|
+
"@webority/web-core": "0.144.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@webority/analytics": "^0.35.0",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@vitejs/plugin-react": "^6.0.1",
|
|
51
51
|
"@vitest/coverage-v8": "5.0.1",
|
|
52
52
|
"@webority/analytics": "0.35.1",
|
|
53
|
-
"@webority/canvas-kit": "0.
|
|
54
|
-
"@webority/tokens": "0.
|
|
53
|
+
"@webority/canvas-kit": "0.144.1",
|
|
54
|
+
"@webority/tokens": "0.144.1",
|
|
55
55
|
"bootstrap": "5.3.3",
|
|
56
56
|
"jsdom": "30.1.1",
|
|
57
57
|
"react": "^19.2.6",
|