@theroutingcompany/components 0.0.37-alpha.0 → 0.0.37-alpha.1
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 +13366 -13323
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +516 -515
- package/dist/trc-components.umd.js.map +1 -1
- package/package.json +1 -1
- package/types/components/AlertDialog/AlertDialog.d.ts +19 -32
package/package.json
CHANGED
|
@@ -1,32 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
declare
|
|
11
|
-
declare const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
declare const
|
|
15
|
-
declare const
|
|
16
|
-
declare const
|
|
17
|
-
|
|
18
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
|
|
20
|
-
children: any;
|
|
21
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
declare const AlertDialogAction: ({ children }: {
|
|
23
|
-
children: any;
|
|
24
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
declare const AlertDialogCancel: ({ children }: {
|
|
26
|
-
children: any;
|
|
27
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
declare const AlertDialogCancelButton: ({ children, ...buttonProps }: {
|
|
29
|
-
[x: string]: any;
|
|
30
|
-
children?: string | undefined;
|
|
31
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
export { AlertDialog, AlertDialogAction, AlertDialogContent, AlertDialogCancel, AlertDialogCancelButton, AlertDialogDescription, AlertDialogFooter, AlertDialogTitle, AlertDialogTrigger, };
|
|
1
|
+
import type { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
3
|
+
import { dialogWidths } from '../../components/Dialog/Dialog';
|
|
4
|
+
type DialogWidth = keyof typeof dialogWidths;
|
|
5
|
+
type StyledContentProps = {
|
|
6
|
+
size?: DialogWidth;
|
|
7
|
+
};
|
|
8
|
+
export type AlertDialogContentProps = StyledContentProps & AlertDialogPrimitive.DialogContentProps & ComponentPropsWithRef<'div'>;
|
|
9
|
+
export declare function AlertDialogContent({ children, size, ...props }: AlertDialogContentProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const AlertDialogTitle: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>, any, {}, never>;
|
|
11
|
+
export declare const AlertDialogDescription: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>, any, {}, never>;
|
|
12
|
+
export declare const AlertDialogFooter: import("styled-components").StyledComponent<"footer", any, {}, never>;
|
|
13
|
+
export declare const AlertDialog: import("react").FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
14
|
+
export declare const AlertDialogTrigger: import("react").ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
export declare const AlertDialogAction: import("react").ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogActionProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
export declare const AlertDialogCancel: import("react").ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogCancelProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
/** AlertDialog Cancel Button positioned in top right with × */
|
|
18
|
+
export declare const AlertDialogCancelButton: ({ children, ...buttonProps }: AlertDialogPrimitive.AlertDialogCancelProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|