@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,145 +0,0 @@
1
- import Input from '.';
2
- import Grid from '../Grid';
3
- import Text from '../Text';
4
- import { Instagram, Facebook } from '@bolio-ui/icons';
5
- export default {
6
- title: 'Data Entry/Input',
7
- component: Input
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(Input, {
13
- placeholder: "Placeholder Text"
14
- })));
15
- };
16
- export var Sizes = function Sizes() {
17
- return /*#__PURE__*/React.createElement(Grid.Container, {
18
- gap: 2
19
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
20
- scale: 1 / 3,
21
- placeholder: "Scale 1/3"
22
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
23
- scale: 2 / 3,
24
- placeholder: "Scale 2/3"
25
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
26
- placeholder: "Scale 1"
27
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
28
- scale: 4 / 3,
29
- placeholder: "Scale 4/3"
30
- })));
31
- };
32
- export var SetWidth = function SetWidth() {
33
- return /*#__PURE__*/React.createElement(Grid.Container, {
34
- gap: 2
35
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
36
- placeholder: "Placeholder Text",
37
- width: "100%"
38
- })));
39
- };
40
- export var Unwritable = function Unwritable() {
41
- return /*#__PURE__*/React.createElement(Grid.Container, {
42
- gap: 2
43
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
44
- disabled: true,
45
- placeholder: "Disabled"
46
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
47
- readOnly: true,
48
- initialValue: "Read Only"
49
- })));
50
- };
51
- export var BlockLabel = function BlockLabel() {
52
- return /*#__PURE__*/React.createElement(Grid.Container, {
53
- gap: 2
54
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
55
- placeholder: "Block Label"
56
- }, /*#__PURE__*/React.createElement(Text, {
57
- h3: true
58
- }, "Block Label"))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
59
- placeholder: "Block Label"
60
- }, "Block Label")));
61
- };
62
- export var Type = function Type() {
63
- return /*#__PURE__*/React.createElement(Grid.Container, {
64
- gap: 2
65
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
66
- placeholder: "Default"
67
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
68
- type: "primary",
69
- placeholder: "Primary"
70
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
71
- type: "secondary",
72
- placeholder: "Secondary"
73
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
74
- type: "success",
75
- placeholder: "Success"
76
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
77
- type: "warning",
78
- placeholder: "Warning"
79
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
80
- type: "error",
81
- placeholder: "Error"
82
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
83
- type: "info",
84
- placeholder: "Info"
85
- })));
86
- };
87
- export var Rounded = function Rounded() {
88
- return /*#__PURE__*/React.createElement(Grid.Container, {
89
- gap: 2
90
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
91
- placeholder: "Default",
92
- rounded: true
93
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
94
- type: "primary",
95
- placeholder: "Primary",
96
- rounded: true
97
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
98
- type: "secondary",
99
- placeholder: "Secondary",
100
- rounded: true
101
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
102
- type: "success",
103
- placeholder: "Success",
104
- rounded: true
105
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
106
- type: "warning",
107
- placeholder: "Warning",
108
- rounded: true
109
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
110
- type: "error",
111
- placeholder: "Error",
112
- rounded: true
113
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
114
- type: "info",
115
- placeholder: "Info",
116
- rounded: true
117
- })));
118
- };
119
- export var Icon = function Icon() {
120
- return /*#__PURE__*/React.createElement(Grid.Container, {
121
- gap: 2
122
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
123
- icon: /*#__PURE__*/React.createElement(Instagram, null),
124
- placeholder: "Instagram"
125
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
126
- iconRight: /*#__PURE__*/React.createElement(Facebook, null),
127
- placeholder: "Facebook"
128
- })));
129
- };
130
- export var Clearable = function Clearable() {
131
- return /*#__PURE__*/React.createElement(Grid.Container, {
132
- gap: 2
133
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input, {
134
- clearable: true,
135
- initialValue: "Initial Value",
136
- placeholder: "Initial Value"
137
- })));
138
- };
139
- export var Password = function Password() {
140
- return /*#__PURE__*/React.createElement(Grid.Container, {
141
- gap: 2
142
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Input.Password, {
143
- initialValue: "123456abc"
144
- })));
145
- };
@@ -1,43 +0,0 @@
1
- import Keyboard from '.';
2
- import Grid from '../Grid';
3
- export default {
4
- title: 'Data Display/Keyboard',
5
- component: Keyboard
6
- };
7
- export var Default = function Default() {
8
- return /*#__PURE__*/React.createElement(Grid.Container, {
9
- gap: 2
10
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Keyboard, null, "C")));
11
- };
12
- export var Modifiers = function Modifiers() {
13
- return /*#__PURE__*/React.createElement(Grid.Container, {
14
- gap: 2
15
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Keyboard, {
16
- command: true,
17
- mr: "10px"
18
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Keyboard, {
19
- shift: true,
20
- mr: "10px"
21
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Keyboard, {
22
- option: true,
23
- mr: "10px"
24
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Keyboard, {
25
- ctrl: true,
26
- mr: "10px"
27
- })));
28
- };
29
- export var Combination = function Combination() {
30
- return /*#__PURE__*/React.createElement(Grid.Container, {
31
- gap: 2
32
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Keyboard, {
33
- command: true,
34
- mr: "10px"
35
- }, "f")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Keyboard, {
36
- shift: true,
37
- mr: "10px"
38
- }, "e")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Keyboard, {
39
- option: true,
40
- ctrl: true,
41
- mr: "10px"
42
- }, "b")));
43
- };
@@ -1,59 +0,0 @@
1
- import Link from '.';
2
- import Grid from '../Grid';
3
- import Text from '../Text';
4
- export default {
5
- title: 'Navigation/Link',
6
- component: Link
7
- };
8
- export var Default = function Default() {
9
- return /*#__PURE__*/React.createElement(Grid.Container, {
10
- gap: 2
11
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Link, {
12
- href: "#"
13
- }, "Is a reference to the data you can follow directly by tapping.")));
14
- };
15
- export var Highlight = function Highlight() {
16
- return /*#__PURE__*/React.createElement(Grid.Container, {
17
- gap: 2
18
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Link, {
19
- href: "#",
20
- color: true
21
- }, "Is a reference to the data you can follow directly by tapping.")));
22
- };
23
- export var WithIcon = function WithIcon() {
24
- return /*#__PURE__*/React.createElement(Grid.Container, {
25
- gap: 2
26
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Link, {
27
- href: "#",
28
- icon: true
29
- }, "Is a reference to the data you can follow directly by tapping.")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Link, {
30
- href: "#",
31
- icon: true,
32
- color: true
33
- }, "Is a reference to the data you can follow directly by tapping.")));
34
- };
35
- export var Variant = function Variant() {
36
- return /*#__PURE__*/React.createElement(Grid.Container, {
37
- gap: 2
38
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, null, /*#__PURE__*/React.createElement(Link, {
39
- href: "#"
40
- }, "Is a reference to the data you can follow directly by tapping."))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, null, /*#__PURE__*/React.createElement(Link, {
41
- href: "#",
42
- color: true
43
- }, "Is a reference to the data you can follow directly by tapping."))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, null, /*#__PURE__*/React.createElement(Link, {
44
- href: "#",
45
- underline: true
46
- }, "Is a reference to the data you can follow directly by tapping."))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, null, /*#__PURE__*/React.createElement(Link, {
47
- href: "#",
48
- color: true,
49
- underline: true
50
- }, "Is a reference to the data you can follow directly by tapping."))));
51
- };
52
- export var Block = function Block() {
53
- return /*#__PURE__*/React.createElement(Grid.Container, {
54
- gap: 2
55
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Link, {
56
- href: "#",
57
- block: true
58
- }, "Is a reference to the data you can follow directly by tapping.")));
59
- };
@@ -1,75 +0,0 @@
1
- import Loading from '.';
2
- import Grid from '../Grid';
3
- export default {
4
- title: 'Feedback/Loading',
5
- component: Loading
6
- };
7
- export var Default = function Default() {
8
- return /*#__PURE__*/React.createElement(Grid.Container, {
9
- gap: 2
10
- }, /*#__PURE__*/React.createElement(Grid, {
11
- xs: 12,
12
- md: 12
13
- }, /*#__PURE__*/React.createElement(Loading, null)));
14
- };
15
- export var WithText = function WithText() {
16
- return /*#__PURE__*/React.createElement(Grid.Container, {
17
- gap: 2
18
- }, /*#__PURE__*/React.createElement(Grid, {
19
- xs: 12,
20
- md: 12
21
- }, /*#__PURE__*/React.createElement(Loading, null, "Loading")));
22
- };
23
- export var Types = function Types() {
24
- return /*#__PURE__*/React.createElement(Grid.Container, {
25
- gap: 2
26
- }, /*#__PURE__*/React.createElement(Grid, {
27
- xs: 3,
28
- md: 3
29
- }, /*#__PURE__*/React.createElement(Loading, null)), /*#__PURE__*/React.createElement(Grid, {
30
- xs: 3,
31
- md: 3
32
- }, /*#__PURE__*/React.createElement(Loading, {
33
- type: "primary"
34
- })), /*#__PURE__*/React.createElement(Grid, {
35
- xs: 3,
36
- md: 3
37
- }, /*#__PURE__*/React.createElement(Loading, {
38
- type: "secondary"
39
- })), /*#__PURE__*/React.createElement(Grid, {
40
- xs: 3,
41
- md: 3
42
- }, /*#__PURE__*/React.createElement(Loading, {
43
- type: "success"
44
- })), /*#__PURE__*/React.createElement(Grid, {
45
- xs: 3,
46
- md: 3
47
- }, /*#__PURE__*/React.createElement(Loading, {
48
- type: "warning"
49
- })), /*#__PURE__*/React.createElement(Grid, {
50
- xs: 3,
51
- md: 3
52
- }, /*#__PURE__*/React.createElement(Loading, {
53
- type: "error"
54
- })), /*#__PURE__*/React.createElement(Grid, {
55
- xs: 3,
56
- md: 3
57
- }, /*#__PURE__*/React.createElement(Loading, {
58
- type: "info"
59
- })));
60
- };
61
- export var Spaces = function Spaces() {
62
- return /*#__PURE__*/React.createElement(Grid.Container, {
63
- gap: 2
64
- }, /*#__PURE__*/React.createElement(Grid, {
65
- xs: 6,
66
- md: 6
67
- }, /*#__PURE__*/React.createElement(Loading, {
68
- spaceRatio: 10
69
- })), /*#__PURE__*/React.createElement(Grid, {
70
- xs: 6,
71
- md: 6
72
- }, /*#__PURE__*/React.createElement(Loading, {
73
- spaceRatio: 5
74
- })));
75
- };
@@ -1,165 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
- import React, { useState } from 'react';
4
- import Modal from '.';
5
- import Button from '../Button';
6
- import Grid from '../Grid';
7
- import useModal from '../use-modal';
8
- export default {
9
- title: 'Feedback/Modal',
10
- component: Modal
11
- };
12
- export var Default = function Default() {
13
- var _useState = useState(false),
14
- _useState2 = _slicedToArray(_useState, 2),
15
- state = _useState2[0],
16
- setState = _useState2[1];
17
-
18
- var handler = function handler() {
19
- return setState(true);
20
- };
21
-
22
- return /*#__PURE__*/React.createElement(Grid.Container, {
23
- gap: 2
24
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
25
- auto: true,
26
- onClick: handler
27
- }, "Show Modal"), /*#__PURE__*/React.createElement(Modal, {
28
- visible: state,
29
- onClose: function onClose() {
30
- return setState(false);
31
- }
32
- }, /*#__PURE__*/React.createElement(Modal.Title, null, "Modal"), /*#__PURE__*/React.createElement(Modal.Subtitle, null, "Example of a modal"), /*#__PURE__*/React.createElement(Modal.Content, null, /*#__PURE__*/React.createElement("p", null, "Demo content for the modal.")), /*#__PURE__*/React.createElement(Modal.Action, {
33
- passive: true,
34
- onClick: function onClick() {
35
- return setState(false);
36
- }
37
- }, "Cancel"), /*#__PURE__*/React.createElement(Modal.Action, null, "Accepted"))));
38
- };
39
- export var UseModal = function UseModal() {
40
- var _useModal = useModal(),
41
- setVisible = _useModal.setVisible,
42
- bindings = _useModal.bindings;
43
-
44
- return /*#__PURE__*/React.createElement(Grid.Container, {
45
- gap: 2
46
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
47
- auto: true,
48
- onClick: function onClick() {
49
- return setVisible(true);
50
- }
51
- }, "Show Modal"), /*#__PURE__*/React.createElement(Modal, bindings, /*#__PURE__*/React.createElement(Modal.Title, null, "Modal"), /*#__PURE__*/React.createElement(Modal.Subtitle, null, "Example of a modal"), /*#__PURE__*/React.createElement(Modal.Content, null, /*#__PURE__*/React.createElement("p", null, "Demo content for the modal.")), /*#__PURE__*/React.createElement(Modal.Action, {
52
- passive: true,
53
- onClick: function onClick() {
54
- return setVisible(false);
55
- }
56
- }, "Cancel"), /*#__PURE__*/React.createElement(Modal.Action, null, "Accepted"))));
57
- };
58
- export var WithoutActions = function WithoutActions() {
59
- var _useState3 = useState(false),
60
- _useState4 = _slicedToArray(_useState3, 2),
61
- state = _useState4[0],
62
- setState = _useState4[1];
63
-
64
- var handler = function handler() {
65
- return setState(true);
66
- };
67
-
68
- return /*#__PURE__*/React.createElement(Grid.Container, {
69
- gap: 2
70
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
71
- auto: true,
72
- onClick: handler
73
- }, "Show Modal"), /*#__PURE__*/React.createElement(Modal, {
74
- visible: state,
75
- onClose: function onClose() {
76
- return setState(false);
77
- }
78
- }, /*#__PURE__*/React.createElement(Modal.Title, null, "Modal"), /*#__PURE__*/React.createElement(Modal.Subtitle, null, "Example of a modal"), /*#__PURE__*/React.createElement(Modal.Content, null, /*#__PURE__*/React.createElement("p", null, "Demo content for the modal.")))));
79
- };
80
- export var DisabledAction = function DisabledAction() {
81
- var _useState5 = useState(false),
82
- _useState6 = _slicedToArray(_useState5, 2),
83
- state = _useState6[0],
84
- setState = _useState6[1];
85
-
86
- var handler = function handler() {
87
- return setState(true);
88
- };
89
-
90
- var closeHandler = function closeHandler() {
91
- setState(false);
92
- console.log('closed');
93
- };
94
-
95
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
96
- auto: true,
97
- onClick: handler
98
- }, "Show Modal"), /*#__PURE__*/React.createElement(Modal, {
99
- visible: state,
100
- onClose: closeHandler
101
- }, /*#__PURE__*/React.createElement(Modal.Title, null, "Modal"), /*#__PURE__*/React.createElement(Modal.Subtitle, null, "Example of a modal"), /*#__PURE__*/React.createElement(Modal.Content, null, /*#__PURE__*/React.createElement("p", null, "Demo content for the modal.")), /*#__PURE__*/React.createElement(Modal.Action, {
102
- passive: true,
103
- onClick: function onClick() {
104
- return setState(false);
105
- }
106
- }, "Cancel"), /*#__PURE__*/React.createElement(Modal.Action, {
107
- disabled: true
108
- }, "Submit")));
109
- };
110
- export var Customized = function Customized() {
111
- var _useModal2 = useModal(),
112
- setVisible = _useModal2.setVisible,
113
- bindings = _useModal2.bindings;
114
-
115
- return /*#__PURE__*/React.createElement(Grid.Container, {
116
- gap: 2
117
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
118
- auto: true,
119
- onClick: function onClick() {
120
- return setVisible(true);
121
- }
122
- }, "Show Modal"), /*#__PURE__*/React.createElement(Modal, _extends({
123
- width: "35rem"
124
- }, bindings), /*#__PURE__*/React.createElement(Modal.Title, null, "My Favorites"), /*#__PURE__*/React.createElement(Modal.Content, null, /*#__PURE__*/React.createElement("p", null, "This is the width I want.")))));
125
- };
126
- export var Loading = function Loading() {
127
- var _useModal3 = useModal(),
128
- setVisible = _useModal3.setVisible,
129
- bindings = _useModal3.bindings;
130
-
131
- return /*#__PURE__*/React.createElement(Grid.Container, {
132
- gap: 2
133
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
134
- auto: true,
135
- onClick: function onClick() {
136
- return setVisible(true);
137
- }
138
- }, "Show Modal"), /*#__PURE__*/React.createElement(Modal, bindings, /*#__PURE__*/React.createElement(Modal.Title, null, "Modal"), /*#__PURE__*/React.createElement(Modal.Subtitle, null, "Example of a modal"), /*#__PURE__*/React.createElement(Modal.Content, null, /*#__PURE__*/React.createElement("p", null, "Demo content for the modal.")), /*#__PURE__*/React.createElement(Modal.Action, {
139
- passive: true,
140
- onClick: function onClick() {
141
- return setVisible(false);
142
- }
143
- }, "Cancel"), /*#__PURE__*/React.createElement(Modal.Action, {
144
- loading: true
145
- }, "Accepted"))));
146
- };
147
- export var Overlong = function Overlong() {
148
- var _useModal4 = useModal(),
149
- setVisible = _useModal4.setVisible,
150
- bindings = _useModal4.bindings;
151
-
152
- return /*#__PURE__*/React.createElement(Grid.Container, {
153
- gap: 2
154
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
155
- auto: true,
156
- onClick: function onClick() {
157
- return setVisible(true);
158
- }
159
- }, "Show Modal"), /*#__PURE__*/React.createElement(Modal, bindings, /*#__PURE__*/React.createElement(Modal.Title, null, "Modal"), /*#__PURE__*/React.createElement(Modal.Subtitle, null, "Modal with a very large content"), /*#__PURE__*/React.createElement(Modal.Content, null, /*#__PURE__*/React.createElement("p", null, "React has been designed from the start for gradual adoption, and you can use as little or as much React as you need. Whether you want to get a taste of React, add some interactivity to a simple HTML page, or start a complex React-powered app, the links in this section will help you get started."), /*#__PURE__*/React.createElement("p", null, "React has been designed from the start for gradual adoption, and you can use as little or as much React as you need. Whether you want to get a taste of React, add some interactivity to a simple HTML page, or start a complex React-powered app, the links in this section will help you get started."), /*#__PURE__*/React.createElement("p", null, "React has been designed from the start for gradual adoption, and you can use as little or as much React as you need. Whether you want to get a taste of React, add some interactivity to a simple HTML page, or start a complex React-powered app, the links in this section will help you get started."), /*#__PURE__*/React.createElement("p", null, "React has been designed from the start for gradual adoption, and you can use as little or as much React as you need. Whether you want to get a taste of React, add some interactivity to a simple HTML page, or start a complex React-powered app, the links in this section will help you get started."), /*#__PURE__*/React.createElement("p", null, "React has been designed from the start for gradual adoption, and you can use as little or as much React as you need. Whether you want to get a taste of React, add some interactivity to a simple HTML page, or start a complex React-powered app, the links in this section will help you get started."), /*#__PURE__*/React.createElement("p", null, "React has been designed from the start for gradual adoption, and you can use as little or as much React as you need. Whether you want to get a taste of React, add some interactivity to a simple HTML page, or start a complex React-powered app, the links in this section will help you get started."), /*#__PURE__*/React.createElement("p", null, "React has been designed from the start for gradual adoption, and you can use as little or as much React as you need. Whether you want to get a taste of React, add some interactivity to a simple HTML page, or start a complex React-powered app, the links in this section will help you get started.")), /*#__PURE__*/React.createElement(Modal.Action, {
160
- passive: true,
161
- onClick: function onClick() {
162
- return setVisible(false);
163
- }
164
- }, "Cancel"), /*#__PURE__*/React.createElement(Modal.Action, null, "Accepted"))));
165
- };
@@ -1,68 +0,0 @@
1
- import Note from '.';
2
- import Grid from '../Grid';
3
- export default {
4
- title: 'Feedback/Note',
5
- component: Note
6
- };
7
- export var Default = function Default() {
8
- return /*#__PURE__*/React.createElement(Grid.Container, {
9
- gap: 2
10
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Note, null, "Check payment pending.")));
11
- };
12
- export var Types = function Types() {
13
- return /*#__PURE__*/React.createElement(Grid.Container, {
14
- gap: 2
15
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Note, null, "Check payment pending.")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Note, {
16
- type: "primary"
17
- }, "Check payment pending.")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Note, {
18
- type: "secondary"
19
- }, "Check payment pending.")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Note, {
20
- type: "success"
21
- }, "Check payment pending.")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Note, {
22
- type: "warning"
23
- }, "Check payment pending.")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Note, {
24
- type: "error"
25
- }, "Check payment pending.")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Note, {
26
- type: "info"
27
- }, "Check payment pending.")));
28
- };
29
- export var HiddenLabel = function HiddenLabel() {
30
- return /*#__PURE__*/React.createElement(Grid.Container, {
31
- gap: 2
32
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Note, {
33
- label: false
34
- }, "Demo note!")));
35
- };
36
- export var CustomLabel = function CustomLabel() {
37
- return /*#__PURE__*/React.createElement(Grid.Container, {
38
- gap: 2
39
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Note, {
40
- label: "custom"
41
- }, "Customize a note.")));
42
- };
43
- export var FilledVariant = function FilledVariant() {
44
- return /*#__PURE__*/React.createElement(Grid.Container, {
45
- gap: 2
46
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Note, {
47
- label: "custom",
48
- filled: true
49
- }, "Customize a note.")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Note, {
50
- label: false,
51
- filled: true
52
- }, "Demo note!")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Note, {
53
- type: "success",
54
- label: "success",
55
- filled: true
56
- }, "Check payment pending.")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Note, {
57
- type: "warning",
58
- label: "warning",
59
- filled: true
60
- }, "Check payment pending.")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Note, {
61
- type: "error",
62
- label: "error",
63
- filled: true
64
- }, "Check payment pending.")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Note, {
65
- type: "secondary",
66
- filled: true
67
- }, "Check payment pending.")));
68
- };
@@ -1,54 +0,0 @@
1
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- import React, { useState } from 'react';
3
- import Page from '.';
4
- import Button from '../Button';
5
- import Grid from '../Grid';
6
- import MockPage from '../MdxWidgets/MockPage';
7
- export default {
8
- title: 'Layout/Page',
9
- component: Page
10
- };
11
- export var Default = function Default() {
12
- var Child = function Child() {
13
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h2", null, "Hi my dear!"), /*#__PURE__*/React.createElement("p", null, "This is an example to show the body of a page."));
14
- };
15
-
16
- var _useState = useState(false),
17
- _useState2 = _slicedToArray(_useState, 2),
18
- visible = _useState2[0],
19
- setVisible = _useState2[1];
20
-
21
- return /*#__PURE__*/React.createElement(Grid.Container, {
22
- gap: 2
23
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
24
- onClick: function onClick() {
25
- return setVisible(true);
26
- },
27
- auto: true
28
- }, "View Page"), /*#__PURE__*/React.createElement(MockPage, {
29
- visible: visible,
30
- onClose: function onClose() {
31
- return setVisible(false);
32
- }
33
- }, /*#__PURE__*/React.createElement(Page, null, /*#__PURE__*/React.createElement(Child, null)))));
34
- };
35
- export var Content = function Content() {
36
- var _React$useState = React.useState(false),
37
- _React$useState2 = _slicedToArray(_React$useState, 2),
38
- visible = _React$useState2[0],
39
- setVisible = _React$useState2[1];
40
-
41
- return /*#__PURE__*/React.createElement(Grid.Container, {
42
- gap: 2
43
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
44
- onClick: function onClick() {
45
- return setVisible(true);
46
- },
47
- auto: true
48
- }, "Header, Body and Footer"), /*#__PURE__*/React.createElement(MockPage, {
49
- visible: visible,
50
- onClose: function onClose() {
51
- return setVisible(false);
52
- }
53
- }, /*#__PURE__*/React.createElement(Page, null, /*#__PURE__*/React.createElement(Page.Header, null, /*#__PURE__*/React.createElement("h2", null, "Header")), /*#__PURE__*/React.createElement(Page.Content, null, /*#__PURE__*/React.createElement("h2", null, "Hi my dear!"), /*#__PURE__*/React.createElement("p", null, "This is an example to show the body of a page.")), /*#__PURE__*/React.createElement(Page.Footer, null, /*#__PURE__*/React.createElement("h2", null, "Footer"))))));
54
- };
@@ -1,49 +0,0 @@
1
- import Pagination from '.';
2
- import Grid from '../Grid';
3
- import { ChevronRight, ChevronLeft, ArrowRight, ArrowLeft, ArrowRightCircle, ArrowLeftCircle } from '@bolio-ui/icons';
4
- export default {
5
- title: 'Navigation/Pagination',
6
- component: Pagination
7
- };
8
- export var Default = function Default() {
9
- return /*#__PURE__*/React.createElement(Grid.Container, {
10
- gap: 2
11
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Pagination, {
12
- count: 20,
13
- initialPage: 3
14
- })));
15
- };
16
- export var Limit = function Limit() {
17
- return /*#__PURE__*/React.createElement(Grid.Container, {
18
- gap: 2,
19
- direction: "column"
20
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Pagination, {
21
- count: 10,
22
- limit: 10
23
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Pagination, {
24
- count: 5
25
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Pagination, {
26
- count: 10,
27
- initialPage: 6,
28
- limit: 5
29
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Pagination, {
30
- count: 10,
31
- initialPage: 6
32
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Pagination, {
33
- count: 30,
34
- initialPage: 6,
35
- limit: 10
36
- })));
37
- };
38
- export var Icon = function Icon() {
39
- return /*#__PURE__*/React.createElement(Grid.Container, {
40
- gap: 2,
41
- direction: "column"
42
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Pagination, {
43
- count: 5
44
- }, /*#__PURE__*/React.createElement(Pagination.Next, null, /*#__PURE__*/React.createElement(ChevronRight, null)), /*#__PURE__*/React.createElement(Pagination.Previous, null, /*#__PURE__*/React.createElement(ChevronLeft, null)))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Pagination, {
45
- count: 5
46
- }, /*#__PURE__*/React.createElement(Pagination.Next, null, /*#__PURE__*/React.createElement(ArrowRight, null)), /*#__PURE__*/React.createElement(Pagination.Previous, null, /*#__PURE__*/React.createElement(ArrowLeft, null)))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Pagination, {
47
- count: 5
48
- }, /*#__PURE__*/React.createElement(Pagination.Next, null, /*#__PURE__*/React.createElement(ArrowRightCircle, null)), /*#__PURE__*/React.createElement(Pagination.Previous, null, /*#__PURE__*/React.createElement(ArrowLeftCircle, null)))));
49
- };