neatkit 0.8.0 → 0.10.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-CVe9T_Zw.cjs +1 -0
- package/dist/Button-D6rXvcqq.js +101 -0
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +1 -1
- package/dist/Checkbox.cjs +1 -1
- package/dist/Checkbox.js +111 -110
- 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 +52 -51
- package/dist/Markdown.cjs +1 -1
- package/dist/Markdown.js +108 -104
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +57 -56
- package/dist/PinInput.cjs +1 -1
- package/dist/PinInput.js +88 -87
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +147 -141
- package/dist/Progress.cjs +1 -0
- package/dist/Progress.js +40 -0
- package/dist/Radio.cjs +1 -1
- package/dist/Radio.js +48 -47
- package/dist/Select.cjs +1 -1
- package/dist/Select.js +363 -359
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +326 -311
- package/dist/Spinner-BE0F4y2S.cjs +1 -0
- package/dist/Spinner-CmxlDlOk.js +23 -0
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Table-BqWBgMTU.cjs +1 -0
- package/dist/Table-DutHfiXR.js +423 -0
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +1 -1
- package/dist/{Tooltip-B4bajPtk.cjs → Tooltip-CCuE-hfp.cjs} +1 -1
- package/dist/{Tooltip-BVqdnKK_.js → Tooltip-CeyRKNv4.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/Portal/hooks/useAnchoredPosition.d.ts +59 -0
- package/dist/components/Progress/Progress.d.ts +38 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/utils/value.d.ts +25 -0
- package/dist/components/Select/Select.d.ts +6 -74
- package/dist/components/Select/components/CustomSelect.d.ts +59 -0
- package/dist/components/Select/components/NativeSelect.d.ts +26 -0
- package/dist/components/Select/components/SelectListbox.d.ts +50 -0
- package/dist/components/Select/hooks/useSelectFormReset.d.ts +27 -0
- package/dist/components/Select/hooks/useSelectPosition.d.ts +12 -0
- package/dist/components/Select/hooks/useTypeahead.d.ts +14 -0
- package/dist/components/Select/utils/options.d.ts +38 -0
- package/dist/components/Sidebar/Sidebar.d.ts +36 -25
- 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/SidebarOverlay.d.ts +3 -4
- package/dist/components/Sidebar/components/SidebarPanel.d.ts +4 -4
- 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/style.css +1 -1
- package/dist/useAnchoredPosition-C0VS7hm6.js +105 -0
- package/dist/useAnchoredPosition-D7GRFzoX.cjs +1 -0
- package/dist/useFloatingPosition-Dq8xpr3E.js +27 -0
- package/dist/useFloatingPosition-g5kXywoB.cjs +1 -0
- package/dist/useFocusTrap-C0IcCdNf.js +136 -0
- package/dist/useFocusTrap-gAK_402D.cjs +1 -0
- package/package.json +7 -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/Spinner-BXgw60UC.cjs +0 -1
- package/dist/Spinner-CVYvk6YK.js +0 -25
- 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
- package/dist/useFloatingPosition-BBEUHPqy.cjs +0 -1
- package/dist/useFloatingPosition-CMirP2-2.js +0 -43
- package/dist/useFocusTrap-BrFZdMqQ.cjs +0 -1
- package/dist/useFocusTrap-DhVnlboe.js +0 -136
package/dist/Boundary.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react"),W=require("./effects-D85L_7zM.cjs"),g=require("./units-PzuiQNnw.cjs"),N=[{minWidth:g.breakpoint("xl"),marginPercent:32,preferredWidth:1200},{minWidth:g.breakpoint("lg"),marginPercent:20,preferredWidth:1100},{minWidth:g.breakpoint("md"),marginPercent:14,preferredWidth:g.breakpoint("md")},{minWidth:g.breakpoint("sm"),marginPercent:8,preferredWidth:650}],P=16;function R(e){for(const t of N)if(e>=t.minWidth)return t}function B(e,t){if(!Number.isFinite(e)||!Number.isFinite(t)||e<g.breakpoint("sm")||t<=0)return;const n=R(e);if(!n)return;const o=e*n.marginPercent/100,d=e-o*2,s=Math.min(n.preferredWidth,e-P),f=Math.max(d,s);let u=Math.floor(f/t);if(u%2===0&&(u-=1),!(u<3))return Math.min((u-1)*t,e)}function F(e,t){if(typeof e=="function"){e(t);return}e&&(e.current=t)}function z(){const e=new Set;let t;return{publish(n){t!==n&&(t=n,e.forEach(o=>o()))},read(){return t},subscribe(n){return e.add(n),()=>{e.delete(n)}}}}function _(e){if(e.clientWidth===0)return;const t=window.getComputedStyle(e),n=(Number.parseFloat(t.paddingLeft)||0)+(Number.parseFloat(t.paddingRight)||0);return Math.max(e.clientWidth-n,0)}function O(e){const n=window.getComputedStyle(e).getPropertyValue("--nk-cell").trim().match(/^([+]?(?:\d+\.?\d*|\.\d+))px$/i);if(!n)return;const o=Number.parseFloat(n[1]);return Number.isFinite(o)&&o>0?o:void 0}function I(e,t){const n=i.useRef(null),o=i.useRef(null),d=i.useRef(void 0),s=i.useRef(null),[f,u]=i.useState(void 0),[y,b]=i.useState(null);s.current||(s.current=z());const h=s.current,a=i.useCallback(r=>{const c=_(r);if(h.publish(c),!t||c===void 0){if(d.current===void 0)return;d.current=void 0,u(void 0);return}const l=O(r),p=l===void 0?void 0:B(c,l);d.current!==p&&(d.current=p,u(p))},[h,t]),m=i.useCallback(r=>{var l;if((l=o.current)==null||l.disconnect(),o.current=null,typeof ResizeObserver>"u")return;const c=new ResizeObserver(()=>a(r));c.observe(r),o.current=c},[a]),v=i.useCallback(r=>{var c;(c=o.current)==null||c.disconnect(),o.current=null,n.current=r,b(r),F(e,r),!(!r||typeof window>"u")&&(a(r),m(r))},[m,e,a]);return W.useIsomorphicLayoutEffect(()=>{n.current&&a(n.current)}),i.useEffect(()=>(n.current&&m(n.current),()=>{var r;(r=o.current)==null||r.disconnect(),o.current=null}),[m]),{contentWidth:f,rootElement:y,rootReference:v,width:h}}const T=i.forwardRef(function(t,n){const{as:o,children:d,className:s,style:f,theme:u="auto",accent:y,decoration:b="grid",width:h="narrow",height:a="content",spacing:m="standard",...v}=t,{contentWidth:r,rootElement:c,rootReference:l,width:p}=I(n,h==="narrow"),w=i.useMemo(()=>({boundaryElement:c,portalElement:c,width:p}),[c,p]),S=o??"div",M=y!==void 0?{...f,"--nk-accent":y}:f,k=r===void 0?void 0:{width:`${r}px`},C=i.createElement(S,{...v,ref:l,className:["nk-boundary",s].filter(Boolean).join(" "),"data-theme":u,"data-decoration":b,"data-width":h,"data-height":a,"data-spacing":m,style:M},i.createElement("div",{className:"nk-boundary__content",style:k},d));return i.createElement(W.BoundaryContext.Provider,{value:w},C)});exports.default=T;
|
package/dist/Boundary.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useRef as y, useState as
|
|
3
|
-
import { u as
|
|
2
|
+
import { useRef as y, useState as S, useCallback as w, useEffect as F, forwardRef as R, useMemo as k, createElement as b } from "react";
|
|
3
|
+
import { u as z, B as I } from "./effects-D5CWf-Pl.js";
|
|
4
4
|
import { b as p } from "./units-BmjPCccF.js";
|
|
5
|
-
const
|
|
5
|
+
const O = [
|
|
6
6
|
{
|
|
7
7
|
minWidth: p("xl"),
|
|
8
8
|
marginPercent: 32,
|
|
@@ -23,32 +23,32 @@ const I = [
|
|
|
23
23
|
marginPercent: 8,
|
|
24
24
|
preferredWidth: 650
|
|
25
25
|
}
|
|
26
|
-
],
|
|
27
|
-
function
|
|
28
|
-
for (const e of
|
|
26
|
+
], V = 16;
|
|
27
|
+
function _(t) {
|
|
28
|
+
for (const e of O)
|
|
29
29
|
if (t >= e.minWidth) return e;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function x(t, e) {
|
|
32
32
|
if (!Number.isFinite(t) || !Number.isFinite(e) || t < p("sm") || e <= 0)
|
|
33
33
|
return;
|
|
34
|
-
const n =
|
|
34
|
+
const n = _(t);
|
|
35
35
|
if (!n) return;
|
|
36
36
|
const o = t * n.marginPercent / 100, u = t - o * 2, d = Math.min(
|
|
37
37
|
n.preferredWidth,
|
|
38
|
-
t -
|
|
38
|
+
t - V
|
|
39
39
|
), f = Math.max(u, d);
|
|
40
40
|
let c = Math.floor(f / e);
|
|
41
41
|
if (c % 2 === 0 && (c -= 1), !(c < 3))
|
|
42
42
|
return Math.min((c - 1) * e, t);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function L(t, e) {
|
|
45
45
|
if (typeof t == "function") {
|
|
46
46
|
t(e);
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
49
|
t && (t.current = e);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function T() {
|
|
52
52
|
const t = /* @__PURE__ */ new Set();
|
|
53
53
|
let e;
|
|
54
54
|
return {
|
|
@@ -65,12 +65,12 @@ function L() {
|
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function A(t) {
|
|
69
69
|
if (t.clientWidth === 0) return;
|
|
70
70
|
const e = window.getComputedStyle(t), n = (Number.parseFloat(e.paddingLeft) || 0) + (Number.parseFloat(e.paddingRight) || 0);
|
|
71
71
|
return Math.max(t.clientWidth - n, 0);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function $(t) {
|
|
74
74
|
const n = window.getComputedStyle(t).getPropertyValue("--nk-cell").trim().match(
|
|
75
75
|
/^([+]?(?:\d+\.?\d*|\.\d+))px$/i
|
|
76
76
|
);
|
|
@@ -78,17 +78,17 @@ function A(t) {
|
|
|
78
78
|
const o = Number.parseFloat(n[1]);
|
|
79
79
|
return Number.isFinite(o) && o > 0 ? o : void 0;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
const n = y(null), o = y(null), u = y(void 0), d = y(null), [f, c] =
|
|
83
|
-
d.current || (d.current =
|
|
81
|
+
function j(t, e) {
|
|
82
|
+
const n = y(null), o = y(null), u = y(void 0), d = y(null), [f, c] = S(void 0), [g, v] = S(null);
|
|
83
|
+
d.current || (d.current = T());
|
|
84
84
|
const l = d.current, s = w((r) => {
|
|
85
|
-
const i =
|
|
85
|
+
const i = A(r);
|
|
86
86
|
if (l.publish(i), !e || i === void 0) {
|
|
87
87
|
if (u.current === void 0) return;
|
|
88
88
|
u.current = void 0, c(void 0);
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
|
-
const a =
|
|
91
|
+
const a = $(r), m = a === void 0 ? void 0 : x(i, a);
|
|
92
92
|
u.current !== m && (u.current = m, c(m));
|
|
93
93
|
}, [l, e]), h = w(
|
|
94
94
|
(r) => {
|
|
@@ -103,13 +103,13 @@ function $(t, e) {
|
|
|
103
103
|
), W = w(
|
|
104
104
|
(r) => {
|
|
105
105
|
var i;
|
|
106
|
-
(i = o.current) == null || i.disconnect(), o.current = null, n.current = r, v(r),
|
|
106
|
+
(i = o.current) == null || i.disconnect(), o.current = null, n.current = r, v(r), L(t, r), !(!r || typeof window > "u") && (s(r), h(r));
|
|
107
107
|
},
|
|
108
108
|
[h, t, s]
|
|
109
109
|
);
|
|
110
|
-
return
|
|
110
|
+
return z(() => {
|
|
111
111
|
n.current && s(n.current);
|
|
112
|
-
}),
|
|
112
|
+
}), F(() => (n.current && h(n.current), () => {
|
|
113
113
|
var r;
|
|
114
114
|
(r = o.current) == null || r.disconnect(), o.current = null;
|
|
115
115
|
}), [h]), {
|
|
@@ -119,7 +119,7 @@ function $(t, e) {
|
|
|
119
119
|
width: l
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
-
const
|
|
122
|
+
const q = R(
|
|
123
123
|
function(e, n) {
|
|
124
124
|
const {
|
|
125
125
|
as: o,
|
|
@@ -138,11 +138,11 @@ const U = F(
|
|
|
138
138
|
rootElement: i,
|
|
139
139
|
rootReference: a,
|
|
140
140
|
width: m
|
|
141
|
-
} =
|
|
141
|
+
} = j(n, l === "narrow"), M = k(() => ({
|
|
142
142
|
boundaryElement: i,
|
|
143
143
|
portalElement: i,
|
|
144
144
|
width: m
|
|
145
|
-
}), [i, m]), B = o ?? "div", C = g !== void 0 ? { ...f, "--nk-accent": g } : f, N = b(
|
|
145
|
+
}), [i, m]), B = o ?? "div", C = g !== void 0 ? { ...f, "--nk-accent": g } : f, N = r === void 0 ? void 0 : { width: `${r}px` }, P = b(
|
|
146
146
|
B,
|
|
147
147
|
{
|
|
148
148
|
...W,
|
|
@@ -159,18 +159,18 @@ const U = F(
|
|
|
159
159
|
"div",
|
|
160
160
|
{
|
|
161
161
|
className: "nk-boundary__content",
|
|
162
|
-
style:
|
|
162
|
+
style: N
|
|
163
163
|
},
|
|
164
164
|
u
|
|
165
165
|
)
|
|
166
166
|
);
|
|
167
167
|
return b(
|
|
168
|
-
|
|
169
|
-
{ value:
|
|
170
|
-
|
|
168
|
+
I.Provider,
|
|
169
|
+
{ value: M },
|
|
170
|
+
P
|
|
171
171
|
);
|
|
172
172
|
}
|
|
173
173
|
);
|
|
174
174
|
export {
|
|
175
|
-
|
|
175
|
+
q as default
|
|
176
176
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";const r=require("react/jsx-runtime"),y=require("react"),B=require("./Icon-BIBzgznI.cjs"),F=require("./Spinner-BE0F4y2S.cjs");function x(t){return t==null||typeof t=="boolean"||typeof t=="string"&&!t.trim()?!1:Array.isArray(t)?t.some(x):y.isValidElement(t)&&t.type===y.Fragment?x(t.props.children):!0}function K(t,l){const a=t.getBoundingClientRect(),b=l.clientX-a.left,u=l.clientY-a.top;t.style.setProperty("--nk-button-glow-x",`${b}px`),t.style.setProperty("--nk-button-glow-y",`${u}px`)}const $=y.forwardRef(function(l,a){const{as:b,children:u,className:w,disabled:I,fullWidth:A=!1,icon:s,iconAlignment:k="left",loading:h=!1,onClick:q,onKeyDown:v,onMouseMove:D,role:g,shape:R="capsule",tabIndex:P,textAlignment:E="center",tone:M,variant:N="primary",...c}=l,i=b??"button",o=I||h,S=!!s&&!x(u),d=i==="a"&&"href"in c&&typeof c.href=="string",f=typeof i=="string"&&i!=="button"&&!d,_=e=>{if(o){e.preventDefault(),e.stopPropagation();return}const n=q;n==null||n(e)},T=e=>{K(e.currentTarget,e);const n=D;n==null||n(e)},z=e=>{const n=v;n==null||n(e),!(e.defaultPrevented||o||!f||e.key!=="Enter"&&e.key!==" ")&&(e.preventDefault(),e.currentTarget.click())},j={"aria-disabled":o||void 0};i==="button"&&(j.type=c.type??"button");const C=d&&o?{href:void 0}:void 0;let m=g;d&&o?m=g??"link":f&&(m=g??"button");let p=P;return i!=="button"&&(d&&o?p=void 0:o?p=-1:f&&(p=P??0)),y.createElement(i,{...c,...j,...C,ref:a,"aria-busy":h||void 0,className:["nk-button",w].filter(Boolean).join(" "),"data-full-width":A||void 0,"data-icon-only":S||void 0,"data-shape":R,"data-tone":M,"data-variant":N,onClick:_,onKeyDown:f?z:v,onMouseMove:T,role:m,tabIndex:p},r.jsxs(r.Fragment,{children:[r.jsxs("span",{className:"nk-button__content",style:{justifyContent:E},children:[s&&k==="left"?r.jsx(B.Icon,{type:s}):null,u,s&&k==="right"?r.jsx(B.Icon,{type:s}):null]}),h?r.jsx(F.Spinner,{"aria-hidden":"true","aria-label":void 0,className:"nk-button__spinner",role:void 0,size:16}):null]}))});exports.Button=$;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as B, Fragment as C, jsx as g } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as K, createElement as q, isValidElement as G, Fragment as O } from "react";
|
|
4
|
+
import { I as w } from "./Icon-CxK1wlGk.js";
|
|
5
|
+
import { S as V } from "./Spinner-CmxlDlOk.js";
|
|
6
|
+
function h(t) {
|
|
7
|
+
return t == null || typeof t == "boolean" || typeof t == "string" && !t.trim() ? !1 : Array.isArray(t) ? t.some(h) : G(t) && t.type === O ? h(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: A,
|
|
18
|
+
disabled: I,
|
|
19
|
+
fullWidth: D = !1,
|
|
20
|
+
icon: r,
|
|
21
|
+
iconAlignment: k = "left",
|
|
22
|
+
loading: y = !1,
|
|
23
|
+
onClick: j,
|
|
24
|
+
onKeyDown: v,
|
|
25
|
+
onMouseMove: E,
|
|
26
|
+
role: b,
|
|
27
|
+
shape: M = "capsule",
|
|
28
|
+
tabIndex: x,
|
|
29
|
+
textAlignment: N = "center",
|
|
30
|
+
tone: R,
|
|
31
|
+
variant: S = "primary",
|
|
32
|
+
...u
|
|
33
|
+
} = a, i = p ?? "button", n = I || y, _ = !!r && !h(l), d = i === "a" && "href" in u && typeof u.href == "string", c = typeof i == "string" && i !== "button" && !d, F = (o) => {
|
|
34
|
+
if (n) {
|
|
35
|
+
o.preventDefault(), o.stopPropagation();
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const e = j;
|
|
39
|
+
e == null || e(o);
|
|
40
|
+
}, T = (o) => {
|
|
41
|
+
W(o.currentTarget, o);
|
|
42
|
+
const e = E;
|
|
43
|
+
e == null || e(o);
|
|
44
|
+
}, $ = (o) => {
|
|
45
|
+
const e = v;
|
|
46
|
+
e == null || e(o), !(o.defaultPrevented || n || !c || o.key !== "Enter" && o.key !== " ") && (o.preventDefault(), o.currentTarget.click());
|
|
47
|
+
}, P = { "aria-disabled": n || void 0 };
|
|
48
|
+
i === "button" && (P.type = u.type ?? "button");
|
|
49
|
+
const z = d && n ? { href: void 0 } : void 0;
|
|
50
|
+
let m = b;
|
|
51
|
+
d && n ? m = b ?? "link" : c && (m = b ?? "button");
|
|
52
|
+
let f = x;
|
|
53
|
+
return i !== "button" && (d && n ? f = void 0 : n ? f = -1 : c && (f = x ?? 0)), q(
|
|
54
|
+
i,
|
|
55
|
+
{
|
|
56
|
+
...u,
|
|
57
|
+
...P,
|
|
58
|
+
...z,
|
|
59
|
+
ref: s,
|
|
60
|
+
"aria-busy": y || void 0,
|
|
61
|
+
className: ["nk-button", A].filter(Boolean).join(" "),
|
|
62
|
+
"data-full-width": D || void 0,
|
|
63
|
+
"data-icon-only": _ || void 0,
|
|
64
|
+
"data-shape": M,
|
|
65
|
+
"data-tone": R,
|
|
66
|
+
"data-variant": S,
|
|
67
|
+
onClick: F,
|
|
68
|
+
onKeyDown: c ? $ : v,
|
|
69
|
+
onMouseMove: T,
|
|
70
|
+
role: m,
|
|
71
|
+
tabIndex: f
|
|
72
|
+
},
|
|
73
|
+
/* @__PURE__ */ B(C, { children: [
|
|
74
|
+
/* @__PURE__ */ B(
|
|
75
|
+
"span",
|
|
76
|
+
{
|
|
77
|
+
className: "nk-button__content",
|
|
78
|
+
style: { justifyContent: N },
|
|
79
|
+
children: [
|
|
80
|
+
r && k === "left" ? /* @__PURE__ */ g(w, { type: r }) : null,
|
|
81
|
+
l,
|
|
82
|
+
r && k === "right" ? /* @__PURE__ */ g(w, { type: r }) : null
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
y ? /* @__PURE__ */ g(
|
|
87
|
+
V,
|
|
88
|
+
{
|
|
89
|
+
"aria-hidden": "true",
|
|
90
|
+
"aria-label": void 0,
|
|
91
|
+
className: "nk-button__spinner",
|
|
92
|
+
role: void 0,
|
|
93
|
+
size: 16
|
|
94
|
+
}
|
|
95
|
+
) : null
|
|
96
|
+
] })
|
|
97
|
+
);
|
|
98
|
+
});
|
|
99
|
+
export {
|
|
100
|
+
L as B
|
|
101
|
+
};
|
package/dist/Button.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Button-
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Button-CVe9T_Zw.cjs");exports.default=e.Button;
|
package/dist/Button.js
CHANGED
package/dist/Checkbox.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"),
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),i=require("react"),I=require("./aria-Bntn6ad_.cjs"),Q=require("./reference-C2guRuR0.cjs"),W=require("./field-control-NfLwcPj6.cjs"),Z=require("./Icon-BIBzgznI.cjs"),$=require("./Text-DWYlIcPj.cjs"),T=Symbol("nk-checkbox-option");function ee(a){Object.assign(a,{[T]:!0})}function F(a){if(typeof a!="function"&&typeof a!="object"||a===null)return!1;const o=a;return o[T]?!0:o.type!==void 0&&o.type!==a?F(o.type):!1}const z=i.createContext(void 0),ne=Object.freeze([]);function K(a,o){i.Children.forEach(a,t=>{if(t==null||typeof t=="boolean")return;if(!i.isValidElement(t))throw new Error("Checkbox.Group children must be direct Checkbox elements or fragments");if(t.type===i.Fragment){K(t.props.children,o);return}if(!F(t.type))throw new Error("Checkbox.Group children must be direct Checkbox elements or fragments");const r=t;o.push({disabled:!!r.props.disabled,required:!!r.props.required,value:String(r.props.value??"on")})})}function te(a){const o=[];K(a,o);const t=new Set;return o.forEach(r=>{if(t.has(r.value))throw new Error("Checkbox.Group Checkbox values must be unique");t.add(r.value)}),o}function oe(a,o,t){o.current=a,Q.assignElementReference(t,a)}const U=i.forwardRef(function(o,t){const{"aria-invalid":r,children:u,className:E,defaultValue:s=ne,disabled:d=!1,invalid:S=!1,name:j,onChange:v,orientation:k="vertical",required:f=!1,value:x,...g}=o,p=i.useRef(null),[e,h]=i.useState(s),c=x!==void 0,O=c?x:e,N=S||I.hasInvalidState(r),_=te(u),y=d?[]:_.filter(n=>!n.disabled).map(n=>n.value),m=new Set(y),C=O.some(n=>m.has(n)),V=y[0],w=_.find(n=>!n.disabled&&n.value===V),B=s.some(n=>m.has(n)),P=!!(w!=null&&w.required),D=i.useCallback(n=>oe(n,p,t),[t]);i.useEffect(()=>{var G;if(c)return;const n=(G=p.current)==null?void 0:G.querySelector('input[type="checkbox"]'),b=n instanceof HTMLInputElement?n.form:null;if(!b)return;const R=b.getRootNode();function q(A){var L;if(A.target!==b||A.defaultPrevented)return;const H=Array.from(((L=p.current)==null?void 0:L.querySelectorAll('input[type="checkbox"]'))??[]).find(M=>!M.disabled&&M.value===V);H&&(H.required=!!(P||f&&!B)),h(s)}return R.addEventListener("reset",q),()=>R.removeEventListener("reset",q)},[u,s,B,c,f,P,V]);function Y(n){if(!c){const b=n.currentTarget.value,R=n.currentTarget.checked;h(q=>R?[...new Set([...q,b])]:q.filter(G=>G!==b))}v==null||v(n)}const J={defaultValue:s,disabled:d,handleChange:Y,hasSelection:C,name:j,required:f,value:x,validationValue:V};return l.jsx(z.Provider,{value:J,children:l.jsx("div",{...g,ref:D,"aria-disabled":d||void 0,"aria-invalid":I.resolveAriaInvalid(S,r),className:["nk-checkbox-group",E].filter(Boolean).join(" "),"data-disabled":d||void 0,"data-invalid":N||void 0,"data-orientation":k,role:"group",children:u})})});W.markFieldGroupControl(U,"label");function ae(){return i.useContext(z)}const X=i.forwardRef(function(o,t){var m;const{"aria-invalid":r,checked:u,children:E,className:s,defaultChecked:d,disabled:S=!1,invalid:j=!1,name:v,onChange:k,required:f=!1,style:x,value:g="on",...p}=o,e=ae(),h=String(g),c=(e==null?void 0:e.value)!==void 0,O=S||!!(e!=null&&e.disabled),N=!!(e!=null&&e.required&&!e.hasSelection&&e.validationValue===h),_=j||I.hasInvalidState(r);function y(C){k==null||k(C),C.defaultPrevented||e==null||e.handleChange(C)}return l.jsxs("label",{className:["nk-checkbox",s].filter(Boolean).join(" "),"data-disabled":O||void 0,"data-invalid":_||void 0,style:x,children:[l.jsx("input",{...p,ref:t,"aria-invalid":I.resolveAriaInvalid(j,r),checked:e?c?(m=e.value)==null?void 0:m.includes(h):void 0:u,className:"nk-checkbox__control",defaultChecked:e&&!c?e.defaultValue.includes(h):d,disabled:O,name:(e==null?void 0:e.name)??v,onChange:y,required:f||N,type:"checkbox",value:g}),l.jsx("span",{"aria-hidden":"true",className:"nk-checkbox__visual",children:l.jsx(Z.Icon,{className:"nk-checkbox__icon",size:12,type:"checkmark"})}),E!==void 0?l.jsxs($.Text,{as:"span",className:"nk-checkbox__label",children:[E,f?l.jsx("span",{"aria-hidden":"true",className:"nk-checkbox__required",children:"*"}):null]}):null]})});ee(X);const re=Object.assign(X,{Group:U});exports.default=re;
|
package/dist/Checkbox.js
CHANGED
|
@@ -1,216 +1,217 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as h, jsxs as L } from "react/jsx-runtime";
|
|
3
|
-
import { createContext as Z, forwardRef as F, useRef as $, useState as ee, useCallback as ne, useEffect as oe, Children as te, isValidElement as ae, Fragment as
|
|
3
|
+
import { createContext as Z, forwardRef as F, useRef as $, useState as ee, useCallback as ne, useEffect as oe, Children as te, isValidElement as ae, Fragment as re, useContext as ie } from "react";
|
|
4
4
|
import { r as T, h as z } from "./aria-CeA9QfD1.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { a as le } from "./reference-CXMr27nM.js";
|
|
6
|
+
import { m as se } from "./field-control-XAn_FKks.js";
|
|
7
|
+
import { I as ce } from "./Icon-CxK1wlGk.js";
|
|
8
|
+
import { T as de } from "./Text-rN6iDo0V.js";
|
|
8
9
|
const K = Symbol("nk-checkbox-option");
|
|
9
|
-
function ue(
|
|
10
|
-
Object.assign(
|
|
10
|
+
function ue(a) {
|
|
11
|
+
Object.assign(a, { [K]: !0 });
|
|
11
12
|
}
|
|
12
|
-
function M(
|
|
13
|
-
if (typeof
|
|
13
|
+
function M(a) {
|
|
14
|
+
if (typeof a != "function" && typeof a != "object" || a === null)
|
|
14
15
|
return !1;
|
|
15
|
-
const
|
|
16
|
-
return
|
|
16
|
+
const t = a;
|
|
17
|
+
return t[K] ? !0 : t.type !== void 0 && t.type !== a ? M(t.type) : !1;
|
|
17
18
|
}
|
|
18
|
-
const U = Z(void 0),
|
|
19
|
-
function X(
|
|
20
|
-
te.forEach(
|
|
21
|
-
if (
|
|
19
|
+
const U = Z(void 0), fe = Object.freeze([]);
|
|
20
|
+
function X(a, t) {
|
|
21
|
+
te.forEach(a, (o) => {
|
|
22
|
+
if (o == null || typeof o == "boolean")
|
|
22
23
|
return;
|
|
23
|
-
if (!ae(
|
|
24
|
+
if (!ae(o))
|
|
24
25
|
throw new Error(
|
|
25
26
|
"Checkbox.Group children must be direct Checkbox elements or fragments"
|
|
26
27
|
);
|
|
27
|
-
if (
|
|
28
|
-
X(
|
|
28
|
+
if (o.type === re) {
|
|
29
|
+
X(o.props.children, t);
|
|
29
30
|
return;
|
|
30
31
|
}
|
|
31
|
-
if (!M(
|
|
32
|
+
if (!M(o.type))
|
|
32
33
|
throw new Error(
|
|
33
34
|
"Checkbox.Group children must be direct Checkbox elements or fragments"
|
|
34
35
|
);
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
disabled: !!
|
|
38
|
-
required: !!
|
|
39
|
-
value: String(
|
|
36
|
+
const r = o;
|
|
37
|
+
t.push({
|
|
38
|
+
disabled: !!r.props.disabled,
|
|
39
|
+
required: !!r.props.required,
|
|
40
|
+
value: String(r.props.value ?? "on")
|
|
40
41
|
});
|
|
41
42
|
});
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
-
const
|
|
45
|
-
X(
|
|
46
|
-
const
|
|
47
|
-
return
|
|
48
|
-
if (
|
|
44
|
+
function he(a) {
|
|
45
|
+
const t = [];
|
|
46
|
+
X(a, t);
|
|
47
|
+
const o = /* @__PURE__ */ new Set();
|
|
48
|
+
return t.forEach((r) => {
|
|
49
|
+
if (o.has(r.value))
|
|
49
50
|
throw new Error("Checkbox.Group Checkbox values must be unique");
|
|
50
|
-
|
|
51
|
-
}),
|
|
51
|
+
o.add(r.value);
|
|
52
|
+
}), t;
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
-
|
|
54
|
+
function be(a, t, o) {
|
|
55
|
+
t.current = a, le(o, a);
|
|
55
56
|
}
|
|
56
57
|
const D = F(
|
|
57
|
-
function(
|
|
58
|
+
function(t, o) {
|
|
58
59
|
const {
|
|
59
|
-
"aria-invalid":
|
|
60
|
+
"aria-invalid": r,
|
|
60
61
|
children: s,
|
|
61
62
|
className: E,
|
|
62
|
-
defaultValue:
|
|
63
|
+
defaultValue: i = fe,
|
|
63
64
|
disabled: c = !1,
|
|
64
65
|
invalid: S = !1,
|
|
65
66
|
name: q,
|
|
66
67
|
onChange: b,
|
|
67
|
-
orientation:
|
|
68
|
-
required:
|
|
69
|
-
value:
|
|
70
|
-
...
|
|
71
|
-
} =
|
|
72
|
-
(
|
|
73
|
-
),
|
|
74
|
-
(
|
|
75
|
-
),
|
|
76
|
-
(
|
|
77
|
-
),
|
|
78
|
-
(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
68
|
+
orientation: m = "vertical",
|
|
69
|
+
required: d = !1,
|
|
70
|
+
value: k,
|
|
71
|
+
...O
|
|
72
|
+
} = t, p = $(null), [e, u] = ee(i), l = k !== void 0, V = l ? k : e, R = S || z(r), g = he(s), y = c ? [] : g.filter((n) => !n.disabled).map((n) => n.value), v = new Set(y), x = V.some(
|
|
73
|
+
(n) => v.has(n)
|
|
74
|
+
), _ = y[0], B = g.find(
|
|
75
|
+
(n) => !n.disabled && n.value === _
|
|
76
|
+
), I = i.some(
|
|
77
|
+
(n) => v.has(n)
|
|
78
|
+
), w = !!(B != null && B.required), J = ne(
|
|
79
|
+
(n) => be(
|
|
80
|
+
n,
|
|
81
|
+
p,
|
|
82
|
+
o
|
|
82
83
|
),
|
|
83
|
-
[
|
|
84
|
+
[o]
|
|
84
85
|
);
|
|
85
86
|
oe(() => {
|
|
86
87
|
var N;
|
|
87
88
|
if (l) return;
|
|
88
|
-
const
|
|
89
|
+
const n = (N = p.current) == null ? void 0 : N.querySelector(
|
|
89
90
|
'input[type="checkbox"]'
|
|
90
|
-
), f =
|
|
91
|
+
), f = n instanceof HTMLInputElement ? n.form : null;
|
|
91
92
|
if (!f) return;
|
|
92
93
|
const G = f.getRootNode();
|
|
93
|
-
function C(
|
|
94
|
+
function C(j) {
|
|
94
95
|
var A;
|
|
95
|
-
if (
|
|
96
|
-
const
|
|
97
|
-
((A =
|
|
96
|
+
if (j.target !== f || j.defaultPrevented) return;
|
|
97
|
+
const P = Array.from(
|
|
98
|
+
((A = p.current) == null ? void 0 : A.querySelectorAll(
|
|
98
99
|
'input[type="checkbox"]'
|
|
99
100
|
)) ?? []
|
|
100
101
|
).find(
|
|
101
|
-
(H) => !H.disabled && H.value ===
|
|
102
|
+
(H) => !H.disabled && H.value === _
|
|
102
103
|
);
|
|
103
|
-
|
|
104
|
+
P && (P.required = !!(w || d && !I)), u(i);
|
|
104
105
|
}
|
|
105
106
|
return G.addEventListener("reset", C), () => G.removeEventListener("reset", C);
|
|
106
107
|
}, [
|
|
107
108
|
s,
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
i,
|
|
110
|
+
I,
|
|
110
111
|
l,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
d,
|
|
113
|
+
w,
|
|
114
|
+
_
|
|
114
115
|
]);
|
|
115
|
-
function Q(
|
|
116
|
+
function Q(n) {
|
|
116
117
|
if (!l) {
|
|
117
|
-
const f =
|
|
118
|
-
|
|
118
|
+
const f = n.currentTarget.value, G = n.currentTarget.checked;
|
|
119
|
+
u((C) => G ? [.../* @__PURE__ */ new Set([...C, f])] : C.filter((N) => N !== f));
|
|
119
120
|
}
|
|
120
|
-
b == null || b(
|
|
121
|
+
b == null || b(n);
|
|
121
122
|
}
|
|
122
123
|
const W = {
|
|
123
|
-
defaultValue:
|
|
124
|
+
defaultValue: i,
|
|
124
125
|
disabled: c,
|
|
125
126
|
handleChange: Q,
|
|
126
127
|
hasSelection: x,
|
|
127
128
|
name: q,
|
|
128
|
-
required:
|
|
129
|
-
value:
|
|
130
|
-
validationValue:
|
|
129
|
+
required: d,
|
|
130
|
+
value: k,
|
|
131
|
+
validationValue: _
|
|
131
132
|
};
|
|
132
133
|
return /* @__PURE__ */ h(U.Provider, { value: W, children: /* @__PURE__ */ h(
|
|
133
134
|
"div",
|
|
134
135
|
{
|
|
135
|
-
...
|
|
136
|
+
...O,
|
|
136
137
|
ref: J,
|
|
137
138
|
"aria-disabled": c || void 0,
|
|
138
|
-
"aria-invalid": T(S,
|
|
139
|
+
"aria-invalid": T(S, r),
|
|
139
140
|
className: [
|
|
140
141
|
"nk-checkbox-group",
|
|
141
142
|
E
|
|
142
143
|
].filter(Boolean).join(" "),
|
|
143
144
|
"data-disabled": c || void 0,
|
|
144
|
-
"data-invalid":
|
|
145
|
-
"data-orientation":
|
|
145
|
+
"data-invalid": R || void 0,
|
|
146
|
+
"data-orientation": m,
|
|
146
147
|
role: "group",
|
|
147
148
|
children: s
|
|
148
149
|
}
|
|
149
150
|
) });
|
|
150
151
|
}
|
|
151
152
|
);
|
|
152
|
-
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
se(D, "label");
|
|
154
|
+
function me() {
|
|
155
|
+
return ie(U);
|
|
155
156
|
}
|
|
156
|
-
const Y = F(function(
|
|
157
|
-
var
|
|
157
|
+
const Y = F(function(t, o) {
|
|
158
|
+
var v;
|
|
158
159
|
const {
|
|
159
|
-
"aria-invalid":
|
|
160
|
+
"aria-invalid": r,
|
|
160
161
|
checked: s,
|
|
161
162
|
children: E,
|
|
162
|
-
className:
|
|
163
|
+
className: i,
|
|
163
164
|
defaultChecked: c,
|
|
164
165
|
disabled: S = !1,
|
|
165
166
|
invalid: q = !1,
|
|
166
167
|
name: b,
|
|
167
|
-
onChange:
|
|
168
|
-
required:
|
|
169
|
-
style:
|
|
170
|
-
value:
|
|
171
|
-
...
|
|
172
|
-
} =
|
|
173
|
-
function
|
|
174
|
-
|
|
168
|
+
onChange: m,
|
|
169
|
+
required: d = !1,
|
|
170
|
+
style: k,
|
|
171
|
+
value: O = "on",
|
|
172
|
+
...p
|
|
173
|
+
} = t, e = me(), u = String(O), l = (e == null ? void 0 : e.value) !== void 0, V = S || !!(e != null && e.disabled), R = !!(e != null && e.required && !e.hasSelection && e.validationValue === u), g = q || z(r);
|
|
174
|
+
function y(x) {
|
|
175
|
+
m == null || m(x), x.defaultPrevented || e == null || e.handleChange(x);
|
|
175
176
|
}
|
|
176
177
|
return /* @__PURE__ */ L(
|
|
177
178
|
"label",
|
|
178
179
|
{
|
|
179
|
-
className: ["nk-checkbox",
|
|
180
|
-
"data-disabled":
|
|
181
|
-
"data-invalid":
|
|
182
|
-
style:
|
|
180
|
+
className: ["nk-checkbox", i].filter(Boolean).join(" "),
|
|
181
|
+
"data-disabled": V || void 0,
|
|
182
|
+
"data-invalid": g || void 0,
|
|
183
|
+
style: k,
|
|
183
184
|
children: [
|
|
184
185
|
/* @__PURE__ */ h(
|
|
185
186
|
"input",
|
|
186
187
|
{
|
|
187
|
-
...
|
|
188
|
-
ref:
|
|
189
|
-
"aria-invalid": T(q,
|
|
190
|
-
checked: e ? l ? (
|
|
188
|
+
...p,
|
|
189
|
+
ref: o,
|
|
190
|
+
"aria-invalid": T(q, r),
|
|
191
|
+
checked: e ? l ? (v = e.value) == null ? void 0 : v.includes(u) : void 0 : s,
|
|
191
192
|
className: "nk-checkbox__control",
|
|
192
|
-
defaultChecked: e && !l ? e.defaultValue.includes(
|
|
193
|
-
disabled:
|
|
193
|
+
defaultChecked: e && !l ? e.defaultValue.includes(u) : c,
|
|
194
|
+
disabled: V,
|
|
194
195
|
name: (e == null ? void 0 : e.name) ?? b,
|
|
195
|
-
onChange:
|
|
196
|
-
required:
|
|
196
|
+
onChange: y,
|
|
197
|
+
required: d || R,
|
|
197
198
|
type: "checkbox",
|
|
198
|
-
value:
|
|
199
|
+
value: O
|
|
199
200
|
}
|
|
200
201
|
),
|
|
201
|
-
/* @__PURE__ */ h("span", { "aria-hidden": "true", className: "nk-checkbox__visual", children: /* @__PURE__ */ h(
|
|
202
|
-
E !== void 0 ? /* @__PURE__ */ L(
|
|
202
|
+
/* @__PURE__ */ h("span", { "aria-hidden": "true", className: "nk-checkbox__visual", children: /* @__PURE__ */ h(ce, { className: "nk-checkbox__icon", size: 12, type: "checkmark" }) }),
|
|
203
|
+
E !== void 0 ? /* @__PURE__ */ L(de, { as: "span", className: "nk-checkbox__label", children: [
|
|
203
204
|
E,
|
|
204
|
-
|
|
205
|
+
d ? /* @__PURE__ */ h("span", { "aria-hidden": "true", className: "nk-checkbox__required", children: "*" }) : null
|
|
205
206
|
] }) : null
|
|
206
207
|
]
|
|
207
208
|
}
|
|
208
209
|
);
|
|
209
210
|
});
|
|
210
211
|
ue(Y);
|
|
211
|
-
const
|
|
212
|
+
const qe = Object.assign(Y, {
|
|
212
213
|
Group: D
|
|
213
214
|
});
|
|
214
215
|
export {
|
|
215
|
-
|
|
216
|
+
qe as default
|
|
216
217
|
};
|