playbook_ui 16.2.0.pre.alpha.iconfixes14578 → 16.2.0.pre.alpha.paginationpoc14472
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_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_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/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_dropdown/_dropdown.scss +25 -31
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +0 -2
- 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_icon/_icon.scss +1 -5
- data/app/pb_kits/playbook/pb_icon/icon.rb +19 -168
- 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_pagination/_pagination.scss +83 -1
- data/app/pb_kits/playbook/pb_pagination/_pagination.test.jsx +172 -1
- data/app/pb_kits/playbook/pb_pagination/_pagination.tsx +162 -15
- 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 +0 -2
- data/app/pb_kits/playbook/pb_select/select.html.erb +2 -2
- 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 +2 -5
- data/app/pb_kits/playbook/pb_textarea/_textarea_mixin.scss +10 -31
- data/app/pb_kits/playbook/pb_textarea/textarea.html.erb +2 -2
- data/app/pb_kits/playbook/pb_textarea/textarea.test.js +1 -1
- 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_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-BSLb5VXP.js → _pb_line_graph-CC2Ywwix.js} +1 -1
- data/dist/chunks/_typeahead-DtzfGPUT.js +1 -0
- data/dist/chunks/{globalProps-DyTB8IdV.js → globalProps-DYr2qrIf.js} +1 -1
- data/dist/chunks/{lib-9wz3x5jl.js → lib-DgqmX9CF.js} +1 -1
- 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/tokens/colors.json +0 -2
- data/lib/playbook/version.rb +1 -1
- metadata +6 -6
- data/dist/chunks/_typeahead-COVN8XN7.js +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b1fc350d7db9a34ab849ddcde7e29d07b0d2100245b347f70ecc055a380142e
|
|
4
|
+
data.tar.gz: 5a3889c3f030943c7dd5999cc95e01b1884b85cf1c5266876d7f44657bf8fcb5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d6614eb5e4ac6a2ae1c5a472d8780fda9b130ed4ea7725abe76ccb6a88be5a1be27cc46acc020044a9d0559ce89861c735211d49bea5208fba4da3be91becbe0
|
|
7
|
+
data.tar.gz: e89c242fdfcc9e383a699dd4dee36c731d9826dcd9e36d6aebaca1d2b32f210f5e1f0e27e49b6bad34e1a76d6d4cf054a3a7b268178ea37ac8bc0a5339249433
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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 %>
|
|
@@ -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
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@import "../../pb_textarea/textarea_mixin";
|
|
2
|
-
@import "../../tokens/colors";
|
|
3
2
|
|
|
4
3
|
.pb_date_picker_kit {
|
|
5
4
|
|
|
@@ -14,7 +13,6 @@
|
|
|
14
13
|
input::placeholder,
|
|
15
14
|
.date_picker_input .placeholder {
|
|
16
15
|
@include pb_body_light;
|
|
17
|
-
color: $input_text_default;
|
|
18
16
|
}
|
|
19
17
|
|
|
20
18
|
input,
|
|
@@ -26,90 +24,17 @@
|
|
|
26
24
|
|
|
27
25
|
input:hover,
|
|
28
26
|
.date_picker_input:hover {
|
|
29
|
-
background-color: $
|
|
27
|
+
background-color: rgba($focus_input_light, $opacity_5);
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
input:focus,
|
|
33
31
|
.date_picker_input:focus,
|
|
34
32
|
input:-webkit-autofill:focus,
|
|
35
33
|
.date_picker_input:-webkit-autofill:focus {
|
|
36
|
-
@include
|
|
34
|
+
@include pb_textarea_focus;
|
|
37
35
|
@include transition_default;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
input:disabled,
|
|
41
|
-
.date_picker_input:disabled {
|
|
42
|
-
border-color: $input_border_disabled;
|
|
43
|
-
background-color: $input_background_disabled;
|
|
44
|
-
color: $input_text_disabled;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
input:disabled::placeholder,
|
|
48
|
-
.date_picker_input:disabled::placeholder {
|
|
49
|
-
color: $input_text_disabled;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&.dark {
|
|
54
|
-
.date_picker_input_wrapper {
|
|
55
|
-
input::placeholder,
|
|
56
|
-
.date_picker_input .placeholder {
|
|
57
|
-
@include pb_body_light_dark;
|
|
58
|
-
color: $input_text_default_dark;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
input,
|
|
62
|
-
.date_picker_input {
|
|
63
|
-
@include pb_textarea_dark;
|
|
64
|
-
@include pb_body_dark;
|
|
65
|
-
overflow: hidden;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
input:hover,
|
|
69
|
-
.date_picker_input:hover {
|
|
70
|
-
background-color: $input_background_state_dark;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
input:focus,
|
|
74
|
-
.date_picker_input:focus,
|
|
75
|
-
input:active,
|
|
76
|
-
.date_picker_input:active,
|
|
77
|
-
input:-webkit-autofill:focus,
|
|
78
|
-
.date_picker_input:-webkit-autofill:focus {
|
|
79
|
-
@include pb_textarea_focus_dark;
|
|
80
|
-
@include transition_default;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
input:-webkit-autofill,
|
|
84
|
-
input:-webkit-autofill:hover,
|
|
85
|
-
input:-internal-autofill-selected,
|
|
86
|
-
.date_picker_input:-webkit-autofill,
|
|
87
|
-
.date_picker_input:-webkit-autofill:hover,
|
|
88
|
-
.date_picker_input:-internal-autofill-selected {
|
|
89
|
-
background-color: $input_background_state_dark;
|
|
90
|
-
color: $input_text_default_dark;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
input:disabled,
|
|
94
|
-
.date_picker_input:disabled {
|
|
95
|
-
border-color: $input_border_disabled_dark;
|
|
96
|
-
background-color: $input_background_disabled_dark;
|
|
97
|
-
color: $input_text_disabled_dark;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
input:disabled::placeholder,
|
|
101
|
-
.date_picker_input:disabled::placeholder {
|
|
102
|
-
color: $input_text_disabled_dark;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&.error {
|
|
107
|
-
.date_picker_input_wrapper {
|
|
108
|
-
input,
|
|
109
|
-
.date_picker_input {
|
|
110
|
-
border-color: $input_border_error_dark;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
36
|
+
border-color: $primary;
|
|
37
|
+
background-color: rgba($focus_input_light, $opacity_5);
|
|
113
38
|
}
|
|
114
39
|
}
|
|
115
40
|
|
|
@@ -121,7 +46,7 @@
|
|
|
121
46
|
|
|
122
47
|
input,
|
|
123
48
|
.date_picker_input {
|
|
124
|
-
border-color: $
|
|
49
|
+
border-color: $error;
|
|
125
50
|
}
|
|
126
51
|
}
|
|
127
52
|
}
|
|
@@ -4,16 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
.pb_date_picker_kit {
|
|
6
6
|
.pb_time_selection {
|
|
7
|
-
color:
|
|
8
|
-
background-color: $input_background_default;
|
|
7
|
+
color: inherit;
|
|
9
8
|
text-align: left;
|
|
10
9
|
margin-left: $space_sm;
|
|
11
10
|
|
|
12
11
|
.numInputWrapper {
|
|
13
12
|
width: auto;
|
|
14
13
|
input.numInput {
|
|
15
|
-
background-color: $input_background_default;
|
|
16
|
-
color: $input_text_active;
|
|
17
14
|
border: 1px solid $border_light !important;
|
|
18
15
|
border-radius: 5px;
|
|
19
16
|
text-align: center;
|
|
@@ -44,9 +41,6 @@
|
|
|
44
41
|
}
|
|
45
42
|
}
|
|
46
43
|
.meridiem {
|
|
47
|
-
&.dark {
|
|
48
|
-
background-color: $input_background_default;
|
|
49
|
-
}
|
|
50
44
|
.pb_form_group_kit {
|
|
51
45
|
margin-left: $space_sm;
|
|
52
46
|
}
|
|
@@ -65,7 +59,6 @@
|
|
|
65
59
|
width: 60px;
|
|
66
60
|
height: 40px;
|
|
67
61
|
text-align: center;
|
|
68
|
-
color: $input_text_active;
|
|
69
62
|
}
|
|
70
63
|
}
|
|
71
64
|
}
|