playbook_ui 14.11.0 → 14.11.1.pre.alpha.PBNTR769sticky5359
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +6 -0
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +2 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_responsive.jsx +52 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +33 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +2 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss +9 -11
- data/app/pb_kits/playbook/pb_badge/_badge.scss +2 -4
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.scss +1 -3
- data/app/pb_kits/playbook/pb_button/_button.scss +1 -3
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.scss +2 -4
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_input_styles.scss +1 -3
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_overrides.scss +3 -5
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.scss +4 -6
- data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.scss +2 -4
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +8 -10
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +4 -6
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss +1 -3
- data/app/pb_kits/playbook/pb_label_value/_label_value.scss +2 -4
- data/app/pb_kits/playbook/pb_message/_message_mixins.scss +1 -3
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.scss +1 -3
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.scss +3 -5
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +8 -10
- data/app/pb_kits/playbook/pb_pill/_pill.scss +2 -4
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.scss +2 -4
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.scss +2 -4
- data/app/pb_kits/playbook/pb_select/_select.scss +3 -5
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +3 -5
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +1 -3
- data/app/pb_kits/playbook/pb_textarea/_textarea.scss +1 -3
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.scss +4 -5
- data/app/pb_kits/playbook/pb_timeline/_timeline.scss +2 -4
- data/app/pb_kits/playbook/pb_toggle/_toggle.scss +3 -5
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +3 -2
- data/app/pb_kits/playbook/pb_typeahead/components/ClearIndicator.tsx +12 -4
- data/app/pb_kits/playbook/pb_typeahead/components/Control.tsx +5 -1
- data/app/pb_kits/playbook/pb_typeahead/components/IndicatorsContainer.tsx +8 -3
- data/app/pb_kits/playbook/pb_typeahead/components/MenuList.tsx +6 -1
- data/app/pb_kits/playbook/pb_typeahead/components/Option.tsx +21 -6
- data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.tsx +13 -6
- data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.tsx +7 -3
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx +2 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +4 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_custom_options.jsx +5 -5
- data/dist/chunks/{_typeahead-C2iCBqxQ.js → _typeahead-BNULwihE.js} +1 -1
- data/dist/chunks/{_weekday_stacked-E-5KcEkc.js → _weekday_stacked-BKWemDAe.js} +1 -1
- data/dist/chunks/lazysizes-B7xYodB-.js +1 -0
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +2 -2
- metadata +9 -6
- data/dist/chunks/lazysizes-DHz07jlL.js +0 -1
- /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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83c318646e50eb8f4974a79029c4553c98dd90c0c878ec0fdd60fd77045d36a8
|
4
|
+
data.tar.gz: 777f930d187a4815ab702202437cbb96868039c9e115acfd97cee157bbd42d07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8a756512afdc408c56dbcccb9c6660ea746e14a3656f1fef48557bb09c57140f5f069c2160d2a6ac31883fae34861b9f909eb5fb0c05ec9fa4230145db24da9
|
7
|
+
data.tar.gz: 1cbeb5057637f11e479097c70b6e1e59b52abc1bd88d8f4ff0bf329e8ba56c1847eee4b3680c54c7b8cc423c0ad4c052cd77a3e9c5a348c58148a2747d0af1a0
|
@@ -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,52 @@
|
|
1
|
+
import React from "react"
|
2
|
+
import { AdvancedTable } from "playbook-ui"
|
3
|
+
import MOCK_DATA from "./advanced_table_mock_data.json"
|
4
|
+
|
5
|
+
const AdvancedTableStickyHeaderResponsive = (props) => {
|
6
|
+
const columnDefinitions = [
|
7
|
+
{
|
8
|
+
accessor: "year",
|
9
|
+
label: "Year",
|
10
|
+
cellAccessors: ["quarter", "month", "day"],
|
11
|
+
},
|
12
|
+
{
|
13
|
+
accessor: "newEnrollments",
|
14
|
+
label: "New Enrollments",
|
15
|
+
},
|
16
|
+
{
|
17
|
+
accessor: "scheduledMeetings",
|
18
|
+
label: "Scheduled Meetings",
|
19
|
+
},
|
20
|
+
{
|
21
|
+
accessor: "attendanceRate",
|
22
|
+
label: "Attendance Rate",
|
23
|
+
},
|
24
|
+
{
|
25
|
+
accessor: "completedClasses",
|
26
|
+
label: "Completed Classes",
|
27
|
+
},
|
28
|
+
{
|
29
|
+
accessor: "classCompletionRate",
|
30
|
+
label: "Class Completion Rate",
|
31
|
+
},
|
32
|
+
{
|
33
|
+
accessor: "graduatedStudents",
|
34
|
+
label: "Graduated Students",
|
35
|
+
},
|
36
|
+
]
|
37
|
+
|
38
|
+
|
39
|
+
return (
|
40
|
+
<div>
|
41
|
+
<AdvancedTable
|
42
|
+
columnDefinitions={columnDefinitions}
|
43
|
+
htmlOptions={{style: { maxHeight: "100vh" }}}
|
44
|
+
tableData={MOCK_DATA}
|
45
|
+
tableProps={{sticky:true}}
|
46
|
+
{...props}
|
47
|
+
/>
|
48
|
+
</div>
|
49
|
+
)
|
50
|
+
}
|
51
|
+
|
52
|
+
export default AdvancedTableStickyHeaderResponsive
|
@@ -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
|
@@ -21,6 +22,7 @@ examples:
|
|
21
22
|
- advanced_table_table_props: Table Props
|
22
23
|
- advanced_table_inline_row_loading: Inline Row Loading
|
23
24
|
- advanced_table_responsive: Responsive Tables
|
25
|
+
- advanced_table_sticky_header_responsive: Sticky Header and Responsive
|
24
26
|
- advanced_table_custom_cell: Custom Components for Cells
|
25
27
|
- advanced_table_pagination: Pagination
|
26
28
|
- advanced_table_pagination_with_props: Pagination Props
|
@@ -13,4 +13,5 @@ export { default as AdvancedTableCustomCell } from './_advanced_table_custom_cel
|
|
13
13
|
export { default as AdvancedTablePagination } from './_advanced_table_pagination.jsx'
|
14
14
|
export { default as AdvancedTablePaginationWithProps } from './_advanced_table_pagination_with_props.jsx'
|
15
15
|
export { default as AdvancedTableColumnHeaders } from './_advanced_table_column_headers.jsx'
|
16
|
-
export { default as AdvancedTableColumnHeadersMultiple } from './_advanced_table_column_headers_multiple.jsx'
|
16
|
+
export { default as AdvancedTableColumnHeadersMultiple } from './_advanced_table_column_headers_multiple.jsx'
|
17
|
+
export { default as AdvancedTableStickyHeaderResponsive } from './_advanced_table_sticky_header_responsive.jsx'
|
@@ -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:
|
41
|
-
$border_size:
|
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:
|
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
|
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:
|
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
|
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:
|
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:
|
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:
|
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:
|
12
|
-
margin-top:
|
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:
|
27
|
-
margin-right:
|
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:
|
28
|
+
margin-left: $space_xs/2;
|
31
29
|
}
|
32
30
|
[class*=pb_date_range_inline_icon] {
|
33
|
-
margin-right:
|
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:
|
25
|
-
padding-left:
|
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:
|
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
|
17
|
+
padding: 0 $space-md/2;
|
20
18
|
height: $pb_form_pill_height;
|
21
|
-
border-radius:
|
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:
|
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,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:
|
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:
|
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:
|
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:
|
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(-(
|
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
|
12
|
+
padding: 0 $space-sm/1.8;
|
15
13
|
height: $pb_pill_height;
|
16
|
-
border-radius:
|
14
|
+
border-radius: $pb_pill_height/2;
|
17
15
|
white-space: nowrap;
|
18
16
|
|
19
17
|
&[class*=lowercase] {
|