@trackunit/react-components 0.0.154 → 0.0.156

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 -2
  2. package/index.js +7 -2
  3. package/package.json +1 -1
package/index.css CHANGED
@@ -16,8 +16,10 @@
16
16
  rounded-lg
17
17
  cursor-pointer
18
18
  flex-none
19
- p-2.5
19
+ py-1.5
20
+ px-2.5
20
21
  h-min
22
+ w-min
21
23
  drop-shadow
22
24
  focus:ring
23
25
  focus:ring-offset-1
@@ -45,7 +47,7 @@
45
47
  }
46
48
 
47
49
  &--small {
48
- @apply p-2;
50
+ @apply py-1 px-2;
49
51
  }
50
52
 
51
53
  &--large {
package/index.js CHANGED
@@ -262,7 +262,7 @@ const Button = React.forwardRef((_a, ref) => {
262
262
  const StyledButton$1 = tw.button`
263
263
  tu-button
264
264
  ${p => p.$square ? tws`tu-button--square` : null}
265
- ${p => p.$fullWidth ? tws`tu-button--fullWidth` : null}
265
+ ${p => p.$fullWidth ? tws`tu-button--full-width` : null}
266
266
  ${getStyles()}
267
267
  ${getPadding()}
268
268
  `;
@@ -1900,7 +1900,7 @@ var PopoverLifecycle;
1900
1900
  const usePopover = ({
1901
1901
  targetRef,
1902
1902
  popoverRef,
1903
- placement = "bottom-start",
1903
+ placement = "auto",
1904
1904
  offset = [0, 8]
1905
1905
  }) => {
1906
1906
  const [lifecycle, setLifecycle] = React.useState(PopoverLifecycle.closed);
@@ -1915,6 +1915,11 @@ const usePopover = ({
1915
1915
  options: {
1916
1916
  offset
1917
1917
  }
1918
+ }, {
1919
+ name: "flip",
1920
+ options: {
1921
+ flipVariations: true
1922
+ }
1918
1923
  }]
1919
1924
  });
1920
1925
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.0.154",
3
+ "version": "0.0.156",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {