playbook_ui 12.4.0.pre.alpha.map1 → 12.5.0.pre.alpha.filter1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +37 -33
  3. data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.tsx +72 -0
  4. data/app/pb_kits/playbook/pb_filter/Filter/{FilterBackground.jsx → FilterBackground.tsx} +12 -14
  5. data/app/pb_kits/playbook/pb_filter/Filter/{FilterDouble.jsx → FilterDouble.tsx} +7 -8
  6. data/app/pb_kits/playbook/pb_filter/Filter/{FilterSingle.jsx → FilterSingle.tsx} +25 -25
  7. data/app/pb_kits/playbook/pb_filter/Filter/{FiltersPopover.jsx → FiltersPopover.tsx} +13 -11
  8. data/app/pb_kits/playbook/pb_filter/Filter/{ResultsCount.jsx → ResultsCount.tsx} +39 -14
  9. data/app/pb_kits/playbook/pb_filter/Filter/{SortMenu.jsx → SortMenu.tsx} +6 -6
  10. data/app/pb_kits/playbook/pb_filter/Filter/{index.jsx → index.tsx} +17 -10
  11. data/app/pb_kits/playbook/pb_filter/{_filter.jsx → _filter.tsx} +0 -2
  12. data/app/pb_kits/playbook/pb_list/_list.tsx +2 -2
  13. data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.tsx +55 -0
  14. data/app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js +41 -0
  15. data/app/pb_kits/playbook/pb_map/docs/_map_default.jsx +0 -1
  16. data/app/pb_kits/playbook/pb_map/docs/_map_default.md +3 -3
  17. data/app/pb_kits/playbook/pb_map/docs/_map_with_plugin.jsx +7 -6
  18. data/app/pb_kits/playbook/pb_message/{_message.jsx → _message.tsx} +35 -35
  19. data/app/pb_kits/playbook/pb_message/message.test.js +63 -0
  20. data/app/pb_kits/playbook/pb_passphrase/{_passphrase.jsx → _passphrase.tsx} +56 -56
  21. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.html.erb +3 -0
  22. data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +3 -0
  23. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.html.erb +15 -0
  24. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +43 -0
  25. data/app/pb_kits/playbook/pb_popover/_popover.tsx +36 -35
  26. data/app/pb_kits/playbook/pb_selectable_list/_selectable_list.scss +1 -1
  27. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +4 -0
  28. data/app/pb_kits/playbook/playbook-rails-react-bindings.js +2 -0
  29. data/lib/playbook/version.rb +2 -2
  30. metadata +19 -14
  31. data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.jsx +0 -76
  32. data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx +0 -37
@@ -17,6 +17,7 @@ import Passphrase from './pb_passphrase/_passphrase'
17
17
  import RichTextEditor from './pb_rich_text_editor/_rich_text_editor'
18
18
  import TreemapChart from './pb_treemap_chart/_treemap_chart'
19
19
  import Typeahead from './pb_typeahead/_typeahead'
20
+ import PhoneNumberInput from './pb_phone_number_input/_phone_number_input'
20
21
 
21
22
  WebpackerReact.registerComponents({
22
23
  BarGraph,
@@ -33,6 +34,7 @@ WebpackerReact.registerComponents({
33
34
  TreemapChart,
34
35
  Typeahead,
35
36
  Gauge,
37
+ PhoneNumberInput
36
38
  })
37
39
 
38
40
  ujs.setup(
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "12.4.0"
5
- VERSION = "12.4.0.pre.alpha.map1"
4
+ PREVIOUS_VERSION = "12.5.0.pre.alpha.filter1"
5
+ VERSION = "12.5.0.pre.alpha.filter1"
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.4.0.pre.alpha.map1
4
+ version: 12.5.0.pre.alpha.filter1
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-02-24 00:00:00.000000000 Z
12
+ date: 2023-02-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -910,16 +910,16 @@ files:
910
910
  - app/pb_kits/playbook/pb_file_upload/docs/example.yml
911
911
  - app/pb_kits/playbook/pb_file_upload/docs/index.js
912
912
  - app/pb_kits/playbook/pb_file_upload/fileupload.test.js
913
- - app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.jsx
914
- - app/pb_kits/playbook/pb_filter/Filter/FilterBackground.jsx
915
- - app/pb_kits/playbook/pb_filter/Filter/FilterDouble.jsx
916
- - app/pb_kits/playbook/pb_filter/Filter/FilterSingle.jsx
917
- - app/pb_kits/playbook/pb_filter/Filter/FiltersPopover.jsx
918
- - app/pb_kits/playbook/pb_filter/Filter/ResultsCount.jsx
919
- - app/pb_kits/playbook/pb_filter/Filter/SortMenu.jsx
920
- - app/pb_kits/playbook/pb_filter/Filter/index.jsx
921
- - app/pb_kits/playbook/pb_filter/_filter.jsx
913
+ - app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.tsx
914
+ - app/pb_kits/playbook/pb_filter/Filter/FilterBackground.tsx
915
+ - app/pb_kits/playbook/pb_filter/Filter/FilterDouble.tsx
916
+ - app/pb_kits/playbook/pb_filter/Filter/FilterSingle.tsx
917
+ - app/pb_kits/playbook/pb_filter/Filter/FiltersPopover.tsx
918
+ - app/pb_kits/playbook/pb_filter/Filter/ResultsCount.tsx
919
+ - app/pb_kits/playbook/pb_filter/Filter/SortMenu.tsx
920
+ - app/pb_kits/playbook/pb_filter/Filter/index.tsx
922
921
  - app/pb_kits/playbook/pb_filter/_filter.scss
922
+ - app/pb_kits/playbook/pb_filter/_filter.tsx
923
923
  - app/pb_kits/playbook/pb_filter/docs/_description.md
924
924
  - app/pb_kits/playbook/pb_filter/docs/_filter_default.html.erb
925
925
  - app/pb_kits/playbook/pb_filter/docs/_filter_default.jsx
@@ -1379,8 +1379,8 @@ files:
1379
1379
  - app/pb_kits/playbook/pb_list/item.rb
1380
1380
  - app/pb_kits/playbook/pb_list/list.html.erb
1381
1381
  - app/pb_kits/playbook/pb_list/list.rb
1382
- - app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx
1383
1382
  - app/pb_kits/playbook/pb_loading_inline/_loading_inline.scss
1383
+ - app/pb_kits/playbook/pb_loading_inline/_loading_inline.tsx
1384
1384
  - app/pb_kits/playbook/pb_loading_inline/docs/_description.md
1385
1385
  - app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_light.html.erb
1386
1386
  - app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_light.jsx
@@ -1388,6 +1388,7 @@ files:
1388
1388
  - app/pb_kits/playbook/pb_loading_inline/docs/index.js
1389
1389
  - app/pb_kits/playbook/pb_loading_inline/loading_inline.html.erb
1390
1390
  - app/pb_kits/playbook/pb_loading_inline/loading_inline.rb
1391
+ - app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
1391
1392
  - app/pb_kits/playbook/pb_logistic/_logistic.jsx
1392
1393
  - app/pb_kits/playbook/pb_map/_map.scss
1393
1394
  - app/pb_kits/playbook/pb_map/_map.tsx
@@ -1399,8 +1400,8 @@ files:
1399
1400
  - app/pb_kits/playbook/pb_map/docs/index.js
1400
1401
  - app/pb_kits/playbook/pb_map/map.test.jsx
1401
1402
  - app/pb_kits/playbook/pb_map/pbMapTheme.ts
1402
- - app/pb_kits/playbook/pb_message/_message.jsx
1403
1403
  - app/pb_kits/playbook/pb_message/_message.scss
1404
+ - app/pb_kits/playbook/pb_message/_message.tsx
1404
1405
  - app/pb_kits/playbook/pb_message/_message_mixins.scss
1405
1406
  - app/pb_kits/playbook/pb_message/docs/_description.md
1406
1407
  - app/pb_kits/playbook/pb_message/docs/_footer.md
@@ -1413,6 +1414,7 @@ files:
1413
1414
  - app/pb_kits/playbook/pb_message/docs/index.js
1414
1415
  - app/pb_kits/playbook/pb_message/message.html.erb
1415
1416
  - app/pb_kits/playbook/pb_message/message.rb
1417
+ - app/pb_kits/playbook/pb_message/message.test.js
1416
1418
  - app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx
1417
1419
  - app/pb_kits/playbook/pb_multiple_users/_multiple_users.scss
1418
1420
  - app/pb_kits/playbook/pb_multiple_users/docs/_description.md
@@ -1497,8 +1499,8 @@ files:
1497
1499
  - app/pb_kits/playbook/pb_pagination/docs/example.yml
1498
1500
  - app/pb_kits/playbook/pb_pagination/pagination.html.erb
1499
1501
  - app/pb_kits/playbook/pb_pagination/pagination.rb
1500
- - app/pb_kits/playbook/pb_passphrase/_passphrase.jsx
1501
1502
  - app/pb_kits/playbook/pb_passphrase/_passphrase.scss
1503
+ - app/pb_kits/playbook/pb_passphrase/_passphrase.tsx
1502
1504
  - app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.html.erb
1503
1505
  - app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.jsx
1504
1506
  - app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.md
@@ -1556,6 +1558,7 @@ files:
1556
1558
  - app/pb_kits/playbook/pb_person_contact/person_contact.rb
1557
1559
  - app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss
1558
1560
  - app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx
1561
+ - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.html.erb
1559
1562
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.jsx
1560
1563
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.md
1561
1564
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_initial_country.jsx
@@ -1566,6 +1569,8 @@ files:
1566
1569
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.md
1567
1570
  - app/pb_kits/playbook/pb_phone_number_input/docs/example.yml
1568
1571
  - app/pb_kits/playbook/pb_phone_number_input/docs/index.js
1572
+ - app/pb_kits/playbook/pb_phone_number_input/phone_number_input.html.erb
1573
+ - app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb
1569
1574
  - app/pb_kits/playbook/pb_phone_number_input/phone_number_input.test.js
1570
1575
  - app/pb_kits/playbook/pb_phone_number_input/types.d.ts
1571
1576
  - app/pb_kits/playbook/pb_pill/_pill.scss
@@ -1,76 +0,0 @@
1
- /* @flow */
2
-
3
- import React from 'react'
4
- import { isEmpty, map, omitBy } from 'lodash'
5
-
6
- import Body from '../../pb_body/_body'
7
- import Caption from '../../pb_caption/_caption'
8
- import Title from '../../pb_title/_title'
9
-
10
- export type FilterDescription = {
11
- [key: string]: ?string | boolean,
12
- }
13
-
14
- export type CurrentFiltersProps = {
15
- dark: boolean,
16
- filters: FilterDescription,
17
- }
18
-
19
- const hiddenFilters = (value) => isEmpty(value) && value !== true
20
-
21
- const CurrentFilters = ({ dark, filters }: CurrentFiltersProps) => {
22
- const displayableFilters = omitBy(filters, hiddenFilters)
23
-
24
- return (
25
- <div className="maskContainer">
26
- <If condition={isEmpty(filters)}>
27
- <div className="filters">
28
- <Body
29
- color="light"
30
- paddingLeft="xs"
31
- size={4}
32
- tag="h4"
33
- text="No Filter Selected"
34
- />
35
- </div>
36
- </If>
37
- <If condition={!isEmpty(filters)}>
38
- <div className="filters">
39
- <div className="left_gradient" />
40
- {map(displayableFilters, (value, name) => (
41
- <div
42
- className="filter"
43
- key={`filter-${name}`}
44
- >
45
- <Choose>
46
- <When condition={value === true}>
47
- <Title
48
- dark={dark}
49
- size={4}
50
- tag="h4"
51
- text={name}
52
- />
53
- </When>
54
- <Otherwise>
55
- <Caption
56
- dark={dark}
57
- text={name}
58
- />
59
- <Title
60
- dark={dark}
61
- size={4}
62
- tag="h4"
63
- text={value}
64
- />
65
- </Otherwise>
66
- </Choose>
67
- </div>
68
- ))}
69
- <div className="right_gradient" />
70
- </div>
71
- </If>
72
- </div>
73
- )
74
- }
75
-
76
- export default CurrentFilters
@@ -1,37 +0,0 @@
1
- /* @flow */
2
-
3
- import React from 'react'
4
- import classnames from 'classnames'
5
-
6
- import { globalProps } from '../utilities/globalProps'
7
-
8
- import Body from '../pb_body/_body'
9
- import Icon from '../pb_icon/_icon'
10
- type LoadingInlineProps = {
11
- align?: "left" | "center" | "right",
12
- className?: string,
13
- dark?: boolean,
14
- data?: string,
15
- id?: string,
16
- }
17
-
18
- const LoadingInline = (props: LoadingInlineProps) => {
19
- const { align = 'left' } = props
20
- return (
21
- <div
22
- className={classnames(`pb_loading_inline_kit_${align}`, globalProps(props))}
23
- >
24
- <Body color="light">
25
- <Icon
26
- aria={{ label: 'loading icon' }}
27
- fixedWidth
28
- icon="spinner"
29
- pulse
30
- />
31
- {' Loading'}
32
- </Body>
33
- </div>
34
- )
35
- }
36
-
37
- export default LoadingInline