@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.
@@ -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({}, props), children);
101
+ return React.createElement(DataTableHeaderCell, Object.assign({}, rest), children);
102
102
  }
103
- return (React.createElement(DataTableHeaderCell, Object.assign({}, props),
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({}, props), children);
99
+ return React__default.createElement(DataTableHeaderCell, Object.assign({}, rest), children);
100
100
  }
101
- return (React__default.createElement(DataTableHeaderCell, Object.assign({}, props),
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,
@@ -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
- React.createElement("div", Object.assign({ ref: floatingRefs === null || floatingRefs === void 0 ? void 0 : floatingRefs.setFloating, "data-modal-node-id": floatingNodeId }, getFloatingProps({
240
- role: "dialog",
241
- className: modal,
242
- "aria-labelledby": modalLabelledBy,
243
- "aria-label": ariaLabel,
244
- "aria-modal": true,
245
- }), { onPointerDownCapture: () => {
246
- // Interaction began inside dialog
247
- if (startedInsideRef)
248
- startedInsideRef.current = true;
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) {
@@ -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
- React__default.createElement("div", Object.assign({ ref: floatingRefs === null || floatingRefs === void 0 ? void 0 : floatingRefs.setFloating, "data-modal-node-id": floatingNodeId }, getFloatingProps({
238
- role: "dialog",
239
- className: modal,
240
- "aria-labelledby": modalLabelledBy,
241
- "aria-label": ariaLabel,
242
- "aria-modal": true,
243
- }), { onPointerDownCapture: () => {
244
- // Interaction began inside dialog
245
- if (startedInsideRef)
246
- startedInsideRef.current = true;
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.0",
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": "a7bcbd7560c4e86f8db10dfd71b2e3ce5a4f8717"
541
+ "gitHead": "8e7acd1569527b5089ef1bbe03be8da64c82082d"
542
542
  }