playbook_ui 6.1.0.pre.alpha2 → 7.0.0.pre.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/playbook/application_controller.rb +0 -2
  3. data/app/helpers/playbook/pb_kit_helper.rb +1 -0
  4. data/app/pb_kits/playbook/_playbook.scss +1 -1
  5. data/app/pb_kits/playbook/data/menu.yml +0 -1
  6. data/app/pb_kits/playbook/index.js +4 -2
  7. data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +4 -4
  8. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.jsx +9 -9
  9. data/app/pb_kits/playbook/pb_badge/_badge.jsx +4 -4
  10. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.html.erb +1 -12
  11. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +16 -16
  12. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +1 -1
  13. data/app/pb_kits/playbook/pb_body/_body.jsx +7 -7
  14. data/app/pb_kits/playbook/pb_button/_button.jsx +15 -15
  15. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.jsx +6 -6
  16. data/app/pb_kits/playbook/pb_caption/_caption.jsx +4 -4
  17. data/app/pb_kits/playbook/pb_card/_card.jsx +13 -13
  18. data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +9 -9
  19. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +7 -7
  20. data/app/pb_kits/playbook/pb_contact/_contact.jsx +5 -5
  21. data/app/pb_kits/playbook/pb_currency/_currency.jsx +7 -7
  22. data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +7 -7
  23. data/app/pb_kits/playbook/pb_date/_date.jsx +2 -2
  24. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +5 -5
  25. data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +6 -6
  26. data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +6 -6
  27. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx +4 -4
  28. data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +5 -5
  29. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.html.erb +1 -8
  30. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.jsx +4 -4
  31. data/app/pb_kits/playbook/pb_distribution_bar/distribution_bar.rb +5 -8
  32. data/app/pb_kits/playbook/pb_file_upload/_file_upload.jsx +2 -2
  33. data/app/pb_kits/playbook/pb_filter/docs/_filter_default.html.erb +1 -2
  34. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +4 -4
  35. data/app/pb_kits/playbook/pb_flex/_flex.jsx +6 -6
  36. data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +4 -4
  37. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -2
  38. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -2
  39. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form.html.erb +1 -3
  40. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form_validate.html.erb +1 -3
  41. data/app/pb_kits/playbook/pb_form/form_builder.rb +0 -1
  42. data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +6 -6
  43. data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +14 -14
  44. data/app/pb_kits/playbook/pb_hashtag/_hashtag.jsx +6 -6
  45. data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +5 -5
  46. data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +11 -11
  47. data/app/pb_kits/playbook/pb_icon/_icon.jsx +9 -9
  48. data/app/pb_kits/playbook/pb_image/_image.jsx +4 -4
  49. data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +4 -4
  50. data/app/pb_kits/playbook/pb_label_value/_label_value.jsx +10 -10
  51. data/app/pb_kits/playbook/pb_layout/_layout.jsx +14 -14
  52. data/app/pb_kits/playbook/pb_legend/_legend.html.erb +1 -11
  53. data/app/pb_kits/playbook/pb_legend/_legend.jsx +5 -5
  54. data/app/pb_kits/playbook/pb_legend/legend.rb +7 -0
  55. data/app/pb_kits/playbook/pb_line_graph/_line_graph.html.erb +1 -13
  56. data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +17 -17
  57. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +1 -1
  58. data/app/pb_kits/playbook/pb_list/_list.jsx +10 -10
  59. data/app/pb_kits/playbook/pb_list/_list_item.jsx +4 -4
  60. data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx +4 -4
  61. data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +7 -7
  62. data/app/pb_kits/playbook/pb_message/_message.jsx +8 -8
  63. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +5 -5
  64. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.jsx +3 -3
  65. data/app/pb_kits/playbook/pb_nav/_item.jsx +5 -5
  66. data/app/pb_kits/playbook/pb_nav/_nav.jsx +4 -4
  67. data/app/pb_kits/playbook/pb_online_status/_online_status.jsx +2 -2
  68. data/app/pb_kits/playbook/pb_person/_person.jsx +4 -4
  69. data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +16 -15
  70. data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +1 -0
  71. data/app/pb_kits/playbook/pb_pill/_pill.jsx +3 -3
  72. data/app/pb_kits/playbook/pb_popover/_popover.jsx +4 -4
  73. data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.jsx +7 -7
  74. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +9 -9
  75. data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +6 -6
  76. data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx +1 -1
  77. data/app/pb_kits/playbook/pb_radio/_radio.jsx +11 -11
  78. data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +4 -4
  79. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.jsx +11 -11
  80. data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.jsx +12 -12
  81. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.jsx +10 -10
  82. data/app/pb_kits/playbook/pb_source/_source.jsx +4 -4
  83. data/app/pb_kits/playbook/pb_star_rating/_star_rating.jsx +6 -6
  84. data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +3 -3
  85. data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +4 -4
  86. data/app/pb_kits/playbook/pb_table/_table.jsx +1 -1
  87. data/app/pb_kits/playbook/pb_table/_table_row.jsx +3 -3
  88. data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +8 -8
  89. data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +13 -13
  90. data/app/pb_kits/playbook/pb_time/_time.jsx +5 -5
  91. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.jsx +8 -8
  92. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +5 -5
  93. data/app/pb_kits/playbook/pb_timeline/_item.jsx +2 -2
  94. data/app/pb_kits/playbook/pb_timeline/_timeline.jsx +6 -6
  95. data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +3 -3
  96. data/app/pb_kits/playbook/pb_title/_title.jsx +4 -4
  97. data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +3 -3
  98. data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +4 -4
  99. data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +5 -5
  100. data/app/pb_kits/playbook/pb_user/_user.jsx +7 -7
  101. data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +2 -2
  102. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.jsx +5 -5
  103. data/app/pb_kits/playbook/react_rails_kits.js +5 -0
  104. data/app/pb_kits/playbook/tokens/_colors.scss +22 -23
  105. data/app/pb_kits/playbook/tokens/_typography.scss +5 -5
  106. data/app/pb_kits/playbook/tokens/index.scss +11 -0
  107. data/app/pb_kits/playbook/vendor.js +4 -5
  108. data/lib/generators/kit/templates/kit_jsx.erb.tt +2 -2
  109. data/lib/playbook/engine.rb +1 -0
  110. data/lib/playbook/version.rb +1 -1
  111. data/lib/tasks/pb_release.rake +3 -0
  112. metadata +4 -86
  113. data/app/controllers/playbook/guides_controller.rb +0 -11
  114. data/app/controllers/playbook/pages_controller.rb +0 -79
  115. data/app/controllers/playbook/samples_controller.rb +0 -40
  116. data/app/pb_kits/playbook/packs/application.js +0 -55
  117. data/app/pb_kits/playbook/packs/examples.js +0 -177
  118. data/app/pb_kits/playbook/packs/main.scss +0 -12
  119. data/app/pb_kits/playbook/packs/samples.js +0 -21
  120. data/app/pb_kits/playbook/packs/site_styles/_samples.scss +0 -72
  121. data/app/pb_kits/playbook/packs/site_styles/_scaffold.scss +0 -43
  122. data/app/pb_kits/playbook/packs/site_styles/_site-style.scss +0 -135
  123. data/app/pb_kits/playbook/packs/site_styles/docs/_all.scss +0 -10
  124. data/app/pb_kits/playbook/packs/site_styles/docs/_bg_light_doc_example.scss +0 -7
  125. data/app/pb_kits/playbook/packs/site_styles/docs/_code_snippet.scss +0 -531
  126. data/app/pb_kits/playbook/packs/site_styles/docs/_color_utilities.scss +0 -92
  127. data/app/pb_kits/playbook/packs/site_styles/docs/_flex_examples.scss +0 -15
  128. data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +0 -190
  129. data/app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss +0 -18
  130. data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +0 -82
  131. data/app/pb_kits/playbook/packs/site_styles/docs/_spacing_tokens.scss +0 -72
  132. data/app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb +0 -38
  133. data/app/pb_kits/playbook/pb_date_picker/_date_picker.jsx +0 -101
  134. data/app/pb_kits/playbook/pb_date_picker/_date_picker.scss +0 -846
  135. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +0 -41
  136. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.js +0 -91
  137. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.html.erb +0 -1
  138. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.jsx +0 -12
  139. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.html.erb +0 -24
  140. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.jsx +0 -30
  141. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.html.erb +0 -43
  142. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx +0 -48
  143. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_error.html.erb +0 -4
  144. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_error.jsx +0 -13
  145. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.html.erb +0 -19
  146. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.jsx +0 -25
  147. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.html.erb +0 -4
  148. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.jsx +0 -13
  149. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_min_max.html.erb +0 -14
  150. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_min_max.jsx +0 -22
  151. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.html.erb +0 -4
  152. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.jsx +0 -13
  153. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +0 -23
  154. data/app/pb_kits/playbook/pb_date_picker/docs/index.js +0 -8
  155. data/app/pb_kits/playbook/pb_form/form_builder/date_picker_field.rb +0 -41
  156. data/app/views/layouts/playbook/_mobile_hamburger.html.erb +0 -2
  157. data/app/views/layouts/playbook/_nav.html.erb +0 -13
  158. data/app/views/layouts/playbook/_sidebar.html.erb +0 -52
  159. data/app/views/layouts/playbook/application.html.slim +0 -22
  160. data/app/views/layouts/playbook/fullscreen.html.slim +0 -10
  161. data/app/views/layouts/playbook/grid.html.slim +0 -10
  162. data/app/views/layouts/playbook/samples.html.erb +0 -19
  163. data/app/views/playbook/guides/create_kit.html.slim +0 -16
  164. data/app/views/playbook/guides/create_kit/_file_naming.html.md +0 -2
  165. data/app/views/playbook/guides/create_kit/_generator.html.md +0 -6
  166. data/app/views/playbook/guides/create_kit/_kit_examples.html.md +0 -2
  167. data/app/views/playbook/guides/create_kit/_kit_rails.html.md +0 -2
  168. data/app/views/playbook/guides/create_kit/_kit_react.html.md +0 -2
  169. data/app/views/playbook/guides/create_kit/_layout.html.md +0 -2
  170. data/app/views/playbook/guides/create_kit/_view_objects.html.md +0 -2
  171. data/app/views/playbook/guides/create_kit/_writing_sass.md +0 -10
  172. data/app/views/playbook/guides/use_nitro.html.slim +0 -6
  173. data/app/views/playbook/guides/use_nitro/_local.html.md +0 -2
  174. data/app/views/playbook/guides/use_nitro/_nitro_components.html.md +0 -2
  175. data/app/views/playbook/guides/use_nitro/_versions.html.md +0 -2
  176. data/app/views/playbook/pages/fullscreen.html.slim +0 -10
  177. data/app/views/playbook/pages/grid.html.slim +0 -2
  178. data/app/views/playbook/pages/home.html.slim +0 -4
  179. data/app/views/playbook/pages/kit_category_show.html.erb +0 -14
  180. data/app/views/playbook/pages/kit_show.html.erb +0 -33
  181. data/app/views/playbook/pages/kits.html.erb +0 -12
  182. data/app/views/playbook/pages/principals/_getting_started.html.md +0 -30
  183. data/app/views/playbook/pages/principles.html.slim +0 -3
  184. data/app/views/playbook/pages/tokens.html.slim +0 -15
  185. data/app/views/playbook/pages/tokens/_pb_doc_spacing.html.slim +0 -17
  186. data/app/views/playbook/pages/utilities.html.slim +0 -116
  187. data/app/views/playbook/pages/utilities/_pb_doc_color.html.slim +0 -15
  188. data/app/views/playbook/samples/collection_detail/index.html.erb +0 -169
  189. data/app/views/playbook/samples/collection_detail/index.jsx +0 -372
  190. data/app/views/playbook/samples/dashboards/index.html.erb +0 -81
  191. data/app/views/playbook/samples/dashboards/index.jsx +0 -130
  192. data/app/views/playbook/samples/filter_table/index.html.erb +0 -348
  193. data/app/views/playbook/samples/filter_table/index.jsx +0 -433
  194. data/app/views/playbook/samples/registration/index.html.erb +0 -316
  195. data/app/views/playbook/samples/registration/index.jsx +0 -476
  196. data/app/views/playbook/samples/sample_show.html.erb +0 -36
@@ -7,19 +7,19 @@ import type { InputCallback } from '../types.js'
7
7
  import { globalProps } from '../utilities/globalProps.js'
8
8
 
9
9
  type TextareaProps = {
10
- className?: String,
11
- children?: Array<React.ReactChild>,
12
- data?: String,
13
- error?: String,
14
- id?: String,
15
- object?: String,
16
- method?: String,
17
- label?: String,
18
- placeholder?: String,
19
- value?: String,
20
- name?: String,
21
- rows?: Number,
22
- dark?: Boolean,
10
+ className?: string,
11
+ children?: array<React.ReactChild>,
12
+ data?: string,
13
+ error?: string,
14
+ id?: string,
15
+ object?: string,
16
+ method?: string,
17
+ label?: string,
18
+ placeholder?: string,
19
+ value?: string,
20
+ name?: string,
21
+ rows?: number,
22
+ dark?: boolean,
23
23
  resize: 'none' | 'both' | 'horizontal' | 'vertical',
24
24
  onChange?: InputCallback<HTMLTextAreaElement>,
25
25
  }
@@ -11,11 +11,11 @@ import { Body, Icon, Title } from '../'
11
11
 
12
12
  type TimeProps = {
13
13
  align?: 'left" | "center' | 'right',
14
- className?: String | Array<String>,
15
- data?: String,
16
- date: String,
17
- id?: String,
18
- showTimezone?: Boolean,
14
+ className?: string | array<string>,
15
+ data?: string,
16
+ date: string,
17
+ id?: string,
18
+ showTimezone?: boolean,
19
19
  size?: 'lg' | 'sm' | 'xs',
20
20
  }
21
21
 
@@ -7,16 +7,16 @@ import DateTime from '../pb_kit/dateTime.js'
7
7
  import { globalProps } from '../utilities/globalProps.js'
8
8
 
9
9
  type TimeRangeInlineProps = {
10
- className?: String,
11
- id?: String,
12
- data?: String,
10
+ className?: string,
11
+ id?: string,
12
+ data?: string,
13
13
  alignment?: "left" | "center" | "vertical",
14
14
  size?: "sm" | "xs",
15
- dark?: Boolean,
16
- icon?: Boolean,
17
- timezone?: Boolean,
18
- startTime: String,
19
- endTime: String,
15
+ dark?: boolean,
16
+ icon?: boolean,
17
+ timezone?: boolean,
18
+ startTime: string,
19
+ endTime: string,
20
20
  }
21
21
 
22
22
  const timezoneString = (dateValue) => {
@@ -14,11 +14,11 @@ const Components = {
14
14
  }
15
15
 
16
16
  type TimeStackedProps = {
17
- className?: String | Array<String>,
18
- dark?: Boolean,
19
- data?: String,
20
- date: String,
21
- id?: String,
17
+ className?: string | array<string>,
18
+ dark?: boolean,
19
+ data?: string,
20
+ date: string,
21
+ id?: string,
22
22
  align?: "left" | "center" | "right",
23
23
  tag?: "body" | "caption",
24
24
  }
@@ -7,8 +7,8 @@ import { DateStacked, IconCircle } from '..'
7
7
 
8
8
  type ItemProps = {
9
9
  className?: string,
10
- children?: Array<React.Node>,
11
- date?: Date,
10
+ children?: array<React.Node>,
11
+ date?: date,
12
12
  icon?: string,
13
13
  iconColor?: 'default' | 'royal' | 'blue' | 'purple' | 'teal' | 'red' | 'yellow' | 'green',
14
14
  lineStyle?: 'solid' | 'dotted',
@@ -7,12 +7,12 @@ import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
7
7
 
8
8
  type TimelineProps = {
9
9
  aria?: object,
10
- children?: Array<React.ReactChild>,
11
- className?: String,
12
- data?: String,
13
- id?: String,
14
- orientation?: String,
15
- showDate?: Boolean,
10
+ children?: array<React.ReactChild>,
11
+ className?: string,
12
+ data?: string,
13
+ id?: string,
14
+ orientation?: string,
15
+ showDate?: boolean,
16
16
  }
17
17
 
18
18
  const Timeline = ({
@@ -10,10 +10,10 @@ import { buildCss, buildDataProps } from '../utilities/props'
10
10
  import { globalProps } from '../utilities/globalProps.js'
11
11
 
12
12
  type TimestampProps = {
13
- id?: String,
13
+ id?: string,
14
14
  data?: object,
15
- className?: String,
16
- text?: String,
15
+ className?: string,
16
+ text?: string,
17
17
  }
18
18
 
19
19
  const Timestamp = (props: TimestampProps) => {
@@ -7,13 +7,13 @@ import { globalProps } from '../utilities/globalProps.js'
7
7
 
8
8
  type TitleProps = {
9
9
  aria?: object,
10
- children?: Array<React.ReactNode> | React.ReactNode,
11
- className?: String,
10
+ children?: array<React.ReactNode> | React.ReactNode,
11
+ className?: string,
12
12
  data?: object,
13
- id?: String,
13
+ id?: string,
14
14
  size?: 1 | 2 | 3 | 4,
15
15
  tag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div" | "span",
16
- text?: String,
16
+ text?: string,
17
17
  variant?: null | "primary",
18
18
  }
19
19
 
@@ -11,11 +11,11 @@ import { globalProps } from '../utilities/globalProps.js'
11
11
  type TitleCountProps = {
12
12
  align: "center" | "left" | "right",
13
13
  aria?: object,
14
- className?: String,
14
+ className?: string,
15
15
  count?: Numeric,
16
16
  data?: object,
17
- id?: String,
18
- title?: String,
17
+ id?: string,
18
+ title?: string,
19
19
  size?: "lg" | "sm",
20
20
  };
21
21
 
@@ -10,11 +10,11 @@ import { buildCss, buildDataProps } from '../utilities/props'
10
10
 
11
11
  type TitleDetailProps = {
12
12
  align?: "left" | "center" | "right",
13
- className?: String,
13
+ className?: string,
14
14
  data?: object,
15
- detail: String,
16
- id?: String,
17
- title: String,
15
+ detail: string,
16
+ id?: string,
17
+ title: string,
18
18
  }
19
19
 
20
20
  const TitleDetail = (props: TitleDetailProps) => {
@@ -14,15 +14,15 @@ import { globalProps } from '../utilities/globalProps.js'
14
14
 
15
15
  type Props = {
16
16
  aria?: object,
17
- checked?: Boolean,
17
+ checked?: boolean,
18
18
  children?: React.Node,
19
- className?: String,
19
+ className?: string,
20
20
  data?: object,
21
- id?: String,
22
- name?: String,
21
+ id?: string,
22
+ name?: string,
23
23
  onChange?: InputCallback<HTMLInputElement>,
24
24
  size?: "sm" | "md",
25
- value?: String,
25
+ value?: string,
26
26
  }
27
27
 
28
28
  const Toggle = ({
@@ -6,16 +6,16 @@ import { Avatar, Body, Title } from '../'
6
6
  import { globalProps } from '../utilities/globalProps.js'
7
7
 
8
8
  type UserProps = {
9
- className?: String,
10
- id?: String,
11
- name: String,
12
- territory?: String,
13
- title?: String,
9
+ className?: string,
10
+ id?: string,
11
+ name: string,
12
+ territory?: string,
13
+ title?: string,
14
14
  size?: "sm" | "md" | "lg",
15
15
  align?: "left" | "center" | "right",
16
16
  orientation?: "horiztonal" | "vertical",
17
- avatar?: Boolean,
18
- avatarUrl?: String,
17
+ avatar?: boolean,
18
+ avatarUrl?: string,
19
19
  }
20
20
 
21
21
  const User = (props: UserProps) => {
@@ -4,8 +4,8 @@ import classnames from 'classnames'
4
4
  import { globalProps } from '../utilities/globalProps.js'
5
5
 
6
6
  type UserBadgeProps = {
7
- className?: String,
8
- id?: String,
7
+ className?: string,
8
+ id?: string,
9
9
  badge?: "million-dollar" | "veteran",
10
10
  size?: "sm" | "md" | "lg",
11
11
  }
@@ -11,12 +11,12 @@ import DateTime from '../pb_kit/dateTime.js'
11
11
 
12
12
  type WeekdayStackedProps = {
13
13
  align?: "left" | "center" | "right",
14
- className?: String,
15
- dark?: Boolean,
16
- date: Date,
14
+ className?: string,
15
+ dark?: boolean,
16
+ date: date,
17
17
  variant?: "day_only" | "month_day" | "expanded",
18
- compact?: Boolean,
19
- id?: String,
18
+ compact?: boolean,
19
+ id?: string,
20
20
  }
21
21
 
22
22
  const getDayOfWeek = (date, compact) => {
@@ -0,0 +1,5 @@
1
+ // React-Rendered Rails Kit Exports =====
2
+ export { default as BarGraph } from './pb_bar_graph/_bar_graph.jsx'
3
+ export { default as DistributionBar } from './pb_distribution_bar/_distribution_bar.jsx'
4
+ export { default as Legend } from './pb_legend/_legend.jsx'
5
+ export { default as LineGraph } from './pb_line_graph/_line_graph.jsx'
@@ -1,10 +1,10 @@
1
1
  @import "./opacity";
2
2
 
3
- //=====================================
4
- // Base colors should not be documented.
5
- // Only document color use.
3
+ /*=====================================
4
+ Base colors should not be documented.
5
+ Only document color use.
6
6
 
7
- // Colors -----------------------------
7
+ Colors -----------------------------*/
8
8
  $royal: #0056CF;
9
9
  $purple: #9E64E9;
10
10
  $teal: #00C4D7;
@@ -22,11 +22,11 @@ $colors: (
22
22
  orange: $orange
23
23
  );
24
24
 
25
- // Specialty Gradient -----------------
25
+ /* Specialty Gradient -----------------*/
26
26
  $gradient_start: #1C75F2;
27
27
  $gradient_end: $royal;
28
28
 
29
- // Interface colors -------------------
29
+ /* Interface colors -------------------*/
30
30
  $white: #FFFFFF;
31
31
  $silver: #F3F7FB;
32
32
  $slate: #C1CDD6;
@@ -42,7 +42,7 @@ $interface_colors: (
42
42
 
43
43
  );
44
44
 
45
- // Main colors ------------------------
45
+ /* Main colors ------------------------*/
46
46
  $primary: $royal;
47
47
  $secondary: $yellow;
48
48
  $tertiary: $purple;
@@ -51,9 +51,9 @@ $main_colors: (
51
51
  secondary: $secondary,
52
52
  tertiary: $tertiary
53
53
  );
54
- //=====================================
54
+ /*=====================================
55
55
 
56
- // Background colors ------------------
56
+ Background colors ------------------*/
57
57
  $bg_light: $silver;
58
58
  $bg_dark: #172257;
59
59
  $background_colors: (
@@ -61,7 +61,7 @@ $background_colors: (
61
61
  bg_dark: $bg_dark
62
62
  );
63
63
 
64
- // Card colors ------------------
64
+ /* Card colors ------------------*/
65
65
  $card_light: $white;
66
66
  $card_dark: rgba($white, $opacity_1);
67
67
  $card_colors: (
@@ -74,15 +74,15 @@ $action_colors: (
74
74
  primary_action: $primary-action
75
75
  );
76
76
 
77
- // Active colors ----------------------
77
+ /* Active colors ----------------------*/
78
78
  $active_light: lighten(#E5F2FF, 3.5%);
79
- $active_dark: #0082ff;
79
+ $active_dark: #0082ff;
80
80
  $active_colors: (
81
81
  active_light: $active_light,
82
82
  active_dark: $active_dark
83
83
  );
84
84
 
85
- // Hover colors -----------------------
85
+ /* Hover colors -----------------------*/
86
86
  $hover_light: darken($silver, 5%);
87
87
  $hover_dark: rgba($white, $opacity_2);
88
88
  $hover_colors: (
@@ -90,7 +90,7 @@ $hover_colors: (
90
90
  hover_dark: $hover_dark
91
91
  );
92
92
 
93
- // Focus colors -----------------------
93
+ /* Focus colors -----------------------*/
94
94
  $focus_input_light: rgba($active_light, $opacity_5);
95
95
  $focus_input_dark: rgba(#144075, $opacity_5);
96
96
  $focus_input_colors: (
@@ -98,7 +98,7 @@ $focus_input_colors: (
98
98
  focus_input_dark: $focus_input_dark
99
99
  );
100
100
 
101
- // Border colors ----------------------
101
+ /* Border colors ----------------------*/
102
102
  $border_light: #E4E8F0;
103
103
  $border_dark: rgba($white, $opacity_1);
104
104
  $border_colors: (
@@ -106,13 +106,13 @@ $border_colors: (
106
106
  border_dark: $border_dark
107
107
  );
108
108
 
109
- // Shadow colors ----------------------
109
+ /* Shadow colors ----------------------*/
110
110
  $shadow: rgba(#3C6AAC, $opacity_2);
111
111
  $shadow_colors: (
112
112
  shadow: $shadow,
113
113
  );
114
114
 
115
- // Text colors ------------------------
115
+ /* Text colors ------------------------*/
116
116
  $text_lt_default: $charcoal;
117
117
  $text_lt_light: #919EAB;
118
118
  $text_lt_lighter: $slate;
@@ -128,7 +128,7 @@ $text_colors: (
128
128
  text_dk_lighter: $text_dk_lighter
129
129
  );
130
130
 
131
- // Data colors ------------------------
131
+ /* Data colors ------------------------*/
132
132
  $data_1: $royal;
133
133
  $data_2: $yellow;
134
134
  $data_3: $purple;
@@ -148,7 +148,7 @@ $data_colors: (
148
148
  data_8: $data_8
149
149
  );
150
150
 
151
- // Status colors ----------------------
151
+ /* Status colors ----------------------*/
152
152
  $success: $green;
153
153
  $warning: $yellow;
154
154
  $error: $red;
@@ -174,10 +174,10 @@ $status_color_text: (
174
174
  primary: $primary
175
175
  );
176
176
 
177
- // Link colors ------------------------
177
+ /* Link colors ------------------------*/
178
178
  $primary_action: $primary;
179
179
 
180
- // Product colors ---------------------
180
+ /* Product colors ---------------------*/
181
181
  $windows: $royal;
182
182
  $siding: $yellow;
183
183
  $doors: $teal;
@@ -195,7 +195,7 @@ $product_colors: (
195
195
  insulation: $insulation
196
196
  );
197
197
 
198
- // Category colors ---------------------
198
+ /* Category colors ---------------------*/
199
199
  $category_1: $royal;
200
200
  $category_2: #0CD2E5;
201
201
  $category_3: $yellow;
@@ -252,7 +252,6 @@ $transparent: transparent;
252
252
  }
253
253
 
254
254
  :export {
255
-
256
255
  @mixin export-colors($colors-list) {
257
256
  @each $name, $color in $colors-list {
258
257
  #{$name}: $color;
@@ -2,7 +2,7 @@
2
2
  $font_family_base: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans_serif;
3
3
 
4
4
 
5
- // CLEAN UP AND REMOVE
5
+ /* CLEAN UP AND REMOVE */
6
6
  $font_jumbo: 36px;
7
7
  $font_largest: 32px;
8
8
  $font_larger: 28px;
@@ -29,7 +29,7 @@ $text_smaller: $font_smaller;
29
29
  $text_smallest: $font_smallest;
30
30
 
31
31
 
32
- // Headings
32
+ /* Headings */
33
33
  $heading_1: 48px;
34
34
  $heading_2: 34px;
35
35
  $heading_3: $font_larger;
@@ -38,7 +38,7 @@ $heading_4: $font_base;
38
38
 
39
39
 
40
40
 
41
- // Letter Spacing
41
+ /* Letter Spacing */
42
42
  $lspace_tightest: _.1em;
43
43
  $lspace_tighter: _.07em;
44
44
  $lspace_tight: _.03em;
@@ -52,11 +52,11 @@ $lspace_super_loosest: .2em;
52
52
 
53
53
 
54
54
 
55
- // Standard Font Weights
55
+ /* Standard Font Weights */
56
56
  $bold: 600;
57
57
  $regular: 400;
58
58
 
59
- // Non_Standard Font Weights
59
+ /* Non_Standard Font Weights */
60
60
  $extrabold: 900;
61
61
  $boldest: 800;
62
62
  $bolder: 700;