@jobber/components 6.82.4 → 6.82.5
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/.eslintrc.cjs +14 -0
- package/dist/AnimatedPresence/AnimatedPresence.d.ts +2 -1
- package/dist/AnimatedPresence/AnimatedPresence.transitions.d.ts +1 -1
- package/dist/AnimatedSwitcher/AnimatedSwitcher.d.ts +3 -2
- package/dist/AnimatedSwitcher/transitions.d.ts +1 -1
- package/dist/AtlantisContext/AtlantisContext.d.ts +1 -1
- package/dist/AtlantisPortalContent/AtlantisPortalContent.d.ts +1 -1
- package/dist/AtlantisThemeContext/AtlantisThemeContext.d.ts +1 -1
- package/dist/AtlantisThemeContext/index.d.ts +1 -1
- package/dist/AtlantisThemeContext/types.d.ts +2 -2
- package/dist/AtlantisThemeContext/updateTheme.d.ts +1 -1
- package/dist/Autocomplete/Autocomplete.d.ts +4 -3
- package/dist/Autocomplete/Autocomplete.types.d.ts +3 -3
- package/dist/Autocomplete/Autocomplete.utils.d.ts +1 -1
- package/dist/Autocomplete/Menu/DefaultMenu.d.ts +1 -1
- package/dist/Autocomplete/Menu/Menu.d.ts +1 -1
- package/dist/Autocomplete/Menu/MenuWrapper.d.ts +3 -2
- package/dist/Autocomplete/Option.d.ts +3 -2
- package/dist/Autocomplete/index.d.ts +2 -2
- package/dist/Autocomplete/useKeyboardNavigation.d.ts +1 -1
- package/dist/Autocomplete/useRepositionMenu.d.ts +1 -1
- package/dist/Avatar/Avatar.d.ts +4 -3
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Banner/Banner.types.d.ts +2 -2
- package/dist/Banner/BannerContext.d.ts +1 -1
- package/dist/Button/Button.d.ts +3 -2
- package/dist/Button/Button.types.d.ts +6 -6
- package/dist/Button/ButtonInternals.d.ts +3 -3
- package/dist/Button/ButtonProvider.d.ts +3 -2
- package/dist/Button/index.d.ts +2 -2
- package/dist/Button/useButtonStyles.d.ts +1 -1
- package/dist/Card/Card.d.ts +1 -1
- package/dist/Card/CardClickable.d.ts +2 -1
- package/dist/Card/CardHeader.d.ts +1 -1
- package/dist/Card/types.d.ts +4 -4
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/Checkbox.types.d.ts +2 -2
- package/dist/Checkbox/index.d.ts +1 -1
- package/dist/Chip/Chip.d.ts +1 -1
- package/dist/Chip/Chip.types.d.ts +2 -1
- package/dist/Chip/components/ChipDismissible/ChipDismissible.d.ts +1 -1
- package/dist/Chip/components/ChipPrefix/Chip.Prefix.d.ts +2 -1
- package/dist/Chip/components/ChipSelectable/ChipSelectable.d.ts +1 -1
- package/dist/Chip/components/ChipSuffix/Chip.Suffix.d.ts +2 -1
- package/dist/Chip/hooks/useChildComponent.d.ts +1 -1
- package/dist/Chips/Chip.d.ts +1 -1
- package/dist/Chips/ChipDismissible.d.ts +3 -2
- package/dist/Chips/ChipTypes.d.ts +4 -4
- package/dist/Chips/Chips.d.ts +1 -1
- package/dist/Chips/ChipsTypes.d.ts +2 -2
- package/dist/Chips/InternalChip.d.ts +1 -1
- package/dist/Chips/InternalChipAffix.d.ts +6 -5
- package/dist/Chips/InternalChipButton.d.ts +3 -2
- package/dist/Chips/InternalChipDismissible/InternalChipDismissible.d.ts +1 -1
- package/dist/Chips/InternalChipDismissible/InternalChipDismissibleInput.d.ts +1 -1
- package/dist/Chips/InternalChipDismissible/InternalChipDismissibleTypes.d.ts +2 -2
- package/dist/Chips/InternalChipDismissible/hooks/useInternalChipDismissible.d.ts +2 -2
- package/dist/Chips/InternalChipDismissible/hooks/useInternalChipDismissibleInput.d.ts +4 -3
- package/dist/Chips/InternalChipDismissible/hooks/useRepositionMenu.d.ts +1 -1
- package/dist/Chips/InternalChipMultiSelect.d.ts +1 -1
- package/dist/Chips/InternalChipSingleSelect.d.ts +1 -1
- package/dist/Cluster/Cluster.d.ts +1 -1
- package/dist/Cluster/types.d.ts +1 -1
- package/dist/Combobox/Combobox.d.ts +1 -1
- package/dist/Combobox/Combobox.types.d.ts +1 -1
- package/dist/Combobox/ComboboxProvider.d.ts +3 -2
- package/dist/Combobox/components/ComboboxAction/ComboboxAction.d.ts +1 -1
- package/dist/Combobox/components/ComboboxActivator/ComboboxActivator.d.ts +1 -1
- package/dist/Combobox/components/ComboboxContent/ComboboxContent.d.ts +1 -1
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/ComboboxContentHeader.d.ts +1 -1
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/ComboboxContentList.d.ts +1 -1
- package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/ComboboxContentSearch.d.ts +1 -1
- package/dist/Combobox/components/ComboboxOption/ComboboxOption.d.ts +1 -1
- package/dist/Combobox/components/ComboboxTrigger/ComboboxTrigger.d.ts +1 -1
- package/dist/Combobox/hooks/useCombobox.d.ts +4 -3
- package/dist/Combobox/hooks/useComboboxAccessibility.d.ts +2 -2
- package/dist/Combobox/hooks/useComboboxActivatorAccessibility.d.ts +1 -1
- package/dist/Combobox/hooks/useComboboxContent.d.ts +1 -1
- package/dist/Combobox/hooks/useComboboxValidation.d.ts +2 -2
- package/dist/Combobox/hooks/useMakeComboboxHandlers.d.ts +2 -2
- package/dist/Combobox/index.d.ts +1 -1
- package/dist/ConfirmationModal/ConfirmationModal.d.ts +2 -1
- package/dist/ConfirmationModal/index.d.ts +1 -1
- package/dist/Container/Container.d.ts +1 -1
- package/dist/Container/types.d.ts +2 -2
- package/dist/Content/Content.d.ts +1 -1
- package/dist/ContentBlock/ContentBlock.d.ts +1 -1
- package/dist/ContentBlock/types.d.ts +2 -2
- package/dist/Cover/Cover.d.ts +1 -1
- package/dist/DataList/DataList.d.ts +1 -1
- package/dist/DataList/DataList.types.d.ts +6 -6
- package/dist/DataList/DataList.utils.d.ts +5 -4
- package/dist/DataList/components/DataListAction/DataListAction.d.ts +1 -1
- package/dist/DataList/components/DataListActions/DataListActions.d.ts +1 -1
- package/dist/DataList/components/DataListActionsMenu/DataListActionsMenu.d.ts +2 -1
- package/dist/DataList/components/DataListBulkActions/DataListBulkActions.d.ts +1 -1
- package/dist/DataList/components/DataListEmptyState/DataListEmptyState.d.ts +1 -1
- package/dist/DataList/components/DataListFilters/DataListFilters.d.ts +2 -1
- package/dist/DataList/components/DataListHeader/DataListHeaderCheckbox.d.ts +1 -1
- package/dist/DataList/components/DataListHeaderTile/DataListHeaderTile.d.ts +1 -1
- package/dist/DataList/components/DataListHeaderTile/components/DataListSortingOptions.d.ts +1 -1
- package/dist/DataList/components/DataListItem/DataListItem.d.ts +1 -1
- package/dist/DataList/components/DataListItem/DataListItemInternal.d.ts +1 -1
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/DataListItemClickable.d.ts +2 -1
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/DataListItemClickableInternal.d.ts +3 -2
- package/dist/DataList/components/DataListItemActions/DataListItemActions.d.ts +3 -2
- package/dist/DataList/components/DataListItemActionsOverflow/DataListItemActionsOverflow.d.ts +3 -2
- package/dist/DataList/components/DataListItems/DataListItems.d.ts +1 -1
- package/dist/DataList/components/DataListLayout/DataListLayout.d.ts +1 -1
- package/dist/DataList/components/DataListLayoutActions/DataListLayoutContext/DataListLayoutContext.d.ts +1 -1
- package/dist/DataList/components/DataListSearch/DataListSearch.d.ts +1 -1
- package/dist/DataList/components/DataListStatusBar/DataListStatusBar.d.ts +2 -1
- package/dist/DataList/components/DataListStickyHeader/DataListStickyHeader.d.ts +2 -1
- package/dist/DataList/context/DataListContext/DataListContext.d.ts +1 -1
- package/dist/DataList/context/DataListLayoutContext/DataListLayoutContext.d.ts +1 -1
- package/dist/DataList/hooks/useBatchSelect.d.ts +1 -1
- package/dist/DataList/hooks/useGetItemActions.d.ts +2 -2
- package/dist/DataList/hooks/useResponsiveSizing.d.ts +1 -1
- package/dist/DataList/index.d.ts +1 -1
- package/dist/DataTable/Body.d.ts +3 -2
- package/dist/DataTable/BodyLoading.d.ts +1 -1
- package/dist/DataTable/DataTable.d.ts +4 -3
- package/dist/DataTable/Footer.d.ts +1 -1
- package/dist/DataTable/Header.d.ts +2 -2
- package/dist/DataTable/Pagination.d.ts +1 -1
- package/dist/DataTable/components/DataTableSortableHeader.d.ts +1 -1
- package/dist/DataTable/createTableSettings.d.ts +2 -2
- package/dist/DataTable/index.d.ts +2 -1
- package/dist/DataTable/test-utilities/mocks.d.ts +1 -1
- package/dist/DataTable/types.d.ts +2 -2
- package/dist/DatePicker/DatePicker.d.ts +5 -4
- package/dist/DatePicker/DatePickerActivator.d.ts +4 -2
- package/dist/DatePicker/DatePickerCustomHeader.d.ts +1 -1
- package/dist/DatePicker/useFocusOnSelectedDate.d.ts +1 -1
- package/dist/DescriptionList/DescriptionList.d.ts +2 -1
- package/dist/Disclosure/Disclosure.d.ts +2 -1
- package/dist/Drawer/Drawer.d.ts +2 -1
- package/dist/Drawer/DrawerGrid.d.ts +2 -1
- package/dist/Emphasis/Emphasis.d.ts +3 -2
- package/dist/FeatureSwitch/FeatureSwitch.d.ts +2 -1
- package/dist/Flex/Flex.d.ts +3 -2
- package/dist/Form/Form.d.ts +2 -1
- package/dist/Form/index.d.ts +1 -1
- package/dist/FormField/FormField.d.ts +1 -1
- package/dist/FormField/FormFieldAffix.d.ts +4 -3
- package/dist/FormField/FormFieldDescription.d.ts +2 -1
- package/dist/FormField/FormFieldTypes.d.ts +6 -5
- package/dist/FormField/FormFieldWrapper.d.ts +4 -3
- package/dist/FormField/hooks/useAtlantisFormField.d.ts +2 -2
- package/dist/FormField/hooks/useAtlantisFormFieldActions.d.ts +3 -3
- package/dist/FormField/hooks/useAtlantisReactHookForm.d.ts +1 -1
- package/dist/FormField/hooks/useFormFieldWrapperStyles.d.ts +2 -2
- package/dist/FormField/hooks/useToolbar.d.ts +1 -1
- package/dist/FormField/index.d.ts +3 -3
- package/dist/FormatFile/FormatFile.d.ts +2 -2
- package/dist/FormatFile/types.d.ts +1 -1
- package/dist/FormatFile/useFormatFile.d.ts +1 -1
- package/dist/FormatFile/useFormatFileStyles.d.ts +1 -1
- package/dist/Frame/Frame.d.ts +1 -1
- package/dist/Frame/types.d.ts +1 -1
- package/dist/Gallery/Gallery.d.ts +1 -1
- package/dist/Gallery/GalleryTypes.d.ts +2 -2
- package/dist/Grid/Grid.d.ts +2 -1
- package/dist/Heading/Heading.d.ts +3 -2
- package/dist/Icon/Icon.d.ts +4 -3
- package/dist/InlineLabel/InlineLabel.d.ts +2 -1
- package/dist/InlineLabel/index.d.ts +1 -1
- package/dist/InputAvatar/InputAvatar.d.ts +2 -2
- package/dist/InputDate/InputDate.d.ts +1 -1
- package/dist/InputDate/InputDate.rebuilt.d.ts +1 -1
- package/dist/InputDate/InputDate.types.d.ts +2 -2
- package/dist/InputDate/index.d.ts +1 -1
- package/dist/InputDate/useInputDateActivatorActions.d.ts +3 -3
- package/dist/InputEmail/InputEmail.d.ts +1 -1
- package/dist/InputEmail/InputEmail.rebuilt.d.ts +1 -1
- package/dist/InputEmail/InputEmail.types.d.ts +2 -2
- package/dist/InputEmail/hooks/useInputEmailActions.d.ts +2 -2
- package/dist/InputEmail/hooks/useInputEmailFormField.d.ts +1 -1
- package/dist/InputEmail/index.d.ts +2 -2
- package/dist/InputFile/InputFile.d.ts +3 -2
- package/dist/InputFile/InputFileButton.d.ts +1 -1
- package/dist/InputFile/InputFileContentContext.d.ts +1 -1
- package/dist/InputFile/InputFileDescription.d.ts +3 -2
- package/dist/InputFile/InputFileHintText.d.ts +3 -2
- package/dist/InputFile/InputFileValidationErrors.d.ts +1 -1
- package/dist/InputFile/index.d.ts +1 -1
- package/dist/InputGroup/InputGroup.d.ts +2 -1
- package/dist/InputNumber/InputNumber.d.ts +1 -1
- package/dist/InputNumber/InputNumber.rebuilt.d.ts +1 -1
- package/dist/InputNumber/InputNumber.rebuilt.types.d.ts +3 -2
- package/dist/InputNumber/index.d.ts +3 -3
- package/dist/InputPassword/InputPassword.d.ts +1 -1
- package/dist/InputPhoneNumber/InputMask.d.ts +4 -3
- package/dist/InputPhoneNumber/InputPhoneNumber.d.ts +1 -1
- package/dist/InputPhoneNumber/InputPhoneNumber.rebuilt.d.ts +1 -1
- package/dist/InputPhoneNumber/InputPhoneNumber.types.d.ts +3 -3
- package/dist/InputPhoneNumber/hooks/useInputPhoneActions.d.ts +2 -2
- package/dist/InputPhoneNumber/hooks/useInputPhoneFormField.d.ts +1 -1
- package/dist/InputPhoneNumber/index.d.ts +2 -2
- package/dist/InputText/InputText.d.ts +1 -1
- package/dist/InputText/InputText.rebuilt.d.ts +1 -1
- package/dist/InputText/InputText.types.d.ts +3 -3
- package/dist/InputText/index.d.ts +2 -2
- package/dist/InputText/useInputTextActions.d.ts +2 -2
- package/dist/InputText/useInputTextFormField.d.ts +1 -1
- package/dist/InputText/useTextAreaResize.d.ts +2 -2
- package/dist/InputTime/InputTime.d.ts +1 -1
- package/dist/InputTime/InputTime.rebuilt.d.ts +1 -1
- package/dist/InputTime/InputTime.types.d.ts +1 -1
- package/dist/InputTime/hooks/useTimePredict.d.ts +1 -1
- package/dist/InputTime/index.d.ts +1 -1
- package/dist/LightBox/LightBox.d.ts +2 -1
- package/dist/LightBox-cjs.js +0 -1
- package/dist/LightBox-es.js +0 -1
- package/dist/Link/Link.d.ts +2 -1
- package/dist/Link/index.d.ts +2 -1
- package/dist/List/List.d.ts +1 -1
- package/dist/List/ListItem.d.ts +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/Menu/Menu.d.ts +3 -2
- package/dist/Menu/index.d.ts +1 -1
- package/dist/Modal/Modal.d.ts +1 -1
- package/dist/Modal/Modal.rebuilt.d.ts +3 -2
- package/dist/Modal/Modal.types.d.ts +6 -5
- package/dist/Modal/ModalContext.rebuilt.d.ts +4 -3
- package/dist/Modal/index.d.ts +1 -1
- package/dist/MultiSelect/DropDownMenu.d.ts +3 -2
- package/dist/MultiSelect/MultiSelect.d.ts +3 -2
- package/dist/Page/Page.d.ts +5 -4
- package/dist/Page/index.d.ts +1 -1
- package/dist/Popover/Popover.d.ts +1 -1
- package/dist/Popover/Popover.types.d.ts +3 -3
- package/dist/Popover/PopoverContext.d.ts +4 -3
- package/dist/Popover/usePopover.d.ts +1 -1
- package/dist/RadioGroup/RadioGroup.d.ts +2 -1
- package/dist/RadioGroup/RadioOption.d.ts +3 -2
- package/dist/RecurringSelect/CurrentRecurrenceComponent.d.ts +1 -1
- package/dist/RecurringSelect/RecurringSelect.d.ts +1 -1
- package/dist/RecurringSelect/components/DayOfMonthSelect.d.ts +1 -1
- package/dist/RecurringSelect/components/MonthlyDayOfWeekSelect.d.ts +1 -1
- package/dist/RecurringSelect/index.d.ts +2 -1
- package/dist/ResponsiveSwitcher/ResponsiveSwitcher.d.ts +1 -1
- package/dist/SegmentedControl/SegmentedControlBase.d.ts +2 -1
- package/dist/SegmentedControl/SegmentedControlOption.d.ts +2 -1
- package/dist/SegmentedControl/SegmentedControlProvider.d.ts +2 -1
- package/dist/Select/Option.d.ts +2 -1
- package/dist/Select/Select.d.ts +1 -1
- package/dist/Select/Select.rebuilt.d.ts +1 -1
- package/dist/Select/Select.types.d.ts +1 -1
- package/dist/Select/hooks/useSelectActions.d.ts +1 -1
- package/dist/Select/hooks/useSelectFormField.d.ts +1 -1
- package/dist/Select/index.d.ts +2 -2
- package/dist/SideDrawer/SideDrawerBackButton.d.ts +1 -1
- package/dist/SideKick/SideKick.d.ts +1 -1
- package/dist/SideKick/types.d.ts +1 -1
- package/dist/Stack/Stack.d.ts +1 -1
- package/dist/StatusIndicator/StatusIndicator.d.ts +1 -1
- package/dist/StatusLabel/StatusLabel.d.ts +1 -1
- package/dist/Table/Body.d.ts +2 -1
- package/dist/Table/Cells/Cell.d.ts +2 -1
- package/dist/Table/Cells/CellCurrency.d.ts +2 -2
- package/dist/Table/Footer.d.ts +2 -1
- package/dist/Table/Header.d.ts +2 -1
- package/dist/Table/Row.d.ts +2 -1
- package/dist/Table/Table.d.ts +2 -1
- package/dist/Tabs/Tabs.d.ts +2 -1
- package/dist/Tabs/hooks/useTabsOverflow.d.ts +1 -1
- package/dist/Text/Text.d.ts +3 -2
- package/dist/Thumbnail/Thumbnail.d.ts +1 -1
- package/dist/Thumbnail/ThumbnailImage.d.ts +1 -1
- package/dist/Tiles/Tiles.d.ts +1 -1
- package/dist/Toast/Toast.d.ts +1 -1
- package/dist/Toast/showToast.d.ts +1 -1
- package/dist/Tooltip/Tooltip.d.ts +3 -2
- package/dist/Tooltip/useTooltipPositioning.d.ts +1 -1
- package/dist/Typography/Typography.d.ts +3 -2
- package/dist/Typography/types.d.ts +1 -1
- package/dist/sharedHelpers/getMappedAtlantisSpaceToken.d.ts +1 -1
- package/dist/utils/mergeRefs.d.ts +1 -1
- package/package.json +2 -2
package/.eslintrc.cjs
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
+
overrides: [
|
|
3
|
+
{
|
|
4
|
+
files: ["*.ts", "*.tsx"],
|
|
5
|
+
parserOptions: {
|
|
6
|
+
project: "tsconfig.json",
|
|
7
|
+
tsconfigRootDir: __dirname,
|
|
8
|
+
sourceType: "module",
|
|
9
|
+
},
|
|
10
|
+
rules: {
|
|
11
|
+
"@typescript-eslint/consistent-type-exports": "error",
|
|
12
|
+
"@typescript-eslint/consistent-type-imports": "error",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
],
|
|
2
16
|
rules: {
|
|
3
17
|
"import/no-internal-modules": [
|
|
4
18
|
"error",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import type { IconNames } from "@jobber/design";
|
|
3
4
|
export interface AnimatedSwitcherProps {
|
|
4
5
|
/**
|
|
5
6
|
* Determines when to switch the component to the `switchTo` prop.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AtlantisPortalContentProps } from "./AtlantisPortalContent.types";
|
|
2
|
+
import type { AtlantisPortalContentProps } from "./AtlantisPortalContent.types";
|
|
3
3
|
export declare function AtlantisPortalContent({ children, }: AtlantisPortalContentProps): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AtlantisThemeContextProviderProps, AtlantisThemeContextValue } from "./types";
|
|
2
|
+
import type { AtlantisThemeContextProviderProps, AtlantisThemeContextValue } from "./types";
|
|
3
3
|
export declare const atlantisThemeContextDefaultValues: AtlantisThemeContextValue;
|
|
4
4
|
export declare function AtlantisThemeContextProvider({ children, dangerouslyOverrideTheme, }: AtlantisThemeContextProviderProps): React.JSX.Element;
|
|
5
5
|
export declare function useAtlantisTheme(): AtlantisThemeContextValue;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { AtlantisThemeContextProvider, atlantisThemeContextDefaultValues, useAtlantisTheme, } from "./AtlantisThemeContext";
|
|
2
|
-
export { THEME_CHANGE_EVENT,
|
|
2
|
+
export { THEME_CHANGE_EVENT, type AtlantisThemeContextProviderProps, type AtlantisThemeContextValue, type Theme, type ThemeChangeDetails, } from "./types";
|
|
3
3
|
export { updateTheme } from "./updateTheme";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { tokens } from "@jobber/design";
|
|
2
|
-
import { PropsWithChildren } from "react";
|
|
1
|
+
import type { tokens } from "@jobber/design";
|
|
2
|
+
import type { PropsWithChildren } from "react";
|
|
3
3
|
export interface AtlantisThemeContextValue {
|
|
4
4
|
/**
|
|
5
5
|
* The theme of the application.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import type { Ref, RefAttributes } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { type AnyOption, type AutocompleteProps, type Option } from "./Autocomplete.types";
|
|
4
|
+
import type { InputTextRef } from "../InputText";
|
|
4
5
|
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
6
|
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
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
2
|
-
import { FormFieldProps } from "../FormField";
|
|
3
|
-
import { InputTextRef } from "../InputText";
|
|
1
|
+
import type { RefObject } from "react";
|
|
2
|
+
import type { FormFieldProps } from "../FormField";
|
|
3
|
+
import type { InputTextRef } from "../InputText";
|
|
4
4
|
type OptionValue = string | number;
|
|
5
5
|
export interface BaseOption {
|
|
6
6
|
label: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyOption, GroupOption, Option } from "./Autocomplete.types";
|
|
1
|
+
import { type AnyOption, type GroupOption, type Option } from "./Autocomplete.types";
|
|
2
2
|
export declare function isOptionSelected(selectedOption: Option | undefined, option: Option): boolean;
|
|
3
3
|
/**
|
|
4
4
|
* Helper function to determine if the option is a group. This is used to
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AnyOption, MenuProps, Option } from "../Autocomplete.types";
|
|
2
|
+
import { type AnyOption, type MenuProps, type Option } from "../Autocomplete.types";
|
|
3
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;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import type { UseRepositionMenu } from "../useRepositionMenu";
|
|
3
4
|
export interface BaseAutocompleteMenuWrapperInternalProps {
|
|
4
5
|
readonly setMenuRef: UseRepositionMenu["setMenuRef"];
|
|
5
6
|
readonly floatStyles: UseRepositionMenu["styles"];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { type AnyOption, type Option } from "./Autocomplete.types";
|
|
3
4
|
export interface MenuOptionProps {
|
|
4
5
|
readonly isHighlighted: boolean;
|
|
5
6
|
readonly option: AnyOption;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Autocomplete } from "./Autocomplete";
|
|
2
|
-
export { MenuOptionProps, BaseMenuOption, BaseMenuOptionProps, MenuOption, BaseMenuGroupOption, BaseMenuGroupOptionProps, } from "./Option";
|
|
3
|
-
export { AnyOption, AutocompleteProps, BaseOption, CustomOptionsMenuProp, GroupOption, OptionCollection, Option, } from "./Autocomplete.types";
|
|
2
|
+
export { type MenuOptionProps, BaseMenuOption, type BaseMenuOptionProps, MenuOption, BaseMenuGroupOption, type BaseMenuGroupOptionProps, } from "./Option";
|
|
3
|
+
export { type AnyOption, type AutocompleteProps, type BaseOption, type CustomOptionsMenuProp, type GroupOption, type OptionCollection, type Option, } from "./Autocomplete.types";
|
|
4
4
|
export { KeyboardAction, getRequestedIndexChange, useKeyboardNavigation, useCustomKeyboardNavigation, } from "./useKeyboardNavigation";
|
|
5
5
|
export { useRepositionMenu } from "./useRepositionMenu";
|
|
6
6
|
export { BaseAutocompleteMenuWrapper, useAutocompleteMenu, } from "./Menu/MenuWrapper";
|
package/dist/Avatar/Avatar.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import type { XOR } from "ts-xor";
|
|
4
|
+
import type { IconProps } from "../Icon";
|
|
4
5
|
type AvatarSize = "base" | "large" | "small";
|
|
5
6
|
interface AvatarFoundationProps {
|
|
6
7
|
/**
|
package/dist/Avatar/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Avatar, AvatarProps } from "./Avatar";
|
|
1
|
+
export { Avatar, type AvatarProps } from "./Avatar";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type CSSProperties, type PropsWithChildren, type ReactNode } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import type { IconNames, tokens } from "@jobber/design";
|
|
3
3
|
import { type ButtonProps } from "../Button";
|
|
4
4
|
import { type ButtonDismissProps } from "../ButtonDismiss";
|
|
5
|
-
import { IconProps } from "../Icon";
|
|
5
|
+
import type { IconProps } from "../Icon";
|
|
6
6
|
export type BannerType = "notice" | "success" | "warning" | "error";
|
|
7
7
|
type TokensType = keyof typeof tokens;
|
|
8
8
|
type Prefixes = TokensType extends `${infer Prefix}-${string}` ? Prefix : never;
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ButtonProps } from "./Button.types";
|
|
2
|
+
import { type ButtonProps } from "./Button.types";
|
|
3
3
|
import { ButtonIcon, ButtonLabel } from "./ButtonInternals";
|
|
4
4
|
declare function Button(props: ButtonProps): React.JSX.Element;
|
|
5
5
|
declare namespace Button {
|
|
6
6
|
var Label: typeof ButtonLabel;
|
|
7
7
|
var Icon: typeof ButtonIcon;
|
|
8
8
|
}
|
|
9
|
-
export {
|
|
9
|
+
export type { ButtonProps };
|
|
10
|
+
export { Button };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IconNames } from "@jobber/design";
|
|
2
|
-
import { LinkProps } from "react-router-dom";
|
|
3
|
-
import { XOR } from "ts-xor";
|
|
4
|
-
import { CSSProperties } from "react";
|
|
5
|
-
import { TypographyProps } from "../Typography/Typography";
|
|
6
|
-
import { IconProps } from "../Icon/Icon";
|
|
1
|
+
import type { IconNames } from "@jobber/design";
|
|
2
|
+
import type { LinkProps } from "react-router-dom";
|
|
3
|
+
import type { XOR } from "ts-xor";
|
|
4
|
+
import type { CSSProperties } from "react";
|
|
5
|
+
import type { TypographyProps } from "../Typography/Typography";
|
|
6
|
+
import type { IconProps } from "../Icon/Icon";
|
|
7
7
|
export type HTMLButtonType = "button" | "submit";
|
|
8
8
|
export type ButtonVariation = "work" | "learning" | "subtle" | "destructive";
|
|
9
9
|
export type ButtonSize = "small" | "base" | "large";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ButtonProps } from "./Button.types";
|
|
3
|
-
import { IconProps } from "../Icon";
|
|
4
|
-
import { TypographyProps } from "../Typography";
|
|
2
|
+
import { type ButtonProps } from "./Button.types";
|
|
3
|
+
import { type IconProps } from "../Icon";
|
|
4
|
+
import { type TypographyProps } from "../Typography";
|
|
5
5
|
/**
|
|
6
6
|
* For backwards compatibility with the legacy button
|
|
7
7
|
* @deprecated Used composed solution instead
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import type { ButtonSize } from "./Button.types";
|
|
3
4
|
interface ButtonContextProps {
|
|
4
5
|
size: ButtonSize;
|
|
5
6
|
}
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Button } from "./Button";
|
|
2
|
-
export * from "./Button.types";
|
|
3
|
-
export { useButtonStyles, UseButtonStylesProps } from "./useButtonStyles";
|
|
2
|
+
export type * from "./Button.types";
|
|
3
|
+
export { useButtonStyles, type UseButtonStylesProps } from "./useButtonStyles";
|
|
4
4
|
export { useButtonContext } from "./ButtonProvider";
|
package/dist/Card/Card.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { CardBodyProps, CardHeaderProps, CardProps } from "./types";
|
|
2
|
+
import type { CardBodyProps, CardHeaderProps, CardProps } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* Props for a card that acts as a link.
|
|
5
5
|
* When url is provided, the card becomes clickable and navigates to the specified URL.
|
package/dist/Card/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from "react";
|
|
2
|
-
import colors from "./cardcolors.module.css";
|
|
3
|
-
import { ButtonProps } from "../Button";
|
|
4
|
-
import { MenuProps } from "../Menu";
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
import type colors from "./cardcolors.module.css";
|
|
3
|
+
import { type ButtonProps } from "../Button";
|
|
4
|
+
import { type MenuProps } from "../Menu";
|
|
5
5
|
export type ActionProps = ReactElement<Omit<ButtonProps, "size" | "fullWidth"> | MenuProps>;
|
|
6
6
|
export interface HeaderActionProps {
|
|
7
7
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { CheckboxLegacyProps } from "./Checkbox.types";
|
|
2
|
+
import type { CheckboxLegacyProps } from "./Checkbox.types";
|
|
3
3
|
export declare function CheckboxLegacy({ checked, defaultChecked, disabled, label, name, value, indeterminate, description, children, onBlur, onChange, onFocus, }: CheckboxLegacyProps): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from "react";
|
|
2
|
-
import { XOR } from "ts-xor";
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
import type { XOR } from "ts-xor";
|
|
3
3
|
export interface BaseCheckboxProps {
|
|
4
4
|
/**
|
|
5
5
|
* Determines if the checkbox is checked or not.
|
package/dist/Checkbox/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { CheckboxLegacyProps, CheckboxRebuiltProps } from "./Checkbox.types";
|
|
2
|
+
import type { CheckboxLegacyProps, CheckboxRebuiltProps } from "./Checkbox.types";
|
|
3
3
|
type CheckboxShimProps = CheckboxLegacyProps | CheckboxRebuiltProps;
|
|
4
4
|
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxShimProps & React.RefAttributes<HTMLInputElement>>;
|
|
5
5
|
export type { CheckboxLegacyProps, CheckboxRebuiltProps };
|
package/dist/Chip/Chip.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ChipPrefix } from "./components/ChipPrefix/Chip.Prefix";
|
|
3
3
|
import { ChipSuffix } from "./components/ChipSuffix/Chip.Suffix";
|
|
4
|
-
import { ChipProps } from "./Chip.types";
|
|
4
|
+
import type { ChipProps } from "./Chip.types";
|
|
5
5
|
declare const ChipNamespace: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLDivElement | HTMLButtonElement>> & {
|
|
6
6
|
Prefix: typeof ChipPrefix;
|
|
7
7
|
Suffix: typeof ChipSuffix;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
|
+
import React from "react";
|
|
2
3
|
export declare function ChipSuffix({ children, className, onClick, testID, ariaLabel, }: ChipSuffixProps): React.JSX.Element;
|
|
3
4
|
export interface ChipSuffixProps extends PropsWithChildren {
|
|
4
5
|
readonly className?: string;
|
package/dist/Chips/Chip.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { InternalChipProps } from "./ChipTypes";
|
|
2
|
+
import type { InternalChipProps } from "./ChipTypes";
|
|
3
3
|
export interface ChipProps extends Pick<InternalChipProps, "label" | "prefix" | "disabled" | "invalid"> {
|
|
4
4
|
/**
|
|
5
5
|
* The value that gets returned on the `<Chips>`'s onChange callback.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type { MouseEvent } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import type { InternalChipProps } from "./ChipTypes";
|
|
3
4
|
interface ChipDismissibleProps extends Pick<InternalChipProps, "label" | "disabled" | "invalid" | "prefix" | "onClick"> {
|
|
4
5
|
onRequestRemove(event: MouseEvent<HTMLDivElement>): void;
|
|
5
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { KeyboardEvent, MouseEvent, ReactElement } from "react";
|
|
2
|
-
import { ChipButtonProps } from "./InternalChipButton";
|
|
3
|
-
import { AvatarProps } from "../Avatar";
|
|
4
|
-
import { IconProps } from "../Icon";
|
|
1
|
+
import type { KeyboardEvent, MouseEvent, ReactElement } from "react";
|
|
2
|
+
import { type ChipButtonProps } from "./InternalChipButton";
|
|
3
|
+
import { type AvatarProps } from "../Avatar";
|
|
4
|
+
import { type IconProps } from "../Icon";
|
|
5
5
|
export interface InternalChipProps {
|
|
6
6
|
/**
|
|
7
7
|
* Label of the chip.
|
package/dist/Chips/Chips.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MouseEvent, ReactElement } from "react";
|
|
2
|
-
import { ChipProps } from "./Chip";
|
|
1
|
+
import type { MouseEvent, ReactElement } from "react";
|
|
2
|
+
import type { ChipProps } from "./Chip";
|
|
3
3
|
interface ChipFoundationProps {
|
|
4
4
|
readonly children: ReactElement<ChipProps>[];
|
|
5
5
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { InternalChipProps } from "./ChipTypes";
|
|
2
|
+
import type { InternalChipProps } from "./ChipTypes";
|
|
3
3
|
export declare function InternalChip({ label, active, disabled, invalid, prefix, suffix, tabIndex, ariaLabel, onClick, onKeyDown, }: InternalChipProps): React.JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { type ChipButtonProps } from "./InternalChipButton";
|
|
4
|
+
import { type InternalChipProps } from "./ChipTypes";
|
|
5
|
+
import { type AvatarProps } from "../Avatar";
|
|
6
|
+
import { type IconProps } from "../Icon";
|
|
6
7
|
interface InternalChipAffixProps extends Pick<InternalChipProps, "active" | "invalid" | "disabled"> {
|
|
7
8
|
readonly affix?: ReactElement<AvatarProps | IconProps | ChipButtonProps>;
|
|
8
9
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type { MouseEvent } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import type { IconNames } from "@jobber/design";
|
|
3
4
|
export interface ChipButtonProps {
|
|
4
5
|
readonly icon: IconNames;
|
|
5
6
|
readonly invalid?: boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { InternalChipDismissibleProps } from "./InternalChipDismissibleTypes";
|
|
2
|
+
import type { InternalChipDismissibleProps } from "./InternalChipDismissibleTypes";
|
|
3
3
|
export declare function InternalChipDismissible(props: InternalChipDismissibleProps): React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ChipDismissibleInputProps } from "./InternalChipDismissibleTypes";
|
|
2
|
+
import type { ChipDismissibleInputProps } from "./InternalChipDismissibleTypes";
|
|
3
3
|
export declare function InternalChipDismissibleInput(props: ChipDismissibleInputProps): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChipProps } from "../Chip";
|
|
2
|
-
import { ChipDismissibleProps } from "../ChipsTypes";
|
|
1
|
+
import type { ChipProps } from "../Chip";
|
|
2
|
+
import type { ChipDismissibleProps } from "../ChipsTypes";
|
|
3
3
|
export type InternalChipDismissibleProps = Omit<ChipDismissibleProps, "type">;
|
|
4
4
|
export interface ChipDismissibleInputProps extends Pick<InternalChipDismissibleProps, "activator" | "isLoadingMore" | "onSearch" | "onLoadMore"> {
|
|
5
5
|
readonly attachTo: React.RefObject<Element | null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { KeyboardEvent, MouseEvent } from "react";
|
|
2
|
-
import { InternalChipDismissibleProps } from "../InternalChipDismissibleTypes";
|
|
1
|
+
import type { KeyboardEvent, MouseEvent } from "react";
|
|
2
|
+
import type { InternalChipDismissibleProps } from "../InternalChipDismissibleTypes";
|
|
3
3
|
export declare function useInternalChipDismissible({ children, selected, onChange, onClick, onCustomAdd, }: InternalChipDismissibleProps): {
|
|
4
4
|
ref: import("react").RefObject<HTMLDivElement>;
|
|
5
5
|
sortedVisibleChipOptions: import("../../Chip").ChipProps[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import type { ChangeEvent, KeyboardEvent } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import type { ChipDismissibleInputOptionProps, ChipDismissibleInputProps } from "../InternalChipDismissibleTypes";
|
|
4
|
+
import type { ChipProps } from "../../Chip";
|
|
4
5
|
export declare function useInternalChipDismissibleInput({ options, isLoadingMore, onCustomOptionSelect, onOptionSelect, onSearch, onlyShowMenuOnSearch, autoSelectOnClickOutside, }: ChipDismissibleInputProps): {
|
|
5
6
|
menuOpen: boolean;
|
|
6
7
|
showInput: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
1
|
+
import type { RefObject } from "react";
|
|
2
2
|
export declare function useRepositionMenu(attachTo: RefObject<Element | null>): {
|
|
3
3
|
setPositionedElementRef: import("react").Dispatch<import("react").SetStateAction<HTMLElement | null | undefined>>;
|
|
4
4
|
targetWidth: number | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ChipMultiSelectProps } from "./ChipsTypes";
|
|
2
|
+
import type { ChipMultiSelectProps } from "./ChipsTypes";
|
|
3
3
|
type InternalChipChoiceMultipleProps = Pick<ChipMultiSelectProps, "selected" | "onChange" | "children" | "onClick" | "showSelectedSuffix">;
|
|
4
4
|
export declare function InternalChipMultiSelect({ children, selected, showSelectedSuffix, onChange, onClick, }: InternalChipChoiceMultipleProps): React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ChipSingleSelectProps } from "./ChipsTypes";
|
|
2
|
+
import type { ChipSingleSelectProps } from "./ChipsTypes";
|
|
3
3
|
type InternalChipChoiceProps = Pick<ChipSingleSelectProps, "selected" | "onChange" | "children" | "onClick" | "name" | "showSelectedSuffix">;
|
|
4
4
|
export declare function InternalChipSingleSelect({ children, selected, name, showSelectedSuffix, onChange, onClick, }: InternalChipChoiceProps): React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ClusterProps } from "./types";
|
|
2
|
+
import type { ClusterProps } from "./types";
|
|
3
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;
|
package/dist/Cluster/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AtlantisBreakpoints } from "../sharedHelpers/getMappedBreakpointWidth";
|
|
1
|
+
import type { AtlantisBreakpoints } from "../sharedHelpers/getMappedBreakpointWidth";
|
|
2
2
|
import { type CommonAllowedElements, type CommonAtlantisProps, type GapSpacing } from "../sharedHelpers/types";
|
|
3
3
|
export interface ClusterProps extends CommonAtlantisProps {
|
|
4
4
|
readonly children: React.ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComboboxProps } from "./Combobox.types";
|
|
1
|
+
import type { ComboboxProps } from "./Combobox.types";
|
|
2
2
|
import { ComboboxAction } from "./components/ComboboxAction";
|
|
3
3
|
import { ComboboxOption as ComboboxOptionComponent } from "./components/ComboboxOption/ComboboxOption";
|
|
4
4
|
import { ComboboxActivator } from "./components/ComboboxActivator";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dispatch, ReactElement, SetStateAction } from "react";
|
|
1
|
+
import type { Dispatch, ReactElement, SetStateAction } from "react";
|
|
2
2
|
type ComboboxFragment = Iterable<ComboboxNode>;
|
|
3
3
|
type ComboboxNode = ReactElement | ComboboxFragment;
|
|
4
4
|
export interface ComboboxProps {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type { MutableRefObject } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { type ComboboxOption } from "./Combobox.types";
|
|
3
4
|
export interface ComboboxProviderProps {
|
|
4
5
|
readonly children: React.ReactNode;
|
|
5
6
|
readonly selected: ComboboxOption[];
|