@startupjs-ui/breadcrumbs 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/breadcrumbs
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/breadcrumbs
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/breadcrumbs
package/index.cssx.styl CHANGED
@@ -1,3 +1,13 @@
1
+ // ----- CONFIG: $UI.Breadcrumbs
2
+
3
+ $this = merge({
4
+ currentColor: 'text-secondary',
5
+ linkColor: 'text-description',
6
+ separatorColor: 'text-description'
7
+ }, $UI.Breadcrumbs, true)
8
+
9
+ // ----- COMPONENT
10
+
1
11
  _iconMargin = 0.5u
2
12
 
3
13
  .iconWrapper
@@ -51,3 +61,8 @@ _iconMargin = 0.5u
51
61
 
52
62
  &.xxl
53
63
  font(h4)
64
+
65
+ // ----- JS EXPORTS
66
+
67
+ :export
68
+ config: $this
package/index.d.ts CHANGED
@@ -3,7 +3,6 @@
3
3
 
4
4
  import React, { type ReactNode } from 'react';
5
5
  import { type StyleProp, type ViewStyle } from 'react-native';
6
- import './index.cssx.styl';
7
6
  type BreadcrumbsSize = 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
8
7
  declare const _default: React.ComponentType<BreadcrumbsProps>;
9
8
  export default _default;
package/index.tsx CHANGED
@@ -6,7 +6,15 @@ import Div from '@startupjs-ui/div'
6
6
  import Icon from '@startupjs-ui/icon'
7
7
  import Link from '@startupjs-ui/link'
8
8
  import Span from '@startupjs-ui/span'
9
- import './index.cssx.styl'
9
+ import STYLES from './index.cssx.styl'
10
+
11
+ const {
12
+ config: {
13
+ currentColor,
14
+ linkColor,
15
+ separatorColor
16
+ }
17
+ } = STYLES
10
18
 
11
19
  type BreadcrumbsSize = 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'
12
20
 
@@ -57,6 +65,10 @@ function Breadcrumbs ({
57
65
  )
58
66
  }
59
67
  const getColor = useColors()
68
+ const resolveColor = (color: string): string => getColor(color) || color
69
+ const resolvedCurrentColor = resolveColor(currentColor)
70
+ const resolvedLinkColor = resolveColor(linkColor)
71
+ const resolvedSeparatorColor = resolveColor(separatorColor)
60
72
 
61
73
  function renderItem ({
62
74
  icon,
@@ -90,16 +102,16 @@ function Breadcrumbs ({
90
102
  - const isLastRoute = index === routes.length - 1
91
103
  React.Fragment(key=index)
92
104
  if isLastRoute
93
- = renderItem({ icon, color: getColor('text-secondary'), bold: true, children: name })
105
+ = renderItem({ icon, color: resolvedCurrentColor, bold: true, children: name })
94
106
  else
95
107
  Div.item(row)
96
108
  Link(
97
109
  replace=replace
98
110
  to=to
99
111
  )
100
- = renderItem({ icon, color: getColor('text-description'), children: name })
112
+ = renderItem({ icon, color: resolvedLinkColor, children: name })
101
113
  if typeof separator === 'string'
102
- Span.separator(styleName=[size])
114
+ Span.separator(style={ color: resolvedSeparatorColor } styleName=[size])
103
115
  | &nbsp#{separator}&nbsp
104
116
  else
105
117
  = separator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs-ui/breadcrumbs",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -9,9 +9,9 @@
9
9
  "type": "module",
10
10
  "dependencies": {
11
11
  "@startupjs-ui/core": "^0.3.0",
12
- "@startupjs-ui/div": "^0.3.4",
12
+ "@startupjs-ui/div": "^0.3.7",
13
13
  "@startupjs-ui/icon": "^0.3.5",
14
- "@startupjs-ui/link": "^0.3.5",
14
+ "@startupjs-ui/link": "^0.3.7",
15
15
  "@startupjs-ui/span": "^0.3.4"
16
16
  },
17
17
  "peerDependencies": {
@@ -19,5 +19,5 @@
19
19
  "react-native": "*",
20
20
  "startupjs": "*"
21
21
  },
22
- "gitHead": "8fc799070c16fb24de4ad0dbd6054108fe342d7c"
22
+ "gitHead": "a8bf45fdf47b12f25a690d9b9286fe1747edd5e9"
23
23
  }