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,40 @@
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
+ };
39
+ colorKey?: string;
40
+ };
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ declare type DashboardValueProps = {
3
+ align?: 'left' | 'center' | 'right';
4
+ aria?: {
5
+ [key: string]: string;
6
+ };
7
+ className?: string;
8
+ data?: {
9
+ [key: string]: string;
10
+ };
11
+ htmlOptions?: {
12
+ [key: string]: string | number | boolean | Function;
13
+ };
14
+ id?: string;
15
+ statChange?: {
16
+ change?: 'increase' | 'decrease' | 'neutral';
17
+ value?: string | number;
18
+ };
19
+ statLabel?: string;
20
+ statValue?: {
21
+ unit?: string;
22
+ value?: string | number;
23
+ };
24
+ };
25
+ declare const DashboardValue: (props: DashboardValueProps) => React.ReactElement;
26
+ export default DashboardValue;
@@ -0,0 +1,43 @@
1
+ declare const pbIndicator: {
2
+ title: {
3
+ fontFamily: any;
4
+ color: any;
5
+ fontSizes: {
6
+ big: any;
7
+ medium: any;
8
+ small: any;
9
+ micro: any;
10
+ };
11
+ };
12
+ secondaryTitle: {
13
+ color: any;
14
+ fontFamily: any;
15
+ fontSizes: {
16
+ big: any;
17
+ medium: any;
18
+ small: any;
19
+ micro: any;
20
+ };
21
+ };
22
+ value: {
23
+ fontFamily: any;
24
+ color: any;
25
+ fontWeight: any;
26
+ fontSizes: {
27
+ big: any;
28
+ medium: any;
29
+ small: any;
30
+ micro: any;
31
+ };
32
+ };
33
+ secondaryValue: {
34
+ fontFamily: any;
35
+ fontSizes: {
36
+ big: any;
37
+ medium: any;
38
+ small: any;
39
+ micro: any;
40
+ };
41
+ };
42
+ };
43
+ export default pbIndicator;
@@ -0,0 +1,21 @@
1
+ declare type PbDateProps = {
2
+ alignment?: "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
+ showDayOfWeek?: boolean;
15
+ showIcon?: boolean;
16
+ size?: "sm" | "md" | "lg";
17
+ unstyled?: boolean;
18
+ value: Date;
19
+ };
20
+ declare const PbDate: (props: PbDateProps) => JSX.Element;
21
+ export default PbDate;
@@ -0,0 +1,53 @@
1
+ import React from 'react';
2
+ import { GlobalProps } from '../utilities/globalProps';
3
+ declare type DatePickerProps = {
4
+ allowInput?: boolean;
5
+ aria?: {
6
+ [key: string]: string;
7
+ };
8
+ className?: string;
9
+ dark?: boolean;
10
+ data?: {
11
+ [key: string]: string;
12
+ };
13
+ defaultDate?: string;
14
+ disableDate?: number[];
15
+ disableInput?: boolean;
16
+ disableRange?: number[];
17
+ disableWeekdays?: number[];
18
+ enableTime?: boolean;
19
+ error?: string;
20
+ format?: string;
21
+ hideIcon?: boolean;
22
+ hideLabel?: boolean;
23
+ htmlOptions?: {
24
+ [key: string]: string | number | boolean | Function;
25
+ };
26
+ id?: string;
27
+ inLine?: boolean;
28
+ inputAria?: {
29
+ [key: string]: string;
30
+ };
31
+ inputData?: {
32
+ [key: string]: string;
33
+ };
34
+ inputOnChange?: (e: React.FormEvent<HTMLInputElement>) => void;
35
+ inputValue?: string;
36
+ label?: string;
37
+ maxDate: string;
38
+ minDate: string;
39
+ name: string;
40
+ pickerId?: string;
41
+ placeholder?: string;
42
+ positionElement?: HTMLElement | null;
43
+ scrollContainer?: string;
44
+ selectionType?: "month" | "week" | "quickpick";
45
+ showTimezone?: boolean;
46
+ staticPosition: boolean;
47
+ thisRangesEndToday?: boolean;
48
+ timeFormat?: string;
49
+ type?: string;
50
+ yearRange?: number[];
51
+ } & GlobalProps;
52
+ declare const DatePicker: (props: DatePickerProps) => React.ReactElement;
53
+ export default DatePicker;
@@ -0,0 +1,23 @@
1
+ import { BaseOptions } from 'flatpickr/dist/types/options';
2
+ declare type DatePickerConfig = {
3
+ closeOnSelect?: boolean;
4
+ disableDate?: number[];
5
+ disableRange?: number[];
6
+ disableWeekdays?: number[];
7
+ format?: string;
8
+ pickerId?: ArrayLike<Node> | Node | string;
9
+ required: boolean;
10
+ hideIcon?: boolean;
11
+ inLine?: boolean;
12
+ onChange: (dateStr: string, selectedDates: Date[]) => void;
13
+ selectionType?: "month" | "week" | "quickpick" | "";
14
+ onClose: (dateStr: Date[] | string, selectedDates: Date[] | string) => void;
15
+ showTimezone?: boolean;
16
+ staticPosition: boolean;
17
+ thisRangesEndToday?: boolean;
18
+ timeCaption?: string;
19
+ timeFormat?: string;
20
+ yearRange: number[];
21
+ } & Pick<BaseOptions, "allowInput" | "defaultDate" | "enableTime" | "maxDate" | "minDate" | "mode" | "plugins" | "position" | "positionElement">;
22
+ declare const datePickerHelper: (config: DatePickerConfig, scrollContainer: string | HTMLElement) => any;
23
+ export default datePickerHelper;
@@ -0,0 +1,18 @@
1
+ declare type FpTypes = {
2
+ setDate: (arg0: any, arg1: boolean) => void;
3
+ config: {
4
+ [key: string]: string;
5
+ };
6
+ clear: (arg0: boolean, arg1: boolean) => void;
7
+ close: () => void;
8
+ calendarContainer?: {
9
+ classList: {
10
+ add: (arg0: string) => void;
11
+ };
12
+ prepend: (arg0: HTMLDivElement) => void;
13
+ append: (arg0: HTMLDivElement) => void;
14
+ };
15
+ loadedPlugins: string[];
16
+ };
17
+ declare const quickPickPlugin: (thisRangesEndToday: boolean) => (fp: FpTypes & any) => any;
18
+ export default quickPickPlugin;
@@ -0,0 +1,44 @@
1
+ declare type FpTypes = {
2
+ amPM?: {
3
+ style: {
4
+ display: string;
5
+ };
6
+ };
7
+ selectedDates: string | any[];
8
+ setDate: (arg0: any, arg1: boolean) => void;
9
+ input: {
10
+ id: any;
11
+ };
12
+ timeContainer?: {
13
+ classList: {
14
+ add: (arg0: string) => void;
15
+ };
16
+ prepend: (arg0: HTMLDivElement) => void;
17
+ append: (arg0: HTMLDivElement) => void;
18
+ };
19
+ minuteElement?: {
20
+ step: string;
21
+ };
22
+ _initialDate: {
23
+ toLocaleDateString: (arg0: string, arg1: {
24
+ day: string;
25
+ timeZoneName: string;
26
+ }) => string | any[];
27
+ };
28
+ loadedPlugins: string[];
29
+ };
30
+ export declare const getTimezoneText: (inputDate: {
31
+ toLocaleDateString: (arg0: string, arg1: {
32
+ day: string;
33
+ timeZoneName: string;
34
+ }) => string | any[];
35
+ }) => string;
36
+ declare function timeSelectPlugin(props: {
37
+ caption: string;
38
+ showTimezone: boolean;
39
+ }): (fp: FpTypes & any) => {
40
+ onValueUpdate(): void;
41
+ onOpen(): void;
42
+ onReady(): void;
43
+ };
44
+ export default timeSelectPlugin;
@@ -0,0 +1,16 @@
1
+ declare type DateRangeInlineProps = {
2
+ className?: string;
3
+ id?: string;
4
+ data?: string;
5
+ align?: "left" | "center" | "vertical";
6
+ size?: "sm" | "xs";
7
+ dark?: boolean;
8
+ htmlOptions?: {
9
+ [key: string]: string | number | boolean | Function;
10
+ };
11
+ icon?: boolean;
12
+ startDate?: Date;
13
+ endDate?: Date;
14
+ };
15
+ declare const DateRangeInline: (props: DateRangeInlineProps) => JSX.Element;
16
+ export default DateRangeInline;
@@ -0,0 +1,13 @@
1
+ declare type DateRangeStackedProps = {
2
+ className?: string | string[];
3
+ data?: string;
4
+ dark?: boolean;
5
+ endDate: Date;
6
+ htmlOptions?: {
7
+ [key: string]: string | number | boolean | Function;
8
+ };
9
+ id?: string;
10
+ startDate: Date;
11
+ };
12
+ declare const DateRangeStacked: (props: DateRangeStackedProps) => JSX.Element;
13
+ export default DateRangeStacked;
@@ -0,0 +1,16 @@
1
+ declare type DateStackedProps = {
2
+ align?: "left" | "center" | "right";
3
+ bold?: boolean;
4
+ className?: string | string[];
5
+ dark?: boolean;
6
+ data?: string;
7
+ date: Date;
8
+ htmlOptions?: {
9
+ [key: string]: string | number | boolean | Function;
10
+ };
11
+ size?: "sm" | "md";
12
+ id?: string;
13
+ reverse?: boolean;
14
+ };
15
+ declare const DateStacked: (props: DateStackedProps) => JSX.Element;
16
+ export default DateStacked;
@@ -0,0 +1,21 @@
1
+ declare type DateTimeProps = {
2
+ align?: "left" | "center" | "right";
3
+ aria?: {
4
+ [key: string]: string;
5
+ };
6
+ className?: string;
7
+ data?: {
8
+ [key: string]: string;
9
+ };
10
+ datetime: Date;
11
+ htmlOptions?: {
12
+ [key: string]: string | number | boolean | Function;
13
+ };
14
+ id?: string;
15
+ size?: "sm" | "md";
16
+ showDayOfWeek: boolean;
17
+ showIcon?: boolean;
18
+ timeZone?: string;
19
+ };
20
+ declare const DateTime: (props: DateTimeProps) => JSX.Element;
21
+ export default DateTime;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ declare type DateTimeStackedProps = {
3
+ htmlOptions?: {
4
+ [key: string]: string | number | boolean | Function;
5
+ };
6
+ id?: string;
7
+ date: Date;
8
+ datetime: Date;
9
+ dark: boolean;
10
+ timeZone?: string;
11
+ };
12
+ declare const DateTimeStacked: (props: DateTimeStackedProps) => React.ReactElement;
13
+ export default DateTimeStacked;
@@ -0,0 +1,13 @@
1
+ declare type DateYearStackedProps = {
2
+ align?: "left" | "center" | "right";
3
+ className?: string | string[];
4
+ dark?: boolean;
5
+ data?: string;
6
+ date: Date;
7
+ htmlOptions?: {
8
+ [key: string]: string | number | boolean | Function;
9
+ };
10
+ id?: string;
11
+ };
12
+ declare const DateYearStacked: (props: DateYearStackedProps) => JSX.Element;
13
+ export default DateYearStacked;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { GlobalProps } from '../utilities/globalProps';
3
+ declare type DetailProps = {
4
+ aria?: {
5
+ [key: string]: string;
6
+ };
7
+ bold?: boolean;
8
+ children?: React.ReactChild[] | React.ReactChild;
9
+ className?: string;
10
+ color?: 'light' | 'default' | 'lighter' | 'link' | 'error' | 'success';
11
+ dark?: boolean;
12
+ data?: {
13
+ [key: string]: string;
14
+ };
15
+ htmlOptions?: {
16
+ [key: string]: string | number | boolean | Function;
17
+ };
18
+ id?: string;
19
+ tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div';
20
+ text?: string;
21
+ } & GlobalProps;
22
+ declare const Detail: (props: DetailProps) => JSX.Element;
23
+ export default Detail;
@@ -0,0 +1,5 @@
1
+ declare type CloseIconProps = {
2
+ onClose: () => any;
3
+ };
4
+ export declare const CloseIcon: (props: CloseIconProps) => JSX.Element;
5
+ export {};
@@ -0,0 +1,77 @@
1
+ import React from "react";
2
+ declare type DialogProps = {
3
+ aria?: {
4
+ [key: string]: string;
5
+ };
6
+ cancelButton?: string;
7
+ children: React.ReactNode | React.ReactNode[] | string;
8
+ className?: string;
9
+ closeable: boolean;
10
+ confirmButton?: string;
11
+ data?: object;
12
+ htmlOptions?: {
13
+ [key: string]: string | number | boolean | Function;
14
+ };
15
+ id?: string;
16
+ fullHeight?: boolean;
17
+ loading?: boolean;
18
+ onCancel?: () => void;
19
+ onChange?: () => void;
20
+ onClose?: () => void;
21
+ onConfirm?: () => void;
22
+ opened: boolean;
23
+ portalClassName?: string;
24
+ placement?: "left" | "center" | "right";
25
+ shouldCloseOnOverlayClick: boolean;
26
+ size?: "sm" | "md" | "lg" | "xl" | "status_size" | "content";
27
+ status?: "info" | "caution" | "delete" | "error" | "success";
28
+ text?: string;
29
+ title?: string;
30
+ trigger?: string;
31
+ };
32
+ declare const Dialog: {
33
+ (props: DialogProps): JSX.Element;
34
+ Header: (props: {
35
+ aria?: {
36
+ [key: string]: string;
37
+ };
38
+ children: React.ReactNode | React.ReactNode[];
39
+ className?: string;
40
+ closeable?: boolean;
41
+ data?: object;
42
+ htmlOptions?: {
43
+ [key: string]: string | number | boolean | Function;
44
+ };
45
+ id?: string;
46
+ padding?: string;
47
+ separator?: boolean;
48
+ spacing?: "none" | "between" | "around" | "evenly";
49
+ text?: string;
50
+ title?: string;
51
+ } & import("../utilities/globalProps").GlobalProps) => JSX.Element;
52
+ Body: (props: {
53
+ children: React.ReactNode | React.ReactNode[];
54
+ padding?: "md" | "lg" | "sm" | "xl" | "xs" | "xxs";
55
+ className?: string;
56
+ }) => JSX.Element;
57
+ Footer: (props: {
58
+ aria?: {
59
+ [key: string]: string;
60
+ };
61
+ children: React.ReactChild | React.ReactChild[];
62
+ className?: string;
63
+ data?: {
64
+ [key: string]: string;
65
+ };
66
+ htmlOptions?: {
67
+ [key: string]: string | number | boolean | Function;
68
+ };
69
+ id?: string;
70
+ padding?: string;
71
+ paddingBottom?: string;
72
+ paddingX?: string;
73
+ separator?: boolean;
74
+ spacing?: "none" | "between" | "around" | "evenly";
75
+ } & import("../utilities/globalProps").GlobalProps) => JSX.Element;
76
+ };
77
+ export default Dialog;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const DialogContext: React.Context<any>;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ declare type DialogBodyProps = {
3
+ children: React.ReactNode | React.ReactNode[] | string;
4
+ padding?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl";
5
+ className?: string;
6
+ };
7
+ declare const DialogBody: (props: DialogBodyProps) => JSX.Element;
8
+ export default DialogBody;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { GlobalProps } from '../../utilities/globalProps';
3
+ declare type DialogFooterProps = {
4
+ aria?: {
5
+ [key: string]: string;
6
+ };
7
+ children: React.ReactChild[] | React.ReactChild | string;
8
+ className?: string;
9
+ data?: {
10
+ [key: string]: string;
11
+ };
12
+ htmlOptions?: {
13
+ [key: string]: string | number | boolean | Function;
14
+ };
15
+ id?: string;
16
+ padding?: string;
17
+ paddingBottom?: string;
18
+ paddingX?: string;
19
+ separator?: boolean;
20
+ spacing?: "none" | "between" | "around" | "evenly";
21
+ } & GlobalProps;
22
+ declare const DialogFooter: (props: DialogFooterProps) => JSX.Element;
23
+ export default DialogFooter;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { GlobalProps } from '../../utilities/globalProps';
3
+ declare type DialogHeaderProps = {
4
+ aria?: {
5
+ [key: string]: string;
6
+ };
7
+ children: React.ReactNode[] | React.ReactNode | string;
8
+ className?: string;
9
+ closeable?: boolean;
10
+ data?: object;
11
+ htmlOptions?: {
12
+ [key: string]: string | number | boolean | Function;
13
+ };
14
+ id?: string;
15
+ padding?: string;
16
+ separator?: boolean;
17
+ spacing?: "none" | "between" | "around" | "evenly";
18
+ text?: string;
19
+ title?: string;
20
+ } & GlobalProps;
21
+ declare const DialogHeader: (props: DialogHeaderProps) => JSX.Element;
22
+ export default DialogHeader;
@@ -0,0 +1,13 @@
1
+ declare type DistributionBarProps = {
2
+ className?: string;
3
+ colors: [];
4
+ data?: string;
5
+ htmlOptions?: {
6
+ [key: string]: string | number | boolean | Function;
7
+ };
8
+ id?: string;
9
+ size?: "lg" | "sm";
10
+ widths?: number[];
11
+ };
12
+ declare const DistributionBar: (props: DistributionBarProps) => JSX.Element;
13
+ export default DistributionBar;
@@ -0,0 +1,17 @@
1
+ import PbEnhancedElement from "./index";
2
+ export default class ElementObserver {
3
+ matchDelegate: PbEnhancedElement;
4
+ target: Document;
5
+ _mutationObserver: MutationObserver;
6
+ constructor(matchDelegate: PbEnhancedElement, target?: Document);
7
+ get mutationObserver(): MutationObserver;
8
+ start(): void;
9
+ stop(): void;
10
+ catchup(): void;
11
+ processMutationList(mutationList: Array<MutationRecord>): void;
12
+ processAttributeChange(node: Element): void | Array<Element>;
13
+ processRemovedNodes(nodes: Array<Element>): void;
14
+ processAddedNodes(nodes: Array<Element>): void;
15
+ handleRemovals(elements: Array<Element>): void;
16
+ handleAdditions(elements: Array<Element>): void;
17
+ }
@@ -0,0 +1,17 @@
1
+ import ElementObserver from './element_observer';
2
+ export default class PbEnhancedElement {
3
+ static _elements: Map<Element, PbEnhancedElement>;
4
+ static _observer: ElementObserver;
5
+ element: Element;
6
+ constructor(element?: Element);
7
+ static get elements(): Map<Element, PbEnhancedElement>;
8
+ static get observer(): ElementObserver;
9
+ static get selector(): string;
10
+ static matches(node: Element): Array<Element>;
11
+ static addMatch(element: Element): void;
12
+ static removeMatch(element: Element): void;
13
+ static start(): void;
14
+ static stop(): void;
15
+ connect(): void;
16
+ disconnect(): void;
17
+ }
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import type { Callback } from '../types';
3
+ declare type FileUploadProps = {
4
+ accept?: string[];
5
+ className?: string;
6
+ customMessage?: string;
7
+ data?: {
8
+ [key: string]: string | number;
9
+ };
10
+ htmlOptions?: {
11
+ [key: string]: string | number | boolean | Function;
12
+ };
13
+ acceptedFilesDescription?: string;
14
+ maxSize?: number;
15
+ onFilesAccepted: Callback<File, File>;
16
+ onFilesRejected: (error: string, files: File[]) => void;
17
+ };
18
+ declare const FileUpload: (props: FileUploadProps) => React.ReactElement;
19
+ export default FileUpload;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export declare type FilterDescription = {
3
+ [key: string]: string | null | boolean;
4
+ };
5
+ export declare type CurrentFiltersProps = {
6
+ dark: boolean;
7
+ filters: FilterDescription;
8
+ };
9
+ declare const CurrentFilters: ({ dark, filters }: CurrentFiltersProps) => React.ReactElement;
10
+ export default CurrentFilters;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { GlobalProps } from '../../utilities/globalProps';
3
+ export declare type FilterBackgroundProps = {
4
+ background: boolean;
5
+ className: string;
6
+ children?: React.ReactChild[] | React.ReactChild;
7
+ dark: boolean;
8
+ } & GlobalProps;
9
+ declare const FilterBackground: (props: FilterBackgroundProps) => React.ReactElement;
10
+ export default FilterBackground;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { FilterDescription } from './CurrentFilters';
3
+ import { FilterBackgroundProps } from './FilterBackground';
4
+ import { SortingChangeCallback, SortOptions, SortValue } from './SortMenu';
5
+ export declare type FilterDoubleProps = {
6
+ children?: React.ReactChild[] | React.ReactChild;
7
+ filters?: FilterDescription;
8
+ onSortChange?: SortingChangeCallback;
9
+ results?: number;
10
+ sortOptions?: SortOptions;
11
+ sortValue?: SortValue[];
12
+ } & FilterBackgroundProps;
13
+ declare const FilterDouble: ({ onSortChange, sortOptions, sortValue, filters, results, children, dark, minWidth, placement, ...bgProps }: FilterDoubleProps) => React.ReactElement;
14
+ export default FilterDouble;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { FilterDescription } from './CurrentFilters';
3
+ import { FilterBackgroundProps } from './FilterBackground';
4
+ import { SortingChangeCallback, SortOptions, SortValue } from './SortMenu';
5
+ export declare type FilterSingleProps = {
6
+ children?: React.ReactChild[] | React.ReactChild;
7
+ filters?: FilterDescription;
8
+ onSortChange?: SortingChangeCallback;
9
+ results?: number;
10
+ sortOptions?: SortOptions;
11
+ sortValue?: SortValue[];
12
+ } & FilterBackgroundProps;
13
+ declare const FilterSingle: ({ onSortChange, sortOptions, sortValue, filters, results, children, dark, minWidth, placement, ...bgProps }: FilterSingleProps) => React.ReactElement;
14
+ export default FilterSingle;