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 +4 -4
- data/app/pb_kits/playbook/pb_badge/_badge.tsx +1 -5
- data/app/pb_kits/playbook/pb_button/_button.tsx +1 -5
- data/app/pb_kits/playbook/pb_button/button.html.erb +1 -1
- data/app/pb_kits/playbook/pb_button/button.rb +0 -4
- data/app/pb_kits/playbook/pb_date_time/dateTime.test.js +2 -2
- data/app/pb_kits/playbook/pb_dialog/_close_icon.tsx +1 -6
- data/app/pb_kits/playbook/pb_dialog/dialog_header.html.erb +1 -1
- data/app/pb_kits/playbook/pb_dialog/dialog_header.rb +0 -4
- data/app/pb_kits/playbook/pb_time/_time.tsx +10 -16
- data/app/pb_kits/playbook/pb_time/time.html.erb +3 -3
- data/app/pb_kits/playbook/pb_time/time.rb +0 -4
- data/dist/chunks/_typeahead-COUJ88EA.js +22 -0
- data/dist/chunks/{_weekday_stacked-B98BDKdo.js → _weekday_stacked-BZu4elIU.js} +2 -2
- data/dist/chunks/lazysizes-DHz07jlL.js +1 -0
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +5 -9
- data/app/pb_kits/playbook/utilities/icons/allicons.tsx +0 -59
- data/app/pb_kits/playbook/utilities/icons/clock.svg +0 -9
- data/app/pb_kits/playbook/utilities/icons/spinner.svg +0 -3
- data/app/pb_kits/playbook/utilities/icons/times.svg +0 -3
- data/dist/chunks/_typeahead-zwiADeyt.js +0 -22
- data/dist/chunks/lazysizes-B7xYodB-.js +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba1baf1e9d06dc610570c22314d7876c1aa4bc553e1f75833ae12b0cce35b9c9
|
4
|
+
data.tar.gz: 3b5cd6d469096228dca0e4584be3f9f77cfa495d571705dbc4149ea202ad96f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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: {
|
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>
|
@@ -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('.
|
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('.
|
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:
|
6
|
+
<%= pb_rails("icon", props:{icon: "times"}) %>
|
7
7
|
</button>
|
8
8
|
<% end %>
|
9
9
|
<%= pb_rails("section_separator") %>
|
@@ -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
|
-
|
45
|
+
|
47
46
|
const htmlProps = buildHtmlProps(htmlOptions);
|
48
47
|
|
49
48
|
return (
|
50
49
|
<div
|
51
|
-
|
52
|
-
|
50
|
+
{...htmlProps}
|
51
|
+
className={classes}
|
53
52
|
>
|
54
53
|
{showIcon && (
|
55
54
|
unstyled
|
56
55
|
? (
|
57
56
|
<span>
|
58
|
-
|
59
|
-
|
60
|
-
|
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
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
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: {
|
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: {
|
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: {
|
44
|
+
<%= pb_rails("icon", props: { icon: "clock", fixed_width: true, size: "sm" }) %>
|
45
45
|
<% end %>
|
46
46
|
<% end %>
|
47
47
|
|