playbook_ui_docs 14.6.2.pre.alpha.PLAY1550lazysizesupgrade4295 → 14.6.2.pre.alpha.PLAY1551tiptapextbump4350

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 775b54bdbcfc59ed8ea09874b40d6d1e6e59b4074d4c8af6eb87aaf505b8d71b
4
- data.tar.gz: b7398b486c668deeb8f6ab526b48c6c37fc68cb3d78cfb8ad58afa6f36ced8c1
3
+ metadata.gz: 1bda8b1af2f7ef0b4df7327ddb427b00a149e17a05490c90d6891794d3f1945e
4
+ data.tar.gz: 5b3d8933e593d24979138c635c7d49444599c5d4c0820d263cc88343ac9a3fed
5
5
  SHA512:
6
- metadata.gz: 54fd39d26736667fa11decb0cbe55bdeb2abbffcd13b4b3e7baf2069145153a9904f321b193613bdba8c7dead4ab8d714530c8351b19947a7e1096b08aaef7de
7
- data.tar.gz: 2c4456435342538007613f3dc6a47d99bc4631a262adda76c56e910c83a1f927672f9a90aed9a4cf75530dc814ba4973589f3bc591b6c27dfb3f13b2a5173803
6
+ metadata.gz: 6ec0ef36828fc70b4e605f958792bfbcab029f4ab9e88625214a333260f213823f1715f02ff273033180c70aa577290b812041826d3954985b27272fa062b191
7
+ data.tar.gz: 4d147b1dd80dbc07369f05169f4fd629de7228abd3ea7bde0a54b50df6a9dcf19dfc116ade585bc98d2b21a901d08e37b5b3a9079162425e8970ffdd4c16c460
@@ -0,0 +1,7 @@
1
+ <%= pb_rails("currency", props: {
2
+ amount: '1234567.89',
3
+ comma_separator: true,
4
+ size: 'lg',
5
+ emphasized: false,
6
+ decimals: 'matching',
7
+ }) %>
@@ -0,0 +1,18 @@
1
+ import React from "react"
2
+
3
+ import Currency from "../_currency"
4
+
5
+ const CurrencyCommaSeparator = (props) => {
6
+ return (
7
+ <Currency
8
+ amount='1234567.89'
9
+ commaSeparator
10
+ decimals="matching"
11
+ emphasized={false}
12
+ size="lg"
13
+ {...props}
14
+ />
15
+ )
16
+ }
17
+
18
+ export default CurrencyCommaSeparator
@@ -0,0 +1,3 @@
1
+ The optional `commaSeparator` can be used to auto-format the use of commas as a thousands separator.
2
+
3
+ **NOTE:** If the value passed into the `amount` prop is already comma-dilineated, it will not add additional commas.
@@ -8,7 +8,8 @@ examples:
8
8
  - currency_abbreviated: Abbreviate Larger Amounts
9
9
  - currency_matching_decimals: Matching Decimals
10
10
  - currency_unstyled: Unstyled
11
-
11
+ - currency_comma_separator: Comma Separator
12
+
12
13
  react:
13
14
  - currency_variants: Variants
14
15
  - currency_size: Size
@@ -17,6 +18,7 @@ examples:
17
18
  - currency_abbreviated: Abbreviate Larger Amounts
18
19
  - currency_matching_decimals: Matching Decimals
19
20
  - currency_unstyled: Unstyled
21
+ - currency_comma_separator: Comma Separator
20
22
 
21
23
  swift:
22
24
  - currency_size_swift: Size
@@ -5,3 +5,4 @@ export { default as CurrencyNoSymbol } from './_currency_no_symbol.jsx'
5
5
  export { default as CurrencyAbbreviated } from './_currency_abbreviated.jsx'
6
6
  export { default as CurrencyMatchingDecimals } from './_currency_matching_decimals.jsx'
7
7
  export { default as CurrencyUnstyled } from './_currency_unstyled.jsx'
8
+ export { default as CurrencyCommaSeparator } from './_currency_comma_separator.jsx'