@orion-ds/react 4.2.5 → 4.2.9
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/components/Accordion/Accordion.module.css +1 -1
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.module.css +1 -1
- package/dist/components/Alert/Alert.stories.d.ts +2 -1
- package/dist/components/Alert/Alert.stories.d.ts.map +1 -1
- package/dist/components/Alert/Alert.types.d.ts +1 -1
- package/dist/components/Alert/Alert.types.d.ts.map +1 -1
- package/dist/components/Badge/Badge.module.css +1 -1
- package/dist/components/Badge/Badge.stories.d.ts +2 -2
- package/dist/components/Badge/Badge.stories.d.ts.map +1 -1
- package/dist/components/Badge/Badge.types.d.ts +2 -2
- package/dist/components/Badge/Badge.types.d.ts.map +1 -1
- package/dist/components/Button/Button.module.css +1 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.module.css +1 -1
- package/dist/components/Card/Card.stories.d.ts +1 -1
- package/dist/components/Card/Card.stories.d.ts.map +1 -1
- package/dist/components/Card/Card.types.d.ts +3 -1
- package/dist/components/Card/Card.types.d.ts.map +1 -1
- package/dist/components/Chip/Chip.module.css +1 -1
- package/dist/components/Chip/Chip.stories.d.ts +1 -1
- package/dist/components/Chip/Chip.stories.d.ts.map +1 -1
- package/dist/components/Chip/Chip.types.d.ts +1 -1
- package/dist/components/Chip/Chip.types.d.ts.map +1 -1
- package/dist/components/CodeEditor/CodeEditor.d.ts.map +1 -1
- package/dist/components/CodeEditor/CodeEditor.types.d.ts.map +1 -1
- package/dist/components/Field/Field.module.css +1 -1
- package/dist/components/Field/Field.stories.d.ts +5 -0
- package/dist/components/Field/Field.stories.d.ts.map +1 -1
- package/dist/components/NavTree/NavTree.d.ts.map +1 -1
- package/dist/components/NavTree/NavTree.module.css +1 -1
- package/dist/components/NavTree/NavTree.stories.d.ts.map +1 -1
- package/dist/components/NavTree/NavTree.types.d.ts +2 -2
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.module.css +1 -1
- package/dist/components/SearchInput/SearchInput.stories.d.ts +1 -0
- package/dist/components/SearchInput/SearchInput.stories.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.types.d.ts +5 -1
- package/dist/components/SearchInput/SearchInput.types.d.ts.map +1 -1
- package/dist/components/Select/Select.module.css +1 -1
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.module.css +1 -1
- package/dist/components/Tabs/Tabs.types.d.ts +6 -0
- package/dist/components/Tabs/Tabs.types.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.module.css +1 -1
- package/dist/components/UserMenu/UserMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.d.ts.map +1 -1
- package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.types.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/examples/LandingPage.example.d.ts.map +1 -1
- package/dist/hooks/useTheme.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index10.cjs +1 -1
- package/dist/index10.mjs +1 -1
- package/dist/index100.cjs +1 -1
- package/dist/index100.mjs +62 -24
- package/dist/index101.cjs +1 -1
- package/dist/index101.mjs +16 -44
- package/dist/index102.cjs +1 -1
- package/dist/index102.mjs +30 -30
- package/dist/index103.cjs +1 -1
- package/dist/index103.mjs +30 -28
- package/dist/index104.cjs +1 -1
- package/dist/index104.mjs +40 -16
- package/dist/index105.cjs +1 -1
- package/dist/index105.mjs +36 -64
- package/dist/index106.cjs +1 -1
- package/dist/index106.mjs +54 -52
- package/dist/index107.cjs +1 -1
- package/dist/index107.mjs +46 -42
- package/dist/index108.cjs +1 -1
- package/dist/index108.mjs +13 -29
- package/dist/index109.cjs +1 -1
- package/dist/index109.mjs +28 -24
- package/dist/index11.cjs +1 -1
- package/dist/index11.mjs +1 -1
- package/dist/index110.cjs +1 -1
- package/dist/index110.mjs +65 -28
- package/dist/index111.cjs +1 -1
- package/dist/index111.mjs +24 -18
- package/dist/index112.cjs +1 -1
- package/dist/index112.mjs +35 -14
- package/dist/index113.cjs +1 -1
- package/dist/index113.mjs +30 -50
- package/dist/index114.cjs +1 -1
- package/dist/index114.mjs +32 -53
- package/dist/index115.cjs +1 -1
- package/dist/index115.mjs +57 -62
- package/dist/index116.cjs +1 -1
- package/dist/index116.mjs +18 -33
- package/dist/index117.cjs +1 -1
- package/dist/index117.mjs +12 -30
- package/dist/index118.cjs +1 -1
- package/dist/index118.mjs +64 -18
- package/dist/index119.cjs +1 -1
- package/dist/index119.mjs +28 -56
- package/dist/index12.cjs +1 -1
- package/dist/index12.mjs +1 -1
- package/dist/index120.cjs +1 -1
- package/dist/index120.mjs +32 -38
- package/dist/index121.cjs +1 -1
- package/dist/index121.mjs +76 -20
- package/dist/index122.cjs +1 -1
- package/dist/index122.mjs +33 -40
- package/dist/index123.cjs +1 -1
- package/dist/index123.mjs +40 -76
- package/dist/index124.cjs +1 -1
- package/dist/index124.mjs +52 -51
- package/dist/index125.cjs +1 -1
- package/dist/index125.mjs +41 -29
- package/dist/index126.cjs +1 -1
- package/dist/index126.mjs +18 -65
- package/dist/index127.cjs +1 -1
- package/dist/index127.mjs +37 -31
- package/dist/index128.cjs +1 -1
- package/dist/index128.mjs +28 -32
- package/dist/index129.cjs +1 -1
- package/dist/index129.mjs +36 -45
- package/dist/index13.cjs +1 -1
- package/dist/index13.mjs +1 -1
- package/dist/index130.cjs +1 -1
- package/dist/index130.mjs +18 -42
- package/dist/index131.cjs +1 -1
- package/dist/index131.mjs +18 -28
- package/dist/index132.cjs +1 -1
- package/dist/index132.mjs +234 -30
- package/dist/index133.cjs +1 -1
- package/dist/index133.mjs +34 -25
- package/dist/index134.cjs +1 -1
- package/dist/index134.mjs +44 -13
- package/dist/index135.cjs +1 -1
- package/dist/index135.mjs +170 -234
- package/dist/index136.cjs +1 -1
- package/dist/index136.mjs +184 -32
- package/dist/index137.cjs +1 -1
- package/dist/index137.mjs +24 -39
- package/dist/index138.cjs +1 -1
- package/dist/index138.mjs +78 -158
- package/dist/index139.cjs +1 -1
- package/dist/index139.mjs +47 -180
- package/dist/index14.cjs +1 -1
- package/dist/index14.mjs +1 -1
- package/dist/index140.cjs +1 -1
- package/dist/index140.mjs +64 -26
- package/dist/index141.cjs +1 -1
- package/dist/index141.mjs +115 -81
- package/dist/index142.cjs +1 -1
- package/dist/index142.mjs +108 -52
- package/dist/index143.cjs +1 -1
- package/dist/index143.mjs +105 -60
- package/dist/index144.cjs +1 -1
- package/dist/index144.mjs +112 -114
- package/dist/index145.cjs +1 -1
- package/dist/index145.mjs +212 -106
- package/dist/index146.cjs +1 -1
- package/dist/index146.mjs +42 -111
- package/dist/index147.cjs +1 -1
- package/dist/index147.mjs +27 -122
- package/dist/index148.cjs +1 -1
- package/dist/index148.mjs +56 -214
- package/dist/index149.cjs +1 -1
- package/dist/index149.mjs +46 -22
- package/dist/index15.cjs +1 -1
- package/dist/index15.mjs +1 -1
- package/dist/index150.cjs +1 -1
- package/dist/index150.mjs +24 -36
- package/dist/index151.cjs +1 -1
- package/dist/index151.mjs +24 -12
- package/dist/index152.cjs +1 -1
- package/dist/index152.mjs +20 -28
- package/dist/index153.cjs +1 -1
- package/dist/index153.mjs +26 -46
- package/dist/index154.cjs +1 -1
- package/dist/index154.mjs +28 -38
- package/dist/index155.cjs +1 -1
- package/dist/index155.mjs +40 -36
- package/dist/index156.cjs +1 -1
- package/dist/index156.mjs +22 -18
- package/dist/index157.cjs +1 -1
- package/dist/index157.mjs +64 -62
- package/dist/index158.cjs +1 -1
- package/dist/index158.mjs +12 -18
- package/dist/index159.cjs +1 -1
- package/dist/index159.mjs +33 -67
- package/dist/index16.cjs +1 -1
- package/dist/index16.mjs +73 -69
- package/dist/index160.cjs +1 -1
- package/dist/index160.mjs +20 -20
- package/dist/index161.cjs +1 -1
- package/dist/index161.mjs +42 -106
- package/dist/index162.cjs +1 -1
- package/dist/index162.mjs +20 -33
- package/dist/index163.cjs +1 -1
- package/dist/index163.mjs +28 -28
- package/dist/index164.cjs +1 -1
- package/dist/index164.mjs +44 -18
- package/dist/index165.cjs +1 -1
- package/dist/index165.mjs +63 -37
- package/dist/index166.cjs +1 -1
- package/dist/index166.mjs +28 -28
- package/dist/index167.cjs +1 -1
- package/dist/index167.mjs +20 -46
- package/dist/index168.cjs +1 -1
- package/dist/index168.mjs +67 -22
- package/dist/index169.cjs +1 -1
- package/dist/index169.mjs +30 -40
- package/dist/index17.cjs +1 -1
- package/dist/index17.mjs +1 -1
- package/dist/index170.cjs +1 -1
- package/dist/index170.mjs +24 -20
- package/dist/index171.cjs +1 -1
- package/dist/index171.mjs +44 -42
- package/dist/index172.cjs +1 -1
- package/dist/index172.mjs +46 -64
- package/dist/index173.cjs +1 -1
- package/dist/index173.mjs +28 -55
- package/dist/index174.cjs +1 -1
- package/dist/index174.mjs +106 -26
- package/dist/index175.cjs +1 -1
- package/dist/index175.mjs +52 -44
- package/dist/index176.cjs +1 -1
- package/dist/index176.mjs +45 -28
- package/dist/index177.cjs +1 -1
- package/dist/index177.mjs +38 -33
- package/dist/index178.cjs +1 -1
- package/dist/index178.mjs +55 -32
- package/dist/index179.cjs +1 -1
- package/dist/index179.mjs +50 -46
- package/dist/index18.cjs +1 -1
- package/dist/index18.mjs +1 -1
- package/dist/index180.cjs +1 -1
- package/dist/index180.mjs +30 -57
- package/dist/index181.cjs +1 -1
- package/dist/index181.mjs +52 -27
- package/dist/index182.cjs +1 -1
- package/dist/index182.mjs +17 -17
- package/dist/index183.cjs +1 -1
- package/dist/index183.mjs +17 -17
- package/dist/index185.cjs +1 -1
- package/dist/index185.mjs +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.mjs +2 -2
- package/dist/index20.cjs +1 -1
- package/dist/index20.mjs +14 -14
- package/dist/index21.cjs +1 -1
- package/dist/index21.mjs +1 -1
- package/dist/index22.cjs +1 -1
- package/dist/index22.mjs +1 -1
- package/dist/index23.cjs +1 -1
- package/dist/index23.mjs +56 -36
- package/dist/index24.cjs +1 -1
- package/dist/index24.mjs +1 -1
- package/dist/index25.cjs +1 -1
- package/dist/index25.mjs +2 -2
- package/dist/index26.cjs +1 -1
- package/dist/index26.mjs +1 -1
- package/dist/index27.cjs +1 -1
- package/dist/index27.mjs +1 -1
- package/dist/index28.cjs +1 -1
- package/dist/index28.mjs +1 -1
- package/dist/index29.cjs +1 -1
- package/dist/index29.mjs +1 -1
- package/dist/index3.cjs +1 -1
- package/dist/index3.mjs +2 -2
- package/dist/index30.cjs +1 -1
- package/dist/index30.mjs +1 -1
- package/dist/index31.cjs +1 -1
- package/dist/index31.mjs +1 -1
- package/dist/index32.cjs +1 -1
- package/dist/index32.mjs +1 -1
- package/dist/index33.cjs +1 -1
- package/dist/index33.mjs +1 -1
- package/dist/index34.cjs +1 -1
- package/dist/index34.mjs +1 -1
- package/dist/index35.cjs +1 -1
- package/dist/index35.mjs +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.mjs +1 -1
- package/dist/index37.cjs +1 -1
- package/dist/index37.mjs +1 -1
- package/dist/index38.cjs +1 -1
- package/dist/index38.mjs +1 -1
- package/dist/index39.cjs +1 -1
- package/dist/index39.mjs +1 -1
- package/dist/index40.cjs +1 -1
- package/dist/index40.mjs +1 -1
- package/dist/index42.cjs +1 -1
- package/dist/index42.mjs +1 -1
- package/dist/index43.cjs +1 -1
- package/dist/index43.mjs +1 -1
- package/dist/index44.cjs +1 -1
- package/dist/index44.mjs +1 -1
- package/dist/index46.cjs +1 -1
- package/dist/index46.mjs +1 -1
- package/dist/index47.cjs +1 -1
- package/dist/index47.mjs +1 -1
- package/dist/index48.mjs +95 -31
- package/dist/index49.cjs +1 -1
- package/dist/index49.mjs +1 -1
- package/dist/index5.cjs +1 -1
- package/dist/index5.mjs +1 -1
- package/dist/index50.cjs +1 -1
- package/dist/index50.mjs +1 -1
- package/dist/index51.cjs +1 -1
- package/dist/index51.mjs +1 -1
- package/dist/index52.cjs +1 -1
- package/dist/index52.mjs +1 -1
- package/dist/index53.cjs +1 -1
- package/dist/index53.mjs +82 -78
- package/dist/index54.cjs +1 -1
- package/dist/index54.mjs +1 -1
- package/dist/index55.cjs +1 -1
- package/dist/index55.mjs +1 -1
- package/dist/index56.cjs +1 -1
- package/dist/index56.mjs +1 -1
- package/dist/index57.cjs +1 -1
- package/dist/index57.mjs +1 -1
- package/dist/index58.cjs +1 -1
- package/dist/index58.mjs +1 -1
- package/dist/index59.cjs +1 -1
- package/dist/index59.mjs +1 -1
- package/dist/index6.cjs +1 -1
- package/dist/index6.mjs +1 -1
- package/dist/index60.cjs +1 -1
- package/dist/index60.mjs +1 -1
- package/dist/index61.cjs +1 -1
- package/dist/index61.mjs +1 -1
- package/dist/index62.cjs +1 -1
- package/dist/index62.mjs +42 -39
- package/dist/index63.cjs +1 -1
- package/dist/index63.mjs +1 -1
- package/dist/index64.cjs +1 -1
- package/dist/index64.mjs +1 -1
- package/dist/index65.cjs +1 -1
- package/dist/index65.mjs +1 -1
- package/dist/index66.cjs +1 -1
- package/dist/index66.mjs +1 -1
- package/dist/index67.cjs +1 -1
- package/dist/index67.mjs +1 -1
- package/dist/index68.cjs +1 -1
- package/dist/index68.mjs +1 -1
- package/dist/index69.cjs +1 -1
- package/dist/index69.mjs +1 -1
- package/dist/index7.cjs +1 -1
- package/dist/index7.mjs +1 -1
- package/dist/index70.cjs +1 -1
- package/dist/index70.mjs +1 -1
- package/dist/index71.cjs +1 -1
- package/dist/index71.mjs +1 -1
- package/dist/index72.cjs +1 -1
- package/dist/index72.mjs +17 -15
- package/dist/index73.cjs +1 -1
- package/dist/index73.mjs +1 -1
- package/dist/index74.cjs +1 -1
- package/dist/index74.mjs +2 -2
- package/dist/index76.cjs +1 -1
- package/dist/index76.mjs +1 -1
- package/dist/index77.cjs +1 -1
- package/dist/index77.mjs +1 -1
- package/dist/index78.cjs +1 -1
- package/dist/index78.mjs +1 -1
- package/dist/index79.cjs +1 -1
- package/dist/index79.mjs +1 -1
- package/dist/index8.cjs +1 -1
- package/dist/index8.mjs +31 -30
- package/dist/index80.cjs +1 -1
- package/dist/index80.mjs +1 -1
- package/dist/index81.cjs +1 -1
- package/dist/index81.mjs +21 -3
- package/dist/index9.cjs +1 -1
- package/dist/index9.mjs +1 -1
- package/dist/index94.mjs +3 -1
- package/dist/index99.cjs +1 -1
- package/dist/index99.mjs +30 -40
- package/dist/styles.css +13 -12
- package/dist/theme.css +1 -0
- package/dist/tokens/brands.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index145.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("react"),c=require("lucide-react"),t=require("./index132.cjs"),O={today:"Today",yesterday:"Yesterday",previous7:"Previous 7 days",previous30:"Previous 30 days",older:"Older"},y=["today","yesterday","previous7","previous30","older"],C=a=>{const r=new Date,u=(new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime()-new Date(a.getFullYear(),a.getMonth(),a.getDate()).getTime())/(1e3*60*60*24);return u<1?"today":u<2?"yesterday":u<7?"previous7":u<30?"previous30":"older"},P=a=>{const r=C(a);return r==="today"?new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit"}).format(a):r==="yesterday"?"Yesterday":r==="previous7"?new Intl.DateTimeFormat("en-US",{weekday:"short"}).format(a):new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(a)},z=a=>{const r=new Map;return y.forEach(n=>r.set(n,[])),a.forEach(n=>{const b=C(n.updatedAt);r.get(b)?.push(n)}),r},S=({conversations:a=[],activeConversationId:r,onSelectConversation:n,onNewConversation:b,onDeleteConversation:u,onSearch:x,header:w,footer:N,collapsed:m=!1,onCollapsedChange:f,className:I,...D})=>{const[h,T]=d.useState(""),[p,j]=d.useState(null),o=d.useRef(void 0);d.useEffect(()=>()=>{o.current&&clearTimeout(o.current)},[]);const g=d.useMemo(()=>{if(!h.trim())return a;const s=h.toLowerCase();return a.filter(l=>l.title.toLowerCase().includes(s)||l.preview?.toLowerCase().includes(s))},[a,h]),v=d.useMemo(()=>z(g),[g]),B=d.useCallback(s=>{const l=s.target.value;T(l),x?.(l)},[x]),k=d.useCallback(s=>{n?.(s),m&&f&&f(!0)},[n,m,f]),F=d.useCallback((s,l)=>{s.stopPropagation(),p===l?(u?.(l),j(null),o.current&&clearTimeout(o.current)):(j(l),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{j(null)},3e3))},[p,u]),M=y.some(s=>(v.get(s)?.length??0)>0);return e.jsxs(e.Fragment,{children:[!m&&e.jsx("div",{className:t.default.sidebarOverlay,onClick:()=>f?.(!0),"aria-hidden":"true"}),e.jsxs("aside",{className:[t.default.sidebar,m&&t.default.sidebarCollapsed,!m&&t.default.sidebarOpen,I].filter(Boolean).join(" "),...D,children:[e.jsx("div",{className:t.default.sidebarHeader,children:w||e.jsxs(e.Fragment,{children:[e.jsx("button",{className:[t.default.inputButton,t.default.inputButtonPrimary,t.default.sidebarNewButton].filter(Boolean).join(" "),onClick:b,"aria-label":"New conversation",children:e.jsxs("span",{className:t.default.sidebarNewButtonInner,children:[e.jsx(c.Plus,{size:18}),e.jsx("span",{children:"New Chat"})]})}),e.jsx("button",{className:[t.default.inputButton,t.default.sidebarCloseButton].join(" "),onClick:()=>f?.(!0),"aria-label":"Close sidebar",children:e.jsx(c.X,{size:20})})]})}),e.jsx("div",{className:t.default.sidebarSearch,children:e.jsxs("div",{className:t.default.sidebarSearchWrapper,children:[e.jsx(c.Search,{size:16,className:t.default.sidebarSearchIcon}),e.jsx("input",{type:"search",className:[t.default.sidebarSearchInput,t.default.sidebarSearchInputWithIcon].join(" "),placeholder:"Search conversations...",value:h,onChange:B,"aria-label":"Search conversations"})]})}),e.jsx("div",{className:t.default.sidebarList,role:"list","aria-label":"Conversations",children:M?y.map(s=>{const l=v.get(s)??[];return l.length===0?null:e.jsxs("div",{children:[e.jsx("div",{className:t.default.sidebarGroupHeader,children:O[s]}),l.map(i=>e.jsxs("button",{className:[t.default.sidebarItem,i.id===r&&t.default.sidebarItemActive].filter(Boolean).join(" "),onClick:()=>k(i.id),role:"listitem","aria-selected":i.id===r,"aria-label":`Conversation: ${i.title}`,children:[e.jsx(c.MessageSquare,{size:18,className:t.default.sidebarItemIcon}),e.jsxs("div",{className:t.default.sidebarItemContent,children:[e.jsx("span",{className:t.default.sidebarItemTitle,children:i.title}),i.preview&&e.jsx("span",{className:t.default.sidebarItemPreview,children:i.preview})]}),e.jsx("span",{className:t.default.sidebarItemDate,children:P(i.updatedAt)}),u&&e.jsx("button",{className:t.default.sidebarItemDelete,onClick:q=>F(q,i.id),"aria-label":p===i.id?`Confirm delete ${i.title}`:`Delete ${i.title}`,children:p===i.id?e.jsx("span",{className:t.default.sidebarItemDeleteConfirm,children:"Delete?"}):e.jsx(c.Trash2,{size:16})})]},i.id))]},s)}):e.jsxs("div",{className:t.default.sidebarEmpty,children:[e.jsx(c.MessageSquare,{size:32,className:t.default.sidebarEmptyIcon}),e.jsx("p",{children:h?"No conversations found":"No conversations yet"})]})}),N&&e.jsx("div",{className:t.default.sidebarFooter,children:N})]})]})};S.displayName="ChatSidebar";exports.ChatSidebar=S;
|
package/dist/index145.mjs
CHANGED
|
@@ -1,111 +1,217 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsxs as l, Fragment as C, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as D, useRef as Y, useEffect as x, useMemo as S, useCallback as y } from "react";
|
|
3
|
+
import { Plus as A, X as U, Search as $, MessageSquare as T, Trash2 as q } from "lucide-react";
|
|
4
|
+
import e from "./index132.mjs";
|
|
5
|
+
const G = {
|
|
6
|
+
today: "Today",
|
|
7
|
+
yesterday: "Yesterday",
|
|
8
|
+
previous7: "Previous 7 days",
|
|
9
|
+
previous30: "Previous 30 days",
|
|
10
|
+
older: "Older"
|
|
11
|
+
}, N = [
|
|
12
|
+
"today",
|
|
13
|
+
"yesterday",
|
|
14
|
+
"previous7",
|
|
15
|
+
"previous30",
|
|
16
|
+
"older"
|
|
17
|
+
], B = (t) => {
|
|
18
|
+
const a = /* @__PURE__ */ new Date(), d = (new Date(
|
|
19
|
+
a.getFullYear(),
|
|
20
|
+
a.getMonth(),
|
|
21
|
+
a.getDate()
|
|
22
|
+
).getTime() - new Date(t.getFullYear(), t.getMonth(), t.getDate()).getTime()) / (1e3 * 60 * 60 * 24);
|
|
23
|
+
return d < 1 ? "today" : d < 2 ? "yesterday" : d < 7 ? "previous7" : d < 30 ? "previous30" : "older";
|
|
24
|
+
}, H = (t) => {
|
|
25
|
+
const a = B(t);
|
|
26
|
+
return a === "today" ? new Intl.DateTimeFormat("en-US", {
|
|
27
|
+
hour: "numeric",
|
|
28
|
+
minute: "2-digit"
|
|
29
|
+
}).format(t) : a === "yesterday" ? "Yesterday" : a === "previous7" ? new Intl.DateTimeFormat("en-US", {
|
|
30
|
+
weekday: "short"
|
|
31
|
+
}).format(t) : new Intl.DateTimeFormat("en-US", {
|
|
32
|
+
month: "short",
|
|
33
|
+
day: "numeric"
|
|
34
|
+
}).format(t);
|
|
35
|
+
}, Q = (t) => {
|
|
36
|
+
const a = /* @__PURE__ */ new Map();
|
|
37
|
+
return N.forEach((o) => a.set(o, [])), t.forEach((o) => {
|
|
38
|
+
const f = B(o.updatedAt);
|
|
39
|
+
a.get(f)?.push(o);
|
|
40
|
+
}), a;
|
|
41
|
+
}, R = ({
|
|
42
|
+
conversations: t = [],
|
|
43
|
+
activeConversationId: a,
|
|
44
|
+
onSelectConversation: o,
|
|
45
|
+
onNewConversation: f,
|
|
46
|
+
onDeleteConversation: d,
|
|
47
|
+
onSearch: g,
|
|
48
|
+
header: j,
|
|
49
|
+
footer: v,
|
|
50
|
+
collapsed: u = !1,
|
|
51
|
+
onCollapsedChange: m,
|
|
52
|
+
className: k,
|
|
53
|
+
...F
|
|
12
54
|
}) => {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
duration: R,
|
|
16
|
-
audioBlob: i,
|
|
17
|
-
error: s,
|
|
18
|
-
startRecording: h,
|
|
19
|
-
stopRecording: u,
|
|
20
|
-
cancelRecording: N,
|
|
21
|
-
reset: l,
|
|
22
|
-
isSupported: f
|
|
23
|
-
} = S({
|
|
24
|
-
maxDuration: m,
|
|
25
|
-
onRecordingComplete: d,
|
|
26
|
-
onError: (g) => console.error("Recording error:", g)
|
|
27
|
-
}), p = () => {
|
|
28
|
-
o ? u() : i ? (d?.(i), l()) : h();
|
|
29
|
-
}, B = () => {
|
|
30
|
-
N(), v?.();
|
|
31
|
-
};
|
|
32
|
-
return f ? s ? /* @__PURE__ */ c(
|
|
33
|
-
"div",
|
|
34
|
-
{
|
|
35
|
-
className: [e.voiceRecorder, a].filter(Boolean).join(" "),
|
|
36
|
-
...n,
|
|
37
|
-
children: [
|
|
38
|
-
/* @__PURE__ */ r("div", { className: e.voiceRecorderInfo, children: /* @__PURE__ */ r(
|
|
39
|
-
"span",
|
|
40
|
-
{
|
|
41
|
-
className: [
|
|
42
|
-
e.voiceRecorderLabel,
|
|
43
|
-
e.voiceRecorderError
|
|
44
|
-
].join(" "),
|
|
45
|
-
children: s
|
|
46
|
-
}
|
|
47
|
-
) }),
|
|
48
|
-
/* @__PURE__ */ r(
|
|
49
|
-
"button",
|
|
50
|
-
{
|
|
51
|
-
className: e.inputButton,
|
|
52
|
-
onClick: l,
|
|
53
|
-
"aria-label": "Try again",
|
|
54
|
-
children: /* @__PURE__ */ r(t, { size: 20 })
|
|
55
|
-
}
|
|
56
|
-
)
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
) : /* @__PURE__ */ c(
|
|
60
|
-
"div",
|
|
61
|
-
{
|
|
62
|
-
className: [e.voiceRecorder, a].filter(Boolean).join(" "),
|
|
63
|
-
...n,
|
|
64
|
-
children: [
|
|
65
|
-
/* @__PURE__ */ r(
|
|
66
|
-
"button",
|
|
67
|
-
{
|
|
68
|
-
className: [
|
|
69
|
-
e.voiceRecorderButton,
|
|
70
|
-
!o && !i && e.voiceRecorderButtonIdle
|
|
71
|
-
].filter(Boolean).join(" "),
|
|
72
|
-
onClick: p,
|
|
73
|
-
"aria-label": o ? "Stop recording" : i ? "Send recording" : "Start recording",
|
|
74
|
-
children: o ? /* @__PURE__ */ r(b, { size: 20 }) : i ? /* @__PURE__ */ r(C, { size: 20 }) : /* @__PURE__ */ r(j, { size: 20 })
|
|
75
|
-
}
|
|
76
|
-
),
|
|
77
|
-
/* @__PURE__ */ c("div", { className: e.voiceRecorderInfo, children: [
|
|
78
|
-
/* @__PURE__ */ r("span", { className: e.voiceRecorderDuration, children: k(R) }),
|
|
79
|
-
/* @__PURE__ */ r("span", { className: e.voiceRecorderLabel, children: o ? "Recording..." : i ? "Recording ready" : "Click to record" })
|
|
80
|
-
] }),
|
|
81
|
-
o && /* @__PURE__ */ c("div", { className: e.voiceRecorderWaveform, children: [
|
|
82
|
-
/* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
|
|
83
|
-
/* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
|
|
84
|
-
/* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
|
|
85
|
-
/* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
|
|
86
|
-
/* @__PURE__ */ r("div", { className: e.voiceRecorderBar })
|
|
87
|
-
] }),
|
|
88
|
-
(o || i) && /* @__PURE__ */ r("div", { className: e.voiceRecorderActions, children: /* @__PURE__ */ r(
|
|
89
|
-
"button",
|
|
90
|
-
{
|
|
91
|
-
className: e.inputButton,
|
|
92
|
-
onClick: B,
|
|
93
|
-
"aria-label": "Cancel recording",
|
|
94
|
-
children: /* @__PURE__ */ r(t, { size: 20 })
|
|
95
|
-
}
|
|
96
|
-
) })
|
|
97
|
-
]
|
|
98
|
-
}
|
|
99
|
-
) : /* @__PURE__ */ r(
|
|
100
|
-
"div",
|
|
101
|
-
{
|
|
102
|
-
className: [e.voiceRecorder, a].filter(Boolean).join(" "),
|
|
103
|
-
...n,
|
|
104
|
-
children: /* @__PURE__ */ r("div", { className: e.voiceRecorderInfo, children: /* @__PURE__ */ r("span", { className: e.voiceRecorderLabel, children: "Voice recording is not supported in this browser" }) })
|
|
105
|
-
}
|
|
55
|
+
const [h, z] = D(""), [p, b] = D(null), c = Y(
|
|
56
|
+
void 0
|
|
106
57
|
);
|
|
58
|
+
x(() => () => {
|
|
59
|
+
c.current && clearTimeout(c.current);
|
|
60
|
+
}, []);
|
|
61
|
+
const w = S(() => {
|
|
62
|
+
if (!h.trim()) return t;
|
|
63
|
+
const s = h.toLowerCase();
|
|
64
|
+
return t.filter(
|
|
65
|
+
(n) => n.title.toLowerCase().includes(s) || n.preview?.toLowerCase().includes(s)
|
|
66
|
+
);
|
|
67
|
+
}, [t, h]), I = S(() => Q(w), [w]), O = y(
|
|
68
|
+
(s) => {
|
|
69
|
+
const n = s.target.value;
|
|
70
|
+
z(n), g?.(n);
|
|
71
|
+
},
|
|
72
|
+
[g]
|
|
73
|
+
), P = y(
|
|
74
|
+
(s) => {
|
|
75
|
+
o?.(s), u && m && m(!0);
|
|
76
|
+
},
|
|
77
|
+
[o, u, m]
|
|
78
|
+
), E = y(
|
|
79
|
+
(s, n) => {
|
|
80
|
+
s.stopPropagation(), p === n ? (d?.(n), b(null), c.current && clearTimeout(c.current)) : (b(n), c.current && clearTimeout(c.current), c.current = setTimeout(() => {
|
|
81
|
+
b(null);
|
|
82
|
+
}, 3e3));
|
|
83
|
+
},
|
|
84
|
+
[p, d]
|
|
85
|
+
), L = N.some(
|
|
86
|
+
(s) => (I.get(s)?.length ?? 0) > 0
|
|
87
|
+
);
|
|
88
|
+
return /* @__PURE__ */ l(C, { children: [
|
|
89
|
+
!u && /* @__PURE__ */ r(
|
|
90
|
+
"div",
|
|
91
|
+
{
|
|
92
|
+
className: e.sidebarOverlay,
|
|
93
|
+
onClick: () => m?.(!0),
|
|
94
|
+
"aria-hidden": "true"
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
/* @__PURE__ */ l(
|
|
98
|
+
"aside",
|
|
99
|
+
{
|
|
100
|
+
className: [
|
|
101
|
+
e.sidebar,
|
|
102
|
+
u && e.sidebarCollapsed,
|
|
103
|
+
!u && e.sidebarOpen,
|
|
104
|
+
k
|
|
105
|
+
].filter(Boolean).join(" "),
|
|
106
|
+
...F,
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ r("div", { className: e.sidebarHeader, children: j || /* @__PURE__ */ l(C, { children: [
|
|
109
|
+
/* @__PURE__ */ r(
|
|
110
|
+
"button",
|
|
111
|
+
{
|
|
112
|
+
className: [
|
|
113
|
+
e.inputButton,
|
|
114
|
+
e.inputButtonPrimary,
|
|
115
|
+
e.sidebarNewButton
|
|
116
|
+
].filter(Boolean).join(" "),
|
|
117
|
+
onClick: f,
|
|
118
|
+
"aria-label": "New conversation",
|
|
119
|
+
children: /* @__PURE__ */ l("span", { className: e.sidebarNewButtonInner, children: [
|
|
120
|
+
/* @__PURE__ */ r(A, { size: 18 }),
|
|
121
|
+
/* @__PURE__ */ r("span", { children: "New Chat" })
|
|
122
|
+
] })
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
/* @__PURE__ */ r(
|
|
126
|
+
"button",
|
|
127
|
+
{
|
|
128
|
+
className: [e.inputButton, e.sidebarCloseButton].join(
|
|
129
|
+
" "
|
|
130
|
+
),
|
|
131
|
+
onClick: () => m?.(!0),
|
|
132
|
+
"aria-label": "Close sidebar",
|
|
133
|
+
children: /* @__PURE__ */ r(U, { size: 20 })
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
] }) }),
|
|
137
|
+
/* @__PURE__ */ r("div", { className: e.sidebarSearch, children: /* @__PURE__ */ l("div", { className: e.sidebarSearchWrapper, children: [
|
|
138
|
+
/* @__PURE__ */ r($, { size: 16, className: e.sidebarSearchIcon }),
|
|
139
|
+
/* @__PURE__ */ r(
|
|
140
|
+
"input",
|
|
141
|
+
{
|
|
142
|
+
type: "search",
|
|
143
|
+
className: [
|
|
144
|
+
e.sidebarSearchInput,
|
|
145
|
+
e.sidebarSearchInputWithIcon
|
|
146
|
+
].join(" "),
|
|
147
|
+
placeholder: "Search conversations...",
|
|
148
|
+
value: h,
|
|
149
|
+
onChange: O,
|
|
150
|
+
"aria-label": "Search conversations"
|
|
151
|
+
}
|
|
152
|
+
)
|
|
153
|
+
] }) }),
|
|
154
|
+
/* @__PURE__ */ r(
|
|
155
|
+
"div",
|
|
156
|
+
{
|
|
157
|
+
className: e.sidebarList,
|
|
158
|
+
role: "list",
|
|
159
|
+
"aria-label": "Conversations",
|
|
160
|
+
children: L ? N.map((s) => {
|
|
161
|
+
const n = I.get(s) ?? [];
|
|
162
|
+
return n.length === 0 ? null : /* @__PURE__ */ l("div", { children: [
|
|
163
|
+
/* @__PURE__ */ r("div", { className: e.sidebarGroupHeader, children: G[s] }),
|
|
164
|
+
n.map((i) => /* @__PURE__ */ l(
|
|
165
|
+
"button",
|
|
166
|
+
{
|
|
167
|
+
className: [
|
|
168
|
+
e.sidebarItem,
|
|
169
|
+
i.id === a && e.sidebarItemActive
|
|
170
|
+
].filter(Boolean).join(" "),
|
|
171
|
+
onClick: () => P(i.id),
|
|
172
|
+
role: "listitem",
|
|
173
|
+
"aria-selected": i.id === a,
|
|
174
|
+
"aria-label": `Conversation: ${i.title}`,
|
|
175
|
+
children: [
|
|
176
|
+
/* @__PURE__ */ r(
|
|
177
|
+
T,
|
|
178
|
+
{
|
|
179
|
+
size: 18,
|
|
180
|
+
className: e.sidebarItemIcon
|
|
181
|
+
}
|
|
182
|
+
),
|
|
183
|
+
/* @__PURE__ */ l("div", { className: e.sidebarItemContent, children: [
|
|
184
|
+
/* @__PURE__ */ r("span", { className: e.sidebarItemTitle, children: i.title }),
|
|
185
|
+
i.preview && /* @__PURE__ */ r("span", { className: e.sidebarItemPreview, children: i.preview })
|
|
186
|
+
] }),
|
|
187
|
+
/* @__PURE__ */ r("span", { className: e.sidebarItemDate, children: H(i.updatedAt) }),
|
|
188
|
+
d && /* @__PURE__ */ r(
|
|
189
|
+
"button",
|
|
190
|
+
{
|
|
191
|
+
className: e.sidebarItemDelete,
|
|
192
|
+
onClick: (M) => E(M, i.id),
|
|
193
|
+
"aria-label": p === i.id ? `Confirm delete ${i.title}` : `Delete ${i.title}`,
|
|
194
|
+
children: p === i.id ? /* @__PURE__ */ r("span", { className: e.sidebarItemDeleteConfirm, children: "Delete?" }) : /* @__PURE__ */ r(q, { size: 16 })
|
|
195
|
+
}
|
|
196
|
+
)
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
i.id
|
|
200
|
+
))
|
|
201
|
+
] }, s);
|
|
202
|
+
}) : /* @__PURE__ */ l("div", { className: e.sidebarEmpty, children: [
|
|
203
|
+
/* @__PURE__ */ r(T, { size: 32, className: e.sidebarEmptyIcon }),
|
|
204
|
+
/* @__PURE__ */ r("p", { children: h ? "No conversations found" : "No conversations yet" })
|
|
205
|
+
] })
|
|
206
|
+
}
|
|
207
|
+
),
|
|
208
|
+
v && /* @__PURE__ */ r("div", { className: e.sidebarFooter, children: v })
|
|
209
|
+
]
|
|
210
|
+
}
|
|
211
|
+
)
|
|
212
|
+
] });
|
|
107
213
|
};
|
|
108
|
-
|
|
214
|
+
R.displayName = "ChatSidebar";
|
|
109
215
|
export {
|
|
110
|
-
|
|
216
|
+
R as ChatSidebar
|
|
111
217
|
};
|
package/dist/index146.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const x="_avatar_zbymr_8",_="_image_zbymr_30",t="_initials_zbymr_38",n="_icon_zbymr_48",s="_xs_zbymr_64",i="_sm_zbymr_75",l="_md_zbymr_86",o="_lg_zbymr_97",a="_xl_zbymr_108",r="_xxl_zbymr_119",e="_profile_zbymr_130",c="_xxxl_zbymr_141",m="_xxxxl_zbymr_152",y="_xxxxxl_zbymr_163",b="_interactive_zbymr_178",z="_statusIndicator_zbymr_200",u="_online_zbymr_212",f="_offline_zbymr_216",d="_away_zbymr_220",g="_busy_zbymr_224",v={avatar:x,image:_,initials:t,icon:n,xs:s,sm:i,md:l,lg:o,xl:a,xxl:r,profile:e,xxxl:c,xxxxl:m,xxxxxl:y,interactive:b,statusIndicator:z,online:u,offline:f,away:d,busy:g};exports.avatar=x;exports.away=d;exports.busy=g;exports.default=v;exports.icon=n;exports.image=_;exports.initials=t;exports.interactive=b;exports.lg=o;exports.md=l;exports.offline=f;exports.online=u;exports.profile=e;exports.sm=i;exports.statusIndicator=z;exports.xl=a;exports.xs=s;exports.xxl=r;exports.xxxl=c;exports.xxxxl=m;exports.xxxxxl=y;
|
package/dist/index146.mjs
CHANGED
|
@@ -1,114 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
console.warn(
|
|
23
|
-
`File ${t.name} exceeds max size of ${g(r)}`
|
|
24
|
-
);
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
const j = s.includes("*/*"), w = s.flatMap((n) => (n.endsWith("/*"), n));
|
|
28
|
-
if (!(j || w.some((n) => {
|
|
29
|
-
if (n.endsWith("/*")) {
|
|
30
|
-
const x = n.split("/")[0];
|
|
31
|
-
return t.type.startsWith(`${x}/`);
|
|
32
|
-
}
|
|
33
|
-
return t.type === n || t.name.endsWith(n);
|
|
34
|
-
}))) {
|
|
35
|
-
console.warn(`File ${t.name} type not accepted`);
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
o.push(t);
|
|
39
|
-
}), o.length > 0 && h?.(o);
|
|
40
|
-
},
|
|
41
|
-
[s, r, h]
|
|
42
|
-
), C = a((e) => {
|
|
43
|
-
e.preventDefault(), e.stopPropagation(), f(!0);
|
|
44
|
-
}, []), k = a((e) => {
|
|
45
|
-
e.preventDefault(), e.stopPropagation(), f(!1);
|
|
46
|
-
}, []), F = a(
|
|
47
|
-
(e) => {
|
|
48
|
-
e.preventDefault(), e.stopPropagation(), f(!1);
|
|
49
|
-
const { files: o } = e.dataTransfer;
|
|
50
|
-
c(o);
|
|
51
|
-
},
|
|
52
|
-
[c]
|
|
53
|
-
), N = a(
|
|
54
|
-
(e) => {
|
|
55
|
-
c(e.target.files), i.current && (i.current.value = "");
|
|
56
|
-
},
|
|
57
|
-
[c]
|
|
58
|
-
), u = a(() => {
|
|
59
|
-
i.current?.click();
|
|
60
|
-
}, []), b = a(
|
|
61
|
-
(e) => {
|
|
62
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), u());
|
|
63
|
-
},
|
|
64
|
-
[u]
|
|
65
|
-
);
|
|
66
|
-
return /* @__PURE__ */ d(
|
|
67
|
-
"div",
|
|
68
|
-
{
|
|
69
|
-
className: [
|
|
70
|
-
l.fileUpload,
|
|
71
|
-
U && l.fileUploadDragging,
|
|
72
|
-
v
|
|
73
|
-
].filter(Boolean).join(" "),
|
|
74
|
-
onDragOver: C,
|
|
75
|
-
onDragLeave: k,
|
|
76
|
-
onDrop: F,
|
|
77
|
-
onClick: u,
|
|
78
|
-
onKeyDown: b,
|
|
79
|
-
role: "button",
|
|
80
|
-
tabIndex: 0,
|
|
81
|
-
"aria-label": "Upload files",
|
|
82
|
-
...y,
|
|
83
|
-
children: [
|
|
84
|
-
/* @__PURE__ */ p(
|
|
85
|
-
"input",
|
|
86
|
-
{
|
|
87
|
-
ref: i,
|
|
88
|
-
type: "file",
|
|
89
|
-
accept: s.join(","),
|
|
90
|
-
multiple: m,
|
|
91
|
-
onChange: N,
|
|
92
|
-
style: { display: "none" },
|
|
93
|
-
"aria-hidden": "true"
|
|
94
|
-
}
|
|
95
|
-
),
|
|
96
|
-
D || /* @__PURE__ */ d(A, { children: [
|
|
97
|
-
/* @__PURE__ */ p("div", { className: l.fileUploadIcon, children: /* @__PURE__ */ p($, { size: 32 }) }),
|
|
98
|
-
/* @__PURE__ */ d("div", { className: l.fileUploadText, children: [
|
|
99
|
-
/* @__PURE__ */ p("strong", { children: "Click to upload" }),
|
|
100
|
-
" or drag and drop"
|
|
101
|
-
] }),
|
|
102
|
-
/* @__PURE__ */ d("div", { className: l.fileUploadHint, children: [
|
|
103
|
-
"Max file size: ",
|
|
104
|
-
g(r)
|
|
105
|
-
] })
|
|
106
|
-
] })
|
|
107
|
-
]
|
|
108
|
-
}
|
|
109
|
-
);
|
|
1
|
+
const _ = "_avatar_zbymr_8", x = "_image_zbymr_30", t = "_initials_zbymr_38", n = "_icon_zbymr_48", s = "_xs_zbymr_64", o = "_sm_zbymr_75", i = "_md_zbymr_86", r = "_lg_zbymr_97", a = "_xl_zbymr_108", l = "_xxl_zbymr_119", c = "_profile_zbymr_130", m = "_xxxl_zbymr_141", y = "_xxxxl_zbymr_152", b = "_xxxxxl_zbymr_163", e = "_interactive_zbymr_178", z = "_statusIndicator_zbymr_200", f = "_online_zbymr_212", d = "_offline_zbymr_216", u = "_away_zbymr_220", g = "_busy_zbymr_224", v = {
|
|
2
|
+
avatar: _,
|
|
3
|
+
image: x,
|
|
4
|
+
initials: t,
|
|
5
|
+
icon: n,
|
|
6
|
+
xs: s,
|
|
7
|
+
sm: o,
|
|
8
|
+
md: i,
|
|
9
|
+
lg: r,
|
|
10
|
+
xl: a,
|
|
11
|
+
xxl: l,
|
|
12
|
+
profile: c,
|
|
13
|
+
xxxl: m,
|
|
14
|
+
xxxxl: y,
|
|
15
|
+
xxxxxl: b,
|
|
16
|
+
interactive: e,
|
|
17
|
+
statusIndicator: z,
|
|
18
|
+
online: f,
|
|
19
|
+
offline: d,
|
|
20
|
+
away: u,
|
|
21
|
+
busy: g
|
|
110
22
|
};
|
|
111
|
-
P.displayName = "ChatFileUpload";
|
|
112
23
|
export {
|
|
113
|
-
|
|
24
|
+
_ as avatar,
|
|
25
|
+
u as away,
|
|
26
|
+
g as busy,
|
|
27
|
+
v as default,
|
|
28
|
+
n as icon,
|
|
29
|
+
x as image,
|
|
30
|
+
t as initials,
|
|
31
|
+
e as interactive,
|
|
32
|
+
r as lg,
|
|
33
|
+
i as md,
|
|
34
|
+
d as offline,
|
|
35
|
+
f as online,
|
|
36
|
+
c as profile,
|
|
37
|
+
o as sm,
|
|
38
|
+
z as statusIndicator,
|
|
39
|
+
a as xl,
|
|
40
|
+
s as xs,
|
|
41
|
+
l as xxl,
|
|
42
|
+
m as xxxl,
|
|
43
|
+
y as xxxxl,
|
|
44
|
+
b as xxxxxl
|
|
114
45
|
};
|
package/dist/index147.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n="_link_1ch8i_9",i="_subtle_1ch8i_38",c="_brand_1ch8i_46",o="_sm_1ch8i_58",_="_md_1ch8i_63",t="_lg_1ch8i_68",e="_underline_1ch8i_77",r="_icon_1ch8i_92",l="_iconRight_1ch8i_124",s="_iconExternal_1ch8i_129",d="_iconArrow_1ch8i_134",h="_iconArrowLeft_1ch8i_139",u={link:n,default:"_default_1ch8i_30",subtle:i,brand:c,sm:o,md:_,lg:t,underline:e,icon:r,iconRight:l,iconExternal:s,iconArrow:d,iconArrowLeft:h};exports.brand=c;exports.default=u;exports.icon=r;exports.iconArrow=d;exports.iconArrowLeft=h;exports.iconExternal=s;exports.iconRight=l;exports.lg=t;exports.link=n;exports.md=_;exports.sm=o;exports.subtle=i;exports.underline=e;
|