@petnow/ui 1.1.2 → 1.2.0
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/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +4002 -3127
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +18 -13
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/autocomplete/LabeledAutocomplete.d.ts +16 -0
- package/dist/src/components/autocomplete/LabeledAutocomplete.stories.d.ts +7 -0
- package/package.json +2 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SetStateAction } from 'react';
|
|
2
|
+
|
|
3
|
+
interface Props {
|
|
4
|
+
label: string;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
value: string | undefined;
|
|
7
|
+
options: {
|
|
8
|
+
name: string;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}[];
|
|
11
|
+
onChange: (value: SetStateAction<any>) => void;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
helperText?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const LabeledAutocomplete: ({ label, placeholder, value, options, onChange, disabled, helperText }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default LabeledAutocomplete;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as LabeledAutocomplete } from './LabeledAutocomplete.tsx';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof LabeledAutocomplete>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof LabeledAutocomplete>;
|
|
7
|
+
export declare const Default: Story;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@petnow/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"format:fix": "prettier . --write"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@headlessui/react": "^2.0.
|
|
17
|
+
"@headlessui/react": "^2.0.4",
|
|
18
18
|
"clsx": "^2.1.1",
|
|
19
19
|
"react": "^18.2.0",
|
|
20
20
|
"react-daum-postcode": "^3.1.3",
|