@spaced-out/ui-design-system 0.1.105 → 0.1.107

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.1.107](https://github.com/spaced-out/ui-design-system/compare/v0.1.106...v0.1.107) (2024-07-09)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * 🔒 disabled state fix ([#236](https://github.com/spaced-out/ui-design-system/issues/236)) ([4774285](https://github.com/spaced-out/ui-design-system/commit/4774285ed6b1c59d9a774873314a0303c0efe579))
11
+
12
+ ### [0.1.106](https://github.com/spaced-out/ui-design-system/compare/v0.1.105...v0.1.106) (2024-07-08)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * 🔘 kpi shimmer css change ([9c847f5](https://github.com/spaced-out/ui-design-system/commit/9c847f51637956b33758f97c3e0f97b09e26f4a4))
18
+
5
19
  ### [0.1.105](https://github.com/spaced-out/ui-design-system/compare/v0.1.104...v0.1.105) (2024-07-08)
6
20
 
7
21
 
@@ -90,7 +90,9 @@ const Checkbox = /*#__PURE__*/React.forwardRef((_ref, forwardRef) => {
90
90
  size: "small",
91
91
  type: "regular"
92
92
  }))), React.Children.count(children) > 0 && /*#__PURE__*/React.createElement("div", {
93
- className: (0, _classify.default)(_CheckboxModule.default.checkboxLabel, classNames?.label)
93
+ className: (0, _classify.default)(_CheckboxModule.default.checkboxLabel, {
94
+ [_CheckboxModule.default.labelDisabled]: disabled
95
+ }, classNames?.label)
94
96
  }, children));
95
97
  });
96
98
  exports.Checkbox = Checkbox;
@@ -146,7 +146,13 @@ export const Checkbox: React$AbstractComponent<
146
146
  </span>
147
147
  </span>
148
148
  {React.Children.count(children) > 0 && (
149
- <div className={classify(css.checkboxLabel, classNames?.label)}>
149
+ <div
150
+ className={classify(
151
+ css.checkboxLabel,
152
+ {[css.labelDisabled]: disabled},
153
+ classNames?.label,
154
+ )}
155
+ >
150
156
  {children}
151
157
  </div>
152
158
  )}
@@ -12,7 +12,8 @@
12
12
  colorDanger,
13
13
  colorFocusPrimary,
14
14
  colorFocusDanger,
15
- colorBackgroundTertiary
15
+ colorBackgroundTertiary,
16
+ colorTextDisabled
16
17
  ) from '../../styles/variables/_color.css';
17
18
 
18
19
  @value (
@@ -163,3 +164,7 @@ input[type='checkbox']:checked + .error {
163
164
  composes: formLabelMedium from '../../styles/typography.module.css';
164
165
  composes: secondary from '../../styles/typography.module.css';
165
166
  }
167
+
168
+ .labelDisabled {
169
+ color: colorTextDisabled;
170
+ }
@@ -74,7 +74,9 @@ const RadioButton = /*#__PURE__*/React.forwardRef((_ref, forwardRef) => {
74
74
  "aria-label": ariaLabel || children
75
75
  }, props)), React.Children.count(children) > 0 && /*#__PURE__*/React.createElement("div", {
76
76
  color: "secondary",
77
- className: (0, _classify.default)(_RadioButtonModule.default.radioLabel, classNames?.label)
77
+ className: (0, _classify.default)(_RadioButtonModule.default.radioLabel, {
78
+ [_RadioButtonModule.default.labelDisabled]: disabled
79
+ }, classNames?.label)
78
80
  }, children));
79
81
  });
80
82
  exports.RadioButton = RadioButton;
@@ -115,7 +115,11 @@ export const RadioButton: React$AbstractComponent<
115
115
  {React.Children.count(children) > 0 && (
116
116
  <div
117
117
  color="secondary"
118
- className={classify(css.radioLabel, classNames?.label)}
118
+ className={classify(
119
+ css.radioLabel,
120
+ {[css.labelDisabled]: disabled},
121
+ classNames?.label,
122
+ )}
119
123
  >
120
124
  {children}
121
125
  </div>
@@ -12,7 +12,8 @@
12
12
  colorFillPrimary,
13
13
  colorFillDisabled,
14
14
  colorFocusPrimary,
15
- colorFocusDanger
15
+ colorFocusDanger,
16
+ colorTextDisabled
16
17
  ) from '../../styles/variables/_color.css';
17
18
 
18
19
  @value (
@@ -100,6 +101,10 @@
100
101
  composes: secondary from '../../styles/typography.module.css';
101
102
  }
102
103
 
104
+ .labelDisabled {
105
+ color: colorTextDisabled;
106
+ }
107
+
103
108
  .horizontalRadioButton {
104
109
  flex: 1 0 size160; /* grow, don't shrink, start with size160 width */
105
110
  }
@@ -82,13 +82,13 @@ const KPIShimmer = _ref3 => {
82
82
  return /*#__PURE__*/React.createElement("div", {
83
83
  className: (0, _classify.default)(_ShimmerModule.default.kpiBox, classNames?.wrapper)
84
84
  }, hasIcon && /*#__PURE__*/React.createElement("div", {
85
- className: _ShimmerModule.default.section
85
+ className: (0, _classify.default)(_ShimmerModule.default.section, _ShimmerModule.default.iconSection, classNames?.icon)
86
86
  }, /*#__PURE__*/React.createElement(Shimmer, {
87
87
  type: "rounded",
88
88
  width: 60,
89
89
  height: 60
90
90
  })), /*#__PURE__*/React.createElement("div", {
91
- className: _ShimmerModule.default.section
91
+ className: (0, _classify.default)(_ShimmerModule.default.section, classNames?.text)
92
92
  }, hasTopContent && /*#__PURE__*/React.createElement(Shimmer, {
93
93
  type: "text",
94
94
  width: textWidth,
@@ -96,7 +96,11 @@ export const Shimmer: React$AbstractComponent<ShimmerProps, HTMLSpanElement> =
96
96
  },
97
97
  );
98
98
 
99
- type KPIShimmerClassNames = $ReadOnly<{wrapper?: string}>;
99
+ type KPIShimmerClassNames = $ReadOnly<{
100
+ wrapper?: string,
101
+ icon?: string,
102
+ text?: string,
103
+ }>;
100
104
 
101
105
  export type KPIShimmerProps = {
102
106
  textWidth?: number | string,
@@ -117,12 +121,12 @@ export const KPIShimmer = ({
117
121
  }: KPIShimmerProps): React.Node => (
118
122
  <div className={classify(css.kpiBox, classNames?.wrapper)}>
119
123
  {hasIcon && (
120
- <div className={css.section}>
124
+ <div className={classify(css.section, css.iconSection, classNames?.icon)}>
121
125
  <Shimmer type="rounded" width={60} height={60}></Shimmer>
122
126
  </div>
123
127
  )}
124
128
 
125
- <div className={css.section}>
129
+ <div className={classify(css.section, classNames?.text)}>
126
130
  {hasTopContent && (
127
131
  <Shimmer type="text" width={textWidth} height={15}></Shimmer>
128
132
  )}
@@ -54,6 +54,10 @@
54
54
  align-items: center;
55
55
  }
56
56
 
57
+ .iconSection {
58
+ width: initial;
59
+ }
60
+
57
61
  @keyframes shimmer {
58
62
  from {
59
63
  background-position: backgroundSizeInitial spaceNone;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.1.105",
3
+ "version": "0.1.107",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {