@engrate/components 0.1.16 → 0.1.18
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/ui/Modal/Modal.d.ts +6 -1
- package/dist/components/ui/Text/Text.d.ts +1 -1
- package/dist/index.cjs.js +45 -37
- package/dist/index.es.js +15840 -10732
- package/dist/skills/engrate-component-user.md +2 -0
- package/dist/styles.css +1 -1
- package/package.json +6 -5
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
|
|
4
|
+
interface ModalProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Root> {
|
|
5
|
+
}
|
|
6
|
+
declare const Modal: {
|
|
7
|
+
({ open: controlledOpen, defaultOpen, onOpenChange, children, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
5
10
|
declare const ModalTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
11
|
declare const ModalPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
7
12
|
declare const ModalClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const textVariants: (props?: ({
|
|
4
|
-
variant?: "lead" | "semi-lead" | "body-lg" | "body" | "descriptive" | "label" | "label-sm" | null | undefined;
|
|
4
|
+
variant?: "lead" | "semi-lead" | "body-lg" | "body" | "body-sm" | "descriptive" | "label" | "label-sm" | null | undefined;
|
|
5
5
|
weight?: "medium" | "regular" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
type TextElement = 'p' | 'span' | 'div' | 'label';
|