@alfalab/core-components-steps 1.8.4 → 2.0.0-snapshot-6a9d3fc

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 (172) hide show
  1. package/Component.d.ts +4 -6
  2. package/Component.js +6 -7
  3. package/Component.js.map +1 -0
  4. package/components/step/Component.d.ts +5 -5
  5. package/components/step/Component.js +37 -38
  6. package/components/step/Component.js.map +1 -0
  7. package/components/step/index.css +38 -58
  8. package/components/step/index.d.ts +1 -1
  9. package/components/step/index.js +3 -2
  10. package/components/step/index.js.map +1 -0
  11. package/components/step/index.module.css.js +8 -0
  12. package/components/step/index.module.css.js.map +1 -0
  13. package/components/step-indicator/Component.d.ts +3 -5
  14. package/components/step-indicator/Component.js +3 -4
  15. package/components/step-indicator/Component.js.map +1 -0
  16. package/components/step-indicator/index.css +2 -24
  17. package/components/step-indicator/index.d.ts +1 -1
  18. package/components/step-indicator/index.js +3 -2
  19. package/components/step-indicator/index.js.map +1 -0
  20. package/components/step-indicator/index.module.css.js +8 -0
  21. package/components/step-indicator/index.module.css.js.map +1 -0
  22. package/cssm/Component.d.ts +4 -6
  23. package/cssm/Component.js +3 -2
  24. package/cssm/Component.js.map +1 -0
  25. package/cssm/components/step/Component.d.ts +5 -5
  26. package/cssm/components/step/Component.js +11 -10
  27. package/cssm/components/step/Component.js.map +1 -0
  28. package/cssm/components/step/index.d.ts +1 -1
  29. package/cssm/components/step/index.js +3 -2
  30. package/cssm/components/step/index.js.map +1 -0
  31. package/cssm/components/step/index.module.css +8 -27
  32. package/cssm/components/step-indicator/Component.d.ts +3 -5
  33. package/cssm/components/step-indicator/Component.js +3 -2
  34. package/cssm/components/step-indicator/Component.js.map +1 -0
  35. package/cssm/components/step-indicator/index.d.ts +1 -1
  36. package/cssm/components/step-indicator/index.js +3 -2
  37. package/cssm/components/step-indicator/index.js.map +1 -0
  38. package/cssm/components/step-indicator/index.module.css +2 -23
  39. package/cssm/index.d.ts +1 -1
  40. package/cssm/index.js +1 -0
  41. package/cssm/index.js.map +1 -0
  42. package/cssm/index.module.css +1 -23
  43. package/cssm/shared/index.d.ts +1 -1
  44. package/cssm/shared/index.js +3 -2
  45. package/cssm/shared/index.js.map +1 -0
  46. package/cssm/types/common-props.d.ts +1 -2
  47. package/cssm/types/common-props.js +1 -0
  48. package/cssm/types/common-props.js.map +1 -0
  49. package/cssm/utils/getStepsTestIds.d.ts +1 -2
  50. package/cssm/utils/getStepsTestIds.js +3 -2
  51. package/cssm/utils/getStepsTestIds.js.map +1 -0
  52. package/esm/Component.d.ts +4 -6
  53. package/esm/Component.js +2 -3
  54. package/esm/Component.js.map +1 -0
  55. package/esm/components/step/Component.d.ts +5 -5
  56. package/esm/components/step/Component.js +2 -3
  57. package/esm/components/step/Component.js.map +1 -0
  58. package/esm/components/step/index.css +38 -58
  59. package/esm/components/step/index.d.ts +1 -1
  60. package/esm/components/step/index.js +1 -0
  61. package/esm/components/step/index.js.map +1 -0
  62. package/esm/components/step/index.module.css.js +6 -0
  63. package/esm/components/step/index.module.css.js.map +1 -0
  64. package/esm/components/step-indicator/Component.d.ts +3 -5
  65. package/esm/components/step-indicator/Component.js +2 -3
  66. package/esm/components/step-indicator/Component.js.map +1 -0
  67. package/esm/components/step-indicator/index.css +2 -24
  68. package/esm/components/step-indicator/index.d.ts +1 -1
  69. package/esm/components/step-indicator/index.js +1 -0
  70. package/esm/components/step-indicator/index.js.map +1 -0
  71. package/esm/components/step-indicator/index.module.css.js +6 -0
  72. package/esm/components/step-indicator/index.module.css.js.map +1 -0
  73. package/esm/index.css +2 -25
  74. package/esm/index.d.ts +1 -1
  75. package/esm/index.js +1 -0
  76. package/esm/index.js.map +1 -0
  77. package/esm/index.module.css.js +6 -0
  78. package/esm/index.module.css.js.map +1 -0
  79. package/esm/shared/index.d.ts +1 -1
  80. package/esm/shared/index.js +1 -0
  81. package/esm/shared/index.js.map +1 -0
  82. package/esm/types/common-props.d.ts +1 -2
  83. package/esm/types/common-props.js +1 -0
  84. package/esm/types/common-props.js.map +1 -0
  85. package/esm/utils/getStepsTestIds.d.ts +1 -2
  86. package/esm/utils/getStepsTestIds.js +1 -0
  87. package/esm/utils/getStepsTestIds.js.map +1 -0
  88. package/index.css +2 -25
  89. package/index.d.ts +1 -1
  90. package/index.js +1 -0
  91. package/index.js.map +1 -0
  92. package/index.module.css.js +8 -0
  93. package/index.module.css.js.map +1 -0
  94. package/modern/Component.d.ts +4 -6
  95. package/modern/Component.js +2 -3
  96. package/modern/Component.js.map +1 -0
  97. package/modern/components/step/Component.d.ts +5 -5
  98. package/modern/components/step/Component.js +2 -3
  99. package/modern/components/step/Component.js.map +1 -0
  100. package/modern/components/step/index.css +38 -58
  101. package/modern/components/step/index.d.ts +1 -1
  102. package/modern/components/step/index.js +1 -0
  103. package/modern/components/step/index.js.map +1 -0
  104. package/modern/components/step/index.module.css.js +6 -0
  105. package/modern/components/step/index.module.css.js.map +1 -0
  106. package/modern/components/step-indicator/Component.d.ts +3 -5
  107. package/modern/components/step-indicator/Component.js +2 -3
  108. package/modern/components/step-indicator/Component.js.map +1 -0
  109. package/modern/components/step-indicator/index.css +2 -24
  110. package/modern/components/step-indicator/index.d.ts +1 -1
  111. package/modern/components/step-indicator/index.js +1 -0
  112. package/modern/components/step-indicator/index.js.map +1 -0
  113. package/modern/components/step-indicator/index.module.css.js +6 -0
  114. package/modern/components/step-indicator/index.module.css.js.map +1 -0
  115. package/modern/index.css +2 -25
  116. package/modern/index.d.ts +1 -1
  117. package/modern/index.js +1 -0
  118. package/modern/index.js.map +1 -0
  119. package/modern/index.module.css.js +6 -0
  120. package/modern/index.module.css.js.map +1 -0
  121. package/modern/shared/index.d.ts +1 -1
  122. package/modern/shared/index.js +1 -0
  123. package/modern/shared/index.js.map +1 -0
  124. package/modern/types/common-props.d.ts +1 -2
  125. package/modern/types/common-props.js +1 -0
  126. package/modern/types/common-props.js.map +1 -0
  127. package/modern/utils/getStepsTestIds.d.ts +1 -2
  128. package/modern/utils/getStepsTestIds.js +1 -0
  129. package/modern/utils/getStepsTestIds.js.map +1 -0
  130. package/moderncssm/Component.d.ts +4 -6
  131. package/moderncssm/Component.js +1 -0
  132. package/moderncssm/Component.js.map +1 -0
  133. package/moderncssm/components/step/Component.d.ts +5 -5
  134. package/moderncssm/components/step/Component.js +1 -0
  135. package/moderncssm/components/step/Component.js.map +1 -0
  136. package/moderncssm/components/step/index.d.ts +1 -1
  137. package/moderncssm/components/step/index.js +1 -0
  138. package/moderncssm/components/step/index.js.map +1 -0
  139. package/moderncssm/components/step/index.module.css +1 -6
  140. package/moderncssm/components/step-indicator/Component.d.ts +3 -5
  141. package/moderncssm/components/step-indicator/Component.js +1 -0
  142. package/moderncssm/components/step-indicator/Component.js.map +1 -0
  143. package/moderncssm/components/step-indicator/index.d.ts +1 -1
  144. package/moderncssm/components/step-indicator/index.js +1 -0
  145. package/moderncssm/components/step-indicator/index.js.map +1 -0
  146. package/moderncssm/components/step-indicator/index.module.css +0 -2
  147. package/moderncssm/index.d.ts +1 -1
  148. package/moderncssm/index.js +1 -0
  149. package/moderncssm/index.js.map +1 -0
  150. package/moderncssm/index.module.css +0 -2
  151. package/moderncssm/shared/index.d.ts +1 -1
  152. package/moderncssm/shared/index.js +1 -0
  153. package/moderncssm/shared/index.js.map +1 -0
  154. package/moderncssm/types/common-props.d.ts +1 -2
  155. package/moderncssm/types/common-props.js +1 -0
  156. package/moderncssm/types/common-props.js.map +1 -0
  157. package/moderncssm/utils/getStepsTestIds.d.ts +1 -2
  158. package/moderncssm/utils/getStepsTestIds.js +1 -0
  159. package/moderncssm/utils/getStepsTestIds.js.map +1 -0
  160. package/package.json +7 -6
  161. package/shared/index.d.ts +1 -1
  162. package/shared/index.js +3 -2
  163. package/shared/index.js.map +1 -0
  164. package/src/components/step/index.module.css +0 -4
  165. package/types/common-props.d.ts +1 -2
  166. package/types/common-props.js +1 -0
  167. package/types/common-props.js.map +1 -0
  168. package/utils/getStepsTestIds.d.ts +1 -2
  169. package/utils/getStepsTestIds.js +1 -0
  170. package/utils/getStepsTestIds.js.map +1 -0
  171. package/shared/package.json +0 -3
  172. package/src/shared/package.json +0 -3
package/Component.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import React from 'react';
3
- import { StepIndicatorProps } from "./components/step-indicator/index";
4
- import { CommonProps } from "./types/common-props";
5
- type StepsProps = {
2
+ import { StepIndicatorProps } from './components/step-indicator';
3
+ import { CommonProps } from './types/common-props';
4
+ export declare type StepsProps = {
6
5
  /**
7
6
  * Дополнительный класс
8
7
  */
@@ -70,5 +69,4 @@ type StepsProps = {
70
69
  */
71
70
  onChange?: (stepNumber: number) => void;
72
71
  } & CommonProps;
73
- declare const Steps: React.FC<StepsProps>;
74
- export { StepsProps, Steps };
72
+ export declare const Steps: React.FC<StepsProps>;
package/Component.js CHANGED
@@ -4,16 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var cn = require('classnames');
7
- var components_step_Component = require('./components/step/Component.js');
7
+ var Component = require('./components/step/Component.js');
8
+ var index_module = require('./index.module.css.js');
8
9
 
9
10
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
10
11
 
11
12
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
13
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
13
14
 
14
- var styles = {"component":"steps__component_1qfqk","vertical":"steps__vertical_1qfqk"};
15
- require('./index.css')
16
-
17
15
  var Steps = function (_a) {
18
16
  var _b;
19
17
  var className = _a.className, children = _a.children, _c = _a.defaultActiveStep, defaultActiveStep = _c === void 0 ? 1 : _c, activeStepProp = _a.activeStep, _d = _a.isMarkCompletedSteps, isMarkCompletedSteps = _d === void 0 ? true : _d, _e = _a.isVerticalAlign, isVerticalAlign = _e === void 0 ? false : _e, _f = _a.ordered, ordered = _f === void 0 ? true : _f, _g = _a.interactive, interactive = _g === void 0 ? true : _g, _h = _a.fullWidth, fullWidth = _h === void 0 ? false : _h, _j = _a.minSpaceBetweenSteps, minSpaceBetweenSteps = _j === void 0 ? 24 : _j, checkIsStepDisabled = _a.checkIsStepDisabled, checkIsStepError = _a.checkIsStepError, checkIsStepCriticalError = _a.checkIsStepCriticalError, checkIsStepWarning = _a.checkIsStepWarning, checkIsStepWaiting = _a.checkIsStepWaiting, checkIsStepPositive = _a.checkIsStepPositive, checkIsStepCustom = _a.checkIsStepCustom, onChange = _a.onChange, dataTestId = _a.dataTestId, completedDashColor = _a.completedDashColor;
@@ -31,8 +29,8 @@ var Steps = function (_a) {
31
29
  if (!stepsLength)
32
30
  return null;
33
31
  var visibleActiveStep = uncontrolled ? activeStep : activeStepProp;
34
- return (React__default.default.createElement("div", { className: cn__default.default(className, styles.component, (_b = {},
35
- _b[styles.vertical] = isVerticalAlign,
32
+ return (React__default.default.createElement("div", { className: cn__default.default(className, index_module.component, (_b = {},
33
+ _b[index_module.vertical] = isVerticalAlign,
36
34
  _b)), "data-test-id": dataTestId }, React__default.default.Children.map(children, function (step, index) {
37
35
  var stepNumber = index + 1;
38
36
  var isSelected = stepNumber === visibleActiveStep;
@@ -48,8 +46,9 @@ var Steps = function (_a) {
48
46
  var customStepIndicator = checkIsStepCustom && checkIsStepCustom(stepNumber);
49
47
  var isNotLastStep = stepsLength !== stepNumber;
50
48
  var isInteractive = !disabled && interactive;
51
- return (React__default.default.createElement(components_step_Component.Step, { stepNumber: stepNumber, isSelected: isSelected, isStepCompleted: isStepCompleted, disabled: disabled, isPositive: isPositive, isError: isError, isCriticalError: isCriticalError, isWarning: isWarning, isWaiting: isWaiting, customStepIndicator: customStepIndicator, onClick: handleStepClick, ordered: ordered, interactive: isInteractive, isVerticalAlign: isVerticalAlign, isNotLastStep: isNotLastStep, key: stepNumber, fullWidth: fullWidth, minSpaceBetweenSteps: minSpaceBetweenSteps, completedDashColor: completedDashColor, dataTestId: dataTestId }, step));
49
+ return (React__default.default.createElement(Component.Step, { stepNumber: stepNumber, isSelected: isSelected, isStepCompleted: isStepCompleted, disabled: disabled, isPositive: isPositive, isError: isError, isCriticalError: isCriticalError, isWarning: isWarning, isWaiting: isWaiting, customStepIndicator: customStepIndicator, onClick: handleStepClick, ordered: ordered, interactive: isInteractive, isVerticalAlign: isVerticalAlign, isNotLastStep: isNotLastStep, key: stepNumber, fullWidth: fullWidth, minSpaceBetweenSteps: minSpaceBetweenSteps, completedDashColor: completedDashColor, dataTestId: dataTestId }, step));
52
50
  })));
53
51
  };
54
52
 
55
53
  exports.Steps = Steps;
54
+ //# sourceMappingURL=Component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Component.js","sources":["src/Component.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport cn from 'classnames';\n\nimport { Step } from './components/step';\nimport { StepIndicatorProps } from './components/step-indicator';\nimport { CommonProps } from './types/common-props';\n\nimport styles from './index.module.css';\n\nexport type StepsProps = {\n /**\n * Дополнительный класс\n */\n className?: string;\n\n /**\n * Активный шаг, указанный по умолчанию\n * @default 1\n */\n defaultActiveStep?: number;\n\n /**\n * Активный шаг\n */\n activeStep?: number;\n\n /**\n * Управление возможностью отключения пометки пройденного шага\n * @default true\n */\n isMarkCompletedSteps?: boolean;\n\n /**\n * Кастомный метод для управления состоянием disabled шага и\n * возможностью перехода на этот шаг\n * @param stepNumber - номер шага\n * @return Флаг состояния disabled\n */\n checkIsStepDisabled?: (stepNumber: number) => boolean;\n\n /**\n * Кастомный метод для управления состоянием шага error\n * @param stepNumber - номер шага\n * @return Флаг состояния error\n */\n checkIsStepError?: (stepNumber: number) => boolean;\n\n /**\n * Кастомный метод для управления состоянием шага criticalError\n * @param stepNumber - номер шага\n * @return Флаг состояния error\n */\n checkIsStepCriticalError?: (stepNumber: number) => boolean;\n\n /**\n * Кастомный метод для управления состоянием шага warning\n * @param stepNumber - номер шага\n * @return Флаг состояния warning\n */\n checkIsStepWarning?: (stepNumber: number) => boolean;\n\n /**\n * Кастомный метод для управления состоянием шага waiting\n * @param stepNumber - номер шага\n * @return Флаг состояния waiting\n */\n checkIsStepWaiting?: (stepNumber: number) => boolean;\n\n /**\n * Кастомный метод для управления состоянием шага positive\n * @param stepNumber - номер шага\n * @return Флаг состояния positive\n */\n checkIsStepPositive?: (stepNumber: number) => boolean;\n\n /**\n * Кастомный метод для установки кастомного индикатора шага\n * @param stepNumber - номер шага\n * @return Объект StepIndicatorProps { className, content, iconColor } или null\n */\n checkIsStepCustom?: (stepNumber: number) => StepIndicatorProps | null;\n\n /**\n * Обработчик клика на шаг\n * @param stepNumber - номер активного шага\n */\n onChange?: (stepNumber: number) => void;\n} & CommonProps;\n\nexport const Steps: React.FC<StepsProps> = ({\n className,\n children,\n defaultActiveStep = 1,\n activeStep: activeStepProp,\n isMarkCompletedSteps = true,\n isVerticalAlign = false,\n ordered = true,\n interactive = true,\n fullWidth = false,\n minSpaceBetweenSteps = 24,\n checkIsStepDisabled,\n checkIsStepError,\n checkIsStepCriticalError,\n checkIsStepWarning,\n checkIsStepWaiting,\n checkIsStepPositive,\n checkIsStepCustom,\n onChange,\n dataTestId,\n completedDashColor,\n}) => {\n const uncontrolled = activeStepProp === undefined;\n const [activeStep, setActiveStep] = useState(defaultActiveStep);\n\n const stepsLength = React.Children.count(children);\n\n const handleStepClick = (stepNumber: number) => {\n if (uncontrolled) {\n setActiveStep(stepNumber);\n }\n\n if (onChange) {\n onChange(stepNumber);\n }\n };\n\n if (!stepsLength) return null;\n\n const visibleActiveStep = uncontrolled ? activeStep : activeStepProp;\n\n return (\n <div\n className={cn(className, styles.component, {\n [styles.vertical]: isVerticalAlign,\n })}\n data-test-id={dataTestId}\n >\n {React.Children.map(children, (step, index) => {\n const stepNumber = index + 1;\n const isSelected = stepNumber === visibleActiveStep;\n const isStepCompleted = isMarkCompletedSteps && stepNumber < visibleActiveStep;\n const disabled = checkIsStepDisabled ? checkIsStepDisabled(stepNumber) : false;\n const isPositive = checkIsStepPositive ? checkIsStepPositive(stepNumber) : false;\n const isError = checkIsStepError ? checkIsStepError(stepNumber) : false;\n const isCriticalError = checkIsStepCriticalError\n ? checkIsStepCriticalError(stepNumber)\n : false;\n const isWarning = checkIsStepWarning ? checkIsStepWarning(stepNumber) : false;\n const isWaiting = checkIsStepWaiting ? checkIsStepWaiting(stepNumber) : false;\n const customStepIndicator = checkIsStepCustom && checkIsStepCustom(stepNumber);\n const isNotLastStep = stepsLength !== stepNumber;\n const isInteractive = !disabled && interactive;\n\n return (\n <Step\n stepNumber={stepNumber}\n isSelected={isSelected}\n isStepCompleted={isStepCompleted}\n disabled={disabled}\n isPositive={isPositive}\n isError={isError}\n isCriticalError={isCriticalError}\n isWarning={isWarning}\n isWaiting={isWaiting}\n customStepIndicator={customStepIndicator}\n onClick={handleStepClick}\n ordered={ordered}\n interactive={isInteractive}\n isVerticalAlign={isVerticalAlign}\n isNotLastStep={isNotLastStep}\n key={stepNumber}\n fullWidth={fullWidth}\n minSpaceBetweenSteps={minSpaceBetweenSteps}\n completedDashColor={completedDashColor}\n dataTestId={dataTestId}\n >\n {step}\n </Step>\n );\n })}\n </div>\n );\n};\n"],"names":["useState","React","cn","styles","Step"],"mappings":";;;;;;;;;;;;;;AAyFO,IAAM,KAAK,GAAyB,UAAC,EAqB3C,EAAA;;AApBG,IAAA,IAAA,SAAS,eAAA,EACT,QAAQ,cAAA,EACR,EAAA,GAAA,EAAA,CAAA,iBAAqB,EAArB,iBAAiB,GAAA,EAAA,KAAA,MAAA,GAAG,CAAC,GAAA,EAAA,EACT,cAAc,GAAA,EAAA,CAAA,UAAA,EAC1B,EAA2B,GAAA,EAAA,CAAA,oBAAA,EAA3B,oBAAoB,GAAG,EAAA,KAAA,MAAA,GAAA,IAAI,GAAA,EAAA,EAC3B,uBAAuB,EAAvB,eAAe,mBAAG,KAAK,GAAA,EAAA,EACvB,EAAc,GAAA,EAAA,CAAA,OAAA,EAAd,OAAO,GAAA,EAAA,KAAA,MAAA,GAAG,IAAI,GAAA,EAAA,EACd,mBAAkB,EAAlB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tB,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,EACpB,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,aAAa,EAC1B,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,EAC5B,GAAG,EAAE,UAAU,EACf,SAAS,EAAE,SAAS,EACpB,oBAAoB,EAAE,oBAAoB,EAC1C,kBAAkB,EAAE,kBAAkB,EACtC,UAAU,EAAE,UAAU,IAErB,IAAI,CACF;KAEd,CAAC,CACA;AAEd;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { FC } from 'react';
2
- import { CommonProps } from "../../types/common-props";
3
- import { StepIndicatorProps } from "../step-indicator/index";
4
- type StepProps = {
2
+ import { CommonProps } from '../../types/common-props';
3
+ import { StepIndicatorProps } from '../step-indicator';
4
+ declare type StepProps = {
5
5
  /**
6
6
  * Номер шага
7
7
  */
@@ -52,5 +52,5 @@ type StepProps = {
52
52
  */
53
53
  onClick: (stepNumber: number) => void;
54
54
  } & CommonProps;
55
- declare const Step: FC<StepProps>;
56
- export { Step };
55
+ export declare const Step: FC<StepProps>;
56
+ export {};
@@ -11,16 +11,14 @@ var CheckmarkCircleMIcon = require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
11
11
  var ClockMIcon = require('@alfalab/icons-glyph/ClockMIcon');
12
12
  var CrossCompactMIcon = require('@alfalab/icons-glyph/CrossCompactMIcon');
13
13
  var ExclamationCircleMIcon = require('@alfalab/icons-glyph/ExclamationCircleMIcon');
14
- var components_stepIndicator_Component = require('../step-indicator/Component.js');
14
+ var Component = require('../step-indicator/Component.js');
15
+ var index_module = require('./index.module.css.js');
15
16
 
16
17
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
17
18
 
18
19
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
19
20
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
20
21
 
21
- var styles = {"step":"steps__step_wfskf","horizontal":"steps__horizontal_wfskf","vertical":"steps__vertical_wfskf","textWrapper":"steps__textWrapper_wfskf","interactive":"steps__interactive_wfskf","disabled":"steps__disabled_wfskf","text":"steps__text_wfskf","indicator":"steps__indicator_wfskf","option":"steps__option_wfskf","dash":"steps__dash_wfskf","completed":"steps__completed_wfskf","gap-24":"steps__gap-24_wfskf","gap-32":"steps__gap-32_wfskf","focused":"steps__focused_wfskf","selected":"steps__selected_wfskf","checkbox":"steps__checkbox_wfskf","dot":"steps__dot_wfskf","error":"steps__error_wfskf","unordered":"steps__unordered_wfskf","completedIndicator":"steps__completedIndicator_wfskf","fullWidth":"steps__fullWidth_wfskf"};
22
- require('./index.css')
23
-
24
22
  var Step = function (_a) {
25
23
  var _b, _c, _d, _e, _f;
26
24
  var children = _a.children, stepNumber = _a.stepNumber, isSelected = _a.isSelected, disabled = _a.disabled, ordered = _a.ordered, isPositive = _a.isPositive, isError = _a.isError, isCriticalError = _a.isCriticalError, isWarning = _a.isWarning, isWaiting = _a.isWaiting, customStepIndicator = _a.customStepIndicator, isStepCompleted = _a.isStepCompleted, onClick = _a.onClick, interactive = _a.interactive, isVerticalAlign = _a.isVerticalAlign, isNotLastStep = _a.isNotLastStep, fullWidth = _a.fullWidth, _g = _a.minSpaceBetweenSteps, minSpaceBetweenSteps = _g === void 0 ? 24 : _g, completedDashColor = _a.completedDashColor, dataTestId = _a.dataTestId;
@@ -43,29 +41,29 @@ var Step = function (_a) {
43
41
  };
44
42
  var getStepIndicator = function () {
45
43
  if (customStepIndicator) {
46
- return React__default.default.createElement(components_stepIndicator_Component.StepIndicator, tslib.__assign({}, customStepIndicator));
44
+ return React__default.default.createElement(Component.StepIndicator, tslib.__assign({}, customStepIndicator));
47
45
  }
48
46
  if (isCriticalError) {
49
- return React__default.default.createElement(components_stepIndicator_Component.StepIndicator, { iconColor: 'negative', content: React__default.default.createElement(CrossCompactMIcon.CrossCompactMIcon, null) });
47
+ return React__default.default.createElement(Component.StepIndicator, { iconColor: 'negative', content: React__default.default.createElement(CrossCompactMIcon.CrossCompactMIcon, null) });
50
48
  }
51
49
  if (isError) {
52
- return React__default.default.createElement(components_stepIndicator_Component.StepIndicator, { iconColor: 'negative', content: React__default.default.createElement(ExclamationCircleMIcon.ExclamationCircleMIcon, null) });
50
+ return React__default.default.createElement(Component.StepIndicator, { iconColor: 'negative', content: React__default.default.createElement(ExclamationCircleMIcon.ExclamationCircleMIcon, null) });
53
51
  }
54
52
  if (isWarning) {
55
- return React__default.default.createElement(components_stepIndicator_Component.StepIndicator, { iconColor: 'attention', content: React__default.default.createElement(ExclamationCircleMIcon.ExclamationCircleMIcon, null) });
53
+ return React__default.default.createElement(Component.StepIndicator, { iconColor: 'attention', content: React__default.default.createElement(ExclamationCircleMIcon.ExclamationCircleMIcon, null) });
56
54
  }
57
55
  if (isWaiting) {
58
- return React__default.default.createElement(components_stepIndicator_Component.StepIndicator, { iconColor: 'secondary', content: React__default.default.createElement(ClockMIcon.ClockMIcon, null) });
56
+ return React__default.default.createElement(Component.StepIndicator, { iconColor: 'secondary', content: React__default.default.createElement(ClockMIcon.ClockMIcon, null) });
59
57
  }
60
58
  if (isPositive) {
61
- return React__default.default.createElement(components_stepIndicator_Component.StepIndicator, { iconColor: 'positive', content: React__default.default.createElement(CheckmarkCircleMIcon.CheckmarkCircleMIcon, null) });
59
+ return React__default.default.createElement(Component.StepIndicator, { iconColor: 'positive', content: React__default.default.createElement(CheckmarkCircleMIcon.CheckmarkCircleMIcon, null) });
62
60
  }
63
61
  if (isStepCompleted) {
64
- return (React__default.default.createElement(components_stepIndicator_Component.StepIndicator, { iconColor: 'positive', content: React__default.default.createElement(CheckmarkCircleMIcon.CheckmarkCircleMIcon, null), className: styles.completedIndicator }));
62
+ return (React__default.default.createElement(Component.StepIndicator, { iconColor: 'positive', content: React__default.default.createElement(CheckmarkCircleMIcon.CheckmarkCircleMIcon, null), className: index_module.completedIndicator }));
65
63
  }
66
64
  if (!ordered) {
67
- return (React__default.default.createElement("div", { className: styles.checkbox },
68
- React__default.default.createElement("span", { className: styles.dot })));
65
+ return (React__default.default.createElement("div", { className: index_module.checkbox },
66
+ React__default.default.createElement("span", { className: index_module.dot })));
69
67
  }
70
68
  return stepNumber;
71
69
  };
@@ -79,40 +77,41 @@ var Step = function (_a) {
79
77
  };
80
78
  var renderDash = function () {
81
79
  var _a;
82
- return (React__default.default.createElement("div", { className: cn__default.default(styles.dash, (_a = {},
83
- _a[styles.vertical] = isVerticalAlign,
84
- _a[styles.completed] = isStepCompleted,
80
+ return (React__default.default.createElement("div", { className: cn__default.default(index_module.dash, (_a = {},
81
+ _a[index_module.vertical] = isVerticalAlign,
82
+ _a[index_module.completed] = isStepCompleted,
85
83
  _a)), style: tslib.__assign({}, getCustomDashColor()) }));
86
84
  };
87
- return (React__default.default.createElement("div", { "data-test-id": coreComponentsShared.getDataTestId(dataTestId, 'step'), role: 'button', tabIndex: 0, ref: stepRef, className: cn__default.default(styles.step, (_b = {},
88
- _b[styles.completed] = isStepCompleted,
89
- _b[styles.error] = isError,
90
- _b[styles.selected] = isSelected,
91
- _b[styles.disabled] = disabled,
92
- _b[styles.focused] = focused,
93
- _b[styles.vertical] = isVerticalAlign,
94
- _b[styles.interactive] = interactive,
95
- _b[styles.fullWidth] = fullWidth && isVerticalAlign,
96
- _b[styles.horizontal] = !isVerticalAlign,
85
+ return (React__default.default.createElement("div", { "data-test-id": coreComponentsShared.getDataTestId(dataTestId, 'step'), role: 'button', tabIndex: 0, ref: stepRef, className: cn__default.default(index_module.step, (_b = {},
86
+ _b[index_module.completed] = isStepCompleted,
87
+ _b[index_module.error] = isError,
88
+ _b[index_module.selected] = isSelected,
89
+ _b[index_module.disabled] = disabled,
90
+ _b[index_module.focused] = focused,
91
+ _b[index_module.vertical] = isVerticalAlign,
92
+ _b[index_module.interactive] = interactive,
93
+ _b[index_module.fullWidth] = fullWidth && isVerticalAlign,
94
+ _b[index_module.horizontal] = !isVerticalAlign,
97
95
  _b)), onClick: handleButtonClick, onKeyDown: handleKeyDown },
98
- React__default.default.createElement("div", { className: cn__default.default(styles.indicator, (_c = {},
99
- _c[styles.vertical] = isVerticalAlign,
100
- _c[styles.interactive] = interactive,
96
+ React__default.default.createElement("div", { className: cn__default.default(index_module.indicator, (_c = {},
97
+ _c[index_module.vertical] = isVerticalAlign,
98
+ _c[index_module.interactive] = interactive,
101
99
  _c)) },
102
- React__default.default.createElement("div", { className: cn__default.default(styles.option, (_d = {},
103
- _d[styles.unordered] = !ordered,
104
- _d[styles.vertical] = isVerticalAlign,
105
- _d[styles.error] = isError,
100
+ React__default.default.createElement("div", { className: cn__default.default(index_module.option, (_d = {},
101
+ _d[index_module.unordered] = !ordered,
102
+ _d[index_module.vertical] = isVerticalAlign,
103
+ _d[index_module.error] = isError,
106
104
  _d)) }, getStepIndicator()),
107
105
  isNotLastStep && isVerticalAlign && renderDash()),
108
- React__default.default.createElement("div", { className: cn__default.default(styles.textWrapper, styles["gap-".concat(minSpaceBetweenSteps)], (_e = {},
109
- _e[styles.vertical] = isVerticalAlign,
106
+ React__default.default.createElement("div", { className: cn__default.default(index_module.textWrapper, index_module["gap-".concat(minSpaceBetweenSteps)], (_e = {},
107
+ _e[index_module.vertical] = isVerticalAlign,
110
108
  _e)) },
111
- React__default.default.createElement("div", { className: cn__default.default(styles.text, (_f = {},
112
- _f[styles.interactive] = interactive,
113
- _f[styles.fullWidth] = fullWidth && isVerticalAlign,
109
+ React__default.default.createElement("div", { className: cn__default.default(index_module.text, (_f = {},
110
+ _f[index_module.interactive] = interactive,
111
+ _f[index_module.fullWidth] = fullWidth && isVerticalAlign,
114
112
  _f)), onClick: handleTextClick }, children)),
115
113
  isNotLastStep && !isVerticalAlign && renderDash()));
116
114
  };
117
115
 
118
116
  exports.Step = Step;
117
+ //# sourceMappingURL=Component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Component.js","sources":["../../src/components/step/Component.tsx"],"sourcesContent":["import React, { FC, useRef } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\nimport { useFocus } from '@alfalab/hooks';\nimport { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';\nimport { ClockMIcon } from '@alfalab/icons-glyph/ClockMIcon';\nimport { CrossCompactMIcon } from '@alfalab/icons-glyph/CrossCompactMIcon';\nimport { ExclamationCircleMIcon } from '@alfalab/icons-glyph/ExclamationCircleMIcon';\n\nimport { CommonProps } from '../../types/common-props';\nimport { StepIndicator, StepIndicatorProps } from '../step-indicator';\n\nimport styles from './index.module.css';\n\ntype StepProps = {\n /**\n * Номер шага\n */\n stepNumber: number;\n\n /**\n * Маркер того, что текущий шаг выбран\n */\n isSelected: boolean;\n\n /**\n * Маркер того, что текущий шаг доступен для клика\n */\n disabled: boolean;\n\n /**\n * Маркер того, что текущий шаг находится в состоянии \"Positive\"\n */\n isPositive: boolean;\n\n /**\n * Маркер того, что текущий шаг находится в состоянии \"Error\"\n */\n isError: boolean;\n\n /**\n * Маркер того, что текущий шаг находится в состоянии \"isCriticalError\"\n */\n isCriticalError: boolean;\n\n /**\n * Маркер того, что текущий шаг находится в состоянии \"Warning\"\n */\n isWarning: boolean;\n\n /**\n * Маркер того, что текущий шаг находится в состоянии \"Waiting\"\n */\n isWaiting: boolean;\n\n /**\n * Маркер того, что текущий шаг нужно пометить как завершенный\n */\n isStepCompleted: boolean;\n\n /**\n * Свойства кастомного индикатора текущего шага\n */\n customStepIndicator?: StepIndicatorProps | null;\n\n /**\n * Указывает, является ли текущий шаг последним в списке\n */\n isNotLastStep?: boolean;\n\n /**\n * Обработчик нажатия на текущей шаг\n * @param stepNumber - номер шага\n */\n onClick: (stepNumber: number) => void;\n} & CommonProps;\n\nexport const Step: FC<StepProps> = ({\n children,\n stepNumber,\n isSelected,\n disabled,\n ordered,\n isPositive,\n isError,\n isCriticalError,\n isWarning,\n isWaiting,\n customStepIndicator,\n isStepCompleted,\n onClick,\n interactive,\n isVerticalAlign,\n isNotLastStep,\n fullWidth,\n minSpaceBetweenSteps = 24,\n completedDashColor,\n dataTestId,\n}) => {\n const stepRef = useRef<HTMLDivElement>(null);\n\n const [focused] = useFocus(stepRef, 'keyboard');\n\n const handleButtonClick = () => {\n if (!disabled && interactive && onClick) {\n onClick(stepNumber);\n }\n };\n\n const handleTextClick = (e: React.MouseEvent<HTMLElement>) => {\n if (!interactive) {\n e.stopPropagation();\n }\n };\n\n const handleKeyDown = (event: React.KeyboardEvent) => {\n if (event.key === 'Enter') {\n handleButtonClick();\n }\n };\n\n const getStepIndicator = () => {\n if (customStepIndicator) {\n return <StepIndicator {...customStepIndicator} />;\n }\n if (isCriticalError) {\n return <StepIndicator iconColor='negative' content={<CrossCompactMIcon />} />;\n }\n if (isError) {\n return <StepIndicator iconColor='negative' content={<ExclamationCircleMIcon />} />;\n }\n if (isWarning) {\n return <StepIndicator iconColor='attention' content={<ExclamationCircleMIcon />} />;\n }\n if (isWaiting) {\n return <StepIndicator iconColor='secondary' content={<ClockMIcon />} />;\n }\n if (isPositive) {\n return <StepIndicator iconColor='positive' content={<CheckmarkCircleMIcon />} />;\n }\n if (isStepCompleted) {\n return (\n <StepIndicator\n iconColor='positive'\n content={<CheckmarkCircleMIcon />}\n className={styles.completedIndicator}\n />\n );\n }\n if (!ordered) {\n return (\n <div className={styles.checkbox}>\n <span className={styles.dot} />\n </div>\n );\n }\n\n return stepNumber;\n };\n\n const getCustomDashColor = () => {\n if (isStepCompleted && completedDashColor) {\n return {\n borderColor: completedDashColor,\n };\n }\n\n return {};\n };\n\n const renderDash = () => (\n <div\n className={cn(styles.dash, {\n [styles.vertical]: isVerticalAlign,\n [styles.completed]: isStepCompleted,\n })}\n style={{\n ...getCustomDashColor(),\n }}\n />\n );\n\n return (\n <div\n data-test-id={getDataTestId(dataTestId, 'step')}\n role='button'\n tabIndex={0}\n ref={stepRef}\n className={cn(styles.step, {\n [styles.completed]: isStepCompleted,\n [styles.error]: isError,\n [styles.selected]: isSelected,\n [styles.disabled]: disabled,\n [styles.focused]: focused,\n [styles.vertical]: isVerticalAlign,\n [styles.interactive]: interactive,\n [styles.fullWidth]: fullWidth && isVerticalAlign,\n [styles.horizontal]: !isVerticalAlign,\n })}\n onClick={handleButtonClick}\n onKeyDown={handleKeyDown}\n >\n <div\n className={cn(styles.indicator, {\n [styles.vertical]: isVerticalAlign,\n [styles.interactive]: interactive,\n })}\n >\n <div\n className={cn(styles.option, {\n [styles.unordered]: !ordered,\n [styles.vertical]: isVerticalAlign,\n [styles.error]: isError,\n })}\n >\n {getStepIndicator()}\n </div>\n {isNotLastStep && isVerticalAlign && renderDash()}\n </div>\n <div\n className={cn(styles.textWrapper, styles[`gap-${minSpaceBetweenSteps}`], {\n [styles.vertical]: isVerticalAlign,\n })}\n >\n {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */}\n <div\n className={cn(styles.text, {\n [styles.interactive]: interactive,\n [styles.fullWidth]: fullWidth && isVerticalAlign,\n })}\n onClick={handleTextClick}\n >\n {children}\n </div>\n </div>\n {isNotLastStep && !isVerticalAlign && renderDash()}\n </div>\n );\n};\n"],"names":["useRef","useFocus","React","StepIndicator","__assign","CrossCompactMIcon","ExclamationCircleMIcon","ClockMIcon","CheckmarkCircleMIcon","styles","cn","getDataTestId"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA8EO,IAAM,IAAI,GAAkB,UAAC,EAqBnC,EAAA;;AApBG,IAAA,IAAA,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,UAAU,GAAA,EAAA,CAAA,UAAA,EACV,UAAU,GAAA,EAAA,CAAA,UAAA,EACV,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,OAAO,GAAA,EAAA,CAAA,OAAA,EACP,UAAU,GAAA,EAAA,CAAA,UAAA,EACV,OAAO,GAAA,EAAA,CAAA,OAAA,EACP,eAAe,GAAA,EAAA,CA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AA,EAAA,GAAA,EAAA;AACnE,gBAAA,EAAA,CAACA,YAAM,CAAC,QAAQ,CAAA,GAAG,eAAe;AACpC,gBAAA,EAAA,EAAA,EAAA;AAGF,YAAAP,sBAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAEQ,mBAAE,CAACD,YAAM,CAAC,IAAI,GAAA,EAAA,GAAA,EAAA;AACrB,oBAAA,EAAA,CAACA,YAAM,CAAC,WAAW,CAAA,GAAG,WAAW;AACjC,oBAAA,EAAA,CAACA,YAAM,CAAC,SAAS,CAAG,GAAA,SAAS,IAAI,eAAe;AAClD,oBAAA,EAAA,EAAA,EACF,OAAO,EAAE,eAAe,EAEvB,EAAA,QAAQ,CACP,CACJ;QACL,aAAa,IAAI,CAAC,eAAe,IAAI,UAAU,EAAE,CAChD;AAEd;;;;"}
@@ -1,6 +1,4 @@
1
- /* hash: 1qy04 */
2
- :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
- } /* deprecated */ :root {
1
+ :root {
4
2
  --color-light-neutral-translucent-1300: rgba(3, 3, 6, 0.88);
5
3
  --color-light-neutral-translucent-300: rgba(15, 25, 55, 0.1);
6
4
  --color-light-status-info: #2288fa;
@@ -8,65 +6,46 @@
8
6
  --color-light-text-primary: rgba(3, 3, 6, 0.88);
9
7
  --color-light-text-primary-inverted: rgba(255, 255, 255, 0.94);
10
8
  --color-light-transparent-default-hover: rgba(38, 55, 88, 0.06);
11
- --color-light-transparent-default-press: rgba(30, 43, 68, 0.08); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
12
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
13
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
9
+ --color-light-transparent-default-press: rgba(30, 43, 68, 0.08);
14
10
  } :root {
15
-
16
- /* Hard */
17
-
18
- /* Up */
19
-
20
- /* Hard up */
21
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
22
11
  --border-radius-circle: 50%;
23
-
24
- /* новые значения, используйте их */
25
12
  } :root {
26
- --gap-3xs: 2px; /* deprecated */
27
- --gap-2xs: 4px; /* deprecated */
28
- --gap-xs: 8px; /* deprecated */ /* deprecated */ /* deprecated */
29
- --gap-m: 16px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
30
-
31
- /* новые значения, используйте их */
32
-
33
- /* no-unit может приводить к проблемам в calc (#1559) */
34
- /* stylelint-disable-next-line length-zero-no-unit */
13
+ --gap-3xs: 2px;
14
+ --gap-2xs: 4px;
15
+ --gap-xs: 8px;
16
+ --gap-m: 16px;
35
17
  --gap-0: 0px;
36
18
  --gap-2: var(--gap-3xs);
37
19
  --gap-4: var(--gap-2xs);
38
20
  --gap-8: var(--gap-xs);
39
21
  --gap-16: var(--gap-m);
40
22
  } :root {
41
- } /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
42
23
  --focus-color: var(--color-light-status-info);
43
- } /* сбрасывает синюю подсветку при нажатии */ :root {
24
+ } :root {
44
25
  --steps-option-svg-color: var(--color-light-status-positive);
45
26
  --steps-dash-border: 2px solid var(--color-light-status-positive);
46
- } .steps__step_wfskf {
27
+ } .steps__step_41a33 {
47
28
  display: flex;
48
29
  outline: none
49
- } .steps__step_wfskf.steps__horizontal_wfskf {
30
+ } .steps__step_41a33.steps__horizontal_41a33 {
50
31
  flex-grow: 1;
51
- } .steps__step_wfskf:not(.steps__vertical_wfskf) {
32
+ } .steps__step_41a33:not(.steps__vertical_41a33) {
52
33
  align-items: center;
53
- } .steps__step_wfskf:last-of-type .steps__textWrapper_wfskf.steps__vertical_wfskf {
54
- margin-bottom: var(--gap-0);
55
- } .steps__step_wfskf.steps__interactive_wfskf:not(.steps__disabled_wfskf):hover {
34
+ } .steps__step_41a33.steps__interactive_41a33:not(.steps__disabled_41a33):hover {
56
35
  cursor: pointer;
57
- } .steps__step_wfskf.steps__disabled_wfskf:hover .steps__text_wfskf {
36
+ } .steps__step_41a33.steps__disabled_41a33:hover .steps__text_41a33 {
58
37
  background: unset;
59
- } .steps__step_wfskf.steps__disabled_wfskf .steps__indicator_wfskf {
38
+ } .steps__step_41a33.steps__disabled_41a33 .steps__indicator_41a33 {
60
39
  cursor: unset;
61
- } .steps__indicator_wfskf {
40
+ } .steps__indicator_41a33 {
62
41
  cursor: pointer;
63
42
  display: flex;
64
43
  align-items: center;
65
44
  margin-right: var(--gap-4)
66
- } .steps__indicator_wfskf.steps__vertical_wfskf {
45
+ } .steps__indicator_41a33.steps__vertical_41a33 {
67
46
  flex-direction: column;
68
47
  margin-right: var(--gap-8);
69
- } .steps__option_wfskf {
48
+ } .steps__option_41a33 {
70
49
  font-size: 14px;
71
50
  line-height: 20px;
72
51
  font-weight: 700;
@@ -79,31 +58,31 @@
79
58
  min-width: 24px;
80
59
  height: 24px;
81
60
  border-radius: var(--border-radius-circle)
82
- } .steps__option_wfskf.steps__vertical_wfskf {
61
+ } .steps__option_41a33.steps__vertical_41a33 {
83
62
  margin-top: var(--gap-8);
84
- } .steps__dash_wfskf {
63
+ } .steps__dash_41a33 {
85
64
  flex: 1 1 auto;
86
65
  min-width: 24px;
87
66
  border-top: 2px solid var(--color-light-neutral-translucent-300);
88
67
  margin-right: var(--gap-8)
89
- } .steps__dash_wfskf.steps__completed_wfskf {
68
+ } .steps__dash_41a33.steps__completed_41a33 {
90
69
  border-top: var(--steps-dash-border);
91
- } .steps__dash_wfskf.steps__vertical_wfskf {
70
+ } .steps__dash_41a33.steps__vertical_41a33 {
92
71
  min-width: unset;
93
72
  min-height: 8px;
94
73
  margin-right: var(--gap-0);
95
74
  margin-top: var(--gap-8);
96
75
  border-left: 2px solid var(--color-light-neutral-translucent-300);
97
76
  border-top: none;
98
- } .steps__dash_wfskf.steps__completed_wfskf.steps__vertical_wfskf {
77
+ } .steps__dash_41a33.steps__completed_41a33.steps__vertical_41a33 {
99
78
  border-left: var(--steps-dash-border);
100
- } .steps__textWrapper_wfskf.steps__vertical_wfskf {
79
+ } .steps__textWrapper_41a33.steps__vertical_41a33 {
101
80
  min-height: 48px
102
- } .steps__textWrapper_wfskf.steps__vertical_wfskf.steps__gap-24_wfskf {
81
+ } .steps__textWrapper_41a33.steps__vertical_41a33.steps__gap-24_41a33 {
103
82
  margin-bottom: var(--gap-8);
104
- } .steps__textWrapper_wfskf.steps__vertical_wfskf.steps__gap-32_wfskf {
83
+ } .steps__textWrapper_41a33.steps__vertical_41a33.steps__gap-32_41a33 {
105
84
  margin-bottom: var(--gap-16);
106
- } .steps__text_wfskf {
85
+ } .steps__text_41a33 {
107
86
  font-size: 16px;
108
87
  line-height: 24px;
109
88
  font-weight: 400;
@@ -112,20 +91,21 @@
112
91
  padding: var(--gap-8);
113
92
  color: var(--color-light-text-primary);
114
93
  border-radius: var(--gap-8);
94
+ height: -moz-min-content;
115
95
  height: min-content
116
- } .steps__text_wfskf.steps__interactive_wfskf:not(.steps__disabled_wfskf):hover {
96
+ } .steps__text_41a33.steps__interactive_41a33:not(.steps__disabled_41a33):hover {
117
97
  background: var(--color-light-transparent-default-hover);
118
- } .steps__text_wfskf.steps__interactive_wfskf:not(.steps__disabled_wfskf):active {
98
+ } .steps__text_41a33.steps__interactive_41a33:not(.steps__disabled_41a33):active {
119
99
  background: var(--color-light-transparent-default-press);
120
- } .steps__focused_wfskf {
100
+ } .steps__focused_41a33 {
121
101
  outline: var(--gap-2) solid var(--focus-color);
122
102
  outline-offset: var(--gap-2);
123
- } .steps__selected_wfskf .steps__text_wfskf {
103
+ } .steps__selected_41a33 .steps__text_41a33 {
124
104
  color: var(--color-light-text-primary);
125
- } .steps__selected_wfskf .steps__option_wfskf {
105
+ } .steps__selected_41a33 .steps__option_41a33 {
126
106
  color: var(--color-light-text-primary-inverted);
127
107
  background: var(--color-light-neutral-translucent-1300);
128
- } .steps__checkbox_wfskf {
108
+ } .steps__checkbox_41a33 {
129
109
  display: flex;
130
110
  justify-content: center;
131
111
  align-items: center;
@@ -133,20 +113,20 @@
133
113
  width: 20px;
134
114
  height: 20px;
135
115
  border: 2px solid var(--color-light-neutral-translucent-300);
136
- } .steps__dot_wfskf {
116
+ } .steps__dot_41a33 {
137
117
  width: 10px;
138
118
  height: 10px;
139
119
  border-radius: var(--border-radius-circle);
140
120
  background: var(--color-light-neutral-translucent-300);
141
- } .steps__selected_wfskf .steps__checkbox_wfskf {
121
+ } .steps__selected_41a33 .steps__checkbox_41a33 {
142
122
  border: 2px solid var(--color-light-neutral-translucent-1300)
143
- } .steps__selected_wfskf .steps__checkbox_wfskf .steps__dot_wfskf {
123
+ } .steps__selected_41a33 .steps__checkbox_41a33 .steps__dot_41a33 {
144
124
  background: var(--color-light-neutral-translucent-1300);
145
- } .steps__option_wfskf:not(.steps__error_wfskf).steps__unordered_wfskf {
125
+ } .steps__option_41a33:not(.steps__error_41a33).steps__unordered_41a33 {
146
126
  background: unset;
147
- } .steps__completedIndicator_wfskf > [class*='positive'] {
127
+ } .steps__completedIndicator_41a33 > [class*='positive'] {
148
128
  color: var(--steps-option-svg-color);
149
129
  background-color: var(--steps-option-svg-color);
150
- } .steps__fullWidth_wfskf {
130
+ } .steps__fullWidth_41a33 {
151
131
  width: 100%;
152
132
  }
@@ -1 +1 @@
1
- export * from "./Component";
1
+ export * from './Component';
@@ -2,8 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var components_step_Component = require('./Component.js');
5
+ var Component = require('./Component.js');
6
6
 
7
7
 
8
8
 
9
- exports.Step = components_step_Component.Step;
9
+ exports.Step = Component.Step;
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ require('./index.css');
4
+
5
+ var styles = {"step":"steps__step_41a33","horizontal":"steps__horizontal_41a33","vertical":"steps__vertical_41a33","interactive":"steps__interactive_41a33","disabled":"steps__disabled_41a33","text":"steps__text_41a33","indicator":"steps__indicator_41a33","option":"steps__option_41a33","dash":"steps__dash_41a33","completed":"steps__completed_41a33","textWrapper":"steps__textWrapper_41a33","gap-24":"steps__gap-24_41a33","gap-32":"steps__gap-32_41a33","focused":"steps__focused_41a33","selected":"steps__selected_41a33","checkbox":"steps__checkbox_41a33","dot":"steps__dot_41a33","error":"steps__error_41a33","unordered":"steps__unordered_41a33","completedIndicator":"steps__completedIndicator_41a33","fullWidth":"steps__fullWidth_41a33"};
6
+
7
+ module.exports = styles;
8
+ //# sourceMappingURL=index.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.module.css.js","sources":["../../src/components/step/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n:root {\n --steps-option-svg-color: var(--color-light-status-positive);\n --steps-dash-border: 2px solid var(--color-light-status-positive);\n}\n\n.step {\n display: flex;\n outline: none;\n\n &.horizontal {\n flex-grow: 1;\n }\n\n &:not(.vertical) {\n align-items: center;\n }\n}\n\n.step.interactive:not(.disabled):hover {\n cursor: pointer;\n}\n\n.step.disabled:hover {\n & .text {\n background: unset;\n }\n}\n\n.step.disabled {\n & .indicator {\n cursor: unset;\n }\n}\n\n.indicator {\n cursor: pointer;\n display: flex;\n align-items: center;\n margin-right: var(--gap-4);\n\n &.vertical {\n flex-direction: column;\n margin-right: var(--gap-8);\n }\n}\n\n.option {\n @mixin accent_primary_small;\n\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--color-light-text-primary);\n background: var(--color-light-neutral-translucent-300);\n min-width: 24px;\n height: 24px;\n border-radius: var(--border-radius-circle);\n\n &.vertical {\n margin-top: var(--gap-8);\n }\n}\n\n.dash {\n flex: 1 1 auto;\n min-width: 24px;\n border-top: 2px solid var(--color-light-neutral-translucent-300);\n margin-right: var(--gap-8);\n\n &.completed {\n border-top: var(--steps-dash-border);\n }\n\n &.vertical {\n min-width: unset;\n min-height: 8px;\n margin-right: var(--gap-0);\n margin-top: var(--gap-8);\n border-left: 2px solid var(--color-light-neutral-translucent-300);\n border-top: none;\n }\n\n &.completed.vertical {\n border-left: var(--steps-dash-border);\n }\n}\n\n.textWrapper {\n &.vertical {\n min-height: 48px;\n\n &.gap-24 {\n margin-bottom: var(--gap-8);\n }\n\n &.gap-32 {\n margin-bottom: var(--gap-16);\n }\n }\n}\n\n.text {\n @mixin paragraph_primary_medium;\n\n transition: background 0.2s;\n padding: var(--gap-8);\n color: var(--color-light-text-primary);\n border-radius: var(--gap-8);\n height: min-content;\n\n &.interactive:not(.disabled) {\n &:hover {\n background: var(--color-light-transparent-default-hover);\n }\n\n &:active {\n background: var(--color-light-transparent-default-press);\n }\n }\n}\n\n.focused {\n outline: var(--gap-2) solid var(--focus-color);\n outline-offset: var(--gap-2);\n}\n\n.selected {\n & .text {\n color: var(--color-light-text-primary);\n }\n\n & .option {\n color: var(--color-light-text-primary-inverted);\n background: var(--color-light-neutral-translucent-1300);\n }\n}\n\n.checkbox {\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: var(--border-radius-circle);\n width: 20px;\n height: 20px;\n border: 2px solid var(--color-light-neutral-translucent-300);\n}\n\n.dot {\n width: 10px;\n height: 10px;\n border-radius: var(--border-radius-circle);\n background: var(--color-light-neutral-translucent-300);\n}\n\n.selected .checkbox {\n border: 2px solid var(--color-light-neutral-translucent-1300);\n\n & .dot {\n background: var(--color-light-neutral-translucent-1300);\n }\n}\n\n.option:not(.error).unordered {\n background: unset;\n}\n\n.completedIndicator > [class*='positive'] {\n color: var(--steps-option-svg-color);\n background-color: var(--steps-option-svg-color);\n}\n\n.fullWidth {\n width: 100%;\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,MAAM,CAAC,mBAAmB,CAAC,YAAY,CAAC,yBAAyB,CAAC,UAAU,CAAC,uBAAuB,CAAC,aAAa,CAAC,0BAA0B,CAAC,UAAU,CAAC,uBAAuB,CAAC,MAAM,CAAC,mBAAmB,CAAC,WAAW,CAAC,wBAAwB,CAAC,QAAQ,CAAC,qBAAqB,CAAC,MAAM,CAAC,mBAAmB,CAAC,WAAW,CAAC,wBAAwB,CAAC,aAAa,CAAC,0BAA0B,CAAC,QAAQ,CAAC,qBAAqB,CAAC,QAAQ,CAAC,qBAAqB,CAAC,SAAS,CAAC,sBAAsB,CAAC,UAAU,CAAC,uBAAuB,CAAC,UAAU,CAAC,uBAAuB,CAAC,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,oBAAoB,CAAC,WAAW,CAAC,wBAAwB,CAAC,oBAAoB,CAAC,iCAAiC,CAAC,WAAW,CAAC,wBAAwB,CAAC;;;;"}
@@ -1,6 +1,4 @@
1
- /// <reference types="react" />
2
1
  import React from 'react';
3
- import { BadgeProps } from "@alfalab/core-components-badge";
4
- type StepIndicatorProps = Pick<BadgeProps, 'content' | 'iconColor' | 'className'>;
5
- declare const StepIndicator: React.FC<StepIndicatorProps>;
6
- export { StepIndicatorProps, StepIndicator };
2
+ import { BadgeProps } from '@alfalab/core-components-badge';
3
+ export declare type StepIndicatorProps = Pick<BadgeProps, 'content' | 'iconColor' | 'className'>;
4
+ export declare const StepIndicator: React.FC<StepIndicatorProps>;
@@ -5,18 +5,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var React = require('react');
6
6
  var cn = require('classnames');
7
7
  var coreComponentsBadge = require('@alfalab/core-components-badge');
8
+ var index_module = require('./index.module.css.js');
8
9
 
9
10
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
10
11
 
11
12
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
13
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
13
14
 
14
- var styles = {"component":"steps__component_1du8h"};
15
- require('./index.css')
16
-
17
15
  var StepIndicator = function (_a) {
18
16
  var content = _a.content, iconColor = _a.iconColor, className = _a.className;
19
- return (React__default.default.createElement(coreComponentsBadge.Badge, { size: 'l', view: 'icon', iconColor: iconColor, className: cn__default.default(styles.component, className), content: content }));
17
+ return (React__default.default.createElement(coreComponentsBadge.Badge, { size: 'l', view: 'icon', iconColor: iconColor, className: cn__default.default(index_module.component, className), content: content }));
20
18
  };
21
19
 
22
20
  exports.StepIndicator = StepIndicator;
21
+ //# sourceMappingURL=Component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Component.js","sources":["../../src/components/step-indicator/Component.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\n\nimport { Badge, BadgeProps } from '@alfalab/core-components-badge';\n\nimport styles from './index.module.css';\n\nexport type StepIndicatorProps = Pick<BadgeProps, 'content' | 'iconColor' | 'className'>;\n\nexport const StepIndicator: React.FC<StepIndicatorProps> = ({ content, iconColor, className }) => (\n <Badge\n size='l'\n view='icon'\n iconColor={iconColor}\n className={cn(styles.component, className)}\n content={content}\n />\n);\n"],"names":["React","Badge","cn","styles"],"mappings":";;;;;;;;;;;;;;AASO,IAAM,aAAa,GAAiC,UAAC,EAAiC,EAAA;AAA/B,IAAA,IAAA,OAAO,aAAA,EAAE,SAAS,GAAA,EAAA,CAAA,SAAA,EAAE,SAAS,GAAA,EAAA,CAAA,SAAA;AAAO,IAAA,QAC9FA,sBAAA,CAAA,aAAA,CAACC,yBAAK,EAAA,EACF,IAAI,EAAC,GAAG,EACR,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,SAAS,EACpB,SAAS,EAAEC,mBAAE,CAACC,YAAM,CAAC,SAAS,EAAE,SAAS,CAAC,EAC1C,OAAO,EAAE,OAAO,GAClB;AAP4F;;;;"}