@asgardeo/react 0.25.6 → 0.25.7
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/cjs/index.js +143 -42
- package/dist/cjs/index.js.map +3 -3
- package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.d.ts.map +1 -1
- package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.styles.d.ts.map +1 -1
- package/dist/components/presentation/OrganizationList/BaseOrganizationList.d.ts +4 -0
- package/dist/components/presentation/OrganizationList/BaseOrganizationList.d.ts.map +1 -1
- package/dist/components/presentation/OrganizationList/BaseOrganizationList.styles.d.ts.map +1 -1
- package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.d.ts +4 -0
- package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.d.ts.map +1 -1
- package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.d.ts.map +1 -1
- package/dist/index.js +143 -42
- package/dist/index.js.map +3 -3
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseCreateOrganization.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/CreateOrganization/BaseCreateOrganization.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,yBAAyB,EAAgC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAEvG,OAAO,EAAc,aAAa,EAAE,EAAE,EAA2B,SAAS,EAAW,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseCreateOrganization.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/CreateOrganization/BaseCreateOrganization.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,yBAAyB,EAAgC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAEvG,OAAO,EAAc,aAAa,EAAE,EAAE,EAA2B,SAAS,EAAW,MAAM,OAAO,CAAC;AAiBnG;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,yBAAyB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,SAAS,CAAC,EAAE,CAAC,YAAY,EAAE,GAAG,KAAK,IAAI,CAAC;IACxC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,sBAAsB,CAAC,EAAE,MAAM,SAAS,CAAC;IACzC,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAgBD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CA2NlE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseCreateOrganization.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/CreateOrganization/BaseCreateOrganization.styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAIxC;;;;;GAKG;AACH,QAAA,MAAM,SAAS,UAAW,KAAK,eAAe,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"BaseCreateOrganization.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/CreateOrganization/BaseCreateOrganization.styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAIxC;;;;;GAKG;AACH,QAAA,MAAM,SAAS,UAAW,KAAK,eAAe,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CA6LxE,CAAC;AAEL,eAAe,SAAS,CAAC"}
|
|
@@ -110,6 +110,10 @@ export interface BaseOrganizationListProps {
|
|
|
110
110
|
* Inline styles to apply to the container
|
|
111
111
|
*/
|
|
112
112
|
style?: CSSProperties;
|
|
113
|
+
/**
|
|
114
|
+
* Subtitle for the component
|
|
115
|
+
*/
|
|
116
|
+
subheading?: string;
|
|
113
117
|
/**
|
|
114
118
|
* Title for the popup dialog (only used in popup mode)
|
|
115
119
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseOrganizationList.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/OrganizationList/BaseOrganizationList.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,2BAA2B,EAAE,YAAY,EAAE,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAEzF,OAAO,EAAC,aAAa,EAAE,EAAE,EAA4B,SAAS,EAAU,MAAM,OAAO,CAAC;AAUtF,MAAM,WAAW,4BAA6B,SAAQ,YAAY;IAChE,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,M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E,MAAM,KAAK,SAAS,CAAC;IAC9F;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAgHD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"BaseOrganizationList.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/OrganizationList/BaseOrganizationList.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,2BAA2B,EAAE,YAAY,EAAE,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAEzF,OAAO,EAAC,aAAa,EAAE,EAAE,EAA4B,SAAS,EAAU,MAAM,OAAO,CAAC;AAUtF,MAAM,WAAW,4BAA6B,SAAQ,YAAY;IAChE,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,gBAAgB,EAAE,2BAA2B,CAAC;IAC9C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC1B;;OAEG;IACH,eAAe,EAAE,YAAY,EAAE,CAAC;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;OAEG;IACH,oBAAoB,CAAC,EAAE,CAAC,YAAY,EAAE,4BAA4B,KAAK,IAAI,CAAC;IAC5E;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,SAAS,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IAC3C;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,OAAO,KAAK,SAAS,CAAC;IACpF;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,SAAS,CAAC;IAChC;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAAE,4BAA4B,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IAC9F;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAgHD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CA8L9D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseOrganizationList.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/OrganizationList/BaseOrganizationList.styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAIxC;;;;;GAKG;AACH,QAAA,MAAM,SAAS,UAAW,KAAK,eAAe,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"BaseOrganizationList.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/OrganizationList/BaseOrganizationList.styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAIxC;;;;;GAKG;AACH,QAAA,MAAM,SAAS,UAAW,KAAK,eAAe,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAgQxE,CAAC;AAEL,eAAe,SAAS,CAAC"}
|
|
@@ -85,6 +85,10 @@ export interface BaseOrganizationProfileProps {
|
|
|
85
85
|
* Text for the save button (only used in editable mode).
|
|
86
86
|
*/
|
|
87
87
|
saveButtonText?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Custom subheading for the profile.
|
|
90
|
+
*/
|
|
91
|
+
subheading?: string;
|
|
88
92
|
/**
|
|
89
93
|
* Custom title for the profile.
|
|
90
94
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseOrganizationProfile.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/OrganizationProfile/BaseOrganizationProfile.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,mBAAmB,EAAc,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAE/E,OAAO,EAAC,EAAE,EAAE,YAAY,EAAE,SAAS,EAAwB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseOrganizationProfile.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/OrganizationProfile/BaseOrganizationProfile.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,mBAAmB,EAAc,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAE/E,O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,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,QAAA,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAkX7D,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseOrganizationProfile.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAIxC;;;;;GAKG;AACH,QAAA,MAAM,SAAS,UAAW,KAAK,eAAe,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"BaseOrganizationProfile.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAIxC;;;;;GAKG;AACH,QAAA,MAAM,SAAS,UAAW,KAAK,eAAe,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAgLzE,CAAC;AAEJ,eAAe,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -17092,6 +17092,23 @@ var useStyles30 = (theme, colorScheme) => useMemo41(() => {
|
|
|
17092
17092
|
flex-direction: column;
|
|
17093
17093
|
gap: calc(${theme.vars.spacing.unit} * 2);
|
|
17094
17094
|
`;
|
|
17095
|
+
const headerContainer = css31`
|
|
17096
|
+
margin-bottom: calc(${theme.vars.spacing.unit} * 3);
|
|
17097
|
+
padding-bottom: calc(${theme.vars.spacing.unit} * 2);
|
|
17098
|
+
border-bottom: 1px solid ${theme.vars.colors.border};
|
|
17099
|
+
`;
|
|
17100
|
+
const title = css31`
|
|
17101
|
+
font-size: 1.75rem;
|
|
17102
|
+
font-weight: 700;
|
|
17103
|
+
color: ${theme.vars.colors.text.primary};
|
|
17104
|
+
margin: 0 0 6px 0;
|
|
17105
|
+
letter-spacing: -0.01em;
|
|
17106
|
+
`;
|
|
17107
|
+
const subtitle = css31`
|
|
17108
|
+
font-size: 0.875rem;
|
|
17109
|
+
color: ${theme.vars.colors.text.secondary};
|
|
17110
|
+
margin: 0;
|
|
17111
|
+
`;
|
|
17095
17112
|
const form = css31`
|
|
17096
17113
|
display: flex;
|
|
17097
17114
|
flex-direction: column;
|
|
@@ -17106,12 +17123,25 @@ var useStyles30 = (theme, colorScheme) => useMemo41(() => {
|
|
|
17106
17123
|
`;
|
|
17107
17124
|
const field = css31`
|
|
17108
17125
|
display: flex;
|
|
17109
|
-
align-items:
|
|
17126
|
+
align-items: flex-start;
|
|
17110
17127
|
padding: ${theme.vars.spacing.unit} 0;
|
|
17111
|
-
border-bottom: 1px solid ${theme.vars.colors.border};
|
|
17112
17128
|
min-height: 32px;
|
|
17113
17129
|
`;
|
|
17130
|
+
const label = css31`
|
|
17131
|
+
font-size: 0.875rem;
|
|
17132
|
+
font-weight: 600;
|
|
17133
|
+
color: ${theme.vars.colors.text.primary};
|
|
17134
|
+
width: 200px;
|
|
17135
|
+
min-width: 200px;
|
|
17136
|
+
flex-shrink: 0;
|
|
17137
|
+
text-align: left;
|
|
17138
|
+
padding-right: calc(${theme.vars.spacing.unit} * 2);
|
|
17139
|
+
padding-top: calc(${theme.vars.spacing.unit} * 0.75);
|
|
17140
|
+
white-space: nowrap;
|
|
17141
|
+
line-height: 1.4;
|
|
17142
|
+
`;
|
|
17114
17143
|
const fieldGroup = css31`
|
|
17144
|
+
flex: 1;
|
|
17115
17145
|
display: flex;
|
|
17116
17146
|
flex-direction: column;
|
|
17117
17147
|
gap: calc(${theme.vars.spacing.unit} * 0.5);
|
|
@@ -17128,6 +17158,8 @@ var useStyles30 = (theme, colorScheme) => useMemo41(() => {
|
|
|
17128
17158
|
min-height: 80px;
|
|
17129
17159
|
resize: vertical;
|
|
17130
17160
|
outline: none;
|
|
17161
|
+
box-sizing: border-box;
|
|
17162
|
+
transition: border-color 0.2s, box-shadow 0.2s;
|
|
17131
17163
|
&:focus {
|
|
17132
17164
|
border-color: ${theme.vars.colors.primary.main};
|
|
17133
17165
|
box-shadow: 0 0 0 2px ${theme.vars.colors.primary.main}20;
|
|
@@ -17185,12 +17217,16 @@ var useStyles30 = (theme, colorScheme) => useMemo41(() => {
|
|
|
17185
17217
|
fieldGroup,
|
|
17186
17218
|
form,
|
|
17187
17219
|
header,
|
|
17220
|
+
headerContainer,
|
|
17188
17221
|
infoContainer,
|
|
17189
17222
|
input,
|
|
17223
|
+
label,
|
|
17190
17224
|
popup,
|
|
17191
17225
|
root,
|
|
17226
|
+
subtitle,
|
|
17192
17227
|
textarea,
|
|
17193
17228
|
textareaError,
|
|
17229
|
+
title,
|
|
17194
17230
|
value
|
|
17195
17231
|
};
|
|
17196
17232
|
}, [
|
|
@@ -17301,53 +17337,68 @@ var BaseCreateOrganization = ({
|
|
|
17301
17337
|
logger11.error("Form submission error:");
|
|
17302
17338
|
}
|
|
17303
17339
|
};
|
|
17340
|
+
const getTranslation = (key, fallback) => {
|
|
17341
|
+
const text = t(key);
|
|
17342
|
+
return text && text !== key ? text : fallback;
|
|
17343
|
+
};
|
|
17304
17344
|
const createOrganizationContent = /* @__PURE__ */ jsx118("div", { className: cx36(styles["root"], cardLayout && styles["card"], className), style, children: /* @__PURE__ */ jsxs53("div", { className: cx36(styles["content"]), children: [
|
|
17345
|
+
mode !== "popup" && /* @__PURE__ */ jsxs53("div", { className: cx36(styles["headerContainer"]), children: [
|
|
17346
|
+
/* @__PURE__ */ jsx118(Typography_default, { variant: "h5", component: "h1", className: cx36(styles["title"]), children: getTranslation("organization.create.heading", title || "Create organization") }),
|
|
17347
|
+
/* @__PURE__ */ jsx118(Typography_default, { variant: "body2", color: "textSecondary", className: cx36(styles["subtitle"]), children: getTranslation("organization.create.subheading", "Set up a new organization workspace.") })
|
|
17348
|
+
] }),
|
|
17305
17349
|
/* @__PURE__ */ jsxs53("form", { id: "create-organization-form", className: cx36(styles["form"]), onSubmit: handleSubmit, children: [
|
|
17306
17350
|
error && /* @__PURE__ */ jsxs53(Alert_default, { variant: "error", className: styles["errorAlert"], children: [
|
|
17307
17351
|
/* @__PURE__ */ jsx118(Alert_default.Title, { children: "Error" }),
|
|
17308
17352
|
/* @__PURE__ */ jsx118(Alert_default.Description, { children: error })
|
|
17309
17353
|
] }),
|
|
17310
|
-
/* @__PURE__ */
|
|
17311
|
-
|
|
17312
|
-
{
|
|
17313
|
-
|
|
17314
|
-
|
|
17315
|
-
|
|
17316
|
-
|
|
17317
|
-
|
|
17318
|
-
|
|
17319
|
-
|
|
17320
|
-
|
|
17321
|
-
|
|
17322
|
-
|
|
17323
|
-
|
|
17324
|
-
|
|
17325
|
-
|
|
17326
|
-
|
|
17327
|
-
|
|
17328
|
-
|
|
17329
|
-
|
|
17330
|
-
|
|
17331
|
-
|
|
17332
|
-
|
|
17333
|
-
|
|
17334
|
-
|
|
17335
|
-
|
|
17336
|
-
|
|
17337
|
-
|
|
17338
|
-
|
|
17339
|
-
|
|
17354
|
+
/* @__PURE__ */ jsxs53("div", { className: cx36(styles["field"]), children: [
|
|
17355
|
+
/* @__PURE__ */ jsx118(InputLabel_default, { required: true, className: cx36(styles["label"]), children: getTranslation("elements.fields.organization.name.label", "Organization Name") }),
|
|
17356
|
+
/* @__PURE__ */ jsx118("div", { className: cx36(styles["fieldGroup"]), children: /* @__PURE__ */ jsx118(
|
|
17357
|
+
TextField_default,
|
|
17358
|
+
{
|
|
17359
|
+
placeholder: getTranslation("elements.fields.organization.name.placeholder", "Organization Name"),
|
|
17360
|
+
value: formData.name,
|
|
17361
|
+
onChange: (e) => handleNameChange(e.target.value),
|
|
17362
|
+
disabled: loading,
|
|
17363
|
+
required: true,
|
|
17364
|
+
error: formErrors.name,
|
|
17365
|
+
className: cx36(styles["input"])
|
|
17366
|
+
}
|
|
17367
|
+
) })
|
|
17368
|
+
] }),
|
|
17369
|
+
/* @__PURE__ */ jsxs53("div", { className: cx36(styles["field"]), children: [
|
|
17370
|
+
/* @__PURE__ */ jsx118(InputLabel_default, { required: true, className: cx36(styles["label"]), children: getTranslation("elements.fields.organization.handle.label", "Organization Handle") }),
|
|
17371
|
+
/* @__PURE__ */ jsx118("div", { className: cx36(styles["fieldGroup"]), children: /* @__PURE__ */ jsx118(
|
|
17372
|
+
TextField_default,
|
|
17373
|
+
{
|
|
17374
|
+
placeholder: getTranslation("elements.fields.organization.handle.placeholder", "my-organization"),
|
|
17375
|
+
value: formData.handle,
|
|
17376
|
+
onChange: (e) => handleInputChange("handle", e.target.value),
|
|
17377
|
+
disabled: loading,
|
|
17378
|
+
required: true,
|
|
17379
|
+
error: formErrors.handle,
|
|
17380
|
+
helperText: "This will be your organization's unique identifier. Only lowercase letters, numbers, and hyphens are allowed.",
|
|
17381
|
+
className: cx36(styles["input"])
|
|
17382
|
+
}
|
|
17383
|
+
) })
|
|
17384
|
+
] }),
|
|
17385
|
+
/* @__PURE__ */ jsxs53("div", { className: cx36(styles["field"]), children: [
|
|
17386
|
+
/* @__PURE__ */ jsx118(InputLabel_default, { required: true, className: cx36(styles["label"]), children: getTranslation("elements.fields.organization.description.label", "Organization Description") }),
|
|
17387
|
+
/* @__PURE__ */ jsx118("div", { className: cx36(styles["fieldGroup"]), children: /* @__PURE__ */ jsx118(FormControl_default, { error: formErrors.description, children: /* @__PURE__ */ jsx118(
|
|
17340
17388
|
"textarea",
|
|
17341
17389
|
{
|
|
17342
17390
|
className: cx36(styles["textarea"], formErrors.description && styles["textareaError"]),
|
|
17343
|
-
placeholder:
|
|
17391
|
+
placeholder: getTranslation(
|
|
17392
|
+
"organization.create.description.placeholder",
|
|
17393
|
+
"Enter organization description"
|
|
17394
|
+
),
|
|
17344
17395
|
value: formData.description,
|
|
17345
17396
|
onChange: (e) => handleInputChange("description", e.target.value),
|
|
17346
17397
|
disabled: loading,
|
|
17347
17398
|
required: true
|
|
17348
17399
|
}
|
|
17349
|
-
)
|
|
17350
|
-
] })
|
|
17400
|
+
) }) })
|
|
17401
|
+
] }),
|
|
17351
17402
|
renderAdditionalFields && renderAdditionalFields()
|
|
17352
17403
|
] }),
|
|
17353
17404
|
/* @__PURE__ */ jsxs53("div", { className: cx36(styles["actions"]), children: [
|
|
@@ -17491,14 +17542,19 @@ var useStyles31 = (theme, colorScheme) => useMemo42(() => {
|
|
|
17491
17542
|
padding-bottom: calc(${theme.vars.spacing.unit} * 2);
|
|
17492
17543
|
border-bottom: 1px solid ${theme.vars.colors.border};
|
|
17493
17544
|
`;
|
|
17545
|
+
const headerContainer = css32`
|
|
17546
|
+
margin-bottom: calc(${theme.vars.spacing.unit} * 3);
|
|
17547
|
+
padding-bottom: calc(${theme.vars.spacing.unit} * 2);
|
|
17548
|
+
border-bottom: 1px solid ${theme.vars.colors.border};
|
|
17549
|
+
`;
|
|
17494
17550
|
const headerInfo = css32`
|
|
17495
17551
|
flex: 1;
|
|
17496
17552
|
`;
|
|
17497
17553
|
const title = css32`
|
|
17498
|
-
font-size: 1.
|
|
17499
|
-
font-weight:
|
|
17500
|
-
margin: 0 0 8px 0;
|
|
17554
|
+
font-size: 1.75rem;
|
|
17555
|
+
font-weight: 700;
|
|
17501
17556
|
color: ${theme.vars.colors.text.primary};
|
|
17557
|
+
margin: 0 0 calc(${theme.vars.spacing.unit} * 0.5) 0;
|
|
17502
17558
|
`;
|
|
17503
17559
|
const subtitle = css32`
|
|
17504
17560
|
color: ${theme.vars.colors.text.secondary};
|
|
@@ -17657,7 +17713,7 @@ var useStyles31 = (theme, colorScheme) => useMemo42(() => {
|
|
|
17657
17713
|
errorContainer,
|
|
17658
17714
|
errorMargin,
|
|
17659
17715
|
header,
|
|
17660
|
-
|
|
17716
|
+
headerContainer,
|
|
17661
17717
|
listContainer,
|
|
17662
17718
|
loadMoreButton,
|
|
17663
17719
|
loadMoreMargin,
|
|
@@ -17768,7 +17824,8 @@ var BaseOrganizationList = ({
|
|
|
17768
17824
|
renderLoadMore,
|
|
17769
17825
|
renderOrganization,
|
|
17770
17826
|
style,
|
|
17771
|
-
title
|
|
17827
|
+
title,
|
|
17828
|
+
subheading,
|
|
17772
17829
|
showStatus,
|
|
17773
17830
|
preferences
|
|
17774
17831
|
}) => {
|
|
@@ -17820,7 +17877,15 @@ var BaseOrganizationList = ({
|
|
|
17820
17877
|
}
|
|
17821
17878
|
return emptyContent;
|
|
17822
17879
|
}
|
|
17880
|
+
const getTranslation = (key, fallback) => {
|
|
17881
|
+
const text = t(key);
|
|
17882
|
+
return text && text !== key ? text : fallback;
|
|
17883
|
+
};
|
|
17823
17884
|
const organizationListContent = /* @__PURE__ */ jsxs54("div", { className: cx37(styles["root"], className), style, children: [
|
|
17885
|
+
mode !== "popup" && /* @__PURE__ */ jsxs54("div", { className: cx37(styles["headerContainer"]), children: [
|
|
17886
|
+
/* @__PURE__ */ jsx120(Typography_default, { variant: "h5", component: "h1", className: cx37(styles["title"]), children: getTranslation("organization.list.heading", title || "Organizations List") }),
|
|
17887
|
+
/* @__PURE__ */ jsx120(Typography_default, { variant: "body2", color: "textSecondary", className: cx37(styles["subtitle"]), children: getTranslation("organization.list.subheading", subheading || "View list of organizations.") })
|
|
17888
|
+
] }),
|
|
17824
17889
|
/* @__PURE__ */ jsxs54("div", { className: cx37(styles["header"]), children: [
|
|
17825
17890
|
/* @__PURE__ */ jsx120("div", { className: cx37(styles["headerInfo"]), children: /* @__PURE__ */ jsx120(Typography_default, { variant: "body2", color: "textSecondary", className: cx37(styles["subtitle"]), children: t("organization.switcher.showing.count", {
|
|
17826
17891
|
showing: organizationsWithSwitchAccess?.length,
|
|
@@ -18023,6 +18088,7 @@ var useStyles33 = (theme, colorScheme) => useMemo45(
|
|
|
18023
18088
|
color: ${theme.vars.colors.text.secondary};
|
|
18024
18089
|
margin: 0;
|
|
18025
18090
|
font-family: monospace;
|
|
18091
|
+
text-align: left;
|
|
18026
18092
|
`,
|
|
18027
18093
|
header: css34`
|
|
18028
18094
|
display: flex;
|
|
@@ -18031,6 +18097,11 @@ var useStyles33 = (theme, colorScheme) => useMemo45(
|
|
|
18031
18097
|
margin-bottom: calc(${theme.vars.spacing.unit} * 3);
|
|
18032
18098
|
padding-bottom: calc(${theme.vars.spacing.unit} * 2);
|
|
18033
18099
|
`,
|
|
18100
|
+
headerContainer: css34`
|
|
18101
|
+
margin-bottom: calc(${theme.vars.spacing.unit} * 3);
|
|
18102
|
+
padding-bottom: calc(${theme.vars.spacing.unit} * 2);
|
|
18103
|
+
border-bottom: 1px solid ${theme.vars.colors.border};
|
|
18104
|
+
`,
|
|
18034
18105
|
infoContainer: css34`
|
|
18035
18106
|
display: flex;
|
|
18036
18107
|
flex-direction: column;
|
|
@@ -18040,18 +18111,26 @@ var useStyles33 = (theme, colorScheme) => useMemo45(
|
|
|
18040
18111
|
font-size: 0.875rem;
|
|
18041
18112
|
font-weight: 500;
|
|
18042
18113
|
color: ${theme.vars.colors.text.secondary};
|
|
18043
|
-
width:
|
|
18114
|
+
width: 200px;
|
|
18115
|
+
min-width: 200px;
|
|
18044
18116
|
flex-shrink: 0;
|
|
18045
18117
|
line-height: 28px;
|
|
18118
|
+
text-align: left;
|
|
18119
|
+
white-space: nowrap;
|
|
18046
18120
|
`,
|
|
18047
18121
|
name: css34`
|
|
18048
18122
|
font-size: 1.5rem;
|
|
18049
18123
|
font-weight: 600;
|
|
18050
18124
|
margin: 0 0 8px 0;
|
|
18051
18125
|
color: ${theme.vars.colors.text.primary};
|
|
18126
|
+
text-align: left;
|
|
18052
18127
|
`,
|
|
18053
18128
|
orgInfo: css34`
|
|
18054
18129
|
flex: 1;
|
|
18130
|
+
display: flex;
|
|
18131
|
+
flex-direction: column;
|
|
18132
|
+
align-items: flex-start;
|
|
18133
|
+
text-align: left;
|
|
18055
18134
|
`,
|
|
18056
18135
|
permissionBadge: css34`
|
|
18057
18136
|
padding: calc(${theme.vars.spacing.unit} / 4) ${theme.vars.spacing.unit};
|
|
@@ -18091,6 +18170,17 @@ var useStyles33 = (theme, colorScheme) => useMemo45(
|
|
|
18091
18170
|
text-transform: uppercase;
|
|
18092
18171
|
letter-spacing: 0.5px;
|
|
18093
18172
|
`,
|
|
18173
|
+
subtitle: css34`
|
|
18174
|
+
font-size: 0.875rem;
|
|
18175
|
+
color: ${theme.vars.colors.text.secondary};
|
|
18176
|
+
margin: 0;
|
|
18177
|
+
`,
|
|
18178
|
+
title: css34`
|
|
18179
|
+
font-size: 1.75rem;
|
|
18180
|
+
font-weight: 700;
|
|
18181
|
+
color: ${theme.vars.colors.text.primary};
|
|
18182
|
+
margin: 0 0 calc(${theme.vars.spacing.unit} * 0.5) 0;
|
|
18183
|
+
`,
|
|
18094
18184
|
value: css34`
|
|
18095
18185
|
color: ${theme.vars.colors.text.primary};
|
|
18096
18186
|
flex: 1;
|
|
@@ -18487,7 +18577,9 @@ var BaseOrganizationProfile = ({
|
|
|
18487
18577
|
className = "",
|
|
18488
18578
|
cardLayout = true,
|
|
18489
18579
|
organization,
|
|
18490
|
-
|
|
18580
|
+
preferences,
|
|
18581
|
+
title,
|
|
18582
|
+
subheading,
|
|
18491
18583
|
mode = "inline",
|
|
18492
18584
|
editable = true,
|
|
18493
18585
|
onOpenChange,
|
|
@@ -18527,6 +18619,7 @@ var BaseOrganizationProfile = ({
|
|
|
18527
18619
|
]
|
|
18528
18620
|
}) => {
|
|
18529
18621
|
const { theme, colorScheme } = useTheme_default();
|
|
18622
|
+
const { t } = useTranslation_default(preferences?.i18n);
|
|
18530
18623
|
const styles = BaseOrganizationProfile_styles_default(theme, colorScheme);
|
|
18531
18624
|
const [editedOrganization, setEditedOrganization] = useState38(organization);
|
|
18532
18625
|
const [editingFields, setEditingFields] = useState38({});
|
|
@@ -18742,7 +18835,15 @@ var BaseOrganizationProfile = ({
|
|
|
18742
18835
|
if (!organization) {
|
|
18743
18836
|
return fallback;
|
|
18744
18837
|
}
|
|
18838
|
+
const getTranslation = (key, fallback2) => {
|
|
18839
|
+
const text = t(key);
|
|
18840
|
+
return text && text !== key ? text : fallback2;
|
|
18841
|
+
};
|
|
18745
18842
|
const profileContent = /* @__PURE__ */ jsxs56(Card_default, { className: cx40(styles["root"], cardLayout && styles["card"], className), children: [
|
|
18843
|
+
mode !== "popup" && /* @__PURE__ */ jsxs56("div", { className: cx40(styles["headerContainer"]), children: [
|
|
18844
|
+
/* @__PURE__ */ jsx123(Typography_default, { variant: "h5", component: "h1", className: cx40(styles["title"]), children: getTranslation("organization.profile.heading", title || "Organization Profile") }),
|
|
18845
|
+
/* @__PURE__ */ jsx123(Typography_default, { variant: "body2", color: "textSecondary", className: cx40(styles["subtitle"]), children: getTranslation("organization.profile.subheading", subheading || "Manage your organization details.") })
|
|
18846
|
+
] }),
|
|
18746
18847
|
/* @__PURE__ */ jsxs56("div", { className: cx40(styles["header"]), children: [
|
|
18747
18848
|
/* @__PURE__ */ jsx123(Avatar, { name: getOrgInitials(organization.name), size: 80, alt: `${organization.name} logo` }),
|
|
18748
18849
|
/* @__PURE__ */ jsxs56("div", { className: cx40(styles["orgInfo"]), children: [
|