@spaced-out/ui-design-system 0.1.125 → 0.1.126

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.126](https://github.com/spaced-out/ui-design-system/compare/v0.1.125...v0.1.126) (2024-08-30)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * 🖼️ stepper component step color and custom icon changes ([#261](https://github.com/spaced-out/ui-design-system/issues/261)) ([038d129](https://github.com/spaced-out/ui-design-system/commit/038d12945065634f736b65a328f96c589f8307cf))
11
+
5
12
  ### [0.1.125](https://github.com/spaced-out/ui-design-system/compare/v0.1.124...v0.1.125) (2024-08-29)
6
13
 
7
14
 
@@ -57,17 +57,13 @@ const Step = /*#__PURE__*/React.forwardRef((_ref, ref) => {
57
57
  }, classNames?.stepCounter)
58
58
  }, completed && !active ? /*#__PURE__*/React.createElement(_Icon.Icon, {
59
59
  name: "check",
60
- color: iconName ? 'success' : 'inversePrimary',
61
- type: "solid",
62
- size: iconName ? 'medium' : 'small'
60
+ type: _Icon.ICON_TYPE.solid,
61
+ size: _Icon.ICON_SIZE.small,
62
+ className: _StepperModule.default.stepIcon
63
63
  }) : /*#__PURE__*/React.createElement(React.Fragment, null, iconName ? /*#__PURE__*/React.createElement(_Icon.Icon, {
64
64
  name: iconName,
65
- className: (0, _classify.default)(_StepperModule.default.stepIcon, {
66
- [_StepperModule.default.selected]: active,
67
- [_StepperModule.default.completed]: completed,
68
- [_StepperModule.default.disabled]: disabled
69
- }),
70
- size: "medium",
65
+ className: _StepperModule.default.stepIcon,
66
+ size: _Icon.ICON_SIZE.small,
71
67
  type: iconType
72
68
  }) : (index + 1).toString())), /*#__PURE__*/React.createElement("div", {
73
69
  className: (0, _classify.default)(_StepperModule.default.stepContent, classNames?.content)
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
 
5
5
  import classify from '../../../utils/classify';
6
6
  import type {IconType} from '../../Icon';
7
- import {Icon} from '../../Icon';
7
+ import {Icon, ICON_SIZE, ICON_TYPE} from '../../Icon';
8
8
 
9
9
  import css from '../Stepper.module.css';
10
10
 
@@ -95,21 +95,17 @@ export const Step: React$AbstractComponent<StepProps, HTMLDivElement> =
95
95
  {completed && !active ? (
96
96
  <Icon
97
97
  name="check"
98
- color={iconName ? 'success' : 'inversePrimary'}
99
- type="solid"
100
- size={iconName ? 'medium' : 'small'}
98
+ type={ICON_TYPE.solid}
99
+ size={ICON_SIZE.small}
100
+ className={css.stepIcon}
101
101
  />
102
102
  ) : (
103
103
  <React.Fragment>
104
104
  {iconName ? (
105
105
  <Icon
106
106
  name={iconName}
107
- className={classify(css.stepIcon, {
108
- [css.selected]: active,
109
- [css.completed]: completed,
110
- [css.disabled]: disabled,
111
- })}
112
- size="medium"
107
+ className={css.stepIcon}
108
+ size={ICON_SIZE.small}
113
109
  type={iconType}
114
110
  />
115
111
  ) : (
@@ -1,10 +1,12 @@
1
1
  @value (
2
2
  colorFillPrimary,
3
+ colorFillSecondary,
3
4
  colorSuccessDark,
4
5
  colorBackgroundTertiary,
5
6
  colorFillDisabled,
6
7
  colorTextSecondary,
7
8
  colorTextPrimary,
9
+ colorTextClickable,
8
10
  colorTextDisabled,
9
11
  colorTextInversePrimary,
10
12
  colorBorderSecondary
@@ -39,7 +41,7 @@
39
41
  .stepWrapper {
40
42
  position: relative;
41
43
  display: flex;
42
- align-items: baseline;
44
+ align-items: flex-start;
43
45
  gap: spaceSmall;
44
46
  width: sizeFluid;
45
47
  }
@@ -60,16 +62,16 @@
60
62
  color: colorTextSecondary;
61
63
  }
62
64
 
63
- .stepWrapperCounter.selected {
65
+ .stepWrapperCounter.completed {
64
66
  background-color: colorFillPrimary;
65
67
  border: borderWidthPrimary solid transparent;
66
68
  color: colorTextInversePrimary;
67
69
  }
68
70
 
69
- .stepWrapperCounter.completed {
70
- background-color: colorSuccessDark;
71
+ .stepWrapperCounter.selected {
72
+ background-color: colorFillSecondary;
71
73
  border: borderWidthPrimary solid transparent;
72
- color: colorTextInversePrimary;
74
+ color: colorTextClickable;
73
75
  }
74
76
 
75
77
  .stepWrapperCounter.disabled {
@@ -78,32 +80,15 @@
78
80
  color: colorTextDisabled;
79
81
  }
80
82
 
81
- .stepWrapperCounter.withIcon {
82
- border: initial;
83
- border-radius: initial;
84
- background-color: initial;
85
- }
86
-
87
83
  .stepIcon {
88
84
  color: inherit;
89
85
  }
90
86
 
91
- .stepIcon.selected {
92
- color: colorFillPrimary;
93
- }
94
-
95
- .stepIcon.completed {
96
- color: colorSuccessDark;
97
- }
98
-
99
- .stepIcon.disabled {
100
- color: colorTextDisabled;
101
- }
102
-
103
87
  .stepContent {
104
88
  display: flex;
105
89
  flex-flow: column;
106
90
  gap: spaceXXSmall;
91
+ margin-top: spaceXXSmall;
107
92
  }
108
93
 
109
94
  .stepLabelWrapper {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.1.125",
3
+ "version": "0.1.126",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {