@yamada-ui/breadcrumb 0.3.15 → 0.3.17
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/dist/breadcrumb.d.mts +9 -9
- package/dist/breadcrumb.d.ts +9 -9
- package/package.json +3 -3
package/dist/breadcrumb.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
|
-
import { HTMLUIProps, ThemeProps, CSSUIProps } from '@yamada-ui/core';
|
|
2
|
+
import { HTMLUIProps, ThemeProps, CSSUIProps, CSSUIObject } from '@yamada-ui/core';
|
|
3
3
|
|
|
4
4
|
type BreadcrumbOptions = {
|
|
5
5
|
/**
|
|
@@ -13,15 +13,15 @@ type BreadcrumbOptions = {
|
|
|
13
13
|
*
|
|
14
14
|
* @default 'sm'
|
|
15
15
|
*/
|
|
16
|
-
gap?: CSSUIProps[
|
|
16
|
+
gap?: CSSUIProps["mx"];
|
|
17
17
|
/**
|
|
18
18
|
* Props for ol element.
|
|
19
19
|
*/
|
|
20
|
-
listProps?: HTMLUIProps<
|
|
20
|
+
listProps?: HTMLUIProps<"ol">;
|
|
21
21
|
};
|
|
22
|
-
type BreadcrumbProps = Omit<HTMLUIProps<
|
|
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,
|
|
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<
|
|
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<
|
|
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?:
|
|
54
|
+
gap?: CSSUIObject["mx"];
|
|
55
55
|
};
|
|
56
|
-
type BreadcrumbSeparatorProps = HTMLUIProps<
|
|
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 };
|
package/dist/breadcrumb.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
|
-
import { HTMLUIProps, ThemeProps, CSSUIProps } from '@yamada-ui/core';
|
|
2
|
+
import { HTMLUIProps, ThemeProps, CSSUIProps, CSSUIObject } from '@yamada-ui/core';
|
|
3
3
|
|
|
4
4
|
type BreadcrumbOptions = {
|
|
5
5
|
/**
|
|
@@ -13,15 +13,15 @@ type BreadcrumbOptions = {
|
|
|
13
13
|
*
|
|
14
14
|
* @default 'sm'
|
|
15
15
|
*/
|
|
16
|
-
gap?: CSSUIProps[
|
|
16
|
+
gap?: CSSUIProps["mx"];
|
|
17
17
|
/**
|
|
18
18
|
* Props for ol element.
|
|
19
19
|
*/
|
|
20
|
-
listProps?: HTMLUIProps<
|
|
20
|
+
listProps?: HTMLUIProps<"ol">;
|
|
21
21
|
};
|
|
22
|
-
type BreadcrumbProps = Omit<HTMLUIProps<
|
|
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,
|
|
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<
|
|
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<
|
|
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?:
|
|
54
|
+
gap?: CSSUIObject["mx"];
|
|
55
55
|
};
|
|
56
|
-
type BreadcrumbSeparatorProps = HTMLUIProps<
|
|
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/breadcrumb",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.17",
|
|
4
4
|
"description": "Yamada UI breadcrumb component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yamada",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"url": "https://github.com/hirotomoyamada/yamada-ui/issues"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@yamada-ui/core": "0.12.
|
|
39
|
-
"@yamada-ui/utils": "0.3.
|
|
38
|
+
"@yamada-ui/core": "0.12.6",
|
|
39
|
+
"@yamada-ui/utils": "0.3.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"react": "^18.0.0",
|