@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,41 +0,0 @@
1
- import Divider from '.';
2
- import Text from '../Text';
3
- import Grid from '../Grid';
4
- export default {
5
- title: 'Others/Divider',
6
- component: Divider
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(Text, null, "React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes."), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(Text, null, "Declarative views make your code more predictable and easier to debug.")));
12
- };
13
- export var WithText = function WithText() {
14
- return /*#__PURE__*/React.createElement(Grid.Container, {
15
- gap: 2
16
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, null, "React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes."), /*#__PURE__*/React.createElement(Divider, null, "A Simple Component"), /*#__PURE__*/React.createElement(Text, null, "React components implement a render() method that takes input data and returns what to display. This example uses an XML-like syntax called JSX. Input data that is passed into the component can be accessed by render() via this.props."), /*#__PURE__*/React.createElement(Divider, {
17
- align: "start"
18
- }, "A Stateful Component"), /*#__PURE__*/React.createElement(Text, null, "In addition to taking input data (accessed via this.props), a component can maintain internal state data (accessed via this.state). When a component\u2019s state data changes, the rendered markup will be updated by re-invoking render().")));
19
- };
20
- export var Space = function Space() {
21
- return /*#__PURE__*/React.createElement(Grid.Container, {
22
- gap: 2
23
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, null, "React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes."), /*#__PURE__*/React.createElement(Divider, {
24
- h: 5
25
- }, "A Simple Component"), /*#__PURE__*/React.createElement(Text, null, "React components implement a render() method that takes input data and returns what to display. This example uses an XML-like syntax called JSX. Input data that is passed into the component can be accessed by render() via this.props."), /*#__PURE__*/React.createElement(Divider, {
26
- my: 5,
27
- h: 5
28
- }, "A Stateful Component"), /*#__PURE__*/React.createElement(Text, null, "In addition to taking input data (accessed via this.props), a component can maintain internal state data (accessed via this.state). When a component\u2019s state data changes, the rendered markup will be updated by re-invoking render().")));
29
- };
30
- export var Types = function Types() {
31
- return /*#__PURE__*/React.createElement(Grid.Container, {
32
- gap: 2
33
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, null, "React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes."), /*#__PURE__*/React.createElement(Divider, {
34
- h: 3,
35
- type: "success"
36
- }, "A Simple Component"), /*#__PURE__*/React.createElement(Text, null, "React components implement a render() method that takes input data and returns what to display. This example uses an XML-like syntax called JSX. Input data that is passed into the component can be accessed by render() via this.props."), /*#__PURE__*/React.createElement(Divider, {
37
- h: 3,
38
- my: 3,
39
- type: "warning"
40
- }, "A Stateful Component"), /*#__PURE__*/React.createElement(Text, null, "In addition to taking input data (accessed via this.props), a component can maintain internal state data (accessed via this.state). When a component\u2019s state data changes, the rendered markup will be updated by re-invoking render().")));
41
- };
@@ -1,40 +0,0 @@
1
- import Dot from '.';
2
- import Grid from '../Grid';
3
- export default {
4
- title: 'Data Display/Dot',
5
- component: Dot
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(Dot, null)), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Dot, {
11
- type: "primary"
12
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Dot, {
13
- type: "secondary"
14
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Dot, {
15
- type: "success"
16
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Dot, {
17
- type: "warning"
18
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Dot, {
19
- type: "error"
20
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Dot, {
21
- type: "info"
22
- })));
23
- };
24
- export var Text = function Text() {
25
- return /*#__PURE__*/React.createElement(Grid.Container, {
26
- gap: 2
27
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Dot, null, "Canceled")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Dot, {
28
- type: "primary"
29
- }, "Primary")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Dot, {
30
- type: "secondary"
31
- }, "Secondary")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Dot, {
32
- type: "success"
33
- }, "Ready")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Dot, {
34
- type: "warning"
35
- }, "Warning")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Dot, {
36
- type: "error"
37
- }, "Error")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Dot, {
38
- type: "info"
39
- }, "Info")));
40
- };
@@ -1,79 +0,0 @@
1
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- import React, { useState } from 'react';
3
- import Drawer from '.';
4
- import Button from '../Button';
5
- import Grid from '../Grid';
6
- export default {
7
- title: 'Feedback/Drawer',
8
- component: Drawer
9
- };
10
- export var Default = function Default() {
11
- var _useState = useState(false),
12
- _useState2 = _slicedToArray(_useState, 2),
13
- state = _useState2[0],
14
- setState = _useState2[1];
15
-
16
- return /*#__PURE__*/React.createElement(Grid.Container, {
17
- gap: 2
18
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
19
- auto: true,
20
- onClick: function onClick() {
21
- return setState(true);
22
- }
23
- }, "Show Drawer"), /*#__PURE__*/React.createElement(Drawer, {
24
- visible: state,
25
- onClose: function onClose() {
26
- return setState(false);
27
- },
28
- placement: "right"
29
- }, /*#__PURE__*/React.createElement(Drawer.Title, null, "Drawer"), /*#__PURE__*/React.createElement(Drawer.Subtitle, null, "Example of a drawer"), /*#__PURE__*/React.createElement(Drawer.Content, null, /*#__PURE__*/React.createElement("p", null, "Demo content for the drawer.")))));
30
- };
31
- export var Placement = function Placement() {
32
- var _React$useState = React.useState(false),
33
- _React$useState2 = _slicedToArray(_React$useState, 2),
34
- state = _React$useState2[0],
35
- setState = _React$useState2[1];
36
-
37
- var _React$useState3 = React.useState('bottom'),
38
- _React$useState4 = _slicedToArray(_React$useState3, 2),
39
- placement = _React$useState4[0],
40
- setPlacement = _React$useState4[1];
41
-
42
- var open = function open(text) {
43
- setPlacement(text);
44
- setState(true);
45
- };
46
-
47
- return /*#__PURE__*/React.createElement(Grid.Container, {
48
- gap: 2
49
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
50
- auto: true,
51
- onClick: function onClick() {
52
- return open('top');
53
- },
54
- mr: "10px"
55
- }, "Top")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
56
- auto: true,
57
- onClick: function onClick() {
58
- return open('right');
59
- },
60
- mr: "10px"
61
- }, "Right")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
62
- auto: true,
63
- onClick: function onClick() {
64
- return open('bottom');
65
- },
66
- mr: "10px"
67
- }, "Bottom")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
68
- auto: true,
69
- onClick: function onClick() {
70
- return open('left');
71
- }
72
- }, "Left")), /*#__PURE__*/React.createElement(Drawer, {
73
- visible: state,
74
- onClose: function onClose() {
75
- return setState(false);
76
- },
77
- placement: placement
78
- }, /*#__PURE__*/React.createElement(Drawer.Title, null, "Drawer"), /*#__PURE__*/React.createElement(Drawer.Subtitle, null, "Example of a drawer"), /*#__PURE__*/React.createElement(Drawer.Content, null, /*#__PURE__*/React.createElement("p", null, "Demo content for the drawer."))));
79
- };
@@ -1,72 +0,0 @@
1
- import Fieldset from '.';
2
- import Button from '../Button';
3
- import Text from '../Text';
4
- import Divider from '../Divider';
5
- import Grid from '../Grid';
6
- export default {
7
- title: 'Surface/Fieldset',
8
- component: Fieldset
9
- };
10
- export var Default = function Default() {
11
- return /*#__PURE__*/React.createElement(Grid.Container, {
12
- gap: 2
13
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Fieldset, null, /*#__PURE__*/React.createElement(Fieldset.Title, null, "Try React "), /*#__PURE__*/React.createElement(Fieldset.Subtitle, 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(Fieldset.Footer, null, "Try React", /*#__PURE__*/React.createElement(Button, {
14
- auto: true,
15
- scale: 1 / 3,
16
- font: "12px"
17
- }, "Confirm")))));
18
- };
19
- export var CustomText = function CustomText() {
20
- return /*#__PURE__*/React.createElement(Grid.Container, {
21
- gap: 2
22
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Fieldset, null, /*#__PURE__*/React.createElement(Fieldset.Title, null, "Add React to a Website "), /*#__PURE__*/React.createElement(Fieldset.Subtitle, null, "You can add React to an HTML page in one minute. You can then either gradually expand its presence, or keep it contained to a few dynamic widgets"), /*#__PURE__*/React.createElement(Fieldset.Footer, null, /*#__PURE__*/React.createElement(Text, {
23
- type: "error"
24
- }, "An error has occurred."), /*#__PURE__*/React.createElement(Button, {
25
- auto: true,
26
- scale: 1 / 3,
27
- type: "error",
28
- font: "12px"
29
- }, "Cancel")))));
30
- };
31
- export var Tabs = function Tabs() {
32
- var handler = function handler(v) {
33
- return console.log(v);
34
- };
35
-
36
- return /*#__PURE__*/React.createElement(Grid.Container, {
37
- gap: 2
38
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Fieldset.Group, {
39
- value: "create new react app",
40
- onChange: handler
41
- }, /*#__PURE__*/React.createElement(Fieldset, {
42
- label: "create new react app"
43
- }, /*#__PURE__*/React.createElement(Fieldset.Title, null, "Create a New React App"), /*#__PURE__*/React.createElement(Fieldset.Subtitle, null, "When starting a React project, a simple HTML page with script tags might still be the best option. It only takes a minute to set up!"), /*#__PURE__*/React.createElement(Fieldset.Footer, null, "Create a New React App", /*#__PURE__*/React.createElement(Button, {
44
- auto: true,
45
- scale: 1 / 3,
46
- font: "12px"
47
- }, "Functions"))), /*#__PURE__*/React.createElement(Fieldset, {
48
- label: "learn react"
49
- }, /*#__PURE__*/React.createElement(Fieldset.Title, null, "Learn React"), /*#__PURE__*/React.createElement(Fieldset.Subtitle, null, "People come to React from different backgrounds and with different learning styles. Whether you prefer a more theoretical or a practical approach, we hope you\u2019ll find this section helpful."), /*#__PURE__*/React.createElement(Fieldset.Footer, null, "Learn React", /*#__PURE__*/React.createElement(Button, {
50
- auto: true,
51
- scale: 1 / 3,
52
- font: "12px"
53
- }, "Functions"))), /*#__PURE__*/React.createElement(Fieldset, {
54
- label: "first examples"
55
- }, /*#__PURE__*/React.createElement(Fieldset.Title, null, "First Examples"), /*#__PURE__*/React.createElement(Fieldset.Subtitle, null, "The React homepage contains a few small React examples with a live editor. Even if you don\u2019t know anything about React yet, try changing their code and see how it affects the result."), /*#__PURE__*/React.createElement(Fieldset.Footer, null, "First Examples", /*#__PURE__*/React.createElement(Button, {
56
- auto: true,
57
- scale: 1 / 3,
58
- font: "12px"
59
- }, "Functions"))))));
60
- };
61
- export var WithDivider = function WithDivider() {
62
- return /*#__PURE__*/React.createElement(Grid.Container, {
63
- gap: 2
64
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Fieldset, null, /*#__PURE__*/React.createElement(Fieldset.Content, {
65
- style: {
66
- paddingTop: '10pt',
67
- paddingBottom: '10pt'
68
- }
69
- }, /*#__PURE__*/React.createElement("h4", null, "React")), /*#__PURE__*/React.createElement(Divider, {
70
- my: 0
71
- }), /*#__PURE__*/React.createElement(Fieldset.Content, null, /*#__PURE__*/React.createElement(Fieldset.Title, null, "For Beginners"), /*#__PURE__*/React.createElement("p", null, "If you feel that the React documentation goes at a faster pace than you\u2019re comfortable with, check out this overview of React by Tania Rascia. It introduces the most important React concepts in a detailed, beginner-friendly way. Once you\u2019re done, give the documentation another try!")), /*#__PURE__*/React.createElement(Fieldset.Footer, null, /*#__PURE__*/React.createElement("small", null, "JavaScript Resources ")))));
72
- };
@@ -1,212 +0,0 @@
1
- import Grid from '.';
2
- import Card from '../Card';
3
- export default {
4
- title: 'Layout/Grid',
5
- component: Grid
6
- };
7
- export var Default = function Default() {
8
- return /*#__PURE__*/React.createElement(Grid.Container, {
9
- gap: 2,
10
- justify: "center",
11
- height: "100px"
12
- }, /*#__PURE__*/React.createElement(Grid, {
13
- xs: 6
14
- }, /*#__PURE__*/React.createElement(Card, {
15
- shadow: true,
16
- width: "100%"
17
- })), /*#__PURE__*/React.createElement(Grid, {
18
- xs: 6
19
- }, /*#__PURE__*/React.createElement(Card, {
20
- shadow: true,
21
- width: "100%"
22
- })), /*#__PURE__*/React.createElement(Grid, {
23
- xs: 6
24
- }, /*#__PURE__*/React.createElement(Card, {
25
- shadow: true,
26
- width: "100%"
27
- })));
28
- };
29
- export var FluidLayout = function FluidLayout() {
30
- return /*#__PURE__*/React.createElement(Grid.Container, {
31
- gap: 2,
32
- justify: "center"
33
- }, /*#__PURE__*/React.createElement(Grid, {
34
- xs: 12
35
- }, /*#__PURE__*/React.createElement(Card, {
36
- shadow: true,
37
- width: "100%",
38
- height: "50px"
39
- })), /*#__PURE__*/React.createElement(Grid, {
40
- xs: 6
41
- }, /*#__PURE__*/React.createElement(Card, {
42
- shadow: true,
43
- width: "100%",
44
- height: "50px"
45
- })), /*#__PURE__*/React.createElement(Grid, {
46
- xs: 6
47
- }, /*#__PURE__*/React.createElement(Card, {
48
- shadow: true,
49
- width: "100%",
50
- height: "50px"
51
- })), /*#__PURE__*/React.createElement(Grid, {
52
- xs: 3
53
- }, /*#__PURE__*/React.createElement(Card, {
54
- shadow: true,
55
- width: "100%",
56
- height: "50px"
57
- })), /*#__PURE__*/React.createElement(Grid, {
58
- xs: 3
59
- }, /*#__PURE__*/React.createElement(Card, {
60
- shadow: true,
61
- width: "100%",
62
- height: "50px"
63
- })), /*#__PURE__*/React.createElement(Grid, {
64
- xs: 3
65
- }, /*#__PURE__*/React.createElement(Card, {
66
- shadow: true,
67
- width: "100%",
68
- height: "50px"
69
- })), /*#__PURE__*/React.createElement(Grid, {
70
- xs: 3
71
- }, /*#__PURE__*/React.createElement(Card, {
72
- shadow: true,
73
- width: "100%",
74
- height: "50px"
75
- })), /*#__PURE__*/React.createElement(Grid, {
76
- xs: 3
77
- }, /*#__PURE__*/React.createElement(Card, {
78
- shadow: true,
79
- width: "100%",
80
- height: "50px"
81
- })), /*#__PURE__*/React.createElement(Grid, {
82
- xs: 6
83
- }, /*#__PURE__*/React.createElement(Card, {
84
- shadow: true,
85
- width: "100%",
86
- height: "50px"
87
- })), /*#__PURE__*/React.createElement(Grid, {
88
- xs: 3
89
- }, /*#__PURE__*/React.createElement(Card, {
90
- shadow: true,
91
- width: "100%",
92
- height: "50px"
93
- })));
94
- };
95
- export var ResponsiveLayout = function ResponsiveLayout() {
96
- return /*#__PURE__*/React.createElement(Grid.Container, {
97
- gap: 2,
98
- justify: "center"
99
- }, /*#__PURE__*/React.createElement(Grid, {
100
- xs: 12,
101
- md: 6
102
- }, /*#__PURE__*/React.createElement(Card, {
103
- shadow: true,
104
- width: "100%",
105
- height: "50px"
106
- })), /*#__PURE__*/React.createElement(Grid, {
107
- xs: 6,
108
- md: 6
109
- }, /*#__PURE__*/React.createElement(Card, {
110
- shadow: true,
111
- width: "100%",
112
- height: "50px"
113
- })), /*#__PURE__*/React.createElement(Grid, {
114
- xs: 6,
115
- md: 3
116
- }, /*#__PURE__*/React.createElement(Card, {
117
- shadow: true,
118
- width: "100%",
119
- height: "50px"
120
- })), /*#__PURE__*/React.createElement(Grid, {
121
- xs: 6,
122
- md: 3
123
- }, /*#__PURE__*/React.createElement(Card, {
124
- shadow: true,
125
- width: "100%",
126
- height: "50px"
127
- })), /*#__PURE__*/React.createElement(Grid, {
128
- xs: 6,
129
- md: 3
130
- }, /*#__PURE__*/React.createElement(Card, {
131
- shadow: true,
132
- width: "100%",
133
- height: "50px"
134
- })));
135
- };
136
- export var HideElement = function HideElement() {
137
- return /*#__PURE__*/React.createElement(Grid.Container, {
138
- gap: 2,
139
- justify: "center"
140
- }, /*#__PURE__*/React.createElement(Grid, {
141
- xs: 6,
142
- sm: 0
143
- }, /*#__PURE__*/React.createElement(Card, {
144
- shadow: true,
145
- width: "100%",
146
- height: "50px"
147
- })), /*#__PURE__*/React.createElement(Grid, {
148
- xs: 6,
149
- sm: 0
150
- }, /*#__PURE__*/React.createElement(Card, {
151
- shadow: true,
152
- width: "100%",
153
- height: "50px"
154
- })), /*#__PURE__*/React.createElement(Grid, {
155
- xs: 12
156
- }, /*#__PURE__*/React.createElement(Card, {
157
- shadow: true,
158
- width: "100%",
159
- height: "50px"
160
- })), /*#__PURE__*/React.createElement(Grid, {
161
- xs: 12
162
- }, /*#__PURE__*/React.createElement(Card, {
163
- shadow: true,
164
- width: "100%",
165
- height: "50px"
166
- })));
167
- };
168
- export var AutoWidth = function AutoWidth() {
169
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Grid.Container, {
170
- gap: 2,
171
- justify: "center"
172
- }, /*#__PURE__*/React.createElement(Grid, {
173
- xs: true
174
- }, /*#__PURE__*/React.createElement(Card, {
175
- shadow: true,
176
- width: "100%",
177
- height: "50px"
178
- })), /*#__PURE__*/React.createElement(Grid, {
179
- xs: true
180
- }, /*#__PURE__*/React.createElement(Card, {
181
- shadow: true,
182
- width: "100%",
183
- height: "50px"
184
- })), /*#__PURE__*/React.createElement(Grid, {
185
- xs: true
186
- }, /*#__PURE__*/React.createElement(Card, {
187
- shadow: true,
188
- width: "100%",
189
- height: "50px"
190
- }))), /*#__PURE__*/React.createElement(Grid.Container, {
191
- gap: 2,
192
- justify: "center"
193
- }, /*#__PURE__*/React.createElement(Grid, {
194
- xs: true
195
- }, /*#__PURE__*/React.createElement(Card, {
196
- shadow: true,
197
- width: "100%",
198
- height: "50px"
199
- })), /*#__PURE__*/React.createElement(Grid, {
200
- xs: 12
201
- }, /*#__PURE__*/React.createElement(Card, {
202
- shadow: true,
203
- width: "100%",
204
- height: "50px"
205
- })), /*#__PURE__*/React.createElement(Grid, {
206
- xs: true
207
- }, /*#__PURE__*/React.createElement(Card, {
208
- shadow: true,
209
- width: "100%",
210
- height: "50px"
211
- }))));
212
- };
@@ -1,36 +0,0 @@
1
- import Card from '../Card';
2
- import Grid from '../Grid';
3
- import { Smile } from '@bolio-ui/icons';
4
- export default {
5
- title: 'General/Icons',
6
- component: Card
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(Smile, null)));
12
- };
13
- export var Colored = function Colored() {
14
- return /*#__PURE__*/React.createElement(Grid.Container, {
15
- gap: 2
16
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Smile, {
17
- color: "purple"
18
- })));
19
- };
20
- export var Size = function Size() {
21
- return /*#__PURE__*/React.createElement(Grid.Container, {
22
- gap: 2
23
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Smile, {
24
- fontSize: 16
25
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Smile, {
26
- fontSize: 20
27
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Smile, {
28
- fontSize: 24
29
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Smile, {
30
- fontSize: 28
31
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Smile, {
32
- fontSize: 32
33
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Smile, {
34
- fontSize: 36
35
- })));
36
- };
@@ -1,73 +0,0 @@
1
- import Image from '.';
2
- import Display from '../Display';
3
- import Code from '../Code';
4
- import Grid from '../Grid';
5
- export default {
6
- title: 'Data Display/Image',
7
- component: Image
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(Image, {
13
- width: "280px",
14
- height: "160px",
15
- src: "https://bolio-ui.com/logo-white.jpg"
16
- })));
17
- };
18
- export var Skeleton = function Skeleton() {
19
- return /*#__PURE__*/React.createElement(Grid.Container, {
20
- gap: 2
21
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Image, {
22
- width: "280px",
23
- height: "160px",
24
- src: "https://bolio-ui.com/logo-white.jpg"
25
- })));
26
- };
27
- export var Browser = function Browser() {
28
- return /*#__PURE__*/React.createElement(Grid.Container, {
29
- gap: 2
30
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Image.Browser, {
31
- url: "https://bolio-ui.com.br/",
32
- anchorProps: {
33
- rel: 'nofollow'
34
- }
35
- }, /*#__PURE__*/React.createElement(Image, {
36
- width: "450px",
37
- height: "300px",
38
- src: "https://bolio-ui.com/logo-white.jpg"
39
- }))));
40
- };
41
- export var BrowserInvert = function BrowserInvert() {
42
- return /*#__PURE__*/React.createElement(Grid.Container, {
43
- gap: 2
44
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Image.Browser, {
45
- url: "https://bolio-ui.com.br/",
46
- invert: true
47
- }, /*#__PURE__*/React.createElement(Image, {
48
- width: "450px",
49
- height: "300px",
50
- src: "https://bolio-ui.com/logo-white.jpg"
51
- }))));
52
- };
53
- export var Compose = function Compose() {
54
- return /*#__PURE__*/React.createElement(Grid.Container, {
55
- gap: 2
56
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Display, {
57
- shadow: true,
58
- caption: /*#__PURE__*/React.createElement("p", null, "Reduce the possibility of page rendering by setting", ' ', /*#__PURE__*/React.createElement(Code, null, "height"))
59
- }, /*#__PURE__*/React.createElement(Image, {
60
- height: "250px",
61
- src: "https://bolio-ui.com/logo-white.jpg"
62
- }))));
63
- };
64
- export var SVG = function SVG() {
65
- var svg = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30px\" height=\"30px\" viewBox=\"0 0 30 30\" fill=\"none\">\n <path d=\"M13.5 3.5H14V3.29289L13.8536 3.14645L13.5 3.5ZM10.5 0.5L10.8536 0.146447L10.7071 0H10.5V0.5ZM2.5 6.5V6H2V6.5H2.5ZM2.5 8.5H2V9H2.5V8.5ZM4.5 8.5H5V8H4.5V8.5ZM4.5 10.5V11H5V10.5H4.5ZM6.5 9.5H6V9.70711L6.14645 9.85355L6.5 9.5ZM7.5 10.5L7.14645 10.8536L7.5 11.2071L7.85355 10.8536L7.5 10.5ZM8.5 9.5L8.85355 9.85355L9 9.70711V9.5H8.5ZM10.5 6.5V6H10V6.5H10.5ZM10.5 10.5H10V11H10.5V10.5ZM12.5 10.5V11H13V10.5H12.5ZM2 5V1.5H1V5H2ZM13 3.5V5H14V3.5H13ZM2.5 1H10.5V0H2.5V1ZM10.1464 0.853553L13.1464 3.85355L13.8536 3.14645L10.8536 0.146447L10.1464 0.853553ZM2 1.5C2 1.22386 2.22386 1 2.5 1V0C1.67157 0 1 0.671573 1 1.5H2ZM1 12V13.5H2V12H1ZM2.5 15H12.5V14H2.5V15ZM14 13.5V12H13V13.5H14ZM12.5 15C13.3284 15 14 14.3284 14 13.5H13C13 13.7761 12.7761 14 12.5 14V15ZM1 13.5C1 14.3284 1.67157 15 2.5 15V14C2.22386 14 2 13.7761 2 13.5H1ZM5 6H2.5V7H5V6ZM2 6.5V8.5H3V6.5H2ZM2.5 9H4.5V8H2.5V9ZM4 8.5V10.5H5V8.5H4ZM4.5 10H2V11H4.5V10ZM6 6V9.5H7V6H6ZM6.14645 9.85355L7.14645 10.8536L7.85355 10.1464L6.85355 9.14645L6.14645 9.85355ZM7.85355 10.8536L8.85355 9.85355L8.14645 9.14645L7.14645 10.1464L7.85355 10.8536ZM9 9.5V6H8V9.5H9ZM13 6H10.5V7H13V6ZM10 6.5V10.5H11V6.5H10ZM10.5 11H12.5V10H10.5V11ZM13 10.5V8.5H12V10.5H13Z\" fill=\"black\"/>\n </svg>";
66
- return /*#__PURE__*/React.createElement(Grid.Container, {
67
- gap: 2
68
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Image, {
69
- width: "100px",
70
- height: "50px",
71
- src: svg
72
- })));
73
- };