@purpurds/password-field 6.8.3 → 6.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.
@@ -14,7 +14,7 @@ import "@purpurds/text-field/styles";
14
14
  import "./password-field.story.css";
15
15
  import { PasswordField } from "./password-field";
16
16
 
17
- const PasswordFieldStoryBookComponent = (...args: any[]) => {
17
+ const PasswordFieldStoryBookComponent = (...args: unknown[]) => {
18
18
  const [password, setPassword] = React.useState("");
19
19
  const [passwordTwo, setPasswordTwo] = React.useState("");
20
20
 
@@ -85,7 +85,7 @@ const meta = {
85
85
  title: "Inputs/PasswordField",
86
86
  component: PasswordField,
87
87
  subcomponents: {
88
- //@ts-ignore
88
+ //@ts-expect-error Does not work for exotic types
89
89
  "PasswordField.PasswordStrength": PasswordField.PasswordStrength,
90
90
  },
91
91
  parameters: {
@@ -11,7 +11,7 @@ import React, {
11
11
  import { Button } from "@purpurds/button";
12
12
  import { IconPasswordInvisible } from "@purpurds/icon/password-invisible";
13
13
  import { IconPasswordVisible } from "@purpurds/icon/password-visible";
14
- import { type TextFieldProps, TextField } from "@purpurds/text-field";
14
+ import { TextField,type TextFieldProps } from "@purpurds/text-field";
15
15
  import c from "classnames/bind";
16
16
 
17
17
  import { FIELD_TYPE } from "./constants";
@@ -88,7 +88,7 @@ export const PasswordField = forwardRef<HTMLInputElement, PasswordFieldProps>(
88
88
  ref={ref}
89
89
  type={type}
90
90
  endAdornment={
91
- // eslint-disable-next-line react/jsx-wrap-multilines
91
+
92
92
  <Button
93
93
  aria-label={
94
94
  type === FIELD_TYPE.PASSWORD ? showPasswordAllyLabel : hidePasswordAllyLabel