@steroidsjs/bootstrap 3.0.0-beta.8 → 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.
@@ -0,0 +1,3 @@
1
+ import { IBadgeViewProps } from '@steroidsjs/core/ui/content/Badge/Badge';
2
+ import './BadgeView.scss';
3
+ export default function BadgeView(props: IBadgeViewProps): JSX.Element;
@@ -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;
@@ -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
- 'tripadvisor', 'tumblr', 'tumblr-square', 'twitch', 'twitter', 'twitter-square', 'typo3', 'uber', 'ubuntu',
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/package.json CHANGED
@@ -1,58 +1,58 @@
1
1
  {
2
- "name": "@steroidsjs/bootstrap",
3
- "version": "3.0.0-beta.8",
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
- }
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
  }