@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/Thumbnail.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./dist/Thumbnail";
|
package/Thumbnail.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true,
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var Thumbnail = require("./dist/Thumbnail");
|
|
8
|
+
|
|
9
|
+
Object.keys(Thumbnail).forEach(function(key) {
|
|
10
|
+
if (key === "default" || key === "__esModule") return;
|
|
11
|
+
Object.defineProperty(exports, key, {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function get() {
|
|
14
|
+
return Thumbnail[key];
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
2
|
declare const transitions: {
|
|
3
3
|
fromBottom: import("framer-motion").Variants;
|
|
4
4
|
fromTop: import("framer-motion").Variants;
|
|
@@ -20,5 +20,5 @@ interface AnimatedPresenceProps extends Required<PropsWithChildren> {
|
|
|
20
20
|
*/
|
|
21
21
|
readonly initial?: boolean;
|
|
22
22
|
}
|
|
23
|
-
export declare function AnimatedPresence(props: AnimatedPresenceProps): JSX.Element;
|
|
23
|
+
export declare function AnimatedPresence(props: AnimatedPresenceProps): React.JSX.Element;
|
|
24
24
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
2
|
import { IconNames } from "@jobber/design";
|
|
3
3
|
export interface AnimatedSwitcherProps {
|
|
4
4
|
/**
|
|
@@ -20,9 +20,9 @@ export interface AnimatedSwitcherProps {
|
|
|
20
20
|
*/
|
|
21
21
|
readonly type?: "slideFromBottom" | "fade";
|
|
22
22
|
}
|
|
23
|
-
export declare function AnimatedSwitcher({ initialChild, switched, switchTo, type, }: AnimatedSwitcherProps): JSX.Element;
|
|
23
|
+
export declare function AnimatedSwitcher({ initialChild, switched, switchTo, type, }: AnimatedSwitcherProps): React.JSX.Element;
|
|
24
24
|
export declare namespace AnimatedSwitcher {
|
|
25
|
-
var Icon: ({ switchToIcon, switched, initialIcon, }: AnimatedSwitcherIconProps) => JSX.Element;
|
|
25
|
+
var Icon: ({ switchToIcon, switched, initialIcon, }: AnimatedSwitcherIconProps) => React.JSX.Element;
|
|
26
26
|
}
|
|
27
27
|
interface AnimatedSwitcherIconProps extends Pick<AnimatedSwitcherProps, "switched"> {
|
|
28
28
|
readonly initialIcon: IconNames;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { AtlantisPortalContentProps } from "./AtlantisPortalContent.types";
|
|
2
|
-
export declare function AtlantisPortalContent({ children, }: AtlantisPortalContentProps): JSX.Element;
|
|
3
|
+
export declare function AtlantisPortalContent({ children, }: AtlantisPortalContentProps): React.JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { AtlantisThemeContextProviderProps, AtlantisThemeContextValue } from "./types";
|
|
2
3
|
export declare const atlantisThemeContextDefaultValues: AtlantisThemeContextValue;
|
|
3
|
-
export declare function AtlantisThemeContextProvider({ children, dangerouslyOverrideTheme, }: AtlantisThemeContextProviderProps): JSX.Element;
|
|
4
|
+
export declare function AtlantisThemeContextProvider({ children, dangerouslyOverrideTheme, }: AtlantisThemeContextProviderProps): React.JSX.Element;
|
|
4
5
|
export declare function useAtlantisTheme(): AtlantisThemeContextValue;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ref, RefAttributes } from "react";
|
|
1
|
+
import React, { Ref, RefAttributes } from "react";
|
|
2
2
|
import { AnyOption, AutocompleteProps, Option } from "./Autocomplete.types";
|
|
3
3
|
import { InputTextRef } from "../InputText";
|
|
4
|
-
declare function AutocompleteInternal<GenericOption extends AnyOption = AnyOption, GenericOptionValue extends Option = Option, GenericGetOptionsValue extends AnyOption = AnyOption>({ initialOptions, value, allowFreeForm, size, debounce: debounceRate, onChange, getOptions, placeholder, onBlur, onFocus, validations, customRenderMenu, ...inputProps }: AutocompleteProps<GenericOption, GenericOptionValue, GenericGetOptionsValue>, ref: Ref<InputTextRef>): JSX.Element;
|
|
4
|
+
declare function AutocompleteInternal<GenericOption extends AnyOption = AnyOption, GenericOptionValue extends Option = Option, GenericGetOptionsValue extends AnyOption = AnyOption>({ initialOptions, value, allowFreeForm, size, debounce: debounceRate, onChange, getOptions, placeholder, onBlur, onFocus, validations, customRenderMenu, ...inputProps }: AutocompleteProps<GenericOption, GenericOptionValue, GenericGetOptionsValue>, ref: Ref<InputTextRef>): React.JSX.Element;
|
|
5
5
|
export declare const Autocomplete: <GenericOption extends AnyOption = AnyOption, GenericOptionValue extends Option = Option, GenericGetOptionsValue extends AnyOption = AnyOption>(props: AutocompleteProps<GenericOption, GenericOptionValue, GenericGetOptionsValue> & RefAttributes<InputTextRef>) => ReturnType<typeof AutocompleteInternal>;
|
|
6
6
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
1
|
+
import React, { RefObject } from "react";
|
|
2
2
|
import { AnyOption, Option } from "../Autocomplete.types";
|
|
3
3
|
export interface DefaultMenuProps {
|
|
4
4
|
readonly options: AnyOption[];
|
|
@@ -13,4 +13,4 @@ export interface DefaultMenuProps {
|
|
|
13
13
|
/**
|
|
14
14
|
* Renders the default Menu for the Autocomplete component.
|
|
15
15
|
*/
|
|
16
|
-
export declare function DefaultMenu({ options, selectedOption, onOptionSelect, attachTo, visible, }: DefaultMenuProps): JSX.Element;
|
|
16
|
+
export declare function DefaultMenu({ options, selectedOption, onOptionSelect, attachTo, visible, }: DefaultMenuProps): React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { AnyOption, MenuProps, Option } from "../Autocomplete.types";
|
|
2
|
-
export declare function Menu<GenericOption extends AnyOption = AnyOption, GenericOptionValue extends Option = Option>({ options, selectedOption, onOptionSelect, inputFocused, attachTo, inputRef, customRenderMenu, }: MenuProps<GenericOption, GenericOptionValue>): JSX.Element | null;
|
|
3
|
+
export declare function Menu<GenericOption extends AnyOption = AnyOption, GenericOptionValue extends Option = Option>({ options, selectedOption, onOptionSelect, inputFocused, attachTo, inputRef, customRenderMenu, }: MenuProps<GenericOption, GenericOptionValue>): React.JSX.Element | null;
|
|
@@ -20,4 +20,4 @@ export declare function useAutocompleteMenu({ attachTo, }: {
|
|
|
20
20
|
}) => React.ReactElement;
|
|
21
21
|
menuRef: HTMLElement | null;
|
|
22
22
|
};
|
|
23
|
-
export declare function BaseAutocompleteMenuWrapper(props: PropsWithChildren<BaseAutocompleteMenuWrapperInternalProps>): JSX.Element;
|
|
23
|
+
export declare function BaseAutocompleteMenuWrapper(props: PropsWithChildren<BaseAutocompleteMenuWrapperInternalProps>): React.JSX.Element;
|
|
@@ -23,7 +23,7 @@ export interface MenuOptionProps {
|
|
|
23
23
|
/**
|
|
24
24
|
* The rendering of the default MenuOption
|
|
25
25
|
*/
|
|
26
|
-
export declare function MenuOption({ isHighlighted, option, onOptionSelect, isSelected, addSeparators, UNSAFE_className, UNSAFE_style, }: MenuOptionProps): JSX.Element;
|
|
26
|
+
export declare function MenuOption({ isHighlighted, option, onOptionSelect, isSelected, addSeparators, UNSAFE_className, UNSAFE_style, }: MenuOptionProps): React.JSX.Element;
|
|
27
27
|
interface MenuOptionContentProps {
|
|
28
28
|
readonly UNSAFE_className?: {
|
|
29
29
|
readonly icon?: string;
|
|
@@ -40,7 +40,7 @@ interface MenuOptionContentProps {
|
|
|
40
40
|
readonly option: Option;
|
|
41
41
|
readonly isSelected: boolean;
|
|
42
42
|
}
|
|
43
|
-
export declare function MenuOptionContent({ option, isSelected, UNSAFE_className, UNSAFE_style, }: MenuOptionContentProps): JSX.Element;
|
|
43
|
+
export declare function MenuOptionContent({ option, isSelected, UNSAFE_className, UNSAFE_style, }: MenuOptionContentProps): React.JSX.Element;
|
|
44
44
|
export interface MenuGroupOptionProps {
|
|
45
45
|
readonly option: AnyOption;
|
|
46
46
|
readonly UNSAFE_className?: {
|
|
@@ -53,7 +53,7 @@ export interface MenuGroupOptionProps {
|
|
|
53
53
|
/**
|
|
54
54
|
* The rendering of the default MenuGroupOption
|
|
55
55
|
*/
|
|
56
|
-
export declare function MenuGroupOptions({ option, UNSAFE_className, UNSAFE_style, }: MenuGroupOptionProps): JSX.Element;
|
|
56
|
+
export declare function MenuGroupOptions({ option, UNSAFE_className, UNSAFE_style, }: MenuGroupOptionProps): React.JSX.Element;
|
|
57
57
|
/**
|
|
58
58
|
* The base component for the MenuGroupOption
|
|
59
59
|
*/
|
|
@@ -61,7 +61,7 @@ export interface BaseMenuGroupOptionProps extends PropsWithChildren {
|
|
|
61
61
|
readonly UNSAFE_className?: string;
|
|
62
62
|
readonly UNSAFE_style?: React.CSSProperties;
|
|
63
63
|
}
|
|
64
|
-
export declare function BaseMenuGroupOption({ children, UNSAFE_className, UNSAFE_style, }: BaseMenuGroupOptionProps): JSX.Element;
|
|
64
|
+
export declare function BaseMenuGroupOption({ children, UNSAFE_className, UNSAFE_style, }: BaseMenuGroupOptionProps): React.JSX.Element;
|
|
65
65
|
export interface BaseMenuOptionProps<GenericOption extends AnyOption = AnyOption> extends PropsWithChildren {
|
|
66
66
|
readonly option?: GenericOption;
|
|
67
67
|
readonly onOptionSelect?: (option?: GenericOption) => void;
|
|
@@ -73,5 +73,5 @@ export interface BaseMenuOptionProps<GenericOption extends AnyOption = AnyOption
|
|
|
73
73
|
/**
|
|
74
74
|
* Renders the base option component. The component takes children and renders them inside a button.
|
|
75
75
|
*/
|
|
76
|
-
export declare function BaseMenuOption<GenericOption extends AnyOption = AnyOption>({ option, isHighlighted, onOptionSelect, addSeparators, children, UNSAFE_className, UNSAFE_style, }: BaseMenuOptionProps<GenericOption>): JSX.Element;
|
|
76
|
+
export declare function BaseMenuOption<GenericOption extends AnyOption = AnyOption>({ option, isHighlighted, onOptionSelect, addSeparators, children, UNSAFE_className, UNSAFE_style, }: BaseMenuOptionProps<GenericOption>): React.JSX.Element;
|
|
77
77
|
export {};
|
package/dist/Avatar/Avatar.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties } from "react";
|
|
1
|
+
import React, { CSSProperties } from "react";
|
|
2
2
|
import { XOR } from "ts-xor";
|
|
3
3
|
import { IconProps } from "../Icon";
|
|
4
4
|
type AvatarSize = "base" | "large" | "small";
|
|
@@ -51,7 +51,7 @@ interface AvatarWithInitialsProps extends AvatarFoundationProps {
|
|
|
51
51
|
readonly initials: string;
|
|
52
52
|
}
|
|
53
53
|
export type AvatarProps = XOR<AvatarWithImageProps, AvatarWithInitialsProps>;
|
|
54
|
-
export declare function Avatar({ imageUrl, name, initials, size, color, UNSAFE_className, UNSAFE_style, }: AvatarProps): JSX.Element;
|
|
54
|
+
export declare function Avatar({ imageUrl, name, initials, size, color, UNSAFE_className, UNSAFE_style, }: AvatarProps): React.JSX.Element;
|
|
55
55
|
interface InitialsUnsafeClassNameProps {
|
|
56
56
|
initials?: string;
|
|
57
57
|
fallbackIcon?: IconProps["UNSAFE_className"];
|
package/dist/Banner/Banner.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
2
|
import { IconNames } from "@jobber/design";
|
|
3
3
|
import { BannerType } from "./Banner.types";
|
|
4
4
|
import { ButtonProps } from "../Button";
|
|
@@ -28,5 +28,5 @@ interface BannerProps {
|
|
|
28
28
|
*/
|
|
29
29
|
readonly controlledVisiblity?: boolean;
|
|
30
30
|
}
|
|
31
|
-
export declare function Banner({ children, type, primaryAction, dismissible, icon, onDismiss, controlledVisiblity, }: BannerProps): JSX.Element | null;
|
|
31
|
+
export declare function Banner({ children, type, primaryAction, dismissible, icon, onDismiss, controlledVisiblity, }: BannerProps): React.JSX.Element | null;
|
|
32
32
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { IconNames } from "@jobber/design";
|
|
2
3
|
import { BannerType } from "../../Banner.types";
|
|
3
4
|
export interface BannerIconProps {
|
|
4
5
|
readonly icon: IconNames;
|
|
5
6
|
readonly type: BannerType;
|
|
6
7
|
}
|
|
7
|
-
export declare function BannerIcon({ icon, type }: BannerIconProps): JSX.Element;
|
|
8
|
+
export declare function BannerIcon({ icon, type }: BannerIconProps): React.JSX.Element;
|
package/dist/Box/Box.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import type { BoxProps } from "./Box.types";
|
|
2
|
-
export declare function Box({ alignItems, alignSelf, as: Tag, background, border, borderColor, children, direction, gap, height, justifyContent, margin, overflow, padding, position, preserveWhiteSpace, radius, width, ...props }: BoxProps): JSX.Element;
|
|
3
|
+
export declare function Box({ alignItems, alignSelf, as: Tag, background, border, borderColor, children, direction, gap, height, justifyContent, margin, overflow, padding, position, preserveWhiteSpace, radius, width, ...props }: BoxProps): React.JSX.Element;
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ButtonProps } from "./Button.types";
|
|
2
3
|
import { ButtonIcon, ButtonLabel } from "./ButtonInternals";
|
|
3
|
-
declare function Button(props: ButtonProps): JSX.Element;
|
|
4
|
+
declare function Button(props: ButtonProps): React.JSX.Element;
|
|
4
5
|
declare namespace Button {
|
|
5
6
|
var Label: typeof ButtonLabel;
|
|
6
7
|
var Icon: typeof ButtonIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ButtonProps } from "./Button.types";
|
|
2
3
|
import { IconProps } from "../Icon";
|
|
3
4
|
import { TypographyProps } from "../Typography";
|
|
@@ -5,6 +6,6 @@ import { TypographyProps } from "../Typography";
|
|
|
5
6
|
* For backwards compatibility with the legacy button
|
|
6
7
|
* @deprecated Used composed solution instead
|
|
7
8
|
*/
|
|
8
|
-
export declare function ButtonContent({ label, icon, size, iconOnRight, UNSAFE_className, UNSAFE_style, }: Pick<ButtonProps, "label" | "icon" | "size" | "iconOnRight" | "UNSAFE_className" | "UNSAFE_style">): JSX.Element;
|
|
9
|
-
export declare function ButtonIcon({ size: sizeProp, ...props }: Pick<IconProps, "size" | "name" | "testID" | "UNSAFE_className" | "UNSAFE_style">): JSX.Element;
|
|
10
|
-
export declare function ButtonLabel({ element, fontWeight, fontFamily, size: sizeProp, ...props }: Omit<TypographyProps, "textColor">): JSX.Element;
|
|
9
|
+
export declare function ButtonContent({ label, icon, size, iconOnRight, UNSAFE_className, UNSAFE_style, }: Pick<ButtonProps, "label" | "icon" | "size" | "iconOnRight" | "UNSAFE_className" | "UNSAFE_style">): React.JSX.Element;
|
|
10
|
+
export declare function ButtonIcon({ size: sizeProp, ...props }: Pick<IconProps, "size" | "name" | "testID" | "UNSAFE_className" | "UNSAFE_style">): React.JSX.Element;
|
|
11
|
+
export declare function ButtonLabel({ element, fontWeight, fontFamily, size: sizeProp, ...props }: Omit<TypographyProps, "textColor">): React.JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
2
|
import { ButtonSize } from "./Button.types";
|
|
3
3
|
interface ButtonContextProps {
|
|
4
4
|
size: ButtonSize;
|
|
5
5
|
}
|
|
6
6
|
export declare function ButtonProvider({ children, size, }: PropsWithChildren<{
|
|
7
7
|
readonly size?: ButtonSize;
|
|
8
|
-
}>): JSX.Element;
|
|
8
|
+
}>): React.JSX.Element;
|
|
9
9
|
export declare function useButtonContext(): ButtonContextProps;
|
|
10
10
|
export {};
|
|
@@ -3,4 +3,4 @@ export interface ButtonDismissProps {
|
|
|
3
3
|
onClick?(event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>): void;
|
|
4
4
|
readonly ariaLabel: string;
|
|
5
5
|
}
|
|
6
|
-
export declare function ButtonDismiss({ onClick, ariaLabel }: ButtonDismissProps): JSX.Element;
|
|
6
|
+
export declare function ButtonDismiss({ onClick, ariaLabel }: ButtonDismissProps): React.JSX.Element;
|
package/dist/Card/Card.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ type CardPropOptions = LinkCardProps | ClickableCardProps | RegularCardProps;
|
|
|
52
52
|
* </Card>
|
|
53
53
|
* ```
|
|
54
54
|
*/
|
|
55
|
-
declare function CardHeaderCompoundComponent({ children }: CardHeaderProps): JSX.Element;
|
|
55
|
+
declare function CardHeaderCompoundComponent({ children }: CardHeaderProps): React.JSX.Element;
|
|
56
56
|
/**
|
|
57
57
|
* Body component for the Card.
|
|
58
58
|
* Used in the compound component pattern to provide a consistent content layout.
|
|
@@ -69,8 +69,8 @@ declare function CardHeaderCompoundComponent({ children }: CardHeaderProps): JSX
|
|
|
69
69
|
* </Card>
|
|
70
70
|
* ```
|
|
71
71
|
*/
|
|
72
|
-
declare function CardBodyCompoundComponent({ children }: CardBodyProps): JSX.Element;
|
|
73
|
-
export declare function Card(props: CardPropOptions): JSX.Element;
|
|
72
|
+
declare function CardBodyCompoundComponent({ children }: CardBodyProps): React.JSX.Element;
|
|
73
|
+
export declare function Card(props: CardPropOptions): React.JSX.Element;
|
|
74
74
|
export declare namespace Card {
|
|
75
75
|
var Header: typeof CardHeaderCompoundComponent;
|
|
76
76
|
var Body: typeof CardBodyCompoundComponent;
|
|
@@ -8,5 +8,5 @@ interface ClickableCardProps {
|
|
|
8
8
|
* This is only intended to be used in the Card component.
|
|
9
9
|
* Please use `<Card onClick={onClick} />` component instead.
|
|
10
10
|
*/
|
|
11
|
-
export declare function CardClickable({ className, onClick, children, }: ClickableCardProps): JSX.Element;
|
|
11
|
+
export declare function CardClickable({ className, onClick, children, }: ClickableCardProps): React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { CardProps } from "./types";
|
|
2
3
|
/**
|
|
3
4
|
* Intended to be used in the Card component.
|
|
4
5
|
* Use `<Card header={header} />` component instead.
|
|
5
6
|
*/
|
|
6
|
-
export declare function CardHeader({ title, header, }: Pick<CardProps, "title" | "header">): JSX.Element;
|
|
7
|
+
export declare function CardHeader({ title, header, }: Pick<CardProps, "title" | "header">): React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { CheckboxLegacyProps } from "./Checkbox.types";
|
|
2
|
-
export declare function CheckboxLegacy({ checked, defaultChecked, disabled, label, name, value, indeterminate, description, children, onBlur, onChange, onFocus, }: CheckboxLegacyProps): JSX.Element;
|
|
3
|
+
export declare function CheckboxLegacy({ checked, defaultChecked, disabled, label, name, value, indeterminate, description, children, onBlur, onChange, onFocus, }: CheckboxLegacyProps): React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { CheckboxRebuiltProps } from "./Checkbox.types";
|
|
2
|
-
export declare function CheckboxRebuilt({ checked, defaultChecked, disabled, label, name, value, indeterminate, description, id, onBlur, onChange, onFocus, }: CheckboxRebuiltProps): JSX.Element;
|
|
3
|
+
export declare function CheckboxRebuilt({ checked, defaultChecked, disabled, label, name, value, indeterminate, description, id, onBlur, onChange, onFocus, }: CheckboxRebuiltProps): React.JSX.Element;
|
package/dist/Checkbox/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { CheckboxLegacyProps, CheckboxRebuiltProps } from "./Checkbox.types";
|
|
2
3
|
type CheckboxShimProps = CheckboxLegacyProps | CheckboxRebuiltProps;
|
|
3
|
-
export declare function Checkbox(props: CheckboxShimProps): JSX.Element;
|
|
4
|
+
export declare function Checkbox(props: CheckboxShimProps): React.JSX.Element;
|
|
4
5
|
export type { CheckboxLegacyProps, CheckboxRebuiltProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
2
|
-
export declare function ChipPrefix({ children }: PropsWithChildren): JSX.Element;
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
|
+
export declare function ChipPrefix({ children }: PropsWithChildren): React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ChipSelectableProps } from "../../Chip.types";
|
|
2
|
-
export declare function ChipSelectable({ selected, ...rest }: ChipSelectableProps): JSX.Element;
|
|
3
|
+
export declare function ChipSelectable({ selected, ...rest }: ChipSelectableProps): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from "react";
|
|
2
|
-
export declare function ChipSuffix({ children, className, onClick, testID, ariaLabel, }: ChipSuffixProps): JSX.Element;
|
|
2
|
+
export declare function ChipSuffix({ children, className, onClick, testID, ariaLabel, }: ChipSuffixProps): React.JSX.Element;
|
|
3
3
|
export interface ChipSuffixProps extends PropsWithChildren {
|
|
4
4
|
readonly className?: string;
|
|
5
5
|
readonly testID?: string;
|
package/dist/Chips/Chip.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { InternalChipProps } from "./ChipTypes";
|
|
2
3
|
export interface ChipProps extends Pick<InternalChipProps, "label" | "prefix" | "disabled" | "invalid"> {
|
|
3
4
|
/**
|
|
@@ -5,4 +6,4 @@ export interface ChipProps extends Pick<InternalChipProps, "label" | "prefix" |
|
|
|
5
6
|
*/
|
|
6
7
|
readonly value: string;
|
|
7
8
|
}
|
|
8
|
-
export declare function Chip(props: ChipProps): JSX.Element;
|
|
9
|
+
export declare function Chip(props: ChipProps): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MouseEvent } from "react";
|
|
1
|
+
import React, { MouseEvent } from "react";
|
|
2
2
|
import { InternalChipProps } from "./ChipTypes";
|
|
3
3
|
interface ChipDismissibleProps extends Pick<InternalChipProps, "label" | "disabled" | "invalid" | "prefix" | "onClick"> {
|
|
4
4
|
onRequestRemove(event: MouseEvent<HTMLDivElement>): void;
|
|
5
5
|
}
|
|
6
|
-
export declare function ChipDismissible({ label, disabled, invalid, prefix, onClick, onRequestRemove, }: ChipDismissibleProps): JSX.Element;
|
|
6
|
+
export declare function ChipDismissible({ label, disabled, invalid, prefix, onClick, onRequestRemove, }: ChipDismissibleProps): React.JSX.Element;
|
|
7
7
|
export {};
|
package/dist/Chips/Chips.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { InternalChipProps } from "./ChipTypes";
|
|
2
|
-
export declare function InternalChip({ label, active, disabled, invalid, prefix, suffix, tabIndex, ariaLabel, onClick, onKeyDown, }: InternalChipProps): JSX.Element;
|
|
3
|
+
export declare function InternalChip({ label, active, disabled, invalid, prefix, suffix, tabIndex, ariaLabel, onClick, onKeyDown, }: InternalChipProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
2
|
import { ChipButtonProps } from "./InternalChipButton";
|
|
3
3
|
import { InternalChipProps } from "./ChipTypes";
|
|
4
4
|
import { AvatarProps } from "../Avatar";
|
|
@@ -6,5 +6,5 @@ import { IconProps } from "../Icon";
|
|
|
6
6
|
interface InternalChipAffixProps extends Pick<InternalChipProps, "active" | "invalid" | "disabled"> {
|
|
7
7
|
readonly affix?: ReactElement<AvatarProps | IconProps | ChipButtonProps>;
|
|
8
8
|
}
|
|
9
|
-
export declare function InternalChipAffix({ affix, active, invalid, disabled, }: InternalChipAffixProps): JSX.Element;
|
|
9
|
+
export declare function InternalChipAffix({ affix, active, invalid, disabled, }: InternalChipAffixProps): React.JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MouseEvent } from "react";
|
|
1
|
+
import React, { MouseEvent } from "react";
|
|
2
2
|
import { IconNames } from "@jobber/design";
|
|
3
3
|
export interface ChipButtonProps {
|
|
4
4
|
readonly icon: IconNames;
|
|
@@ -7,4 +7,4 @@ export interface ChipButtonProps {
|
|
|
7
7
|
readonly label: string;
|
|
8
8
|
onClick(event: MouseEvent<HTMLDivElement>): void;
|
|
9
9
|
}
|
|
10
|
-
export declare function InternalChipButton({ icon, invalid, disabled, label, onClick, }: ChipButtonProps): JSX.Element;
|
|
10
|
+
export declare function InternalChipButton({ icon, invalid, disabled, label, onClick, }: ChipButtonProps): React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { InternalChipDismissibleProps } from "./InternalChipDismissibleTypes";
|
|
2
|
-
export declare function InternalChipDismissible(props: InternalChipDismissibleProps): JSX.Element;
|
|
3
|
+
export declare function InternalChipDismissible(props: InternalChipDismissibleProps): React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ChipDismissibleInputProps } from "./InternalChipDismissibleTypes";
|
|
2
|
-
export declare function InternalChipDismissibleInput(props: ChipDismissibleInputProps): JSX.Element;
|
|
3
|
+
export declare function InternalChipDismissibleInput(props: ChipDismissibleInputProps): React.JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ChipMultiSelectProps } from "./ChipsTypes";
|
|
2
3
|
type InternalChipChoiceMultipleProps = Pick<ChipMultiSelectProps, "selected" | "onChange" | "children" | "onClick" | "showSelectedSuffix">;
|
|
3
|
-
export declare function InternalChipMultiSelect({ children, selected, showSelectedSuffix, onChange, onClick, }: InternalChipChoiceMultipleProps): JSX.Element;
|
|
4
|
+
export declare function InternalChipMultiSelect({ children, selected, showSelectedSuffix, onChange, onClick, }: InternalChipChoiceMultipleProps): React.JSX.Element;
|
|
4
5
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ChipSingleSelectProps } from "./ChipsTypes";
|
|
2
3
|
type InternalChipChoiceProps = Pick<ChipSingleSelectProps, "selected" | "onChange" | "children" | "onClick" | "name" | "showSelectedSuffix">;
|
|
3
|
-
export declare function InternalChipSingleSelect({ children, selected, name, showSelectedSuffix, onChange, onClick, }: InternalChipChoiceProps): JSX.Element;
|
|
4
|
+
export declare function InternalChipSingleSelect({ children, selected, name, showSelectedSuffix, onChange, onClick, }: InternalChipChoiceProps): React.JSX.Element;
|
|
4
5
|
export {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ClusterProps } from "./types";
|
|
2
|
-
export declare function Cluster({ children, justify, align, gap, collapseBelow, collapsed, autoWidth, as: Tag, dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, }: ClusterProps): JSX.Element;
|
|
3
|
+
export declare function Cluster({ children, justify, align, gap, collapseBelow, collapsed, autoWidth, as: Tag, dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, }: ClusterProps): React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ComboboxActionProps } from "../../Combobox.types";
|
|
2
|
-
export declare function ComboboxAction(props: ComboboxActionProps): JSX.Element | null;
|
|
3
|
+
export declare function ComboboxAction(props: ComboboxActionProps): React.JSX.Element | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
interface ComboboxLoadMoreProps {
|
|
2
3
|
readonly onLoadMore: () => void;
|
|
3
4
|
}
|
|
4
|
-
export declare function ComboboxLoadMore({ onLoadMore }: ComboboxLoadMoreProps): JSX.Element;
|
|
5
|
+
export declare function ComboboxLoadMore({ onLoadMore }: ComboboxLoadMoreProps): React.JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ComboboxTriggerProps } from "../../Combobox.types";
|
|
2
|
-
export declare function ComboboxTrigger({ label, selected, activatorRef, }: ComboboxTriggerProps): JSX.Element;
|
|
3
|
+
export declare function ComboboxTrigger({ label, selected, activatorRef, }: ComboboxTriggerProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
2
|
interface DisplayAction {
|
|
3
3
|
type: "display";
|
|
4
4
|
title?: string;
|
|
@@ -63,7 +63,6 @@ export interface SimpleConfirmationModalProps extends BaseConfirmationModalProps
|
|
|
63
63
|
readonly confirmLabel: string;
|
|
64
64
|
}
|
|
65
65
|
export interface ComplexConfirmationModalProps extends BaseConfirmationModalProps {
|
|
66
|
-
readonly ref: Ref<ConfirmationModalRef>;
|
|
67
66
|
readonly open?: undefined;
|
|
68
67
|
}
|
|
69
68
|
export interface ChildrenMessage extends BaseConfirmationModalProps {
|
|
@@ -74,5 +73,6 @@ export interface StringMessage extends BaseConfirmationModalProps {
|
|
|
74
73
|
message: string;
|
|
75
74
|
children?: never;
|
|
76
75
|
}
|
|
77
|
-
|
|
76
|
+
type ConfirmationModalProps = (SimpleConfirmationModalProps & (StringMessage | ChildrenMessage)) | (ComplexConfirmationModalProps & (StringMessage | ChildrenMessage));
|
|
77
|
+
export declare const ConfirmationModal: React.ForwardRefExoticComponent<ConfirmationModalProps & React.RefAttributes<ConfirmationModalRef>>;
|
|
78
78
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ContainerApplyProps, ContainerProps } from "./types";
|
|
2
3
|
export declare const Container: {
|
|
3
|
-
({ children, name, className, as: Tag, autoWidth, dataAttributes, ariaAttributes, role, id, }: ContainerProps): JSX.Element;
|
|
4
|
-
Apply({ children, className, style, autoWidth, }: ContainerApplyProps): JSX.Element;
|
|
4
|
+
({ children, name, className, as: Tag, autoWidth, dataAttributes, ariaAttributes, role, id, }: ContainerProps): React.JSX.Element;
|
|
5
|
+
Apply({ children, className, style, autoWidth, }: ContainerApplyProps): React.JSX.Element;
|
|
5
6
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ContentBlockProps } from "./types";
|
|
2
|
-
export declare function ContentBlock({ children, maxWidth, andText, gutters, justify, as: Tag, dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, }: ContentBlockProps): JSX.Element;
|
|
3
|
+
export declare function ContentBlock({ children, maxWidth, andText, gutters, justify, as: Tag, dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, }: ContentBlockProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
/**
|
|
2
3
|
* Options for deciding how much information is shown to the user
|
|
3
4
|
* days, hours, minutes, seconds
|
|
@@ -25,5 +26,5 @@ interface CountdownProps {
|
|
|
25
26
|
*/
|
|
26
27
|
onComplete?(): void;
|
|
27
28
|
}
|
|
28
|
-
export declare function Countdown({ date: inputDate, onComplete, showUnits, granularity, }: CountdownProps): JSX.Element;
|
|
29
|
+
export declare function Countdown({ date: inputDate, onComplete, showUnits, granularity, }: CountdownProps): React.JSX.Element;
|
|
29
30
|
export {};
|
package/dist/Cover/Cover.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { CoverCenterContentProps, CoverProps } from "./types";
|
|
2
|
-
export declare function Cover({ children, minHeight, gap, as: Tag, dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, }: CoverProps): JSX.Element;
|
|
3
|
+
export declare function Cover({ children, minHeight, gap, as: Tag, dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, }: CoverProps): React.JSX.Element;
|
|
3
4
|
export declare namespace Cover {
|
|
4
|
-
var Center: ({ children, UNSAFE_className, UNSAFE_style, as: Tag, id, role, ariaAttributes, dataAttributes, }: CoverCenterContentProps) => JSX.Element;
|
|
5
|
+
var Center: ({ children, UNSAFE_className, UNSAFE_style, as: Tag, id, role, ariaAttributes, dataAttributes, }: CoverCenterContentProps) => React.JSX.Element;
|
|
5
6
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
interface DataDebuggerProps {
|
|
2
3
|
/**
|
|
3
4
|
* Label for the DataDump
|
|
@@ -16,5 +17,5 @@ interface DataDebuggerProps {
|
|
|
16
17
|
*/
|
|
17
18
|
readonly data: unknown;
|
|
18
19
|
}
|
|
19
|
-
export declare function DataDump({ label, defaultOpen, data, }: DataDebuggerProps): JSX.Element;
|
|
20
|
+
export declare function DataDump({ label, defaultOpen, data, }: DataDebuggerProps): React.JSX.Element;
|
|
20
21
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { DataListLayout } from "./components/DataListLayout";
|
|
2
3
|
import { DataListFilters } from "./components/DataListFilters";
|
|
3
4
|
import { DataListSearch } from "./components/DataListSearch";
|
|
@@ -8,7 +9,7 @@ import { DataListLayoutActions } from "./components/DataListLayoutActions";
|
|
|
8
9
|
import { DataListBulkActionProps, DataListObject, DataListProps } from "./DataList.types";
|
|
9
10
|
import { DataListBulkActions } from "./components/DataListBulkActions";
|
|
10
11
|
import { DataListStatusBar } from "./components/DataListStatusBar";
|
|
11
|
-
export declare function DataList<T extends DataListObject>({ selected, sorting, ...props }: DataListProps<T>): JSX.Element;
|
|
12
|
+
export declare function DataList<T extends DataListObject>({ selected, sorting, ...props }: DataListProps<T>): React.JSX.Element;
|
|
12
13
|
export declare namespace DataList {
|
|
13
14
|
var Layout: typeof DataListLayout;
|
|
14
15
|
var LayoutActions: typeof DataListLayoutActions;
|
|
@@ -18,6 +19,6 @@ export declare namespace DataList {
|
|
|
18
19
|
var ItemActions: typeof DataListItemActions;
|
|
19
20
|
var ItemAction: typeof DataListAction;
|
|
20
21
|
var BatchActions: typeof DataListBulkActions;
|
|
21
|
-
var BatchAction: (props: DataListBulkActionProps) => JSX.Element;
|
|
22
|
+
var BatchAction: (props: DataListBulkActionProps) => React.JSX.Element;
|
|
22
23
|
var StatusBar: typeof DataListStatusBar;
|
|
23
24
|
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { DataListActionProps, DataListObject } from "@jobber/components/DataList/DataList.types";
|
|
2
|
-
export declare function DataListAction<T extends DataListObject>({ label, icon, destructive, visible, onClick, actionUrl, }: DataListActionProps<T>): JSX.Element | null;
|
|
3
|
+
export declare function DataListAction<T extends DataListObject>({ label, icon, destructive, visible, onClick, actionUrl, }: DataListActionProps<T>): React.JSX.Element | null;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { DataListActionsProps, DataListObject } from "../../DataList.types";
|
|
2
|
-
export declare function DataListActions<T extends DataListObject>({ children, itemsToExpose, }: DataListActionsProps<T>): JSX.Element;
|
|
3
|
+
export declare function DataListActions<T extends DataListObject>({ children, itemsToExpose, }: DataListActionsProps<T>): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
2
|
interface DataListActionsMenuProps {
|
|
3
3
|
readonly visible: boolean;
|
|
4
4
|
readonly position: {
|
|
@@ -7,5 +7,5 @@ interface DataListActionsMenuProps {
|
|
|
7
7
|
};
|
|
8
8
|
readonly onRequestClose: () => void;
|
|
9
9
|
}
|
|
10
|
-
export declare function DataListActionsMenu({ visible, position, onRequestClose, children, }: PropsWithChildren<DataListActionsMenuProps>): JSX.Element;
|
|
10
|
+
export declare function DataListActionsMenu({ visible, position, onRequestClose, children, }: PropsWithChildren<DataListActionsMenuProps>): React.JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { DataListBulkActionsProps } from "../../DataList.types";
|
|
2
3
|
export declare function DataListBulkActions(_: DataListBulkActionsProps): null;
|
|
3
|
-
export declare function InternalDataListBulkActions(): JSX.Element | null;
|
|
4
|
+
export declare function InternalDataListBulkActions(): React.JSX.Element | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { DataListEmptyStateProps } from "../../DataList.types";
|
|
2
3
|
export declare function DataListEmptyState(_: DataListEmptyStateProps): null;
|
|
3
|
-
export declare function InternalDataListEmptyState(): JSX.Element;
|
|
4
|
+
export declare function InternalDataListEmptyState(): React.JSX.Element;
|