@sfperusacdev/sf-ui 0.1.13 → 0.1.15
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.
- package/dist/sf-ui.js +970 -970
- package/dist/sf-ui.js.map +1 -1
- package/dist/sf-ui.umd.cjs +7 -7
- package/dist/sf-ui.umd.cjs.map +1 -1
- package/dist/types/src/components/inputs/FieldLayout.d.ts +9 -1
- package/package.json +1 -1
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
export type InfoPlacement = "left" | "right";
|
|
2
3
|
type FieldLayoutProps = {
|
|
3
4
|
id: string;
|
|
4
5
|
label?: string;
|
|
5
6
|
info?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Hacia dónde crece el tooltip de `info`. Por defecto `"left"`: se ancla al
|
|
9
|
+
* borde izquierdo del icono y crece hacia la derecha, que es lo correcto para
|
|
10
|
+
* casi todo formulario. Usar `"right"` si el campo queda pegado al borde
|
|
11
|
+
* derecho de la pantalla y el texto se saldría.
|
|
12
|
+
*/
|
|
13
|
+
infoPlacement?: InfoPlacement;
|
|
6
14
|
error?: string;
|
|
7
15
|
required?: boolean;
|
|
8
16
|
onRefresh?: () => Promise<void> | void;
|
|
9
17
|
loading?: boolean;
|
|
10
18
|
children: React.ReactNode;
|
|
11
19
|
};
|
|
12
|
-
export declare const FieldLayout: ({ id, label, info, error, required, onRefresh, loading, children, }: FieldLayoutProps) => React.JSX.Element;
|
|
20
|
+
export declare const FieldLayout: ({ id, label, info, infoPlacement, error, required, onRefresh, loading, children, }: FieldLayoutProps) => React.JSX.Element;
|
|
13
21
|
export {};
|
package/package.json
CHANGED