playbook_ui_docs 14.14.0.pre.alpha.pbntr500currencykithandlingofnullvalues6275 → 14.14.0.pre.alpha.pbntr500currencykithandlingofnullvalues6311

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c97cb9a2afa439d52f6bfcbe7731a80a98ae878c2c26480853e7d4d66a78486
4
- data.tar.gz: 5bb13f8f8073f50146bd81e4cf18c12e788da8c59de846a19e47afd02293ca1d
3
+ metadata.gz: c23ba513af3d503a6096d925f02849acd9c0c4eba824aae6ebf47667194f7638
4
+ data.tar.gz: 8d9a4b3086103760448722f2994ac12c3c3fbb45f752c494b09c066b9375f9ea
5
5
  SHA512:
6
- metadata.gz: 9c9d0672b8f9c1c9c2b19c79c61dea0af0e61b15fd1d4e79f4c47256a46be98a6afd75555163c568f25da03923bf0b425f46405184af816cc0e7b0dd35ee80de
7
- data.tar.gz: 59d30cb3bb73ec184f656b81be084643ddd498596b453563608681660dddf5bcc5bc80394f91209401f6f3c71bcc6151d84f10285e3df74da72a30e85275a8b2
6
+ metadata.gz: 87d412636042c90b284ce3b8839d93fa6d40ef62f8b5c419f5111318644453c82d0701f369509a8345cc6a984e34f4b59835ff18a7e4e3e27c1ebb3da2901a61
7
+ data.tar.gz: 658625f9831d8fb6fe17866f81de6c968de996bf9862e6cc5d77b1410bfb41d5e9456ee470c16cba1adb74f9931fba2deab3232894d1a76a2bf452ba583c5aef
@@ -3,6 +3,7 @@
3
3
  label: "Nil",
4
4
  margin_bottom: "md",
5
5
  null_display: "--",
6
+ size: "sm"
6
7
  }) %>
7
8
 
8
9
  <%= pb_rails("currency", props: {
@@ -10,11 +11,12 @@
10
11
  label: "Nil",
11
12
  margin_bottom: "md",
12
13
  null_display: "$0.00",
14
+ size: "sm"
13
15
  }) %>
14
16
 
15
17
  <%= pb_rails("currency", props: {
16
18
  amount: "",
17
19
  label: "Nil",
18
- margin_bottom: "md",
19
20
  null_display: " ",
21
+ size: "sm"
20
22
  }) %>
@@ -0,0 +1,17 @@
1
+ import React from 'react'
2
+ import { IconButton } from 'playbook-ui'
3
+
4
+ const IconButtonDefault = (props) => (
5
+ <div>
6
+ <IconButton
7
+ {...props}
8
+ />
9
+ <IconButton
10
+ {...props}
11
+ marginTop="md"
12
+ variant="link"
13
+ />
14
+ </div>
15
+ )
16
+
17
+ export default IconButtonDefault
@@ -0,0 +1,61 @@
1
+ import React from 'react'
2
+ import { IconButton, Flex } from 'playbook-ui'
3
+
4
+ const IconButtonSizes = (props) => (
5
+ <div>
6
+ <Flex align="center">
7
+ <IconButton
8
+ {...props}
9
+ size="lg"
10
+ />
11
+ <span>Large</span>
12
+ </Flex>
13
+ <Flex align="center">
14
+ <IconButton
15
+ {...props}
16
+ size="sm"
17
+ />
18
+ <span>Small</span>
19
+ </Flex>
20
+ <Flex align="center">
21
+ <IconButton
22
+ {...props}
23
+ size="xs"
24
+ />
25
+ <span>XSmall</span>
26
+ </Flex>
27
+ <Flex
28
+ align="center"
29
+ marginTop="md"
30
+ >
31
+ <IconButton
32
+ {...props}
33
+ size="1x"
34
+ />
35
+ <span>1x</span>
36
+ </Flex>
37
+ <Flex align="center">
38
+ <IconButton
39
+ {...props}
40
+ size="2x"
41
+ />
42
+ <span>2x</span>
43
+ </Flex>
44
+ <Flex align="center">
45
+ <IconButton
46
+ {...props}
47
+ size="3x"
48
+ />
49
+ <span>3x</span>
50
+ </Flex>
51
+ <Flex align="center">
52
+ <IconButton
53
+ {...props}
54
+ size="4x"
55
+ />
56
+ <span>4x</span>
57
+ </Flex>
58
+ </div>
59
+ )
60
+
61
+ export default IconButtonSizes
@@ -3,3 +3,7 @@ examples:
3
3
  rails:
4
4
  - icon_button_default: Default
5
5
  - icon_button_sizes: Sizes
6
+
7
+ react:
8
+ - icon_button_default: Default
9
+ - icon_button_sizes: Sizes
@@ -0,0 +1,2 @@
1
+ export { default as IconButtonDefault } from './_icon_button_default.jsx'
2
+ export { default as IconButtonSizes } from './_icon_button_sizes.jsx'