neatkit 0.7.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/Avatar-Belo7qAY.cjs +1 -0
- package/dist/Avatar-DjDCFqNG.js +55 -0
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +2 -52
- package/dist/Boundary.cjs +1 -0
- package/dist/Boundary.js +176 -0
- 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 +213 -2
- package/dist/Code-B7s_rN0G.cjs +4 -0
- package/dist/Code-Bp2X1k-g.js +224 -0
- 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-uQmpr5P2.js → Icon-CxK1wlGk.js} +194 -181
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +2 -35
- package/dist/Input.cjs +1 -1
- package/dist/Input.js +70 -79
- package/dist/Markdown.cjs +1 -31
- package/dist/Markdown.js +469 -18066
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +100 -122
- package/dist/PinInput.cjs +1 -1
- package/dist/PinInput.js +1 -1
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +171 -165
- package/dist/Radio.cjs +1 -1
- package/dist/Radio.js +86 -41
- package/dist/Select.cjs +1 -1
- package/dist/Select.js +326 -315
- package/dist/Sidebar.cjs +1 -0
- package/dist/Sidebar.js +490 -0
- package/dist/Skeleton.cjs +1 -1
- package/dist/Skeleton.js +20 -16
- package/dist/Switch.cjs +1 -1
- package/dist/Switch.js +1 -1
- 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/TextArea.cjs +1 -1
- package/dist/TextArea.js +1 -1
- package/dist/Tooltip-B2d5ss7S.cjs +1 -0
- package/dist/Tooltip-BK64rkxV.js +231 -0
- package/dist/Tooltip.cjs +1 -1
- package/dist/Tooltip.js +2 -3
- package/dist/albert-sans-cb3e34c4.woff2 +0 -0
- package/dist/aria-Bntn6ad_.cjs +1 -0
- package/dist/aria-CeA9QfD1.js +15 -0
- package/dist/components/Boundary/Boundary.d.ts +65 -0
- package/dist/components/Boundary/contexts/BoundaryContext.d.ts +28 -0
- package/dist/components/Boundary/hooks/useBoundary.d.ts +19 -0
- package/dist/components/Boundary/hooks/useBoundaryWidth.d.ts +23 -0
- package/dist/components/Boundary/index.d.ts +2 -0
- package/dist/components/Boundary/utils/width.d.ts +11 -0
- package/dist/components/Checkbox/Checkbox.d.ts +9 -1
- package/dist/components/{CheckboxGroup → Checkbox/components}/CheckboxGroup.d.ts +2 -2
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Checkbox/utils/checkbox-option.d.ts +17 -0
- package/dist/components/Icon/Icon.d.ts +1 -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/index.d.ts +0 -33
- package/dist/components/Icon/utils/registry.d.ts +2 -0
- package/dist/components/Input/Input.d.ts +1 -9
- package/dist/components/Modal/Modal.d.ts +0 -4
- package/dist/components/PinInput/PinInput.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts +2 -6
- package/dist/components/Portal/Portal.d.ts +11 -8
- package/dist/components/Portal/hooks/useDismissableLayer.d.ts +2 -0
- package/dist/components/Portal/hooks/useFloatingPosition.d.ts +4 -3
- package/dist/components/Portal/hooks/useFocusTrap.d.ts +2 -0
- package/dist/components/Portal/hooks/useScrollLock.d.ts +9 -3
- package/dist/components/Portal/utils/boundary-focus.d.ts +23 -0
- package/dist/components/Portal/utils/floating-position.d.ts +43 -9
- package/dist/components/Portal/utils/overlay-stack.d.ts +22 -10
- package/dist/components/Portal/utils/scroll-container.d.ts +13 -0
- package/dist/components/Radio/Radio.d.ts +9 -1
- package/dist/components/{RadioGroup → Radio/components}/RadioGroup.d.ts +9 -2
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +0 -2
- package/dist/components/Select/utils/listbox-position.d.ts +28 -0
- package/dist/components/Sidebar/Sidebar.d.ts +113 -0
- package/dist/components/Sidebar/components/SidebarFooter.d.ts +24 -0
- package/dist/components/Sidebar/components/SidebarGroup.d.ts +31 -0
- package/dist/components/Sidebar/components/SidebarHeader.d.ts +29 -0
- package/dist/components/Sidebar/components/SidebarItem.d.ts +46 -0
- package/dist/components/Sidebar/components/SidebarOverlay.d.ts +38 -0
- package/dist/components/Sidebar/components/SidebarPanel.d.ts +47 -0
- package/dist/components/Sidebar/components/SidebarTrigger.d.ts +47 -0
- package/dist/components/Sidebar/components/SidebarUser.d.ts +59 -0
- package/dist/components/Sidebar/hooks/usePresentation.d.ts +14 -0
- package/dist/components/Sidebar/hooks/useSidebar.d.ts +9 -0
- package/dist/components/Sidebar/index.d.ts +2 -0
- package/dist/components/Sidebar/utils/presentation.d.ts +12 -0
- package/dist/components/Sidebar/utils/state.d.ts +62 -0
- package/dist/components/Skeleton/Skeleton.d.ts +21 -5
- package/dist/components/Table/Table.d.ts +21 -249
- 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/contexts/TableContext.d.ts +4 -0
- package/dist/components/Table/hooks/useHorizontalOverflow.d.ts +25 -0
- package/dist/components/Table/index.d.ts +1 -1
- 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/components/Tooltip/Tooltip.d.ts +10 -4
- package/dist/components/Tooltip/TooltipProvider.d.ts +1 -1
- package/dist/components/Tooltip/index.d.ts +0 -1
- package/dist/effects-D5CWf-Pl.js +8 -0
- package/dist/effects-D85L_7zM.cjs +1 -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/tokens.d.ts +1 -0
- package/dist/useFloatingPosition-B3ZC-v3v.js +43 -0
- package/dist/useFloatingPosition-GzkP9dCc.cjs +1 -0
- package/dist/useFocusTrap-BrFZdMqQ.cjs +1 -0
- package/dist/useFocusTrap-DhVnlboe.js +136 -0
- package/dist/usePresence-B5RYv4e1.cjs +1 -0
- package/dist/usePresence-CqegYqy4.js +221 -0
- package/dist/useScrollLock-Drd7OZRC.js +62 -0
- package/dist/useScrollLock-Dy8MZaSn.cjs +1 -0
- package/dist/utils/aria.d.ts +9 -0
- package/dist/utils/effects.d.ts +12 -0
- package/package.json +12 -16
- package/dist/Button-BAsLfA0D.js +0 -99
- package/dist/Button-D7JUO6Fs.cjs +0 -1
- package/dist/Checkbox-BvXM9VyY.js +0 -68
- package/dist/Checkbox-VQifZrZZ.cjs +0 -1
- package/dist/CheckboxGroup.cjs +0 -1
- package/dist/CheckboxGroup.js +0 -144
- package/dist/Code-BP2ZCmUf.js +0 -7446
- package/dist/Code-eispVOW3.cjs +0 -6
- package/dist/Content.cjs +0 -1
- package/dist/Content.js +0 -144
- package/dist/Divider-CJYbFcSX.cjs +0 -1
- package/dist/Icon-D8IZceys.cjs +0 -1
- package/dist/RadioGroup.cjs +0 -1
- package/dist/RadioGroup.js +0 -51
- package/dist/RadioGroupContext-BX9KnDek.cjs +0 -1
- package/dist/RadioGroupContext-DbKM4zPZ.js +0 -5
- package/dist/Table-83unQQOi.cjs +0 -1
- package/dist/Table-Cw8u-pEW.js +0 -403
- package/dist/Tooltip-BB82wNOE.cjs +0 -1
- package/dist/Tooltip-CqWK_GRD.js +0 -236
- package/dist/aria-DHnOMyYp.js +0 -10
- package/dist/aria-DKxpE8cA.cjs +0 -1
- package/dist/components/CheckboxGroup/index.d.ts +0 -2
- package/dist/components/Content/Content.d.ts +0 -60
- package/dist/components/Content/hooks/useContentLayout.d.ts +0 -18
- package/dist/components/Content/index.d.ts +0 -2
- package/dist/components/Content/utils/layout.d.ts +0 -11
- package/dist/components/RadioGroup/index.d.ts +0 -2
- package/dist/useFloatingPosition-CxzhAvy8.js +0 -73
- package/dist/useFloatingPosition-D1FqYy0l.cjs +0 -1
- package/dist/useFocusTrap--cgjy78G.cjs +0 -1
- package/dist/useFocusTrap-Da4nEash.js +0 -134
- package/dist/usePresence-DSPt6aKi.js +0 -210
- package/dist/usePresence-qe92UTvK.cjs +0 -1
- /package/dist/components/{CheckboxGroup → Checkbox}/contexts/CheckboxGroupContext.d.ts +0 -0
- /package/dist/components/{CheckboxGroup → Checkbox}/hooks/useCheckboxGroup.d.ts +0 -0
- /package/dist/components/{RadioGroup → Radio}/contexts/RadioGroupContext.d.ts +0 -0
- /package/dist/components/{RadioGroup → Radio}/hooks/useRadioGroup.d.ts +0 -0
package/dist/Icon.js
CHANGED
|
@@ -1,37 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as f } from "./Icon-CxK1wlGk.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
s as ArrowRightIcon,
|
|
5
|
-
c as ArticlesIcon,
|
|
6
|
-
I as AudioIcon,
|
|
7
|
-
e as BurgerIcon,
|
|
8
|
-
r as CameraIcon,
|
|
9
|
-
i as ChatIcon,
|
|
10
|
-
t as CheckmarkIcon,
|
|
11
|
-
d as CrossIcon,
|
|
12
|
-
l as DownloadIcon,
|
|
13
|
-
f as DuplicateIcon,
|
|
14
|
-
u as ExitIcon,
|
|
15
|
-
C as EyeIcon,
|
|
16
|
-
g as EyeOffIcon,
|
|
17
|
-
h as GithubIcon,
|
|
18
|
-
w as GlobeIcon,
|
|
19
|
-
A as HardwareIcon,
|
|
20
|
-
R as InfoIcon,
|
|
21
|
-
k as KeyIcon,
|
|
22
|
-
m as LinkedInIcon,
|
|
23
|
-
p as MailIcon,
|
|
24
|
-
y as MinusIcon,
|
|
25
|
-
E as PencilIcon,
|
|
26
|
-
P as PlusIcon,
|
|
27
|
-
b as ProjectsIcon,
|
|
28
|
-
D as QRCodeIcon,
|
|
29
|
-
G as RedditIcon,
|
|
30
|
-
L as RepositoryIcon,
|
|
31
|
-
M as SaveIcon,
|
|
32
|
-
S as SignalIcon,
|
|
33
|
-
W as UserIcon,
|
|
34
|
-
j as WarningIcon,
|
|
35
|
-
x as WindowIcon,
|
|
36
|
-
B as default
|
|
3
|
+
f as default
|
|
37
4
|
};
|
package/dist/Input.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/jsx-runtime"),t=require("react"),S=require("./Button-DU4j_IED.cjs"),$=require("./Spinner-BXgw60UC.cjs"),w=require("./aria-Bntn6ad_.cjs");function v(a){return Array.isArray(a)?a.length>0:a!=null&&String(a).length>0}function F(a,s,n){s.current=a,typeof n=="function"?n(a):n&&(n.current=a)}function G(a){var n;const s=(n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value"))==null?void 0:n.set;s?s.call(a,""):a.value=""}const J=t.forwardRef(function(s,n){const{"aria-busy":V,"aria-invalid":b,className:C,clearable:y=!1,defaultValue:g,disabled:A=!1,id:N,invalid:h=!1,loading:l=!1,onChange:d,readOnly:p=!1,style:P,type:r="text",value:o,...m}=s,O=t.useId(),I=t.useRef(null),[q,B]=t.useState(v(g)),[u,_]=t.useState(!1);t.useEffect(()=>{r!=="password"&&_(!1)},[r]);const T=t.useCallback(e=>F(e,I,n),[n]),f=N??`${O}-control`,c=A||l,D=h||w.hasInvalidState(b),E=o!==void 0?v(o):q,H=r==="password"&&u?"text":r,M=w.resolveAriaInvalid(h,b),j=y&&E&&!p&&!c,k=r==="password"&&!l,x=j||k;function R(e){o===void 0&&B(v(e.currentTarget.value)),d==null||d(e)}function U(){const e=I.current;e&&(G(e),e.dispatchEvent(new Event("input",{bubbles:!0})),e.focus())}function z(){_(e=>!e)}return i.jsxs("div",{className:["nk-input",C].filter(Boolean).join(" "),"data-clearable":y||void 0,"data-disabled":c||void 0,"data-invalid":D||void 0,"data-loading":l||void 0,"data-read-only":p||void 0,"data-has-trailing-action":x||void 0,style:P,children:[i.jsx("input",{...m,ref:T,"aria-busy":l?!0:V,"aria-invalid":M,className:"nk-input__control",defaultValue:g,disabled:c,id:f,onChange:R,readOnly:p,type:H,value:o}),x?i.jsxs("span",{className:"nk-input__trailing",children:[j?i.jsx(S.Button,{"aria-controls":f,"aria-label":"Clear input",className:"nk-input__action",icon:"cross",onClick:U,shape:"rectangle",type:"button",variant:"ghost"}):null,k?i.jsx(S.Button,{"aria-controls":f,"aria-label":u?"Hide password":"Show password","aria-pressed":u,className:"nk-input__action",disabled:c,icon:u?"eye-off":"eye",onClick:z,shape:"rectangle",type:"button",variant:"ghost"}):null]}):null,l?i.jsx($.Spinner,{"aria-hidden":"true","aria-label":void 0,className:"nk-input__spinner",role:void 0,size:14}):null]})});exports.default=J;
|
package/dist/Input.js
CHANGED
|
@@ -1,134 +1,125 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { B as
|
|
5
|
-
import { S as
|
|
6
|
-
import { h as
|
|
2
|
+
import { jsxs as w, jsx as c } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as F, useId as G, useRef as J, useState as V, useEffect as K, useCallback as L } from "react";
|
|
4
|
+
import { B as C } from "./Button-BV5OUXpc.js";
|
|
5
|
+
import { S as M } from "./Spinner-CVYvk6YK.js";
|
|
6
|
+
import { h as Q, r as W } from "./aria-CeA9QfD1.js";
|
|
7
7
|
function f(a) {
|
|
8
8
|
return Array.isArray(a) ? a.length > 0 : a != null && String(a).length > 0;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
|
|
10
|
+
function X(a, i, t) {
|
|
11
|
+
i.current = a, typeof t == "function" ? t(a) : t && (t.current = a);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
function ta(a) {
|
|
17
|
-
var i;
|
|
18
|
-
const t = (i = Object.getOwnPropertyDescriptor(
|
|
13
|
+
function Y(a) {
|
|
14
|
+
var t;
|
|
15
|
+
const i = (t = Object.getOwnPropertyDescriptor(
|
|
19
16
|
Object.getPrototypeOf(a),
|
|
20
17
|
"value"
|
|
21
|
-
)) == null ? void 0 :
|
|
22
|
-
|
|
18
|
+
)) == null ? void 0 : t.set;
|
|
19
|
+
i ? i.call(a, "") : a.value = "";
|
|
23
20
|
}
|
|
24
|
-
const
|
|
21
|
+
const sa = F(function(i, t) {
|
|
25
22
|
const {
|
|
26
|
-
"aria-busy":
|
|
23
|
+
"aria-busy": A,
|
|
27
24
|
"aria-invalid": v,
|
|
28
|
-
className:
|
|
25
|
+
className: N,
|
|
29
26
|
clearable: b = !1,
|
|
30
|
-
defaultValue:
|
|
31
|
-
disabled:
|
|
32
|
-
id:
|
|
27
|
+
defaultValue: y,
|
|
28
|
+
disabled: S = !1,
|
|
29
|
+
id: x,
|
|
33
30
|
invalid: h = !1,
|
|
34
|
-
leading: y,
|
|
35
31
|
loading: s = !1,
|
|
36
|
-
onChange:
|
|
32
|
+
onChange: d,
|
|
37
33
|
readOnly: u = !1,
|
|
38
|
-
style:
|
|
39
|
-
trailing: m,
|
|
34
|
+
style: P,
|
|
40
35
|
type: e = "text",
|
|
41
|
-
value:
|
|
42
|
-
...
|
|
43
|
-
} =
|
|
44
|
-
f(
|
|
45
|
-
), [
|
|
46
|
-
|
|
47
|
-
e !== "password" &&
|
|
36
|
+
value: l,
|
|
37
|
+
...j
|
|
38
|
+
} = i, O = G(), g = J(null), [B, T] = V(
|
|
39
|
+
f(y)
|
|
40
|
+
), [o, m] = V(!1);
|
|
41
|
+
K(() => {
|
|
42
|
+
e !== "password" && m(!1);
|
|
48
43
|
}, [e]);
|
|
49
|
-
const
|
|
50
|
-
(n) =>
|
|
44
|
+
const D = L(
|
|
45
|
+
(n) => X(
|
|
51
46
|
n,
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
g,
|
|
48
|
+
t
|
|
54
49
|
),
|
|
55
|
-
[
|
|
56
|
-
), p =
|
|
57
|
-
function
|
|
58
|
-
|
|
50
|
+
[t]
|
|
51
|
+
), p = x ?? `${O}-control`, r = S || s, E = h || Q(v), H = l !== void 0 ? f(l) : B, U = e === "password" && o ? "text" : e, z = W(h, v), I = b && H && !u && !r, k = e === "password" && !s, _ = I || k;
|
|
52
|
+
function R(n) {
|
|
53
|
+
l === void 0 && T(f(n.currentTarget.value)), d == null || d(n);
|
|
59
54
|
}
|
|
60
|
-
function
|
|
61
|
-
const n =
|
|
62
|
-
n && (
|
|
55
|
+
function $() {
|
|
56
|
+
const n = g.current;
|
|
57
|
+
n && (Y(n), n.dispatchEvent(new Event("input", { bubbles: !0 })), n.focus());
|
|
63
58
|
}
|
|
64
|
-
function
|
|
65
|
-
|
|
59
|
+
function q() {
|
|
60
|
+
m((n) => !n);
|
|
66
61
|
}
|
|
67
|
-
return /* @__PURE__ */
|
|
62
|
+
return /* @__PURE__ */ w(
|
|
68
63
|
"div",
|
|
69
64
|
{
|
|
70
|
-
className: ["nk-input",
|
|
65
|
+
className: ["nk-input", N].filter(Boolean).join(" "),
|
|
71
66
|
"data-clearable": b || void 0,
|
|
72
|
-
"data-disabled":
|
|
73
|
-
"data-invalid":
|
|
74
|
-
"data-leading": V || void 0,
|
|
67
|
+
"data-disabled": r || void 0,
|
|
68
|
+
"data-invalid": E || void 0,
|
|
75
69
|
"data-loading": s || void 0,
|
|
76
70
|
"data-read-only": u || void 0,
|
|
77
|
-
"data-has-trailing-action":
|
|
78
|
-
|
|
79
|
-
style: D,
|
|
71
|
+
"data-has-trailing-action": _ || void 0,
|
|
72
|
+
style: P,
|
|
80
73
|
children: [
|
|
81
|
-
|
|
82
|
-
/* @__PURE__ */ l(
|
|
74
|
+
/* @__PURE__ */ c(
|
|
83
75
|
"input",
|
|
84
76
|
{
|
|
85
|
-
...
|
|
86
|
-
ref:
|
|
87
|
-
"aria-busy": s ? !0 :
|
|
88
|
-
"aria-invalid":
|
|
77
|
+
...j,
|
|
78
|
+
ref: D,
|
|
79
|
+
"aria-busy": s ? !0 : A,
|
|
80
|
+
"aria-invalid": z,
|
|
89
81
|
className: "nk-input__control",
|
|
90
|
-
defaultValue:
|
|
91
|
-
disabled:
|
|
82
|
+
defaultValue: y,
|
|
83
|
+
disabled: r,
|
|
92
84
|
id: p,
|
|
93
|
-
onChange:
|
|
85
|
+
onChange: R,
|
|
94
86
|
readOnly: u,
|
|
95
|
-
type:
|
|
96
|
-
value:
|
|
87
|
+
type: U,
|
|
88
|
+
value: l
|
|
97
89
|
}
|
|
98
90
|
),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
x,
|
|
91
|
+
_ ? /* @__PURE__ */ w("span", { className: "nk-input__trailing", children: [
|
|
92
|
+
I ? /* @__PURE__ */ c(
|
|
93
|
+
C,
|
|
103
94
|
{
|
|
104
95
|
"aria-controls": p,
|
|
105
96
|
"aria-label": "Clear input",
|
|
106
97
|
className: "nk-input__action",
|
|
107
98
|
icon: "cross",
|
|
108
|
-
onClick:
|
|
99
|
+
onClick: $,
|
|
109
100
|
shape: "rectangle",
|
|
110
101
|
type: "button",
|
|
111
102
|
variant: "ghost"
|
|
112
103
|
}
|
|
113
104
|
) : null,
|
|
114
|
-
|
|
115
|
-
|
|
105
|
+
k ? /* @__PURE__ */ c(
|
|
106
|
+
C,
|
|
116
107
|
{
|
|
117
108
|
"aria-controls": p,
|
|
118
|
-
"aria-label":
|
|
119
|
-
"aria-pressed":
|
|
109
|
+
"aria-label": o ? "Hide password" : "Show password",
|
|
110
|
+
"aria-pressed": o,
|
|
120
111
|
className: "nk-input__action",
|
|
121
|
-
disabled:
|
|
122
|
-
icon:
|
|
123
|
-
onClick:
|
|
112
|
+
disabled: r,
|
|
113
|
+
icon: o ? "eye-off" : "eye",
|
|
114
|
+
onClick: q,
|
|
124
115
|
shape: "rectangle",
|
|
125
116
|
type: "button",
|
|
126
117
|
variant: "ghost"
|
|
127
118
|
}
|
|
128
119
|
) : null
|
|
129
120
|
] }) : null,
|
|
130
|
-
s ? /* @__PURE__ */
|
|
131
|
-
|
|
121
|
+
s ? /* @__PURE__ */ c(
|
|
122
|
+
M,
|
|
132
123
|
{
|
|
133
124
|
"aria-hidden": "true",
|
|
134
125
|
"aria-label": void 0,
|
|
@@ -142,5 +133,5 @@ const da = M(function(t, i) {
|
|
|
142
133
|
);
|
|
143
134
|
});
|
|
144
135
|
export {
|
|
145
|
-
|
|
136
|
+
sa as default
|
|
146
137
|
};
|