playbook_ui_docs 13.11.1.pre.alpha.play900startratingasinput1530 → 13.12.0.pre.alpha.PLAY1051removinghighchartsdependency1551

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 (26) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_children_swift.md +14 -0
  3. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_dashed_swift.md +7 -0
  4. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_line_swift.md +8 -0
  5. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_props_swift.md +8 -0
  6. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_swift.md +7 -0
  7. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical_swift.md +18 -0
  8. data/app/pb_kits/playbook/pb_section_separator/docs/example.yml +8 -0
  9. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.html.erb +1 -11
  10. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.jsx +2 -17
  11. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.html.erb +1 -6
  12. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.jsx +5 -22
  13. data/app/pb_kits/playbook/pb_star_rating/docs/example.yml +5 -10
  14. data/app/pb_kits/playbook/pb_star_rating/docs/index.js +0 -6
  15. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default_swift.md +27 -0
  16. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error_swift.md +11 -0
  17. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_props_swift.md +9 -0
  18. data/app/pb_kits/playbook/pb_textarea/docs/example.yml +5 -0
  19. data/dist/playbook-doc.js +8 -8
  20. metadata +11 -8
  21. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_color_options.html.erb +0 -7
  22. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_color_options.jsx +0 -40
  23. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.html.erb +0 -12
  24. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.jsx +0 -57
  25. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.html.erb +0 -23
  26. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.jsx +0 -59
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bcb6e2d4e402fb9dc2a31c2ed7f4de54261939ac25ed748bf940d9a886842806
4
- data.tar.gz: b71718f353abc27312a7365debd7d21be1180f42d7fb36edf33b4eceb6411ed1
3
+ metadata.gz: c9df14b28c1ca4fc9acf529529255cdfcfef90dc5170759e2975fbecf7d89b95
4
+ data.tar.gz: d9670b6bba9f81f482ae431e03ed89fe7eb87eece121a6278e6f69d127cc2691
5
5
  SHA512:
6
- metadata.gz: d19bed2d987dbd19b39fded39bad4e08b138eb68d75f94b884dbf8c30e7194069f9809f3721be611a60c02e7259265b3b02910465ff7f3a4e7ba5665c2e84af2
7
- data.tar.gz: 217a761c4352a139e8636f7ed6161bdb91e8f1740c7f57ad2316e63469b7e797ea2cdc064e296b0621ceac4930e43b5fa33dbdaf4122e832dd321cdfa56ee271
6
+ metadata.gz: e67e7a66e4b5ea9b274a1c58f3f0f633e9db6a27c8ee056c0db71957abd8864da641ea1e14353dd41d535cea6167db9c9a08bcbbf9d5bd370323eaeb363db22d
7
+ data.tar.gz: df935246e0fcb28b01c4c55f56c39aadd49822d9719326a7ed5610f316ff35ab1a03bdd495555ea9e5adf0800a84b129cd607f5f308156429757fe7cc09489f1
@@ -0,0 +1,14 @@
1
+
2
+ ![section-separator-children](https://github.com/powerhome/playbook/assets/92755007/acd6a8eb-d034-4efd-b2e6-afabe739e678)
3
+
4
+ ```swift
5
+
6
+ PBSectionSeparator(variant: .dashed) {
7
+ PBCard(alignment: .center, borderRadius: BorderRadius.rounded, padding: Spacing.xxSmall, width: 70) {
8
+ Text("Today")
9
+ .pbFont(.caption)
10
+ .frame(maxWidth: .infinity, alignment: .center)
11
+ }
12
+ }
13
+
14
+ ```
@@ -0,0 +1,7 @@
1
+ ![section-separator-dashed](https://github.com/powerhome/playbook/assets/92755007/e4f01870-3d90-4655-9136-5c7565711e1f)
2
+
3
+ ```swift
4
+
5
+ PBSectionSeparator(variant: .dashed)
6
+
7
+ ```
@@ -0,0 +1,8 @@
1
+
2
+ ![section-separator-default](https://github.com/powerhome/playbook/assets/92755007/2560d5e2-f345-42d2-bad9-2a2e031b3e08)
3
+
4
+ ```swift
5
+
6
+ PBSectionSeparator()
7
+
8
+ ```
@@ -0,0 +1,8 @@
1
+ ### Props
2
+ | Name | Type | Description | Default | Values |
3
+ | --- | ----------- | --------- | --------- | --------- |
4
+ | **text** | `String` | Adds text to the Section Separator | `nil` | |
5
+ | **orientation** | `Orientation` | Changes the orientation | `.horizontal` | `.horizontal` `.vertical` |
6
+ | **variant** | `Variant` | Changes the style of the Section Separator | `.card` | `.dashed` `.card` |
7
+ | **dividerOpacity** | `CGFloat` | Adjusts the opacity of the divider | `1` | |
8
+ | **margin** | `CGFloat` | Adds margin between text and the divider | `Spacing.xSmall` | `Spacing.none` `Spacing.xxSmall` `Spacing.xSmall` `Spacing.small` `Spacing.medium` `Spacing.large` `Spacing.xLarge` |
@@ -0,0 +1,7 @@
1
+ ![section-separator-text](https://github.com/powerhome/playbook/assets/92755007/4b481a7d-d001-43b6-b779-cfdc6fffc15f)
2
+
3
+ ```swift
4
+
5
+ PBSectionSeparator("Text separator")
6
+
7
+ ```
@@ -0,0 +1,18 @@
1
+ ![section-separator-verticle](https://github.com/powerhome/playbook/assets/92755007/21ca54a5-6b8a-459f-91ad-4e9b68258f68)
2
+
3
+ ```swift
4
+
5
+ let loremIpsum: some View = Text(
6
+ "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididt labore et dolore"
7
+ )
8
+
9
+ HStack(spacing: Spacing.none) {
10
+ "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididt labore et dolore"
11
+ PBSectionSeparator(orientation: .vertical)
12
+ "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididt labore et dolore"
13
+ }
14
+ .frame(maxWidth: .infinity)
15
+ .frame(height: 120, alignment: .center)
16
+ .listRowSeparator(.hidden)
17
+
18
+ ```
@@ -13,3 +13,11 @@ examples:
13
13
  - section_separator_text: Text Separator
14
14
  - section_separator_vertical: Vertical
15
15
  - section_separator_children: Children
16
+
17
+ swift:
18
+ - section_separator_line_swift: Line Separator
19
+ - section_separator_dashed_swift: Dashed Separator
20
+ - section_separator_text_swift: Text Separator
21
+ - section_separator_vertical_swift: Vertical
22
+ - section_separator_children_swift: Children
23
+ - section_separator_props_swift: ""
@@ -2,22 +2,12 @@
2
2
 
3
3
  <br>
4
4
 
5
- <%= pb_rails("star_rating", props: { rating: 1 }) %>
6
-
7
- <br>
8
-
9
- <%= pb_rails("star_rating", props: { rating: 2}) %>
10
-
11
- <br>
12
-
13
5
  <%= pb_rails("star_rating", props: { rating: 3 }) %>
14
6
 
15
7
  <br>
16
8
 
17
- <%= pb_rails("star_rating", props: { rating: 4 }) %>
9
+ <%= pb_rails("star_rating", props: { rating: 1.5 }) %>
18
10
 
19
11
  <br>
20
12
 
21
13
  <%= pb_rails("star_rating", props: { rating: 5 }) %>
22
-
23
- <br>
@@ -4,21 +4,7 @@ import StarRating from '../_star_rating'
4
4
 
5
5
  const StarRatingDefault = (props) => (
6
6
  <>
7
- <StarRating {...props} />
8
-
9
- <br />
10
-
11
- <StarRating
12
- rating={0.9}
13
- {...props}
14
- />
15
-
16
- <br />
17
-
18
- <StarRating
19
- rating={1.5}
20
- {...props}
21
- />
7
+ <StarRating />
22
8
 
23
9
  <br />
24
10
 
@@ -30,11 +16,10 @@ const StarRatingDefault = (props) => (
30
16
  <br />
31
17
 
32
18
  <StarRating
33
- rating={4.2}
19
+ rating={1.5}
34
20
  {...props}
35
21
  />
36
22
 
37
-
38
23
  <br />
39
24
 
40
25
  <StarRating
@@ -1,6 +1 @@
1
- <%= pb_rails("star_rating", props: { rating: 3 }) %>
2
- </br>
3
- <%= pb_rails("star_rating", props: { rating: 3, layout_option: "number" }) %>
4
- </br>
5
- <%= pb_rails("star_rating", props: { rating: 3, layout_option: "onestar" }) %>
6
- </br>
1
+ <%= pb_rails("star_rating", props: { rating: 3.5, hide_rating: true }) %>
@@ -3,30 +3,13 @@ import React from 'react'
3
3
  import StarRating from '../_star_rating'
4
4
 
5
5
  const StarRatingHide = (props) => (
6
- <>
7
6
 
8
- <StarRating
9
- rating={3}
10
- {...props}
11
- />
7
+ <StarRating
8
+ hideRating
9
+ rating={3.5}
10
+ {...props}
11
+ />
12
12
 
13
- <br />
14
-
15
- <StarRating
16
- layoutOption={"number"}
17
- rating={3}
18
- {...props}
19
- />
20
-
21
- <br />
22
-
23
- <StarRating
24
- layoutOption={"onestar"}
25
- rating={3}
26
- {...props}
27
- />
28
-
29
- </>
30
13
  )
31
14
 
32
15
  export default StarRatingHide
@@ -1,14 +1,9 @@
1
1
  examples:
2
+
2
3
  rails:
3
- - star_rating_default: Default
4
- - star_rating_color_options: Color Options
5
- - star_rating_hide: Layout Options
6
- - star_rating_number_config: Number Config
7
- - star_rating_size_options: Size Options
4
+ - star_rating_default: Default
5
+ - star_rating_hide: Hide Rating Value
8
6
 
9
7
  react:
10
- - star_rating_default: Default
11
- - star_rating_color_options: Color Options
12
- - star_rating_hide: Layout Options
13
- - star_rating_number_config: Number Config
14
- - star_rating_size_options: Size Options
8
+ - star_rating_default: Default
9
+ - star_rating_hide: Hide Rating Value
@@ -1,9 +1,3 @@
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
3
  export { default as StarRatingHide } from './_star_rating_hide.jsx'
6
-
7
- export { default as StarRatingNumberConfig } from './_star_rating_number_config.jsx'
8
-
9
- export { default as StarRatingSizeOptions } from './_star_rating_size_options.jsx'
@@ -0,0 +1,27 @@
1
+ ![textarea-default](https://github.com/powerhome/playbook/assets/92755007/40eec958-63d7-4840-bf5c-f8d1e34c911a)
2
+
3
+ ```swift
4
+
5
+ @State var defaultText = ""
6
+ @State var placeholderText = ""
7
+ @State var customText = "Default value text"
8
+
9
+ VStack(alignment: .leading, spacing: Spacing.small) {
10
+ PBTextArea(
11
+ "Label",
12
+ text: $defaultText
13
+ )
14
+
15
+ PBTextArea(
16
+ "Label",
17
+ text: $placeholderText,
18
+ placeholder: "Placeholder with text"
19
+ )
20
+
21
+ PBTextArea(
22
+ "Label",
23
+ text: $customText
24
+ )
25
+ }
26
+
27
+ ```
@@ -0,0 +1,11 @@
1
+ ![textarea-error](https://github.com/powerhome/playbook/assets/92755007/6d47a914-ea0b-4fbc-9f2a-6237935a3b4c)
2
+
3
+ ```swift
4
+
5
+ PBTextArea(
6
+ "Label",
7
+ text: $errorText,
8
+ error: "This field has an error!"
9
+ )
10
+
11
+ ```
@@ -0,0 +1,9 @@
1
+ ### Props
2
+ | Name | Type | Description | Default | Values |
3
+ | --- | ----------- | --------- | --------- | --------- |
4
+ | **characterCount** | `CharacterCount` | Adds a character counter to the Textarea | `.noCount` | `.noCount` `.count` `.maxCharacterCount` `.maxCharacterCountBlock` `.maxCharacterCountError` |
5
+ | **inline** | `Bool` | Changes the style of the Textarea | `false` | `true` `false` |
6
+ | **label** | `String` | Adds a label | `nil` | |
7
+ | **placeholder** | `String` | Adds placeholder text | `nil` | |
8
+ | **text** | `String` | Sets the Textarea's text value | `Binding<String>` | |
9
+ | **error** | `String` | Changes the style of the Textarea | `nil` | |
@@ -15,3 +15,8 @@ examples:
15
15
  - textarea_error: Textarea w/ Error
16
16
  - textarea_character_counter: Character Counter
17
17
  - textarea_inline: Inline
18
+
19
+ swift:
20
+ - textarea_default_swift: Default
21
+ - textarea_error_swift: Textarea w/ Error
22
+ - textarea_props_swift: ""