playbook_ui 14.11.0 → 14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5392

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) 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_circle_icon_button/_circle_icon_button.scss +2 -4
  12. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_input_styles.scss +1 -3
  13. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_overrides.scss +3 -5
  14. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.scss +4 -6
  15. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.scss +2 -4
  16. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.html.erb +38 -0
  17. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.md +3 -0
  18. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +1 -0
  19. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +8 -10
  20. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +4 -6
  21. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss +1 -3
  22. data/app/pb_kits/playbook/pb_label_value/_label_value.scss +2 -4
  23. data/app/pb_kits/playbook/pb_message/_message_mixins.scss +1 -3
  24. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.scss +1 -3
  25. data/app/pb_kits/playbook/pb_passphrase/_passphrase.scss +3 -5
  26. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +8 -10
  27. data/app/pb_kits/playbook/pb_pill/_pill.scss +2 -4
  28. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.scss +2 -4
  29. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.scss +2 -4
  30. data/app/pb_kits/playbook/pb_select/_select.scss +3 -5
  31. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +3 -5
  32. data/app/pb_kits/playbook/pb_selectable_list/selectable_list.html.erb +17 -3
  33. data/app/pb_kits/playbook/pb_selectable_list/selectable_list.rb +3 -0
  34. data/app/pb_kits/playbook/pb_selectable_list/selectable_list_item.html.erb +11 -4
  35. data/app/pb_kits/playbook/pb_selectable_list/selectable_list_item.rb +3 -0
  36. data/app/pb_kits/playbook/pb_table/styles/_scroll.scss +6 -5
  37. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +1 -3
  38. data/app/pb_kits/playbook/pb_textarea/_textarea.scss +1 -3
  39. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.scss +4 -5
  40. data/app/pb_kits/playbook/pb_timeline/_timeline.scss +2 -4
  41. data/app/pb_kits/playbook/pb_toggle/_toggle.scss +3 -5
  42. data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +3 -2
  43. data/app/pb_kits/playbook/pb_typeahead/components/ClearIndicator.tsx +12 -4
  44. data/app/pb_kits/playbook/pb_typeahead/components/Control.tsx +5 -1
  45. data/app/pb_kits/playbook/pb_typeahead/components/IndicatorsContainer.tsx +8 -3
  46. data/app/pb_kits/playbook/pb_typeahead/components/MenuList.tsx +6 -1
  47. data/app/pb_kits/playbook/pb_typeahead/components/Option.tsx +21 -6
  48. data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.tsx +13 -6
  49. data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.tsx +7 -3
  50. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx +2 -0
  51. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +4 -2
  52. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_custom_options.jsx +5 -5
  53. data/dist/chunks/{_typeahead-C2iCBqxQ.js → _typeahead-BNULwihE.js} +1 -1
  54. data/dist/chunks/{_weekday_stacked-E-5KcEkc.js → _weekday_stacked-BKWemDAe.js} +1 -1
  55. data/dist/chunks/lazysizes-B7xYodB-.js +1 -0
  56. data/dist/chunks/vendor.js +1 -1
  57. data/dist/playbook-doc.js +1 -1
  58. data/dist/playbook-rails-react-bindings.js +1 -1
  59. data/dist/playbook-rails.js +1 -1
  60. data/dist/playbook.css +1 -1
  61. data/lib/playbook/version.rb +2 -2
  62. metadata +10 -6
  63. data/dist/chunks/lazysizes-DHz07jlL.js +0 -1
  64. /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: 071ac4a9d2d662a3315cc562b8bebad49635a3d41cec083b5916b78bec1ab34e
4
+ data.tar.gz: '0823600ed64eb9bdab0670628538b695d77f5edb4d94a5409669c23248082644'
5
5
  SHA512:
6
- metadata.gz: b3d25d4aeac1ba58b3f62bfd92d51849501814e6d1ea1810b1f9126b1239307c6871b64e23c5c27dd090e3899b094ad68e60ece1e277b19c22bd24f21624e91e
7
- data.tar.gz: 76e6d0e1522b3978378994a0ff7dd7718d9ed62876a67b9ff4f6922141212e54ca471d8f0737e11e21cdf5088ec735584d8b783a85eb5d9f5128251bf663cf4b
6
+ metadata.gz: 8fae221d702eb0002c5149e4ab73266d73b82c79dd441d82209125b0f5c255fcad3d34303bf6c35a42a09f8b09a90443854500aee4360b66eb998e16a2d0afa4
7
+ data.tar.gz: 1c02d773a31afe890617399e7897813c0819e9b3227cace5d8f4da8415d0a0200e980dec350e792a8499067ac4e9f198033ef5d1546bac7d800b210630a237c9
@@ -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,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,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
 
@@ -0,0 +1,38 @@
1
+ <%= pb_rails("selectable_list",
2
+ props: {
3
+ enable_drag: true,
4
+ variant: "radio",
5
+ items: [
6
+ { drag_id: "41",
7
+ text: "Task 1",
8
+ input_options: {
9
+ value: "1",
10
+ name: "radio-name",
11
+ }
12
+ },
13
+ { drag_id: "42",
14
+ text: "Task 2",
15
+ checked: true,
16
+ input_options: {
17
+ value: "2",
18
+ name: "radio-name",
19
+ }
20
+ },
21
+ { drag_id: "43",
22
+ text: "Task 3",
23
+ input_options: {
24
+ value: "3",
25
+ name: "radio-name",
26
+ }
27
+ },
28
+ { drag_id: "44",
29
+ text: "Task 4",
30
+ input_options: {
31
+ value: "4",
32
+ name: "radio-name",
33
+ }
34
+ }
35
+ ]
36
+ }
37
+ )
38
+ %>
@@ -0,0 +1,3 @@
1
+ For a simplified version of the Draggable API for the SelectableList kit, you can do the following:
2
+
3
+ The SelectableList kit is optimized to work with the draggable kit. To enable drag, use the `enable_drag` prop on SelectableList kit AND `drag_id` prop within the SelectableList kit prop. An additional optional boolean prop (set to true by default) of `drag_handle` is also available on SelectableList kit to show the drag handle icon.
@@ -11,6 +11,7 @@ examples:
11
11
  rails:
12
12
  - draggable_default_rails: Default
13
13
  - draggable_with_list_rails: Draggable with List Kit
14
+ - draggable_with_selectable_list_rails: Draggable with SelectableList Kit
14
15
  - draggable_with_cards_rails: Draggable with Cards
15
16
 
16
17
 
@@ -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,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;
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  @import "./intlTelInput";
4
2
  @import "../tokens/colors";
5
3
 
@@ -41,7 +39,7 @@ $flag-min-resolution: 192dpi;
41
39
  color: $charcoal;
42
40
  }
43
41
 
44
- // iti-spacer-horizontal's default is 8px, or $space_xs
42
+ // iti-spacer-horizontal's default is 8px, or $space_xs
45
43
  .iti__country-list .iti__flag, .iti__country-name {
46
44
  margin-right: $space_xs;
47
45
  }
@@ -75,7 +73,7 @@ $flag-min-resolution: 192dpi;
75
73
  }
76
74
 
77
75
  .iti__divider {
78
- border-bottom: 1px solid $border_light !important;
76
+ border-bottom: 1px solid $border_light !important;
79
77
  }
80
78
 
81
79
  .iti__selected-country-primary {
@@ -95,7 +93,7 @@ $flag-min-resolution: 192dpi;
95
93
  justify-content: center;
96
94
  align-items: center;
97
95
  border-width: 0;
98
- border-radius: $space_xxs;
96
+ border-radius: $space_xxs;
99
97
 
100
98
  &[aria-expanded="true"] {
101
99
  color: $primary_action;
@@ -165,7 +163,7 @@ $flag-min-resolution: 192dpi;
165
163
  }
166
164
 
167
165
  .iti__arrow.iti__arrow--up::before {
168
- transform: rotate(-(math.div($transform-rotate-deg, 3)));
166
+ transform: rotate(-($transform-rotate-deg/3));
169
167
  top: $space_xs + 4px;
170
168
  color: $primary_action;
171
169
  }
@@ -198,7 +196,7 @@ $flag-min-resolution: 192dpi;
198
196
  }
199
197
 
200
198
  .iti__dropdown-content {
201
- border-radius: $space_xs;
199
+ border-radius: $space_xs;
202
200
  border: 1px solid $border_light !important;
203
201
  position: absolute;
204
202
  top: 100%;
@@ -227,12 +225,12 @@ $flag-min-resolution: 192dpi;
227
225
  }
228
226
 
229
227
  .iti__dropdown-content {
230
- border-radius: $space_xs;
228
+ border-radius: $space_xs;
231
229
  border: 1px solid $border_dark !important;
232
230
  }
233
231
 
234
232
  .iti__divider {
235
- border-bottom: 1px solid $border_dark !important;
233
+ border-bottom: 1px solid $border_dark !important;
236
234
  }
237
235
 
238
236
  .iti__country-list {
@@ -267,7 +265,7 @@ $flag-min-resolution: 192dpi;
267
265
  color: $white;
268
266
  }
269
267
  }
270
-
268
+
271
269
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: $flag-min-resolution) {
272
270
  .iti__flag {
273
271
  background-image: url("https://unpkg.com/intl-tel-input@24.6.0/build/img/flags@2x.png");
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  @import "../tokens/spacing";
4
2
  @import "../tokens/colors";
5
3
  @import "../tokens/opacity";
@@ -11,9 +9,9 @@ $pb_pill_height: 22px;
11
9
  display: inline-flex;
12
10
  justify-content: center;
13
11
  align-items: center;
14
- padding: 0 math.div($space-sm, 1.8);
12
+ padding: 0 $space-sm/1.8;
15
13
  height: $pb_pill_height;
16
- border-radius: math.div($pb_pill_height, 2);
14
+ border-radius: $pb_pill_height/2;
17
15
  white-space: nowrap;
18
16
 
19
17
  &[class*=lowercase] {
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  @import "../tokens/colors";
4
2
  @import "../tokens/opacity";
5
3
  @import "../tokens/colors";
@@ -23,7 +21,7 @@ $pb_progress_simple_height: 4px;
23
21
  [class^=pb_progress_simple_kit] {
24
22
  width: 100%;
25
23
  height: $pb_progress_simple_height;
26
- border-radius: math.div($pb_progress_simple_height, 2);
24
+ border-radius: $pb_progress_simple_height/2;
27
25
  background: rgba($primary, $opacity-1);
28
26
  &[class*=_positive] {
29
27
  .progress_simple_value {
@@ -44,7 +42,7 @@ $pb_progress_simple_height: 4px;
44
42
  [class^=progress_simple_value] {
45
43
  width: 0%;
46
44
  height: 100%;
47
- border-radius: math.div($pb_progress_simple_height, 2);
45
+ border-radius: $pb_progress_simple_height/2;
48
46
  background: $primary;
49
47
  }
50
48