playbook_ui 14.11.0 → 14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5339

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +1 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +2 -0
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +33 -0
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md +1 -0
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -0
  7. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss +9 -11
  8. data/app/pb_kits/playbook/pb_badge/_badge.scss +2 -4
  9. data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.scss +1 -3
  10. data/app/pb_kits/playbook/pb_button/_button.scss +1 -3
  11. data/app/pb_kits/playbook/pb_button/button.html.erb +2 -3
  12. data/app/pb_kits/playbook/pb_checkbox/checkbox.html.erb +1 -6
  13. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.scss +2 -4
  14. data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +2 -6
  15. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_input_styles.scss +1 -3
  16. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_overrides.scss +3 -5
  17. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.scss +4 -6
  18. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.scss +2 -4
  19. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +8 -10
  20. data/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb +7 -12
  21. data/app/pb_kits/playbook/pb_dropdown/dropdown_container.html.erb +9 -14
  22. data/app/pb_kits/playbook/pb_dropdown/dropdown_option.html.erb +6 -11
  23. data/app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb +8 -14
  24. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +4 -6
  25. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss +1 -3
  26. data/app/pb_kits/playbook/pb_label_value/_label_value.scss +2 -4
  27. data/app/pb_kits/playbook/pb_message/_message_mixins.scss +1 -3
  28. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.scss +1 -3
  29. data/app/pb_kits/playbook/pb_passphrase/_passphrase.scss +3 -5
  30. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +8 -10
  31. data/app/pb_kits/playbook/pb_pill/_pill.scss +2 -4
  32. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.scss +2 -4
  33. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.scss +2 -4
  34. data/app/pb_kits/playbook/pb_select/_select.scss +3 -5
  35. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +3 -5
  36. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +1 -3
  37. data/app/pb_kits/playbook/pb_textarea/_textarea.scss +1 -3
  38. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.scss +4 -5
  39. data/app/pb_kits/playbook/pb_timeline/_timeline.scss +2 -4
  40. data/app/pb_kits/playbook/pb_toggle/_toggle.scss +3 -5
  41. data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +3 -2
  42. data/app/pb_kits/playbook/pb_typeahead/components/ClearIndicator.tsx +12 -4
  43. data/app/pb_kits/playbook/pb_typeahead/components/Control.tsx +5 -1
  44. data/app/pb_kits/playbook/pb_typeahead/components/IndicatorsContainer.tsx +8 -3
  45. data/app/pb_kits/playbook/pb_typeahead/components/MenuList.tsx +6 -1
  46. data/app/pb_kits/playbook/pb_typeahead/components/Option.tsx +21 -6
  47. data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.tsx +13 -6
  48. data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.tsx +7 -3
  49. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx +2 -0
  50. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +4 -2
  51. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_custom_options.jsx +5 -5
  52. data/dist/chunks/{_typeahead-C2iCBqxQ.js → _typeahead-BNULwihE.js} +1 -1
  53. data/dist/chunks/{_weekday_stacked-E-5KcEkc.js → _weekday_stacked-BKWemDAe.js} +1 -1
  54. data/dist/chunks/lazysizes-B7xYodB-.js +1 -0
  55. data/dist/chunks/vendor.js +1 -1
  56. data/dist/playbook-doc.js +1 -1
  57. data/dist/playbook-rails-react-bindings.js +1 -1
  58. data/dist/playbook-rails.js +1 -1
  59. data/lib/playbook/version.rb +2 -2
  60. metadata +11 -9
  61. data/dist/chunks/lazysizes-DHz07jlL.js +0 -1
  62. /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_table_props.md → _advanced_table_table_props_react.md} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fca7d9efb772457fd7a528a192266ea41f9b2f7ddc121b45878ecdade957c486
4
- data.tar.gz: aa3ca1949f81bec391834148da1893501e4f05540d5cd0d340253f95fc8ea78f
3
+ metadata.gz: 9dca52c6de9bc88a8b2ce69d53315b7f3159f80097baff34f327cf5598142a80
4
+ data.tar.gz: e9920a4f8ff2773183bd2ae356900e72d93b346e83e4fac415b419f3bafd2372
5
5
  SHA512:
6
- metadata.gz: b3d25d4aeac1ba58b3f62bfd92d51849501814e6d1ea1810b1f9126b1239307c6871b64e23c5c27dd090e3899b094ad68e60ece1e277b19c22bd24f21624e91e
7
- data.tar.gz: 76e6d0e1522b3978378994a0ff7dd7718d9ed62876a67b9ff4f6922141212e54ca471d8f0737e11e21cdf5088ec735584d8b783a85eb5d9f5128251bf663cf4b
6
+ metadata.gz: adaa58f5dbdebc31ed781c93def51a17dce06d8a6134b2d1fdfa72ed046a0beffd9942c9910ad70f39d36c878ba7f532afc6d883fd8578d0bf705589fbfd6654
7
+ data.tar.gz: '005478448c5c35da3d9eeb0436958a3e58fa4bedacf649526de6331aa495a49429103ed131898681e6f9ac6fc9bd99dbfd8553c692f0512f282334c70226015e'
@@ -1,5 +1,5 @@
1
1
  <%= pb_content_tag do %>
2
- <%= pb_rails("table", props: { size: "sm", data_table: true, number_spacing:"tabular", responsive:"none", dark: dark }) do %>
2
+ <%= pb_rails("table", props: { size: "sm", data_table: true, number_spacing:"tabular", responsive:"none", dark: dark }.merge(object.table_props)) do %>
3
3
  <% if content.present? %>
4
4
  <% content.presence %>
5
5
  <% else %>
@@ -13,6 +13,8 @@ module Playbook
13
13
  prop :responsive, type: Playbook::Props::Enum,
14
14
  values: %w[none scroll],
15
15
  default: "none"
16
+ prop :table_props, type: Playbook::Props::HashProp,
17
+ default: {}
16
18
 
17
19
  def classname
18
20
  generate_classname("pb_advanced_table", responsive_classname, separator: " ")
@@ -0,0 +1,33 @@
1
+ <% column_definitions = [
2
+ {
3
+ accessor: "year",
4
+ label: "Year",
5
+ cellAccessors: ["quarter", "month", "day"],
6
+ },
7
+ {
8
+ accessor: "newEnrollments",
9
+ label: "New Enrollments",
10
+ },
11
+ {
12
+ accessor: "scheduledMeetings",
13
+ label: "Scheduled Meetings",
14
+ },
15
+ {
16
+ accessor: "attendanceRate",
17
+ label: "Attendance Rate",
18
+ },
19
+ {
20
+ accessor: "completedClasses",
21
+ label: "Completed Classes",
22
+ },
23
+ {
24
+ accessor: "classCompletionRate",
25
+ label: "Class Completion Rate",
26
+ },
27
+ {
28
+ accessor: "graduatedStudents",
29
+ label: "Graduated Students",
30
+ }
31
+ ] %>
32
+
33
+ <%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, column_definitions: column_definitions, table_props: { container: false, sticky: true }}) %>
@@ -0,0 +1 @@
1
+ This kit uses the [Table kit](https://playbook.powerapp.cloud/kits/table) under the hood which comes with it's own set of props. If you want to apply certain Table props to that underlying kit, you can do so by using the optional `table_props` prop. This prop must be an object that contains valid Table props. For a full list of Table props, see [here](https://playbook.powerapp.cloud/kits/table).
@@ -3,6 +3,7 @@ examples:
3
3
  - advanced_table_beta: Default (Required Props)
4
4
  - advanced_table_beta_subrow_headers: SubRow Headers
5
5
  - advanced_table_collapsible_trail_rails: Collapsible Trail
6
+ - advanced_table_table_props: Table Props
6
7
  - advanced_table_beta_sort: Enable Sorting
7
8
  - advanced_table_custom_cell_rails: Custom Components for Cells
8
9
  - advanced_table_column_headers: Multi-Header Columns
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  [class^=pb_avatar_action_button_kit] {
4
2
 
5
3
  $icon_size: 0px;
@@ -15,7 +13,7 @@
15
13
  color: $value;
16
14
  }
17
15
  }
18
-
16
+
19
17
  @mixin icon-base {
20
18
  &.dark{
21
19
  background-color: $bg_dark
@@ -33,22 +31,22 @@
33
31
  }
34
32
 
35
33
  @each $name, $size in $avatar-sizes {
36
-
34
+
37
35
  &[class*=_#{$name}] {
38
-
36
+
39
37
  $avatar_size: map-get($avatar-sizes, $name);
40
- $icon_size: math.div($avatar_size, 2);
41
- $border_size: math.div($icon_size, 10);
38
+ $icon_size: $avatar_size / 2;
39
+ $border_size: $icon_size / 10;
42
40
 
43
41
  position: relative;
44
42
  width: $avatar_size * 1.25;
45
43
  height: $avatar_size * 1.1;
46
44
  display: flex;
47
-
45
+
48
46
  [class^=pb_tooltip_kit] {
49
47
  justify-self: center;
50
48
  }
51
-
49
+
52
50
  &[class*=_bottom] .icon {
53
51
  @include icon-base;
54
52
  top: $icon_size * 1.27;
@@ -61,8 +59,8 @@
61
59
  left: $icon_size * 1.5;
62
60
  }
63
61
  &[class*=_left] [class^=pb_avatar_kit] {
64
- padding-left: math.div($icon_size , 2);
62
+ padding-left: $icon_size / 2;
65
63
  }
66
64
  }
67
65
  }
68
- }
66
+ }
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  @import "../tokens/border_radius";
4
2
  @import "../tokens/colors";
5
3
  @import "../tokens/opacity";
@@ -13,7 +11,7 @@
13
11
  align-items: center;
14
12
  justify-content: center;
15
13
  border-radius: $border_rad_light;
16
- padding: 0 math.div($space_xs, 2);
14
+ padding: 0 $space_xs/2;
17
15
  border-width: 1px;
18
16
  border-style: solid;
19
17
  border-color: $card_light;
@@ -36,7 +34,7 @@
36
34
  height: $pb_badge_height;
37
35
  min-height: $pb_badge_height;
38
36
  min-width: $pb_badge_height;
39
- border-radius: math.div($pb_badge_height, 2);
37
+ border-radius: $pb_badge_height / 2;
40
38
  }
41
39
 
42
40
  &[class*=_notification] {
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  @import "../tokens/colors";
4
2
  @import "../tokens/opacity";
5
3
  @import "../tokens/spacing";
@@ -11,7 +9,7 @@
11
9
  display: inline-flex;
12
10
  align-items: center;
13
11
  justify-content: center;
14
- padding: 0 math.div($space_xs, 2);
12
+ padding: 0 $space_xs/2;
15
13
 
16
14
  svg {
17
15
  margin-right: 8px;
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  @import "./button_mixins";
4
2
  @import "../tokens/colors";
5
3
  @import "../tokens/border_radius";
@@ -19,7 +17,7 @@ $pb_button_sizes: (
19
17
  @each $name, $size in $pb_button_sizes {
20
18
  &[class*=size_#{$name}] {
21
19
  font-size: $size;
22
- padding: math.div($size, 2) $size * 2.42;
20
+ padding: $size / 2 $size * 2.42;
23
21
  @if $name == "sm" {
24
22
  min-height: 0;
25
23
  }
@@ -1,6 +1,5 @@
1
- <%= content_tag(object.tag,
2
- object.tag == "button" ? object.options : object.link_options,
3
- **combined_html_options) do %>
1
+ <%= pb_content_tag(object.tag,
2
+ object.tag == "button" ? object.options : object.link_options) do %>
4
3
  <% if object.variant === "reaction" %>
5
4
  <% if icon && object.valid_emoji(object.icon) %>
6
5
  <%= pb_rails("flex", props:{ align: "center" }) do %>
@@ -1,9 +1,4 @@
1
- <%= content_tag(:label, aria: object.aria,
2
- id: object.id,
3
- data: object.data,
4
- class: object.classname,
5
- **combined_html_options
6
- ) do %>
1
+ <%= pb_content_tag(:label) do %>
7
2
  <%= content.presence || object.input %>
8
3
  <% if object.indeterminate %>
9
4
  <span data-pb-checkbox-icon-span="true" class="pb_checkbox_indeterminate">
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  @import "../pb_button/button";
4
2
  @import "../pb_button/button_mixins";
5
3
 
@@ -18,7 +16,7 @@ $pb_button_styles: (
18
16
  flex-grow: 0;
19
17
  width: $pb_button_size;
20
18
  height: $pb_button_size;
21
- border-radius: math.div($pb_button_size, 2);
19
+ border-radius: $pb_button_size / 2;
22
20
  line-height: $pb_button_size;
23
21
  flex-basis: $pb_button_size;
24
22
  min-width: $pb_button_size;
@@ -55,4 +53,4 @@ $pb_button_styles: (
55
53
  }
56
54
  }
57
55
  }
58
- }
56
+ }
@@ -1,9 +1,5 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- class: object.classname + object.error_class,
4
- data: object.data,
5
- id: object.id,
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag(:div,
2
+ class: object.classname + object.error_class) do %>
7
3
  <div class="input_wrapper">
8
4
  <% if content.present? %>
9
5
  <%= content %>
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  @import "../../pb_textarea/textarea_mixin";
4
2
 
5
3
  [class^=pb_date_picker_kit] {
@@ -43,7 +41,7 @@
43
41
  &.error {
44
42
  .date_picker_input_wrapper {
45
43
  [class*=pb_body_kit] {
46
- margin-top: math.div($space_xs, 2);
44
+ margin-top: $space_xs / 2;
47
45
  }
48
46
 
49
47
  input,
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  @media (min-width: 500px) {
4
2
  .flatpickr-calendar {
5
3
  padding: $space_xs;
@@ -8,8 +6,8 @@
8
6
  width: 315.88px
9
7
  }
10
8
  .flatpickr-months {
11
- margin-left: math.div($space_xs, 4);
12
- margin-top: math.div($space_xs, 3);
9
+ margin-left: $space_xs / 4;
10
+ margin-top: $space_xs / 3;
13
11
  }
14
12
  }
15
13
  @media (max-width: 499px) {
@@ -21,7 +19,7 @@
21
19
  }
22
20
  }
23
21
  // Firefox Header Adjustments
24
- @supports (-moz-appearance:none) {
22
+ @supports (-moz-appearance:none) {
25
23
  select.flatpickr-monthDropdown-months {
26
24
  width: 97px !important;
27
25
  margin-left: $space_xs + 3;
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  [class^=pb_date_range_inline_kit] {
4
2
  &[class*=_center] {
5
3
  & > [class^=pb_caption],
@@ -23,14 +21,14 @@
23
21
  display: flex;
24
22
  align-items: center;
25
23
  [class*=pb_date_range_inline_arrow] {
26
- margin-left: math.div($space_xs, 2);
27
- margin-right: math.div($space_xs, 2);
24
+ margin-left: $space_xs/2;
25
+ margin-right: $space_xs/2;
28
26
  }
29
27
  [class*=pb_date_range_inline_timezone] {
30
- margin-left: math.div($space_xs, 2);
28
+ margin-left: $space_xs/2;
31
29
  }
32
30
  [class*=pb_date_range_inline_icon] {
33
- margin-right: math.div($space_xs, 2);
31
+ margin-right: $space_xs/2;
34
32
  }
35
33
  }
36
34
  }
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  [class^=pb_date_time_stacked] {
4
2
 
5
3
  [class^=padding_month] {
@@ -21,7 +19,7 @@
21
19
 
22
20
  }
23
21
  .date-time-padding {
24
- padding-right: math.div($space_xs, 2);
25
- padding-left: math.div($space_xs, 2);
22
+ padding-right: $space_xs / 2;
23
+ padding-left: $space_xs / 2;
26
24
  }
27
25
 
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  @import "../tokens/colors";
4
2
  @import "../tokens/spacing";
5
3
  @import "../tokens/typography";
@@ -124,7 +122,7 @@
124
122
 
125
123
  &.error {
126
124
  [class*=pb_body_kit] {
127
- margin-top: math.div($space_xs, 2);
125
+ margin-top: $space_xs / 2;
128
126
  }
129
127
 
130
128
  [class*="dropdown_trigger_wrapper"] {
@@ -148,7 +146,7 @@
148
146
  &[class*="subtle"] {
149
147
  .dropdown_wrapper {
150
148
  .pb_dropdown_container {
151
-
149
+
152
150
  [class*="pb_dropdown_option"]:first-child {
153
151
  margin-top: $space_xs;
154
152
  }
@@ -163,7 +161,7 @@
163
161
  border-radius: $border_radius_md;
164
162
  border-bottom: none;
165
163
  position: relative;
166
-
164
+
167
165
  &::after {
168
166
  content: "";
169
167
  position: absolute;
@@ -174,20 +172,20 @@
174
172
  background: $border_light;
175
173
  }
176
174
  }
177
-
175
+
178
176
  [class*="pb_dropdown_option"]:last-child::after {
179
- display: none;
177
+ display: none;
180
178
  }
181
179
  }
182
180
  }
183
-
181
+
184
182
  &[class*="separators_hidden"] {
185
183
  .dropdown_wrapper {
186
184
  .pb_dropdown_container {
187
185
  [class*="pb_dropdown_option"]:first-child {
188
186
  margin-top: $space_xs;
189
187
  }
190
-
188
+
191
189
  [class*="pb_dropdown_option"]:last-child {
192
190
  margin-bottom: $space_xs;
193
191
  }
@@ -195,7 +193,7 @@
195
193
  [class*="pb_dropdown_option"] {
196
194
  padding: $space_xxs $space_xs;
197
195
  margin: $space_xxs $space_xs;
198
-
196
+
199
197
  &::after {
200
198
  height: 0px;
201
199
  }
@@ -1,19 +1,14 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- class: object.classname,
4
- data: object.data,
5
- id: object.id,
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
7
2
  <% if object.label.present? %>
8
3
  <%= pb_rails("caption", props: {text: object.label, margin_bottom:"xs"}) %>
9
4
  <% end %>
10
5
  <div class="dropdown_wrapper<%= error_class %>" style="position: relative">
11
- <input
12
- data-default-value="<%= input_default_value %>"
13
- id="dropdown-selected-option"
14
- name="<%= object.name %>"
15
- style="display: none"
16
- <%= object.required ? "required" : ""%>
6
+ <input
7
+ data-default-value="<%= input_default_value %>"
8
+ id="dropdown-selected-option"
9
+ name="<%= object.name %>"
10
+ style="display: none"
11
+ <%= object.required ? "required" : ""%>
17
12
  />
18
13
  <% if content.present? %>
19
14
  <%= content.presence %>
@@ -1,20 +1,15 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- class: object.classname,
4
- data: object.data,
5
- id: object.id,
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
7
2
  <%= pb_rails("list", props: {ordered: false, borderless: false}) do %>
8
- <% if content.present? %>
3
+ <% if content.present? %>
9
4
  <%= content.presence %>
10
- <% else %>
5
+ <% else %>
11
6
  <%= pb_rails("list/item", props: {
12
- display: "flex",
13
- justify_content: "center",
14
- padding:"xs",
15
- }) do %>
7
+ display: "flex",
8
+ justify_content: "center",
9
+ padding:"xs",
10
+ }) do %>
16
11
  <%= pb_rails("body", props: {text: "No option"}) %>
17
12
  <% end %>
18
13
  <% end %>
19
- <% end %>
20
- <% end %>
14
+ <% end %>
15
+ <% end %>
@@ -1,15 +1,10 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- class: object.classname,
4
- data: object.data,
5
- id: object.option[:id],
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
7
2
  <%= pb_rails("list/item", props: {
8
- display: "flex",
9
- justify_content: "center",
10
- padding:"none",
3
+ display: "flex",
4
+ justify_content: "center",
5
+ padding:"none",
11
6
  cursor: "pointer"
12
- }) do %>
7
+ }) do %>
13
8
  <div class="dropdown_option_wrapper">
14
9
  <% if content.present? %>
15
10
  <%= content.presence %>
@@ -18,4 +13,4 @@
18
13
  <% end %>
19
14
  </div>
20
15
  <% end %>
21
- <% end %>
16
+ <% end %>
@@ -1,21 +1,16 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- class: object.classname,
4
- data: object.data,
5
- id: object.id,
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
7
2
  <% if content.present? %>
8
3
  <div style="display: inline-block" tabindex="0" data-dropdown-custom-trigger>
9
4
  <%= content.presence %>
10
5
  </div>
11
6
  <% else %>
12
7
  <%= pb_rails("flex", props: {
13
- align: "center",
14
- border_radius:"lg",
15
- classname: object.trigger_wrapper_classes,
16
- cursor: "pointer",
17
- justify: "between",
18
- padding_x:"sm",
8
+ align: "center",
9
+ border_radius:"lg",
10
+ classname: object.trigger_wrapper_classes,
11
+ cursor: "pointer",
12
+ justify: "between",
13
+ padding_x:"sm",
19
14
  padding_y:"xs",
20
15
  html_options: {tabindex:"0"}
21
16
  }) do %>
@@ -23,7 +18,7 @@
23
18
  <%= pb_rails("flex", props: {align: "center"}) do %>
24
19
  <% if object.custom_display.present? %>
25
20
  <%= pb_rails("flex", props: {align: "center"}) do %>
26
- <div id="dropdown_trigger_custom_display" style="display: none;">
21
+ <div id="dropdown_trigger_custom_display" style="display: none;">
27
22
  <%= object.custom_display %>
28
23
  </div>
29
24
  <%= pb_rails("body", props: {text: object.default_display_placeholder, id: "dropdown_trigger_display"}) %>
@@ -40,4 +35,3 @@
40
35
  <% end %>
41
36
  <% end %>
42
37
  <% end %>
43
-
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  @import "../tokens/spacing";
4
2
  @import "../tokens/colors";
5
3
  @import "../tokens/opacity";
@@ -16,9 +14,9 @@ $form_pill_colors: map-merge($status_color_text, map-merge($data_colors, $produc
16
14
  display: inline-flex;
17
15
  justify-content: center;
18
16
  align-items: center;
19
- padding: 0 math.div($space-md, 2);
17
+ padding: 0 $space-md/2;
20
18
  height: $pb_form_pill_height;
21
- border-radius: math.div($pb_form_pill_height, 2);
19
+ border-radius: $pb_form_pill_height/2;
22
20
  margin-bottom: 2px;
23
21
  margin-top: 2px;
24
22
  cursor: pointer;
@@ -144,7 +142,7 @@ $form_pill_colors: map-merge($status_color_text, map-merge($data_colors, $produc
144
142
  height: 12px !important;
145
143
  width: 12px !important;
146
144
  padding-right: $space_xs;
147
- + .pb_form_pill_text, + .pb_form_pill_tag,
145
+ + .pb_form_pill_text, + .pb_form_pill_tag,
148
146
  + .pb_tooltip_kit .pb_form_pill_text, + .pb_tooltip_kit .pb_form_pill_tag,
149
147
  + div .pb_form_pill_text, + div .pb_form_pill_tag {
150
148
  padding-left: 0;
@@ -173,7 +171,7 @@ $form_pill_colors: map-merge($status_color_text, map-merge($data_colors, $produc
173
171
  }
174
172
  .pb_form_pill_icon {
175
173
  padding-right: $space_xxs;
176
- + .pb_form_pill_text, + .pb_form_pill_tag,
174
+ + .pb_form_pill_text, + .pb_form_pill_tag,
177
175
  + .pb_tooltip_kit .pb_form_pill_text, + .pb_tooltip_kit .pb_form_pill_tag,
178
176
  + div .pb_form_pill_text, + div .pb_form_pill_tag {
179
177
  padding-left: 0;
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  @import "../tokens/border_radius";
4
2
  @import "../tokens/colors";
5
3
  @import "../tokens/typography";
@@ -46,7 +44,7 @@ $pb_icon_circle_sizes: (
46
44
  &[class*=_size_#{$name}] {
47
45
  width: $size;
48
46
  height: $size;
49
- border-radius: math.div($size, 2);
47
+ border-radius: $size/2;
50
48
  background: $silver;
51
49
  color: $text_lt_light;
52
50
  font-size: if($name == "xxs", $size - 6px, $size * 0.38);
@@ -1,9 +1,7 @@
1
- @use "sass:math";
2
-
3
1
  @import "../tokens/spacing";
4
2
 
5
3
  [class^=pb_label_value_kit] {
6
4
  [class^=pb_caption_kit] {
7
- margin-bottom: math.div($space-xs, 1.5);
5
+ margin-bottom: $space-xs/1.5;
8
6
  }
9
- }
7
+ }
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  @import "../tokens/spacing";
4
2
 
5
3
  @mixin pb_message {
@@ -19,7 +17,7 @@
19
17
  }
20
18
 
21
19
  .message_text {
22
- margin: 0 0 math.div($space-xs, 2);
20
+ margin: 0 0 $space-xs/2;
23
21
  }
24
22
 
25
23
  .message_title {
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  @import "../tokens/colors";
4
2
  @import "../utilities/colors";
5
3
  @import "../tokens/opacity";
@@ -20,7 +18,7 @@ $pb_multiple_users_size_xxs: map-get($avatar-sizes, "xxs");
20
18
  justify-content: center;
21
19
  width: $pb_multiple_users_size;
22
20
  height: $pb_multiple_users_size;
23
- border-radius: math.div($pb_multiple_users_size, 2) + 2;
21
+ border-radius: $pb_multiple_users_size / 2 + 2;
24
22
  background: tint($primary, 90%);
25
23
  border: $pb_multiple_users_border_size solid $white;
26
24
  color: $primary;
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  @import "../tokens/colors";
4
2
  @import "../tokens/spacing";
5
3
  @import "../tokens/screen_sizes";
@@ -23,14 +21,14 @@
23
21
  }
24
22
 
25
23
  .passphrase-label {
26
- margin-right: math.div($space_xs, 2);
24
+ margin-right: $space_xs / 2;
27
25
  }
28
26
 
29
27
  .passphrase-text-input-wrapper {
30
28
  position: relative;
31
29
 
32
30
  .pb_text_input_kit_label {
33
- margin-bottom: math.div($space_xs, 2);
31
+ margin-bottom: $space_xs / 2;
34
32
  }
35
33
 
36
34
  .passphrase-text-input input {
@@ -59,7 +57,7 @@
59
57
  }
60
58
 
61
59
  .pb_progress_simple_wrapper, .pb_progress_simple_wrapper_dark {
62
- margin-bottom: math.div($space_xs, 2);
60
+ margin-bottom: $space_xs/2;
63
61
 
64
62
  &.progress-empty-input {
65
63
  visibility: hidden;