neatkit 0.13.6 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button-CTzvBhGH.cjs → Button-DYn8YDP3.cjs} +1 -1
- package/dist/{Button-CyUpMPtt.js → Button-yBHFKYew.js} +1 -1
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +1 -1
- package/dist/Checkbox.cjs +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/Icon-bIPc7jK4.cjs +1 -0
- package/dist/{Icon-Cj1s40xn.js → Icon-hYw7-DvR.js} +215 -105
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +1 -1
- package/dist/Input.cjs +1 -1
- package/dist/Input.js +1 -1
- package/dist/Markdown.cjs +1 -1
- package/dist/Markdown.js +1 -1
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +1 -1
- package/dist/Select.cjs +1 -1
- package/dist/Select.js +1 -1
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/{Table-CV7YUKzw.cjs → Table-XVrja-e5.cjs} +1 -1
- package/dist/{Table-DGWYiRfU.js → Table-vVaWCkk2.js} +1 -1
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +1 -1
- package/dist/components/Icon/icons/DollarIcon.d.ts +11 -0
- package/dist/components/Icon/icons/EuroIcon.d.ts +11 -0
- package/dist/components/Icon/icons/PoundIcon.d.ts +11 -0
- package/dist/components/Icon/icons/RubleIcon.d.ts +11 -0
- package/dist/components/Icon/icons/YenYuanIcon.d.ts +11 -0
- package/dist/components/Icon/utils/registry.d.ts +5 -0
- package/package.json +1 -1
- package/dist/Icon-BFaHVAoQ.cjs +0 -1
package/dist/Input.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),t=require("react"),x=require("./Button-
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),t=require("react"),x=require("./Button-DYn8YDP3.cjs"),$=require("./Spinner-BE0F4y2S.cjs"),S=require("./aria-DM-xYEHQ.cjs"),F=require("./reference-C2guRuR0.cjs");function v(e){return Array.isArray(e)?e.length>0:e!=null&&String(e).length>0}function G(e,s,n){s.current=e,F.assignElementReference(n,e)}function J(e){var n;const s=(n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value"))==null?void 0:n.set;s?s.call(e,""):e.value=""}const K=t.forwardRef(function(s,n){const{"aria-busy":V,"aria-invalid":b,className:m,clearable:y=!1,defaultValue:g,disabled:C=!1,id:A,invalid:h=!1,loading:l=!1,onChange:d,readOnly:p=!1,style:N,type:r="text",value:o,...P}=s,q=t.useId(),I=t.useRef(null),[O,R]=t.useState(v(g)),[c,w]=t.useState(!1);t.useEffect(()=>{r!=="password"&&w(!1)},[r]);const B=t.useCallback(a=>G(a,I,n),[n]),f=A??`${q}-control`,u=C||l,T=h||S.hasInvalidState(b),E=o!==void 0?v(o):O,D=r==="password"&&c?"text":r,H=S.resolveAriaInvalid(h,b),_=y&&E&&!p&&!u,j=r==="password"&&!l,k=_||j;function M(a){o===void 0&&R(v(a.currentTarget.value)),d==null||d(a)}function U(){const a=I.current;a&&(J(a),a.dispatchEvent(new Event("input",{bubbles:!0})),a.focus())}function z(){w(a=>!a)}return i.jsxs("div",{className:["nk-input",m].filter(Boolean).join(" "),"data-clearable":y||void 0,"data-disabled":u||void 0,"data-invalid":T||void 0,"data-loading":l||void 0,"data-read-only":p||void 0,"data-has-trailing-action":k||void 0,style:N,children:[i.jsx("input",{...P,ref:B,"aria-busy":l?!0:V,"aria-invalid":H,className:"nk-input__control",defaultValue:g,disabled:u,id:f,onChange:M,readOnly:p,type:D,value:o}),k?i.jsxs("span",{className:"nk-input__trailing",children:[_?i.jsx(x.Button,{"aria-controls":f,"aria-label":"Clear input",className:"nk-input__action",icon:"cross",onClick:U,shape:"rectangle",type:"button",variant:"ghost"}):null,j?i.jsx(x.Button,{"aria-controls":f,"aria-label":c?"Hide password":"Show password","aria-pressed":c,className:"nk-input__action",disabled:u,icon:c?"eye-off":"eye",onClick:z,shape:"rectangle",type:"button",variant:"ghost"}):null]}):null,l?i.jsx($.Spinner,{"aria-hidden":"true","aria-label":void 0,className:"nk-input__spinner",role:void 0,size:14}):null]})});exports.default=K;
|
package/dist/Input.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as _, jsx as d } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as F, useId as G, useRef as J, useState as V, useEffect as K, useCallback as L } from "react";
|
|
4
|
-
import { B as C } from "./Button-
|
|
4
|
+
import { B as C } from "./Button-yBHFKYew.js";
|
|
5
5
|
import { S as M } from "./Spinner-CmxlDlOk.js";
|
|
6
6
|
import { h as Q, r as W } from "./aria-Bv-xVREf.js";
|
|
7
7
|
import { a as X } from "./reference-CXMr27nM.js";
|
package/dist/Markdown.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react/jsx-runtime"),M=require("react"),G=require("react-markdown"),W=require("rehype-raw"),H=require("rehype-sanitize"),V=require("rehype-slug"),J=require("remark-gfm"),Y=require("./Alert-LJDkNUqH.cjs"),X=require("./Code-f0GWveGp.cjs"),Q=require("./Divider-C7XGlr26.cjs"),_=require("./Table-CV7YUKzw.cjs"),k=require("./Text-DWYlIcPj.cjs"),Z={bash:"Shell",c:"C","c++":"C++",cpp:"C++",css:"CSS",go:"Go",golang:"Go",html:"HTML",js:"JavaScript",javascript:"JavaScript",jsx:"JavaScript",json:"JSON",markdown:"Markdown",md:"Markdown",py:"Python",python:"Python",rb:"Ruby",ruby:"Ruby",rs:"Rust",rust:"Rust",sh:"Shell",shell:"Shell",sql:"SQL",ts:"TypeScript",tsx:"TypeScript",typescript:"TypeScript",xml:"HTML",yaml:"YAML",yml:"YAML"};function ee(e){var a;const o=(a=e==null?void 0:e.split(/\s+/).find(f=>f.startsWith("language-")))==null?void 0:a.slice(9).toLowerCase();return o?Z[o]:void 0}const A="md-",B=["a","blockquote","br","code","del","em","h1","h2","h3","h4","h5","h6","hr","img","input","li","ol","p","picture","pre","section","source","strong","sup","table","tbody","td","th","thead","tr","ul"],ne={...H.defaultSchema,allowComments:!1,allowDoctypes:!1,ancestors:{...H.defaultSchema.ancestors,source:["picture"]},attributes:{"*":["dir","id","lang","title"],a:["ariaDescribedBy","ariaLabel","dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href","hrefLang"],code:[["className",/^language-[\w+-]+$/]],h2:[["className","sr-only"]],img:["alt","height","src","srcSet","width"],input:["checked",["disabled",!0],"readOnly",["type","checkbox"]],li:[["className","task-list-item"]],ol:["start",["className","contains-task-list"]],section:["dataFootnotes",["className","footnotes"]],source:["media","srcSet","type"],td:["align","colSpan","rowSpan"],th:["align","colSpan","rowSpan","scope"],ul:[["className","contains-task-list"]]},clobber:H.defaultSchema.clobber,clobberPrefix:A,strip:["script","style"],tagNames:[...B]};function re(e,o){const a=o.flags.replace(/[gy]/g,"");return new RegExp(o.source,a).test(e)}function te(e){if(!e)return null;try{const o=new URL(e);return o.protocol!=="http:"&&o.protocol!=="https:"||o.username||o.password?null:o}catch{return null}}function R(e,o,a){if(e.includes("\\")||/[\u0000-\u0020\u007f]/.test(e)||o===void 0)return;const f=/^[a-z][a-z\d+.-]*:/i.test(e),m=e.startsWith("//");if(o==="*")return!f&&!m||/^https?:/i.test(e)||m?e:void 0;const s=Array.isArray(o)?o:[o],t=te(a);try{let n=null;if(f?n=new URL(e):t&&(n=new URL(e,t)),!n||n.protocol!=="http:"&&n.protocol!=="https:"||n.username||n.password)return;const r=n.href;return s.some(c=>re(r,c))?r:void 0}catch{return}}function v(e,o,a){if(!e)return;const m=e.split(",").map(s=>{const t=s.trim().split(/\s+/),[n,r]=t,u=r===void 0||/^(?:\d+w|(?:\d+(?:\.\d+)?|\.\d+)x)$/.test(r);if(t.length>2||!u||n===void 0||n.length===0)return null;const c=R(n,o,a);return c?`${c}${r?` ${r}`:""}`:null});if(!m.some(s=>s===null))return m.join(", ")}function oe(){function e(o){o.children=o.children.filter(a=>a.type!=="element"||a.tagName!=="input"||a.position===void 0),o.children.forEach(a=>{a.type==="element"&&e(a)})}return o=>e(o)}function S(e,o){return Array.isArray(e)?e.map(a=>typeof a=="string"?`${o}${a}`:a):typeof e=="string"?e.split(/\s+/).map(a=>`${o}${a}`).join(" "):e}function se(e){const{clobberPrefix:o,prefix:a}=e;function f(m){if(m.type==="element"){const{properties:s}=m;s.id=S(s.id,a),s.name=S(s.name,a),s.ariaDescribedBy=S(s.ariaDescribedBy,a),s.ariaLabelledBy=S(s.ariaLabelledBy,a),typeof s.href=="string"&&s.href.startsWith("#")&&(s.href=`#${o}${a}${s.href.slice(1)}`)}"children"in m&&m.children.forEach(f)}return m=>f(m)}function C(e){return e==="center"||e==="left"||e==="right"?e:void 0}function E(e){return e.type==="text"?e.value:"children"in e?e.children.map(E).join(""):""}function T(e){return typeof e=="string"?e:void 0}function ie(e){if(!e)return null;const o=e.children.find(n=>n.type==="element"&&n.tagName==="code");if(!o||e.children.some(n=>n!==o&&(n.type!=="text"||n.value.trim().length>0)))return null;const f=o.properties.className;let m;Array.isArray(f)?m=f.join(" "):typeof f=="string"&&(m=f);const s=o.children.map(E).join("").replace(/\n$/,"");return{codeProps:{className:m,dir:T(o.properties.dir),id:T(o.properties.id),lang:T(o.properties.lang),title:T(o.properties.title)},content:s}}function ae(e,o,a,f,m){return{a:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t;return d.jsx("a",{...i,className:["nk-markdown__link",r].filter(Boolean).join(" "),onClick:m,children:n})},blockquote:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,...c}=t;return d.jsx("blockquote",{...c,className:"nk-markdown__blockquote",children:n})},code:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t;return d.jsx("code",{...i,className:["nk-markdown__inline-code",r].filter(Boolean).join(" "),children:n})},h1:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,as:"h1",className:["nk-markdown__heading",r].filter(Boolean).join(" "),size:"heading",weight:"semibold",children:n})},h2:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,as:"h2",className:["nk-markdown__heading",r!=null&&r.split(/\s+/).includes("sr-only")?"nk-markdown__visually-hidden":void 0].filter(Boolean).join(" "),size:"title",weight:"semibold",children:n})},h3:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,as:"h3",className:["nk-markdown__heading",r].filter(Boolean).join(" "),size:"subtitle",weight:"semibold",children:n})},h4:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,as:"h4",className:["nk-markdown__heading",r].filter(Boolean).join(" "),weight:"semibold",children:n})},h5:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,as:"h5",className:["nk-markdown__heading",r].filter(Boolean).join(" "),weight:"semibold",children:n})},h6:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,as:"h6",className:["nk-markdown__heading",r].filter(Boolean).join(" "),weight:"medium",children:n})},hr:function(t){const{dangerouslySetInnerHTML:n,node:r,...u}=t;return d.jsx(Q.Divider,{...u})},img:function(t){const{alt:n,className:r,dangerouslySetInnerHTML:u,node:c,src:i,srcSet:l,...b}=t,x=R(typeof i=="string"?i:"",e,o),L=v(l,e,o);return x?d.jsx("img",{...b,alt:n??"",className:["nk-markdown__image",r].filter(Boolean).join(" "),decoding:"async",loading:"lazy",src:x,srcSet:L}):n?d.jsx("span",{className:"nk-markdown__blocked-image",children:n}):null},input:function(t){const{checked:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t;return d.jsxs(d.Fragment,{children:[d.jsx("input",{...i,"aria-label":n?"Completed task":"Incomplete task",checked:n,className:["nk-markdown__task-control","nk-markdown__visually-hidden",r].filter(Boolean).join(" "),disabled:!0,readOnly:!0,type:"checkbox"}),d.jsx("span",{"aria-hidden":"true",className:"nk-markdown__task",children:n?"☒":"☐"})]})},li:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t,l=(r==null?void 0:r.split(/\s+/).includes("task-list-item"))??!1;return d.jsx("li",{...i,className:["nk-markdown__list-item",l?"nk-markdown__list-item--task":void 0].filter(Boolean).join(" "),children:n})},ol:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t,l=(r==null?void 0:r.split(/\s+/).includes("contains-task-list"))??!1;return d.jsx("ol",{...i,className:["nk-markdown__list","nk-markdown__list--ordered",l?"nk-markdown__list--tasks":void 0].filter(Boolean).join(" "),children:n})},p:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,className:["nk-markdown__paragraph",r].filter(Boolean).join(" "),children:n})},picture:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t;return d.jsx("picture",{...i,className:["nk-markdown__picture",r].filter(Boolean).join(" "),children:n})},pre:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,ref:c,...i}=t,l=ie(u);return l?d.jsx(X.Code,{code:l.content,codeProps:l.codeProps,language:ee(l.codeProps.className),maxHighlightLength:a,maxLineCount:f,preProps:i}):d.jsx("pre",{...i,children:n})},source:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,srcSet:c,...i}=t,l=v(c,e,o);return l?d.jsx("source",{...i,srcSet:l}):null},table:function(t){const{children:n,dangerouslySetInnerHTML:r,frame:u,node:c,...i}=t;return d.jsx(_.Table,{...i,children:n})},tbody:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,...c}=t;return d.jsx(_.Table.Body,{...c,children:n})},td:function(t){const{align:n,children:r,dangerouslySetInnerHTML:u,node:c,style:i,...l}=t;return d.jsx(_.Table.Cell,{...l,align:C((i==null?void 0:i.textAlign)??n),children:r})},th:function(t){const{align:n,children:r,dangerouslySetInnerHTML:u,node:c,style:i,...l}=t;return d.jsx(_.Table.HeaderCell,{...l,align:C((i==null?void 0:i.textAlign)??n),children:r})},thead:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,...c}=t;return d.jsx(_.Table.Head,{...c,children:n})},tr:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,onClick:c,...i}=t;return d.jsx(_.Table.Row,{...i,children:n})},ul:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t,l=(r==null?void 0:r.split(/\s+/).includes("contains-task-list"))??!1;return d.jsx("ul",{...i,className:["nk-markdown__list","nk-markdown__list--unordered",l?"nk-markdown__list--tasks":void 0].filter(Boolean).join(" "),children:n})}}}const le={clobberPrefix:""},ce=25e3,de="Markdown content exceeds the rendering limit.";function ue(e,o){if(!e.startsWith("#")||e.length===1)return null;let a=e.slice(1);try{a=decodeURIComponent(a)}catch{return null}return o.getElementById(a)}function me(e){const o=e.tabIndex<0&&!e.hasAttribute("tabindex");if(o&&e.setAttribute("tabindex","-1"),e.focus({preventScroll:!0}),!!o){if(e.ownerDocument.activeElement!==e){e.removeAttribute("tabindex");return}e.addEventListener("blur",()=>e.removeAttribute("tabindex"),{once:!0})}}function fe(e,o){const a=e,f=new a.HashChangeEvent("hashchange",{newURL:e.location.href,oldURL:o});e.dispatchEvent(f)}function he(e){return e===null?null:Number.isFinite(e)?Math.max(0,Math.floor(e)):0}const pe=M.forwardRef(function(o,a){const{allowedImageSources:f,anchorPrefix:m="",className:s,content:t,dangerouslySetInnerHTML:n,imageBaseUrl:r,maxCodeHighlightLength:u,maxCodeLineCount:c,maxContentLength:i=ce,rehypePlugins:l,remarkPlugins:b,scrollOffset:g=128,style:x,...L}=o,P=he(i),D=P!==null&&t.length>P,j=M.useCallback(h=>{var N;if(h.defaultPrevented||h.button!==0||h.metaKey||h.ctrlKey||h.shiftKey||h.altKey)return;const y=h.currentTarget.getAttribute("href");if(!y)return;const w=ue(y,h.currentTarget.ownerDocument);if(!w||typeof w.scrollIntoView!="function")return;const p=w.ownerDocument.defaultView;if(!p)return;h.preventDefault();const z=((N=p.matchMedia)==null?void 0:N.call(p,"(prefers-reduced-motion: reduce)").matches)??!1,F=g===null||z?"auto":"smooth",U=p.location.href,K=p.location.hash!==y;p.location.hash!==y&&p.history.pushState(p.history.state,"",y),me(w),w.scrollIntoView({behavior:F,block:"start"}),K&&fe(p,U)},[g]),O=M.useMemo(()=>ae(f,r,u,c,j),[f,j,r,u,c]),q=M.useMemo(()=>[J,...b??[]],[b]),$=M.useMemo(()=>[W,...l??[],oe,V,[se,{clobberPrefix:A,prefix:m}],[H,ne]],[m,l]),I={...x};if(g!==null){const h=Number.isFinite(g)?Math.max(0,g):0;I["--nk-markdown-scroll-offset"]=`${h}px`}return d.jsx("div",{...L,ref:a,className:["nk-markdown",s].filter(Boolean).join(" "),style:I,children:D?d.jsx(Y.Alert,{role:"alert",tone:"warning",children:de}):d.jsx(G,{allowedElements:B,components:O,rehypePlugins:$,remarkPlugins:q,remarkRehypeOptions:le,children:t})})});exports.default=pe;
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react/jsx-runtime"),M=require("react"),G=require("react-markdown"),W=require("rehype-raw"),H=require("rehype-sanitize"),V=require("rehype-slug"),J=require("remark-gfm"),Y=require("./Alert-LJDkNUqH.cjs"),X=require("./Code-f0GWveGp.cjs"),Q=require("./Divider-C7XGlr26.cjs"),_=require("./Table-XVrja-e5.cjs"),k=require("./Text-DWYlIcPj.cjs"),Z={bash:"Shell",c:"C","c++":"C++",cpp:"C++",css:"CSS",go:"Go",golang:"Go",html:"HTML",js:"JavaScript",javascript:"JavaScript",jsx:"JavaScript",json:"JSON",markdown:"Markdown",md:"Markdown",py:"Python",python:"Python",rb:"Ruby",ruby:"Ruby",rs:"Rust",rust:"Rust",sh:"Shell",shell:"Shell",sql:"SQL",ts:"TypeScript",tsx:"TypeScript",typescript:"TypeScript",xml:"HTML",yaml:"YAML",yml:"YAML"};function ee(e){var a;const o=(a=e==null?void 0:e.split(/\s+/).find(f=>f.startsWith("language-")))==null?void 0:a.slice(9).toLowerCase();return o?Z[o]:void 0}const A="md-",B=["a","blockquote","br","code","del","em","h1","h2","h3","h4","h5","h6","hr","img","input","li","ol","p","picture","pre","section","source","strong","sup","table","tbody","td","th","thead","tr","ul"],ne={...H.defaultSchema,allowComments:!1,allowDoctypes:!1,ancestors:{...H.defaultSchema.ancestors,source:["picture"]},attributes:{"*":["dir","id","lang","title"],a:["ariaDescribedBy","ariaLabel","dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href","hrefLang"],code:[["className",/^language-[\w+-]+$/]],h2:[["className","sr-only"]],img:["alt","height","src","srcSet","width"],input:["checked",["disabled",!0],"readOnly",["type","checkbox"]],li:[["className","task-list-item"]],ol:["start",["className","contains-task-list"]],section:["dataFootnotes",["className","footnotes"]],source:["media","srcSet","type"],td:["align","colSpan","rowSpan"],th:["align","colSpan","rowSpan","scope"],ul:[["className","contains-task-list"]]},clobber:H.defaultSchema.clobber,clobberPrefix:A,strip:["script","style"],tagNames:[...B]};function re(e,o){const a=o.flags.replace(/[gy]/g,"");return new RegExp(o.source,a).test(e)}function te(e){if(!e)return null;try{const o=new URL(e);return o.protocol!=="http:"&&o.protocol!=="https:"||o.username||o.password?null:o}catch{return null}}function R(e,o,a){if(e.includes("\\")||/[\u0000-\u0020\u007f]/.test(e)||o===void 0)return;const f=/^[a-z][a-z\d+.-]*:/i.test(e),m=e.startsWith("//");if(o==="*")return!f&&!m||/^https?:/i.test(e)||m?e:void 0;const s=Array.isArray(o)?o:[o],t=te(a);try{let n=null;if(f?n=new URL(e):t&&(n=new URL(e,t)),!n||n.protocol!=="http:"&&n.protocol!=="https:"||n.username||n.password)return;const r=n.href;return s.some(c=>re(r,c))?r:void 0}catch{return}}function v(e,o,a){if(!e)return;const m=e.split(",").map(s=>{const t=s.trim().split(/\s+/),[n,r]=t,u=r===void 0||/^(?:\d+w|(?:\d+(?:\.\d+)?|\.\d+)x)$/.test(r);if(t.length>2||!u||n===void 0||n.length===0)return null;const c=R(n,o,a);return c?`${c}${r?` ${r}`:""}`:null});if(!m.some(s=>s===null))return m.join(", ")}function oe(){function e(o){o.children=o.children.filter(a=>a.type!=="element"||a.tagName!=="input"||a.position===void 0),o.children.forEach(a=>{a.type==="element"&&e(a)})}return o=>e(o)}function S(e,o){return Array.isArray(e)?e.map(a=>typeof a=="string"?`${o}${a}`:a):typeof e=="string"?e.split(/\s+/).map(a=>`${o}${a}`).join(" "):e}function se(e){const{clobberPrefix:o,prefix:a}=e;function f(m){if(m.type==="element"){const{properties:s}=m;s.id=S(s.id,a),s.name=S(s.name,a),s.ariaDescribedBy=S(s.ariaDescribedBy,a),s.ariaLabelledBy=S(s.ariaLabelledBy,a),typeof s.href=="string"&&s.href.startsWith("#")&&(s.href=`#${o}${a}${s.href.slice(1)}`)}"children"in m&&m.children.forEach(f)}return m=>f(m)}function C(e){return e==="center"||e==="left"||e==="right"?e:void 0}function E(e){return e.type==="text"?e.value:"children"in e?e.children.map(E).join(""):""}function T(e){return typeof e=="string"?e:void 0}function ie(e){if(!e)return null;const o=e.children.find(n=>n.type==="element"&&n.tagName==="code");if(!o||e.children.some(n=>n!==o&&(n.type!=="text"||n.value.trim().length>0)))return null;const f=o.properties.className;let m;Array.isArray(f)?m=f.join(" "):typeof f=="string"&&(m=f);const s=o.children.map(E).join("").replace(/\n$/,"");return{codeProps:{className:m,dir:T(o.properties.dir),id:T(o.properties.id),lang:T(o.properties.lang),title:T(o.properties.title)},content:s}}function ae(e,o,a,f,m){return{a:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t;return d.jsx("a",{...i,className:["nk-markdown__link",r].filter(Boolean).join(" "),onClick:m,children:n})},blockquote:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,...c}=t;return d.jsx("blockquote",{...c,className:"nk-markdown__blockquote",children:n})},code:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t;return d.jsx("code",{...i,className:["nk-markdown__inline-code",r].filter(Boolean).join(" "),children:n})},h1:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,as:"h1",className:["nk-markdown__heading",r].filter(Boolean).join(" "),size:"heading",weight:"semibold",children:n})},h2:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,as:"h2",className:["nk-markdown__heading",r!=null&&r.split(/\s+/).includes("sr-only")?"nk-markdown__visually-hidden":void 0].filter(Boolean).join(" "),size:"title",weight:"semibold",children:n})},h3:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,as:"h3",className:["nk-markdown__heading",r].filter(Boolean).join(" "),size:"subtitle",weight:"semibold",children:n})},h4:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,as:"h4",className:["nk-markdown__heading",r].filter(Boolean).join(" "),weight:"semibold",children:n})},h5:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,as:"h5",className:["nk-markdown__heading",r].filter(Boolean).join(" "),weight:"semibold",children:n})},h6:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,as:"h6",className:["nk-markdown__heading",r].filter(Boolean).join(" "),weight:"medium",children:n})},hr:function(t){const{dangerouslySetInnerHTML:n,node:r,...u}=t;return d.jsx(Q.Divider,{...u})},img:function(t){const{alt:n,className:r,dangerouslySetInnerHTML:u,node:c,src:i,srcSet:l,...b}=t,x=R(typeof i=="string"?i:"",e,o),L=v(l,e,o);return x?d.jsx("img",{...b,alt:n??"",className:["nk-markdown__image",r].filter(Boolean).join(" "),decoding:"async",loading:"lazy",src:x,srcSet:L}):n?d.jsx("span",{className:"nk-markdown__blocked-image",children:n}):null},input:function(t){const{checked:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t;return d.jsxs(d.Fragment,{children:[d.jsx("input",{...i,"aria-label":n?"Completed task":"Incomplete task",checked:n,className:["nk-markdown__task-control","nk-markdown__visually-hidden",r].filter(Boolean).join(" "),disabled:!0,readOnly:!0,type:"checkbox"}),d.jsx("span",{"aria-hidden":"true",className:"nk-markdown__task",children:n?"☒":"☐"})]})},li:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t,l=(r==null?void 0:r.split(/\s+/).includes("task-list-item"))??!1;return d.jsx("li",{...i,className:["nk-markdown__list-item",l?"nk-markdown__list-item--task":void 0].filter(Boolean).join(" "),children:n})},ol:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t,l=(r==null?void 0:r.split(/\s+/).includes("contains-task-list"))??!1;return d.jsx("ol",{...i,className:["nk-markdown__list","nk-markdown__list--ordered",l?"nk-markdown__list--tasks":void 0].filter(Boolean).join(" "),children:n})},p:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,className:["nk-markdown__paragraph",r].filter(Boolean).join(" "),children:n})},picture:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t;return d.jsx("picture",{...i,className:["nk-markdown__picture",r].filter(Boolean).join(" "),children:n})},pre:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,ref:c,...i}=t,l=ie(u);return l?d.jsx(X.Code,{code:l.content,codeProps:l.codeProps,language:ee(l.codeProps.className),maxHighlightLength:a,maxLineCount:f,preProps:i}):d.jsx("pre",{...i,children:n})},source:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,srcSet:c,...i}=t,l=v(c,e,o);return l?d.jsx("source",{...i,srcSet:l}):null},table:function(t){const{children:n,dangerouslySetInnerHTML:r,frame:u,node:c,...i}=t;return d.jsx(_.Table,{...i,children:n})},tbody:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,...c}=t;return d.jsx(_.Table.Body,{...c,children:n})},td:function(t){const{align:n,children:r,dangerouslySetInnerHTML:u,node:c,style:i,...l}=t;return d.jsx(_.Table.Cell,{...l,align:C((i==null?void 0:i.textAlign)??n),children:r})},th:function(t){const{align:n,children:r,dangerouslySetInnerHTML:u,node:c,style:i,...l}=t;return d.jsx(_.Table.HeaderCell,{...l,align:C((i==null?void 0:i.textAlign)??n),children:r})},thead:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,...c}=t;return d.jsx(_.Table.Head,{...c,children:n})},tr:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,onClick:c,...i}=t;return d.jsx(_.Table.Row,{...i,children:n})},ul:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t,l=(r==null?void 0:r.split(/\s+/).includes("contains-task-list"))??!1;return d.jsx("ul",{...i,className:["nk-markdown__list","nk-markdown__list--unordered",l?"nk-markdown__list--tasks":void 0].filter(Boolean).join(" "),children:n})}}}const le={clobberPrefix:""},ce=25e3,de="Markdown content exceeds the rendering limit.";function ue(e,o){if(!e.startsWith("#")||e.length===1)return null;let a=e.slice(1);try{a=decodeURIComponent(a)}catch{return null}return o.getElementById(a)}function me(e){const o=e.tabIndex<0&&!e.hasAttribute("tabindex");if(o&&e.setAttribute("tabindex","-1"),e.focus({preventScroll:!0}),!!o){if(e.ownerDocument.activeElement!==e){e.removeAttribute("tabindex");return}e.addEventListener("blur",()=>e.removeAttribute("tabindex"),{once:!0})}}function fe(e,o){const a=e,f=new a.HashChangeEvent("hashchange",{newURL:e.location.href,oldURL:o});e.dispatchEvent(f)}function he(e){return e===null?null:Number.isFinite(e)?Math.max(0,Math.floor(e)):0}const pe=M.forwardRef(function(o,a){const{allowedImageSources:f,anchorPrefix:m="",className:s,content:t,dangerouslySetInnerHTML:n,imageBaseUrl:r,maxCodeHighlightLength:u,maxCodeLineCount:c,maxContentLength:i=ce,rehypePlugins:l,remarkPlugins:b,scrollOffset:g=128,style:x,...L}=o,P=he(i),D=P!==null&&t.length>P,j=M.useCallback(h=>{var N;if(h.defaultPrevented||h.button!==0||h.metaKey||h.ctrlKey||h.shiftKey||h.altKey)return;const y=h.currentTarget.getAttribute("href");if(!y)return;const w=ue(y,h.currentTarget.ownerDocument);if(!w||typeof w.scrollIntoView!="function")return;const p=w.ownerDocument.defaultView;if(!p)return;h.preventDefault();const z=((N=p.matchMedia)==null?void 0:N.call(p,"(prefers-reduced-motion: reduce)").matches)??!1,F=g===null||z?"auto":"smooth",U=p.location.href,K=p.location.hash!==y;p.location.hash!==y&&p.history.pushState(p.history.state,"",y),me(w),w.scrollIntoView({behavior:F,block:"start"}),K&&fe(p,U)},[g]),O=M.useMemo(()=>ae(f,r,u,c,j),[f,j,r,u,c]),q=M.useMemo(()=>[J,...b??[]],[b]),$=M.useMemo(()=>[W,...l??[],oe,V,[se,{clobberPrefix:A,prefix:m}],[H,ne]],[m,l]),I={...x};if(g!==null){const h=Number.isFinite(g)?Math.max(0,g):0;I["--nk-markdown-scroll-offset"]=`${h}px`}return d.jsx("div",{...L,ref:a,className:["nk-markdown",s].filter(Boolean).join(" "),style:I,children:D?d.jsx(Y.Alert,{role:"alert",tone:"warning",children:de}):d.jsx(G,{allowedElements:B,components:O,rehypePlugins:$,remarkPlugins:q,remarkRehypeOptions:le,children:t})})});exports.default=pe;
|
package/dist/Markdown.js
CHANGED
|
@@ -9,7 +9,7 @@ import ee from "remark-gfm";
|
|
|
9
9
|
import { A as ne } from "./Alert-DQ5CCE0N.js";
|
|
10
10
|
import { C as re } from "./Code-pROJjsiG.js";
|
|
11
11
|
import { D as te } from "./Divider-DZgpYpr-.js";
|
|
12
|
-
import { T as _ } from "./Table-
|
|
12
|
+
import { T as _ } from "./Table-vVaWCkk2.js";
|
|
13
13
|
import { T as k } from "./Text-rN6iDo0V.js";
|
|
14
14
|
const oe = {
|
|
15
15
|
bash: "Shell",
|
package/dist/Modal.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),s=require("react"),g=require("./effects-D98vUn6N.cjs"),$=require("./reference-C2guRuR0.cjs"),G=require("./Button-
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),s=require("react"),g=require("./effects-D98vUn6N.cjs"),$=require("./reference-C2guRuR0.cjs"),G=require("./Button-DYn8YDP3.cjs"),r=require("./usePresence-Dm0mls5p.cjs"),H=require("./useFocusTrap-CrMcAu8s.cjs"),J=require("./useScrollLock-Dy8MZaSn.cjs"),K=require("./Surface-BttJYSDt.cjs"),Q=require("./Text-DWYlIcPj.cjs");function U(c,n,l){n.current=c,$.assignElementReference(l,c)}function V(c){const{"aria-label":n,"aria-labelledby":l,children:a,className:v,closeButtonLabel:f="Close modal",exitable:i=!0,forwardedReference:u,initialFocusReference:d,lockScroll:m=!0,onClose:e,open:o,ownerDocument:R,presenceState:k,restoreFocus:q=!0,role:F="dialog",style:I,title:b,trapFocus:S=!0,...P}=c,j=s.useRef(null),_=s.useRef(null),w=s.useContext(r.FocusScopeContext),B=`${s.useId()}-title`,[y,E]=s.useState(null),p=g.useBoundary("Modal").boundaryElement,x=r.useOverlayLayer(!0,p),M=s.useMemo(()=>[j],[]),h=!!(b!=null&&b.trim()),N=d??(h?_:void 0),O=l??(n===void 0&&h?B:void 0),T=s.useCallback(L=>{U(L,j,u),E(L)},[u]);g.useIsomorphicLayoutEffect(()=>{y&&(y.inert=!o)},[y,o]);const C=s.useCallback(()=>{e==null||e("escape")},[e]),z=s.useCallback(()=>{e==null||e("outside")},[e]);r.useDismissableLayer({boundary:p,active:o,boundaries:M,dismissOnEscape:i,dismissOnPointerDownOutside:i,layerId:x.id,onEscapeDismiss:C,onPointerDownOutsideDismiss:z,ownerDocument:R});const A=H.useFocusTrap({boundary:p,active:o&&S,container:y,initialFocusReference:N,layerId:x.id,restoreFocus:q});J.useScrollLock(m,R,p);const D=i?t.jsx(G.Button,{"aria-label":f,className:"nk-modal__close",icon:"cross",onClick:()=>e==null?void 0:e("close-button"),shape:"rectangle",type:"button",variant:"ghost"}):null;return t.jsx(r.FocusScopeContext.Provider,{value:o&&S?A:w,children:t.jsx("div",{className:"nk-modal__overlay","data-state":k,role:"presentation",style:{zIndex:x.zIndex},children:t.jsx("div",{className:"nk-modal__viewport",children:t.jsxs(K.Surface,{...P,ref:T,"aria-hidden":o?void 0:!0,"aria-label":o?n:void 0,"aria-labelledby":o?O:void 0,"aria-modal":o?"true":void 0,className:["nk-modal",v].filter(Boolean).join(" "),"data-state":k,role:o?F:void 0,style:I,tabIndex:-1,children:[h?t.jsxs("div",{className:"nk-modal__header",children:[t.jsx(Q.Text,{as:"h2",className:"nk-modal__title",id:B,ref:_,size:"subtitle",tabIndex:-1,weight:"semibold",children:b}),D]}):D,a]})})})})}const W=s.forwardRef(function(n,l){const{open:a}=n,v=g.useBoundary("Modal"),f=s.useRef(n);a&&(f.current=n);const i=a?n:f.current,u=r.usePresence(a),d=v.boundaryElement,m=(d==null?void 0:d.ownerDocument)??(typeof document>"u"?null:document);return!u.present||!m?null:t.jsx(r.Portal,{children:t.jsx(V,{...i,forwardedReference:l,open:a,ownerDocument:m,presenceState:u.state==="closing"?"closing":"open"})})});exports.default=W;
|
package/dist/Modal.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx as s, jsxs as _ } from "react/jsx-runtime";
|
|
|
3
3
|
import { forwardRef as H, useRef as g, useContext as J, useId as K, useState as Q, useMemo as U, useCallback as h } from "react";
|
|
4
4
|
import { u as E, a as V } from "./effects-DGbA6Q2O.js";
|
|
5
5
|
import { a as W } from "./reference-CXMr27nM.js";
|
|
6
|
-
import { B as X } from "./Button-
|
|
6
|
+
import { B as X } from "./Button-yBHFKYew.js";
|
|
7
7
|
import { b as Y, P as Z, F as w, c as ee, d as oe } from "./usePresence-BTRY1_l-.js";
|
|
8
8
|
import { u as ae } from "./useFocusTrap-BxPazAL6.js";
|
|
9
9
|
import { u as se } from "./useScrollLock-Drd7OZRC.js";
|
package/dist/Select.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react/jsx-runtime"),r=require("react"),J=require("./effects-D98vUn6N.cjs"),z=require("./aria-DM-xYEHQ.cjs"),xe=require("./reference-C2guRuR0.cjs"),H=require("./Icon-
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react/jsx-runtime"),r=require("react"),J=require("./effects-D98vUn6N.cjs"),z=require("./aria-DM-xYEHQ.cjs"),xe=require("./reference-C2guRuR0.cjs"),H=require("./Icon-bIPc7jK4.cjs"),U=require("./usePresence-Dm0mls5p.cjs"),Ie=require("./useAnchoredPosition-D7GRFzoX.cjs");function ge(t){const{form:n,onReset:s,resetValue:a,triggerReference:o}=t,l=r.useRef(null);return r.useEffect(()=>{var u;const i=(u=o.current)==null?void 0:u.form;if(!i)return;function h(){const b=l.current;if(b){const y=Array.from(b.options),g=y.find(x=>x.value===a)??y[0];y.forEach(x=>{x.defaultSelected=x===g})}s()}return i.addEventListener("reset",h),()=>i.removeEventListener("reset",h)},[n,s,a,o]),l}const M=8,F=4,ke=160,we=72;function Ee(t,n,s){const a=s.bottom-t.bottom-F-M,o=t.top-s.top-F-M,l=a<ke&&o>a,i=Math.max(we,l?o:a),h=Math.max(t.width,(n==null?void 0:n.width)??t.width),u=s.left+M,b=Math.min(Math.max(u,t.left),Math.max(u,s.right-M-h)),y=l?Math.max(s.top+M,t.top-F-Math.min((n==null?void 0:n.height)??i,i)):t.bottom+F;return{left:b,maxHeight:i,minWidth:t.width,top:y}}function Re(t,n,s,a){const o=r.useCallback(l=>{const{panelBounds:i,triggerBounds:h,visibleBounds:u}=l;return Ee(h,i,u)},[]);return Ie.useAnchoredPosition({active:t,boundary:a,fit:o,panel:s,trigger:n})}const _e=500;function Oe(t){const n=r.useRef(""),s=r.useRef(null),a=r.useRef(null);return r.useEffect(()=>()=>{const o=a.current;o&&s.current!==null&&o.clearTimeout(s.current)},[]),r.useCallback(o=>{var u;const l=(u=t.current)==null?void 0:u.ownerDocument.defaultView;if(!l)return null;a.current=l;const i=n.current+o,h=Array.from(i).every(b=>b===o);return n.current=h?o:i,s.current!==null&&l.clearTimeout(s.current),s.current=l.setTimeout(()=>{n.current="",s.current=null},_e),n.current},[t])}function Q(t,n,s){if(t.length===0)return-1;for(let a=1;a<=t.length;a+=1){const o=(n+s*a+t.length)%t.length;if(!t[o].disabled)return o}return-1}function Se(t,n,s){for(let a=1;a<=t.length;a+=1){const o=(s+a+t.length)%t.length,l=t[o];if(!l.disabled&&l.label.toLocaleLowerCase().startsWith(n))return o}return-1}function De(t){const n=new Set;t.forEach(s=>{if(n.has(s.value))throw new Error("Select option values must be unique");n.add(s.value)})}function je(t){const{active:n,closeOnEscape:s,closeOnOutsideInteraction:a,highlightedIndex:o,id:l,listboxReference:i,onEscapeDismiss:h,onEscapeKeyDown:u,onHighlight:b,onOutsideDismiss:y,onPointerDownOutside:g,onSelect:x,options:k,ownerDocument:P,position:R,selectedValue:_,state:S,triggerReference:q}=t,m=r.useRef(null),V=J.useBoundary("Select").boundaryElement,O=U.useOverlayLayer(!0,V),W=r.useMemo(()=>[q,m],[q]),$=r.useCallback(f=>{m.current=f,i(f)},[i]);return U.useDismissableLayer({active:n,boundaries:W,boundary:V,dismissOnEscape:s,dismissOnPointerDownOutside:a,layerId:O.id,onEscapeDismiss:h,onEscapeKeyDown:u,onPointerDownOutside:g,onPointerDownOutsideDismiss:y,ownerDocument:P}),d.jsx("div",{"aria-hidden":n?void 0:!0,"aria-labelledby":l,className:"nk-select__listbox","data-state":S,id:`${l}-listbox`,ref:$,role:"listbox",style:R?{left:R.left,maxHeight:R.maxHeight,minWidth:R.minWidth,top:R.top,zIndex:O.zIndex}:{visibility:"hidden",zIndex:O.zIndex},children:k.map((f,C)=>d.jsxs("div",{"aria-disabled":f.disabled||void 0,"aria-selected":f.value===_,className:"nk-select__option","data-highlighted":C===o||void 0,"data-selected":f.value===_||void 0,id:`${l}-option-${C}`,onPointerDown:X=>{X.preventDefault(),f.disabled||x(f)},onPointerMove:()=>{f.disabled||b(C)},role:"option",children:[f.icon?d.jsx(H.Icon,{type:f.icon}):null,d.jsx("span",{className:"nk-select__option-label",children:f.label}),f.value===_?d.jsx(H.Icon,{className:"nk-select__check",type:"checkmark"}):null]},f.value))})}function Le(t,n,s){n.current=t,xe.assignElementReference(s,t)}function Pe(t){var ee;const{"aria-invalid":n,className:s,closeOnEscape:a=!0,closeOnOutsideInteraction:o=!0,defaultValue:l="",disabled:i=!1,displayOverride:h,form:u,forwardedReference:b,id:y,invalid:g=!1,name:x,onChange:k,onClick:P,onEscapeKeyDown:R,onKeyDown:_,onOpenChange:S,onPointerDownOutside:q,options:m,placeholder:V,required:O=!1,style:W,value:$,width:f,...C}=t;De(m);const X=r.useId(),D=y??X,I=r.useRef(null),[N,ne]=r.useState(null),[v,se]=r.useState(!1),[w,A]=r.useState(-1),[ae,Z]=r.useState(l),j=$!==void 0,L=j?$:ae,le=m.find(e=>e.value===L),ie=g||z.hasInvalidState(n),re=z.resolveAriaInvalid(g,n),Y=U.usePresence(v),T=((ee=I.current)==null?void 0:ee.ownerDocument)??(typeof document>"u"?null:document),oe=J.useBoundary("Select").boundaryElement,ce=Re(Y.present,I.current,N,oe),de=Oe(I),ue=f===void 0?W:{...W,width:f},G=h??le,fe=r.useCallback(e=>Le(e,I,b),[b]),p=r.useCallback(e=>{v!==e&&(se(e),S==null||S(e))},[S,v]),me=r.useCallback(()=>{j||Z(l),p(!1)},[l,j,p]),he=ge({form:u,onReset:me,resetValue:j?L:l,triggerReference:I}),K=r.useCallback((e=1)=>{const c=m.findIndex(te=>te.value===L&&!te.disabled),E=e===1?-1:m.length;A(c>=0?c:Q(m,E,e)),p(!0)},[m,L,p]),B=r.useCallback(e=>{var c;i||e.disabled||(j||Z(e.value),p(!1),(c=I.current)==null||c.focus(),k==null||k(e.value))},[i,j,k,p]),ve=r.useCallback(()=>{var e;p(!1),(e=I.current)==null||e.focus()},[p]),pe=r.useCallback(()=>{p(!1)},[p]);function be(e){P==null||P(e),!(e.defaultPrevented||i)&&(v?p(!1):K())}function ye(e){if(_==null||_(e),!(e.defaultPrevented||i)){if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault();const c=e.key==="ArrowDown"?1:-1;v?A(E=>Q(m,E,c)):K(c);return}if(e.key==="Home"||e.key==="End"){if(e.preventDefault(),!v)K(e.key==="Home"?1:-1);else{const c=e.key==="Home"?1:-1,E=c===1?-1:m.length;A(Q(m,E,c))}return}if(e.key==="Enter"||e.key===" "){e.preventDefault();const c=m[w];v&&c?B(c):v||K();return}if(e.key==="Tab"){p(!1);return}if(e.key.length===1&&!e.altKey&&!e.ctrlKey&&!e.metaKey){const c=de(e.key.toLocaleLowerCase());if(c===null)return;const E=Se(m,c,w);E>=0&&(e.preventDefault(),v||p(!0),A(E))}}}return r.useEffect(()=>{i&&p(!1)},[i,p]),r.useEffect(()=>{var e;if(v&&w>=0){const c=T==null?void 0:T.getElementById(`${D}-option-${w}`);c&&(N!=null&&N.contains(c))&&((e=c.scrollIntoView)==null||e.call(c,{block:"nearest"}))}},[w,D,N,v]),d.jsxs("span",{className:["nk-select",s].filter(Boolean).join(" "),"data-disabled":i||void 0,"data-invalid":ie||void 0,"data-mode":"custom","data-open":v||void 0,style:ue,children:[d.jsxs("button",{...C,ref:fe,"aria-activedescendant":v&&w>=0?`${D}-option-${w}`:void 0,"aria-controls":`${D}-listbox`,"aria-expanded":v,"aria-haspopup":"listbox","aria-invalid":re,"aria-required":O||void 0,"aria-autocomplete":"none",className:"nk-select__trigger",disabled:i,form:u,id:D,onClick:be,onKeyDown:ye,role:"combobox",type:"button",children:[G?d.jsxs("span",{className:"nk-select__value",children:[G.icon?d.jsx(H.Icon,{type:G.icon}):null,d.jsx("span",{className:"nk-select__value-label",children:G.label})]}):d.jsx("span",{className:"nk-select__placeholder",children:V}),d.jsx(H.Icon,{className:"nk-select__icon",type:"chevron-down"})]}),x||O?d.jsxs("select",{ref:he,"aria-hidden":"true",className:"nk-select__form-control",disabled:i,form:u,name:x,onChange:()=>{},onInvalid:e=>{var c;e.preventDefault(),(c=I.current)==null||c.focus()},required:O,tabIndex:-1,value:L,children:[d.jsx("option",{value:""}),m.map(e=>d.jsx("option",{disabled:e.disabled,value:e.value,children:e.label},e.value))]}):null,Y.present&&T?d.jsx(U.Portal,{children:d.jsx(je,{active:v,closeOnEscape:a,closeOnOutsideInteraction:o,highlightedIndex:w,id:D,listboxReference:ne,onEscapeDismiss:ve,onEscapeKeyDown:R,onHighlight:A,onOutsideDismiss:pe,onPointerDownOutside:q,onSelect:B,options:m,ownerDocument:T,position:ce,selectedValue:L,state:Y.state==="closing"?"closing":"open",triggerReference:I})}):null]})}function Ce(t){const{"aria-invalid":n,children:s,className:a,defaultValue:o,disabled:l=!1,forwardedReference:i,invalid:h=!1,placeholder:u,style:b,value:y,...g}=t,x=z.resolveAriaInvalid(h,n),k=h||z.hasInvalidState(n);return d.jsxs("span",{className:["nk-select",a].filter(Boolean).join(" "),"data-disabled":l||void 0,"data-invalid":k||void 0,"data-mode":"native",style:b,children:[d.jsxs("select",{...g,ref:i,"aria-invalid":x,className:"nk-select__control",defaultValue:y===void 0?o??(u!==void 0?"":void 0):void 0,disabled:l,value:y,children:[u!==void 0?d.jsx("option",{disabled:!0,value:"",children:u}):null,s]}),d.jsx(H.Icon,{className:"nk-select__icon",type:"chevron-down"})]})}const Ne=r.forwardRef(function(n,s){const{options:a}=n;return J.useBoundary("Select"),a!==void 0?d.jsx(Pe,{...n,forwardedReference:s}):d.jsx(Ce,{...n,forwardedReference:s})});exports.default=Ne;
|
package/dist/Select.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useRef as T, useEffect as Y, useCallback as I, useMemo as ke, useId as
|
|
|
4
4
|
import { u as B } from "./effects-DGbA6Q2O.js";
|
|
5
5
|
import { h as le, r as ie } from "./aria-Bv-xVREf.js";
|
|
6
6
|
import { a as De } from "./reference-CXMr27nM.js";
|
|
7
|
-
import { I as $ } from "./Icon-
|
|
7
|
+
import { I as $ } from "./Icon-hYw7-DvR.js";
|
|
8
8
|
import { c as Oe, d as Re, b as Se, P as Le } from "./usePresence-BTRY1_l-.js";
|
|
9
9
|
import { u as Ne } from "./useAnchoredPosition-C0VS7hm6.js";
|
|
10
10
|
function Pe(t) {
|
package/dist/Sidebar.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),t=require("react"),R=require("./effects-D98vUn6N.cjs"),H=require("./reference-C2guRuR0.cjs"),P=require("./usePresence-Dm0mls5p.cjs"),z=require("./Button-CTzvBhGH.cjs"),U=require("./Text-DWYlIcPj.cjs"),ae=require("./useFocusTrap-CrMcAu8s.cjs"),oe=require("./useScrollLock-Dy8MZaSn.cjs"),ie=require("./aria-DM-xYEHQ.cjs"),le=require("./useFloatingPosition-DQgw-w_Z.cjs"),ce=require("./Avatar-Belo7qAY.cjs"),ue=require("./Spinner-BE0F4y2S.cjs"),de=require("./Tooltip-CxcO3Vu-.cjs"),fe=require("./units-CpnLv2H4.cjs");function be(s){const{label:n,onToggle:e,panelId:r,reference:b,side:u,sidebarOpen:i}=s;return l.jsx(z.Button,{ref:b,"aria-controls":r,"aria-expanded":i,"aria-haspopup":"dialog","aria-label":n,className:"nk-sidebar__fallback-trigger","data-side":u,icon:"burger",variant:"secondary",size:"large",onClick:e})}const q=new WeakMap;function Z(s){const n=q.get(s);if(n)return n;const e={listeners:new Set,owner:null,state:void 0};return q.set(s,e),e}function pe(s,n,e){const r=Z(s);return r.owner!==null&&r.owner!==n?!1:(r.owner=n,r.state=e,r.listeners.forEach(b=>b()),!0)}function he(s,n){const e=q.get(s);!e||e.owner!==n||(e.owner=null,e.state=void 0,e.listeners.forEach(r=>r()))}function me(s){var n;return s?(n=q.get(s))==null?void 0:n.state:void 0}function ge(s,n){if(!s)return()=>{};const e=Z(s);return e.listeners.add(n),()=>{e.listeners.delete(n)}}const ve=()=>{};function O(s){const n=R.useBoundary(s).boundaryElement,e=t.useCallback(b=>ge(n,b),[n]),r=t.useCallback(()=>me(n),[n]);return t.useSyncExternalStore(e,r,ve)}function D(s,n){return s==="both"||s===(n==="overlay"?"overlay":"inline")}const W=t.forwardRef(function(n,e){const{children:r,className:b,presentation:u="both",...i}=n,o=O("Sidebar.Footer");return D(u,o==null?void 0:o.presentation)?l.jsx("div",{...i,ref:e,className:["nk-sidebar__footer",b].filter(Boolean).join(" "),children:r}):null}),ye=t.forwardRef(function(n,e){const{"aria-label":r,"aria-labelledby":b,children:u,className:i,label:o,presentation:y="both",...p}=n,S=O("Sidebar.Group"),c=`${t.useId()}-label`,h=o!=null&&typeof o!="boolean"&&(typeof o!="string"||o.trim()!=="");if(!D(y,S==null?void 0:S.presentation))return null;const d=b??(r===void 0&&h?c:void 0),a=!!(r??d);return t.createElement(a?"nav":"div",{...p,ref:e,"aria-label":r,"aria-labelledby":d,className:["nk-sidebar__group",i].filter(Boolean).join(" ")},h?l.jsx(U.Text,{as:"h2",className:"nk-sidebar__group-label",id:c,size:"subtitle",weight:"medium",children:o}):null,l.jsx("ul",{className:"nk-sidebar__list",children:u}))}),Se=t.forwardRef(function(n,e){const{children:r,className:b,presentation:u="both",...i}=n,o=O("Sidebar.Header");return D(u,o==null?void 0:o.presentation)?l.jsx("div",{...i,ref:e,className:["nk-sidebar__header",b].filter(Boolean).join(" "),children:r}):null}),ke=t.forwardRef(function(n,e){const{active:r=!1,as:b,children:u,className:i,disabled:o=!1,icon:y,onClick:p,presentation:S="both",type:c,...h}=n,d=O("Sidebar.Item"),a=b??"button",f=a==="button",m=h,E=m.href!==void 0||m.to!==void 0;function v(k){if(o){k.preventDefault();return}p==null||p(k),d!=null&&d.open&&d.presentation==="overlay"&&!k.defaultPrevented&&d.requestOpenChange(!1,"item")}return D(S,d==null?void 0:d.presentation)?l.jsx("li",{className:"nk-sidebar__item-container",children:l.jsx(z.Button,{...h,ref:e,"aria-current":r?E?"page":"true":void 0,as:a,className:["nk-sidebar__item",i].filter(Boolean).join(" "),"data-active":r||void 0,disabled:o,fullWidth:!0,href:m.href,icon:y,onClick:v,shape:"rectangle",size:"small",textAlignment:"left",type:f?c??"button":c,variant:"ghost",children:l.jsx("span",{className:"nk-sidebar__item-label",children:u})})}):null}),Ee=1;function Ce(s){return s==null?void 0:s.ResizeObserver}function xe(s){return s==null?void 0:s.MutationObserver}function _e(){const[s,n]=t.useState(!1),e=t.useRef(null),r=t.useCallback(i=>{const o=i.scrollHeight-i.scrollTop-i.clientHeight;n(o>Ee)},[]),b=t.useCallback(i=>{var m;if((m=e.current)==null||m.call(e),e.current=null,!i)return;const o=i;r(o);function y(){r(o)}const p=o.ownerDocument.defaultView;p==null||p.addEventListener("resize",y);const S=Ce(p),c=S?new S(y):void 0;function h(){c==null||c.disconnect(),c==null||c.observe(o);for(const E of o.children)c==null||c.observe(E)}h();function d(E){E.some(k=>k.type==="childList")&&h(),y()}const a=xe(p),f=a?new a(d):void 0;f==null||f.observe(o,{attributeFilter:["class","hidden","style"],characterData:!0,childList:!0,subtree:!0}),e.current=()=>{p==null||p.removeEventListener("resize",y),c==null||c.disconnect(),f==null||f.disconnect()}},[r]),u=t.useCallback(i=>{r(i.currentTarget)},[r]);return{containerReference:b,contentBelow:s,handleScroll:u}}function je(s,n){for(const e of t.Children.toArray(s)){if(t.isValidElement(e)&&e.type===t.Fragment){const r=ee(e.props.children);r.bodyChildren.length>0&&n.bodyChildren.push(t.cloneElement(e,void 0,...r.bodyChildren)),r.footerChildren.length>0&&n.footerChildren.push(t.cloneElement(e,void 0,...r.footerChildren));continue}t.isValidElement(e)&&e.type===W?n.footerChildren.push(e):n.bodyChildren.push(e)}}function ee(s){const n={bodyChildren:[],footerChildren:[]};return je(s,n),n}function ne(s){const{"aria-label":n,"aria-labelledby":e,children:r,className:b,height:u,open:i,panelId:o,panelReference:y,presentation:p,side:S,state:c,style:h,width:d,...a}=s,{containerReference:f,contentBelow:m,handleScroll:E}=_e(),v=p==="overlay",{bodyChildren:k,footerChildren:I}=ee(r),L=n??(e===void 0?"Sidebar":void 0),T=v&&i;let j=h;return(d!==void 0||u!==void 0)&&(j={...h},u!==void 0&&(j["--nk-sidebar-height"]=u),d!==void 0&&(j["--nk-sidebar-width"]=d)),l.jsxs("aside",{...a,ref:y,"aria-hidden":v&&!i?!0:void 0,"aria-label":v&&!i?void 0:L,"aria-labelledby":v&&!i?void 0:e,"aria-modal":T?"true":void 0,className:["nk-sidebar",b].filter(Boolean).join(" "),"data-responsive":p==="pending"||void 0,"data-side":S,"data-state":c,"data-variant":v?"overlay":"inline",id:o,role:T?"dialog":void 0,style:j,tabIndex:v?-1:void 0,children:[l.jsx("div",{ref:f,className:"nk-sidebar__body","data-content-below":m||void 0,onScroll:E,children:k}),I]})}function Ne(s){const{boundaries:n,initialFocusReference:e,lockScroll:r,ownerDocument:b,panelReference:u,presenceState:i,restoreFocus:o,sidebar:y,side:p,...S}=s,{id:c,open:h,requestOpenChange:d}=y,a=t.useContext(P.FocusScopeContext),f=t.useRef(null),[m,E]=t.useState(null),v=R.useBoundary("Sidebar").boundaryElement,k=P.useOverlayLayer(!0,v),I=t.useCallback(B=>{f.current=B,u(B),E(B)},[u]);R.useIsomorphicLayoutEffect(()=>{m&&(m.inert=!h)},[h,m]);const L=t.useCallback(()=>{d(!1,"escape")},[d]),T=t.useCallback(()=>{d(!1,"outside")},[d]);P.useDismissableLayer({boundary:v,active:h,boundaries:n,dismissOnEscape:!0,dismissOnPointerDownOutside:!0,layerId:k.id,onEscapeDismiss:L,onPointerDownOutsideDismiss:T,ownerDocument:b});const j=ae.useFocusTrap({boundary:v,active:h,container:m,initialFocusReference:e??f,layerId:k.id,restoreFocus:o});return oe.useScrollLock(r&&h,b,v),l.jsx(P.FocusScopeContext.Provider,{value:h?j:a,children:l.jsx("div",{className:"nk-sidebar__overlay","data-side":p,"data-state":i,role:"presentation",style:{zIndex:k.zIndex},children:l.jsx(ne,{...S,open:h,panelId:c,panelReference:I,presentation:"overlay",side:p,state:i})})})}function Re(s){const{children:n}=s;if(n.type===t.Fragment)throw new Error("Sidebar.Trigger requires a single non-Fragment child");const e=O("Sidebar.Trigger"),r=n.props,b=H.getElementReference(n),u=e==null?void 0:e.registerTrigger,i=e==null?void 0:e.unregisterTrigger,o=t.useRef(null),y=t.useCallback(f=>{const m=o.current;m&&m!==f&&(i==null||i(m)),o.current=f,f&&(u==null||u(f)),H.assignElementReference(b,f)},[b,u,i]),p=t.useCallback(f=>{f.defaultPrevented||!e||e.requestOpenChange(!e.open,"trigger")},[e]);if(!e)return null;const{id:S,open:c,presentation:h,variant:d}=e,a=c&&h==="overlay";return t.cloneElement(n,le.resolveTriggerOverrides(r,{"aria-controls":a?ie.mergeIdentifiers(r["aria-controls"],S):r["aria-controls"],"aria-expanded":c,"aria-haspopup":r["aria-haspopup"]??"dialog",className:"nk-sidebar__trigger","data-sidebar-variant":d,onClick:p,ref:y}))}const Pe=t.forwardRef(function(n,e){const{actions:r,className:b,description:u,image:i,loading:o=!1,name:y,onClick:p,...S}=n,c=u!=null&&typeof u!="boolean",h=l.jsxs(l.Fragment,{children:[l.jsx(ce.Avatar,{alt:y,"aria-hidden":!0,className:"nk-sidebar__user-avatar",image:i}),l.jsxs("span",{className:"nk-sidebar__user-text",children:[l.jsx(U.Text,{as:"span",className:"nk-sidebar__user-name",children:y}),c?l.jsx(U.Text,{as:"span",className:"nk-sidebar__user-description",size:"caption",tone:"muted",children:u}):null]})]});return l.jsx("div",{...S,ref:e,className:["nk-sidebar__user",b].filter(Boolean).join(" "),children:o?l.jsx(ue.Spinner,{className:"nk-sidebar__user-spinner",size:16}):l.jsxs(l.Fragment,{children:[p?l.jsx("button",{className:"nk-sidebar__user-details",onClick:p,type:"button",children:h}):l.jsx("div",{className:"nk-sidebar__user-details",children:h}),r!==void 0&&r.length>0?l.jsx("div",{className:"nk-sidebar__user-actions",children:r.map(d=>{const{"aria-label":a,icon:f,label:m,...E}=d;return l.jsx(de.Tooltip2,{content:m,children:l.jsx(z.Button,{...E,"aria-label":a??m,className:"nk-sidebar__user-action",icon:f,shape:"rectangle",type:"button",variant:"ghost"})},m)})}):null]})})}),Te=()=>()=>{},X=()=>{};function Ie(s,n){const e=s==="responsive"?n:void 0,r=t.useSyncExternalStore((e==null?void 0:e.subscribe)??Te,(e==null?void 0:e.read)??X,X);return s!=="responsive"?s:r===void 0?"pending":r>=fe.breakpoint("medium")?"inline":"overlay"}const Le=32,Be=t.forwardRef(function(n,e){var Q;const{defaultOpen:r=!1,height:b,initialFocusReference:u,lockScroll:i=!0,onOpenChange:o,open:y,restoreFocus:p=!0,side:S="left",variant:c="responsive",width:h,...d}=n,a=R.useBoundary("Sidebar"),f=`${t.useId()}-sidebar`,m=t.useRef(Symbol("nk-sidebar")).current,E=t.useRef(null),v=Ie(c,a==null?void 0:a.width),k=y!==void 0,[I,L]=t.useState(r),[T,j]=t.useState(0),[B,re]=t.useState(!1),G=t.useRef(null),N=k?y:I,w=t.useRef(o);R.useIsomorphicLayoutEffect(()=>{w.current=o});const F=t.useCallback((g,C)=>{var x;N!==g&&(k||L(g),(x=w.current)==null||x.call(w,g,C))},[k,N]),V=t.useCallback(g=>{E.current=g,H.assignElementReference(e,g)},[e]),_=t.useMemo(()=>[E],[]),$=t.useCallback(g=>{_.push({current:g}),j(C=>C+1)},[_]),K=t.useCallback(g=>{const C=_.findIndex(x=>x.current===g);C>0&&_.splice(C,1),j(x=>Math.max(x-1,0))},[_]),te=t.useCallback(g=>{const C=G.current;if(C&&C!==g){const x=_.findIndex(se=>se.current===C);x>0&&_.splice(x,1)}G.current=g,g&&_.push({current:g})},[_]),A=t.useMemo(()=>({id:f,open:N,presentation:v,registerTrigger:$,requestOpenChange:F,unregisterTrigger:K,variant:c}),[N,f,v,$,F,K,c]);R.useIsomorphicLayoutEffect(()=>{const g=a==null?void 0:a.boundaryElement;if(!g)return;if(pe(g,m,A)===!1)throw new Error("A Boundary supports one Sidebar. Neatkit resolves Trigger, Group, and Item interactions against the single Sidebar published to the nearest Boundary, so give each Sidebar a Boundary of its own.")},[a==null?void 0:a.boundaryElement,m,A]),R.useIsomorphicLayoutEffect(()=>{const g=a==null?void 0:a.boundaryElement;if(g)return()=>he(g,m)},[a==null?void 0:a.boundaryElement,m]),t.useEffect(()=>{v==="inline"&&F(!1,"variant")},[v,F]),t.useEffect(()=>{var x;const g=(x=a==null?void 0:a.boundaryElement)==null?void 0:x.ownerDocument.defaultView;if(!g)return;const C=g.setTimeout(()=>re(!0),Le);return()=>g.clearTimeout(C)},[a==null?void 0:a.boundaryElement]);const M=P.usePresence(N&&v==="overlay"),Y=((Q=a==null?void 0:a.boundaryElement)==null?void 0:Q.ownerDocument)??(typeof document>"u"?null:document);if(v!=="overlay")return l.jsx(ne,{...d,height:b,open:!1,panelId:f,panelReference:V,presentation:v,side:S,width:h});const J=B&&T===0?l.jsx(P.Portal,{children:l.jsx(be,{label:`Open ${d["aria-label"]??"Sidebar"}`,onToggle:()=>F(!N,"trigger"),panelId:M.present?f:void 0,reference:te,side:S,sidebarOpen:N})}):null;return!M.present||!Y?J:l.jsxs(l.Fragment,{children:[J,l.jsx(P.Portal,{children:l.jsx(Ne,{...d,boundaries:_,initialFocusReference:u,lockScroll:i,ownerDocument:Y,panelReference:V,presenceState:M.state==="closing"?"closing":"open",restoreFocus:p,side:S,sidebar:A,width:h})})]})}),Fe=Object.assign(Be,{Footer:W,Group:ye,Header:Se,Item:ke,Trigger:Re,User:Pe});exports.default=Fe;
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),t=require("react"),R=require("./effects-D98vUn6N.cjs"),H=require("./reference-C2guRuR0.cjs"),P=require("./usePresence-Dm0mls5p.cjs"),z=require("./Button-DYn8YDP3.cjs"),U=require("./Text-DWYlIcPj.cjs"),ae=require("./useFocusTrap-CrMcAu8s.cjs"),oe=require("./useScrollLock-Dy8MZaSn.cjs"),ie=require("./aria-DM-xYEHQ.cjs"),le=require("./useFloatingPosition-DQgw-w_Z.cjs"),ce=require("./Avatar-Belo7qAY.cjs"),ue=require("./Spinner-BE0F4y2S.cjs"),de=require("./Tooltip-CxcO3Vu-.cjs"),fe=require("./units-CpnLv2H4.cjs");function be(s){const{label:n,onToggle:e,panelId:r,reference:b,side:u,sidebarOpen:i}=s;return l.jsx(z.Button,{ref:b,"aria-controls":r,"aria-expanded":i,"aria-haspopup":"dialog","aria-label":n,className:"nk-sidebar__fallback-trigger","data-side":u,icon:"burger",variant:"secondary",size:"large",onClick:e})}const q=new WeakMap;function Z(s){const n=q.get(s);if(n)return n;const e={listeners:new Set,owner:null,state:void 0};return q.set(s,e),e}function pe(s,n,e){const r=Z(s);return r.owner!==null&&r.owner!==n?!1:(r.owner=n,r.state=e,r.listeners.forEach(b=>b()),!0)}function he(s,n){const e=q.get(s);!e||e.owner!==n||(e.owner=null,e.state=void 0,e.listeners.forEach(r=>r()))}function me(s){var n;return s?(n=q.get(s))==null?void 0:n.state:void 0}function ge(s,n){if(!s)return()=>{};const e=Z(s);return e.listeners.add(n),()=>{e.listeners.delete(n)}}const ve=()=>{};function O(s){const n=R.useBoundary(s).boundaryElement,e=t.useCallback(b=>ge(n,b),[n]),r=t.useCallback(()=>me(n),[n]);return t.useSyncExternalStore(e,r,ve)}function D(s,n){return s==="both"||s===(n==="overlay"?"overlay":"inline")}const W=t.forwardRef(function(n,e){const{children:r,className:b,presentation:u="both",...i}=n,o=O("Sidebar.Footer");return D(u,o==null?void 0:o.presentation)?l.jsx("div",{...i,ref:e,className:["nk-sidebar__footer",b].filter(Boolean).join(" "),children:r}):null}),ye=t.forwardRef(function(n,e){const{"aria-label":r,"aria-labelledby":b,children:u,className:i,label:o,presentation:y="both",...p}=n,S=O("Sidebar.Group"),c=`${t.useId()}-label`,h=o!=null&&typeof o!="boolean"&&(typeof o!="string"||o.trim()!=="");if(!D(y,S==null?void 0:S.presentation))return null;const d=b??(r===void 0&&h?c:void 0),a=!!(r??d);return t.createElement(a?"nav":"div",{...p,ref:e,"aria-label":r,"aria-labelledby":d,className:["nk-sidebar__group",i].filter(Boolean).join(" ")},h?l.jsx(U.Text,{as:"h2",className:"nk-sidebar__group-label",id:c,size:"subtitle",weight:"medium",children:o}):null,l.jsx("ul",{className:"nk-sidebar__list",children:u}))}),Se=t.forwardRef(function(n,e){const{children:r,className:b,presentation:u="both",...i}=n,o=O("Sidebar.Header");return D(u,o==null?void 0:o.presentation)?l.jsx("div",{...i,ref:e,className:["nk-sidebar__header",b].filter(Boolean).join(" "),children:r}):null}),ke=t.forwardRef(function(n,e){const{active:r=!1,as:b,children:u,className:i,disabled:o=!1,icon:y,onClick:p,presentation:S="both",type:c,...h}=n,d=O("Sidebar.Item"),a=b??"button",f=a==="button",m=h,E=m.href!==void 0||m.to!==void 0;function v(k){if(o){k.preventDefault();return}p==null||p(k),d!=null&&d.open&&d.presentation==="overlay"&&!k.defaultPrevented&&d.requestOpenChange(!1,"item")}return D(S,d==null?void 0:d.presentation)?l.jsx("li",{className:"nk-sidebar__item-container",children:l.jsx(z.Button,{...h,ref:e,"aria-current":r?E?"page":"true":void 0,as:a,className:["nk-sidebar__item",i].filter(Boolean).join(" "),"data-active":r||void 0,disabled:o,fullWidth:!0,href:m.href,icon:y,onClick:v,shape:"rectangle",size:"small",textAlignment:"left",type:f?c??"button":c,variant:"ghost",children:l.jsx("span",{className:"nk-sidebar__item-label",children:u})})}):null}),Ee=1;function Ce(s){return s==null?void 0:s.ResizeObserver}function xe(s){return s==null?void 0:s.MutationObserver}function _e(){const[s,n]=t.useState(!1),e=t.useRef(null),r=t.useCallback(i=>{const o=i.scrollHeight-i.scrollTop-i.clientHeight;n(o>Ee)},[]),b=t.useCallback(i=>{var m;if((m=e.current)==null||m.call(e),e.current=null,!i)return;const o=i;r(o);function y(){r(o)}const p=o.ownerDocument.defaultView;p==null||p.addEventListener("resize",y);const S=Ce(p),c=S?new S(y):void 0;function h(){c==null||c.disconnect(),c==null||c.observe(o);for(const E of o.children)c==null||c.observe(E)}h();function d(E){E.some(k=>k.type==="childList")&&h(),y()}const a=xe(p),f=a?new a(d):void 0;f==null||f.observe(o,{attributeFilter:["class","hidden","style"],characterData:!0,childList:!0,subtree:!0}),e.current=()=>{p==null||p.removeEventListener("resize",y),c==null||c.disconnect(),f==null||f.disconnect()}},[r]),u=t.useCallback(i=>{r(i.currentTarget)},[r]);return{containerReference:b,contentBelow:s,handleScroll:u}}function je(s,n){for(const e of t.Children.toArray(s)){if(t.isValidElement(e)&&e.type===t.Fragment){const r=ee(e.props.children);r.bodyChildren.length>0&&n.bodyChildren.push(t.cloneElement(e,void 0,...r.bodyChildren)),r.footerChildren.length>0&&n.footerChildren.push(t.cloneElement(e,void 0,...r.footerChildren));continue}t.isValidElement(e)&&e.type===W?n.footerChildren.push(e):n.bodyChildren.push(e)}}function ee(s){const n={bodyChildren:[],footerChildren:[]};return je(s,n),n}function ne(s){const{"aria-label":n,"aria-labelledby":e,children:r,className:b,height:u,open:i,panelId:o,panelReference:y,presentation:p,side:S,state:c,style:h,width:d,...a}=s,{containerReference:f,contentBelow:m,handleScroll:E}=_e(),v=p==="overlay",{bodyChildren:k,footerChildren:I}=ee(r),L=n??(e===void 0?"Sidebar":void 0),T=v&&i;let j=h;return(d!==void 0||u!==void 0)&&(j={...h},u!==void 0&&(j["--nk-sidebar-height"]=u),d!==void 0&&(j["--nk-sidebar-width"]=d)),l.jsxs("aside",{...a,ref:y,"aria-hidden":v&&!i?!0:void 0,"aria-label":v&&!i?void 0:L,"aria-labelledby":v&&!i?void 0:e,"aria-modal":T?"true":void 0,className:["nk-sidebar",b].filter(Boolean).join(" "),"data-responsive":p==="pending"||void 0,"data-side":S,"data-state":c,"data-variant":v?"overlay":"inline",id:o,role:T?"dialog":void 0,style:j,tabIndex:v?-1:void 0,children:[l.jsx("div",{ref:f,className:"nk-sidebar__body","data-content-below":m||void 0,onScroll:E,children:k}),I]})}function Ne(s){const{boundaries:n,initialFocusReference:e,lockScroll:r,ownerDocument:b,panelReference:u,presenceState:i,restoreFocus:o,sidebar:y,side:p,...S}=s,{id:c,open:h,requestOpenChange:d}=y,a=t.useContext(P.FocusScopeContext),f=t.useRef(null),[m,E]=t.useState(null),v=R.useBoundary("Sidebar").boundaryElement,k=P.useOverlayLayer(!0,v),I=t.useCallback(B=>{f.current=B,u(B),E(B)},[u]);R.useIsomorphicLayoutEffect(()=>{m&&(m.inert=!h)},[h,m]);const L=t.useCallback(()=>{d(!1,"escape")},[d]),T=t.useCallback(()=>{d(!1,"outside")},[d]);P.useDismissableLayer({boundary:v,active:h,boundaries:n,dismissOnEscape:!0,dismissOnPointerDownOutside:!0,layerId:k.id,onEscapeDismiss:L,onPointerDownOutsideDismiss:T,ownerDocument:b});const j=ae.useFocusTrap({boundary:v,active:h,container:m,initialFocusReference:e??f,layerId:k.id,restoreFocus:o});return oe.useScrollLock(r&&h,b,v),l.jsx(P.FocusScopeContext.Provider,{value:h?j:a,children:l.jsx("div",{className:"nk-sidebar__overlay","data-side":p,"data-state":i,role:"presentation",style:{zIndex:k.zIndex},children:l.jsx(ne,{...S,open:h,panelId:c,panelReference:I,presentation:"overlay",side:p,state:i})})})}function Re(s){const{children:n}=s;if(n.type===t.Fragment)throw new Error("Sidebar.Trigger requires a single non-Fragment child");const e=O("Sidebar.Trigger"),r=n.props,b=H.getElementReference(n),u=e==null?void 0:e.registerTrigger,i=e==null?void 0:e.unregisterTrigger,o=t.useRef(null),y=t.useCallback(f=>{const m=o.current;m&&m!==f&&(i==null||i(m)),o.current=f,f&&(u==null||u(f)),H.assignElementReference(b,f)},[b,u,i]),p=t.useCallback(f=>{f.defaultPrevented||!e||e.requestOpenChange(!e.open,"trigger")},[e]);if(!e)return null;const{id:S,open:c,presentation:h,variant:d}=e,a=c&&h==="overlay";return t.cloneElement(n,le.resolveTriggerOverrides(r,{"aria-controls":a?ie.mergeIdentifiers(r["aria-controls"],S):r["aria-controls"],"aria-expanded":c,"aria-haspopup":r["aria-haspopup"]??"dialog",className:"nk-sidebar__trigger","data-sidebar-variant":d,onClick:p,ref:y}))}const Pe=t.forwardRef(function(n,e){const{actions:r,className:b,description:u,image:i,loading:o=!1,name:y,onClick:p,...S}=n,c=u!=null&&typeof u!="boolean",h=l.jsxs(l.Fragment,{children:[l.jsx(ce.Avatar,{alt:y,"aria-hidden":!0,className:"nk-sidebar__user-avatar",image:i}),l.jsxs("span",{className:"nk-sidebar__user-text",children:[l.jsx(U.Text,{as:"span",className:"nk-sidebar__user-name",children:y}),c?l.jsx(U.Text,{as:"span",className:"nk-sidebar__user-description",size:"caption",tone:"muted",children:u}):null]})]});return l.jsx("div",{...S,ref:e,className:["nk-sidebar__user",b].filter(Boolean).join(" "),children:o?l.jsx(ue.Spinner,{className:"nk-sidebar__user-spinner",size:16}):l.jsxs(l.Fragment,{children:[p?l.jsx("button",{className:"nk-sidebar__user-details",onClick:p,type:"button",children:h}):l.jsx("div",{className:"nk-sidebar__user-details",children:h}),r!==void 0&&r.length>0?l.jsx("div",{className:"nk-sidebar__user-actions",children:r.map(d=>{const{"aria-label":a,icon:f,label:m,...E}=d;return l.jsx(de.Tooltip2,{content:m,children:l.jsx(z.Button,{...E,"aria-label":a??m,className:"nk-sidebar__user-action",icon:f,shape:"rectangle",type:"button",variant:"ghost"})},m)})}):null]})})}),Te=()=>()=>{},X=()=>{};function Ie(s,n){const e=s==="responsive"?n:void 0,r=t.useSyncExternalStore((e==null?void 0:e.subscribe)??Te,(e==null?void 0:e.read)??X,X);return s!=="responsive"?s:r===void 0?"pending":r>=fe.breakpoint("medium")?"inline":"overlay"}const Le=32,Be=t.forwardRef(function(n,e){var Q;const{defaultOpen:r=!1,height:b,initialFocusReference:u,lockScroll:i=!0,onOpenChange:o,open:y,restoreFocus:p=!0,side:S="left",variant:c="responsive",width:h,...d}=n,a=R.useBoundary("Sidebar"),f=`${t.useId()}-sidebar`,m=t.useRef(Symbol("nk-sidebar")).current,E=t.useRef(null),v=Ie(c,a==null?void 0:a.width),k=y!==void 0,[I,L]=t.useState(r),[T,j]=t.useState(0),[B,re]=t.useState(!1),G=t.useRef(null),N=k?y:I,w=t.useRef(o);R.useIsomorphicLayoutEffect(()=>{w.current=o});const F=t.useCallback((g,C)=>{var x;N!==g&&(k||L(g),(x=w.current)==null||x.call(w,g,C))},[k,N]),V=t.useCallback(g=>{E.current=g,H.assignElementReference(e,g)},[e]),_=t.useMemo(()=>[E],[]),$=t.useCallback(g=>{_.push({current:g}),j(C=>C+1)},[_]),K=t.useCallback(g=>{const C=_.findIndex(x=>x.current===g);C>0&&_.splice(C,1),j(x=>Math.max(x-1,0))},[_]),te=t.useCallback(g=>{const C=G.current;if(C&&C!==g){const x=_.findIndex(se=>se.current===C);x>0&&_.splice(x,1)}G.current=g,g&&_.push({current:g})},[_]),A=t.useMemo(()=>({id:f,open:N,presentation:v,registerTrigger:$,requestOpenChange:F,unregisterTrigger:K,variant:c}),[N,f,v,$,F,K,c]);R.useIsomorphicLayoutEffect(()=>{const g=a==null?void 0:a.boundaryElement;if(!g)return;if(pe(g,m,A)===!1)throw new Error("A Boundary supports one Sidebar. Neatkit resolves Trigger, Group, and Item interactions against the single Sidebar published to the nearest Boundary, so give each Sidebar a Boundary of its own.")},[a==null?void 0:a.boundaryElement,m,A]),R.useIsomorphicLayoutEffect(()=>{const g=a==null?void 0:a.boundaryElement;if(g)return()=>he(g,m)},[a==null?void 0:a.boundaryElement,m]),t.useEffect(()=>{v==="inline"&&F(!1,"variant")},[v,F]),t.useEffect(()=>{var x;const g=(x=a==null?void 0:a.boundaryElement)==null?void 0:x.ownerDocument.defaultView;if(!g)return;const C=g.setTimeout(()=>re(!0),Le);return()=>g.clearTimeout(C)},[a==null?void 0:a.boundaryElement]);const M=P.usePresence(N&&v==="overlay"),Y=((Q=a==null?void 0:a.boundaryElement)==null?void 0:Q.ownerDocument)??(typeof document>"u"?null:document);if(v!=="overlay")return l.jsx(ne,{...d,height:b,open:!1,panelId:f,panelReference:V,presentation:v,side:S,width:h});const J=B&&T===0?l.jsx(P.Portal,{children:l.jsx(be,{label:`Open ${d["aria-label"]??"Sidebar"}`,onToggle:()=>F(!N,"trigger"),panelId:M.present?f:void 0,reference:te,side:S,sidebarOpen:N})}):null;return!M.present||!Y?J:l.jsxs(l.Fragment,{children:[J,l.jsx(P.Portal,{children:l.jsx(Ne,{...d,boundaries:_,initialFocusReference:u,lockScroll:i,ownerDocument:Y,panelReference:V,presenceState:M.state==="closing"?"closing":"open",restoreFocus:p,side:S,sidebar:A,width:h})})]})}),Fe=Object.assign(Be,{Footer:W,Group:ye,Header:Se,Item:ke,Trigger:Re,User:Pe});exports.default=Fe;
|
package/dist/Sidebar.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useCallback as _, useSyncExternalStore as le, forwardRef as R, useId as
|
|
|
4
4
|
import { u as K, a as M } from "./effects-DGbA6Q2O.js";
|
|
5
5
|
import { g as Ee, a as ue } from "./reference-CXMr27nM.js";
|
|
6
6
|
import { F as se, c as ke, d as Ce, b as Ne, P as oe } from "./usePresence-BTRY1_l-.js";
|
|
7
|
-
import { B as Y } from "./Button-
|
|
7
|
+
import { B as Y } from "./Button-yBHFKYew.js";
|
|
8
8
|
import { T as V } from "./Text-rN6iDo0V.js";
|
|
9
9
|
import { u as Pe } from "./useFocusTrap-BxPazAL6.js";
|
|
10
10
|
import { u as Te } from "./useScrollLock-Drd7OZRC.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";const o=require("react/jsx-runtime"),a=require("react"),H=require("./reference-C2guRuR0.cjs"),D=require("./Surface-BttJYSDt.cjs"),K=require("./Button-
|
|
1
|
+
"use client";"use strict";const o=require("react/jsx-runtime"),a=require("react"),H=require("./reference-C2guRuR0.cjs"),D=require("./Surface-BttJYSDt.cjs"),K=require("./Button-DYn8YDP3.cjs"),O=require("./Tooltip-CxcO3Vu-.cjs"),v=a.createContext("body"),w=a.forwardRef(function(l,e){const{align:t="left",children:s,className:i,scope:c="col",sticky:b=!1,...d}=l;return o.jsx("th",{...d,ref:e,className:["nk-table__header-cell",i].filter(Boolean).join(" "),"data-align":t,"data-sticky":b||void 0,scope:c,children:s})});function S(n){for(const l of a.Children.toArray(n)){if(a.isValidElement(l)&&l.type===a.Fragment){if(S(l.props.children))return!0;continue}return!0}return!1}function F(n){const{"aria-label":l,icon:e,label:t,...s}=n;return o.jsx(O.Tooltip2,{content:t,children:o.jsx(K.Button,{...s,"aria-label":l??t,icon:e,shape:"rectangle",size:"small",type:"button",variant:"ghost"})})}function P(n){const{actions:l}=n;function e(t){t.stopPropagation()}return o.jsx("td",{className:"nk-table__cell nk-table__action-cell","data-align":"right",onClick:e,children:l.length>0?o.jsx("span",{className:"nk-table__action-list",children:l.map(t=>a.createElement(F,{...t,key:t.label}))}):null})}const q=a.forwardRef(function(l,e){const{children:t,className:s,emptyColumnCount:i=1,emptyMessage:c,...b}=l,d=!S(t),h=Number.isFinite(i)?Math.max(1,Math.floor(i)):1;return o.jsx("tbody",{...b,ref:e,className:["nk-table__body",s].filter(Boolean).join(" "),children:d&&c!==void 0?o.jsxs("tr",{className:"nk-table__row",children:[o.jsx("td",{"aria-hidden":"true",className:"nk-table__cell nk-table__overscroll-start-cell"}),o.jsx("td",{className:"nk-table__cell nk-table__empty-cell",colSpan:h,children:o.jsx("div",{className:"nk-table__empty-content",children:c})}),o.jsx(P,{actions:[]})]}):o.jsx(v.Provider,{value:"body",children:t})})});function z(n,l,e){return n===void 0?l:e?e(n):n instanceof Date?Number.isNaN(n.getTime())?"Invalid Date":n.toISOString().slice(0,10):typeof n=="boolean"?n?"Yes":"No":n}function V(n){if(typeof n=="number"||typeof n=="string")return String(n)}const E=a.forwardRef(function(l,e){const{align:t="left",children:s,className:i,format:c,title:b,truncate:d,value:h,...k}=l,{rowTrigger:r,...u}=k,p=z(h,s,c),f=d===void 0?void 0:{maxWidth:d},_=b??(d===void 0?void 0:V(p));return o.jsxs("td",{...u,ref:e,className:["nk-table__cell",i].filter(Boolean).join(" "),"data-align":t,title:_,children:[(r==null?void 0:r.kind)==="link"&&r.linkProperties?o.jsx("a",{ref:r.reference,"aria-label":r.ariaLabel,className:"nk-table__row-trigger",download:r.linkProperties.download,href:r.linkProperties.href,hrefLang:r.linkProperties.hrefLang,onClick:r.linkProperties.onNavigate,rel:r.linkProperties.rel,target:r.linkProperties.target}):null,(r==null?void 0:r.kind)==="button"?o.jsx("button",{ref:r.reference,"aria-label":r.ariaLabel,className:"nk-table__row-trigger",onClick:r.onClick,type:"button"}):null,d!==void 0?o.jsx("span",{className:"nk-table__truncated-content",style:f,children:p}):p]})}),M=a.forwardRef(function(l,e){const{children:t,className:s,...i}=l;return o.jsx("tfoot",{...i,ref:e,className:["nk-table__foot",s].filter(Boolean).join(" "),children:o.jsx(v.Provider,{value:"foot",children:t})})}),Y=a.forwardRef(function(l,e){const{children:t,className:s,...i}=l;return o.jsx("thead",{...i,ref:e,className:["nk-table__head",s].filter(Boolean).join(" "),children:o.jsx(v.Provider,{value:"head",children:t})})}),X=["a[href]","audio[controls]","button","iframe","input","label","select","summary","textarea","video[controls]","[contenteditable]:not([contenteditable='false'])"].join(","),$=new Set(["button","checkbox","combobox","grid","link","listbox","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","option","radio","radiogroup","scrollbar","searchbox","slider","spinbutton","switch","tab","tablist","textbox","tree","treegrid","treeitem"]);function G(n,l){var t;let e=n;for(;e&&e!==l;){if(e.matches(X)||(((t=e.getAttribute("role"))==null?void 0:t.split(/\s+/))??[]).some(i=>$.has(i)))return!0;e=e.parentElement}return!1}function J(n,l){let e=!1;function t(i){return a.Children.map(i,c=>a.isValidElement(c)?c.type===a.Fragment?a.cloneElement(c,void 0,t(c.props.children)):!e&&c.type===E?(e=!0,a.cloneElement(c,{rowTrigger:l})):c:c)}const s=t(n);return{attached:e,content:s}}const Q=a.forwardRef(function(l,e){const{children:t,className:s,...i}=l;return o.jsx(w,{...i,ref:e,align:"right",className:["nk-table__action-header-cell",s].filter(Boolean).join(" "),children:t??o.jsx("span",{className:"nk-table__visually-hidden",children:"Row actions"})})}),U=a.forwardRef(function(l,e){const{"aria-label":t,actions:s,children:i,className:c,download:b,href:d,hrefLang:h,onClick:k,onNavigate:r,rel:u,target:p,...f}=l,_=a.useRef(null),g=a.useContext(v),j=d!==void 0||k!==void 0,N=(t==null?void 0:t.trim())||(d!==void 0?"Open row":"Activate row");function T(m){_.current=m}let x;d!==void 0?x={ariaLabel:N,kind:"link",linkProperties:{download:b,href:d,hrefLang:h,onNavigate:r,rel:u,target:p},reference:T}:k!==void 0&&(x={ariaLabel:N,kind:"button",onClick:k,reference:T});const B=x?J(i,x):{content:i};function L(m){if(m.defaultPrevented)return;const y=m.target;if(!(y instanceof Element)||G(y,m.currentTarget))return;const C=_.current;if(!C)return;const R=C.ownerDocument.defaultView;if(!R){C.click();return}C.dispatchEvent(new R.MouseEvent("click",{altKey:m.altKey,bubbles:!0,button:m.button,buttons:m.buttons,cancelable:!0,clientX:m.clientX,clientY:m.clientY,ctrlKey:m.ctrlKey,metaKey:m.metaKey,shiftKey:m.shiftKey}))}const A=g==="head"?o.jsx(Q,{}):o.jsx(P,{actions:s??[]}),I=g==="head"?o.jsx("th",{"aria-hidden":"true",className:"nk-table__header-cell nk-table__overscroll-start-cell"}):o.jsx("td",{"aria-hidden":"true",className:"nk-table__cell nk-table__overscroll-start-cell"});return o.jsxs("tr",{...f,ref:e,"aria-label":j?void 0:t,className:["nk-table__row",c].filter(Boolean).join(" "),"data-interactive":j||void 0,onClick:j?L:void 0,children:[I,B.content,A]})});function W(){const n=a.useRef(null),l=a.useRef(null),[e,t]=a.useState(!1),[s,i]=a.useState(!1);a.useEffect(()=>{const b=n.current,d=l.current;if(!b||!d)return;const h=b,k=d;function r(){const _=h.scrollWidth>h.clientWidth;t(_),_||i(!1)}r();const u=h.ownerDocument.defaultView;u==null||u.addEventListener("resize",r);const p=u==null?void 0:u.ResizeObserver,f=p?new p(r):void 0;return f==null||f.observe(h),f==null||f.observe(k),()=>{u==null||u.removeEventListener("resize",r),f==null||f.disconnect()}},[]);function c(b){i(e&&b.currentTarget.scrollLeft>1)}return{containerReference:n,contentReference:l,isScrollable:e,isScrolled:s,handleScroll:c}}const Z=a.forwardRef(function(l,e){const{"aria-label":t,children:s,className:i,containerClassName:c,frame:b="outline",...d}=l,{containerReference:h,contentReference:k,isScrollable:r,isScrolled:u,handleScroll:p}=W(),f=t?`${t} scroll area`:"Scrollable table",_=a.useCallback(g=>{k.current=g,H.assignElementReference(e,g)},[k,e]);return o.jsx(D.Surface,{ref:h,"aria-label":r?f:void 0,className:["nk-table",c].filter(Boolean).join(" "),"data-frame":b,"data-scrolled":u||void 0,onScroll:p,role:r?"region":void 0,tabIndex:r?0:void 0,children:o.jsx("table",{...d,ref:_,"aria-label":t,className:["nk-table__element",i].filter(Boolean).join(" "),children:s})})}),ee=Object.assign(Z,{Body:q,Cell:E,Foot:M,HeaderCell:w,Head:Y,Row:U});exports.Table=ee;
|
|
@@ -3,7 +3,7 @@ import { jsx as o, jsxs as R } from "react/jsx-runtime";
|
|
|
3
3
|
import { createContext as V, forwardRef as _, Children as L, isValidElement as j, Fragment as A, createElement as Y, cloneElement as E, useRef as y, useContext as X, useState as B, useEffect as $, useCallback as q } from "react";
|
|
4
4
|
import { a as G } from "./reference-CXMr27nM.js";
|
|
5
5
|
import { S as J } from "./Surface-vEFsZC12.js";
|
|
6
|
-
import { B as Q } from "./Button-
|
|
6
|
+
import { B as Q } from "./Button-yBHFKYew.js";
|
|
7
7
|
import { T as U } from "./Tooltip-WwAWQ_Kq.js";
|
|
8
8
|
const N = V("body"), I = _(function(l, e) {
|
|
9
9
|
const {
|
package/dist/Table.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Table-
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Table-XVrja-e5.cjs");exports.default=e.Table;
|
package/dist/Table.js
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IconGraphicProps } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Renders a dollar icon.
|
|
4
|
+
*
|
|
5
|
+
* @param props - The SVG properties applied to the icon.
|
|
6
|
+
* @param forwardedReference - The reference assigned to the rendered SVG.
|
|
7
|
+
*
|
|
8
|
+
* @returns The rendered icon SVG.
|
|
9
|
+
*/
|
|
10
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IconGraphicProps } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Renders a euro icon.
|
|
4
|
+
*
|
|
5
|
+
* @param props - The SVG properties applied to the icon.
|
|
6
|
+
* @param forwardedReference - The reference assigned to the rendered SVG.
|
|
7
|
+
*
|
|
8
|
+
* @returns The rendered icon SVG.
|
|
9
|
+
*/
|
|
10
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IconGraphicProps } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Renders a pound icon.
|
|
4
|
+
*
|
|
5
|
+
* @param props - The SVG properties applied to the icon.
|
|
6
|
+
* @param forwardedReference - The reference assigned to the rendered SVG.
|
|
7
|
+
*
|
|
8
|
+
* @returns The rendered icon SVG.
|
|
9
|
+
*/
|
|
10
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IconGraphicProps } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Renders a ruble icon.
|
|
4
|
+
*
|
|
5
|
+
* @param props - The SVG properties applied to the icon.
|
|
6
|
+
* @param forwardedReference - The reference assigned to the rendered SVG.
|
|
7
|
+
*
|
|
8
|
+
* @returns The rendered icon SVG.
|
|
9
|
+
*/
|
|
10
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IconGraphicProps } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Renders a yen-yuan icon.
|
|
4
|
+
*
|
|
5
|
+
* @param props - The SVG properties applied to the icon.
|
|
6
|
+
* @param forwardedReference - The reference assigned to the rendered SVG.
|
|
7
|
+
*
|
|
8
|
+
* @returns The rendered icon SVG.
|
|
9
|
+
*/
|
|
10
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
11
|
+
export default _default;
|
|
@@ -19,6 +19,8 @@ export declare const iconGraphics: {
|
|
|
19
19
|
readonly camera: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
20
20
|
readonly "qr-code": import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
21
21
|
readonly download: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
22
|
+
readonly dollar: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
23
|
+
readonly euro: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
22
24
|
readonly save: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
23
25
|
readonly pencil: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
24
26
|
readonly "arrow-left": import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
@@ -26,6 +28,7 @@ export declare const iconGraphics: {
|
|
|
26
28
|
readonly cross: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
27
29
|
readonly checkmark: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
28
30
|
readonly plus: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
31
|
+
readonly pound: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
29
32
|
readonly minus: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
30
33
|
readonly window: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
31
34
|
readonly chain: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
@@ -48,12 +51,14 @@ export declare const iconGraphics: {
|
|
|
48
51
|
readonly file: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
49
52
|
readonly image: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
50
53
|
readonly tag: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
54
|
+
readonly ruble: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
51
55
|
readonly key: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
52
56
|
readonly gear: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
53
57
|
readonly git: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
54
58
|
readonly home: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
55
59
|
readonly info: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
56
60
|
readonly warning: import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
61
|
+
readonly "yen-yuan": import("react").ForwardRefExoticComponent<Omit<import("../icons/types").IconGraphicProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
57
62
|
};
|
|
58
63
|
/** A type representing the icons available through the Icon component. */
|
|
59
64
|
export type IconType = keyof typeof iconGraphics;
|
package/package.json
CHANGED
package/dist/Icon-BFaHVAoQ.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const l=require("react"),o=require("react/jsx-runtime"),x=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",d:"M6.799 3.367c-.15-.814.235-1.65.698-2.215C8.007.53 8.884.052 9.632 0c.127.853-.221 1.684-.68 2.271-.49.632-1.336 1.121-2.153 1.096m4.39 2.947a2.99 2.99 0 0 1 1.403-1.62c-.72-.898-1.73-1.419-2.683-1.419-1.26 0-1.794.6-2.67.6-.902 0-1.587-.6-2.68-.6-1.07 0-2.21.653-2.934 1.768-.266.412-.446.924-.544 1.494-.273 1.6.135 3.684 1.35 5.535.59.898 1.377 1.909 2.405 1.918.916.009 1.176-.586 2.416-.592 1.242-.007 1.477.598 2.392.589 1.028-.009 1.859-1.128 2.45-2.026.42-.644.579-.97.906-1.698-1.662-.627-2.346-2.459-1.81-3.949"})})}),p=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 0h1.6c.5.1 1 .3 1.3.6.3.4.5.8.5 1.3l.1 1.6v8.6c-.1.5-.3 1-.6 1.3a2 2 0 0 1-1.3.5l-1.6.1H1.9a2 2 0 0 1-1.3-.6A2 2 0 0 1 .1 12L0 10.5V1.9C.2 1.4.4.9.7.6A2 2 0 0 1 2 .1L3.5 0h7Zm-7 1.4H2.1c-.3 0-.4.1-.5.2l-.2.5v3.5a11.8 11.8 0 0 0 0 1l.4.3h.3l.7.1h1a1.4 1.4 0 0 1 .8.4l.4.4.1.4v.2l.2.3.1.4h3.2l.2-.5v-.2l.2-.6.4-.4.2-.2.6-.2h1a11.8 11.8 0 0 0 1 0l.3-.4v-.3l.1-.6V2.1c0-.3-.1-.4-.2-.5l-.5-.2H3.5Z",clipRule:"evenodd"})})}),j=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M5.75 10 3 7.25m0 0L5.75 4.5M3 7.25h8.5"})})}),C=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M8.25 10 11 7.25m0 0L8.25 4.5M11 7.25H2.5"})})}),m=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsxs("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:[o.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.633",d:"M5.955 11.616 2.177 8.838a.82.82 0 0 0-.32-.143l-.985-.2-.03-.007a.148.148 0 0 1-.026-.087V5.423c0-.049.014-.076.022-.087l.034-.005.984-.202a.818.818 0 0 0 .32-.142l3.78-2.78v9.41Z"}),o.jsx("path",{fill:"currentColor",d:"M9.383 5.053c-.192-.37-.635-.454-.93-.168l-.044.033a.737.737 0 0 0-.133.825c.162.337.266.724.266 1.144 0 .421-.104.808-.266 1.145a.737.737 0 0 0 .133.824l.044.034c.28.286.738.219.93-.168A4.214 4.214 0 0 0 9.81 6.87c0-.64-.162-1.263-.427-1.818Z"}),o.jsx("path",{fill:"currentColor",d:"M10.932 3.386c-.207-.336-.635-.387-.9-.117l-.03.033a.768.768 0 0 0-.088.91c.472.756.737 1.699.737 2.692 0 1.01-.28 1.935-.737 2.692a.768.768 0 0 0 .088.91l.03.033c.265.27.693.219.9-.118.62-.993.973-2.205.973-3.517 0-1.313-.354-2.525-.973-3.518Z"}),o.jsx("path",{fill:"currentColor",d:"M12.48 1.754c-.22-.32-.62-.37-.885-.1l-.044.033c-.236.235-.265.64-.074.925.797 1.195 1.254 2.676 1.254 4.275 0 1.599-.472 3.097-1.254 4.275-.191.286-.162.69.074.925l.044.034c.266.27.664.219.885-.101.96-1.43 1.52-3.214 1.52-5.15 0-1.901-.56-3.685-1.52-5.116Z"})]})}),I=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsxs("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:[o.jsx("path",{fill:"currentColor",d:"M4.889 1.482 2 .5v10.718l2.889-2.543z"}),o.jsx("path",{fill:"currentColor",d:"m5.9 3.88 1.185 2.946 1.681.539-6.68 4.084 2.89 2.051 7.337-4.449V5.99z"})]})}),M=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",d:"M13 2.229c0-.413-.112-.818-.324-1.17a2.2 2.2 0 0 0-.88-.822A2.15 2.15 0 0 0 9.51.441c-.325.246-.577.58-.726.964a2.27 2.27 0 0 0 .4 2.303c.27.308.618.534 1.006.652v.095c0 .507-.197.992-.548 1.35a1.86 1.86 0 0 1-1.325.559H5.82c-.675.007-1.33.23-1.874.636V4.36a2.2 2.2 0 0 0 1.218-.936A2.26 2.26 0 0 0 4.751.542 2.16 2.16 0 0 0 3.322 0c-.525 0-1.032.193-1.43.542a2.26 2.26 0 0 0-.413 2.882c.283.451.716.783 1.219.936v5.28a2.2 2.2 0 0 0-1.218.936 2.26 2.26 0 0 0 .413 2.882c.397.35.904.542 1.43.542.524 0 1.031-.193 1.428-.542a2.26 2.26 0 0 0 .413-2.882 2.2 2.2 0 0 0-1.218-.936v-.095c0-.507.198-.992.55-1.35a1.86 1.86 0 0 1 1.324-.559h2.497c.828 0 1.622-.335 2.208-.931a3.2 3.2 0 0 0 .914-2.25V4.36c.45-.137.846-.418 1.127-.802S13 2.708 13 2.229"})})}),k=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsxs("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:[o.jsx("rect",{width:"14",height:"2.1",y:"1.75",fill:"currentColor",rx:"1.05"}),o.jsx("rect",{width:"14",height:"2.1",y:"5.95",fill:"currentColor",rx:"1.05"}),o.jsx("rect",{width:"14",height:"2.1",y:"10.15",fill:"currentColor",rx:"1.05"})]})}),R=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsxs("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:[o.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.25 2.714h-1.313l-.437-.857C10.242 1.36 10.108 1 9.625 1h-5.25c-.483 0-.643.409-.875.857l-.438.857H1.75C.784 2.714 0 3.482 0 4.43v6.857C0 12.232.784 13 1.75 13h10.5c.966 0 1.75-.768 1.75-1.714V4.429c0-.947-.784-1.715-1.75-1.715ZM7 11.286c-1.933 0-3.5-1.535-3.5-3.429C3.5 5.964 5.067 4.43 7 4.43s3.5 1.535 3.5 3.428c0 1.894-1.567 3.429-3.5 3.429Z",clipRule:"evenodd"}),o.jsx("path",{fill:"currentColor",d:"M4.75 7.9a2.25 2.25 0 1 1 4.5 0 2.25 2.25 0 0 1-4.5 0Z"})]})}),L=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsxs("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:[o.jsx("path",{fill:"currentColor",d:"M13.42 2.312 11.666.576A2.02 2.02 0 0 0 8.85.568L6.904 2.467c-.78.76-.783 2-.009 2.763l1.113-1.068c-.113-.34.026-.73.301-1l1.239-1.208a1.01 1.01 0 0 1 1.409.005l1.053 1.04c.387.384.386 1.001-.004 1.383L10.767 5.59c-.262.256-.692.396-1.026.306l-1.09 1.07c.776.766 2.036.77 2.816.008l1.945-1.897c.781-.762.784-2 .008-2.765M6.293 9.261c.093.333-.055.763-.323 1.025l-1.157 1.13a1.027 1.027 0 0 1-1.434-.005l-1.074-1.06a.985.985 0 0 1 .005-1.408l1.158-1.13c.282-.274.687-.413 1.04-.296L5.626 6.41a2.057 2.057 0 0 0-2.869-.009L.879 8.235a1.97 1.97 0 0 0-.008 2.817l1.787 1.767a2.06 2.06 0 0 0 2.868.008l1.877-1.833a1.97 1.97 0 0 0 .008-2.816z"}),o.jsx("path",{fill:"currentColor",d:"M5.073 8.757a.68.68 0 0 0 .961.004l3.207-3.19a.678.678 0 1 0-.956-.964l-3.208 3.19a.68.68 0 0 0-.004.96"})]})}),H=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",d:"M1.3 10.7c.1-.4 0-.7-.2-1A6 6 0 0 1 0 6.3C0 2.8 3.1 0 7 0s7 2.8 7 6.3-3.1 6.3-7 6.3c-.6 0-1.2 0-1.7-.2a1 1 0 0 0-.7 0l-3 1.5-.2.1a.7.7 0 0 1-.7-.9l.6-2.4Z"})})}),B=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.8",d:"m4 7.5 2 2L10.5 5"})})}),P=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M3.5 5.25 7 8.75l3.5-3.5"})})}),V=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M8.75 3.5 5.25 7l3.5 3.5"})})}),Z=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M5.25 3.5 8.75 7l-3.5 3.5"})})}),A=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M3.5 8.75 7 5.25l3.5 3.5"})})}),y=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.391 7.868a3.501 3.501 0 0 1-6.782 0 1 1 0 0 1-.109.007H.875a.875.875 0 1 1 0-1.75H3.5q.055 0 .109.007a3.501 3.501 0 0 1 6.782 0 1 1 0 0 1 .109-.007h2.625a.875.875 0 1 1 0 1.75H10.5a1 1 0 0 1-.109-.007M7 8.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5",clipRule:"evenodd"})})}),W=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"m4 4 6 6M10 4l-6 6"})})}),z=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M3.5 12.25h7M7 1.75v8.167m0 0L9.917 7M7 9.917 4.083 7"})})}),b=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",d:"M8.152.192c.35 0 .663 0 .92.02.268.023.548.074.82.215.398.205.718.532.918.93.137.273.187.553.209.822.018.223.019.487.02.783.302 0 .574.001.803.02.267.023.547.072.82.213.397.206.718.533.918.932.137.273.185.552.207.821.021.26.02.575.02.93v5.012c0 .356.001.671-.02.931-.022.27-.07.549-.207.822-.2.398-.52.725-.918.93a2.126 2.126 0 0 1-.82.214c-.258.021-.57.02-.921.02H5.848c-.35 0-.663.002-.92-.02a2.124 2.124 0 0 1-.82-.214 2.117 2.117 0 0 1-.919-.931 2.177 2.177 0 0 1-.208-.82 10.57 10.57 0 0 1-.018-.792c-.145-.002-.29-.004-.43-.01a6.939 6.939 0 0 1-.595-.05 1.89 1.89 0 0 1-.6-.165 2.117 2.117 0 0 1-.918-.932 2.176 2.176 0 0 1-.207-.821c-.021-.26-.02-.575-.02-.93V3.11c0-.356-.001-.671.02-.931.022-.27.07-.549.207-.822.2-.398.52-.725.918-.93.273-.141.553-.192.82-.214.258-.021.57-.02.921-.02h5.073ZM5.848 4.577c-.377 0-.611 0-.786.015-.166.014-.207.036-.212.039a.5.5 0 0 0-.217.22l-.017.053a1.207 1.207 0 0 0-.024.174c-.015.18-.015.419-.015.8v5.012c0 .382 0 .621.015.801.007.086.016.14.024.174l.017.053a.506.506 0 0 0 .151.18l.066.04c.005.003.046.025.212.039.175.014.409.015.786.015h5.073c.377 0 .612 0 .787-.015.166-.014.207-.036.212-.038a.501.501 0 0 0 .217-.221c.004-.01.026-.056.04-.227.014-.18.015-.419.015-.801V5.879c0-.382 0-.621-.015-.8-.014-.172-.036-.218-.04-.227a.501.501 0 0 0-.217-.221c-.005-.003-.046-.025-.212-.04-.175-.014-.41-.014-.787-.014H5.848Zm-2.769-2.77c-.377 0-.611.002-.787.016-.166.014-.207.036-.212.038a.502.502 0 0 0-.217.221c-.004.01-.026.056-.04.227-.014.18-.015.419-.015.801v5.011c0 .382 0 .621.015.8.007.086.016.14.024.175l.016.052c.044.087.111.156.19.204.017.003.05.011.101.018.116.016.27.028.453.036.114.005.234.007.355.009V5.879c0-.356-.001-.671.02-.93.021-.27.07-.55.207-.822.2-.4.521-.726.918-.932.273-.14.553-.19.82-.213.258-.021.57-.02.92-.02h3.575c0-.298-.001-.498-.014-.653-.014-.171-.036-.218-.04-.227a.501.501 0 0 0-.218-.22l-.046-.015a1.143 1.143 0 0 0-.166-.024c-.175-.014-.409-.015-.786-.015H3.08Z"})})}),q=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsxs("svg",{...n,ref:t,fill:"none",height:c,viewBox:"0 0 14 14",width:r,xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M7.042 4.475c.49 0 .97.15 1.377.429.407.28.724.677.912 1.142.187.464.237.976.141 1.469a2.57 2.57 0 0 1-.676 1.303 2.5 2.5 0 0 1-1.035.637 2.42 2.42 0 0 1-2.293-.467 2.54 2.54 0 0 1-.719-.994 2.6 2.6 0 0 1 .23-2.389c.226-.348.534-.633.893-.83a2.4 2.4 0 0 1 1.17-.3m-.017 1.157c-.354 0-.694.145-.944.402s-.392.605-.393.968c0 .755.617 1.389 1.354 1.389.73 0 1.317-.627 1.317-1.389 0-.754-.598-1.37-1.334-1.37",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),o.jsx("path",{d:"M7.023 2c2.73 0 5.303 1.51 6.656 4.154l.127.258.001.002.122.274.005.009v.007a.9.9 0 0 1 .066.303.9.9 0 0 1-.065.317v.005l-.004.008C12.665 10.313 9.904 12 6.997 12 4.09 12 1.333 10.318.066 7.349L.06 7.344l-.003-.01A1.1 1.1 0 0 1 0 7.016c0-.101.02-.202.057-.318L.06 6.69v-.002a7.7 7.7 0 0 1 2.797-3.415A7.43 7.43 0 0 1 7.023 2m0 1.284c-2.308 0-4.601 1.261-5.731 3.726 1.139 2.477 3.401 3.706 5.704 3.706 2.308 0 4.572-1.238 5.7-3.704-1.129-2.466-3.369-3.728-5.673-3.728",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})]})}),G=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsxs("svg",{...n,ref:t,fill:"none",height:c,viewBox:"0 0 14 14",width:r,xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"m2.867 12.098 1.266.804 7-11-1.266-.804zM10.264 4.2c1.005.624 1.86 1.564 2.431 2.813-1.127 2.465-3.39 3.703-5.699 3.703q-.423-.002-.84-.06l-.745 1.17A7.5 7.5 0 0 0 6.996 12c2.907 0 5.669-1.687 6.936-4.663l.003-.008v-.005A.9.9 0 0 0 14 7.008a.9.9 0 0 0-.066-.304v-.008l-.005-.008-.121-.274-.001-.002-.127-.258h-.001a7.7 7.7 0 0 0-2.736-3.022zM7.022 2a7.43 7.43 0 0 0-4.166 1.274A7.7 7.7 0 0 0 .061 6.688L.06 6.69l-.003.007a1 1 0 0 0-.057.32q.005.163.058.317l.003.01.004.005c.658 1.54 1.718 2.73 2.99 3.523l.678-1.067C2.727 9.188 1.866 8.259 1.292 7.01c1.13-2.465 3.423-3.727 5.73-3.727q.416 0 .826.057l.743-1.17A7.4 7.4 0 0 0 7.022 2",fill:"currentColor"}),o.jsx("path",{d:"M8.343 7.219c-.061.408-.292.76-.616.968l-.872 1.369c.305.023.612-.01.906-.1.39-.123.747-.341 1.035-.638.346-.356.581-.81.677-1.303a2.6 2.6 0 0 0-.244-1.69zM7.042 4.475c-.408 0-.81.103-1.17.3-.36.198-.667.483-.893.83a2.61 2.61 0 0 0-.23 2.389q.027.063.058.124l.925-1.455a1.4 1.4 0 0 1 .472-.741l.92-1.444z",fill:"currentColor"})]})}),S=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M7 9.25 9.25 7m0 0L7 4.75M9.25 7H1m0-3.564V3.4c0-.84 0-1.26.163-1.581a1.5 1.5 0 0 1 .656-.656C2.139 1 2.56 1 3.4 1h7.2c.84 0 1.26 0 1.58.163a1.5 1.5 0 0 1 .657.656c.163.32.163.74.163 1.579v7.205c0 .838 0 1.257-.163 1.578a1.5 1.5 0 0 1-.656.656c-.321.163-.74.163-1.579.163H3.398c-.839 0-1.259 0-1.58-.163a1.5 1.5 0 0 1-.655-.656C1 11.86 1 11.44 1 10.6v-.037"})})}),E=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",d:"M.8 0h12.4c.421 0 .8.379.8.8v12.4c0 .421-.379.8-.8.8H.8c-.421 0-.8-.379-.8-.8V.8C0 .378.379 0 .8 0m9.142 7.861h1.934l.084-1.85H9.942V4.645c0-.525.105-.82.778-.82h1.177l.042-1.724s-.525-.084-1.282-.084c-1.85 0-2.67 1.156-2.67 2.397V6.01H6.621v1.85h1.366v5.129h1.955z"})})}),D=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M12 5.5v4.867c0 .746 0 1.12-.14 1.405a1.3 1.3 0 0 1-.562.583c-.275.145-.635.145-1.355.145H4.557c-.72 0-1.08 0-1.355-.145a1.3 1.3 0 0 1-.562-.583c-.14-.285-.14-.659-.14-1.405V3.633c0-.746 0-1.12.14-1.405.123-.25.32-.455.562-.583.275-.145.635-.145 1.355-.145h3.586M12 5.5l-3.857-4M12 5.5H8.786a.655.655 0 0 1-.643-.667V1.5"})})}),F=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M2.49 2.25H5.19c.413 0 .508.004.588.021q.133.03.243.093c.064.036.128.088.421.358l.098.09c.244.224.45.42.7.56q.232.13.486.205l.17.044c.278.061.564.058.912.058h2.702c.447 0 .74 0 .966.017.217.017.307.045.356.068a.75.75 0 0 1 .342.308c.013.024.04.084.056.27.018.198.019.459.019.872v5c0 .413-.001.675-.019.872-.016.186-.043.246-.056.27a.75.75 0 0 1-.342.309c-.049.023-.139.051-.356.067-.225.017-.52.018-.966.018H2.489c-.447 0-.74 0-.966-.018-.217-.016-.307-.044-.356-.067a.75.75 0 0 1-.342-.309c-.013-.024-.04-.084-.056-.27a11 11 0 0 1-.019-.872V3.786c0-.413.001-.675.019-.872.016-.186.043-.246.056-.27a.75.75 0 0 1 .342-.309c.049-.023.139-.051.356-.067.225-.017.52-.018.966-.018"})})}),T=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m11.967 5.643 1.78.29a.3.3 0 0 1 .253.298v1.657a.3.3 0 0 1-.25.297l-1.782.312a5 5 0 0 1-.424 1.027l1.054 1.463a.3.3 0 0 1-.031.39l-1.171 1.171a.3.3 0 0 1-.387.034l-1.477-1.037a5 5 0 0 1-1.033.432l-.315 1.774a.3.3 0 0 1-.297.249H6.231a.3.3 0 0 1-.297-.251l-.294-1.766a5 5 0 0 1-1.038-.428l-1.467 1.027a.3.3 0 0 1-.386-.034l-1.171-1.172a.3.3 0 0 1-.032-.388l1.037-1.45a5 5 0 0 1-.434-1.042L.393 8.185a.3.3 0 0 1-.249-.297V6.23c0-.147.107-.273.252-.297l1.757-.292A5 5 0 0 1 2.586 4.6L1.562 3.135a.3.3 0 0 1 .034-.386l1.17-1.17a.3.3 0 0 1 .389-.033l1.455 1.04a5 5 0 0 1 1.035-.426L5.933.397a.3.3 0 0 1 .298-.253h1.656c.147 0 .272.106.297.25l.31 1.773q.541.156 1.034.43l1.46-1.049a.3.3 0 0 1 .388.031l1.172 1.171a.3.3 0 0 1 .033.386l-1.039 1.481a5 5 0 0 1 .425 1.026m-7.003 1.43a2.109 2.109 0 1 0 4.217-.001 2.109 2.109 0 0 0-4.217 0",clipRule:"evenodd"})})}),U=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",d:"M6.293.818a1 1 0 0 1 1.414 0l5.586 5.585c.39.39.39 1.025 0 1.415l-5.586 5.585a1 1 0 0 1-1.414 0L.707 7.818a1 1 0 0 1 0-1.415L4.731 2.38l1.215 1.215a1.187 1.187 0 0 0 .554 1.68v4a1.187 1.187 0 1 0 .95 0V5.275q.06-.026.117-.06l1.865 1.864A1.186 1.186 0 0 0 10.537 8.7a1.188 1.188 0 1 0-.434-2.293L8.135 4.44a1.187 1.187 0 0 0-1.411-1.411l-1.32-1.32z"})})}),K=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 0a7 7 0 0 1 7 7.2c0 3.1-2 5.8-4.8 6.8-.3 0-.5-.2-.5-.4v-2c0-.6-.2-1-.4-1.3 1.5-.1 3.2-.7 3.2-3.5a3 3 0 0 0-.8-2c.1-.1.4-.8 0-1.8 0 0-.6-.2-2 .7a6.6 6.6 0 0 0-3.5 0C4 2.7 3.3 3 3.3 3c-.4 1-.1 1.7 0 1.9-.5.5-.8 1.1-.8 1.9 0 2.8 1.7 3.4 3.2 3.5-.2.2-.4.5-.4 1-.4.2-1.4.5-2-.6 0 0-.4-.7-1.1-.7 0 0-.7 0 0 .4 0 0 .4.2.7 1 0 0 .4 1.3 2.4 1v1.2c0 .2-.2.5-.5.4A7.2 7.2 0 0 1 0 7.2 7 7 0 0 1 7 0Z",clipRule:"evenodd"})})}),N=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0ZM1.4 7.7c.3 2.2 1.9 4 4 4.7a9.7 9.7 0 0 1-1.9-4.7h-2Zm9 0c0 1.5-.6 3-1.8 4.7a5.6 5.6 0 0 0 4-4.7h-2.1ZM5 7.7c.2 1.4.8 3 2.1 4.6A8.7 8.7 0 0 0 9 7.7H5Zm.3-6c-2 .6-3.5 2.4-3.8 4.6h2.1l.1-.8a12 12 0 0 1 1.5-3.8Zm1.8 0A8.2 8.2 0 0 0 5 6.3h4.2v-.6a8.2 8.2 0 0 0-2.1-4Zm1.8 0a9.4 9.4 0 0 1 1.7 4.6h2c-.2-2.2-1.7-4-3.7-4.6Z",clipRule:"evenodd"})})}),O=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.893 5.802H7.127c0 .6 0 1.8-.004 2.399h3.341c-.128.6-.582 1.44-1.223 1.862 0 0-.001.004-.002.003-.853.563-1.979.69-2.814.523a3.71 3.71 0 0 1-2.768-2.417c.003-.002.005-.018.007-.02-.264-.748-.264-1.75 0-2.35h-.001C4.003 4.7 5.07 3.695 6.382 3.42c1.055-.223 2.245.019 3.12.838.117-.114 1.612-1.574 1.724-1.692C8.235-.144 3.446.809 1.654 4.307l-.004.006a5.86 5.86 0 0 0 .007 5.379l-.007.005a6.1 6.1 0 0 0 3.888 3.099c1.807.473 4.106.15 5.646-1.243l.002.001c1.305-1.175 2.117-3.177 1.707-5.752",clipRule:"evenodd"})})}),Q=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",d:"M9.71 0c.374 0 .678.304.678.678v.677h.677c.872 0 1.58.708 1.58 1.58v.678h.678a.678.678 0 0 1 0 1.355h-.678v1.355h.678a.677.677 0 0 1 0 1.355h-.678v1.354h.678a.678.678 0 0 1 0 1.356h-.678v.677c0 .872-.708 1.58-1.58 1.58h-.677v.678a.678.678 0 0 1-1.356 0v-.678H7.678v.678a.678.678 0 0 1-1.355 0v-.678H4.968v.678a.677.677 0 0 1-1.355 0v-.678h-.677a1.58 1.58 0 0 1-1.58-1.58v-.677H.677a.678.678 0 0 1 0-1.356h.677V7.678H.678a.678.678 0 0 1 0-1.355h.677V4.968H.678a.678.678 0 1 1 0-1.355h.677v-.677c0-.873.708-1.58 1.58-1.58h.678V.677a.678.678 0 0 1 1.355 0v.677h1.355V.678a.677.677 0 1 1 1.355 0v.677h1.354V.678c0-.374.304-.678.678-.678ZM2.936 2.71a.226.226 0 0 0-.226.226v8.128c0 .125.101.227.226.227h8.128a.228.228 0 0 0 .227-.226v-8.13a.227.227 0 0 0-.226-.225h-8.13Zm5.42 1.354c.872 0 1.58.709 1.58 1.582v2.71a1.58 1.58 0 0 1-1.58 1.58h-2.71c-.873 0-1.581-.708-1.582-1.58v-2.71c0-.873.709-1.582 1.582-1.582h2.71ZM5.645 5.42c-.125 0-.226.1-.226.226v2.71c0 .124.101.225.226.225h2.71a.226.226 0 0 0 .225-.226v-2.71a.226.226 0 0 0-.226-.225h-2.71Z"})})}),$=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",d:"M1 5.7v7.8h4.286v-3.467C5.286 9.076 6.053 8.3 7 8.3s1.714.776 1.714 1.733V13.5H13V5.7L7 .5z"})})}),J=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",d:"M3.85 1c-.355 0-.667 0-.923.02-.265.022-.537.07-.801.205a2.06 2.06 0 0 0-.901.901 2.1 2.1 0 0 0-.204.8C1 3.184 1 3.496 1 3.85v6.3c0 .412-.002.771.034 1.063.027.22.08.443.19.661.198.388.514.704.902.901.264.135.536.183.8.204.257.021.569.021.924.021h6.3c.41 0 .768.001 1.059-.034.221-.027.445-.079.665-.19l.142-.08c.323-.199.586-.482.76-.822.134-.264.182-.536.204-.8.02-.257.02-.569.02-.924v-6.3c0-.355 0-.667-.02-.923a2.1 2.1 0 0 0-.205-.801 2.06 2.06 0 0 0-.901-.901 2.1 2.1 0 0 0-.8-.204C10.816 1 10.504 1 10.15 1zm1.869 7.336a.56.56 0 0 1 .35-.004c.018.006.073.026.207.139.141.118.314.29.587.56l1.092 1.082v.001L9.338 11.5H3.85c-.38 0-.62 0-.801-.016-.172-.014-.224-.037-.241-.046h-.001a.6.6 0 0 1-.159-.123l2.28-2.25.013-.013c.267-.277.436-.451.575-.573.13-.114.184-.137.203-.143m4.313.858a.56.56 0 0 1 .35.004c.019.006.072.029.204.145.138.122.308.296.575.573v.001l.008.008.33.332c0 .319-.001.53-.015.694-.014.172-.037.224-.046.241v.001a.6.6 0 0 1-.127.162L9.55 9.587c.11-.106.198-.187.276-.253.135-.113.19-.134.207-.14M10.15 2.5c.38 0 .62 0 .801.016.172.014.224.037.241.046h.001c.106.053.192.14.245.245.01.018.032.07.046.242.015.181.016.42.016.8v4.302a2 2 0 0 0-.633-.372 2.06 2.06 0 0 0-1.286-.015 2.1 2.1 0 0 0-.72.422 7 7 0 0 0-.375.343l-.567-.563c-.255-.253-.479-.475-.678-.643a2.3 2.3 0 0 0-.515-.342l-.205-.08a2.06 2.06 0 0 0-1.285.015 2.1 2.1 0 0 0-.71.437c-.193.168-.407.39-.651.644L2.5 9.354V3.85c0-.38 0-.62.016-.801.014-.171.037-.224.046-.241v-.001a.56.56 0 0 1 .245-.245c.018-.01.07-.032.242-.046.181-.015.42-.016.8-.016zm-1.181.594a1.937 1.937 0 1 0 0 3.875 1.937 1.937 0 0 0 0-3.875m0 1.25a.687.687 0 1 1 0 1.375.687.687 0 0 1 0-1.375"})})}),X=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsxs("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:[o.jsx("circle",{cx:"7",cy:"7",r:"5.25",stroke:"currentColor",strokeWidth:"1.4"}),o.jsx("circle",{cx:"7",cy:"5",r:"0.75",fill:"currentColor",stroke:"none"}),o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M7 7v2.5"})]})}),Y=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsxs("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:[o.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 10.818a3.818 3.818 0 1 0 0-7.636 3.818 3.818 0 0 0 0 7.636m0-1.273a2.545 2.545 0 1 0 0-5.09 2.545 2.545 0 0 0 0 5.09",clipRule:"evenodd"}),o.jsx("path",{fill:"currentColor",d:"M10.818 2.545a.636.636 0 1 0 0 1.273.636.636 0 0 0 0-1.273"}),o.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M.416 2.085C0 2.902 0 3.97 0 6.109v1.782c0 2.138 0 3.207.416 4.024.366.719.95 1.303 1.669 1.669C2.902 14 3.97 14 6.109 14h1.782c2.138 0 3.207 0 4.024-.416a3.8 3.8 0 0 0 1.669-1.669C14 11.1 14 10.03 14 7.891V6.109c0-2.138 0-3.207-.416-4.024A3.8 3.8 0 0 0 11.915.416C11.1 0 10.03 0 7.891 0H6.109C3.971 0 2.902 0 2.085.416A3.8 3.8 0 0 0 .416 2.085m7.475-.812H6.109c-1.09 0-1.831 0-2.404.048-.558.045-.843.128-1.042.23A2.55 2.55 0 0 0 1.55 2.662c-.101.199-.184.484-.23 1.042-.046.573-.047 1.314-.047 2.404v1.782c0 1.09 0 1.831.048 2.404.045.558.128.843.23 1.043.243.478.633.868 1.112 1.112.199.101.484.184 1.042.23.573.046 1.314.047 2.404.047h1.782c1.09 0 1.831 0 2.404-.047.558-.046.843-.129 1.043-.23a2.55 2.55 0 0 0 1.112-1.112c.101-.2.184-.485.23-1.043.046-.573.047-1.314.047-2.404V6.109c0-1.09 0-1.831-.047-2.404-.046-.558-.129-.843-.23-1.042a2.55 2.55 0 0 0-1.112-1.113c-.2-.101-.485-.184-1.043-.23-.573-.046-1.314-.047-2.404-.047",clipRule:"evenodd"})]})}),_=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.254 7.814C11.323 7.814 13 6.177 13 4.157S11.323.5 9.254.5 5.507 2.137 5.507 4.157c0 .57.134 1.11.373 1.592a.55.55 0 0 1-.09.64l-4.423 4.318a.5.5 0 0 0 0 .715l1.779 1.737a.5.5 0 0 0 .698 0l.462-.45a.5.5 0 0 0 0-.716l-.585-.57a.5.5 0 0 1 0-.716l.605-.59a.5.5 0 0 1 .698 0l.62.604a.5.5 0 0 0 .698 0l.461-.45a.5.5 0 0 0 0-.716l-.584-.57a.5.5 0 0 1 0-.716l.761-.744a.55.55 0 0 1 .621-.085c.499.24 1.06.374 1.653.374m0-1.625c1.15 0 2.081-.91 2.081-2.032s-.932-2.032-2.081-2.032-2.082.91-2.082 2.032.932 2.032 2.082 2.032",clipRule:"evenodd"})})}),o0=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14 14h-2.8V9.1c0-1.3-.6-2-1.7-2s-1.8.7-1.8 2V14H4.9V4.9h2.8v1s.9-1.5 2.9-1.5S14 5.6 14 8v6ZM1.7 3.4C.7 3.4 0 2.7 0 1.7S.8 0 1.7 0a1.7 1.7 0 0 1 0 3.4ZM0 14h3.5V4.9H0V14Z",clipRule:"evenodd"})})}),r0=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsxs("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"3 -2 16 22",fill:"none",children:[o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",d:"m3 3.7 8 5.9 8-5.9"}),o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",d:"M18 2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2Z"})]})}),n0=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",d:"M1 1h5.684v5.684H1zm5.684 12H1V7.316h5.684zM13 1v5.684H7.316V1zm0 12H7.316V7.316H13z"})})}),e0=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M3.5 7.121h7.243"})})}),t0=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",d:"M9.534 2.136a1.784 1.784 0 0 1 1.944 2.91l-.26.258-2.522-2.522.259-.26c.166-.165.362-.297.579-.386ZM7.989 3.489 2.827 8.65a.5.5 0 0 0-.128.222l-.681 2.497a.5.5 0 0 0 .614.614l2.496-.681a.5.5 0 0 0 .222-.129l5.162-5.162L7.989 3.49Z"})})}),c0=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M3.5 7.121h7.243M7.122 3.5v7.243"})})}),l0=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsxs("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:[o.jsx("rect",{width:"6",height:"6",fill:"currentColor",rx:"1"}),o.jsx("rect",{width:"6",height:"6",x:"8",fill:"currentColor",rx:"1"}),o.jsx("rect",{width:"6",height:"6",y:"8",fill:"currentColor",rx:"1"}),o.jsx("rect",{width:"6",height:"6",x:"8",y:"8",fill:"currentColor",rx:"1"})]})}),s0=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsxs("g",{fill:"currentColor",children:[o.jsx("path",{d:"M14 14h-3.111v-1.556h1.555V10.89H14V14ZM0 0h6.222v6.222H0V0Zm1.556 1.556v3.11h3.11v-3.11h-3.11ZM7.778 0H14v6.222H7.778V0Zm1.555 1.556v3.11h3.111v-3.11h-3.11ZM0 7.778h6.222V14H0V7.778Zm1.556 1.555v3.111h3.11v-3.11h-3.11Zm10.11-1.555H14V9h-2.333V7.778ZM9.333 10H7.778V7.778h1.555V10ZM9.31 12.444V14H7.779v-2H9.31v.444ZM9.3 11h1v1h-1zM10.3 11h1v1h-1z"}),o.jsx("path",{d:"M11.3 10H14v1h-2.7zM10.3 9h1v1h-1z"})]})})}),i0=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.1 9.1a1 1 0 0 1-1-1c0-.7.5-1.2 1-1.2.6 0 1 .5 1 1.1 0 .6-.4 1.1-1 1.1Zm.2 2c-.5.5-1.3.8-2.3.8-1 0-1.8-.3-2.3-.8a.3.3 0 0 1 0-.4c.1-.1.3-.1.4 0 .4.4 1 .6 1.9.6.9 0 1.5-.2 1.9-.6 0-.1.3-.1.4 0v.4ZM3.9 8c0-.7.5-1.2 1-1.2s1 .5 1 1.1c0 .6-.5 1.1-1 1.1s-1-.5-1-1ZM14 6.8c0-1-.7-1.8-1.6-1.8-.4 0-.8.2-1 .5a6.8 6.8 0 0 0-4-1.3l.8-3 2.2.6c0 .8.8 1.5 1.5 1.5s1.4-.7 1.4-1.5c0-.7-.7-1.4-1.4-1.4-.6 0-1.2.4-1.4.9L7.8.7l-1 3.6c-1.6 0-3 .5-4.2 1.2-.3-.2-.6-.4-1-.4-.9 0-1.6.8-1.6 1.8 0 .6.3 1.1.8 1.5C.3 11 3.3 13.5 7 13.5s6.6-2.4 6.2-5.1c.5-.3.8-.9.8-1.5Z",clipRule:"evenodd"})})}),h0=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsxs("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 15",fill:"none",children:[o.jsx("path",{fill:"currentColor",d:"M4.875 10.65a.437.437 0 0 0-.437.438v2.625a.438.438 0 0 0 .68.364l1.07-.713 1.07.713a.438.438 0 0 0 .68-.364v-2.625a.437.437 0 0 0-.438-.438z"}),o.jsx("path",{fill:"currentColor",stroke:"currentColor",strokeWidth:".15",d:"M12.094.075a1.17 1.17 0 0 1 1.169 1.169V12.18a1.17 1.17 0 0 1-1.17 1.17h-2.63a.732.732 0 0 1 0-1.464H11.8V9.413H2.906a.58.58 0 0 0-.58.58v1.313a.58.58 0 0 0 .58.581h.069a.731.731 0 0 1 0 1.463h-.069a2.044 2.044 0 0 1-2.044-2.044V2.12A2.044 2.044 0 0 1 2.906.075zM2.906 1.538a.58.58 0 0 0-.58.58v5.917q.276-.084.58-.085H11.8V1.538z"})]})}),a0=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",d:"M9.958 0c.194 0 .49.066.663.148 0 0-.112-.12.045.042.141.147 3.117 3.214 3.178 3.278.055.059.024.032.021.03.081.175.135.48.135.673v8.374c0 .62-.743 1.455-1.453 1.455l-2.436-.007A1.02 1.02 0 0 1 10 14H4c-.073 0-.144-.009-.212-.023l-2.345-.006A1.44 1.44 0 0 1 .01 12.56C-.022 11.696.04 2.202.04 1.454.04.708.646.031 1.524.031 2.404.031 9.958 0 9.958 0ZM1.471 1.435a.174.174 0 0 0-.057.037.173.173 0 0 0-.037.056.172.172 0 0 0-.014.067l.014 10.597c0 .193.158.35.352.352L3 12.55V8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4.592l1.3.008a.349.349 0 0 0 .351-.349l-.012-7.914a.476.476 0 0 0-.127-.297L9.948 1.56c-.07-.068-.126-.044-.126.052V4.69c0 .293-.406.8-.774.801H3.75c-.403 0-.838-.413-.838-.8l-.002-3.079a.177.177 0 0 0-.174-.176l-1.199-.014a.176.176 0 0 0-.067.013Zm2.69 11.122 5.679.029V8.16H4.16v4.397Zm.232-11.099a.175.175 0 0 0-.176.175v2.435c0 .097.079.176.176.176h3.92a.175.175 0 0 0 .174-.176V1.634a.176.176 0 0 0-.175-.176h-3.92Z"})})}),w0=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsxs("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:[o.jsx("path",{fill:"currentColor",d:"M7 1.25c-2.29 0-4.584.943-6.297 2.838l-.434.485C-.08 4.956-.09 5.596.242 5.998c.335.403.888.415 1.237.032l.438-.482c2.7-2.988 7.466-2.988 10.166 0l.438.482c.349.383.902.37 1.237-.032.332-.402.322-1.042-.027-1.425l-.434-.489C11.584 2.194 9.29 1.25 7 1.25ZM6.973 5.3c-1.375.012-2.739.635-3.682 1.831l-.438.557a1.083 1.083 0 0 0-.229.726c.01.268.113.521.287.703.171.181.397.276.63.26a.828.828 0 0 0 .608-.332l.434-.552c1.118-1.417 3.64-1.512 4.834.004l.437.548c.154.202.373.32.606.332a.8.8 0 0 0 .632-.26c.17-.182.273-.435.284-.703a1.108 1.108 0 0 0-.23-.726l-.437-.553C9.728 5.888 8.343 5.288 6.973 5.3Z"}),o.jsx("circle",{cx:"7",cy:"11.05",r:"1.867",fill:"currentColor"})]})}),d0=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M4.031 4.031h.006M6.195 1.5H4.5c-1.05 0-1.575 0-1.976.204-.353.18-.64.467-.82.82-.204.4-.204.926-.204 1.976v1.695c0 .458 0 .688.052.904.046.19.121.374.224.542.116.189.278.35.603.675l2.937 2.938c.743.742 1.114 1.114 1.542 1.253.377.122.782.122 1.159 0 .428-.14.8-.51 1.542-1.253l1.695-1.695c.742-.743 1.114-1.114 1.253-1.542a1.88 1.88 0 0 0 0-1.159c-.14-.428-.51-.8-1.253-1.542L8.316 2.38c-.324-.325-.486-.487-.675-.603a1.9 1.9 0 0 0-.542-.224C6.883 1.5 6.653 1.5 6.195 1.5M4.344 4.031a.312.312 0 1 1-.625 0 .312.312 0 0 1 .625 0"})})}),v0=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.589 12c4.905 0 7.588-3.848 7.588-7.184q.002-.164-.008-.327c.522-.357.973-.8 1.331-1.307a5.6 5.6 0 0 1-1.531.397 2.57 2.57 0 0 0 1.172-1.396 5.5 5.5 0 0 1-1.694.613c-1.01-1.017-2.7-1.066-3.774-.11-.692.617-.986 1.536-.771 2.413-2.144-.102-4.143-1.06-5.497-2.638-.708 1.154-.346 2.63.826 3.37a2.8 2.8 0 0 1-1.211-.315v.032c0 1.201.896 2.236 2.14 2.474a2.8 2.8 0 0 1-1.204.043c.35 1.03 1.35 1.734 2.491 1.754A5.55 5.55 0 0 1 .5 10.866a7.87 7.87 0 0 0 4.089 1.132",clipRule:"evenodd"})})}),f0=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",d:"M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0Zm0 1.866a5.134 5.134 0 0 0-3.257 9.102C3.853 9.002 4.821 7.467 7 7.467c2.179 0 3.146 1.535 3.256 3.5A5.134 5.134 0 0 0 7 1.866ZM7 2.8a1.867 1.867 0 1 1-.001 3.733A1.867 1.867 0 0 1 7 2.8Z"})})}),g0=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsxs("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:[o.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.4",d:"M7 1.5 1.5 11.5h11L7 1.5Z"}),o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M7 6v2"}),o.jsx("circle",{cx:"7",cy:"9.75",r:"0.75",fill:"currentColor",stroke:"none"})]})}),u0=l.forwardRef(function(e,t){const{height:c,width:r,...n}=e;return o.jsx("svg",{...n,ref:t,xmlns:"http://www.w3.org/2000/svg",width:r,height:c,viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{fill:"currentColor",d:"M10.938 1.003c.196.003.376.007.538.018.331.023.668.074.998.216.488.211.918.56 1.199 1.027.199.33.27.672.3.987.028.297.027.655.027 1.035v5.428c0 .38.001.738-.027 1.035-.03.315-.101.657-.3.987a2.553 2.553 0 0 1-1.019.94l-.18.087c-.33.142-.667.193-.998.216-.324.022-.72.021-1.178.021H3.702c-.459 0-.854 0-1.178-.021a3.168 3.168 0 0 1-.874-.167l-.124-.05a2.583 2.583 0 0 1-1.199-1.026c-.199-.33-.27-.672-.3-.987C0 10.452 0 10.094 0 9.714V4.286c0-.38-.001-.738.027-1.035.03-.315.101-.657.3-.987l.112-.17a2.615 2.615 0 0 1 1.087-.857l.124-.049a3.17 3.17 0 0 1 .874-.167C2.848 1 3.244 1 3.702 1h6.596l.64.003ZM3.702 3c-.487 0-.8 0-1.04.017-.23.016-.312.043-.344.057a.596.596 0 0 0-.275.218c.01-.02-.01 0-.024.151C2 3.623 2 3.867 2 4.286v5.428c0 .42.001.664.019.843.008.091.019.134.024.15.044.07.13.157.274.219h.001c.032.014.113.041.344.057.24.017.553.017 1.04.017h6.596c.486 0 .8 0 1.04-.017.23-.016.312-.043.344-.057a.59.59 0 0 0 .274-.219.758.758 0 0 0 .025-.15c.018-.18.019-.424.019-.843V4.286c0-.42-.001-.664-.019-.843a.763.763 0 0 0-.025-.151.594.594 0 0 0-.274-.218c-.032-.014-.113-.041-.344-.057a7.799 7.799 0 0 0-.427-.015L10.298 3H3.702Zm4.24.5a1 1 0 0 1 0 2h-.008a1 1 0 0 1 0-2h.008Zm2.534 0a1 1 0 0 1 0 2h-.01a1 1 0 0 1 0-2h.01Z"})})}),x0={projects:l0,chat:H,articles:p,mail:r0,github:K,globe:N,google:O,microsoft:n0,bing:I,apple:x,twitter:v0,facebook:E,instagram:Y,linkedin:o0,reddit:i0,exit:S,camera:R,"qr-code":s0,download:z,save:a0,pencil:t0,"arrow-left":j,"arrow-right":C,cross:W,checkmark:B,plus:c0,minus:e0,window:u0,chain:L,user:f0,duplicate:b,eye:q,"eye-off":G,signal:w0,audio:m,hardware:Q,burger:k,repository:h0,"chevron-down":P,"chevron-up":A,"chevron-left":V,"chevron-right":Z,branch:M,commit:y,folder:F,file:D,image:J,tag:d0,key:_,gear:T,git:U,home:$,info:X,warning:g0},p0=l.forwardRef(function(e,t){const{"aria-hidden":c,"aria-label":r,"aria-labelledby":n,className:v,color:h,role:f,size:i,style:g,type:a,...u}=e,w=x0[a];if(!w)return console.warn(`Icon type "${a}" not found`),null;const d=r!==void 0||n!==void 0;return l.createElement(w,{...u,"aria-hidden":c??(d?void 0:!0),"aria-label":r,"aria-labelledby":n,className:["nk-icon",v].filter(Boolean).join(" "),ref:t,role:f??(d?"img":void 0),style:{...i===void 0?void 0:{height:i,width:i},...g,...h?{color:h}:void 0}})});exports.Icon=p0;
|