@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,92 +0,0 @@
1
- import Tabs from '.';
2
- import Text from '../Text';
3
- import Grid from '../Grid';
4
- import { Instagram, Facebook } from '@bolio-ui/icons';
5
- export default {
6
- title: 'Navigation/Tabs',
7
- component: Tabs
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(Tabs, {
13
- initialValue: "1"
14
- }, /*#__PURE__*/React.createElement(Tabs.Item, {
15
- label: "Declarative",
16
- value: "1"
17
- }, "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(Tabs.Item, {
18
- label: "Component-Based",
19
- value: "2"
20
- }, "Build encapsulated components that manage their own state, then compose them to make complex UIs."))));
21
- };
22
- export var Disabled = function Disabled() {
23
- return /*#__PURE__*/React.createElement(Grid.Container, {
24
- gap: 2
25
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tabs, {
26
- initialValue: "1"
27
- }, /*#__PURE__*/React.createElement(Tabs.Item, {
28
- label: "Declarative",
29
- value: "1"
30
- }, "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(Tabs.Item, {
31
- label: "Component-Based",
32
- value: "2",
33
- disabled: true
34
- }))));
35
- };
36
- export var HideDivider = function HideDivider() {
37
- return /*#__PURE__*/React.createElement(Grid.Container, {
38
- gap: 2
39
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tabs, {
40
- initialValue: "react",
41
- hideDivider: true
42
- }, /*#__PURE__*/React.createElement(Tabs.Item, {
43
- label: "Declarative",
44
- value: "react"
45
- }, /*#__PURE__*/React.createElement(Text, {
46
- mt: 0
47
- }, "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(Tabs.Item, {
48
- label: "Component-Based",
49
- value: "component-based"
50
- }, /*#__PURE__*/React.createElement(Text, {
51
- mt: 0
52
- }, "Build encapsulated components that manage their own state, then compose them to make complex UIs.")))));
53
- };
54
- export var HideBorder = function HideBorder() {
55
- return /*#__PURE__*/React.createElement(Grid.Container, {
56
- gap: 2
57
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tabs, {
58
- initialValue: "react",
59
- hideDivider: true,
60
- hideBorder: true,
61
- leftSpace: 0
62
- }, /*#__PURE__*/React.createElement(Tabs.Item, {
63
- label: "Declarative",
64
- value: "react"
65
- }, /*#__PURE__*/React.createElement(Text, {
66
- mt: 0
67
- }, "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(Tabs.Item, {
68
- label: "Component-Based",
69
- value: "component-based"
70
- }, /*#__PURE__*/React.createElement(Text, {
71
- mt: 0
72
- }, "Build encapsulated components that manage their own state, then compose them to make complex UIs.")))));
73
- };
74
- export var WithIcon = function WithIcon() {
75
- return /*#__PURE__*/React.createElement(Grid.Container, {
76
- gap: 2
77
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tabs, {
78
- initialValue: "1",
79
- align: "center",
80
- leftSpace: 0
81
- }, /*#__PURE__*/React.createElement(Tabs.Item, {
82
- label: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Instagram, null), " Instagram"),
83
- value: "1"
84
- }, /*#__PURE__*/React.createElement(Text, {
85
- mt: 0
86
- }, "Hello, this is my profile.")), /*#__PURE__*/React.createElement(Tabs.Item, {
87
- label: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Facebook, null), " Facebook"),
88
- value: "2"
89
- }, /*#__PURE__*/React.createElement(Text, {
90
- mt: 0
91
- }, "Hi, this is my page.")))));
92
- };
@@ -1,58 +0,0 @@
1
- import Tag from '.';
2
- import Grid from '../Grid';
3
- export default {
4
- title: 'Data Display/Tag',
5
- component: Tag
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(Tag, null, "Status: Unstable")));
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(Tag, null, "Default")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tag, {
16
- type: "primary"
17
- }, "Primary")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tag, {
18
- type: "secondary"
19
- }, "Secondary")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tag, {
20
- type: "success"
21
- }, "Success")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tag, {
22
- type: "warning"
23
- }, "Warning")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tag, {
24
- type: "error"
25
- }, "Error")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tag, {
26
- type: "dark"
27
- }, "Dark")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tag, {
28
- type: "lite"
29
- }, "Lite")));
30
- };
31
- export var TypesInvert = function TypesInvert() {
32
- return /*#__PURE__*/React.createElement(Grid.Container, {
33
- gap: 2
34
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tag, {
35
- invert: true
36
- }, "Default")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tag, {
37
- type: "primary",
38
- invert: true
39
- }, "Primary")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tag, {
40
- type: "secondary",
41
- invert: true
42
- }, "Secondary")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tag, {
43
- type: "success",
44
- invert: true
45
- }, "Success")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tag, {
46
- type: "warning",
47
- invert: true
48
- }, "Warning")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tag, {
49
- type: "error",
50
- invert: true
51
- }, "Error")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tag, {
52
- type: "dark",
53
- invert: true
54
- }, "Dark")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tag, {
55
- type: "lite",
56
- invert: true
57
- }, "Lite")));
58
- };
@@ -1,104 +0,0 @@
1
- import Text from '.';
2
- import Grid from '../Grid';
3
- export default {
4
- title: 'General/Text',
5
- component: Text
6
- };
7
- export var Heading = function Heading() {
8
- return /*#__PURE__*/React.createElement(Grid.Container, {
9
- gap: 2
10
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, {
11
- h1: true
12
- }, "Hello my friend, have fun with Bolio UI \uD83E\uDD77\uD83C\uDFFC")));
13
- };
14
- export var Paragraph = function Paragraph() {
15
- return /*#__PURE__*/React.createElement(Grid.Container, {
16
- gap: 2
17
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, {
18
- p: true
19
- }, "Make your development more creative and with amazing tools for React."), /*#__PURE__*/React.createElement(Text, {
20
- p: true,
21
- b: true
22
- }, "Make your development more creative and with amazing tools for React.")));
23
- };
24
- export var Small = function Small() {
25
- return /*#__PURE__*/React.createElement(Grid.Container, {
26
- gap: 2
27
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, {
28
- small: true
29
- }, "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(Text, {
30
- small: true,
31
- i: true
32
- }, "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.")));
33
- };
34
- export var Blockquote = function Blockquote() {
35
- return /*#__PURE__*/React.createElement(Grid.Container, {
36
- gap: 2
37
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, {
38
- blockquote: true,
39
- my: 0
40
- }, "Build encapsulated components that manage their own state, then compose them to make complex UIs.")));
41
- };
42
- export var Types = function Types() {
43
- return /*#__PURE__*/React.createElement(Grid.Container, {
44
- gap: 2
45
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, {
46
- b: true,
47
- i: true,
48
- style: {
49
- letterSpacing: '0.6px'
50
- }
51
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, {
52
- span: true,
53
- type: "default"
54
- }, "Text colored")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, {
55
- span: true,
56
- type: "primary"
57
- }, "Text colored")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, {
58
- span: true,
59
- type: "secondary"
60
- }, "Text colored")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, {
61
- span: true,
62
- type: "success"
63
- }, "Text colored")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, {
64
- span: true,
65
- type: "warning"
66
- }, "Text colored")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, {
67
- span: true,
68
- type: "error"
69
- }, "Text colored")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, {
70
- span: true,
71
- type: "info"
72
- }, "Text colored")))));
73
- };
74
- export var Sizes = function Sizes() {
75
- return /*#__PURE__*/React.createElement(Grid.Container, {
76
- gap: 2
77
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, {
78
- font: "12px",
79
- mt: 0
80
- }, "Font Size: 12px;"), /*#__PURE__*/React.createElement(Text, {
81
- font: "14px"
82
- }, "Font Size: 14px;"), /*#__PURE__*/React.createElement(Text, {
83
- font: "1rem"
84
- }, "Font Size: 1rem;"), /*#__PURE__*/React.createElement(Text, {
85
- scale: 1.25,
86
- mb: 0
87
- }, "Font Size Scale: 1.25;")));
88
- };
89
- export var Compose = function Compose() {
90
- return /*#__PURE__*/React.createElement(Grid.Container, {
91
- gap: 2
92
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Text, {
93
- p: true,
94
- mt: 0
95
- }, "Build encapsulated components that manage their own state, then compose them to make complex UIs."), /*#__PURE__*/React.createElement(Text, {
96
- mb: 0
97
- }, /*#__PURE__*/React.createElement(Text, {
98
- small: true,
99
- del: true
100
- }, "Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep state out of the DOM."), /*#__PURE__*/React.createElement(Text, {
101
- small: true,
102
- b: true
103
- }, "We don\u2019t make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code."))));
104
- };
@@ -1,104 +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 Textarea from '.';
5
- import Grid from '../Grid';
6
- import Button from '../Button';
7
- import useInput from '../use-input';
8
- export default {
9
- title: 'Data Entry/Textarea',
10
- component: Textarea
11
- };
12
- export var Default = function Default() {
13
- return /*#__PURE__*/React.createElement(Grid.Container, {
14
- gap: 2
15
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Textarea, {
16
- placeholder: "Enter a message."
17
- })));
18
- };
19
- export var Disabled = function Disabled() {
20
- return /*#__PURE__*/React.createElement(Grid.Container, {
21
- gap: 2
22
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Textarea, {
23
- width: "100%",
24
- disabled: true,
25
- placeholder: "This documentation always reflects the latest stable version of React. Since React 16, you can find older versions of the documentation on a separate page. Note that documentation for past versions is snapshotted at the time of the release, and isn\u2019t being continuously updated."
26
- })));
27
- };
28
- export var Type = function Type() {
29
- return /*#__PURE__*/React.createElement(Grid.Container, {
30
- gap: 2
31
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Textarea, {
32
- height: "65px",
33
- value: "Default"
34
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Textarea, {
35
- type: "primary",
36
- height: "65px",
37
- value: "Primary"
38
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Textarea, {
39
- type: "secondary",
40
- height: "65px",
41
- value: "Secondary"
42
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Textarea, {
43
- type: "success",
44
- height: "65px",
45
- value: "Success"
46
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Textarea, {
47
- type: "warning",
48
- height: "65px",
49
- value: "Warning"
50
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Textarea, {
51
- type: "error",
52
- height: "65px",
53
- value: "Error"
54
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Textarea, {
55
- type: "info",
56
- height: "65px",
57
- value: "Info"
58
- })));
59
- };
60
- export var GetChange = function GetChange() {
61
- var _useState = useState(),
62
- _useState2 = _slicedToArray(_useState, 2),
63
- value = _useState2[0],
64
- setValue = _useState2[1];
65
-
66
- var handler = function handler(e) {
67
- setValue(e.target.value);
68
- console.log(e.target.value);
69
- };
70
-
71
- return /*#__PURE__*/React.createElement(Grid.Container, {
72
- gap: 2
73
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Textarea, {
74
- width: "100%",
75
- value: value,
76
- onChange: handler,
77
- placeholder: "This documentation always reflects the latest stable version of React. Since React 16, you can find older versions of the documentation on a separate page. Note that documentation for past versions is snapshotted at the time of the release, and isn\u2019t being continuously updated."
78
- })));
79
- };
80
- export var WithUseInput = function WithUseInput() {
81
- var _useInput = useInput('This documentation always reflects the latest stable version of React. Since React 16, you can find older versions of the documentation on a separate page. Note that documentation for past versions is snapshotted at the time of the release, and isn’t being continuously updated.'),
82
- setState = _useInput.setState,
83
- reset = _useInput.reset,
84
- bindings = _useInput.bindings;
85
-
86
- return /*#__PURE__*/React.createElement(Grid.Container, {
87
- gap: 2
88
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Textarea, _extends({
89
- width: "100%"
90
- }, bindings))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
91
- auto: true,
92
- type: "secondary",
93
- scale: 1 / 3,
94
- onClick: function onClick() {
95
- return setState(Math.random().toString(32));
96
- }
97
- }, "insert value")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
98
- auto: true,
99
- scale: 1 / 3,
100
- onClick: function onClick() {
101
- return reset();
102
- }
103
- }, "clear value")));
104
- };
@@ -1,55 +0,0 @@
1
- import Toggle from '.';
2
- import Grid from '../Grid';
3
- export default {
4
- title: 'Data Entry/Toggle',
5
- component: Toggle
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(Toggle, null)), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Toggle, {
11
- initialChecked: true
12
- })));
13
- };
14
- export var Type = function Type() {
15
- return /*#__PURE__*/React.createElement(Grid.Container, {
16
- gap: 2
17
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Toggle, {
18
- scale: 2,
19
- initialChecked: true
20
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Toggle, {
21
- type: "primary",
22
- scale: 2,
23
- initialChecked: true
24
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Toggle, {
25
- type: "secondary",
26
- scale: 2,
27
- initialChecked: true
28
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Toggle, {
29
- type: "success",
30
- scale: 2,
31
- initialChecked: true
32
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Toggle, {
33
- type: "warning",
34
- scale: 2,
35
- initialChecked: true
36
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Toggle, {
37
- type: "error",
38
- scale: 2,
39
- initialChecked: true
40
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Toggle, {
41
- type: "info",
42
- scale: 2,
43
- initialChecked: true
44
- })));
45
- };
46
- export var Disabled = function Disabled() {
47
- return /*#__PURE__*/React.createElement(Grid.Container, {
48
- gap: 2
49
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Toggle, {
50
- disabled: true
51
- })), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Toggle, {
52
- initialChecked: true,
53
- disabled: true
54
- })));
55
- };
@@ -1,183 +0,0 @@
1
- import Tooltip from '.';
2
- import Grid from '../Grid';
3
- import Button from '../Button';
4
- import Link from '../Link';
5
- import Code from '../Code';
6
- import Text from '../Text';
7
- import Badge from '../Badge';
8
- export default {
9
- title: 'Data Display/Tooltip',
10
- component: Tooltip
11
- };
12
- export var Default = function Default() {
13
- return /*#__PURE__*/React.createElement(Grid.Container, {
14
- gap: 2
15
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tooltip, {
16
- text: 'Push to Git and your website is live.'
17
- }, "Tooltip")));
18
- };
19
- export var Trigger = function Trigger() {
20
- return /*#__PURE__*/React.createElement(Grid.Container, {
21
- gap: 2
22
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tooltip, {
23
- text: 'Push to Git and your website is live.',
24
- trigger: "click",
25
- type: "dark"
26
- }, "Click me")));
27
- };
28
- export var WithComponents = function WithComponents() {
29
- return /*#__PURE__*/React.createElement(Grid.Container, {
30
- gap: 2
31
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tooltip, {
32
- text: 'Push to Git and your website is live.',
33
- type: "dark"
34
- }, /*#__PURE__*/React.createElement(Button, {
35
- auto: true,
36
- scale: 1 / 2
37
- }, "Button"))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tooltip, {
38
- text: 'Push to Git and your website is live.',
39
- type: "dark"
40
- }, /*#__PURE__*/React.createElement(Badge, null, "1000+"))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tooltip, {
41
- text: 'Push to Git and your website is live.',
42
- type: "dark"
43
- }, /*#__PURE__*/React.createElement(Link, {
44
- href: "#",
45
- color: true
46
- }, "Hyperlink"))));
47
- };
48
- export var CustomContent = function CustomContent() {
49
- return /*#__PURE__*/React.createElement(Grid.Container, {
50
- gap: 2
51
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tooltip, {
52
- text: /*#__PURE__*/React.createElement(React.Fragment, null, "Perfect for working with a ", /*#__PURE__*/React.createElement(Code, null, "CMS"), ".")
53
- }, "Top")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tooltip, {
54
- text: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
55
- b: true
56
- }, "Perfect"), " for working with a CMS."),
57
- placement: "bottom"
58
- }, "Bottom")));
59
- };
60
- export var Types = function Types() {
61
- return /*#__PURE__*/React.createElement(Grid.Container, {
62
- gap: 2
63
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tooltip, {
64
- text: "Perfect for working with a CMS.",
65
- type: "dark"
66
- }, "Dark")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tooltip, {
67
- text: "Perfect for working with a CMS.",
68
- type: "success"
69
- }, "Success")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tooltip, {
70
- text: "Perfect for working with a CMS.",
71
- type: "warning"
72
- }, "Warning")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tooltip, {
73
- text: "Perfect for working with a CMS.",
74
- type: "error"
75
- }, "Error")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tooltip, {
76
- text: "Perfect for working with a CMS.",
77
- type: "secondary"
78
- }, "Secondary")));
79
- };
80
- export var Variants = function Variants() {
81
- return /*#__PURE__*/React.createElement(Grid.Container, {
82
- gap: 2
83
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tooltip, {
84
- text: "Push to Git and your website is live.",
85
- type: "lite"
86
- }, "Lite")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Tooltip, {
87
- text: "Push to Git and your website is live.",
88
- hideArrow: true
89
- }, "No Arrow")));
90
- };
91
- export var Placements = function Placements() {
92
- var text = 'HTTP is stateless, but not sessionless';
93
- return /*#__PURE__*/React.createElement(Grid.Container, {
94
- gap: 2,
95
- justify: "center",
96
- alignItems: "center"
97
- }, /*#__PURE__*/React.createElement(Grid, {
98
- xs: 4,
99
- justify: "flex-end"
100
- }, /*#__PURE__*/React.createElement(Tooltip, {
101
- text: text,
102
- placement: "topStart",
103
- type: "dark"
104
- }, "topStart")), /*#__PURE__*/React.createElement(Grid, {
105
- xs: 4,
106
- justify: "center"
107
- }, /*#__PURE__*/React.createElement(Tooltip, {
108
- text: text,
109
- placement: "top",
110
- type: "dark"
111
- }, "top")), /*#__PURE__*/React.createElement(Grid, {
112
- xs: 4
113
- }, /*#__PURE__*/React.createElement(Tooltip, {
114
- text: text,
115
- placement: "topEnd",
116
- type: "dark"
117
- }, "topEnd")), /*#__PURE__*/React.createElement(Grid, {
118
- xs: 3,
119
- justify: "flex-end"
120
- }, /*#__PURE__*/React.createElement(Tooltip, {
121
- text: text,
122
- placement: "leftStart",
123
- type: "dark"
124
- }, "leftStart")), /*#__PURE__*/React.createElement(Grid, {
125
- xs: 6
126
- }), /*#__PURE__*/React.createElement(Grid, {
127
- xs: 3
128
- }, /*#__PURE__*/React.createElement(Tooltip, {
129
- text: text,
130
- placement: "rightStart",
131
- type: "dark"
132
- }, "rightStart")), /*#__PURE__*/React.createElement(Grid, {
133
- xs: 3,
134
- justify: "flex-end"
135
- }, /*#__PURE__*/React.createElement(Tooltip, {
136
- text: text,
137
- placement: "left",
138
- type: "dark"
139
- }, "left")), /*#__PURE__*/React.createElement(Grid, {
140
- xs: 6
141
- }), /*#__PURE__*/React.createElement(Grid, {
142
- xs: 3
143
- }, /*#__PURE__*/React.createElement(Tooltip, {
144
- text: text,
145
- placement: "right",
146
- type: "dark"
147
- }, "right")), /*#__PURE__*/React.createElement(Grid, {
148
- xs: 3,
149
- justify: "flex-end"
150
- }, /*#__PURE__*/React.createElement(Tooltip, {
151
- text: text,
152
- placement: "leftEnd",
153
- type: "dark"
154
- }, "leftEnd")), /*#__PURE__*/React.createElement(Grid, {
155
- xs: 6
156
- }), /*#__PURE__*/React.createElement(Grid, {
157
- xs: 3
158
- }, /*#__PURE__*/React.createElement(Tooltip, {
159
- text: text,
160
- placement: "rightEnd",
161
- type: "dark"
162
- }, "rightEnd")), /*#__PURE__*/React.createElement(Grid, {
163
- xs: 4,
164
- justify: "flex-end"
165
- }, /*#__PURE__*/React.createElement(Tooltip, {
166
- text: text,
167
- placement: "bottomStart",
168
- type: "dark"
169
- }, "bottomStart")), /*#__PURE__*/React.createElement(Grid, {
170
- xs: 4,
171
- justify: "center"
172
- }, /*#__PURE__*/React.createElement(Tooltip, {
173
- text: text,
174
- placement: "bottom",
175
- type: "dark"
176
- }, "bottom")), /*#__PURE__*/React.createElement(Grid, {
177
- xs: 4
178
- }, /*#__PURE__*/React.createElement(Tooltip, {
179
- text: text,
180
- placement: "bottomEnd",
181
- type: "dark"
182
- }, "bottomEnd")));
183
- };
@@ -1,44 +0,0 @@
1
- # .redwood
2
-
3
- ## What is this directory?
4
-
5
- Redwood uses this `.redwood` directory to store transitory data that aids in the smooth and convenient operation of your Redwood project.
6
-
7
- ## Do I need to do anything with this directory?
8
-
9
- No. You shouldn't have to create, edit or delete anything in this directory in your day-to-day work with Redwood.
10
-
11
- You don't need to commit any other contents of this directory to your version control system. It's ignored by default.
12
-
13
- ## What's in this directory?
14
-
15
- ### Files
16
-
17
- | Name | Description |
18
- | :---------------- | :----------------------------------------------------------------------------------------------------------------- |
19
- | commandCache.json | This file contains mappings to assist the Redwood CLI in efficiently executing commands. |
20
- | schema.graphql | This is the GraphQL schema which has been automatically generated from your Redwood project. |
21
- | studio.db | The sqlite database used by the experimental `rw exp studio` feature. |
22
- | telemetry.txt | Contains a unique ID used for telemetry. This value is rotated every 24 hours to protect your project's anonymity. |
23
- | test.db | The sqlite database used when running tests. |
24
-
25
- ### Directories
26
-
27
- | Name | Description |
28
- | :---------- | :----------------------------------------------------------------------------------------------------------------------------------------------- |
29
- | locks | Stores temporary files that Redwood uses to keep track of the execution of async/background tasks between processes. |
30
- | logs | Stores log files for background tasks such as update checking. |
31
- | prebuild | Stores transpiled JavaScript that is generated as part of Redwood's build process. |
32
- | telemetry | Stores the recent telemetry that the Redwood CLI has generated. You may inspect these files to see everything Redwood is anonymously collecting. |
33
- | types | Stores the results of type generation. |
34
- | updateCheck | Stores a file which contains the results of checking for Redwood updates. |
35
-
36
- We try to keep this README up to date but you may, from time to time, find other files or directories in this `.redwood` directory that have not yet been documented here. This is likely nothing to worry about but feel free to let us know and we'll update this list.
37
-
38
- ### Telemetry
39
-
40
- RedwoodJS collects completely anonymous telemetry data about general usage. For transparency, that data is viewable in the respective directories and files. To learn more and manage your project's settings, visit [telemetry.redwoodjs.com](https://telemetry.redwoodjs.com).
41
-
42
- ### Have any questions?
43
-
44
- Feel free to reach out to us in the [RedwoodJS Community](https://community.redwoodjs.com/) forum if you have any questions.