playbook_ui 15.5.0.pre.alpha.draggableask12815 → 15.5.0.pre.alpha.draggablefix12557
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +6 -96
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +1 -1
- data/app/pb_kits/playbook/pb_background/_background.tsx +6 -6
- data/app/pb_kits/playbook/pb_background/background.test.js +1 -5
- data/app/pb_kits/playbook/pb_background/docs/_background_light.html.erb +1 -1
- data/app/pb_kits/playbook/pb_background/docs/_background_light.jsx +1 -0
- data/app/pb_kits/playbook/pb_background/docs/example.yml +2 -2
- data/app/pb_kits/playbook/pb_bar_graph/BarGraphStyles.scss +58 -0
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.html.erb +0 -31
- data/app/pb_kits/playbook/pb_draggable/context/index.tsx +56 -233
- data/app/pb_kits/playbook/pb_draggable/context/types.ts +2 -4
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_dropzone.jsx +0 -1
- data/app/pb_kits/playbook/pb_draggable/docs/example.yml +3 -3
- data/app/pb_kits/playbook/pb_draggable/draggable.test.jsx +1 -77
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.scss +4 -4
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.tsx +22 -34
- data/app/pb_kits/playbook/pb_home_address_street/city_emphasis.html.erb +12 -16
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_default.html.erb +1 -1
- data/app/pb_kits/playbook/pb_home_address_street/none_emphasis.html.erb +12 -16
- data/app/pb_kits/playbook/pb_home_address_street/street_emphasis.html.erb +12 -16
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.scss +0 -10
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.tsx +15 -66
- data/app/pb_kits/playbook/pb_multiple_users/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_multiple_users/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_multiple_users/multiple_users.test.js +0 -25
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +10 -44
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.html.erb +4 -34
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.jsx +7 -16
- data/app/pb_kits/playbook/pb_table/styles/_vertical_border.scss +0 -49
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +0 -15
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +0 -3
- data/app/pb_kits/playbook/pb_typeahead/components/ClearIndicator.tsx +2 -13
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.tsx +1 -6
- data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.tsx +7 -34
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +1 -6
- data/dist/chunks/_typeahead-LoB4DX1N.js +6 -0
- data/dist/chunks/vendor.js +2 -2
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +4 -10
- data/app/pb_kits/playbook/pb_background/docs/_background_light.md +0 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_dropzone.md +0 -22
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_with_tooltip.jsx +0 -42
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_with_tooltip.md +0 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_input_display.html.erb +0 -30
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_input_display.jsx +0 -37
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_input_display.md +0 -3
- data/dist/chunks/_typeahead-Dt3l7Dj8.js +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 919f3350cdd7c157371fd1f02395ef40868156156bc20dda59bdca671ba525b0
|
|
4
|
+
data.tar.gz: 5de0380c738e2aa0e341f4f1a6c20fe09e2c82b87f6f44f298dfc83ac2b3721c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 07f5a7b60a390625121f739b1de7ccb57114b9701099d7c26ad56e27a1421bb9fa137fcc6212b70116d63b4becc3476bc970f6e845255558b4922e956a3a72da
|
|
7
|
+
data.tar.gz: 240c25fb702ebc6820d584fd1be2c302188a914686f5c975d0da6620218b75b9a82d6e1bd78ba0c838ca462d1309b7c2ae3ab107ada47e0bdeb7874bff240247
|
|
@@ -791,28 +791,6 @@
|
|
|
791
791
|
box-shadow: 1px 0px 0px 0px var(--column-border-color) !important;
|
|
792
792
|
}
|
|
793
793
|
|
|
794
|
-
// Override last-header-cell border color in dark mode
|
|
795
|
-
.pb_advanced_table_header {
|
|
796
|
-
> tr:not(:first-child) {
|
|
797
|
-
.last-header-cell {
|
|
798
|
-
border-right: 1px solid $border_dark !important;
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
th[colspan]:not([colspan="1"]) {
|
|
803
|
-
border-right: 1px solid $border_dark !important;
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
// Override last-cell border color in dark mode for body cells
|
|
808
|
-
.pb_advanced_table_body {
|
|
809
|
-
tr {
|
|
810
|
-
.last-cell:not(:last-of-type) {
|
|
811
|
-
border-right: 1px solid $border_dark !important;
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
|
|
816
794
|
// Apply border colors in dark mode
|
|
817
795
|
&[class*="column-group-border-"] {
|
|
818
796
|
// For top-level column groups (ENROLLMENT DATA, PERFORMANCE DATA)
|
|
@@ -872,7 +850,7 @@
|
|
|
872
850
|
// Restore vertical border styling in dark mode when verticalBorder is true
|
|
873
851
|
.pb_table[data-vertical-border="true"] {
|
|
874
852
|
.pb_advanced_table_header {
|
|
875
|
-
> tr {
|
|
853
|
+
> tr:not(:first-child) {
|
|
876
854
|
th:not(:last-child) {
|
|
877
855
|
border-right: 1px solid $border_dark !important;
|
|
878
856
|
}
|
|
@@ -886,17 +864,11 @@
|
|
|
886
864
|
}
|
|
887
865
|
}
|
|
888
866
|
|
|
889
|
-
tr.virtualized-table-row {
|
|
890
|
-
td:not(:last-child) {
|
|
891
|
-
border-right: 1px solid $border_dark !important;
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
|
|
895
867
|
// When both verticalBorder AND columnGroupBorderColor are set in dark mode,
|
|
896
868
|
// override the default border-dark with the custom color
|
|
897
869
|
&.pb_advanced_table[class*="column-group-border-"] {
|
|
898
870
|
.pb_advanced_table_header {
|
|
899
|
-
> tr {
|
|
871
|
+
> tr:not(:first-child) {
|
|
900
872
|
th:not(:last-child) {
|
|
901
873
|
border-right: 1px solid var(--column-border-color) !important;
|
|
902
874
|
}
|
|
@@ -909,12 +881,6 @@
|
|
|
909
881
|
border-right: 1px solid var(--column-border-color) !important;
|
|
910
882
|
}
|
|
911
883
|
}
|
|
912
|
-
|
|
913
|
-
tr.virtualized-table-row {
|
|
914
|
-
td:not(:last-child) {
|
|
915
|
-
border-right: 1px solid var(--column-border-color) !important;
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
884
|
}
|
|
919
885
|
}
|
|
920
886
|
|
|
@@ -1019,90 +985,34 @@
|
|
|
1019
985
|
// Firefox-specific fix for last-header-cell and last-cell vertical borders
|
|
1020
986
|
@-moz-document url-prefix() {
|
|
1021
987
|
.pb_advanced_table_header {
|
|
1022
|
-
|
|
1023
|
-
border-right: none !important;
|
|
1024
|
-
box-shadow: 1px 0 0 0 $border_light !important;
|
|
1025
|
-
}
|
|
1026
|
-
|
|
1027
|
-
.last-header-cell:not(:last-child),
|
|
1028
|
-
> tr:last-child .last-header-cell:not(:last-child) {
|
|
988
|
+
.last-header-cell:not(:last-child) {
|
|
1029
989
|
border-right: none !important;
|
|
1030
990
|
box-shadow: 1px 0 0 0 $border_light !important;
|
|
1031
991
|
}
|
|
1032
992
|
}
|
|
1033
993
|
|
|
1034
994
|
.pb_advanced_table_body {
|
|
1035
|
-
|
|
1036
|
-
td.last-cell:not(:last-child),
|
|
1037
|
-
.pb_table_td.last-cell:not(:last-child) {
|
|
995
|
+
.last-cell:not(:last-child) {
|
|
1038
996
|
border-right: none !important;
|
|
1039
997
|
box-shadow: 1px 0 0 0 $border_light !important;
|
|
1040
998
|
}
|
|
1041
999
|
}
|
|
1042
1000
|
|
|
1043
|
-
&[class*="column-group-border-"] {
|
|
1044
|
-
.pb_advanced_table_header {
|
|
1045
|
-
th[colspan]:not([colspan="1"]):not(:last-child),
|
|
1046
|
-
.last-header-cell:not(:last-child),
|
|
1047
|
-
> tr:last-child .last-header-cell:not(:last-child) {
|
|
1048
|
-
box-shadow: 1px 0 0 0 var(--column-border-color) !important;
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
.pb_advanced_table_body {
|
|
1053
|
-
tr .last-cell:not(:last-of-type),
|
|
1054
|
-
td.last-cell:not(:last-child),
|
|
1055
|
-
.pb_table_td.last-cell:not(:last-child) {
|
|
1056
|
-
box-shadow: 1px 0 0 0 var(--column-border-color) !important;
|
|
1057
|
-
}
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
1001
|
// Dark mode Firefox fixes
|
|
1062
1002
|
&.dark {
|
|
1063
1003
|
.pb_advanced_table_header {
|
|
1064
|
-
|
|
1065
|
-
th[colspan]:not([colspan="1"]) {
|
|
1066
|
-
border-right: none !important;
|
|
1067
|
-
box-shadow: 1px 0 0 0 $border_dark !important;
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
// Convert all last-header-cell borders to box-shadow with dark color
|
|
1071
|
-
.last-header-cell:not(:last-child),
|
|
1072
|
-
> tr:last-child .last-header-cell:not(:last-child),
|
|
1073
|
-
> tr:not(:first-child) .last-header-cell:not(:last-child),
|
|
1074
|
-
> tr:not(:first-child) .last-header-cell:last-child {
|
|
1004
|
+
.last-header-cell:not(:last-child) {
|
|
1075
1005
|
border-right: none !important;
|
|
1076
1006
|
box-shadow: 1px 0 0 0 $border_dark !important;
|
|
1077
1007
|
}
|
|
1078
1008
|
}
|
|
1079
1009
|
|
|
1080
1010
|
.pb_advanced_table_body {
|
|
1081
|
-
|
|
1082
|
-
td.last-cell:not(:last-child),
|
|
1083
|
-
.pb_table_td.last-cell:not(:last-child) {
|
|
1011
|
+
.last-cell:not(:last-child) {
|
|
1084
1012
|
border-right: none !important;
|
|
1085
1013
|
box-shadow: 1px 0 0 0 $border_dark !important;
|
|
1086
1014
|
}
|
|
1087
1015
|
}
|
|
1088
|
-
|
|
1089
|
-
&[class*="column-group-border-"] {
|
|
1090
|
-
.pb_advanced_table_header {
|
|
1091
|
-
th[colspan]:not([colspan="1"]):not(:last-child),
|
|
1092
|
-
.last-header-cell:not(:last-child),
|
|
1093
|
-
> tr:last-child .last-header-cell:not(:last-child) {
|
|
1094
|
-
box-shadow: 1px 0 0 0 var(--column-border-color) !important;
|
|
1095
|
-
}
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
.pb_advanced_table_body {
|
|
1099
|
-
tr .last-cell:not(:last-of-type),
|
|
1100
|
-
td.last-cell:not(:last-child),
|
|
1101
|
-
.pb_table_td.last-cell:not(:last-child) {
|
|
1102
|
-
box-shadow: 1px 0 0 0 var(--column-border-color) !important;
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
1016
|
}
|
|
1107
1017
|
}
|
|
1108
1018
|
}
|
|
@@ -30,4 +30,4 @@
|
|
|
30
30
|
}
|
|
31
31
|
] %>
|
|
32
32
|
|
|
33
|
-
<%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, column_definitions: column_definitions, table_props: { vertical_border: true, container: false }}) %>
|
|
33
|
+
<%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, column_definitions: column_definitions, table_props: { vertical_border: true, container: false }}) %>
|
|
@@ -102,16 +102,16 @@ const Background = (props: BackgroundProps): React.ReactElement => {
|
|
|
102
102
|
useEffect(() => {
|
|
103
103
|
const updateResponsiveProps = () => {
|
|
104
104
|
setResponsiveProps({
|
|
105
|
-
backgroundSize: getResponsiveValue(backgroundSize),
|
|
106
|
-
backgroundPosition: getResponsiveValue(backgroundPosition),
|
|
107
|
-
backgroundRepeat: getResponsiveValue(backgroundRepeat),
|
|
108
|
-
backgroundColor: getResponsiveValue(backgroundColor),
|
|
109
|
-
imageUrl: getResponsiveValue(imageUrl),
|
|
105
|
+
backgroundSize: getResponsiveValue(props.backgroundSize),
|
|
106
|
+
backgroundPosition: getResponsiveValue(props.backgroundPosition),
|
|
107
|
+
backgroundRepeat: getResponsiveValue(props.backgroundRepeat),
|
|
108
|
+
backgroundColor: getResponsiveValue(props.backgroundColor),
|
|
109
|
+
imageUrl: getResponsiveValue(props.imageUrl),
|
|
110
110
|
});
|
|
111
111
|
};
|
|
112
112
|
window.addEventListener('resize', updateResponsiveProps);
|
|
113
113
|
return () => window.removeEventListener('resize', updateResponsiveProps);
|
|
114
|
-
}, [
|
|
114
|
+
}, [props]);
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
// Extract currently applicable responsive values.
|
|
@@ -4,6 +4,7 @@ import Background from './_background'
|
|
|
4
4
|
|
|
5
5
|
const props = {
|
|
6
6
|
data: { testid: 'background' },
|
|
7
|
+
backgroundColor: null,
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
it('Should be accessible', async () => {
|
|
@@ -41,8 +42,3 @@ test('applies correct overlay class when imageOverlay prop is provided', () => {
|
|
|
41
42
|
const kit = renderKit(Background, props, { imageOverlay: 'opacity_6' });
|
|
42
43
|
expect(kit).toHaveClass('imageoverlay_opacity_6');
|
|
43
44
|
});
|
|
44
|
-
|
|
45
|
-
test('Sets backgroundColor to light as default when no backgroundColor prop is provided', () => {
|
|
46
|
-
const kit = renderKit(Background, props);
|
|
47
|
-
expect(kit).toHaveClass('pb_background_color_light');
|
|
48
|
-
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
examples:
|
|
2
2
|
|
|
3
3
|
rails:
|
|
4
|
-
- background_light:
|
|
4
|
+
- background_light: Light
|
|
5
5
|
- background_white: White
|
|
6
6
|
- background_gradient: Gradient
|
|
7
7
|
- background_image: Image
|
|
@@ -11,7 +11,7 @@ examples:
|
|
|
11
11
|
- background_size: Size
|
|
12
12
|
|
|
13
13
|
react:
|
|
14
|
-
- background_light:
|
|
14
|
+
- background_light: Light
|
|
15
15
|
- background_white: White
|
|
16
16
|
- background_gradient: Gradient
|
|
17
17
|
- background_image: Image
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@import "../tokens/colors";
|
|
2
|
+
@import "../tokens/typography";
|
|
3
|
+
@import url("https://code.highcharts.com/css/highcharts.css");
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--highcharts-color-0: #{$data_1};
|
|
7
|
+
--highcharts-color-1: #{$data_2};
|
|
8
|
+
--highcharts-color-2: #{$data_3};
|
|
9
|
+
--highcharts-color-3: #{$data_4};
|
|
10
|
+
--highcharts-color-4: #{$data_5};
|
|
11
|
+
--highcharts-color-5: #{$data_6};
|
|
12
|
+
--highcharts-color-6: #{$data_7};
|
|
13
|
+
--highcharts-color-7: #{$data_8};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.highcharts-title {
|
|
17
|
+
font-family: $font_family_base;
|
|
18
|
+
font-weight: $bold;
|
|
19
|
+
font-size: $heading_3;
|
|
20
|
+
color: $text_lt_default;
|
|
21
|
+
fill: $text_lt_default;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.highcharts-subtitle {
|
|
25
|
+
font-family: $font_family_base;
|
|
26
|
+
color: $text_lt_light;
|
|
27
|
+
fill: $text_lt_light;
|
|
28
|
+
font-weight: $regular;
|
|
29
|
+
font-size: $text_base;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.highcharts-yaxis > .highcharts-axis-title {
|
|
33
|
+
color: $text_lt_lighter;
|
|
34
|
+
fill: $text_lt_lighter;
|
|
35
|
+
font-family: $font_family_base;
|
|
36
|
+
font-weight: $bold;
|
|
37
|
+
font-size: $text_smaller;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.highcharts-axis-labels {
|
|
41
|
+
font-family: $font_family_base;
|
|
42
|
+
color: $text_lt_lighter;
|
|
43
|
+
fill: $text_lt_lighter;
|
|
44
|
+
font-weight: $bold;
|
|
45
|
+
font-size: $text_smaller;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.highcharts-grid-line {
|
|
49
|
+
stroke: $border_light;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.highcharts-point {
|
|
53
|
+
border-radius: 3px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.highcharts-axis-line {
|
|
57
|
+
stroke: $border_light;
|
|
58
|
+
}
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
<%
|
|
2
|
-
options = [
|
|
3
|
-
{
|
|
4
|
-
label: "United States",
|
|
5
|
-
value: "unitedStates",
|
|
6
|
-
id: "us"
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
label: "United Kingdom",
|
|
10
|
-
value: "unitedKingdom",
|
|
11
|
-
id: "gb"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
label: "Pakistan",
|
|
15
|
-
value: "pakistan",
|
|
16
|
-
id: "pk"
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
%>
|
|
20
|
-
|
|
21
|
-
|
|
22
1
|
<%= pb_rails("button", props: { text: "Open Complex Dialog", data:{"open-dialog": "dialog-complex"} }) %>
|
|
23
2
|
|
|
24
3
|
<%= pb_rails("dialog", props: { id:"dialog-complex", size: "lg", full_height: true }) do %>
|
|
@@ -31,16 +10,6 @@
|
|
|
31
10
|
<%= pb_rails("rich_text_editor", props: {id: "default", value: "Add your text here"}) %>
|
|
32
11
|
<%= pb_rails("caption", props: { text: "Type in a word or term too help find tickets later. ex. training, phone setup, hr", margin_bottom: "xs", margin_top: "sm" }) %>
|
|
33
12
|
<%= pb_rails("typeahead", props: { placeholder: "Tags.."}) %>
|
|
34
|
-
<%= pb_rails("dropdown", props: {options: options, autocomplete: true}) %>
|
|
35
|
-
<%= pb_rails("typeahead", props: {
|
|
36
|
-
id: "typeahead-default",
|
|
37
|
-
placeholder: "Select one...",
|
|
38
|
-
options: options,
|
|
39
|
-
name: :foo,
|
|
40
|
-
margin_top: "sm",
|
|
41
|
-
is_multi: false
|
|
42
|
-
})
|
|
43
|
-
%>
|
|
44
13
|
|
|
45
14
|
<% end %>
|
|
46
15
|
<%= pb_rails("dialog/dialog_footer", props: {cancel_button: "Back", confirm_button: "Send my Issue", confirm_button_id:"confirm-complex", id: "dialog-complex"}) %>
|