@petnow/ui 0.0.5 → 0.0.7

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,11 +1,16 @@
1
1
  interface Props {
2
2
  isOpen: boolean;
3
3
  setIsOpen: (newState: boolean) => void;
4
- title: string;
4
+ title?: string;
5
+ image?: Image;
5
6
  description?: string;
6
7
  confirm: Confirm;
7
8
  cancel?: Cancel;
8
9
  }
10
+ interface Image {
11
+ url: string;
12
+ alt: string;
13
+ }
9
14
  interface Confirm {
10
15
  text: string;
11
16
  onClick: () => void;
@@ -8,3 +8,4 @@ export declare const Default: Story;
8
8
  export declare const OnlyTitle: Story;
9
9
  export declare const OnlyConfirm: Story;
10
10
  export declare const OnlyTitleAndConfirm: Story;
11
+ export declare const OnlyImage: Story;
package/package.json CHANGED
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "name": "@petnow/ui",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
7
7
  "build": "tsc && vite build && npm run tailwind",
8
- "tailwind": "npx tailwindcss -o ./dist/index.css --minify",
8
+ "tailwind": "npx tailwindcss -i ./src/index.css -o ./dist/index.css --minify",
9
9
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
10
10
  "preview": "vite preview",
11
11
  "storybook": "storybook dev -p 6006",
12
- "build-storybook": "storybook build"
12
+ "build-storybook": "storybook build",
13
+ "format": "prettier . --check",
14
+ "format:fix": "prettier . --write"
13
15
  },
14
16
  "dependencies": {
15
17
  "@headlessui/react": "^1.7.19",
@@ -41,6 +43,8 @@
41
43
  "eslint-plugin-react-refresh": "^0.4.6",
42
44
  "eslint-plugin-storybook": "^0.8.0",
43
45
  "postcss": "^8.4.38",
46
+ "prettier": "^3.2.5",
47
+ "prettier-plugin-tailwindcss": "^0.5.14",
44
48
  "storybook": "^8.0.9",
45
49
  "tailwindcss": "^3.4.3",
46
50
  "typescript": "^5.2.2",