@jamsrui/text 0.0.7 → 0.0.9
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.d.mts +0 -1
- package/dist/styles.d.mts +4 -5
- package/dist/styles.mjs +1 -1
- package/dist/text-config.d.mts +2 -2
- package/dist/text.d.mts +0 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
package/dist/styles.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _jamsrui_utils from '@jamsrui/utils';
|
|
2
2
|
import { VariantProps } from '@jamsrui/utils';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
5
|
-
declare const textVariants: tailwind_variants.TVReturnType<{
|
|
4
|
+
declare const textVariants: _jamsrui_utils.TVReturnType<{
|
|
6
5
|
variant: {
|
|
7
6
|
h1: string;
|
|
8
7
|
h2: string;
|
|
@@ -52,7 +51,7 @@ declare const textVariants: tailwind_variants.TVReturnType<{
|
|
|
52
51
|
none: string;
|
|
53
52
|
md: string;
|
|
54
53
|
};
|
|
55
|
-
}, undefined,
|
|
54
|
+
}, undefined, _jamsrui_utils.TVReturnType<{
|
|
56
55
|
variant: {
|
|
57
56
|
h1: string;
|
|
58
57
|
h2: string;
|
|
@@ -80,4 +79,4 @@ declare const textVariants: tailwind_variants.TVReturnType<{
|
|
|
80
79
|
}, undefined, "transition-colors", unknown, unknown, undefined>>;
|
|
81
80
|
type TextVariants = VariantProps<typeof textVariants>;
|
|
82
81
|
|
|
83
|
-
export { type TextVariants,
|
|
82
|
+
export { type TextVariants, textVariants };
|
package/dist/styles.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tv as t}from"@jamsrui/utils";const e=
|
|
1
|
+
import{tv as t}from"@jamsrui/utils";const e=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 textVariants};
|
package/dist/text-config.d.mts
CHANGED
|
@@ -2,13 +2,13 @@ import './styles.mjs';
|
|
|
2
2
|
import { Text } from './text.mjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { GlobalConfigProps } from '@jamsrui/core';
|
|
5
|
-
import 'tailwind-variants';
|
|
6
5
|
import '@jamsrui/utils';
|
|
7
6
|
import 'react';
|
|
8
7
|
|
|
9
8
|
declare const useTextConfig: () => TextConfig.Props;
|
|
10
|
-
declare const TextConfig: (props: TextConfig.Props & {
|
|
9
|
+
declare const TextConfig: (props: Omit<Partial<TextConfig.Props>, "children"> & {
|
|
11
10
|
merge?: boolean;
|
|
11
|
+
children: React.ReactNode;
|
|
12
12
|
}) => react_jsx_runtime.JSX.Element;
|
|
13
13
|
declare namespace TextConfig {
|
|
14
14
|
interface Props extends Text.Props, GlobalConfigProps<Text.Props> {
|
package/dist/text.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { UIProps } from '@jamsrui/utils';
|
|
3
3
|
import { TextVariants } from './styles.mjs';
|
|
4
|
-
import 'tailwind-variants';
|
|
5
4
|
|
|
6
5
|
declare const Text: (props: Text.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
7
6
|
declare namespace Text {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/text",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"tailwind-variants": "^1.0.0",
|
|
9
|
-
"@jamsrui/hooks": "^0.0.
|
|
10
|
-
"@jamsrui/utils": "^0.0.
|
|
11
|
-
"@jamsrui/core": "^0.0.
|
|
9
|
+
"@jamsrui/hooks": "^0.0.9",
|
|
10
|
+
"@jamsrui/utils": "^0.0.9",
|
|
11
|
+
"@jamsrui/core": "^0.0.8"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|