@petnow/ui 1.0.1 → 1.1.1

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,19 @@
1
+ interface Props {
2
+ label: string;
3
+ placeholder: string;
4
+ options: {
5
+ name: string;
6
+ [key: string]: string | number | readonly string[];
7
+ }[];
8
+ onChange: (value: {
9
+ name: string;
10
+ [key: string]: string | number | readonly string[];
11
+ }) => void;
12
+ value: {
13
+ name: string;
14
+ [key: string]: string | number | readonly string[];
15
+ };
16
+ disabled?: boolean;
17
+ }
18
+ declare const LabeledSelect: ({ label, placeholder, value, options, onChange, disabled }: Props) => import("react/jsx-runtime").JSX.Element;
19
+ export default LabeledSelect;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as LabeledSelect } from './LabeledSelect.tsx';
3
+
4
+ declare const meta: Meta<typeof LabeledSelect>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof LabeledSelect>;
7
+ export declare const Default: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@petnow/ui",
3
- "version": "1.0.1",
3
+ "version": "1.1.1",
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": "^1.7.19",
17
+ "@headlessui/react": "^2.0.3",
18
18
  "clsx": "^2.1.1",
19
19
  "react": "^18.2.0",
20
20
  "react-daum-postcode": "^3.1.3",