@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.
- package/README.md +0 -4
- package/package.json +26 -24
- package/esm/Avatar/stories.js +0 -113
- package/esm/Badge/stories.js +0 -92
- package/esm/Breadcrumbs/stories.js +0 -51
- package/esm/Button/stories.js +0 -221
- package/esm/ButtonDropdown/stories.js +0 -92
- package/esm/ButtonGroup/stories.js +0 -66
- package/esm/Capacity/stories.js +0 -85
- package/esm/Card/stories.js +0 -175
- package/esm/Checkbox/stories.js +0 -84
- package/esm/Code/stories.js +0 -53
- package/esm/Collapse/stories.js +0 -48
- package/esm/Description/stories.js +0 -23
- package/esm/Divider/stories.js +0 -41
- package/esm/Dot/stories.js +0 -40
- package/esm/Drawer/stories.js +0 -79
- package/esm/Fieldset/stories.js +0 -72
- package/esm/Grid/stories.js +0 -212
- package/esm/Icon/stories.js +0 -36
- package/esm/Image/stories.js +0 -73
- package/esm/Input/stories.js +0 -145
- package/esm/Keyboard/stories.js +0 -43
- package/esm/Link/stories.js +0 -59
- package/esm/Loading/stories.js +0 -75
- package/esm/Modal/stories.js +0 -165
- package/esm/Note/stories.js +0 -68
- package/esm/Page/stories.js +0 -54
- package/esm/Pagination/stories.js +0 -49
- package/esm/Popover/stories.js +0 -84
- package/esm/Progress/stories.js +0 -114
- package/esm/Radio/stories.js +0 -98
- package/esm/Rating/stories.js +0 -72
- package/esm/Select/stories.js +0 -239
- package/esm/Slider/stories.js +0 -134
- package/esm/Snippet/stories.js +0 -177
- package/esm/Spacer/stories.js +0 -54
- package/esm/Spinner/stories.js +0 -13
- package/esm/Table/stories.js +0 -269
- package/esm/Tabs/stories.js +0 -92
- package/esm/Tag/stories.js +0 -58
- package/esm/Text/stories.js +0 -104
- package/esm/Textarea/stories.js +0 -104
- package/esm/Toggle/stories.js +0 -55
- package/esm/Tooltip/stories.js +0 -183
- package/examples/create-redwoodjs/.redwood/README.md +0 -44
package/README.md
CHANGED
|
@@ -30,10 +30,6 @@
|
|
|
30
30
|
|
|
31
31
|
Visit <a aria-label="bolio-ui learn" href="https://bolio-ui.com/docs/guide">https://bolio-ui.com/docs/guide</a> to get started with Bolio UI.
|
|
32
32
|
|
|
33
|
-
## Documentation
|
|
34
|
-
|
|
35
|
-
Visit [https://bolio-ui.com/docs](https://bolio-ui.com/docs) to view the full documentation.
|
|
36
|
-
|
|
37
33
|
## Quick Start
|
|
38
34
|
|
|
39
35
|
1. Installation: Inside your React project directory, install Bolio UI by running either of the following:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolio-ui/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "Amazing, modern and creative tools for React UI. 🥷🏼",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bolio",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"build:storybook": "build-storybook -s ./public",
|
|
49
49
|
"build:clear": "rm -rf ./dist ./esm",
|
|
50
50
|
"build:rollup": "rollup -c scripts/rollup.config.js",
|
|
51
|
-
"build:babel": "babel --no-babelrc --config-file ./scripts/babel.config.js --extensions \".js,.ts,.tsx\" ./core --out-dir ./esm --ignore \"**/__tests__/**/*,**/*.d.ts\"",
|
|
51
|
+
"build:babel": "babel --no-babelrc --config-file ./scripts/babel.config.js --extensions \".js,.ts,.tsx\" ./core --out-dir ./esm --ignore \"**/__tests__/**/*,**/*.d.ts,**/stories.tsx\"",
|
|
52
52
|
"build:after": "node scripts/move-built-in.js",
|
|
53
53
|
"build:webpack": "webpack --config scripts/webpack.config.js",
|
|
54
54
|
"build:types": "ttsc -p ./scripts & ttsc -p ./scripts --outDir ./esm",
|
|
@@ -65,28 +65,7 @@
|
|
|
65
65
|
]
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@
|
|
69
|
-
"@mdx-js/loader": "^1.6.22",
|
|
70
|
-
"@next/mdx": "^11.0.1",
|
|
71
|
-
"algoliasearch": "^4.14.2",
|
|
72
|
-
"classnames": "^2.3.1",
|
|
73
|
-
"gray-matter": "^4.0.3",
|
|
74
|
-
"jest-styled-components": "^7.0.5",
|
|
75
|
-
"kbar": "0.1.0-beta.6",
|
|
76
|
-
"next": "12.3.1",
|
|
77
|
-
"next-seo": "^5.5.0",
|
|
78
|
-
"prism-react-renderer": "^1.2.1",
|
|
79
|
-
"react": "^18.2.0",
|
|
80
|
-
"react-autosuggest": "^10.1.0",
|
|
81
|
-
"react-device-detect": "^1.17.0",
|
|
82
|
-
"react-dom": "^18.2.0",
|
|
83
|
-
"react-instantsearch-dom": "^6.12.0",
|
|
84
|
-
"react-live": "^2.2.3",
|
|
85
|
-
"react-syntax-highlighter": "^15.5.0",
|
|
86
|
-
"rehype-join-line": "^1.0.2",
|
|
87
|
-
"remark-autolink-headings": "^6.0.1",
|
|
88
|
-
"remark-slug": "^6.0.0",
|
|
89
|
-
"styled-components": "^5.3.0"
|
|
68
|
+
"@babel/runtime": "^7.14.8"
|
|
90
69
|
},
|
|
91
70
|
"devDependencies": {
|
|
92
71
|
"@babel/cli": "^7.14.5",
|
|
@@ -96,6 +75,9 @@
|
|
|
96
75
|
"@babel/preset-react": "^7.14.5",
|
|
97
76
|
"@babel/preset-typescript": "^7.14.5",
|
|
98
77
|
"@bolio-ui/icons": "^1.0.4",
|
|
78
|
+
"@mapbox/rehype-prism": "^0.6.0",
|
|
79
|
+
"@mdx-js/loader": "^1.6.22",
|
|
80
|
+
"@next/mdx": "^11.0.1",
|
|
99
81
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
100
82
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
101
83
|
"@storybook/addon-essentials": "^6.5.12",
|
|
@@ -110,9 +92,11 @@
|
|
|
110
92
|
"@types/styled-components": "^5.1.11",
|
|
111
93
|
"@typescript-eslint/eslint-plugin": "^4.29.0",
|
|
112
94
|
"@typescript-eslint/parser": "^4.29.0",
|
|
95
|
+
"algoliasearch": "^4.14.2",
|
|
113
96
|
"babel-loader": "^8.2.2",
|
|
114
97
|
"babel-plugin-styled-components": "^1.13.2",
|
|
115
98
|
"babel-plugin-transform-rename-import": "^2.3.0",
|
|
99
|
+
"classnames": "^2.3.1",
|
|
116
100
|
"eslint": "7.32.0",
|
|
117
101
|
"eslint-config-next": "11.0.1",
|
|
118
102
|
"eslint-config-prettier": "^8.3.0",
|
|
@@ -120,14 +104,32 @@
|
|
|
120
104
|
"eslint-plugin-react": "^7.24.0",
|
|
121
105
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
122
106
|
"eslint-plugin-storybook": "^0.6.4",
|
|
107
|
+
"gray-matter": "^4.0.3",
|
|
123
108
|
"husky": "^7.0.0",
|
|
124
109
|
"jest": "^27.0.6",
|
|
110
|
+
"jest-styled-components": "^7.0.5",
|
|
111
|
+
"kbar": "0.1.0-beta.6",
|
|
125
112
|
"lint-staged": "^11.1.1",
|
|
113
|
+
"next": "12.3.1",
|
|
114
|
+
"next-pwa": "^5.6.0",
|
|
115
|
+
"next-seo": "^5.5.0",
|
|
126
116
|
"plop": "^2.7.4",
|
|
127
117
|
"prettier": "2.3.2",
|
|
118
|
+
"prism-react-renderer": "^1.2.1",
|
|
119
|
+
"react": "^18.2.0",
|
|
120
|
+
"react-autosuggest": "^10.1.0",
|
|
121
|
+
"react-device-detect": "^1.17.0",
|
|
122
|
+
"react-dom": "^18.2.0",
|
|
123
|
+
"react-instantsearch-dom": "^6.12.0",
|
|
124
|
+
"react-live": "^2.2.3",
|
|
125
|
+
"react-syntax-highlighter": "^15.5.0",
|
|
126
|
+
"rehype-join-line": "^1.0.2",
|
|
127
|
+
"remark-autolink-headings": "^6.0.1",
|
|
128
|
+
"remark-slug": "^6.0.0",
|
|
128
129
|
"rollup": "^2.64.0",
|
|
129
130
|
"rollup-plugin-babel": "^4.4.0",
|
|
130
131
|
"rollup-plugin-local-resolve": "^1.0.7",
|
|
132
|
+
"styled-components": "^5.3.0",
|
|
131
133
|
"styled-jsx": "4.0.1",
|
|
132
134
|
"ttypescript": "^1.5.13",
|
|
133
135
|
"typescript": "^4.3.5",
|
package/esm/Avatar/stories.js
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import Avatar from '.';
|
|
2
|
-
import Grid from '../Grid';
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Data Display/Avatar',
|
|
5
|
-
component: Avatar
|
|
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(Avatar, {
|
|
11
|
-
src: "https://i.pravatar.cc/150?img=60",
|
|
12
|
-
isSquare: true,
|
|
13
|
-
width: 1.5,
|
|
14
|
-
height: 1.5
|
|
15
|
-
})), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
16
|
-
text: "Bill",
|
|
17
|
-
isSquare: true,
|
|
18
|
-
width: 1.5,
|
|
19
|
-
height: 1.5
|
|
20
|
-
})), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
21
|
-
src: "https://i.pravatar.cc/150?img=30",
|
|
22
|
-
isSquare: true,
|
|
23
|
-
width: 1.5,
|
|
24
|
-
height: 1.5
|
|
25
|
-
})), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
26
|
-
text: "Max",
|
|
27
|
-
isSquare: true,
|
|
28
|
-
width: 1.5,
|
|
29
|
-
height: 1.5
|
|
30
|
-
})), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
31
|
-
src: "https://i.pravatar.cc/150?img=20",
|
|
32
|
-
isSquare: true,
|
|
33
|
-
width: 1.5,
|
|
34
|
-
height: 1.5
|
|
35
|
-
})), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
36
|
-
text: "Jane",
|
|
37
|
-
isSquare: true,
|
|
38
|
-
width: 1.5,
|
|
39
|
-
height: 1.5
|
|
40
|
-
})));
|
|
41
|
-
};
|
|
42
|
-
export var Text = function Text() {
|
|
43
|
-
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
44
|
-
gap: 2
|
|
45
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
46
|
-
text: "BA",
|
|
47
|
-
width: 1.5,
|
|
48
|
-
height: 1.5
|
|
49
|
-
})), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
50
|
-
text: "ES",
|
|
51
|
-
width: 1.5,
|
|
52
|
-
height: 1.5
|
|
53
|
-
})), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
54
|
-
text: "MB",
|
|
55
|
-
width: 1.5,
|
|
56
|
-
height: 1.5
|
|
57
|
-
})), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
58
|
-
text: "WL",
|
|
59
|
-
width: 1.5,
|
|
60
|
-
height: 1.5
|
|
61
|
-
})), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
62
|
-
text: "ML",
|
|
63
|
-
width: 1.5,
|
|
64
|
-
height: 1.5
|
|
65
|
-
})), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
66
|
-
text: "TR",
|
|
67
|
-
width: 1.5,
|
|
68
|
-
height: 1.5
|
|
69
|
-
})));
|
|
70
|
-
};
|
|
71
|
-
export var Group = function Group() {
|
|
72
|
-
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
73
|
-
gap: 2,
|
|
74
|
-
direction: "column"
|
|
75
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Avatar.Group, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
76
|
-
src: "https://i.pravatar.cc/150?img=60",
|
|
77
|
-
width: 1.5,
|
|
78
|
-
height: 1.5,
|
|
79
|
-
stacked: true
|
|
80
|
-
}), /*#__PURE__*/React.createElement(Avatar, {
|
|
81
|
-
src: "https://i.pravatar.cc/150?img=30",
|
|
82
|
-
width: 1.5,
|
|
83
|
-
height: 1.5,
|
|
84
|
-
stacked: true
|
|
85
|
-
}), /*#__PURE__*/React.createElement(Avatar, {
|
|
86
|
-
src: "https://i.pravatar.cc/150?img=20",
|
|
87
|
-
width: 1.5,
|
|
88
|
-
height: 1.5,
|
|
89
|
-
stacked: true
|
|
90
|
-
}), /*#__PURE__*/React.createElement(Avatar, {
|
|
91
|
-
src: "https://i.pravatar.cc/150?img=10",
|
|
92
|
-
width: 1.5,
|
|
93
|
-
height: 1.5,
|
|
94
|
-
stacked: true
|
|
95
|
-
}))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Avatar.Group, {
|
|
96
|
-
count: 6
|
|
97
|
-
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
98
|
-
src: "https://i.pravatar.cc/150?img=60",
|
|
99
|
-
width: 1.5,
|
|
100
|
-
height: 1.5,
|
|
101
|
-
stacked: true
|
|
102
|
-
}), /*#__PURE__*/React.createElement(Avatar, {
|
|
103
|
-
text: "C",
|
|
104
|
-
width: 1.5,
|
|
105
|
-
height: 1.5,
|
|
106
|
-
stacked: true
|
|
107
|
-
}), /*#__PURE__*/React.createElement(Avatar, {
|
|
108
|
-
text: "Mag",
|
|
109
|
-
width: 1.5,
|
|
110
|
-
height: 1.5,
|
|
111
|
-
stacked: true
|
|
112
|
-
}))));
|
|
113
|
-
};
|
package/esm/Badge/stories.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { useTheme } from '../use-theme/theme-context';
|
|
2
|
-
import Badge from '.';
|
|
3
|
-
import Grid from '../Grid';
|
|
4
|
-
import Avatar from '../Avatar';
|
|
5
|
-
import Button from '../Button';
|
|
6
|
-
import Link from '../Link';
|
|
7
|
-
export default {
|
|
8
|
-
title: 'Data Display/Badge',
|
|
9
|
-
component: Badge
|
|
10
|
-
};
|
|
11
|
-
export var Default = function Default() {
|
|
12
|
-
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
13
|
-
gap: 2
|
|
14
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Badge, null, "Default")));
|
|
15
|
-
};
|
|
16
|
-
export var Type = function Type() {
|
|
17
|
-
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
18
|
-
gap: 2
|
|
19
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Badge, null, "Default")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Badge, {
|
|
20
|
-
type: "primary"
|
|
21
|
-
}, "Primary")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Badge, {
|
|
22
|
-
type: "secondary"
|
|
23
|
-
}, "Secondary")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Badge, {
|
|
24
|
-
type: "success"
|
|
25
|
-
}, "Success")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Badge, {
|
|
26
|
-
type: "warning"
|
|
27
|
-
}, "Warning")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Badge, {
|
|
28
|
-
type: "error"
|
|
29
|
-
}, "Error")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Badge, {
|
|
30
|
-
type: "info"
|
|
31
|
-
}, "Info")));
|
|
32
|
-
};
|
|
33
|
-
export var CustomColor = function CustomColor() {
|
|
34
|
-
var theme = useTheme();
|
|
35
|
-
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
36
|
-
gap: 2
|
|
37
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Badge, {
|
|
38
|
-
style: {
|
|
39
|
-
backgroundColor: theme.palette.successDark
|
|
40
|
-
}
|
|
41
|
-
}, "Success Light")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Badge, {
|
|
42
|
-
style: {
|
|
43
|
-
backgroundColor: theme.palette.alert
|
|
44
|
-
}
|
|
45
|
-
}, "Alert")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Badge, {
|
|
46
|
-
style: {
|
|
47
|
-
backgroundColor: theme.palette.purple
|
|
48
|
-
}
|
|
49
|
-
}, "Purple")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Badge, {
|
|
50
|
-
style: {
|
|
51
|
-
backgroundColor: theme.palette.secondary
|
|
52
|
-
}
|
|
53
|
-
}, "Violet")));
|
|
54
|
-
};
|
|
55
|
-
export var Anchor = function Anchor() {
|
|
56
|
-
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
57
|
-
gap: 2
|
|
58
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Badge.Anchor, null, /*#__PURE__*/React.createElement(Badge, {
|
|
59
|
-
scale: 0.5
|
|
60
|
-
}, "10"), /*#__PURE__*/React.createElement(Avatar, {
|
|
61
|
-
src: "https://i.pravatar.cc/150?img=60"
|
|
62
|
-
}))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Badge.Anchor, {
|
|
63
|
-
placement: "bottomRight"
|
|
64
|
-
}, /*#__PURE__*/React.createElement(Badge, {
|
|
65
|
-
scale: 0.5,
|
|
66
|
-
type: "success"
|
|
67
|
-
}, "10"), /*#__PURE__*/React.createElement(Avatar, {
|
|
68
|
-
scale: 1.5,
|
|
69
|
-
isSquare: true,
|
|
70
|
-
src: "https://i.pravatar.cc/150?img=30"
|
|
71
|
-
}))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Badge.Anchor, null, /*#__PURE__*/React.createElement(Badge, {
|
|
72
|
-
scale: 0.5,
|
|
73
|
-
type: "warning"
|
|
74
|
-
}, "99+"), /*#__PURE__*/React.createElement(Button, {
|
|
75
|
-
scale: 0.5,
|
|
76
|
-
auto: true
|
|
77
|
-
}, "Action"))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Badge.Anchor, null, /*#__PURE__*/React.createElement(Badge, {
|
|
78
|
-
scale: 0.5,
|
|
79
|
-
type: "error",
|
|
80
|
-
dot: true
|
|
81
|
-
}), /*#__PURE__*/React.createElement(Link, {
|
|
82
|
-
target: "_blank",
|
|
83
|
-
href: "https://github.com/bolio-ui/bolio-ui/"
|
|
84
|
-
}, "Bolio UI"))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Badge.Anchor, null, /*#__PURE__*/React.createElement(Badge, {
|
|
85
|
-
type: "error",
|
|
86
|
-
dot: true,
|
|
87
|
-
padding: "5px"
|
|
88
|
-
}), /*#__PURE__*/React.createElement(Link, {
|
|
89
|
-
target: "_blank",
|
|
90
|
-
href: "https://github.com/bolio-ui/bolio-ui/"
|
|
91
|
-
}, "Share Link"))));
|
|
92
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import NextLink from 'next/link';
|
|
2
|
-
import Breadcrumbs from '.';
|
|
3
|
-
import Grid from '../Grid';
|
|
4
|
-
import { Home, Settings } from '@bolio-ui/icons';
|
|
5
|
-
export default {
|
|
6
|
-
title: 'Navigation/Breadcrumbs',
|
|
7
|
-
component: Breadcrumbs
|
|
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(Breadcrumbs, null, /*#__PURE__*/React.createElement(Breadcrumbs.Item, null, "Home"), /*#__PURE__*/React.createElement(Breadcrumbs.Item, {
|
|
13
|
-
href: ""
|
|
14
|
-
}, "Settings"), /*#__PURE__*/React.createElement(Breadcrumbs.Item, null, "General"))));
|
|
15
|
-
};
|
|
16
|
-
export var Separator = function Separator() {
|
|
17
|
-
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
18
|
-
gap: 2,
|
|
19
|
-
direction: "column"
|
|
20
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Breadcrumbs, {
|
|
21
|
-
separator: "-"
|
|
22
|
-
}, /*#__PURE__*/React.createElement(Breadcrumbs.Item, null, "Home"), /*#__PURE__*/React.createElement(Breadcrumbs.Item, {
|
|
23
|
-
href: ""
|
|
24
|
-
}, "Categories"), /*#__PURE__*/React.createElement(Breadcrumbs.Item, null, "Add"))), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Breadcrumbs, {
|
|
25
|
-
separator: ">"
|
|
26
|
-
}, /*#__PURE__*/React.createElement(Breadcrumbs.Item, null, "Home"), /*#__PURE__*/React.createElement(Breadcrumbs.Separator, null, ":"), /*#__PURE__*/React.createElement(Breadcrumbs.Item, {
|
|
27
|
-
href: ""
|
|
28
|
-
}, "Pages"), /*#__PURE__*/React.createElement(Breadcrumbs.Item, {
|
|
29
|
-
href: ""
|
|
30
|
-
}, "Default"), /*#__PURE__*/React.createElement(Breadcrumbs.Item, null, "Index"))));
|
|
31
|
-
};
|
|
32
|
-
export var Icons = function Icons() {
|
|
33
|
-
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
34
|
-
gap: 2
|
|
35
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Breadcrumbs, null, /*#__PURE__*/React.createElement(Breadcrumbs.Item, null, /*#__PURE__*/React.createElement(Home, null)), /*#__PURE__*/React.createElement(Breadcrumbs.Item, {
|
|
36
|
-
href: ""
|
|
37
|
-
}, /*#__PURE__*/React.createElement(Settings, null), " Settings"), /*#__PURE__*/React.createElement(Breadcrumbs.Item, null, "General"))));
|
|
38
|
-
};
|
|
39
|
-
export var WithNextjs = function WithNextjs() {
|
|
40
|
-
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
41
|
-
gap: 2
|
|
42
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Breadcrumbs, null, /*#__PURE__*/React.createElement(NextLink, {
|
|
43
|
-
href: "/"
|
|
44
|
-
}, /*#__PURE__*/React.createElement(Breadcrumbs.Item, {
|
|
45
|
-
nextLink: true
|
|
46
|
-
}, "Home")), /*#__PURE__*/React.createElement(NextLink, {
|
|
47
|
-
href: "/settings"
|
|
48
|
-
}, /*#__PURE__*/React.createElement(Breadcrumbs.Item, {
|
|
49
|
-
nextLink: true
|
|
50
|
-
}, "Settings")), /*#__PURE__*/React.createElement(Breadcrumbs.Item, null, "General"))));
|
|
51
|
-
};
|
package/esm/Button/stories.js
DELETED
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
import Button from '.';
|
|
2
|
-
import Grid from '../Grid';
|
|
3
|
-
import { Zap, ZapOff, AlertCircle, XSquare } from '@bolio-ui/icons';
|
|
4
|
-
export default {
|
|
5
|
-
title: 'General/Button',
|
|
6
|
-
component: Button
|
|
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(Button, null, "Button")));
|
|
12
|
-
};
|
|
13
|
-
export var Loading = function Loading() {
|
|
14
|
-
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
15
|
-
gap: 2
|
|
16
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
17
|
-
loading: true
|
|
18
|
-
}, "Button")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
19
|
-
loading: true,
|
|
20
|
-
scale: 0.75
|
|
21
|
-
}, "Button")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
22
|
-
loading: true,
|
|
23
|
-
auto: true,
|
|
24
|
-
type: "primary",
|
|
25
|
-
scale: 2 / 3
|
|
26
|
-
}, "Button")));
|
|
27
|
-
};
|
|
28
|
-
export var Disabled = function Disabled() {
|
|
29
|
-
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
30
|
-
gap: 2
|
|
31
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
32
|
-
disabled: true
|
|
33
|
-
}, "Button")));
|
|
34
|
-
};
|
|
35
|
-
export var Shadow = function Shadow() {
|
|
36
|
-
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
37
|
-
gap: 2
|
|
38
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
39
|
-
shadow: true,
|
|
40
|
-
type: "primary"
|
|
41
|
-
}, "Button Shadow")));
|
|
42
|
-
};
|
|
43
|
-
export var TypeColors = function TypeColors() {
|
|
44
|
-
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
45
|
-
gap: 2
|
|
46
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
47
|
-
auto: true,
|
|
48
|
-
type: "primary"
|
|
49
|
-
}, "Primary")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
50
|
-
auto: true,
|
|
51
|
-
type: "secondary"
|
|
52
|
-
}, "Secondary")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
53
|
-
auto: true,
|
|
54
|
-
type: "success"
|
|
55
|
-
}, "Success")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
56
|
-
auto: true,
|
|
57
|
-
type: "warning"
|
|
58
|
-
}, "Warning")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
59
|
-
auto: true,
|
|
60
|
-
type: "error"
|
|
61
|
-
}, "Error")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
62
|
-
auto: true,
|
|
63
|
-
type: "info"
|
|
64
|
-
}, "Info")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
65
|
-
auto: true,
|
|
66
|
-
type: "abort"
|
|
67
|
-
}, "Abort")));
|
|
68
|
-
};
|
|
69
|
-
export var Lighted = function Lighted() {
|
|
70
|
-
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
71
|
-
gap: 2
|
|
72
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
73
|
-
auto: true,
|
|
74
|
-
type: "primary-light"
|
|
75
|
-
}, "Primary Light")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
76
|
-
auto: true,
|
|
77
|
-
type: "secondary-light"
|
|
78
|
-
}, "Secondary Light")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
79
|
-
auto: true,
|
|
80
|
-
type: "success-light"
|
|
81
|
-
}, "Success Light")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
82
|
-
auto: true,
|
|
83
|
-
type: "warning-light"
|
|
84
|
-
}, "Warning Light")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
85
|
-
auto: true,
|
|
86
|
-
type: "error-light"
|
|
87
|
-
}, "Error Light")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
88
|
-
auto: true,
|
|
89
|
-
type: "info-light"
|
|
90
|
-
}, "Info Light")));
|
|
91
|
-
};
|
|
92
|
-
export var Ghost = function Ghost() {
|
|
93
|
-
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
94
|
-
gap: 2
|
|
95
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
96
|
-
type: "secondary",
|
|
97
|
-
ghost: true,
|
|
98
|
-
auto: true,
|
|
99
|
-
scale: 0.7
|
|
100
|
-
}, "Secondary")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
101
|
-
type: "success",
|
|
102
|
-
ghost: true,
|
|
103
|
-
auto: true,
|
|
104
|
-
scale: 0.7
|
|
105
|
-
}, "Success")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
106
|
-
type: "warning",
|
|
107
|
-
ghost: true,
|
|
108
|
-
auto: true,
|
|
109
|
-
scale: 0.7
|
|
110
|
-
}, "Warning")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
111
|
-
type: "error",
|
|
112
|
-
ghost: true,
|
|
113
|
-
auto: true,
|
|
114
|
-
scale: 0.7
|
|
115
|
-
}, "Error")));
|
|
116
|
-
};
|
|
117
|
-
export var Rounded = function Rounded() {
|
|
118
|
-
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
119
|
-
gap: 2
|
|
120
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
121
|
-
type: "secondary",
|
|
122
|
-
rounded: true,
|
|
123
|
-
auto: true,
|
|
124
|
-
scale: 0.7
|
|
125
|
-
}, "Secondary")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
126
|
-
type: "success",
|
|
127
|
-
rounded: true,
|
|
128
|
-
auto: true,
|
|
129
|
-
scale: 0.7
|
|
130
|
-
}, "Success")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
131
|
-
type: "warning",
|
|
132
|
-
rounded: true,
|
|
133
|
-
auto: true,
|
|
134
|
-
scale: 0.7
|
|
135
|
-
}, "Warning")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
136
|
-
type: "error",
|
|
137
|
-
rounded: true,
|
|
138
|
-
auto: true,
|
|
139
|
-
scale: 0.7
|
|
140
|
-
}, "Error")));
|
|
141
|
-
};
|
|
142
|
-
export var Scale = function Scale() {
|
|
143
|
-
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
144
|
-
gap: 2
|
|
145
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
146
|
-
auto: true,
|
|
147
|
-
scale: 0.25
|
|
148
|
-
}, "0.25")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
149
|
-
auto: true,
|
|
150
|
-
scale: 0.35
|
|
151
|
-
}, "0.35")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
152
|
-
auto: true,
|
|
153
|
-
scale: 1 / 2
|
|
154
|
-
}, "1 / 2")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
155
|
-
auto: true,
|
|
156
|
-
scale: 0.75
|
|
157
|
-
}, "0.75")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
158
|
-
auto: true,
|
|
159
|
-
padding: 0
|
|
160
|
-
}, "NoPadding")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
161
|
-
auto: true,
|
|
162
|
-
font: 0.25
|
|
163
|
-
}, "Small Font")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
164
|
-
auto: true,
|
|
165
|
-
pl: 0,
|
|
166
|
-
ml: "25px"
|
|
167
|
-
}, "Offset")), /*#__PURE__*/React.createElement(Grid, {
|
|
168
|
-
xs: 12
|
|
169
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
170
|
-
width: "100%"
|
|
171
|
-
}, "Full Width")), /*#__PURE__*/React.createElement(Grid, {
|
|
172
|
-
xs: 12
|
|
173
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
174
|
-
auto: true,
|
|
175
|
-
width: "30%",
|
|
176
|
-
mx: "5px"
|
|
177
|
-
}, "proportion"), /*#__PURE__*/React.createElement(Button, {
|
|
178
|
-
auto: true,
|
|
179
|
-
width: "30%",
|
|
180
|
-
mx: "5px"
|
|
181
|
-
}, "proportion"), /*#__PURE__*/React.createElement(Button, {
|
|
182
|
-
auto: true,
|
|
183
|
-
width: "30%",
|
|
184
|
-
mx: "5px"
|
|
185
|
-
}, "proportion")));
|
|
186
|
-
};
|
|
187
|
-
export var WithIcons = function WithIcons() {
|
|
188
|
-
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
189
|
-
gap: 2
|
|
190
|
-
}, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
191
|
-
iconRight: /*#__PURE__*/React.createElement(Zap, null),
|
|
192
|
-
auto: true,
|
|
193
|
-
scale: 2 / 3
|
|
194
|
-
})), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
195
|
-
iconRight: /*#__PURE__*/React.createElement(ZapOff, null),
|
|
196
|
-
auto: true,
|
|
197
|
-
scale: 2 / 3,
|
|
198
|
-
px: 0.6
|
|
199
|
-
})), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
200
|
-
icon: /*#__PURE__*/React.createElement(AlertCircle, null),
|
|
201
|
-
auto: true
|
|
202
|
-
}, "Button")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
203
|
-
iconRight: /*#__PURE__*/React.createElement(AlertCircle, null),
|
|
204
|
-
type: "success",
|
|
205
|
-
scale: 0.85
|
|
206
|
-
}, "Button")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
207
|
-
icon: /*#__PURE__*/React.createElement(AlertCircle, null),
|
|
208
|
-
type: "warning",
|
|
209
|
-
scale: 0.85
|
|
210
|
-
}, "Button")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
211
|
-
icon: /*#__PURE__*/React.createElement(AlertCircle, null),
|
|
212
|
-
type: "secondary"
|
|
213
|
-
}, "Button")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
214
|
-
icon: /*#__PURE__*/React.createElement(XSquare, null),
|
|
215
|
-
type: "error",
|
|
216
|
-
ghost: true
|
|
217
|
-
}, "Remove Button")), /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Button, {
|
|
218
|
-
icon: /*#__PURE__*/React.createElement(XSquare, null),
|
|
219
|
-
disabled: true
|
|
220
|
-
}, "Remove Button")));
|
|
221
|
-
};
|