playbook-ui 13.14.0 → 13.15.0

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 (123) hide show
  1. package/CHANGELOG.md +18 -17
  2. package/dist/pb_avatar/_avatar.d.ts +1 -1
  3. package/dist/pb_avatar_action_button/_avatar_action_button.d.ts +5 -3
  4. package/dist/pb_background/_background.d.ts +2 -2
  5. package/dist/pb_badge/_badge.d.ts +2 -2
  6. package/dist/pb_bar_graph/_bar_graph.d.ts +3 -3
  7. package/dist/pb_body/_body.d.ts +1 -2
  8. package/dist/pb_bread_crumbs/_bread_crumb_item.d.ts +6 -3
  9. package/dist/pb_bread_crumbs/_bread_crumbs.d.ts +5 -3
  10. package/dist/pb_button/_button.d.ts +2 -2
  11. package/dist/pb_button_toolbar/_button_toolbar.d.ts +5 -3
  12. package/dist/pb_caption/_caption.d.ts +1 -1
  13. package/dist/pb_card/_card.d.ts +2 -2
  14. package/dist/pb_checkbox/_checkbox.d.ts +2 -2
  15. package/dist/pb_circle_chart/_circle_chart.d.ts +5 -3
  16. package/dist/pb_circle_icon_button/_circle_icon_button.d.ts +1 -1
  17. package/dist/pb_collapsible/_collapsible.d.ts +7 -5
  18. package/dist/pb_collapsible/_helper_functions.d.ts +2 -2
  19. package/dist/pb_collapsible/child_kits/CollapsibleContent.d.ts +1 -1
  20. package/dist/pb_contact/_contact.d.ts +6 -3
  21. package/dist/pb_currency/_currency.d.ts +3 -2
  22. package/dist/pb_dashboard/themeTypes.d.ts +4 -39
  23. package/dist/pb_dashboard_value/_dashboard_value.d.ts +1 -1
  24. package/dist/pb_date/_date.d.ts +3 -2
  25. package/dist/pb_date_picker/_date_picker.d.ts +1 -1
  26. package/dist/pb_date_range_inline/_date_range_inline.d.ts +3 -2
  27. package/dist/pb_date_range_stacked/_date_range_stacked.d.ts +3 -2
  28. package/dist/pb_date_stacked/_date_stacked.d.ts +3 -2
  29. package/dist/pb_date_time/_date_time.d.ts +3 -2
  30. package/dist/pb_date_time_stacked/_date_time_stacked.d.ts +1 -1
  31. package/dist/pb_date_year_stacked/_date_year_stacked.d.ts +3 -2
  32. package/dist/pb_detail/_detail.d.ts +2 -2
  33. package/dist/pb_dialog/_close_icon.d.ts +3 -2
  34. package/dist/pb_dialog/_dialog.d.ts +14 -10
  35. package/dist/pb_dialog/child_kits/_dialog_body.d.ts +1 -1
  36. package/dist/pb_dialog/child_kits/_dialog_footer.d.ts +2 -2
  37. package/dist/pb_dialog/child_kits/_dialog_header.d.ts +5 -3
  38. package/dist/pb_distribution_bar/_distribution_bar.d.ts +3 -2
  39. package/dist/pb_file_upload/_file_upload.d.ts +1 -1
  40. package/dist/pb_fixed_confirmation_toast/_fixed_confirmation_toast.d.ts +1 -1
  41. package/dist/pb_flex/_flex.d.ts +1 -1
  42. package/dist/pb_flex/_flex_item.d.ts +1 -1
  43. package/dist/pb_form_group/_form_group.d.ts +1 -1
  44. package/dist/pb_form_pill/_form_pill.d.ts +1 -1
  45. package/dist/pb_gauge/_gauge.d.ts +1 -1
  46. package/dist/pb_hashtag/_hashtag.d.ts +1 -1
  47. package/dist/pb_highlight/_highlight.d.ts +1 -1
  48. package/dist/pb_home_address_street/_home_address_street.d.ts +1 -1
  49. package/dist/pb_icon/_icon.d.ts +1 -1
  50. package/dist/pb_icon_circle/_icon_circle.d.ts +1 -1
  51. package/dist/pb_icon_stat_value/_icon_stat_value.d.ts +1 -1
  52. package/dist/pb_icon_value/_icon_value.d.ts +1 -1
  53. package/dist/pb_image/_image.d.ts +1 -1
  54. package/dist/pb_label_pill/_label_pill.d.ts +1 -1
  55. package/dist/pb_label_value/_label_value.d.ts +1 -1
  56. package/dist/pb_layout/_layout.d.ts +1 -1
  57. package/dist/pb_legend/_legend.d.ts +1 -1
  58. package/dist/pb_lightbox/Header/_lightbox_header.d.ts +1 -1
  59. package/dist/pb_lightbox/_lightbox.d.ts +2 -2
  60. package/dist/pb_line_graph/_line_graph.d.ts +1 -1
  61. package/dist/pb_list/_list.d.ts +1 -1
  62. package/dist/pb_list/_list_item.d.ts +1 -1
  63. package/dist/pb_loading_inline/_loading_inline.d.ts +1 -1
  64. package/dist/pb_map/_map.d.ts +1 -1
  65. package/dist/pb_message/_message.d.ts +2 -2
  66. package/dist/pb_message/_message_mention.d.ts +1 -1
  67. package/dist/pb_multi_level_select/_multi_level_select.d.ts +1 -1
  68. package/dist/pb_multiple_users/_multiple_users.d.ts +1 -1
  69. package/dist/pb_multiple_users_stacked/_multiple_users_stacked.d.ts +1 -1
  70. package/dist/pb_nav/_item.d.ts +1 -1
  71. package/dist/pb_nav/_nav.d.ts +1 -1
  72. package/dist/pb_online_status/_online_status.d.ts +1 -1
  73. package/dist/pb_passphrase/_passphrase.d.ts +1 -1
  74. package/dist/pb_person/_person.d.ts +1 -1
  75. package/dist/pb_person_contact/_person_contact.d.ts +1 -1
  76. package/dist/pb_phone_number_input/_phone_number_input.d.ts +1 -1
  77. package/dist/pb_pill/_pill.d.ts +1 -1
  78. package/dist/pb_popover/_popover.d.ts +1 -1
  79. package/dist/pb_progress_pills/_progress_pills.d.ts +1 -1
  80. package/dist/pb_progress_simple/_progress_simple.d.ts +1 -1
  81. package/dist/pb_progress_step/_progress_step.d.ts +1 -1
  82. package/dist/pb_progress_step/_progress_step_item.d.ts +1 -1
  83. package/dist/pb_radio/_radio.d.ts +112 -104
  84. package/dist/pb_rich_text_editor/_rich_text_editor.d.ts +1 -1
  85. package/dist/pb_section_separator/_section_separator.d.ts +1 -1
  86. package/dist/pb_select/_select.d.ts +112 -104
  87. package/dist/pb_selectable_card/_selectable_card.d.ts +1 -1
  88. package/dist/pb_selectable_card_icon/_selectable_card_icon.d.ts +1 -1
  89. package/dist/pb_selectable_icon/_selectable_icon.d.ts +1 -1
  90. package/dist/pb_selectable_list/_item.d.ts +1 -1
  91. package/dist/pb_selectable_list/_selectable_list.d.ts +1 -1
  92. package/dist/pb_source/_source.d.ts +1 -1
  93. package/dist/pb_star_rating/_star_rating.d.ts +1 -1
  94. package/dist/pb_stat_change/_stat_change.d.ts +1 -1
  95. package/dist/pb_stat_value/_stat_value.d.ts +1 -1
  96. package/dist/pb_table/_table.d.ts +1 -1
  97. package/dist/pb_table/_table_row.d.ts +1 -1
  98. package/dist/pb_text_input/_text_input.d.ts +112 -104
  99. package/dist/pb_textarea/_textarea.d.ts +116 -108
  100. package/dist/pb_time/_time.d.ts +1 -1
  101. package/dist/pb_time_range_inline/_time_range_inline.d.ts +1 -1
  102. package/dist/pb_time_stacked/_time_stacked.d.ts +1 -1
  103. package/dist/pb_timeline/_item.d.ts +1 -1
  104. package/dist/pb_timeline/_timeline.d.ts +4 -4
  105. package/dist/pb_timestamp/_timestamp.d.ts +1 -1
  106. package/dist/pb_title/_title.d.ts +1 -2
  107. package/dist/pb_title_count/_title_count.d.ts +1 -1
  108. package/dist/pb_title_detail/_title_detail.d.ts +1 -1
  109. package/dist/pb_toggle/_toggle.d.ts +1 -1
  110. package/dist/pb_tooltip/_tooltip.d.ts +112 -104
  111. package/dist/pb_treemap_chart/_treemap_chart.d.ts +1 -1
  112. package/dist/pb_typeahead/_typeahead.d.ts +1 -1
  113. package/dist/pb_user/_user.d.ts +1 -1
  114. package/dist/pb_user_badge/_user_badge.d.ts +1 -1
  115. package/dist/pb_walkthrough/_walkthrough.d.ts +1 -1
  116. package/dist/pb_weekday_stacked/_weekday_stacked.d.ts +1 -1
  117. package/dist/playbook-doc.js +7 -7
  118. package/dist/playbook-rails.js +4 -4
  119. package/dist/playbook.css +1 -1
  120. package/dist/playbook.js +6 -6
  121. package/dist/utilities/globalProps.d.ts +5 -1
  122. package/dist/utilities/props.d.ts +2 -2
  123. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,29 +1,33 @@
1
- ## [13.14.0](https://github.com/powerhome/playbook/tree/13.14.0) (2023-12-19)
1
+ # Customize Your Calendar: Introducing Quick Pick Custom Ranges for Tailored Date Selection
2
2
 
3
- [Full Changelog](https://github.com/powerhome/playbook/compare/13.13.0...13.14.0)
3
+ ##### December 19, 2023
4
+
5
+ ![Screen Recording 2023-12-18 at 03 43 42 PM](https://github.com/powerhome/playbook/assets/73710701/e7bc66ff-4f17-4820-81b1-9c6c7cfe71a5)
6
+
7
+ Say goodbye to generic date options! Quick Pick Custom Ranges is here, allowing you to define and label your own date presets or add personalized choices to our default selection.
8
+
9
+ [13.14.0](https://github.com/powerhome/playbook/tree/13.14.0) full list of changes:
4
10
 
5
11
  **Kit Enhancements:**
6
12
 
7
- - \[PLAY-1102\] Quick Pick Custom Dates [\#2943](https://github.com/powerhome/playbook/pull/2943) ([jasperfurniss](https://github.com/jasperfurniss))
13
+ - Quick Pick Custom Dates [\#2943](https://github.com/powerhome/playbook/pull/2943) ([jasperfurniss](https://github.com/jasperfurniss))
8
14
 
9
15
  **Fixed Bugs:**
10
16
 
11
- - \[PLAY-880\] 🐞 Card kit highlight z-index error [\#2935](https://github.com/powerhome/playbook/pull/2935) ([Israel-Molestina](https://github.com/Israel-Molestina))
17
+ - Card Kit Highlight Z-index Error [\#2935](https://github.com/powerhome/playbook/pull/2935) ([israel-molestina](https://github.com/israel-molestina))
12
18
 
13
19
  **Improvements:**
14
20
 
15
- - \[PLAY-1097\] Removing ESLint disable tag from Enhanced Element [\#2952](https://github.com/powerhome/playbook/pull/2952) ([carloslimasd](https://github.com/carloslimasd))
16
- - \[PBIOS-229\] Docs: HomeStreetAddress [\#2946](https://github.com/powerhome/playbook/pull/2946) ([nickamantia](https://github.com/nickamantia))
17
- - \[PLAY-1090\] Exporting CSS Tokens [\#2945](https://github.com/powerhome/playbook/pull/2945) ([carloslimasd](https://github.com/carloslimasd))
18
- - \[PBIOS-221\] Docs: Date [\#2944](https://github.com/powerhome/playbook/pull/2944) ([nickamantia](https://github.com/nickamantia))
19
- - \[PBIOS-228\] Docs: Contact [\#2933](https://github.com/powerhome/playbook/pull/2933) ([nickamantia](https://github.com/nickamantia))
20
- - \[PLAY-1008\] Website PS2 - Components - Index Navigation & Cards [\#2899](https://github.com/powerhome/playbook/pull/2899) ([augustomallmann](https://github.com/augustomallmann))
21
- - \[PLAY-900\] Star kit upgrade [\#2864](https://github.com/powerhome/playbook/pull/2864) ([markdoeswork](https://github.com/markdoeswork))
21
+ - Removing Eslint Disable Tag from Enhanced Element [\#2952](https://github.com/powerhome/playbook/pull/2952) ([carloslimasd](https://github.com/carloslimasd))
22
+ - Docs: Homestreetaddress [\#2946](https://github.com/powerhome/playbook/pull/2946) ([nickamantia](https://github.com/nickamantia))
23
+ - Exporting Css Tokens [\#2945](https://github.com/powerhome/playbook/pull/2945) ([carloslimasd](https://github.com/carloslimasd))
24
+ - Docs: Date [\#2944](https://github.com/powerhome/playbook/pull/2944) ([nickamantia](https://github.com/nickamantia))
25
+ - Docs: Contact [\#2933](https://github.com/powerhome/playbook/pull/2933) ([nickamantia](https://github.com/nickamantia))
26
+ - Website Ps2 - Components - Index Navigation & Cards [\#2899](https://github.com/powerhome/playbook/pull/2899) ([augustomallmann](https://github.com/augustomallmann))
27
+ - Star Kit Upgrade [\#2864](https://github.com/powerhome/playbook/pull/2864) ([markdoeswork](https://github.com/markdoeswork))
22
28
 
23
- **Merged pull requests:**
24
29
 
25
- - 13.13.0 Changelog [\#2959](https://github.com/powerhome/playbook/pull/2959) ([jasperfurniss](https://github.com/jasperfurniss))
26
- - 13.13.0 Version Bump [\#2936](https://github.com/powerhome/playbook/pull/2936) ([jasperfurniss](https://github.com/jasperfurniss))
30
+ [Full Changelog](https://github.com/powerhome/playbook/compare/13.13.0...13.14.0)
27
31
 
28
32
  # 13.13.0
29
33
  ##### December 8, 2023
@@ -663,6 +667,3 @@ You can now wrap our Date kit with any of our typography kits (Title, Body, Capt
663
667
 
664
668
 
665
669
  #### 🔍 Looking for something? **[See Our Release Archives](https://github.com/powerhome/playbook/blob/master/docs/CHANGELOG_ARCHIVE.md)**
666
-
667
-
668
- \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
@@ -10,7 +10,7 @@ export declare type AvatarProps = {
10
10
  };
11
11
  dark?: boolean;
12
12
  htmlOptions?: {
13
- [key: string]: string | number | boolean | Function;
13
+ [key: string]: string | number | boolean | (() => void);
14
14
  };
15
15
  id?: string;
16
16
  imageAlt?: string;
@@ -7,9 +7,11 @@ declare type AvatarActionButtonProps = {
7
7
  linkAriaLabel?: string;
8
8
  className?: string;
9
9
  dark?: boolean;
10
- data?: Object;
10
+ data?: {
11
+ [key: string]: string;
12
+ };
11
13
  htmlOptions?: {
12
- [key: string]: string | number | boolean | Function;
14
+ [key: string]: string | number | boolean | (() => void);
13
15
  };
14
16
  id?: string;
15
17
  imageAlt?: string;
@@ -20,5 +22,5 @@ declare type AvatarActionButtonProps = {
20
22
  placement?: string;
21
23
  size?: "md" | "lg" | "sm" | "xl" | "xs" | "xxs";
22
24
  };
23
- declare const AvatarActionButton: (props: AvatarActionButtonProps) => JSX.Element;
25
+ declare const AvatarActionButton: (props: AvatarActionButtonProps) => React.ReactElement;
24
26
  export default AvatarActionButton;
@@ -17,7 +17,7 @@ declare type BackgroundProps = {
17
17
  [key: string]: string;
18
18
  };
19
19
  htmlOptions?: {
20
- [key: string]: string | number | boolean | Function;
20
+ [key: string]: string | number | boolean | (() => void);
21
21
  };
22
22
  id?: string;
23
23
  padding?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
@@ -32,5 +32,5 @@ declare type ResponsiveProp<T> = T | {
32
32
  xl?: T;
33
33
  default?: T;
34
34
  };
35
- declare const Background: (props: BackgroundProps) => JSX.Element;
35
+ declare const Background: (props: BackgroundProps) => React.ReactElement;
36
36
  export default Background;
@@ -14,7 +14,7 @@ declare type BadgeProps = {
14
14
  [key: string]: string;
15
15
  };
16
16
  htmlOptions?: {
17
- [key: string]: string | number | boolean | Function;
17
+ [key: string]: string | number | boolean | (() => void);
18
18
  };
19
19
  id?: string;
20
20
  removeIcon?: boolean;
@@ -23,5 +23,5 @@ declare type BadgeProps = {
23
23
  text?: string;
24
24
  variant?: "error" | "info" | "neutral" | "notification" | "primary" | "success" | "warning";
25
25
  } & GlobalProps;
26
- declare const Badge: (props: BadgeProps) => JSX.Element;
26
+ declare const Badge: (props: BadgeProps) => React.ReactElement;
27
27
  export default Badge;
@@ -11,11 +11,11 @@ declare type BarGraphProps = {
11
11
  data: number[];
12
12
  }[];
13
13
  className?: string;
14
+ id: string;
15
+ pointStart: number;
14
16
  htmlOptions?: {
15
- [key: string]: string | number | boolean | Function;
17
+ [key: string]: string | number | boolean | (() => void);
16
18
  };
17
- id: any;
18
- pointStart: number | any;
19
19
  subTitle?: string;
20
20
  title: string;
21
21
  type?: string;
@@ -14,13 +14,12 @@ declare type BodyProps = {
14
14
  highlightedText?: string[];
15
15
  highlighting?: boolean;
16
16
  htmlOptions?: {
17
- [key: string]: string | number | boolean | Function;
17
+ [key: string]: string | number | boolean | (() => void);
18
18
  };
19
19
  id?: string;
20
20
  status?: 'neutral' | 'negative' | 'positive';
21
21
  tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div';
22
22
  text?: string;
23
- truncate?: null | '1' | '2' | '3' | '4' | '5';
24
23
  variant?: null | 'link';
25
24
  } & GlobalProps;
26
25
  declare const Body: (props: BodyProps) => React.ReactElement;
@@ -1,15 +1,18 @@
1
+ import React from 'react';
1
2
  declare type BreadCrumbItemProps = {
2
3
  aria?: {
3
4
  [key: string]: string;
4
5
  };
5
6
  className?: string;
6
- data?: object;
7
+ data?: {
8
+ [key: string]: string;
9
+ };
7
10
  htmlOptions?: {
8
- [key: string]: string | number | boolean | Function;
11
+ [key: string]: string | number | boolean | (() => void);
9
12
  };
10
13
  id?: string;
11
14
  component?: "a" | "span";
12
15
  [x: string]: any;
13
16
  };
14
- declare const BreadCrumbItem: (props: BreadCrumbItemProps) => JSX.Element;
17
+ declare const BreadCrumbItem: (props: BreadCrumbItemProps) => React.ReactElement;
15
18
  export default BreadCrumbItem;
@@ -4,13 +4,15 @@ declare type BreadCrumbsProps = {
4
4
  [key: string]: string;
5
5
  };
6
6
  className?: string;
7
- data?: object;
7
+ data?: {
8
+ [key: string]: string;
9
+ };
8
10
  htmlOptions?: {
9
- [key: string]: string | number | boolean | Function;
11
+ [key: string]: string | number | boolean | (() => void);
10
12
  };
11
13
  id?: string;
12
14
  text?: string;
13
15
  children?: React.ReactChild[] | React.ReactNode;
14
16
  };
15
- declare const BreadCrumbs: (props: BreadCrumbsProps) => JSX.Element;
17
+ declare const BreadCrumbs: (props: BreadCrumbsProps) => React.ReactElement;
16
18
  export default BreadCrumbs;
@@ -17,7 +17,7 @@ declare type ButtonPropTypes = {
17
17
  fullWidth?: boolean;
18
18
  highlight?: boolean;
19
19
  htmlOptions?: {
20
- [key: string]: string | number | boolean | Function;
20
+ [key: string]: string | number | boolean | (() => void);
21
21
  };
22
22
  icon?: string;
23
23
  iconRight?: boolean;
@@ -36,5 +36,5 @@ declare type ButtonPropTypes = {
36
36
  variant?: 'primary' | 'secondary' | 'link' | 'reaction';
37
37
  wrapperClass?: string;
38
38
  } & GlobalProps;
39
- declare const Button: (props: ButtonPropTypes) => JSX.Element;
39
+ declare const Button: (props: ButtonPropTypes) => React.ReactElement;
40
40
  export default Button;
@@ -6,9 +6,11 @@ declare type ButtonToolbarProps = {
6
6
  children?: React.ReactChild[] | React.ReactChild;
7
7
  className?: string;
8
8
  connected?: boolean;
9
- data?: object;
9
+ data?: {
10
+ [key: string]: string;
11
+ };
10
12
  htmlOptions?: {
11
- [key: string]: string | number | boolean | Function;
13
+ [key: string]: string | number | boolean | (() => void);
12
14
  };
13
15
  id?: string;
14
16
  onClick?: React.MouseEventHandler<HTMLSpanElement>;
@@ -16,5 +18,5 @@ declare type ButtonToolbarProps = {
16
18
  text?: string;
17
19
  variant?: "primary" | "secondary";
18
20
  };
19
- declare const ButtonToolbar: (props: ButtonToolbarProps) => JSX.Element;
21
+ declare const ButtonToolbar: (props: ButtonToolbarProps) => React.ReactElement;
20
22
  export default ButtonToolbar;
@@ -11,7 +11,7 @@ declare type CaptionProps = {
11
11
  [key: string]: string;
12
12
  };
13
13
  htmlOptions?: {
14
- [key: string]: string | number | boolean | Function;
14
+ [key: string]: string | number | boolean | (() => void);
15
15
  };
16
16
  id?: string;
17
17
  size?: "xs" | "sm" | "md" | "lg" | "xl";
@@ -14,7 +14,7 @@ declare type CardPropTypes = {
14
14
  [key: string]: string;
15
15
  };
16
16
  htmlOptions?: {
17
- [key: string]: string | number | boolean | Function;
17
+ [key: string]: string | number | boolean | (() => void);
18
18
  };
19
19
  highlight?: {
20
20
  position?: "side" | "top";
@@ -38,7 +38,7 @@ declare type CardBodyProps = {
38
38
  padding?: string;
39
39
  } & GlobalProps;
40
40
  declare const Card: {
41
- (props: CardPropTypes): JSX.Element;
41
+ (props: CardPropTypes): React.ReactElement;
42
42
  Header: (props: CardHeaderProps) => JSX.Element;
43
43
  Body: (props: CardBodyProps) => JSX.Element;
44
44
  };
@@ -13,7 +13,7 @@ declare type CheckboxProps = {
13
13
  };
14
14
  error?: boolean;
15
15
  htmlOptions?: {
16
- [key: string]: string | number | boolean | Function;
16
+ [key: string]: string | number | boolean | (() => void);
17
17
  };
18
18
  id?: string;
19
19
  indeterminate?: boolean;
@@ -23,5 +23,5 @@ declare type CheckboxProps = {
23
23
  text?: string;
24
24
  value?: string;
25
25
  } & GlobalProps;
26
- declare const Checkbox: (props: CheckboxProps) => JSX.Element;
26
+ declare const Checkbox: (props: CheckboxProps) => React.ReactElement;
27
27
  export default Checkbox;
@@ -7,13 +7,15 @@ declare type CircleChartProps = {
7
7
  children?: Node;
8
8
  className?: string;
9
9
  colors?: string[];
10
- dark?: Boolean;
11
- data?: Object;
10
+ dark?: boolean;
11
+ data?: {
12
+ [key: string]: string;
13
+ };
12
14
  dataLabelHtml?: string;
13
15
  dataLabels?: boolean;
14
16
  height?: string;
15
17
  htmlOptions?: {
16
- [key: string]: string | number | boolean | Function;
18
+ [key: string]: string | number | boolean | (() => void);
17
19
  };
18
20
  id?: string;
19
21
  innerSize?: "sm" | "md" | "lg" | "none";
@@ -11,7 +11,7 @@ declare type CircleIconButtonProps = {
11
11
  disabled?: boolean;
12
12
  icon: string;
13
13
  htmlOptions?: {
14
- [key: string]: string | number | boolean | Function;
14
+ [key: string]: string | number | boolean | (() => void);
15
15
  };
16
16
  id?: string;
17
17
  link?: string;
@@ -1,25 +1,27 @@
1
1
  import React from 'react';
2
2
  import { IconSizes } from "../pb_icon/_icon";
3
3
  declare type CollapsibleProps = {
4
- children?: JSX.Element | [] | any;
4
+ children?: React.ReactElement | [] | any;
5
5
  aria?: {
6
6
  [key: string]: string;
7
7
  };
8
8
  className?: string;
9
9
  collapsed?: boolean;
10
- data?: object;
10
+ data?: {
11
+ [key: string]: string;
12
+ };
11
13
  icon?: string | string[];
12
14
  iconColor?: 'default' | 'light' | 'lighter' | 'link' | 'error' | 'success';
13
15
  iconSize?: IconSizes;
14
16
  onIconClick?: () => void;
15
17
  onClick?: () => void;
16
18
  htmlOptions?: {
17
- [key: string]: string | number | boolean | Function;
19
+ [key: string]: string | number | boolean | (() => void);
18
20
  };
19
21
  id?: string;
20
22
  };
21
23
  declare const Collapsible: {
22
- ({ aria, className, children, collapsed, data, htmlOptions, icon, iconColor, iconSize, onIconClick, onClick, id, ...props }: CollapsibleProps): JSX.Element;
24
+ ({ aria, className, children, collapsed, data, htmlOptions, icon, iconColor, iconSize, onIconClick, onClick, id, ...props }: CollapsibleProps): React.ReactElement;
23
25
  Main: ({ children, className, cursor, ...props }: {
24
26
  children: React.ReactNode | React.ReactNode[];
25
27
  className?: string;
@@ -27,6 +29,6 @@ declare const Collapsible: {
27
29
  dark?: boolean;
28
30
  onClick?: () => void;
29
31
  }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
30
- Content: ({ children, className, ...props }: import("./child_kits/CollapsibleContent").CollapsibleContentProps) => JSX.Element;
32
+ Content: ({ children, className, ...props }: import("./child_kits/CollapsibleContent").CollapsibleContentProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
31
33
  };
32
34
  export default Collapsible;
@@ -1,2 +1,2 @@
1
- export declare const showElement: (elem: any) => void;
2
- export declare const hideElement: (elem: any) => void;
1
+ export declare const showElement: (elem: HTMLElement) => void;
2
+ export declare const hideElement: (elem: HTMLElement) => void;
@@ -3,5 +3,5 @@ export declare type CollapsibleContentProps = {
3
3
  children?: React.ReactNode[] | React.ReactNode | string;
4
4
  className?: string;
5
5
  };
6
- declare const CollapsibleContent: ({ children, className, ...props }: CollapsibleContentProps) => JSX.Element;
6
+ declare const CollapsibleContent: ({ children, className, ...props }: CollapsibleContentProps) => React.ReactElement;
7
7
  export default CollapsibleContent;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  declare type ContactProps = {
2
3
  aria?: {
3
4
  [key: string]: string;
@@ -6,11 +7,13 @@ declare type ContactProps = {
6
7
  contactDetail?: string;
7
8
  contactType?: string;
8
9
  contactValue: string;
9
- data?: object;
10
+ data?: {
11
+ [key: string]: string;
12
+ };
10
13
  htmlOptions?: {
11
- [key: string]: string | number | boolean | Function;
14
+ [key: string]: string | number | boolean | (() => void);
12
15
  };
13
16
  id?: string;
14
17
  };
15
- declare const Contact: (props: ContactProps) => JSX.Element;
18
+ declare const Contact: (props: ContactProps) => React.ReactElement;
16
19
  export default Contact;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  declare type CurrencyProps = {
2
3
  abbreviate?: boolean;
3
4
  align?: 'center' | 'left' | 'right';
@@ -13,7 +14,7 @@ declare type CurrencyProps = {
13
14
  decimals?: 'default' | 'matching';
14
15
  emphasized?: boolean;
15
16
  htmlOptions?: {
16
- [key: string]: string | number | boolean | Function;
17
+ [key: string]: string | number | boolean | (() => void);
17
18
  };
18
19
  id?: string;
19
20
  label?: string;
@@ -23,5 +24,5 @@ declare type CurrencyProps = {
23
24
  unit?: string;
24
25
  unstyled?: boolean;
25
26
  };
26
- declare const Currency: (props: CurrencyProps) => JSX.Element;
27
+ declare const Currency: (props: CurrencyProps) => React.ReactElement;
27
28
  export default Currency;
@@ -1,40 +1,5 @@
1
- export declare type ThemeProps = {
2
- lang?: {
3
- [key: string]: string;
4
- };
5
- credits?: {
6
- [key: string]: boolean;
7
- };
8
- colors?: string[];
9
- chart?: {
10
- [key: string]: any;
11
- };
12
- title?: {
13
- [key: string]: string | {};
14
- };
15
- subtitle?: {
16
- [key: string]: string | {};
17
- };
18
- xAxis?: {
19
- [key: string]: any;
20
- };
21
- yAxis?: {
22
- [key: string]: any;
23
- };
24
- legend?: {
25
- [key: string]: string | {};
26
- };
27
- labels?: {
28
- [key: string]: {};
29
- };
30
- tooltip?: {
31
- [key: string]: any;
32
- };
33
- pane?: {
34
- [key: string]: {};
35
- };
36
- plotOptions?: {
37
- [key: string]: any;
38
- };
1
+ import { Options, LegendOptions } from "highcharts";
2
+ export interface ThemeProps extends Pick<Options, "credits" | "chart" | "colors" | "lang" | "title" | "subtitle" | "xAxis" | "yAxis" | "legend" | "tooltip" | "pane" | "plotOptions"> {
39
3
  colorKey?: string;
40
- };
4
+ legend?: LegendOptions;
5
+ }
@@ -9,7 +9,7 @@ declare type DashboardValueProps = {
9
9
  [key: string]: string;
10
10
  };
11
11
  htmlOptions?: {
12
- [key: string]: string | number | boolean | Function;
12
+ [key: string]: string | number | boolean | (() => void);
13
13
  };
14
14
  id?: string;
15
15
  statChange?: {
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  declare type PbDateProps = {
2
3
  alignment?: "left" | "center" | "right";
3
4
  aria?: {
@@ -8,7 +9,7 @@ declare type PbDateProps = {
8
9
  [key: string]: string;
9
10
  };
10
11
  htmlOptions?: {
11
- [key: string]: string | number | boolean | Function;
12
+ [key: string]: string | number | boolean | (() => void);
12
13
  };
13
14
  id?: string;
14
15
  showDayOfWeek?: boolean;
@@ -17,5 +18,5 @@ declare type PbDateProps = {
17
18
  unstyled?: boolean;
18
19
  value: Date;
19
20
  };
20
- declare const PbDate: (props: PbDateProps) => JSX.Element;
21
+ declare const PbDate: (props: PbDateProps) => React.ReactElement;
21
22
  export default PbDate;
@@ -25,7 +25,7 @@ declare type DatePickerProps = {
25
25
  hideIcon?: boolean;
26
26
  hideLabel?: boolean;
27
27
  htmlOptions?: {
28
- [key: string]: string | number | boolean | Function;
28
+ [key: string]: string | number | boolean | (() => void);
29
29
  };
30
30
  id?: string;
31
31
  inLine?: boolean;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  declare type DateRangeInlineProps = {
2
3
  className?: string;
3
4
  id?: string;
@@ -6,11 +7,11 @@ declare type DateRangeInlineProps = {
6
7
  size?: "sm" | "xs";
7
8
  dark?: boolean;
8
9
  htmlOptions?: {
9
- [key: string]: string | number | boolean | Function;
10
+ [key: string]: string | number | boolean | (() => any);
10
11
  };
11
12
  icon?: boolean;
12
13
  startDate?: Date;
13
14
  endDate?: Date;
14
15
  };
15
- declare const DateRangeInline: (props: DateRangeInlineProps) => JSX.Element;
16
+ declare const DateRangeInline: (props: DateRangeInlineProps) => React.ReactElement;
16
17
  export default DateRangeInline;
@@ -1,13 +1,14 @@
1
+ import React from 'react';
1
2
  declare type DateRangeStackedProps = {
2
3
  className?: string | string[];
3
4
  data?: string;
4
5
  dark?: boolean;
5
6
  endDate: Date;
6
7
  htmlOptions?: {
7
- [key: string]: string | number | boolean | Function;
8
+ [key: string]: string | number | boolean | (() => void);
8
9
  };
9
10
  id?: string;
10
11
  startDate: Date;
11
12
  };
12
- declare const DateRangeStacked: (props: DateRangeStackedProps) => JSX.Element;
13
+ declare const DateRangeStacked: (props: DateRangeStackedProps) => React.ReactElement;
13
14
  export default DateRangeStacked;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  declare type DateStackedProps = {
2
3
  align?: "left" | "center" | "right";
3
4
  bold?: boolean;
@@ -6,11 +7,11 @@ declare type DateStackedProps = {
6
7
  data?: string;
7
8
  date: Date;
8
9
  htmlOptions?: {
9
- [key: string]: string | number | boolean | Function;
10
+ [key: string]: string | number | boolean | (() => void);
10
11
  };
11
12
  size?: "sm" | "md";
12
13
  id?: string;
13
14
  reverse?: boolean;
14
15
  };
15
- declare const DateStacked: (props: DateStackedProps) => JSX.Element;
16
+ declare const DateStacked: (props: DateStackedProps) => React.ReactElement;
16
17
  export default DateStacked;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  declare type DateTimeProps = {
2
3
  align?: "left" | "center" | "right";
3
4
  aria?: {
@@ -9,7 +10,7 @@ declare type DateTimeProps = {
9
10
  };
10
11
  datetime: Date;
11
12
  htmlOptions?: {
12
- [key: string]: string | number | boolean | Function;
13
+ [key: string]: string | number | boolean | (() => void);
13
14
  };
14
15
  id?: string;
15
16
  size?: "sm" | "md";
@@ -17,5 +18,5 @@ declare type DateTimeProps = {
17
18
  showIcon?: boolean;
18
19
  timeZone?: string;
19
20
  };
20
- declare const DateTime: (props: DateTimeProps) => JSX.Element;
21
+ declare const DateTime: (props: DateTimeProps) => React.ReactElement;
21
22
  export default DateTime;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  declare type DateTimeStackedProps = {
3
3
  htmlOptions?: {
4
- [key: string]: string | number | boolean | Function;
4
+ [key: string]: string | number | boolean | (() => void);
5
5
  };
6
6
  id?: string;
7
7
  date: Date;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  declare type DateYearStackedProps = {
2
3
  align?: "left" | "center" | "right";
3
4
  className?: string | string[];
@@ -5,9 +6,9 @@ declare type DateYearStackedProps = {
5
6
  data?: string;
6
7
  date: Date;
7
8
  htmlOptions?: {
8
- [key: string]: string | number | boolean | Function;
9
+ [key: string]: string | number | boolean | (() => void);
9
10
  };
10
11
  id?: string;
11
12
  };
12
- declare const DateYearStacked: (props: DateYearStackedProps) => JSX.Element;
13
+ declare const DateYearStacked: (props: DateYearStackedProps) => React.ReactElement;
13
14
  export default DateYearStacked;
@@ -13,11 +13,11 @@ declare type DetailProps = {
13
13
  [key: string]: string;
14
14
  };
15
15
  htmlOptions?: {
16
- [key: string]: string | number | boolean | Function;
16
+ [key: string]: string | number | boolean | (() => void);
17
17
  };
18
18
  id?: string;
19
19
  tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div';
20
20
  text?: string;
21
21
  } & GlobalProps;
22
- declare const Detail: (props: DetailProps) => JSX.Element;
22
+ declare const Detail: (props: DetailProps) => React.ReactElement;
23
23
  export default Detail;
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  declare type CloseIconProps = {
2
- onClose: () => any;
3
+ onClose: () => void;
3
4
  };
4
- export declare const CloseIcon: (props: CloseIconProps) => JSX.Element;
5
+ export declare const CloseIcon: (props: CloseIconProps) => React.ReactElement;
5
6
  export {};