@soroush.tech/styled-system 5.1.6

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 (121) hide show
  1. package/LICENSE +26 -0
  2. package/README.md +150 -0
  3. package/dist/background-B-jql3jb.mjs +16 -0
  4. package/dist/background-wugr6cG7.cjs +21 -0
  5. package/dist/background.cjs +7 -0
  6. package/dist/background.d.cts +2 -0
  7. package/dist/background.d.mts +2 -0
  8. package/dist/background.mjs +2 -0
  9. package/dist/border-Dder4Dhp.mjs +131 -0
  10. package/dist/border-UuT-fTpy.cjs +136 -0
  11. package/dist/border.cjs +7 -0
  12. package/dist/border.d.cts +2 -0
  13. package/dist/border.d.mts +2 -0
  14. package/dist/border.mjs +2 -0
  15. package/dist/color-BNs17Gw-.cjs +22 -0
  16. package/dist/color-CGmMe8yP.mjs +17 -0
  17. package/dist/color.cjs +7 -0
  18. package/dist/color.d.cts +2 -0
  19. package/dist/color.d.mts +2 -0
  20. package/dist/color.mjs +2 -0
  21. package/dist/core.cjs +144 -0
  22. package/dist/core.d.cts +2 -0
  23. package/dist/core.d.mts +2 -0
  24. package/dist/core.mjs +138 -0
  25. package/dist/css-nzeM_Xnf.cjs +231 -0
  26. package/dist/css-rLZ9Oeye.mjs +214 -0
  27. package/dist/css.cjs +9 -0
  28. package/dist/css.d.cts +12 -0
  29. package/dist/css.d.mts +12 -0
  30. package/dist/css.mjs +2 -0
  31. package/dist/flexbox-CFkO6PrP.cjs +22 -0
  32. package/dist/flexbox-XQnlnfa4.mjs +18 -0
  33. package/dist/flexbox.cjs +7 -0
  34. package/dist/flexbox.d.cts +2 -0
  35. package/dist/flexbox.d.mts +2 -0
  36. package/dist/flexbox.mjs +2 -0
  37. package/dist/grid-Bpk-QjhF.mjs +41 -0
  38. package/dist/grid-CpvRIng4.cjs +47 -0
  39. package/dist/grid.cjs +7 -0
  40. package/dist/grid.d.cts +2 -0
  41. package/dist/grid.d.mts +2 -0
  42. package/dist/grid.mjs +2 -0
  43. package/dist/index-50KH4Mo7.d.cts +8 -0
  44. package/dist/index-8PSQ0vkP.d.cts +15 -0
  45. package/dist/index-9ZhIewzy.d.mts +6 -0
  46. package/dist/index-BBTVE4EM.d.mts +15 -0
  47. package/dist/index-BS9GuhQN.d.cts +6 -0
  48. package/dist/index-BoMacn6F.d.cts +6 -0
  49. package/dist/index-Bx7IxKu-.d.mts +6 -0
  50. package/dist/index-C13YRARN.d.mts +6 -0
  51. package/dist/index-C3_fScux.d.mts +8 -0
  52. package/dist/index-CX2jWEGJ.d.mts +6 -0
  53. package/dist/index-CarHCWLQ.d.cts +6 -0
  54. package/dist/index-Ce09s0FQ.d.cts +6 -0
  55. package/dist/index-CrUx2vIP.d.mts +6 -0
  56. package/dist/index-CsS_gcI9.d.mts +6 -0
  57. package/dist/index-D3t1Lyte.d.mts +6 -0
  58. package/dist/index-D8EyRZ5p.d.cts +62 -0
  59. package/dist/index-D8EyRZ5p.d.mts +62 -0
  60. package/dist/index-DPWkvooj.d.mts +6 -0
  61. package/dist/index-DVR6hZCd.d.cts +6 -0
  62. package/dist/index-DZaFk5pk.d.cts +6 -0
  63. package/dist/index-J3PebPto.d.mts +6 -0
  64. package/dist/index-Nc-10syf.d.cts +6 -0
  65. package/dist/index-j3E1mxCg.d.cts +6 -0
  66. package/dist/index-z86wOHTb.d.cts +6 -0
  67. package/dist/index.cjs +185 -0
  68. package/dist/index.d.cts +281 -0
  69. package/dist/index.d.mts +281 -0
  70. package/dist/index.mjs +98 -0
  71. package/dist/layout-B1-2dfQ9.cjs +48 -0
  72. package/dist/layout-TqD8vcEl.mjs +42 -0
  73. package/dist/layout.cjs +7 -0
  74. package/dist/layout.d.cts +2 -0
  75. package/dist/layout.d.mts +2 -0
  76. package/dist/layout.mjs +2 -0
  77. package/dist/position-jf6VlRyR.mjs +42 -0
  78. package/dist/position-zWvCE4hD.cjs +48 -0
  79. package/dist/position.cjs +7 -0
  80. package/dist/position.d.cts +2 -0
  81. package/dist/position.d.mts +2 -0
  82. package/dist/position.mjs +2 -0
  83. package/dist/presets-DjaCx0dm.mjs +16 -0
  84. package/dist/presets-DlUVOAIL.cjs +21 -0
  85. package/dist/props.cjs +23 -0
  86. package/dist/props.d.cts +5 -0
  87. package/dist/props.d.mts +5 -0
  88. package/dist/props.mjs +21 -0
  89. package/dist/shadow-Bp7lx_41.mjs +14 -0
  90. package/dist/shadow-BrDnaQQl.cjs +18 -0
  91. package/dist/shadow.cjs +7 -0
  92. package/dist/shadow.d.cts +2 -0
  93. package/dist/shadow.d.mts +2 -0
  94. package/dist/shadow.mjs +2 -0
  95. package/dist/should-forward-prop.cjs +47 -0
  96. package/dist/should-forward-prop.d.cts +6 -0
  97. package/dist/should-forward-prop.d.mts +6 -0
  98. package/dist/should-forward-prop.mjs +18 -0
  99. package/dist/space-C14uiNpw.cjs +139 -0
  100. package/dist/space-CNrX-zoo.mjs +122 -0
  101. package/dist/space.cjs +9 -0
  102. package/dist/space.d.cts +2 -0
  103. package/dist/space.d.mts +2 -0
  104. package/dist/space.mjs +2 -0
  105. package/dist/theme-get.cjs +10 -0
  106. package/dist/theme-get.d.cts +6 -0
  107. package/dist/theme-get.d.mts +6 -0
  108. package/dist/theme-get.mjs +5 -0
  109. package/dist/typography-CptBXSy0.mjs +38 -0
  110. package/dist/typography-DD_eWLLx.cjs +42 -0
  111. package/dist/typography.cjs +7 -0
  112. package/dist/typography.d.cts +2 -0
  113. package/dist/typography.d.mts +2 -0
  114. package/dist/typography.mjs +2 -0
  115. package/dist/variant-CWUfe1Cc.mjs +22 -0
  116. package/dist/variant-ChsBzwrI.cjs +45 -0
  117. package/dist/variant.cjs +10 -0
  118. package/dist/variant.d.cts +2 -0
  119. package/dist/variant.d.mts +2 -0
  120. package/dist/variant.mjs +2 -0
  121. package/package.json +255 -0
@@ -0,0 +1,2 @@
1
+ import { a as variant, i as textStyle, n as buttonStyle, r as colorStyle, t as VariantOptions } from "./index-8PSQ0vkP.cjs";
2
+ export { VariantOptions, buttonStyle, colorStyle, variant as default, variant, textStyle };
@@ -0,0 +1,2 @@
1
+ import { a as variant, i as textStyle, n as buttonStyle, r as colorStyle, t as VariantOptions } from "./index-BBTVE4EM.mjs";
2
+ export { VariantOptions, buttonStyle, colorStyle, variant as default, variant, textStyle };
@@ -0,0 +1,2 @@
1
+ import { i as variant, n as colorStyle, r as textStyle, t as buttonStyle } from "./variant-CWUfe1Cc.mjs";
2
+ export { buttonStyle, colorStyle, variant as default, variant, textStyle };
package/package.json ADDED
@@ -0,0 +1,255 @@
1
+ {
2
+ "name": "@soroush.tech/styled-system",
3
+ "version": "5.1.6",
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
+ "keywords": [
6
+ "styled-system",
7
+ "css-in-js",
8
+ "emotion",
9
+ "theme",
10
+ "responsive",
11
+ "design-system",
12
+ "typescript"
13
+ ],
14
+ "author": "Masoud Soroush <masoud@soroush.tech>",
15
+ "license": "MIT",
16
+ "homepage": "https://github.com/soroush-tech/soroush.tech/tree/main/packages/styled-system#readme",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/soroush-tech/soroush.tech.git",
20
+ "directory": "packages/styled-system"
21
+ },
22
+ "bugs": {
23
+ "url": "https://github.com/soroush-tech/soroush.tech/issues"
24
+ },
25
+ "type": "module",
26
+ "sideEffects": false,
27
+ "files": [
28
+ "dist"
29
+ ],
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"
48
+ },
49
+ "imports": {
50
+ "#presets": "./src/presets/index.ts"
51
+ },
52
+ "types": "./src/index.ts",
53
+ "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"
238
+ },
239
+ "dependencies": {
240
+ "csstype": "^3.1.3"
241
+ },
242
+ "peerDependencies": {
243
+ "@emotion/is-prop-valid": "^1.4.0"
244
+ },
245
+ "devDependencies": {
246
+ "@emotion/is-prop-valid": "^1.4.0",
247
+ "@soroush.tech/eslint-config": "workspace:*",
248
+ "@vitest/coverage-v8": "^4.1.9",
249
+ "eslint": "^10.5.0",
250
+ "globals": "^17.7.0",
251
+ "tsdown": "^0.22.3",
252
+ "typescript": "~6.0.3",
253
+ "vitest": "^4.1.9"
254
+ }
255
+ }