@spaced-out/ui-design-system 0.3.5 → 0.3.7

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.3.7](https://github.com/spaced-out/ui-design-system/compare/v0.3.6...v0.3.7) (2024-11-29)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * fixes an incorrect propagation of className in ClickableIcon ([61a8008](https://github.com/spaced-out/ui-design-system/commit/61a800856b92eff12a6c0d9637863dc09e737253))
11
+
12
+ ### [0.3.6](https://github.com/spaced-out/ui-design-system/compare/v0.3.5...v0.3.6) (2024-11-27)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * added role=group for weekdayPicker ([#294](https://github.com/spaced-out/ui-design-system/issues/294)) ([bf61f70](https://github.com/spaced-out/ui-design-system/commit/bf61f7034a557b7adee858be10f990aed93d6b50))
18
+
5
19
  ### [0.3.5](https://github.com/spaced-out/ui-design-system/compare/v0.3.4...v0.3.5) (2024-11-27)
6
20
 
7
21
 
@@ -17,7 +17,6 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
17
17
  const ClickableIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
18
18
  let {
19
19
  size = 'medium',
20
- className,
21
20
  ariaLabel,
22
21
  onClick,
23
22
  ...props
@@ -36,7 +35,7 @@ const ClickableIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
36
35
  [_ClickableIconModule.default.small]: size === 'small',
37
36
  [_ClickableIconModule.default.medium]: size === 'medium',
38
37
  [_ClickableIconModule.default.large]: size === 'large'
39
- }, className),
38
+ }),
40
39
  ref: ref
41
40
  }), /*#__PURE__*/React.createElement(_.Icon, _extends({
42
41
  size: size
@@ -17,10 +17,7 @@ export const ClickableIcon: React$AbstractComponent<
17
17
  IconProps,
18
18
  HTMLButtonElement,
19
19
  > = React.forwardRef<IconProps, HTMLButtonElement>(
20
- (
21
- {size = 'medium', className, ariaLabel, onClick, ...props}: IconProps,
22
- ref,
23
- ) => {
20
+ ({size = 'medium', ariaLabel, onClick, ...props}: IconProps, ref) => {
24
21
  const onKeyDownHandler = (e) => {
25
22
  if (e.key === 'Enter') {
26
23
  e.preventDefault();
@@ -33,15 +30,11 @@ export const ClickableIcon: React$AbstractComponent<
33
30
  onClick={onClick}
34
31
  onKeyDown={onKeyDownHandler}
35
32
  ariaLabel={ariaLabel}
36
- className={classify(
37
- css.button,
38
- {
39
- [css.small]: size === 'small',
40
- [css.medium]: size === 'medium',
41
- [css.large]: size === 'large',
42
- },
43
- className,
44
- )}
33
+ className={classify(css.button, {
34
+ [css.small]: size === 'small',
35
+ [css.medium]: size === 'medium',
36
+ [css.large]: size === 'large',
37
+ })}
45
38
  ref={ref}
46
39
  >
47
40
  <Icon size={size} {...props} />
@@ -115,7 +115,8 @@ const WeekdayPicker = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
115
115
  className: (0, _classify.default)(_WeekdayPickerModule.default.weekdayPickerContainer, classNames.wrapper, {
116
116
  [_WeekdayPickerModule.default.weekdayReadOnly]: readOnly
117
117
  }),
118
- "aria-label": ariaLabel
118
+ "aria-label": ariaLabel,
119
+ role: "group"
119
120
  }, !!label && /*#__PURE__*/React.createElement("div", {
120
121
  className: (0, _classify.default)(_WeekdayPickerModule.default.weekdayLabel, classNames.label)
121
122
  }, label), /*#__PURE__*/React.createElement("div", {
@@ -176,6 +176,7 @@ export const WeekdayPicker: React$AbstractComponent<
176
176
  [css.weekdayReadOnly]: readOnly,
177
177
  })}
178
178
  aria-label={ariaLabel}
179
+ role="group"
179
180
  >
180
181
  {!!label && (
181
182
  <div className={classify(css.weekdayLabel, classNames.label)}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {