@jamsrui/description 0.0.9 → 0.0.10

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.
@@ -0,0 +1,18 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { WithGlobalConfig } from '@jamsrui/core';
3
+ import { Description } from './description.mjs';
4
+ import 'react';
5
+ import './use-description.mjs';
6
+ import '@jamsrui/utils';
7
+
8
+ declare const useDescriptionConfig: () => DescriptionConfig.Props;
9
+ declare const DescriptionConfig: (props: Omit<Partial<DescriptionConfig.Props>, "children"> & {
10
+ merge?: boolean;
11
+ children: React.ReactNode;
12
+ }) => react_jsx_runtime.JSX.Element;
13
+ declare namespace DescriptionConfig {
14
+ interface Props extends WithGlobalConfig<Description.Props> {
15
+ }
16
+ }
17
+
18
+ export { DescriptionConfig, useDescriptionConfig };
@@ -0,0 +1 @@
1
+ "use client";import{createConfigContext as o}from"@jamsrui/utils";const[r,n]=o({displayName:"DescriptionConfigContext"});export{r as DescriptionConfig,n as useDescriptionConfig};
@@ -1 +1 @@
1
- import{useRenderElement as o}from"@jamsrui/hooks";import{useDescription as s}from"./use-description.mjs";const i=e=>{const r=s(e);return o("p",{props:[r]})};export{i as Description};
1
+ "use client";import{useRenderElement as s}from"@jamsrui/hooks";import{mergeConfigProps as n}from"@jamsrui/utils";import{useDescriptionConfig as i}from"./description-config.mjs";import{descriptionVariants as p}from"./styles.mjs";import{useDescription as c}from"./use-description.mjs";const P=e=>{const r=i(),o=n(p.defaultVariants,r,e),t=c(o);return s("p",{props:[t]})};export{P as Description};
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- "use client";import{Description as o}from"./description.mjs";export{o as Description};
1
+ import{Description as e}from"./description.mjs";export{e as Description};
@@ -0,0 +1,5 @@
1
+ import * as _jamsrui_utils from '@jamsrui/utils';
2
+
3
+ declare const descriptionVariants: _jamsrui_utils.TVReturnType<{} | {} | {}, undefined, "description text-xs text-foreground-secondary", {} | {}, undefined, _jamsrui_utils.TVReturnType<unknown, undefined, "description text-xs text-foreground-secondary", unknown, unknown, undefined>>;
4
+
5
+ export { descriptionVariants };
@@ -0,0 +1 @@
1
+ import{tv as t}from"@jamsrui/utils";const r=t({base:"description text-xs text-foreground-secondary"});export{r as descriptionVariants};
@@ -1 +1 @@
1
- import{useFieldA11yContext as p}from"@jamsrui/context";import{useMergeRefs as i}from"@jamsrui/hooks";import{cn as n}from"@jamsrui/utils";const x=r=>{const{className:s,ref:t,...o}=r,e=p();return{ref:i([t,e?.setDescriptionRef]),className:n("description text-xs text-foreground-secondary",s),...e?.getDescriptionProps(),...o}};export{x as useDescription};
1
+ "use client";import{useFieldA11yContext as p}from"@jamsrui/context";import{useMergeRefs as i}from"@jamsrui/hooks";import{descriptionVariants as n}from"./styles.mjs";const a=r=>{const{className:s,ref:t,...o}=r,e=p();return{ref:i([t,e?.setDescriptionRef]),className:n({className:s}),...e?.getDescriptionProps(),...o}};export{a as useDescription};
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@jamsrui/description",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "peerDependencies": {
5
5
  "react": ">=19"
6
6
  },
7
7
  "dependencies": {
8
- "@jamsrui/hooks": "^0.0.16",
9
- "@jamsrui/context": "^0.0.5",
10
- "@jamsrui/utils": "^0.0.16"
8
+ "@jamsrui/context": "^0.0.6",
9
+ "@jamsrui/core": "^0.0.14",
10
+ "@jamsrui/utils": "^0.0.17",
11
+ "@jamsrui/hooks": "^0.0.17"
11
12
  },
12
13
  "exports": {
13
14
  ".": {