@jamsrui/description 0.0.8 → 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.
- package/dist/description-config.d.mts +18 -0
- package/dist/description-config.mjs +1 -0
- package/dist/description.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/styles.d.mts +5 -0
- package/dist/styles.mjs +1 -0
- package/dist/use-description.mjs +1 -1
- package/package.json +5 -4
|
@@ -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};
|
package/dist/description.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRenderElement as
|
|
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
|
-
|
|
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 };
|
package/dist/styles.mjs
ADDED
|
@@ -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};
|
package/dist/use-description.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useFieldA11yContext as p}from"@jamsrui/context";import{useMergeRefs as i}from"@jamsrui/hooks";import{
|
|
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.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@jamsrui/
|
|
9
|
-
"@jamsrui/
|
|
10
|
-
"@jamsrui/utils": "^0.0.
|
|
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
|
".": {
|