@leatcom/portal-sessions 0.0.75-beta.3 → 0.0.75-beta.5
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/portal-sessions.es.js +140 -170
- package/dist/portal-sessions.umd.js +32 -32
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -18133,21 +18133,24 @@ function qM(e) {
|
|
|
18133
18133
|
r();
|
|
18134
18134
|
}, [e]), t;
|
|
18135
18135
|
}
|
|
18136
|
-
const VM = Ls(
|
|
18137
|
-
|
|
18138
|
-
|
|
18139
|
-
|
|
18140
|
-
|
|
18141
|
-
|
|
18142
|
-
|
|
18143
|
-
|
|
18144
|
-
|
|
18136
|
+
const VM = Ls(
|
|
18137
|
+
"bg-core-primary-500 text-core-white-900 relative inline-flex aspect-square shrink-0 items-center antialiased rounded-full overflow-hidden uppercase",
|
|
18138
|
+
{
|
|
18139
|
+
variants: {
|
|
18140
|
+
size: {
|
|
18141
|
+
xs: "h-6 w-6 text-xs ",
|
|
18142
|
+
sm: "h-8 w-8 text-sm",
|
|
18143
|
+
md: "h-10 w-10 text-base",
|
|
18144
|
+
lg: "h-12 w-12 text-lg",
|
|
18145
|
+
xl: "h-14 w-14 text-xl",
|
|
18146
|
+
"2xl": "h-16 w-16 text-2xl"
|
|
18147
|
+
}
|
|
18148
|
+
},
|
|
18149
|
+
defaultVariants: {
|
|
18150
|
+
size: "sm"
|
|
18145
18151
|
}
|
|
18146
|
-
},
|
|
18147
|
-
defaultVariants: {
|
|
18148
|
-
size: "sm"
|
|
18149
18152
|
}
|
|
18150
|
-
|
|
18153
|
+
), $M = ({
|
|
18151
18154
|
src: e,
|
|
18152
18155
|
alt: t
|
|
18153
18156
|
}) => /* @__PURE__ */ m.jsx("img", { src: e, alt: t, className: "bg-core-white-900 aspect-square w-full grow rounded-full object-cover object-center" }), GM = ({
|
|
@@ -18164,30 +18167,27 @@ const VM = Ls("bg-core-primary-500 text-core-white-900 relative inline-flex aspe
|
|
|
18164
18167
|
!e && !n && /* @__PURE__ */ m.jsx("div", { className: "flex grow h-full w-full bg-core-gray-100 justify-center items-center", children: /* @__PURE__ */ m.jsx(cn, { icon: "user", variant: "placeholder", outline: !1, size: r }) })
|
|
18165
18168
|
] });
|
|
18166
18169
|
Xf.displayName = "Avatar";
|
|
18167
|
-
const YM = Ls(
|
|
18168
|
-
|
|
18169
|
-
|
|
18170
|
-
|
|
18171
|
-
|
|
18172
|
-
primary: "text-core-primary-700 outline-core-primary-200 bg-core-primary-50",
|
|
18173
|
-
gray: "text-core-gray-700 outline-core-gray-200 bg-core-gray-50"
|
|
18174
|
-
},
|
|
18175
|
-
size: {
|
|
18176
|
-
sm: "text-xs leading-4 ",
|
|
18177
|
-
md: "text-sm leading-5 "
|
|
18178
|
-
},
|
|
18179
|
-
stroke: {
|
|
18180
|
-
true: "outline outline-1",
|
|
18181
|
-
false: ""
|
|
18182
|
-
}
|
|
18170
|
+
const YM = Ls("inline-flex items-center rounded-lg px-2 py-1 antialiased", {
|
|
18171
|
+
variants: {
|
|
18172
|
+
color: {
|
|
18173
|
+
primary: "text-core-primary-700 outline-core-primary-200 bg-core-primary-50",
|
|
18174
|
+
gray: "text-core-gray-700 outline-core-gray-200 bg-core-gray-50"
|
|
18183
18175
|
},
|
|
18184
|
-
|
|
18185
|
-
|
|
18186
|
-
|
|
18187
|
-
|
|
18176
|
+
size: {
|
|
18177
|
+
sm: "text-xs leading-4 ",
|
|
18178
|
+
md: "text-sm leading-5 "
|
|
18179
|
+
},
|
|
18180
|
+
stroke: {
|
|
18181
|
+
true: "outline outline-1",
|
|
18182
|
+
false: ""
|
|
18188
18183
|
}
|
|
18184
|
+
},
|
|
18185
|
+
defaultVariants: {
|
|
18186
|
+
color: "primary",
|
|
18187
|
+
size: "sm",
|
|
18188
|
+
stroke: !1
|
|
18189
18189
|
}
|
|
18190
|
-
), Zf = ({
|
|
18190
|
+
}), Zf = ({
|
|
18191
18191
|
label: e,
|
|
18192
18192
|
color: t = "primary",
|
|
18193
18193
|
size: n = "sm",
|
|
@@ -18388,15 +18388,21 @@ const xb = ({
|
|
|
18388
18388
|
required: i = !1,
|
|
18389
18389
|
tooltip: s,
|
|
18390
18390
|
htmlFor: o
|
|
18391
|
-
}) => !e && !s && !n ? null : /* @__PURE__ */ m.jsx("label", { htmlFor: o, className: "inline-flex
|
|
18392
|
-
|
|
18393
|
-
|
|
18394
|
-
|
|
18395
|
-
|
|
18396
|
-
|
|
18397
|
-
|
|
18398
|
-
|
|
18399
|
-
|
|
18391
|
+
}) => !e && !s && !n ? null : /* @__PURE__ */ m.jsx("label", { htmlFor: o, className: "inline-flex shrink-0 items-center gap-1 text-core-gray-800 antialiased ", children: /* @__PURE__ */ m.jsxs(
|
|
18392
|
+
"div",
|
|
18393
|
+
{
|
|
18394
|
+
className: bn(
|
|
18395
|
+
"inline-flex cursor-pointer items-center gap-1 text-sm font-medium leading-6",
|
|
18396
|
+
t,
|
|
18397
|
+
r && "pointer-events-none text-core-gray-300"
|
|
18398
|
+
),
|
|
18399
|
+
children: [
|
|
18400
|
+
e ? /* @__PURE__ */ m.jsx("span", { className: bn(r && "pointer-events-none text-core-gray-300"), children: e }) : null,
|
|
18401
|
+
n ? /* @__PURE__ */ m.jsx("span", { className: bn("font-normal text-core-gray-500", r && "text-current"), children: n }) : null,
|
|
18402
|
+
i ? /* @__PURE__ */ m.jsx("span", { className: "font-normal text-core-red-500", children: "*" }) : null
|
|
18403
|
+
]
|
|
18404
|
+
}
|
|
18405
|
+
) }), Sb = ({ helperText: e, error: t, disabled: n }) => e ? /* @__PURE__ */ m.jsx(
|
|
18400
18406
|
"span",
|
|
18401
18407
|
{
|
|
18402
18408
|
className: bn(
|
|
@@ -18433,65 +18439,43 @@ function Cb(e = !1) {
|
|
|
18433
18439
|
throw new Error("Checkbox.Item must be used within a CheckboxGroup or CheckboxGroup.Root");
|
|
18434
18440
|
return t;
|
|
18435
18441
|
}
|
|
18436
|
-
const Ab = be.forwardRef(
|
|
18437
|
-
children: e,
|
|
18438
|
-
|
|
18439
|
-
|
|
18440
|
-
|
|
18441
|
-
|
|
18442
|
-
|
|
18443
|
-
|
|
18444
|
-
|
|
18445
|
-
|
|
18446
|
-
|
|
18447
|
-
|
|
18448
|
-
|
|
18442
|
+
const Ab = be.forwardRef(
|
|
18443
|
+
({ children: e, description: t, disabled: n, helperText: r, id: i, label: s, required: o, tooltip: c }, u) => {
|
|
18444
|
+
const d = be.useId(), f = i ?? d, p = s ?? t ?? c ?? r ? /* @__PURE__ */ m.jsxs("div", { className: "inline-flex flex-col", children: [
|
|
18445
|
+
/* @__PURE__ */ m.jsx(
|
|
18446
|
+
Tn,
|
|
18447
|
+
{
|
|
18448
|
+
className: "cursor-default",
|
|
18449
|
+
description: t,
|
|
18450
|
+
required: o,
|
|
18451
|
+
tooltip: c,
|
|
18452
|
+
htmlFor: f,
|
|
18453
|
+
disabled: n,
|
|
18454
|
+
children: s
|
|
18455
|
+
}
|
|
18456
|
+
),
|
|
18457
|
+
/* @__PURE__ */ m.jsx(Tn.Helper, { disabled: n, helperText: r })
|
|
18458
|
+
] }) : null;
|
|
18459
|
+
return /* @__PURE__ */ m.jsx(_b.Provider, { value: { disabled: n }, children: /* @__PURE__ */ m.jsxs(
|
|
18460
|
+
"div",
|
|
18449
18461
|
{
|
|
18450
|
-
|
|
18451
|
-
|
|
18452
|
-
|
|
18453
|
-
|
|
18454
|
-
|
|
18455
|
-
|
|
18456
|
-
|
|
18457
|
-
|
|
18458
|
-
|
|
18459
|
-
|
|
18460
|
-
|
|
18461
|
-
|
|
18462
|
-
|
|
18463
|
-
{
|
|
18464
|
-
ref: u,
|
|
18465
|
-
"aria-describedby": r ? `${f}__describer` : void 0,
|
|
18466
|
-
"aria-labelledby": s ? `${f}__label` : void 0,
|
|
18467
|
-
className: "flex flex-col gap-4",
|
|
18468
|
-
role: "group",
|
|
18469
|
-
children: [
|
|
18470
|
-
s ?? r ?? t ?? c ? /* @__PURE__ */ m.jsx("div", { className: "flex flex-col", children: p }) : null,
|
|
18471
|
-
e ? /* @__PURE__ */ m.jsx(
|
|
18472
|
-
"div",
|
|
18473
|
-
{
|
|
18474
|
-
className: bn(
|
|
18475
|
-
"flex flex-col gap-2"
|
|
18476
|
-
),
|
|
18477
|
-
children: e
|
|
18478
|
-
}
|
|
18479
|
-
) : null
|
|
18480
|
-
]
|
|
18481
|
-
}
|
|
18482
|
-
) });
|
|
18483
|
-
});
|
|
18462
|
+
ref: u,
|
|
18463
|
+
"aria-describedby": r ? `${f}__describer` : void 0,
|
|
18464
|
+
"aria-labelledby": s ? `${f}__label` : void 0,
|
|
18465
|
+
className: "flex flex-col gap-4",
|
|
18466
|
+
role: "group",
|
|
18467
|
+
children: [
|
|
18468
|
+
s ?? r ?? t ?? c ? /* @__PURE__ */ m.jsx("div", { className: "flex flex-col", children: p }) : null,
|
|
18469
|
+
e ? /* @__PURE__ */ m.jsx("div", { className: bn("flex flex-col gap-2"), children: e }) : null
|
|
18470
|
+
]
|
|
18471
|
+
}
|
|
18472
|
+
) });
|
|
18473
|
+
}
|
|
18474
|
+
);
|
|
18484
18475
|
Ab.displayName = "CheckboxGroup";
|
|
18485
18476
|
const zM = ({ disabled: e, label: t, defaultChecked: n }) => {
|
|
18486
18477
|
const r = Cb(), { disabled: i } = r ?? {};
|
|
18487
|
-
return /* @__PURE__ */ m.jsx(
|
|
18488
|
-
Iu,
|
|
18489
|
-
{
|
|
18490
|
-
disabled: e ?? i,
|
|
18491
|
-
label: t,
|
|
18492
|
-
defaultChecked: n
|
|
18493
|
-
}
|
|
18494
|
-
);
|
|
18478
|
+
return /* @__PURE__ */ m.jsx(Iu, { disabled: e ?? i, label: t, defaultChecked: n });
|
|
18495
18479
|
};
|
|
18496
18480
|
Object.assign(Ab, {
|
|
18497
18481
|
Item: zM
|
|
@@ -27809,27 +27793,21 @@ function U1({ children: e, offset: t, max: n = 4, initialCollapsed: r = !0 }) {
|
|
|
27809
27793
|
}
|
|
27810
27794
|
);
|
|
27811
27795
|
}
|
|
27812
|
-
const SP = Ls(
|
|
27813
|
-
|
|
27814
|
-
|
|
27815
|
-
|
|
27816
|
-
|
|
27817
|
-
md: "w-3 h-3",
|
|
27818
|
-
lg: "w-7 h-7"
|
|
27819
|
-
}
|
|
27796
|
+
const SP = Ls("flex flex-shrink bg-white rounded-full transform transition-transform ease-out", {
|
|
27797
|
+
variants: {
|
|
27798
|
+
size: {
|
|
27799
|
+
md: "w-3 h-3",
|
|
27800
|
+
lg: "w-7 h-7"
|
|
27820
27801
|
}
|
|
27821
27802
|
}
|
|
27822
|
-
), _P = Ls(
|
|
27823
|
-
|
|
27824
|
-
|
|
27825
|
-
|
|
27826
|
-
|
|
27827
|
-
md: "pr-4",
|
|
27828
|
-
lg: "pr-6"
|
|
27829
|
-
}
|
|
27803
|
+
}), _P = Ls("", {
|
|
27804
|
+
variants: {
|
|
27805
|
+
size: {
|
|
27806
|
+
md: "pr-4",
|
|
27807
|
+
lg: "pr-6"
|
|
27830
27808
|
}
|
|
27831
27809
|
}
|
|
27832
|
-
), CP = ({
|
|
27810
|
+
}), CP = ({
|
|
27833
27811
|
id: e,
|
|
27834
27812
|
disabled: t,
|
|
27835
27813
|
onChange: n,
|
|
@@ -27926,62 +27904,52 @@ function AP(e = !1) {
|
|
|
27926
27904
|
throw new Error("Switch.Item must be used within a SwitchGroup or SwitchGroup.Root");
|
|
27927
27905
|
return t;
|
|
27928
27906
|
}
|
|
27929
|
-
const V1 = be.forwardRef(
|
|
27930
|
-
|
|
27931
|
-
|
|
27932
|
-
|
|
27933
|
-
|
|
27934
|
-
|
|
27935
|
-
|
|
27936
|
-
|
|
27937
|
-
|
|
27938
|
-
|
|
27939
|
-
|
|
27940
|
-
|
|
27941
|
-
|
|
27942
|
-
/* @__PURE__ */ m.
|
|
27943
|
-
|
|
27907
|
+
const V1 = be.forwardRef(
|
|
27908
|
+
({
|
|
27909
|
+
toggleLeft: e = !1,
|
|
27910
|
+
size: t = "md",
|
|
27911
|
+
children: n,
|
|
27912
|
+
description: r,
|
|
27913
|
+
disabled: i,
|
|
27914
|
+
helperText: s,
|
|
27915
|
+
id: o,
|
|
27916
|
+
label: c,
|
|
27917
|
+
required: u,
|
|
27918
|
+
tooltip: d
|
|
27919
|
+
}, f) => {
|
|
27920
|
+
const p = be.useId(), l = o ?? p, b = c ?? r ?? d ?? s ? /* @__PURE__ */ m.jsxs("div", { className: "inline-flex flex-col", children: [
|
|
27921
|
+
/* @__PURE__ */ m.jsx(
|
|
27922
|
+
Tn,
|
|
27923
|
+
{
|
|
27924
|
+
className: "cursor-default",
|
|
27925
|
+
description: r,
|
|
27926
|
+
required: u,
|
|
27927
|
+
tooltip: d,
|
|
27928
|
+
htmlFor: l,
|
|
27929
|
+
disabled: i,
|
|
27930
|
+
children: c
|
|
27931
|
+
}
|
|
27932
|
+
),
|
|
27933
|
+
/* @__PURE__ */ m.jsx(Tn.Helper, { disabled: i, helperText: s })
|
|
27934
|
+
] }) : null;
|
|
27935
|
+
return /* @__PURE__ */ m.jsx(q1.Provider, { value: { disabled: i, toggleLeft: e, size: t }, children: /* @__PURE__ */ m.jsxs(
|
|
27936
|
+
"div",
|
|
27944
27937
|
{
|
|
27945
|
-
|
|
27946
|
-
|
|
27947
|
-
|
|
27948
|
-
|
|
27949
|
-
|
|
27950
|
-
|
|
27951
|
-
|
|
27952
|
-
|
|
27953
|
-
|
|
27954
|
-
|
|
27955
|
-
|
|
27956
|
-
|
|
27957
|
-
|
|
27958
|
-
{
|
|
27959
|
-
ref: f,
|
|
27960
|
-
"aria-describedby": s ? `${l}__describer` : void 0,
|
|
27961
|
-
"aria-labelledby": c ? `${l}__label` : void 0,
|
|
27962
|
-
className: "flex flex-col gap-4",
|
|
27963
|
-
role: "group",
|
|
27964
|
-
children: [
|
|
27965
|
-
c ?? s ?? r ?? d ? /* @__PURE__ */ m.jsx("div", { className: "flex flex-col", children: b }) : null,
|
|
27966
|
-
n ? /* @__PURE__ */ m.jsx(
|
|
27967
|
-
"div",
|
|
27968
|
-
{
|
|
27969
|
-
className: bn(
|
|
27970
|
-
"flex flex-col gap-2"
|
|
27971
|
-
),
|
|
27972
|
-
children: n
|
|
27973
|
-
}
|
|
27974
|
-
) : null
|
|
27975
|
-
]
|
|
27976
|
-
}
|
|
27977
|
-
) });
|
|
27978
|
-
});
|
|
27938
|
+
ref: f,
|
|
27939
|
+
"aria-describedby": s ? `${l}__describer` : void 0,
|
|
27940
|
+
"aria-labelledby": c ? `${l}__label` : void 0,
|
|
27941
|
+
className: "flex flex-col gap-4",
|
|
27942
|
+
role: "group",
|
|
27943
|
+
children: [
|
|
27944
|
+
c ?? s ?? r ?? d ? /* @__PURE__ */ m.jsx("div", { className: "flex flex-col", children: b }) : null,
|
|
27945
|
+
n ? /* @__PURE__ */ m.jsx("div", { className: bn("flex flex-col gap-2"), children: n }) : null
|
|
27946
|
+
]
|
|
27947
|
+
}
|
|
27948
|
+
) });
|
|
27949
|
+
}
|
|
27950
|
+
);
|
|
27979
27951
|
V1.displayName = "SwitchGroup";
|
|
27980
|
-
const TP = ({
|
|
27981
|
-
disabled: e,
|
|
27982
|
-
label: t,
|
|
27983
|
-
defaultChecked: n
|
|
27984
|
-
}) => {
|
|
27952
|
+
const TP = ({ disabled: e, label: t, defaultChecked: n }) => {
|
|
27985
27953
|
const r = AP(), { disabled: i, size: s, toggleLeft: o } = r ?? {};
|
|
27986
27954
|
return /* @__PURE__ */ m.jsx(
|
|
27987
27955
|
Uu,
|
|
@@ -30728,5 +30696,7 @@ function Qj(e) {
|
|
|
30728
30696
|
}
|
|
30729
30697
|
export {
|
|
30730
30698
|
Kj as DefaultSession,
|
|
30731
|
-
|
|
30699
|
+
so as FacingMode,
|
|
30700
|
+
Qj as PortalSession,
|
|
30701
|
+
gt as PortalType
|
|
30732
30702
|
};
|