neatkit 0.8.0 → 0.9.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/Boundary.cjs +1 -1
- package/dist/Boundary.js +29 -29
- package/dist/Button-BV5OUXpc.js +101 -0
- package/dist/Button-DU4j_IED.cjs +1 -0
- 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/{Code-JDb4VFl7.cjs → Code-B7s_rN0G.cjs} +1 -1
- package/dist/{Code-ClkozPlv.js → Code-Bp2X1k-g.js} +1 -4
- package/dist/Code.cjs +1 -1
- package/dist/Code.js +1 -1
- package/dist/Divider-C7XGlr26.cjs +1 -0
- package/dist/{Divider-BE15WVDI.js → Divider-DZgpYpr-.js} +1 -1
- package/dist/Divider.cjs +1 -1
- package/dist/Divider.js +1 -1
- package/dist/Icon-BIBzgznI.cjs +1 -0
- package/dist/{Icon-BoEUoOk7.js → Icon-CxK1wlGk.js} +98 -52
- 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 +108 -104
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +1 -1
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +147 -141
- package/dist/Select.cjs +1 -1
- package/dist/Select.js +2 -2
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +310 -295
- package/dist/Table-CADupJEU.js +423 -0
- package/dist/Table-qetwZpTC.cjs +1 -0
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +1 -1
- package/dist/{Tooltip-B4bajPtk.cjs → Tooltip-B2d5ss7S.cjs} +1 -1
- package/dist/{Tooltip-BVqdnKK_.js → Tooltip-BK64rkxV.js} +1 -1
- package/dist/Tooltip.cjs +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/albert-sans-cb3e34c4.woff2 +0 -0
- package/dist/components/Icon/icons/GearIcon.d.ts +11 -0
- package/dist/components/Icon/icons/ImageIcon.d.ts +11 -0
- package/dist/components/Icon/utils/registry.d.ts +2 -0
- package/dist/components/Sidebar/Sidebar.d.ts +6 -1
- package/dist/components/Sidebar/components/SidebarFooter.d.ts +5 -0
- package/dist/components/Sidebar/components/SidebarGroup.d.ts +5 -16
- package/dist/components/Sidebar/components/SidebarHeader.d.ts +29 -0
- package/dist/components/Sidebar/components/SidebarItem.d.ts +3 -0
- package/dist/components/Sidebar/components/SidebarPanel.d.ts +2 -2
- package/dist/components/Sidebar/hooks/usePresentation.d.ts +2 -2
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Sidebar/utils/presentation.d.ts +12 -0
- package/dist/components/Sidebar/utils/state.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +21 -209
- package/dist/components/Table/components/TableAction.d.ts +18 -0
- package/dist/components/Table/components/TableActionCell.d.ts +15 -0
- package/dist/components/Table/components/TableActionHeaderCell.d.ts +13 -0
- package/dist/components/Table/components/TableBody.d.ts +27 -0
- package/dist/components/Table/components/TableCell.d.ts +42 -0
- package/dist/components/Table/components/TableFoot.d.ts +19 -0
- package/dist/components/Table/components/TableHead.d.ts +19 -0
- package/dist/components/Table/components/TableHeaderCell.d.ts +23 -0
- package/dist/components/Table/components/TableRow.d.ts +67 -0
- package/dist/components/Table/hooks/useHorizontalOverflow.d.ts +25 -0
- package/dist/components/Table/utils/cell.d.ts +25 -0
- package/dist/components/Table/utils/children.d.ts +18 -0
- package/dist/components/Table/utils/trigger.d.ts +54 -0
- package/dist/floating-position-DIjh2wnP.cjs +1 -0
- package/dist/floating-position-DvR6e334.js +50 -0
- package/dist/style.css +1 -1
- package/dist/{useFloatingPosition-CMirP2-2.js → useFloatingPosition-B3ZC-v3v.js} +1 -1
- package/dist/{useFloatingPosition-BBEUHPqy.cjs → useFloatingPosition-GzkP9dCc.cjs} +1 -1
- package/package.json +2 -1
- package/dist/Button-Chv4O66e.js +0 -99
- package/dist/Button-DCKtFvSo.cjs +0 -1
- package/dist/Divider-CJYbFcSX.cjs +0 -1
- package/dist/Icon-DJ4BigRz.cjs +0 -1
- package/dist/Table-B30TBckZ.js +0 -402
- package/dist/Table-DceR12X9.cjs +0 -1
- package/dist/floating-position-5wJ5G5IT.js +0 -48
- package/dist/floating-position-Cy9xxdH4.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const B=require("react"),L=require("./floating-position-
|
|
1
|
+
"use strict";const B=require("react"),L=require("./floating-position-DIjh2wnP.cjs"),S=8;function A(d,r,o,s,c){const[P,p]=B.useState(null);return B.useEffect(()=>{if(!d||!o||!s||!c){p(null);return}const C=o,F=s,i=c,a=o.ownerDocument.defaultView;if(!a)return;const n=a,m=n.getComputedStyle(o),f=Number.parseFloat(m.getPropertyValue("--nk-space-8")),w=Number.isFinite(f)?f:S;function e(){const v=C.getBoundingClientRect(),E=F.getBoundingClientRect(),u=i.getBoundingClientRect(),l=L.calculateFloatingPosition(r,w,v,E,L.getVisibleBounds(u,n.innerWidth,n.innerHeight));p({...l,left:l.left-u.left-i.clientLeft+i.scrollLeft,top:l.top-u.top-i.clientTop+i.scrollTop})}e(),n.addEventListener("scroll",e,!0),n.addEventListener("resize",e);const g=n.ResizeObserver,t=g?new g(e):null;return t==null||t.observe(o),t==null||t.observe(s),t==null||t.observe(c),()=>{n.removeEventListener("scroll",e,!0),n.removeEventListener("resize",e),t==null||t.disconnect()}},[d,c,s,r,o]),P}exports.useFloatingPosition=A;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neatkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "A modern, composable UI library for the web.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"library",
|
|
@@ -167,6 +167,7 @@
|
|
|
167
167
|
"test:coverage": "vitest run --coverage",
|
|
168
168
|
"test:watch": "vitest",
|
|
169
169
|
"test:imports": "tsx test/imports.ts",
|
|
170
|
+
"test:styles": "tsx test/styles.ts",
|
|
170
171
|
"typecheck": "tsc --noEmit"
|
|
171
172
|
},
|
|
172
173
|
"peerDependencies": {
|
package/dist/Button-Chv4O66e.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as k, Fragment as C, jsx as m } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as K, createElement as q, isValidElement as G, Fragment as O } from "react";
|
|
4
|
-
import { I as x } from "./Icon-BoEUoOk7.js";
|
|
5
|
-
import { S as V } from "./Spinner-CVYvk6YK.js";
|
|
6
|
-
function g(t) {
|
|
7
|
-
return t == null || typeof t == "boolean" || typeof t == "string" && !t.trim() ? !1 : Array.isArray(t) ? t.some(g) : G(t) && t.type === O ? g(t.props.children) : !0;
|
|
8
|
-
}
|
|
9
|
-
function W(t, a) {
|
|
10
|
-
const s = t.getBoundingClientRect(), p = a.clientX - s.left, l = a.clientY - s.top;
|
|
11
|
-
t.style.setProperty("--nk-button-glow-x", `${p}px`), t.style.setProperty("--nk-button-glow-y", `${l}px`);
|
|
12
|
-
}
|
|
13
|
-
const L = K(function(a, s) {
|
|
14
|
-
const {
|
|
15
|
-
as: p,
|
|
16
|
-
children: l,
|
|
17
|
-
className: P,
|
|
18
|
-
disabled: B,
|
|
19
|
-
fullWidth: w = !1,
|
|
20
|
-
icon: i,
|
|
21
|
-
iconAlignment: h = "left",
|
|
22
|
-
loading: f = !1,
|
|
23
|
-
onClick: A,
|
|
24
|
-
onKeyDown: v,
|
|
25
|
-
onMouseMove: I,
|
|
26
|
-
role: y,
|
|
27
|
-
shape: D = "capsule",
|
|
28
|
-
tabIndex: b,
|
|
29
|
-
textAlignment: j = "center",
|
|
30
|
-
tone: E,
|
|
31
|
-
variant: M = "primary",
|
|
32
|
-
...d
|
|
33
|
-
} = a, r = p ?? "button", e = B || f, N = !!i && !g(l), u = r === "a" && "href" in d && typeof d.href == "string", c = typeof r == "string" && r !== "button" && !u, R = (o) => {
|
|
34
|
-
if (e) {
|
|
35
|
-
o.preventDefault(), o.stopPropagation();
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
const n = A;
|
|
39
|
-
n == null || n(o);
|
|
40
|
-
}, S = (o) => {
|
|
41
|
-
W(o.currentTarget, o);
|
|
42
|
-
const n = I;
|
|
43
|
-
n == null || n(o);
|
|
44
|
-
}, _ = (o) => {
|
|
45
|
-
const n = v;
|
|
46
|
-
n == null || n(o), !(o.defaultPrevented || e || !c || o.key !== "Enter" && o.key !== " ") && (o.preventDefault(), o.currentTarget.click());
|
|
47
|
-
}, F = r === "button" ? {
|
|
48
|
-
"aria-disabled": e || void 0,
|
|
49
|
-
type: d.type ?? "button"
|
|
50
|
-
} : { "aria-disabled": e || void 0 }, T = u && e ? { href: void 0 } : void 0, $ = u && e ? y ?? "link" : c ? y ?? "button" : y, z = r === "button" ? b : u && e ? void 0 : e ? -1 : c ? b ?? 0 : b;
|
|
51
|
-
return q(
|
|
52
|
-
r,
|
|
53
|
-
{
|
|
54
|
-
...d,
|
|
55
|
-
...F,
|
|
56
|
-
...T,
|
|
57
|
-
ref: s,
|
|
58
|
-
"aria-busy": f || void 0,
|
|
59
|
-
className: ["nk-button", P].filter(Boolean).join(" "),
|
|
60
|
-
"data-full-width": w || void 0,
|
|
61
|
-
"data-icon-only": N || void 0,
|
|
62
|
-
"data-shape": D,
|
|
63
|
-
"data-tone": E,
|
|
64
|
-
"data-variant": M,
|
|
65
|
-
onClick: R,
|
|
66
|
-
onKeyDown: c ? _ : v,
|
|
67
|
-
onMouseMove: S,
|
|
68
|
-
role: $,
|
|
69
|
-
tabIndex: z
|
|
70
|
-
},
|
|
71
|
-
/* @__PURE__ */ k(C, { children: [
|
|
72
|
-
/* @__PURE__ */ k(
|
|
73
|
-
"span",
|
|
74
|
-
{
|
|
75
|
-
className: "nk-button__content",
|
|
76
|
-
style: { justifyContent: j },
|
|
77
|
-
children: [
|
|
78
|
-
i && h === "left" ? /* @__PURE__ */ m(x, { type: i }) : null,
|
|
79
|
-
l,
|
|
80
|
-
i && h === "right" ? /* @__PURE__ */ m(x, { type: i }) : null
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
),
|
|
84
|
-
f ? /* @__PURE__ */ m(
|
|
85
|
-
V,
|
|
86
|
-
{
|
|
87
|
-
"aria-hidden": "true",
|
|
88
|
-
"aria-label": void 0,
|
|
89
|
-
className: "nk-button__spinner",
|
|
90
|
-
role: void 0,
|
|
91
|
-
size: 16
|
|
92
|
-
}
|
|
93
|
-
) : null
|
|
94
|
-
] })
|
|
95
|
-
);
|
|
96
|
-
});
|
|
97
|
-
export {
|
|
98
|
-
L as B
|
|
99
|
-
};
|
package/dist/Button-DCKtFvSo.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";"use strict";const r=require("react/jsx-runtime"),f=require("react"),k=require("./Icon-DJ4BigRz.cjs"),F=require("./Spinner-BXgw60UC.cjs");function m(t){return t==null||typeof t=="boolean"||typeof t=="string"&&!t.trim()?!1:Array.isArray(t)?t.some(m):f.isValidElement(t)&&t.type===f.Fragment?m(t.props.children):!0}function K(t,a){const l=t.getBoundingClientRect(),y=a.clientX-l.left,c=a.clientY-l.top;t.style.setProperty("--nk-button-glow-x",`${y}px`),t.style.setProperty("--nk-button-glow-y",`${c}px`)}const $=f.forwardRef(function(a,l){const{as:y,children:c,className:P,disabled:j,fullWidth:B=!1,icon:s,iconAlignment:x="left",loading:b=!1,onClick:w,onKeyDown:v,onMouseMove:I,role:h,shape:A="capsule",tabIndex:g,textAlignment:q="center",tone:D,variant:R="primary",...u}=a,i=y??"button",o=j||b,E=!!s&&!m(c),d=i==="a"&&"href"in u&&typeof u.href=="string",p=typeof i=="string"&&i!=="button"&&!d,M=n=>{if(o){n.preventDefault(),n.stopPropagation();return}const e=w;e==null||e(n)},N=n=>{K(n.currentTarget,n);const e=I;e==null||e(n)},S=n=>{const e=v;e==null||e(n),!(n.defaultPrevented||o||!p||n.key!=="Enter"&&n.key!==" ")&&(n.preventDefault(),n.currentTarget.click())},_=i==="button"?{"aria-disabled":o||void 0,type:u.type??"button"}:{"aria-disabled":o||void 0},T=d&&o?{href:void 0}:void 0,z=d&&o?h??"link":p?h??"button":h,C=i==="button"?g:d&&o?void 0:o?-1:p?g??0:g;return f.createElement(i,{...u,..._,...T,ref:l,"aria-busy":b||void 0,className:["nk-button",P].filter(Boolean).join(" "),"data-full-width":B||void 0,"data-icon-only":E||void 0,"data-shape":A,"data-tone":D,"data-variant":R,onClick:M,onKeyDown:p?S:v,onMouseMove:N,role:z,tabIndex:C},r.jsxs(r.Fragment,{children:[r.jsxs("span",{className:"nk-button__content",style:{justifyContent:q},children:[s&&x==="left"?r.jsx(k.Icon,{type:s}):null,c,s&&x==="right"?r.jsx(k.Icon,{type:s}):null]}),b?r.jsx(F.Spinner,{"aria-hidden":"true","aria-label":void 0,className:"nk-button__spinner",role:void 0,size:16}):null]}))});exports.Button=$;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),u=require("react"),f=u.forwardRef(function(o,l){const{"aria-hidden":t,"aria-label":n,"aria-labelledby":i,"aria-orientation":d,className:s,decorative:c=!1,orientation:a="horizontal",role:v,text:e,...b}=o,h=c?{"aria-hidden":!0,"aria-label":void 0,"aria-labelledby":void 0,role:void 0}:{"aria-hidden":t,"aria-label":n??(i===void 0&&a==="horizontal"?e:void 0),"aria-labelledby":i,"aria-orientation":d??a,role:v??"separator"};return r.jsx("div",{...b,...h,ref:l,className:["nk-divider",s].filter(Boolean).join(" "),"data-has-text":!!e||void 0,"data-orientation":a,children:e&&a==="horizontal"?r.jsx("span",{className:"nk-divider__text",children:e}):null})});exports.Divider=f;
|
package/dist/Icon-DJ4BigRz.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("react"),o=require("react/jsx-runtime"),x=s.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"})})}),p=s.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"})})}),j=s.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"})})}),C=s.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=s.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"})})}),m=s.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"})]})}),k=s.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"})]})}),M=s.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"})})}),R=s.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"})})}),L=s.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"})})}),Z=s.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"})})}),H=s.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"})})}),P=s.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"})})}),B=s.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"})})}),V=s.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"})})}),A=s.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"})})}),y=s.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"})})}),W=s.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"})]})}),b=s.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"})]})}),z=s.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"})})}),q=s.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"})})}),G=s.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"})})}),S=s.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"})})}),E=s.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"})})}),D=s.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"})})}),F=s.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"})})}),U=s.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"})})}),K=s.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"})]})}),N=s.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"})})}),O=s.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"})})}),Q=s.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"})]})}),T=s.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"})})}),$=s.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"})})}),J=s.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"})})}),X=s.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"})]})}),Y=s.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"})]})})}),_=s.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"})})}),o0=s.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"})]})}),r0=s.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"})})}),n0=s.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"})]})}),e0=s.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"})})}),t0=s.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"})})}),c0=s.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"})]})}),s0=s.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"})})}),l0={projects:X,chat:M,articles:x,mail:Q,github:E,globe:D,linkedin:O,reddit:_,exit:z,camera:k,"qr-code":Y,download:A,save:r0,pencil:$,"arrow-left":p,"arrow-right":j,cross:V,checkmark:R,plus:J,minus:T,window:s0,user:t0,duplicate:y,eye:W,"eye-off":b,signal:n0,audio:C,hardware:F,burger:m,repository:o0,"chevron-down":L,"chevron-up":P,"chevron-left":Z,"chevron-right":H,branch:I,commit:B,folder:G,file:q,tag:e0,key:N,git:S,home:U,info:K,warning:c0},i0=s.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,d=l0[a];if(!d)return console.warn(`Icon type "${a}" not found`),null;const w=r!==void 0||n!==void 0;return s.createElement(d,{...u,"aria-hidden":c??(w?void 0:!0),"aria-label":r,"aria-labelledby":n,className:["nk-icon",v].filter(Boolean).join(" "),ref:t,role:f??(w?"img":void 0),style:{...i===void 0?void 0:{height:i,width:i},...g,...h?{color:h}:void 0}})});exports.Icon=i0;
|
package/dist/Table-B30TBckZ.js
DELETED
|
@@ -1,402 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as r, jsxs as A } from "react/jsx-runtime";
|
|
3
|
-
import { createContext as V, forwardRef as k, useRef as x, useState as L, useCallback as z, useEffect as M, useContext as Y, Children as I, isValidElement as D, Fragment as O, cloneElement as j, createElement as X } from "react";
|
|
4
|
-
import { a as W } from "./reference-CXMr27nM.js";
|
|
5
|
-
import { B as $ } from "./Button-Chv4O66e.js";
|
|
6
|
-
import { T as q } from "./Tooltip-BVqdnKK_.js";
|
|
7
|
-
const S = V("body"), G = [
|
|
8
|
-
"a[href]",
|
|
9
|
-
"audio[controls]",
|
|
10
|
-
"button",
|
|
11
|
-
"iframe",
|
|
12
|
-
"input",
|
|
13
|
-
"label",
|
|
14
|
-
"select",
|
|
15
|
-
"summary",
|
|
16
|
-
"textarea",
|
|
17
|
-
"video[controls]",
|
|
18
|
-
"[contenteditable]:not([contenteditable='false'])"
|
|
19
|
-
].join(","), J = /* @__PURE__ */ new Set([
|
|
20
|
-
"button",
|
|
21
|
-
"checkbox",
|
|
22
|
-
"combobox",
|
|
23
|
-
"grid",
|
|
24
|
-
"link",
|
|
25
|
-
"listbox",
|
|
26
|
-
"menu",
|
|
27
|
-
"menubar",
|
|
28
|
-
"menuitem",
|
|
29
|
-
"menuitemcheckbox",
|
|
30
|
-
"menuitemradio",
|
|
31
|
-
"option",
|
|
32
|
-
"radio",
|
|
33
|
-
"radiogroup",
|
|
34
|
-
"scrollbar",
|
|
35
|
-
"searchbox",
|
|
36
|
-
"slider",
|
|
37
|
-
"spinbutton",
|
|
38
|
-
"switch",
|
|
39
|
-
"tab",
|
|
40
|
-
"tablist",
|
|
41
|
-
"textbox",
|
|
42
|
-
"tree",
|
|
43
|
-
"treegrid",
|
|
44
|
-
"treeitem"
|
|
45
|
-
]);
|
|
46
|
-
function Q(n, l) {
|
|
47
|
-
var e;
|
|
48
|
-
let t = n;
|
|
49
|
-
for (; t && t !== l; ) {
|
|
50
|
-
if (t.matches(G) || (((e = t.getAttribute("role")) == null ? void 0 : e.split(/\s+/)) ?? []).some((i) => J.has(i)))
|
|
51
|
-
return !0;
|
|
52
|
-
t = t.parentElement;
|
|
53
|
-
}
|
|
54
|
-
return !1;
|
|
55
|
-
}
|
|
56
|
-
function U(n, l, t) {
|
|
57
|
-
return n === void 0 ? l : t ? t(n) : n instanceof Date ? Number.isNaN(n.getTime()) ? "Invalid Date" : n.toISOString().slice(0, 10) : typeof n == "boolean" ? n ? "Yes" : "No" : n;
|
|
58
|
-
}
|
|
59
|
-
function Z(n) {
|
|
60
|
-
if (typeof n == "number" || typeof n == "string")
|
|
61
|
-
return String(n);
|
|
62
|
-
}
|
|
63
|
-
function H(n) {
|
|
64
|
-
for (const l of I.toArray(n)) {
|
|
65
|
-
if (D(l) && l.type === O) {
|
|
66
|
-
if (H(l.props.children)) return !0;
|
|
67
|
-
continue;
|
|
68
|
-
}
|
|
69
|
-
return !0;
|
|
70
|
-
}
|
|
71
|
-
return !1;
|
|
72
|
-
}
|
|
73
|
-
function ee(n, l) {
|
|
74
|
-
let t = !1;
|
|
75
|
-
function e(i) {
|
|
76
|
-
return I.map(i, (s) => D(s) ? s.type === O ? j(
|
|
77
|
-
s,
|
|
78
|
-
void 0,
|
|
79
|
-
e(
|
|
80
|
-
s.props.children
|
|
81
|
-
)
|
|
82
|
-
) : !t && s.type === F ? (t = !0, j(
|
|
83
|
-
s,
|
|
84
|
-
{ rowTrigger: l }
|
|
85
|
-
)) : s : s);
|
|
86
|
-
}
|
|
87
|
-
const c = e(n);
|
|
88
|
-
return { attached: t, content: c };
|
|
89
|
-
}
|
|
90
|
-
const te = k(
|
|
91
|
-
function(l, t) {
|
|
92
|
-
const { children: e, className: c, ...i } = l;
|
|
93
|
-
return /* @__PURE__ */ r(
|
|
94
|
-
"thead",
|
|
95
|
-
{
|
|
96
|
-
...i,
|
|
97
|
-
ref: t,
|
|
98
|
-
className: ["nk-table__head", c].filter(Boolean).join(" "),
|
|
99
|
-
children: /* @__PURE__ */ r(S.Provider, { value: "head", children: e })
|
|
100
|
-
}
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
), ne = k(
|
|
104
|
-
function(l, t) {
|
|
105
|
-
const {
|
|
106
|
-
children: e,
|
|
107
|
-
className: c,
|
|
108
|
-
emptyColumnCount: i = 1,
|
|
109
|
-
emptyMessage: s,
|
|
110
|
-
...m
|
|
111
|
-
} = l, d = !H(e), h = Number.isFinite(i) ? Math.max(1, Math.floor(i)) : 1;
|
|
112
|
-
return /* @__PURE__ */ r(
|
|
113
|
-
"tbody",
|
|
114
|
-
{
|
|
115
|
-
...m,
|
|
116
|
-
ref: t,
|
|
117
|
-
className: ["nk-table__body", c].filter(Boolean).join(" "),
|
|
118
|
-
children: d && s !== void 0 ? /* @__PURE__ */ r("tr", { className: "nk-table__row", children: /* @__PURE__ */ r(
|
|
119
|
-
"td",
|
|
120
|
-
{
|
|
121
|
-
className: "nk-table__cell nk-table__empty-cell",
|
|
122
|
-
colSpan: h,
|
|
123
|
-
children: /* @__PURE__ */ r("div", { className: "nk-table__empty-content", children: s })
|
|
124
|
-
}
|
|
125
|
-
) }) : /* @__PURE__ */ r(S.Provider, { value: "body", children: e })
|
|
126
|
-
}
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
), le = k(
|
|
130
|
-
function(l, t) {
|
|
131
|
-
const { children: e, className: c, ...i } = l;
|
|
132
|
-
return /* @__PURE__ */ r(
|
|
133
|
-
"tfoot",
|
|
134
|
-
{
|
|
135
|
-
...i,
|
|
136
|
-
ref: t,
|
|
137
|
-
className: ["nk-table__foot", c].filter(Boolean).join(" "),
|
|
138
|
-
children: /* @__PURE__ */ r(S.Provider, { value: "foot", children: e })
|
|
139
|
-
}
|
|
140
|
-
);
|
|
141
|
-
}
|
|
142
|
-
), oe = k(
|
|
143
|
-
function(l, t) {
|
|
144
|
-
const {
|
|
145
|
-
"aria-label": e,
|
|
146
|
-
actions: c,
|
|
147
|
-
children: i,
|
|
148
|
-
className: s,
|
|
149
|
-
download: m,
|
|
150
|
-
href: d,
|
|
151
|
-
hrefLang: h,
|
|
152
|
-
onClick: f,
|
|
153
|
-
onNavigate: a,
|
|
154
|
-
rel: T,
|
|
155
|
-
target: p,
|
|
156
|
-
...N
|
|
157
|
-
} = l, _ = x(null), w = Y(S), u = d !== void 0 || f !== void 0, v = (e == null ? void 0 : e.trim()) || (d !== void 0 ? "Open row" : "Activate row");
|
|
158
|
-
function g(o) {
|
|
159
|
-
_.current = o;
|
|
160
|
-
}
|
|
161
|
-
const R = d !== void 0 ? {
|
|
162
|
-
ariaLabel: v,
|
|
163
|
-
kind: "link",
|
|
164
|
-
linkProperties: {
|
|
165
|
-
download: m,
|
|
166
|
-
href: d,
|
|
167
|
-
hrefLang: h,
|
|
168
|
-
onNavigate: a,
|
|
169
|
-
rel: T,
|
|
170
|
-
target: p
|
|
171
|
-
},
|
|
172
|
-
reference: g
|
|
173
|
-
} : f !== void 0 ? {
|
|
174
|
-
ariaLabel: v,
|
|
175
|
-
kind: "button",
|
|
176
|
-
onClick: f,
|
|
177
|
-
reference: g
|
|
178
|
-
} : void 0, C = R ? ee(i, R) : { content: i }, b = w === "head" ? /* @__PURE__ */ r(re, {}) : /* @__PURE__ */ r(ie, { actions: c ?? [] });
|
|
179
|
-
function E(o) {
|
|
180
|
-
if (o.defaultPrevented) return;
|
|
181
|
-
const y = o.target;
|
|
182
|
-
if (!(y instanceof Element) || Q(y, o.currentTarget)) return;
|
|
183
|
-
const P = _.current;
|
|
184
|
-
if (!P) return;
|
|
185
|
-
const B = P.ownerDocument.defaultView;
|
|
186
|
-
if (!B) {
|
|
187
|
-
P.click();
|
|
188
|
-
return;
|
|
189
|
-
}
|
|
190
|
-
P.dispatchEvent(new B.MouseEvent("click", {
|
|
191
|
-
altKey: o.altKey,
|
|
192
|
-
bubbles: !0,
|
|
193
|
-
button: o.button,
|
|
194
|
-
buttons: o.buttons,
|
|
195
|
-
cancelable: !0,
|
|
196
|
-
clientX: o.clientX,
|
|
197
|
-
clientY: o.clientY,
|
|
198
|
-
ctrlKey: o.ctrlKey,
|
|
199
|
-
metaKey: o.metaKey,
|
|
200
|
-
shiftKey: o.shiftKey
|
|
201
|
-
}));
|
|
202
|
-
}
|
|
203
|
-
return /* @__PURE__ */ A(
|
|
204
|
-
"tr",
|
|
205
|
-
{
|
|
206
|
-
...N,
|
|
207
|
-
ref: t,
|
|
208
|
-
"aria-label": u ? void 0 : e,
|
|
209
|
-
className: ["nk-table__row", s].filter(Boolean).join(" "),
|
|
210
|
-
"data-interactive": u || void 0,
|
|
211
|
-
onClick: u ? E : void 0,
|
|
212
|
-
children: [
|
|
213
|
-
C.content,
|
|
214
|
-
b
|
|
215
|
-
]
|
|
216
|
-
}
|
|
217
|
-
);
|
|
218
|
-
}
|
|
219
|
-
), K = k(function(l, t) {
|
|
220
|
-
const {
|
|
221
|
-
align: e = "left",
|
|
222
|
-
children: c,
|
|
223
|
-
className: i,
|
|
224
|
-
scope: s = "col",
|
|
225
|
-
sticky: m = !1,
|
|
226
|
-
...d
|
|
227
|
-
} = l;
|
|
228
|
-
return /* @__PURE__ */ r(
|
|
229
|
-
"th",
|
|
230
|
-
{
|
|
231
|
-
...d,
|
|
232
|
-
ref: t,
|
|
233
|
-
className: ["nk-table__header-cell", i].filter(Boolean).join(" "),
|
|
234
|
-
"data-align": e,
|
|
235
|
-
"data-sticky": m || void 0,
|
|
236
|
-
scope: s,
|
|
237
|
-
children: c
|
|
238
|
-
}
|
|
239
|
-
);
|
|
240
|
-
}), re = k(function(l, t) {
|
|
241
|
-
const { children: e, className: c, ...i } = l;
|
|
242
|
-
return /* @__PURE__ */ r(
|
|
243
|
-
K,
|
|
244
|
-
{
|
|
245
|
-
...i,
|
|
246
|
-
ref: t,
|
|
247
|
-
align: "right",
|
|
248
|
-
className: ["nk-table__action-header-cell", c].filter(Boolean).join(" "),
|
|
249
|
-
children: e ?? /* @__PURE__ */ r("span", { className: "nk-table__visually-hidden", children: "Row actions" })
|
|
250
|
-
}
|
|
251
|
-
);
|
|
252
|
-
}), F = k(
|
|
253
|
-
function(l, t) {
|
|
254
|
-
const {
|
|
255
|
-
align: e = "left",
|
|
256
|
-
children: c,
|
|
257
|
-
className: i,
|
|
258
|
-
format: s,
|
|
259
|
-
title: m,
|
|
260
|
-
truncate: d,
|
|
261
|
-
value: h,
|
|
262
|
-
...f
|
|
263
|
-
} = l, { rowTrigger: a, ...T } = f, p = U(h, c, s), N = d === void 0 ? void 0 : { maxWidth: d }, _ = m ?? (d === void 0 ? void 0 : Z(p));
|
|
264
|
-
return /* @__PURE__ */ A(
|
|
265
|
-
"td",
|
|
266
|
-
{
|
|
267
|
-
...T,
|
|
268
|
-
ref: t,
|
|
269
|
-
className: ["nk-table__cell", i].filter(Boolean).join(" "),
|
|
270
|
-
"data-align": e,
|
|
271
|
-
title: _,
|
|
272
|
-
children: [
|
|
273
|
-
(a == null ? void 0 : a.kind) === "link" && a.linkProperties ? /* @__PURE__ */ r(
|
|
274
|
-
"a",
|
|
275
|
-
{
|
|
276
|
-
ref: a.reference,
|
|
277
|
-
"aria-label": a.ariaLabel,
|
|
278
|
-
className: "nk-table__row-trigger",
|
|
279
|
-
download: a.linkProperties.download,
|
|
280
|
-
href: a.linkProperties.href,
|
|
281
|
-
hrefLang: a.linkProperties.hrefLang,
|
|
282
|
-
onClick: a.linkProperties.onNavigate,
|
|
283
|
-
rel: a.linkProperties.rel,
|
|
284
|
-
target: a.linkProperties.target
|
|
285
|
-
}
|
|
286
|
-
) : null,
|
|
287
|
-
(a == null ? void 0 : a.kind) === "button" ? /* @__PURE__ */ r(
|
|
288
|
-
"button",
|
|
289
|
-
{
|
|
290
|
-
ref: a.reference,
|
|
291
|
-
"aria-label": a.ariaLabel,
|
|
292
|
-
className: "nk-table__row-trigger",
|
|
293
|
-
onClick: a.onClick,
|
|
294
|
-
type: "button"
|
|
295
|
-
}
|
|
296
|
-
) : null,
|
|
297
|
-
d !== void 0 ? /* @__PURE__ */ r("span", { className: "nk-table__truncated-content", style: N, children: p }) : p
|
|
298
|
-
]
|
|
299
|
-
}
|
|
300
|
-
);
|
|
301
|
-
}
|
|
302
|
-
);
|
|
303
|
-
function ae(n) {
|
|
304
|
-
const {
|
|
305
|
-
"aria-label": l,
|
|
306
|
-
icon: t,
|
|
307
|
-
label: e,
|
|
308
|
-
...c
|
|
309
|
-
} = n;
|
|
310
|
-
return /* @__PURE__ */ r(q, { content: e, children: /* @__PURE__ */ r(
|
|
311
|
-
$,
|
|
312
|
-
{
|
|
313
|
-
...c,
|
|
314
|
-
"aria-label": l ?? e,
|
|
315
|
-
className: "nk-table__action",
|
|
316
|
-
icon: t,
|
|
317
|
-
shape: "rectangle",
|
|
318
|
-
type: "button",
|
|
319
|
-
variant: "ghost"
|
|
320
|
-
}
|
|
321
|
-
) });
|
|
322
|
-
}
|
|
323
|
-
function ie(n) {
|
|
324
|
-
const { actions: l } = n;
|
|
325
|
-
function t(e) {
|
|
326
|
-
e.stopPropagation();
|
|
327
|
-
}
|
|
328
|
-
return /* @__PURE__ */ r(
|
|
329
|
-
"td",
|
|
330
|
-
{
|
|
331
|
-
className: "nk-table__cell nk-table__action-cell",
|
|
332
|
-
"data-align": "right",
|
|
333
|
-
onClick: t,
|
|
334
|
-
children: l.length > 0 ? /* @__PURE__ */ r("span", { className: "nk-table__action-list", children: l.map((e) => /* @__PURE__ */ X(ae, { ...e, key: e.label })) }) : null
|
|
335
|
-
}
|
|
336
|
-
);
|
|
337
|
-
}
|
|
338
|
-
const ce = k(function(l, t) {
|
|
339
|
-
const {
|
|
340
|
-
"aria-label": e,
|
|
341
|
-
children: c,
|
|
342
|
-
className: i,
|
|
343
|
-
containerClassName: s,
|
|
344
|
-
...m
|
|
345
|
-
} = l, d = x(null), h = x(null), [f, a] = L(!1), [T, p] = L(!1), N = e ? `${e} scroll area` : "Scrollable table", _ = z(
|
|
346
|
-
(u) => {
|
|
347
|
-
h.current = u, W(t, u);
|
|
348
|
-
},
|
|
349
|
-
[t]
|
|
350
|
-
);
|
|
351
|
-
M(() => {
|
|
352
|
-
const u = d.current, v = h.current;
|
|
353
|
-
if (!u || !v) return;
|
|
354
|
-
const g = u, R = v;
|
|
355
|
-
function C() {
|
|
356
|
-
const y = g.scrollWidth > g.clientWidth;
|
|
357
|
-
a(y), y || p(!1);
|
|
358
|
-
}
|
|
359
|
-
C();
|
|
360
|
-
const b = g.ownerDocument.defaultView;
|
|
361
|
-
b == null || b.addEventListener("resize", C);
|
|
362
|
-
const E = b == null ? void 0 : b.ResizeObserver, o = E ? new E(C) : void 0;
|
|
363
|
-
return o == null || o.observe(g), o == null || o.observe(R), () => {
|
|
364
|
-
b == null || b.removeEventListener("resize", C), o == null || o.disconnect();
|
|
365
|
-
};
|
|
366
|
-
}, []);
|
|
367
|
-
function w(u) {
|
|
368
|
-
p(f && u.currentTarget.scrollLeft > 1);
|
|
369
|
-
}
|
|
370
|
-
return /* @__PURE__ */ r(
|
|
371
|
-
"div",
|
|
372
|
-
{
|
|
373
|
-
ref: d,
|
|
374
|
-
"aria-label": f ? N : void 0,
|
|
375
|
-
className: ["nk-table__container", s].filter(Boolean).join(" "),
|
|
376
|
-
"data-scrolled": T || void 0,
|
|
377
|
-
onScroll: w,
|
|
378
|
-
role: f ? "region" : void 0,
|
|
379
|
-
tabIndex: f ? 0 : void 0,
|
|
380
|
-
children: /* @__PURE__ */ r(
|
|
381
|
-
"table",
|
|
382
|
-
{
|
|
383
|
-
...m,
|
|
384
|
-
ref: _,
|
|
385
|
-
"aria-label": e,
|
|
386
|
-
className: ["nk-table", i].filter(Boolean).join(" "),
|
|
387
|
-
children: c
|
|
388
|
-
}
|
|
389
|
-
)
|
|
390
|
-
}
|
|
391
|
-
);
|
|
392
|
-
}), me = Object.assign(ce, {
|
|
393
|
-
Body: ne,
|
|
394
|
-
Cell: F,
|
|
395
|
-
Foot: le,
|
|
396
|
-
HeaderCell: K,
|
|
397
|
-
Head: te,
|
|
398
|
-
Row: oe
|
|
399
|
-
});
|
|
400
|
-
export {
|
|
401
|
-
me as T
|
|
402
|
-
};
|
package/dist/Table-DceR12X9.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";"use strict";const o=require("react/jsx-runtime"),l=require("react"),A=require("./reference-C2guRuR0.cjs"),I=require("./Button-DCKtFvSo.cjs"),D=require("./Tooltip-B4bajPtk.cjs"),w=l.createContext("body"),O=["a[href]","audio[controls]","button","iframe","input","label","select","summary","textarea","video[controls]","[contenteditable]:not([contenteditable='false'])"].join(","),H=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 K(n,r){var e;let t=n;for(;t&&t!==r;){if(t.matches(O)||(((e=t.getAttribute("role"))==null?void 0:e.split(/\s+/))??[]).some(s=>H.has(s)))return!0;t=t.parentElement}return!1}function F(n,r,t){return n===void 0?r:t?t(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)}function S(n){for(const r of l.Children.toArray(n)){if(l.isValidElement(r)&&r.type===l.Fragment){if(S(r.props.children))return!0;continue}return!0}return!1}function q(n,r){let t=!1;function e(s){return l.Children.map(s,d=>l.isValidElement(d)?d.type===l.Fragment?l.cloneElement(d,void 0,e(d.props.children)):!t&&d.type===L?(t=!0,l.cloneElement(d,{rowTrigger:r})):d:d)}const c=e(n);return{attached:t,content:c}}const z=l.forwardRef(function(r,t){const{children:e,className:c,...s}=r;return o.jsx("thead",{...s,ref:t,className:["nk-table__head",c].filter(Boolean).join(" "),children:o.jsx(w.Provider,{value:"head",children:e})})}),M=l.forwardRef(function(r,t){const{children:e,className:c,emptyColumnCount:s=1,emptyMessage:d,...h}=r,u=!S(e),p=Number.isFinite(s)?Math.max(1,Math.floor(s)):1;return o.jsx("tbody",{...h,ref:t,className:["nk-table__body",c].filter(Boolean).join(" "),children:u&&d!==void 0?o.jsx("tr",{className:"nk-table__row",children:o.jsx("td",{className:"nk-table__cell nk-table__empty-cell",colSpan:p,children:o.jsx("div",{className:"nk-table__empty-content",children:d})})}):o.jsx(w.Provider,{value:"body",children:e})})}),Y=l.forwardRef(function(r,t){const{children:e,className:c,...s}=r;return o.jsx("tfoot",{...s,ref:t,className:["nk-table__foot",c].filter(Boolean).join(" "),children:o.jsx(w.Provider,{value:"foot",children:e})})}),X=l.forwardRef(function(r,t){const{"aria-label":e,actions:c,children:s,className:d,download:h,href:u,hrefLang:p,onClick:m,onNavigate:i,rel:T,target:k,...x}=r,_=l.useRef(null),E=l.useContext(w),f=u!==void 0||m!==void 0,N=(e==null?void 0:e.trim())||(u!==void 0?"Open row":"Activate row");function g(a){_.current=a}const j=u!==void 0?{ariaLabel:N,kind:"link",linkProperties:{download:h,href:u,hrefLang:p,onNavigate:i,rel:T,target:k},reference:g}:m!==void 0?{ariaLabel:N,kind:"button",onClick:m,reference:g}:void 0,C=j?q(s,j):{content:s},b=E==="head"?o.jsx(W,{}):o.jsx(G,{actions:c??[]});function y(a){if(a.defaultPrevented)return;const v=a.target;if(!(v instanceof Element)||K(v,a.currentTarget))return;const R=_.current;if(!R)return;const P=R.ownerDocument.defaultView;if(!P){R.click();return}R.dispatchEvent(new P.MouseEvent("click",{altKey:a.altKey,bubbles:!0,button:a.button,buttons:a.buttons,cancelable:!0,clientX:a.clientX,clientY:a.clientY,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey}))}return o.jsxs("tr",{...x,ref:t,"aria-label":f?void 0:e,className:["nk-table__row",d].filter(Boolean).join(" "),"data-interactive":f||void 0,onClick:f?y:void 0,children:[C.content,b]})}),B=l.forwardRef(function(r,t){const{align:e="left",children:c,className:s,scope:d="col",sticky:h=!1,...u}=r;return o.jsx("th",{...u,ref:t,className:["nk-table__header-cell",s].filter(Boolean).join(" "),"data-align":e,"data-sticky":h||void 0,scope:d,children:c})}),W=l.forwardRef(function(r,t){const{children:e,className:c,...s}=r;return o.jsx(B,{...s,ref:t,align:"right",className:["nk-table__action-header-cell",c].filter(Boolean).join(" "),children:e??o.jsx("span",{className:"nk-table__visually-hidden",children:"Row actions"})})}),L=l.forwardRef(function(r,t){const{align:e="left",children:c,className:s,format:d,title:h,truncate:u,value:p,...m}=r,{rowTrigger:i,...T}=m,k=F(p,c,d),x=u===void 0?void 0:{maxWidth:u},_=h??(u===void 0?void 0:V(k));return o.jsxs("td",{...T,ref:t,className:["nk-table__cell",s].filter(Boolean).join(" "),"data-align":e,title:_,children:[(i==null?void 0:i.kind)==="link"&&i.linkProperties?o.jsx("a",{ref:i.reference,"aria-label":i.ariaLabel,className:"nk-table__row-trigger",download:i.linkProperties.download,href:i.linkProperties.href,hrefLang:i.linkProperties.hrefLang,onClick:i.linkProperties.onNavigate,rel:i.linkProperties.rel,target:i.linkProperties.target}):null,(i==null?void 0:i.kind)==="button"?o.jsx("button",{ref:i.reference,"aria-label":i.ariaLabel,className:"nk-table__row-trigger",onClick:i.onClick,type:"button"}):null,u!==void 0?o.jsx("span",{className:"nk-table__truncated-content",style:x,children:k}):k]})});function $(n){const{"aria-label":r,icon:t,label:e,...c}=n;return o.jsx(D.Tooltip2,{content:e,children:o.jsx(I.Button,{...c,"aria-label":r??e,className:"nk-table__action",icon:t,shape:"rectangle",type:"button",variant:"ghost"})})}function G(n){const{actions:r}=n;function t(e){e.stopPropagation()}return o.jsx("td",{className:"nk-table__cell nk-table__action-cell","data-align":"right",onClick:t,children:r.length>0?o.jsx("span",{className:"nk-table__action-list",children:r.map(e=>l.createElement($,{...e,key:e.label}))}):null})}const J=l.forwardRef(function(r,t){const{"aria-label":e,children:c,className:s,containerClassName:d,...h}=r,u=l.useRef(null),p=l.useRef(null),[m,i]=l.useState(!1),[T,k]=l.useState(!1),x=e?`${e} scroll area`:"Scrollable table",_=l.useCallback(f=>{p.current=f,A.assignElementReference(t,f)},[t]);l.useEffect(()=>{const f=u.current,N=p.current;if(!f||!N)return;const g=f,j=N;function C(){const v=g.scrollWidth>g.clientWidth;i(v),v||k(!1)}C();const b=g.ownerDocument.defaultView;b==null||b.addEventListener("resize",C);const y=b==null?void 0:b.ResizeObserver,a=y?new y(C):void 0;return a==null||a.observe(g),a==null||a.observe(j),()=>{b==null||b.removeEventListener("resize",C),a==null||a.disconnect()}},[]);function E(f){k(m&&f.currentTarget.scrollLeft>1)}return o.jsx("div",{ref:u,"aria-label":m?x:void 0,className:["nk-table__container",d].filter(Boolean).join(" "),"data-scrolled":T||void 0,onScroll:E,role:m?"region":void 0,tabIndex:m?0:void 0,children:o.jsx("table",{...h,ref:_,"aria-label":e,className:["nk-table",s].filter(Boolean).join(" "),children:c})})}),Q=Object.assign(J,{Body:M,Cell:L,Foot:Y,HeaderCell:B,Head:z,Row:X});exports.Table=Q;
|