playbook_ui_docs 13.7.0.pre.alpha.play978makehighchartsadevdependencypoc1223 → 13.8.0.pre.alpha.PLAY1016reactionbuttonemojibug1245
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_button/docs/_button_reaction.html.erb +1 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx +1 -1
- data/app/pb_kits/playbook/pb_currency/docs/_currency_unstyled.html.erb +14 -0
- data/app/pb_kits/playbook/pb_currency/docs/_currency_unstyled.jsx +30 -0
- data/app/pb_kits/playbook/pb_currency/docs/_currency_unstyled.md +1 -0
- data/app/pb_kits/playbook/pb_currency/docs/_currency_variants.html.erb +2 -1
- data/app/pb_kits/playbook/pb_currency/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_currency/docs/index.js +1 -0
- data/dist/playbook-doc.js +8 -8
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44ac9fcc58a2be4bb8900843ae8ec324d8605e0ba9f93caa0a2800ae5feaa265
|
4
|
+
data.tar.gz: ecf3f015c1bce98395c9b0e41fbe368de1193706766ba4dd5ee24b6dd9ffc178
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 428a35bbb22f7a4eb2fc8eb7be8cfcc78f277fe7c4d75d1d289101f9b16de8665c0cd4d032eba6630956047f41858a6af69f6c8e4c0a2fd77aafcddeaa4ceebb
|
7
|
+
data.tar.gz: e5ba4fb957725c0b6fe7169932bd1ad0642272a88697ee62d2e532702804578e11df947b694208aff7b4037b183253457ed96ee474ccbafce517cfc06573f6c4
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%= pb_rails("button", props: { count: 153, highlight: false, icon: "🎉", classname: "count", id: "reaction-button-highlight", variant: "reaction" }) %>
|
2
|
-
<%= pb_rails("button", props: { count: 5, icon: "
|
2
|
+
<%= pb_rails("button", props: { count: 5, icon: "1️⃣", variant: "reaction", margin_left: "lg" }) %>
|
3
3
|
<%= pb_rails("button", props: { variant: "reaction", margin_left: "lg" }) %>
|
4
4
|
<%= pb_rails("button", props: { icon: "user", variant: "reaction", margin_left: "lg" }) %>
|
5
5
|
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<%= pb_rails("currency", props: {
|
2
|
+
amount: "2,000.50",
|
3
|
+
label: "Basic unstyled example",
|
4
|
+
margin_bottom: "md",
|
5
|
+
unstyled: true
|
6
|
+
}) %>
|
7
|
+
|
8
|
+
<%= pb_rails("title", props: { size: 1 }) do %>
|
9
|
+
<%= pb_rails("currency", props: {
|
10
|
+
amount: "2,000.50",
|
11
|
+
label: "Example with wrapping typography kit",
|
12
|
+
unstyled: true
|
13
|
+
}) %>
|
14
|
+
<% end %>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import { Currency, Title } from '../..'
|
3
|
+
|
4
|
+
const CurrencyUnstyled = (props) => {
|
5
|
+
return (
|
6
|
+
<>
|
7
|
+
<Currency
|
8
|
+
amount="2,000.50"
|
9
|
+
label="Basic unstyled example"
|
10
|
+
marginBottom="md"
|
11
|
+
unstyled
|
12
|
+
{...props}
|
13
|
+
/>
|
14
|
+
|
15
|
+
<Title
|
16
|
+
size={1}
|
17
|
+
{...props}
|
18
|
+
>
|
19
|
+
<Currency
|
20
|
+
amount="2,000.50"
|
21
|
+
label="Example with wrapping typography kit"
|
22
|
+
unstyled
|
23
|
+
{...props}
|
24
|
+
/>
|
25
|
+
</Title>
|
26
|
+
</>
|
27
|
+
)
|
28
|
+
}
|
29
|
+
|
30
|
+
export default CurrencyUnstyled
|
@@ -0,0 +1 @@
|
|
1
|
+
For alternative typography styles, you can pass a boolean prop called `unstyled` to the `Currency` kit and wrap it in any of our typography kits (`Title`, `Body`, `Caption`, etc.). This will allow the `Currency` kit to inherit any of our typography styles.
|
@@ -7,6 +7,7 @@ examples:
|
|
7
7
|
- currency_no_symbol: No Symbol
|
8
8
|
- currency_abbreviated: Abbreviate Larger Amounts
|
9
9
|
- currency_matching_decimals: Matching Decimals
|
10
|
+
- currency_unstyled: Unstyled
|
10
11
|
|
11
12
|
react:
|
12
13
|
- currency_variants: Variants
|
@@ -15,3 +16,4 @@ examples:
|
|
15
16
|
- currency_no_symbol: No Symbol
|
16
17
|
- currency_abbreviated: Abbreviate Larger Amounts
|
17
18
|
- currency_matching_decimals: Matching Decimals
|
19
|
+
- currency_unstyled: Unstyled
|
@@ -4,3 +4,4 @@ export { default as CurrencyAlignment } from './_currency_alignment.jsx'
|
|
4
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
|
+
export { default as CurrencyUnstyled } from './_currency_unstyled.jsx'
|