@yamada-ui/breadcrumb 0.3.16 → 0.3.18

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.
@@ -13,15 +13,15 @@ type BreadcrumbOptions = {
13
13
  *
14
14
  * @default 'sm'
15
15
  */
16
- gap?: CSSUIProps['mx'];
16
+ gap?: CSSUIProps["mx"];
17
17
  /**
18
18
  * Props for ol element.
19
19
  */
20
- listProps?: HTMLUIProps<'ol'>;
20
+ listProps?: HTMLUIProps<"ol">;
21
21
  };
22
- type BreadcrumbProps = Omit<HTMLUIProps<'nav'>, 'gap'> & ThemeProps<'Breadcrumb'> & BreadcrumbOptions;
22
+ type BreadcrumbProps = Omit<HTMLUIProps<"nav">, "gap"> & ThemeProps<"Breadcrumb"> & BreadcrumbOptions;
23
23
  declare const Breadcrumb: _yamada_ui_core.Component<"nav", BreadcrumbProps>;
24
- type BreadcrumbItemOptions = Pick<BreadcrumbProps, 'separator' | 'gap'> & {
24
+ type BreadcrumbItemOptions = Pick<BreadcrumbProps, "separator" | "gap"> & {
25
25
  /**
26
26
  * If `true`, change to span element.
27
27
  *
@@ -35,7 +35,7 @@ type BreadcrumbItemOptions = Pick<BreadcrumbProps, 'separator' | 'gap'> & {
35
35
  */
36
36
  isLastChild?: boolean;
37
37
  };
38
- type BreadcrumbItemProps = HTMLUIProps<'li'> & BreadcrumbItemOptions;
38
+ type BreadcrumbItemProps = HTMLUIProps<"li"> & BreadcrumbItemOptions;
39
39
  declare const BreadcrumbItem: _yamada_ui_core.Component<"li", BreadcrumbItemOptions>;
40
40
  type BreadcrumbLinkOptions = {
41
41
  /**
@@ -45,15 +45,15 @@ type BreadcrumbLinkOptions = {
45
45
  */
46
46
  isCurrentPage?: boolean;
47
47
  };
48
- type BreadcrumbLinkProps = HTMLUIProps<'a'> & BreadcrumbLinkOptions;
48
+ type BreadcrumbLinkProps = HTMLUIProps<"a"> & BreadcrumbLinkOptions;
49
49
  declare const BreadcrumbLink: _yamada_ui_core.Component<"a", BreadcrumbLinkProps>;
50
50
  type BreadcrumbSeparatorOptions = {
51
51
  /**
52
52
  * The CSS `margin-inline-start`, and `margin-inline-end` property.
53
53
  */
54
- gap?: CSSUIObject['mx'];
54
+ gap?: CSSUIObject["mx"];
55
55
  };
56
- type BreadcrumbSeparatorProps = HTMLUIProps<'span'> & BreadcrumbSeparatorOptions;
56
+ type BreadcrumbSeparatorProps = HTMLUIProps<"span"> & BreadcrumbSeparatorOptions;
57
57
  declare const BreadcrumbSeparator: _yamada_ui_core.Component<"span", BreadcrumbSeparatorProps>;
58
58
 
59
59
  export { Breadcrumb, BreadcrumbItem, BreadcrumbItemProps, BreadcrumbLink, BreadcrumbLinkProps, BreadcrumbProps, BreadcrumbSeparator, BreadcrumbSeparatorProps };
@@ -13,15 +13,15 @@ type BreadcrumbOptions = {
13
13
  *
14
14
  * @default 'sm'
15
15
  */
16
- gap?: CSSUIProps['mx'];
16
+ gap?: CSSUIProps["mx"];
17
17
  /**
18
18
  * Props for ol element.
19
19
  */
20
- listProps?: HTMLUIProps<'ol'>;
20
+ listProps?: HTMLUIProps<"ol">;
21
21
  };
22
- type BreadcrumbProps = Omit<HTMLUIProps<'nav'>, 'gap'> & ThemeProps<'Breadcrumb'> & BreadcrumbOptions;
22
+ type BreadcrumbProps = Omit<HTMLUIProps<"nav">, "gap"> & ThemeProps<"Breadcrumb"> & BreadcrumbOptions;
23
23
  declare const Breadcrumb: _yamada_ui_core.Component<"nav", BreadcrumbProps>;
24
- type BreadcrumbItemOptions = Pick<BreadcrumbProps, 'separator' | 'gap'> & {
24
+ type BreadcrumbItemOptions = Pick<BreadcrumbProps, "separator" | "gap"> & {
25
25
  /**
26
26
  * If `true`, change to span element.
27
27
  *
@@ -35,7 +35,7 @@ type BreadcrumbItemOptions = Pick<BreadcrumbProps, 'separator' | 'gap'> & {
35
35
  */
36
36
  isLastChild?: boolean;
37
37
  };
38
- type BreadcrumbItemProps = HTMLUIProps<'li'> & BreadcrumbItemOptions;
38
+ type BreadcrumbItemProps = HTMLUIProps<"li"> & BreadcrumbItemOptions;
39
39
  declare const BreadcrumbItem: _yamada_ui_core.Component<"li", BreadcrumbItemOptions>;
40
40
  type BreadcrumbLinkOptions = {
41
41
  /**
@@ -45,15 +45,15 @@ type BreadcrumbLinkOptions = {
45
45
  */
46
46
  isCurrentPage?: boolean;
47
47
  };
48
- type BreadcrumbLinkProps = HTMLUIProps<'a'> & BreadcrumbLinkOptions;
48
+ type BreadcrumbLinkProps = HTMLUIProps<"a"> & BreadcrumbLinkOptions;
49
49
  declare const BreadcrumbLink: _yamada_ui_core.Component<"a", BreadcrumbLinkProps>;
50
50
  type BreadcrumbSeparatorOptions = {
51
51
  /**
52
52
  * The CSS `margin-inline-start`, and `margin-inline-end` property.
53
53
  */
54
- gap?: CSSUIObject['mx'];
54
+ gap?: CSSUIObject["mx"];
55
55
  };
56
- type BreadcrumbSeparatorProps = HTMLUIProps<'span'> & BreadcrumbSeparatorOptions;
56
+ type BreadcrumbSeparatorProps = HTMLUIProps<"span"> & BreadcrumbSeparatorOptions;
57
57
  declare const BreadcrumbSeparator: _yamada_ui_core.Component<"span", BreadcrumbSeparatorProps>;
58
58
 
59
59
  export { Breadcrumb, BreadcrumbItem, BreadcrumbItemProps, BreadcrumbLink, BreadcrumbLinkProps, BreadcrumbProps, BreadcrumbSeparator, BreadcrumbSeparatorProps };
@@ -117,13 +117,14 @@ var BreadcrumbItem = (0, import_core.forwardRef)(
117
117
  }
118
118
  );
119
119
  var BreadcrumbLink = (0, import_core.forwardRef)(
120
- ({ className, children, isCurrentPage, ...rest }, ref) => {
120
+ ({ className, children, isCurrentPage, href, ...rest }, ref) => {
121
121
  const styles = useBreadcrumb();
122
122
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
123
123
  import_core.ui.a,
124
124
  {
125
125
  ref,
126
126
  as: !isCurrentPage ? "a" : "span",
127
+ href: !isCurrentPage ? href : void 0,
127
128
  "aria-current": isCurrentPage ? "page" : void 0,
128
129
  className: (0, import_utils.cx)("ui-breadcrumb__link", className),
129
130
  __css: styles.link,
@@ -4,7 +4,7 @@ import {
4
4
  BreadcrumbItem,
5
5
  BreadcrumbLink,
6
6
  BreadcrumbSeparator
7
- } from "./chunk-JTXYQRTQ.mjs";
7
+ } from "./chunk-WFL7NZBC.mjs";
8
8
  export {
9
9
  Breadcrumb,
10
10
  BreadcrumbItem,
@@ -96,13 +96,14 @@ var BreadcrumbItem = forwardRef(
96
96
  }
97
97
  );
98
98
  var BreadcrumbLink = forwardRef(
99
- ({ className, children, isCurrentPage, ...rest }, ref) => {
99
+ ({ className, children, isCurrentPage, href, ...rest }, ref) => {
100
100
  const styles = useBreadcrumb();
101
101
  return /* @__PURE__ */ jsx(
102
102
  ui.a,
103
103
  {
104
104
  ref,
105
105
  as: !isCurrentPage ? "a" : "span",
106
+ href: !isCurrentPage ? href : void 0,
106
107
  "aria-current": isCurrentPage ? "page" : void 0,
107
108
  className: cx("ui-breadcrumb__link", className),
108
109
  __css: styles.link,
package/dist/index.js CHANGED
@@ -119,13 +119,14 @@ var BreadcrumbItem = (0, import_core.forwardRef)(
119
119
  }
120
120
  );
121
121
  var BreadcrumbLink = (0, import_core.forwardRef)(
122
- ({ className, children, isCurrentPage, ...rest }, ref) => {
122
+ ({ className, children, isCurrentPage, href, ...rest }, ref) => {
123
123
  const styles = useBreadcrumb();
124
124
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
125
125
  import_core.ui.a,
126
126
  {
127
127
  ref,
128
128
  as: !isCurrentPage ? "a" : "span",
129
+ href: !isCurrentPage ? href : void 0,
129
130
  "aria-current": isCurrentPage ? "page" : void 0,
130
131
  className: (0, import_utils.cx)("ui-breadcrumb__link", className),
131
132
  __css: styles.link,
package/dist/index.mjs CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  BreadcrumbItem,
5
5
  BreadcrumbLink,
6
6
  BreadcrumbSeparator
7
- } from "./chunk-JTXYQRTQ.mjs";
7
+ } from "./chunk-WFL7NZBC.mjs";
8
8
  export {
9
9
  Breadcrumb,
10
10
  BreadcrumbItem,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/breadcrumb",
3
- "version": "0.3.16",
3
+ "version": "0.3.18",
4
4
  "description": "Yamada UI breadcrumb component",
5
5
  "keywords": [
6
6
  "yamada",
@@ -35,7 +35,7 @@
35
35
  "url": "https://github.com/hirotomoyamada/yamada-ui/issues"
36
36
  },
37
37
  "dependencies": {
38
- "@yamada-ui/core": "0.12.5",
38
+ "@yamada-ui/core": "0.12.6",
39
39
  "@yamada-ui/utils": "0.3.3"
40
40
  },
41
41
  "devDependencies": {