playbook_ui 12.19.0.pre.alpha.movemarkdown639 → 12.20.0.pre.alpha.movemarkdown668
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.tsx +38 -0
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.tsx +94 -0
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_calendar_input_icon.scss +33 -0
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_day_styles.scss +78 -0
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_flatpickr_styles.scss +775 -0
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_header_styles.scss +116 -0
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_inline_styles.scss +173 -0
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_input_styles.scss +68 -0
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_month_and_year_styles.scss +127 -0
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_overrides.scss +47 -0
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_time_selection_styles.scss +64 -0
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_week_styles.scss +127 -0
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx +25 -0
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.tsx +56 -0
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_header.tsx +68 -0
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.scss +1 -2
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +22 -7
- data/app/pb_kits/playbook/pb_multi_level_select/helper_functions.ts +32 -5
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +9 -4
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.tsx +5 -3
- data/app/pb_kits/playbook/pb_selectable_card/selectable_card.html.erb +2 -1
- data/app/pb_kits/playbook/pb_table/styles/_alignment.scss +32 -0
- data/app/pb_kits/playbook/pb_table/styles/_all.scss +19 -0
- data/app/pb_kits/playbook/pb_table/styles/_content.scss +13 -0
- data/app/pb_kits/playbook/pb_table/styles/_desktop_collapse.scss +125 -0
- data/app/pb_kits/playbook/pb_table/styles/_headers.scss +16 -0
- data/app/pb_kits/playbook/pb_table/styles/_hover.scss +74 -0
- data/app/pb_kits/playbook/pb_table/styles/_mobile.scss +125 -0
- data/app/pb_kits/playbook/pb_table/styles/_mobile_collapse.scss +125 -0
- data/app/pb_kits/playbook/pb_table/styles/_reset.scss +17 -0
- data/app/pb_kits/playbook/pb_table/styles/_side_highlight.scss +24 -0
- data/app/pb_kits/playbook/pb_table/styles/_single-line.scss +34 -0
- data/app/pb_kits/playbook/pb_table/styles/_sticky_header.scss +23 -0
- data/app/pb_kits/playbook/pb_table/styles/_structure.scss +50 -0
- data/app/pb_kits/playbook/pb_table/styles/_table-card.scss +62 -0
- data/app/pb_kits/playbook/pb_table/styles/_table-dark.scss +100 -0
- data/app/pb_kits/playbook/pb_table/styles/_tablet_collapse.scss +125 -0
- data/app/pb_kits/playbook/pb_table/styles/_variables.scss +26 -0
- data/app/pb_kits/playbook/pb_table/styles/_vertical_border.scss +16 -0
- data/app/pb_kits/playbook/pb_typeahead/{_typeahead.jsx → _typeahead.tsx} +24 -12
- data/app/pb_kits/playbook/pb_typeahead/components/ClearIndicator.tsx +18 -0
- data/app/pb_kits/playbook/pb_typeahead/components/Control.tsx +28 -0
- data/app/pb_kits/playbook/pb_typeahead/components/IndicatorsContainer.tsx +11 -0
- data/app/pb_kits/playbook/pb_typeahead/components/MenuList.tsx +10 -0
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.tsx +66 -0
- data/app/pb_kits/playbook/pb_typeahead/components/Option.tsx +37 -0
- data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.tsx +26 -0
- data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.tsx +11 -0
- data/app/pb_kits/playbook/pb_typeahead/{index.js → index.ts} +37 -29
- data/app/pb_kits/playbook/pb_typeahead/types.d.ts +2 -0
- data/app/pb_kits/playbook/pb_user/_user.tsx +1 -1
- data/app/pb_kits/playbook/utilities/_positioning.scss +14 -0
- data/app/pb_kits/playbook/utilities/globalProps.ts +16 -4
- data/dist/playbook-rails.js +4 -4
- data/lib/playbook/version.rb +2 -2
- data/lib/playbook/z_index.rb +20 -7
- metadata +46 -4
@@ -0,0 +1,116 @@
|
|
1
|
+
@import "../../tokens/titles";
|
2
|
+
|
3
|
+
// Header Styles
|
4
|
+
.flatpickr-months {
|
5
|
+
border-bottom: solid 1px $border_light;
|
6
|
+
}
|
7
|
+
.flatpickr-month {
|
8
|
+
height: $space_xl;
|
9
|
+
}
|
10
|
+
.flatpickr-current-month {
|
11
|
+
left: $space_xs;
|
12
|
+
display: flex;
|
13
|
+
padding-top: 0;
|
14
|
+
}
|
15
|
+
.flatpickr-monthDropdown-months {
|
16
|
+
appearance: none;
|
17
|
+
-webkit-appearance: none;
|
18
|
+
@include pb_title_4;
|
19
|
+
height: $space_xl;
|
20
|
+
width: $space_xs * 12;
|
21
|
+
padding-left: 0;
|
22
|
+
padding-right: $space_xs;
|
23
|
+
margin-left: $space_sm;
|
24
|
+
margin-top: 0;
|
25
|
+
margin-bottom: 0;
|
26
|
+
@media (hover: hover) {
|
27
|
+
&:hover {
|
28
|
+
background-color: transparent;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
.numInputWrapper {
|
33
|
+
display: contents;
|
34
|
+
display: -webkit-box;
|
35
|
+
display: -webkit-flex;
|
36
|
+
.numInput {
|
37
|
+
@include pb_title_4;
|
38
|
+
border: 0;
|
39
|
+
appearance: none;
|
40
|
+
-webkit-appearance: none;
|
41
|
+
border-radius: 0;
|
42
|
+
background-color: transparent;
|
43
|
+
border-left: solid 1px $border_light;
|
44
|
+
padding-left: $space_md - 1.5;
|
45
|
+
padding-right: $space_sm;
|
46
|
+
margin-left: $space_xs;
|
47
|
+
height: $space_xl;
|
48
|
+
&:focus {
|
49
|
+
outline: none;
|
50
|
+
}
|
51
|
+
@media (hover: hover) {
|
52
|
+
&:hover {
|
53
|
+
cursor: pointer;
|
54
|
+
background-color: $white;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
// Icon for Select Tags
|
60
|
+
.month-dropdown-icon {
|
61
|
+
align-self: center;
|
62
|
+
margin-top: $space_xs - 3;
|
63
|
+
width: $space_xs + 2;
|
64
|
+
position: relative;
|
65
|
+
right: $space_xs + 2;
|
66
|
+
pointer-events: none;
|
67
|
+
color: $text_lt_light;
|
68
|
+
}
|
69
|
+
.year-dropdown-icon {
|
70
|
+
align-self: center;
|
71
|
+
-webkit-align-self: center;
|
72
|
+
margin-top: $space_xs - 3;
|
73
|
+
width: $space_xs + 2;
|
74
|
+
position: relative;
|
75
|
+
right: $space_xs + 4;
|
76
|
+
pointer-events: none;
|
77
|
+
color: $text_lt_light;
|
78
|
+
}
|
79
|
+
|
80
|
+
// Left - Right Arrow Styling
|
81
|
+
.flatpickr-prev-month {
|
82
|
+
display: flex;
|
83
|
+
flex-direction: column;
|
84
|
+
justify-content: center;
|
85
|
+
left: $space_xs * 29.25 !important;
|
86
|
+
padding-right: $space_sm;
|
87
|
+
border-left: solid 1px $border_light;
|
88
|
+
height: $space_xl;
|
89
|
+
svg path {
|
90
|
+
fill: $text_lt_light;
|
91
|
+
}
|
92
|
+
@media (hover: hover) {
|
93
|
+
&:hover {
|
94
|
+
svg {
|
95
|
+
fill: inherit;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
.flatpickr-next-month {
|
101
|
+
display: flex;
|
102
|
+
flex-direction: column;
|
103
|
+
justify-content: center;
|
104
|
+
padding-left: $space_sm;
|
105
|
+
height: $space_xl;
|
106
|
+
svg path {
|
107
|
+
fill: $text_lt_light;
|
108
|
+
}
|
109
|
+
@media (hover: hover) {
|
110
|
+
&:hover{
|
111
|
+
svg {
|
112
|
+
fill: inherit;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
@@ -0,0 +1,173 @@
|
|
1
|
+
/*
|
2
|
+
=== Date Picker States ===
|
3
|
+
Default - No value in date picker - display grey Plus icon
|
4
|
+
Hover - No value in date picker - display blue Plus icon
|
5
|
+
- After Value in Date Picker -
|
6
|
+
Default - display grey caret icon
|
7
|
+
Hover - display blue caret icon
|
8
|
+
*/
|
9
|
+
[class^=pb_date_picker_kit] {
|
10
|
+
/*Default - No value in date picker*/
|
11
|
+
&.inline-date-picker {
|
12
|
+
[class^="pb_text_input_kit"] .text_input_wrapper .flatpickr-wrapper input::placeholder,
|
13
|
+
[class^="pb_text_input_kit"] .text_input_wrapper .flatpickr-wrapper .text_input .placeholder {
|
14
|
+
opacity: 1;
|
15
|
+
}
|
16
|
+
&:not(:hover) {
|
17
|
+
#date-picker-inline-angle-down {
|
18
|
+
svg {
|
19
|
+
display: none;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
#date-picker-inline-icon-plus {
|
23
|
+
svg {
|
24
|
+
color: $slate;
|
25
|
+
display: inline-block;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
&:hover {
|
30
|
+
[class^="pb_text_input_kit"] .text_input_wrapper input,
|
31
|
+
[class^="pb_text_input_kit"] .text_input_wrapper .text_input,
|
32
|
+
[class^="pb_text_input_kit"] .text_input_wrapper .flatpickr-wrapper input::placeholder,
|
33
|
+
[class^="pb_text_input_kit"] .text_input_wrapper .flatpickr-wrapper .text_input .placeholder {
|
34
|
+
color: $primary;
|
35
|
+
}
|
36
|
+
#date-picker-inline-angle-down {
|
37
|
+
svg {
|
38
|
+
display: none;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
#date-picker-inline-icon-plus {
|
42
|
+
svg {
|
43
|
+
display: inline-block;
|
44
|
+
color: $primary;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
&.show-angle-down-icon {
|
49
|
+
&:not(:hover) {
|
50
|
+
#date-picker-inline-angle-down {
|
51
|
+
svg {
|
52
|
+
display: inline-block;
|
53
|
+
color: $text_lt_light;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
#date-picker-inline-icon-plus {
|
57
|
+
svg {
|
58
|
+
display: none;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
#date-picker-inline-icon-plus {
|
63
|
+
svg {
|
64
|
+
display: none;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
#date-picker-inline-angle-down {
|
68
|
+
svg {
|
69
|
+
display: inline-block;
|
70
|
+
color: $primary;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
#date-picker-inline,
|
75
|
+
#date-picker-inline .active {
|
76
|
+
border: none;
|
77
|
+
padding: 5px 5px 5px 10px;
|
78
|
+
background-color: #FFF;
|
79
|
+
&:hover {
|
80
|
+
background: rgba(0,130,255,0.1);
|
81
|
+
transition: background-color 0.2s ease;
|
82
|
+
box-shadow: none;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
#date-picker-inline-angle-down,
|
86
|
+
#date-picker-inline-icon-plus {
|
87
|
+
height: 33px;
|
88
|
+
border: none;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
/*
|
94
|
+
DARK MODE
|
95
|
+
*/
|
96
|
+
[class^=pb_date_picker_kit].dark {
|
97
|
+
&.inline-date-picker {
|
98
|
+
&:not(:hover) {
|
99
|
+
#date-picker-inline-angle-down {
|
100
|
+
svg {
|
101
|
+
display: none;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
#date-picker-inline-icon-plus {
|
105
|
+
svg {
|
106
|
+
display: inline-block;
|
107
|
+
color: $white;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
&:hover {
|
112
|
+
[class^="pb_text_input_kit"] .text_input_wrapper input,
|
113
|
+
[class^="pb_text_input_kit"] .text_input_wrapper .text_input,
|
114
|
+
[class^="pb_text_input_kit"] .text_input_wrapper .flatpickr-wrapper input::placeholder,
|
115
|
+
[class^="pb_text_input_kit"] .text_input_wrapper .flatpickr-wrapper .text_input .placeholder {
|
116
|
+
color: $white;
|
117
|
+
}
|
118
|
+
#date-picker-inline-angle-down {
|
119
|
+
svg {
|
120
|
+
display: none;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
#date-picker-inline-icon-plus {
|
124
|
+
svg {
|
125
|
+
display: inline-block;
|
126
|
+
color: $white;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
}
|
130
|
+
&.show-angle-down-icon {
|
131
|
+
&:not(:hover) {
|
132
|
+
#date-picker-inline-angle-down {
|
133
|
+
svg {
|
134
|
+
display: inline-block;
|
135
|
+
color: $white;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
#date-picker-inline-icon-plus {
|
139
|
+
svg {
|
140
|
+
display: none;
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
144
|
+
#date-picker-inline-icon-plus {
|
145
|
+
svg {
|
146
|
+
display: none;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
#date-picker-inline-angle-down {
|
150
|
+
svg {
|
151
|
+
display: inline-block;
|
152
|
+
color: $white;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
156
|
+
#date-picker-inline,
|
157
|
+
#date-picker-inline .active {
|
158
|
+
background-color: rgba($white,.10);
|
159
|
+
border: none;
|
160
|
+
padding: 5px 5px 5px 10px;
|
161
|
+
&:hover {
|
162
|
+
background: rgba(0,130,255,0.1);
|
163
|
+
transition: background-color 0.2s ease;
|
164
|
+
box-shadow: none;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
#date-picker-inline-angle-down,
|
168
|
+
#date-picker-inline-icon-plus {
|
169
|
+
height: 33px;
|
170
|
+
border: none;
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
@@ -0,0 +1,68 @@
|
|
1
|
+
@import "../../pb_textarea/textarea_mixin";
|
2
|
+
|
3
|
+
[class^=pb_date_picker_kit] {
|
4
|
+
margin-bottom: $space_sm;
|
5
|
+
|
6
|
+
.pb_date_picker_kit_label {
|
7
|
+
margin-bottom: $space_xs;
|
8
|
+
display: block;
|
9
|
+
}
|
10
|
+
|
11
|
+
.date_picker_input_wrapper {
|
12
|
+
display: block;
|
13
|
+
|
14
|
+
input::placeholder,
|
15
|
+
.date_picker_input .placeholder {
|
16
|
+
@include pb_body_light;
|
17
|
+
}
|
18
|
+
|
19
|
+
input,
|
20
|
+
.date_picker_input {
|
21
|
+
max-height: 45px;
|
22
|
+
@include pb_textarea_light;
|
23
|
+
overflow: hidden;
|
24
|
+
}
|
25
|
+
|
26
|
+
input:hover,
|
27
|
+
.date_picker_input:hover {
|
28
|
+
background-color: rgba($focus_input_light, $opacity_5);
|
29
|
+
}
|
30
|
+
|
31
|
+
input:focus,
|
32
|
+
.date_picker_input:focus,
|
33
|
+
input:-webkit-autofill:focus,
|
34
|
+
.date_picker_input:-webkit-autofill:focus {
|
35
|
+
@include pb_textarea_focus;
|
36
|
+
@include transition_default;
|
37
|
+
border-color: $primary;
|
38
|
+
background-color: rgba($focus_input_light, $opacity_5);
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
&.error {
|
43
|
+
.date_picker_input_wrapper {
|
44
|
+
[class*=pb_body_kit] {
|
45
|
+
margin-top: $space_xs / 2;
|
46
|
+
}
|
47
|
+
|
48
|
+
input,
|
49
|
+
.date_picker_input {
|
50
|
+
border-color: $error;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
&.inline {
|
56
|
+
.date_picker_input_wrapper input::placeholder,
|
57
|
+
.date_picker_input_wrapper .date_picker_input .placeholder {
|
58
|
+
opacity: 1;
|
59
|
+
}
|
60
|
+
|
61
|
+
&:not(:hover) {
|
62
|
+
.date_picker_input_wrapper input:not(:focus) {
|
63
|
+
background-color: transparent;
|
64
|
+
border-color: transparent;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
@@ -0,0 +1,127 @@
|
|
1
|
+
@import "../../tokens/colors";
|
2
|
+
|
3
|
+
|
4
|
+
.numInput {
|
5
|
+
border-left: none !important;
|
6
|
+
}
|
7
|
+
|
8
|
+
// Manual Import
|
9
|
+
.flatpickr-monthSelect-months {
|
10
|
+
margin: 10px 1px 3px 1px;
|
11
|
+
flex-wrap: wrap;
|
12
|
+
}
|
13
|
+
|
14
|
+
.flatpickr-monthSelect-month {
|
15
|
+
background: none;
|
16
|
+
border: 1px solid transparent;
|
17
|
+
border-radius: 4px;
|
18
|
+
-webkit-box-sizing: border-box;
|
19
|
+
box-sizing: border-box;
|
20
|
+
color: $text_lt_default;
|
21
|
+
cursor: pointer;
|
22
|
+
display: inline-block;
|
23
|
+
font-weight: 400;
|
24
|
+
margin: 0.5px;
|
25
|
+
justify-content: center;
|
26
|
+
padding: 10px;
|
27
|
+
position: relative;
|
28
|
+
-webkit-box-pack: center;
|
29
|
+
-webkit-justify-content: center;
|
30
|
+
-ms-flex-pack: center;
|
31
|
+
text-align: center;
|
32
|
+
width: 33%;
|
33
|
+
}
|
34
|
+
|
35
|
+
.flatpickr-monthSelect-month.flatpickr-disabled {
|
36
|
+
color: #eee;
|
37
|
+
}
|
38
|
+
|
39
|
+
.flatpickr-monthSelect-month.flatpickr-disabled:hover,
|
40
|
+
.flatpickr-monthSelect-month.flatpickr-disabled:focus {
|
41
|
+
cursor: not-allowed;
|
42
|
+
background: none !important;
|
43
|
+
}
|
44
|
+
|
45
|
+
.flatpickr-monthSelect-theme-dark {
|
46
|
+
background: #3f4458;
|
47
|
+
}
|
48
|
+
|
49
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-current-month input.cur-year {
|
50
|
+
color: #fff;
|
51
|
+
}
|
52
|
+
|
53
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-months .flatpickr-prev-month,
|
54
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-months .flatpickr-next-month {
|
55
|
+
color: #fff;
|
56
|
+
fill: #fff;
|
57
|
+
}
|
58
|
+
|
59
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month {
|
60
|
+
color: rgba(255, 255, 255, 0.95);
|
61
|
+
}
|
62
|
+
|
63
|
+
.flatpickr-monthSelect-month.today {
|
64
|
+
border-color: #959ea9;
|
65
|
+
}
|
66
|
+
|
67
|
+
.flatpickr-monthSelect-month.inRange,
|
68
|
+
.flatpickr-monthSelect-month.inRange.today,
|
69
|
+
.flatpickr-monthSelect-month:hover,
|
70
|
+
.flatpickr-monthSelect-month:focus {
|
71
|
+
background: $active_light;
|
72
|
+
font-weight: $bold;
|
73
|
+
color: $text_lt_default;
|
74
|
+
cursor: pointer;
|
75
|
+
outline: 0;
|
76
|
+
}
|
77
|
+
|
78
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month.inRange,
|
79
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month:hover,
|
80
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month:focus {
|
81
|
+
background: #646c8c;
|
82
|
+
border-color: #646c8c;
|
83
|
+
}
|
84
|
+
|
85
|
+
.flatpickr-monthSelect-month.today:hover,
|
86
|
+
.flatpickr-monthSelect-month.today:focus {
|
87
|
+
background: #959ea9;
|
88
|
+
border-color: #959ea9;
|
89
|
+
color: #fff;
|
90
|
+
}
|
91
|
+
|
92
|
+
.flatpickr-monthSelect-month.selected,
|
93
|
+
.flatpickr-monthSelect-month.startRange,
|
94
|
+
.flatpickr-monthSelect-month.endRange {
|
95
|
+
background-color: $primary;
|
96
|
+
font-weight: $bold;
|
97
|
+
box-shadow: none;
|
98
|
+
color: #fff;
|
99
|
+
border-color: $primary;
|
100
|
+
}
|
101
|
+
|
102
|
+
.flatpickr-monthSelect-month.startRange {
|
103
|
+
border-radius: 50px 0 0 50px;
|
104
|
+
}
|
105
|
+
|
106
|
+
.flatpickr-monthSelect-month.endRange {
|
107
|
+
border-radius: 0 50px 50px 0;
|
108
|
+
}
|
109
|
+
|
110
|
+
.flatpickr-monthSelect-month.startRange.endRange {
|
111
|
+
border-radius: 50px;
|
112
|
+
}
|
113
|
+
|
114
|
+
.flatpickr-monthSelect-month.inRange {
|
115
|
+
border-radius: 0;
|
116
|
+
box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;
|
117
|
+
}
|
118
|
+
|
119
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month.selected,
|
120
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month.startRange,
|
121
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month.endRange {
|
122
|
+
background: #80cbc4;
|
123
|
+
-webkit-box-shadow: none;
|
124
|
+
box-shadow: none;
|
125
|
+
color: #fff;
|
126
|
+
border-color: #80cbc4;
|
127
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
@media (min-width: 500px) {
|
2
|
+
.flatpickr-calendar {
|
3
|
+
padding: $space_xs;
|
4
|
+
// width: 323.88px;
|
5
|
+
}
|
6
|
+
.dayContainer {
|
7
|
+
width: 315.88px
|
8
|
+
}
|
9
|
+
.flatpickr-months {
|
10
|
+
margin-left: $space_xs / 4;
|
11
|
+
margin-top: $space_xs / 3;
|
12
|
+
// width: 323.88px;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
@media (max-width: 499px) {
|
16
|
+
.numInput.cur-year {
|
17
|
+
padding-left: $space_sm;
|
18
|
+
}
|
19
|
+
.flatpickr-prev-month {
|
20
|
+
left: $space_xs * 27.5 !important;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
// Firefox Header Adjustments
|
24
|
+
@supports (-moz-appearance:none) {
|
25
|
+
select.flatpickr-monthDropdown-months {
|
26
|
+
width: 97px !important;
|
27
|
+
margin-left: $space_xs + 3;
|
28
|
+
}
|
29
|
+
select.numInput {
|
30
|
+
padding-left: $space_sm + 1.5 !important;
|
31
|
+
margin-left: $space_xs !important;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
// Direct Overrides
|
35
|
+
.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,
|
36
|
+
.flatpickr-months .flatpickr-next-month.flatpickr-disabled {
|
37
|
+
cursor: not-allowed;
|
38
|
+
}
|
39
|
+
.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),
|
40
|
+
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),
|
41
|
+
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {
|
42
|
+
-webkit-box-shadow: none;
|
43
|
+
box-shadow: none;
|
44
|
+
}
|
45
|
+
.flatpickr-current-month .flatpickr-monthDropdown-months:hover, .numInputWrapper:hover {
|
46
|
+
background-color: $white;
|
47
|
+
}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
@import "../../tokens/typography";
|
2
|
+
@import "../../tokens/spacing";
|
3
|
+
@import "../../tokens/colors";
|
4
|
+
|
5
|
+
[class^=pb_date_picker_kit] {
|
6
|
+
.pb_time_selection {
|
7
|
+
color: inherit;
|
8
|
+
text-align: left;
|
9
|
+
margin-left: $space_sm;
|
10
|
+
|
11
|
+
.numInputWrapper {
|
12
|
+
width: auto;
|
13
|
+
input.numInput {
|
14
|
+
border: 1px solid $border_light !important;
|
15
|
+
border-radius: 5px;
|
16
|
+
text-align: center;
|
17
|
+
width: 60px;
|
18
|
+
margin-left: 0;
|
19
|
+
padding: 0;
|
20
|
+
&:focus {
|
21
|
+
border-color: $primary_action !important;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
span {
|
25
|
+
&.arrowUp, &.arrowDown {
|
26
|
+
display: none;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
[class^=pb_caption_kit_md], [class^=pb_caption_kit_xs] {
|
31
|
+
line-height: $text_larger;
|
32
|
+
}
|
33
|
+
[class^=pb_caption_kit_xs] {
|
34
|
+
clear: both;
|
35
|
+
display: block;
|
36
|
+
}
|
37
|
+
.flatpickr {
|
38
|
+
&-time-separator {
|
39
|
+
margin: 0 $space_xs;
|
40
|
+
text-align: center;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
.meridiem {
|
44
|
+
[class^=pb_form_group_kit] {
|
45
|
+
margin-left: $space_sm;
|
46
|
+
}
|
47
|
+
|
48
|
+
.datePicker-AMPM {
|
49
|
+
display: none;
|
50
|
+
}
|
51
|
+
&:focus, &:hover {
|
52
|
+
background: transparent;
|
53
|
+
}
|
54
|
+
|
55
|
+
[class^=pb_selectable_card_kit] > label {
|
56
|
+
padding: 0;
|
57
|
+
margin: 0;
|
58
|
+
width: 60px;
|
59
|
+
height: 40px;
|
60
|
+
text-align: center;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
@@ -0,0 +1,127 @@
|
|
1
|
+
@import "../../tokens/colors";
|
2
|
+
|
3
|
+
|
4
|
+
.numInput {
|
5
|
+
border-left: none !important;
|
6
|
+
}
|
7
|
+
|
8
|
+
// Manual Import
|
9
|
+
.flatpickr-monthSelect-months {
|
10
|
+
margin: 10px 1px 3px 1px;
|
11
|
+
flex-wrap: wrap;
|
12
|
+
}
|
13
|
+
|
14
|
+
.flatpickr-monthSelect-month {
|
15
|
+
background: none;
|
16
|
+
border: 1px solid transparent;
|
17
|
+
border-radius: 4px;
|
18
|
+
-webkit-box-sizing: border-box;
|
19
|
+
box-sizing: border-box;
|
20
|
+
color: $text_lt_default;
|
21
|
+
cursor: pointer;
|
22
|
+
display: inline-block;
|
23
|
+
font-weight: 400;
|
24
|
+
margin: 0.5px;
|
25
|
+
justify-content: center;
|
26
|
+
padding: 10px;
|
27
|
+
position: relative;
|
28
|
+
-webkit-box-pack: center;
|
29
|
+
-webkit-justify-content: center;
|
30
|
+
-ms-flex-pack: center;
|
31
|
+
text-align: center;
|
32
|
+
width: 33%;
|
33
|
+
}
|
34
|
+
|
35
|
+
.flatpickr-monthSelect-month.flatpickr-disabled {
|
36
|
+
color: #eee;
|
37
|
+
}
|
38
|
+
|
39
|
+
.flatpickr-monthSelect-month.flatpickr-disabled:hover,
|
40
|
+
.flatpickr-monthSelect-month.flatpickr-disabled:focus {
|
41
|
+
cursor: not-allowed;
|
42
|
+
background: none !important;
|
43
|
+
}
|
44
|
+
|
45
|
+
.flatpickr-monthSelect-theme-dark {
|
46
|
+
background: #3f4458;
|
47
|
+
}
|
48
|
+
|
49
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-current-month input.cur-year {
|
50
|
+
color: #fff;
|
51
|
+
}
|
52
|
+
|
53
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-months .flatpickr-prev-month,
|
54
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-months .flatpickr-next-month {
|
55
|
+
color: #fff;
|
56
|
+
fill: #fff;
|
57
|
+
}
|
58
|
+
|
59
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month {
|
60
|
+
color: rgba(255, 255, 255, 0.95);
|
61
|
+
}
|
62
|
+
|
63
|
+
.flatpickr-monthSelect-month.today {
|
64
|
+
border-color: #959ea9;
|
65
|
+
}
|
66
|
+
|
67
|
+
.flatpickr-monthSelect-month.inRange,
|
68
|
+
.flatpickr-monthSelect-month.inRange.today,
|
69
|
+
.flatpickr-monthSelect-month:hover,
|
70
|
+
.flatpickr-monthSelect-month:focus {
|
71
|
+
background: $active_light;
|
72
|
+
font-weight: $bold;
|
73
|
+
color: $text_lt_default;
|
74
|
+
cursor: pointer;
|
75
|
+
outline: 0;
|
76
|
+
}
|
77
|
+
|
78
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month.inRange,
|
79
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month:hover,
|
80
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month:focus {
|
81
|
+
background: #646c8c;
|
82
|
+
border-color: #646c8c;
|
83
|
+
}
|
84
|
+
|
85
|
+
.flatpickr-monthSelect-month.today:hover,
|
86
|
+
.flatpickr-monthSelect-month.today:focus {
|
87
|
+
background: #959ea9;
|
88
|
+
border-color: #959ea9;
|
89
|
+
color: #fff;
|
90
|
+
}
|
91
|
+
|
92
|
+
.flatpickr-monthSelect-month.selected,
|
93
|
+
.flatpickr-monthSelect-month.startRange,
|
94
|
+
.flatpickr-monthSelect-month.endRange {
|
95
|
+
background-color: $primary;
|
96
|
+
font-weight: $bold;
|
97
|
+
box-shadow: none;
|
98
|
+
color: #fff;
|
99
|
+
border-color: $primary;
|
100
|
+
}
|
101
|
+
|
102
|
+
.flatpickr-monthSelect-month.startRange {
|
103
|
+
border-radius: 50px 0 0 50px;
|
104
|
+
}
|
105
|
+
|
106
|
+
.flatpickr-monthSelect-month.endRange {
|
107
|
+
border-radius: 0 50px 50px 0;
|
108
|
+
}
|
109
|
+
|
110
|
+
.flatpickr-monthSelect-month.startRange.endRange {
|
111
|
+
border-radius: 50px;
|
112
|
+
}
|
113
|
+
|
114
|
+
.flatpickr-monthSelect-month.inRange {
|
115
|
+
border-radius: 0;
|
116
|
+
box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;
|
117
|
+
}
|
118
|
+
|
119
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month.selected,
|
120
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month.startRange,
|
121
|
+
.flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month.endRange {
|
122
|
+
background: #80cbc4;
|
123
|
+
-webkit-box-shadow: none;
|
124
|
+
box-shadow: none;
|
125
|
+
color: #fff;
|
126
|
+
border-color: #80cbc4;
|
127
|
+
}
|