playbook_ui_docs 13.15.0.pre.alpha.PLAY10851907 → 13.15.0.pre.alpha.play1141iconkitusinglibrary1956

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: 71e7c9592a23854bb6b299c649a3c6fd74358c22378453ef6a0fce3c2c80d168
4
- data.tar.gz: 666cae478c08ca60c5322d33bdf5bf27a8e66765fc022083fc363e76caa3900a
3
+ metadata.gz: 83d3ab194e511a28b55b320d42f7d48e5f11c38c69037e72ac9b5d805e87911a
4
+ data.tar.gz: 3416a84d97510485d69d37b0947aa550d1dd24dc5175d1cfac583aa195fd227c
5
5
  SHA512:
6
- metadata.gz: 4049dfa4b45e798859f7ac15076b927849dbdd75e00d411a3a6151b6947378f572eedc36fdd56792e7866554d42fde41049c7db9b3e3687f51e11b31a7794738
7
- data.tar.gz: e2346da96566505a26a91c2a5eb05e7ad2ba553689d07926eb103f67f994783401d6769db8fe754d3938091de8ac63a7b675f01533e5dc55c11ab6ae49666417
6
+ metadata.gz: 3fb7fc431704513c3b56ddf810331f60f0f14290c841b4f306004eade6808b2fa9791ae4d291c3847037942bffd1f9f0a4fa771faf6d18d4dd6f71f1bc29686a
7
+ data.tar.gz: 0b3ecd3516b436cd59e04eda31ca4348c52c668f015893ca3a57972e014a0aad410b9a8e722a8cc0b872e3aa786176a8d5b53f088e8dc95d0d69e481eea45651
@@ -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'