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.
Files changed (209) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_avatar/_avatar.d.ts +20 -0
  3. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.d.ts +21 -0
  4. data/app/pb_kits/playbook/pb_background/_background.d.ts +33 -0
  5. data/app/pb_kits/playbook/pb_badge/_badge.d.ts +24 -0
  6. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.d.ts +35 -0
  7. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +32 -36
  8. data/app/pb_kits/playbook/pb_body/_body.d.ts +24 -0
  9. data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.d.ts +12 -0
  10. data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.d.ts +13 -0
  11. data/app/pb_kits/playbook/pb_button/_button.d.ts +37 -0
  12. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.d.ts +17 -0
  13. data/app/pb_kits/playbook/pb_caption/_caption.d.ts +20 -0
  14. data/app/pb_kits/playbook/pb_card/_card.d.ts +42 -0
  15. data/app/pb_kits/playbook/pb_checkbox/_checkbox.d.ts +24 -0
  16. data/app/pb_kits/playbook/pb_circle_chart/ChartsTypes.d.ts +2 -0
  17. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.d.ts +35 -0
  18. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx +63 -67
  19. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.d.ts +21 -0
  20. data/app/pb_kits/playbook/pb_collapsible/_collapsible.d.ts +29 -0
  21. data/app/pb_kits/playbook/pb_collapsible/_helper_functions.d.ts +2 -0
  22. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.d.ts +7 -0
  23. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.d.ts +10 -0
  24. data/app/pb_kits/playbook/pb_collapsible/context.d.ts +3 -0
  25. data/app/pb_kits/playbook/pb_collapsible/useCollapsible.d.ts +2 -0
  26. data/app/pb_kits/playbook/pb_contact/_contact.d.ts +13 -0
  27. data/app/pb_kits/playbook/pb_currency/_currency.d.ts +24 -0
  28. data/app/pb_kits/playbook/pb_dashboard/pbChartsColorsHelper.d.ts +2 -0
  29. data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.d.ts +3 -0
  30. data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.d.ts +3 -0
  31. data/app/pb_kits/playbook/pb_dashboard/themeTypes.d.ts +40 -0
  32. data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.d.ts +23 -0
  33. data/app/pb_kits/playbook/pb_dashboard_value/dashboardValueSettings.d.ts +43 -0
  34. data/app/pb_kits/playbook/pb_date/_date.d.ts +18 -0
  35. data/app/pb_kits/playbook/pb_date_picker/_date_picker.d.ts +50 -0
  36. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.d.ts +23 -0
  37. data/app/pb_kits/playbook/pb_date_picker/plugins/quickPick.d.ts +18 -0
  38. data/app/pb_kits/playbook/pb_date_picker/plugins/timeSelect.d.ts +44 -0
  39. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.d.ts +13 -0
  40. data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.d.ts +10 -0
  41. data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.d.ts +13 -0
  42. data/app/pb_kits/playbook/pb_date_time/_date_time.d.ts +18 -0
  43. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.d.ts +10 -0
  44. data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.d.ts +10 -0
  45. data/app/pb_kits/playbook/pb_detail/_detail.d.ts +20 -0
  46. data/app/pb_kits/playbook/pb_dialog/_close_icon.d.ts +5 -0
  47. data/app/pb_kits/playbook/pb_dialog/_dialog.d.ts +68 -0
  48. data/app/pb_kits/playbook/pb_dialog/_dialog_context.d.ts +2 -0
  49. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.d.ts +8 -0
  50. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.d.ts +20 -0
  51. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_header.d.ts +19 -0
  52. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.d.ts +10 -0
  53. data/app/pb_kits/playbook/pb_enhanced_element/element_observer.d.ts +17 -0
  54. data/app/pb_kits/playbook/pb_enhanced_element/index.d.ts +17 -0
  55. data/app/pb_kits/playbook/pb_file_upload/_file_upload.d.ts +16 -0
  56. data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.d.ts +10 -0
  57. data/app/pb_kits/playbook/pb_filter/Filter/FilterBackground.d.ts +10 -0
  58. data/app/pb_kits/playbook/pb_filter/Filter/FilterDouble.d.ts +14 -0
  59. data/app/pb_kits/playbook/pb_filter/Filter/FilterSingle.d.ts +14 -0
  60. data/app/pb_kits/playbook/pb_filter/Filter/FiltersPopover.d.ts +11 -0
  61. data/app/pb_kits/playbook/pb_filter/Filter/ResultsCount.d.ts +8 -0
  62. data/app/pb_kits/playbook/pb_filter/Filter/SortMenu.d.ts +18 -0
  63. data/app/pb_kits/playbook/pb_filter/Filter/index.d.ts +8 -0
  64. data/app/pb_kits/playbook/pb_filter/_filter.d.ts +1 -0
  65. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.d.ts +18 -0
  66. data/app/pb_kits/playbook/pb_flex/_flex.d.ts +24 -0
  67. data/app/pb_kits/playbook/pb_flex/_flex_item.d.ts +14 -0
  68. data/app/pb_kits/playbook/pb_form_group/_form_group.d.ts +12 -0
  69. data/app/pb_kits/playbook/pb_form_pill/_form_pill.d.ts +20 -0
  70. data/app/pb_kits/playbook/pb_gauge/_gauge.d.ts +31 -0
  71. data/app/pb_kits/playbook/pb_gauge/_gauge.tsx +46 -57
  72. data/app/pb_kits/playbook/pb_hashtag/_hashtag.d.ts +17 -0
  73. data/app/pb_kits/playbook/pb_highlight/_highlight.d.ts +14 -0
  74. data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.d.ts +23 -0
  75. data/app/pb_kits/playbook/pb_icon/_icon.d.ts +29 -0
  76. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.d.ts +16 -0
  77. data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.d.ts +18 -0
  78. data/app/pb_kits/playbook/pb_icon_value/_icon_value.d.ts +14 -0
  79. data/app/pb_kits/playbook/pb_image/_image.d.ts +20 -0
  80. data/app/pb_kits/playbook/pb_kit/dateTime.d.ts +67 -0
  81. data/app/pb_kits/playbook/pb_label_pill/_label_pill.d.ts +15 -0
  82. data/app/pb_kits/playbook/pb_label_value/_label_value.d.ts +19 -0
  83. data/app/pb_kits/playbook/pb_layout/_layout.d.ts +48 -0
  84. data/app/pb_kits/playbook/pb_legend/_legend.d.ts +14 -0
  85. data/app/pb_kits/playbook/pb_lightbox/Carousel/Slide.d.ts +12 -0
  86. data/app/pb_kits/playbook/pb_lightbox/Carousel/Slides.d.ts +10 -0
  87. data/app/pb_kits/playbook/pb_lightbox/Carousel/Thumbnail.d.ts +11 -0
  88. data/app/pb_kits/playbook/pb_lightbox/Carousel/Thumbnails.d.ts +9 -0
  89. data/app/pb_kits/playbook/pb_lightbox/Carousel/index.d.ts +16 -0
  90. data/app/pb_kits/playbook/pb_lightbox/Header/_lightbox_header.d.ts +22 -0
  91. data/app/pb_kits/playbook/pb_lightbox/_lightbox.d.ts +45 -0
  92. data/app/pb_kits/playbook/pb_lightbox/_lightbox_context.d.ts +2 -0
  93. data/app/pb_kits/playbook/pb_lightbox/hooks/useKbdControls.d.ts +3 -0
  94. data/app/pb_kits/playbook/pb_lightbox/hooks/useWindowSize.d.ts +6 -0
  95. data/app/pb_kits/playbook/pb_line_graph/_line_graph.d.ts +35 -0
  96. data/app/pb_kits/playbook/pb_line_graph/_line_graph.tsx +34 -39
  97. data/app/pb_kits/playbook/pb_list/_list.d.ts +22 -0
  98. data/app/pb_kits/playbook/pb_list/_list_item.d.ts +13 -0
  99. data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.d.ts +13 -0
  100. data/app/pb_kits/playbook/pb_map/_map.d.ts +30 -0
  101. data/app/pb_kits/playbook/pb_map/_map_controls.d.ts +11 -0
  102. data/app/pb_kits/playbook/pb_map/_map_custom_button.d.ts +6 -0
  103. data/app/pb_kits/playbook/pb_map/pbMapTheme.d.ts +20 -0
  104. data/app/pb_kits/playbook/pb_message/_message.d.ts +33 -0
  105. data/app/pb_kits/playbook/pb_message/_message_mention.d.ts +13 -0
  106. data/app/pb_kits/playbook/pb_multi_level_select/_helper_functions.d.ts +33 -0
  107. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.d.ts +25 -0
  108. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.d.ts +20 -0
  109. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_default_swift.md +11 -0
  110. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_props_swift.md +7 -0
  111. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_reverse_swift.md +13 -0
  112. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_size_swift.md +11 -0
  113. data/app/pb_kits/playbook/pb_multiple_users/docs/example.yml +6 -0
  114. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.d.ts +16 -0
  115. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_default_swift.md +15 -0
  116. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_props_swift.md +5 -0
  117. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_small_swift.md +15 -0
  118. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_xsmall_swift.md +15 -0
  119. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +6 -0
  120. data/app/pb_kits/playbook/pb_nav/_item.d.ts +40 -0
  121. data/app/pb_kits/playbook/pb_nav/_nav.d.ts +23 -0
  122. data/app/pb_kits/playbook/pb_nav/navTypes.d.ts +22 -0
  123. data/app/pb_kits/playbook/pb_online_status/_online_status.d.ts +14 -0
  124. data/app/pb_kits/playbook/pb_passphrase/_passphrase.d.ts +19 -0
  125. data/app/pb_kits/playbook/pb_person/_person.d.ts +15 -0
  126. data/app/pb_kits/playbook/pb_person_contact/_person_contact.d.ts +18 -0
  127. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.d.ts +34 -0
  128. data/app/pb_kits/playbook/pb_pill/_pill.d.ts +16 -0
  129. data/app/pb_kits/playbook/pb_popover/_popover.d.ts +22 -0
  130. data/app/pb_kits/playbook/pb_popover/index.d.ts +21 -0
  131. data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.d.ts +17 -0
  132. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.d.ts +15 -0
  133. data/app/pb_kits/playbook/pb_progress_step/_progress_step.d.ts +19 -0
  134. data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.d.ts +12 -0
  135. data/app/pb_kits/playbook/pb_radio/_radio.d.ts +355 -0
  136. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.d.ts +9 -0
  137. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorTypes.d.ts +9 -0
  138. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/MoreExtensionsDropdown.d.ts +2 -0
  139. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/Toolbar.d.ts +2 -0
  140. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarDropdown.d.ts +2 -0
  141. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarHistory.d.ts +2 -0
  142. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarNodes.d.ts +2 -0
  143. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.d.ts +31 -0
  144. data/app/pb_kits/playbook/pb_rich_text_editor/inlineFocus.d.ts +2 -0
  145. data/app/pb_kits/playbook/pb_rich_text_editor/useFocus.d.ts +2 -0
  146. data/app/pb_kits/playbook/pb_section_separator/_section_separator.d.ts +19 -0
  147. data/app/pb_kits/playbook/pb_select/_select.d.ts +385 -0
  148. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.d.ts +30 -0
  149. data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.d.ts +27 -0
  150. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.d.ts +21 -0
  151. data/app/pb_kits/playbook/pb_selectable_list/_item.d.ts +20 -0
  152. data/app/pb_kits/playbook/pb_selectable_list/_selectable_list.d.ts +17 -0
  153. data/app/pb_kits/playbook/pb_source/_source.d.ts +17 -0
  154. data/app/pb_kits/playbook/pb_star_rating/_star_rating.d.ts +14 -0
  155. data/app/pb_kits/playbook/pb_stat_change/_stat_change.d.ts +10 -0
  156. data/app/pb_kits/playbook/pb_stat_value/_stat_value.d.ts +9 -0
  157. data/app/pb_kits/playbook/pb_table/_table.d.ts +24 -0
  158. data/app/pb_kits/playbook/pb_table/_table_row.d.ts +15 -0
  159. data/app/pb_kits/playbook/pb_table/index.d.ts +5 -0
  160. data/app/pb_kits/playbook/pb_text_input/_text_input.d.ts +383 -0
  161. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on_swift.md +35 -0
  162. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default_swift.md +29 -0
  163. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled_swift.md +13 -0
  164. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error_swift.md +24 -0
  165. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_props_swift.md +13 -0
  166. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +7 -0
  167. data/app/pb_kits/playbook/pb_textarea/_textarea.d.ts +380 -0
  168. data/app/pb_kits/playbook/pb_textarea/index.d.ts +10 -0
  169. data/app/pb_kits/playbook/pb_time/_time.d.ts +16 -0
  170. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.d.ts +20 -0
  171. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.d.ts +15 -0
  172. data/app/pb_kits/playbook/pb_timeline/_item.d.ts +11 -0
  173. data/app/pb_kits/playbook/pb_timeline/_timeline.d.ts +26 -0
  174. data/app/pb_kits/playbook/pb_timestamp/_timestamp.d.ts +22 -0
  175. data/app/pb_kits/playbook/pb_title/_title.d.ts +26 -0
  176. data/app/pb_kits/playbook/pb_title_count/_title_count.d.ts +18 -0
  177. data/app/pb_kits/playbook/pb_title_detail/_title_detail.d.ts +16 -0
  178. data/app/pb_kits/playbook/pb_toggle/_toggle.d.ts +21 -0
  179. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_default_swift.md +11 -0
  180. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_name_swift.md +10 -0
  181. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_props_swift.md +6 -0
  182. data/app/pb_kits/playbook/pb_toggle/docs/example.yml +4 -0
  183. data/app/pb_kits/playbook/pb_tooltip/_tooltip.d.ts +356 -0
  184. data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.d.ts +27 -0
  185. data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.tsx +28 -33
  186. data/app/pb_kits/playbook/pb_typeahead/_typeahead.d.ts +35 -0
  187. data/app/pb_kits/playbook/pb_typeahead/components/ClearIndicator.d.ts +2 -0
  188. data/app/pb_kits/playbook/pb_typeahead/components/Control.d.ts +5 -0
  189. data/app/pb_kits/playbook/pb_typeahead/components/IndicatorsContainer.d.ts +2 -0
  190. data/app/pb_kits/playbook/pb_typeahead/components/MenuList.d.ts +2 -0
  191. data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.d.ts +9 -0
  192. data/app/pb_kits/playbook/pb_typeahead/components/Option.d.ts +2 -0
  193. data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.d.ts +2 -0
  194. data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.d.ts +2 -0
  195. data/app/pb_kits/playbook/pb_typeahead/index.d.ts +39 -0
  196. data/app/pb_kits/playbook/pb_user/_user.d.ts +23 -0
  197. data/app/pb_kits/playbook/pb_user_badge/_user_badge.d.ts +14 -0
  198. data/app/pb_kits/playbook/pb_user_badge/badges/million-dollar.d.ts +2 -0
  199. data/app/pb_kits/playbook/pb_user_badge/badges/veteran.d.ts +2 -0
  200. data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.d.ts +41 -0
  201. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.d.ts +15 -0
  202. data/app/pb_kits/playbook/utilities/globalProps.d.ts +113 -0
  203. data/app/pb_kits/playbook/utilities/object.d.ts +1 -0
  204. data/app/pb_kits/playbook/utilities/props.d.ts +38 -0
  205. data/app/pb_kits/playbook/utilities/text.d.ts +3 -0
  206. data/app/pb_kits/playbook/utilities/validEmojiChecker.d.ts +1 -0
  207. data/dist/playbook-rails.js +7 -7
  208. data/lib/playbook/version.rb +1 -1
  209. metadata +198 -2
@@ -0,0 +1,383 @@
1
+ import React from 'react';
2
+ declare const _default: React.ForwardRefExoticComponent<(Pick<{
3
+ aria?: {
4
+ [key: string]: string;
5
+ };
6
+ className?: string;
7
+ data?: {
8
+ [key: string]: string;
9
+ };
10
+ dark?: boolean;
11
+ disabled?: boolean;
12
+ error?: string;
13
+ id?: string;
14
+ inline?: boolean;
15
+ name: string;
16
+ label: string;
17
+ onChange: (e: React.FormEvent<HTMLInputElement>) => void;
18
+ placeholder: string;
19
+ required?: boolean;
20
+ type: string;
21
+ value: string | number;
22
+ children: Node;
23
+ addOn?: {
24
+ icon?: string;
25
+ alignment?: "left" | "right";
26
+ border?: boolean;
27
+ };
28
+ } & {
29
+ alignContent?: never;
30
+ } & {
31
+ alignItems?: never;
32
+ } & {
33
+ alignSelf?: never;
34
+ } & {
35
+ borderRadius?: "md" | "lg" | "sm" | "xl" | "xs" | "none" | "rounded";
36
+ } & {
37
+ cursor?: "none" | "progress" | "text" | "pointer" | "alias" | "auto" | "cell" | "copy" | "crosshair" | "default" | "grab" | "grabbing" | "help" | "move" | "wait" | "contextMenu" | "verticalText" | "noDrop" | "notAllowed" | "eResize" | "nResize" | "neResize" | "nwResize" | "sResize" | "seResize" | "swResize" | "wResize" | "ewResize" | "nsResize" | "neswResize" | "nwseResize" | "colResize" | "rowResize" | "allScroll" | "zoomIn" | "zoomOut";
38
+ } & {
39
+ dark?: boolean;
40
+ } & {
41
+ display?: import("../types").DisplayType;
42
+ } & import("../types").DisplaySizes & {
43
+ flex?: "none" | "initial" | "auto" | "1" | "2" | "3" | "4" | "5" | "0" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
44
+ } & {
45
+ flexDirection?: "column" | "row" | "rowReverse" | "columnReverse";
46
+ } & {
47
+ flexGrow?: 0 | 1;
48
+ } & {
49
+ flexShrink?: 0 | 1;
50
+ } & {
51
+ flexWrap?: "wrap" | "nowrap" | "wrapReverse";
52
+ } & {
53
+ justifyContent?: never;
54
+ } & {
55
+ justifySelf?: never;
56
+ } & {
57
+ lineHeight?: "loosest" | "looser" | "loose" | "normal" | "tight" | "tighter" | "tightest";
58
+ } & {
59
+ marginRight?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
60
+ marginLeft?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
61
+ marginTop?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
62
+ marginBottom?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
63
+ marginX?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
64
+ marginY?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
65
+ margin?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
66
+ break?: string;
67
+ default?: string;
68
+ } & {
69
+ maxWidth?: import("../types").Sizes;
70
+ } & {
71
+ numberSpacing?: "tabular";
72
+ } & {
73
+ order?: 1 | 2 | 3 | "none" | 4 | 5 | 6 | 7 | 8 | 9 | 10 | "first" | 11 | 12;
74
+ } & {
75
+ overflowX?: "auto" | "scroll" | "hidden" | "visible";
76
+ overflowY?: "auto" | "scroll" | "hidden" | "visible";
77
+ overflow?: "auto" | "scroll" | "hidden" | "visible";
78
+ } & {
79
+ paddingRight?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
80
+ paddingLeft?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
81
+ paddingTop?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
82
+ paddingBottom?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
83
+ paddingX?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
84
+ paddingY?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
85
+ padding?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
86
+ break?: string;
87
+ default?: string;
88
+ } & {
89
+ position?: "fixed" | "relative" | "absolute" | "sticky" | "static";
90
+ } & {
91
+ shadow?: "none" | "deep" | "deeper" | "deepest";
92
+ } & {
93
+ textAlign?: "center" | "left" | "right" | "start" | "end" | "justify" | "justifyAll" | "matchParent";
94
+ } & {
95
+ zIndex?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
96
+ } & {
97
+ hover?: string;
98
+ }, string | number> | Pick<{
99
+ aria?: {
100
+ [key: string]: string;
101
+ };
102
+ className?: string;
103
+ data?: {
104
+ [key: string]: string;
105
+ };
106
+ dark?: boolean;
107
+ disabled?: boolean;
108
+ error?: string;
109
+ id?: string;
110
+ inline?: boolean;
111
+ name: string;
112
+ label: string;
113
+ onChange: (e: React.FormEvent<HTMLInputElement>) => void;
114
+ placeholder: string;
115
+ required?: boolean;
116
+ type: string;
117
+ value: string | number;
118
+ children: Node;
119
+ addOn?: {
120
+ icon?: string;
121
+ alignment?: "left" | "right";
122
+ border?: boolean;
123
+ };
124
+ } & {
125
+ alignContent?: never;
126
+ } & {
127
+ alignItems?: never;
128
+ } & {
129
+ alignSelf?: never;
130
+ } & {
131
+ borderRadius?: "md" | "lg" | "sm" | "xl" | "xs" | "none" | "rounded";
132
+ } & {
133
+ cursor?: "none" | "progress" | "text" | "pointer" | "alias" | "auto" | "cell" | "copy" | "crosshair" | "default" | "grab" | "grabbing" | "help" | "move" | "wait" | "contextMenu" | "verticalText" | "noDrop" | "notAllowed" | "eResize" | "nResize" | "neResize" | "nwResize" | "sResize" | "seResize" | "swResize" | "wResize" | "ewResize" | "nsResize" | "neswResize" | "nwseResize" | "colResize" | "rowResize" | "allScroll" | "zoomIn" | "zoomOut";
134
+ } & {
135
+ dark?: boolean;
136
+ } & {
137
+ display?: import("../types").DisplayType;
138
+ } & import("../types").DisplaySizes & {
139
+ flex?: "none" | "initial" | "auto" | "1" | "2" | "3" | "4" | "5" | "0" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
140
+ } & {
141
+ flexDirection?: "column" | "row" | "rowReverse" | "columnReverse";
142
+ } & {
143
+ flexGrow?: 0 | 1;
144
+ } & {
145
+ flexShrink?: 0 | 1;
146
+ } & {
147
+ flexWrap?: "wrap" | "nowrap" | "wrapReverse";
148
+ } & {
149
+ justifyContent?: never;
150
+ } & {
151
+ justifySelf?: never;
152
+ } & {
153
+ lineHeight?: "loosest" | "looser" | "loose" | "normal" | "tight" | "tighter" | "tightest";
154
+ } & {
155
+ marginRight?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
156
+ marginLeft?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
157
+ marginTop?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
158
+ marginBottom?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
159
+ marginX?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
160
+ marginY?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
161
+ margin?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
162
+ break?: string;
163
+ default?: string;
164
+ } & {
165
+ maxWidth?: import("../types").Sizes;
166
+ } & {
167
+ numberSpacing?: "tabular";
168
+ } & {
169
+ order?: 1 | 2 | 3 | "none" | 4 | 5 | 6 | 7 | 8 | 9 | 10 | "first" | 11 | 12;
170
+ } & {
171
+ overflowX?: "auto" | "scroll" | "hidden" | "visible";
172
+ overflowY?: "auto" | "scroll" | "hidden" | "visible";
173
+ overflow?: "auto" | "scroll" | "hidden" | "visible";
174
+ } & {
175
+ paddingRight?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
176
+ paddingLeft?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
177
+ paddingTop?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
178
+ paddingBottom?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
179
+ paddingX?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
180
+ paddingY?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
181
+ padding?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
182
+ break?: string;
183
+ default?: string;
184
+ } & {
185
+ position?: "fixed" | "relative" | "absolute" | "sticky" | "static";
186
+ } & {
187
+ shadow?: "none" | "deep" | "deeper" | "deepest";
188
+ } & {
189
+ textAlign?: "center" | "left" | "right" | "start" | "end" | "justify" | "justifyAll" | "matchParent";
190
+ } & {
191
+ [key: string]: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
192
+ } & {
193
+ hover?: string;
194
+ }, string | number> | Pick<{
195
+ aria?: {
196
+ [key: string]: string;
197
+ };
198
+ className?: string;
199
+ data?: {
200
+ [key: string]: string;
201
+ };
202
+ dark?: boolean;
203
+ disabled?: boolean;
204
+ error?: string;
205
+ id?: string;
206
+ inline?: boolean;
207
+ name: string;
208
+ label: string;
209
+ onChange: (e: React.FormEvent<HTMLInputElement>) => void;
210
+ placeholder: string;
211
+ required?: boolean;
212
+ type: string;
213
+ value: string | number;
214
+ children: Node;
215
+ addOn?: {
216
+ icon?: string;
217
+ alignment?: "left" | "right";
218
+ border?: boolean;
219
+ };
220
+ } & {
221
+ alignContent?: never;
222
+ } & {
223
+ alignItems?: never;
224
+ } & {
225
+ alignSelf?: never;
226
+ } & {
227
+ borderRadius?: "md" | "lg" | "sm" | "xl" | "xs" | "none" | "rounded";
228
+ } & {
229
+ cursor?: "none" | "progress" | "text" | "pointer" | "alias" | "auto" | "cell" | "copy" | "crosshair" | "default" | "grab" | "grabbing" | "help" | "move" | "wait" | "contextMenu" | "verticalText" | "noDrop" | "notAllowed" | "eResize" | "nResize" | "neResize" | "nwResize" | "sResize" | "seResize" | "swResize" | "wResize" | "ewResize" | "nsResize" | "neswResize" | "nwseResize" | "colResize" | "rowResize" | "allScroll" | "zoomIn" | "zoomOut";
230
+ } & {
231
+ dark?: boolean;
232
+ } & import("../types").DisplaySizes & {
233
+ flex?: "none" | "initial" | "auto" | "1" | "2" | "3" | "4" | "5" | "0" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
234
+ } & {
235
+ flexDirection?: "column" | "row" | "rowReverse" | "columnReverse";
236
+ } & {
237
+ flexGrow?: 0 | 1;
238
+ } & {
239
+ flexShrink?: 0 | 1;
240
+ } & {
241
+ flexWrap?: "wrap" | "nowrap" | "wrapReverse";
242
+ } & {
243
+ justifyContent?: never;
244
+ } & {
245
+ justifySelf?: never;
246
+ } & {
247
+ lineHeight?: "loosest" | "looser" | "loose" | "normal" | "tight" | "tighter" | "tightest";
248
+ } & {
249
+ marginRight?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
250
+ marginLeft?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
251
+ marginTop?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
252
+ marginBottom?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
253
+ marginX?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
254
+ marginY?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
255
+ margin?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
256
+ break?: string;
257
+ default?: string;
258
+ } & {
259
+ maxWidth?: import("../types").Sizes;
260
+ } & {
261
+ numberSpacing?: "tabular";
262
+ } & {
263
+ order?: 1 | 2 | 3 | "none" | 4 | 5 | 6 | 7 | 8 | 9 | 10 | "first" | 11 | 12;
264
+ } & {
265
+ overflowX?: "auto" | "scroll" | "hidden" | "visible";
266
+ overflowY?: "auto" | "scroll" | "hidden" | "visible";
267
+ overflow?: "auto" | "scroll" | "hidden" | "visible";
268
+ } & {
269
+ paddingRight?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
270
+ paddingLeft?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
271
+ paddingTop?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
272
+ paddingBottom?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
273
+ paddingX?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
274
+ paddingY?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
275
+ padding?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
276
+ break?: string;
277
+ default?: string;
278
+ } & {
279
+ position?: "fixed" | "relative" | "absolute" | "sticky" | "static";
280
+ } & {
281
+ shadow?: "none" | "deep" | "deeper" | "deepest";
282
+ } & {
283
+ textAlign?: "center" | "left" | "right" | "start" | "end" | "justify" | "justifyAll" | "matchParent";
284
+ } & {
285
+ zIndex?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
286
+ } & {
287
+ hover?: string;
288
+ }, string | number> | Pick<{
289
+ aria?: {
290
+ [key: string]: string;
291
+ };
292
+ className?: string;
293
+ data?: {
294
+ [key: string]: string;
295
+ };
296
+ dark?: boolean;
297
+ disabled?: boolean;
298
+ error?: string;
299
+ id?: string;
300
+ inline?: boolean;
301
+ name: string;
302
+ label: string;
303
+ onChange: (e: React.FormEvent<HTMLInputElement>) => void;
304
+ placeholder: string;
305
+ required?: boolean;
306
+ type: string;
307
+ value: string | number;
308
+ children: Node;
309
+ addOn?: {
310
+ icon?: string;
311
+ alignment?: "left" | "right";
312
+ border?: boolean;
313
+ };
314
+ } & {
315
+ alignContent?: never;
316
+ } & {
317
+ alignItems?: never;
318
+ } & {
319
+ alignSelf?: never;
320
+ } & {
321
+ borderRadius?: "md" | "lg" | "sm" | "xl" | "xs" | "none" | "rounded";
322
+ } & {
323
+ cursor?: "none" | "progress" | "text" | "pointer" | "alias" | "auto" | "cell" | "copy" | "crosshair" | "default" | "grab" | "grabbing" | "help" | "move" | "wait" | "contextMenu" | "verticalText" | "noDrop" | "notAllowed" | "eResize" | "nResize" | "neResize" | "nwResize" | "sResize" | "seResize" | "swResize" | "wResize" | "ewResize" | "nsResize" | "neswResize" | "nwseResize" | "colResize" | "rowResize" | "allScroll" | "zoomIn" | "zoomOut";
324
+ } & {
325
+ dark?: boolean;
326
+ } & import("../types").DisplaySizes & {
327
+ flex?: "none" | "initial" | "auto" | "1" | "2" | "3" | "4" | "5" | "0" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
328
+ } & {
329
+ flexDirection?: "column" | "row" | "rowReverse" | "columnReverse";
330
+ } & {
331
+ flexGrow?: 0 | 1;
332
+ } & {
333
+ flexShrink?: 0 | 1;
334
+ } & {
335
+ flexWrap?: "wrap" | "nowrap" | "wrapReverse";
336
+ } & {
337
+ justifyContent?: never;
338
+ } & {
339
+ justifySelf?: never;
340
+ } & {
341
+ lineHeight?: "loosest" | "looser" | "loose" | "normal" | "tight" | "tighter" | "tightest";
342
+ } & {
343
+ marginRight?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
344
+ marginLeft?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
345
+ marginTop?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
346
+ marginBottom?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
347
+ marginX?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
348
+ marginY?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
349
+ margin?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
350
+ break?: string;
351
+ default?: string;
352
+ } & {
353
+ maxWidth?: import("../types").Sizes;
354
+ } & {
355
+ numberSpacing?: "tabular";
356
+ } & {
357
+ order?: 1 | 2 | 3 | "none" | 4 | 5 | 6 | 7 | 8 | 9 | 10 | "first" | 11 | 12;
358
+ } & {
359
+ overflowX?: "auto" | "scroll" | "hidden" | "visible";
360
+ overflowY?: "auto" | "scroll" | "hidden" | "visible";
361
+ overflow?: "auto" | "scroll" | "hidden" | "visible";
362
+ } & {
363
+ paddingRight?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
364
+ paddingLeft?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
365
+ paddingTop?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
366
+ paddingBottom?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
367
+ paddingX?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
368
+ paddingY?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
369
+ padding?: "none" | "inherit" | "initial" | "auto" | import("../types").Sizes;
370
+ break?: string;
371
+ default?: string;
372
+ } & {
373
+ position?: "fixed" | "relative" | "absolute" | "sticky" | "static";
374
+ } & {
375
+ shadow?: "none" | "deep" | "deeper" | "deepest";
376
+ } & {
377
+ textAlign?: "center" | "left" | "right" | "start" | "end" | "justify" | "justifyAll" | "matchParent";
378
+ } & {
379
+ [key: string]: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
380
+ } & {
381
+ hover?: string;
382
+ }, string | number>) & React.RefAttributes<HTMLInputElement>>;
383
+ export default _default;
@@ -0,0 +1,35 @@
1
+ ![text-input-add-on](https://github.com/powerhome/playbook/assets/92755007/65a28e6a-9e65-4ca1-af8d-91dae6eac4f5)
2
+
3
+ ```swift
4
+
5
+ PBTextInput(
6
+ "ADD ON WITH DEFAULTS",
7
+ text: $textAddOn,
8
+ style: .rightIcon(.user, divider: true)
9
+ )
10
+
11
+ PBTextInput(
12
+ "RIGHT-ALIGNED ADD ON WITH BORDER",
13
+ text: $textAddOnRight,
14
+ style: .rightIcon(.user, divider: true)
15
+ )
16
+
17
+ PBTextInput(
18
+ "RIGHT-ALIGNED ADD ON WITH NO BORDER",
19
+ text: $textAddOnRightNoBorder,
20
+ style: .rightIcon(.user, divider: false)
21
+ )
22
+
23
+ PBTextInput(
24
+ "LEFT-ALIGNED ADD ON WITH NO BORDER",
25
+ text: $textAddOnLeft,
26
+ style: .leftIcon(.user, divider: false)
27
+ )
28
+
29
+ PBTextInput(
30
+ "LEFT-ALIGNED ADD ON WITH BORDER",
31
+ text: $textAddOnLeftNoBorder,
32
+ style: .leftIcon(.user, divider: true)
33
+ )
34
+
35
+ ```
@@ -0,0 +1,29 @@
1
+ ![text-input-default](https://github.com/powerhome/playbook/assets/92755007/625a246e-9d5c-42ea-8c6e-7afcf0984c9a)
2
+
3
+
4
+ ```swift
5
+
6
+ @State private var textFirstName: String = ""
7
+ @State private var textLastName: String = ""
8
+ @State private var textPhone: String = ""
9
+
10
+ PBTextInput(
11
+ "First name",
12
+ text: $textFirstName,
13
+ placeholder: "Enter first name"
14
+ )
15
+
16
+ PBTextInput(
17
+ "Last name",
18
+ text: $textLastName,
19
+ placeholder: "Enter last name"
20
+ )
21
+
22
+ PBTextInput(
23
+ "Phone number",
24
+ text: $textPhone,
25
+ placeholder: "Enter phone number",
26
+ keyboardType: .phonePad
27
+ )
28
+
29
+ ```
@@ -0,0 +1,13 @@
1
+ ![text-input-disabled](https://github.com/powerhome/playbook/assets/92755007/0e08256e-dd76-4528-b748-826f38bbe6a0)
2
+
3
+
4
+ ```swift
5
+
6
+ PBTextInput(
7
+ "Last name",
8
+ text: $textDisabled,
9
+ placeholder: "Enter last name",
10
+ style: .disabled
11
+ )
12
+
13
+ ```
@@ -0,0 +1,24 @@
1
+ ![text-input-error](https://github.com/powerhome/playbook/assets/92755007/7c664f75-1d7a-4a94-bc59-6f845a68ce19)
2
+
3
+
4
+ ```swift
5
+
6
+ @State private var textError: String = ""
7
+ @State private var textConfirmError: String = ""
8
+
9
+ PBTextInput(
10
+ "Email address",
11
+ text: $textError,
12
+ placeholder: "Enter email address",
13
+ error: (true, "Insert a valid email"),
14
+ style: .leftIcon(.user, divider: true)
15
+ )
16
+
17
+ PBTextInput(
18
+ "Confirm email address",
19
+ text: $textConfirmError,
20
+ placeholder: "Confirm email address",
21
+ style: .leftIcon(.user, divider: true)
22
+ )
23
+
24
+ ```
@@ -0,0 +1,13 @@
1
+ ### Props
2
+ | Name | Type | Description | Default | Values |
3
+ | --- | ----------- | --------- | --------- | --------- |
4
+ | **title** | `String` | Adds a title | `nil` | |
5
+ | **placeholder** | `String` | Adds placeholder text | `""` | |
6
+ | **error** | `(Bool, String)` | Changes the style of the Text Input | `nil` | |
7
+ | **style** | `Style` | Changes the style of the Text Input | `.default` | `.default` `.rightIcon` `.leftIcon` `.inline` `.disabled` |
8
+ | **onChange** | `Bool` | Adds an event handler | `nil` | |
9
+ | **keyboardType** | `UIKeyboardType` | Speficies the keyboard type (ios only) | `.default` | |
10
+ | **text** | `String` | Sets the Text Input's text value | | |
11
+ | **selected** | `Bool` | Changes the style of the Text Input | | `true` `false` |
12
+ | **isHovering** | `Bool` | Changes the style of the Text Input | `false` | `true` `false` |
13
+ | **isIconHovering** | `Bool` | Changes the style of the Text Input | `false` | `true` `false` |
@@ -16,3 +16,10 @@ examples:
16
16
  - text_input_add_on: Add On
17
17
  - text_input_inline: Inline
18
18
  - text_input_no_label: No Label
19
+
20
+ swift:
21
+ - text_input_default_swift: Default
22
+ - text_input_error_swift: With Error
23
+ - text_input_disabled_swift: Disabled
24
+ - text_input_add_on_swift: Add On
25
+ - text_input_props_swift: ""