@solibo/solibo-ui 2.2.13 → 2.2.14
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/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index48.css +1 -1
- package/dist/assets/index49.css +1 -1
- package/dist/assets/index50.css +1 -1
- package/dist/assets/index51.css +1 -1
- package/dist/assets/index52.css +1 -1
- package/dist/assets/index53.css +1 -1
- package/dist/assets/index54.css +1 -1
- package/dist/assets/index55.css +1 -1
- package/dist/assets/index56.css +1 -1
- package/dist/assets/index57.css +1 -1
- package/dist/assets/index58.css +1 -1
- package/dist/assets/index59.css +1 -0
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index60.css +1 -0
- package/dist/components/app-link/index.cjs +1 -1
- package/dist/components/app-link/index.js +9 -9
- package/dist/components/app-shell/index.cjs +1 -1
- package/dist/components/app-shell/index.js +1 -1
- package/dist/components/aside/index.cjs +1 -1
- package/dist/components/aside/index.js +1 -1
- package/dist/components/avatar/index.cjs +1 -1
- package/dist/components/avatar/index.js +38 -39
- package/dist/components/badge/index.cjs +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/banner/index.cjs +1 -1
- package/dist/components/banner/index.js +1 -1
- package/dist/components/branding/index.cjs +1 -1
- package/dist/components/branding/index.js +1 -1
- package/dist/components/button/index.cjs +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/index.cjs +1 -1
- package/dist/components/card/index.js +49 -49
- package/dist/components/checkbox/index.cjs +1 -1
- package/dist/components/checkbox/index.js +23 -17
- package/dist/components/chip/index.cjs +1 -1
- package/dist/components/chip/index.js +1 -1
- package/dist/components/clipboard/index.cjs +1 -1
- package/dist/components/clipboard/index.js +1 -1
- package/dist/components/collapsible/index.cjs +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/comment/index.cjs +1 -1
- package/dist/components/comment/index.js +1 -1
- package/dist/components/comments/index.cjs +1 -1
- package/dist/components/comments/index.js +2 -2
- package/dist/components/controls/index.cjs +1 -1
- package/dist/components/controls/index.js +1 -1
- package/dist/components/croppable/index.cjs +1 -1
- package/dist/components/croppable/index.js +152 -152
- package/dist/components/dialog/index.cjs +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/divider/index.cjs +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/dropdown/index.cjs +1 -1
- package/dist/components/dropdown/index.js +3 -3
- package/dist/components/dropzone/index.cjs +1 -1
- package/dist/components/dropzone/index.js +1 -1
- package/dist/components/editor/index.cjs +1 -1
- package/dist/components/editor/index.js +237 -234
- package/dist/components/empty-state/index.cjs +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/fieldset/index.cjs +1 -1
- package/dist/components/fieldset/index.js +1 -1
- package/dist/components/figure/index.cjs +1 -1
- package/dist/components/figure/index.js +1 -1
- package/dist/components/file/index.cjs +1 -1
- package/dist/components/file/index.js +1 -1
- package/dist/components/footer/index.cjs +1 -1
- package/dist/components/footer/index.js +1 -1
- package/dist/components/form/index.cjs +1 -1
- package/dist/components/form/index.js +21 -12
- package/dist/components/graph/index.cjs +1 -1
- package/dist/components/graph/index.js +1 -1
- package/dist/components/group/index.cjs +1 -1
- package/dist/components/group/index.js +1 -1
- package/dist/components/header/index.cjs +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/icon/index.cjs +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/iframe/index.cjs +1 -1
- package/dist/components/iframe/index.js +2 -2
- package/dist/components/image/index.cjs +1 -1
- package/dist/components/image/index.js +1 -1
- package/dist/components/input/index.cjs +1 -1
- package/dist/components/input/index.js +4 -2
- package/dist/components/label/index.cjs +1 -0
- package/dist/components/label/index.js +18 -0
- package/dist/components/link/index.cjs +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list/index.cjs +1 -1
- package/dist/components/list/index.js +1 -1
- package/dist/components/loading/index.cjs +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/message/index.cjs +1 -1
- package/dist/components/message/index.js +2 -2
- package/dist/components/messages/index.cjs +1 -1
- package/dist/components/messages/index.js +2 -2
- package/dist/components/nav/index.cjs +1 -1
- package/dist/components/nav/index.js +1 -1
- package/dist/components/object/index.cjs +1 -1
- package/dist/components/object/index.js +1 -1
- package/dist/components/page-layout/index.cjs +1 -1
- package/dist/components/page-layout/index.js +1 -1
- package/dist/components/panel/index.cjs +1 -1
- package/dist/components/panel/index.js +1 -1
- package/dist/components/popover/index.cjs +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/portal/index.cjs +1 -1
- package/dist/components/portal/index.js +1 -1
- package/dist/components/radio/index.cjs +1 -0
- package/dist/components/radio/index.js +35 -0
- package/dist/components/search/index.cjs +1 -1
- package/dist/components/search/index.js +2 -2
- package/dist/components/select/index.cjs +1 -1
- package/dist/components/select/index.js +3 -2
- package/dist/components/textarea/index.cjs +1 -1
- package/dist/components/textarea/index.js +30 -29
- package/dist/components/toggle/index.cjs +1 -1
- package/dist/components/toggle/index.js +16 -16
- package/dist/components/toolbar/index.cjs +1 -1
- package/dist/components/toolbar/index.js +8 -9
- package/dist/components/tooltip/index.cjs +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/{index-DqZSdMHT.cjs → index-B4dFheLl.cjs} +1 -1
- package/dist/{index-KGoXYG8u.js → index-BJiUk1q2.js} +2 -2
- package/dist/index-BQoXmNo3.cjs +1 -0
- package/dist/index-Bre56YYa.js +90 -0
- package/dist/{index-Bl5EEYDv.cjs → index-BwfsmdF6.cjs} +1 -1
- package/dist/index-CHJNMNDr.cjs +1 -0
- package/dist/index-GPsHvb4d.js +74 -0
- package/dist/{index-DQuc_Zkg.js → index-acMNM3VJ.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +30 -7
- package/dist/index.js +74 -70
- package/dist/tokens.css +79 -38
- package/dist/tokens.json +627 -257
- package/package.json +1 -1
- package/dist/index-FSKjg3Z8.js +0 -82
- package/dist/index-HVXauXrX.js +0 -73
- package/dist/index-S1XsOUKE.cjs +0 -1
- package/dist/index-riaH5c_S.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index44.css');const e=require("react/jsx-runtime"),c=require("../icon/index.cjs"),m="_header_1nfk9_14",s={"empty-state":"_empty-state_1nfk9_3",header:m},i=({button:n,content:a,header:r,icon:t})=>e.jsxs("div",{className:s["empty-state"],"data-component":"emptystate",children:[e.jsxs("p",{className:s.header,children:[t&&e.jsx(c.Icon,{gap:"right",name:t,size:"medium"}),r]}),e.jsx("p",{children:a}),n]});exports.EmptyState=i;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as p } from "../icon/index.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index44.css';const d = "_header_1nfk9_14", s = {
|
|
4
4
|
"empty-state": "_empty-state_1nfk9_3",
|
|
5
5
|
header: d
|
|
6
6
|
}, h = ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index45.css');const s=require("react/jsx-runtime"),i=require("classix"),l="_fieldset_109id_1",d={fieldset:l},o=({className:e,...t})=>s.jsx("fieldset",{className:i(d.fieldset,e),...t,"data-component":"fieldset"});exports.Fieldset=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index46.css');const s=require("react/jsx-runtime"),n=require("classix"),c="_figure_8kovu_1",v="_preview_8kovu_20",d="_reserved_8kovu_43",e={figure:c,preview:v,reserved:d},g=({accessibleLabel:r,children:t,className:o,reserveSpace:u=!1,variant:i="default"})=>s.jsxs("figure",{className:n(e.figure,i==="preview"&&e.preview,i==="preview"&&u&&e.reserved,o),"data-component":"figure",children:[t,r&&s.jsx("figcaption",{"data-content":"screen-reader",children:r})]});exports.Figure=g;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as v } from "react/jsx-runtime";
|
|
2
2
|
import c from "classix";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index46.css';const f = "_figure_8kovu_1", p = "_preview_8kovu_20", u = "_reserved_8kovu_43", e = {
|
|
4
4
|
figure: f,
|
|
5
5
|
preview: p,
|
|
6
6
|
reserved: u
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index47.css');const e=require("react/jsx-runtime"),j=require("../figure/index.cjs"),x=require("../icon/index.cjs"),f=require("../button/index.cjs"),N="_file_1uuq9_1",q="_action_1uuq9_14",F="_details_1uuq9_61",b="_name_1uuq9_68",g="_extension_1uuq9_80",I="_subtitle_1uuq9_90",s={file:N,action:q,delete:"_delete_1uuq9_15",details:F,"name-line":"_name-line_1uuq9_68",name:b,extension:g,subtitle:I},P={".doc":"FileDoc",".docx":"FileDoc",".pdf":"FilePdf",".ppt":"FilePpt",".pptx":"FilePpt",".xls":"FileXls",".xlsx":"FileXls"},y=({deleteAccessibleLabel:_,name:t,onClick:n,onDelete:o,ref:p,subtitle:r,url:u})=>{const i=t.lastIndexOf("."),d=i>0&&i<t.length-1,m=d?t.slice(0,i):t,a=d?t.slice(i):"",h=P[a.toLowerCase()]??"FileText",c=e.jsxs(e.Fragment,{children:[e.jsx(j.Figure,{children:e.jsx(x.Icon,{name:h})}),e.jsxs("span",{className:s.details,children:[e.jsxs("span",{className:s["name-line"],children:[e.jsx("span",{className:s.name,children:m}),a&&e.jsx("span",{className:s.extension,children:a})]}),r&&e.jsx("span",{className:s.subtitle,children:r})]})]});return e.jsxs("div",{className:s.file,ref:p,"data-component":"file",children:[u?e.jsx("a",{className:s.action,href:u,onClick:l=>{l.stopPropagation(),n&&(l.preventDefault(),n())},title:t,children:c}):n?e.jsx("button",{"aria-label":t,className:s.action,"data-actionable":"true","data-print-content":!0,onClick:l=>{l.stopPropagation(),n()},title:t,type:"button",children:c}):e.jsx("div",{className:s.action,title:t,children:c}),o&&e.jsx(f.Button,{"aria-label":_??`Delete ${t}`,className:s.delete,onClick:()=>o(),variant:"tertiary",children:e.jsx(x.Icon,{name:"Trash",size:"small"})})]})};exports.File=y;
|
|
@@ -2,7 +2,7 @@ import { jsxs as a, jsx as t, Fragment as N } from "react/jsx-runtime";
|
|
|
2
2
|
import { Figure as F } from "../figure/index.js";
|
|
3
3
|
import { Icon as p } from "../icon/index.js";
|
|
4
4
|
import { Button as b } from "../button/index.js";
|
|
5
|
-
import '../../assets/
|
|
5
|
+
import '../../assets/index47.css';const q = "_file_1uuq9_1", g = "_action_1uuq9_14", I = "_details_1uuq9_61", P = "_name_1uuq9_68", v = "_extension_1uuq9_80", y = "_subtitle_1uuq9_90", n = {
|
|
6
6
|
file: q,
|
|
7
7
|
action: g,
|
|
8
8
|
delete: "_delete_1uuq9_15",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index48.css');const c=require("react/jsx-runtime"),a=require("classix"),u="_footer_8tfam_1",m="_columns_8tfam_5",t={footer:u,columns:m},l=({animation:e,children:o,className:n,variant:s="default",...r})=>c.jsx("footer",{className:a(t.footer,s==="columns"&&t.columns,n),"data-animation":e,...r,"data-component":"footer",children:o&&o});exports.Footer=l;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import c from "classix";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index48.css';const a = "_footer_8tfam_1", f = "_columns_8tfam_5", t = {
|
|
4
4
|
footer: a,
|
|
5
5
|
columns: f
|
|
6
6
|
}, _ = ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index49.css');const e=require("react/jsx-runtime"),l=require("classix"),a=require("../icon/index.cjs"),c="_form_fqdjd_1",d="_fill_fqdjd_30",m="_error_fqdjd_36",n={form:c,fill:d,error:m},f=({errorId:o,errorMessage:r})=>e.jsxs("span",{className:n.error,id:o,role:"alert","data-component":"fielderror",children:[e.jsx(a.Icon,{gap:"right",name:"Warning",size:"small",weight:"fill"}),e.jsx("span",{children:r})]}),_=({animation:o,children:r,className:s,fill:t=!1,...i})=>e.jsx("form",{className:l(s,t&&n.fill,n.form),"data-animation":o,...i,"data-component":"form",children:r&&r});exports.FieldError=f;exports.Form=_;
|
|
@@ -1,15 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import s from "classix";
|
|
3
|
+
import { Icon as f } from "../icon/index.js";
|
|
4
|
+
import '../../assets/index49.css';const i = "_form_fqdjd_1", c = "_fill_fqdjd_30", d = "_error_fqdjd_36", l = {
|
|
5
|
+
form: i,
|
|
6
|
+
fill: c,
|
|
7
|
+
error: d
|
|
8
|
+
}, g = ({
|
|
9
|
+
errorId: o,
|
|
10
|
+
errorMessage: r
|
|
11
|
+
}) => /* @__PURE__ */ m("span", { className: l.error, id: o, role: "alert", "data-component": "fielderror", children: [
|
|
12
|
+
/* @__PURE__ */ e(f, { gap: "right", name: "Warning", size: "small", weight: "fill" }),
|
|
13
|
+
/* @__PURE__ */ e("span", { children: r })
|
|
14
|
+
] }), h = ({
|
|
15
|
+
animation: o,
|
|
16
|
+
children: r,
|
|
17
|
+
className: n,
|
|
10
18
|
fill: t = !1,
|
|
11
|
-
...
|
|
12
|
-
}) => /* @__PURE__ */
|
|
19
|
+
...a
|
|
20
|
+
}) => /* @__PURE__ */ e("form", { className: s(n, t && l.fill, l.form), "data-animation": o, ...a, "data-component": "form", children: r && r });
|
|
13
21
|
export {
|
|
14
|
-
|
|
22
|
+
g as FieldError,
|
|
23
|
+
h as Form
|
|
15
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index50.css');const a=require("react/jsx-runtime"),b=require("classix"),j=require("../loading/index.cjs"),q="_graph_plhqd_11",v="_plot_plhqd_20",N="_item_plhqd_34",y="_column_plhqd_40",f="_value_plhqd_48",k="_track_plhqd_58",M="_bar_plhqd_65",V="_label_plhqd_87",l={graph:q,plot:v,item:N,column:y,value:f,track:k,bar:M,label:V,"is-loading":"_is-loading_plhqd_96"},h=s=>Number.isFinite(s)?Math.max(0,s):0,S=({accessibleLabel:s,className:i,height:r,items:n=[],style:p,valueFormatter:d=t=>t.toLocaleString(),...u})=>{const t=n.reduce((e,c)=>Math.max(e,h(c.value)),0),_={...p,"--graph-columns":Math.max(n.length,1),"--graph-height":r||"calc(var(--utils-tokens-unit) * 16)"};return a.jsxs("figure",{className:b(l.graph,i),style:_,...u,"data-component":"graph",children:[s&&a.jsx("figcaption",{"data-content":"screen-reader",children:s}),n.length>0?a.jsx("ul",{className:l.plot,children:n.map((e,c)=>{const o=h(e.value),m=t>0?o/t*100:0,g=o>0?Math.max(m,6):0,x={"--bar-color":e.color,"--bar-delay":c*50+"ms","--bar-height":g+"%"};return a.jsxs("li",{className:l.item,"data-component":"graph",children:[a.jsxs("div",{className:l.column,children:[a.jsx("span",{className:l.value,children:d(e.value)}),a.jsx("span",{className:l.track,children:a.jsx("span",{className:l.bar,style:x})})]}),a.jsx("span",{className:l.label,title:e.label,children:e.label})]},e.label+c)})}):a.jsx("div",{className:l["is-loading"],children:a.jsx(j.Loading,{})})]})};exports.Graph=S;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import q from "classix";
|
|
3
3
|
import { Loading as v } from "../loading/index.js";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index50.css';const x = "_graph_plhqd_11", f = "_plot_plhqd_20", k = "_item_plhqd_34", V = "_column_plhqd_40", y = "_value_plhqd_48", M = "_track_plhqd_58", w = "_bar_plhqd_65", j = "_label_plhqd_87", a = {
|
|
5
5
|
graph: x,
|
|
6
6
|
plot: f,
|
|
7
7
|
item: k,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index51.css');const g=require("react/jsx-runtime"),j=require("classix"),m="_row_13j4j_1",u="_stack_13j4j_2",f="_between_13j4j_19",w="_end_13j4j_23",b="_fields_13j4j_27",s={row:m,stack:u,between:f,end:w,fields:b},v={none:"0",small:"var(--shape-spacing-xs)",medium:"var(--shape-spacing-sm)",large:"var(--shape-spacing-md)"},x={start:"flex-start",center:"center",end:"flex-end"},k=({animation:a,align:t,children:r,className:o,constrainFields:c=!1,gap:d="none",justify:n,layout:e,style:i,stackOnMobile:l=!1,...p})=>{const _={...i,"--group-align":t?x[t]:e==="stack"?"stretch":"center","--group-gap":v[d]};return g.jsx("div",{className:j(o,e&&s[e],n&&s[n],c&&s.fields),"data-stack-on-mobile":l||void 0,"data-animation":a,"data-wrapper":!0,style:_,...p,"data-component":"group",children:r})};exports.Group=k;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import g from "classix";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index51.css';const j = "_row_13j4j_1", f = "_stack_13j4j_2", w = "_between_13j4j_19", x = "_end_13j4j_23", k = "_fields_13j4j_27", s = {
|
|
4
4
|
row: j,
|
|
5
5
|
stack: f,
|
|
6
6
|
between: w,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index21.css');const t=require("react/jsx-runtime"),l=require("classix"),m="_header_tbj7k_1",p="_controls_tbj7k_58",v="_cta_tbj7k_85",k="_sized_tbj7k_135",g="_details_tbj7k_139",x="_description_tbj7k_146",f="_warning_tbj7k_154",N="_value_tbj7k_159",y="_jumbo_tbj7k_164",w="_inset_tbj7k_174",z="_panel_tbj7k_178",e={header:m,controls:p,cta:v,"header-content":"_header-content_tbj7k_97",sized:k,details:g,description:x,warning:f,value:N,jumbo:y,inset:w,panel:z},q={default:e.default,jumbo:e.jumbo,panel:e.panel},H=({backButton:i,capitalize:d=!1,children:_,controls:a,details:n,cta:c,header:j,inset:h=!1,size:s,subHeader:u,variant:b="default"})=>{const o=t.jsxs("div",{className:e["header-content"],children:[i,j,u,n&&t.jsxs("div",{className:e.details,children:[t.jsx("div",{className:l(e.description,n.tone==="warning"&&e.warning),children:n.description}),n.value!=null&&t.jsx("strong",{className:e.value,children:n.value})]})]}),r=a?t.jsxs("div",{className:e.controls,children:[o,a]}):o;return t.jsxs("header",{className:l(e.header,q[b],d&&e.capitalize,h&&e.inset,s&&e.sized),style:s?{"--header-heading-size":`var(--typography-font-sizes-${s==="label"?"label-lg":s})`}:void 0,"data-component":"header",children:[c?t.jsxs("div",{className:e.cta,children:[r,c]}):r,_]})};exports.Header=H;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import i from "classix";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index21.css';const u = "_header_tbj7k_1", v = "_controls_tbj7k_58", k = "_cta_tbj7k_85", g = "_sized_tbj7k_135", f = "_details_tbj7k_139", N = "_description_tbj7k_146", w = "_warning_tbj7k_154", x = "_value_tbj7k_159", y = "_jumbo_tbj7k_164", z = "_inset_tbj7k_174", C = "_panel_tbj7k_178", e = {
|
|
4
4
|
header: u,
|
|
5
5
|
controls: v,
|
|
6
6
|
cta: k,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index52.css');const c=require("react/jsx-runtime"),r=require("classix"),l=require("../../icons-BIdcCH-v.cjs"),_="_icon_23h6o_1",m="_large_23h6o_10",g="_medium_23h6o_15",d="_small_23h6o_20",u="_tiny_23h6o_25",h="_danger_23h6o_30",n={icon:_,large:m,medium:g,small:d,tiny:u,danger:h,"gap-right":"_gap-right_23h6o_34","gap-left":"_gap-left_23h6o_38"},y={large:n.large,medium:n.medium,small:n.small,tiny:n.tiny},p={danger:n.danger},S=({gap:e="none",name:t,size:s="medium",variant:o,weight:i})=>{const a={maskImage:l.iconSVG(t,void 0,i)};return c.jsx("span",{"aria-hidden":"true",className:r(e!=="none"&&n[`gap-${e}`],y[s],n.icon,o&&p[o]),style:a,"data-component":"icon"})};exports.Icon=S;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import _ from "classix";
|
|
3
3
|
import { i as r } from "../../icons-DVeBguFb.js";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index52.css';const c = "_icon_23h6o_1", l = "_large_23h6o_10", g = "_medium_23h6o_15", d = "_small_23h6o_20", h = "_tiny_23h6o_25", p = "_danger_23h6o_30", o = {
|
|
5
5
|
icon: c,
|
|
6
6
|
large: l,
|
|
7
7
|
medium: g,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index20.css');const r=require("react/jsx-runtime"),z=require("classix"),i=require("react"),L=require("../button/index.cjs"),te=require("../../index-BwfsmdF6.cjs"),ne=require("../dialog/index.cjs"),re=require("../header/index.cjs"),ie="_wrapper_vtkwq_1",se="_toolbar_vtkwq_6",oe="_iframe_vtkwq_12",m={wrapper:ie,toolbar:se,iframe:oe,"fullscreen-iframe":"_fullscreen-iframe_vtkwq_18","print-content":"_print-content_vtkwq_23"},k=120,ce=12e3,ae=8,le=({accessibleLabel:v,autoResize:l=!1,className:S,closeFullscreenLabel:W="Close fullscreen",fullscreenLabel:X="View in fullscreen",hasFullscreenView:J=!0,loading:K="lazy",onLoad:w,printContent:C,referrerPolicy:F="no-referrer",sandbox:O="",srcDoc:f,style:N,...I})=>{const _=i.useRef(null),g=i.useRef(null),h=i.useRef(void 0),p=i.useRef(!0),x=i.useRef(f),y=i.useRef(void 0),[P,Q]=i.useState(k),[M,b]=i.useState(!1),R=i.useCallback(()=>{g.current!==null&&(window.cancelAnimationFrame(g.current),g.current=null)},[]),T=i.useCallback(()=>{if(!(!l||!p.current))try{const e=_.current,n=e==null?void 0:e.contentDocument;if(!e||!(n!=null&&n.body))return;const s=n.querySelector("[data-iframe-content]")??n.body,t=s.getBoundingClientRect(),c=e.clientHeight||Number.parseFloat(e.style.height),u=n.documentElement.scrollHeight,H=Math.max(s.scrollHeight,s.offsetHeight,t.height),o=Math.max(s===n.body&&s.scrollHeight<=c?0:s.scrollHeight,s.offsetHeight,t.height,t.bottom||0),A=u>c+1?u:0,Z=Number.parseFloat(window.getComputedStyle(s).height),D=Math.abs(H-c)<=1||Math.abs(Z-c)<=1&&s.scrollHeight<=s.offsetHeight,B=Math.min(Math.max(Math.ceil(D?c:Math.max(o,A)+ae),k),ce),d=y.current,q=Math.max(o,A),U=e.clientWidth,ee=(d==null?void 0:d.document)===n&&d.width===U,E=d?c-d.viewportHeight:0,V=d?q-d.contentHeight:0,G=!!(ee&&q>c&&(E>1&&Math.abs(V-E)<=1||d.viewportDependent&&Math.abs(E)<=1&&Math.abs(V)<=1));y.current={document:n,viewportHeight:c,width:U,contentHeight:q,viewportDependent:G},G||Q($=>$===B?$:B)}catch{return}},[l]),a=i.useCallback(()=>{!l||!p.current||g.current!==null||(g.current=window.requestAnimationFrame(()=>{g.current=null,T()}))},[l,T]),j=i.useCallback(()=>{var e,n,s;if((e=h.current)==null||e.call(h),h.current=void 0,y.current=void 0,!!l)try{const t=(n=_.current)==null?void 0:n.contentDocument;if(!(t!=null&&t.body))return;let c=!0;const u=()=>{c&&a()},H=t.querySelector("[data-iframe-content]")??t.body,o=typeof ResizeObserver>"u"?void 0:new ResizeObserver(u);o==null||o.observe(H),H!==t.body&&(o==null||o.observe(t.body)),t.addEventListener("load",u,!0),t.addEventListener("error",u,!0),(s=t.fonts)==null||s.ready.then(u).catch(()=>{}),h.current=()=>{c=!1,o==null||o.disconnect(),t.removeEventListener("load",u,!0),t.removeEventListener("error",u,!0)}}catch{return}},[l,a]),Y=e=>{p.current=!0,j(),w==null||w(e),a()};return i.useEffect(()=>(p.current=x.current===f,x.current===f&&(j(),a()),x.current=f,()=>{var e;p.current=!1,(e=h.current)==null||e.call(h),R()}),[R,j,a,f]),i.useEffect(()=>{var e;if(l)return window.addEventListener("resize",a),(e=window.visualViewport)==null||e.addEventListener("resize",a),()=>{var n;window.removeEventListener("resize",a),(n=window.visualViewport)==null||n.removeEventListener("resize",a)}},[l,a]),r.jsxs("div",{className:m.wrapper,"data-component":"iframe",children:[J&&r.jsx("div",{className:m.toolbar,children:r.jsx(L.Button,{"aria-expanded":M,"aria-haspopup":"dialog",onClick:()=>b(!0),variant:"tertiary",children:X})}),r.jsx("iframe",{...I,className:z(m.iframe,S),loading:K,onLoad:Y,ref:_,referrerPolicy:F,sandbox:O,srcDoc:f,style:l?{...N,height:P,minHeight:k}:N,title:v}),!M&&r.jsx("div",{className:m["print-content"],"data-iframe-print-content":!0,children:C??r.jsx("p",{children:v})}),M&&r.jsxs(ne.Dialog,{"aria-label":`${v} fullscreen`,controls:r.jsx(te.Controls,{children:r.jsx(L.Button,{onClick:()=>b(!1),children:W})}),fullscreen:!0,header:r.jsx(re.Header,{children:r.jsx("h2",{children:v})}),open:!0,setOpen:b,children:[r.jsx("iframe",{...I,className:z(m.iframe,m["fullscreen-iframe"],S),loading:"eager",onLoad:w,referrerPolicy:F,sandbox:O,srcDoc:f,title:`${v} fullscreen`}),r.jsx("div",{className:m["print-content"],"data-iframe-print-content":!0,children:C??r.jsx("p",{children:v})})]})]})};exports.Iframe=le;
|
|
@@ -2,10 +2,10 @@ import { jsxs as W, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import X from "classix";
|
|
3
3
|
import { useRef as v, useState as J, useCallback as _, useEffect as K } from "react";
|
|
4
4
|
import { Button as Q } from "../button/index.js";
|
|
5
|
-
import { C as oe } from "../../index-
|
|
5
|
+
import { C as oe } from "../../index-acMNM3VJ.js";
|
|
6
6
|
import { Dialog as ce } from "../dialog/index.js";
|
|
7
7
|
import { Header as se } from "../header/index.js";
|
|
8
|
-
import '../../assets/
|
|
8
|
+
import '../../assets/index20.css';const ae = "_wrapper_vtkwq_1", le = "_toolbar_vtkwq_6", ue = "_iframe_vtkwq_12", m = {
|
|
9
9
|
wrapper: ae,
|
|
10
10
|
toolbar: le,
|
|
11
11
|
iframe: ue,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index19.css');const d=require("react/jsx-runtime"),c=require("react"),o="_image_14j8z_1",y={image:o};function S({fadeDurationMs:n=250,showOnError:r=!0,onLoad:a,onError:i,style:l,...t}){const u=c.useRef(null),[m,s]=c.useState(!1);c.useEffect(()=>{s(!1)},[t.src,t.srcSet]),c.useEffect(()=>{const e=u.current;e&&e.complete&&e.naturalWidth>0&&s(!0)},[t.src,t.srcSet]);const f=e=>{s(!0),a==null||a(e)},g=e=>{r&&s(!0),i==null||i(e)};return d.jsx("img",{...t,className:y.image,onLoad:f,onError:g,ref:u,style:{...l,opacity:m?1:0,"--duration-override":`${n}ms`},"data-component":"image"})}exports.Image=S;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as o, useState as h, useEffect as m } from "react";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index19.css';const y = "_image_14j8z_1", S = {
|
|
4
4
|
image: y
|
|
5
5
|
};
|
|
6
6
|
function x({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("classix");require("react");require("../../icons-BIdcCH-v.cjs");require("../../use-touched-Bq5Gjbpz.cjs");const e=require("../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("classix");require("react");require("../form/index.cjs");require("../../icons-BIdcCH-v.cjs");require("../label/index.cjs");require("../../use-touched-Bq5Gjbpz.cjs");const e=require("../../index-CHJNMNDr.cjs");exports.Input=e.Input;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "classix";
|
|
3
3
|
import "react";
|
|
4
|
+
import "../form/index.js";
|
|
4
5
|
import "../../icons-DVeBguFb.js";
|
|
6
|
+
import "../label/index.js";
|
|
5
7
|
import "../../use-touched-B999bBr8.js";
|
|
6
|
-
import { I as
|
|
8
|
+
import { I as f } from "../../index-Bre56YYa.js";
|
|
7
9
|
export {
|
|
8
|
-
|
|
10
|
+
f as Input
|
|
9
11
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index54.css');const n=require("react/jsx-runtime"),c=require("classix"),a="_label_c06i2_1",r="_description_c06i2_5",o="_inline_c06i2_12",e={label:a,description:r,inline:o},d=({description:i,inline:l,label:s,required:t})=>n.jsxs("div",{className:c(l&&e.inline,e.label),"data-required":t?!0:void 0,"data-component":"label",children:[s,i&&n.jsx("span",{className:e.description,children:i})]});exports.Label=d;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import o from "classix";
|
|
3
|
+
import '../../assets/index54.css';const a = "_label_c06i2_1", r = "_description_c06i2_5", d = "_inline_c06i2_12", e = {
|
|
4
|
+
label: a,
|
|
5
|
+
description: r,
|
|
6
|
+
inline: d
|
|
7
|
+
}, m = ({
|
|
8
|
+
description: i,
|
|
9
|
+
inline: n,
|
|
10
|
+
label: l,
|
|
11
|
+
required: s
|
|
12
|
+
}) => /* @__PURE__ */ c("div", { className: o(n && e.inline, e.label), "data-required": s ? !0 : void 0, "data-component": "label", children: [
|
|
13
|
+
l,
|
|
14
|
+
i && /* @__PURE__ */ t("span", { className: e.description, children: i })
|
|
15
|
+
] });
|
|
16
|
+
export {
|
|
17
|
+
m as Label
|
|
18
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index55.css');const t=require("react/jsx-runtime"),o=require("classix"),c="_link_5i71r_1",l="_neutral_5i71r_19",m="_content_5i71r_24",_="_adornment_5i71r_33",d="_text_5i71r_37",u="_primary_5i71r_43",p="_danger_5i71r_49",x="_minimal_5i71r_57",n={link:c,neutral:l,content:m,adornment:_,text:d,primary:u,danger:p,minimal:x},k=({children:s,leading:e,trailing:r})=>t.jsxs("span",{className:n.content,"data-component":"linkcontent",children:[e!=null&&t.jsx("span",{className:n.adornment,children:e}),t.jsx("span",{className:n.text,children:s}),r!=null&&t.jsx("span",{className:n.adornment,children:r})]}),j=({children:s,className:e,to:r="#",variant:a="primary",...i})=>t.jsx("a",{className:o(e,n.link,n[a]),href:r,...i,"data-component":"link",children:s});exports.Link=j;exports.LinkContent=k;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import c from "classix";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index55.css';const m = "_link_5i71r_1", _ = "_neutral_5i71r_19", l = "_content_5i71r_24", p = "_adornment_5i71r_33", d = "_text_5i71r_37", k = "_primary_5i71r_43", x = "_danger_5i71r_49", u = "_minimal_5i71r_57", n = {
|
|
4
4
|
link: m,
|
|
5
5
|
neutral: _,
|
|
6
6
|
content: l,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index56.css');const u=require("react/jsx-runtime"),H=require("classix"),r=require("react");function T(e){return r.isValidElement(e)&&e.type===r.Fragment}function O(e,n=[]){return r.Children.forEach(e,i=>{T(i)?O(i.props.children,n):n.push(i)}),n}function F(e,{wrapper:n="li"}={}){return O(e).filter(s=>s!==null).map((s,c)=>{if(r.isValidElement(s)&&s.type===n)return s;const m=r.isValidElement(s)&&s.key!=null?s.key:c;return r.createElement(n,{key:m,"data-component":"wrapchildren"},s)})}const V="_controls_uue68_1",A="_horizontal_uue68_9",I="_list_uue68_20",D="_columns_uue68_61",P="_masonry_uue68_71",$="_scrollable_uue68_81",G="_overflowing_uue68_88",J="_sized_uue68_111",K="_compact_uue68_123",l={controls:V,horizontal:A,list:I,columns:D,masonry:P,scrollable:$,overflowing:G,sized:J,compact:K},M=(e,n)=>{typeof e=="function"?e(n):e&&(e.current=n)};function Q({children:e,className:n,columns:i=1,columnWidth:b,compact:s=!1,controls:c,horizontal:m,layout:h="grid",maxVisibleItems:f,ordered:B,ref:p,style:S,...d}){const v=Number.isFinite(i)?Math.max(1,Math.floor(i)):1,y=r.useRef(null),[a,k]=r.useState(),o=h==="grid"&&v===1&&!m&&f!=null&&Number.isFinite(f)&&f>=1?Math.floor(f):void 0,w=!!o&&a!=null;r.useLayoutEffect(()=>{const t=y.current;if(!t||!o)return;const R=()=>{const g=Array.from(t.children).filter(j=>j instanceof HTMLElement&&getComputedStyle(j).display!=="none"),N=g[o-1],q=g.length>o&&N?N.getBoundingClientRect().bottom-t.getBoundingClientRect().top+t.scrollTop+(parseFloat(getComputedStyle(t).paddingBottom)||0):void 0;k(q)},_=new ResizeObserver(R),C=()=>{_.disconnect(),_.observe(t),Array.from(t.children).forEach(g=>_.observe(g)),R()},L=new MutationObserver(C);return L.observe(t,{childList:!0,subtree:!0,characterData:!0}),C(),()=>{_.disconnect(),L.disconnect()}},[e,o,w]);const x=H(n,l.list,h==="masonry"?l.masonry:v>1&&l.columns,!!o&&l.scrollable,w&&l.overflowing,m&&l.horizontal,s&&l.compact,b&&l.sized),z={...S,"--list-columns":v,"--list-column-width":b,"--list-max-height":o&&a!=null?`${a}px`:void 0},E=B?u.jsx("ol",{className:x,ref:t=>{y.current=t,M(p,t)},style:z,...d,tabIndex:d.tabIndex??(o&&a!=null?0:void 0),"data-component":"list",children:F(e)}):u.jsx("ul",{className:x,ref:t=>{y.current=t,M(p,t)},style:z,...d,tabIndex:d.tabIndex??(o&&a!=null?0:void 0),"data-component":"list",children:F(e)});return c==null?E:u.jsxs(u.Fragment,{children:[u.jsx("div",{className:l.controls,"data-component":"list",children:c}),E]})}exports.List=Q;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as b, jsxs as j, Fragment as A } from "react/jsx-runtime";
|
|
2
2
|
import I from "classix";
|
|
3
3
|
import i, { useRef as T, useState as D, useLayoutEffect as $ } from "react";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index56.css';function q(t) {
|
|
5
5
|
return i.isValidElement(t) && t.type === i.Fragment;
|
|
6
6
|
}
|
|
7
7
|
function O(t, n = []) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index57.css');const l=require("react/jsx-runtime"),e=require("classix"),t="_loading_1jrs1_23",r="_spin_1jrs1_1",o="_small_1jrs1_40",_="_large_1jrs1_46",d="_ping_1jrs1_52",g="_fullscreen_1jrs1_78",u="_sticky_1jrs1_86",s={loading:t,default:"_default_1jrs1_29",spin:r,small:o,large:_,ping:d,fullscreen:g,sticky:u},m={fullscreen:s.fullscreen,large:s.large,medium:s.medium,small:s.small},j=({variant:n="default",size:a="medium",sticky:c=!1,...i})=>l.jsx("div",{className:e.cx(s.loading,c&&s.sticky),"data-component":"loading",children:l.jsx("span",{className:e.cx(s.loading,s[n],m[a]),...i})});exports.Loading=j;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { cx as n } from "classix";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index57.css';const c = "_loading_1jrs1_23", o = "_spin_1jrs1_1", t = "_small_1jrs1_40", _ = "_large_1jrs1_46", m = "_ping_1jrs1_52", d = "_fullscreen_1jrs1_78", g = "_sticky_1jrs1_86", s = {
|
|
4
4
|
loading: c,
|
|
5
5
|
default: "_default_1jrs1_29",
|
|
6
6
|
spin: o,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index18.css');const e=require("react/jsx-runtime"),j=require("classix"),y=require("../avatar/index.cjs"),l=require("../../index-BwfsmdF6.cjs"),q=require("../icon/index.cjs"),S="_attachments_1jli5_1",I="_footer_1jli5_27",C="_message_1jli5_11",M="_timestamp_1jli5_147",L="_actions_1jli5_152",O="_preview_1jli5_164",T="_toolbar_1jli5_199",s={attachments:S,"message-group":"_message-group_1jli5_11",footer:I,message:C,timestamp:M,actions:L,preview:O,toolbar:T,"with-toolbar":"_with-toolbar_1jli5_205"},k=({actions:o,actionsPlacement:u="footer",appearance:v="default",attachments:c,author:i,authorColor:x,authorImageUrl:h,authorLink:p,authorRole:b,content:m,iconName:f="Info",id:N,preview:d,timestamp:_,timestampText:w,type:t="default"})=>{const a=!!o&&u==="toolbar"&&t!=="system",g=a?l.controlChildren(o):[],n=_?new Date(_):void 0,r=n?e.jsx("time",{className:s.timestamp,dateTime:n.toISOString(),children:w??n.toLocaleString()}):null;return e.jsxs("div",{className:s["message-group"],"data-message-type":t,"data-component":"message",children:[i&&e.jsx(y.Avatar,{accessibleLabel:i,color:x,imageUrl:h,link:p,name:i,role:b}),t==="system"&&r,e.jsxs("div",{className:j(s.message,a&&s["with-toolbar"]),"data-appearance":v,"data-id":N,"data-type":t,children:[t=="system"&&e.jsx(q.Icon,{gap:"right",name:f,size:"tiny"}),d||a?e.jsx("div",{className:j(d&&s.preview),children:m}):m,a&&e.jsx("div",{className:s.toolbar,children:e.jsx(l.Controls,{variant:g.every(l.isControlButton)?"embedded":"inline",children:g})})]}),c&&e.jsx("div",{className:s.attachments,children:c}),t!=="system"&&(o&&!a?e.jsxs("div",{className:s.footer,children:[r,e.jsx("div",{className:s.actions,"data-message-actions":!0,children:o})]}):r)]})};exports.Message=k;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import p from "classix";
|
|
3
3
|
import { Avatar as y } from "../avatar/index.js";
|
|
4
|
-
import { c as C, C as I, i as S } from "../../index-
|
|
4
|
+
import { c as C, C as I, i as S } from "../../index-acMNM3VJ.js";
|
|
5
5
|
import { Icon as L } from "../icon/index.js";
|
|
6
|
-
import '../../assets/
|
|
6
|
+
import '../../assets/index18.css';const k = "_attachments_1jli5_1", z = "_footer_1jli5_27", A = "_message_1jli5_11", B = "_timestamp_1jli5_147", D = "_actions_1jli5_152", E = "_preview_1jli5_164", M = "_toolbar_1jli5_199", e = {
|
|
7
7
|
attachments: k,
|
|
8
8
|
"message-group": "_message-group_1jli5_11",
|
|
9
9
|
footer: z,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index16.css');const c=require("react/jsx-runtime"),A=require("classix"),f=require("react"),D=require("../editor/index.cjs"),H=require("../list/index.cjs"),P=require("../tooltip/index.cjs"),q=require("../button/index.cjs"),U=require("../../index-BwfsmdF6.cjs"),C=require("../../content-i-MRPlxK.cjs"),K=require("../message/index.cjs"),N="_messages_15gj2_1",I="_fill_15gj2_22",$="_composer_15gj2_35",M={messages:N,fill:I,composer:$};function F(m,i=!1){const g=f.useRef(i),d=f.useRef(null),a=f.useRef(()=>{});return f.useLayoutEffect(()=>{const e=d.current;if(!e)return;let v=!0,p=e.scrollTop,l;const h=()=>{const o=e.getBoundingClientRect().top,r=Array.from(e.children).find(L=>L instanceof HTMLElement&&L.getBoundingClientRect().bottom>o);l=r?{element:r,offset:r.getBoundingClientRect().top-o}:void 0},_=()=>{if(Math.abs(e.scrollTop-p)<=.5)return!1;const o=Math.max(0,e.scrollHeight-e.clientHeight);return!(p>o&&Math.abs(e.scrollTop-o)<=.5)},s=()=>{if(g.current&&(v=!1),_()&&(v=!1,h()),v)e.scrollTop=e.scrollHeight;else if(l!=null&&l.element.isConnected&&e.contains(l.element)){const r=l.element.getBoundingClientRect().top-e.getBoundingClientRect().top-l.offset;Math.abs(r)>.5&&(e.scrollTop+=r)}p=e.scrollTop,h()};a.current=s;const u=()=>{v=!1,h()},y=()=>{_()&&(v=!1),p=e.scrollTop,h()},E=o=>{o.target===e&&u()},R=o=>{const r=o.target;r instanceof Element&&r.closest('input, textarea, select, [contenteditable="true"]')||["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"," "].includes(o.key)&&u()},n=typeof ResizeObserver>"u"?void 0:new ResizeObserver(s),w=()=>{n==null||n.disconnect(),n==null||n.observe(e),Array.from(e.children).forEach(o=>n==null?void 0:n.observe(o)),s()},x=new MutationObserver(w);return x.observe(e,{childList:!0,subtree:!0,characterData:!0}),w(),e.addEventListener("scroll",y,{passive:!0}),e.addEventListener("wheel",u,{passive:!0}),e.addEventListener("touchmove",u,{passive:!0}),e.addEventListener("pointerdown",E),e.addEventListener("keydown",R),e.addEventListener("load",s,!0),e.addEventListener("error",s,!0),()=>{a.current=()=>{},n==null||n.disconnect(),x.disconnect(),e.removeEventListener("scroll",y),e.removeEventListener("wheel",u),e.removeEventListener("touchmove",u),e.removeEventListener("pointerdown",E),e.removeEventListener("keydown",R),e.removeEventListener("load",s,!0),e.removeEventListener("error",s,!0)}},[]),f.useLayoutEffect(()=>{g.current=i,a.current()},[m,i]),d}const G=({messages:m,editingId:i})=>{var d;const g=F((d=m[m.length-1])==null?void 0:d.id,!!i);return c.jsx(H.List,{"data-message-list":!0,ref:g,tabIndex:0,"data-component":"messagelist",children:m.map(a=>c.jsx("li",{"data-message-editing":a.id===i||void 0,children:c.jsx(K.Message,{...a})},a.id))})},J=({autofocus:m=!0,editing:i,fill:g=!1,files:d,handleUpload:a,inlineImages:e,maxEditorRows:v=5,message:p="",messages:l,minEditorRows:h=1,onChange:_,onFilesChange:s,onInlineImagesChange:u,onSubmit:y,placeholder:E,resizableEditor:R=!1,sending:n,submitLabel:w="Send message",tooltipLabel:x})=>{const[o,r]=f.useState([]),L=d??o,t=i&&l.some(j=>j.id===i.messageId)?i:void 0,[B,T]=f.useState(!1),S=f.useRef(!1),b=!!(t!=null&&t.saving)||B,k=async()=>{if(!(!t||!C.hasEditorContent(t.content)||b||S.current)){S.current=!0,T(!0);try{await t.onSave(t.content)}catch{}finally{S.current=!1,T(!1)}}};return c.jsxs("div",{className:A(M.messages,g&&M.fill),"data-component":"messages",children:[c.jsx(G,{messages:l,editingId:t==null?void 0:t.messageId}),(t||x)&&c.jsx(P.Tooltip,{variant:"static",children:t?t.editingLabel??"Editing message":x}),c.jsx("div",{className:M.composer,children:c.jsx(D.Editor,{autofocus:m,sessionKey:t?`edit:${t.messageId}`:"reply",attachmentsEnabled:!t,controls:t?c.jsxs(U.Controls,{variant:"inline",children:[c.jsx(q.Button,{disabled:b,onClick:t.onCancel,variant:"secondary",children:t.cancelLabel??"Cancel"}),c.jsx(q.Button,{disabled:!C.hasEditorContent(t.content)||b,isLoading:b,onClick:()=>void k(),variant:"primary",children:t.saveLabel??"Save"})]}):void 0,content:(t==null?void 0:t.content)??p,disabled:n||!C.hasEditorContent(p)&&L.length===0&&!(e!=null&&e.length),files:L,inlineImages:e,isSubmitting:t?b:n,maxRows:v,minRows:h,onChange:(t==null?void 0:t.onChange)??_,onFilesChange:j=>{d===void 0&&r(j),s==null||s(j)},onInlineImagesChange:u,onSubmit:t?void 0:y,onUpload:a,placeholder:E,resizable:R?"top":!1,submitLabel:w})})]})};exports.Messages=J;
|
|
@@ -5,10 +5,10 @@ import { Editor as K } from "../editor/index.js";
|
|
|
5
5
|
import { List as N } from "../list/index.js";
|
|
6
6
|
import { Tooltip as q } from "../tooltip/index.js";
|
|
7
7
|
import { Button as D } from "../button/index.js";
|
|
8
|
-
import { C as I } from "../../index-
|
|
8
|
+
import { C as I } from "../../index-acMNM3VJ.js";
|
|
9
9
|
import { h as x } from "../../content-Duav5qcc.js";
|
|
10
10
|
import { Message as $ } from "../message/index.js";
|
|
11
|
-
import '../../assets/
|
|
11
|
+
import '../../assets/index16.css';const F = "_messages_15gj2_1", G = "_fill_15gj2_22", J = "_composer_15gj2_35", _ = {
|
|
12
12
|
messages: F,
|
|
13
13
|
fill: G,
|
|
14
14
|
composer: J
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index15.css');const i=require("react/jsx-runtime"),r=require("classix"),b=require("react"),m=require("../../icons-BIdcCH-v.cjs"),v="_nav_1jlcq_3",p="_label_1jlcq_9",j="_item_1jlcq_17",q="_actions_1jlcq_36",g="_highlighted_1jlcq_60",f="_horizontal_1jlcq_64",N="_sidebar_1jlcq_74",w="_stacked_1jlcq_124",x="_tabs_1jlcq_141",k="_pills_1jlcq_161",t={nav:v,label:p,item:j,actions:q,highlighted:g,horizontal:f,sidebar:N,stacked:w,tabs:x,pills:k},y={default:t.default,pills:t.pills,sidebar:t.sidebar,tabs:t.tabs},z=({className:a,...e})=>i.jsx("span",{className:r(a,t.label),...e,"data-component":"navlabel"}),S=({actions:a,children:e,className:c,highlighted:n=!1,layout:s="row",...o})=>i.jsxs("div",{className:r(t.item,n&&t.highlighted,s==="stack"&&t.stacked,c),"data-nav-item":!0,...o,"data-component":"navitem",children:[e,a&&i.jsx("span",{className:t.actions,children:a})]}),C=({animation:a,children:e,className:c,horizontal:n=!1,variant:s="default",...o})=>{const[_,d]=b.useState(!1),h={"--icon-svg":m.iconSVG("CaretDown")};return i.jsx("nav",{className:r(c,n&&t.horizontal,t.nav,y[s]),"data-animation":a,"data-open":_?"true":"false","data-orientation":n?"horizontal":"vertical",onBlurCapture:l=>{if(s!=="pills"||window.innerWidth>960)return;const u=l.relatedTarget;l.currentTarget.contains(u)||d(!1)},onClick:()=>{s!=="pills"||window.innerWidth>960||d(l=>!l)},style:h,...o,"data-component":"nav",children:e})};exports.Nav=C;exports.NavItem=S;exports.NavLabel=z;
|
|
@@ -2,7 +2,7 @@ import { jsx as c, jsxs as p } from "react/jsx-runtime";
|
|
|
2
2
|
import r from "classix";
|
|
3
3
|
import { useState as b } from "react";
|
|
4
4
|
import { i as f } from "../../icons-DVeBguFb.js";
|
|
5
|
-
import '../../assets/
|
|
5
|
+
import '../../assets/index15.css';const v = "_nav_1jlcq_3", j = "_label_1jlcq_9", u = "_item_1jlcq_17", g = "_actions_1jlcq_36", q = "_highlighted_1jlcq_60", w = "_horizontal_1jlcq_64", N = "_sidebar_1jlcq_74", k = "_stacked_1jlcq_124", x = "_tabs_1jlcq_141", z = "_pills_1jlcq_161", t = {
|
|
6
6
|
nav: v,
|
|
7
7
|
label: j,
|
|
8
8
|
item: u,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index14.css');const e=require("react/jsx-runtime"),n="_object_18i7r_1",s={object:n},a=({accessibleLabel:c,url:t,...o})=>e.jsx("object",{"aria-label":c,className:s.object,data:t,type:"application/pdf",...o,"data-component":"objectcomponent",children:t&&e.jsxs(e.Fragment,{children:["We cannot show this file. You can try accessing it directly:",e.jsx("br",{}),e.jsx("a",{href:t,children:t})]})});exports.Object=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index13.css');const e=require("react/jsx-runtime"),y=require("classix"),p=require("../loading/index.cjs"),w="_layout_1nh7z_1",f="_constrained_1nh7z_7",z="_reading_1nh7z_12",m="_loading_1nh7z_40",n={layout:w,constrained:f,reading:z,"with-sidebar":"_with-sidebar_1nh7z_24","fill-viewport":"_fill-viewport_1nh7z_34",loading:m,"loading-content":"_loading-content_1nh7z_48","without-padding":"_without-padding_1nh7z_87"},b=({"aria-busy":l,children:s,className:d,contentLayout:t="default",contentMaxWidth:i,fillViewport:r=!1,loading:a=!1,loadingLabel:_="Loading",padding:c="default",sidebar:o,style:u,...g})=>{const h={...u,"--page-content-max-width":i};return e.jsxs("main",{"aria-busy":l??(a||void 0),className:y(n.layout,!!o&&n["with-sidebar"],r&&n["fill-viewport"],i&&t==="default"&&n.constrained,t==="reading"&&n.reading,c==="none"&&n["without-padding"],a&&n.loading,d),style:h,...g,"data-component":"pagelayout",children:[o,a?e.jsx("div",{className:n["loading-content"],role:"status","aria-label":_,children:e.jsx(p.Loading,{size:"large"})}):s]})};exports.PageLayout=b;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import f from "classix";
|
|
3
3
|
import { Loading as m } from "../loading/index.js";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index13.css';const y = "_layout_1nh7z_1", w = "_constrained_1nh7z_7", z = "_reading_1nh7z_12", b = "_loading_1nh7z_40", a = {
|
|
5
5
|
layout: y,
|
|
6
6
|
constrained: w,
|
|
7
7
|
reading: z,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index12.css');const n=require("react/jsx-runtime"),d=require("classix"),p=require("react"),f=require("../loading/index.cjs"),g="_panel_1c69h_1",h="_none_1c69h_15",b="_page_1c69h_19",m="_scrollable_1c69h_27",x="_surface_1c69h_32",y="_loading_1c69h_36",e={panel:g,default:"_default_1c69h_11",none:h,page:b,scrollable:m,surface:x,loading:y},j=({"aria-busy":l,as:c="div",children:s,className:o,loading:a=!1,loadingLabel:t="Loading",padding:r="default",scroll:_="hidden",surface:i=!1,...u})=>p.createElement(c,{...u,"aria-busy":a||l,children:a?n.jsx("div",{role:"status","aria-label":t,children:n.jsx(f.Loading,{})}):s,className:d(e.panel,e[r],_==="auto"&&e.scrollable,i&&e.surface,a&&e.loading,o),"data-component":"panel"});exports.Panel=j;
|
|
@@ -2,7 +2,7 @@ import { jsx as l } from "react/jsx-runtime";
|
|
|
2
2
|
import p from "classix";
|
|
3
3
|
import { createElement as f } from "react";
|
|
4
4
|
import { Loading as m } from "../loading/index.js";
|
|
5
|
-
import '../../assets/
|
|
5
|
+
import '../../assets/index12.css';const u = "_panel_1c69h_1", h = "_none_1c69h_15", b = "_page_1c69h_19", g = "_scrollable_1c69h_27", x = "_surface_1c69h_32", y = "_loading_1c69h_36", a = {
|
|
6
6
|
panel: u,
|
|
7
7
|
default: "_default_1c69h_11",
|
|
8
8
|
none: h,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index58.css');const h=require("react/jsx-runtime"),T=require("classix"),t=require("react"),K=require("react-dom"),N=require("../button/index.cjs"),O="_popover_12bds_1",H="_inline_12bds_6",W="_below_12bds_47",M="_above_12bds_52",U="_trigger_12bds_62",a={popover:O,inline:H,"popover-panel":"_popover-panel_12bds_26",below:W,above:M,"floating-panel":"_floating-panel_12bds_57",trigger:U,"inline-trigger":"_inline-trigger_12bds_66"},X=({children:v,inline:m=!1,triggerAccessibleLabel:k,triggerAriaHasPopup:C,triggerButtonContent:z})=>{const y=t.useRef(null),P=t.useRef(void 0),c=t.useRef(null),R=t.useId(),d=t.useRef(null),[n,D]=t.useState(!1),[F,x]=t.useState(!1),[u,B]=t.useState(),[f,E]=t.useState(!1),[w,S]=t.useState("right"),b=({initialFocus:e}={})=>{var r;P.current=e,B((r=d.current)==null?void 0:r.getBoundingClientRect()),x(!1),E(!1),S("right"),D(!0)},l=t.useCallback(({restoreFocus:e=!0}={})=>{var r;D(!1),e&&((r=d.current)==null||r.focus({preventScroll:!0}))},[]),L=e=>{n&&e.key==="Escape"&&l()},j=e=>{if(!n){if(e.key==="ArrowDown"){e.preventDefault(),b({initialFocus:"first"});return}e.key==="ArrowUp"&&(e.preventDefault(),b({initialFocus:"last"}))}};t.useEffect(()=>{if(!n)return;const e=s=>{var i,p;const o=s.target;(i=y.current)!=null&&i.contains(o)||(p=c.current)!=null&&p.contains(o)||l({restoreFocus:!1})},r=s=>{var o,i;s.target instanceof Node&&((o=c.current)!=null&&o.contains(s.target))||l({restoreFocus:((i=c.current)==null?void 0:i.contains(document.activeElement))??!1})};return document.addEventListener("mousedown",e),window.addEventListener("scroll",r,!0),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("scroll",r,!0)}},[l,n]);const g=t.useCallback(()=>{const e=c.current,r=d.current;if(!e||!r)return;const s=e.getBoundingClientRect(),o=r.getBoundingClientRect();B(o),x(!0);const i=o.top,p=window.innerHeight-o.bottom;E(s.height>p&&i>p),S(s.width>window.innerWidth-o.left&&o.right>window.innerWidth-o.left?"left":"right")},[]);t.useLayoutEffect(()=>{if(n)return g(),window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}},[n,g]);const q=e=>{e.preventDefault(),e.stopPropagation(),n?l({restoreFocus:!1}):b()},A={"aria-controls":n?R:void 0,"aria-expanded":n,"aria-haspopup":C,"aria-label":k,className:m?a["inline-trigger"]:a.trigger,onClick:q,onKeyDown:j},I=[w==="left"?"translateX(-100%)":"",f?"translateY(calc(-100% - var(--shape-spacing-2xs)))":""].filter(Boolean).join(" "),_=n?h.jsx("div",{className:T(a["popover-panel"],a[f?"above":"below"],a["floating-panel"]),"data-horizontal-placement":w,"data-placement":f?"above":"below",id:R,ref:c,style:u?{left:w==="left"?u.right:u.left,position:"fixed",top:f?u.top:u.bottom,transform:I||void 0}:{position:"fixed",left:0,top:0},children:typeof v=="function"?v({close:l,initialFocus:P.current,isOpen:n,isPositioned:F}):v}):null;return h.jsxs("div",{className:T(a.popover,m&&a.inline),"data-open":n,onKeyDown:L,onClick:e=>{e.preventDefault(),e.stopPropagation()},ref:y,"data-component":"popover",children:[h.jsx(N.Button,{...A,ref:d,variant:m?"simple":"tertiary",children:z}),_&&typeof document<"u"?K.createPortal(_,document.body):_]})};exports.Popover=X;
|
|
@@ -3,7 +3,7 @@ import z from "classix";
|
|
|
3
3
|
import { useRef as m, useId as W, useState as f, useCallback as C, useEffect as U, useLayoutEffect as X } from "react";
|
|
4
4
|
import { createPortal as Y } from "react-dom";
|
|
5
5
|
import { Button as q } from "../button/index.js";
|
|
6
|
-
import '../../assets/
|
|
6
|
+
import '../../assets/index58.css';const G = "_popover_12bds_1", J = "_inline_12bds_6", M = "_below_12bds_47", Q = "_above_12bds_52", V = "_trigger_12bds_62", i = {
|
|
7
7
|
popover: G,
|
|
8
8
|
inline: J,
|
|
9
9
|
"popover-panel": "_popover-panel_12bds_26",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index11.css');const e=require("react/jsx-runtime"),c=require("classix"),i=require("../button/index.cjs"),a=require("../icon/index.cjs"),l=require("../aside/index.cjs"),_=require("../branding/index.cjs"),d=require("../figure/index.cjs"),u=require("../nav/index.cjs"),p="_portal_1wzqh_23",x="_content_1wzqh_279",g="_toggle_1wzqh_286",m="_open_1wzqh_337",n={portal:p,content:x,toggle:g,open:m},q=({children:t,portals:o,open:s,setOpen:r})=>e.jsxs(l.Aside,{className:c(n.portal,s&&n.open),sticky:!0,"data-component":"portal",children:[e.jsx(i.Button,{className:n.toggle,onClick:()=>r(!s),variant:"tertiary",children:e.jsx(a.Icon,{name:"SidebarSimple"})}),e.jsx(d.Figure,{children:e.jsx(_.Branding,{})}),e.jsxs("div",{className:n.content,children:[o&&e.jsx(u.Nav,{horizontal:!0,children:o}),t&&t]})]});exports.Portal=q;
|