playbook_ui 13.12.0.pre.alpha.PLAY1051removinghighchartsdependency1551 → 13.12.0.pre.alpha.PLAY1081exporttypes1609
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_avatar/_avatar.d.ts +20 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.d.ts +21 -0
- data/app/pb_kits/playbook/pb_background/_background.d.ts +33 -0
- data/app/pb_kits/playbook/pb_badge/_badge.d.ts +24 -0
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.d.ts +35 -0
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +32 -36
- data/app/pb_kits/playbook/pb_body/_body.d.ts +24 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.d.ts +12 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.d.ts +13 -0
- data/app/pb_kits/playbook/pb_button/_button.d.ts +37 -0
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.d.ts +17 -0
- data/app/pb_kits/playbook/pb_caption/_caption.d.ts +20 -0
- data/app/pb_kits/playbook/pb_card/_card.d.ts +42 -0
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.d.ts +24 -0
- data/app/pb_kits/playbook/pb_circle_chart/ChartsTypes.d.ts +2 -0
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.d.ts +35 -0
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx +63 -67
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.d.ts +21 -0
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.d.ts +29 -0
- data/app/pb_kits/playbook/pb_collapsible/_helper_functions.d.ts +2 -0
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.d.ts +7 -0
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.d.ts +10 -0
- data/app/pb_kits/playbook/pb_collapsible/context.d.ts +3 -0
- data/app/pb_kits/playbook/pb_collapsible/useCollapsible.d.ts +2 -0
- data/app/pb_kits/playbook/pb_contact/_contact.d.ts +13 -0
- data/app/pb_kits/playbook/pb_currency/_currency.d.ts +24 -0
- data/app/pb_kits/playbook/pb_dashboard/pbChartsColorsHelper.d.ts +2 -0
- data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.d.ts +3 -0
- data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.d.ts +3 -0
- data/app/pb_kits/playbook/pb_dashboard/themeTypes.d.ts +40 -0
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.d.ts +23 -0
- data/app/pb_kits/playbook/pb_dashboard_value/dashboardValueSettings.d.ts +43 -0
- data/app/pb_kits/playbook/pb_date/_date.d.ts +18 -0
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.d.ts +50 -0
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.d.ts +23 -0
- data/app/pb_kits/playbook/pb_date_picker/plugins/quickPick.d.ts +18 -0
- data/app/pb_kits/playbook/pb_date_picker/plugins/timeSelect.d.ts +44 -0
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.d.ts +13 -0
- data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.d.ts +10 -0
- data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.d.ts +13 -0
- data/app/pb_kits/playbook/pb_date_time/_date_time.d.ts +18 -0
- data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.d.ts +10 -0
- data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.d.ts +10 -0
- data/app/pb_kits/playbook/pb_detail/_detail.d.ts +20 -0
- data/app/pb_kits/playbook/pb_dialog/_close_icon.d.ts +5 -0
- data/app/pb_kits/playbook/pb_dialog/_dialog.d.ts +68 -0
- data/app/pb_kits/playbook/pb_dialog/_dialog_context.d.ts +2 -0
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.d.ts +8 -0
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.d.ts +20 -0
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_header.d.ts +19 -0
- data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.d.ts +10 -0
- data/app/pb_kits/playbook/pb_enhanced_element/element_observer.d.ts +17 -0
- data/app/pb_kits/playbook/pb_enhanced_element/index.d.ts +17 -0
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.d.ts +16 -0
- data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.d.ts +10 -0
- data/app/pb_kits/playbook/pb_filter/Filter/FilterBackground.d.ts +10 -0
- data/app/pb_kits/playbook/pb_filter/Filter/FilterDouble.d.ts +14 -0
- data/app/pb_kits/playbook/pb_filter/Filter/FilterSingle.d.ts +14 -0
- data/app/pb_kits/playbook/pb_filter/Filter/FiltersPopover.d.ts +11 -0
- data/app/pb_kits/playbook/pb_filter/Filter/ResultsCount.d.ts +8 -0
- data/app/pb_kits/playbook/pb_filter/Filter/SortMenu.d.ts +18 -0
- data/app/pb_kits/playbook/pb_filter/Filter/index.d.ts +8 -0
- data/app/pb_kits/playbook/pb_filter/_filter.d.ts +1 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.d.ts +18 -0
- data/app/pb_kits/playbook/pb_flex/_flex.d.ts +24 -0
- data/app/pb_kits/playbook/pb_flex/_flex_item.d.ts +14 -0
- data/app/pb_kits/playbook/pb_form_group/_form_group.d.ts +12 -0
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.d.ts +20 -0
- data/app/pb_kits/playbook/pb_gauge/_gauge.d.ts +31 -0
- data/app/pb_kits/playbook/pb_gauge/_gauge.tsx +46 -57
- data/app/pb_kits/playbook/pb_hashtag/_hashtag.d.ts +17 -0
- data/app/pb_kits/playbook/pb_highlight/_highlight.d.ts +14 -0
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.d.ts +23 -0
- data/app/pb_kits/playbook/pb_icon/_icon.d.ts +29 -0
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.d.ts +16 -0
- data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.d.ts +18 -0
- data/app/pb_kits/playbook/pb_icon_value/_icon_value.d.ts +14 -0
- data/app/pb_kits/playbook/pb_image/_image.d.ts +20 -0
- data/app/pb_kits/playbook/pb_kit/dateTime.d.ts +67 -0
- data/app/pb_kits/playbook/pb_label_pill/_label_pill.d.ts +15 -0
- data/app/pb_kits/playbook/pb_label_value/_label_value.d.ts +19 -0
- data/app/pb_kits/playbook/pb_layout/_layout.d.ts +48 -0
- data/app/pb_kits/playbook/pb_legend/_legend.d.ts +14 -0
- data/app/pb_kits/playbook/pb_lightbox/Carousel/Slide.d.ts +12 -0
- data/app/pb_kits/playbook/pb_lightbox/Carousel/Slides.d.ts +10 -0
- data/app/pb_kits/playbook/pb_lightbox/Carousel/Thumbnail.d.ts +11 -0
- data/app/pb_kits/playbook/pb_lightbox/Carousel/Thumbnails.d.ts +9 -0
- data/app/pb_kits/playbook/pb_lightbox/Carousel/index.d.ts +16 -0
- data/app/pb_kits/playbook/pb_lightbox/Header/_lightbox_header.d.ts +22 -0
- data/app/pb_kits/playbook/pb_lightbox/_lightbox.d.ts +45 -0
- data/app/pb_kits/playbook/pb_lightbox/_lightbox_context.d.ts +2 -0
- data/app/pb_kits/playbook/pb_lightbox/hooks/useKbdControls.d.ts +3 -0
- data/app/pb_kits/playbook/pb_lightbox/hooks/useWindowSize.d.ts +6 -0
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.d.ts +35 -0
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.tsx +34 -39
- data/app/pb_kits/playbook/pb_list/_list.d.ts +22 -0
- data/app/pb_kits/playbook/pb_list/_list_item.d.ts +13 -0
- data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.d.ts +13 -0
- data/app/pb_kits/playbook/pb_map/_map.d.ts +30 -0
- data/app/pb_kits/playbook/pb_map/_map_controls.d.ts +11 -0
- data/app/pb_kits/playbook/pb_map/_map_custom_button.d.ts +6 -0
- data/app/pb_kits/playbook/pb_map/pbMapTheme.d.ts +20 -0
- data/app/pb_kits/playbook/pb_message/_message.d.ts +33 -0
- data/app/pb_kits/playbook/pb_message/_message_mention.d.ts +13 -0
- data/app/pb_kits/playbook/pb_multi_level_select/_helper_functions.d.ts +33 -0
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.d.ts +25 -0
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.d.ts +20 -0
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_default_swift.md +11 -0
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_props_swift.md +7 -0
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_reverse_swift.md +13 -0
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_size_swift.md +11 -0
- data/app/pb_kits/playbook/pb_multiple_users/docs/example.yml +6 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.d.ts +16 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_default_swift.md +15 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_props_swift.md +5 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_small_swift.md +15 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_xsmall_swift.md +15 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +6 -0
- data/app/pb_kits/playbook/pb_nav/_item.d.ts +40 -0
- data/app/pb_kits/playbook/pb_nav/_nav.d.ts +23 -0
- data/app/pb_kits/playbook/pb_nav/navTypes.d.ts +22 -0
- data/app/pb_kits/playbook/pb_online_status/_online_status.d.ts +14 -0
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.d.ts +19 -0
- data/app/pb_kits/playbook/pb_person/_person.d.ts +15 -0
- data/app/pb_kits/playbook/pb_person_contact/_person_contact.d.ts +18 -0
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.d.ts +34 -0
- data/app/pb_kits/playbook/pb_pill/_pill.d.ts +16 -0
- data/app/pb_kits/playbook/pb_popover/_popover.d.ts +22 -0
- data/app/pb_kits/playbook/pb_popover/index.d.ts +21 -0
- data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.d.ts +17 -0
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.d.ts +15 -0
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.d.ts +19 -0
- data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.d.ts +12 -0
- data/app/pb_kits/playbook/pb_radio/_radio.d.ts +355 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.d.ts +9 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorTypes.d.ts +9 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/MoreExtensionsDropdown.d.ts +2 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/Toolbar.d.ts +2 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarDropdown.d.ts +2 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarHistory.d.ts +2 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarNodes.d.ts +2 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.d.ts +31 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/inlineFocus.d.ts +2 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/useFocus.d.ts +2 -0
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.d.ts +19 -0
- data/app/pb_kits/playbook/pb_select/_select.d.ts +385 -0
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.d.ts +30 -0
- data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.d.ts +27 -0
- data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.d.ts +21 -0
- data/app/pb_kits/playbook/pb_selectable_list/_item.d.ts +20 -0
- data/app/pb_kits/playbook/pb_selectable_list/_selectable_list.d.ts +17 -0
- data/app/pb_kits/playbook/pb_source/_source.d.ts +17 -0
- data/app/pb_kits/playbook/pb_star_rating/_star_rating.d.ts +14 -0
- data/app/pb_kits/playbook/pb_stat_change/_stat_change.d.ts +10 -0
- data/app/pb_kits/playbook/pb_stat_value/_stat_value.d.ts +9 -0
- data/app/pb_kits/playbook/pb_table/_table.d.ts +24 -0
- data/app/pb_kits/playbook/pb_table/_table_row.d.ts +15 -0
- data/app/pb_kits/playbook/pb_table/index.d.ts +5 -0
- data/app/pb_kits/playbook/pb_text_input/_text_input.d.ts +383 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on_swift.md +35 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default_swift.md +29 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled_swift.md +13 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error_swift.md +24 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_props_swift.md +13 -0
- data/app/pb_kits/playbook/pb_text_input/docs/example.yml +7 -0
- data/app/pb_kits/playbook/pb_textarea/_textarea.d.ts +380 -0
- data/app/pb_kits/playbook/pb_textarea/index.d.ts +10 -0
- data/app/pb_kits/playbook/pb_time/_time.d.ts +16 -0
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.d.ts +20 -0
- data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.d.ts +15 -0
- data/app/pb_kits/playbook/pb_timeline/_item.d.ts +11 -0
- data/app/pb_kits/playbook/pb_timeline/_timeline.d.ts +26 -0
- data/app/pb_kits/playbook/pb_timestamp/_timestamp.d.ts +22 -0
- data/app/pb_kits/playbook/pb_title/_title.d.ts +26 -0
- data/app/pb_kits/playbook/pb_title_count/_title_count.d.ts +18 -0
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.d.ts +16 -0
- data/app/pb_kits/playbook/pb_toggle/_toggle.d.ts +21 -0
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_default_swift.md +11 -0
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_name_swift.md +10 -0
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_props_swift.md +6 -0
- data/app/pb_kits/playbook/pb_toggle/docs/example.yml +4 -0
- data/app/pb_kits/playbook/pb_tooltip/_tooltip.d.ts +356 -0
- data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.d.ts +27 -0
- data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.tsx +28 -33
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.d.ts +35 -0
- data/app/pb_kits/playbook/pb_typeahead/components/ClearIndicator.d.ts +2 -0
- data/app/pb_kits/playbook/pb_typeahead/components/Control.d.ts +5 -0
- data/app/pb_kits/playbook/pb_typeahead/components/IndicatorsContainer.d.ts +2 -0
- data/app/pb_kits/playbook/pb_typeahead/components/MenuList.d.ts +2 -0
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.d.ts +9 -0
- data/app/pb_kits/playbook/pb_typeahead/components/Option.d.ts +2 -0
- data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.d.ts +2 -0
- data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.d.ts +2 -0
- data/app/pb_kits/playbook/pb_typeahead/index.d.ts +39 -0
- data/app/pb_kits/playbook/pb_user/_user.d.ts +23 -0
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.d.ts +14 -0
- data/app/pb_kits/playbook/pb_user_badge/badges/million-dollar.d.ts +2 -0
- data/app/pb_kits/playbook/pb_user_badge/badges/veteran.d.ts +2 -0
- data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.d.ts +41 -0
- data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.d.ts +15 -0
- data/app/pb_kits/playbook/utilities/globalProps.d.ts +113 -0
- data/app/pb_kits/playbook/utilities/object.d.ts +1 -0
- data/app/pb_kits/playbook/utilities/props.d.ts +38 -0
- data/app/pb_kits/playbook/utilities/text.d.ts +3 -0
- data/app/pb_kits/playbook/utilities/validEmojiChecker.d.ts +1 -0
- data/dist/playbook-rails.js +7 -7
- data/lib/playbook/version.rb +1 -1
- metadata +198 -2
@@ -0,0 +1,41 @@
|
|
1
|
+
declare type WalkthroughProps = {
|
2
|
+
aria?: {
|
3
|
+
[key: string]: string;
|
4
|
+
};
|
5
|
+
callback?: () => void;
|
6
|
+
className?: string;
|
7
|
+
continuous?: boolean;
|
8
|
+
data?: {
|
9
|
+
[key: string]: string;
|
10
|
+
};
|
11
|
+
id?: string;
|
12
|
+
run?: boolean;
|
13
|
+
steps?: [];
|
14
|
+
stepIndex?: number;
|
15
|
+
debug?: boolean;
|
16
|
+
disableCloseOnEsc?: boolean;
|
17
|
+
disableOverlay?: boolean;
|
18
|
+
disableOverlayClose?: boolean;
|
19
|
+
disableScrolling?: boolean;
|
20
|
+
floaterProps?: object;
|
21
|
+
hideBackButton?: boolean;
|
22
|
+
hideCloseButton?: boolean;
|
23
|
+
showProgress?: boolean;
|
24
|
+
showSkipButton?: boolean;
|
25
|
+
spotlightClicks?: boolean;
|
26
|
+
spotlightPadding?: number;
|
27
|
+
styles?: {
|
28
|
+
options: {
|
29
|
+
beaconSize?: number;
|
30
|
+
arrowColor?: string;
|
31
|
+
backgroundColor?: string;
|
32
|
+
primaryColor?: string;
|
33
|
+
overlayColor?: string;
|
34
|
+
spotlightShadow?: string;
|
35
|
+
width?: number;
|
36
|
+
zIndex?: number;
|
37
|
+
};
|
38
|
+
};
|
39
|
+
};
|
40
|
+
declare const Walkthrough: (props: WalkthroughProps) => JSX.Element;
|
41
|
+
export default Walkthrough;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
declare type WeekdayStackedProps = {
|
2
|
+
align?: "left" | "center" | "right";
|
3
|
+
aria?: {
|
4
|
+
[key: string]: string;
|
5
|
+
};
|
6
|
+
className?: string;
|
7
|
+
dark?: boolean;
|
8
|
+
data?: object;
|
9
|
+
date: Date;
|
10
|
+
id?: string;
|
11
|
+
variant?: "day_only" | "month_day" | "expanded";
|
12
|
+
compact?: boolean;
|
13
|
+
};
|
14
|
+
declare const WeekdayStacked: (props: WeekdayStackedProps) => JSX.Element;
|
15
|
+
export default WeekdayStacked;
|
@@ -0,0 +1,113 @@
|
|
1
|
+
import { Binary, Display, DisplaySizes, None, Sizes } from '../types';
|
2
|
+
declare type Alignment = "start" | "end" | "center";
|
3
|
+
declare type AlignContent = {
|
4
|
+
alignContent?: Alignment & Space;
|
5
|
+
};
|
6
|
+
declare type AlignItems = {
|
7
|
+
alignItems?: Alignment & ("flexStart" | "flexEnd" | "stretch" | "baseline");
|
8
|
+
};
|
9
|
+
declare type AlignSelf = {
|
10
|
+
alignSelf?: Alignment & ("auto" | "stretch" | "baseline");
|
11
|
+
};
|
12
|
+
declare type AllSizes = None | Sizes | "auto" | "initial" | "inherit";
|
13
|
+
declare type BorderRadius = {
|
14
|
+
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "rounded";
|
15
|
+
};
|
16
|
+
declare type Cursor = {
|
17
|
+
cursor?: "auto" | "default" | "none" | "contextMenu" | "help" | "pointer" | "progress" | "wait" | "cell" | "crosshair" | "text" | "verticalText" | "alias" | "copy" | "move" | "noDrop" | "notAllowed" | "grab" | "grabbing" | "eResize" | "nResize" | "neResize" | "nwResize" | "sResize" | "seResize" | "swResize" | "wResize" | "ewResize" | "nsResize" | "neswResize" | "nwseResize" | "colResize" | "rowResize" | "allScroll" | "zoomIn" | "zoomOut";
|
18
|
+
};
|
19
|
+
declare type Dark = {
|
20
|
+
dark?: boolean;
|
21
|
+
};
|
22
|
+
declare type Flex = {
|
23
|
+
flex?: "auto" | "initial" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "none";
|
24
|
+
};
|
25
|
+
declare type FlexDirection = {
|
26
|
+
flexDirection?: "row" | "column" | "rowReverse" | "columnReverse";
|
27
|
+
};
|
28
|
+
declare type FlexGrow = {
|
29
|
+
flexGrow?: Binary;
|
30
|
+
};
|
31
|
+
declare type FlexShrink = {
|
32
|
+
flexShrink?: Binary;
|
33
|
+
};
|
34
|
+
declare type FlexWrap = {
|
35
|
+
flexWrap?: "wrap" | "nowrap" | "wrapReverse";
|
36
|
+
};
|
37
|
+
declare type JustifyContent = {
|
38
|
+
justifyContent?: Alignment & Space;
|
39
|
+
};
|
40
|
+
declare type JustifySelf = {
|
41
|
+
justifySelf?: Alignment & ("auto" | "stretch");
|
42
|
+
};
|
43
|
+
declare type LineHeight = {
|
44
|
+
lineHeight?: "loosest" | "looser" | "loose" | "normal" | "tight" | "tighter" | "tightest";
|
45
|
+
};
|
46
|
+
declare type Margin = {
|
47
|
+
marginRight?: AllSizes;
|
48
|
+
marginLeft?: AllSizes;
|
49
|
+
marginTop?: AllSizes;
|
50
|
+
marginBottom?: AllSizes;
|
51
|
+
marginX?: AllSizes;
|
52
|
+
marginY?: AllSizes;
|
53
|
+
margin?: AllSizes;
|
54
|
+
break?: string;
|
55
|
+
default?: string;
|
56
|
+
};
|
57
|
+
declare type MaxWidth = {
|
58
|
+
maxWidth?: Sizes;
|
59
|
+
};
|
60
|
+
declare type NumberSpacing = {
|
61
|
+
numberSpacing?: "tabular";
|
62
|
+
};
|
63
|
+
declare type Order = {
|
64
|
+
order?: None | "first" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
65
|
+
};
|
66
|
+
declare type Padding = {
|
67
|
+
paddingRight?: AllSizes;
|
68
|
+
paddingLeft?: AllSizes;
|
69
|
+
paddingTop?: AllSizes;
|
70
|
+
paddingBottom?: AllSizes;
|
71
|
+
paddingX?: AllSizes;
|
72
|
+
paddingY?: AllSizes;
|
73
|
+
padding?: AllSizes;
|
74
|
+
break?: string;
|
75
|
+
default?: string;
|
76
|
+
};
|
77
|
+
declare type Position = {
|
78
|
+
position?: "relative" | "absolute" | "fixed" | "sticky" | "static";
|
79
|
+
};
|
80
|
+
declare type Shadow = {
|
81
|
+
shadow?: "none" | "deep" | "deeper" | "deepest";
|
82
|
+
};
|
83
|
+
declare type Space = "spaceBetween" | "spaceAround" | "spaceEvenly";
|
84
|
+
declare type TextAlign = {
|
85
|
+
textAlign?: "start" | "end" | "left" | "right" | "center" | "justify" | "justifyAll" | "matchParent";
|
86
|
+
};
|
87
|
+
declare type OverflowTypes = "scroll" | "visible" | "hidden" | "auto";
|
88
|
+
declare type Overflow = {
|
89
|
+
overflowX?: OverflowTypes;
|
90
|
+
overflowY?: OverflowTypes;
|
91
|
+
overflow?: OverflowTypes;
|
92
|
+
};
|
93
|
+
declare type ZIndexType = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
94
|
+
declare type ZIndexResponsiveType = {
|
95
|
+
[key: string]: ZIndexType;
|
96
|
+
};
|
97
|
+
declare type ZIndex = {
|
98
|
+
zIndex?: ZIndexType;
|
99
|
+
} | ZIndexResponsiveType;
|
100
|
+
export declare type GlobalProps = AlignContent & AlignItems & AlignSelf & BorderRadius & Cursor & Dark & Display & DisplaySizes & Flex & FlexDirection & FlexGrow & FlexShrink & FlexWrap & JustifyContent & JustifySelf & LineHeight & Margin & MaxWidth & NumberSpacing & Order & Overflow & Padding & Position & Shadow & TextAlign & ZIndex & {
|
101
|
+
hover?: string;
|
102
|
+
};
|
103
|
+
declare type DefaultProps = {
|
104
|
+
[key: string]: string;
|
105
|
+
} | Record<string, unknown>;
|
106
|
+
export declare const globalProps: (props: GlobalProps, defaultProps?: DefaultProps) => string;
|
107
|
+
export declare const deprecatedProps: () => void;
|
108
|
+
export declare const domSafeProps: (props: {
|
109
|
+
[key: string]: string;
|
110
|
+
}) => {
|
111
|
+
[key: string]: string;
|
112
|
+
};
|
113
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const isEmpty: (obj: Record<string, unknown>) => boolean;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/**
|
2
|
+
* Represent a "No-Operation" function that can be used as a sensible
|
3
|
+
* default to event handlers in the absence of a value.
|
4
|
+
*
|
5
|
+
* @returns {() => {}} the noop function.
|
6
|
+
*/
|
7
|
+
export declare const noop: () => void;
|
8
|
+
/**
|
9
|
+
* Maps a given aria object into HTML valid aria attribtues and their values.
|
10
|
+
*
|
11
|
+
* @param {Object} aria the object containing the aria prop values.
|
12
|
+
* @returns {Object} an object holding the HTML valid aria props and their values.
|
13
|
+
*/
|
14
|
+
export declare const buildAriaProps: (aria: {
|
15
|
+
[key: string]: string;
|
16
|
+
}) => {
|
17
|
+
[key: string]: string;
|
18
|
+
};
|
19
|
+
/**
|
20
|
+
* Maps a given data object into HTML valid data attribtues and their values.
|
21
|
+
*
|
22
|
+
* @param {Object} data the object containing the data prop values.
|
23
|
+
* @returns {Object} an object holding the HTML valid data props and their values.
|
24
|
+
*/
|
25
|
+
export declare const buildDataProps: (data: {
|
26
|
+
[key: string]: any;
|
27
|
+
}) => {
|
28
|
+
[key: string]: any;
|
29
|
+
};
|
30
|
+
/**
|
31
|
+
* Builds a Playbook valid root className off of the incoming css rules.
|
32
|
+
*
|
33
|
+
* @param {Object} rules a 'classnames' compliant rules object, used to derive the root className.
|
34
|
+
* @returns {String} the derived root className value.
|
35
|
+
*/
|
36
|
+
export declare const buildCss: (...rules: (string | {
|
37
|
+
[x: string]: string | boolean;
|
38
|
+
})[]) => string;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const isValidEmoji: (emoji: string) => boolean;
|