@webority/ui-react 0.170.1 → 0.171.0
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 +147 -147
- package/dist/canvas-kit/manifest.json +25 -4
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppCommentThread.js +1 -1
- package/dist/components/AppMetricStrip.js +1 -1
- package/dist/components/AppModal.js +1 -1
- package/dist/components/AppThemeToggle.js +1 -1
- package/dist/components/iconCatalogNames.g.js +1 -1
- package/dist/components/iconGlyphs.g.js +1 -1
- package/dist/components/iconVariants.g.js +1 -1
- package/dist/guidance.json +1 -1
- package/dist/types/components/AppMetricStrip.d.ts +6 -0
- package/dist/types/components/AppModal.d.ts +2 -2
- package/dist/types/components/AppThemeToggle.d.ts +8 -6
- package/dist/types/components/AppTimePicker.d.ts +1 -1
- package/package.json +9 -9
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"kind": "WeborityWeb",
|
|
3
3
|
"library": {
|
|
4
4
|
"name": "@webority/ui-react",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.171.0"
|
|
6
6
|
},
|
|
7
7
|
"rendererProtocolVersion": 14,
|
|
8
8
|
"platform": "Web",
|
|
@@ -15852,6 +15852,17 @@
|
|
|
15852
15852
|
"description": "The values in the strip, three to five of them.",
|
|
15853
15853
|
"default": []
|
|
15854
15854
|
},
|
|
15855
|
+
{
|
|
15856
|
+
"name": "phoneColumns",
|
|
15857
|
+
"type": "enum",
|
|
15858
|
+
"enum": [
|
|
15859
|
+
1,
|
|
15860
|
+
2
|
|
15861
|
+
],
|
|
15862
|
+
"required": false,
|
|
15863
|
+
"description": "How many values sit in a row on a phone.",
|
|
15864
|
+
"default": 2
|
|
15865
|
+
},
|
|
15855
15866
|
{
|
|
15856
15867
|
"name": "size",
|
|
15857
15868
|
"type": "enum",
|
|
@@ -16005,10 +16016,11 @@
|
|
|
16005
16016
|
"lg",
|
|
16006
16017
|
"md",
|
|
16007
16018
|
"sm",
|
|
16019
|
+
"wide",
|
|
16008
16020
|
"xl"
|
|
16009
16021
|
],
|
|
16010
16022
|
"required": false,
|
|
16011
|
-
"description": "The card width: a preset, fullscreen for the whole viewport with header and footer pinned, or a number for an exact max width in pixels.",
|
|
16023
|
+
"description": "The card width: a preset, wide for 1080px with fields in two columns (capped at 90vw), fullscreen for the whole viewport with header and footer pinned, or a number for an exact max width in pixels.",
|
|
16012
16024
|
"default": "md"
|
|
16013
16025
|
},
|
|
16014
16026
|
{
|
|
@@ -28580,7 +28592,7 @@
|
|
|
28580
28592
|
],
|
|
28581
28593
|
"required": false,
|
|
28582
28594
|
"description": "The page-wide effect that plays when the theme changes.",
|
|
28583
|
-
"default": "
|
|
28595
|
+
"default": "fade"
|
|
28584
28596
|
},
|
|
28585
28597
|
{
|
|
28586
28598
|
"name": "includeAuto",
|
|
@@ -28841,7 +28853,7 @@
|
|
|
28841
28853
|
"name": "step",
|
|
28842
28854
|
"type": "number",
|
|
28843
28855
|
"required": false,
|
|
28844
|
-
"description": "The minutes between choices. The control
|
|
28856
|
+
"description": "The minutes between choices. The control accepts any minute (step 1) when this is unset."
|
|
28845
28857
|
},
|
|
28846
28858
|
{
|
|
28847
28859
|
"name": "value",
|
|
@@ -32588,6 +32600,7 @@
|
|
|
32588
32600
|
"arrow-left-2",
|
|
32589
32601
|
"arrow-left-3",
|
|
32590
32602
|
"arrow-right",
|
|
32603
|
+
"arrow-right-1",
|
|
32591
32604
|
"arrow-right-2",
|
|
32592
32605
|
"arrow-right-3",
|
|
32593
32606
|
"arrow-rotate-left",
|
|
@@ -32839,6 +32852,7 @@
|
|
|
32839
32852
|
"dash",
|
|
32840
32853
|
"data",
|
|
32841
32854
|
"data-2",
|
|
32855
|
+
"database",
|
|
32842
32856
|
"decred",
|
|
32843
32857
|
"dent",
|
|
32844
32858
|
"designtools",
|
|
@@ -32900,6 +32914,7 @@
|
|
|
32900
32914
|
"element-4",
|
|
32901
32915
|
"element-equal",
|
|
32902
32916
|
"element-plus",
|
|
32917
|
+
"ellipsis",
|
|
32903
32918
|
"emercoin",
|
|
32904
32919
|
"emoji-happy",
|
|
32905
32920
|
"emoji-normal",
|
|
@@ -32974,6 +32989,7 @@
|
|
|
32974
32989
|
"forward-item",
|
|
32975
32990
|
"framer",
|
|
32976
32991
|
"ftx-token",
|
|
32992
|
+
"funnel",
|
|
32977
32993
|
"gallery",
|
|
32978
32994
|
"gallery-add",
|
|
32979
32995
|
"gallery-edit",
|
|
@@ -33082,6 +33098,7 @@
|
|
|
33082
33098
|
"instagram",
|
|
33083
33099
|
"iost",
|
|
33084
33100
|
"java-script",
|
|
33101
|
+
"journal-text",
|
|
33085
33102
|
"js",
|
|
33086
33103
|
"judge",
|
|
33087
33104
|
"kanban",
|
|
@@ -33097,6 +33114,7 @@
|
|
|
33097
33114
|
"language-circle",
|
|
33098
33115
|
"language-square",
|
|
33099
33116
|
"layer",
|
|
33117
|
+
"layers",
|
|
33100
33118
|
"layout-dashboard",
|
|
33101
33119
|
"layout-grid",
|
|
33102
33120
|
"layout-maximize",
|
|
@@ -33242,6 +33260,7 @@
|
|
|
33242
33260
|
"next",
|
|
33243
33261
|
"note",
|
|
33244
33262
|
"note-1",
|
|
33263
|
+
"note-2",
|
|
33245
33264
|
"note-add",
|
|
33246
33265
|
"note-favorite",
|
|
33247
33266
|
"note-remove",
|
|
@@ -33450,6 +33469,8 @@
|
|
|
33450
33469
|
"slider-horizontal-1",
|
|
33451
33470
|
"slider-vertical",
|
|
33452
33471
|
"slider-vertical-1",
|
|
33472
|
+
"sliders",
|
|
33473
|
+
"sliders-horizontal",
|
|
33453
33474
|
"smallcaps",
|
|
33454
33475
|
"smart-car",
|
|
33455
33476
|
"smart-home",
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webority-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.171.0",
|
|
4
4
|
"platform": "Web",
|
|
5
5
|
"kitModuleVersion": 2,
|
|
6
6
|
"rendererProtocolVersion": 14,
|
|
7
7
|
"library": {
|
|
8
8
|
"name": "@webority/ui-react",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.171.0"
|
|
10
10
|
},
|
|
11
11
|
"files": {
|
|
12
12
|
"manifest.json": {
|
|
13
|
-
"sha256": "
|
|
14
|
-
"bytes":
|
|
13
|
+
"sha256": "66b07190ba77a5235c9435cefb1391c1b9b31328977753c42ae44b48741a32f8",
|
|
14
|
+
"bytes": 1118605
|
|
15
15
|
},
|
|
16
16
|
"kit.js": {
|
|
17
|
-
"sha256": "
|
|
18
|
-
"bytes":
|
|
17
|
+
"sha256": "d3cfb96de9b133e6f6d9bbc2aca58a62be7083945421476cf39d1cc15c39123f",
|
|
18
|
+
"bytes": 10110249
|
|
19
19
|
},
|
|
20
20
|
"kit.css": {
|
|
21
21
|
"sha256": "13b14f71fb6ea024945f95cba617b4f1d49f44a65ba7c7ed05d2354805539ef6",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{linkTarget as e}from"../lib/linkTarget.js";import{TargetLink as t}from"../lib/TargetLink.js";import n from"../lib/useElementEntry.js";import r from"../lib/useWuiText.js";import{splitMarkerProps as i}from"../lib/wuiMarker.js";import a from"./AppAvatar.js";import o from"./AppBadge.js";import s from"./AppButton.js";import c from"./AppIcon.js";import l from"./AppMarkdown.js";import u from"./assertValidValue.js";import d from"./warnUnknownProps.js";import{COMMENT_REACTIONS as f,formatDate as p,formatFileSize as m,formatNumber as h,initialsOf as g,mentionTextFromValue as _,parseMentionValue as v,toInstant as y}from"@webority/ui-elements/helpers";import{Fragment as b,useEffect as x,useId as S,useRef as C}from"react";import{jsx as w,jsxs as T}from"react/jsx-runtime";import{COMMENT_THREAD_TEXT as E,fillText as D}from"@webority/ui-elements/text";var O=[`stacked`,`inline`],k=[`list`,`conversation`],A=()=>import(`@webority/ui-elements/elements/comment-thread`),j=()=>import(`@webority/ui-elements/elements/mention-input`),M=e=>v(e??``).map((e,t)=>({key:`segment-${t}`,seg:e})),N=e=>e.localName===`wui-mention-input`;function P(e){let{marker:t,props:o}=i(`AppCommentThread`,e),c=r(`commentThread`,E),{comments:l=[],onPost:p,onReply:m,onEdit:h,onDelete:g,onReact:_,people:v,loadPeople:y,reactionChoices:b,allowReplies:D=!0,allowReactions:M=!0,composerPlaceholder:P,variant:I=`list`,composer:L=`stacked`,author:R,postLabel:z=c.postLabel,composerRows:B,readOnly:V=!1,markdown:H=!1,linkComponent:U,label:W=c.label,internalLabel:G=c.internalLabel,attachmentsLabel:K=c.attachmentsLabel,composerLabel:ee=c.composerLabel,noCommentsText:te=c.noCommentsText,reactionsLabel:ne=c.reactionsLabel,repliesToLabel:re=c.repliesToLabel,editedLabel:ie=c.editedLabel,deletedText:ae=c.deletedText,replyLabel:oe=c.replyLabel,editLabel:se=c.editLabel,deleteLabel:ce=c.deleteLabel,deleteConfirmText:le=c.deleteConfirmText,cancelLabel:ue=c.cancelLabel,addReactionLabel:de=c.addReactionLabel,chooseReactionLabel:fe=c.chooseReactionLabel,peopleLabel:pe=c.peopleLabel,id:me,className:he=``,...q}=o;d(`AppCommentThread`,q),u(`AppCommentThread`,`variant`,I,k),u(`AppCommentThread`,`composer`,L,O);let J=n(`wui-comment-thread`,A);n(`wui-mention-input`,j);let ge=S(),Y=me||`comment-thread-${ge.replace(/[^a-zA-Z0-9_-]/g,``)}`,X=C(null),Z=typeof y==`function`,_e=b?.length?b:f,Q=L===`inline`,ve=B??(Q?1:3),ye={reactionsLabel:ne,repliesToLabel:re,editedLabel:ie,deletedText:ae,replyLabel:oe,editLabel:se,deleteLabel:ce,deleteConfirmText:le,cancelLabel:ue,addReactionLabel:de},$=C({onPost:p,onReply:m,onEdit:h,onDelete:g,onReact:_,loadPeople:y});return $.current={onPost:p,onReply:m,onEdit:h,onDelete:g,onReact:_,loadPeople:y},x(()=>{let e=X.current;if(e&&J)return e.submit=async e=>{let t=$.current;e.intent===`post`?await t.onPost?.(e.body):e.intent===`reply`?await t.onReply?.(e.parentId,e.body):e.intent===`edit`?await t.onEdit?.(e.commentId,e.body):e.intent===`delete`?await t.onDelete?.(e.commentId):e.intent===`react`&&await t.onReact?.(e.commentId,e.emoji)},()=>{e.submit=void 0}},[J]),x(()=>{let e=X.current;e&&J&&!Z&&(e.people=v||[])},[v,Z,J]),x(()=>{let e=X.current;if(!e||!Z)return;let t=/* @__PURE__ */ new WeakMap,n=async e=>{let n=e.target;if(!(e instanceof CustomEvent)||!(n instanceof HTMLElement)||!N(n))throw TypeError(`<wui-comment-thread> search came from something other than a mention box.`);let r=e.detail;if(typeof r!=`object`||!r||!(`query`in r)||typeof r.query!=`string`)throw TypeError(`<wui-comment-thread> search carried no query.`);let i=r.query,{loadPeople:a}=$.current;if(typeof a!=`function`)throw Error(`<AppCommentThread> is remote but has no loadPeople.`);let o=(t.get(n)??0)+1;t.set(n,o),n.loading=!0;try{let e=await a(i);t.get(n)===o&&(n.people=e||[])}catch(e){t.get(n)===o&&(n.people=[],n.searchFailed=!0,reportError(e))}finally{t.get(n)===o&&(n.loading=!1)}};return e.addEventListener(`search`,n),()=>e.removeEventListener(`search`,n)},[Z]),/* @__PURE__ */ T(`wui-comment-thread`,{ref:X,id:Y,class:[`wui-comment-thread`,I===`conversation`&&`wui-comment-thread--conversation`,he].filter(Boolean).join(` `),controlled:``,"read-only":V?``:void 0,remote:Z?``:void 0,"reaction-choices":b?.length?b.join(` `):void 0,"no-replies":D?void 0:``,"no-reactions":M?void 0:``,"composer-placeholder":P,...t,...q,children:[/* @__PURE__ */ w(`div`,{className:`wui-comment-items`,"data-wui-items":``,children:l.length?/* @__PURE__ */ w(`ol`,{className:`wui-comment-list`,"aria-label":W,children:l.map(e=>/* @__PURE__ */ w(F,{comment:e,topLevel:!0,readOnly:V,allowReplies:D,allowReactions:M,markdown:H,linkComponent:U,internalLabel:G,attachmentsLabel:K,text:ye},e.id))}):/* @__PURE__ */ w(`p`,{className:`wui-comment-empty`,children:te})}),!V&&M&&/* @__PURE__ */ w(`div`,{className:`wui-reaction-picker`,role:`group`,"aria-label":fe,"data-wui-picker":``,popover:`auto`,children:_e.map(e=>/* @__PURE__ */ w(`button`,{type:`button`,className:`wui-reaction-choice`,"data-wui-emoji":e,children:e},e))}),!V&&/* @__PURE__ */ T(`div`,{className:Q?`wui-comment-composer wui-comment-composer-inline`:`wui-comment-composer`,"data-wui-composer":``,children:[Q&&R?/* @__PURE__ */ w(a,{name:R,size:`sm`,tone:`auto`,className:`wui-comment-composer-avatar`}):null,/* @__PURE__ */ w(`wui-mention-input`,{id:`${Y}-new`,class:`wui-mention-input`,label:ee,"people-label":pe,placeholder:P??c.composerPlaceholder,rows:String(ve),remote:Z?``:void 0}),/* @__PURE__ */ w(`div`,{className:`wui-comment-form-actions`,children:/* @__PURE__ */ w(s,{variant:Q?`outline`:`solid`,size:`sm`,"data-wui-action":`post`,children:z})}),/* @__PURE__ */ w(`div`,{className:`wui-comment-error`,"data-wui-error":``,hidden:!0})]}),/* @__PURE__ */ w(`span`,{className:`visually-hidden`,"data-wui-live":``,"aria-live":`polite`,"aria-atomic":`true`})]})}function F({comment:n,topLevel:r=!1,readOnly:i,allowReplies:a,allowReactions:u,markdown:d,linkComponent:f,internalLabel:v,attachmentsLabel:x,text:S}){let{id:C,author:E,at:O,value:k,edited:A,mine:j,internal:N,attachments:P=[],deleted:I,canEdit:L,canDelete:R,reactions:z=[],replies:B=[]}=n,V=E?.name||``,H=y(O),U=!i&&!I&&L,W=!i&&!I&&R,G=r&&a,K=[`wui-comment`,N&&`wui-comment--internal`,j&&`wui-comment--mine`].filter(Boolean).join(` `);return/* @__PURE__ */ T(`li`,{className:K,"data-wui-comment":C,"data-value":k??``,"data-wui-deleted":I?``:void 0,children:[/* @__PURE__ */ T(`div`,{className:`wui-comment-row`,children:[/* @__PURE__ */ T(`span`,{className:`avatar avatar-sm wui-comment-avatar`,"aria-hidden":`true`,children:[/* @__PURE__ */ w(`span`,{className:`avatar-face`,children:g(V)||`?`}),E?.src&&/* @__PURE__ */ w(`img`,{className:`avatar-img`,src:E.src,alt:``,onError:e=>{e.currentTarget.hidden=!0}})]}),/* @__PURE__ */ T(`div`,{className:`wui-comment-main`,children:[/* @__PURE__ */ T(`div`,{className:`wui-comment-head`,children:[/* @__PURE__ */ w(`span`,{className:`wui-comment-author`,children:V}),/* @__PURE__ */ w(`time`,{className:`wui-comment-time`,dateTime:Number.isFinite(H)?new Date(H).toISOString():void 0,children:p(O,{pattern:`datetime`})}),A&&!I&&/* @__PURE__ */ w(`span`,{className:`wui-comment-edited`,children:S.editedLabel}),N&&/* @__PURE__ */ w(o,{className:`wui-comment-internal-badge`,children:v})]}),I?/* @__PURE__ */ w(`div`,{className:`wui-comment-text wui-comment-text-deleted`,children:S.deletedText}):/* @__PURE__ */ w(`div`,{className:d?`wui-comment-text wui-comment-text--markdown`:`wui-comment-text`,"data-wui-text":``,children:d?/* @__PURE__ */ w(l,{value:_(k??``).text,headings:`text`}):M(k).map(({key:e,seg:t})=>`text`in t?/* @__PURE__ */ w(b,{children:t.text},e):/* @__PURE__ */ T(`span`,{className:`wui-mention`,"data-mention-id":t.id,children:[`@`,t.label]},e))}),!I&&P.length>0&&/* @__PURE__ */ w(`ul`,{className:`wui-comment-attachments`,"aria-label":x,children:P.map(n=>{let r=e(f,{to:n.to,href:n.href,routeHref:!1});return/* @__PURE__ */ T(`li`,{children:[/* @__PURE__ */ T(t,{link:r,className:`wui-comment-attachment`,...n.to?{}:{download:!0},children:[/* @__PURE__ */ w(c,{name:`paperclip`,size:14}),n.name]}),typeof n.sizeBytes==`number`&&/* @__PURE__ */ w(`span`,{className:`wui-comment-attachment-size`,children:m(n.sizeBytes)})]},n.to??n.href)})}),U&&/* @__PURE__ */ w(`div`,{className:`wui-comment-editor`,"data-wui-editor":``,hidden:!0}),u&&!I&&(z.length>0||!i)&&/* @__PURE__ */ T(`div`,{className:`wui-comment-reactions`,role:`group`,"aria-label":S.reactionsLabel,children:[z.map(e=>i?/* @__PURE__ */ T(`span`,{className:e.mine?`wui-reaction wui-reaction-mine`:`wui-reaction`,children:[/* @__PURE__ */ w(`span`,{className:`wui-reaction-emoji`,children:e.emoji}),/* @__PURE__ */ w(`span`,{className:`wui-reaction-count`,children:h(e.count,{decimals:0})})]},e.emoji):/* @__PURE__ */ T(`button`,{type:`button`,className:e.mine?`wui-reaction wui-reaction-mine`:`wui-reaction`,"data-wui-emoji":e.emoji,"aria-pressed":e.mine?`true`:`false`,children:[/* @__PURE__ */ w(`span`,{className:`wui-reaction-emoji`,children:e.emoji}),/* @__PURE__ */ w(`span`,{className:`wui-reaction-count`,children:h(e.count,{decimals:0})})]},e.emoji)),!i&&/* @__PURE__ */ w(`button`,{type:`button`,className:`wui-reaction-add`,"data-wui-action":`react-menu`,"aria-label":S.addReactionLabel,"aria-haspopup":`true`,"aria-expanded":`false`,children:/* @__PURE__ */ w(c,{name:`emoji-smile`,size:16})})]}),!i&&!I&&(G||U||W)&&/* @__PURE__ */ T(`div`,{className:`wui-comment-actions`,"data-wui-actions":``,children:[G&&/* @__PURE__ */ w(`button`,{type:`button`,className:`wui-comment-action`,"data-wui-action":`reply`,children:S.replyLabel}),U&&/* @__PURE__ */ w(`button`,{type:`button`,className:`wui-comment-action`,"data-wui-action":`edit`,children:S.editLabel}),W&&/* @__PURE__ */ w(`button`,{type:`button`,className:`wui-comment-action`,"data-wui-action":`delete`,children:S.deleteLabel})]}),W&&/* @__PURE__ */ T(`div`,{className:`wui-comment-confirm`,"data-wui-confirm":``,hidden:!0,children:[/* @__PURE__ */ w(`span`,{className:`wui-comment-confirm-text`,children:S.deleteConfirmText}),/* @__PURE__ */ w(s,{tone:`danger`,size:`sm`,"data-wui-action":`confirm-delete`,children:S.deleteLabel}),/* @__PURE__ */ w(s,{variant:`ghost`,size:`sm`,"data-wui-action":`cancel-delete`,children:S.cancelLabel})]}),!i&&/* @__PURE__ */ w(`div`,{className:`wui-comment-error`,"data-wui-error":``,hidden:!0})]})]}),r&&B.length>0&&/* @__PURE__ */ w(`ol`,{className:`wui-comment-list wui-comment-replies`,"aria-label":D(S.repliesToLabel,{name:V}),children:B.map(e=>/* @__PURE__ */ w(F,{comment:e,readOnly:i,allowReactions:u,markdown:d,linkComponent:f,internalLabel:v,attachmentsLabel:x,text:S},e.id))}),G&&!i&&!I&&/* @__PURE__ */ w(`div`,{className:`wui-comment-reply`,"data-wui-reply":``,hidden:!0})]})}export{P as default};
|
|
1
|
+
import{linkTarget as e}from"../lib/linkTarget.js";import{TargetLink as t}from"../lib/TargetLink.js";import n from"../lib/useElementEntry.js";import r from"../lib/useWuiText.js";import{splitMarkerProps as i}from"../lib/wuiMarker.js";import a from"./AppAvatar.js";import o from"./AppBadge.js";import s from"./AppButton.js";import c from"./AppIcon.js";import l from"./AppMarkdown.js";import u from"./assertValidValue.js";import d from"./warnUnknownProps.js";import{COMMENT_REACTIONS as f,formatDateTime as p,formatFileSize as m,formatNumber as h,initialsOf as g,mentionTextFromValue as _,parseMentionValue as v,toInstant as y}from"@webority/ui-elements/helpers";import{Fragment as b,useEffect as x,useId as S,useRef as C}from"react";import{jsx as w,jsxs as T}from"react/jsx-runtime";import{COMMENT_THREAD_TEXT as E,fillText as D}from"@webority/ui-elements/text";var O=[`stacked`,`inline`],k=[`list`,`conversation`],A=()=>import(`@webority/ui-elements/elements/comment-thread`),j=()=>import(`@webority/ui-elements/elements/mention-input`),M=e=>v(e??``).map((e,t)=>({key:`segment-${t}`,seg:e})),N=e=>e.localName===`wui-mention-input`;function P(e){let{marker:t,props:o}=i(`AppCommentThread`,e),c=r(`commentThread`,E),{comments:l=[],onPost:p,onReply:m,onEdit:h,onDelete:g,onReact:_,people:v,loadPeople:y,reactionChoices:b,allowReplies:D=!0,allowReactions:M=!0,composerPlaceholder:P,variant:I=`list`,composer:L=`stacked`,author:R,postLabel:z=c.postLabel,composerRows:B,readOnly:V=!1,markdown:H=!1,linkComponent:U,label:W=c.label,internalLabel:G=c.internalLabel,attachmentsLabel:K=c.attachmentsLabel,composerLabel:ee=c.composerLabel,noCommentsText:te=c.noCommentsText,reactionsLabel:ne=c.reactionsLabel,repliesToLabel:re=c.repliesToLabel,editedLabel:ie=c.editedLabel,deletedText:ae=c.deletedText,replyLabel:oe=c.replyLabel,editLabel:se=c.editLabel,deleteLabel:ce=c.deleteLabel,deleteConfirmText:le=c.deleteConfirmText,cancelLabel:ue=c.cancelLabel,addReactionLabel:de=c.addReactionLabel,chooseReactionLabel:fe=c.chooseReactionLabel,peopleLabel:pe=c.peopleLabel,id:me,className:he=``,...q}=o;d(`AppCommentThread`,q),u(`AppCommentThread`,`variant`,I,k),u(`AppCommentThread`,`composer`,L,O);let J=n(`wui-comment-thread`,A);n(`wui-mention-input`,j);let ge=S(),Y=me||`comment-thread-${ge.replace(/[^a-zA-Z0-9_-]/g,``)}`,X=C(null),Z=typeof y==`function`,_e=b?.length?b:f,Q=L===`inline`,ve=B??(Q?1:3),ye={reactionsLabel:ne,repliesToLabel:re,editedLabel:ie,deletedText:ae,replyLabel:oe,editLabel:se,deleteLabel:ce,deleteConfirmText:le,cancelLabel:ue,addReactionLabel:de},$=C({onPost:p,onReply:m,onEdit:h,onDelete:g,onReact:_,loadPeople:y});return $.current={onPost:p,onReply:m,onEdit:h,onDelete:g,onReact:_,loadPeople:y},x(()=>{let e=X.current;if(e&&J)return e.submit=async e=>{let t=$.current;e.intent===`post`?await t.onPost?.(e.body):e.intent===`reply`?await t.onReply?.(e.parentId,e.body):e.intent===`edit`?await t.onEdit?.(e.commentId,e.body):e.intent===`delete`?await t.onDelete?.(e.commentId):e.intent===`react`&&await t.onReact?.(e.commentId,e.emoji)},()=>{e.submit=void 0}},[J]),x(()=>{let e=X.current;e&&J&&!Z&&(e.people=v||[])},[v,Z,J]),x(()=>{let e=X.current;if(!e||!Z)return;let t=/* @__PURE__ */ new WeakMap,n=async e=>{let n=e.target;if(!(e instanceof CustomEvent)||!(n instanceof HTMLElement)||!N(n))throw TypeError(`<wui-comment-thread> search came from something other than a mention box.`);let r=e.detail;if(typeof r!=`object`||!r||!(`query`in r)||typeof r.query!=`string`)throw TypeError(`<wui-comment-thread> search carried no query.`);let i=r.query,{loadPeople:a}=$.current;if(typeof a!=`function`)throw Error(`<AppCommentThread> is remote but has no loadPeople.`);let o=(t.get(n)??0)+1;t.set(n,o),n.loading=!0;try{let e=await a(i);t.get(n)===o&&(n.people=e||[])}catch(e){t.get(n)===o&&(n.people=[],n.searchFailed=!0,reportError(e))}finally{t.get(n)===o&&(n.loading=!1)}};return e.addEventListener(`search`,n),()=>e.removeEventListener(`search`,n)},[Z]),/* @__PURE__ */ T(`wui-comment-thread`,{ref:X,id:Y,class:[`wui-comment-thread`,I===`conversation`&&`wui-comment-thread--conversation`,he].filter(Boolean).join(` `),controlled:``,"read-only":V?``:void 0,remote:Z?``:void 0,"reaction-choices":b?.length?b.join(` `):void 0,"no-replies":D?void 0:``,"no-reactions":M?void 0:``,"composer-placeholder":P,...t,...q,children:[/* @__PURE__ */ w(`div`,{className:`wui-comment-items`,"data-wui-items":``,children:l.length?/* @__PURE__ */ w(`ol`,{className:`wui-comment-list`,"aria-label":W,children:l.map(e=>/* @__PURE__ */ w(F,{comment:e,topLevel:!0,readOnly:V,allowReplies:D,allowReactions:M,markdown:H,linkComponent:U,internalLabel:G,attachmentsLabel:K,text:ye},e.id))}):/* @__PURE__ */ w(`p`,{className:`wui-comment-empty`,children:te})}),!V&&M&&/* @__PURE__ */ w(`div`,{className:`wui-reaction-picker`,role:`group`,"aria-label":fe,"data-wui-picker":``,popover:`auto`,children:_e.map(e=>/* @__PURE__ */ w(`button`,{type:`button`,className:`wui-reaction-choice`,"data-wui-emoji":e,children:e},e))}),!V&&/* @__PURE__ */ T(`div`,{className:Q?`wui-comment-composer wui-comment-composer-inline`:`wui-comment-composer`,"data-wui-composer":``,children:[Q&&R?/* @__PURE__ */ w(a,{name:R,size:`sm`,tone:`auto`,className:`wui-comment-composer-avatar`}):null,/* @__PURE__ */ w(`wui-mention-input`,{id:`${Y}-new`,class:`wui-mention-input`,label:ee,"people-label":pe,placeholder:P??c.composerPlaceholder,rows:String(ve),remote:Z?``:void 0}),/* @__PURE__ */ w(`div`,{className:`wui-comment-form-actions`,children:/* @__PURE__ */ w(s,{variant:Q?`outline`:`solid`,size:`sm`,"data-wui-action":`post`,children:z})}),/* @__PURE__ */ w(`div`,{className:`wui-comment-error`,"data-wui-error":``,hidden:!0})]}),/* @__PURE__ */ w(`span`,{className:`visually-hidden`,"data-wui-live":``,"aria-live":`polite`,"aria-atomic":`true`})]})}function F({comment:n,topLevel:r=!1,readOnly:i,allowReplies:a,allowReactions:u,markdown:d,linkComponent:f,internalLabel:v,attachmentsLabel:x,text:S}){let{id:C,author:E,at:O,value:k,edited:A,mine:j,internal:N,attachments:P=[],deleted:I,canEdit:L,canDelete:R,reactions:z=[],replies:B=[]}=n,V=E?.name||``,H=y(O),U=!i&&!I&&L,W=!i&&!I&&R,G=r&&a,K=[`wui-comment`,N&&`wui-comment--internal`,j&&`wui-comment--mine`].filter(Boolean).join(` `);return/* @__PURE__ */ T(`li`,{className:K,"data-wui-comment":C,"data-value":k??``,"data-wui-deleted":I?``:void 0,children:[/* @__PURE__ */ T(`div`,{className:`wui-comment-row`,children:[/* @__PURE__ */ T(`span`,{className:`avatar avatar-sm wui-comment-avatar`,"aria-hidden":`true`,children:[/* @__PURE__ */ w(`span`,{className:`avatar-face`,children:g(V)||`?`}),E?.src&&/* @__PURE__ */ w(`img`,{className:`avatar-img`,src:E.src,alt:``,onError:e=>{e.currentTarget.hidden=!0}})]}),/* @__PURE__ */ T(`div`,{className:`wui-comment-main`,children:[/* @__PURE__ */ T(`div`,{className:`wui-comment-head`,children:[/* @__PURE__ */ w(`span`,{className:`wui-comment-author`,children:V}),/* @__PURE__ */ w(`time`,{className:`wui-comment-time`,dateTime:Number.isFinite(H)?new Date(H).toISOString():void 0,children:p(O)}),A&&!I&&/* @__PURE__ */ w(`span`,{className:`wui-comment-edited`,children:S.editedLabel}),N&&/* @__PURE__ */ w(o,{className:`wui-comment-internal-badge`,children:v})]}),I?/* @__PURE__ */ w(`div`,{className:`wui-comment-text wui-comment-text-deleted`,children:S.deletedText}):/* @__PURE__ */ w(`div`,{className:d?`wui-comment-text wui-comment-text--markdown`:`wui-comment-text`,"data-wui-text":``,children:d?/* @__PURE__ */ w(l,{value:_(k??``).text,headings:`text`}):M(k).map(({key:e,seg:t})=>`text`in t?/* @__PURE__ */ w(b,{children:t.text},e):/* @__PURE__ */ T(`span`,{className:`wui-mention`,"data-mention-id":t.id,children:[`@`,t.label]},e))}),!I&&P.length>0&&/* @__PURE__ */ w(`ul`,{className:`wui-comment-attachments`,"aria-label":x,children:P.map(n=>{let r=e(f,{to:n.to,href:n.href,routeHref:!1});return/* @__PURE__ */ T(`li`,{children:[/* @__PURE__ */ T(t,{link:r,className:`wui-comment-attachment`,...n.to?{}:{download:!0},children:[/* @__PURE__ */ w(c,{name:`paperclip`,size:14}),n.name]}),typeof n.sizeBytes==`number`&&/* @__PURE__ */ w(`span`,{className:`wui-comment-attachment-size`,children:m(n.sizeBytes)})]},n.to??n.href)})}),U&&/* @__PURE__ */ w(`div`,{className:`wui-comment-editor`,"data-wui-editor":``,hidden:!0}),u&&!I&&(z.length>0||!i)&&/* @__PURE__ */ T(`div`,{className:`wui-comment-reactions`,role:`group`,"aria-label":S.reactionsLabel,children:[z.map(e=>i?/* @__PURE__ */ T(`span`,{className:e.mine?`wui-reaction wui-reaction-mine`:`wui-reaction`,children:[/* @__PURE__ */ w(`span`,{className:`wui-reaction-emoji`,children:e.emoji}),/* @__PURE__ */ w(`span`,{className:`wui-reaction-count`,children:h(e.count,{decimals:0})})]},e.emoji):/* @__PURE__ */ T(`button`,{type:`button`,className:e.mine?`wui-reaction wui-reaction-mine`:`wui-reaction`,"data-wui-emoji":e.emoji,"aria-pressed":e.mine?`true`:`false`,children:[/* @__PURE__ */ w(`span`,{className:`wui-reaction-emoji`,children:e.emoji}),/* @__PURE__ */ w(`span`,{className:`wui-reaction-count`,children:h(e.count,{decimals:0})})]},e.emoji)),!i&&/* @__PURE__ */ w(`button`,{type:`button`,className:`wui-reaction-add`,"data-wui-action":`react-menu`,"aria-label":S.addReactionLabel,"aria-haspopup":`true`,"aria-expanded":`false`,children:/* @__PURE__ */ w(c,{name:`emoji-smile`,size:16})})]}),!i&&!I&&(G||U||W)&&/* @__PURE__ */ T(`div`,{className:`wui-comment-actions`,"data-wui-actions":``,children:[G&&/* @__PURE__ */ w(`button`,{type:`button`,className:`wui-comment-action`,"data-wui-action":`reply`,children:S.replyLabel}),U&&/* @__PURE__ */ w(`button`,{type:`button`,className:`wui-comment-action`,"data-wui-action":`edit`,children:S.editLabel}),W&&/* @__PURE__ */ w(`button`,{type:`button`,className:`wui-comment-action`,"data-wui-action":`delete`,children:S.deleteLabel})]}),W&&/* @__PURE__ */ T(`div`,{className:`wui-comment-confirm`,"data-wui-confirm":``,hidden:!0,children:[/* @__PURE__ */ w(`span`,{className:`wui-comment-confirm-text`,children:S.deleteConfirmText}),/* @__PURE__ */ w(s,{tone:`danger`,size:`sm`,"data-wui-action":`confirm-delete`,children:S.deleteLabel}),/* @__PURE__ */ w(s,{variant:`ghost`,size:`sm`,"data-wui-action":`cancel-delete`,children:S.cancelLabel})]}),!i&&/* @__PURE__ */ w(`div`,{className:`wui-comment-error`,"data-wui-error":``,hidden:!0})]})]}),r&&B.length>0&&/* @__PURE__ */ w(`ol`,{className:`wui-comment-list wui-comment-replies`,"aria-label":D(S.repliesToLabel,{name:V}),children:B.map(e=>/* @__PURE__ */ w(F,{comment:e,readOnly:i,allowReactions:u,markdown:d,linkComponent:f,internalLabel:v,attachmentsLabel:x,text:S},e.id))}),G&&!i&&!I&&/* @__PURE__ */ w(`div`,{className:`wui-comment-reply`,"data-wui-reply":``,hidden:!0})]})}export{P as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{linkTarget as e}from"../lib/linkTarget.js";import{TargetLink as t}from"../lib/TargetLink.js";import{TONES as n}from"../lib/vocabulary.js";import{splitMarkerProps as r}from"../lib/wuiMarker.js";import i from"./assertValidValue.js";import a from"./warnUnknownProps.js";import{Fragment as o,jsx as s,jsxs as c}from"react/jsx-runtime";var l=[3,4,5],u=[`sm`,`md`],
|
|
1
|
+
import{linkTarget as e}from"../lib/linkTarget.js";import{TargetLink as t}from"../lib/TargetLink.js";import{TONES as n}from"../lib/vocabulary.js";import{splitMarkerProps as r}from"../lib/wuiMarker.js";import i from"./assertValidValue.js";import a from"./warnUnknownProps.js";import{Fragment as o,jsx as s,jsxs as c}from"react/jsx-runtime";var l=[3,4,5],u=[1,2],d=[`sm`,`md`],f=n.filter(e=>e!==`primary`);function p(n){let{marker:p,props:m}=r(`AppMetricStrip`,n),{items:h=[],columns:g=4,phoneColumns:_=2,size:v=`md`,divided:y=!1,linkComponent:b,className:x=``,...S}=m;a(`AppMetricStrip`,S),i(`AppMetricStrip`,`columns`,g,l),i(`AppMetricStrip`,`phoneColumns`,_,u),i(`AppMetricStrip`,`size`,v,d);let C=[`wui-metric-strip`,`wui-metric-strip-cols-${g}`,_===1?`wui-metric-strip-phone-cols-1`:``,v===`sm`?`wui-metric-strip-sm`:``,y?`wui-metric-strip-divided`:``,x].filter(Boolean).join(` `);return/* @__PURE__ */ s(`div`,{className:C,...p,...S,children:h.map((n,r)=>{i(`AppMetricStrip`,`tone`,n.tone,f);let a=`wui-metric${n.tone&&n.tone!==`neutral`?` wui-metric-tone-${n.tone}`:``}`,l=/* @__PURE__ */ c(o,{children:[/* @__PURE__ */ s(`div`,{className:`wui-metric-label`,children:n.label}),/* @__PURE__ */ s(`div`,{className:`wui-metric-value`,children:n.value}),n.note&&/* @__PURE__ */ s(`div`,{className:`wui-metric-note`,children:n.note})]}),u=`${n.label}-${r}`,d=e(b,{href:n.href});return n.href?/* @__PURE__ */ s(t,{link:d,className:a,children:l},u):/* @__PURE__ */ s(`div`,{className:a,children:l},u)})})}export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../lib/DiscardPrompt.js";import{devWarn as t}from"../lib/devWarn.js";import n from"../lib/useElementEntry.js";import r from"../lib/useWuiText.js";import{splitMarkerProps as ee}from"../lib/wuiMarker.js";import i from"./AppIcon.js";import a from"./assertValidValue.js";import te from"./warnUnknownProps.js";import{useCallback as o,useEffect as s,useRef as c,useState as l}from"react";import{createPortal as u}from"react-dom";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{MODAL_TEXT as ne}from"@webority/ui-elements/text";var re=[`neutral`,`danger`,`success`,`warning`],
|
|
1
|
+
import e from"../lib/DiscardPrompt.js";import{devWarn as t}from"../lib/devWarn.js";import n from"../lib/useElementEntry.js";import r from"../lib/useWuiText.js";import{splitMarkerProps as ee}from"../lib/wuiMarker.js";import i from"./AppIcon.js";import a from"./assertValidValue.js";import te from"./warnUnknownProps.js";import{useCallback as o,useEffect as s,useRef as c,useState as l}from"react";import{createPortal as u}from"react-dom";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{MODAL_TEXT as ne}from"@webority/ui-elements/text";var re=[`neutral`,`danger`,`success`,`warning`],p=[`center`,`top`],m=[`sans`,`serif`],h=()=>import(`@webority/ui-elements/elements/modal`),g={sm:380,md:440,lg:640,xl:880,wide:1080},ie=`wui-modal-fullscreen`,ae=`wui-modal-wide`,oe=e=>typeof e==`number`?e:e===`fullscreen`?g.md:g[e],_=!1;function se(){let e=!0;try{e=process.env.NODE_ENV!==`production`}catch{e=!0}e&&!_&&(_=!0,t("[@webority/ui-react] <AppModal hideHeader> has no accessible name: pass `ariaLabel` (or a string `title`)."))}function v(t){n(`wui-modal`,h);let _=r(`modal`,ne),{marker:v,props:ce}=ee(`AppModal`,t),{open:y,eyebrow:b,title:x,subtitle:S,headerIcon:C,tone:w=`neutral`,dismissible:T=!0,onClose:E,onBack:D,backLabel:le=_.backLabel,headerActions:O,footer:k,size:A=`md`,placement:j=`center`,titleFont:M=`sans`,hideHeader:N=!1,staticBackdrop:ue=!0,closeOnEscape:de=!0,confirmDiscard:P,dirty:F=!1,ariaLabel:I,closeLabel:L=_.closeLabel,className:R=``,children:z,...B}=ce;te(`AppModal`,B),a(`AppModal`,`tone`,w,re),a(`AppModal`,`placement`,j,p),a(`AppModal`,`titleFont`,M,m),a(`AppModal`,`size`,typeof A==`string`?A:null,[...Object.keys(g),`fullscreen`]);let{style:V,ref:H,onExited:U,"data-wui":W,"data-wui-props":fe,...pe}=B,G=W?{"data-wui":W,"data-wui-props":fe}:v,me=G[`data-wui`],he=G[`data-wui-props`];N&&!I&&typeof x!=`string`&&se();let K=c(null),q=c(null),[ge,J]=l(y),_e=y||ge;s(()=>{y&&J(!0)},[y]);let Y=c(null),[X,Z]=l(!1);s(()=>{y||Z(!1)},[y]),s(()=>{X&&Y.current?.focus()},[X]);let ve=o(e=>{q.current=e,typeof H==`function`?H(e):H&&(H.current=e)},[H]),ye=()=>{P&&F?Z(!0):E?.()},Q=c({open:y,requestClose:()=>{},onExited:U});Q.current={open:y,requestClose:ye,onExited:U};let be=o(e=>{if(!e)return;let t=t=>t.target instanceof Element&&t.target.closest(`wui-modal`)===e,n=e=>{t(e)&&(e.preventDefault(),Q.current.requestClose())},r=e=>{if(!t(e))return;Q.current.open||J(!1);let n=q.current;if(!n)throw TypeError(`<wui-modal> closed without its dialog.`);Q.current.onExited?.(n)};return e.addEventListener(`wui-modal-close`,n),e.addEventListener(`wui-modal-closed`,r),()=>{e.removeEventListener(`wui-modal-close`,n),e.removeEventListener(`wui-modal-closed`,r)}},[]),xe=()=>{Z(!1),E?.()},Se=()=>{Z(!1),(K.current?.querySelector(`input:not([type="hidden"]):not([disabled]),select:not([disabled]),textarea:not([disabled])`))?.focus()},$=A===`fullscreen`,Ce=oe(A),we=[`modal-content`,`wui-modal`,w===`neutral`?``:`tone-${w}`,R].filter(Boolean).join(` `),Te=[`modal`,`wui-modal-shell`,$&&ie,A===`wide`&&ae].filter(Boolean).join(` `),Ee=[`modal-dialog`,j!==`top`&&`modal-dialog-centered`,`wui-rb-dialog`].filter(Boolean).join(` `),De=$?V:{"--wui-modal-max-width":`${Ce}px`,...V};return!_e||typeof document>`u`?null:u(/* @__PURE__ */ d(`wui-modal`,{ref:be,"data-wui":me,"data-wui-props":he,open:y?``:void 0,static:ue?``:void 0,"no-escape":de&&!X?void 0:``,"confirm-discard":P||void 0,children:/* @__PURE__ */ d(`dialog`,{...pe,ref:ve,className:Te,"aria-label":I||(typeof x==`string`?x:void 0),style:De,children:/* @__PURE__ */ d(`div`,{className:Ee,children:/* @__PURE__ */ f(`div`,{className:we,children:[!N&&/* @__PURE__ */ f(`div`,{className:`wui-modal-header`,children:[D&&/* @__PURE__ */ d(`button`,{type:`button`,className:`wui-modal-back`,onClick:D,"aria-label":le,children:/* @__PURE__ */ d(i,{name:`arrow-left`,size:18})}),/* @__PURE__ */ f(`div`,{className:`wui-modal-heading`,children:[C&&/* @__PURE__ */ d(`span`,{className:`wui-modal-headicon`,children:/* @__PURE__ */ d(i,{name:C,size:18})}),/* @__PURE__ */ f(`div`,{className:`wui-modal-headtext`,children:[b&&/* @__PURE__ */ d(`div`,{className:`wui-modal-eyebrow`,children:b}),/* @__PURE__ */ d(`div`,{className:M===`serif`?`wui-modal-title wui-modal-title-serif`:`wui-modal-title`,children:x}),S&&/* @__PURE__ */ d(`div`,{className:`wui-modal-subtitle`,children:S})]})]}),O&&/* @__PURE__ */ d(`div`,{className:`wui-modal-header-actions`,children:O}),T&&/* @__PURE__ */ d(`button`,{type:`button`,className:`wui-modal-close`,"data-wui-dismiss":``,"aria-label":L,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:K,children:z}),(k||X)&&/* @__PURE__ */ f(`div`,{className:X?`wui-modal-footer wui-drawer-discarding`:`wui-modal-footer`,children:[X&&/* @__PURE__ */ d(e,{text:P,confirmRef:Y,onDiscard:xe,onKeep:Se}),k]})]})})})}),document.body)}export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../lib/useWuiText.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./AppActionIcon.js";import r from"./AppSegmented.js";import i from"./assertValidValue.js";import a from"./warnUnknownProps.js";import{DEFAULT_THEME_EFFECT as o,DEFAULT_THEME_STORAGE_KEY as s,THEME_CHANGE_EVENT as c,THEME_EFFECTS as l,THEME_MODES as u,applyTheme as d,nextTheme as f,readStoredTheme as p,resolveTheme as m,storeTheme as h,transitionTheme as g,watchSystemTheme as _}from"@webority/ui-elements/helpers";import{useCallback as v,useEffect as y,useId as b,useRef as ee,useState as te}from"react";import{flushSync as x}from"react-dom";import{jsx as S}from"react/jsx-runtime";import{THEME_TOGGLE_TEXT as C}from"@webority/ui-elements/text";function w(e){return u.some(t=>t===e)}var T={light:`sun`,dark:`moon`,auto:`monitor`},E=[`icon`,`segmented`],D={sm:16,md:20,lg:24,xl:28};function O(u){let{marker:O,props:k}=t(`AppThemeToggle`,u),A=e(`themeToggle`,C),{variant:j=`icon`,effect:M=o,includeAuto:N=!0,storageKey:P=s,duration:F,label:I=A.label,lightLabel:L=A.lightLabel,darkLabel:R=A.darkLabel,autoLabel:z=A.autoLabel,name:B,size:V=`md`,tooltipPlacement:H=`auto`,onChange:U,className:W=``,...G}=k,K={light:A.lightModeLabel,dark:A.darkModeLabel,auto:A.autoModeLabel};a(`AppThemeToggle`,G),i(`AppThemeToggle`,`variant`,j,E),i(`AppThemeToggle`,`effect`,M,l),i(`AppThemeToggle`,`size`,V,Object.keys(D));let q=v(e=>e===`auto`&&!N?m(e):e,[N]),[J,Y]=te(()=>q(typeof window>`u`?`auto`:p(P))),X=b(),Z=B||X,Q=ee({shown:q,storageKey:P});y(()=>{let e=document.documentElement.getAttribute(`data-theme`);w(e)?Y(Q.current.shown(e)):d(p(Q.current.storageKey))},[]),y(()=>{let e=e=>{if(!(e instanceof CustomEvent))throw Error(`wui:theme:change arrived without a CustomEvent`);let t=`detail`in e?e.detail:void 0,n=typeof t==`object`&&t&&`preference`in t?t.preference:void 0;w(n)&&Y(q(n))};return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[q]),y(()=>_(()=>{document.documentElement.getAttribute(`data-theme`)===`auto`&&d(`auto`)}),[]);let $=v((e,t)=>{let n=t?.getBoundingClientRect?.()??{left:0,top:0,width:0,height:0},r={x:n.left+n.width/2,y:n.top+n.height/2};g(()=>{d(e),h(e,P),x(()=>Y(e))
|
|
1
|
+
import e from"../lib/useWuiText.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./AppActionIcon.js";import r from"./AppSegmented.js";import i from"./assertValidValue.js";import a from"./warnUnknownProps.js";import{DEFAULT_THEME_EFFECT as o,DEFAULT_THEME_STORAGE_KEY as s,THEME_CHANGE_EVENT as c,THEME_EFFECTS as l,THEME_MODES as u,applyTheme as d,nextTheme as f,readStoredTheme as p,resolveTheme as m,storeTheme as h,transitionTheme as g,watchSystemTheme as _}from"@webority/ui-elements/helpers";import{useCallback as v,useEffect as y,useId as b,useRef as ee,useState as te}from"react";import{flushSync as x}from"react-dom";import{jsx as S}from"react/jsx-runtime";import{THEME_TOGGLE_TEXT as C}from"@webority/ui-elements/text";function w(e){return u.some(t=>t===e)}var T={light:`sun`,dark:`moon`,auto:`monitor`},E=[`icon`,`segmented`],D={sm:16,md:20,lg:24,xl:28};function O(u){let{marker:O,props:k}=t(`AppThemeToggle`,u),A=e(`themeToggle`,C),{variant:j=`icon`,effect:M=o,includeAuto:N=!0,storageKey:P=s,duration:F,label:I=A.label,lightLabel:L=A.lightLabel,darkLabel:R=A.darkLabel,autoLabel:z=A.autoLabel,name:B,size:V=`md`,tooltipPlacement:H=`auto`,onChange:U,className:W=``,...G}=k,K={light:A.lightModeLabel,dark:A.darkModeLabel,auto:A.autoModeLabel};a(`AppThemeToggle`,G),i(`AppThemeToggle`,`variant`,j,E),i(`AppThemeToggle`,`effect`,M,l),i(`AppThemeToggle`,`size`,V,Object.keys(D));let q=v(e=>e===`auto`&&!N?m(e):e,[N]),[J,Y]=te(()=>q(typeof window>`u`?`auto`:p(P))),X=b(),Z=B||X,Q=ee({shown:q,storageKey:P});y(()=>{let e=document.documentElement.getAttribute(`data-theme`);w(e)?Y(Q.current.shown(e)):d(p(Q.current.storageKey))},[]),y(()=>{let e=e=>{if(!(e instanceof CustomEvent))throw Error(`wui:theme:change arrived without a CustomEvent`);let t=`detail`in e?e.detail:void 0,n=typeof t==`object`&&t&&`preference`in t?t.preference:void 0;w(n)&&Y(q(n))};return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[q]),y(()=>_(()=>{document.documentElement.getAttribute(`data-theme`)===`auto`&&d(`auto`)}),[]);let $=v((e,t)=>{let n=t?.getBoundingClientRect?.()??{left:0,top:0,width:0,height:0},r={x:n.left+n.width/2,y:n.top+n.height/2};g(()=>{d(e),h(e,P),x(()=>Y(e))},{effect:M,to:m(e),origin:r,...F===void 0?null:{duration:F}}).then(()=>U?.(e))},[P,M,F,U]);if(j===`segmented`){let e=[{value:`light`,label:L,icon:T.light},{value:`dark`,label:R,icon:T.dark}];return N&&e.push({value:`auto`,label:z,icon:T.auto}),/* @__PURE__ */ S(r,{...O,options:e,value:J,name:Z,label:I,size:V===`xl`?`lg`:V,className:[`wui-theme-toggle`,`wui-theme-toggle-segmented`,W].filter(Boolean).join(` `),onChange:e=>{if(!w(e)||e===J)return;let t=document.querySelector(`.segmented-input[name="${CSS.escape(Z)}"][value="${e}"]`);$(e,t?.closest(`.segmented-option`)??t)}})}return/* @__PURE__ */ S(n,{...O,icon:T[J],label:`${I}: ${K[J]}`,size:D[V]??D.md,tooltipPlacement:H,onClick:e=>$(f(J,{includeAuto:N}),e.currentTarget),className:[`wui-theme-toggle`,W].filter(Boolean).join(` `)})}export{O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=/* @__PURE__ */ `aave.activity.add.add-circle.add-square.additem.airdrop.airplane.airplane-square.airpod.airpods.alarm.alert-circle.alert-triangle.align-bottom.align-horizontally.align-left.align-right.align-top.align-vertically.android.ankr.apple.aquarius.archive.archive-add.archive-book.archive-box.archive-minus.archive-slash.archive-tick.arrange-horizontal.arrange-horizontal-circle.arrange-horizontal-square.arrange-vertical.arrange-vertical-circle.arrange-vertical-square.arrow.arrow-circle-down.arrow-circle-down-2.arrow-circle-left.arrow-circle-left-2.arrow-circle-right.arrow-circle-right-2.arrow-circle-up.arrow-circle-up-2.arrow-down.arrow-down-2.arrow-down-3.arrow-down-up.arrow-forward.arrow-forward-square.arrow-left.arrow-left-2.arrow-left-3.arrow-right.arrow-right-2.arrow-right-3.arrow-rotate-left.arrow-rotate-right.arrow-square.arrow-square-down.arrow-square-left.arrow-square-right.arrow-square-up.arrow-swap-horizontal.arrow-swap-vertical.arrow-up.arrow-up-2.arrow-up-3.arrow-up-right.at.attach-circle.attach-square.audio-square.augur.autobrightness.autonio.avalanche.award.back.back-square.backward.backward-10-seconds.backward-15-seconds.backward-5-seconds.backward-item.badge-check.bag.bag-2.bag-cross.bag-cross-1.bag-happy.bag-tick.bag-tick-2.bag-timer.ban.bank.barcode.battery-charging.battery-disable.battery-empty.battery-empty-1.battery-full.be.bell.bezier.bill.binance-coin.binance-usd.bitcoin.bitcoin-card.bitcoin-convert.bitcoin-refresh.blend.blend-2.blogger.bluetooth.bluetooth-2.bluetooth-circle.bluetooth-rectangle.blur.bolt.book.book-1.book-saved.book-square.bookmark.bookmark-2.bootstrap.box.box-1.box-2.box-add.box-remove.box-seam.box-search.box-tick.box-time.briefcase.briefcase-cross.briefcase-tick.briefcase-timer.brifecase-cross.brifecase-tick.brifecase-timer.brodcast.broom.brush.brush-2.brush-3.brush-big.brush-square.bubble.bucket.bucket-circle.bucket-square.bug.building.building-2.building-3.building-4.buildings.buildings-2.buliding.bullseye.bus.buy-crypto.cake.calculator.calendar.calendar-1.calendar-2.calendar-add.calendar-check.calendar-circle.calendar-dots.calendar-edit.calendar-remove.calendar-search.calendar-tick.call.call-add.call-calling.call-incoming.call-minus.call-outgoing.call-received.call-remove.call-slash.camera.camera-slash.candle.candle-2.car.card.card-add.card-coin.card-edit.card-pos.card-receive.card-remove.card-remove-1.card-send.card-slash.card-tick.card-tick-1.cardano.cards.cash-stack.category.category-2.cd.celo.celsius.chainlink.chart.chart-1.chart-2.chart-21.chart-circle.chart-column.chart-fail.chart-square.chart-success.chat.chat-dots.check.check-check.check-circle.chemical-glass.chevron-down.chevron-left.chevron-right.chevron-up.chevrons-left.chevrons-right.chevrons-up-down.chrome.circle.circle-help.civic.clipboard.clipboard-check.clipboard-close.clipboard-export.clipboard-import.clipboard-text.clipboard-tick.clock.close-circle.close-square.cloud.cloud-add.cloud-change.cloud-connection.cloud-cross.cloud-drizzle.cloud-fog.cloud-lightning.cloud-minus.cloud-notif.cloud-plus.cloud-remove.cloud-snow.cloud-sunny.code.code-1.code-circle.coffee.coin.coin-1.coins.color-swatch.colorfilter.colors-square.command.command-square.comment.component.computing.contact.convert.convert-3-d-cube.convert-card.convertshape.convertshape-2.copy.copy-success.copyright.courthouse.cpu.cpu-charge.cpu-setting.creative-commons.credit-card.crop.crown.crown-1.cup.cursor.cut.dai.danger.dash.data.data-2.decred.dent.designtools.device-message.devices.diagram.diagram-3.diamonds.direct.direct-down.direct-inbox.direct-left.direct-normal.direct-notification.direct-right.direct-send.direct-up.directbox-default.directbox-notif.directbox-receive.directbox-send.discount-circle.discount-shape.discover.dislike.display.document.document-cloud.document-code.document-code-2.document-copy.document-download.document-favorite.document-filter.document-forward.document-like.document-previous.document-sketch.document-text.document-text-1.document-upload.dollar-circle.dollar-square.download.dribbble.driver.driver-2.driver-refresh.driving.drop.dropbox.edit.edit-2.educare.electricity.element.element-2.element-3.element-4.element-equal.element-plus.emercoin.emoji-happy.emoji-normal.emoji-sad.emoji-smile.empty-wallet.empty-wallet-add.empty-wallet-change.empty-wallet-remove.empty-wallet-tick.empty-wallet-time.enjin-coin.eos.eraser.eraser-square.ethereum.ethereum-classic.export.export-circle.export-curve.export-square.external-drive.external-link.eye.eye-off.eye-slash.facebook.factory.fatrows.favorite-chart.figma.figma-1.file-plus-2.file-text.files.filter.filter-add.filter-edit.filter-remove.filter-search.filter-square.filter-tick.finger-cricle.finger-scan.firstline.flag.flag-2.flame.flash.flash-circle.flash-slash.flashy.folder.folder-2.folder-add.folder-cloud.folder-connection.folder-cross.folder-favorite.folder-kanban.folder-minus.folder-open.folder-plus.forbidden.forbidden-2.format-circle.format-square.forward.forward-10-seconds.forward-15-seconds.forward-5-seconds.forward-item.framer.ftx-token.gallery.gallery-add.gallery-edit.gallery-export.gallery-favorite.gallery-import.gallery-remove.gallery-slash.gallery-tick.game.gameboy.gas-station.gauge.gemini.gemini-2.ghost.gift.github.glass.global.global-edit.global-refresh.global-search.globe.globe2.google.google-drive.google-play.gps.gps-slash.grammerly.graph.grid.grid-1.grid-2.grid-3.grid-4.grid-5.grid-6.grid-7.grid-8.grid-9.grid-edit.grid-eraser.grid-lock.hamberger-menu.hamburger-menu.hand.happyemoji.hard-hat.harmony.hashtag.hashtag-down.hashtag-square.hashtag-up.headphone.headphones.health.heart.heart-add.heart-circle.heart-edit.heart-remove.heart-search.heart-slash.heart-tick.hedera-hashgraph.hex.hierarchy.hierarchy-2.hierarchy-3.hierarchy-square.hierarchy-square-2.hierarchy-square-3.history.home.home-2.home-3.home-hashtag.home-trend-down.home-trend-up.home-wifi.hospital.house.house-2.html-3.html-5.huobi-token.i-24-support.i-3-d-cube-scan.i-3-d-rotate.i-3-d-square.i-3-dcube.i-3-square.icon.illustrator.image.import.import-circle.import-curve.import-square.inbox.info.info-circle.information.instagram.iost.java-script.js.judge.kanban.key.key-square.keyboard.keyboard-open.kyber-network.lamp.lamp-charge.lamp-on.lamp-slash.language-circle.language-square.layer.layout-dashboard.layout-grid.layout-maximize.level.lifebuoy.lightbulb.like.like-1.like-dislike.like-shapes.like-tag.link.link-1.link-2.link-21.link-circle.link-square.linkedin.list.litecoin.location.location-add.location-cross.location-discover.location-minus.location-slash.location-tick.lock.lock-1.lock-circle.lock-slash.log-out.login.login-curve.logout.logout-curve.lovely.magic-star.magicpen.mail.main-component.maker.man.map.map-1.map-pin.mask.mask-left.mask-right.math.maximize.maximize-1.maximize-2.maximize-3.maximize-4.maximize-circle.medal.medal-star.menu.menu-board.message.message-2.message-add.message-add-1.message-circle.message-edit.message-favorite.message-minus.message-notif.message-programming.message-question.message-remove.message-search.message-square.message-text.message-text-1.message-tick.message-time.messages.messages-1.messages-2.messages-3.messenger.microphone.microphone-2.microphone-slash.microphone-slash-1.microscope.microsoft.milk.mini-music-sqaure.minus.minus-circle.minus-cirlce.minus-square.mirror.mirroring-screen.mobile.mobile-programming.monero.money.money-2.money-3.money-4.money-add.money-archive.money-change.money-forbidden.money-receive.money-recive.money-remove.money-send.money-tick.money-time.moneys.monitor.monitor-mobbile.monitor-recorder.moon.more.more-2.more-circle.more-horizontal.more-square.mouse.mouse-circle.mouse-square.music.music-circle.music-dashboard.music-filter.music-library-2.music-play.music-playlist.music-square.music-square-add.music-square-remove.music-square-search.musicnote.nebulas.nem.nexo.next.note.note-1.note-add.note-favorite.note-remove.note-square.note-text.notepad.notepad-2.notification.notification-1.notification-bing.notification-circle.notification-favorite.notification-status.ocean-protocol.okb.okru.omega-circle.omega-square.ontology.paintbucket.palette.panel-left-close.panel-left-open.paperclip.paperclip-2.password-check.path-tool.path-tool-2.path-tool-square.pause.pause-circle.paypal.pen-add.pen-close.pen-remove.pen-tool.pen-tool-2.pencil.people.percentage-circle.percentage-square.personalcard.pet.pharagraphspacing.phone.photoshop.picture-frame.play.play-add.play-circle.play-cricle.play-remove.plug.plus.plus-circle.pointer.polkadot.polygon.polyswarm.presentation-chart.presention-chart.previous.printer.printer-slash.profile.profile-2-user.profile-add.profile-circle.profile-delete.profile-remove.profile-tick.programming-arrow.programming-arrows.python.quant.quote-down.quote-down-circle.quote-down-square.quote-up.quote-up-circle.quote-up-square.radar.radar-2.radio.ram.ram-2.rank.ranking.receipt.receipt-1.receipt-2.receipt-21.receipt-add.receipt-discount.receipt-disscount.receipt-edit.receipt-item.receipt-minus.receipt-search.receipt-square.receipt-text.receive.receive-square.receive-square-2.record.record-circle.recovery-convert.reddit.refresh.refresh-2.refresh-circle.refresh-cw.refresh-left-square.refresh-right-square.refresh-square.repeat.repeat-circle.repeate-music.repeate-one.reserve.robot.rotate-ccw.rotate-cw.rotate-left.rotate-right.route-square.routing.routing-2.row-horizontal.row-vertical.ruler.ruler-pen.safe-home.sagittarius.save-2.save-add.save-minus.save-remove.scan.scan-barcode.scanner.scanning.scissor.screenmirroring.scroll.search.search-favorite.search-favorite-1.search-normal.search-normal-1.search-status.search-status-1.search-zoom-in.search-zoom-in-1.search-zoom-out.search-zoom-out-1.security.security-card.security-safe.security-time.security-user.send.send-2.server.setting.setting-2.setting-3.setting-4.setting-5.settings.shapes.shapes-1.share.share-2.shield.shield-check.shield-cross.shield-lock.shield-plus.shield-search.shield-security.shield-slash.shield-tick.ship.shop.shop-add.shop-remove.shopping-bag.shopping-cart.shuffle.shutterstock.siacoin.sidebar-bottom.sidebar-left.sidebar-right.sidebar-top.signpost.simcard.simcard-1.simcard-2.size.slack.slash.slider.slider-horizontal.slider-horizontal-1.slider-vertical.slider-vertical-1.smallcaps.smart-car.smart-home.smileys.sms.sms-edit.sms-notification.sms-search.sms-star.sms-tracking.snapchat.snowflake.solana.sort.sound.sparkles.speaker.speedometer.spotify.stacks.star.star-1.star-slash.stars.status.status-up.stellar.sticker.stickynote.stop.stop-circle.story.strongbox.strongbox-2.subtitle.sun.sun-1.sun-fog.table-document.table-lamp.tag.tag-2.tag-cross.tag-right.tag-user.task.task-square.teacher.telephone.tenx.tether.text.text-block.text-bold.text-italic.text-underline.textalign-center.textalign-justifycenter.textalign-justifyleft.textalign-justifyright.textalign-left.textalign-right.the-graph.theta.thorchain.thumbs-down.thumbs-up.tick-circle.tick-square.ticket.ticket-2.ticket-discount.ticket-expired.ticket-star.timer.timer-1.timer-pause.timer-start.toggle-off.toggle-off-circle.toggle-on.toggle-on-circle.trade.transaction-minus.translate.transmit.transmit-sqaure-2.transmit-square.trash.trash-2.tree.trello.trend-down.trend-up.trending-up.triangle.triangle-logo.trontron.truck.truck-fast.truck-remove.truck-tick.truck-time.trush-square.twitch.two-page.ui-8.unlimited.unlock.upload.usd-coin.user.user-add.user-check.user-cirlce-add.user-edit.user-minus.user-octagon.user-plus.user-remove.user-search.user-square.user-tag.user-tick.users.velas.verify.vibe.video.video-add.video-circle.video-horizontal.video-octagon.video-play.video-remove.video-slash.video-square.video-tick.video-time.video-vertical.voice-circle.voice-cricle.voice-square.volume.volume-cross.volume-high.volume-low.volume-low-1.volume-mute.volume-slash.volume-up.wallet.wallet-1.wallet-2.wallet-3.wallet-add.wallet-add-1.wallet-check.wallet-minus.wallet-money.wallet-remove.wallet-search.wallet2.wanchain.wanchain-1.wand-sparkles.warning-2.watch.watch-status.weight.weight-meter.whatsapp.wifi.wifi-square.wind.wind-2.windows.wing.woman.wrist-clock.x.x-circle.xd.xiaomi.xrp.youtube.zap.zel.zoom.zoom-in.zoom-out`.split(`.`);export{e as ICON_NAMES};
|
|
1
|
+
var e=/* @__PURE__ */ `aave.activity.add.add-circle.add-square.additem.airdrop.airplane.airplane-square.airpod.airpods.alarm.alert-circle.alert-triangle.align-bottom.align-horizontally.align-left.align-right.align-top.align-vertically.android.ankr.apple.aquarius.archive.archive-add.archive-book.archive-box.archive-minus.archive-slash.archive-tick.arrange-horizontal.arrange-horizontal-circle.arrange-horizontal-square.arrange-vertical.arrange-vertical-circle.arrange-vertical-square.arrow.arrow-circle-down.arrow-circle-down-2.arrow-circle-left.arrow-circle-left-2.arrow-circle-right.arrow-circle-right-2.arrow-circle-up.arrow-circle-up-2.arrow-down.arrow-down-2.arrow-down-3.arrow-down-up.arrow-forward.arrow-forward-square.arrow-left.arrow-left-2.arrow-left-3.arrow-right.arrow-right-1.arrow-right-2.arrow-right-3.arrow-rotate-left.arrow-rotate-right.arrow-square.arrow-square-down.arrow-square-left.arrow-square-right.arrow-square-up.arrow-swap-horizontal.arrow-swap-vertical.arrow-up.arrow-up-2.arrow-up-3.arrow-up-right.at.attach-circle.attach-square.audio-square.augur.autobrightness.autonio.avalanche.award.back.back-square.backward.backward-10-seconds.backward-15-seconds.backward-5-seconds.backward-item.badge-check.bag.bag-2.bag-cross.bag-cross-1.bag-happy.bag-tick.bag-tick-2.bag-timer.ban.bank.barcode.battery-charging.battery-disable.battery-empty.battery-empty-1.battery-full.be.bell.bezier.bill.binance-coin.binance-usd.bitcoin.bitcoin-card.bitcoin-convert.bitcoin-refresh.blend.blend-2.blogger.bluetooth.bluetooth-2.bluetooth-circle.bluetooth-rectangle.blur.bolt.book.book-1.book-saved.book-square.bookmark.bookmark-2.bootstrap.box.box-1.box-2.box-add.box-remove.box-seam.box-search.box-tick.box-time.briefcase.briefcase-cross.briefcase-tick.briefcase-timer.brifecase-cross.brifecase-tick.brifecase-timer.brodcast.broom.brush.brush-2.brush-3.brush-big.brush-square.bubble.bucket.bucket-circle.bucket-square.bug.building.building-2.building-3.building-4.buildings.buildings-2.buliding.bullseye.bus.buy-crypto.cake.calculator.calendar.calendar-1.calendar-2.calendar-add.calendar-check.calendar-circle.calendar-dots.calendar-edit.calendar-remove.calendar-search.calendar-tick.call.call-add.call-calling.call-incoming.call-minus.call-outgoing.call-received.call-remove.call-slash.camera.camera-slash.candle.candle-2.car.card.card-add.card-coin.card-edit.card-pos.card-receive.card-remove.card-remove-1.card-send.card-slash.card-tick.card-tick-1.cardano.cards.cash-stack.category.category-2.cd.celo.celsius.chainlink.chart.chart-1.chart-2.chart-21.chart-circle.chart-column.chart-fail.chart-square.chart-success.chat.chat-dots.check.check-check.check-circle.chemical-glass.chevron-down.chevron-left.chevron-right.chevron-up.chevrons-left.chevrons-right.chevrons-up-down.chrome.circle.circle-help.civic.clipboard.clipboard-check.clipboard-close.clipboard-export.clipboard-import.clipboard-text.clipboard-tick.clock.close-circle.close-square.cloud.cloud-add.cloud-change.cloud-connection.cloud-cross.cloud-drizzle.cloud-fog.cloud-lightning.cloud-minus.cloud-notif.cloud-plus.cloud-remove.cloud-snow.cloud-sunny.code.code-1.code-circle.coffee.coin.coin-1.coins.color-swatch.colorfilter.colors-square.command.command-square.comment.component.computing.contact.convert.convert-3-d-cube.convert-card.convertshape.convertshape-2.copy.copy-success.copyright.courthouse.cpu.cpu-charge.cpu-setting.creative-commons.credit-card.crop.crown.crown-1.cup.cursor.cut.dai.danger.dash.data.data-2.database.decred.dent.designtools.device-message.devices.diagram.diagram-3.diamonds.direct.direct-down.direct-inbox.direct-left.direct-normal.direct-notification.direct-right.direct-send.direct-up.directbox-default.directbox-notif.directbox-receive.directbox-send.discount-circle.discount-shape.discover.dislike.display.document.document-cloud.document-code.document-code-2.document-copy.document-download.document-favorite.document-filter.document-forward.document-like.document-previous.document-sketch.document-text.document-text-1.document-upload.dollar-circle.dollar-square.download.dribbble.driver.driver-2.driver-refresh.driving.drop.dropbox.edit.edit-2.educare.electricity.element.element-2.element-3.element-4.element-equal.element-plus.ellipsis.emercoin.emoji-happy.emoji-normal.emoji-sad.emoji-smile.empty-wallet.empty-wallet-add.empty-wallet-change.empty-wallet-remove.empty-wallet-tick.empty-wallet-time.enjin-coin.eos.eraser.eraser-square.ethereum.ethereum-classic.export.export-circle.export-curve.export-square.external-drive.external-link.eye.eye-off.eye-slash.facebook.factory.fatrows.favorite-chart.figma.figma-1.file-plus-2.file-text.files.filter.filter-add.filter-edit.filter-remove.filter-search.filter-square.filter-tick.finger-cricle.finger-scan.firstline.flag.flag-2.flame.flash.flash-circle.flash-slash.flashy.folder.folder-2.folder-add.folder-cloud.folder-connection.folder-cross.folder-favorite.folder-kanban.folder-minus.folder-open.folder-plus.forbidden.forbidden-2.format-circle.format-square.forward.forward-10-seconds.forward-15-seconds.forward-5-seconds.forward-item.framer.ftx-token.funnel.gallery.gallery-add.gallery-edit.gallery-export.gallery-favorite.gallery-import.gallery-remove.gallery-slash.gallery-tick.game.gameboy.gas-station.gauge.gemini.gemini-2.ghost.gift.github.glass.global.global-edit.global-refresh.global-search.globe.globe2.google.google-drive.google-play.gps.gps-slash.grammerly.graph.grid.grid-1.grid-2.grid-3.grid-4.grid-5.grid-6.grid-7.grid-8.grid-9.grid-edit.grid-eraser.grid-lock.hamberger-menu.hamburger-menu.hand.happyemoji.hard-hat.harmony.hashtag.hashtag-down.hashtag-square.hashtag-up.headphone.headphones.health.heart.heart-add.heart-circle.heart-edit.heart-remove.heart-search.heart-slash.heart-tick.hedera-hashgraph.hex.hierarchy.hierarchy-2.hierarchy-3.hierarchy-square.hierarchy-square-2.hierarchy-square-3.history.home.home-2.home-3.home-hashtag.home-trend-down.home-trend-up.home-wifi.hospital.house.house-2.html-3.html-5.huobi-token.i-24-support.i-3-d-cube-scan.i-3-d-rotate.i-3-d-square.i-3-dcube.i-3-square.icon.illustrator.image.import.import-circle.import-curve.import-square.inbox.info.info-circle.information.instagram.iost.java-script.journal-text.js.judge.kanban.key.key-square.keyboard.keyboard-open.kyber-network.lamp.lamp-charge.lamp-on.lamp-slash.language-circle.language-square.layer.layers.layout-dashboard.layout-grid.layout-maximize.level.lifebuoy.lightbulb.like.like-1.like-dislike.like-shapes.like-tag.link.link-1.link-2.link-21.link-circle.link-square.linkedin.list.litecoin.location.location-add.location-cross.location-discover.location-minus.location-slash.location-tick.lock.lock-1.lock-circle.lock-slash.log-out.login.login-curve.logout.logout-curve.lovely.magic-star.magicpen.mail.main-component.maker.man.map.map-1.map-pin.mask.mask-left.mask-right.math.maximize.maximize-1.maximize-2.maximize-3.maximize-4.maximize-circle.medal.medal-star.menu.menu-board.message.message-2.message-add.message-add-1.message-circle.message-edit.message-favorite.message-minus.message-notif.message-programming.message-question.message-remove.message-search.message-square.message-text.message-text-1.message-tick.message-time.messages.messages-1.messages-2.messages-3.messenger.microphone.microphone-2.microphone-slash.microphone-slash-1.microscope.microsoft.milk.mini-music-sqaure.minus.minus-circle.minus-cirlce.minus-square.mirror.mirroring-screen.mobile.mobile-programming.monero.money.money-2.money-3.money-4.money-add.money-archive.money-change.money-forbidden.money-receive.money-recive.money-remove.money-send.money-tick.money-time.moneys.monitor.monitor-mobbile.monitor-recorder.moon.more.more-2.more-circle.more-horizontal.more-square.mouse.mouse-circle.mouse-square.music.music-circle.music-dashboard.music-filter.music-library-2.music-play.music-playlist.music-square.music-square-add.music-square-remove.music-square-search.musicnote.nebulas.nem.nexo.next.note.note-1.note-2.note-add.note-favorite.note-remove.note-square.note-text.notepad.notepad-2.notification.notification-1.notification-bing.notification-circle.notification-favorite.notification-status.ocean-protocol.okb.okru.omega-circle.omega-square.ontology.paintbucket.palette.panel-left-close.panel-left-open.paperclip.paperclip-2.password-check.path-tool.path-tool-2.path-tool-square.pause.pause-circle.paypal.pen-add.pen-close.pen-remove.pen-tool.pen-tool-2.pencil.people.percentage-circle.percentage-square.personalcard.pet.pharagraphspacing.phone.photoshop.picture-frame.play.play-add.play-circle.play-cricle.play-remove.plug.plus.plus-circle.pointer.polkadot.polygon.polyswarm.presentation-chart.presention-chart.previous.printer.printer-slash.profile.profile-2-user.profile-add.profile-circle.profile-delete.profile-remove.profile-tick.programming-arrow.programming-arrows.python.quant.quote-down.quote-down-circle.quote-down-square.quote-up.quote-up-circle.quote-up-square.radar.radar-2.radio.ram.ram-2.rank.ranking.receipt.receipt-1.receipt-2.receipt-21.receipt-add.receipt-discount.receipt-disscount.receipt-edit.receipt-item.receipt-minus.receipt-search.receipt-square.receipt-text.receive.receive-square.receive-square-2.record.record-circle.recovery-convert.reddit.refresh.refresh-2.refresh-circle.refresh-cw.refresh-left-square.refresh-right-square.refresh-square.repeat.repeat-circle.repeate-music.repeate-one.reserve.robot.rotate-ccw.rotate-cw.rotate-left.rotate-right.route-square.routing.routing-2.row-horizontal.row-vertical.ruler.ruler-pen.safe-home.sagittarius.save-2.save-add.save-minus.save-remove.scan.scan-barcode.scanner.scanning.scissor.screenmirroring.scroll.search.search-favorite.search-favorite-1.search-normal.search-normal-1.search-status.search-status-1.search-zoom-in.search-zoom-in-1.search-zoom-out.search-zoom-out-1.security.security-card.security-safe.security-time.security-user.send.send-2.server.setting.setting-2.setting-3.setting-4.setting-5.settings.shapes.shapes-1.share.share-2.shield.shield-check.shield-cross.shield-lock.shield-plus.shield-search.shield-security.shield-slash.shield-tick.ship.shop.shop-add.shop-remove.shopping-bag.shopping-cart.shuffle.shutterstock.siacoin.sidebar-bottom.sidebar-left.sidebar-right.sidebar-top.signpost.simcard.simcard-1.simcard-2.size.slack.slash.slider.slider-horizontal.slider-horizontal-1.slider-vertical.slider-vertical-1.sliders.sliders-horizontal.smallcaps.smart-car.smart-home.smileys.sms.sms-edit.sms-notification.sms-search.sms-star.sms-tracking.snapchat.snowflake.solana.sort.sound.sparkles.speaker.speedometer.spotify.stacks.star.star-1.star-slash.stars.status.status-up.stellar.sticker.stickynote.stop.stop-circle.story.strongbox.strongbox-2.subtitle.sun.sun-1.sun-fog.table-document.table-lamp.tag.tag-2.tag-cross.tag-right.tag-user.task.task-square.teacher.telephone.tenx.tether.text.text-block.text-bold.text-italic.text-underline.textalign-center.textalign-justifycenter.textalign-justifyleft.textalign-justifyright.textalign-left.textalign-right.the-graph.theta.thorchain.thumbs-down.thumbs-up.tick-circle.tick-square.ticket.ticket-2.ticket-discount.ticket-expired.ticket-star.timer.timer-1.timer-pause.timer-start.toggle-off.toggle-off-circle.toggle-on.toggle-on-circle.trade.transaction-minus.translate.transmit.transmit-sqaure-2.transmit-square.trash.trash-2.tree.trello.trend-down.trend-up.trending-up.triangle.triangle-logo.trontron.truck.truck-fast.truck-remove.truck-tick.truck-time.trush-square.twitch.two-page.ui-8.unlimited.unlock.upload.usd-coin.user.user-add.user-check.user-cirlce-add.user-edit.user-minus.user-octagon.user-plus.user-remove.user-search.user-square.user-tag.user-tick.users.velas.verify.vibe.video.video-add.video-circle.video-horizontal.video-octagon.video-play.video-remove.video-slash.video-square.video-tick.video-time.video-vertical.voice-circle.voice-cricle.voice-square.volume.volume-cross.volume-high.volume-low.volume-low-1.volume-mute.volume-slash.volume-up.wallet.wallet-1.wallet-2.wallet-3.wallet-add.wallet-add-1.wallet-check.wallet-minus.wallet-money.wallet-remove.wallet-search.wallet2.wanchain.wanchain-1.wand-sparkles.warning-2.watch.watch-status.weight.weight-meter.whatsapp.wifi.wifi-square.wind.wind-2.windows.wing.woman.wrist-clock.x.x-circle.xd.xiaomi.xrp.youtube.zap.zel.zoom.zoom-in.zoom-out`.split(`.`);export{e as ICON_NAMES};
|