@kopexa/tab-nav 1.0.0 → 1.0.2
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/{chunk-GSCGK67N.mjs → chunk-7XBTQMAG.mjs} +18 -3
- package/dist/index.js +15 -2
- package/dist/index.mjs +1 -1
- package/dist/tab-nav.d.mts +2 -2
- package/dist/tab-nav.d.ts +2 -2
- package/dist/tab-nav.js +15 -2
- package/dist/tab-nav.mjs +1 -1
- package/package.json +3 -3
|
@@ -7,15 +7,30 @@ import {
|
|
|
7
7
|
} from "@kopexa/react-utils";
|
|
8
8
|
import { Ripple, useRipple } from "@kopexa/ripple";
|
|
9
9
|
import { callAllHandlers, cn } from "@kopexa/shared-utils";
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
tabNav
|
|
12
|
+
} from "@kopexa/theme";
|
|
11
13
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
12
14
|
import { useCallback } from "react";
|
|
13
15
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
16
|
var [TabNavProvider, useTabNavContext] = createContext();
|
|
15
17
|
var TabNavRoot = (props) => {
|
|
16
|
-
const {
|
|
18
|
+
const {
|
|
19
|
+
className,
|
|
20
|
+
children,
|
|
21
|
+
classNames,
|
|
22
|
+
bleed,
|
|
23
|
+
size,
|
|
24
|
+
border,
|
|
25
|
+
color,
|
|
26
|
+
...rest
|
|
27
|
+
} = props;
|
|
17
28
|
const styles = tabNav({
|
|
18
|
-
className
|
|
29
|
+
className,
|
|
30
|
+
bleed,
|
|
31
|
+
size,
|
|
32
|
+
border,
|
|
33
|
+
color
|
|
19
34
|
});
|
|
20
35
|
return /* @__PURE__ */ jsx(TabNavProvider, { value: { styles, classNames }, children: /* @__PURE__ */ jsx(
|
|
21
36
|
NavigationMenuPrimitive.Root,
|
package/dist/index.js
CHANGED
|
@@ -45,9 +45,22 @@ var import_react = require("react");
|
|
|
45
45
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
46
46
|
var [TabNavProvider, useTabNavContext] = (0, import_react_utils.createContext)();
|
|
47
47
|
var TabNavRoot = (props) => {
|
|
48
|
-
const {
|
|
48
|
+
const {
|
|
49
|
+
className,
|
|
50
|
+
children,
|
|
51
|
+
classNames,
|
|
52
|
+
bleed,
|
|
53
|
+
size,
|
|
54
|
+
border,
|
|
55
|
+
color,
|
|
56
|
+
...rest
|
|
57
|
+
} = props;
|
|
49
58
|
const styles = (0, import_theme.tabNav)({
|
|
50
|
-
className
|
|
59
|
+
className,
|
|
60
|
+
bleed,
|
|
61
|
+
size,
|
|
62
|
+
border,
|
|
63
|
+
color
|
|
51
64
|
});
|
|
52
65
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TabNavProvider, { value: { styles, classNames }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
53
66
|
NavigationMenuPrimitive.Root,
|
package/dist/index.mjs
CHANGED
package/dist/tab-nav.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ComponentPropsWithout, RemovedProps } from '@kopexa/react-utils';
|
|
3
|
-
import { SlotsToClasses, TabNavSlots } from '@kopexa/theme';
|
|
3
|
+
import { TabNavVariantProps, SlotsToClasses, TabNavSlots } from '@kopexa/theme';
|
|
4
4
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
5
5
|
import { ComponentProps } from 'react';
|
|
6
6
|
|
|
7
7
|
type TabNavRootElementProps = ComponentPropsWithout<"nav", RemovedProps>;
|
|
8
|
-
type TabNavProps = Omit<TabNavRootElementProps, "defaultValue" | "dir" | "color"> & {
|
|
8
|
+
type TabNavProps = Omit<TabNavRootElementProps, "defaultValue" | "dir" | "color"> & TabNavVariantProps & {
|
|
9
9
|
classNames?: SlotsToClasses<TabNavSlots>;
|
|
10
10
|
};
|
|
11
11
|
type TabNavLinkElement = ComponentProps<typeof NavigationMenuPrimitive.Link>;
|
package/dist/tab-nav.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ComponentPropsWithout, RemovedProps } from '@kopexa/react-utils';
|
|
3
|
-
import { SlotsToClasses, TabNavSlots } from '@kopexa/theme';
|
|
3
|
+
import { TabNavVariantProps, SlotsToClasses, TabNavSlots } from '@kopexa/theme';
|
|
4
4
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
5
5
|
import { ComponentProps } from 'react';
|
|
6
6
|
|
|
7
7
|
type TabNavRootElementProps = ComponentPropsWithout<"nav", RemovedProps>;
|
|
8
|
-
type TabNavProps = Omit<TabNavRootElementProps, "defaultValue" | "dir" | "color"> & {
|
|
8
|
+
type TabNavProps = Omit<TabNavRootElementProps, "defaultValue" | "dir" | "color"> & TabNavVariantProps & {
|
|
9
9
|
classNames?: SlotsToClasses<TabNavSlots>;
|
|
10
10
|
};
|
|
11
11
|
type TabNavLinkElement = ComponentProps<typeof NavigationMenuPrimitive.Link>;
|
package/dist/tab-nav.js
CHANGED
|
@@ -43,9 +43,22 @@ var import_react = require("react");
|
|
|
43
43
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
44
44
|
var [TabNavProvider, useTabNavContext] = (0, import_react_utils.createContext)();
|
|
45
45
|
var TabNavRoot = (props) => {
|
|
46
|
-
const {
|
|
46
|
+
const {
|
|
47
|
+
className,
|
|
48
|
+
children,
|
|
49
|
+
classNames,
|
|
50
|
+
bleed,
|
|
51
|
+
size,
|
|
52
|
+
border,
|
|
53
|
+
color,
|
|
54
|
+
...rest
|
|
55
|
+
} = props;
|
|
47
56
|
const styles = (0, import_theme.tabNav)({
|
|
48
|
-
className
|
|
57
|
+
className,
|
|
58
|
+
bleed,
|
|
59
|
+
size,
|
|
60
|
+
border,
|
|
61
|
+
color
|
|
49
62
|
});
|
|
50
63
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TabNavProvider, { value: { styles, classNames }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
51
64
|
NavigationMenuPrimitive.Root,
|
package/dist/tab-nav.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kopexa/tab-nav",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tab-nav"
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"motion": ">=12.23.6",
|
|
29
29
|
"react": ">=19.0.0-rc.0",
|
|
30
30
|
"react-dom": ">=19.0.0-rc.0",
|
|
31
|
-
"@kopexa/theme": "1.6.
|
|
31
|
+
"@kopexa/theme": "1.6.2"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@radix-ui/react-navigation-menu": "^1.2.13",
|
|
35
35
|
"@kopexa/react-utils": "2.0.6",
|
|
36
36
|
"@kopexa/shared-utils": "1.1.5",
|
|
37
|
-
"@kopexa/ripple": "9.0.
|
|
37
|
+
"@kopexa/ripple": "9.0.2"
|
|
38
38
|
},
|
|
39
39
|
"clean-package": "../../../clean-package.config.json",
|
|
40
40
|
"module": "dist/index.mjs",
|