@kenlo/kdls-design-system 2.33.0 → 2.34.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.
@@ -0,0 +1,2 @@
1
+ export declare function nextDialogLayer(): number;
2
+ export declare function isTopDialog(dialog: HTMLElement | null): boolean;
@@ -28,6 +28,11 @@ export interface TableColumnPickerProps {
28
28
  onChange: (value: string[]) => void;
29
29
  /** Shows a "Restaurar padrão" link at the bottom and fires when it's clicked */
30
30
  onReset?: () => void;
31
+ /** Overrides the panel z-index — raise it when the trigger lives inside a sticky header or toolbar */
32
+ zIndex?: number;
33
+ /** Caps the floating panel's height in px, as Menu's menuMaxHeight: the column list scrolls, the
34
+ * title and "Restaurar padrão" stay. Given the room below the trigger, the panel never turns upward. */
35
+ menuMaxHeight?: number;
31
36
  /** Additional CSS classes applied to the trigger */
32
37
  className?: string;
33
38
  }
@@ -20,7 +20,7 @@ export interface UploaderProps {
20
20
  mode?: UploaderMode;
21
21
  /** Data URL or src URL of the uploaded file (controlled) */
22
22
  value?: string | null;
23
- /** Fired with the new data URL when a file is selected, or null when removed */
23
+ /** Fired with the new data URL when a file is selected or edited, or null when removed */
24
24
  onChange?: (dataUrl: string | null) => void;
25
25
  /**
26
26
  * Crop constraint. Pass a ratio string (`"16:9"`) or pixel dimensions
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ export type ImageEdit = {
2
+ viewport: {
3
+ width: number;
4
+ height: number;
5
+ };
6
+ image: {
7
+ width: number;
8
+ height: number;
9
+ };
10
+ crop: {
11
+ x: number;
12
+ y: number;
13
+ w: number;
14
+ h: number;
15
+ };
16
+ zoom: number;
17
+ rotation: number;
18
+ output?: {
19
+ width: number;
20
+ height: number;
21
+ };
22
+ };
23
+ export declare function exportImage(source: string, edit: ImageEdit): Promise<string>;
@@ -0,0 +1 @@
1
+ export {};