@jamsrui/text 0.0.2 → 0.0.3
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/styles.mjs +1 -1
- 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/chunk-AMJT2LG4.js +0 -1
- package/dist/chunk-G7BG4NQW.mjs +0 -1
- package/dist/chunk-MVBCRBNG.js +0 -1
- package/dist/chunk-NT4MF7PS.mjs +0 -1
- package/dist/chunk-ZTBYTOXH.mjs +0 -1
- package/dist/chunk-ZUAPYDPI.js +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -1
- package/dist/styles.d.ts +0 -83
- package/dist/styles.js +0 -1
- package/dist/text-config.d.ts +0 -17
- package/dist/text-config.js +0 -1
- package/dist/text.d.ts +0 -12
- package/dist/text.js +0 -1
- package/dist/use-text.d.ts +0 -7
- package/dist/use-text.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{
|
|
1
|
+
"use client";import{textVariants as o}from"./styles";import{Text as x}from"./text";import{TextConfig as i,useTextConfig as n}from"./text-config";export{x as Text,i as TextConfig,o as textVariants,n as useTextConfig};
|
package/dist/styles.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{tv as t}from"@jamsrui/utils";const e="",i=t({base:"transition-colors",variants:{variant:{h1:"text-4xl leading-tight",h2:"text-3xl leading-tight",h3:"text-2xl leading-tight",h4:"text-xl leading-tight",h5:"text-lg leading-tight",h6:"text-md leading-tight",lead:"text-2xs",caption:"text-xs",paragraph2:"text-sm",paragraph:"text-base",body1:"text-md",body2:"text-lg",body3:"text-xl",body4:"text-2xl",body5:"text-3xl",body6:"text-4xl leading-tight",body7:"text-5xl leading-tight",inherit:""},leading:{none:"leading-none",md:"leading-[1.7]"}},compoundVariants:[{variant:["h1","h2","h3"],className:"font-bold"},{variant:["h4","h5","h6"],className:"font-semibold"},{variant:["body1","body2","body3","body4"],className:"font-normal"},{variant:["body5","body6","body7"],className:"font-medium"}]});export{e as test,i as textVariants};
|
package/dist/text-config.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{createConfigContext as o}from"@jamsrui/utils";const[t,r]=o({displayName:"TextConfigContext"});export{t as TextConfig,r as useTextConfig};
|
package/dist/text.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"
|
|
1
|
+
import{useRenderElement as m}from"@jamsrui/hooks";import{mapPropsVariants as a,mergeConfigProps as i}from"@jamsrui/utils";import{textVariants as r}from"./styles";import{useTextConfig as x}from"./text-config";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};
|
package/dist/use-text.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const p=e=>{};export{p 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.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"tailwind-variants": "^1.0.0",
|
|
9
|
-
"@jamsrui/
|
|
10
|
-
"@jamsrui/utils": "^0.0.
|
|
11
|
-
"@jamsrui/
|
|
9
|
+
"@jamsrui/hooks": "^0.0.3",
|
|
10
|
+
"@jamsrui/utils": "^0.0.3",
|
|
11
|
+
"@jamsrui/core": "^0.0.3"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
package/dist/chunk-AMJT2LG4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _utils = require('@jamsrui/utils');var[t,r]=_utils.createConfigContext.call(void 0, {displayName:"TextConfigContext"});exports.a = t; exports.b = r;
|
package/dist/chunk-G7BG4NQW.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{tv as t}from"@jamsrui/utils";var e="",i=t({base:"transition-colors",variants:{variant:{h1:"text-4xl leading-tight",h2:"text-3xl leading-tight",h3:"text-2xl leading-tight",h4:"text-xl leading-tight",h5:"text-lg leading-tight",h6:"text-md leading-tight",lead:"text-2xs",caption:"text-xs",paragraph2:"text-sm",paragraph:"text-base",body1:"text-md",body2:"text-lg",body3:"text-xl",body4:"text-2xl",body5:"text-3xl",body6:"text-4xl leading-tight",body7:"text-5xl leading-tight",inherit:""},leading:{none:"leading-none",md:"leading-[1.7]"}},compoundVariants:[{variant:["h1","h2","h3"],className:"font-bold"},{variant:["h4","h5","h6"],className:"font-semibold"},{variant:["body1","body2","body3","body4"],className:"font-normal"},{variant:["body5","body6","body7"],className:"font-medium"}]});export{e as a,i as b};
|
package/dist/chunk-MVBCRBNG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _utils = require('@jamsrui/utils');var e="",i= exports.b =_utils.tv.call(void 0, {base:"transition-colors",variants:{variant:{h1:"text-4xl leading-tight",h2:"text-3xl leading-tight",h3:"text-2xl leading-tight",h4:"text-xl leading-tight",h5:"text-lg leading-tight",h6:"text-md leading-tight",lead:"text-2xs",caption:"text-xs",paragraph2:"text-sm",paragraph:"text-base",body1:"text-md",body2:"text-lg",body3:"text-xl",body4:"text-2xl",body5:"text-3xl",body6:"text-4xl leading-tight",body7:"text-5xl leading-tight",inherit:""},leading:{none:"leading-none",md:"leading-[1.7]"}},compoundVariants:[{variant:["h1","h2","h3"],className:"font-bold"},{variant:["h4","h5","h6"],className:"font-semibold"},{variant:["body1","body2","body3","body4"],className:"font-normal"},{variant:["body5","body6","body7"],className:"font-medium"}]});exports.a = e; exports.b = i;
|
package/dist/chunk-NT4MF7PS.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createConfigContext as o}from"@jamsrui/utils";var[t,r]=o({displayName:"TextConfigContext"});export{t as a,r as b};
|
package/dist/chunk-ZTBYTOXH.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk-G7BG4NQW.mjs";import{b as t}from"./chunk-NT4MF7PS.mjs";import{useRenderElement as a}from"@jamsrui/hooks";import{mapPropsVariants as i,mergeConfigProps as x}from"@jamsrui/utils";var d=o=>{let r=t(),s=x(r,r,o),[n,p]=i(s,e.variantKeys),m=e(p);return a("p",{props:[n,{className:m}]})};export{d as a};
|
package/dist/chunk-ZUAPYDPI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMVBCRBNGjs = require('./chunk-MVBCRBNG.js');var _chunkAMJT2LG4js = require('./chunk-AMJT2LG4.js');var _hooks = require('@jamsrui/hooks');var _utils = require('@jamsrui/utils');var d=o=>{let r=_chunkAMJT2LG4js.b.call(void 0, ),s=_utils.mergeConfigProps.call(void 0, r,r,o),[n,p]=_utils.mapPropsVariants.call(void 0, s,_chunkMVBCRBNGjs.b.variantKeys),m=_chunkMVBCRBNGjs.b.call(void 0, p);return _hooks.useRenderElement.call(void 0, "p",{props:[n,{className:m}]})};exports.a = d;
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkZUAPYDPIjs = require('./chunk-ZUAPYDPI.js');var _chunkMVBCRBNGjs = require('./chunk-MVBCRBNG.js');var _chunkAMJT2LG4js = require('./chunk-AMJT2LG4.js');exports.Text = _chunkZUAPYDPIjs.a; exports.TextConfig = _chunkAMJT2LG4js.a; exports.textVariants = _chunkMVBCRBNGjs.b; exports.useTextConfig = _chunkAMJT2LG4js.b;
|
package/dist/styles.d.ts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
-
import { VariantProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const test = "";
|
|
5
|
-
declare const textVariants: tailwind_variants.TVReturnType<{
|
|
6
|
-
variant: {
|
|
7
|
-
h1: string;
|
|
8
|
-
h2: string;
|
|
9
|
-
h3: string;
|
|
10
|
-
h4: string;
|
|
11
|
-
h5: string;
|
|
12
|
-
h6: string;
|
|
13
|
-
lead: string;
|
|
14
|
-
caption: string;
|
|
15
|
-
paragraph2: string;
|
|
16
|
-
paragraph: string;
|
|
17
|
-
body1: string;
|
|
18
|
-
body2: string;
|
|
19
|
-
body3: string;
|
|
20
|
-
body4: string;
|
|
21
|
-
body5: string;
|
|
22
|
-
body6: string;
|
|
23
|
-
body7: string;
|
|
24
|
-
inherit: string;
|
|
25
|
-
};
|
|
26
|
-
leading: {
|
|
27
|
-
none: string;
|
|
28
|
-
md: string;
|
|
29
|
-
};
|
|
30
|
-
}, undefined, "transition-colors", {
|
|
31
|
-
variant: {
|
|
32
|
-
h1: string;
|
|
33
|
-
h2: string;
|
|
34
|
-
h3: string;
|
|
35
|
-
h4: string;
|
|
36
|
-
h5: string;
|
|
37
|
-
h6: string;
|
|
38
|
-
lead: string;
|
|
39
|
-
caption: string;
|
|
40
|
-
paragraph2: string;
|
|
41
|
-
paragraph: string;
|
|
42
|
-
body1: string;
|
|
43
|
-
body2: string;
|
|
44
|
-
body3: string;
|
|
45
|
-
body4: string;
|
|
46
|
-
body5: string;
|
|
47
|
-
body6: string;
|
|
48
|
-
body7: string;
|
|
49
|
-
inherit: string;
|
|
50
|
-
};
|
|
51
|
-
leading: {
|
|
52
|
-
none: string;
|
|
53
|
-
md: string;
|
|
54
|
-
};
|
|
55
|
-
}, undefined, tailwind_variants.TVReturnType<{
|
|
56
|
-
variant: {
|
|
57
|
-
h1: string;
|
|
58
|
-
h2: string;
|
|
59
|
-
h3: string;
|
|
60
|
-
h4: string;
|
|
61
|
-
h5: string;
|
|
62
|
-
h6: string;
|
|
63
|
-
lead: string;
|
|
64
|
-
caption: string;
|
|
65
|
-
paragraph2: string;
|
|
66
|
-
paragraph: string;
|
|
67
|
-
body1: string;
|
|
68
|
-
body2: string;
|
|
69
|
-
body3: string;
|
|
70
|
-
body4: string;
|
|
71
|
-
body5: string;
|
|
72
|
-
body6: string;
|
|
73
|
-
body7: string;
|
|
74
|
-
inherit: string;
|
|
75
|
-
};
|
|
76
|
-
leading: {
|
|
77
|
-
none: string;
|
|
78
|
-
md: string;
|
|
79
|
-
};
|
|
80
|
-
}, undefined, "transition-colors", unknown, unknown, undefined>>;
|
|
81
|
-
type TextVariants = VariantProps<typeof textVariants>;
|
|
82
|
-
|
|
83
|
-
export { type TextVariants, test, textVariants };
|
package/dist/styles.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMVBCRBNGjs = require('./chunk-MVBCRBNG.js');exports.test = _chunkMVBCRBNGjs.a; exports.textVariants = _chunkMVBCRBNGjs.b;
|
package/dist/text-config.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import './styles.js';
|
|
2
|
-
import { Text } from './text.js';
|
|
3
|
-
import * as react from 'react';
|
|
4
|
-
import { GlobalConfigProps } from '@jamsrui/core';
|
|
5
|
-
import 'tailwind-variants';
|
|
6
|
-
import '@jamsrui/utils';
|
|
7
|
-
|
|
8
|
-
declare const useTextConfig: () => TextConfig.Props;
|
|
9
|
-
declare const TextConfig: (props: TextConfig.Props & {
|
|
10
|
-
merge?: boolean;
|
|
11
|
-
}) => react.JSX.Element;
|
|
12
|
-
declare namespace TextConfig {
|
|
13
|
-
interface Props extends Text.Props, GlobalConfigProps<Text.Props> {
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { TextConfig, useTextConfig };
|
package/dist/text-config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkAMJT2LG4js = require('./chunk-AMJT2LG4.js');exports.TextConfig = _chunkAMJT2LG4js.a; exports.useTextConfig = _chunkAMJT2LG4js.b;
|
package/dist/text.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
import { TextVariants } from './styles.js';
|
|
4
|
-
import 'tailwind-variants';
|
|
5
|
-
|
|
6
|
-
declare const Text: (props: Text.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
7
|
-
declare namespace Text {
|
|
8
|
-
interface Props extends UIProps<"p">, TextVariants {
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { Text };
|
package/dist/text.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZUAPYDPIjs = require('./chunk-ZUAPYDPI.js');require('./chunk-MVBCRBNG.js');require('./chunk-AMJT2LG4.js');exports.Text = _chunkZUAPYDPIjs.a;
|
package/dist/use-text.d.ts
DELETED
package/dist/use-text.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var p=e=>{};exports.useText = p;
|