@economic/taco 2.45.1 → 2.45.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AlertDialog/AlertDialog.d.ts +1 -2
- package/dist/components/AlertDialog/components/Content.d.ts +0 -2
- package/dist/components/Menu/components/Content.d.ts +1 -1
- package/dist/components/Menu/components/SubMenu.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/esm/packages/taco/src/components/AlertDialog/AlertDialog.js +1 -2
- package/dist/esm/packages/taco/src/components/AlertDialog/AlertDialog.js.map +1 -1
- package/dist/esm/packages/taco/src/components/AlertDialog/components/Content.js +2 -7
- package/dist/esm/packages/taco/src/components/AlertDialog/components/Content.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/components/Content.js +0 -1
- package/dist/esm/packages/taco/src/components/Dialog/components/Content.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/components/Content.js +0 -1
- package/dist/esm/packages/taco/src/components/Drawer/components/Content.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Popover/Popover.js.map +1 -1
- package/dist/esm/packages/taco/src/utils/dom.js +2 -2
- package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
- package/dist/taco.cjs.development.js +2 -10
- package/dist/taco.cjs.development.js.map +1 -1
- package/dist/taco.cjs.production.min.js +1 -1
- package/dist/taco.cjs.production.min.js.map +1 -1
- package/package.json +16 -16
|
@@ -3944,11 +3944,6 @@ const Title = /*#__PURE__*/React.forwardRef(function AlertDialogTitle(props, ref
|
|
|
3944
3944
|
className: "mr-2"
|
|
3945
3945
|
})) : undefined, props.children);
|
|
3946
3946
|
});
|
|
3947
|
-
const Description = /*#__PURE__*/React.forwardRef(function AlertDialogDescription(props, ref) {
|
|
3948
|
-
return /*#__PURE__*/React.createElement(AlertDialogPrimitive.Description, Object.assign({
|
|
3949
|
-
ref: ref
|
|
3950
|
-
}, props));
|
|
3951
|
-
});
|
|
3952
3947
|
const Content = /*#__PURE__*/React.forwardRef(function AlertDialogContent(props, ref) {
|
|
3953
3948
|
const className = cn('p-6', getDialogPositionClassnames(), getDialogStylingClassnames(), getDialogSizeClassnames('dialog'));
|
|
3954
3949
|
return /*#__PURE__*/React.createElement(AlertDialogPrimitive.Portal, null, /*#__PURE__*/React.createElement(AlertDialogPrimitive.Overlay, {
|
|
@@ -3983,7 +3978,6 @@ const AlertDialog = /*#__PURE__*/React.forwardRef(function AlertDialog(props, re
|
|
|
3983
3978
|
});
|
|
3984
3979
|
AlertDialog.Trigger = Trigger;
|
|
3985
3980
|
AlertDialog.Content = Content;
|
|
3986
|
-
AlertDialog.Description = Description;
|
|
3987
3981
|
AlertDialog.Title = Title;
|
|
3988
3982
|
AlertDialog.Cancel = Cancel;
|
|
3989
3983
|
AlertDialog.Action = Action;
|
|
@@ -4167,7 +4161,7 @@ const useMergedRef = ref => {
|
|
|
4167
4161
|
};
|
|
4168
4162
|
|
|
4169
4163
|
// taken from react-aria
|
|
4170
|
-
const FOCUSABLE_ELEMENTS = ['[tabindex]:not([disabled])
|
|
4164
|
+
const FOCUSABLE_ELEMENTS = ['[tabindex]:not([disabled])', 'input:not([disabled])', 'select:not([disabled])', 'textarea:not([disabled])', 'button:not([disabled])', 'a[href]', 'area[href]', 'summary', 'iframe', 'object', 'embed', 'audio[controls]', 'video[controls]', '[contenteditable]', 'details:not([disabled])', 'summary:not(:disabled)'];
|
|
4171
4165
|
const hasFocusableElement = element => {
|
|
4172
4166
|
if (!element) {
|
|
4173
4167
|
return null;
|
|
@@ -4196,7 +4190,7 @@ const getNextFocussableElement = currentElement => {
|
|
|
4196
4190
|
let focussableElements = [...document.querySelectorAll(FOCUSABLE_ELEMENTS.join(','))];
|
|
4197
4191
|
const currentElementIndex = focussableElements.indexOf(currentElement);
|
|
4198
4192
|
if (currentElementIndex > -1) {
|
|
4199
|
-
focussableElements = focussableElements.slice(currentElementIndex + 1);
|
|
4193
|
+
focussableElements = focussableElements.slice(currentElementIndex + 1).filter(element => element.getAttribute('tabindex') !== '-1');
|
|
4200
4194
|
if (focussableElements.length) {
|
|
4201
4195
|
var _focussableElements$;
|
|
4202
4196
|
focussableElements = focussableElements.filter(element => {
|
|
@@ -6691,7 +6685,6 @@ const Content$4 = /*#__PURE__*/React.forwardRef(function DialogContent(props, re
|
|
|
6691
6685
|
return /*#__PURE__*/React.createElement(DialogPrimitive.Portal, null, /*#__PURE__*/React.createElement(DialogPrimitive.Overlay, {
|
|
6692
6686
|
asChild: true
|
|
6693
6687
|
}, /*#__PURE__*/React.createElement(Backdrop, null, /*#__PURE__*/React.createElement(DialogPrimitive.Content, Object.assign({}, props, {
|
|
6694
|
-
"aria-describedby": undefined,
|
|
6695
6688
|
className: className,
|
|
6696
6689
|
onEscapeKeyDown: handleEscapeKeyDown,
|
|
6697
6690
|
onInteractOutside: handleInteractOutside,
|
|
@@ -7219,7 +7212,6 @@ const DrawerContent = /*#__PURE__*/React__default.forwardRef(function Content(pr
|
|
|
7219
7212
|
return focusTrap ? (/*#__PURE__*/React__default.createElement(DialogPrimitive.Content, Object.assign({
|
|
7220
7213
|
forceMount: true
|
|
7221
7214
|
}, otherProps, {
|
|
7222
|
-
"aria-describedby": undefined,
|
|
7223
7215
|
className: contentClassName,
|
|
7224
7216
|
onEscapeKeyDown: handleEscapeKeyDown,
|
|
7225
7217
|
onInteractOutside: variant === 'overlay' ? undefined : event => event.preventDefault(),
|