@nayhoo/ui 0.15.0 → 0.16.0
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/{chunk-JCN2TBLD.mjs → chunk-JMSIWH37.mjs} +10 -10
- package/dist/chunk-JMSIWH37.mjs.map +1 -0
- package/dist/chunk-Z6RQ453R.mjs +37 -0
- package/dist/chunk-Z6RQ453R.mjs.map +1 -0
- package/dist/components/dialog.css +14064 -0
- package/dist/components/dialog.css.map +1 -0
- package/dist/components/dialog.d.mts +37 -0
- package/dist/components/dialog.d.ts +37 -0
- package/dist/components/dialog.js +278 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/dialog.mjs +129 -0
- package/dist/components/dialog.mjs.map +1 -0
- package/dist/dialog.css-noIN2HKB.d.mts +35 -0
- package/dist/dialog.css-noIN2HKB.d.ts +35 -0
- package/dist/providers/index.mjs +2 -2
- package/dist/theme/index.css +80 -8
- package/dist/theme/index.css.map +1 -1
- package/dist/theme/index.d.mts +7 -1
- package/dist/theme/index.d.ts +7 -1
- package/dist/theme/index.js +48 -25
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/index.mjs +28 -23
- package/dist/theme/index.mjs.map +1 -1
- package/package.json +7 -1
- package/dist/chunk-JCN2TBLD.mjs.map +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { D as DialogContentVariants } from '../dialog.css-noIN2HKB.mjs';
|
|
4
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
5
|
+
import '@vanilla-extract/recipes';
|
|
6
|
+
|
|
7
|
+
type DialogProps = DialogPrimitive.DialogProps;
|
|
8
|
+
/**
|
|
9
|
+
* @see https://github.com/nayhoo/ui/blob/main/apps/react-cosmos/src/dialog.fixture.tsx
|
|
10
|
+
*/
|
|
11
|
+
declare const Dialog: react.FC<DialogPrimitive.DialogProps>;
|
|
12
|
+
type DialogCloseProps = DialogPrimitive.DialogCloseProps;
|
|
13
|
+
declare const DialogClose: react.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
type DialogContentProps = DialogPrimitive.DialogContentProps & DialogContentVariants & {
|
|
15
|
+
components?: {
|
|
16
|
+
Footer?: React.ReactNode;
|
|
17
|
+
Header?: React.ReactNode;
|
|
18
|
+
};
|
|
19
|
+
disableOverlayBlur?: boolean;
|
|
20
|
+
};
|
|
21
|
+
declare const DialogContent: ({ children, components, disableOverlayBlur, ...props }: DialogContentProps) => react_jsx_runtime.JSX.Element;
|
|
22
|
+
type DialogDescriptionProps = DialogPrimitive.DialogDescriptionProps;
|
|
23
|
+
declare const DialogDescription: ({ ...props }: DialogDescriptionProps) => react_jsx_runtime.JSX.Element;
|
|
24
|
+
type DialogFooterProps = {
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
};
|
|
27
|
+
declare const DialogFooter: ({ children }: DialogFooterProps) => react_jsx_runtime.JSX.Element;
|
|
28
|
+
type DialogHeaderProps = {
|
|
29
|
+
children: React.ReactNode;
|
|
30
|
+
};
|
|
31
|
+
declare const DialogHeader: ({ children }: DialogHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
32
|
+
type DialogTitleProps = DialogPrimitive.DialogTitleProps;
|
|
33
|
+
declare const DialogTitle: ({ ...props }: DialogTitleProps) => react_jsx_runtime.JSX.Element;
|
|
34
|
+
type DialogTriggerProps = DialogPrimitive.DialogTriggerProps;
|
|
35
|
+
declare const DialogTrigger: react.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
36
|
+
|
|
37
|
+
export { Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { D as DialogContentVariants } from '../dialog.css-noIN2HKB.js';
|
|
4
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
5
|
+
import '@vanilla-extract/recipes';
|
|
6
|
+
|
|
7
|
+
type DialogProps = DialogPrimitive.DialogProps;
|
|
8
|
+
/**
|
|
9
|
+
* @see https://github.com/nayhoo/ui/blob/main/apps/react-cosmos/src/dialog.fixture.tsx
|
|
10
|
+
*/
|
|
11
|
+
declare const Dialog: react.FC<DialogPrimitive.DialogProps>;
|
|
12
|
+
type DialogCloseProps = DialogPrimitive.DialogCloseProps;
|
|
13
|
+
declare const DialogClose: react.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
type DialogContentProps = DialogPrimitive.DialogContentProps & DialogContentVariants & {
|
|
15
|
+
components?: {
|
|
16
|
+
Footer?: React.ReactNode;
|
|
17
|
+
Header?: React.ReactNode;
|
|
18
|
+
};
|
|
19
|
+
disableOverlayBlur?: boolean;
|
|
20
|
+
};
|
|
21
|
+
declare const DialogContent: ({ children, components, disableOverlayBlur, ...props }: DialogContentProps) => react_jsx_runtime.JSX.Element;
|
|
22
|
+
type DialogDescriptionProps = DialogPrimitive.DialogDescriptionProps;
|
|
23
|
+
declare const DialogDescription: ({ ...props }: DialogDescriptionProps) => react_jsx_runtime.JSX.Element;
|
|
24
|
+
type DialogFooterProps = {
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
};
|
|
27
|
+
declare const DialogFooter: ({ children }: DialogFooterProps) => react_jsx_runtime.JSX.Element;
|
|
28
|
+
type DialogHeaderProps = {
|
|
29
|
+
children: React.ReactNode;
|
|
30
|
+
};
|
|
31
|
+
declare const DialogHeader: ({ children }: DialogHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
32
|
+
type DialogTitleProps = DialogPrimitive.DialogTitleProps;
|
|
33
|
+
declare const DialogTitle: ({ ...props }: DialogTitleProps) => react_jsx_runtime.JSX.Element;
|
|
34
|
+
type DialogTriggerProps = DialogPrimitive.DialogTriggerProps;
|
|
35
|
+
declare const DialogTrigger: react.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
36
|
+
|
|
37
|
+
export { Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps };
|