@purpurds/field-helper-text 5.11.0 → 5.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpurds/field-helper-text",
3
- "version": "5.11.0",
3
+ "version": "5.11.1",
4
4
  "license": "AGPL-3.0-only",
5
5
  "main": "./dist/field-helper-text.cjs.js",
6
6
  "types": "./dist/field-helper-text.d.ts",
@@ -15,30 +15,30 @@
15
15
  "source": "src/field-helper-text.tsx",
16
16
  "dependencies": {
17
17
  "classnames": "~2.5.0",
18
- "@purpurds/paragraph": "5.11.0",
19
- "@purpurds/tokens": "5.11.0"
18
+ "@purpurds/paragraph": "5.11.1",
19
+ "@purpurds/tokens": "5.11.1"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@rushstack/eslint-patch": "~1.10.0",
23
- "@storybook/blocks": "~7.6.0",
24
- "@storybook/react": "~7.6.0",
23
+ "@storybook/react": "^8.2.6",
24
+ "storybook": "^8.2.6",
25
25
  "@telia/base-rig": "~8.2.0",
26
26
  "@telia/react-rig": "~3.2.0",
27
27
  "@testing-library/dom": "~9.3.3",
28
28
  "@testing-library/jest-dom": "~6.4.0",
29
29
  "@testing-library/react": "~14.3.0",
30
30
  "@types/node": "20.12.12",
31
- "@types/react-dom": "~18.3.0",
32
- "@types/react": "~18.3.0",
31
+ "@types/react-dom": "^18.3.0",
32
+ "@types/react": "^18.3.3",
33
33
  "eslint-plugin-testing-library": "~6.2.0",
34
- "eslint": "~8.57.0",
34
+ "eslint": "^8.57.0",
35
35
  "jsdom": "~22.1.0",
36
36
  "lint-staged": "~10.5.3",
37
37
  "prettier": "~2.8.8",
38
- "react-dom": "~18.3.0",
39
- "react": "~18.3.0",
40
- "typescript": "~5.4.2",
41
- "vite": "~5.2.2",
38
+ "react-dom": "^18.3.1",
39
+ "react": "^18.3.1",
40
+ "typescript": "^5.5.4",
41
+ "vite": "5.3.4",
42
42
  "vitest": "~1.5.0",
43
43
  "@purpurds/component-rig": "1.0.0"
44
44
  },
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
 
3
3
  import { FieldHelperText } from "./field-helper-text";
4
4
 
5
- const meta: Meta<typeof FieldHelperText> = {
5
+ const meta = {
6
6
  title: "Components/FieldHelperText",
7
7
  component: FieldHelperText,
8
8
  parameters: {
@@ -44,7 +44,7 @@ const meta: Meta<typeof FieldHelperText> = {
44
44
  control: { type: "boolean" },
45
45
  },
46
46
  },
47
- };
47
+ } satisfies Meta<typeof FieldHelperText>;
48
48
 
49
49
  export default meta;
50
50
  type Story = StoryObj<typeof FieldHelperText>;
package/readme.mdx DELETED
@@ -1,46 +0,0 @@
1
- import { Meta, Stories, ArgTypes, Primary, Subtitle } from "@storybook/blocks";
2
-
3
- import * as FieldHelperTextStories from "./src/field-helper-text.stories";
4
- import packageInfo from "./package.json";
5
-
6
- <Meta name="Docs" title="Components/FieldHelperText" of={FieldHelperTextStories} />
7
-
8
- # FieldHelperText
9
-
10
- <Subtitle>Version {packageInfo.version}</Subtitle>
11
-
12
- This is an internal component used for form fields.
13
-
14
- ### Showcase
15
-
16
- <Primary />
17
-
18
- ### Properties
19
-
20
- <ArgTypes />
21
-
22
- ### Installation
23
-
24
- #### Via NPM
25
-
26
- Add the dependency to your consumer app like `"@purpurds/purpur": "^x.y.z"`
27
-
28
- In MyApp.tsx
29
-
30
- ```tsx
31
- import "@purpurds/purpur/styles.css";
32
- ```
33
-
34
- In MyComponent.tsx
35
-
36
- ```tsx
37
- import { FieldHelperText } from "@purpurds/purpur";
38
-
39
- export const MyComponent = () => {
40
- return (
41
- <div>
42
- <FieldHelperText {...someProps}>Some content</FieldHelperText>
43
- </div>
44
- );
45
- };
46
- ```