@wso2/oxygen-ui 0.0.1-alpha.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.ai/AGENTS.md +78 -0
- package/.ai/components.md +798 -0
- package/.ai/migration.md +279 -0
- package/.ai/patterns.md +1185 -0
- package/.ai/theming.md +318 -0
- package/.claude/components.md +798 -0
- package/.claude/migration.md +279 -0
- package/.claude/patterns.md +1185 -0
- package/.claude/skills/oxygen-component/SKILL.md +141 -0
- package/.claude/skills/oxygen-form/SKILL.md +410 -0
- package/.claude/skills/oxygen-layout/SKILL.md +233 -0
- package/.claude/skills/oxygen-migrate/SKILL.md +277 -0
- package/.claude/theming.md +318 -0
- package/README.md +182 -2
- package/bin/cli.js +480 -0
- package/dist/animations/ParticleBackground/ParticleBackground.d.ts +66 -0
- package/dist/animations/ParticleBackground/index.d.ts +19 -0
- package/dist/animations/index.d.ts +18 -0
- package/dist/components/AppShell/AppShell.d.ts +69 -0
- package/dist/components/AppShell/AppShellFooter.d.ts +41 -0
- package/dist/components/AppShell/AppShellMain.d.ts +41 -0
- package/dist/components/AppShell/AppShellNavbar.d.ts +41 -0
- package/dist/components/AppShell/AppShellNotificationPanel.d.ts +41 -0
- package/dist/components/AppShell/AppShellSidebar.d.ts +41 -0
- package/dist/components/AppShell/index.d.ts +29 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts +47 -0
- package/dist/components/CodeBlock/index.d.ts +19 -0
- package/dist/components/ColorSchemeImage/index.d.ts +19 -0
- package/dist/components/ColorSchemeToggle/index.d.ts +18 -0
- package/dist/components/ComplexSelect/ComplexSelect.d.ts +25 -0
- package/dist/components/ComplexSelect/ComplexSelectDivider.d.ts +4 -0
- package/dist/components/ComplexSelect/ComplexSelectListHeader.d.ts +7 -0
- package/dist/components/ComplexSelect/ComplexSelectMenuItem.d.ts +16 -0
- package/dist/components/ComplexSelect/ComplexSelectMenuItemAvatar.d.ts +7 -0
- package/dist/components/ComplexSelect/ComplexSelectMenuItemIcon.d.ts +7 -0
- package/dist/components/ComplexSelect/ComplexSelectMenuItemText.d.ts +8 -0
- package/dist/components/ComplexSelect/index.d.ts +21 -0
- package/dist/components/Footer/Footer.d.ts +71 -0
- package/dist/components/Footer/index.d.ts +19 -0
- package/dist/components/Form/CardButton.d.ts +30 -0
- package/dist/components/Form/ElementWrapper.d.ts +24 -0
- package/dist/components/Form/Section.d.ts +21 -0
- package/dist/components/Form/Stack.d.ts +19 -0
- package/dist/components/Form/Typography.d.ts +21 -0
- package/dist/components/Form/Wizard.d.ts +27 -0
- package/dist/components/Form/index.d.ts +38 -0
- package/dist/components/Header/Header.d.ts +89 -0
- package/dist/components/Header/HeaderActions.d.ts +42 -0
- package/dist/components/Header/HeaderBrand.d.ts +48 -0
- package/dist/components/Header/HeaderBrandLogo.d.ts +45 -0
- package/dist/components/Header/HeaderBrandTitle.d.ts +45 -0
- package/dist/components/Header/HeaderSwitchers.d.ts +45 -0
- package/dist/components/Header/HeaderToggle.d.ts +52 -0
- package/dist/components/Header/context.d.ts +34 -0
- package/dist/components/Header/index.d.ts +33 -0
- package/dist/components/ListingTable/ListingTable/ListingTable.d.ts +54 -0
- package/dist/components/ListingTable/ListingTable/ListingTableBody.d.ts +6 -0
- package/dist/components/ListingTable/ListingTable/ListingTableCell.d.ts +15 -0
- package/dist/components/ListingTable/ListingTable/ListingTableContainer.d.ts +17 -0
- package/dist/components/ListingTable/ListingTable/ListingTableFooter.d.ts +6 -0
- package/dist/components/ListingTable/ListingTable/ListingTableHead.d.ts +6 -0
- package/dist/components/ListingTable/ListingTable/ListingTableRow.d.ts +18 -0
- package/dist/components/ListingTable/ListingTable/index.d.ts +21 -0
- package/dist/components/ListingTable/ListingTableProvider.d.ts +28 -0
- package/dist/components/ListingTable/context.d.ts +78 -0
- package/dist/components/ListingTable/index.d.ts +22 -0
- package/dist/components/ListingTable/shared/ListingTableCellIcon.d.ts +31 -0
- package/dist/components/ListingTable/shared/ListingTableDensityControl.d.ts +26 -0
- package/dist/components/ListingTable/shared/ListingTableEmptyState.d.ts +32 -0
- package/dist/components/ListingTable/shared/ListingTableRowActions.d.ts +24 -0
- package/dist/components/ListingTable/shared/ListingTableSortLabel.d.ts +37 -0
- package/dist/components/ListingTable/shared/ListingTableToolbar.d.ts +52 -0
- package/dist/components/ListingTable/shared/index.d.ts +14 -0
- package/dist/components/ListingTable/shared/types.d.ts +5 -0
- package/dist/components/NotificationBanner/NotificationBanner.d.ts +69 -0
- package/dist/components/NotificationBanner/index.d.ts +19 -0
- package/dist/components/NotificationPanel/NotificationActions.d.ts +44 -0
- package/dist/components/NotificationPanel/NotificationEmptyState.d.ts +41 -0
- package/dist/components/NotificationPanel/NotificationHeader.d.ts +47 -0
- package/dist/components/NotificationPanel/NotificationHeaderBadge.d.ts +46 -0
- package/dist/components/NotificationPanel/NotificationHeaderClose.d.ts +46 -0
- package/dist/components/NotificationPanel/NotificationHeaderIcon.d.ts +43 -0
- package/dist/components/NotificationPanel/NotificationHeaderTitle.d.ts +43 -0
- package/dist/components/NotificationPanel/NotificationItem.d.ts +64 -0
- package/dist/components/NotificationPanel/NotificationItemAction.d.ts +46 -0
- package/dist/components/NotificationPanel/NotificationItemAvatar.d.ts +44 -0
- package/dist/components/NotificationPanel/NotificationItemContext.d.ts +52 -0
- package/dist/components/NotificationPanel/NotificationItemMessage.d.ts +47 -0
- package/dist/components/NotificationPanel/NotificationItemTimestamp.d.ts +46 -0
- package/dist/components/NotificationPanel/NotificationItemTitle.d.ts +49 -0
- package/dist/components/NotificationPanel/NotificationList.d.ts +37 -0
- package/dist/components/NotificationPanel/NotificationPanel.d.ts +122 -0
- package/dist/components/NotificationPanel/NotificationTabs.d.ts +51 -0
- package/dist/components/NotificationPanel/context.d.ts +34 -0
- package/dist/components/NotificationPanel/index.d.ts +55 -0
- package/dist/components/NotificationPanel/utils.d.ts +46 -0
- package/dist/components/PageContent/PageContent.d.ts +71 -0
- package/dist/components/PageContent/index.d.ts +2 -0
- package/dist/components/PageTitle/PageTitle.d.ts +34 -0
- package/dist/components/PageTitle/PageTitleAvatar.d.ts +16 -0
- package/dist/components/PageTitle/PageTitleHeader.d.ts +16 -0
- package/dist/components/PageTitle/PageTitleLink.d.ts +20 -0
- package/dist/components/PageTitle/PageTitleSubHeader.d.ts +16 -0
- package/dist/components/PageTitle/index.d.ts +27 -0
- package/dist/components/SearchBar/SearchBar.d.ts +5 -0
- package/dist/components/SearchBar/SearchBarWithAdvancedFilter.d.ts +26 -0
- package/dist/components/Sidebar/Sidebar.d.ts +120 -0
- package/dist/components/Sidebar/SidebarCategory.d.ts +47 -0
- package/dist/components/Sidebar/SidebarCategoryLabel.d.ts +47 -0
- package/dist/components/Sidebar/SidebarFooter.d.ts +38 -0
- package/dist/components/Sidebar/SidebarItem.d.ts +61 -0
- package/dist/components/Sidebar/SidebarItemBadge.d.ts +47 -0
- package/dist/components/Sidebar/SidebarItemContext.d.ts +49 -0
- package/dist/components/Sidebar/SidebarItemIcon.d.ts +47 -0
- package/dist/components/Sidebar/SidebarItemLabel.d.ts +44 -0
- package/dist/components/Sidebar/SidebarNav.d.ts +42 -0
- package/dist/components/Sidebar/SidebarUser.d.ts +57 -0
- package/dist/components/Sidebar/SidebarUserAvatar.d.ts +51 -0
- package/dist/components/Sidebar/SidebarUserEmail.d.ts +48 -0
- package/dist/components/Sidebar/SidebarUserName.d.ts +45 -0
- package/dist/components/Sidebar/context.d.ts +42 -0
- package/dist/components/Sidebar/index.d.ts +47 -0
- package/dist/components/StatCard/StatCard.d.ts +48 -0
- package/dist/components/StatCard/index.d.ts +2 -0
- package/dist/components/ThemeSwitcher/ThemeSelect.d.ts +37 -0
- package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +65 -0
- package/dist/components/ThemeSwitcher/index.d.ts +4 -0
- package/dist/components/UserMenu/UserMenu.d.ts +74 -0
- package/dist/components/UserMenu/index.d.ts +19 -0
- package/dist/components/index.d.ts +54 -0
- package/dist/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.d.ts +58 -3
- package/dist/contexts/OxygenUIThemeProvider/index.d.ts +20 -0
- package/dist/contexts/index.d.ts +19 -0
- package/dist/hooks/index.d.ts +22 -0
- package/dist/hooks/useAppShell/index.d.ts +19 -0
- package/dist/hooks/useAppShell/useAppShell.d.ts +81 -0
- package/dist/hooks/useNotifications/index.d.ts +19 -0
- package/dist/hooks/useNotifications/useNotifications.d.ts +105 -0
- package/dist/hooks/useThemeContent/index.d.ts +18 -0
- package/dist/hooks/useThemeContent/useThemeContent.d.ts +57 -0
- package/dist/index.d.ts +8 -4
- package/dist/index.js +5172 -252
- package/dist/index.js.map +4 -4
- package/dist/layouts/Layout.d.ts +3 -0
- package/dist/layouts/LayoutContent.d.ts +3 -0
- package/dist/layouts/LayoutHeader.d.ts +3 -0
- package/dist/layouts/LayoutNavbar.d.ts +3 -0
- package/dist/layouts/LayoutSidebar.d.ts +3 -0
- package/dist/styles/Themes/AcrylicBaseTheme.d.ts +25 -0
- package/dist/styles/Themes/AcrylicOrangeTheme.d.ts +17 -0
- package/dist/styles/Themes/AcrylicPurpleTheme.d.ts +20 -0
- package/dist/styles/Themes/ClassicTheme.d.ts +24 -0
- package/dist/styles/Themes/HighContrastTheme.d.ts +20 -0
- package/dist/styles/Themes/OxygenThemeBase.d.ts +70 -0
- package/dist/styles/Themes/index.d.ts +22 -0
- package/dist/styles/index.d.ts +18 -0
- package/dist/utils/formatRelativeTime.d.ts +34 -0
- package/dist/utils/index.d.ts +19 -0
- package/dist/utils/pxToRem.d.ts +23 -0
- package/package.json +20 -12
- package/dist/components/ColorSchemeImage/ColorSchemeImage.js +0 -57
- package/dist/components/ColorSchemeImage/ColorSchemeImage.js.map +0 -7
- package/dist/components/ColorSchemeToggle/ColorSchemeToggle.js +0 -76
- package/dist/components/ColorSchemeToggle/ColorSchemeToggle.js.map +0 -7
- package/dist/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.js +0 -378
- package/dist/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.js.map +0 -7
- package/dist/styles/OxygenTheme/OxygenTheme.d.ts +0 -38
- package/dist/styles/OxygenTheme/OxygenTheme.js +0 -356
- package/dist/styles/OxygenTheme/OxygenTheme.js.map +0 -7
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
20
|
+
import { SidebarItemContext, SidebarItemProvider } from './SidebarItemContext';
|
|
21
|
+
import { SidebarItemIcon } from './SidebarItemIcon';
|
|
22
|
+
import { SidebarItemLabel } from './SidebarItemLabel';
|
|
23
|
+
import { SidebarItemBadge } from './SidebarItemBadge';
|
|
24
|
+
/**
|
|
25
|
+
* Props for SidebarItem component.
|
|
26
|
+
*/
|
|
27
|
+
export interface SidebarItemProps {
|
|
28
|
+
/** Unique identifier for this item */
|
|
29
|
+
id: string;
|
|
30
|
+
/** Composable children (ItemIcon, ItemLabel, ItemBadge) and nested items */
|
|
31
|
+
children: React.ReactNode;
|
|
32
|
+
/** Nesting depth (used internally) */
|
|
33
|
+
depth?: number;
|
|
34
|
+
/** Additional sx props */
|
|
35
|
+
sx?: SxProps<Theme>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* SidebarItem - Individual navigation menu item.
|
|
39
|
+
*
|
|
40
|
+
* Uses composable children API:
|
|
41
|
+
* ```tsx
|
|
42
|
+
* <Sidebar.Item id="home">
|
|
43
|
+
* <Sidebar.ItemIcon><Home size={20} /></Sidebar.ItemIcon>
|
|
44
|
+
* <Sidebar.ItemLabel>Home</Sidebar.ItemLabel>
|
|
45
|
+
* <Sidebar.ItemBadge>3</Sidebar.ItemBadge>
|
|
46
|
+
* {nestedItems}
|
|
47
|
+
* </Sidebar.Item>
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* Theme tokens used:
|
|
51
|
+
* - `action.selected` - Active item background
|
|
52
|
+
* - `primary.main` - Active item icon color
|
|
53
|
+
*/
|
|
54
|
+
export declare const SidebarItem: React.FC<SidebarItemProps>;
|
|
55
|
+
export { SidebarItemIcon, SidebarItemLabel, SidebarItemBadge, SidebarItemContext, SidebarItemProvider, };
|
|
56
|
+
export { useSidebarItemContext } from './SidebarItemContext';
|
|
57
|
+
export type { SidebarItemContextValue } from './SidebarItemContext';
|
|
58
|
+
export type { SidebarItemIconProps } from './SidebarItemIcon';
|
|
59
|
+
export type { SidebarItemLabelProps } from './SidebarItemLabel';
|
|
60
|
+
export type { SidebarItemBadgeProps } from './SidebarItemBadge';
|
|
61
|
+
export default SidebarItem;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
20
|
+
/**
|
|
21
|
+
* Props for SidebarItemBadge component.
|
|
22
|
+
*/
|
|
23
|
+
export interface SidebarItemBadgeProps {
|
|
24
|
+
/** Badge content (number or string) */
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
/** Badge color */
|
|
27
|
+
color?: 'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning';
|
|
28
|
+
/** Additional sx props */
|
|
29
|
+
sx?: SxProps<Theme>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* SidebarItemBadge - Badge for a sidebar item.
|
|
33
|
+
*
|
|
34
|
+
* Displays a small chip/badge next to the item label. Hidden when
|
|
35
|
+
* the sidebar is collapsed.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```tsx
|
|
39
|
+
* <Sidebar.Item id="notifications">
|
|
40
|
+
* <Sidebar.ItemIcon><Bell size={20} /></Sidebar.ItemIcon>
|
|
41
|
+
* <Sidebar.ItemLabel>Notifications</Sidebar.ItemLabel>
|
|
42
|
+
* <Sidebar.ItemBadge color="error">5</Sidebar.ItemBadge>
|
|
43
|
+
* </Sidebar.Item>
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare const SidebarItemBadge: React.FC<SidebarItemBadgeProps>;
|
|
47
|
+
export default SidebarItemBadge;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
/**
|
|
20
|
+
* Context value for sidebar item state.
|
|
21
|
+
*/
|
|
22
|
+
export interface SidebarItemContextValue {
|
|
23
|
+
/** Item's unique identifier */
|
|
24
|
+
id: string;
|
|
25
|
+
/** Whether this item is active */
|
|
26
|
+
isActive: boolean;
|
|
27
|
+
/** Whether this item is expanded (has visible children) */
|
|
28
|
+
isExpanded: boolean;
|
|
29
|
+
/** Whether this item has children */
|
|
30
|
+
hasChildren: boolean;
|
|
31
|
+
/** Current nesting depth */
|
|
32
|
+
depth: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Context for sharing state between SidebarItem and its children.
|
|
36
|
+
*/
|
|
37
|
+
export declare const SidebarItemContext: React.Context<SidebarItemContextValue | null>;
|
|
38
|
+
/**
|
|
39
|
+
* Hook to access the sidebar item context.
|
|
40
|
+
* Must be used within a SidebarItem component.
|
|
41
|
+
*/
|
|
42
|
+
export declare const useSidebarItemContext: () => SidebarItemContextValue;
|
|
43
|
+
/**
|
|
44
|
+
* Provider component for sidebar item context.
|
|
45
|
+
*/
|
|
46
|
+
export declare const SidebarItemProvider: React.FC<{
|
|
47
|
+
value: SidebarItemContextValue;
|
|
48
|
+
children: React.ReactNode;
|
|
49
|
+
}>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
20
|
+
/**
|
|
21
|
+
* Props for SidebarItemIcon component.
|
|
22
|
+
*/
|
|
23
|
+
export interface SidebarItemIconProps {
|
|
24
|
+
/** Icon element to display */
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
/** Additional sx props */
|
|
27
|
+
sx?: SxProps<Theme>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* SidebarItemIcon - Icon container for a sidebar item.
|
|
31
|
+
*
|
|
32
|
+
* Automatically adjusts styling based on active state and collapsed state.
|
|
33
|
+
* Use as a child of Sidebar.Item for composable menu items.
|
|
34
|
+
*
|
|
35
|
+
* Theme tokens used:
|
|
36
|
+
* - `primary.main` - Active item icon color
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```tsx
|
|
40
|
+
* <Sidebar.Item id="home">
|
|
41
|
+
* <Sidebar.ItemIcon><Home size={20} /></Sidebar.ItemIcon>
|
|
42
|
+
* <Sidebar.ItemLabel>Home</Sidebar.ItemLabel>
|
|
43
|
+
* </Sidebar.Item>
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare const SidebarItemIcon: React.FC<SidebarItemIconProps>;
|
|
47
|
+
export default SidebarItemIcon;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
20
|
+
/**
|
|
21
|
+
* Props for SidebarItemLabel component.
|
|
22
|
+
*/
|
|
23
|
+
export interface SidebarItemLabelProps {
|
|
24
|
+
/** Label text to display */
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
/** Additional sx props */
|
|
27
|
+
sx?: SxProps<Theme>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* SidebarItemLabel - Label text for a sidebar item.
|
|
31
|
+
*
|
|
32
|
+
* Automatically hidden when sidebar is collapsed. Adjusts font weight
|
|
33
|
+
* based on active state.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* <Sidebar.Item id="home">
|
|
38
|
+
* <Sidebar.ItemIcon><Home size={20} /></Sidebar.ItemIcon>
|
|
39
|
+
* <Sidebar.ItemLabel>Home</Sidebar.ItemLabel>
|
|
40
|
+
* </Sidebar.Item>
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare const SidebarItemLabel: React.FC<SidebarItemLabelProps>;
|
|
44
|
+
export default SidebarItemLabel;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
20
|
+
/**
|
|
21
|
+
* Props for SidebarNav component.
|
|
22
|
+
*/
|
|
23
|
+
export interface SidebarNavProps {
|
|
24
|
+
/** Navigation categories */
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
/** Whether to show dividers between categories */
|
|
27
|
+
showDividers?: boolean;
|
|
28
|
+
/** Additional sx props */
|
|
29
|
+
sx?: SxProps<Theme>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* SidebarNav - Scrollable navigation container.
|
|
33
|
+
*
|
|
34
|
+
* Contains navigation categories and handles scrolling behavior.
|
|
35
|
+
* Provides styled scrollbars using theme tokens.
|
|
36
|
+
*
|
|
37
|
+
* Theme tokens used:
|
|
38
|
+
* - `action.disabled` - Scrollbar thumb color
|
|
39
|
+
* - `action.active` - Scrollbar thumb hover color
|
|
40
|
+
*/
|
|
41
|
+
export declare const SidebarNav: React.FC<SidebarNavProps>;
|
|
42
|
+
export default SidebarNav;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
20
|
+
import { SidebarUserAvatar } from './SidebarUserAvatar';
|
|
21
|
+
import { SidebarUserName } from './SidebarUserName';
|
|
22
|
+
import { SidebarUserEmail } from './SidebarUserEmail';
|
|
23
|
+
/**
|
|
24
|
+
* Props for SidebarUser component.
|
|
25
|
+
*/
|
|
26
|
+
export interface SidebarUserProps {
|
|
27
|
+
/** Composable children (UserAvatar, UserName, UserEmail) */
|
|
28
|
+
children: React.ReactNode;
|
|
29
|
+
/** Click handler */
|
|
30
|
+
onClick?: () => void;
|
|
31
|
+
/** Whether to show divider above */
|
|
32
|
+
showDivider?: boolean;
|
|
33
|
+
/** Additional sx props */
|
|
34
|
+
sx?: SxProps<Theme>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* SidebarUser - User profile section at the bottom of the sidebar.
|
|
38
|
+
*
|
|
39
|
+
* Uses composable children API:
|
|
40
|
+
* ```tsx
|
|
41
|
+
* <Sidebar.User>
|
|
42
|
+
* <Sidebar.UserAvatar>JD</Sidebar.UserAvatar>
|
|
43
|
+
* <Sidebar.UserName>John Doe</Sidebar.UserName>
|
|
44
|
+
* <Sidebar.UserEmail>john@example.com</Sidebar.UserEmail>
|
|
45
|
+
* </Sidebar.User>
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* Theme tokens used:
|
|
49
|
+
* - `primary.main` - Avatar background color
|
|
50
|
+
* - `text.secondary` - Email text color
|
|
51
|
+
*/
|
|
52
|
+
export declare const SidebarUser: React.FC<SidebarUserProps>;
|
|
53
|
+
export { SidebarUserAvatar, SidebarUserName, SidebarUserEmail };
|
|
54
|
+
export type { SidebarUserAvatarProps } from './SidebarUserAvatar';
|
|
55
|
+
export type { SidebarUserNameProps } from './SidebarUserName';
|
|
56
|
+
export type { SidebarUserEmailProps } from './SidebarUserEmail';
|
|
57
|
+
export default SidebarUser;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
20
|
+
/**
|
|
21
|
+
* Props for SidebarUserAvatar component.
|
|
22
|
+
*/
|
|
23
|
+
export interface SidebarUserAvatarProps {
|
|
24
|
+
/** Avatar content (initials or text) */
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
/** Image source URL */
|
|
27
|
+
src?: string;
|
|
28
|
+
/** Alt text for image */
|
|
29
|
+
alt?: string;
|
|
30
|
+
/** Additional sx props */
|
|
31
|
+
sx?: SxProps<Theme>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* SidebarUserAvatar - Avatar for the user section.
|
|
35
|
+
*
|
|
36
|
+
* Displays user avatar with primary color background.
|
|
37
|
+
* Can display initials as children or an image via src prop.
|
|
38
|
+
*
|
|
39
|
+
* Theme tokens used:
|
|
40
|
+
* - `primary.main` - Avatar background color
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```tsx
|
|
44
|
+
* <Sidebar.User>
|
|
45
|
+
* <Sidebar.UserAvatar>JD</Sidebar.UserAvatar>
|
|
46
|
+
* <Sidebar.UserName>John Doe</Sidebar.UserName>
|
|
47
|
+
* </Sidebar.User>
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare const SidebarUserAvatar: React.FC<SidebarUserAvatarProps>;
|
|
51
|
+
export default SidebarUserAvatar;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
20
|
+
/**
|
|
21
|
+
* Props for SidebarUserEmail component.
|
|
22
|
+
*/
|
|
23
|
+
export interface SidebarUserEmailProps {
|
|
24
|
+
/** User's email address */
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
/** Additional sx props */
|
|
27
|
+
sx?: SxProps<Theme>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* SidebarUserEmail - User email display for the sidebar user section.
|
|
31
|
+
*
|
|
32
|
+
* Displays the user's email with secondary styling. Hidden when the
|
|
33
|
+
* sidebar is collapsed.
|
|
34
|
+
*
|
|
35
|
+
* Theme tokens used:
|
|
36
|
+
* - `text.secondary` - Email text color
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```tsx
|
|
40
|
+
* <Sidebar.User>
|
|
41
|
+
* <Sidebar.UserAvatar>JD</Sidebar.UserAvatar>
|
|
42
|
+
* <Sidebar.UserName>John Doe</Sidebar.UserName>
|
|
43
|
+
* <Sidebar.UserEmail>john@example.com</Sidebar.UserEmail>
|
|
44
|
+
* </Sidebar.User>
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export declare const SidebarUserEmail: React.FC<SidebarUserEmailProps>;
|
|
48
|
+
export default SidebarUserEmail;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
20
|
+
/**
|
|
21
|
+
* Props for SidebarUserName component.
|
|
22
|
+
*/
|
|
23
|
+
export interface SidebarUserNameProps {
|
|
24
|
+
/** User's display name */
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
/** Additional sx props */
|
|
27
|
+
sx?: SxProps<Theme>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* SidebarUserName - User name display for the sidebar user section.
|
|
31
|
+
*
|
|
32
|
+
* Displays the user's name with proper styling. Hidden when the
|
|
33
|
+
* sidebar is collapsed.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* <Sidebar.User>
|
|
38
|
+
* <Sidebar.UserAvatar>JD</Sidebar.UserAvatar>
|
|
39
|
+
* <Sidebar.UserName>John Doe</Sidebar.UserName>
|
|
40
|
+
* <Sidebar.UserEmail>john@example.com</Sidebar.UserEmail>
|
|
41
|
+
* </Sidebar.User>
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare const SidebarUserName: React.FC<SidebarUserNameProps>;
|
|
45
|
+
export default SidebarUserName;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
/**
|
|
20
|
+
* Context value for Sidebar compound component.
|
|
21
|
+
*/
|
|
22
|
+
export interface SidebarContextValue {
|
|
23
|
+
/** Whether the sidebar is collapsed */
|
|
24
|
+
collapsed: boolean;
|
|
25
|
+
/** Currently active menu item ID */
|
|
26
|
+
activeItem?: string;
|
|
27
|
+
/** Map of expanded menu IDs */
|
|
28
|
+
expandedMenus: Record<string, boolean>;
|
|
29
|
+
/** Callback when a menu item is selected */
|
|
30
|
+
onSelect?: (id: string) => void;
|
|
31
|
+
/** Callback to toggle menu expansion */
|
|
32
|
+
onToggleExpand?: (id: string) => void;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Context for sharing state between Sidebar compound components.
|
|
36
|
+
*/
|
|
37
|
+
export declare const SidebarContext: React.Context<SidebarContextValue | null>;
|
|
38
|
+
/**
|
|
39
|
+
* Hook to access Sidebar context.
|
|
40
|
+
* @throws Error if used outside Sidebar
|
|
41
|
+
*/
|
|
42
|
+
export declare const useSidebar: () => SidebarContextValue;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
export { Sidebar, default, SIDEBAR_WIDTH, COLLAPSED_SIDEBAR_WIDTH, } from './Sidebar';
|
|
19
|
+
export type { SidebarProps } from './Sidebar';
|
|
20
|
+
export { SidebarNav } from './SidebarNav';
|
|
21
|
+
export type { SidebarNavProps } from './SidebarNav';
|
|
22
|
+
export { SidebarCategory } from './SidebarCategory';
|
|
23
|
+
export type { SidebarCategoryProps } from './SidebarCategory';
|
|
24
|
+
export { SidebarCategoryLabel } from './SidebarCategoryLabel';
|
|
25
|
+
export type { SidebarCategoryLabelProps } from './SidebarCategoryLabel';
|
|
26
|
+
export { SidebarItem } from './SidebarItem';
|
|
27
|
+
export type { SidebarItemProps } from './SidebarItem';
|
|
28
|
+
export { SidebarItemIcon } from './SidebarItemIcon';
|
|
29
|
+
export type { SidebarItemIconProps } from './SidebarItemIcon';
|
|
30
|
+
export { SidebarItemLabel } from './SidebarItemLabel';
|
|
31
|
+
export type { SidebarItemLabelProps } from './SidebarItemLabel';
|
|
32
|
+
export { SidebarItemBadge } from './SidebarItemBadge';
|
|
33
|
+
export type { SidebarItemBadgeProps } from './SidebarItemBadge';
|
|
34
|
+
export { SidebarItemContext, SidebarItemProvider, useSidebarItemContext, } from './SidebarItemContext';
|
|
35
|
+
export type { SidebarItemContextValue } from './SidebarItemContext';
|
|
36
|
+
export { SidebarFooter } from './SidebarFooter';
|
|
37
|
+
export type { SidebarFooterProps } from './SidebarFooter';
|
|
38
|
+
export { SidebarUser } from './SidebarUser';
|
|
39
|
+
export type { SidebarUserProps } from './SidebarUser';
|
|
40
|
+
export { SidebarUserAvatar } from './SidebarUserAvatar';
|
|
41
|
+
export type { SidebarUserAvatarProps } from './SidebarUserAvatar';
|
|
42
|
+
export { SidebarUserName } from './SidebarUserName';
|
|
43
|
+
export type { SidebarUserNameProps } from './SidebarUserName';
|
|
44
|
+
export { SidebarUserEmail } from './SidebarUserEmail';
|
|
45
|
+
export type { SidebarUserEmailProps } from './SidebarUserEmail';
|
|
46
|
+
export { SidebarContext, useSidebar } from './context';
|
|
47
|
+
export type { SidebarContextValue } from './context';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CardProps } from '@mui/material';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the StatCard component
|
|
5
|
+
*/
|
|
6
|
+
export interface StatCardProps extends CardProps {
|
|
7
|
+
/**
|
|
8
|
+
* The main value to display
|
|
9
|
+
*/
|
|
10
|
+
value: string | number;
|
|
11
|
+
/**
|
|
12
|
+
* The label/title for the stat
|
|
13
|
+
*/
|
|
14
|
+
label: string;
|
|
15
|
+
/**
|
|
16
|
+
* Optional icon element to display
|
|
17
|
+
*/
|
|
18
|
+
icon?: React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Optional color for the icon
|
|
21
|
+
*/
|
|
22
|
+
iconColor?: 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* StatCard component - A card for displaying statistics with an icon, value, and label
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* <StatCard
|
|
30
|
+
* value="42"
|
|
31
|
+
* label="Total Users"
|
|
32
|
+
* icon={<Users size={24} />}
|
|
33
|
+
* iconColor="primary"
|
|
34
|
+
* />
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```tsx
|
|
39
|
+
* <StatCard
|
|
40
|
+
* value="99.9%"
|
|
41
|
+
* label="Uptime"
|
|
42
|
+
* icon={<Activity size={24} />}
|
|
43
|
+
* iconColor="success"
|
|
44
|
+
* />
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
declare const StatCard: React.FC<StatCardProps>;
|
|
48
|
+
export default StatCard;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface ThemeSelectProps {
|
|
2
|
+
/**
|
|
3
|
+
* Size of the select component
|
|
4
|
+
*/
|
|
5
|
+
size?: 'small' | 'medium';
|
|
6
|
+
/**
|
|
7
|
+
* Show label for the select
|
|
8
|
+
*/
|
|
9
|
+
showLabel?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Custom label text
|
|
12
|
+
*/
|
|
13
|
+
label?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Variant of the select component
|
|
16
|
+
*/
|
|
17
|
+
variant?: 'outlined' | 'filled' | 'standard';
|
|
18
|
+
/**
|
|
19
|
+
* Additional sx prop for styling
|
|
20
|
+
*/
|
|
21
|
+
sx?: object;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* ThemeSelect - A select box component for theme switching
|
|
25
|
+
*
|
|
26
|
+
* Must be used within OxygenUIThemeProvider with themes prop.
|
|
27
|
+
* Provides a dropdown select interface for switching between available themes.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* <OxygenUIThemeProvider themes={myThemes}>
|
|
32
|
+
* <ThemeSelect />
|
|
33
|
+
* <App />
|
|
34
|
+
* </OxygenUIThemeProvider>
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export default function ThemeSelect({ size, showLabel, label, variant, sx, }: ThemeSelectProps): import("react/jsx-runtime").JSX.Element;
|