@jamsrui/text 0.0.15 → 0.0.17
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.mjs +1 -1
- package/dist/text-config.d.mts +2 -2
- package/dist/text-config.mjs +1 -1
- package/dist/text.mjs +1 -1
- package/dist/use-text.mjs +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{textVariants as o}from"./styles.mjs";import{Text as x}from"./text.mjs";import{TextConfig as i,useTextConfig as m}from"./text-config.mjs";export{x as Text,i as TextConfig,o as textVariants,m as useTextConfig};
|
package/dist/text-config.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './styles.mjs';
|
|
2
2
|
import { Text } from './text.mjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import {
|
|
4
|
+
import { WithGlobalConfig } from '@jamsrui/core';
|
|
5
5
|
import '@jamsrui/utils';
|
|
6
6
|
import 'react';
|
|
7
7
|
|
|
@@ -11,7 +11,7 @@ declare const TextConfig: (props: Omit<Partial<TextConfig.Props>, "children"> &
|
|
|
11
11
|
children: React.ReactNode;
|
|
12
12
|
}) => react_jsx_runtime.JSX.Element;
|
|
13
13
|
declare namespace TextConfig {
|
|
14
|
-
interface Props extends
|
|
14
|
+
interface Props extends WithGlobalConfig<Text.Props> {
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
package/dist/text-config.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createConfigContext as
|
|
1
|
+
"use client";import{createConfigContext as e}from"@jamsrui/utils";const[o,i]=e({displayName:"TextConfigContext"});export{o as TextConfig,i as useTextConfig};
|
package/dist/text.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRenderElement as
|
|
1
|
+
"use client";import{useRenderElement as a}from"@jamsrui/hooks";import{mapPropsVariants as m,mergeConfigProps as i}from"@jamsrui/utils";import{textVariants as e}from"./styles.mjs";import{useTextConfig as c}from"./text-config.mjs";const d=r=>{const t=c(),o=i(e.defaultVariants,t,r),[s,n]=m(o,e.variantKeys),p=e(n);return a("p",{props:[s,{className:p}]})};export{d as Text};
|
package/dist/use-text.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
"use client";const s=e=>{};export{s as useText};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/text",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"tailwind-variants": "^1.0.0",
|
|
9
|
-
"@jamsrui/
|
|
10
|
-
"@jamsrui/
|
|
11
|
-
"@jamsrui/utils": "^0.0.
|
|
9
|
+
"@jamsrui/hooks": "^0.0.17",
|
|
10
|
+
"@jamsrui/core": "^0.0.14",
|
|
11
|
+
"@jamsrui/utils": "^0.0.17"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|