playbook-ui 13.12.0 → 13.13.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 (192) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/changelog.rb +47 -0
  3. package/dist/pb_avatar/_avatar.d.ts +23 -0
  4. package/dist/pb_avatar_action_button/_avatar_action_button.d.ts +24 -0
  5. package/dist/pb_background/_background.d.ts +36 -0
  6. package/dist/pb_badge/_badge.d.ts +27 -0
  7. package/dist/pb_bar_graph/_bar_graph.d.ts +38 -0
  8. package/dist/pb_body/_body.d.ts +27 -0
  9. package/dist/pb_bread_crumbs/_bread_crumb_item.d.ts +15 -0
  10. package/dist/pb_bread_crumbs/_bread_crumbs.d.ts +16 -0
  11. package/dist/pb_button/_button.d.ts +40 -0
  12. package/dist/pb_button_toolbar/_button_toolbar.d.ts +20 -0
  13. package/dist/pb_caption/_caption.d.ts +23 -0
  14. package/dist/pb_card/_card.d.ts +45 -0
  15. package/dist/pb_checkbox/_checkbox.d.ts +27 -0
  16. package/dist/pb_circle_chart/ChartsTypes.d.ts +2 -0
  17. package/dist/pb_circle_chart/_circle_chart.d.ts +38 -0
  18. package/dist/pb_circle_icon_button/_circle_icon_button.d.ts +24 -0
  19. package/dist/pb_collapsible/_collapsible.d.ts +32 -0
  20. package/dist/pb_collapsible/_helper_functions.d.ts +2 -0
  21. package/dist/pb_collapsible/child_kits/CollapsibleContent.d.ts +7 -0
  22. package/dist/pb_collapsible/child_kits/CollapsibleMain.d.ts +10 -0
  23. package/dist/pb_collapsible/context.d.ts +3 -0
  24. package/dist/pb_collapsible/useCollapsible.d.ts +2 -0
  25. package/dist/pb_contact/_contact.d.ts +16 -0
  26. package/dist/pb_currency/_currency.d.ts +27 -0
  27. package/dist/pb_dashboard/pbChartsColorsHelper.d.ts +2 -0
  28. package/dist/pb_dashboard/pbChartsDarkTheme.d.ts +3 -0
  29. package/dist/pb_dashboard/pbChartsLightTheme.d.ts +3 -0
  30. package/dist/pb_dashboard/themeTypes.d.ts +40 -0
  31. package/dist/pb_dashboard_value/_dashboard_value.d.ts +26 -0
  32. package/dist/pb_dashboard_value/dashboardValueSettings.d.ts +43 -0
  33. package/dist/pb_date/_date.d.ts +21 -0
  34. package/dist/pb_date_picker/_date_picker.d.ts +53 -0
  35. package/dist/pb_date_picker/date_picker_helper.d.ts +23 -0
  36. package/dist/pb_date_picker/plugins/quickPick.d.ts +18 -0
  37. package/dist/pb_date_picker/plugins/timeSelect.d.ts +44 -0
  38. package/dist/pb_date_range_inline/_date_range_inline.d.ts +16 -0
  39. package/dist/pb_date_range_stacked/_date_range_stacked.d.ts +13 -0
  40. package/dist/pb_date_stacked/_date_stacked.d.ts +16 -0
  41. package/dist/pb_date_time/_date_time.d.ts +21 -0
  42. package/dist/pb_date_time_stacked/_date_time_stacked.d.ts +13 -0
  43. package/dist/pb_date_year_stacked/_date_year_stacked.d.ts +13 -0
  44. package/dist/pb_detail/_detail.d.ts +23 -0
  45. package/dist/pb_dialog/_close_icon.d.ts +5 -0
  46. package/dist/pb_dialog/_dialog.d.ts +77 -0
  47. package/dist/pb_dialog/_dialog_context.d.ts +2 -0
  48. package/dist/pb_dialog/child_kits/_dialog_body.d.ts +8 -0
  49. package/dist/pb_dialog/child_kits/_dialog_footer.d.ts +23 -0
  50. package/dist/pb_dialog/child_kits/_dialog_header.d.ts +22 -0
  51. package/dist/pb_distribution_bar/_distribution_bar.d.ts +13 -0
  52. package/dist/pb_enhanced_element/element_observer.d.ts +17 -0
  53. package/dist/pb_enhanced_element/index.d.ts +17 -0
  54. package/dist/pb_file_upload/_file_upload.d.ts +19 -0
  55. package/dist/pb_filter/Filter/CurrentFilters.d.ts +10 -0
  56. package/dist/pb_filter/Filter/FilterBackground.d.ts +10 -0
  57. package/dist/pb_filter/Filter/FilterDouble.d.ts +14 -0
  58. package/dist/pb_filter/Filter/FilterSingle.d.ts +14 -0
  59. package/dist/pb_filter/Filter/FiltersPopover.d.ts +11 -0
  60. package/dist/pb_filter/Filter/ResultsCount.d.ts +8 -0
  61. package/dist/pb_filter/Filter/SortMenu.d.ts +18 -0
  62. package/dist/pb_filter/Filter/index.d.ts +8 -0
  63. package/dist/pb_filter/_filter.d.ts +1 -0
  64. package/dist/pb_fixed_confirmation_toast/_fixed_confirmation_toast.d.ts +21 -0
  65. package/dist/pb_flex/_flex.d.ts +27 -0
  66. package/dist/pb_flex/_flex_item.d.ts +17 -0
  67. package/dist/pb_form_group/_form_group.d.ts +15 -0
  68. package/dist/pb_form_pill/_form_pill.d.ts +23 -0
  69. package/dist/pb_gauge/_gauge.d.ts +34 -0
  70. package/dist/pb_hashtag/_hashtag.d.ts +20 -0
  71. package/dist/pb_highlight/_highlight.d.ts +17 -0
  72. package/dist/pb_home_address_street/_home_address_street.d.ts +26 -0
  73. package/dist/pb_icon/_icon.d.ts +32 -0
  74. package/dist/pb_icon_circle/_icon_circle.d.ts +19 -0
  75. package/dist/pb_icon_stat_value/_icon_stat_value.d.ts +21 -0
  76. package/dist/pb_icon_value/_icon_value.d.ts +17 -0
  77. package/dist/pb_image/_image.d.ts +23 -0
  78. package/dist/pb_kit/dateTime.d.ts +67 -0
  79. package/dist/pb_label_pill/_label_pill.d.ts +18 -0
  80. package/dist/pb_label_value/_label_value.d.ts +22 -0
  81. package/dist/pb_layout/_layout.d.ts +51 -0
  82. package/dist/pb_legend/_legend.d.ts +17 -0
  83. package/dist/pb_lightbox/Carousel/Slide.d.ts +12 -0
  84. package/dist/pb_lightbox/Carousel/Slides.d.ts +10 -0
  85. package/dist/pb_lightbox/Carousel/Thumbnail.d.ts +11 -0
  86. package/dist/pb_lightbox/Carousel/Thumbnails.d.ts +9 -0
  87. package/dist/pb_lightbox/Carousel/index.d.ts +16 -0
  88. package/dist/pb_lightbox/Header/_lightbox_header.d.ts +25 -0
  89. package/dist/pb_lightbox/_lightbox.d.ts +51 -0
  90. package/dist/pb_lightbox/_lightbox_context.d.ts +2 -0
  91. package/dist/pb_lightbox/hooks/useKbdControls.d.ts +3 -0
  92. package/dist/pb_lightbox/hooks/useWindowSize.d.ts +6 -0
  93. package/dist/pb_line_graph/_line_graph.d.ts +38 -0
  94. package/dist/pb_list/_list.d.ts +25 -0
  95. package/dist/pb_list/_list_item.d.ts +16 -0
  96. package/dist/pb_loading_inline/_loading_inline.d.ts +16 -0
  97. package/dist/pb_map/_map.d.ts +33 -0
  98. package/dist/pb_map/_map_controls.d.ts +11 -0
  99. package/dist/pb_map/_map_custom_button.d.ts +6 -0
  100. package/dist/pb_map/pbMapTheme.d.ts +20 -0
  101. package/dist/pb_message/_message.d.ts +39 -0
  102. package/dist/pb_message/_message_mention.d.ts +16 -0
  103. package/dist/pb_multi_level_select/_helper_functions.d.ts +33 -0
  104. package/dist/pb_multi_level_select/_multi_level_select.d.ts +28 -0
  105. package/dist/pb_multiple_users/_multiple_users.d.ts +23 -0
  106. package/dist/pb_multiple_users_stacked/_multiple_users_stacked.d.ts +19 -0
  107. package/dist/pb_nav/_item.d.ts +43 -0
  108. package/dist/pb_nav/_nav.d.ts +26 -0
  109. package/dist/pb_nav/navTypes.d.ts +22 -0
  110. package/dist/pb_online_status/_online_status.d.ts +17 -0
  111. package/dist/pb_passphrase/_passphrase.d.ts +22 -0
  112. package/dist/pb_person/_person.d.ts +18 -0
  113. package/dist/pb_person_contact/_person_contact.d.ts +21 -0
  114. package/dist/pb_phone_number_input/_phone_number_input.d.ts +37 -0
  115. package/dist/pb_pill/_pill.d.ts +19 -0
  116. package/dist/pb_popover/_popover.d.ts +25 -0
  117. package/dist/pb_popover/index.d.ts +21 -0
  118. package/dist/pb_progress_pills/_progress_pills.d.ts +20 -0
  119. package/dist/pb_progress_simple/_progress_simple.d.ts +18 -0
  120. package/dist/pb_progress_step/_progress_step.d.ts +22 -0
  121. package/dist/pb_progress_step/_progress_step_item.d.ts +15 -0
  122. package/dist/pb_radio/_radio.d.ts +367 -0
  123. package/dist/pb_rich_text_editor/TipTap/EditorButton.d.ts +9 -0
  124. package/dist/pb_rich_text_editor/TipTap/EditorTypes.d.ts +9 -0
  125. package/dist/pb_rich_text_editor/TipTap/MoreExtensionsDropdown.d.ts +2 -0
  126. package/dist/pb_rich_text_editor/TipTap/Toolbar.d.ts +2 -0
  127. package/dist/pb_rich_text_editor/TipTap/ToolbarDropdown.d.ts +2 -0
  128. package/dist/pb_rich_text_editor/TipTap/ToolbarHistory.d.ts +2 -0
  129. package/dist/pb_rich_text_editor/TipTap/ToolbarNodes.d.ts +2 -0
  130. package/dist/pb_rich_text_editor/_rich_text_editor.d.ts +34 -0
  131. package/dist/pb_rich_text_editor/inlineFocus.d.ts +2 -0
  132. package/dist/pb_rich_text_editor/useFocus.d.ts +2 -0
  133. package/dist/pb_section_separator/_section_separator.d.ts +22 -0
  134. package/dist/pb_select/_select.d.ts +397 -0
  135. package/dist/pb_selectable_card/_selectable_card.d.ts +33 -0
  136. package/dist/pb_selectable_card_icon/_selectable_card_icon.d.ts +30 -0
  137. package/dist/pb_selectable_icon/_selectable_icon.d.ts +24 -0
  138. package/dist/pb_selectable_list/_item.d.ts +23 -0
  139. package/dist/pb_selectable_list/_selectable_list.d.ts +20 -0
  140. package/dist/pb_source/_source.d.ts +20 -0
  141. package/dist/pb_star_rating/_star_rating.d.ts +17 -0
  142. package/dist/pb_stat_change/_stat_change.d.ts +13 -0
  143. package/dist/pb_stat_value/_stat_value.d.ts +12 -0
  144. package/dist/pb_table/_table.d.ts +27 -0
  145. package/dist/pb_table/_table_row.d.ts +18 -0
  146. package/dist/pb_table/index.d.ts +5 -0
  147. package/dist/pb_text_input/_text_input.d.ts +395 -0
  148. package/dist/pb_textarea/_textarea.d.ts +392 -0
  149. package/dist/pb_textarea/index.d.ts +10 -0
  150. package/dist/pb_time/_time.d.ts +19 -0
  151. package/dist/pb_time_range_inline/_time_range_inline.d.ts +23 -0
  152. package/dist/pb_time_stacked/_time_stacked.d.ts +18 -0
  153. package/dist/pb_timeline/_item.d.ts +14 -0
  154. package/dist/pb_timeline/_timeline.d.ts +32 -0
  155. package/dist/pb_timestamp/_timestamp.d.ts +25 -0
  156. package/dist/pb_title/_title.d.ts +29 -0
  157. package/dist/pb_title_count/_title_count.d.ts +21 -0
  158. package/dist/pb_title_detail/_title_detail.d.ts +19 -0
  159. package/dist/pb_toggle/_toggle.d.ts +24 -0
  160. package/dist/pb_tooltip/_tooltip.d.ts +368 -0
  161. package/dist/pb_treemap_chart/_treemap_chart.d.ts +30 -0
  162. package/dist/pb_typeahead/_typeahead.d.ts +38 -0
  163. package/dist/pb_typeahead/components/ClearIndicator.d.ts +2 -0
  164. package/dist/pb_typeahead/components/Control.d.ts +5 -0
  165. package/dist/pb_typeahead/components/IndicatorsContainer.d.ts +2 -0
  166. package/dist/pb_typeahead/components/MenuList.d.ts +2 -0
  167. package/dist/pb_typeahead/components/MultiValue.d.ts +9 -0
  168. package/dist/pb_typeahead/components/Option.d.ts +2 -0
  169. package/dist/pb_typeahead/components/Placeholder.d.ts +2 -0
  170. package/dist/pb_typeahead/components/ValueContainer.d.ts +2 -0
  171. package/dist/pb_typeahead/index.d.ts +39 -0
  172. package/dist/pb_user/_user.d.ts +26 -0
  173. package/dist/pb_user_badge/_user_badge.d.ts +17 -0
  174. package/dist/pb_user_badge/badges/million-dollar.d.ts +2 -0
  175. package/dist/pb_user_badge/badges/veteran.d.ts +2 -0
  176. package/dist/pb_walkthrough/_walkthrough.d.ts +44 -0
  177. package/dist/pb_weekday_stacked/_weekday_stacked.d.ts +18 -0
  178. package/dist/playbook-doc.js +6 -6
  179. package/dist/playbook-rails.js +5 -5
  180. package/dist/playbook.js +8 -8
  181. package/dist/types/base.d.ts +7 -0
  182. package/dist/types/colors.d.ts +19 -0
  183. package/dist/types/display.d.ts +8 -0
  184. package/dist/types/index.d.ts +5 -0
  185. package/dist/types/sizes.d.ts +1 -0
  186. package/dist/types/spacing.d.ts +1 -0
  187. package/dist/utilities/globalProps.d.ts +113 -0
  188. package/dist/utilities/object.d.ts +1 -0
  189. package/dist/utilities/props.d.ts +50 -0
  190. package/dist/utilities/text.d.ts +3 -0
  191. package/dist/utilities/validEmojiChecker.d.ts +1 -0
  192. package/package.json +2 -1
@@ -0,0 +1,51 @@
1
+ import React from 'react';
2
+ declare type LightboxType = {
3
+ aria?: {
4
+ [key: string]: string;
5
+ };
6
+ children: React.ReactNode[] | React.ReactNode | string;
7
+ className?: string;
8
+ currentPhotoIndex?: number;
9
+ data?: {
10
+ [key: string]: string | number;
11
+ };
12
+ description?: string | any;
13
+ htmlOptions?: {
14
+ [key: string]: string | number | boolean | Function;
15
+ };
16
+ id?: string;
17
+ photos: [];
18
+ initialPhoto?: number;
19
+ onChange?: (index: number) => {};
20
+ onClickRight?: () => void;
21
+ onClose?: () => void;
22
+ icon: string;
23
+ navRight?: string;
24
+ trigger?: string;
25
+ title?: string | any;
26
+ };
27
+ declare const Lightbox: {
28
+ (props: LightboxType): React.ReactNode;
29
+ Header: (props: {
30
+ aria?: {
31
+ [key: string]: string;
32
+ };
33
+ children?: React.ReactNode | React.ReactNode[];
34
+ className?: string;
35
+ closeable?: boolean;
36
+ data?: {
37
+ [key: string]: string | number;
38
+ };
39
+ htmlOptions?: {
40
+ [key: string]: string | number | boolean | Function;
41
+ };
42
+ icon?: string;
43
+ id?: string;
44
+ onClickRight?: () => void;
45
+ onClose?: () => void;
46
+ text?: string;
47
+ navRight?: string;
48
+ title?: string;
49
+ } & import("../utilities/globalProps").GlobalProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
50
+ };
51
+ export default Lightbox;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const LightboxContext: React.Context<{}>;
@@ -0,0 +1,3 @@
1
+ export declare const useKbdControls: (api: {
2
+ [key: string]: () => void;
3
+ }) => string;
@@ -0,0 +1,6 @@
1
+ declare type WindowSize = {
2
+ width: number;
3
+ height: number;
4
+ };
5
+ export declare const useWindowSize: () => WindowSize;
6
+ export {};
@@ -0,0 +1,38 @@
1
+ declare type LineGraphProps = {
2
+ align?: "left" | "right" | "center";
3
+ axisTitle?: string;
4
+ dark?: Boolean;
5
+ xAxisCategories: [];
6
+ yAxisMin: number;
7
+ yAxisMax: number;
8
+ className?: string;
9
+ chartData: {
10
+ name: string;
11
+ data: number[];
12
+ }[];
13
+ gradient?: boolean;
14
+ htmlOptions?: {
15
+ [key: string]: string | number | boolean | Function;
16
+ };
17
+ id: string;
18
+ pointStart: number;
19
+ subTitle?: string;
20
+ title: string;
21
+ type?: string;
22
+ legend?: boolean;
23
+ toggleLegendClick?: boolean;
24
+ height?: string;
25
+ colors: string[];
26
+ layout?: "horizontal" | "vertical" | "proximate";
27
+ verticalAlign?: "top" | "middle" | "bottom";
28
+ x?: number;
29
+ y?: number;
30
+ aria?: {
31
+ [key: string]: string;
32
+ };
33
+ data?: {
34
+ [key: string]: string;
35
+ };
36
+ };
37
+ declare const LineGraph: ({ aria, data, align, className, dark, gradient, type, htmlOptions, id, legend, toggleLegendClick, layout, verticalAlign, x, y, axisTitle, xAxisCategories, yAxisMin, yAxisMax, chartData, pointStart, subTitle, title, height, colors, ...props }: LineGraphProps) => JSX.Element;
38
+ export default LineGraph;
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ declare type ListProps = {
3
+ aria?: {
4
+ [key: string]: string;
5
+ };
6
+ borderless?: boolean;
7
+ className?: string;
8
+ children: React.ReactNode[] | React.ReactNode;
9
+ dark?: boolean;
10
+ data?: object;
11
+ htmlOptions?: {
12
+ [key: string]: string | number | boolean | Function;
13
+ };
14
+ id?: string;
15
+ layout?: "" | "left" | "right";
16
+ ordered?: boolean;
17
+ role?: string;
18
+ tabIndex?: number;
19
+ text?: string;
20
+ size?: string;
21
+ variant?: string;
22
+ xpadding?: boolean;
23
+ };
24
+ declare const List: (props: ListProps) => JSX.Element;
25
+ export default List;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ declare type ListItemProps = {
3
+ aria?: {
4
+ [key: string]: string;
5
+ };
6
+ children: React.ReactNode[] | React.ReactNode;
7
+ className?: string;
8
+ data?: object;
9
+ htmlOptions?: {
10
+ [key: string]: string | number | boolean | Function;
11
+ };
12
+ id?: string;
13
+ tabIndex?: number;
14
+ };
15
+ declare const ListItem: (props: ListItemProps) => JSX.Element;
16
+ export default ListItem;
@@ -0,0 +1,16 @@
1
+ declare type LoadingInlineProps = {
2
+ align?: "left" | "center" | "right";
3
+ aria?: {
4
+ [key: string]: string;
5
+ };
6
+ className?: string;
7
+ data?: {
8
+ [key: string]: string;
9
+ };
10
+ htmlOptions?: {
11
+ [key: string]: string | number | boolean | Function;
12
+ };
13
+ id?: string;
14
+ };
15
+ declare const LoadingInline: (props: LoadingInlineProps) => JSX.Element;
16
+ export default LoadingInline;
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import { GlobalProps } from '../utilities/globalProps';
3
+ declare type MapProps = {
4
+ aria?: {
5
+ [key: string]: string;
6
+ };
7
+ children?: React.ReactChild[] | React.ReactNode;
8
+ className?: string;
9
+ data?: {
10
+ [key: string]: string;
11
+ };
12
+ htmlOptions?: {
13
+ [key: string]: string | number | boolean | Function;
14
+ };
15
+ id?: string;
16
+ zoomBtns?: boolean;
17
+ flyTo?: boolean;
18
+ zoomInClick?: () => {};
19
+ zoomOutClick?: () => {};
20
+ flyToClick?: () => {};
21
+ } & GlobalProps;
22
+ declare const Map: {
23
+ (props: MapProps): JSX.Element;
24
+ Controls: ({ zoomBtns, zoomInClick, zoomOutClick, flyTo, flyToClick, children, }: {
25
+ zoomBtns?: boolean;
26
+ flyTo?: boolean;
27
+ zoomInClick?: () => {};
28
+ zoomOutClick?: () => {};
29
+ flyToClick?: () => {};
30
+ children?: React.ReactNode | React.ReactNode[];
31
+ }) => JSX.Element;
32
+ };
33
+ export default Map;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ declare type MapControlTypes = {
3
+ zoomBtns?: boolean;
4
+ flyTo?: boolean;
5
+ zoomInClick?: () => {};
6
+ zoomOutClick?: () => {};
7
+ flyToClick?: () => {};
8
+ children?: React.ReactNode | React.ReactNode[];
9
+ };
10
+ declare const MapControls: ({ zoomBtns, zoomInClick, zoomOutClick, flyTo, flyToClick, children, }: MapControlTypes) => JSX.Element;
11
+ export default MapControls;
@@ -0,0 +1,6 @@
1
+ declare type MapCustomButtonTypes = {
2
+ onClick?: () => {};
3
+ icon?: string;
4
+ };
5
+ declare const MapCustomButton: ({ onClick, icon }: MapCustomButtonTypes) => JSX.Element;
6
+ export default MapCustomButton;
@@ -0,0 +1,20 @@
1
+ declare const mapTheme: {
2
+ marker: any;
3
+ maptiles: string;
4
+ flyToConfig: {
5
+ zoom: number;
6
+ bearing: number;
7
+ curve: number;
8
+ easing: (t: any) => any;
9
+ essential: boolean;
10
+ };
11
+ zoomConfig: {
12
+ duration: number;
13
+ };
14
+ mapConfig: {
15
+ style: string;
16
+ zoom: number;
17
+ attributionControl: boolean;
18
+ };
19
+ };
20
+ export default mapTheme;
@@ -0,0 +1,39 @@
1
+ import React from 'react';
2
+ declare type MessageProps = {
3
+ aria: {
4
+ [key: string]: string;
5
+ };
6
+ avatarName?: string;
7
+ avatarStatus?: "away" | "offline" | "online";
8
+ avatarUrl?: string;
9
+ children?: React.ReactChild[] | React.ReactChild;
10
+ className?: string;
11
+ data?: object;
12
+ htmlOptions?: {
13
+ [key: string]: string | number | boolean | Function;
14
+ };
15
+ id?: string;
16
+ label?: string;
17
+ message: string;
18
+ timestamp?: string;
19
+ timestampObject?: Date;
20
+ timezone?: string;
21
+ alignTimestamp?: string;
22
+ };
23
+ declare const Message: {
24
+ (props: MessageProps): JSX.Element;
25
+ Mention: (props: {
26
+ aria: {
27
+ [key: string]: string;
28
+ };
29
+ children?: React.ReactChild | React.ReactChild[];
30
+ className?: string;
31
+ data?: object;
32
+ htmlOptions?: {
33
+ [key: string]: string | number | boolean | Function;
34
+ };
35
+ id?: string;
36
+ variant: "user" | "self";
37
+ }) => JSX.Element;
38
+ };
39
+ export default Message;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ declare type MessageMentionProps = {
3
+ aria: {
4
+ [key: string]: string;
5
+ };
6
+ children?: React.ReactChild[] | React.ReactChild;
7
+ className?: string;
8
+ data?: object;
9
+ htmlOptions?: {
10
+ [key: string]: string | number | boolean | Function;
11
+ };
12
+ id?: string;
13
+ variant: 'user' | 'self';
14
+ };
15
+ declare const MessageMention: (props: MessageMentionProps) => JSX.Element;
16
+ export default MessageMention;
@@ -0,0 +1,33 @@
1
+ export declare const filterFormattedDataById: (formattedData: {
2
+ [key: string]: any;
3
+ }[], id: string) => {
4
+ [key: string]: any;
5
+ }[];
6
+ export declare const findByFilter: (formattedData: {
7
+ [key: string]: any;
8
+ }[], searchTerm: string) => {
9
+ [key: string]: any;
10
+ }[];
11
+ export declare const getAncestorsOfUnchecked: (data: {
12
+ [key: string]: any;
13
+ }[], item: {
14
+ [key: string]: any;
15
+ }) => {
16
+ [key: string]: any;
17
+ }[];
18
+ export declare const getCheckedItems: (data: {
19
+ [key: string]: any;
20
+ }[]) => {
21
+ [key: string]: any;
22
+ }[];
23
+ export declare const getDefaultCheckedItems: (treeData: {
24
+ [key: string]: any;
25
+ }[]) => {
26
+ [key: string]: any;
27
+ }[];
28
+ export declare const recursiveCheckParent: (item: {
29
+ [key: string]: any;
30
+ }, data: any) => any;
31
+ export declare const getExpandedItems: (treeData: {
32
+ [key: string]: string;
33
+ }[], selectedIds: string[]) => any[];
@@ -0,0 +1,28 @@
1
+ import { GlobalProps } from "../utilities/globalProps";
2
+ declare type MultiLevelSelectProps = {
3
+ aria?: {
4
+ [key: string]: string;
5
+ };
6
+ className?: string;
7
+ data?: {
8
+ [key: string]: string;
9
+ };
10
+ htmlOptions?: {
11
+ [key: string]: string | number | boolean | Function;
12
+ };
13
+ id?: string;
14
+ inputDisplay?: "pills" | "none";
15
+ inputName?: string;
16
+ name?: string;
17
+ returnAllSelected?: boolean;
18
+ treeData?: {
19
+ [key: string]: string;
20
+ }[];
21
+ onSelect?: (prop: {
22
+ [key: string]: any;
23
+ }) => void;
24
+ selectedIds?: string[];
25
+ variant?: "multi" | "single";
26
+ } & GlobalProps;
27
+ declare const MultiLevelSelect: (props: MultiLevelSelectProps) => JSX.Element;
28
+ export default MultiLevelSelect;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ declare type MultipleUsersProps = {
3
+ aria?: {
4
+ [key: string]: string;
5
+ };
6
+ className?: string;
7
+ dark?: boolean;
8
+ data?: {
9
+ [key: string]: string;
10
+ };
11
+ htmlOptions?: {
12
+ [key: string]: string | number | boolean | Function;
13
+ };
14
+ id?: string;
15
+ maxDisplayedUsers?: number;
16
+ reverse?: boolean;
17
+ size?: "md" | "lg" | "sm" | "xl" | "xs" | "xxs";
18
+ users: Array<{
19
+ [key: string]: string;
20
+ }>;
21
+ };
22
+ declare const MultipleUsers: (props: MultipleUsersProps) => React.ReactElement;
23
+ export default MultipleUsers;
@@ -0,0 +1,19 @@
1
+ declare type MultipleUsersStackedProps = {
2
+ aria?: {
3
+ [key: string]: string;
4
+ };
5
+ className?: string;
6
+ dark?: boolean;
7
+ data?: {
8
+ [key: string]: string;
9
+ };
10
+ htmlOptions?: {
11
+ [key: string]: string | number | boolean | Function;
12
+ };
13
+ id?: string;
14
+ users: Array<{
15
+ [key: string]: string;
16
+ }>;
17
+ };
18
+ declare const MultipleUsersStacked: (props: MultipleUsersStackedProps) => JSX.Element;
19
+ export default MultipleUsersStacked;
@@ -0,0 +1,43 @@
1
+ import React from "react";
2
+ import { GlobalProps } from "../utilities/globalProps";
3
+ import { Spacing } from "../types";
4
+ declare type NavItemProps = {
5
+ active?: boolean;
6
+ highlighted_border?: boolean;
7
+ aria?: {
8
+ [key: string]: string;
9
+ };
10
+ fontWeight?: "regular" | "bold" | "bolder";
11
+ children?: React.ReactNode[] | React.ReactNode;
12
+ className?: string;
13
+ collapsible?: boolean;
14
+ data?: object;
15
+ dark?: boolean;
16
+ fontSize?: "normal" | "small";
17
+ htmlOptions?: {
18
+ [key: string]: string | number | boolean | Function;
19
+ };
20
+ iconLeft?: string;
21
+ iconRight?: string | string[];
22
+ onIconRightClick?: () => void;
23
+ onIconLeftClick?: () => void;
24
+ id?: string;
25
+ imageUrl?: string;
26
+ link?: string;
27
+ onClick?: () => void;
28
+ target?: "_blank" | "_self" | "_parent" | "_top";
29
+ text: string;
30
+ collapsibleTrail?: boolean;
31
+ collapsed?: boolean;
32
+ orientation?: "vertical" | "horizontal";
33
+ variant?: "normal" | "subtle";
34
+ margin?: Spacing;
35
+ marginBottom?: Spacing;
36
+ marginTop?: Spacing;
37
+ marginRight?: Spacing;
38
+ marginLeft?: Spacing;
39
+ marginX?: Spacing;
40
+ marginY?: Spacing;
41
+ } & GlobalProps;
42
+ declare const NavItem: (props: NavItemProps) => JSX.Element;
43
+ export default NavItem;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { GlobalProps } from '../utilities/globalProps';
3
+ import { SpacingObject } from './navTypes';
4
+ declare type NavProps = {
5
+ aria?: {
6
+ [key: string]: string;
7
+ };
8
+ borderless?: boolean;
9
+ children?: React.ReactNode[] | React.ReactNode;
10
+ className?: string | string[];
11
+ data?: object;
12
+ dark?: boolean;
13
+ highlight?: boolean;
14
+ htmlOptions?: {
15
+ [key: string]: string | number | boolean | Function;
16
+ };
17
+ id?: string;
18
+ onClick?: React.MouseEventHandler<HTMLElement>;
19
+ orientation?: "vertical" | "horizontal";
20
+ link?: string;
21
+ title?: string;
22
+ variant?: "normal" | "subtle";
23
+ itemSpacing?: SpacingObject;
24
+ } & GlobalProps;
25
+ declare const Nav: (props: NavProps) => JSX.Element;
26
+ export default Nav;
@@ -0,0 +1,22 @@
1
+ import { Spacing } from "../types";
2
+ export declare type SpacingObject = {
3
+ margin?: Spacing;
4
+ marginBottom?: Spacing;
5
+ marginTop?: Spacing;
6
+ marginRight?: Spacing;
7
+ marginLeft?: Spacing;
8
+ margingX?: Spacing;
9
+ marginY?: Spacing;
10
+ padding?: Spacing;
11
+ paddingBottom?: Spacing;
12
+ paddingTop?: Spacing;
13
+ paddingRight?: Spacing;
14
+ paddingLeft?: Spacing;
15
+ paddingX?: Spacing;
16
+ paddingY?: Spacing;
17
+ };
18
+ export declare type NavChildProps = {
19
+ orientation?: "vertical" | "horizontal";
20
+ variant?: "normal" | "subtle";
21
+ itemSpacing?: SpacingObject;
22
+ };
@@ -0,0 +1,17 @@
1
+ import { GlobalProps } from '../utilities/globalProps';
2
+ declare type OnlineStatusProps = {
3
+ aria?: {
4
+ [key: string]: string;
5
+ };
6
+ className?: string;
7
+ data?: {
8
+ [key: string]: string | number;
9
+ };
10
+ htmlOptions?: {
11
+ [key: string]: string | number | boolean | Function;
12
+ };
13
+ id?: string;
14
+ status?: "online" | "offline" | "away";
15
+ } & GlobalProps;
16
+ declare const OnlineStatus: (props: OnlineStatusProps) => JSX.Element;
17
+ export default OnlineStatus;
@@ -0,0 +1,22 @@
1
+ declare type PassphraseProps = {
2
+ aria?: {
3
+ [key: string]: string;
4
+ };
5
+ confirmation?: boolean;
6
+ className?: string;
7
+ data?: object;
8
+ dark?: boolean;
9
+ htmlOptions?: {
10
+ [key: string]: string | number | boolean | Function;
11
+ };
12
+ id?: string;
13
+ inputProps?: {};
14
+ label?: string;
15
+ onChange: (inputValue: String) => void;
16
+ showTipsBelow?: "always" | "xs" | "sm" | "md" | "lg" | "xl";
17
+ tips?: Array<string>;
18
+ uncontrolled?: boolean;
19
+ value: string;
20
+ };
21
+ declare const Passphrase: (props: PassphraseProps) => JSX.Element;
22
+ export default Passphrase;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ declare type PersonProps = {
3
+ aria?: {
4
+ [key: string]: string;
5
+ };
6
+ className?: string | string[];
7
+ data?: {
8
+ [key: string]: string;
9
+ };
10
+ firstName: string;
11
+ htmlOptions?: {
12
+ [key: string]: string | number | boolean | Function;
13
+ };
14
+ id?: string;
15
+ lastName: string;
16
+ };
17
+ declare const Person: (props: PersonProps) => React.ReactElement;
18
+ export default Person;
@@ -0,0 +1,21 @@
1
+ declare type ContactItem = {
2
+ contactType: string;
3
+ contactValue: string;
4
+ contactDetail: string;
5
+ };
6
+ declare type PersonContactProps = {
7
+ aria?: {
8
+ [key: string]: string;
9
+ };
10
+ className?: string | string[];
11
+ data?: object;
12
+ firstName: string;
13
+ htmlOptions?: {
14
+ [key: string]: string | number | boolean | Function;
15
+ };
16
+ id?: string;
17
+ lastName: string;
18
+ contacts?: ContactItem[];
19
+ };
20
+ declare const PersonContact: (props: PersonContactProps) => JSX.Element;
21
+ export default PersonContact;
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import 'intl-tel-input/build/css/intlTelInput.css';
3
+ import 'intl-tel-input/build/js/utils.js';
4
+ import { Callback } from '../types';
5
+ declare global {
6
+ interface Window {
7
+ intlTelInputGlobals: any;
8
+ }
9
+ }
10
+ declare type PhoneNumberInputProps = {
11
+ aria?: {
12
+ [key: string]: string;
13
+ };
14
+ className?: string;
15
+ dark?: boolean;
16
+ data?: {
17
+ [key: string]: string;
18
+ };
19
+ disabled?: boolean;
20
+ error?: string;
21
+ htmlOptions?: {
22
+ [key: string]: string | number | boolean | Function;
23
+ };
24
+ id?: string;
25
+ initialCountry?: string;
26
+ isValid?: (valid: boolean) => void;
27
+ label?: string;
28
+ name?: string;
29
+ onChange?: (e: React.FormEvent<HTMLInputElement>) => void;
30
+ onValidate?: Callback<boolean, void>;
31
+ onlyCountries: string[];
32
+ preferredCountries?: string[];
33
+ required?: boolean;
34
+ value?: string;
35
+ };
36
+ declare const _default: React.ForwardRefExoticComponent<PhoneNumberInputProps & React.RefAttributes<unknown>>;
37
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { GlobalProps } from '../utilities/globalProps';
2
+ declare type PillProps = {
3
+ aria?: {
4
+ [key: string]: string;
5
+ };
6
+ className?: string;
7
+ data?: {
8
+ [key: string]: string;
9
+ };
10
+ htmlOptions?: {
11
+ [key: string]: string | number | boolean | Function;
12
+ };
13
+ id?: string;
14
+ text: string;
15
+ variant?: "success" | "warning" | "error" | "info" | "neutral" | "primary";
16
+ textTransform?: "none" | "lowercase";
17
+ } & GlobalProps;
18
+ declare const Pill: (props: PillProps) => JSX.Element;
19
+ export default Pill;
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ import { PopperProps, Reference as PopperReference } from "react-popper";
3
+ import { GlobalProps } from "../utilities/globalProps";
4
+ declare type PbPopoverProps = {
5
+ aria?: {
6
+ [key: string]: string;
7
+ };
8
+ className?: string;
9
+ closeOnClick?: "outside" | "inside" | "any";
10
+ data?: {
11
+ [key: string]: string;
12
+ };
13
+ htmlOptions?: {
14
+ [key: string]: string | number | boolean | Function;
15
+ };
16
+ id?: string;
17
+ offset?: boolean;
18
+ reference: PopperReference & any;
19
+ show?: boolean;
20
+ shouldClosePopover?: (arg0: boolean) => void;
21
+ } & GlobalProps & Omit<PopperProps<any>, 'children'> & {
22
+ children?: React.ReactChild[] | React.ReactChild;
23
+ };
24
+ declare const PbReactPopover: (props: PbPopoverProps) => JSX.Element;
25
+ export default PbReactPopover;