playbook_ui 12.9.1.pre.alpha.PLAY689bugtxtinputlabel346 → 12.9.1.pre.alpha.menucleanup342

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: 969cff053238e0cdd3ab39c8e80aeed6f36e04fc853a18838e5301fc1c0f4fc2
4
- data.tar.gz: fd281ea5d8c16b9fbe5eb8d9a4d556c8a801510282a309bc29777d6e2fb861f3
3
+ metadata.gz: 1989f07868254d732bff09d69a085aea374c14b76679b120efc068adbdd78237
4
+ data.tar.gz: d002dba7896b13cbfa0e2adddaebbe0a735cb8c5036ff02ec23c3ab4acb48481
5
5
  SHA512:
6
- metadata.gz: b87e2aebe7c5ba530cac6c24e1a3f6ec201a0910e2b1916fe8b2d975837c3137e301f6559a6db539b3c6ded899dbb7226724ea78b3f2f87e1495175ce3b0b098
7
- data.tar.gz: 885e36256d35b2d99d799af8e8d729efac2ac72386b3700adcaea17a26402490124270b113e6a02b1f0ec3db80187c0f8483cc7dafcee6449f1ae31f5ccb91a0
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
- {label &&
144
- <Caption
145
- className="pb_text_input_kit_label"
146
- text={label}
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'
@@ -108,3 +108,4 @@ kits:
108
108
  - title_detail
109
109
  - user_badge
110
110
  - walkthrough
111
+ - tired
@@ -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 = get_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("app/pb_kits/playbook/data/menu.yml"))
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "12.9.1"
5
- VERSION = "12.9.1.pre.alpha.PLAY689bugtxtinputlabel346"
5
+ VERSION = "12.9.1.pre.alpha.menucleanup342"
6
6
  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: 12.9.1.pre.alpha.PLAY689bugtxtinputlabel346
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-21 00:00:00.000000000 Z
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,4 +0,0 @@
1
- <%= pb_rails("text_input", props: {
2
- placeholder: "Enter email address",
3
- type: "email"
4
- }) %>
@@ -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