@ttoss/ui 5.5.8 → 5.5.10

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/dist/esm/index.js CHANGED
@@ -25,6 +25,9 @@ var Button = React.forwardRef((props, ref) => {
25
25
  display: "inline-flex",
26
26
  alignItems: "center",
27
27
  gap: "4",
28
+ "&:disabled": {
29
+ cursor: "not-allowed"
30
+ },
28
31
  ...restProps.sx
29
32
  },
30
33
  children: [loading && /* @__PURE__ */jsx(Icon, {
@@ -361,13 +364,20 @@ var IconButton = props => {
361
364
  return /* @__PURE__ */jsx9(IconButtonUi, {
362
365
  type: "button",
363
366
  ...restProps,
367
+ sx: {
368
+ cursor: "pointer",
369
+ borderRadius: "sm",
370
+ "&:disabled": {
371
+ cursor: "not-allowed"
372
+ },
373
+ ...restProps.sx
374
+ },
364
375
  children: icon ? /* @__PURE__ */jsx9(Icon4, {
365
376
  inline: true,
366
377
  icon
367
378
  }) : children
368
379
  });
369
380
  };
370
- IconButton.displayName = "IconButton";
371
381
 
372
382
  // src/components/Image.tsx
373
383
  import { Image } from "theme-ui";
package/dist/index.d.ts CHANGED
@@ -57,10 +57,7 @@ declare const HelpText: ({ sx, disabled, negative, ...props }: HelpTextProps) =>
57
57
  type IconButtonProps = IconButtonProps$1 & {
58
58
  icon?: string;
59
59
  };
60
- declare const IconButton: {
61
- (props: IconButtonProps): react_jsx_runtime.JSX.Element;
62
- displayName: string;
63
- };
60
+ declare const IconButton: (props: IconButtonProps) => react_jsx_runtime.JSX.Element;
64
61
 
65
62
  declare const InfiniteLinearProgress: () => react_jsx_runtime.JSX.Element;
66
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/ui",
3
- "version": "5.5.8",
3
+ "version": "5.5.10",
4
4
  "description": "Primitive layout, typographic, and other components for styling applications.",
5
5
  "license": "MIT",
6
6
  "author": "ttoss",
@@ -43,9 +43,9 @@
43
43
  "jest": "^29.7.0",
44
44
  "react": "^19.0.0",
45
45
  "tsup": "^8.3.5",
46
+ "@ttoss/config": "^1.35.3",
46
47
  "@ttoss/test-utils": "^2.1.23",
47
- "@ttoss/react-icons": "^0.4.11",
48
- "@ttoss/config": "^1.35.3"
48
+ "@ttoss/react-icons": "^0.4.11"
49
49
  },
50
50
  "keywords": [
51
51
  "React",