@synertech/ui 0.53.0 → 0.54.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.
@@ -1 +1 @@
1
- "use client";import{useEffect as z,useState as p}from"react";import{cn as n}from"../../lib/cn.js";import{useUILabels as B}from"../../lib/i18n.js";import{useLatest as V}from"../dropdown/hooks/useLatest.js";import{jsx as e,jsxs as k}from"react/jsx-runtime";var j={"top-left":"fixed z-[70] top-4 left-4","top-center":"fixed z-[70] top-4 left-1/2 -translate-x-1/2","top-right":"fixed z-[70] top-4 right-4","bottom-left":"fixed z-[70] bottom-4 left-4","bottom-center":"fixed z-[70] bottom-4 left-1/2 -translate-x-1/2","bottom-right":"fixed z-[70] bottom-4 right-4"};function Z({className:t}){return e("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e("path",{d:"M9 12L11 14L15 10M21 12C21 16.97 16.97 21 12 21C7.03 21 3 16.97 3 12C3 7.03 7.03 3 12 3C16.97 3 21 7.03 21 12Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function E({className:t}){return e("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e("path",{d:"M12 8V12M12 16H12.01M21 12C21 16.97 16.97 21 12 21C7.03 21 3 16.97 3 12C3 7.03 7.03 3 12 3C16.97 3 21 7.03 21 12Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function F({className:t}){return e("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e("path",{d:"M12 9V13M12 17H12.01M10.29 3.86L1.82 18C1.65 18.3 1.55 18.65 1.55 18.99C1.55 19.34 1.64 19.69 1.81 19.99C1.99 20.29 2.24 20.55 2.54 20.72C2.84 20.901 3.18 20.99 3.53 21H20.47C20.82 20.99 21.16 20.901 21.46 20.72C21.76 20.55 22.01 20.29 22.19 19.99C22.36 19.69 22.449 19.34 22.448 18.99C22.447 18.65 22.35 18.3 22.18 18L13.71 3.86C13.53 3.57 13.28 3.32 12.98 3.15C12.68 2.99 12.34 2.9 12 2.9C11.66 2.9 11.32 2.99 11.02 3.15C10.72 3.32 10.47 3.57 10.29 3.86Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function w({className:t}){return e("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e("path",{d:"M13 16H12V12H11M12 8H12.01M21 12C21 16.97 16.97 21 12 21C7.03 21 3 16.97 3 12C3 7.03 7.03 3 12 3C16.97 3 21 7.03 21 12Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function O({className:t}){return e("svg",{className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e("path",{d:"M4 4L12 12M12 4L4 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}var S={success:Z,error:E,warning:F,info:w,default:w},U={success:{solid:"bg-green-700 text-white border-green-700",outlined:"bg-white text-green-700 border-green-600 dark:bg-gray-900 dark:text-green-400",soft:"bg-green-50 text-green-700 border-green-200 dark:bg-green-900/20 dark:text-green-400 dark:border-green-800"},error:{solid:"bg-red-600 text-white border-red-600",outlined:"bg-white text-red-700 border-red-600 dark:bg-gray-900 dark:text-red-400",soft:"bg-red-50 text-red-700 border-red-200 dark:bg-red-900/20 dark:text-red-400 dark:border-red-800"},warning:{solid:"bg-yellow-500 text-gray-900 border-yellow-500",outlined:"bg-white text-yellow-700 border-yellow-500 dark:bg-gray-900 dark:text-yellow-400",soft:"bg-yellow-50 text-yellow-700 border-yellow-200 dark:bg-yellow-900/20 dark:text-yellow-400 dark:border-yellow-800"},info:{solid:"bg-blue-600 text-white border-blue-600",outlined:"bg-white text-blue-700 border-blue-600 dark:bg-gray-900 dark:text-blue-400",soft:"bg-blue-50 text-blue-700 border-blue-200 dark:bg-blue-900/20 dark:text-blue-400 dark:border-blue-800"},default:{solid:"bg-gray-700 text-white border-gray-700",outlined:"bg-white text-gray-700 border-gray-300 dark:bg-gray-900 dark:text-gray-300",soft:"bg-gray-50 text-gray-700 border-gray-200 dark:bg-gray-800 dark:text-gray-300 dark:border-gray-700"}},q={success:"text-green-700 dark:text-green-400",error:"text-red-600 dark:text-red-400",warning:"text-yellow-700 dark:text-yellow-400",info:"text-blue-600 dark:text-blue-400",default:"text-gray-600 dark:text-gray-400"};function A({children:t,title:a,description:h,type:s="default",variant:i="soft",icon:y,action:d,onClose:l,closable:C=!0,closeLabel:v,position:c,duration:o,className:N,onMouseEnter:T,onMouseLeave:L,onFocus:M,onBlur:R,...I}){let W=B(),H=S[s],P=e(H,{className:"w-5 h-5"}),g=t??h,[u,b]=p(!1),[f,m]=p(!1),x=V(l);return z(()=>{if(!o||o<=0||u||f)return;let r=setTimeout(()=>x.current?.(),o);return()=>clearTimeout(r)},[o,u,f,x]),k("div",{role:"alert",className:n("flex items-start gap-3 p-4 rounded-lg border shadow-lg min-w-[320px] max-w-md","animate-in slide-in-from-top-2 fade-in duration-300",U[s][i],c&&j[c],N),...I,onMouseEnter:r=>{T?.(r),b(!0)},onMouseLeave:r=>{L?.(r),b(!1)},onFocus:r=>{M?.(r),m(!0)},onBlur:r=>{R?.(r),m(!1)},children:[e("div",{className:n("flex-shrink-0 mt-0.5",i!=="solid"&&q[s]),children:y??P}),k("div",{className:"flex-1 min-w-0",children:[a&&e("div",{className:"font-semibold text-sm mb-1",children:a}),g&&e("div",{className:"text-sm",children:g}),d&&e("div",{className:"mt-3",children:d})]}),C&&e("button",{type:"button",onClick:l,className:n("flex-shrink-0 rounded-md p-1 transition-colors hover:bg-black/10 dark:hover:bg-white/10","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-current"),"aria-label":v??W.toastClose,children:e(O,{className:"w-4 h-4"})})]})}A.displayName="Toast";export{A as Toast};
1
+ "use client";import{useEffect as z,useState as p}from"react";import{cn as n}from"../../lib/cn.js";import{useUILabels as B}from"../../lib/i18n.js";import{useLatest as V}from"../dropdown/hooks/useLatest.js";import{jsx as e,jsxs as k}from"react/jsx-runtime";var j={"top-left":"fixed z-[70] top-4 left-4","top-center":"fixed z-[70] top-4 left-1/2 -translate-x-1/2","top-right":"fixed z-[70] top-4 right-4","bottom-left":"fixed z-[70] bottom-4 left-4","bottom-center":"fixed z-[70] bottom-4 left-1/2 -translate-x-1/2","bottom-right":"fixed z-[70] bottom-4 right-4"};function Z({className:t}){return e("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e("path",{d:"M9 12L11 14L15 10M21 12C21 16.97 16.97 21 12 21C7.03 21 3 16.97 3 12C3 7.03 7.03 3 12 3C16.97 3 21 7.03 21 12Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function E({className:t}){return e("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e("path",{d:"M12 8V12M12 16H12.01M21 12C21 16.97 16.97 21 12 21C7.03 21 3 16.97 3 12C3 7.03 7.03 3 12 3C16.97 3 21 7.03 21 12Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function F({className:t}){return e("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e("path",{d:"M12 9V13M12 17H12.01M10.29 3.86L1.82 18C1.65 18.3 1.55 18.65 1.55 18.99C1.55 19.34 1.64 19.69 1.81 19.99C1.99 20.29 2.24 20.55 2.54 20.72C2.84 20.901 3.18 20.99 3.53 21H20.47C20.82 20.99 21.16 20.901 21.46 20.72C21.76 20.55 22.01 20.29 22.19 19.99C22.36 19.69 22.449 19.34 22.448 18.99C22.447 18.65 22.35 18.3 22.18 18L13.71 3.86C13.53 3.57 13.28 3.32 12.98 3.15C12.68 2.99 12.34 2.9 12 2.9C11.66 2.9 11.32 2.99 11.02 3.15C10.72 3.32 10.47 3.57 10.29 3.86Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function w({className:t}){return e("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e("path",{d:"M13 16H12V12H11M12 8H12.01M21 12C21 16.97 16.97 21 12 21C7.03 21 3 16.97 3 12C3 7.03 7.03 3 12 3C16.97 3 21 7.03 21 12Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function O({className:t}){return e("svg",{className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e("path",{d:"M4 4L12 12M12 4L4 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}var S={success:Z,error:E,warning:F,info:w,default:w},U={success:{solid:"bg-green-700 text-white border-green-700",outlined:"bg-white text-green-700 border-green-600 dark:bg-gray-900 dark:text-green-400",soft:"bg-green-50 text-green-700 border-green-200 dark:bg-green-900/20 dark:text-green-400 dark:border-green-800"},error:{solid:"bg-red-600 text-white border-red-600",outlined:"bg-white text-red-700 border-red-600 dark:bg-gray-900 dark:text-red-400",soft:"bg-red-50 text-red-700 border-red-200 dark:bg-red-900/20 dark:text-red-400 dark:border-red-800"},warning:{solid:"bg-yellow-500 text-gray-900 border-yellow-500",outlined:"bg-white text-yellow-700 border-yellow-500 dark:bg-gray-900 dark:text-yellow-400",soft:"bg-yellow-50 text-yellow-700 border-yellow-200 dark:bg-yellow-900/20 dark:text-yellow-400 dark:border-yellow-800"},info:{solid:"bg-blue-600 text-white border-blue-600",outlined:"bg-white text-blue-700 border-blue-600 dark:bg-gray-900 dark:text-blue-400",soft:"bg-blue-50 text-blue-700 border-blue-200 dark:bg-blue-900/20 dark:text-blue-400 dark:border-blue-800"},default:{solid:"bg-gray-700 text-white border-gray-700",outlined:"bg-white text-gray-700 border-gray-300 dark:bg-gray-900 dark:text-gray-300",soft:"bg-gray-50 text-gray-700 border-gray-200 dark:bg-gray-800 dark:text-gray-300 dark:border-gray-700"}},q={success:"text-green-700 dark:text-green-400",error:"text-red-600 dark:text-red-400",warning:"text-yellow-700 dark:text-yellow-400",info:"text-blue-600 dark:text-blue-400",default:"text-gray-600 dark:text-gray-400"};function A({children:t,title:a,description:h,type:s="default",variant:i="soft",icon:y,action:d,onClose:l,closable:C=!0,closeLabel:v,position:c,duration:r,className:N,onMouseEnter:T,onMouseLeave:L,onFocus:M,onBlur:R,...I}){let W=B(),H=S[s],P=e(H,{className:"w-5 h-5"}),g=t??h,[u,b]=p(!1),[f,m]=p(!1),x=V(l);return z(()=>{if(!r||r<=0||u||f)return;let o=setTimeout(()=>x.current?.(),r);return()=>clearTimeout(o)},[r,u,f,x]),k("div",{role:"alert",className:n("flex items-start gap-3 p-4 rounded-lg border shadow-lg min-w-[320px] max-w-md","animate-in slide-in-from-top-2 fade-in duration-300",U[s][i],c&&j[c],N),...I,onMouseEnter:o=>{T?.(o),b(!0)},onMouseLeave:o=>{L?.(o),b(!1)},onFocus:o=>{M?.(o),m(!0)},onBlur:o=>{R?.(o),m(!1)},children:[e("div",{className:n("flex-shrink-0 mt-0.5",i!=="solid"&&q[s]),children:y??P}),k("div",{className:"flex-1 min-w-0",children:[a&&e("div",{className:"font-semibold text-sm mb-1",children:a}),g&&e("div",{className:"text-sm",children:g}),d&&e("div",{className:"mt-3",children:d})]}),C&&e("button",{type:"button",onClick:l,className:n("flex-shrink-0 rounded-md p-1 transition-colors hover:bg-black/10 dark:hover:bg-white/10","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-current"),"aria-label":v??W.toastClose,children:e(O,{className:"w-4 h-4"})})]})}A.displayName="Toast";export{A as Toast};
@@ -0,0 +1 @@
1
+ "use strict";"use client";var H=Object.defineProperty;var ee=Object.getOwnPropertyDescriptor;var te=Object.getOwnPropertyNames;var oe=Object.prototype.hasOwnProperty;var ne=(e,n)=>{for(var c in n)H(e,c,{get:n[c],enumerable:!0})},re=(e,n,c,y)=>{if(n&&typeof n=="object"||typeof n=="function")for(let g of te(n))!oe.call(e,g)&&g!==c&&H(e,g,{get:()=>n[g],enumerable:!(y=ee(n,g))||y.enumerable});return e};var se=e=>re(H({},"__esModule",{value:!0}),e);var ve={};ne(ve,{Toaster:()=>z,useToast:()=>pe});module.exports=se(ve);var r=require("react"),E=require("../../lib/cn.cjs"),O=require("../../lib/focus.cjs"),x=require("../../lib/i18n.cjs"),D=require("../../lib/layer-document.cjs"),M=require("../dropdown/hooks/useLatest.cjs"),U=require("./Toast.cjs"),a=require("./toast-store.cjs"),s=require("react/jsx-runtime"),ie=5e3,S=3,ae={"top-left":"top-4 left-4 right-4 sm:right-auto","top-center":"top-4 left-4 right-4 sm:right-auto sm:left-1/2 sm:-translate-x-1/2","top-right":"top-4 right-4 left-4 sm:left-auto","bottom-left":"bottom-4 left-4 right-4 sm:right-auto","bottom-center":"bottom-4 left-4 right-4 sm:right-auto sm:left-1/2 sm:-translate-x-1/2","bottom-right":"bottom-4 right-4 left-4 sm:left-auto"},le={success:{tinted:"bg-green-600 dark:bg-green-400",solid:"bg-white/70"},error:{tinted:"bg-red-600 dark:bg-red-400",solid:"bg-white/70"},warning:{tinted:"bg-yellow-500 dark:bg-yellow-400",solid:"bg-gray-900/50"},info:{tinted:"bg-blue-600 dark:bg-blue-400",solid:"bg-white/70"},default:{tinted:"bg-gray-500 dark:bg-gray-400",solid:"bg-white/70"}};function ce(){return(0,s.jsxs)("svg",{className:"h-5 w-5 motion-safe:animate-spin",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2",opacity:"0.25"}),(0,s.jsx)("path",{d:"M21 12a9 9 0 0 0-9-9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}function ue(e,n){let c=Number(e.duration??(e.loading?0:n));return Number.isFinite(c)&&c>0?c:0}function de(e,n){return e.altKey||e.ctrlKey||e.metaKey?!1:e.key===n||e.code===n}function k(e){let n=e.current;return e.current=null,n?.isConnected?(n.focus(),!0):!1}function fe({record:e,paused:n,duration:c,variant:y,closable:g,showProgress:N,onFocusLeaving:p}){let L=(0,r.useRef)(null),v=ue(e,c),{id:h,version:T,closing:b,action:d}=e,l=e.variant??y;(0,r.useEffect)(()=>{if(!v||n||b)return;let i=setTimeout(()=>(0,a.closeToast)(h,"timeout"),v);return()=>clearTimeout(i)},[h,T,v,n,b]);let f=(0,M.useLatest)(p);return(0,r.useLayoutEffect)(()=>{let i=L.current;b&&i&&f.current(i)},[b,f]),(0,r.useLayoutEffect)(()=>{let i=L.current;return()=>{i&&f.current(i)}},[f]),(0,s.jsxs)("li",{ref:L,"data-closing":b?"":void 0,className:(0,E.cn)("relative pointer-events-auto",b&&"pointer-events-none animate-out fade-out duration-150"),children:[(0,s.jsx)(U.Toast,{role:void 0,title:e.title,type:e.type,variant:l,icon:e.icon??(e.loading?(0,s.jsx)(ce,{}):void 0),closable:e.closable??g,onClose:()=>(0,a.closeToast)(h,"close"),className:(0,E.cn)("w-full max-sm:min-w-0 max-sm:max-w-none",e.className),action:d&&(0,s.jsx)("button",{type:"button",className:(0,E.cn)("inline-flex items-center rounded-md border border-current px-2.5 py-1 text-sm font-medium","transition-colors hover:bg-black/5 dark:hover:bg-white/10","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-current"),onClick:i=>{d.onClick?.(i),i.defaultPrevented||(0,a.closeToast)(h,"action")},children:d.label}),children:e.description}),N&&v>0&&!b&&(0,s.jsx)("div",{"aria-hidden":"true",className:"absolute inset-x-px bottom-px h-0.5 overflow-hidden rounded-b-[7px] motion-reduce:hidden",children:(0,s.jsx)("div",{"data-toast-progress":"",className:(0,E.cn)("h-full origin-left rtl:origin-right",le[e.type][l==="solid"?"solid":"tinted"]),style:n?void 0:{animation:`synertech-toast-countdown ${v}ms linear forwards`}},n?"held":`run-${T}`)})]})}var me=()=>()=>{},ge=()=>!0,be=()=>!1;function z({position:e="bottom-right",max:n=S,duration:c=ie,variant:y="soft",closable:g=!0,showProgress:N=!0,hotkey:p="F8",label:L,className:v}){let h=(0,x.useUILabels)(),T=(0,D.useLayerDocument)(),b=(0,r.useSyncExternalStore)(a.subscribeToasts,a.getToasts,a.getServerToasts),d=(0,r.useSyncExternalStore)(me,ge,be),l=(0,r.useRef)(null),f=(0,r.useRef)(null),i=(0,r.useRef)(!1),P=(0,r.useRef)(!1),[B,K]=(0,r.useState)(!1),[V,A]=(0,r.useState)(!1),[W,_]=(0,r.useState)(!1),$=B||V||W;(0,r.useEffect)(()=>(0,a.registerToaster)(),[]),(0,r.useEffect)(()=>{if(!d)return;let t=l.current,o=t?.ownerDocument??document,u=m=>K(!!t?.contains(m.target)),w=m=>{m.relatedTarget||K(!1)};return o.addEventListener("pointerover",u),o.addEventListener("pointerout",w),()=>{o.removeEventListener("pointerover",u),o.removeEventListener("pointerout",w)}},[d,T]);let q=Number.isFinite(n)&&n>=1?Math.floor(n):S,R=b.slice(-q),X=e.startsWith("top")?[...R].reverse():R,F=R.length>0;(0,r.useEffect)(()=>{if(!d)return;let t=l.current?.ownerDocument??document,o=()=>_(t.visibilityState==="hidden");return o(),t.addEventListener("visibilitychange",o),()=>t.removeEventListener("visibilitychange",o)},[d,T]);let C=(0,M.useLatest)(F);(0,r.useEffect)(()=>{if(!d||p===!1)return;let t=l.current?.ownerDocument??document,o=u=>{u.defaultPrevented||!de(u,p)||C.current&&(u.preventDefault(),i.current=!0,l.current?.focus(),i.current=!1)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[d,p,C,T]),(0,r.useEffect)(()=>{if(F)return;let t=l.current;t?.contains(t.ownerDocument.activeElement)&&(k(f)||t.blur())},[F]);let j=t=>{let o=l.current,u=t.ownerDocument.activeElement;if(!o||!u||!t.contains(u))return;(Array.from(o.querySelectorAll("li")).some(m=>m!==t&&!m.hasAttribute("data-closing"))||!k(f))&&o.focus()},G=t=>{let o=l.current;if(!o||t.defaultPrevented)return;if(t.key==="Escape"){t.preventDefault(),k(f)||o.blur();return}if(t.key!=="Tab"||!P.current)return;let u=(0,O.getFocusableElements)(o),w=o.ownerDocument.activeElement,m=w?u.indexOf(w):-1,Z=t.shiftKey?m===-1?-1:m-1:m+1,I=u[Z];if(I){t.preventDefault(),I.focus();return}f.current?.isConnected&&(t.preventDefault(),k(f))},J=t=>{let o=t.relatedTarget;o&&l.current?.contains(o)||(f.current=o,P.current=i.current,A(!0))},Q=t=>{let o=t.relatedTarget;o&&l.current?.contains(o)||(P.current=!1,A(!1))};if(!d)return null;let Y=L??(p===!1?h.toasterRegion:(0,x.formatUILabel)(h.toasterRegionHotkey,{hotkey:p}));return(0,s.jsx)(D.LayerPortal,{keepLive:!0,children:(0,s.jsx)("section",{ref:l,"aria-label":Y,tabIndex:-1,"data-position":e,className:(0,E.cn)("fixed z-[70] pointer-events-none sm:w-96","rounded-lg focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-synertech-primary-500",ae[e],v),onKeyDown:G,onFocus:J,onBlur:Q,children:(0,s.jsx)("ol",{"aria-live":"polite","aria-relevant":"additions text",className:"flex flex-col gap-2",children:X.map(t=>(0,s.jsx)(fe,{record:t,paused:$,duration:c,variant:y,closable:g,showProgress:N,onFocusLeaving:j},t.id))})})})}z.displayName="Toaster";function pe(){return a.toast}0&&(module.exports={Toaster,useToast});
@@ -0,0 +1 @@
1
+ "use client";import{useEffect as h,useLayoutEffect as C,useRef as T,useState as R,useSyncExternalStore as I}from"react";import{cn as w}from"../../lib/cn.js";import{getFocusableElements as Z}from"../../lib/focus.js";import{formatUILabel as ee,useUILabels as te}from"../../lib/i18n.js";import{LayerPortal as oe,useLayerDocument as ne}from"../../lib/layer-document.js";import{useLatest as O}from"../dropdown/hooks/useLatest.js";import{Toast as re}from"./Toast.js";import{closeToast as F,getServerToasts as se,getToasts as ie,registerToaster as ae,subscribeToasts as le,toast as ce}from"./toast-store.js";import{jsx as c,jsxs as U}from"react/jsx-runtime";var ue=5e3,S=3,de={"top-left":"top-4 left-4 right-4 sm:right-auto","top-center":"top-4 left-4 right-4 sm:right-auto sm:left-1/2 sm:-translate-x-1/2","top-right":"top-4 right-4 left-4 sm:left-auto","bottom-left":"bottom-4 left-4 right-4 sm:right-auto","bottom-center":"bottom-4 left-4 right-4 sm:right-auto sm:left-1/2 sm:-translate-x-1/2","bottom-right":"bottom-4 right-4 left-4 sm:left-auto"},fe={success:{tinted:"bg-green-600 dark:bg-green-400",solid:"bg-white/70"},error:{tinted:"bg-red-600 dark:bg-red-400",solid:"bg-white/70"},warning:{tinted:"bg-yellow-500 dark:bg-yellow-400",solid:"bg-gray-900/50"},info:{tinted:"bg-blue-600 dark:bg-blue-400",solid:"bg-white/70"},default:{tinted:"bg-gray-500 dark:bg-gray-400",solid:"bg-white/70"}};function me(){return U("svg",{className:"h-5 w-5 motion-safe:animate-spin",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[c("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2",opacity:"0.25"}),c("path",{d:"M21 12a9 9 0 0 0-9-9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}function ge(t,n){let f=Number(t.duration??(t.loading?0:n));return Number.isFinite(f)&&f>0?f:0}function be(t,n){return t.altKey||t.ctrlKey||t.metaKey?!1:t.key===n||t.code===n}function E(t){let n=t.current;return t.current=null,n?.isConnected?(n.focus(),!0):!1}function pe({record:t,paused:n,duration:f,variant:L,closable:k,showProgress:x,onFocusLeaving:m}){let y=T(null),g=ge(t,f),{id:b,version:p,closing:d,action:a}=t,s=t.variant??L;h(()=>{if(!g||n||d)return;let r=setTimeout(()=>F(b,"timeout"),g);return()=>clearTimeout(r)},[b,p,g,n,d]);let l=O(m);return C(()=>{let r=y.current;d&&r&&l.current(r)},[d,l]),C(()=>{let r=y.current;return()=>{r&&l.current(r)}},[l]),U("li",{ref:y,"data-closing":d?"":void 0,className:w("relative pointer-events-auto",d&&"pointer-events-none animate-out fade-out duration-150"),children:[c(re,{role:void 0,title:t.title,type:t.type,variant:s,icon:t.icon??(t.loading?c(me,{}):void 0),closable:t.closable??k,onClose:()=>F(b,"close"),className:w("w-full max-sm:min-w-0 max-sm:max-w-none",t.className),action:a&&c("button",{type:"button",className:w("inline-flex items-center rounded-md border border-current px-2.5 py-1 text-sm font-medium","transition-colors hover:bg-black/5 dark:hover:bg-white/10","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-current"),onClick:r=>{a.onClick?.(r),r.defaultPrevented||F(b,"action")},children:a.label}),children:t.description}),x&&g>0&&!d&&c("div",{"aria-hidden":"true",className:"absolute inset-x-px bottom-px h-0.5 overflow-hidden rounded-b-[7px] motion-reduce:hidden",children:c("div",{"data-toast-progress":"",className:w("h-full origin-left rtl:origin-right",fe[t.type][s==="solid"?"solid":"tinted"]),style:n?void 0:{animation:`synertech-toast-countdown ${g}ms linear forwards`}},n?"held":`run-${p}`)})]})}var ve=()=>()=>{},he=()=>!0,ye=()=>!1;function Te({position:t="bottom-right",max:n=S,duration:f=ue,variant:L="soft",closable:k=!0,showProgress:x=!0,hotkey:m="F8",label:y,className:g}){let b=te(),p=ne(),d=I(le,ie,se),a=I(ve,he,ye),s=T(null),l=T(null),r=T(!1),D=T(!1),[z,H]=R(!1),[B,M]=R(!1),[V,W]=R(!1),_=z||B||V;h(()=>ae(),[]),h(()=>{if(!a)return;let e=s.current,o=e?.ownerDocument??document,i=u=>H(!!e?.contains(u.target)),v=u=>{u.relatedTarget||H(!1)};return o.addEventListener("pointerover",i),o.addEventListener("pointerout",v),()=>{o.removeEventListener("pointerover",i),o.removeEventListener("pointerout",v)}},[a,p]);let $=Number.isFinite(n)&&n>=1?Math.floor(n):S,N=d.slice(-$),q=t.startsWith("top")?[...N].reverse():N,P=N.length>0;h(()=>{if(!a)return;let e=s.current?.ownerDocument??document,o=()=>W(e.visibilityState==="hidden");return o(),e.addEventListener("visibilitychange",o),()=>e.removeEventListener("visibilitychange",o)},[a,p]);let K=O(P);h(()=>{if(!a||m===!1)return;let e=s.current?.ownerDocument??document,o=i=>{i.defaultPrevented||!be(i,m)||K.current&&(i.preventDefault(),r.current=!0,s.current?.focus(),r.current=!1)};return e.addEventListener("keydown",o),()=>e.removeEventListener("keydown",o)},[a,m,K,p]),h(()=>{if(P)return;let e=s.current;e?.contains(e.ownerDocument.activeElement)&&(E(l)||e.blur())},[P]);let X=e=>{let o=s.current,i=e.ownerDocument.activeElement;if(!o||!i||!e.contains(i))return;(Array.from(o.querySelectorAll("li")).some(u=>u!==e&&!u.hasAttribute("data-closing"))||!E(l))&&o.focus()},j=e=>{let o=s.current;if(!o||e.defaultPrevented)return;if(e.key==="Escape"){e.preventDefault(),E(l)||o.blur();return}if(e.key!=="Tab"||!D.current)return;let i=Z(o),v=o.ownerDocument.activeElement,u=v?i.indexOf(v):-1,Y=e.shiftKey?u===-1?-1:u-1:u+1,A=i[Y];if(A){e.preventDefault(),A.focus();return}l.current?.isConnected&&(e.preventDefault(),E(l))},G=e=>{let o=e.relatedTarget;o&&s.current?.contains(o)||(l.current=o,D.current=r.current,M(!0))},J=e=>{let o=e.relatedTarget;o&&s.current?.contains(o)||(D.current=!1,M(!1))};if(!a)return null;let Q=y??(m===!1?b.toasterRegion:ee(b.toasterRegionHotkey,{hotkey:m}));return c(oe,{keepLive:!0,children:c("section",{ref:s,"aria-label":Q,tabIndex:-1,"data-position":t,className:w("fixed z-[70] pointer-events-none sm:w-96","rounded-lg focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-synertech-primary-500",de[t],g),onKeyDown:j,onFocus:G,onBlur:J,children:c("ol",{"aria-live":"polite","aria-relevant":"additions text",className:"flex flex-col gap-2",children:q.map(e=>c(pe,{record:e,paused:_,duration:f,variant:L,closable:k,showProgress:x,onFocusLeaving:X},e.id))})})})}Te.displayName="Toaster";function Re(){return ce}export{Te as Toaster,Re as useToast};
@@ -1 +1 @@
1
- "use strict";var T=Object.defineProperty;var e=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var m=(t,o)=>{for(var s in o)T(t,s,{get:o[s],enumerable:!0})},n=(t,o,s,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of i(o))!f.call(t,a)&&a!==s&&T(t,a,{get:()=>o[a],enumerable:!(r=e(o,a))||r.enumerable});return t};var x=t=>n(T({},"__esModule",{value:!0}),t);var y={};m(y,{Toast:()=>p.Toast});module.exports=x(y);var p=require("./Toast.cjs");0&&(module.exports={Toast});
1
+ "use strict";var r=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var x=(t,o)=>{for(var a in o)r(t,a,{get:o[a],enumerable:!0})},P=(t,o,a,T)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of n(o))!f.call(t,s)&&s!==a&&r(t,s,{get:()=>o[s],enumerable:!(T=m(o,s))||T.enumerable});return t};var y=t=>P(r({},"__esModule",{value:!0}),t);var g={};x(g,{Toast:()=>p.Toast,Toaster:()=>e.Toaster,toast:()=>i.toast,useToast:()=>e.useToast});module.exports=y(g);var p=require("./Toast.cjs"),e=require("./Toaster.cjs"),i=require("./toast-store.cjs");0&&(module.exports={Toast,Toaster,toast,useToast});
@@ -1 +1 @@
1
- import{Toast as a}from"./Toast.js";export{a as Toast};
1
+ import{Toast as s}from"./Toast.js";import{Toaster as e,useToast as r}from"./Toaster.js";import{toast as p}from"./toast-store.js";export{s as Toast,e as Toaster,p as toast,r as useToast};
@@ -0,0 +1 @@
1
+ "use strict";var g=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var C=(e,t)=>{for(var o in t)g(e,o,{get:t[o],enumerable:!0})},h=(e,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of P(t))!M.call(e,n)&&n!==o&&g(e,n,{get:()=>t[n],enumerable:!(s=w(t,n))||s.enumerable});return e};var b=e=>h(g({},"__esModule",{value:!0}),e);var I={};C(I,{TOAST_EXIT_MS:()=>V,closeToast:()=>y,getServerToasts:()=>E,getToasts:()=>A,registerToaster:()=>j,resetToastStore:()=>H,subscribeToasts:()=>S,toast:()=>B});module.exports=b(I);var N=require("react"),V=150,R=[],a=R,p=new Set,i=new Map,x=0,c=0,T=!1,m=!1;function f(e){a=e;for(let t of p)t()}function S(e){return p.add(e),()=>{p.delete(e)}}function A(){return a}function E(){return R}function j(){return c+=1,c>1&&!m&&(m=!0,console.warn("[@synertech/ui] Several <Toaster /> are mounted: each one draws every toast. Mount one, near the root of the application.")),()=>{c-=1}}function k(e){let t=i.get(e);t!==void 0&&(clearTimeout(t),i.delete(e))}function d(e,t,o){let s=t?.id??`synertech-toast-${++x}`;if(typeof document>"u")return s;let n=a.find(l=>l.id===s),r={type:"default",...t,...o,id:s,title:e,loading:o.loading??!1,version:n?n.version+1:0,closing:!1};return n?(k(s),f(a.map(l=>l.id===s?r:l))):f([...a,r]),c===0&&!T&&setTimeout(()=>{c>0||T||(T=!0,console.warn("[@synertech/ui] toast() was called and no <Toaster /> is mounted: the toast waits, and is drawn when one is."))},0),s}function y(e,t){let o=a.find(s=>s.id===e);!o||o.closing||(f(a.map(s=>s.id===e?{...s,closing:!0}:s)),i.set(e,setTimeout(()=>{i.delete(e),f(a.filter(s=>s.id!==e))},V)),o.onClose?.(t))}function _(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(0,N.isValidElement)(e)&&"title"in e}function O(e,t,o){if(!_(e))return d(e,t,o);let{title:s,...n}=e;return d(s,{...t,...n},o)}function v(e,t,o,s,n){if(t===void 0){y(e,"dismiss");return}let r=typeof t=="function"?t(o):t;O(r,{...s,id:e},{type:n})}function u(e){return(t,o)=>d(t,o,{type:e})}var B=Object.assign((e,t)=>d(e,t,{}),{success:u("success"),error:u("error"),warning:u("warning"),info:u("info"),loading:(e,t)=>d(e,t,{loading:!0}),promise(e,t,o){let s=typeof e=="function"?new Promise(r=>r(e())):e,n=O(t.loading,{...o,duration:void 0},{loading:!0});return s.then(r=>v(n,t.success,r,o,"success"),r=>v(n,t.error,r,o,"error")),s},dismiss(e){let t=e===void 0?a.map(o=>o.id):[e];for(let o of t)y(o,"dismiss")}});function H(){for(let e of i.values())clearTimeout(e);i.clear(),a=R,x=0,T=!1,m=!1;for(let e of p)e()}0&&(module.exports={TOAST_EXIT_MS,closeToast,getServerToasts,getToasts,registerToaster,resetToastStore,subscribeToasts,toast});
@@ -0,0 +1 @@
1
+ import{isValidElement as V}from"react";var x=150,m=[],a=m,p=new Set,i=new Map,y=0,c=0,T=!1,g=!1;function f(e){a=e;for(let t of p)t()}function M(e){return p.add(e),()=>{p.delete(e)}}function C(){return a}function h(){return m}function b(){return c+=1,c>1&&!g&&(g=!0,console.warn("[@synertech/ui] Several <Toaster /> are mounted: each one draws every toast. Mount one, near the root of the application.")),()=>{c-=1}}function O(e){let t=i.get(e);t!==void 0&&(clearTimeout(t),i.delete(e))}function d(e,t,o){let s=t?.id??`synertech-toast-${++y}`;if(typeof document>"u")return s;let n=a.find(l=>l.id===s),r={type:"default",...t,...o,id:s,title:e,loading:o.loading??!1,version:n?n.version+1:0,closing:!1};return n?(O(s),f(a.map(l=>l.id===s?r:l))):f([...a,r]),c===0&&!T&&setTimeout(()=>{c>0||T||(T=!0,console.warn("[@synertech/ui] toast() was called and no <Toaster /> is mounted: the toast waits, and is drawn when one is."))},0),s}function v(e,t){let o=a.find(s=>s.id===e);!o||o.closing||(f(a.map(s=>s.id===e?{...s,closing:!0}:s)),i.set(e,setTimeout(()=>{i.delete(e),f(a.filter(s=>s.id!==e))},x)),o.onClose?.(t))}function w(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!V(e)&&"title"in e}function N(e,t,o){if(!w(e))return d(e,t,o);let{title:s,...n}=e;return d(s,{...t,...n},o)}function R(e,t,o,s,n){if(t===void 0){v(e,"dismiss");return}let r=typeof t=="function"?t(o):t;N(r,{...s,id:e},{type:n})}function u(e){return(t,o)=>d(t,o,{type:e})}var S=Object.assign((e,t)=>d(e,t,{}),{success:u("success"),error:u("error"),warning:u("warning"),info:u("info"),loading:(e,t)=>d(e,t,{loading:!0}),promise(e,t,o){let s=typeof e=="function"?new Promise(r=>r(e())):e,n=N(t.loading,{...o,duration:void 0},{loading:!0});return s.then(r=>R(n,t.success,r,o,"success"),r=>R(n,t.error,r,o,"error")),s},dismiss(e){let t=e===void 0?a.map(o=>o.id):[e];for(let o of t)v(o,"dismiss")}});function A(){for(let e of i.values())clearTimeout(e);i.clear(),a=m,y=0,T=!1,g=!1;for(let e of p)e()}export{x as TOAST_EXIT_MS,v as closeToast,h as getServerToasts,C as getToasts,b as registerToaster,A as resetToastStore,M as subscribeToasts,S as toast};
package/dist/index.d.cts CHANGED
@@ -1386,6 +1386,10 @@ interface UILabels {
1386
1386
  bannerClose: string;
1387
1387
  /** Accessible name of the Toast close button. */
1388
1388
  toastClose: string;
1389
+ /** Accessible name of the region of the Toaster, when it has no hotkey. */
1390
+ toasterRegion: string;
1391
+ /** Accessible name of the region of the Toaster; `{hotkey}` is the key that sends the focus there. */
1392
+ toasterRegionHotkey: string;
1389
1393
  /** Accessible name of a PopoverClose drawn as an icon, without children of its own. */
1390
1394
  popoverClose: string;
1391
1395
  /** Accessible name of the Chip remove button. */
@@ -1412,6 +1416,12 @@ interface UILabels {
1412
1416
  selectSearch: string;
1413
1417
  /** Placeholder of the search field of a Select. */
1414
1418
  selectSearchPlaceholder: string;
1419
+ /** Accessible name of the button removing one value of a multiple Select, `{label}` being the value's label. */
1420
+ selectRemoveValue: string;
1421
+ /** Written after the tags of a multiple Select past its `maxTagCount`, `{count}` being the values not shown. */
1422
+ selectMoreValues: string;
1423
+ /** The entry of a creatable Select that adds the text typed as a value, `{label}` being that text. */
1424
+ selectCreateOption: string;
1415
1425
  /** Shown in the suggestion list of a MentionInput while it loads. */
1416
1426
  mentionInputLoading: string;
1417
1427
  /** Hint after the title of an optional Wizard step. */
@@ -5999,11 +6009,9 @@ interface SelectOption {
5999
6009
  disabled?: boolean;
6000
6010
  keywords?: string[];
6001
6011
  }
6002
- interface SelectProps {
6012
+ /** The props a Select has in both modes. */
6013
+ interface SelectBaseProps {
6003
6014
  options: SelectOption[];
6004
- value?: string;
6005
- defaultValue?: string;
6006
- onValueChange?: (value: string) => void;
6007
6015
  searchable?: boolean;
6008
6016
  clearable?: boolean;
6009
6017
  disabled?: boolean;
@@ -6031,14 +6039,68 @@ interface SelectProps {
6031
6039
  searchLabel?: string;
6032
6040
  /** Placeholder of the search field. Defaults to the `selectSearchPlaceholder` label. */
6033
6041
  searchPlaceholder?: string;
6042
+ /**
6043
+ * The labels of this instance, under the keys of `UILabelsProvider`. The
6044
+ * props that name one label (`placeholder`, `noOptionsText`, `clearLabel`,
6045
+ * `searchLabel`, `searchPlaceholder`) win over it.
6046
+ */
6047
+ labels?: UILabelsOf<"select">;
6034
6048
  onSearchChange?: (query: string) => void;
6049
+ /**
6050
+ * Submitted with a form: the value, or one entry per value with `multiple`
6051
+ * — what a native `<select multiple>` sends.
6052
+ */
6035
6053
  name?: string;
6036
6054
  className?: string;
6055
+ /** Classes of the field: the button, or the frame holding the tags with `multiple`. */
6037
6056
  triggerClassName?: string;
6038
6057
  contentClassName?: string;
6039
6058
  maxHeight?: number;
6040
6059
  }
6041
- declare function Select({ options, value, defaultValue, onValueChange, searchable, clearable, disabled, readOnly, loading, size, variant, placeholder: placeholderProp, label, description, helperText, error, required, noOptionsText: noOptionsTextProp, clearLabel, searchLabel, searchPlaceholder, onSearchChange, name, className, triggerClassName, contentClassName, maxHeight, }: SelectProps): react_jsx_runtime.JSX.Element;
6060
+ /** The props of a Select that holds one value. */
6061
+ interface SelectSingleProps extends SelectBaseProps {
6062
+ /** Several values, written as tags in the field, instead of one. */
6063
+ multiple?: false;
6064
+ /** One value: the one chosen, when the application holds it; `""` is none. */
6065
+ value?: string;
6066
+ /** One value: the one the field starts with, when it holds its value itself. */
6067
+ defaultValue?: string;
6068
+ /** One value: called with the value chosen, or `""` when it is cleared. */
6069
+ onValueChange?: (value: string) => void;
6070
+ }
6071
+ /** The props of a Select that holds several values (`multiple`), written as tags in the field. */
6072
+ interface SelectMultipleProps extends SelectBaseProps {
6073
+ /** Several values, written as tags in the field, instead of one. */
6074
+ multiple: true;
6075
+ /** With `multiple`: the values chosen, in the order they were, when the application holds them. */
6076
+ value?: string[];
6077
+ /** With `multiple`: the values the field starts with, when it holds them itself. */
6078
+ defaultValue?: string[];
6079
+ /**
6080
+ * With `multiple`: called with every value chosen, in the order they were,
6081
+ * each time one is added or removed. The list stays open meanwhile.
6082
+ */
6083
+ onValueChange?: (value: string[]) => void;
6084
+ /**
6085
+ * The most tags written in the field; the others are counted in one more,
6086
+ * "+2". Every value has its tag by default.
6087
+ */
6088
+ maxTagCount?: number;
6089
+ /**
6090
+ * What is typed in the search field can be added as a value of its own,
6091
+ * when no option bears that label — tags typed freely. Turns the search
6092
+ * field on. The value is the text typed, written under its own text, and
6093
+ * listed with the options while it is chosen.
6094
+ */
6095
+ creatable?: boolean;
6096
+ }
6097
+ type SelectProps = SelectSingleProps | SelectMultipleProps;
6098
+ /**
6099
+ * A field whose value is chosen in a list: one value, or several with
6100
+ * `multiple`, written as tags in the field. The list is searchable, keeps to
6101
+ * the viewport, and stays live in a dialog.
6102
+ */
6103
+ declare function Select(props: SelectProps): react_jsx_runtime.JSX.Element;
6042
6104
 
6043
6105
  type SidebarVariant = "default" | "bordered" | "floating";
6044
6106
  type SidebarPosition = "left" | "right";
@@ -6347,6 +6409,73 @@ interface SliderProps extends Omit<ComponentPropsWithoutRef<"input">, "type" | "
6347
6409
  }
6348
6410
  declare const Slider: react.ForwardRefExoticComponent<SliderProps & react.RefAttributes<HTMLInputElement>>;
6349
6411
 
6412
+ interface SwitchProps extends Omit<ComponentPropsWithoutRef<"input">, "type" | "size" | "role" | "checked" | "defaultChecked" | "value" | "children"> {
6413
+ /**
6414
+ * On or off, held by the application, which changes it in
6415
+ * `onCheckedChange`. Left out, the switch is uncontrolled: the input holds
6416
+ * its state, from `defaultChecked`.
6417
+ */
6418
+ checked?: boolean;
6419
+ /**
6420
+ * The state at mount, uncontrolled. The input holds it afterwards, never a
6421
+ * React state: a form reset puts it back.
6422
+ */
6423
+ defaultChecked?: boolean;
6424
+ /**
6425
+ * Called with the new state when the reader turns the switch. The native
6426
+ * `onChange`, which a form library hands over, is called before it with the
6427
+ * event.
6428
+ */
6429
+ onCheckedChange?: (checked: boolean) => void;
6430
+ /** Names the switch. Without one, give it an `aria-label` or an `aria-labelledby`. */
6431
+ label?: ReactNode;
6432
+ /** Written under the label, and describes the switch. */
6433
+ description?: ReactNode;
6434
+ /**
6435
+ * `true` marks the switch invalid; a message also does, and is written
6436
+ * under it. The switch is then `aria-invalid` and described by the message.
6437
+ * `false` and `""` are no error.
6438
+ */
6439
+ error?: boolean | string;
6440
+ /** Size of the switch and of its texts. */
6441
+ size?: "sm" | "md" | "lg";
6442
+ /**
6443
+ * Side of the label. `left` puts the switch at the end of the row: with
6444
+ * `className="w-full"`, the row of a settings page.
6445
+ */
6446
+ labelPosition?: "left" | "right";
6447
+ /** Name in a form: the switch submits `value` under it while it is on. */
6448
+ name?: string;
6449
+ /**
6450
+ * What the form receives under `name` while the switch is on, `on` when left
6451
+ * out. Nothing is sent while it is off, as for a checkbox.
6452
+ */
6453
+ value?: string;
6454
+ /** Neither turned nor submitted, and out of the Tab order. */
6455
+ disabled?: boolean;
6456
+ /** Shown, reached and submitted, but not turned: a press or Space changes nothing. */
6457
+ readOnly?: boolean;
6458
+ /** A form is not sent while the switch is off; an asterisk follows the label. */
6459
+ required?: boolean;
6460
+ /** Classes of the root, which holds the row and the message. */
6461
+ className?: string;
6462
+ }
6463
+ /**
6464
+ * An on/off setting that takes effect as it is turned: notifications, a dark
6465
+ * theme, a feature. A choice the reader confirms with a button is a
6466
+ * `Checkbox`.
6467
+ *
6468
+ * A native `<input type="checkbox" role="switch">` under a drawn track, as
6469
+ * `Checkbox` is under its box. Uncontrolled, its state stays in the input and
6470
+ * never in a React state: the track is drawn by `:checked`, so a form reset —
6471
+ * which React 19 does after every successful action — puts it back, and what
6472
+ * is on screen is what the form sends. With `name`, it is the form's field:
6473
+ * `value` is sent while it is on, nothing while it is off.
6474
+ *
6475
+ * The ref is the input, where a form library sends the focus.
6476
+ */
6477
+ declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLInputElement>>;
6478
+
6350
6479
  interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
6351
6480
  children: ReactNode;
6352
6481
  }
@@ -6450,10 +6579,10 @@ declare namespace TabsContent {
6450
6579
  type ToastVariant = "solid" | "outlined" | "soft";
6451
6580
  type ToastType = "success" | "error" | "warning" | "info" | "default";
6452
6581
  type ToastPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
6453
- interface ToastProps extends Omit<ComponentPropsWithoutRef<"div">, "type"> {
6582
+ interface ToastProps extends Omit<ComponentPropsWithoutRef<"div">, "type" | "title"> {
6454
6583
  children?: ReactNode;
6455
- title?: string;
6456
- description?: string;
6584
+ title?: ReactNode;
6585
+ description?: ReactNode;
6457
6586
  type?: ToastType;
6458
6587
  variant?: ToastVariant;
6459
6588
  /**
@@ -6484,6 +6613,144 @@ declare namespace Toast {
6484
6613
  var displayName: string;
6485
6614
  }
6486
6615
 
6616
+ /** Why a toast left: its countdown ran out, its cross or its action was pressed, or `toast.dismiss()` was called. */
6617
+ type ToastCloseReason = "timeout" | "close" | "action" | "dismiss";
6618
+ /** The button of a toast. Pressed, it calls `onClick` and closes the toast, unless `onClick` calls `event.preventDefault()`. */
6619
+ interface ToastAction {
6620
+ /** Text of the button. */
6621
+ label: ReactNode;
6622
+ /** Called when the button is pressed, before the toast closes. */
6623
+ onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
6624
+ }
6625
+ interface ToastOptions {
6626
+ /**
6627
+ * Names the toast. Pushing a toast under an id already shown replaces that
6628
+ * toast in place, and starts its countdown over: how a message is updated.
6629
+ */
6630
+ id?: string;
6631
+ /** Text under the title. */
6632
+ description?: ReactNode;
6633
+ /** Colour and default icon. `toast.success()` and its siblings set it. */
6634
+ type?: ToastType;
6635
+ /** Visual variant. Defaults to the Toaster's `variant`. */
6636
+ variant?: ToastVariant;
6637
+ /** Replaces the icon of the type. */
6638
+ icon?: ReactNode;
6639
+ /**
6640
+ * Milliseconds before the toast closes on its own. Defaults to the
6641
+ * Toaster's `duration`; `0` or `Infinity` keeps it until it is closed. A
6642
+ * toast that holds what the reader must act on stays: a countdown takes the
6643
+ * action away from whoever needs more time to reach it.
6644
+ */
6645
+ duration?: number;
6646
+ /** Shows the close button. Defaults to the Toaster's `closable`. */
6647
+ closable?: boolean;
6648
+ /** A button under the text: "Undo", "Retry". */
6649
+ action?: ToastAction;
6650
+ /** Called once when the toast leaves, with the reason. Not called when it is replaced under its `id`. */
6651
+ onClose?: (reason: ToastCloseReason) => void;
6652
+ /** Classes of the toast. */
6653
+ className?: string;
6654
+ }
6655
+ /** A toast written as one object: its title and its options. */
6656
+ interface ToastContent extends ToastOptions {
6657
+ title?: ReactNode;
6658
+ }
6659
+ /** What a stage of `toast.promise()` shows: a title, a whole toast, or a function of the value (or the error) returning either. */
6660
+ type ToastPromiseMessage<Value> = ReactNode | ToastContent | ((value: Value) => ReactNode | ToastContent);
6661
+ interface ToastPromiseMessages<Value> {
6662
+ /** Shown while the promise is pending. */
6663
+ loading: ReactNode | ToastContent;
6664
+ /** Replaces the loading toast once the promise resolves. Left out, the loading toast closes. */
6665
+ success?: ToastPromiseMessage<Value>;
6666
+ /** Replaces the loading toast once the promise rejects. Left out, the loading toast closes. */
6667
+ error?: ToastPromiseMessage<unknown>;
6668
+ }
6669
+ interface ToastApi {
6670
+ /** Shows a toast and returns its id. */
6671
+ (title: ReactNode, options?: ToastOptions): string;
6672
+ /** A toast of type `success`. */
6673
+ success(title: ReactNode, options?: ToastOptions): string;
6674
+ /** A toast of type `error`. */
6675
+ error(title: ReactNode, options?: ToastOptions): string;
6676
+ /** A toast of type `warning`. */
6677
+ warning(title: ReactNode, options?: ToastOptions): string;
6678
+ /** A toast of type `info`. */
6679
+ info(title: ReactNode, options?: ToastOptions): string;
6680
+ /** A toast with a spinner, which stays until it is replaced under its id or closed. */
6681
+ loading(title: ReactNode, options?: ToastOptions): string;
6682
+ /**
6683
+ * A loading toast replaced by `success` or `error` when the promise settles.
6684
+ * Returns the promise itself: awaited, it still rejects, and the caller
6685
+ * still decides what a failure does beyond the toast.
6686
+ */
6687
+ promise<Value>(promise: Promise<Value> | (() => Promise<Value>), messages: ToastPromiseMessages<Value>, options?: ToastOptions): Promise<Value>;
6688
+ /** Closes a toast, or every toast when no id is given. */
6689
+ dismiss(id?: string): void;
6690
+ }
6691
+ /**
6692
+ * Pushes a toast to the `<Toaster />` of the application, from anywhere — a
6693
+ * component, an event handler, a module that is not a component. Returns the
6694
+ * id of the toast. Does nothing on the server.
6695
+ */
6696
+ declare const toast: ToastApi;
6697
+
6698
+ interface ToasterProps {
6699
+ /** Corner of the viewport the toasts stack in. The newest is the one nearest the edge. */
6700
+ position?: ToastPosition;
6701
+ /**
6702
+ * The most toasts shown at once. The newest are shown; the others wait,
6703
+ * without counting down, and come back as the shown ones close — none is
6704
+ * dropped unread.
6705
+ */
6706
+ max?: number;
6707
+ /** Milliseconds a toast stays when it was given no `duration`. `0` keeps every toast until it is closed. */
6708
+ duration?: number;
6709
+ /** Visual variant of a toast that was given none. */
6710
+ variant?: ToastVariant;
6711
+ /** Shows the close button of a toast that did not say. */
6712
+ closable?: boolean;
6713
+ /** Draws, along the bottom of a toast that counts down, the time it has left. */
6714
+ showProgress?: boolean;
6715
+ /**
6716
+ * The key that sends the focus to the toasts, as `KeyboardEvent.key` (or
6717
+ * `.code`) names it, without a modifier: how a keyboard reaches the action
6718
+ * of a toast. Escape, or Tab past the last toast, goes back. `false` turns
6719
+ * it off.
6720
+ */
6721
+ hotkey?: string | false;
6722
+ /**
6723
+ * Accessible name of the region. Defaults to the `toasterRegionHotkey`
6724
+ * label, with the hotkey, or `toasterRegion` without one.
6725
+ */
6726
+ label?: string;
6727
+ /** Classes of the region. */
6728
+ className?: string;
6729
+ }
6730
+ /**
6731
+ * Draws the toasts pushed with `toast()` or `useToast()`. Mount one, near the
6732
+ * root of the application: a server layout can render it, it takes no
6733
+ * function.
6734
+ *
6735
+ * One live region speaks for the stack, polite for every type — an error is
6736
+ * read after what is being read, not over it: a toast is not where an
6737
+ * application stops its reader, a dialog is. The region stays readable and
6738
+ * clickable while a dialog hides the page, sits above dialogs and menus, and
6739
+ * is rendered under the `<body>` of the document it is shown in.
6740
+ *
6741
+ * The countdowns are held while the pointer is over the stack, while the
6742
+ * focus is in it and while the page is hidden, and start over when that ends.
6743
+ */
6744
+ declare function Toaster({ position, max, duration, variant, closable, showProgress, hotkey, label, className, }: ToasterProps): react_jsx_runtime.JSX.Element | null;
6745
+ declare namespace Toaster {
6746
+ var displayName: string;
6747
+ }
6748
+ /**
6749
+ * The function that pushes a toast to the `<Toaster />`: `toast` itself, for a
6750
+ * component that would rather ask a hook. Stable from one render to the next.
6751
+ */
6752
+ declare function useToast(): ToastApi;
6753
+
6487
6754
  type TooltipPosition = "top" | "bottom" | "left" | "right";
6488
6755
  type TooltipVariant = "default" | "light" | "error" | "success" | "warning" | "info";
6489
6756
  type TooltipSize = "sm" | "md" | "lg";
@@ -7218,4 +7485,4 @@ declare function isFocusable(element: HTMLElement): boolean;
7218
7485
  */
7219
7486
  declare function getFocusableElements(container: HTMLElement): HTMLElement[];
7220
7487
 
7221
- export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionSize, AccordionTrigger, type AccordionTriggerProps, type AccordionType, type AccordionVariant, AdvanceDetachable, type AdvanceDetachableProps, type AdvanceDetachableRef, type AdvanceDetachableRenderContext, type AggregateFunction, type Align, AreaChart, type AreaChartProps, Avatar, type AvatarProps, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeVariant, Banner, type BannerProps, type BannerType, type BannerVariant, BarChart, type BarChartOrientation, type BarChartProps, type BinSpec, BoxPlot, type BoxPlotBox, type BoxPlotProps, type BoxPlotQuantileKeys, type BoxStats, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BulletChart, type BulletChartProps, type BulletRow, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, CHART_ALL_PAIRS_LIMIT, CHART_DIVERGING_COLORS, CHART_DIVERGING_DARK_STOPS, CHART_DIVERGING_NEUTRAL_INDEX, CHART_DOWN_COLOR, CHART_MAX_COLOR_CLASSES, CHART_MUTED_COLOR, CHART_ORDINAL_COLORS, CHART_ORDINAL_DARK_STOPS, CHART_PALETTE_SIZE, CHART_PATTERNS, CHART_POINT_BUDGET, CHART_SEQUENTIAL_COLORS, CHART_SEQUENTIAL_DARK_STOPS, CHART_SERIES_COLORS, CHART_SURFACE_COLOR, CHART_UP_COLOR, Calendar, type CalendarColor, type CalendarDateRange, type CalendarDayState, type CalendarLabels, type CalendarMode, type CalendarProps, type CalendarSize, type CalendarWeekStart, type Candle, CandlestickChart, type CandlestickChartProps, Card, CardBody, type CardBodyProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardImage, type CardImageProps, type CardProps, CardTitle, type CardTitleProps, type CartesianChartBaseProps, type CartesianGeometry, type CartesianGeometryOptions, type CartesianOrientation, type CategoryPlacement, type ChartAnnotation, type ChartAnnotationBase, ChartAnnotationLayer, type ChartAnnotationLayerProps, ChartAxis, type ChartAxisOrientation, type ChartAxisProps, type ChartBandAnnotation, ChartBrushLayer, type ChartBrushLayerProps, type ChartBrushRange, type ChartColorScale, ChartContainer, type ChartContainerProps, type ChartContainerRenderArgs, type ChartCurve, type ChartDatum, type ChartDimensions, ChartExportButton, type ChartExportButtonProps, type ChartExportFormat, type ChartExportOptions, type ChartExportRow, type ChartExportSource, type ChartFacetPanel, ChartFacets, type ChartFacetsProps, ChartFilterBar, type ChartFilterBarProps, ChartGrid, type ChartGridLines, type ChartGridProps, ChartLegend, type ChartLegendItem, type ChartLegendMarker, type ChartLegendPosition, type ChartLegendProps, type ChartLineAnnotation, type ChartMargin, type ChartOrientation, type ChartOverlay, type ChartOverlayRenderer, type ChartPattern, ChartPatternDefs, type ChartPatternDefsProps, type ChartPatternEntry, type ChartPeriod, ChartPeriodPicker, type ChartPeriodPickerProps, type ChartPeriodPreset, type ChartPlotContext, type ChartPoint, type ChartPointAnnotation, type ChartPointEvent, type ChartReferenceLine, type ChartResolvedSeries, ChartScaleLegend, type ChartScaleLegendProps, type ChartScaleType, type ChartSeries, type ChartSize, type ChartStatusProps, type ChartSyncContextValue, ChartSyncProvider, type ChartSyncProviderProps, ChartTableView, type ChartTableViewProps, type ChartTick, ChartTooltip, ChartTooltipContent, type ChartTooltipContentProps, type ChartTooltipPayload, type ChartTooltipProps, type ChartXAxisConfig, type ChartXValue, type ChartYAxisConfig, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipColor, type ChipProps, type ChipSize, type ChipVariant, CircularProgress, type CircularProgressColor, type CircularProgressProps, type CircularProgressSize, type CircularProgressThickness, type ColumnDef, DEFAULT_CHART_PERIOD_PRESETS, DEFAULT_CHART_WIDTH, DEFAULT_FIELD_TYPES, DataGrid, type DataGridMode, type DataGridProps, type DataGridRef, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DateRangePresetKey, type DateRangePresetOption, type Density, Detachable, type DetachableProps, type DetachableRef, DeviceMockup, type DeviceMockupProps, type DeviceOrientation, type DeviceSize, type DeviceTheme, type DeviceType, type DialogA11yProps, type DialogInitialFocus, type DialogReturnFocus, type DivergingScaleOptions, Divider, type DividerOrientation, type DividerProps, type DividerTextAlign, type DividerVariant, Drawer, type DrawerPosition, type DrawerProps, type DrawerSize, Dropdown, DropdownCheckboxItem, type DropdownCheckboxItemProps, DropdownContent, type DropdownContentProps, type DropdownContextValue, DropdownItem, type DropdownItemProps, DropdownLabel, type DropdownLabelProps, type DropdownProps, DropdownRadioGroup, type DropdownRadioGroupProps, DropdownRadioItem, type DropdownRadioItemProps, DropdownSeparator, type DropdownSeparatorProps, DropdownSubMenu, DropdownSubMenuContent, type DropdownSubMenuContentProps, type DropdownSubMenuProps, DropdownSubMenuTrigger, type DropdownSubMenuTriggerProps, DropdownTrigger, type DropdownTriggerProps, DumbbellChart, type DumbbellChartProps, type DumbbellRow, type DumbbellSort, FOCUSABLE_SELECTOR, FileSelector, type FileSelectorProps, type FilterOperator, type FilterType, type FilterValue, Footer, FooterBottom, type FooterBottomProps, FooterColumn, type FooterColumnProps, FooterLink, type FooterLinkProps, type FooterProps, FooterSection, type FooterSectionProps, FooterSocial, FooterSocialLink, type FooterSocialLinkProps, type FooterSocialProps, FormField, type FormFieldControlProps, type FormFieldProps, type FormFieldState, FunnelChart, type FunnelChartProps, type FunnelStage, GanttChart, type GanttChartProps, type GanttTask, Header, type HeaderProps, Heatmap, type HeatmapCell, type HeatmapProps, HelpButton, type HelpButtonProps, type HistogramBin, INERT_IGNORE_ATTRIBUTE, ImageUploader, type ImageUploaderProps, Indicator, type IndicatorColor, type IndicatorPlacement, type IndicatorProps, type IndicatorSize, type IndicatorVariant, Input, type InputProps, Label, type LabelColor, type LabelProps, type LabelSize, type LabelVariant, type LabelWeight, LineChart, type LineChartProps, MarkdownEditorComponent, type MentionData, MentionInput, type MentionInputProps, type MentionInputValue, type MentionSuggestion, Modal, type ModalProps, type NavItem, type NodeRegistryEntry, NumberInput, type NumberInputProps, Pagination, type PaginationConfig, type PaginationProps, PieChart, type PieChartProps, Popover, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, type Position, ProgressBar, type ProgressBarColor, type ProgressBarProps, type ProgressBarSize, type ProgressBarVariant, RadioButton, type RadioButtonProps, type ScatterBubble, ScatterChart, type ScatterChartProps, SchemaEditor, type SchemaEditorProps, type SchemaEditorRef, type SchemaField, type SchemaFieldEvent, type SchemaFieldType, type SchemaRelation, type SchemaRelationCardinality, type SchemaTable, type SchemaTableEvent, type SchemaValue, type SchemaViewport, Select, type SelectOption, type SelectProps, type SelectedFile, type SelectionMode, type SequentialScaleOptions, type Side, Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarItem, type SidebarItemProps, type SidebarPosition, type SidebarProps, SidebarSubMenu, type SidebarSubMenuProps, SidebarToggle, type SidebarToggleProps, type SidebarVariant, Skeleton, type SkeletonAnimation, type SkeletonProps, type SkeletonVariant, Slider, type SliderColor, type SliderMark, type SliderProps, type SliderSize, type SortDirection, type SortState, Sparkline, type SparklineProps, StatCard, type StatCardDelta, type StatCardDeltaDirection, type StatCardDeltaTone, StatCardGroup, type StatCardGroupProps, type StatCardProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsColor, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsOrientation, type TabsProps, type TabsSize, TabsTrigger, type TabsTriggerProps, type TabsVariant, type TimeTickScale, type TimeUnit, Toast, type ToastPosition, type ToastProps, type ToastType, type ToastVariant, Tooltip, type TooltipPosition, type TooltipProps, type TooltipSize, type TooltipTrigger, type TooltipVariant, type UILabels, type UILabelsOf, UILabelsProvider, type UILabelsProviderProps, type UILinkComponent, type UILinkProps, type UseChartBrushOptions, type UseChartBrushResult, type UseChartSizeOptions, type UseChartSizeResult, type UseClickOutsideOptions, type UseDialogA11yOptions, type UseDialogA11yResult, type UseKeyboardNavigationOptions, type UsePositioningOptions, WaterfallChart, type WaterfallChartProps, type WaterfallKind, type WaterfallStep, WithHelpButton, type WithHelpButtonProps, Wizard, WizardActions, type WizardActionsProps, type WizardColor, WizardContent, type WizardContentProps, type WizardContextValue, type WizardDirection, WizardNext, type WizardNextProps, type WizardOrientation, WizardPanel, type WizardPanelProps, WizardPrevious, type WizardPreviousProps, type WizardProps, type WizardSize, type WizardStepChangeMeta, type WizardStepDefinition, type WizardStepStatus, WizardSteps, type WizardStepsProps, type WizardVariant, type WorkflowDirection, type WorkflowEdge, WorkflowEditor, type WorkflowEditorProps, type WorkflowEditorRef, type WorkflowNode, type WorkflowNodeAction, type WorkflowNodeActionEvent, type WorkflowNodeActionPosition, type WorkflowNodeEvent, type WorkflowPort, type WorkflowValue, type WorkflowViewport, autoLayoutTables, binEdges, binValues, boxStats, brushToPeriod, buildCartesianGeometry, cn, createCategoryLocator, createDefaultField, createDefaultTable, createDivergingScale, createPeriod, createPlotContext, createSequentialScale, decimateIndices, decimatePath, defaultUILabels, describeAnnotations, downloadChartData, endOfDay, findOwnedLayers, formatPeriodRange, formatTimeTick, formatUILabel, frenchUILabels, generateFieldId, generateRelationId, generateSQL, generateTableId, getFocusableElements, getOrdinalColor, getPattern, getSeriesColor, getSeriesLabel, hideOthers, isElementVisible, isFocusable, lttb, niceTimeTicks, patternBackground, patternFill, patternId, quantile, quantileSorted, rampColor, registerFloatingLayer, resetBarChartWarnings, resetDumbbellWarnings, resetFacetWarnings, resetPointBudgetWarning, resolvePeriodPreset, resolveSeriesColor, samePeriod, sampleEvenly, splitOverlay, startOfDay, sturgesBins, toChartCsv, toChartJson, toChartRows, toLegendItems, toTimestamp, useChartBrush, useChartSize, useChartSync, useClickOutside, useDialogA11y, useDropdownContext, useFocusItem, useKeyboardNavigation, usePositioning, useSidebar, useUILabels, useUILinkComponent, useUILocale, useWizard };
7488
+ export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionSize, AccordionTrigger, type AccordionTriggerProps, type AccordionType, type AccordionVariant, AdvanceDetachable, type AdvanceDetachableProps, type AdvanceDetachableRef, type AdvanceDetachableRenderContext, type AggregateFunction, type Align, AreaChart, type AreaChartProps, Avatar, type AvatarProps, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeVariant, Banner, type BannerProps, type BannerType, type BannerVariant, BarChart, type BarChartOrientation, type BarChartProps, type BinSpec, BoxPlot, type BoxPlotBox, type BoxPlotProps, type BoxPlotQuantileKeys, type BoxStats, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BulletChart, type BulletChartProps, type BulletRow, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, CHART_ALL_PAIRS_LIMIT, CHART_DIVERGING_COLORS, CHART_DIVERGING_DARK_STOPS, CHART_DIVERGING_NEUTRAL_INDEX, CHART_DOWN_COLOR, CHART_MAX_COLOR_CLASSES, CHART_MUTED_COLOR, CHART_ORDINAL_COLORS, CHART_ORDINAL_DARK_STOPS, CHART_PALETTE_SIZE, CHART_PATTERNS, CHART_POINT_BUDGET, CHART_SEQUENTIAL_COLORS, CHART_SEQUENTIAL_DARK_STOPS, CHART_SERIES_COLORS, CHART_SURFACE_COLOR, CHART_UP_COLOR, Calendar, type CalendarColor, type CalendarDateRange, type CalendarDayState, type CalendarLabels, type CalendarMode, type CalendarProps, type CalendarSize, type CalendarWeekStart, type Candle, CandlestickChart, type CandlestickChartProps, Card, CardBody, type CardBodyProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardImage, type CardImageProps, type CardProps, CardTitle, type CardTitleProps, type CartesianChartBaseProps, type CartesianGeometry, type CartesianGeometryOptions, type CartesianOrientation, type CategoryPlacement, type ChartAnnotation, type ChartAnnotationBase, ChartAnnotationLayer, type ChartAnnotationLayerProps, ChartAxis, type ChartAxisOrientation, type ChartAxisProps, type ChartBandAnnotation, ChartBrushLayer, type ChartBrushLayerProps, type ChartBrushRange, type ChartColorScale, ChartContainer, type ChartContainerProps, type ChartContainerRenderArgs, type ChartCurve, type ChartDatum, type ChartDimensions, ChartExportButton, type ChartExportButtonProps, type ChartExportFormat, type ChartExportOptions, type ChartExportRow, type ChartExportSource, type ChartFacetPanel, ChartFacets, type ChartFacetsProps, ChartFilterBar, type ChartFilterBarProps, ChartGrid, type ChartGridLines, type ChartGridProps, ChartLegend, type ChartLegendItem, type ChartLegendMarker, type ChartLegendPosition, type ChartLegendProps, type ChartLineAnnotation, type ChartMargin, type ChartOrientation, type ChartOverlay, type ChartOverlayRenderer, type ChartPattern, ChartPatternDefs, type ChartPatternDefsProps, type ChartPatternEntry, type ChartPeriod, ChartPeriodPicker, type ChartPeriodPickerProps, type ChartPeriodPreset, type ChartPlotContext, type ChartPoint, type ChartPointAnnotation, type ChartPointEvent, type ChartReferenceLine, type ChartResolvedSeries, ChartScaleLegend, type ChartScaleLegendProps, type ChartScaleType, type ChartSeries, type ChartSize, type ChartStatusProps, type ChartSyncContextValue, ChartSyncProvider, type ChartSyncProviderProps, ChartTableView, type ChartTableViewProps, type ChartTick, ChartTooltip, ChartTooltipContent, type ChartTooltipContentProps, type ChartTooltipPayload, type ChartTooltipProps, type ChartXAxisConfig, type ChartXValue, type ChartYAxisConfig, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipColor, type ChipProps, type ChipSize, type ChipVariant, CircularProgress, type CircularProgressColor, type CircularProgressProps, type CircularProgressSize, type CircularProgressThickness, type ColumnDef, DEFAULT_CHART_PERIOD_PRESETS, DEFAULT_CHART_WIDTH, DEFAULT_FIELD_TYPES, DataGrid, type DataGridMode, type DataGridProps, type DataGridRef, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DateRangePresetKey, type DateRangePresetOption, type Density, Detachable, type DetachableProps, type DetachableRef, DeviceMockup, type DeviceMockupProps, type DeviceOrientation, type DeviceSize, type DeviceTheme, type DeviceType, type DialogA11yProps, type DialogInitialFocus, type DialogReturnFocus, type DivergingScaleOptions, Divider, type DividerOrientation, type DividerProps, type DividerTextAlign, type DividerVariant, Drawer, type DrawerPosition, type DrawerProps, type DrawerSize, Dropdown, DropdownCheckboxItem, type DropdownCheckboxItemProps, DropdownContent, type DropdownContentProps, type DropdownContextValue, DropdownItem, type DropdownItemProps, DropdownLabel, type DropdownLabelProps, type DropdownProps, DropdownRadioGroup, type DropdownRadioGroupProps, DropdownRadioItem, type DropdownRadioItemProps, DropdownSeparator, type DropdownSeparatorProps, DropdownSubMenu, DropdownSubMenuContent, type DropdownSubMenuContentProps, type DropdownSubMenuProps, DropdownSubMenuTrigger, type DropdownSubMenuTriggerProps, DropdownTrigger, type DropdownTriggerProps, DumbbellChart, type DumbbellChartProps, type DumbbellRow, type DumbbellSort, FOCUSABLE_SELECTOR, FileSelector, type FileSelectorProps, type FilterOperator, type FilterType, type FilterValue, Footer, FooterBottom, type FooterBottomProps, FooterColumn, type FooterColumnProps, FooterLink, type FooterLinkProps, type FooterProps, FooterSection, type FooterSectionProps, FooterSocial, FooterSocialLink, type FooterSocialLinkProps, type FooterSocialProps, FormField, type FormFieldControlProps, type FormFieldProps, type FormFieldState, FunnelChart, type FunnelChartProps, type FunnelStage, GanttChart, type GanttChartProps, type GanttTask, Header, type HeaderProps, Heatmap, type HeatmapCell, type HeatmapProps, HelpButton, type HelpButtonProps, type HistogramBin, INERT_IGNORE_ATTRIBUTE, ImageUploader, type ImageUploaderProps, Indicator, type IndicatorColor, type IndicatorPlacement, type IndicatorProps, type IndicatorSize, type IndicatorVariant, Input, type InputProps, Label, type LabelColor, type LabelProps, type LabelSize, type LabelVariant, type LabelWeight, LineChart, type LineChartProps, MarkdownEditorComponent, type MentionData, MentionInput, type MentionInputProps, type MentionInputValue, type MentionSuggestion, Modal, type ModalProps, type NavItem, type NodeRegistryEntry, NumberInput, type NumberInputProps, Pagination, type PaginationConfig, type PaginationProps, PieChart, type PieChartProps, Popover, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, type Position, ProgressBar, type ProgressBarColor, type ProgressBarProps, type ProgressBarSize, type ProgressBarVariant, RadioButton, type RadioButtonProps, type ScatterBubble, ScatterChart, type ScatterChartProps, SchemaEditor, type SchemaEditorProps, type SchemaEditorRef, type SchemaField, type SchemaFieldEvent, type SchemaFieldType, type SchemaRelation, type SchemaRelationCardinality, type SchemaTable, type SchemaTableEvent, type SchemaValue, type SchemaViewport, Select, type SelectBaseProps, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectSingleProps, type SelectedFile, type SelectionMode, type SequentialScaleOptions, type Side, Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarItem, type SidebarItemProps, type SidebarPosition, type SidebarProps, SidebarSubMenu, type SidebarSubMenuProps, SidebarToggle, type SidebarToggleProps, type SidebarVariant, Skeleton, type SkeletonAnimation, type SkeletonProps, type SkeletonVariant, Slider, type SliderColor, type SliderMark, type SliderProps, type SliderSize, type SortDirection, type SortState, Sparkline, type SparklineProps, StatCard, type StatCardDelta, type StatCardDeltaDirection, type StatCardDeltaTone, StatCardGroup, type StatCardGroupProps, type StatCardProps, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsColor, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsOrientation, type TabsProps, type TabsSize, TabsTrigger, type TabsTriggerProps, type TabsVariant, type TimeTickScale, type TimeUnit, Toast, type ToastAction, type ToastApi, type ToastCloseReason, type ToastContent, type ToastOptions, type ToastPosition, type ToastPromiseMessage, type ToastPromiseMessages, type ToastProps, type ToastType, type ToastVariant, Toaster, type ToasterProps, Tooltip, type TooltipPosition, type TooltipProps, type TooltipSize, type TooltipTrigger, type TooltipVariant, type UILabels, type UILabelsOf, UILabelsProvider, type UILabelsProviderProps, type UILinkComponent, type UILinkProps, type UseChartBrushOptions, type UseChartBrushResult, type UseChartSizeOptions, type UseChartSizeResult, type UseClickOutsideOptions, type UseDialogA11yOptions, type UseDialogA11yResult, type UseKeyboardNavigationOptions, type UsePositioningOptions, WaterfallChart, type WaterfallChartProps, type WaterfallKind, type WaterfallStep, WithHelpButton, type WithHelpButtonProps, Wizard, WizardActions, type WizardActionsProps, type WizardColor, WizardContent, type WizardContentProps, type WizardContextValue, type WizardDirection, WizardNext, type WizardNextProps, type WizardOrientation, WizardPanel, type WizardPanelProps, WizardPrevious, type WizardPreviousProps, type WizardProps, type WizardSize, type WizardStepChangeMeta, type WizardStepDefinition, type WizardStepStatus, WizardSteps, type WizardStepsProps, type WizardVariant, type WorkflowDirection, type WorkflowEdge, WorkflowEditor, type WorkflowEditorProps, type WorkflowEditorRef, type WorkflowNode, type WorkflowNodeAction, type WorkflowNodeActionEvent, type WorkflowNodeActionPosition, type WorkflowNodeEvent, type WorkflowPort, type WorkflowValue, type WorkflowViewport, autoLayoutTables, binEdges, binValues, boxStats, brushToPeriod, buildCartesianGeometry, cn, createCategoryLocator, createDefaultField, createDefaultTable, createDivergingScale, createPeriod, createPlotContext, createSequentialScale, decimateIndices, decimatePath, defaultUILabels, describeAnnotations, downloadChartData, endOfDay, findOwnedLayers, formatPeriodRange, formatTimeTick, formatUILabel, frenchUILabels, generateFieldId, generateRelationId, generateSQL, generateTableId, getFocusableElements, getOrdinalColor, getPattern, getSeriesColor, getSeriesLabel, hideOthers, isElementVisible, isFocusable, lttb, niceTimeTicks, patternBackground, patternFill, patternId, quantile, quantileSorted, rampColor, registerFloatingLayer, resetBarChartWarnings, resetDumbbellWarnings, resetFacetWarnings, resetPointBudgetWarning, resolvePeriodPreset, resolveSeriesColor, samePeriod, sampleEvenly, splitOverlay, startOfDay, sturgesBins, toChartCsv, toChartJson, toChartRows, toLegendItems, toTimestamp, toast, useChartBrush, useChartSize, useChartSync, useClickOutside, useDialogA11y, useDropdownContext, useFocusItem, useKeyboardNavigation, usePositioning, useSidebar, useToast, useUILabels, useUILinkComponent, useUILocale, useWizard };