@bouko/react 2.5.7 → 2.5.9

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.
@@ -1,7 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { opacitize } from "@bouko/style";
3
3
  export default function IconButton({ color = "--color-accent", icon, action, disabled = false }) {
4
- return (_jsx("button", { className: "hover:brightness-115 disabled:cursor-not-allowed", style: styles(color), onClick: action, disabled: !action || disabled, children: icon }));
4
+ console.log(disabled);
5
+ return (_jsx("button", { className: "hover:brightness-115 disabled:!cursor-not-allowed", style: styles(color), onClick: action, disabled: !action || disabled, children: icon }));
5
6
  }
6
7
  const styles = (color) => ({
7
8
  display: "flex",
@@ -4,7 +4,7 @@ function Field({ style, label, required = true, note, children }) {
4
4
  return (_jsxs("div", { className: cn(fieldStyles.container, style), children: [label && _jsxs("span", { className: fieldStyles.label, children: [label, " ", !required ? _jsx("span", { className: "italic text-slate-400", children: "(optional)" }) : ""] }), children, note && _jsx("span", { className: fieldStyles.note, children: note })] }));
5
5
  }
6
6
  const fieldStyles = {
7
- container: "flex flex-col shrink-0 gap-1 w-full overflow-hidden",
7
+ container: "flex flex-col shrink-0 gap-1 overflow-hidden",
8
8
  label: "text-xs text-primary-dark",
9
9
  note: "mt-1 text-xs text-slate-500 whitespace-pre-line"
10
10
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
 
3
3
  "name": "@bouko/react",
4
- "version": "2.5.7",
4
+ "version": "2.5.9",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "license": "MIT",