@raspberrypifoundation/design-system-react 2.7.1 → 2.7.3

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.
Files changed (58) hide show
  1. package/CHANGELOG.md +15 -3
  2. package/dist/design-system-react.js +676 -782
  3. package/dist/design-system-react.umd.cjs +9 -9
  4. package/dist/types/lib/main.d.ts +7 -0
  5. package/dist/types/lib/main.d.ts.map +1 -1
  6. package/dist/types/src/components/Form/CheckboxInput/CheckboxInput.types.d.ts +1 -11
  7. package/dist/types/src/components/Form/CheckboxInput/CheckboxInput.types.d.ts.map +1 -1
  8. package/dist/types/src/components/Form/CheckboxInput/index.d.ts +1 -1
  9. package/dist/types/src/components/Form/CheckboxInput/index.d.ts.map +1 -1
  10. package/dist/types/src/components/Form/Fieldset/FieldSet.types.d.ts +16 -0
  11. package/dist/types/src/components/Form/Fieldset/FieldSet.types.d.ts.map +1 -0
  12. package/dist/types/src/components/Form/Fieldset/Fieldset.spec.d.ts.map +1 -1
  13. package/dist/types/src/components/Form/Fieldset/index.d.ts +3 -19
  14. package/dist/types/src/components/Form/Fieldset/index.d.ts.map +1 -1
  15. package/dist/types/src/components/Form/InputField/InputField.types.d.ts +16 -0
  16. package/dist/types/src/components/Form/InputField/InputField.types.d.ts.map +1 -0
  17. package/dist/types/src/components/Form/InputField/index.d.ts +3 -19
  18. package/dist/types/src/components/Form/InputField/index.d.ts.map +1 -1
  19. package/dist/types/src/components/Form/InputLabel/InputLabel.spec.d.ts.map +1 -1
  20. package/dist/types/src/components/Form/InputLabel/InputLabel.types.d.ts +11 -0
  21. package/dist/types/src/components/Form/InputLabel/InputLabel.types.d.ts.map +1 -0
  22. package/dist/types/src/components/Form/InputLabel/index.d.ts +3 -15
  23. package/dist/types/src/components/Form/InputLabel/index.d.ts.map +1 -1
  24. package/dist/types/src/components/Form/RadioInput/RadioInput.spec.d.ts.map +1 -1
  25. package/dist/types/src/components/Form/RadioInput/RadioInput.types.d.ts +11 -0
  26. package/dist/types/src/components/Form/RadioInput/RadioInput.types.d.ts.map +1 -0
  27. package/dist/types/src/components/Form/RadioInput/index.d.ts +3 -23
  28. package/dist/types/src/components/Form/RadioInput/index.d.ts.map +1 -1
  29. package/dist/types/src/components/Form/SearchInput/SearchInput.types.d.ts +1 -1
  30. package/dist/types/src/components/Form/SearchInput/SearchInput.types.d.ts.map +1 -1
  31. package/dist/types/src/components/Form/SelectInput/SelectInput.spec.d.ts.map +1 -1
  32. package/dist/types/src/components/Form/SelectInput/SelectInput.types.d.ts +24 -0
  33. package/dist/types/src/components/Form/SelectInput/SelectInput.types.d.ts.map +1 -0
  34. package/dist/types/src/components/Form/SelectInput/index.d.ts +4 -29
  35. package/dist/types/src/components/Form/SelectInput/index.d.ts.map +1 -1
  36. package/dist/types/src/components/Form/TextInput/TextInput.spec.d.ts.map +1 -1
  37. package/dist/types/src/components/Form/TextInput/TextInput.types.d.ts +15 -0
  38. package/dist/types/src/components/Form/TextInput/TextInput.types.d.ts.map +1 -0
  39. package/dist/types/src/components/Form/TextInput/index.d.ts +4 -25
  40. package/dist/types/src/components/Form/TextInput/index.d.ts.map +1 -1
  41. package/dist/types/src/components/Form/TextareaInput/TextareaInput.spec.d.ts.map +1 -1
  42. package/dist/types/src/components/Form/TextareaInput/TextareaInput.types.d.ts +23 -0
  43. package/dist/types/src/components/Form/TextareaInput/TextareaInput.types.d.ts.map +1 -0
  44. package/dist/types/src/components/Form/TextareaInput/index.d.ts +3 -27
  45. package/dist/types/src/components/Form/TextareaInput/index.d.ts.map +1 -1
  46. package/dist/types/src/stories/forms/Fieldset.stories.d.ts +17 -55
  47. package/dist/types/src/stories/forms/Fieldset.stories.d.ts.map +1 -1
  48. package/dist/types/src/stories/forms/InputLabel.stories.d.ts +13 -24
  49. package/dist/types/src/stories/forms/InputLabel.stories.d.ts.map +1 -1
  50. package/dist/types/src/stories/forms/RadioInput.stories.d.ts +31 -49
  51. package/dist/types/src/stories/forms/RadioInput.stories.d.ts.map +1 -1
  52. package/dist/types/src/stories/forms/SelectInput.stories.d.ts +25 -51
  53. package/dist/types/src/stories/forms/SelectInput.stories.d.ts.map +1 -1
  54. package/dist/types/src/stories/forms/TextInput.stories.d.ts +21 -36
  55. package/dist/types/src/stories/forms/TextInput.stories.d.ts.map +1 -1
  56. package/dist/types/src/stories/forms/TextareaInput.stories.d.ts +25 -51
  57. package/dist/types/src/stories/forms/TextareaInput.stories.d.ts.map +1 -1
  58. package/package.json +2 -1
@@ -1,52 +1,26 @@
1
- export default options;
2
- export namespace Default {
3
- let args: {};
4
- }
5
- export namespace Error {
6
- export namespace args_1 {
7
- let error: string;
8
- let value: string;
9
- }
10
- export { args_1 as args };
11
- }
12
- export namespace FullWidth {
13
- export namespace args_2 {
14
- let fullWidth: boolean;
15
- }
16
- export { args_2 as args };
17
- }
18
- export namespace Disabled {
19
- export namespace args_3 {
20
- let disabled: boolean;
21
- }
22
- export { args_3 as args };
23
- }
24
- export namespace ReadOnly {
25
- export namespace args_4 {
26
- let readOnly: boolean;
27
- }
28
- export { args_4 as args };
29
- }
30
- declare namespace options {
31
- export let title: string;
32
- export { TextareaInput as component };
33
- export let tags: string[];
34
- export namespace args_5 {
35
- export let id: string;
36
- export let name: string;
37
- let disabled_1: boolean;
38
- export { disabled_1 as disabled };
39
- let readOnly_1: boolean;
40
- export { readOnly_1 as readOnly };
41
- let error_1: null;
42
- export { error_1 as error };
43
- let fullWidth_1: boolean;
44
- export { fullWidth_1 as fullWidth };
45
- export let hint: string;
46
- export let label: string;
47
- let value_1: string;
48
- export { value_1 as value };
49
- }
50
- export { args_5 as args };
51
- }
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { TextareaInput } from "../../components/Form/TextareaInput";
3
+ declare const meta: Meta<typeof TextareaInput>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof TextareaInput>;
6
+ /**
7
+ * Text inputs are a primary way of receiving text input from users.
8
+ */
9
+ export declare const Default: Story;
10
+ /**
11
+ * Providing an error string highlights an issue with the field
12
+ */
13
+ export declare const Error: Story;
14
+ /**
15
+ * fullWidth makes the input stretch across the available space
16
+ */
17
+ export declare const FullWidth: Story;
18
+ /**
19
+ * disabled makes the input greyed out
20
+ */
21
+ export declare const Disabled: Story;
22
+ /**
23
+ * readOnly makes the input greyed out
24
+ */
25
+ export declare const ReadOnly: Story;
52
26
  //# sourceMappingURL=TextareaInput.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextareaInput.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/forms/TextareaInput.stories.jsx"],"names":[],"mappings":""}
1
+ {"version":3,"file":"TextareaInput.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/forms/TextareaInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAepC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raspberrypifoundation/design-system-react",
3
- "version": "2.7.1",
3
+ "version": "2.7.3",
4
4
  "type": "module",
5
5
  "main": "./dist/design-system-react.umd.cjs",
6
6
  "module": "./dist/design-system-react.js",
@@ -60,6 +60,7 @@
60
60
  "@types/node": "^24.3.0",
61
61
  "@types/react": "^18.3.12",
62
62
  "@types/react-dom": "^18.3.1",
63
+ "@types/testing-library__jest-dom": "^6.0.0",
63
64
  "@typescript-eslint/eslint-plugin": "^8.41.0",
64
65
  "@typescript-eslint/parser": "^8.41.0",
65
66
  "@vitejs/plugin-react": "^4.3.4",