@helloimkostya/konsolpro-custom-ui-mini 0.0.410 → 0.0.412

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.
@@ -38,7 +38,7 @@
38
38
  --chart-4: #FFC23C;
39
39
  --chart-5: #FF9F1C;
40
40
  --radius: 0.625rem;
41
- --sidebar: #FBFBFB;
41
+ --sidebar: #F6F6F7;
42
42
  --sidebar-foreground: #252525;
43
43
  --sidebar-primary: #343434;
44
44
  --sidebar-primary-foreground: #FBFBFB;
@@ -20,7 +20,7 @@ export type DialogBaseProps = React.PropsWithChildren<DialogPrimitiveContainerPr
20
20
  baseZIndex?: number;
21
21
  onOpenChange?: (open: boolean) => void;
22
22
  }>;
23
- export declare function DialogBase({ classNames, children, trigger, visibleClose, width: initialWidth, visibleOverlay, diableOutsideClick, disableAutoFocus, hideFooter, baseZIndex, statusImage, dataTestId, ...props }: DialogBaseProps): import("react/jsx-runtime").JSX.Element;
23
+ export declare function DialogBase({ classNames, children, trigger, visibleClose, width: initialWidth, presentation, visibleOverlay, diableOutsideClick, disableAutoFocus, hideFooter, baseZIndex, statusImage, dataTestId, ...props }: DialogBaseProps): import("react/jsx-runtime").JSX.Element;
24
24
  export declare namespace DialogBase {
25
25
  var displayName: string;
26
26
  var Trigger: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -1,12 +1,19 @@
1
1
  import { default as React } from 'react';
2
+ import { DialogPresentationMode } from '../layout-classes';
2
3
  import * as RadixDialog from '@radix-ui/react-dialog';
3
4
  export type DialogPrimitiveWidth = 'sm' | 'md' | 'lg' | 'full';
4
5
  export type DialogPrimitivePadding = 'none' | 'md';
6
+ export type { DialogPresentationMode };
5
7
  export interface DialogPrimitiveContainerProps {
6
8
  open?: boolean;
7
9
  className?: string;
8
10
  children?: React.ReactNode;
9
11
  width?: DialogPrimitiveWidth;
12
+ /**
13
+ * `responsive` — bottom sheet при узком viewport, центр от `md` (768px).
14
+ * `centered` — всегда по центру; для iframe/preview (viewport = ширина iframe) и встраиваний.
15
+ */
16
+ presentation?: DialogPresentationMode;
10
17
  padding?: DialogPrimitivePadding;
11
18
  overflow?: boolean;
12
19
  disableAutoFocus?: boolean;
@@ -0,0 +1,10 @@
1
+ /** Режим разметки контейнера диалога (см. DialogPrimitive.Container). */
2
+ export type DialogPresentationMode = 'responsive' | 'centered';
3
+ export type DialogLayoutWidth = 'sm' | 'md' | 'lg' | 'full';
4
+ /**
5
+ * Позиционирование и размеры контейнона Radix Dialog.Content.
6
+ *
7
+ * - `responsive` — bottom sheet до `md`, по центру от 768px (viewport iframe = ширина iframe).
8
+ * - `centered` — всегда по центру; для Lovable/embed с узким iframe без «ложной мобилы».
9
+ */
10
+ export declare function dialogContainerPresentationClasses(presentation: DialogPresentationMode, width: DialogLayoutWidth): string;