@salt-ds/lab 1.0.0-alpha.17 → 1.0.0-alpha.19
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/dist-cjs/color-chooser/Swatch.css.js +1 -1
- package/dist-cjs/color-chooser/Swatch.js +9 -0
- package/dist-cjs/color-chooser/Swatch.js.map +1 -1
- package/dist-cjs/combo-box-next/ComboBoxNext.css.js +1 -1
- package/dist-cjs/combo-box-next/ComboBoxNext.js +27 -28
- package/dist-cjs/combo-box-next/ComboBoxNext.js.map +1 -1
- package/dist-cjs/combo-box-next/useComboBox.js +4 -2
- package/dist-cjs/combo-box-next/useComboBox.js.map +1 -1
- package/dist-cjs/combo-box-next/useComboboxPortal.js +16 -10
- package/dist-cjs/combo-box-next/useComboboxPortal.js.map +1 -1
- package/dist-cjs/contact-details/ContactMetadataItem.js +1 -0
- package/dist-cjs/contact-details/ContactMetadataItem.js.map +1 -1
- package/dist-cjs/dialog/DialogActions.js +17 -15
- package/dist-cjs/dialog/DialogActions.js.map +1 -1
- package/dist-cjs/dialog/DialogContent.js +19 -17
- package/dist-cjs/dialog/DialogContent.js.map +1 -1
- package/dist-cjs/drawer/Drawer.js.map +1 -1
- package/dist-cjs/dropdown-next/DropdownNext.css.js +1 -1
- package/dist-cjs/dropdown-next/DropdownNext.js +17 -19
- package/dist-cjs/dropdown-next/DropdownNext.js.map +1 -1
- package/dist-cjs/dropdown-next/useDropdownNext.js +16 -10
- package/dist-cjs/dropdown-next/useDropdownNext.js.map +1 -1
- package/dist-cjs/layer-layout/LayerLayout.js.map +1 -1
- package/dist-cjs/metric/MetricHeader.js +1 -0
- package/dist-cjs/metric/MetricHeader.js.map +1 -1
- package/dist-cjs/navigation-item/NavigationItem.css.js +1 -1
- package/dist-cjs/navigation-item/NavigationItem.js +3 -2
- package/dist-cjs/navigation-item/NavigationItem.js.map +1 -1
- package/dist-cjs/pill/Pill.css.js +1 -1
- package/dist-cjs/progress/CircularProgress/CircularProgress.css.js +1 -1
- package/dist-cjs/progress/CircularProgress/CircularProgress.js +6 -16
- package/dist-cjs/progress/CircularProgress/CircularProgress.js.map +1 -1
- package/dist-cjs/progress/Info.js +3 -2
- package/dist-cjs/progress/Info.js.map +1 -1
- package/dist-cjs/progress/LinearProgress/LinearProgress.css.js +1 -1
- package/dist-cjs/progress/LinearProgress/LinearProgress.js +6 -9
- package/dist-cjs/progress/LinearProgress/LinearProgress.js.map +1 -1
- package/dist-cjs/stepped-tracker/StepLabel/StepLabel.js.map +1 -1
- package/dist-cjs/stepper-input/StepperInput.css.js +1 -1
- package/dist-cjs/tabs/Tab.css.js +1 -1
- package/dist-cjs/tabs/Tab.js +7 -13
- package/dist-cjs/tabs/Tab.js.map +1 -1
- package/dist-cjs/tabs-next/TabNext.css.js +1 -1
- package/dist-cjs/tabs-next/TabNext.js +16 -12
- package/dist-cjs/tabs-next/TabNext.js.map +1 -1
- package/dist-cjs/tabs-next/TabNextContext.js +5 -3
- package/dist-cjs/tabs-next/TabNextContext.js.map +1 -1
- package/dist-cjs/tabs-next/TabstripNext.css.js +1 -1
- package/dist-cjs/tabs-next/TabstripNext.js +37 -26
- package/dist-cjs/tabs-next/TabstripNext.js.map +1 -1
- package/dist-cjs/tokenized-input/TokenizedInput.css.js +1 -1
- package/dist-es/color-chooser/Swatch.css.js +1 -1
- package/dist-es/color-chooser/Swatch.js +9 -0
- package/dist-es/color-chooser/Swatch.js.map +1 -1
- package/dist-es/combo-box-next/ComboBoxNext.css.js +1 -1
- package/dist-es/combo-box-next/ComboBoxNext.js +28 -29
- package/dist-es/combo-box-next/ComboBoxNext.js.map +1 -1
- package/dist-es/combo-box-next/useComboBox.js +4 -2
- package/dist-es/combo-box-next/useComboBox.js.map +1 -1
- package/dist-es/combo-box-next/useComboboxPortal.js +16 -10
- package/dist-es/combo-box-next/useComboboxPortal.js.map +1 -1
- package/dist-es/contact-details/ContactMetadataItem.js +1 -0
- package/dist-es/contact-details/ContactMetadataItem.js.map +1 -1
- package/dist-es/dialog/DialogActions.js +17 -15
- package/dist-es/dialog/DialogActions.js.map +1 -1
- package/dist-es/dialog/DialogContent.js +19 -17
- package/dist-es/dialog/DialogContent.js.map +1 -1
- package/dist-es/drawer/Drawer.js.map +1 -1
- package/dist-es/dropdown-next/DropdownNext.css.js +1 -1
- package/dist-es/dropdown-next/DropdownNext.js +18 -20
- package/dist-es/dropdown-next/DropdownNext.js.map +1 -1
- package/dist-es/dropdown-next/useDropdownNext.js +16 -10
- package/dist-es/dropdown-next/useDropdownNext.js.map +1 -1
- package/dist-es/layer-layout/LayerLayout.js.map +1 -1
- package/dist-es/metric/MetricHeader.js +1 -0
- package/dist-es/metric/MetricHeader.js.map +1 -1
- package/dist-es/navigation-item/NavigationItem.css.js +1 -1
- package/dist-es/navigation-item/NavigationItem.js +3 -2
- package/dist-es/navigation-item/NavigationItem.js.map +1 -1
- package/dist-es/pill/Pill.css.js +1 -1
- package/dist-es/progress/CircularProgress/CircularProgress.css.js +1 -1
- package/dist-es/progress/CircularProgress/CircularProgress.js +6 -16
- package/dist-es/progress/CircularProgress/CircularProgress.js.map +1 -1
- package/dist-es/progress/Info.js +3 -2
- package/dist-es/progress/Info.js.map +1 -1
- package/dist-es/progress/LinearProgress/LinearProgress.css.js +1 -1
- package/dist-es/progress/LinearProgress/LinearProgress.js +6 -9
- package/dist-es/progress/LinearProgress/LinearProgress.js.map +1 -1
- package/dist-es/stepped-tracker/StepLabel/StepLabel.js.map +1 -1
- package/dist-es/stepper-input/StepperInput.css.js +1 -1
- package/dist-es/tabs/Tab.css.js +1 -1
- package/dist-es/tabs/Tab.js +8 -14
- package/dist-es/tabs/Tab.js.map +1 -1
- package/dist-es/tabs-next/TabNext.css.js +1 -1
- package/dist-es/tabs-next/TabNext.js +16 -12
- package/dist-es/tabs-next/TabNext.js.map +1 -1
- package/dist-es/tabs-next/TabNextContext.js +5 -3
- package/dist-es/tabs-next/TabNextContext.js.map +1 -1
- package/dist-es/tabs-next/TabstripNext.css.js +1 -1
- package/dist-es/tabs-next/TabstripNext.js +37 -26
- package/dist-es/tabs-next/TabstripNext.js.map +1 -1
- package/dist-es/tokenized-input/TokenizedInput.css.js +1 -1
- package/dist-types/breadcrumbs/internal/BreadcrumbsContext.d.ts +0 -1
- package/dist-types/breadcrumbs/internal/BreadcrumbsSeparator.d.ts +0 -1
- package/dist-types/breadcrumbs/internal/useFocusMenuRemount.d.ts +0 -1
- package/dist-types/button-bar/OrderedButton.d.ts +0 -1
- package/dist-types/button-bar/internal/ButtonBarContext.d.ts +0 -1
- package/dist-types/calendar/Calendar.d.ts +0 -1
- package/dist-types/calendar/internal/CalendarCarousel.d.ts +0 -1
- package/dist-types/calendar/internal/CalendarContext.d.ts +0 -1
- package/dist-types/cascading-menu/CascadingMenu.d.ts +0 -1
- package/dist-types/cascading-menu/CascadingMenuList.d.ts +0 -1
- package/dist-types/cascading-menu/internal/useMountedRef.d.ts +0 -1
- package/dist-types/color-chooser/AlphaInputField.d.ts +0 -1
- package/dist-types/color-chooser/DictTabs.d.ts +0 -1
- package/dist-types/color-chooser/HexInput.d.ts +0 -1
- package/dist-types/color-chooser/HexInputField.d.ts +0 -1
- package/dist-types/color-chooser/RGBAInputField.d.ts +0 -1
- package/dist-types/color-chooser/Swatches.d.ts +0 -1
- package/dist-types/color-chooser/SwatchesPicker.d.ts +0 -1
- package/dist-types/combo-box-deprecated/internal/MultiSelectComboBox.d.ts +0 -1
- package/dist-types/combo-box-next/useComboBox.d.ts +7 -0
- package/dist-types/combo-box-next/useComboboxPortal.d.ts +7 -0
- package/dist-types/combo-box-next/utils.d.ts +0 -1
- package/dist-types/common-hooks/useTypeahead.d.ts +0 -1
- package/dist-types/contact-details/ContactAvatar.d.ts +0 -1
- package/dist-types/contact-details/ContactFavoriteToggle.d.ts +0 -1
- package/dist-types/contact-details/MailLinkComponent.d.ts +0 -1
- package/dist-types/contact-details/internal/ContactDetailsContext.d.ts +0 -1
- package/dist-types/contact-details/internal/FavoriteToggleWithTooltip.d.ts +0 -1
- package/dist-types/dialog/DialogActions.d.ts +8 -2
- package/dist-types/dialog/DialogCloseButton.d.ts +0 -1
- package/dist-types/dialog/DialogContent.d.ts +8 -2
- package/dist-types/dialog/DialogContext.d.ts +0 -1
- package/dist-types/dialog/useDialog.d.ts +4 -5
- package/dist-types/drawer/Drawer.d.ts +1 -1
- package/dist-types/drawer/useDrawer.d.ts +4 -5
- package/dist-types/dropdown/DropdownBase.d.ts +0 -1
- package/dist-types/dropdown-next/useDropdownNext.d.ts +7 -0
- package/dist-types/form-field-legacy/FormActivationIndicator.d.ts +0 -1
- package/dist-types/form-field-legacy/FormControlContext.d.ts +0 -1
- package/dist-types/formatted-input/FormattedInput.d.ts +0 -1
- package/dist-types/layer-layout/LayerLayout.d.ts +1 -1
- package/dist-types/metric/internal/MetricContext.d.ts +0 -1
- package/dist-types/navigation-item/ExpansionIcon.d.ts +0 -1
- package/dist-types/pagination/ArrowButton.d.ts +0 -1
- package/dist-types/pagination/CompactControls.d.ts +0 -1
- package/dist-types/pagination/CompactInput.d.ts +0 -1
- package/dist-types/pagination/PageButton.d.ts +0 -1
- package/dist-types/pagination/PaginationContext.d.ts +0 -1
- package/dist-types/pagination/RegularControls.d.ts +0 -1
- package/dist-types/pill/ClosablePill.d.ts +0 -1
- package/dist-types/pill/internal/DeleteButton.d.ts +0 -1
- package/dist-types/pill/internal/PillCheckbox.d.ts +0 -1
- package/dist-types/progress/CircularProgress/CircularProgress.d.ts +1 -5
- package/dist-types/progress/Info.d.ts +0 -1
- package/dist-types/progress/LinearProgress/LinearProgress.d.ts +2 -6
- package/dist-types/query-input/internal/CategoryListContext.d.ts +0 -1
- package/dist-types/responsive/overflowUtils.d.ts +0 -1
- package/dist-types/scrim/ScrimContext.d.ts +0 -1
- package/dist-types/skip-link/internal/useManageFocusOnTarget.d.ts +1 -1
- package/dist-types/slider/internal/SliderMarkLabels.d.ts +0 -1
- package/dist-types/slider/internal/SliderRail.d.ts +0 -1
- package/dist-types/slider/internal/SliderSelection.d.ts +0 -1
- package/dist-types/stepped-tracker/StepLabel/StepLabel.d.ts +8 -3
- package/dist-types/stepped-tracker/TrackerConnector/TrackerConnector.d.ts +0 -1
- package/dist-types/stepper-input/internal/useDynamicAriaLabel.d.ts +0 -1
- package/dist-types/tabs/TabActivationIndicator.d.ts +0 -1
- package/dist-types/tabs/Tabs.d.ts +0 -1
- package/dist-types/tabs/drag-drop/DropIndicator.d.ts +0 -1
- package/dist-types/tabs-next/TabNextContext.d.ts +4 -2
- package/dist-types/tabs-next/TabstripNext.d.ts +5 -3
- package/dist-types/toolbar/Toolbar.d.ts +0 -1
- package/dist-types/toolbar/ToolbarButton.d.ts +0 -1
- package/dist-types/toolbar/Tooltray.d.ts +0 -1
- package/dist-types/toolbar/internal/ToolbarHiddenItemIdsContext.d.ts +0 -1
- package/dist-types/toolbar/internal/renderToolbarItems.d.ts +0 -1
- package/dist-types/toolbar/toolbar-field/ToolbarField.d.ts +0 -1
- package/dist-types/tree/Tree.d.ts +0 -1
- package/dist-types/window/ElectronWindow.d.ts +0 -1
- package/dist-types/window/desktop-utils.d.ts +0 -1
- package/package.json +3 -3
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { AvatarProps } from "@salt-ds/core";
|
|
3
2
|
export declare type ContactAvatarProps = AvatarProps;
|
|
4
3
|
export declare const ContactAvatar: import("react").ForwardRefExoticComponent<AvatarProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
2
|
-
export
|
|
1
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export interface DialogActionsProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* The content of Dialog Actions
|
|
5
|
+
*/
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const DialogActions: import("react").ForwardRefExoticComponent<DialogActionsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
2
|
-
export
|
|
1
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export interface DialogContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* The content of Dialog Content
|
|
5
|
+
*/
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const DialogContent: import("react").ForwardRefExoticComponent<DialogContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { UseFloatingUIProps } from "@salt-ds/core";
|
|
3
2
|
export declare type UseDialogProps = Partial<Pick<UseFloatingUIProps, "onOpenChange" | "open">>;
|
|
4
3
|
export declare function useDialog(props: UseDialogProps): {
|
|
@@ -8,12 +7,12 @@ export declare function useDialog(props: UseDialogProps): {
|
|
|
8
7
|
context: {
|
|
9
8
|
x: number | null;
|
|
10
9
|
y: number | null;
|
|
11
|
-
placement: import("@floating-ui/
|
|
12
|
-
strategy: import("@floating-ui/
|
|
13
|
-
middlewareData: import("@floating-ui/
|
|
14
|
-
update: () => void;
|
|
10
|
+
placement: import("@floating-ui/utils").Placement;
|
|
11
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
12
|
+
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
15
13
|
reference: (node: import("@floating-ui/react").ReferenceType | null) => void;
|
|
16
14
|
floating: (node: HTMLElement | null) => void;
|
|
15
|
+
update: () => void;
|
|
17
16
|
isPositioned: boolean;
|
|
18
17
|
open: boolean;
|
|
19
18
|
onOpenChange: (open: boolean) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
2
|
export declare const DRAWER_POSITIONS: readonly ["left", "top", "right", "bottom"];
|
|
3
|
-
export declare type DrawerPositions = typeof DRAWER_POSITIONS[number];
|
|
3
|
+
export declare type DrawerPositions = (typeof DRAWER_POSITIONS)[number];
|
|
4
4
|
export interface DrawerProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
/**
|
|
6
6
|
* Defines the drawer position within the screen.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { UseFloatingUIProps } from "@salt-ds/core";
|
|
3
2
|
export declare type UseDrawerProps = Partial<Pick<UseFloatingUIProps, "onOpenChange" | "open">>;
|
|
4
3
|
export declare function useDrawer(props: UseDrawerProps): {
|
|
@@ -8,12 +7,12 @@ export declare function useDrawer(props: UseDrawerProps): {
|
|
|
8
7
|
context: {
|
|
9
8
|
x: number | null;
|
|
10
9
|
y: number | null;
|
|
11
|
-
placement: import("@floating-ui/
|
|
12
|
-
strategy: import("@floating-ui/
|
|
13
|
-
middlewareData: import("@floating-ui/
|
|
14
|
-
update: () => void;
|
|
10
|
+
placement: import("@floating-ui/utils").Placement;
|
|
11
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
12
|
+
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
15
13
|
reference: (node: import("@floating-ui/react").ReferenceType | null) => void;
|
|
16
14
|
floating: (node: HTMLElement | null) => void;
|
|
15
|
+
update: () => void;
|
|
17
16
|
isPositioned: boolean;
|
|
18
17
|
open: boolean;
|
|
19
18
|
onOpenChange: (open: boolean) => void;
|
|
@@ -26,6 +26,13 @@ export declare const useDropdownNext: ({ listProps, openControlProp, onOpenChang
|
|
|
26
26
|
floating: (node: HTMLElement | null) => void;
|
|
27
27
|
reference: (node: import("@floating-ui/react").ReferenceType | null) => void;
|
|
28
28
|
getDropdownNextProps: () => HTMLProps<HTMLDivElement>;
|
|
29
|
+
getPosition: () => {
|
|
30
|
+
top: number;
|
|
31
|
+
left: number;
|
|
32
|
+
position: import("@floating-ui/utils").Strategy;
|
|
33
|
+
width: number | undefined;
|
|
34
|
+
height: number | undefined;
|
|
35
|
+
};
|
|
29
36
|
};
|
|
30
37
|
};
|
|
31
38
|
export {};
|
|
@@ -2,7 +2,7 @@ import { HTMLAttributes } from "react";
|
|
|
2
2
|
import { ScrimProps } from "../scrim";
|
|
3
3
|
import { Breakpoints } from "@salt-ds/core";
|
|
4
4
|
export declare const LAYER_POSITIONS: readonly ["center", "left", "top", "right", "bottom"];
|
|
5
|
-
export declare type LayerPositions = typeof LAYER_POSITIONS[number];
|
|
5
|
+
export declare type LayerPositions = (typeof LAYER_POSITIONS)[number];
|
|
6
6
|
export interface LayerLayoutProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
7
|
/**
|
|
8
8
|
* Disable the scrim.
|
|
@@ -13,10 +13,6 @@ export interface CircularProgressProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
13
13
|
* Default value is 100.
|
|
14
14
|
*/
|
|
15
15
|
max?: number;
|
|
16
|
-
/**
|
|
17
|
-
* If `true`, the info panel will be displayed.
|
|
18
|
-
*/
|
|
19
|
-
showInfo?: boolean;
|
|
20
16
|
/**
|
|
21
17
|
* The value of the progress indicator.
|
|
22
18
|
* Value between 0 and max.
|
|
@@ -24,6 +20,6 @@ export interface CircularProgressProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
24
20
|
value?: number;
|
|
25
21
|
}
|
|
26
22
|
/**
|
|
27
|
-
* Circular progress bar with an
|
|
23
|
+
* Circular progress bar with an Info element showing the current value
|
|
28
24
|
*/
|
|
29
25
|
export declare const CircularProgress: import("react").ForwardRefExoticComponent<CircularProgressProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -10,11 +10,7 @@ export interface LinearProgressProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
10
10
|
*/
|
|
11
11
|
max?: number;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
showInfo?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Default unit is`%`.
|
|
13
|
+
* Default unit is `%`.
|
|
18
14
|
*/
|
|
19
15
|
unit?: string;
|
|
20
16
|
/**
|
|
@@ -24,6 +20,6 @@ export interface LinearProgressProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
24
20
|
value?: number;
|
|
25
21
|
}
|
|
26
22
|
/**
|
|
27
|
-
* Linear progress bar with an
|
|
23
|
+
* Linear progress bar with an Info element showing the current value
|
|
28
24
|
*/
|
|
29
25
|
export declare const LinearProgress: import("react").ForwardRefExoticComponent<LinearProgressProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="cypress" />
|
|
1
2
|
/// <reference types="node" />
|
|
2
|
-
/// <reference types="webpack-env" />
|
|
3
3
|
import { RefObject } from "react";
|
|
4
4
|
export declare const useManageFocusOnTarget: ({ targetRef, targetClass, }: {
|
|
5
5
|
targetRef: RefObject<HTMLElement> | undefined;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
2
|
+
export interface StepLabelProps extends ComponentPropsWithoutRef<"label"> {
|
|
3
|
+
/**
|
|
4
|
+
* The content of Step Label
|
|
5
|
+
*/
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const StepLabel: import("react").ForwardRefExoticComponent<StepLabelProps & import("react").RefAttributes<HTMLLabelElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const useDynamicAriaLabel: (appendLabel: string, hasLiveValue: boolean, inputRef: React.MutableRefObject<HTMLInputElement | null>, value: number | string | undefined, valuesHaveDiverged: () => boolean) => {
|
|
3
2
|
setHasAnnounced: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
4
3
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FocusAPI, TabstripProps } from "./TabsTypes";
|
|
3
2
|
export declare type TabsProps = Omit<TabstripProps, "defaultSource">;
|
|
4
3
|
export declare const Tabs: import("react").ForwardRefExoticComponent<TabsProps & import("react").RefAttributes<FocusAPI>>;
|
|
@@ -4,13 +4,15 @@ declare type TabValue = {
|
|
|
4
4
|
label: ReactNode;
|
|
5
5
|
};
|
|
6
6
|
export interface TabsContextValue {
|
|
7
|
+
activeColor: "primary" | "secondary";
|
|
7
8
|
disabled?: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
activate: (event: SyntheticEvent<HTMLButtonElement>) => void;
|
|
10
|
+
isActive: (id: string) => boolean;
|
|
10
11
|
setFocusable: (id: string) => void;
|
|
11
12
|
isFocusable: (id: string) => boolean;
|
|
12
13
|
registerTab: (tab: TabValue) => void;
|
|
13
14
|
unregisterTab: (id: string) => void;
|
|
15
|
+
variant: "main" | "inline";
|
|
14
16
|
}
|
|
15
17
|
export declare const TabsContext: import("react").Context<TabsContextValue>;
|
|
16
18
|
export declare function useTabs(): TabsContextValue;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, SyntheticEvent } from "react";
|
|
2
2
|
export interface TabstripNextProps extends Omit<ComponentPropsWithoutRef<"div">, "onChange"> {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
activeColor?: "primary" | "secondary";
|
|
4
|
+
align?: "left" | "center" | "right";
|
|
5
|
+
value?: string;
|
|
5
6
|
onChange?: (e: SyntheticEvent, data: {
|
|
6
7
|
value: string;
|
|
7
8
|
}) => void;
|
|
8
|
-
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
variant?: "main" | "inline";
|
|
9
11
|
}
|
|
10
12
|
export declare const TabstripNext: import("react").ForwardRefExoticComponent<TabstripNextProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { orientationType, OverflowCollectionHookResult, OverflowItem } from "../../responsive";
|
|
3
2
|
export declare const renderToolbarItems: (collectionHook: OverflowCollectionHookResult, overflowedItems: OverflowItem<"child">[] | undefined, orientation: orientationType) => JSX.Element[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SelectionStrategy } from "../common-hooks";
|
|
3
2
|
import { TreeProps } from "./treeTypes";
|
|
4
3
|
export declare const Tree: import("react").ForwardRefExoticComponent<TreeProps<unknown, SelectionStrategy> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const ElectronWindow: import("react").ForwardRefExoticComponent<{
|
|
3
2
|
open?: boolean | undefined;
|
|
4
3
|
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salt-ds/lab",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.19",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"react-window": "^1.8.6",
|
|
27
27
|
"rifm": "^0.12.0",
|
|
28
28
|
"tinycolor2": "^1.4.2",
|
|
29
|
-
"@salt-ds/core": "^1.
|
|
29
|
+
"@salt-ds/core": "^1.10.0",
|
|
30
30
|
"@salt-ds/window": "^0.1.1",
|
|
31
|
-
"@salt-ds/styles": "^0.1.
|
|
31
|
+
"@salt-ds/styles": "^0.1.2",
|
|
32
32
|
"@salt-ds/icons": "^1.7.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|