playbook_ui 12.4.0 → 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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/index.js +4 -1
  3. data/app/pb_kits/playbook/pb_button/_button.tsx +2 -2
  4. data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +37 -33
  5. data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.tsx +72 -0
  6. data/app/pb_kits/playbook/pb_filter/Filter/{FilterBackground.jsx → FilterBackground.tsx} +12 -14
  7. data/app/pb_kits/playbook/pb_filter/Filter/{FilterDouble.jsx → FilterDouble.tsx} +7 -8
  8. data/app/pb_kits/playbook/pb_filter/Filter/{FilterSingle.jsx → FilterSingle.tsx} +25 -25
  9. data/app/pb_kits/playbook/pb_filter/Filter/{FiltersPopover.jsx → FiltersPopover.tsx} +13 -11
  10. data/app/pb_kits/playbook/pb_filter/Filter/{ResultsCount.jsx → ResultsCount.tsx} +39 -14
  11. data/app/pb_kits/playbook/pb_filter/Filter/{SortMenu.jsx → SortMenu.tsx} +6 -6
  12. data/app/pb_kits/playbook/pb_filter/Filter/{index.jsx → index.tsx} +17 -10
  13. data/app/pb_kits/playbook/pb_filter/{_filter.jsx → _filter.tsx} +0 -2
  14. data/app/pb_kits/playbook/pb_list/_list.tsx +2 -2
  15. data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.tsx +55 -0
  16. data/app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js +41 -0
  17. data/app/pb_kits/playbook/pb_map/_map.scss +114 -2
  18. data/app/pb_kits/playbook/pb_map/_map.tsx +42 -2
  19. data/app/pb_kits/playbook/pb_map/docs/_map_default.jsx +47 -24
  20. data/app/pb_kits/playbook/pb_map/docs/_map_default.md +5 -5
  21. data/app/pb_kits/playbook/pb_map/docs/_map_with_plugin.jsx +20 -17
  22. data/app/pb_kits/playbook/pb_map/docs/example.yml +0 -1
  23. data/app/pb_kits/playbook/pb_map/pbMapTheme.ts +23 -0
  24. data/app/pb_kits/playbook/pb_message/{_message.jsx → _message.tsx} +35 -35
  25. data/app/pb_kits/playbook/pb_message/message.test.js +63 -0
  26. data/app/pb_kits/playbook/pb_passphrase/{_passphrase.jsx → _passphrase.tsx} +56 -56
  27. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.html.erb +3 -0
  28. data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +3 -0
  29. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.html.erb +15 -0
  30. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +43 -0
  31. data/app/pb_kits/playbook/pb_popover/_popover.tsx +36 -35
  32. data/app/pb_kits/playbook/pb_selectable_list/_selectable_list.scss +1 -1
  33. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +4 -0
  34. data/app/pb_kits/playbook/playbook-rails-react-bindings.js +2 -0
  35. data/lib/playbook/version.rb +2 -2
  36. metadata +22 -16
  37. data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.jsx +0 -76
  38. data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx +0 -37
@@ -15,7 +15,7 @@ import PbReactPopover from '../pb_popover/_popover'
15
15
  import TextInput from '../pb_text_input/_text_input'
16
16
 
17
17
  type PassphraseProps = {
18
- aria?: object,
18
+ aria?: { [key: string]: string },
19
19
  confirmation?: boolean,
20
20
  className?: string,
21
21
  data?: object,
@@ -23,7 +23,7 @@ type PassphraseProps = {
23
23
  id?: string,
24
24
  inputProps?: {},
25
25
  label?: string,
26
- onChange: (String) => void,
26
+ onChange: (inputValue: String) => void,
27
27
  showTipsBelow?: "always" | "xs" | "sm" | "md" | "lg" | "xl",
28
28
  tips?: Array<string>,
29
29
  uncontrolled?: boolean,
@@ -40,7 +40,7 @@ const Passphrase = (props: PassphraseProps) => {
40
40
  id,
41
41
  inputProps = {},
42
42
  label = confirmation ? "Confirm Passphrase" : "Passphrase",
43
- onChange = () => {},
43
+ onChange = () => { },
44
44
  showTipsBelow = "always",
45
45
  tips = [],
46
46
  uncontrolled = false,
@@ -62,11 +62,11 @@ const Passphrase = (props: PassphraseProps) => {
62
62
  )
63
63
 
64
64
  const toggleShowPopover = () => setShowPopover(!showPopover)
65
- const handleShouldClosePopover = (shouldClosePopover) => {
65
+ const handleShouldClosePopover = (shouldClosePopover: boolean) => {
66
66
  setShowPopover(!shouldClosePopover)
67
67
  }
68
68
 
69
- const toggleShowPassphrase = (e) => {
69
+ const toggleShowPassphrase = (e: React.MouseEvent<HTMLElement>) => {
70
70
  e.preventDefault()
71
71
  setShowPassphrase(!showPassphrase)
72
72
  }
@@ -86,54 +86,54 @@ const Passphrase = (props: PassphraseProps) => {
86
86
 
87
87
  const popoverReference = (
88
88
  <CircleIconButton
89
- className={tipClass}
90
- dark={dark}
91
- icon="info-circle"
92
- onClick={toggleShowPopover}
93
- variant="link"
89
+ className={tipClass}
90
+ dark={dark}
91
+ icon="info-circle"
92
+ onClick={toggleShowPopover}
93
+ variant="link"
94
94
  />
95
95
  )
96
96
 
97
97
  return (
98
- <div
99
- {...ariaProps}
100
- {...dataProps}
101
- className={classes}
102
- id={id}
98
+ <div
99
+ {...ariaProps}
100
+ {...dataProps}
101
+ className={classes}
102
+ id={id}
103
103
  >
104
104
  <label>
105
105
  <Flex align="baseline">
106
- <Caption
107
- className="passphrase-label"
108
- text={label}
106
+ <Caption
107
+ className="passphrase-label"
108
+ text={label}
109
109
  />
110
- <If condition={tips.length > 0 && !confirmation}>
110
+ {tips.length > 0 && !confirmation &&
111
111
  <PbReactPopover
112
- className="passphrase-tips"
113
- closeOnClick="outside"
114
- placement="right"
115
- reference={popoverReference}
116
- shouldClosePopover={handleShouldClosePopover}
117
- show={showPopover}
112
+ className="passphrase-tips"
113
+ closeOnClick="outside"
114
+ placement="right"
115
+ reference={popoverReference}
116
+ shouldClosePopover={handleShouldClosePopover}
117
+ show={showPopover}
118
118
  >
119
- <Flex
120
- align="center"
121
- orientation="column"
119
+ <Flex
120
+ align="center"
121
+ orientation="column"
122
122
  >
123
- <Caption
124
- marginBottom="xs"
125
- text="Tips for a good passphrase"
123
+ <Caption
124
+ marginBottom="xs"
125
+ text="Tips for a good passphrase"
126
126
  />
127
127
  <div>
128
128
  {tips.map((tip, i) => (
129
- <Caption
130
- key={i}
131
- marginBottom="xs"
132
- size="xs"
129
+ <Caption
130
+ key={i}
131
+ marginBottom="xs"
132
+ size="xs"
133
133
  >
134
- <Icon
135
- icon="shield-check"
136
- marginRight="xs"
134
+ <Icon
135
+ icon="shield-check"
136
+ marginRight="xs"
137
137
  />
138
138
  {tip}
139
139
  </Caption>
@@ -141,34 +141,34 @@ const Passphrase = (props: PassphraseProps) => {
141
141
  </div>
142
142
  </Flex>
143
143
  </PbReactPopover>
144
- </If>
144
+ }
145
145
  </Flex>
146
146
  <div className="passphrase-text-input-wrapper">
147
147
  <TextInput
148
- className="passphrase-text-input"
149
- dark={dark}
150
- marginBottom="xs"
151
- onChange={handleChange}
152
- placeholder="Enter a passphrase..."
153
- type={showPassphrase ? "text" : "password"}
154
- value={displayValue}
155
- {...inputProps}
148
+ className="passphrase-text-input"
149
+ dark={dark}
150
+ marginBottom="xs"
151
+ onChange={handleChange}
152
+ placeholder="Enter a passphrase..."
153
+ type={showPassphrase ? "text" : "password"}
154
+ value={displayValue}
155
+ {...inputProps}
156
156
  />
157
- <span
158
- className="show-passphrase-icon"
159
- onClick={toggleShowPassphrase}
157
+ <span
158
+ className="show-passphrase-icon"
159
+ onClick={toggleShowPassphrase}
160
160
  >
161
161
  <Body
162
- className={showPassphrase ? "hide-icon" : ""}
163
- color="light"
164
- dark={dark}
162
+ className={showPassphrase ? "hide-icon" : ""}
163
+ color="light"
164
+ dark={dark}
165
165
  >
166
166
  <Icon icon="eye-slash" />
167
167
  </Body>
168
168
  <Body
169
- className={showPassphrase ? "" : "hide-icon"}
170
- color="light"
171
- dark={dark}
169
+ className={showPassphrase ? "" : "hide-icon"}
170
+ color="light"
171
+ dark={dark}
172
172
  >
173
173
  <Icon icon="eye" />
174
174
  </Body>
@@ -0,0 +1,3 @@
1
+ <%= pb_rails("phone_number_input", props: {
2
+ id: "hello"
3
+ }) %>
@@ -5,3 +5,6 @@ examples:
5
5
  - phone_number_input_preferred_countries: Preferred Countries
6
6
  - phone_number_input_initial_country: Initial Country
7
7
  - phone_number_input_only_countries: Limited Countries
8
+
9
+ rails:
10
+ - phone_number_input_default: Default
@@ -0,0 +1,15 @@
1
+ <%= react_component("PhoneNumberInput", object.phone_number_input_options) %>
2
+
3
+ <script>
4
+ const formatToGlobalCountryName = () => {
5
+ return countryName.split('(')[0].trim()
6
+ }
7
+
8
+ const formatAllCountries = () => {
9
+ let countryData = window.intlTelInputGlobals.getCountryData()
10
+ for (let i = 0; i < countryData.length; i++) {
11
+ let country = countryData[i]
12
+ country.name = formatToGlobalCountryName(country.name)
13
+ }
14
+ }
15
+ </script>
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Playbook
4
+ module PbPhoneNumberInput
5
+ class PhoneNumberInput < Playbook::KitBase
6
+ prop :disabled, type: Playbook::Props::Boolean,
7
+ default: false
8
+ prop :initial_country, type: Playbook::Props::String,
9
+ default: ""
10
+ prop :is_valid
11
+ prop :label, type: Playbook::Props::String,
12
+ default: ""
13
+ prop :name, type: Playbook::Props::String,
14
+ default: ""
15
+ prop :onchange
16
+ prop :only_countries, type: Playbook::Props::Array,
17
+ default: []
18
+ prop :preferred_countries, type: Playbook::Props::Array,
19
+ default: []
20
+ prop :value, type: Playbook::Props::String,
21
+ default: ""
22
+
23
+ def classname
24
+ generate_classname("pb_phone_number_input")
25
+ end
26
+
27
+ def phone_number_input_options
28
+ {
29
+ id: id,
30
+ disabled: disabled,
31
+ initialCountry: initial_country,
32
+ isValid: is_valid,
33
+ label: label,
34
+ name: name,
35
+ onChange: onchange,
36
+ onlyCountries: only_countries,
37
+ preferredCountries: preferred_countries,
38
+ value: value,
39
+ }
40
+ end
41
+ end
42
+ end
43
+ end
@@ -1,6 +1,5 @@
1
1
  import React, { useEffect } from "react";
2
2
  import ReactDOM from "react-dom";
3
-
4
3
  import {
5
4
  Popper,
6
5
  Manager as PopperManager,
@@ -23,14 +22,14 @@ type PbPopoverProps = {
23
22
  aria?: { [key: string]: string };
24
23
  className?: string;
25
24
  closeOnClick?: "outside" | "inside" | "any";
26
- data?: object;
25
+ data?: { [key: string]: string },
27
26
  id?: string;
28
27
  offset?: boolean;
29
28
  reference: PopperReference & any;
30
29
  show?: boolean;
31
- shouldClosePopover?: (arg0: boolean) => boolean | boolean;
32
- } & GlobalProps &
33
- PopperProps<any>;
30
+ shouldClosePopover?: (arg0: boolean) => void;
31
+ } & GlobalProps & Omit<PopperProps<any>, 'children'>
32
+ & { children?: React.ReactChild[] | React.ReactChild }
34
33
 
35
34
  // Prop enabled default modifiers here
36
35
  // https://popper.js.org/docs/v2/modifiers
@@ -100,31 +99,31 @@ const Popover = (props: PbPopoverProps) => {
100
99
 
101
100
  return (
102
101
  <Popper
103
- modifiers={popoverModifiers({ modifiers, offset })}
104
- placement={placement}
105
- referenceElement={referenceElement}
102
+ modifiers={popoverModifiers({ modifiers, offset })}
103
+ placement={placement}
104
+ referenceElement={referenceElement}
106
105
  >
107
106
  {({ placement, ref, style }) => {
108
107
  return (
109
108
  <div
110
- {...ariaProps}
111
- {...dataProps}
112
- className={classes}
113
- data-placement={placement}
114
- id={id}
115
- ref={ref}
116
- style={Object.assign({}, style, zIndexStyle)}
109
+ {...ariaProps}
110
+ {...dataProps}
111
+ className={classes}
112
+ data-placement={placement}
113
+ id={id}
114
+ ref={ref}
115
+ style={Object.assign({}, style, zIndexStyle)}
117
116
  >
118
117
  <div
119
- className={classnames(`${buildCss("pb_popover_tooltip")} show`)}
118
+ className={classnames(`${buildCss("pb_popover_tooltip")} show`)}
120
119
  >
121
120
  <div
122
- className={classnames(
123
- "pb_popover_body",
124
- popoverSpacing,
125
- overflowHandling
126
- )}
127
- style={widthHeightStyles()}
121
+ className={classnames(
122
+ "pb_popover_body",
123
+ popoverSpacing,
124
+ overflowHandling
125
+ )}
126
+ style={widthHeightStyles()}
128
127
  >
129
128
  {children}
130
129
  </div>
@@ -192,17 +191,17 @@ const PbReactPopover = (props: PbPopoverProps) => {
192
191
 
193
192
  const popoverComponent = (
194
193
  <Popover
195
- className={className}
196
- maxHeight={maxHeight}
197
- maxWidth={maxWidth}
198
- minHeight={minHeight}
199
- minWidth={minWidth}
200
- modifiers={modifiers}
201
- offset={offset}
202
- placement={placement}
203
- referenceElement={referenceElement}
204
- zIndex={zIndex}
205
- {...props}
194
+ className={className}
195
+ maxHeight={maxHeight}
196
+ maxWidth={maxWidth}
197
+ minHeight={minHeight}
198
+ minWidth={minWidth}
199
+ modifiers={modifiers}
200
+ offset={offset}
201
+ placement={placement}
202
+ referenceElement={referenceElement}
203
+ zIndex={zIndex}
204
+ {...props}
206
205
  >
207
206
  {children}
208
207
  </Popover>
@@ -214,7 +213,9 @@ const PbReactPopover = (props: PbPopoverProps) => {
214
213
  {reference && !referenceElement && (
215
214
  <PopperReference>
216
215
  {({ ref }) => (
217
- <span className="pb_popover_reference_wrapper" ref={ref}>
216
+ <span
217
+ className="pb_popover_reference_wrapper"
218
+ ref={ref}>
218
219
  <reference.type {...reference.props} />
219
220
  </span>
220
221
  )}
@@ -236,4 +237,4 @@ const PbReactPopover = (props: PbPopoverProps) => {
236
237
  );
237
238
  };
238
239
 
239
- export default PbReactPopover;
240
+ export default PbReactPopover;
@@ -8,7 +8,7 @@
8
8
  background-color: $bg_light;
9
9
  }
10
10
  &[class*=checked_item] {
11
- background-color: $bg_light;
11
+ background-color: $active_light;
12
12
  }
13
13
  }
14
14
  [class^=pb_radio_kit] {
@@ -183,6 +183,10 @@
183
183
  }
184
184
 
185
185
  .typeahead-kit-select__menu {
186
+ .typeahead-kit-select__menu-list {
187
+ padding: 0;
188
+ }
189
+
186
190
  .typeahead-kit-select__option {
187
191
  &.typeahead-kit-select__option--is-focused {
188
192
  background-color: $hover_light;
@@ -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.3.1"
5
- VERSION = "12.4.0"
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
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-20 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
@@ -1398,8 +1399,9 @@ files:
1398
1399
  - app/pb_kits/playbook/pb_map/docs/example.yml
1399
1400
  - app/pb_kits/playbook/pb_map/docs/index.js
1400
1401
  - app/pb_kits/playbook/pb_map/map.test.jsx
1401
- - app/pb_kits/playbook/pb_message/_message.jsx
1402
+ - app/pb_kits/playbook/pb_map/pbMapTheme.ts
1402
1403
  - app/pb_kits/playbook/pb_message/_message.scss
1404
+ - app/pb_kits/playbook/pb_message/_message.tsx
1403
1405
  - app/pb_kits/playbook/pb_message/_message_mixins.scss
1404
1406
  - app/pb_kits/playbook/pb_message/docs/_description.md
1405
1407
  - app/pb_kits/playbook/pb_message/docs/_footer.md
@@ -1412,6 +1414,7 @@ files:
1412
1414
  - app/pb_kits/playbook/pb_message/docs/index.js
1413
1415
  - app/pb_kits/playbook/pb_message/message.html.erb
1414
1416
  - app/pb_kits/playbook/pb_message/message.rb
1417
+ - app/pb_kits/playbook/pb_message/message.test.js
1415
1418
  - app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx
1416
1419
  - app/pb_kits/playbook/pb_multiple_users/_multiple_users.scss
1417
1420
  - app/pb_kits/playbook/pb_multiple_users/docs/_description.md
@@ -1496,8 +1499,8 @@ files:
1496
1499
  - app/pb_kits/playbook/pb_pagination/docs/example.yml
1497
1500
  - app/pb_kits/playbook/pb_pagination/pagination.html.erb
1498
1501
  - app/pb_kits/playbook/pb_pagination/pagination.rb
1499
- - app/pb_kits/playbook/pb_passphrase/_passphrase.jsx
1500
1502
  - app/pb_kits/playbook/pb_passphrase/_passphrase.scss
1503
+ - app/pb_kits/playbook/pb_passphrase/_passphrase.tsx
1501
1504
  - app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.html.erb
1502
1505
  - app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.jsx
1503
1506
  - app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.md
@@ -1555,6 +1558,7 @@ files:
1555
1558
  - app/pb_kits/playbook/pb_person_contact/person_contact.rb
1556
1559
  - app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss
1557
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
1558
1562
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.jsx
1559
1563
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.md
1560
1564
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_initial_country.jsx
@@ -1565,6 +1569,8 @@ files:
1565
1569
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.md
1566
1570
  - app/pb_kits/playbook/pb_phone_number_input/docs/example.yml
1567
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
1568
1574
  - app/pb_kits/playbook/pb_phone_number_input/phone_number_input.test.js
1569
1575
  - app/pb_kits/playbook/pb_phone_number_input/types.d.ts
1570
1576
  - app/pb_kits/playbook/pb_pill/_pill.scss
@@ -2422,9 +2428,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
2422
2428
  version: '0'
2423
2429
  required_rubygems_version: !ruby/object:Gem::Requirement
2424
2430
  requirements:
2425
- - - ">="
2431
+ - - ">"
2426
2432
  - !ruby/object:Gem::Version
2427
- version: '0'
2433
+ version: 1.3.1
2428
2434
  requirements: []
2429
2435
  rubygems_version: 3.3.7
2430
2436
  signing_key:
@@ -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