uikit-react-public 0.43.1 → 0.43.2
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/components/Breadcrumbs/Breadcrumbs.d.ts +23 -6
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -4
- package/dist/components/Breadcrumbs/index.d.ts +3 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/index.js +4465 -4373
- package/lib/components/Breadcrumbs/Breadcrumbs.tsx +166 -7
- package/lib/components/Breadcrumbs/index.ts +3 -0
- package/lib/components/index.ts +4 -0
- package/package.json +1 -1
|
@@ -1,9 +1,26 @@
|
|
|
1
|
-
import { default as React, HTMLAttributes } from 'react';
|
|
2
|
-
|
|
1
|
+
import { default as React, HTMLAttributes, NamedExoticComponent } from 'react';
|
|
2
|
+
import { default as BreadcrumbsNew, BaseBreadcrumbsItemProps, BreadcrumbsCurrentProps, BreadcrumbsLinkProps, BreadcrumbsProps as BreadcrumbsNewProps, BreadcrumbsSize } from '../BreadcrumbsNew';
|
|
3
|
+
import { default as Breadcrumb, BreadcrumbProps } from './Breadcrumb';
|
|
4
|
+
export interface LegacyBreadcrumbsProps extends HTMLAttributes<HTMLElement> {
|
|
3
5
|
testId?: string;
|
|
4
6
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
export type BreadcrumbsProps = Omit<BreadcrumbsNewProps, 'children'> & LegacyBreadcrumbsProps;
|
|
8
|
+
export type { BaseBreadcrumbsItemProps, BreadcrumbsCurrentProps, BreadcrumbsLinkProps, BreadcrumbsSize, };
|
|
9
|
+
export interface LegacyBreadcrumbsComponent extends NamedExoticComponent<LegacyBreadcrumbsProps> {
|
|
10
|
+
Breadcrumb: typeof Breadcrumb;
|
|
11
|
+
}
|
|
12
|
+
export declare const LegacyBreadcrumbs: LegacyBreadcrumbsComponent;
|
|
13
|
+
type BreadcrumbBridgeProps = BreadcrumbProps & {
|
|
14
|
+
separator?: boolean;
|
|
15
|
+
back?: boolean;
|
|
16
|
+
size?: BreadcrumbsSize;
|
|
8
17
|
};
|
|
9
|
-
|
|
18
|
+
declare const BreadcrumbBridge: ({ uri, isActive, component, separator, back, size, testId, className, children, ...props }: BreadcrumbBridgeProps) => React.JSX.Element;
|
|
19
|
+
export interface BreadcrumbsComponent extends NamedExoticComponent<BreadcrumbsProps> {
|
|
20
|
+
Breadcrumb: typeof BreadcrumbBridge;
|
|
21
|
+
BaseItem: typeof BreadcrumbsNew.BaseItem;
|
|
22
|
+
Link: typeof BreadcrumbsNew.Link;
|
|
23
|
+
Current: typeof BreadcrumbsNew.Current;
|
|
24
|
+
}
|
|
25
|
+
declare const BreadcrumbsWithSubComponents: BreadcrumbsComponent;
|
|
26
|
+
export default BreadcrumbsWithSubComponents;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component:
|
|
5
|
-
({ testId, className, children, ...props }: import('./Breadcrumbs').BreadcrumbsProps): import("react").JSX.Element;
|
|
6
|
-
Breadcrumb: import('react').MemoExoticComponent<({ testId, uri, className, children, isActive, component, ...props }: import('./Breadcrumb').BreadcrumbProps) => import("react").JSX.Element>;
|
|
7
|
-
};
|
|
4
|
+
component: import('./Breadcrumbs').BreadcrumbsComponent;
|
|
8
5
|
parameters: {
|
|
9
6
|
layout: string;
|
|
10
7
|
};
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export { default } from './Breadcrumbs';
|
|
2
|
+
export { LegacyBreadcrumbs } from './Breadcrumbs';
|
|
2
3
|
export type { BreadcrumbsProps } from './Breadcrumbs';
|
|
4
|
+
/** @deprecated Use BreadcrumbsProps instead. LegacyBreadcrumbsProps only supports the default theme. */
|
|
5
|
+
export type { LegacyBreadcrumbsProps } from './Breadcrumbs';
|
|
@@ -57,6 +57,9 @@ export { default as AppHeader, APP_HEADER_HEIGHT } from './AppHeader';
|
|
|
57
57
|
export type { AppHeaderProps } from './AppHeader';
|
|
58
58
|
export { default as Breadcrumbs } from './Breadcrumbs';
|
|
59
59
|
export type { BreadcrumbsProps } from './Breadcrumbs';
|
|
60
|
+
/** @deprecated Use Breadcrumbs instead. BreadcrumbsLegacy only supports the default theme. */
|
|
61
|
+
export { LegacyBreadcrumbs as BreadcrumbsLegacy } from './Breadcrumbs';
|
|
62
|
+
export type { LegacyBreadcrumbsProps as BreadcrumbsLegacyProps } from './Breadcrumbs';
|
|
60
63
|
export { default as BreadcrumbsNew } from './BreadcrumbsNew';
|
|
61
64
|
export type { BaseBreadcrumbsItemProps, BreadcrumbsCurrentProps, BreadcrumbsLinkProps, BreadcrumbsProps as BreadcrumbsNewProps, BreadcrumbsSize, } from './BreadcrumbsNew';
|
|
62
65
|
export { default as Checkbox, LabelledCheckbox } from './Checkbox';
|