@soroush.tech/styled-system 5.2.0 → 5.4.0

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 (74) hide show
  1. package/README.md +11 -6
  2. package/dist/background.d.cts +3 -2
  3. package/dist/background.d.mts +3 -2
  4. package/dist/border.d.cts +3 -2
  5. package/dist/border.d.mts +3 -2
  6. package/dist/color.d.cts +3 -2
  7. package/dist/color.d.mts +3 -2
  8. package/dist/core.d.cts +1 -1
  9. package/dist/core.d.mts +1 -1
  10. package/dist/flexbox.d.cts +3 -2
  11. package/dist/flexbox.d.mts +3 -2
  12. package/dist/grid.d.cts +3 -2
  13. package/dist/grid.d.mts +3 -2
  14. package/dist/{index-50KH4Mo7.d.cts → index--0QXsrzB.d.mts} +1 -2
  15. package/dist/{index-8PSQ0vkP.d.cts → index-5FNmSnEI.d.cts} +1 -2
  16. package/dist/{index-C3_fScux.d.mts → index-B4DiqzRr.d.cts} +1 -2
  17. package/dist/{index-DZaFk5pk.d.cts → index-BDKAW1u8.d.mts} +1 -2
  18. package/dist/{index-9ZhIewzy.d.mts → index-BFzj-f22.d.cts} +1 -2
  19. package/dist/{index-Nc-10syf.d.cts → index-BPHA_boa.d.mts} +1 -2
  20. package/dist/{index-BS9GuhQN.d.cts → index-Bd7E_7bm.d.cts} +1 -2
  21. package/dist/{index-CarHCWLQ.d.cts → index-BrXslH97.d.cts} +1 -2
  22. package/dist/index-BvNoOnuk.d.mts +5 -0
  23. package/dist/{index-D8EyRZ5p.d.cts → index-C6pWum7i.d.cts} +1 -1
  24. package/dist/{index-D8EyRZ5p.d.mts → index-C6pWum7i.d.mts} +1 -1
  25. package/dist/index-CTguR0fU.d.cts +6 -0
  26. package/dist/index-C_ikENGU.d.mts +6 -0
  27. package/dist/{index-BBTVE4EM.d.mts → index-CeQ5ox80.d.mts} +1 -2
  28. package/dist/{index-CrUx2vIP.d.mts → index-Cq-vX0It.d.mts} +1 -2
  29. package/dist/{index-CsS_gcI9.d.mts → index-CuQx9h4Q.d.cts} +1 -2
  30. package/dist/{index-DPWkvooj.d.mts → index-CvbdNFVK.d.cts} +1 -2
  31. package/dist/{index-CX2jWEGJ.d.mts → index-D7-Ctdwn.d.mts} +1 -2
  32. package/dist/index-D9W3cc9s.d.mts +5 -0
  33. package/dist/{index-Bx7IxKu-.d.mts → index-DLcnFzWU.d.mts} +1 -2
  34. package/dist/{index-z86wOHTb.d.cts → index-DS-HZ740.d.cts} +1 -2
  35. package/dist/index-Dxn97XnB.d.cts +5 -0
  36. package/dist/{index-BoMacn6F.d.cts → index-Dz8xde7b.d.cts} +1 -2
  37. package/dist/{index-C13YRARN.d.mts → index-DzPnzx9p.d.mts} +1 -2
  38. package/dist/{index-DVR6hZCd.d.cts → index-F79chYlR.d.mts} +1 -2
  39. package/dist/index-HNU5ME-U.d.cts +5 -0
  40. package/dist/index.cjs +7 -1
  41. package/dist/index.d.cts +15 -166
  42. package/dist/index.d.mts +15 -166
  43. package/dist/index.mjs +2 -1
  44. package/dist/layout.d.cts +3 -2
  45. package/dist/layout.d.mts +3 -2
  46. package/dist/position.d.cts +3 -2
  47. package/dist/position.d.mts +3 -2
  48. package/dist/prop-types.cjs +48 -0
  49. package/dist/prop-types.d.cts +22 -0
  50. package/dist/prop-types.d.mts +22 -0
  51. package/dist/prop-types.mjs +40 -0
  52. package/dist/rolldown-runtime-D6vf50IK.cjs +28 -0
  53. package/dist/shadow.d.cts +3 -2
  54. package/dist/shadow.d.mts +3 -2
  55. package/dist/should-forward-prop.cjs +2 -23
  56. package/dist/space.d.cts +3 -2
  57. package/dist/space.d.mts +3 -2
  58. package/dist/theme-get-CwPt9eDy.mjs +5 -0
  59. package/dist/theme-get-D0fH7Jrd.cjs +10 -0
  60. package/dist/theme-get.cjs +3 -6
  61. package/dist/theme-get.d.cts +1 -5
  62. package/dist/theme-get.d.mts +1 -5
  63. package/dist/theme-get.mjs +1 -4
  64. package/dist/types-CCujn9-2.d.cts +304 -0
  65. package/dist/types-CCujn9-2.d.mts +304 -0
  66. package/dist/typography.d.cts +3 -2
  67. package/dist/typography.d.mts +3 -2
  68. package/dist/variant.d.cts +3 -2
  69. package/dist/variant.d.mts +3 -2
  70. package/package.json +20 -2
  71. package/dist/index-Ce09s0FQ.d.cts +0 -6
  72. package/dist/index-D3t1Lyte.d.mts +0 -6
  73. package/dist/index-J3PebPto.d.mts +0 -6
  74. package/dist/index-j3E1mxCg.d.cts +0 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soroush.tech/styled-system",
3
- "version": "5.2.0",
3
+ "version": "5.4.0",
4
4
  "description": "Maintained, first-class-TypeScript rewrite of styled-system — responsive, theme-aware style props for CSS-in-JS. Drop-in replacement for styled-system v5.",
5
5
  "keywords": [
6
6
  "styled-system",
@@ -188,6 +188,16 @@
188
188
  "default": "./dist/props.cjs"
189
189
  }
190
190
  },
191
+ "./prop-types": {
192
+ "import": {
193
+ "types": "./dist/prop-types.d.mts",
194
+ "default": "./dist/prop-types.mjs"
195
+ },
196
+ "require": {
197
+ "types": "./dist/prop-types.d.cts",
198
+ "default": "./dist/prop-types.cjs"
199
+ }
200
+ },
191
201
  "./should-forward-prop": {
192
202
  "import": {
193
203
  "types": "./dist/should-forward-prop.d.mts",
@@ -210,13 +220,21 @@
210
220
  "csstype": "^3.1.3"
211
221
  },
212
222
  "peerDependencies": {
213
- "@emotion/is-prop-valid": "^1.4.0"
223
+ "@emotion/is-prop-valid": "^1.4.0",
224
+ "prop-types": "^15.8.1"
225
+ },
226
+ "peerDependenciesMeta": {
227
+ "prop-types": {
228
+ "optional": true
229
+ }
214
230
  },
215
231
  "devDependencies": {
216
232
  "@emotion/is-prop-valid": "^1.4.0",
233
+ "@types/prop-types": "^15.7.12",
217
234
  "@vitest/coverage-v8": "^4.1.9",
218
235
  "eslint": "^10.5.0",
219
236
  "globals": "^17.7.0",
237
+ "prop-types": "^15.8.1",
220
238
  "tsdown": "^0.22.3",
221
239
  "typescript": "~6.0.3",
222
240
  "vitest": "^4.1.9",
@@ -1,6 +0,0 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.cjs";
2
-
3
- //#region src/grid/grid.d.ts
4
- declare const grid: Parser;
5
- //#endregion
6
- export { grid as t };
@@ -1,6 +0,0 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
-
3
- //#region src/color/color.d.ts
4
- declare const color: Parser;
5
- //#endregion
6
- export { color as t };
@@ -1,6 +0,0 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.mjs";
2
-
3
- //#region src/grid/grid.d.ts
4
- declare const grid: Parser;
5
- //#endregion
6
- export { grid as t };
@@ -1,6 +0,0 @@
1
- import { r as Parser } from "./index-D8EyRZ5p.cjs";
2
-
3
- //#region src/color/color.d.ts
4
- declare const color: Parser;
5
- //#endregion
6
- export { color as t };