@dt-dds/react-link 1.0.0-beta.21 → 1.0.0-beta.22
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/CHANGELOG.md +11 -0
- package/dist/index.d.mts +28 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @dt-ui/react-link
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- chore(dependencies): upgrade builders versions
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @dt-dds/react-button@1.0.0-beta.45
|
|
10
|
+
- @dt-dds/react-core@1.0.0-beta.45
|
|
11
|
+
- @dt-dds/react-icon@1.0.0-beta.46
|
|
12
|
+
- @dt-dds/themes@1.0.0-beta.5
|
|
13
|
+
|
|
3
14
|
## 1.0.0-beta.21
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CustomTheme } from '@dt-dds/themes';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { Code } from '@dt-dds/icons';
|
|
4
|
+
import { BaseProps } from '@dt-dds/react-core';
|
|
5
|
+
import { IconProps } from '@dt-dds/react-icon';
|
|
6
|
+
|
|
7
|
+
interface LinkProps extends BaseProps, React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
onClick?: (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
10
|
+
size?: LinkSize;
|
|
11
|
+
color?: LinkColor;
|
|
12
|
+
icon?: Code;
|
|
13
|
+
variant?: LinkVariant;
|
|
14
|
+
}
|
|
15
|
+
declare const Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
16
|
+
|
|
17
|
+
type LinkColor = 'accent' | 'secondary';
|
|
18
|
+
type LinkSize = 'small' | 'medium' | 'large';
|
|
19
|
+
type LinkVariant = 'standalone' | 'inline';
|
|
20
|
+
|
|
21
|
+
declare const iconSize: Record<LinkSize, IconProps['size']>;
|
|
22
|
+
|
|
23
|
+
declare module '@emotion/react' {
|
|
24
|
+
interface Theme extends CustomTheme {
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { Link, type LinkColor, type LinkProps, type LinkSize, type LinkVariant, iconSize };
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -57,12 +57,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
57
57
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
58
|
|
|
59
59
|
// index.ts
|
|
60
|
-
var
|
|
61
|
-
__export(
|
|
60
|
+
var index_exports = {};
|
|
61
|
+
__export(index_exports, {
|
|
62
62
|
Link: () => Link,
|
|
63
63
|
iconSize: () => iconSize
|
|
64
64
|
});
|
|
65
|
-
module.exports = __toCommonJS(
|
|
65
|
+
module.exports = __toCommonJS(index_exports);
|
|
66
66
|
|
|
67
67
|
// src/Link.tsx
|
|
68
68
|
var import_react_icon = require("@dt-dds/react-icon");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dt-dds/react-link",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.22",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js"
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@dt-dds/icons": "1.0.0-beta.4",
|
|
24
|
-
"@dt-dds/react-button": "1.0.0-beta.
|
|
25
|
-
"@dt-dds/react-core": "1.0.0-beta.
|
|
26
|
-
"@dt-dds/react-icon": "1.0.0-beta.
|
|
27
|
-
"@dt-dds/themes": "1.0.0-beta.
|
|
24
|
+
"@dt-dds/react-button": "1.0.0-beta.45",
|
|
25
|
+
"@dt-dds/react-core": "1.0.0-beta.45",
|
|
26
|
+
"@dt-dds/react-icon": "1.0.0-beta.46",
|
|
27
|
+
"@dt-dds/themes": "1.0.0-beta.5"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@babel/core": "^7.22.9",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"react": "^18.1.0",
|
|
46
46
|
"react-dom": "^18.2.0",
|
|
47
47
|
"tsconfig": "*",
|
|
48
|
-
"tsup": "^
|
|
48
|
+
"tsup": "^8.5.0",
|
|
49
49
|
"typescript": "^4.5.3"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|