@stokr/components-library 2.3.65-beta.14 → 2.3.65-beta.16

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.
@@ -43,6 +43,7 @@ const ConfirmModalComponent = _ref => {
43
43
  } = _ref;
44
44
  const titleRef = (0, _react.useRef)(null);
45
45
  const [titleHeight, setTitleHeight] = (0, _react.useState)(0);
46
+ console.log('🔍 ~ ~ src/components/ConfirmModal/ConfirmModal.js:37 ~ titleHeight:', titleHeight);
46
47
 
47
48
  // ResizeObserver for title height (for the blue line)
48
49
  (0, _react.useEffect)(() => {
@@ -55,7 +56,7 @@ const ConfirmModalComponent = _ref => {
55
56
  });
56
57
  resizeObserver.observe(titleRef.current);
57
58
  return () => resizeObserver.disconnect();
58
- }, []);
59
+ }, [title]);
59
60
  const handleConfirm = (0, _react.useCallback)(function () {
60
61
  let value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
61
62
  onConfirm === null || onConfirm === void 0 || onConfirm(value);
@@ -18,7 +18,7 @@ const ContainerWithLine = exports.ContainerWithLine = (0, _styledComponents.defa
18
18
  let {
19
19
  height
20
20
  } = _ref;
21
- return height ? height - 10 : 50;
21
+ return height ? height - 15 : 50;
22
22
  }, props => props.lineColor || _colors.default.blue);
23
23
  const RedBar = exports.RedBar = _styledComponents.default.div.withConfig({
24
24
  displayName: "ConfirmModalstyles__RedBar",
@@ -12,7 +12,7 @@ var _colors = _interopRequireDefault(require("../../styles/colors"));
12
12
  var _checkIcon = require("../../static/images/check-icon.svg");
13
13
  var _filterIcon = require("../../static/images/filter-icon.svg");
14
14
  var _MultiSelect = require("./MultiSelect");
15
- const _excluded = ["label", "options", "value", "onChange", "icon", "minWidth", "maxWidth", "menuAlign", "menuTop"];
15
+ const _excluded = ["label", "options", "value", "onChange", "icon", "minWidth", "maxWidth", "menuAlign", "menuTop", "showClearAll", "clearAllText"];
16
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
17
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
18
18
  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); }
@@ -49,6 +49,10 @@ const OptionsList = _styledComponents.default.div.withConfig({
49
49
  displayName: "TableFilterDropdown__OptionsList",
50
50
  componentId: "sc-z6x0ne-5"
51
51
  })(["max-height:300px;overflow-y:auto;"]);
52
+ const ClearAllOption = _styledComponents.default.div.withConfig({
53
+ displayName: "TableFilterDropdown__ClearAllOption",
54
+ componentId: "sc-z6x0ne-6"
55
+ })(["display:flex;align-items:center;padding:16px 12px;cursor:pointer;font-size:14px;font-weight:400;letter-spacing:0.6px;color:", ";border-top:1px solid ", ";transition:background-color 0.15s ease;&:hover{background-color:", ";}"], _colors.default.blue, _colors.default.lightGrey, _colors.default.grey);
52
56
  const TableFilterDropdown = _ref => {
53
57
  let {
54
58
  label,
@@ -59,7 +63,9 @@ const TableFilterDropdown = _ref => {
59
63
  minWidth,
60
64
  maxWidth,
61
65
  menuAlign = 'left',
62
- menuTop = 8
66
+ menuTop = 8,
67
+ showClearAll = false,
68
+ clearAllText = 'Clear all'
63
69
  } = _ref,
64
70
  props = _objectWithoutProperties(_ref, _excluded);
65
71
  const [isOpen, setIsOpen] = (0, _react.useState)(false);
@@ -143,6 +149,10 @@ const TableFilterDropdown = _ref => {
143
149
  const newValue = value.includes(optionValue) ? value.filter(v => v !== optionValue) : [...value, optionValue];
144
150
  onChange === null || onChange === void 0 || onChange(newValue);
145
151
  }, [value, onChange]);
152
+ const handleClearAll = (0, _react.useCallback)(e => {
153
+ e.stopPropagation();
154
+ onChange === null || onChange === void 0 || onChange([]);
155
+ }, [onChange]);
146
156
  const IconComponent = CustomIcon || _filterIcon.ReactComponent;
147
157
 
148
158
  // Render menu in portal
@@ -164,7 +174,9 @@ const TableFilterDropdown = _ref => {
164
174
  }, /*#__PURE__*/_react.default.createElement(_MultiSelect.CheckboxDiv, {
165
175
  isSelected: isSelected
166
176
  }, /*#__PURE__*/_react.default.createElement(_checkIcon.ReactComponent, null)), /*#__PURE__*/_react.default.createElement(_MultiSelect.OptionLabel, null, option.label));
167
- })));
177
+ })), showClearAll && hasActiveFilters && /*#__PURE__*/_react.default.createElement(ClearAllOption, {
178
+ onClick: handleClearAll
179
+ }, clearAllText));
168
180
  return /*#__PURE__*/(0, _reactDom.createPortal)(menu, document.body);
169
181
  };
170
182
  return /*#__PURE__*/_react.default.createElement(DropdownContainer, _extends({
@@ -197,7 +209,11 @@ TableFilterDropdown.propTypes = {
197
209
  /** Alignment of the dropdown menu */
198
210
  menuAlign: _propTypes.default.oneOf(['left', 'right']),
199
211
  /** Top offset for the dropdown menu in pixels (default: 8) */
200
- menuTop: _propTypes.default.number
212
+ menuTop: _propTypes.default.number,
213
+ /** Show "Clear all" option at the bottom of the list */
214
+ showClearAll: _propTypes.default.bool,
215
+ /** Custom text for the "Clear all" option */
216
+ clearAllText: _propTypes.default.string
201
217
  };
202
218
  TableFilterDropdown.defaultProps = {
203
219
  value: [],
@@ -205,6 +221,8 @@ TableFilterDropdown.defaultProps = {
205
221
  minWidth: 150,
206
222
  maxWidth: 300,
207
223
  menuAlign: 'left',
208
- menuTop: 8
224
+ menuTop: 8,
225
+ showClearAll: false,
226
+ clearAllText: 'Clear all'
209
227
  };
210
228
  var _default = exports.default = TableFilterDropdown;
@@ -0,0 +1,173 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.showSuccess = exports.showProgress = exports.default = exports.SuccessModalComponent = exports.SuccessModal = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _client = require("react-dom/client");
9
+ var _propTypes = _interopRequireDefault(require("prop-types"));
10
+ var _dotlottieReact = require("@lottiefiles/dotlottie-react");
11
+ var _Modal = require("../Modal");
12
+ var _SuccessModal = require("./SuccessModal.styles");
13
+ var _checked = _interopRequireDefault(require("../../../static/animations/checked.lottie"));
14
+ var _progress = _interopRequireDefault(require("../../../static/animations/progress.lottie"));
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
17
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
20
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
21
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
22
+ 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); }
23
+ const variantConfig = {
24
+ success: {
25
+ animation: _checked.default,
26
+ segment: [0, 50],
27
+ loop: false
28
+ },
29
+ progress: {
30
+ animation: _progress.default,
31
+ segment: null,
32
+ loop: true
33
+ }
34
+ };
35
+ const SuccessModalComponent = _ref => {
36
+ let {
37
+ isOpen,
38
+ onClose,
39
+ variant = 'success',
40
+ title,
41
+ subtitle,
42
+ content,
43
+ animationSrc,
44
+ loop,
45
+ autoplay = true,
46
+ segment,
47
+ speed = 1,
48
+ modalProps = {},
49
+ maxWidth = '800px'
50
+ } = _ref;
51
+ const config = variantConfig[variant] || variantConfig.success;
52
+ const animationSource = animationSrc || config.animation;
53
+ const animationLoop = loop !== undefined ? loop : config.loop;
54
+ const animationSegment = segment || config.segment;
55
+ (0, _react.useEffect)(() => {
56
+ if (!isOpen) return;
57
+ const handleKeyDown = e => {
58
+ if (e.key === 'Escape') {
59
+ onClose === null || onClose === void 0 || onClose();
60
+ }
61
+ };
62
+ document.addEventListener('keydown', handleKeyDown);
63
+ return () => document.removeEventListener('keydown', handleKeyDown);
64
+ }, [isOpen, onClose]);
65
+ return /*#__PURE__*/_react.default.createElement(_Modal.Modal, _extends({
66
+ isOpen: isOpen,
67
+ onClose: onClose,
68
+ maxHeight: "90vh",
69
+ boxStyles: {
70
+ minHeight: 'unset'
71
+ },
72
+ maxWidth: maxWidth
73
+ }, modalProps), /*#__PURE__*/_react.default.createElement(_SuccessModal.SuccessModalContent, null, /*#__PURE__*/_react.default.createElement(_SuccessModal.AnimationContainer, null, /*#__PURE__*/_react.default.createElement(_dotlottieReact.DotLottieReact, {
74
+ src: animationSource,
75
+ loop: animationLoop,
76
+ autoplay: autoplay,
77
+ speed: speed,
78
+ segment: animationSegment,
79
+ style: {
80
+ width: '100%',
81
+ height: '100%'
82
+ }
83
+ })), title && /*#__PURE__*/_react.default.createElement(_SuccessModal.Title, null, title), subtitle && /*#__PURE__*/_react.default.createElement(_SuccessModal.Subtitle, null, subtitle), content && /*#__PURE__*/_react.default.createElement(_SuccessModal.ContentWrapper, null, content)));
84
+ };
85
+ exports.SuccessModal = exports.SuccessModalComponent = SuccessModalComponent;
86
+ SuccessModalComponent.propTypes = {
87
+ isOpen: _propTypes.default.bool.isRequired,
88
+ onClose: _propTypes.default.func.isRequired,
89
+ variant: _propTypes.default.oneOf(['success', 'progress']),
90
+ title: _propTypes.default.string,
91
+ subtitle: _propTypes.default.string,
92
+ content: _propTypes.default.node,
93
+ animationSrc: _propTypes.default.string,
94
+ loop: _propTypes.default.bool,
95
+ autoplay: _propTypes.default.bool,
96
+ segment: _propTypes.default.arrayOf(_propTypes.default.number),
97
+ speed: _propTypes.default.number,
98
+ modalProps: _propTypes.default.object,
99
+ maxWidth: _propTypes.default.string
100
+ };
101
+ let successContainer = null;
102
+ let successRoot = null;
103
+ const showSuccess = function () {
104
+ let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
105
+ const {
106
+ variant = 'success',
107
+ title = '',
108
+ subtitle = '',
109
+ content = null,
110
+ animationSrc = null,
111
+ loop,
112
+ autoplay = true,
113
+ segment,
114
+ speed = 1,
115
+ autoClose = 0,
116
+ modalProps = {},
117
+ maxWidth = '800px'
118
+ } = options;
119
+ return new Promise(resolve => {
120
+ if (!successContainer) {
121
+ successContainer = document.createElement('div');
122
+ successContainer.id = 'success-modal-root';
123
+ document.body.appendChild(successContainer);
124
+ successRoot = (0, _client.createRoot)(successContainer);
125
+ }
126
+ let isClosed = false;
127
+ const handleClose = () => {
128
+ if (isClosed) return;
129
+ isClosed = true;
130
+ renderModal(false);
131
+ setTimeout(() => {
132
+ renderModal(null);
133
+ resolve();
134
+ }, 350);
135
+ };
136
+ const renderModal = isOpen => {
137
+ if (isOpen === null) {
138
+ successRoot.render(null);
139
+ return;
140
+ }
141
+ successRoot.render(/*#__PURE__*/_react.default.createElement(SuccessModalComponent, {
142
+ isOpen: isOpen,
143
+ onClose: handleClose,
144
+ variant: variant,
145
+ title: title,
146
+ subtitle: subtitle,
147
+ content: content,
148
+ animationSrc: animationSrc,
149
+ loop: loop,
150
+ autoplay: autoplay,
151
+ segment: segment,
152
+ speed: speed,
153
+ modalProps: modalProps,
154
+ maxWidth: maxWidth
155
+ }));
156
+ };
157
+ renderModal(true);
158
+ if (autoClose > 0) {
159
+ setTimeout(() => {
160
+ handleClose();
161
+ }, autoClose);
162
+ }
163
+ });
164
+ };
165
+ exports.showSuccess = showSuccess;
166
+ const showProgress = function () {
167
+ let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
168
+ return showSuccess(_objectSpread(_objectSpread({}, options), {}, {
169
+ variant: 'progress'
170
+ }));
171
+ };
172
+ exports.showProgress = showProgress;
173
+ var _default = exports.default = showSuccess;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Title = exports.SuccessModalContent = exports.Subtitle = exports.ContentWrapper = exports.AnimationContainer = void 0;
7
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
8
+ var _colors = _interopRequireDefault(require("../../../styles/colors"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ const SuccessModalContent = exports.SuccessModalContent = _styledComponents.default.div.withConfig({
11
+ displayName: "SuccessModalstyles__SuccessModalContent",
12
+ componentId: "sc-8cspgo-0"
13
+ })(["display:flex;flex-direction:column;align-items:center;text-align:center;padding:40px 24px;max-height:calc(90vh - 60px);overflow-y:auto;"]);
14
+ const AnimationContainer = exports.AnimationContainer = _styledComponents.default.div.withConfig({
15
+ displayName: "SuccessModalstyles__AnimationContainer",
16
+ componentId: "sc-8cspgo-1"
17
+ })(["width:80px;height:80px;min-height:80px;margin-bottom:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0;"]);
18
+ const Title = exports.Title = _styledComponents.default.h2.withConfig({
19
+ displayName: "SuccessModalstyles__Title",
20
+ componentId: "sc-8cspgo-2"
21
+ })(["margin:0 0 16px 0;font-size:22px;font-weight:800;color:", ";text-transform:uppercase;letter-spacing:0.8px;line-height:28px;flex-shrink:0;"], _colors.default.black);
22
+ const Subtitle = exports.Subtitle = _styledComponents.default.p.withConfig({
23
+ displayName: "SuccessModalstyles__Subtitle",
24
+ componentId: "sc-8cspgo-3"
25
+ })(["margin:0 0 24px 0;font-size:16px;font-weight:300;line-height:24px;letter-spacing:0.6px;max-width:550px;flex-shrink:0;"]);
26
+ const ContentWrapper = exports.ContentWrapper = _styledComponents.default.div.withConfig({
27
+ displayName: "SuccessModalstyles__ContentWrapper",
28
+ componentId: "sc-8cspgo-4"
29
+ })(["width:100%;margin-top:8px;"]);
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "SuccessModal", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _SuccessModal.SuccessModal;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "SuccessModalComponent", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _SuccessModal.SuccessModalComponent;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "default", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _SuccessModal.default;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "showProgress", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _SuccessModal.showProgress;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "showSuccess", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _SuccessModal.showSuccess;
34
+ }
35
+ });
36
+ var _SuccessModal = _interopRequireWildcard(require("./SuccessModal"));
37
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
@@ -17,7 +17,7 @@ const CardContainer = _styledComponents.default.div.withConfig({
17
17
  const CardTitle = _styledComponents.default.div.withConfig({
18
18
  displayName: "PaymentDetailsCard__CardTitle",
19
19
  componentId: "sc-e830fo-1"
20
- })(["font-size:12px;letter-spacing:0.6px;font-weight:600;color:", ";background:#f1f5f9;padding:12px 24px;margin:-20px -32px 20px -32px;border-radius:9px 9px 0 0;border-bottom:1px solid ", ";"], _colors.default.futureBlack, _colors.default.lightGrey);
20
+ })(["font-size:12px;letter-spacing:0.6px;font-weight:600;color:", ";background:#f1f5f9;padding:12px 24px;margin:-20px -32px 20px -32px;border-radius:9px 9px 0 0;border-bottom:1px solid ", ";text-align:start;"], _colors.default.futureBlack, _colors.default.lightGrey);
21
21
  const AmountSection = _styledComponents.default.div.withConfig({
22
22
  displayName: "PaymentDetailsCard__AmountSection",
23
23
  componentId: "sc-e830fo-2"
@@ -25,7 +25,7 @@ const AmountSection = _styledComponents.default.div.withConfig({
25
25
  const AmountLabel = _styledComponents.default.div.withConfig({
26
26
  displayName: "PaymentDetailsCard__AmountLabel",
27
27
  componentId: "sc-e830fo-3"
28
- })(["font-size:11px;font-weight:400;line-height:20px;text-transform:uppercase;letter-spacing:2px;margin-bottom:12px;color:", ";"], _colors.default.futureBlack);
28
+ })(["font-size:11px;font-weight:400;line-height:20px;text-transform:uppercase;letter-spacing:2px;margin-bottom:12px;color:", ";text-align:start;"], _colors.default.futureBlack);
29
29
  const AmountDisplay = _styledComponents.default.div.withConfig({
30
30
  displayName: "PaymentDetailsCard__AmountDisplay",
31
31
  componentId: "sc-e830fo-4"
@@ -10,7 +10,7 @@ var _Icon = require("../Icon/Icon.style");
10
10
  var _transferIcon = require("../../static/images/transfer-icon.svg");
11
11
  var _checkmarkCircleIcon = require("../../static/images/checkmark-circle-icon.svg");
12
12
  var _closeCircleIcon = require("../../static/images/close-circle-icon.svg");
13
- var _docIcon = require("../../static/images/doc-icon.svg");
13
+ var _addFolderIcon = require("../../static/images/add-folder-icon.svg");
14
14
  var _colors = _interopRequireDefault(require("../../styles/colors"));
15
15
  var _StatusTag = require("./StatusTag.styles");
16
16
  const _excluded = ["variant", "icon", "text", "tooltip", "tooltipProps", "iconColor", "hoverColor", "disableHoverColor", "colorActive", "minWidth", "className", "containerStyle", "iconStyle", "textStyle", "onClick", "center"];
@@ -21,13 +21,14 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
21
21
  // Variant configuration - maps variant to icon and colors only
22
22
  const variantConfig = {
23
23
  pending: {
24
- icon: /*#__PURE__*/_react.default.createElement(_docIcon.ReactComponent, {
24
+ icon: /*#__PURE__*/_react.default.createElement(_addFolderIcon.ReactComponent, {
25
25
  width: 12,
26
26
  height: 12
27
27
  }),
28
28
  iconColor: '#021128',
29
29
  hoverColor: '#021128',
30
- disableHoverColor: true
30
+ disableHoverColor: true,
31
+ useStroke: true
31
32
  },
32
33
  initiated: {
33
34
  icon: /*#__PURE__*/_react.default.createElement(_Icon.Icon, {
@@ -14,7 +14,7 @@ const StatusTagContainer = exports.StatusTagContainer = _styledComponents.defaul
14
14
  const StatusTagWrapper = exports.StatusTagWrapper = _styledComponents.default.div.withConfig({
15
15
  displayName: "StatusTagstyles__StatusTagWrapper",
16
16
  componentId: "sc-24azs1-1"
17
- })(["display:flex;align-items:center;gap:6px;padding:6px 10px;background-color:transparent;border:1px solid ", ";border-radius:4px;white-space:nowrap;min-width:", ";justify-content:", ";"], _colors.default.lightGrey, props => props.minWidth || 'auto', props => props.center ? 'center' : 'flex-start');
17
+ })(["display:flex;align-items:center;gap:6px;padding:5px 8px;background-color:transparent;border:1px solid ", ";border-radius:6px;white-space:nowrap;min-width:", ";justify-content:", ";"], _colors.default.lightGrey, props => props.minWidth || 'auto', props => props.center ? 'center' : 'flex-start');
18
18
  const IconWrapper = exports.IconWrapper = _styledComponents.default.div.withConfig({
19
19
  displayName: "StatusTagstyles__IconWrapper",
20
20
  componentId: "sc-24azs1-2"
package/dist/index.js CHANGED
@@ -663,6 +663,17 @@ Object.keys(_ConfirmModal).forEach(function (key) {
663
663
  }
664
664
  });
665
665
  });
666
+ var _SuccessModal = require("./components/Modal/SuccessModal");
667
+ Object.keys(_SuccessModal).forEach(function (key) {
668
+ if (key === "default" || key === "__esModule") return;
669
+ if (key in exports && exports[key] === _SuccessModal[key]) return;
670
+ Object.defineProperty(exports, key, {
671
+ enumerable: true,
672
+ get: function () {
673
+ return _SuccessModal[key];
674
+ }
675
+ });
676
+ });
666
677
  var _MultiProgressBar = require("./components/MultiProgressBar/MultiProgressBar");
667
678
  Object.keys(_MultiProgressBar).forEach(function (key) {
668
679
  if (key === "default" || key === "__esModule") return;
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
2
+ <svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M10 14H12M12 14H14M12 14V16M12 14V12" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"/>
4
+ <path d="M22 11.7979C22 9.16554 22 7.84935 21.2305 6.99383C21.1598 6.91514 21.0849 6.84024 21.0062 6.76946C20.1506 6 18.8345 6 16.2021 6H15.8284C14.6747 6 14.0979 6 13.5604 5.84678C13.2651 5.7626 12.9804 5.64471 12.7121 5.49543C12.2237 5.22367 11.8158 4.81578 11 4L10.4497 3.44975C10.1763 3.17633 10.0396 3.03961 9.89594 2.92051C9.27652 2.40704 8.51665 2.09229 7.71557 2.01738C7.52976 2 7.33642 2 6.94975 2C6.06722 2 5.62595 2 5.25839 2.06935C3.64031 2.37464 2.37464 3.64031 2.06935 5.25839C2 5.62595 2 6.06722 2 6.94975M21.9913 16C21.9554 18.4796 21.7715 19.8853 20.8284 20.8284C19.6569 22 17.7712 22 14 22H10C6.22876 22 4.34315 22 3.17157 20.8284C2 19.6569 2 17.7712 2 14V11" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"/>
5
+ </svg>
@@ -68,10 +68,13 @@ const getCurrencyIcon = (currency, customIcon) => {
68
68
  switch (currency.toLowerCase()) {
69
69
  case 'btc':
70
70
  case 'bitcoin':
71
+ case 'btc-fb':
71
72
  return _bitcoinLogo.default;
72
73
  case 'usdc':
74
+ case 'usdc-fb':
73
75
  return _usdcLogo.default;
74
76
  case 'usdq':
77
+ case 'usdq-fb':
75
78
  return _usdqLogo.default;
76
79
  case 'bmn2':
77
80
  return _bmn2Logo.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokr/components-library",
3
- "version": "2.3.65-beta.14",
3
+ "version": "2.3.65-beta.16",
4
4
  "description": "STOKR - Components Library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -31,6 +31,7 @@
31
31
  "serve": "npx http-server ./storybook-static -p 9009"
32
32
  },
33
33
  "dependencies": {
34
+ "@lottiefiles/dotlottie-react": "^0.17.13",
34
35
  "ajv": "^8.17.1",
35
36
  "axios": "^0.30.2",
36
37
  "bignumber.js": "^9.1.1",