@spaced-out/ui-design-system 0.5.39 → 0.5.41

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,20 @@
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.41](https://github.com/spaced-out/ui-design-system/compare/v0.5.40...v0.5.41) (2026-01-21)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **accordion:** disable collapsing when toggle is off ([#456](https://github.com/spaced-out/ui-design-system/issues/456)) ([0d17093](https://github.com/spaced-out/ui-design-system/commit/0d17093b8bdb18693e2c003b981dc9924e4d0409))
11
+
12
+ ### [0.5.40](https://github.com/spaced-out/ui-design-system/compare/v0.5.39...v0.5.40) (2026-01-16)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * remove focus within unnecessary specificity ([#455](https://github.com/spaced-out/ui-design-system/issues/455)) ([97c108f](https://github.com/spaced-out/ui-design-system/commit/97c108fedcec080b45d2ad5553f1f5842e61728f))
18
+
5
19
  ### [0.5.39](https://github.com/spaced-out/ui-design-system/compare/v0.5.38...v0.5.39) (2026-01-16)
6
20
 
7
21
 
@@ -32,7 +32,7 @@ const Accordion = exports.Accordion = /*#__PURE__*/React.forwardRef((_ref, ref)
32
32
  onToggle?.(!checked);
33
33
  };
34
34
  const handleAccordionClick = () => {
35
- if (!disabled) {
35
+ if (!disabled && (checked || !showToggle)) {
36
36
  onChange?.(id, !accordionIsOpen);
37
37
  setAccordionIsOpen(prev => !prev);
38
38
  }
@@ -77,7 +77,7 @@ const Accordion = exports.Accordion = /*#__PURE__*/React.forwardRef((_ref, ref)
77
77
  }), header]
78
78
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
79
79
  iconLeftName: accordionIsOpen ? 'chevron-up' : 'chevron-down',
80
- disabled: disabled,
80
+ disabled: disabled || showToggle && !checked,
81
81
  size: "small",
82
82
  type: "ghost",
83
83
  classNames: {
@@ -44,8 +44,6 @@
44
44
  overflow: auto;
45
45
  cursor: pointer;
46
46
  border: borderWidthPrimary solid colorBorderPrimary;
47
- --box-shadow-focus: initial;
48
- --box-shadow-error-focus: initial;
49
47
  }
50
48
 
51
49
  .box:not(.withError):not(.inputDisabled):not(.inputLocked):not(.inputHidden) {
@@ -58,15 +56,10 @@
58
56
  border-color: colorBorderTertiary;
59
57
  }
60
58
 
61
- .box:not(.withError):not(.inputDisabled):not(.inputLocked):not(
62
- .inputHidden
63
- ):focus-within {
59
+ .box:focus-within {
64
60
  border-color: colorFillPrimary;
65
- box-shadow: var(
66
- --box-shadow-focus,
67
- borderWidthNone borderWidthNone borderWidthNone borderWidthTertiary
68
- colorFocusPrimary
69
- );
61
+ box-shadow: borderWidthNone borderWidthNone borderWidthNone
62
+ borderWidthTertiary colorFocusPrimary;
70
63
  }
71
64
 
72
65
  .box.withError {
@@ -75,11 +68,8 @@
75
68
 
76
69
  .box.withError:focus-within {
77
70
  border-color: colorBorderDanger;
78
- box-shadow: var(
79
- --box-shadow-error-focus,
80
- borderWidthNone borderWidthNone borderWidthNone borderWidthTertiary
81
- colorFocusDanger
82
- );
71
+ box-shadow: borderWidthNone borderWidthNone borderWidthNone
72
+ borderWidthTertiary colorFocusDanger;
83
73
  }
84
74
 
85
75
  .box.inputLocked {
package/mcp/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/genesis-mcp",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "MCP server for Genesis UI Design System - provides AI assistants with access to components, hooks, and design tokens",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.5.39",
3
+ "version": "0.5.41",
4
4
  "description": "Sense UI components library",
5
5
  "author": {
6
6
  "name": "Spaced Out"