@toptal/picasso-link 3.0.7-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.10 → 3.0.7-alpha-1757603192867.0
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/package.json +13 -13
- package/src/Link/Link.tsx +9 -17
- package/LICENSE +0 -20
- package/dist-package/src/Link/Link.d.ts +0 -52
- package/dist-package/src/Link/Link.d.ts.map +0 -1
- package/dist-package/src/Link/Link.js +0 -91
- package/dist-package/src/Link/Link.js.map +0 -1
- package/dist-package/src/Link/index.d.ts +0 -5
- package/dist-package/src/Link/index.d.ts.map +0 -1
- package/dist-package/src/Link/index.js +0 -2
- package/dist-package/src/Link/index.js.map +0 -1
- package/dist-package/src/index.d.ts +0 -2
- package/dist-package/src/index.d.ts.map +0 -1
- package/dist-package/src/index.js +0 -2
- package/dist-package/src/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/picasso-link",
|
|
3
|
-
"version": "3.0.7-alpha-
|
|
3
|
+
"version": "3.0.7-alpha-1757603192867.0",
|
|
4
4
|
"description": "Toptal UI components library - Link",
|
|
5
5
|
"publishConfig": {
|
|
6
|
-
"access": "public"
|
|
6
|
+
"access": "public",
|
|
7
|
+
"provenance": true
|
|
7
8
|
},
|
|
8
9
|
"main": "./dist-package/src/index.js",
|
|
9
10
|
"module": "./dist-package/src/index.js",
|
|
10
11
|
"scripts": {
|
|
11
12
|
"build:package": "tsc -b tsconfig.json",
|
|
12
|
-
"prepublishOnly": "
|
|
13
|
+
"prepublishOnly": "echo 0"
|
|
13
14
|
},
|
|
14
15
|
"repository": {
|
|
15
16
|
"type": "git",
|
|
@@ -22,31 +23,30 @@
|
|
|
22
23
|
},
|
|
23
24
|
"homepage": "https://github.com/toptal/picasso/tree/master/packages/picasso#readme",
|
|
24
25
|
"dependencies": {
|
|
25
|
-
"@toptal/picasso-
|
|
26
|
-
"@toptal/picasso-
|
|
26
|
+
"@toptal/picasso-utils": "3.1.1-alpha-1757603192867.0",
|
|
27
|
+
"@toptal/picasso-typography": "4.0.5-alpha-1757603192867.0"
|
|
27
28
|
},
|
|
28
29
|
"sideEffects": [
|
|
29
30
|
"**/styles.ts",
|
|
30
31
|
"**/styles.js"
|
|
31
32
|
],
|
|
32
33
|
"peerDependencies": {
|
|
33
|
-
"@toptal/picasso-
|
|
34
|
-
"@toptal/picasso-tailwind": "
|
|
35
|
-
"@toptal/picasso-
|
|
34
|
+
"@toptal/picasso-tailwind-merge": "2.0.4-alpha-1757603192867.0",
|
|
35
|
+
"@toptal/picasso-tailwind": "3.0.1-alpha-1757603192867.0",
|
|
36
|
+
"@toptal/picasso-provider": "5.0.2-alpha-1757603192867.0",
|
|
36
37
|
"react": ">=16.12.0 < 19.0.0"
|
|
37
38
|
},
|
|
38
39
|
"exports": {
|
|
39
40
|
".": "./dist-package/src/index.js"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
|
-
"@toptal/picasso-
|
|
43
|
-
"@toptal/picasso-
|
|
44
|
-
"@toptal/picasso-test-utils": "1.1.2-alpha-
|
|
43
|
+
"@toptal/picasso-tailwind-merge": "2.0.4-alpha-1757603192867.0",
|
|
44
|
+
"@toptal/picasso-provider": "5.0.2-alpha-1757603192867.0",
|
|
45
|
+
"@toptal/picasso-test-utils": "1.1.2-alpha-1757603192867.0"
|
|
45
46
|
},
|
|
46
47
|
"files": [
|
|
47
48
|
"dist-package/**",
|
|
48
49
|
"!dist-package/tsconfig.tsbuildinfo",
|
|
49
50
|
"src"
|
|
50
|
-
]
|
|
51
|
-
"gitHead": "7db07b500402a91f0c09da3be294305a194fd1e4"
|
|
51
|
+
]
|
|
52
52
|
}
|
package/src/Link/Link.tsx
CHANGED
|
@@ -157,23 +157,8 @@ export const calculateViewModel = (props: Props): ViewModel => {
|
|
|
157
157
|
export const Link: OverridableComponent<Props> = forwardRef<
|
|
158
158
|
HTMLAnchorElement,
|
|
159
159
|
Props
|
|
160
|
-
>(function Link(
|
|
161
|
-
|
|
162
|
-
as = 'a',
|
|
163
|
-
color = 'blue',
|
|
164
|
-
variant = 'anchor',
|
|
165
|
-
noUnderline = false,
|
|
166
|
-
...props
|
|
167
|
-
},
|
|
168
|
-
ref
|
|
169
|
-
) {
|
|
170
|
-
const viewModel = calculateViewModel({
|
|
171
|
-
...props,
|
|
172
|
-
as,
|
|
173
|
-
color,
|
|
174
|
-
variant,
|
|
175
|
-
noUnderline,
|
|
176
|
-
})
|
|
160
|
+
>(function Link(props, ref) {
|
|
161
|
+
const viewModel = calculateViewModel(props)
|
|
177
162
|
|
|
178
163
|
return (
|
|
179
164
|
<Typography
|
|
@@ -197,6 +182,13 @@ export const Link: OverridableComponent<Props> = forwardRef<
|
|
|
197
182
|
)
|
|
198
183
|
})
|
|
199
184
|
|
|
185
|
+
Link.defaultProps = {
|
|
186
|
+
as: 'a',
|
|
187
|
+
color: 'blue',
|
|
188
|
+
variant: 'anchor',
|
|
189
|
+
noUnderline: false,
|
|
190
|
+
}
|
|
191
|
+
|
|
200
192
|
Link.displayName = 'Link'
|
|
201
193
|
|
|
202
194
|
export default Link
|
package/LICENSE
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021-2022 Toptal, LLC
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
-
this software and associated documentation files (the “Software”), to deal in
|
|
7
|
-
the Software without restriction, including without limitation the rights to
|
|
8
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
-
subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { ReactNode, AnchorHTMLAttributes, ElementType } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { BaseProps, OverridableComponent } from '@toptal/picasso-shared';
|
|
4
|
-
declare const supportedColors: readonly ["white", "blue"];
|
|
5
|
-
declare const supportedVariants: readonly ["action", "anchor"];
|
|
6
|
-
declare type VariantType = (typeof supportedVariants)[number];
|
|
7
|
-
declare type ColorType = (typeof supportedColors)[number];
|
|
8
|
-
export declare type Props = BaseProps & AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
9
|
-
/** Content of the component */
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
/** Destination the link points to */
|
|
12
|
-
href?: string;
|
|
13
|
-
/** Callback invoked when component is clicked */
|
|
14
|
-
onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
15
|
-
/**
|
|
16
|
-
* The component used for the root node.
|
|
17
|
-
* Either a string to use a DOM element or a component.
|
|
18
|
-
*/
|
|
19
|
-
as?: ElementType<React.HTMLAttributes<HTMLElement>>;
|
|
20
|
-
/** Either it's a regular hyperlink or an _action_ */
|
|
21
|
-
variant?: VariantType;
|
|
22
|
-
/** Controls color of the link */
|
|
23
|
-
color?: ColorType;
|
|
24
|
-
/** Indicates the order of receiving focus. If not set will not receive focus. */
|
|
25
|
-
tabIndex?: number;
|
|
26
|
-
/** Indicates that the user cannot interact with the Link or its children */
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
visited?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* If true, underline decoration never applies
|
|
31
|
-
*/
|
|
32
|
-
noUnderline?: boolean;
|
|
33
|
-
'aria-disabled'?: boolean;
|
|
34
|
-
};
|
|
35
|
-
declare type ViewModel = {
|
|
36
|
-
className: string;
|
|
37
|
-
href?: string;
|
|
38
|
-
target?: string;
|
|
39
|
-
color?: 'inherit';
|
|
40
|
-
rel?: string;
|
|
41
|
-
onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
42
|
-
weight: 'inherit' | 'semibold';
|
|
43
|
-
style?: React.CSSProperties;
|
|
44
|
-
tabIndex?: number;
|
|
45
|
-
as: Props['as'];
|
|
46
|
-
ariaDisabled?: boolean;
|
|
47
|
-
nativeHTMLAttributes: Omit<Props, keyof BaseProps>;
|
|
48
|
-
};
|
|
49
|
-
export declare const calculateViewModel: (props: Props) => ViewModel;
|
|
50
|
-
export declare const Link: OverridableComponent<Props>;
|
|
51
|
-
export default Link;
|
|
52
|
-
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/Link/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AACzE,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAG7E,QAAA,MAAM,eAAe,4BAA6B,CAAA;AAClD,QAAA,MAAM,iBAAiB,+BAAgC,CAAA;AAEvD,aAAK,WAAW,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAA;AACrD,aAAK,SAAS,G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AAC,IAAI,CAAC,CAAA;IACf,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,oBAAoB,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,SAAS,CAAC,CAAA;CACnD,CAAA;AAGD,eAAO,MAAM,kBAAkB,UAAW,KAAK,KAAG,SAqDjD,CAAA;AAED,eAAO,MAAM,IAAI,EAAE,oBAAoB,CAAC,KAAK,CAyC3C,CAAA;AAIF,eAAe,IAAI,CAAA"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React, { forwardRef } from 'react';
|
|
13
|
-
import { twMerge } from '@toptal/picasso-tailwind-merge';
|
|
14
|
-
import { Typography } from '@toptal/picasso-typography';
|
|
15
|
-
const supportedColors = ['white', 'blue'];
|
|
16
|
-
const supportedVariants = ['action', 'anchor'];
|
|
17
|
-
const sanitizeRel = (rel, target) => {
|
|
18
|
-
if (target !== '_blank') {
|
|
19
|
-
return rel;
|
|
20
|
-
}
|
|
21
|
-
if (!rel) {
|
|
22
|
-
return 'noopener';
|
|
23
|
-
}
|
|
24
|
-
const isRelSafe = rel.includes('noreferrer') || rel.includes('noopener');
|
|
25
|
-
return isRelSafe ? rel : rel.concat(' noopener');
|
|
26
|
-
};
|
|
27
|
-
const COLOR_DISABLED_MAP = {
|
|
28
|
-
blue: {
|
|
29
|
-
action: {
|
|
30
|
-
disabled: 'text-blue-500 no-underline opacity-50 hover:!no-underline',
|
|
31
|
-
normal: 'text-blue-500 visited:text-purple-500 no-underline',
|
|
32
|
-
},
|
|
33
|
-
anchor: {
|
|
34
|
-
disabled: 'text-gray-600 underline',
|
|
35
|
-
normal: 'text-blue-500 visited:text-purple-500 no-underline',
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
white: {
|
|
39
|
-
action: {
|
|
40
|
-
disabled: 'text-gray-600',
|
|
41
|
-
normal: 'inherit',
|
|
42
|
-
},
|
|
43
|
-
anchor: {
|
|
44
|
-
disabled: 'text-gray-600 visited:text-gray-500 underline',
|
|
45
|
-
normal: 'inherit text-white visited:text-gray-500 underline',
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
const defaultColor = 'blue';
|
|
50
|
-
const defaultVariant = 'anchor';
|
|
51
|
-
/* eslint-disable complexity */
|
|
52
|
-
export const calculateViewModel = (props) => {
|
|
53
|
-
const { href, onClick, className, as = 'a', color: inputColor = 'blue', style, variant: inputVariant = 'anchor', tabIndex, target, rel, disabled, visited = false, noUnderline, 'aria-disabled': ariaDisabled } = props, nativeHTMLAttributes = __rest(props, ["href", "onClick", "className", "as", "color", "style", "variant", "tabIndex", "target", "rel", "disabled", "visited", "noUnderline", 'aria-disabled']);
|
|
54
|
-
const sanitizedRel = sanitizeRel(rel, target);
|
|
55
|
-
// When Link is used as={Link}, TypeScript can't ensure the input to the Link is compatible with its Props type.
|
|
56
|
-
const color = supportedColors.includes(inputColor) ? inputColor : defaultColor;
|
|
57
|
-
const variant = supportedVariants.includes(inputVariant)
|
|
58
|
-
? inputVariant
|
|
59
|
-
: defaultVariant;
|
|
60
|
-
return {
|
|
61
|
-
className: twMerge('focus:outline-none hover:underline leading-[inherit]', COLOR_DISABLED_MAP[color][variant][disabled ? 'disabled' : 'normal'], disabled ? 'cursor-not-allowed' : '', noUnderline ? '!no-underline' : '', visited
|
|
62
|
-
? color === 'blue'
|
|
63
|
-
? 'visited text-purple-500'
|
|
64
|
-
: 'visited text-gray-500'
|
|
65
|
-
: '', onClick || href ? 'cursor-pointer' : '', className),
|
|
66
|
-
href: disabled ? undefined : href,
|
|
67
|
-
target: disabled ? undefined : target,
|
|
68
|
-
rel: sanitizedRel,
|
|
69
|
-
onClick: disabled ? undefined : onClick,
|
|
70
|
-
weight: variant === 'action' ? 'semibold' : 'inherit',
|
|
71
|
-
color: 'inherit',
|
|
72
|
-
style,
|
|
73
|
-
tabIndex,
|
|
74
|
-
as,
|
|
75
|
-
ariaDisabled: disabled || ariaDisabled,
|
|
76
|
-
nativeHTMLAttributes,
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
export const Link = forwardRef(function Link(_a, ref) {
|
|
80
|
-
var { as = 'a', color = 'blue', variant = 'anchor', noUnderline = false } = _a, props = __rest(_a, ["as", "color", "variant", "noUnderline"]);
|
|
81
|
-
const viewModel = calculateViewModel(Object.assign(Object.assign({}, props), { as,
|
|
82
|
-
color,
|
|
83
|
-
variant,
|
|
84
|
-
noUnderline }));
|
|
85
|
-
return (React.createElement(Typography, Object.assign({}, viewModel.nativeHTMLAttributes, { ref: ref, as: viewModel.as,
|
|
86
|
-
// @ts-expect-error Typography is incompatible with href prop
|
|
87
|
-
href: viewModel.href, target: viewModel.target, rel: viewModel.rel, onClick: viewModel.onClick, color: viewModel.color, weight: viewModel.weight, className: viewModel.className, style: viewModel.style, tabIndex: viewModel.tabIndex, "aria-disabled": viewModel.ariaDisabled }), props.children));
|
|
88
|
-
});
|
|
89
|
-
Link.displayName = 'Link';
|
|
90
|
-
export default Link;
|
|
91
|
-
//# sourceMappingURL=Link.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Link.js","sourceRoot":"","sources":["../../../src/Link/Link.tsx"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE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eAAe,IAAI,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Link/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE/D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAEnC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AACxC,oBAAY,SAAS,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Link/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
|