@simplybusiness/mobius 3.9.2 → 3.9.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 (79) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/components/Button/Button.stories.d.ts +4 -0
  3. package/dist/cjs/components/Button/Button.stories.js +18 -1
  4. package/dist/cjs/components/Button/Button.stories.js.map +1 -1
  5. package/dist/cjs/components/Segment/Segment.stories.d.ts +10 -0
  6. package/dist/cjs/components/Segment/Segment.stories.js +47 -1
  7. package/dist/cjs/components/Segment/Segment.stories.js.map +1 -1
  8. package/dist/cjs/components/Text/Text.stories.d.ts +5 -0
  9. package/dist/cjs/components/Text/Text.stories.js +9 -1
  10. package/dist/cjs/components/Text/Text.stories.js.map +1 -1
  11. package/dist/cjs/components/TextField/TextField.stories.d.ts +3 -0
  12. package/dist/cjs/components/TextField/TextField.stories.js +5 -1
  13. package/dist/cjs/components/TextField/TextField.stories.js.map +1 -1
  14. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  15. package/dist/esm/components/Button/Button.stories.js +16 -1
  16. package/dist/esm/components/Button/Button.stories.js.map +1 -1
  17. package/dist/esm/components/Segment/Segment.stories.js +38 -1
  18. package/dist/esm/components/Segment/Segment.stories.js.map +1 -1
  19. package/dist/esm/components/Text/Text.stories.js +6 -1
  20. package/dist/esm/components/Text/Text.stories.js.map +1 -1
  21. package/dist/esm/components/TextField/TextField.stories.js +4 -1
  22. package/dist/esm/components/TextField/TextField.stories.js.map +1 -1
  23. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  24. package/package.json +2 -1
  25. package/src/components/Accordion/Accordion.mdx +3 -4
  26. package/src/components/Alert/Alert.mdx +4 -8
  27. package/src/components/Box/Box.mdx +4 -8
  28. package/src/components/Breadcrumbs/Breadcrumbs.mdx +2 -2
  29. package/src/components/Button/Button.mdx +17 -79
  30. package/src/components/Button/Button.stories.tsx +27 -0
  31. package/src/components/Checkbox/Checkbox.mdx +9 -23
  32. package/src/components/Checkbox/CheckboxGroup.mdx +7 -17
  33. package/src/components/Chopin/Actions/Actions.mdx +3 -5
  34. package/src/components/Chopin/Footer/Footer.mdx +2 -2
  35. package/src/components/Chopin/Header/Header.mdx +2 -2
  36. package/src/components/Chopin/PercentageTotalsQuestion/PercentageTotalsQuestion.mdx +3 -5
  37. package/src/components/Chopin/Question/Question.mdx +2 -2
  38. package/src/components/Chopin/QuestionGroup/QuestionGroup.mdx +2 -2
  39. package/src/components/Chopin/Section/Section.mdx +2 -2
  40. package/src/components/Chopin/Steps/Steps.mdx +2 -2
  41. package/src/components/Chopin/Testimonial/Testimonial.mdx +3 -5
  42. package/src/components/Chopin/TradeSelector/TradeSelector.mdx +2 -2
  43. package/src/components/Container/Container.mdx +3 -5
  44. package/src/components/DataTable/DataTable.mdx +7 -17
  45. package/src/components/DatePicker/DatePicker.mdx +2 -2
  46. package/src/components/Divider/Divider.mdx +3 -5
  47. package/src/components/DropdownMenu/DropdownMenu.mdx +4 -8
  48. package/src/components/ErrorMessage/ErrorMessage.mdx +3 -7
  49. package/src/components/Fieldset/Fieldset.mdx +4 -8
  50. package/src/components/Flex/Flex.mdx +2 -2
  51. package/src/components/Grid/Grid.mdx +35 -69
  52. package/src/components/Icon/Icon.mdx +2 -2
  53. package/src/components/Image/Image.mdx +3 -5
  54. package/src/components/Label/Label.mdx +3 -5
  55. package/src/components/Link/Link.mdx +4 -8
  56. package/src/components/LinkButton/LinkButton.mdx +3 -5
  57. package/src/components/List/List.mdx +2 -2
  58. package/src/components/LoadingIndicator/LoadingIndicator.mdx +2 -2
  59. package/src/components/MaskedField/MaskedField.mdx +3 -5
  60. package/src/components/Modal/Modal.mdx +2 -2
  61. package/src/components/NumberField/NumberField.mdx +8 -20
  62. package/src/components/PasswordField/PasswordField.mdx +3 -5
  63. package/src/components/Progress/Progress.mdx +6 -14
  64. package/src/components/Radio/Radio.mdx +9 -23
  65. package/src/components/Radio/RadioButton.mdx +10 -26
  66. package/src/components/SVG/SVG.mdx +2 -2
  67. package/src/components/Segment/Segment.mdx +31 -240
  68. package/src/components/Segment/Segment.stories.tsx +205 -2
  69. package/src/components/Select/Select.mdx +2 -2
  70. package/src/components/Slider/Slider.mdx +5 -13
  71. package/src/components/Table/Table.mdx +4 -8
  72. package/src/components/Text/Text.mdx +6 -114
  73. package/src/components/Text/Text.stories.tsx +102 -0
  74. package/src/components/TextArea/TextArea.mdx +8 -20
  75. package/src/components/TextField/TextField.mdx +10 -35
  76. package/src/components/TextField/TextField.stories.tsx +13 -0
  77. package/src/components/Title/Title.mdx +3 -5
  78. package/src/components/VisuallyHidden/VisuallyHidden.mdx +2 -4
  79. package/src/hooks/useBreakpoint/useBreakpoint.mdx +3 -7
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simplybusiness/mobius",
3
3
  "license": "UNLICENSED",
4
- "version": "3.9.2",
4
+ "version": "3.9.3",
5
5
  "description": "Core library of Mobius react components",
6
6
  "repository": {
7
7
  "type": "git",
@@ -19,6 +19,7 @@
19
19
  ],
20
20
  "exports": {
21
21
  ".": {
22
+ "types": "./dist/mobius.d.ts",
22
23
  "require": "./dist/cjs/index.js",
23
24
  "import": "./dist/esm/index.js"
24
25
  }
@@ -1,6 +1,5 @@
1
- import { Meta, ArgsTable, Story } from "@storybook/blocks";
2
- import { Accordion, Divider, Segment, SegmentGroup } from "..";
3
- import { excludeControls } from "../../utils/excludeControls";
1
+ import { Meta, ArgTypes, Story } from "@storybook/blocks";
2
+ import { Accordion, Segment, SegmentGroup } from "..";
4
3
  import * as AccordionStories from "./Accordion.stories";
5
4
 
6
5
  <Meta of={AccordionStories} />
@@ -104,7 +103,7 @@ import { Accordion, SegmentGroup, Segment } from "@simplybusiness/mobius";
104
103
 
105
104
  ## Props
106
105
 
107
- <ArgsTable of={Accordion} />
106
+ <ArgTypes of={Accordion} />
108
107
 
109
108
  ## Component HTML Structure and Class names
110
109
 
@@ -1,4 +1,4 @@
1
- import { Meta, ArgsTable, Canvas, Story } from "@storybook/blocks";
1
+ import { Meta, ArgTypes, Canvas } from "@storybook/blocks";
2
2
  import { Alert, AlertProps } from "./Alert";
3
3
  import { excludeControls } from "../../utils/excludeControls";
4
4
  import * as AlertStories from "./Alert.stories";
@@ -25,19 +25,15 @@ import { Alert } from "@simplybusiness/mobius";
25
25
 
26
26
  ## Normal
27
27
 
28
- <Canvas>
29
- <Story of={AlertStories.Normal} />
30
- </Canvas>
28
+ <Canvas of={AlertStories.Normal} />
31
29
 
32
30
  ## With Header
33
31
 
34
- <Canvas>
35
- <Story of={AlertStories.WithHeader} />
36
- </Canvas>
32
+ <Canvas of={AlertStories.WithHeader} />
37
33
 
38
34
  ## Props
39
35
 
40
- <ArgsTable of={Alert} />
36
+ <ArgTypes of={Alert} />
41
37
 
42
38
  ## Component HTML Structure and Class names
43
39
 
@@ -1,4 +1,4 @@
1
- import { Meta, ArgsTable, Canvas, Story } from "@storybook/blocks";
1
+ import { Meta, ArgTypes, Canvas } from "@storybook/blocks";
2
2
  import { Box, BoxProps } from "./Box";
3
3
  import { Button } from "../Button";
4
4
  import { excludeControls } from "../../utils/excludeControls";
@@ -26,19 +26,15 @@ import { Box } from "@simplybusiness/mobius";
26
26
 
27
27
  ## Normal
28
28
 
29
- <Canvas>
30
- <Story of={BoxStories.Normal} />
31
- </Canvas>
29
+ <Canvas of={BoxStories.Normal} />
32
30
 
33
31
  ## Custom element
34
32
 
35
- <Canvas>
36
- <Story of={BoxStories.CustomElement} />
37
- </Canvas>
33
+ <Canvas of={BoxStories.CustomElement} />
38
34
 
39
35
  ## Props
40
36
 
41
- <ArgsTable of={Box} />
37
+ <ArgTypes of={Box} />
42
38
 
43
39
  ## Component HTML Structure and Class names
44
40
 
@@ -1,4 +1,4 @@
1
- import { Meta, ArgsTable, Story } from "@storybook/blocks";
1
+ import { Meta, ArgTypes, Story } from "@storybook/blocks";
2
2
  import { Breadcrumbs } from "./Breadcrumbs";
3
3
  import { BreadcrumbItem } from "./BreadcrumbItem";
4
4
  import { Link } from "../Link";
@@ -79,7 +79,7 @@ import { Breadcrumbs, BreadcrumbItem, Link } from "@simplybusiness/mobius";
79
79
 
80
80
  ## Props
81
81
 
82
- <ArgsTable of={Breadcrumbs} />
82
+ <ArgTypes of={Breadcrumbs} />
83
83
 
84
84
  ## Component HTML Structure and Class names
85
85
 
@@ -1,5 +1,5 @@
1
1
  import { useState } from "react";
2
- import { Meta, ArgsTable, Canvas, Source, Story } from "@storybook/blocks";
2
+ import { Meta, ArgTypes, Canvas, Story } from "@storybook/blocks";
3
3
  import { Button } from "./Button";
4
4
  import { excludeControls } from "../../utils/excludeControls";
5
5
  import * as ButtonStories from "./Button.stories";
@@ -26,63 +26,43 @@ import { Button } from "@simplybusiness/mobius";
26
26
 
27
27
  ## Normal
28
28
 
29
- <Canvas>
30
- <Story of={ButtonStories.Normal} />
31
- </Canvas>
29
+ <Story of={ButtonStories.Normal} />
32
30
 
33
31
  ## Secondary
34
32
 
35
- <Canvas>
36
- <Story of={ButtonStories.Secondary} />
37
- </Canvas>
33
+ <Story of={ButtonStories.Secondary} />
38
34
 
39
35
  ## Ghost
40
36
 
41
- <Canvas>
42
- <Story of={ButtonStories.Ghost} />
43
- </Canvas>
37
+ <Story of={ButtonStories.Ghost} />
44
38
 
45
39
  ## Basic
46
40
 
47
- <Canvas>
48
- <Story of={ButtonStories.Basic} />
49
- </Canvas>
41
+ <Story of={ButtonStories.Basic} />
50
42
 
51
43
  ## Large
52
44
 
53
- <Canvas>
54
- <Story of={ButtonStories.Large} />
55
- </Canvas>
45
+ <Story of={ButtonStories.Large} />
56
46
 
57
47
  ## Link
58
48
 
59
- <Canvas>
60
- <Story of={ButtonStories.Link} />
61
- </Canvas>
49
+ <Story of={ButtonStories.Link} />
62
50
 
63
51
  ## Loading
64
52
 
65
- <Canvas>
66
- <Story of={ButtonStories.Loading} />
67
- </Canvas>
53
+ <Story of={ButtonStories.Loading} />
68
54
 
69
55
  ## Success
70
56
 
71
- <Canvas>
72
- <Story of={ButtonStories.Success} />
73
- </Canvas>
57
+ <Story of={ButtonStories.Success} />
74
58
 
75
59
  ## Disabled
76
60
 
77
- <Canvas>
78
- <Story of={ButtonStories.Disabled} />
79
- </Canvas>
61
+ <Story of={ButtonStories.Disabled} />
80
62
 
81
63
  ## With Icon
82
64
 
83
- <Canvas>
84
- <Story of={ButtonStories.WithIcon} />
85
- </Canvas>
65
+ <Story of={ButtonStories.WithIcon} />
86
66
 
87
67
  ## Themed
88
68
 
@@ -108,66 +88,26 @@ When the button contains no text content (eg. when it only shows an icon), a val
108
88
 
109
89
  Button can be interacted with via keyboard, mouse and touch gestures. All these interactions are handled by the `onPress` prop.
110
90
 
111
- export const Counter = () => {
112
- let [count, setCount] = useState(0);
113
- return (
114
- <Button onPress={() => setCount(c => c + 1)}>Pressed {count} times</Button>
115
- );
116
- };
117
-
118
91
  ```tsx
119
92
  const Counter = () => {
120
- let [count, setCount] = useState(0);
93
+ const [count, setCount] = useState(0);
121
94
  return (
122
95
  <Button onPress={() => setCount(c => c + 1)}>Pressed {count} times</Button>
123
96
  );
124
97
  };
125
98
  ```
126
99
 
127
- <Canvas withSource="none">
128
- <Counter />
129
- </Canvas>
130
-
131
- export const PressButton = () => {
132
- let [pressLogs, setPressLogs] = useState([]);
133
- const log = e => {
134
- setPressLogs(pressLogs => [...pressLogs.slice(-5), e]);
135
- };
136
- return (
137
- <div>
138
- <Button
139
- onPressUp={() => log("onPressUp")}
140
- onPressEnd={() => log("onPressEnd")}
141
- onPress={() => log("onPress")}
142
- onPressStart={() => log("onPressStart")}
143
- >
144
- Press me
145
- </Button>
146
- <ul>
147
- {pressLogs.map((pressLog, i) => (
148
- <li key={i}>{pressLog}</li>
149
- ))}
150
- </ul>
151
- </div>
152
- );
153
- };
100
+ <ButtonStories.Counter />
154
101
 
155
102
  ```tsx
156
103
  const PressButton = () => {
157
- let [pressLogs, setPressLogs] = useState([]);
104
+ const [pressLogs, setPressLogs] = useState([]);
158
105
  const log = e => {
159
106
  setPressLogs(pressLogs => [...pressLogs.slice(-5), e]);
160
107
  };
161
108
  return (
162
109
  <div>
163
- <Button
164
- onPressUp={() => log("onPressUp")}
165
- onPressEnd={() => log("onPressEnd")}
166
- onPress={() => log("onPress")}
167
- onPressStart={() => log("onPressStart")}
168
- >
169
- Press me
170
- </Button>
110
+ <Button onPress={() => log("onPress")}>Press me</Button>
171
111
  <ul>
172
112
  {pressLogs.map((pressLog, i) => (
173
113
  <li key={i}>{pressLog}</li>
@@ -178,13 +118,11 @@ const PressButton = () => {
178
118
  };
179
119
  ```
180
120
 
181
- <Canvas withSource="none">
182
- <PressButton />
183
- </Canvas>
121
+ <ButtonStories.PressButton />
184
122
 
185
123
  ## Props
186
124
 
187
- <ArgsTable of={Button} />
125
+ <ArgTypes of={Button} />
188
126
 
189
127
  ## Component HTML Structure and Class names
190
128
 
@@ -1,3 +1,4 @@
1
+ import { useState } from "react";
1
2
  import type { Meta } from "@storybook/react";
2
3
  import { Button, ButtonProps } from "./Button";
3
4
  import { excludeControls } from "../../utils/excludeControls";
@@ -5,6 +6,7 @@ import { excludeControls } from "../../utils/excludeControls";
5
6
  export default {
6
7
  title: "Components/Button",
7
8
  component: Button,
9
+ excludeStories: ["Counter", "PressButton"],
8
10
  argTypes: {
9
11
  icon: {
10
12
  options: ["", "menu", "rightArrow", "leftArrow", "dropdown", "home"],
@@ -223,3 +225,28 @@ export const Themed: Meta<typeof Button> = {
223
225
  type: "button",
224
226
  },
225
227
  };
228
+
229
+ export const Counter = () => {
230
+ const [count, setCount] = useState(0);
231
+ return (
232
+ <Button onPress={() => setCount(c => c + 1)}>Pressed {count} times</Button>
233
+ );
234
+ };
235
+
236
+ export const PressButton = () => {
237
+ const [pressLogs, setPressLogs] = useState<[] | string[]>([]);
238
+ const log = (e: string) => {
239
+ setPressLogs(logs => [...logs.slice(-5), e]);
240
+ };
241
+ return (
242
+ <div>
243
+ <Button onPress={() => log("onPress")}>Press me</Button>
244
+ <ul>
245
+ {pressLogs.map((pressLog, i) => (
246
+ // eslint-disable-next-line react/no-array-index-key
247
+ <li key={i}>{pressLog}</li>
248
+ ))}
249
+ </ul>
250
+ </div>
251
+ );
252
+ };
@@ -1,5 +1,5 @@
1
1
  import { useState } from "react";
2
- import { Meta, ArgsTable, Canvas, Story } from "@storybook/blocks";
2
+ import { Meta, ArgTypes, Canvas } from "@storybook/blocks";
3
3
  import { Checkbox } from "./Checkbox";
4
4
  import { Box } from "../Box";
5
5
  import { excludeControls } from "../../utils/excludeControls";
@@ -31,9 +31,7 @@ For this component appear selected use `defaultSelected` boolean prop.
31
31
 
32
32
  This will allow user to change the value. Alternatively, see _Controlled Value_ example.
33
33
 
34
- <Canvas>
35
- <Story of={CheckboxStories.Normal} />
36
- </Canvas>
34
+ <Canvas of={CheckboxStories.Normal} />
37
35
 
38
36
  ### Controlled Value
39
37
 
@@ -41,39 +39,27 @@ You may want to make this component appear selected based on some conditional
41
39
 
42
40
  logic in another component. In this instance you can pass `isSelected` boolean prop.
43
41
 
44
- <Canvas>
45
- <Story of={CheckboxStories.ControlledValue} />
46
- </Canvas>
42
+ <Canvas of={CheckboxStories.ControlledValue} />
47
43
 
48
44
  ### Disabled
49
45
 
50
- <Canvas>
51
- <Story of={CheckboxStories.Disabled} />
52
- </Canvas>
46
+ <Canvas of={CheckboxStories.Disabled} />
53
47
 
54
48
  ### Indeterminate
55
49
 
56
- <Canvas>
57
- <Story of={CheckboxStories.Indeterminate} />
58
- </Canvas>
50
+ <Canvas of={CheckboxStories.Indeterminate} />
59
51
 
60
52
  ### Valid
61
53
 
62
- <Canvas>
63
- <Story of={CheckboxStories.Valid} />
64
- </Canvas>
54
+ <Canvas of={CheckboxStories.Valid} />
65
55
 
66
56
  ### Invalid
67
57
 
68
- <Canvas>
69
- <Story of={CheckboxStories.Invalid} />
70
- </Canvas>
58
+ <Canvas of={CheckboxStories.Invalid} />
71
59
 
72
60
  ### Long label
73
61
 
74
- <Canvas>
75
- <Story of={CheckboxStories.LongLabel} />
76
- </Canvas>
62
+ <Canvas of={CheckboxStories.LongLabel} />
77
63
 
78
64
  ## Accessibility
79
65
 
@@ -85,7 +71,7 @@ The `onChange` prop can be used to listen to changes of the selected state of th
85
71
 
86
72
  ## Props
87
73
 
88
- <ArgsTable of={Checkbox} />
74
+ <ArgTypes of={Checkbox} />
89
75
 
90
76
  ## Component HTML Structure and Class names
91
77
 
@@ -1,5 +1,5 @@
1
1
  import { useState } from "react";
2
- import { Meta, ArgsTable, Canvas, Story } from "@storybook/blocks";
2
+ import { Meta, ArgTypes, Canvas } from "@storybook/blocks";
3
3
  import { CheckboxGroup, Checkbox } from ".";
4
4
  import { Box } from "../Box";
5
5
  import { excludeControls } from "../../utils/excludeControls";
@@ -33,9 +33,7 @@ For example, `<CheckboxGroup defaultValue={['option1', 'option3']}>`
33
33
 
34
34
  This will allow user to change the value. Alternatively, see _Controlled Value_ example.
35
35
 
36
- <Canvas>
37
- <Story of={CheckboxGroupStories.Normal} />
38
- </Canvas>
36
+ <Canvas of={CheckboxGroupStories.Normal} />
39
37
 
40
38
  ### Controlled Value
41
39
 
@@ -45,27 +43,19 @@ logic in another component.
45
43
  You can use `value` prop which expects an array. To make `Option 2` and `Option 3`
46
44
  appear selected use `<CheckboxGroup value={['option2', 'option3']}>`
47
45
 
48
- <Canvas>
49
- <Story of={CheckboxGroupStories.ControlledValue} />
50
- </Canvas>
46
+ <Canvas of={CheckboxGroupStories.ControlledValue} />
51
47
 
52
48
  ### Disabled
53
49
 
54
- <Canvas>
55
- <Story of={CheckboxGroupStories.Disabled} />
56
- </Canvas>
50
+ <Canvas of={CheckboxGroupStories.Disabled} />
57
51
 
58
52
  ### Valid
59
53
 
60
- <Canvas>
61
- <Story of={CheckboxGroupStories.Valid} />
62
- </Canvas>
54
+ <Canvas of={CheckboxGroupStories.Valid} />
63
55
 
64
56
  ### Invalid
65
57
 
66
- <Canvas>
67
- <Story of={CheckboxGroupStories.Invalid} />
68
- </Canvas>
58
+ <Canvas of={CheckboxGroupStories.Invalid} />
69
59
 
70
60
  ## Accessibility
71
61
 
@@ -85,7 +75,7 @@ The `onChange` prop can be used to listen to changes of the selected state of th
85
75
 
86
76
  ## Props
87
77
 
88
- <ArgsTable of={CheckboxGroup} />
78
+ <ArgTypes of={CheckboxGroup} />
89
79
 
90
80
  ## Component HTML Structure and Class names
91
81
 
@@ -1,4 +1,4 @@
1
- import { Meta, ArgsTable, Canvas, Story } from "@storybook/blocks";
1
+ import { Meta, ArgTypes, Canvas, Story } from "@storybook/blocks";
2
2
  import { Actions } from ".";
3
3
  import { ThemeContext } from "../../../contexts";
4
4
  import { excludeControls } from "../../../utils/excludeControls";
@@ -81,9 +81,7 @@ import { Chopin } from "@simplybusiness/mobius";
81
81
 
82
82
  ## Disabled Actions
83
83
 
84
- <Canvas>
85
- <Story of={ActionsStories.DisabledActions} />
86
- </Canvas>
84
+ <Canvas of={ActionsStories.DisabledActions} />
87
85
 
88
86
  {/* prettier-ignore */}
89
87
  ```jsx
@@ -103,7 +101,7 @@ import { Chopin } from "@simplybusiness/mobius";
103
101
 
104
102
  ## Props
105
103
 
106
- <ArgsTable of={Actions} />
104
+ <ArgTypes of={Actions} />
107
105
 
108
106
  ## Component HTML Structure and Class names
109
107
 
@@ -1,4 +1,4 @@
1
- import { Meta, ArgsTable, Canvas, Story } from "@storybook/blocks";
1
+ import { Meta, ArgTypes, Canvas, Story } from "@storybook/blocks";
2
2
  import { Footer } from ".";
3
3
  import { ThemeContext } from "../../../contexts";
4
4
  import { excludeControls } from "../../../utils/excludeControls";
@@ -106,7 +106,7 @@ import { Chopin } from "@simplybusiness/mobius";
106
106
 
107
107
  ## Props
108
108
 
109
- <ArgsTable of={Footer} />
109
+ <ArgTypes of={Footer} />
110
110
 
111
111
  ## Component HTML Structure and Class names
112
112
 
@@ -1,4 +1,4 @@
1
- import { Meta, ArgsTable, Canvas, Story } from "@storybook/blocks";
1
+ import { Meta, ArgTypes, Canvas, Story } from "@storybook/blocks";
2
2
  import { Header } from ".";
3
3
  import { excludeControls } from "../../../utils/excludeControls";
4
4
  import * as HeaderStories from "./Header.stories";
@@ -45,7 +45,7 @@ import { Chopin } from "@simplybusiness/mobius";
45
45
 
46
46
  ## Props
47
47
 
48
- <ArgsTable of={Header} />
48
+ <ArgTypes of={Header} />
49
49
 
50
50
  ## Component HTML Structure and Class names
51
51
 
@@ -1,5 +1,5 @@
1
1
  import { useContext, useEffect } from "react";
2
- import { Meta, ArgsTable, Canvas, Story } from "@storybook/blocks";
2
+ import { Meta, ArgTypes, Canvas } from "@storybook/blocks";
3
3
  import { Text } from "../../Text";
4
4
  import { ThemeProvider, ThemeContext } from "../../../contexts";
5
5
  import {
@@ -42,13 +42,11 @@ import { Chopin } from "@simplybusiness/mobius";
42
42
 
43
43
  ## Normal
44
44
 
45
- <Canvas>
46
- <Story of={PercentageTotalsQuestionStories.Normal} />
47
- </Canvas>
45
+ <Canvas of={PercentageTotalsQuestionStories.Normal} />
48
46
 
49
47
  ## Props
50
48
 
51
- <ArgsTable of={PercentageTotalsQuestion} />
49
+ <ArgTypes of={PercentageTotalsQuestion} />
52
50
 
53
51
  ## Component HTML Structure and Class names
54
52
 
@@ -1,5 +1,5 @@
1
1
  import { useState } from "react";
2
- import { Meta, ArgsTable, Canvas, Story } from "@storybook/blocks";
2
+ import { Meta, ArgTypes, Canvas, Story } from "@storybook/blocks";
3
3
  import { ThemeContext } from "../../../contexts";
4
4
  import { Question } from "./Question";
5
5
  import { Box } from "../../Box";
@@ -205,7 +205,7 @@ import { Chopin } from "@simplybusiness/mobius";
205
205
 
206
206
  ## Props
207
207
 
208
- <ArgsTable of={Question} />
208
+ <ArgTypes of={Question} />
209
209
 
210
210
  ## Component HTML Structure and Class names
211
211
 
@@ -1,5 +1,5 @@
1
1
  import { useContext, useEffect } from "react";
2
- import { Meta, ArgsTable, Canvas, Story } from "@storybook/blocks";
2
+ import { Meta, ArgTypes, Canvas, Story } from "@storybook/blocks";
3
3
  import { ThemeProvider, ThemeContext } from "../../../contexts";
4
4
  import { QuestionGroup, QuestionGroupProps } from "./QuestionGroup";
5
5
  import { Question } from "../Question";
@@ -62,7 +62,7 @@ import { Chopin, RadioGroup, RadioButton } from "@simplybusiness/mobius";
62
62
 
63
63
  ## Props
64
64
 
65
- <ArgsTable of={QuestionGroup} />
65
+ <ArgTypes of={QuestionGroup} />
66
66
 
67
67
  ## Component HTML Structure and Class names
68
68
 
@@ -1,4 +1,4 @@
1
- import { Meta, ArgsTable, Canvas, Story } from "@storybook/blocks";
1
+ import { Meta, ArgTypes, Canvas, Story } from "@storybook/blocks";
2
2
  import { Text } from "../../Text";
3
3
  import { Section, SectionProps } from "./Section";
4
4
  import { excludeControls } from "../../../utils/excludeControls";
@@ -39,7 +39,7 @@ import { Chopin, Text } from "@simplybusiness/mobius";
39
39
 
40
40
  ## Props
41
41
 
42
- <ArgsTable of={Section} />
42
+ <ArgTypes of={Section} />
43
43
 
44
44
  ## Component HTML Structure and Class names
45
45
 
@@ -1,4 +1,4 @@
1
- import { Meta, ArgsTable, Canvas, Story } from "@storybook/blocks";
1
+ import { Meta, ArgTypes, Canvas, Story } from "@storybook/blocks";
2
2
  import { Steps, StepItem } from ".";
3
3
  import { excludeControls } from "../../../utils/excludeControls";
4
4
  import * as StepsStories from "./Steps.stories";
@@ -41,7 +41,7 @@ import { Chopin } from "@simplybusiness/mobius";
41
41
 
42
42
  ## Props
43
43
 
44
- <ArgsTable of={Steps} />
44
+ <ArgTypes of={Steps} />
45
45
 
46
46
  ## Component HTML Structure and Class names
47
47
 
@@ -1,4 +1,4 @@
1
- import { Meta, ArgsTable, Canvas, Story } from "@storybook/blocks";
1
+ import { Meta, ArgTypes, Canvas } from "@storybook/blocks";
2
2
  import { Testimonial, TestimonialProps } from "./Testimonial";
3
3
  import * as TestimonialStories from "./Testimonial.stories";
4
4
 
@@ -22,13 +22,11 @@ import { Testimonial } from "@simplybusiness/mobius";
22
22
 
23
23
  ## Normal
24
24
 
25
- <Canvas>
26
- <Story of={TestimonialStories.Normal} />
27
- </Canvas>
25
+ <Canvas of={TestimonialStories.Normal} />
28
26
 
29
27
  ## Props
30
28
 
31
- <ArgsTable of={Testimonial} />
29
+ <ArgTypes of={Testimonial} />
32
30
 
33
31
  ## Component HTML Structure and Class names
34
32
 
@@ -1,4 +1,4 @@
1
- import { Meta, ArgsTable, Canvas, Story } from "@storybook/blocks";
1
+ import { Meta, ArgTypes, Canvas, Story } from "@storybook/blocks";
2
2
  import { TradeSelector, TradeSelectorProps } from ".";
3
3
  import { excludeControls } from "../../../utils/excludeControls";
4
4
  import * as TradeSelectorStories from "./TradeSelector.stories";
@@ -93,7 +93,7 @@ In order to hide `input` and `description` you can use `hideLabel` prop as follo
93
93
 
94
94
  ## Props
95
95
 
96
- <ArgsTable of={TradeSelector} />
96
+ <ArgTypes of={TradeSelector} />
97
97
 
98
98
  ## Component HTML Structure and Class names
99
99
 
@@ -1,4 +1,4 @@
1
- import { Meta, ArgsTable, Canvas, Story } from "@storybook/blocks";
1
+ import { Meta, ArgTypes, Canvas } from "@storybook/blocks";
2
2
  import { Container } from "./Container";
3
3
  import { excludeControls } from "../../utils/excludeControls";
4
4
  import * as ContainerStories from "./Container.stories";
@@ -27,13 +27,11 @@ import { Container } from "@simplybusiness/mobius";
27
27
 
28
28
  ### Normal
29
29
 
30
- <Canvas>
31
- <Story of={ContainerStories.Normal} />
32
- </Canvas>
30
+ <Canvas of={ContainerStories.Normal} />
33
31
 
34
32
  ## Props
35
33
 
36
- <ArgsTable of={Container} />
34
+ <ArgTypes of={Container} />
37
35
 
38
36
  ## Component HTML Structure and Class names
39
37