@heroui/card 2.2.21 → 2.2.22-beta.1

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/card.js CHANGED
@@ -38,7 +38,6 @@ var [CardProvider, useCardContext] = (0, import_react_utils.createContext)({
38
38
  // src/use-card.ts
39
39
  var import_theme = require("@heroui/theme");
40
40
  var import_react = require("react");
41
- var import_utils = require("@react-aria/utils");
42
41
  var import_focus = require("@react-aria/focus");
43
42
  var import_interactions = require("@react-aria/interactions");
44
43
  var import_use_aria_button = require("@heroui/use-aria-button");
@@ -79,7 +78,7 @@ function useCard(originalProps) {
79
78
  );
80
79
  const { buttonProps, isPressed } = (0, import_use_aria_button.useAriaButton)(
81
80
  {
82
- onPress: (0, import_utils.chain)(onPress, handlePress),
81
+ onPress: (0, import_shared_utils.chain)(onPress, handlePress),
83
82
  elementType: as,
84
83
  isDisabled: !originalProps.isPressable,
85
84
  onClick,
@@ -131,7 +130,7 @@ function useCard(originalProps) {
131
130
  "data-focus": (0, import_shared_utils.dataAttr)(isFocused),
132
131
  "data-focus-visible": (0, import_shared_utils.dataAttr)(isFocusVisible),
133
132
  "data-disabled": (0, import_shared_utils.dataAttr)(originalProps.isDisabled),
134
- ...(0, import_utils.mergeProps)(
133
+ ...(0, import_shared_utils.mergeProps)(
135
134
  originalProps.isPressable ? { ...buttonProps, ...focusProps, role: "button" } : {},
136
135
  originalProps.isHoverable ? hoverProps : {},
137
136
  (0, import_react_utils2.filterDOMProps)(otherProps, {
package/dist/card.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  card_default
4
- } from "./chunk-MW56SEHC.mjs";
4
+ } from "./chunk-O24IAYCG.mjs";
5
5
  import "./chunk-XHGGCEVJ.mjs";
6
- import "./chunk-NVHFBF4D.mjs";
6
+ import "./chunk-DHMIPUUY.mjs";
7
7
  export {
8
8
  card_default as default
9
9
  };
@@ -3,12 +3,11 @@
3
3
  // src/use-card.ts
4
4
  import { card } from "@heroui/theme";
5
5
  import { useCallback, useMemo } from "react";
6
- import { chain, mergeProps } from "@react-aria/utils";
7
6
  import { useFocusRing } from "@react-aria/focus";
8
7
  import { useHover } from "@react-aria/interactions";
9
8
  import { useAriaButton } from "@heroui/use-aria-button";
10
9
  import { mapPropsVariants, useProviderContext } from "@heroui/system";
11
- import { clsx, dataAttr, objectToDeps } from "@heroui/shared-utils";
10
+ import { clsx, dataAttr, objectToDeps, chain, mergeProps } from "@heroui/shared-utils";
12
11
  import { filterDOMProps } from "@heroui/react-utils";
13
12
  import { useDOMRef } from "@heroui/react-utils";
14
13
  import { useRipple } from "@heroui/ripple";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XHGGCEVJ.mjs";
5
5
  import {
6
6
  useCard
7
- } from "./chunk-NVHFBF4D.mjs";
7
+ } from "./chunk-DHMIPUUY.mjs";
8
8
 
9
9
  // src/card.tsx
10
10
  import { forwardRef } from "@heroui/system";
package/dist/index.js CHANGED
@@ -34,7 +34,6 @@ module.exports = __toCommonJS(index_exports);
34
34
  // src/use-card.ts
35
35
  var import_theme = require("@heroui/theme");
36
36
  var import_react = require("react");
37
- var import_utils = require("@react-aria/utils");
38
37
  var import_focus = require("@react-aria/focus");
39
38
  var import_interactions = require("@react-aria/interactions");
40
39
  var import_use_aria_button = require("@heroui/use-aria-button");
@@ -75,7 +74,7 @@ function useCard(originalProps) {
75
74
  );
76
75
  const { buttonProps, isPressed } = (0, import_use_aria_button.useAriaButton)(
77
76
  {
78
- onPress: (0, import_utils.chain)(onPress, handlePress),
77
+ onPress: (0, import_shared_utils.chain)(onPress, handlePress),
79
78
  elementType: as,
80
79
  isDisabled: !originalProps.isPressable,
81
80
  onClick,
@@ -127,7 +126,7 @@ function useCard(originalProps) {
127
126
  "data-focus": (0, import_shared_utils.dataAttr)(isFocused),
128
127
  "data-focus-visible": (0, import_shared_utils.dataAttr)(isFocusVisible),
129
128
  "data-disabled": (0, import_shared_utils.dataAttr)(originalProps.isDisabled),
130
- ...(0, import_utils.mergeProps)(
129
+ ...(0, import_shared_utils.mergeProps)(
131
130
  originalProps.isPressable ? { ...buttonProps, ...focusProps, role: "button" } : {},
132
131
  originalProps.isHoverable ? hoverProps : {},
133
132
  (0, import_react_utils.filterDOMProps)(otherProps, {
package/dist/index.mjs CHANGED
@@ -10,14 +10,14 @@ import {
10
10
  } from "./chunk-D5XJWRAV.mjs";
11
11
  import {
12
12
  card_default
13
- } from "./chunk-MW56SEHC.mjs";
13
+ } from "./chunk-O24IAYCG.mjs";
14
14
  import {
15
15
  CardProvider,
16
16
  useCardContext
17
17
  } from "./chunk-XHGGCEVJ.mjs";
18
18
  import {
19
19
  useCard
20
- } from "./chunk-NVHFBF4D.mjs";
20
+ } from "./chunk-DHMIPUUY.mjs";
21
21
  export {
22
22
  card_default as Card,
23
23
  card_body_default as CardBody,
@@ -3,7 +3,7 @@ import { HTMLHeroUIProps, PropGetter } from '@heroui/system';
3
3
  import * as react from 'react';
4
4
  import { ReactNode, MouseEventHandler } from 'react';
5
5
  import { PressEvents, FocusableProps } from '@react-types/shared';
6
- import { SlotsToClasses, CardSlots, CardVariantProps, CardReturnType } from '@heroui/theme';
6
+ import { CardReturnType, SlotsToClasses, CardSlots, CardVariantProps } from '@heroui/theme';
7
7
  import { RippleProps } from '@heroui/ripple';
8
8
  import { PressEvent } from '@react-aria/interactions';
9
9
  import { ReactRef } from '@heroui/react-utils';
@@ -3,7 +3,7 @@ import { HTMLHeroUIProps, PropGetter } from '@heroui/system';
3
3
  import * as react from 'react';
4
4
  import { ReactNode, MouseEventHandler } from 'react';
5
5
  import { PressEvents, FocusableProps } from '@react-types/shared';
6
- import { SlotsToClasses, CardSlots, CardVariantProps, CardReturnType } from '@heroui/theme';
6
+ import { CardReturnType, SlotsToClasses, CardSlots, CardVariantProps } from '@heroui/theme';
7
7
  import { RippleProps } from '@heroui/ripple';
8
8
  import { PressEvent } from '@react-aria/interactions';
9
9
  import { ReactRef } from '@heroui/react-utils';
package/dist/use-card.js CHANGED
@@ -26,7 +26,6 @@ __export(use_card_exports, {
26
26
  module.exports = __toCommonJS(use_card_exports);
27
27
  var import_theme = require("@heroui/theme");
28
28
  var import_react = require("react");
29
- var import_utils = require("@react-aria/utils");
30
29
  var import_focus = require("@react-aria/focus");
31
30
  var import_interactions = require("@react-aria/interactions");
32
31
  var import_use_aria_button = require("@heroui/use-aria-button");
@@ -67,7 +66,7 @@ function useCard(originalProps) {
67
66
  );
68
67
  const { buttonProps, isPressed } = (0, import_use_aria_button.useAriaButton)(
69
68
  {
70
- onPress: (0, import_utils.chain)(onPress, handlePress),
69
+ onPress: (0, import_shared_utils.chain)(onPress, handlePress),
71
70
  elementType: as,
72
71
  isDisabled: !originalProps.isPressable,
73
72
  onClick,
@@ -119,7 +118,7 @@ function useCard(originalProps) {
119
118
  "data-focus": (0, import_shared_utils.dataAttr)(isFocused),
120
119
  "data-focus-visible": (0, import_shared_utils.dataAttr)(isFocusVisible),
121
120
  "data-disabled": (0, import_shared_utils.dataAttr)(originalProps.isDisabled),
122
- ...(0, import_utils.mergeProps)(
121
+ ...(0, import_shared_utils.mergeProps)(
123
122
  originalProps.isPressable ? { ...buttonProps, ...focusProps, role: "button" } : {},
124
123
  originalProps.isHoverable ? hoverProps : {},
125
124
  (0, import_react_utils.filterDOMProps)(otherProps, {
package/dist/use-card.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useCard
4
- } from "./chunk-NVHFBF4D.mjs";
4
+ } from "./chunk-DHMIPUUY.mjs";
5
5
  export {
6
6
  useCard
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heroui/card",
3
- "version": "2.2.21",
3
+ "version": "2.2.22-beta.1",
4
4
  "description": "Card is a container for text, photos, and actions in the context of a single subject.",
5
5
  "keywords": [
6
6
  "card"
@@ -28,18 +28,17 @@
28
28
  "react": ">=18 || >=19.0.0-rc.0",
29
29
  "react-dom": ">=18 || >=19.0.0-rc.0",
30
30
  "framer-motion": ">=11.5.6 || >=12.0.0-alpha.1",
31
- "@heroui/theme": ">=2.4.6",
32
- "@heroui/system": ">=2.4.17"
31
+ "@heroui/theme": ">=2.4.18-beta.0",
32
+ "@heroui/system": ">=2.4.19-beta.0"
33
33
  },
34
34
  "dependencies": {
35
35
  "@react-aria/focus": "3.20.5",
36
- "@react-aria/utils": "3.29.1",
37
36
  "@react-aria/interactions": "3.25.3",
38
37
  "@react-types/shared": "3.30.0",
39
- "@heroui/shared-utils": "2.1.9",
40
- "@heroui/react-utils": "2.1.11",
41
- "@heroui/ripple": "2.2.17",
42
- "@heroui/use-aria-button": "2.2.16"
38
+ "@heroui/shared-utils": "2.1.10-beta.6",
39
+ "@heroui/react-utils": "2.1.12-beta.4",
40
+ "@heroui/use-aria-button": "2.2.17-beta.1",
41
+ "@heroui/ripple": "2.2.18-beta.1"
43
42
  },
44
43
  "clean-package": "../../../clean-package.config.json",
45
44
  "module": "dist/index.mjs",