@spaced-out/ui-design-system 0.1.24 → 0.1.26

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,22 @@
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.26](https://github.com/spaced-out/ui-design-system/compare/v0.1.25...v0.1.26) (2023-05-03)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * buttontabs should support individual buttontab disabled property ([#110](https://github.com/spaced-out/ui-design-system/issues/110)) ([ca8a6f1](https://github.com/spaced-out/ui-design-system/commit/ca8a6f1d2d320d599becaf53641df266f15f120c))
11
+ * toggle stopimmediatepropagation ([#109](https://github.com/spaced-out/ui-design-system/issues/109)) ([465b8f9](https://github.com/spaced-out/ui-design-system/commit/465b8f93160b0cef78c5376541e3774887ff577e))
12
+ * updated docs for dropdown ([5c2eff8](https://github.com/spaced-out/ui-design-system/commit/5c2eff8d01375d86a734c00bf95003739f90e36e))
13
+
14
+ ### [0.1.25](https://github.com/spaced-out/ui-design-system/compare/v0.1.24...v0.1.25) (2023-04-26)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * add scope for th tag in table ([#108](https://github.com/spaced-out/ui-design-system/issues/108)) ([9999628](https://github.com/spaced-out/ui-design-system/commit/99996287c7c6d41657983b75035f4e4ab3f78ecd))
20
+
5
21
  ### [0.1.24](https://github.com/spaced-out/ui-design-system/compare/v0.1.23...v0.1.24) (2023-04-26)
6
22
 
7
23
 
@@ -23,11 +23,14 @@ const ButtonTabs = /*#__PURE__*/React.forwardRef((_ref, ref) => {
23
23
  } = _ref;
24
24
  const childrenWithProps = React.Children.map(children, child => {
25
25
  if ( /*#__PURE__*/React.isValidElement(child)) {
26
+ const {
27
+ disabled: disabledChild
28
+ } = child.props;
26
29
  return /*#__PURE__*/React.cloneElement(child, {
27
30
  ...child.props,
28
31
  isFluid,
29
32
  size,
30
- disabled,
33
+ disabled: disabledChild || disabled,
31
34
  selectedButtonTabId,
32
35
  onButtonTabSelect
33
36
  });
@@ -37,11 +37,12 @@ export const ButtonTabs: React$AbstractComponent<
37
37
  ): React.Node => {
38
38
  const childrenWithProps = React.Children.map(children, (child) => {
39
39
  if (React.isValidElement(child)) {
40
+ const {disabled: disabledChild} = child.props;
40
41
  return React.cloneElement(child, {
41
42
  ...child.props,
42
43
  isFluid,
43
44
  size,
44
- disabled,
45
+ disabled: disabledChild || disabled,
45
46
  selectedButtonTabId,
46
47
  onButtonTabSelect,
47
48
  });
@@ -180,8 +180,11 @@
180
180
  max-width: size60;
181
181
  }
182
182
 
183
- .defaultTable td:first-child,
184
- th:first-child {
183
+ .defaultTable td:first-child {
184
+ padding-left: spaceMedium;
185
+ }
186
+
187
+ .defaultTable th:first-child {
185
188
  padding-left: spaceMedium;
186
189
  }
187
190
 
@@ -34,7 +34,8 @@ const Toggle = /*#__PURE__*/React.forwardRef((_ref, forwardRef) => {
34
34
  });
35
35
  }
36
36
  };
37
- const onWrapClickHandler = () => {
37
+ const onWrapClickHandler = e => {
38
+ e.nativeEvent.stopImmediatePropagation();
38
39
  toggleInput.current?.click();
39
40
  };
40
41
  React.useEffect(() => {
@@ -56,7 +56,8 @@ export const Toggle: React$AbstractComponent<ToggleProps, HTMLInputElement> =
56
56
  }
57
57
  };
58
58
 
59
- const onWrapClickHandler = () => {
59
+ const onWrapClickHandler = (e) => {
60
+ e.nativeEvent.stopImmediatePropagation();
60
61
  toggleInput.current?.click();
61
62
  };
62
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {