@vectoriox/iox-ui 5.82.0 → 5.82.1

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.
@@ -2118,7 +2118,7 @@ const NOT_TRANSITIONED = new Set(['__markerStyles', 'WebkitBackdropFilter', 'tra
2118
2118
  * Every state the node holds, at every breakpoint, composed as the renderers compose it (translateX / scaleX → one
2119
2119
  * `transform`, a gradient background → `background-image`…), in a stable order so both renderers emit one string.
2120
2120
  */
2121
- function stateTransitionProperties(stateStyles, responsive) {
2121
+ function stateTransitionProperties(stateStyles, responsive, type) {
2122
2122
  const maps = [];
2123
2123
  for (const map of Object.values(stateStyles ?? {}))
2124
2124
  if (map)
@@ -2128,7 +2128,8 @@ function stateTransitionProperties(stateStyles, responsive) {
2128
2128
  if (map)
2129
2129
  maps.push(map);
2130
2130
  const out = [];
2131
- for (const map of maps) {
2131
+ // A prop the type's renderer owns (a Dialog's positioning) never reaches a rule — nor the transition's list.
2132
+ for (const map of maps.map(m => (type ? stripSuppressedProps(type, m) : m))) {
2132
2133
  for (const key of Object.keys(composeVirtualTraits(map, map))) {
2133
2134
  if (NOT_TRANSITIONED.has(key))
2134
2135
  continue;
@@ -2144,12 +2145,12 @@ function stateTransitionProperties(stateStyles, responsive) {
2144
2145
  * and a node whose transition names no properties gets the ones its states change. An author's own `transitionProperty`
2145
2146
  * (or a raw `transition`) always wins. Pure: the node's stored styles are never touched.
2146
2147
  */
2147
- function withStateTransitions(styleProps, stateStyles, elementStyle, responsive) {
2148
+ function withStateTransitions(styleProps, stateStyles, elementStyle, responsive, type) {
2148
2149
  let out = styleProps;
2149
2150
  if (hasHoverState(stateStyles) && !hasOwnTransition(styleProps))
2150
2151
  out = { ...out, ...defaultHoverTransitionTraits(elementStyle) };
2151
2152
  if (!isFilled(out['transitionProperty']) && !isFilled(out['transition'])) {
2152
- const props = stateTransitionProperties(stateStyles, responsive);
2153
+ const props = stateTransitionProperties(stateStyles, responsive, type);
2153
2154
  if (props.length)
2154
2155
  out = { ...out, transitionProperty: props.join(', ') };
2155
2156
  }