@jamsrui/divider 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/divider-config.d.mts +3 -2
- package/dist/divider.mjs +1 -1
- package/dist/index.d.mts +1 -0
- package/package.json +4 -4
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Divider } from './divider.mjs';
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { GlobalConfigProps } from '@jamsrui/core';
|
|
4
|
+
import 'react';
|
|
4
5
|
import '@jamsrui/utils';
|
|
5
6
|
|
|
6
7
|
declare const useDividerConfig: () => DividerConfig.Props;
|
|
7
8
|
declare const DividerConfig: (props: DividerConfig.Props & {
|
|
8
9
|
merge?: boolean;
|
|
9
|
-
}) =>
|
|
10
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
10
11
|
declare namespace DividerConfig {
|
|
11
12
|
interface Props extends Divider.Props, GlobalConfigProps<Divider.Props> {
|
|
12
13
|
}
|
package/dist/divider.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRenderElement as
|
|
1
|
+
import{Fragment as n,jsx as t,jsxs as s}from"react/jsx-runtime";import{useRenderElement as v}from"@jamsrui/hooks";import{mergeConfigProps as f}from"@jamsrui/utils";import{useDividerConfig as P}from"./divider-config";import{useDivider as g}from"./use-divider";const h=e=>{const r=P(),d=f(r,r,e),p=g(d),{getRootProps:m,getDividerProps:o}=p,{children:i}=e,c=s(n,{children:[t("div",{...o({})}),!!i&&s(n,{children:[i,t("div",{...o({})})]})]});return v("div",{props:[m({}),{children:c}]})};export{h as Divider};
|
package/dist/index.d.mts
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/divider",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@jamsrui/hooks": "^0.0.
|
|
9
|
-
"@jamsrui/core": "^0.0.
|
|
10
|
-
"@jamsrui/utils": "^0.0.
|
|
8
|
+
"@jamsrui/hooks": "^0.0.6",
|
|
9
|
+
"@jamsrui/core": "^0.0.6",
|
|
10
|
+
"@jamsrui/utils": "^0.0.6"
|
|
11
11
|
},
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|