@orion-ds/react 4.2.8 → 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/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.module.css +1 -1
- package/dist/components/Card/Card.stories.d.ts.map +1 -1
- package/dist/components/Card/Card.types.d.ts +2 -0
- package/dist/components/Card/Card.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/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/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/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 -33
- package/dist/index101.cjs +1 -1
- package/dist/index101.mjs +16 -24
- package/dist/index102.cjs +1 -1
- package/dist/index102.mjs +28 -26
- package/dist/index103.cjs +1 -1
- package/dist/index103.mjs +30 -40
- package/dist/index104.cjs +1 -1
- package/dist/index104.mjs +40 -53
- package/dist/index105.cjs +1 -1
- package/dist/index105.mjs +36 -62
- package/dist/index106.cjs +1 -1
- package/dist/index106.mjs +53 -29
- package/dist/index107.cjs +1 -1
- package/dist/index107.mjs +46 -20
- package/dist/index108.cjs +1 -1
- package/dist/index108.mjs +14 -18
- package/dist/index109.cjs +1 -1
- package/dist/index109.mjs +28 -30
- package/dist/index11.cjs +1 -1
- package/dist/index11.mjs +1 -1
- package/dist/index110.cjs +1 -1
- package/dist/index110.mjs +65 -30
- package/dist/index111.cjs +1 -1
- package/dist/index111.mjs +24 -46
- package/dist/index112.cjs +1 -1
- package/dist/index112.mjs +35 -52
- package/dist/index113.cjs +1 -1
- package/dist/index113.mjs +30 -28
- package/dist/index114.cjs +1 -1
- package/dist/index114.mjs +32 -44
- package/dist/index115.cjs +1 -1
- package/dist/index115.mjs +57 -12
- package/dist/index116.cjs +1 -1
- package/dist/index116.mjs +18 -30
- package/dist/index117.cjs +1 -1
- package/dist/index117.mjs +12 -32
- package/dist/index118.cjs +1 -1
- package/dist/index118.mjs +64 -33
- package/dist/index119.cjs +1 -1
- package/dist/index119.mjs +28 -30
- package/dist/index12.cjs +1 -1
- package/dist/index12.mjs +1 -1
- package/dist/index120.cjs +1 -1
- package/dist/index120.mjs +32 -35
- package/dist/index121.cjs +1 -1
- package/dist/index121.mjs +76 -36
- package/dist/index122.cjs +1 -1
- package/dist/index122.mjs +33 -20
- package/dist/index123.cjs +1 -1
- package/dist/index123.mjs +40 -14
- package/dist/index124.cjs +1 -1
- package/dist/index124.mjs +53 -27
- package/dist/index125.cjs +1 -1
- package/dist/index125.mjs +42 -18
- package/dist/index126.cjs +1 -1
- package/dist/index126.mjs +19 -37
- package/dist/index127.cjs +1 -1
- package/dist/index127.mjs +37 -29
- package/dist/index128.cjs +1 -1
- package/dist/index128.mjs +28 -24
- package/dist/index129.cjs +1 -1
- package/dist/index129.mjs +36 -28
- package/dist/index13.cjs +1 -1
- package/dist/index13.mjs +1 -1
- package/dist/index130.cjs +1 -1
- package/dist/index130.mjs +18 -28
- package/dist/index131.cjs +1 -1
- package/dist/index131.mjs +18 -28
- package/dist/index132.cjs +1 -1
- package/dist/index132.mjs +234 -42
- package/dist/index133.cjs +1 -1
- package/dist/index133.mjs +34 -53
- package/dist/index134.cjs +1 -1
- package/dist/index134.mjs +44 -37
- package/dist/index135.cjs +1 -1
- package/dist/index135.mjs +170 -50
- package/dist/index136.cjs +1 -1
- package/dist/index136.mjs +186 -19
- package/dist/index137.cjs +1 -1
- package/dist/index137.mjs +27 -153
- package/dist/index138.cjs +1 -1
- package/dist/index138.mjs +88 -216
- package/dist/index139.cjs +1 -1
- package/dist/index139.mjs +53 -29
- package/dist/index14.cjs +1 -1
- package/dist/index14.mjs +1 -1
- package/dist/index140.cjs +1 -1
- package/dist/index140.mjs +66 -42
- package/dist/index141.cjs +1 -1
- package/dist/index141.mjs +124 -44
- package/dist/index142.cjs +1 -1
- package/dist/index142.mjs +108 -16
- package/dist/index143.cjs +1 -1
- package/dist/index143.mjs +111 -46
- package/dist/index144.cjs +1 -1
- package/dist/index144.mjs +122 -64
- package/dist/index145.cjs +1 -1
- package/dist/index145.mjs +214 -30
- package/dist/index146.cjs +1 -1
- package/dist/index146.mjs +41 -39
- package/dist/index147.cjs +1 -1
- package/dist/index147.mjs +27 -32
- package/dist/index149.cjs +1 -1
- package/dist/index149.mjs +46 -62
- package/dist/index15.cjs +1 -1
- package/dist/index15.mjs +1 -1
- package/dist/index150.cjs +1 -1
- package/dist/index150.mjs +24 -42
- package/dist/index151.cjs +1 -1
- package/dist/index151.mjs +24 -24
- package/dist/index152.cjs +1 -1
- package/dist/index152.mjs +20 -40
- package/dist/index153.cjs +1 -1
- package/dist/index153.mjs +24 -18
- package/dist/index154.cjs +1 -1
- package/dist/index154.mjs +28 -76
- package/dist/index155.cjs +1 -1
- package/dist/index155.mjs +39 -66
- package/dist/index156.cjs +1 -1
- package/dist/index156.mjs +22 -65
- package/dist/index157.cjs +1 -1
- package/dist/index157.mjs +63 -39
- package/dist/index158.cjs +1 -1
- package/dist/index158.mjs +12 -234
- package/dist/index159.cjs +1 -1
- package/dist/index159.mjs +34 -34
- package/dist/index16.cjs +1 -1
- package/dist/index16.mjs +73 -69
- package/dist/index160.cjs +1 -1
- package/dist/index160.mjs +21 -44
- package/dist/index161.cjs +1 -1
- package/dist/index161.mjs +42 -170
- package/dist/index162.cjs +1 -1
- package/dist/index162.mjs +21 -186
- package/dist/index163.cjs +1 -1
- package/dist/index163.mjs +29 -29
- package/dist/index164.cjs +1 -1
- package/dist/index164.mjs +44 -90
- package/dist/index165.cjs +1 -1
- package/dist/index165.mjs +63 -53
- package/dist/index166.cjs +1 -1
- package/dist/index166.mjs +28 -66
- package/dist/index167.cjs +1 -1
- package/dist/index167.mjs +20 -124
- package/dist/index168.cjs +1 -1
- package/dist/index168.mjs +67 -108
- package/dist/index169.cjs +1 -1
- package/dist/index169.mjs +30 -111
- package/dist/index17.cjs +1 -1
- package/dist/index17.mjs +1 -1
- package/dist/index170.cjs +1 -1
- package/dist/index170.mjs +24 -122
- package/dist/index171.cjs +1 -1
- package/dist/index171.mjs +44 -214
- package/dist/index172.cjs +1 -1
- package/dist/index172.mjs +46 -106
- package/dist/index173.cjs +1 -1
- package/dist/index173.mjs +28 -22
- package/dist/index174.cjs +1 -1
- package/dist/index174.mjs +106 -18
- package/dist/index175.cjs +1 -1
- package/dist/index175.mjs +52 -64
- package/dist/index176.cjs +1 -1
- package/dist/index176.mjs +45 -18
- package/dist/index177.cjs +1 -1
- package/dist/index177.mjs +36 -55
- package/dist/index178.cjs +1 -1
- package/dist/index178.mjs +55 -12
- package/dist/index179.cjs +1 -1
- package/dist/index179.mjs +50 -38
- package/dist/index18.cjs +1 -1
- package/dist/index18.mjs +1 -1
- package/dist/index180.cjs +1 -1
- package/dist/index180.mjs +29 -25
- package/dist/index181.cjs +1 -1
- package/dist/index181.mjs +52 -45
- 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 +1 -1
- 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/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/index61.cjs +1 -1
- package/dist/index61.mjs +1 -1
- package/dist/index62.cjs +1 -1
- package/dist/index62.mjs +42 -39
- 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/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 +1 -1
- 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/index82.cjs +1 -1
- package/dist/index82.mjs +2 -2
- package/dist/index9.cjs +1 -1
- package/dist/index9.mjs +1 -1
- package/dist/index94.mjs +3 -1
- package/dist/index97.cjs +1 -1
- package/dist/index97.mjs +154 -24
- package/dist/index98.cjs +1 -1
- package/dist/index98.mjs +218 -46
- package/dist/index99.cjs +1 -1
- package/dist/index99.mjs +30 -55
- package/dist/styles.css +6 -5
- package/dist/theme.css +1 -0
- package/dist/tokens/brands.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index76.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("react"),L=require("react-dom"),o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("react"),L=require("react-dom"),o=require("./index149.cjs");let M=0;const N=()=>`toast-${++M}`,m=r.createContext(null),y=()=>{const e=r.useContext(m);if(!e)throw new Error("useToast must be used within a ToastProvider");return e},B=({toast:e,onDismiss:u})=>{const[l,d]=r.useState(!1),a=r.useRef(null),c=r.useCallback(()=>{d(!0),setTimeout(()=>{u(e.id),e.onDismiss?.()},200)},[e,u]);r.useEffect(()=>{if(e.duration&&e.duration>0)return a.current=setTimeout(c,e.duration),()=>{a.current&&clearTimeout(a.current)}},[e.duration,c]);const i=()=>{a.current&&clearTimeout(a.current)},h=()=>{e.duration&&e.duration>0&&(a.current=setTimeout(c,e.duration))},f=[o.default.toast,o.default[e.variant||"info"],l&&o.default.exiting].filter(Boolean).join(" "),k=()=>{switch(e.variant){case"success":return t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:t.jsx("path",{d:"M16.667 5L7.5 14.167 3.333 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});case"error":return t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[t.jsx("circle",{cx:"10",cy:"10",r:"7.5",stroke:"currentColor",strokeWidth:"1.5"}),t.jsx("path",{d:"M10 6v5M10 13.5v.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]});case"warning":return t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[t.jsx("path",{d:"M8.57 3.216L1.538 15.143a1.667 1.667 0 001.429 2.524h14.066a1.667 1.667 0 001.429-2.524L11.43 3.216a1.667 1.667 0 00-2.858 0z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M10 7.5v3.333M10 14.167h.008",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});default:return t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[t.jsx("circle",{cx:"10",cy:"10",r:"7.5",stroke:"currentColor",strokeWidth:"1.5"}),t.jsx("path",{d:"M10 9v4.5M10 6.5v.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}};return t.jsxs("div",{className:f,role:"alert","aria-live":"polite",onMouseEnter:i,onMouseLeave:h,children:[t.jsx("span",{className:o.default.icon,"aria-hidden":"true",children:k()}),t.jsxs("div",{className:o.default.content,children:[e.title&&t.jsx("div",{className:o.default.title,children:e.title}),t.jsx("div",{className:o.default.message,children:e.message})]}),e.action&&t.jsx("button",{type:"button",className:o.default.action,onClick:()=>{e.action?.onClick(),c()},children:e.action.label}),e.dismissible!==!1&&t.jsx("button",{type:"button",className:o.default.closeButton,onClick:c,"aria-label":"Dismiss",children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:t.jsx("path",{d:"M12 4L4 12M4 4l8 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})},j=({children:e,position:u="bottom-right",maxToasts:l=5,defaultDuration:d=5e3})=>{const[a,c]=r.useState([]),i=r.useCallback(s=>{const n=N(),v={id:n,duration:d,dismissible:!0,variant:"info",...s};return c(T=>{const x=[...T,v];return x.length>l?x.slice(-l):x}),n},[d,l]),h=r.useCallback(s=>{c(n=>n.filter(v=>v.id!==s))},[]),f=r.useCallback(()=>{c([])},[]),k=r.useCallback((s,n)=>i({message:s,variant:"info",...n}),[i]),g=r.useCallback((s,n)=>i({message:s,variant:"success",...n}),[i]),C=r.useCallback((s,n)=>i({message:s,variant:"warning",...n}),[i]),b=r.useCallback((s,n)=>i({message:s,variant:"error",...n}),[i]),p={toast:i,info:k,success:g,warning:C,error:b,dismiss:h,dismissAll:f},w=[o.default.container,o.default[u]].filter(Boolean).join(" ");return t.jsxs(m.Provider,{value:p,children:[e,a.length>0&&L.createPortal(t.jsx("div",{className:w,"aria-label":"Notifications",children:a.map(s=>t.jsx(B,{toast:s,onDismiss:h},s.id))}),document.body)]})};j.displayName="ToastProvider";exports.ToastProvider=j;exports.useToast=y;
|
package/dist/index76.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as g, useCallback as a, useContext as N, createContext as j, useRef as B, useEffect as W } from "react";
|
|
3
3
|
import { createPortal as y } from "react-dom";
|
|
4
|
-
import o from "./
|
|
4
|
+
import o from "./index149.mjs";
|
|
5
5
|
let E = 0;
|
|
6
6
|
const P = () => `toast-${++E}`, w = j(null), $ = () => {
|
|
7
7
|
const e = N(w);
|
package/dist/index77.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react/jsx-runtime"),l=require("react"),t=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react/jsx-runtime"),l=require("react"),t=require("./index108.cjs"),u=l.forwardRef(({pressed:o,defaultPressed:c=!1,onPressedChange:a,variant:d="default",size:i="md",disabled:f,className:g,children:m,onClick:n,...b},T)=>{const[j,p]=l.useState(c),s=o!==void 0,e=s?o:j,y=l.useCallback(x=>{const r=!e;s||p(r),a?.(r),n?.(x)},[e,s,a,n]),q=[t.default.toggle,t.default[d],t.default[i],e&&t.default.pressed,g].filter(Boolean).join(" ");return N.jsx("button",{ref:T,type:"button",className:q,"aria-pressed":e,disabled:f,onClick:y,...b,children:m})});u.displayName="Toggle";exports.Toggle=u;
|
package/dist/index77.mjs
CHANGED
package/dist/index78.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react/jsx-runtime"),n=require("react"),a=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react/jsx-runtime"),n=require("react"),a=require("./index101.cjs"),j=n.createContext(null);function q(){const t=n.useContext(j);if(!t)throw new Error("ToggleGroup.Item must be used within a ToggleGroup");return t}const A=n.forwardRef(({value:t,disabled:c,className:y,children:g,...d},f)=>{const{type:I,value:b,onItemToggle:x,variant:h,size:s,disabled:p}=q(),m=b.includes(t),T=c||p,u=[a.default.item,m&&a.default.itemPressed,y].filter(Boolean).join(" ");return G.jsx("button",{ref:f,type:"button",className:u,"aria-pressed":m,disabled:T,onClick:()=>x(t),...d,children:g})});A.displayName="ToggleGroup.Item";const R=n.forwardRef(({type:t,value:c,defaultValue:y,onValueChange:g,variant:d="default",size:f="md",disabled:I=!1,className:b,children:x,...h},s)=>{const p=e=>e===void 0?[]:Array.isArray(e)?e:[e],[m,T]=n.useState(p(y)),u=c!==void 0,i=u?p(c):m,k=n.useRef(null),C=n.useCallback(e=>{let o;i.includes(e)?o=i.filter(r=>r!==e):t==="multiple"?o=[...i,e]:o=[e],u||T(o),g?.(t==="single"?o[0]??"":o)},[i,t,u,g]),v=n.useCallback(e=>{const o=k.current;if(!o)return;const r=Array.from(o.querySelectorAll("button:not(:disabled)")),w=r.indexOf(e.target);if(w===-1)return;let l;e.key==="ArrowRight"||e.key==="ArrowDown"?l=(w+1)%r.length:e.key==="ArrowLeft"||e.key==="ArrowUp"?l=(w-1+r.length)%r.length:e.key==="Home"?l=0:e.key==="End"&&(l=r.length-1),l!==void 0&&(e.preventDefault(),r[l]?.focus())},[]),D=[a.default.group,a.default[d],a.default[f],b].filter(Boolean).join(" "),N={type:t,value:i,onItemToggle:C,variant:d,size:f,disabled:I};return G.jsx(j.Provider,{value:N,children:G.jsx("div",{ref:e=>{k.current=e,typeof s=="function"?s(e):s&&(s.current=e)},role:"group",className:D,onKeyDown:v,...h,children:x})})});R.displayName="ToggleGroup";const P=Object.assign(R,{Item:A});exports.ToggleGroup=P;
|
package/dist/index78.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as w } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as A, useState as _, useRef as z, useCallback as k, createContext as B, useContext as E } from "react";
|
|
3
|
-
import u from "./
|
|
3
|
+
import u from "./index101.mjs";
|
|
4
4
|
const C = B(null);
|
|
5
5
|
function K() {
|
|
6
6
|
const t = E(C);
|
package/dist/index79.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),t=require("react"),o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),t=require("react"),o=require("./index116.cjs"),r=({content:u,placement:a="top",delay:c=200,disabled:s=!1,children:l,className:f})=>{const[d,e]=t.useState(!1),n=t.useRef(void 0),m=()=>{s||(n.current=setTimeout(()=>{e(!0)},c))},p=()=>{n.current&&clearTimeout(n.current),e(!1)},v=()=>{s||e(!0)},T=()=>{e(!1)},j=[o.default.tooltip,o.default[a],f].filter(Boolean).join(" "),h=t.isValidElement(l)?t.cloneElement(l,{onMouseEnter:m,onMouseLeave:p,onFocus:v,onBlur:T}):l;return i.jsxs("div",{className:o.default.container,children:[h,d&&!s&&i.jsxs("div",{className:j,role:"tooltip",children:[u,i.jsx("div",{className:o.default.arrow})]})]})};r.displayName="Tooltip";exports.Tooltip=r;
|
package/dist/index79.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as l, jsx as E } from "react/jsx-runtime";
|
|
2
2
|
import { useState as M, useRef as N, isValidElement as T, cloneElement as j } from "react";
|
|
3
|
-
import o from "./
|
|
3
|
+
import o from "./index116.mjs";
|
|
4
4
|
const x = ({
|
|
5
5
|
content: r,
|
|
6
6
|
placement: i = "top",
|
package/dist/index8.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),l=require("lucide-react"),s=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),l=require("lucide-react"),s=require("./index111.cjs"),b={success:e.jsx(l.CheckCircle,{size:20}),error:e.jsx(l.XCircle,{size:20}),warning:e.jsx(l.AlertTriangle,{size:20}),info:e.jsx(l.Info,{size:20}),inverse:e.jsx(l.Info,{size:20})},u=({variant:t="info",title:a,dismissible:d=!1,onClose:f,icon:i,className:n,children:o,...j})=>{const[m,x]=r.useState(!0),h=()=>{x(!1),f?.()},N=r.useMemo(()=>[s.default.alert,s.default[t],n].filter(Boolean).join(" "),[t,n]),c=r.useMemo(()=>i!==void 0?i:b[t],[i,t]);return m?e.jsxs("div",{className:N,role:"alert",...j,children:[c&&e.jsx("div",{className:s.default.icon,"aria-hidden":"true",children:c}),e.jsxs("div",{className:s.default.content,children:[a&&e.jsx("div",{className:s.default.title,children:a}),o&&e.jsx("div",{className:s.default.message,children:o})]}),d&&e.jsx("button",{type:"button",className:s.default.closeButton,onClick:h,"aria-label":"Close alert",children:e.jsx(l.X,{size:18,"aria-hidden":"true"})})]}):null};u.displayName="Alert";exports.Alert=u;
|
package/dist/index8.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as z, useMemo as c } from "react";
|
|
3
3
|
import { X as b, Info as d, AlertTriangle as v, XCircle as y, CheckCircle as A } from "lucide-react";
|
|
4
|
-
import s from "./
|
|
4
|
+
import s from "./index111.mjs";
|
|
5
5
|
const I = {
|
|
6
6
|
success: /* @__PURE__ */ e(A, { size: 20 }),
|
|
7
7
|
error: /* @__PURE__ */ e(y, { size: 20 }),
|
package/dist/index80.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),c=require("react"),S=require("lucide-react"),e=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),c=require("react"),S=require("lucide-react"),e=require("./index118.cjs"),L={online:"var(--text-success)",away:"var(--text-warning)",busy:"var(--text-error)",offline:"var(--text-tertiary)"},x=c.forwardRef(({user:n,sections:f,open:o,onOpenChange:v,trigger:m,align:g="end",placement:N="bottom",showHeader:b=!0,compact:h=!1,fullWidth:C=!1,className:w,...y},I)=>{const[k,E]=c.useState(!1),u=c.useRef(null),i=c.useRef(null),l=o!==void 0?o:k,d=t=>{o===void 0&&E(t),v?.(t)};c.useEffect(()=>{const t=r=>{u.current&&!u.current.contains(r.target)&&i.current&&!i.current.contains(r.target)&&d(!1)};if(l)return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[l]),c.useEffect(()=>{const t=r=>{r.key==="Escape"&&l&&(d(!1),i.current?.focus())};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[l]);const R=t=>{t.disabled||(t.onClick?.(),d(!1))},p=t=>t.split(" ").map(r=>r[0]).join("").toUpperCase().slice(0,2),M=[e.default.userMenu,C&&e.default.userMenuFullWidth,w].filter(Boolean).join(" "),B=[e.default.trigger,h&&e.default.triggerCompact].filter(Boolean).join(" "),O=[e.default.dropdown,l&&e.default.dropdownOpen,g==="start"&&e.default.dropdownStart,N==="top"&&e.default.dropdownTop].filter(Boolean).join(" ");return a.jsxs("div",{ref:I,className:M,...y,children:[m?a.jsx("div",{onClick:()=>d(!l),children:m}):a.jsxs("button",{ref:i,type:"button",className:B,onClick:()=>d(!l),"aria-expanded":l,"aria-haspopup":"true",children:[a.jsxs("div",{className:e.default.avatar,children:[n.avatar?a.jsx("img",{src:n.avatar,alt:n.name,className:e.default.avatarImage}):a.jsx("span",{className:e.default.avatarInitials,children:n.initials||p(n.name)}),n.status&&a.jsx("span",{className:e.default.statusIndicator,style:{backgroundColor:L[n.status]}})]}),!h&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:e.default.triggerInfo,children:[a.jsx("span",{className:e.default.triggerName,children:n.name}),n.role&&a.jsx("span",{className:e.default.triggerRole,children:n.role})]}),a.jsx(S.ChevronDown,{size:16,className:`${e.default.chevron} ${l?e.default.chevronOpen:""}`})]})]}),a.jsxs("div",{ref:u,className:O,role:"menu",children:[b&&a.jsxs("div",{className:e.default.header,children:[a.jsx("div",{className:e.default.headerAvatar,children:n.avatar?a.jsx("img",{src:n.avatar,alt:n.name,className:e.default.avatarImage}):a.jsx("span",{className:e.default.avatarInitials,children:n.initials||p(n.name)})}),a.jsxs("div",{className:e.default.headerInfo,children:[a.jsx("span",{className:e.default.headerName,children:n.name}),n.email&&a.jsx("span",{className:e.default.headerEmail,children:n.email})]})]}),f.map((t,r)=>a.jsxs("div",{className:e.default.section,children:[t.label&&a.jsx("div",{className:e.default.sectionLabel,children:t.label}),t.items.map(s=>{const j=[e.default.item,s.danger&&e.default.itemDanger,s.disabled&&e.default.itemDisabled].filter(Boolean).join(" ");return s.href&&!s.disabled?a.jsxs("a",{href:s.href,className:j,role:"menuitem",onClick:()=>d(!1),children:[s.icon&&a.jsx("span",{className:e.default.itemIcon,children:s.icon}),a.jsx("span",{children:s.label}),s.badge!==void 0&&a.jsx("span",{className:e.default.itemBadge,children:s.badge}),s.shortcut&&a.jsx("span",{className:e.default.itemShortcut,children:s.shortcut})]},s.id):a.jsxs("button",{type:"button",className:j,role:"menuitem",disabled:s.disabled,onClick:()=>R(s),children:[s.icon&&a.jsx("span",{className:e.default.itemIcon,children:s.icon}),a.jsx("span",{children:s.label}),s.badge!==void 0&&a.jsx("span",{className:e.default.itemBadge,children:s.badge}),s.shortcut&&a.jsx("span",{className:e.default.itemShortcut,children:s.shortcut})]},s.id)}),r<f.length-1&&a.jsx("div",{className:e.default.divider})]},t.id))]})]})});x.displayName="UserMenu";exports.UserMenu=x;
|
package/dist/index80.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as l, jsx as n, Fragment as S } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as D, useState as U, useRef as N, useEffect as g } from "react";
|
|
3
3
|
import { ChevronDown as F } from "lucide-react";
|
|
4
|
-
import e from "./
|
|
4
|
+
import e from "./index118.mjs";
|
|
5
5
|
const $ = {
|
|
6
6
|
online: "var(--text-success)",
|
|
7
7
|
away: "var(--text-warning)",
|
package/dist/index81.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("react"),i=require("lucide-react"),s=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("react"),i=require("lucide-react"),s=require("./index114.cjs"),n=require("./index10.cjs"),B=require("./index11.cjs"),r=require("./index14.cjs"),k=require("./index33.cjs"),q=require("./index58.cjs"),l=c.forwardRef(({currentOrg:t,organizations:o,onSettings:d,onParticipants:u,onCreateOrganization:m,onOrgChange:j,fullWidth:v=!0,className:x,...h},f)=>{const[p,N]=c.useState(!1),g=e.jsxs("button",{className:s.default.trigger,children:[e.jsx(n.Avatar,{size:"xs",icon:e.jsx(i.Building2,{size:16})}),e.jsx("span",{className:s.default.triggerName,children:t.name}),e.jsx(i.ChevronDown,{size:16,className:`${s.default.chevron} ${p?s.default.chevronOpen:""}`})]}),z=e.jsxs("div",{className:s.default.content,children:[e.jsxs("div",{className:s.default.activeWorkspace,children:[e.jsx(n.Avatar,{size:"lg",icon:e.jsx(i.Building2,{size:20})}),e.jsx(B.Badge,{variant:"secondary",size:"sm",children:t.role}),e.jsxs("div",{children:[e.jsx("div",{className:s.default.orgName,children:t.name}),e.jsxs("div",{className:s.default.orgMeta,children:[t.memberCount," participantes"]})]})]}),e.jsxs("div",{className:s.default.actionButtons,children:[e.jsx(r.Button,{variant:"secondary",size:"sm",icon:e.jsx(i.Settings,{size:16}),onClick:d,children:"Configuración"}),e.jsx(r.Button,{variant:"secondary",size:"sm",icon:e.jsx(i.Users,{size:16}),onClick:u,children:"Participantes"})]}),e.jsx("div",{className:s.default.dividerWrapper,children:e.jsx(k.Divider,{})}),e.jsx("div",{className:s.default.sectionLabel,children:"Otras organizaciones"}),e.jsx("div",{className:s.default.orgList,children:o.map(a=>e.jsxs("div",{className:s.default.orgItem,onClick:()=>j?.(a.name),children:[e.jsx(n.Avatar,{size:"xs",initials:a.name.slice(0,2).toUpperCase()}),e.jsxs("div",{children:[e.jsx("div",{className:s.default.orgItemName,children:a.name}),e.jsx("div",{className:s.default.orgItemRole,children:a.role})]})]},a.name))}),e.jsx(r.Button,{variant:"ghost",size:"sm",icon:e.jsx(i.Plus,{size:16}),fullWidth:!0,onClick:m,children:"Nueva organización"})]});return e.jsx("div",{ref:f,className:[x].filter(Boolean).join(" ")||void 0,...h,children:e.jsx(q.Popover,{trigger:g,content:z,onOpenChange:N,placement:"bottom-start",showArrow:!1,fullWidth:v})})});l.displayName="WorkspaceSwitcher";exports.WorkspaceSwitcher=l;
|
package/dist/index81.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as k, useState as w } from "react";
|
|
3
3
|
import { Building2 as c, ChevronDown as x, Settings as y, Users as B, Plus as W } from "lucide-react";
|
|
4
|
-
import i from "./
|
|
4
|
+
import i from "./index114.mjs";
|
|
5
5
|
import { Avatar as n } from "./index10.mjs";
|
|
6
6
|
import { Badge as b } from "./index11.mjs";
|
|
7
7
|
import { Button as o } from "./index14.mjs";
|
|
@@ -42,8 +42,26 @@ const j = k(
|
|
|
42
42
|
] })
|
|
43
43
|
] }),
|
|
44
44
|
/* @__PURE__ */ s("div", { className: i.actionButtons, children: [
|
|
45
|
-
/* @__PURE__ */ e(
|
|
46
|
-
|
|
45
|
+
/* @__PURE__ */ e(
|
|
46
|
+
o,
|
|
47
|
+
{
|
|
48
|
+
variant: "secondary",
|
|
49
|
+
size: "sm",
|
|
50
|
+
icon: /* @__PURE__ */ e(y, { size: 16 }),
|
|
51
|
+
onClick: l,
|
|
52
|
+
children: "Configuración"
|
|
53
|
+
}
|
|
54
|
+
),
|
|
55
|
+
/* @__PURE__ */ e(
|
|
56
|
+
o,
|
|
57
|
+
{
|
|
58
|
+
variant: "secondary",
|
|
59
|
+
size: "sm",
|
|
60
|
+
icon: /* @__PURE__ */ e(B, { size: 16 }),
|
|
61
|
+
onClick: m,
|
|
62
|
+
children: "Participantes"
|
|
63
|
+
}
|
|
64
|
+
)
|
|
47
65
|
] }),
|
|
48
66
|
/* @__PURE__ */ e("div", { className: i.dividerWrapper, children: /* @__PURE__ */ e(I, {}) }),
|
|
49
67
|
/* @__PURE__ */ e("div", { className: i.sectionLabel, children: "Otras organizaciones" }),
|
package/dist/index82.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index83.cjs"),c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index83.cjs"),c=require("./index97.cjs"),u=require("./index98.cjs");function i(t){const r=t.split(".");let n=s.primitives;for(const e of r)if(n=n[e],n===void 0)throw new Error(`Token path "${t}" not found`);return n}function f(t,r){const n=r.split(".");let e=c.themes[t].semantic;for(const o of n)if(e=e[o],e===void 0)throw new Error(`Semantic token path "${r}" not found in ${t} theme`);if(typeof e=="string"&&e.startsWith("{")&&e.endsWith("}")){const o=e.slice(1,-1);return i(o)}return e}function a(t){return u.brands[t]}exports.getBrand=a;exports.getSemanticToken=f;exports.getToken=i;
|
package/dist/index82.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { primitives as i } from "./index83.mjs";
|
|
2
|
-
import { themes as s } from "./
|
|
3
|
-
import { brands as f } from "./
|
|
2
|
+
import { themes as s } from "./index97.mjs";
|
|
3
|
+
import { brands as f } from "./index98.mjs";
|
|
4
4
|
function c(o) {
|
|
5
5
|
const e = o.split(".");
|
|
6
6
|
let n = i;
|
package/dist/index9.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),n=require("react"),I=require("react-dom"),d=require("lucide-react"),o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),n=require("react"),I=require("react-dom"),d=require("lucide-react"),o=require("./index167.cjs"),g=n.createContext(null);function m(){return n.useContext(g)}const b={info:l.jsx(d.Info,{size:24}),warning:l.jsx(d.AlertTriangle,{size:24}),danger:l.jsx(d.AlertCircle,{size:24})},r=({open:e,onClose:t,closeOnBackdrop:i=!1,closeOnEscape:a=!1,children:c,className:x})=>{const u=n.useId(),f=n.useId();if(n.useEffect(()=>{if(!e||!a)return;const s=p=>{p.key==="Escape"&&t()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e,a,t]),n.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),!e)return null;const N=[o.default.dialog,x].filter(Boolean).join(" "),v=s=>{i&&s.target===s.currentTarget&&t()};return I.createPortal(l.jsx(g.Provider,{value:{titleId:u,descriptionId:f},children:l.jsx("div",{className:o.default.backdrop,onClick:v,role:"alertdialog","aria-modal":"true","aria-labelledby":u,"aria-describedby":f,children:l.jsx("div",{className:N,children:c})})}),document.body)},A=({variant:e="info",icon:t,className:i})=>{const a={info:o.default.iconInfo,warning:o.default.iconWarning,danger:o.default.iconDanger}[e],c=[o.default.icon,a,i].filter(Boolean).join(" ");return l.jsx("div",{className:c,"aria-hidden":"true",children:t||b[e]})},D=({className:e,children:t})=>{const i=m(),a=[o.default.title,e].filter(Boolean).join(" ");return l.jsx("h2",{id:i?.titleId,className:a,children:t})},y=({className:e,children:t})=>{const i=m(),a=[o.default.description,e].filter(Boolean).join(" ");return l.jsx("p",{id:i?.descriptionId,className:a,children:t})},j=({className:e,children:t})=>{const i=[o.default.actions,e].filter(Boolean).join(" ");return l.jsx("div",{className:i,children:t})};r.Icon=A;r.Title=D;r.Description=y;r.Actions=j;r.displayName="AlertDialog";A.displayName="AlertDialog.Icon";D.displayName="AlertDialog.Title";y.displayName="AlertDialog.Description";j.displayName="AlertDialog.Actions";exports.AlertDialog=r;
|
package/dist/index9.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { useId as m, useEffect as f, createContext as h, useContext as x } from "react";
|
|
3
3
|
import { createPortal as C } from "react-dom";
|
|
4
4
|
import { AlertCircle as k, AlertTriangle as w, Info as j } from "lucide-react";
|
|
5
|
-
import n from "./
|
|
5
|
+
import n from "./index167.mjs";
|
|
6
6
|
const u = h(null);
|
|
7
7
|
function g() {
|
|
8
8
|
return x(u);
|
package/dist/index94.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { useState as f, useCallback as m, useEffect as c } from "react";
|
|
2
|
-
const p = (r) => r === "light" || r === "dark", k = (r) => ["orion", "red", "deepblue", "orange", "ember", "lemon"].includes(
|
|
2
|
+
const p = (r) => r === "light" || r === "dark", k = (r) => ["orion", "red", "deepblue", "orange", "ember", "lemon"].includes(
|
|
3
|
+
r
|
|
4
|
+
);
|
|
3
5
|
function w(r = {}) {
|
|
4
6
|
const {
|
|
5
7
|
defaultTheme: g = "light",
|
package/dist/index97.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r={theme:"light",semantic:{surface:{base:"{color.neutral.0}",subtle:"{color.neutral.50}",layer:"{color.neutral.100}",primary:"{color.neutral.100}",secondary:"{color.neutral.50}",glass:"color-mix(in srgb, {color.neutral.0} 70%, transparent)",sunken:"color-mix(in srgb, {color.neutral.0} 40%, transparent)",overlay:"color-mix(in srgb, {color.neutral.1000} 50%, transparent)"},text:{primary:"{color.neutral.900}",secondary:"{color.neutral.500}",tertiary:"{color.neutral.400}",inverse:"{color.neutral.0}",brand:"{color.brand.500}","on-brand":{primary:"{color.neutral.0}",secondary:"color-mix(in srgb, {color.neutral.0} 90%, transparent)",tertiary:"color-mix(in srgb, {color.neutral.0} 70%, transparent)"}},border:{subtle:"{color.neutral.200}",strong:"{color.neutral.300}",interactive:"{color.brand.500}"},interactive:{primary:{default:"{color.brand.500}",hover:"{color.brand.700}",text:"{color.neutral.0}"},secondary:{default:"{color.neutral.100}",hover:"{color.neutral.200}",text:"{color.neutral.900}"},ghost:{hover:"color-mix(in srgb, {color.neutral.1000} 5%, transparent)"}},status:{error:"{color.error.500}",success:"{color.success.500}",warning:"{color.warning.500}",info:"{color.info.500}"},soft:{brand:"color-mix(in srgb, {color.brand.500} 10%, transparent)","brand-hover":"color-mix(in srgb, {color.brand.500} 20%, transparent)",success:"color-mix(in srgb, {color.success.500} 10%, transparent)",error:"color-mix(in srgb, {color.error.500} 10%, transparent)",warning:"color-mix(in srgb, {color.warning.500} 10%, transparent)",info:"color-mix(in srgb, {color.info.500} 10%, transparent)"},focus:{ring:"0 0 0 3px color-mix(in srgb, {color.brand.500} 40%, transparent)"},gradient:{start:"{color.brand.400}",end:"{color.brand.600}"},chart:{1:"{color.brand.500}",2:"{color.brand.300}",3:"{color.brand.700}",4:"{color.success.500}",5:"{color.warning.500}"}}},o={theme:"dark",semantic:{surface:{base:"{color.neutral.900}",subtle:"{color.neutral.950}",layer:"{color.neutral.900}",primary:"{color.neutral.900}",secondary:"{color.neutral.900}",glass:"color-mix(in srgb, {color.neutral.950} 60%, transparent)",sunken:"color-mix(in srgb, {color.neutral.950} 40%, transparent)",overlay:"color-mix(in srgb, {color.neutral.1000} 70%, transparent)"},text:{primary:"{color.neutral.50}",secondary:"{color.neutral.400}",tertiary:"{color.neutral.600}",inverse:"{color.neutral.950}",brand:"{color.brand.400}","on-brand":{primary:"{color.neutral.0}",secondary:"color-mix(in srgb, {color.neutral.0} 90%, transparent)",tertiary:"color-mix(in srgb, {color.neutral.0} 70%, transparent)"}},border:{subtle:"{color.neutral.800}",strong:"{color.neutral.700}",interactive:"{color.brand.500}"},interactive:{primary:{default:"{color.brand.500}",hover:"{color.brand.400}",text:"{color.neutral.900}"},secondary:{default:"{color.neutral.800}",hover:"{color.neutral.700}",text:"{color.neutral.50}"},ghost:{hover:"color-mix(in srgb, {color.neutral.0} 10%, transparent)"}},status:{error:"{color.error.500}",success:"{color.success.500}",warning:"{color.warning.500}",info:"{color.info.500}"},soft:{brand:"color-mix(in srgb, {color.brand.500} 15%, transparent)","brand-hover":"color-mix(in srgb, {color.brand.500} 25%, transparent)",success:"color-mix(in srgb, {color.success.500} 15%, transparent)",error:"color-mix(in srgb, {color.error.500} 15%, transparent)",warning:"color-mix(in srgb, {color.warning.500} 15%, transparent)",info:"color-mix(in srgb, {color.info.500} 15%, transparent)"},focus:{ring:"0 0 0 3px color-mix(in srgb, {color.brand.500} 50%, transparent)"},gradient:{start:"{color.brand.400}",end:"{color.brand.600}"},chart:{1:"{color.brand.400}",2:"{color.brand.200}",3:"{color.brand.600}",4:"{color.success.500}",5:"{color.warning.500}"}}},n={light:r,dark:o};exports.darkTheme=o;exports.lightTheme=r;exports.themes=n;
|
package/dist/index97.mjs
CHANGED
|
@@ -1,27 +1,157 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
const r = {
|
|
2
|
+
theme: "light",
|
|
3
|
+
semantic: {
|
|
4
|
+
surface: {
|
|
5
|
+
base: "{color.neutral.0}",
|
|
6
|
+
subtle: "{color.neutral.50}",
|
|
7
|
+
layer: "{color.neutral.100}",
|
|
8
|
+
primary: "{color.neutral.100}",
|
|
9
|
+
secondary: "{color.neutral.50}",
|
|
10
|
+
glass: "color-mix(in srgb, {color.neutral.0} 70%, transparent)",
|
|
11
|
+
sunken: "color-mix(in srgb, {color.neutral.0} 40%, transparent)",
|
|
12
|
+
overlay: "color-mix(in srgb, {color.neutral.1000} 50%, transparent)"
|
|
13
|
+
},
|
|
14
|
+
text: {
|
|
15
|
+
primary: "{color.neutral.900}",
|
|
16
|
+
secondary: "{color.neutral.500}",
|
|
17
|
+
tertiary: "{color.neutral.400}",
|
|
18
|
+
inverse: "{color.neutral.0}",
|
|
19
|
+
brand: "{color.brand.500}",
|
|
20
|
+
"on-brand": {
|
|
21
|
+
primary: "{color.neutral.0}",
|
|
22
|
+
secondary: "color-mix(in srgb, {color.neutral.0} 90%, transparent)",
|
|
23
|
+
tertiary: "color-mix(in srgb, {color.neutral.0} 70%, transparent)"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
border: {
|
|
27
|
+
subtle: "{color.neutral.200}",
|
|
28
|
+
strong: "{color.neutral.300}",
|
|
29
|
+
interactive: "{color.brand.500}"
|
|
30
|
+
},
|
|
31
|
+
interactive: {
|
|
32
|
+
primary: {
|
|
33
|
+
default: "{color.brand.500}",
|
|
34
|
+
hover: "{color.brand.700}",
|
|
35
|
+
text: "{color.neutral.0}"
|
|
36
|
+
},
|
|
37
|
+
secondary: {
|
|
38
|
+
default: "{color.neutral.100}",
|
|
39
|
+
hover: "{color.neutral.200}",
|
|
40
|
+
text: "{color.neutral.900}"
|
|
41
|
+
},
|
|
42
|
+
ghost: {
|
|
43
|
+
hover: "color-mix(in srgb, {color.neutral.1000} 5%, transparent)"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
status: {
|
|
47
|
+
error: "{color.error.500}",
|
|
48
|
+
success: "{color.success.500}",
|
|
49
|
+
warning: "{color.warning.500}",
|
|
50
|
+
info: "{color.info.500}"
|
|
51
|
+
},
|
|
52
|
+
soft: {
|
|
53
|
+
brand: "color-mix(in srgb, {color.brand.500} 10%, transparent)",
|
|
54
|
+
"brand-hover": "color-mix(in srgb, {color.brand.500} 20%, transparent)",
|
|
55
|
+
success: "color-mix(in srgb, {color.success.500} 10%, transparent)",
|
|
56
|
+
error: "color-mix(in srgb, {color.error.500} 10%, transparent)",
|
|
57
|
+
warning: "color-mix(in srgb, {color.warning.500} 10%, transparent)",
|
|
58
|
+
info: "color-mix(in srgb, {color.info.500} 10%, transparent)"
|
|
59
|
+
},
|
|
60
|
+
focus: {
|
|
61
|
+
ring: "0 0 0 3px color-mix(in srgb, {color.brand.500} 40%, transparent)"
|
|
62
|
+
},
|
|
63
|
+
gradient: {
|
|
64
|
+
start: "{color.brand.400}",
|
|
65
|
+
end: "{color.brand.600}"
|
|
66
|
+
},
|
|
67
|
+
chart: {
|
|
68
|
+
1: "{color.brand.500}",
|
|
69
|
+
2: "{color.brand.300}",
|
|
70
|
+
3: "{color.brand.700}",
|
|
71
|
+
4: "{color.success.500}",
|
|
72
|
+
5: "{color.warning.500}"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}, o = {
|
|
76
|
+
theme: "dark",
|
|
77
|
+
semantic: {
|
|
78
|
+
surface: {
|
|
79
|
+
base: "{color.neutral.900}",
|
|
80
|
+
subtle: "{color.neutral.950}",
|
|
81
|
+
layer: "{color.neutral.900}",
|
|
82
|
+
primary: "{color.neutral.900}",
|
|
83
|
+
secondary: "{color.neutral.900}",
|
|
84
|
+
glass: "color-mix(in srgb, {color.neutral.950} 60%, transparent)",
|
|
85
|
+
sunken: "color-mix(in srgb, {color.neutral.950} 40%, transparent)",
|
|
86
|
+
overlay: "color-mix(in srgb, {color.neutral.1000} 70%, transparent)"
|
|
87
|
+
},
|
|
88
|
+
text: {
|
|
89
|
+
primary: "{color.neutral.50}",
|
|
90
|
+
secondary: "{color.neutral.400}",
|
|
91
|
+
tertiary: "{color.neutral.600}",
|
|
92
|
+
inverse: "{color.neutral.950}",
|
|
93
|
+
brand: "{color.brand.400}",
|
|
94
|
+
"on-brand": {
|
|
95
|
+
primary: "{color.neutral.0}",
|
|
96
|
+
secondary: "color-mix(in srgb, {color.neutral.0} 90%, transparent)",
|
|
97
|
+
tertiary: "color-mix(in srgb, {color.neutral.0} 70%, transparent)"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
border: {
|
|
101
|
+
subtle: "{color.neutral.800}",
|
|
102
|
+
strong: "{color.neutral.700}",
|
|
103
|
+
interactive: "{color.brand.500}"
|
|
104
|
+
},
|
|
105
|
+
interactive: {
|
|
106
|
+
primary: {
|
|
107
|
+
default: "{color.brand.500}",
|
|
108
|
+
hover: "{color.brand.400}",
|
|
109
|
+
text: "{color.neutral.900}"
|
|
110
|
+
},
|
|
111
|
+
secondary: {
|
|
112
|
+
default: "{color.neutral.800}",
|
|
113
|
+
hover: "{color.neutral.700}",
|
|
114
|
+
text: "{color.neutral.50}"
|
|
115
|
+
},
|
|
116
|
+
ghost: {
|
|
117
|
+
hover: "color-mix(in srgb, {color.neutral.0} 10%, transparent)"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
status: {
|
|
121
|
+
error: "{color.error.500}",
|
|
122
|
+
success: "{color.success.500}",
|
|
123
|
+
warning: "{color.warning.500}",
|
|
124
|
+
info: "{color.info.500}"
|
|
125
|
+
},
|
|
126
|
+
soft: {
|
|
127
|
+
brand: "color-mix(in srgb, {color.brand.500} 15%, transparent)",
|
|
128
|
+
"brand-hover": "color-mix(in srgb, {color.brand.500} 25%, transparent)",
|
|
129
|
+
success: "color-mix(in srgb, {color.success.500} 15%, transparent)",
|
|
130
|
+
error: "color-mix(in srgb, {color.error.500} 15%, transparent)",
|
|
131
|
+
warning: "color-mix(in srgb, {color.warning.500} 15%, transparent)",
|
|
132
|
+
info: "color-mix(in srgb, {color.info.500} 15%, transparent)"
|
|
133
|
+
},
|
|
134
|
+
focus: {
|
|
135
|
+
ring: "0 0 0 3px color-mix(in srgb, {color.brand.500} 50%, transparent)"
|
|
136
|
+
},
|
|
137
|
+
gradient: {
|
|
138
|
+
start: "{color.brand.400}",
|
|
139
|
+
end: "{color.brand.600}"
|
|
140
|
+
},
|
|
141
|
+
chart: {
|
|
142
|
+
1: "{color.brand.400}",
|
|
143
|
+
2: "{color.brand.200}",
|
|
144
|
+
3: "{color.brand.600}",
|
|
145
|
+
4: "{color.success.500}",
|
|
146
|
+
5: "{color.warning.500}"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}, n = {
|
|
150
|
+
light: r,
|
|
151
|
+
dark: o
|
|
13
152
|
};
|
|
14
153
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
o as description,
|
|
19
|
-
a as draggable,
|
|
20
|
-
_ as dragging,
|
|
21
|
-
n as headerContent,
|
|
22
|
-
c as headerRight,
|
|
23
|
-
i as iconAvatar,
|
|
24
|
-
g as multiBadge,
|
|
25
|
-
r as timestamp,
|
|
26
|
-
d as title
|
|
154
|
+
o as darkTheme,
|
|
155
|
+
r as lightTheme,
|
|
156
|
+
n as themes
|
|
27
157
|
};
|
package/dist/index98.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r={orion:{name:"Orion",description:"Default brand - Orion Blue, professional rounded corners",accent:{primary:"{color.brand.orion.500}",light:"{color.brand.orion.100}",dark:"{color.brand.orion.900}"},typography:{primary:"Libre Baskerville",secondary:"Inter",mono:"JetBrains Mono"},geometry:{radiusControl:"{radius.md}",radiusContainer:"{radius.lg}",buttonStyle:"pill"},semantic:{light:{interactivePrimary:"{color.brand.orion.500}",interactivePrimaryHover:"{color.brand.orion.700}",interactivePrimaryText:"{color.neutral.0}"},dark:{interactivePrimary:"{color.brand.orion.500}",interactivePrimaryHover:"{color.brand.orion.400}",interactivePrimaryText:"{color.neutral.0}"}},usage:{html:'<html data-theme="dark">',css:"/* No additional CSS needed - default */",attribute:null}},deepblue:{name:"Deepblue",description:"Deepblue brand - Deep Blue with Work Sans typography",accent:{primary:"{color.brand.deepblue.500}",light:"{color.brand.deepblue.100}",dark:"{color.brand.deepblue.800}"},typography:{primary:"Work Sans",secondary:"Work Sans",mono:"JetBrains Mono"},geometry:{radiusControl:"{radius.md}",radiusContainer:"{radius.lg}",buttonStyle:"rounded"},semantic:{light:{interactivePrimary:"{color.brand.deepblue.500}",interactivePrimaryHover:"{color.brand.deepblue.700}",interactivePrimaryText:"{color.neutral.0}"},dark:{interactivePrimary:"{color.brand.deepblue.500}",interactivePrimaryHover:"{color.brand.deepblue.400}",interactivePrimaryText:"{color.neutral.900}"}},usage:{html:'<html data-theme="dark" data-brand="deepblue">',css:'/* Included in theme.css via [data-brand="deepblue"] */',attribute:"deepblue"}},red:{name:"Red",description:"Red brand - Red with Poppins typography and pill buttons",accent:{primary:"{color.brand.red.500}",light:"{color.brand.red.100}",dark:"{color.brand.red.900}"},typography:{primary:"Poppins",secondary:"Inter",mono:"JetBrains Mono"},geometry:{radiusControl:"var(--radius-lg)",radiusContainer:"{radius.lg}",buttonStyle:"pill"},semantic:{light:{interactivePrimary:"{color.brand.red.500}",interactivePrimaryHover:"{color.brand.red.600}",interactivePrimaryText:"{color.neutral.0}"},dark:{interactivePrimary:"{color.brand.red.500}",interactivePrimaryHover:"{color.brand.red.400}",interactivePrimaryText:"{color.neutral.0}"}},usage:{html:'<html data-theme="dark" data-brand="red">',css:'/* Included in theme.css via [data-brand="red"] */',attribute:"red"}},orange:{name:"Orange",description:"Orange brand - Red-Orange with pill buttons",accent:{primary:"{color.brand.orange.500}",light:"{color.brand.orange.100}",dark:"{color.brand.orange.900}"},typography:{primary:"DM Sans",secondary:"Inter",mono:"JetBrains Mono"},geometry:{radiusControl:"{radius.full}",radiusContainer:"{radius.lg}",buttonStyle:"pill"},semantic:{light:{interactivePrimary:"{color.brand.orange.500}",interactivePrimaryHover:"{color.brand.orange.700}",interactivePrimaryText:"{color.neutral.0}"},dark:{interactivePrimary:"{color.brand.orange.500}",interactivePrimaryHover:"{color.brand.orange.400}",interactivePrimaryText:"{color.neutral.0}"}},usage:{html:'<html data-theme="dark" data-brand="orange">',css:'/* Included in theme.css via [data-brand="orange"] */',attribute:"orange"}},ember:{name:"Ember",description:"Ember brand — Orange accent with dark neutral buttons and rectangular geometry",accent:{primary:"{color.brand.orange.500}",light:"{color.brand.orange.100}",dark:"{color.brand.orange.900}"},typography:{primary:"DM Sans",secondary:"Inter",mono:"JetBrains Mono"},geometry:{radiusControl:"{radius.md}",radiusContainer:"{radius.xl}",buttonStyle:"rounded"},semantic:{light:{interactivePrimary:"{color.neutral.900}",interactivePrimaryHover:"{color.neutral.700}",interactivePrimaryText:"{color.neutral.0}"},dark:{interactivePrimary:"{color.neutral.100}",interactivePrimaryHover:"{color.neutral.0}",interactivePrimaryText:"{color.neutral.900}"}},usage:{html:'<html data-theme="light|dark" data-brand="ember">',css:'/* Included in theme.css via [data-brand="ember"] */',attribute:"ember"}},lemon:{name:"Lemon",description:"Lemon brand - Bright lime green with Anton typography and highly rounded design",accent:{primary:"{color.brand.lemon.600}",light:"{color.brand.lemon.100}",dark:"{color.brand.lemon.900}"},typography:{primary:"Anton",secondary:"Work Sans",mono:"JetBrains Mono"},geometry:{radiusControl:"{radius.lg}",radiusContainer:"{radius.lg}",buttonStyle:"pill"},semantic:{light:{interactivePrimary:"{color.brand.lemon.700}",interactivePrimaryHover:"{color.brand.lemon.800}",interactivePrimaryText:"{color.neutral.0}"},dark:{interactivePrimary:"{color.brand.lemon.500}",interactivePrimaryHover:"{color.brand.lemon.600}",interactivePrimaryText:"{color.neutral.900}"}},usage:{html:'<html data-theme="dark" data-brand="lemon">',css:'/* Included in theme.css via [data-brand="lemon"] */',attribute:"lemon"}}};exports.brands=r;
|