fansunited-management-components 1.50.2 → 1.50.3
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/package.json
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Accordion container that groups content under a collapsible summary.
|
|
4
|
+
*
|
|
5
|
+
* Useful for settings forms and management pages to keep sections tidy.
|
|
6
|
+
*
|
|
7
|
+
* Props combine AccordionProps with React.PropsWithChildren.
|
|
8
|
+
* @property {string} label - Text shown in the accordion summary/header.
|
|
9
|
+
* @property {boolean} [disabled=false] - When true, prevents the accordion from expanding.
|
|
10
|
+
*/
|
|
2
11
|
type AccordionProps = {
|
|
3
12
|
label: string;
|
|
4
13
|
disabled?: boolean;
|
|
5
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* Renders a collapsible section using MUI Joy's Accordion primitives.
|
|
17
|
+
*
|
|
18
|
+
* @param {{ label: string; disabled?: boolean; children?: React.ReactNode }} props - Component props.
|
|
19
|
+
* @returns {JSX.Element}
|
|
20
|
+
* @example
|
|
21
|
+
* <Accordion label="Branding">
|
|
22
|
+
* <Branding ... />
|
|
23
|
+
* </Accordion>
|
|
24
|
+
*/
|
|
6
25
|
declare const Accordion: React.FC<AccordionProps & React.PropsWithChildren>;
|
|
7
26
|
export default Accordion;
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Displays advertising content input with Rich Text and Plain Text tabs.
|
|
5
|
+
*
|
|
6
|
+
* @property {object} labels - I18n labels; expects `richText` and `plainText` keys.
|
|
7
|
+
* @property {string} defaultValue - Initial content value.
|
|
8
|
+
* @property {(value: string) => void} onChange - Callback when content changes.
|
|
9
|
+
*/
|
|
3
10
|
type AdContentProps = {
|
|
4
11
|
labels: any;
|
|
5
12
|
defaultValue: string;
|
|
6
13
|
onChange: (value: string) => void;
|
|
7
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* Ad content editor providing both rich-text and textarea modes.
|
|
17
|
+
*
|
|
18
|
+
* @param {{ labels: any; defaultValue: string; onChange: (value: string) => void }} props
|
|
19
|
+
* @returns {JSX.Element}
|
|
20
|
+
*/
|
|
8
21
|
declare const AdContent: React.FC<AdContentProps>;
|
|
9
22
|
export default AdContent;
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Minimal email/password login form wired to Fans United Firebase auth.
|
|
5
|
+
*
|
|
6
|
+
* @property {string} environment - Firebase environment key used to pick project configuration.
|
|
7
|
+
* @property {string} userNotFound - Error message displayed when auth fails.
|
|
8
|
+
*/
|
|
3
9
|
type LoginProps = {
|
|
4
10
|
userNotFound: string;
|
|
5
11
|
environment: string;
|
|
6
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* Renders a sign-in form and triggers Firebase authentication.
|
|
15
|
+
*
|
|
16
|
+
* @param {{ environment: string; userNotFound: string }} props
|
|
17
|
+
* @returns {JSX.Element}
|
|
18
|
+
*/
|
|
7
19
|
declare const Login: React.FC<LoginProps>;
|
|
8
20
|
export default Login;
|