@jamsrui/link 0.0.2 → 0.0.4

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{a as o}from"./chunk-PRUQ6DJT.mjs";import{a as i,b as n}from"./chunk-KDN2W7WQ.mjs";import"./chunk-END2MMQR.mjs";import"./chunk-2N3V5SOC.mjs";export{o as Link,i as LinkConfig,n as useLinkConfig};
1
+ "use client";import{Link as o}from"./link";import{LinkConfig as f,useLinkConfig as r}from"./link-config";export{o as Link,f as LinkConfig,r as useLinkConfig};
@@ -1 +1 @@
1
- import{a,b}from"./chunk-KDN2W7WQ.mjs";export{a as LinkConfig,b as useLinkConfig};
1
+ import{createConfigContext as o}from"@jamsrui/utils";const[n,r]=o({displayName:"LinkConfig"});export{n as LinkConfig,r as useLinkConfig};
package/dist/link.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-PRUQ6DJT.mjs";import"./chunk-KDN2W7WQ.mjs";import"./chunk-END2MMQR.mjs";import"./chunk-2N3V5SOC.mjs";export{a as Link};
1
+ import{useRenderElement as s}from"@jamsrui/hooks";import{mergeConfigProps as p}from"@jamsrui/utils";import{useLinkConfig as i}from"./link-config";import{useLink as m}from"./use-link";const P=o=>{const e=i(),r=p(e,e,o),n=m(r),{getRootProps:t}=n;return s("a",{props:[t({})]})};export{P as Link};
package/dist/styles.mjs CHANGED
@@ -1 +1 @@
1
- import{a,b}from"./chunk-2N3V5SOC.mjs";export{b as linkVariants,a as test};
1
+ import{textVariants as e}from"@jamsrui/text";import{focusVisibleClasses as r,tv as n}from"@jamsrui/utils";const i="",s=n({extend:e,base:["cursor-pointer select-none text-foreground-link hover:text-foreground-link/80",r],variants:{underline:{hover:"hover:underline hover:underline-offset-4",never:"",always:"underline underline-offset-4 transition-all hover:underline-offset-2"}},defaultVariants:{underline:"hover"}});export{s as linkVariants,i as test};
package/dist/use-link.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-END2MMQR.mjs";import"./chunk-2N3V5SOC.mjs";export{a as useLink};
1
+ import{useCallback as n,useMemo as p}from"react";import{cn as i,dataAttrDev as m,mapPropsVariants as c}from"@jamsrui/utils";import{linkVariants as s}from"./styles";const u=e=>{const[r,a]=c(e,s.variantKeys),t=s(a),o=n(()=>({...r,"data-component":m("link"),className:i(t,r.className)}),[r,t]);return p(()=>({getRootProps:o}),[o])};export{u as useLink};
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@jamsrui/link",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "peerDependencies": {
5
5
  "react": ">=19"
6
6
  },
7
7
  "dependencies": {
8
- "@jamsrui/hooks": "^0.0.2",
9
- "@jamsrui/text": "^0.0.2",
10
- "@jamsrui/core": "^0.0.2",
11
- "@jamsrui/utils": "^0.0.2"
8
+ "@jamsrui/hooks": "^0.0.4",
9
+ "@jamsrui/core": "^0.0.4",
10
+ "@jamsrui/text": "^0.0.4",
11
+ "@jamsrui/utils": "^0.0.4"
12
12
  },
13
13
  "exports": {
14
14
  ".": {
@@ -1 +0,0 @@
1
- import{textVariants as e}from"@jamsrui/text";import{focusVisibleClasses as r,tv as n}from"@jamsrui/utils";var i="",s=n({extend:e,base:["cursor-pointer select-none text-foreground-link hover:text-foreground-link/80",r],variants:{underline:{hover:"hover:underline hover:underline-offset-4",never:"",always:"underline underline-offset-4 transition-all hover:underline-offset-2"}},defaultVariants:{underline:"hover"}});export{i as a,s as b};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLUFDS2KFjs = require('./chunk-LUFDS2KF.js');var _react = require('react');var _utils = require('@jamsrui/utils');var u=e=>{let[r,a]=_utils.mapPropsVariants.call(void 0, e,_chunkLUFDS2KFjs.b.variantKeys),o=_chunkLUFDS2KFjs.b.call(void 0, a),s=_react.useCallback.call(void 0, ()=>({...r,"data-component":_utils.dataAttrDev.call(void 0, "link"),className:_utils.cn.call(void 0, o,r.className)}),[r,o]);return _react.useMemo.call(void 0, ()=>({getRootProps:s}),[s])};exports.a = u;
@@ -1 +0,0 @@
1
- import{b as t}from"./chunk-2N3V5SOC.mjs";import{useCallback as n,useMemo as p}from"react";import{cn as i,dataAttrDev as m,mapPropsVariants as c}from"@jamsrui/utils";var u=e=>{let[r,a]=c(e,t.variantKeys),o=t(a),s=n(()=>({...r,"data-component":m("link"),className:i(o,r.className)}),[r,o]);return p(()=>({getRootProps:s}),[s])};export{u as a};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _utils = require('@jamsrui/utils');var[n,r]=_utils.createConfigContext.call(void 0, {displayName:"LinkConfig"});exports.a = n; exports.b = r;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFTQ3X4OOjs = require('./chunk-FTQ3X4OO.js');var _chunkCWTYNYK5js = require('./chunk-CWTYNYK5.js');var _hooks = require('@jamsrui/hooks');var _utils = require('@jamsrui/utils');var P=n=>{let e=_chunkFTQ3X4OOjs.b.call(void 0, ),t=_utils.mergeConfigProps.call(void 0, e,e,n),s=_chunkCWTYNYK5js.a.call(void 0, t),{getRootProps:p}=s;return _hooks.useRenderElement.call(void 0, "a",{props:[p({})]})};exports.a = P;
@@ -1 +0,0 @@
1
- import{createConfigContext as o}from"@jamsrui/utils";var[n,r]=o({displayName:"LinkConfig"});export{n as a,r as b};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _text = require('@jamsrui/text');var _utils = require('@jamsrui/utils');var i="",s= exports.b =_utils.tv.call(void 0, {extend:_text.textVariants,base:["cursor-pointer select-none text-foreground-link hover:text-foreground-link/80",_utils.focusVisibleClasses],variants:{underline:{hover:"hover:underline hover:underline-offset-4",never:"",always:"underline underline-offset-4 transition-all hover:underline-offset-2"}},defaultVariants:{underline:"hover"}});exports.a = i; exports.b = s;
@@ -1 +0,0 @@
1
- import{b as o}from"./chunk-KDN2W7WQ.mjs";import{a as r}from"./chunk-END2MMQR.mjs";import{useRenderElement as i}from"@jamsrui/hooks";import{mergeConfigProps as m}from"@jamsrui/utils";var P=n=>{let e=o(),t=m(e,e,n),s=r(t),{getRootProps:p}=s;return i("a",{props:[p({})]})};export{P as a};
package/dist/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export { L as Link } from './link-D14SDFoC.js';
2
- export { LinkConfig, useLinkConfig } from './link-config.js';
3
- import 'react';
4
- import '@jamsrui/utils';
5
- import './styles.js';
6
- import 'tailwind-variants';
7
- import '@jamsrui/core';
package/dist/index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkIG76W6PGjs = require('./chunk-IG76W6PG.js');var _chunkFTQ3X4OOjs = require('./chunk-FTQ3X4OO.js');require('./chunk-CWTYNYK5.js');require('./chunk-LUFDS2KF.js');exports.Link = _chunkIG76W6PGjs.a; exports.LinkConfig = _chunkFTQ3X4OOjs.a; exports.useLinkConfig = _chunkFTQ3X4OOjs.b;
@@ -1,19 +0,0 @@
1
- import * as react from 'react';
2
- import { PropGetter, UIProps } from '@jamsrui/utils';
3
- import { LinkVariants } from './styles.js';
4
-
5
- declare const useLink: (props: useLink.Props) => {
6
- getRootProps: PropGetter<Link.Props>;
7
- };
8
- declare namespace useLink {
9
- interface Props extends UIProps<"a">, LinkVariants {
10
- }
11
- }
12
-
13
- declare const Link: (props: Link.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
14
- declare namespace Link {
15
- interface Props extends useLink.Props {
16
- }
17
- }
18
-
19
- export { Link as L, useLink as u };
@@ -1,21 +0,0 @@
1
- import { L as Link } from './link-D14SDFoC.js';
2
- import * as react from 'react';
3
- import { GlobalConfigProps } from '@jamsrui/core';
4
- import '@jamsrui/utils';
5
- import './styles.js';
6
- import 'tailwind-variants';
7
-
8
- declare const useLinkConfig: () => {
9
- children?: React.ReactNode;
10
- };
11
- declare const LinkConfig: (props: {
12
- children?: React.ReactNode;
13
- } & {
14
- merge?: boolean;
15
- }) => react.JSX.Element;
16
- declare namespace LinkConfig {
17
- interface Props extends Link.Props, GlobalConfigProps<Link.Props> {
18
- }
19
- }
20
-
21
- export { LinkConfig, useLinkConfig };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFTQ3X4OOjs = require('./chunk-FTQ3X4OO.js');exports.LinkConfig = _chunkFTQ3X4OOjs.a; exports.useLinkConfig = _chunkFTQ3X4OOjs.b;
package/dist/link.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import 'react';
2
- export { L as Link } from './link-D14SDFoC.js';
3
- import '@jamsrui/utils';
4
- import './styles.js';
5
- import 'tailwind-variants';
package/dist/link.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIG76W6PGjs = require('./chunk-IG76W6PG.js');require('./chunk-FTQ3X4OO.js');require('./chunk-CWTYNYK5.js');require('./chunk-LUFDS2KF.js');exports.Link = _chunkIG76W6PGjs.a;
package/dist/styles.d.ts DELETED
@@ -1,114 +0,0 @@
1
- import * as tailwind_variants from 'tailwind-variants';
2
- import { VariantProps } from '@jamsrui/utils';
3
-
4
- declare const test = "";
5
- declare const linkVariants: tailwind_variants.TVReturnType<{
6
- underline: {
7
- hover: string;
8
- never: string;
9
- always: string;
10
- };
11
- }, undefined, (string | string[])[], {
12
- variant: {
13
- h1: string;
14
- h2: string;
15
- h3: string;
16
- h4: string;
17
- h5: string;
18
- h6: string;
19
- lead: string;
20
- caption: string;
21
- paragraph2: string;
22
- paragraph: string;
23
- body1: string;
24
- body2: string;
25
- body3: string;
26
- body4: string;
27
- body5: string;
28
- body6: string;
29
- body7: string;
30
- inherit: string;
31
- };
32
- leading: {
33
- none: string;
34
- md: string;
35
- };
36
- }, undefined, tailwind_variants.TVReturnType<{
37
- variant: {
38
- h1: string;
39
- h2: string;
40
- h3: string;
41
- h4: string;
42
- h5: string;
43
- h6: string;
44
- lead: string;
45
- caption: string;
46
- paragraph2: string;
47
- paragraph: string;
48
- body1: string;
49
- body2: string;
50
- body3: string;
51
- body4: string;
52
- body5: string;
53
- body6: string;
54
- body7: string;
55
- inherit: string;
56
- };
57
- leading: {
58
- none: string;
59
- md: string;
60
- };
61
- }, undefined, "transition-colors", {
62
- variant: {
63
- h1: string;
64
- h2: string;
65
- h3: string;
66
- h4: string;
67
- h5: string;
68
- h6: string;
69
- lead: string;
70
- caption: string;
71
- paragraph2: string;
72
- paragraph: string;
73
- body1: string;
74
- body2: string;
75
- body3: string;
76
- body4: string;
77
- body5: string;
78
- body6: string;
79
- body7: string;
80
- inherit: string;
81
- };
82
- leading: {
83
- none: string;
84
- md: string;
85
- };
86
- }, undefined, tailwind_variants.TVReturnType<{
87
- variant: {
88
- h1: string;
89
- h2: string;
90
- h3: string;
91
- h4: string;
92
- h5: string;
93
- h6: string;
94
- lead: string;
95
- caption: string;
96
- paragraph2: string;
97
- paragraph: string;
98
- body1: string;
99
- body2: string;
100
- body3: string;
101
- body4: string;
102
- body5: string;
103
- body6: string;
104
- body7: string;
105
- inherit: string;
106
- };
107
- leading: {
108
- none: string;
109
- md: string;
110
- };
111
- }, undefined, "transition-colors", unknown, unknown, undefined>>>;
112
- type LinkVariants = VariantProps<typeof linkVariants>;
113
-
114
- export { type LinkVariants, linkVariants, test };
package/dist/styles.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLUFDS2KFjs = require('./chunk-LUFDS2KF.js');exports.linkVariants = _chunkLUFDS2KFjs.b; exports.test = _chunkLUFDS2KFjs.a;
@@ -1,5 +0,0 @@
1
- import '@jamsrui/utils';
2
- export { u as useLink } from './link-D14SDFoC.js';
3
- import './styles.js';
4
- import 'react';
5
- import 'tailwind-variants';
package/dist/use-link.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkCWTYNYK5js = require('./chunk-CWTYNYK5.js');require('./chunk-LUFDS2KF.js');exports.useLink = _chunkCWTYNYK5js.a;