playbook_ui 14.10.0.pre.rc.3 → 14.10.0.pre.rc.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f691701e8b616359a01d1f117b17be43b9a11f30a1600900b6c70705c8176c6c
4
- data.tar.gz: 4bb59fb7ddefa2a66f57be3b224128b5ce96d5eb568f743f3532ce43a601bd94
3
+ metadata.gz: 3b8dedac180b9f17d02b95f3274695b9e4142c478f59a44904bbeb40372c9c3c
4
+ data.tar.gz: 34625e6eb95af864904e189c5934a018eb647c249b0b8d8557dd721eca8392eb
5
5
  SHA512:
6
- metadata.gz: 94e4dc3a2745a50df05e4bc0f405e1bced2b6eec0cf9bdf35836d60dd00536d13b37a96659ede4d66d2e914f10055480415a2b1de5333e454c301a0163f33d00
7
- data.tar.gz: 070f7df5299bf1a87576f86bbd534e452455bd8480daf2793fee62069365f53e4b9dcca8123fe83ee235e90f036afb64c73913542223aaed11d9f5e010afe310
6
+ metadata.gz: eb4a2da7e1753b42395b26569fe7b2d5cc0cada66c688f6501dd9ec7e979583c76eca2336385bbc1873013403d64a4453270f66b1eae3decd019045cf391d841
7
+ data.tar.gz: ee136f4fb4edc82438d5fd253154269b244c7b7f0cd7ab40bcdbbee3501d1f74edf28c01505f54cca4f205ead23901ac6cc1f77e42c01b726774d3ad2f85eb20
@@ -32,7 +32,7 @@ $pb_card_header_colors: map-merge(map-merge($product_colors, $additional_colors)
32
32
  }
33
33
 
34
34
  @mixin pb_card_selected_dark {
35
- @include pb_card_selected($primary_action);
35
+ @include pb_card_selected($primary_action_dark);
36
36
  }
37
37
 
38
38
  @mixin pb_card($background: $card_light, $border_color: $border_light) {
@@ -11,3 +11,8 @@
11
11
  }
12
12
  }
13
13
 
14
+ .dark [class*='pb_file_upload_kit'] {
15
+ [class*='pb_card_kit'] {
16
+ border: 1px $text_dk_lighter dashed;
17
+ }
18
+ }
@@ -13,6 +13,7 @@ type FileUploadProps = {
13
13
  accept?: string[],
14
14
  className?: string,
15
15
  customMessage?: string,
16
+ dark?: boolean,
16
17
  data?: {[key: string]: string | number},
17
18
  htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
18
19
  acceptedFilesDescription?: string,
@@ -31,6 +32,7 @@ const FileUpload = (props: FileUploadProps): React.ReactElement => {
31
32
  acceptedFilesDescription = '',
32
33
  className,
33
34
  customMessage,
35
+ dark = false,
34
36
  data = {},
35
37
  htmlOptions = {},
36
38
  maxSize,
@@ -94,9 +96,12 @@ const FileUpload = (props: FileUploadProps): React.ReactElement => {
94
96
  {...htmlProps}
95
97
  {...getRootProps()}
96
98
  >
97
- <Card>
99
+ <Card dark={dark}>
98
100
  <input {...getInputProps()} />
99
- <Body color="light">
101
+ <Body
102
+ color="light"
103
+ dark={dark}
104
+ >
100
105
  {isDragActive ?
101
106
  <p>{'Drop the files here ...'}</p>
102
107
  :
@@ -5,11 +5,17 @@
5
5
  id: object.id,
6
6
  **combined_html_options) do %>
7
7
  <%= pb_rails("form_group", props: {cursor: "pointer", full_width: object.full_width}) do %>
8
- <label for="upload-<%= object.id %>" class="pb_button_kit_secondary_inline_enabled"><%= "#{object.label}" %></label>
8
+ <label
9
+ for="upload-<%= object.id %>"
10
+ class="pb_button_kit_secondary_inline_enabled <%= 'dark' if object.dark %>"
11
+ >
12
+ <%= "#{object.label}" %>
13
+ </label>
9
14
  <%= pb_rails("text_input", props: {
10
15
  type: "file",
16
+ dark: object.dark,
11
17
  input_options: {
12
- id: "upload-#{object.id}",
18
+ id: "upload-#{object.id}",
13
19
  classname: "cursor_pointer",
14
20
  }.merge(object.input_options)
15
21
  }) %>
@@ -19,6 +19,16 @@
19
19
  font-weight: $bolder;
20
20
  }
21
21
  }
22
- }
22
+ }
23
+ }
24
+
25
+ .dark & {
26
+ [class*=pb_nav_list_kit_item][class*=pb_nav_list_item] {
27
+ &[class*=_link] {
28
+ &[class*=_active] {
29
+ box-shadow: 0 2px 10px 0 $shadow_dark;
30
+ }
31
+ }
32
+ }
23
33
  }
24
34
  }
@@ -223,6 +223,7 @@
223
223
  }
224
224
  }
225
225
  [class*="pb_collapsible_nav_item"][class*="pb_nav_list_item_link_collapsible"][class*="pb_nav_list_kit_item"] {
226
+ box-shadow: unset !important;
226
227
  .pb_nav_list_item_text_collapsible {
227
228
  color: $white !important;
228
229
  }
@@ -240,11 +241,17 @@
240
241
 
241
242
  .pb_collapsible_main_kit:hover {
242
243
  background-color: mix($white, $card_dark, 20%);
243
- .pb_nav_list_item_text_collapsible,
244
- svg {
244
+ .pb_nav_list_item_text_collapsible {
245
245
  color: $white !important;
246
246
  }
247
247
  }
248
+
249
+ .pb_collapsible_main_kit {
250
+ svg {
251
+ color: $text_dk_default !important;
252
+ }
253
+ }
254
+
248
255
  .icon_wrapper:hover {
249
256
  background-color: mix($white, $card_dark, 40%);
250
257
  }
@@ -256,6 +263,13 @@
256
263
  }
257
264
  }
258
265
  }
266
+
267
+ &[class*="_active"] {
268
+ > .pb_collapsible_main_kit {
269
+ background-color: $primary;
270
+ box-shadow: 0 2px 10px 0 $shadow_dark;
271
+ }
272
+ }
259
273
  }
260
274
  }
261
275
  }
@@ -115,7 +115,7 @@ $selector: ".pb_nav_list";
115
115
  }
116
116
  [class*="_item_text"],
117
117
  [class*="_item_icon"] {
118
- color: $text_dk_lighter !important;
118
+ color: $text_dk_light !important;
119
119
  }
120
120
  &[class*="_link"] {
121
121
  &:hover {
@@ -151,7 +151,7 @@ $pb_selectable_paddings: (
151
151
  input[type="radio"] {
152
152
  &:checked ~ label {
153
153
  border-width: $pb_card_border_width;
154
- outline: 1px solid $primary;
154
+ outline: 1px solid $primary_action_dark;
155
155
  }
156
156
  }
157
157
  }
@@ -161,11 +161,11 @@ $pb_selectable_paddings: (
161
161
  color: $white;
162
162
  > label {
163
163
  @include pb_card_dark;
164
- background: transparent;
164
+ background: $bg_dark_card;
165
165
 
166
166
  .pb_selectable_card_circle {
167
167
  border-color: $bg_dark;
168
- background: $primary-action;
168
+ background: $primary_action_dark;
169
169
  }
170
170
  }
171
171
 
@@ -173,7 +173,7 @@ $pb_selectable_paddings: (
173
173
  input[type="radio"] {
174
174
  &:checked ~ label {
175
175
  @include pb_card_selected_dark;
176
- background: transparent;
176
+ background: $bg_dark_card;
177
177
  }
178
178
  }
179
179
 
@@ -35,7 +35,7 @@
35
35
  <% end %>
36
36
  <% else %>
37
37
  <% if content.nil? %>
38
- <%= pb_rails("body", props: { text: object.text }) %>
38
+ <%= pb_rails("body", props: { text: object.text, dark: object.dark }) %>
39
39
  <% else %>
40
40
  <%= content %>
41
41
  <% end %>