@petnow/ui 1.6.7 → 1.6.9

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/src/App.d.ts CHANGED
@@ -1,3 +1,2 @@
1
-
2
1
  declare function App(): import("react/jsx-runtime").JSX.Element;
3
2
  export default App;
@@ -1,17 +1,16 @@
1
- import { SetStateAction } from 'react';
2
-
3
- interface Props {
1
+ interface AutocompleteOption<ValueType> {
2
+ name: string | undefined;
3
+ value: ValueType | undefined;
4
+ }
5
+ interface Props<ValueType> {
4
6
  label: string;
5
7
  placeholder: string;
6
8
  value: string | undefined;
7
- options: {
8
- name: string;
9
- [key: string]: any;
10
- }[];
11
- onChange: (value: SetStateAction<any>) => void;
9
+ options: AutocompleteOption<ValueType>[];
10
+ onChange: (value: AutocompleteOption<ValueType>) => void;
12
11
  disabled?: boolean;
13
12
  helperText?: string;
14
13
  disableDebounce?: true;
15
14
  }
16
- declare const LabeledAutocomplete: ({ label, placeholder, value, options, onChange, disabled, helperText, disableDebounce, }: Props) => import("react/jsx-runtime").JSX.Element;
15
+ declare const LabeledAutocomplete: <ValueType extends string | number | boolean>({ label, placeholder, value, options, onChange, disabled, helperText, disableDebounce, }: Props<ValueType>) => import("react/jsx-runtime").JSX.Element;
17
16
  export default LabeledAutocomplete;
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
2
  import { default as LabeledAutocomplete } from './LabeledAutocomplete.tsx';
3
-
4
3
  declare const meta: Meta<typeof LabeledAutocomplete>;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof LabeledAutocomplete>;
@@ -1,6 +1,5 @@
1
1
  import { default as CtaButton } from './CtaButton.tsx';
2
2
  import { Meta, StoryObj } from '@storybook/react';
3
-
4
3
  declare const meta: Meta<typeof CtaButton>;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof CtaButton>;
@@ -1,8 +1,7 @@
1
1
  import { JSXElementConstructor, ReactElement, ReactNodeArray } from 'react';
2
-
3
2
  interface Props {
4
3
  title: string;
5
- description: string | ReactElement<any, string | JSXElementConstructor<any>> | ReactNodeArray;
4
+ description: string | ReactElement<string | JSXElementConstructor<unknown>> | ReactNodeArray;
6
5
  titleTextClassName?: string;
7
6
  descriptionTextClassName?: string;
8
7
  }
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
2
  import { default as AccordionCard } from './AccordionCard.tsx';
3
-
4
3
  declare const meta: Meta<typeof AccordionCard>;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof AccordionCard>;
@@ -1,6 +1,5 @@
1
1
  import { default as Checkbox } from './Checkbox.tsx';
2
2
  import { Meta, StoryObj } from '@storybook/react';
3
-
4
3
  declare const meta: Meta<typeof Checkbox>;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof Checkbox>;
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
2
  import { default as LabeledDatepicker } from './LabeledDatepicker';
3
-
4
3
  declare const meta: Meta<typeof LabeledDatepicker>;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof LabeledDatepicker>;
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
2
  import { default as LabeledAddressInput } from './LabeledAddressInput.tsx';
3
-
4
3
  declare const meta: Meta<typeof LabeledAddressInput>;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof LabeledAddressInput>;
@@ -1,6 +1,5 @@
1
1
  import { default as Modal } from './Modal';
2
2
  import { Meta, StoryObj } from '@storybook/react';
3
-
4
3
  declare const meta: Meta<typeof Modal>;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof Modal>;
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
2
  import { default as Radio } from './Radio';
3
-
4
3
  declare const meta: Meta<typeof Radio>;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof Radio>;
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
2
  import { default as LabeledSelect } from './LabeledSelect.tsx';
3
-
4
3
  declare const meta: Meta<typeof LabeledSelect>;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof LabeledSelect>;
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
2
  import { default as Tabs } from './Tabs.tsx';
3
-
4
3
  declare const meta: Meta<typeof Tabs>;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof Tabs>;
@@ -1 +0,0 @@
1
-
@@ -1,3 +1,2 @@
1
1
  import { ClassValue } from 'clsx';
2
-
3
2
  export declare function cn(...inputs: ClassValue[]): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@petnow/ui",
3
- "version": "1.6.7",
3
+ "version": "1.6.9",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -14,15 +14,15 @@
14
14
  "format:fix": "prettier . --write"
15
15
  },
16
16
  "dependencies": {
17
- "@headlessui/react": "^2.1.8",
17
+ "@headlessui/react": "^2.2.0",
18
18
  "clsx": "^2.1.1",
19
- "date-fns": "^3.6.0",
19
+ "date-fns": "^4.1.0",
20
20
  "react": "^18.2.0",
21
21
  "react-datepicker": "^7.4.0",
22
22
  "react-daum-postcode": "^3.1.3",
23
23
  "react-dom": "^18.2.0",
24
24
  "react-icons": "^5.1.0",
25
- "tailwind-merge": "^2.5.2"
25
+ "tailwind-merge": "^2.5.4"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@chromatic-com/storybook": "^1.6.0",
@@ -31,18 +31,18 @@
31
31
  "@storybook/addon-links": "^8.0.9",
32
32
  "@storybook/addon-onboarding": "^8.2.9",
33
33
  "@storybook/blocks": "^8.2.9",
34
- "@storybook/react": "^8.1.11",
35
- "@storybook/react-vite": "^8.1.11",
34
+ "@storybook/react": "^8.2.9",
35
+ "@storybook/react-vite": "^8.2.9",
36
36
  "@storybook/test": "^8.1.11",
37
37
  "@testing-library/jest-dom": "^6.5.0",
38
38
  "@testing-library/react": "^16.0.1",
39
39
  "@testing-library/user-event": "^14.5.2",
40
40
  "@types/jest": "^29.5.13",
41
41
  "@types/react": "^18.3.10",
42
- "@types/react-dom": "^18.2.22",
42
+ "@types/react-dom": "^18.3.1",
43
43
  "@typescript-eslint/eslint-plugin": "^7.18.0",
44
44
  "@typescript-eslint/parser": "^7.18.0",
45
- "@vitejs/plugin-react": "^4.3.1",
45
+ "@vitejs/plugin-react": "^4.3.3",
46
46
  "autoprefixer": "^10.4.20",
47
47
  "eslint": "^8.57.0",
48
48
  "eslint-plugin-react-hooks": "^4.6.0",
@@ -56,12 +56,12 @@
56
56
  "prettier": "^3.2.5",
57
57
  "prettier-plugin-tailwindcss": "^0.6.5",
58
58
  "storybook": "^8.2.9",
59
- "tailwindcss": "^3.4.10",
59
+ "tailwindcss": "^3.4.14",
60
60
  "ts-jest": "^29.2.5",
61
61
  "ts-node": "^10.9.2",
62
- "typescript": "^5.6.2",
62
+ "typescript": "^5.6.3",
63
63
  "vite": "^5.4.2",
64
- "vite-plugin-dts": "^3.9.0"
64
+ "vite-plugin-dts": "^4.3.0"
65
65
  },
66
66
  "main": "dist/index.es.js",
67
67
  "types": "dist/index.d.ts",