playbook_ui 6.2.0 → 6.2.1

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: 5d415890b11b05501775bfebbe96e1aa671a9d29fe3858c26b8479d25f5a10f5
4
- data.tar.gz: 6a2e5f7e180f8dab84fdffdd78b14a2a8d7b68056c2dacb78303d95c0344f6f0
3
+ metadata.gz: 82aa5cb0ff13fff767bf84b62c95679678adb923ab8498213d70f238d4686e4b
4
+ data.tar.gz: 749e9c758148f36c0db475664273a5bcedb99c45dd6d6929de155bfaeaa77ac1
5
5
  SHA512:
6
- metadata.gz: 9b12f49556b91fbb08119f0e90a8224219c9e9c764aa9fe6406ee38e123d31616723f561ff464484c2ce93f8db68529eb113b6b85d052289a2ec552c982fbbf6
7
- data.tar.gz: 36758fee9b0226ba5fa81a6a5327750e40123afbb31ceb3b67d4f66dfc9c904ea8b3a8e59ea9d17294a4c5c08a2e1b5f8dc3598019b375d7ce0f17b925ef067a
6
+ metadata.gz: 506b370ea2fe837dfab73e153c44e1c5c7c5d1ee43c9af8093b85b9539427ef3f8667034bf6297ddfb3f1c49f02c87a960c976a3c51ed75b21696a7bacafb43e
7
+ data.tar.gz: a6491803f9cf6f725a63f3c0d71dfc77b5f22e7739db30fa90c90eacfadc116f89a9e81d17ad853d8bcca4bcd09c13c7f96a2e1688d8e108bc48cd77d563c5be
@@ -40,7 +40,7 @@ const Header = (props: CardHeaderProps) => {
40
40
  const headerSpacing = globalProps(props, { padding })
41
41
 
42
42
  return (
43
- <div className={classnames(headerCSS, className, headerSpacing)}>
43
+ <div className={classnames(headerCSS, headerSpacing, className)}>
44
44
  {children}
45
45
  </div>
46
46
  )
@@ -48,12 +48,12 @@ const Header = (props: CardHeaderProps) => {
48
48
 
49
49
  // Body component
50
50
  const Body = (props: CardBodyProps) => {
51
- const { children, className, padding = 'md' } = props
51
+ const { children, padding = 'md', className } = props
52
52
  const bodyCSS = buildCss('pb_card_body_kit')
53
53
  const bodySpacing = globalProps(props, { padding })
54
54
 
55
55
  return (
56
- <div className={classnames(bodyCSS, className, bodySpacing)}>
56
+ <div className={classnames(bodyCSS, bodySpacing, className)}>
57
57
  {children}
58
58
  </div>
59
59
  )
@@ -69,7 +69,6 @@ const Card = (props: CardPropTypes) => {
69
69
  shadow = 'none',
70
70
  padding = 'md',
71
71
  } = props
72
- const bodyCSS = buildCss('pb_card_body_kit')
73
72
  const borderCSS = borderNone == true ? 'border_none' : ''
74
73
  const cardCss = buildCss('pb_card_kit', `shadow_${shadow}`, `${borderCSS}`, {
75
74
  selected,
@@ -93,11 +92,9 @@ const Card = (props: CardPropTypes) => {
93
92
  const nonHeaderChildren = cardChildren.filter((child) => (get(child, 'type.displayName') !== 'Header'))
94
93
 
95
94
  return (
96
- <div className={classnames(cardCss, globalProps(props), className)}>
95
+ <div className={classnames(cardCss, globalProps({ padding }), className)}>
97
96
  {subComponentTags('Header')}
98
- <div className={classnames(bodyCSS, globalProps({ padding }))}>
99
- {nonHeaderChildren}
100
- </div>
97
+ {nonHeaderChildren}
101
98
  </div>
102
99
  )
103
100
  }
@@ -54,8 +54,8 @@ const SelectableCard = ({
54
54
  const classes = classnames(buildCss('pb_selectable_card_kit',
55
55
  { 'checked': checked,
56
56
  'disabled': disabled,
57
- 'enabled': !disabled },
58
- className), globalProps(props))
57
+ 'enabled': !disabled }),
58
+ globalProps(props), className)
59
59
 
60
60
  const displayIcon = () => {
61
61
  if (icon === true) {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- VERSION = "6.2.0"
4
+ VERSION = "6.2.1"
5
5
  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: 6.2.0
4
+ version: 6.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-08-14 00:00:00.000000000 Z
12
+ date: 2020-08-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack