@jamsrui/tabs 0.0.4 → 0.0.6
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/index.d.mts +2 -1
- package/dist/tab-cursor.d.mts +2 -2
- package/dist/tab-cursor.mjs +1 -1
- package/dist/tab-list.d.mts +2 -2
- package/dist/tab-list.mjs +1 -1
- package/dist/tab.mjs +1 -1
- package/dist/{tabs-mM3syrWk.d.mts → tabs-BlJagjtc.d.mts} +2 -1
- package/dist/tabs-config.d.mts +4 -3
- package/dist/tabs-context.d.mts +2 -1
- package/dist/tabs.d.mts +2 -1
- package/dist/tabs.mjs +1 -1
- package/dist/use-tabs.d.mts +2 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { Tab } from './tab.mjs';
|
|
2
|
-
export { T as Tabs } from './tabs-
|
|
2
|
+
export { T as Tabs } from './tabs-BlJagjtc.mjs';
|
|
3
3
|
export { TabsConfig, useTabsConfig } from './tabs-config.mjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@jamsrui/utils';
|
|
6
|
+
import 'react/jsx-runtime';
|
|
6
7
|
import './styles.mjs';
|
|
7
8
|
import 'tailwind-variants';
|
|
8
9
|
import './tab-content.mjs';
|
package/dist/tab-cursor.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { MotionProps } from 'motion/react';
|
|
3
3
|
|
|
4
|
-
declare const TabCursor: (props: TabCursor.Props) =>
|
|
4
|
+
declare const TabCursor: (props: TabCursor.Props) => react_jsx_runtime.JSX.Element;
|
|
5
5
|
declare namespace TabCursor {
|
|
6
6
|
interface Props extends MotionProps, Omit<React.HTMLAttributes<HTMLDivElement>, keyof MotionProps> {
|
|
7
7
|
}
|
package/dist/tab-cursor.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{motion as t}from"motion/react";import{useTabsContext as e}from"./tabs-context";const
|
|
1
|
+
import{jsx as s}from"react/jsx-runtime";import{motion as t}from"motion/react";import{useTabsContext as e}from"./tabs-context";const n=o=>{const{getCursorProps:r}=e();return s(t.div,{...r(o)})};export{n as TabCursor};
|
package/dist/tab-list.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { UIProps } from '@jamsrui/utils';
|
|
3
3
|
|
|
4
|
-
declare const TabList: (props: TabList.Props) =>
|
|
4
|
+
declare const TabList: (props: TabList.Props) => react_jsx_runtime.JSX.Element;
|
|
5
5
|
declare namespace TabList {
|
|
6
6
|
interface Props extends UIProps<"div"> {
|
|
7
7
|
}
|
package/dist/tab-list.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useId as s}from"react";import{useRenderElement as p}from"@jamsrui/hooks";import{LayoutGroup as i}from"motion/react";import{useTabsContext as m}from"./tabs-context";const
|
|
1
|
+
import{jsx as n}from"react/jsx-runtime";import{useId as s}from"react";import{useRenderElement as p}from"@jamsrui/hooks";import{LayoutGroup as i}from"motion/react";import{useTabsContext as m}from"./tabs-context";const L=o=>{const{getTabListProps:r}=m(),t=p("div",{props:[r(o)]}),e=s();return n(i,{id:e,children:t})};export{L as TabList};
|
package/dist/tab.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRenderElement as
|
|
1
|
+
import{Fragment as b,jsx as e,jsxs as u}from"react/jsx-runtime";import{useRenderElement as m}from"@jamsrui/hooks";import{TabContent as i}from"./tab-content";import{TabCursor as c}from"./tab-cursor";import{useTabsContext as d}from"./tabs-context";import{useTab as l}from"./use-tab";const v=o=>{const{getTabProps:t}=d(),{heading:r,value:n,...s}=t(o),{handleClick:p,isActive:a}=l({value:n});return m("button",{props:[s,{onClick:p},{children:u(b,{children:[e(i,{children:r}),!!a&&e(c,{})]})}]})};export{v as Tab};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import * as react from 'react';
|
|
2
3
|
import { ReactElement } from 'react';
|
|
3
4
|
import { PropGetter, UIProps, SlotsToClassNames } from '@jamsrui/utils';
|
|
@@ -35,7 +36,7 @@ declare namespace useTabs {
|
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
|
|
38
|
-
declare const Tabs: (props: Tabs.Props) =>
|
|
39
|
+
declare const Tabs: (props: Tabs.Props) => react_jsx_runtime.JSX.Element;
|
|
39
40
|
declare namespace Tabs {
|
|
40
41
|
interface Props extends useTabs.Props {
|
|
41
42
|
}
|
package/dist/tabs-config.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import './tab.mjs';
|
|
2
|
-
import { T as Tabs } from './tabs-
|
|
3
|
-
import * as
|
|
2
|
+
import { T as Tabs } from './tabs-BlJagjtc.mjs';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { GlobalConfigProps } from '@jamsrui/core';
|
|
5
|
+
import 'react';
|
|
5
6
|
import '@jamsrui/utils';
|
|
6
7
|
import './styles.mjs';
|
|
7
8
|
import 'tailwind-variants';
|
|
@@ -14,7 +15,7 @@ import './tab-panel.mjs';
|
|
|
14
15
|
declare const useTabsConfig: () => TabsConfig.Props;
|
|
15
16
|
declare const TabsConfig: (props: TabsConfig.Props & {
|
|
16
17
|
merge?: boolean;
|
|
17
|
-
}) =>
|
|
18
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
18
19
|
declare namespace TabsConfig {
|
|
19
20
|
interface Props extends Tabs.Props, GlobalConfigProps<Tabs.Props> {
|
|
20
21
|
}
|
package/dist/tabs-context.d.mts
CHANGED
package/dist/tabs.d.mts
CHANGED
package/dist/tabs.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRenderElement as
|
|
1
|
+
import{Fragment as P,jsx as o,jsxs as g}from"react/jsx-runtime";import{useRenderElement as a}from"@jamsrui/hooks";import{mergeConfigProps as c}from"@jamsrui/utils";import{TabList as b}from"./tab-list";import{TabPanel as f}from"./tab-panel";import{useTabsConfig as T}from"./tabs-config";import{TabsContext as d}from"./tabs-context";import{useTabs as l}from"./use-tabs";const R=e=>{const{children:t}=e,r=T(),n=c(r,r,e),s=l(n),{getRootProps:m}=s,p=g(P,{children:[o(b,{children:t}),o(f,{})]}),i=a("div",{props:[m({}),{children:p}]});return o(d,{value:s,children:i})};export{R as Tabs};
|
package/dist/use-tabs.d.mts
CHANGED
|
@@ -6,6 +6,7 @@ import './tab-content.mjs';
|
|
|
6
6
|
import './tab-cursor.mjs';
|
|
7
7
|
import './tab-list.mjs';
|
|
8
8
|
import './tab-panel.mjs';
|
|
9
|
-
export { u as useTabs } from './tabs-
|
|
9
|
+
export { u as useTabs } from './tabs-BlJagjtc.mjs';
|
|
10
10
|
import 'tailwind-variants';
|
|
11
|
+
import 'react/jsx-runtime';
|
|
11
12
|
import 'motion/react';
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/tabs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"motion": ">=12",
|
|
6
6
|
"react": ">=19"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@jamsrui/hooks": "^0.0.
|
|
10
|
-
"@jamsrui/core": "^0.0.
|
|
11
|
-
"@jamsrui/utils": "^0.0.
|
|
9
|
+
"@jamsrui/hooks": "^0.0.6",
|
|
10
|
+
"@jamsrui/core": "^0.0.6",
|
|
11
|
+
"@jamsrui/utils": "^0.0.6"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|