@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.
- package/dist/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/Autocomplete/Option.d.ts +2 -2
- package/dist/Autocomplete/index.js +51 -67
- package/dist/Avatar/Avatar.d.ts +2 -2
- package/dist/Avatar/index.js +2 -2
- package/dist/{Avatar-cfd04e86.js → Avatar-89cfd0a6.js} +14 -18
- package/dist/Banner/Banner.d.ts +1 -1
- package/dist/Banner/index.js +15 -19
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/index.js +3 -4
- package/dist/{Button-cd30df0f.js → Button-16e043ec.js} +21 -24
- package/dist/ButtonDismiss/index.js +4 -5
- package/dist/{ButtonDismiss-a9590195.js → ButtonDismiss-3fb1eaf9.js} +2 -3
- package/dist/Card/Card.d.ts +1 -1
- package/dist/Card/index.js +6 -7
- package/dist/Card/types.d.ts +1 -1
- package/dist/{Card-b9f8d6f3.js → Card-edab9c3c.js} +18 -22
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/index.js +4 -5
- package/dist/{Checkbox-5103d2b9.js → Checkbox-c1efc2f6.js} +10 -12
- package/dist/Chips/ChipsTypes.d.ts +1 -1
- package/dist/Chips/InternalChipDismissible/InternalChipDismissibleTypes.d.ts +1 -1
- package/dist/Chips/InternalChipDismissible/hooks/useInternalChipDismissible.d.ts +1 -1
- package/dist/Chips/InternalChipDismissible/hooks/useInternalChipDismissibleInput.d.ts +3 -3
- package/dist/Chips/InternalChipMultiSelect.d.ts +1 -1
- package/dist/Chips/InternalChipSingleSelect.d.ts +1 -1
- package/dist/Chips/index.js +165 -185
- package/dist/ConfirmationModal/ConfirmationModal.d.ts +1 -1
- package/dist/ConfirmationModal/index.js +11 -12
- package/dist/{ConfirmationModal-e95f46d7.js → ConfirmationModal-6a7beee2.js} +28 -31
- package/dist/Content/index.js +1 -1
- package/dist/{Content-18de5fbb.js → Content-05df8f7f.js} +2 -3
- package/dist/Countdown/Countdown.d.ts +1 -1
- package/dist/Countdown/computeTimeUnit.d.ts +1 -1
- package/dist/Countdown/index.js +15 -18
- package/dist/DataDump/index.js +9 -11
- package/dist/DataTable/Footer.d.ts +1 -1
- package/dist/DataTable/createTableSettings.d.ts +2 -2
- package/dist/DataTable/index.js +74 -106
- package/dist/DataTable/test-utilities/helpers.d.ts +1 -1
- package/dist/DataTable/types.d.ts +2 -2
- package/dist/DatePicker/DatePicker.d.ts +1 -1
- package/dist/DatePicker/index.js +4 -5
- package/dist/{DatePicker-7c67e8d2.js → DatePicker-af21ae91.js} +31 -36
- package/dist/DescriptionList/index.js +5 -10
- package/dist/Disclosure/index.js +8 -10
- package/dist/Divider/index.js +8 -10
- package/dist/Drawer/index.js +10 -14
- package/dist/Emphasis/index.js +2 -3
- package/dist/{Emphasis-75a3f411.js → Emphasis-23dc2a0a.js} +4 -6
- package/dist/FeatureSwitch/index.js +15 -17
- package/dist/Form/index.js +23 -33
- package/dist/FormField/FormFieldTypes.d.ts +2 -2
- package/dist/FormField/index.js +8 -8
- package/dist/{FormField-76068c0b.js → FormField-1e444bb6.js} +68 -76
- package/dist/FormatDate/index.js +2 -3
- package/dist/FormatEmail/index.js +2 -3
- package/dist/FormatFile/index.js +13 -14
- package/dist/{FormatFile-18e8a54a.js → FormatFile-3512f838.js} +33 -40
- package/dist/FormatRelativeDateTime/index.js +5 -6
- package/dist/FormatTime/index.js +6 -7
- package/dist/Gallery/GalleryTypes.d.ts +2 -2
- package/dist/Gallery/index.js +31 -33
- package/dist/Heading/index.js +2 -3
- package/dist/{Heading-a9a66964.js → Heading-7b203f7f.js} +4 -6
- package/dist/Icon/index.js +1 -1
- package/dist/{Icon-d5ad1a6d.js → Icon-405a216c.js} +7 -8
- package/dist/InlineLabel/InlineLabel.d.ts +1 -1
- package/dist/InlineLabel/index.js +4 -6
- package/dist/InputAvatar/index.js +15 -20
- package/dist/InputDate/index.js +15 -15
- package/dist/InputEmail/InputEmail.d.ts +1 -1
- package/dist/InputEmail/index.js +12 -12
- package/dist/InputFile/index.js +6 -6
- package/dist/{InputFile-e108a7f8.js → InputFile-5e0ed2b5.js} +48 -62
- package/dist/InputGroup/index.js +4 -5
- package/dist/InputNumber/index.js +22 -22
- package/dist/InputPassword/index.js +12 -12
- package/dist/InputText/InputText.d.ts +1 -1
- package/dist/InputText/index.js +9 -9
- package/dist/{InputText-523d0e48.js → InputText-12b112a9.js} +23 -24
- package/dist/InputTime/index.js +27 -27
- package/dist/InputValidation/index.js +4 -5
- package/dist/{InputValidation-06a8a7ba.js → InputValidation-97dd0dcf.js} +7 -8
- package/dist/LightBox/index.js +5 -6
- package/dist/{LightBox-1ad62669.js → LightBox-dd1afa97.js} +22 -26
- package/dist/List/index.js +26 -32
- package/dist/Markdown/index.js +6 -7
- package/dist/{Markdown-b53e0308.js → Markdown-be2dcd0c.js} +12 -18
- package/dist/Menu/index.js +4 -5
- package/dist/{Menu-826cfb89.js → Menu-d6a7d17b.js} +31 -36
- package/dist/Modal/index.js +6 -7
- package/dist/{Modal-cc3bd7bf.js → Modal-757e83fd.js} +13 -17
- package/dist/MultiSelect/index.js +53 -60
- package/dist/MultiSelect/types.d.ts +1 -1
- package/dist/{Option-fdf21181.js → Option-13150f4a.js} +3 -5
- package/dist/Page/Page.d.ts +1 -1
- package/dist/Page/index.js +21 -24
- package/dist/Popover/index.js +11 -13
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-e9a49129.js → ProgressBar-f028b159.js} +3 -4
- package/dist/RadioGroup/RadioOption.d.ts +2 -2
- package/dist/RadioGroup/index.js +9 -13
- package/dist/RecurringSelect/types.d.ts +2 -2
- package/dist/Select/Select.d.ts +1 -1
- package/dist/Select/index.js +9 -9
- package/dist/Spinner/index.js +1 -1
- package/dist/{Spinner-e4e9c8eb.js → Spinner-ae4c8a85.js} +5 -7
- package/dist/StatusLabel/StatusLabel.d.ts +1 -1
- package/dist/StatusLabel/index.js +6 -9
- package/dist/Switch/index.js +2 -3
- package/dist/{Switch-f03b70fc.js → Switch-7ac32f7b.js} +12 -16
- package/dist/Table/index.js +9 -17
- package/dist/Tabs/index.js +28 -34
- package/dist/Text/index.js +2 -3
- package/dist/{Text-e012fb46.js → Text-7ce00adb.js} +4 -5
- package/dist/Toast/Toast.d.ts +2 -2
- package/dist/Toast/index.js +42 -40
- package/dist/Tooltip/index.js +3 -4
- package/dist/Tooltip/useTooltipPositioning.d.ts +1 -1
- package/dist/{Tooltip-041feb00.js → Tooltip-1090a43d.js} +25 -28
- package/dist/Typography/Typography.d.ts +1 -1
- package/dist/Typography/index.js +1 -2
- package/dist/{Typography-fbe0ed6e.js → Typography-9262511f.js} +5 -7
- package/dist/tslib.es6-efe27175.js +38 -0
- package/package.json +8 -8
- 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
|
|
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-
|
|
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-
|
|
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-
|
|
15
|
-
require('../Typography-
|
|
16
|
-
require('../Button-
|
|
13
|
+
require('../Heading-7b203f7f.js');
|
|
14
|
+
require('../Typography-9262511f.js');
|
|
15
|
+
require('../Button-16e043ec.js');
|
|
17
16
|
require('react-router-dom');
|
|
18
|
-
require('../Icon-
|
|
17
|
+
require('../Icon-405a216c.js');
|
|
19
18
|
require('@jobber/design');
|
|
20
|
-
require('../ButtonDismiss-
|
|
21
|
-
require('../Content-
|
|
22
|
-
require('../Markdown-
|
|
19
|
+
require('../ButtonDismiss-3fb1eaf9.js');
|
|
20
|
+
require('../Content-05df8f7f.js');
|
|
21
|
+
require('../Markdown-be2dcd0c.js');
|
|
23
22
|
require('react-markdown');
|
|
24
|
-
require('../Text-
|
|
25
|
-
require('../Emphasis-
|
|
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-
|
|
7
|
-
var Content = require('./Content-
|
|
8
|
-
var Markdown = require('./Markdown-
|
|
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
|
|
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
|
|
19
|
+
return Object.assign(Object.assign({}, state), { open: false });
|
|
21
20
|
case "cancel":
|
|
22
21
|
state.onCancel && state.onCancel();
|
|
23
|
-
return
|
|
22
|
+
return Object.assign(Object.assign({}, state), { open: false });
|
|
24
23
|
case "reset":
|
|
25
|
-
return
|
|
24
|
+
return Object.assign(Object.assign({}, state), action.state);
|
|
26
25
|
default:
|
|
27
26
|
throw new Error();
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
|
37
|
-
cancelLabel
|
|
38
|
-
onConfirm
|
|
39
|
-
onCancel
|
|
40
|
-
})
|
|
34
|
+
confirmLabel,
|
|
35
|
+
cancelLabel,
|
|
36
|
+
onConfirm,
|
|
37
|
+
onCancel,
|
|
38
|
+
});
|
|
41
39
|
// Expose a `show` method through this component's ref.
|
|
42
|
-
React.useImperativeHandle(ref,
|
|
43
|
-
show:
|
|
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(
|
|
52
|
+
}));
|
|
53
|
+
React.useEffect(() => {
|
|
57
54
|
dispatch({
|
|
58
55
|
type: "reset",
|
|
59
|
-
state:
|
|
60
|
-
cancelLabel
|
|
61
|
-
onConfirm
|
|
62
|
-
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
|
|
77
|
-
dispatch({ type
|
|
73
|
+
return () => {
|
|
74
|
+
dispatch({ type });
|
|
78
75
|
onRequestClose && onRequestClose();
|
|
79
76
|
};
|
|
80
77
|
}
|
|
81
78
|
function handleKeyboardShortcut(event) {
|
|
82
|
-
|
|
79
|
+
const { metaKey, ctrlKey, key, target } = event;
|
|
83
80
|
if (!open)
|
|
84
81
|
return;
|
|
85
|
-
|
|
82
|
+
const shouldTriggerShortcut = target instanceof HTMLButtonElement ? metaKey || ctrlKey : true;
|
|
86
83
|
if (!shouldTriggerShortcut)
|
|
87
84
|
return;
|
|
88
85
|
event.preventDefault();
|
package/dist/Content/index.js
CHANGED
|
@@ -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(
|
|
21
|
-
|
|
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
|
-
|
|
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
|
package/dist/Countdown/index.js
CHANGED
|
@@ -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
|
|
15
|
+
return parseInt(remainder, 10) !== 1 ? `${unit}s` : unit;
|
|
17
16
|
}
|
|
18
17
|
|
|
19
|
-
function Countdown(
|
|
20
|
-
|
|
21
|
-
|
|
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:
|
|
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(
|
|
34
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
64
|
-
granularity.split("").forEach(
|
|
60
|
+
let substr = "";
|
|
61
|
+
granularity.split("").forEach((unit, i) => {
|
|
65
62
|
if (i == 0) {
|
|
66
|
-
substr +=
|
|
63
|
+
substr += `${times[unit].total}${showUnits ? ` ${times[unit].unit}` : ""}`;
|
|
67
64
|
}
|
|
68
65
|
else {
|
|
69
|
-
substr +=
|
|
66
|
+
substr += ` : ${times[unit].remainder}${showUnits ? ` ${times[unit].unit}` : ""}`;
|
|
70
67
|
}
|
|
71
68
|
});
|
|
72
69
|
return substr;
|
package/dist/DataDump/index.js
CHANGED
|
@@ -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-
|
|
7
|
-
var Content = require('../Content-
|
|
8
|
-
var Emphasis = require('../Emphasis-
|
|
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-
|
|
13
|
-
require('../Typography-
|
|
14
|
-
require('../Button-
|
|
11
|
+
require('../Heading-7b203f7f.js');
|
|
12
|
+
require('../Typography-9262511f.js');
|
|
13
|
+
require('../Button-16e043ec.js');
|
|
15
14
|
require('react-router-dom');
|
|
16
|
-
require('../Icon-
|
|
15
|
+
require('../Icon-405a216c.js');
|
|
17
16
|
require('@jobber/design');
|
|
18
|
-
require('../Menu-
|
|
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(
|
|
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
|
-
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
|
-
}):
|
|
6
|
+
}): TableOptions<T>;
|