@alphapoint/apex-web 5.7.0 → 5.8.0

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 (91) hide show
  1. package/lib/apex.integration.test.js +435 -0
  2. package/lib/apex.js +37 -1
  3. package/lib/apex.test.js +138 -0
  4. package/lib/components/2FA/PasskeyOption.js +126 -0
  5. package/lib/components/2FA/TwoFactorAuthComponent.js +24 -5
  6. package/lib/components/2FA/TwoFactorAuthComponent.test.js +94 -0
  7. package/lib/components/2FA/TwoFactorAuthContainer.js +94 -16
  8. package/lib/components/2FA/TwoFactorAuthContainer.test.js +412 -0
  9. package/lib/components/ConfirmBlockTradeModal/ConfirmBlockTradeModalContainer.js +34 -6
  10. package/lib/components/ConfirmBlockTradeModal/ConfirmBlockTradeModalContainer.test.js +298 -0
  11. package/lib/components/ConfirmOrderModal/ConfirmOrderModalComponent.js +26 -4
  12. package/lib/components/ConfirmOrderModal/ConfirmOrderModalContainer.js +4 -1
  13. package/lib/components/EnableTwoFactorAuth/Disable2FAForm.js +22 -7
  14. package/lib/components/EnableTwoFactorAuth/Disable2FAModal.js +15 -5
  15. package/lib/components/EnableTwoFactorAuth/Disable2FAModal.test.js +460 -0
  16. package/lib/components/EnableTwoFactorAuth/Disable2FAModalContainer.js +108 -16
  17. package/lib/components/EnableTwoFactorAuth/EnableTwoFactorAuthContainerFactory.js +3 -2
  18. package/lib/components/FusionAuth/UnlinkOAuthIdentityModal.css +13 -0
  19. package/lib/components/FusionAuth/UnlinkOAuthIdentityModal.js +246 -0
  20. package/lib/components/FusionAuth/UnlinkOAuthIdentityModal.test.js +521 -0
  21. package/lib/components/Login/LoginFormComponent.js +1 -1
  22. package/lib/components/OrderEntryComponents/advancedForm/AdvancedOrderFormContainer.js +2 -0
  23. package/lib/components/OrderEntryComponents/common/FormAmountFields.js +5 -0
  24. package/lib/components/OrderEntryComponents/common/TwapScheduleFields.js +98 -0
  25. package/lib/components/OrderEntryComponents/defaultForm/OrderEntryAnchoring.js +86 -39
  26. package/lib/components/OrderEntryComponents/defaultForm/OrderEntryAnchoring.test.js +326 -0
  27. package/lib/components/OrderEntryComponents/defaultForm/OrderEntryContainer.js +10 -2
  28. package/lib/components/OrderHistoryComponents/DepositsStatus/DepositsStatusComponent.js +1 -1
  29. package/lib/components/OrderHistoryComponents/DepositsStatus/DepositsStatusComponent.test.js +99 -0
  30. package/lib/components/OrderHistoryComponents/InactiveOrders/InactiveOrdersComponent.js +1 -1
  31. package/lib/components/OrderHistoryComponents/OpenOrders/OpenOrdersComponent.js +1 -1
  32. package/lib/components/OrderHistoryComponents/WithdrawStatus/WithdrawStatusComponent.js +1 -1
  33. package/lib/components/OrderHistoryComponents/WithdrawStatus/WithdrawStatusComponent.test.js +113 -0
  34. package/lib/components/Settings/ProfileAndSecurity/PasskeysSettingsCard/PasskeysSettingsCard.css +108 -0
  35. package/lib/components/Settings/ProfileAndSecurity/PasskeysSettingsCard/PasskeysSettingsCard.test.js +983 -0
  36. package/lib/components/Settings/ProfileAndSecurity/PasskeysSettingsCard/PasskeysSettingsCardComponent.js +500 -0
  37. package/lib/components/Settings/ProfileAndSecurity/PasskeysSettingsCard/index.js +9 -0
  38. package/lib/components/Settings/ProfileAndSecurity/ProfileSettingsCard/ProfileForm/SsoLinkRowComponent.css +4 -0
  39. package/lib/components/Settings/ProfileAndSecurity/ProfileSettingsCard/ProfileForm/SsoLinkRowComponent.js +29 -17
  40. package/lib/components/Settings/ProfileAndSecurity/ProfileSettingsCard/ProfileForm/SsoLinkRowComponent.test.js +135 -0
  41. package/lib/components/Settings/ProfileAndSecurity/TwoFactorAuthSettingsCard/EnableTwoFactorAuth/EnableTwoFactorAuthComponent.test.js +23 -1
  42. package/lib/components/TwoFactorAuthForm/TwoFactorAuthForm.test.js +475 -0
  43. package/lib/components/TwoFactorAuthForm/TwoFactorAuthFormComponent.js +26 -5
  44. package/lib/components/TwoFactorAuthForm/TwoFactorAuthFormContainer.js +50 -32
  45. package/lib/components/common/APAutoTabInput/APAutoTabInput.js +5 -2
  46. package/lib/components/common/APSelect/APSelect.js +3 -1
  47. package/lib/config/CONFIG.md +4 -0
  48. package/lib/config/configDefault.json +2 -1
  49. package/lib/constants/sendOrder/orderEntryFormConstants.js +23 -4
  50. package/lib/constants/sendOrder/timeInForceConstants.js +3 -1
  51. package/lib/constants/sendOrder/twapRejectReasons.js +26 -0
  52. package/lib/helpers/orderHistoryHelper.js +13 -1
  53. package/lib/helpers/orderHistoryHelper.test.js +58 -13
  54. package/lib/helpers/passkeyApi.js +228 -0
  55. package/lib/helpers/passkeyApi.test.js +171 -0
  56. package/lib/helpers/placeOrderHelper.js +76 -61
  57. package/lib/helpers/placeOrderHelper.test.js +169 -10
  58. package/lib/helpers/recalculateOrderHelper.js +4 -1
  59. package/lib/helpers/recalculateOrderHelper.test.js +88 -2
  60. package/lib/helpers/twapOrderHelper.js +265 -0
  61. package/lib/helpers/twapOrderHelper.test.js +467 -0
  62. package/lib/helpers/webauthnHelper.js +300 -0
  63. package/lib/helpers/webauthnHelper.test.js +199 -0
  64. package/lib/hocs/withOneSubmission.js +168 -0
  65. package/lib/redux/actions/apiActions.js +52 -1
  66. package/lib/redux/actions/apiActions.test.js +135 -0
  67. package/lib/redux/actions/authActions.js +514 -198
  68. package/lib/redux/actions/authActions.test.js +627 -47
  69. package/lib/redux/actions/depositActions.js +1 -1
  70. package/lib/redux/actions/depositActions.test.js +100 -30
  71. package/lib/redux/actions/fusionAuthActions.test.js +265 -84
  72. package/lib/redux/actions/modalActions.js +1 -0
  73. package/lib/redux/actions/orderEntryActions.blockTrade.test.js +306 -0
  74. package/lib/redux/actions/orderEntryActions.js +74 -22
  75. package/lib/redux/actions/orderEntryActions.test.js +63 -11
  76. package/lib/redux/actions/orderHistoryActions.js +9 -4
  77. package/lib/redux/actions/orderHistoryActions.test.js +63 -0
  78. package/lib/redux/actions/userActions.js +314 -177
  79. package/lib/redux/actions/userActions.test.js +844 -268
  80. package/lib/redux/margin/actions/marginActions.js +6 -3
  81. package/lib/redux/margin/actions/marginActions.test.js +166 -0
  82. package/lib/redux/middlewares/authMiddleware.js +5 -0
  83. package/lib/redux/middlewares/authMiddleware.test.js +88 -29
  84. package/lib/redux/reducers/authReducer.js +1 -0
  85. package/lib/redux/reducers/authReducer.test.js +38 -0
  86. package/lib/redux/selectors/orderEntrySelector.js +19 -8
  87. package/lib/redux/selectors/orderEntrySelector.test.js +209 -0
  88. package/lib/redux/selectors/orderTotalSelector.test.js +40 -1
  89. package/lib/services/fms/fms.js +2 -0
  90. package/lib/services/fms/fms.test.js +35 -0
  91. package/package.json +4 -4
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+
3
+ 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); }
4
+ var _react = _interopRequireWildcard(require("react"));
5
+ var _client = _interopRequireDefault(require("react-dom/client"));
6
+ var _DepositsStatusComponent = _interopRequireDefault(require("./DepositsStatusComponent"));
7
+ var _table = require("../../data/table");
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(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 (var _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); }
10
+ global.IS_REACT_ACT_ENVIRONMENT = true;
11
+ jest.mock('../../../helpers/dateHelper', function () {
12
+ return {
13
+ formatDateTime: jest.fn(function (dateTime) {
14
+ return "formatted-".concat(dateTime);
15
+ })
16
+ };
17
+ });
18
+ jest.mock('../../../helpers/numberFormatter', function () {
19
+ return {
20
+ formatNumberToLocale: jest.fn(function (number) {
21
+ return "".concat(number);
22
+ })
23
+ };
24
+ });
25
+ jest.mock('../../../helpers/cssClassesHelper', function () {
26
+ return {
27
+ getBEMClasses: jest.fn(function (baseClass) {
28
+ return function (modifier) {
29
+ return modifier ? "".concat(baseClass, "--").concat(modifier) : baseClass;
30
+ };
31
+ })
32
+ };
33
+ });
34
+ jest.mock('../../data/table', function () {
35
+ return {
36
+ Table: jest.fn(function () {
37
+ return null;
38
+ })
39
+ };
40
+ });
41
+ jest.mock('react-i18next', function () {
42
+ return {
43
+ useTranslation: function useTranslation() {
44
+ return {
45
+ t: function t(key) {
46
+ return "translated:".concat(key);
47
+ }
48
+ };
49
+ }
50
+ };
51
+ });
52
+ describe('DepositsStatusComponent status label', function () {
53
+ var defaultProps = {
54
+ data: [],
55
+ decimalPlaces: {},
56
+ config: {
57
+ maxLines: 10,
58
+ usePagination: false
59
+ },
60
+ getDepositTickets: jest.fn(),
61
+ selectedAccountId: 1,
62
+ fetching: false,
63
+ openTravelRuleModal: jest.fn()
64
+ };
65
+ var container;
66
+ var root;
67
+ var renderStatusCell = function renderStatusCell(status) {
68
+ (0, _react.act)(function () {
69
+ root.render(/*#__PURE__*/_react["default"].createElement(_DepositsStatusComponent["default"], defaultProps));
70
+ });
71
+ var columns = _table.Table.mock.calls[_table.Table.mock.calls.length - 1][0].columns;
72
+ var statusColumn = columns.find(function (col) {
73
+ return col.dataTest === 'Status';
74
+ });
75
+ return statusColumn.cell({
76
+ row: {
77
+ original: {
78
+ Status: status
79
+ }
80
+ }
81
+ });
82
+ };
83
+ beforeEach(function () {
84
+ jest.clearAllMocks();
85
+ container = document.createElement('div');
86
+ root = _client["default"].createRoot(container);
87
+ });
88
+ afterEach(function () {
89
+ (0, _react.act)(function () {
90
+ root.unmount();
91
+ });
92
+ });
93
+ it('shows the translated Under Review label for an AddressBlacklisted ticket', function () {
94
+ expect(renderStatusCell('AddressBlacklisted')).toBe('translated:Under Review');
95
+ });
96
+ it('shows the translated raw status for any other ticket', function () {
97
+ expect(renderStatusCell('FullyProcessed')).toBe('translated:FullyProcessed');
98
+ });
99
+ });
@@ -116,7 +116,7 @@ var InactiveOrdersComponent = function InactiveOrdersComponent(props) {
116
116
  var row = _ref6.row;
117
117
  return /*#__PURE__*/_react["default"].createElement("div", {
118
118
  className: baseClass('price')
119
- }, (isFutures ? _orderHistoryHelper.getFuturesOrderPriceToDisplay : _orderHistoryHelper.getOrderPriceToDisplay)(row.original, (0, _decimalPlacesHelper.convertIncrementToIntDecimalPlaces)(row.original.selectedInstrument.PriceIncrement)));
119
+ }, (isFutures ? _orderHistoryHelper.getFuturesOrderPriceToDisplay : _orderHistoryHelper.getOrderPriceToDisplay)(row.original, (0, _decimalPlacesHelper.convertIncrementToIntDecimalPlaces)(row.original.selectedInstrument.PriceIncrement), t));
120
120
  }
121
121
  }, {
122
122
  header: t('Date/Time'),
@@ -115,7 +115,7 @@ var OpenOrdersComponent = function OpenOrdersComponent(props) {
115
115
  var row = _ref5.row;
116
116
  return /*#__PURE__*/_react["default"].createElement("div", {
117
117
  className: baseClass('price')
118
- }, (0, _orderHistoryHelper.getOrderPriceToDisplay)(row.original, (0, _decimalPlacesHelper.convertIncrementToIntDecimalPlaces)(row.original.selectedInstrument.PriceIncrement)));
118
+ }, (0, _orderHistoryHelper.getOrderPriceToDisplay)(row.original, (0, _decimalPlacesHelper.convertIncrementToIntDecimalPlaces)(row.original.selectedInstrument.PriceIncrement), t));
119
119
  }
120
120
  }, {
121
121
  header: t('Date/Time'),
@@ -60,7 +60,7 @@ var WithdrawStatusComponent = function WithdrawStatusComponent(props) {
60
60
  },
61
61
  cell: function cell(_ref3) {
62
62
  var row = _ref3.row;
63
- return t(row.original.Status);
63
+ return row.original.Status === 'AddressBlacklisted' ? t('Under Review') : t(row.original.Status);
64
64
  }
65
65
  }, {
66
66
  header: t('Transaction Id'),
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+
3
+ var _react = _interopRequireWildcard(require("react"));
4
+ var _client = _interopRequireDefault(require("react-dom/client"));
5
+ var _WithdrawStatusComponent = _interopRequireDefault(require("./WithdrawStatusComponent"));
6
+ var _table = require("../../data/table");
7
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
8
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(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 (var _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); }
9
+ 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); }
10
+ 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; }
11
+ 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; }
12
+ 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; }
13
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
+ 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); }
15
+ global.IS_REACT_ACT_ENVIRONMENT = true;
16
+ jest.mock('../../../helpers/dateHelper', function () {
17
+ return {
18
+ formatDateTime: jest.fn(function (dateTime) {
19
+ return "formatted-".concat(dateTime);
20
+ })
21
+ };
22
+ });
23
+ jest.mock('../../../helpers/numberFormatter', function () {
24
+ return {
25
+ formatNumberToLocale: jest.fn(function (number) {
26
+ return "".concat(number);
27
+ })
28
+ };
29
+ });
30
+ jest.mock('../../../helpers/cssClassesHelper', function () {
31
+ return {
32
+ getBEMClasses: jest.fn(function (baseClass) {
33
+ return function (modifier) {
34
+ return modifier ? "".concat(baseClass, "--").concat(modifier) : baseClass;
35
+ };
36
+ })
37
+ };
38
+ });
39
+ jest.mock('../../data/table', function () {
40
+ return {
41
+ Table: jest.fn(function () {
42
+ return null;
43
+ })
44
+ };
45
+ });
46
+ jest.mock('react-i18next', function () {
47
+ var mockReact = require('react');
48
+ return {
49
+ withTranslation: function withTranslation() {
50
+ return function (Component) {
51
+ var WithTranslation = function WithTranslation(props) {
52
+ var t = function t(key) {
53
+ return "translated:".concat(key);
54
+ };
55
+ return mockReact.createElement(Component, _objectSpread(_objectSpread({}, props), {}, {
56
+ t: t
57
+ }));
58
+ };
59
+ WithTranslation.displayName = "withTranslation(".concat(Component.displayName || Component.name, ")");
60
+ return WithTranslation;
61
+ };
62
+ }
63
+ };
64
+ });
65
+ describe('WithdrawStatusComponent status label', function () {
66
+ var defaultProps = {
67
+ data: [],
68
+ decimalPlaces: {},
69
+ config: {
70
+ maxLines: 10,
71
+ usePagination: false
72
+ },
73
+ cancelWithdrawTicket: jest.fn(),
74
+ selectedAccountId: '1',
75
+ getWithdrawTickets: jest.fn(),
76
+ OMSId: 1,
77
+ fetching: false
78
+ };
79
+ var container;
80
+ var root;
81
+ var renderStatusCell = function renderStatusCell(status) {
82
+ (0, _react.act)(function () {
83
+ root.render(/*#__PURE__*/_react["default"].createElement(_WithdrawStatusComponent["default"], defaultProps));
84
+ });
85
+ var columns = _table.Table.mock.calls[_table.Table.mock.calls.length - 1][0].columns;
86
+ var statusColumn = columns.find(function (col) {
87
+ return col.dataTest === 'Status';
88
+ });
89
+ return statusColumn.cell({
90
+ row: {
91
+ original: {
92
+ Status: status
93
+ }
94
+ }
95
+ });
96
+ };
97
+ beforeEach(function () {
98
+ jest.clearAllMocks();
99
+ container = document.createElement('div');
100
+ root = _client["default"].createRoot(container);
101
+ });
102
+ afterEach(function () {
103
+ (0, _react.act)(function () {
104
+ root.unmount();
105
+ });
106
+ });
107
+ it('shows the translated Under Review label for an AddressBlacklisted ticket', function () {
108
+ expect(renderStatusCell('AddressBlacklisted')).toBe('translated:Under Review');
109
+ });
110
+ it('shows the translated raw status for any other ticket', function () {
111
+ expect(renderStatusCell('FullyProcessed')).toBe('translated:FullyProcessed');
112
+ });
113
+ });
@@ -0,0 +1,108 @@
1
+ /*
2
+ * Passkeys card on Profile & Security. Padding, text and buttons match the Two-Factor Authentication
3
+ * and Password cards beside it.
4
+ */
5
+ .passkeys-card__body {
6
+ display: flex;
7
+ flex-direction: column;
8
+ align-items: flex-start;
9
+ gap: 1.6rem;
10
+ padding: 2.4rem;
11
+ font-size: 1.4rem;
12
+ line-height: 1.29;
13
+ color: var(--font__color-secondary);
14
+ }
15
+
16
+ .passkeys-card__body > * {
17
+ max-width: 100%;
18
+ }
19
+
20
+ .passkeys-card__notice {
21
+ width: 100%;
22
+ padding: 1.2rem 1.6rem;
23
+ border-radius: 2px;
24
+ border: 1px solid var(--border__color);
25
+ background: var(--primary__bg-color);
26
+ color: var(--font__color-primary);
27
+ }
28
+
29
+ .passkeys-card__empty {
30
+ color: var(--font__color-secondary);
31
+ }
32
+
33
+ .passkeys-card__list {
34
+ display: flex;
35
+ flex-direction: column;
36
+ width: 100%;
37
+ margin: 0;
38
+ padding: 0;
39
+ list-style: none;
40
+ }
41
+
42
+ .passkeys-card__item {
43
+ padding: 1.2rem 0;
44
+ border-bottom: 1px solid var(--border__color);
45
+ }
46
+
47
+ .passkeys-card__item:first-child {
48
+ padding-top: 0;
49
+ }
50
+
51
+ .passkeys-card__item:last-child {
52
+ border-bottom: none;
53
+ }
54
+
55
+ .passkeys-card__row {
56
+ display: flex;
57
+ align-items: center;
58
+ justify-content: space-between;
59
+ gap: 1.2rem;
60
+ flex-wrap: wrap;
61
+ width: 100%;
62
+ }
63
+
64
+ .passkeys-card__name {
65
+ color: var(--font__color-primary);
66
+ }
67
+
68
+ .passkeys-card__meta,
69
+ .passkeys-card__sub {
70
+ display: block;
71
+ margin-top: 0.4rem;
72
+ font-size: 1.2rem;
73
+ color: var(--font__color-secondary);
74
+ }
75
+
76
+ .passkeys-card__actions {
77
+ display: flex;
78
+ flex-wrap: wrap;
79
+ align-items: center;
80
+ gap: 1rem;
81
+ }
82
+
83
+ .passkeys-card__form {
84
+ display: flex;
85
+ flex-direction: column;
86
+ align-items: flex-start;
87
+ gap: 1.2rem;
88
+ width: 100%;
89
+ }
90
+
91
+ /* Inputs take the app's input styling from .ap-input__input; this only sets the width. */
92
+ .passkeys-card__form .ap-input__input,
93
+ .passkeys-card__row .ap-input__input {
94
+ width: 28rem;
95
+ max-width: 100%;
96
+ }
97
+
98
+ .passkeys-card__prompt {
99
+ width: 100%;
100
+ padding: 1.2rem 1.6rem;
101
+ border-radius: 2px;
102
+ border: 1px solid var(--border__color);
103
+ color: var(--font__color-primary);
104
+ }
105
+
106
+ .passkeys-card__error {
107
+ color: var(--danger__color);
108
+ }