ecomlab-components-next 0.1.236 → 0.1.238

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 (115) hide show
  1. package/dist/components/ConstructorComponents/BlocksInfo/BlocksInfo.js +6 -5
  2. package/dist/components/ConstructorComponents/Header/Header.js +1 -0
  3. package/dist/components/Tabs/TabsGreen/TabsGreen.js +1 -0
  4. package/dist/stories/LongTileArticleBox/LongTileArticleBox.js +1 -1
  5. package/dist/stories/ShortTileArticleBox/ShortTileArticleBox.js +1 -1
  6. package/package.json +1 -1
  7. package/dist/components/Buttons/SignUpButton/ButtonSignUp.js +0 -75
  8. package/dist/components/Buttons/SignUpButton/ButtonSignUp.module.scss +0 -92
  9. package/dist/components/Buttons/SignUpButton/ButtonSignUp.stories.js +0 -30
  10. package/dist/components/Buttons/SignUpButton/calendar.svg +0 -14
  11. package/dist/components/Checkbox/Checkbox/Checkbox.js +0 -83
  12. package/dist/components/Checkbox/Checkbox/Checkbox.scss +0 -136
  13. package/dist/components/Checkbox/Checkbox/Checkbox.stories.js +0 -46
  14. package/dist/components/Checkbox/Checkbox/img/check.svg +0 -3
  15. package/dist/main.js +0 -14
  16. package/dist/stories/InputDynamicWidth/InputDynamicWidth.js +0 -85
  17. package/dist/stories/InputDynamicWidth/InputDynamicWidth.scss +0 -98
  18. package/dist/stories/InputDynamicWidth/InputDynamicWidth.stories.js +0 -32
  19. package/dist/stories/InputDynamicWidth/img/close_icon.svg +0 -3
  20. package/dist/stories/InputDynamicWidth/img/search_icon.svg +0 -6
  21. package/dist/stories/NoArticles/NoArticles.js +0 -29
  22. package/dist/stories/NoArticles/NoArticles.scss +0 -26
  23. package/dist/stories/NoArticles/NoArticles.stories.js +0 -20
  24. package/dist/stories/NoArticles/img/banner.svg +0 -266
  25. package/dist/stories/ViewSwitch/ViewSwitch.js +0 -48
  26. package/dist/stories/ViewSwitch/ViewSwitch.scss +0 -135
  27. package/dist/stories/ViewSwitch/ViewSwitch.stories.js +0 -48
  28. package/dist/stories/ViewSwitch/img/Chat.js +0 -24
  29. package/dist/stories/ViewSwitch/img/Table.js +0 -21
  30. package/dist/stories/ViewSwitch/img/Tile.js +0 -20
  31. package/dist/stories/ViewSwitch/img/TileLong.js +0 -20
  32. package/dist/storybook-static/167.1ab9d45b.iframe.bundle.js +0 -1
  33. package/dist/storybook-static/294.029a22c7.iframe.bundle.js +0 -1
  34. package/dist/storybook-static/364.41fcb7af.iframe.bundle.js +0 -1
  35. package/dist/storybook-static/54.0740a2d0.iframe.bundle.js +0 -2
  36. package/dist/storybook-static/54.0740a2d0.iframe.bundle.js.LICENSE.txt +0 -1
  37. package/dist/storybook-static/735.329871ea.iframe.bundle.js +0 -2
  38. package/dist/storybook-static/735.329871ea.iframe.bundle.js.LICENSE.txt +0 -9
  39. package/dist/storybook-static/844.4c57ff93.iframe.bundle.js +0 -94
  40. package/dist/storybook-static/844.4c57ff93.iframe.bundle.js.map +0 -1
  41. package/dist/storybook-static/869.a718104a.iframe.bundle.js +0 -1
  42. package/dist/storybook-static/908.c53199b4.iframe.bundle.js +0 -1
  43. package/dist/storybook-static/939.72503e72.iframe.bundle.js +0 -405
  44. package/dist/storybook-static/939.72503e72.iframe.bundle.js.LICENSE.txt +0 -54
  45. package/dist/storybook-static/939.72503e72.iframe.bundle.js.map +0 -1
  46. package/dist/storybook-static/components-Button-stories.6b7204e5.iframe.bundle.js +0 -1
  47. package/dist/storybook-static/favicon.svg +0 -1
  48. package/dist/storybook-static/file.svg +0 -1
  49. package/dist/storybook-static/globe.svg +0 -1
  50. package/dist/storybook-static/iframe.html +0 -511
  51. package/dist/storybook-static/index.html +0 -185
  52. package/dist/storybook-static/index.json +0 -1
  53. package/dist/storybook-static/main.456a86f5.iframe.bundle.js +0 -1
  54. package/dist/storybook-static/next.svg +0 -1
  55. package/dist/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  56. package/dist/storybook-static/nunito-sans-bold.woff2 +0 -0
  57. package/dist/storybook-static/nunito-sans-italic.woff2 +0 -0
  58. package/dist/storybook-static/nunito-sans-regular.woff2 +0 -0
  59. package/dist/storybook-static/project.json +0 -1
  60. package/dist/storybook-static/runtime~main.8e4a98c9.iframe.bundle.js +0 -1
  61. package/dist/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +0 -331
  62. package/dist/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt +0 -51
  63. package/dist/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +0 -3
  64. package/dist/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js.LEGAL.txt +0 -0
  65. package/dist/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js +0 -12
  66. package/dist/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js.LEGAL.txt +0 -0
  67. package/dist/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +0 -391
  68. package/dist/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js.LEGAL.txt +0 -0
  69. package/dist/storybook-static/sb-addons/essentials-docs-4/manager-bundle.js +0 -230
  70. package/dist/storybook-static/sb-addons/essentials-docs-4/manager-bundle.js.LEGAL.txt +0 -0
  71. package/dist/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js +0 -3
  72. package/dist/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js.LEGAL.txt +0 -0
  73. package/dist/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js +0 -3
  74. package/dist/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js.LEGAL.txt +0 -0
  75. package/dist/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js +0 -3
  76. package/dist/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js.LEGAL.txt +0 -0
  77. package/dist/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js +0 -3
  78. package/dist/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js.LEGAL.txt +0 -0
  79. package/dist/storybook-static/sb-addons/interactions-11/manager-bundle.js +0 -210
  80. package/dist/storybook-static/sb-addons/interactions-11/manager-bundle.js.LEGAL.txt +0 -0
  81. package/dist/storybook-static/sb-addons/onboarding-1/manager-bundle.js +0 -127
  82. package/dist/storybook-static/sb-addons/onboarding-1/manager-bundle.js.LEGAL.txt +0 -0
  83. package/dist/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
  84. package/dist/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
  85. package/dist/storybook-static/sb-common-assets/favicon.svg +0 -1
  86. package/dist/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  87. package/dist/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  88. package/dist/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  89. package/dist/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  90. package/dist/storybook-static/sb-manager/globals-module-info.js +0 -1037
  91. package/dist/storybook-static/sb-manager/globals-runtime.js +0 -41107
  92. package/dist/storybook-static/sb-manager/globals.js +0 -48
  93. package/dist/storybook-static/sb-manager/runtime.js +0 -11960
  94. package/dist/storybook-static/sb-preview/globals.js +0 -33
  95. package/dist/storybook-static/sb-preview/runtime.js +0 -7247
  96. package/dist/storybook-static/static/media/accessibility.b812909c.png +0 -0
  97. package/dist/storybook-static/static/media/addon-library.7d60eaf1.png +0 -0
  98. package/dist/storybook-static/static/media/assets.74434bfb.png +0 -0
  99. package/dist/storybook-static/static/media/context.0aaeed46.png +0 -0
  100. package/dist/storybook-static/static/media/discord.c13ab8cc.svg +0 -1
  101. package/dist/storybook-static/static/media/docs.78ff2c00.png +0 -0
  102. package/dist/storybook-static/static/media/figma-plugin.92feae99.png +0 -0
  103. package/dist/storybook-static/static/media/github.bf1215e7.svg +0 -1
  104. package/dist/storybook-static/static/media/share.b661f220.png +0 -0
  105. package/dist/storybook-static/static/media/styling.6ea0e96c.png +0 -0
  106. package/dist/storybook-static/static/media/testing.6f11ce8b.png +0 -0
  107. package/dist/storybook-static/static/media/theming.3ca117fd.png +0 -0
  108. package/dist/storybook-static/static/media/tutorials.f9b22f92.svg +0 -1
  109. package/dist/storybook-static/static/media/youtube.0220385a.svg +0 -1
  110. package/dist/storybook-static/stories-Button-stories.a157a598.iframe.bundle.js +0 -1
  111. package/dist/storybook-static/stories-Configure-mdx.ad43dce3.iframe.bundle.js +0 -1
  112. package/dist/storybook-static/stories-Header-stories.813bf6ef.iframe.bundle.js +0 -1
  113. package/dist/storybook-static/stories-Page-stories.9918ddc0.iframe.bundle.js +0 -1
  114. package/dist/storybook-static/vercel.svg +0 -1
  115. package/dist/storybook-static/window.svg +0 -1
@@ -95,6 +95,7 @@ var form_data_ECOMRU = [{
95
95
  required: true
96
96
  }];
97
97
  var BlocksInfo = function BlocksInfo(_ref) {
98
+ var _window;
98
99
  var title = _ref.title,
99
100
  _ref$list = _ref.list,
100
101
  list = _ref$list === void 0 ? [] : _ref$list,
@@ -109,7 +110,7 @@ var BlocksInfo = function BlocksInfo(_ref) {
109
110
  _useState2 = _slicedToArray(_useState, 2),
110
111
  refPage = _useState2[0],
111
112
  setRefPage = _useState2[1];
112
- var currentUrl = window.location.href;
113
+ var currentUrl = (_window = window) === null || _window === void 0 || (_window = _window.location) === null || _window === void 0 ? void 0 : _window.href;
113
114
  var _useState3 = (0, _react.useState)(false),
114
115
  _useState4 = _slicedToArray(_useState3, 2),
115
116
  isModal = _useState4[0],
@@ -132,8 +133,8 @@ var BlocksInfo = function BlocksInfo(_ref) {
132
133
  }
133
134
  };
134
135
  (0, _react.useEffect)(function () {
135
- var _window;
136
- var currentUrl = (_window = window) === null || _window === void 0 || (_window = _window.location) === null || _window === void 0 ? void 0 : _window.href;
136
+ var _window2;
137
+ var currentUrl = (_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.location) === null || _window2 === void 0 ? void 0 : _window2.href;
137
138
  setRefPage("?ref_page=".concat(currentUrl));
138
139
  }, []);
139
140
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isModal && /*#__PURE__*/_react["default"].createElement(_ModalBitrixForm["default"], _extends({
@@ -192,8 +193,8 @@ var BlocksInfo = function BlocksInfo(_ref) {
192
193
  if (_onClick) {
193
194
  _onClick();
194
195
  } else {
195
- var _window2;
196
- (_window2 = window) === null || _window2 === void 0 || _window2.open("".concat(linkMain, "/auth").concat(refPage), '_blunk');
196
+ var _window3;
197
+ (_window3 = window) === null || _window3 === void 0 || _window3.open("".concat(linkMain, "/auth").concat(refPage), '_blunk');
197
198
  }
198
199
  }
199
200
  },
@@ -73,6 +73,7 @@ var Header = function Header(_ref) {
73
73
  alt: "icon"
74
74
  })), (name_service || icon_service) && Array.isArray(name_service) ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, name_service === null || name_service === void 0 ? void 0 : name_service.map(function (el, ind) {
75
75
  return /*#__PURE__*/_react["default"].createElement("div", {
76
+ key: el + ind,
76
77
  style: {
77
78
  background: color[ind] ? color[ind] : ''
78
79
  },
@@ -30,6 +30,7 @@ var TabsGreen = exports.TabsGreen = function TabsGreen(_ref) {
30
30
  count = el.count,
31
31
  icon = el.icon;
32
32
  return /*#__PURE__*/_react["default"].createElement("button", {
33
+ key: label + ind,
33
34
  className: checkValue ? currentBtn == value ? 'btn_active' : 'btn' : currentBtn == label ? 'btn_active' : 'btn',
34
35
  onClick: function onClick(e) {
35
36
  if (returnEvent) {
@@ -120,7 +120,7 @@ var LongTileArticleBox = function LongTileArticleBox(_ref) {
120
120
  className: "title"
121
121
  }, search ? (0, _highlightWord.hightlightWord)(search, articleName) : articleName), /*#__PURE__*/React.createElement("div", {
122
122
  className: "description-content"
123
- }, /*#__PURE__*/React.createElement("p", {
123
+ }, /*#__PURE__*/React.createElement("div", {
124
124
  className: "text_description"
125
125
  }, Array.isArray(annotation) ? annotation !== null && annotation !== void 0 && annotation[0] ? (0, _htmlReactParser["default"])(annotation === null || annotation === void 0 ? void 0 : annotation[0]) : '' : annotation ? (0, _htmlReactParser["default"])(annotation) : '')), /*#__PURE__*/React.createElement("div", {
126
126
  className: "text-and-info-box"
@@ -112,7 +112,7 @@ var ShortTileArticleBox = function ShortTileArticleBox(_ref) {
112
112
  className: "title"
113
113
  }, search ? (0, _highlightWord.hightlightWord)(search, articleName) : articleName), /*#__PURE__*/React.createElement("div", {
114
114
  className: "description-content"
115
- }, /*#__PURE__*/React.createElement("p", {
115
+ }, /*#__PURE__*/React.createElement("div", {
116
116
  className: "text_description"
117
117
  }, Array.isArray(annotation) ? annotation !== null && annotation !== void 0 && annotation[0] ? (0, _htmlReactParser["default"])(annotation === null || annotation === void 0 ? void 0 : annotation[0]) : '' : annotation ? (0, _htmlReactParser["default"])(annotation) : '')), /*#__PURE__*/React.createElement("div", {
118
118
  className: "text-and-info-box"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecomlab-components-next",
3
- "version": "0.1.236",
3
+ "version": "0.1.238",
4
4
  "description": "A set of common and reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -1,75 +0,0 @@
1
- "use strict";
2
- 'use client';
3
-
4
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
- var _react = _interopRequireWildcard(require("react"));
10
- var _image = _interopRequireDefault(require("next/image"));
11
- var _ButtonSignUpModule = _interopRequireDefault(require("./ButtonSignUp.module.scss"));
12
- var _calendar = _interopRequireDefault(require("./calendar.svg"));
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
16
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
17
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
18
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
19
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
20
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
21
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
22
- var ButtonSignUp = function ButtonSignUp(_ref) {
23
- var onClick = _ref.onClick,
24
- _ref$media = _ref.media,
25
- media = _ref$media === void 0 ? '1000px' : _ref$media,
26
- _ref$isMobile = _ref.isMobile,
27
- isMobile = _ref$isMobile === void 0 ? false : _ref$isMobile;
28
- var _useState = (0, _react.useState)(getMatches),
29
- _useState2 = _slicedToArray(_useState, 2),
30
- screenWidth = _useState2[0],
31
- setScreenWidth = _useState2[1];
32
- var getMatches = function getMatches() {
33
- return typeof window !== 'undefined' ? window.matchMedia("(max-width:".concat(media, ")")).matches : false;
34
- };
35
- (0, _react.useEffect)(function () {
36
- var mediaQuery = window.matchMedia("(max-width: ".concat(media, ")"));
37
- var onResize = function onResize(e) {
38
- return setScreenWidth(e.matches);
39
- };
40
- mediaQuery.addEventListener('change', onResize);
41
- return function () {
42
- return mediaQuery.removeEventListener('change', onResize);
43
- };
44
- }, [media]);
45
- var collapsed = !isMobile && screenWidth;
46
- var buttonClassName = [_ButtonSignUpModule["default"].buttonSignUp, isMobile ? _ButtonSignUpModule["default"].small : '', collapsed ? _ButtonSignUpModule["default"].collapsed : ''].join(' ').trim();
47
- var buttonStyles = {
48
- maxWidth: collapsed && '56px',
49
- padding: collapsed ? '0' : '0 16px',
50
- justifyContent: collapsed && 'center'
51
- };
52
- var imageWrapperStyles = {
53
- '--after-left': collapsed ? '-11px' : 'calc(100% - 6px)',
54
- '--after-top': collapsed ? '-11px' : '-2px'
55
- };
56
- return /*#__PURE__*/_react["default"].createElement("button", {
57
- className: buttonClassName,
58
- style: buttonStyles,
59
- type: "button",
60
- onClick: onClick
61
- }, isMobile ? /*#__PURE__*/_react["default"].createElement("span", {
62
- className: _ButtonSignUpModule["default"].secondaryText
63
- }, "\u0417\u0430\u043F\u0438\u0441\u0430\u0442\u044C\u0441\u044F") : !collapsed ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
64
- className: _ButtonSignUpModule["default"].primaryText
65
- }, "\u041E\u043D\u043B\u0430\u0439\u043D \u0437\u0430\u043F\u0438\u0441\u044C"), /*#__PURE__*/_react["default"].createElement("span", {
66
- className: _ButtonSignUpModule["default"].secondaryText
67
- }, "\u0417\u0430\u043F\u0438\u0441\u0430\u0442\u044C\u0441\u044F")) : null, /*#__PURE__*/_react["default"].createElement("div", {
68
- className: _ButtonSignUpModule["default"].imageWrapper,
69
- style: imageWrapperStyles
70
- }, /*#__PURE__*/_react["default"].createElement(_image["default"], {
71
- src: _calendar["default"],
72
- alt: "icon-calendar"
73
- })));
74
- };
75
- var _default = exports["default"] = ButtonSignUp;
@@ -1,92 +0,0 @@
1
- .buttonSignUp {
2
- align-items: center;
3
- background: #fff;
4
- border: 1px solid #c6e7c9;
5
- border-radius: 12px;
6
- color: #042b8f;
7
- cursor: pointer;
8
- display: flex;
9
- gap: 8px;
10
- justify-content: space-between;
11
- line-height: 16px;
12
- min-height: 56px;
13
- max-width: 188px;
14
- padding: 0 16px;
15
- transition: background 0.3s, box-shadow 0.3s;
16
-
17
- &:hover, &:focus {
18
- opacity: none;
19
- background: #225df4;
20
- box-shadow: inset 0 0 24px 0 rgba(27, 54, 123, 0.16);
21
-
22
- .primaryText {
23
- display: none;
24
- opacity: 0;
25
- }
26
-
27
- .secondaryText {
28
- display: block;
29
- opacity: 1;
30
- }
31
- }
32
- }
33
-
34
- .small {
35
- max-width: 146px;
36
- min-height: 32px;
37
- padding: 16px;
38
-
39
- &:hover .secondaryText {
40
- color: #fff;
41
- }
42
-
43
- .secondaryText {
44
- display: block;
45
- color: inherit;
46
- }
47
- }
48
-
49
- .imageWrapper {
50
- align-items: center;
51
- display: flex;
52
- height: 22px;
53
- justify-content: center;
54
- width: 22px;
55
- position: relative;
56
-
57
- &::after {
58
- content: '';
59
- width: 12px;
60
- height: 12px;
61
- position: absolute;
62
- z-index: 1;
63
- top: var(--after-top);
64
- left: var(--after-left);
65
- background-color: #57cc6a;
66
- border-radius: 50%;
67
- border: 2px solid #9ae0a6;
68
- }
69
-
70
- img {
71
- min-height: 100%;
72
- min-width: 100%;
73
- }
74
- }
75
-
76
- .primaryText,
77
- .secondaryText {
78
- font-family: 'Open Sans', sans-serif;
79
- font-size: 13px;
80
- font-style: normal;
81
- font-weight: 700;
82
- text-align: center;
83
- line-height: 16px;
84
- display: inline-block;
85
- width: 100%;
86
- transition: opacity 0.3s, color 0.3s;
87
- }
88
-
89
- .secondaryText {
90
- display: none;
91
- color: #fff;
92
- }
@@ -1,30 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = exports.Default = void 0;
7
- var _ButtonSignUp = _interopRequireDefault(require("./ButtonSignUp"));
8
- var _addonActions = require("@storybook/addon-actions");
9
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
11
- var _default = exports["default"] = {
12
- title: 'ButtonSignUp',
13
- component: _ButtonSignUp["default"],
14
- args: {
15
- onClick: _addonActions.action
16
- }
17
- };
18
- var Default = exports.Default = {
19
- render: function render(args) {
20
- return /*#__PURE__*/React.createElement("div", {
21
- style: {
22
- display: 'flex',
23
- gap: '10px',
24
- flexDirection: 'column'
25
- }
26
- }, /*#__PURE__*/React.createElement(_ButtonSignUp["default"], args), /*#__PURE__*/React.createElement(_ButtonSignUp["default"], _extends({}, args, {
27
- isMobile: true
28
- })));
29
- }
30
- };
@@ -1,14 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 30 30" fill="none">
2
- <path
3
- d="M9 0.5C4.30558 0.5 0.5 4.30558 0.5 9V21C0.5 25.6944 4.30558 29.5 9 29.5H21C25.6944 29.5 29.5 25.6944 29.5 21V9C29.5 4.30558 25.6944 0.5 21 0.5H9Z"
4
- fill="#225DF4" />
5
- <path
6
- d="M9 0.5C4.30558 0.5 0.5 4.30558 0.5 9V21C0.5 25.6944 4.30558 29.5 9 29.5H21C25.6944 29.5 29.5 25.6944 29.5 21V9C29.5 4.30558 25.6944 0.5 21 0.5H9Z" />
7
- <path
8
- d="M18.0625 8.67V7.5C18.0625 7.1925 17.8075 6.9375 17.5 6.9375C17.1925 6.9375 16.9375 7.1925 16.9375 7.5V8.625H12.0625V7.5C12.0625 7.1925 11.8075 6.9375 11.5 6.9375C11.1925 6.9375 10.9375 7.1925 10.9375 7.5V8.67C8.9125 8.8575 7.93 10.065 7.78 11.8575C7.765 12.075 7.945 12.255 8.155 12.255H20.845C21.0625 12.255 21.2425 12.0675 21.22 11.8575C21.07 10.065 20.0875 8.8575 18.0625 8.67Z"
9
- fill="white" />
10
- <path
11
- d="M20.5 13.38H8.5C8.0875 13.38 7.75 13.7175 7.75 14.13V18.75C7.75 21 8.875 22.5 11.5 22.5H17.5C20.125 22.5 21.25 21 21.25 18.75V14.13C21.25 13.7175 20.9125 13.38 20.5 13.38ZM12.4075 19.6575C12.3325 19.725 12.25 19.7775 12.16 19.815C12.07 19.8525 11.9725 19.875 11.875 19.875C11.7775 19.875 11.68 19.8525 11.59 19.815C11.5 19.7775 11.4175 19.725 11.3425 19.6575C11.2075 19.515 11.125 19.32 11.125 19.125C11.125 18.93 11.2075 18.735 11.3425 18.5925C11.4175 18.525 11.5 18.4725 11.59 18.435C11.77 18.36 11.98 18.36 12.16 18.435C12.25 18.4725 12.3325 18.525 12.4075 18.5925C12.5425 18.735 12.625 18.93 12.625 19.125C12.625 19.32 12.5425 19.515 12.4075 19.6575ZM12.565 16.785C12.5275 16.875 12.475 16.9575 12.4075 17.0325C12.3325 17.1 12.25 17.1525 12.16 17.19C12.07 17.2275 11.9725 17.25 11.875 17.25C11.7775 17.25 11.68 17.2275 11.59 17.19C11.5 17.1525 11.4175 17.1 11.3425 17.0325C11.275 16.9575 11.2225 16.875 11.185 16.785C11.1475 16.695 11.125 16.5975 11.125 16.5C11.125 16.4025 11.1475 16.305 11.185 16.215C11.2225 16.125 11.275 16.0425 11.3425 15.9675C11.4175 15.9 11.5 15.8475 11.59 15.81C11.77 15.735 11.98 15.735 12.16 15.81C12.25 15.8475 12.3325 15.9 12.4075 15.9675C12.475 16.0425 12.5275 16.125 12.565 16.215C12.6025 16.305 12.625 16.4025 12.625 16.5C12.625 16.5975 12.6025 16.695 12.565 16.785ZM15.0325 17.0325C14.9575 17.1 14.875 17.1525 14.785 17.19C14.695 17.2275 14.5975 17.25 14.5 17.25C14.4025 17.25 14.305 17.2275 14.215 17.19C14.125 17.1525 14.0425 17.1 13.9675 17.0325C13.8325 16.89 13.75 16.695 13.75 16.5C13.75 16.305 13.8325 16.11 13.9675 15.9675C14.0425 15.9 14.125 15.8475 14.215 15.81C14.395 15.7275 14.605 15.7275 14.785 15.81C14.875 15.8475 14.9575 15.9 15.0325 15.9675C15.1675 16.11 15.25 16.305 15.25 16.5C15.25 16.695 15.1675 16.89 15.0325 17.0325Z"
12
- fill="white" />
13
- <script xmlns="" />
14
- </svg>
@@ -1,83 +0,0 @@
1
- "use strict";
2
- 'use client';
3
-
4
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
- var _react = _interopRequireWildcard(require("react"));
10
- require("./Checkbox.scss");
11
- var _excluded = ["id", "value", "onChange", "containerClassName", "inputClassName", "className", "children", "green", "yellow", "red", "grey", "disabled", "stopPropagation"];
12
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
14
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
15
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
16
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
17
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
18
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
19
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
20
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
21
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
22
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
23
- var Checkbox = function Checkbox(_ref) {
24
- var id = _ref.id,
25
- value = _ref.value,
26
- onChange = _ref.onChange,
27
- containerClassName = _ref.containerClassName,
28
- inputClassName = _ref.inputClassName,
29
- className = _ref.className,
30
- children = _ref.children,
31
- _ref$green = _ref.green,
32
- green = _ref$green === void 0 ? false : _ref$green,
33
- _ref$yellow = _ref.yellow,
34
- yellow = _ref$yellow === void 0 ? false : _ref$yellow,
35
- _ref$red = _ref.red,
36
- red = _ref$red === void 0 ? false : _ref$red,
37
- _ref$grey = _ref.grey,
38
- grey = _ref$grey === void 0 ? false : _ref$grey,
39
- _ref$disabled = _ref.disabled,
40
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
41
- _ref$stopPropagation = _ref.stopPropagation,
42
- stopPropagation = _ref$stopPropagation === void 0 ? true : _ref$stopPropagation,
43
- props = _objectWithoutProperties(_ref, _excluded);
44
- var _useState = (0, _react.useState)(value),
45
- _useState2 = _slicedToArray(_useState, 2),
46
- _value = _useState2[0],
47
- set_value = _useState2[1];
48
- var _onChange = function _onChange(e) {
49
- set_value(e.target.checked);
50
- if (onChange) {
51
- onChange(e.target.checked);
52
- }
53
- };
54
- var colorCheckbox = function colorCheckbox() {
55
- if (green) return 'checkbox-container_green';
56
- if (red) return 'checkbox-container_red';
57
- if (grey) return 'checkbox-container_grey';
58
- if (yellow) return 'checkbox-container_yellow';
59
- };
60
- (0, _react.useEffect)(function () {
61
- set_value(value);
62
- }, [value]);
63
- return /*#__PURE__*/_react["default"].createElement("label", {
64
- onClick: function onClick(e) {
65
- if (stopPropagation) {
66
- e.stopPropagation();
67
- }
68
- },
69
- className: "checkbox-container ".concat(colorCheckbox() || '', " ").concat(containerClassName ? containerClassName : "")
70
- }, /*#__PURE__*/_react["default"].createElement("input", _extends({
71
- type: "checkbox",
72
- disabled: disabled,
73
- id: id,
74
- className: "checkbox " + (inputClassName ? inputClassName : ""),
75
- checked: _value,
76
- onChange: _onChange
77
- }, props)), /*#__PURE__*/_react["default"].createElement("span", {
78
- className: "checkbox-element " + (className ? className : "")
79
- }), /*#__PURE__*/_react["default"].createElement("span", {
80
- className: "checkbox-container__text"
81
- }, " ", children));
82
- };
83
- var _default = exports["default"] = Checkbox;
@@ -1,136 +0,0 @@
1
- .checkbox-container,
2
- .checkbox-container_green,
3
- .checkbox-container_red,
4
- .checkbox-container_yellow,
5
- .checkbox-container_grey {
6
- display: flex;
7
- align-items: center;
8
- justify-content: center;
9
- gap: 8px;
10
- cursor: pointer;
11
-
12
- &__text {
13
- color: #0B110B;
14
- font-family: NunitoSans;
15
- font-size: 13px;
16
- font-style: normal;
17
- font-weight: 600;
18
- line-height: 15px;
19
- overflow: hidden;
20
- }
21
-
22
- .checkbox-element {
23
- display: inline-block;
24
- font-family: 'Montserrat';
25
- font-style: normal;
26
- font-weight: 400;
27
- font-size: 11px;
28
- line-height: 15px;
29
- vertical-align: middle;
30
-
31
- &::before {
32
- content: "";
33
- display: inline-block;
34
- width: 16px;
35
- height: 16px;
36
- left: 344px;
37
- top: 321px;
38
- // authorization box differences
39
- border: none;
40
- border: 1px solid #C5D3C5;
41
- background-color: #fff;
42
- border-radius: 4px;
43
- vertical-align: middle;
44
- }
45
- }
46
-
47
- .checkbox {
48
- opacity: 0;
49
- position: fixed;
50
- width: 1px;
51
- height: 1px;
52
- clip: rect(1px, 1px, 1px, 1px);
53
-
54
- &:checked~.checkbox-element::before {
55
- background-image: url('./img/check.svg');
56
- background-position: center;
57
- background-size: 10px;
58
- background-color: #0009E8;
59
- vertical-align: middle;
60
- background-repeat: no-repeat;
61
- background-position: center;
62
- }
63
- }
64
- }
65
-
66
- // Green checkbox
67
- .checkbox-container_green {
68
-
69
- .checkbox-element {
70
- &::before {
71
- border: 1px solid #83E38C;
72
- background-color: #F0FFF1;
73
- }
74
- }
75
-
76
- .checkbox {
77
-
78
- &:checked~.checkbox-element::before {
79
- background-color: #83E38C;
80
- }
81
- }
82
- }
83
-
84
- // Grey checkbox
85
- .checkbox-container_grey {
86
-
87
- .checkbox-element {
88
- &::before {
89
- border: 1px solid #9199A5;
90
- background-color: #F0F2F4;
91
- }
92
- }
93
-
94
- .checkbox {
95
-
96
- &:checked~.checkbox-element::before {
97
- background-color: #9199A5;
98
- }
99
- }
100
- }
101
-
102
- // Red checkbox
103
- .checkbox-container_red {
104
-
105
- .checkbox-element {
106
- &::before {
107
- border: 1px solid #FF7E7E;
108
- background-color: #FFF0F0;
109
- }
110
- }
111
-
112
- .checkbox {
113
-
114
- &:checked~.checkbox-element::before {
115
- background-color: #FF7E7E;
116
- }
117
- }
118
- }
119
-
120
- // Yellow checkbox
121
- .checkbox-container_yellow {
122
-
123
- .checkbox-element {
124
- &::before {
125
- border: 1px solid #FFDC75;
126
- background-color: #FFFDF0;
127
- }
128
- }
129
-
130
- .checkbox {
131
-
132
- &:checked~.checkbox-element::before {
133
- background-color: #FFDC75;
134
- }
135
- }
136
- }
@@ -1,46 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = exports.Default = void 0;
7
- var _Checkbox = _interopRequireDefault(require("./Checkbox"));
8
- var _addonActions = require("@storybook/addon-actions");
9
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
11
- var _default = exports["default"] = {
12
- title: 'Checkbox',
13
- component: _Checkbox["default"],
14
- args: {
15
- id: 1,
16
- value: true,
17
- onChange: (0, _addonActions.action)('onChange'),
18
- containerClassName: 'test-c',
19
- inputClassName: 'test-i',
20
- className: 'test',
21
- children: /*#__PURE__*/React.createElement("span", null, "test"),
22
- uncontrolled: false
23
- }
24
- };
25
- var Default = exports.Default = {
26
- render: function render(args) {
27
- return /*#__PURE__*/React.createElement("div", {
28
- style: {
29
- display: 'flex',
30
- gap: '10px',
31
- flexDirection: 'column',
32
- justifyContent: 'center',
33
- alignItems: 'center',
34
- height: '100%'
35
- }
36
- }, /*#__PURE__*/React.createElement(_Checkbox["default"], args), /*#__PURE__*/React.createElement(_Checkbox["default"], _extends({
37
- green: true
38
- }, args)), /*#__PURE__*/React.createElement(_Checkbox["default"], _extends({
39
- grey: true
40
- }, args)), /*#__PURE__*/React.createElement(_Checkbox["default"], _extends({
41
- yellow: true
42
- }, args)), /*#__PURE__*/React.createElement(_Checkbox["default"], _extends({
43
- red: true
44
- }, args)));
45
- }
46
- };
@@ -1,3 +0,0 @@
1
- <svg width="10" height="8" viewBox="0 0 10 8" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path id="Vector" d="M8.33268 1.5L3.74935 6.08333L1.66602 4" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
package/dist/main.js DELETED
@@ -1,14 +0,0 @@
1
- /*
2
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
3
- * This devtool is neither made for production nor for readable output files.
4
- * It uses "eval()" calls to create a separate source file in the browser devtools.
5
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
6
- * or disable the default devtool with "devtool: false".
7
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
8
- */
9
- /******/ (() => { // webpackBootstrap
10
- /******/ "use strict";
11
- /******/
12
- /******/
13
- /******/ })()
14
- ;