@still-forest/canopy 0.56.0 → 0.56.1
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/index.d.ts +1 -1
- package/dist/index.js +9 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -740,7 +740,7 @@ export declare const Pagination: ({ pageCount, currentPage, onChange }: Props_3)
|
|
|
740
740
|
|
|
741
741
|
export declare const Paragraph: ({ children, className, as, ...props }: TextProps) => JSX.Element;
|
|
742
742
|
|
|
743
|
-
export declare const PasswordField: ({ name, size, label, labelOrientation, note, error, ...props }: PasswordFieldProps) => JSX.Element;
|
|
743
|
+
export declare const PasswordField: ({ name, size, label, labelOrientation, note, error, id, ...props }: PasswordFieldProps) => JSX.Element;
|
|
744
744
|
|
|
745
745
|
declare interface PasswordFieldProps extends Omit<ComponentProps<"input">, "type" | "size"> {
|
|
746
746
|
name: string;
|
package/dist/index.js
CHANGED
|
@@ -20647,24 +20647,25 @@ const kT = ({
|
|
|
20647
20647
|
labelOrientation: r = "top",
|
|
20648
20648
|
note: o,
|
|
20649
20649
|
error: s,
|
|
20650
|
-
|
|
20650
|
+
id: i,
|
|
20651
|
+
...a
|
|
20651
20652
|
}) => {
|
|
20652
|
-
const [
|
|
20653
|
-
|
|
20653
|
+
const [l, c] = Mt(!1), u = () => {
|
|
20654
|
+
c(!l);
|
|
20654
20655
|
};
|
|
20655
20656
|
return /* @__PURE__ */ m.jsxs(Ae, { className: "w-full", direction: r === "left" ? "row" : "col", gap: "2", children: [
|
|
20656
|
-
n && /* @__PURE__ */ m.jsx(Ot, { className: r === "left" ? "text-nowrap" : "", htmlFor: e, size: t, children: n }),
|
|
20657
|
+
n && /* @__PURE__ */ m.jsx(Ot, { className: r === "left" ? "text-nowrap" : "", htmlFor: i || e, size: t, children: n }),
|
|
20657
20658
|
/* @__PURE__ */ m.jsxs(Zt, { children: [
|
|
20658
|
-
/* @__PURE__ */ m.jsx(Zt.Input, { type:
|
|
20659
|
+
/* @__PURE__ */ m.jsx(Zt.Input, { type: l ? "text" : "password", ...a, id: i || e, name: e }),
|
|
20659
20660
|
/* @__PURE__ */ m.jsx(Zt.Addon, { right: !0, children: /* @__PURE__ */ m.jsx(
|
|
20660
20661
|
Zt.Button,
|
|
20661
20662
|
{
|
|
20662
|
-
"aria-label":
|
|
20663
|
+
"aria-label": l ? "Hide password" : "Show password",
|
|
20663
20664
|
asIcon: !0,
|
|
20664
|
-
onClick:
|
|
20665
|
+
onClick: u,
|
|
20665
20666
|
size: "xs",
|
|
20666
20667
|
variant: "ghost",
|
|
20667
|
-
children:
|
|
20668
|
+
children: l ? /* @__PURE__ */ m.jsx(Uh, {}) : /* @__PURE__ */ m.jsx(Kh, {})
|
|
20668
20669
|
}
|
|
20669
20670
|
) })
|
|
20670
20671
|
] }),
|