@oliasoft-open-source/react-ui-library 10.3.0-beta-1 → 10.3.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.
- package/dist/global.css +1 -1
- package/dist/index.d.ts +17 -8
- package/dist/index.js +1997 -1946
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -365,7 +365,7 @@ export declare interface ICheckBoxProps {
|
|
|
365
365
|
checked?: boolean;
|
|
366
366
|
indeterminate?: boolean;
|
|
367
367
|
isInTable?: boolean;
|
|
368
|
-
label?: string | null;
|
|
368
|
+
label?: string | default_2.ReactElement | null;
|
|
369
369
|
name?: string;
|
|
370
370
|
noMargin?: boolean;
|
|
371
371
|
onChange: TCheckBoxClickHandler;
|
|
@@ -1375,7 +1375,6 @@ export declare interface IRichTextInputProps {
|
|
|
1375
1375
|
onChange?: (markdown: string, meta: {
|
|
1376
1376
|
mentionedIds: string[];
|
|
1377
1377
|
}) => void;
|
|
1378
|
-
onMention?: (item: IMentionItem) => void;
|
|
1379
1378
|
placeholder?: string;
|
|
1380
1379
|
value?: string;
|
|
1381
1380
|
toolbarComponent?: ReactNode;
|
|
@@ -1846,6 +1845,7 @@ export declare interface ITooltipProps {
|
|
|
1846
1845
|
flex?: string;
|
|
1847
1846
|
triggerStyle?: CSSProperties;
|
|
1848
1847
|
forceOpen?: boolean;
|
|
1848
|
+
/** @deprecated Aria positioning replaces floating-ui animation-frame updates. */
|
|
1849
1849
|
updateOnAnimationFrame?: boolean;
|
|
1850
1850
|
children?: ReactNode;
|
|
1851
1851
|
}
|
|
@@ -1958,6 +1958,10 @@ declare interface IUnitConfigItem {
|
|
|
1958
1958
|
preferredUnit?: string;
|
|
1959
1959
|
}
|
|
1960
1960
|
|
|
1961
|
+
declare interface IUnitEntry {
|
|
1962
|
+
[key: string]: string;
|
|
1963
|
+
}
|
|
1964
|
+
|
|
1961
1965
|
export declare interface IUnitInputProps {
|
|
1962
1966
|
name?: string | {
|
|
1963
1967
|
fieldName?: string;
|
|
@@ -2024,6 +2028,14 @@ declare interface IUnitTable extends Omit<ITableProps['table'], 'rows'> {
|
|
|
2024
2028
|
rows?: IUnitTableRow[];
|
|
2025
2029
|
}
|
|
2026
2030
|
|
|
2031
|
+
export declare interface IUnitTableBeforeRenderRowParams {
|
|
2032
|
+
row: IUnitTableRow;
|
|
2033
|
+
rowIndex: number;
|
|
2034
|
+
selectedUnits: IUnitEntry;
|
|
2035
|
+
storageUnits: IUnitEntry;
|
|
2036
|
+
convertValue: (value: TStringNumberNull, unitKey: string) => TStringNumberNull;
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2027
2039
|
declare interface IUnitTableCell {
|
|
2028
2040
|
autoUnit: boolean;
|
|
2029
2041
|
unitKey: string;
|
|
@@ -2044,7 +2056,7 @@ export declare interface IUnitTableOnChangeEvent extends ITableOnChangeEvent {
|
|
|
2044
2056
|
};
|
|
2045
2057
|
}
|
|
2046
2058
|
|
|
2047
|
-
export declare interface IUnitTableProps extends Omit<ITableProps, 'table'> {
|
|
2059
|
+
export declare interface IUnitTableProps extends Omit<ITableProps, 'table' | 'beforeRenderRow'> {
|
|
2048
2060
|
table: IUnitTable;
|
|
2049
2061
|
unitConfig: IUnitConfigItem[];
|
|
2050
2062
|
convertBackToStorageUnit?: boolean;
|
|
@@ -2058,10 +2070,7 @@ export declare interface IUnitTableProps extends Omit<ITableProps, 'table'> {
|
|
|
2058
2070
|
from: number;
|
|
2059
2071
|
to: number;
|
|
2060
2072
|
}) => boolean;
|
|
2061
|
-
beforeRenderRow?: (
|
|
2062
|
-
row: IUnitTableRow;
|
|
2063
|
-
rowIndex: number;
|
|
2064
|
-
}) => IUnitTableRow;
|
|
2073
|
+
beforeRenderRow?: (params: IUnitTableBeforeRenderRowParams) => IUnitTableRow;
|
|
2065
2074
|
}
|
|
2066
2075
|
|
|
2067
2076
|
export declare interface IUnitTableRow extends Omit<TRowType, 'cells'> {
|
|
@@ -2336,7 +2345,7 @@ declare type TOnChangeEventTarget = TOnChangeEventBaseTarget | (TOnChangeEventBa
|
|
|
2336
2345
|
predefinedOption: IPredefinedOption;
|
|
2337
2346
|
});
|
|
2338
2347
|
|
|
2339
|
-
export declare const Tooltip: (
|
|
2348
|
+
export declare const Tooltip: ({ children, text, error, placement, possiblePlacements, enabled, warning, maxWidth, triggerOffset, fontSize, padding, display, flex, triggerStyle, forceOpen, }: ITooltipProps) => JSX.Element;
|
|
2340
2349
|
|
|
2341
2350
|
export declare const TopBar: ({ title, appSwitcher, content, contentRight, warning, height, fixedPosition, }: ITopBarProps) => JSX.Element;
|
|
2342
2351
|
|