Commit 2da48ca
Support HTML in legend, label and error props, prepare beta release (#294)
* Update FormTypes.ts
This will hopefully fix that the hint text can be string as well as an element (which is supported).
* review update
* Update src/components/form-elements/error-message/ErrorMessage.tsx
Co-authored-by: Colin Rotherham <[email protected]>
* Update stories/Form Elements/Fieldset.stories.tsx
Co-authored-by: Colin Rotherham <[email protected]>
* review update
* Update stories/Form Elements/Fieldset.stories.tsx
Co-authored-by: Colin Rotherham <[email protected]>
* Update stories/Form Elements/ErrorMessage.stories.tsx
Co-authored-by: Colin Rotherham <[email protected]>
* review update
* Lint
* review change
* lint
* bumping
* snapshot
* review updates
* failed conflict fix (I do not think I will use GitHub in the future to fix merge conflicts)
* Remove HTML examples
* Prefer `string | ReactElement` to avoid null, boolean etc
* Add simple snapshot tests for new types
* Add examples with captions
* Make sure `headingLevel` automatically assumes `isPageHeading`
* Prepare beta release
---------
Co-authored-by: Colin Rotherham <[email protected]>1 parent 409d74e commit 2da48ca
File tree
20 files changed
+1256
-447
lines changed- src
- components/form-elements
- checkboxes/__tests__
- __snapshots__
- date-input
- __tests__
- __snapshots__
- components
- error-message
- label
- __tests__
- legend
- __tests__
- radios/__tests__
- __snapshots__
- text-input/__tests__
- __snapshots__
- util/types
- stories/Form Elements
20 files changed
+1256
-447
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
3 | 12 | | |
4 | 13 | | |
5 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 74 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
| |||
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
23 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
24 | 82 | | |
25 | 83 | | |
26 | 84 | | |
| |||
33 | 91 | | |
34 | 92 | | |
35 | 93 | | |
36 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
37 | 101 | | |
38 | 102 | | |
39 | 103 | | |
| |||
50 | 114 | | |
51 | 115 | | |
52 | 116 | | |
53 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
54 | 124 | | |
55 | 125 | | |
56 | 126 | | |
| |||
0 commit comments