playbook_ui 14.17.0.pre.alpha.PBNTR935draggablelinedesign7118 → 14.17.0.pre.alpha.PLAY1823maskedsanitizedtextinput7271

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.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Components/RegularTableView.tsx +23 -3
  3. data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +11 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +60 -128
  5. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +3 -0
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.jsx +58 -0
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.md +6 -0
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.jsx +64 -0
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.md +8 -0
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.jsx +55 -0
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.md +3 -0
  12. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.html.erb +33 -0
  13. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.md +3 -0
  14. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +1 -1
  15. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +1 -2
  16. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md +2 -2
  17. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md +1 -1
  18. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +6 -2
  19. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +6 -2
  20. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +6 -2
  21. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +4 -1
  22. data/app/pb_kits/playbook/pb_advanced_table/scss_partials/advanced_table_sticky_mixin.scss +97 -0
  23. data/app/pb_kits/playbook/pb_background/_background.scss +26 -0
  24. data/app/pb_kits/playbook/pb_background/_background.tsx +5 -3
  25. data/app/pb_kits/playbook/pb_background/background.test.js +5 -0
  26. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx +35 -0
  27. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.md +1 -0
  28. data/app/pb_kits/playbook/pb_background/docs/example.yml +1 -0
  29. data/app/pb_kits/playbook/pb_background/docs/index.js +1 -0
  30. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.jsx +30 -35
  31. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +18 -2
  32. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb +15 -5
  33. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +20 -5
  34. data/app/pb_kits/playbook/pb_layout/_layout.scss +70 -1
  35. data/app/pb_kits/playbook/pb_layout/_layout.tsx +29 -2
  36. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx +322 -118
  37. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md +1 -1
  38. data/app/pb_kits/playbook/pb_layout/subcomponents/_game.tsx +74 -43
  39. data/app/pb_kits/playbook/pb_layout/subcomponents/_participant.tsx +79 -0
  40. data/app/pb_kits/playbook/pb_layout/subcomponents/_round.tsx +21 -4
  41. data/app/pb_kits/playbook/pb_overlay/_overlay.scss +49 -22
  42. data/app/pb_kits/playbook/pb_overlay/_overlay.tsx +15 -4
  43. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx +63 -0
  44. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md +3 -0
  45. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md +1 -7
  46. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx +39 -0
  47. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md +1 -0
  48. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx +40 -0
  49. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md +5 -0
  50. data/app/pb_kits/playbook/pb_overlay/docs/example.yml +3 -0
  51. data/app/pb_kits/playbook/pb_overlay/docs/index.js +3 -0
  52. data/app/pb_kits/playbook/pb_overlay/overlay.test.jsx +39 -1
  53. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb +34 -0
  54. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md +1 -0
  55. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb +36 -0
  56. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md +1 -0
  57. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md +1 -1
  58. data/app/pb_kits/playbook/pb_table/docs/example.yml +2 -0
  59. data/app/pb_kits/playbook/pb_table/styles/_headers.scss +19 -7
  60. data/app/pb_kits/playbook/pb_table/table.rb +13 -1
  61. data/app/pb_kits/playbook/pb_table/table_header.rb +13 -1
  62. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +13 -5
  63. data/app/pb_kits/playbook/pb_text_input/inputMask.ts +8 -1
  64. data/dist/chunks/_typeahead-CtCqFlTG.js +22 -0
  65. data/dist/chunks/_weekday_stacked-DSsdjRl5.js +45 -0
  66. data/dist/chunks/vendor.js +1 -1
  67. data/dist/playbook-doc.js +1 -1
  68. data/dist/playbook-rails-react-bindings.js +1 -1
  69. data/dist/playbook-rails.js +1 -1
  70. data/dist/playbook.css +1 -1
  71. data/lib/playbook/version.rb +1 -1
  72. metadata +26 -4
  73. data/dist/chunks/_typeahead-HqfDnjRe.js +0 -22
  74. data/dist/chunks/_weekday_stacked-DVQITtQ9.js +0 -45
@@ -1,3 +1,3 @@
1
- This kit uses the [Table kit](https://playbook.powerapp.cloud/kits/table) under the hood which comes with its 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).
1
+ This kit uses the [Table kit](https://playbook.powerapp.cloud/kits/table/react) under the hood which comes with its 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/react).
2
2
 
3
- This doc example showcases how to set a sticky header for a nonresponsive table. To achieve sticky header AND responsive functionality, see the ["Table Props Sticky Header"](https://playbook.powerapp.cloud/kits/advanced_table#table-props-sticky-header) doc example below.
3
+ This doc example showcases the use of two table props, including how to render the vertical borders between columns.
@@ -1,3 +1,3 @@
1
1
  This kit uses the [Table kit](https://playbook.powerapp.cloud/kits/table/react) under the hood which comes with its own set of props. If you want to apply certain Table props to that underlying kit, you can do so by using the optional `tableProps` 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/react).
2
2
 
3
- This doc example showcases how to set a sticky header for a nonresponsive table. To achieve sticky header AND responsive functionality, see the ["Table Props Sticky Header"](https://playbook.powerapp.cloud/kits/advanced_table/react#table-props-sticky-header) doc example below.
3
+ This doc example showcases the use of two table props, including how to render the vertical borders between columns.
@@ -1,3 +1,7 @@
1
- Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `table_props` and giving the AdvancedTable a `max_height` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop. This behavior requires a `max_height` to work. The header is sticky within the table container, allowing for it to work along with the first column stickiness of a responsive table on smaller screen sizes.
1
+ Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `table_props` and giving the AdvancedTable a `max_height` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop.
2
2
 
3
- A sticky header on a nonresponsive table is demonstrated in the ["Table Props"](https://playbook.powerapp.cloud/kits/advanced_table#table-props) doc example above.
3
+ **NOTE**: This behavior requires a `max_height` to work. The header is sticky within the table container, allowing for it to work along with the first column stickiness of a responsive table on smaller screen sizes.
4
+
5
+ Expand the table above to see this in action.
6
+
7
+ A sticky header on a nonresponsive table is demonstrated in the ["Sticky Header"](https://playbook.powerapp.cloud/kits/advanced_table#sticky-header) doc example above.
@@ -1,3 +1,7 @@
1
- Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `tableProps` and giving the AdvancedTable a `maxHeight` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop. This behavior requires a `maxHeight` to work. The header is sticky within the table container, allowing for it to work along with the first column stickiness of a responsive table on smaller screen sizes.
1
+ Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `tableProps` and giving the AdvancedTable a `maxHeight` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop.
2
2
 
3
- A sticky header on a nonresponsive table is demonstrated in the ["Table Props"](https://playbook.powerapp.cloud/kits/advanced_table/react#table-props) doc example above.
3
+ **NOTE**: This behavior requires a `maxHeight` to work. The header is sticky within the table container, allowing for it to work along with the first column stickiness of a responsive table on smaller screen sizes.
4
+
5
+ Expand the table above to see this in action.
6
+
7
+ A sticky header on a nonresponsive table is demonstrated in the ["Sticky Header"](https://playbook.powerapp.cloud/kits/advanced_table/react#sticky-header) doc example above.
@@ -5,7 +5,8 @@ examples:
5
5
  - advanced_table_beta_subrow_headers: SubRow Headers
6
6
  - advanced_table_collapsible_trail_rails: Collapsible Trail
7
7
  - advanced_table_table_props: Table Props
8
- - advanced_table_table_props_sticky_header: Table Props Sticky Header
8
+ - advanced_table_sticky_header_rails: Sticky Header
9
+ - advanced_table_table_props_sticky_header: Sticky Header for Responsive Table
9
10
  - advanced_table_beta_sort: Enable Sorting
10
11
  - advanced_table_responsive: Responsive Tables
11
12
  - advanced_table_custom_cell_rails: Custom Components for Cells
@@ -25,7 +26,10 @@ examples:
25
26
  - advanced_table_collapsible_trail: Collapsible Trail
26
27
  - advanced_table_table_options: Table Options
27
28
  - advanced_table_table_props: Table Props
28
- - advanced_table_table_props_sticky_header: Table Props Sticky Header
29
+ - advanced_table_sticky_header: Sticky Header
30
+ - advanced_table_table_props_sticky_header: Sticky Header for Responsive Table
31
+ - advanced_table_sticky_columns: Sticky Columns
32
+ - advanced_table_sticky_columns_and_header: Sticky Columns with Sticky Header
29
33
  - advanced_table_inline_row_loading: Inline Row Loading
30
34
  - advanced_table_responsive: Responsive Tables
31
35
  - advanced_table_custom_cell: Custom Components for Cells
@@ -22,4 +22,7 @@ export { default as AdvancedTableSelectableRowsActions } from './_advanced_table
22
22
  export { default as AdvancedTableTablePropsStickyHeader } from './_advanced_table_table_props_sticky_header.jsx'
23
23
  export { default as AdvancedTableColumnHeadersCustomCell } from './_advanced_table_column_headers_custom_cell.jsx'
24
24
  export { default as AdvancedTableInlineEditing } from './_advanced_table_inline_editing.jsx'
25
- export { default as AdvancedTableFullscreen } from './_advanced_table_fullscreen.jsx'
25
+ export { default as AdvancedTableFullscreen } from './_advanced_table_fullscreen.jsx'
26
+ export { default as AdvancedTableStickyColumns } from './_advanced_table_sticky_columns.jsx'
27
+ export { default as AdvancedTableStickyHeader } from './_advanced_table_sticky_header.jsx'
28
+ export { default as AdvancedTableStickyColumnsAndHeader } from './_advanced_table_sticky_columns_and_header.jsx'
@@ -0,0 +1,97 @@
1
+ @mixin advanced-table-sticky-mixin(
2
+ $border-color,
3
+ $bg-main,
4
+ $bg-secondary,
5
+ $highlight: $info_subtle
6
+ ) {
7
+ border-radius: 4px;
8
+ box-shadow: 1px 0 0 0px $border-color, -1px 0 0 0px $border-color;
9
+ display: block;
10
+ [class^="pb_table"].table-sm.table-card thead tr th:first-child,
11
+ [class^="pb_table"].table-sm:not(.no-hover).table-card
12
+ tbody
13
+ tr
14
+ td:first-child {
15
+ border-left-width: 0px !important;
16
+ }
17
+ [class^="pb_table"].table-sm.table-card thead tr th:last-child,
18
+ [class^="pb_table"].table-sm:not(.no-hover).table-card
19
+ tbody
20
+ tr
21
+ td:last-child {
22
+ border-right-width: 0px;
23
+ }
24
+ [class^="pb_table"].table-sm.table-card tbody tr:last-child td:first-child,
25
+ [class^="pb_table"].table-sm.table-card tbody tr:last-child td:last-child {
26
+ border-radius: 0 0 0 0;
27
+ }
28
+ .table-header-cells:first-child,
29
+ td:first-child,
30
+ .pb_table_td:first-child,
31
+ .checkbox-cell.checkbox-cell-header:first-child,
32
+ .table-header-cells.sticky-left,
33
+ [class*="pinned-left"] {
34
+ background-color: $bg-main;
35
+ box-shadow: $shadow_deep !important;
36
+ position: sticky !important;
37
+ left: 0;
38
+ z-index: 2;
39
+ }
40
+
41
+ .bg-silver {
42
+ td:first-child,
43
+ .sticky-left {
44
+ background-color: $bg-secondary;
45
+ }
46
+ }
47
+ .bg-row-selection {
48
+ td:first-child,
49
+ .sticky-left {
50
+ background-color: $highlight;
51
+ }
52
+ }
53
+
54
+ .bg-white {
55
+ td:first-child,
56
+ .sticky-left {
57
+ background-color: $bg-main;
58
+ }
59
+ }
60
+
61
+ .virtualized-table-row {
62
+ &.bg-silver td:first-child {
63
+ background-color: $bg-secondary;
64
+ }
65
+ &.bg-white td:first-child {
66
+ background-color: $bg-main;
67
+ }
68
+ &.bg-row-selection td:first-child {
69
+ background-color: $highlight;
70
+ }
71
+ }
72
+
73
+ .row-selection-actions-card {
74
+ border-right-width: 0px;
75
+ border-left-width: 0px;
76
+ position: sticky;
77
+ top: 0;
78
+ left: 0;
79
+ border-radius: unset;
80
+ }
81
+
82
+ .checkbox-cell {
83
+ display: table-cell !important;
84
+ }
85
+
86
+ .sticky-header {
87
+ thead {
88
+ th:first-child {
89
+ box-shadow: 1px 0 10px -2px $border-color !important;
90
+ }
91
+ }
92
+
93
+ .pb_advanced_table_header {
94
+ box-shadow: none !important;
95
+ }
96
+ }
97
+ }
@@ -55,4 +55,30 @@ $background_colors: map-merge($additional_colors, $merge_kits7);
55
55
  transition: 700ms ease-in;
56
56
  }
57
57
  }
58
+
59
+ &[class*=imageoverlay] {
60
+ position: relative;
61
+
62
+ &:before {
63
+ content: "";
64
+ position: absolute;
65
+ top: 0;
66
+ left: 0;
67
+ right: 0;
68
+ bottom: 0;
69
+ z-index: 1;
70
+ background-color: inherit;
71
+ }
72
+
73
+ * {
74
+ position: relative;
75
+ z-index: 2;
76
+ }
77
+ }
78
+
79
+ @each $key, $value in $opacity {
80
+ &.imageoverlay_#{$key}::before {
81
+ opacity: $value;
82
+ }
83
+ }
58
84
  }
@@ -25,6 +25,7 @@ type BackgroundProps = {
25
25
  backgroundPosition?: ResponsiveProp<string> | string,
26
26
  backgroundRepeat?: ResponsiveProp<BackgroundRepeat> | BackgroundRepeat,
27
27
  imageUrl?: ResponsiveProp<string> | string,
28
+ imageOverlay?: 'opacity_1' | 'opacity_2' | 'opacity_3' | 'opacity_4' | 'opacity_5' | 'opacity_6' | 'opacity_7' | 'opacity_8' | 'opacity_9' | 'opacity_10',
28
29
  children?: React.ReactChild[] | React.ReactNode,
29
30
  className?: string,
30
31
  customColor?: string,
@@ -83,11 +84,12 @@ const Background = (props: BackgroundProps): React.ReactElement => {
83
84
  data = {},
84
85
  htmlOptions = {},
85
86
  id,
87
+ imageOverlay,
86
88
  imageUrl = '',
87
89
  tag = 'div',
88
90
  transition = '',
89
91
  } = props
90
-
92
+
91
93
  const [responsiveProps, setResponsiveProps] = useState({
92
94
  backgroundSize: getResponsiveValue(backgroundSize),
93
95
  backgroundPosition: getResponsiveValue(backgroundPosition),
@@ -132,6 +134,7 @@ const Background = (props: BackgroundProps): React.ReactElement => {
132
134
  [`pb_background_color_${resBackgroundColor}`]: resBackgroundColor && !customColor,
133
135
  [`pb_background_custom_color`]: !!customColor,
134
136
  },
137
+ imageOverlay ? `imageoverlay_${imageOverlay}` : "",
135
138
  className
136
139
  );
137
140
 
@@ -155,7 +158,7 @@ const Background = (props: BackgroundProps): React.ReactElement => {
155
158
  const ariaProps = buildAriaProps(aria);
156
159
  const dataProps = buildDataProps(data);
157
160
  const htmlProps = buildHtmlProps(htmlOptions);
158
-
161
+
159
162
  return (
160
163
  <Tag
161
164
  {...ariaProps}
@@ -168,7 +171,6 @@ const Background = (props: BackgroundProps): React.ReactElement => {
168
171
  >
169
172
  {children}
170
173
  </Tag>
171
-
172
174
  )
173
175
  }
174
176
 
@@ -37,3 +37,8 @@ test('backgroundSize = auto', () => {
37
37
  const kit = renderKit(Background, props, { classname: "background-image", imageUrl: "https://images.unsplash.com/photo-1528459801416-a9e53bbf4e17?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1000&q=80", backgroundSize: 'auto' })
38
38
  expect(kit).toHaveStyle('background-size: auto')
39
39
  })
40
+
41
+ test('applies correct overlay class when imageOverlay prop is provided', () => {
42
+ const kit = renderKit(Background, props, { imageOverlay: 'opacity_6' });
43
+ expect(kit).toHaveClass('imageoverlay_opacity_6');
44
+ });
@@ -0,0 +1,35 @@
1
+ import React from 'react'
2
+ import Background from "../../pb_background/_background"
3
+ import Flex from "../../pb_flex/_flex"
4
+ import FlexItem from "../../pb_flex/_flex_item"
5
+ import Title from "../../pb_title/_title"
6
+
7
+ const BackgroundOverlay = (props) => {
8
+ return (
9
+ <Background
10
+ alt="colorful background"
11
+ backgroundColor="category_21"
12
+ className="background lazyload"
13
+ imageOverlay="opacity_2"
14
+ imageUrl="https://unsplash.it/500/400/?image=633"
15
+ {...props}
16
+ >
17
+ <Flex
18
+ orientation="column"
19
+ vertical="center"
20
+ {...props}
21
+ >
22
+ <FlexItem>
23
+ <Title
24
+ dark
25
+ padding="lg"
26
+ size={1}
27
+ text="Background Kit Image"
28
+ />
29
+ </FlexItem>
30
+ </Flex>
31
+ </Background>
32
+ )
33
+ }
34
+
35
+ export default BackgroundOverlay
@@ -0,0 +1 @@
1
+ An overlay can be added to the background image by setting the `imageOverlay` prop and adding a `backgroundColor`. The `imageOverlay` prop can be set to any opacity ranging from `opacity_1` to `opacity_10`.
@@ -19,3 +19,4 @@ examples:
19
19
  - background_status_subtle: Status Subtle
20
20
  - background_category: Category
21
21
  - background_size: Size
22
+ - background_overlay: Overlay
@@ -6,3 +6,4 @@ export { default as BackgroundStatus } from './_background_status.jsx'
6
6
  export { default as BackgroundStatusSubtle } from './_background_status_subtle.jsx'
7
7
  export { default as BackgroundCategory } from './_background_category.jsx'
8
8
  export { default as BackgroundSize } from './_background_size.jsx'
9
+ export { default as BackgroundOverlay } from './_background_overlay.jsx'
@@ -1,7 +1,5 @@
1
1
  import React, { useState } from "react";
2
- import Body from '../../pb_body/_body'
3
2
  import Flex from '../../pb_flex/_flex'
4
- import Card from '../../pb_card/_card'
5
3
  import Caption from '../../pb_caption/_caption'
6
4
  import Draggable from '../_draggable'
7
5
  import { DraggableProvider } from '../context'
@@ -26,16 +24,16 @@ const dataLineVertical = [
26
24
 
27
25
  const dataLineHorizontal = [
28
26
  {
29
- id: "221",
30
- text: "Task 1",
27
+ id: "2111",
28
+ url: "https://unsplash.it/500/400/?image=633",
31
29
  },
32
30
  {
33
- id: "222",
34
- text: "Task 2",
31
+ id: "2122",
32
+ url: "https://unsplash.it/500/400/?image=634",
35
33
  },
36
34
  {
37
- id: "223",
38
- text: "Task 3",
35
+ id: "2133",
36
+ url: "https://unsplash.it/500/400/?image=637",
39
37
  },
40
38
  ];
41
39
 
@@ -54,7 +52,7 @@ const DraggableDropZones = (props) => {
54
52
  initialItems={dataLineVertical}
55
53
  onReorder={(items) => setInitialLineVerticalState(items)}
56
54
  >
57
- <Draggable.Container {...props}>
55
+ <Draggable.Container {...props}>
58
56
  <Flex flexDirection="column"
59
57
  height="367px"
60
58
  >
@@ -70,43 +68,40 @@ const DraggableDropZones = (props) => {
70
68
  </Draggable.Item>
71
69
  ))}
72
70
  </Flex>
73
- </Draggable.Container>
71
+ </Draggable.Container>
74
72
  </DraggableProvider>
75
73
  <Caption marginBottom="xs"
76
74
  marginTop="xl"
77
75
  text="Horizontal"
78
76
  />
79
77
  <Flex>
80
- <DraggableProvider
81
- dropZone={{ type: "line", direction: "horizontal" }}
82
- initialItems={dataLineHorizontal}
83
- onReorder={(items) => setInitialLineHorizontalState(items)}
84
- >
78
+ <DraggableProvider
79
+ dropZone={{ type: "line", direction: "horizontal" }}
80
+ initialItems={dataLineHorizontal}
81
+ onReorder={(items) => setInitialLineHorizontalState(items)}
82
+ >
85
83
  <Draggable.Container
86
84
  htmlOptions={{style:{ width: "285px"}}}
87
85
  {...props}
88
86
  >
89
- <Flex alignItems="stretch"
90
- flexDirection="row"
91
- height="42px"
92
- >
93
- {initialLineHorizontalState.map(({ id, text }) => (
94
- <Card dragId={id}
95
- draggableItem
96
- key={id}
97
- marginRight="xs"
98
- padding="xs"
99
- {...props}
100
- >
101
- <Body
102
- text={text}
103
- {...props}
104
- />
105
- </Card>
106
- ))}
107
- </Flex>
87
+ <Flex alignItems="stretch"
88
+ flexDirection="row"
89
+ height="110px"
90
+ >
91
+ {initialLineHorizontalState.map(({ id, url }) => (
92
+ <Draggable.Item dragId={id}
93
+ key={id}
94
+ marginRight="sm"
95
+ >
96
+ <Image alt={id}
97
+ size="md"
98
+ url={url}
99
+ />
100
+ </Draggable.Item>
101
+ ))}
102
+ </Flex>
108
103
  </Draggable.Container>
109
- </DraggableProvider>
104
+ </DraggableProvider>
110
105
  </Flex>
111
106
  </>
112
107
  );
@@ -85,8 +85,16 @@
85
85
  .text_input_wrapper input, [class^=pb_text_input_kit] .text_input_wrapper .text_input {
86
86
  border-bottom-right-radius: 0;
87
87
  border-top-right-radius: 0;
88
- border-right-width: 0;
88
+ border-right-color: transparent;
89
89
  }
90
+ [class^=pb_text_input_kit] .text_input_wrapper input:focus,
91
+ [class^=pb_text_input_kit] .text_input_wrapper .text_input:focus {
92
+ border-right-color: $primary;
93
+ }
94
+ [class^=pb_text_input_kit].error .text_input_wrapper input,
95
+ [class^=pb_text_input_kit].error .text_input_wrapper .text_input {
96
+ border-right-color: $error;
97
+ }
90
98
  }
91
99
 
92
100
  & > [class^=pb_phone_number_input]:not(:first-child) {
@@ -107,8 +115,16 @@
107
115
  .text_input {
108
116
  border-bottom-right-radius: 0;
109
117
  border-top-right-radius: 0;
110
- border-right: none;
118
+ border-right-color: transparent;
111
119
  }
120
+ [class^=pb_text_input_kit] .text_input_wrapper input:focus,
121
+ [class^=pb_text_input_kit] .text_input_wrapper .text_input:focus {
122
+ border-right-color: $primary;
123
+ }
124
+ [class^=pb_text_input_kit].error .text_input_wrapper input,
125
+ [class^=pb_text_input_kit].error .text_input_wrapper .text_input {
126
+ border-right-color: $error;
127
+ }
112
128
  }
113
129
 
114
130
  &[class*=rails] > [class^=pb_date_picker_kit] {
@@ -1,5 +1,4 @@
1
- <div>
2
-
1
+ <%= pb_rails("flex", props: {orientation: "column", row_gap:"md"}) do %>
3
2
  <%= pb_rails("form_group") do %>
4
3
  <%= pb_rails("text_input", props: { placeholder: "Enter Artist Name" }) %>
5
4
  <%= pb_rails("select", props: {
@@ -17,8 +16,6 @@
17
16
  ]
18
17
  }) %>
19
18
  <% end %>
20
- <br>
21
- <br>
22
19
  <%= pb_rails("form_group") do %>
23
20
  <%= pb_rails("select", props: {
24
21
  blank_selection: "Phone",
@@ -32,4 +29,17 @@
32
29
  id: "phone"
33
30
  }) %>
34
31
  <% end %>
35
- </div>
32
+ <%= pb_rails("form_group") do %>
33
+ <%= pb_rails("phone_number_input", props: {
34
+ id: "phone2"
35
+ }) %>
36
+ <%= pb_rails("select", props: {
37
+ blank_selection: "Phone",
38
+ options: [
39
+ { value: "Cell" },
40
+ { value: "Work" },
41
+ { value: "Home" },
42
+ ]
43
+ }) %>
44
+ <% end %>
45
+ <% end %>
@@ -4,6 +4,7 @@ import FormGroup from '../_form_group'
4
4
  import PhoneNumberInput from '../../pb_phone_number_input/_phone_number_input'
5
5
  import Select from '../../pb_select/_select'
6
6
  import TextInput from '../../pb_text_input/_text_input'
7
+ import Flex from '../../pb_flex/_flex'
7
8
 
8
9
  const FormGroupSelect = (props) => {
9
10
  const options = [
@@ -25,7 +26,10 @@ const FormGroupSelect = (props) => {
25
26
  ]
26
27
 
27
28
  return (
28
- <div>
29
+ <Flex
30
+ orientation="column"
31
+ rowGap="md"
32
+ >
29
33
  <FormGroup>
30
34
  <TextInput
31
35
  placeholder="Enter Artist Name"
@@ -37,18 +41,29 @@ const FormGroupSelect = (props) => {
37
41
  {...props}
38
42
  />
39
43
  </FormGroup>
40
- <br />
41
- <br />
42
44
  <FormGroup>
43
45
  <Select
44
46
  blankSelection="Phone"
45
47
  options={phoneOptions}
46
- />
48
+ {...props}
49
+ />
47
50
  <PhoneNumberInput
48
51
  id='default'
52
+ {...props}
49
53
  />
50
54
  </FormGroup>
51
- </div>
55
+ <FormGroup>
56
+ <PhoneNumberInput
57
+ id='default-2'
58
+ {...props}
59
+ />
60
+ <Select
61
+ blankSelection="Phone"
62
+ options={phoneOptions}
63
+ {...props}
64
+ />
65
+ </FormGroup>
66
+ </Flex>
52
67
  )
53
68
  }
54
69
 
@@ -210,10 +210,78 @@ $bracket-border-width: 4px;
210
210
  border-right: $bracket-border-width solid $border_light;
211
211
  }
212
212
 
213
+ .polygon_node {
214
+ position: absolute;
215
+ top: calc(50% - 5px);
216
+ right: -10px;
217
+
218
+ width: 0;
219
+ height: 0;
220
+ border-top: 5px solid transparent;
221
+ border-bottom: 5px solid transparent;
222
+ border-left: 10px solid $border_light;
223
+ }
224
+
213
225
  .layout_round_label {
214
226
  display: none;
215
227
  }
216
228
 
229
+ .layout_participant,
230
+ .layout_participant_winner,
231
+ .layout_participant_self,
232
+ .layout_participant_winner_self,
233
+ .layout_participant_winner_self_last {
234
+ height: 60px;
235
+ }
236
+
237
+ .layout_tbd {
238
+ height: 140px;
239
+ display: flex;
240
+ flex-direction: column;
241
+ justify-content: center;
242
+ }
243
+
244
+ .layout_participant_winner,
245
+ .layout_participant_self,
246
+ .layout_participant_winner_self,
247
+ .layout_participant_winner_self_last {
248
+ position: relative;
249
+
250
+ &::after {
251
+ content: "";
252
+ position: absolute;
253
+ top: 0;
254
+ width: 4px;
255
+ height: 100%;
256
+ }
257
+ }
258
+
259
+ .layout_participant_winner::after {
260
+ right: 0;
261
+ background: $product_6_highlight;
262
+ }
263
+
264
+ .layout_participant_self::after {
265
+ left: 0;
266
+ background: $category_1;
267
+ }
268
+
269
+ .layout_participant_winner_self::after {
270
+ right: 0;
271
+ background: $product_6_highlight;
272
+ }
273
+
274
+ .layout_participant_winner_self_last::after {
275
+ left: 0;
276
+ background: $category_1;
277
+ }
278
+
279
+ .game_separator {
280
+ &::before, &::after {
281
+ height: 2px;
282
+ }
283
+ }
284
+
217
285
  @media (max-width: $screen-md-max) {
218
286
  flex-direction: column;
219
287
  .layout_round_label {
@@ -221,7 +289,8 @@ $bracket-border-width: 4px;
221
289
  }
222
290
  .layout_round .layout_game::after,
223
291
  .connector_container,
224
- .half_box {
292
+ .half_box,
293
+ .polygon_node {
225
294
  display: none !important;
226
295
  }
227
296
  }