math-main-components 0.0.208 → 0.0.209

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,18 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from '@storybook/react';
3
+ import { Dropdown } from '.';
4
+ declare const meta: {
5
+ title: string;
6
+ component: <Type extends string>({ options, unit, onChange, ...props }: {
7
+ options: Dropdown<Type>[];
8
+ onChange?: ((value: Type) => void) | undefined;
9
+ unit?: string | undefined;
10
+ } & import("react").InputHTMLAttributes<HTMLInputElement>) => import("react").JSX.Element;
11
+ parameters: {
12
+ layout: string;
13
+ };
14
+ tags: string[];
15
+ };
16
+ export default meta;
17
+ type Story = StoryObj<typeof meta>;
18
+ export declare const Primary: Story;
@@ -0,0 +1,10 @@
1
+ import React, { InputHTMLAttributes } from 'react';
2
+ export type Dropdown<Type> = {
3
+ value: Type;
4
+ label: string;
5
+ };
6
+ export declare const Dropdown: <Type extends string>({ options, unit, onChange, ...props }: {
7
+ options: Dropdown<Type>[];
8
+ onChange?: ((value: Type) => void) | undefined;
9
+ unit?: string | undefined;
10
+ } & React.InputHTMLAttributes<HTMLInputElement>) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-main-components",
3
- "version": "0.0.208",
3
+ "version": "0.0.209",
4
4
  "author": "Emilian Scheel",
5
5
  "files": [
6
6
  "dist/**/*",