playbook_ui 7.1.1.pre.alpha1 → 7.1.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: 595c0820f16b2b3e0946f41382f7a3668b23852960c36a3e910f7a220dc4681a
4
- data.tar.gz: 39a721f24fa92d169e229c89920d12603c6758fc462633336fb105cce690c6c2
3
+ metadata.gz: a771d897c0c6e10fcc255e3894b2d3fb52905310dcc4d8c6d9a4adad11cbc155
4
+ data.tar.gz: acd8f6f824a1e5c8c4c673584c736c34a00531504dd11225100dacfbb01a044d
5
5
  SHA512:
6
- metadata.gz: 825198798b8e0409757b0fc9cbca50e78cc7181cbfce089d986b086dd9ecd91e292f30d16b0c461e49010845d2451b946e5a916e5b36cb72793cba55b5c83e2a
7
- data.tar.gz: da7db430a98af504a913692fa19aa894968b0bc8f9eb8e70fe06fc39cf143ff650ebd896e1a27a3a041146405c2e805028811224fdfe14347d875b27cbd1ef69
6
+ metadata.gz: 2f3c5511a7201ed2a88404ec8bfe1060cc327ebed3b3df0e3377841211e339575f46b737bc5b035978bade433f71be2357ec8976e0b199431d65f449c7242465
7
+ data.tar.gz: 68714996046e532d347151d7df34f0726812a09fa8285878c3e2176528d564776c06d2d24a1a1f167469db639f6791a971c05b24be91d72c77fb1d0dd0b00381
@@ -83,4 +83,3 @@
83
83
  @import 'pb_time_stacked/time_stacked';
84
84
  @import 'pb_weekday_stacked/weekday_stacked';
85
85
  @import './utilities/spacing';
86
-
@@ -7,7 +7,6 @@ samples:
7
7
  kits:
8
8
  - avatar
9
9
  - avatar_action_button
10
- - background
11
10
  - buttons:
12
11
  - button
13
12
  - button_toolbar
@@ -21,6 +20,7 @@ kits:
21
20
  - gauge
22
21
  - legend
23
22
  - line_graph
23
+
24
24
  - filter
25
25
  - fixed_confirmation_toast
26
26
  - flex
@@ -5,7 +5,6 @@ import 'lazysizes'
5
5
  // React Component JSX Imports from the React Kits
6
6
  export Avatar from './pb_avatar/_avatar.jsx'
7
7
  export AvatarActionButton from './pb_avatar_action_button/_avatar_action_button.jsx'
8
- export Background from 'pb_background/_background.jsx'
9
8
  export Badge from './pb_badge/_badge.jsx'
10
9
  export BarGraph from './pb_bar_graph/_bar_graph.jsx'
11
10
  export Body from './pb_body/_body.jsx'
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Playbook
3
- VERSION = "7.1.1.pre.alpha1"
3
+ VERSION = "7.1.1"
4
4
  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: 7.1.1.pre.alpha1
4
+ version: 7.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -445,14 +445,6 @@ files:
445
445
  - app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_tooltip.html.erb
446
446
  - app/pb_kits/playbook/pb_avatar_action_button/docs/example.yml
447
447
  - app/pb_kits/playbook/pb_avatar_action_button/docs/index.js
448
- - app/pb_kits/playbook/pb_background/_background.html.erb
449
- - app/pb_kits/playbook/pb_background/_background.jsx
450
- - app/pb_kits/playbook/pb_background/_background.scss
451
- - app/pb_kits/playbook/pb_background/background.rb
452
- - app/pb_kits/playbook/pb_background/docs/_background_default.html.erb
453
- - app/pb_kits/playbook/pb_background/docs/_background_default.jsx
454
- - app/pb_kits/playbook/pb_background/docs/example.yml
455
- - app/pb_kits/playbook/pb_background/docs/index.js
456
448
  - app/pb_kits/playbook/pb_badge/_badge.html.erb
457
449
  - app/pb_kits/playbook/pb_badge/_badge.jsx
458
450
  - app/pb_kits/playbook/pb_badge/_badge.scss
@@ -1863,9 +1855,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
1863
1855
  version: '0'
1864
1856
  required_rubygems_version: !ruby/object:Gem::Requirement
1865
1857
  requirements:
1866
- - - ">"
1858
+ - - ">="
1867
1859
  - !ruby/object:Gem::Version
1868
- version: 1.3.1
1860
+ version: '0'
1869
1861
  requirements: []
1870
1862
  rubygems_version: 3.1.4
1871
1863
  signing_key:
@@ -1,14 +0,0 @@
1
- <%= content_tag(object.tag,
2
- aria: object.aria,
3
- data: object.data,
4
- id: object.id) do %>
5
- <% if object.image_url.present? %>
6
- <div class="<%= object.classname %>" style="background-image: url(<%= object.image_url %>); background-size: cover">
7
- <%= capture(&object.children) %>
8
- </div>
9
- <% else %>
10
- <div class="<%= object.classname %>">
11
- <%= capture(&object.children) %>
12
- </div>
13
- <% end %>
14
- <% end %>
@@ -1,64 +0,0 @@
1
- /* @flow */
2
-
3
- import React from 'react'
4
- import classnames from 'classnames'
5
- import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
6
- import { globalProps } from '../utilities/globalProps.js'
7
-
8
- type BackgroundProps = {
9
- aria?: object,
10
- backgroundColor?: 'gradient' | 'dark' | 'light' | 'white',
11
- children?: array<React.ReactNode> | React.ReactNode,
12
- className?: string,
13
- data?: object,
14
- id?: string,
15
- imageUrl?: string,
16
- padding?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl',
17
- tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div',
18
- }
19
-
20
- const Background = (props: BackgroundProps) => {
21
- const {
22
- aria = {},
23
- backgroundColor = 'light',
24
- children,
25
- className,
26
- data = {},
27
- id,
28
- imageUrl = '',
29
- padding = 'md',
30
- tag = 'div',
31
- } = props
32
-
33
- const ariaProps = buildAriaProps(aria)
34
- const dataProps = buildDataProps(data)
35
- const classes = classnames(buildCss('pb_background_kit'), className, globalProps(props, { padding }))
36
- const Tag = `${tag}`
37
- const backgroundStyle = {
38
- backgroundImage: `url(${imageUrl})`,
39
- backgroundSize: 'cover',
40
- }
41
-
42
- return (
43
- <Tag
44
- {...ariaProps}
45
- {...dataProps}
46
- id={id}
47
- >
48
- <If condition={imageUrl}>
49
- <div
50
- className={classes + 'lazyload blur_up'}
51
- style={backgroundStyle}
52
- >
53
- { children }
54
- </div>
55
- <Else />
56
- <div className={classes + `bg_${backgroundColor}`}>
57
- { children }
58
- </div>
59
- </If>
60
- </Tag>
61
- )
62
- }
63
-
64
- export default Background
@@ -1,15 +0,0 @@
1
- [class^=pb_background_kit] {
2
- max-width: 100%;
3
- max-height: 100%;
4
-
5
- .blur_up {
6
- -webkit-filter: blur(6px);
7
- filter: blur(6px);
8
- transition: filter 550ms, -webkit-filter 550ms;
9
- }
10
-
11
- .blur_up.lazyloaded {
12
- -webkit-filter: blur(0);
13
- filter: blur(0);
14
- }
15
- }
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Playbook
4
- module PbBackground
5
- class Background
6
- include Playbook::Props
7
-
8
- partial "pb_background/background"
9
-
10
- prop :background_color, type: Playbook::Props::Enum,
11
- values: %w[gradient dark light white],
12
- default: "light"
13
- prop :image_url
14
- prop :padding, type: Playbook::Props::Enum,
15
- values: %w[none xs sm md lg xl],
16
- default: "md"
17
- prop :tag, type: Playbook::Props::Enum,
18
- values: %w[h1 h2 h3 h4 h5 h6 p div span],
19
- default: "div"
20
-
21
- def classname
22
- generate_classname("pb_background_kit", image_classname, background_color_classname, padding, separator: " ")
23
- end
24
-
25
- private
26
-
27
- def image_classname
28
- image_url.present? ? "lazyload blur_up" : ""
29
- end
30
-
31
- def background_color_classname
32
- !image_url.present? ? "bg_#{background_color}" : ""
33
- end
34
- end
35
- end
36
- end
@@ -1,41 +0,0 @@
1
- <%= pb_rails("background", props: { background_color: "gradient" }) do %>
2
- Background Kit Gradient Color
3
- <% end %>
4
-
5
- <%= pb_rails("background", props: { background_color: "dark" }) do %>
6
- <%= pb_rails("flex", props: { horizontal: "center"}) do %>
7
- <%= pb_rails("flex/flex_item") do %>
8
- <%= pb_rails("title", props: { dark: true, size: 2, text: "Background Kit Dark" })%>
9
- <% end %>
10
- <% end %>
11
- <% end %>
12
-
13
- <%= pb_rails("background", props: { background_color: "light", padding: "xl" }) do %>
14
- <%= pb_rails("flex", props: { horizontal: "right"}) do %>
15
- <%= pb_rails("flex/flex_item") do %>
16
- <%= pb_rails("body", props: { text: "Background Kit Light" })%>
17
- <% end %>
18
- <% end %>
19
- <% end %>
20
-
21
- <%= pb_rails("background", props: { background_color: "white", padding: "lg" }) do %>
22
- <%= pb_rails("flex") do %>
23
- <%= pb_rails("flex/flex_item") do %>
24
- <%= pb_rails("title", props: { size: 3, text: "Background Kit White" })%>
25
- <% end %>
26
- <% end %>
27
- <% end %>
28
-
29
- <%= pb_rails("background", props: { image_url: "https://images.unsplash.com/photo-1528459801416-a9e53bbf4e17?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1000&q=80", padding: "lg" }) do %>
30
- <%= pb_rails("flex", props: { horizontal: "center", orientation: "column" }) do %>
31
- <%= pb_rails("flex/flex_item") do %>
32
- <%= pb_rails("title", props: { dark: true, size: 1, text: "Background Kit Image" })%>
33
- <% end %>
34
- <%= pb_rails("flex/flex_item", props: { padding: "lg" }) do %>
35
- <%= pb_rails("card", props: { shadow: "deepest" }) do %>
36
- We cannot seek achievement for ourselves and forget about progress and prosperity for our community... Our ambitions must be broad enough to include the aspirations and needs of others, for their sakes and for our own.
37
- -Cesar Chavez
38
- <% end %>
39
- <% end %>
40
- <% end %>
41
- <% end %>
@@ -1,75 +0,0 @@
1
- import React from 'react'
2
- import { Background } from '../../'
3
- import { Body, Card, Flex, FlexItem, Title } from '../../'
4
-
5
- const BackgroundDefault = () => (
6
- <div>
7
- <Background
8
- backgroundColor="gradient"
9
- >
10
- {'Background Kit Gradient Color'}
11
- </Background>
12
- <Background
13
- backgroundColor="dark"
14
- >
15
- <Flex
16
- horizontal="center"
17
- orientation="row"
18
- >
19
- <FlexItem>
20
- <Title
21
- dark
22
- size={2}
23
- text="Background Kit Dark"
24
- />
25
- </FlexItem>
26
- </Flex>
27
- </Background>
28
- <Background
29
- backgroundColor="light"
30
- padding="xl"
31
- >
32
- <Flex
33
- horizontal="right"
34
- orientation="row"
35
- >
36
- <FlexItem>
37
- <Body
38
- text="Background Kit Light"
39
- />
40
- </FlexItem>
41
- </Flex>
42
- </Background>
43
- <Background
44
- backgroundColor="white"
45
- padding="lg"
46
- >
47
- <Title
48
- size={3}
49
- text="Background Kit White"
50
- />
51
- </Background>
52
- <Background imageUrl="https://images.unsplash.com/photo-1528459801416-a9e53bbf4e17?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1000&q=80">
53
- <Flex
54
- orientation="column"
55
- vertical="center"
56
- >
57
- <FlexItem>
58
- <Title
59
- dark
60
- padding="lg"
61
- size={1}
62
- text="Background Kit Image"
63
- />
64
- </FlexItem>
65
- <FlexItem padding="lg">
66
- <Card shadow="deepest">
67
- {'We cannot seek achievement for ourselves and forget about progress and prosperity for our community... Our ambitions must be broad enough to include the aspirations and needs of others, for their sakes and for our own. - Cesar Chavez'}
68
- </Card>
69
- </FlexItem>
70
- </Flex>
71
- </Background>
72
- </div>
73
- )
74
-
75
- export default BackgroundDefault
@@ -1,8 +0,0 @@
1
- examples:
2
-
3
- rails:
4
- - background_default: Default
5
-
6
- react:
7
- - background_default: Default
8
-
@@ -1 +0,0 @@
1
- export { default as BackgroundDefault } from './_background_default.jsx'