@vkzstudio/muza-ui 1.5.0 → 1.5.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.
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordInput.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordInput/PasswordInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,UAAU,CAAA;AAEjD;;;GAGG;AACH,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC3C,kHAAkH;IAClH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAA;CAC/B;AAED,QAAA,MAAM,aAAa,8HA8ClB,CAAA;AAID,OAAO,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"PasswordInput.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordInput/PasswordInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,UAAU,CAAA;AAEjD;;;GAGG;AACH,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC3C,kHAAkH;IAClH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAA;CAC/B;AAED,QAAA,MAAM,aAAa,8HAkDlB,CAAA;AAID,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -7,19 +7,19 @@ import { cn as b } from "../../utils/cn.js";
7
7
  import { EyeBold as h } from "@solar-icons/react-perf";
8
8
  const P = u(
9
9
  ({
10
- initialShowPassword: r,
11
- showPasswordAriaLabel: t,
12
- hidePasswordAriaLabel: i,
10
+ initialShowPassword: t,
11
+ showPasswordAriaLabel: i,
12
+ hidePasswordAriaLabel: n,
13
13
  ...s
14
- }, n) => {
15
- const { translations: a } = c(), [e, d] = p(
16
- r || !1
17
- ), l = e ? i ?? a.passwordInput.hidePasswordAriaLabel : t ?? a.passwordInput.showPasswordAriaLabel;
14
+ }, d) => {
15
+ const { translations: r } = c(), [e, l] = p(
16
+ t || !1
17
+ ), m = e ? n ?? r.passwordInput.hidePasswordAriaLabel : i ?? r.passwordInput.showPasswordAriaLabel;
18
18
  return /* @__PURE__ */ o(
19
19
  w,
20
20
  {
21
21
  ...s,
22
- ref: n,
22
+ ref: d,
23
23
  type: e ? "text" : "password",
24
24
  suffix: /* @__PURE__ */ o(
25
25
  "button",
@@ -27,10 +27,11 @@ const P = u(
27
27
  className: b("cursor-pointer focus-visible-default", {
28
28
  "pointer-events-none cursor-not-allowed": s.disabled
29
29
  }),
30
- onClick: () => d((m) => !m),
30
+ onMouseDown: (a) => a.preventDefault(),
31
+ onClick: () => l((a) => !a),
31
32
  disabled: s.disabled,
32
33
  type: "button",
33
- "aria-label": l,
34
+ "aria-label": m,
34
35
  children: e ? /* @__PURE__ */ o(h, { "aria-hidden": "true", className: "size-icon-medium" }) : /* @__PURE__ */ o(f, { "aria-hidden": "true", className: "size-icon-medium" })
35
36
  }
36
37
  )
@@ -4,4 +4,6 @@ declare const meta: Meta<typeof PasswordInput>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof PasswordInput>;
6
6
  export declare const Default: Story;
7
+ export declare const InitiallyVisible: Story;
8
+ export declare const CustomToggleLabels: Story;
7
9
  //# sourceMappingURL=PasswordInput.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordInput.stories.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordInput/PasswordInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAiHpC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAA;AAE3C,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAA"}
1
+ {"version":3,"file":"PasswordInput.stories.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordInput/PasswordInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAiHpC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAA;AAE3C,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAe9B,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAehC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkzstudio/muza-ui",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "React component library built with Vite, shadcn/ui, and Tailwind CSS",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",