@wso2/oxygen-ui 0.0.1-alpha.10 → 0.0.1-alpha.12

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.
Files changed (54) hide show
  1. package/README.md +134 -2
  2. package/dist/animations/ParticleBackground/ParticleBackground.d.ts +66 -0
  3. package/dist/animations/ParticleBackground/index.d.ts +19 -0
  4. package/dist/animations/index.d.ts +18 -0
  5. package/dist/components/CodeBlock/CodeBlock.d.ts +47 -0
  6. package/dist/components/CodeBlock/index.d.ts +19 -0
  7. package/dist/components/ColorSchemeImage/index.d.ts +19 -0
  8. package/dist/components/ColorSchemeToggle/index.d.ts +18 -0
  9. package/dist/components/ComplexSelect/ComplexSelect.d.ts +17 -0
  10. package/dist/components/ComplexSelect/ComplexSelectDivider.d.ts +4 -0
  11. package/dist/components/ComplexSelect/ComplexSelectListHeader.d.ts +7 -0
  12. package/dist/components/ComplexSelect/ComplexSelectMenuItem.d.ts +16 -0
  13. package/dist/components/ComplexSelect/ComplexSelectMenuItemAvatar.d.ts +7 -0
  14. package/dist/components/ComplexSelect/ComplexSelectMenuItemIcon.d.ts +7 -0
  15. package/dist/components/ComplexSelect/ComplexSelectMenuItemText.d.ts +8 -0
  16. package/dist/components/ComplexSelect/index.d.ts +21 -0
  17. package/dist/components/PageTitle/PageTitle.d.ts +34 -0
  18. package/dist/components/PageTitle/PageTitleAvatar.d.ts +16 -0
  19. package/dist/components/PageTitle/PageTitleHeader.d.ts +16 -0
  20. package/dist/components/PageTitle/PageTitleLink.d.ts +20 -0
  21. package/dist/components/PageTitle/PageTitleSubHeader.d.ts +16 -0
  22. package/dist/components/PageTitle/index.d.ts +27 -0
  23. package/dist/components/ThemeSwitcher/ThemeSelect.d.ts +37 -0
  24. package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +65 -0
  25. package/dist/components/ThemeSwitcher/index.d.ts +4 -0
  26. package/dist/components/index.d.ts +28 -0
  27. package/dist/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.d.ts +58 -3
  28. package/dist/contexts/OxygenUIThemeProvider/index.d.ts +20 -0
  29. package/dist/contexts/index.d.ts +19 -0
  30. package/dist/hooks/index.d.ts +18 -0
  31. package/dist/hooks/useThemeContent/index.d.ts +18 -0
  32. package/dist/hooks/useThemeContent/useThemeContent.d.ts +57 -0
  33. package/dist/index.d.ts +7 -4
  34. package/dist/index.js +1360 -169
  35. package/dist/index.js.map +4 -4
  36. package/dist/styles/Themes/AsgardeoTheme.d.ts +17 -0
  37. package/dist/styles/Themes/ChoreoTheme.d.ts +20 -0
  38. package/dist/styles/Themes/ClassicTheme.d.ts +20 -0
  39. package/dist/styles/Themes/HighContrastTheme.d.ts +20 -0
  40. package/dist/styles/Themes/OxygenBaseTheme.d.ts +66 -0
  41. package/dist/styles/Themes/index.d.ts +22 -0
  42. package/dist/styles/index.d.ts +18 -0
  43. package/dist/utils/index.d.ts +18 -0
  44. package/dist/utils/pxToRem.d.ts +23 -0
  45. package/package.json +10 -8
  46. package/dist/components/ColorSchemeImage/ColorSchemeImage.js +0 -57
  47. package/dist/components/ColorSchemeImage/ColorSchemeImage.js.map +0 -7
  48. package/dist/components/ColorSchemeToggle/ColorSchemeToggle.js +0 -76
  49. package/dist/components/ColorSchemeToggle/ColorSchemeToggle.js.map +0 -7
  50. package/dist/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.js +0 -378
  51. package/dist/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.js.map +0 -7
  52. package/dist/styles/OxygenTheme/OxygenTheme.d.ts +0 -38
  53. package/dist/styles/OxygenTheme/OxygenTheme.js +0 -356
  54. package/dist/styles/OxygenTheme/OxygenTheme.js.map +0 -7
package/README.md CHANGED
@@ -181,15 +181,147 @@ function MyTreeView() {
181
181
  }
182
182
  ```
183
183
 
184
+ ## Theme Switching
185
+
186
+ Oxygen UI provides built-in theme switching capabilities through `OxygenUIThemeProvider` and UI components for easy theme selection.
187
+
188
+ ### Basic Setup
189
+
190
+ Pass a `themes` array to `OxygenUIThemeProvider`:
191
+
192
+ ```typescript
193
+ import {
194
+ OxygenUIThemeProvider,
195
+ OxygenTheme,
196
+ OxygenThemeWithRadialBackground
197
+ } from '@wso2/oxygen-ui';
198
+
199
+ function App() {
200
+ return (
201
+ <OxygenUIThemeProvider
202
+ themes={[
203
+ { key: 'default', label: 'Default', theme: OxygenTheme },
204
+ { key: 'radial', label: 'Radial Background', theme: OxygenThemeWithRadialBackground },
205
+ ]}
206
+ initialTheme="default"
207
+ >
208
+ <YourApp />
209
+ </OxygenUIThemeProvider>
210
+ );
211
+ }
212
+ ```
213
+
214
+ ### Using ThemeSwitcher Component
215
+
216
+ Add the `ThemeSwitcher` component to provide a select dropdown:
217
+
218
+ ```typescript
219
+ import {
220
+ OxygenUIThemeProvider,
221
+ ThemeSwitcher,
222
+ OxygenTheme,
223
+ OxygenThemeWithRadialBackground
224
+ } from '@wso2/oxygen-ui';
225
+
226
+ function App() {
227
+ return (
228
+ <OxygenUIThemeProvider
229
+ themes={[
230
+ { key: 'default', label: 'Default', theme: OxygenTheme },
231
+ { key: 'radial', label: 'Radial Background', theme: OxygenThemeWithRadialBackground },
232
+ ]}
233
+ >
234
+ <header>
235
+ <ThemeSwitcher /> {/* Default select dropdown */}
236
+ </header>
237
+ <YourApp />
238
+ </OxygenUIThemeProvider>
239
+ );
240
+ }
241
+ ```
242
+
243
+ ### Custom Theme Switcher UI
244
+
245
+ Use render props for custom UI:
246
+
247
+ ```typescript
248
+ <ThemeSwitcher>
249
+ {({ currentTheme, themes, setTheme, isActive }) => (
250
+ <ButtonGroup>
251
+ {themes.map(theme => (
252
+ <Button
253
+ key={theme.key}
254
+ variant={isActive(theme.key) ? 'contained' : 'outlined'}
255
+ onClick={() => setTheme(theme.key)}
256
+ >
257
+ {theme.label}
258
+ </Button>
259
+ ))}
260
+ </ButtonGroup>
261
+ )}
262
+ </ThemeSwitcher>
263
+ ```
264
+
265
+ ### Custom Themes
266
+
267
+ Add your own custom themes:
268
+
269
+ ```typescript
270
+ import { extendTheme } from '@mui/material/styles';
271
+
272
+ const customTheme = extendTheme({
273
+ palette: {
274
+ primary: { main: '#ff0000' },
275
+ },
276
+ });
277
+
278
+ function App() {
279
+ return (
280
+ <OxygenUIThemeProvider
281
+ themes={[
282
+ { key: 'default', label: 'Default', theme: OxygenTheme },
283
+ { key: 'custom', label: 'Custom Theme', theme: customTheme },
284
+ ]}
285
+ >
286
+ <ThemeSwitcher showLabel label="Select Theme" />
287
+ <YourApp />
288
+ </OxygenUIThemeProvider>
289
+ );
290
+ }
291
+ ```
292
+
293
+ ### Programmatic Access
294
+
295
+ Use the `useThemeSwitcher` hook to access theme state:
296
+
297
+ ```typescript
298
+ import { useThemeSwitcher } from '@wso2/oxygen-ui';
299
+
300
+ function MyComponent() {
301
+ const { currentTheme, themes, setTheme, isActive } = useThemeSwitcher();
302
+
303
+ return (
304
+ <div>
305
+ <p>Current theme: {currentTheme}</p>
306
+ <button onClick={() => setTheme('radial')}>Switch to Radial</button>
307
+ </div>
308
+ );
309
+ }
310
+ ```
311
+
184
312
  ## Available Exports
185
313
 
186
314
  ### Custom Oxygen UI Components
187
315
 
188
- - `OxygenTheme` - Theme configuration
189
- - `OxygenUIThemeProvider` - Theme provider component
316
+ - `OxygenTheme` - Default theme configuration
317
+ - `OxygenThemeWithRadialBackground` - Theme variant with radial gradient backgrounds
318
+ - `OxygenUIThemeProvider` - Theme provider component with theme switching support
319
+ - `ThemeSwitcher` - Theme selection component (default select dropdown or render props)
320
+ - `ThemeSelect` - Standalone theme select dropdown component
190
321
  - `ColorSchemeImage` - Image component that adapts to color scheme
191
322
  - `ColorSchemeToggle` - Toggle for light/dark mode
192
323
  - `Layout` - Layout components
324
+ - `useThemeSwitcher` - Hook to access theme switcher context
193
325
 
194
326
  ### Material-UI Components
195
327
 
@@ -0,0 +1,66 @@
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 interface ParticleBackgroundProps {
19
+ /**
20
+ * Opacity of the canvas
21
+ * @default 0.5
22
+ */
23
+ opacity?: number;
24
+ /**
25
+ * Particles per 10,000 px^2 (scales with screen size)
26
+ * @default 0.12
27
+ */
28
+ baseDensity?: number;
29
+ /**
30
+ * Maximum speed in px per frame
31
+ * @default 0.3
32
+ */
33
+ maxSpeed?: number;
34
+ /**
35
+ * Min and max radius of particles
36
+ * @default [2.0, 3.2]
37
+ */
38
+ radius?: [number, number];
39
+ /**
40
+ * Maximum distance to draw line between particles
41
+ * @default 210
42
+ */
43
+ linkDist?: number;
44
+ /**
45
+ * Base opacity of the lines
46
+ * @default 0.2
47
+ */
48
+ linkAlpha?: number;
49
+ /**
50
+ * Radius of mouse influence
51
+ * @default 110
52
+ */
53
+ mouseInfluence?: number;
54
+ /**
55
+ * How strong the repel effect is
56
+ * @default 0.35
57
+ */
58
+ repelStrength?: number;
59
+ /**
60
+ * Impulse on click
61
+ * @default 120
62
+ */
63
+ clickBurst?: number;
64
+ }
65
+ export declare const ParticleBackground: React.FC<ParticleBackgroundProps>;
66
+ export default ParticleBackground;
@@ -0,0 +1,19 @@
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 { ParticleBackground, default } from './ParticleBackground';
19
+ export type { ParticleBackgroundProps } from './ParticleBackground';
@@ -0,0 +1,18 @@
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 * from './ParticleBackground';
@@ -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 React from 'react';
19
+ import 'prismjs/components/prism-javascript';
20
+ import 'prismjs/components/prism-typescript';
21
+ import 'prismjs/components/prism-jsx';
22
+ import 'prismjs/components/prism-tsx';
23
+ import 'prismjs/components/prism-css';
24
+ import 'prismjs/components/prism-bash';
25
+ import 'prismjs/components/prism-json';
26
+ import 'prismjs/components/prism-markup';
27
+ export interface CodeBlockProps {
28
+ /**
29
+ * The code to display
30
+ */
31
+ code: string;
32
+ /**
33
+ * The programming language for syntax highlighting
34
+ * @default 'tsx'
35
+ */
36
+ language?: 'javascript' | 'typescript' | 'jsx' | 'tsx' | 'css' | 'bash' | 'json' | 'markup' | 'html';
37
+ /**
38
+ * Show line numbers
39
+ * @default false
40
+ */
41
+ showLineNumbers?: boolean;
42
+ }
43
+ /**
44
+ * CodeBlock component with syntax highlighting powered by Prism.js
45
+ */
46
+ declare const CodeBlock: React.FC<CodeBlockProps>;
47
+ export default CodeBlock;
@@ -0,0 +1,19 @@
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 { default } from './CodeBlock';
19
+ export * from './CodeBlock';
@@ -0,0 +1,19 @@
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 { default } from './ColorSchemeImage';
19
+ export type { ColorSchemeImageProps, ColorSchemeImageAttribute } from './ColorSchemeImage';
@@ -0,0 +1,18 @@
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 { ColorSchemeToggle, default } from './ColorSchemeToggle';
@@ -0,0 +1,17 @@
1
+ import { ReactNode, ReactElement } from 'react';
2
+ import { SelectProps } from '@mui/material/Select';
3
+ import ComplexSelectListHeader from './ComplexSelectListHeader';
4
+ import ComplexSelectMenuItem from './ComplexSelectMenuItem';
5
+ import ComplexSelectDivider from './ComplexSelectDivider';
6
+ export interface ComplexSelectProps extends Omit<SelectProps, 'children'> {
7
+ children: ReactNode;
8
+ }
9
+ export declare function ComplexSelect({ children, sx, label, labelId, ...props }: ComplexSelectProps): import("react/jsx-runtime").JSX.Element;
10
+ interface ComplexSelectComponent {
11
+ (props: ComplexSelectProps): ReactElement;
12
+ ListHeader: typeof ComplexSelectListHeader;
13
+ MenuItem: typeof ComplexSelectMenuItem;
14
+ Divider: typeof ComplexSelectDivider;
15
+ }
16
+ declare const ComplexSelectCompound: ComplexSelectComponent;
17
+ export default ComplexSelectCompound;
@@ -0,0 +1,4 @@
1
+ import { DividerProps } from '@mui/material/Divider';
2
+ export type ComplexSelectDividerProps = DividerProps;
3
+ export declare function ComplexSelectDivider({ sx, ...props }: ComplexSelectDividerProps): import("react/jsx-runtime").JSX.Element;
4
+ export default ComplexSelectDivider;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ import { ListSubheaderProps } from '@mui/material/ListSubheader';
3
+ export interface ComplexSelectListHeaderProps extends ListSubheaderProps {
4
+ children: ReactNode;
5
+ }
6
+ export declare function ComplexSelectListHeader({ children, sx, ...props }: ComplexSelectListHeaderProps): import("react/jsx-runtime").JSX.Element;
7
+ export default ComplexSelectListHeader;
@@ -0,0 +1,16 @@
1
+ import { ReactNode, ReactElement } from 'react';
2
+ import { MenuItemProps } from '@mui/material/MenuItem';
3
+ import ComplexSelectMenuItemAvatar from './ComplexSelectMenuItemAvatar';
4
+ import ComplexSelectMenuItemText from './ComplexSelectMenuItemText';
5
+ import ComplexSelectMenuItemIcon from './ComplexSelectMenuItemIcon';
6
+ export interface ComplexSelectMenuItemProps extends MenuItemProps {
7
+ children: ReactNode;
8
+ }
9
+ interface ComplexSelectMenuItemComponent {
10
+ (props: ComplexSelectMenuItemProps): ReactElement;
11
+ Avatar: typeof ComplexSelectMenuItemAvatar;
12
+ Text: typeof ComplexSelectMenuItemText;
13
+ Icon: typeof ComplexSelectMenuItemIcon;
14
+ }
15
+ export declare const ComplexSelectMenuItem: ComplexSelectMenuItemComponent;
16
+ export default ComplexSelectMenuItem;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ import { AvatarProps } from '@mui/material/Avatar';
3
+ export interface ComplexSelectMenuItemAvatarProps extends AvatarProps {
4
+ children?: ReactNode;
5
+ }
6
+ export declare function ComplexSelectMenuItemAvatar({ children, ...props }: ComplexSelectMenuItemAvatarProps): import("react/jsx-runtime").JSX.Element;
7
+ export default ComplexSelectMenuItemAvatar;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ import { ListItemIconProps } from '@mui/material/ListItemIcon';
3
+ export interface ComplexSelectMenuItemIconProps extends ListItemIconProps {
4
+ children: ReactNode;
5
+ }
6
+ export declare function ComplexSelectMenuItemIcon({ children, ...props }: ComplexSelectMenuItemIconProps): import("react/jsx-runtime").JSX.Element;
7
+ export default ComplexSelectMenuItemIcon;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ import { ListItemTextProps } from '@mui/material/ListItemText';
3
+ export interface ComplexSelectMenuItemTextProps extends ListItemTextProps {
4
+ primary: ReactNode;
5
+ secondary?: ReactNode;
6
+ }
7
+ export declare function ComplexSelectMenuItemText({ primary, secondary, ...props }: ComplexSelectMenuItemTextProps): import("react/jsx-runtime").JSX.Element;
8
+ export default ComplexSelectMenuItemText;
@@ -0,0 +1,21 @@
1
+ export { default } from './ComplexSelect';
2
+ export { ComplexSelect } from './ComplexSelect';
3
+ export type { ComplexSelectProps } from './ComplexSelect';
4
+ export { default as ComplexSelectListHeader } from './ComplexSelectListHeader';
5
+ export { ComplexSelectListHeader as ListHeader } from './ComplexSelectListHeader';
6
+ export type { ComplexSelectListHeaderProps } from './ComplexSelectListHeader';
7
+ export { default as ComplexSelectMenuItem } from './ComplexSelectMenuItem';
8
+ export { ComplexSelectMenuItem as MenuItem } from './ComplexSelectMenuItem';
9
+ export type { ComplexSelectMenuItemProps } from './ComplexSelectMenuItem';
10
+ export { default as ComplexSelectMenuItemAvatar } from './ComplexSelectMenuItemAvatar';
11
+ export { ComplexSelectMenuItemAvatar as MenuItemAvatar } from './ComplexSelectMenuItemAvatar';
12
+ export type { ComplexSelectMenuItemAvatarProps } from './ComplexSelectMenuItemAvatar';
13
+ export { default as ComplexSelectMenuItemText } from './ComplexSelectMenuItemText';
14
+ export { ComplexSelectMenuItemText as MenuItemText } from './ComplexSelectMenuItemText';
15
+ export type { ComplexSelectMenuItemTextProps } from './ComplexSelectMenuItemText';
16
+ export { default as ComplexSelectMenuItemIcon } from './ComplexSelectMenuItemIcon';
17
+ export { ComplexSelectMenuItemIcon as MenuItemIcon } from './ComplexSelectMenuItemIcon';
18
+ export type { ComplexSelectMenuItemIconProps } from './ComplexSelectMenuItemIcon';
19
+ export { default as ComplexSelectDivider } from './ComplexSelectDivider';
20
+ export { ComplexSelectDivider as Divider } from './ComplexSelectDivider';
21
+ export type { ComplexSelectDividerProps } from './ComplexSelectDivider';
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import PageTitleHeader from './PageTitleHeader';
3
+ import PageTitleSubHeader from './PageTitleSubHeader';
4
+ import PageTitleAvatar from './PageTitleAvatar';
5
+ import PageTitleLink from './PageTitleLink';
6
+ /**
7
+ * Props for the PageTitle root component
8
+ */
9
+ export interface PageTitleProps extends React.HTMLAttributes<HTMLDivElement> {
10
+ /**
11
+ * The content of the page title (can include Avatar, Header, SubHeader, and Link)
12
+ */
13
+ children: React.ReactNode;
14
+ }
15
+ /**
16
+ * PageTitle component with compound pattern support
17
+ *
18
+ * @example
19
+ * ```tsx
20
+ * <PageTitle>
21
+ * <PageTitle.Avatar src="/avatar.png" />
22
+ * <PageTitle.Header>Welcome</PageTitle.Header>
23
+ * <PageTitle.SubHeader>Get started with your dashboard</PageTitle.SubHeader>
24
+ * <PageTitle.Link href="/docs" icon={<LinkIcon />}>View Documentation</PageTitle.Link>
25
+ * </PageTitle>
26
+ * ```
27
+ */
28
+ declare const PageTitle: React.FC<PageTitleProps> & {
29
+ Avatar: typeof PageTitleAvatar;
30
+ Header: typeof PageTitleHeader;
31
+ SubHeader: typeof PageTitleSubHeader;
32
+ Link: typeof PageTitleLink;
33
+ };
34
+ export default PageTitle;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { AvatarProps } from '@mui/material/Avatar';
3
+ /**
4
+ * Props for the PageTitle Avatar component
5
+ */
6
+ export interface PageTitleAvatarProps extends AvatarProps {
7
+ /**
8
+ * The content of the avatar (typically an image or icon)
9
+ */
10
+ children?: React.ReactNode;
11
+ }
12
+ /**
13
+ * PageTitle Avatar component
14
+ */
15
+ declare const PageTitleAvatar: React.FC<PageTitleAvatarProps>;
16
+ export default PageTitleAvatar;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { TypographyProps } from '@mui/material/Typography';
3
+ /**
4
+ * Props for the PageTitle Header component
5
+ */
6
+ export interface PageTitleHeaderProps extends TypographyProps {
7
+ /**
8
+ * The content of the header
9
+ */
10
+ children: React.ReactNode;
11
+ }
12
+ /**
13
+ * PageTitle Header component
14
+ */
15
+ declare const PageTitleHeader: React.FC<PageTitleHeaderProps>;
16
+ export default PageTitleHeader;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { LinkProps } from '@mui/material/Link';
3
+ /**
4
+ * Props for the PageTitle Link component
5
+ */
6
+ export interface PageTitleLinkProps extends LinkProps {
7
+ /**
8
+ * The content of the link
9
+ */
10
+ children: React.ReactNode;
11
+ /**
12
+ * Icon to display before the link text
13
+ */
14
+ icon?: React.ReactNode;
15
+ }
16
+ /**
17
+ * PageTitle Link component
18
+ */
19
+ declare const PageTitleLink: React.FC<PageTitleLinkProps>;
20
+ export default PageTitleLink;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { TypographyProps } from '@mui/material/Typography';
3
+ /**
4
+ * Props for the PageTitle SubHeader component
5
+ */
6
+ export interface PageTitleSubHeaderProps extends TypographyProps {
7
+ /**
8
+ * The content of the subheader
9
+ */
10
+ children: React.ReactNode;
11
+ }
12
+ /**
13
+ * PageTitle SubHeader component
14
+ */
15
+ declare const PageTitleSubHeader: React.FC<PageTitleSubHeaderProps>;
16
+ export default PageTitleSubHeader;
@@ -0,0 +1,27 @@
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 { default } from './PageTitle';
19
+ export type { PageTitleProps } from './PageTitle';
20
+ export { default as PageTitleAvatar } from './PageTitleAvatar';
21
+ export type { PageTitleAvatarProps } from './PageTitleAvatar';
22
+ export { default as PageTitleHeader } from './PageTitleHeader';
23
+ export type { PageTitleHeaderProps } from './PageTitleHeader';
24
+ export { default as PageTitleSubHeader } from './PageTitleSubHeader';
25
+ export type { PageTitleSubHeaderProps } from './PageTitleSubHeader';
26
+ export { default as PageTitleLink } from './PageTitleLink';
27
+ export type { PageTitleLinkProps } from './PageTitleLink';
@@ -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;