@bolio-ui/core 1.1.6 → 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 (51) hide show
  1. package/README.md +0 -4
  2. package/dist/Popover/Popover.d.ts +8 -9
  3. package/dist/Popover/index.js +35 -18
  4. package/dist/index.js +54 -37
  5. package/esm/Popover/Popover.d.ts +8 -9
  6. package/esm/Popover/Popover.js +32 -15
  7. package/package.json +26 -24
  8. package/esm/Avatar/stories.js +0 -113
  9. package/esm/Badge/stories.js +0 -92
  10. package/esm/Breadcrumbs/stories.js +0 -51
  11. package/esm/Button/stories.js +0 -221
  12. package/esm/ButtonDropdown/stories.js +0 -92
  13. package/esm/ButtonGroup/stories.js +0 -66
  14. package/esm/Capacity/stories.js +0 -85
  15. package/esm/Card/stories.js +0 -175
  16. package/esm/Checkbox/stories.js +0 -84
  17. package/esm/Code/stories.js +0 -53
  18. package/esm/Collapse/stories.js +0 -48
  19. package/esm/Description/stories.js +0 -23
  20. package/esm/Divider/stories.js +0 -41
  21. package/esm/Dot/stories.js +0 -40
  22. package/esm/Drawer/stories.js +0 -79
  23. package/esm/Fieldset/stories.js +0 -72
  24. package/esm/Grid/stories.js +0 -212
  25. package/esm/Icon/stories.js +0 -36
  26. package/esm/Image/stories.js +0 -73
  27. package/esm/Input/stories.js +0 -145
  28. package/esm/Keyboard/stories.js +0 -43
  29. package/esm/Link/stories.js +0 -59
  30. package/esm/Loading/stories.js +0 -75
  31. package/esm/Modal/stories.js +0 -165
  32. package/esm/Note/stories.js +0 -68
  33. package/esm/Page/stories.js +0 -54
  34. package/esm/Pagination/stories.js +0 -49
  35. package/esm/Popover/stories.js +0 -84
  36. package/esm/Progress/stories.js +0 -114
  37. package/esm/Radio/stories.js +0 -98
  38. package/esm/Rating/stories.js +0 -72
  39. package/esm/Select/stories.js +0 -239
  40. package/esm/Slider/stories.js +0 -134
  41. package/esm/Snippet/stories.js +0 -177
  42. package/esm/Spacer/stories.js +0 -54
  43. package/esm/Spinner/stories.js +0 -13
  44. package/esm/Table/stories.js +0 -269
  45. package/esm/Tabs/stories.js +0 -92
  46. package/esm/Tag/stories.js +0 -58
  47. package/esm/Text/stories.js +0 -104
  48. package/esm/Textarea/stories.js +0 -104
  49. package/esm/Toggle/stories.js +0 -55
  50. package/esm/Tooltip/stories.js +0 -183
  51. package/examples/create-redwoodjs/.redwood/README.md +0 -44
@@ -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
- };
@@ -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
- };