@wso2/oxygen-ui 0.4.0 → 0.5.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.
Files changed (31) hide show
  1. package/.ai/AGENTS.md +1 -0
  2. package/.ai/theming.md +3 -0
  3. package/.claude/theming.md +3 -0
  4. package/bin/cli.js +118 -31
  5. package/dist/components/ComplexSelect/ComplexSelectDivider.d.ts +3 -0
  6. package/dist/components/ComplexSelect/ComplexSelectListHeader.d.ts +3 -0
  7. package/dist/components/ComplexSelect/ComplexSelectMenuItemAvatar.d.ts +3 -0
  8. package/dist/components/ComplexSelect/ComplexSelectMenuItemIcon.d.ts +3 -0
  9. package/dist/components/ComplexSelect/ComplexSelectMenuItemText.d.ts +3 -0
  10. package/dist/components/Footer/Footer.d.ts +29 -26
  11. package/dist/components/Footer/FooterCopyright.d.ts +37 -0
  12. package/dist/components/Footer/FooterDivider.d.ts +28 -0
  13. package/dist/components/Footer/FooterLink.d.ts +38 -0
  14. package/dist/components/Footer/FooterVersion.d.ts +35 -0
  15. package/dist/components/Footer/index.d.ts +7 -0
  16. package/dist/components/UserMenu/UserMenu.d.ts +27 -32
  17. package/dist/components/UserMenu/UserMenuContext.d.ts +33 -0
  18. package/dist/components/UserMenu/UserMenuDivider.d.ts +22 -0
  19. package/dist/components/UserMenu/UserMenuHeader.d.ts +35 -0
  20. package/dist/components/UserMenu/UserMenuItem.d.ts +35 -0
  21. package/dist/components/UserMenu/UserMenuLogout.d.ts +33 -0
  22. package/dist/components/UserMenu/UserMenuTrigger.d.ts +33 -0
  23. package/dist/components/UserMenu/index.d.ts +9 -0
  24. package/dist/index.js +1246 -379
  25. package/dist/index.js.map +4 -4
  26. package/dist/styles/Themes/ChoreoTheme.d.ts +20 -0
  27. package/dist/styles/Themes/PaleBaseTheme.d.ts +25 -0
  28. package/dist/styles/Themes/PaleGray.d.ts +20 -0
  29. package/dist/styles/Themes/PaleIndigo.d.ts +20 -0
  30. package/dist/styles/Themes/index.d.ts +4 -0
  31. package/package.json +2 -2
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2026, 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
+ * UserMenu.Divider - Separator between menu sections.
21
+ */
22
+ export declare const UserMenuDivider: React.FC;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Copyright (c) 2026, 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
+ * Props for the UserMenu.Header component.
21
+ */
22
+ export interface UserMenuHeaderProps {
23
+ /** User display name */
24
+ name: string;
25
+ /** User email address */
26
+ email: string;
27
+ /** Avatar image URL (if null, falls back to initials) */
28
+ avatar?: string | null;
29
+ /** Role or plan badge (e.g., "Pro", "Admin") */
30
+ role?: string;
31
+ }
32
+ /**
33
+ * UserMenu.Header - User info section with name, email, and role badge.
34
+ */
35
+ export declare const UserMenuHeader: React.FC<UserMenuHeaderProps>;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Copyright (c) 2026, 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
+ * Props for the UserMenu.Item component.
21
+ */
22
+ export interface UserMenuItemProps {
23
+ /** Icon to display on the left */
24
+ icon?: React.ReactNode;
25
+ /** Item label text */
26
+ label: string;
27
+ /** Optional badge/chip to display on the right */
28
+ badge?: string;
29
+ /** Callback when item is clicked */
30
+ onClick?: () => void;
31
+ }
32
+ /**
33
+ * UserMenu.Item - Individual menu item with icon and label.
34
+ */
35
+ export declare const UserMenuItem: React.FC<UserMenuItemProps>;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Copyright (c) 2026, 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
+ * Props for the UserMenu.Logout component.
21
+ */
22
+ export interface UserMenuLogoutProps {
23
+ /** Icon to display on the left */
24
+ icon?: React.ReactNode;
25
+ /** Item label text (default: "Log out") */
26
+ label?: string;
27
+ /** Callback when item is clicked */
28
+ onClick?: () => void;
29
+ }
30
+ /**
31
+ * UserMenu.Logout - Destructive menu item for logout action.
32
+ */
33
+ export declare const UserMenuLogout: React.FC<UserMenuLogoutProps>;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Copyright (c) 2026, 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
+ * Props for the UserMenu.Trigger component.
21
+ */
22
+ export interface UserMenuTriggerProps {
23
+ /** User display name */
24
+ name: string;
25
+ /** Avatar image URL (if null, falls back to initials) */
26
+ avatar?: string | null;
27
+ /** Whether to show the name text after the avatar */
28
+ showName?: boolean;
29
+ }
30
+ /**
31
+ * UserMenu.Trigger - Avatar button that opens the menu.
32
+ */
33
+ export declare const UserMenuTrigger: React.FC<UserMenuTriggerProps>;
@@ -17,3 +17,12 @@
17
17
  */
18
18
  export { UserMenu, default } from './UserMenu';
19
19
  export type { UserMenuProps, UserMenuUser } from './UserMenu';
20
+ export { UserMenuTrigger } from './UserMenuTrigger';
21
+ export type { UserMenuTriggerProps } from './UserMenuTrigger';
22
+ export { UserMenuHeader } from './UserMenuHeader';
23
+ export type { UserMenuHeaderProps } from './UserMenuHeader';
24
+ export { UserMenuItem } from './UserMenuItem';
25
+ export type { UserMenuItemProps } from './UserMenuItem';
26
+ export { UserMenuLogout } from './UserMenuLogout';
27
+ export type { UserMenuLogoutProps } from './UserMenuLogout';
28
+ export { UserMenuDivider } from './UserMenuDivider';