playbook_ui_docs 13.13.0 → 13.14.0.pre.alpha.play1101betaicons1798

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_beta_icon/docs/_description.md +1 -0
  3. data/app/pb_kits/playbook/pb_beta_icon/docs/_footer.md +2 -0
  4. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_animate.html.erb +3 -0
  5. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_animate.jsx +35 -0
  6. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_animate.md +1 -0
  7. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_border.html.erb +1 -0
  8. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_border.jsx +19 -0
  9. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_border_swift.md +7 -0
  10. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_custom.html.erb +16 -0
  11. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_custom.jsx +34 -0
  12. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_custom.md +19 -0
  13. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_default.html.erb +1 -0
  14. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_default.jsx +17 -0
  15. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_default_swift.md +7 -0
  16. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_fa_kit.html.erb +1 -0
  17. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_fa_kit.jsx +21 -0
  18. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_fa_kit.md +7 -0
  19. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_flip.html.erb +3 -0
  20. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_flip.jsx +33 -0
  21. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_flip_swift.md +11 -0
  22. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_props_swift.md +8 -0
  23. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_pull.html.erb +2 -0
  24. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_pull.jsx +26 -0
  25. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_pull.md +1 -0
  26. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_rotate.html.erb +3 -0
  27. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_rotate.jsx +33 -0
  28. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_rotate_swift.md +11 -0
  29. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_sizes.html.erb +16 -0
  30. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_sizes.jsx +133 -0
  31. data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_sizes_swift.md +46 -0
  32. data/app/pb_kits/playbook/pb_beta_icon/docs/example.yml +30 -0
  33. data/app/pb_kits/playbook/pb_beta_icon/docs/index.js +9 -0
  34. data/app/pb_kits/playbook/pb_button/docs/_button_props_swift.md +11 -0
  35. data/app/pb_kits/playbook/pb_button/docs/_button_reaction_swift.md +26 -0
  36. data/app/pb_kits/playbook/pb_button/docs/example.yml +1 -0
  37. data/app/pb_kits/playbook/pb_card/docs/_card_background.jsx +5 -4
  38. data/app/pb_kits/playbook/pb_contact/docs/_contact_default_swift.md +14 -0
  39. data/app/pb_kits/playbook/pb_contact/docs/_contact_props_swift.md +6 -0
  40. data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail_swift.md +14 -0
  41. data/app/pb_kits/playbook/pb_contact/docs/example.yml +6 -0
  42. data/app/pb_kits/playbook/pb_date/docs/_date_alignment_swift.md +11 -0
  43. data/app/pb_kits/playbook/pb_date/docs/_date_default_swift.md +16 -0
  44. data/app/pb_kits/playbook/pb_date/docs/_date_props_swift.md +8 -0
  45. data/app/pb_kits/playbook/pb_date/docs/_date_unstyled_swift.md +11 -0
  46. data/app/pb_kits/playbook/pb_date/docs/_date_variants_swift.md +14 -0
  47. data/app/pb_kits/playbook/pb_date/docs/example.yml +7 -0
  48. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_custom.html.erb +29 -0
  49. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_custom.jsx +34 -0
  50. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_custom.md +7 -0
  51. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_custom_override.html.erb +28 -0
  52. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_custom_override.jsx +34 -0
  53. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_custom_override.md +1 -0
  54. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_react.jsx +2 -2
  55. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +4 -0
  56. data/app/pb_kits/playbook/pb_date_picker/docs/index.js +2 -0
  57. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_default_swift.md +11 -0
  58. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_full_height.jsx +8 -4
  59. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_full_height_placement.jsx +8 -4
  60. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_props_table.md +13 -0
  61. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_scrollable.jsx +4 -2
  62. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_sizes_swift.md +18 -0
  63. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_status.jsx +1 -1
  64. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_status_swift.md +14 -0
  65. data/app/pb_kits/playbook/pb_dialog/docs/example.yml +7 -0
  66. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_default_swift.md +18 -0
  67. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis_swift.md +34 -0
  68. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_link_swift.md +18 -0
  69. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_modified_swift.md +13 -0
  70. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_props_swift.md +14 -0
  71. data/app/pb_kits/playbook/pb_home_address_street/docs/example.yml +6 -0
  72. data/app/pb_kits/playbook/pb_person/docs/_person_default_swift.md +8 -0
  73. data/app/pb_kits/playbook/pb_person/docs/_person_props_swift.md +5 -0
  74. data/app/pb_kits/playbook/pb_person/docs/example.yml +4 -0
  75. data/app/pb_kits/playbook/pb_select/docs/_select_default_swift.md +15 -0
  76. data/app/pb_kits/playbook/pb_select/docs/_select_error_swift.md +18 -0
  77. data/app/pb_kits/playbook/pb_select/docs/_select_props_table.md +8 -0
  78. data/app/pb_kits/playbook/pb_select/docs/example.yml +5 -0
  79. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_background_options.html.erb +2 -0
  80. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_background_options.jsx +25 -0
  81. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_color_options.html.erb +3 -0
  82. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_color_options.jsx +31 -0
  83. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.html.erb +6 -8
  84. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.jsx +19 -6
  85. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.html.erb +4 -1
  86. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.jsx +30 -5
  87. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.html.erb +6 -0
  88. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.jsx +58 -0
  89. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.html.erb +16 -0
  90. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.jsx +60 -0
  91. data/app/pb_kits/playbook/pb_star_rating/docs/example.yml +12 -5
  92. data/app/pb_kits/playbook/pb_star_rating/docs/index.js +8 -0
  93. data/app/pb_kits/playbook/pb_user/docs/_user_horizontal_swift.md +37 -0
  94. data/app/pb_kits/playbook/pb_user/docs/_user_props_table.md +10 -0
  95. data/app/pb_kits/playbook/pb_user/docs/_user_size_swift.md +35 -0
  96. data/app/pb_kits/playbook/pb_user/docs/_user_text_only_swift.md +27 -0
  97. data/app/pb_kits/playbook/pb_user/docs/_user_vertical_size_swift.md +35 -0
  98. data/app/pb_kits/playbook/pb_user/docs/example.yml +7 -0
  99. data/dist/menu.yml +240 -168
  100. data/dist/playbook-doc.js +8 -8
  101. metadata +81 -7
@@ -0,0 +1,8 @@
1
+ ![PBIOS-227](https://github.com/powerhome/playbook/assets/92755007/e43f94bd-2d2e-46cc-a848-6ac7425f89f9)
2
+
3
+
4
+ ```swift
5
+
6
+ PBPerson(firstName: "Timothy", lastName: "Wenhold")
7
+
8
+ ```
@@ -0,0 +1,5 @@
1
+ ### Props
2
+ | Name | Type | Description | Default | Values |
3
+ | --- | ----------- | --------- | --------- | --------- |
4
+ | **firstName** | `String` | Sets the first name | | |
5
+ | **lastName** | `String` | Sets the last name | | |
@@ -7,3 +7,7 @@ examples:
7
7
  react:
8
8
  - person_default: Default
9
9
 
10
+ swift:
11
+ - person_default_swift: Default
12
+ - person_props_swift: ""
13
+
@@ -0,0 +1,15 @@
1
+ ![select-default](https://github.com/powerhome/playbook/assets/54749071/ead0e074-46ae-425a-ab32-d9c4418a0783)
2
+
3
+
4
+ ```swift
5
+ let defaultOptions = [
6
+ (value: "1", text: "Burgers"),
7
+ (value: "2", text: "Pizza"),
8
+ (value: "3", text: "Tacos")
9
+ ]
10
+ @State private var defaultState = ""
11
+
12
+ PBSelect(title: "Favorite Food", options: defaultOptions, style: .default) { selected in
13
+ defaultState = selected
14
+ }
15
+ ```
@@ -0,0 +1,18 @@
1
+ ![select-error](https://github.com/powerhome/playbook/assets/54749071/c02e365b-c3a1-446b-b9f2-47db11315786)
2
+
3
+ ```swift
4
+ let defaultOptions = [
5
+ (value: "1", text: "Burgers"),
6
+ (value: "2", text: "Pizza"),
7
+ (value: "3", text: "Tacos")
8
+ ]
9
+ @State private var errorState = ""
10
+
11
+ PBSelect(
12
+ title: "Favorite Food",
13
+ options: defaultOptions,
14
+ style: .error("Please make a valid selection")
15
+ ) { selected in
16
+ errorState = selected
17
+ }
18
+ ```
@@ -0,0 +1,8 @@
1
+ ### Props
2
+ | Name | Type | Description | Default | Values |
3
+ | --- | ----------- | --------- | --------- | --------- |
4
+ | **title** | `String` | Sets label title for dropdown | | |
5
+ | **options** | `(String, String)` | Displays the list of dropdown options | | |
6
+ | **style** | `Variant` | Options for the state of dropdown | `.default` | `default` `disabled` `error` |
7
+ | **selectedOption** | `String` | Changes selected value when new value is selected | | |
8
+ | **selected** | `String` | Changes the value of the option selected in dropdown | | |
@@ -28,3 +28,8 @@ examples:
28
28
  - select_inline: Select Inline
29
29
  - select_inline_compact: Select Inline Compact
30
30
  - select_multiple: Select Multiple
31
+
32
+ swift:
33
+ - select_default_swift: Default
34
+ - select_error_swift: Error
35
+ - select_props_table: ""
@@ -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: 0.9, padding_bottom: "xs" }) %>
4
4
 
5
- <%= pb_rails("star_rating", props: { rating: 3 }) %>
5
+ <%= pb_rails("star_rating", props: { rating: 1.5, 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.2, 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,4 @@
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: 2.8, layout_option: "number", padding_bottom: "xs" }) %>
3
+ <%= pb_rails("star_rating", props: { rating: 3, layout_option: "number", padding_bottom: "xs" }) %>
4
+ <%= pb_rails("star_rating", props: { rating: 1, layout_option: "onestar", padding_bottom: "xs" }) %>
@@ -3,13 +3,38 @@ 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={2.8}
19
+ {...props}
20
+ />
21
+
22
+
23
+ <StarRating
24
+ layoutOption={"number"}
25
+ paddingBottom="xs"
26
+ rating={3}
27
+ {...props}
28
+ />
29
+
30
+ <StarRating
31
+ layoutOption={"onestar"}
32
+ paddingBottom="xs"
33
+ rating={3}
34
+ {...props}
35
+ />
36
+
37
+ </>
13
38
  )
14
39
 
15
40
  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'
@@ -0,0 +1,37 @@
1
+ ![user-horizontal](https://github.com/powerhome/playbook/assets/92755007/63680051-6a88-4ae7-bffd-74d8e9b3a805)
2
+
3
+ ```swift
4
+
5
+ let img = Image("andrew", bundle: .module)
6
+ let name = "Andrew K"
7
+ let title = "Rebels Developer"
8
+
9
+ VStack(alignment: .leading, spacing: Spacing.small) {
10
+ PBUser(
11
+ name: name,
12
+ image: img,
13
+ territory: "PHL",
14
+ title: title
15
+ )
16
+
17
+ PBUser(
18
+ name: name,
19
+ territory: "PHL",
20
+ title: title
21
+ )
22
+
23
+ PBUser(
24
+ name: name,
25
+ image: img,
26
+ size: .small,
27
+ title: title
28
+ )
29
+
30
+ PBUser(
31
+ name: name,
32
+ image: img,
33
+ size: .small
34
+ )
35
+ }
36
+
37
+ ```
@@ -0,0 +1,10 @@
1
+ ### Props
2
+ | Name | Type | Description | Default | Values |
3
+ | --- | ----------- | --------- | --------- | --------- |
4
+ | **name** | `String` | Sets the User's name | | |
5
+ | **displayAvatar** | `Bool` | Displays the User's avatar | `true` | `true` `false` |
6
+ | **image** | `Image` | Sets image for the avatar | | |
7
+ | **orientation** | `Orientation` | Changes the orientation of the User | `.horizontal` | `.horizontal` `.verticle` |
8
+ | **size** | `UserAvatarSize` | Changes the size of the User | `.medium` | `.small` `.medium` `.large` |
9
+ | **territory** | `String` | Adds the User's territory | | |
10
+ | **title** | `String` | Adds a title | | |
@@ -0,0 +1,35 @@
1
+ ![user-size](https://github.com/powerhome/playbook/assets/54749071/ed012a15-64a1-4c13-a0bc-7457660992f6)
2
+
3
+
4
+ ```swift
5
+
6
+ let img = Image("andrew", bundle: .module)
7
+ let name = "Andrew K"
8
+ let title = "Rebels Developer"
9
+
10
+ VStack(alignment: .leading, spacing: Spacing.small) {
11
+ PBUser(
12
+ name: name,
13
+ image: img,
14
+ size: .small,
15
+ territory: "PHL",
16
+ title: title
17
+ )
18
+
19
+ PBUser(
20
+ name: name,
21
+ image: img,
22
+ territory: "PHL",
23
+ title: title
24
+ )
25
+
26
+ PBUser(
27
+ name: name,
28
+ image: img,
29
+ size: .large,
30
+ territory: "PHL",
31
+ title: title
32
+ )
33
+ }
34
+
35
+ ```
@@ -0,0 +1,27 @@
1
+ ![user-text-only](https://github.com/powerhome/playbook/assets/54749071/ba04df54-6590-4db6-ad32-38932a08aced)
2
+
3
+
4
+ ```swift
5
+
6
+ let img = Image("andrew", bundle: .module)
7
+ let name = "Andrew K"
8
+ let title = "Rebels Developer"
9
+
10
+ VStack(spacing: Spacing.small) {
11
+ PBUser(
12
+ name: name,
13
+ displayAvatar: false,
14
+ size: .large,
15
+ territory: "PHL",
16
+ title: title
17
+ )
18
+
19
+ PBUser(
20
+ name: name,
21
+ displayAvatar: false,
22
+ territory: "PHL",
23
+ title: title
24
+ )
25
+ }
26
+
27
+ ```
@@ -0,0 +1,35 @@
1
+ ![user-verticle-size](https://github.com/powerhome/playbook/assets/54749071/e99b4c9b-0752-467e-971e-a6a5f520009e)
2
+
3
+
4
+ ```swift
5
+
6
+ let img = Image("andrew", bundle: .module)
7
+ let name = "Andrew K"
8
+ let title = "Rebels Developer"
9
+
10
+ VStack(alignment: .leading, spacing: Spacing.small) {
11
+ PBUser(
12
+ name: name,
13
+ image: img,
14
+ orientation: .vertical,
15
+ size: .small,
16
+ title: title
17
+ )
18
+
19
+ PBUser(
20
+ name: name,
21
+ image: img,
22
+ orientation: .vertical,
23
+ title: title
24
+ )
25
+
26
+ PBUser(
27
+ name: name,
28
+ image: img,
29
+ orientation: .vertical,
30
+ size: .large,
31
+ title: title
32
+ )
33
+ }
34
+
35
+ ```
@@ -17,3 +17,10 @@ examples:
17
17
  - user_vertical_size: Vertical Size
18
18
  - user_subtitle: Subtitle
19
19
  - user_block_content_subtitle_react: Block Content Subtitle
20
+
21
+ swift:
22
+ - user_horizontal_swift: Horizontal
23
+ - user_vertical_size_swift: Vertical
24
+ - user_text_only_swift: Text Only
25
+ - user_size_swift: Horizontal Size
26
+ - user_props_table: ""