@sonic-equipment/ui 0.0.15 → 0.0.17
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/buttons/add-to-cart-button/add-to-cart-button.stories.d.ts +1 -1
- package/dist/buttons/button/button.stories.d.ts +1 -1
- package/dist/buttons/favorite/favorite-button.stories.d.ts +1 -1
- package/dist/buttons/icon-button/icon-button.stories.d.ts +1 -1
- package/dist/cards/product-card/product-card.stories.d.ts +1 -1
- package/dist/forms/checkbox/checkbox.stories.d.ts +1 -1
- package/dist/forms/number-field/number-field.stories.d.ts +0 -1
- package/dist/product-listing/product-listing.stories.d.ts +2 -2
- package/package.json +22 -22
|
@@ -2,7 +2,7 @@ import type { StoryObj } from '@storybook/react';
|
|
|
2
2
|
import { AddToCartButton } from './add-to-cart-button';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
args: {
|
|
5
|
-
onChange: import("@
|
|
5
|
+
onChange: import("@vitest/spy").Mock<[quantity: number], void>;
|
|
6
6
|
quantity: number;
|
|
7
7
|
};
|
|
8
8
|
component: typeof AddToCartButton;
|
|
@@ -2,7 +2,7 @@ import type { StoryObj } from '@storybook/react';
|
|
|
2
2
|
import { Button } from './button';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
args: {
|
|
5
|
-
onPress: import("@
|
|
5
|
+
onPress: import("@vitest/spy").Mock<[], void>;
|
|
6
6
|
size: "lg";
|
|
7
7
|
};
|
|
8
8
|
component: typeof Button;
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
import { FavoriteButton } from './favorite-button';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
args: {
|
|
5
|
-
onPress: import("@
|
|
5
|
+
onPress: import("@vitest/spy").Mock<[], void>;
|
|
6
6
|
};
|
|
7
7
|
component: typeof FavoriteButton;
|
|
8
8
|
parameters: {
|
|
@@ -2,7 +2,7 @@ import type { StoryObj } from '@storybook/react';
|
|
|
2
2
|
import { IconButton } from './icon-button';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
args: {
|
|
5
|
-
onPress: import("@
|
|
5
|
+
onPress: import("@vitest/spy").Mock<[], void>;
|
|
6
6
|
};
|
|
7
7
|
component: typeof IconButton;
|
|
8
8
|
parameters: {
|
|
@@ -11,7 +11,7 @@ declare const meta: {
|
|
|
11
11
|
src: string;
|
|
12
12
|
title: string;
|
|
13
13
|
};
|
|
14
|
-
onClick: import("@
|
|
14
|
+
onClick: import("@vitest/spy").Mock<[event: import("react").MouseEvent<HTMLDivElement, MouseEvent>], void>;
|
|
15
15
|
sku: string;
|
|
16
16
|
tag: "new";
|
|
17
17
|
};
|
|
@@ -2,7 +2,7 @@ import type { StoryObj } from '@storybook/react';
|
|
|
2
2
|
import { Checkbox } from './checkbox';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
args: {
|
|
5
|
-
onChange: import("@
|
|
5
|
+
onChange: import("@vitest/spy").Mock<[isSelected: boolean], void>;
|
|
6
6
|
};
|
|
7
7
|
component: typeof Checkbox;
|
|
8
8
|
parameters: {
|
|
@@ -2,8 +2,8 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
import { ProductListing } from './product-listing';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
args: {
|
|
5
|
-
onFilterChange: import("@
|
|
6
|
-
onSortChange: import("@
|
|
5
|
+
onFilterChange: import("@vitest/spy").Mock<[filters: import("./product-listing").ActiveFilters], void>;
|
|
6
|
+
onSortChange: import("@vitest/spy").Mock<[sort: import("./product-listing").Sort], void>;
|
|
7
7
|
};
|
|
8
8
|
component: typeof ProductListing;
|
|
9
9
|
tags: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sonic-equipment/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -15,13 +15,27 @@
|
|
|
15
15
|
"default": "./dist/index.js"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
"files": [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
"files": ["dist", "README.md"],
|
|
19
|
+
"main": "dist/index.js",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "rollup --config",
|
|
23
|
+
"build-storybook": "storybook build",
|
|
24
|
+
"check-updates": "npx npm-check-updates",
|
|
25
|
+
"clean": "rimraf node_modules dist",
|
|
26
|
+
"dev": "storybook dev -p 6006",
|
|
27
|
+
"lint": "eslint . --ext ts,tsx,cjs,js,mdx --report-unused-disable-directives --max-warnings 0 --cache --cache-location node_modules/.cache/.eslintcache",
|
|
28
|
+
"lint:fix": "eslint . --fix --ext ts,tsx,cjs,js,mdx --report-unused-disable-directives --max-warnings 0 --cache --cache-location node_modules/.cache/.eslintcache",
|
|
29
|
+
"prepare": "husky",
|
|
30
|
+
"start": "http-server ./storybook-static",
|
|
31
|
+
"stylelint": "stylelint --config .stylelintrc.cjs \"src/**/*.css\" --formatter verbose",
|
|
32
|
+
"stylelint:fix": "stylelint --config .stylelintrc.cjs \"src/**/*.css\" --formatter verbose --fix",
|
|
33
|
+
"test:types": "tsc --noEmit --pretty false",
|
|
34
|
+
"update-packages": "npx npm-check-updates -u"
|
|
35
|
+
},
|
|
22
36
|
"peerDependencies": {
|
|
23
|
-
"react": "
|
|
24
|
-
"react-dom": "
|
|
37
|
+
"react": "18.0.0",
|
|
38
|
+
"react-dom": "18.0.0"
|
|
25
39
|
},
|
|
26
40
|
"devDependencies": {
|
|
27
41
|
"@chromatic-com/storybook": "^1.3.3",
|
|
@@ -93,19 +107,5 @@
|
|
|
93
107
|
},
|
|
94
108
|
"publishConfig": {
|
|
95
109
|
"access": "public"
|
|
96
|
-
},
|
|
97
|
-
"scripts": {
|
|
98
|
-
"build": "rollup --config",
|
|
99
|
-
"build-storybook": "storybook build",
|
|
100
|
-
"check-updates": "npx npm-check-updates",
|
|
101
|
-
"clean": "rimraf node_modules dist",
|
|
102
|
-
"dev": "storybook dev -p 6006",
|
|
103
|
-
"lint": "eslint . --ext ts,tsx,cjs,js,mdx --report-unused-disable-directives --max-warnings 0 --cache --cache-location node_modules/.cache/.eslintcache",
|
|
104
|
-
"lint:fix": "eslint . --fix --ext ts,tsx,cjs,js,mdx --report-unused-disable-directives --max-warnings 0 --cache --cache-location node_modules/.cache/.eslintcache",
|
|
105
|
-
"start": "http-server ./storybook-static",
|
|
106
|
-
"stylelint": "stylelint --config .stylelintrc.cjs \"src/**/*.css\" --formatter verbose",
|
|
107
|
-
"stylelint:fix": "stylelint --config .stylelintrc.cjs \"src/**/*.css\" --formatter verbose --fix",
|
|
108
|
-
"test:types": "tsc --noEmit --pretty false",
|
|
109
|
-
"update-packages": "npx npm-check-updates -u"
|
|
110
110
|
}
|
|
111
|
-
}
|
|
111
|
+
}
|