linear-react-components-ui 1.1.22 → 1.1.24-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/@types/ColorStyles.d.ts +2 -1
- package/lib/@types/Position.d.ts +2 -1
- package/lib/BaseMask-3d5d581d.d.ts +24 -0
- package/lib/BaseNumber-797088d7.d.ts +23 -0
- package/lib/Cnpj-1602be21.d.ts +18 -0
- package/lib/Cpf-4d6b9079.d.ts +18 -0
- package/lib/Currency-b33d3a22.d.ts +18 -0
- package/lib/Decimal-55e836d5.d.ts +13 -0
- package/lib/Number-9c6aceff.d.ts +20 -0
- package/lib/Phone-79e5e3b4.d.ts +18 -0
- package/lib/ZipCode-8c2e9d8b.d.ts +13 -0
- package/lib/assets/styles/checkbox2.scss +199 -0
- package/lib/assets/styles/colorpicker.scss +1 -6
- package/lib/assets/styles/colors.scss +48 -12
- package/lib/assets/styles/datepicker2.scss +338 -0
- package/lib/assets/styles/label.scss +4 -2
- package/lib/assets/styles/select.scss +19 -15
- package/lib/assets/styles/selectfield.scss +409 -0
- package/lib/assets/styles/slot.scss +34 -0
- package/lib/assets/styles/textfield.scss +148 -0
- package/lib/buttons/ActivateButton.d.ts +1 -0
- package/lib/buttons/AddButton.d.ts +1 -0
- package/lib/buttons/Button.d.ts +1 -0
- package/lib/buttons/CancelButton.d.ts +1 -0
- package/lib/buttons/DangerButton.d.ts +1 -0
- package/lib/buttons/DefaultButton.d.ts +1 -0
- package/lib/buttons/DefaultButton.js +20 -12
- package/lib/buttons/DestroyButton.d.ts +1 -0
- package/lib/buttons/EditButton.d.ts +1 -0
- package/lib/buttons/InactivateButton.d.ts +1 -0
- package/lib/buttons/InfoButton.d.ts +1 -0
- package/lib/buttons/PrimaryButton.d.ts +1 -0
- package/lib/buttons/RestoreButton.d.ts +1 -0
- package/lib/buttons/SaveButton.d.ts +1 -0
- package/lib/buttons/SuccessButton.d.ts +1 -0
- package/lib/buttons/WarningButton.d.ts +1 -0
- package/lib/buttons/index.d.ts +1 -0
- package/lib/buttons/split_button/index.d.ts +1 -0
- package/lib/buttons/types.d.ts +2 -5
- package/lib/drawer/Drawer.js +10 -6
- package/lib/form/Field.d.ts +1 -1
- package/lib/form/FieldArray.d.ts +1 -1
- package/lib/form/FieldNumber.d.ts +1 -1
- package/lib/form/FieldPeriod.d.ts +1 -1
- package/lib/form/helpers.d.ts +1 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/form/types.d.ts +1 -1
- package/lib/form/withFieldHOC.d.ts +1 -1
- package/lib/form/withFormSecurity.d.ts +1 -1
- package/lib/form2/helpers.d.ts +8 -0
- package/lib/form2/helpers.js +41 -0
- package/lib/form2/index.d.ts +9 -0
- package/lib/form2/index.js +36 -0
- package/lib/form2/types.d.ts +125 -0
- package/lib/form2/types.js +5 -0
- package/lib/form2/useForm/index.d.ts +5 -0
- package/lib/form2/useForm/index.js +203 -0
- package/lib/icons/helper.d.ts +4 -0
- package/lib/icons/helper.js +4 -0
- package/lib/icons/index.d.ts +4 -6
- package/lib/icons/index.js +14 -9
- package/lib/icons/types.d.ts +3 -6
- package/lib/index-18a64236.d.ts +23 -0
- package/lib/index-368f781f.d.ts +15 -0
- package/lib/index-43ad8140.d.ts +41 -0
- package/lib/index-772f9f1a.d.ts +44 -0
- package/lib/index-8a59cf4b.d.ts +23 -0
- package/lib/index-c9247c1f.d.ts +15 -0
- package/lib/index.d.ts +1 -0
- package/lib/inputs/base/InputTextBase.d.ts +1 -1
- package/lib/inputs/base/InputTextBase.js +18 -8
- package/lib/inputs/base/helpers.d.ts +1 -1
- package/lib/inputs/base/types.d.ts +5 -16
- package/lib/inputs/color/index.js +1 -1
- package/lib/inputs/color/types.d.ts +1 -1
- package/lib/inputs/date/Dialog.d.ts +1 -1
- package/lib/inputs/date/Dropdown.d.ts +1 -1
- package/lib/inputs/date/index.d.ts +1 -1
- package/lib/inputs/date/types.d.ts +2 -2
- package/lib/inputs/errorMessage/index.d.ts +1 -1
- package/lib/inputs/file/DefaultFile.d.ts +1 -1
- package/lib/inputs/file/DefaultFile.js +1 -1
- package/lib/inputs/file/DragDropFile.d.ts +1 -1
- package/lib/inputs/file/File.d.ts +1 -1
- package/lib/inputs/file/FileButtonSettings.d.ts +1 -1
- package/lib/inputs/file/helpers.d.ts +1 -1
- package/lib/inputs/file/index.d.ts +1 -1
- package/lib/inputs/file/types.d.ts +1 -1
- package/lib/inputs/inputHOC.d.ts +1 -1
- package/lib/inputs/mask/BaseMask.d.ts +1 -1
- package/lib/inputs/mask/BaseMask.js +9 -6
- package/lib/inputs/mask/Cnpj.d.ts +1 -1
- package/lib/inputs/mask/Cpf.d.ts +1 -1
- package/lib/inputs/mask/Phone.d.ts +1 -1
- package/lib/inputs/mask/ZipCode.d.ts +1 -1
- package/lib/inputs/mask/helpers.d.ts +1 -1
- package/lib/inputs/mask/helpers.js +1 -1
- package/lib/inputs/mask/index.d.ts +1 -1
- package/lib/inputs/mask/types.d.ts +2 -2
- package/lib/inputs/multiSelect/ActionButtons.d.ts +1 -1
- package/lib/inputs/multiSelect/Dropdown.d.ts +1 -1
- package/lib/inputs/multiSelect/helper.d.ts +1 -1
- package/lib/inputs/multiSelect/index.d.ts +1 -1
- package/lib/inputs/multiSelect/types.d.ts +2 -2
- package/lib/inputs/number/BaseNumber.d.ts +1 -1
- package/lib/inputs/number/BaseNumber.js +3 -2
- package/lib/inputs/number/Currency.d.ts +1 -1
- package/lib/inputs/number/Decimal.d.ts +1 -1
- package/lib/inputs/number/format_number.d.ts +1 -1
- package/lib/inputs/number/format_number.js +4 -2
- package/lib/inputs/number/index.d.ts +1 -1
- package/lib/inputs/number/types.d.ts +4 -4
- package/lib/inputs/period/Dialog.d.ts +1 -1
- package/lib/inputs/period/Dropdown.d.ts +1 -1
- package/lib/inputs/period/PeriodList.d.ts +1 -1
- package/lib/inputs/period/helper.d.ts +1 -1
- package/lib/inputs/period/index.d.ts +1 -1
- package/lib/inputs/period/index.js +8 -10
- package/lib/inputs/period/types.d.ts +2 -5
- package/lib/inputs/search/index.d.ts +1 -1
- package/lib/inputs/select/ActionButtons.d.ts +1 -1
- package/lib/inputs/select/Dropdown.d.ts +1 -1
- package/lib/inputs/select/helper.d.ts +1 -1
- package/lib/inputs/select/index.d.ts +1 -1
- package/lib/inputs/select/multiple/Selecteds.d.ts +2 -2
- package/lib/inputs/select/multiple/Selecteds.js +3 -1
- package/lib/inputs/select/multiple/index.d.ts +1 -1
- package/lib/inputs/select/multiple/index.js +3 -2
- package/lib/inputs/select/simple/index.d.ts +1 -1
- package/lib/inputs/select/simple/index.js +3 -3
- package/lib/inputs/select/types.d.ts +2 -1
- package/lib/inputs/text/index.d.ts +1 -1
- package/lib/inputs/text/types.d.ts +2 -3
- package/lib/inputs/textarea/index.d.ts +1 -1
- package/lib/inputs/textarea/types.d.ts +1 -1
- package/lib/inputs/types.d.ts +2 -2
- package/lib/inputs2/checkboxfield/index.d.ts +7 -0
- package/lib/inputs2/checkboxfield/index.js +146 -0
- package/lib/inputs2/colorfield/index.d.ts +9 -0
- package/lib/inputs2/colorfield/index.js +119 -0
- package/lib/inputs2/date/base/constants.d.ts +7 -0
- package/lib/inputs2/date/base/constants.js +43 -0
- package/lib/inputs2/date/base/index.d.ts +12 -0
- package/lib/inputs2/date/base/index.js +179 -0
- package/lib/inputs2/date/datefield/calendarbox.d.ts +7 -0
- package/lib/inputs2/date/datefield/calendarbox.js +115 -0
- package/lib/inputs2/date/datefield/context.d.ts +13 -0
- package/lib/inputs2/date/datefield/context.js +15 -0
- package/lib/inputs2/date/datefield/index.d.ts +9 -0
- package/lib/inputs2/date/datefield/index.js +334 -0
- package/lib/inputs2/date/datefield/triggers.d.ts +8 -0
- package/lib/inputs2/date/datefield/triggers.js +47 -0
- package/lib/inputs2/date/datefield/types.d.ts +61 -0
- package/lib/inputs2/date/datefield/types.js +5 -0
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +7 -0
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +136 -0
- package/lib/inputs2/date/dateperiodfield/context.d.ts +13 -0
- package/lib/inputs2/date/dateperiodfield/context.js +17 -0
- package/lib/inputs2/date/dateperiodfield/index.d.ts +9 -0
- package/lib/inputs2/date/dateperiodfield/index.js +592 -0
- package/lib/inputs2/date/dateperiodfield/triggers.d.ts +6 -0
- package/lib/inputs2/date/dateperiodfield/triggers.js +120 -0
- package/lib/inputs2/date/dateperiodfield/types.d.ts +99 -0
- package/lib/inputs2/date/dateperiodfield/types.js +19 -0
- package/lib/inputs2/date/helpers.d.ts +20 -0
- package/lib/inputs2/date/helpers.js +62 -0
- package/lib/inputs2/date/types.d.ts +59 -0
- package/lib/inputs2/date/types.js +19 -0
- package/lib/inputs2/index.d.ts +29 -0
- package/lib/inputs2/index.js +38 -0
- package/lib/inputs2/mask/BaseMask.d.ts +10 -0
- package/lib/inputs2/mask/BaseMask.js +95 -0
- package/lib/inputs2/mask/Cnpj.d.ts +11 -0
- package/lib/inputs2/mask/Cnpj.js +57 -0
- package/lib/inputs2/mask/Cpf.d.ts +11 -0
- package/lib/inputs2/mask/Cpf.js +53 -0
- package/lib/inputs2/mask/Phone.d.ts +11 -0
- package/lib/inputs2/mask/Phone.js +26 -0
- package/lib/inputs2/mask/ZipCode.d.ts +11 -0
- package/lib/inputs2/mask/ZipCode.js +23 -0
- package/lib/inputs2/mask/helpers.d.ts +4 -0
- package/lib/inputs2/mask/helpers.js +57 -0
- package/lib/inputs2/number/BaseNumber.d.ts +10 -0
- package/lib/inputs2/number/BaseNumber.js +86 -0
- package/lib/inputs2/number/Currency.d.ts +11 -0
- package/lib/inputs2/number/Currency.js +47 -0
- package/lib/inputs2/number/Decimal.d.ts +11 -0
- package/lib/inputs2/number/Decimal.js +36 -0
- package/lib/inputs2/number/Number.d.ts +9 -0
- package/lib/inputs2/number/Number.js +49 -0
- package/lib/inputs2/number/format_number.d.ts +5 -0
- package/lib/inputs2/number/format_number.js +29 -0
- package/lib/inputs2/selectfield/context.d.ts +38 -0
- package/lib/inputs2/selectfield/context.js +15 -0
- package/lib/inputs2/selectfield/helpers.d.ts +6 -0
- package/lib/inputs2/selectfield/helpers.js +25 -0
- package/lib/inputs2/selectfield/index.d.ts +10 -0
- package/lib/inputs2/selectfield/index.js +491 -0
- package/lib/inputs2/selectfield/item.d.ts +11 -0
- package/lib/inputs2/selectfield/item.js +85 -0
- package/lib/inputs2/selectfield/listbox.d.ts +7 -0
- package/lib/inputs2/selectfield/listbox.js +103 -0
- package/lib/inputs2/selectfield/search.d.ts +7 -0
- package/lib/inputs2/selectfield/search.js +71 -0
- package/lib/inputs2/selectfield/selections.d.ts +10 -0
- package/lib/inputs2/selectfield/selections.js +86 -0
- package/lib/inputs2/selectfield/triggers.d.ts +8 -0
- package/lib/inputs2/selectfield/triggers.js +100 -0
- package/lib/inputs2/selectfield/types.d.ts +55 -0
- package/lib/inputs2/selectfield/types.js +21 -0
- package/lib/inputs2/slot/index.d.ts +14 -0
- package/lib/inputs2/slot/index.js +47 -0
- package/lib/inputs2/textfield/index.d.ts +8 -0
- package/lib/inputs2/textfield/index.js +159 -0
- package/lib/internals/types.d.ts +1 -17
- package/lib/labels/DangerLabel.d.ts +1 -0
- package/lib/labels/DefaultLabel.d.ts +3 -5
- package/lib/labels/DefaultLabel.js +15 -7
- package/lib/labels/InfoLabel.d.ts +1 -0
- package/lib/labels/PrimaryLabel.d.ts +1 -0
- package/lib/labels/SuccessLabel.d.ts +1 -0
- package/lib/labels/WarningLabel.d.ts +1 -0
- package/lib/labels/index.d.ts +3 -2
- package/lib/labels/types.d.ts +2 -5
- package/lib/list/Header.d.ts +1 -0
- package/lib/list/Item.d.ts +3 -5
- package/lib/list/Item.js +17 -12
- package/lib/list/helpers.d.ts +1 -0
- package/lib/list/index.d.ts +1 -0
- package/lib/list/types.d.ts +4 -6
- package/lib/menus/sidenav/ExpandMenu.d.ts +2 -2
- package/lib/menus/sidenav/MenuLink.d.ts +4 -7
- package/lib/menus/sidenav/MenuLink.js +20 -11
- package/lib/menus/sidenav/NavMenuGroup.d.ts +2 -2
- package/lib/menus/sidenav/NavMenuItem.d.ts +4 -7
- package/lib/menus/sidenav/NavMenuItem.js +16 -12
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +2 -2
- package/lib/menus/sidenav/helpers.d.ts +2 -2
- package/lib/menus/sidenav/index.d.ts +2 -2
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +2 -2
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +2 -2
- package/lib/menus/sidenav/types.d.ts +6 -6
- package/lib/popover/PopoverText.js +11 -2
- package/lib/popover/types.d.ts +1 -0
- package/lib/textContent/index.d.ts +6 -11
- package/lib/textContent/index.js +20 -11
- package/lib/tooltip/TooltipContent.d.ts +7 -0
- package/lib/tooltip/TooltipContent.js +65 -0
- package/lib/tooltip/index.d.ts +4 -3
- package/lib/tooltip/index.js +36 -53
- package/lib/tooltip/types.d.ts +25 -3
- package/lib/tooltip/useTooltip.d.ts +30 -0
- package/lib/tooltip/useTooltip.js +128 -0
- package/package.json +4 -3
- package/lib/inputs/base/Label.d.ts +0 -14
- package/lib/inputs/base/Label.js +0 -35
- package/lib/internals/withTooltip.d.ts +0 -12
- package/lib/internals/withTooltip.js +0 -172
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ListBox = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _lodash = _interopRequireDefault(require("lodash"));
|
|
9
|
+
var _context = require("./context");
|
|
10
|
+
var _search = require("./search");
|
|
11
|
+
const _excluded = ["children"];
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
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); }
|
|
14
|
+
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; }
|
|
15
|
+
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; }
|
|
16
|
+
const ListBox = exports.ListBox = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
17
|
+
const {
|
|
18
|
+
children
|
|
19
|
+
} = props,
|
|
20
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
21
|
+
const {
|
|
22
|
+
listBoxOpen,
|
|
23
|
+
valueSelect,
|
|
24
|
+
selectFieldId,
|
|
25
|
+
selectContainerRef,
|
|
26
|
+
notFoundFilterLabel,
|
|
27
|
+
liSelectedRef,
|
|
28
|
+
searchOnDropdown,
|
|
29
|
+
isMultipleWithCheckboxes
|
|
30
|
+
} = (0, _context.useSelectFieldContext)();
|
|
31
|
+
const [listBoxStyles, setListBoxStyles] = _react.default.useState({});
|
|
32
|
+
const [filterResultIsEmpty, setFilterResultIsEmpty] = _react.default.useState(false);
|
|
33
|
+
const listBoxRef = _react.default.useRef(null);
|
|
34
|
+
const shouldBeShowSearchInput = searchOnDropdown || isMultipleWithCheckboxes;
|
|
35
|
+
_react.default.useCallback(() => {
|
|
36
|
+
requestAnimationFrame(() => {
|
|
37
|
+
const hasChildrenElementsInUL = listBoxRef.current?.childNodes;
|
|
38
|
+
const liElementsFiltered = listBoxRef.current?.querySelectorAll('li[data-state-filtered="true"]') ?? [];
|
|
39
|
+
const filterIsEmpty = !_lodash.default.isEmpty(hasChildrenElementsInUL) && _lodash.default.isEmpty(liElementsFiltered);
|
|
40
|
+
setFilterResultIsEmpty(filterIsEmpty);
|
|
41
|
+
});
|
|
42
|
+
}, [])();
|
|
43
|
+
_react.default.useEffect(() => {
|
|
44
|
+
liSelectedRef?.current?.scrollIntoView({
|
|
45
|
+
block: 'nearest',
|
|
46
|
+
behavior: 'auto'
|
|
47
|
+
});
|
|
48
|
+
}, []);
|
|
49
|
+
_react.default.useEffect(() => {
|
|
50
|
+
const updatePosition = () => {
|
|
51
|
+
const selectPositionOnScreen = selectContainerRef.current?.getBoundingClientRect();
|
|
52
|
+
if (selectPositionOnScreen) {
|
|
53
|
+
const {
|
|
54
|
+
top,
|
|
55
|
+
left,
|
|
56
|
+
width,
|
|
57
|
+
height
|
|
58
|
+
} = selectPositionOnScreen;
|
|
59
|
+
setListBoxStyles({
|
|
60
|
+
top: top + height + window.scrollY,
|
|
61
|
+
left: left + window.scrollX,
|
|
62
|
+
minWidth: width,
|
|
63
|
+
position: 'absolute'
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
if (listBoxOpen) {
|
|
68
|
+
updatePosition();
|
|
69
|
+
window.addEventListener('resize', updatePosition);
|
|
70
|
+
window.addEventListener('scroll', updatePosition, true);
|
|
71
|
+
}
|
|
72
|
+
return () => {
|
|
73
|
+
window.removeEventListener('resize', updatePosition);
|
|
74
|
+
window.removeEventListener('scroll', updatePosition, true);
|
|
75
|
+
};
|
|
76
|
+
}, [listBoxOpen, valueSelect, selectContainerRef]);
|
|
77
|
+
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
78
|
+
ref: ref,
|
|
79
|
+
style: listBoxStyles,
|
|
80
|
+
"aria-expanded": listBoxOpen,
|
|
81
|
+
className: "select-field-listbox",
|
|
82
|
+
"data-testid": "test-select-field-listbox"
|
|
83
|
+
}, rest), shouldBeShowSearchInput && /*#__PURE__*/_react.default.createElement(_search.Search, null), /*#__PURE__*/_react.default.createElement("ul", {
|
|
84
|
+
id: selectFieldId,
|
|
85
|
+
role: "listbox",
|
|
86
|
+
ref: listBoxRef
|
|
87
|
+
}, children, filterResultIsEmpty && /*#__PURE__*/_react.default.createElement("li", {
|
|
88
|
+
tabIndex: -1,
|
|
89
|
+
"aria-disabled": true,
|
|
90
|
+
"aria-label": notFoundFilterLabel,
|
|
91
|
+
key: "not-found-values",
|
|
92
|
+
role: "option",
|
|
93
|
+
id: "not-found-values",
|
|
94
|
+
className: "not-found-values",
|
|
95
|
+
onClick: event => {
|
|
96
|
+
event.preventDefault();
|
|
97
|
+
},
|
|
98
|
+
onMouseDown: event => {
|
|
99
|
+
event.preventDefault();
|
|
100
|
+
}
|
|
101
|
+
}, notFoundFilterLabel)));
|
|
102
|
+
});
|
|
103
|
+
ListBox.displayName = 'SelectListBox';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
interface SelectFieldSearchProps extends React__default.ComponentProps<'div'> {
|
|
4
|
+
}
|
|
5
|
+
declare const Search: React__default.ForwardRefExoticComponent<Pick<SelectFieldSearchProps, "className" | "onClick" | "color" | "children" | "style" | "id" | "key" | "slot" | "title" | "hidden" | "onKeyPress" | "role" | "tabIndex" | "align" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "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" | "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" | "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"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
|
|
7
|
+
export { Search, SelectFieldSearchProps };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Search = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _icons = _interopRequireDefault(require("../../icons"));
|
|
9
|
+
var TextField = _interopRequireWildcard(require("../textfield"));
|
|
10
|
+
var _slot = require("../slot");
|
|
11
|
+
var _context = require("./context");
|
|
12
|
+
var _helpers = require("./helpers");
|
|
13
|
+
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); }
|
|
14
|
+
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; }
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
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); }
|
|
17
|
+
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
18
|
+
const Search = exports.Search = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
19
|
+
const rest = Object.assign({}, (_objectDestructuringEmpty(props), props));
|
|
20
|
+
const {
|
|
21
|
+
nameSelect,
|
|
22
|
+
handleOnSearch,
|
|
23
|
+
handleOnKeyDown,
|
|
24
|
+
selectSearchInputRef,
|
|
25
|
+
selectInputRef,
|
|
26
|
+
handleCloseListBox,
|
|
27
|
+
searchInputPlaceholder
|
|
28
|
+
} = (0, _context.useSelectFieldContext)();
|
|
29
|
+
const handleOnChangeSearchInput = event => {
|
|
30
|
+
handleOnSearch?.(event);
|
|
31
|
+
};
|
|
32
|
+
const handleOnBlur = () => {
|
|
33
|
+
handleCloseListBox();
|
|
34
|
+
};
|
|
35
|
+
const handleOnKeyDownSearchInput = event => {
|
|
36
|
+
if (event.key && event.key === 'Tab') {
|
|
37
|
+
const inputElement = selectInputRef.current;
|
|
38
|
+
if (event.key === 'Tab') {
|
|
39
|
+
(0, _helpers.setFocusOnOffsetElement)(inputElement, 'next');
|
|
40
|
+
}
|
|
41
|
+
if (event.shiftKey) {
|
|
42
|
+
(0, _helpers.setFocusOnOffsetElement)(inputElement, 'before');
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
handleOnKeyDown?.(event);
|
|
46
|
+
};
|
|
47
|
+
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
48
|
+
ref: ref,
|
|
49
|
+
className: "select-field-search"
|
|
50
|
+
}, rest), /*#__PURE__*/_react.default.createElement(TextField.Input, {
|
|
51
|
+
"data-testid": "test-select-field-search-input",
|
|
52
|
+
autoComplete: "off",
|
|
53
|
+
ref: selectSearchInputRef,
|
|
54
|
+
name: String(nameSelect).concat('-select-field-search'),
|
|
55
|
+
tabIndex: 0,
|
|
56
|
+
placeholder: searchInputPlaceholder,
|
|
57
|
+
customClassWrapper: "select-field-search-input",
|
|
58
|
+
onBlur: handleOnBlur,
|
|
59
|
+
onChange: handleOnChangeSearchInput,
|
|
60
|
+
onKeyDown: handleOnKeyDownSearchInput
|
|
61
|
+
}, /*#__PURE__*/_react.default.createElement(_slot.RightSlot, {
|
|
62
|
+
style: {
|
|
63
|
+
padding: '0px 6px 0px 3px'
|
|
64
|
+
}
|
|
65
|
+
}, /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
66
|
+
size: 16,
|
|
67
|
+
name: "search",
|
|
68
|
+
colorStyle: "default"
|
|
69
|
+
}))));
|
|
70
|
+
});
|
|
71
|
+
Search.displayName = 'SelectFieldSearch';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
interface SelectFieldSelectionsProps extends React__default.ComponentProps<'div'> {
|
|
4
|
+
isDisabled: boolean;
|
|
5
|
+
isReadOnly: boolean;
|
|
6
|
+
listOfOptionsToSelect: Map<string, string>;
|
|
7
|
+
}
|
|
8
|
+
declare const Selections: React__default.ForwardRefExoticComponent<Pick<SelectFieldSelectionsProps, "className" | "onClick" | "color" | "children" | "style" | "id" | "key" | "slot" | "title" | "hidden" | "onKeyPress" | "role" | "tabIndex" | "align" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "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" | "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" | "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" | "isDisabled" | "isReadOnly" | "listOfOptionsToSelect"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
|
|
10
|
+
export { SelectFieldSelectionsProps, Selections };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Selections = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _icons = _interopRequireDefault(require("../../icons"));
|
|
9
|
+
var _context = require("./context");
|
|
10
|
+
const _excluded = ["isDisabled", "isReadOnly", "value", "label", "removeItemSelected"],
|
|
11
|
+
_excluded2 = ["isDisabled", "isReadOnly", "listOfOptionsToSelect"];
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
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); }
|
|
14
|
+
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; }
|
|
15
|
+
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; }
|
|
16
|
+
const ItemSelected = props => {
|
|
17
|
+
const {
|
|
18
|
+
isDisabled,
|
|
19
|
+
isReadOnly,
|
|
20
|
+
value,
|
|
21
|
+
label,
|
|
22
|
+
removeItemSelected
|
|
23
|
+
} = props,
|
|
24
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement("span", _extends({
|
|
26
|
+
id: value,
|
|
27
|
+
title: label,
|
|
28
|
+
className: "selected",
|
|
29
|
+
"data-state-disabled": isDisabled,
|
|
30
|
+
"data-state-read-only": isReadOnly
|
|
31
|
+
}, rest), /*#__PURE__*/_react.default.createElement("p", {
|
|
32
|
+
className: "label"
|
|
33
|
+
}, label), /*#__PURE__*/_react.default.createElement("button", {
|
|
34
|
+
type: "button",
|
|
35
|
+
disabled: isDisabled,
|
|
36
|
+
"data-state-read-only": isReadOnly,
|
|
37
|
+
tabIndex: -1,
|
|
38
|
+
className: "remove",
|
|
39
|
+
title: "Remover",
|
|
40
|
+
onClick: removeItemSelected,
|
|
41
|
+
onMouseDown: event => {
|
|
42
|
+
event.preventDefault();
|
|
43
|
+
}
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
45
|
+
name: "cancel2"
|
|
46
|
+
})));
|
|
47
|
+
};
|
|
48
|
+
const Selections = exports.Selections = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
49
|
+
const {
|
|
50
|
+
isDisabled,
|
|
51
|
+
isReadOnly,
|
|
52
|
+
listOfOptionsToSelect
|
|
53
|
+
} = props,
|
|
54
|
+
rest = _objectWithoutProperties(props, _excluded2);
|
|
55
|
+
const {
|
|
56
|
+
valueSelect,
|
|
57
|
+
isMultipleDefault,
|
|
58
|
+
handleOnChange
|
|
59
|
+
} = (0, _context.useSelectFieldContext)();
|
|
60
|
+
const hasValuesSelected = Boolean([...valueSelect]?.length);
|
|
61
|
+
const handleRemoveItemSelected = (value, label) => {
|
|
62
|
+
handleOnChange?.(value, label, true);
|
|
63
|
+
};
|
|
64
|
+
if (!hasValuesSelected) return null;
|
|
65
|
+
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
66
|
+
ref: ref,
|
|
67
|
+
className: "selections",
|
|
68
|
+
"data-testid": "test-select-field-input-selections",
|
|
69
|
+
"aria-disabled": isDisabled,
|
|
70
|
+
"aria-readonly": isReadOnly,
|
|
71
|
+
"data-state-multiple-selections": isMultipleDefault
|
|
72
|
+
}, rest), [...valueSelect].map(value => {
|
|
73
|
+
const label = listOfOptionsToSelect.get(value);
|
|
74
|
+
return /*#__PURE__*/_react.default.createElement(ItemSelected, {
|
|
75
|
+
key: value,
|
|
76
|
+
value: value,
|
|
77
|
+
label: label,
|
|
78
|
+
isDisabled: isDisabled,
|
|
79
|
+
isReadOnly: isReadOnly,
|
|
80
|
+
removeItemSelected: () => {
|
|
81
|
+
handleRemoveItemSelected(value, label);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}));
|
|
85
|
+
});
|
|
86
|
+
Selections.displayName = 'SelectFieldSelections';
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Triggers = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _icons = _interopRequireDefault(require("../../icons"));
|
|
9
|
+
var _buttons = _interopRequireDefault(require("../../buttons"));
|
|
10
|
+
var _list = _interopRequireWildcard(require("../../list"));
|
|
11
|
+
var _context = require("./context");
|
|
12
|
+
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); }
|
|
13
|
+
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; }
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
const Triggers = () => {
|
|
16
|
+
const {
|
|
17
|
+
isDisabled,
|
|
18
|
+
selectFieldId,
|
|
19
|
+
listBoxOpen,
|
|
20
|
+
showClearButton,
|
|
21
|
+
dropdownAlignButton,
|
|
22
|
+
handleClearValue,
|
|
23
|
+
handleChangeListBoxState,
|
|
24
|
+
handleCheckMultiple,
|
|
25
|
+
isMultipleWithCheckboxes
|
|
26
|
+
} = (0, _context.useSelectFieldContext)();
|
|
27
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("button", {
|
|
28
|
+
"data-testid": "test-select-field-trigger-clear",
|
|
29
|
+
className: "clear",
|
|
30
|
+
type: "button",
|
|
31
|
+
title: "Limpar",
|
|
32
|
+
tabIndex: -1,
|
|
33
|
+
disabled: isDisabled,
|
|
34
|
+
"aria-disabled": isDisabled,
|
|
35
|
+
"aria-label": "Limpar",
|
|
36
|
+
"aria-controls": selectFieldId,
|
|
37
|
+
onClick: handleClearValue,
|
|
38
|
+
"data-state-visible": showClearButton,
|
|
39
|
+
onMouseDown: event => {
|
|
40
|
+
event.preventDefault();
|
|
41
|
+
}
|
|
42
|
+
}, /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
43
|
+
name: "cancel"
|
|
44
|
+
})), /*#__PURE__*/_react.default.createElement(_buttons.default, {
|
|
45
|
+
"data-testid": "test-select-field-trigger-options",
|
|
46
|
+
dropdown: true,
|
|
47
|
+
transparent: true,
|
|
48
|
+
boxShadow: false,
|
|
49
|
+
showIconDropdown: false,
|
|
50
|
+
visible: isMultipleWithCheckboxes,
|
|
51
|
+
type: "button",
|
|
52
|
+
title: "Op\xE7\xF5es",
|
|
53
|
+
tabIndex: -1,
|
|
54
|
+
disabled: isDisabled,
|
|
55
|
+
"aria-label": "Op\xE7\xF5es",
|
|
56
|
+
"aria-controls": selectFieldId,
|
|
57
|
+
iconName: "more1",
|
|
58
|
+
dropdownAlign: dropdownAlignButton,
|
|
59
|
+
onMouseDown: event => {
|
|
60
|
+
event.preventDefault();
|
|
61
|
+
}
|
|
62
|
+
}, /*#__PURE__*/_react.default.createElement(_list.default, null, /*#__PURE__*/_react.default.createElement(_list.ListItem, {
|
|
63
|
+
itemId: "1",
|
|
64
|
+
text: "Marcar Todos",
|
|
65
|
+
onMouseDown: event => {
|
|
66
|
+
event?.preventDefault?.();
|
|
67
|
+
},
|
|
68
|
+
onClick: () => {
|
|
69
|
+
handleCheckMultiple(true);
|
|
70
|
+
}
|
|
71
|
+
}), /*#__PURE__*/_react.default.createElement(_list.ListItem, {
|
|
72
|
+
itemId: "2",
|
|
73
|
+
text: "Desmarcar Todos",
|
|
74
|
+
onMouseDown: event => {
|
|
75
|
+
event?.preventDefault?.();
|
|
76
|
+
},
|
|
77
|
+
onClick: () => {
|
|
78
|
+
handleCheckMultiple(false);
|
|
79
|
+
}
|
|
80
|
+
}))), /*#__PURE__*/_react.default.createElement("button", {
|
|
81
|
+
"data-testid": "test-select-field-trigger-open-listbox",
|
|
82
|
+
className: "open-listbox",
|
|
83
|
+
type: "button",
|
|
84
|
+
title: !listBoxOpen ? 'Abrir' : 'Fechar',
|
|
85
|
+
tabIndex: -1,
|
|
86
|
+
disabled: isDisabled,
|
|
87
|
+
"aria-disabled": isDisabled,
|
|
88
|
+
"aria-label": !listBoxOpen ? 'Abrir' : 'Fechar',
|
|
89
|
+
"aria-expanded": listBoxOpen,
|
|
90
|
+
"aria-controls": selectFieldId,
|
|
91
|
+
onClick: handleChangeListBoxState,
|
|
92
|
+
onMouseDown: event => {
|
|
93
|
+
event.preventDefault();
|
|
94
|
+
}
|
|
95
|
+
}, /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
96
|
+
name: "mini_down"
|
|
97
|
+
})));
|
|
98
|
+
};
|
|
99
|
+
exports.Triggers = Triggers;
|
|
100
|
+
Triggers.displayName = 'SelectFieldTriggers';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { TextAlign } from '../../@types/Align.js';
|
|
2
|
+
import { ColorTheme } from '../../@types/ColorStyles.js';
|
|
3
|
+
import { ITooltipCommonProps } from '../../tooltip/types.js';
|
|
4
|
+
import { HintPosition, Position } from '../../@types/Position.js';
|
|
5
|
+
import { PermissionAttr, OnDenied } from '../../@types/PermissionAttr.js';
|
|
6
|
+
import 'react';
|
|
7
|
+
|
|
8
|
+
declare enum MultipleVariantEnum {
|
|
9
|
+
default = "default",
|
|
10
|
+
checkboxes = "checkboxes"
|
|
11
|
+
}
|
|
12
|
+
declare enum Keys {
|
|
13
|
+
escape = "Escape",
|
|
14
|
+
arrowDown = "ArrowDown",
|
|
15
|
+
arrowUp = "ArrowUp",
|
|
16
|
+
enter = "Enter",
|
|
17
|
+
backspace = "Backspace",
|
|
18
|
+
delete = "Delete",
|
|
19
|
+
spaceBar = " "
|
|
20
|
+
}
|
|
21
|
+
type InputHTMLProps = Omit<React.ComponentProps<'input'>, 'multiple' | 'type'>;
|
|
22
|
+
interface SelectFieldInputProps extends InputHTMLProps, ITooltipCommonProps {
|
|
23
|
+
skeletonize?: boolean;
|
|
24
|
+
undigitable?: boolean;
|
|
25
|
+
externalSearch?: boolean;
|
|
26
|
+
showClearButton?: boolean;
|
|
27
|
+
searchOnDropdown?: boolean;
|
|
28
|
+
openDropdownOnFocus?: boolean;
|
|
29
|
+
value?: any;
|
|
30
|
+
label?: string;
|
|
31
|
+
errors?: string[];
|
|
32
|
+
striped?: boolean;
|
|
33
|
+
hint?: string;
|
|
34
|
+
gridLayout?: string;
|
|
35
|
+
notFoundFilterLabel?: string;
|
|
36
|
+
customClass?: string;
|
|
37
|
+
customClassLabel?: string;
|
|
38
|
+
customClassWrapper?: string;
|
|
39
|
+
searchInputPlaceholder?: string;
|
|
40
|
+
customClassInputContainer?: string;
|
|
41
|
+
multipleInputLabelEmpty?: string;
|
|
42
|
+
multipleInputLabelOneSelection?: string;
|
|
43
|
+
multipleInputLabelManySelection?: string;
|
|
44
|
+
textAlign?: TextAlign;
|
|
45
|
+
hintPosition?: HintPosition;
|
|
46
|
+
themePopover?: ColorTheme;
|
|
47
|
+
popoverAlign?: Extract<Position, 'left' | 'right'>;
|
|
48
|
+
permissionAttr?: PermissionAttr;
|
|
49
|
+
onDeniedActions?: OnDenied;
|
|
50
|
+
dropdownAlignButton?: Extract<Position, 'left' | 'right'>;
|
|
51
|
+
onSearch?: (event?: React.ChangeEvent<HTMLInputElement>) => void;
|
|
52
|
+
multiple?: keyof typeof MultipleVariantEnum;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { Keys, MultipleVariantEnum, SelectFieldInputProps };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.MultipleVariantEnum = exports.Keys = void 0;
|
|
7
|
+
let MultipleVariantEnum = exports.MultipleVariantEnum = /*#__PURE__*/function (MultipleVariantEnum) {
|
|
8
|
+
MultipleVariantEnum["default"] = "default";
|
|
9
|
+
MultipleVariantEnum["checkboxes"] = "checkboxes";
|
|
10
|
+
return MultipleVariantEnum;
|
|
11
|
+
}({});
|
|
12
|
+
let Keys = exports.Keys = /*#__PURE__*/function (Keys) {
|
|
13
|
+
Keys["escape"] = "Escape";
|
|
14
|
+
Keys["arrowDown"] = "ArrowDown";
|
|
15
|
+
Keys["arrowUp"] = "ArrowUp";
|
|
16
|
+
Keys["enter"] = "Enter";
|
|
17
|
+
Keys["backspace"] = "Backspace";
|
|
18
|
+
Keys["delete"] = "Delete";
|
|
19
|
+
Keys["spaceBar"] = " ";
|
|
20
|
+
return Keys;
|
|
21
|
+
}({});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
declare enum SlotPosition {
|
|
4
|
+
left = "left",
|
|
5
|
+
right = "right"
|
|
6
|
+
}
|
|
7
|
+
interface SlotProps extends React__default.ComponentProps<'div'> {
|
|
8
|
+
children: React__default.ReactNode;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const LeftSlot: React__default.ForwardRefExoticComponent<Pick<SlotProps, "className" | "disabled" | "onClick" | "color" | "children" | "style" | "id" | "key" | "slot" | "title" | "hidden" | "onKeyPress" | "role" | "tabIndex" | "align" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "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" | "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" | "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"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const RightSlot: React__default.ForwardRefExoticComponent<Pick<SlotProps, "className" | "disabled" | "onClick" | "color" | "children" | "style" | "id" | "key" | "slot" | "title" | "hidden" | "onKeyPress" | "role" | "tabIndex" | "align" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "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" | "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" | "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"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
|
|
14
|
+
export { LeftSlot, RightSlot, SlotPosition, SlotProps };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.RightSlot = exports.LeftSlot = void 0;
|
|
7
|
+
require("../../assets/styles/slot.scss");
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
const _excluded = ["children"],
|
|
10
|
+
_excluded2 = ["children"];
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
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); }
|
|
13
|
+
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; }
|
|
14
|
+
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; }
|
|
15
|
+
var SlotPosition = /*#__PURE__*/function (SlotPosition) {
|
|
16
|
+
SlotPosition["left"] = "left";
|
|
17
|
+
SlotPosition["right"] = "right";
|
|
18
|
+
return SlotPosition;
|
|
19
|
+
}(SlotPosition || {});
|
|
20
|
+
const LeftSlot = exports.LeftSlot = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
21
|
+
const {
|
|
22
|
+
children
|
|
23
|
+
} = props,
|
|
24
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
26
|
+
ref: ref,
|
|
27
|
+
className: "field-slot",
|
|
28
|
+
"aria-disabled": props['aria-disabled'],
|
|
29
|
+
"data-state-disabled": props.disabled,
|
|
30
|
+
"data-state-position": SlotPosition.left
|
|
31
|
+
}, rest), children);
|
|
32
|
+
});
|
|
33
|
+
LeftSlot.displayName = 'LeftSlot';
|
|
34
|
+
const RightSlot = exports.RightSlot = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
35
|
+
const {
|
|
36
|
+
children
|
|
37
|
+
} = props,
|
|
38
|
+
rest = _objectWithoutProperties(props, _excluded2);
|
|
39
|
+
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
40
|
+
ref: ref,
|
|
41
|
+
className: "field-slot",
|
|
42
|
+
"aria-disabled": props['aria-disabled'],
|
|
43
|
+
"data-state-disabled": props.disabled,
|
|
44
|
+
"data-state-position": SlotPosition.right
|
|
45
|
+
}, rest), children);
|
|
46
|
+
});
|
|
47
|
+
RightSlot.displayName = 'RightSlot';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import '../../@types/Align.js';
|
|
3
|
+
import '../../@types/ColorStyles.js';
|
|
4
|
+
import '../../@types/Position.js';
|
|
5
|
+
import '../../@types/PermissionAttr.js';
|
|
6
|
+
export { LeftSlot, RightSlot } from '../slot/index.js';
|
|
7
|
+
import '../../tooltip/types.js';
|
|
8
|
+
export { I as Input, T as TextFieldInputProps } from '../../index-772f9f1a.js';
|