@jamsrui/text 0.0.16 → 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 CHANGED
@@ -1 +1 @@
1
- "use client";import{textVariants as o}from"./styles.mjs";import{Text as x}from"./text.mjs";import{TextConfig as i,useTextConfig as n}from"./text-config.mjs";export{x as Text,i as TextConfig,o as textVariants,n as useTextConfig};
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};
@@ -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 { GlobalConfigProps } from '@jamsrui/core';
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 Text.Props, GlobalConfigProps<Text.Props> {
14
+ interface Props extends WithGlobalConfig<Text.Props> {
15
15
  }
16
16
  }
17
17
 
@@ -1 +1 @@
1
- import{createConfigContext as o}from"@jamsrui/utils";const[t,r]=o({displayName:"TextConfigContext"});export{t as TextConfig,r as useTextConfig};
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 m}from"@jamsrui/hooks";import{mapPropsVariants as a,mergeConfigProps as i}from"@jamsrui/utils";import{textVariants as r}from"./styles.mjs";import{useTextConfig as x}from"./text-config.mjs";const d=t=>{const e=x(),o=i(e,e,t),[s,n]=a(o,r.variantKeys),p=r(n);return m("p",{props:[s,{className:p}]})};export{d as Text};
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 p=e=>{};export{p as useText};
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.16",
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/hooks": "^0.0.16",
10
- "@jamsrui/core": "^0.0.13",
11
- "@jamsrui/utils": "^0.0.16"
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
  ".": {