playbook-ui 13.15.0 → 13.16.0-alpha.PBNTR177NewAdvancedTableKit2010

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 (68) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/menu.yml +4 -1
  3. package/dist/pb_advanced_table/Components/CollapsibleTrail.d.ts +1 -0
  4. package/dist/pb_advanced_table/Components/CustomCell.d.ts +11 -0
  5. package/dist/pb_advanced_table/Components/LoadingCell.d.ts +1 -0
  6. package/dist/pb_advanced_table/Components/SortIconButton.d.ts +8 -0
  7. package/dist/pb_advanced_table/Components/SubRowHeaderRow.d.ts +13 -0
  8. package/dist/pb_advanced_table/Components/TableHeaderCell.d.ts +16 -0
  9. package/dist/pb_advanced_table/Components/ToggleIconButton.d.ts +8 -0
  10. package/dist/pb_advanced_table/Context/AdvancedTableContext.d.ts +3 -0
  11. package/dist/pb_advanced_table/SubComponents/TableBody.d.ts +6 -0
  12. package/dist/pb_advanced_table/SubComponents/TableHeader.d.ts +9 -0
  13. package/dist/pb_advanced_table/Utilities/helper_functions.d.ts +5 -0
  14. package/dist/pb_advanced_table/Utilities/types.d.ts +5 -0
  15. package/dist/pb_advanced_table/_advanced_table.d.ts +41 -0
  16. package/dist/pb_fixed_confirmation_toast/_fixed_confirmation_toast.d.ts +4 -3
  17. package/dist/pb_flex/_flex.d.ts +4 -4
  18. package/dist/pb_form_group/_form_group.d.ts +4 -2
  19. package/dist/pb_form_pill/_form_pill.d.ts +1 -1
  20. package/dist/pb_gauge/_gauge.d.ts +4 -3
  21. package/dist/pb_home_address_street/_home_address_street.d.ts +2 -1
  22. package/dist/pb_icon_stat_value/_icon_stat_value.d.ts +4 -2
  23. package/dist/pb_icon_value/_icon_value.d.ts +4 -2
  24. package/dist/pb_label_value/_label_value.d.ts +1 -1
  25. package/dist/pb_layout/_layout.d.ts +1 -1
  26. package/dist/pb_legend/_legend.d.ts +1 -1
  27. package/dist/pb_lightbox/_lightbox.d.ts +1 -1
  28. package/dist/pb_line_graph/_line_graph.d.ts +1 -1
  29. package/dist/pb_list/_list.d.ts +1 -1
  30. package/dist/pb_list/_list_item.d.ts +1 -1
  31. package/dist/pb_map/_map.d.ts +6 -6
  32. package/dist/pb_map/_map_controls.d.ts +3 -3
  33. package/dist/pb_map/_map_custom_button.d.ts +1 -1
  34. package/dist/pb_message/_message.d.ts +2 -2
  35. package/dist/pb_message/_message_mention.d.ts +1 -1
  36. package/dist/pb_nav/_item.d.ts +1 -1
  37. package/dist/pb_nav/_nav.d.ts +3 -3
  38. package/dist/pb_passphrase/_passphrase.d.ts +6 -4
  39. package/dist/pb_person_contact/_person_contact.d.ts +4 -2
  40. package/dist/pb_popover/_popover.d.ts +1 -1
  41. package/dist/pb_progress_simple/_progress_simple.d.ts +2 -1
  42. package/dist/pb_radio/_radio.d.ts +84 -84
  43. package/dist/pb_rich_text_editor/TipTap/EditorButton.d.ts +3 -2
  44. package/dist/pb_rich_text_editor/TipTap/EditorTypes.d.ts +1 -1
  45. package/dist/pb_rich_text_editor/TipTap/Toolbar.d.ts +2 -1
  46. package/dist/pb_rich_text_editor/TipTap/ToolbarDropdown.d.ts +2 -1
  47. package/dist/pb_rich_text_editor/TipTap/ToolbarHistory.d.ts +2 -1
  48. package/dist/pb_rich_text_editor/TipTap/ToolbarNodes.d.ts +2 -1
  49. package/dist/pb_rich_text_editor/_rich_text_editor.d.ts +2 -2
  50. package/dist/pb_section_separator/_section_separator.d.ts +1 -1
  51. package/dist/pb_select/_select.d.ts +88 -84
  52. package/dist/pb_selectable_card_icon/_selectable_card_icon.d.ts +1 -1
  53. package/dist/pb_selectable_icon/_selectable_icon.d.ts +4 -2
  54. package/dist/pb_selectable_list/_selectable_list.d.ts +2 -1
  55. package/dist/pb_source/_source.d.ts +2 -1
  56. package/dist/pb_table/_table.d.ts +7 -6
  57. package/dist/pb_text_input/_text_input.d.ts +84 -84
  58. package/dist/pb_textarea/_textarea.d.ts +84 -84
  59. package/dist/pb_tooltip/_tooltip.d.ts +84 -84
  60. package/dist/playbook-doc.js +30 -8
  61. package/dist/playbook-rails.js +14 -6
  62. package/dist/playbook.css +1 -1
  63. package/dist/playbook.js +30 -8
  64. package/dist/types/base.d.ts +1 -0
  65. package/dist/types/data.d.ts +1 -0
  66. package/dist/types/index.d.ts +1 -0
  67. package/dist/utilities/globalProps.d.ts +1 -1
  68. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,59 @@
1
+ # 13.16.0
2
+ ##### January 22, 2024
3
+
4
+ List of changes:
5
+
6
+ **Fixed Bugs:**
7
+
8
+ - Fixed Telemetry Links [\#3011](https://github.com/powerhome/playbook/pull/3011) ([thestephenmarshall](https://github.com/thestephenmarshall))
9
+ - Fixed Broken Gauge Kit [\#3031](https://github.com/powerhome/playbook/pull/3031) ([nidaqg](https://github.com/nidaqg))
10
+
11
+ **Improvements:**
12
+
13
+ - Linter Implementation: Kits P - S [\#3043](https://github.com/powerhome/playbook/pull/3043) ([thestephenmarshall](https://github.com/thestephenmarshall))
14
+ - Select Kit: Added Inline Variant With Visible Chevron [\#3037](https://github.com/powerhome/playbook/pull/3037) ([thestephenmarshall](https://github.com/thestephenmarshall))
15
+ - Added Components Filter [\#3029](https://github.com/powerhome/playbook/pull/3029) ([carloslimasd](https://github.com/carloslimasd))
16
+ - Linter Implementation: Kits F - J [\#3021](https://github.com/powerhome/playbook/pull/3021) ([thestephenmarshall](https://github.com/thestephenmarshall))
17
+ - Linted Date Picker Kit [\#2990](https://github.com/powerhome/playbook/pull/2990) ([markdoeswork](https://github.com/markdoeswork))
18
+ - Website - Icons Index Foundation [\#2965](https://github.com/powerhome/playbook/pull/2965) ([israel-molestina](https://github.com/israel-molestina))
19
+ - Updated Collapsible Docs [\#2984](https://github.com/powerhome/playbook/pull/2984) ([rachelradford21](https://github.com/rachelradford21))
20
+ - Updated Swift Nav Docs [\#2980](https://github.com/powerhome/playbook/pull/2980) ([rachelradford21](https://github.com/rachelradford21))
21
+
22
+
23
+
24
+ [Full Changelog](https://github.com/powerhome/playbook/compare/13.16.0...13.16.0)
25
+
26
+
27
+
28
+
29
+ # 13.15.0
30
+ ##### January 5, 2024
31
+
32
+ List of changes:
33
+
34
+ **Kit Enhancements:**
35
+ - Convert Truncate Prop to Global [\#2975](https://github.com/powerhome/playbook/pull/2975) ([markdoeswork](https://github.com/markdoeswork))
36
+
37
+ **Fixed Bugs:**
38
+ - Display Prop Responsive Arguments Are Blocking Font Color [\#2973](https://github.com/powerhome/playbook/pull/2973) ([israel-molestina](https://github.com/israel-molestina))
39
+
40
+ **Improvements:**
41
+ - Docs: Add `xxl` As Max Width Value [\#2986](https://github.com/powerhome/playbook/pull/2986) ([israel-molestina](https://github.com/israel-molestina))
42
+ - Docs: List Nav Items Alphabetically Within Their Categories [\#2977](https://github.com/powerhome/playbook/pull/2977) ([augustomallmann](https://github.com/augustomallmann))
43
+ - Docs: Person [\#2953](https://github.com/powerhome/playbook/pull/2953) ([nickamantia](https://github.com/nickamantia))
44
+ - Docs: User [\#2898](https://github.com/powerhome/playbook/pull/2898) ([nickamantia](https://github.com/nickamantia))
45
+ - Docs: Reaction Button Variant [\#2985](https://github.com/powerhome/playbook/pull/2985) ([rachelradford21](https://github.com/rachelradford21))
46
+ - Docs: Select [\#2983](https://github.com/powerhome/playbook/pull/2983) ([rachelradford21](https://github.com/rachelradford21))
47
+ - Docs: Dialog [\#2979](https://github.com/powerhome/playbook/pull/2979) ([rachelradford21](https://github.com/rachelradford21))
48
+ - Linter Implementation: Kits A - D [\#2942](https://github.com/powerhome/playbook/pull/2942) ([augustomallmann](https://github.com/augustomallmann))
49
+ - Ready Playbook Web for Swift! [\#2978](https://github.com/powerhome/playbook/pull/2978) ([jasoncypret](https://github.com/jasoncypret))
50
+
51
+
52
+ [Full Changelog](https://github.com/powerhome/playbook/compare/13.14.0...13.15.0)
53
+
54
+
55
+
56
+
1
57
  # Customize Your Calendar: Introducing Quick Pick Custom Ranges for Tailored Date Selection
2
58
 
3
59
  ##### December 19, 2023
package/dist/menu.yml CHANGED
@@ -43,6 +43,9 @@ kits:
43
43
  - name: "table"
44
44
  platforms: *web
45
45
  description: Tables display a collection of structured data and typically have the ability to sort, filter, and paginate data.
46
+ - name: "advanced_table"
47
+ platforms: *react_only
48
+ description:
46
49
  - name: "list"
47
50
  platforms: *web
48
51
  description: Lists display a vertical set of related content.
@@ -354,4 +357,4 @@ kits:
354
357
  description: Multiple users stacked is used in tight spaces, where we need to indicate that multiple users are associated to a specific action or item.
355
358
  - name: "user"
356
359
  platforms: *web
357
- description: This kit was created for having a systematic way of displaying users with avatar, titles, name and territory. This is a versatile kit with features than can be added to display more info.
360
+ description: This kit was created for having a systematic way of displaying users with avatar, titles, name and territory. This is a versatile kit with features than can be added to display more info.
@@ -0,0 +1 @@
1
+ export declare const renderCollapsibleTrail: (currentDepth: number) => JSX.Element[];
@@ -0,0 +1,11 @@
1
+ import { GlobalProps } from "../../utilities/globalProps";
2
+ import { Getter, Row } from "@tanstack/react-table";
3
+ import { DataType } from "../Utilities/types";
4
+ interface CustomCellProps {
5
+ row: Row<DataType>;
6
+ getValue?: Getter<string>;
7
+ value?: string;
8
+ onRowToggleClick?: (arg: Row<DataType>) => void;
9
+ }
10
+ export declare const CustomCell: ({ row, getValue, value, onRowToggleClick, }: CustomCellProps & GlobalProps) => JSX.Element;
11
+ export {};
@@ -0,0 +1 @@
1
+ export declare const LoadingCell: () => JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { Header } from "@tanstack/react-table";
2
+ import { DataType } from "../Utilities/types";
3
+ declare type SortIconButtonProps = {
4
+ header: Header<DataType, unknown>;
5
+ sortIcon?: string | string[];
6
+ };
7
+ export declare const SortIconButton: ({ header, sortIcon }: SortIconButtonProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,13 @@
1
+ import { Row, Table } from "@tanstack/react-table";
2
+ import { DataType } from "../Utilities/types";
3
+ import { GlobalProps } from "../../utilities/globalProps";
4
+ interface SubRowHeaderRowProps {
5
+ onClick: (row: Row<DataType>) => void;
6
+ row: Row<DataType>;
7
+ table: Table<DataType>;
8
+ collapsibleTrail?: boolean;
9
+ subRowHeaders?: string[];
10
+ enableToggleExpansion?: "all" | "header";
11
+ }
12
+ export declare const SubRowHeaderRow: ({ row, table, onClick, collapsibleTrail, subRowHeaders, enableToggleExpansion, }: SubRowHeaderRowProps & GlobalProps) => JSX.Element;
13
+ export {};
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { Header } from "@tanstack/react-table";
3
+ import { DataType } from "../Utilities/types";
4
+ import { GlobalProps } from "../../utilities/globalProps";
5
+ declare type TableHeaderCellProps = {
6
+ headerChildren?: React.ReactNode | React.ReactNode[];
7
+ enableSorting?: boolean;
8
+ enableToggleExpansion?: "all" | "header";
9
+ handleExpandOrCollapse?: () => void;
10
+ header?: Header<DataType, unknown>;
11
+ headerId?: string;
12
+ loading?: boolean;
13
+ sortIcon?: string | string[];
14
+ } & GlobalProps;
15
+ export declare const TableHeaderCell: ({ header, headerId, enableSorting, sortIcon, headerChildren, loading, enableToggleExpansion, handleExpandOrCollapse, }: TableHeaderCellProps) => JSX.Element;
16
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Row } from "@tanstack/react-table";
2
+ import { DataType } from "../Utilities/types";
3
+ interface ToggleIconButtonProps {
4
+ row?: Row<DataType>;
5
+ onClick: (row: Row<DataType>) => void;
6
+ }
7
+ export declare const ToggleIconButton: ({ row, onClick }: ToggleIconButtonProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const AdvancedTableContext: import("react").Context<any>;
3
+ export default AdvancedTableContext;
@@ -0,0 +1,6 @@
1
+ declare type TableBodyProps = {
2
+ collapsibleTrail?: boolean;
3
+ subRowHeaders?: string[];
4
+ };
5
+ export declare const TableBody: ({ collapsibleTrail, subRowHeaders, }: TableBodyProps) => JSX.Element;
6
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ declare type TableHeaderProps = {
3
+ headerId?: string;
4
+ enableSorting?: boolean;
5
+ sortIcon?: string | string[];
6
+ children?: React.ReactNode | React.ReactNode[];
7
+ };
8
+ export declare const TableHeader: ({ headerId, enableSorting, children, sortIcon, }: TableHeaderProps) => JSX.Element;
9
+ export {};
@@ -0,0 +1,5 @@
1
+ import { RowModel } from "@tanstack/react-table";
2
+ import { DataType } from "./types";
3
+ export declare const updateExpandAndCollapseState: (tableRows: RowModel<DataType>, expanded: Record<string, boolean>, targetParent: string) => Record<string, boolean>;
4
+ export declare const isChrome: () => boolean;
5
+ export declare const displayIcon: (icon: string | string[]) => string[];
@@ -0,0 +1,5 @@
1
+ import { ExpandedState } from "@tanstack/react-table";
2
+ export declare type ExpandedStateObject = Extract<ExpandedState, Record<string, boolean>>;
3
+ export declare type DataType = {
4
+ [key: string]: any;
5
+ };
@@ -0,0 +1,41 @@
1
+ import React from "react";
2
+ import { GlobalProps } from "../utilities/globalProps";
3
+ import { Row } from "@tanstack/react-table";
4
+ import { DataType } from "./Utilities/types";
5
+ declare type AdvancedTableProps = {
6
+ aria?: {
7
+ [key: string]: string;
8
+ };
9
+ className?: string;
10
+ data?: {
11
+ [key: string]: string;
12
+ };
13
+ id?: string;
14
+ tableData: DataType[];
15
+ loading?: boolean | string;
16
+ columnDefinitions: DataType[];
17
+ children?: React.ReactNode | React.ReactNode[];
18
+ onRowToggleClick?: (arg: Row<DataType>) => void;
19
+ onToggleExpansionClick?: (arg: Row<DataType>) => void;
20
+ tableOptions?: DataType;
21
+ tableProps?: DataType;
22
+ enableToggleExpansion?: "all" | "header";
23
+ toggleExpansionIcon?: string | string[];
24
+ initialLoadingRowsCount?: number;
25
+ expandedControl?: DataType;
26
+ sortControl?: DataType;
27
+ } & GlobalProps;
28
+ declare const AdvancedTable: {
29
+ (props: AdvancedTableProps): JSX.Element;
30
+ Header: ({ headerId, enableSorting, children, sortIcon, }: {
31
+ headerId?: string;
32
+ enableSorting?: boolean;
33
+ sortIcon?: string | string[];
34
+ children?: React.ReactNode | React.ReactNode[];
35
+ }) => JSX.Element;
36
+ Body: ({ collapsibleTrail, subRowHeaders, }: {
37
+ collapsibleTrail?: boolean;
38
+ subRowHeaders?: string[];
39
+ }) => JSX.Element;
40
+ };
41
+ export default AdvancedTable;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { VoidCallback } from "../types";
2
3
  declare type FixedConfirmationToastProps = {
3
4
  autoClose?: number;
4
5
  children?: React.ReactChild[] | React.ReactChild;
@@ -7,15 +8,15 @@ declare type FixedConfirmationToastProps = {
7
8
  data?: string;
8
9
  horizontal?: "right" | "left" | "center";
9
10
  htmlOptions?: {
10
- [key: string]: string | number | boolean | (() => void);
11
+ [key: string]: string | number | boolean | (VoidCallback);
11
12
  };
12
13
  id?: string;
13
14
  multiLine?: boolean;
14
- onClose?: () => void;
15
+ onClose?: VoidCallback;
15
16
  open?: boolean;
16
17
  status?: "success" | "error" | "neutral" | "tip";
17
18
  text?: string;
18
19
  vertical?: "top" | "bottom";
19
20
  };
20
- declare const FixedConfirmationToast: (props: FixedConfirmationToastProps) => JSX.Element;
21
+ declare const FixedConfirmationToast: (props: FixedConfirmationToastProps) => React.ReactElement;
21
22
  export default FixedConfirmationToast;
@@ -1,14 +1,14 @@
1
1
  import React from 'react';
2
2
  import { GlobalProps } from '../utilities/globalProps';
3
- import { Sizes } from '../types';
3
+ import { GenericObject, Sizes } from '../types';
4
4
  declare type FlexProps = {
5
5
  children: React.ReactChild[] | React.ReactNode;
6
6
  className?: string;
7
- data?: object;
7
+ data?: GenericObject;
8
8
  horizontal?: "left" | "center" | "right" | "stretch" | "none";
9
9
  justify?: "start" | "center" | "end" | "around" | "between" | "evenly" | "none";
10
10
  htmlOptions?: {
11
- [key: string]: string | number | boolean | (() => void);
11
+ [key: string]: string | number | boolean | (() => void) | ((arg?: unknown) => void);
12
12
  };
13
13
  id?: string;
14
14
  inline?: boolean;
@@ -23,5 +23,5 @@ declare type FlexProps = {
23
23
  wrap?: boolean;
24
24
  alignSelf?: "start" | "end" | "center" | "stretch" | "none";
25
25
  } & GlobalProps;
26
- declare const Flex: (props: FlexProps) => JSX.Element;
26
+ declare const Flex: (props: FlexProps) => React.ReactElement;
27
27
  export default Flex;
@@ -1,15 +1,17 @@
1
+ import React from 'react';
2
+ import { GenericObject } from '../types';
1
3
  declare type FormGroupProps = {
2
4
  aria?: {
3
5
  [key: string]: string;
4
6
  };
5
7
  children?: Node;
6
8
  className?: string;
7
- data?: object;
9
+ data?: GenericObject;
8
10
  fullWidth?: boolean;
9
11
  htmlOptions?: {
10
12
  [key: string]: string | number | boolean | (() => void);
11
13
  };
12
14
  id?: string;
13
15
  };
14
- declare const FormGroup: (props: FormGroupProps) => JSX.Element;
16
+ declare const FormGroup: (props: FormGroupProps) => React.ReactElement;
15
17
  export default FormGroup;
@@ -19,5 +19,5 @@ declare type FormPillProps = {
19
19
  onTouchEnd?: React.TouchEventHandler<HTMLSpanElement>;
20
20
  };
21
21
  } & GlobalProps;
22
- declare const FormPill: (props: FormPillProps) => JSX.Element;
22
+ declare const FormPill: (props: FormPillProps) => React.ReactElement;
23
23
  export default FormPill;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  declare type GaugeProps = {
2
3
  aria: {
3
4
  [key: string]: string;
@@ -7,7 +8,7 @@ declare type GaugeProps = {
7
8
  name: string;
8
9
  value: number[] | number;
9
10
  }[];
10
- dark?: Boolean;
11
+ dark?: boolean;
11
12
  data?: {
12
13
  [key: string]: string;
13
14
  };
@@ -27,8 +28,8 @@ declare type GaugeProps = {
27
28
  title?: string;
28
29
  tooltipHtml?: string;
29
30
  colors: string[];
30
- minorTickInterval: any;
31
+ minorTickInterval?: number;
31
32
  circumference: number[];
32
33
  };
33
- declare const Gauge: ({ aria, className, chartData, dark, data, disableAnimation, fullCircle, height, htmlOptions, id, max, min, prefix, showLabels, style, suffix, title, tooltipHtml, colors, minorTickInterval, circumference, ...props }: GaugeProps) => JSX.Element;
34
+ declare const Gauge: ({ aria, chartData, dark, data, disableAnimation, fullCircle, height, htmlOptions, id, max, min, prefix, showLabels, style, suffix, title, tooltipHtml, colors, minorTickInterval, circumference, ...props }: GaugeProps) => React.ReactElement;
34
35
  export default Gauge;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  declare type HomeAddressStreetProps = {
2
3
  aria?: {
3
4
  [key: string]: string;
@@ -22,5 +23,5 @@ declare type HomeAddressStreetProps = {
22
23
  zipcode: string;
23
24
  territory: string;
24
25
  };
25
- declare const HomeAddressStreet: (props: HomeAddressStreetProps) => JSX.Element;
26
+ declare const HomeAddressStreet: (props: HomeAddressStreetProps) => React.ReactElement;
26
27
  export default HomeAddressStreet;
@@ -1,9 +1,11 @@
1
+ import React from 'react';
2
+ import { GenericObject } from '../types';
1
3
  declare type IconStatValueProps = {
2
4
  aria?: {
3
5
  [key: string]: string;
4
6
  };
5
7
  className?: string;
6
- data?: object;
8
+ data?: GenericObject;
7
9
  dark?: boolean;
8
10
  icon: string;
9
11
  htmlOptions?: {
@@ -17,5 +19,5 @@ declare type IconStatValueProps = {
17
19
  value: number;
18
20
  variant?: "default" | "royal" | "blue" | "purple" | "teal" | "red" | "yellow" | "orange" | "green";
19
21
  };
20
- declare const IconStatValue: (props: IconStatValueProps) => JSX.Element;
22
+ declare const IconStatValue: (props: IconStatValueProps) => React.ReactElement;
21
23
  export default IconStatValue;
@@ -1,3 +1,5 @@
1
+ import React from 'react';
2
+ import { GenericObject } from '../types';
1
3
  declare type IconValueProps = {
2
4
  align?: "left" | "center" | "right";
3
5
  aria?: {
@@ -5,7 +7,7 @@ declare type IconValueProps = {
5
7
  };
6
8
  className?: string;
7
9
  dark?: boolean;
8
- data?: object;
10
+ data?: GenericObject;
9
11
  icon: string;
10
12
  htmlOptions?: {
11
13
  [key: string]: string | number | boolean | (() => void);
@@ -13,5 +15,5 @@ declare type IconValueProps = {
13
15
  id?: string;
14
16
  text: string;
15
17
  };
16
- declare const IconValue: (props: IconValueProps) => JSX.Element;
18
+ declare const IconValue: (props: IconValueProps) => React.ReactElement;
17
19
  export default IconValue;
@@ -5,7 +5,7 @@ declare type LabelValueProps = {
5
5
  };
6
6
  className?: string;
7
7
  dark?: boolean;
8
- data?: object;
8
+ data?: Record<string, unknown>;
9
9
  date?: Date;
10
10
  htmlOptions?: {
11
11
  [key: string]: string | number | boolean | (() => void);
@@ -7,7 +7,7 @@ declare type LayoutPropTypes = {
7
7
  className?: string;
8
8
  collapse?: "xs" | "sm" | "md" | "lg" | "xl";
9
9
  dark?: boolean;
10
- data?: object;
10
+ data?: Record<string, unknown>;
11
11
  full?: boolean;
12
12
  htmlOptions?: {
13
13
  [key: string]: string | number | boolean | (() => void);
@@ -5,7 +5,7 @@ declare type LegendProps = {
5
5
  className?: string;
6
6
  color?: string;
7
7
  dark?: boolean;
8
- data?: object;
8
+ data?: Record<string, unknown>;
9
9
  htmlOptions?: {
10
10
  [key: string]: string | number | boolean | (() => void);
11
11
  };
@@ -16,7 +16,7 @@ declare type LightboxType = {
16
16
  id?: string;
17
17
  photos: [];
18
18
  initialPhoto?: number;
19
- onChange?: (index: number) => {};
19
+ onChange?: (index: number) => void;
20
20
  onClickRight?: () => void;
21
21
  onClose?: () => void;
22
22
  icon: string;
@@ -1,7 +1,7 @@
1
1
  declare type LineGraphProps = {
2
2
  align?: "left" | "right" | "center";
3
3
  axisTitle?: string;
4
- dark?: Boolean;
4
+ dark?: boolean;
5
5
  xAxisCategories: [];
6
6
  yAxisMin: number;
7
7
  yAxisMax: number;
@@ -7,7 +7,7 @@ declare type ListProps = {
7
7
  className?: string;
8
8
  children: React.ReactNode[] | React.ReactNode;
9
9
  dark?: boolean;
10
- data?: object;
10
+ data?: Record<string, unknown>;
11
11
  htmlOptions?: {
12
12
  [key: string]: string | number | boolean | (() => void);
13
13
  };
@@ -5,7 +5,7 @@ declare type ListItemProps = {
5
5
  };
6
6
  children: React.ReactNode[] | React.ReactNode;
7
7
  className?: string;
8
- data?: object;
8
+ data?: Record<string, unknown>;
9
9
  htmlOptions?: {
10
10
  [key: string]: string | number | boolean | (() => void);
11
11
  };
@@ -15,18 +15,18 @@ declare type MapProps = {
15
15
  id?: string;
16
16
  zoomBtns?: boolean;
17
17
  flyTo?: boolean;
18
- zoomInClick?: () => {};
19
- zoomOutClick?: () => {};
20
- flyToClick?: () => {};
18
+ zoomInClick?: () => void;
19
+ zoomOutClick?: () => void;
20
+ flyToClick?: () => void;
21
21
  } & GlobalProps;
22
22
  declare const Map: {
23
23
  (props: MapProps): JSX.Element;
24
24
  Controls: ({ zoomBtns, zoomInClick, zoomOutClick, flyTo, flyToClick, children, }: {
25
25
  zoomBtns?: boolean;
26
26
  flyTo?: boolean;
27
- zoomInClick?: () => {};
28
- zoomOutClick?: () => {};
29
- flyToClick?: () => {};
27
+ zoomInClick?: () => void;
28
+ zoomOutClick?: () => void;
29
+ flyToClick?: () => void;
30
30
  children?: React.ReactNode | React.ReactNode[];
31
31
  }) => JSX.Element;
32
32
  };
@@ -2,9 +2,9 @@ import React from "react";
2
2
  declare type MapControlTypes = {
3
3
  zoomBtns?: boolean;
4
4
  flyTo?: boolean;
5
- zoomInClick?: () => {};
6
- zoomOutClick?: () => {};
7
- flyToClick?: () => {};
5
+ zoomInClick?: () => void;
6
+ zoomOutClick?: () => void;
7
+ flyToClick?: () => void;
8
8
  children?: React.ReactNode | React.ReactNode[];
9
9
  };
10
10
  declare const MapControls: ({ zoomBtns, zoomInClick, zoomOutClick, flyTo, flyToClick, children, }: MapControlTypes) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  declare type MapCustomButtonTypes = {
2
- onClick?: () => {};
2
+ onClick?: () => void;
3
3
  icon?: string;
4
4
  };
5
5
  declare const MapCustomButton: ({ onClick, icon }: MapCustomButtonTypes) => JSX.Element;
@@ -8,7 +8,7 @@ declare type MessageProps = {
8
8
  avatarUrl?: string;
9
9
  children?: React.ReactChild[] | React.ReactChild;
10
10
  className?: string;
11
- data?: object;
11
+ data?: Record<string, unknown>;
12
12
  htmlOptions?: {
13
13
  [key: string]: string | number | boolean | (() => void);
14
14
  };
@@ -28,7 +28,7 @@ declare const Message: {
28
28
  };
29
29
  children?: React.ReactChild | React.ReactChild[];
30
30
  className?: string;
31
- data?: object;
31
+ data?: Record<string, unknown>;
32
32
  htmlOptions?: {
33
33
  [key: string]: string | number | boolean | (() => void);
34
34
  };
@@ -5,7 +5,7 @@ declare type MessageMentionProps = {
5
5
  };
6
6
  children?: React.ReactChild[] | React.ReactChild;
7
7
  className?: string;
8
- data?: object;
8
+ data?: Record<string, unknown>;
9
9
  htmlOptions?: {
10
10
  [key: string]: string | number | boolean | (() => void);
11
11
  };
@@ -11,7 +11,7 @@ declare type NavItemProps = {
11
11
  children?: React.ReactNode[] | React.ReactNode;
12
12
  className?: string;
13
13
  collapsible?: boolean;
14
- data?: object;
14
+ data?: Record<string, unknown>;
15
15
  dark?: boolean;
16
16
  fontSize?: "normal" | "small";
17
17
  htmlOptions?: {
@@ -8,19 +8,19 @@ declare type NavProps = {
8
8
  borderless?: boolean;
9
9
  children?: React.ReactNode[] | React.ReactNode;
10
10
  className?: string | string[];
11
- data?: object;
11
+ data?: Record<string, unknown>;
12
12
  dark?: boolean;
13
13
  highlight?: boolean;
14
14
  htmlOptions?: {
15
15
  [key: string]: string | number | boolean | (() => void);
16
16
  };
17
17
  id?: string;
18
- onClick?: React.MouseEventHandler<HTMLElement>;
18
+ onClick?: () => void;
19
19
  orientation?: "vertical" | "horizontal";
20
20
  link?: string;
21
21
  title?: string;
22
22
  variant?: "normal" | "subtle";
23
23
  itemSpacing?: SpacingObject;
24
24
  } & GlobalProps;
25
- declare const Nav: (props: NavProps) => JSX.Element;
25
+ declare const Nav: (props: NavProps) => React.ReactElement;
26
26
  export default Nav;
@@ -1,22 +1,24 @@
1
+ import React from "react";
2
+ import { GenericObject } from "../types";
1
3
  declare type PassphraseProps = {
2
4
  aria?: {
3
5
  [key: string]: string;
4
6
  };
5
7
  confirmation?: boolean;
6
8
  className?: string;
7
- data?: object;
9
+ data?: GenericObject;
8
10
  dark?: boolean;
9
11
  htmlOptions?: {
10
12
  [key: string]: string | number | boolean | (() => void);
11
13
  };
12
14
  id?: string;
13
- inputProps?: {};
15
+ inputProps?: GenericObject;
14
16
  label?: string;
15
- onChange: (inputValue: String) => void;
17
+ onChange: (inputValue: string) => void;
16
18
  showTipsBelow?: "always" | "xs" | "sm" | "md" | "lg" | "xl";
17
19
  tips?: Array<string>;
18
20
  uncontrolled?: boolean;
19
21
  value: string;
20
22
  };
21
- declare const Passphrase: (props: PassphraseProps) => JSX.Element;
23
+ declare const Passphrase: (props: PassphraseProps) => React.ReactElement;
22
24
  export default Passphrase;
@@ -1,3 +1,5 @@
1
+ import React from 'react';
2
+ import { GenericObject } from '../types';
1
3
  declare type ContactItem = {
2
4
  contactType: string;
3
5
  contactValue: string;
@@ -8,7 +10,7 @@ declare type PersonContactProps = {
8
10
  [key: string]: string;
9
11
  };
10
12
  className?: string | string[];
11
- data?: object;
13
+ data?: GenericObject;
12
14
  firstName: string;
13
15
  htmlOptions?: {
14
16
  [key: string]: string | number | boolean | (() => void);
@@ -17,5 +19,5 @@ declare type PersonContactProps = {
17
19
  lastName: string;
18
20
  contacts?: ContactItem[];
19
21
  };
20
- declare const PersonContact: (props: PersonContactProps) => JSX.Element;
22
+ declare const PersonContact: (props: PersonContactProps) => React.ReactElement;
21
23
  export default PersonContact;
@@ -21,5 +21,5 @@ declare type PbPopoverProps = {
21
21
  } & GlobalProps & Omit<PopperProps<any>, 'children'> & {
22
22
  children?: React.ReactChild[] | React.ReactChild;
23
23
  };
24
- declare const PbReactPopover: (props: PbPopoverProps) => JSX.Element;
24
+ declare const PbReactPopover: (props: PbPopoverProps) => React.ReactElement;
25
25
  export default PbReactPopover;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  declare type ProgressSimpleProps = {
2
3
  align?: "left" | "center" | "right";
3
4
  className?: string | string[];
@@ -14,5 +15,5 @@ declare type ProgressSimpleProps = {
14
15
  variant?: "default" | "positive" | "negative" | "warning";
15
16
  width: string;
16
17
  };
17
- declare const ProgressSimple: (props: ProgressSimpleProps) => JSX.Element;
18
+ declare const ProgressSimple: (props: ProgressSimpleProps) => React.ReactElement;
18
19
  export default ProgressSimple;