@stokelp/styled-system 2.92.0 → 2.94.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/css/conditions.mjs +1 -1
  2. package/css/css.mjs +1 -1
  3. package/css/sva.mjs +9 -4
  4. package/helpers.mjs +12 -20
  5. package/jsx/create-style-context.d.ts +54 -0
  6. package/jsx/create-style-context.mjs +98 -0
  7. package/jsx/factory.mjs +14 -5
  8. package/jsx/index.d.ts +1 -0
  9. package/jsx/index.mjs +1 -0
  10. package/jsx/is-valid-prop.mjs +1 -1
  11. package/package.json +2 -2
  12. package/panda.buildinfo.json +18 -17
  13. package/patterns/aspect-ratio.d.ts +0 -1
  14. package/patterns/aspect-ratio.mjs +2 -2
  15. package/patterns/bleed.d.ts +0 -1
  16. package/patterns/bleed.mjs +3 -3
  17. package/patterns/box.d.ts +0 -1
  18. package/patterns/box.mjs +2 -2
  19. package/patterns/center.d.ts +0 -1
  20. package/patterns/center.mjs +3 -3
  21. package/patterns/circle.d.ts +0 -1
  22. package/patterns/circle.mjs +4 -4
  23. package/patterns/container.d.ts +0 -1
  24. package/patterns/container.mjs +2 -2
  25. package/patterns/cq.d.ts +0 -1
  26. package/patterns/cq.mjs +2 -2
  27. package/patterns/divider.d.ts +0 -1
  28. package/patterns/divider.mjs +2 -2
  29. package/patterns/flex.d.ts +0 -1
  30. package/patterns/flex.mjs +2 -2
  31. package/patterns/float.d.ts +0 -1
  32. package/patterns/float.mjs +5 -5
  33. package/patterns/grid-item.d.ts +0 -1
  34. package/patterns/grid-item.mjs +2 -2
  35. package/patterns/grid.d.ts +0 -1
  36. package/patterns/grid.mjs +4 -4
  37. package/patterns/hstack.d.ts +0 -1
  38. package/patterns/hstack.mjs +3 -3
  39. package/patterns/link-overlay.d.ts +0 -1
  40. package/patterns/link-overlay.mjs +3 -3
  41. package/patterns/spacer.d.ts +0 -1
  42. package/patterns/spacer.mjs +3 -3
  43. package/patterns/square.d.ts +0 -1
  44. package/patterns/square.mjs +4 -4
  45. package/patterns/stack.d.ts +0 -1
  46. package/patterns/stack.mjs +3 -3
  47. package/patterns/visually-hidden.d.ts +0 -1
  48. package/patterns/visually-hidden.mjs +2 -2
  49. package/patterns/vstack.d.ts +0 -1
  50. package/patterns/vstack.mjs +3 -3
  51. package/patterns/wrap.d.ts +0 -1
  52. package/patterns/wrap.mjs +2 -2
  53. package/recipes/accordion.d.ts +4 -1
  54. package/recipes/accordion.mjs +1 -0
  55. package/recipes/action-card.d.ts +4 -3
  56. package/recipes/action-card.mjs +1 -0
  57. package/recipes/alert.d.ts +4 -3
  58. package/recipes/alert.mjs +1 -0
  59. package/recipes/app-navigation-language-select.d.ts +4 -1
  60. package/recipes/app-navigation-language-select.mjs +1 -0
  61. package/recipes/app-navigation.d.ts +4 -3
  62. package/recipes/app-navigation.mjs +1 -0
  63. package/recipes/avatar-group.d.ts +3 -0
  64. package/recipes/avatar.d.ts +4 -1
  65. package/recipes/avatar.mjs +1 -0
  66. package/recipes/breadcrumb.d.ts +4 -1
  67. package/recipes/breadcrumb.mjs +1 -0
  68. package/recipes/button-filter.d.ts +3 -2
  69. package/recipes/button.d.ts +3 -2
  70. package/recipes/chat-document-message.d.ts +3 -2
  71. package/recipes/chat-message.d.ts +3 -2
  72. package/recipes/chat-profile-avatar.d.ts +3 -2
  73. package/recipes/chat-text-input.d.ts +3 -2
  74. package/recipes/chat.d.ts +4 -3
  75. package/recipes/chat.mjs +1 -0
  76. package/recipes/checkbox-card.d.ts +4 -1
  77. package/recipes/checkbox-card.mjs +1 -0
  78. package/recipes/checkbox-group.d.ts +3 -0
  79. package/recipes/checkbox.d.ts +4 -1
  80. package/recipes/checkbox.mjs +1 -0
  81. package/recipes/chip.d.ts +4 -3
  82. package/recipes/chip.mjs +1 -0
  83. package/recipes/collapsible.d.ts +4 -1
  84. package/recipes/collapsible.mjs +5 -0
  85. package/recipes/combobox.d.ts +4 -1
  86. package/recipes/combobox.mjs +5 -0
  87. package/recipes/datepicker.d.ts +4 -1
  88. package/recipes/datepicker.mjs +19 -14
  89. package/recipes/dialog.d.ts +4 -1
  90. package/recipes/dialog.mjs +1 -0
  91. package/recipes/drawer.d.ts +4 -1
  92. package/recipes/drawer.mjs +1 -0
  93. package/recipes/flag.d.ts +3 -0
  94. package/recipes/form-control.d.ts +3 -2
  95. package/recipes/form-helper-text.d.ts +3 -2
  96. package/recipes/form-label.d.ts +4 -3
  97. package/recipes/form-label.mjs +1 -0
  98. package/recipes/heading.d.ts +3 -0
  99. package/recipes/icon-button.d.ts +3 -2
  100. package/recipes/icon.d.ts +3 -0
  101. package/recipes/illustration.d.ts +3 -2
  102. package/recipes/input-addon.d.ts +3 -2
  103. package/recipes/input-group.d.ts +3 -2
  104. package/recipes/input.d.ts +3 -2
  105. package/recipes/menu.d.ts +4 -1
  106. package/recipes/menu.mjs +1 -0
  107. package/recipes/pagination.d.ts +4 -3
  108. package/recipes/pagination.mjs +1 -0
  109. package/recipes/phone-number-input.d.ts +3 -2
  110. package/recipes/popover.d.ts +4 -1
  111. package/recipes/popover.mjs +1 -0
  112. package/recipes/price-tag.d.ts +4 -1
  113. package/recipes/price-tag.mjs +1 -0
  114. package/recipes/product-card-catalog.d.ts +4 -3
  115. package/recipes/product-card-catalog.mjs +1 -0
  116. package/recipes/radio-button-group.d.ts +4 -1
  117. package/recipes/radio-button-group.mjs +1 -0
  118. package/recipes/radio-card-group.d.ts +4 -1
  119. package/recipes/radio-card-group.mjs +1 -0
  120. package/recipes/radio-group.d.ts +4 -1
  121. package/recipes/radio-group.mjs +1 -0
  122. package/recipes/select-language.d.ts +4 -1
  123. package/recipes/select-language.mjs +1 -0
  124. package/recipes/select.d.ts +4 -1
  125. package/recipes/select.mjs +1 -0
  126. package/recipes/status-tag-select.d.ts +4 -1
  127. package/recipes/status-tag-select.mjs +1 -0
  128. package/recipes/switch-card.d.ts +4 -1
  129. package/recipes/switch-card.mjs +1 -0
  130. package/recipes/switch-recipe.d.ts +4 -1
  131. package/recipes/switch-recipe.mjs +1 -0
  132. package/recipes/table-container.d.ts +3 -0
  133. package/recipes/table-empty-row.d.ts +3 -0
  134. package/recipes/table-group-title.d.ts +3 -0
  135. package/recipes/table.d.ts +4 -1
  136. package/recipes/table.mjs +1 -0
  137. package/recipes/tabs-chip.d.ts +3 -2
  138. package/recipes/tabs.d.ts +4 -1
  139. package/recipes/tabs.mjs +1 -0
  140. package/recipes/tag.d.ts +4 -3
  141. package/recipes/tag.mjs +1 -0
  142. package/recipes/text.d.ts +3 -0
  143. package/recipes/textarea.d.ts +3 -0
  144. package/recipes/tooltip.d.ts +4 -1
  145. package/recipes/tooltip.mjs +1 -0
  146. package/tokens/tokens.d.ts +1 -1
  147. package/types/composition.d.ts +83 -23
  148. package/types/conditions.d.ts +11 -7
  149. package/types/jsx.d.ts +25 -10
  150. package/types/prop-type.d.ts +10 -2
  151. package/types/style-props.d.ts +15 -4
  152. package/types/system-types.d.ts +76 -0
@@ -91,19 +91,95 @@ type PositionTry =
91
91
  | DashedIdent
92
92
 
93
93
  export interface ModernCssProperties {
94
+ /**
95
+ * Defines a name for the anchor element that can be referenced by positioned elements.
96
+ */
94
97
  anchorName?: Globals | 'none' | DashedIdent | StringToMultiple<DashedIdent>
98
+
99
+ /**
100
+ * Defines the scope of anchor names within the element.
101
+ */
95
102
  anchorScope?: Globals | 'none' | 'all' | DashedIdent | StringToMultiple<DashedIdent>
103
+
104
+ /**
105
+ * Controls how form elements size themselves.
106
+ */
96
107
  fieldSizing?: Globals | 'fixed' | 'content'
108
+
109
+ /**
110
+ * Controls whether interpolation of size values should allow keywords.
111
+ */
97
112
  interpolateSize?: Globals | 'allow-keywords' | 'numeric-only'
113
+
114
+ /**
115
+ * Specifies the anchor element that this positioned element should be positioned relative to.
116
+ */
98
117
  positionAnchor?: Globals | 'auto' | DashedIdent
118
+
119
+ /**
120
+ * Specifies the area within the anchor element where this positioned element should be placed.
121
+ */
99
122
  positionArea?: Globals | 'auto' | PositionAreaAxis | `${PositionAreaAxis} ${PositionAreaAxis}` | String
123
+
124
+ /**
125
+ * Specifies the position try options for the element.
126
+ */
100
127
  positionTry?: Globals | StringToMultiple<PositionTry> | String
128
+
129
+ /**
130
+ * Specifies fallback position try options when the primary position fails.
131
+ */
101
132
  positionTryFallback?: Globals | 'none' | StringToMultiple<PositionTry> | String
133
+
134
+ /**
135
+ * Specifies the order in which position try options should be attempted.
136
+ */
102
137
  positionTryOrder?: Globals | 'normal' | 'most-width' | 'most-height' | 'most-block-size' | 'most-inline-size'
138
+
139
+ /**
140
+ * Controls when the positioned element should be visible.
141
+ */
103
142
  positionVisibility?: Globals | 'always' | 'anchors-visible' | 'no-overflow'
143
+
144
+ /**
145
+ * Controls whether text should wrap or not.
146
+ */
104
147
  textWrapMode?: Globals | 'wrap' | 'nowrap'
148
+
149
+ /**
150
+ * Controls trimming of spacing in text.
151
+ */
105
152
  textSpacingTrim?: Globals | 'normal' | 'space-all' | 'space-first' | 'trim-start'
153
+
154
+ /**
155
+ * Controls the style of text wrapping.
156
+ */
106
157
  textWrapStyle?: Globals | 'auto' | 'balance' | 'pretty' | 'stable'
158
+
159
+ /**
160
+ * Controls whether the entire element should be draggable instead of its contents.
161
+ */
162
+ WebkitUserDrag?: Globals | 'auto' | 'element' | 'none'
163
+
164
+ /**
165
+ * Specifies whether an element can be used to drag the entire app window (Electron).
166
+ */
167
+ WebkitAppRegion?: Globals | 'drag' | 'no-drag'
168
+
169
+ /**
170
+ * Sets the horizontal spacing between table borders.
171
+ */
172
+ WebkitBorderHorizontalSpacing?: Globals | String | Number
173
+
174
+ /**
175
+ * Sets the vertical spacing between table borders.
176
+ */
177
+ WebkitBorderVerticalSpacing?: Globals | String | Number
178
+
179
+ /**
180
+ * Controls the display of text content for security purposes (e.g., password fields).
181
+ */
182
+ WebkitTextSecurity?: Globals | 'none' | 'circle' | 'disc' | 'square'
107
183
  }
108
184
 
109
185
  export type CssProperty = keyof PropertiesFallback