@jobber/components 6.101.0 → 6.101.2
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/DataTableTable-cjs.js +3 -3
- package/dist/DataTableTable-es.js +3 -3
- package/dist/Modal/index.cjs +12 -13
- package/dist/Modal/index.mjs +12 -13
- package/package.json +2 -2
|
@@ -95,12 +95,12 @@ function DataTableRowActions(props) {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
function DataTableSortableHeader(props) {
|
|
98
|
-
const { children, direction, onSort } = props;
|
|
98
|
+
const { children, direction, onSort } = props, rest = tslib_es6.__rest(props, ["children", "direction", "onSort"]);
|
|
99
99
|
const isSortable = direction !== undefined && onSort !== undefined;
|
|
100
100
|
if (!isSortable) {
|
|
101
|
-
return React.createElement(DataTableHeaderCell, Object.assign({},
|
|
101
|
+
return React.createElement(DataTableHeaderCell, Object.assign({}, rest), children);
|
|
102
102
|
}
|
|
103
|
-
return (React.createElement(DataTableHeaderCell, Object.assign({},
|
|
103
|
+
return (React.createElement(DataTableHeaderCell, Object.assign({}, rest),
|
|
104
104
|
React.createElement("button", { type: "button", onClick: onSort, className: styles.sortableButton },
|
|
105
105
|
React.createElement("span", { className: styles.focusArea },
|
|
106
106
|
children,
|
|
@@ -93,12 +93,12 @@ function DataTableRowActions(props) {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
function DataTableSortableHeader(props) {
|
|
96
|
-
const { children, direction, onSort } = props;
|
|
96
|
+
const { children, direction, onSort } = props, rest = __rest(props, ["children", "direction", "onSort"]);
|
|
97
97
|
const isSortable = direction !== undefined && onSort !== undefined;
|
|
98
98
|
if (!isSortable) {
|
|
99
|
-
return React__default.createElement(DataTableHeaderCell, Object.assign({},
|
|
99
|
+
return React__default.createElement(DataTableHeaderCell, Object.assign({}, rest), children);
|
|
100
100
|
}
|
|
101
|
-
return (React__default.createElement(DataTableHeaderCell, Object.assign({},
|
|
101
|
+
return (React__default.createElement(DataTableHeaderCell, Object.assign({}, rest),
|
|
102
102
|
React__default.createElement("button", { type: "button", onClick: onSort, className: styles.sortableButton },
|
|
103
103
|
React__default.createElement("span", { className: styles.focusArea },
|
|
104
104
|
children,
|
package/dist/Modal/index.cjs
CHANGED
|
@@ -232,21 +232,20 @@ function ModalContent({ children }) {
|
|
|
232
232
|
React.createElement(AtlantisPortalContent.AtlantisPortalContent, null,
|
|
233
233
|
React.createElement(ModalOverlay, null,
|
|
234
234
|
React.createElement(floatingUi_react.FloatingFocusManager, { context: floatingContext, returnFocus: (activatorRef === null || activatorRef === void 0 ? void 0 : activatorRef.current) ? activatorRef : true, order: ["floating", "content"] },
|
|
235
|
-
React.createElement(framerMotion.motion.div, { initial: { scale: 0.9, opacity: 0 }, animate: { scale: 1, opacity: 1 }, exit: { scale: 0.9, opacity: 0 }, transition: {
|
|
235
|
+
React.createElement(framerMotion.motion.div, Object.assign({ initial: { scale: 0.9, opacity: 0 }, animate: { scale: 1, opacity: 1 }, exit: { scale: 0.9, opacity: 0 }, transition: {
|
|
236
236
|
duration: 0.2,
|
|
237
237
|
ease: "easeInOut",
|
|
238
|
-
} },
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
} }), children))))))))));
|
|
238
|
+
}, ref: floatingRefs === null || floatingRefs === void 0 ? void 0 : floatingRefs.setFloating, "data-modal-node-id": floatingNodeId }, getFloatingProps({
|
|
239
|
+
role: "dialog",
|
|
240
|
+
className: modal,
|
|
241
|
+
"aria-labelledby": modalLabelledBy,
|
|
242
|
+
"aria-label": ariaLabel,
|
|
243
|
+
"aria-modal": true,
|
|
244
|
+
}), { onPointerDownCapture: () => {
|
|
245
|
+
// Interaction began inside dialog
|
|
246
|
+
if (startedInsideRef)
|
|
247
|
+
startedInsideRef.current = true;
|
|
248
|
+
} }), children)))))))));
|
|
250
249
|
}
|
|
251
250
|
|
|
252
251
|
function Modal(props) {
|
package/dist/Modal/index.mjs
CHANGED
|
@@ -230,21 +230,20 @@ function ModalContent({ children }) {
|
|
|
230
230
|
React__default.createElement(AtlantisPortalContent, null,
|
|
231
231
|
React__default.createElement(ModalOverlay, null,
|
|
232
232
|
React__default.createElement(FloatingFocusManager, { context: floatingContext, returnFocus: (activatorRef === null || activatorRef === void 0 ? void 0 : activatorRef.current) ? activatorRef : true, order: ["floating", "content"] },
|
|
233
|
-
React__default.createElement(motion.div, { initial: { scale: 0.9, opacity: 0 }, animate: { scale: 1, opacity: 1 }, exit: { scale: 0.9, opacity: 0 }, transition: {
|
|
233
|
+
React__default.createElement(motion.div, Object.assign({ initial: { scale: 0.9, opacity: 0 }, animate: { scale: 1, opacity: 1 }, exit: { scale: 0.9, opacity: 0 }, transition: {
|
|
234
234
|
duration: 0.2,
|
|
235
235
|
ease: "easeInOut",
|
|
236
|
-
} },
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
} }), children))))))))));
|
|
236
|
+
}, ref: floatingRefs === null || floatingRefs === void 0 ? void 0 : floatingRefs.setFloating, "data-modal-node-id": floatingNodeId }, getFloatingProps({
|
|
237
|
+
role: "dialog",
|
|
238
|
+
className: modal,
|
|
239
|
+
"aria-labelledby": modalLabelledBy,
|
|
240
|
+
"aria-label": ariaLabel,
|
|
241
|
+
"aria-modal": true,
|
|
242
|
+
}), { onPointerDownCapture: () => {
|
|
243
|
+
// Interaction began inside dialog
|
|
244
|
+
if (startedInsideRef)
|
|
245
|
+
startedInsideRef.current = true;
|
|
246
|
+
} }), children)))))))));
|
|
248
247
|
}
|
|
249
248
|
|
|
250
249
|
function Modal(props) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "6.101.
|
|
3
|
+
"version": "6.101.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -538,5 +538,5 @@
|
|
|
538
538
|
"> 1%",
|
|
539
539
|
"IE 10"
|
|
540
540
|
],
|
|
541
|
-
"gitHead": "
|
|
541
|
+
"gitHead": "8e7acd1569527b5089ef1bbe03be8da64c82082d"
|
|
542
542
|
}
|