@dktunited-techoff/techoff-suite-ui 0.8.1 → 0.8.2

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.
@@ -22,20 +22,19 @@ The checkboxes are applied when users can select all, several, or none of the op
22
22
  <Story
23
23
  name="Overview"
24
24
  args={{
25
+ children: [
26
+ <CheckboxLabel>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CheckboxLabel>,
27
+ <CheckboxCaption>
28
+ auctor nisl justo, sed posuere est dignissim nec. Integer ultricies, metus ac imperdiet ullamcorper, est justo
29
+ viverra nisl, in posuere dui urna eget quam.
30
+ </CheckboxCaption>,
31
+ ],
25
32
  checked: false,
26
33
  onChange: () => {},
27
34
  }}
28
35
  argTypes={checkboxArgTypes}
29
36
  >
30
- {args => (
31
- <Checkbox {...args}>
32
- <CheckboxLabel>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CheckboxLabel>,
33
- <CheckboxCaption>
34
- auctor nisl justo, sed posuere est dignissim nec. Integer ultricies, metus ac imperdiet ullamcorper, est justo
35
- viverra nisl, in posuere dui urna eget quam.
36
- </CheckboxCaption>
37
- </Checkbox>
38
- )}
37
+ {args => <Checkbox {...args}>{args.children}</Checkbox>}
39
38
  </Story>
40
39
  </Canvas>
41
40
 
@@ -22,20 +22,19 @@ The checkboxes are applied when users can select all, several, or none of the op
22
22
  <Story
23
23
  name="Overview"
24
24
  args={{
25
+ children: [
26
+ <CheckboxLabel>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CheckboxLabel>,
27
+ <CheckboxCaption>
28
+ auctor nisl justo, sed posuere est dignissim nec. Integer ultricies, metus ac imperdiet ullamcorper, est justo
29
+ viverra nisl, in posuere dui urna eget quam.
30
+ </CheckboxCaption>,
31
+ ],
25
32
  checked: false,
26
33
  onChange: () => {},
27
34
  }}
28
35
  argTypes={checkboxArgTypes}
29
36
  >
30
- {args => (
31
- <Checkbox {...args}>
32
- <CheckboxLabel>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CheckboxLabel>,
33
- <CheckboxCaption>
34
- auctor nisl justo, sed posuere est dignissim nec. Integer ultricies, metus ac imperdiet ullamcorper, est justo
35
- viverra nisl, in posuere dui urna eget quam.
36
- </CheckboxCaption>
37
- </Checkbox>
38
- )}
37
+ {args => <Checkbox {...args}>{args.children}</Checkbox>}
39
38
  </Story>
40
39
  </Canvas>
41
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dktunited-techoff/techoff-suite-ui",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "main": "lib/index.js",
5
5
  "types": "./lib",
6
6
  "module": "esm/index.js",
@@ -22,20 +22,19 @@ The checkboxes are applied when users can select all, several, or none of the op
22
22
  <Story
23
23
  name="Overview"
24
24
  args={{
25
+ children: [
26
+ <CheckboxLabel>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CheckboxLabel>,
27
+ <CheckboxCaption>
28
+ auctor nisl justo, sed posuere est dignissim nec. Integer ultricies, metus ac imperdiet ullamcorper, est justo
29
+ viverra nisl, in posuere dui urna eget quam.
30
+ </CheckboxCaption>,
31
+ ],
25
32
  checked: false,
26
33
  onChange: () => {},
27
34
  }}
28
35
  argTypes={checkboxArgTypes}
29
36
  >
30
- {args => (
31
- <Checkbox {...args}>
32
- <CheckboxLabel>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CheckboxLabel>,
33
- <CheckboxCaption>
34
- auctor nisl justo, sed posuere est dignissim nec. Integer ultricies, metus ac imperdiet ullamcorper, est justo
35
- viverra nisl, in posuere dui urna eget quam.
36
- </CheckboxCaption>
37
- </Checkbox>
38
- )}
37
+ {args => <Checkbox {...args}>{args.children}</Checkbox>}
39
38
  </Story>
40
39
  </Canvas>
41
40