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.
- package/CHANGELOG.md +36 -0
- package/changelog.rb +47 -0
- package/dist/pb_avatar/_avatar.d.ts +23 -0
- package/dist/pb_avatar_action_button/_avatar_action_button.d.ts +24 -0
- package/dist/pb_background/_background.d.ts +36 -0
- package/dist/pb_badge/_badge.d.ts +27 -0
- package/dist/pb_bar_graph/_bar_graph.d.ts +38 -0
- package/dist/pb_body/_body.d.ts +27 -0
- package/dist/pb_bread_crumbs/_bread_crumb_item.d.ts +15 -0
- package/dist/pb_bread_crumbs/_bread_crumbs.d.ts +16 -0
- package/dist/pb_button/_button.d.ts +40 -0
- package/dist/pb_button_toolbar/_button_toolbar.d.ts +20 -0
- package/dist/pb_caption/_caption.d.ts +23 -0
- package/dist/pb_card/_card.d.ts +45 -0
- package/dist/pb_checkbox/_checkbox.d.ts +27 -0
- package/dist/pb_circle_chart/ChartsTypes.d.ts +2 -0
- package/dist/pb_circle_chart/_circle_chart.d.ts +38 -0
- package/dist/pb_circle_icon_button/_circle_icon_button.d.ts +24 -0
- package/dist/pb_collapsible/_collapsible.d.ts +32 -0
- package/dist/pb_collapsible/_helper_functions.d.ts +2 -0
- package/dist/pb_collapsible/child_kits/CollapsibleContent.d.ts +7 -0
- package/dist/pb_collapsible/child_kits/CollapsibleMain.d.ts +10 -0
- package/dist/pb_collapsible/context.d.ts +3 -0
- package/dist/pb_collapsible/useCollapsible.d.ts +2 -0
- package/dist/pb_contact/_contact.d.ts +16 -0
- package/dist/pb_currency/_currency.d.ts +27 -0
- package/dist/pb_dashboard/pbChartsColorsHelper.d.ts +2 -0
- package/dist/pb_dashboard/pbChartsDarkTheme.d.ts +3 -0
- package/dist/pb_dashboard/pbChartsLightTheme.d.ts +3 -0
- package/dist/pb_dashboard/themeTypes.d.ts +40 -0
- package/dist/pb_dashboard_value/_dashboard_value.d.ts +26 -0
- package/dist/pb_dashboard_value/dashboardValueSettings.d.ts +43 -0
- package/dist/pb_date/_date.d.ts +21 -0
- package/dist/pb_date_picker/_date_picker.d.ts +53 -0
- package/dist/pb_date_picker/date_picker_helper.d.ts +23 -0
- package/dist/pb_date_picker/plugins/quickPick.d.ts +18 -0
- package/dist/pb_date_picker/plugins/timeSelect.d.ts +44 -0
- package/dist/pb_date_range_inline/_date_range_inline.d.ts +16 -0
- package/dist/pb_date_range_stacked/_date_range_stacked.d.ts +13 -0
- package/dist/pb_date_stacked/_date_stacked.d.ts +16 -0
- package/dist/pb_date_time/_date_time.d.ts +21 -0
- package/dist/pb_date_time_stacked/_date_time_stacked.d.ts +13 -0
- package/dist/pb_date_year_stacked/_date_year_stacked.d.ts +13 -0
- package/dist/pb_detail/_detail.d.ts +23 -0
- package/dist/pb_dialog/_close_icon.d.ts +5 -0
- package/dist/pb_dialog/_dialog.d.ts +77 -0
- package/dist/pb_dialog/_dialog_context.d.ts +2 -0
- package/dist/pb_dialog/child_kits/_dialog_body.d.ts +8 -0
- package/dist/pb_dialog/child_kits/_dialog_footer.d.ts +23 -0
- package/dist/pb_dialog/child_kits/_dialog_header.d.ts +22 -0
- package/dist/pb_distribution_bar/_distribution_bar.d.ts +13 -0
- package/dist/pb_enhanced_element/element_observer.d.ts +17 -0
- package/dist/pb_enhanced_element/index.d.ts +17 -0
- package/dist/pb_file_upload/_file_upload.d.ts +19 -0
- package/dist/pb_filter/Filter/CurrentFilters.d.ts +10 -0
- package/dist/pb_filter/Filter/FilterBackground.d.ts +10 -0
- package/dist/pb_filter/Filter/FilterDouble.d.ts +14 -0
- package/dist/pb_filter/Filter/FilterSingle.d.ts +14 -0
- package/dist/pb_filter/Filter/FiltersPopover.d.ts +11 -0
- package/dist/pb_filter/Filter/ResultsCount.d.ts +8 -0
- package/dist/pb_filter/Filter/SortMenu.d.ts +18 -0
- package/dist/pb_filter/Filter/index.d.ts +8 -0
- package/dist/pb_filter/_filter.d.ts +1 -0
- package/dist/pb_fixed_confirmation_toast/_fixed_confirmation_toast.d.ts +21 -0
- package/dist/pb_flex/_flex.d.ts +27 -0
- package/dist/pb_flex/_flex_item.d.ts +17 -0
- package/dist/pb_form_group/_form_group.d.ts +15 -0
- package/dist/pb_form_pill/_form_pill.d.ts +23 -0
- package/dist/pb_gauge/_gauge.d.ts +34 -0
- package/dist/pb_hashtag/_hashtag.d.ts +20 -0
- package/dist/pb_highlight/_highlight.d.ts +17 -0
- package/dist/pb_home_address_street/_home_address_street.d.ts +26 -0
- package/dist/pb_icon/_icon.d.ts +32 -0
- package/dist/pb_icon_circle/_icon_circle.d.ts +19 -0
- package/dist/pb_icon_stat_value/_icon_stat_value.d.ts +21 -0
- package/dist/pb_icon_value/_icon_value.d.ts +17 -0
- package/dist/pb_image/_image.d.ts +23 -0
- package/dist/pb_kit/dateTime.d.ts +67 -0
- package/dist/pb_label_pill/_label_pill.d.ts +18 -0
- package/dist/pb_label_value/_label_value.d.ts +22 -0
- package/dist/pb_layout/_layout.d.ts +51 -0
- package/dist/pb_legend/_legend.d.ts +17 -0
- package/dist/pb_lightbox/Carousel/Slide.d.ts +12 -0
- package/dist/pb_lightbox/Carousel/Slides.d.ts +10 -0
- package/dist/pb_lightbox/Carousel/Thumbnail.d.ts +11 -0
- package/dist/pb_lightbox/Carousel/Thumbnails.d.ts +9 -0
- package/dist/pb_lightbox/Carousel/index.d.ts +16 -0
- package/dist/pb_lightbox/Header/_lightbox_header.d.ts +25 -0
- package/dist/pb_lightbox/_lightbox.d.ts +51 -0
- package/dist/pb_lightbox/_lightbox_context.d.ts +2 -0
- package/dist/pb_lightbox/hooks/useKbdControls.d.ts +3 -0
- package/dist/pb_lightbox/hooks/useWindowSize.d.ts +6 -0
- package/dist/pb_line_graph/_line_graph.d.ts +38 -0
- package/dist/pb_list/_list.d.ts +25 -0
- package/dist/pb_list/_list_item.d.ts +16 -0
- package/dist/pb_loading_inline/_loading_inline.d.ts +16 -0
- package/dist/pb_map/_map.d.ts +33 -0
- package/dist/pb_map/_map_controls.d.ts +11 -0
- package/dist/pb_map/_map_custom_button.d.ts +6 -0
- package/dist/pb_map/pbMapTheme.d.ts +20 -0
- package/dist/pb_message/_message.d.ts +39 -0
- package/dist/pb_message/_message_mention.d.ts +16 -0
- package/dist/pb_multi_level_select/_helper_functions.d.ts +33 -0
- package/dist/pb_multi_level_select/_multi_level_select.d.ts +28 -0
- package/dist/pb_multiple_users/_multiple_users.d.ts +23 -0
- package/dist/pb_multiple_users_stacked/_multiple_users_stacked.d.ts +19 -0
- package/dist/pb_nav/_item.d.ts +43 -0
- package/dist/pb_nav/_nav.d.ts +26 -0
- package/dist/pb_nav/navTypes.d.ts +22 -0
- package/dist/pb_online_status/_online_status.d.ts +17 -0
- package/dist/pb_passphrase/_passphrase.d.ts +22 -0
- package/dist/pb_person/_person.d.ts +18 -0
- package/dist/pb_person_contact/_person_contact.d.ts +21 -0
- package/dist/pb_phone_number_input/_phone_number_input.d.ts +37 -0
- package/dist/pb_pill/_pill.d.ts +19 -0
- package/dist/pb_popover/_popover.d.ts +25 -0
- package/dist/pb_popover/index.d.ts +21 -0
- package/dist/pb_progress_pills/_progress_pills.d.ts +20 -0
- package/dist/pb_progress_simple/_progress_simple.d.ts +18 -0
- package/dist/pb_progress_step/_progress_step.d.ts +22 -0
- package/dist/pb_progress_step/_progress_step_item.d.ts +15 -0
- package/dist/pb_radio/_radio.d.ts +367 -0
- package/dist/pb_rich_text_editor/TipTap/EditorButton.d.ts +9 -0
- package/dist/pb_rich_text_editor/TipTap/EditorTypes.d.ts +9 -0
- package/dist/pb_rich_text_editor/TipTap/MoreExtensionsDropdown.d.ts +2 -0
- package/dist/pb_rich_text_editor/TipTap/Toolbar.d.ts +2 -0
- package/dist/pb_rich_text_editor/TipTap/ToolbarDropdown.d.ts +2 -0
- package/dist/pb_rich_text_editor/TipTap/ToolbarHistory.d.ts +2 -0
- package/dist/pb_rich_text_editor/TipTap/ToolbarNodes.d.ts +2 -0
- package/dist/pb_rich_text_editor/_rich_text_editor.d.ts +34 -0
- package/dist/pb_rich_text_editor/inlineFocus.d.ts +2 -0
- package/dist/pb_rich_text_editor/useFocus.d.ts +2 -0
- package/dist/pb_section_separator/_section_separator.d.ts +22 -0
- package/dist/pb_select/_select.d.ts +397 -0
- package/dist/pb_selectable_card/_selectable_card.d.ts +33 -0
- package/dist/pb_selectable_card_icon/_selectable_card_icon.d.ts +30 -0
- package/dist/pb_selectable_icon/_selectable_icon.d.ts +24 -0
- package/dist/pb_selectable_list/_item.d.ts +23 -0
- package/dist/pb_selectable_list/_selectable_list.d.ts +20 -0
- package/dist/pb_source/_source.d.ts +20 -0
- package/dist/pb_star_rating/_star_rating.d.ts +17 -0
- package/dist/pb_stat_change/_stat_change.d.ts +13 -0
- package/dist/pb_stat_value/_stat_value.d.ts +12 -0
- package/dist/pb_table/_table.d.ts +27 -0
- package/dist/pb_table/_table_row.d.ts +18 -0
- package/dist/pb_table/index.d.ts +5 -0
- package/dist/pb_text_input/_text_input.d.ts +395 -0
- package/dist/pb_textarea/_textarea.d.ts +392 -0
- package/dist/pb_textarea/index.d.ts +10 -0
- package/dist/pb_time/_time.d.ts +19 -0
- package/dist/pb_time_range_inline/_time_range_inline.d.ts +23 -0
- package/dist/pb_time_stacked/_time_stacked.d.ts +18 -0
- package/dist/pb_timeline/_item.d.ts +14 -0
- package/dist/pb_timeline/_timeline.d.ts +32 -0
- package/dist/pb_timestamp/_timestamp.d.ts +25 -0
- package/dist/pb_title/_title.d.ts +29 -0
- package/dist/pb_title_count/_title_count.d.ts +21 -0
- package/dist/pb_title_detail/_title_detail.d.ts +19 -0
- package/dist/pb_toggle/_toggle.d.ts +24 -0
- package/dist/pb_tooltip/_tooltip.d.ts +368 -0
- package/dist/pb_treemap_chart/_treemap_chart.d.ts +30 -0
- package/dist/pb_typeahead/_typeahead.d.ts +38 -0
- package/dist/pb_typeahead/components/ClearIndicator.d.ts +2 -0
- package/dist/pb_typeahead/components/Control.d.ts +5 -0
- package/dist/pb_typeahead/components/IndicatorsContainer.d.ts +2 -0
- package/dist/pb_typeahead/components/MenuList.d.ts +2 -0
- package/dist/pb_typeahead/components/MultiValue.d.ts +9 -0
- package/dist/pb_typeahead/components/Option.d.ts +2 -0
- package/dist/pb_typeahead/components/Placeholder.d.ts +2 -0
- package/dist/pb_typeahead/components/ValueContainer.d.ts +2 -0
- package/dist/pb_typeahead/index.d.ts +39 -0
- package/dist/pb_user/_user.d.ts +26 -0
- package/dist/pb_user_badge/_user_badge.d.ts +17 -0
- package/dist/pb_user_badge/badges/million-dollar.d.ts +2 -0
- package/dist/pb_user_badge/badges/veteran.d.ts +2 -0
- package/dist/pb_walkthrough/_walkthrough.d.ts +44 -0
- package/dist/pb_weekday_stacked/_weekday_stacked.d.ts +18 -0
- package/dist/playbook-doc.js +6 -6
- package/dist/playbook-rails.js +5 -5
- package/dist/playbook.js +8 -8
- package/dist/types/base.d.ts +7 -0
- package/dist/types/colors.d.ts +19 -0
- package/dist/types/display.d.ts +8 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/sizes.d.ts +1 -0
- package/dist/types/spacing.d.ts +1 -0
- package/dist/utilities/globalProps.d.ts +113 -0
- package/dist/utilities/object.d.ts +1 -0
- package/dist/utilities/props.d.ts +50 -0
- package/dist/utilities/text.d.ts +3 -0
- package/dist/utilities/validEmojiChecker.d.ts +1 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
# Dynamically Control Your Tooltips!
|
|
3
|
+
##### November 22, 2023
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
Gone are the days that a tooltip appears on its own. You can now control tooltips' visible state via props, so they are rendered conditionally. Text truncation? Data values? You have the power to dynamically display your Tooltips when and where you need them!
|
|
8
|
+
|
|
9
|
+
[13.12.0](https://github.com/powerhome/playbook/tree/13.12.0) full list of changes:
|
|
10
|
+
|
|
11
|
+
**Kit Enhancements:**
|
|
12
|
+
|
|
13
|
+
- Initial State and External Controls for Collapse in Rails [\#2870](https://github.com/powerhome/playbook/pull/2870) ([nidaqg](https://github.com/nidaqg))
|
|
14
|
+
- Use new sorting style [\#2846](https://github.com/powerhome/playbook/pull/2846) ([markdoeswork](https://github.com/markdoeswork))
|
|
15
|
+
- Tooltip for truncated text \(only\) [\#2826](https://github.com/powerhome/playbook/pull/2826) ([augustomallmann](https://github.com/augustomallmann))
|
|
16
|
+
|
|
17
|
+
**Fixed Bugs:**
|
|
18
|
+
|
|
19
|
+
- Table kit hover style fixes in Darkmode [\#2872](https://github.com/powerhome/playbook/pull/2872) ([Israel-Molestina](https://github.com/Israel-Molestina))
|
|
20
|
+
|
|
21
|
+
**Improvements:**
|
|
22
|
+
|
|
23
|
+
- Linting improvements [\#2885](https://github.com/powerhome/playbook/pull/2885) ([Israel-Molestina](https://github.com/Israel-Molestina))
|
|
24
|
+
- Docs: Message [\#2865](https://github.com/powerhome/playbook/pull/2865) ([nickamantia](https://github.com/nickamantia))
|
|
25
|
+
- Console error cleanup: site-wide and homepage [\#2856](https://github.com/powerhome/playbook/pull/2856) ([thestephenmarshall](https://github.com/thestephenmarshall))
|
|
26
|
+
- Docs: Label Value [\#2855](https://github.com/powerhome/playbook/pull/2855) ([nickamantia](https://github.com/nickamantia))
|
|
27
|
+
- Docs: Image [\#2851](https://github.com/powerhome/playbook/pull/2851) ([nickamantia](https://github.com/nickamantia))
|
|
28
|
+
- Add a dependencies page [\#2850](https://github.com/powerhome/playbook/pull/2850) ([markdoeswork](https://github.com/markdoeswork))
|
|
29
|
+
- Docs: Icon [\#2838](https://github.com/powerhome/playbook/pull/2838) ([nickamantia](https://github.com/nickamantia))
|
|
30
|
+
- Beta React-Router Scaffold/Setup [\#2810](https://github.com/powerhome/playbook/pull/2810) ([jasperfurniss](https://github.com/jasperfurniss))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
[Full Changelog](https://github.com/powerhome/playbook/compare/13.11.1...13.12.0)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
1
37
|
# Multi Level Select with Customizable Radio Button Selectors!
|
|
2
38
|
##### November 13, 2023
|
|
3
39
|
|
package/changelog.rb
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "date"
|
|
4
|
+
|
|
5
|
+
## Function to capitalize words except for certain articles
|
|
6
|
+
def titleize(sentence)
|
|
7
|
+
lowercase_words = %w[a an the and but or for nor on at to from by]
|
|
8
|
+
sentence.split.each_with_index.map { |w, i| lowercase_words.include?(w.downcase) && i.positive? ? w : w.capitalize }.join(" ")
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# Read the changelog content from a file
|
|
12
|
+
raw_changelog = File.read("changelog.md")
|
|
13
|
+
|
|
14
|
+
# Extract the latest release section
|
|
15
|
+
latest_release_boundary = /\n(?=## \[\d+\.\d+\.\d+\])|\n(?=# )/
|
|
16
|
+
latest_release = raw_changelog.split(latest_release_boundary).first
|
|
17
|
+
|
|
18
|
+
# Define placeholders
|
|
19
|
+
fancy_title = "# Awesome Release Title Here!"
|
|
20
|
+
image_placeholder = ""
|
|
21
|
+
current_date = "##### #{Date.today.strftime('%B %d, %Y')}"
|
|
22
|
+
feature_description = "Your feature description goes here."
|
|
23
|
+
|
|
24
|
+
# Format the latest release
|
|
25
|
+
formatted_release = latest_release
|
|
26
|
+
formatted_release.sub!(/^## \[\d+\.\d+\.\d+\]\(.*?\) \(\d{4}-\d{2}-\d{2}\)/, "#{fancy_title}\n\n#{current_date}\n\n#{image_placeholder}\n\n#{feature_description}")
|
|
27
|
+
|
|
28
|
+
# Move the full changelog link to the end of the section
|
|
29
|
+
full_changelog_link = formatted_release.match(/\[Full Changelog\]\(.+\)/).to_s
|
|
30
|
+
formatted_release.gsub!(/\[Full Changelog\]\(.+\)/, "")
|
|
31
|
+
formatted_release << "\n\n#{full_changelog_link}" unless full_changelog_link.empty?
|
|
32
|
+
|
|
33
|
+
# Remove ticket numbers, emojis, and PR number/user references
|
|
34
|
+
formatted_release.gsub!(/\\\[\w+-\d+\\\]\s?/, "") # Remove ticket numbers
|
|
35
|
+
formatted_release.gsub!(/[\u{1F300}-\u{1F5FF}\u{1F600}-\u{1F64F}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{2600}-\u{26FF}\u{2700}-\u{27BF}]/, "") # Remove Unicode emojis
|
|
36
|
+
formatted_release.gsub!(/\[\#\d+\].*?\)\s+\(\[.*?\]\)/, "") # Remove PR number and user references
|
|
37
|
+
|
|
38
|
+
# Apply titleize to each PR title in the release notes
|
|
39
|
+
formatted_release.gsub!(/(?<=-\s).+/) { |match| titleize(match) }
|
|
40
|
+
|
|
41
|
+
# Remove leading spaces from each PR title after bullet points
|
|
42
|
+
# Adjusted to also remove any leading spaces after bullet point and emoji/number removal
|
|
43
|
+
formatted_release.gsub!(/-\s+/, "- ")
|
|
44
|
+
|
|
45
|
+
# Write the new changelog to a file
|
|
46
|
+
File.write("new-changelog.md", formatted_release)
|
|
47
|
+
puts "🎉 Latest release formatted for Github and saved to new-changelog.md 🎉"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GlobalProps } from '../utilities/globalProps';
|
|
3
|
+
export declare type AvatarProps = {
|
|
4
|
+
aria?: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
className?: string;
|
|
8
|
+
data?: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
dark?: boolean;
|
|
12
|
+
htmlOptions?: {
|
|
13
|
+
[key: string]: string | number | boolean | Function;
|
|
14
|
+
};
|
|
15
|
+
id?: string;
|
|
16
|
+
imageAlt?: string;
|
|
17
|
+
imageUrl?: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
size?: "md" | "lg" | "sm" | "xl" | "xs" | "xxs";
|
|
20
|
+
status?: "away" | "offline" | "online";
|
|
21
|
+
} & GlobalProps;
|
|
22
|
+
declare const Avatar: (props: AvatarProps) => React.ReactElement;
|
|
23
|
+
export default Avatar;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type AvatarActionButtonProps = {
|
|
3
|
+
action?: "add" | "remove";
|
|
4
|
+
aria?: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
linkAriaLabel?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
dark?: boolean;
|
|
10
|
+
data?: Object;
|
|
11
|
+
htmlOptions?: {
|
|
12
|
+
[key: string]: string | number | boolean | Function;
|
|
13
|
+
};
|
|
14
|
+
id?: string;
|
|
15
|
+
imageAlt?: string;
|
|
16
|
+
imageUrl?: string;
|
|
17
|
+
linkUrl?: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
onClick?: React.MouseEventHandler<HTMLSpanElement>;
|
|
20
|
+
placement?: string;
|
|
21
|
+
size?: "md" | "lg" | "sm" | "xl" | "xs" | "xxs";
|
|
22
|
+
};
|
|
23
|
+
declare const AvatarActionButton: (props: AvatarActionButtonProps) => JSX.Element;
|
|
24
|
+
export default AvatarActionButton;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GlobalProps } from '../utilities/globalProps';
|
|
3
|
+
declare type BackgroundProps = {
|
|
4
|
+
alt?: string;
|
|
5
|
+
aria?: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
backgroundColor?: ResponsiveProp<string> | 'gradient' | 'dark' | 'light' | 'white' | 'success' | 'warning' | 'error' | 'info' | 'neutral' | 'primary' | 'shadow' | 'category_1' | 'category_2' | 'category_3' | 'category_4' | 'category_5' | 'category_6' | 'category_7' | 'category_8' | 'category_9' | 'category_10' | 'category_11' | 'category_12' | 'category_13' | 'category_14' | 'category_15' | 'category_16' | 'category_17' | 'category_18' | 'category_19' | 'category_20' | 'category_21' | 'text_lt_default' | 'text_lt_light' | 'text_lt_lighter' | 'text_dk_default' | 'text_dk_light' | 'text_dk_lighter' | 'card_light' | 'card_dark' | 'data_1' | 'data_2' | 'data_3' | 'data_4' | 'data_5' | 'data_6' | 'data_7' | 'data_8' | 'border_light' | 'border_dark' | 'success_secondary' | 'error_secondary' | 'info_secondary' | 'warning_secondary' | 'neutral_secondary' | 'primary_secondary' | 'success_subtle' | 'warning_subtle' | 'error_subtle' | 'info_subtle' | 'neutral_subtle';
|
|
9
|
+
backgroundSize?: ResponsiveProp<string> | 'auto' | 'cover' | 'contain';
|
|
10
|
+
backgroundPosition?: ResponsiveProp<string> | string;
|
|
11
|
+
backgroundRepeat?: ResponsiveProp<string> | 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat' | 'space' | 'round' | 'initial' | 'inherit';
|
|
12
|
+
imageUrl?: ResponsiveProp<string> | string;
|
|
13
|
+
children?: React.ReactChild[] | React.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
customColor?: string;
|
|
16
|
+
data?: {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
htmlOptions?: {
|
|
20
|
+
[key: string]: string | number | boolean | Function;
|
|
21
|
+
};
|
|
22
|
+
id?: string;
|
|
23
|
+
padding?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
24
|
+
tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div' | 'tr' | 'th' | 'td' | 'thead' | 'col';
|
|
25
|
+
transition?: 'fade' | 'blur' | 'scale';
|
|
26
|
+
} & GlobalProps;
|
|
27
|
+
declare type ResponsiveProp<T> = T | {
|
|
28
|
+
xs?: T;
|
|
29
|
+
sm?: T;
|
|
30
|
+
md?: T;
|
|
31
|
+
lg?: T;
|
|
32
|
+
xl?: T;
|
|
33
|
+
default?: T;
|
|
34
|
+
};
|
|
35
|
+
declare const Background: (props: BackgroundProps) => JSX.Element;
|
|
36
|
+
export default Background;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GlobalProps } from '../utilities/globalProps';
|
|
3
|
+
declare type BadgeProps = {
|
|
4
|
+
aria?: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
className?: string;
|
|
8
|
+
closeProps?: {
|
|
9
|
+
onClick?: React.MouseEventHandler<HTMLSpanElement>;
|
|
10
|
+
onMouseDown?: React.MouseEventHandler<HTMLSpanElement>;
|
|
11
|
+
onTouchEnd?: React.TouchEventHandler<HTMLSpanElement>;
|
|
12
|
+
};
|
|
13
|
+
data?: {
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
};
|
|
16
|
+
htmlOptions?: {
|
|
17
|
+
[key: string]: string | number | boolean | Function;
|
|
18
|
+
};
|
|
19
|
+
id?: string;
|
|
20
|
+
removeIcon?: boolean;
|
|
21
|
+
removeOnClick?: React.MouseEventHandler<HTMLSpanElement>;
|
|
22
|
+
rounded?: boolean;
|
|
23
|
+
text?: string;
|
|
24
|
+
variant?: "error" | "info" | "neutral" | "notification" | "primary" | "success" | "warning";
|
|
25
|
+
} & GlobalProps;
|
|
26
|
+
declare const Badge: (props: BadgeProps) => JSX.Element;
|
|
27
|
+
export default Badge;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare type BarGraphProps = {
|
|
3
|
+
align?: "left" | "right" | "center";
|
|
4
|
+
axisTitle: string;
|
|
5
|
+
dark?: boolean;
|
|
6
|
+
xAxisCategories: [];
|
|
7
|
+
yAxisMin: number;
|
|
8
|
+
yAxisMax: number;
|
|
9
|
+
chartData: {
|
|
10
|
+
name: string;
|
|
11
|
+
data: number[];
|
|
12
|
+
}[];
|
|
13
|
+
className?: string;
|
|
14
|
+
htmlOptions?: {
|
|
15
|
+
[key: string]: string | number | boolean | Function;
|
|
16
|
+
};
|
|
17
|
+
id: any;
|
|
18
|
+
pointStart: number | any;
|
|
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 BarGraph: ({ aria, data, align, axisTitle, dark, chartData, className, colors, htmlOptions, id, pointStart, subTitle, type, title, xAxisCategories, yAxisMin, yAxisMax, legend, toggleLegendClick, height, layout, verticalAlign, x, y, ...props }: BarGraphProps) => React.ReactElement;
|
|
38
|
+
export default BarGraph;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GlobalProps } from '../utilities/globalProps';
|
|
3
|
+
declare type BodyProps = {
|
|
4
|
+
aria?: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
className?: string;
|
|
8
|
+
children?: React.ReactChild[] | React.ReactChild;
|
|
9
|
+
color?: 'default' | 'light' | 'lighter' | 'link' | 'error' | 'success';
|
|
10
|
+
dark?: boolean;
|
|
11
|
+
data?: {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
14
|
+
highlightedText?: string[];
|
|
15
|
+
highlighting?: boolean;
|
|
16
|
+
htmlOptions?: {
|
|
17
|
+
[key: string]: string | number | boolean | Function;
|
|
18
|
+
};
|
|
19
|
+
id?: string;
|
|
20
|
+
status?: 'neutral' | 'negative' | 'positive';
|
|
21
|
+
tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div';
|
|
22
|
+
text?: string;
|
|
23
|
+
truncate?: null | '1' | '2' | '3' | '4' | '5';
|
|
24
|
+
variant?: null | 'link';
|
|
25
|
+
} & GlobalProps;
|
|
26
|
+
declare const Body: (props: BodyProps) => React.ReactElement;
|
|
27
|
+
export default Body;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare type BreadCrumbItemProps = {
|
|
2
|
+
aria?: {
|
|
3
|
+
[key: string]: string;
|
|
4
|
+
};
|
|
5
|
+
className?: string;
|
|
6
|
+
data?: object;
|
|
7
|
+
htmlOptions?: {
|
|
8
|
+
[key: string]: string | number | boolean | Function;
|
|
9
|
+
};
|
|
10
|
+
id?: string;
|
|
11
|
+
component?: "a" | "span";
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
};
|
|
14
|
+
declare const BreadCrumbItem: (props: BreadCrumbItemProps) => JSX.Element;
|
|
15
|
+
export default BreadCrumbItem;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type BreadCrumbsProps = {
|
|
3
|
+
aria?: {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
};
|
|
6
|
+
className?: string;
|
|
7
|
+
data?: object;
|
|
8
|
+
htmlOptions?: {
|
|
9
|
+
[key: string]: string | number | boolean | Function;
|
|
10
|
+
};
|
|
11
|
+
id?: string;
|
|
12
|
+
text?: string;
|
|
13
|
+
children?: React.ReactChild[] | React.ReactNode;
|
|
14
|
+
};
|
|
15
|
+
declare const BreadCrumbs: (props: BreadCrumbsProps) => JSX.Element;
|
|
16
|
+
export default BreadCrumbs;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GlobalProps } from '../utilities/globalProps';
|
|
3
|
+
declare type EventHandler = (React.MouseEventHandler<HTMLElement>);
|
|
4
|
+
declare type ButtonPropTypes = {
|
|
5
|
+
aria?: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
children?: React.ReactChild[] | React.ReactChild;
|
|
9
|
+
className?: string | string[];
|
|
10
|
+
count?: number;
|
|
11
|
+
data?: {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
fixedWidth?: boolean;
|
|
16
|
+
form?: string;
|
|
17
|
+
fullWidth?: boolean;
|
|
18
|
+
highlight?: boolean;
|
|
19
|
+
htmlOptions?: {
|
|
20
|
+
[key: string]: string | number | boolean | Function;
|
|
21
|
+
};
|
|
22
|
+
icon?: string;
|
|
23
|
+
iconRight?: boolean;
|
|
24
|
+
id?: string;
|
|
25
|
+
link?: string;
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
newWindow?: boolean;
|
|
28
|
+
onClick?: EventHandler;
|
|
29
|
+
tabIndex?: number;
|
|
30
|
+
size?: 'sm' | 'md' | 'lg';
|
|
31
|
+
target?: string;
|
|
32
|
+
text?: string;
|
|
33
|
+
type?: 'inline' | null;
|
|
34
|
+
htmlType?: 'submit' | 'reset' | 'button' | undefined;
|
|
35
|
+
value?: string | null;
|
|
36
|
+
variant?: 'primary' | 'secondary' | 'link' | 'reaction';
|
|
37
|
+
wrapperClass?: string;
|
|
38
|
+
} & GlobalProps;
|
|
39
|
+
declare const Button: (props: ButtonPropTypes) => JSX.Element;
|
|
40
|
+
export default Button;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type ButtonToolbarProps = {
|
|
3
|
+
aria?: {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
};
|
|
6
|
+
children?: React.ReactChild[] | React.ReactChild;
|
|
7
|
+
className?: string;
|
|
8
|
+
connected?: boolean;
|
|
9
|
+
data?: object;
|
|
10
|
+
htmlOptions?: {
|
|
11
|
+
[key: string]: string | number | boolean | Function;
|
|
12
|
+
};
|
|
13
|
+
id?: string;
|
|
14
|
+
onClick?: React.MouseEventHandler<HTMLSpanElement>;
|
|
15
|
+
orientation?: "horizontal" | "vertical";
|
|
16
|
+
text?: string;
|
|
17
|
+
variant?: "primary" | "secondary";
|
|
18
|
+
};
|
|
19
|
+
declare const ButtonToolbar: (props: ButtonToolbarProps) => JSX.Element;
|
|
20
|
+
export default ButtonToolbar;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GlobalProps } from '../utilities/globalProps';
|
|
3
|
+
declare type CaptionProps = {
|
|
4
|
+
aria?: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
children?: React.ReactChild[] | React.ReactChild;
|
|
8
|
+
className?: string;
|
|
9
|
+
color?: "default" | "light" | "lighter" | "success" | "error" | "link";
|
|
10
|
+
data?: {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
13
|
+
htmlOptions?: {
|
|
14
|
+
[key: string]: string | number | boolean | Function;
|
|
15
|
+
};
|
|
16
|
+
id?: string;
|
|
17
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
18
|
+
tag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "div" | "caption";
|
|
19
|
+
text?: string;
|
|
20
|
+
variant?: null | "link";
|
|
21
|
+
} & GlobalProps;
|
|
22
|
+
declare const Caption: (props: CaptionProps) => React.ReactElement;
|
|
23
|
+
export default Caption;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GlobalProps } from '../utilities/globalProps';
|
|
3
|
+
import type { ProductColors, CategoryColors, BackgroundColors } from '../types/colors';
|
|
4
|
+
declare type CardPropTypes = {
|
|
5
|
+
aria?: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
background?: BackgroundColors | ProductColors | "none";
|
|
9
|
+
borderNone?: boolean;
|
|
10
|
+
borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "rounded";
|
|
11
|
+
children: React.ReactChild[] | React.ReactChild | number;
|
|
12
|
+
className?: string;
|
|
13
|
+
data?: {
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
};
|
|
16
|
+
htmlOptions?: {
|
|
17
|
+
[key: string]: string | number | boolean | Function;
|
|
18
|
+
};
|
|
19
|
+
highlight?: {
|
|
20
|
+
position?: "side" | "top";
|
|
21
|
+
color?: string;
|
|
22
|
+
};
|
|
23
|
+
length?: number;
|
|
24
|
+
padding?: string;
|
|
25
|
+
selected?: boolean;
|
|
26
|
+
tag?: "div" | "section" | "footer" | "header" | "article" | "aside" | "main" | "nav";
|
|
27
|
+
} & GlobalProps;
|
|
28
|
+
declare type CardHeaderProps = {
|
|
29
|
+
headerColor?: BackgroundColors | ProductColors | CategoryColors | "none";
|
|
30
|
+
headerColorStriped?: boolean;
|
|
31
|
+
children: React.ReactChild[] | React.ReactChild;
|
|
32
|
+
className?: string;
|
|
33
|
+
padding?: string;
|
|
34
|
+
} & GlobalProps;
|
|
35
|
+
declare type CardBodyProps = {
|
|
36
|
+
children: React.ReactChild[] | React.ReactChild | string;
|
|
37
|
+
className?: string;
|
|
38
|
+
padding?: string;
|
|
39
|
+
} & GlobalProps;
|
|
40
|
+
declare const Card: {
|
|
41
|
+
(props: CardPropTypes): JSX.Element;
|
|
42
|
+
Header: (props: CardHeaderProps) => JSX.Element;
|
|
43
|
+
Body: (props: CardBodyProps) => JSX.Element;
|
|
44
|
+
};
|
|
45
|
+
export default Card;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GlobalProps } from '../utilities/globalProps';
|
|
3
|
+
declare type CheckboxProps = {
|
|
4
|
+
aria?: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
children?: React.ReactChild[] | React.ReactChild;
|
|
9
|
+
className?: string;
|
|
10
|
+
dark?: boolean;
|
|
11
|
+
data?: {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
14
|
+
error?: boolean;
|
|
15
|
+
htmlOptions?: {
|
|
16
|
+
[key: string]: string | number | boolean | Function;
|
|
17
|
+
};
|
|
18
|
+
id?: string;
|
|
19
|
+
indeterminate?: boolean;
|
|
20
|
+
name?: string;
|
|
21
|
+
onChange?: (event: React.FormEvent<HTMLInputElement>) => void;
|
|
22
|
+
tabIndex?: number;
|
|
23
|
+
text?: string;
|
|
24
|
+
value?: string;
|
|
25
|
+
} & GlobalProps;
|
|
26
|
+
declare const Checkbox: (props: CheckboxProps) => JSX.Element;
|
|
27
|
+
export default Checkbox;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare type CircleChartProps = {
|
|
2
|
+
align?: "left" | "right" | "center";
|
|
3
|
+
aria: {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
};
|
|
6
|
+
chartData?: [];
|
|
7
|
+
children?: Node;
|
|
8
|
+
className?: string;
|
|
9
|
+
colors?: string[];
|
|
10
|
+
dark?: Boolean;
|
|
11
|
+
data?: Object;
|
|
12
|
+
dataLabelHtml?: string;
|
|
13
|
+
dataLabels?: boolean;
|
|
14
|
+
height?: string;
|
|
15
|
+
htmlOptions?: {
|
|
16
|
+
[key: string]: string | number | boolean | Function;
|
|
17
|
+
};
|
|
18
|
+
id?: string;
|
|
19
|
+
innerSize?: "sm" | "md" | "lg" | "none";
|
|
20
|
+
legend?: boolean;
|
|
21
|
+
maxPointSize?: number;
|
|
22
|
+
minPointSize?: number;
|
|
23
|
+
rounded?: boolean;
|
|
24
|
+
startAngle?: number;
|
|
25
|
+
style?: string;
|
|
26
|
+
title?: string;
|
|
27
|
+
tooltipHtml: string;
|
|
28
|
+
useHtml?: boolean;
|
|
29
|
+
zMin?: number;
|
|
30
|
+
layout?: "horizontal" | "vertical" | "proximate";
|
|
31
|
+
verticalAlign?: "top" | "middle" | "bottom";
|
|
32
|
+
x?: number;
|
|
33
|
+
y?: number;
|
|
34
|
+
borderColor?: string;
|
|
35
|
+
borderWidth?: number;
|
|
36
|
+
};
|
|
37
|
+
declare const CircleChart: ({ align, aria, rounded, borderColor, borderWidth, chartData, children, className, colors, dark, data, dataLabelHtml, dataLabels, height, htmlOptions, id, innerSize, legend, maxPointSize, minPointSize, startAngle, style, title, tooltipHtml, useHtml, zMin, layout, verticalAlign, x, y, ...props }: CircleChartProps) => JSX.Element;
|
|
38
|
+
export default CircleChart;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type CircleIconButtonProps = {
|
|
3
|
+
aria?: {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
};
|
|
6
|
+
className?: string;
|
|
7
|
+
dark?: boolean;
|
|
8
|
+
data?: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
icon: string;
|
|
13
|
+
htmlOptions?: {
|
|
14
|
+
[key: string]: string | number | boolean | Function;
|
|
15
|
+
};
|
|
16
|
+
id?: string;
|
|
17
|
+
link?: string;
|
|
18
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
19
|
+
newWindow?: boolean;
|
|
20
|
+
type?: 'button' | 'submit' | 'reset' | undefined;
|
|
21
|
+
variant?: 'primary' | 'secondary' | 'link';
|
|
22
|
+
};
|
|
23
|
+
declare const CircleIconButton: (props: CircleIconButtonProps) => React.ReactElement;
|
|
24
|
+
export default CircleIconButton;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconSizes } from "../pb_icon/_icon";
|
|
3
|
+
declare type CollapsibleProps = {
|
|
4
|
+
children?: JSX.Element | [] | any;
|
|
5
|
+
aria?: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
className?: string;
|
|
9
|
+
collapsed?: boolean;
|
|
10
|
+
data?: object;
|
|
11
|
+
icon?: string | string[];
|
|
12
|
+
iconColor?: 'default' | 'light' | 'lighter' | 'link' | 'error' | 'success';
|
|
13
|
+
iconSize?: IconSizes;
|
|
14
|
+
onIconClick?: () => void;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
htmlOptions?: {
|
|
17
|
+
[key: string]: string | number | boolean | Function;
|
|
18
|
+
};
|
|
19
|
+
id?: string;
|
|
20
|
+
};
|
|
21
|
+
declare const Collapsible: {
|
|
22
|
+
({ aria, className, children, collapsed, data, htmlOptions, icon, iconColor, iconSize, onIconClick, onClick, id, ...props }: CollapsibleProps): JSX.Element;
|
|
23
|
+
Main: ({ children, className, cursor, ...props }: {
|
|
24
|
+
children: React.ReactNode | React.ReactNode[];
|
|
25
|
+
className?: string;
|
|
26
|
+
cursor?: string;
|
|
27
|
+
dark?: boolean;
|
|
28
|
+
onClick?: () => void;
|
|
29
|
+
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
30
|
+
Content: ({ children, className, ...props }: import("./child_kits/CollapsibleContent").CollapsibleContentProps) => JSX.Element;
|
|
31
|
+
};
|
|
32
|
+
export default Collapsible;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type CollapsibleContentProps = {
|
|
3
|
+
children?: React.ReactNode[] | React.ReactNode | string;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const CollapsibleContent: ({ children, className, ...props }: CollapsibleContentProps) => JSX.Element;
|
|
7
|
+
export default CollapsibleContent;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type CollapsibleMainProps = {
|
|
3
|
+
children: React.ReactNode[] | React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
cursor?: string;
|
|
6
|
+
dark?: boolean;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
};
|
|
9
|
+
declare const CollapsibleMain: ({ children, className, cursor, ...props }: CollapsibleMainProps) => React.ReactElement;
|
|
10
|
+
export default CollapsibleMain;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare type ContactProps = {
|
|
2
|
+
aria?: {
|
|
3
|
+
[key: string]: string;
|
|
4
|
+
};
|
|
5
|
+
className?: string | string[];
|
|
6
|
+
contactDetail?: string;
|
|
7
|
+
contactType?: string;
|
|
8
|
+
contactValue: string;
|
|
9
|
+
data?: object;
|
|
10
|
+
htmlOptions?: {
|
|
11
|
+
[key: string]: string | number | boolean | Function;
|
|
12
|
+
};
|
|
13
|
+
id?: string;
|
|
14
|
+
};
|
|
15
|
+
declare const Contact: (props: ContactProps) => JSX.Element;
|
|
16
|
+
export default Contact;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare type CurrencyProps = {
|
|
2
|
+
abbreviate?: boolean;
|
|
3
|
+
align?: 'center' | 'left' | 'right';
|
|
4
|
+
amount: string;
|
|
5
|
+
aria?: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
className?: string;
|
|
9
|
+
dark?: boolean;
|
|
10
|
+
data?: {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
13
|
+
decimals?: 'default' | 'matching';
|
|
14
|
+
emphasized?: boolean;
|
|
15
|
+
htmlOptions?: {
|
|
16
|
+
[key: string]: string | number | boolean | Function;
|
|
17
|
+
};
|
|
18
|
+
id?: string;
|
|
19
|
+
label?: string;
|
|
20
|
+
size?: 'sm' | 'md' | 'lg';
|
|
21
|
+
symbol?: string;
|
|
22
|
+
variant?: 'default' | 'light' | 'bold';
|
|
23
|
+
unit?: string;
|
|
24
|
+
unstyled?: boolean;
|
|
25
|
+
};
|
|
26
|
+
declare const Currency: (props: CurrencyProps) => JSX.Element;
|
|
27
|
+
export default Currency;
|