playbook_ui 12.9.0 → 12.9.1.pre.alpha.PLAY689bugtxtinputlabel346
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_text_input/_text_input.tsx +6 -4
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_no_label.html.erb +4 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_no_label.jsx +23 -0
- data/app/pb_kits/playbook/pb_text_input/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_text_input/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.scss +6 -2
- data/lib/playbook/version.rb +2 -2
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 969cff053238e0cdd3ab39c8e80aeed6f36e04fc853a18838e5301fc1c0f4fc2
|
4
|
+
data.tar.gz: fd281ea5d8c16b9fbe5eb8d9a4d556c8a801510282a309bc29777d6e2fb861f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b87e2aebe7c5ba530cac6c24e1a3f6ec201a0910e2b1916fe8b2d975837c3137e301f6559a6db539b3c6ded899dbb7226724ea78b3f2f87e1495175ce3b0b098
|
7
|
+
data.tar.gz: 885e36256d35b2d99d799af8e8d729efac2ac72386b3700adcaea17a26402490124270b113e6a02b1f0ec3db80187c0f8483cc7dafcee6449f1ae31f5ccb91a0
|
@@ -140,10 +140,12 @@ const TextInput = (props: TextInputProps, ref: React.LegacyRef<HTMLInputElement>
|
|
140
140
|
{...dataProps}
|
141
141
|
className={css}
|
142
142
|
>
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
143
|
+
{label &&
|
144
|
+
<Caption
|
145
|
+
className="pb_text_input_kit_label"
|
146
|
+
text={label}
|
147
|
+
/>
|
148
|
+
}
|
147
149
|
<div className={`${addOnCss} text_input_wrapper`}>
|
148
150
|
{render}
|
149
151
|
|
@@ -0,0 +1,23 @@
|
|
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
|
@@ -6,6 +6,7 @@ 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
|
9
10
|
react:
|
10
11
|
- text_input_default: Default
|
11
12
|
- text_input_error: With Error
|
@@ -13,3 +14,4 @@ examples:
|
|
13
14
|
- text_input_disabled: Disabled
|
14
15
|
- text_input_add_on: Add On
|
15
16
|
- text_input_inline: Inline
|
17
|
+
- text_input_no_label: No Label
|
@@ -4,3 +4,4 @@ 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'
|
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.9.
|
4
|
+
version: 12.9.1.pre.alpha.PLAY689bugtxtinputlabel346
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
8
8
|
- Power Devs
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-03-
|
12
|
+
date: 2023-03-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -2000,6 +2000,8 @@ files:
|
|
2000
2000
|
- app/pb_kits/playbook/pb_text_input/docs/_text_input_error.md
|
2001
2001
|
- app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.html.erb
|
2002
2002
|
- 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
|
2003
2005
|
- app/pb_kits/playbook/pb_text_input/docs/example.yml
|
2004
2006
|
- app/pb_kits/playbook/pb_text_input/docs/index.js
|
2005
2007
|
- app/pb_kits/playbook/pb_text_input/text_input.html.erb
|
@@ -2445,7 +2447,7 @@ homepage: http://playbook.powerapp.cloud
|
|
2445
2447
|
licenses:
|
2446
2448
|
- ISC
|
2447
2449
|
metadata: {}
|
2448
|
-
post_install_message:
|
2450
|
+
post_install_message:
|
2449
2451
|
rdoc_options: []
|
2450
2452
|
require_paths:
|
2451
2453
|
- lib
|
@@ -2456,12 +2458,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
2456
2458
|
version: '0'
|
2457
2459
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
2458
2460
|
requirements:
|
2459
|
-
- - "
|
2461
|
+
- - ">"
|
2460
2462
|
- !ruby/object:Gem::Version
|
2461
|
-
version:
|
2463
|
+
version: 1.3.1
|
2462
2464
|
requirements: []
|
2463
2465
|
rubygems_version: 3.3.7
|
2464
|
-
signing_key:
|
2466
|
+
signing_key:
|
2465
2467
|
specification_version: 4
|
2466
2468
|
summary: Playbook Design System
|
2467
2469
|
test_files: []
|