linear-react-components-ui 1.0.10-beta.2 → 1.0.10-beta.4
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/lib/@types/Align.d.ts +2 -1
- package/lib/dialog/Alert.d.ts +1 -0
- package/lib/dialog/Custom.d.ts +1 -0
- package/lib/dialog/Error.d.ts +1 -0
- package/lib/dialog/Information.d.ts +1 -0
- package/lib/dialog/Question.d.ts +1 -0
- package/lib/dialog/Warning.d.ts +1 -0
- package/lib/dialog/base/Content.d.ts +1 -0
- package/lib/dialog/base/Footer.d.ts +1 -0
- package/lib/dialog/base/Header.d.ts +1 -0
- package/lib/dialog/base/index.d.ts +1 -0
- package/lib/dialog/form/index.d.ts +1 -0
- package/lib/dialog/index.d.ts +1 -0
- package/lib/dialog/types.d.ts +2 -1
- package/lib/form/Field.d.ts +1 -0
- package/lib/form/FieldArray.d.ts +1 -0
- package/lib/form/FieldNumber.d.ts +1 -0
- package/lib/form/FieldPeriod.d.ts +1 -0
- package/lib/form/helpers.d.ts +1 -0
- package/lib/form/index.d.ts +1 -0
- package/lib/form/types.d.ts +1 -0
- package/lib/form/withFieldHOC.d.ts +1 -0
- package/lib/form/withFormSecurity.d.ts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/inputs/base/InputTextBase.d.ts +1 -0
- package/lib/inputs/base/InputTextBase.js +4 -1
- package/lib/inputs/base/helpers.d.ts +2 -1
- package/lib/inputs/base/types.d.ts +2 -1
- package/lib/inputs/date/Dialog.d.ts +1 -0
- package/lib/inputs/date/Dropdown.d.ts +1 -0
- package/lib/inputs/date/helpers.d.ts +1 -0
- package/lib/inputs/date/index.d.ts +1 -0
- package/lib/inputs/date/types.d.ts +1 -0
- package/lib/inputs/file/DefaultFile.d.ts +1 -0
- package/lib/inputs/file/DragDropFile.d.ts +1 -0
- package/lib/inputs/file/File.d.ts +1 -0
- package/lib/inputs/file/FileButtonSettings.d.ts +1 -0
- package/lib/inputs/file/helpers.d.ts +1 -0
- package/lib/inputs/file/index.d.ts +1 -0
- package/lib/inputs/file/types.d.ts +1 -0
- package/lib/inputs/inputHOC.d.ts +1 -0
- package/lib/inputs/mask/BaseMask.d.ts +1 -0
- package/lib/inputs/mask/Cnpj.d.ts +1 -0
- package/lib/inputs/mask/Cpf.d.ts +1 -0
- package/lib/inputs/mask/Phone.d.ts +1 -0
- package/lib/inputs/mask/ZipCode.d.ts +1 -0
- package/lib/inputs/mask/helpers.d.ts +1 -0
- package/lib/inputs/mask/imaskHOC.d.ts +1 -0
- package/lib/inputs/mask/index.d.ts +1 -0
- package/lib/inputs/mask/types.d.ts +2 -1
- package/lib/inputs/multiSelect/ActionButtons.d.ts +1 -0
- package/lib/inputs/multiSelect/Dropdown.d.ts +1 -0
- package/lib/inputs/multiSelect/index.d.ts +1 -0
- package/lib/inputs/multiSelect/types.d.ts +1 -0
- package/lib/inputs/number/BaseNumber.d.ts +1 -0
- package/lib/inputs/number/Currency.d.ts +1 -0
- package/lib/inputs/number/Decimal.d.ts +1 -0
- package/lib/inputs/number/index.d.ts +1 -0
- package/lib/inputs/number/types.d.ts +1 -1
- package/lib/inputs/period/Dialog.d.ts +1 -0
- package/lib/inputs/period/Dropdown.d.ts +1 -0
- package/lib/inputs/period/PeriodList.d.ts +1 -0
- package/lib/inputs/period/helper.d.ts +1 -0
- package/lib/inputs/period/index.d.ts +1 -0
- package/lib/inputs/period/types.d.ts +1 -0
- package/lib/inputs/search/index.d.ts +1 -0
- package/lib/inputs/select/ActionButtons.d.ts +1 -0
- package/lib/inputs/select/Dropdown.d.ts +1 -0
- package/lib/inputs/select/helper.d.ts +1 -0
- package/lib/inputs/select/index.d.ts +1 -0
- package/lib/inputs/select/multiple/Selecteds.d.ts +1 -0
- package/lib/inputs/select/multiple/index.d.ts +1 -0
- package/lib/inputs/select/simple/index.d.ts +1 -0
- package/lib/inputs/select/types.d.ts +2 -1
- package/lib/inputs/text/index.d.ts +1 -0
- package/lib/inputs/text/types.d.ts +1 -1
- package/lib/inputs/textarea/index.d.ts +1 -0
- package/lib/inputs/textarea/types.d.ts +1 -0
- package/lib/inputs/types.d.ts +3 -2
- package/package.json +1 -1
package/lib/@types/Align.d.ts
CHANGED
package/lib/dialog/Alert.d.ts
CHANGED
package/lib/dialog/Custom.d.ts
CHANGED
package/lib/dialog/Error.d.ts
CHANGED
package/lib/dialog/Question.d.ts
CHANGED
package/lib/dialog/Warning.d.ts
CHANGED
package/lib/dialog/index.d.ts
CHANGED
package/lib/dialog/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode, CSSProperties, ReactElement } from 'react';
|
|
2
|
+
import { TextAlign } from '../@types/Align.js';
|
|
2
3
|
|
|
3
4
|
interface IContentProps {
|
|
4
5
|
children: ReactNode | ReactNode[];
|
|
@@ -23,7 +24,7 @@ interface IBaseProps {
|
|
|
23
24
|
closeOnEsc?: boolean;
|
|
24
25
|
closeOnOutsideClick?: boolean;
|
|
25
26
|
overlay?: boolean;
|
|
26
|
-
textAlign?:
|
|
27
|
+
textAlign?: TextAlign;
|
|
27
28
|
zIndex?: string;
|
|
28
29
|
}
|
|
29
30
|
interface IFormProps {
|
package/lib/form/Field.d.ts
CHANGED
package/lib/form/FieldArray.d.ts
CHANGED
package/lib/form/helpers.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { FormContextProps, IWithFieldContext, IGetErrorMessagesParams, Validator } from './types.js';
|
|
3
3
|
import '../inputs/select/types.js';
|
|
4
|
+
import '../@types/Align.js';
|
|
4
5
|
import '../@types/DataCombo.js';
|
|
5
6
|
import '../@types/PermissionAttr.js';
|
|
6
7
|
import '../inputs/base/types.js';
|
package/lib/form/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { default as FieldArray } from './FieldArray.js';
|
|
|
4
4
|
import { IFormProps } from './types.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '../inputs/select/types.js';
|
|
7
|
+
import '../@types/Align.js';
|
|
7
8
|
import '../@types/DataCombo.js';
|
|
8
9
|
import '../@types/PermissionAttr.js';
|
|
9
10
|
import '../inputs/base/types.js';
|
package/lib/form/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChangeEvent, ReactNode, CSSProperties, ComponentType, MouseEventHandler } from 'react';
|
|
2
2
|
import { AllOptions } from '../inputs/select/types.js';
|
|
3
|
+
import '../@types/Align.js';
|
|
3
4
|
import '../@types/DataCombo.js';
|
|
4
5
|
import '../@types/PermissionAttr.js';
|
|
5
6
|
import '../inputs/base/types.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { IFormSecurityContext, IWithFormSecurity } from './types.js';
|
|
3
3
|
import '../inputs/select/types.js';
|
|
4
|
+
import '../@types/Align.js';
|
|
4
5
|
import '../@types/DataCombo.js';
|
|
5
6
|
import '../@types/PermissionAttr.js';
|
|
6
7
|
import '../inputs/base/types.js';
|
package/lib/index.d.ts
CHANGED
|
@@ -151,7 +151,10 @@ var InputTextBase = function InputTextBase(props) {
|
|
|
151
151
|
className: "input-base-component ".concat(skeletonize ? '-skeletonized' : '', " ").concat(customClass),
|
|
152
152
|
ref: inputBaseRef
|
|
153
153
|
}, label && /*#__PURE__*/_react.default.createElement("div", {
|
|
154
|
-
className: "labelcontainer"
|
|
154
|
+
className: "labelcontainer",
|
|
155
|
+
style: {
|
|
156
|
+
textAlign: textAlign
|
|
157
|
+
}
|
|
155
158
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
156
159
|
style: styleForLabel,
|
|
157
160
|
className: "label ".concat(customClassForLabel, " ").concat(labelUppercase && ' -uppercase')
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { IBaseProps } from './types.js';
|
|
2
|
+
import { TextAlign } from '../../@types/Align.js';
|
|
2
3
|
import 'react';
|
|
3
4
|
import '../../@types/Period.js';
|
|
4
5
|
import '../../@types/PermissionAttr.js';
|
|
5
6
|
|
|
6
7
|
declare const getInputClass: ({ textAlign, readOnly, readOnlyClass }: {
|
|
7
|
-
textAlign?:
|
|
8
|
+
textAlign?: TextAlign | undefined;
|
|
8
9
|
readOnly?: boolean | undefined;
|
|
9
10
|
readOnlyClass?: string | undefined;
|
|
10
11
|
}) => string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { KeyboardEvent, DragEvent, MutableRefObject, RefObject, CSSProperties } from 'react';
|
|
2
|
+
import { TextAlign } from '../../@types/Align.js';
|
|
2
3
|
import { Period } from '../../@types/Period.js';
|
|
3
4
|
import { PermissionAttr, OnDenied } from '../../@types/PermissionAttr.js';
|
|
4
5
|
|
|
@@ -57,7 +58,7 @@ interface IBaseProps {
|
|
|
57
58
|
inputRef?: MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
|
|
58
59
|
inputBaseRef?: RefObject<HTMLDivElement> | ((ref: HTMLDivElement) => void);
|
|
59
60
|
hint?: string;
|
|
60
|
-
textAlign?:
|
|
61
|
+
textAlign?: TextAlign;
|
|
61
62
|
rounded?: boolean;
|
|
62
63
|
errorMessages?: string[] | undefined;
|
|
63
64
|
visible?: boolean;
|
|
@@ -3,6 +3,7 @@ import 'react';
|
|
|
3
3
|
import '../../@types/ColorStyles.js';
|
|
4
4
|
import '../../@types/PermissionAttr.js';
|
|
5
5
|
import '../base/types.js';
|
|
6
|
+
import '../../@types/Align.js';
|
|
6
7
|
import '../../@types/Period.js';
|
|
7
8
|
|
|
8
9
|
declare const Dialog: ({ handlerClose, children, dialogSize }: IDateDialogProps) => JSX.Element;
|
|
@@ -3,6 +3,7 @@ import { IDateDropdownProps } from './types.js';
|
|
|
3
3
|
import '../../@types/ColorStyles.js';
|
|
4
4
|
import '../../@types/PermissionAttr.js';
|
|
5
5
|
import '../base/types.js';
|
|
6
|
+
import '../../@types/Align.js';
|
|
6
7
|
import '../../@types/Period.js';
|
|
7
8
|
|
|
8
9
|
declare const Dropdown: (props: IDateDropdownProps) => React.ReactPortal;
|
|
@@ -3,6 +3,7 @@ import 'react';
|
|
|
3
3
|
import '../../@types/ColorStyles.js';
|
|
4
4
|
import '../../@types/PermissionAttr.js';
|
|
5
5
|
import '../base/types.js';
|
|
6
|
+
import '../../@types/Align.js';
|
|
6
7
|
import '../../@types/Period.js';
|
|
7
8
|
|
|
8
9
|
declare const DatePicker: (props: IDatePickerProps) => JSX.Element | null;
|
|
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { ColorStyles } from '../../@types/ColorStyles.js';
|
|
3
3
|
import { PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
4
4
|
import { CustomInputEvent } from '../base/types.js';
|
|
5
|
+
import '../../@types/Align.js';
|
|
5
6
|
import '../../@types/Period.js';
|
|
6
7
|
|
|
7
8
|
interface IDatePickerProps {
|
package/lib/inputs/inputHOC.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { IInputHOCProps } from './types.js';
|
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../@types/DataCombo.js';
|
|
5
5
|
import './base/types.js';
|
|
6
|
+
import '../@types/Align.js';
|
|
6
7
|
import '../@types/Period.js';
|
|
7
8
|
import '../drawer/types.js';
|
|
8
9
|
import '../@types/Position.js';
|
package/lib/inputs/mask/Cpf.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { IMaskHOCProps } from '../types.js';
|
|
|
3
3
|
import '../../@types/PermissionAttr.js';
|
|
4
4
|
import '../../@types/DataCombo.js';
|
|
5
5
|
import '../base/types.js';
|
|
6
|
+
import '../../@types/Align.js';
|
|
6
7
|
import '../../@types/Period.js';
|
|
7
8
|
import '../../drawer/types.js';
|
|
8
9
|
import '../../@types/Position.js';
|
|
@@ -5,6 +5,7 @@ export { default as PhoneField } from './Phone.js';
|
|
|
5
5
|
export { default as ZipCodeField } from './ZipCode.js';
|
|
6
6
|
import './types.js';
|
|
7
7
|
import 'react';
|
|
8
|
+
import '../../@types/Align.js';
|
|
8
9
|
import '../../@types/PermissionAttr.js';
|
|
9
10
|
import '../base/types.js';
|
|
10
11
|
import '../../@types/Period.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { KeyboardEvent, MutableRefObject } from 'react';
|
|
2
|
+
import { TextAlign } from '../../@types/Align.js';
|
|
2
3
|
import { OnDenied, PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
3
4
|
import { CustomInputEvent } from '../base/types.js';
|
|
4
5
|
import '../../@types/Period.js';
|
|
@@ -26,7 +27,7 @@ interface IBaseMaskProps {
|
|
|
26
27
|
permissionAttr?: PermissionAttr;
|
|
27
28
|
errorMessages?: string[];
|
|
28
29
|
rounded?: boolean;
|
|
29
|
-
textAlign?:
|
|
30
|
+
textAlign?: TextAlign;
|
|
30
31
|
customClassForInputContent?: string;
|
|
31
32
|
label?: string;
|
|
32
33
|
name?: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChangeEvent, RefObject } from 'react';
|
|
2
2
|
import { DataCombo } from '../../@types/DataCombo.js';
|
|
3
3
|
import { CustomInputEvent } from '../base/types.js';
|
|
4
|
+
import '../../@types/Align.js';
|
|
4
5
|
import '../../@types/Period.js';
|
|
5
6
|
import '../../@types/PermissionAttr.js';
|
|
6
7
|
|
|
@@ -2,6 +2,7 @@ import { PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
|
2
2
|
import { CustomInputEvent } from '../base/types.js';
|
|
3
3
|
import { IMaskHOCProps } from '../types.js';
|
|
4
4
|
import 'react';
|
|
5
|
+
import '../../@types/Align.js';
|
|
5
6
|
import '../../@types/Period.js';
|
|
6
7
|
import '../../@types/DataCombo.js';
|
|
7
8
|
import '../../drawer/types.js';
|
|
@@ -9,7 +10,6 @@ import '../../@types/Position.js';
|
|
|
9
10
|
|
|
10
11
|
interface INumberFieldProps extends IMaskHOCProps {
|
|
11
12
|
value?: string;
|
|
12
|
-
textAlign?: string;
|
|
13
13
|
permissionAttr?: PermissionAttr;
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
onChange?: (e?: CustomInputEvent, maskValue?: string, date?: string | {
|
|
@@ -5,6 +5,7 @@ import '../../@types/ColorStyles.js';
|
|
|
5
5
|
import '../../@types/Period.js';
|
|
6
6
|
import '../../@types/PermissionAttr.js';
|
|
7
7
|
import '../base/types.js';
|
|
8
|
+
import '../../@types/Align.js';
|
|
8
9
|
|
|
9
10
|
declare const Dialog: ({ handlerClose, children, dialogSize }: IDialogProps) => JSX.Element;
|
|
10
11
|
|
|
@@ -5,6 +5,7 @@ import '../../@types/ColorStyles.js';
|
|
|
5
5
|
import '../../@types/Period.js';
|
|
6
6
|
import '../../@types/PermissionAttr.js';
|
|
7
7
|
import '../base/types.js';
|
|
8
|
+
import '../../@types/Align.js';
|
|
8
9
|
|
|
9
10
|
declare const PeriodList: ({ selected, handleOnSelect }: IPeriodListProps) => JSX.Element;
|
|
10
11
|
|
|
@@ -5,6 +5,7 @@ import '../../@types/ColorStyles.js';
|
|
|
5
5
|
import '../../@types/Period.js';
|
|
6
6
|
import '../../@types/PermissionAttr.js';
|
|
7
7
|
import '../base/types.js';
|
|
8
|
+
import '../../@types/Align.js';
|
|
8
9
|
|
|
9
10
|
declare const getCalendarDropdownStyle: ({ topPosition, leftPosition, width }: {
|
|
10
11
|
topPosition: number | string;
|
|
@@ -4,6 +4,7 @@ import { ColorStyles } from '../../@types/ColorStyles.js';
|
|
|
4
4
|
import { Period } from '../../@types/Period.js';
|
|
5
5
|
import { PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
6
6
|
import { CustomInputEvent } from '../base/types.js';
|
|
7
|
+
import '../../@types/Align.js';
|
|
7
8
|
|
|
8
9
|
type DateTypes = 'today' | 'week' | 'lastweek' | 'last15' | 'month' | 'lastmonth';
|
|
9
10
|
interface IPeriodOptions {
|
|
@@ -3,6 +3,7 @@ import { IDropdownSelectProps } from '../types.js';
|
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../../@types/PermissionAttr.js';
|
|
5
5
|
import '../base/types.js';
|
|
6
|
+
import '../../@types/Align.js';
|
|
6
7
|
import '../../@types/Period.js';
|
|
7
8
|
import '../../drawer/types.js';
|
|
8
9
|
import '../../@types/Position.js';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TextAlign } from '../../@types/Align.js';
|
|
1
2
|
import { DataCombo } from '../../@types/DataCombo.js';
|
|
2
3
|
import { PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
3
4
|
import { CustomInputEvent } from '../base/types.js';
|
|
@@ -17,7 +18,7 @@ interface ISimpleSelectProps {
|
|
|
17
18
|
placeHolder?: string;
|
|
18
19
|
hint?: string;
|
|
19
20
|
value?: string | number | boolean | number[];
|
|
20
|
-
textAlign?:
|
|
21
|
+
textAlign?: TextAlign;
|
|
21
22
|
errorMessages?: string[];
|
|
22
23
|
showClearButton?: boolean;
|
|
23
24
|
searchOnDropdown?: boolean;
|
|
@@ -3,6 +3,7 @@ import { PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
|
3
3
|
import { IBaseProps, CustomInputEvent } from '../base/types.js';
|
|
4
4
|
import { WithTooltipProps } from '../../internals/types.js';
|
|
5
5
|
import 'react';
|
|
6
|
+
import '../../@types/Align.js';
|
|
6
7
|
import '../../@types/Position.js';
|
|
7
8
|
|
|
8
9
|
type CommonProperties = Pick<WithTooltipProps, 'tooltip' | 'tooltipPosition' | 'tooltipWidth'>;
|
|
@@ -18,7 +19,6 @@ interface ITextField extends IBaseProps, CommonProperties {
|
|
|
18
19
|
leftElements?: JSX.Element | JSX.Element[];
|
|
19
20
|
rightElements?: JSX.Element | JSX.Element[];
|
|
20
21
|
permissionAttr?: PermissionAttr;
|
|
21
|
-
textAlign?: string;
|
|
22
22
|
gridLayout?: string;
|
|
23
23
|
}
|
|
24
24
|
|
package/lib/inputs/types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { PermissionAttr, OnDenied } from '../@types/PermissionAttr.js';
|
|
|
3
3
|
import { DataCombo } from '../@types/DataCombo.js';
|
|
4
4
|
import { IBaseProps, CustomInputEvent } from './base/types.js';
|
|
5
5
|
import { IDrawerProps } from '../drawer/types.js';
|
|
6
|
+
import { TextAlign } from '../@types/Align.js';
|
|
6
7
|
import '../@types/Period.js';
|
|
7
8
|
import '../@types/Position.js';
|
|
8
9
|
|
|
@@ -16,7 +17,7 @@ interface ISearchProps extends IBaseProps {
|
|
|
16
17
|
onReset?: (event?: CustomInputEvent) => void;
|
|
17
18
|
onChange?: (event?: CustomInputEvent) => void;
|
|
18
19
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
19
|
-
textAlign?:
|
|
20
|
+
textAlign?: TextAlign;
|
|
20
21
|
disabled?: boolean;
|
|
21
22
|
readOnly?: boolean;
|
|
22
23
|
value?: string;
|
|
@@ -87,7 +88,7 @@ interface IMaskHOCProps {
|
|
|
87
88
|
customClass?: string;
|
|
88
89
|
customClassForInputContent?: string;
|
|
89
90
|
customClassForLabel?: string;
|
|
90
|
-
textAlign?:
|
|
91
|
+
textAlign?: TextAlign;
|
|
91
92
|
onBlur?: (e: CustomInputEvent) => void;
|
|
92
93
|
leftElements?: JSX.Element | JSX.Element[];
|
|
93
94
|
rounded?: boolean;
|