playbook_ui_docs 13.13.0.pre.alpha.PLAY1097linterenhancedelement1728 → 13.13.0.pre.alpha.play900startratingasinput1657

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 (34) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_contact/docs/example.yml +0 -6
  3. data/app/pb_kits/playbook/pb_date/docs/example.yml +0 -7
  4. data/app/pb_kits/playbook/pb_home_address_street/docs/example.yml +0 -6
  5. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_background_options.html.erb +2 -0
  6. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_background_options.jsx +25 -0
  7. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_color_options.html.erb +3 -0
  8. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_color_options.jsx +31 -0
  9. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.html.erb +6 -8
  10. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.jsx +19 -6
  11. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.html.erb +3 -1
  12. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.jsx +22 -5
  13. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.html.erb +6 -0
  14. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.jsx +58 -0
  15. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.html.erb +16 -0
  16. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.jsx +60 -0
  17. data/app/pb_kits/playbook/pb_star_rating/docs/example.yml +12 -5
  18. data/app/pb_kits/playbook/pb_star_rating/docs/index.js +8 -0
  19. data/dist/menu.yml +168 -240
  20. data/dist/playbook-doc.js +8 -8
  21. metadata +10 -15
  22. data/app/pb_kits/playbook/pb_contact/docs/_contact_default_swift.md +0 -14
  23. data/app/pb_kits/playbook/pb_contact/docs/_contact_props_swift.md +0 -6
  24. data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail_swift.md +0 -14
  25. data/app/pb_kits/playbook/pb_date/docs/_date_alignment_swift.md +0 -11
  26. data/app/pb_kits/playbook/pb_date/docs/_date_default_swift.md +0 -16
  27. data/app/pb_kits/playbook/pb_date/docs/_date_props_swift.md +0 -8
  28. data/app/pb_kits/playbook/pb_date/docs/_date_unstyled_swift.md +0 -11
  29. data/app/pb_kits/playbook/pb_date/docs/_date_variants_swift.md +0 -14
  30. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_default_swift.md +0 -18
  31. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis_swift.md +0 -34
  32. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_link_swift.md +0 -18
  33. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_modified_swift.md +0 -13
  34. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_props_swift.md +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3a1607bd0a43a942931e5c3d7b6f9b3c606e32fdc6810a87f1343c68359d570
4
- data.tar.gz: 3541f0e3e41e59b4b929631deefe4971eca6ed5f44c3a6e87dffd80438a646d1
3
+ metadata.gz: 4ea9616a1a0ebfeb207646e73702e51eaad93c2a6051126363db8d1cbaa2a674
4
+ data.tar.gz: 125091d72d224c90a9aff3905a753e975addb7514c9a2ea34f6ba9488bcb07bd
5
5
  SHA512:
6
- metadata.gz: '08019b477a1c61170ea024505ded3075c07bdcfed7d7f4cf922ab77e5f6bc971e9bbc1760263d6e8056f35bc3d2972fe3c925757d62a1cb2b427fb390630f172'
7
- data.tar.gz: 75c188b84949ddca1be963ec1b222a6fa8d7593a827b90187b06678a136e983852dbfb5a18acb1f09fed51c4fb7aec7028fd29e76f26ad5db731e11032099e9f
6
+ metadata.gz: db21daeb18c456a242a57e1534923d99261be6b2d0a5a03192f46d29fb4a2702f25befdd28ebb98f47b70aba3b222d79b43a66f80a7b454092b0e17aeda2f841
7
+ data.tar.gz: a6702ed707537ccae106f2c5c46a7a9d60eaa1219fb1e82e843a98b238b4ac1e82928367dbf20c312dccd0db4e9f3204d3d72f7d834694df703c8a3d02d9230c
@@ -8,9 +8,3 @@ examples:
8
8
  react:
9
9
  - contact_default: Default
10
10
  - contact_with_detail: Detail Indicator
11
-
12
-
13
- swift:
14
- - contact_default_swift: Default
15
- - contact_with_detail_swift: Detail Indicator
16
- - contact_props_swift: ""
@@ -12,10 +12,3 @@ examples:
12
12
  - date_variants: Variants
13
13
  - date_alignment: Alignment
14
14
  - date_unstyled: Unstyled
15
-
16
- swift:
17
- - date_default_swift: Default
18
- - date_variants_swift: Variants
19
- - date_alignment_swift: Alignment
20
- - date_unstyled_swift: Unstyled
21
- - date_props_swift: ""
@@ -12,9 +12,3 @@ examples:
12
12
  - home_address_street_modified: Modified
13
13
  - home_address_street_link: Link
14
14
 
15
- swift:
16
- - home_address_street_default_swift: Default
17
- - home_address_street_emphasis_swift: Emphasis
18
- - home_address_street_modified_swift: Modified
19
- - home_address_street_link_swift: Link
20
- - home_address_street_props_swift: ""
@@ -0,0 +1,2 @@
1
+ <%= pb_rails("star_rating", props: { rating: 3, background_type: "fill", padding_bottom: "xs" }) %>
2
+ <%= pb_rails("star_rating", props: { rating: 3, background_type: "outline", padding_bottom: "xs" }) %>
@@ -0,0 +1,25 @@
1
+ import React from 'react'
2
+
3
+ import StarRating from '../_star_rating'
4
+
5
+ const StarRatingBackgroundOptions = (props) => (
6
+ <>
7
+
8
+ <StarRating
9
+ paddingBottom="xs"
10
+ rating={3}
11
+ {...props}
12
+ />
13
+
14
+
15
+ <StarRating
16
+ backgroundType='outline'
17
+ paddingBottom="xs"
18
+ rating={3}
19
+ {...props}
20
+ />
21
+
22
+ </>
23
+ )
24
+
25
+ export default StarRatingBackgroundOptions
@@ -0,0 +1,3 @@
1
+ <%= pb_rails("star_rating", props: { rating: 3, padding_bottom: "xs" }) %>
2
+ <%= pb_rails("star_rating", props: { rating: 3, color_option: "primary", padding_bottom: "xs" }) %>
3
+ <%= pb_rails("star_rating", props: { rating: 3, color_option: "subtle", padding_bottom: "xs" }) %>
@@ -0,0 +1,31 @@
1
+ import React from 'react'
2
+
3
+ import StarRating from '../_star_rating'
4
+
5
+ const StarRatingColorOptions = (props) => (
6
+ <>
7
+
8
+ <StarRating
9
+ paddingBottom="xs"
10
+ rating={3}
11
+ {...props}
12
+ />
13
+
14
+ <StarRating
15
+ colorOption='primary'
16
+ paddingBottom="xs"
17
+ rating={3}
18
+ {...props}
19
+ />
20
+
21
+ <StarRating
22
+ colorOption='subtle'
23
+ paddingBottom="xs"
24
+ rating={3}
25
+ {...props}
26
+ />
27
+
28
+ </>
29
+ )
30
+
31
+ export default StarRatingColorOptions
@@ -1,13 +1,11 @@
1
- <%= pb_rails("star_rating") %>
1
+ <%= pb_rails("star_rating", props: { padding_bottom: "xs" }) %>
2
2
 
3
- <br>
3
+ <%= pb_rails("star_rating", props: { rating: 1, padding_bottom: "xs" }) %>
4
4
 
5
- <%= pb_rails("star_rating", props: { rating: 3 }) %>
5
+ <%= pb_rails("star_rating", props: { rating: 2, padding_bottom: "xs" }) %>
6
6
 
7
- <br>
7
+ <%= pb_rails("star_rating", props: { rating: 3, padding_bottom: "xs" }) %>
8
8
 
9
- <%= pb_rails("star_rating", props: { rating: 1.5 }) %>
9
+ <%= pb_rails("star_rating", props: { rating: 4, padding_bottom: "xs" }) %>
10
10
 
11
- <br>
12
-
13
- <%= pb_rails("star_rating", props: { rating: 5 }) %>
11
+ <%= pb_rails("star_rating", props: { rating: 5, padding_bottom: "xs" }) %>
@@ -4,25 +4,38 @@ import StarRating from '../_star_rating'
4
4
 
5
5
  const StarRatingDefault = (props) => (
6
6
  <>
7
- <StarRating />
7
+ <StarRating
8
+ paddingBottom="xs"
9
+ {...props}
10
+ />
8
11
 
9
- <br />
10
12
 
11
13
  <StarRating
12
- rating={3}
14
+ paddingBottom="xs"
15
+ rating={0.9}
13
16
  {...props}
14
17
  />
15
18
 
16
- <br />
17
-
18
19
  <StarRating
20
+ paddingBottom="xs"
19
21
  rating={1.5}
20
22
  {...props}
21
23
  />
22
24
 
23
- <br />
25
+ <StarRating
26
+ paddingBottom="xs"
27
+ rating={3}
28
+ {...props}
29
+ />
30
+
31
+ <StarRating
32
+ paddingBottom="xs"
33
+ rating={4.2}
34
+ {...props}
35
+ />
24
36
 
25
37
  <StarRating
38
+ paddingBottom="xs"
26
39
  rating={5}
27
40
  {...props}
28
41
  />
@@ -1 +1,3 @@
1
- <%= pb_rails("star_rating", props: { rating: 3.5, hide_rating: true }) %>
1
+ <%= pb_rails("star_rating", props: { rating: 3, padding_bottom: "xs" }) %>
2
+ <%= pb_rails("star_rating", props: { rating: 3, layout_option: "number", padding_bottom: "xs" }) %>
3
+ <%= pb_rails("star_rating", props: { rating: 3, layout_option: "onestar", padding_bottom: "xs" }) %>
@@ -3,13 +3,30 @@ import React from 'react'
3
3
  import StarRating from '../_star_rating'
4
4
 
5
5
  const StarRatingHide = (props) => (
6
+ <>
6
7
 
7
- <StarRating
8
- hideRating
9
- rating={3.5}
10
- {...props}
11
- />
8
+ <StarRating
9
+ paddingBottom="xs"
10
+ rating={3}
11
+ {...props}
12
+ />
12
13
 
14
+
15
+ <StarRating
16
+ layoutOption={"number"}
17
+ paddingBottom="xs"
18
+ rating={3}
19
+ {...props}
20
+ />
21
+
22
+ <StarRating
23
+ layoutOption={"onestar"}
24
+ paddingBottom="xs"
25
+ rating={3}
26
+ {...props}
27
+ />
28
+
29
+ </>
13
30
  )
14
31
 
15
32
  export default StarRatingHide
@@ -0,0 +1,6 @@
1
+ <%= pb_rails("star_rating", props: { rating: 3, denominator: 3, padding_bottom: "xs" }) %>
2
+ <%= pb_rails("star_rating", props: { rating: 3, denominator: 4, padding_bottom: "xs" }) %>
3
+ <%= pb_rails("star_rating", props: { rating: 3, padding_bottom: "xs" }) %>
4
+ <%= pb_rails("star_rating", props: { rating: 3, denominator: 6, padding_bottom: "xs" }) %>
5
+ <%= pb_rails("star_rating", props: { rating: 3, denominator: 7, padding_bottom: "xs" }) %>
6
+ <%= pb_rails("star_rating", props: { rating: 3, denominator: 8, padding_bottom: "xs" }) %>
@@ -0,0 +1,58 @@
1
+ import React from 'react'
2
+
3
+ import StarRating from '../_star_rating'
4
+
5
+ const StarRatingNumberConfig = (props) => (
6
+ <>
7
+
8
+ <StarRating
9
+ denominator={3}
10
+ paddingBottom="xs"
11
+ rating={3}
12
+ {...props}
13
+ />
14
+
15
+
16
+ <StarRating
17
+ denominator={4}
18
+ paddingBottom="xs"
19
+ rating={3}
20
+ {...props}
21
+ />
22
+
23
+
24
+ <StarRating
25
+ denominator={5}
26
+ paddingBottom="xs"
27
+ rating={3}
28
+ {...props}
29
+ />
30
+
31
+
32
+ <StarRating
33
+ denominator={6}
34
+ paddingBottom="xs"
35
+ rating={3}
36
+ {...props}
37
+ />
38
+
39
+
40
+ <StarRating
41
+ denominator={7}
42
+ paddingBottom="xs"
43
+ rating={3}
44
+ {...props}
45
+ />
46
+
47
+
48
+ <StarRating
49
+ denominator={8}
50
+ paddingBottom="xs"
51
+ rating={3}
52
+ {...props}
53
+ />
54
+
55
+ </>
56
+ )
57
+
58
+ export default StarRatingNumberConfig
@@ -0,0 +1,16 @@
1
+ <%= pb_rails("star_rating", props: { rating: 3, size: "xs", padding_bottom: "xs" }) %>
2
+
3
+
4
+ <%= pb_rails("star_rating", props: { rating: 3, size: "sm", padding_bottom: "xs" }) %>
5
+
6
+
7
+ <%= pb_rails("star_rating", props: { rating: 3, size: "md", padding_bottom: "xs" }) %>
8
+
9
+
10
+ <%= pb_rails("star_rating", props: { rating: 3, size: "lg", padding_bottom: "xs" }) %>
11
+
12
+
13
+ <%= pb_rails("star_rating", props: { rating: 3, size: "lg", layout_option: "number", padding_bottom: "xs" }) %>
14
+
15
+
16
+ <%= pb_rails("star_rating", props: { rating: 3, size: "lg", layout_option: "onestar", padding_bottom: "xs" }) %>
@@ -0,0 +1,60 @@
1
+ import React from 'react'
2
+
3
+ import StarRating from '../_star_rating'
4
+
5
+ const StarRatingSizeOptions = (props) => (
6
+ <>
7
+
8
+ <StarRating
9
+ paddingBottom="xs"
10
+ rating={3}
11
+ size="xs"
12
+ {...props}
13
+ />
14
+
15
+
16
+ <StarRating
17
+ paddingBottom="xs"
18
+ rating={3}
19
+ size="sm"
20
+ {...props}
21
+ />
22
+
23
+
24
+ <StarRating
25
+ paddingBottom="xs"
26
+ rating={3}
27
+ size="md"
28
+ {...props}
29
+ />
30
+
31
+
32
+ <StarRating
33
+ paddingBottom="xs"
34
+ rating={3}
35
+ size="lg"
36
+ {...props}
37
+ />
38
+
39
+
40
+ <StarRating
41
+ layoutOption="number"
42
+ paddingBottom="xs"
43
+ rating={3}
44
+ size="lg"
45
+ {...props}
46
+ />
47
+
48
+
49
+ <StarRating
50
+ layoutOption="onestar"
51
+ paddingBottom="xs"
52
+ rating={3}
53
+ size="lg"
54
+ {...props}
55
+ />
56
+
57
+ </>
58
+ )
59
+
60
+ export default StarRatingSizeOptions
@@ -1,9 +1,16 @@
1
1
  examples:
2
-
3
2
  rails:
4
- - star_rating_default: Default
5
- - star_rating_hide: Hide Rating Value
3
+ - star_rating_default: Default
4
+ - star_rating_color_options: Color Options
5
+ - star_rating_background_options: Background Options
6
+ - star_rating_hide: Layout Options
7
+ - star_rating_number_config: Number Config
8
+ - star_rating_size_options: Size Options
6
9
 
7
10
  react:
8
- - star_rating_default: Default
9
- - star_rating_hide: Hide Rating Value
11
+ - star_rating_default: Default
12
+ - star_rating_color_options: Color Options
13
+ - star_rating_background_options: Background Options
14
+ - star_rating_hide: Layout Options
15
+ - star_rating_number_config: Number Config
16
+ - star_rating_size_options: Size Options
@@ -1,3 +1,11 @@
1
1
  export { default as StarRatingDefault } from './_star_rating_default.jsx'
2
2
 
3
+ export { default as StarRatingColorOptions } from './_star_rating_color_options.jsx'
4
+
5
+ export { default as StarRatingBackgroundOptions } from './_star_rating_background_options.jsx'
6
+
3
7
  export { default as StarRatingHide } from './_star_rating_hide.jsx'
8
+
9
+ export { default as StarRatingNumberConfig } from './_star_rating_number_config.jsx'
10
+
11
+ export { default as StarRatingSizeOptions } from './_star_rating_size_options.jsx'