math-main-components 0.0.213 → 0.0.215

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.
@@ -3,9 +3,8 @@ import type { StoryObj } from '@storybook/react';
3
3
  import { Dropdown } from '.';
4
4
  declare const meta: {
5
5
  title: string;
6
- component: <Type extends string>({ options, unit, onInput, ...props }: {
6
+ component: <Type extends string>({ options, unit, ...props }: {
7
7
  options: Dropdown<Type>[];
8
- onInput?: ((value: Type) => void) | undefined;
9
8
  unit?: string | undefined;
10
9
  } & import("react").HTMLAttributes<HTMLSelectElement>) => import("react").JSX.Element;
11
10
  parameters: {
@@ -3,8 +3,7 @@ export type Dropdown<Type> = {
3
3
  value: Type;
4
4
  label: string;
5
5
  };
6
- export declare const Dropdown: <Type extends string>({ options, unit, onInput, ...props }: {
6
+ export declare const Dropdown: <Type extends string>({ options, unit, ...props }: {
7
7
  options: Dropdown<Type>[];
8
- onInput?: ((value: Type) => void) | undefined;
9
8
  unit?: string | undefined;
10
9
  } & React.HTMLAttributes<HTMLSelectElement>) => React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { SelectFileCard } from './';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof SelectFileCard;
6
+ parameters: {};
7
+ tags: string[];
8
+ };
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ export declare const Primary: Story;
@@ -0,0 +1,8 @@
1
+ import React, { CSSProperties, HTMLAttributes } from 'react';
2
+ export declare function SelectFileCard({ accept, maxSize, onFileSelected, onFileTooLarge, ...props }: {
3
+ style?: CSSProperties;
4
+ accept?: string;
5
+ maxSize?: number;
6
+ onFileSelected: (file: File) => void;
7
+ onFileTooLarge?: () => void;
8
+ } & HTMLAttributes<HTMLFormElement>): React.JSX.Element;