@spaced-out/ui-design-system 0.5.5 → 0.5.6

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.5.6](https://github.com/spaced-out/ui-design-system/compare/v0.5.5...v0.5.6) (2025-09-10)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **semantic icon:** included disabled in prop types and added missing functionality of disabled prop ([#403](https://github.com/spaced-out/ui-design-system/issues/403)) ([2015107](https://github.com/spaced-out/ui-design-system/commit/2015107d0d0e1952ff52d8fd886d17be9e17e2c3))
11
+
5
12
  ### [0.5.5](https://github.com/spaced-out/ui-design-system/compare/v0.5.4...v0.5.5) (2025-09-08)
6
13
 
7
14
 
@@ -9,6 +9,7 @@ type ClassNames = Readonly<{
9
9
  export type SemanticIconProps = Over<IconProps, {
10
10
  classNames?: ClassNames;
11
11
  semantic?: AlertSemanticType;
12
+ disabled?: boolean;
12
13
  }>;
13
14
  export declare const SemanticIcon: ({ semantic, classNames, size, ...iconProps }: SemanticIconProps) => React.JSX.Element;
14
15
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"SemanticIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/SemanticIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAG5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,QAAQ,CAAC;AAMtC,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,SAAS,EACT;IACE,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B,CACF,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,8CAK1B,iBAAiB,sBAqBnB,CAAC"}
1
+ {"version":3,"file":"SemanticIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/SemanticIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAG5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,QAAQ,CAAC;AAMtC,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,SAAS,EACT;IACE,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CACF,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,8CAK1B,iBAAiB,sBAuBnB,CAAC"}
@@ -20,12 +20,12 @@ const SemanticIcon = _ref => {
20
20
  ...iconProps
21
21
  } = _ref;
22
22
  return /*#__PURE__*/React.createElement(React.Fragment, null, !!iconProps.name && /*#__PURE__*/React.createElement("div", {
23
- className: (0, _classify.default)(_SemanticIconModule.default.iconContainer, _SemanticIconModule.default[semantic], _SemanticIconModule.default[size], classNames?.wrapper)
23
+ className: (0, _classify.default)(_SemanticIconModule.default.iconContainer, _SemanticIconModule.default[semantic], _SemanticIconModule.default[size], classNames?.wrapper, {
24
+ [_SemanticIconModule.default.disabled]: iconProps.disabled
25
+ })
24
26
  }, /*#__PURE__*/React.createElement(_Icon.Icon, _extends({}, iconProps, {
25
- className: (0, _classify.default)(iconProps.className, classNames?.icon)
26
- // @ts-ignore - TS7053 - Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'Readonly<{ primary: string; secondary: string; tertiary: string; disabled: string; clickable: string; neutral: string; success: string; information: string; warning: string; danger: string; inversePrimary: string; inverseSecondary: string; favorite: string; }>'.
27
- ,
28
- color: _typography.TEXT_COLORS[semantic],
27
+ className: (0, _classify.default)(iconProps.className, classNames?.icon),
28
+ color: iconProps.disabled ? 'disabled' : _typography.TEXT_COLORS[semantic],
29
29
  size: size === 'large' ? 'medium' : size
30
30
  }))));
31
31
  };
@@ -3,7 +3,8 @@
3
3
  colorSuccessLightest,
4
4
  colorInformationLightest,
5
5
  colorWarningLightest,
6
- colorDangerLightest
6
+ colorDangerLightest,
7
+ colorFillDisabled
7
8
  ) from '../../styles/variables/_color.css';
8
9
 
9
10
  @value (
@@ -27,6 +28,11 @@
27
28
  background-color: colorNeutralLightest;
28
29
  }
29
30
 
31
+ .iconContainer.disabled {
32
+ pointer-events: none;
33
+ background-color: colorFillDisabled;
34
+ }
35
+
30
36
  .medium {
31
37
  width: size42;
32
38
  height: size42;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "Sense UI components library",
5
5
  "author": {
6
6
  "name": "Spaced Out"