@koobiq/react-primitives 0.21.1 → 0.23.0
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/components/Link/Link.js +6 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +5 -3
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { polymorphicForwardRef,
|
|
3
|
+
import { polymorphicForwardRef, useObjectRef, filterDOMProps, mergeProps } from "@koobiq/react-core";
|
|
4
4
|
import { useRenderProps } from "../../utils/index.js";
|
|
5
5
|
import { useLink } from "../../behaviors/useLink.js";
|
|
6
6
|
const Link = polymorphicForwardRef((props, ref) => {
|
|
7
7
|
const { as: Tag = "a", ...other } = props;
|
|
8
|
-
const domRef =
|
|
8
|
+
const domRef = useObjectRef(ref);
|
|
9
9
|
const { isHovered, isPressed, isFocusVisible, isFocused, linkProps } = useLink(
|
|
10
10
|
{
|
|
11
11
|
...other,
|
|
12
|
+
elementType: `${Tag}`,
|
|
12
13
|
...other.isDisabled && {
|
|
13
14
|
onPress: void 0,
|
|
14
15
|
onPressStart: void 0,
|
|
@@ -34,6 +35,8 @@ const Link = polymorphicForwardRef((props, ref) => {
|
|
|
34
35
|
...props,
|
|
35
36
|
values: renderValues
|
|
36
37
|
});
|
|
38
|
+
const DOMProps = filterDOMProps(props, { global: true });
|
|
39
|
+
delete DOMProps.onClick;
|
|
37
40
|
return /* @__PURE__ */ jsx(
|
|
38
41
|
Tag,
|
|
39
42
|
{
|
|
@@ -42,7 +45,7 @@ const Link = polymorphicForwardRef((props, ref) => {
|
|
|
42
45
|
"data-focused": isFocused || void 0,
|
|
43
46
|
"data-disabled": props.isDisabled || void 0,
|
|
44
47
|
"data-focus-visible": isFocusVisible || void 0,
|
|
45
|
-
...mergeProps(
|
|
48
|
+
...mergeProps(DOMProps, renderProps, linkProps),
|
|
46
49
|
..."tabIndex" in props && { tabIndex: props.tabIndex },
|
|
47
50
|
ref: domRef,
|
|
48
51
|
children: renderProps.children
|
package/dist/index.d.ts
CHANGED
|
@@ -36,6 +36,8 @@ export * from '@react-stately/combobox';
|
|
|
36
36
|
export * from '@react-aria/toast';
|
|
37
37
|
export * from '@react-stately/toast';
|
|
38
38
|
export * from '@react-aria/breadcrumbs';
|
|
39
|
+
export * from '@react-aria/disclosure';
|
|
40
|
+
export * from '@react-stately/disclosure';
|
|
39
41
|
export type { CalendarProps, CalendarAria, CalendarGridAria, CalendarCellAria, AriaCalendarProps, AriaCalendarCellProps, AriaCalendarGridProps, } from '@react-aria/calendar';
|
|
40
42
|
export { useCalendar, useCalendarCell, useCalendarGrid, } from '@react-aria/calendar';
|
|
41
43
|
export * from '@react-stately/calendar';
|
package/dist/index.js
CHANGED
|
@@ -35,6 +35,8 @@ export * from "@react-stately/combobox";
|
|
|
35
35
|
export * from "@react-aria/toast";
|
|
36
36
|
export * from "@react-stately/toast";
|
|
37
37
|
export * from "@react-aria/breadcrumbs";
|
|
38
|
+
export * from "@react-aria/disclosure";
|
|
39
|
+
export * from "@react-stately/disclosure";
|
|
38
40
|
import { useCalendar, useCalendarCell, useCalendarGrid } from "@react-aria/calendar";
|
|
39
41
|
export * from "@react-stately/calendar";
|
|
40
42
|
export * from "@react-stately/form";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koobiq/react-primitives",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"@react-aria/combobox": "^3.14.0",
|
|
32
32
|
"@react-aria/datepicker": "^3.15.2",
|
|
33
33
|
"@react-aria/dialog": "^3.5.19",
|
|
34
|
+
"@react-aria/disclosure": "^3.1.1",
|
|
34
35
|
"@react-aria/label": "^3.7.20",
|
|
35
36
|
"@react-aria/link": "^3.8.3",
|
|
36
37
|
"@react-aria/listbox": "^3.14.2",
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
"@react-stately/combobox": "^3.12.0",
|
|
58
59
|
"@react-stately/data": "^3.13.0",
|
|
59
60
|
"@react-stately/datepicker": "^3.15.2",
|
|
61
|
+
"@react-stately/disclosure": "^3.0.9",
|
|
60
62
|
"@react-stately/form": "^3.2.0",
|
|
61
63
|
"@react-stately/list": "^3.12.0",
|
|
62
64
|
"@react-stately/menu": "^3.9.3",
|
|
@@ -71,8 +73,8 @@
|
|
|
71
73
|
"@react-stately/toggle": "^3.9.2",
|
|
72
74
|
"@react-stately/tooltip": "^3.5.5",
|
|
73
75
|
"@react-stately/tree": "^3.8.9",
|
|
74
|
-
"@koobiq/logger": "0.
|
|
75
|
-
"@koobiq/react-core": "0.
|
|
76
|
+
"@koobiq/logger": "0.23.0",
|
|
77
|
+
"@koobiq/react-core": "0.23.0"
|
|
76
78
|
},
|
|
77
79
|
"peerDependencies": {
|
|
78
80
|
"react": "18.x || 19.x",
|