@jamsrui/switch 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 +3 -2
- package/dist/{switch-CzNIU3Zv.d.mts → switch-B3u5LmQm.d.mts} +2 -2
- package/dist/switch-config.d.mts +4 -3
- package/dist/switch-context.d.mts +2 -1
- package/dist/switch.d.mts +3 -2
- package/dist/switch.mjs +1 -1
- package/dist/use-switch.d.mts +2 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export { S as Switch } from './switch-
|
|
1
|
+
export { S as Switch } from './switch-B3u5LmQm.mjs';
|
|
2
2
|
export { SwitchConfig, useSwitchConfig } from './switch-config.mjs';
|
|
3
|
-
import 'react';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
4
|
import '@jamsrui/utils';
|
|
5
5
|
import './styles.mjs';
|
|
6
6
|
import 'tailwind-variants';
|
|
7
7
|
import './switch-description.mjs';
|
|
8
|
+
import 'react';
|
|
8
9
|
import './switch-label.mjs';
|
|
9
10
|
import './switch-thumb.mjs';
|
|
10
11
|
import './switch-track.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { PropGetter, UIProps, SlotsToClassNames } from '@jamsrui/utils';
|
|
3
3
|
import { SwitchVariants, SwitchSlots } from './styles.mjs';
|
|
4
4
|
import { SwitchDescription } from './switch-description.mjs';
|
|
@@ -45,7 +45,7 @@ declare namespace useSwitch {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
declare const Switch: (props: Switch.Props) =>
|
|
48
|
+
declare const Switch: (props: Switch.Props) => react_jsx_runtime.JSX.Element;
|
|
49
49
|
declare namespace Switch {
|
|
50
50
|
interface Props extends useSwitch.Props {
|
|
51
51
|
}
|
package/dist/switch-config.d.mts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { S as Switch } from './switch-
|
|
2
|
-
import * as
|
|
1
|
+
import { S as Switch } from './switch-B3u5LmQm.mjs';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { GlobalConfigProps } from '@jamsrui/core';
|
|
4
4
|
import '@jamsrui/utils';
|
|
5
5
|
import './styles.mjs';
|
|
6
6
|
import 'tailwind-variants';
|
|
7
7
|
import './switch-description.mjs';
|
|
8
|
+
import 'react';
|
|
8
9
|
import './switch-label.mjs';
|
|
9
10
|
import './switch-thumb.mjs';
|
|
10
11
|
import './switch-track.mjs';
|
|
@@ -15,7 +16,7 @@ import './swith-error-message.mjs';
|
|
|
15
16
|
declare const useSwitchConfig: () => SwitchConfig.Props;
|
|
16
17
|
declare const SwitchConfig: (props: SwitchConfig.Props & {
|
|
17
18
|
merge?: boolean;
|
|
18
|
-
}) =>
|
|
19
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
19
20
|
declare namespace SwitchConfig {
|
|
20
21
|
interface Props extends Switch.Props, GlobalConfigProps<Switch.Props> {
|
|
21
22
|
}
|
package/dist/switch.d.mts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
export { S as Switch } from './switch-
|
|
1
|
+
import 'react/jsx-runtime';
|
|
2
|
+
export { S as Switch } from './switch-B3u5LmQm.mjs';
|
|
3
3
|
import '@jamsrui/utils';
|
|
4
4
|
import './styles.mjs';
|
|
5
5
|
import 'tailwind-variants';
|
|
6
6
|
import './switch-description.mjs';
|
|
7
|
+
import 'react';
|
|
7
8
|
import './switch-label.mjs';
|
|
8
9
|
import './switch-thumb.mjs';
|
|
9
10
|
import './switch-track.mjs';
|
package/dist/switch.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRenderElement as
|
|
1
|
+
import{Fragment as T,jsx as t,jsxs as o}from"react/jsx-runtime";import{useRenderElement as w}from"@jamsrui/hooks";import{mergeConfigProps as S}from"@jamsrui/utils";import{useSwitchConfig as f}from"./switch-config";import{SwitchContext as a}from"./switch-context";import{SwitchDescription as d}from"./switch-description";import{SwitchLabel as C}from"./switch-label";import{SwitchThumb as g}from"./switch-thumb";import{SwitchTrack as l}from"./switch-track";import{SwitchWrapper as u}from"./switch-wrapper";import{SwitchContent as x}from"./swith-content";import{SwitchErrorMessage as P}from"./swith-error-message";import{useSwitch as E}from"./use-switch";const B=r=>{const{children:e}=r,i=f(),n=S(i,i,r),c=E(n),{getRootProps:m,hasContent:p}=c,s=o(T,{children:[o(u,{children:[!!p&&o(x,{children:[t(C,{}),!!e&&t(d,{children:e})]}),t(l,{children:t(g,{})})]}),t(P,{})]}),h=w("div",{props:[m({}),{children:s}]});return t(a,{value:c,children:h})};export{B as Switch};
|
package/dist/use-switch.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@jamsrui/utils';
|
|
2
2
|
import './styles.mjs';
|
|
3
|
-
export { u as useSwitch } from './switch-
|
|
3
|
+
export { u as useSwitch } from './switch-B3u5LmQm.mjs';
|
|
4
4
|
import './switch-description.mjs';
|
|
5
5
|
import './switch-label.mjs';
|
|
6
6
|
import './switch-thumb.mjs';
|
|
@@ -9,4 +9,5 @@ import './switch-wrapper.mjs';
|
|
|
9
9
|
import './swith-content.mjs';
|
|
10
10
|
import './swith-error-message.mjs';
|
|
11
11
|
import 'tailwind-variants';
|
|
12
|
+
import 'react/jsx-runtime';
|
|
12
13
|
import 'react';
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/switch",
|
|
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
|
".": {
|