playbook_ui 14.14.0.pre.alpha.PBNTR890typeahead6390 → 14.14.0.pre.alpha.PBNTR890typeahead6394

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79ef4c9c994877b24ebef9b26576b84fbe3aa48398749c1810a067959e2be4bf
4
- data.tar.gz: 376f12de0c548d39abd3ce11a898d46f38aa8d31c09ceb6eba2651b2cb17b743
3
+ metadata.gz: 85ec8319ef8383dcbd45605b1c431293afbf510fc625b115b815c820a0f74597
4
+ data.tar.gz: c2a828a83f9bf40c4eb691d765dfc4319bbffbbbbad2a2c8b28e3d22b4dc3797
5
5
  SHA512:
6
- metadata.gz: ebb149d154df6b42083d20bc2ba601d5a769054f450ffbb91276f8dfa8e8d45ffb8cd8937bdf9b1567c5987b7038d01112178c01fe3226ae9fc66326aa0286c6
7
- data.tar.gz: 1caf4d0c776404cea40ee3fd07aa84a42996b59b562c6e86af64afd7869e56ff6ffd5e70b3f6f2f25bc3385fae4bede7e136f663b7a8a94985d87c73ae077744
6
+ metadata.gz: ae4c18ecdc0fad76efba409c039b5c8ecc55f50ce0cf9041a3ce1285683abf50cec01ae9687331d104a2b4fd0d508adeeef0d55996e71ff8038d4c951f55d6de
7
+ data.tar.gz: f9fa664003f3b446c12e4a4eb6763a0c163068230954422c10cf03747ed2c303c4ef6cde080df056c707c17dbe462fb0bc0958ddd4a7cf56dfe08ab130e25017
@@ -31,41 +31,6 @@
31
31
  @include pb_title_thin;
32
32
  }
33
33
 
34
- &[class*=_display] {
35
- font-size: clamp(
36
- 24px,
37
- calc(24px + (128 - 24) * ((100vw - 320px) / (1920 - 320))),
38
- 128px
39
- );
40
- }
41
-
42
- &[class*=_dynamic] {
43
- &[class*=_xs] {
44
- font-size: min(2vw, 5rem);
45
- }
46
-
47
- &[class*=_sm] {
48
- font-size: min(2.5vw, 6rem);
49
- }
50
-
51
- &[class*=_md] {
52
- font-size: min(4vw, 10rem);
53
- }
54
-
55
- &[class*=_lg] {
56
- font-size: min(5vw, 12rem);
57
- }
58
-
59
- &[class*=_xl] {
60
- font-size: min(6vw, 14rem);
61
- }
62
-
63
- &[class*=_xxl] {
64
- font-size: min(8vw, 16rem);
65
- }
66
- }
67
-
68
-
69
34
  @each $size, $size_value in $breakpoints_grid {
70
35
  @for $title_size_value from 1 through 4 {
71
36
  $min_size: map-get($size_value, "min");
@@ -3,7 +3,7 @@ import classnames from 'classnames'
3
3
  import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
4
4
  import { deprecatedProps, GlobalProps, globalProps } from '../utilities/globalProps'
5
5
 
6
- type SizeType = 1 | 2 | 3 | 4 | "1" | "2" | "3" | "4" | "display"
6
+ type SizeType = 1 | 2 | 3 | 4 | "1" | "2" | "3" | "4"
7
7
  type SizeResponsiveType = {[key: string]: SizeType}
8
8
 
9
9
  type TitleProps = {
@@ -16,7 +16,6 @@ type TitleProps = {
16
16
  htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
17
17
  id?: string,
18
18
  size?: SizeType | SizeResponsiveType,
19
- displaySize?: null | "xs" | "sm" | "md" | "lg" | "xl" | "xxl",
20
19
  tag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div" | "span",
21
20
  text?: string,
22
21
  variant?: null | "link",
@@ -33,7 +32,6 @@ const Title = (props: TitleProps): React.ReactElement => {
33
32
  htmlOptions = {},
34
33
  id,
35
34
  size = 3,
36
- displaySize = null,
37
35
  bold = true,
38
36
  tag = 'h3',
39
37
  text,
@@ -58,16 +56,9 @@ const Title = (props: TitleProps): React.ReactElement => {
58
56
  return css.trim()
59
57
  }
60
58
 
61
- const buildDisplaySize = () => {
62
- if (displaySize) {
63
- return `pb_title_kit_dynamic_${displaySize}`
64
- }
65
- }
66
-
67
59
  const classes = classnames(
68
60
  buildCss('pb_title_kit', isSizeNumberOrString ? `size_${size}` : "", variant, color, getBold),
69
61
  globalProps(props),
70
- buildDisplaySize(),
71
62
  buildResponsiveSizeCss(),
72
63
  className
73
64
  )
@@ -1,9 +1,10 @@
1
1
  <%= pb_rails("title", props: {
2
- margin_bottom: "md"
3
2
  }) do %>
4
3
  Default Title
5
4
  <% end %>
6
5
 
6
+ <br/>
7
+
7
8
  <%= pb_rails("title", props: { text: "Title 1", tag: "h1", size: 1 }) %>
8
9
  <%= pb_rails("title", props: { text: "Title 2", tag: "h2", size: 2 }) %>
9
10
  <%= pb_rails("title", props: { text: "Title 3", tag: "h3", size: 3 }) %>
@@ -6,10 +6,10 @@ const TitleDefault = (props) => {
6
6
  return (
7
7
  <div>
8
8
  <Title
9
- marginBottom='md'
10
9
  text="Default Title"
11
10
  {...props}
12
11
  />
12
+ <br />
13
13
  <Title
14
14
  size={1}
15
15
  tag="h1"
@@ -5,7 +5,6 @@ examples:
5
5
  - title_colors: Colors
6
6
  - title_responsive: Responsive
7
7
  - title_truncate: Truncate
8
- - title_display_size: Display Size
9
8
 
10
9
  react:
11
10
  - title_default: Default UI
@@ -13,4 +12,3 @@ examples:
13
12
  - title_colors: Colors
14
13
  - title_responsive: Responsive
15
14
  - title_truncate: Truncate
16
- - title_display_size: Display Size
@@ -3,4 +3,3 @@ export { default as TitleLightWeight } from './_title_light_weight.jsx'
3
3
  export { default as TitleColors } from './_title_colors.jsx'
4
4
  export { default as TitleResponsive } from './_title_responsive.jsx'
5
5
  export { default as TitleTruncate } from './_title_truncate.jsx'
6
- export { default as TitleDisplaySize } from './_title_display_size.jsx'
@@ -16,15 +16,12 @@ module Playbook
16
16
  default: nil,
17
17
  deprecated: true
18
18
  prop :bold, type: Playbook::Props::Boolean, default: true
19
- prop :display_size, type: Playbook::Props::Enum,
20
- values: [nil, "xs", "sm", "md", "lg", "xl", "xxl"],
21
- default: nil
22
19
 
23
20
  def classname
24
21
  if is_size_responsive
25
22
  generate_classname("pb_title_kit", variant, color, is_bold) + generate_responsive_size_classname
26
23
  else
27
- generate_classname("pb_title_kit", size, variant, color, is_bold) + generate_display_size
24
+ generate_classname("pb_title_kit", size, variant, color, is_bold)
28
25
  end
29
26
  end
30
27
 
@@ -32,12 +29,6 @@ module Playbook
32
29
  bold ? nil : "thin"
33
30
  end
34
31
 
35
- def generate_display_size
36
- return "" if display_size.nil?
37
-
38
- " pb_title_kit_dynamic_#{display_size}"
39
- end
40
-
41
32
  def is_size_responsive
42
33
  try(:size).is_a?(::Hash)
43
34
  end