playbook_ui 12.24.0 → 12.25.0.pre.alpha.play822bolddefaultfortitle3764

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_date/_date.tsx +96 -42
  3. data/app/pb_kits/playbook/pb_date/date.html.erb +22 -2
  4. data/app/pb_kits/playbook/pb_date/date.rb +2 -0
  5. data/app/pb_kits/playbook/pb_date/docs/_date_unstyled.html.erb +30 -0
  6. data/app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx +47 -0
  7. data/app/pb_kits/playbook/pb_date/docs/_date_unstyled.md +1 -0
  8. data/app/pb_kits/playbook/pb_date/docs/example.yml +4 -4
  9. data/app/pb_kits/playbook/pb_date/docs/index.js +1 -0
  10. data/app/pb_kits/playbook/pb_docs/kit_example.rb +0 -2
  11. data/app/pb_kits/playbook/pb_time/_time.tsx +71 -35
  12. data/app/pb_kits/playbook/pb_time/docs/_time_unstyled.html.erb +37 -0
  13. data/app/pb_kits/playbook/pb_time/docs/_time_unstyled.jsx +58 -0
  14. data/app/pb_kits/playbook/pb_time/docs/_time_unstyled.md +1 -0
  15. data/app/pb_kits/playbook/pb_time/docs/example.yml +2 -0
  16. data/app/pb_kits/playbook/pb_time/docs/index.js +1 -0
  17. data/app/pb_kits/playbook/pb_time/time.html.erb +26 -7
  18. data/app/pb_kits/playbook/pb_time/time.rb +2 -0
  19. data/app/pb_kits/playbook/pb_title/_title.scss +1 -0
  20. data/app/pb_kits/playbook/pb_title/_title.tsx +1 -1
  21. data/app/pb_kits/playbook/pb_title/docs/_title_light_weight.html.erb +1 -0
  22. data/app/pb_kits/playbook/pb_title/docs/_title_light_weight.jsx +6 -0
  23. data/app/pb_kits/playbook/pb_title/docs/_title_light_weight.md +1 -2
  24. data/dist/playbook-rails.js +51 -0
  25. data/lib/playbook/version.rb +2 -2
  26. data/lib/playbook.rb +1 -2
  27. metadata +18 -41
  28. data/app/pb_kits/playbook/pb_docs/kit_api.html.erb +0 -311
  29. data/app/pb_kits/playbook/pb_docs/kit_api.rb +0 -149
  30. data/lib/playbook/markdown/helper.rb +0 -132
  31. data/lib/playbook/markdown.rb +0 -3
@@ -21,13 +21,13 @@ const Title = (props: TitleProps): React.ReactElement => {
21
21
  if (props.variant) deprecatedProps('Title', ['variant']) //variant prop is deprecated, use color instead
22
22
  const {
23
23
  aria = {},
24
- bold = true,
25
24
  children,
26
25
  className,
27
26
  color,
28
27
  data = {},
29
28
  id,
30
29
  size = 3,
30
+ bold = true,
31
31
  tag = 'h3',
32
32
  text,
33
33
  variant = null,
@@ -1,2 +1,3 @@
1
1
  <%= pb_rails("title", props: { text: "Title 1", tag: "h1", size: 1, bold: false }) %>
2
2
  <%= pb_rails("title", props: { text: "Title 2", tag: "h2", size: 2, bold: false }) %>
3
+ <%= pb_rails("title", props: { text: "Title 3", tag: "h3", size: 3, bold: false }) %>
@@ -17,6 +17,12 @@ const TitleLightWeight = (props) => {
17
17
  text='Title 2'
18
18
  {...props}
19
19
  />
20
+ <Title bold={false}
21
+ size={3}
22
+ tag='h2'
23
+ text='Title 3'
24
+ {...props}
25
+ />
20
26
  </div>
21
27
  )
22
28
  }
@@ -1,4 +1,3 @@
1
1
  ##### Prop
2
- Title `size 1` & `size 2` will use `font-weight: 700` by default, if you want a lighter font weight, use the `bold` prop set to `false`.
3
- Title `size 3` uses a light font weight by default and will not accept a bold font weight.
2
+ Title `size 1`, `size 2`, & `size 3` will use `font-weight: 700` by default, if you want a lighter font weight, use the `bold` prop set to `false`.
4
3
  Title `size 4` uses a heavy font weight by default and will not accept a lighter font weight.