@tenphi/tasty 0.0.0-snapshot.e4aff73 → 0.0.0-snapshot.e4e4347

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 (360) hide show
  1. package/README.md +441 -362
  2. package/dist/babel-types-BKDTT4--.d.ts +18 -0
  3. package/dist/chunks/async-storage-f9j9JRtq.js +37 -0
  4. package/dist/chunks/async-storage-f9j9JRtq.js.map +1 -0
  5. package/dist/chunks/build-config-5d8WlQbq.js +60 -0
  6. package/dist/chunks/build-config-5d8WlQbq.js.map +1 -0
  7. package/dist/chunks/collector-CjCak4iE.js +210 -0
  8. package/dist/chunks/collector-CjCak4iE.js.map +1 -0
  9. package/dist/chunks/config-engine-uOFYZidB.js +272 -0
  10. package/dist/chunks/config-engine-uOFYZidB.js.map +1 -0
  11. package/dist/chunks/config-file-DlZXJMj8.js +25 -0
  12. package/dist/chunks/config-file-DlZXJMj8.js.map +1 -0
  13. package/dist/chunks/css-definitions-ubrHP97m.js +910 -0
  14. package/dist/chunks/css-definitions-ubrHP97m.js.map +1 -0
  15. package/dist/chunks/css-resources-P7IBUUZs.js +142 -0
  16. package/dist/chunks/css-resources-P7IBUUZs.js.map +1 -0
  17. package/dist/{debug.js → chunks/debug-CJ31U_WE.js} +197 -149
  18. package/dist/chunks/debug-CJ31U_WE.js.map +1 -0
  19. package/dist/chunks/dsl-DYSJc1-T.js +1383 -0
  20. package/dist/chunks/dsl-DYSJc1-T.js.map +1 -0
  21. package/dist/chunks/hydration-TRcz5vnk.js +41 -0
  22. package/dist/chunks/hydration-TRcz5vnk.js.map +1 -0
  23. package/dist/chunks/react-runtime-CyyCI02N.js +689 -0
  24. package/dist/chunks/react-runtime-CyyCI02N.js.map +1 -0
  25. package/dist/chunks/runtime-engine-BQmOu5-W.js +2432 -0
  26. package/dist/chunks/runtime-engine-BQmOu5-W.js.map +1 -0
  27. package/dist/chunks/runtime-state-DEsyUMU-.js +152 -0
  28. package/dist/chunks/runtime-state-DEsyUMU-.js.map +1 -0
  29. package/dist/{utils/merge-styles.js → chunks/shared-utils-y-HjvPN4.js} +61 -58
  30. package/dist/chunks/shared-utils-y-HjvPN4.js.map +1 -0
  31. package/dist/chunks/style-engine-BX2LshDZ.js +5466 -0
  32. package/dist/chunks/style-engine-BX2LshDZ.js.map +1 -0
  33. package/dist/chunks/zero-engine-Dw0P4yGM.js +310 -0
  34. package/dist/chunks/zero-engine-Dw0P4yGM.js.map +1 -0
  35. package/dist/collector-CTU-nl0g.d.ts +164 -0
  36. package/dist/config-CcxqSZI2.d.ts +1368 -0
  37. package/dist/core/index.d.ts +5 -34
  38. package/dist/core/index.js +9 -27
  39. package/dist/hydrate-CRyjjAyl.d.ts +22 -0
  40. package/dist/index-xtey-KDu.d.ts +1950 -0
  41. package/dist/index.d.ts +5 -49
  42. package/dist/index.js +11 -34
  43. package/dist/{utils/merge-styles.d.ts → merge-styles-DSkVc6CD.d.ts} +3 -4
  44. package/dist/ssr/astro-client.d.ts +1 -0
  45. package/dist/ssr/astro-client.js +6 -0
  46. package/dist/ssr/astro-client.js.map +1 -0
  47. package/dist/ssr/astro-middleware-extract-static.d.ts +10 -0
  48. package/dist/ssr/astro-middleware-extract-static.js +9 -0
  49. package/dist/ssr/astro-middleware-extract-static.js.map +1 -0
  50. package/dist/ssr/astro-middleware-extract.d.ts +10 -0
  51. package/dist/ssr/astro-middleware-extract.js +9 -0
  52. package/dist/ssr/astro-middleware-extract.js.map +1 -0
  53. package/dist/ssr/astro-middleware-static.d.ts +17 -0
  54. package/dist/ssr/astro-middleware-static.js +7 -0
  55. package/dist/ssr/astro-middleware-static.js.map +1 -0
  56. package/dist/ssr/astro-middleware.d.ts +18 -0
  57. package/dist/ssr/astro-middleware.js +7 -0
  58. package/dist/ssr/astro-middleware.js.map +1 -0
  59. package/dist/ssr/astro.d.ts +110 -12
  60. package/dist/ssr/astro.js +206 -50
  61. package/dist/ssr/astro.js.map +1 -1
  62. package/dist/ssr/client.d.ts +2 -0
  63. package/dist/ssr/client.js +2 -0
  64. package/dist/ssr/index.d.ts +17 -5
  65. package/dist/ssr/index.js +7 -9
  66. package/dist/ssr/index.js.map +1 -1
  67. package/dist/ssr/next-config.d.ts +64 -0
  68. package/dist/ssr/next-config.js +123 -0
  69. package/dist/ssr/next-config.js.map +1 -0
  70. package/dist/ssr/next.d.ts +13 -12
  71. package/dist/ssr/next.js +40 -51
  72. package/dist/ssr/next.js.map +1 -1
  73. package/dist/static/index.d.ts +90 -5
  74. package/dist/static/index.js +31 -4
  75. package/dist/static/index.js.map +1 -0
  76. package/dist/static/inject.d.ts +4 -0
  77. package/dist/static/inject.js +17 -0
  78. package/dist/static/inject.js.map +1 -0
  79. package/dist/types-DJEM_BOJ.d.ts +1567 -0
  80. package/dist/zero/babel.d.ts +20 -108
  81. package/dist/zero/babel.js +211 -142
  82. package/dist/zero/babel.js.map +1 -1
  83. package/dist/zero/index.d.ts +135 -3
  84. package/dist/zero/index.js +23 -3
  85. package/dist/zero/index.js.map +1 -0
  86. package/dist/zero/next.d.ts +16 -5
  87. package/dist/zero/next.js +8 -42
  88. package/dist/zero/next.js.map +1 -1
  89. package/docs/README.md +23 -12
  90. package/docs/adoption.md +72 -37
  91. package/docs/ai-agents.md +255 -0
  92. package/docs/comparison.md +83 -54
  93. package/docs/configuration.md +764 -74
  94. package/docs/debug.md +39 -24
  95. package/docs/design-system.md +187 -37
  96. package/docs/dsl.md +711 -164
  97. package/docs/getting-started.md +132 -52
  98. package/docs/injector.md +197 -90
  99. package/docs/methodology.md +154 -48
  100. package/docs/migration-v3.md +285 -0
  101. package/docs/pipeline.md +768 -0
  102. package/docs/plugins.md +333 -0
  103. package/docs/react-api.md +742 -0
  104. package/docs/runtime-benchmarks.md +388 -0
  105. package/docs/ssr.md +403 -149
  106. package/docs/styles.md +200 -45
  107. package/docs/tasty-static.md +354 -99
  108. package/package.json +153 -35
  109. package/tasty.config.ts +6 -0
  110. package/dist/_virtual/_rolldown/runtime.js +0 -8
  111. package/dist/chunks/cacheKey.js +0 -78
  112. package/dist/chunks/cacheKey.js.map +0 -1
  113. package/dist/chunks/definitions.d.ts +0 -37
  114. package/dist/chunks/definitions.js +0 -259
  115. package/dist/chunks/definitions.js.map +0 -1
  116. package/dist/chunks/renderChunk.js +0 -60
  117. package/dist/chunks/renderChunk.js.map +0 -1
  118. package/dist/config.d.ts +0 -323
  119. package/dist/config.js +0 -465
  120. package/dist/config.js.map +0 -1
  121. package/dist/debug.d.ts +0 -89
  122. package/dist/debug.js.map +0 -1
  123. package/dist/hooks/useGlobalStyles.d.ts +0 -30
  124. package/dist/hooks/useGlobalStyles.js +0 -83
  125. package/dist/hooks/useGlobalStyles.js.map +0 -1
  126. package/dist/hooks/useKeyframes.d.ts +0 -56
  127. package/dist/hooks/useKeyframes.js +0 -69
  128. package/dist/hooks/useKeyframes.js.map +0 -1
  129. package/dist/hooks/useProperty.d.ts +0 -79
  130. package/dist/hooks/useProperty.js +0 -114
  131. package/dist/hooks/useProperty.js.map +0 -1
  132. package/dist/hooks/useRawCSS.d.ts +0 -53
  133. package/dist/hooks/useRawCSS.js +0 -40
  134. package/dist/hooks/useRawCSS.js.map +0 -1
  135. package/dist/hooks/useStyles.d.ts +0 -45
  136. package/dist/hooks/useStyles.js +0 -249
  137. package/dist/hooks/useStyles.js.map +0 -1
  138. package/dist/injector/index.d.ts +0 -165
  139. package/dist/injector/index.js +0 -162
  140. package/dist/injector/index.js.map +0 -1
  141. package/dist/injector/injector.d.ts +0 -148
  142. package/dist/injector/injector.js +0 -430
  143. package/dist/injector/injector.js.map +0 -1
  144. package/dist/injector/sheet-manager.d.ts +0 -136
  145. package/dist/injector/sheet-manager.js +0 -729
  146. package/dist/injector/sheet-manager.js.map +0 -1
  147. package/dist/injector/types.d.ts +0 -144
  148. package/dist/keyframes/index.js +0 -206
  149. package/dist/keyframes/index.js.map +0 -1
  150. package/dist/parser/classify.js +0 -320
  151. package/dist/parser/classify.js.map +0 -1
  152. package/dist/parser/const.js +0 -33
  153. package/dist/parser/const.js.map +0 -1
  154. package/dist/parser/lru.js +0 -109
  155. package/dist/parser/lru.js.map +0 -1
  156. package/dist/parser/parser.d.ts +0 -25
  157. package/dist/parser/parser.js +0 -116
  158. package/dist/parser/parser.js.map +0 -1
  159. package/dist/parser/tokenizer.js +0 -69
  160. package/dist/parser/tokenizer.js.map +0 -1
  161. package/dist/parser/types.d.ts +0 -51
  162. package/dist/parser/types.js +0 -46
  163. package/dist/parser/types.js.map +0 -1
  164. package/dist/pipeline/conditions.d.ts +0 -134
  165. package/dist/pipeline/conditions.js +0 -406
  166. package/dist/pipeline/conditions.js.map +0 -1
  167. package/dist/pipeline/exclusive.js +0 -231
  168. package/dist/pipeline/exclusive.js.map +0 -1
  169. package/dist/pipeline/index.d.ts +0 -53
  170. package/dist/pipeline/index.js +0 -681
  171. package/dist/pipeline/index.js.map +0 -1
  172. package/dist/pipeline/materialize.js +0 -1105
  173. package/dist/pipeline/materialize.js.map +0 -1
  174. package/dist/pipeline/parseStateKey.d.ts +0 -15
  175. package/dist/pipeline/parseStateKey.js +0 -447
  176. package/dist/pipeline/parseStateKey.js.map +0 -1
  177. package/dist/pipeline/simplify.js +0 -516
  178. package/dist/pipeline/simplify.js.map +0 -1
  179. package/dist/pipeline/warnings.js +0 -18
  180. package/dist/pipeline/warnings.js.map +0 -1
  181. package/dist/plugins/okhsl-plugin.d.ts +0 -35
  182. package/dist/plugins/okhsl-plugin.js +0 -98
  183. package/dist/plugins/okhsl-plugin.js.map +0 -1
  184. package/dist/plugins/types.d.ts +0 -76
  185. package/dist/properties/index.js +0 -223
  186. package/dist/properties/index.js.map +0 -1
  187. package/dist/properties/property-type-resolver.d.ts +0 -24
  188. package/dist/properties/property-type-resolver.js +0 -91
  189. package/dist/properties/property-type-resolver.js.map +0 -1
  190. package/dist/ssr/async-storage.d.ts +0 -17
  191. package/dist/ssr/async-storage.js +0 -35
  192. package/dist/ssr/async-storage.js.map +0 -1
  193. package/dist/ssr/collect-auto-properties.js +0 -40
  194. package/dist/ssr/collect-auto-properties.js.map +0 -1
  195. package/dist/ssr/collector.d.ts +0 -85
  196. package/dist/ssr/collector.js +0 -183
  197. package/dist/ssr/collector.js.map +0 -1
  198. package/dist/ssr/context.d.ts +0 -8
  199. package/dist/ssr/context.js +0 -14
  200. package/dist/ssr/context.js.map +0 -1
  201. package/dist/ssr/format-global-rules.js +0 -22
  202. package/dist/ssr/format-global-rules.js.map +0 -1
  203. package/dist/ssr/format-keyframes.js +0 -70
  204. package/dist/ssr/format-keyframes.js.map +0 -1
  205. package/dist/ssr/format-property.js +0 -50
  206. package/dist/ssr/format-property.js.map +0 -1
  207. package/dist/ssr/format-rules.js +0 -70
  208. package/dist/ssr/format-rules.js.map +0 -1
  209. package/dist/ssr/hydrate.d.ts +0 -22
  210. package/dist/ssr/hydrate.js +0 -50
  211. package/dist/ssr/hydrate.js.map +0 -1
  212. package/dist/ssr/ssr-collector-ref.js +0 -12
  213. package/dist/ssr/ssr-collector-ref.js.map +0 -1
  214. package/dist/states/index.d.ts +0 -49
  215. package/dist/states/index.js +0 -169
  216. package/dist/states/index.js.map +0 -1
  217. package/dist/static/tastyStatic.d.ts +0 -46
  218. package/dist/static/tastyStatic.js +0 -31
  219. package/dist/static/tastyStatic.js.map +0 -1
  220. package/dist/static/types.d.ts +0 -49
  221. package/dist/static/types.js +0 -24
  222. package/dist/static/types.js.map +0 -1
  223. package/dist/styles/align.d.ts +0 -15
  224. package/dist/styles/align.js +0 -14
  225. package/dist/styles/align.js.map +0 -1
  226. package/dist/styles/border.d.ts +0 -25
  227. package/dist/styles/border.js +0 -114
  228. package/dist/styles/border.js.map +0 -1
  229. package/dist/styles/color.d.ts +0 -14
  230. package/dist/styles/color.js +0 -27
  231. package/dist/styles/color.js.map +0 -1
  232. package/dist/styles/createStyle.js +0 -80
  233. package/dist/styles/createStyle.js.map +0 -1
  234. package/dist/styles/dimension.js +0 -97
  235. package/dist/styles/dimension.js.map +0 -1
  236. package/dist/styles/display.d.ts +0 -37
  237. package/dist/styles/display.js +0 -67
  238. package/dist/styles/display.js.map +0 -1
  239. package/dist/styles/fade.d.ts +0 -15
  240. package/dist/styles/fade.js +0 -58
  241. package/dist/styles/fade.js.map +0 -1
  242. package/dist/styles/fill.d.ts +0 -42
  243. package/dist/styles/fill.js +0 -52
  244. package/dist/styles/fill.js.map +0 -1
  245. package/dist/styles/flow.d.ts +0 -16
  246. package/dist/styles/flow.js +0 -12
  247. package/dist/styles/flow.js.map +0 -1
  248. package/dist/styles/gap.d.ts +0 -31
  249. package/dist/styles/gap.js +0 -37
  250. package/dist/styles/gap.js.map +0 -1
  251. package/dist/styles/height.d.ts +0 -17
  252. package/dist/styles/height.js +0 -20
  253. package/dist/styles/height.js.map +0 -1
  254. package/dist/styles/index.d.ts +0 -2
  255. package/dist/styles/index.js +0 -9
  256. package/dist/styles/index.js.map +0 -1
  257. package/dist/styles/inset.d.ts +0 -52
  258. package/dist/styles/inset.js +0 -150
  259. package/dist/styles/inset.js.map +0 -1
  260. package/dist/styles/justify.d.ts +0 -15
  261. package/dist/styles/justify.js +0 -14
  262. package/dist/styles/justify.js.map +0 -1
  263. package/dist/styles/list.d.ts +0 -16
  264. package/dist/styles/list.js +0 -98
  265. package/dist/styles/list.js.map +0 -1
  266. package/dist/styles/margin.d.ts +0 -24
  267. package/dist/styles/margin.js +0 -104
  268. package/dist/styles/margin.js.map +0 -1
  269. package/dist/styles/outline.d.ts +0 -29
  270. package/dist/styles/outline.js +0 -65
  271. package/dist/styles/outline.js.map +0 -1
  272. package/dist/styles/padding.d.ts +0 -24
  273. package/dist/styles/padding.js +0 -104
  274. package/dist/styles/padding.js.map +0 -1
  275. package/dist/styles/predefined.d.ts +0 -71
  276. package/dist/styles/predefined.js +0 -238
  277. package/dist/styles/predefined.js.map +0 -1
  278. package/dist/styles/preset.d.ts +0 -47
  279. package/dist/styles/preset.js +0 -126
  280. package/dist/styles/preset.js.map +0 -1
  281. package/dist/styles/radius.d.ts +0 -14
  282. package/dist/styles/radius.js +0 -51
  283. package/dist/styles/radius.js.map +0 -1
  284. package/dist/styles/scrollbar.d.ts +0 -25
  285. package/dist/styles/scrollbar.js +0 -48
  286. package/dist/styles/scrollbar.js.map +0 -1
  287. package/dist/styles/shadow.d.ts +0 -14
  288. package/dist/styles/shadow.js +0 -24
  289. package/dist/styles/shadow.js.map +0 -1
  290. package/dist/styles/transition.d.ts +0 -14
  291. package/dist/styles/transition.js +0 -158
  292. package/dist/styles/transition.js.map +0 -1
  293. package/dist/styles/types.d.ts +0 -523
  294. package/dist/styles/width.d.ts +0 -17
  295. package/dist/styles/width.js +0 -20
  296. package/dist/styles/width.js.map +0 -1
  297. package/dist/tasty.d.ts +0 -114
  298. package/dist/tasty.js +0 -232
  299. package/dist/tasty.js.map +0 -1
  300. package/dist/types.d.ts +0 -184
  301. package/dist/utils/cache-wrapper.js +0 -22
  302. package/dist/utils/cache-wrapper.js.map +0 -1
  303. package/dist/utils/case-converter.js +0 -8
  304. package/dist/utils/case-converter.js.map +0 -1
  305. package/dist/utils/color-math.d.ts +0 -46
  306. package/dist/utils/color-math.js +0 -749
  307. package/dist/utils/color-math.js.map +0 -1
  308. package/dist/utils/color-space.d.ts +0 -5
  309. package/dist/utils/color-space.js +0 -229
  310. package/dist/utils/color-space.js.map +0 -1
  311. package/dist/utils/colors.d.ts +0 -5
  312. package/dist/utils/colors.js +0 -11
  313. package/dist/utils/colors.js.map +0 -1
  314. package/dist/utils/css-types.d.ts +0 -7
  315. package/dist/utils/dotize.d.ts +0 -26
  316. package/dist/utils/dotize.js +0 -122
  317. package/dist/utils/dotize.js.map +0 -1
  318. package/dist/utils/filter-base-props.d.ts +0 -15
  319. package/dist/utils/filter-base-props.js +0 -45
  320. package/dist/utils/filter-base-props.js.map +0 -1
  321. package/dist/utils/get-display-name.d.ts +0 -7
  322. package/dist/utils/get-display-name.js +0 -10
  323. package/dist/utils/get-display-name.js.map +0 -1
  324. package/dist/utils/has-keys.js +0 -13
  325. package/dist/utils/has-keys.js.map +0 -1
  326. package/dist/utils/is-dev-env.js +0 -19
  327. package/dist/utils/is-dev-env.js.map +0 -1
  328. package/dist/utils/is-valid-element-type.js +0 -15
  329. package/dist/utils/is-valid-element-type.js.map +0 -1
  330. package/dist/utils/merge-styles.js.map +0 -1
  331. package/dist/utils/mod-attrs.d.ts +0 -8
  332. package/dist/utils/mod-attrs.js +0 -21
  333. package/dist/utils/mod-attrs.js.map +0 -1
  334. package/dist/utils/process-tokens.d.ts +0 -21
  335. package/dist/utils/process-tokens.js +0 -91
  336. package/dist/utils/process-tokens.js.map +0 -1
  337. package/dist/utils/resolve-recipes.d.ts +0 -17
  338. package/dist/utils/resolve-recipes.js +0 -147
  339. package/dist/utils/resolve-recipes.js.map +0 -1
  340. package/dist/utils/selector-transform.js +0 -32
  341. package/dist/utils/selector-transform.js.map +0 -1
  342. package/dist/utils/string.js +0 -8
  343. package/dist/utils/string.js.map +0 -1
  344. package/dist/utils/styles.d.ts +0 -101
  345. package/dist/utils/styles.js +0 -223
  346. package/dist/utils/styles.js.map +0 -1
  347. package/dist/utils/typography.d.ts +0 -47
  348. package/dist/utils/typography.js +0 -43
  349. package/dist/utils/typography.js.map +0 -1
  350. package/dist/utils/warnings.d.ts +0 -16
  351. package/dist/utils/warnings.js +0 -16
  352. package/dist/utils/warnings.js.map +0 -1
  353. package/dist/zero/css-writer.d.ts +0 -45
  354. package/dist/zero/css-writer.js +0 -74
  355. package/dist/zero/css-writer.js.map +0 -1
  356. package/dist/zero/extractor.d.ts +0 -24
  357. package/dist/zero/extractor.js +0 -215
  358. package/dist/zero/extractor.js.map +0 -1
  359. package/docs/PIPELINE.md +0 -519
  360. package/docs/runtime.md +0 -397
@@ -1,523 +0,0 @@
1
- import { KeyframesSteps, PropertyDefinition } from "../injector/types.js";
2
- import { CSSProperties } from "../utils/css-types.js";
3
- import { StyleValue, StyleValueStateMap } from "../utils/styles.js";
4
-
5
- //#region src/styles/types.d.ts
6
- /**
7
- * Extensible interface for named color tokens.
8
- * Augment this interface to register project-specific color names
9
- * for autocomplete in `fill`, `color`, `svgFill`, and other color style props.
10
- *
11
- * @example
12
- * ```typescript
13
- * declare module '@tenphi/tasty' {
14
- * interface TastyNamedColors {
15
- * primary: true;
16
- * danger: true;
17
- * }
18
- * }
19
- * ```
20
- */
21
- interface TastyNamedColors {}
22
- type NamedColorKey = Extract<keyof TastyNamedColors, string>;
23
- type NamedColor = [NamedColorKey] extends [never] ? string : NamedColorKey;
24
- /**
25
- * Extensible interface for typography preset names.
26
- * Augment this interface to register project-specific preset names for autocomplete.
27
- *
28
- * @example
29
- * ```typescript
30
- * declare module '@tenphi/tasty' {
31
- * interface TastyPresetNames {
32
- * h1: true;
33
- * t3: true;
34
- * }
35
- * }
36
- * ```
37
- */
38
- interface TastyPresetNames {}
39
- type PresetNameKey = Extract<keyof TastyPresetNames, string>;
40
- type PresetName = [PresetNameKey] extends [never] ? string : PresetNameKey;
41
- type Digit = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
42
- type OpaquePercentage = '' | `.${Digit}` | `.${Digit}${Digit}` | '.100';
43
- type ColorValue = `#${NamedColor}${OpaquePercentage}` | `rgb(${string})` | `hsl(${string})` | `okhsl(${string})` | `oklch(${string})` | (string & {});
44
- type NoType = false | null | undefined;
45
- interface StylesInterface extends Omit<CSSProperties, 'color' | 'fill' | 'font' | 'outline' | 'type' | 'gap' | 'padding' | 'margin' | 'width' | 'height' | 'border' | 'transition' | 'placeContent' | 'placeItems'> {
46
- /**
47
- * @deprecated Use `flow` style instead.
48
- */
49
- flexDirection: CSSProperties['flexDirection'];
50
- /**
51
- * @deprecated Use `placeContent`, `placeItems`, `gridColumns`, `gridRows`, and `gridTemplate` styles instead.
52
- */
53
- grid: CSSProperties['grid'];
54
- /**
55
- * @deprecated Use `flexShrink`, `flexGrow`, and `flexBasis` styles instead.
56
- */
57
- flex: CSSProperties['flex'];
58
- /**
59
- * Set the background color of the element. Shortcut for `background-color` with enhanced support for Tasty color tokens and syntaxes.
60
- *
61
- * Supports double-color syntax: the second color is applied as a foreground overlay via a CSS custom property.
62
- *
63
- * Examples:
64
- * - `fill="#purple.10"` // purple background with 10% opacity
65
- * - `fill="#danger"` // danger theme color
66
- * - `fill="rgb(255 128 0)"` // custom RGB color
67
- * - `fill="rgb(255 128 0 / 0.5)"` // RGB with opacity
68
- * - `fill="hsl(200 100% 50%)"` // HSL color
69
- * - `fill="okhsl(200 100% 50%)"` // perceptually uniform OKHSL color
70
- * - `fill="oklch(0.7 0.15 200)"` // OKLCH color
71
- * - `fill="#primary #secondary"` // double color (second as foreground overlay)
72
- * - `fill={true}` // default fill color
73
- */
74
- fill?: ColorValue | boolean;
75
- /**
76
- * @deprecated Use `fill` instead.
77
- */
78
- backgroundColor?: CSSProperties['backgroundColor'];
79
- /**
80
- * Set the background image of the element. Shortcut for `background-image` with enhanced support for Tasty tokens.
81
- *
82
- * Examples:
83
- * - `image="url(/path/to/image.png)"` // image from URL
84
- * - `image="linear-gradient(to right, #purple, #danger)"` // gradient
85
- */
86
- image?: CSSProperties['backgroundImage'];
87
- /**
88
- * @deprecated Use `image` instead.
89
- */
90
- backgroundImage?: CSSProperties['backgroundImage'];
91
- /**
92
- * @deprecated Use separate background styles (`fill`, `image`, `backgroundSize`, etc.) instead.
93
- * When set, overrides all other background-related styles.
94
- */
95
- background?: CSSProperties['background'];
96
- /**
97
- * Set the fill color of SVG elements. Outputs the native CSS `fill` property with enhanced support for Tasty color tokens and syntaxes.
98
- *
99
- * Examples:
100
- * - `svgFill="#purple.10"` // purple fill with 10% opacity
101
- * - `svgFill="#danger"` // danger theme color
102
- * - `svgFill="rgb(255 128 0)"` // custom RGB color
103
- * - `svgFill="hsl(200 100% 50%)"` // HSL color
104
- * - `svgFill="okhsl(200 100% 50%)"` // OKHSL color
105
- * - `svgFill="oklch(0.7 0.15 200)"` // OKLCH color
106
- * - `svgFill="currentColor"` // inherit from parent color
107
- */
108
- svgFill?: ColorValue;
109
- /**
110
- * Set the text (current) color of the element. Shortcut for `color` with enhanced support for Tasty color tokens and syntaxes.
111
- *
112
- * Examples:
113
- * - `color="#purple"` // purple text color
114
- * - `color="#danger.6"` // danger color with 60% opacity
115
- * - `color="rgb(255 128 0)"` // custom RGB color
116
- * - `color="hsl(200 100% 50%)"` // HSL color
117
- * - `color="okhsl(200 100% 50%)"` // OKHSL color
118
- * - `color="oklch(0.7 0.15 200)"` // OKLCH color
119
- * - `color="red"` // CSS color name
120
- * - `color={true}` // currentColor
121
- */
122
- color?: ColorValue | boolean;
123
- /**
124
- * The fade style applies gradient-based fading masks to the edges of an element. Replaces complex CSS mask gradients with a simple, declarative API.
125
- *
126
- * Syntax: `[width] [directions] [#from-color] [#to-color]`
127
- *
128
- * Multiple groups can be separated by commas to specify different colors per direction.
129
- *
130
- * Color tokens (optional):
131
- * - First color: transparent start of gradient (default: `rgb(0 0 0 / 0)`)
132
- * - Second color: opaque end of gradient (default: `rgb(0 0 0 / 1)`)
133
- *
134
- * Examples:
135
- * - `fade="top"` // fade only top edge with default width
136
- * - `fade="2x left right"` // fade left and right edges with 2x width
137
- * - `fade="1x top"` // fade only top edge with 1x width
138
- * - `fade="3x 1x top bottom"` // top: 3x width, bottom: 1x width
139
- * - `fade="2x #transparent #dark"` // custom colors for gradient mask
140
- * - `fade="1x top #clear #solid"` // top edge with custom mask colors
141
- * - `fade="top #red #blue, bottom #green #yellow"` // different colors per direction
142
- * - `fade="2x top #a #b, 1x bottom #c #d"` // different widths and colors per direction
143
- */
144
- fade?: 'top' | 'right' | 'bottom' | 'left' | string;
145
- /**
146
- * Scrollbar styling using standard CSS properties (`scrollbar-width`, `scrollbar-color`, `scrollbar-gutter`).
147
- *
148
- * Syntax: `[width] [modifiers...] [thumb-color] [track-color]`
149
- *
150
- * Width values: `thin` (default), `auto`, `none`
151
- * Modifiers: `stable`, `both-edges`, `always`
152
- *
153
- * Examples:
154
- * - `scrollbar={true}` // thin scrollbar, default colors
155
- * - `scrollbar="thin #purple.40 #dark.04"`
156
- * - `scrollbar="auto #red #blue"`
157
- * - `scrollbar="none"`
158
- * - `scrollbar="always #primary.50 #white.02"`
159
- * - `scrollbar="thin stable #red #blue"`
160
- */
161
- scrollbar?: string | boolean;
162
- /**
163
- * Set font weight for bold texts.
164
- */
165
- boldFontWeight?: number;
166
- /**
167
- * The gap style is a powerful, cross-layout shorthand for spacing between child elements. Works with flex, grid, and block layouts.
168
- *
169
- * For flex/grid: sets native `gap` property
170
- * For block layouts: emulated using margin on children
171
- *
172
- * Examples:
173
- * - `gap="2x"` // gap: 2x (or margin-bottom: 2x for block)
174
- * - `gap="1x 2x"` // row gap: 1x, column gap: 2x
175
- * - `gap={true}` // default gap (1x)
176
- */
177
- gap?: CSSProperties['gap'] | string | boolean;
178
- /**
179
- * Shorthand for element padding. Supports custom units, directional modifiers, and design-system-driven defaults.
180
- *
181
- * Examples:
182
- * - `padding="2x 1x"` // top/bottom: 2x, left/right: 1x
183
- * - `padding="2x top"` // only top padding: 2x
184
- * - `padding="1x left right"` // left and right padding: 1x
185
- * - `padding={true}` // default padding on all sides
186
- */
187
- padding?: CSSProperties['padding'] | string | boolean;
188
- /**
189
- * Shorthand for element margin. Supports custom units, directional modifiers, and design-system-driven defaults.
190
- *
191
- * Examples:
192
- * - `margin="2x 1x"` // top/bottom: 2x, left/right: 1x
193
- * - `margin="2x top"` // only top margin: 2x
194
- * - `margin="1x left right"` // left and right margin: 1x
195
- * - `margin={true}` // default margin on all sides
196
- */
197
- margin?: CSSProperties['margin'] | string | boolean;
198
- /**
199
- * Concise shorthand for setting element width, including min-width and max-width. Supports custom units and advanced sizing keywords.
200
- *
201
- * Syntax: `[value]` | `[min max]` | `[min value max]` | `[modifier value]`
202
- *
203
- * Modifiers: `min`, `max`
204
- * Keywords: `stretch`, `max-content`, `min-content`, `fit-content`
205
- *
206
- * Examples:
207
- * - `width="10x"` // width: 10x
208
- * - `width="1x 10x"` // min-width: 1x; max-width: 10x
209
- * - `width="min 2x"` // min-width: 2x
210
- * - `width="stretch"` // width: stretch (fill-available)
211
- * - `width={true}` // width: auto
212
- */
213
- width?: CSSProperties['width'] | string | boolean;
214
- /**
215
- * Concise shorthand for setting element height, including min-height and max-height. Supports custom units and advanced sizing keywords.
216
- *
217
- * Syntax: `[value]` | `[min max]` | `[min value max]` | `[modifier value]`
218
- *
219
- * Modifiers: `min`, `max`
220
- * Keywords: `stretch`, `max-content`, `min-content`, `fit-content`
221
- *
222
- * Examples:
223
- * - `height="100px"` // height: 100px
224
- * - `height="1x 5x 10x"` // min-height: 1x; height: 5x; max-height: 10x
225
- * - `height="min 2x"` // min-height: 2x
226
- * - `height={true}` // height: auto
227
- */
228
- height?: CSSProperties['height'] | string | boolean;
229
- /**
230
- * Shorthand for border width, style, and color. Supports directional modifiers and design-system defaults.
231
- *
232
- * Syntax: `[width] [style] [color] [directions]` | `[directions]` | `true`
233
- *
234
- * Multiple groups can be separated by commas. Later groups override earlier groups for conflicting directions.
235
- *
236
- * Examples:
237
- * - `border={true}` // default border on all sides (1bw solid)
238
- * - `border="2bw dashed #purple"` // 2bw dashed purple border
239
- * - `border="2bw top"` // only top border: 2bw solid
240
- * - `border="dotted #danger left right"` // left/right: 1bw dotted danger
241
- * - `border="1bw #red, 2bw #blue top"` // all sides red 1bw, top overridden to blue 2bw
242
- * - `border="1bw, dashed top bottom, #purple left right"` // base 1bw, dashed on top/bottom, purple on left/right
243
- */
244
- border?: CSSProperties['border'] | string | boolean;
245
- /**
246
- * Powerful shorthand for CSS transitions using semantic names and design tokens. Supports grouped transitions for common UI effects.
247
- *
248
- * Semantic names: `fade`, `fill`, `border`, `radius`, `shadow`, `preset`, `gap`, `theme`
249
- * Multiple transitions: separated by commas
250
- *
251
- * Examples:
252
- * - `transition="fill 0.2s, radius 0.3s"` // transitions background-color and border-radius
253
- * - `transition="fade 0.15s ease-in"` // transitions mask with easing
254
- * - `transition="theme 0.3s"` // transitions all theme-related properties
255
- * - `transition="preset 0.2s"` // transitions typography properties
256
- */
257
- transition?: CSSProperties['transition'] | string;
258
- /**
259
- * Whether the element is hidden using `display: none`. Boolean shortcut for conditional element visibility.
260
- *
261
- * Examples:
262
- * - `hide={true}` // display: none
263
- * - `hide={false}` // element remains visible
264
- */
265
- hide?: boolean;
266
- /**
267
- * The shadow style adds shadow effects around an element's frame. Supports multiple effects separated by commas with X/Y offsets, blur, spread radius, and color.
268
- *
269
- * Examples:
270
- * - `shadow="1x .5x .5x #dark.50"` // custom shadow with Tasty units and colors
271
- * - `shadow="0 1x 2x #dark.20"` // standard shadow syntax
272
- * - `shadow={true}` // default shadow from design system
273
- */
274
- shadow?: string | boolean;
275
- /**
276
- * The radius style rounds the corners of an element's outer border edge. Supports custom units, advanced shapes, and directional modifiers.
277
- *
278
- * Syntax: `[value] [modifiers]` | `[shape]` | `true`
279
- *
280
- * Shapes: `round` (fully rounded), `ellipse` (50%), `leaf`, `backleaf` (asymmetric)
281
- * Directional modifiers: `top`, `right`, `bottom`, `left`
282
- *
283
- * Examples:
284
- * - `radius="2r"` // border-radius: calc(var(--radius) * 2)
285
- * - `radius={true}` // default radius (1r)
286
- * - `radius="round"` // fully rounded (9999rem)
287
- * - `radius="leaf"` // asymmetric leaf shape
288
- * - `radius="1r top"` // round only top corners
289
- */
290
- radius?: 'round' | 'ellipse' | 'leaf' | 'backleaf' | string | true;
291
- /**
292
- * The flow style is a unified shorthand for controlling layout direction and wrapping in both flex and grid containers. Replaces `flexDirection` and `gridAutoFlow`.
293
- *
294
- * For flex: sets `flex-flow` (direction + wrapping)
295
- * For grid: sets `grid-auto-flow` (direction + density)
296
- * For block: determines gap direction (row/column)
297
- *
298
- * Syntax: `[direction] [wrap|dense]`
299
- *
300
- * Examples:
301
- * - `flow="row wrap"` // flex-flow: row wrap
302
- * - `flow="column dense"` // grid-auto-flow: column dense
303
- * - `flow="row"` // primary axis direction
304
- */
305
- flow?: CSSProperties['flexFlow'] | CSSProperties['gridAutoFlow'] | string;
306
- /**
307
- * The gridAreas style specifies named grid areas, establishing cells in the grid and assigning them names.
308
- *
309
- * Examples:
310
- * - `gridAreas='"header header" "sidebar content" "footer footer"'`
311
- */
312
- gridAreas?: CSSProperties['gridTemplateAreas'];
313
- /**
314
- * The gridColumns style defines line names and track sizing functions of grid columns.
315
- *
316
- * Examples:
317
- * - `gridColumns="1fr 2fr 1fr"` // three columns with flex ratios
318
- * - `gridColumns={3}` // three equal columns (shorthand)
319
- * - `gridColumns="repeat(auto-fit, minmax(200px, 1fr))"` // responsive columns
320
- */
321
- gridColumns?: CSSProperties['gridTemplateColumns'] | number;
322
- /**
323
- * The gridRows style defines line names and track sizing functions of grid rows.
324
- *
325
- * Examples:
326
- * - `gridRows="auto 1fr auto"` // header, content, footer layout
327
- * - `gridRows={4}` // four equal rows (shorthand)
328
- * - `gridRows="repeat(3, 100px)"` // three 100px rows
329
- */
330
- gridRows?: CSSProperties['gridTemplateRows'] | number;
331
- /**
332
- * The gridTemplate style is a shorthand property for defining grid columns, rows, and areas simultaneously.
333
- *
334
- * Examples:
335
- * - `gridTemplate='"header header" auto "content sidebar" 1fr / 2fr 1fr'`
336
- */
337
- gridTemplate?: CSSProperties['gridTemplate'];
338
- /**
339
- * The font style specifies a prioritized list of font family names with design-system-driven defaults and fallbacks.
340
- *
341
- * Examples:
342
- * - `font="monospace"` // monospace font stack
343
- * - `font="Helvetica, Arial, sans-serif"` // custom font list
344
- * - `font={true}` // default design system font
345
- */
346
- font?: CSSProperties['fontFamily'] | boolean;
347
- /**
348
- * The outline style sets the outline for the element.
349
- *
350
- * Syntax: `[width] [style] [color] / [offset]` | `true`
351
- *
352
- * Examples:
353
- * - `outline="2ow dashed #purple"` // 2ow dashed purple outline
354
- * - `outline="2ow #danger / 1x"` // 2ow solid danger outline, 1x offset
355
- * - `outline={true}` // default outline (1ow solid)
356
- */
357
- outline?: string | boolean;
358
- /**
359
- * The outline offset style sets the offset of the outline.
360
- *
361
- * Examples:
362
- * - `outlineOffset="4px"` // 4px offset
363
- * - `outlineOffset="1x"` // 1x (8px) offset
364
- */
365
- outlineOffset?: string | number;
366
- /**
367
- * The preset style sets base text settings according to named presets. Affects `font-size`, `line-height`, `letter-spacing`, `font-weight`, and `text-transform`.
368
- *
369
- * Preset names are project-specific. Augment `TastyPresetNames` to register them for autocomplete.
370
- *
371
- * Examples:
372
- * - `preset="h1"` // heading 1 typography
373
- * - `preset="h2 strong"` // bold heading 2
374
- * - `preset="t3"` // text size 3
375
- */
376
- preset?: PresetName | (string & {});
377
- /**
378
- * Shorthand for `align-items` and `align-content`. Sets both properties for unified vertical alignment in flex/grid layouts.
379
- *
380
- * Examples:
381
- * - `align="center"` // align-items: center; align-content: center
382
- * - `align="flex-start"` // align both to start
383
- * - `align="space-between"` // distribute space between items
384
- */
385
- align?: CSSProperties['alignItems'] | CSSProperties['alignContent'];
386
- /**
387
- * Shorthand for `justify-items` and `justify-content`. Sets both properties for unified horizontal alignment in flex/grid layouts.
388
- *
389
- * Examples:
390
- * - `justify="center"` // justify-items: center; justify-content: center
391
- * - `justify="space-between"` // distribute space between items
392
- * - `justify="flex-end"` // align both to end
393
- */
394
- justify?: CSSProperties['justifyItems'] | CSSProperties['justifyContent'];
395
- /**
396
- * Shorthand for `place-items` and `place-content`. Sets both properties for unified alignment of both axes in grid/flex layouts.
397
- *
398
- * Examples:
399
- * - `place="center"` // place-items: center; place-content: center
400
- * - `place="start end"` // place-items: start; place-content: end
401
- * - `place="stretch"` // place both to stretch
402
- */
403
- place?: CSSProperties['placeItems'] | CSSProperties['placeContent'] | string;
404
- /**
405
- * Sets `place-content` property for aligning and distributing content in grid/flex containers.
406
- *
407
- * Examples:
408
- * - `placeContent="center"` // center content in both axes
409
- * - `placeContent="space-between"` // distribute content with space between
410
- */
411
- placeContent?: CSSProperties['placeContent'];
412
- /**
413
- * Sets `place-items` property for aligning items in grid/flex containers.
414
- *
415
- * Examples:
416
- * - `placeItems="center"` // center items in both axes
417
- * - `placeItems="start end"` // start on block axis, end on inline axis
418
- */
419
- placeItems?: CSSProperties['placeItems'];
420
- /**
421
- * Shorthand for `top`, `right`, `bottom`, and `left` offsets. Supports custom units, directional modifiers, and positioning.
422
- *
423
- * Examples:
424
- * - `inset="0"` // all sides: 0
425
- * - `inset="2x top"` // only top offset: 2x
426
- * - `inset="1x left right"` // left and right offsets: 1x
427
- * - `inset={true}` // all sides: 0
428
- */
429
- inset?: 'top' | 'right' | 'bottom' | 'left' | string | CSSProperties['inset'];
430
- /**
431
- * Local keyframes definitions for this component.
432
- * Keys are animation names, values are keyframes step definitions.
433
- * Local keyframes override global keyframes with the same name.
434
- *
435
- * Examples:
436
- * - `'@keyframes': { fadeIn: { from: { opacity: 0 }, to: { opacity: 1 } } }`
437
- * - `'@keyframes': { pulse: { '0%, 100%': { transform: 'scale(1)' }, '50%': { transform: 'scale(1.05)' } } }`
438
- */
439
- '@keyframes'?: Record<string, KeyframesSteps>;
440
- /**
441
- * CSS @property definitions for custom properties using tasty token syntax.
442
- * Properties are registered once and are permanent (never removed).
443
- *
444
- * Token formats:
445
- * - `$name` for regular properties → `--name` (requires syntax to be specified)
446
- * - `#name` for color properties → `--name-color` (auto-sets syntax: '<color>', defaults initialValue: 'transparent')
447
- *
448
- * Examples:
449
- * - `'@properties': { '$rotation': { syntax: '<angle>', inherits: false, initialValue: '45deg' } }`
450
- * - `'@properties': { '#theme': { initialValue: 'purple' } }` // syntax: '<color>' is auto-set
451
- */
452
- '@properties'?: Record<string, PropertyDefinition>;
453
- /**
454
- * Apply one or more predefined style recipes by name.
455
- * Recipes are defined globally via `configure({ recipes: { ... } })`.
456
- * Multiple recipes are space-separated. Use `/` to separate base recipes
457
- * (applied before component styles) from post recipes (applied after, via mergeStyles).
458
- * Use `none` to explicitly skip base recipes.
459
- *
460
- * Examples:
461
- * - `recipe: 'card'` // Apply the 'card' recipe
462
- * - `recipe: 'card elevated'` // Apply 'card' then 'elevated', then component styles
463
- * - `recipe: 'reset input / input-autofill'` // Base recipes, then post recipe
464
- * - `recipe: 'none / disabled'` // No base recipes, only post recipe
465
- * - `recipe: ''` // Clear recipes from base styles when extending
466
- */
467
- recipe?: string;
468
- }
469
- type SuffixForSelector = '&' | '.' | 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z';
470
- type Selector = `${SuffixForSelector}${string}`;
471
- type NotSelector = Exclude<string, Selector | keyof StylesInterface>;
472
- /** Special style keys that should not be wrapped in StyleValue/StyleValueStateMap */
473
- type SpecialStyleKeys = '@keyframes' | '@properties' | 'recipe';
474
- type StylesWithoutSelectors = { [key in keyof StylesInterface as key extends SpecialStyleKeys ? never : key]?: StyleValue<StylesInterface[key]> | StyleValueStateMap<StylesInterface[key]> };
475
- /**
476
- * Index signature for recipe-specific arbitrary keys.
477
- * Supports local predefined states (`@name`), vendor-prefixed CSS properties (`-webkit-*`),
478
- * CSS custom properties (`$name`), and color tokens (`#name`).
479
- * Unlike StylesIndexSignature, does NOT allow sub-element selectors (recipes are flat).
480
- */
481
- type RecipeIndexSignature = Record<string, StyleValue<string | number | boolean | undefined> | StyleValueStateMap<string | number | boolean | undefined>>;
482
- /**
483
- * Style type for recipe definitions.
484
- * Like StylesWithoutSelectors but also allows `@keyframes`, `@properties`,
485
- * local predefined states, and vendor-prefixed CSS properties.
486
- * Excludes `recipe` to prevent recursive references.
487
- */
488
- type RecipeStyles = StylesWithoutSelectors & RecipeIndexSignature & {
489
- '@keyframes'?: StylesInterface['@keyframes'];
490
- '@properties'?: StylesInterface['@properties'];
491
- };
492
- /** Special properties that are not regular style values */
493
- interface SpecialStyleProperties {
494
- '@keyframes'?: StylesInterface['@keyframes'];
495
- '@properties'?: StylesInterface['@properties'];
496
- recipe?: StylesInterface['recipe'];
497
- }
498
- /** Index signature for arbitrary style keys (sub-elements, CSS variables, etc.) */
499
- interface StylesIndexSignature {
500
- [key: string]: StyleValue<string | number | boolean | undefined> | StyleValueStateMap<string | number | boolean | undefined> | Styles | false | StylesInterface['@keyframes'] | StylesInterface['@properties'];
501
- /**
502
- * Selector combinator: `undefined` (descendant, default), `'>'` (child), `'+'` (adjacent), `'~'` (sibling).
503
- * Can chain with capitalized names: `'> Body > Row >'`. Spaces required around combinators.
504
- */
505
- $?: string;
506
- }
507
- type Styles = StylesWithoutSelectors & SpecialStyleProperties & StylesIndexSignature;
508
- /**
509
- * Value type for design tokens passed to `configure({ tokens })`.
510
- * Can be a direct value or a state map for responsive/theme-aware tokens.
511
- */
512
- type ConfigTokenValue = string | number | boolean | Record<string, string | number | boolean | undefined | null | '@inherit'>;
513
- /**
514
- * Design tokens injected as CSS custom properties on `:root`.
515
- * Keys must start with `$` (value tokens) or `#` (color tokens).
516
- *
517
- * - `$name` keys become `--name` CSS custom properties
518
- * - `#name` keys become `--name-color` and `--name-color-{colorSpace}` properties
519
- */
520
- type ConfigTokens = Record<`$${string}` | `#${string}`, ConfigTokenValue>;
521
- //#endregion
522
- export { ConfigTokenValue, ConfigTokens, NoType, NotSelector, RecipeStyles, Selector, Styles, StylesInterface, StylesWithoutSelectors, SuffixForSelector, TastyNamedColors, TastyPresetNames };
523
- //# sourceMappingURL=types.d.ts.map
@@ -1,17 +0,0 @@
1
- //#region src/styles/width.d.ts
2
- interface WidthStyleProps {
3
- width?: string | number | boolean;
4
- minWidth?: string | number | boolean;
5
- maxWidth?: string | number | boolean;
6
- }
7
- declare function widthStyle({
8
- width,
9
- minWidth,
10
- maxWidth
11
- }: WidthStyleProps): Record<string, string | string[]> | undefined;
12
- declare namespace widthStyle {
13
- var __lookupStyles: string[];
14
- }
15
- //#endregion
16
- export { widthStyle };
17
- //# sourceMappingURL=width.d.ts.map
@@ -1,20 +0,0 @@
1
- import { dimensionStyle } from "./dimension.js";
2
-
3
- //#region src/styles/width.ts
4
- const dimension = dimensionStyle("width");
5
- function widthStyle({ width, minWidth, maxWidth }) {
6
- return dimension({
7
- value: width,
8
- min: minWidth,
9
- max: maxWidth
10
- });
11
- }
12
- widthStyle.__lookupStyles = [
13
- "width",
14
- "minWidth",
15
- "maxWidth"
16
- ];
17
-
18
- //#endregion
19
- export { widthStyle };
20
- //# sourceMappingURL=width.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"width.js","names":[],"sources":["../../src/styles/width.ts"],"sourcesContent":["import { dimensionStyle } from './dimension';\n\nconst dimension = dimensionStyle('width');\n\ninterface WidthStyleProps {\n width?: string | number | boolean;\n minWidth?: string | number | boolean;\n maxWidth?: string | number | boolean;\n}\n\nexport function widthStyle({ width, minWidth, maxWidth }: WidthStyleProps) {\n return dimension({ value: width, min: minWidth, max: maxWidth });\n}\n\nwidthStyle.__lookupStyles = ['width', 'minWidth', 'maxWidth'];\n"],"mappings":";;;AAEA,MAAM,YAAY,eAAe,QAAQ;AAQzC,SAAgB,WAAW,EAAE,OAAO,UAAU,YAA6B;AACzE,QAAO,UAAU;EAAE,OAAO;EAAO,KAAK;EAAU,KAAK;EAAU,CAAC;;AAGlE,WAAW,iBAAiB;CAAC;CAAS;CAAY;CAAW"}