@soroush.tech/styled-system 5.1.6 → 5.3.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 (92) hide show
  1. package/README.md +2 -2
  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.cjs +19 -11
  9. package/dist/core.d.cts +1 -1
  10. package/dist/core.d.mts +1 -1
  11. package/dist/core.mjs +19 -11
  12. package/dist/{css-nzeM_Xnf.cjs → css-BQ6QmZDs.cjs} +3 -3
  13. package/dist/{css-rLZ9Oeye.mjs → css-DPyZNAmX.mjs} +3 -3
  14. package/dist/css.cjs +1 -1
  15. package/dist/css.mjs +1 -1
  16. package/dist/flexbox.d.cts +3 -2
  17. package/dist/flexbox.d.mts +3 -2
  18. package/dist/grid.d.cts +3 -2
  19. package/dist/grid.d.mts +3 -2
  20. package/dist/{index-C3_fScux.d.mts → index--0QXsrzB.d.mts} +1 -2
  21. package/dist/{index-BBTVE4EM.d.mts → index-5FNmSnEI.d.cts} +1 -2
  22. package/dist/{index-50KH4Mo7.d.cts → index-B4DiqzRr.d.cts} +1 -2
  23. package/dist/{index-9ZhIewzy.d.mts → index-BDKAW1u8.d.mts} +1 -2
  24. package/dist/{index-DZaFk5pk.d.cts → index-BFzj-f22.d.cts} +1 -2
  25. package/dist/{index-Nc-10syf.d.cts → index-BPHA_boa.d.mts} +1 -2
  26. package/dist/{index-CX2jWEGJ.d.mts → index-Bd7E_7bm.d.cts} +1 -2
  27. package/dist/{index-C13YRARN.d.mts → index-BrXslH97.d.cts} +1 -2
  28. package/dist/index-BvNoOnuk.d.mts +5 -0
  29. package/dist/{index-D8EyRZ5p.d.cts → index-C6pWum7i.d.cts} +1 -1
  30. package/dist/{index-D8EyRZ5p.d.mts → index-C6pWum7i.d.mts} +1 -1
  31. package/dist/index-CTguR0fU.d.cts +6 -0
  32. package/dist/index-C_ikENGU.d.mts +6 -0
  33. package/dist/{index-8PSQ0vkP.d.cts → index-CeQ5ox80.d.mts} +1 -2
  34. package/dist/{index-CrUx2vIP.d.mts → index-Cq-vX0It.d.mts} +1 -2
  35. package/dist/{index-CsS_gcI9.d.mts → index-CuQx9h4Q.d.cts} +1 -2
  36. package/dist/{index-DPWkvooj.d.mts → index-CvbdNFVK.d.cts} +1 -2
  37. package/dist/{index-BS9GuhQN.d.cts → index-D7-Ctdwn.d.mts} +1 -2
  38. package/dist/index-D9W3cc9s.d.mts +5 -0
  39. package/dist/{index-Bx7IxKu-.d.mts → index-DLcnFzWU.d.mts} +1 -2
  40. package/dist/{index-z86wOHTb.d.cts → index-DS-HZ740.d.cts} +1 -2
  41. package/dist/index-Dxn97XnB.d.cts +5 -0
  42. package/dist/{index-BoMacn6F.d.cts → index-Dz8xde7b.d.cts} +1 -2
  43. package/dist/{index-CarHCWLQ.d.cts → index-DzPnzx9p.d.mts} +1 -2
  44. package/dist/{index-DVR6hZCd.d.cts → index-F79chYlR.d.mts} +1 -2
  45. package/dist/index-HNU5ME-U.d.cts +5 -0
  46. package/dist/index.cjs +5 -3
  47. package/dist/index.d.cts +15 -196
  48. package/dist/index.d.mts +15 -196
  49. package/dist/index.mjs +5 -4
  50. package/dist/{layout-TqD8vcEl.mjs → layout-Dx0Un_6l.mjs} +1 -1
  51. package/dist/{layout-B1-2dfQ9.cjs → layout-JlwVxg8y.cjs} +1 -1
  52. package/dist/layout.cjs +1 -1
  53. package/dist/layout.d.cts +3 -2
  54. package/dist/layout.d.mts +3 -2
  55. package/dist/layout.mjs +1 -1
  56. package/dist/position.d.cts +3 -2
  57. package/dist/position.d.mts +3 -2
  58. package/dist/{presets-DlUVOAIL.cjs → presets-BgKBhlRl.cjs} +3 -3
  59. package/dist/{presets-DjaCx0dm.mjs → presets-CcKoA0BA.mjs} +3 -3
  60. package/dist/props.cjs +4 -4
  61. package/dist/props.mjs +4 -4
  62. package/dist/shadow.d.cts +3 -2
  63. package/dist/shadow.d.mts +3 -2
  64. package/dist/should-forward-prop.cjs +3 -3
  65. package/dist/should-forward-prop.mjs +3 -3
  66. package/dist/{space-C14uiNpw.cjs → space-CAX_62yL.cjs} +1 -1
  67. package/dist/{space-CNrX-zoo.mjs → space-DEf9-0r9.mjs} +1 -1
  68. package/dist/space.cjs +1 -1
  69. package/dist/space.d.cts +3 -2
  70. package/dist/space.d.mts +3 -2
  71. package/dist/space.mjs +1 -1
  72. package/dist/theme-get-CwPt9eDy.mjs +5 -0
  73. package/dist/theme-get-D0fH7Jrd.cjs +10 -0
  74. package/dist/theme-get.cjs +3 -6
  75. package/dist/theme-get.d.cts +1 -5
  76. package/dist/theme-get.d.mts +1 -5
  77. package/dist/theme-get.mjs +1 -4
  78. package/dist/types-CCujn9-2.d.cts +304 -0
  79. package/dist/types-CCujn9-2.d.mts +304 -0
  80. package/dist/typography.d.cts +3 -2
  81. package/dist/typography.d.mts +3 -2
  82. package/dist/{variant-ChsBzwrI.cjs → variant-C7vPzZHo.cjs} +1 -1
  83. package/dist/{variant-CWUfe1Cc.mjs → variant-DQA9pqwW.mjs} +1 -1
  84. package/dist/variant.cjs +1 -1
  85. package/dist/variant.d.cts +3 -2
  86. package/dist/variant.d.mts +3 -2
  87. package/dist/variant.mjs +1 -1
  88. package/package.json +186 -207
  89. package/dist/index-Ce09s0FQ.d.cts +0 -6
  90. package/dist/index-D3t1Lyte.d.mts +0 -6
  91. package/dist/index-J3PebPto.d.mts +0 -6
  92. 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.1.6",
3
+ "version": "5.3.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",
@@ -28,213 +28,183 @@
28
28
  "dist"
29
29
  ],
30
30
  "exports": {
31
- ".": "./src/index.ts",
32
- "./core": "./src/core/index.ts",
33
- "./space": "./src/space/index.ts",
34
- "./color": "./src/color/index.ts",
35
- "./layout": "./src/layout/index.ts",
36
- "./typography": "./src/typography/index.ts",
37
- "./flexbox": "./src/flexbox/index.ts",
38
- "./grid": "./src/grid/index.ts",
39
- "./background": "./src/background/index.ts",
40
- "./border": "./src/border/index.ts",
41
- "./position": "./src/position/index.ts",
42
- "./shadow": "./src/shadow/index.ts",
43
- "./variant": "./src/variant/index.ts",
44
- "./css": "./src/css/index.ts",
45
- "./theme-get": "./src/theme-get/index.ts",
46
- "./props": "./src/props/index.ts",
47
- "./should-forward-prop": "./src/should-forward-prop/index.ts"
31
+ ".": {
32
+ "import": {
33
+ "types": "./dist/index.d.mts",
34
+ "default": "./dist/index.mjs"
35
+ },
36
+ "require": {
37
+ "types": "./dist/index.d.cts",
38
+ "default": "./dist/index.cjs"
39
+ }
40
+ },
41
+ "./core": {
42
+ "import": {
43
+ "types": "./dist/core.d.mts",
44
+ "default": "./dist/core.mjs"
45
+ },
46
+ "require": {
47
+ "types": "./dist/core.d.cts",
48
+ "default": "./dist/core.cjs"
49
+ }
50
+ },
51
+ "./space": {
52
+ "import": {
53
+ "types": "./dist/space.d.mts",
54
+ "default": "./dist/space.mjs"
55
+ },
56
+ "require": {
57
+ "types": "./dist/space.d.cts",
58
+ "default": "./dist/space.cjs"
59
+ }
60
+ },
61
+ "./color": {
62
+ "import": {
63
+ "types": "./dist/color.d.mts",
64
+ "default": "./dist/color.mjs"
65
+ },
66
+ "require": {
67
+ "types": "./dist/color.d.cts",
68
+ "default": "./dist/color.cjs"
69
+ }
70
+ },
71
+ "./layout": {
72
+ "import": {
73
+ "types": "./dist/layout.d.mts",
74
+ "default": "./dist/layout.mjs"
75
+ },
76
+ "require": {
77
+ "types": "./dist/layout.d.cts",
78
+ "default": "./dist/layout.cjs"
79
+ }
80
+ },
81
+ "./typography": {
82
+ "import": {
83
+ "types": "./dist/typography.d.mts",
84
+ "default": "./dist/typography.mjs"
85
+ },
86
+ "require": {
87
+ "types": "./dist/typography.d.cts",
88
+ "default": "./dist/typography.cjs"
89
+ }
90
+ },
91
+ "./flexbox": {
92
+ "import": {
93
+ "types": "./dist/flexbox.d.mts",
94
+ "default": "./dist/flexbox.mjs"
95
+ },
96
+ "require": {
97
+ "types": "./dist/flexbox.d.cts",
98
+ "default": "./dist/flexbox.cjs"
99
+ }
100
+ },
101
+ "./grid": {
102
+ "import": {
103
+ "types": "./dist/grid.d.mts",
104
+ "default": "./dist/grid.mjs"
105
+ },
106
+ "require": {
107
+ "types": "./dist/grid.d.cts",
108
+ "default": "./dist/grid.cjs"
109
+ }
110
+ },
111
+ "./background": {
112
+ "import": {
113
+ "types": "./dist/background.d.mts",
114
+ "default": "./dist/background.mjs"
115
+ },
116
+ "require": {
117
+ "types": "./dist/background.d.cts",
118
+ "default": "./dist/background.cjs"
119
+ }
120
+ },
121
+ "./border": {
122
+ "import": {
123
+ "types": "./dist/border.d.mts",
124
+ "default": "./dist/border.mjs"
125
+ },
126
+ "require": {
127
+ "types": "./dist/border.d.cts",
128
+ "default": "./dist/border.cjs"
129
+ }
130
+ },
131
+ "./position": {
132
+ "import": {
133
+ "types": "./dist/position.d.mts",
134
+ "default": "./dist/position.mjs"
135
+ },
136
+ "require": {
137
+ "types": "./dist/position.d.cts",
138
+ "default": "./dist/position.cjs"
139
+ }
140
+ },
141
+ "./shadow": {
142
+ "import": {
143
+ "types": "./dist/shadow.d.mts",
144
+ "default": "./dist/shadow.mjs"
145
+ },
146
+ "require": {
147
+ "types": "./dist/shadow.d.cts",
148
+ "default": "./dist/shadow.cjs"
149
+ }
150
+ },
151
+ "./variant": {
152
+ "import": {
153
+ "types": "./dist/variant.d.mts",
154
+ "default": "./dist/variant.mjs"
155
+ },
156
+ "require": {
157
+ "types": "./dist/variant.d.cts",
158
+ "default": "./dist/variant.cjs"
159
+ }
160
+ },
161
+ "./css": {
162
+ "import": {
163
+ "types": "./dist/css.d.mts",
164
+ "default": "./dist/css.mjs"
165
+ },
166
+ "require": {
167
+ "types": "./dist/css.d.cts",
168
+ "default": "./dist/css.cjs"
169
+ }
170
+ },
171
+ "./theme-get": {
172
+ "import": {
173
+ "types": "./dist/theme-get.d.mts",
174
+ "default": "./dist/theme-get.mjs"
175
+ },
176
+ "require": {
177
+ "types": "./dist/theme-get.d.cts",
178
+ "default": "./dist/theme-get.cjs"
179
+ }
180
+ },
181
+ "./props": {
182
+ "import": {
183
+ "types": "./dist/props.d.mts",
184
+ "default": "./dist/props.mjs"
185
+ },
186
+ "require": {
187
+ "types": "./dist/props.d.cts",
188
+ "default": "./dist/props.cjs"
189
+ }
190
+ },
191
+ "./should-forward-prop": {
192
+ "import": {
193
+ "types": "./dist/should-forward-prop.d.mts",
194
+ "default": "./dist/should-forward-prop.mjs"
195
+ },
196
+ "require": {
197
+ "types": "./dist/should-forward-prop.d.cts",
198
+ "default": "./dist/should-forward-prop.cjs"
199
+ }
200
+ }
48
201
  },
49
202
  "imports": {
50
203
  "#presets": "./src/presets/index.ts"
51
204
  },
52
- "types": "./src/index.ts",
205
+ "types": "./dist/index.d.mts",
53
206
  "publishConfig": {
54
- "access": "public",
55
- "exports": {
56
- ".": {
57
- "import": {
58
- "types": "./dist/index.d.mts",
59
- "default": "./dist/index.mjs"
60
- },
61
- "require": {
62
- "types": "./dist/index.d.cts",
63
- "default": "./dist/index.cjs"
64
- }
65
- },
66
- "./core": {
67
- "import": {
68
- "types": "./dist/core.d.mts",
69
- "default": "./dist/core.mjs"
70
- },
71
- "require": {
72
- "types": "./dist/core.d.cts",
73
- "default": "./dist/core.cjs"
74
- }
75
- },
76
- "./space": {
77
- "import": {
78
- "types": "./dist/space.d.mts",
79
- "default": "./dist/space.mjs"
80
- },
81
- "require": {
82
- "types": "./dist/space.d.cts",
83
- "default": "./dist/space.cjs"
84
- }
85
- },
86
- "./color": {
87
- "import": {
88
- "types": "./dist/color.d.mts",
89
- "default": "./dist/color.mjs"
90
- },
91
- "require": {
92
- "types": "./dist/color.d.cts",
93
- "default": "./dist/color.cjs"
94
- }
95
- },
96
- "./layout": {
97
- "import": {
98
- "types": "./dist/layout.d.mts",
99
- "default": "./dist/layout.mjs"
100
- },
101
- "require": {
102
- "types": "./dist/layout.d.cts",
103
- "default": "./dist/layout.cjs"
104
- }
105
- },
106
- "./typography": {
107
- "import": {
108
- "types": "./dist/typography.d.mts",
109
- "default": "./dist/typography.mjs"
110
- },
111
- "require": {
112
- "types": "./dist/typography.d.cts",
113
- "default": "./dist/typography.cjs"
114
- }
115
- },
116
- "./flexbox": {
117
- "import": {
118
- "types": "./dist/flexbox.d.mts",
119
- "default": "./dist/flexbox.mjs"
120
- },
121
- "require": {
122
- "types": "./dist/flexbox.d.cts",
123
- "default": "./dist/flexbox.cjs"
124
- }
125
- },
126
- "./grid": {
127
- "import": {
128
- "types": "./dist/grid.d.mts",
129
- "default": "./dist/grid.mjs"
130
- },
131
- "require": {
132
- "types": "./dist/grid.d.cts",
133
- "default": "./dist/grid.cjs"
134
- }
135
- },
136
- "./background": {
137
- "import": {
138
- "types": "./dist/background.d.mts",
139
- "default": "./dist/background.mjs"
140
- },
141
- "require": {
142
- "types": "./dist/background.d.cts",
143
- "default": "./dist/background.cjs"
144
- }
145
- },
146
- "./border": {
147
- "import": {
148
- "types": "./dist/border.d.mts",
149
- "default": "./dist/border.mjs"
150
- },
151
- "require": {
152
- "types": "./dist/border.d.cts",
153
- "default": "./dist/border.cjs"
154
- }
155
- },
156
- "./position": {
157
- "import": {
158
- "types": "./dist/position.d.mts",
159
- "default": "./dist/position.mjs"
160
- },
161
- "require": {
162
- "types": "./dist/position.d.cts",
163
- "default": "./dist/position.cjs"
164
- }
165
- },
166
- "./shadow": {
167
- "import": {
168
- "types": "./dist/shadow.d.mts",
169
- "default": "./dist/shadow.mjs"
170
- },
171
- "require": {
172
- "types": "./dist/shadow.d.cts",
173
- "default": "./dist/shadow.cjs"
174
- }
175
- },
176
- "./variant": {
177
- "import": {
178
- "types": "./dist/variant.d.mts",
179
- "default": "./dist/variant.mjs"
180
- },
181
- "require": {
182
- "types": "./dist/variant.d.cts",
183
- "default": "./dist/variant.cjs"
184
- }
185
- },
186
- "./css": {
187
- "import": {
188
- "types": "./dist/css.d.mts",
189
- "default": "./dist/css.mjs"
190
- },
191
- "require": {
192
- "types": "./dist/css.d.cts",
193
- "default": "./dist/css.cjs"
194
- }
195
- },
196
- "./theme-get": {
197
- "import": {
198
- "types": "./dist/theme-get.d.mts",
199
- "default": "./dist/theme-get.mjs"
200
- },
201
- "require": {
202
- "types": "./dist/theme-get.d.cts",
203
- "default": "./dist/theme-get.cjs"
204
- }
205
- },
206
- "./props": {
207
- "import": {
208
- "types": "./dist/props.d.mts",
209
- "default": "./dist/props.mjs"
210
- },
211
- "require": {
212
- "types": "./dist/props.d.cts",
213
- "default": "./dist/props.cjs"
214
- }
215
- },
216
- "./should-forward-prop": {
217
- "import": {
218
- "types": "./dist/should-forward-prop.d.mts",
219
- "default": "./dist/should-forward-prop.mjs"
220
- },
221
- "require": {
222
- "types": "./dist/should-forward-prop.d.cts",
223
- "default": "./dist/should-forward-prop.cjs"
224
- }
225
- }
226
- },
227
- "main": "./dist/index.cjs",
228
- "module": "./dist/index.mjs",
229
- "types": "./dist/index.d.mts"
230
- },
231
- "scripts": {
232
- "build": "tsdown",
233
- "lint": "eslint . --max-warnings 0",
234
- "typecheck": "tsc --noEmit",
235
- "test": "vitest run",
236
- "test:coverage": "vitest run --coverage",
237
- "prepublishOnly": "pnpm build"
207
+ "access": "public"
238
208
  },
239
209
  "dependencies": {
240
210
  "csstype": "^3.1.3"
@@ -244,12 +214,21 @@
244
214
  },
245
215
  "devDependencies": {
246
216
  "@emotion/is-prop-valid": "^1.4.0",
247
- "@soroush.tech/eslint-config": "workspace:*",
248
217
  "@vitest/coverage-v8": "^4.1.9",
249
218
  "eslint": "^10.5.0",
250
219
  "globals": "^17.7.0",
251
220
  "tsdown": "^0.22.3",
252
221
  "typescript": "~6.0.3",
253
- "vitest": "^4.1.9"
254
- }
255
- }
222
+ "vitest": "^4.1.9",
223
+ "@soroush.tech/eslint-config": "0.0.0"
224
+ },
225
+ "scripts": {
226
+ "build": "tsdown",
227
+ "lint": "eslint . --max-warnings 0",
228
+ "typecheck": "tsc --noEmit",
229
+ "test": "vitest run",
230
+ "test:coverage": "vitest run --coverage"
231
+ },
232
+ "main": "./dist/index.cjs",
233
+ "module": "./dist/index.mjs"
234
+ }
@@ -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 };