@alfalab/core-components-number-input 2.3.17 → 2.4.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 (61) hide show
  1. package/components/number-input/Component.js +3 -3
  2. package/components/number-input/default.css +4 -4
  3. package/components/number-input/index.css +3 -3
  4. package/components/number-input/inverted.css +4 -4
  5. package/components/steppers/Component.js +3 -3
  6. package/components/steppers/default.css +2 -2
  7. package/components/steppers/index.css +4 -4
  8. package/components/steppers/inverted.css +2 -2
  9. package/esm/components/number-input/Component.js +3 -3
  10. package/esm/components/number-input/default.css +4 -4
  11. package/esm/components/number-input/index.css +3 -3
  12. package/esm/components/number-input/inverted.css +4 -4
  13. package/esm/components/steppers/Component.js +3 -3
  14. package/esm/components/steppers/default.css +2 -2
  15. package/esm/components/steppers/index.css +4 -4
  16. package/esm/components/steppers/inverted.css +2 -2
  17. package/modern/components/number-input/Component.js +3 -3
  18. package/modern/components/number-input/default.css +4 -4
  19. package/modern/components/number-input/index.css +3 -3
  20. package/modern/components/number-input/inverted.css +4 -4
  21. package/modern/components/steppers/Component.js +3 -3
  22. package/modern/components/steppers/default.css +2 -2
  23. package/modern/components/steppers/index.css +4 -4
  24. package/modern/components/steppers/inverted.css +2 -2
  25. package/moderncssm/Component.responsive.d.ts +6 -0
  26. package/moderncssm/Component.responsive.js +12 -0
  27. package/moderncssm/components/number-input/Component.d.ts +60 -0
  28. package/moderncssm/components/number-input/Component.js +108 -0
  29. package/moderncssm/components/number-input/default.module.css +10 -0
  30. package/moderncssm/components/number-input/index.d.ts +1 -0
  31. package/moderncssm/components/number-input/index.js +1 -0
  32. package/moderncssm/components/number-input/index.module.css +9 -0
  33. package/moderncssm/components/number-input/inverted.module.css +10 -0
  34. package/moderncssm/components/steppers/Component.d.ts +15 -0
  35. package/moderncssm/components/steppers/Component.js +27 -0
  36. package/moderncssm/components/steppers/default.module.css +5 -0
  37. package/moderncssm/components/steppers/index.d.ts +1 -0
  38. package/moderncssm/components/steppers/index.js +1 -0
  39. package/moderncssm/components/steppers/index.module.css +20 -0
  40. package/moderncssm/components/steppers/inverted.module.css +5 -0
  41. package/moderncssm/desktop/Component.desktop.d.ts +6 -0
  42. package/moderncssm/desktop/Component.desktop.js +7 -0
  43. package/moderncssm/desktop/index.d.ts +2 -0
  44. package/moderncssm/desktop/index.js +1 -0
  45. package/moderncssm/index.d.ts +2 -0
  46. package/moderncssm/index.js +1 -0
  47. package/moderncssm/mobile/Component.mobile.d.ts +6 -0
  48. package/moderncssm/mobile/Component.mobile.js +7 -0
  49. package/moderncssm/mobile/index.d.ts +2 -0
  50. package/moderncssm/mobile/index.js +1 -0
  51. package/moderncssm/shared/index.d.ts +1 -0
  52. package/moderncssm/shared/index.js +1 -0
  53. package/moderncssm/utils.d.ts +34 -0
  54. package/moderncssm/utils.js +246 -0
  55. package/package.json +5 -5
  56. package/src/components/number-input/default.module.css +1 -1
  57. package/src/components/number-input/index.module.css +1 -1
  58. package/src/components/number-input/inverted.module.css +1 -1
  59. package/src/components/steppers/default.module.css +1 -1
  60. package/src/components/steppers/index.module.css +1 -1
  61. package/src/components/steppers/inverted.module.css +1 -1
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import cn from 'classnames';
3
+ import { IconButton } from '@alfalab/core-components-icon-button/moderncssm';
4
+ import { getDataTestId } from '@alfalab/core-components-shared/moderncssm';
5
+ import { MinusMIcon } from '@alfalab/icons-glyph/MinusMIcon';
6
+ import { PlusMediumMIcon } from '@alfalab/icons-glyph/PlusMediumMIcon';
7
+ import defaultColors from './default.module.css';
8
+ import styles from './index.module.css';
9
+ import invertedColors from './inverted.module.css';
10
+
11
+ const colorStyles = {
12
+ default: defaultColors,
13
+ inverted: invertedColors,
14
+ };
15
+ function preventDefault(e) {
16
+ e.preventDefault();
17
+ }
18
+ const Steppers = ({ className, onIncrement, onDecrement, value, min, max, disabled, dataTestId, colors, }) => {
19
+ const decButtonDisabled = disabled || value <= min;
20
+ const incButtonDisabled = disabled || value >= max;
21
+ return (React.createElement("div", { className: cn(styles.component, className) },
22
+ React.createElement(IconButton, { colors: colors, disabled: decButtonDisabled, className: styles.button, icon: React.createElement(MinusMIcon, null), "aria-label": '\u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C', onMouseDown: preventDefault, onClick: onDecrement, dataTestId: getDataTestId(dataTestId, 'decrement-button'), view: 'secondary' }),
23
+ React.createElement("div", { className: cn(styles.separator, colorStyles[colors].separator) }),
24
+ React.createElement(IconButton, { colors: colors, disabled: incButtonDisabled, className: styles.button, icon: React.createElement(PlusMediumMIcon, null), "aria-label": '\u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C', onMouseDown: preventDefault, onClick: onIncrement, dataTestId: getDataTestId(dataTestId, 'increment-button'), view: 'secondary' })));
25
+ };
26
+
27
+ export { Steppers };
@@ -0,0 +1,5 @@
1
+ /* */
2
+
3
+ .separator {
4
+ background-color: var(--color-light-neutral-translucent-300);
5
+ }
@@ -0,0 +1 @@
1
+ export * from "./Component";
@@ -0,0 +1 @@
1
+ export { Steppers } from './Component.js';
@@ -0,0 +1,20 @@
1
+ /* */
2
+
3
+ .component {
4
+ display: flex;
5
+ flex-flow: row nowrap;
6
+ align-items: center;
7
+ border-radius: 5px;
8
+ transition: background-color 0.2s ease;
9
+ overflow: visible;
10
+ }
11
+
12
+ .separator {
13
+ height: 18px;
14
+ width: 1px;
15
+ }
16
+
17
+ .button {
18
+ width: 40px;
19
+ height: 40px;
20
+ }
@@ -0,0 +1,5 @@
1
+ /* */
2
+
3
+ .separator {
4
+ background-color: var(--color-light-neutral-translucent-300-inverted);
5
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { NumberInputProps } from "../components/number-input/index";
4
+ type NumberInputDesktopProps = Omit<NumberInputProps, 'Input' | 'breakpoint' | 'view'>;
5
+ declare const NumberInputDesktop: React.ForwardRefExoticComponent<NumberInputDesktopProps & React.RefAttributes<HTMLInputElement>>;
6
+ export { NumberInputDesktopProps, NumberInputDesktop };
@@ -0,0 +1,7 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { InputDesktop } from '@alfalab/core-components-input/moderncssm/desktop';
3
+ import { NumberInput } from '../components/number-input/Component.js';
4
+
5
+ const NumberInputDesktop = forwardRef((props, ref) => React.createElement(NumberInput, { ...props, Input: InputDesktop, ref: ref, view: 'desktop' }));
6
+
7
+ export { NumberInputDesktop };
@@ -0,0 +1,2 @@
1
+ export { NumberInputDesktop, NumberInputDesktopProps } from "./Component.desktop";
2
+ export {};
@@ -0,0 +1 @@
1
+ export { NumberInputDesktop } from './Component.desktop.js';
@@ -0,0 +1,2 @@
1
+ export { NumberInputResponsive as NumberInput, NumberInputResponsiveProps as NumberInputProps } from "./Component.responsive";
2
+ export {};
@@ -0,0 +1 @@
1
+ export { NumberInputResponsive as NumberInput } from './Component.responsive.js';
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { NumberInputProps } from "../components/number-input/index";
4
+ type NumberInputMobileProps = Omit<NumberInputProps, 'Input' | 'breakpoint' | 'view'>;
5
+ declare const NumberInputMobile: React.ForwardRefExoticComponent<NumberInputMobileProps & React.RefAttributes<HTMLInputElement>>;
6
+ export { NumberInputMobileProps, NumberInputMobile };
@@ -0,0 +1,7 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { InputMobile } from '@alfalab/core-components-input/moderncssm/mobile';
3
+ import { NumberInput } from '../components/number-input/Component.js';
4
+
5
+ const NumberInputMobile = forwardRef((props, ref) => React.createElement(NumberInput, { ...props, Input: InputMobile, ref: ref, view: 'mobile' }));
6
+
7
+ export { NumberInputMobile };
@@ -0,0 +1,2 @@
1
+ export { NumberInputMobile, NumberInputMobileProps } from "./Component.mobile";
2
+ export {};
@@ -0,0 +1 @@
1
+ export { NumberInputMobile } from './Component.mobile.js';
@@ -0,0 +1 @@
1
+ export { getNumberInputTestIds } from "../utils";
@@ -0,0 +1 @@
1
+ export { getNumberInputTestIds } from '../utils.js';
@@ -0,0 +1,34 @@
1
+ import { MaskitoOptions, MaskitoPlugin } from '@maskito/core';
2
+ declare const MINUS_SIGN = "-";
3
+ declare const SEPARATORS: string[];
4
+ declare const MAX_SAFE_INTEGER: number;
5
+ declare const MIN_SAFE_INTEGER: number;
6
+ declare const MAX_DIGITS = 15;
7
+ declare function parseNumber(value?: string | number | null): number;
8
+ /**
9
+ * Преобразовать число в строку с заменой экспоненты на десятичную дробь
10
+ */
11
+ declare function stringifyNumberWithoutExp(value: number): string;
12
+ declare function createMaskOptions({ separator, fractionLength, min, max, }: {
13
+ separator: string;
14
+ fractionLength: number;
15
+ min: number;
16
+ max: number;
17
+ }): MaskitoOptions;
18
+ declare function createMinMaxPlugin({ min, max }: {
19
+ min: number;
20
+ max: number;
21
+ }): MaskitoPlugin;
22
+ declare function createNotEmptyPartsPlugin(separator: string): MaskitoPlugin;
23
+ declare function getNumberInputTestIds(dataTestId: string): {
24
+ input: string;
25
+ inputWrapper: string;
26
+ inputWrapperInner: string;
27
+ leftAddons: string;
28
+ rightAddons: string;
29
+ error: string;
30
+ hint: string;
31
+ decrementButton: string;
32
+ incrementButton: string;
33
+ };
34
+ export { MINUS_SIGN, SEPARATORS, MAX_SAFE_INTEGER, MIN_SAFE_INTEGER, MAX_DIGITS, parseNumber, stringifyNumberWithoutExp, createMaskOptions, createMinMaxPlugin, createNotEmptyPartsPlugin, getNumberInputTestIds };
@@ -0,0 +1,246 @@
1
+ import { maskitoTransform } from '@maskito/core';
2
+ import { getDataTestId, fnUtils } from '@alfalab/core-components-shared/moderncssm';
3
+
4
+ /* eslint-disable no-param-reassign */
5
+ const MINUS_SIGN = '-';
6
+ const SEPARATORS = [',', '.'];
7
+ const MAX_SAFE_INTEGER = 2 ** 53 - 1;
8
+ const MIN_SAFE_INTEGER = -MAX_SAFE_INTEGER;
9
+ const MAX_DIGITS = 15; // с 16 уже упираемся в MAX_SAFE_INTEGER
10
+ function parseNumber(value = '') {
11
+ if (typeof value === 'number')
12
+ return value;
13
+ const pseudoSeparatorsRegExp = new RegExp(`[${SEPARATORS.join('')}]`, 'gi');
14
+ return value
15
+ ? parseFloat(value
16
+ .replace(new RegExp(`[^${MINUS_SIGN}${SEPARATORS.join('')}0-9]`, 'gi'), '')
17
+ .replace(pseudoSeparatorsRegExp, '.'))
18
+ : NaN;
19
+ }
20
+ /**
21
+ * Преобразовать число в строку с заменой экспоненты на десятичную дробь
22
+ */
23
+ function stringifyNumberWithoutExp(value) {
24
+ const valueString = String(value);
25
+ const [numberPart, expPart] = valueString.split('e-');
26
+ let valueWithoutExp = valueString;
27
+ if (expPart) {
28
+ const [, fractionalPart] = numberPart.split('.');
29
+ const decimalDigits = Number(expPart) + (fractionalPart?.length || 0);
30
+ valueWithoutExp = value.toFixed(decimalDigits);
31
+ }
32
+ return valueWithoutExp;
33
+ }
34
+ const getNumberRegExp = (min, fractionLength) => {
35
+ let reStr = '[0-9]*';
36
+ if (min < 0) {
37
+ reStr = `(\\${MINUS_SIGN})?${reStr}`;
38
+ }
39
+ if (fractionLength !== 0) {
40
+ reStr = `${reStr}[${SEPARATORS.map((s) => `\\${s}`).join('')}]?[0-9]{0,${fractionLength || MAX_DIGITS}}`;
41
+ }
42
+ return new RegExp(`^${reStr}$`);
43
+ };
44
+ function createMaskOptions({ separator, fractionLength, min, max, }) {
45
+ return {
46
+ mask: getNumberRegExp(min, fractionLength),
47
+ preprocessors: [
48
+ createPseudoSeparatorPreprocessor(separator),
49
+ createNotEmptyIntegerPartPreprocessor({ separator, fractionLength }),
50
+ createZeroFractionLengthPreprocessor(fractionLength, separator),
51
+ createRepeatedSeparatorPreprocessor(separator),
52
+ ],
53
+ postprocessors: [
54
+ createLeadingZeroesValidationPostprocessor(separator),
55
+ createMinMaxPostprocessor({ min, max, separator }),
56
+ ],
57
+ plugins: [createNotEmptyPartsPlugin(separator), createMinMaxPlugin({ min, max })],
58
+ };
59
+ }
60
+ /**
61
+ * Заполняет целочисленную часть при вводе separator.
62
+ * @example Type , => 0,
63
+ */
64
+ function createNotEmptyIntegerPartPreprocessor({ separator, fractionLength, }) {
65
+ const startWithDecimalSepRegExp = new RegExp(`^\\D*\\${separator}`);
66
+ return ({ elementState, data }) => {
67
+ const { value, selection } = elementState;
68
+ const [from] = selection;
69
+ if (fractionLength <= 0 ||
70
+ value.includes(separator) ||
71
+ !data.match(startWithDecimalSepRegExp)) {
72
+ return { elementState, data };
73
+ }
74
+ const digitsBeforeCursor = value.slice(0, from).match(/\d+/);
75
+ return {
76
+ elementState,
77
+ data: digitsBeforeCursor ? data : `0${data}`,
78
+ };
79
+ };
80
+ }
81
+ /**
82
+ * Не позволяет вводить невалидный разделитель.
83
+ */
84
+ function createPseudoSeparatorPreprocessor(separator) {
85
+ const pseudoSeparatorsRegExp = new RegExp(`[${SEPARATORS.join('')}]`, 'gi');
86
+ return ({ elementState, data }) => {
87
+ const { value, selection } = elementState;
88
+ return {
89
+ elementState: {
90
+ selection,
91
+ value: value.replace(pseudoSeparatorsRegExp, separator),
92
+ },
93
+ data: data.replace(pseudoSeparatorsRegExp, separator),
94
+ };
95
+ };
96
+ }
97
+ /**
98
+ * Помогает верно обрезать значения при вставке, если fractionLength===0
99
+ * @example paste 123,123 -> 123
100
+ */
101
+ function createZeroFractionLengthPreprocessor(fractionLength, separator) {
102
+ if (fractionLength > 0) {
103
+ return (state) => state;
104
+ }
105
+ const decimalPartRegExp = new RegExp(`\\${separator}.*$`, 'g');
106
+ return ({ elementState, data }) => {
107
+ const { value, selection } = elementState;
108
+ const [from, to] = selection;
109
+ const newValue = value.replace(decimalPartRegExp, '');
110
+ return {
111
+ elementState: {
112
+ selection: [Math.min(from, newValue.length), Math.min(to, newValue.length)],
113
+ value: newValue,
114
+ },
115
+ data: data.replace(decimalPartRegExp, ''),
116
+ };
117
+ };
118
+ }
119
+ /**
120
+ * Запрещает вводить второй сепаратор
121
+ */
122
+ function createRepeatedSeparatorPreprocessor(separator) {
123
+ return ({ elementState, data }) => {
124
+ const { value, selection } = elementState;
125
+ const [from, to] = selection;
126
+ return {
127
+ elementState,
128
+ data: !value.includes(separator) || value.slice(from, to + 1).includes(separator)
129
+ ? data
130
+ : data.replace(new RegExp(`\\${separator}`), ''),
131
+ };
132
+ };
133
+ }
134
+ /**
135
+ * Удаляет лишние нули в начале целой части.
136
+ * @example 0,|00005 => Backspace => |5
137
+ * @example -0,|00005 => Backspace => -|5
138
+ * @example "000000" => 0|
139
+ * @example 0| => Type "5" => 5|
140
+ */
141
+ function createLeadingZeroesValidationPostprocessor(separator) {
142
+ const trimLeadingZeroes = (value) => value
143
+ .replace(new RegExp('^(\\D+)?0+(?=0)'), '$1')
144
+ .replace(new RegExp('^(\\D+)?0+(?=[1-9])'), '$1');
145
+ const countTrimmedZeroesBefore = (value, index) => {
146
+ const valueBefore = value.slice(0, index);
147
+ const followedByZero = value.slice(index).startsWith('0');
148
+ return (valueBefore.length - trimLeadingZeroes(valueBefore).length + (followedByZero ? 1 : 0));
149
+ };
150
+ return ({ value, selection }) => {
151
+ const [from, to] = selection;
152
+ const hasSeparator = value.includes(separator);
153
+ const [integerPart, decimalPart = ''] = value.split(separator);
154
+ const zeroTrimmedIntegerPart = trimLeadingZeroes(integerPart);
155
+ if (integerPart === zeroTrimmedIntegerPart) {
156
+ return { value, selection };
157
+ }
158
+ const newFrom = from - countTrimmedZeroesBefore(value, from);
159
+ const newTo = to - countTrimmedZeroesBefore(value, to);
160
+ return {
161
+ value: zeroTrimmedIntegerPart + (hasSeparator ? separator : '') + decimalPart,
162
+ selection: [Math.max(newFrom, 0), Math.max(newTo, 0)],
163
+ };
164
+ };
165
+ }
166
+ /**
167
+ * Валидирует значение с учетом min max значений.
168
+ * Работает совместно с createMinMaxPlugin
169
+ */
170
+ function createMinMaxPostprocessor({ min, max, separator, }) {
171
+ return ({ value, selection }) => {
172
+ const parsedNumber = parseNumber(value);
173
+ const limitedValue =
174
+ /**
175
+ * Здесь невозможно ограничить нижнюю границу, если пользователь вводит положительное число.
176
+ * То же самое для верхней границы и отрицательного числа.
177
+ * Если min=5, то без этого условия не получится ввести 40, похожая ситуация и с отрицательным max
178
+ */
179
+ parsedNumber > 0 ? Math.min(parsedNumber, max) : Math.max(parsedNumber, min);
180
+ if (!Number.isNaN(parsedNumber) && limitedValue !== parsedNumber) {
181
+ const newValue = `${limitedValue}`.replace('.', separator);
182
+ return {
183
+ value: newValue,
184
+ selection: [newValue.length, newValue.length],
185
+ };
186
+ }
187
+ return {
188
+ value,
189
+ selection,
190
+ };
191
+ };
192
+ }
193
+ function createMinMaxPlugin({ min, max }) {
194
+ return (element, options) => {
195
+ const listener = () => {
196
+ const parsedNumber = parseNumber(element.value);
197
+ const clampedNumber = fnUtils.clamp(parsedNumber, min, max);
198
+ if (!Number.isNaN(parsedNumber) && parsedNumber !== clampedNumber) {
199
+ element.value = maskitoTransform(stringifyNumberWithoutExp(clampedNumber), options);
200
+ element.dispatchEvent(new Event('input', { bubbles: true }));
201
+ }
202
+ };
203
+ const evListenerOptions = { capture: true };
204
+ element.addEventListener('blur', listener, evListenerOptions);
205
+ return () => element.removeEventListener('blur', listener, evListenerOptions);
206
+ };
207
+ }
208
+ function createNotEmptyPartsPlugin(separator) {
209
+ return (element) => {
210
+ const listener = () => {
211
+ const newValue = element.value
212
+ // 0,9000000 -> 0,9
213
+ .replace(new RegExp(`(\\${separator}\\d*?)(0+$)`), '$1')
214
+ // ,2 => 0,2
215
+ .replace(new RegExp(`^(\\D+)?\\${separator}`), `$10${separator}`)
216
+ // 0, -> 0
217
+ .replace(new RegExp(`\\${separator}$`), '')
218
+ // -0 -> 0
219
+ .replace(new RegExp(`^${MINUS_SIGN}0$`), '0')
220
+ // - -> ''
221
+ .replace(new RegExp(`^${MINUS_SIGN}$`), '');
222
+ if (newValue !== element.value) {
223
+ element.value = newValue;
224
+ element.dispatchEvent(new Event('input', { bubbles: true }));
225
+ }
226
+ };
227
+ const evListenerOptions = { capture: true };
228
+ element.addEventListener('blur', listener, evListenerOptions);
229
+ return () => element.removeEventListener('blur', listener, evListenerOptions);
230
+ };
231
+ }
232
+ function getNumberInputTestIds(dataTestId) {
233
+ return {
234
+ input: dataTestId,
235
+ inputWrapper: getDataTestId(dataTestId, 'form-control'),
236
+ inputWrapperInner: getDataTestId(dataTestId, 'form-control-inner'),
237
+ leftAddons: getDataTestId(dataTestId, 'form-control-left-addons'),
238
+ rightAddons: getDataTestId(dataTestId, 'form-control-right-addons'),
239
+ error: getDataTestId(dataTestId, 'form-control-error-message'),
240
+ hint: getDataTestId(dataTestId, 'form-control-hint'),
241
+ decrementButton: getDataTestId(dataTestId, 'decrement-button'),
242
+ incrementButton: getDataTestId(dataTestId, 'increment-button'),
243
+ };
244
+ }
245
+
246
+ export { MAX_DIGITS, MAX_SAFE_INTEGER, MINUS_SIGN, MIN_SAFE_INTEGER, SEPARATORS, createMaskOptions, createMinMaxPlugin, createNotEmptyPartsPlugin, getNumberInputTestIds, parseNumber, stringifyNumberWithoutExp };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-number-input",
3
- "version": "2.3.17",
3
+ "version": "2.4.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -14,9 +14,9 @@
14
14
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@alfalab/core-components-input": "^15.0.5",
17
+ "@alfalab/core-components-input": "^15.1.0",
18
18
  "@alfalab/core-components-mq": "^4.3.0",
19
- "@alfalab/core-components-icon-button": "^6.7.5",
19
+ "@alfalab/core-components-icon-button": "^6.8.0",
20
20
  "@alfalab/core-components-shared": "^0.12.0",
21
21
  "@alfalab/icons-glyph": "^2.139.0",
22
22
  "@maskito/core": "^1.7.0",
@@ -25,6 +25,6 @@
25
25
  "react-merge-refs": "^1.1.0",
26
26
  "tslib": "^2.4.0"
27
27
  },
28
- "themesVersion": "13.0.2",
29
- "varsVersion": "9.11.1"
28
+ "themesVersion": "13.1.0",
29
+ "varsVersion": "9.12.0"
30
30
  }
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  .steppers {
4
4
  background-color: var(--color-light-neutral-translucent-0);
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  .size-48 {
4
4
  margin-right: var(--gap-8-neg);
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  .steppers {
4
4
  background-color: var(--color-light-neutral-translucent-0-inverted);
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  .separator {
4
4
  background-color: var(--color-light-neutral-translucent-300);
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  .component {
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  .separator {
4
4
  background-color: var(--color-light-neutral-translucent-300-inverted);