math-main-components 0.0.227 → 0.0.232
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/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.stories.d.ts +1 -0
- package/dist/components/Dialog/Dialog.d.ts +6 -4
- package/dist/components/Dialog/Dialog.stories.d.ts +13 -0
- package/dist/components/RadioCards/RadioCards.d.ts +7 -0
- package/dist/components/RadioCards/RadioCards.stories.d.ts +13 -0
- package/dist/components/RadioCards/index.d.ts +1 -0
- package/dist/index.cjs.js +147 -121
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +145 -122
- package/package.json +1 -1
- package/styles/theme-styles.scss +1 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import React, { MouseEvent, ReactNode } from 'react';
|
2
|
-
type ButtonType = "blue" | "red" | "grey" | "lightBlue";
|
2
|
+
type ButtonType = "blue" | "blue2" | "red" | "grey" | "lightBlue";
|
3
3
|
export declare function Button({ id, children, iconName, iconFill, type, onClick, ...props }: {
|
4
4
|
id?: string;
|
5
5
|
iconName?: string;
|
@@ -1,9 +1,11 @@
|
|
1
|
-
import React from "react";
|
2
|
-
export declare
|
1
|
+
import React, { ReactNode } from "react";
|
2
|
+
export declare const DialogButton: () => React.JSX.Element;
|
3
|
+
export type DialogProps = {
|
3
4
|
data?: unknown;
|
4
5
|
enabled?: boolean;
|
5
6
|
text?: any;
|
6
7
|
onClose?: (event: React.MouseEvent<HTMLDivElement | HTMLButtonElement>, data?: any | undefined) => void;
|
7
8
|
onSubmit?: (event: React.MouseEvent<HTMLButtonElement>, data?: any | undefined) => void;
|
8
|
-
children:
|
9
|
-
}
|
9
|
+
children: ReactNode;
|
10
|
+
};
|
11
|
+
export declare function Dialog({ data, enabled, text, onClose, onSubmit, children }: DialogProps): React.JSX.Element;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: () => import("react").JSX.Element;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
tags: string[];
|
10
|
+
};
|
11
|
+
export default meta;
|
12
|
+
type Story = StoryObj<typeof meta>;
|
13
|
+
export declare const Primary: Story;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import React, { HTMLAttributes, InputHTMLAttributes } from 'react';
|
2
|
+
export declare const RadioCard: ({ children, name, defaultChecked, value, ...props }: {
|
3
|
+
children: React.ReactNode;
|
4
|
+
} & React.InputHTMLAttributes<HTMLInputElement>) => React.JSX.Element;
|
5
|
+
export declare function RadioCards({ children, columns, ...props }: {
|
6
|
+
columns?: number;
|
7
|
+
} & HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import { RadioCards } from './RadioCards';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof RadioCards;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
tags: string[];
|
10
|
+
};
|
11
|
+
export default meta;
|
12
|
+
type Story = StoryObj<typeof meta>;
|
13
|
+
export declare const Primary: Story;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { RadioCard, RadioCards } from './RadioCards';
|