math-main-components 0.0.211 → 0.0.214

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.
@@ -1,9 +1,9 @@
1
- import React, { ChangeEvent, ReactNode } from 'react';
2
- export declare function Checkbox({ id, name, checked, defaultChecked, onInput, children }: {
1
+ import React, { ChangeEvent, HTMLAttributes, ReactNode } from 'react';
2
+ export declare function Checkbox({ id, name, checked, defaultChecked, onInput, children, ...props }: {
3
3
  id?: string;
4
4
  name: string;
5
5
  checked?: boolean;
6
6
  onInput?: (event: ChangeEvent<HTMLInputElement>) => void;
7
7
  defaultChecked?: boolean;
8
8
  children: ReactNode;
9
- }): React.JSX.Element;
9
+ } & HTMLAttributes<HTMLDivElement>): React.JSX.Element;
@@ -7,7 +7,7 @@ declare const meta: {
7
7
  options: Dropdown<Type>[];
8
8
  onInput?: ((value: Type) => void) | undefined;
9
9
  unit?: string | undefined;
10
- } & import("react").InputHTMLAttributes<HTMLSelectElement>) => import("react").JSX.Element;
10
+ } & import("react").HTMLAttributes<HTMLSelectElement>) => import("react").JSX.Element;
11
11
  parameters: {
12
12
  layout: string;
13
13
  };
@@ -1,4 +1,4 @@
1
- import React, { InputHTMLAttributes } from 'react';
1
+ import React, { HTMLAttributes } from 'react';
2
2
  export type Dropdown<Type> = {
3
3
  value: Type;
4
4
  label: string;
@@ -7,4 +7,4 @@ export declare const Dropdown: <Type extends string>({ options, unit, onInput, .
7
7
  options: Dropdown<Type>[];
8
8
  onInput?: ((value: Type) => void) | undefined;
9
9
  unit?: string | undefined;
10
- } & React.InputHTMLAttributes<HTMLSelectElement>) => React.JSX.Element;
10
+ } & React.HTMLAttributes<HTMLSelectElement>) => React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React, { CSSProperties } from 'react';
2
+ export default function SelectFileCard({ style, accept, maxSize, onFileSelected, onFileTooLarge }: {
3
+ style?: CSSProperties;
4
+ accept?: string;
5
+ maxSize?: number;
6
+ onFileSelected: (file: File) => void;
7
+ onFileTooLarge?: () => void;
8
+ }): React.JSX.Element;