playbook_ui 13.16.0.pre.alpha.PLAY12002127 → 13.16.0.pre.alpha.fonttest1972

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +12 -14
  3. data/app/pb_kits/playbook/index.js +1 -2
  4. data/app/pb_kits/playbook/pb_flex/_flex.tsx +1 -1
  5. data/app/pb_kits/playbook/pb_label_value/_label_value.tsx +1 -1
  6. data/app/pb_kits/playbook/pb_layout/_layout.tsx +1 -2
  7. data/app/pb_kits/playbook/pb_layout/layout.test.js +4 -8
  8. data/app/pb_kits/playbook/pb_legend/_legend.tsx +6 -6
  9. data/app/pb_kits/playbook/pb_lightbox/Carousel/Slides.tsx +4 -4
  10. data/app/pb_kits/playbook/pb_lightbox/Carousel/Thumbnail.tsx +1 -1
  11. data/app/pb_kits/playbook/pb_lightbox/Carousel/index.tsx +3 -3
  12. data/app/pb_kits/playbook/pb_lightbox/Header/_lightbox_header.tsx +22 -30
  13. data/app/pb_kits/playbook/pb_lightbox/_lightbox.tsx +5 -5
  14. data/app/pb_kits/playbook/pb_line_graph/_line_graph.tsx +4 -4
  15. data/app/pb_kits/playbook/pb_list/_list.tsx +15 -15
  16. data/app/pb_kits/playbook/pb_list/_list_item.tsx +1 -1
  17. data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.tsx +9 -9
  18. data/app/pb_kits/playbook/pb_map/_map.tsx +8 -8
  19. data/app/pb_kits/playbook/pb_map/_map_controls.tsx +7 -15
  20. data/app/pb_kits/playbook/pb_map/_map_custom_button.tsx +2 -4
  21. data/app/pb_kits/playbook/pb_message/_message.tsx +1 -1
  22. data/app/pb_kits/playbook/pb_message/_message_mention.tsx +6 -6
  23. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +42 -46
  24. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.tsx +20 -20
  25. data/app/pb_kits/playbook/pb_nav/_item.tsx +47 -56
  26. data/app/pb_kits/playbook/pb_nav/_nav.tsx +15 -15
  27. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.html.erb +7 -5
  28. data/app/pb_kits/playbook/pb_popover/_popover.tsx +14 -12
  29. data/app/pb_kits/playbook/pb_popover/docs/example.yml +1 -2
  30. data/app/pb_kits/playbook/pb_popover/docs/index.js +0 -1
  31. data/app/pb_kits/playbook/pb_table/_table.tsx +29 -29
  32. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +1 -1
  33. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_highlight.jsx +2 -4
  34. data/app/pb_kits/playbook/playbook-doc.js +0 -2
  35. data/app/pb_kits/playbook/utilities/globalProps.ts +1 -1
  36. data/dist/menu.yml +1 -4
  37. data/dist/playbook-rails.js +6 -14
  38. data/lib/playbook/version.rb +1 -1
  39. metadata +2 -46
  40. data/app/pb_kits/playbook/pb_advanced_table/Components/CollapsibleTrail.tsx +0 -30
  41. data/app/pb_kits/playbook/pb_advanced_table/Components/CustomCell.tsx +0 -62
  42. data/app/pb_kits/playbook/pb_advanced_table/Components/LoadingCell.tsx +0 -5
  43. data/app/pb_kits/playbook/pb_advanced_table/Components/SortIconButton.tsx +0 -30
  44. data/app/pb_kits/playbook/pb_advanced_table/Components/SubRowHeaderRow.tsx +0 -61
  45. data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +0 -127
  46. data/app/pb_kits/playbook/pb_advanced_table/Components/ToggleIconButton.tsx +0 -28
  47. data/app/pb_kits/playbook/pb_advanced_table/Context/AdvancedTableContext.tsx +0 -5
  48. data/app/pb_kits/playbook/pb_advanced_table/README.md +0 -288
  49. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableBody.tsx +0 -95
  50. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableHeader.tsx +0 -51
  51. data/app/pb_kits/playbook/pb_advanced_table/Utilities/BrowserCheck.tsx +0 -5
  52. data/app/pb_kits/playbook/pb_advanced_table/Utilities/ExpansionControlHelpers.tsx +0 -63
  53. data/app/pb_kits/playbook/pb_advanced_table/Utilities/IconHelpers.tsx +0 -8
  54. data/app/pb_kits/playbook/pb_advanced_table/Utilities/types.ts +0 -8
  55. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +0 -98
  56. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +0 -246
  57. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +0 -56
  58. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx +0 -52
  59. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.md +0 -1
  60. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx +0 -49
  61. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.md +0 -18
  62. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expanded_control.jsx +0 -59
  63. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expanded_control.md +0 -18
  64. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.jsx +0 -60
  65. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.md +0 -3
  66. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.jsx +0 -52
  67. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.md +0 -5
  68. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.jsx +0 -63
  69. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.md +0 -3
  70. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx +0 -57
  71. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.md +0 -3
  72. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_options.jsx +0 -61
  73. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_options.md +0 -3
  74. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +0 -55
  75. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.md +0 -1
  76. data/app/pb_kits/playbook/pb_advanced_table/docs/_description.md +0 -1
  77. data/app/pb_kits/playbook/pb_advanced_table/docs/_mock_data.js +0 -278
  78. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -12
  79. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +0 -9
  80. data/app/pb_kits/playbook/pb_advanced_table/scss_partials/_loading.scss +0 -72
  81. data/app/pb_kits/playbook/pb_advanced_table/scss_partials/_pseudo_states.scss +0 -12
  82. data/app/pb_kits/playbook/pb_popover/docs/_popover_actionable_content.html.erb +0 -30
  83. data/app/pb_kits/playbook/pb_popover/docs/_popover_actionable_content.jsx +0 -57
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10f6ad667414f5191e6eaabc5603c5d5087c13c16ec0a91da03ee49c5ebebe1d
4
- data.tar.gz: b1a702d5294e18fa20c424c7aa4490c8d022e39c1f8ec70e7d91ce9b38887a96
3
+ metadata.gz: 7782df73f96c18ed21e4df25313508803ef68fd2619d0a2fc6c847a2fdc49da4
4
+ data.tar.gz: e5896ac58aefa1134be3591d23e988be1fc2d5e9deb7ecf1c7fcbb09f19fea32
5
5
  SHA512:
6
- metadata.gz: 9deeaea331197080119774f32c135bdd8513ffac1cfd8f92606f515ebc9bfbf69c766a2883f5e9a3cb152df1c973029b7c56ba3c7fa43ebcc4ddd815dca550a3
7
- data.tar.gz: b4cd197eb4b86f1b0a60e07f702e4761c08caf130b7112531944875e40d5c7166b09bba63ef43bbf53e1445c308fd5717953abf270f2b1bac88f3ebe5fc2e766
6
+ metadata.gz: ecc2162d89045d78b3ffbd89bc0f246b27da1d09aa5da04541d59638dc0869fd1dc8100bad2d3100fad4177b85602eee8cb750d4f4d1de8859c74613abac0ee8
7
+ data.tar.gz: eda05eb35ed90b8bb3edd30d5141e9200e4621dcbd5a79a8d6102023d3597f68ffebb84d172475860a1027b0b6c7dfafa0a83ef8fa86b4e4e1ce7ef4d43c6918
@@ -1,17 +1,16 @@
1
-
2
-
3
- @import 'pb_advanced_table/advanced_table';
4
- @import 'pb_avatar/avatar';
5
- @import 'pb_avatar_action_button/avatar_action_button';
6
1
  @import 'pb_background/background';
7
- @import 'pb_badge/badge';
8
- @import 'pb_bar_graph/bar_graph';
9
2
  @import 'pb_body/body';
10
3
  @import 'pb_bread_crumbs/bread_crumbs';
11
4
  @import 'pb_button/button';
12
5
  @import 'pb_button_toolbar/button_toolbar';
13
6
  @import 'pb_caption/caption';
14
7
  @import 'pb_card/card';
8
+ @import 'pb_detail/detail';
9
+ @import 'pb_title/title';
10
+ @import 'pb_avatar/avatar';
11
+ @import 'pb_avatar_action_button/avatar_action_button';
12
+ @import 'pb_badge/badge';
13
+ @import 'pb_bar_graph/bar_graph';
15
14
  @import 'pb_checkbox/checkbox';
16
15
  @import 'pb_circle_chart/circle_chart';
17
16
  @import 'pb_circle_icon_button/circle_icon_button';
@@ -21,22 +20,21 @@
21
20
  @import 'pb_dashboard_value/dashboard_value';
22
21
  @import 'pb_date/date';
23
22
  @import 'pb_date_picker/date_picker';
23
+ @import 'pb_date_time/date_time';
24
24
  @import 'pb_date_range_inline/date_range_inline';
25
25
  @import 'pb_date_range_stacked/date_range_stacked';
26
26
  @import 'pb_date_stacked/date_stacked';
27
- @import 'pb_date_time/date_time';
28
27
  @import 'pb_date_time_stacked/date_time_stacked';
29
28
  @import 'pb_date_year_stacked/date_year_stacked';
30
- @import 'pb_detail/detail';
31
29
  @import 'pb_dialog/dialog';
32
30
  @import 'pb_distribution_bar/distribution_bar';
33
31
  @import 'pb_file_upload/file_upload';
34
32
  @import 'pb_filter/filter';
35
33
  @import 'pb_fixed_confirmation_toast/fixed_confirmation_toast';
36
- @import 'pb_flex/flex';
37
34
  @import 'pb_form/form';
38
35
  @import 'pb_form_group/form_group';
39
36
  @import 'pb_form_pill/form_pill';
37
+ @import 'pb_flex/flex';
40
38
  @import 'pb_gauge/gauge';
41
39
  @import 'pb_hashtag/hashtag';
42
40
  @import 'pb_highlight/highlight';
@@ -57,7 +55,6 @@
57
55
  @import 'pb_map/map';
58
56
  @import 'pb_map/pb_map_button_mixin';
59
57
  @import 'pb_message/message';
60
- @import 'pb_multi_level_select/multi_level_select';
61
58
  @import 'pb_multiple_users/multiple_users';
62
59
  @import 'pb_multiple_users_stacked/multiple_users_stacked';
63
60
  @import 'pb_nav/nav';
@@ -88,11 +85,9 @@
88
85
  @import 'pb_text_input/text_input';
89
86
  @import 'pb_textarea/textarea';
90
87
  @import 'pb_time/time';
91
- @import 'pb_time_range_inline/time_range_inline';
92
- @import 'pb_time_stacked/time_stacked';
93
88
  @import 'pb_timeline/timeline';
89
+ @import 'pb_time_range_inline/time_range_inline';
94
90
  @import 'pb_timestamp/timestamp';
95
- @import 'pb_title/title';
96
91
  @import 'pb_title_count/title_count';
97
92
  @import 'pb_title_detail/title_detail';
98
93
  @import 'pb_toggle/toggle';
@@ -101,6 +96,7 @@
101
96
  @import 'pb_typeahead/typeahead';
102
97
  @import 'pb_user/user';
103
98
  @import 'pb_user_badge/user_badge';
99
+ @import 'pb_time_stacked/time_stacked';
104
100
  @import 'pb_walkthrough/walkthrough';
105
101
  @import 'pb_weekday_stacked/weekday_stacked';
106
102
  @import './utilities/mixins';
@@ -119,3 +115,5 @@
119
115
  @import './utilities/text_align';
120
116
  @import './utilities/overflow';
121
117
  @import './utilities/truncate';
118
+
119
+ @import 'pb_multi_level_select/multi_level_select';
@@ -4,7 +4,6 @@ import 'lazysizes/plugins/attrchange/ls.attrchange'
4
4
  import 'lazysizes'
5
5
 
6
6
  // vvv React Component JSX Imports from the React Kits vvv
7
- export { default as AdvancedTable} from './pb_advanced_table/_advanced_table'
8
7
  export { default as Avatar } from './pb_avatar/_avatar'
9
8
  export { default as AvatarActionButton } from './pb_avatar_action_button/_avatar_action_button'
10
9
  export { default as Background } from './pb_background/_background'
@@ -60,8 +59,8 @@ export { default as LineGraph } from './pb_line_graph/_line_graph'
60
59
  export { default as List } from './pb_list/_list'
61
60
  export { default as ListItem } from './pb_list/_list_item'
62
61
  export { default as LoadingInline } from './pb_loading_inline/_loading_inline'
63
- export { default as MapCustomButton } from './pb_map/_map_custom_button'
64
62
  export { default as Map} from './pb_map/_map'
63
+ export { default as MapCustomButton } from './pb_map/_map_custom_button'
65
64
  export { default as Message } from './pb_message/_message'
66
65
  export { default as MultiLevelSelect} from './pb_multi_level_select/_multi_level_select'
67
66
  export { default as MultipleUsers } from './pb_multiple_users/_multiple_users'
@@ -10,7 +10,7 @@ type FlexProps = {
10
10
  data?: GenericObject,
11
11
  horizontal?: "left" | "center" | "right" | "stretch" | "none",
12
12
  justify?: "start" | "center" | "end" | "around" | "between" | "evenly" | "none",
13
- htmlOptions?: {[key: string]: string | number | boolean | (() => void) | ((arg?: unknown) => void)},
13
+ htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
14
14
  id?: string,
15
15
  inline?: boolean,
16
16
  orientation?: "row" | "column",
@@ -15,7 +15,7 @@ type LabelValueProps = {
15
15
  aria?: { [key: string]: string };
16
16
  className?: string;
17
17
  dark?: boolean;
18
- data?: Record<string, unknown>;
18
+ data?: object;
19
19
  date?: Date;
20
20
  htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
21
21
  id?: string;
@@ -10,7 +10,7 @@ type LayoutPropTypes = {
10
10
  className?: string,
11
11
  collapse?: "xs" | "sm" | "md" | "lg" | "xl",
12
12
  dark?: boolean,
13
- data?: Record<string, unknown>,
13
+ data?: object,
14
14
  full?: boolean,
15
15
  htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
16
16
  position?: "left" | "right",
@@ -168,7 +168,6 @@ const Layout = (props: LayoutPropTypes) => {
168
168
  layoutCss,
169
169
  layoutCollapseCss,
170
170
  className,
171
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
172
171
  //@ts-ignore
173
172
  globalProps(filteredProps)
174
173
  )}
@@ -16,8 +16,7 @@ test("render all color variants", () => {
16
16
  testValues.forEach((variant) => {
17
17
  const { getByTestId } = render(
18
18
  <LayoutTest data={{ testid: `test-${variant}` }}
19
- variant={variant}
20
- />
19
+ variant={variant} />
21
20
  )
22
21
  expect(getByTestId(`test-${variant}`)).toHaveClass(
23
22
  `pb_layout_kit_sidebar_size_md_left_${
@@ -34,8 +33,7 @@ test("render transparent class", () => {
34
33
 
35
34
  const { getByTestId } = render(
36
35
  <LayoutTest data={{ testid: `test-${id}` }}
37
- variant={id}
38
- />
36
+ variant={id} />
39
37
  )
40
38
  expect(getByTestId(`test-${id}`)).toHaveClass(
41
39
  `pb_layout_kit_sidebar_size_md_left_${id}`
@@ -49,8 +47,7 @@ test("render all sizes variants", () => {
49
47
  testValues.forEach((size) => {
50
48
  const { getByTestId } = render(
51
49
  <LayoutTest data={{ testid: `test-${size}` }}
52
- size={size}
53
- />
50
+ size={size} />
54
51
  )
55
52
  expect(getByTestId(`test-${size}`)).toHaveClass(
56
53
  `pb_layout_kit_sidebar_size_${size}_left_light`
@@ -87,8 +84,7 @@ test("render all layout variants", () => {
87
84
  testValues.forEach(({ layout, expected }) => {
88
85
  const { getByTestId } = render(
89
86
  <Layout data={{ testid: `test-${layout}` }}
90
- layout={layout}
91
- >
87
+ layout={layout}>
92
88
  <Layout.Body>
93
89
  <Card>{"Card content"}</Card>
94
90
  </Layout.Body>
@@ -12,7 +12,7 @@ type LegendProps = {
12
12
  className?: string,
13
13
  color?: string,
14
14
  dark?: boolean,
15
- data?: Record<string, unknown>,
15
+ data?: object,
16
16
  htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
17
17
  id?: string,
18
18
  prefixText?: string,
@@ -64,11 +64,11 @@ const Legend = (props: LegendProps) => {
64
64
  {
65
65
  prefixText && (
66
66
  <Title
67
- dark={dark}
68
- size={4}
69
- tag="span"
70
- text={` ${prefixText} `}
71
- />
67
+ dark={dark}
68
+ size={4}
69
+ tag="span"
70
+ text={` ${prefixText} `}
71
+ />
72
72
  )
73
73
  }
74
74
  {` ${text} `}
@@ -56,15 +56,15 @@ const arrowRight = () => setIndex(current < urls.length - 1 ? current + 1 : urls
56
56
  return (
57
57
  <div
58
58
  className="Slides"
59
- onTouchEnd={onTouchEnd}
59
+ onTouchStart={onTouchStart}
60
60
  onTouchMove={onTouchMove}
61
- onTouchStart={onTouchStart}
61
+ onTouchEnd={onTouchEnd}
62
62
  >
63
63
  {
64
64
  urls.length > 1 && (
65
65
  <CircleIconButton
66
66
  className='carousel-arrow-left'
67
- dark
67
+ dark={true}
68
68
  icon="chevron-left"
69
69
  onClick={arrowLeft}
70
70
  variant="link"
@@ -81,7 +81,7 @@ const arrowRight = () => setIndex(current < urls.length - 1 ? current + 1 : urls
81
81
  urls.length > 1 && (
82
82
  <CircleIconButton
83
83
  className='carousel-arrow-right'
84
- dark
84
+ dark={true}
85
85
  icon="chevron-right"
86
86
  onClick={arrowRight}
87
87
  variant="link"
@@ -16,7 +16,7 @@ export default function Thumbnail({
16
16
  alt,
17
17
  width,
18
18
  url,
19
- onClick,
19
+ onClick = ()=>{},
20
20
  buttonRef,
21
21
  }: ThumbnailType): React.ReactElement {
22
22
  const activeClasses = classnames('Thumbnail', { active })
@@ -20,8 +20,8 @@ type CarouselType = {
20
20
  export default function Carousel({
21
21
  currentIndex,
22
22
  photos,
23
- onClick,
24
- onChange = () => undefined,
23
+ onClick = ()=>{},
24
+ onChange = ()=>{},
25
25
  setIndex,
26
26
  }: CarouselType): React.ReactElement {
27
27
  useEffect(() => {
@@ -39,10 +39,10 @@ export default function Carousel({
39
39
  return (
40
40
  <div className="Lightbox">
41
41
  <Slides
42
+ setIndex={setIndex}
42
43
  current={currentIndex}
43
44
  onChange={handleChange}
44
45
  onClick={onClick}
45
- setIndex={setIndex}
46
46
  urls={photos.map((photo) => photo.url)}
47
47
  />
48
48
  {photos.length > 1 ? (
@@ -61,31 +61,23 @@ const LightboxHeader = (props: LightboxHeaderProps): React.ReactElement => {
61
61
 
62
62
  const HeaderBody = () => (
63
63
  <React.Fragment>
64
- <FlexItem flex="1"
65
- marginLeft="sm"
66
- >
64
+ <FlexItem flex="1" marginLeft="sm">
67
65
  <CircleIconButton
68
- dark
69
- icon={icon}
70
- onClick={handleOnLightboxClose}
71
- variant="link"
66
+ onClick={handleOnLightboxClose}
67
+ dark={true}
68
+ variant="link"
69
+ icon={icon}
72
70
  />
73
71
  </FlexItem>
74
72
  {title && text && (
75
73
  <FlexItem flex="5">
76
74
  <Flex justify="center">
77
- <Flex align="center"
78
- orientation="column"
79
- >
75
+ <Flex align="center" orientation="column">
80
76
  {typeof title === "string" ? (
81
- <Title dark
82
- paddingBottom="xxs"
83
- size={4}
84
- text={title}
85
- />
77
+ <Title dark paddingBottom="xxs" size={4} text={title} />
86
78
  ) : (
87
- <Flex className="custom-header"
88
- justify="center"
79
+ <Flex justify="center"
80
+ className="custom-header"
89
81
  >
90
82
  {title}
91
83
  </Flex>
@@ -94,8 +86,8 @@ const LightboxHeader = (props: LightboxHeaderProps): React.ReactElement => {
94
86
  {typeof text === "string" ? (
95
87
  <Caption dark>{text}</Caption>
96
88
  ) : (
97
- <Flex className="custom-header"
98
- justify="center"
89
+ <Flex justify="center"
90
+ className="custom-header"
99
91
  >
100
92
  {text}
101
93
  </Flex>
@@ -107,12 +99,12 @@ const LightboxHeader = (props: LightboxHeaderProps): React.ReactElement => {
107
99
  <FlexItem flex="1">
108
100
  <Flex justify="end">
109
101
  <Button
110
- className="nav-right-btn"
111
- dark
112
- htmlType="button"
113
- onClick={onClickRight}
114
- text={navRight}
115
- variant="link"
102
+ className="nav-right-btn"
103
+ htmlType="button"
104
+ onClick={onClickRight}
105
+ dark
106
+ variant="link"
107
+ text={navRight}
116
108
  />
117
109
  </Flex>
118
110
  </FlexItem>
@@ -122,11 +114,11 @@ const LightboxHeader = (props: LightboxHeaderProps): React.ReactElement => {
122
114
  return (
123
115
  <div className="carousel-header">
124
116
  <Flex
125
- {...ariaProps}
126
- {...dataProps}
127
- {...htmlProps}
128
- className={classnames(headerCSS, headerSpacing, className)}
129
- spacing={spacing}
117
+ {...ariaProps}
118
+ {...dataProps}
119
+ {...htmlProps}
120
+ className={classnames(headerCSS, headerSpacing, className)}
121
+ spacing={spacing}
130
122
  >
131
123
  {closeable && <HeaderBody />}
132
124
  {children}
@@ -19,7 +19,7 @@ type LightboxType = {
19
19
  id?: string,
20
20
  photos: [],
21
21
  initialPhoto?: number,
22
- onChange?: (index: number)=> void,
22
+ onChange?: (index: number)=> {},
23
23
  onClickRight?: () => void,
24
24
  onClose?: () => void,
25
25
  icon: string,
@@ -40,7 +40,7 @@ const Lightbox = (props: LightboxType): React.ReactNode => {
40
40
  id = '',
41
41
  initialPhoto = 0,
42
42
  photos,
43
- onChange = () => undefined,
43
+ onChange = ()=>{},
44
44
  onClose,
45
45
  onClickRight,
46
46
  icon = 'times',
@@ -107,18 +107,18 @@ const Lightbox = (props: LightboxType): React.ReactNode => {
107
107
  <div className="carousel">
108
108
  <Lightbox.Header
109
109
  icon={icon}
110
- navRight={navRight}
111
- onClickRight={onClickRight}
112
110
  onClose={onClose}
111
+ onClickRight={onClickRight}
113
112
  text={description}
113
+ navRight={navRight}
114
114
  title={title}
115
115
  />
116
116
  {children}
117
117
  <Carousel
118
+ setIndex={setActivePhoto}
118
119
  currentIndex={activePhoto}
119
120
  onChange={handleOnSlide}
120
121
  photos={photosMap}
121
- setIndex={setActivePhoto}
122
122
  />
123
123
  </div>
124
124
  </div>
@@ -12,7 +12,7 @@ import mapColors from "../pb_dashboard/pbChartsColorsHelper";
12
12
  type LineGraphProps = {
13
13
  align?: "left" | "right" | "center";
14
14
  axisTitle?: string;
15
- dark?: boolean;
15
+ dark?: Boolean;
16
16
  xAxisCategories: [];
17
17
  yAxisMin: number;
18
18
  yAxisMax: number;
@@ -138,15 +138,15 @@ const LineGraph = ({
138
138
 
139
139
  return (
140
140
  <HighchartsReact
141
- containerProps={{
141
+ containerProps={{
142
142
  className: classnames(globalProps(props), className),
143
143
  id: id,
144
144
  ...ariaProps,
145
145
  ...dataProps,
146
146
  ...htmlProps
147
147
  }}
148
- highcharts={Highcharts}
149
- options={options}
148
+ highcharts={Highcharts}
149
+ options={options}
150
150
  />
151
151
  );
152
152
  };
@@ -9,7 +9,7 @@ type ListProps = {
9
9
  className?: string;
10
10
  children: React.ReactNode[] | React.ReactNode;
11
11
  dark?: boolean;
12
- data?: Record<string, unknown>;
12
+ data?: object;
13
13
  htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
14
14
  id?: string;
15
15
  layout?: "" | "left" | "right";
@@ -72,25 +72,25 @@ const List = (props: ListProps) => {
72
72
  <div className={classes}>
73
73
  {ordered ? (
74
74
  <ol
75
- {...ariaProps}
76
- {...dataProps}
77
- {...htmlProps}
78
- className={className}
79
- id={id}
80
- role={role}
81
- tabIndex={tabIndex}
75
+ {...ariaProps}
76
+ {...dataProps}
77
+ {...htmlProps}
78
+ className={className}
79
+ id={id}
80
+ role={role}
81
+ tabIndex={tabIndex}
82
82
  >
83
83
  {childrenWithProps}
84
84
  </ol>
85
85
  ) : (
86
86
  <ul
87
- {...ariaProps}
88
- {...dataProps}
89
- {...htmlProps}
90
- className={className}
91
- id={id}
92
- role={role}
93
- tabIndex={tabIndex}
87
+ {...ariaProps}
88
+ {...dataProps}
89
+ {...htmlProps}
90
+ className={className}
91
+ id={id}
92
+ role={role}
93
+ tabIndex={tabIndex}
94
94
  >
95
95
  {childrenWithProps}
96
96
  </ul>
@@ -7,7 +7,7 @@ type ListItemProps = {
7
7
  aria?: { [key: string]: string },
8
8
  children: React.ReactNode[] | React.ReactNode,
9
9
  className?: string,
10
- data?: Record<string, unknown>,
10
+ data?: object,
11
11
  htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
12
12
  id?: string,
13
13
  tabIndex?: number,
@@ -37,18 +37,18 @@ const LoadingInline = (props: LoadingInlineProps) => {
37
37
 
38
38
  return (
39
39
  <div
40
- {...ariaProps}
41
- {...dataProps}
42
- {...htmlProps}
43
- className={classes}
44
- id={id}
40
+ {...ariaProps}
41
+ {...dataProps}
42
+ {...htmlProps}
43
+ className={classes}
44
+ id={id}
45
45
  >
46
46
  <Body color="light">
47
47
  <Icon
48
- aria={{ label: 'loading icon' }}
49
- fixedWidth
50
- icon="spinner"
51
- pulse
48
+ aria={{ label: 'loading icon' }}
49
+ fixedWidth
50
+ icon="spinner"
51
+ pulse
52
52
  />
53
53
  {' Loading'}
54
54
  </Body>
@@ -14,9 +14,9 @@ type MapProps = {
14
14
  id?: string,
15
15
  zoomBtns?: boolean,
16
16
  flyTo?: boolean,
17
- zoomInClick?: () => void,
18
- zoomOutClick?: () => void,
19
- flyToClick?: () => void,
17
+ zoomInClick?: () => {},
18
+ zoomOutClick?: () => {},
19
+ flyToClick?: () => {},
20
20
  } & GlobalProps
21
21
 
22
22
  const Map = (props: MapProps) => {
@@ -51,11 +51,11 @@ const Map = (props: MapProps) => {
51
51
  {
52
52
  zoomBtns ? (
53
53
  <Map.Controls
54
- flyTo={flyTo}
55
- flyToClick={flyToClick}
56
- zoomBtns={zoomBtns}
57
- zoomInClick={zoomInClick}
58
- zoomOutClick={zoomOutClick}
54
+ flyTo={flyTo}
55
+ flyToClick={flyToClick}
56
+ zoomBtns={zoomBtns}
57
+ zoomInClick={zoomInClick}
58
+ zoomOutClick={zoomOutClick}
59
59
  />
60
60
  ) : null
61
61
  }
@@ -6,9 +6,9 @@ import Flex from "../pb_flex/_flex";
6
6
  type MapControlTypes = {
7
7
  zoomBtns?: boolean,
8
8
  flyTo?: boolean,
9
- zoomInClick?: () => void,
10
- zoomOutClick?: () => void,
11
- flyToClick?: () => void,
9
+ zoomInClick?: () => {},
10
+ zoomOutClick?: () => {},
11
+ flyToClick?: () => {},
12
12
  children?: React.ReactNode | React.ReactNode[]
13
13
  }
14
14
 
@@ -21,27 +21,19 @@ const MapControls = ({
21
21
  children,
22
22
  }: MapControlTypes) => {
23
23
  return (
24
- <Flex className="custom-nav-control"
25
- orientation="column"
26
- >
24
+ <Flex className="custom-nav-control" orientation="column">
27
25
  {zoomBtns ? (
28
26
  <>
29
27
  <div className="custom-nav-control-zoom">
30
- <Button className="map-zoom-in-button"
31
- onClick={zoomInClick}
32
- >
28
+ <Button className="map-zoom-in-button" onClick={zoomInClick}>
33
29
  <Icon icon="plus" />
34
30
  </Button>
35
- <Button className="map-zoom-out-button"
36
- onClick={zoomOutClick}
37
- >
31
+ <Button className="map-zoom-out-button" onClick={zoomOutClick}>
38
32
  <Icon icon="minus" />
39
33
  </Button>
40
34
  </div>
41
35
  {flyTo ? (
42
- <Button className="map-flyto-button"
43
- onClick={flyToClick}
44
- >
36
+ <Button className="map-flyto-button" onClick={flyToClick}>
45
37
  <Icon icon="eye" />
46
38
  </Button>
47
39
  ) : null}
@@ -3,15 +3,13 @@ import Button from "../pb_button/_button";
3
3
  import Icon from "../pb_icon/_icon";
4
4
 
5
5
  type MapCustomButtonTypes = {
6
- onClick?: () => void;
6
+ onClick?: () => {};
7
7
  icon?: string;
8
8
  };
9
9
 
10
10
  const MapCustomButton = ({ onClick, icon }: MapCustomButtonTypes) => {
11
11
  return (
12
- <Button className="pb_map-custom-button"
13
- onClick={onClick}
14
- >
12
+ <Button className="pb_map-custom-button" onClick={onClick}>
15
13
  <Icon icon={icon} />
16
14
  </Button>
17
15
  );
@@ -20,7 +20,7 @@ type MessageProps = {
20
20
  avatarUrl?: string,
21
21
  children?: React.ReactChild[] | React.ReactChild,
22
22
  className?: string,
23
- data?: Record<string, unknown>,
23
+ data?: object,
24
24
  htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
25
25
  id?: string,
26
26
  label?: string,
@@ -7,7 +7,7 @@ type MessageMentionProps = {
7
7
  aria: { [key: string]: string },
8
8
  children?: React.ReactChild[] | React.ReactChild,
9
9
  className?: string,
10
- data?: Record<string, unknown>,
10
+ data?: object,
11
11
  htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
12
12
  id?: string,
13
13
  variant: 'user' | 'self',
@@ -34,11 +34,11 @@ const MessageMention = (props: MessageMentionProps) => {
34
34
 
35
35
  return (
36
36
  <div
37
- {...ariaProps}
38
- {...dataProps}
39
- {...htmlProps}
40
- className={classes}
41
- id={id}
37
+ {...ariaProps}
38
+ {...dataProps}
39
+ {...htmlProps}
40
+ className={classes}
41
+ id={id}
42
42
  >
43
43
  {children}
44
44
  </div>