linear-react-components-ui 1.1.25-rc.9 → 1.1.25
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-0c14ef51.d.ts → BaseMask-78847f45.d.ts} +1 -1
- package/lib/{Cnpj-bde01dd0.d.ts → Cnpj-8366781f.d.ts} +1 -1
- package/lib/{Cpf-3fa496ad.d.ts → Cpf-3dfd54eb.d.ts} +1 -1
- package/lib/{Phone-2bb0b397.d.ts → Phone-1962c0f2.d.ts} +1 -1
- package/lib/{ZipCode-09460e18.d.ts → ZipCode-be9c5b3b.d.ts} +1 -1
- package/lib/assets/styles/drawers.scss +0 -2
- package/lib/assets/styles/split.scss +1 -1
- package/lib/assets/styles/tooltip.scss +5 -4
- package/lib/drawer/Drawer.js +2 -3
- package/lib/drawer/index.js +1 -1
- package/lib/{index-3b70931d.d.ts → index-02a27c19.d.ts} +2 -20
- package/lib/index-053f615b.d.ts +26 -0
- package/lib/{index-7dfa8924.d.ts → index-25b80f32.d.ts} +1 -1
- package/lib/{index-afb7b5a9.d.ts → index-696662fe.d.ts} +1 -1
- package/lib/{index-9e576346.d.ts → index-6f5c772d.d.ts} +1 -1
- package/lib/{index-208e7f62.d.ts → index-6fcf446c.d.ts} +2 -20
- package/lib/index-7159df18.d.ts +21 -0
- package/lib/inputs2/checkboxfield/base.d.ts +29 -0
- package/lib/inputs2/checkboxfield/base.js +134 -0
- package/lib/inputs2/checkboxfield/index.d.ts +3 -2
- package/lib/inputs2/checkboxfield/index.js +32 -125
- package/lib/inputs2/colorfield/index.d.ts +6 -5
- package/lib/inputs2/date/datefield/base.d.ts +13 -0
- package/lib/inputs2/date/datefield/base.js +330 -0
- package/lib/inputs2/date/datefield/index.js +34 -322
- package/lib/inputs2/date/datefield/types.d.ts +5 -3
- package/lib/inputs2/date/dateperiodfield/base.d.ts +13 -0
- package/lib/inputs2/date/dateperiodfield/base.js +595 -0
- package/lib/inputs2/date/dateperiodfield/index.js +34 -587
- package/lib/inputs2/date/dateperiodfield/types.d.ts +5 -3
- package/lib/inputs2/filefield/index.d.ts +6 -5
- package/lib/inputs2/index.d.ts +18 -15
- package/lib/inputs2/mask/BaseMask.d.ts +6 -5
- package/lib/inputs2/mask/Cnpj.d.ts +7 -6
- package/lib/inputs2/mask/Cpf.d.ts +7 -6
- package/lib/inputs2/mask/Phone.d.ts +7 -6
- package/lib/inputs2/mask/ZipCode.d.ts +7 -6
- package/lib/inputs2/numberfield/currency.d.ts +5 -4
- package/lib/inputs2/numberfield/decimal.d.ts +5 -4
- package/lib/inputs2/numberfield/index.d.ts +5 -4
- package/lib/inputs2/numberfield/types.d.ts +5 -4
- package/lib/inputs2/radiofield/base.d.ts +12 -0
- package/lib/inputs2/radiofield/base.js +156 -0
- package/lib/inputs2/radiofield/index.d.ts +1 -1
- package/lib/inputs2/radiofield/index.js +25 -126
- package/lib/inputs2/radiofield/types.d.ts +6 -4
- package/lib/inputs2/selectfield/base.d.ts +11 -0
- package/lib/inputs2/selectfield/base.js +513 -0
- package/lib/inputs2/selectfield/index.d.ts +1 -1
- package/lib/inputs2/selectfield/index.js +35 -502
- package/lib/inputs2/selectfield/types.d.ts +8 -6
- package/lib/inputs2/textareafield/base.d.ts +26 -0
- package/lib/inputs2/textareafield/base.js +166 -0
- package/lib/inputs2/textareafield/index.d.ts +4 -3
- package/lib/inputs2/textareafield/index.js +30 -154
- package/lib/inputs2/textfield/base.d.ts +26 -0
- package/lib/inputs2/textfield/base.js +131 -0
- package/lib/inputs2/textfield/index.d.ts +5 -4
- package/lib/inputs2/textfield/index.js +30 -120
- package/lib/tooltip/TooltipContent.js +1 -1
- package/lib/tooltip/useTooltip.js +25 -0
- package/package.json +1 -1
- package/lib/index-19761a50.d.ts +0 -26
- package/lib/index-4bda404f.d.ts +0 -42
|
@@ -17,48 +17,31 @@ Object.defineProperty(exports, "RightSlot", {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
require("../../assets/styles/textfield.scss");
|
|
20
|
-
var _react =
|
|
21
|
-
var _lodash = _interopRequireDefault(require("lodash"));
|
|
20
|
+
var _react = _interopRequireDefault(require("react"));
|
|
22
21
|
var _gridlayout = _interopRequireDefault(require("../../gridlayout"));
|
|
23
|
-
var _popover = _interopRequireWildcard(require("../../popover"));
|
|
24
22
|
var _permissionValidations = require("../../permissionValidations");
|
|
25
|
-
var _hint = _interopRequireDefault(require("../../hint"));
|
|
26
23
|
var _slot = require("../slot");
|
|
27
|
-
var
|
|
28
|
-
const _excluded = ["
|
|
24
|
+
var _base = require("./base");
|
|
25
|
+
const _excluded = ["onDeniedActions", "permissionAttr", "gridLayout", "readOnly", "disabled"];
|
|
29
26
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
30
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
31
27
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
28
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
30
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
31
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
32
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
32
33
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
33
34
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
34
35
|
const options = [_permissionValidations.OPTIONS_ON_DENIED.disabled, _permissionValidations.OPTIONS_ON_DENIED.unvisible, _permissionValidations.OPTIONS_ON_DENIED.readOnly, _permissionValidations.OPTIONS_ON_DENIED.hideContent];
|
|
35
|
-
const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((
|
|
36
|
-
|
|
37
|
-
const {
|
|
38
|
-
type = 'text',
|
|
39
|
-
name,
|
|
40
|
-
label,
|
|
41
|
-
errors,
|
|
42
|
-
children,
|
|
36
|
+
const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
37
|
+
let {
|
|
43
38
|
onDeniedActions = undefined,
|
|
44
39
|
permissionAttr = undefined,
|
|
45
|
-
customClass = '',
|
|
46
|
-
customClassLabel = '',
|
|
47
|
-
customClassWrapper = '',
|
|
48
|
-
customClassInputContainer = '',
|
|
49
|
-
textAlign = 'left',
|
|
50
|
-
labelUppercase = false,
|
|
51
|
-
skeletonize = false,
|
|
52
|
-
hintPosition = 'below',
|
|
53
40
|
gridLayout = undefined,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
tooltipWidth,
|
|
59
|
-
hint
|
|
60
|
-
} = props,
|
|
61
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
41
|
+
readOnly,
|
|
42
|
+
disabled
|
|
43
|
+
} = _ref,
|
|
44
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
62
45
|
const onDenied = _react.default.useMemo(() => {
|
|
63
46
|
return onDeniedActions || (0, _permissionValidations.actionsOnPermissionDenied)(options, permissionAttr);
|
|
64
47
|
}, [onDeniedActions, permissionAttr]);
|
|
@@ -66,95 +49,22 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref
|
|
|
66
49
|
hideContent,
|
|
67
50
|
unvisible
|
|
68
51
|
} = onDenied;
|
|
69
|
-
const
|
|
70
|
-
const
|
|
71
|
-
const
|
|
72
|
-
const isDisabled = Boolean(props.disabled || onDenied.disabled);
|
|
73
|
-
const hasHintMessages = Boolean((_props$hint = props.hint) === null || _props$hint === void 0 ? void 0 : _props$hint.length);
|
|
74
|
-
const hasValidationErrors = Boolean(errors === null || errors === void 0 ? void 0 : errors.length);
|
|
75
|
-
const {
|
|
76
|
-
leftSlotElements,
|
|
77
|
-
rightSlotElements
|
|
78
|
-
} = _react.default.useMemo(() => {
|
|
79
|
-
const left = [];
|
|
80
|
-
const right = [];
|
|
81
|
-
_react.default.Children.map(children, (childElement, index) => {
|
|
82
|
-
if (/*#__PURE__*/_react.default.isValidElement(childElement)) {
|
|
83
|
-
var _childElement$key;
|
|
84
|
-
const clonedChild = /*#__PURE__*/_react.default.cloneElement(childElement, {
|
|
85
|
-
key: (_childElement$key = childElement.key) !== null && _childElement$key !== void 0 ? _childElement$key : "slot-".concat(index),
|
|
86
|
-
disabled: isDisabled,
|
|
87
|
-
'aria-disabled': isDisabled
|
|
88
|
-
});
|
|
89
|
-
if (childElement.type === _slot.LeftSlot) left.push(clonedChild);
|
|
90
|
-
if (childElement.type === _slot.RightSlot) right.push(clonedChild);
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
return {
|
|
94
|
-
leftSlotElements: left,
|
|
95
|
-
rightSlotElements: right
|
|
96
|
-
};
|
|
97
|
-
}, [children, isDisabled]);
|
|
98
|
-
const hasLeftSlotElements = Boolean(leftSlotElements === null || leftSlotElements === void 0 ? void 0 : leftSlotElements.length);
|
|
99
|
-
const hasRightSlotElements = Boolean(rightSlotElements === null || rightSlotElements === void 0 ? void 0 : rightSlotElements.length);
|
|
100
|
-
if (unvisible || hideContent) return null;
|
|
101
|
-
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_gridlayout.default, {
|
|
102
|
-
cols: gridLayout
|
|
103
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
104
|
-
ref: inputRef,
|
|
105
|
-
className: "text-field-root ".concat(customClassWrapper),
|
|
106
|
-
"data-state-error": hasValidationErrors
|
|
107
|
-
}, hasLabel && /*#__PURE__*/_react.default.createElement("span", {
|
|
108
|
-
className: "root-label ".concat(customClassLabel),
|
|
109
|
-
"data-state-skeletonize": skeletonize
|
|
110
|
-
}, /*#__PURE__*/_react.default.createElement("label", {
|
|
111
|
-
className: "label",
|
|
112
|
-
title: label,
|
|
113
|
-
htmlFor: name,
|
|
114
|
-
"data-state-disabled": isDisabled,
|
|
115
|
-
"data-state-read-only": isReadOnly,
|
|
116
|
-
"data-state-input-required": props.required,
|
|
117
|
-
"data-state-label-uppercase": labelUppercase
|
|
118
|
-
}, label), hint && hintPosition === 'onLabelRight' && !skeletonize && /*#__PURE__*/_react.default.createElement(_popover.default, {
|
|
119
|
-
customClass: "label-popover",
|
|
120
|
-
theme: themePopover,
|
|
121
|
-
align: popoverAlign,
|
|
122
|
-
iconColor: "#03bde2"
|
|
123
|
-
}, /*#__PURE__*/_react.default.createElement(_popover.PopoverText, {
|
|
124
|
-
text: hint
|
|
125
|
-
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
126
|
-
"data-state-skeletonize": skeletonize,
|
|
127
|
-
className: "container ".concat(customClassInputContainer)
|
|
128
|
-
}, hasLeftSlotElements && !skeletonize && leftSlotElements, /*#__PURE__*/_react.default.createElement("input", _extends({
|
|
129
|
-
ref: ref,
|
|
130
|
-
id: name,
|
|
131
|
-
type: type,
|
|
52
|
+
const isReadOnly = Boolean(readOnly || onDenied.readOnly);
|
|
53
|
+
const isDisabled = Boolean(disabled || onDenied.disabled);
|
|
54
|
+
const inputProps = _objectSpread({
|
|
132
55
|
readOnly: isReadOnly,
|
|
133
|
-
disabled: isDisabled
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
visible: hasHintMessages
|
|
147
|
-
}), hasValidationErrors && /*#__PURE__*/_react.default.createElement("span", {
|
|
148
|
-
className: "error",
|
|
149
|
-
"data-state-skeletonize": skeletonize,
|
|
150
|
-
"aria-describedby": String(name).concat('-errors')
|
|
151
|
-
}, errors === null || errors === void 0 ? void 0 : errors.map((error, index) => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
152
|
-
key: "".concat(index + 1, "-").concat(error)
|
|
153
|
-
}, error, "\xA0"))))), /*#__PURE__*/_react.default.createElement(_tooltip.Tooltip, {
|
|
154
|
-
targetRef: inputRef,
|
|
155
|
-
text: tooltip,
|
|
156
|
-
width: tooltipWidth,
|
|
157
|
-
position: tooltipPosition
|
|
158
|
-
}));
|
|
56
|
+
disabled: isDisabled
|
|
57
|
+
}, props);
|
|
58
|
+
if (unvisible || hideContent) return null;
|
|
59
|
+
if (gridLayout) {
|
|
60
|
+
return /*#__PURE__*/_react.default.createElement(_gridlayout.default, {
|
|
61
|
+
cols: gridLayout
|
|
62
|
+
}, /*#__PURE__*/_react.default.createElement(_base.InputBase, _extends({
|
|
63
|
+
ref: ref
|
|
64
|
+
}, inputProps)));
|
|
65
|
+
}
|
|
66
|
+
return /*#__PURE__*/_react.default.createElement(_base.InputBase, _extends({
|
|
67
|
+
ref: ref
|
|
68
|
+
}, inputProps));
|
|
159
69
|
});
|
|
160
70
|
Input.displayName = 'TextFieldInput';
|
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
require("../assets/styles/tooltip.scss");
|
|
7
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
9
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
9
10
|
var uuid = _interopRequireWildcard(require("uuid"));
|
|
10
|
-
require("../assets/styles/tooltip.scss");
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
13
|
const TooltipContent = _ref => {
|
|
@@ -113,6 +113,31 @@ function useTooltip(_ref) {
|
|
|
113
113
|
setTooltipStyle(style);
|
|
114
114
|
}
|
|
115
115
|
}, [tooltipDimensions, stateTooltipPosition]);
|
|
116
|
+
(0, _react.useEffect)(() => {
|
|
117
|
+
if (targetElement.current && tooltipElement.current && showTooltip) {
|
|
118
|
+
var _targetElement$curren, _targetElement$curren2;
|
|
119
|
+
const targetRect = (_targetElement$curren = (_targetElement$curren2 = targetElement.current) === null || _targetElement$curren2 === void 0 ? void 0 : _targetElement$curren2.getBoundingClientRect()) !== null && _targetElement$curren !== void 0 ? _targetElement$curren : {
|
|
120
|
+
x: 0,
|
|
121
|
+
width: 0
|
|
122
|
+
};
|
|
123
|
+
const elementHorizontalPosition = targetRect.x;
|
|
124
|
+
const widthElement = targetRect.width;
|
|
125
|
+
const centerOfElement = elementHorizontalPosition + widthElement / 2;
|
|
126
|
+
requestAnimationFrame(() => {
|
|
127
|
+
var _tooltipElement$curre, _tooltipElement$curre2, _tooltipElement$curre3;
|
|
128
|
+
const tooltipRect = (_tooltipElement$curre = (_tooltipElement$curre2 = tooltipElement.current) === null || _tooltipElement$curre2 === void 0 ? void 0 : _tooltipElement$curre2.getBoundingClientRect()) !== null && _tooltipElement$curre !== void 0 ? _tooltipElement$curre : {
|
|
129
|
+
x: 0,
|
|
130
|
+
width: 0
|
|
131
|
+
};
|
|
132
|
+
const tooltipHorizontalPosition = tooltipRect.x;
|
|
133
|
+
const widthTooltip = tooltipRect.width;
|
|
134
|
+
const centerOfTooltip = tooltipHorizontalPosition + widthTooltip / 2;
|
|
135
|
+
const centerDifferenceBetweenElementAndTooltip = Number(((centerOfElement - centerOfTooltip) / widthTooltip * 100).toFixed(2));
|
|
136
|
+
const sumDifference = (0.5 + centerDifferenceBetweenElementAndTooltip / 100) * 100;
|
|
137
|
+
(_tooltipElement$curre3 = tooltipElement.current) === null || _tooltipElement$curre3 === void 0 ? void 0 : _tooltipElement$curre3.style.setProperty('--arrow-position', "".concat(sumDifference, "%"));
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}, [showTooltip, tooltipElement.current, targetElement.current]);
|
|
116
141
|
(0, _react.useEffect)(() => {
|
|
117
142
|
setStateTooltipPosition(positionProp);
|
|
118
143
|
}, [window.scrollY, window.scrollX, window.innerWidth]);
|
package/package.json
CHANGED
package/lib/index-19761a50.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
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 };
|
package/lib/index-4bda404f.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
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
|
-
tabIndex?: number;
|
|
30
|
-
}
|
|
31
|
-
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>>;
|
|
32
|
-
|
|
33
|
-
type index_CheckboxFieldInputProps = CheckboxFieldInputProps;
|
|
34
|
-
declare const index_Input: typeof Input;
|
|
35
|
-
declare namespace index {
|
|
36
|
-
export {
|
|
37
|
-
index_CheckboxFieldInputProps as CheckboxFieldInputProps,
|
|
38
|
-
index_Input as Input,
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export { CheckboxFieldInputProps as C, Input as I, index as i };
|