@salt-ds/lab 1.0.0-alpha.72 → 1.0.0-alpha.74
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/CHANGELOG.md +36 -0
- package/css/salt-lab.css +332 -1
- package/dist-cjs/collapsible/Collapsible.js +47 -0
- package/dist-cjs/collapsible/Collapsible.js.map +1 -0
- package/dist-cjs/collapsible/CollapsibleContext.js +23 -0
- package/dist-cjs/collapsible/CollapsibleContext.js.map +1 -0
- package/dist-cjs/collapsible/CollapsiblePanel.css.js +6 -0
- package/dist-cjs/collapsible/CollapsiblePanel.css.js.map +1 -0
- package/dist-cjs/collapsible/CollapsiblePanel.js +42 -0
- package/dist-cjs/collapsible/CollapsiblePanel.js.map +1 -0
- package/dist-cjs/collapsible/CollapsibleTrigger.js +36 -0
- package/dist-cjs/collapsible/CollapsibleTrigger.js.map +1 -0
- package/dist-cjs/index.js +36 -0
- package/dist-cjs/index.js.map +1 -1
- package/dist-cjs/static-list/StaticList.css.js +1 -1
- package/dist-cjs/table/TBody.js +32 -0
- package/dist-cjs/table/TBody.js.map +1 -0
- package/dist-cjs/table/TD.js +30 -0
- package/dist-cjs/table/TD.js.map +1 -0
- package/dist-cjs/table/TFoot.js +45 -0
- package/dist-cjs/table/TFoot.js.map +1 -0
- package/dist-cjs/table/TH.js +30 -0
- package/dist-cjs/table/TH.js.map +1 -0
- package/dist-cjs/table/THead.js +45 -0
- package/dist-cjs/table/THead.js.map +1 -0
- package/dist-cjs/table/TR.js +30 -0
- package/dist-cjs/table/TR.js.map +1 -0
- package/dist-cjs/table/Table.css.js +6 -0
- package/dist-cjs/table/Table.css.js.map +1 -0
- package/dist-cjs/table/Table.js +47 -0
- package/dist-cjs/table/Table.js.map +1 -0
- package/dist-cjs/vertical-navigation/SubMenuContext.js +34 -0
- package/dist-cjs/vertical-navigation/SubMenuContext.js.map +1 -0
- package/dist-cjs/vertical-navigation/VerticalNavigation.css.js +6 -0
- package/dist-cjs/vertical-navigation/VerticalNavigation.css.js.map +1 -0
- package/dist-cjs/vertical-navigation/VerticalNavigation.js +34 -0
- package/dist-cjs/vertical-navigation/VerticalNavigation.js.map +1 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationItem.js +48 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationItem.js.map +1 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationItemContent.css.js +6 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationItemContent.css.js.map +1 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationItemContent.js +83 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationItemContent.js.map +1 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationItemExpansionIcon.js +29 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationItemExpansionIcon.js.map +1 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationItemLabel.css.js +6 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationItemLabel.css.js.map +1 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationItemLabel.js +24 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationItemLabel.js.map +1 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationItemTrigger.css.js +6 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationItemTrigger.css.js.map +1 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationItemTrigger.js +69 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationItemTrigger.js.map +1 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationSubMenu.css.js +6 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationSubMenu.css.js.map +1 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationSubMenu.js +35 -0
- package/dist-cjs/vertical-navigation/VerticalNavigationSubMenu.js.map +1 -0
- package/dist-es/collapsible/Collapsible.js +45 -0
- package/dist-es/collapsible/Collapsible.js.map +1 -0
- package/dist-es/collapsible/CollapsibleContext.js +20 -0
- package/dist-es/collapsible/CollapsibleContext.js.map +1 -0
- package/dist-es/collapsible/CollapsiblePanel.css.js +4 -0
- package/dist-es/collapsible/CollapsiblePanel.css.js.map +1 -0
- package/dist-es/collapsible/CollapsiblePanel.js +40 -0
- package/dist-es/collapsible/CollapsiblePanel.js.map +1 -0
- package/dist-es/collapsible/CollapsibleTrigger.js +34 -0
- package/dist-es/collapsible/CollapsibleTrigger.js.map +1 -0
- package/dist-es/index.js +17 -0
- package/dist-es/index.js.map +1 -1
- package/dist-es/static-list/StaticList.css.js +1 -1
- package/dist-es/table/TBody.js +30 -0
- package/dist-es/table/TBody.js.map +1 -0
- package/dist-es/table/TD.js +28 -0
- package/dist-es/table/TD.js.map +1 -0
- package/dist-es/table/TFoot.js +43 -0
- package/dist-es/table/TFoot.js.map +1 -0
- package/dist-es/table/TH.js +28 -0
- package/dist-es/table/TH.js.map +1 -0
- package/dist-es/table/THead.js +43 -0
- package/dist-es/table/THead.js.map +1 -0
- package/dist-es/table/TR.js +28 -0
- package/dist-es/table/TR.js.map +1 -0
- package/dist-es/table/Table.css.js +4 -0
- package/dist-es/table/Table.css.js.map +1 -0
- package/dist-es/table/Table.js +44 -0
- package/dist-es/table/Table.js.map +1 -0
- package/dist-es/vertical-navigation/SubMenuContext.js +30 -0
- package/dist-es/vertical-navigation/SubMenuContext.js.map +1 -0
- package/dist-es/vertical-navigation/VerticalNavigation.css.js +4 -0
- package/dist-es/vertical-navigation/VerticalNavigation.css.js.map +1 -0
- package/dist-es/vertical-navigation/VerticalNavigation.js +32 -0
- package/dist-es/vertical-navigation/VerticalNavigation.js.map +1 -0
- package/dist-es/vertical-navigation/VerticalNavigationItem.js +45 -0
- package/dist-es/vertical-navigation/VerticalNavigationItem.js.map +1 -0
- package/dist-es/vertical-navigation/VerticalNavigationItemContent.css.js +4 -0
- package/dist-es/vertical-navigation/VerticalNavigationItemContent.css.js.map +1 -0
- package/dist-es/vertical-navigation/VerticalNavigationItemContent.js +81 -0
- package/dist-es/vertical-navigation/VerticalNavigationItemContent.js.map +1 -0
- package/dist-es/vertical-navigation/VerticalNavigationItemExpansionIcon.js +27 -0
- package/dist-es/vertical-navigation/VerticalNavigationItemExpansionIcon.js.map +1 -0
- package/dist-es/vertical-navigation/VerticalNavigationItemLabel.css.js +4 -0
- package/dist-es/vertical-navigation/VerticalNavigationItemLabel.css.js.map +1 -0
- package/dist-es/vertical-navigation/VerticalNavigationItemLabel.js +22 -0
- package/dist-es/vertical-navigation/VerticalNavigationItemLabel.js.map +1 -0
- package/dist-es/vertical-navigation/VerticalNavigationItemTrigger.css.js +4 -0
- package/dist-es/vertical-navigation/VerticalNavigationItemTrigger.css.js.map +1 -0
- package/dist-es/vertical-navigation/VerticalNavigationItemTrigger.js +67 -0
- package/dist-es/vertical-navigation/VerticalNavigationItemTrigger.js.map +1 -0
- package/dist-es/vertical-navigation/VerticalNavigationSubMenu.css.js +4 -0
- package/dist-es/vertical-navigation/VerticalNavigationSubMenu.css.js.map +1 -0
- package/dist-es/vertical-navigation/VerticalNavigationSubMenu.js +33 -0
- package/dist-es/vertical-navigation/VerticalNavigationSubMenu.js.map +1 -0
- package/dist-types/collapsible/Collapsible.d.ts +16 -0
- package/dist-types/collapsible/CollapsibleContext.d.ts +9 -0
- package/dist-types/collapsible/CollapsiblePanel.d.ts +4 -0
- package/dist-types/collapsible/CollapsibleTrigger.d.ts +5 -0
- package/dist-types/collapsible/index.d.ts +3 -0
- package/dist-types/index.d.ts +3 -0
- package/dist-types/table/TBody.d.ts +4 -0
- package/dist-types/table/TD.d.ts +4 -0
- package/dist-types/table/TFoot.d.ts +20 -0
- package/dist-types/table/TH.d.ts +4 -0
- package/dist-types/table/THead.d.ts +20 -0
- package/dist-types/table/TR.d.ts +4 -0
- package/dist-types/table/Table.d.ts +20 -0
- package/dist-types/table/index.d.ts +7 -0
- package/dist-types/vertical-navigation/SubMenuContext.d.ts +14 -0
- package/dist-types/vertical-navigation/VerticalNavigation.d.ts +5 -0
- package/dist-types/vertical-navigation/VerticalNavigationItem.d.ts +12 -0
- package/dist-types/vertical-navigation/VerticalNavigationItemContent.d.ts +4 -0
- package/dist-types/vertical-navigation/VerticalNavigationItemExpansionIcon.d.ts +2 -0
- package/dist-types/vertical-navigation/VerticalNavigationItemLabel.d.ts +4 -0
- package/dist-types/vertical-navigation/VerticalNavigationItemTrigger.d.ts +6 -0
- package/dist-types/vertical-navigation/VerticalNavigationSubMenu.d.ts +4 -0
- package/dist-types/vertical-navigation/index.d.ts +7 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerticalNavigationSubMenu.js","sources":["../src/vertical-navigation/VerticalNavigationSubMenu.tsx"],"sourcesContent":["import { makePrefixer } from \"@salt-ds/core\";\nimport { useComponentCssInjection } from \"@salt-ds/styles\";\nimport { useWindow } from \"@salt-ds/window\";\nimport { clsx } from \"clsx\";\nimport { type ComponentPropsWithoutRef, forwardRef, useState } from \"react\";\nimport { SubMenuProvider } from \"./SubMenuContext\";\nimport verticalNavigationSubMenuCss from \"./VerticalNavigationSubMenu.css\";\n\nexport interface VerticalNavigationSubMenuProps\n extends ComponentPropsWithoutRef<\"ul\"> {}\n\nconst withBaseName = makePrefixer(\"saltVerticalNavigationSubMenu\");\n\nexport const VerticalNavigationSubMenu = forwardRef<\n HTMLUListElement,\n VerticalNavigationSubMenuProps\n>(function VerticalNavigationSubMenu(props, ref) {\n const { children, className, ...rest } = props;\n\n const targetWindow = useWindow();\n useComponentCssInjection({\n testId: \"salt-vertical-navigation-sub-menu\",\n css: verticalNavigationSubMenuCss,\n window: targetWindow,\n });\n\n const [directIcons, setDirectIcons] = useState<string[]>([]);\n\n return (\n <SubMenuProvider directIcons={directIcons} setDirectIcons={setDirectIcons}>\n <ul\n ref={ref}\n className={clsx(withBaseName(), className)}\n data-has-direct-icons={directIcons.length > 0}\n {...rest}\n >\n {children}\n </ul>\n </SubMenuProvider>\n );\n});\n"],"names":["VerticalNavigationSubMenu","verticalNavigationSubMenuCss"],"mappings":";;;;;;;;;AAWA,MAAM,YAAA,GAAe,aAAa,+BAA+B,CAAA;AAE1D,MAAM,yBAA4B,GAAA,UAAA,CAGvC,SAASA,0BAAAA,CAA0B,OAAO,GAAK,EAAA;AAC/C,EAAA,MAAM,EAAE,QAAA,EAAU,SAAW,EAAA,GAAG,MAAS,GAAA,KAAA;AAEzC,EAAA,MAAM,eAAe,SAAU,EAAA;AAC/B,EAAyB,wBAAA,CAAA;AAAA,IACvB,MAAQ,EAAA,mCAAA;AAAA,IACR,GAAK,EAAAC,QAAA;AAAA,IACL,MAAQ,EAAA;AAAA,GACT,CAAA;AAED,EAAA,MAAM,CAAC,WAAa,EAAA,cAAc,CAAI,GAAA,QAAA,CAAmB,EAAE,CAAA;AAE3D,EACE,uBAAA,GAAA,CAAC,eAAgB,EAAA,EAAA,WAAA,EAA0B,cACzC,EAAA,QAAA,kBAAA,GAAA;AAAA,IAAC,IAAA;AAAA,IAAA;AAAA,MACC,GAAA;AAAA,MACA,SAAW,EAAA,IAAA,CAAK,YAAa,EAAA,EAAG,SAAS,CAAA;AAAA,MACzC,uBAAA,EAAuB,YAAY,MAAS,GAAA,CAAA;AAAA,MAC3C,GAAG,IAAA;AAAA,MAEH;AAAA;AAAA,GAEL,EAAA,CAAA;AAEJ,CAAC;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef, type SyntheticEvent } from "react";
|
|
2
|
+
export interface CollapsibleProps extends Omit<ComponentPropsWithoutRef<"div">, "onToggle"> {
|
|
3
|
+
/**
|
|
4
|
+
* Whether the accordion is open.
|
|
5
|
+
*/
|
|
6
|
+
open?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the accordion is open by default.
|
|
9
|
+
*/
|
|
10
|
+
defaultOpen?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Callback fired when the accordion is opened or closed.
|
|
13
|
+
*/
|
|
14
|
+
onOpenChange?: (event: SyntheticEvent<HTMLButtonElement>, open: boolean) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const Collapsible: import("react").ForwardRefExoticComponent<CollapsibleProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type SyntheticEvent } from "react";
|
|
2
|
+
export type CollapsibleContextValue = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
setOpen: (event: SyntheticEvent<HTMLButtonElement>, open: boolean) => void;
|
|
5
|
+
panelId?: string;
|
|
6
|
+
setPanelId?: (panelId: string) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const CollapsibleContext: import("react").Context<CollapsibleContextValue>;
|
|
9
|
+
export declare function useCollapsibleContext(): CollapsibleContextValue;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
+
export interface CollapsibleTriggerProps extends ComponentPropsWithoutRef<"button"> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<CollapsibleTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
package/dist-types/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./breadcrumbs";
|
|
|
3
3
|
export * from "./button-bar";
|
|
4
4
|
export * from "./calendar";
|
|
5
5
|
export * from "./cascading-menu";
|
|
6
|
+
export * from "./collapsible";
|
|
6
7
|
export * from "./color-chooser";
|
|
7
8
|
export * from "./combo-box";
|
|
8
9
|
export * from "./combo-box-deprecated";
|
|
@@ -36,6 +37,7 @@ export * from "./responsive";
|
|
|
36
37
|
export * from "./search-input";
|
|
37
38
|
export * from "./static-list";
|
|
38
39
|
export * from "./system-status";
|
|
40
|
+
export * from "./table";
|
|
39
41
|
export * from "./tabs";
|
|
40
42
|
export * from "./tabs-next";
|
|
41
43
|
export * from "./toast-group";
|
|
@@ -44,4 +46,5 @@ export * from "./tokenized-input-next";
|
|
|
44
46
|
export * from "./toolbar";
|
|
45
47
|
export * from "./tree";
|
|
46
48
|
export * from "./utils";
|
|
49
|
+
export * from "./vertical-navigation";
|
|
47
50
|
export * from "./window";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export interface TBodyProps extends ComponentPropsWithoutRef<"tbody"> {
|
|
3
|
+
}
|
|
4
|
+
export declare const TBody: import("react").ForwardRefExoticComponent<TBodyProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export interface TFootProps extends ComponentPropsWithoutRef<"tfoot"> {
|
|
3
|
+
/**
|
|
4
|
+
* If footer is positioned with sticky styling.
|
|
5
|
+
* @default false
|
|
6
|
+
*/
|
|
7
|
+
sticky?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Divider styling variant. Defaults to "primary";
|
|
10
|
+
* @default primary
|
|
11
|
+
*/
|
|
12
|
+
divider?: "primary" | "secondary" | "tertiary" | "none";
|
|
13
|
+
/**
|
|
14
|
+
* Styling variant for footer.
|
|
15
|
+
* If undefined, will match variant of parent Table component's variant.
|
|
16
|
+
* @default undefined
|
|
17
|
+
*/
|
|
18
|
+
variant?: "primary" | "secondary" | "tertiary";
|
|
19
|
+
}
|
|
20
|
+
export declare const TFoot: import("react").ForwardRefExoticComponent<TFootProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export interface THeadProps extends ComponentPropsWithoutRef<"thead"> {
|
|
3
|
+
/**
|
|
4
|
+
* If header is positioned with sticky styling.
|
|
5
|
+
* @default false
|
|
6
|
+
*/
|
|
7
|
+
sticky?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Divider styling variant. Defaults to "primary";
|
|
10
|
+
* @default primary
|
|
11
|
+
*/
|
|
12
|
+
divider?: "primary" | "secondary" | "tertiary" | "none";
|
|
13
|
+
/**
|
|
14
|
+
* Styling variant for header.
|
|
15
|
+
* If undefined, will match variant of parent Table component's variant.
|
|
16
|
+
* @default undefined
|
|
17
|
+
*/
|
|
18
|
+
variant?: "primary" | "secondary" | "tertiary";
|
|
19
|
+
}
|
|
20
|
+
export declare const THead: import("react").ForwardRefExoticComponent<THeadProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export interface TableProps extends ComponentPropsWithoutRef<"table"> {
|
|
3
|
+
/**
|
|
4
|
+
* Styling variant. Defaults to "primary".
|
|
5
|
+
* @default primary
|
|
6
|
+
*/
|
|
7
|
+
variant?: "primary" | "secondary" | "tertiary";
|
|
8
|
+
/**
|
|
9
|
+
* Divider styling variant. Defaults to "tertiary";
|
|
10
|
+
* @default secondary
|
|
11
|
+
*/
|
|
12
|
+
divider?: "primary" | "secondary" | "tertiary" | "none";
|
|
13
|
+
/**
|
|
14
|
+
* Zebra styling. Applies variant to every other row.
|
|
15
|
+
* @default undefined
|
|
16
|
+
*/
|
|
17
|
+
zebra?: "primary" | "secondary" | "tertiary";
|
|
18
|
+
}
|
|
19
|
+
export declare const withTableBaseName: import("@salt-ds/core").ClassNamePrefixer;
|
|
20
|
+
export declare const Table: import("react").ForwardRefExoticComponent<TableProps & import("react").RefAttributes<HTMLTableElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Dispatch, type ReactNode, type SetStateAction } from "react";
|
|
2
|
+
type SubMenuContextValue = {
|
|
3
|
+
depth: number;
|
|
4
|
+
iconPaddingCount: number;
|
|
5
|
+
setDirectIcons?: Dispatch<SetStateAction<string[]>>;
|
|
6
|
+
};
|
|
7
|
+
export declare const SubMenuContext: import("react").Context<SubMenuContextValue>;
|
|
8
|
+
export declare const useSubMenuContext: () => SubMenuContextValue;
|
|
9
|
+
export declare function SubMenuProvider({ children, directIcons, setDirectIcons, }: {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
directIcons: string[];
|
|
12
|
+
setDirectIcons?: Dispatch<SetStateAction<string[]>>;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export interface VerticalNavigationProps extends ComponentPropsWithoutRef<"ol"> {
|
|
3
|
+
appearance?: "indicator" | "bordered";
|
|
4
|
+
}
|
|
5
|
+
export declare const VerticalNavigation: import("react").ForwardRefExoticComponent<VerticalNavigationProps & import("react").RefAttributes<HTMLOListElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef, type Dispatch, type SetStateAction } from "react";
|
|
2
|
+
export interface VerticalNavigationItemProps extends ComponentPropsWithoutRef<"li"> {
|
|
3
|
+
active?: boolean;
|
|
4
|
+
}
|
|
5
|
+
type VerticalNavigationItemContextType = {
|
|
6
|
+
active: boolean;
|
|
7
|
+
focusVisible: boolean;
|
|
8
|
+
setFocusVisible: Dispatch<SetStateAction<boolean>>;
|
|
9
|
+
};
|
|
10
|
+
export declare function useVerticalNavigationItem(): VerticalNavigationItemContextType;
|
|
11
|
+
export declare const VerticalNavigationItem: import("react").ForwardRefExoticComponent<VerticalNavigationItemProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export interface VerticalNavigationItemContentProps extends ComponentPropsWithoutRef<"span"> {
|
|
3
|
+
}
|
|
4
|
+
export declare const VerticalNavigationItemContent: import("react").ForwardRefExoticComponent<VerticalNavigationItemContentProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export interface VerticalNavigationItemLabelProps extends ComponentPropsWithoutRef<"span"> {
|
|
3
|
+
}
|
|
4
|
+
export declare const VerticalNavigationItemLabel: import("react").ForwardRefExoticComponent<VerticalNavigationItemLabelProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type RenderPropsType } from "@salt-ds/core";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
|
+
export interface VerticalNavigationItemTriggerProps extends ComponentPropsWithoutRef<"a"> {
|
|
4
|
+
render?: RenderPropsType["render"];
|
|
5
|
+
}
|
|
6
|
+
export declare const VerticalNavigationItemTrigger: import("react").ForwardRefExoticComponent<VerticalNavigationItemTriggerProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export interface VerticalNavigationSubMenuProps extends ComponentPropsWithoutRef<"ul"> {
|
|
3
|
+
}
|
|
4
|
+
export declare const VerticalNavigationSubMenu: import("react").ForwardRefExoticComponent<VerticalNavigationSubMenuProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./VerticalNavigation";
|
|
2
|
+
export * from "./VerticalNavigationItem";
|
|
3
|
+
export * from "./VerticalNavigationItemContent";
|
|
4
|
+
export * from "./VerticalNavigationItemExpansionIcon";
|
|
5
|
+
export * from "./VerticalNavigationItemLabel";
|
|
6
|
+
export * from "./VerticalNavigationItemTrigger";
|
|
7
|
+
export * from "./VerticalNavigationSubMenu";
|
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.74",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@floating-ui/react": "^0.26.28",
|
|
24
|
-
"@salt-ds/core": "^1.47.
|
|
24
|
+
"@salt-ds/core": "^1.47.4",
|
|
25
25
|
"@salt-ds/date-adapters": "0.1.0-alpha.5",
|
|
26
26
|
"@salt-ds/icons": "^1.14.0",
|
|
27
27
|
"@salt-ds/styles": "0.2.1",
|