playbook_ui 14.25.0.pre.alpha.testingcss9713 → 14.25.0.pre.alpha.testingcss9751
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_avatar/avatar.test.js +1 -1
- data/app/pb_kits/playbook/pb_badge/_badge.scss +120 -12
- data/app/pb_kits/playbook/pb_body/_body.scss +108 -35
- data/app/pb_kits/playbook/pb_body/_body_mixins.scss +1 -1
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.scss +16 -29
- data/app/pb_kits/playbook/pb_button/_button.scss +39 -31
- data/app/pb_kits/playbook/pb_button/_button.tsx +12 -12
- data/app/pb_kits/playbook/pb_button/_button_mixins.scss +2 -2
- data/app/pb_kits/playbook/pb_button/button.rb +11 -18
- data/app/pb_kits/playbook/pb_button/button.test.js +3 -3
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.scss +82 -73
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_dark.scss +32 -33
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_mixins.scss +1 -1
- data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.test.js +2 -2
- data/app/pb_kits/playbook/pb_caption/_caption.scss +100 -17
- data/app/pb_kits/playbook/pb_caption/_caption_mixin.scss +1 -8
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.scss +11 -2
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.scss +6 -6
- data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.test.js +1 -1
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.scss +1 -1
- data/app/pb_kits/playbook/pb_copy_button/copy_button.test.jsx +19 -19
- data/app/pb_kits/playbook/pb_currency/_currency.scss +118 -33
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.scss +16 -6
- data/app/pb_kits/playbook/pb_date/_date.scss +14 -16
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_inline_styles.scss +10 -10
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.scss +25 -19
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.tsx +1 -1
- data/app/pb_kits/playbook/pb_date_range_stacked/date_range_stacked.test.js +2 -2
- data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.scss +66 -26
- data/app/pb_kits/playbook/pb_date_stacked/date_stacked.test.js +2 -2
- data/app/pb_kits/playbook/pb_date_time/_date_time.scss +5 -12
- data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.scss +2 -3
- data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.scss +17 -14
- data/app/pb_kits/playbook/pb_date_year_stacked/date_year_stacked.test.js +1 -1
- data/app/pb_kits/playbook/pb_detail/_detail.scss +86 -21
- data/app/pb_kits/playbook/pb_dialog/_dialog.scss +463 -65
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.html.erb +16 -2
- data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.scss +10 -7
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +2 -2
- data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +6 -6
- data/app/pb_kits/playbook/pb_empty_state/_empty_state.scss +4 -4
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.scss +20 -9
- data/app/pb_kits/playbook/pb_file_upload/file_upload.html.erb +1 -1
- data/app/pb_kits/playbook/pb_filter/_filter.scss +3 -3
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss +65 -29
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.tsx +1 -2
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.test.js +1 -1
- data/app/pb_kits/playbook/pb_flex/_flex_item.tsx +1 -1
- data/app/pb_kits/playbook/pb_form_group/_error_state_mixin.scss +1 -1
- data/app/pb_kits/playbook/pb_form_group/_form_group.scss +48 -48
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +381 -344
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.test.jsx +4 -4
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +8 -7
- data/app/pb_kits/playbook/pb_form_pill/form_pill.rb +9 -2
- data/app/pb_kits/playbook/pb_home_address_street/home_adress_street.test.js +2 -2
- data/app/pb_kits/playbook/pb_icon_button/_icon_button.scss +4 -4
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss +40 -39
- data/app/pb_kits/playbook/pb_icon_circle/icon_circle.rb +1 -1
- data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.scss +15 -15
- data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.test.js +1 -1
- data/app/pb_kits/playbook/pb_icon_value/_icon_value.scss +16 -15
- data/app/pb_kits/playbook/pb_image/_image.scss +41 -36
- data/app/pb_kits/playbook/pb_label_value/_label_value.scss +3 -2
- data/app/pb_kits/playbook/pb_label_value/label_value.test.js +2 -2
- data/app/pb_kits/playbook/pb_legend/_legend.scss +66 -16
- data/app/pb_kits/playbook/pb_legend/legend.test.js +1 -1
- data/app/pb_kits/playbook/pb_lightbox/lightbox.scss +4 -4
- data/app/pb_kits/playbook/pb_lightbox/lightbox.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_link/_link.scss +113 -19
- data/app/pb_kits/playbook/pb_list/_list.scss +9 -9
- data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.scss +13 -11
- data/app/pb_kits/playbook/pb_map/_map.scss +1 -1
- data/app/pb_kits/playbook/pb_map/docs/_map_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_map/docs/_map_with_custom_button.jsx +1 -1
- data/app/pb_kits/playbook/pb_map/docs/_map_with_plugin.jsx +1 -1
- data/app/pb_kits/playbook/pb_message/_message.scss +20 -15
- data/app/pb_kits/playbook/pb_message/_message.tsx +1 -0
- data/app/pb_kits/playbook/pb_message/_message_mixins.scss +5 -12
- data/app/pb_kits/playbook/pb_message/message.html.erb +1 -1
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.scss +4 -1
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.scss +16 -15
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.scss +10 -10
- data/app/pb_kits/playbook/pb_nav/_bold_mixin.scss +9 -9
- data/app/pb_kits/playbook/pb_nav/_collapsible_nav.scss +1 -1
- data/app/pb_kits/playbook/pb_online_status/_online_status.scss +19 -15
- data/app/pb_kits/playbook/pb_online_status/_online_status.tsx +1 -1
- data/app/pb_kits/playbook/pb_online_status/online_status.rb +5 -4
- data/app/pb_kits/playbook/pb_online_status/online_status.test.js +2 -2
- data/app/pb_kits/playbook/pb_overlay/_overlay.scss +1 -1
- data/app/pb_kits/playbook/pb_overlay/overlay.rb +1 -1
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.scss +5 -2
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +1 -1
- data/app/pb_kits/playbook/pb_pill/_pill.scss +23 -21
- data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.scss +12 -10
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.scss +106 -31
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.scss +37 -37
- data/app/pb_kits/playbook/pb_radio/_radio.scss +71 -52
- data/app/pb_kits/playbook/pb_radio/_radio.tsx +1 -1
- data/app/pb_kits/playbook/pb_radio/docs/_radio_react_hook.jsx +0 -3
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.scss +80 -69
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.tsx +9 -1
- data/app/pb_kits/playbook/pb_section_separator/_section_separator_mixin.scss +1 -1
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.jsx +3 -1
- data/app/pb_kits/playbook/pb_section_separator/section_separator.rb +7 -1
- data/app/pb_kits/playbook/pb_select/_select.scss +2 -2
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +6 -2
- data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.scss +13 -4
- data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss +39 -29
- data/app/pb_kits/playbook/pb_selectable_list/_item.tsx +2 -0
- data/app/pb_kits/playbook/pb_selectable_list/_selectable_list.scss +8 -11
- data/app/pb_kits/playbook/pb_selectable_list/selectable_list.test.js +24 -25
- data/app/pb_kits/playbook/pb_selectable_list/selectable_list_item.html.erb +2 -2
- data/app/pb_kits/playbook/pb_source/_source.scss +5 -5
- data/app/pb_kits/playbook/pb_star_rating/star_rating.test.js +1 -1
- data/app/pb_kits/playbook/pb_stat_value/_stat_value.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_alignment.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_content.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_desktop_collapse.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_headers.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_hover.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_mobile.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_mobile_collapse.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_outer_padding.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_reset.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_scroll.scss +12 -12
- data/app/pb_kits/playbook/pb_table/styles/_side_highlight.scss +2 -2
- data/app/pb_kits/playbook/pb_table/styles/_single-line.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_striped.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_structure.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_table-card.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_table-dark.scss +2 -2
- data/app/pb_kits/playbook/pb_table/styles/_table_header.scss +4 -4
- data/app/pb_kits/playbook/pb_table/styles/_tablet_collapse.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_vertical_border.scss +1 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +4 -4
- data/app/pb_kits/playbook/pb_textarea/_textarea.scss +5 -5
- data/app/pb_kits/playbook/pb_time/_time.scss +43 -16
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.scss +14 -14
- data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.scss +5 -8
- data/app/pb_kits/playbook/pb_timeline/_timeline.scss +41 -41
- data/app/pb_kits/playbook/pb_timestamp/_timestamp.scss +4 -4
- data/app/pb_kits/playbook/pb_title/_title.scss +41 -38
- data/app/pb_kits/playbook/pb_title/_title.tsx +17 -8
- data/app/pb_kits/playbook/pb_title/_title_mixin.scss +2 -2
- data/app/pb_kits/playbook/pb_title/title.rb +20 -10
- data/app/pb_kits/playbook/pb_title/title.test.js +4 -4
- data/app/pb_kits/playbook/pb_title_count/_title_count.scss +19 -8
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.scss +10 -11
- data/app/pb_kits/playbook/pb_toggle/_toggle.scss +1 -1
- data/app/pb_kits/playbook/pb_tooltip/_tooltip.scss +1 -1
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +10 -10
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +3 -3
- data/app/pb_kits/playbook/pb_user/_user.scss +13 -13
- data/app/pb_kits/playbook/pb_user/user.test.js +1 -1
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.scss +23 -8
- data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.scss +10 -10
- data/app/pb_kits/playbook/pb_weekday_stacked/weekday_stacked.test.jsx +3 -3
- data/dist/chunks/{_line_graph-0Y0wuiB9.js → _line_graph-Dv_ODxW3.js} +1 -1
- data/dist/chunks/_typeahead-CD5RAaaP.js +6 -0
- data/dist/chunks/{_weekday_stacked-Dblcf2V8.js → _weekday_stacked-Bv6tOPKC.js} +2 -2
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +2 -2
- 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 +1 -1
- metadata +5 -5
- data/dist/chunks/_typeahead-B2gV75O0.js +0 -6
@@ -19,7 +19,6 @@ const RadioReactHook = () => {
|
|
19
19
|
paddingRight="lg"
|
20
20
|
>
|
21
21
|
<Radio
|
22
|
-
alignment="left"
|
23
22
|
label="Small"
|
24
23
|
marginBottom='sm'
|
25
24
|
name="size"
|
@@ -28,7 +27,6 @@ const RadioReactHook = () => {
|
|
28
27
|
/>
|
29
28
|
<br />
|
30
29
|
<Radio
|
31
|
-
alignment="left"
|
32
30
|
label="Medium"
|
33
31
|
marginBottom='sm'
|
34
32
|
name="size"
|
@@ -37,7 +35,6 @@ const RadioReactHook = () => {
|
|
37
35
|
/>
|
38
36
|
<br />
|
39
37
|
<Radio
|
40
|
-
alignment="left"
|
41
38
|
label="Large"
|
42
39
|
marginBottom='sm'
|
43
40
|
name="size"
|
@@ -26,7 +26,7 @@ $section_colors_dark: (
|
|
26
26
|
span {
|
27
27
|
padding: 0;
|
28
28
|
display: flex;
|
29
|
-
|
29
|
+
.pb_caption_kit_md {
|
30
30
|
padding: 0 $space_xs;
|
31
31
|
}
|
32
32
|
}
|
@@ -42,96 +42,107 @@ $section_colors_dark: (
|
|
42
42
|
flex: 1;
|
43
43
|
@include section_separator_horizontal;
|
44
44
|
}
|
45
|
-
|
46
|
-
|
47
|
-
|
45
|
+
}
|
46
|
+
|
47
|
+
// Horizontal orientation (default)
|
48
|
+
.pb_section_separator_horizontal {
|
49
|
+
justify-content: center;
|
50
|
+
}
|
51
|
+
|
52
|
+
// Vertical orientation
|
53
|
+
.pb_section_separator_vertical {
|
54
|
+
margin-left: $space_xs;
|
55
|
+
margin-right: $space_xs;
|
56
|
+
&::before {
|
57
|
+
display: none;
|
58
|
+
}
|
59
|
+
&::after {
|
60
|
+
@include section_separator_vertical(false);
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
// Dashed line style
|
65
|
+
.pb_section_separator_dashed {
|
66
|
+
&::before, &::after {
|
67
|
+
@include section_separator_dashed(false);
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
// Color variations
|
72
|
+
@each $color_name, $color_value in $section_selector_colors {
|
73
|
+
.pb_section_separator_color_#{$color_name} {
|
74
|
+
&::before, &::after {
|
75
|
+
background: $color_value;
|
76
|
+
}
|
77
|
+
|
78
|
+
&.pb_section_separator_vertical {
|
79
|
+
&::after {
|
48
80
|
background: $color_value;
|
49
81
|
}
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
82
|
+
}
|
83
|
+
|
84
|
+
&.pb_section_separator_dashed {
|
85
|
+
&::before, &::after {
|
86
|
+
border: 1px dashed $color_value;
|
87
|
+
background: none;
|
55
88
|
}
|
56
|
-
&.
|
57
|
-
&::
|
89
|
+
&.pb_section_separator_vertical {
|
90
|
+
&::after {
|
58
91
|
border: 1px dashed $color_value;
|
59
|
-
|
60
|
-
&._vertical {
|
61
|
-
&::after {
|
62
|
-
border: 1px dashed $color_value;
|
63
|
-
background: none;
|
64
|
-
}
|
92
|
+
background: none;
|
65
93
|
}
|
66
94
|
}
|
67
95
|
}
|
68
96
|
}
|
97
|
+
}
|
69
98
|
|
70
|
-
|
71
|
-
|
99
|
+
// Dark mode styles
|
100
|
+
.pb_section_separator_kit.dark {
|
101
|
+
&::before {
|
102
|
+
@include section_separator_horizontal(true);
|
72
103
|
}
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
}
|
104
|
+
&::after {
|
105
|
+
@include section_separator_horizontal(true);
|
106
|
+
}
|
107
|
+
|
108
|
+
&.pb_section_separator_vertical {
|
79
109
|
&::after {
|
80
|
-
@include section_separator_vertical(
|
110
|
+
@include section_separator_vertical(true);
|
81
111
|
}
|
82
112
|
}
|
83
|
-
|
84
|
-
&.
|
113
|
+
|
114
|
+
&.pb_section_separator_dashed {
|
85
115
|
&::before, &::after {
|
86
|
-
@include section_separator_dashed(
|
116
|
+
@include section_separator_dashed(true);
|
87
117
|
}
|
88
118
|
}
|
119
|
+
}
|
89
120
|
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
&::before, &::after {
|
96
|
-
background: $color_value;
|
97
|
-
}
|
98
|
-
|
99
|
-
&._vertical {
|
100
|
-
&::after {
|
101
|
-
@include section_separator_vertical(false);
|
102
|
-
background: $color_value;
|
103
|
-
}
|
104
|
-
}
|
105
|
-
|
106
|
-
&._dashed {
|
107
|
-
&::before, &::after {
|
108
|
-
border: 1px dashed $color_value;
|
109
|
-
background: none;
|
110
|
-
}
|
111
|
-
&._vertical {
|
112
|
-
&::after {
|
113
|
-
border: 1px dashed $color_value;
|
114
|
-
background: none;
|
115
|
-
}
|
116
|
-
}
|
117
|
-
}
|
118
|
-
}
|
119
|
-
}
|
120
|
-
&::before {
|
121
|
-
@include section_separator_horizontal(true);
|
122
|
-
}
|
123
|
-
&::after {
|
124
|
-
@include section_separator_horizontal(true);
|
121
|
+
// Dark mode color variations
|
122
|
+
@each $color_name, $color_value in $section_selector_colors {
|
123
|
+
.pb_section_separator_kit.dark.pb_section_separator_color_#{$color_name} {
|
124
|
+
&::before, &::after {
|
125
|
+
background: $color_value;
|
125
126
|
}
|
126
|
-
|
127
|
+
|
128
|
+
&.pb_section_separator_vertical {
|
127
129
|
&::after {
|
128
|
-
@include section_separator_vertical(
|
130
|
+
@include section_separator_vertical(false);
|
131
|
+
background: $color_value;
|
129
132
|
}
|
130
133
|
}
|
131
|
-
|
134
|
+
|
135
|
+
&.pb_section_separator_dashed {
|
132
136
|
&::before, &::after {
|
133
|
-
|
137
|
+
border: 1px dashed $color_value;
|
138
|
+
background: none;
|
139
|
+
}
|
140
|
+
&.pb_section_separator_vertical {
|
141
|
+
&::after {
|
142
|
+
border: 1px dashed $color_value;
|
143
|
+
background: none;
|
144
|
+
}
|
134
145
|
}
|
135
146
|
}
|
136
147
|
}
|
137
|
-
}
|
148
|
+
}
|
@@ -39,7 +39,15 @@ const SectionSeparator = (props: SectionSeparatorProps): React.ReactElement => {
|
|
39
39
|
const ariaProps = buildAriaProps(aria)
|
40
40
|
const dataProps = buildDataProps(data)
|
41
41
|
const htmlProps = buildHtmlProps(htmlOptions)
|
42
|
-
const classes = classnames(
|
42
|
+
const classes = classnames(
|
43
|
+
'pb_section_separator_kit',
|
44
|
+
`pb_section_separator_${variant}`,
|
45
|
+
`pb_section_separator_${orientation}`,
|
46
|
+
lineStyle === "dashed" ? 'pb_section_separator_dashed' : 'pb_section_separator_solid',
|
47
|
+
color !== "default" ? `pb_section_separator_color_${color}` : 'pb_section_separator_color_default',
|
48
|
+
globalProps(props),
|
49
|
+
className
|
50
|
+
)
|
43
51
|
const dynamicInlineProps = globalInlineProps(props)
|
44
52
|
|
45
53
|
return (
|
@@ -20,7 +20,13 @@ module Playbook
|
|
20
20
|
default: "solid"
|
21
21
|
|
22
22
|
def classname
|
23
|
-
|
23
|
+
class_names = ["pb_section_separator_kit"]
|
24
|
+
class_names << "pb_section_separator_#{variant}"
|
25
|
+
class_names << "pb_section_separator_#{orientation}"
|
26
|
+
class_names << "pb_section_separator_#{line_style}"
|
27
|
+
class_names << "pb_section_separator_color_#{color}"
|
28
|
+
|
29
|
+
generate_classname(class_names.join(" "), separator: " ")
|
24
30
|
end
|
25
31
|
|
26
32
|
private
|
@@ -28,7 +28,11 @@ $pb_selectable_paddings: (
|
|
28
28
|
py: ("padding-top", "padding-bottom")
|
29
29
|
);
|
30
30
|
|
31
|
-
.pb_selectable_card_kit
|
31
|
+
.pb_selectable_card_kit,
|
32
|
+
.pb_selectable_card_kit_checked_disabled,
|
33
|
+
.pb_selectable_card_kit_checked_enabled,
|
34
|
+
.pb_selectable_card_kit_disabled,
|
35
|
+
.pb_selectable_card_kit_enabled {
|
32
36
|
display: block;
|
33
37
|
margin-bottom: 0;
|
34
38
|
|
@@ -212,4 +216,4 @@ $pb_selectable_paddings: (
|
|
212
216
|
background: $error;
|
213
217
|
}
|
214
218
|
}
|
215
|
-
}
|
219
|
+
}
|
@@ -1,4 +1,8 @@
|
|
1
|
-
.pb_selectable_card_icon_kit
|
1
|
+
.pb_selectable_card_icon_kit,
|
2
|
+
.pb_selectable_card_icon_kit_checked_disabled,
|
3
|
+
.pb_selectable_card_icon_kit_checked_enabled,
|
4
|
+
.pb_selectable_card_icon_kit_disabled,
|
5
|
+
.pb_selectable_card_icon_kit_enabled {
|
2
6
|
|
3
7
|
text-align: center;
|
4
8
|
user-select: none;
|
@@ -42,7 +46,8 @@
|
|
42
46
|
}
|
43
47
|
}
|
44
48
|
|
45
|
-
&.
|
49
|
+
&.pb_selectable_card_icon_kit_disabled,
|
50
|
+
&.pb_selectable_card_icon_kit_checked_disabled {
|
46
51
|
opacity: $opacity_6;
|
47
52
|
cursor: not-allowed;
|
48
53
|
|
@@ -87,7 +92,11 @@
|
|
87
92
|
margin-top: $space_xs;
|
88
93
|
}
|
89
94
|
|
90
|
-
.pb_selectable_card_kit
|
95
|
+
.pb_selectable_card_kit,
|
96
|
+
.pb_selectable_card_kit_checked_disabled,
|
97
|
+
.pb_selectable_card_kit_checked_enabled,
|
98
|
+
.pb_selectable_card_kit_disabled,
|
99
|
+
.pb_selectable_card_kit_enabled {
|
91
100
|
margin-bottom: 0px !important;
|
92
101
|
}
|
93
|
-
}
|
102
|
+
}
|
@@ -1,6 +1,11 @@
|
|
1
1
|
@import "../tokens/transition";
|
2
2
|
|
3
|
-
.
|
3
|
+
.pb_selectable_icon_kit,
|
4
|
+
.pb_selectable_icon_kit_checked,
|
5
|
+
.pb_selectable_icon_kit_enabled,
|
6
|
+
.pb_selectable_icon_kit_disabled,
|
7
|
+
.pb_selectable_icon_kit_checked_enabled,
|
8
|
+
.pb_selectable_icon_kit_checked_disabled {
|
4
9
|
|
5
10
|
text-align: center;
|
6
11
|
cursor: pointer;
|
@@ -27,14 +32,6 @@
|
|
27
32
|
transition: color $transition_short ease;
|
28
33
|
}
|
29
34
|
|
30
|
-
&._disabled {
|
31
|
-
opacity: $opacity_6;
|
32
|
-
cursor: not-allowed;
|
33
|
-
* {
|
34
|
-
cursor: not-allowed;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
|
38
35
|
input[type="checkbox"],
|
39
36
|
input[type="radio"] {
|
40
37
|
-webkit-appearance: none;
|
@@ -54,33 +51,46 @@
|
|
54
51
|
|
55
52
|
}
|
56
53
|
}
|
54
|
+
}
|
57
55
|
|
56
|
+
.pb_selectable_icon_kit_disabled,
|
57
|
+
.pb_selectable_icon_kit_checked_disabled {
|
58
|
+
opacity: $opacity_6;
|
59
|
+
cursor: not-allowed;
|
60
|
+
* {
|
61
|
+
cursor: not-allowed;
|
62
|
+
}
|
63
|
+
}
|
58
64
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
65
|
+
.pb_selectable_icon_kit.dark,
|
66
|
+
.pb_selectable_icon_kit_checked.dark,
|
67
|
+
.pb_selectable_icon_kit_enabled.dark,
|
68
|
+
.pb_selectable_icon_kit_disabled.dark,
|
69
|
+
.pb_selectable_icon_kit_checked_enabled.dark,
|
70
|
+
.pb_selectable_icon_kit_checked_disabled.dark {
|
71
|
+
input[type="checkbox"],
|
72
|
+
input[type="radio"] {
|
73
|
+
-webkit-appearance: none;
|
74
|
+
-moz-appearance: none;
|
75
|
+
display: none;
|
76
|
+
appearance: none;
|
77
|
+
transition: color $transition_short ease;
|
78
|
+
|
79
|
+
&:checked ~ label * {
|
66
80
|
transition: color $transition_short ease;
|
81
|
+
color: $active_dark !important;
|
82
|
+
}
|
67
83
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
}
|
72
|
-
|
73
|
-
&:not(:checked) ~ label {
|
74
|
-
transition: color $transition_short ease;
|
75
|
-
color: $text_dk_lighter;
|
84
|
+
&:not(:checked) ~ label {
|
85
|
+
transition: color $transition_short ease;
|
86
|
+
color: $text_dk_lighter;
|
76
87
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
}
|
88
|
+
h4 {
|
89
|
+
transition: color $transition_short ease;
|
90
|
+
color: $text_dk_default;
|
81
91
|
}
|
82
92
|
}
|
83
|
-
|
93
|
+
}
|
84
94
|
}
|
85
95
|
|
86
96
|
|
@@ -82,6 +82,7 @@ const SelectableListItem = ({
|
|
82
82
|
<Checkbox
|
83
83
|
checked={checkedState}
|
84
84
|
id={id}
|
85
|
+
marginLeft="xs"
|
85
86
|
name={name}
|
86
87
|
onChange={handleChecked}
|
87
88
|
// eslint suppressor, text is needed to display on screen
|
@@ -101,6 +102,7 @@ const SelectableListItem = ({
|
|
101
102
|
defaultChecked={defaultChecked}
|
102
103
|
id={id}
|
103
104
|
label={label}
|
105
|
+
marginLeft="xs"
|
104
106
|
name={name}
|
105
107
|
onChange={onChange}
|
106
108
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
@@ -1,20 +1,17 @@
|
|
1
1
|
@import "../tokens/colors";
|
2
2
|
@import "../tokens/spacing";
|
3
3
|
|
4
|
-
.
|
4
|
+
.pb_selectable_list_kit {
|
5
5
|
margin-bottom: 0px;
|
6
|
-
|
6
|
+
|
7
|
+
.pb_item_kit,
|
8
|
+
.pb_item_kit_checked_item {
|
7
9
|
&:hover {
|
8
10
|
background-color: $bg_light;
|
9
11
|
}
|
10
|
-
&.checked_item {
|
11
|
-
background-color: $active_light;
|
12
|
-
}
|
13
|
-
}
|
14
|
-
.pb_radio_kit {
|
15
|
-
margin-left: $space_xs;
|
16
12
|
}
|
17
|
-
|
18
|
-
|
13
|
+
|
14
|
+
.pb_item_kit_checked_item {
|
15
|
+
background-color: $active_light;
|
19
16
|
}
|
20
|
-
}
|
17
|
+
}
|
@@ -24,25 +24,24 @@ const SelectableListCheckbox = () => {
|
|
24
24
|
)
|
25
25
|
}
|
26
26
|
|
27
|
-
const SelectableListRadio = () => {
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
}
|
27
|
+
// const SelectableListRadio = () => {
|
28
|
+
// return (
|
29
|
+
// <SelectableList
|
30
|
+
// data={{ testid: testId }}
|
31
|
+
// variant="radio">
|
32
|
+
// <SelectableList.Item
|
33
|
+
// label="Small"
|
34
|
+
// name="radio"
|
35
|
+
// value="1"
|
36
|
+
// />
|
37
|
+
// <SelectableList.Item
|
38
|
+
// label="Medium"
|
39
|
+
// name="radio"
|
40
|
+
// value="2"
|
41
|
+
// />
|
42
|
+
// </SelectableList>
|
43
|
+
// )
|
44
|
+
// }
|
46
45
|
|
47
46
|
|
48
47
|
test("classname renders as expected", () => {
|
@@ -59,10 +58,10 @@ test("renders variant checkbox", () => {
|
|
59
58
|
expect(checkbox).toBeInTheDocument()
|
60
59
|
})
|
61
60
|
|
62
|
-
test("renders variant radio", () => {
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
61
|
+
// test("renders variant radio", () => {
|
62
|
+
// render(<SelectableListRadio />)
|
63
|
+
// const kit = screen.getByTestId("selectable-list-test")
|
64
|
+
// const radio = kit.querySelector("input[type='radio']")
|
65
|
+
// expect(radio).toBeInTheDocument()
|
67
66
|
|
68
|
-
})
|
67
|
+
// })
|
@@ -12,12 +12,12 @@
|
|
12
12
|
</span>
|
13
13
|
<% end %>
|
14
14
|
<% if object.variant == "radio"%>
|
15
|
-
<%= pb_rails("radio", props: { text: object.text, checked: object.checked, input_options: object.input_options } ) %>
|
15
|
+
<%= pb_rails("radio", props: { margin_left:"xs", text: object.text, checked: object.checked, input_options: object.input_options } ) %>
|
16
16
|
<% if content.present? %>
|
17
17
|
<%= content %>
|
18
18
|
<% end %>
|
19
19
|
<% else %>
|
20
|
-
<%= pb_rails("checkbox", props: { text: object.text, checked: object.checked, input_options: object.input_options } ) %>
|
20
|
+
<%= pb_rails("checkbox", props: { margin_left:"xs", text: object.text, checked: object.checked, input_options: object.input_options } ) %>
|
21
21
|
<% if content.present? %>
|
22
22
|
<%= content %>
|
23
23
|
<% end %>
|
@@ -1,14 +1,14 @@
|
|
1
1
|
@import "../tokens/spacing";
|
2
2
|
|
3
|
-
.
|
3
|
+
.pb_source_kit {
|
4
4
|
.pb__source_layout {
|
5
5
|
display: flex;
|
6
6
|
justify-content: flex-start;
|
7
7
|
align-items: flex-start;
|
8
8
|
}
|
9
9
|
|
10
|
-
.
|
11
|
-
.
|
10
|
+
.pb_icon_circle_kit,
|
11
|
+
.pb_avatar_kit {
|
12
12
|
margin-right: $space-sm;
|
13
13
|
}
|
14
14
|
|
@@ -21,9 +21,9 @@
|
|
21
21
|
justify-content: flex-start;
|
22
22
|
align-items: baseline;
|
23
23
|
|
24
|
-
.
|
24
|
+
.pb_body_kit {
|
25
25
|
margin-right: $space-xs;
|
26
26
|
}
|
27
27
|
}
|
28
28
|
}
|
29
|
-
}
|
29
|
+
}
|
@@ -65,7 +65,7 @@ describe("Star Rating Kit", () => {
|
|
65
65
|
const stars = highlight.querySelectorAll(".pb_star_lg")
|
66
66
|
const count = stars.length
|
67
67
|
|
68
|
-
expect(title.className).toBe("
|
68
|
+
expect(title.className).toBe("pb_title_kit pb_title_2 pb_title_light pb_title_thin pr_sm pb_star_rating_number_lg")
|
69
69
|
expect(count).toBe(5)
|
70
70
|
})
|
71
71
|
})
|
@@ -3,7 +3,7 @@
|
|
3
3
|
@import "../../pb_caption/caption_mixin";
|
4
4
|
|
5
5
|
@media only screen and (max-width: $screen-xs-max) {
|
6
|
-
|
6
|
+
[class^=pb_table]:not(.table-responsive-scroll) {
|
7
7
|
&.table-sm.table-collapse-sm,
|
8
8
|
&.table-md.table-collapse-sm,
|
9
9
|
&.table-lg.table-collapse-sm {
|