@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
package/dist/Frame/Frame.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FrameProps } from "./types";
|
|
2
|
-
export declare function Frame({ children, aspectX, aspectY, as: Tag, dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, }: FrameProps): JSX.Element;
|
|
3
|
+
export declare function Frame({ children, aspectX, aspectY, as: Tag, dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, }: FrameProps): React.JSX.Element;
|
package/dist/Gallery/index.cjs
CHANGED
|
@@ -35,17 +35,18 @@ require('../_isIterateeCall-cjs.js');
|
|
|
35
35
|
require('../_setToString-cjs.js');
|
|
36
36
|
require('../FormatFile-cjs.js');
|
|
37
37
|
require('filesize');
|
|
38
|
+
require('../Thumbnail-cjs.js');
|
|
39
|
+
require('../Glimmer-cjs.js');
|
|
40
|
+
require('../Content-cjs.js');
|
|
41
|
+
require('../ProgressBar-cjs.js');
|
|
38
42
|
require('../ConfirmationModal-cjs.js');
|
|
39
43
|
require('../Modal/index.cjs');
|
|
40
44
|
require('../noop-cjs.js');
|
|
41
45
|
require('../floating-ui.react-cjs.js');
|
|
42
46
|
require('../AtlantisPortalContent-cjs.js');
|
|
43
|
-
require('../Content-cjs.js');
|
|
44
47
|
require('../Markdown-cjs.js');
|
|
45
48
|
require('../Emphasis-cjs.js');
|
|
46
49
|
require('../index-cjs.js');
|
|
47
|
-
require('../Glimmer-cjs.js');
|
|
48
|
-
require('../ProgressBar-cjs.js');
|
|
49
50
|
|
|
50
51
|
|
|
51
52
|
|
package/dist/Gallery/index.mjs
CHANGED
|
@@ -33,14 +33,15 @@ import '../_isIterateeCall-es.js';
|
|
|
33
33
|
import '../_setToString-es.js';
|
|
34
34
|
import '../FormatFile-es.js';
|
|
35
35
|
import 'filesize';
|
|
36
|
+
import '../Thumbnail-es.js';
|
|
37
|
+
import '../Glimmer-es.js';
|
|
38
|
+
import '../Content-es.js';
|
|
39
|
+
import '../ProgressBar-es.js';
|
|
36
40
|
import '../ConfirmationModal-es.js';
|
|
37
41
|
import '../Modal/index.mjs';
|
|
38
42
|
import '../noop-es.js';
|
|
39
43
|
import '../floating-ui.react-es.js';
|
|
40
44
|
import '../AtlantisPortalContent-es.js';
|
|
41
|
-
import '../Content-es.js';
|
|
42
45
|
import '../Markdown-es.js';
|
|
43
46
|
import '../Emphasis-es.js';
|
|
44
47
|
import '../index-es.js';
|
|
45
|
-
import '../Glimmer-es.js';
|
|
46
|
-
import '../ProgressBar-es.js';
|
package/dist/Gallery-cjs.js
CHANGED
|
@@ -5,7 +5,9 @@ var React = require('react');
|
|
|
5
5
|
var classnames = require('classnames');
|
|
6
6
|
var LightBox = require('./LightBox-cjs.js');
|
|
7
7
|
var FormatFile = require('./FormatFile-cjs.js');
|
|
8
|
+
require('filesize');
|
|
8
9
|
var Button = require('./Button-cjs.js');
|
|
10
|
+
var Thumbnail = require('./Thumbnail-cjs.js');
|
|
9
11
|
|
|
10
12
|
var styles = {"gallery":"_6UhvrmKZdns-","galleryLarge":"f0hnJ8v-iHE-","showMoreButton":"EvHA4-Q7O9g-","baseShowMoreButton":"VWW-3mSlumg-","largeShowMoreButton":"DNhegGxB75M-","spinning":"aqCoXiyvGKw-"};
|
|
11
13
|
|
|
@@ -65,7 +67,7 @@ function isSupportedImageType(file) {
|
|
|
65
67
|
const userAgent = typeof document === "undefined" ? "" : window.navigator.userAgent;
|
|
66
68
|
const nonHeicImage = !file.type.startsWith("image/heic");
|
|
67
69
|
const nonSVGImage = !file.type.startsWith("image/svg");
|
|
68
|
-
return (nonHeicImage ||
|
|
70
|
+
return (nonHeicImage || Thumbnail.isSafari(userAgent)) && nonSVGImage;
|
|
69
71
|
}
|
|
70
72
|
function generateImagesArray(files) {
|
|
71
73
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
package/dist/Gallery-es.js
CHANGED
|
@@ -2,8 +2,10 @@ import { a as __awaiter } from './tslib.es6-es.js';
|
|
|
2
2
|
import React__default, { useState } from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { L as LightBox } from './LightBox-es.js';
|
|
5
|
-
import { F as FormatFile
|
|
5
|
+
import { F as FormatFile } from './FormatFile-es.js';
|
|
6
|
+
import 'filesize';
|
|
6
7
|
import { B as Button } from './Button-es.js';
|
|
8
|
+
import { i as isSafari } from './Thumbnail-es.js';
|
|
7
9
|
|
|
8
10
|
var styles = {"gallery":"_6UhvrmKZdns-","galleryLarge":"f0hnJ8v-iHE-","showMoreButton":"EvHA4-Q7O9g-","baseShowMoreButton":"VWW-3mSlumg-","largeShowMoreButton":"DNhegGxB75M-","spinning":"aqCoXiyvGKw-"};
|
|
9
11
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import sizes from "./style/Sizes.module.css";
|
|
2
3
|
import shapes from "./style/Shape.module.css";
|
|
3
4
|
import timings from "./style/Timing.module.css";
|
|
@@ -37,11 +38,11 @@ export declare const GLIMMER_TEST_ID = "ATL-Glimmer";
|
|
|
37
38
|
export declare const GLIMMER_HEADER_TEST_ID = "ATL-GlimmerHeader";
|
|
38
39
|
export declare const GLIMMER_TEXT_TEST_ID = "ATL-GlimmerText";
|
|
39
40
|
export declare const GLIMMER_BUTTON_TEST_ID = "ATL-GlimmerButton";
|
|
40
|
-
export declare function Glimmer({ size, shape, timing, reverseTheme, width, }: GlimmerProps): JSX.Element;
|
|
41
|
+
export declare function Glimmer({ size, shape, timing, reverseTheme, width, }: GlimmerProps): React.JSX.Element;
|
|
41
42
|
export declare namespace Glimmer {
|
|
42
|
-
var Header: ({ level, ...props }: GlimmerHeaderProps) => JSX.Element;
|
|
43
|
-
var Text: ({ width, lines, ...props }: GlimmerTextProps) => JSX.Element;
|
|
44
|
-
var Button: ({ fullWidth, ...props }: GlimmerButtonProps) => JSX.Element;
|
|
43
|
+
var Header: ({ level, ...props }: GlimmerHeaderProps) => React.JSX.Element;
|
|
44
|
+
var Text: ({ width, lines, ...props }: GlimmerTextProps) => React.JSX.Element;
|
|
45
|
+
var Button: ({ fullWidth, ...props }: GlimmerButtonProps) => React.JSX.Element;
|
|
45
46
|
}
|
|
46
47
|
export interface GlimmerHeaderProps extends Omit<GlimmerProps, "shape" | "size"> {
|
|
47
48
|
/**
|
package/dist/Grid/Grid.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
2
|
import alignments from "./GridAlign.module.css";
|
|
3
3
|
import { GridCell } from "./GridCell";
|
|
4
4
|
interface GridProps {
|
|
@@ -18,7 +18,7 @@ interface GridProps {
|
|
|
18
18
|
readonly children: ReactNode;
|
|
19
19
|
}
|
|
20
20
|
export declare const GRID_TEST_ID = "ATL-Grid";
|
|
21
|
-
export declare function Grid({ alignItems, gap, children, }: GridProps): JSX.Element;
|
|
21
|
+
export declare function Grid({ alignItems, gap, children, }: GridProps): React.JSX.Element;
|
|
22
22
|
export declare namespace Grid {
|
|
23
23
|
var Cell: typeof GridCell;
|
|
24
24
|
}
|
|
@@ -19,5 +19,5 @@ export interface GridCellProps {
|
|
|
19
19
|
readonly children?: React.ReactNode;
|
|
20
20
|
}
|
|
21
21
|
export declare const GRID_CELL_TEST_ID = "ATL-Grid-GridCell";
|
|
22
|
-
export declare function GridCell({ size, children }: GridCellProps): JSX.Element;
|
|
22
|
+
export declare function GridCell({ size, children }: GridCellProps): React.JSX.Element;
|
|
23
23
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
2
|
import { TypographyOptions, TypographyProps } from "../Typography";
|
|
3
3
|
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
4
|
export interface HeadingProps {
|
|
@@ -25,5 +25,5 @@ export interface HeadingProps {
|
|
|
25
25
|
readonly UNSAFE_style?: TypographyProps["UNSAFE_style"];
|
|
26
26
|
}
|
|
27
27
|
export type LevelMap = Record<HeadingLevel, TypographyOptions>;
|
|
28
|
-
export declare function Heading({ level, children, element, UNSAFE_className, UNSAFE_style, }: HeadingProps): JSX.Element;
|
|
28
|
+
export declare function Heading({ level, children, element, UNSAFE_className, UNSAFE_style, }: HeadingProps): React.JSX.Element;
|
|
29
29
|
export {};
|
package/dist/Icon/Icon.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties } from "react";
|
|
1
|
+
import React, { CSSProperties } from "react";
|
|
2
2
|
import { IconColorNames, IconNames, IconSizes } from "@jobber/design";
|
|
3
3
|
export { IconColorNames, IconNames } from "@jobber/design";
|
|
4
4
|
export interface IconProps {
|
|
@@ -42,4 +42,4 @@ export interface IconProps {
|
|
|
42
42
|
path?: CSSProperties;
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
export declare function Icon({ name, color, customColor, size, testID, UNSAFE_className, UNSAFE_style, }: IconProps): JSX.Element;
|
|
45
|
+
export declare function Icon({ name, color, customColor, size, testID, UNSAFE_className, UNSAFE_style, }: IconProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
2
|
export type InlineLabelColors = "greyBlue" | "red" | "orange" | "green" | "blue" | "yellow" | "lime" | "purple" | "pink" | "teal" | "yellowGreen" | "blueDark" | "lightBlue" | "indigo";
|
|
3
3
|
interface InlineLabelProps {
|
|
4
4
|
/**
|
|
@@ -13,5 +13,5 @@ interface InlineLabelProps {
|
|
|
13
13
|
readonly color?: InlineLabelColors;
|
|
14
14
|
readonly children: ReactNode;
|
|
15
15
|
}
|
|
16
|
-
export declare function InlineLabel({ size, color, children, }: InlineLabelProps): JSX.Element;
|
|
16
|
+
export declare function InlineLabel({ size, color, children, }: InlineLabelProps): React.JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { AvatarProps } from "../Avatar";
|
|
2
3
|
import { FileUpload, UploadParams } from "../InputFile";
|
|
3
4
|
interface InputAvatarProps extends Omit<AvatarProps, "size" | "UNSAFE_className" | "UNSAFE_style"> {
|
|
@@ -18,5 +19,5 @@ interface InputAvatarProps extends Omit<AvatarProps, "size" | "UNSAFE_className"
|
|
|
18
19
|
*/
|
|
19
20
|
onUploadComplete?(file?: FileUpload): void;
|
|
20
21
|
}
|
|
21
|
-
export declare function InputAvatar({ getUploadParams, onUploadComplete, onChange, ...avatarProps }: InputAvatarProps): JSX.Element;
|
|
22
|
+
export declare function InputAvatar({ getUploadParams, onUploadComplete, onChange, ...avatarProps }: InputAvatarProps): React.JSX.Element;
|
|
22
23
|
export {};
|
|
@@ -161,7 +161,7 @@ interface InputFileProps {
|
|
|
161
161
|
*/
|
|
162
162
|
readonly validator?: <T extends File>(file: T) => FileError | FileError[] | null;
|
|
163
163
|
}
|
|
164
|
-
export declare function InputFile({ variation, size, buttonLabel: providedButtonLabel, allowMultiple, allowedTypes, description, hintText, maxFilesValidation, getUploadParams, onUploadStart, onUploadProgress, onUploadComplete, onUploadError, validator, children, }: InputFileProps): JSX.Element;
|
|
164
|
+
export declare function InputFile({ variation, size, buttonLabel: providedButtonLabel, allowMultiple, allowedTypes, description, hintText, maxFilesValidation, getUploadParams, onUploadStart, onUploadProgress, onUploadComplete, onUploadError, validator, children, }: InputFileProps): React.JSX.Element;
|
|
165
165
|
export declare namespace InputFile {
|
|
166
166
|
var Button: typeof InputFileButton;
|
|
167
167
|
var Description: typeof InputFileDescription;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ButtonProps } from "../Button";
|
|
2
3
|
interface InputFileButtonProps extends Omit<ButtonProps, "submit" | "name" | "value" | "to" | "url" | "children"> {
|
|
3
4
|
}
|
|
4
|
-
export declare function InputFileButton({ label, size, fullWidth, ...buttonProps }: InputFileButtonProps): JSX.Element;
|
|
5
|
+
export declare function InputFileButton({ label, size, fullWidth, ...buttonProps }: InputFileButtonProps): React.JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
2
|
import { TextProps } from "../Text";
|
|
3
|
-
export declare function InputFileDescription({ size, variation, children, ...textProps }: PropsWithChildren<TextProps>): JSX.Element | null;
|
|
3
|
+
export declare function InputFileDescription({ size, variation, children, ...textProps }: PropsWithChildren<TextProps>): React.JSX.Element | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
2
|
import { TextProps } from "../Text";
|
|
3
|
-
export declare function InputFileHintText({ size, children, ...textProps }: PropsWithChildren<TextProps>): JSX.Element;
|
|
3
|
+
export declare function InputFileHintText({ size, children, ...textProps }: PropsWithChildren<TextProps>): React.JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { InputFileValidationError } from "./types";
|
|
2
3
|
export declare function InputFileValidationErrors({ validationErrors, }: {
|
|
3
4
|
readonly validationErrors: InputFileValidationError[];
|
|
4
|
-
}): JSX.Element | null;
|
|
5
|
+
}): React.JSX.Element | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
2
|
interface InputGroupProps {
|
|
3
3
|
readonly children: ReactElement | ReactElement[];
|
|
4
4
|
/**
|
|
@@ -7,5 +7,5 @@ interface InputGroupProps {
|
|
|
7
7
|
*/
|
|
8
8
|
readonly flowDirection?: "horizontal" | "vertical";
|
|
9
9
|
}
|
|
10
|
-
export declare function InputGroup({ children, flowDirection, }: InputGroupProps): JSX.Element;
|
|
10
|
+
export declare function InputGroup({ children, flowDirection, }: InputGroupProps): React.JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { CommonFormFieldProps, FormFieldProps } from "../FormField";
|
|
2
3
|
interface InputPasswordProps extends CommonFormFieldProps, Pick<FormFieldProps, "autocomplete" | "onEnter" | "onFocus" | "onBlur" | "inputRef" | "validations" | "defaultValue"> {
|
|
3
4
|
readonly value?: string;
|
|
@@ -8,5 +9,5 @@ interface InputPasswordProps extends CommonFormFieldProps, Pick<FormFieldProps,
|
|
|
8
9
|
*/
|
|
9
10
|
readonly hasVisibility?: boolean;
|
|
10
11
|
}
|
|
11
|
-
export declare function InputPassword(props: InputPasswordProps): JSX.Element;
|
|
12
|
+
export declare function InputPassword(props: InputPasswordProps): React.JSX.Element;
|
|
12
13
|
export {};
|
|
@@ -5,7 +5,7 @@ interface MaskElementProps {
|
|
|
5
5
|
readonly formattedValue: string;
|
|
6
6
|
readonly placeholderMask: string;
|
|
7
7
|
}
|
|
8
|
-
export declare function MaskElement({ isMasking, formattedValue, placeholderMask, }: MaskElementProps): JSX.Element | null;
|
|
8
|
+
export declare function MaskElement({ isMasking, formattedValue, placeholderMask, }: MaskElementProps): React.JSX.Element | null;
|
|
9
9
|
export interface InputMaskProps {
|
|
10
10
|
/**
|
|
11
11
|
* A string pattern to mask the value. For example:
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { InputPhoneNumberLegacyProps } from "./InputPhoneNumber.types";
|
|
2
|
-
export declare function InputPhoneNumber({ required, ...props }: InputPhoneNumberLegacyProps): JSX.Element;
|
|
3
|
+
export declare function InputPhoneNumber({ required, ...props }: InputPhoneNumberLegacyProps): React.JSX.Element;
|
|
@@ -65,13 +65,12 @@ export declare function useInputTextFormField({ id, name, description, inline, h
|
|
|
65
65
|
onFocus: (event: FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
66
66
|
accept?: string | undefined;
|
|
67
67
|
alt?: string | undefined;
|
|
68
|
-
autoComplete?:
|
|
68
|
+
autoComplete?: import("react").HTMLInputAutoCompleteAttribute | undefined;
|
|
69
69
|
capture?: boolean | "user" | "environment" | undefined;
|
|
70
70
|
checked?: boolean | undefined;
|
|
71
|
-
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
|
72
71
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
73
72
|
form?: string | undefined;
|
|
74
|
-
formAction?: string | undefined;
|
|
73
|
+
formAction?: string | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
|
|
75
74
|
formEncType?: string | undefined;
|
|
76
75
|
formMethod?: string | undefined;
|
|
77
76
|
formNoValidate?: boolean | undefined;
|
|
@@ -91,14 +90,14 @@ export declare function useInputTextFormField({ id, name, description, inline, h
|
|
|
91
90
|
src?: string | undefined;
|
|
92
91
|
step?: number | string | undefined;
|
|
93
92
|
type?: import("react").HTMLInputTypeAttribute | undefined;
|
|
94
|
-
value?: string |
|
|
93
|
+
value?: string | readonly string[] | number | undefined;
|
|
95
94
|
width?: number | string | undefined;
|
|
96
95
|
defaultChecked?: boolean | undefined;
|
|
97
|
-
defaultValue?: string | number |
|
|
96
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
98
97
|
suppressContentEditableWarning?: boolean | undefined;
|
|
99
98
|
suppressHydrationWarning?: boolean | undefined;
|
|
100
99
|
accessKey?: string | undefined;
|
|
101
|
-
contentEditable?: (boolean | "false" | "true") | "inherit" | undefined;
|
|
100
|
+
contentEditable?: (boolean | "false" | "true") | "inherit" | "plaintext-only" | undefined;
|
|
102
101
|
contextMenu?: string | undefined;
|
|
103
102
|
dir?: string | undefined;
|
|
104
103
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
@@ -114,11 +113,14 @@ export declare function useInputTextFormField({ id, name, description, inline, h
|
|
|
114
113
|
radioGroup?: string | undefined;
|
|
115
114
|
role?: import("react").AriaRole | undefined;
|
|
116
115
|
about?: string | undefined;
|
|
116
|
+
content?: string | undefined;
|
|
117
117
|
datatype?: string | undefined;
|
|
118
118
|
inlist?: any;
|
|
119
119
|
prefix?: string | undefined;
|
|
120
120
|
property?: string | undefined;
|
|
121
|
+
rel?: string | undefined;
|
|
121
122
|
resource?: string | undefined;
|
|
123
|
+
rev?: string | undefined;
|
|
122
124
|
typeof?: string | undefined;
|
|
123
125
|
vocab?: string | undefined;
|
|
124
126
|
autoCapitalize?: string | undefined;
|
|
@@ -134,55 +136,60 @@ export declare function useInputTextFormField({ id, name, description, inline, h
|
|
|
134
136
|
security?: string | undefined;
|
|
135
137
|
unselectable?: "on" | "off" | undefined;
|
|
136
138
|
is?: string | undefined;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
139
|
+
"aria-activedescendant"?: string | undefined;
|
|
140
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
141
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
142
|
+
"aria-braillelabel"?: string | undefined;
|
|
143
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
144
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
145
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
146
|
+
"aria-colcount"?: number | undefined;
|
|
147
|
+
"aria-colindex"?: number | undefined;
|
|
148
|
+
"aria-colindextext"?: string | undefined;
|
|
149
|
+
"aria-colspan"?: number | undefined;
|
|
150
|
+
"aria-controls"?: string | undefined;
|
|
151
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
152
|
+
"aria-description"?: string | undefined;
|
|
153
|
+
"aria-details"?: string | undefined;
|
|
154
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
155
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
156
|
+
"aria-errormessage"?: string | undefined;
|
|
157
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
158
|
+
"aria-flowto"?: string | undefined;
|
|
159
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
160
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
161
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
162
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
163
|
+
"aria-label"?: string | undefined;
|
|
164
|
+
"aria-labelledby"?: string | undefined;
|
|
165
|
+
"aria-level"?: number | undefined;
|
|
166
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
167
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
168
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
169
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
170
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
171
|
+
"aria-owns"?: string | undefined;
|
|
172
|
+
"aria-placeholder"?: string | undefined;
|
|
173
|
+
"aria-posinset"?: number | undefined;
|
|
174
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
175
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
176
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
177
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
178
|
+
"aria-roledescription"?: string | undefined;
|
|
179
|
+
"aria-rowcount"?: number | undefined;
|
|
180
|
+
"aria-rowindex"?: number | undefined;
|
|
181
|
+
"aria-rowindextext"?: string | undefined;
|
|
182
|
+
"aria-rowspan"?: number | undefined;
|
|
183
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
184
|
+
"aria-setsize"?: number | undefined;
|
|
185
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
186
|
+
"aria-valuemax"?: number | undefined;
|
|
187
|
+
"aria-valuemin"?: number | undefined;
|
|
188
|
+
"aria-valuenow"?: number | undefined;
|
|
189
|
+
"aria-valuetext"?: string | undefined;
|
|
183
190
|
children?: import("react").ReactNode | undefined;
|
|
184
191
|
dangerouslySetInnerHTML?: {
|
|
185
|
-
__html: string;
|
|
192
|
+
__html: string | TrustedHTML;
|
|
186
193
|
} | undefined;
|
|
187
194
|
onCopy?: import("react").ClipboardEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
188
195
|
onCopyCapture?: import("react").ClipboardEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
@@ -319,9 +326,7 @@ export declare function useInputTextFormField({ id, name, description, inline, h
|
|
|
319
326
|
onPointerCancel?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
320
327
|
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
321
328
|
onPointerEnter?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
322
|
-
onPointerEnterCapture?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
323
329
|
onPointerLeave?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
324
|
-
onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
325
330
|
onPointerOver?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
326
331
|
onPointerOverCapture?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
327
332
|
onPointerOut?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { InputTimeProps } from "./InputTime.types";
|
|
2
|
-
export declare function InputTime({ defaultValue, value, onChange, ...params }: InputTimeProps): JSX.Element;
|
|
3
|
+
export declare function InputTime({ defaultValue, value, onChange, ...params }: InputTimeProps): React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { InputTimeRebuiltProps } from "./InputTime.types";
|
|
2
|
-
export declare function InputTimeRebuilt({ value, onChange, ...params }: InputTimeRebuiltProps): JSX.Element;
|
|
3
|
+
export declare function InputTimeRebuilt({ value, onChange, ...params }: InputTimeRebuiltProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { InputTimeLegacyProps, InputTimeRebuiltProps } from "./InputTime.types";
|
|
2
3
|
export type InputTimeShimProps = InputTimeLegacyProps | InputTimeRebuiltProps;
|
|
3
|
-
export declare function InputTime(props: InputTimeShimProps): JSX.Element;
|
|
4
|
+
export declare function InputTime(props: InputTimeShimProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
interface InputValidationProps {
|
|
2
3
|
/**
|
|
3
4
|
* Validation message to be displayed
|
|
@@ -5,5 +6,5 @@ interface InputValidationProps {
|
|
|
5
6
|
readonly message: string;
|
|
6
7
|
readonly visible?: boolean;
|
|
7
8
|
}
|
|
8
|
-
export declare function InputValidation({ message, visible, }: InputValidationProps): JSX.Element | null;
|
|
9
|
+
export declare function InputValidation({ message, visible, }: InputValidationProps): React.JSX.Element | null;
|
|
9
10
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties } from "react";
|
|
1
|
+
import React, { CSSProperties } from "react";
|
|
2
2
|
interface PresentedImage {
|
|
3
3
|
title?: string;
|
|
4
4
|
caption?: string;
|
|
@@ -40,5 +40,5 @@ interface LightBoxProps {
|
|
|
40
40
|
*/
|
|
41
41
|
readonly boxSizing?: CSSProperties["boxSizing"];
|
|
42
42
|
}
|
|
43
|
-
export declare function LightBox({ boxSizing, open, images, imageIndex, onRequestClose, }: LightBoxProps): JSX.Element;
|
|
43
|
+
export declare function LightBox({ boxSizing, open, images, imageIndex, onRequestClose, }: LightBoxProps): React.JSX.Element;
|
|
44
44
|
export {};
|
package/dist/Link/Link.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
2
|
export interface LinkProps {
|
|
3
3
|
readonly url: string;
|
|
4
4
|
readonly ariaLabel?: string;
|
|
5
5
|
readonly ariaExpanded?: boolean;
|
|
6
6
|
readonly external?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare function Link({ url, children, ariaLabel, ariaExpanded, external, }: PropsWithChildren<LinkProps>): JSX.Element;
|
|
8
|
+
export declare function Link({ url, children, ariaLabel, ariaExpanded, external, }: PropsWithChildren<LinkProps>): React.JSX.Element;
|
package/dist/List/List.d.ts
CHANGED
|
@@ -37,5 +37,5 @@ interface ListProps<T extends BaseListItemProps = ListItemProps> {
|
|
|
37
37
|
*/
|
|
38
38
|
readonly defaultSectionHeader?: string;
|
|
39
39
|
}
|
|
40
|
-
export declare function List<T extends BaseListItemProps = ListItemProps>({ items, customRenderItem, customItemStyles, customRenderSection, customSectionStyles, defaultSectionHeader, labelledBy, }: ListProps<T>): JSX.Element;
|
|
40
|
+
export declare function List<T extends BaseListItemProps = ListItemProps>({ items, customRenderItem, customItemStyles, customRenderSection, customSectionStyles, defaultSectionHeader, labelledBy, }: ListProps<T>): React.JSX.Element;
|
|
41
41
|
export {};
|
package/dist/List/ListItem.d.ts
CHANGED
|
@@ -56,4 +56,4 @@ export interface ListItemProps extends BaseListItemProps {
|
|
|
56
56
|
export declare function ListItem<T extends BaseListItemProps = ListItemProps>(props: T & ListItemProps & {
|
|
57
57
|
readonly customRenderItem?: (item: T) => React.ReactNode;
|
|
58
58
|
readonly customItemStyles?: boolean;
|
|
59
|
-
}): JSX.Element;
|
|
59
|
+
}): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
interface MarkdownProps {
|
|
2
3
|
/**
|
|
3
4
|
* Rich text content.
|
|
@@ -19,5 +20,5 @@ interface MarkdownProps {
|
|
|
19
20
|
*/
|
|
20
21
|
readonly onLinkClick?: (target: HTMLAnchorElement) => void;
|
|
21
22
|
}
|
|
22
|
-
export declare function Markdown({ content, externalLink, basicUsage, onLinkClick, }: MarkdownProps): JSX.Element;
|
|
23
|
+
export declare function Markdown({ content, externalLink, basicUsage, onLinkClick, }: MarkdownProps): React.JSX.Element;
|
|
23
24
|
export {};
|
package/dist/Menu/Menu.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface SectionProps {
|
|
|
20
20
|
*/
|
|
21
21
|
actions: ActionProps[];
|
|
22
22
|
}
|
|
23
|
-
export declare function Menu({ activator, items }: MenuProps): JSX.Element;
|
|
23
|
+
export declare function Menu({ activator, items }: MenuProps): React.JSX.Element;
|
|
24
24
|
export interface ActionProps {
|
|
25
25
|
/**
|
|
26
26
|
* Action label
|
package/dist/Modal/Modal.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ModalLegacyProps } from "./Modal.types";
|
|
2
|
-
export declare function ModalLegacy({ open, title, size, dismissible, children, primaryAction, secondaryAction, tertiaryAction, onRequestClose, }: ModalLegacyProps): JSX.Element;
|
|
3
|
+
export declare function ModalLegacy({ open, title, size, dismissible, children, primaryAction, secondaryAction, tertiaryAction, onRequestClose, }: ModalLegacyProps): React.JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
2
|
import { HeaderProps, ModalActionsProps, ModalContentProps as ModalContainerProps } from "./Modal.types";
|
|
3
|
-
export declare function ModalHeader({ title, children }: HeaderProps): JSX.Element;
|
|
4
|
-
export declare function ModalActions({ primary, secondary, tertiary, }: ModalActionsProps): JSX.Element;
|
|
5
|
-
export declare function ModalActivator({ children }: PropsWithChildren): JSX.Element;
|
|
3
|
+
export declare function ModalHeader({ title, children }: HeaderProps): React.JSX.Element;
|
|
4
|
+
export declare function ModalActions({ primary, secondary, tertiary, }: ModalActionsProps): React.JSX.Element;
|
|
5
|
+
export declare function ModalActivator({ children }: PropsWithChildren): React.JSX.Element;
|
|
6
6
|
/**
|
|
7
7
|
* Background overlay for the modal. Used in the ModalContent.
|
|
8
8
|
*/
|
|
9
|
-
export declare function ModalOverlay(): JSX.Element;
|
|
10
|
-
export declare function ModalContent({ children }: ModalContainerProps): JSX.Element;
|
|
9
|
+
export declare function ModalOverlay(): React.JSX.Element;
|
|
10
|
+
export declare function ModalContent({ children }: ModalContainerProps): React.JSX.Element;
|
|
@@ -11,5 +11,5 @@ export interface ModalProviderProps {
|
|
|
11
11
|
readonly dismissible?: boolean;
|
|
12
12
|
readonly modalLabelledBy?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare function ModalProvider({ children, open, size, onRequestClose, activatorRef: refProp, dismissible, modalLabelledBy, }: ModalProviderProps): JSX.Element;
|
|
14
|
+
export declare function ModalProvider({ children, open, size, onRequestClose, activatorRef: refProp, dismissible, modalLabelledBy, }: ModalProviderProps): React.JSX.Element;
|
|
15
15
|
export declare function useModalContext(): ModalContextType;
|
package/dist/Modal/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ModalProvider } from "./ModalContext.rebuilt";
|
|
2
3
|
import { ModalActions, ModalActivator, ModalContent, ModalHeader } from "./Modal.rebuilt";
|
|
3
4
|
import { ModalLegacyProps } from "./Modal.types";
|
|
4
5
|
export type { ModalLegacyProps as ModalProps } from "./Modal.types";
|
|
5
|
-
declare function Modal(props: ModalLegacyProps): JSX.Element;
|
|
6
|
+
declare function Modal(props: ModalLegacyProps): React.JSX.Element;
|
|
6
7
|
declare namespace Modal {
|
|
7
8
|
var Header: typeof ModalHeader;
|
|
8
9
|
var Actions: typeof ModalActions;
|