@startupjs-ui/link 0.3.5 → 0.3.7

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 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.7](https://github.com/startupjs/startupjs-ui/compare/v0.3.6...v0.3.7) (2026-06-20)
7
+
8
+ **Note:** Version bump only for package @startupjs-ui/link
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.3.6](https://github.com/startupjs/startupjs-ui/compare/v0.3.5...v0.3.6) (2026-06-19)
15
+
16
+ **Note:** Version bump only for package @startupjs-ui/link
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.3.5](https://github.com/startupjs/startupjs-ui/compare/v0.3.4...v0.3.5) (2026-06-19)
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 = 'default',
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.5",
3
+ "version": "0.3.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -8,9 +8,9 @@
8
8
  "types": "index.d.ts",
9
9
  "type": "module",
10
10
  "dependencies": {
11
- "@startupjs-ui/button": "^0.3.5",
11
+ "@startupjs-ui/button": "^0.3.7",
12
12
  "@startupjs-ui/core": "^0.3.0",
13
- "@startupjs-ui/div": "^0.3.4",
13
+ "@startupjs-ui/div": "^0.3.7",
14
14
  "@startupjs-ui/span": "^0.3.4"
15
15
  },
16
16
  "peerDependencies": {
@@ -18,5 +18,5 @@
18
18
  "react-native": "*",
19
19
  "startupjs": "*"
20
20
  },
21
- "gitHead": "8fc799070c16fb24de4ad0dbd6054108fe342d7c"
21
+ "gitHead": "a8bf45fdf47b12f25a690d9b9286fe1747edd5e9"
22
22
  }