@tenphi/tasty 0.0.0-snapshot.2705ab9 → 0.0.0-snapshot.27699f6

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 (336) hide show
  1. package/README.md +35 -27
  2. package/dist/{ssr/async-storage.js → async-storage-B7_o6FKt.js} +17 -8
  3. package/dist/async-storage-B7_o6FKt.js.map +1 -0
  4. package/dist/{ssr/collector.d.ts → collector-LuU1vZ68.d.ts} +11 -15
  5. package/dist/{ssr/collector.js → collector-QwpPODsy.js} +37 -34
  6. package/dist/collector-QwpPODsy.js.map +1 -0
  7. package/dist/config-rrijM-U2.js +10137 -0
  8. package/dist/config-rrijM-U2.js.map +1 -0
  9. package/dist/config-vuCRkBWX.d.ts +884 -0
  10. package/dist/context-CkSg-kDT.js +24 -0
  11. package/dist/context-CkSg-kDT.js.map +1 -0
  12. package/dist/core/index.d.ts +5 -34
  13. package/dist/core/index.js +6 -27
  14. package/dist/core-BvTG0J_M.js +1592 -0
  15. package/dist/core-BvTG0J_M.js.map +1 -0
  16. package/dist/{zero/extractor.js → css-writer-C7HJGEmN.js} +75 -13
  17. package/dist/css-writer-C7HJGEmN.js.map +1 -0
  18. package/dist/{ssr/format-global-rules.js → format-global-rules-Dbc_1tc3.js} +3 -3
  19. package/dist/format-global-rules-Dbc_1tc3.js.map +1 -0
  20. package/dist/format-rules-BvokPr1L.js +143 -0
  21. package/dist/format-rules-BvokPr1L.js.map +1 -0
  22. package/dist/hydrate-Dsv7Pwon.js +45 -0
  23. package/dist/hydrate-Dsv7Pwon.js.map +1 -0
  24. package/dist/index-ZRxZWzlj.d.ts +1602 -0
  25. package/dist/index-dUtwpOux.d.ts +1266 -0
  26. package/dist/index.d.ts +5 -51
  27. package/dist/index.js +731 -35
  28. package/dist/index.js.map +1 -0
  29. package/dist/keyframes-DDqRjwa9.js +587 -0
  30. package/dist/keyframes-DDqRjwa9.js.map +1 -0
  31. package/dist/{utils/merge-styles.js → merge-styles-B8jV6zu3.js} +4 -6
  32. package/dist/merge-styles-B8jV6zu3.js.map +1 -0
  33. package/dist/{utils/merge-styles.d.ts → merge-styles-CtDJMhpJ.d.ts} +3 -3
  34. package/dist/{utils/resolve-recipes.js → resolve-recipes-BnTZz2I_.js} +5 -8
  35. package/dist/resolve-recipes-BnTZz2I_.js.map +1 -0
  36. package/dist/ssr/astro-client.d.ts +1 -0
  37. package/dist/ssr/astro-client.js +19 -0
  38. package/dist/ssr/astro-client.js.map +1 -0
  39. package/dist/ssr/astro-middleware.d.ts +15 -0
  40. package/dist/ssr/astro-middleware.js +19 -0
  41. package/dist/ssr/astro-middleware.js.map +1 -0
  42. package/dist/ssr/astro.d.ts +89 -10
  43. package/dist/ssr/astro.js +116 -32
  44. package/dist/ssr/astro.js.map +1 -1
  45. package/dist/ssr/index.d.ts +44 -5
  46. package/dist/ssr/index.js +7 -9
  47. package/dist/ssr/index.js.map +1 -1
  48. package/dist/ssr/next.d.ts +7 -6
  49. package/dist/ssr/next.js +18 -14
  50. package/dist/ssr/next.js.map +1 -1
  51. package/dist/static/index.d.ts +91 -5
  52. package/dist/static/index.js +49 -4
  53. package/dist/static/index.js.map +1 -0
  54. package/dist/static/inject.d.ts +5 -0
  55. package/dist/static/inject.js +17 -0
  56. package/dist/static/inject.js.map +1 -0
  57. package/dist/zero/babel.d.ts +24 -110
  58. package/dist/zero/babel.js +139 -47
  59. package/dist/zero/babel.js.map +1 -1
  60. package/dist/zero/index.d.ts +67 -3
  61. package/dist/zero/index.js +2 -4
  62. package/dist/zero/next.d.ts +12 -0
  63. package/dist/zero/next.js +5 -4
  64. package/dist/zero/next.js.map +1 -1
  65. package/docs/README.md +4 -4
  66. package/docs/adoption.md +5 -3
  67. package/docs/comparison.md +24 -25
  68. package/docs/configuration.md +69 -1
  69. package/docs/debug.md +11 -9
  70. package/docs/design-system.md +22 -10
  71. package/docs/dsl.md +24 -8
  72. package/docs/getting-started.md +10 -10
  73. package/docs/injector.md +43 -27
  74. package/docs/methodology.md +52 -3
  75. package/docs/{PIPELINE.md → pipeline.md} +204 -50
  76. package/docs/{runtime.md → react-api.md} +104 -32
  77. package/docs/ssr.md +139 -81
  78. package/docs/styles.md +17 -0
  79. package/docs/tasty-static.md +101 -2
  80. package/package.json +23 -11
  81. package/dist/_virtual/_rolldown/runtime.js +0 -8
  82. package/dist/chunks/cacheKey.js +0 -78
  83. package/dist/chunks/cacheKey.js.map +0 -1
  84. package/dist/chunks/definitions.d.ts +0 -37
  85. package/dist/chunks/definitions.js +0 -259
  86. package/dist/chunks/definitions.js.map +0 -1
  87. package/dist/chunks/renderChunk.js +0 -60
  88. package/dist/chunks/renderChunk.js.map +0 -1
  89. package/dist/config.d.ts +0 -366
  90. package/dist/config.js +0 -504
  91. package/dist/config.js.map +0 -1
  92. package/dist/counter-style/index.js +0 -51
  93. package/dist/counter-style/index.js.map +0 -1
  94. package/dist/debug.d.ts +0 -89
  95. package/dist/debug.js +0 -454
  96. package/dist/debug.js.map +0 -1
  97. package/dist/font-face/index.js +0 -63
  98. package/dist/font-face/index.js.map +0 -1
  99. package/dist/hooks/resolve-ssr-collector.js +0 -15
  100. package/dist/hooks/resolve-ssr-collector.js.map +0 -1
  101. package/dist/hooks/useCounterStyle.d.ts +0 -50
  102. package/dist/hooks/useCounterStyle.js +0 -47
  103. package/dist/hooks/useCounterStyle.js.map +0 -1
  104. package/dist/hooks/useFontFace.d.ts +0 -43
  105. package/dist/hooks/useFontFace.js +0 -71
  106. package/dist/hooks/useFontFace.js.map +0 -1
  107. package/dist/hooks/useGlobalStyles.d.ts +0 -30
  108. package/dist/hooks/useGlobalStyles.js +0 -79
  109. package/dist/hooks/useGlobalStyles.js.map +0 -1
  110. package/dist/hooks/useKeyframes.d.ts +0 -56
  111. package/dist/hooks/useKeyframes.js +0 -65
  112. package/dist/hooks/useKeyframes.js.map +0 -1
  113. package/dist/hooks/useProperty.d.ts +0 -79
  114. package/dist/hooks/useProperty.js +0 -110
  115. package/dist/hooks/useProperty.js.map +0 -1
  116. package/dist/hooks/useRawCSS.d.ts +0 -53
  117. package/dist/hooks/useRawCSS.js +0 -36
  118. package/dist/hooks/useRawCSS.js.map +0 -1
  119. package/dist/hooks/useStyles.d.ts +0 -45
  120. package/dist/hooks/useStyles.js +0 -238
  121. package/dist/hooks/useStyles.js.map +0 -1
  122. package/dist/injector/index.d.ts +0 -183
  123. package/dist/injector/index.js +0 -180
  124. package/dist/injector/index.js.map +0 -1
  125. package/dist/injector/injector.d.ts +0 -166
  126. package/dist/injector/injector.js +0 -465
  127. package/dist/injector/injector.js.map +0 -1
  128. package/dist/injector/sheet-manager.d.ts +0 -136
  129. package/dist/injector/sheet-manager.js +0 -734
  130. package/dist/injector/sheet-manager.js.map +0 -1
  131. package/dist/injector/types.d.ts +0 -204
  132. package/dist/keyframes/index.js +0 -206
  133. package/dist/keyframes/index.js.map +0 -1
  134. package/dist/parser/classify.js +0 -320
  135. package/dist/parser/classify.js.map +0 -1
  136. package/dist/parser/const.js +0 -49
  137. package/dist/parser/const.js.map +0 -1
  138. package/dist/parser/lru.js +0 -109
  139. package/dist/parser/lru.js.map +0 -1
  140. package/dist/parser/parser.d.ts +0 -25
  141. package/dist/parser/parser.js +0 -116
  142. package/dist/parser/parser.js.map +0 -1
  143. package/dist/parser/tokenizer.js +0 -69
  144. package/dist/parser/tokenizer.js.map +0 -1
  145. package/dist/parser/types.d.ts +0 -51
  146. package/dist/parser/types.js +0 -46
  147. package/dist/parser/types.js.map +0 -1
  148. package/dist/pipeline/conditions.d.ts +0 -134
  149. package/dist/pipeline/conditions.js +0 -406
  150. package/dist/pipeline/conditions.js.map +0 -1
  151. package/dist/pipeline/exclusive.js +0 -231
  152. package/dist/pipeline/exclusive.js.map +0 -1
  153. package/dist/pipeline/index.d.ts +0 -55
  154. package/dist/pipeline/index.js +0 -709
  155. package/dist/pipeline/index.js.map +0 -1
  156. package/dist/pipeline/materialize.js +0 -1104
  157. package/dist/pipeline/materialize.js.map +0 -1
  158. package/dist/pipeline/parseStateKey.d.ts +0 -15
  159. package/dist/pipeline/parseStateKey.js +0 -447
  160. package/dist/pipeline/parseStateKey.js.map +0 -1
  161. package/dist/pipeline/simplify.js +0 -516
  162. package/dist/pipeline/simplify.js.map +0 -1
  163. package/dist/pipeline/warnings.js +0 -18
  164. package/dist/pipeline/warnings.js.map +0 -1
  165. package/dist/plugins/okhsl-plugin.d.ts +0 -35
  166. package/dist/plugins/okhsl-plugin.js +0 -98
  167. package/dist/plugins/okhsl-plugin.js.map +0 -1
  168. package/dist/plugins/types.d.ts +0 -76
  169. package/dist/properties/index.js +0 -223
  170. package/dist/properties/index.js.map +0 -1
  171. package/dist/properties/property-type-resolver.d.ts +0 -24
  172. package/dist/properties/property-type-resolver.js +0 -91
  173. package/dist/properties/property-type-resolver.js.map +0 -1
  174. package/dist/ssr/async-storage.d.ts +0 -17
  175. package/dist/ssr/async-storage.js.map +0 -1
  176. package/dist/ssr/collect-auto-properties.js +0 -40
  177. package/dist/ssr/collect-auto-properties.js.map +0 -1
  178. package/dist/ssr/collector.js.map +0 -1
  179. package/dist/ssr/context.d.ts +0 -8
  180. package/dist/ssr/context.js +0 -14
  181. package/dist/ssr/context.js.map +0 -1
  182. package/dist/ssr/format-global-rules.js.map +0 -1
  183. package/dist/ssr/format-keyframes.js +0 -70
  184. package/dist/ssr/format-keyframes.js.map +0 -1
  185. package/dist/ssr/format-property.js +0 -50
  186. package/dist/ssr/format-property.js.map +0 -1
  187. package/dist/ssr/format-rules.js +0 -73
  188. package/dist/ssr/format-rules.js.map +0 -1
  189. package/dist/ssr/hydrate.d.ts +0 -22
  190. package/dist/ssr/hydrate.js +0 -50
  191. package/dist/ssr/hydrate.js.map +0 -1
  192. package/dist/ssr/ssr-collector-ref.js +0 -12
  193. package/dist/ssr/ssr-collector-ref.js.map +0 -1
  194. package/dist/states/index.d.ts +0 -49
  195. package/dist/states/index.js +0 -171
  196. package/dist/states/index.js.map +0 -1
  197. package/dist/static/tastyStatic.d.ts +0 -46
  198. package/dist/static/tastyStatic.js +0 -31
  199. package/dist/static/tastyStatic.js.map +0 -1
  200. package/dist/static/types.d.ts +0 -49
  201. package/dist/static/types.js +0 -24
  202. package/dist/static/types.js.map +0 -1
  203. package/dist/styles/align.d.ts +0 -15
  204. package/dist/styles/align.js +0 -14
  205. package/dist/styles/align.js.map +0 -1
  206. package/dist/styles/border.d.ts +0 -25
  207. package/dist/styles/border.js +0 -114
  208. package/dist/styles/border.js.map +0 -1
  209. package/dist/styles/color.d.ts +0 -14
  210. package/dist/styles/color.js +0 -27
  211. package/dist/styles/color.js.map +0 -1
  212. package/dist/styles/createStyle.js +0 -80
  213. package/dist/styles/createStyle.js.map +0 -1
  214. package/dist/styles/dimension.js +0 -97
  215. package/dist/styles/dimension.js.map +0 -1
  216. package/dist/styles/display.d.ts +0 -37
  217. package/dist/styles/display.js +0 -67
  218. package/dist/styles/display.js.map +0 -1
  219. package/dist/styles/fade.d.ts +0 -15
  220. package/dist/styles/fade.js +0 -58
  221. package/dist/styles/fade.js.map +0 -1
  222. package/dist/styles/fill.d.ts +0 -42
  223. package/dist/styles/fill.js +0 -52
  224. package/dist/styles/fill.js.map +0 -1
  225. package/dist/styles/flow.d.ts +0 -16
  226. package/dist/styles/flow.js +0 -12
  227. package/dist/styles/flow.js.map +0 -1
  228. package/dist/styles/gap.d.ts +0 -31
  229. package/dist/styles/gap.js +0 -37
  230. package/dist/styles/gap.js.map +0 -1
  231. package/dist/styles/height.d.ts +0 -17
  232. package/dist/styles/height.js +0 -20
  233. package/dist/styles/height.js.map +0 -1
  234. package/dist/styles/index.d.ts +0 -2
  235. package/dist/styles/index.js +0 -9
  236. package/dist/styles/index.js.map +0 -1
  237. package/dist/styles/inset.d.ts +0 -52
  238. package/dist/styles/inset.js +0 -150
  239. package/dist/styles/inset.js.map +0 -1
  240. package/dist/styles/justify.d.ts +0 -15
  241. package/dist/styles/justify.js +0 -14
  242. package/dist/styles/justify.js.map +0 -1
  243. package/dist/styles/list.d.ts +0 -16
  244. package/dist/styles/list.js +0 -98
  245. package/dist/styles/list.js.map +0 -1
  246. package/dist/styles/margin.d.ts +0 -24
  247. package/dist/styles/margin.js +0 -104
  248. package/dist/styles/margin.js.map +0 -1
  249. package/dist/styles/outline.d.ts +0 -29
  250. package/dist/styles/outline.js +0 -65
  251. package/dist/styles/outline.js.map +0 -1
  252. package/dist/styles/padding.d.ts +0 -24
  253. package/dist/styles/padding.js +0 -104
  254. package/dist/styles/padding.js.map +0 -1
  255. package/dist/styles/predefined.d.ts +0 -71
  256. package/dist/styles/predefined.js +0 -238
  257. package/dist/styles/predefined.js.map +0 -1
  258. package/dist/styles/preset.d.ts +0 -52
  259. package/dist/styles/preset.js +0 -127
  260. package/dist/styles/preset.js.map +0 -1
  261. package/dist/styles/radius.d.ts +0 -14
  262. package/dist/styles/radius.js +0 -51
  263. package/dist/styles/radius.js.map +0 -1
  264. package/dist/styles/scrollbar.d.ts +0 -25
  265. package/dist/styles/scrollbar.js +0 -48
  266. package/dist/styles/scrollbar.js.map +0 -1
  267. package/dist/styles/shadow.d.ts +0 -14
  268. package/dist/styles/shadow.js +0 -24
  269. package/dist/styles/shadow.js.map +0 -1
  270. package/dist/styles/transition.d.ts +0 -14
  271. package/dist/styles/transition.js +0 -158
  272. package/dist/styles/transition.js.map +0 -1
  273. package/dist/styles/types.d.ts +0 -547
  274. package/dist/styles/width.d.ts +0 -17
  275. package/dist/styles/width.js +0 -20
  276. package/dist/styles/width.js.map +0 -1
  277. package/dist/tasty.d.ts +0 -119
  278. package/dist/tasty.js +0 -232
  279. package/dist/tasty.js.map +0 -1
  280. package/dist/types.d.ts +0 -184
  281. package/dist/utils/cache-wrapper.js +0 -22
  282. package/dist/utils/cache-wrapper.js.map +0 -1
  283. package/dist/utils/case-converter.js +0 -8
  284. package/dist/utils/case-converter.js.map +0 -1
  285. package/dist/utils/color-math.d.ts +0 -46
  286. package/dist/utils/color-math.js +0 -749
  287. package/dist/utils/color-math.js.map +0 -1
  288. package/dist/utils/color-space.d.ts +0 -5
  289. package/dist/utils/color-space.js +0 -229
  290. package/dist/utils/color-space.js.map +0 -1
  291. package/dist/utils/colors.d.ts +0 -5
  292. package/dist/utils/colors.js +0 -11
  293. package/dist/utils/colors.js.map +0 -1
  294. package/dist/utils/css-types.d.ts +0 -7
  295. package/dist/utils/dotize.d.ts +0 -26
  296. package/dist/utils/dotize.js +0 -122
  297. package/dist/utils/dotize.js.map +0 -1
  298. package/dist/utils/filter-base-props.d.ts +0 -15
  299. package/dist/utils/filter-base-props.js +0 -45
  300. package/dist/utils/filter-base-props.js.map +0 -1
  301. package/dist/utils/get-display-name.d.ts +0 -7
  302. package/dist/utils/get-display-name.js +0 -10
  303. package/dist/utils/get-display-name.js.map +0 -1
  304. package/dist/utils/has-keys.js +0 -13
  305. package/dist/utils/has-keys.js.map +0 -1
  306. package/dist/utils/is-dev-env.js +0 -19
  307. package/dist/utils/is-dev-env.js.map +0 -1
  308. package/dist/utils/is-valid-element-type.js +0 -15
  309. package/dist/utils/is-valid-element-type.js.map +0 -1
  310. package/dist/utils/merge-styles.js.map +0 -1
  311. package/dist/utils/mod-attrs.d.ts +0 -8
  312. package/dist/utils/mod-attrs.js +0 -21
  313. package/dist/utils/mod-attrs.js.map +0 -1
  314. package/dist/utils/process-tokens.d.ts +0 -21
  315. package/dist/utils/process-tokens.js +0 -91
  316. package/dist/utils/process-tokens.js.map +0 -1
  317. package/dist/utils/resolve-recipes.d.ts +0 -17
  318. package/dist/utils/resolve-recipes.js.map +0 -1
  319. package/dist/utils/selector-transform.js +0 -32
  320. package/dist/utils/selector-transform.js.map +0 -1
  321. package/dist/utils/string.js +0 -8
  322. package/dist/utils/string.js.map +0 -1
  323. package/dist/utils/styles.d.ts +0 -99
  324. package/dist/utils/styles.js +0 -221
  325. package/dist/utils/styles.js.map +0 -1
  326. package/dist/utils/typography.d.ts +0 -47
  327. package/dist/utils/typography.js +0 -51
  328. package/dist/utils/typography.js.map +0 -1
  329. package/dist/utils/warnings.d.ts +0 -16
  330. package/dist/utils/warnings.js +0 -16
  331. package/dist/utils/warnings.js.map +0 -1
  332. package/dist/zero/css-writer.d.ts +0 -45
  333. package/dist/zero/css-writer.js +0 -74
  334. package/dist/zero/css-writer.js.map +0 -1
  335. package/dist/zero/extractor.d.ts +0 -24
  336. package/dist/zero/extractor.js.map +0 -1
@@ -1,547 +0,0 @@
1
- import { CounterStyleDescriptors, FontFaceInput, 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
- * Syntax: `name`, `name / modifier`, or `modifier` (shorthand, name defaults to `inherit`).
370
- * Preset names are project-specific. Augment `TastyPresetNames` to register them for autocomplete.
371
- *
372
- * Examples:
373
- * - `preset="h1"` // heading 1 typography
374
- * - `preset="h2 / strong"` // bold heading 2
375
- * - `preset="bold"` // inherit with bold (shorthand)
376
- * - `preset="t3"` // text size 3
377
- */
378
- preset?: PresetName | (string & {});
379
- /**
380
- * Shorthand for `align-items` and `align-content`. Sets both properties for unified vertical alignment in flex/grid layouts.
381
- *
382
- * Examples:
383
- * - `align="center"` // align-items: center; align-content: center
384
- * - `align="flex-start"` // align both to start
385
- * - `align="space-between"` // distribute space between items
386
- */
387
- align?: CSSProperties['alignItems'] | CSSProperties['alignContent'];
388
- /**
389
- * Shorthand for `justify-items` and `justify-content`. Sets both properties for unified horizontal alignment in flex/grid layouts.
390
- *
391
- * Examples:
392
- * - `justify="center"` // justify-items: center; justify-content: center
393
- * - `justify="space-between"` // distribute space between items
394
- * - `justify="flex-end"` // align both to end
395
- */
396
- justify?: CSSProperties['justifyItems'] | CSSProperties['justifyContent'];
397
- /**
398
- * Shorthand for `place-items` and `place-content`. Sets both properties for unified alignment of both axes in grid/flex layouts.
399
- *
400
- * Examples:
401
- * - `place="center"` // place-items: center; place-content: center
402
- * - `place="start end"` // place-items: start; place-content: end
403
- * - `place="stretch"` // place both to stretch
404
- */
405
- place?: CSSProperties['placeItems'] | CSSProperties['placeContent'] | string;
406
- /**
407
- * Sets `place-content` property for aligning and distributing content in grid/flex containers.
408
- *
409
- * Examples:
410
- * - `placeContent="center"` // center content in both axes
411
- * - `placeContent="space-between"` // distribute content with space between
412
- */
413
- placeContent?: CSSProperties['placeContent'];
414
- /**
415
- * Sets `place-items` property for aligning items in grid/flex containers.
416
- *
417
- * Examples:
418
- * - `placeItems="center"` // center items in both axes
419
- * - `placeItems="start end"` // start on block axis, end on inline axis
420
- */
421
- placeItems?: CSSProperties['placeItems'];
422
- /**
423
- * Shorthand for `top`, `right`, `bottom`, and `left` offsets. Supports custom units, directional modifiers, and positioning.
424
- *
425
- * Examples:
426
- * - `inset="0"` // all sides: 0
427
- * - `inset="2x top"` // only top offset: 2x
428
- * - `inset="1x left right"` // left and right offsets: 1x
429
- * - `inset={true}` // all sides: 0
430
- */
431
- inset?: 'top' | 'right' | 'bottom' | 'left' | string | CSSProperties['inset'];
432
- /**
433
- * Local keyframes definitions for this component.
434
- * Keys are animation names, values are keyframes step definitions.
435
- * Local keyframes override global keyframes with the same name.
436
- *
437
- * Examples:
438
- * - `'@keyframes': { fadeIn: { from: { opacity: 0 }, to: { opacity: 1 } } }`
439
- * - `'@keyframes': { pulse: { '0%, 100%': { transform: 'scale(1)' }, '50%': { transform: 'scale(1.05)' } } }`
440
- */
441
- '@keyframes'?: Record<string, KeyframesSteps>;
442
- /**
443
- * CSS @property definitions for custom properties using tasty token syntax.
444
- * Properties are registered once and are permanent (never removed).
445
- *
446
- * Token formats:
447
- * - `$name` for regular properties → `--name` (requires syntax to be specified)
448
- * - `#name` for color properties → `--name-color` (auto-sets syntax: '<color>', defaults initialValue: 'transparent')
449
- *
450
- * Examples:
451
- * - `'@properties': { '$rotation': { syntax: '<angle>', inherits: false, initialValue: '45deg' } }`
452
- * - `'@properties': { '#theme': { initialValue: 'purple' } }` // syntax: '<color>' is auto-set
453
- */
454
- '@properties'?: Record<string, PropertyDefinition>;
455
- /**
456
- * Local @font-face definitions for this component.
457
- * Keys are font-family names, values are descriptors or arrays of descriptors
458
- * (for multiple weights/styles of the same family).
459
- *
460
- * Examples:
461
- * - `'@fontFace': { Icons: { src: 'url("/fonts/icons.woff2") format("woff2")', fontDisplay: 'block' } }`
462
- * - `'@fontFace': { 'Brand Sans': [{ src: '...', fontWeight: 400 }, { src: '...', fontWeight: 700 }] }`
463
- */
464
- '@fontFace'?: Record<string, FontFaceInput>;
465
- /**
466
- * Local @counter-style definitions for this component.
467
- * Keys are counter-style names, values are descriptor objects.
468
- *
469
- * Examples:
470
- * - `'@counterStyle': { thumbs: { system: 'cyclic', symbols: '"👍"', suffix: '" "' } }`
471
- */
472
- '@counterStyle'?: Record<string, CounterStyleDescriptors>;
473
- /**
474
- * Apply one or more predefined style recipes by name.
475
- * Recipes are defined globally via `configure({ recipes: { ... } })`.
476
- * Multiple recipes are space-separated. Use `/` to separate base recipes
477
- * (applied before component styles) from post recipes (applied after, via mergeStyles).
478
- * Use `none` to explicitly skip base recipes.
479
- *
480
- * Examples:
481
- * - `recipe: 'card'` // Apply the 'card' recipe
482
- * - `recipe: 'card elevated'` // Apply 'card' then 'elevated', then component styles
483
- * - `recipe: 'reset input / input-autofill'` // Base recipes, then post recipe
484
- * - `recipe: 'none / disabled'` // No base recipes, only post recipe
485
- * - `recipe: ''` // Clear recipes from base styles when extending
486
- */
487
- recipe?: string;
488
- }
489
- 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';
490
- type Selector = `${SuffixForSelector}${string}`;
491
- type NotSelector = Exclude<string, Selector | keyof StylesInterface>;
492
- /** Special style keys that should not be wrapped in StyleValue/StyleValueStateMap */
493
- type SpecialStyleKeys = '@keyframes' | '@properties' | '@fontFace' | '@counterStyle' | 'recipe';
494
- type StylesWithoutSelectors = { [key in keyof StylesInterface as key extends SpecialStyleKeys ? never : key]?: StyleValue<StylesInterface[key]> | StyleValueStateMap<StylesInterface[key]> };
495
- /**
496
- * Index signature for recipe-specific arbitrary keys.
497
- * Supports local predefined states (`@name`), vendor-prefixed CSS properties (`-webkit-*`),
498
- * CSS custom properties (`$name`), and color tokens (`#name`).
499
- * Unlike StylesIndexSignature, does NOT allow sub-element selectors (recipes are flat).
500
- */
501
- type RecipeIndexSignature = Record<string, StyleValue<string | number | boolean | undefined> | StyleValueStateMap<string | number | boolean | undefined>>;
502
- /**
503
- * Style type for recipe definitions.
504
- * Like StylesWithoutSelectors but also allows `@keyframes`, `@properties`,
505
- * local predefined states, and vendor-prefixed CSS properties.
506
- * Excludes `recipe` to prevent recursive references.
507
- */
508
- type RecipeStyles = StylesWithoutSelectors & RecipeIndexSignature & {
509
- '@keyframes'?: StylesInterface['@keyframes'];
510
- '@properties'?: StylesInterface['@properties'];
511
- '@fontFace'?: StylesInterface['@fontFace'];
512
- '@counterStyle'?: StylesInterface['@counterStyle'];
513
- };
514
- /** Special properties that are not regular style values */
515
- interface SpecialStyleProperties {
516
- '@keyframes'?: StylesInterface['@keyframes'];
517
- '@properties'?: StylesInterface['@properties'];
518
- '@fontFace'?: StylesInterface['@fontFace'];
519
- '@counterStyle'?: StylesInterface['@counterStyle'];
520
- recipe?: StylesInterface['recipe'];
521
- }
522
- /** Index signature for arbitrary style keys (sub-elements, CSS variables, etc.) */
523
- interface StylesIndexSignature {
524
- [key: string]: StyleValue<string | number | boolean | undefined> | StyleValueStateMap<string | number | boolean | undefined> | Styles | false | StylesInterface['@keyframes'] | StylesInterface['@properties'] | StylesInterface['@fontFace'] | StylesInterface['@counterStyle'];
525
- /**
526
- * Selector combinator: `undefined` (descendant, default), `'>'` (child), `'+'` (adjacent), `'~'` (sibling).
527
- * Can chain with capitalized names: `'> Body > Row >'`. Spaces required around combinators.
528
- */
529
- $?: string;
530
- }
531
- type Styles = StylesWithoutSelectors & SpecialStyleProperties & StylesIndexSignature;
532
- /**
533
- * Value type for design tokens passed to `configure({ tokens })`.
534
- * Can be a direct value or a state map for responsive/theme-aware tokens.
535
- */
536
- type ConfigTokenValue = string | number | boolean | Record<string, string | number | boolean | undefined | null | '@inherit'>;
537
- /**
538
- * Design tokens injected as CSS custom properties on `:root`.
539
- * Keys must start with `$` (value tokens) or `#` (color tokens).
540
- *
541
- * - `$name` keys become `--name` CSS custom properties
542
- * - `#name` keys become `--name-color` and `--name-color-{colorSpace}` properties
543
- */
544
- type ConfigTokens = Record<`$${string}` | `#${string}`, ConfigTokenValue>;
545
- //#endregion
546
- export { ConfigTokenValue, ConfigTokens, NoType, NotSelector, RecipeStyles, Selector, Styles, StylesInterface, StylesWithoutSelectors, SuffixForSelector, TastyNamedColors, TastyPresetNames };
547
- //# 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"}