@trackunit/react-components 0.0.167 → 0.0.170

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.
Files changed (3) hide show
  1. package/index.css +4 -0
  2. package/index.js +5 -1
  3. package/package.json +1 -1
package/index.css CHANGED
@@ -31,6 +31,10 @@
31
31
  &__spinner {
32
32
  @apply !w-[1em]
33
33
  !h-[1em];
34
+
35
+ &--full-width {
36
+ @apply !w-auto;
37
+ }
34
38
  }
35
39
 
36
40
  &--rounded {
package/index.js CHANGED
@@ -255,7 +255,8 @@ const Button = React.forwardRef((_a, ref) => {
255
255
  ref: ref
256
256
  }, rest, {
257
257
  children: [loading && jsx(StyledSpinner, {
258
- centered: true
258
+ centered: true,
259
+ containerClassName: fullWidth ? tws`tu-button__spinner--full-width` : ""
259
260
  }), prefix, children, suffix]
260
261
  }));
261
262
  });
@@ -3960,6 +3961,9 @@ const useCustomComponents = (componentsProps, disabled, menuIsClosing, refMenuIs
3960
3961
  },
3961
3962
  Control: props => {
3962
3963
  return jsx(components.Control, Object.assign({}, props, {
3964
+ innerProps: Object.assign(Object.assign({}, props.innerProps), {
3965
+ onTouchEnd: () => null
3966
+ }),
3963
3967
  className: props.isDisabled ? tws`tu-select__control--disabled` : ""
3964
3968
  }));
3965
3969
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.0.167",
3
+ "version": "0.0.170",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {