@steroidsjs/bootstrap 3.0.0-beta.7 → 3.0.0-beta.9
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/content/Badge/BadgeView.d.ts +3 -0
- package/content/Badge/BadgeView.js +23 -0
- package/icons/close.svg +3 -0
- package/icons/default.svg +11 -0
- package/icons/error.svg +12 -0
- package/icons/fontawesome.js +14 -9
- package/icons/info.svg +12 -0
- package/icons/success.svg +4 -0
- package/icons/warning.svg +12 -0
- package/package.json +56 -56
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
var react_1 = __importDefault(require("react"));
|
|
7
|
+
var useBem_1 = __importDefault(require("@steroidsjs/core/hooks/useBem"));
|
|
8
|
+
require("./BadgeView.scss");
|
|
9
|
+
var Icon_1 = __importDefault(require("@steroidsjs/core/ui/content/Icon"));
|
|
10
|
+
function BadgeView(props) {
|
|
11
|
+
var _a;
|
|
12
|
+
var bem = (0, useBem_1["default"])('BadgeView');
|
|
13
|
+
return (props.isExist && (react_1["default"].createElement("div", { className: bem(bem.block((_a = {},
|
|
14
|
+
_a[props.type] = !!props.type,
|
|
15
|
+
_a)), props.className), style: props.style },
|
|
16
|
+
react_1["default"].createElement("div", { className: bem.element('content-wrapper') },
|
|
17
|
+
react_1["default"].createElement("span", { className: bem.element('content') }, props.message),
|
|
18
|
+
props.showClose && (react_1["default"].createElement(Icon_1["default"], { name: 'close', onClick: props.onClose })),
|
|
19
|
+
props.counter
|
|
20
|
+
&& (react_1["default"].createElement("div", { className: bem.element('chip') }, typeof props.counter === 'object'
|
|
21
|
+
&& props.counter.content))))));
|
|
22
|
+
}
|
|
23
|
+
exports["default"] = BadgeView;
|
package/icons/close.svg
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_126_1078)">
|
|
3
|
+
<circle cx="12.7461" cy="12" r="12" fill="#E1E1E1"/>
|
|
4
|
+
<path d="M15.7791 8.73626H15.7131M17.7571 8.73626L18.7461 9.1978L17.7571 9.65934M14.6582 11.5055C14.6582 12.6264 13.801 13.4835 12.6802 13.4835C11.5593 13.4835 8.52631 13.4835 6.74609 13.4835M15.3175 6.75824C16.5703 6.75824 17.6252 7.81318 17.6252 9.13187C17.6252 9.85714 17.2955 10.5824 16.7681 10.978C17.2955 11.6374 17.6252 12.4945 17.6252 13.4176C17.6252 15.5275 15.9769 17.2418 13.9329 17.2418C11.889 17.2418 10.0428 15.3297 8.39445 13.4176C9.64719 11.6374 13.5373 6.75824 15.3175 6.75824Z" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
</g>
|
|
6
|
+
<defs>
|
|
7
|
+
<clipPath id="clip0_126_1078">
|
|
8
|
+
<rect width="24" height="24" fill="white" transform="translate(0.746094)"/>
|
|
9
|
+
</clipPath>
|
|
10
|
+
</defs>
|
|
11
|
+
</svg>
|
package/icons/error.svg
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_126_1073)">
|
|
3
|
+
<path d="M12.746 24C11.9983 24 11.2394 23.8103 10.5698 23.4197L3.94064 19.5917C2.60142 18.8105 1.7644 17.3708 1.7644 15.8196V8.186C1.7644 6.63474 2.60142 5.19507 3.94064 4.41386L10.5698 0.58591C11.909 -0.195303 13.5719 -0.195303 14.9223 0.58591L21.5514 4.41386C22.8907 5.19507 23.7277 6.63474 23.7277 8.186V15.8196C23.7277 17.3708 22.8907 18.8105 21.5514 19.5917L14.9223 23.4197C14.2527 23.8103 13.4938 24 12.746 24Z" fill="#FB4E4E"/>
|
|
4
|
+
<circle cx="12.7461" cy="16.75" r="0.75" fill="white"/>
|
|
5
|
+
<line x1="12.7461" y1="7.25" x2="12.7461" y2="13.75" stroke="white" stroke-width="1.5" stroke-linecap="round"/>
|
|
6
|
+
</g>
|
|
7
|
+
<defs>
|
|
8
|
+
<clipPath id="clip0_126_1073">
|
|
9
|
+
<rect width="24" height="24" fill="white" transform="translate(0.746094)"/>
|
|
10
|
+
</clipPath>
|
|
11
|
+
</defs>
|
|
12
|
+
</svg>
|
package/icons/fontawesome.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
exports.__esModule = true;
|
|
3
|
+
/* eslint-disable import/no-dynamic-require */
|
|
3
4
|
var groupedIcons = {
|
|
4
5
|
brands: [
|
|
5
6
|
'500px', 'accessible-icon', 'accusoft', 'acquisitions-incorporated', 'adn', 'adversal',
|
|
@@ -52,7 +53,7 @@ var groupedIcons = {
|
|
|
52
53
|
'strava', 'stripe', 'stripe-s', 'studiovinari', 'stumbleupon', 'stumbleupon-circle', 'superpowers',
|
|
53
54
|
'supple', 'suse', 'swift', 'symfony', 'teamspeak', 'telegram', 'telegram-plane', 'tencent-weibo',
|
|
54
55
|
'the-red-yeti', 'themeco', 'themeisle', 'think-peaks', 'tiktok', 'trade-federation', 'trello',
|
|
55
|
-
'
|
|
56
|
+
'tumblr', 'tumblr-square', 'twitch', 'twitter', 'twitter-square', 'typo3', 'uber', 'ubuntu',
|
|
56
57
|
'uikit', 'umbraco', 'uniregistry', 'unity', 'unsplash', 'untappd', 'ups', 'usb', 'usps', 'ussunnah',
|
|
57
58
|
'vaadin', 'viacoin', 'viadeo', 'viadeo-square', 'viber', 'vimeo', 'vimeo-square', 'vimeo-v', 'vine', 'vk',
|
|
58
59
|
'vnv', 'vuejs', 'waze', 'weebly', 'weibo', 'weixin', 'whatsapp', 'whatsapp-square', 'whmcs', 'wikipedia-w',
|
|
@@ -225,7 +226,6 @@ exports["default"] = (function () {
|
|
|
225
226
|
var icons = {};
|
|
226
227
|
Object.keys(groupedIcons).forEach(function (group) {
|
|
227
228
|
groupedIcons[group].forEach(function (name) {
|
|
228
|
-
// eslint-disable-next-line import/no-dynamic-require
|
|
229
229
|
icons[name] = require("@fortawesome/fontawesome-free/svgs/".concat(group, "/").concat(name, ".svg"));
|
|
230
230
|
});
|
|
231
231
|
});
|
|
@@ -239,14 +239,19 @@ exports["default"] = (function () {
|
|
|
239
239
|
reject: 'times-circle',
|
|
240
240
|
back: 'arrow-left',
|
|
241
241
|
securityEye: 'eye',
|
|
242
|
-
securityEyeSlash: 'eye-slash'
|
|
243
|
-
success: require('./success.svg'),
|
|
244
|
-
info: require('./info.svg'),
|
|
245
|
-
warning: require('./warning.svg'),
|
|
246
|
-
error: require('./error.svg'),
|
|
247
|
-
close: require('./close.svg'),
|
|
248
|
-
"default": require('./default.svg')
|
|
242
|
+
securityEyeSlash: 'eye-slash'
|
|
249
243
|
};
|
|
244
|
+
var steroidsIcons = [
|
|
245
|
+
'success',
|
|
246
|
+
'info',
|
|
247
|
+
'warning',
|
|
248
|
+
'error',
|
|
249
|
+
'close',
|
|
250
|
+
'default',
|
|
251
|
+
];
|
|
252
|
+
steroidsIcons.forEach(function (iconName) {
|
|
253
|
+
icons[iconName] = require("./".concat(iconName, ".svg"));
|
|
254
|
+
});
|
|
250
255
|
Object.keys(coreIconsMap).forEach(function (name) {
|
|
251
256
|
icons[name] = icons[coreIconsMap[name]];
|
|
252
257
|
});
|
package/icons/info.svg
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_126_1063)">
|
|
3
|
+
<circle cx="12.7461" cy="12" r="12" fill="#A7EFFF"/>
|
|
4
|
+
<circle cx="12.7461" cy="7.25" r="0.75" transform="rotate(-180 12.7461 7.25)" fill="white"/>
|
|
5
|
+
<line x1="12.7461" y1="16.75" x2="12.7461" y2="10.25" stroke="white" stroke-width="1.5" stroke-linecap="round"/>
|
|
6
|
+
</g>
|
|
7
|
+
<defs>
|
|
8
|
+
<clipPath id="clip0_126_1063">
|
|
9
|
+
<rect width="24" height="24" fill="white" transform="translate(0.746094)"/>
|
|
10
|
+
</clipPath>
|
|
11
|
+
</defs>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="0.746094" width="24" height="24" rx="12" fill="#2BC945"/>
|
|
3
|
+
<path d="M17.2461 9L11.0586 15L8.24609 12.2727" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_126_1068)">
|
|
3
|
+
<path d="M10.148 3C11.3027 0.999997 14.1895 1 15.3442 3L24.0044 18C25.1591 20 23.7157 22.5 21.4063 22.5H4.08584C1.77644 22.5 0.333063 20 1.48776 18L10.148 3Z" fill="#FFE457"/>
|
|
4
|
+
<circle cx="12.7461" cy="16.75" r="0.75" fill="white"/>
|
|
5
|
+
<line x1="12.7461" y1="7.25" x2="12.7461" y2="13.75" stroke="white" stroke-width="1.5" stroke-linecap="round"/>
|
|
6
|
+
</g>
|
|
7
|
+
<defs>
|
|
8
|
+
<clipPath id="clip0_126_1068">
|
|
9
|
+
<rect width="24" height="24" fill="white" transform="translate(0.746094)"/>
|
|
10
|
+
</clipPath>
|
|
11
|
+
</defs>
|
|
12
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
2
|
+
"name": "@steroidsjs/bootstrap",
|
|
3
|
+
"version": "3.0.0-beta.9",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"author": "Vladimir Kozhin <hello@kozhindev.com>",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/steroids/react-bootstrap"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"lint": "eslint -c ./.eslintrc --ext .js,.jsx,.ts,.tsx ./src --quiet",
|
|
13
|
+
"build": "tsc && cp ./{package.json,LICENSE,README.md} dist && copyfiles -u 1 \"src/**/*.scss\" \"src/icons/*.svg\" dist"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"homepage": "https://github.com/steroids/react-bootstrap",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/steroids/react-bootstrap/issues"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@ckeditor/ckeditor5-react": "^3.0.2",
|
|
22
|
+
"@steroidsjs/ckeditor5": "^27.0.2-rc.2",
|
|
23
|
+
"bootstrap": "^4.5.2",
|
|
24
|
+
"date-fns": "^2.29.3",
|
|
25
|
+
"lodash": "^4.17.20",
|
|
26
|
+
"lodash-es": "^4.17.20",
|
|
27
|
+
"rc-slider": "^9.7.4",
|
|
28
|
+
"react": "^18.2.0",
|
|
29
|
+
"react-collapse": "^5.0.1",
|
|
30
|
+
"react-day-picker": "^7.4.10",
|
|
31
|
+
"react-dom": "^18.2.0",
|
|
32
|
+
"react-image-crop": "^9.0.2",
|
|
33
|
+
"react-modal": "^3.11.2",
|
|
34
|
+
"react-transition-group": "^2.9.0",
|
|
35
|
+
"react-use": "^17.4.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@steroidsjs/core": "^3.0 || >=3.0.0-beta.6",
|
|
39
|
+
"@steroidsjs/eslint-config": "^2.1.3",
|
|
40
|
+
"@types/enzyme": "^3.10.8",
|
|
41
|
+
"@types/googlemaps": "^3.43.3",
|
|
42
|
+
"@types/jest": "^26.0.22",
|
|
43
|
+
"@types/markdown-to-jsx": "^6.11.3",
|
|
44
|
+
"@types/node": "^14.14.37",
|
|
45
|
+
"@types/overlayscrollbars": "^1.12.0",
|
|
46
|
+
"@types/reach__router": "^1.3.7",
|
|
47
|
+
"@types/react": "^18.0.27",
|
|
48
|
+
"@types/react-color": "^3.0.4",
|
|
49
|
+
"@types/react-syntax-highlighter": "^13.5.0",
|
|
50
|
+
"@types/webpack-env": "^1.16.0",
|
|
51
|
+
"copyfiles": "^2.4.1",
|
|
52
|
+
"eslint": "^8.34.0",
|
|
53
|
+
"typescript": "^4.9.5"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"@steroidsjs/core": "^3.0 || >=3.0.0-beta.6"
|
|
57
|
+
}
|
|
58
58
|
}
|