@startupjs-ui/link 0.3.4 → 0.3.6
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 +16 -0
- package/index.cssx.styl +16 -2
- package/index.d.ts +0 -1
- package/index.tsx +7 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.3.6](https://github.com/startupjs/startupjs-ui/compare/v0.3.5...v0.3.6) (2026-06-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @startupjs-ui/link
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.3.5](https://github.com/startupjs/startupjs-ui/compare/v0.3.4...v0.3.5) (2026-06-19)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @startupjs-ui/link
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.3.4](https://github.com/startupjs/startupjs-ui/compare/v0.3.3...v0.3.4) (2026-06-18)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @startupjs-ui/link
|
package/index.cssx.styl
CHANGED
|
@@ -1,12 +1,26 @@
|
|
|
1
|
+
// ----- CONFIG: $UI.Link
|
|
2
|
+
|
|
3
|
+
$this = merge({
|
|
4
|
+
color: 'default',
|
|
5
|
+
textDecorationColor: null
|
|
6
|
+
}, $UI.Link, true)
|
|
7
|
+
|
|
8
|
+
// ----- COMPONENT
|
|
9
|
+
|
|
1
10
|
.root
|
|
2
11
|
color: var(--color-text-secondary)
|
|
3
12
|
text-decoration-line underline
|
|
4
|
-
text-decoration-color @color
|
|
13
|
+
text-decoration-color: $this.textDecorationColor ? $this.textDecorationColor : @color
|
|
5
14
|
|
|
6
15
|
&.primary
|
|
7
16
|
color var(--color-text-primary)
|
|
8
|
-
text-decoration-color @color
|
|
17
|
+
text-decoration-color: $this.textDecorationColor ? $this.textDecorationColor : @color
|
|
9
18
|
|
|
10
19
|
&.block
|
|
11
20
|
display flex
|
|
12
21
|
text-decoration none
|
|
22
|
+
|
|
23
|
+
// ----- JS EXPORTS
|
|
24
|
+
|
|
25
|
+
:export
|
|
26
|
+
config: $this
|
package/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
import { type ReactNode } from 'react';
|
|
5
5
|
import { type StyleProp, type TextStyle, type ViewStyle } from 'react-native';
|
|
6
6
|
import { type DivProps } from '@startupjs-ui/div';
|
|
7
|
-
import './index.cssx.styl';
|
|
8
7
|
declare const _default: import("react").ComponentType<LinkProps>;
|
|
9
8
|
export default _default;
|
|
10
9
|
export declare const _PropsJsonSchema: {};
|
package/index.tsx
CHANGED
|
@@ -6,10 +6,15 @@ import { themed } from '@startupjs-ui/core'
|
|
|
6
6
|
import Button from '@startupjs-ui/button'
|
|
7
7
|
import Div, { type DivProps } from '@startupjs-ui/div'
|
|
8
8
|
import Span from '@startupjs-ui/span'
|
|
9
|
-
import './index.cssx.styl'
|
|
9
|
+
import STYLES from './index.cssx.styl'
|
|
10
10
|
|
|
11
11
|
const isWeb = Platform.OS === 'web'
|
|
12
12
|
const EXTERNAL_LINK_REGEXP = /^(https?:\/\/|\/\/|mailto:)/i
|
|
13
|
+
const {
|
|
14
|
+
config: {
|
|
15
|
+
color: defaultColor
|
|
16
|
+
}
|
|
17
|
+
} = STYLES
|
|
13
18
|
|
|
14
19
|
export default observer(themed('Link', Link))
|
|
15
20
|
|
|
@@ -45,7 +50,7 @@ function Link ({
|
|
|
45
50
|
style,
|
|
46
51
|
to,
|
|
47
52
|
href,
|
|
48
|
-
color =
|
|
53
|
+
color = defaultColor,
|
|
49
54
|
theme,
|
|
50
55
|
display,
|
|
51
56
|
push,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs-ui/link",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"types": "index.d.ts",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@startupjs-ui/button": "^0.3.
|
|
11
|
+
"@startupjs-ui/button": "^0.3.5",
|
|
12
12
|
"@startupjs-ui/core": "^0.3.0",
|
|
13
13
|
"@startupjs-ui/div": "^0.3.4",
|
|
14
14
|
"@startupjs-ui/span": "^0.3.4"
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"react-native": "*",
|
|
19
19
|
"startupjs": "*"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "97eb49aeff8423d10ff280e2a809e352961bc0f2"
|
|
22
22
|
}
|