playbook_ui_docs 13.15.0.pre.alpha.1132globalpropdatepickerspacing1929 → 13.16.0

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: 33a914c4ad1301173a99d43f6a05979142c547bdf26762d267a5013aab570dbf
4
- data.tar.gz: 67c200972726532ce4654974f52f3207f5425e3e4609f2f4202a0e9d748ea593
3
+ metadata.gz: '09cb0161c92d483683299475241b3c36f5ed733469a6ba4400259417e2374f54'
4
+ data.tar.gz: 12c574aae35c58f4e0fff3477778751868ffd57557f3ff64f1fae7df00226263
5
5
  SHA512:
6
- metadata.gz: 3848b5a6f509e1a59628b59ec09a5b63b86da8ccd0bc87edbc5b5a7424c947a6aa998d7d3b09bd312bd795ba658650ae76c4f9fc97a912274406d51f35dd51e6
7
- data.tar.gz: ea815627b8446dfa435b0807986a9d9a5791602710d129b59b07cb89b52305e1d51df0a20c7e226cefd9cc5bf5b3e42d75805b094f803b943fe1ca7e57517a9e
6
+ metadata.gz: 9910a2a1bc1d2196771b7db54cd4a5c77a95f96e10e27123626a8ef930962ea65d6a4e5f84ce2f02cf2a2bd8b93d529b8a96bc35828ff3db20e434d0d89af901
7
+ data.tar.gz: e211c1c5dcf9dd752a2372d0354d5bfe76363b4daef4c3ac53cd3ca78c09500bb0266c943b6568bf71de7dede70fdfd2fc981d0590d49c9a483864038f111bb5
@@ -0,0 +1,24 @@
1
+ <%= pb_rails("select", props: {
2
+ label: "Favorite Food",
3
+ name: "food",
4
+ inline: true,
5
+ options: [
6
+ {
7
+ value: "1",
8
+ value_text: "Burgers",
9
+ },
10
+ {
11
+ value: "2",
12
+ value_text: "Pizza",
13
+ },
14
+ {
15
+ value: "3",
16
+ value_text: "Tacos",
17
+ },
18
+ {
19
+ value: "4",
20
+ value_text: "BBQ",
21
+ },
22
+ ],
23
+ show_arrow: true
24
+ }) %>
@@ -0,0 +1,38 @@
1
+ import React from 'react'
2
+ import { Body, Select } from '../..'
3
+
4
+ const SelectInlineShowArrow = (props) => {
5
+ const options = [
6
+ {
7
+ value: '1',
8
+ text: 'Burgers',
9
+ },
10
+ {
11
+ value: '2',
12
+ text: 'Pizza',
13
+ },
14
+ {
15
+ value: '3',
16
+ text: 'Tacos',
17
+ },
18
+ ]
19
+
20
+ return (
21
+ <div>
22
+ <Select
23
+ inline
24
+ label="Favorite Food"
25
+ name="food"
26
+ options={options}
27
+ showArrow
28
+ {...props}
29
+ />
30
+ <Body
31
+ status="negative"
32
+ {...props}
33
+ />
34
+ </div>
35
+ )
36
+ }
37
+
38
+ export default SelectInlineShowArrow
@@ -10,6 +10,7 @@ examples:
10
10
  - select_custom_select: Custom Select
11
11
  - select_error: Select w/ Error
12
12
  - select_inline: Select Inline
13
+ - select_inline_show_arrow: Select Inline (Always Show Arrow)
13
14
  - select_inline_compact: Select Inline Compact
14
15
  - select_attributes: Select W/ Attributes
15
16
  - select_multiple: Select Multiple
@@ -26,6 +27,7 @@ examples:
26
27
  - select_custom_select: Custom Select
27
28
  - select_error: Select w/ Error
28
29
  - select_inline: Select Inline
30
+ - select_inline_show_arrow: Select Inline (Always Show Arrow)
29
31
  - select_inline_compact: Select Inline Compact
30
32
  - select_multiple: Select Multiple
31
33
 
@@ -7,5 +7,6 @@ export { default as SelectCustomSelect } from './_select_custom_select.jsx'
7
7
  export { default as SelectValueTextSame } from './_select_value_text_same.jsx'
8
8
  export { default as SelectError } from './_select_error.jsx'
9
9
  export { default as SelectInline } from './_select_inline.jsx'
10
+ export { default as SelectInlineShowArrow } from './_select_inline_show_arrow.jsx'
10
11
  export { default as SelectInlineCompact } from './_select_inline_compact.jsx'
11
12
  export { default as SelectMultiple } from './_select_multiple.jsx'