@thunderid/react 0.3.3 → 0.3.4
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/dist/ThunderIDReactClient.d.ts +1 -5
- package/dist/ThunderIDReactClient.d.ts.map +1 -1
- package/dist/ThunderIDReactClient.js +1 -68
- package/dist/ThunderIDReactClient.js.map +1 -1
- package/dist/cjs/ThunderIDReactClient.cjs +0 -67
- package/dist/cjs/ThunderIDReactClient.cjs.map +1 -1
- package/dist/cjs/components/presentation/LanguageSwitcher/BaseLanguageSwitcher.cjs +1 -1
- package/dist/cjs/components/presentation/UserAvatar/BaseUserAvatar.cjs +57 -0
- package/dist/cjs/components/presentation/UserAvatar/BaseUserAvatar.cjs.map +1 -0
- package/dist/cjs/components/presentation/UserAvatar/UserAvatar.cjs +36 -0
- package/dist/cjs/components/presentation/UserAvatar/UserAvatar.cjs.map +1 -0
- package/dist/cjs/components/presentation/UserDropdown/BaseUserDropdown.cjs +6 -5
- package/dist/cjs/components/presentation/UserDropdown/BaseUserDropdown.cjs.map +1 -1
- package/dist/cjs/components/presentation/auth/AuthOptionFactory.cjs +3 -15
- package/dist/cjs/components/presentation/auth/AuthOptionFactory.cjs.map +1 -1
- package/dist/cjs/contexts/Theme/ThemeContext.cjs.map +1 -1
- package/dist/cjs/contexts/Theme/ThemeProvider.cjs +2 -5
- package/dist/cjs/contexts/Theme/ThemeProvider.cjs.map +1 -1
- package/dist/cjs/contexts/ThunderID/ThunderIDContext.cjs +0 -2
- package/dist/cjs/contexts/ThunderID/ThunderIDContext.cjs.map +1 -1
- package/dist/cjs/contexts/ThunderID/ThunderIDProvider.cjs +14 -90
- package/dist/cjs/contexts/ThunderID/ThunderIDProvider.cjs.map +1 -1
- package/dist/cjs/index.cjs +6 -51
- package/dist/components/presentation/LanguageSwitcher/BaseLanguageSwitcher.js +1 -1
- package/dist/components/presentation/UserAvatar/BaseUserAvatar.d.ts +50 -0
- package/dist/components/presentation/UserAvatar/BaseUserAvatar.d.ts.map +1 -0
- package/dist/components/presentation/UserAvatar/BaseUserAvatar.js +55 -0
- package/dist/components/presentation/UserAvatar/BaseUserAvatar.js.map +1 -0
- package/dist/components/presentation/UserAvatar/UserAvatar.d.ts +46 -0
- package/dist/components/presentation/UserAvatar/UserAvatar.d.ts.map +1 -0
- package/dist/components/presentation/UserAvatar/UserAvatar.js +34 -0
- package/dist/components/presentation/UserAvatar/UserAvatar.js.map +1 -0
- package/dist/components/presentation/UserDropdown/BaseUserDropdown.d.ts.map +1 -1
- package/dist/components/presentation/UserDropdown/BaseUserDropdown.js +6 -5
- package/dist/components/presentation/UserDropdown/BaseUserDropdown.js.map +1 -1
- package/dist/components/presentation/auth/AuthOptionFactory.d.ts +2 -2
- package/dist/components/presentation/auth/AuthOptionFactory.d.ts.map +1 -1
- package/dist/components/presentation/auth/AuthOptionFactory.js +3 -15
- package/dist/components/presentation/auth/AuthOptionFactory.js.map +1 -1
- package/dist/contexts/Theme/ThemeContext.d.ts +0 -12
- package/dist/contexts/Theme/ThemeContext.d.ts.map +1 -1
- package/dist/contexts/Theme/ThemeContext.js.map +1 -1
- package/dist/contexts/Theme/ThemeProvider.d.ts +0 -4
- package/dist/contexts/Theme/ThemeProvider.d.ts.map +1 -1
- package/dist/contexts/Theme/ThemeProvider.js +2 -5
- package/dist/contexts/Theme/ThemeProvider.js.map +1 -1
- package/dist/contexts/ThunderID/ThunderIDContext.d.ts +2 -3
- package/dist/contexts/ThunderID/ThunderIDContext.d.ts.map +1 -1
- package/dist/contexts/ThunderID/ThunderIDContext.js +0 -2
- package/dist/contexts/ThunderID/ThunderIDContext.js.map +1 -1
- package/dist/contexts/ThunderID/ThunderIDProvider.d.ts.map +1 -1
- package/dist/contexts/ThunderID/ThunderIDProvider.js +15 -91
- package/dist/contexts/ThunderID/ThunderIDProvider.js.map +1 -1
- package/dist/index.d.ts +4 -40
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -27
- package/package.json +2 -2
- package/dist/api/createOrganization.d.ts +0 -86
- package/dist/api/createOrganization.d.ts.map +0 -1
- package/dist/api/createOrganization.js +0 -80
- package/dist/api/createOrganization.js.map +0 -1
- package/dist/api/getAllOrganizations.d.ts +0 -78
- package/dist/api/getAllOrganizations.d.ts.map +0 -1
- package/dist/api/getAllOrganizations.js +0 -71
- package/dist/api/getAllOrganizations.js.map +0 -1
- package/dist/api/getMeOrganizations.d.ts +0 -82
- package/dist/api/getMeOrganizations.d.ts.map +0 -1
- package/dist/api/getMeOrganizations.js +0 -75
- package/dist/api/getMeOrganizations.js.map +0 -1
- package/dist/api/getOrganization.d.ts +0 -74
- package/dist/api/getOrganization.d.ts.map +0 -1
- package/dist/api/getOrganization.js +0 -67
- package/dist/api/getOrganization.js.map +0 -1
- package/dist/api/getSchemas.d.ts +0 -72
- package/dist/api/getSchemas.d.ts.map +0 -1
- package/dist/api/getSchemas.js +0 -65
- package/dist/api/getSchemas.js.map +0 -1
- package/dist/api/updateOrganization.d.ts +0 -81
- package/dist/api/updateOrganization.d.ts.map +0 -1
- package/dist/api/updateOrganization.js +0 -74
- package/dist/api/updateOrganization.js.map +0 -1
- package/dist/cjs/api/createOrganization.cjs +0 -82
- package/dist/cjs/api/createOrganization.cjs.map +0 -1
- package/dist/cjs/api/getAllOrganizations.cjs +0 -73
- package/dist/cjs/api/getAllOrganizations.cjs.map +0 -1
- package/dist/cjs/api/getMeOrganizations.cjs +0 -77
- package/dist/cjs/api/getMeOrganizations.cjs.map +0 -1
- package/dist/cjs/api/getOrganization.cjs +0 -69
- package/dist/cjs/api/getOrganization.cjs.map +0 -1
- package/dist/cjs/api/getSchemas.cjs +0 -67
- package/dist/cjs/api/getSchemas.cjs.map +0 -1
- package/dist/cjs/api/updateOrganization.cjs +0 -76
- package/dist/cjs/api/updateOrganization.cjs.map +0 -1
- package/dist/cjs/components/control/OrganizationContext/OrganizationContext.cjs +0 -34
- package/dist/cjs/components/control/OrganizationContext/OrganizationContext.cjs.map +0 -1
- package/dist/cjs/components/control/OrganizationContext/OrganizationContextController.cjs +0 -58
- package/dist/cjs/components/control/OrganizationContext/OrganizationContextController.cjs.map +0 -1
- package/dist/cjs/components/presentation/CreateOrganization/BaseCreateOrganization.cjs +0 -183
- package/dist/cjs/components/presentation/CreateOrganization/BaseCreateOrganization.cjs.map +0 -1
- package/dist/cjs/components/presentation/CreateOrganization/BaseCreateOrganization.styles.cjs +0 -150
- package/dist/cjs/components/presentation/CreateOrganization/BaseCreateOrganization.styles.cjs.map +0 -1
- package/dist/cjs/components/presentation/CreateOrganization/CreateOrganization.cjs +0 -90
- package/dist/cjs/components/presentation/CreateOrganization/CreateOrganization.cjs.map +0 -1
- package/dist/cjs/components/presentation/Organization/BaseOrganization.cjs +0 -41
- package/dist/cjs/components/presentation/Organization/BaseOrganization.cjs.map +0 -1
- package/dist/cjs/components/presentation/Organization/Organization.cjs +0 -49
- package/dist/cjs/components/presentation/Organization/Organization.cjs.map +0 -1
- package/dist/cjs/components/presentation/OrganizationList/BaseOrganizationList.cjs +0 -257
- package/dist/cjs/components/presentation/OrganizationList/BaseOrganizationList.cjs.map +0 -1
- package/dist/cjs/components/presentation/OrganizationList/BaseOrganizationList.styles.cjs +0 -236
- package/dist/cjs/components/presentation/OrganizationList/BaseOrganizationList.styles.cjs.map +0 -1
- package/dist/cjs/components/presentation/OrganizationList/OrganizationList.cjs +0 -86
- package/dist/cjs/components/presentation/OrganizationList/OrganizationList.cjs.map +0 -1
- package/dist/cjs/components/presentation/OrganizationList/OrganizationList.styles.cjs +0 -75
- package/dist/cjs/components/presentation/OrganizationList/OrganizationList.styles.cjs.map +0 -1
- package/dist/cjs/components/presentation/OrganizationProfile/BaseOrganizationProfile.cjs +0 -328
- package/dist/cjs/components/presentation/OrganizationProfile/BaseOrganizationProfile.cjs.map +0 -1
- package/dist/cjs/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.cjs +0 -166
- package/dist/cjs/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.cjs.map +0 -1
- package/dist/cjs/components/presentation/OrganizationProfile/OrganizationProfile.cjs +0 -126
- package/dist/cjs/components/presentation/OrganizationProfile/OrganizationProfile.cjs.map +0 -1
- package/dist/cjs/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.cjs +0 -288
- package/dist/cjs/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.cjs.map +0 -1
- package/dist/cjs/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.styles.cjs +0 -237
- package/dist/cjs/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.styles.cjs.map +0 -1
- package/dist/cjs/components/presentation/OrganizationSwitcher/OrganizationSwitcher.cjs +0 -127
- package/dist/cjs/components/presentation/OrganizationSwitcher/OrganizationSwitcher.cjs.map +0 -1
- package/dist/cjs/components/presentation/auth/OrganizationUnitPicker/OrganizationUnitPicker.cjs +0 -183
- package/dist/cjs/components/presentation/auth/OrganizationUnitPicker/OrganizationUnitPicker.cjs.map +0 -1
- package/dist/cjs/components/presentation/auth/OrganizationUnitPicker/OrganizationUnitPicker.styles.cjs +0 -128
- package/dist/cjs/components/presentation/auth/OrganizationUnitPicker/OrganizationUnitPicker.styles.cjs.map +0 -1
- package/dist/cjs/components/primitives/Icons/Building.cjs +0 -75
- package/dist/cjs/components/primitives/Icons/Building.cjs.map +0 -1
- package/dist/cjs/contexts/Branding/BrandingContext.cjs +0 -12
- package/dist/cjs/contexts/Branding/BrandingContext.cjs.map +0 -1
- package/dist/cjs/contexts/Branding/BrandingProvider.cjs +0 -96
- package/dist/cjs/contexts/Branding/BrandingProvider.cjs.map +0 -1
- package/dist/cjs/contexts/Branding/useBrandingContext.cjs +0 -40
- package/dist/cjs/contexts/Branding/useBrandingContext.cjs.map +0 -1
- package/dist/cjs/contexts/Organization/OrganizationContext.cjs +0 -27
- package/dist/cjs/contexts/Organization/OrganizationContext.cjs.map +0 -1
- package/dist/cjs/contexts/Organization/OrganizationProvider.cjs +0 -97
- package/dist/cjs/contexts/Organization/OrganizationProvider.cjs.map +0 -1
- package/dist/cjs/contexts/Organization/useOrganization.cjs +0 -100
- package/dist/cjs/contexts/Organization/useOrganization.cjs.map +0 -1
- package/dist/cjs/hooks/useBranding.cjs +0 -71
- package/dist/cjs/hooks/useBranding.cjs.map +0 -1
- package/dist/components/control/OrganizationContext/OrganizationContext.d.ts +0 -40
- package/dist/components/control/OrganizationContext/OrganizationContext.d.ts.map +0 -1
- package/dist/components/control/OrganizationContext/OrganizationContext.js +0 -32
- package/dist/components/control/OrganizationContext/OrganizationContext.js.map +0 -1
- package/dist/components/control/OrganizationContext/OrganizationContextController.d.ts +0 -35
- package/dist/components/control/OrganizationContext/OrganizationContextController.d.ts.map +0 -1
- package/dist/components/control/OrganizationContext/OrganizationContextController.js +0 -55
- package/dist/components/control/OrganizationContext/OrganizationContextController.js.map +0 -1
- package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.d.ts +0 -60
- package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.d.ts.map +0 -1
- package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.js +0 -178
- package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.js.map +0 -1
- package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.styles.d.ts +0 -27
- package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.styles.d.ts.map +0 -1
- package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.styles.js +0 -147
- package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.styles.js.map +0 -1
- package/dist/components/presentation/CreateOrganization/CreateOrganization.d.ts +0 -68
- package/dist/components/presentation/CreateOrganization/CreateOrganization.d.ts.map +0 -1
- package/dist/components/presentation/CreateOrganization/CreateOrganization.js +0 -87
- package/dist/components/presentation/CreateOrganization/CreateOrganization.js.map +0 -1
- package/dist/components/presentation/Organization/BaseOrganization.d.ts +0 -67
- package/dist/components/presentation/Organization/BaseOrganization.d.ts.map +0 -1
- package/dist/components/presentation/Organization/BaseOrganization.js +0 -39
- package/dist/components/presentation/Organization/BaseOrganization.js.map +0 -1
- package/dist/components/presentation/Organization/Organization.d.ts +0 -67
- package/dist/components/presentation/Organization/Organization.d.ts.map +0 -1
- package/dist/components/presentation/Organization/Organization.js +0 -47
- package/dist/components/presentation/Organization/Organization.js.map +0 -1
- package/dist/components/presentation/OrganizationList/BaseOrganizationList.d.ts +0 -135
- package/dist/components/presentation/OrganizationList/BaseOrganizationList.d.ts.map +0 -1
- package/dist/components/presentation/OrganizationList/BaseOrganizationList.js +0 -252
- package/dist/components/presentation/OrganizationList/BaseOrganizationList.js.map +0 -1
- package/dist/components/presentation/OrganizationList/BaseOrganizationList.styles.d.ts +0 -27
- package/dist/components/presentation/OrganizationList/BaseOrganizationList.styles.d.ts.map +0 -1
- package/dist/components/presentation/OrganizationList/BaseOrganizationList.styles.js +0 -233
- package/dist/components/presentation/OrganizationList/BaseOrganizationList.styles.js.map +0 -1
- package/dist/components/presentation/OrganizationList/OrganizationList.d.ts +0 -93
- package/dist/components/presentation/OrganizationList/OrganizationList.d.ts.map +0 -1
- package/dist/components/presentation/OrganizationList/OrganizationList.js +0 -82
- package/dist/components/presentation/OrganizationList/OrganizationList.js.map +0 -1
- package/dist/components/presentation/OrganizationList/OrganizationList.styles.d.ts +0 -27
- package/dist/components/presentation/OrganizationList/OrganizationList.styles.d.ts.map +0 -1
- package/dist/components/presentation/OrganizationList/OrganizationList.styles.js +0 -72
- package/dist/components/presentation/OrganizationList/OrganizationList.styles.js.map +0 -1
- package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.d.ts +0 -160
- package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.d.ts.map +0 -1
- package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.js +0 -323
- package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.js.map +0 -1
- package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.d.ts +0 -27
- package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.d.ts.map +0 -1
- package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.js +0 -163
- package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.js.map +0 -1
- package/dist/components/presentation/OrganizationProfile/OrganizationProfile.d.ts +0 -120
- package/dist/components/presentation/OrganizationProfile/OrganizationProfile.d.ts.map +0 -1
- package/dist/components/presentation/OrganizationProfile/OrganizationProfile.js +0 -122
- package/dist/components/presentation/OrganizationProfile/OrganizationProfile.js.map +0 -1
- package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.d.ts +0 -149
- package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.d.ts.map +0 -1
- package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.js +0 -282
- package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.js.map +0 -1
- package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.styles.d.ts +0 -27
- package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.styles.d.ts.map +0 -1
- package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.styles.js +0 -234
- package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.styles.js.map +0 -1
- package/dist/components/presentation/OrganizationSwitcher/OrganizationSwitcher.d.ts +0 -71
- package/dist/components/presentation/OrganizationSwitcher/OrganizationSwitcher.d.ts.map +0 -1
- package/dist/components/presentation/OrganizationSwitcher/OrganizationSwitcher.js +0 -124
- package/dist/components/presentation/OrganizationSwitcher/OrganizationSwitcher.js.map +0 -1
- package/dist/components/presentation/auth/OrganizationUnitPicker/OrganizationUnitPicker.d.ts +0 -30
- package/dist/components/presentation/auth/OrganizationUnitPicker/OrganizationUnitPicker.d.ts.map +0 -1
- package/dist/components/presentation/auth/OrganizationUnitPicker/OrganizationUnitPicker.js +0 -179
- package/dist/components/presentation/auth/OrganizationUnitPicker/OrganizationUnitPicker.js.map +0 -1
- package/dist/components/presentation/auth/OrganizationUnitPicker/OrganizationUnitPicker.styles.d.ts +0 -21
- package/dist/components/presentation/auth/OrganizationUnitPicker/OrganizationUnitPicker.styles.d.ts.map +0 -1
- package/dist/components/presentation/auth/OrganizationUnitPicker/OrganizationUnitPicker.styles.js +0 -125
- package/dist/components/presentation/auth/OrganizationUnitPicker/OrganizationUnitPicker.styles.js.map +0 -1
- package/dist/components/presentation/auth/OrganizationUnitPicker/index.d.ts +0 -20
- package/dist/components/presentation/auth/OrganizationUnitPicker/index.d.ts.map +0 -1
- package/dist/components/primitives/Icons/Building.js +0 -73
- package/dist/components/primitives/Icons/Building.js.map +0 -1
- package/dist/contexts/Branding/BrandingContext.d.ts +0 -53
- package/dist/contexts/Branding/BrandingContext.d.ts.map +0 -1
- package/dist/contexts/Branding/BrandingContext.js +0 -10
- package/dist/contexts/Branding/BrandingContext.js.map +0 -1
- package/dist/contexts/Branding/BrandingProvider.d.ts +0 -89
- package/dist/contexts/Branding/BrandingProvider.d.ts.map +0 -1
- package/dist/contexts/Branding/BrandingProvider.js +0 -92
- package/dist/contexts/Branding/BrandingProvider.js.map +0 -1
- package/dist/contexts/Branding/useBrandingContext.d.ts +0 -45
- package/dist/contexts/Branding/useBrandingContext.d.ts.map +0 -1
- package/dist/contexts/Branding/useBrandingContext.js +0 -38
- package/dist/contexts/Branding/useBrandingContext.js.map +0 -1
- package/dist/contexts/Organization/OrganizationContext.d.ts +0 -41
- package/dist/contexts/Organization/OrganizationContext.d.ts.map +0 -1
- package/dist/contexts/Organization/OrganizationContext.js +0 -25
- package/dist/contexts/Organization/OrganizationContext.js.map +0 -1
- package/dist/contexts/Organization/OrganizationProvider.d.ts +0 -94
- package/dist/contexts/Organization/OrganizationProvider.d.ts.map +0 -1
- package/dist/contexts/Organization/OrganizationProvider.js +0 -93
- package/dist/contexts/Organization/OrganizationProvider.js.map +0 -1
- package/dist/contexts/Organization/useOrganization.d.ts +0 -105
- package/dist/contexts/Organization/useOrganization.d.ts.map +0 -1
- package/dist/contexts/Organization/useOrganization.js +0 -98
- package/dist/contexts/Organization/useOrganization.js.map +0 -1
- package/dist/hooks/useBranding.d.ts +0 -128
- package/dist/hooks/useBranding.d.ts.map +0 -1
- package/dist/hooks/useBranding.js +0 -69
- package/dist/hooks/useBranding.js.map +0 -1
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { useMemo } from "react";
|
|
2
|
-
import { css } from "@emotion/css";
|
|
3
|
-
|
|
4
|
-
//#region src/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.ts
|
|
5
|
-
/**
|
|
6
|
-
* Creates styles for the BaseOrganizationProfile component using BEM methodology
|
|
7
|
-
* @param theme - The theme object containing design tokens
|
|
8
|
-
* @param colorScheme - The current color scheme (used for memoization)
|
|
9
|
-
* @returns Object containing CSS class names for component styling
|
|
10
|
-
*/
|
|
11
|
-
const useStyles = (theme, colorScheme) => useMemo(() => ({
|
|
12
|
-
attributeItem: css`
|
|
13
|
-
display: flex;
|
|
14
|
-
gap: ${theme.vars.spacing.unit};
|
|
15
|
-
padding: calc(${theme.vars.spacing.unit} / 4) 0;
|
|
16
|
-
align-items: center;
|
|
17
|
-
`,
|
|
18
|
-
attributeKey: css`
|
|
19
|
-
font-size: 0.75rem;
|
|
20
|
-
font-weight: 500;
|
|
21
|
-
color: ${theme.vars.colors.text.secondary};
|
|
22
|
-
min-width: 80px;
|
|
23
|
-
flex-shrink: 0;
|
|
24
|
-
`,
|
|
25
|
-
attributeValue: css`
|
|
26
|
-
font-size: 0.75rem;
|
|
27
|
-
color: ${theme.vars.colors.text.primary};
|
|
28
|
-
word-break: break-word;
|
|
29
|
-
flex: 1;
|
|
30
|
-
`,
|
|
31
|
-
attributesList: css`
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
gap: calc(${theme.vars.spacing.unit} / 4);
|
|
35
|
-
`,
|
|
36
|
-
card: css`
|
|
37
|
-
background: ${theme.vars.colors.background.surface};
|
|
38
|
-
border-radius: ${theme.vars.borderRadius.large};
|
|
39
|
-
`,
|
|
40
|
-
editButton: css`
|
|
41
|
-
min-width: auto;
|
|
42
|
-
padding: calc(${theme.vars.spacing.unit} / 2);
|
|
43
|
-
min-height: auto;
|
|
44
|
-
`,
|
|
45
|
-
field: css`
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: flex-start;
|
|
48
|
-
padding: calc(${theme.vars.spacing.unit} / 2) 0;
|
|
49
|
-
border-bottom: 1px solid ${theme.vars.colors.border};
|
|
50
|
-
min-height: 28px;
|
|
51
|
-
gap: ${theme.vars.spacing.unit};
|
|
52
|
-
`,
|
|
53
|
-
fieldActions: css`
|
|
54
|
-
display: flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
gap: calc(${theme.vars.spacing.unit} / 2);
|
|
57
|
-
`,
|
|
58
|
-
fieldContent: css`
|
|
59
|
-
flex: 1;
|
|
60
|
-
display: flex;
|
|
61
|
-
align-items: center;
|
|
62
|
-
gap: ${theme.vars.spacing.unit};
|
|
63
|
-
`,
|
|
64
|
-
fieldInput: css`
|
|
65
|
-
margin-bottom: 0;
|
|
66
|
-
`,
|
|
67
|
-
fieldLast: css`
|
|
68
|
-
border-bottom: none;
|
|
69
|
-
`,
|
|
70
|
-
handle: css`
|
|
71
|
-
font-size: 1rem;
|
|
72
|
-
color: ${theme.vars.colors.text.secondary};
|
|
73
|
-
margin: 0;
|
|
74
|
-
font-family: monospace;
|
|
75
|
-
`,
|
|
76
|
-
header: css`
|
|
77
|
-
display: flex;
|
|
78
|
-
align-items: center;
|
|
79
|
-
gap: calc(${theme.vars.spacing.unit} * 2);
|
|
80
|
-
margin-bottom: calc(${theme.vars.spacing.unit} * 3);
|
|
81
|
-
padding-bottom: calc(${theme.vars.spacing.unit} * 2);
|
|
82
|
-
`,
|
|
83
|
-
infoContainer: css`
|
|
84
|
-
display: flex;
|
|
85
|
-
flex-direction: column;
|
|
86
|
-
gap: ${theme.vars.spacing.unit};
|
|
87
|
-
`,
|
|
88
|
-
label: css`
|
|
89
|
-
font-size: 0.875rem;
|
|
90
|
-
font-weight: 500;
|
|
91
|
-
color: ${theme.vars.colors.text.secondary};
|
|
92
|
-
width: 120px;
|
|
93
|
-
flex-shrink: 0;
|
|
94
|
-
line-height: 28px;
|
|
95
|
-
`,
|
|
96
|
-
name: css`
|
|
97
|
-
font-size: 1.5rem;
|
|
98
|
-
font-weight: 600;
|
|
99
|
-
margin: 0 0 8px 0;
|
|
100
|
-
color: ${theme.vars.colors.text.primary};
|
|
101
|
-
`,
|
|
102
|
-
orgInfo: css`
|
|
103
|
-
flex: 1;
|
|
104
|
-
`,
|
|
105
|
-
permissionBadge: css`
|
|
106
|
-
padding: calc(${theme.vars.spacing.unit} / 4) ${theme.vars.spacing.unit};
|
|
107
|
-
border-radius: ${theme.vars.borderRadius.small};
|
|
108
|
-
font-size: 0.75rem;
|
|
109
|
-
background-color: ${theme.vars.colors.primary.main};
|
|
110
|
-
color: ${theme.vars.colors.primary.contrastText};
|
|
111
|
-
border: 1px solid ${theme.vars.colors.border};
|
|
112
|
-
`,
|
|
113
|
-
permissionsList: css`
|
|
114
|
-
display: flex;
|
|
115
|
-
flex-wrap: wrap;
|
|
116
|
-
gap: calc(${theme.vars.spacing.unit} / 2);
|
|
117
|
-
`,
|
|
118
|
-
placeholderButton: css`
|
|
119
|
-
font-style: italic;
|
|
120
|
-
text-decoration: underline;
|
|
121
|
-
opacity: 0.7;
|
|
122
|
-
padding: 0;
|
|
123
|
-
min-height: auto;
|
|
124
|
-
`,
|
|
125
|
-
popup: css`
|
|
126
|
-
padding: calc(${theme.vars.spacing.unit} * 2);
|
|
127
|
-
`,
|
|
128
|
-
root: css`
|
|
129
|
-
padding: calc(${theme.vars.spacing.unit} * 4);
|
|
130
|
-
min-width: 600px;
|
|
131
|
-
margin: 0 auto;
|
|
132
|
-
font-family: ${theme.vars.typography.fontFamily};
|
|
133
|
-
`,
|
|
134
|
-
statusBadge: css`
|
|
135
|
-
padding: calc(${theme.vars.spacing.unit} / 2) ${theme.vars.spacing.unit};
|
|
136
|
-
border-radius: ${theme.vars.borderRadius.small};
|
|
137
|
-
font-size: 0.75rem;
|
|
138
|
-
font-weight: 500;
|
|
139
|
-
color: white;
|
|
140
|
-
text-transform: uppercase;
|
|
141
|
-
letter-spacing: 0.5px;
|
|
142
|
-
`,
|
|
143
|
-
value: css`
|
|
144
|
-
color: ${theme.vars.colors.text.primary};
|
|
145
|
-
flex: 1;
|
|
146
|
-
display: flex;
|
|
147
|
-
align-items: center;
|
|
148
|
-
gap: ${theme.vars.spacing.unit};
|
|
149
|
-
overflow: hidden;
|
|
150
|
-
min-height: 28px;
|
|
151
|
-
line-height: 28px;
|
|
152
|
-
word-break: break-word;
|
|
153
|
-
`,
|
|
154
|
-
valueEmpty: css`
|
|
155
|
-
font-style: italic;
|
|
156
|
-
opacity: 0.7;
|
|
157
|
-
`
|
|
158
|
-
}), [theme, colorScheme]);
|
|
159
|
-
var BaseOrganizationProfile_styles_default = useStyles;
|
|
160
|
-
|
|
161
|
-
//#endregion
|
|
162
|
-
export { BaseOrganizationProfile_styles_default as default };
|
|
163
|
-
//# sourceMappingURL=BaseOrganizationProfile.styles.js.map
|
package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseOrganizationProfile.styles.js","names":[],"sources":["../../../../src/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.ts"],"sourcesContent":["/**\n * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).\n *\n * WSO2 LLC. licenses this file to you under the Apache License,\n * Version 2.0 (the \"License\"); you may not use this file except\n * in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport {css} from '@emotion/css';\nimport {Theme} from '@thunderid/browser';\nimport {useMemo} from 'react';\n\n/**\n * Creates styles for the BaseOrganizationProfile component using BEM methodology\n * @param theme - The theme object containing design tokens\n * @param colorScheme - The current color scheme (used for memoization)\n * @returns Object containing CSS class names for component styling\n */\nconst useStyles = (theme: Theme, colorScheme: string): Record<string, string> =>\n useMemo(\n () => ({\n attributeItem: css`\n display: flex;\n gap: ${theme.vars.spacing.unit};\n padding: calc(${theme.vars.spacing.unit} / 4) 0;\n align-items: center;\n `,\n attributeKey: css`\n font-size: 0.75rem;\n font-weight: 500;\n color: ${theme.vars.colors.text.secondary};\n min-width: 80px;\n flex-shrink: 0;\n `,\n attributeValue: css`\n font-size: 0.75rem;\n color: ${theme.vars.colors.text.primary};\n word-break: break-word;\n flex: 1;\n `,\n attributesList: css`\n display: flex;\n flex-direction: column;\n gap: calc(${theme.vars.spacing.unit} / 4);\n `,\n card: css`\n background: ${theme.vars.colors.background.surface};\n border-radius: ${theme.vars.borderRadius.large};\n `,\n editButton: css`\n min-width: auto;\n padding: calc(${theme.vars.spacing.unit} / 2);\n min-height: auto;\n `,\n field: css`\n display: flex;\n align-items: flex-start;\n padding: calc(${theme.vars.spacing.unit} / 2) 0;\n border-bottom: 1px solid ${theme.vars.colors.border};\n min-height: 28px;\n gap: ${theme.vars.spacing.unit};\n `,\n fieldActions: css`\n display: flex;\n align-items: center;\n gap: calc(${theme.vars.spacing.unit} / 2);\n `,\n fieldContent: css`\n flex: 1;\n display: flex;\n align-items: center;\n gap: ${theme.vars.spacing.unit};\n `,\n fieldInput: css`\n margin-bottom: 0;\n `,\n fieldLast: css`\n border-bottom: none;\n `,\n handle: css`\n font-size: 1rem;\n color: ${theme.vars.colors.text.secondary};\n margin: 0;\n font-family: monospace;\n `,\n header: css`\n display: flex;\n align-items: center;\n gap: calc(${theme.vars.spacing.unit} * 2);\n margin-bottom: calc(${theme.vars.spacing.unit} * 3);\n padding-bottom: calc(${theme.vars.spacing.unit} * 2);\n `,\n infoContainer: css`\n display: flex;\n flex-direction: column;\n gap: ${theme.vars.spacing.unit};\n `,\n label: css`\n font-size: 0.875rem;\n font-weight: 500;\n color: ${theme.vars.colors.text.secondary};\n width: 120px;\n flex-shrink: 0;\n line-height: 28px;\n `,\n name: css`\n font-size: 1.5rem;\n font-weight: 600;\n margin: 0 0 8px 0;\n color: ${theme.vars.colors.text.primary};\n `,\n orgInfo: css`\n flex: 1;\n `,\n permissionBadge: css`\n padding: calc(${theme.vars.spacing.unit} / 4) ${theme.vars.spacing.unit};\n border-radius: ${theme.vars.borderRadius.small};\n font-size: 0.75rem;\n background-color: ${theme.vars.colors.primary.main};\n color: ${theme.vars.colors.primary.contrastText};\n border: 1px solid ${theme.vars.colors.border};\n `,\n permissionsList: css`\n display: flex;\n flex-wrap: wrap;\n gap: calc(${theme.vars.spacing.unit} / 2);\n `,\n placeholderButton: css`\n font-style: italic;\n text-decoration: underline;\n opacity: 0.7;\n padding: 0;\n min-height: auto;\n `,\n popup: css`\n padding: calc(${theme.vars.spacing.unit} * 2);\n `,\n root: css`\n padding: calc(${theme.vars.spacing.unit} * 4);\n min-width: 600px;\n margin: 0 auto;\n font-family: ${theme.vars.typography.fontFamily};\n `,\n statusBadge: css`\n padding: calc(${theme.vars.spacing.unit} / 2) ${theme.vars.spacing.unit};\n border-radius: ${theme.vars.borderRadius.small};\n font-size: 0.75rem;\n font-weight: 500;\n color: white;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n `,\n value: css`\n color: ${theme.vars.colors.text.primary};\n flex: 1;\n display: flex;\n align-items: center;\n gap: ${theme.vars.spacing.unit};\n overflow: hidden;\n min-height: 28px;\n line-height: 28px;\n word-break: break-word;\n `,\n valueEmpty: css`\n font-style: italic;\n opacity: 0.7;\n `,\n }),\n [theme, colorScheme],\n );\n\nexport default useStyles;\n"],"mappings":";;;;;;;;;;AA4BA,MAAM,aAAa,OAAc,gBAC/B,eACS;CACL,eAAe,GAAG;;eAET,MAAM,KAAK,QAAQ,KAAK;wBACf,MAAM,KAAK,QAAQ,KAAK;;;CAG1C,cAAc,GAAG;;;iBAGN,MAAM,KAAK,OAAO,KAAK,UAAU;;;;CAI5C,gBAAgB,GAAG;;iBAER,MAAM,KAAK,OAAO,KAAK,QAAQ;;;;CAI1C,gBAAgB,GAAG;;;oBAGL,MAAM,KAAK,QAAQ,KAAK;;CAEtC,MAAM,GAAG;sBACO,MAAM,KAAK,OAAO,WAAW,QAAQ;yBAClC,MAAM,KAAK,aAAa,MAAM;;CAEjD,YAAY,GAAG;;wBAEG,MAAM,KAAK,QAAQ,KAAK;;;CAG1C,OAAO,GAAG;;;wBAGQ,MAAM,KAAK,QAAQ,KAAK;mCACb,MAAM,KAAK,OAAO,OAAO;;eAE7C,MAAM,KAAK,QAAQ,KAAK;;CAEjC,cAAc,GAAG;;;oBAGH,MAAM,KAAK,QAAQ,KAAK;;CAEtC,cAAc,GAAG;;;;eAIR,MAAM,KAAK,QAAQ,KAAK;;CAEjC,YAAY,GAAG;;;CAGf,WAAW,GAAG;;;CAGd,QAAQ,GAAG;;iBAEA,MAAM,KAAK,OAAO,KAAK,UAAU;;;;CAI5C,QAAQ,GAAG;;;oBAGG,MAAM,KAAK,QAAQ,KAAK;8BACd,MAAM,KAAK,QAAQ,KAAK;+BACvB,MAAM,KAAK,QAAQ,KAAK;;CAEjD,eAAe,GAAG;;;eAGT,MAAM,KAAK,QAAQ,KAAK;;CAEjC,OAAO,GAAG;;;iBAGC,MAAM,KAAK,OAAO,KAAK,UAAU;;;;;CAK5C,MAAM,GAAG;;;;iBAIE,MAAM,KAAK,OAAO,KAAK,QAAQ;;CAE1C,SAAS,GAAG;;;CAGZ,iBAAiB,GAAG;wBACF,MAAM,KAAK,QAAQ,KAAK,QAAQ,MAAM,KAAK,QAAQ,KAAK;yBACvD,MAAM,KAAK,aAAa,MAAM;;4BAE3B,MAAM,KAAK,OAAO,QAAQ,KAAK;iBAC1C,MAAM,KAAK,OAAO,QAAQ,aAAa;4BAC5B,MAAM,KAAK,OAAO,OAAO;;CAE/C,iBAAiB,GAAG;;;oBAGN,MAAM,KAAK,QAAQ,KAAK;;CAEtC,mBAAmB,GAAG;;;;;;;CAOtB,OAAO,GAAG;wBACQ,MAAM,KAAK,QAAQ,KAAK;;CAE1C,MAAM,GAAG;wBACS,MAAM,KAAK,QAAQ,KAAK;;;uBAGzB,MAAM,KAAK,WAAW,WAAW;;CAElD,aAAa,GAAG;wBACE,MAAM,KAAK,QAAQ,KAAK,QAAQ,MAAM,KAAK,QAAQ,KAAK;yBACvD,MAAM,KAAK,aAAa,MAAM;;;;;;;CAOjD,OAAO,GAAG;iBACC,MAAM,KAAK,OAAO,KAAK,QAAQ;;;;eAIjC,MAAM,KAAK,QAAQ,KAAK;;;;;;CAMjC,YAAY,GAAG;;;;CAIhB,GACD,CAAC,OAAO,YAAY,CACrB;AAEH,6CAAe"}
|
|
@@ -1,120 +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 { FC, ReactElement } from 'react';
|
|
19
|
-
import { BaseOrganizationProfileProps } from './BaseOrganizationProfile';
|
|
20
|
-
/**
|
|
21
|
-
* Props for the OrganizationProfile component.
|
|
22
|
-
* Extends BaseOrganizationProfileProps but makes the organization prop optional
|
|
23
|
-
* since it will be fetched using the organizationId
|
|
24
|
-
*/
|
|
25
|
-
export type OrganizationProfileProps = Omit<BaseOrganizationProfileProps, 'organization' | 'mode'> & {
|
|
26
|
-
/**
|
|
27
|
-
* Component to show when there's an error loading organization data.
|
|
28
|
-
*/
|
|
29
|
-
errorFallback?: ReactElement;
|
|
30
|
-
/**
|
|
31
|
-
* Component to show while loading organization data.
|
|
32
|
-
*/
|
|
33
|
-
loadingFallback?: ReactElement;
|
|
34
|
-
/**
|
|
35
|
-
* Display mode for the component.
|
|
36
|
-
*/
|
|
37
|
-
mode?: 'default' | 'popup';
|
|
38
|
-
/**
|
|
39
|
-
* Callback fired when the popup should be closed (only used in popup mode).
|
|
40
|
-
*/
|
|
41
|
-
onOpenChange?: (open: boolean) => void;
|
|
42
|
-
/**
|
|
43
|
-
* Callback fired when the organization should be updated.
|
|
44
|
-
*/
|
|
45
|
-
onUpdate?: (payload: any) => Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
* Whether the popup is open (only used in popup mode).
|
|
48
|
-
*/
|
|
49
|
-
open?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* The ID of the organization to fetch and display.
|
|
52
|
-
*/
|
|
53
|
-
organizationId: string;
|
|
54
|
-
/**
|
|
55
|
-
* Custom title for the popup dialog (only used in popup mode).
|
|
56
|
-
*/
|
|
57
|
-
popupTitle?: string;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* OrganizationProfile component displays organization information in a
|
|
61
|
-
* structured and styled format. It automatically fetches organization details
|
|
62
|
-
* using the provided organization ID and displays them using BaseOrganizationProfile.
|
|
63
|
-
*
|
|
64
|
-
* The component supports editing functionality, allowing users to modify organization
|
|
65
|
-
* fields inline. Updates are automatically synced with the backend via the SCIM2 API.
|
|
66
|
-
*
|
|
67
|
-
* This component is the React-specific implementation that automatically
|
|
68
|
-
* retrieves the organization data from ThunderID API.
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* ```tsx
|
|
72
|
-
* // Basic usage with editing enabled (default)
|
|
73
|
-
* <OrganizationProfile organizationId="0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1" />
|
|
74
|
-
*
|
|
75
|
-
* // Read-only mode
|
|
76
|
-
* <OrganizationProfile
|
|
77
|
-
* organizationId="0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1"
|
|
78
|
-
* editable={false}
|
|
79
|
-
* />
|
|
80
|
-
*
|
|
81
|
-
* // With card layout and custom fallbacks
|
|
82
|
-
* <OrganizationProfile
|
|
83
|
-
* organizationId="0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1"
|
|
84
|
-
* cardLayout={true}
|
|
85
|
-
* loadingFallback={<div>Loading organization...</div>}
|
|
86
|
-
* errorFallback={<div>Failed to load organization</div>}
|
|
87
|
-
* fallback={<div>No organization data available</div>}
|
|
88
|
-
* />
|
|
89
|
-
*
|
|
90
|
-
* // With custom fields configuration and update callback
|
|
91
|
-
* <OrganizationProfile
|
|
92
|
-
* organizationId="0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1"
|
|
93
|
-
* fields={[
|
|
94
|
-
* { key: 'id', label: 'Organization ID', editable: false },
|
|
95
|
-
* { key: 'name', label: 'Organization Name', editable: true },
|
|
96
|
-
* { key: 'description', label: 'Description', editable: true, render: (value) => value || 'No description' },
|
|
97
|
-
* { key: 'created', label: 'Created Date', editable: false, render: (value) => new Date(value).toLocaleDateString() },
|
|
98
|
-
* { key: 'lastModified', label: 'Last Modified Date', editable: false, render: (value) => new Date(value).toLocaleDateString() },
|
|
99
|
-
* { key: 'attributes', label: 'Custom Attributes', editable: true }
|
|
100
|
-
* ]}
|
|
101
|
-
* onUpdate={async (payload) => {
|
|
102
|
-
* console.log('Organization updated:', payload);
|
|
103
|
-
* // payload contains the updated field values
|
|
104
|
-
* // The component automatically converts these to patch operations
|
|
105
|
-
* }}
|
|
106
|
-
* />
|
|
107
|
-
*
|
|
108
|
-
* // In popup mode
|
|
109
|
-
* <OrganizationProfile
|
|
110
|
-
* organizationId="0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1"
|
|
111
|
-
* mode="popup"
|
|
112
|
-
* open={isOpen}
|
|
113
|
-
* onOpenChange={setIsOpen}
|
|
114
|
-
* popupTitle="Edit Organization Profile"
|
|
115
|
-
* />
|
|
116
|
-
* ```
|
|
117
|
-
*/
|
|
118
|
-
declare const OrganizationProfile: FC<OrganizationProfileProps>;
|
|
119
|
-
export default OrganizationProfile;
|
|
120
|
-
//# sourceMappingURL=OrganizationProfile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationProfile.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/OrganizationProfile/OrganizationProfile.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,EAAE,EAAE,YAAY,EAAsB,MAAM,OAAO,CAAC;AAC5D,OAAgC,EAAC,4BAA4B,EAAC,MAAM,2BAA2B,CAAC;AAWhG;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,4BAA4B,EAAE,cAAc,GAAG,MAAM,CAAC,GAAG;IACnG;;OAEG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC;IAE7B;;OAEG;IACH,eAAe,CAAC,EAAE,YAAY,CAAC;IAE/B;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAE3B;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAEvC;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3C;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,QAAA,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CA4ErD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import useThunderID_default from "../../../contexts/ThunderID/useThunderID.js";
|
|
2
|
-
import useTranslation_default from "../../../hooks/useTranslation.js";
|
|
3
|
-
import BaseOrganizationProfile_default from "./BaseOrganizationProfile.js";
|
|
4
|
-
import getOrganization_default from "../../../api/getOrganization.js";
|
|
5
|
-
import updateOrganization_default, { createPatchOperations } from "../../../api/updateOrganization.js";
|
|
6
|
-
import { createPackageComponentLogger } from "@thunderid/browser";
|
|
7
|
-
import { useEffect, useState } from "react";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
|
|
10
|
-
//#region src/components/presentation/OrganizationProfile/OrganizationProfile.tsx
|
|
11
|
-
const logger$1 = createPackageComponentLogger("@thunderid/react", "OrganizationProfile");
|
|
12
|
-
/**
|
|
13
|
-
* OrganizationProfile component displays organization information in a
|
|
14
|
-
* structured and styled format. It automatically fetches organization details
|
|
15
|
-
* using the provided organization ID and displays them using BaseOrganizationProfile.
|
|
16
|
-
*
|
|
17
|
-
* The component supports editing functionality, allowing users to modify organization
|
|
18
|
-
* fields inline. Updates are automatically synced with the backend via the SCIM2 API.
|
|
19
|
-
*
|
|
20
|
-
* This component is the React-specific implementation that automatically
|
|
21
|
-
* retrieves the organization data from ThunderID API.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```tsx
|
|
25
|
-
* // Basic usage with editing enabled (default)
|
|
26
|
-
* <OrganizationProfile organizationId="0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1" />
|
|
27
|
-
*
|
|
28
|
-
* // Read-only mode
|
|
29
|
-
* <OrganizationProfile
|
|
30
|
-
* organizationId="0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1"
|
|
31
|
-
* editable={false}
|
|
32
|
-
* />
|
|
33
|
-
*
|
|
34
|
-
* // With card layout and custom fallbacks
|
|
35
|
-
* <OrganizationProfile
|
|
36
|
-
* organizationId="0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1"
|
|
37
|
-
* cardLayout={true}
|
|
38
|
-
* loadingFallback={<div>Loading organization...</div>}
|
|
39
|
-
* errorFallback={<div>Failed to load organization</div>}
|
|
40
|
-
* fallback={<div>No organization data available</div>}
|
|
41
|
-
* />
|
|
42
|
-
*
|
|
43
|
-
* // With custom fields configuration and update callback
|
|
44
|
-
* <OrganizationProfile
|
|
45
|
-
* organizationId="0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1"
|
|
46
|
-
* fields={[
|
|
47
|
-
* { key: 'id', label: 'Organization ID', editable: false },
|
|
48
|
-
* { key: 'name', label: 'Organization Name', editable: true },
|
|
49
|
-
* { key: 'description', label: 'Description', editable: true, render: (value) => value || 'No description' },
|
|
50
|
-
* { key: 'created', label: 'Created Date', editable: false, render: (value) => new Date(value).toLocaleDateString() },
|
|
51
|
-
* { key: 'lastModified', label: 'Last Modified Date', editable: false, render: (value) => new Date(value).toLocaleDateString() },
|
|
52
|
-
* { key: 'attributes', label: 'Custom Attributes', editable: true }
|
|
53
|
-
* ]}
|
|
54
|
-
* onUpdate={async (payload) => {
|
|
55
|
-
* console.log('Organization updated:', payload);
|
|
56
|
-
* // payload contains the updated field values
|
|
57
|
-
* // The component automatically converts these to patch operations
|
|
58
|
-
* }}
|
|
59
|
-
* />
|
|
60
|
-
*
|
|
61
|
-
* // In popup mode
|
|
62
|
-
* <OrganizationProfile
|
|
63
|
-
* organizationId="0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1"
|
|
64
|
-
* mode="popup"
|
|
65
|
-
* open={isOpen}
|
|
66
|
-
* onOpenChange={setIsOpen}
|
|
67
|
-
* popupTitle="Edit Organization Profile"
|
|
68
|
-
* />
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
const OrganizationProfile = ({ organizationId, mode = "default", open = false, onOpenChange, onUpdate, popupTitle, loadingFallback, errorFallback, preferences,...rest }) => {
|
|
72
|
-
const { baseUrl, instanceId } = useThunderID_default();
|
|
73
|
-
const { t } = useTranslation_default(preferences?.i18n);
|
|
74
|
-
const [organization, setOrganization] = useState(null);
|
|
75
|
-
const fetchOrganization = async () => {
|
|
76
|
-
if (!baseUrl || !organizationId) return;
|
|
77
|
-
try {
|
|
78
|
-
setOrganization(await getOrganization_default({
|
|
79
|
-
baseUrl,
|
|
80
|
-
instanceId,
|
|
81
|
-
organizationId
|
|
82
|
-
}));
|
|
83
|
-
} catch (err) {
|
|
84
|
-
logger$1.error("Failed to fetch organization:");
|
|
85
|
-
setOrganization(null);
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
useEffect(() => {
|
|
89
|
-
fetchOrganization();
|
|
90
|
-
}, [baseUrl, organizationId]);
|
|
91
|
-
const handleOrganizationUpdate = async (payload) => {
|
|
92
|
-
if (!baseUrl || !organizationId) return;
|
|
93
|
-
try {
|
|
94
|
-
await updateOrganization_default({
|
|
95
|
-
baseUrl,
|
|
96
|
-
instanceId,
|
|
97
|
-
operations: createPatchOperations(payload),
|
|
98
|
-
organizationId
|
|
99
|
-
});
|
|
100
|
-
await fetchOrganization();
|
|
101
|
-
if (onUpdate) await onUpdate(payload);
|
|
102
|
-
} catch (err) {
|
|
103
|
-
logger$1.error("Failed to update organization:");
|
|
104
|
-
throw err;
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
return /* @__PURE__ */ jsx(BaseOrganizationProfile_default, {
|
|
108
|
-
organization,
|
|
109
|
-
onUpdate: handleOrganizationUpdate,
|
|
110
|
-
mode: mode === "popup" ? "popup" : "inline",
|
|
111
|
-
open,
|
|
112
|
-
onOpenChange,
|
|
113
|
-
title: popupTitle || t("organization.profile.heading"),
|
|
114
|
-
preferences,
|
|
115
|
-
...rest
|
|
116
|
-
});
|
|
117
|
-
};
|
|
118
|
-
var OrganizationProfile_default = OrganizationProfile;
|
|
119
|
-
|
|
120
|
-
//#endregion
|
|
121
|
-
export { OrganizationProfile_default as default };
|
|
122
|
-
//# sourceMappingURL=OrganizationProfile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationProfile.js","names":["logger: ReturnType<typeof createPackageComponentLogger>","OrganizationProfile: FC<OrganizationProfileProps>","useThunderID","useTranslation","getOrganization","updateOrganization","BaseOrganizationProfile"],"sources":["../../../../src/components/presentation/OrganizationProfile/OrganizationProfile.tsx"],"sourcesContent":["/**\n * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).\n *\n * WSO2 LLC. licenses this file to you under the Apache License,\n * Version 2.0 (the \"License\"); you may not use this file except\n * in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport {OrganizationDetails, createPackageComponentLogger} from '@thunderid/browser';\nimport {FC, ReactElement, useEffect, useState} from 'react';\nimport BaseOrganizationProfile, {BaseOrganizationProfileProps} from './BaseOrganizationProfile';\nimport getOrganization from '../../../api/getOrganization';\nimport updateOrganization, {createPatchOperations} from '../../../api/updateOrganization';\nimport useThunderID from '../../../contexts/ThunderID/useThunderID';\nimport useTranslation from '../../../hooks/useTranslation';\n\nconst logger: ReturnType<typeof createPackageComponentLogger> = createPackageComponentLogger(\n '@thunderid/react',\n 'OrganizationProfile',\n);\n\n/**\n * Props for the OrganizationProfile component.\n * Extends BaseOrganizationProfileProps but makes the organization prop optional\n * since it will be fetched using the organizationId\n */\nexport type OrganizationProfileProps = Omit<BaseOrganizationProfileProps, 'organization' | 'mode'> & {\n /**\n * Component to show when there's an error loading organization data.\n */\n errorFallback?: ReactElement;\n\n /**\n * Component to show while loading organization data.\n */\n loadingFallback?: ReactElement;\n\n /**\n * Display mode for the component.\n */\n mode?: 'default' | 'popup';\n\n /**\n * Callback fired when the popup should be closed (only used in popup mode).\n */\n onOpenChange?: (open: boolean) => void;\n\n /**\n * Callback fired when the organization should be updated.\n */\n onUpdate?: (payload: any) => Promise<void>;\n\n /**\n * Whether the popup is open (only used in popup mode).\n */\n open?: boolean;\n\n /**\n * The ID of the organization to fetch and display.\n */\n organizationId: string;\n\n /**\n * Custom title for the popup dialog (only used in popup mode).\n */\n popupTitle?: string;\n};\n\n/**\n * OrganizationProfile component displays organization information in a\n * structured and styled format. It automatically fetches organization details\n * using the provided organization ID and displays them using BaseOrganizationProfile.\n *\n * The component supports editing functionality, allowing users to modify organization\n * fields inline. Updates are automatically synced with the backend via the SCIM2 API.\n *\n * This component is the React-specific implementation that automatically\n * retrieves the organization data from ThunderID API.\n *\n * @example\n * ```tsx\n * // Basic usage with editing enabled (default)\n * <OrganizationProfile organizationId=\"0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1\" />\n *\n * // Read-only mode\n * <OrganizationProfile\n * organizationId=\"0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1\"\n * editable={false}\n * />\n *\n * // With card layout and custom fallbacks\n * <OrganizationProfile\n * organizationId=\"0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1\"\n * cardLayout={true}\n * loadingFallback={<div>Loading organization...</div>}\n * errorFallback={<div>Failed to load organization</div>}\n * fallback={<div>No organization data available</div>}\n * />\n *\n * // With custom fields configuration and update callback\n * <OrganizationProfile\n * organizationId=\"0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1\"\n * fields={[\n * { key: 'id', label: 'Organization ID', editable: false },\n * { key: 'name', label: 'Organization Name', editable: true },\n * { key: 'description', label: 'Description', editable: true, render: (value) => value || 'No description' },\n * { key: 'created', label: 'Created Date', editable: false, render: (value) => new Date(value).toLocaleDateString() },\n * { key: 'lastModified', label: 'Last Modified Date', editable: false, render: (value) => new Date(value).toLocaleDateString() },\n * { key: 'attributes', label: 'Custom Attributes', editable: true }\n * ]}\n * onUpdate={async (payload) => {\n * console.log('Organization updated:', payload);\n * // payload contains the updated field values\n * // The component automatically converts these to patch operations\n * }}\n * />\n *\n * // In popup mode\n * <OrganizationProfile\n * organizationId=\"0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1\"\n * mode=\"popup\"\n * open={isOpen}\n * onOpenChange={setIsOpen}\n * popupTitle=\"Edit Organization Profile\"\n * />\n * ```\n */\nconst OrganizationProfile: FC<OrganizationProfileProps> = ({\n organizationId,\n mode = 'default',\n open = false,\n onOpenChange,\n onUpdate,\n popupTitle,\n loadingFallback,\n errorFallback,\n preferences,\n ...rest\n}: OrganizationProfileProps): ReactElement => {\n const {baseUrl, instanceId} = useThunderID();\n const {t} = useTranslation(preferences?.i18n);\n const [organization, setOrganization] = useState<OrganizationDetails | null>(null);\n\n const fetchOrganization = async (): Promise<void> => {\n if (!baseUrl || !organizationId) {\n return;\n }\n\n try {\n const orgData: any = await getOrganization({\n baseUrl,\n instanceId,\n organizationId,\n });\n setOrganization(orgData);\n } catch (err) {\n logger.error('Failed to fetch organization:');\n setOrganization(null);\n }\n };\n\n useEffect(() => {\n fetchOrganization();\n }, [baseUrl, organizationId]);\n\n const handleOrganizationUpdate = async (payload: any): Promise<void> => {\n if (!baseUrl || !organizationId) return;\n\n try {\n // Convert payload to patch operations format\n const operations: any = createPatchOperations(payload);\n\n await updateOrganization({\n baseUrl,\n instanceId,\n operations,\n organizationId,\n });\n // Refetch organization data after update\n await fetchOrganization();\n\n // Call the optional onUpdate callback\n if (onUpdate) {\n await onUpdate(payload);\n }\n } catch (err) {\n logger.error('Failed to update organization:');\n throw err;\n }\n };\n\n return (\n <BaseOrganizationProfile\n organization={organization}\n onUpdate={handleOrganizationUpdate}\n mode={mode === 'popup' ? 'popup' : 'inline'}\n open={open}\n onOpenChange={onOpenChange}\n title={popupTitle || t('organization.profile.heading')}\n preferences={preferences}\n {...rest}\n />\n );\n};\n\nexport default OrganizationProfile;\n"],"mappings":";;;;;;;;;;AA0BA,MAAMA,WAA0D,6BAC9D,oBACA,sBACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4GD,MAAMC,uBAAqD,EACzD,gBACA,OAAO,WACP,OAAO,OACP,cACA,UACA,YACA,iBACA,eACA,YACA,GAAG,WACyC;CAC5C,MAAM,EAAC,SAAS,eAAcC,sBAAc;CAC5C,MAAM,EAAC,MAAKC,uBAAe,aAAa,KAAK;CAC7C,MAAM,CAAC,cAAc,mBAAmB,SAAqC,KAAK;CAElF,MAAM,oBAAoB,YAA2B;AACnD,MAAI,CAAC,WAAW,CAAC,eACf;AAGF,MAAI;AAMF,mBALqB,MAAMC,wBAAgB;IACzC;IACA;IACA;IACD,CAAC,CACsB;WACjB,KAAK;AACZ,YAAO,MAAM,gCAAgC;AAC7C,mBAAgB,KAAK;;;AAIzB,iBAAgB;AACd,qBAAmB;IAClB,CAAC,SAAS,eAAe,CAAC;CAE7B,MAAM,2BAA2B,OAAO,YAAgC;AACtE,MAAI,CAAC,WAAW,CAAC,eAAgB;AAEjC,MAAI;AAIF,SAAMC,2BAAmB;IACvB;IACA;IACA,YALsB,sBAAsB,QAAQ;IAMpD;IACD,CAAC;AAEF,SAAM,mBAAmB;AAGzB,OAAI,SACF,OAAM,SAAS,QAAQ;WAElB,KAAK;AACZ,YAAO,MAAM,iCAAiC;AAC9C,SAAM;;;AAIV,QACE,oBAACC;EACe;EACd,UAAU;EACV,MAAM,SAAS,UAAU,UAAU;EAC7B;EACQ;EACd,OAAO,cAAc,EAAE,+BAA+B;EACzC;EACb,GAAI;GACJ;;AAIN,kCAAe"}
|
|
@@ -1,149 +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 { Preferences } from '@thunderid/browser';
|
|
19
|
-
import { CSSProperties, FC, ReactElement, ReactNode } from 'react';
|
|
20
|
-
interface MenuItem {
|
|
21
|
-
href?: string;
|
|
22
|
-
icon?: ReactNode;
|
|
23
|
-
label: ReactNode;
|
|
24
|
-
onClick?: () => void;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Interface for organization data.
|
|
28
|
-
*/
|
|
29
|
-
export interface Organization {
|
|
30
|
-
/**
|
|
31
|
-
* Avatar URL for the organization.
|
|
32
|
-
*/
|
|
33
|
-
avatar?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Unique identifier for the organization.
|
|
36
|
-
*/
|
|
37
|
-
id: string;
|
|
38
|
-
/**
|
|
39
|
-
* Number of members in the organization.
|
|
40
|
-
*/
|
|
41
|
-
memberCount?: number;
|
|
42
|
-
/**
|
|
43
|
-
* Additional metadata for the organization.
|
|
44
|
-
*/
|
|
45
|
-
metadata?: Record<string, any>;
|
|
46
|
-
/**
|
|
47
|
-
* Display name of the organization.
|
|
48
|
-
*/
|
|
49
|
-
name: string;
|
|
50
|
-
/**
|
|
51
|
-
* User's role in the organization.
|
|
52
|
-
*/
|
|
53
|
-
role?: 'owner' | 'admin' | 'member';
|
|
54
|
-
/**
|
|
55
|
-
* URL slug for the organization.
|
|
56
|
-
*/
|
|
57
|
-
slug?: string;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Props interface for the BaseOrganizationSwitcher component.
|
|
61
|
-
*/
|
|
62
|
-
export interface BaseOrganizationSwitcherProps {
|
|
63
|
-
/**
|
|
64
|
-
* Optional size for the avatar
|
|
65
|
-
*/
|
|
66
|
-
avatarSize?: number;
|
|
67
|
-
/**
|
|
68
|
-
* Custom class name for styling.
|
|
69
|
-
*/
|
|
70
|
-
className?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Currently selected organization.
|
|
73
|
-
*/
|
|
74
|
-
currentOrganization?: Organization;
|
|
75
|
-
/**
|
|
76
|
-
* Error message to display.
|
|
77
|
-
*/
|
|
78
|
-
error?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Optional element to render when no organization is selected.
|
|
81
|
-
*/
|
|
82
|
-
fallback?: ReactElement | null;
|
|
83
|
-
/**
|
|
84
|
-
* Whether the component is in a loading state.
|
|
85
|
-
*/
|
|
86
|
-
loading?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Additional menu items to display at the bottom of the dropdown.
|
|
89
|
-
*/
|
|
90
|
-
menuItems?: MenuItem[];
|
|
91
|
-
/**
|
|
92
|
-
* Handler for when the manage profile button is clicked.
|
|
93
|
-
*/
|
|
94
|
-
onManageProfile?: () => void;
|
|
95
|
-
/**
|
|
96
|
-
* Handler for when an organization is selected.
|
|
97
|
-
*/
|
|
98
|
-
onOrganizationSwitch: (organization: Organization) => void;
|
|
99
|
-
/**
|
|
100
|
-
* List of available organizations.
|
|
101
|
-
*/
|
|
102
|
-
organizations: Organization[];
|
|
103
|
-
/**
|
|
104
|
-
* The HTML element ID where the portal should be mounted
|
|
105
|
-
*/
|
|
106
|
-
portalId?: string;
|
|
107
|
-
/**
|
|
108
|
-
* Component-level preferences to override global i18n and theme settings.
|
|
109
|
-
* Preferences are deep-merged with global ones, with component preferences
|
|
110
|
-
* taking precedence. Affects this component and all its descendants.
|
|
111
|
-
*/
|
|
112
|
-
preferences?: Preferences;
|
|
113
|
-
/**
|
|
114
|
-
* Custom render function for the error state.
|
|
115
|
-
*/
|
|
116
|
-
renderError?: (error: string) => ReactElement;
|
|
117
|
-
/**
|
|
118
|
-
* Custom render function for the loading state.
|
|
119
|
-
*/
|
|
120
|
-
renderLoading?: () => ReactElement;
|
|
121
|
-
/**
|
|
122
|
-
* Custom render function for the organization item.
|
|
123
|
-
*/
|
|
124
|
-
renderOrganization?: (organization: Organization, isSelected: boolean) => ReactElement;
|
|
125
|
-
/**
|
|
126
|
-
* Whether to show the member count.
|
|
127
|
-
*/
|
|
128
|
-
showMemberCount?: boolean;
|
|
129
|
-
/**
|
|
130
|
-
* Whether to show the role badge.
|
|
131
|
-
*/
|
|
132
|
-
showRole?: boolean;
|
|
133
|
-
/**
|
|
134
|
-
* Show organization name next to avatar in the trigger button
|
|
135
|
-
*/
|
|
136
|
-
showTriggerLabel?: boolean;
|
|
137
|
-
/**
|
|
138
|
-
* Custom styles for the component.
|
|
139
|
-
*/
|
|
140
|
-
style?: CSSProperties;
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* BaseOrganizationSwitcher component displays an organization selector with a dropdown menu.
|
|
144
|
-
* When clicked, it shows a popover with available organizations to switch between.
|
|
145
|
-
* This component serves as the base for framework-specific implementations.
|
|
146
|
-
*/
|
|
147
|
-
export declare const BaseOrganizationSwitcher: FC<BaseOrganizationSwitcherProps>;
|
|
148
|
-
export default BaseOrganizationSwitcher;
|
|
149
|
-
//# sourceMappingURL=BaseOrganizationSwitcher.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseOrganizationSwitcher.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAiBH,OAAO,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAC,aAAa,EAAE,EAAE,EAAE,YAAY,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAW3E,UAAU,QAAQ;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;IACpC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,mBAAmB,CAAC,EAAE,YAAY,CAAC;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B;;OAEG;IACH,oBAAoB,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3D;;OAEG;IACH,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,YAAY,CAAC;IAC9C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,YAAY,CAAC;IACnC;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,KAAK,YAAY,CAAC;IACvF;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CAuVtE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|