2
2
3
3
exports [` Snapshot test Check component matches previous HTML snapshot 1` ] = `
4
4
<QuickFilter
5
+ emptyFilterLabel = " test empty filter label"
5
6
filters = {
6
7
Array [
7
8
Object {
@@ -46,6 +47,11 @@ exports[`Snapshot test Check component matches previous HTML snapshot 1`] = `
46
47
},
47
48
],
48
49
},
50
+ Object {
51
+ " field" : " Empty-array" ,
52
+ " fieldLabel" : " Empty filter" ,
53
+ " options" : Array [],
54
+ },
49
55
]
50
56
}
51
57
onFilterSelect = { [MockFunction ]}
@@ -57,7 +63,7 @@ exports[`Snapshot test Check component matches previous HTML snapshot 1`] = `
57
63
className = " dg-quick-filter-filters"
58
64
>
59
65
<ButtonSelect
60
- className = " dg-quick-filter"
66
+ className = " dg-quick-filter-filter dg-quick-filter "
61
67
id = " quick-filter-All-Operating-System-0"
62
68
key = " 1"
63
69
onChange = { [Function ]}
@@ -86,7 +92,7 @@ exports[`Snapshot test Check component matches previous HTML snapshot 1`] = `
86
92
<ButtonSelect
87
93
anchor = " bottom left"
88
94
applyImmediately = { false }
89
- className = " dg-quick-filter"
95
+ className = " dg-quick-filter-filter dg-quick-filter "
90
96
disabled = { false }
91
97
icon = { null }
92
98
id = " quick-filter-All-Operating-System-0"
@@ -121,7 +127,7 @@ exports[`Snapshot test Check component matches previous HTML snapshot 1`] = `
121
127
width = { null }
122
128
>
123
129
<div
124
- className = " rc-button-select rc-button-select-closed dg-quick-filter"
130
+ className = " rc-button-select rc-button-select-closed dg-quick-filter-filter dg-quick-filter "
125
131
onBlur = { [Function ]}
126
132
style = { Object {}}
127
133
>
@@ -409,7 +415,7 @@ exports[`Snapshot test Check component matches previous HTML snapshot 1`] = `
409
415
</ButtonSelect >
410
416
</ButtonSelect >
411
417
<ButtonSelect
412
- className = " dg-quick-filter"
418
+ className = " dg-quick-filter-filter dg-quick-filter "
413
419
id = " quick-filter-Puppet-installed-1"
414
420
key = " 2"
415
421
onChange = { [Function ]}
@@ -438,7 +444,7 @@ exports[`Snapshot test Check component matches previous HTML snapshot 1`] = `
438
444
<ButtonSelect
439
445
anchor = " bottom left"
440
446
applyImmediately = { false }
441
- className = " dg-quick-filter"
447
+ className = " dg-quick-filter-filter dg-quick-filter "
442
448
disabled = { false }
443
449
icon = { null }
444
450
id = " quick-filter-Puppet-installed-1"
@@ -473,7 +479,7 @@ exports[`Snapshot test Check component matches previous HTML snapshot 1`] = `
473
479
width = { null }
474
480
>
475
481
<div
476
- className = " rc-button-select rc-button-select-closed dg-quick-filter"
482
+ className = " rc-button-select rc-button-select-closed dg-quick-filter-filter dg-quick-filter "
477
483
onBlur = { [Function ]}
478
484
style = { Object {}}
479
485
>
@@ -760,6 +766,196 @@ exports[`Snapshot test Check component matches previous HTML snapshot 1`] = `
760
766
</div >
761
767
</ButtonSelect >
762
768
</ButtonSelect >
769
+ <ButtonSelect
770
+ className = " dg-quick-filter-filter dg-quick-filter dg-quick-filter-empty"
771
+ id = " quick-filter-Empty-array-2"
772
+ key = " 3"
773
+ onChange = { [Function ]}
774
+ options = {
775
+ Array [
776
+ Object {
777
+ " disabled" : true ,
778
+ " label" : " test empty filter label" ,
779
+ " value" : " " ,
780
+ },
781
+ ]
782
+ }
783
+ placeholder = " Empty filter"
784
+ type = " tertiary"
785
+ >
786
+ <ButtonSelect
787
+ anchor = " bottom left"
788
+ applyImmediately = { false }
789
+ className = " dg-quick-filter-filter dg-quick-filter dg-quick-filter-empty"
790
+ disabled = { false }
791
+ icon = { null }
792
+ id = " quick-filter-Empty-array-2"
793
+ innerFocus = { false }
794
+ loading = { false }
795
+ multiple = { false }
796
+ onChange = { [Function ]}
797
+ options = {
798
+ Array [
799
+ Object {
800
+ " disabled" : true ,
801
+ " label" : " test empty filter label" ,
802
+ " value" : " " ,
803
+ },
804
+ ]
805
+ }
806
+ placeholder = " Empty filter"
807
+ style = { Object {}}
808
+ type = " tertiary"
809
+ value = { null }
810
+ weight = " bold"
811
+ width = { null }
812
+ >
813
+ <div
814
+ className = " rc-button-select rc-button-select-closed dg-quick-filter-filter dg-quick-filter dg-quick-filter-empty"
815
+ onBlur = { [Function ]}
816
+ style = { Object {}}
817
+ >
818
+ <Button
819
+ aria-controls = " quick-filter-Empty-array-2-menu"
820
+ aria-expanded = { false }
821
+ aria-haspopup = " true"
822
+ as = " button"
823
+ className = " rc-button-select-target"
824
+ disabled = { false }
825
+ forwardRefAs = " ref"
826
+ icon = { null }
827
+ iconSize = " medium"
828
+ innerFocus = { false }
829
+ loading = { false }
830
+ onClick = { [Function ]}
831
+ style = { null }
832
+ trailingIcon = " chevron-down"
833
+ type = " tertiary"
834
+ weight = " bold"
835
+ >
836
+ <button
837
+ aria-controls = " quick-filter-Empty-array-2-menu"
838
+ aria-expanded = { false }
839
+ aria-haspopup = " true"
840
+ aria-label = " Empty filter"
841
+ className = " rc-button rc-button-tertiary rc-button-bold rc-button-trailing-icon rc-button-full rc-button-select-target"
842
+ disabled = { false }
843
+ onClick = { [Function ]}
844
+ style = { null }
845
+ type = " button"
846
+ >
847
+ <span
848
+ className = " rc-button-content"
849
+ >
850
+ Empty filter
851
+ </span >
852
+ <Icon
853
+ className = " rc-button-icon-svg"
854
+ size = " medium"
855
+ style = { Object {}}
856
+ svg = { null }
857
+ type = " chevron-down"
858
+ viewBox = { null }
859
+ >
860
+ <svg
861
+ className = " rc-icon rc-icon-chevron-down rc-button-icon-svg"
862
+ height = " 16px"
863
+ style = {
864
+ Object {
865
+ " height" : " 16px" ,
866
+ " width" : " 16px" ,
867
+ }
868
+ }
869
+ viewBox = " 0 0 16 16"
870
+ width = " 16px"
871
+ >
872
+ <path
873
+ d = " M8,8.58578644 L10.2928932,6.29289322 C10.6834175,5.90236893 11.3165825,5.90236893 11.7071068,6.29289322 C12.0976311,6.68341751 12.0976311,7.31658249 11.7071068,7.70710678 L8.70710678,10.7071068 C8.31658249,11.0976311 7.68341751,11.0976311 7.29289322,10.7071068 L4.29289322,7.70710678 C3.90236893,7.31658249 3.90236893,6.68341751 4.29289322,6.29289322 C4.68341751,5.90236893 5.31658249,5.90236893 5.70710678,6.29289322 L8,8.58578644 Z"
874
+ fillRule = " evenodd"
875
+ />
876
+ </svg >
877
+ </Icon >
878
+ </button >
879
+ </Button >
880
+ <OptionMenuList
881
+ actionLabel = " Apply"
882
+ aria-labelledby = " quick-filter-Empty-array-2"
883
+ autocomplete = { false }
884
+ cancelLabel = " Cancel"
885
+ className = " "
886
+ focusedIndex = { 0 }
887
+ footer = { null }
888
+ id = " quick-filter-Empty-array-2-menu"
889
+ multiple = { false }
890
+ onActionClick = { [Function ]}
891
+ onBlur = { [Function ]}
892
+ onChange = { [Function ]}
893
+ onClickItem = { [Function ]}
894
+ onEscape = { [Function ]}
895
+ onFocusItem = { [Function ]}
896
+ options = {
897
+ Array [
898
+ Object {
899
+ " disabled" : true ,
900
+ " label" : " test empty filter label" ,
901
+ " value" : " " ,
902
+ },
903
+ ]
904
+ }
905
+ selected = { null }
906
+ showCancel = { false }
907
+ style = { Object {}}
908
+ >
909
+ <div
910
+ className = " rc-menu-list rc-option-menu-list-single"
911
+ style = { Object {}}
912
+ >
913
+ <ul
914
+ aria-activedescendant = " quick-filter-Empty-array-2-menu-"
915
+ aria-labelledby = " quick-filter-Empty-array-2"
916
+ aria-multiselectable = { false }
917
+ className = " rc-menu-list-inner"
918
+ id = " quick-filter-Empty-array-2-menu"
919
+ onBlur = { [Function ]}
920
+ onChange = { [Function ]}
921
+ onFocus = { [Function ]}
922
+ onKeyDown = { [Function ]}
923
+ role = " listbox"
924
+ tabIndex = { 0 }
925
+ >
926
+ <ForwardRef
927
+ disabled = { true }
928
+ focused = { true }
929
+ icon = { null }
930
+ id = " quick-filter-Empty-array-2-menu-"
931
+ key = " "
932
+ onClick = { [Function ]}
933
+ onMouseEnter = { [Function ]}
934
+ selected = { false }
935
+ svg = { null }
936
+ type = " option"
937
+ >
938
+ <li
939
+ aria-selected = { false }
940
+ className = " rc-menu-list-item rc-menu-list-item-disabled rc-menu-list-item-focused"
941
+ id = " quick-filter-Empty-array-2-menu-"
942
+ onClick = { [Function ]}
943
+ onMouseEnter = { [Function ]}
944
+ role = " option"
945
+ >
946
+ <span
947
+ className = " rc-menu-list-item-content"
948
+ >
949
+ test empty filter label
950
+ </span >
951
+ </li >
952
+ </ForwardRef >
953
+ </ul >
954
+ </div >
955
+ </OptionMenuList >
956
+ </div >
957
+ </ButtonSelect >
958
+ </ButtonSelect >
763
959
</div >
764
960
</div >
765
961
</QuickFilter >
0 commit comments