@jobber/components 2.85.8 → 2.86.1
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/CHANGELOG.md +19 -0
- package/dist/Autocomplete/Autocomplete.d.ts +47 -47
- package/dist/Autocomplete/Menu.d.ts +9 -9
- package/dist/Autocomplete/Option.d.ts +15 -15
- package/dist/Autocomplete/index.d.ts +2 -2
- package/dist/Autocomplete/index.js +215 -211
- package/dist/Avatar/Avatar.d.ts +37 -37
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +7 -74
- package/dist/Avatar/utilities.d.ts +1 -1
- package/dist/Avatar-cfd04e86.js +82 -0
- package/dist/Banner/Banner.d.ts +19 -19
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +67 -65
- package/dist/Button/Button.d.ts +64 -64
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +9 -53
- package/dist/Button-5b2f1636.js +60 -0
- package/dist/ButtonDismiss/ButtonDismiss.d.ts +7 -7
- package/dist/ButtonDismiss/index.d.ts +1 -1
- package/dist/ButtonDismiss/index.js +10 -15
- package/dist/ButtonDismiss-4cde8f7c.js +15 -0
- package/dist/Card/Card.d.ts +31 -31
- package/dist/Card/CardClickable.d.ts +12 -12
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +7 -61
- package/dist/Card-368e01a3.js +68 -0
- package/dist/Checkbox/Checkbox.d.ts +52 -52
- package/dist/Checkbox/index.d.ts +1 -1
- package/dist/Checkbox/index.js +34 -32
- package/dist/Chips/Chip.d.ts +8 -8
- package/dist/Chips/ChipDismissible.d.ts +7 -7
- package/dist/Chips/ChipTypes.d.ts +59 -59
- package/dist/Chips/Chips.d.ts +2 -2
- package/dist/Chips/ChipsTypes.d.ts +82 -82
- package/dist/Chips/InternalChip.d.ts +2 -2
- package/dist/Chips/InternalChipAffix.d.ts +10 -10
- package/dist/Chips/InternalChipButton.d.ts +10 -10
- package/dist/Chips/InternalChipDismissible/InternalChipDismissible.d.ts +2 -2
- package/dist/Chips/InternalChipDismissible/InternalChipDismissibleInput.d.ts +2 -2
- package/dist/Chips/InternalChipDismissible/InternalChipDismissibleTypes.d.ts +13 -13
- package/dist/Chips/InternalChipDismissible/hooks/index.d.ts +5 -5
- package/dist/Chips/InternalChipDismissible/hooks/useInView.d.ts +5 -5
- package/dist/Chips/InternalChipDismissible/hooks/useInternalChipDismissible.d.ts +15 -15
- package/dist/Chips/InternalChipDismissible/hooks/useInternalChipDismissibleInput.d.ts +28 -28
- package/dist/Chips/InternalChipDismissible/hooks/useRepositionMenu.d.ts +16 -16
- package/dist/Chips/InternalChipDismissible/hooks/useScrollToActive.d.ts +2 -2
- package/dist/Chips/InternalChipDismissible/index.d.ts +1 -1
- package/dist/Chips/InternalChipMultiSelect.d.ts +4 -4
- package/dist/Chips/InternalChipSingleSelect.d.ts +4 -4
- package/dist/Chips/index.d.ts +3 -3
- package/dist/Chips/index.js +493 -491
- package/dist/Chips/utils/mdxUtils.d.ts +9 -9
- package/dist/ConfirmationModal/ConfirmationModal.d.ts +62 -62
- package/dist/ConfirmationModal/index.d.ts +1 -1
- package/dist/ConfirmationModal/index.js +20 -109
- package/dist/ConfirmationModal-b7ef110f.js +103 -0
- package/dist/Content/Content.d.ts +13 -13
- package/dist/Content/index.d.ts +1 -1
- package/dist/Content/index.js +5 -19
- package/dist/Content-18de5fbb.js +26 -0
- package/dist/Countdown/Countdown.d.ts +31 -31
- package/dist/Countdown/computeTimeUnit.d.ts +3 -3
- package/dist/Countdown/index.d.ts +1 -1
- package/dist/Countdown/index.js +63 -61
- package/dist/DataDump/DataDump.d.ts +20 -20
- package/dist/DataDump/index.d.ts +1 -1
- package/dist/DataDump/index.js +18 -17
- package/dist/DatePicker/DatePicker.d.ts +50 -50
- package/dist/DatePicker/DatePickerActivator.d.ts +12 -12
- package/dist/DatePicker/DatePickerCustomHeader.d.ts +2 -2
- package/dist/DatePicker/index.d.ts +1 -1
- package/dist/DatePicker/index.js +13 -97
- package/dist/DatePicker/useFocusOnSelectedDate.d.ts +5 -5
- package/dist/DatePicker-ad6f8630.js +103 -0
- package/dist/DescriptionList/DescriptionList.d.ts +10 -10
- package/dist/DescriptionList/index.d.ts +1 -1
- package/dist/DescriptionList/index.js +16 -15
- package/dist/Disclosure/Disclosure.d.ts +20 -20
- package/dist/Disclosure/index.d.ts +1 -1
- package/dist/Disclosure/index.js +32 -31
- package/dist/Divider/Divider.d.ts +16 -16
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Divider/index.js +19 -17
- package/dist/Drawer/Drawer.d.ts +13 -13
- package/dist/Drawer/DrawerGrid.d.ts +6 -6
- package/dist/Drawer/index.d.ts +2 -2
- package/dist/Drawer/index.js +39 -37
- package/dist/Emphasis/Emphasis.d.ts +11 -11
- package/dist/Emphasis/index.d.ts +1 -1
- package/dist/Emphasis/index.js +7 -17
- package/dist/Emphasis-fd845639.js +21 -0
- package/dist/FeatureSwitch/FeatureSwitch.d.ts +51 -51
- package/dist/FeatureSwitch/index.d.ts +1 -1
- package/dist/FeatureSwitch/index.js +57 -55
- package/dist/Form/Form.d.ts +18 -18
- package/dist/Form/index.d.ts +1 -1
- package/dist/Form/index.js +58 -57
- package/dist/FormField/FormField.d.ts +2 -2
- package/dist/FormField/FormFieldAffix.d.ts +13 -13
- package/dist/FormField/FormFieldDescription.d.ts +6 -6
- package/dist/FormField/FormFieldPostFix.d.ts +5 -5
- package/dist/FormField/FormFieldTypes.d.ts +160 -160
- package/dist/FormField/FormFieldWrapper.d.ts +9 -9
- package/dist/FormField/index.d.ts +2 -2
- package/dist/FormField/index.js +15 -208
- package/dist/FormField-a92c7bac.js +213 -0
- package/dist/FormatDate/FormatDate.d.ts +12 -12
- package/dist/FormatDate/index.d.ts +1 -1
- package/dist/FormatDate/index.js +24 -23
- package/dist/FormatEmail/FormatEmail.d.ts +8 -8
- package/dist/FormatEmail/index.d.ts +1 -1
- package/dist/FormatEmail/index.js +12 -10
- package/dist/FormatFile/FormatFile.d.ts +30 -30
- package/dist/FormatFile/FormatFileDeleteButton.d.ts +6 -6
- package/dist/FormatFile/InternalThumbnail.d.ts +9 -9
- package/dist/FormatFile/index.d.ts +1 -1
- package/dist/FormatFile/index.js +21 -112
- package/dist/FormatFile-5391d4cf.js +112 -0
- package/dist/FormatRelativeDateTime/FormatRelativeDateTime.d.ts +11 -11
- package/dist/FormatRelativeDateTime/index.d.ts +1 -1
- package/dist/FormatRelativeDateTime/index.js +64 -63
- package/dist/FormatTime/FormatTime.d.ts +15 -15
- package/dist/FormatTime/index.d.ts +1 -1
- package/dist/FormatTime/index.js +28 -27
- package/dist/Gallery/Gallery.d.ts +2 -2
- package/dist/Gallery/GalleryTypes.d.ts +31 -31
- package/dist/Gallery/index.d.ts +1 -1
- package/dist/Gallery/index.js +82 -80
- package/dist/Heading/Heading.d.ts +14 -14
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +7 -53
- package/dist/Heading-56750113.js +57 -0
- package/dist/Icon/Icon.d.ts +22 -22
- package/dist/Icon/index.d.ts +1 -1
- package/dist/Icon/index.js +4 -35
- package/dist/Icon-d5ad1a6d.js +41 -0
- package/dist/InlineLabel/InlineLabel.d.ts +17 -17
- package/dist/InlineLabel/index.d.ts +1 -1
- package/dist/InlineLabel/index.js +20 -18
- package/dist/InputAvatar/InputAvatar.d.ts +22 -22
- package/dist/InputAvatar/index.d.ts +1 -1
- package/dist/InputAvatar/index.js +57 -56
- package/dist/InputDate/InputDate.d.ts +19 -19
- package/dist/InputDate/index.d.ts +1 -1
- package/dist/InputDate/index.js +34 -33
- package/dist/InputEmail/InputEmail.d.ts +5 -5
- package/dist/InputEmail/index.d.ts +1 -1
- package/dist/InputEmail/index.js +29 -28
- package/dist/InputFile/InputFile.d.ts +121 -121
- package/dist/InputFile/index.d.ts +1 -1
- package/dist/InputFile/index.js +15 -168
- package/dist/InputFile-b5cf90c3.js +174 -0
- package/dist/InputGroup/InputGroup.d.ts +11 -11
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +24 -22
- package/dist/InputNumber/InputNumber.d.ts +11 -11
- package/dist/InputNumber/index.d.ts +1 -1
- package/dist/InputNumber/index.js +52 -51
- package/dist/InputPassword/InputPassword.d.ts +12 -12
- package/dist/InputPassword/index.d.ts +1 -1
- package/dist/InputPassword/index.js +28 -27
- package/dist/InputText/InputText.d.ts +29 -29
- package/dist/InputText/index.d.ts +1 -1
- package/dist/InputText/index.js +15 -95
- package/dist/InputText-cb3be15c.js +91 -0
- package/dist/InputTime/InputTime.d.ts +2 -2
- package/dist/InputTime/InputTimeProps.d.ts +18 -18
- package/dist/InputTime/InputTimeSafari.d.ts +2 -2
- package/dist/InputTime/civilTimeConversions.d.ts +3 -3
- package/dist/InputTime/index.d.ts +1 -1
- package/dist/InputTime/index.js +402 -257
- package/dist/InputValidation/InputValidation.d.ts +8 -8
- package/dist/InputValidation/index.d.ts +1 -1
- package/dist/InputValidation/index.js +8 -24
- package/dist/InputValidation-24d3621a.js +28 -0
- package/dist/LightBox/LightBox.d.ts +37 -37
- package/dist/LightBox/index.d.ts +1 -1
- package/dist/LightBox/index.js +6 -34
- package/dist/LightBox-b893b656.js +42 -0
- package/dist/List/List.d.ts +11 -11
- package/dist/List/ListItem.d.ts +54 -54
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +76 -74
- package/dist/Markdown/Markdown.d.ts +17 -17
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +12 -64
- package/dist/Markdown-69986c49.js +68 -0
- package/dist/Menu/Menu.d.ts +46 -46
- package/dist/Menu/index.d.ts +1 -1
- package/dist/Menu/index.js +13 -128
- package/dist/Menu-6a392af6.js +134 -0
- package/dist/Modal/Modal.d.ts +22 -22
- package/dist/Modal/index.d.ts +1 -1
- package/dist/Modal/index.js +14 -127
- package/dist/Modal/useFocusTrap.d.ts +10 -10
- package/dist/Modal-aaaaf2df.js +132 -0
- package/dist/Page/Page.d.ts +59 -59
- package/dist/Page/index.d.ts +1 -1
- package/dist/Page/index.js +63 -61
- package/dist/Popover/Popover.d.ts +26 -26
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +49 -48
- package/dist/ProgressBar/ProgressBar.d.ts +18 -18
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +5 -22
- package/dist/ProgressBar-e9a49129.js +29 -0
- package/dist/RadioGroup/RadioGroup.d.ts +27 -27
- package/dist/RadioGroup/RadioOption.d.ts +34 -34
- package/dist/RadioGroup/index.d.ts +2 -2
- package/dist/RadioGroup/index.js +38 -37
- package/dist/RecurringSelect/CurrentRecurrenceComponent.d.ts +8 -8
- package/dist/RecurringSelect/RecurringSelect.d.ts +8 -8
- package/dist/RecurringSelect/components/DayOfMonthSelect.d.ts +8 -8
- package/dist/RecurringSelect/components/MonthlyDayOfWeekSelect.d.ts +8 -8
- package/dist/RecurringSelect/components/MonthlySelect.d.ts +8 -8
- package/dist/RecurringSelect/components/WeeklySelect.d.ts +8 -8
- package/dist/RecurringSelect/components/index.d.ts +4 -4
- package/dist/RecurringSelect/index.d.ts +2 -2
- package/dist/RecurringSelect/types.d.ts +65 -65
- package/dist/Select/Option.d.ts +17 -17
- package/dist/Select/Select.d.ts +10 -10
- package/dist/Select/index.d.ts +2 -2
- package/dist/Select/index.js +20 -19
- package/dist/Spinner/Spinner.d.ts +15 -15
- package/dist/Spinner/index.d.ts +1 -1
- package/dist/Spinner/index.js +5 -19
- package/dist/Spinner-18d3dee6.js +26 -0
- package/dist/StatusLabel/StatusLabel.d.ts +25 -25
- package/dist/StatusLabel/index.d.ts +1 -1
- package/dist/StatusLabel/index.js +21 -19
- package/dist/Switch/Switch.d.ts +14 -14
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +7 -53
- package/dist/Switch-d2bec677.js +60 -0
- package/dist/Table/Body.d.ts +6 -6
- package/dist/Table/Cells/Cell.d.ts +7 -7
- package/dist/Table/Cells/CellCurrency.d.ts +8 -8
- package/dist/Table/Cells/CellNumeric.d.ts +4 -4
- package/dist/Table/Footer.d.ts +6 -6
- package/dist/Table/Header.d.ts +6 -6
- package/dist/Table/Row.d.ts +6 -6
- package/dist/Table/Table.d.ts +6 -6
- package/dist/Table/index.d.ts +8 -8
- package/dist/Table/index.js +41 -39
- package/dist/Tabs/Tabs.d.ts +19 -19
- package/dist/Tabs/index.d.ts +1 -1
- package/dist/Tabs/index.js +69 -67
- package/dist/Text/Text.d.ts +9 -9
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +7 -29
- package/dist/Text-9bc093e9.js +32 -0
- package/dist/Toast/Toast.d.ts +17 -17
- package/dist/Toast/index.d.ts +1 -1
- package/dist/Toast/index.js +93 -93
- package/dist/Toast/showToast.d.ts +2 -2
- package/dist/Tooltip/Tooltip.d.ts +10 -10
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +11 -110
- package/dist/Tooltip/useTooltipPositioning.d.ts +18 -18
- package/dist/Tooltip-4396164d.js +116 -0
- package/dist/Typography/Typography.d.ts +38 -38
- package/dist/Typography/index.d.ts +1 -1
- package/dist/Typography/index.js +6 -57
- package/dist/Typography-7e542a72.js +64 -0
- package/dist/{chunk-17e02351.js → style-inject.es-dcee06b6.js} +0 -0
- package/dist/{chunk-b67af3cb.js → tslib.es6-5b50eb8e.js} +0 -0
- package/package.json +6 -8
- package/rollup.config.js +28 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare function useFakeOptionQuery(): {
|
|
2
|
-
handleLoadMore: () => void;
|
|
3
|
-
handleSearch: (searchValue: string) => void;
|
|
4
|
-
handleSelect: (value: string[]) => void;
|
|
5
|
-
handleCustomAdd: (value: string) => void;
|
|
6
|
-
selected: string[];
|
|
7
|
-
options: string[];
|
|
8
|
-
loading: boolean;
|
|
9
|
-
};
|
|
1
|
+
export declare function useFakeOptionQuery(): {
|
|
2
|
+
handleLoadMore: () => void;
|
|
3
|
+
handleSearch: (searchValue: string) => void;
|
|
4
|
+
handleSelect: (value: string[]) => void;
|
|
5
|
+
handleCustomAdd: (value: string) => void;
|
|
6
|
+
selected: string[];
|
|
7
|
+
options: string[];
|
|
8
|
+
loading: boolean;
|
|
9
|
+
};
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import React, { Ref } from "react";
|
|
2
|
-
interface DisplayAction {
|
|
3
|
-
type: "display";
|
|
4
|
-
title?: string;
|
|
5
|
-
message: string;
|
|
6
|
-
confirmLabel: string;
|
|
7
|
-
cancelLabel?: string;
|
|
8
|
-
onConfirm(): void;
|
|
9
|
-
onCancel?(): void;
|
|
10
|
-
}
|
|
11
|
-
export interface ConfirmationModalRef {
|
|
12
|
-
show(props: Omit<DisplayAction, "type">): void;
|
|
13
|
-
}
|
|
14
|
-
interface BaseConfirmationModalProps {
|
|
15
|
-
/**
|
|
16
|
-
* Title for the modal.
|
|
17
|
-
*/
|
|
18
|
-
readonly title?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Text or rich text content for the body of the modal.
|
|
21
|
-
*/
|
|
22
|
-
readonly message?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Controls if the modal is open or not.
|
|
25
|
-
*/
|
|
26
|
-
readonly open?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Label for the confirm button.
|
|
29
|
-
*/
|
|
30
|
-
readonly confirmLabel?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Label for the cancel button.
|
|
33
|
-
*/
|
|
34
|
-
readonly cancelLabel?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Type (Work or destructive) for confirm button.
|
|
37
|
-
*/
|
|
38
|
-
readonly variation?: "work" | "destructive";
|
|
39
|
-
/**
|
|
40
|
-
* Callback for when the confirm button is pressed.
|
|
41
|
-
*/
|
|
42
|
-
onConfirm?(): void;
|
|
43
|
-
/**
|
|
44
|
-
* Callback for when the cancel button is pressed.
|
|
45
|
-
*/
|
|
46
|
-
onCancel?(): void;
|
|
47
|
-
/**
|
|
48
|
-
* Callback for whenever a user's action should close the modal.
|
|
49
|
-
*/
|
|
50
|
-
onRequestClose?(): void;
|
|
51
|
-
}
|
|
52
|
-
interface SimpleConfirmationModalProps extends BaseConfirmationModalProps {
|
|
53
|
-
readonly message: string;
|
|
54
|
-
readonly open: boolean;
|
|
55
|
-
readonly confirmLabel: string;
|
|
56
|
-
}
|
|
57
|
-
interface ComplexConfirmationModalProps extends BaseConfirmationModalProps {
|
|
58
|
-
readonly ref: Ref<ConfirmationModalRef>;
|
|
59
|
-
readonly open?: undefined;
|
|
60
|
-
}
|
|
61
|
-
export declare const ConfirmationModal: React.ForwardRefExoticComponent<(SimpleConfirmationModalProps & React.RefAttributes<ConfirmationModalRef>) | (ComplexConfirmationModalProps & React.RefAttributes<ConfirmationModalRef>)>;
|
|
62
|
-
export {};
|
|
1
|
+
import React, { Ref } from "react";
|
|
2
|
+
interface DisplayAction {
|
|
3
|
+
type: "display";
|
|
4
|
+
title?: string;
|
|
5
|
+
message: string;
|
|
6
|
+
confirmLabel: string;
|
|
7
|
+
cancelLabel?: string;
|
|
8
|
+
onConfirm(): void;
|
|
9
|
+
onCancel?(): void;
|
|
10
|
+
}
|
|
11
|
+
export interface ConfirmationModalRef {
|
|
12
|
+
show(props: Omit<DisplayAction, "type">): void;
|
|
13
|
+
}
|
|
14
|
+
interface BaseConfirmationModalProps {
|
|
15
|
+
/**
|
|
16
|
+
* Title for the modal.
|
|
17
|
+
*/
|
|
18
|
+
readonly title?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Text or rich text content for the body of the modal.
|
|
21
|
+
*/
|
|
22
|
+
readonly message?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Controls if the modal is open or not.
|
|
25
|
+
*/
|
|
26
|
+
readonly open?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Label for the confirm button.
|
|
29
|
+
*/
|
|
30
|
+
readonly confirmLabel?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Label for the cancel button.
|
|
33
|
+
*/
|
|
34
|
+
readonly cancelLabel?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Type (Work or destructive) for confirm button.
|
|
37
|
+
*/
|
|
38
|
+
readonly variation?: "work" | "destructive";
|
|
39
|
+
/**
|
|
40
|
+
* Callback for when the confirm button is pressed.
|
|
41
|
+
*/
|
|
42
|
+
onConfirm?(): void;
|
|
43
|
+
/**
|
|
44
|
+
* Callback for when the cancel button is pressed.
|
|
45
|
+
*/
|
|
46
|
+
onCancel?(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Callback for whenever a user's action should close the modal.
|
|
49
|
+
*/
|
|
50
|
+
onRequestClose?(): void;
|
|
51
|
+
}
|
|
52
|
+
interface SimpleConfirmationModalProps extends BaseConfirmationModalProps {
|
|
53
|
+
readonly message: string;
|
|
54
|
+
readonly open: boolean;
|
|
55
|
+
readonly confirmLabel: string;
|
|
56
|
+
}
|
|
57
|
+
interface ComplexConfirmationModalProps extends BaseConfirmationModalProps {
|
|
58
|
+
readonly ref: Ref<ConfirmationModalRef>;
|
|
59
|
+
readonly open?: undefined;
|
|
60
|
+
}
|
|
61
|
+
export declare const ConfirmationModal: React.ForwardRefExoticComponent<(SimpleConfirmationModalProps & React.RefAttributes<ConfirmationModalRef>) | (ComplexConfirmationModalProps & React.RefAttributes<ConfirmationModalRef>)>;
|
|
62
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ConfirmationModal, ConfirmationModalRef } from "./ConfirmationModal";
|
|
1
|
+
export { ConfirmationModal, ConfirmationModalRef } from "./ConfirmationModal";
|
|
@@ -2,117 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
require('
|
|
5
|
+
var ConfirmationModal = require('../ConfirmationModal-b7ef110f.js');
|
|
6
|
+
require('../tslib.es6-5b50eb8e.js');
|
|
7
|
+
require('react');
|
|
8
|
+
require('@jobber/hooks');
|
|
9
|
+
require('../Modal-aaaaf2df.js');
|
|
10
|
+
require('react-dom');
|
|
11
11
|
require('classnames');
|
|
12
|
-
require('../Typography/index.js');
|
|
13
|
-
require('../Text/index.js');
|
|
14
|
-
require('@jobber/design');
|
|
15
|
-
require('../Icon/index.js');
|
|
16
|
-
require('../Heading/index.js');
|
|
17
|
-
require('react-router-dom');
|
|
18
|
-
require('../Button/index.js');
|
|
19
12
|
require('framer-motion');
|
|
20
|
-
|
|
21
|
-
require('../
|
|
22
|
-
require('
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
require('../style-inject.es-dcee06b6.js');
|
|
14
|
+
require('../Typography-7e542a72.js');
|
|
15
|
+
require('../Button-5b2f1636.js');
|
|
16
|
+
require('react-router-dom');
|
|
17
|
+
require('../Icon-d5ad1a6d.js');
|
|
18
|
+
require('@jobber/design');
|
|
19
|
+
require('../ButtonDismiss-4cde8f7c.js');
|
|
20
|
+
require('../Content-18de5fbb.js');
|
|
21
|
+
require('../Markdown-69986c49.js');
|
|
25
22
|
require('react-markdown');
|
|
26
|
-
require('../
|
|
27
|
-
|
|
23
|
+
require('../Text-9bc093e9.js');
|
|
24
|
+
require('../Emphasis-fd845639.js');
|
|
25
|
+
require('../Heading-56750113.js');
|
|
26
|
+
|
|
28
27
|
|
|
29
|
-
function confirmationModalReducer(state, action) {
|
|
30
|
-
switch (action.type) {
|
|
31
|
-
case "display":
|
|
32
|
-
return __chunk_1.__assign(__chunk_1.__assign({}, state), { title: action.title, message: action.message, open: true, confirmLabel: action.confirmLabel, cancelLabel: action.cancelLabel || "Cancel", onConfirm: action.onConfirm, onCancel: action.onCancel });
|
|
33
|
-
case "confirm":
|
|
34
|
-
state.onConfirm && state.onConfirm();
|
|
35
|
-
return __chunk_1.__assign(__chunk_1.__assign({}, state), { open: false });
|
|
36
|
-
case "cancel":
|
|
37
|
-
state.onCancel && state.onCancel();
|
|
38
|
-
return __chunk_1.__assign(__chunk_1.__assign({}, state), { open: false });
|
|
39
|
-
case "reset":
|
|
40
|
-
return __chunk_1.__assign(__chunk_1.__assign({}, state), action.state);
|
|
41
|
-
default:
|
|
42
|
-
throw new Error();
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
var ConfirmationModal = React.forwardRef(function ConfirmationModalInternal(_a, ref) {
|
|
46
|
-
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;
|
|
47
|
-
var _f = __chunk_1.__read(React.useReducer(confirmationModalReducer, {
|
|
48
|
-
title: title,
|
|
49
|
-
message: message,
|
|
50
|
-
open: false,
|
|
51
|
-
confirmLabel: confirmLabel,
|
|
52
|
-
cancelLabel: cancelLabel,
|
|
53
|
-
onConfirm: onConfirm,
|
|
54
|
-
onCancel: onCancel,
|
|
55
|
-
}), 2), state = _f[0], dispatch = _f[1];
|
|
56
|
-
// Expose a `show` method through this component's ref.
|
|
57
|
-
React.useImperativeHandle(ref, function () { return ({
|
|
58
|
-
show: function (_a) {
|
|
59
|
-
var newTitle = _a.title, newMessage = _a.message, newConfirmLabel = _a.confirmLabel, newCancelLabel = _a.cancelLabel, newOnConfirm = _a.onConfirm, newOnCancel = _a.onCancel;
|
|
60
|
-
dispatch({
|
|
61
|
-
type: "display",
|
|
62
|
-
title: newTitle,
|
|
63
|
-
message: newMessage,
|
|
64
|
-
confirmLabel: newConfirmLabel,
|
|
65
|
-
cancelLabel: newCancelLabel,
|
|
66
|
-
onConfirm: newOnConfirm,
|
|
67
|
-
onCancel: newOnCancel,
|
|
68
|
-
});
|
|
69
|
-
},
|
|
70
|
-
}); });
|
|
71
|
-
React.useEffect(function () {
|
|
72
|
-
dispatch({
|
|
73
|
-
type: "reset",
|
|
74
|
-
state: __chunk_1.__assign(__chunk_1.__assign({}, state), { title: title, message: message, confirmLabel: confirmLabel,
|
|
75
|
-
cancelLabel: cancelLabel,
|
|
76
|
-
onConfirm: onConfirm,
|
|
77
|
-
onCancel: onCancel }),
|
|
78
|
-
});
|
|
79
|
-
}, [title, message, confirmLabel, cancelLabel, onConfirm, onCancel]);
|
|
80
|
-
hooks.useOnKeyDown(handleKeyboardShortcut, ["Escape", "Enter"]);
|
|
81
|
-
return (React__default.createElement(index$4.Modal, { title: state.title, open: open || state.open, size: "small", dismissible: false, primaryAction: {
|
|
82
|
-
label: state.confirmLabel,
|
|
83
|
-
onClick: handleAction("confirm"),
|
|
84
|
-
variation: variation === "destructive" ? "destructive" : "work",
|
|
85
|
-
}, secondaryAction: {
|
|
86
|
-
label: state.cancelLabel,
|
|
87
|
-
onClick: handleAction("cancel"),
|
|
88
|
-
} },
|
|
89
|
-
React__default.createElement(index$2$1.Content, null, state.message && React__default.createElement(index$6.Markdown, { content: state.message }))));
|
|
90
|
-
function handleAction(type) {
|
|
91
|
-
return function () {
|
|
92
|
-
dispatch({ type: type });
|
|
93
|
-
onRequestClose && onRequestClose();
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
function handleKeyboardShortcut(event) {
|
|
97
|
-
var metaKey = event.metaKey, ctrlKey = event.ctrlKey, key = event.key, target = event.target;
|
|
98
|
-
if (!open)
|
|
99
|
-
return;
|
|
100
|
-
var shouldTriggerShortcut = target instanceof HTMLButtonElement ? metaKey || ctrlKey : true;
|
|
101
|
-
if (!shouldTriggerShortcut)
|
|
102
|
-
return;
|
|
103
|
-
event.preventDefault();
|
|
104
|
-
event.stopPropagation();
|
|
105
|
-
switch (key) {
|
|
106
|
-
case "Enter": {
|
|
107
|
-
handleAction("confirm")();
|
|
108
|
-
break;
|
|
109
|
-
}
|
|
110
|
-
case "Escape": {
|
|
111
|
-
handleAction("cancel")();
|
|
112
|
-
break;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
28
|
|
|
118
|
-
exports.ConfirmationModal = ConfirmationModal;
|
|
29
|
+
exports.ConfirmationModal = ConfirmationModal.ConfirmationModal;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-5b50eb8e.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var hooks = require('@jobber/hooks');
|
|
6
|
+
var Modal = require('./Modal-aaaaf2df.js');
|
|
7
|
+
var Content = require('./Content-18de5fbb.js');
|
|
8
|
+
var Markdown = require('./Markdown-69986c49.js');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
+
|
|
14
|
+
function confirmationModalReducer(state, action) {
|
|
15
|
+
switch (action.type) {
|
|
16
|
+
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 });
|
|
18
|
+
case "confirm":
|
|
19
|
+
state.onConfirm && state.onConfirm();
|
|
20
|
+
return tslib_es6.__assign(tslib_es6.__assign({}, state), { open: false });
|
|
21
|
+
case "cancel":
|
|
22
|
+
state.onCancel && state.onCancel();
|
|
23
|
+
return tslib_es6.__assign(tslib_es6.__assign({}, state), { open: false });
|
|
24
|
+
case "reset":
|
|
25
|
+
return tslib_es6.__assign(tslib_es6.__assign({}, state), action.state);
|
|
26
|
+
default:
|
|
27
|
+
throw new Error();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
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;
|
|
32
|
+
var _f = tslib_es6.__read(React.useReducer(confirmationModalReducer, {
|
|
33
|
+
title: title,
|
|
34
|
+
message: message,
|
|
35
|
+
open: false,
|
|
36
|
+
confirmLabel: confirmLabel,
|
|
37
|
+
cancelLabel: cancelLabel,
|
|
38
|
+
onConfirm: onConfirm,
|
|
39
|
+
onCancel: onCancel,
|
|
40
|
+
}), 2), state = _f[0], dispatch = _f[1];
|
|
41
|
+
// 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;
|
|
45
|
+
dispatch({
|
|
46
|
+
type: "display",
|
|
47
|
+
title: newTitle,
|
|
48
|
+
message: newMessage,
|
|
49
|
+
confirmLabel: newConfirmLabel,
|
|
50
|
+
cancelLabel: newCancelLabel,
|
|
51
|
+
onConfirm: newOnConfirm,
|
|
52
|
+
onCancel: newOnCancel,
|
|
53
|
+
});
|
|
54
|
+
},
|
|
55
|
+
}); });
|
|
56
|
+
React.useEffect(function () {
|
|
57
|
+
dispatch({
|
|
58
|
+
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 }),
|
|
63
|
+
});
|
|
64
|
+
}, [title, message, confirmLabel, cancelLabel, onConfirm, onCancel]);
|
|
65
|
+
hooks.useOnKeyDown(handleKeyboardShortcut, ["Escape", "Enter"]);
|
|
66
|
+
return (React__default["default"].createElement(Modal.Modal, { title: state.title, open: open || state.open, size: "small", dismissible: false, primaryAction: {
|
|
67
|
+
label: state.confirmLabel,
|
|
68
|
+
onClick: handleAction("confirm"),
|
|
69
|
+
variation: variation === "destructive" ? "destructive" : "work",
|
|
70
|
+
}, secondaryAction: {
|
|
71
|
+
label: state.cancelLabel,
|
|
72
|
+
onClick: handleAction("cancel"),
|
|
73
|
+
} },
|
|
74
|
+
React__default["default"].createElement(Content.Content, null, state.message && React__default["default"].createElement(Markdown.Markdown, { content: state.message }))));
|
|
75
|
+
function handleAction(type) {
|
|
76
|
+
return function () {
|
|
77
|
+
dispatch({ type: type });
|
|
78
|
+
onRequestClose && onRequestClose();
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function handleKeyboardShortcut(event) {
|
|
82
|
+
var metaKey = event.metaKey, ctrlKey = event.ctrlKey, key = event.key, target = event.target;
|
|
83
|
+
if (!open)
|
|
84
|
+
return;
|
|
85
|
+
var shouldTriggerShortcut = target instanceof HTMLButtonElement ? metaKey || ctrlKey : true;
|
|
86
|
+
if (!shouldTriggerShortcut)
|
|
87
|
+
return;
|
|
88
|
+
event.preventDefault();
|
|
89
|
+
event.stopPropagation();
|
|
90
|
+
switch (key) {
|
|
91
|
+
case "Enter": {
|
|
92
|
+
handleAction("confirm")();
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
case "Escape": {
|
|
96
|
+
handleAction("cancel")();
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
exports.ConfirmationModal = ConfirmationModal;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import spacings from "./Spacing.css";
|
|
3
|
-
interface ContentProps {
|
|
4
|
-
readonly children: ReactNode | ReactNode[];
|
|
5
|
-
/**
|
|
6
|
-
* The amount of vertical spacing between the children
|
|
7
|
-
*
|
|
8
|
-
* @default base
|
|
9
|
-
*/
|
|
10
|
-
readonly spacing?: keyof typeof spacings;
|
|
11
|
-
}
|
|
12
|
-
export declare function Content({ children, spacing }: ContentProps): JSX.Element;
|
|
13
|
-
export {};
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import spacings from "./Spacing.css";
|
|
3
|
+
interface ContentProps {
|
|
4
|
+
readonly children: ReactNode | ReactNode[];
|
|
5
|
+
/**
|
|
6
|
+
* The amount of vertical spacing between the children
|
|
7
|
+
*
|
|
8
|
+
* @default base
|
|
9
|
+
*/
|
|
10
|
+
readonly spacing?: keyof typeof spacings;
|
|
11
|
+
}
|
|
12
|
+
export declare function Content({ children, spacing }: ContentProps): JSX.Element;
|
|
13
|
+
export {};
|
package/dist/Content/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Content } from "./Content";
|
|
1
|
+
export { Content } from "./Content";
|
package/dist/Content/index.js
CHANGED
|
@@ -2,25 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
var Content = require('../Content-18de5fbb.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('classnames');
|
|
8
|
+
require('../style-inject.es-dcee06b6.js');
|
|
6
9
|
|
|
7
|
-
var React = require('react');
|
|
8
|
-
var React__default = _interopDefault(React);
|
|
9
|
-
var __chunk_2 = require('../chunk-17e02351.js');
|
|
10
|
-
var classnames = _interopDefault(require('classnames'));
|
|
11
10
|
|
|
12
|
-
var css = "._3XB3f5356G3URhbYQmxO0U > :not(:last-child) {\n margin-bottom: var(--space-base);\n}\n\n._3rRW5nzLQ-amnwpzAPjyCg > :not(:last-child) {\n margin-bottom: var(--space-small);\n}\n\n._2phzyL8OjyxQ0GU2n05YKL > :not(:last-child) {\n margin-bottom: var(--space-large);\n}\n";
|
|
13
|
-
var spacings = {"base":"_3XB3f5356G3URhbYQmxO0U","small":"_3rRW5nzLQ-amnwpzAPjyCg","large":"_2phzyL8OjyxQ0GU2n05YKL"};
|
|
14
|
-
__chunk_2.styleInject(css);
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
var styles = {"padded":"_1TB2WRsjEoAUFq0FMfwdQ3"};
|
|
18
|
-
__chunk_2.styleInject(css$1);
|
|
19
|
-
|
|
20
|
-
function Content(_a) {
|
|
21
|
-
var children = _a.children, _b = _a.spacing, spacing = _b === void 0 ? "base" : _b;
|
|
22
|
-
var className = classnames(styles.padded, spacings[spacing]);
|
|
23
|
-
return React__default.createElement("div", { className: className }, children);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
exports.Content = Content;
|
|
12
|
+
exports.Content = Content.Content;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var classnames = require('classnames');
|
|
5
|
+
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
+
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
11
|
+
|
|
12
|
+
var css$1 = "._3XB3f5356G3URhbYQmxO0U > :not(:last-child) {\n margin-bottom: var(--space-base);\n}\n\n._3rRW5nzLQ-amnwpzAPjyCg > :not(:last-child) {\n margin-bottom: var(--space-small);\n}\n\n._2phzyL8OjyxQ0GU2n05YKL > :not(:last-child) {\n margin-bottom: var(--space-large);\n}\n";
|
|
13
|
+
var spacings = {"base":"_3XB3f5356G3URhbYQmxO0U","small":"_3rRW5nzLQ-amnwpzAPjyCg","large":"_2phzyL8OjyxQ0GU2n05YKL"};
|
|
14
|
+
styleInject_es.styleInject(css$1);
|
|
15
|
+
|
|
16
|
+
var css = "._1TB2WRsjEoAUFq0FMfwdQ3 {\n padding: 0;\n padding: 0;\n padding: var(--public-content--padding, 0);\n}\n";
|
|
17
|
+
var styles = {"padded":"_1TB2WRsjEoAUFq0FMfwdQ3"};
|
|
18
|
+
styleInject_es.styleInject(css);
|
|
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]);
|
|
23
|
+
return React__default["default"].createElement("div", { className: className }, children);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.Content = Content;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { CivilDate } from "@std-proposal/temporal";
|
|
2
|
-
/**
|
|
3
|
-
* Options for deciding how much information is shown to the user
|
|
4
|
-
* days, hours, minutes, seconds
|
|
5
|
-
*/
|
|
6
|
-
declare type GranularityOptions = "dhms" | "hms" | "ms" | "s" | "dhm" | "dh" | "d";
|
|
7
|
-
interface CountdownProps {
|
|
8
|
-
/**
|
|
9
|
-
* The date that is being counted down to
|
|
10
|
-
* Civil Time of time is to be displayed.
|
|
11
|
-
* In the case of `date` a `string` should be in ISO 8601 format
|
|
12
|
-
*/
|
|
13
|
-
readonly date: CivilDate | Date | number | string;
|
|
14
|
-
/**
|
|
15
|
-
* Whether or not to present the unit of time to the user, or just the raw numbers.
|
|
16
|
-
*/
|
|
17
|
-
readonly showUnits?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Defines the time format presented
|
|
20
|
-
* (e.g., dhms will show days, hours, minutes, and seconds)
|
|
21
|
-
*
|
|
22
|
-
* @default 'dhms'
|
|
23
|
-
*/
|
|
24
|
-
readonly granularity?: GranularityOptions;
|
|
25
|
-
/**
|
|
26
|
-
* Callback when the countdown is done
|
|
27
|
-
*/
|
|
28
|
-
onComplete?(): void;
|
|
29
|
-
}
|
|
30
|
-
export declare function Countdown({ date: inputDate, onComplete, showUnits, granularity, }: CountdownProps): JSX.Element;
|
|
31
|
-
export {};
|
|
1
|
+
import { CivilDate } from "@std-proposal/temporal";
|
|
2
|
+
/**
|
|
3
|
+
* Options for deciding how much information is shown to the user
|
|
4
|
+
* days, hours, minutes, seconds
|
|
5
|
+
*/
|
|
6
|
+
declare type GranularityOptions = "dhms" | "hms" | "ms" | "s" | "dhm" | "dh" | "d";
|
|
7
|
+
interface CountdownProps {
|
|
8
|
+
/**
|
|
9
|
+
* The date that is being counted down to
|
|
10
|
+
* Civil Time of time is to be displayed.
|
|
11
|
+
* In the case of `date` a `string` should be in ISO 8601 format
|
|
12
|
+
*/
|
|
13
|
+
readonly date: CivilDate | Date | number | string;
|
|
14
|
+
/**
|
|
15
|
+
* Whether or not to present the unit of time to the user, or just the raw numbers.
|
|
16
|
+
*/
|
|
17
|
+
readonly showUnits?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Defines the time format presented
|
|
20
|
+
* (e.g., dhms will show days, hours, minutes, and seconds)
|
|
21
|
+
*
|
|
22
|
+
* @default 'dhms'
|
|
23
|
+
*/
|
|
24
|
+
readonly granularity?: GranularityOptions;
|
|
25
|
+
/**
|
|
26
|
+
* Callback when the countdown is done
|
|
27
|
+
*/
|
|
28
|
+
onComplete?(): void;
|
|
29
|
+
}
|
|
30
|
+
export declare function Countdown({ date: inputDate, onComplete, showUnits, granularity, }: CountdownProps): JSX.Element;
|
|
31
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare type TimeUnitOptions = "day" | "hour" | "minute" | "second";
|
|
2
|
-
export declare function computeTimeUnit(remainder: string, unit: TimeUnitOptions): string;
|
|
3
|
-
export {};
|
|
1
|
+
declare type TimeUnitOptions = "day" | "hour" | "minute" | "second";
|
|
2
|
+
export declare function computeTimeUnit(remainder: string, unit: TimeUnitOptions): string;
|
|
3
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Countdown } from "./Countdown";
|
|
1
|
+
export { Countdown } from "./Countdown";
|