@purpurds/password-field 7.5.0 → 7.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,4 +1,4 @@
1
- import React, { ChangeEvent } from "react";
1
+ import React, { type ChangeEvent } from "react";
2
2
  import { Button } from "@purpurds/button";
3
3
  import { Heading } from "@purpurds/heading";
4
4
  import { Paragraph } from "@purpurds/paragraph";
@@ -82,7 +82,7 @@ const PasswordFieldStoryBookComponent = (...args: unknown[]) => {
82
82
  };
83
83
 
84
84
  const meta = {
85
- title: "Inputs/PasswordField",
85
+ title: "Forms and Inputs/PasswordField",
86
86
  component: PasswordField,
87
87
  subcomponents: {
88
88
  //@ts-expect-error Does not work for exotic types
@@ -4,7 +4,7 @@ import { cleanup, render, screen } from "@testing-library/react";
4
4
  import userEvent from "@testing-library/user-event";
5
5
  import { afterEach, describe, expect, it, vi } from "vitest";
6
6
 
7
- import { PasswordField, PasswordFieldProps } from "./password-field";
7
+ import { PasswordField, type PasswordFieldProps } from "./password-field";
8
8
 
9
9
  expect.extend(matchers);
10
10
 
@@ -1,11 +1,11 @@
1
1
  import React, {
2
- ChangeEvent,
3
- ForwardedRef,
2
+ type ChangeEvent,
3
+ type ForwardedRef,
4
4
  forwardRef,
5
5
  isValidElement,
6
- ReactElement,
7
- ReactNode,
8
- ReactPortal,
6
+ type ReactElement,
7
+ type ReactNode,
8
+ type ReactPortal,
9
9
  useState,
10
10
  } from "react";
11
11
  import { Button } from "@purpurds/button";
@@ -17,7 +17,7 @@ import c from "classnames/bind";
17
17
  import { FIELD_TYPE } from "./constants";
18
18
  import styles from "./password-field.module.scss";
19
19
  import { PasswordStrength } from "./password-strength";
20
- import { FieldType } from "./types";
20
+ import { type FieldType } from "./types";
21
21
 
22
22
  const cx = c.bind(styles);
23
23
 
@@ -1,4 +1,4 @@
1
- import React, { ForwardedRef, forwardRef } from "react";
1
+ import React, { type ForwardedRef, forwardRef } from "react";
2
2
  import c from "classnames/bind";
3
3
 
4
4
  import styles from "./password-strength-indicator.module.scss";
@@ -1,4 +1,4 @@
1
- import React, { ForwardedRef, forwardRef } from "react";
1
+ import React, { type ForwardedRef, forwardRef } from "react";
2
2
  import { Paragraph } from "@purpurds/paragraph";
3
3
  import c from "classnames/bind";
4
4