playbook_ui 13.13.0.pre.alpha.PLAY1097linterenhancedelement1728 → 13.13.0.pre.alpha.play900startratingasinput1657

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) 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_enhanced_element/element_observer.ts +1 -1
  5. data/app/pb_kits/playbook/pb_enhanced_element/index.ts +1 -1
  6. data/app/pb_kits/playbook/pb_home_address_street/docs/example.yml +0 -6
  7. data/app/pb_kits/playbook/pb_star_rating/_star_rating.scss +105 -53
  8. data/app/pb_kits/playbook/pb_star_rating/_star_rating.tsx +179 -62
  9. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_background_options.html.erb +2 -0
  10. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_background_options.jsx +25 -0
  11. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_color_options.html.erb +3 -0
  12. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_color_options.jsx +31 -0
  13. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.html.erb +6 -8
  14. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.jsx +19 -6
  15. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.html.erb +3 -1
  16. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.jsx +22 -5
  17. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.html.erb +6 -0
  18. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.jsx +58 -0
  19. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.html.erb +16 -0
  20. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.jsx +60 -0
  21. data/app/pb_kits/playbook/pb_star_rating/docs/example.yml +12 -5
  22. data/app/pb_kits/playbook/pb_star_rating/docs/index.js +8 -0
  23. data/app/pb_kits/playbook/pb_star_rating/star_rating.html.erb +48 -26
  24. data/app/pb_kits/playbook/pb_star_rating/star_rating.rb +82 -6
  25. data/app/pb_kits/playbook/pb_star_rating/star_rating.test.js +34 -34
  26. data/app/pb_kits/playbook/pb_star_rating/stars/primary_star.svg +3 -0
  27. data/app/pb_kits/playbook/pb_star_rating/stars/star_outline.svg +3 -0
  28. data/app/pb_kits/playbook/pb_star_rating/stars/subtle_dark_star.svg +3 -0
  29. data/app/pb_kits/playbook/pb_star_rating/stars/subtle_star.svg +3 -0
  30. data/app/pb_kits/playbook/pb_star_rating/stars/yellow_star.svg +3 -0
  31. data/dist/menu.yml +168 -240
  32. data/dist/playbook-rails.js +5 -5
  33. data/lib/playbook/version.rb +1 -1
  34. metadata +15 -15
  35. data/app/pb_kits/playbook/pb_contact/docs/_contact_default_swift.md +0 -14
  36. data/app/pb_kits/playbook/pb_contact/docs/_contact_props_swift.md +0 -6
  37. data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail_swift.md +0 -14
  38. data/app/pb_kits/playbook/pb_date/docs/_date_alignment_swift.md +0 -11
  39. data/app/pb_kits/playbook/pb_date/docs/_date_default_swift.md +0 -16
  40. data/app/pb_kits/playbook/pb_date/docs/_date_props_swift.md +0 -8
  41. data/app/pb_kits/playbook/pb_date/docs/_date_unstyled_swift.md +0 -11
  42. data/app/pb_kits/playbook/pb_date/docs/_date_variants_swift.md +0 -14
  43. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_default_swift.md +0 -18
  44. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis_swift.md +0 -34
  45. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_link_swift.md +0 -18
  46. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_modified_swift.md +0 -13
  47. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_props_swift.md +0 -14
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "13.13.0"
5
- VERSION = "13.13.0.pre.alpha.PLAY1097linterenhancedelement1728"
5
+ VERSION = "13.13.0.pre.alpha.play900startratingasinput1657"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.13.0.pre.alpha.PLAY1097linterenhancedelement1728
4
+ version: 13.13.0.pre.alpha.play900startratingasinput1657
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-12-19 00:00:00.000000000 Z
12
+ date: 2023-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -661,11 +661,8 @@ files:
661
661
  - app/pb_kits/playbook/pb_contact/contact.test.js
662
662
  - app/pb_kits/playbook/pb_contact/docs/_contact_default.html.erb
663
663
  - app/pb_kits/playbook/pb_contact/docs/_contact_default.jsx
664
- - app/pb_kits/playbook/pb_contact/docs/_contact_default_swift.md
665
- - app/pb_kits/playbook/pb_contact/docs/_contact_props_swift.md
666
664
  - app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.html.erb
667
665
  - app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.jsx
668
- - app/pb_kits/playbook/pb_contact/docs/_contact_with_detail_swift.md
669
666
  - app/pb_kits/playbook/pb_contact/docs/_description.md
670
667
  - app/pb_kits/playbook/pb_contact/docs/example.yml
671
668
  - app/pb_kits/playbook/pb_contact/docs/index.js
@@ -716,20 +713,15 @@ files:
716
713
  - app/pb_kits/playbook/pb_date/date.rb
717
714
  - app/pb_kits/playbook/pb_date/docs/_date_alignment.html.erb
718
715
  - app/pb_kits/playbook/pb_date/docs/_date_alignment.jsx
719
- - app/pb_kits/playbook/pb_date/docs/_date_alignment_swift.md
720
716
  - app/pb_kits/playbook/pb_date/docs/_date_default.html.erb
721
717
  - app/pb_kits/playbook/pb_date/docs/_date_default.jsx
722
- - app/pb_kits/playbook/pb_date/docs/_date_default_swift.md
723
- - app/pb_kits/playbook/pb_date/docs/_date_props_swift.md
724
718
  - app/pb_kits/playbook/pb_date/docs/_date_timezone.html.erb
725
719
  - app/pb_kits/playbook/pb_date/docs/_date_timezone.md
726
720
  - app/pb_kits/playbook/pb_date/docs/_date_unstyled.html.erb
727
721
  - app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx
728
722
  - app/pb_kits/playbook/pb_date/docs/_date_unstyled.md
729
- - app/pb_kits/playbook/pb_date/docs/_date_unstyled_swift.md
730
723
  - app/pb_kits/playbook/pb_date/docs/_date_variants.html.erb
731
724
  - app/pb_kits/playbook/pb_date/docs/_date_variants.jsx
732
- - app/pb_kits/playbook/pb_date/docs/_date_variants_swift.md
733
725
  - app/pb_kits/playbook/pb_date/docs/_description.md
734
726
  - app/pb_kits/playbook/pb_date/docs/example.yml
735
727
  - app/pb_kits/playbook/pb_date/docs/index.js
@@ -1206,19 +1198,14 @@ files:
1206
1198
  - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_default.html.erb
1207
1199
  - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_default.jsx
1208
1200
  - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_default.md
1209
- - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_default_swift.md
1210
1201
  - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.html.erb
1211
1202
  - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.jsx
1212
1203
  - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.md
1213
- - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis_swift.md
1214
1204
  - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_link.html.erb
1215
1205
  - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_link.jsx
1216
1206
  - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_link.md
1217
- - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_link_swift.md
1218
1207
  - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_modified.html.erb
1219
1208
  - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_modified.jsx
1220
- - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_modified_swift.md
1221
- - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_props_swift.md
1222
1209
  - app/pb_kits/playbook/pb_home_address_street/docs/example.yml
1223
1210
  - app/pb_kits/playbook/pb_home_address_street/docs/index.js
1224
1211
  - app/pb_kits/playbook/pb_home_address_street/home_address_street.html.erb
@@ -2084,15 +2071,28 @@ files:
2084
2071
  - app/pb_kits/playbook/pb_star_rating/_star_rating.scss
2085
2072
  - app/pb_kits/playbook/pb_star_rating/_star_rating.tsx
2086
2073
  - app/pb_kits/playbook/pb_star_rating/docs/_description.md
2074
+ - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_background_options.html.erb
2075
+ - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_background_options.jsx
2076
+ - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_color_options.html.erb
2077
+ - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_color_options.jsx
2087
2078
  - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.html.erb
2088
2079
  - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.jsx
2089
2080
  - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.html.erb
2090
2081
  - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.jsx
2082
+ - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.html.erb
2083
+ - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.jsx
2084
+ - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.html.erb
2085
+ - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.jsx
2091
2086
  - app/pb_kits/playbook/pb_star_rating/docs/example.yml
2092
2087
  - app/pb_kits/playbook/pb_star_rating/docs/index.js
2093
2088
  - app/pb_kits/playbook/pb_star_rating/star_rating.html.erb
2094
2089
  - app/pb_kits/playbook/pb_star_rating/star_rating.rb
2095
2090
  - app/pb_kits/playbook/pb_star_rating/star_rating.test.js
2091
+ - app/pb_kits/playbook/pb_star_rating/stars/primary_star.svg
2092
+ - app/pb_kits/playbook/pb_star_rating/stars/star_outline.svg
2093
+ - app/pb_kits/playbook/pb_star_rating/stars/subtle_dark_star.svg
2094
+ - app/pb_kits/playbook/pb_star_rating/stars/subtle_star.svg
2095
+ - app/pb_kits/playbook/pb_star_rating/stars/yellow_star.svg
2096
2096
  - app/pb_kits/playbook/pb_stat_change/_stat_change.scss
2097
2097
  - app/pb_kits/playbook/pb_stat_change/_stat_change.tsx
2098
2098
  - app/pb_kits/playbook/pb_stat_change/docs/_description.md
@@ -1,14 +0,0 @@
1
- ![contact-default](https://github.com/powerhome/playbook/assets/92755007/4226a1e0-5f31-4445-a536-57e95b83768a)
2
-
3
- ```swift
4
-
5
- VStack(alignment: .leading, spacing: Spacing.small) {
6
- PBContact(type: .cell, value: "3491859988")
7
- PBContact(value: "5555555555")
8
- PBContact(type: .email, value: "email@example.com")
9
- PBContact(type: .work, value: "3245627482")
10
- PBContact(type: .workCell, value: "3245627482")
11
- }
12
-
13
-
14
- ```
@@ -1,6 +0,0 @@
1
- ### Props
2
- | Name | Type | Description | Default | Values |
3
- | --- | ----------- | --------- | --------- | --------- |
4
- | **detail** | `Bool` | Displays text describing the Contact's type | `false` | `true` `false` |
5
- | **contactValue** | `String` | Sets the Contact's text value | | |
6
- | **type** | `ContactType` | Sets the icon | `.home` | `cell` `email` `home` `work` `workCell` `wrongPhone` `ext` `custom` |
@@ -1,14 +0,0 @@
1
- ![contact-detail-indicator](https://github.com/powerhome/playbook/assets/92755007/2a29d4b5-6e7b-43ff-8e7c-0dbeec11627e)
2
-
3
- ```swift
4
-
5
- VStack(alignment: .leading, spacing: Spacing.small) {
6
- PBContact(type: .cell, value: "3491859988", detail: true)
7
- PBContact(value: "5555555555", detail: true)
8
- PBContact(type: .email, value: "email@example.com", detail: true)
9
- PBContact(type: .work, value: "3245627482", detail: true)
10
- PBContact(type: .ext, value: "1234", detail: true)
11
- }
12
-
13
-
14
- ```
@@ -1,11 +0,0 @@
1
- ![date-alignment](https://github.com/powerhome/playbook/assets/92755007/094761cb-5151-4de5-a8e1-f905455c2aca)
2
-
3
- ```swift
4
-
5
- VStack(spacing: Spacing.small) {
6
- PBDate(Date(), variant: .standard, typography: .title4, alignment: .leading)
7
- PBDate(Date(), variant: .withIcon(isStandard: true), typography: .title4, iconSize: .x1, alignment: .center)
8
- PBDate(Date(), variant: .short, typography: .title4, alignment: .trailing)
9
- }
10
-
11
- ```
@@ -1,16 +0,0 @@
1
- ![date-default](https://github.com/powerhome/playbook/assets/92755007/0d9f151d-2a18-445c-add3-8194c343bfea)
2
-
3
-
4
- ```swift
5
-
6
- VStack(alignment: .leading, spacing: Spacing.small) {
7
- PBDate(Date(), variant: .short)
8
- PBDate(Date(), variant: .dayDate)
9
- PBDate(Date(), variant: .standard)
10
- Spacer()
11
- PBDate(Date(), variant: .short, typography: .title4)
12
- PBDate(Date(), variant: .dayDate, typography: .title4)
13
- PBDate(Date(), variant: .standard, typography: .title4)
14
- }
15
-
16
- ```
@@ -1,8 +0,0 @@
1
- ### Props
2
- | Name | Type | Description | Default | Values |
3
- | --- | ----------- | --------- | --------- | --------- |
4
- | **datestamp** | `Date` | Sets the date | | |
5
- | **variant** | `Variant` | Changes the style | `.short` | `.short` `.dayDate` `.standard` `.withIcon(isStandard: true)` `withIcon(isStandard: false)` |
6
- | **typography** | `PBFont` | Sets the font | `.caption` | `.title1` `.title2` `.title3` `.title4` `.body` `.buttonText` `.largeCaption` `.caption` `.subcaption` `.monogram` `.badgeText` `.detail` |
7
- | **iconSize** | `PBIcon.IconSize` | Chances the icon's size | `.x1` | `xSmall` `small` `large` `x1` `x2` `x3` `x4` `x5` `x6` `x7` `x8` `x9` `x10` |
8
- | **alignment** | `Alignment` | Changes the alignment | `.leading` | `.leading` `.trailing` |
@@ -1,11 +0,0 @@
1
- ![date-unstyled](https://github.com/powerhome/playbook/assets/92755007/dc0ab7cf-0d97-407c-9aac-f53645eb6ee2)
2
-
3
- ```swift
4
-
5
- VStack(alignment: .leading, spacing: Spacing.small) {
6
- PBDate(Date(), variant: .short, typography: .body)
7
- PBDate(Date(), variant: .standard, typography: .title1)
8
- PBDate(Date(), variant: .withIcon(isStandard: false), typography: .subcaption, iconSize: .xSmall)
9
- }
10
-
11
- ```
@@ -1,14 +0,0 @@
1
- ![date-varients](https://github.com/powerhome/playbook/assets/92755007/bb240082-afb9-4802-af5f-7aaccec37aae)
2
-
3
-
4
- ```swift
5
-
6
- VStack(alignment: .leading, spacing: Spacing.small) {
7
- PBDate(Date(), variant: .withIcon(isStandard: true), typography: .caption, iconSize: .xSmall)
8
- PBDate(Date(), variant: .standard, typography: .title4)
9
- PBDate(Date(), variant: .withIcon(isStandard: true), typography: .title4, iconSize: .x1)
10
- PBDate(Date(), variant: .dayDate, typography: .title4)
11
- PBDate(Date(), variant: .withIcon(isStandard: false), typography: .title4, iconSize: .x1)
12
- }
13
-
14
- ```
@@ -1,18 +0,0 @@
1
- ![home-address-street-default](https://github.com/powerhome/playbook/assets/92755007/a4c97536-a402-4cc2-90be-4eeda3b57f6d)
2
-
3
- ```swift
4
-
5
- PBHomeAddressStreet(
6
- address: "70 Prospect Ave",
7
- withBullet: true,
8
- houseStyle: "Colonial",
9
- addressCont: "Apt M18",
10
- city: "West Chester",
11
- homeId: "8250263",
12
- homeUrl: "https://powerhrg.com/",
13
- state: "PA",
14
- territory: "PHL",
15
- zipcode: "19382"
16
- )
17
-
18
- ```
@@ -1,34 +0,0 @@
1
- ![home-address-street-emphasis](https://github.com/powerhome/playbook/assets/92755007/338ed5f9-7e06-4e4c-b71e-d0a348f7a6d6)
2
-
3
- ```swift
4
-
5
- PBHomeAddressStreet(
6
- address: "70 Prospect Ave",
7
- withBullet: true,
8
- houseStyle: "Colonial",
9
- addressCont: "Apt M18",
10
- city: "West Chester",
11
- homeId: "8250263",
12
- homeUrl: "https://powerhrg.com/",
13
- state: "PA",
14
- territory: "PHL",
15
- zipcode: "19382"
16
- )
17
-
18
- Spacer(minLength: Spacing.medium)
19
-
20
- PBHomeAddressStreet(
21
- address: "70 Prospect Ave",
22
- withBullet: true,
23
- houseStyle: "Colonial",
24
- addressCont: "Apt M18",
25
- city: "West Chester",
26
- homeId: "8250263",
27
- homeUrl: "https://powerhrg.com/",
28
- state: "PA",
29
- territory: "PHL",
30
- zipcode: "19382",
31
- emphasize: .city
32
- )
33
-
34
- ```
@@ -1,18 +0,0 @@
1
- ![home-address-street-link](https://github.com/powerhome/playbook/assets/92755007/890a61d9-896b-45a1-aa7c-c78783f3ac54)
2
-
3
- ```swift
4
-
5
- PBHomeAddressStreet(
6
- address: "70 Prospect Ave",
7
- withBullet: true,
8
- houseStyle: "Colonial",
9
- addressCont: "Apt M18",
10
- city: "West Chester",
11
- homeId: "8250263",
12
- homeUrl: "https://powerhrg.com/",
13
- state: "PA",
14
- territory: "PHL",
15
- zipcode: "19382"
16
- )
17
-
18
- ```
@@ -1,13 +0,0 @@
1
- ![home-address-street-modified](https://github.com/powerhome/playbook/assets/92755007/32e16708-896f-41c8-ae06-7bea00225b4f)
2
-
3
- ```swift
4
-
5
- PBHomeAddressStreet(
6
- address: "70 Prospect Ave",
7
- city: "West Chester",
8
- state: "PA",
9
- territory: "PHL",
10
- zipcode: "19382"
11
- )
12
-
13
- ```
@@ -1,14 +0,0 @@
1
- ### Props
2
- | Name | Type | Description | Default | Values |
3
- | --- | ----------- | --------- | --------- | --------- |
4
- | **address** | `String` | Sets the address | | |
5
- | **withBullet** | `Bool` | Adds a bullet after the address | `false` | `false` `true` |
6
- | **houseStyle** | `String` | Sets the house style | `nil` | |
7
- | **addressCont** | `String` | Sets additional address text | `nil` | |
8
- | **city** | `String` | Sets the city | | |
9
- | **homeId** | `String` | Sets the home ID | `nil` | |
10
- | **homeUrl** | `String` | Adds a URL to the homeID | `nil` | |
11
- | **state** | `String` | Sets the state | | |
12
- | **territory** | `String` | Sets the territory | | |
13
- | **zipcode** | `String` | Sets the zipcode | | |
14
- | **emphasize** | `Emphasize` | Changes text to bold | `.address` | `.address` `.city` `.cityWithZipcode` |