@asgardeo/react 0.5.11 → 0.5.13

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 (50) hide show
  1. package/dist/AsgardeoReactClient.d.ts +2 -2
  2. package/dist/cjs/index.js +4597 -3394
  3. package/dist/cjs/index.js.map +4 -4
  4. package/dist/components/control/{AsgardeoLoading.d.ts → Loading/Loading.d.ts} +6 -6
  5. package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.styles.d.ts +43 -0
  6. package/dist/components/presentation/OrganizationList/BaseOrganizationList.styles.d.ts +56 -0
  7. package/dist/components/presentation/OrganizationList/OrganizationList.styles.d.ts +31 -0
  8. package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.d.ts +52 -0
  9. package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.styles.d.ts +50 -0
  10. package/dist/components/presentation/SignIn/BaseSignIn.styles.d.ts +52 -0
  11. package/dist/components/presentation/SignUp/BaseSignUp.styles.d.ts +52 -0
  12. package/dist/components/presentation/UserDropdown/BaseUserDropdown.styles.d.ts +40 -0
  13. package/dist/components/presentation/UserProfile/BaseUserProfile.d.ts +1 -4
  14. package/dist/components/presentation/UserProfile/BaseUserProfile.styles.d.ts +47 -0
  15. package/dist/components/primitives/Alert/Alert.d.ts +1 -0
  16. package/dist/components/primitives/Alert/Alert.styles.d.ts +35 -0
  17. package/dist/components/primitives/Avatar/Avatar.styles.d.ts +35 -0
  18. package/dist/components/primitives/Button/Button.d.ts +5 -1
  19. package/dist/components/primitives/Button/Button.styles.d.ts +47 -0
  20. package/dist/components/primitives/Card/Card.styles.d.ts +39 -0
  21. package/dist/components/primitives/Checkbox/Checkbox.styles.d.ts +35 -0
  22. package/dist/components/primitives/DatePicker/DatePicker.styles.d.ts +33 -0
  23. package/dist/components/primitives/Dialog/Dialog.d.ts +61 -0
  24. package/dist/components/primitives/Dialog/Dialog.styles.d.ts +34 -0
  25. package/dist/components/primitives/Divider/Divider.styles.d.ts +38 -0
  26. package/dist/components/primitives/FormControl/FormControl.d.ts +7 -6
  27. package/dist/components/primitives/FormControl/FormControl.styles.d.ts +34 -0
  28. package/dist/components/primitives/InputLabel/InputLabel.d.ts +6 -1
  29. package/dist/components/primitives/InputLabel/InputLabel.styles.d.ts +36 -0
  30. package/dist/components/primitives/KeyValueInput/KeyValueInput.styles.d.ts +45 -0
  31. package/dist/components/primitives/Logo/Logo.d.ts +2 -5
  32. package/dist/components/primitives/Logo/Logo.styles.d.ts +34 -0
  33. package/dist/components/primitives/MultiInput/MultiInput.d.ts +8 -6
  34. package/dist/components/primitives/MultiInput/MultiInput.styles.d.ts +42 -0
  35. package/dist/components/primitives/OtpField/OtpField.d.ts +3 -2
  36. package/dist/components/primitives/OtpField/OtpField.styles.d.ts +35 -0
  37. package/dist/components/primitives/PasswordField/PasswordField.styles.d.ts +33 -0
  38. package/dist/components/primitives/Select/Select.styles.d.ts +33 -0
  39. package/dist/components/primitives/Spinner/Spinner.styles.d.ts +34 -0
  40. package/dist/components/primitives/TextField/TextField.styles.d.ts +38 -0
  41. package/dist/components/primitives/Typography/Typography.d.ts +1 -3
  42. package/dist/components/primitives/Typography/Typography.styles.d.ts +56 -0
  43. package/dist/index.d.ts +6 -6
  44. package/dist/index.js +4499 -3302
  45. package/dist/index.js.map +4 -4
  46. package/package.json +4 -4
  47. package/dist/components/primitives/KeyValueInput/index.d.ts +0 -0
  48. package/dist/components/primitives/Popover/Popover.d.ts +0 -96
  49. /package/dist/components/control/{SignedIn.d.ts → SignedIn/SignedIn.d.ts} +0 -0
  50. /package/dist/components/control/{SignedOut.d.ts → SignedOut/SignedOut.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/react",
3
- "version": "0.5.11",
3
+ "version": "0.5.13",
4
4
  "description": "React implementation of Asgardeo JavaScript SDK.",
5
5
  "keywords": [
6
6
  "asgardeo",
@@ -34,7 +34,7 @@
34
34
  "devDependencies": {
35
35
  "@testing-library/dom": "^10.4.0",
36
36
  "@types/node": "^22.15.3",
37
- "@types/react": "^19.1.4",
37
+ "@types/react": "^19.1.5",
38
38
  "@vitest/browser": "^3.1.3",
39
39
  "@wso2/eslint-plugin": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/eslint-plugin?a1fc6eb570653c999828aea9f5027cba06af4391",
40
40
  "@wso2/prettier-config": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/prettier-config?a1fc6eb570653c999828aea9f5027cba06af4391",
@@ -53,13 +53,13 @@
53
53
  "react": ">=16.8.0"
54
54
  },
55
55
  "dependencies": {
56
+ "@emotion/css": "^11.13.5",
56
57
  "@floating-ui/react": "^0.27.12",
57
58
  "@types/react-dom": "^19.1.5",
58
- "clsx": "^2.1.1",
59
59
  "esbuild": "^0.25.4",
60
60
  "react-dom": "^19.1.0",
61
61
  "tslib": "^2.8.1",
62
- "@asgardeo/browser": "^0.1.7"
62
+ "@asgardeo/browser": "^0.1.9"
63
63
  },
64
64
  "publishConfig": {
65
65
  "access": "public"
@@ -1,96 +0,0 @@
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 { UseFloatingReturn, UseInteractionsReturn } from '@floating-ui/react';
19
- import React from 'react';
20
- interface DialogOptions {
21
- initialOpen?: boolean;
22
- onOpenChange?: (open: boolean) => void;
23
- open?: boolean;
24
- }
25
- interface DialogHookReturn extends UseFloatingReturn, UseInteractionsReturn {
26
- descriptionId: string | undefined;
27
- labelId: string | undefined;
28
- open: boolean;
29
- setDescriptionId: React.Dispatch<React.SetStateAction<string | undefined>>;
30
- setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
31
- setOpen: (open: boolean) => void;
32
- }
33
- export declare function useDialog({ initialOpen, open: controlledOpen, onOpenChange: setControlledOpen, }?: DialogOptions): DialogHookReturn;
34
- interface PopoverOptions {
35
- initialOpen?: boolean;
36
- offset?: number;
37
- onOpenChange?: (open: boolean) => void;
38
- open?: boolean;
39
- placement?: 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
40
- }
41
- interface PopoverHookReturn extends UseFloatingReturn, UseInteractionsReturn {
42
- descriptionId: string | undefined;
43
- labelId: string | undefined;
44
- open: boolean;
45
- setDescriptionId: React.Dispatch<React.SetStateAction<string | undefined>>;
46
- setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
47
- setOpen: (open: boolean) => void;
48
- }
49
- export declare function usePopover({ initialOpen, open: controlledOpen, onOpenChange: setControlledOpen, placement, offset: offsetValue, }?: PopoverOptions): PopoverHookReturn;
50
- export declare const useDialogContext: () => DialogHookReturn;
51
- export declare const usePopoverContext: () => PopoverHookReturn;
52
- export declare function Dialog({ children, ...options }: {
53
- children: React.ReactNode;
54
- } & DialogOptions): import("react/jsx-runtime").JSX.Element;
55
- interface DialogTriggerProps {
56
- asChild?: boolean;
57
- children: React.ReactNode;
58
- }
59
- export declare const DialogTrigger: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement> & DialogTriggerProps, "ref"> & React.RefAttributes<HTMLElement>>;
60
- export declare const DialogContent: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
61
- export declare function Popover({ children, ...options }: {
62
- children: React.ReactNode;
63
- } & PopoverOptions): import("react/jsx-runtime").JSX.Element;
64
- interface PopoverTriggerProps {
65
- asChild?: boolean;
66
- children: React.ReactNode;
67
- }
68
- export declare const PopoverTrigger: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement> & PopoverTriggerProps, "ref"> & React.RefAttributes<HTMLElement>>;
69
- export declare const PopoverContent: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
70
- export declare const PopoverHeading: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
71
- export declare const DialogHeading: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
72
- export declare const PopoverDescription: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
73
- export declare const DialogDescription: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
74
- export declare const PopoverClose: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
75
- export declare const DialogClose: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
76
- interface LegacyPopoverProps {
77
- children: React.ReactNode;
78
- className?: string;
79
- isOpen: boolean;
80
- mode?: 'modal' | 'dropdown';
81
- offset?: number;
82
- onClose: () => void;
83
- placement?: 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
84
- trigger?: HTMLElement | null;
85
- }
86
- declare const LegacyPopoverHeader: React.FC<{
87
- children?: React.ReactNode;
88
- }>;
89
- declare const LegacyPopoverContent: React.FC<{
90
- children: React.ReactNode;
91
- }>;
92
- export declare const LegacyPopover: React.FC<LegacyPopoverProps> & {
93
- Content: typeof LegacyPopoverContent;
94
- Header: typeof LegacyPopoverHeader;
95
- };
96
- export default LegacyPopover;