playbook_ui 10.26.1 → 11.0.0.pre.alpha.1
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_card/_card.tsx +4 -4
- data/app/pb_kits/playbook/pb_form/form.rb +1 -1
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +6 -3
- data/app/pb_kits/playbook/utilities/props.ts +2 -2
- data/dist/reset.css +60 -1
- data/lib/playbook/props.rb +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba99152ecbeab24cac6ea0be5c389d35fac8c6e35698aa5c6b5aa0b6499a631a
|
4
|
+
data.tar.gz: 6c03e5095d32c664dcd83c68532acbb3affd7ddf8be63bc654d67c08fc6838de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b65dde7cdc094167c4e7efdd172ec520e76dcf4cf7cebd2bb6539ffe782028044d97869b99241297e7b36c7d19f85b99209122a5fc54856f0619e60e952d2053
|
7
|
+
data.tar.gz: bc779ff7b9013fd2ec1d15ba51c676b131f6b474f962e0959d435a0cc7a166597d72c86dd6011e1d2e4cda7a43ad1bb5c985569d6b37c043be86e3bc14f81939
|
@@ -83,10 +83,10 @@ const Card = (props: CardPropTypes) => {
|
|
83
83
|
const borderCSS = borderNone == true ? 'border_none' : ''
|
84
84
|
const selectedCSS = selected == true ? 'selected' : 'deselected'
|
85
85
|
const backgroundCSS = background == 'none' ? '' : `background_${background}`
|
86
|
-
const cardCss = buildCss('pb_card_kit', selectedCSS, borderCSS, `border_radius_${borderRadius}`, backgroundCSS,
|
87
|
-
|
88
|
-
|
89
|
-
|
86
|
+
const cardCss = buildCss('pb_card_kit', selectedCSS, borderCSS, `border_radius_${borderRadius}`, backgroundCSS,
|
87
|
+
`highlight_${highlight.position}`,
|
88
|
+
`highlight_${highlight.color}`,
|
89
|
+
)
|
90
90
|
const ariaProps: {[key: string]: string} = buildAriaProps(aria)
|
91
91
|
const dataProps: {[key: string]: string} = buildDataProps(data)
|
92
92
|
|
@@ -60,9 +60,12 @@ module Playbook
|
|
60
60
|
plusIcon: plus_icon,
|
61
61
|
}
|
62
62
|
|
63
|
-
base_options
|
64
|
-
base_options
|
65
|
-
|
63
|
+
base_options[:getOptionLabel] = get_option_label if get_option_label.present?
|
64
|
+
base_options[:getOptionValue] = get_option_value if get_option_value.present?
|
65
|
+
if async
|
66
|
+
base_options[:async] = true
|
67
|
+
base_options[:loadOptions] = load_options
|
68
|
+
end
|
66
69
|
base_options
|
67
70
|
end
|
68
71
|
end
|
@@ -22,7 +22,7 @@ const buildPrefixedProps = (prefix: string, data: {[key: string]: any}) =>
|
|
22
22
|
*
|
23
23
|
* @returns {() => {}} the noop function.
|
24
24
|
*/
|
25
|
-
export const noop = ()
|
25
|
+
export const noop = () => {}
|
26
26
|
|
27
27
|
/**
|
28
28
|
* Maps a given aria object into HTML valid aria attribtues and their values.
|
@@ -47,5 +47,5 @@ export const buildDataProps = (data: {[key: string]: any}) => buildPrefixedProps
|
|
47
47
|
* @param {Object} rules a 'classnames' compliant rules object, used to derive the root className.
|
48
48
|
* @returns {String} the derived root className value.
|
49
49
|
*/
|
50
|
-
export const buildCss = (...rules:
|
50
|
+
export const buildCss = (...rules: string[]) => classnames(rules).replace(/\s/g, '_')
|
51
51
|
|
data/dist/reset.css
CHANGED
@@ -1,2 +1,61 @@
|
|
1
|
-
|
1
|
+
/* CLEAN UP AND REMOVE */
|
2
|
+
/* Headings */
|
3
|
+
/* Standard Font Weights */
|
4
|
+
/* Non_Standard Font Weights */
|
5
|
+
/*=====================================
|
6
|
+
Base colors should not be documented.
|
7
|
+
Only document color use.
|
8
|
+
|
9
|
+
Colors -----------------------------*/
|
10
|
+
/* Specialty Gradient -----------------*/
|
11
|
+
/* Interface colors -------------------*/
|
12
|
+
/* Main colors ------------------------*/
|
13
|
+
/*=====================================
|
14
|
+
|
15
|
+
Background colors ------------------*/
|
16
|
+
/* Card colors ------------------*/
|
17
|
+
/* Active colors ----------------------*/
|
18
|
+
/* Hover colors -----------------------*/
|
19
|
+
/* Focus colors -----------------------*/
|
20
|
+
/* Border colors ----------------------*/
|
21
|
+
/* Shadow colors ----------------------*/
|
22
|
+
/* Text colors ------------------------*/
|
23
|
+
/* Data colors ------------------------*/
|
24
|
+
/* Status colors ----------------------*/
|
25
|
+
/* Link colors ------------------------*/
|
26
|
+
/* Product colors ---------------------*/
|
27
|
+
/* Category colors ---------------------*/
|
28
|
+
* {
|
29
|
+
box-sizing: border-box;
|
30
|
+
margin: 0;
|
31
|
+
padding: 0; }
|
32
|
+
*:before, *:after {
|
33
|
+
box-sizing: border-box; }
|
34
|
+
|
35
|
+
html {
|
36
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
37
|
+
height: 100vh;
|
38
|
+
overflow-x: hidden; }
|
39
|
+
|
40
|
+
body {
|
41
|
+
font-family: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans_serif;
|
42
|
+
font-size: 16px;
|
43
|
+
line-height: 1.5;
|
44
|
+
background-color: #F3F7FB;
|
45
|
+
height: 100%;
|
46
|
+
letter-spacing: 0;
|
47
|
+
font-weight: 400;
|
48
|
+
font-style: normal;
|
49
|
+
text-rendering: optimizeLegibility;
|
50
|
+
-moz-font-feature-settings: "liga" on;
|
51
|
+
color: #242B42;
|
52
|
+
margin: 0 !important;
|
53
|
+
padding: 0 !important;
|
54
|
+
box-sizing: border-box;
|
55
|
+
min-height: 100vh;
|
56
|
+
padding: 50px; }
|
57
|
+
|
58
|
+
a {
|
59
|
+
text-decoration: none;
|
60
|
+
color: #0056CF; }
|
2
61
|
|
data/lib/playbook/props.rb
CHANGED
@@ -48,7 +48,7 @@ module Playbook
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def prop(name, type: Playbook::Props::String, **options)
|
51
|
-
self.props = props.merge(name => type.new(options.merge(name: name, kit: self)))
|
51
|
+
self.props = props.merge(name => type.new(**options.merge(name: name, kit: self)))
|
52
52
|
|
53
53
|
define_method(name) { prop(name) }
|
54
54
|
end
|
data/lib/playbook/version.rb
CHANGED
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:
|
4
|
+
version: 11.0.0.pre.alpha.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: 2022-05-
|
12
|
+
date: 2022-05-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -205,14 +205,14 @@ dependencies:
|
|
205
205
|
requirements:
|
206
206
|
- - '='
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version: 1.
|
208
|
+
version: 1.23.0
|
209
209
|
type: :development
|
210
210
|
prerelease: false
|
211
211
|
version_requirements: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
213
|
- - '='
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 1.
|
215
|
+
version: 1.23.0
|
216
216
|
- !ruby/object:Gem::Dependency
|
217
217
|
name: rubocop-performance
|
218
218
|
requirement: !ruby/object:Gem::Requirement
|
@@ -2208,11 +2208,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
2208
2208
|
version: '0'
|
2209
2209
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
2210
2210
|
requirements:
|
2211
|
-
- - "
|
2211
|
+
- - ">"
|
2212
2212
|
- !ruby/object:Gem::Version
|
2213
|
-
version:
|
2213
|
+
version: 1.3.1
|
2214
2214
|
requirements: []
|
2215
|
-
rubygems_version: 3.
|
2215
|
+
rubygems_version: 3.3.7
|
2216
2216
|
signing_key:
|
2217
2217
|
specification_version: 4
|
2218
2218
|
summary: Playbook Design System
|