@vinyasa/overlay 1.0.23

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.
@@ -0,0 +1,25 @@
1
+ import * as RadixAlertDialog from '@radix-ui/react-alert-dialog';
2
+ import { type ComponentPropsWithoutRef } from 'react';
3
+ export declare const AlertDialog: import("react").FC<RadixAlertDialog.AlertDialogProps>;
4
+ export declare const AlertDialogTrigger: import("react").ForwardRefExoticComponent<RadixAlertDialog.AlertDialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
5
+ export declare const AlertDialogAction: import("react").ForwardRefExoticComponent<RadixAlertDialog.AlertDialogActionProps & import("react").RefAttributes<HTMLButtonElement>>;
6
+ export declare const AlertDialogCancel: import("react").ForwardRefExoticComponent<RadixAlertDialog.AlertDialogCancelProps & import("react").RefAttributes<HTMLButtonElement>>;
7
+ export interface AlertDialogContentProps extends ComponentPropsWithoutRef<typeof RadixAlertDialog.Content> {
8
+ /** Max-width preset. Defaults to 'md' (28rem). */
9
+ size?: 'sm' | 'md' | 'lg' | 'xl';
10
+ }
11
+ export declare const AlertDialogContent: import("react").ForwardRefExoticComponent<AlertDialogContentProps & import("react").RefAttributes<HTMLDivElement>>;
12
+ export declare const AlertDialogHeader: {
13
+ ({ className, ...rest }: ComponentPropsWithoutRef<"div">): import("react").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ export declare const AlertDialogBody: {
17
+ ({ className, ...rest }: ComponentPropsWithoutRef<"div">): import("react").JSX.Element;
18
+ displayName: string;
19
+ };
20
+ export declare const AlertDialogFooter: {
21
+ ({ className, ...rest }: ComponentPropsWithoutRef<"div">): import("react").JSX.Element;
22
+ displayName: string;
23
+ };
24
+ export declare const AlertDialogTitle: import("react").ForwardRefExoticComponent<Omit<RadixAlertDialog.AlertDialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
25
+ export declare const AlertDialogDescription: import("react").ForwardRefExoticComponent<Omit<RadixAlertDialog.AlertDialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
@@ -0,0 +1 @@
1
+ export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, type AlertDialogContentProps, } from './AlertDialog';
@@ -0,0 +1,17 @@
1
+ export declare const content: import("@vanilla-extract/recipes").RuntimeFn<{
2
+ size: {
3
+ sm: {
4
+ maxWidth: "24rem";
5
+ };
6
+ md: {
7
+ maxWidth: "28rem";
8
+ };
9
+ lg: {
10
+ maxWidth: "36rem";
11
+ };
12
+ xl: {
13
+ maxWidth: "48rem";
14
+ };
15
+ };
16
+ }>;
17
+ export declare const closeButtonPosition: string;
@@ -0,0 +1,26 @@
1
+ import * as RadixDialog from '@radix-ui/react-dialog';
2
+ import { type ComponentPropsWithoutRef } from 'react';
3
+ export declare const Dialog: import("react").FC<RadixDialog.DialogProps>;
4
+ export declare const DialogTrigger: import("react").ForwardRefExoticComponent<RadixDialog.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
5
+ export declare const DialogClose: import("react").ForwardRefExoticComponent<RadixDialog.DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
6
+ export interface DialogContentProps extends ComponentPropsWithoutRef<typeof RadixDialog.Content> {
7
+ /** Max-width preset. Defaults to 'md' (28rem). */
8
+ size?: 'sm' | 'md' | 'lg' | 'xl';
9
+ /** Hides the built-in close (X) button in the corner. Defaults to false. */
10
+ hideCloseButton?: boolean;
11
+ }
12
+ export declare const DialogContent: import("react").ForwardRefExoticComponent<DialogContentProps & import("react").RefAttributes<HTMLDivElement>>;
13
+ export declare const DialogHeader: {
14
+ ({ className, ...rest }: ComponentPropsWithoutRef<"div">): import("react").JSX.Element;
15
+ displayName: string;
16
+ };
17
+ export declare const DialogBody: {
18
+ ({ className, ...rest }: ComponentPropsWithoutRef<"div">): import("react").JSX.Element;
19
+ displayName: string;
20
+ };
21
+ export declare const DialogFooter: {
22
+ ({ className, ...rest }: ComponentPropsWithoutRef<"div">): import("react").JSX.Element;
23
+ displayName: string;
24
+ };
25
+ export declare const DialogTitle: import("react").ForwardRefExoticComponent<Omit<RadixDialog.DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
26
+ export declare const DialogDescription: import("react").ForwardRefExoticComponent<Omit<RadixDialog.DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
@@ -0,0 +1 @@
1
+ export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, type DialogContentProps, } from './Dialog';
@@ -0,0 +1 @@
1
+ export { Dialog as Modal, DialogBody as ModalBody, DialogClose as ModalClose, DialogContent as ModalContent, DialogDescription as ModalDescription, DialogFooter as ModalFooter, DialogHeader as ModalHeader, DialogTitle as ModalTitle, DialogTrigger as ModalTrigger, type DialogContentProps as ModalContentProps, } from '../dialog/Dialog';
@@ -0,0 +1,2 @@
1
+ export * from './components/dialog/index';
2
+ export { default } from './components/dialog/index';
@@ -0,0 +1 @@
1
+ export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "./649.js";
@@ -0,0 +1,3 @@
1
+ export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, type AlertDialogContentProps, } from './components/alert-dialog';
2
+ export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, type DialogContentProps, } from './components/dialog';
3
+ export { Modal, ModalBody, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalTitle, ModalTrigger, type ModalContentProps, } from './components/modal';
@@ -0,0 +1,2 @@
1
+ export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from "./548.js";
2
+ export { Dialog, Dialog as Modal, DialogBody, DialogBody as ModalBody, DialogClose, DialogClose as ModalClose, DialogContent, DialogContent as ModalContent, DialogDescription, DialogDescription as ModalDescription, DialogFooter, DialogFooter as ModalFooter, DialogHeader, DialogHeader as ModalHeader, DialogTitle, DialogTitle as ModalTitle, DialogTrigger, DialogTrigger as ModalTrigger } from "./649.js";
@@ -0,0 +1,2 @@
1
+ export * from './components/modal/index';
2
+ export { default } from './components/modal/index';
@@ -0,0 +1 @@
1
+ export { Dialog as Modal, DialogBody as ModalBody, DialogClose as ModalClose, DialogContent as ModalContent, DialogDescription as ModalDescription, DialogFooter as ModalFooter, DialogHeader as ModalHeader, DialogTitle as ModalTitle, DialogTrigger as ModalTrigger } from "./649.js";
@@ -0,0 +1,7 @@
1
+ export declare const scrim: string;
2
+ export declare const header: string;
3
+ export declare const titleText: string;
4
+ export declare const descriptionText: string;
5
+ export declare const closeButton: string;
6
+ export declare const body: string;
7
+ export declare const footer: string;
package/package.json ADDED
@@ -0,0 +1,98 @@
1
+ {
2
+ "name": "@vinyasa/overlay",
3
+ "version": "1.0.23",
4
+ "private": false,
5
+ "type": "module",
6
+ "sideEffects": [
7
+ "**/*.css"
8
+ ],
9
+ "files": [
10
+ "dist",
11
+ "!dist/**/*.map",
12
+ "!dist/**/__story__/**",
13
+ "!dist/**/__test__/**",
14
+ "!dist/**/*.stories.d.ts",
15
+ "!dist/**/*.test.d.ts"
16
+ ],
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "main": "./dist/cjs/index.cjs",
21
+ "module": "./dist/esm/index.js",
22
+ "style": "./dist/esm/index.css",
23
+ "types": "./dist/esm/index.d.ts",
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/esm/index.d.ts",
27
+ "import": "./dist/esm/index.js",
28
+ "require": "./dist/cjs/index.cjs",
29
+ "default": "./dist/esm/index.js"
30
+ },
31
+ "./alert-dialog": {
32
+ "types": "./dist/esm/alert-dialog.d.ts",
33
+ "import": "./dist/esm/alert-dialog.js",
34
+ "require": "./dist/cjs/alert-dialog.cjs",
35
+ "default": "./dist/esm/alert-dialog.js"
36
+ },
37
+ "./alert-dialog/style.css": "./dist/esm/alert-dialog.css",
38
+ "./dialog": {
39
+ "types": "./dist/esm/dialog.d.ts",
40
+ "import": "./dist/esm/dialog.js",
41
+ "require": "./dist/cjs/dialog.cjs",
42
+ "default": "./dist/esm/dialog.js"
43
+ },
44
+ "./dialog/style.css": "./dist/esm/dialog.css",
45
+ "./modal": {
46
+ "types": "./dist/esm/modal.d.ts",
47
+ "import": "./dist/esm/modal.js",
48
+ "require": "./dist/cjs/modal.cjs",
49
+ "default": "./dist/esm/modal.js"
50
+ },
51
+ "./style.css": "./dist/esm/index.css",
52
+ "./package.json": "./package.json"
53
+ },
54
+ "peerDependencies": {
55
+ "@radix-ui/react-alert-dialog": "^1.1.23",
56
+ "@radix-ui/react-dialog": "^1.1.23",
57
+ "react": "^18.0.0 || ^19.0.0",
58
+ "react-dom": "^18.0.0 || ^19.0.0",
59
+ "@vinyasa/button": "^1.0.23",
60
+ "@vinyasa/icons": "^1.0.23",
61
+ "@vinyasa/layout": "^1.0.23",
62
+ "@vinyasa/tokens": "^1.0.23",
63
+ "@vinyasa/typography": "^1.0.23"
64
+ },
65
+ "devDependencies": {
66
+ "@radix-ui/react-alert-dialog": "^1.1.23",
67
+ "@radix-ui/react-dialog": "^1.1.23",
68
+ "@rsbuild/plugin-react": "^2.1.0",
69
+ "@rslib/core": "^0.23.1",
70
+ "@storybook/react-vite": "^10.4.6",
71
+ "@types/node": "^26.0.1",
72
+ "@types/react": "^19.0.0",
73
+ "@vanilla-extract/css": "^1.21.0",
74
+ "@vanilla-extract/recipes": "^0.5.7",
75
+ "@vanilla-extract/vite-plugin": "^5.2.3",
76
+ "@vanilla-extract/webpack-plugin": "^2.3.27",
77
+ "typescript": "^5.7.3",
78
+ "@vinyasa/feedback": "1.0.23",
79
+ "@vinyasa/form": "1.0.23",
80
+ "@vinyasa/icons": "1.0.23",
81
+ "@vinyasa/layout": "1.0.23",
82
+ "@vinyasa/button": "1.0.23",
83
+ "@vinyasa/typography": "1.0.23",
84
+ "@vinyasa/tokens": "1.0.23"
85
+ },
86
+ "scripts": {
87
+ "build": "rslib build && node ../../scripts/postbuild-package.mjs",
88
+ "typecheck": "tsc --noEmit -p tsconfig.json",
89
+ "lint": "eslint --config ../../configs/eslint.config.mjs src/**/*.{ts,tsx} --ignore-pattern src/**/__story__/** --ignore-pattern src/**/__test__/**",
90
+ "lint:fix": "eslint --config ../../configs/eslint.config.mjs src/**/*.{ts,tsx} --ignore-pattern src/**/__story__/** --ignore-pattern src/**/__test__/** --fix",
91
+ "format": "prettier . --config ../../configs/prettier.config.json --ignore-path ../../configs/.prettierignore --write",
92
+ "format:check": "prettier . --config ../../configs/prettier.config.json --ignore-path ../../configs/.prettierignore --check",
93
+ "test": "vitest run --config vitest.config.ts",
94
+ "test:watch": "vitest --config vitest.config.ts",
95
+ "test:coverage": "vitest run --config vitest.config.ts --coverage",
96
+ "pack:check": "npm pack --dry-run"
97
+ }
98
+ }