@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 CHANGED
@@ -1,8 +1,9 @@
1
1
  export { Tab } from './tab.mjs';
2
- export { T as Tabs } from './tabs-mM3syrWk.mjs';
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';
@@ -1,7 +1,7 @@
1
- import * as react from 'react';
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) => react.JSX.Element;
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
  }
@@ -1 +1 @@
1
- import{motion as t}from"motion/react";import{useTabsContext as e}from"./tabs-context";const i=o=>{const{getCursorProps:r}=e();return React.createElement(t.div,{...r(o)})};export{i as TabCursor};
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};
@@ -1,7 +1,7 @@
1
- import * as react from 'react';
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) => react.JSX.Element;
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 c=o=>{const{getTabListProps:r}=m(),t=p("div",{props:[r(o)]}),e=s();return React.createElement(i,{id:e},t)};export{c as TabList};
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 a}from"@jamsrui/hooks";import{TabContent as m}from"./tab-content";import{TabCursor as i}from"./tab-cursor";import{useTabsContext as c}from"./tabs-context";import{useTab as d}from"./use-tab";const P=e=>{const{getTabProps:o}=c(),{heading:t,value:r,...n}=o(e),{handleClick:s,isActive:p}=d({value:r});return a("button",{props:[n,{onClick:s},{children:React.createElement(React.Fragment,null,React.createElement(m,null,t),!!p&&React.createElement(i,null))}]})};export{P as Tab};
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) => react.JSX.Element;
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
  }
@@ -1,7 +1,8 @@
1
1
  import './tab.mjs';
2
- import { T as Tabs } from './tabs-mM3syrWk.mjs';
3
- import * as react from 'react';
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
- }) => react.JSX.Element;
18
+ }) => react_jsx_runtime.JSX.Element;
18
19
  declare namespace TabsConfig {
19
20
  interface Props extends Tabs.Props, GlobalConfigProps<Tabs.Props> {
20
21
  }
@@ -1,5 +1,6 @@
1
1
  import * as react from 'react';
2
- import { u as useTabs } from './tabs-mM3syrWk.mjs';
2
+ import { u as useTabs } from './tabs-BlJagjtc.mjs';
3
+ import 'react/jsx-runtime';
3
4
  import '@jamsrui/utils';
4
5
  import './styles.mjs';
5
6
  import 'tailwind-variants';
package/dist/tabs.d.mts CHANGED
@@ -1,5 +1,6 @@
1
+ import 'react/jsx-runtime';
2
+ export { T as Tabs } from './tabs-BlJagjtc.mjs';
1
3
  import 'react';
2
- export { T as Tabs } from './tabs-mM3syrWk.mjs';
3
4
  import '@jamsrui/utils';
4
5
  import './styles.mjs';
5
6
  import 'tailwind-variants';
package/dist/tabs.mjs CHANGED
@@ -1 +1 @@
1
- import{useRenderElement as i}from"@jamsrui/hooks";import{mergeConfigProps as a}from"@jamsrui/utils";import{TabList as c}from"./tab-list";import{TabPanel as b}from"./tab-panel";import{useTabsConfig as f}from"./tabs-config";import{TabsContext as T}from"./tabs-context";import{useTabs as d}from"./use-tabs";const v=o=>{const{children:t}=o,e=f(),s=a(e,e,o),r=d(s),{getRootProps:n}=r,m=React.createElement(React.Fragment,null,React.createElement(c,null,t),React.createElement(b,null)),p=i("div",{props:[n({}),{children:m}]});return React.createElement(T,{value:r},p)};export{v as Tabs};
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};
@@ -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-mM3syrWk.mjs';
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.4",
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.4",
10
- "@jamsrui/core": "^0.0.4",
11
- "@jamsrui/utils": "^0.0.4"
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
  ".": {