playbook_ui 11.2.2 → 11.2.3

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: 2bde172affd0093a3af4bfcfac28bcaa25c056017f89324308c49db3250a2d0b
4
- data.tar.gz: a3284f87b0faa33be499ca39fd93c868d3930fc3f45eda2b4f812a263e8fb635
3
+ metadata.gz: 82d64d3a520c7686c11f94af071b4e8b4468b8d8d87f577dec65aba9a4f2fb7e
4
+ data.tar.gz: 99c685c816a9c1a98d31396432efdea39b6326457fe735329c6fcce13edb3341
5
5
  SHA512:
6
- metadata.gz: 8af4e172879b045b1f408f0f67ea3d17cbcea7950f9c1cd86f33ab0d61085ef89c922aef6584ddddd09e6ac6e87d3ce3b5052b66b98cf0468dec239687a27220
7
- data.tar.gz: 0237aab14d74775f51d6760b004e0a5dfbcd37328d3d540cbcd47e847d61259642144f68263d474e3889fe435ef7e996642fdee8beb7ffb85ba3e6231f2e93b8
6
+ metadata.gz: 6c7851307f9349a1ced3fdfe99007dfab302f5e1a9f382c12adba66dd9fef6aa44b4d4797e5e7ec69f78912f21bb5b0908cef85a14f8fc36205a2124adb2c36a
7
+ data.tar.gz: 943a1cf45bb44e0916fd5e557fc12ed7595c99bb18a99e2724ed3da68cd9eccee27e2a5b17f17c43e2c66158f5d6071280376f756fdb3fd1b9dec7ea30fedf26
@@ -17,7 +17,7 @@ type AvatarProps = {
17
17
  imageUrl: string,
18
18
  name: string,
19
19
  size?: "md" | "lg" | "sm" | "xl" | "xs" | "xxs",
20
- status: "away" | "offline" | "online",
20
+ status?: "away" | "offline" | "online",
21
21
  } & GlobalProps
22
22
 
23
23
  const firstTwoInitials = (name: string) =>
@@ -14,8 +14,8 @@ import Avatar from '../pb_avatar/_avatar'
14
14
  import Icon from '../pb_icon/_icon'
15
15
 
16
16
  type AvatarActionButtonProps = {
17
- action?: string,
18
- aria: Object,
17
+ action?: "add" | "remove",
18
+ aria?: {[key: string]: string},
19
19
  linkAriaLabel?: string,
20
20
  className?: string,
21
21
  dark?: boolean,
@@ -25,9 +25,9 @@ type AvatarActionButtonProps = {
25
25
  imageUrl?: string,
26
26
  linkUrl?: string,
27
27
  name?: string,
28
- onClick?: string,
28
+ onClick?: React.MouseEventHandler<HTMLSpanElement>,
29
29
  placement?: string,
30
- size?: string,
30
+ size?: "md" | "lg" | "sm" | "xl" | "xs" | "xxs",
31
31
  }
32
32
 
33
33
  const AvatarActionButton = (props: AvatarActionButtonProps) => {
@@ -53,9 +53,9 @@ const AvatarActionButton = (props: AvatarActionButtonProps) => {
53
53
 
54
54
  const classes = classnames(buildCss(
55
55
  'pb_avatar_action_button_kit',
56
- [action],
57
- [placement],
58
- [size]),
56
+ action,
57
+ placement,
58
+ size),
59
59
  globalProps(props),
60
60
  className)
61
61
 
@@ -11,12 +11,15 @@ import {
11
11
  } from '../utilities/props'
12
12
 
13
13
  type BreadCrumbItemProps = {
14
- aria?: object,
14
+ aria?: {[key: string]: string},
15
15
  className?: string,
16
16
  data?: object,
17
17
  id?: string,
18
- component?: element
18
+ component?: "a" | "span",
19
+ [x:string]: any;
19
20
  }
21
+
22
+
20
23
  const BreadCrumbItem = (props: BreadCrumbItemProps) => {
21
24
  const {
22
25
  aria = {},
@@ -28,12 +31,13 @@ const BreadCrumbItem = (props: BreadCrumbItemProps) => {
28
31
  } = props
29
32
  const ariaProps = buildAriaProps(aria)
30
33
  const dataProps = buildDataProps(data)
34
+ const Component = component || 'span';
31
35
  const css = classnames(
32
36
  buildCss('pb_bread_crumb_item_kit'),
33
37
  globalProps(props),
34
38
  className
35
39
  )
36
- const Component = component || 'span'
40
+
37
41
  return (
38
42
  <div
39
43
  {...ariaProps}
@@ -11,12 +11,12 @@ import {
11
11
  } from '../utilities/props'
12
12
 
13
13
  type BreadCrumbsProps = {
14
- aria?: object,
14
+ aria?: {[key: string]: string},
15
15
  className?: string,
16
16
  data?: object,
17
17
  id?: string,
18
18
  text?: string,
19
- children?: node
19
+ children?: React.ReactChild[] | React.ReactNode,
20
20
  }
21
21
  const BreadCrumbs = (props: BreadCrumbsProps) => {
22
22
  const {
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import BreadCrumbs from '../_bread_crumbs.jsx'
2
+ import BreadCrumbs from '../_bread_crumbs'
3
3
  import { Icon, Title } from '../../'
4
4
  import BreadCrumbItem from '../_bread_crumb_item'
5
5
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "11.2.0"
5
- VERSION = "11.2.2"
4
+ PREVIOUS_VERSION = "11.2.2"
5
+ VERSION = "11.2.3"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.2.2
4
+ version: 11.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -302,8 +302,8 @@ files:
302
302
  - app/pb_kits/playbook/pb_avatar/docs/_footer.md
303
303
  - app/pb_kits/playbook/pb_avatar/docs/example.yml
304
304
  - app/pb_kits/playbook/pb_avatar/docs/index.js
305
- - app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.jsx
306
305
  - app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss
306
+ - app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.tsx
307
307
  - app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb
308
308
  - app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.rb
309
309
  - app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.html.erb
@@ -394,9 +394,9 @@ files:
394
394
  - app/pb_kits/playbook/pb_body/docs/_footer.md
395
395
  - app/pb_kits/playbook/pb_body/docs/example.yml
396
396
  - app/pb_kits/playbook/pb_body/docs/index.js
397
- - app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx
398
- - app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx
397
+ - app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.tsx
399
398
  - app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.scss
399
+ - app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.tsx
400
400
  - app/pb_kits/playbook/pb_bread_crumbs/bread_crumb_item.html.erb
401
401
  - app/pb_kits/playbook/pb_bread_crumbs/bread_crumb_item.rb
402
402
  - app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.html.erb