@jobber/components 3.5.10 → 4.0.1-pre.4

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.
Files changed (127) hide show
  1. package/dist/Autocomplete/Autocomplete.d.ts +1 -1
  2. package/dist/Autocomplete/Option.d.ts +2 -2
  3. package/dist/Autocomplete/index.js +51 -67
  4. package/dist/Avatar/Avatar.d.ts +2 -2
  5. package/dist/Avatar/index.js +2 -2
  6. package/dist/{Avatar-cfd04e86.js → Avatar-89cfd0a6.js} +14 -18
  7. package/dist/Banner/Banner.d.ts +1 -1
  8. package/dist/Banner/index.js +15 -19
  9. package/dist/Button/Button.d.ts +1 -1
  10. package/dist/Button/index.js +3 -4
  11. package/dist/{Button-cd30df0f.js → Button-16e043ec.js} +21 -24
  12. package/dist/ButtonDismiss/index.js +4 -5
  13. package/dist/{ButtonDismiss-a9590195.js → ButtonDismiss-3fb1eaf9.js} +2 -3
  14. package/dist/Card/Card.d.ts +1 -1
  15. package/dist/Card/index.js +6 -7
  16. package/dist/Card/types.d.ts +1 -1
  17. package/dist/{Card-b9f8d6f3.js → Card-edab9c3c.js} +18 -22
  18. package/dist/Checkbox/Checkbox.d.ts +1 -1
  19. package/dist/Checkbox/index.js +4 -5
  20. package/dist/{Checkbox-5103d2b9.js → Checkbox-c1efc2f6.js} +10 -12
  21. package/dist/Chips/ChipsTypes.d.ts +1 -1
  22. package/dist/Chips/InternalChipDismissible/InternalChipDismissibleTypes.d.ts +1 -1
  23. package/dist/Chips/InternalChipDismissible/hooks/useInternalChipDismissible.d.ts +1 -1
  24. package/dist/Chips/InternalChipDismissible/hooks/useInternalChipDismissibleInput.d.ts +3 -3
  25. package/dist/Chips/InternalChipMultiSelect.d.ts +1 -1
  26. package/dist/Chips/InternalChipSingleSelect.d.ts +1 -1
  27. package/dist/Chips/index.js +165 -185
  28. package/dist/ConfirmationModal/ConfirmationModal.d.ts +1 -1
  29. package/dist/ConfirmationModal/index.js +11 -12
  30. package/dist/{ConfirmationModal-e95f46d7.js → ConfirmationModal-6a7beee2.js} +28 -31
  31. package/dist/Content/index.js +1 -1
  32. package/dist/{Content-18de5fbb.js → Content-05df8f7f.js} +2 -3
  33. package/dist/Countdown/Countdown.d.ts +1 -1
  34. package/dist/Countdown/computeTimeUnit.d.ts +1 -1
  35. package/dist/Countdown/index.js +15 -18
  36. package/dist/DataDump/index.js +9 -11
  37. package/dist/DataTable/Footer.d.ts +1 -1
  38. package/dist/DataTable/createTableSettings.d.ts +2 -2
  39. package/dist/DataTable/index.js +74 -106
  40. package/dist/DataTable/test-utilities/helpers.d.ts +1 -1
  41. package/dist/DataTable/types.d.ts +2 -2
  42. package/dist/DatePicker/DatePicker.d.ts +1 -1
  43. package/dist/DatePicker/index.js +4 -5
  44. package/dist/{DatePicker-7c67e8d2.js → DatePicker-af21ae91.js} +31 -36
  45. package/dist/DescriptionList/index.js +5 -10
  46. package/dist/Disclosure/index.js +8 -10
  47. package/dist/Divider/index.js +8 -10
  48. package/dist/Drawer/index.js +10 -14
  49. package/dist/Emphasis/index.js +2 -3
  50. package/dist/{Emphasis-75a3f411.js → Emphasis-23dc2a0a.js} +4 -6
  51. package/dist/FeatureSwitch/index.js +15 -17
  52. package/dist/Form/index.js +23 -33
  53. package/dist/FormField/FormFieldTypes.d.ts +2 -2
  54. package/dist/FormField/index.js +8 -8
  55. package/dist/{FormField-76068c0b.js → FormField-1e444bb6.js} +68 -76
  56. package/dist/FormatDate/index.js +2 -3
  57. package/dist/FormatEmail/index.js +2 -3
  58. package/dist/FormatFile/index.js +13 -14
  59. package/dist/{FormatFile-18e8a54a.js → FormatFile-3512f838.js} +33 -40
  60. package/dist/FormatRelativeDateTime/index.js +5 -6
  61. package/dist/FormatTime/index.js +6 -7
  62. package/dist/Gallery/GalleryTypes.d.ts +2 -2
  63. package/dist/Gallery/index.js +31 -33
  64. package/dist/Heading/index.js +2 -3
  65. package/dist/{Heading-a9a66964.js → Heading-7b203f7f.js} +4 -6
  66. package/dist/Icon/index.js +1 -1
  67. package/dist/{Icon-d5ad1a6d.js → Icon-405a216c.js} +7 -8
  68. package/dist/InlineLabel/InlineLabel.d.ts +1 -1
  69. package/dist/InlineLabel/index.js +4 -6
  70. package/dist/InputAvatar/index.js +15 -20
  71. package/dist/InputDate/index.js +15 -15
  72. package/dist/InputEmail/InputEmail.d.ts +1 -1
  73. package/dist/InputEmail/index.js +12 -12
  74. package/dist/InputFile/index.js +6 -6
  75. package/dist/{InputFile-e108a7f8.js → InputFile-5e0ed2b5.js} +48 -62
  76. package/dist/InputGroup/index.js +4 -5
  77. package/dist/InputNumber/index.js +22 -22
  78. package/dist/InputPassword/index.js +12 -12
  79. package/dist/InputText/InputText.d.ts +1 -1
  80. package/dist/InputText/index.js +9 -9
  81. package/dist/{InputText-523d0e48.js → InputText-12b112a9.js} +23 -24
  82. package/dist/InputTime/index.js +27 -27
  83. package/dist/InputValidation/index.js +4 -5
  84. package/dist/{InputValidation-06a8a7ba.js → InputValidation-97dd0dcf.js} +7 -8
  85. package/dist/LightBox/index.js +5 -6
  86. package/dist/{LightBox-1ad62669.js → LightBox-dd1afa97.js} +22 -26
  87. package/dist/List/index.js +26 -32
  88. package/dist/Markdown/index.js +6 -7
  89. package/dist/{Markdown-b53e0308.js → Markdown-be2dcd0c.js} +12 -18
  90. package/dist/Menu/index.js +4 -5
  91. package/dist/{Menu-826cfb89.js → Menu-d6a7d17b.js} +31 -36
  92. package/dist/Modal/index.js +6 -7
  93. package/dist/{Modal-cc3bd7bf.js → Modal-757e83fd.js} +13 -17
  94. package/dist/MultiSelect/index.js +53 -60
  95. package/dist/MultiSelect/types.d.ts +1 -1
  96. package/dist/{Option-fdf21181.js → Option-13150f4a.js} +3 -5
  97. package/dist/Page/Page.d.ts +1 -1
  98. package/dist/Page/index.js +21 -24
  99. package/dist/Popover/index.js +11 -13
  100. package/dist/ProgressBar/index.js +1 -1
  101. package/dist/{ProgressBar-e9a49129.js → ProgressBar-f028b159.js} +3 -4
  102. package/dist/RadioGroup/RadioOption.d.ts +2 -2
  103. package/dist/RadioGroup/index.js +9 -13
  104. package/dist/RecurringSelect/types.d.ts +2 -2
  105. package/dist/Select/Select.d.ts +1 -1
  106. package/dist/Select/index.js +9 -9
  107. package/dist/Spinner/index.js +1 -1
  108. package/dist/{Spinner-e4e9c8eb.js → Spinner-ae4c8a85.js} +5 -7
  109. package/dist/StatusLabel/StatusLabel.d.ts +1 -1
  110. package/dist/StatusLabel/index.js +6 -9
  111. package/dist/Switch/index.js +2 -3
  112. package/dist/{Switch-f03b70fc.js → Switch-7ac32f7b.js} +12 -16
  113. package/dist/Table/index.js +9 -17
  114. package/dist/Tabs/index.js +28 -34
  115. package/dist/Text/index.js +2 -3
  116. package/dist/{Text-e012fb46.js → Text-7ce00adb.js} +4 -5
  117. package/dist/Toast/Toast.d.ts +2 -2
  118. package/dist/Toast/index.js +42 -40
  119. package/dist/Tooltip/index.js +3 -4
  120. package/dist/Tooltip/useTooltipPositioning.d.ts +1 -1
  121. package/dist/{Tooltip-041feb00.js → Tooltip-1090a43d.js} +25 -28
  122. package/dist/Typography/Typography.d.ts +1 -1
  123. package/dist/Typography/index.js +1 -2
  124. package/dist/{Typography-fbe0ed6e.js → Typography-9262511f.js} +5 -7
  125. package/dist/tslib.es6-efe27175.js +38 -0
  126. package/package.json +8 -8
  127. package/dist/tslib.es6-5b50eb8e.js +0 -103
@@ -74,5 +74,5 @@ interface StringMessage extends BaseConfirmationModalProps {
74
74
  message: string;
75
75
  children?: never;
76
76
  }
77
- export declare const ConfirmationModal: React.ForwardRefExoticComponent<(SimpleConfirmationModalProps & ChildrenMessage & React.RefAttributes<ConfirmationModalRef>) | (SimpleConfirmationModalProps & StringMessage & React.RefAttributes<ConfirmationModalRef>) | (Pick<ComplexConfirmationModalProps & ChildrenMessage, "children" | "size" | "title" | "variation" | "message" | "open" | "onRequestClose" | "onCancel" | "confirmLabel" | "cancelLabel" | "onConfirm"> & React.RefAttributes<ConfirmationModalRef>) | (Pick<ComplexConfirmationModalProps & StringMessage, "children" | "size" | "title" | "variation" | "message" | "open" | "onRequestClose" | "onCancel" | "confirmLabel" | "cancelLabel" | "onConfirm"> & React.RefAttributes<ConfirmationModalRef>)>;
77
+ export declare const ConfirmationModal: React.ForwardRefExoticComponent<((SimpleConfirmationModalProps & (ChildrenMessage | StringMessage)) | Omit<ComplexConfirmationModalProps & ChildrenMessage, "ref"> | Omit<ComplexConfirmationModalProps & StringMessage, "ref">) & React.RefAttributes<ConfirmationModalRef>>;
78
78
  export {};
@@ -2,27 +2,26 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ConfirmationModal = require('../ConfirmationModal-e95f46d7.js');
6
- require('../tslib.es6-5b50eb8e.js');
5
+ var ConfirmationModal = require('../ConfirmationModal-6a7beee2.js');
7
6
  require('react');
8
7
  require('@jobber/hooks');
9
- require('../Modal-cc3bd7bf.js');
8
+ require('../Modal-757e83fd.js');
10
9
  require('react-dom');
11
10
  require('classnames');
12
11
  require('framer-motion');
13
12
  require('../style-inject.es-dcee06b6.js');
14
- require('../Heading-a9a66964.js');
15
- require('../Typography-fbe0ed6e.js');
16
- require('../Button-cd30df0f.js');
13
+ require('../Heading-7b203f7f.js');
14
+ require('../Typography-9262511f.js');
15
+ require('../Button-16e043ec.js');
17
16
  require('react-router-dom');
18
- require('../Icon-d5ad1a6d.js');
17
+ require('../Icon-405a216c.js');
19
18
  require('@jobber/design');
20
- require('../ButtonDismiss-a9590195.js');
21
- require('../Content-18de5fbb.js');
22
- require('../Markdown-b53e0308.js');
19
+ require('../ButtonDismiss-3fb1eaf9.js');
20
+ require('../Content-05df8f7f.js');
21
+ require('../Markdown-be2dcd0c.js');
23
22
  require('react-markdown');
24
- require('../Text-e012fb46.js');
25
- require('../Emphasis-75a3f411.js');
23
+ require('../Text-7ce00adb.js');
24
+ require('../Emphasis-23dc2a0a.js');
26
25
 
27
26
 
28
27
 
@@ -1,11 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('./tslib.es6-5b50eb8e.js');
4
3
  var React = require('react');
5
4
  var jobberHooks = require('@jobber/hooks');
6
- var Modal = require('./Modal-cc3bd7bf.js');
7
- var Content = require('./Content-18de5fbb.js');
8
- var Markdown = require('./Markdown-b53e0308.js');
5
+ var Modal = require('./Modal-757e83fd.js');
6
+ var Content = require('./Content-05df8f7f.js');
7
+ var Markdown = require('./Markdown-be2dcd0c.js');
9
8
 
10
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
10
 
@@ -14,34 +13,32 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
13
  function confirmationModalReducer(state, action) {
15
14
  switch (action.type) {
16
15
  case "display":
17
- return tslib_es6.__assign(tslib_es6.__assign({}, state), { title: action.title, message: action.message, open: true, confirmLabel: action.confirmLabel, cancelLabel: action.cancelLabel || "Cancel", onConfirm: action.onConfirm, onCancel: action.onCancel });
16
+ return Object.assign(Object.assign({}, state), { title: action.title, message: action.message, open: true, confirmLabel: action.confirmLabel, cancelLabel: action.cancelLabel || "Cancel", onConfirm: action.onConfirm, onCancel: action.onCancel });
18
17
  case "confirm":
19
18
  state.onConfirm && state.onConfirm();
20
- return tslib_es6.__assign(tslib_es6.__assign({}, state), { open: false });
19
+ return Object.assign(Object.assign({}, state), { open: false });
21
20
  case "cancel":
22
21
  state.onCancel && state.onCancel();
23
- return tslib_es6.__assign(tslib_es6.__assign({}, state), { open: false });
22
+ return Object.assign(Object.assign({}, state), { open: false });
24
23
  case "reset":
25
- return tslib_es6.__assign(tslib_es6.__assign({}, state), action.state);
24
+ return Object.assign(Object.assign({}, state), action.state);
26
25
  default:
27
26
  throw new Error();
28
27
  }
29
28
  }
30
- var ConfirmationModal = React.forwardRef(function ConfirmationModalInternal(_a, ref) {
31
- var title = _a.title, message = _a.message, _b = _a.open, open = _b === void 0 ? false : _b, _c = _a.confirmLabel, confirmLabel = _c === void 0 ? "Confirm" : _c, _d = _a.cancelLabel, cancelLabel = _d === void 0 ? "Cancel" : _d, onConfirm = _a.onConfirm, onCancel = _a.onCancel, onRequestClose = _a.onRequestClose, _e = _a.variation, variation = _e === void 0 ? "work" : _e, size = _a.size, children = _a.children;
32
- var _f = tslib_es6.__read(React.useReducer(confirmationModalReducer, {
33
- title: title,
34
- message: message,
29
+ const ConfirmationModal = React.forwardRef(function ConfirmationModalInternal({ title, message, open = false, confirmLabel = "Confirm", cancelLabel = "Cancel", onConfirm, onCancel, onRequestClose, variation = "work", size, children, }, ref) {
30
+ const [state, dispatch] = React.useReducer(confirmationModalReducer, {
31
+ title,
32
+ message,
35
33
  open: false,
36
- confirmLabel: confirmLabel,
37
- cancelLabel: cancelLabel,
38
- onConfirm: onConfirm,
39
- onCancel: onCancel,
40
- }), 2), state = _f[0], dispatch = _f[1];
34
+ confirmLabel,
35
+ cancelLabel,
36
+ onConfirm,
37
+ onCancel,
38
+ });
41
39
  // Expose a `show` method through this component's ref.
42
- React.useImperativeHandle(ref, function () { return ({
43
- show: function (_a) {
44
- var newTitle = _a.title, newMessage = _a.message, newConfirmLabel = _a.confirmLabel, newCancelLabel = _a.cancelLabel, newOnConfirm = _a.onConfirm, newOnCancel = _a.onCancel;
40
+ React.useImperativeHandle(ref, () => ({
41
+ show: ({ title: newTitle, message: newMessage, confirmLabel: newConfirmLabel, cancelLabel: newCancelLabel, onConfirm: newOnConfirm, onCancel: newOnCancel, }) => {
45
42
  dispatch({
46
43
  type: "display",
47
44
  title: newTitle,
@@ -52,14 +49,14 @@ var ConfirmationModal = React.forwardRef(function ConfirmationModalInternal(_a,
52
49
  onCancel: newOnCancel,
53
50
  });
54
51
  },
55
- }); });
56
- React.useEffect(function () {
52
+ }));
53
+ React.useEffect(() => {
57
54
  dispatch({
58
55
  type: "reset",
59
- state: tslib_es6.__assign(tslib_es6.__assign({}, state), { title: title, message: message, confirmLabel: confirmLabel,
60
- cancelLabel: cancelLabel,
61
- onConfirm: onConfirm,
62
- onCancel: onCancel }),
56
+ state: Object.assign(Object.assign({}, state), { title, message: message, confirmLabel,
57
+ cancelLabel,
58
+ onConfirm,
59
+ onCancel }),
63
60
  });
64
61
  }, [title, message, confirmLabel, cancelLabel, onConfirm, onCancel]);
65
62
  jobberHooks.useOnKeyDown(handleKeyboardShortcut, ["Escape", "Enter"]);
@@ -73,16 +70,16 @@ var ConfirmationModal = React.forwardRef(function ConfirmationModalInternal(_a,
73
70
  } }, state.message ? (React__default["default"].createElement(Content.Content, null,
74
71
  React__default["default"].createElement(Markdown.Markdown, { content: state.message }))) : (children)));
75
72
  function handleAction(type) {
76
- return function () {
77
- dispatch({ type: type });
73
+ return () => {
74
+ dispatch({ type });
78
75
  onRequestClose && onRequestClose();
79
76
  };
80
77
  }
81
78
  function handleKeyboardShortcut(event) {
82
- var metaKey = event.metaKey, ctrlKey = event.ctrlKey, key = event.key, target = event.target;
79
+ const { metaKey, ctrlKey, key, target } = event;
83
80
  if (!open)
84
81
  return;
85
- var shouldTriggerShortcut = target instanceof HTMLButtonElement ? metaKey || ctrlKey : true;
82
+ const shouldTriggerShortcut = target instanceof HTMLButtonElement ? metaKey || ctrlKey : true;
86
83
  if (!shouldTriggerShortcut)
87
84
  return;
88
85
  event.preventDefault();
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var Content = require('../Content-18de5fbb.js');
5
+ var Content = require('../Content-05df8f7f.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('../style-inject.es-dcee06b6.js');
@@ -17,9 +17,8 @@ var css = "._1TB2WRsjEoAUFq0FMfwdQ3 {\n padding: 0;\n padding: 0;\n padding:
17
17
  var styles = {"padded":"_1TB2WRsjEoAUFq0FMfwdQ3"};
18
18
  styleInject_es.styleInject(css);
19
19
 
20
- function Content(_a) {
21
- var children = _a.children, _b = _a.spacing, spacing = _b === void 0 ? "base" : _b;
22
- var className = classnames__default["default"](styles.padded, spacings[spacing]);
20
+ function Content({ children, spacing = "base" }) {
21
+ const className = classnames__default["default"](styles.padded, spacings[spacing]);
23
22
  return React__default["default"].createElement("div", { className: className }, children);
24
23
  }
25
24
 
@@ -4,7 +4,7 @@ import { CivilDate } from "@std-proposal/temporal";
4
4
  * Options for deciding how much information is shown to the user
5
5
  * days, hours, minutes, seconds
6
6
  */
7
- declare type GranularityOptions = "dhms" | "hms" | "ms" | "s" | "dhm" | "dh" | "d";
7
+ type GranularityOptions = "dhms" | "hms" | "ms" | "s" | "dhm" | "dh" | "d";
8
8
  interface CountdownProps {
9
9
  /**
10
10
  * The date that is being counted down to
@@ -1,3 +1,3 @@
1
- declare type TimeUnitOptions = "day" | "hour" | "minute" | "second";
1
+ type TimeUnitOptions = "day" | "hour" | "minute" | "second";
2
2
  export declare function computeTimeUnit(remainder: string, unit: TimeUnitOptions): string;
3
3
  export {};
@@ -2,7 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../tslib.es6-5b50eb8e.js');
6
5
  var React = require('react');
7
6
  var temporal = require('@std-proposal/temporal');
8
7
  var ReactCountdown = require('react-countdown');
@@ -13,13 +12,12 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
12
  var ReactCountdown__default = /*#__PURE__*/_interopDefaultLegacy(ReactCountdown);
14
13
 
15
14
  function computeTimeUnit(remainder, unit) {
16
- return parseInt(remainder, 10) !== 1 ? unit + "s" : unit;
15
+ return parseInt(remainder, 10) !== 1 ? `${unit}s` : unit;
17
16
  }
18
17
 
19
- function Countdown(_a) {
20
- var inputDate = _a.date, onComplete = _a.onComplete, showUnits = _a.showUnits, _b = _a.granularity, granularity = _b === void 0 ? "dhms" : _b;
21
- var date = React.useMemo(function () {
22
- var initDate;
18
+ function Countdown({ date: inputDate, onComplete, showUnits, granularity = "dhms", }) {
19
+ const date = React.useMemo(() => {
20
+ let initDate;
23
21
  if (inputDate instanceof temporal.CivilDate) {
24
22
  initDate = new Date(inputDate.year, inputDate.month - 1, inputDate.day);
25
23
  }
@@ -28,17 +26,16 @@ function Countdown(_a) {
28
26
  }
29
27
  return initDate;
30
28
  }, [inputDate]);
31
- return (React__default["default"].createElement(ReactCountdown__default["default"], { date: date, zeroPadTime: 2, renderer: function (props) { return (React__default["default"].createElement(RenderedCountdown, tslib_es6.__assign({}, props, { granularity: granularity, showUnits: showUnits }))); }, onComplete: onComplete }));
29
+ return (React__default["default"].createElement(ReactCountdown__default["default"], { date: date, zeroPadTime: 2, renderer: (props) => (React__default["default"].createElement(RenderedCountdown, Object.assign({}, props, { granularity: granularity, showUnits: showUnits }))), onComplete: onComplete }));
32
30
  }
33
- function RenderedCountdown(_a) {
34
- var formatted = _a.formatted, _b = _a.granularity, granularity = _b === void 0 ? "dhms" : _b, showUnits = _a.showUnits;
35
- var days = formatted.days, hours = formatted.hours, minutes = formatted.minutes, seconds = formatted.seconds;
31
+ function RenderedCountdown({ formatted, granularity = "dhms", showUnits, }) {
32
+ const { days, hours, minutes, seconds } = formatted;
36
33
  return React__default["default"].createElement(React__default["default"].Fragment, null, buildTime());
37
34
  function buildTime() {
38
- var totalHours = 24 * Number(days) + Number(hours);
39
- var totalMinutes = 60 * totalHours + Number(minutes);
40
- var totalSeconds = 60 * totalMinutes + Number(seconds);
41
- var times = {
35
+ const totalHours = 24 * Number(days) + Number(hours);
36
+ const totalMinutes = 60 * totalHours + Number(minutes);
37
+ const totalSeconds = 60 * totalMinutes + Number(seconds);
38
+ const times = {
42
39
  d: { total: days, remainder: days, unit: computeTimeUnit(days, "day") },
43
40
  h: {
44
41
  total: totalHours,
@@ -60,13 +57,13 @@ function RenderedCountdown(_a) {
60
57
  }
61
58
  }
62
59
  function timeFormatter(times, granularity, showUnits) {
63
- var substr = "";
64
- granularity.split("").forEach(function (unit, i) {
60
+ let substr = "";
61
+ granularity.split("").forEach((unit, i) => {
65
62
  if (i == 0) {
66
- substr += "" + times[unit].total + (showUnits ? " " + times[unit].unit : "");
63
+ substr += `${times[unit].total}${showUnits ? ` ${times[unit].unit}` : ""}`;
67
64
  }
68
65
  else {
69
- substr += " : " + times[unit].remainder + (showUnits ? " " + times[unit].unit : "");
66
+ substr += ` : ${times[unit].remainder}${showUnits ? ` ${times[unit].unit}` : ""}`;
70
67
  }
71
68
  });
72
69
  return substr;
@@ -3,19 +3,18 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var Card = require('../Card-b9f8d6f3.js');
7
- var Content = require('../Content-18de5fbb.js');
8
- var Emphasis = require('../Emphasis-75a3f411.js');
9
- require('../tslib.es6-5b50eb8e.js');
6
+ var Card = require('../Card-edab9c3c.js');
7
+ var Content = require('../Content-05df8f7f.js');
8
+ var Emphasis = require('../Emphasis-23dc2a0a.js');
10
9
  require('classnames');
11
10
  require('../style-inject.es-dcee06b6.js');
12
- require('../Heading-a9a66964.js');
13
- require('../Typography-fbe0ed6e.js');
14
- require('../Button-cd30df0f.js');
11
+ require('../Heading-7b203f7f.js');
12
+ require('../Typography-9262511f.js');
13
+ require('../Button-16e043ec.js');
15
14
  require('react-router-dom');
16
- require('../Icon-d5ad1a6d.js');
15
+ require('../Icon-405a216c.js');
17
16
  require('@jobber/design');
18
- require('../Menu-826cfb89.js');
17
+ require('../Menu-d6a7d17b.js');
19
18
  require('uuid');
20
19
  require('framer-motion');
21
20
  require('@jobber/hooks');
@@ -24,8 +23,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
24
23
 
25
24
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
26
25
 
27
- function DataDump(_a) {
28
- var _b = _a.label, label = _b === void 0 ? "Raw Data" : _b, _c = _a.defaultOpen, defaultOpen = _c === void 0 ? false : _c, data = _a.data;
26
+ function DataDump({ label = "Raw Data", defaultOpen = false, data, }) {
29
27
  return (React__default["default"].createElement(Card.Card, { accent: "yellow" },
30
28
  React__default["default"].createElement(Content.Content, null,
31
29
  React__default["default"].createElement("details", { open: defaultOpen },
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { Table } from "@tanstack/react-table";
3
- export declare type ViewType = "desktop" | "handheld";
3
+ export type ViewType = "desktop" | "handheld";
4
4
  export interface FooterProps<T> {
5
5
  table: Table<T>;
6
6
  viewType?: ViewType;
@@ -1,6 +1,6 @@
1
- import { ColumnDef } from "@tanstack/react-table";
1
+ import { ColumnDef, TableOptions } from "@tanstack/react-table";
2
2
  import { PaginationType, SortingType } from "./types";
3
3
  export declare function createTableSettings<T>(data: T[], columns: ColumnDef<T>[], options?: {
4
4
  pagination?: PaginationType;
5
5
  sorting?: SortingType;
6
- }): any;
6
+ }): TableOptions<T>;