@linzjs/lui 17.63.2 → 17.64.1
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/CHANGELOG.md +14 -0
- package/dist/components/LuiFloatingWindow/LuiFloatingWindow.d.ts +11 -0
- package/dist/components/LuiFormElements/LuiMoneyInput/LuiMoneyInput.d.ts +28 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6019 -5624
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +6017 -5623
- package/dist/lui.esm.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/LuiFormElements/LuiDollarInput/LuiDollarInput.d.ts +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [17.64.1](https://github.com/linz/lui/compare/v17.64.0...v17.64.1) (2023-07-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* updated spinners to new animation and created new mini spinner a… ([#962](https://github.com/linz/lui/issues/962)) ([af88370](https://github.com/linz/lui/commit/af8837009b648b5342027a97757fbe3027ddef06))
|
|
7
|
+
|
|
8
|
+
# [17.64.0](https://github.com/linz/lui/compare/v17.63.2...v17.64.0) (2023-06-18)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* upgrade @linzjs/floating-windows to latest version ([#958](https://github.com/linz/lui/issues/958)) ([bb49167](https://github.com/linz/lui/commit/bb49167747d958a89779afce0118640229a77187))
|
|
14
|
+
|
|
1
15
|
## [17.63.2](https://github.com/linz/lui/compare/v17.63.1...v17.63.2) (2023-06-09)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -10,7 +10,18 @@ export interface ILuiFloatingWindowProps {
|
|
|
10
10
|
rightSideHeader?: ReactElement | string;
|
|
11
11
|
leftSideHeader?: ReactElement | string;
|
|
12
12
|
startDisplayed?: boolean;
|
|
13
|
+
startPoppedOut?: boolean;
|
|
13
14
|
children?: ReactNode;
|
|
15
|
+
initialPosition?: FloatingWindowPosition;
|
|
16
|
+
minSize?: FloatingWindowSize;
|
|
14
17
|
}
|
|
15
18
|
export declare const LUI_WINDOW_NAME = "luiFloatingWindow";
|
|
19
|
+
declare type FloatingWindowPosition = {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
};
|
|
23
|
+
declare type FloatingWindowSize = {
|
|
24
|
+
height: number;
|
|
25
|
+
width: number;
|
|
26
|
+
};
|
|
16
27
|
export declare const LuiFloatingWindow: (props: ILuiFloatingWindowProps) => JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './LuiMoneyInput.scss';
|
|
3
|
+
import { LuiTextInput } from '../LuiTextInput/LuiTextInput';
|
|
4
|
+
export declare class MoneyParser {
|
|
5
|
+
private readonly initial;
|
|
6
|
+
private readonly options;
|
|
7
|
+
private formatted;
|
|
8
|
+
constructor(init?: number | string | null, options?: Intl.NumberFormatOptions & {
|
|
9
|
+
previousValue?: string;
|
|
10
|
+
});
|
|
11
|
+
private parseTargetValue;
|
|
12
|
+
private toFormattedString;
|
|
13
|
+
private toNumber;
|
|
14
|
+
get(): {
|
|
15
|
+
display: string;
|
|
16
|
+
value: number | null;
|
|
17
|
+
};
|
|
18
|
+
isKeyAllowed(key: string): boolean;
|
|
19
|
+
invert(): this;
|
|
20
|
+
formatOnChange(): this;
|
|
21
|
+
}
|
|
22
|
+
declare type LuiInputProps = React.ComponentPropsWithRef<typeof LuiTextInput>;
|
|
23
|
+
declare type Props = Omit<LuiInputProps, 'value'> & {
|
|
24
|
+
value?: number | null;
|
|
25
|
+
onNumberChange: ((value: number | null) => void) | null;
|
|
26
|
+
};
|
|
27
|
+
export declare const LuiMoneyInput: React.ForwardRefExoticComponent<Pick<Props, "onChange" | "inputProps" | "error" | "warning" | "hideLabel" | "label" | "mandatory" | "showPadlockIcon" | "className" | "value" | "icon" | "size" | "key" | "onNumberChange"> & React.RefAttributes<HTMLInputElement>>;
|
|
28
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { LuiSelectInput } from './components/LuiFormElements/LuiSelectInput/LuiS
|
|
|
23
23
|
export { LuiTextAreaInput } from './components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInput';
|
|
24
24
|
export { LuiTextInput } from './components/LuiFormElements/LuiTextInput/LuiTextInput';
|
|
25
25
|
export { LuiDateInput } from './components/LuiFormElements/LuiDateInput/LuiDateInput';
|
|
26
|
+
export { LuiMoneyInput } from './components/LuiFormElements/LuiMoneyInput/LuiMoneyInput';
|
|
26
27
|
export { LuiRadioInput } from './components/LuiFormElements/LuiRadioInput/LuiRadioInput';
|
|
27
28
|
export { LuiFormikCheckbox } from './components/LuiFormikForms/LuiFormikCheckbox/LuiFormikCheckbox';
|
|
28
29
|
export { LuiFormikTextInput } from './components/LuiFormikForms/LuiFormikTextInput/LuiFormikTextInput';
|