playbook_ui 8.3.0.alpha.select.pre.margin → 8.3.0.deps2

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: 25f35ebe4238edf8395f49bb45c83c28d68c637da5c6cd6bf78a9aa9e8b92b44
4
- data.tar.gz: 33b45b6966d9a217e40bfffafc908c005bc342ad08d2e76e3eb0c3db74d91d88
3
+ metadata.gz: 9ec789bb91a24cba8a449733dd2695b067f1aa224e3b871b917bc5a95a896382
4
+ data.tar.gz: bf501dfb78c8cc977d1f7ddde8a1314ac93dbf64bf9bd57105cd58a7d0dde406
5
5
  SHA512:
6
- metadata.gz: 3e857d9c470dbb129d39dd58002c657ba7c9d97d5243eb863a487b8cf770a46dec11118a42bca0d5b333bcf1e9cf6c2f1e036fe8e5522c2cf8dc28ec3a586ba1
7
- data.tar.gz: d19afcba981200a3a97377407d71bacdb98cfe47497ed5dec9ff3bec1e8d69f764cccb0ec4b869b7d6fb964dd4f4eceb0204f7ba5d019624580b17fdc993fa09
6
+ metadata.gz: c59c45f9a192416934d4c442641e9f94d75f6fed0df1ac210d7d62ffd126abf7eb500ac28e55ccf13218f29d19db767c1963aed03fac1492dfd8077a73a8b830
7
+ data.tar.gz: f6f81ef9765baa467cf99697747bc262171c972ac46e3cc99a227cfc2445bd9141799509b4b5461d31bdfc484e20720f73f7896dd98da74f2c812088c3b19de3
@@ -7,6 +7,7 @@ kits:
7
7
  - button_toolbar
8
8
  - circle_icon_button
9
9
  - card
10
+ - checkbox
10
11
  - collapsible
11
12
  - charts_and_graphs:
12
13
  - bar_graph
@@ -20,14 +21,12 @@ kits:
20
21
  - fixed_confirmation_toast
21
22
  - flex
22
23
  - forms:
23
- - checkbox
24
24
  - date_picker
25
25
  - file_upload
26
26
  - form
27
27
  - form_group
28
28
  - form_pill
29
29
  - radio
30
- - rich_text_editor
31
30
  - select
32
31
  - selectable_card
33
32
  - selectable_card_icon
@@ -58,6 +57,7 @@ kits:
58
57
  - progress_pills
59
58
  - progress_simple
60
59
  - progress_step
60
+ - rich_text_editor
61
61
  - section_separator
62
62
  - source
63
63
  - star_rating
@@ -96,3 +96,4 @@ kits:
96
96
  - weekday_stacked
97
97
  - user
98
98
  - user_badge
99
+
@@ -30,11 +30,4 @@
30
30
  }
31
31
  }
32
32
  }
33
- &:focus,:focus-within{
34
- div.cal_icon_wrapper, input.text_input{
35
- @include transition_default;
36
- border-color: $primary;
37
- }
38
- }
39
-
40
33
  }
@@ -1,30 +1,31 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- module PbDialog
5
- class DialogHeader
6
- include Playbook::Props
4
+ module PbDialog
5
+ class DialogHeader
6
+ include Playbook::Props
7
+
8
+ partial "pb_dialog/child_kits/dialog_header"
7
9
 
8
- partial "pb_dialog/child_kits/dialog_header"
9
-
10
- prop :closeable, type: Playbook::Props::Boolean, default: true
11
- prop :padding
12
- prop :separator, type: Playbook::Props::Boolean, default: true
13
- prop :spacing
14
- prop :text
15
- prop :title
16
-
17
- def dialog_header_options
18
- {
19
- id: id,
20
- closeable: closeable,
21
- padding: padding,
22
- separator: separator,
23
- spacing: spacing,
24
- text: text,
25
- title: title,
26
- }
10
+ prop :closeable, type: Playbook::Props::Boolean, default: true
11
+ prop :padding
12
+ prop :separator, type: Playbook::Props::Boolean, default: true
13
+ prop :spacing
14
+ prop :text
15
+ prop :title
16
+
17
+ def dialog_header_options
18
+ {
19
+ id: id,
20
+ closeable: closeable,
21
+ padding: padding,
22
+ separator: separator,
23
+ spacing: spacing,
24
+ text: text,
25
+ title: title,
26
+ }
27
+ end
27
28
  end
28
29
  end
29
30
  end
30
- end
31
+
@@ -21,11 +21,18 @@
21
21
  color: black !important;
22
22
  overflow-x: auto;
23
23
  }
24
+
25
+
24
26
  [class^=pb_rich_text_editor_kit] {
27
+
28
+
29
+
30
+ // trix-toolbar { display: none; }
25
31
  // Disables File Attatchment Button in Toolbar
26
32
  trix-toolbar [data-trix-button-group="file-tools"] {
27
33
  display: none;
28
34
  }
35
+
29
36
  // Simple Mode (shows only BOLD & ITALIC)
30
37
  &.simple {
31
38
  [data-trix-button-group="history-tools"] {
@@ -46,6 +53,7 @@
46
53
  display: none;
47
54
  }
48
55
  }
56
+
49
57
  // Focused Styles for Border Radius
50
58
  &.focus-editor-targets {
51
59
  trix-toolbar {
@@ -56,26 +64,7 @@
56
64
  border-top-right-radius: $border_rad_heavier !important;
57
65
  }
58
66
  }
59
- &:focus-within,
60
- &:focus,&:not(:focus),&:not(:focus-within) {
61
- .trix-button-row, trix-editor {
62
- @include transition_default;
63
- }
64
- }
65
- &:focus-within,
66
- &:focus{
67
- .trix-button-row, trix-editor {
68
- background-color: $focus_input_light;
69
- border-color: $primary;
70
- }
71
- }
72
- .trix-dialog.trix-dialog--link {
73
- background-color: $white ;
74
- border: 1px solid $border_light;
75
- box-shadow: none;
76
- margin-top: $space_sm;
77
- margin-left: $space_sm;
78
- }
67
+
79
68
  &.sticky {
80
69
  trix-toolbar {
81
70
  position: sticky;
@@ -83,17 +72,22 @@
83
72
  z-index: 1;
84
73
  }
85
74
  }
75
+
76
+
86
77
  trix-editor {
78
+ // background-color: $focus_input_light;
87
79
  @include pb_textarea_light;
88
80
  border-top-left-radius: 0;
89
81
  border-top-right-radius: 0;
90
82
  }
83
+
91
84
  trix-toolbar {
85
+
92
86
  .trix-button--icon {
93
87
  height: $space_lg;
94
88
  width: $space_lg;
95
89
  margin: $space_xs / 2;
96
- border-radius: $border_rad_heavier;
90
+ border-radius: $space_xs / 4;
97
91
  &::before {
98
92
  background-size: auto;
99
93
  }
@@ -105,121 +99,118 @@
105
99
  padding: $space_xs / 2;
106
100
  border-top-left-radius: $border_rad_heavier;
107
101
  border-top-right-radius: $border_rad_heavier;
102
+
108
103
  .trix-button-group {
109
104
  margin-bottom: 0 !important;
110
105
  border: none !important;
106
+
111
107
  .trix-button {
112
108
  border: none;
109
+
113
110
  &.trix-active {
114
111
  background: $bg_light;
115
112
  }
116
113
  }
117
114
  }
118
115
  }
119
- button.trix-button.trix-button--icon.trix-button {
120
- &:hover{
121
- background-color: rgba($border_light, 0.50);
122
- }
123
- }
124
116
  }
117
+
118
+
119
+
125
120
  // Trix doesn't provide customization to their icons.
126
121
  // https://github.com/basecamp/trix/issues/464#issuecomment-564683997
122
+
127
123
  &[class*=dark] {
128
124
  // Dark SVG Icon Styles
129
125
  .trix-button--icon-bold::before {
130
126
  background-image: url("data:image/svg+xml,%3Csvg width='11px' height='14px' viewBox='0 0 11 14' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' fill-opacity='0.6'%3E%3Cg id='Rich-Text/Dark/Field-Only/Empty' transform='translate(-19.000000, -17.000000)' fill='%23FFFFFF' fill-rule='nonzero'%3E%3Cg id='Styling1' transform='translate(7.000000, 7.000000)'%3E%3Cpath d='M20.6,16.79 C21.565,16.115 22.25,15.025 22.25,14 C22.25,11.745 20.505,10 18.25,10 L12,10 L12,24 L19.04,24 C21.135,24 22.75,22.3 22.75,20.21 C22.75,18.69 21.885,17.395 20.6,16.79 Z M15,12.5 L18,12.5 C18.83,12.5 19.5,13.17 19.5,14 C19.5,14.83 18.83,15.5 18,15.5 L15,15.5 L15,12.5 L15,12.5 Z M18.5,21.5 L15,21.5 L15,18.5 L18.5,18.5 C19.33,18.5 20,19.17 20,20 C20,20.83 19.33,21.5 18.5,21.5 Z' id='Shape'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
131
127
  }
128
+
132
129
  .trix-button--icon-italic::before {
133
130
  background-image: url("data:image/svg+xml,%3Csvg width='12px' height='14px' viewBox='0 0 12 14' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' fill-opacity='0.6'%3E%3Cg id='Rich-Text/Dark/Field-Only/Empty' transform='translate(-52.000000, -17.000000)' fill='%23FFFFFF' fill-rule='nonzero'%3E%3Cg id='Styling1' transform='translate(7.000000, 7.000000)'%3E%3Cpolygon id='Shape' points='49 10 49 13 51.215 13 47.785 21 45 21 45 24 53 24 53 21 50.785 21 54.215 13 57 13 57 10'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
134
131
  }
132
+
135
133
  .trix-button--icon-strike::before {
136
134
  background-image: url("data:image/svg+xml,%3Csvg width='18px' height='15px' viewBox='0 0 18 15' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' fill-opacity='0.6'%3E%3Cg id='Rich-Text/Dark/Field-Only/Empty' transform='translate(-83.000000, -17.000000)' fill='%23FFFFFF' fill-rule='nonzero'%3E%3Cg id='Styling1' transform='translate(7.000000, 7.000000)'%3E%3Cpath d='M90.938,19.2 C90.979,19.439 91,19.69 91,19.954 C91,20.823 90.753,21.594 90.259,22.268 C89.765,22.942 89.052,23.466 88.121,23.84 C87.19,24.213 86.098,24.4 84.845,24.4 C83.799,24.4 82.9219,24.335 82.2129,24.204 C81.5039,24.073 80.7663,23.844 80,23.519 L80,23.519 L80,20.146 C80.8092,20.517 81.6507,20.806 82.5244,21.013 C83.398,21.221 84.2,21.325 84.931,21.325 C85.561,21.325 86.023,21.227 86.316,21.032 C86.61,20.838 86.757,20.587 86.757,20.28 C86.757,20.089 86.698,19.921 86.58,19.777 C86.461,19.634 86.272,19.488 86.01,19.341 C85.944,19.304 85.85,19.257 85.728,19.2 L85.728,19.2 Z M94,16.2 L94,18.2 L76,18.2 L76,16.2 L94,16.2 Z M86.026,10 C87.652,10 89.31,10.3353 91,11.006 L89.7,13.9281 C88.232,13.3277 86.965,13.0275 85.897,13.0275 C85.346,13.0275 84.945,13.1138 84.694,13.2862 C84.444,13.4587 84.318,13.6727 84.318,13.9281 C84.318,14.2028 84.478,14.4487 84.796,14.6659 C84.975,14.7877 85.326,14.9657 85.848,15.2 L80.2303,15.2 C80.1484,14.8642 80.1074,14.4978 80.1074,14.1006 C80.1074,12.8104 80.6338,11.8044 81.6865,11.0826 C82.7393,10.3609 84.186,10 86.026,10 Z' id='Combined-Shape'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
137
135
  }
136
+
138
137
  .trix-button--icon-link::before {
139
138
  background-image: url("data:image/svg+xml,%3Csvg width='18px' height='18px' viewBox='0 0 18 18' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' fill-opacity='0.6'%3E%3Cg id='Rich-Text/Dark/Field-Only/Empty' transform='translate(-117.000000, -15.000000)' fill='%23FFFFFF' fill-rule='nonzero'%3E%3Cg id='Styling1' transform='translate(7.000000, 7.000000)'%3E%3Cpath d='M120.695234,15.0178906 C122.367547,16.6902031 122.367547,19.4110156 120.695234,21.0833281 L117.320234,24.4583281 C116.510234,25.2683281 115.433047,25.7143906 114.287234,25.7143906 C113.141422,25.7143906 112.064234,25.2683281 111.254234,24.4583281 C109.581922,22.7860156 109.581922,20.0652031 111.254234,18.3928906 L113.178729,16.4902344 C113.535917,16.1330469 114.114729,16.1330469 114.471354,16.4902344 C114.827979,16.8474219 114.828542,17.4256719 114.471354,17.7828594 L112.546859,19.6855156 C111.587234,20.6451406 111.587234,22.2060781 112.546859,23.1657031 C113.011484,23.6303281 113.629672,23.8862656 114.287234,23.8862656 C114.944797,23.8862656 115.562422,23.6303281 116.027609,23.1657031 L119.402609,19.7907031 C120.362234,18.8310781 120.362234,17.2701406 119.402609,16.3105156 C119.045422,15.9533281 119.045422,15.3750781 119.402609,15.0178906 C119.759797,14.6607031 120.338047,14.6607031 120.695234,15.0178906 Z M123.287234,8 C124.433047,8 125.509672,8.4460625 126.320234,9.2560625 C127.992547,10.928375 127.992547,13.6491875 126.320234,15.3215 L124.358055,17.0365667 C124.000867,17.3937542 123.422617,17.3937542 123.06543,17.0365667 C122.708242,16.6793792 122.708242,16.1011292 123.06543,15.7439417 L125.027609,14.028875 C125.987234,13.06925 125.987234,11.5083125 125.027609,10.5486875 C124.562984,10.0840625 123.944797,9.828125 123.287234,9.828125 C122.629672,9.828125 122.012047,10.0840625 121.546859,10.5486875 L118.171859,13.9236875 C117.212234,14.8833125 117.212234,16.44425 118.171859,17.403875 C118.529047,17.7610625 118.529047,18.3393125 118.171859,18.6965 C117.993547,18.8748125 117.759547,18.96425 117.525547,18.96425 C117.291547,18.96425 117.057547,18.8748125 116.879234,18.6965 C115.206922,17.0241875 115.206922,14.303375 116.879234,12.6310625 L120.254234,9.2560625 C121.064234,8.4460625 122.141422,8 123.287234,8 Z' id='Combined-Shape'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
140
139
  }
140
+
141
141
  .trix-button--icon-heading-1::before {
142
142
  background-image: url("data:image/svg+xml,%3Csvg width='19px' height='15px' viewBox='0 0 19 15' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' fill-opacity='0.6'%3E%3Cg id='Rich-Text/Dark/Field-Only/Empty' transform='translate(-171.000000, -17.000000)' fill='%23FFFFFF' fill-rule='nonzero'%3E%3Cg id='Styling2' transform='translate(163.000000, 7.000000)'%3E%3Cpath d='M17,15.016 L17,18.016 L14,18.016 L14,25 L11,25 L11,18.016 L8,18.016 L8,15.016 L17,15.016 L17,15.016 Z M13.968,10 L26.999,10 L26.999,13 L21.983,13 L21.983,25 L18.983,25 L18.983,13 L13.967,13 L13.967,10 L13.968,10 Z' id='Shape'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
143
143
  }
144
+
144
145
  .trix-button--icon-quote::before {
145
146
  background-image: url("data:image/svg+xml,%3Csvg width='14px' height='10px' viewBox='0 0 14 10' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' fill-opacity='0.6'%3E%3Cg id='Rich-Text/Dark/Field-Only/Empty' transform='translate(-207.000000, -19.000000)' fill='%23FFFFFF' fill-rule='nonzero'%3E%3Cg id='Styling2' transform='translate(163.000000, 7.000000)'%3E%3Cpath d='M45,22 L48,22 L50,18 L50,12 L44,12 L44,18 L47,18 L45,22 Z M53,22 L56,22 L58,18 L58,12 L52,12 L52,18 L55,18 L53,22 Z' id='Shape'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
146
147
  }
148
+
147
149
  .trix-button--icon-code::before {
148
150
  background-image: url("data:image/svg+xml,%3Csvg width='18px' height='10px' viewBox='0 0 18 10' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' fill-opacity='0.6'%3E%3Cg id='Rich-Text/Dark/Field-Only/Empty' transform='translate(-239.000000, -19.000000)' fill='%23FFFFFF' fill-rule='nonzero'%3E%3Cg id='Styling2' transform='translate(163.000000, 7.000000)'%3E%3Cpath d='M91.17,16.585 L88,19.755 L89.415,21.17 L94,16.585 L89.415,12 L88,13.415 L91.17,16.585 Z M78.83,16.585 L82,13.415 L80.585,12 L76,16.585 L80.585,21.17 L82,19.755 L78.83,16.585 L78.83,16.585 Z' id='Shape'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
149
151
  }
152
+
150
153
  .trix-button--icon-bullet-list::before {
151
154
  background-image: url("data:image/svg+xml,%3Csvg width='20px' height='16px' viewBox='0 0 20 16' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' fill-opacity='0.6'%3E%3Cg id='Rich-Text/Dark/Field-Only/Empty' transform='translate(-272.000000, -16.000000)' fill='%23FFFFFF' fill-rule='nonzero'%3E%3Cg id='Styling2' transform='translate(163.000000, 7.000000)'%3E%3Cpath d='M111,9 C109.8933,9 109,9.8933 109,11 C109,12.1067 109.8933,13 111,13 C112.1067,13 113,12.1067 113,11 C113,9.8933 112.1067,9 111,9 Z M111,15 C109.8933,15 109,15.893 109,17 C109,18.107 109.8933,19 111,19 C112.1067,19 113,18.107 113,17 C113,15.893 112.1067,15 111,15 Z M111,21 C109.8933,21 109,21.893 109,23 C109,24.107 109.8933,25 111,25 C112.1067,25 113,24.107 113,23 C113,21.893 112.1067,21 111,21 Z M115,24 L129,24 L129,22 L115,22 L115,24 Z M115,18 L129,18 L129,16 L115,16 L115,18 Z M115,10 L115,12 L129,12 L129,10 L115,10 Z' id='Shape'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
152
155
  }
156
+
153
157
  .trix-button--icon-number-list::before {
154
158
  background-image: url("data:image/svg+xml,%3Csvg width='19px' height='16px' viewBox='0 0 19 16' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' fill-opacity='0.6'%3E%3Cg id='Rich-Text/Dark/Field-Only/Empty' transform='translate(-307.000000, -16.000000)' fill='%23FFFFFF' fill-rule='nonzero'%3E%3Cg id='Styling2' transform='translate(163.000000, 7.000000)'%3E%3Cpath d='M144,22 L146,22 L146,22.5 L145,22.5 L145,23.5 L146,23.5 L146,24 L144,24 L144,25 L147,25 L147,21 L144,21 L144,22 Z M145,13 L146,13 L146,9 L144,9 L144,10 L145,10 L145,13 Z M144,16 L145.8,16 L144,18.1 L144,19 L147,19 L147,18 L145.2,18 L147,15.9 L147,15 L144,15 L144,16 Z M149,10 L149,12 L163,12 L163,10 L149,10 Z M149,24 L163,24 L163,22 L149,22 L149,24 Z M149,18 L163,18 L163,16 L149,16 L149,18 Z' id='Shape'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
155
159
  }
160
+
156
161
  .trix-button--icon-decrease-nesting-level::before {
157
162
  background-image: url("data:image/svg+xml,%3Csvg width='21px' height='14px' viewBox='0 0 21 14' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' fill-opacity='0.6'%3E%3Cg id='Rich-Text/Dark/Field-Only/Empty' transform='translate(-340.000000, -17.000000)' fill='%23FFFFFF' fill-rule='nonzero'%3E%3Cg id='Styling2' transform='translate(163.000000, 7.000000)'%3E%3Cpath d='M179,24 L198,24 L198,22 L179,22 L179,24 L179,24 Z M186,18 L198,18 L198,16 L186,16 L186,18 L186,18 Z M177.707107,17.7426407 L180.535534,20.5710678 L181.949747,19.1568542 L179.828427,17.0355339 L181.949747,14.9142136 L180.535534,13.5 L177,17.0355339 L177.707107,17.7426407 Z M179,10 L179,12 L198,12 L198,10 L179,10 Z' id='Shape'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
158
163
  }
164
+
159
165
  .trix-button--icon-increase-nesting-level::before {
160
166
  background-image: url("data:image/svg+xml,%3Csvg width='21px' height='14px' viewBox='0 0 21 14' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' fill-opacity='0.6'%3E%3Cg id='Rich-Text/Dark/Field-Only/Empty' transform='translate(-374.000000, -17.000000)' fill='%23FFFFFF' fill-rule='nonzero'%3E%3Cg id='Styling2' transform='translate(163.000000, 7.000000)'%3E%3Cpath d='M213,24 L232,24 L232,22 L213,22 L213,24 L213,24 Z M220,18 L232,18 L232,16 L220,16 L220,18 L220,18 Z M213.12132,17.0355339 L211,19.1568542 L212.414214,20.5710678 L215.949747,17.0355339 L215.242641,16.3284271 L212.414214,13.5 L211,14.9142136 L213.12132,17.0355339 Z M213,10 L213,12 L232,12 L232,10 L213,10 Z' id='Shape-Copy'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
161
167
  }
168
+
162
169
  .trix-button--icon-attach::before {
163
170
  background-image: url("data:image/svg+xml,%3Csvg width='11px' height='22px' viewBox='0 0 11 22' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Rich-Text/Dark/Field-Only/Default' transform='translate(-385.000000, -139.000000)' fill='%23ABAFC2' fill-rule='nonzero'%3E%3Cg id='For-Future' transform='translate(338.000000, 139.000000)'%3E%3Cpath d='M56.5,5 L56.5,16.5 C56.5,18.71 54.71,20.5 52.5,20.5 C50.29,20.5 48.5,18.71 48.5,16.5 L48.5,4 C48.5,2.62 49.62,1.5 51,1.5 C52.38,1.5 53.5,2.62 53.5,4 L53.5,14.5 C53.5,15.05 53.055,15.5 52.5,15.5 C51.945,15.5 51.5,15.05 51.5,14.5 L51.5,5 L50,5 L50,14.5 C50,15.88 51.12,17 52.5,17 C53.88,17 55,15.88 55,14.5 L55,4 C55,1.79 53.21,0 51,0 C48.79,0 47,1.79 47,4 L47,16.5 C47,19.54 49.465,22 52.5,22 C55.535,22 58,19.54 58,16.5 L58,5 L56.5,5 Z' id='Path'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
164
171
  }
172
+
165
173
  .trix-button--icon-undo::before {
166
174
  background-image: url("data:image/svg+xml,%3Csvg width='21px' height='9px' viewBox='0 0 21 9' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' fill-opacity='0.6'%3E%3Cg id='Rich-Text/Dark/Field-Only/Empty' transform='translate(-666.000000, -20.000000)' fill='%23FFFFFF' fill-rule='nonzero'%3E%3Cg id='Undo/Redo' transform='translate(659.000000, 7.000000)'%3E%3Cpath d='M17.5,14 C14.855,14 12.445,14.985 10.6,16.6 L7,13 L7,22 L16,22 L12.385,18.385 C13.77,17.22 15.545,16.5 17.5,16.5 C21.045,16.5 24.045,18.805 25.095,22 L27.46,21.22 C26.085,17.03 22.15,14 17.5,14 Z' id='Path'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
167
175
  }
176
+
168
177
  .trix-button--icon-redo::before {
169
178
  background-image: url("data:image/svg+xml,%3Csvg width='21px' height='9px' viewBox='0 0 21 9' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' fill-opacity='0.6'%3E%3Cg id='Rich-Text/Dark/Field-Only/Empty' transform='translate(-700.000000, -20.000000)' fill='%23FFFFFF' fill-rule='nonzero'%3E%3Cg id='Undo/Redo' transform='translate(659.000000, 7.000000)'%3E%3Cpath d='M57.855,16.6 C56.015,14.985 53.605,14 50.96,14 C46.31,14 42.375,17.03 41,21.22 L43.365,22 C44.415,18.805 47.415,16.5 50.96,16.5 C52.915,16.5 54.69,17.22 56.075,18.385 L52.46,22 L61.46,22 L61.46,13 L57.855,16.6 Z' id='Path'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
170
179
  }
180
+
181
+
182
+
183
+
171
184
  // Dark Mode Placeholder
172
185
  trix-editor:empty:not(:focus)::before {
173
- color: $focus_input_dark;
186
+ color: $text_dk_light;
174
187
  }
188
+
175
189
  trix-editor {
176
- background-color: rgba($white, 0.1);
177
- border-color: rgba($white, 0.15);
190
+ @include pb_textarea_dark;
191
+ background: #2f3968;
178
192
  border-top-left-radius: 0;
179
193
  border-top-right-radius: 0;
180
- color: $text_dk_default;
181
194
  }
195
+
182
196
  trix-toolbar {
183
197
  .trix-button-row {
184
- background-color: rgba($white, 0.1);
185
- border: 1px solid rgba($white, 0.15);
186
- border-bottom: 0;
187
- }
188
- .trix-active {
189
- background: $active_dark !important;
190
- }
191
- button.trix-button.trix-button--icon.trix-button{
192
- &:hover {
193
- background-color: rgba($white, 0.15);
194
- }
195
- &:focus {
196
- background-color: $active_dark !important;
197
- }
198
- }
199
- &:focus {
200
- border-color: $active_dark;
198
+ background: #2f3968;
199
+ border: 1px solid rgba(255, 255, 255, 0.1) !important;
201
200
  }
202
201
  }
203
- &:focus-within {
204
- .trix-button-row, trix-editor {
205
- background-color: rgba($white, 0.03);
206
- border-color: $active_dark !important;
207
- }
202
+
203
+ trix-editor:focus {
204
+ @include pb_textarea_focus_dark;
208
205
  }
206
+
209
207
  &.error {
210
- trix-editor {
208
+ > trix-editor {
211
209
  border-color: $error_dark;
212
210
  }
213
211
  }
214
- .trix-dialog.trix-dialog--link.trix-active {
215
- background-color: tint($bg_dark, 10%) !important;
216
- border: 1px solid rgba($white, 0.1);
217
- box-shadow: none;
218
- margin-top: $space_sm;
219
- margin-left: $space_sm;
220
- }
221
- .trix-button--dialog {
222
- color: $white;
223
- }
224
212
  }
225
213
  }
214
+
215
+
216
+
@@ -5,7 +5,7 @@ import {
5
5
  RichTextEditor,
6
6
  } from '../../'
7
7
 
8
- const RichTextEditorPreview = (props) => {
8
+ const RichTextEditorPreview = () => {
9
9
  const [showPreview, setShowPreview] = useState(false)
10
10
  const [previewText, setPreviewText] = useState(<div />)
11
11
 
@@ -19,7 +19,6 @@ const RichTextEditorPreview = (props) => {
19
19
  <RichTextEditor
20
20
  id="content-preview-editor"
21
21
  onChange={handleChange}
22
- {...props}
23
22
  />
24
23
  <If condition={showPreview}>
25
24
  <Card marginTop="md">
@@ -37,8 +37,6 @@ type SelectProps = {
37
37
  id?: string,
38
38
  includeBlank?: string,
39
39
  label?: string,
40
- margin: string,
41
- marginBottom: string,
42
40
  multiple?: boolean,
43
41
  name?: string,
44
42
  required?: boolean,
@@ -76,14 +74,7 @@ const Select = ({
76
74
  const dataProps = buildDataProps(data)
77
75
  const optionsList = createOptions(options)
78
76
 
79
- const classes = classnames(
80
- buildCss('pb_select'),
81
- globalProps({
82
- ...props,
83
- marginBottom: props.marginBottom || props.margin || 'sm',
84
- }),
85
- className)
86
-
77
+ const classes = classnames(buildCss('pb_select'), globalProps(props), className)
87
78
  const selectWrapperClass = classnames(buildCss('pb_select_kit_wrapper'), { error }, className)
88
79
 
89
80
  return (
@@ -4,11 +4,10 @@
4
4
  @import "../tokens/colors";
5
5
 
6
6
  [class^=pb_select] {
7
+ margin-bottom: $space_sm;
7
8
  select {
8
9
  @include pb_textarea_light;
9
- @include pb_body_light;
10
- background: none;
11
- background-color: $white;
10
+ @include pb_title_4;
12
11
  appearance: none;
13
12
  cursor: pointer;
14
13
  box-shadow: inset 0 -11px 20px rgba($primary, 0.05);
@@ -18,16 +17,11 @@
18
17
  white-space: nowrap;
19
18
  overflow: hidden;
20
19
  text-overflow: ellipsis;
21
- max-height: 45px;
22
20
  @media (hover:hover) {
23
21
  &:hover, &:active, &:focus {
24
22
  background-color: $focus_input_light;
25
23
  }
26
24
  }
27
- &:focus{
28
- border-color: $primary;
29
- @include transition_default;
30
- }
31
25
  &:disabled ~ .pb_select_kit_caret {
32
26
  opacity: 0.5;
33
27
  }
@@ -64,36 +58,35 @@
64
58
  transform: translateY(-50%);
65
59
  pointer-events: none;
66
60
  }
67
- }
68
-
69
- [class^=pb_select].dark {
70
- select {
71
- @include pb_textarea_dark;
72
- @include pb_body_light_dark;
73
- background: none;
74
- background-color: rgba($white,.10);
75
- box-shadow: inset 0 -11px 20px rgba($white, 0.05);
76
- text-shadow: 0 0 0 $text_dk_default;
77
- padding-right: $space_xl;
78
- white-space: nowrap;
79
- overflow: hidden;
80
- text-overflow: ellipsis;
81
- @media (hover:hover) {
82
- &:hover, &:active, &:focus {
83
- background-color: rgba($white,.05);
61
+ &.dark {
62
+ select {
63
+ @include pb_textarea_dark;
64
+ @include pb_title_4;
65
+ @include pb_title_dark;
66
+ background: $focus_input_dark;
67
+ box-shadow: inset 0 -11px 20px rgba($white, 0.05);
68
+ text-shadow: 0 0 0 $text_dk_default;
69
+ padding-right: $space_xl;
70
+ white-space: nowrap;
71
+ overflow: hidden;
72
+ text-overflow: ellipsis;
73
+ @media (hover:hover) {
74
+ &:hover, &:active, &:focus {
75
+ background-color: tint($focus_input_dark, 5%);
76
+ }
84
77
  }
85
78
  }
86
- }
87
- .pb_select_kit_caret {
88
- color: $white;
89
- }
90
- .pb_select_kit_wrapper {
91
- &.error {
92
- .pb_select_kit_wrapper {
93
- > select:first-child {
94
- border-color: $error_dark;
79
+ .pb_select_kit_caret {
80
+ color: $white;
81
+ }
82
+ .pb_select_kit_wrapper {
83
+ &.error {
84
+ .pb_select_kit_wrapper {
85
+ > select:first-child {
86
+ border-color: $error_dark;
87
+ }
95
88
  }
96
89
  }
97
90
  }
98
91
  }
99
- }
92
+ }