@petnow/ui 2.4.3 → 3.0.2

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,7 +1,7 @@
1
1
  interface Props {
2
2
  className?: string;
3
3
  id?: string;
4
- onChange: (newValue: boolean) => void;
4
+ onChange?: (newValue: boolean) => void;
5
5
  disabled?: boolean;
6
6
  isChecked?: boolean;
7
7
  }
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
2
2
  interface Props {
3
3
  isOpen: boolean;
4
4
  setIsOpen: (newState: boolean) => void;
5
- onClose: () => void;
5
+ onClose?: () => void;
6
6
  title?: string | ReactNode;
7
7
  image?: Image;
8
8
  description?: string | ReactNode;
@@ -23,9 +23,11 @@ interface Image {
23
23
  interface Confirm {
24
24
  text: string;
25
25
  onClick: () => void;
26
+ disabled?: boolean;
26
27
  }
27
28
  interface Cancel {
28
29
  text: string;
30
+ disabled?: boolean;
29
31
  }
30
32
  declare const Popup: (props: Props) => import("react/jsx-runtime").JSX.Element;
31
33
  export default Popup;
@@ -9,3 +9,4 @@ export declare const OnlyConfirm: Story;
9
9
  export declare const OnlyTitleAndConfirm: Story;
10
10
  export declare const OnlyImage: Story;
11
11
  export declare const DisableOutsideClick: Story;
12
+ export declare const DisableConfirmAndCancelBtn: Story;
@@ -2,7 +2,7 @@ interface Props {
2
2
  className?: string;
3
3
  id?: string;
4
4
  name?: string;
5
- onChange: () => void;
5
+ onChange?: () => void;
6
6
  disabled?: boolean;
7
7
  isChecked?: boolean;
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@petnow/ui",
3
- "version": "2.4.3",
3
+ "version": "3.0.2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -15,7 +15,7 @@
15
15
  "format:fix": "prettier . --write"
16
16
  },
17
17
  "dependencies": {
18
- "@headlessui/react": "^2.2.7",
18
+ "@headlessui/react": "^2.2.9",
19
19
  "@types/react-swipeable-views": "^0.13.6",
20
20
  "clsx": "^2.1.1",
21
21
  "date-fns": "^4.1.0",
@@ -25,7 +25,7 @@
25
25
  "react-daum-postcode": "^3.2.0",
26
26
  "react-dom": "^18.2.0",
27
27
  "react-icons": "^5.5.0",
28
- "react-swipeable-views": "^0.14.0",
28
+ "react-swipeable-views": "^0.14.1",
29
29
  "tailwind-merge": "^3.3.1"
30
30
  },
31
31
  "devDependencies": {
@@ -38,12 +38,12 @@
38
38
  "@storybook/react": "^8.4.6",
39
39
  "@storybook/react-vite": "^8.4.6",
40
40
  "@storybook/test": "^8.4.6",
41
- "@tailwindcss/postcss": "^4.1.13",
42
- "@testing-library/jest-dom": "^6.8.0",
41
+ "@tailwindcss/postcss": "^4.1.14",
42
+ "@testing-library/jest-dom": "^6.9.0",
43
43
  "@testing-library/react": "^16.1.0",
44
44
  "@testing-library/user-event": "^14.6.1",
45
45
  "@types/jest": "^30.0.0",
46
- "@types/node": "^24.3.0",
46
+ "@types/node": "^24.6.2",
47
47
  "@types/react": "^18.3.12",
48
48
  "@types/react-dom": "^18.3.1",
49
49
  "@typescript-eslint/eslint-plugin": "^7.18.0",
@@ -52,17 +52,17 @@
52
52
  "eslint": "^8.57.0",
53
53
  "eslint-plugin-import": "^2.32.0",
54
54
  "eslint-plugin-react-hooks": "^5.2.0",
55
- "eslint-plugin-react-refresh": "^0.4.20",
55
+ "eslint-plugin-react-refresh": "^0.4.22",
56
56
  "eslint-plugin-storybook": "^9.0.7",
57
57
  "identity-obj-proxy": "^3.0.0",
58
- "jest": "^30.0.5",
58
+ "jest": "^30.2.0",
59
59
  "jest-environment-jsdom": "^30.2.0",
60
60
  "jest-transformer-svg": "^2.0.2",
61
61
  "postcss": "^8.5.6",
62
62
  "prettier": "^3.6.2",
63
63
  "prettier-plugin-tailwindcss": "^0.6.14",
64
64
  "storybook": "^8.5.3",
65
- "tailwindcss": "^4.1.12",
65
+ "tailwindcss": "^4.1.14",
66
66
  "ts-jest": "^29.4.4",
67
67
  "ts-node": "^10.9.2",
68
68
  "typescript": "^5.7.2",
package/tailwind.css CHANGED
@@ -1,5 +1,7 @@
1
1
  @import "tailwindcss";
2
2
 
3
+ @import "./petnow-design-system-v1.css";
4
+
3
5
  @theme {
4
6
  --background-image-gradient-radial: radial-gradient(var(--tw-gradient-stops));
5
7
  --background-image-gradient-conic: conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops));
@@ -105,48 +107,50 @@
105
107
  }
106
108
  }
107
109
 
108
- .text-display-large {
109
- @apply text-[34px] leading-[46px] font-bold tracking-normal;
110
- }
111
- .text-display-medium {
112
- @apply text-[28px] leading-[38px] font-bold tracking-normal;
113
- }
114
- .text-title-large {
115
- @apply text-[24px] leading-[34px] font-bold tracking-normal;
116
- }
117
- .text-title-medium {
118
- @apply text-[20px] leading-[30px] font-bold tracking-normal;
119
- }
120
- .text-title-small {
121
- @apply text-[18px] leading-[26px] font-bold tracking-normal;
122
- }
123
- .text-label-large {
124
- @apply text-[16px] leading-[24px] font-bold tracking-normal;
125
- }
126
- .text-label-medium {
127
- @apply text-[14px] leading-[22px] font-bold tracking-normal;
128
- }
129
- .text-label-small {
130
- @apply text-[12px] leading-[18px] font-bold tracking-normal;
131
- }
132
- .text-body-large {
133
- @apply text-[16px] leading-[24px] font-medium tracking-normal;
134
- }
135
- .text-body-medium {
136
- @apply text-[14px] leading-[22px] font-medium tracking-normal;
137
- }
138
- .text-body-small {
139
- @apply text-[12px] leading-[18px] font-medium tracking-normal;
140
- }
141
- .text-caption-large {
142
- @apply text-[16px] leading-[24px] font-normal tracking-normal;
143
- }
144
- .text-caption-medium {
145
- @apply text-[14px] leading-[22px] font-normal tracking-normal;
146
- }
147
- .text-caption-small {
148
- @apply text-[12px] leading-[18px] font-normal tracking-normal;
149
- }
150
- .text-badge {
151
- @apply text-[11px] leading-[16px] font-medium tracking-normal;
110
+ @layer utilities {
111
+ .text-display-large {
112
+ @apply text-[34px] leading-[46px] font-bold tracking-normal;
113
+ }
114
+ .text-display-medium {
115
+ @apply text-[28px] leading-[38px] font-bold tracking-normal;
116
+ }
117
+ .text-title-large {
118
+ @apply text-[24px] leading-[34px] font-bold tracking-normal;
119
+ }
120
+ .text-title-medium {
121
+ @apply text-[20px] leading-[30px] font-bold tracking-normal;
122
+ }
123
+ .text-title-small {
124
+ @apply text-[18px] leading-[26px] font-bold tracking-normal;
125
+ }
126
+ .text-label-large {
127
+ @apply text-[16px] leading-[24px] font-bold tracking-normal;
128
+ }
129
+ .text-label-medium {
130
+ @apply text-[14px] leading-[22px] font-bold tracking-normal;
131
+ }
132
+ .text-label-small {
133
+ @apply text-[12px] leading-[18px] font-bold tracking-normal;
134
+ }
135
+ .text-body-large {
136
+ @apply text-[16px] leading-[24px] font-medium tracking-normal;
137
+ }
138
+ .text-body-medium {
139
+ @apply text-[14px] leading-[22px] font-medium tracking-normal;
140
+ }
141
+ .text-body-small {
142
+ @apply text-[12px] leading-[18px] font-medium tracking-normal;
143
+ }
144
+ .text-caption-large {
145
+ @apply text-[16px] leading-[24px] font-normal tracking-normal;
146
+ }
147
+ .text-caption-medium {
148
+ @apply text-[14px] leading-[22px] font-normal tracking-normal;
149
+ }
150
+ .text-caption-small {
151
+ @apply text-[12px] leading-[18px] font-normal tracking-normal;
152
+ }
153
+ .text-badge {
154
+ @apply text-[11px] leading-[16px] font-medium tracking-normal;
155
+ }
152
156
  }