playbook_ui 12.27.0 → 12.28.0.pre.alpha.PLAY814removemomentjs871

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_date/_date.tsx +7 -8
  3. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.tsx +45 -31
  4. data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.tsx +5 -3
  5. data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.tsx +24 -21
  6. data/app/pb_kits/playbook/pb_date_time/_date_time.tsx +1 -1
  7. data/app/pb_kits/playbook/pb_date_time/dateTime.test.js +1 -1
  8. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.tsx +2 -2
  9. data/app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.test.js +1 -1
  10. data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.tsx +6 -8
  11. data/app/pb_kits/playbook/pb_kit/dateTime.ts +139 -67
  12. data/app/pb_kits/playbook/pb_label_value/_label_value.tsx +52 -31
  13. data/app/pb_kits/playbook/pb_message/_message.tsx +25 -25
  14. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +28 -3
  15. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_default.jsx +1 -0
  16. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +26 -5
  17. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_access_input_element.jsx +26 -0
  18. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_access_input_element.md +3 -0
  19. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_clear_field.jsx +30 -0
  20. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_clear_field.md +3 -0
  21. data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +2 -0
  22. data/app/pb_kits/playbook/pb_phone_number_input/docs/index.js +2 -0
  23. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_custom.html.erb +11 -0
  24. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_custom.jsx +36 -0
  25. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_custom.md +19 -0
  26. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/example.yml +2 -2
  27. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/index.js +1 -0
  28. data/app/pb_kits/playbook/pb_selectable_card_icon/selectable_card_icon.html.erb +2 -0
  29. data/app/pb_kits/playbook/pb_selectable_card_icon/selectable_card_icon.rb +2 -0
  30. data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.html.erb +1 -1
  31. data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.rb +2 -0
  32. data/app/pb_kits/playbook/pb_time/_time.tsx +9 -11
  33. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.tsx +46 -49
  34. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.tsx +4 -6
  35. data/app/pb_kits/playbook/pb_timestamp/_timestamp.tsx +10 -10
  36. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.tsx +8 -11
  37. data/dist/playbook-rails.js +6 -6
  38. data/lib/playbook/version.rb +2 -2
  39. metadata +14 -8
  40. 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.26.1"
5
- VERSION = "12.27.0"
4
+ PREVIOUS_VERSION = "12.28.0"
5
+ VERSION = "12.28.0.pre.alpha.PLAY814removemomentjs871"
6
6
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.27.0
4
+ version: 12.28.0.pre.alpha.PLAY814removemomentjs871
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
8
8
  - Power Devs
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-06-27 00:00:00.000000000 Z
12
+ date: 2023-07-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -1399,7 +1399,6 @@ files:
1399
1399
  - app/pb_kits/playbook/pb_loading_inline/loading_inline.html.erb
1400
1400
  - app/pb_kits/playbook/pb_loading_inline/loading_inline.rb
1401
1401
  - app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
1402
- - app/pb_kits/playbook/pb_logistic/_logistic.jsx
1403
1402
  - app/pb_kits/playbook/pb_map/_map.scss
1404
1403
  - app/pb_kits/playbook/pb_map/_map.tsx
1405
1404
  - app/pb_kits/playbook/pb_map/_pb_map_button_mixin.scss
@@ -1589,6 +1588,10 @@ files:
1589
1588
  - app/pb_kits/playbook/pb_person_contact/person_contact.test.js
1590
1589
  - app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss
1591
1590
  - app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx
1591
+ - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_access_input_element.jsx
1592
+ - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_access_input_element.md
1593
+ - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_clear_field.jsx
1594
+ - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_clear_field.md
1592
1595
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.html.erb
1593
1596
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.jsx
1594
1597
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.md
@@ -1835,6 +1838,9 @@ files:
1835
1838
  - app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.tsx
1836
1839
  - app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_checkmark.html.erb
1837
1840
  - app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_checkmark.jsx
1841
+ - app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_custom.html.erb
1842
+ - app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_custom.jsx
1843
+ - app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_custom.md
1838
1844
  - app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.html.erb
1839
1845
  - app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
1840
1846
  - app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_options.html.erb
@@ -2493,7 +2499,7 @@ homepage: https://playbook.powerapp.cloud/
2493
2499
  licenses:
2494
2500
  - ISC
2495
2501
  metadata: {}
2496
- post_install_message:
2502
+ post_install_message:
2497
2503
  rdoc_options: []
2498
2504
  require_paths:
2499
2505
  - lib
@@ -2504,12 +2510,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
2504
2510
  version: '0'
2505
2511
  required_rubygems_version: !ruby/object:Gem::Requirement
2506
2512
  requirements:
2507
- - - ">="
2513
+ - - ">"
2508
2514
  - !ruby/object:Gem::Version
2509
- version: '0'
2515
+ version: 1.3.1
2510
2516
  requirements: []
2511
2517
  rubygems_version: 3.3.7
2512
- signing_key:
2518
+ signing_key:
2513
2519
  specification_version: 4
2514
2520
  summary: Playbook Design System
2515
2521
  test_files: []
@@ -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