playbook_ui 16.2.0.pre.alpha.play2780dropdownkitremoveXonblank14671 → 16.2.0.pre.alpha.play278114375
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_body/_body.scss +4 -4
- data/app/pb_kits/playbook/pb_body/_body_mixins.scss +28 -28
- data/app/pb_kits/playbook/pb_button/_button.scss +2 -3
- data/app/pb_kits/playbook/pb_caption/_caption.scss +1 -1
- data/app/pb_kits/playbook/pb_caption/_caption_mixin.scss +15 -15
- data/app/pb_kits/playbook/pb_caption/docs/_caption_colors.html.erb +4 -6
- data/app/pb_kits/playbook/pb_caption/docs/_caption_colors.jsx +4 -14
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.scss +18 -18
- data/app/pb_kits/playbook/pb_collapsible/index.js +4 -16
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.scss +7 -7
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +1 -7
- data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +2 -2
- data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +0 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_positions.md +0 -1
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_calendar_input_icon.scss +6 -14
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_input_styles.scss +5 -80
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_time_selection_styles.scss +1 -8
- data/app/pb_kits/playbook/pb_detail/_detail.scss +14 -14
- data/app/pb_kits/playbook/pb_detail/_detail_mixins.scss +13 -13
- data/app/pb_kits/playbook/pb_detail/docs/_detail_colors.html.erb +24 -6
- data/app/pb_kits/playbook/pb_detail/docs/_detail_colors.jsx +33 -35
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.md +1 -3
- data/app/pb_kits/playbook/pb_dialog/index.js +5 -45
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +25 -31
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +3 -15
- data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb +2 -2
- data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_dropdown/index.js +13 -68
- data/app/pb_kits/playbook/pb_dropdown/keyboard_accessibility.js +3 -19
- data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownTrigger.tsx +14 -19
- data/app/pb_kits/playbook/pb_dropdown/utilities/clickOutsideHelper.tsx +1 -7
- data/app/pb_kits/playbook/pb_enhanced_element/element_observer.ts +1 -1
- data/app/pb_kits/playbook/pb_enhanced_element/index.ts +1 -2
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -2
- data/app/pb_kits/playbook/pb_form/docs/_form_with_required_indicator.html.erb +0 -2
- data/app/pb_kits/playbook/pb_icon/_icon.scss +1 -5
- data/app/pb_kits/playbook/pb_icon/icon.rb +19 -168
- data/app/pb_kits/playbook/pb_kit_registry/index.ts +151 -133
- data/app/pb_kits/playbook/pb_link/_link.scss +1 -16
- data/app/pb_kits/playbook/pb_link/docs/_link_underline.jsx +1 -31
- data/app/pb_kits/playbook/pb_list/_list_mixin.scss +4 -4
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.scss +10 -28
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +2 -3
- data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_pagination/_pagination.scss +1 -101
- data/app/pb_kits/playbook/pb_pagination/_pagination.test.jsx +1 -172
- data/app/pb_kits/playbook/pb_pagination/_pagination.tsx +15 -178
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.scss +1 -14
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.tsx +2 -5
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +11 -11
- data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +0 -2
- data/app/pb_kits/playbook/pb_radio/_radio.scss +17 -17
- data/app/pb_kits/playbook/pb_rich_text_editor/_previewer_mixin.scss +6 -6
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.scss +32 -31
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +0 -2
- data/app/pb_kits/playbook/pb_rich_text_editor/_tiptap_styles.scss +5 -5
- data/app/pb_kits/playbook/pb_select/_select.scss +51 -61
- data/app/pb_kits/playbook/pb_select/_select.tsx +18 -28
- data/app/pb_kits/playbook/pb_select/docs/example.yml +2 -3
- data/app/pb_kits/playbook/pb_select/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_select/select.html.erb +1 -7
- data/app/pb_kits/playbook/pb_select/select.rb +0 -3
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +20 -69
- data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss +5 -6
- data/app/pb_kits/playbook/pb_star_rating/star_rating.html.erb +1 -1
- data/app/pb_kits/playbook/pb_star_rating/subcomponents/_star_rating_interactive.tsx +0 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +20 -51
- data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +4 -11
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled.jsx +13 -11
- data/app/pb_kits/playbook/pb_text_input/text_input.html.erb +2 -2
- data/app/pb_kits/playbook/pb_textarea/_textarea.scss +12 -55
- data/app/pb_kits/playbook/pb_textarea/_textarea.tsx +21 -43
- data/app/pb_kits/playbook/pb_textarea/_textarea_mixin.scss +10 -31
- data/app/pb_kits/playbook/pb_textarea/docs/example.yml +0 -3
- data/app/pb_kits/playbook/pb_textarea/docs/index.js +8 -10
- data/app/pb_kits/playbook/pb_textarea/textarea.html.erb +4 -4
- data/app/pb_kits/playbook/pb_textarea/textarea.rb +2 -9
- data/app/pb_kits/playbook/pb_textarea/textarea.test.js +1 -134
- data/app/pb_kits/playbook/pb_time_picker/_time_picker.scss +25 -186
- data/app/pb_kits/playbook/pb_time_picker/_time_picker.tsx +1 -22
- data/app/pb_kits/playbook/pb_time_picker/time_picker.rb +1 -8
- data/app/pb_kits/playbook/pb_time_picker/time_picker.test.jsx +2 -2
- data/app/pb_kits/playbook/pb_title/_title_mixin.scss +13 -13
- data/app/pb_kits/playbook/pb_title/docs/_title_colors.html.erb +0 -2
- data/app/pb_kits/playbook/pb_title/docs/_title_colors.jsx +0 -14
- data/app/pb_kits/playbook/pb_tooltip/index.js +15 -60
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +23 -66
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +1 -1
- data/app/pb_kits/playbook/tokens/_colors_accessible.scss +1 -5
- data/app/pb_kits/playbook/tokens/_titles.scss +1 -1
- data/dist/chunks/{_pb_line_graph-BGY7jEks.js → _pb_line_graph-DmLNisSX.js} +1 -1
- data/dist/chunks/_typeahead-A65ydiHU.js +1 -0
- data/dist/chunks/{globalProps-CK2YuA9O.js → globalProps-CIociBQR.js} +1 -1
- data/dist/chunks/lib-DMiulv21.js +29 -0
- data/dist/chunks/vendor.js +3 -3
- 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/forms/builder/checkbox_field.rb +1 -1
- data/lib/playbook/forms/builder/collection_select_field.rb +1 -7
- data/lib/playbook/forms/builder/intl_telephone_field.rb +1 -11
- data/lib/playbook/forms/builder/phone_number_field.rb +2 -3
- data/lib/playbook/forms/builder/select_field.rb +1 -7
- data/lib/playbook/forms/builder/time_zone_select_field.rb +1 -7
- data/lib/playbook/tokens/colors.json +0 -2
- data/lib/playbook/version.rb +1 -1
- metadata +6 -16
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_closing_options.jsx +0 -63
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_closing_options.md +0 -1
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_reset_key.jsx +0 -100
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_reset_key.md +0 -1
- data/app/pb_kits/playbook/pb_select/docs/_select_required_indicator.html.erb +0 -24
- data/app/pb_kits/playbook/pb_select/docs/_select_required_indicator.jsx +0 -33
- data/app/pb_kits/playbook/pb_select/docs/_select_required_indicator.md +0 -3
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_disabled.html.erb +0 -10
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_disabled.jsx +0 -27
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_input_options.jsx +0 -68
- data/dist/chunks/_typeahead-QhswHQnq.js +0 -1
- data/dist/chunks/lib-DspaUdlc.js +0 -29
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6299b8a49848321384e54f6d9f60662764dd417a166b5563f1bc50832656c1d9
|
|
4
|
+
data.tar.gz: 1bb1985c3575b792611c6f793e8a9c313481b8ae6e0084fc2c2dea1257e0d640
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71a4204f922dc93fa2afc3453ec099784487d0f5f0198288a383dd87b8e97a1cc20c69ff95e27f00508cd7da50f8dee9a3181411e183e896f6f84e52a7436df0
|
|
7
|
+
data.tar.gz: 03a778086ee4a4a3b3096e7ec4a7ce8861fa50969c297394956078d8f287455d9247227712bdc6ce3819fe4033a1e1ad735db4757fa983fa8591e539ab6cf20f
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
.pb_body_kit_error_neutral,
|
|
31
31
|
.pb_body_kit_error_positive,
|
|
32
32
|
.pb_body_kit_error_negative {
|
|
33
|
-
@include pb_body($
|
|
33
|
+
@include pb_body($text_lt_default);
|
|
34
34
|
|
|
35
35
|
b,
|
|
36
36
|
strong {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
a {
|
|
41
|
-
color: $
|
|
41
|
+
color: $primary;
|
|
42
42
|
&:hover {
|
|
43
|
-
color: $
|
|
43
|
+
color: $text_lt_default;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
@include pb_body_dark();
|
|
111
111
|
|
|
112
112
|
a {
|
|
113
|
-
color: $
|
|
113
|
+
color: $active_dark;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
@@ -3,38 +3,38 @@
|
|
|
3
3
|
@import "../tokens/typography";
|
|
4
4
|
|
|
5
5
|
$pb_body_colors: (
|
|
6
|
-
default: $
|
|
7
|
-
light: $
|
|
8
|
-
lighter: $
|
|
9
|
-
link: $
|
|
10
|
-
error: $
|
|
11
|
-
success: $
|
|
6
|
+
default: $text_lt_default,
|
|
7
|
+
light: $text_lt_light,
|
|
8
|
+
lighter: $text_lt_lighter,
|
|
9
|
+
link: $primary,
|
|
10
|
+
error: $error,
|
|
11
|
+
success: $text_lt_success_sm,
|
|
12
12
|
);
|
|
13
13
|
|
|
14
14
|
$pb_dark_body_colors: (
|
|
15
|
-
default: $
|
|
16
|
-
light: $
|
|
17
|
-
lighter: $
|
|
18
|
-
link: $
|
|
19
|
-
error: $
|
|
20
|
-
success: $
|
|
15
|
+
default: $text_dk_default,
|
|
16
|
+
light: $text_dk_light,
|
|
17
|
+
lighter: $text_dk_lighter,
|
|
18
|
+
link: $active_dark,
|
|
19
|
+
error: $error,
|
|
20
|
+
success: $text_dk_success_sm,
|
|
21
21
|
);
|
|
22
22
|
|
|
23
23
|
// Order is important here!
|
|
24
24
|
$pb_body_status: (
|
|
25
|
-
default: $
|
|
26
|
-
negative: $
|
|
27
|
-
dark_error: $
|
|
28
|
-
positive: $
|
|
25
|
+
default: $text_lt_default,
|
|
26
|
+
negative: $error,
|
|
27
|
+
dark_error: $error_dark_body,
|
|
28
|
+
positive: $text_lt_success_sm,
|
|
29
29
|
);
|
|
30
30
|
|
|
31
31
|
$pb_dark_body_status: (
|
|
32
|
-
default: $
|
|
33
|
-
negative: $
|
|
34
|
-
positive: $
|
|
32
|
+
default: $text_dk_default,
|
|
33
|
+
negative: $error_dark,
|
|
34
|
+
positive: $text_dk_success_sm,
|
|
35
35
|
);
|
|
36
36
|
|
|
37
|
-
@mixin pb_body($color: $
|
|
37
|
+
@mixin pb_body($color: $text_lt_default) {
|
|
38
38
|
line-height: $lh_tight;
|
|
39
39
|
color: $color;
|
|
40
40
|
font-size: $text_default;
|
|
@@ -44,34 +44,34 @@ $pb_dark_body_status: (
|
|
|
44
44
|
|
|
45
45
|
// Colors ======================
|
|
46
46
|
@mixin pb_body_light {
|
|
47
|
-
@include pb_body($
|
|
47
|
+
@include pb_body($text_lt_light);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
@mixin pb_body_lighter {
|
|
51
|
-
@include pb_body($
|
|
51
|
+
@include pb_body($text_lt_lighter);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
@mixin pb_body_dark {
|
|
55
|
-
@include pb_body($
|
|
55
|
+
@include pb_body($text_dk_default);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
@mixin pb_body_light_dark {
|
|
59
|
-
@include pb_body($
|
|
59
|
+
@include pb_body($text_dk_light);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
@mixin pb_body_lighter_dark {
|
|
63
|
-
@include pb_body($
|
|
63
|
+
@include pb_body($text_dk_lighter);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
// Statuses =====================
|
|
67
67
|
@mixin pb_body_negative {
|
|
68
|
-
@include pb_body($
|
|
68
|
+
@include pb_body($error);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
@mixin pb_body_dark_error {
|
|
72
|
-
@include pb_body($
|
|
72
|
+
@include pb_body($error_dark_body);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
@mixin pb_body_positive {
|
|
76
|
-
@include pb_body($
|
|
76
|
+
@include pb_body($success);
|
|
77
77
|
}
|
|
@@ -115,10 +115,9 @@ $pb_button_sizes: (
|
|
|
115
115
|
|
|
116
116
|
// Icon-only button (icon prop set, no text) - square with equal padding
|
|
117
117
|
// Rails: uses .pb_button_icon_only class
|
|
118
|
-
// React: when pb_button_content
|
|
119
|
-
// text + icon (e.g. "Exit Fullscreen" + FA icon) which can include empty spans.
|
|
118
|
+
// React: detects when pb_button_content has an empty text span
|
|
120
119
|
&.pb_button_icon_only,
|
|
121
|
-
&:has(.pb_button_content:empty) {
|
|
120
|
+
&:has(.pb_button_content > span:empty) {
|
|
122
121
|
aspect-ratio: 1;
|
|
123
122
|
min-width: auto;
|
|
124
123
|
width: auto;
|
|
@@ -2,33 +2,33 @@
|
|
|
2
2
|
@import "../tokens/typography";
|
|
3
3
|
|
|
4
4
|
$pb_caption_colors: (
|
|
5
|
-
default: $
|
|
6
|
-
light: $
|
|
7
|
-
link: $
|
|
8
|
-
lighter: $
|
|
9
|
-
success: $
|
|
10
|
-
error: $
|
|
5
|
+
default: $text_lt_default,
|
|
6
|
+
light: $text_lt_light,
|
|
7
|
+
link: $primary,
|
|
8
|
+
lighter: $text_lt_lighter,
|
|
9
|
+
success: $text_lt_success_sm,
|
|
10
|
+
error: $error,
|
|
11
11
|
);
|
|
12
12
|
|
|
13
13
|
$pb_dark_caption_colors: (
|
|
14
|
-
default: $
|
|
15
|
-
light: $
|
|
16
|
-
lighter: $
|
|
17
|
-
link: $
|
|
18
|
-
success: $
|
|
19
|
-
error: $
|
|
14
|
+
default: $text_dk_default,
|
|
15
|
+
light: $text_dk_light,
|
|
16
|
+
lighter: $text_dk_lighter,
|
|
17
|
+
link: $active_dark,
|
|
18
|
+
success: $text_dk_success_sm,
|
|
19
|
+
error: $error_dark,
|
|
20
20
|
);
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
@mixin caption($font_size: $font_smaller, $font_weight: $bold) {
|
|
24
24
|
font-weight: $font_weight;
|
|
25
|
-
color: $
|
|
25
|
+
color: $text_lt_light;
|
|
26
26
|
text-transform: uppercase;
|
|
27
27
|
font-size: $font_size;
|
|
28
28
|
letter-spacing: $lspace_loosest;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
@mixin caption_color($color: $
|
|
31
|
+
@mixin caption_color($color: $text_lt_light) {
|
|
32
32
|
color: $color;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -43,5 +43,5 @@ $pb_dark_caption_colors: (
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
@mixin caption_dark {
|
|
46
|
-
color: $
|
|
46
|
+
color: $text_dk_light;
|
|
47
47
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
<%= pb_rails("caption", props: { text: "
|
|
2
|
-
<%= pb_rails("caption", props: { text: "
|
|
3
|
-
<%= pb_rails("caption", props: { text: "
|
|
4
|
-
<%= pb_rails("caption", props: { text: "
|
|
5
|
-
<%= pb_rails("caption", props: { text: "Caption error", color: "error" }) %>
|
|
6
|
-
<%= pb_rails("caption", props: { text: "Caption link", color: "link" }) %>
|
|
1
|
+
<%= pb_rails("caption", props: { text: "Test colors" }) %>
|
|
2
|
+
<%= pb_rails("caption", props: { text: "Test colors", color: "success" }) %>
|
|
3
|
+
<%= pb_rails("caption", props: { text: "Test colors", color: "error" }) %>
|
|
4
|
+
<%= pb_rails("caption", props: { text: "Test colors", color: "link" }) %>
|
|
@@ -4,33 +4,23 @@ import Caption from "../../pb_caption/_caption"
|
|
|
4
4
|
const CaptionColors = (props) => {
|
|
5
5
|
return (
|
|
6
6
|
<div>
|
|
7
|
-
<Caption
|
|
8
|
-
text="Caption light"
|
|
9
|
-
{...props}
|
|
10
|
-
/>
|
|
11
|
-
<Caption
|
|
12
|
-
color="default"
|
|
13
|
-
text="Caption default"
|
|
14
|
-
{...props}
|
|
15
|
-
/>
|
|
16
7
|
<Caption
|
|
17
|
-
|
|
18
|
-
text="Caption lighter"
|
|
8
|
+
text="Test colors"
|
|
19
9
|
{...props}
|
|
20
10
|
/>
|
|
21
11
|
<Caption
|
|
22
12
|
color="success"
|
|
23
|
-
text="
|
|
13
|
+
text="Test colors"
|
|
24
14
|
{...props}
|
|
25
15
|
/>
|
|
26
16
|
<Caption
|
|
27
17
|
color="error"
|
|
28
|
-
text="
|
|
18
|
+
text="Test colors"
|
|
29
19
|
{...props}
|
|
30
20
|
/>
|
|
31
21
|
<Caption
|
|
32
22
|
color="link"
|
|
33
|
-
text="
|
|
23
|
+
text="Test colors"
|
|
34
24
|
{...props}
|
|
35
25
|
/>
|
|
36
26
|
</div>
|
|
@@ -26,7 +26,7 @@ $transition: $transition_cubic;
|
|
|
26
26
|
.pb_checkbox_checkmark,
|
|
27
27
|
.pb_checkbox_indeterminate {
|
|
28
28
|
align-items: center;
|
|
29
|
-
border: solid $
|
|
29
|
+
border: solid $border_light 2px;
|
|
30
30
|
border-radius: $border_rad_light;
|
|
31
31
|
height: 22px;
|
|
32
32
|
transition: background $transition_default ease, box-shadow $transition_default ease;
|
|
@@ -62,16 +62,16 @@ $transition: $transition_cubic;
|
|
|
62
62
|
left: $offscreen;
|
|
63
63
|
|
|
64
64
|
&:focus ~ .pb_checkbox_checkmark {
|
|
65
|
-
box-shadow: 0px 0px 0px 2px $white, 0px 0px 0px 4px $
|
|
65
|
+
box-shadow: 0px 0px 0px 2px $white, 0px 0px 0px 4px $primary;
|
|
66
66
|
}
|
|
67
67
|
&:checked ~ .pb_checkbox_checkmark,
|
|
68
68
|
& ~ .pb_checkbox_indeterminate {
|
|
69
69
|
background-color: $primary_action;
|
|
70
|
-
border-color: $
|
|
70
|
+
border-color: $primary_action;
|
|
71
71
|
|
|
72
72
|
&:hover {
|
|
73
73
|
background-color: $primary_action;
|
|
74
|
-
border-color: $
|
|
74
|
+
border-color: $primary_action;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
&:checked ~ .pb_checkbox_checkmark,
|
|
@@ -86,47 +86,47 @@ $transition: $transition_cubic;
|
|
|
86
86
|
&:disabled ~ .pb_checkbox_checkmark {
|
|
87
87
|
cursor: not-allowed;
|
|
88
88
|
background-color: mix($charcoal, $white, 5%);
|
|
89
|
-
border-color: $
|
|
89
|
+
border-color: $border_light;
|
|
90
90
|
|
|
91
91
|
& ~ .pb_checkbox_label {
|
|
92
92
|
cursor: not-allowed;
|
|
93
|
-
color: $
|
|
93
|
+
color: $text_lt_light;
|
|
94
94
|
}
|
|
95
95
|
& ~ .pb_checkbox_label .pb_body_kit {
|
|
96
96
|
cursor: not-allowed;
|
|
97
|
-
color: $
|
|
97
|
+
color: $text_lt_light;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
&:disabled:checked ~ .pb_checkbox_checkmark {
|
|
102
102
|
background-color: $neutral;
|
|
103
|
-
border-color: $
|
|
103
|
+
border-color: $neutral;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
&:disabled:checked:hover ~ .pb_checkbox_checkmark {
|
|
107
107
|
background-color: $neutral;
|
|
108
|
-
border-color: $
|
|
108
|
+
border-color: $neutral;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
&.dark {
|
|
113
113
|
input {
|
|
114
114
|
&:focus ~ .pb_checkbox_checkmark {
|
|
115
|
-
box-shadow: 0px 0px 0px 2px $bg_dark_card, 0px 0px 0px 4px $
|
|
115
|
+
box-shadow: 0px 0px 0px 2px $bg_dark_card, 0px 0px 0px 4px $primary;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
&:disabled ~ .pb_checkbox_checkmark {
|
|
119
119
|
cursor: not-allowed;
|
|
120
120
|
background-color: mix($charcoal, $white, 80%);
|
|
121
|
-
border: 2px solid $
|
|
121
|
+
border: 2px solid $border_dark;
|
|
122
122
|
|
|
123
123
|
& ~ .pb_checkbox_label {
|
|
124
124
|
cursor: not-allowed;
|
|
125
|
-
color: $
|
|
125
|
+
color: $text_dk_light;
|
|
126
126
|
}
|
|
127
127
|
& ~ .pb_checkbox_label .pb_body_kit {
|
|
128
128
|
cursor: not-allowed;
|
|
129
|
-
color: $
|
|
129
|
+
color: $text_dk_light;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
|
@@ -136,7 +136,7 @@ $transition: $transition_cubic;
|
|
|
136
136
|
|
|
137
137
|
&:disabled:checked:hover ~ .pb_checkbox_checkmark {
|
|
138
138
|
background-color: $border_dark;
|
|
139
|
-
border-color: $
|
|
139
|
+
border-color: $border_dark;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
|
|
@@ -148,15 +148,15 @@ $transition: $transition_cubic;
|
|
|
148
148
|
|
|
149
149
|
&.pb_checkbox_kit_error {
|
|
150
150
|
> .pb_checkbox_checkmark {
|
|
151
|
-
border-color: $
|
|
151
|
+
border-color: $error_dark;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
input {
|
|
155
155
|
&:checked ~ .pb_checkbox_checkmark,
|
|
156
156
|
& ~ .pb_checkbox_indeterminate {
|
|
157
|
-
border-color: $
|
|
157
|
+
border-color: $primary;
|
|
158
158
|
&:hover {
|
|
159
|
-
border-color: $
|
|
159
|
+
border-color: $primary;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
}
|
|
@@ -165,7 +165,7 @@ $transition: $transition_cubic;
|
|
|
165
165
|
|
|
166
166
|
&.pb_checkbox_kit_error {
|
|
167
167
|
> .pb_checkbox_checkmark {
|
|
168
|
-
border-color: $
|
|
168
|
+
border-color: $error;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
}
|
|
@@ -11,11 +11,9 @@ export default class PbCollapsible extends PbEnhancedElement {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
connect() {
|
|
14
|
-
this.
|
|
14
|
+
this.element.addEventListener('click', () => {
|
|
15
15
|
this.toggleElement(this.target)
|
|
16
|
-
}
|
|
17
|
-
this.element.addEventListener('click', this.clickHandler)
|
|
18
|
-
|
|
16
|
+
})
|
|
19
17
|
// Check the initial state of the collapsible content and set the arrow accordingly
|
|
20
18
|
if (this.target.classList.contains('is-visible')) {
|
|
21
19
|
this.displayUpArrow()
|
|
@@ -23,19 +21,9 @@ export default class PbCollapsible extends PbEnhancedElement {
|
|
|
23
21
|
this.displayDownArrow()
|
|
24
22
|
}
|
|
25
23
|
// Listen for a custom event to toggle the collapsible
|
|
26
|
-
this.
|
|
24
|
+
document.addEventListener(`${this.target.id}`, () => {
|
|
27
25
|
this.toggleElement(this.target)
|
|
28
|
-
}
|
|
29
|
-
document.addEventListener(`${this.target.id}`, this.customEventHandler)
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
disconnect() {
|
|
33
|
-
if (this.clickHandler) {
|
|
34
|
-
this.element.removeEventListener('click', this.clickHandler)
|
|
35
|
-
}
|
|
36
|
-
if (this.customEventHandler && this.target) {
|
|
37
|
-
document.removeEventListener(`${this.target.id}`, this.customEventHandler)
|
|
38
|
-
}
|
|
26
|
+
})
|
|
39
27
|
}
|
|
40
28
|
|
|
41
29
|
get target() {
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&:focus,
|
|
27
|
-
|
|
27
|
+
:focus-within {
|
|
28
28
|
div.cal_icon_wrapper,
|
|
29
29
|
input.date_picker_input {
|
|
30
30
|
@include transition_default;
|
|
31
|
-
border-color: $
|
|
31
|
+
border-color: $primary;
|
|
32
32
|
}
|
|
33
33
|
.add-on-card {
|
|
34
|
-
border-color: $
|
|
34
|
+
border-color: $primary;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -39,18 +39,18 @@
|
|
|
39
39
|
&:hover {
|
|
40
40
|
.add-on-card {
|
|
41
41
|
cursor: pointer;
|
|
42
|
-
background-color: rgba($
|
|
42
|
+
background-color: rgba($focus_input_light,$opacity_5);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
.text_input_wrapper_add_on .add-on-icon {
|
|
47
|
-
color: $
|
|
47
|
+
color: $text_lt_light
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.text_input_wrapper_add_on .add-on-right .text_input{
|
|
51
51
|
cursor: pointer;
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
// Calendar Shadow and Border
|
|
72
72
|
.flatpickr-calendar {
|
|
73
73
|
box-shadow: $shadow_deeper;
|
|
74
|
-
border: 1px solid $
|
|
74
|
+
border: 1px solid $border_light;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
// Hide Caret
|
|
@@ -194,9 +194,6 @@ const DatePicker = (props: DatePickerProps): React.ReactElement => {
|
|
|
194
194
|
if (error) {
|
|
195
195
|
base += ' error'
|
|
196
196
|
}
|
|
197
|
-
if (disableInput) {
|
|
198
|
-
base += ' disabled'
|
|
199
|
-
}
|
|
200
197
|
return base
|
|
201
198
|
}
|
|
202
199
|
|
|
@@ -221,14 +218,11 @@ const DatePicker = (props: DatePickerProps): React.ReactElement => {
|
|
|
221
218
|
{!hideLabel && (
|
|
222
219
|
<label htmlFor={pickerId}>
|
|
223
220
|
{requiredIndicator ? (
|
|
224
|
-
<Caption className="pb_date_picker_kit_label"
|
|
225
|
-
color="lighter"
|
|
226
|
-
>
|
|
221
|
+
<Caption className="pb_date_picker_kit_label">
|
|
227
222
|
{label} <span style={{ color: `${colors.error}` }}>*</span>
|
|
228
223
|
</Caption>
|
|
229
224
|
) : (
|
|
230
225
|
<Caption className="pb_date_picker_kit_label"
|
|
231
|
-
color="lighter"
|
|
232
226
|
text={label}
|
|
233
227
|
/>
|
|
234
228
|
)}
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
<% if !object.hide_label && object.label %>
|
|
8
8
|
<label for="<%= object.picker_id %>">
|
|
9
9
|
<% if object.required_indicator %>
|
|
10
|
-
<%= pb_rails("caption", props: { dark: object.dark, classname: "pb_date_picker_kit_label"
|
|
10
|
+
<%= pb_rails("caption", props: { dark: object.dark, classname: "pb_date_picker_kit_label" }) do %>
|
|
11
11
|
<%= object.label %><span style="color: #DA0014;"> *</span>
|
|
12
12
|
<% end %>
|
|
13
13
|
<% else %>
|
|
14
|
-
<%= pb_rails("caption", props: { text: object.label, dark: object.dark, classname: "pb_date_picker_kit_label"
|
|
14
|
+
<%= pb_rails("caption", props: { text: object.label, dark: object.dark, classname: "pb_date_picker_kit_label" }) %>
|
|
15
15
|
<% end %>
|
|
16
16
|
</label>
|
|
17
17
|
<% end %>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
Datepicker supports `position` options from [Flatpickr Options Documentation](https://flatpickr.js.org/options/). There are multiple positioning options to choose from.
|
|
2
2
|
|
|
3
3
|
**Note:** In order for the above prop to work properly, you must also send `staticPosition={false}` to your Datepicker kit instance.
|
|
4
|
-
If you are using the Datepicker within a Dialog, you cannot use the `staticPosition`/`static_position` prop.
|
|
5
4
|
|
|
6
5
|
#### Affix Datepicker Upon Scrolling
|
|
7
6
|
|
|
@@ -5,38 +5,30 @@
|
|
|
5
5
|
position: absolute;
|
|
6
6
|
top: $space_md + 2;
|
|
7
7
|
right: 0;
|
|
8
|
-
border-left: 1px solid $
|
|
8
|
+
border-left: 1px solid $border_light;
|
|
9
9
|
width: $space_xl + $space_xs;
|
|
10
10
|
height: $space_xl + 5;
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
justify-content: center;
|
|
14
14
|
padding-left: $space_sm - 1;
|
|
15
|
-
color: $
|
|
15
|
+
color: $text_lt_light;
|
|
16
16
|
@media (hover: hover) {
|
|
17
17
|
&:hover{
|
|
18
18
|
background-color: rgba($focus_input_light,$opacity_5);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
&.dark {
|
|
22
|
-
color: $
|
|
23
|
-
border-
|
|
22
|
+
color: $white;
|
|
23
|
+
border-color: $border_dark;
|
|
24
24
|
}
|
|
25
25
|
&.no_label_shift {
|
|
26
26
|
top: 0;
|
|
27
27
|
}
|
|
28
28
|
&.error {
|
|
29
|
-
border-left:
|
|
30
|
-
}
|
|
31
|
-
&.disabled {
|
|
32
|
-
border-left: 1px solid $input_border_disabled;
|
|
33
|
-
color: $input_text_disabled;
|
|
34
|
-
}
|
|
35
|
-
&.dark.disabled {
|
|
36
|
-
border-left: 1px solid $input_border_disabled_dark;
|
|
37
|
-
color: $input_text_disabled_dark;
|
|
29
|
+
border-left-color: $error;
|
|
38
30
|
}
|
|
39
31
|
}
|
|
40
32
|
.cal_icon {
|
|
41
33
|
width: $space_sm;
|
|
42
|
-
}
|
|
34
|
+
}
|