@contractspec/lib.design-system 3.8.7 → 3.8.8

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.
@@ -26,6 +26,9 @@ function Button({
26
26
  ...rest
27
27
  }) {
28
28
  const isDisabled = Boolean(disabled || loading);
29
+ const handleClick = onPress ? () => {
30
+ onPress();
31
+ } : onClick;
29
32
  const content = !rest.asChild ? /* @__PURE__ */ jsxDEV(Fragment, {
30
33
  children: [
31
34
  loading && spinnerPlacement === "start" ? /* @__PURE__ */ jsxDEV(Loader2, {
@@ -43,8 +46,7 @@ function Button({
43
46
  disabled: isDisabled,
44
47
  "aria-busy": loading ? true : undefined,
45
48
  "aria-disabled": isDisabled ? true : undefined,
46
- onPress: onPress || onClick,
47
- onClick: onPress || onClick,
49
+ onClick: handleClick,
48
50
  onMouseDown: onMouseDown || onPressIn,
49
51
  onMouseUp: onMouseUp || onPressOut,
50
52
  onTouchStart,
package/dist/index.js CHANGED
@@ -27,6 +27,9 @@ function Button({
27
27
  ...rest
28
28
  }) {
29
29
  const isDisabled = Boolean(disabled || loading);
30
+ const handleClick = onPress ? () => {
31
+ onPress();
32
+ } : onClick;
30
33
  const content = !rest.asChild ? /* @__PURE__ */ jsxDEV(Fragment, {
31
34
  children: [
32
35
  loading && spinnerPlacement === "start" ? /* @__PURE__ */ jsxDEV(Loader2, {
@@ -44,8 +47,7 @@ function Button({
44
47
  disabled: isDisabled,
45
48
  "aria-busy": loading ? true : undefined,
46
49
  "aria-disabled": isDisabled ? true : undefined,
47
- onPress: onPress || onClick,
48
- onClick: onPress || onClick,
50
+ onClick: handleClick,
49
51
  onMouseDown: onMouseDown || onPressIn,
50
52
  onMouseUp: onMouseUp || onPressOut,
51
53
  onTouchStart,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/lib.design-system",
3
- "version": "3.8.7",
3
+ "version": "3.8.8",
4
4
  "description": "Design tokens and theming primitives",
5
5
  "keywords": [
6
6
  "contractspec",
@@ -30,27 +30,27 @@
30
30
  "sideEffects": false,
31
31
  "tree-shake": true,
32
32
  "dependencies": {
33
- "@contractspec/lib.ai-agent": "8.0.2",
34
- "@contractspec/lib.contracts-spec": "5.0.2",
35
- "@contractspec/lib.contracts-runtime-client-react": "3.8.2",
36
- "@contractspec/lib.presentation-runtime-react": "36.0.2",
37
- "@contractspec/lib.ui-kit": "3.8.6",
38
- "@contractspec/lib.ui-kit-web": "3.9.6",
33
+ "@contractspec/lib.ai-agent": "8.0.3",
34
+ "@contractspec/lib.contracts-spec": "5.0.3",
35
+ "@contractspec/lib.contracts-runtime-client-react": "3.8.3",
36
+ "@contractspec/lib.presentation-runtime-react": "36.0.3",
37
+ "@contractspec/lib.ui-kit": "3.8.7",
38
+ "@contractspec/lib.ui-kit-web": "3.9.7",
39
39
  "@hookform/resolvers": "5.2.2",
40
40
  "class-variance-authority": "^0.7.1",
41
41
  "clsx": "^2.1.1",
42
- "lucide-react": "^0.577.0",
43
- "next": "16.2.0",
42
+ "lucide-react": "^1.6.0",
43
+ "next": "16.2.1",
44
44
  "react": "19.2.0",
45
45
  "react-dom": "19.2.0",
46
- "react-hook-form": "^7.71.2",
46
+ "react-hook-form": "^7.72.0",
47
47
  "shiki": "^4.0.2",
48
48
  "tailwind-merge": "^3.5.0",
49
49
  "tailwindcss-animate": "^1.0.7",
50
50
  "zod": "^4.3.5"
51
51
  },
52
52
  "devDependencies": {
53
- "@contractspec/tool.typescript": "3.7.10",
53
+ "@contractspec/tool.typescript": "3.7.11",
54
54
  "@types/node": "^25.3.5",
55
55
  "@types/react-dom": "^19.0.14",
56
56
  "postcss": "^8.5.8",
@@ -59,7 +59,7 @@
59
59
  "react-native-css": "^3.0.4",
60
60
  "tailwindcss": "4.2.2",
61
61
  "typescript": "^5.9.3",
62
- "@contractspec/tool.bun": "3.7.10"
62
+ "@contractspec/tool.bun": "3.7.11"
63
63
  },
64
64
  "files": [
65
65
  "dist",