@grucloud/bau-ui 0.46.0 → 0.47.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.
@@ -5,7 +5,7 @@ import button from "../button/button.js";
5
5
  export default function (context, options = {}) {
6
6
  const { bau, css, config } = context;
7
7
  const { ul, li, span } = bau.tags;
8
-
8
+ const { separator = "\u3009" } = options;
9
9
  const Button = button(context);
10
10
 
11
11
  const className = css`
@@ -13,13 +13,13 @@ export default function (context, options = {}) {
13
13
  display: flex;
14
14
  align-items: center;
15
15
  padding-left: 0;
16
- margin-bottom: 0;
16
+ margin: 0;
17
17
  & li {
18
18
  display: flex;
19
19
  align-items: center;
20
20
  font-size: 0.9rem;
21
21
  &::after {
22
- content: "\u3009";
22
+ content: "${separator}";
23
23
  padding: 0.5rem;
24
24
  }
25
25
  &:last-child {
@@ -3,7 +3,6 @@ declare module "@grucloud/bau-ui/breadcrumbs" {
3
3
  type ComponentOption = import("../bau-ui").ComponentOption;
4
4
 
5
5
  export type BreadcrumbsProps = {
6
- separator?: string;
7
6
  //TODO
8
7
  items: any[];
9
8
  } & DefaultDesignProps;
@@ -12,8 +11,10 @@ declare module "@grucloud/bau-ui/breadcrumbs" {
12
11
 
13
12
  type ComponentGeneric = import("../bau-ui").ComponentGeneric;
14
13
 
14
+ const BreadcrumbsOptions = { separator: string } & ComponentOption;
15
+
15
16
  export default function (
16
17
  context: Object,
17
- options?: ComponentOption
18
+ options?: BreadcrumbsOptions
18
19
  ): Component;
19
20
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@grucloud/bau-ui",
3
3
  "description": "Components library built with Bau",
4
- "version": "0.46.0",
4
+ "version": "0.47.0",
5
5
  "type": "module",
6
6
  "license": "BSD",
7
7
  "keywords": [
@@ -20,11 +20,11 @@
20
20
  "directory": "bau-ui"
21
21
  },
22
22
  "dependencies": {
23
- "@grucloud/bau": "^0.46.0",
24
- "@grucloud/bau-css": "^0.46.0"
23
+ "@grucloud/bau": "^0.47.0",
24
+ "@grucloud/bau-css": "^0.47.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "typedoc": "0.24.8"
28
28
  },
29
- "gitHead": "3934e240bd7d71262323b515c09a51a1c7688284"
29
+ "gitHead": "1b15c26a9b0d467c1268391ffff6490fb54f3810"
30
30
  }