playbook_ui 13.34.1.pre.alpha.play1447addrequiredicons3455 → 13.34.1.pre.alpha.powerfontsexternal3403

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2fcd2de5f292c6e6cfab5602d059d9002f58aeb589f5407d34d53d52ec4b5c1a
4
- data.tar.gz: 1c032d39427c5b2da6ee84ba67456e6c0676e81f735b3414cdf8d8614094cb3b
3
+ metadata.gz: ba1baf1e9d06dc610570c22314d7876c1aa4bc553e1f75833ae12b0cce35b9c9
4
+ data.tar.gz: 3b5cd6d469096228dca0e4584be3f9f77cfa495d571705dbc4149ea202ad96f8
5
5
  SHA512:
6
- metadata.gz: 7650d8c50371237b8064c252258aa600662906e4e1d0ab65e3d50a62d840646921e75e5daf87f99bc20069b24cf75f4362cc49ddaa0498d7008345113c2596c7
7
- data.tar.gz: 8b7826b28a41fe4c341eaa403448b9c6e683d77ab1be17f4ce2ce99af663f0338ff4a5e5cb6db7b859f603b056089a7a4f608c3a05519415aa143e8784a78c66
6
+ metadata.gz: db5fc0981967fe16c7e4f3ac72a143273d256b74c0b5f2f1e6385d9bf4728ac4f8111919852233f3e9b53f12b57edda9437cb8e428fd43f73a3429004e85f916
7
+ data.tar.gz: e668b958bf78cf16f01d852d5bf26706af6316f8c30ef088945a0afc06e3e57a9ede1f8034da8492f45057e15a4089f29060d7cd7d10809bf2a8c47afe7c1ebd
@@ -7,7 +7,6 @@ import {
7
7
  buildCss,
8
8
  buildDataProps,
9
9
  buildHtmlProps } from '../utilities/props'
10
- import { getAllIcons } from "../utilities/icons/allicons"
11
10
 
12
11
  import Icon from '../pb_icon/_icon'
13
12
 
@@ -50,7 +49,6 @@ const Badge = (props: BadgeProps): React.ReactElement => {
50
49
  globalProps(props),
51
50
  className
52
51
  )
53
- const timesIcon = getAllIcons()["times"]
54
52
 
55
53
  return (
56
54
  <div
@@ -69,10 +67,8 @@ const Badge = (props: BadgeProps): React.ReactElement => {
69
67
  {...closeProps}
70
68
  >
71
69
  <Icon
72
- className="svg-inline--fa"
73
- customIcon={timesIcon.icon as unknown as { [key: string]: SVGElement }}
74
70
  fixedWidth
75
- icon=""
71
+ icon="times"
76
72
  />
77
73
  </span>
78
74
  )}
@@ -3,7 +3,6 @@ import classnames from 'classnames'
3
3
  import { buildAriaProps, buildDataProps, buildHtmlProps } from '../utilities/props'
4
4
  import { GlobalProps, globalProps } from '../utilities/globalProps'
5
5
  import { isValidEmoji } from '../utilities/validEmojiChecker'
6
- import { getAllIcons } from "../utilities/icons/allicons"
7
6
 
8
7
  import Icon from '../pb_icon/_icon'
9
8
  import Caption from "../pb_caption/_caption"
@@ -66,7 +65,6 @@ const buttonClassName = (props: ButtonPropTypes) => {
66
65
 
67
66
  return className
68
67
  }
69
- const spinnerIcon = getAllIcons()["spinner"]
70
68
 
71
69
  const Button = (props: ButtonPropTypes): React.ReactElement => {
72
70
  const {
@@ -105,10 +103,8 @@ const Button = (props: ButtonPropTypes): React.ReactElement => {
105
103
  const loadingIcon = (
106
104
  <div className="loading-icon">
107
105
  <Icon
108
- className="svg-inline--fa"
109
- customIcon={spinnerIcon.icon as unknown as { [key: string]: SVGElement }}
110
106
  fixedWidth
111
- icon=""
107
+ icon="spinner"
112
108
  pulse
113
109
  />
114
110
  </div>
@@ -22,7 +22,7 @@
22
22
  <%= pb_rails("icon", props: { icon: "#{icon}", fixed_width: true, margin_right: "xs", font_style: object.icon_font_family }) %>
23
23
  </span>
24
24
  <% end %>
25
- <%= pb_rails("icon", props: { custom_icon: Playbook::Engine::root.join(spinner_path), pulse: true, fixed_width: true, classname: "loading-icon" }) %>
25
+ <%= pb_rails("icon", props: { icon: "spinner", pulse: true, fixed_width: true, classname: "loading-icon" }) %>
26
26
  <span class="pb_button_content"><%= content.presence || object.text %></span>
27
27
  <% if object.icon && object.icon_right %>
28
28
  <span>
@@ -103,10 +103,6 @@ module Playbook
103
103
  def highlight_active
104
104
  variant === "reaction" && object.highlight ? " active" : ""
105
105
  end
106
-
107
- def spinner_path
108
- "app/pb_kits/playbook/utilities/icons/spinner.svg"
109
- end
110
106
  end
111
107
  end
112
108
  end
@@ -57,7 +57,7 @@ describe('DateTime Kit', () => {
57
57
 
58
58
  const kit = screen.getByTestId(testId)
59
59
  const text = kit.querySelector('.pb_time_kit_md.ml_sm')
60
- const clock = kit.querySelector('.pb_custom_icon.svg-inline--fa.clock')
60
+ const clock = kit.querySelector('.pb_icon_kit.far.fa-fw.fa-clock')
61
61
 
62
62
  expect(clock).toBeInTheDocument()
63
63
  expect(text.textContent).toEqual(' 12:00a EST')
@@ -72,7 +72,7 @@ describe('DateTime Kit', () => {
72
72
  )
73
73
 
74
74
  const kit = screen.getByTestId(testId)
75
- const clock = kit.querySelector('.pb_custom_icon.svg-inline--fa.clock')
75
+ const clock = kit.querySelector('.pb_icon_kit.far.fa-fw.fa-clock')
76
76
 
77
77
  expect(clock).toBeNull()
78
78
  })
@@ -1,25 +1,20 @@
1
1
  import React from 'react'
2
2
  import Icon from '../pb_icon/_icon'
3
3
 
4
- import { getAllIcons } from "../utilities/icons/allicons"
5
-
6
4
  type CloseIconProps = {
7
5
  onClose: () => void,
8
6
  }
9
7
 
10
8
  export const CloseIcon = (props: CloseIconProps): React.ReactElement => {
11
9
  const { onClose } = props
12
- const timesIcon = getAllIcons()["times"]
13
10
  return (
14
11
  <div
15
12
  className="pb_dialog_close_icon"
16
13
  onClick={onClose}
17
14
  >
18
15
  <Icon
19
- className="svg-inline--fa"
20
- customIcon={timesIcon.icon as unknown as { [key: string]: SVGElement }}
21
16
  fixedWidth
22
- icon=""
17
+ icon="times"
23
18
  />
24
19
  </div>
25
20
  )
@@ -3,7 +3,7 @@
3
3
  <%= content.presence || object.title %>
4
4
 
5
5
  <button class="dialog-button-class" type="button" data-close-dialog= <%= object.id %> >
6
- <%= pb_rails("icon", props: { custom_icon: Playbook::Engine::root.join(times_icon) }) %>
6
+ <%= pb_rails("icon", props:{icon: "times"}) %>
7
7
  </button>
8
8
  <% end %>
9
9
  <%= pb_rails("section_separator") %>
@@ -12,10 +12,6 @@ module Playbook
12
12
  def sticky_header
13
13
  "dialog_sticky_header"
14
14
  end
15
-
16
- def times_icon
17
- "app/pb_kits/playbook/utilities/icons/times.svg"
18
- end
19
15
  end
20
16
  end
21
17
  end
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
2
  import classnames from "classnames";
3
3
 
4
- import { getAllIcons } from "../utilities/icons/allicons"
5
4
  import { buildCss, buildHtmlProps } from "../utilities/props";
6
5
  import { globalProps, GlobalProps } from "../utilities/globalProps";
7
6
  import DateTime from '../pb_kit/dateTime';
@@ -43,23 +42,21 @@ const Time = (props: TimeProps) => {
43
42
  globalProps(props),
44
43
  className
45
44
  );
46
- const clockIcon = getAllIcons()["clock"]
45
+
47
46
  const htmlProps = buildHtmlProps(htmlOptions);
48
47
 
49
48
  return (
50
49
  <div
51
- {...htmlProps}
52
- className={classes}
50
+ {...htmlProps}
51
+ className={classes}
53
52
  >
54
53
  {showIcon && (
55
54
  unstyled
56
55
  ? (
57
56
  <span>
58
- <Icon
59
- className="svg-inline--fa clock"
60
- customIcon={clockIcon.icon as unknown as { [key: string]: SVGElement }}
61
- icon=""
62
- />
57
+ <Icon fixedWidth
58
+ icon="clock"
59
+ />
63
60
  {" "}
64
61
  </span>
65
62
  )
@@ -68,13 +65,10 @@ const Time = (props: TimeProps) => {
68
65
  <Body color="light"
69
66
  tag="span"
70
67
  >
71
- <Icon
72
- className="svg-inline--fa clock"
73
- customIcon={clockIcon.icon as unknown as { [key: string]: SVGElement }}
74
- fixedWidth
75
- icon=""
76
- size={size === "md" ? "" : "sm"}
77
- />
68
+ <Icon fixedWidth
69
+ icon="clock"
70
+ size={size === "md" ? "" : "sm"}
71
+ />
78
72
  {" "}
79
73
  </Body>
80
74
  </>
@@ -13,7 +13,7 @@
13
13
  <% if object.unstyled %>
14
14
  <% if object.show_icon %>
15
15
  <span>
16
- <%= pb_rails("icon", props: { custom_icon: Playbook::Engine.root.join(clock_icon), fixed_width: true }) %>
16
+ <%= pb_rails("icon", props: { icon: "clock", fixed_width: true }) %>
17
17
  </span>
18
18
  <% end %>
19
19
 
@@ -27,7 +27,7 @@
27
27
  <% elsif size == "md" %>
28
28
  <% if object.show_icon %>
29
29
  <%= pb_rails("body", props: { color: "light", tag: "span"}) do %>
30
- <%= pb_rails("icon", props: { custom_icon: Playbook::Engine.root.join(clock_icon), fixed_width: true }) %>
30
+ <%= pb_rails("icon", props: { icon: "clock", fixed_width: true }) %>
31
31
  <% end %>
32
32
  <% end %>
33
33
 
@@ -41,7 +41,7 @@
41
41
  <% else %>
42
42
  <% if object.show_icon %>
43
43
  <%= pb_rails("body", props: { color: "light", tag: "span"}) do %>
44
- <%= pb_rails("icon", props: { custom_icon: Playbook::Engine.root.join(clock_icon), fixed_width: true, size: "sm" }) %>
44
+ <%= pb_rails("icon", props: { icon: "clock", fixed_width: true, size: "sm" }) %>
45
45
  <% end %>
46
46
  <% end %>
47
47
 
@@ -38,10 +38,6 @@ module Playbook
38
38
  def pb_date_time
39
39
  Playbook::PbKit::PbDateTime.new(time, timezone)
40
40
  end
41
-
42
- def clock_icon
43
- "app/pb_kits/playbook/utilities/icons/clock.svg"
44
- end
45
41
  end
46
42
  end
47
43
  end