@snksergio/design-system 0.43.2 → 0.44.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.
@@ -4108,6 +4108,16 @@ const floatingPanelStyles = avatar.tv({
4108
4108
  "rounded-radius-xl border border-border-default outline-float shadow-sh-2xl",
4109
4109
  // Desktop (md+) — gutter top/bottom 24px
4110
4110
  "md:top-pad-4xl md:bottom-pad-4xl",
4111
+ // …e o mesmo gutter de 24px como TETO de largura, simétrico (24+24=48).
4112
+ //
4113
+ // Sem isto o painel estoura a viewport com props DEFAULT: `side="right"` ancora a
4114
+ // 24px da borda e `resizableMaxWidth` default é 800 → 800+24 = 824px de necessidade.
4115
+ // Em qualquer janela entre 768 e 824 (≥md, então sem o sheet mobile) a borda esquerda
4116
+ // ia pra fora da tela. Mesmo caso com `size={n}` grande num monitor pequeno.
4117
+ //
4118
+ // O `min`/`max` do hook de resize é em PIXEL e cego à viewport — quem clampa é isto.
4119
+ // Não regride nada: `max-width` só age quando a largura já estouraria.
4120
+ "md:max-w-[calc(100vw-48px)]",
4111
4121
  // Mobile (max-md) — sheet bottom-up colado nas bordas do device:
4112
4122
  // flush nas laterais + bottom, só top arredondado, sem outline/shadow, cap 92vh
4113
4123
  "max-md:inset-x-0 max-md:bottom-0 max-md:top-auto max-md:!w-auto",
@@ -13050,4 +13060,4 @@ exports.useColumnResize = useColumnResize;
13050
13060
  exports.useColumnWidths = useColumnWidths;
13051
13061
  exports.useDataTableContext = useDataTableContext;
13052
13062
  exports.useFloatingPanelResize = useFloatingPanelResize;
13053
- //# sourceMappingURL=panel-CNeCgIpC.cjs.map
13063
+ //# sourceMappingURL=panel-CvfP8eP1.cjs.map