playbook_ui 12.37.0.pre.alpha.svgiconmethods1064 → 12.38.0.pre.alpha.PLAY966collapsiblenav41082

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_collapsible/_collapsible.scss +6 -0
  3. data/app/pb_kits/playbook/pb_collapsible/_collapsible.tsx +3 -3
  4. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.tsx +10 -9
  5. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_color.jsx +2 -2
  6. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.jsx +2 -2
  7. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.jsx +4 -8
  8. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.md +1 -1
  9. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_size.jsx +5 -5
  10. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_state.jsx +75 -0
  11. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_state.md +3 -0
  12. data/app/pb_kits/playbook/pb_collapsible/docs/example.yml +7 -6
  13. data/app/pb_kits/playbook/pb_collapsible/docs/index.js +2 -1
  14. data/app/pb_kits/playbook/pb_date/_date.tsx +7 -8
  15. data/app/pb_kits/playbook/pb_date/docs/_date_alignment.jsx +2 -2
  16. data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +29 -5
  17. data/app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx +2 -2
  18. data/app/pb_kits/playbook/pb_date/docs/_date_variants.jsx +5 -5
  19. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.tsx +45 -31
  20. data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.tsx +5 -3
  21. data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.tsx +24 -21
  22. data/app/pb_kits/playbook/pb_date_time/_date_time.tsx +1 -1
  23. data/app/pb_kits/playbook/pb_date_time/dateTime.test.js +1 -1
  24. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.tsx +2 -2
  25. data/app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.test.js +1 -1
  26. data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.tsx +6 -8
  27. data/app/pb_kits/playbook/pb_icon/docs/_icon_animate.html.erb +0 -1
  28. data/app/pb_kits/playbook/pb_icon/docs/_icon_custom.html.erb +0 -2
  29. data/app/pb_kits/playbook/pb_icon/docs/example.yml +9 -10
  30. data/app/pb_kits/playbook/pb_icon/icon.html.erb +3 -3
  31. data/app/pb_kits/playbook/pb_icon/icon.rb +0 -19
  32. data/app/pb_kits/playbook/pb_kit/dateTime.ts +146 -63
  33. data/app/pb_kits/playbook/pb_label_value/_label_value.tsx +52 -31
  34. data/app/pb_kits/playbook/pb_message/_message.tsx +24 -24
  35. data/app/pb_kits/playbook/pb_nav/_collapsible_nav.scss +280 -17
  36. data/app/pb_kits/playbook/pb_nav/_horizontal_nav.scss +6 -0
  37. data/app/pb_kits/playbook/pb_nav/_item.tsx +75 -24
  38. data/app/pb_kits/playbook/pb_nav/_mixins.scss +5 -0
  39. data/app/pb_kits/playbook/pb_nav/_nav.tsx +18 -1
  40. data/app/pb_kits/playbook/pb_nav/_subtle_mixin.scss +6 -7
  41. data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +1 -1
  42. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.jsx +85 -58
  43. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.md +1 -0
  44. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom.jsx +58 -0
  45. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom.md +1 -0
  46. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_emphasize.html.erb +23 -0
  47. data/app/pb_kits/playbook/pb_nav/docs/{_collapsible_nav_custom_icons.jsx → _collapsible_nav_emphasize.jsx} +14 -5
  48. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_emphasize.md +1 -0
  49. data/app/pb_kits/playbook/pb_nav/docs/example.yml +5 -3
  50. data/app/pb_kits/playbook/pb_nav/docs/index.js +2 -1
  51. data/app/pb_kits/playbook/pb_nav/item.html.erb +5 -4
  52. data/app/pb_kits/playbook/pb_nav/item.rb +29 -3
  53. data/app/pb_kits/playbook/pb_time/_time.tsx +9 -11
  54. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.tsx +46 -49
  55. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.tsx +4 -6
  56. data/app/pb_kits/playbook/pb_timestamp/_timestamp.tsx +11 -11
  57. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.tsx +8 -11
  58. data/dist/playbook-rails.js +7 -7
  59. data/lib/playbook/version.rb +2 -2
  60. metadata +11 -5
  61. data/app/pb_kits/playbook/pb_icon/docs/_icon_svg.html.erb +0 -5
  62. data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +0 -120
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "12.37.0"
5
- VERSION = "12.37.0.pre.alpha.svgiconmethods1064"
4
+ PREVIOUS_VERSION = "12.38.0"
5
+ VERSION = "12.38.0.pre.alpha.PLAY966collapsiblenav41082"
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: 12.37.0.pre.alpha.svgiconmethods1064
4
+ version: 12.38.0.pre.alpha.PLAY966collapsiblenav41082
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-08-11 00:00:00.000000000 Z
12
+ date: 2023-08-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -616,6 +616,8 @@ files:
616
616
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_size.html.erb
617
617
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_size.jsx
618
618
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_size.md
619
+ - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_state.jsx
620
+ - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_state.md
619
621
  - app/pb_kits/playbook/pb_collapsible/docs/example.yml
620
622
  - app/pb_kits/playbook/pb_collapsible/docs/index.js
621
623
  - app/pb_kits/playbook/pb_collapsible/index.js
@@ -1195,7 +1197,6 @@ files:
1195
1197
  - app/pb_kits/playbook/pb_icon/docs/_icon_rotate.jsx
1196
1198
  - app/pb_kits/playbook/pb_icon/docs/_icon_sizes.html.erb
1197
1199
  - app/pb_kits/playbook/pb_icon/docs/_icon_sizes.jsx
1198
- - app/pb_kits/playbook/pb_icon/docs/_icon_svg.html.erb
1199
1200
  - app/pb_kits/playbook/pb_icon/docs/example.yml
1200
1201
  - app/pb_kits/playbook/pb_icon/docs/index.js
1201
1202
  - app/pb_kits/playbook/pb_icon/icon.html.erb
@@ -1435,7 +1436,6 @@ files:
1435
1436
  - app/pb_kits/playbook/pb_loading_inline/loading_inline.html.erb
1436
1437
  - app/pb_kits/playbook/pb_loading_inline/loading_inline.rb
1437
1438
  - app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
1438
- - app/pb_kits/playbook/pb_logistic/_logistic.jsx
1439
1439
  - app/pb_kits/playbook/pb_map/_map.scss
1440
1440
  - app/pb_kits/playbook/pb_map/_map.tsx
1441
1441
  - app/pb_kits/playbook/pb_map/_map_controls.tsx
@@ -1521,6 +1521,7 @@ files:
1521
1521
  - app/pb_kits/playbook/pb_nav/_collapsible_nav.scss
1522
1522
  - app/pb_kits/playbook/pb_nav/_horizontal_nav.scss
1523
1523
  - app/pb_kits/playbook/pb_nav/_item.tsx
1524
+ - app/pb_kits/playbook/pb_nav/_mixins.scss
1524
1525
  - app/pb_kits/playbook/pb_nav/_nav.scss
1525
1526
  - app/pb_kits/playbook/pb_nav/_nav.test.js
1526
1527
  - app/pb_kits/playbook/pb_nav/_nav.tsx
@@ -1539,7 +1540,12 @@ files:
1539
1540
  - app/pb_kits/playbook/pb_nav/docs/_borderless_nav.jsx
1540
1541
  - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.html.erb
1541
1542
  - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.jsx
1542
- - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom_icons.jsx
1543
+ - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.md
1544
+ - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom.jsx
1545
+ - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom.md
1546
+ - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_emphasize.html.erb
1547
+ - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_emphasize.jsx
1548
+ - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_emphasize.md
1543
1549
  - app/pb_kits/playbook/pb_nav/docs/_default_nav.html.erb
1544
1550
  - app/pb_kits/playbook/pb_nav/docs/_default_nav.jsx
1545
1551
  - app/pb_kits/playbook/pb_nav/docs/_description.md
@@ -1,5 +0,0 @@
1
- <%= pb_rails("icon", props: { size: "5x", custom_icon: "copilot", padding_left: "xl" } ) %>
2
- <%= pb_rails("icon", props: { size: "5x", custom_icon: "squirrel", padding_left: "xl" } ) %>
3
-
4
-
5
-
@@ -1,120 +0,0 @@
1
- /* @flow */
2
-
3
- import React from 'react'
4
- import classnames from 'classnames'
5
-
6
- import DateTime from '../pb_kit/dateTime'
7
- import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
8
- import { globalProps } from '../utilities/globalProps'
9
-
10
- import Body from '../pb_body/_body'
11
- import Caption from '../pb_caption/_caption'
12
- import Icon from '../pb_icon/_icon'
13
- import Title from '../pb_title/_title'
14
-
15
- const dateString = (value: DateTime) => {
16
- const month = value.toMonthNum()
17
- const day = value.toDay()
18
-
19
- return ` · ${month}/${day}`
20
- }
21
-
22
- type LogisticProps = {
23
- aria?: object,
24
- className?: string,
25
- dark?: boolean,
26
- data?: object,
27
- date: string,
28
- id?: string,
29
- link?: string,
30
- projectName?: string,
31
- projectNumber?: number,
32
- }
33
-
34
- const Logistic = (props: LogisticProps) => {
35
- const { aria = {},
36
- className,
37
- dark = false,
38
- data = {},
39
- date,
40
- id,
41
- link,
42
- projectName,
43
- projectNumber } = props
44
-
45
- const ariaProps = buildAriaProps(aria)
46
- const dataProps = buildDataProps(data)
47
- const formattedDate = new DateTime({ value: date })
48
- const classes = classnames(
49
- buildCss('pb_logistic_kit', { dark }),
50
- globalProps(props),
51
- className
52
- )
53
-
54
- return (
55
- <div
56
- {...ariaProps}
57
- {...dataProps}
58
- className={classes}
59
- id={id}
60
- >
61
- <Body color="light">
62
- <Caption text="Project" />
63
- <Icon
64
- fixedWidth
65
- icon="home"
66
- />
67
-
68
- {` ${projectNumber}`}
69
-
70
- <Choose>
71
- <When condition={link}>
72
- <a
73
- className="pb_logistic_kit_links"
74
- href={link}
75
- >
76
- <Choose>
77
- <When condition={date}>
78
- <Title
79
- size={4}
80
- tag="span"
81
- text={' ' + projectName + dateString(formattedDate)}
82
- />
83
- </When>
84
- <Otherwise>
85
- <Title
86
- size={4}
87
- tag="span"
88
- text={' ' + projectName}
89
- />
90
- </Otherwise>
91
- </Choose>
92
- </a>
93
- </When>
94
- <Otherwise>
95
- <Choose>
96
- <When condition={date}>
97
- <Title
98
- dark={dark}
99
- size={4}
100
- tag="span"
101
- text={' ' + projectName + dateString(formattedDate)}
102
- />
103
- </When>
104
- <Otherwise>
105
- <Title
106
- dark={dark}
107
- size={4}
108
- tag="span"
109
- text={' ' + projectName}
110
- />
111
- </Otherwise>
112
- </Choose>
113
- </Otherwise>
114
- </Choose>
115
- </Body>
116
- </div>
117
- )
118
- }
119
-
120
- export default Logistic