playbook_ui 14.9.0.pre.alpha.play1742globalheightfixes4766 → 14.9.0.pre.rc.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/_playbook.scss +0 -2
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +17 -61
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_sort.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -3
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +1 -3
- data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +0 -15
- data/app/pb_kits/playbook/pb_background/_background.tsx +2 -8
- data/app/pb_kits/playbook/pb_button/_button.scss +0 -6
- data/app/pb_kits/playbook/pb_button/_button.tsx +3 -1
- data/app/pb_kits/playbook/pb_button/_button_mixins.scss +0 -15
- data/app/pb_kits/playbook/pb_button/button.rb +1 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_default.html.erb +0 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_default.jsx +0 -8
- data/app/pb_kits/playbook/pb_button/docs/_button_default.md +1 -1
- data/app/pb_kits/playbook/pb_checkbox/checkbox.html.erb +2 -2
- data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +4 -0
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate.html.erb +7 -84
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.tsx +1 -3
- data/app/pb_kits/playbook/pb_currency/_currency.tsx +3 -7
- data/app/pb_kits/playbook/pb_currency/currency.html.erb +2 -2
- data/app/pb_kits/playbook/pb_currency/currency.rb +1 -17
- data/app/pb_kits/playbook/pb_currency/currency.test.js +3 -40
- data/app/pb_kits/playbook/pb_currency/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_currency/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_drawer/_drawer.scss +0 -1
- data/app/pb_kits/playbook/pb_drawer/_drawer.tsx +45 -159
- data/app/pb_kits/playbook/pb_drawer/docs/example.yml +1 -1
- data/app/pb_kits/playbook/pb_drawer/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +0 -1
- data/app/pb_kits/playbook/pb_dropdown/dropdown_container.html.erb +1 -0
- data/app/pb_kits/playbook/pb_dropdown/dropdown_container.rb +4 -0
- data/app/pb_kits/playbook/pb_dropdown/utilities/subComponentHelper.tsx +2 -13
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +2 -2
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_loading.html.erb +1 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +12 -63
- data/app/pb_kits/playbook/pb_image/_image.tsx +1 -3
- data/app/pb_kits/playbook/pb_layout/_layout.tsx +14 -36
- data/app/pb_kits/playbook/pb_overlay/_overlay.tsx +1 -3
- data/app/pb_kits/playbook/pb_pagination/_pagination.tsx +2 -2
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.tsx +3 -5
- data/app/pb_kits/playbook/pb_progress_simple/progress_simple.html.erb +2 -3
- data/app/pb_kits/playbook/pb_progress_simple/progress_simple.rb +0 -5
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.tsx +1 -3
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_default.html.erb +1 -2
- data/app/pb_kits/playbook/pb_table/_table.tsx +25 -109
- data/app/pb_kits/playbook/pb_table/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_table/styles/_all.scss +0 -2
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.html.erb +0 -47
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.jsx +0 -59
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +0 -3
- data/app/pb_kits/playbook/pb_typeahead/index.ts +3 -29
- data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +2 -5
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +0 -4
- data/app/pb_kits/playbook/utilities/_max_width.scss +9 -29
- data/app/pb_kits/playbook/utilities/_min_width.scss +2 -6
- data/app/pb_kits/playbook/utilities/globalPropNames.mjs +1 -1
- data/app/pb_kits/playbook/utilities/globalProps.ts +4 -37
- data/dist/chunks/_typeahead-D0PihN_3.js +22 -0
- data/dist/chunks/_weekday_stacked-uMIX8f-A.js +45 -0
- data/dist/chunks/{lib-SyD3buPZ.js → lib-BC6ESsxG.js} +1 -1
- data/dist/chunks/{pb_form_validation-Dt8UJgrJ.js → pb_form_validation-B_Z9rEbg.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/menu.yml +0 -321
- 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/classnames.rb +0 -4
- data/lib/playbook/forms/builder/typeahead_field.rb +0 -13
- data/lib/playbook/kit_base.rb +1 -16
- data/lib/playbook/spacing.rb +0 -21
- data/lib/playbook/version.rb +2 -2
- metadata +6 -28
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_cell_rails.html.erb +0 -53
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_cell_rails.md +0 -5
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx +0 -50
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.md +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx +0 -57
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.md +0 -5
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_pagination_mock_data.json +0 -5600
- data/app/pb_kits/playbook/pb_currency/docs/_currency_negative.html.erb +0 -4
- data/app/pb_kits/playbook/pb_currency/docs/_currency_negative.jsx +0 -16
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.jsx +0 -31
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.md +0 -6
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.jsx +0 -87
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_react.md +0 -2
- data/app/pb_kits/playbook/pb_table/styles/_scroll.scss +0 -4
- data/app/pb_kits/playbook/pb_table/styles/_sticky_columns.scss +0 -18
- data/app/pb_kits/playbook/tokens/_height.scss +0 -19
- data/app/pb_kits/playbook/tokens/exports/_height.module.scss +0 -37
- data/app/pb_kits/playbook/utilities/_height.scss +0 -33
- data/app/pb_kits/playbook/utilities/_width.scss +0 -45
- data/dist/chunks/_typeahead-B8fkIeXA.js +0 -22
- data/dist/chunks/_weekday_stacked-DjRTXEi-.js +0 -45
- data/lib/playbook/height.rb +0 -29
- data/lib/playbook/max_height.rb +0 -29
- data/lib/playbook/min_height.rb +0 -29
@@ -17,14 +17,11 @@
|
|
17
17
|
<%= pb_rails("text_input", props: {
|
18
18
|
type: "search",
|
19
19
|
input_options: object.input_options,
|
20
|
+
label: object.label,
|
20
21
|
name: object.name,
|
21
22
|
value: object.value,
|
22
23
|
placeholder: object.placeholder,
|
23
24
|
margin_bottom: "none",
|
24
|
-
required: object.required,
|
25
|
-
validation: object.validation,
|
26
|
-
label: object.label,
|
27
|
-
id: object.input_options[:id],
|
28
25
|
}) %>
|
29
26
|
<%= pb_rails("list", props: { ordered: false, borderless: false, xpadding: true, role: "status", aria: { live: "polite" }, data: { pb_typeahead_kit_results: true } }) do %>
|
30
27
|
<% end %>
|
@@ -36,4 +33,4 @@
|
|
36
33
|
<% end %>
|
37
34
|
</template>
|
38
35
|
<% end %>
|
39
|
-
<% end %>
|
36
|
+
<% end %>
|
@@ -40,10 +40,6 @@ module Playbook
|
|
40
40
|
prop :pill_color, type: Playbook::Props::Enum,
|
41
41
|
values: %w[primary neutral success warning error info data_1 data_2 data_3 data_4 data_5 data_6 data_7 data_8 windows siding roofing doors gutters solar insulation accessories],
|
42
42
|
default: "primary"
|
43
|
-
prop :required, type: Playbook::Props::Boolean,
|
44
|
-
default: false
|
45
|
-
prop :validation, type: Playbook::Props::HashProp,
|
46
|
-
default: {}
|
47
43
|
|
48
44
|
def classname
|
49
45
|
default_margin_bottom = margin_bottom.present? ? "" : " mb_sm"
|
@@ -1,49 +1,29 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
.max_width_xs {
|
2
|
+
max-width: 360px;
|
3
|
+
}
|
3
4
|
.max_width_0 {
|
4
|
-
max-width:
|
5
|
+
max-width: 0;
|
5
6
|
}
|
6
|
-
|
7
7
|
.max_width_none {
|
8
8
|
max-width: none;
|
9
9
|
}
|
10
10
|
|
11
|
-
.max_width_0_percent {
|
12
|
-
max-width: $container_0;
|
13
|
-
}
|
14
|
-
|
15
|
-
.max_width_xxs {
|
16
|
-
max-width: $container_xxs;
|
17
|
-
}
|
18
|
-
|
19
|
-
.max_width_xs {
|
20
|
-
max-width: $container_xs;
|
21
|
-
}
|
22
|
-
|
23
11
|
.max_width_sm {
|
24
|
-
max-width:
|
12
|
+
max-width: 540px;
|
25
13
|
}
|
26
14
|
|
27
15
|
.max_width_md {
|
28
|
-
max-width:
|
16
|
+
max-width: 720px;
|
29
17
|
}
|
30
18
|
|
31
19
|
.max_width_lg {
|
32
|
-
max-width:
|
20
|
+
max-width: 960px;
|
33
21
|
}
|
34
22
|
|
35
23
|
.max_width_xl {
|
36
|
-
max-width:
|
24
|
+
max-width: 1140px;
|
37
25
|
}
|
38
26
|
|
39
27
|
.max_width_xxl {
|
40
|
-
max-width:
|
41
|
-
}
|
42
|
-
|
43
|
-
.max_width_100_percent {
|
44
|
-
max-width: $container_100;
|
45
|
-
}
|
46
|
-
|
47
|
-
.width-resize {
|
48
|
-
resize: horizontal;
|
28
|
+
max-width: 1320px;
|
49
29
|
}
|
@@ -4,11 +4,7 @@
|
|
4
4
|
min-width: map-get($containers, 'none');
|
5
5
|
}
|
6
6
|
|
7
|
-
.
|
8
|
-
min-width: none;
|
9
|
-
}
|
10
|
-
|
11
|
-
.min_width_0_percent {
|
7
|
+
.min_with_0_percent {
|
12
8
|
min-width: $container_0;
|
13
9
|
}
|
14
10
|
|
@@ -44,6 +40,6 @@
|
|
44
40
|
min-width: $container_100;
|
45
41
|
}
|
46
42
|
|
47
|
-
.
|
43
|
+
.minwidth-resize {
|
48
44
|
resize: horizontal;
|
49
45
|
}
|
@@ -7,6 +7,7 @@ export default [
|
|
7
7
|
"right",
|
8
8
|
"top",
|
9
9
|
"hover",
|
10
|
+
"groupHover",
|
10
11
|
"zIndex",
|
11
12
|
"verticalAlign",
|
12
13
|
"truncate",
|
@@ -29,7 +30,6 @@ export default [
|
|
29
30
|
"numberSpacing",
|
30
31
|
"maxWidth",
|
31
32
|
"minWidth",
|
32
|
-
"width",
|
33
33
|
"marginRight",
|
34
34
|
"marginLeft",
|
35
35
|
"marginTop",
|
@@ -95,16 +95,12 @@ type Margin = {
|
|
95
95
|
default?: string
|
96
96
|
}
|
97
97
|
|
98
|
-
type Width = {
|
99
|
-
width?: string
|
100
|
-
}
|
101
|
-
|
102
98
|
type MaxWidth = {
|
103
|
-
maxWidth?:
|
99
|
+
maxWidth?: Sizes,
|
104
100
|
}
|
105
101
|
|
106
102
|
type MinWidth = {
|
107
|
-
minWidth?:
|
103
|
+
minWidth?: Sizes,
|
108
104
|
}
|
109
105
|
|
110
106
|
type NumberSpacing = {
|
@@ -180,7 +176,7 @@ type ZIndex = {
|
|
180
176
|
} | ZIndexResponsiveType
|
181
177
|
|
182
178
|
type Height = {
|
183
|
-
height?: string
|
179
|
+
height?: string
|
184
180
|
}
|
185
181
|
|
186
182
|
type MaxHeight = {
|
@@ -195,7 +191,7 @@ type MinHeight = {
|
|
195
191
|
export type GlobalProps = AlignContent & AlignItems & AlignSelf &
|
196
192
|
BorderRadius & Cursor & Dark & Display & DisplaySizes & Flex & FlexDirection &
|
197
193
|
FlexGrow & FlexShrink & FlexWrap & JustifyContent & JustifySelf &
|
198
|
-
LineHeight & Margin &
|
194
|
+
LineHeight & Margin & MinWidth & MaxWidth & NumberSpacing & Order & Overflow & Padding &
|
199
195
|
Position & Shadow & TextAlign & Truncate & VerticalAlign & ZIndex & { hover?: string } & Top & Right & Bottom & Left & Height & MaxHeight & MinHeight;
|
200
196
|
|
201
197
|
const getResponsivePropClasses = (prop: {[key: string]: string}, classPrefix: string) => {
|
@@ -355,11 +351,6 @@ const PROP_CATEGORIES: {[key:string]: (props: {[key: string]: any}) => string} =
|
|
355
351
|
css += numberSpacing ? `ns_${numberSpacing} ` : ''
|
356
352
|
return css
|
357
353
|
},
|
358
|
-
widthProps: ({ width }: Width) => {
|
359
|
-
let css = ''
|
360
|
-
css += width ? `width_${filterClassName(width)} ` : ''
|
361
|
-
return css.trimEnd()
|
362
|
-
},
|
363
354
|
minWidthProps: ({ minWidth }: MinWidth) => {
|
364
355
|
let css = ''
|
365
356
|
css += minWidth ? `min_width_${filterClassName(minWidth)} ` : ''
|
@@ -370,30 +361,6 @@ const PROP_CATEGORIES: {[key:string]: (props: {[key: string]: any}) => string} =
|
|
370
361
|
css += maxWidth ? `max_width_${filterClassName(maxWidth)} ` : ''
|
371
362
|
return css.trimEnd()
|
372
363
|
},
|
373
|
-
minHeightProps: ({ minHeight }: MinHeight) => {
|
374
|
-
const heightValues = ["auto", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"]
|
375
|
-
if (heightValues.includes(minHeight)) {
|
376
|
-
let css = ''
|
377
|
-
css += minHeight ? `min_height_${filterClassName(minHeight)} ` : ''
|
378
|
-
return css.trimEnd()
|
379
|
-
}
|
380
|
-
},
|
381
|
-
maxHeightProps: ({ maxHeight }: MaxHeight) => {
|
382
|
-
const heightValues = ["auto", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"]
|
383
|
-
if (heightValues.includes(maxHeight)) {
|
384
|
-
let css = ''
|
385
|
-
css += maxHeight ? `max_height_${filterClassName(maxHeight)} ` : ''
|
386
|
-
return css.trimEnd()
|
387
|
-
}
|
388
|
-
},
|
389
|
-
heightProps: ({ height }: Height) => {
|
390
|
-
const heightValues = ["auto", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"]
|
391
|
-
if (heightValues.includes(height)) {
|
392
|
-
let css = ''
|
393
|
-
css += height ? `height_${filterClassName(height)} ` : ''
|
394
|
-
return css.trimEnd()
|
395
|
-
}
|
396
|
-
},
|
397
364
|
zIndexProps: (zIndex: ZIndex) => {
|
398
365
|
let css = ''
|
399
366
|
Object.entries(zIndex).forEach((zIndexEntry) => {
|