linear-react-components-ui 1.1.24-beta.5 → 1.1.24-beta.7
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/assets/styles/datepicker2.scss +1 -5
- package/lib/assets/styles/filefield.scss +42 -0
- package/lib/assets/styles/textfield.scss +57 -25
- package/lib/dialog/form/index.js +49 -9
- package/lib/dialog/types.d.ts +4 -0
- package/lib/form2/index.d.ts +1 -1
- package/lib/form2/types.d.ts +3 -3
- package/lib/index-19761a50.d.ts +26 -0
- package/lib/index-208e7f62.d.ts +44 -0
- package/lib/index-35ba9ed8.d.ts +15 -0
- package/lib/index-7dfa8924.d.ts +22 -0
- package/lib/index-efe0a0e4.d.ts +41 -0
- package/lib/inputs/file/index.js +0 -1
- package/lib/inputs2/checkboxfield/index.d.ts +1 -1
- package/lib/inputs2/checkboxfield/index.js +3 -0
- package/lib/inputs2/date/datefield/calendarbox.d.ts +1 -1
- package/lib/inputs2/date/datefield/index.js +1 -1
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +1 -1
- package/lib/inputs2/date/dateperiodfield/index.js +1 -1
- package/lib/inputs2/filefield/index.d.ts +9 -0
- package/lib/inputs2/filefield/index.js +168 -0
- package/lib/inputs2/index.d.ts +5 -3
- package/lib/inputs2/index.js +5 -1
- package/lib/inputs2/radiofield/index.d.ts +1 -1
- package/lib/inputs2/selectfield/index.d.ts +1 -1
- package/lib/inputs2/selectfield/item.d.ts +1 -1
- package/lib/inputs2/selectfield/listbox.d.ts +1 -1
- package/lib/inputs2/selectfield/options.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/slot/index.d.ts +2 -2
- package/lib/inputs2/textareafield/index.d.ts +8 -0
- package/lib/inputs2/textareafield/index.js +191 -0
- package/package.json +1 -1
- package/lib/index-5e77448f.d.ts +0 -41
- package/lib/index-5f373da5.d.ts +0 -26
- package/lib/index-b4abd0b1.d.ts +0 -15
|
@@ -48,9 +48,6 @@ input::-webkit-inner-spin-button {
|
|
|
48
48
|
font-size: 0.875rem;
|
|
49
49
|
margin-left: 1px;
|
|
50
50
|
}
|
|
51
|
-
&[data-state-read-only=true], &[data-state-disabled=true] {
|
|
52
|
-
pointer-events: none;
|
|
53
|
-
}
|
|
54
51
|
}
|
|
55
52
|
>button {
|
|
56
53
|
width: 20px;
|
|
@@ -85,10 +82,9 @@ input::-webkit-inner-spin-button {
|
|
|
85
82
|
}
|
|
86
83
|
&:has(input[data-state-read-only=true]) {
|
|
87
84
|
cursor: default;
|
|
88
|
-
pointer-events: none;
|
|
89
85
|
background-color: $input-read-only-bg-color;
|
|
90
86
|
}
|
|
91
|
-
&:has(input:focus) {
|
|
87
|
+
&:has(input:focus:not([data-state-read-only=true])) {
|
|
92
88
|
box-shadow: 0 3px 0 $component-selected-color;
|
|
93
89
|
transition: box-shadow 250ms cubic-bezier(.19, .62, .58, .98) 100ms;
|
|
94
90
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@import "colors.scss";
|
|
2
|
+
@import "effects";
|
|
3
|
+
@import "commons.scss";
|
|
4
|
+
|
|
5
|
+
::-webkit-file-upload-button {
|
|
6
|
+
display: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.file-container {
|
|
10
|
+
&:has(input[type="text"], input.file-input) {
|
|
11
|
+
background-color: $input-read-only-bg-color;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.file-input[type="text"] {
|
|
15
|
+
line-height: normal;
|
|
16
|
+
caret-color: transparent;
|
|
17
|
+
&::selection {
|
|
18
|
+
color: inherit;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.file-right-slot {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: row;
|
|
25
|
+
|
|
26
|
+
.show-files-selected-list,
|
|
27
|
+
.clear-files-selected,
|
|
28
|
+
.select-files {
|
|
29
|
+
padding: 8px;
|
|
30
|
+
|
|
31
|
+
svg {
|
|
32
|
+
margin: 0px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.select-files {
|
|
36
|
+
border-radius: 0;
|
|
37
|
+
border: 0px;
|
|
38
|
+
border-left: 1px solid $component-border-color;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -11,7 +11,7 @@ input::-webkit-inner-spin-button {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
/* Firefox */
|
|
14
|
-
input[type=number] {
|
|
14
|
+
input[type="number"] {
|
|
15
15
|
appearance: textfield;
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -27,7 +27,7 @@ input[type=number] {
|
|
|
27
27
|
align-items: center;
|
|
28
28
|
flex-direction: row;
|
|
29
29
|
justify-content: flex-start;
|
|
30
|
-
&[data-state-skeletonize=true] {
|
|
30
|
+
&[data-state-skeletonize="true"] {
|
|
31
31
|
@extend %skeleton-component;
|
|
32
32
|
.label {
|
|
33
33
|
color: transparent;
|
|
@@ -40,24 +40,21 @@ input[type=number] {
|
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
text-overflow: ellipsis;
|
|
42
42
|
white-space: nowrap;
|
|
43
|
-
&[data-state-input-required=true]::after {
|
|
43
|
+
&[data-state-input-required="true"]::after {
|
|
44
44
|
content: "*";
|
|
45
45
|
color: $font-color-default;
|
|
46
46
|
}
|
|
47
|
-
&[data-state-uppercase=true] {
|
|
47
|
+
&[data-state-uppercase="true"] {
|
|
48
48
|
text-transform: uppercase;
|
|
49
49
|
}
|
|
50
|
-
&[data-state-required-label=true] {
|
|
50
|
+
&[data-state-required-label="true"] {
|
|
51
51
|
color: $error-color;
|
|
52
52
|
font-weight: 600;
|
|
53
53
|
font-size: 0.875rem;
|
|
54
54
|
margin-left: 1px;
|
|
55
55
|
}
|
|
56
|
-
&[data-state-read-only=true], &[data-state-disabled=true] {
|
|
57
|
-
pointer-events: none;
|
|
58
|
-
}
|
|
59
56
|
}
|
|
60
|
-
>button {
|
|
57
|
+
> button {
|
|
61
58
|
width: 20px;
|
|
62
59
|
height: auto;
|
|
63
60
|
margin: 0px !important;
|
|
@@ -76,28 +73,34 @@ input[type=number] {
|
|
|
76
73
|
border-radius: 2px;
|
|
77
74
|
border: 1px solid $component-border-color;
|
|
78
75
|
background-color: $component-bg-default;
|
|
79
|
-
|
|
76
|
+
&:has(textarea) {
|
|
77
|
+
height: auto;
|
|
78
|
+
}
|
|
79
|
+
&[data-state-skeletonize="true"] {
|
|
80
80
|
@extend %skeleton-component;
|
|
81
81
|
color: transparent;
|
|
82
82
|
border: 1px solid transparent;
|
|
83
83
|
background-color: transparent;
|
|
84
84
|
}
|
|
85
|
-
&:has(input[data-state-error=true]):has(input[data-state-skeletonize=false])
|
|
85
|
+
&:has(input[data-state-error="true"]):has(input[data-state-skeletonize="false"]),
|
|
86
|
+
&:has(textarea[data-state-error="true"]):has(textarea[data-state-skeletonize="false"]) {
|
|
86
87
|
border-color: $input-error-border-color;
|
|
87
88
|
background-color: $input-error-bg-color;
|
|
88
89
|
}
|
|
89
|
-
&:has(input[data-state-read-only=true])
|
|
90
|
+
&:has(input[data-state-read-only="true"]),
|
|
91
|
+
&:has(textarea[data-state-read-only="true"]) {
|
|
90
92
|
> input {
|
|
91
93
|
cursor: default;
|
|
92
|
-
pointer-events: none;
|
|
93
94
|
}
|
|
94
95
|
background-color: $input-read-only-bg-color;
|
|
95
96
|
}
|
|
96
|
-
&:has(input:focus)
|
|
97
|
+
&:has(input:focus:not([data-state-read-only="true"])),
|
|
98
|
+
&:has(textarea:focus:not([data-state-read-only="true"])) {
|
|
97
99
|
box-shadow: 0 3px 0 $component-selected-color;
|
|
98
|
-
transition: box-shadow 250ms cubic-bezier(.19, .62, .58, .98) 100ms;
|
|
100
|
+
transition: box-shadow 250ms cubic-bezier(0.19, 0.62, 0.58, 0.98) 100ms;
|
|
99
101
|
}
|
|
100
|
-
&:has(input:disabled)
|
|
102
|
+
&:has(input:disabled),
|
|
103
|
+
&:has(textarea:disabled) {
|
|
101
104
|
color: $font-color-disabled;
|
|
102
105
|
transition: color 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
|
|
103
106
|
background-color: $input-disabled-bg-color;
|
|
@@ -113,27 +116,56 @@ input[type=number] {
|
|
|
113
116
|
line-height: 0.875rem;
|
|
114
117
|
border: none;
|
|
115
118
|
background-color: transparent;
|
|
116
|
-
&[data-state-text-align=left] {
|
|
119
|
+
&[data-state-text-align="left"] {
|
|
117
120
|
text-align: left;
|
|
118
121
|
}
|
|
119
|
-
&[data-state-text-align=right] {
|
|
122
|
+
&[data-state-text-align="right"] {
|
|
120
123
|
text-align: right;
|
|
121
124
|
}
|
|
122
|
-
&[data-state-text-align=center] {
|
|
125
|
+
&[data-state-text-align="center"] {
|
|
123
126
|
text-align: center;
|
|
124
127
|
}
|
|
125
|
-
&[data-state-skeletonize=true] {
|
|
128
|
+
&[data-state-skeletonize="true"] {
|
|
126
129
|
@extend %input-placeholder-transparent;
|
|
127
130
|
}
|
|
128
131
|
&:disabled {
|
|
129
132
|
cursor: not-allowed;
|
|
130
133
|
}
|
|
134
|
+
&:is(textarea) {
|
|
135
|
+
text-indent: 0rem;
|
|
136
|
+
min-height: 30px;
|
|
137
|
+
}
|
|
131
138
|
}
|
|
132
139
|
}
|
|
133
|
-
.
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
140
|
+
.footer {
|
|
141
|
+
min-height: 0px;
|
|
142
|
+
margin-top: 5px;
|
|
143
|
+
overflow: hidden;
|
|
144
|
+
display: flex;
|
|
145
|
+
gap: 5px;
|
|
146
|
+
&[data-state-has-hint="true"][data-state-has-max-length="true"] {
|
|
147
|
+
justify-content: space-between;
|
|
148
|
+
}
|
|
149
|
+
&[data-state-has-hint="true"][data-state-has-max-length="false"] {
|
|
150
|
+
justify-content: start;
|
|
151
|
+
}
|
|
152
|
+
&[data-state-has-hint="false"][data-state-has-max-length="true"] {
|
|
153
|
+
justify-content: end;
|
|
154
|
+
}
|
|
155
|
+
&[data-state-has-hint="false"][data-state-has-max-length="false"] {
|
|
156
|
+
margin-top: 0px;
|
|
157
|
+
}
|
|
158
|
+
.max-length-counter {
|
|
159
|
+
text-align: right;
|
|
160
|
+
font-size: 0.75rem;
|
|
161
|
+
line-height: normal;
|
|
162
|
+
}
|
|
163
|
+
.hint {
|
|
164
|
+
margin: 0px;
|
|
165
|
+
span {
|
|
166
|
+
display: inline-block;
|
|
167
|
+
width: 100%;
|
|
168
|
+
}
|
|
137
169
|
}
|
|
138
170
|
}
|
|
139
171
|
.error {
|
|
@@ -142,7 +174,7 @@ input[type=number] {
|
|
|
142
174
|
margin-top: 5px;
|
|
143
175
|
font-size: 0.8125rem;
|
|
144
176
|
line-height: 0.8125rem;
|
|
145
|
-
&[data-state-skeletonize=true] {
|
|
177
|
+
&[data-state-skeletonize="true"] {
|
|
146
178
|
@extend %skeleton-component;
|
|
147
179
|
color: transparent;
|
|
148
180
|
}
|
package/lib/dialog/form/index.js
CHANGED
|
@@ -12,6 +12,7 @@ var _Content = _interopRequireDefault(require("../base/Content"));
|
|
|
12
12
|
var _Footer = _interopRequireDefault(require("../base/Footer"));
|
|
13
13
|
var _spinner = _interopRequireDefault(require("../../spinner"));
|
|
14
14
|
var _withFormSecurity = _interopRequireWildcard(require("../../form/withFormSecurity"));
|
|
15
|
+
var _Question = _interopRequireDefault(require("../Question"));
|
|
15
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
17
|
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
18
|
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; }
|
|
@@ -33,14 +34,34 @@ const ModalForm = props => {
|
|
|
33
34
|
className = '',
|
|
34
35
|
wrapperClassName = '',
|
|
35
36
|
contentClassName = '',
|
|
36
|
-
headerClassName = ''
|
|
37
|
+
headerClassName = '',
|
|
38
|
+
securityBeforeUnload = false,
|
|
39
|
+
securityTitle = 'Dados Alterados',
|
|
40
|
+
securityText = 'Você possui dados alterados, confirma o fechamento?'
|
|
37
41
|
} = props;
|
|
38
42
|
const headerRef = (0, _react.useRef)(null);
|
|
39
43
|
const context = (0, _react.useContext)(_withFormSecurity.FormSecurityContext);
|
|
44
|
+
const [showSecurityDialog, setShowSecurityDialog] = (0, _react.useState)(false);
|
|
40
45
|
const overlayStyle = isWaiting ? {
|
|
41
46
|
opacity: 0.4,
|
|
42
47
|
pointerEvent: 'none'
|
|
43
48
|
} : {};
|
|
49
|
+
const handlerClose = () => {
|
|
50
|
+
if (securityBeforeUnload) {
|
|
51
|
+
setShowSecurityDialog(true);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (props.handlerClose) {
|
|
55
|
+
props.handlerClose();
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const onConfirmSecurity = () => {
|
|
59
|
+
props.handlerClose?.();
|
|
60
|
+
setShowSecurityDialog(false);
|
|
61
|
+
};
|
|
62
|
+
const onUnconfirmClick = () => {
|
|
63
|
+
setShowSecurityDialog(false);
|
|
64
|
+
};
|
|
44
65
|
const getSpinner = () => {
|
|
45
66
|
if (!isWaiting) return null;
|
|
46
67
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -52,21 +73,33 @@ const ModalForm = props => {
|
|
|
52
73
|
delayTime: 0
|
|
53
74
|
}));
|
|
54
75
|
};
|
|
76
|
+
(0, _react.useEffect)(() => {
|
|
77
|
+
const onBeforeUnload = e => {
|
|
78
|
+
e?.preventDefault();
|
|
79
|
+
};
|
|
80
|
+
if (securityBeforeUnload) {
|
|
81
|
+
window.addEventListener('beforeunload', onBeforeUnload);
|
|
82
|
+
}
|
|
83
|
+
return () => {
|
|
84
|
+
window.removeEventListener('beforeunload', onBeforeUnload);
|
|
85
|
+
};
|
|
86
|
+
}, [securityBeforeUnload]);
|
|
55
87
|
return /*#__PURE__*/_react.default.createElement(FormDialogContext.Provider, {
|
|
56
88
|
value: {
|
|
57
89
|
headerRef
|
|
58
90
|
}
|
|
59
|
-
}, /*#__PURE__*/_react.default.createElement(_base.default, _extends({
|
|
91
|
+
}, /*#__PURE__*/_react.default.createElement(_base.default, _extends({}, props, {
|
|
60
92
|
width: width,
|
|
61
|
-
height: height
|
|
62
|
-
}, props, {
|
|
93
|
+
height: height,
|
|
63
94
|
className: className,
|
|
64
|
-
wrapperClassName: `dialog-form-wrapper ${wrapperClassName}
|
|
95
|
+
wrapperClassName: `dialog-form-wrapper ${wrapperClassName}`,
|
|
96
|
+
securityBeforeUnload: securityBeforeUnload,
|
|
97
|
+
handlerClose: handlerClose
|
|
65
98
|
}), props.title && /*#__PURE__*/_react.default.createElement("div", {
|
|
66
99
|
className: `header-form ${headerClassName}`
|
|
67
100
|
}, /*#__PURE__*/_react.default.createElement(_Header.default, {
|
|
68
101
|
title: props.title,
|
|
69
|
-
handlerClose:
|
|
102
|
+
handlerClose: handlerClose,
|
|
70
103
|
icon: props.icon
|
|
71
104
|
})), /*#__PURE__*/_react.default.createElement(_Content.default, {
|
|
72
105
|
styleForContent: _objectSpread(_objectSpread({}, props.styleForContent), overlayStyle),
|
|
@@ -74,12 +107,19 @@ const ModalForm = props => {
|
|
|
74
107
|
}, content || children), getSpinner(), showFooter && props.buttons && /*#__PURE__*/_react.default.createElement(_Footer.default, null, /*#__PURE__*/_react.default.createElement(_index.ButtonContainer, _extends({}, props, {
|
|
75
108
|
style: _objectSpread({}, overlayStyle)
|
|
76
109
|
}), _react.default.Children.toArray(props.buttons.map(button => {
|
|
77
|
-
if (context && context.securityBeforeUnload && button && button.type && button.type.name === 'CancelButton') {
|
|
110
|
+
if (context && (context.securityBeforeUnload || securityBeforeUnload) && button && button.type && button.type.name === 'CancelButton') {
|
|
78
111
|
return /*#__PURE__*/_react.default.cloneElement(button, {
|
|
79
|
-
onClick:
|
|
112
|
+
onClick: handlerClose
|
|
80
113
|
});
|
|
81
114
|
}
|
|
82
115
|
return /*#__PURE__*/_react.default.cloneElement(button);
|
|
83
|
-
})))))
|
|
116
|
+
}))))), /*#__PURE__*/_react.default.createElement(_Question.default, {
|
|
117
|
+
zIndex: "99999999",
|
|
118
|
+
title: securityTitle,
|
|
119
|
+
text: securityText,
|
|
120
|
+
visible: showSecurityDialog,
|
|
121
|
+
onConfirmClick: onConfirmSecurity,
|
|
122
|
+
onUnconfirmClick: onUnconfirmClick
|
|
123
|
+
}));
|
|
84
124
|
};
|
|
85
125
|
var _default = exports.default = (0, _withFormSecurity.default)(ModalForm);
|
package/lib/dialog/types.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ interface IBaseProps {
|
|
|
33
33
|
onOpenChange?: (open: boolean) => void;
|
|
34
34
|
handlerClose?: () => void;
|
|
35
35
|
id?: string;
|
|
36
|
+
securityBeforeUnload?: boolean;
|
|
36
37
|
}
|
|
37
38
|
interface IFormProps extends Omit<IBaseProps, 'textAlign' | 'zIndex'> {
|
|
38
39
|
buttons?: JSX.Element[];
|
|
@@ -44,6 +45,9 @@ interface IFormProps extends Omit<IBaseProps, 'textAlign' | 'zIndex'> {
|
|
|
44
45
|
content?: ReactNode;
|
|
45
46
|
contentClassName?: string;
|
|
46
47
|
headerClassName?: string;
|
|
48
|
+
securityBeforeUnload?: boolean;
|
|
49
|
+
securityTitle?: string;
|
|
50
|
+
securityText?: string;
|
|
47
51
|
}
|
|
48
52
|
interface ICommonDialogProps {
|
|
49
53
|
onConfirmClick?: () => void;
|
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, "
|
|
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 };
|
package/lib/form2/types.d.ts
CHANGED
|
@@ -60,12 +60,12 @@ interface UseFormReturn<T> {
|
|
|
60
60
|
* @param name - Nome do campo.
|
|
61
61
|
* @param externalRef - Referência externa para o input.
|
|
62
62
|
*/
|
|
63
|
-
register: (name: string, externalRef?: React.Ref<HTMLInputElement>) => {
|
|
63
|
+
register: (name: string, externalRef?: React.Ref<HTMLInputElement | HTMLTextAreaElement>) => {
|
|
64
64
|
name: string;
|
|
65
|
-
ref: React.RefCallback<HTMLInputElement>;
|
|
65
|
+
ref: React.RefCallback<HTMLInputElement | HTMLTextAreaElement>;
|
|
66
66
|
value: any;
|
|
67
67
|
onBlur: () => void;
|
|
68
|
-
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
68
|
+
onChange: (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
69
69
|
};
|
|
70
70
|
/**
|
|
71
71
|
* Limpa mensagens de erro de campos especificados, ou de todos os campos se nenhum for informado.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
|
|
3
|
+
import { Options } from './inputs2/selectfield/options.js';
|
|
4
|
+
import { Item } from './inputs2/selectfield/item.js';
|
|
5
|
+
import { SelectFieldInputProps } from './inputs2/selectfield/types.js';
|
|
6
|
+
|
|
7
|
+
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>>;
|
|
8
|
+
|
|
9
|
+
declare const index_Input: typeof Input;
|
|
10
|
+
declare const index_Item: typeof Item;
|
|
11
|
+
declare const index_LeftSlot: typeof LeftSlot;
|
|
12
|
+
declare const index_Options: typeof Options;
|
|
13
|
+
declare const index_RightSlot: typeof RightSlot;
|
|
14
|
+
declare const index_SelectFieldInputProps: typeof SelectFieldInputProps;
|
|
15
|
+
declare namespace index {
|
|
16
|
+
export {
|
|
17
|
+
index_Input as Input,
|
|
18
|
+
index_Item as Item,
|
|
19
|
+
index_LeftSlot as LeftSlot,
|
|
20
|
+
index_Options as Options,
|
|
21
|
+
index_RightSlot as RightSlot,
|
|
22
|
+
index_SelectFieldInputProps as SelectFieldInputProps,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
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 TextAreaFieldInputProps extends React__default.ComponentPropsWithoutRef<'textarea'>, ITooltipCommonProps {
|
|
10
|
+
hint?: 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<TextAreaFieldInputProps & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
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_TextAreaFieldInputProps = TextAreaFieldInputProps;
|
|
35
|
+
declare namespace index {
|
|
36
|
+
export {
|
|
37
|
+
index_Input as Input,
|
|
38
|
+
index_LeftSlot as LeftSlot,
|
|
39
|
+
index_RightSlot as RightSlot,
|
|
40
|
+
index_TextAreaFieldInputProps as TextAreaFieldInputProps,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { Input as I, TextAreaFieldInputProps as T, 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,22 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { T as TextFieldInputProps } from './index-3b70931d.js';
|
|
3
|
+
|
|
4
|
+
interface FileFieldInputProps extends Omit<TextFieldInputProps, 'type'> {
|
|
5
|
+
multiple?: boolean;
|
|
6
|
+
accept?: string;
|
|
7
|
+
maxSize?: number;
|
|
8
|
+
gridLayout?: string;
|
|
9
|
+
showClearButton?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const Input: React__default.ForwardRefExoticComponent<FileFieldInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
12
|
+
|
|
13
|
+
type index_FileFieldInputProps = FileFieldInputProps;
|
|
14
|
+
declare const index_Input: typeof Input;
|
|
15
|
+
declare namespace index {
|
|
16
|
+
export {
|
|
17
|
+
index_FileFieldInputProps as FileFieldInputProps,
|
|
18
|
+
index_Input as Input,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { FileFieldInputProps as F, Input as I, index as i };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Size } from './@types/Size.js';
|
|
3
|
+
import { ColorTheme } from './@types/ColorStyles.js';
|
|
4
|
+
import { ITooltipCommonProps } from './tooltip/types.js';
|
|
5
|
+
import { HintPosition, Position } from './@types/Position.js';
|
|
6
|
+
import { PermissionAttr, OnDenied } from './@types/PermissionAttr.js';
|
|
7
|
+
|
|
8
|
+
type InputHTMLProps = Omit<React__default.ComponentProps<'input'>, 'size' | 'type'>;
|
|
9
|
+
interface CheckboxFieldInputProps extends InputHTMLProps, ITooltipCommonProps {
|
|
10
|
+
hint?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
size?: Exclude<Size, 'mini'>;
|
|
13
|
+
variant?: 'default' | 'secondary';
|
|
14
|
+
errors?: string[];
|
|
15
|
+
gridLayout?: string;
|
|
16
|
+
customClass?: string;
|
|
17
|
+
customClassLabel?: string;
|
|
18
|
+
customClassWrapper?: string;
|
|
19
|
+
customClassInputContainer?: string;
|
|
20
|
+
rounded?: boolean;
|
|
21
|
+
readOnly?: boolean;
|
|
22
|
+
skeletonize?: boolean;
|
|
23
|
+
labelUppercase?: boolean;
|
|
24
|
+
hintPosition?: HintPosition;
|
|
25
|
+
themePopover?: ColorTheme;
|
|
26
|
+
popoverAlign?: Extract<Position, 'left' | 'right'>;
|
|
27
|
+
permissionAttr?: PermissionAttr;
|
|
28
|
+
onDeniedActions?: OnDenied;
|
|
29
|
+
}
|
|
30
|
+
declare const Input: React__default.ForwardRefExoticComponent<Pick<CheckboxFieldInputProps, "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" | "multiple" | "readOnly" | "list" | "step" | "maxLength" | "rounded" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "max" | "min" | "src" | "alt" | "errors" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "variant"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
31
|
+
|
|
32
|
+
type index_CheckboxFieldInputProps = CheckboxFieldInputProps;
|
|
33
|
+
declare const index_Input: typeof Input;
|
|
34
|
+
declare namespace index {
|
|
35
|
+
export {
|
|
36
|
+
index_CheckboxFieldInputProps as CheckboxFieldInputProps,
|
|
37
|
+
index_Input as Input,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { CheckboxFieldInputProps as C, Input as I, index as i };
|
package/lib/inputs/file/index.js
CHANGED
|
@@ -19,6 +19,5 @@ exports.default = void 0;
|
|
|
19
19
|
var _File = _interopRequireDefault(require("./File"));
|
|
20
20
|
var _DefaultFile = _interopRequireDefault(require("./DefaultFile"));
|
|
21
21
|
var _DragDropFile = _interopRequireDefault(require("./DragDropFile"));
|
|
22
|
-
require("../../assets/styles/file.scss");
|
|
23
22
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
24
23
|
var _default = exports.default = _File.default;
|
|
@@ -4,4 +4,4 @@ import '../../@types/ColorStyles.js';
|
|
|
4
4
|
import '../../tooltip/types.js';
|
|
5
5
|
import '../../@types/Position.js';
|
|
6
6
|
import '../../@types/PermissionAttr.js';
|
|
7
|
-
export { C as CheckboxFieldInputProps, I as Input } from '../../index-
|
|
7
|
+
export { C as CheckboxFieldInputProps, I as Input } from '../../index-efe0a0e4.js';
|