@bolio-ui/core 1.1.7 → 1.1.8

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.
Files changed (46) hide show
  1. package/README.md +0 -4
  2. package/package.json +26 -24
  3. package/esm/Avatar/stories.js +0 -113
  4. package/esm/Badge/stories.js +0 -92
  5. package/esm/Breadcrumbs/stories.js +0 -51
  6. package/esm/Button/stories.js +0 -221
  7. package/esm/ButtonDropdown/stories.js +0 -92
  8. package/esm/ButtonGroup/stories.js +0 -66
  9. package/esm/Capacity/stories.js +0 -85
  10. package/esm/Card/stories.js +0 -175
  11. package/esm/Checkbox/stories.js +0 -84
  12. package/esm/Code/stories.js +0 -53
  13. package/esm/Collapse/stories.js +0 -48
  14. package/esm/Description/stories.js +0 -23
  15. package/esm/Divider/stories.js +0 -41
  16. package/esm/Dot/stories.js +0 -40
  17. package/esm/Drawer/stories.js +0 -79
  18. package/esm/Fieldset/stories.js +0 -72
  19. package/esm/Grid/stories.js +0 -212
  20. package/esm/Icon/stories.js +0 -36
  21. package/esm/Image/stories.js +0 -73
  22. package/esm/Input/stories.js +0 -145
  23. package/esm/Keyboard/stories.js +0 -43
  24. package/esm/Link/stories.js +0 -59
  25. package/esm/Loading/stories.js +0 -75
  26. package/esm/Modal/stories.js +0 -165
  27. package/esm/Note/stories.js +0 -68
  28. package/esm/Page/stories.js +0 -54
  29. package/esm/Pagination/stories.js +0 -49
  30. package/esm/Popover/stories.js +0 -84
  31. package/esm/Progress/stories.js +0 -114
  32. package/esm/Radio/stories.js +0 -98
  33. package/esm/Rating/stories.js +0 -72
  34. package/esm/Select/stories.js +0 -239
  35. package/esm/Slider/stories.js +0 -134
  36. package/esm/Snippet/stories.js +0 -177
  37. package/esm/Spacer/stories.js +0 -54
  38. package/esm/Spinner/stories.js +0 -13
  39. package/esm/Table/stories.js +0 -269
  40. package/esm/Tabs/stories.js +0 -92
  41. package/esm/Tag/stories.js +0 -58
  42. package/esm/Text/stories.js +0 -104
  43. package/esm/Textarea/stories.js +0 -104
  44. package/esm/Toggle/stories.js +0 -55
  45. package/esm/Tooltip/stories.js +0 -183
  46. package/examples/create-redwoodjs/.redwood/README.md +0 -44
@@ -1,84 +0,0 @@
1
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- import React, { useState } from 'react';
3
- import Popover from '.';
4
- import Link from '../Link';
5
- import Spacer from '../Spacer';
6
- import Grid from '../Grid';
7
- export default {
8
- title: 'Data Display/Popover',
9
- component: Popover
10
- };
11
- export var Default = function Default() {
12
- var content = function content() {
13
- return /*#__PURE__*/React.createElement("div", {
14
- style: {
15
- padding: '0 10px'
16
- }
17
- }, /*#__PURE__*/React.createElement(Link, {
18
- href: "#"
19
- }, "A hyperlink"), /*#__PURE__*/React.createElement(Spacer, {
20
- h: 0.5
21
- }), /*#__PURE__*/React.createElement(Link, {
22
- color: true,
23
- href: "#"
24
- }, "External link"));
25
- };
26
-
27
- return /*#__PURE__*/React.createElement(Grid.Container, {
28
- gap: 2
29
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Popover, {
30
- content: content
31
- }, "Menu")));
32
- };
33
- export var PresetItem = function PresetItem() {
34
- var content = function content() {
35
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popover.Item, {
36
- title: true
37
- }, /*#__PURE__*/React.createElement("span", null, "User Settings")), /*#__PURE__*/React.createElement(Popover.Item, null, /*#__PURE__*/React.createElement(Link, {
38
- href: "#"
39
- }, "A hyperlink")), /*#__PURE__*/React.createElement(Popover.Item, null, /*#__PURE__*/React.createElement(Link, {
40
- color: true,
41
- href: "#"
42
- }, "A hyperlink for edit profile")), /*#__PURE__*/React.createElement(Popover.Item, {
43
- line: true
44
- }), /*#__PURE__*/React.createElement(Popover.Item, null, /*#__PURE__*/React.createElement("span", null, "Command-Line")));
45
- };
46
-
47
- return /*#__PURE__*/React.createElement(Grid.Container, {
48
- gap: 2
49
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Popover, {
50
- content: content
51
- }, "Menu")));
52
- };
53
- export var CloseManual = function CloseManual() {
54
- var _useState = useState(false),
55
- _useState2 = _slicedToArray(_useState, 2),
56
- visible = _useState2[0],
57
- setVisible = _useState2[1];
58
-
59
- var changeHandler = function changeHandler(next) {
60
- setVisible(next);
61
- };
62
-
63
- var content = function content() {
64
- return /*#__PURE__*/React.createElement("div", {
65
- style: {
66
- padding: '0 10px'
67
- }
68
- }, /*#__PURE__*/React.createElement("span", {
69
- onClick: function onClick() {
70
- return setVisible(false);
71
- }
72
- }, "Click to close"), /*#__PURE__*/React.createElement(Spacer, {
73
- h: 0.5
74
- }), /*#__PURE__*/React.createElement("span", null, "Nothing"));
75
- };
76
-
77
- return /*#__PURE__*/React.createElement(Grid.Container, {
78
- gap: 2
79
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Popover, {
80
- content: content,
81
- visible: visible,
82
- onVisibleChange: changeHandler
83
- }, "Menu")));
84
- };
@@ -1,114 +0,0 @@
1
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- import React, { useState } from 'react';
3
- import useTheme from '../use-theme';
4
- import Progress from '.';
5
- import Grid from '../Grid';
6
- import Button from '../Button';
7
- export default {
8
- title: 'Feedback/Progress',
9
- component: Progress
10
- };
11
- export var Default = function Default() {
12
- return /*#__PURE__*/React.createElement(Grid.Container, {
13
- gap: 2
14
- }, /*#__PURE__*/React.createElement(Grid, {
15
- xs: 12,
16
- md: 12
17
- }, /*#__PURE__*/React.createElement(Progress, {
18
- value: 50
19
- })));
20
- };
21
- export var CustomMax = function CustomMax() {
22
- return /*#__PURE__*/React.createElement(Grid.Container, {
23
- gap: 2
24
- }, /*#__PURE__*/React.createElement(Grid, {
25
- xs: 12,
26
- md: 12
27
- }, /*#__PURE__*/React.createElement(Progress, {
28
- value: 45,
29
- max: 50
30
- })));
31
- };
32
- export var DynamicColors = function DynamicColors() {
33
- var theme = useTheme();
34
-
35
- var _useState = useState(20),
36
- _useState2 = _slicedToArray(_useState, 2),
37
- value = _useState2[0],
38
- setValue = _useState2[1];
39
-
40
- var colors = {
41
- 20: theme.palette.error,
42
- 40: theme.palette.warning,
43
- 60: theme.palette.success,
44
- 80: '#000'
45
- };
46
- return /*#__PURE__*/React.createElement(Grid.Container, {
47
- gap: 2
48
- }, /*#__PURE__*/React.createElement(Grid, {
49
- xs: 12,
50
- md: 12
51
- }, /*#__PURE__*/React.createElement(Progress, {
52
- value: value,
53
- colors: colors
54
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
55
- onClick: function onClick() {
56
- return setValue(value + 20);
57
- },
58
- auto: true,
59
- scale: 0.5
60
- }, "Add")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
61
- onClick: function onClick() {
62
- return setValue(20);
63
- },
64
- auto: true,
65
- scale: 0.5,
66
- type: "error"
67
- }, "Remove")));
68
- };
69
- export var Type = function Type() {
70
- return /*#__PURE__*/React.createElement(Grid.Container, {
71
- gap: 2
72
- }, /*#__PURE__*/React.createElement(Grid, {
73
- xs: 12,
74
- md: 12
75
- }, /*#__PURE__*/React.createElement(Progress, {
76
- value: 3
77
- })), /*#__PURE__*/React.createElement(Grid, {
78
- xs: 12,
79
- md: 12
80
- }, /*#__PURE__*/React.createElement(Progress, {
81
- type: "primary",
82
- value: 74
83
- })), /*#__PURE__*/React.createElement(Grid, {
84
- xs: 12,
85
- md: 12
86
- }, /*#__PURE__*/React.createElement(Progress, {
87
- type: "secondary",
88
- value: 10
89
- })), /*#__PURE__*/React.createElement(Grid, {
90
- xs: 12,
91
- md: 12
92
- }, /*#__PURE__*/React.createElement(Progress, {
93
- type: "success",
94
- value: 45
95
- })), /*#__PURE__*/React.createElement(Grid, {
96
- xs: 12,
97
- md: 12
98
- }, /*#__PURE__*/React.createElement(Progress, {
99
- type: "warning",
100
- value: 100
101
- })), /*#__PURE__*/React.createElement(Grid, {
102
- xs: 12,
103
- md: 12
104
- }, /*#__PURE__*/React.createElement(Progress, {
105
- type: "error",
106
- value: 21
107
- })), /*#__PURE__*/React.createElement(Grid, {
108
- xs: 12,
109
- md: 12
110
- }, /*#__PURE__*/React.createElement(Progress, {
111
- type: "info",
112
- value: 34
113
- })));
114
- };
@@ -1,98 +0,0 @@
1
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- import React, { useState } from 'react';
3
- import Radio from '.';
4
- import Grid from '../Grid';
5
- export default {
6
- title: 'Data Entry/Radio',
7
- component: Radio
8
- };
9
- export var Default = function Default() {
10
- return /*#__PURE__*/React.createElement(Grid.Container, {
11
- gap: 2
12
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Radio, {
13
- checked: false
14
- }, "Option 1")));
15
- };
16
- export var Text = function Text() {
17
- var _useState = useState('1'),
18
- _useState2 = _slicedToArray(_useState, 2),
19
- state = _useState2[0],
20
- setState = _useState2[1];
21
-
22
- var handler = function handler(val) {
23
- setState(val);
24
- console.log(val);
25
- };
26
-
27
- return /*#__PURE__*/React.createElement(Grid.Container, {
28
- gap: 2
29
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Radio.Group, {
30
- value: state,
31
- onChange: handler
32
- }, /*#__PURE__*/React.createElement(Radio, {
33
- value: "1"
34
- }, "Option 1"), /*#__PURE__*/React.createElement(Radio, {
35
- value: "2"
36
- }, "Option 2"))));
37
- };
38
- export var Type = function Type() {
39
- return /*#__PURE__*/React.createElement(Grid.Container, {
40
- gap: 2
41
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Radio, {
42
- checked: false
43
- }, "Default")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Radio, {
44
- checked: false,
45
- type: "primary"
46
- }, "Primary")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Radio, {
47
- checked: false,
48
- type: "secondary"
49
- }, "Secondary")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Radio, {
50
- checked: false,
51
- type: "success"
52
- }, "Success")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Radio, {
53
- checked: false,
54
- type: "warning"
55
- }, "Warning")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Radio, {
56
- checked: false,
57
- type: "error"
58
- }, "Error")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Radio, {
59
- checked: false,
60
- type: "info"
61
- }, "Info")));
62
- };
63
- export var Description = function Description() {
64
- return /*#__PURE__*/React.createElement(Grid.Container, {
65
- gap: 2
66
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Radio.Group, {
67
- value: "1",
68
- onChange: function onChange(val) {
69
- return console.log(val);
70
- }
71
- }, /*#__PURE__*/React.createElement(Radio, {
72
- value: "1"
73
- }, "Option 1", /*#__PURE__*/React.createElement(Radio.Description, null, "Example description for Option 1")))));
74
- };
75
- export var Disabled = function Disabled() {
76
- return /*#__PURE__*/React.createElement(Grid.Container, {
77
- gap: 2
78
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Radio.Group, {
79
- value: "1",
80
- disabled: true
81
- }, /*#__PURE__*/React.createElement(Radio, {
82
- value: "1"
83
- }, "Option 1"), /*#__PURE__*/React.createElement(Radio, {
84
- value: "2"
85
- }, "Option 2"))));
86
- };
87
- export var Row = function Row() {
88
- return /*#__PURE__*/React.createElement(Grid.Container, {
89
- gap: 2
90
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Radio.Group, {
91
- value: "1",
92
- useRow: true
93
- }, /*#__PURE__*/React.createElement(Radio, {
94
- value: "1"
95
- }, "Option 1", /*#__PURE__*/React.createElement(Radio.Desc, null, "Description for Option1")), /*#__PURE__*/React.createElement(Radio, {
96
- value: "2"
97
- }, "Option 2", /*#__PURE__*/React.createElement(Radio.Desc, null, "Description for Option2")))));
98
- };
@@ -1,72 +0,0 @@
1
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- import React, { useState } from 'react';
3
- import Rating from '.';
4
- import Grid from '../Grid';
5
- import { Umbrella, Zap } from '@bolio-ui/icons';
6
- export default {
7
- title: 'Feedback/Rating',
8
- component: Rating
9
- };
10
- export var Default = function Default() {
11
- var _useState = useState(1),
12
- _useState2 = _slicedToArray(_useState, 2),
13
- value = _useState2[0],
14
- setValue = _useState2[1];
15
-
16
- var _useState3 = useState(false),
17
- _useState4 = _slicedToArray(_useState3, 2),
18
- locked = _useState4[0],
19
- setLocked = _useState4[1];
20
-
21
- return /*#__PURE__*/React.createElement(Grid.Container, {
22
- gap: 2
23
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Rating, {
24
- onLockedChange: setLocked,
25
- value: value,
26
- onValueChange: setValue
27
- })), /*#__PURE__*/React.createElement(Grid, null, "Selection: ", value), /*#__PURE__*/React.createElement(Grid, null, "Locked: ", locked ? 'true' : 'false'));
28
- };
29
- export var Types = function Types() {
30
- return /*#__PURE__*/React.createElement(Grid.Container, {
31
- gap: 2
32
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Rating, null)), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Rating, {
33
- type: "primary"
34
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Rating, {
35
- type: "secondary"
36
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Rating, {
37
- type: "success"
38
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Rating, {
39
- type: "error"
40
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Rating, {
41
- type: "warning"
42
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Rating, {
43
- type: "info"
44
- })));
45
- };
46
- export var CustomAmount = function CustomAmount() {
47
- return /*#__PURE__*/React.createElement(Grid.Container, {
48
- gap: 2
49
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Rating, {
50
- count: 2
51
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Rating, {
52
- value: 3,
53
- count: 6
54
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Rating, {
55
- value: 4,
56
- count: 8
57
- })));
58
- };
59
- export var Icon = function Icon() {
60
- return /*#__PURE__*/React.createElement(Grid.Container, {
61
- gap: 2
62
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Rating, {
63
- value: 4,
64
- count: 6,
65
- type: "success",
66
- icon: /*#__PURE__*/React.createElement(Umbrella, null)
67
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Rating, {
68
- count: 7,
69
- type: "error",
70
- icon: /*#__PURE__*/React.createElement(Zap, null)
71
- })));
72
- };
@@ -1,239 +0,0 @@
1
- import Select from '.';
2
- import Grid from '../Grid';
3
- import Code from '../Code';
4
- export default {
5
- title: 'Data Entry/Select',
6
- component: Select
7
- };
8
- export var Default = function Default() {
9
- var handler = function handler(val) {
10
- return console.log(val);
11
- };
12
-
13
- return /*#__PURE__*/React.createElement(Grid.Container, {
14
- gap: 2
15
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Select, {
16
- placeholder: "Select one",
17
- onChange: handler
18
- }, /*#__PURE__*/React.createElement(Select.Option, {
19
- value: "1"
20
- }, "Value 1"), /*#__PURE__*/React.createElement(Select.Option, {
21
- value: "2"
22
- }, "Value 2"))));
23
- };
24
- export var Types = function Types() {
25
- return /*#__PURE__*/React.createElement(Grid.Container, {
26
- gap: 2
27
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Select, {
28
- placeholder: "Default"
29
- }, /*#__PURE__*/React.createElement(Select.Option, {
30
- value: "1"
31
- }, "Value 1"), /*#__PURE__*/React.createElement(Select.Option, {
32
- value: "2"
33
- }, "Value 2"))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Select, {
34
- type: "primary",
35
- initialValue: "1"
36
- }, /*#__PURE__*/React.createElement(Select.Option, {
37
- value: "1"
38
- }, "Value 1"), /*#__PURE__*/React.createElement(Select.Option, {
39
- value: "2"
40
- }, "Value 2"))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Select, {
41
- type: "secondary",
42
- initialValue: "2"
43
- }, /*#__PURE__*/React.createElement(Select.Option, {
44
- value: "1"
45
- }, "Value 1"), /*#__PURE__*/React.createElement(Select.Option, {
46
- value: "2"
47
- }, "Value 2"))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Select, {
48
- type: "success",
49
- initialValue: "1"
50
- }, /*#__PURE__*/React.createElement(Select.Option, {
51
- value: "1"
52
- }, "Value 1"), /*#__PURE__*/React.createElement(Select.Option, {
53
- value: "2"
54
- }, "Value 2"))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Select, {
55
- type: "warning",
56
- initialValue: "2"
57
- }, /*#__PURE__*/React.createElement(Select.Option, {
58
- value: "1"
59
- }, "Value 1"), /*#__PURE__*/React.createElement(Select.Option, {
60
- value: "2"
61
- }, "Value 2"))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Select, {
62
- type: "error",
63
- initialValue: "1"
64
- }, /*#__PURE__*/React.createElement(Select.Option, {
65
- value: "1"
66
- }, "Value 1"), /*#__PURE__*/React.createElement(Select.Option, {
67
- value: "2"
68
- }, "Value 2"))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Select, {
69
- type: "info",
70
- initialValue: "2"
71
- }, /*#__PURE__*/React.createElement(Select.Option, {
72
- value: "1"
73
- }, "Value 1"), /*#__PURE__*/React.createElement(Select.Option, {
74
- value: "2"
75
- }, "Value 2"))));
76
- };
77
- export var Disable = function Disable() {
78
- return /*#__PURE__*/React.createElement(Grid.Container, {
79
- gap: 2
80
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Select, {
81
- placeholder: "Select one",
82
- disabled: true
83
- }, /*#__PURE__*/React.createElement(Select.Option, {
84
- value: "1"
85
- }, "Value 1"), /*#__PURE__*/React.createElement(Select.Option, {
86
- value: "2"
87
- }, "Value 2"))));
88
- };
89
- export var DisabledOption = function DisabledOption() {
90
- return /*#__PURE__*/React.createElement(Grid.Container, {
91
- gap: 2
92
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Select, {
93
- placeholder: "Select one"
94
- }, /*#__PURE__*/React.createElement(Select.Option, {
95
- value: "1",
96
- disabled: true
97
- }, "Value 1"), /*#__PURE__*/React.createElement(Select.Option, {
98
- value: "2"
99
- }, "Value 2"))));
100
- };
101
- export var WithoutIcon = function WithoutIcon() {
102
- return /*#__PURE__*/React.createElement(Grid.Container, {
103
- gap: 2
104
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Select, {
105
- placeholder: "Select one",
106
- pure: true
107
- }, /*#__PURE__*/React.createElement(Select.Option, {
108
- value: "1"
109
- }, "Value 1"), /*#__PURE__*/React.createElement(Select.Option, {
110
- value: "2"
111
- }, "Value 2"))));
112
- };
113
- export var Labels = function Labels() {
114
- return /*#__PURE__*/React.createElement(Grid.Container, {
115
- gap: 2
116
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Select, {
117
- placeholder: "Technologies"
118
- }, /*#__PURE__*/React.createElement(Select.Option, {
119
- label: true
120
- }, "JavaScript"), /*#__PURE__*/React.createElement(Select.Option, {
121
- value: "react"
122
- }, "React"), /*#__PURE__*/React.createElement(Select.Option, {
123
- value: "angular"
124
- }, "Angular"), /*#__PURE__*/React.createElement(Select.Option, {
125
- label: true
126
- }, "Ruby"), /*#__PURE__*/React.createElement(Select.Option, {
127
- value: "rails"
128
- }, "Rails"), /*#__PURE__*/React.createElement(Select.Option, {
129
- value: "php"
130
- }, "PHP"))));
131
- };
132
- export var Divider = function Divider() {
133
- return /*#__PURE__*/React.createElement(Grid.Container, {
134
- gap: 2
135
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Select, {
136
- placeholder: "Technologies"
137
- }, /*#__PURE__*/React.createElement(Select.Option, {
138
- value: "react"
139
- }, "React"), /*#__PURE__*/React.createElement(Select.Option, {
140
- value: "angular"
141
- }, "Angular"), /*#__PURE__*/React.createElement(Select.Option, {
142
- divider: true
143
- }), /*#__PURE__*/React.createElement(Select.Option, {
144
- value: "rails"
145
- }, "Rails"), /*#__PURE__*/React.createElement(Select.Option, {
146
- value: "php"
147
- }, "PHP"))));
148
- };
149
- export var Multiple = function Multiple() {
150
- return /*#__PURE__*/React.createElement(Grid.Container, {
151
- gap: 2
152
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Select, {
153
- placeholder: "Technologies",
154
- multiple: true,
155
- width: "200px",
156
- initialValue: ['1', '3', '4', '6']
157
- }, /*#__PURE__*/React.createElement(Select.Option, {
158
- value: "1"
159
- }, "React"), /*#__PURE__*/React.createElement(Select.Option, {
160
- value: "2"
161
- }, "Angular"), /*#__PURE__*/React.createElement(Select.Option, {
162
- value: "3"
163
- }, "Vue"), /*#__PURE__*/React.createElement(Select.Option, {
164
- divider: true
165
- }), /*#__PURE__*/React.createElement(Select.Option, {
166
- value: "4"
167
- }, "Rails"), /*#__PURE__*/React.createElement(Select.Option, {
168
- value: "5"
169
- }, "PHP"), /*#__PURE__*/React.createElement(Select.Option, {
170
- divider: true
171
- }), /*#__PURE__*/React.createElement(Select.Option, {
172
- value: "6"
173
- }, "Express"), /*#__PURE__*/React.createElement(Select.Option, {
174
- value: "7"
175
- }, "Koa"))));
176
- };
177
- export var MultipleWithoutClear = function MultipleWithoutClear() {
178
- return /*#__PURE__*/React.createElement(Grid.Container, {
179
- gap: 2
180
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Select, {
181
- placeholder: "Technologies",
182
- multiple: true,
183
- width: "200px",
184
- clearable: false,
185
- initialValue: ['1', '3', '4', '6']
186
- }, /*#__PURE__*/React.createElement(Select.Option, {
187
- value: "1"
188
- }, "React"), /*#__PURE__*/React.createElement(Select.Option, {
189
- value: "2"
190
- }, "Angular"), /*#__PURE__*/React.createElement(Select.Option, {
191
- value: "3"
192
- }, "Vue"), /*#__PURE__*/React.createElement(Select.Option, {
193
- divider: true
194
- }), /*#__PURE__*/React.createElement(Select.Option, {
195
- value: "4"
196
- }, "Rails"), /*#__PURE__*/React.createElement(Select.Option, {
197
- value: "5"
198
- }, "PHP"), /*#__PURE__*/React.createElement(Select.Option, {
199
- divider: true
200
- }), /*#__PURE__*/React.createElement(Select.Option, {
201
- value: "6"
202
- }, "Express"), /*#__PURE__*/React.createElement(Select.Option, {
203
- value: "7"
204
- }, "Koa"))));
205
- };
206
- export var Component = function Component() {
207
- return /*#__PURE__*/React.createElement(Grid.Container, {
208
- gap: 2
209
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Select, {
210
- placeholder: "Value one",
211
- initialValue: "1"
212
- }, /*#__PURE__*/React.createElement(Select.Option, {
213
- value: "1"
214
- }, /*#__PURE__*/React.createElement(Code, null, "TypeScript")), /*#__PURE__*/React.createElement(Select.Option, {
215
- value: "2"
216
- }, /*#__PURE__*/React.createElement(Code, null, "JavaScript")))));
217
- };
218
- export var OverWidth = function OverWidth() {
219
- return /*#__PURE__*/React.createElement(Grid.Container, {
220
- gap: 2
221
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Select, {
222
- placeholder: "Choose one",
223
- value: "1",
224
- width: "150px"
225
- }, /*#__PURE__*/React.createElement(Select.Option, {
226
- value: "1"
227
- }, "Truncate an overly long string"), /*#__PURE__*/React.createElement(Select.Option, {
228
- value: "2"
229
- }, "Option 2"))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Select, {
230
- placeholder: "Choose one",
231
- value: "1",
232
- width: "150px",
233
- disableMatchWidth: true
234
- }, /*#__PURE__*/React.createElement(Select.Option, {
235
- value: "1"
236
- }, "Autoscale option width when text is too long"), /*#__PURE__*/React.createElement(Select.Option, {
237
- value: "2"
238
- }, "Option 2"))));
239
- };