@yenio-pld/blocks 1.2.0-rc.10 → 1.2.0-rc.11

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.cjs CHANGED
@@ -3824,6 +3824,40 @@ function CurpInput({
3824
3824
  }
3825
3825
  );
3826
3826
  }
3827
+ function PasswordInput({
3828
+ className,
3829
+ disabled,
3830
+ showLabel = "Show password",
3831
+ hideLabel = "Hide password",
3832
+ ...props
3833
+ }) {
3834
+ const [visible, setVisible] = React3__namespace.useState(false);
3835
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative w-full", children: [
3836
+ /* @__PURE__ */ jsxRuntime.jsx(
3837
+ input_js.Input,
3838
+ {
3839
+ ...props,
3840
+ type: visible ? "text" : "password",
3841
+ disabled,
3842
+ className: cn("pr-9", className)
3843
+ }
3844
+ ),
3845
+ /* @__PURE__ */ jsxRuntime.jsx(
3846
+ button_js.Button,
3847
+ {
3848
+ type: "button",
3849
+ variant: "ghost",
3850
+ size: "icon-xs",
3851
+ disabled,
3852
+ className: "absolute inset-y-0 right-1 my-auto text-muted-foreground hover:text-foreground",
3853
+ "aria-label": visible ? hideLabel : showLabel,
3854
+ "aria-pressed": visible,
3855
+ onClick: () => setVisible((value) => !value),
3856
+ children: visible ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.EyeOff, { className: "size-4", "aria-hidden": true }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Eye, { className: "size-4", "aria-hidden": true })
3857
+ }
3858
+ )
3859
+ ] });
3860
+ }
3827
3861
  var DEFAULT_LABELS2 = {
3828
3862
  uploadAria: "Upload image",
3829
3863
  uploadHint: "Click to upload",
@@ -6952,6 +6986,7 @@ exports.PageContainer = PageContainer;
6952
6986
  exports.PageTitle = PageTitle;
6953
6987
  exports.PageTitleSkeleton = PageTitleSkeleton;
6954
6988
  exports.PaginatedCombobox = PaginatedCombobox;
6989
+ exports.PasswordInput = PasswordInput;
6955
6990
  exports.QueueLayout = QueueLayout;
6956
6991
  exports.RfcInput = RfcInput;
6957
6992
  exports.RiskBadge = RiskBadge;