linear-react-components-ui 1.1.24-beta.1 → 1.1.24-beta.3
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/BaseMask-ce8dedc1.d.ts +24 -0
- package/lib/Cnpj-aa8c3e13.d.ts +18 -0
- package/lib/Cpf-d58b5482.d.ts +18 -0
- package/lib/Phone-8a912d9e.d.ts +18 -0
- package/lib/ZipCode-d4a08d23.d.ts +13 -0
- package/lib/assets/styles/numberfield.scss +18 -0
- package/lib/assets/styles/radiofield.scss +185 -0
- package/lib/assets/styles/textfield.scss +0 -1
- package/lib/buttons/DefaultButton.js +7 -17
- package/lib/dialog/base/index.js +1 -1
- package/lib/form2/index.d.ts +1 -1
- package/lib/form2/useForm/index.js +3 -4
- package/lib/icons/helper.d.ts +0 -4
- package/lib/icons/helper.js +0 -4
- package/lib/index-287b0453.d.ts +23 -0
- package/lib/index-35ba9ed8.d.ts +15 -0
- package/lib/index-4529c2ba.d.ts +44 -0
- package/lib/index-474db0eb.d.ts +23 -0
- package/lib/index-5b2c554c.d.ts +41 -0
- package/lib/index-ecafc8c6.d.ts +30 -0
- package/lib/inputs/base/InputTextBase.js +2 -4
- package/lib/inputs/base/types.d.ts +1 -1
- package/lib/inputs/color/types.d.ts +1 -1
- package/lib/inputs/date/types.d.ts +1 -1
- package/lib/inputs/file/DefaultFile.js +1 -1
- package/lib/inputs/mask/types.d.ts +1 -1
- package/lib/inputs/multiSelect/types.d.ts +1 -1
- package/lib/inputs/number/types.d.ts +2 -2
- package/lib/inputs2/checkboxfield/index.d.ts +1 -1
- package/lib/inputs2/checkboxfield/index.js +2 -6
- package/lib/inputs2/colorfield/index.d.ts +2 -2
- package/lib/inputs2/date/base/index.js +2 -6
- package/lib/inputs2/date/datefield/calendarbox.d.ts +1 -1
- package/lib/inputs2/date/datefield/context.d.ts +1 -0
- package/lib/inputs2/date/datefield/index.d.ts +1 -0
- package/lib/inputs2/date/datefield/index.js +6 -4
- package/lib/inputs2/date/datefield/types.d.ts +2 -0
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +1 -1
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +28 -0
- package/lib/inputs2/date/dateperiodfield/context.d.ts +1 -0
- package/lib/inputs2/date/dateperiodfield/index.d.ts +1 -0
- package/lib/inputs2/date/dateperiodfield/index.js +8 -7
- package/lib/inputs2/date/dateperiodfield/types.d.ts +2 -0
- package/lib/inputs2/date/helpers.d.ts +1 -0
- package/lib/inputs2/date/types.d.ts +2 -1
- package/lib/inputs2/index.d.ts +18 -15
- package/lib/inputs2/index.js +9 -13
- package/lib/inputs2/mask/BaseMask.d.ts +2 -2
- package/lib/inputs2/mask/Cnpj.d.ts +3 -3
- package/lib/inputs2/mask/Cpf.d.ts +3 -3
- package/lib/inputs2/mask/Phone.d.ts +3 -3
- package/lib/inputs2/mask/ZipCode.d.ts +3 -3
- package/lib/inputs2/numberfield/currency.d.ts +13 -0
- package/lib/inputs2/{number/BaseNumber.js → numberfield/currency.js} +63 -58
- package/lib/inputs2/numberfield/decimal.d.ts +13 -0
- package/lib/inputs2/numberfield/decimal.js +85 -0
- package/lib/inputs2/numberfield/helpers.d.ts +30 -0
- package/lib/inputs2/numberfield/helpers.js +53 -0
- package/lib/inputs2/numberfield/index.d.ts +12 -0
- package/lib/inputs2/numberfield/index.js +104 -0
- package/lib/inputs2/numberfield/types.d.ts +36 -0
- package/lib/inputs2/numberfield/types.js +5 -0
- package/lib/inputs2/{number/Number.d.ts → radiofield/index.d.ts} +4 -4
- package/lib/inputs2/radiofield/index.js +143 -0
- package/lib/inputs2/radiofield/types.d.ts +33 -0
- package/lib/inputs2/radiofield/types.js +5 -0
- package/lib/inputs2/selectfield/index.d.ts +1 -1
- package/lib/inputs2/selectfield/index.js +8 -10
- package/lib/inputs2/selectfield/item.d.ts +1 -1
- package/lib/inputs2/selectfield/listbox.d.ts +1 -1
- package/lib/inputs2/selectfield/search.d.ts +1 -1
- package/lib/inputs2/selectfield/selections.d.ts +1 -1
- package/lib/inputs2/selectfield/types.d.ts +1 -2
- package/lib/inputs2/slot/index.d.ts +2 -2
- package/lib/inputs2/textfield/index.d.ts +1 -1
- package/lib/inputs2/textfield/index.js +9 -12
- package/lib/popover/PopoverText.js +2 -11
- package/lib/popover/index.js +1 -1
- package/lib/popover/types.d.ts +0 -1
- package/package.json +1 -1
- package/lib/BaseMask-04df8f20.d.ts +0 -24
- package/lib/BaseNumber-c609c5a0.d.ts +0 -23
- package/lib/Cnpj-5471cb1f.d.ts +0 -18
- package/lib/Cpf-71c4f0f4.d.ts +0 -18
- package/lib/Currency-38d14ff7.d.ts +0 -18
- package/lib/Decimal-85d45244.d.ts +0 -13
- package/lib/Number-db3c092d.d.ts +0 -20
- package/lib/Phone-4c4142e4.d.ts +0 -18
- package/lib/ZipCode-dc7dd4da.d.ts +0 -13
- package/lib/index-379b7504.d.ts +0 -44
- package/lib/index-7cb5e8b3.d.ts +0 -41
- package/lib/index-809a7899.d.ts +0 -23
- package/lib/index-de21a05e.d.ts +0 -23
- package/lib/inputs2/number/BaseNumber.d.ts +0 -10
- package/lib/inputs2/number/Currency.d.ts +0 -11
- package/lib/inputs2/number/Currency.js +0 -47
- package/lib/inputs2/number/Decimal.d.ts +0 -11
- package/lib/inputs2/number/Decimal.js +0 -36
- package/lib/inputs2/number/Number.js +0 -49
- package/lib/inputs2/number/format_number.d.ts +0 -5
- package/lib/inputs2/number/format_number.js +0 -29
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { T as TextFieldInputProps } from './index-4529c2ba.js';
|
|
3
|
+
import { FactoryOpts } from 'imask';
|
|
4
|
+
|
|
5
|
+
interface MaskFieldProps extends TextFieldInputProps {
|
|
6
|
+
maskOptions?: FactoryOpts;
|
|
7
|
+
onAccept?: (value: string) => void;
|
|
8
|
+
onComplete?: (value: string, maskRef: any, e?: InputEvent) => void;
|
|
9
|
+
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
autoCompleteMask?: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const Input: React__default.ForwardRefExoticComponent<MaskFieldProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
14
|
+
|
|
15
|
+
declare const BaseMask_Input: typeof Input;
|
|
16
|
+
type BaseMask_MaskFieldProps = MaskFieldProps;
|
|
17
|
+
declare namespace BaseMask {
|
|
18
|
+
export {
|
|
19
|
+
BaseMask_Input as Input,
|
|
20
|
+
BaseMask_MaskFieldProps as MaskFieldProps,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { BaseMask as B, Input as I, MaskFieldProps as M };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { M as MaskFieldProps } from './BaseMask-ce8dedc1.js';
|
|
3
|
+
|
|
4
|
+
interface CnpjFieldProps extends MaskFieldProps {
|
|
5
|
+
onValidate?: (errors: string[]) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const Input: React__default.ForwardRefExoticComponent<CnpjFieldProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
8
|
+
|
|
9
|
+
type Cnpj_CnpjFieldProps = CnpjFieldProps;
|
|
10
|
+
declare const Cnpj_Input: typeof Input;
|
|
11
|
+
declare namespace Cnpj {
|
|
12
|
+
export {
|
|
13
|
+
Cnpj_CnpjFieldProps as CnpjFieldProps,
|
|
14
|
+
Cnpj_Input as Input,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { Cnpj as C, Input as I, CnpjFieldProps as a };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { M as MaskFieldProps } from './BaseMask-ce8dedc1.js';
|
|
3
|
+
|
|
4
|
+
interface CpfFieldProps extends MaskFieldProps {
|
|
5
|
+
onValidate?: (errors: string[]) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const Input: React__default.ForwardRefExoticComponent<CpfFieldProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
8
|
+
|
|
9
|
+
type Cpf_CpfFieldProps = CpfFieldProps;
|
|
10
|
+
declare const Cpf_Input: typeof Input;
|
|
11
|
+
declare namespace Cpf {
|
|
12
|
+
export {
|
|
13
|
+
Cpf_CpfFieldProps as CpfFieldProps,
|
|
14
|
+
Cpf_Input as Input,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { Cpf as C, Input as I, CpfFieldProps as a };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { M as MaskFieldProps } from './BaseMask-ce8dedc1.js';
|
|
3
|
+
|
|
4
|
+
interface PhoneFieldProps extends MaskFieldProps {
|
|
5
|
+
isCellphone?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const Input: React__default.ForwardRefExoticComponent<PhoneFieldProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
8
|
+
|
|
9
|
+
declare const Phone_Input: typeof Input;
|
|
10
|
+
type Phone_PhoneFieldProps = PhoneFieldProps;
|
|
11
|
+
declare namespace Phone {
|
|
12
|
+
export {
|
|
13
|
+
Phone_Input as Input,
|
|
14
|
+
Phone_PhoneFieldProps as PhoneFieldProps,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { Input as I, Phone as P, PhoneFieldProps as a };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { M as MaskFieldProps } from './BaseMask-ce8dedc1.js';
|
|
3
|
+
|
|
4
|
+
declare const Input: React__default.ForwardRefExoticComponent<MaskFieldProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
5
|
+
|
|
6
|
+
declare const ZipCode_Input: typeof Input;
|
|
7
|
+
declare namespace ZipCode {
|
|
8
|
+
export {
|
|
9
|
+
ZipCode_Input as Input,
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { Input as I, ZipCode as Z };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@import "colors.scss";
|
|
2
|
+
@import "effects.scss";
|
|
3
|
+
@import "commons.scss";
|
|
4
|
+
@import "fonts.scss";
|
|
5
|
+
|
|
6
|
+
.currency-left-elements {
|
|
7
|
+
.currency-symbol {
|
|
8
|
+
user-select: none;
|
|
9
|
+
margin: 0;
|
|
10
|
+
height: 100%;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
padding: 0px 6px;
|
|
15
|
+
font-size: 14px;
|
|
16
|
+
background-color: $component-bg-default;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
@import "fonts.scss";
|
|
2
|
+
@import "colors.scss";
|
|
3
|
+
@import "commons.scss";
|
|
4
|
+
@import "effects.scss";
|
|
5
|
+
|
|
6
|
+
$radio-button-checked-color: $component-selected-color;
|
|
7
|
+
$radio-button-border-color: rgba(0, 0, 0, 0.54);
|
|
8
|
+
$radio-button-size: 20px;
|
|
9
|
+
$radio-button-checked-size: 10px;
|
|
10
|
+
$radio-button-ripple-size: 15px;
|
|
11
|
+
|
|
12
|
+
:root {
|
|
13
|
+
--radio-small: 12px;
|
|
14
|
+
--radio-medium: 16px;
|
|
15
|
+
--radio-large: 20px;
|
|
16
|
+
--radio-border-size: 1px;
|
|
17
|
+
--radio-checked-blank-size: calc(var(--radio-border-size) * 6);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.radio-field-root {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
.container {
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 32px;
|
|
26
|
+
margin: 0;
|
|
27
|
+
padding: 0;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-wrap: wrap;
|
|
31
|
+
align-items: center;
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
justify-content: start;
|
|
34
|
+
overflow: unset;
|
|
35
|
+
input.input {
|
|
36
|
+
@extend %input-placeholder;
|
|
37
|
+
@extend %component-fonts;
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
width: var(--radio-medium);
|
|
42
|
+
height: var(--radio-medium);
|
|
43
|
+
appearance: none;
|
|
44
|
+
border-radius: 100%;
|
|
45
|
+
background-color: $default-color;
|
|
46
|
+
border: 1px solid $component-border-color;
|
|
47
|
+
transition: 0.2s border;
|
|
48
|
+
&:checked {
|
|
49
|
+
border-color: $radio-button-checked-color;
|
|
50
|
+
&::after {
|
|
51
|
+
content: '';
|
|
52
|
+
width: calc(var(--radio-medium) - var(--radio-checked-blank-size));
|
|
53
|
+
height: calc(var(--radio-medium) - var(--radio-checked-blank-size));
|
|
54
|
+
border-radius: 100%;
|
|
55
|
+
background-color: $radio-button-checked-color;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
&:hover, &:focus {
|
|
59
|
+
outline: 3px solid rgba(161,13,13,0.35);
|
|
60
|
+
outline-offset: 0px;
|
|
61
|
+
}
|
|
62
|
+
&:disabled {
|
|
63
|
+
cursor: not-allowed;
|
|
64
|
+
cursor: default;
|
|
65
|
+
background-color: $input-disabled-bg-color;
|
|
66
|
+
&:checked {
|
|
67
|
+
border-color: $font-color-disabled;
|
|
68
|
+
&::after {
|
|
69
|
+
background-color: $font-color-disabled;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
&[data-state-read-only=true] {
|
|
74
|
+
cursor: default;
|
|
75
|
+
background-color: $input-read-only-bg-color;
|
|
76
|
+
&:checked {
|
|
77
|
+
border-color: $font-color-disabled;
|
|
78
|
+
&::after {
|
|
79
|
+
background-color: $font-color-disabled;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
&:disabled, &[data-state-read-only=true] {
|
|
84
|
+
&:hover, &:focus {
|
|
85
|
+
outline: none;
|
|
86
|
+
box-shadow: none;
|
|
87
|
+
-webkit-box-shadow: none;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
&[data-state-size="small"] {
|
|
91
|
+
width: var(--radio-small);
|
|
92
|
+
height: var(--radio-small);
|
|
93
|
+
&::after {
|
|
94
|
+
width: calc(var(--radio-small) - var(--radio-checked-blank-size));
|
|
95
|
+
height: calc(var(--radio-small) - var(--radio-checked-blank-size));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
&[data-state-size="medium"] {
|
|
99
|
+
width: var(--radio-medium);
|
|
100
|
+
height: var(--radio-medium);
|
|
101
|
+
&::after {
|
|
102
|
+
width: calc(var(--radio-medium) - var(--radio-checked-blank-size));
|
|
103
|
+
height: calc(var(--radio-medium) - var(--radio-checked-blank-size));
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
&[data-state-size="large"] {
|
|
107
|
+
width: var(--radio-large);
|
|
108
|
+
height: var(--radio-large);
|
|
109
|
+
&::after {
|
|
110
|
+
width: calc(var(--radio-large) - var(--radio-checked-blank-size));
|
|
111
|
+
height: calc(var(--radio-large) - var(--radio-checked-blank-size));
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
&[data-state-skeletonize=true] {
|
|
115
|
+
@extend %skeleton-component;
|
|
116
|
+
border: none;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
&[data-state-skeletonize=true] {
|
|
120
|
+
gap: 0.375rem;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
.root-label {
|
|
124
|
+
padding: 0;
|
|
125
|
+
line-height: normal;
|
|
126
|
+
display: inline-flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
flex-direction: row;
|
|
129
|
+
justify-content: flex-start;
|
|
130
|
+
&[data-state-skeletonize=true] {
|
|
131
|
+
@extend %skeleton-component;
|
|
132
|
+
.label {
|
|
133
|
+
color: transparent;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
.label {
|
|
137
|
+
font-size: 0.875rem;
|
|
138
|
+
text-indent: 0.375rem;
|
|
139
|
+
line-height: normal;
|
|
140
|
+
color: $font-color-default;
|
|
141
|
+
overflow: hidden;
|
|
142
|
+
text-overflow: ellipsis;
|
|
143
|
+
white-space: nowrap;
|
|
144
|
+
&[data-state-input-required=true]::after {
|
|
145
|
+
content: "*";
|
|
146
|
+
color: $font-color-default;
|
|
147
|
+
}
|
|
148
|
+
&[data-state-uppercase=true] {
|
|
149
|
+
text-transform: uppercase;
|
|
150
|
+
}
|
|
151
|
+
&[data-state-required-label=true] {
|
|
152
|
+
color: $error-color;
|
|
153
|
+
font-weight: 600;
|
|
154
|
+
font-size: 0.875rem;
|
|
155
|
+
margin-left: 1px;
|
|
156
|
+
}
|
|
157
|
+
&[data-state-read-only=true], &[data-state-disabled=true] {
|
|
158
|
+
pointer-events: none;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
>button {
|
|
162
|
+
width: 20px;
|
|
163
|
+
height: auto;
|
|
164
|
+
margin: 0px;
|
|
165
|
+
margin-left: 3px;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
.hint {
|
|
169
|
+
span {
|
|
170
|
+
display: inline-block;
|
|
171
|
+
width: 100%;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
.error {
|
|
175
|
+
width: 100%;
|
|
176
|
+
color: $error-color;
|
|
177
|
+
margin-top: 5px;
|
|
178
|
+
font-size: 0.8125rem;
|
|
179
|
+
line-height: 0.8125rem;
|
|
180
|
+
&[data-state-skeletonize=true] {
|
|
181
|
+
@extend %skeleton-component;
|
|
182
|
+
color: transparent;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
@@ -11,7 +11,7 @@ var _spinner = _interopRequireDefault(require("../spinner"));
|
|
|
11
11
|
var _withDropdown = _interopRequireDefault(require("../dropdown/withDropdown"));
|
|
12
12
|
var _permissionValidations = require("../permissionValidations");
|
|
13
13
|
var _tooltip = require("../tooltip");
|
|
14
|
-
const _excluded = ["dropdown", "onClick", "disabled", "iconName", "icon", "targetRef", "tabIndex", "isLoading", "label", "showDropdown", "getDropdownPopup", "isDropdownOpened", "showIconDropdown", "content", "style", "toggleable", "activeIconColor", "iconStyle", "visible", "customClass", "className", "size", "iconAlign", "boxShadow", "transparent", "round", "permissionAttr", "skeletonize", "tooltip", "tooltipWidth", "tooltipPosition", "buttonRef", "errorMessage", "
|
|
14
|
+
const _excluded = ["dropdown", "onClick", "disabled", "iconName", "icon", "targetRef", "tabIndex", "isLoading", "label", "showDropdown", "getDropdownPopup", "isDropdownOpened", "showIconDropdown", "content", "style", "toggleable", "activeIconColor", "iconStyle", "visible", "customClass", "className", "size", "iconAlign", "boxShadow", "transparent", "round", "permissionAttr", "skeletonize", "tooltip", "tooltipWidth", "tooltipPosition", "buttonRef", "errorMessage", "onDeniedText"];
|
|
15
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -58,7 +58,6 @@ const DefaultButton = _ref => {
|
|
|
58
58
|
tooltipPosition,
|
|
59
59
|
buttonRef,
|
|
60
60
|
errorMessage,
|
|
61
|
-
type = 'button',
|
|
62
61
|
onDeniedText = 'Permissão Negada! Consulte o Administrador do sistema.'
|
|
63
62
|
} = _ref,
|
|
64
63
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -128,7 +127,6 @@ const DefaultButton = _ref => {
|
|
|
128
127
|
};
|
|
129
128
|
if (!visible || onDenied.unvisible) return null;
|
|
130
129
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("button", _extends({}, _lodash.default.omit(rest, 'dropdownAlign'), {
|
|
131
|
-
type: type,
|
|
132
130
|
style: style,
|
|
133
131
|
onKeyDown: e => {
|
|
134
132
|
if (e && (e.key === 'Enter' || e.key === ' ')) {
|
|
@@ -141,20 +139,12 @@ const DefaultButton = _ref => {
|
|
|
141
139
|
}
|
|
142
140
|
},
|
|
143
141
|
onClick: e => {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
if (type !== 'submit') {
|
|
151
|
-
e.preventDefault();
|
|
152
|
-
if (isDisabled) return;
|
|
153
|
-
// É Necessário que tenha o preventDefault pois foi retirado o disabled do botão, assim evitando que o evento padrão seja disparado.
|
|
154
|
-
if (onClick) onClick(e);
|
|
155
|
-
if (dropdown && showDropdown) showDropdown();
|
|
156
|
-
if (onClick && toggleable) setActiveButton(!activeButton);
|
|
157
|
-
}
|
|
142
|
+
// É Necessário que tenha o preventDefault pois foi retirado o disabled do botão, assim evitando que o evento padrão seja disparado.
|
|
143
|
+
e.preventDefault();
|
|
144
|
+
if (isDisabled) return;
|
|
145
|
+
if (onClick) onClick(e);
|
|
146
|
+
if (dropdown && showDropdown) showDropdown();
|
|
147
|
+
if (onClick && toggleable) setActiveButton(!activeButton);
|
|
158
148
|
},
|
|
159
149
|
className: `${getClass()} ${activeButton ? '-toggleable' : ''} ${skeletonize ? '-skeletonized' : ''}`,
|
|
160
150
|
ref: r => {
|
package/lib/dialog/base/index.js
CHANGED
|
@@ -136,7 +136,7 @@ const BaseDialog = props => {
|
|
|
136
136
|
className: "modalcontainer",
|
|
137
137
|
onMouseDown: handleClickOutside,
|
|
138
138
|
style: {
|
|
139
|
-
zIndex:
|
|
139
|
+
zIndex: Number(zIndex)
|
|
140
140
|
}
|
|
141
141
|
}, overlay && /*#__PURE__*/_react.default.createElement("div", {
|
|
142
142
|
className: "modal-overlay",
|
package/lib/form2/index.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ import './types.js';
|
|
|
4
4
|
|
|
5
5
|
interface FormElementProps extends React__default.ComponentProps<'form'> {
|
|
6
6
|
}
|
|
7
|
-
declare const Form: React__default.ForwardRefExoticComponent<Pick<FormElementProps, "slot" | "style" | "title" | "
|
|
7
|
+
declare const Form: React__default.ForwardRefExoticComponent<Pick<FormElementProps, "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "align" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "target" | "rel" | "autoComplete" | "acceptCharset" | "action" | "encType" | "method" | "noValidate"> & React__default.RefAttributes<HTMLFormElement>>;
|
|
8
8
|
|
|
9
9
|
export { Form as default };
|
|
@@ -144,18 +144,17 @@ const useForm = _ref => {
|
|
|
144
144
|
const {
|
|
145
145
|
value
|
|
146
146
|
} = event.target;
|
|
147
|
-
const inputValue = !_lodash.default.isNumber(value) ? value : _lodash.default.toNumber(value);
|
|
148
147
|
setValues(prevStateValues => {
|
|
149
148
|
const updatedValues = _lodash.default.cloneDeep(prevStateValues);
|
|
150
|
-
_lodash.default.set(updatedValues, name,
|
|
151
|
-
const hasChanged = !_lodash.default.isEqual(_lodash.default.get(valuesToCompareInChangedRef.current, name),
|
|
149
|
+
_lodash.default.set(updatedValues, name, value);
|
|
150
|
+
const hasChanged = !_lodash.default.isEqual(_lodash.default.get(valuesToCompareInChangedRef.current, name), value);
|
|
152
151
|
setChanged(prevStateChanged => {
|
|
153
152
|
const updatedChangedState = _lodash.default.cloneDeep(prevStateChanged);
|
|
154
153
|
_lodash.default.set(updatedChangedState, name, hasChanged);
|
|
155
154
|
return updatedChangedState;
|
|
156
155
|
});
|
|
157
156
|
if (options.validationMode === 'default' && _lodash.default.get(touched, name)) {
|
|
158
|
-
validateField(name,
|
|
157
|
+
validateField(name, value);
|
|
159
158
|
}
|
|
160
159
|
return updatedValues;
|
|
161
160
|
});
|
package/lib/icons/helper.d.ts
CHANGED
package/lib/icons/helper.js
CHANGED
|
@@ -636,9 +636,5 @@ var _default = exports.default = {
|
|
|
636
636
|
earth: {
|
|
637
637
|
viewbox: '0 0 16 16',
|
|
638
638
|
paths: ['M8 0c-4.418 0-8 3.582-8 8s3.582 8 8 8 8-3.582 8-8-3.582-8-8-8zM8 15c-0.984 0-1.92-0.203-2.769-0.57l3.643-4.098c0.081-0.092 0.126-0.21 0.126-0.332v-1.5c0-0.276-0.224-0.5-0.5-0.5-1.765 0-3.628-1.835-3.646-1.854-0.094-0.094-0.221-0.146-0.354-0.146h-2c-0.276 0-0.5 0.224-0.5 0.5v3c0 0.189 0.107 0.363 0.276 0.447l1.724 0.862v2.936c-1.813-1.265-3-3.366-3-5.745 0-1.074 0.242-2.091 0.674-3h1.826c0.133 0 0.26-0.053 0.354-0.146l2-2c0.094-0.094 0.146-0.221 0.146-0.354v-1.21c0.634-0.189 1.305-0.29 2-0.29 1.1 0 2.141 0.254 3.067 0.706-0.065 0.055-0.128 0.112-0.188 0.172-0.567 0.567-0.879 1.32-0.879 2.121s0.312 1.555 0.879 2.121c0.569 0.569 1.332 0.879 2.119 0.879 0.049 0 0.099-0.001 0.149-0.004 0.216 0.809 0.605 2.917-0.131 5.818-0.007 0.027-0.011 0.055-0.013 0.082-1.271 1.298-3.042 2.104-5.002 2.104z']
|
|
639
|
-
},
|
|
640
|
-
clipboard: {
|
|
641
|
-
viewbox: '0 0 16 16',
|
|
642
|
-
paths: ['M14.5 2h-4.5c0-1.105-0.895-2-2-2s-2 0.895-2 2h-4.5c-0.276 0-0.5 0.224-0.5 0.5v13c0 0.276 0.224 0.5 0.5 0.5h13c0.276 0 0.5-0.224 0.5-0.5v-13c0-0.276-0.224-0.5-0.5-0.5zM8 1c0.552 0 1 0.448 1 1s-0.448 1-1 1c-0.552 0-1-0.448-1-1s0.448-1 1-1zM14 15h-12v-12h2v1.5c0 0.276 0.224 0.5 0.5 0.5h7c0.276 0 0.5-0.224 0.5-0.5v-1.5h2v12z', 'M11.5 9h-7c-0.276 0-0.5-0.224-0.5-0.5s0.224-0.5 0.5-0.5h7c0.276 0 0.5 0.224 0.5 0.5s-0.224 0.5-0.5 0.5z', 'M11.5 11h-7c-0.276 0-0.5-0.224-0.5-0.5s0.224-0.5 0.5-0.5h7c0.276 0 0.5 0.224 0.5 0.5s-0.224 0.5-0.5 0.5z', 'M11.5 13h-7c-0.276 0-0.5-0.224-0.5-0.5s0.224-0.5 0.5-0.5h7c0.276 0 0.5 0.224 0.5 0.5s-0.224 0.5-0.5 0.5z']
|
|
643
639
|
}
|
|
644
640
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
|
|
3
|
+
import { T as TextFieldInputProps } from './index-4529c2ba.js';
|
|
4
|
+
|
|
5
|
+
interface ColorFieldInputProps extends TextFieldInputProps {
|
|
6
|
+
isTypeText?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const Input: React__default.ForwardRefExoticComponent<ColorFieldInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
9
|
+
|
|
10
|
+
type index_ColorFieldInputProps = ColorFieldInputProps;
|
|
11
|
+
declare const index_Input: typeof Input;
|
|
12
|
+
declare const index_LeftSlot: typeof LeftSlot;
|
|
13
|
+
declare const index_RightSlot: typeof RightSlot;
|
|
14
|
+
declare namespace index {
|
|
15
|
+
export {
|
|
16
|
+
index_ColorFieldInputProps as ColorFieldInputProps,
|
|
17
|
+
index_Input as Input,
|
|
18
|
+
index_LeftSlot as LeftSlot,
|
|
19
|
+
index_RightSlot as RightSlot,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { ColorFieldInputProps as C, Input as I, index as i };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { RadioFieldInputProps } from './inputs2/radiofield/types.js';
|
|
3
|
+
|
|
4
|
+
declare const Input: React__default.ForwardRefExoticComponent<Pick<RadioFieldInputProps, "form" | "label" | "slot" | "style" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "align" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "customClass" | "permissionAttr" | "size" | "skeletonize" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "tooltip" | "tooltipWidth" | "tooltipPosition" | "checked" | "required" | "labelUppercase" | "hint" | "hintPosition" | "themePopover" | "popoverAlign" | "width" | "height" | "readOnly" | "list" | "step" | "maxLength" | "textAlign" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "max" | "min" | "src" | "alt" | "errors" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "getFieldValue"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
5
|
+
|
|
6
|
+
declare const index_Input: typeof Input;
|
|
7
|
+
declare const index_RadioFieldInputProps: typeof RadioFieldInputProps;
|
|
8
|
+
declare namespace index {
|
|
9
|
+
export {
|
|
10
|
+
index_Input as Input,
|
|
11
|
+
index_RadioFieldInputProps as RadioFieldInputProps,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { Input as I, index as i };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { TextAlign } from './@types/Align.js';
|
|
3
|
+
import { ColorTheme } from './@types/ColorStyles.js';
|
|
4
|
+
import { HintPosition, Position } from './@types/Position.js';
|
|
5
|
+
import { PermissionAttr, OnDenied } from './@types/PermissionAttr.js';
|
|
6
|
+
import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
|
|
7
|
+
import { ITooltipCommonProps } from './tooltip/types.js';
|
|
8
|
+
|
|
9
|
+
interface TextFieldInputProps extends React__default.ComponentPropsWithoutRef<'input'>, ITooltipCommonProps {
|
|
10
|
+
hint?: string | string[];
|
|
11
|
+
label?: string;
|
|
12
|
+
errors?: string[];
|
|
13
|
+
gridLayout?: string;
|
|
14
|
+
customClass?: string;
|
|
15
|
+
customClassLabel?: string;
|
|
16
|
+
customClassWrapper?: string;
|
|
17
|
+
customClassInputContainer?: string;
|
|
18
|
+
rounded?: boolean;
|
|
19
|
+
readOnly?: boolean;
|
|
20
|
+
skeletonize?: boolean;
|
|
21
|
+
labelUppercase?: boolean;
|
|
22
|
+
textAlign?: TextAlign;
|
|
23
|
+
hintPosition?: HintPosition;
|
|
24
|
+
themePopover?: ColorTheme;
|
|
25
|
+
popoverAlign?: Extract<Position, 'left' | 'right'>;
|
|
26
|
+
permissionAttr?: PermissionAttr;
|
|
27
|
+
onDeniedActions?: OnDenied;
|
|
28
|
+
}
|
|
29
|
+
declare const Input: React__default.ForwardRefExoticComponent<TextFieldInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
30
|
+
|
|
31
|
+
declare const index_Input: typeof Input;
|
|
32
|
+
declare const index_LeftSlot: typeof LeftSlot;
|
|
33
|
+
declare const index_RightSlot: typeof RightSlot;
|
|
34
|
+
type index_TextFieldInputProps = TextFieldInputProps;
|
|
35
|
+
declare namespace index {
|
|
36
|
+
export {
|
|
37
|
+
index_Input as Input,
|
|
38
|
+
index_LeftSlot as LeftSlot,
|
|
39
|
+
index_RightSlot as RightSlot,
|
|
40
|
+
index_TextFieldInputProps as TextFieldInputProps,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { Input as I, TextFieldInputProps as T, index as i };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
|
|
3
|
+
import { Item } from './inputs2/selectfield/item.js';
|
|
4
|
+
import { SelectFieldInputProps } from './inputs2/selectfield/types.js';
|
|
5
|
+
|
|
6
|
+
declare const Input: React__default.ForwardRefExoticComponent<Pick<SelectFieldInputProps, "form" | "label" | "slot" | "style" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "align" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "customClass" | "permissionAttr" | "size" | "skeletonize" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "tooltip" | "tooltipWidth" | "tooltipPosition" | "checked" | "required" | "hint" | "hintPosition" | "themePopover" | "popoverAlign" | "width" | "height" | "multiple" | "readOnly" | "list" | "step" | "maxLength" | "textAlign" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "showClearButton" | "searchOnDropdown" | "undigitable" | "openDropdownOnFocus" | "onSearch" | "striped" | "max" | "min" | "src" | "alt" | "errors" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "externalSearch" | "notFoundFilterLabel" | "searchInputPlaceholder" | "multipleInputLabelEmpty" | "multipleInputLabelManySelection" | "dropdownAlignButton"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
7
|
+
|
|
8
|
+
declare const index_Input: typeof Input;
|
|
9
|
+
declare const index_Item: typeof Item;
|
|
10
|
+
declare const index_LeftSlot: typeof LeftSlot;
|
|
11
|
+
declare const index_RightSlot: typeof RightSlot;
|
|
12
|
+
declare const index_SelectFieldInputProps: typeof SelectFieldInputProps;
|
|
13
|
+
declare namespace index {
|
|
14
|
+
export {
|
|
15
|
+
index_Input as Input,
|
|
16
|
+
index_Item as Item,
|
|
17
|
+
index_LeftSlot as LeftSlot,
|
|
18
|
+
index_RightSlot as RightSlot,
|
|
19
|
+
index_SelectFieldInputProps as SelectFieldInputProps,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { Input as I, index as i };
|