playbook_ui 14.17.0.pre.alpha.PBNTR766tablenestedcollapsiblerowsborderdoubling7256 → 14.17.0.pre.alpha.PBNTR920emojipickerpoc7130

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 (76) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_background/_background.scss +0 -26
  3. data/app/pb_kits/playbook/pb_background/_background.tsx +3 -5
  4. data/app/pb_kits/playbook/pb_background/background.test.js +0 -5
  5. data/app/pb_kits/playbook/pb_background/docs/example.yml +0 -1
  6. data/app/pb_kits/playbook/pb_background/docs/index.js +0 -1
  7. data/app/pb_kits/playbook/pb_draggable/_draggable.scss +20 -43
  8. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.jsx +105 -102
  9. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.md +3 -3
  10. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.jsx +48 -50
  11. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.md +1 -1
  12. data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_table.jsx → _draggable_with_table_react.jsx} +1 -1
  13. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.md +1 -3
  14. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +6 -9
  15. data/app/pb_kits/playbook/pb_draggable/docs/index.js +1 -4
  16. data/app/pb_kits/playbook/pb_draggable/draggable.test.jsx +0 -68
  17. data/app/pb_kits/playbook/pb_draggable/subcomponents/DraggableContainer.tsx +3 -4
  18. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +2 -18
  19. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb +5 -15
  20. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +5 -20
  21. data/app/pb_kits/playbook/pb_layout/_layout.scss +1 -70
  22. data/app/pb_kits/playbook/pb_layout/_layout.tsx +2 -29
  23. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx +118 -322
  24. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md +1 -1
  25. data/app/pb_kits/playbook/pb_layout/subcomponents/_game.tsx +43 -74
  26. data/app/pb_kits/playbook/pb_layout/subcomponents/_round.tsx +4 -21
  27. data/app/pb_kits/playbook/pb_overlay/_overlay.scss +22 -49
  28. data/app/pb_kits/playbook/pb_overlay/_overlay.tsx +4 -15
  29. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md +7 -1
  30. data/app/pb_kits/playbook/pb_overlay/docs/example.yml +0 -3
  31. data/app/pb_kits/playbook/pb_overlay/docs/index.js +0 -3
  32. data/app/pb_kits/playbook/pb_overlay/overlay.test.jsx +1 -39
  33. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md +1 -1
  34. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -2
  35. data/app/pb_kits/playbook/pb_table/styles/_collapsible.scss +0 -84
  36. data/app/pb_kits/playbook/pb_table/styles/_headers.scss +7 -19
  37. data/app/pb_kits/playbook/pb_table/table.rb +1 -13
  38. data/app/pb_kits/playbook/pb_table/table_header.rb +1 -13
  39. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_emoji_picker.jsx +371 -0
  40. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +1 -0
  41. data/app/pb_kits/playbook/pb_text_input/docs/index.js +1 -0
  42. data/dist/chunks/{_typeahead-BY6AFq1l.js → _typeahead-7W5Ha5Td.js} +2 -2
  43. data/dist/chunks/{_weekday_stacked-DvC4wBNS.js → _weekday_stacked-DSKatW3m.js} +2 -2
  44. data/dist/chunks/vendor.js +1 -1
  45. data/dist/playbook-doc.js +1 -1
  46. data/dist/playbook-rails-react-bindings.js +1 -1
  47. data/dist/playbook-rails.js +1 -1
  48. data/dist/playbook.css +1 -1
  49. data/lib/playbook/version.rb +1 -1
  50. metadata +17 -31
  51. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx +0 -35
  52. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.md +0 -1
  53. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.jsx +0 -110
  54. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.md +0 -5
  55. data/app/pb_kits/playbook/pb_layout/subcomponents/_participant.tsx +0 -79
  56. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx +0 -63
  57. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md +0 -3
  58. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx +0 -39
  59. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md +0 -1
  60. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx +0 -40
  61. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md +0 -5
  62. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb +0 -34
  63. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md +0 -1
  64. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb +0 -36
  65. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md +0 -1
  66. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_default_react.md → _draggable_default.md} +0 -0
  67. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_default.html.erb → _draggable_default_rails.html.erb} +0 -0
  68. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_multiple_containers_react.md → _draggable_multiple_containers.md} +0 -0
  69. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_multiple_containers.html.erb → _draggable_multiple_containers_rails.html.erb} +0 -0
  70. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_cards_react.md → _draggable_with_cards.md} +0 -0
  71. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_cards.html.erb → _draggable_with_cards_rails.html.erb} +0 -0
  72. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_list_react.md → _draggable_with_list.md} +0 -0
  73. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_list.html.erb → _draggable_with_list_rails.html.erb} +0 -0
  74. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_selectable_list_react.md → _draggable_with_selectable_list.md} +0 -0
  75. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_selectable_list.html.erb → _draggable_with_selectable_list_rails.html.erb} +0 -0
  76. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_table_rails.md → _draggable_with_table.md} +0 -0
@@ -25,33 +25,16 @@ type LayoutRoundProps = {
25
25
  children: React.ReactNode[] | React.ReactNode,
26
26
  className?: string,
27
27
  numberOfRounds: number,
28
- lastRoundWithSelf: number,
29
28
  } & GlobalProps
30
29
 
31
30
  export const Round = (props: LayoutRoundProps) => {
32
- const { children, className, numberOfRounds, lastRoundWithSelf } = props
31
+ const { children, className, numberOfRounds } = props
33
32
  const dynamicInlineProps = globalInlineProps(props)
34
33
  const numberOfChildren = Array.isArray(children) ? children.length : 0
35
34
 
36
- const childrenWithProps = Array.isArray(children)
37
- ? children.map((child, index) =>
38
- React.isValidElement(child)
39
- ? React.cloneElement(child, {
40
- numberOfRounds,
41
- numberOfGames: numberOfChildren,
42
- isOdd: index % 2 === 0,
43
- key: `child_${index}`,
44
- lastRoundWithSelf
45
- })
46
- : child
47
- )
48
- : React.isValidElement(children)
49
- ? React.cloneElement(children, {
50
- numberOfRounds,
51
- numberOfGames: numberOfChildren,
52
- lastRoundWithSelf
53
- })
54
- : children
35
+ const childrenWithProps = Array.isArray(children) ? children.map((child, index) =>
36
+ React.isValidElement(child) ? React.cloneElement(child, { numberOfRounds, numberOfGames: numberOfChildren, isOdd: index % 2 === 0, key: `child_${index}` }) : child
37
+ ) : children
55
38
 
56
39
  const rightConnectors = Array.from({ length: numberOfChildren / 2 }, (_, index) => (
57
40
  <div
@@ -18,39 +18,34 @@ $overlay_colors: (
18
18
  card_dark: $card_dark,
19
19
  bg_dark: $bg_dark,
20
20
  bg_light: $bg_light,
21
- black: $black,
22
- white: $white,
23
- success: $success,
24
- error: $error
25
21
  );
26
22
 
27
- @mixin overlay($direction, $size, $color, $apply_gradient: true) {
23
+ @mixin overlay($direction, $size, $color) {
28
24
  display: block;
29
25
  position: absolute;
30
26
  pointer-events: none;
31
27
  z-index: 1;
32
28
  content: "";
33
29
 
34
- @if $apply_gradient {
35
- @if $direction == "left" {
36
- inset: 0 auto 0 0;
37
- background: linear-gradient(to right, $color 0%, transparent 100%);
38
- width: $size;
39
- } @else if $direction == "right" {
40
- inset: 0 0 0 auto;
41
- background: linear-gradient(to left, $color 0%, transparent 100%);
42
- width: $size;
43
- } @else if $direction == "top" {
44
- inset: 0 0 auto 0;
45
- background: linear-gradient(to bottom, $color 0%, transparent 100%);
46
- height: $size;
47
- } @else if $direction == "bottom" {
48
- inset: auto 0 0 0;
49
- background: linear-gradient(to top, $color 0%, transparent 100%);
50
- height: $size;
51
- }
52
- } @else {
53
- background: $color;
30
+ @if $direction == "left" {
31
+ inset: 0 auto 0 0;
32
+ background: linear-gradient(to right, $color 0%, transparent 100%);
33
+ width: $size;
34
+ }
35
+ @if $direction == "right" {
36
+ inset: 0 0 0 auto;
37
+ background: linear-gradient(to left, $color 0%, transparent 100%);
38
+ width: $size;
39
+ }
40
+ @if $direction == "top" {
41
+ inset: 0 0 auto 0;
42
+ background: linear-gradient(to bottom, $color 0%, transparent 100%);
43
+ height: $size;
44
+ }
45
+ @if $direction == "bottom" {
46
+ inset: auto 0 0 0;
47
+ background: linear-gradient(to top, $color 0%, transparent 100%);
48
+ height: $size;
54
49
  }
55
50
  }
56
51
 
@@ -74,7 +69,7 @@ $overlay_colors: (
74
69
  pointer-events: none;
75
70
  z-index: 1;
76
71
  }
77
-
72
+
78
73
  &.overlay-hide-scrollbar {
79
74
  & [class*="overflow_x_auto"],
80
75
  & [class*="overflow_y_auto"],
@@ -82,31 +77,9 @@ $overlay_colors: (
82
77
  &::-webkit-scrollbar {
83
78
  display: none !important;
84
79
  }
85
-
80
+
86
81
  -ms-overflow-style: none !important;
87
82
  scrollbar-width: none !important;
88
83
  }
89
84
  }
90
-
91
- &.no_gradient {
92
- @each $color_name, $color in $overlay_colors {
93
- .overlay_#{$color_name} {
94
- @each $name, $size in $overlay_sizes {
95
- @each $position in $overlay_positions {
96
- &_#{$position}_#{$name} {
97
- @include overlay($position, $size, $color, false);
98
- }
99
- }
100
- }
101
- }
102
- }
103
-
104
- @each $key, $value in $opacity {
105
- &.#{$key} {
106
- [class^=overlay] {
107
- opacity: $value;
108
- }
109
- }
110
- }
111
- }
112
85
  }
@@ -7,7 +7,7 @@ import OverlayToken from './subcomponents/_overlay_token'
7
7
 
8
8
  export type OverlayChildrenProps = {
9
9
  children: React.ReactNode[] | React.ReactNode,
10
- color: "card_light" | "bg_light" | "card_dark" | "bg_dark" | "black" | "white" | "success" | "error",
10
+ color: "card_light" | "bg_light" | "card_dark" | "bg_dark",
11
11
  dynamic?: boolean,
12
12
  position: string,
13
13
  size: string,
@@ -18,16 +18,14 @@ type OverlayProps = {
18
18
  aria?: { [key: string]: string },
19
19
  className?: string,
20
20
  children: React.ReactNode[] | React.ReactNode,
21
- color: "card_light" | "bg_light" | "card_dark" | "bg_dark" | "black" | "white" | "success" | "error",
21
+ color: "card_light" | "bg_light" | "card_dark" | "bg_dark",
22
22
  data?: { [key: string]: string },
23
23
  dynamic?: false,
24
- gradient?: boolean,
25
24
  htmlOptions?: { [key: string]: string | number | boolean | (() => void) },
26
25
  id?: string,
27
26
  layout: { [key: string]: string },
28
- opacity: 'opacity_1' | 'opacity_2' | 'opacity_3' | 'opacity_4' | 'opacity_5' | 'opacity_6' | 'opacity_7' | 'opacity_8' | 'opacity_9' | 'opacity_10',
29
27
  scrollBarNone?: boolean,
30
-
28
+
31
29
  }
32
30
 
33
31
  const Overlay = (props: OverlayProps) => {
@@ -38,24 +36,15 @@ const Overlay = (props: OverlayProps) => {
38
36
  color = "card_light",
39
37
  data = {},
40
38
  dynamic = false,
41
- gradient = true,
42
39
  htmlOptions = {},
43
40
  id,
44
41
  layout = { "bottom": "full" },
45
- opacity,
46
42
  scrollBarNone = false,
47
43
  } = props
48
44
 
49
45
  const ariaProps = buildAriaProps(aria)
50
46
  const dataProps = buildDataProps(data)
51
- const classes = classnames(
52
- buildCss('pb_overlay'),
53
- { 'overlay-hide-scrollbar': scrollBarNone },
54
- globalProps(props),
55
- gradient === false ? 'no_gradient' : '',
56
- opacity,
57
- className
58
- )
47
+ const classes = classnames(buildCss('pb_overlay'), { 'overlay-hide-scrollbar': scrollBarNone }, globalProps(props), className )
59
48
  const htmlProps = buildHtmlProps(htmlOptions)
60
49
  const dynamicInlineProps = globalInlineProps(props)
61
50
 
@@ -1 +1,7 @@
1
- Overlays help shift focus by dimming or masking background content. This kit supports gradient and solid color modes, with adjustable opacity to suit the context.
1
+ Overlays optionally accept a `color`, which sets the "start" (opaque) color of a gradient mask. Because this overlay is intended to reveal underlying content, the "end" color is fixed to transparent.
2
+
3
+ The optional `layout` prop accepts the `position` and `size` of the overlay as a key:value pair.
4
+
5
+ The `position` key accepts `bottom` (default), `top`, `y` (for both top and bottom) `right`, `left`, or `x` (for both left and right), which sets the side(s) where the `color` overlay starts. The direction of the overlay is always toward the opposite side of the position. For example, the default position of `bottom` starts the overlay on the bottom edge of your container and extends it toward the opposite side: the top.
6
+
7
+ The `size` value is `full` (100%) by default, but accepts our [spacing tokens](https://playbook.powerapp.cloud/visual_guidelines/spacing) or a percentage value as a string, and literally translates to how much of the container is covered by the overlay(s).
@@ -1,9 +1,6 @@
1
1
  examples:
2
2
  react:
3
3
  - overlay_default: Default
4
- - overlay_gradient_opacity: Gradient & Opacity
5
- - overlay_color: Color
6
- - overlay_layout: Layout
7
4
  - overlay_multi_directional: Multi-directional
8
5
  - overlay_vertical_dynamic_multi_directional: Vertical Dynamic Multi-directional
9
6
  - overlay_toggle: Toggle
@@ -1,7 +1,4 @@
1
1
  export { default as OverlayDefault } from './_overlay_default.jsx'
2
- export { default as OverlayGradientOpacity } from './_overlay_gradient_opacity.jsx'
3
- export { default as OverlayColor } from './_overlay_color.jsx'
4
- export { default as OverlayLayout } from './_overlay_layout.jsx'
5
2
  export { default as OverlayMultiDirectional } from './_overlay_multi_directional.jsx'
6
3
  export { default as OverlayToggle } from './_overlay_toggle.jsx'
7
4
  export { default as OverlayVerticalDynamicMultiDirectional } from './_overlay_vertical_dynamic_multi_directional.jsx'
@@ -71,46 +71,8 @@ test('should add overlay-hide-scrollbar class when scrollBarNone is true', () =>
71
71
  data: { testid: testId },
72
72
  scrollBarNone: true
73
73
  }
74
-
74
+
75
75
  render(<Overlay {...props} />)
76
76
  const kit = screen.getByTestId(testId)
77
77
  expect(kit).toHaveClass('overlay-hide-scrollbar')
78
78
  })
79
-
80
- test('should have no_gradient class if gradient prop is false', () => {
81
- const props = {
82
- children,
83
- data: { testid: testId },
84
- id: testId,
85
- gradient: false
86
- }
87
-
88
- render(<Overlay {...props} />)
89
- const kit = screen.getByTestId(testId)
90
- expect(kit).toHaveClass('no_gradient')
91
- })
92
-
93
- test('should not have no_gradient class if gradient is not passed', () => {
94
- const props = {
95
- children,
96
- data: { testid: testId },
97
- id: testId
98
- }
99
-
100
- render(<Overlay {...props} />)
101
- const kit = screen.getByTestId(testId)
102
- expect(kit).not.toHaveClass('no_gradient')
103
- })
104
-
105
- test('should have the correct opacity class if opacity prop is passed', () => {
106
- const props = {
107
- children,
108
- data: { testid: testId },
109
- id: testId,
110
- opacity: "opacity_5"
111
- }
112
-
113
- render(<Overlay {...props} />)
114
- const kit = screen.getByTestId(testId)
115
- expect(kit).toHaveClass('opacity_5')
116
- })
@@ -1 +1 @@
1
- Further customize your header by using the [table with background kit](https://playbook.powerapp.cloud/kits/table/react#table-with-background-kit) logic to give your table header a custom background color. Use the `headerStyle="floating"` prop to visually nest the borderless table within a card or collapsible with a matching background color (the `backgroundColor` passed to Background kit should match the `background` or `backgroundColor` for the element in which it is nested).
1
+ Further customize your header by using the [table with background kit](https://playbook.powerapp.cloud/kits/table/react#table-with-background-kit) logic to give your table header a custom background color. Use the `headerStyle="floating"` prop to visually nest the borderless table within a card or collapsible with a matching background color (the `backgroundColor` passed to Background kit should match the `backgroundColor` for the element in which it is nested).
@@ -37,8 +37,6 @@ examples:
37
37
  - table_with_collapsible_with_nested_table_rails: Table with Collapsible with Nested Table
38
38
  - table_with_clickable_rows: Table with Clickable Rows
39
39
  - table_with_selectable_rows: Table with Selectable Rows
40
- - table_with_header_style_borderless: Header Style Borderless
41
- - table_with_header_style_floating: Header Style Floating
42
40
 
43
41
  react:
44
42
  - table_sm: Small
@@ -1,5 +1,4 @@
1
1
  @import "../../tokens/colors";
2
- @import "../../tokens/screen_sizes";
3
2
 
4
3
  .table_collapsible_side_highlight {
5
4
  border-left: 4px solid $primary;
@@ -49,87 +48,4 @@
49
48
  .border-active {
50
49
  border-bottom: 1px;
51
50
  }
52
-
53
- // Removing borders from nested collapsible tables and table rows to prevent visual border doubling
54
- &.table-sm.table-collapse-sm,
55
- &.table-md.table-collapse-sm,
56
- &.table-lg.table-collapse-sm {
57
- .pb_collapsible_content_kit {
58
- .pb_table {
59
- @media only screen and (min-width: $screen-xs-max) {
60
- th {
61
- border-left: none;
62
- border-right: none;
63
- border-top: none;
64
- }
65
- tr td:first-child {
66
- border-left: none;
67
- }
68
- tr td:last-child {
69
- border-right: none;
70
- }
71
- tr:first-child td {
72
- border-top: none;
73
- }
74
- tr:last-child td {
75
- border-bottom: none;
76
- }
77
- }
78
- }
79
- }
80
- }
81
- &.table-sm.table-collapse-md,
82
- &.table-md.table-collapse-md,
83
- &.table-lg.table-collapse-md {
84
- .pb_collapsible_content_kit {
85
- .pb_table {
86
- @media only screen and (min-width: $screen-lg-min) {
87
- th {
88
- border-left: none;
89
- border-right: none;
90
- border-top: none;
91
- }
92
- tr td:first-child {
93
- border-left: none;
94
- }
95
- tr td:last-child {
96
- border-right: none;
97
- }
98
- tr:first-child td {
99
- border-top: none;
100
- }
101
- tr:last-child td {
102
- border-bottom: none;
103
- }
104
- }
105
- }
106
- }
107
- }
108
- &.table-sm.table-collapse-lg,
109
- &.table-md.table-collapse-lg,
110
- &.table-lg.table-collapse-lg {
111
- .pb_collapsible_content_kit {
112
- .pb_table {
113
- @media only screen and (min-width: $screen-xl-min) {
114
- th {
115
- border-left: none;
116
- border-right: none;
117
- border-top: none;
118
- }
119
- tr td:first-child {
120
- border-left: none;
121
- }
122
- tr td:last-child {
123
- border-right: none;
124
- }
125
- tr:first-child td {
126
- border-top: none;
127
- }
128
- tr:last-child td {
129
- border-bottom: none;
130
- }
131
- }
132
- }
133
- }
134
- }
135
51
  }
@@ -6,20 +6,8 @@
6
6
  &.table-lg {
7
7
  thead, .pb_table_thead {
8
8
  tr, .pb_table_tr {
9
- th:not(:has(
10
- [class*="pb_body_kit"],
11
- [class*="pb_detail_kit"],
12
- [class*="pb_title_kit"]
13
- )),
14
- .pb_table_th:not(:has(
15
- [class*="pb_body_kit"],
16
- [class*="pb_detail_kit"],
17
- [class*="pb_title_kit"]
18
- )) {
19
- @include caption;
20
- }
21
-
22
9
  th, .pb_table_th {
10
+ @include caption;
23
11
  border-bottom: 1px solid $border_light;
24
12
  }
25
13
  }
@@ -95,10 +83,10 @@
95
83
 
96
84
  // flatten out corners for floating headerstyle variant to avoid small triangle of white/empty space
97
85
  .header-floating > thead > tr:first-child > th:first-child,
98
- .header-floating > .pb_table_thead > .pb_table_tr:first-child > .pb_table_th:first-child {
99
- border-top-left-radius: 0 !important;
100
- }
101
- .header-floating > thead > tr:first-child > th:last-child,
102
- .header-floating > .pb_table_thead > .pb_table_tr:first-child > .pb_table_th:last-child {
103
- border-top-right-radius: 0 !important;
86
+ .header-floating > .pb_table_thead > .pb_table_tr:first-child > .pb_table_th:first-child {
87
+ border-top-left-radius: 0 !important;
88
+ }
89
+ .header-floating > thead > tr:first-child > th:last-child,
90
+ .header-floating > .pb_table_thead > .pb_table_tr:first-child > .pb_table_th:last-child {
91
+ border-top-right-radius: 0 !important;
104
92
  }
@@ -37,16 +37,13 @@ module Playbook
37
37
  prop :outer_padding, type: Playbook::Props::Enum,
38
38
  values: ["none", "xxs", "xs", "sm", "md", "lg", "xl", nil],
39
39
  default: nil
40
- prop :header_style, type: Playbook::Props::Enum,
41
- values: %w[default borderless floating],
42
- default: "default"
43
40
 
44
41
  def classname
45
42
  generate_classname(
46
43
  "pb_table", "table-#{size}", single_line_class, dark_class,
47
44
  disable_hover_class, container_class, data_table_class, sticky_class, sticky_left_column_class,
48
45
  sticky_right_column_class, collapse_class, vertical_border_class, striped_class, outer_padding_class,
49
- "table-responsive-#{responsive}", header_style_class, separator: " "
46
+ "table-responsive-#{responsive}", separator: " "
50
47
  )
51
48
  end
52
49
 
@@ -126,15 +123,6 @@ module Playbook
126
123
  outer_padding.present? ? "outer_padding_#{space_css_name}#{outer_padding}" : nil
127
124
  end
128
125
  end
129
-
130
- def header_style_class
131
- case header_style
132
- when "borderless"
133
- "header-borderless"
134
- when "floating"
135
- "header-floating"
136
- end
137
- end
138
126
  end
139
127
  end
140
128
  end
@@ -26,12 +26,9 @@ module Playbook
26
26
  prop :tag, type: Playbook::Props::Enum,
27
27
  values: %w[table div],
28
28
  default: "table"
29
- prop :header_style, type: Playbook::Props::Enum,
30
- values: %w[default borderless floating],
31
- default: "default"
32
29
 
33
30
  def classname
34
- generate_classname("pb_table_header_kit", align_class, header_style_class) + tag_class
31
+ generate_classname("pb_table_header_kit", align_class) + tag_class
35
32
  end
36
33
 
37
34
  def tag_class
@@ -109,15 +106,6 @@ module Playbook
109
106
  end
110
107
  active_item
111
108
  end
112
-
113
- def header_style_class
114
- case header_style
115
- when "borderless"
116
- "header-borderless"
117
- when "floating"
118
- "header-floating"
119
- end
120
- end
121
109
  end
122
110
  end
123
111
  end