@sonic-equipment/ui 0.0.13 → 0.0.15

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.
Files changed (41) hide show
  1. package/dist/base.css +4 -5
  2. package/dist/buttons/add-to-cart-button/add-to-cart-button.d.ts +8 -0
  3. package/dist/buttons/add-to-cart-button/add-to-cart-button.stories.d.ts +17 -0
  4. package/dist/buttons/button/button.d.ts +4 -2
  5. package/dist/buttons/button/button.stories.d.ts +4 -1
  6. package/dist/buttons/favorite/favorite-button.stories.d.ts +1 -1
  7. package/dist/buttons/icon-button/icon-button.stories.d.ts +1 -1
  8. package/dist/cards/product-card/product-card.d.ts +12 -7
  9. package/dist/cards/product-card/product-card.stories.d.ts +27 -1
  10. package/dist/display/product-price/product-price.d.ts +4 -8
  11. package/dist/display/product-price/product-price.stories.d.ts +1 -2
  12. package/dist/fonts.css +32 -32
  13. package/dist/{inputs → forms}/checkbox/checkbox.stories.d.ts +1 -1
  14. package/dist/forms/field-error/field-error.d.ts +5 -0
  15. package/dist/forms/field-error/field-error.stories.d.ts +15 -0
  16. package/dist/forms/input/input.d.ts +13 -0
  17. package/dist/forms/input/input.stories.d.ts +27 -0
  18. package/dist/forms/label/label.d.ts +6 -0
  19. package/dist/forms/label/label.stories.d.ts +15 -0
  20. package/dist/forms/number-field/number-field.d.ts +31 -0
  21. package/dist/forms/number-field/number-field.stories.d.ts +32 -0
  22. package/dist/forms/text-field/text-field.d.ts +28 -0
  23. package/dist/forms/text-field/text-field.stories.d.ts +24 -0
  24. package/dist/forms/textarea/textarea.d.ts +13 -0
  25. package/dist/forms/textarea/textarea.stories.d.ts +19 -0
  26. package/dist/icons/dehashed/dehashed-outlined-icon.d.ts +2 -0
  27. package/dist/icons/hashed/hashed-outlined-icon.d.ts +2 -0
  28. package/dist/index.d.ts +149 -29
  29. package/dist/index.js +251 -31
  30. package/dist/lists/product-overview-grid/product-overview-grid.d.ts +5 -0
  31. package/dist/lists/product-overview-grid/product-overview-grid.stories.d.ts +14 -0
  32. package/dist/media/image/image.d.ts +21 -0
  33. package/dist/media/image/image.stories.d.ts +16 -0
  34. package/dist/product-listing/product-listing.d.ts +1 -4
  35. package/dist/product-listing/product-listing.stories.d.ts +2 -2
  36. package/dist/shared/types/price.d.ts +5 -0
  37. package/dist/styles.css +549 -70
  38. package/dist/typography/heading/heading.stories.d.ts +2 -2
  39. package/package.json +50 -34
  40. package/dist/icons/arrows/left-arrow-filled-icon.d.ts +0 -2
  41. /package/dist/{inputs → forms}/checkbox/checkbox.d.ts +0 -0
@@ -8,7 +8,7 @@ declare const meta: {
8
8
  };
9
9
  description: string;
10
10
  name: string;
11
- options: readonly ["xxl", "xl", "l", "m", "s", "xs", "xxs"];
11
+ options: ("s" | "xxl" | "xl" | "l" | "m" | "xs" | "xxs")[];
12
12
  };
13
13
  tag: {
14
14
  control: {
@@ -16,7 +16,7 @@ declare const meta: {
16
16
  };
17
17
  description: string;
18
18
  name: string;
19
- options: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "h7"];
19
+ options: ("h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "h7")[];
20
20
  };
21
21
  };
22
22
  args: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonic-equipment/ui",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -15,41 +15,34 @@
15
15
  "default": "./dist/index.js"
16
16
  }
17
17
  },
18
- "files": ["dist", "README.md"],
19
- "scripts": {
20
- "build": "rollup --config",
21
- "build-storybook": "storybook build",
22
- "clean": "rimraf node_modules dist .eslintcache",
23
- "dev": "storybook dev -p 6006",
24
- "lint": "eslint . --ext ts,tsx,cjs,js,mdx --report-unused-disable-directives --max-warnings 0 --cache --cache-location node_modules/.cache/.eslintcache",
25
- "lint:fix": "eslint . --fix --ext ts,tsx,cjs,js,mdx --report-unused-disable-directives --max-warnings 0 --cache --cache-location node_modules/.cache/.eslintcache",
26
- "prepare": "husky",
27
- "publish": "npm publish",
28
- "start": "http-server ./storybook-static",
29
- "update-packages": "npx npm-check-updates -u --rejectVersion eslint 8.57.0"
30
- },
18
+ "files": [
19
+ "dist",
20
+ "README.md"
21
+ ],
31
22
  "peerDependencies": {
32
23
  "react": "^18.2.0",
33
24
  "react-dom": "^18.2.0"
34
25
  },
35
26
  "devDependencies": {
36
- "@chromatic-com/storybook": "^1.3.2",
27
+ "@chromatic-com/storybook": "^1.3.3",
37
28
  "@csstools/postcss-global-data": "^2.1.1",
38
29
  "@rollup/plugin-commonjs": "^25.0.7",
39
30
  "@rollup/plugin-node-resolve": "^15.2.3",
40
31
  "@rollup/plugin-typescript": "^11.1.6",
41
- "@storybook/addon-docs": "^8.0.6",
42
- "@storybook/addon-essentials": "^8.0.6",
43
- "@storybook/addon-interactions": "^8.0.6",
44
- "@storybook/addon-links": "^8.0.6",
45
- "@storybook/blocks": "^8.0.6",
46
- "@storybook/react": "^8.0.6",
47
- "@storybook/react-vite": "^8.0.6",
48
- "@storybook/test": "^8.0.6",
49
- "@types/react": "^18.2.75",
50
- "@types/react-dom": "^18.2.24",
51
- "@typescript-eslint/eslint-plugin": "^7.6.0",
52
- "@typescript-eslint/parser": "^7.6.0",
32
+ "@storybook/addon-viewport": "^8.0.9",
33
+ "@storybook/addon-docs": "^8.0.9",
34
+ "@storybook/addon-essentials": "^8.0.9",
35
+ "@storybook/addon-interactions": "^8.0.9",
36
+ "@storybook/addon-links": "^8.0.9",
37
+ "@storybook/blocks": "^8.0.9",
38
+ "@storybook/preview-api": "^8.0.9",
39
+ "@storybook/react": "^8.0.9",
40
+ "@storybook/react-vite": "^8.0.9",
41
+ "@storybook/test": "^8.0.9",
42
+ "@types/react": "^18.2.79",
43
+ "@types/react-dom": "^18.2.25",
44
+ "@typescript-eslint/eslint-plugin": "^7.7.1",
45
+ "@typescript-eslint/parser": "^7.7.1",
53
46
  "@vitejs/plugin-react": "^4.2.1",
54
47
  "autoprefixer": "^10.4.19",
55
48
  "eslint": "^8.57.0",
@@ -61,7 +54,7 @@
61
54
  "eslint-plugin-prettier": "^5.1.3",
62
55
  "eslint-plugin-react": "^7.34.1",
63
56
  "eslint-plugin-react-hooks": "^4.6.0",
64
- "eslint-plugin-simple-import-sort": "^12.0.0",
57
+ "eslint-plugin-simple-import-sort": "^12.1.0",
65
58
  "eslint-plugin-sort-destructure-keys": "^1.5.0",
66
59
  "eslint-plugin-sort-keys-fix": "^1.1.2",
67
60
  "eslint-plugin-storybook": "^0.8.0",
@@ -69,6 +62,7 @@
69
62
  "eslint-plugin-unused-imports": "^3.1.0",
70
63
  "http-server": "^14.1.1",
71
64
  "husky": "^9.0.11",
65
+ "lint-staged": "^15.2.2",
72
66
  "postcss": "^8.4.38",
73
67
  "postcss-custom-media": "^10.0.4",
74
68
  "postcss-import": "^16.1.0",
@@ -76,20 +70,42 @@
76
70
  "react": "^18.2.0",
77
71
  "react-dom": "^18.2.0",
78
72
  "rimraf": "^5.0.5",
79
- "rollup": "^4.14.1",
73
+ "rollup": "^4.16.4",
80
74
  "rollup-plugin-dts": "^6.1.0",
81
75
  "rollup-plugin-peer-deps-external": "^2.2.4",
82
76
  "rollup-plugin-postcss": "^4.0.2",
83
- "storybook": "^8.0.6",
77
+ "storybook": "^8.0.9",
78
+ "stylelint": "^16.3.1",
79
+ "stylelint-config-css-modules": "^4.4.0",
80
+ "stylelint-config-idiomatic-order": "^10.0.0",
81
+ "stylelint-config-standard": "^36.0.0",
84
82
  "typescript": "^5.4.5",
85
- "vite": "^5.2.8",
83
+ "vite": "^5.2.10",
86
84
  "vite-tsconfig-paths": "^4.3.2"
87
85
  },
88
86
  "dependencies": {
89
- "clsx": "^2.1.0",
87
+ "clsx": "^2.1.1",
90
88
  "react-aria-components": "^1.1.1"
91
89
  },
90
+ "lint-staged": {
91
+ "src/**/*.css": "pnpm stylelint",
92
+ "src/**/*.{ts,tsx}": "pnpm lint"
93
+ },
92
94
  "publishConfig": {
93
- "access": "restricted"
95
+ "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"
94
110
  }
95
- }
111
+ }
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function LeftArrowFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
File without changes