@jobber/components 6.95.0 → 6.95.1-JOB-124062-569fcb4.5

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.
@@ -74,7 +74,7 @@ function Button(props) {
74
74
  React.createElement(ButtonWrapper, Object.assign({}, props))));
75
75
  }
76
76
  function ButtonWrapper(props) {
77
- const { ariaControls, ariaHaspopup, ariaExpanded, ariaLabel, disabled = false, external, id, name, onClick, onMouseDown, role, value, submit, to, url, UNSAFE_className = {}, UNSAFE_style = {}, children, } = props;
77
+ const { ariaControls, ariaHaspopup, ariaExpanded, ariaLabel, disabled = false, external, id, name, onClick, onMouseDown, loading, role, value, submit, to, url, UNSAFE_className = {}, UNSAFE_style = {}, children, } = props;
78
78
  const { combined } = useButtonStyles(props);
79
79
  const buttonType = submit ? "submit" : "button";
80
80
  const buttonClassNames = classnames(combined, UNSAFE_className.container);
@@ -82,7 +82,7 @@ function ButtonWrapper(props) {
82
82
  id, style: UNSAFE_style.container }, (submit && { name, value })), (!disabled && { href: url })), (!disabled && { onClick: onClick })), (!disabled && { onMouseDown: onMouseDown })), (external && {
83
83
  target: "_blank",
84
84
  rel: "noopener noreferrer",
85
- })), (url === undefined && to === undefined && { type: buttonType })), { "aria-controls": ariaControls, "aria-haspopup": ariaHaspopup, "aria-expanded": ariaExpanded, "aria-label": ariaLabel, role: role });
85
+ })), (url === undefined && to === undefined && { type: buttonType })), { "aria-controls": ariaControls, "aria-haspopup": ariaHaspopup, "aria-busy": loading, "aria-expanded": ariaExpanded, "aria-label": ariaLabel, role: role });
86
86
  const buttonInternals = children || React.createElement(ButtonContent, Object.assign({}, props));
87
87
  if (to) {
88
88
  return (React.createElement(reactRouterDom.Link, Object.assign({}, tagProps, { to: to }), buttonInternals));
package/dist/Button-es.js CHANGED
@@ -72,7 +72,7 @@ function Button(props) {
72
72
  React__default.createElement(ButtonWrapper, Object.assign({}, props))));
73
73
  }
74
74
  function ButtonWrapper(props) {
75
- const { ariaControls, ariaHaspopup, ariaExpanded, ariaLabel, disabled = false, external, id, name, onClick, onMouseDown, role, value, submit, to, url, UNSAFE_className = {}, UNSAFE_style = {}, children, } = props;
75
+ const { ariaControls, ariaHaspopup, ariaExpanded, ariaLabel, disabled = false, external, id, name, onClick, onMouseDown, loading, role, value, submit, to, url, UNSAFE_className = {}, UNSAFE_style = {}, children, } = props;
76
76
  const { combined } = useButtonStyles(props);
77
77
  const buttonType = submit ? "submit" : "button";
78
78
  const buttonClassNames = classnames(combined, UNSAFE_className.container);
@@ -80,7 +80,7 @@ function ButtonWrapper(props) {
80
80
  id, style: UNSAFE_style.container }, (submit && { name, value })), (!disabled && { href: url })), (!disabled && { onClick: onClick })), (!disabled && { onMouseDown: onMouseDown })), (external && {
81
81
  target: "_blank",
82
82
  rel: "noopener noreferrer",
83
- })), (url === undefined && to === undefined && { type: buttonType })), { "aria-controls": ariaControls, "aria-haspopup": ariaHaspopup, "aria-expanded": ariaExpanded, "aria-label": ariaLabel, role: role });
83
+ })), (url === undefined && to === undefined && { type: buttonType })), { "aria-controls": ariaControls, "aria-haspopup": ariaHaspopup, "aria-busy": loading, "aria-expanded": ariaExpanded, "aria-label": ariaLabel, role: role });
84
84
  const buttonInternals = children || React__default.createElement(ButtonContent, Object.assign({}, props));
85
85
  if (to) {
86
86
  return (React__default.createElement(Link, Object.assign({}, tagProps, { to: to }), buttonInternals));
@@ -101,6 +101,8 @@ function DataListItem({ item, layout, }) {
101
101
  setShowMenu(true);
102
102
  }
103
103
  function handleHideMenu() {
104
+ if (isContextMenuVisible)
105
+ return;
104
106
  setShowMenu(false);
105
107
  }
106
108
  function handleContextMenu(event) {
@@ -99,6 +99,8 @@ function DataListItem({ item, layout, }) {
99
99
  setShowMenu(true);
100
100
  }
101
101
  function handleHideMenu() {
102
+ if (isContextMenuVisible)
103
+ return;
102
104
  setShowMenu(false);
103
105
  }
104
106
  function handleContextMenu(event) {
@@ -9,6 +9,7 @@ export declare function useAtlantisReactHookForm({ actionsRef, name, defaultValu
9
9
  inputRefs: import("react").RefCallback<any>;
10
10
  useControllerField: {
11
11
  value: any;
12
+ disabled?: boolean;
12
13
  name: string;
13
14
  };
14
15
  setValue: import("react-hook-form").UseFormSetValue<import("react-hook-form").FieldValues>;
@@ -59,7 +59,7 @@ export declare function useInputTextFormField({ id, name, description, inline, h
59
59
  className: string;
60
60
  name: string;
61
61
  disabled: boolean | undefined;
62
- inputMode: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
62
+ inputMode: "none" | "text" | "search" | "email" | "decimal" | "tel" | "url" | "numeric" | undefined;
63
63
  onChange: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
64
64
  onBlur: () => void;
65
65
  onFocus: (event: FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "6.95.0",
3
+ "version": "6.95.1-JOB-124062-569fcb4.5+569fcb4b6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -483,13 +483,13 @@
483
483
  "classnames": "^2.3.2",
484
484
  "color": "^3.1.2",
485
485
  "filesize": "^6.1.0",
486
- "framer-motion": "^11.0.3",
486
+ "framer-motion": "^11.11.12",
487
487
  "lodash": "^4.17.21",
488
488
  "react-aria-components": "^1.11.0",
489
489
  "react-countdown": "^2.3.2",
490
490
  "react-datepicker": "^8.7.0",
491
491
  "react-dropzone": "^11.0.2",
492
- "react-hook-form": "^7.43.7",
492
+ "react-hook-form": "^7.52.0",
493
493
  "react-markdown": "^10.1.0",
494
494
  "react-router-dom": "^5.3.4",
495
495
  "ts-xor": "^1.0.8"
@@ -529,11 +529,11 @@
529
529
  "classnames": "^2",
530
530
  "color": "^4",
531
531
  "filesize": "^6",
532
- "framer-motion": "^11",
532
+ "framer-motion": "^11.11.12",
533
533
  "lodash": "^4",
534
534
  "react": "^18.2.0",
535
535
  "react-dom": "^18",
536
- "react-hook-form": "^7",
536
+ "react-hook-form": "^7.52.0",
537
537
  "react-router-dom": "^6"
538
538
  },
539
539
  "browserslist": [
@@ -541,5 +541,5 @@
541
541
  "> 1%",
542
542
  "IE 10"
543
543
  ],
544
- "gitHead": "bf693c9424255e3021d58cf8c326dd7424313f86"
544
+ "gitHead": "569fcb4b6d2ef0068470ad901519b1a01de00ba5"
545
545
  }