@xfers/design-system 7.1.0-dev.6af4e72e9f → 7.1.0-dev.89ea3acf11
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/cjs/{StraitsXPersonalAccountDarkLogo-95a3ea64.js → StraitsXPersonalAccountLightLogo-63cb9f22.js} +1 -1
- package/cjs/StraitsXPersonalAccountLightLogo-63cb9f22.js.map +1 -0
- package/cjs/index.js +266 -246
- package/cjs/index.js.map +1 -1
- package/cjs/logos.js +1 -1
- package/dist/components/Sidebar/CompanyProfile.js +2 -2
- package/dist/components/Sidebar/CompanyProfile.js.map +1 -1
- package/dist/components/Sidebar/CompanyProfileDropdown.js +15 -18
- package/dist/components/Sidebar/CompanyProfileDropdown.js.map +1 -1
- package/dist/components/Sidebar/Sidebar.js +2 -111
- package/dist/components/Sidebar/Sidebar.js.map +1 -1
- package/dist/components/Sidebar/dropdownStyles.js +120 -0
- package/dist/components/Sidebar/dropdownStyles.js.map +1 -0
- package/dist/components/Sidebar/index.js +2 -4
- package/dist/components/Sidebar/index.js.map +1 -1
- package/dist/components/Sidebar/styles.js +23 -107
- package/dist/components/Sidebar/styles.js.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/types/components/Sidebar/CompanyProfile.d.ts +4 -2
- package/dist/types/components/Sidebar/CompanyProfileDropdown.d.ts +13 -5
- package/dist/types/components/Sidebar/Sidebar.d.ts +0 -28
- package/dist/types/components/Sidebar/dropdownStyles.d.ts +11 -0
- package/dist/types/components/Sidebar/index.d.ts +4 -4
- package/dist/types/components/Sidebar/styles.d.ts +0 -11
- package/dist/types/index.d.ts +2 -2
- package/es/StraitsXPersonalAccountLightLogo-f003f1e2.js +2 -0
- package/es/StraitsXPersonalAccountLightLogo-f003f1e2.js.map +1 -0
- package/es/index.js +382 -362
- package/es/index.js.map +1 -1
- package/es/logos.js +1 -1
- package/package.json +1 -1
- package/cjs/StraitsXPersonalAccountDarkLogo-95a3ea64.js.map +0 -1
- package/es/StraitsXPersonalAccountDarkLogo-85aa39f5.js +0 -2
- package/es/StraitsXPersonalAccountDarkLogo-85aa39f5.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.Spin = exports.ErrorPage = exports.Tooltip = exports.CopyBox = exports.Section = exports.Banner = exports.Note = exports.ContentBreakdown = exports.Hidden = exports.Link = exports.Divider = exports.EmptyData = exports.SmallP = exports.P1Bold = exports.P1 = exports.H4 = exports.H3 = exports.H2 = exports.H1 = exports.Checkbox = exports.DatePicker = exports.Timer = exports.Tabs = exports.Table = exports.Steps = exports.SelectionBoxGroup = exports.SelectionBox = exports.Select = exports.RangePicker = exports.Radio = exports.Pagination = exports.DeprecatedModal = exports.DialogItems = exports.Modal = exports.Tag = exports.InputWithButton = exports.Input = exports.Form = exports.DynamicSelect = exports.Dropdown = exports.Carousel = exports.Chart = exports.Card = exports.BadgeIcon = exports.Accordion = exports.ActionCard = exports.ActionButton = exports.Button = exports.Alert = exports.AntdConfigProvider = void 0;
|
|
23
|
-
exports.LINE_HEIGHT = exports.FONT_SIZE = exports.FONT_WEIGHT = exports.FALLBACK_FONT = exports.MAIN_FONT = exports.BACKGROUND_COLORS = exports.TEXT_COLORS = exports.ICON_COLORS = exports.MAIN_COLORS = exports.NEUTRAL_COLORS = exports.YELLOW_COLORS = exports.RED_COLORS = exports.GREEN_COLORS = exports.BLUE_COLORS = exports.TABLET_BREAKPOINT = exports.LAPTOP_BREAKPOINT = exports.DESKTOP_BREAKPOINT = exports.EXTRA_LARGE_DESKTOP_BREAKPOINT = exports.useModal = exports.ModalProvider = exports.straitsXTheme = exports.xfersTheme = exports.useTheme = exports.ThemeProvider = exports.Typography = exports.MaterialSymbols = exports.getCoachmarkJoyrideConfig = exports.
|
|
23
|
+
exports.LINE_HEIGHT = exports.FONT_SIZE = exports.FONT_WEIGHT = exports.FALLBACK_FONT = exports.MAIN_FONT = exports.BACKGROUND_COLORS = exports.TEXT_COLORS = exports.ICON_COLORS = exports.MAIN_COLORS = exports.NEUTRAL_COLORS = exports.YELLOW_COLORS = exports.RED_COLORS = exports.GREEN_COLORS = exports.BLUE_COLORS = exports.TABLET_BREAKPOINT = exports.LAPTOP_BREAKPOINT = exports.DESKTOP_BREAKPOINT = exports.EXTRA_LARGE_DESKTOP_BREAKPOINT = exports.useModal = exports.ModalProvider = exports.straitsXTheme = exports.xfersTheme = exports.useTheme = exports.ThemeProvider = exports.Typography = exports.MaterialSymbols = exports.getCoachmarkJoyrideConfig = exports.CopyrightNotice = exports.CompanyProfileDropdown = exports.CompanyProfile = exports.SidebarSubItem = exports.SidebarNavItem = exports.SidebarBase = exports.Sidebar = exports.Coachmark = exports.Timeline = exports.SummaryCard = void 0;
|
|
24
24
|
// Components
|
|
25
25
|
var AntdConfigProvider_1 = require("./components/AntdConfigProvider");
|
|
26
26
|
Object.defineProperty(exports, "AntdConfigProvider", { enumerable: true, get: function () { return __importDefault(AntdConfigProvider_1).default; } });
|
|
@@ -124,13 +124,11 @@ Object.defineProperty(exports, "Coachmark", { enumerable: true, get: function ()
|
|
|
124
124
|
var Sidebar_1 = require("./components/Sidebar");
|
|
125
125
|
Object.defineProperty(exports, "Sidebar", { enumerable: true, get: function () { return __importDefault(Sidebar_1).default; } });
|
|
126
126
|
Object.defineProperty(exports, "SidebarBase", { enumerable: true, get: function () { return Sidebar_1.SidebarBase; } });
|
|
127
|
-
Object.defineProperty(exports, "SidebarProducts", { enumerable: true, get: function () { return Sidebar_1.SidebarProducts; } });
|
|
128
127
|
Object.defineProperty(exports, "SidebarNavItem", { enumerable: true, get: function () { return Sidebar_1.SidebarNavItem; } });
|
|
129
128
|
Object.defineProperty(exports, "SidebarSubItem", { enumerable: true, get: function () { return Sidebar_1.SidebarSubItem; } });
|
|
130
129
|
Object.defineProperty(exports, "CompanyProfile", { enumerable: true, get: function () { return Sidebar_1.CompanyProfile; } });
|
|
131
130
|
Object.defineProperty(exports, "CompanyProfileDropdown", { enumerable: true, get: function () { return Sidebar_1.CompanyProfileDropdown; } });
|
|
132
131
|
Object.defineProperty(exports, "CopyrightNotice", { enumerable: true, get: function () { return Sidebar_1.CopyrightNotice; } });
|
|
133
|
-
Object.defineProperty(exports, "COMPANY_MENU_ITEMS", { enumerable: true, get: function () { return Sidebar_1.COMPANY_MENU_ITEMS; } });
|
|
134
132
|
// Helper Functions
|
|
135
133
|
var getJoyrideConfig_1 = require("./components/Coachmark/getJoyrideConfig");
|
|
136
134
|
Object.defineProperty(exports, "getCoachmarkJoyrideConfig", { enumerable: true, get: function () { return getJoyrideConfig_1.getCoachmarkJoyrideConfig; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,0EAA0E;AAC1E,iCAAiC;;;;;;;;;;;;;;;;;;;;;AAEjC,aAAa;AACb,sEAA+E;AAAtE,yIAAA,OAAO,OAAsB;AACtC,4CAAqD;AAA5C,+GAAA,OAAO,OAAS;AACzB,8CAAuD;AAA9C,iHAAA,OAAO,OAAU;AAC1B,0DAAmE;AAA1D,6HAAA,OAAO,OAAgB;AAChC,sDAA+D;AAAtD,yHAAA,OAAO,OAAc;AAC9B,oDAA6D;AAApD,uHAAA,OAAO,OAAa;AAC7B,oDAA6D;AAApD,uHAAA,OAAO,OAAa;AAC7B,0CAAmD;AAA1C,6GAAA,OAAO,OAAQ;AACxB,4CAAqD;AAA5C,+GAAA,OAAO,OAAS;AACzB,kDAA2D;AAAlD,qHAAA,OAAO,OAAY;AAC5B,kDAA2D;AAAlD,qHAAA,OAAO,OAAY;AAC5B,4DAAqE;AAA5D,+HAAA,OAAO,OAAiB;AACjC,0CAAmD;AAA1C,6GAAA,OAAO,OAAQ;AACxB,4CAAqD;AAA5C,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1
|
import React from 'react';
|
|
2
|
-
import type { CompanyOption } from './CompanyProfileDropdown';
|
|
2
|
+
import type { CompanyOption, DropdownMenuItem } from './CompanyProfileDropdown';
|
|
3
3
|
type CompanyProfileProps = {
|
|
4
4
|
companyName?: string;
|
|
5
5
|
subtitle?: string;
|
|
@@ -7,8 +7,10 @@ type CompanyProfileProps = {
|
|
|
7
7
|
/** Renders only the company switcher, without the menu items. */
|
|
8
8
|
switchOnly?: boolean;
|
|
9
9
|
companies?: CompanyOption[];
|
|
10
|
+
/** Menu items shown below the divider. Consumer provides icon + label. */
|
|
11
|
+
menuItems?: DropdownMenuItem[];
|
|
10
12
|
onMenuItemClick?: (label: string) => void;
|
|
11
13
|
onClick?: () => void;
|
|
12
14
|
};
|
|
13
|
-
declare const CompanyProfile: ({ companyName, subtitle, enableDropdown, switchOnly, companies, onMenuItemClick, onClick, }: CompanyProfileProps) => React.JSX.Element;
|
|
15
|
+
declare const CompanyProfile: ({ companyName, subtitle, enableDropdown, switchOnly, companies, menuItems, onMenuItemClick, onClick, }: CompanyProfileProps) => React.JSX.Element;
|
|
14
16
|
export default CompanyProfile;
|
|
@@ -6,19 +6,27 @@ export type CompanyOption = {
|
|
|
6
6
|
active?: boolean;
|
|
7
7
|
onClick?: () => void;
|
|
8
8
|
};
|
|
9
|
-
type
|
|
9
|
+
export type DropdownMenuItem = {
|
|
10
|
+
/** Material Symbol icon name (e.g. 'domain', 'group', 'receipt_long'). */
|
|
10
11
|
icon: MaterialSymbol;
|
|
12
|
+
/** Display label for the menu item. */
|
|
11
13
|
label: string;
|
|
14
|
+
onClick?: () => void;
|
|
12
15
|
};
|
|
13
|
-
export declare const COMPANY_MENU_ITEMS: MenuItemDef[];
|
|
14
|
-
export type CompanyMenuItem = (typeof COMPANY_MENU_ITEMS)[number]['label'];
|
|
15
16
|
type CompanyProfileDropdownProps = {
|
|
16
17
|
/** When false, only the company switcher is rendered (Figma `switchOnly`). */
|
|
17
18
|
showMenuItems?: boolean;
|
|
18
19
|
/** When false, the switch-company block is hidden (Figma `switchCompany`). */
|
|
19
20
|
switchCompany?: boolean;
|
|
21
|
+
/** Companies shown in the SWITCH COMPANY section. */
|
|
20
22
|
companies?: CompanyOption[];
|
|
21
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Menu items shown below the divider. Each item needs an icon (MaterialSymbol)
|
|
25
|
+
* and a label. Consumer must provide this explicitly.
|
|
26
|
+
*/
|
|
27
|
+
menuItems?: DropdownMenuItem[];
|
|
28
|
+
/** Fired when a menu item is clicked (if the item doesn't have its own onClick). */
|
|
29
|
+
onMenuItemClick?: (label: string) => void;
|
|
22
30
|
};
|
|
23
|
-
declare const CompanyProfileDropdown: ({ showMenuItems, switchCompany, companies, onMenuItemClick, }: CompanyProfileDropdownProps) => React.JSX.Element;
|
|
31
|
+
declare const CompanyProfileDropdown: ({ showMenuItems, switchCompany, companies, menuItems, onMenuItemClick, }: CompanyProfileDropdownProps) => React.JSX.Element;
|
|
24
32
|
export default CompanyProfileDropdown;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SidebarVariant } from './styles';
|
|
3
|
-
import type { CompanyOption } from './CompanyProfileDropdown';
|
|
4
3
|
type SidebarBaseProps = {
|
|
5
4
|
variant?: SidebarVariant;
|
|
6
5
|
logo?: React.ReactNode;
|
|
@@ -9,34 +8,7 @@ type SidebarBaseProps = {
|
|
|
9
8
|
footer?: React.ReactNode;
|
|
10
9
|
};
|
|
11
10
|
export declare const SidebarBase: ({ variant, logo, companyProfile, children, footer, }: SidebarBaseProps) => React.JSX.Element;
|
|
12
|
-
type SidebarProductsGates = {
|
|
13
|
-
treasury?: boolean;
|
|
14
|
-
cards?: boolean;
|
|
15
|
-
dvaPayments?: boolean;
|
|
16
|
-
transactionHistory?: boolean;
|
|
17
|
-
apiTools?: boolean;
|
|
18
|
-
};
|
|
19
|
-
type SidebarProductsProps = SidebarProductsGates & {
|
|
20
|
-
variant?: SidebarVariant;
|
|
21
|
-
companyProfile?: boolean;
|
|
22
|
-
companyName?: string;
|
|
23
|
-
companySubtitle?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Label of the currently selected row. Shared by top-level items and
|
|
26
|
-
* sub-items so exactly one row is ever highlighted.
|
|
27
|
-
*/
|
|
28
|
-
activeItem?: string;
|
|
29
|
-
onItemClick?: (label: string) => void;
|
|
30
|
-
onCompanyProfileClick?: () => void;
|
|
31
|
-
/** Companies listed in the SWITCH COMPANY block of the profile dropdown. */
|
|
32
|
-
companies?: CompanyOption[];
|
|
33
|
-
/** Renders only the company switcher in the dropdown, without menu items. */
|
|
34
|
-
switchOnly?: boolean;
|
|
35
|
-
onCompanyMenuItemClick?: (label: string) => void;
|
|
36
|
-
};
|
|
37
|
-
export declare const SidebarProducts: ({ variant, companyProfile, companyName, companySubtitle, activeItem, onItemClick, onCompanyProfileClick, companies, switchOnly, onCompanyMenuItemClick, treasury, cards, dvaPayments, transactionHistory, apiTools, }: SidebarProductsProps) => React.JSX.Element;
|
|
38
11
|
declare const Sidebar: {
|
|
39
12
|
Base: ({ variant, logo, companyProfile, children, footer, }: SidebarBaseProps) => React.JSX.Element;
|
|
40
|
-
Products: ({ variant, companyProfile, companyName, companySubtitle, activeItem, onItemClick, onCompanyProfileClick, companies, switchOnly, onCompanyMenuItemClick, treasury, cards, dvaPayments, transactionHistory, apiTools, }: SidebarProductsProps) => React.JSX.Element;
|
|
41
13
|
};
|
|
42
14
|
export default Sidebar;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const DropdownPanel: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
2
|
+
export declare const DropdownSectionLabel: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
3
|
+
export declare const DropdownRow: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
active?: boolean;
|
|
5
|
+
}, object>;
|
|
6
|
+
export declare const DropdownMenuRow: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
7
|
+
export declare const DropdownRowContent: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
8
|
+
export declare const DropdownPrimaryText: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
9
|
+
export declare const DropdownSecondaryText: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
10
|
+
export declare const DropdownMenuLabel: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
11
|
+
export declare const DropdownDivider: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import Sidebar, { SidebarBase
|
|
1
|
+
import Sidebar, { SidebarBase } from './Sidebar';
|
|
2
2
|
import SidebarNavItem from './SidebarNavItem';
|
|
3
3
|
import SidebarSubItem from './SidebarSubItem';
|
|
4
4
|
import CompanyProfile from './CompanyProfile';
|
|
5
|
-
import CompanyProfileDropdown
|
|
5
|
+
import CompanyProfileDropdown from './CompanyProfileDropdown';
|
|
6
6
|
import CopyrightNotice from './CopyrightNotice';
|
|
7
|
-
export { SidebarBase,
|
|
7
|
+
export { SidebarBase, SidebarNavItem, SidebarSubItem, CompanyProfile, CompanyProfileDropdown, CopyrightNotice, };
|
|
8
8
|
export type { SidebarVariant } from './styles';
|
|
9
9
|
export type { SubItem } from './SidebarNavItem';
|
|
10
|
-
export type { CompanyOption,
|
|
10
|
+
export type { CompanyOption, DropdownMenuItem } from './CompanyProfileDropdown';
|
|
11
11
|
export default Sidebar;
|
|
@@ -31,14 +31,3 @@ export declare const CompanyName: import("@emotion/styled-base").StyledComponent
|
|
|
31
31
|
export declare const CompanySubtitle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
32
32
|
export declare const CopyrightNoticeWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
33
33
|
export declare const CopyrightNoticeText: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
34
|
-
export declare const DropdownPanel: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
35
|
-
export declare const DropdownSectionLabel: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
36
|
-
export declare const DropdownRow: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
37
|
-
active?: boolean;
|
|
38
|
-
}, object>;
|
|
39
|
-
export declare const DropdownMenuRow: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
40
|
-
export declare const DropdownRowContent: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
41
|
-
export declare const DropdownPrimaryText: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
42
|
-
export declare const DropdownSecondaryText: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
43
|
-
export declare const DropdownMenuLabel: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
|
|
44
|
-
export declare const DropdownDivider: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -44,8 +44,8 @@ export { default as Spin } from './components/Spin';
|
|
|
44
44
|
export { default as SummaryCard } from './components/SummaryCard';
|
|
45
45
|
export { default as Timeline } from './components/Timeline';
|
|
46
46
|
export { default as Coachmark } from './components/Coachmark';
|
|
47
|
-
export { default as Sidebar, SidebarBase,
|
|
48
|
-
export type { SidebarVariant, SubItem as SidebarSubItemType, CompanyOption as SidebarCompanyOption,
|
|
47
|
+
export { default as Sidebar, SidebarBase, SidebarNavItem, SidebarSubItem, CompanyProfile, CompanyProfileDropdown, CopyrightNotice, } from './components/Sidebar';
|
|
48
|
+
export type { SidebarVariant, SubItem as SidebarSubItemType, CompanyOption as SidebarCompanyOption, DropdownMenuItem as SidebarDropdownMenuItem, } from './components/Sidebar';
|
|
49
49
|
export { getCoachmarkJoyrideConfig } from './components/Coachmark/getJoyrideConfig';
|
|
50
50
|
export * from './icons';
|
|
51
51
|
export { MaterialSymbols } from './icons/MaterialSymbols';
|