playbook-ui 13.15.0-alpha.reactselectbump581876 → 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.
- package/CHANGELOG.md +28 -0
- package/dist/menu.yml +4 -1
- package/dist/pb_advanced_table/Components/CollapsibleTrail.d.ts +1 -0
- package/dist/pb_advanced_table/Components/CustomCell.d.ts +11 -0
- package/dist/pb_advanced_table/Components/LoadingCell.d.ts +1 -0
- package/dist/pb_advanced_table/Components/SortIconButton.d.ts +8 -0
- package/dist/pb_advanced_table/Components/SubRowHeaderRow.d.ts +13 -0
- package/dist/pb_advanced_table/Components/TableHeaderCell.d.ts +16 -0
- package/dist/pb_advanced_table/Components/ToggleIconButton.d.ts +8 -0
- package/dist/pb_advanced_table/Context/AdvancedTableContext.d.ts +3 -0
- package/dist/pb_advanced_table/SubComponents/TableBody.d.ts +6 -0
- package/dist/pb_advanced_table/SubComponents/TableHeader.d.ts +9 -0
- package/dist/pb_advanced_table/Utilities/helper_functions.d.ts +5 -0
- package/dist/pb_advanced_table/Utilities/types.d.ts +5 -0
- package/dist/pb_advanced_table/_advanced_table.d.ts +41 -0
- package/dist/pb_fixed_confirmation_toast/_fixed_confirmation_toast.d.ts +4 -3
- package/dist/pb_flex/_flex.d.ts +4 -4
- package/dist/pb_form_group/_form_group.d.ts +4 -2
- package/dist/pb_form_pill/_form_pill.d.ts +1 -1
- package/dist/pb_gauge/_gauge.d.ts +4 -3
- package/dist/pb_home_address_street/_home_address_street.d.ts +2 -1
- package/dist/pb_icon_stat_value/_icon_stat_value.d.ts +4 -2
- package/dist/pb_icon_value/_icon_value.d.ts +4 -2
- package/dist/pb_label_value/_label_value.d.ts +1 -1
- package/dist/pb_layout/_layout.d.ts +1 -1
- package/dist/pb_legend/_legend.d.ts +1 -1
- package/dist/pb_lightbox/_lightbox.d.ts +1 -1
- package/dist/pb_line_graph/_line_graph.d.ts +1 -1
- package/dist/pb_list/_list.d.ts +1 -1
- package/dist/pb_list/_list_item.d.ts +1 -1
- package/dist/pb_map/_map.d.ts +6 -6
- package/dist/pb_map/_map_controls.d.ts +3 -3
- package/dist/pb_map/_map_custom_button.d.ts +1 -1
- package/dist/pb_message/_message.d.ts +2 -2
- package/dist/pb_message/_message_mention.d.ts +1 -1
- package/dist/pb_nav/_item.d.ts +1 -1
- package/dist/pb_nav/_nav.d.ts +3 -3
- package/dist/pb_passphrase/_passphrase.d.ts +6 -4
- package/dist/pb_person_contact/_person_contact.d.ts +4 -2
- package/dist/pb_popover/_popover.d.ts +1 -1
- package/dist/pb_progress_simple/_progress_simple.d.ts +2 -1
- package/dist/pb_radio/_radio.d.ts +76 -76
- package/dist/pb_rich_text_editor/TipTap/EditorButton.d.ts +3 -2
- package/dist/pb_rich_text_editor/TipTap/EditorTypes.d.ts +1 -1
- package/dist/pb_rich_text_editor/TipTap/Toolbar.d.ts +2 -1
- package/dist/pb_rich_text_editor/TipTap/ToolbarDropdown.d.ts +2 -1
- package/dist/pb_rich_text_editor/TipTap/ToolbarHistory.d.ts +2 -1
- package/dist/pb_rich_text_editor/TipTap/ToolbarNodes.d.ts +2 -1
- package/dist/pb_rich_text_editor/_rich_text_editor.d.ts +2 -2
- package/dist/pb_section_separator/_section_separator.d.ts +1 -1
- package/dist/pb_select/_select.d.ts +80 -76
- package/dist/pb_selectable_card_icon/_selectable_card_icon.d.ts +1 -1
- package/dist/pb_selectable_icon/_selectable_icon.d.ts +4 -2
- package/dist/pb_selectable_list/_selectable_list.d.ts +2 -1
- package/dist/pb_source/_source.d.ts +2 -1
- package/dist/pb_table/_table.d.ts +7 -6
- package/dist/pb_text_input/_text_input.d.ts +76 -76
- package/dist/pb_textarea/_textarea.d.ts +76 -76
- package/dist/pb_tooltip/_tooltip.d.ts +76 -76
- package/dist/playbook-doc.js +29 -7
- package/dist/playbook-rails.js +6 -6
- package/dist/playbook.css +1 -1
- package/dist/playbook.js +30 -8
- package/dist/types/base.d.ts +1 -0
- package/dist/types/data.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/utilities/globalProps.d.ts +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
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
|
+
|
|
1
29
|
# 13.15.0
|
|
2
30
|
##### January 5, 2024
|
|
3
31
|
|
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,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,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 | (
|
|
11
|
+
[key: string]: string | number | boolean | (VoidCallback);
|
|
11
12
|
};
|
|
12
13
|
id?: string;
|
|
13
14
|
multiLine?: boolean;
|
|
14
|
-
onClose?:
|
|
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) =>
|
|
21
|
+
declare const FixedConfirmationToast: (props: FixedConfirmationToastProps) => React.ReactElement;
|
|
21
22
|
export default FixedConfirmationToast;
|
package/dist/pb_flex/_flex.d.ts
CHANGED
|
@@ -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?:
|
|
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) =>
|
|
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?:
|
|
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) =>
|
|
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) =>
|
|
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?:
|
|
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
|
|
31
|
+
minorTickInterval?: number;
|
|
31
32
|
circumference: number[];
|
|
32
33
|
};
|
|
33
|
-
declare const Gauge: ({ aria,
|
|
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) =>
|
|
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?:
|
|
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) =>
|
|
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?:
|
|
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) =>
|
|
18
|
+
declare const IconValue: (props: IconValueProps) => React.ReactElement;
|
|
17
19
|
export default IconValue;
|
|
@@ -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?:
|
|
10
|
+
data?: Record<string, unknown>;
|
|
11
11
|
full?: boolean;
|
|
12
12
|
htmlOptions?: {
|
|
13
13
|
[key: string]: string | number | boolean | (() => void);
|
package/dist/pb_list/_list.d.ts
CHANGED
package/dist/pb_map/_map.d.ts
CHANGED
|
@@ -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;
|
|
@@ -8,7 +8,7 @@ declare type MessageProps = {
|
|
|
8
8
|
avatarUrl?: string;
|
|
9
9
|
children?: React.ReactChild[] | React.ReactChild;
|
|
10
10
|
className?: string;
|
|
11
|
-
data?:
|
|
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?:
|
|
31
|
+
data?: Record<string, unknown>;
|
|
32
32
|
htmlOptions?: {
|
|
33
33
|
[key: string]: string | number | boolean | (() => void);
|
|
34
34
|
};
|
package/dist/pb_nav/_item.d.ts
CHANGED
package/dist/pb_nav/_nav.d.ts
CHANGED
|
@@ -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?:
|
|
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?:
|
|
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) =>
|
|
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?:
|
|
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:
|
|
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) =>
|
|
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?:
|
|
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) =>
|
|
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) =>
|
|
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) =>
|
|
18
|
+
declare const ProgressSimple: (props: ProgressSimpleProps) => React.ReactElement;
|
|
18
19
|
export default ProgressSimple;
|