playbook_ui 12.9.1.pre.alpha.PLAY689bugtxtinputlabel346 → 12.9.1.pre.alpha.menucleanup342
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +4 -6
- data/app/pb_kits/playbook/pb_text_input/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_text_input/docs/index.js +0 -1
- data/{app/pb_kits/playbook/data → dist}/menu.yml +1 -0
- data/lib/playbook/pb_doc_helper.rb +8 -3
- data/lib/playbook/version.rb +1 -1
- metadata +3 -5
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_no_label.html.erb +0 -4
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_no_label.jsx +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1989f07868254d732bff09d69a085aea374c14b76679b120efc068adbdd78237
|
4
|
+
data.tar.gz: d002dba7896b13cbfa0e2adddaebbe0a735cb8c5036ff02ec23c3ab4acb48481
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 204999c57dee19b70aaf3f4a5cc9e7d361ac099201cf7074bc48b30c77661cea7b117d823ac2437ef60d606a640393b449ec281836cae477c265abd6f6672e29
|
7
|
+
data.tar.gz: 22ea9097dbedf3c02f9cc06057ccbb6e79c358038942e9c2ba06fd3bcbd392e1cda92a94e52c17f2c3b0c13c0783f57acf6641ca6e882ff48dbc90fd5f94cb71
|
@@ -140,12 +140,10 @@ const TextInput = (props: TextInputProps, ref: React.LegacyRef<HTMLInputElement>
|
|
140
140
|
{...dataProps}
|
141
141
|
className={css}
|
142
142
|
>
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
/>
|
148
|
-
}
|
143
|
+
<Caption
|
144
|
+
className="pb_text_input_kit_label"
|
145
|
+
text={label}
|
146
|
+
/>
|
149
147
|
<div className={`${addOnCss} text_input_wrapper`}>
|
150
148
|
{render}
|
151
149
|
|
@@ -6,7 +6,6 @@ examples:
|
|
6
6
|
- text_input_disabled: Disabled
|
7
7
|
- text_input_add_on: Add On
|
8
8
|
- text_input_inline: Inline
|
9
|
-
- text_input_no_label: No Label
|
10
9
|
react:
|
11
10
|
- text_input_default: Default
|
12
11
|
- text_input_error: With Error
|
@@ -14,4 +13,3 @@ examples:
|
|
14
13
|
- text_input_disabled: Disabled
|
15
14
|
- text_input_add_on: Add On
|
16
15
|
- text_input_inline: Inline
|
17
|
-
- text_input_no_label: No Label
|
@@ -4,4 +4,3 @@ export { default as TextInputError } from './_text_input_error.jsx'
|
|
4
4
|
export { default as TextInputDisabled } from './_text_input_disabled.jsx'
|
5
5
|
export { default as TextInputAddOn } from './_text_input_add_on.jsx'
|
6
6
|
export { default as TextInputInline } from './_text_input_inline.jsx'
|
7
|
-
export { default as TextInputNoLabel } from './_text_input_no_label.jsx'
|
@@ -27,9 +27,9 @@ module Playbook
|
|
27
27
|
|
28
28
|
# Deal with lists of kits, used in Playbook doc and Externally
|
29
29
|
# rubocop:disable Style/StringConcatenation
|
30
|
-
def pb_kits(type: "rails", limit_examples: false, dark_mode: false)
|
30
|
+
def pb_kits(type: "rails", limit_examples: false, dark_mode: false, method: get_kits)
|
31
31
|
display_kits = []
|
32
|
-
kits =
|
32
|
+
kits = method
|
33
33
|
kits.each do |kit|
|
34
34
|
if kit.is_a?(Hash)
|
35
35
|
nav_hash_array(kit).each do |sub_kit|
|
@@ -45,7 +45,12 @@ module Playbook
|
|
45
45
|
|
46
46
|
# rubocop:disable Naming/AccessorMethodName
|
47
47
|
def get_kits
|
48
|
-
menu = YAML.load_file(Playbook::Engine.root.join("
|
48
|
+
menu = YAML.load_file(Playbook::Engine.root.join("dist/menu.yml"))
|
49
|
+
menu["kits"]
|
50
|
+
end
|
51
|
+
|
52
|
+
def get_kits_pb_website
|
53
|
+
menu = YAML.load_file(Rails.root.join("config/menu.yml"))
|
49
54
|
menu["kits"]
|
50
55
|
end
|
51
56
|
# rubocop:enable Naming/AccessorMethodName
|
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: 12.9.1.pre.alpha.
|
4
|
+
version: 12.9.1.pre.alpha.menucleanup342
|
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: 2023-03-
|
12
|
+
date: 2023-03-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -294,7 +294,6 @@ files:
|
|
294
294
|
- Rakefile
|
295
295
|
- app/pb_kits/playbook/_playbook.scss
|
296
296
|
- app/pb_kits/playbook/_reset.scss
|
297
|
-
- app/pb_kits/playbook/data/menu.yml
|
298
297
|
- app/pb_kits/playbook/index.js
|
299
298
|
- app/pb_kits/playbook/pb_avatar/_avatar.scss
|
300
299
|
- app/pb_kits/playbook/pb_avatar/_avatar.tsx
|
@@ -2000,8 +1999,6 @@ files:
|
|
2000
1999
|
- app/pb_kits/playbook/pb_text_input/docs/_text_input_error.md
|
2001
2000
|
- app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.html.erb
|
2002
2001
|
- app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.jsx
|
2003
|
-
- app/pb_kits/playbook/pb_text_input/docs/_text_input_no_label.html.erb
|
2004
|
-
- app/pb_kits/playbook/pb_text_input/docs/_text_input_no_label.jsx
|
2005
2002
|
- app/pb_kits/playbook/pb_text_input/docs/example.yml
|
2006
2003
|
- app/pb_kits/playbook/pb_text_input/docs/index.js
|
2007
2004
|
- app/pb_kits/playbook/pb_text_input/text_input.html.erb
|
@@ -2386,6 +2383,7 @@ files:
|
|
2386
2383
|
- app/pb_kits/playbook/utilities/test/globalProps/justifySelf.test.js
|
2387
2384
|
- app/pb_kits/playbook/utilities/test/globalProps/order.test.js
|
2388
2385
|
- app/pb_kits/playbook/utilities/text.ts
|
2386
|
+
- dist/menu.yml
|
2389
2387
|
- dist/reset.css
|
2390
2388
|
- lib/playbook.rb
|
2391
2389
|
- lib/playbook/align_content.rb
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import React, { useState } from 'react'
|
2
|
-
|
3
|
-
import TextInput from '../_text_input'
|
4
|
-
|
5
|
-
const TextInputNoLabel = (props) => {
|
6
|
-
const [email, setEmail] = useState('')
|
7
|
-
|
8
|
-
const handleUpdateEmail = ({ target }) => {
|
9
|
-
setEmail(target.value)
|
10
|
-
}
|
11
|
-
return (
|
12
|
-
<div>
|
13
|
-
<TextInput
|
14
|
-
onChange={handleUpdateEmail}
|
15
|
-
placeholder="Enter email address"
|
16
|
-
type="email"
|
17
|
-
value={email}
|
18
|
-
{...props}
|
19
|
-
/>
|
20
|
-
</div>
|
21
|
-
)
|
22
|
-
}
|
23
|
-
export default TextInputNoLabel
|