playbook_ui 14.5.0.pre.alpha.PBNTR568dropdowncleaning4041 → 14.5.0.pre.alpha.PBNTR600reactfilterdisplayzeroresults4068

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.5.0"
5
- VERSION = "14.5.0.pre.alpha.PBNTR568dropdowncleaning4041"
5
+ VERSION = "14.5.0.pre.alpha.PBNTR600reactfilterdisplayzeroresults4068"
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: 14.5.0.pre.alpha.PBNTR568dropdowncleaning4041
4
+ version: 14.5.0.pre.alpha.PBNTR600reactfilterdisplayzeroresults4068
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -1126,7 +1126,6 @@ files:
1126
1126
  - app/pb_kits/playbook/pb_dropdown/context/index.tsx
1127
1127
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.html.erb
1128
1128
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.jsx
1129
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_clear_selection.jsx
1130
1129
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.html.erb
1131
1130
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.jsx
1132
1131
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.md
@@ -3081,7 +3080,7 @@ files:
3081
3080
  - app/pb_kits/playbook/utilities/text.ts
3082
3081
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3083
3082
  - dist/chunks/_typeahead-CT2ByCBK.js
3084
- - dist/chunks/_weekday_stacked-CwIBeloD.js
3083
+ - dist/chunks/_weekday_stacked-BFqyoTft.js
3085
3084
  - dist/chunks/lazysizes-B7xYodB-.js
3086
3085
  - dist/chunks/lib-CEpcaI8y.js
3087
3086
  - dist/chunks/pb_form_validation-D9zkwt2b.js
@@ -1,45 +0,0 @@
1
- import React, { useRef } from 'react'
2
- import { Button, Dropdown } from 'playbook-ui'
3
-
4
- const options = [
5
- {
6
- label: "United States",
7
- value: "United States",
8
- },
9
- {
10
- label: "Canada",
11
- value: "Canada",
12
- },
13
- {
14
- label: "Pakistan",
15
- value: "Pakistan",
16
- }
17
- ]
18
-
19
- const DropdownClearSelection = (props) => {
20
- const dropdownRef = useRef(null)
21
-
22
- const handleReset = () => {
23
- if (dropdownRef.current) {
24
- dropdownRef.current.clearSelected()
25
- }
26
- }
27
-
28
- return (
29
- <>
30
- <Dropdown
31
- defaultValue={options[2]}
32
- options={options}
33
- ref={dropdownRef}
34
- {...props}
35
- />
36
- <Button
37
- marginTop="md"
38
- onClick={handleReset}
39
- text="Reset"
40
- />
41
- </>
42
- )
43
- }
44
-
45
- export default DropdownClearSelection