playbook_ui 14.6.2.pre.alpha.PBNTR667railstypeaheadformintegration4424 → 14.6.2.pre.alpha.PLAY1485selectablecardoverflowoutlinebug4247
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/_playbook.scss +1 -2
- data/app/pb_kits/playbook/pb_advanced_table/Components/CustomCell.tsx +1 -8
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +28 -21
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +1 -37
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_cell.jsx +2 -13
- data/app/pb_kits/playbook/pb_currency/_currency.tsx +6 -16
- data/app/pb_kits/playbook/pb_currency/currency.rb +11 -38
- data/app/pb_kits/playbook/pb_currency/currency.test.js +0 -35
- data/app/pb_kits/playbook/pb_currency/docs/example.yml +1 -3
- data/app/pb_kits/playbook/pb_currency/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +7 -8
- 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_form_pill/_form_pill.scss +2 -6
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +26 -30
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.html.erb +1 -24
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.jsx +2 -25
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.md +1 -0
- data/app/pb_kits/playbook/pb_form_pill/form_pill.html.erb +8 -46
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +1 -1
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.tsx +1 -1
- data/app/pb_kits/playbook/pb_selectable_card/selectable_card.rb +2 -2
- data/app/pb_kits/playbook/pb_timeline/_item.tsx +23 -59
- data/app/pb_kits/playbook/pb_timeline/_timeline.tsx +0 -8
- data/app/pb_kits/playbook/pb_timeline/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_timeline/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_timeline/item.html.erb +21 -17
- data/app/pb_kits/playbook/pb_timeline/item.rb +0 -4
- data/app/pb_kits/playbook/pb_timeline/timeline.test.js +0 -84
- data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +1 -7
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +0 -2
- data/app/pb_kits/playbook/tokens/_typography.scss +0 -35
- data/app/pb_kits/playbook/utilities/_hover.scss +43 -46
- data/app/pb_kits/playbook/utilities/globalPropNames.mjs +0 -1
- data/app/pb_kits/playbook/utilities/globalProps.ts +1 -6
- data/dist/chunks/_typeahead-BV_n6U5W.js +22 -0
- data/dist/chunks/_weekday_stacked-Cyqgh5-q.js +45 -0
- data/dist/chunks/vendor.js +1 -1
- data/dist/menu.yml +0 -3
- 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/forms/builder/typeahead_field.rb +0 -1
- data/lib/playbook/hover.rb +1 -4
- data/lib/playbook/version.rb +1 -1
- metadata +5 -39
- data/app/pb_kits/playbook/pb_currency/docs/_currency_comma_separator.html.erb +0 -7
- data/app/pb_kits/playbook/pb_currency/docs/_currency_comma_separator.jsx +0 -18
- data/app/pb_kits/playbook/pb_currency/docs/_currency_comma_separator.md +0 -3
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text_rails.md +0 -3
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text_react.md +0 -1
- data/app/pb_kits/playbook/pb_link/_link.scss +0 -66
- data/app/pb_kits/playbook/pb_link/_link.tsx +0 -107
- data/app/pb_kits/playbook/pb_link/docs/_link_color.html.erb +0 -30
- data/app/pb_kits/playbook/pb_link/docs/_link_color.jsx +0 -40
- data/app/pb_kits/playbook/pb_link/docs/_link_disabled.html.erb +0 -5
- data/app/pb_kits/playbook/pb_link/docs/_link_disabled.jsx +0 -15
- data/app/pb_kits/playbook/pb_link/docs/_link_icon.html.erb +0 -15
- data/app/pb_kits/playbook/pb_link/docs/_link_icon.jsx +0 -25
- data/app/pb_kits/playbook/pb_link/docs/_link_tag.html.erb +0 -35
- data/app/pb_kits/playbook/pb_link/docs/_link_tag.jsx +0 -45
- data/app/pb_kits/playbook/pb_link/docs/_link_underline.html.erb +0 -5
- data/app/pb_kits/playbook/pb_link/docs/_link_underline.jsx +0 -15
- data/app/pb_kits/playbook/pb_link/docs/example.yml +0 -16
- data/app/pb_kits/playbook/pb_link/docs/index.js +0 -5
- data/app/pb_kits/playbook/pb_link/link.html.erb +0 -21
- data/app/pb_kits/playbook/pb_link/link.rb +0 -44
- data/app/pb_kits/playbook/pb_link/link.test.jsx +0 -92
- data/app/pb_kits/playbook/pb_timeline/detail.html.erb +0 -3
- data/app/pb_kits/playbook/pb_timeline/detail.rb +0 -11
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.html.erb +0 -43
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.jsx +0 -68
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.md +0 -2
- data/app/pb_kits/playbook/pb_timeline/label.html.erb +0 -12
- data/app/pb_kits/playbook/pb_timeline/label.rb +0 -13
- data/app/pb_kits/playbook/pb_timeline/step.html.erb +0 -14
- data/app/pb_kits/playbook/pb_timeline/step.rb +0 -16
- data/app/pb_kits/playbook/pb_timeline/subcomponents/Detail.tsx +0 -29
- data/app/pb_kits/playbook/pb_timeline/subcomponents/Label.tsx +0 -38
- data/app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx +0 -42
- data/app/pb_kits/playbook/pb_timeline/subcomponents/index.tsx +0 -3
- data/dist/chunks/_typeahead-5m7Pr_Rh.js +0 -22
- data/dist/chunks/_weekday_stacked-B4YQ6Z-d.js +0 -45
@@ -1,54 +1,51 @@
|
|
1
1
|
@import "../tokens/exports/scale.module";
|
2
2
|
|
3
|
-
@mixin hover-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
@mixin hover-color-classes($colors-list) {
|
4
|
+
@each $name, $color in $colors-list {
|
5
|
+
.hover_background_#{"" + $name}:hover {
|
6
|
+
background-color: $color !important;
|
7
|
+
transition: background-color $transition-speed ease;
|
8
|
+
}
|
9
|
+
.hover_color_#{"" + $name}:hover {
|
10
|
+
color: $color !important;
|
11
|
+
transition: color $transition-speed ease;
|
12
|
+
}
|
9
13
|
}
|
10
14
|
}
|
11
|
-
|
12
|
-
|
13
|
-
@
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
transition: box-shadow $transition-speed ease;
|
15
|
+
|
16
|
+
@mixin hover-shadow-classes($shadows-list) {
|
17
|
+
@each $name, $shadow in $shadows-list {
|
18
|
+
.hover_#{"" + $name}:hover {
|
19
|
+
box-shadow: $shadow;
|
20
|
+
transition: box-shadow $transition-speed ease;
|
21
|
+
}
|
19
22
|
}
|
20
23
|
}
|
21
|
-
|
22
|
-
|
23
|
-
@
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
transition: background-color $transition-speed ease;
|
29
|
-
}
|
30
|
-
.hover_color_#{"" + $name}:hover,
|
31
|
-
.group_hover:hover .group_hover.hover_color_#{"" + $name} {
|
32
|
-
color: $color !important;
|
33
|
-
transition: color $transition-speed ease;
|
24
|
+
|
25
|
+
@mixin hover-scale-classes($scales-list) {
|
26
|
+
@each $name, $scale in $scales-list {
|
27
|
+
.hover_#{"" + $name}:hover {
|
28
|
+
transform: $scale;
|
29
|
+
transition: transform $transition-speed ease;
|
30
|
+
}
|
34
31
|
}
|
35
32
|
}
|
36
|
-
|
37
|
-
|
38
|
-
@include hover-scale-classes($scales);
|
39
|
-
@include hover-shadow-classes($box_shadows);
|
40
|
-
@include hover-color-classes($product_colors);
|
41
|
-
@include hover-color-classes($status_colors);
|
42
|
-
@include hover-color-classes($data_colors);
|
43
|
-
@include hover-color-classes($shadow_colors);
|
44
|
-
@include hover-color-classes($colors);
|
45
|
-
@include hover-color-classes($interface_colors);
|
46
|
-
@include hover-color-classes($main_colors);
|
47
|
-
@include hover-color-classes($background_colors);
|
48
|
-
@include hover-color-classes($card_colors);
|
49
|
-
@include hover-color-classes($active_colors);
|
50
|
-
@include hover-color-classes($action_colors);
|
51
|
-
@include hover-color-classes($hover_colors);
|
52
|
-
@include hover-color-classes($border_colors);
|
53
|
-
@include hover-color-classes($text_colors);
|
54
|
-
@include hover-color-classes($category_colors);
|
33
|
+
|
34
|
+
|
35
|
+
@include hover-scale-classes($scales);
|
36
|
+
@include hover-shadow-classes($box_shadows);
|
37
|
+
@include hover-color-classes($product_colors);
|
38
|
+
@include hover-color-classes($status_colors);
|
39
|
+
@include hover-color-classes($data_colors);
|
40
|
+
@include hover-color-classes($shadow_colors);
|
41
|
+
@include hover-color-classes($colors);
|
42
|
+
@include hover-color-classes($interface_colors);
|
43
|
+
@include hover-color-classes($main_colors);
|
44
|
+
@include hover-color-classes($background_colors);
|
45
|
+
@include hover-color-classes($card_colors);
|
46
|
+
@include hover-color-classes($active_colors);
|
47
|
+
@include hover-color-classes($action_colors);
|
48
|
+
@include hover-color-classes($hover_colors);
|
49
|
+
@include hover-color-classes($border_colors);
|
50
|
+
@include hover-color-classes($text_colors);
|
51
|
+
@include hover-color-classes($category_colors);
|
@@ -66,10 +66,6 @@ type Hover = Shadow & {
|
|
66
66
|
scale?: "sm" | "md" | "lg"
|
67
67
|
}
|
68
68
|
|
69
|
-
type GroupHover = {
|
70
|
-
groupHover?: boolean,
|
71
|
-
}
|
72
|
-
|
73
69
|
type JustifyContent = {
|
74
70
|
justifyContent?: Alignment & Space
|
75
71
|
}
|
@@ -179,7 +175,7 @@ export type GlobalProps = AlignContent & AlignItems & AlignSelf &
|
|
179
175
|
BorderRadius & Cursor & Dark & Display & DisplaySizes & Flex & FlexDirection &
|
180
176
|
FlexGrow & FlexShrink & FlexWrap & JustifyContent & JustifySelf &
|
181
177
|
LineHeight & Margin & MinWidth & MaxWidth & NumberSpacing & Order & Overflow & Padding &
|
182
|
-
Position & Shadow & TextAlign & Truncate & VerticalAlign & ZIndex &
|
178
|
+
Position & Shadow & TextAlign & Truncate & VerticalAlign & ZIndex & { hover?: string } & Top & Right & Bottom & Left;
|
183
179
|
|
184
180
|
const getResponsivePropClasses = (prop: {[key: string]: string}, classPrefix: string) => {
|
185
181
|
const keys: string[] = Object.keys(prop)
|
@@ -213,7 +209,6 @@ const filterClassName = (value: string): string => {
|
|
213
209
|
// Prop categories
|
214
210
|
const PROP_CATEGORIES: {[key:string]: (props: {[key: string]: any}) => string} = {
|
215
211
|
|
216
|
-
groupHoverProps: ({ groupHover }: GroupHover ) => groupHover ? 'group_hover ' : '',
|
217
212
|
hoverProps: ({ hover }: { hover?: Hover }) => {
|
218
213
|
let css = '';
|
219
214
|
if (!hover) return css;
|