@jobber/components 6.94.1 → 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));
@@ -33,7 +33,6 @@ require('../Content-cjs.js');
33
33
  require('../Markdown-cjs.js');
34
34
  require('../Text-cjs.js');
35
35
  require('../Emphasis-cjs.js');
36
- require('../index-cjs.js');
37
36
 
38
37
 
39
38
 
@@ -31,4 +31,3 @@ import '../Content-es.js';
31
31
  import '../Markdown-es.js';
32
32
  import '../Text-es.js';
33
33
  import '../Emphasis-es.js';
34
- import '../index-es.js';
@@ -1,5 +1,4 @@
1
- import React from "react";
2
- import type { ReactElement } from "react-markdown/lib/react-markdown";
1
+ import React, { type ReactElement } from "react";
3
2
  interface DataListHeaderCheckbox {
4
3
  readonly children: ReactElement;
5
4
  }
@@ -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) {
@@ -16,7 +16,7 @@ require('../Icon-cjs.js');
16
16
  require('@jobber/design');
17
17
  require('../Emphasis-cjs.js');
18
18
  require('../Markdown-cjs.js');
19
- require('../index-cjs.js');
19
+ require('react/jsx-runtime');
20
20
  require('../_commonjsHelpers-cjs.js');
21
21
 
22
22
 
@@ -14,5 +14,5 @@ import '../Icon-es.js';
14
14
  import '@jobber/design';
15
15
  import '../Emphasis-es.js';
16
16
  import '../Markdown-es.js';
17
- import '../index-es.js';
17
+ import 'react/jsx-runtime';
18
18
  import '../_commonjsHelpers-es.js';
@@ -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>;
@@ -38,7 +38,6 @@ require('../_isIterateeCall-cjs.js');
38
38
  require('../_setToString-cjs.js');
39
39
  require('../Markdown-cjs.js');
40
40
  require('../Emphasis-cjs.js');
41
- require('../index-cjs.js');
42
41
 
43
42
 
44
43
 
@@ -36,4 +36,3 @@ import '../_isIterateeCall-es.js';
36
36
  import '../_setToString-es.js';
37
37
  import '../Markdown-es.js';
38
38
  import '../Emphasis-es.js';
39
- import '../index-es.js';
@@ -40,7 +40,6 @@ require('react/jsx-runtime');
40
40
  require('../AtlantisPortalContent-cjs.js');
41
41
  require('../Markdown-cjs.js');
42
42
  require('../Emphasis-cjs.js');
43
- require('../index-cjs.js');
44
43
 
45
44
 
46
45
 
@@ -38,4 +38,3 @@ import 'react/jsx-runtime';
38
38
  import '../AtlantisPortalContent-es.js';
39
39
  import '../Markdown-es.js';
40
40
  import '../Emphasis-es.js';
41
- import '../index-es.js';
@@ -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;
@@ -21,7 +21,7 @@ require('../Heading-cjs.js');
21
21
  require('../Markdown-cjs.js');
22
22
  require('../Emphasis-cjs.js');
23
23
  require('../Content-cjs.js');
24
- require('../index-cjs.js');
24
+ require('react/jsx-runtime');
25
25
 
26
26
 
27
27
 
@@ -19,4 +19,4 @@ import '../Heading-es.js';
19
19
  import '../Markdown-es.js';
20
20
  import '../Emphasis-es.js';
21
21
  import '../Content-es.js';
22
- import '../index-es.js';
22
+ import 'react/jsx-runtime';
@@ -8,7 +8,7 @@ require('classnames');
8
8
  require('../Emphasis-cjs.js');
9
9
  require('../Heading-cjs.js');
10
10
  require('../Content-cjs.js');
11
- require('../index-cjs.js');
11
+ require('react/jsx-runtime');
12
12
  require('../_commonjsHelpers-cjs.js');
13
13
 
14
14
 
@@ -6,5 +6,5 @@ import 'classnames';
6
6
  import '../Emphasis-es.js';
7
7
  import '../Heading-es.js';
8
8
  import '../Content-es.js';
9
- import '../index-es.js';
9
+ import 'react/jsx-runtime';
10
10
  import '../_commonjsHelpers-es.js';