@petnow/ui 2.2.1 → 2.2.3
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 +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +147 -134
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/mobile/{tab/Tab.d.ts → tabs/Tabs.d.ts} +7 -5
- package/dist/src/components/mobile/{tab/Tab.stories.d.ts → tabs/Tabs.stories.d.ts} +3 -3
- package/package.json +10 -10
- /package/dist/test/{Tab.test.d.ts → Tabs.test.d.ts} +0 -0
|
@@ -12,10 +12,12 @@ interface Props<T extends TabItem> {
|
|
|
12
12
|
onTabChange?: (index: number) => void;
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
className?: {
|
|
15
|
-
|
|
16
|
-
tabTitle
|
|
17
|
-
|
|
15
|
+
tab?: string;
|
|
16
|
+
tabTitle?: string;
|
|
17
|
+
selectedUnderline?: string;
|
|
18
|
+
underline?: string;
|
|
18
19
|
};
|
|
20
|
+
allowScrollToSection?: boolean;
|
|
19
21
|
}
|
|
20
|
-
declare const
|
|
21
|
-
export default
|
|
22
|
+
declare const Tabs: <T extends TabItem>({ className, tabList, isCuratedcontent, unswipeableContent, defaultIndex, onTabChange, disabled, allowScrollToSection, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Tabs;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { default as
|
|
3
|
-
declare const meta: Meta<typeof
|
|
2
|
+
import { default as Tabs } from './Tabs';
|
|
3
|
+
declare const meta: Meta<typeof Tabs>;
|
|
4
4
|
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof
|
|
5
|
+
type Story = StoryObj<typeof Tabs>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
7
|
export declare const ThreeTabWithCuratedContent: Story;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@petnow/ui",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react-dom": "^18.2.0",
|
|
27
27
|
"react-icons": "^5.5.0",
|
|
28
28
|
"react-swipeable-views": "^0.14.0",
|
|
29
|
-
"tailwind-merge": "^3.
|
|
29
|
+
"tailwind-merge": "^3.3.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@chromatic-com/storybook": "^3.2.6",
|
|
@@ -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.
|
|
41
|
+
"@tailwindcss/postcss": "^4.1.11",
|
|
42
42
|
"@testing-library/jest-dom": "^6.6.3",
|
|
43
43
|
"@testing-library/react": "^16.1.0",
|
|
44
44
|
"@testing-library/user-event": "^14.6.1",
|
|
45
45
|
"@types/jest": "^29.5.14",
|
|
46
|
-
"@types/node": "^
|
|
46
|
+
"@types/node": "^24.0.10",
|
|
47
47
|
"@types/react": "^18.3.12",
|
|
48
48
|
"@types/react-dom": "^18.3.1",
|
|
49
49
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
@@ -53,17 +53,17 @@
|
|
|
53
53
|
"eslint-plugin-import": "^2.31.0",
|
|
54
54
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
55
55
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
56
|
-
"eslint-plugin-storybook": "^0.
|
|
56
|
+
"eslint-plugin-storybook": "^9.0.7",
|
|
57
57
|
"identity-obj-proxy": "^3.0.0",
|
|
58
58
|
"jest": "^29.7.0",
|
|
59
|
-
"jest-environment-jsdom": "^
|
|
59
|
+
"jest-environment-jsdom": "^30.0.4",
|
|
60
60
|
"jest-transformer-svg": "^2.0.2",
|
|
61
|
-
"postcss": "^8.5.
|
|
62
|
-
"prettier": "^3.
|
|
61
|
+
"postcss": "^8.5.6",
|
|
62
|
+
"prettier": "^3.6.2",
|
|
63
63
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
64
64
|
"storybook": "^8.5.3",
|
|
65
|
-
"tailwindcss": "^4.1.
|
|
66
|
-
"ts-jest": "^29.
|
|
65
|
+
"tailwindcss": "^4.1.11",
|
|
66
|
+
"ts-jest": "^29.4.0",
|
|
67
67
|
"ts-node": "^10.9.2",
|
|
68
68
|
"typescript": "^5.7.2",
|
|
69
69
|
"vite": "^6.2.4",
|
|
File without changes
|