@theroutingcompany/components 0.0.3 → 0.0.5
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/trc-components.es.js +222 -211
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +77 -72
- package/dist/trc-components.umd.js.map +1 -1
- package/package.json +2 -1
- package/types/components/Breadcrumbs/Breadcrumbs.d.ts +8 -7
- package/types/components/Tooltip/Tooltip.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theroutingcompany/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "The Routing Company Components",
|
|
5
5
|
"main": "./dist/trc-components.umd.js",
|
|
6
6
|
"module": "./dist/trc-components.es.js",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"storybook": "storybook dev -p 6006",
|
|
28
28
|
"build-storybook": "storybook build",
|
|
29
29
|
"lint:css": "stylelint components/**/*.{tsx,ts}",
|
|
30
|
+
"prepublishOnly": "npm run build",
|
|
30
31
|
"build:types": "tsc",
|
|
31
32
|
"build:components": "vite build",
|
|
32
33
|
"build": "npm run clean && npm run build:components && npm run build:types",
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { type AriaBreadcrumbItemProps, type AriaBreadcrumbsProps } from '@react-aria/breadcrumbs';
|
|
3
|
-
import type {
|
|
3
|
+
import type { LinkProps } from 'react-router-dom';
|
|
4
|
+
import type { RenameMisprefixedProps } from 'helpers/typeHelpers';
|
|
5
|
+
export declare const BreadcrumbListItem: any;
|
|
6
|
+
export declare const BreadcrumbLink: any;
|
|
4
7
|
export declare const Breadcrumbs: import("react").ForwardRefExoticComponent<AriaBreadcrumbsProps & {
|
|
5
8
|
children?: ReactNode;
|
|
6
9
|
} & import("react").RefAttributes<HTMLOListElement>>;
|
|
7
|
-
export type BreadcrumbItemProps = RenameMisprefixedProps<AriaBreadcrumbItemProps, 'is', 'isDisabled'> &
|
|
8
|
-
|
|
9
|
-
navigate?: any;
|
|
10
|
+
export type BreadcrumbItemProps = RenameMisprefixedProps<AriaBreadcrumbItemProps, 'is', 'isDisabled'> & LinkProps & {
|
|
11
|
+
LinkComponent: JSX.Element;
|
|
10
12
|
};
|
|
11
13
|
export declare const BreadcrumbItem: import("react").ForwardRefExoticComponent<Omit<AriaBreadcrumbItemProps, "isDisabled"> & {
|
|
12
14
|
disabled?: boolean;
|
|
13
|
-
} &
|
|
14
|
-
|
|
15
|
-
navigate?: any;
|
|
15
|
+
} & LinkProps<unknown> & {
|
|
16
|
+
LinkComponent: JSX.Element;
|
|
16
17
|
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
3
|
export type { TooltipContentProps, TooltipProps, } from '@radix-ui/react-tooltip';
|
|
4
4
|
declare function Content({ children, ...props }: TooltipPrimitive.TooltipContentProps): JSX.Element;
|
|
5
|
-
export declare const TooltipTrigger: (
|
|
5
|
+
export declare const TooltipTrigger: import("react").ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
export declare const TooltipProvider: import("react").FC<TooltipPrimitive.TooltipProviderProps>;
|
|
7
7
|
export declare const Tooltip: import("react").FC<TooltipPrimitive.TooltipProps>;
|
|
8
8
|
export declare const TooltipContent: typeof Content;
|