@jobber/components 6.56.1 → 6.58.0
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/Thumbnail.d.ts +1 -0
- package/Thumbnail.js +17 -0
- package/dist/AnimatedPresence/AnimatedPresence.d.ts +2 -2
- package/dist/AnimatedSwitcher/AnimatedSwitcher.d.ts +3 -3
- package/dist/AtlantisPortalContent/AtlantisPortalContent.d.ts +2 -1
- package/dist/AtlantisThemeContext/AtlantisThemeContext.d.ts +2 -1
- package/dist/Autocomplete/Autocomplete.d.ts +2 -2
- package/dist/Autocomplete/Menu/DefaultMenu.d.ts +2 -2
- package/dist/Autocomplete/Menu/Menu.d.ts +2 -1
- package/dist/Autocomplete/Menu/MenuWrapper.d.ts +1 -1
- package/dist/Autocomplete/Option.d.ts +5 -5
- package/dist/Avatar/Avatar.d.ts +2 -2
- package/dist/Banner/Banner.d.ts +2 -2
- package/dist/Banner/components/BannerIcon/BannerIcon.d.ts +2 -1
- package/dist/Box/Box.d.ts +2 -1
- package/dist/Button/Button.d.ts +2 -1
- package/dist/Button/ButtonInternals.d.ts +4 -3
- package/dist/Button/ButtonProvider.d.ts +2 -2
- package/dist/ButtonDismiss/ButtonDismiss.d.ts +1 -1
- package/dist/Card/Card.d.ts +3 -3
- package/dist/Card/CardClickable.d.ts +1 -1
- package/dist/Card/CardHeader.d.ts +2 -1
- package/dist/Checkbox/Checkbox.d.ts +2 -1
- package/dist/Checkbox/Checkbox.rebuilt.d.ts +2 -1
- package/dist/Checkbox/index.d.ts +2 -1
- package/dist/Chip/components/ChipDismissible/ChipDismissible.d.ts +2 -1
- package/dist/Chip/components/ChipPrefix/Chip.Prefix.d.ts +2 -2
- package/dist/Chip/components/ChipSelectable/ChipSelectable.d.ts +2 -1
- package/dist/Chip/components/ChipSuffix/Chip.Suffix.d.ts +1 -1
- package/dist/Chips/Chip.d.ts +2 -1
- package/dist/Chips/ChipDismissible.d.ts +2 -2
- package/dist/Chips/Chips.d.ts +2 -1
- package/dist/Chips/InternalChip.d.ts +2 -1
- package/dist/Chips/InternalChipAffix.d.ts +2 -2
- package/dist/Chips/InternalChipButton.d.ts +2 -2
- package/dist/Chips/InternalChipDismissible/InternalChipDismissible.d.ts +2 -1
- package/dist/Chips/InternalChipDismissible/InternalChipDismissibleInput.d.ts +2 -1
- package/dist/Chips/InternalChipMultiSelect.d.ts +2 -1
- package/dist/Chips/InternalChipSingleSelect.d.ts +2 -1
- package/dist/Cluster/Cluster.d.ts +2 -1
- package/dist/Combobox/components/ComboboxAction/ComboboxAction.d.ts +2 -1
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/ComboboxLoadMore.d.ts +2 -1
- package/dist/Combobox/components/ComboboxOption/ComboboxOption.d.ts +2 -1
- package/dist/Combobox/components/ComboboxTrigger/ComboboxTrigger.d.ts +2 -1
- package/dist/ConfirmationModal/ConfirmationModal.d.ts +3 -3
- package/dist/Container/Container.d.ts +3 -2
- package/dist/ContentBlock/ContentBlock.d.ts +2 -1
- package/dist/Countdown/Countdown.d.ts +2 -1
- package/dist/Cover/Cover.d.ts +3 -2
- package/dist/DataDump/DataDump.d.ts +2 -1
- package/dist/DataList/DataList.d.ts +3 -2
- package/dist/DataList/components/DataListAction/DataListAction.d.ts +2 -1
- package/dist/DataList/components/DataListActions/DataListActions.d.ts +2 -1
- package/dist/DataList/components/DataListActionsMenu/DataListActionsMenu.d.ts +2 -2
- package/dist/DataList/components/DataListBulkActions/DataListBulkActions.d.ts +2 -1
- package/dist/DataList/components/DataListEmptyState/DataListEmptyState.d.ts +2 -1
- package/dist/DataList/components/DataListFilters/DataListFilters.d.ts +2 -2
- package/dist/DataList/components/DataListFilters/components/DataListSort/DataListSort.d.ts +2 -1
- package/dist/DataList/components/DataListHeader/DataListHeader.d.ts +2 -1
- package/dist/DataList/components/DataListHeader/DataListHeaderCheckbox.d.ts +2 -1
- package/dist/DataList/components/DataListHeaderTile/DataListHeaderTile.d.ts +2 -1
- package/dist/DataList/components/DataListHeaderTile/DataListSortingArrows.d.ts +2 -1
- package/dist/DataList/components/DataListHeaderTile/components/DataListSortingOptions.d.ts +1 -1
- package/dist/DataList/components/DataListItem/DataListItem.d.ts +2 -1
- package/dist/DataList/components/DataListItem/DataListItemInternal.d.ts +2 -1
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/DataListItemClickable.d.ts +2 -2
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/DataListItemClickableInternal.d.ts +2 -2
- package/dist/DataList/components/DataListItemActions/DataListItemActions.d.ts +2 -2
- package/dist/DataList/components/DataListItemActionsOverflow/DataListItemActionsOverflow.d.ts +2 -2
- package/dist/DataList/components/DataListItems/DataListItems.d.ts +2 -1
- package/dist/DataList/components/DataListLayout/DataListLayout.d.ts +2 -1
- package/dist/DataList/components/DataListLayoutActions/DataListLayoutActions.d.ts +2 -1
- package/dist/DataList/components/DataListLoadMore/DataListLoadMore.d.ts +2 -1
- package/dist/DataList/components/DataListLoadMore/DataListLoadMoreTrigger.d.ts +2 -1
- package/dist/DataList/components/DataListLoadingState/DataListLoadingState.d.ts +2 -1
- package/dist/DataList/components/DataListOverflowFade/DataListOverflowFade.d.ts +1 -1
- package/dist/DataList/components/DataListSearch/DataListSearch.d.ts +2 -1
- package/dist/DataList/components/DataListStatusBar/DataListStatusBar.d.ts +2 -2
- package/dist/DataList/components/DataListStickyHeader/DataListStickyHeader.d.ts +2 -2
- package/dist/DataList/components/DataListTags/DataListTags.d.ts +2 -1
- package/dist/DataList/components/DataListTotalCount/DataListTotalCount.d.ts +2 -1
- package/dist/DataTable/Body.d.ts +2 -2
- package/dist/DataTable/BodyLoading.d.ts +2 -1
- package/dist/DataTable/DataTable.d.ts +2 -2
- package/dist/DataTable/Footer.d.ts +2 -1
- package/dist/DataTable/Header.d.ts +2 -1
- package/dist/DataTable/Pagination.d.ts +2 -1
- package/dist/DatePicker/DatePicker.d.ts +2 -2
- package/dist/DatePicker/DatePickerCustomHeader.d.ts +2 -1
- package/dist/DescriptionList/DescriptionList.d.ts +2 -2
- package/dist/Disclosure/Disclosure.d.ts +2 -2
- package/dist/Divider/Divider.d.ts +1 -1
- package/dist/Drawer/Drawer.d.ts +2 -2
- package/dist/Drawer/DrawerGrid.d.ts +2 -2
- package/dist/Emphasis/Emphasis.d.ts +2 -2
- package/dist/FeatureSwitch/FeatureSwitch.d.ts +2 -2
- package/dist/Flex/Flex.d.ts +2 -2
- package/dist/FormField/FormField.d.ts +2 -1
- package/dist/FormField/FormFieldAffix.d.ts +3 -3
- package/dist/FormField/FormFieldDescription.d.ts +2 -1
- package/dist/FormField/FormFieldPostFix.d.ts +2 -1
- package/dist/FormField/FormFieldWrapper.d.ts +6 -6
- package/dist/FormatDate/FormatDate.d.ts +2 -1
- package/dist/FormatEmail/FormatEmail.d.ts +2 -1
- package/dist/FormatFile/FormatFile.d.ts +40 -27
- package/dist/FormatFile/index.cjs +10 -7
- package/dist/FormatFile/index.d.ts +3 -0
- package/dist/FormatFile/index.mjs +9 -8
- package/dist/FormatFile/types.d.ts +27 -0
- package/dist/FormatFile/useFormatFile.d.ts +5 -0
- package/dist/FormatFile/useFormatFileStyles.d.ts +10 -0
- package/dist/FormatFile-cjs.js +94 -131
- package/dist/FormatFile-es.js +94 -132
- package/dist/FormatRelativeDateTime/FormatRelativeDateTime.d.ts +2 -1
- package/dist/FormatTime/FormatTime.d.ts +2 -1
- package/dist/Frame/Frame.d.ts +2 -1
- package/dist/Gallery/Gallery.d.ts +2 -1
- package/dist/Gallery/index.cjs +4 -3
- package/dist/Gallery/index.mjs +4 -3
- package/dist/Gallery-cjs.js +3 -1
- package/dist/Gallery-es.js +3 -1
- package/dist/Glimmer/Glimmer.d.ts +5 -4
- package/dist/Grid/Grid.d.ts +2 -2
- package/dist/Grid/GridCell/GridCell.d.ts +1 -1
- package/dist/Heading/Heading.d.ts +2 -2
- package/dist/Icon/Icon.d.ts +2 -2
- package/dist/InlineLabel/InlineLabel.d.ts +2 -2
- package/dist/InputAvatar/InputAvatar.d.ts +2 -1
- package/dist/InputDate/InputDate.d.ts +2 -1
- package/dist/InputEmail/InputEmail.d.ts +2 -1
- package/dist/InputFile/InputFile.d.ts +1 -1
- package/dist/InputFile/InputFileButton.d.ts +2 -1
- package/dist/InputFile/InputFileDescription.d.ts +2 -2
- package/dist/InputFile/InputFileDropzoneWrapper.d.ts +1 -1
- package/dist/InputFile/InputFileHintText.d.ts +2 -2
- package/dist/InputFile/InputFileValidationErrors.d.ts +2 -1
- package/dist/InputGroup/InputGroup.d.ts +2 -2
- package/dist/InputPassword/InputPassword.d.ts +2 -1
- package/dist/InputPhoneNumber/InputMask.d.ts +1 -1
- package/dist/InputPhoneNumber/InputPhoneNumber.d.ts +2 -1
- package/dist/InputText/useInputTextFormField.d.ts +60 -55
- package/dist/InputTime/InputTime.d.ts +2 -1
- package/dist/InputTime/InputTime.rebuilt.d.ts +2 -1
- package/dist/InputTime/index.d.ts +2 -1
- package/dist/InputValidation/InputValidation.d.ts +2 -1
- package/dist/LightBox/LightBox.d.ts +2 -2
- package/dist/Link/Link.d.ts +2 -2
- package/dist/List/List.d.ts +1 -1
- package/dist/List/ListItem.d.ts +1 -1
- package/dist/Markdown/Markdown.d.ts +2 -1
- package/dist/Menu/Menu.d.ts +1 -1
- package/dist/Modal/Modal.d.ts +2 -1
- package/dist/Modal/Modal.rebuilt.d.ts +6 -6
- package/dist/Modal/ModalContext.rebuilt.d.ts +1 -1
- package/dist/Modal/index.d.ts +2 -1
- package/dist/MultiSelect/DropDownMenu.d.ts +1 -1
- package/dist/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/Page/Page.d.ts +1 -1
- package/dist/Popover/Popover.d.ts +4 -3
- package/dist/Popover/PopoverContext.d.ts +2 -2
- package/dist/ProgressBar/ProgressBar.d.ts +2 -1
- package/dist/ProgressBar/ProgressBarStepped.d.ts +2 -1
- package/dist/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/RadioGroup/RadioOption.d.ts +3 -3
- package/dist/RecurringSelect/CurrentRecurrenceComponent.d.ts +2 -1
- package/dist/RecurringSelect/RecurringSelect.d.ts +2 -1
- package/dist/RecurringSelect/components/DayOfMonthSelect.d.ts +2 -1
- package/dist/RecurringSelect/components/MonthlyDayOfWeekSelect.d.ts +2 -1
- package/dist/RecurringSelect/components/MonthlySelect.d.ts +2 -1
- package/dist/RecurringSelect/components/WeeklySelect.d.ts +2 -1
- package/dist/ResponsiveSwitcher/ResponsiveSwitcher.d.ts +2 -1
- package/dist/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/SegmentedControl/SegmentedControlOption.d.ts +2 -2
- package/dist/SegmentedControl/SegmentedControlProvider.d.ts +1 -1
- package/dist/Select/Option.d.ts +2 -2
- package/dist/Select/Select.d.ts +2 -1
- package/dist/Select/Select.rebuilt.d.ts +2 -1
- package/dist/Select/index.d.ts +2 -1
- package/dist/SideDrawer/SideDrawer.d.ts +2 -1
- package/dist/SideKick/SideKick.d.ts +2 -1
- package/dist/Spinner/Spinner.d.ts +2 -1
- package/dist/Stack/Stack.d.ts +2 -1
- package/dist/StatusIndicator/StatusIndicator.d.ts +2 -1
- package/dist/Switch/Switch.d.ts +2 -1
- package/dist/Table/Body.d.ts +2 -2
- package/dist/Table/Cells/Cell.d.ts +2 -2
- package/dist/Table/Cells/CellCurrency.d.ts +2 -1
- package/dist/Table/Cells/CellNumeric.d.ts +2 -1
- package/dist/Table/Footer.d.ts +2 -2
- package/dist/Table/Header.d.ts +2 -2
- package/dist/Table/Row.d.ts +2 -2
- package/dist/Table/Table.d.ts +2 -2
- package/dist/Tabs/Tabs.d.ts +2 -2
- package/dist/Text/Text.d.ts +2 -2
- package/dist/Thumbnail/Thumbnail.d.ts +25 -0
- package/dist/Thumbnail/ThumbnailImage.d.ts +23 -0
- package/dist/Thumbnail/index.cjs +15 -0
- package/dist/Thumbnail/index.d.ts +1 -0
- package/dist/Thumbnail/index.mjs +9 -0
- package/dist/Thumbnail-cjs.js +103 -0
- package/dist/Thumbnail-es.js +100 -0
- package/dist/Tiles/Tiles.d.ts +2 -1
- package/dist/Toast/Toast.d.ts +2 -1
- package/dist/Tooltip/Tooltip.d.ts +2 -2
- package/dist/Typography/Typography.d.ts +2 -2
- package/dist/index.cjs +4 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +2 -1
- package/dist/styles.css +1787 -1788
- package/dist/utils/meta/meta.json +8 -0
- package/package.json +7 -2
- package/dist/FormatFile/FormatFileDeleteButton.d.ts +0 -6
- package/dist/FormatFile/InternalThumbnail.d.ts +0 -8
- package/dist/FormatFile/InternalThumbnailImage.d.ts +0 -6
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import React__default, { useState, useEffect } from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import { G as Glimmer } from './Glimmer-es.js';
|
|
4
|
+
import { I as Icon } from './Icon-es.js';
|
|
5
|
+
import { T as Typography } from './Typography-es.js';
|
|
6
|
+
|
|
7
|
+
var styles$1 = {"content":"b9lhF-BkUnI-","hasName":"BJLJeUxloeQ-","large":"t5IzWH6-Sy0-","fileName":"tj--cPRjQfI-","base":"l2Vxo1qaR8U-","spinning":"LDAOyzklETo-"};
|
|
8
|
+
|
|
9
|
+
var styles = {"image":"qOmZU-rbNf4-","fadeIn":"zB1aNhsmmqY-","hidden":"_2bihNsPs7w4-","spinning":"ZLMkLuZeH-o-"};
|
|
10
|
+
|
|
11
|
+
function InternalThumbnailImage({ file, UNSAFE_className, UNSAFE_style, }) {
|
|
12
|
+
const { name, src } = file;
|
|
13
|
+
const [imageSource, setImageSource] = useState();
|
|
14
|
+
const [imageLoaded, setImageLoaded] = useState(false);
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
src().then(url => setImageSource(url));
|
|
17
|
+
}, []);
|
|
18
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
19
|
+
!imageLoaded && React__default.createElement(Glimmer, { size: "auto" }),
|
|
20
|
+
React__default.createElement("img", { src: imageSource, onError: file.onImageLoadError, onLoad: handleImageLoad, alt: name, "data-testid": "internalThumbnailImage", className: classnames(styles.image, { [styles.hidden]: !imageLoaded }, UNSAFE_className === null || UNSAFE_className === void 0 ? void 0 : UNSAFE_className.container), style: UNSAFE_style === null || UNSAFE_style === void 0 ? void 0 : UNSAFE_style.container })));
|
|
21
|
+
function handleImageLoad() {
|
|
22
|
+
setImageLoaded(true);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// This function comes from MDN: https://developer.mozilla.org/en-US/docs/Web/API/Window/navigator
|
|
27
|
+
function getClientBrowser(userAgent) {
|
|
28
|
+
// The order matters here, and this may report false positives for unlisted browsers.
|
|
29
|
+
if (userAgent.includes("Firefox")) {
|
|
30
|
+
// "Mozilla/5.0 (X11; Linux i686; rv:104.0) Gecko/20100101 Firefox/104.0"
|
|
31
|
+
return "Mozilla Firefox";
|
|
32
|
+
}
|
|
33
|
+
else if (userAgent.includes("SamsungBrowser")) {
|
|
34
|
+
// "Mozilla/5.0 (Linux; Android 9; SAMSUNG SM-G955F Build/PPR1.180610.011) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/9.4 Chrome/67.0.3396.87 Mobile Safari/537.36"
|
|
35
|
+
return "Samsung Internet";
|
|
36
|
+
}
|
|
37
|
+
else if (userAgent.includes("Opera") || userAgent.includes("OPR")) {
|
|
38
|
+
// "Mozilla/5.0 (Macintosh; Intel Mac OS X 12_5_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36 OPR/90.0.4480.54"
|
|
39
|
+
return "Opera";
|
|
40
|
+
}
|
|
41
|
+
else if (userAgent.includes("Edge")) {
|
|
42
|
+
// "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299"
|
|
43
|
+
return "Microsoft Edge (Legacy)";
|
|
44
|
+
}
|
|
45
|
+
else if (userAgent.includes("Edg")) {
|
|
46
|
+
// "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36 Edg/104.0.1293.70"
|
|
47
|
+
return "Microsoft Edge (Chromium)";
|
|
48
|
+
}
|
|
49
|
+
else if (userAgent.includes("Chrome")) {
|
|
50
|
+
// "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"
|
|
51
|
+
return "Google Chrome or Chromium";
|
|
52
|
+
}
|
|
53
|
+
else if (userAgent.includes("Safari")) {
|
|
54
|
+
// "Mozilla/5.0 (iPhone; CPU iPhone OS 15_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6 Mobile/15E148 Safari/604.1"
|
|
55
|
+
return "Apple Safari";
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
return "unknown";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function isSafari(userAgent) {
|
|
62
|
+
return getClientBrowser(userAgent) === "Apple Safari";
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function Thumbnail({ compact = false, size, file, UNSAFE_className, UNSAFE_style, }) {
|
|
66
|
+
const { name, type } = file;
|
|
67
|
+
const iconName = getIconNameFromType(type);
|
|
68
|
+
const hasName = Boolean(name) && compact;
|
|
69
|
+
if (type.startsWith("image/") && isSupportedImageType(file)) {
|
|
70
|
+
return (React__default.createElement(InternalThumbnailImage, { file: file, UNSAFE_className: UNSAFE_className, UNSAFE_style: UNSAFE_style }));
|
|
71
|
+
}
|
|
72
|
+
return (React__default.createElement("div", { className: classnames(styles$1.content, styles$1[size], {
|
|
73
|
+
[styles$1.hasName]: hasName,
|
|
74
|
+
}, UNSAFE_className === null || UNSAFE_className === void 0 ? void 0 : UNSAFE_className.container), style: UNSAFE_style === null || UNSAFE_style === void 0 ? void 0 : UNSAFE_style.container },
|
|
75
|
+
React__default.createElement(Icon, { name: iconName, color: "greyBlue", size: size }),
|
|
76
|
+
hasName && (React__default.createElement("div", { className: styles$1.fileName },
|
|
77
|
+
React__default.createElement(Typography, { element: "span", textColor: "text", numberOfLines: 1 }, name)))));
|
|
78
|
+
}
|
|
79
|
+
function getIconNameFromType(mimeType) {
|
|
80
|
+
if (mimeType.startsWith("image/"))
|
|
81
|
+
return "image";
|
|
82
|
+
if (mimeType.startsWith("video/"))
|
|
83
|
+
return "video";
|
|
84
|
+
switch (mimeType) {
|
|
85
|
+
case "application/pdf":
|
|
86
|
+
return "pdf";
|
|
87
|
+
case "application/vnd.ms-excel":
|
|
88
|
+
return "excel";
|
|
89
|
+
default:
|
|
90
|
+
return "file";
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
function isSupportedImageType(file) {
|
|
94
|
+
const userAgent = typeof document === "undefined" ? "" : window.navigator.userAgent;
|
|
95
|
+
const nonHeicImage = !file.type.startsWith("image/heic");
|
|
96
|
+
const nonSVGImage = !file.type.startsWith("image/svg");
|
|
97
|
+
return (nonHeicImage || isSafari(userAgent)) && nonSVGImage;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export { Thumbnail as T, isSafari as i };
|
package/dist/Tiles/Tiles.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { TilesProps } from "./types";
|
|
2
|
-
export declare function Tiles({ children, minSize, gap, autoWidth, as: Tag, dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, align, }: TilesProps): JSX.Element;
|
|
3
|
+
export declare function Tiles({ children, minSize, gap, autoWidth, as: Tag, dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, align, }: TilesProps): React.JSX.Element;
|
package/dist/Toast/Toast.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { XOR } from "ts-xor";
|
|
2
3
|
interface BaseToastProps {
|
|
3
4
|
readonly variation?: "info" | "success" | "error";
|
|
@@ -21,5 +22,5 @@ type ToastPropsInternal = Omit<ToastProps, "id">;
|
|
|
21
22
|
export interface ToastRef {
|
|
22
23
|
add(props: ToastProps): void;
|
|
23
24
|
}
|
|
24
|
-
export declare function Toast({ message, variation, action, actionLabel, }: ToastPropsInternal): JSX.Element;
|
|
25
|
+
export declare function Toast({ message, variation, action, actionLabel, }: ToastPropsInternal): React.JSX.Element;
|
|
25
26
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
2
|
import { Placement } from "./Tooltip.types";
|
|
3
3
|
interface TooltipProps {
|
|
4
4
|
readonly children: ReactElement;
|
|
@@ -13,5 +13,5 @@ interface TooltipProps {
|
|
|
13
13
|
readonly preferredPlacement?: Placement;
|
|
14
14
|
readonly setTabIndex?: boolean;
|
|
15
15
|
}
|
|
16
|
-
export declare function Tooltip({ message, children, preferredPlacement, setTabIndex, }: TooltipProps): JSX.Element;
|
|
16
|
+
export declare function Tooltip({ message, children, preferredPlacement, setTabIndex, }: TooltipProps): React.JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from "react";
|
|
1
|
+
import React, { CSSProperties, ReactNode } from "react";
|
|
2
2
|
import fontSizes from "./css/FontSizes.module.css";
|
|
3
3
|
import fontWeights from "./css/FontWeights.module.css";
|
|
4
4
|
import textCases from "./css/TextCases.module.css";
|
|
@@ -60,4 +60,4 @@ export interface TypographyProps {
|
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
export type TypographyOptions = Omit<TypographyProps, "children">;
|
|
63
|
-
export declare function Typography({ id, children, element: Tag, size, align, fontWeight, textCase, textColor, emphasisType, numberOfLines, fontFamily, underline, UNSAFE_className, UNSAFE_style, }: TypographyProps): JSX.Element;
|
|
63
|
+
export declare function Typography({ id, children, element: Tag, size, align, fontWeight, textCase, textColor, emphasisType, numberOfLines, fontFamily, underline, UNSAFE_className, UNSAFE_style, }: TypographyProps): React.JSX.Element;
|
package/dist/index.cjs
CHANGED
|
@@ -95,6 +95,7 @@ var Stack = require('./Stack-cjs.js');
|
|
|
95
95
|
var Switch = require('./Switch-cjs.js');
|
|
96
96
|
var Body = require('./Body-cjs.js');
|
|
97
97
|
var Tabs = require('./Tabs-cjs.js');
|
|
98
|
+
var Thumbnail = require('./Thumbnail-cjs.js');
|
|
98
99
|
var Tiles = require('./Tiles-cjs.js');
|
|
99
100
|
var showToast = require('./showToast-cjs.js');
|
|
100
101
|
var Tooltip = require('./Tooltip-cjs.js');
|
|
@@ -271,6 +272,8 @@ exports.FormatDate = FormatDate.FormatDate;
|
|
|
271
272
|
exports.strFormatDate = FormatDate.strFormatDate;
|
|
272
273
|
exports.FormatEmail = FormatEmail.FormatEmail;
|
|
273
274
|
exports.FormatFile = FormatFile.FormatFile;
|
|
275
|
+
exports.useFormatFile = FormatFile.useFormatFile;
|
|
276
|
+
exports.useFormatFileStyles = FormatFile.useFormatFileStyles;
|
|
274
277
|
exports.FormatRelativeDateTime = FormatRelativeDateTime.FormatRelativeDateTime;
|
|
275
278
|
exports.FormatTime = FormatTime.FormatTime;
|
|
276
279
|
exports.Frame = Frame.Frame;
|
|
@@ -344,6 +347,7 @@ exports.Row = Body.Row;
|
|
|
344
347
|
exports.Table = Body.Table;
|
|
345
348
|
exports.Tab = Tabs.Tab;
|
|
346
349
|
exports.Tabs = Tabs.Tabs;
|
|
350
|
+
exports.Thumbnail = Thumbnail.Thumbnail;
|
|
347
351
|
exports.Tiles = Tiles.Tiles;
|
|
348
352
|
exports.Toast = showToast.Toast;
|
|
349
353
|
exports.showToast = showToast.showToast;
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -49,7 +49,7 @@ export { F as Form } from './Form-es.js';
|
|
|
49
49
|
export { A as AffixIcon, i as AffixLabel, k as FormField, F as FormFieldInputHorizontalWrapper, d as FormFieldInputWrapperStyles, e as FormFieldLabel, f as FormFieldWrapper, g as FormFieldWrapperMain, h as FormFieldWrapperToolbar, u as useAtlantisFormField, a as useAtlantisFormFieldActions, b as useAtlantisFormFieldName, c as useAtlantisReactHookForm, j as useFormFieldWrapperStyles } from './FormField-es.js';
|
|
50
50
|
export { F as FormatDate, s as strFormatDate } from './FormatDate-es.js';
|
|
51
51
|
export { F as FormatEmail } from './FormatEmail-es.js';
|
|
52
|
-
export { F as FormatFile } from './FormatFile-es.js';
|
|
52
|
+
export { F as FormatFile, u as useFormatFile, a as useFormatFileStyles } from './FormatFile-es.js';
|
|
53
53
|
export { F as FormatRelativeDateTime } from './FormatRelativeDateTime-es.js';
|
|
54
54
|
export { F as FormatTime } from './FormatTime-es.js';
|
|
55
55
|
export { F as Frame } from './Frame-es.js';
|
|
@@ -93,6 +93,7 @@ export { S as Stack } from './Stack-es.js';
|
|
|
93
93
|
export { S as Switch } from './Switch-es.js';
|
|
94
94
|
export { B as Body, C as Cell, b as CellCurrency, a as CellNumeric, F as Footer, H as Header, R as Row, T as Table } from './Body-es.js';
|
|
95
95
|
export { a as Tab, T as Tabs } from './Tabs-es.js';
|
|
96
|
+
export { T as Thumbnail } from './Thumbnail-es.js';
|
|
96
97
|
export { T as Tiles } from './Tiles-es.js';
|
|
97
98
|
export { T as Toast, s as showToast } from './showToast-es.js';
|
|
98
99
|
export { T as Tooltip } from './Tooltip-es.js';
|