@fpkit/acss 6.4.0 → 6.4.2
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/libs/components/dialog/dialog.d.cts +2 -105
- package/libs/components/dialog/dialog.d.ts +2 -105
- package/libs/dialog-6c6b3588.d.ts +150 -0
- package/libs/index.cjs +34 -33
- package/libs/index.cjs.map +1 -1
- package/libs/index.d.cts +66 -2
- package/libs/index.d.ts +66 -2
- package/libs/index.js +11 -10
- package/libs/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +6 -1
- package/libs/components/alert/alert.css +0 -1
- package/libs/components/alert/alert.css.map +0 -1
- package/libs/components/alert/alert.min.css +0 -3
- package/libs/components/badge/badge.css +0 -1
- package/libs/components/badge/badge.css.map +0 -1
- package/libs/components/badge/badge.min.css +0 -3
- package/libs/components/box/box.css +0 -1
- package/libs/components/box/box.css.map +0 -1
- package/libs/components/box/box.min.css +0 -3
- package/libs/components/breadcrumbs/breadcrumb.css +0 -1
- package/libs/components/breadcrumbs/breadcrumb.css.map +0 -1
- package/libs/components/breadcrumbs/breadcrumb.min.css +0 -3
- package/libs/components/buttons/button.css +0 -1
- package/libs/components/buttons/button.css.map +0 -1
- package/libs/components/buttons/button.min.css +0 -3
- package/libs/components/buttons/icon-button.css +0 -1
- package/libs/components/buttons/icon-button.css.map +0 -1
- package/libs/components/buttons/icon-button.min.css +0 -3
- package/libs/components/cards/card-style.css +0 -1
- package/libs/components/cards/card-style.css.map +0 -1
- package/libs/components/cards/card-style.min.css +0 -3
- package/libs/components/cards/card.css +0 -1
- package/libs/components/cards/card.css.map +0 -1
- package/libs/components/cards/card.min.css +0 -3
- package/libs/components/cluster/cluster.css +0 -1
- package/libs/components/cluster/cluster.css.map +0 -1
- package/libs/components/cluster/cluster.min.css +0 -3
- package/libs/components/details/details.css +0 -1
- package/libs/components/details/details.css.map +0 -1
- package/libs/components/details/details.min.css +0 -3
- package/libs/components/dialog/dialog.css +0 -1
- package/libs/components/dialog/dialog.css.map +0 -1
- package/libs/components/dialog/dialog.min.css +0 -3
- package/libs/components/flexbox/flex.css +0 -1
- package/libs/components/flexbox/flex.css.map +0 -1
- package/libs/components/flexbox/flex.min.css +0 -3
- package/libs/components/form/checkbox.css +0 -1
- package/libs/components/form/checkbox.css.map +0 -1
- package/libs/components/form/checkbox.min.css +0 -3
- package/libs/components/form/form.css +0 -1
- package/libs/components/form/form.css.map +0 -1
- package/libs/components/form/form.min.css +0 -3
- package/libs/components/form/select.css +0 -1
- package/libs/components/form/select.css.map +0 -1
- package/libs/components/form/select.min.css +0 -3
- package/libs/components/grid/grid.css +0 -1
- package/libs/components/grid/grid.css.map +0 -1
- package/libs/components/grid/grid.min.css +0 -3
- package/libs/components/icons/icon.css +0 -1
- package/libs/components/icons/icon.css.map +0 -1
- package/libs/components/icons/icon.min.css +0 -3
- package/libs/components/images/img.css +0 -1
- package/libs/components/images/img.css.map +0 -1
- package/libs/components/images/img.min.css +0 -3
- package/libs/components/layout/landmarks.css +0 -1
- package/libs/components/layout/landmarks.css.map +0 -1
- package/libs/components/layout/landmarks.min.css +0 -3
- package/libs/components/link/link.css +0 -1
- package/libs/components/link/link.css.map +0 -1
- package/libs/components/link/link.min.css +0 -3
- package/libs/components/list/list.css +0 -1
- package/libs/components/list/list.css.map +0 -1
- package/libs/components/list/list.min.css +0 -3
- package/libs/components/nav/nav.css +0 -1
- package/libs/components/nav/nav.css.map +0 -1
- package/libs/components/nav/nav.min.css +0 -3
- package/libs/components/popover/popover.css +0 -1
- package/libs/components/popover/popover.css.map +0 -1
- package/libs/components/popover/popover.min.css +0 -3
- package/libs/components/progress/progress.css +0 -1
- package/libs/components/progress/progress.css.map +0 -1
- package/libs/components/progress/progress.min.css +0 -3
- package/libs/components/stack/stack.css +0 -1
- package/libs/components/stack/stack.css.map +0 -1
- package/libs/components/stack/stack.min.css +0 -3
- package/libs/components/styles/index.css +0 -1
- package/libs/components/styles/index.css.map +0 -1
- package/libs/components/styles/index.min.css +0 -3
- package/libs/components/tag/tag.css +0 -1
- package/libs/components/tag/tag.css.map +0 -1
- package/libs/components/tag/tag.min.css +0 -3
- package/libs/components/text-to-speech/text-to-speech.css +0 -1
- package/libs/components/text-to-speech/text-to-speech.css.map +0 -1
- package/libs/components/text-to-speech/text-to-speech.min.css +0 -3
- package/libs/components/title/title.css +0 -1
- package/libs/components/title/title.css.map +0 -1
- package/libs/components/title/title.min.css +0 -3
- package/libs/index.css +0 -1
- package/libs/index.css.map +0 -1
|
@@ -1,105 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Base properties shared by all dialog variants.
|
|
5
|
-
*
|
|
6
|
-
* @property {string} dialogTitle - The title displayed in the dialog header
|
|
7
|
-
* @property {string} [dialogLabel] - Optional accessible label for the dialog (aria-label)
|
|
8
|
-
* @property {ReactNode} children - Content to be displayed inside the dialog body
|
|
9
|
-
* @property {string} [className] - Additional CSS classes to apply to the dialog
|
|
10
|
-
* @property {CSSProperties} [styles] - Inline styles to apply to the dialog element
|
|
11
|
-
*/
|
|
12
|
-
interface BaseDialogProps {
|
|
13
|
-
/** The title displayed in the dialog header */
|
|
14
|
-
dialogTitle: string;
|
|
15
|
-
/** Optional accessible label for the dialog (aria-label) */
|
|
16
|
-
dialogLabel?: string;
|
|
17
|
-
/** Content to be displayed inside the dialog body */
|
|
18
|
-
children: ReactNode;
|
|
19
|
-
/** Additional CSS classes to apply to the dialog */
|
|
20
|
-
className?: string;
|
|
21
|
-
/** Inline styles to apply to the dialog element */
|
|
22
|
-
styles?: CSSProperties;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Props for the controlled Dialog component.
|
|
26
|
-
* Use this when you want to manage dialog state externally.
|
|
27
|
-
*
|
|
28
|
-
* @extends BaseDialogProps
|
|
29
|
-
* @property {boolean} isOpen - Controls whether the dialog is currently open
|
|
30
|
-
* @property {(open: boolean) => void} onOpenChange - Callback fired when dialog open state should change
|
|
31
|
-
* @property {boolean} [isAlertDialog=false] - If true, renders as non-modal inline alert using dialog.show()
|
|
32
|
-
* @property {() => void} [onClose] - Deprecated: Use onOpenChange instead. Called when dialog closes.
|
|
33
|
-
* @property {() => void | Promise<void>} [onConfirm] - Callback fired when confirm button is clicked
|
|
34
|
-
* @property {string} [confirmLabel="Confirm"] - Text label for the confirm button
|
|
35
|
-
* @property {string} [cancelLabel="Cancel"] - Text label for the cancel button
|
|
36
|
-
* @property {boolean} [hideFooter=false] - If true, hides the dialog footer with action buttons
|
|
37
|
-
*/
|
|
38
|
-
interface DialogProps extends BaseDialogProps {
|
|
39
|
-
/** Controls whether the dialog is currently open (controlled component) */
|
|
40
|
-
isOpen: boolean;
|
|
41
|
-
/** Callback fired when dialog open state should change */
|
|
42
|
-
onOpenChange: (open: boolean) => void;
|
|
43
|
-
/** If true, renders as non-modal inline alert using dialog.show() instead of dialog.showModal() */
|
|
44
|
-
isAlertDialog?: boolean;
|
|
45
|
-
/** @deprecated Use onOpenChange instead. Called when dialog closes. */
|
|
46
|
-
onClose?: () => void;
|
|
47
|
-
/** Callback fired when confirm button is clicked */
|
|
48
|
-
onConfirm?: () => void | Promise<void>;
|
|
49
|
-
/** Text label for the confirm button */
|
|
50
|
-
confirmLabel?: string;
|
|
51
|
-
/** Text label for the cancel button */
|
|
52
|
-
cancelLabel?: string;
|
|
53
|
-
/** If true, hides the dialog footer with action buttons */
|
|
54
|
-
hideFooter?: boolean;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* A controlled dialog component that supports both modal and non-modal (inline alert) modes.
|
|
59
|
-
*
|
|
60
|
-
* **Modal Dialog** (default): Uses native `<dialog>` element with `.showModal()` which provides:
|
|
61
|
-
* - Automatic focus trap (Tab cycles within dialog)
|
|
62
|
-
* - Escape key closes dialog (native behavior)
|
|
63
|
-
* - Backdrop overlay with click-to-close
|
|
64
|
-
* - Inert background (page content becomes non-interactive)
|
|
65
|
-
*
|
|
66
|
-
* **Inline Alert Dialog** (`isAlertDialog={true}`): Uses `.show()` for non-modal inline alerts:
|
|
67
|
-
* - No focus trap (page remains interactive)
|
|
68
|
-
* - No escape key behavior
|
|
69
|
-
* - Positioned inline in page flow
|
|
70
|
-
* - User must explicitly close with button
|
|
71
|
-
*
|
|
72
|
-
* @component
|
|
73
|
-
* @example
|
|
74
|
-
* ```tsx
|
|
75
|
-
* // Controlled usage
|
|
76
|
-
* const [open, setOpen] = useState(false);
|
|
77
|
-
* <Dialog
|
|
78
|
-
* isOpen={open}
|
|
79
|
-
* onOpenChange={setOpen}
|
|
80
|
-
* dialogTitle="Confirm Delete"
|
|
81
|
-
* >
|
|
82
|
-
* Are you sure you want to delete this item?
|
|
83
|
-
* </Dialog>
|
|
84
|
-
* ```
|
|
85
|
-
*
|
|
86
|
-
* @param {DialogProps} props - Component props
|
|
87
|
-
* @param {boolean} props.isOpen - Controls whether the dialog is currently open
|
|
88
|
-
* @param {(open: boolean) => void} props.onOpenChange - Callback fired when dialog open state changes
|
|
89
|
-
* @param {string} props.dialogTitle - The title displayed in the dialog header
|
|
90
|
-
* @param {boolean} [props.isAlertDialog=false] - If true, renders as non-modal inline alert
|
|
91
|
-
* @param {() => void} [props.onClose] - Deprecated: Use onOpenChange. Called when dialog closes.
|
|
92
|
-
* @param {ReactNode} props.children - Content to display inside the dialog body
|
|
93
|
-
* @param {() => void | Promise<void>} [props.onConfirm] - Callback fired when confirm button is clicked
|
|
94
|
-
* @param {string} [props.confirmLabel="Confirm"] - Text label for confirm button
|
|
95
|
-
* @param {string} [props.cancelLabel="Cancel"] - Text label for cancel button
|
|
96
|
-
* @param {boolean} [props.hideFooter=false] - If true, hides the footer with action buttons
|
|
97
|
-
* @param {string} [props.className] - Additional CSS classes to apply
|
|
98
|
-
* @param {string} [props.dialogLabel] - Optional aria-label for the dialog
|
|
99
|
-
* @param {CSSProperties} [props.styles] - Inline styles to apply to dialog element
|
|
100
|
-
* @returns {JSX.Element} A controlled dialog component
|
|
101
|
-
*/
|
|
102
|
-
declare const Dialog: React.FC<DialogProps>;
|
|
103
|
-
declare const _default: React.NamedExoticComponent<DialogProps>;
|
|
104
|
-
|
|
105
|
-
export { Dialog, _default as default };
|
|
1
|
+
import 'react';
|
|
2
|
+
export { a as Dialog, _ as default } from '../../dialog-6c6b3588.js';
|
|
@@ -1,105 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Base properties shared by all dialog variants.
|
|
5
|
-
*
|
|
6
|
-
* @property {string} dialogTitle - The title displayed in the dialog header
|
|
7
|
-
* @property {string} [dialogLabel] - Optional accessible label for the dialog (aria-label)
|
|
8
|
-
* @property {ReactNode} children - Content to be displayed inside the dialog body
|
|
9
|
-
* @property {string} [className] - Additional CSS classes to apply to the dialog
|
|
10
|
-
* @property {CSSProperties} [styles] - Inline styles to apply to the dialog element
|
|
11
|
-
*/
|
|
12
|
-
interface BaseDialogProps {
|
|
13
|
-
/** The title displayed in the dialog header */
|
|
14
|
-
dialogTitle: string;
|
|
15
|
-
/** Optional accessible label for the dialog (aria-label) */
|
|
16
|
-
dialogLabel?: string;
|
|
17
|
-
/** Content to be displayed inside the dialog body */
|
|
18
|
-
children: ReactNode;
|
|
19
|
-
/** Additional CSS classes to apply to the dialog */
|
|
20
|
-
className?: string;
|
|
21
|
-
/** Inline styles to apply to the dialog element */
|
|
22
|
-
styles?: CSSProperties;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Props for the controlled Dialog component.
|
|
26
|
-
* Use this when you want to manage dialog state externally.
|
|
27
|
-
*
|
|
28
|
-
* @extends BaseDialogProps
|
|
29
|
-
* @property {boolean} isOpen - Controls whether the dialog is currently open
|
|
30
|
-
* @property {(open: boolean) => void} onOpenChange - Callback fired when dialog open state should change
|
|
31
|
-
* @property {boolean} [isAlertDialog=false] - If true, renders as non-modal inline alert using dialog.show()
|
|
32
|
-
* @property {() => void} [onClose] - Deprecated: Use onOpenChange instead. Called when dialog closes.
|
|
33
|
-
* @property {() => void | Promise<void>} [onConfirm] - Callback fired when confirm button is clicked
|
|
34
|
-
* @property {string} [confirmLabel="Confirm"] - Text label for the confirm button
|
|
35
|
-
* @property {string} [cancelLabel="Cancel"] - Text label for the cancel button
|
|
36
|
-
* @property {boolean} [hideFooter=false] - If true, hides the dialog footer with action buttons
|
|
37
|
-
*/
|
|
38
|
-
interface DialogProps extends BaseDialogProps {
|
|
39
|
-
/** Controls whether the dialog is currently open (controlled component) */
|
|
40
|
-
isOpen: boolean;
|
|
41
|
-
/** Callback fired when dialog open state should change */
|
|
42
|
-
onOpenChange: (open: boolean) => void;
|
|
43
|
-
/** If true, renders as non-modal inline alert using dialog.show() instead of dialog.showModal() */
|
|
44
|
-
isAlertDialog?: boolean;
|
|
45
|
-
/** @deprecated Use onOpenChange instead. Called when dialog closes. */
|
|
46
|
-
onClose?: () => void;
|
|
47
|
-
/** Callback fired when confirm button is clicked */
|
|
48
|
-
onConfirm?: () => void | Promise<void>;
|
|
49
|
-
/** Text label for the confirm button */
|
|
50
|
-
confirmLabel?: string;
|
|
51
|
-
/** Text label for the cancel button */
|
|
52
|
-
cancelLabel?: string;
|
|
53
|
-
/** If true, hides the dialog footer with action buttons */
|
|
54
|
-
hideFooter?: boolean;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* A controlled dialog component that supports both modal and non-modal (inline alert) modes.
|
|
59
|
-
*
|
|
60
|
-
* **Modal Dialog** (default): Uses native `<dialog>` element with `.showModal()` which provides:
|
|
61
|
-
* - Automatic focus trap (Tab cycles within dialog)
|
|
62
|
-
* - Escape key closes dialog (native behavior)
|
|
63
|
-
* - Backdrop overlay with click-to-close
|
|
64
|
-
* - Inert background (page content becomes non-interactive)
|
|
65
|
-
*
|
|
66
|
-
* **Inline Alert Dialog** (`isAlertDialog={true}`): Uses `.show()` for non-modal inline alerts:
|
|
67
|
-
* - No focus trap (page remains interactive)
|
|
68
|
-
* - No escape key behavior
|
|
69
|
-
* - Positioned inline in page flow
|
|
70
|
-
* - User must explicitly close with button
|
|
71
|
-
*
|
|
72
|
-
* @component
|
|
73
|
-
* @example
|
|
74
|
-
* ```tsx
|
|
75
|
-
* // Controlled usage
|
|
76
|
-
* const [open, setOpen] = useState(false);
|
|
77
|
-
* <Dialog
|
|
78
|
-
* isOpen={open}
|
|
79
|
-
* onOpenChange={setOpen}
|
|
80
|
-
* dialogTitle="Confirm Delete"
|
|
81
|
-
* >
|
|
82
|
-
* Are you sure you want to delete this item?
|
|
83
|
-
* </Dialog>
|
|
84
|
-
* ```
|
|
85
|
-
*
|
|
86
|
-
* @param {DialogProps} props - Component props
|
|
87
|
-
* @param {boolean} props.isOpen - Controls whether the dialog is currently open
|
|
88
|
-
* @param {(open: boolean) => void} props.onOpenChange - Callback fired when dialog open state changes
|
|
89
|
-
* @param {string} props.dialogTitle - The title displayed in the dialog header
|
|
90
|
-
* @param {boolean} [props.isAlertDialog=false] - If true, renders as non-modal inline alert
|
|
91
|
-
* @param {() => void} [props.onClose] - Deprecated: Use onOpenChange. Called when dialog closes.
|
|
92
|
-
* @param {ReactNode} props.children - Content to display inside the dialog body
|
|
93
|
-
* @param {() => void | Promise<void>} [props.onConfirm] - Callback fired when confirm button is clicked
|
|
94
|
-
* @param {string} [props.confirmLabel="Confirm"] - Text label for confirm button
|
|
95
|
-
* @param {string} [props.cancelLabel="Cancel"] - Text label for cancel button
|
|
96
|
-
* @param {boolean} [props.hideFooter=false] - If true, hides the footer with action buttons
|
|
97
|
-
* @param {string} [props.className] - Additional CSS classes to apply
|
|
98
|
-
* @param {string} [props.dialogLabel] - Optional aria-label for the dialog
|
|
99
|
-
* @param {CSSProperties} [props.styles] - Inline styles to apply to dialog element
|
|
100
|
-
* @returns {JSX.Element} A controlled dialog component
|
|
101
|
-
*/
|
|
102
|
-
declare const Dialog: React.FC<DialogProps>;
|
|
103
|
-
declare const _default: React.NamedExoticComponent<DialogProps>;
|
|
104
|
-
|
|
105
|
-
export { Dialog, _default as default };
|
|
1
|
+
import 'react';
|
|
2
|
+
export { a as Dialog, _ as default } from '../../dialog-6c6b3588.js';
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import React, { ReactElement, ReactNode, CSSProperties } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Base properties shared by all dialog variants.
|
|
5
|
+
*
|
|
6
|
+
* @property {string} dialogTitle - The title displayed in the dialog header
|
|
7
|
+
* @property {string} [dialogLabel] - Optional accessible label for the dialog (aria-label)
|
|
8
|
+
* @property {ReactNode} children - Content to be displayed inside the dialog body
|
|
9
|
+
* @property {string} [className] - Additional CSS classes to apply to the dialog
|
|
10
|
+
* @property {CSSProperties} [styles] - Inline styles to apply to the dialog element
|
|
11
|
+
*/
|
|
12
|
+
interface BaseDialogProps {
|
|
13
|
+
/** The title displayed in the dialog header */
|
|
14
|
+
dialogTitle: string;
|
|
15
|
+
/** Optional accessible label for the dialog (aria-label) */
|
|
16
|
+
dialogLabel?: string;
|
|
17
|
+
/** Content to be displayed inside the dialog body */
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
/** Additional CSS classes to apply to the dialog */
|
|
20
|
+
className?: string;
|
|
21
|
+
/** Inline styles to apply to the dialog element */
|
|
22
|
+
styles?: CSSProperties;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Props for the controlled Dialog component.
|
|
26
|
+
* Use this when you want to manage dialog state externally.
|
|
27
|
+
*
|
|
28
|
+
* @extends BaseDialogProps
|
|
29
|
+
* @property {boolean} isOpen - Controls whether the dialog is currently open
|
|
30
|
+
* @property {(open: boolean) => void} onOpenChange - Callback fired when dialog open state should change
|
|
31
|
+
* @property {boolean} [isAlertDialog=false] - If true, renders as non-modal inline alert using dialog.show()
|
|
32
|
+
* @property {() => void} [onClose] - Deprecated: Use onOpenChange instead. Called when dialog closes.
|
|
33
|
+
* @property {() => void | Promise<void>} [onConfirm] - Callback fired when confirm button is clicked
|
|
34
|
+
* @property {string} [confirmLabel="Confirm"] - Text label for the confirm button
|
|
35
|
+
* @property {string} [cancelLabel="Cancel"] - Text label for the cancel button
|
|
36
|
+
* @property {boolean} [hideFooter=false] - If true, hides the dialog footer with action buttons
|
|
37
|
+
*/
|
|
38
|
+
interface DialogProps extends BaseDialogProps {
|
|
39
|
+
/** Controls whether the dialog is currently open (controlled component) */
|
|
40
|
+
isOpen: boolean;
|
|
41
|
+
/** Callback fired when dialog open state should change */
|
|
42
|
+
onOpenChange: (open: boolean) => void;
|
|
43
|
+
/** If true, renders as non-modal inline alert using dialog.show() instead of dialog.showModal() */
|
|
44
|
+
isAlertDialog?: boolean;
|
|
45
|
+
/** @deprecated Use onOpenChange instead. Called when dialog closes. */
|
|
46
|
+
onClose?: () => void;
|
|
47
|
+
/** Callback fired when confirm button is clicked */
|
|
48
|
+
onConfirm?: () => void | Promise<void>;
|
|
49
|
+
/** Text label for the confirm button */
|
|
50
|
+
confirmLabel?: string;
|
|
51
|
+
/** Text label for the cancel button */
|
|
52
|
+
cancelLabel?: string;
|
|
53
|
+
/** If true, hides the dialog footer with action buttons */
|
|
54
|
+
hideFooter?: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Props for the DialogModal wrapper component.
|
|
58
|
+
* This component manages dialog state internally and provides a trigger button.
|
|
59
|
+
* Use this for simple cases where you don't need external state management.
|
|
60
|
+
*
|
|
61
|
+
* @extends BaseDialogProps
|
|
62
|
+
* @property {boolean} [isAlertDialog=false] - If true, renders as non-modal inline alert
|
|
63
|
+
* @property {() => void} [onClose] - Callback fired when dialog is closed
|
|
64
|
+
* @property {() => void | Promise<void>} [onConfirm] - Callback fired when confirm button is clicked
|
|
65
|
+
* @property {string} [confirmLabel="Confirm"] - Text label for the confirm button
|
|
66
|
+
* @property {string} [cancelLabel="Cancel"] - Text label for the cancel button
|
|
67
|
+
* @property {boolean} [hideFooter=false] - If true, hides the dialog footer
|
|
68
|
+
* @property {string} [btnLabel="Open Dialog"] - Text label for the trigger button
|
|
69
|
+
* @property {"sm" | "md" | "lg"} [btnSize="sm"] - Size variant for the trigger button
|
|
70
|
+
* @property {() => void} [btnOnClick] - Callback fired when trigger button is clicked (before opening)
|
|
71
|
+
* @property {ReactElement} [icon] - Optional icon element. When provided, renders IconButton instead of Button as trigger.
|
|
72
|
+
*/
|
|
73
|
+
interface DialogModalProps extends BaseDialogProps {
|
|
74
|
+
/** If true, renders as non-modal inline alert using dialog.show() */
|
|
75
|
+
isAlertDialog?: boolean;
|
|
76
|
+
/** Callback fired when dialog is closed */
|
|
77
|
+
onClose?: () => void;
|
|
78
|
+
/** Callback fired when confirm button is clicked */
|
|
79
|
+
onConfirm?: () => void | Promise<void>;
|
|
80
|
+
/** Text label for the confirm button */
|
|
81
|
+
confirmLabel?: string;
|
|
82
|
+
/** Text label for the cancel button */
|
|
83
|
+
cancelLabel?: string;
|
|
84
|
+
/** If true, hides the dialog footer with action buttons */
|
|
85
|
+
hideFooter?: boolean;
|
|
86
|
+
/** Text label for the trigger button that opens the dialog */
|
|
87
|
+
btnLabel?: string;
|
|
88
|
+
/** Size variant for the trigger button */
|
|
89
|
+
btnSize?: "sm" | "md" | "lg";
|
|
90
|
+
/** Callback fired when trigger button is clicked (before opening dialog) */
|
|
91
|
+
btnOnClick?: () => void;
|
|
92
|
+
/** Additional props to pass to the trigger button component */
|
|
93
|
+
btnProps?: Record<string, unknown>;
|
|
94
|
+
/**
|
|
95
|
+
* Optional icon element. When provided, renders an IconButton instead of a regular Button as the trigger.
|
|
96
|
+
* `btnLabel` serves as both `aria-label` and the visible label text (shown at desktop widths via IconButton's responsive label).
|
|
97
|
+
* Note: `aria-labelledby` cannot be passed via `btnProps` when icon is set — use `btnLabel` instead.
|
|
98
|
+
*/
|
|
99
|
+
icon?: ReactElement;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* A controlled dialog component that supports both modal and non-modal (inline alert) modes.
|
|
104
|
+
*
|
|
105
|
+
* **Modal Dialog** (default): Uses native `<dialog>` element with `.showModal()` which provides:
|
|
106
|
+
* - Automatic focus trap (Tab cycles within dialog)
|
|
107
|
+
* - Escape key closes dialog (native behavior)
|
|
108
|
+
* - Backdrop overlay with click-to-close
|
|
109
|
+
* - Inert background (page content becomes non-interactive)
|
|
110
|
+
*
|
|
111
|
+
* **Inline Alert Dialog** (`isAlertDialog={true}`): Uses `.show()` for non-modal inline alerts:
|
|
112
|
+
* - No focus trap (page remains interactive)
|
|
113
|
+
* - No escape key behavior
|
|
114
|
+
* - Positioned inline in page flow
|
|
115
|
+
* - User must explicitly close with button
|
|
116
|
+
*
|
|
117
|
+
* @component
|
|
118
|
+
* @example
|
|
119
|
+
* ```tsx
|
|
120
|
+
* // Controlled usage
|
|
121
|
+
* const [open, setOpen] = useState(false);
|
|
122
|
+
* <Dialog
|
|
123
|
+
* isOpen={open}
|
|
124
|
+
* onOpenChange={setOpen}
|
|
125
|
+
* dialogTitle="Confirm Delete"
|
|
126
|
+
* >
|
|
127
|
+
* Are you sure you want to delete this item?
|
|
128
|
+
* </Dialog>
|
|
129
|
+
* ```
|
|
130
|
+
*
|
|
131
|
+
* @param {DialogProps} props - Component props
|
|
132
|
+
* @param {boolean} props.isOpen - Controls whether the dialog is currently open
|
|
133
|
+
* @param {(open: boolean) => void} props.onOpenChange - Callback fired when dialog open state changes
|
|
134
|
+
* @param {string} props.dialogTitle - The title displayed in the dialog header
|
|
135
|
+
* @param {boolean} [props.isAlertDialog=false] - If true, renders as non-modal inline alert
|
|
136
|
+
* @param {() => void} [props.onClose] - Deprecated: Use onOpenChange. Called when dialog closes.
|
|
137
|
+
* @param {ReactNode} props.children - Content to display inside the dialog body
|
|
138
|
+
* @param {() => void | Promise<void>} [props.onConfirm] - Callback fired when confirm button is clicked
|
|
139
|
+
* @param {string} [props.confirmLabel="Confirm"] - Text label for confirm button
|
|
140
|
+
* @param {string} [props.cancelLabel="Cancel"] - Text label for cancel button
|
|
141
|
+
* @param {boolean} [props.hideFooter=false] - If true, hides the footer with action buttons
|
|
142
|
+
* @param {string} [props.className] - Additional CSS classes to apply
|
|
143
|
+
* @param {string} [props.dialogLabel] - Optional aria-label for the dialog
|
|
144
|
+
* @param {CSSProperties} [props.styles] - Inline styles to apply to dialog element
|
|
145
|
+
* @returns {JSX.Element} A controlled dialog component
|
|
146
|
+
*/
|
|
147
|
+
declare const Dialog: React.FC<DialogProps>;
|
|
148
|
+
declare const _default: React.NamedExoticComponent<DialogProps>;
|
|
149
|
+
|
|
150
|
+
export { DialogModalProps as D, _default as _, Dialog as a };
|
package/libs/index.cjs
CHANGED
|
@@ -20,25 +20,25 @@ require('./chunk-PNWIRCG3.cjs');
|
|
|
20
20
|
require('./chunk-TON2YGMD.cjs');
|
|
21
21
|
var chunkLQPWXSCK_cjs = require('./chunk-LQPWXSCK.cjs');
|
|
22
22
|
var chunk66C2J4IX_cjs = require('./chunk-66C2J4IX.cjs');
|
|
23
|
-
var
|
|
23
|
+
var S = require('react');
|
|
24
24
|
|
|
25
25
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var S__default = /*#__PURE__*/_interopDefault(S);
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var V=({icon:e,label:t,variant:o="icon",type:s="button",...r})=>S__default.default.createElement(chunk25KCUE3R_cjs.a,{variant:o,"data-icon-btn":t?"has-label":"icon",...r,type:s},e,t&&S__default.default.createElement("span",{"data-icon-label":!0},t));V.displayName="IconButton";var Ye={default:"",info:"Information: ",success:"Success: ",warning:"Warning: ",error:"Error: "},J=({severity:e})=>{let t=Ye[e];return t?S__default.default.createElement("span",{className:"sr-only"},t):null};var Ze=(e,t)=>({info:S__default.default.createElement(chunkOZM455LO_cjs.b.InfoSolid,{...t}),success:S__default.default.createElement(chunkOZM455LO_cjs.b.SuccessSolid,{...t}),warning:S__default.default.createElement(chunkOZM455LO_cjs.b.WarnSolid,{...t}),error:S__default.default.createElement(chunkOZM455LO_cjs.b.AlertSolid,{...t}),default:S__default.default.createElement(chunkOZM455LO_cjs.b.AlertSquareSolid,{...t})})[e],K=({severity:e,iconProps:t,hideIcon:o})=>{if(o)return null;let s=Ze(e,t);return S__default.default.createElement(chunk66C2J4IX_cjs.a,{"aria-hidden":"true",className:"alert-icon"},s)};var X=({title:e,titleLevel:t})=>{if(!e)return null;let o=t?`h${t}`:"strong";return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:o,className:"alert-title"},e)};var Y=({children:e,contentType:t})=>t==="node"?S__default.default.createElement(S__default.default.Fragment,null,e):S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"p"},e);var Z=({actions:e})=>e?S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"div",className:"alert-actions"},e):null;var ie=S__default.default.memo(({onDismiss:e,iconSize:t=16})=>S__default.default.createElement(chunk25KCUE3R_cjs.b,{type:"button",onClick:e,"aria-label":"Close alert",className:"alert-dismiss","data-btn":"icon sm"},S__default.default.createElement(chunkOZM455LO_cjs.b,null,S__default.default.createElement(chunkOZM455LO_cjs.b.Close,{size:t})))),le=ie;ie.displayName="DismissButton";var ot={default:"polite",info:"polite",success:"polite",warning:"polite",error:"assertive"},G=S__default.default.forwardRef(({severity:e,variant:t,isVisible:o,dismissible:s,onDismiss:r,onInteractionStart:n,onInteractionEnd:a,autoFocus:l,title:p,titleLevel:y,children:x,contentType:f,actions:I,hideIcon:g,iconProps:b,...m},d)=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"div",ref:d,role:"alert","aria-live":ot[e],"aria-atomic":"true",className:`alert alert-${e}`,"data-alert":e,"data-visible":o,"data-variant":t,tabIndex:l?-1:void 0,onMouseEnter:n,onMouseLeave:a,onFocus:n,onBlur:a,...m},S__default.default.createElement(J,{severity:e}),S__default.default.createElement(K,{severity:e,iconProps:b,hideIcon:g}),S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"div",classes:"alert-message"},S__default.default.createElement(X,{title:p,titleLevel:y}),S__default.default.createElement(Y,{contentType:f},x),S__default.default.createElement(Z,{actions:I})),s&&S__default.default.createElement(le,{onDismiss:r})));G.displayName="AlertView";var st=({open:e,onDismiss:t,dismissible:o,autoHideDuration:s,pauseOnHover:r,autoFocus:n,alertRef:a})=>{let[l,p]=S__default.default.useState(e),[y,x]=S__default.default.useState(e),[f,I]=S__default.default.useState(!1),g=S__default.default.useCallback(()=>{p(!1),setTimeout(()=>{x(!1),t?.();},300);},[t]);S__default.default.useEffect(()=>{e?(x(!0),p(!0)):p(!1);},[e]),S__default.default.useEffect(()=>{if(!s||!l||f)return;let d=setTimeout(()=>{g();},s);return ()=>clearTimeout(d)},[s,l,f,g]),S__default.default.useEffect(()=>{if(!o||!l)return;let d=h=>{h.key==="Escape"&&g();};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[o,l,g]),S__default.default.useEffect(()=>{n&&l&&a.current&&a.current.focus();},[n,l,a]);let b=S__default.default.useCallback(()=>{r&&s&&I(!0);},[r,s]),m=S__default.default.useCallback(()=>{r&&s&&I(!1);},[r,s]);return {isVisible:l,shouldRender:y,handleDismiss:g,handleInteractionStart:b,handleInteractionEnd:m}},pe=({open:e,severity:t="default",children:o,title:s,dismissible:r=!1,onDismiss:n,iconSize:a,iconProps:l,hideIcon:p,autoHideDuration:y,pauseOnHover:x=!0,titleLevel:f=3,actions:I,autoFocus:g=!1,variant:b="outlined",contentType:m="text",...d})=>{let h=S__default.default.useRef(null),{isVisible:c,shouldRender:u,handleDismiss:$,handleInteractionStart:P,handleInteractionEnd:w}=st({open:e,onDismiss:n,dismissible:r,autoHideDuration:y,pauseOnHover:x,autoFocus:g,alertRef:h});if(!u)return null;let U={size:a||16,...l};return S__default.default.createElement(G,{ref:h,severity:t,variant:b,isVisible:c,dismissible:r,onDismiss:$,onInteractionStart:P,onInteractionEnd:w,autoFocus:g,title:s,titleLevel:f,contentType:m,actions:I,hideIcon:p,iconProps:U,...d},o)};pe.displayName="Alert";var ce=S__default.default.forwardRef(({id:e,label:t,checked:o,defaultChecked:s,value:r="on",onChange:n,classes:a,inputClasses:l,styles:p,size:y,name:x,disabled:f,required:I,validationState:g,errorMessage:b,hintText:m,onBlur:d,onFocus:h,autoFocus:c,...u},$)=>{let P=S__default.default.useCallback(Le=>{n?.(Le.target.checked);},[n]),w=o!==void 0,U=w?{checked:o}:{},Ae=!w&&s!==void 0?{defaultChecked:s}:{},W=S__default.default.useRef(w);return S__default.default.useEffect(()=>{process.env.NODE_ENV==="development"&&(W.current!==w&&console.warn(`Checkbox with id="${e}" is changing from ${W.current?"controlled":"uncontrolled"} to ${w?"controlled":"uncontrolled"}. This is likely a bug. Decide between using "checked" (controlled) or "defaultChecked" (uncontrolled) and stick with it.`),W.current=w);},[w,e]),S__default.default.createElement("div",{className:a,style:p,"data-checkbox-size":y},S__default.default.createElement(chunk4BZKFPEC_cjs.a,{ref:$,type:"checkbox",id:e,name:x,value:r,...U,...Ae,classes:l||"checkbox-input",disabled:f,required:I,validationState:g,errorMessage:b,hintText:m,onChange:P,onBlur:d,onFocus:h,autoFocus:c,...u}),S__default.default.createElement("label",{htmlFor:e,className:"checkbox-label"},t,I&&S__default.default.createElement("span",{className:"checkbox-required","aria-label":"required"}," *")))});ce.displayName="Checkbox";var fe=({src:e="//",alt:t,width:o=480,height:s,styles:r,loading:n="lazy",placeholder:a,fetchpriority:l="low",decoding:p="auto",srcSet:y,sizes:x,onError:f,onLoad:I,...g})=>{let b=S.useMemo(()=>{let c=typeof o=="number"?o:480,u=typeof s=="number"?s:Math.round(c*.75),$=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${c} ${u}">
|
|
30
30
|
<defs>
|
|
31
|
-
<linearGradient id="grad-${c}-${
|
|
31
|
+
<linearGradient id="grad-${c}-${u}" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
32
32
|
<stop offset="0%" style="stop-color:#6366f1;stop-opacity:1" />
|
|
33
33
|
<stop offset="50%" style="stop-color:#8b5cf6;stop-opacity:1" />
|
|
34
34
|
<stop offset="100%" style="stop-color:#ec4899;stop-opacity:1" />
|
|
35
35
|
</linearGradient>
|
|
36
36
|
</defs>
|
|
37
|
-
<rect width="${c}" height="${
|
|
38
|
-
<circle cx="${c*.15}" cy="${
|
|
39
|
-
<path d="M0,${
|
|
40
|
-
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="system-ui,-apple-system,sans-serif" font-size="${Math.max(16,Math.min(c,
|
|
41
|
-
</svg>`;return `data:image/svg+xml,${encodeURIComponent(F)}`},[o,s]),d=a??b;return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"img",src:e,alt:t,width:o,height:s||"auto",loading:i,style:r,srcSet:y,sizes:u,onError:c=>{f&&f(c),c.defaultPrevented||c.currentTarget.src!==d&&(c.currentTarget.src=d);},onLoad:c=>{I?.(c);},decoding:p,...g,...l&&{fetchpriority:l}})};pe.displayName="Img";var ce=e=>{let[t,o]=v.useState([]),[s,r]=v.useState(e),[i,a]=v.useState(!1),[l,p]=v.useState(!1);return v.useEffect(()=>{let d=()=>{let x=window.speechSynthesis.getVoices();o(x);let h=x.find(c=>c.name==="Google US English");if(h)r(h);else {let c=x.find(m=>m.lang.startsWith("en-"));c&&r(c);}};return d(),window.speechSynthesis.onvoiceschanged=d,()=>{window.speechSynthesis.onvoiceschanged=null;}},[]),{speak:(d,x={},h)=>{let c=new SpeechSynthesisUtterance(d);c.lang=x.lang??"en-US",c.pitch=x.pitch??1,c.rate=x.rate??1,c.voice=s??x.voice??null,c.onend=()=>{a(!1),p(!1),h&&h();},"speechSynthesis"in window?(window.speechSynthesis.speak(c),a(!0),p(!1)):a(!1);},pause:()=>{i&&!l&&(window.speechSynthesis.pause(),p(!0));},resume:()=>{i&&l&&(window.speechSynthesis.resume(),p(!1));},cancel:()=>{i&&(window.speechSynthesis.cancel(),a(!1),p(!1));},isSpeaking:i,isPaused:l,availableVoices:t,changeVoice:d=>{r(d);},currentVoice:s,getAvailableLanguages:()=>[...new Set(t.map(d=>d.lang))]}};var st=({children:e,onClick:t})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"button",type:"button",className:"tts-border","data-btn":"sm text pill",onClick:t},e),A=v__default.default.memo(st),Q=({label:e,isSpeaking:t,isPaused:o,onSpeak:s,onPause:r,onResume:i,onCancel:a})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"div","data-tts":!0},e&&v__default.default.createElement("p",null,e),!t&&v__default.default.createElement(A,{"aria-label":"Speak",onClick:s},v__default.default.createElement(chunkOZM455LO_cjs.b.PlaySolid,{size:16})),t&&!o&&v__default.default.createElement(A,{"aria-label":"Pause",onClick:r},v__default.default.createElement(chunkOZM455LO_cjs.b.PauseSolid,{size:16})),o&&v__default.default.createElement(A,{"aria-label":"Resume",onClick:i},v__default.default.createElement(chunkOZM455LO_cjs.b.ResumeSolid,{size:16})),v__default.default.createElement(A,{"aria-label":"Stop",onClick:a},v__default.default.createElement(chunkOZM455LO_cjs.b.StopSolid,{size:16})));Q.displayName="TextToSpeechControls";Q.TTSButton=A;var fe=Q;var de=({initialText:e="",showTextInput:t=!1,voice:o,pitch:s=1,rate:r=1,label:i,onEnd:a})=>{let{speak:l,pause:p,resume:y,cancel:u,isSpeaking:f,isPaused:I}=ce(),[g,b]=v.useState(e);v.useEffect(()=>{b(e);},[e]);let d=()=>{g.trim()!==""&&l(g,{voice:o,pitch:s,rate:r},h);},x=c=>{b(c.target.value);},h=()=>{a&&a();};return v__default.default.createElement(v__default.default.Fragment,null,t&&v__default.default.createElement(chunkVN2CVD4H_cjs.b,{value:g,onChange:x}),v__default.default.createElement(fe,{label:i,isSpeaking:f,isPaused:I,onSpeak:d,onPause:p,onResume:y,onCancel:u}))};de.displayName="TextToSpeechComponent";var E=e=>v__default.default.createElement(v__default.default.Fragment,null,e),it=({id:e,children:t,headerBackground:o,styles:s,classes:r,...i})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"header",id:e,styles:s,className:r,...i},o,v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section"},t)),at=({id:e,children:t,styles:o,classes:s,...r})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"main",id:e,styles:o,...r,className:s},t),lt=({id:e,classes:t,children:o,styles:s={},...r})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"footer",id:e,className:t,styles:s,...r},v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section"},o||"Copyright \xA9 2022")),pt=({id:e,children:t,styles:o={},classes:s,...r})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"aside",id:e,styles:o,className:s,...r},v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section"},t)),ct=({id:e,children:t,styles:o,classes:s,...r})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section",id:e,styles:o,className:s,...r},t),ft=({id:e,children:t,styles:o,classes:s,...r})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"article",id:e,styles:o,className:s,...r},t),dt=({id:e,children:t,legend:o,description:s,descriptionId:r,styles:i,classes:a,...l})=>{let p=r||(s?`${e}-desc`:void 0);return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"fieldset",id:e,styles:i,className:a,"aria-describedby":p,...l},o&&v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"legend"},o),s&&v__default.default.createElement("p",{id:p,className:"fieldset-description"},s),t)};E.displayName="Landmarks";E.Header=it;E.Main=at;E.Footer=lt;E.Aside=pt;E.Section=ct;E.Article=ft;E.Fieldset=dt;var ue=v__default.default.forwardRef(({padding:e,paddingInline:t,paddingBlock:o,margin:s,marginInline:r,marginBlock:i,width:a,maxWidth:l,radius:p,as:y="div",className:u,classes:f,children:I,...g},b)=>{let d=[];e&&d.push(`box-padding-${e}`),t&&d.push(`box-padding-inline-${t}`),o&&d.push(`box-padding-block-${o}`),s&&d.push(`box-margin-${s}`),r&&d.push(`box-margin-inline-${r}`),i&&d.push(`box-margin-block-${i}`),a&&d.push(`box-width-${a}`),l&&d.push(`box-max-width-${l}`),p&&d.push(`box-radius-${p}`);let x=[...d,u,f].filter(Boolean).join(" ");return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:y,ref:b,classes:x||void 0,...g},I)});ue.displayName="Box";var ye=v__default.default.forwardRef(({gap:e,direction:t="vertical",align:o,justify:s,wrap:r,as:i="div",className:a,classes:l,children:p,...y},u)=>{let f=["stack"];t==="horizontal"?f.push("stack-horizontal"):f.push("stack-vertical"),e&&f.push(`stack-gap-${e}`),o&&f.push(`stack-align-${o}`),s&&f.push(`stack-justify-${s}`),r&&f.push(`stack-${r}`);let I=[...f,a,l].filter(Boolean).join(" ");return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:i,ref:u,classes:I,...y},p)});ye.displayName="Stack";var ge=v__default.default.forwardRef(({gap:e,justify:t,align:o,as:s="div",className:r,classes:i,children:a,...l},p)=>{let y=["cluster"];e&&y.push(`cluster-gap-${e}`),t&&y.push(`cluster-justify-${t}`),o&&y.push(`cluster-align-${o}`);let u=[...y,r,i].filter(Boolean).join(" ");return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:s,ref:p,classes:u,...l},a)});ge.displayName="Cluster";var Ie=v__default.default.forwardRef(({columns:e,auto:t,minColumnWidth:o,gap:s,gapX:r,gapY:i,justifyItems:a,alignItems:l,as:p="div",className:y,classes:u,children:f,style:I,styles:g,...b},d)=>{let x=["grid"];e&&x.push(`grid-cols-${e}`),t&&x.push(`grid-auto-${t}`),s&&x.push(`grid-gap-${s}`),r&&x.push(`grid-gap-x-${r}`),i&&x.push(`grid-gap-y-${i}`),a&&x.push(`grid-justify-items-${a}`),l&&x.push(`grid-align-items-${l}`);let h=[...x,y,u].filter(Boolean).join(" "),c={...I||{},...g||{}};return t&&o&&(c.gridTemplateColumns=`repeat(auto-${t}, minmax(${o}, 1fr))`),v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:p,ref:d,classes:h,style:Object.keys(c).length>0?c:void 0,...b},f)});Ie.displayName="Grid";var Y=v__default.default.forwardRef(({span:e,rowSpan:t,as:o="div",className:s,classes:r,children:i,...a},l)=>{let p=[];e&&p.push(`grid-col-span-${e}`),t&&p.push(`grid-row-span-${t}`);let y=[...p,s,r].filter(Boolean).join(" ");return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:o,ref:l,classes:y,...a},i)});Y.displayName="GridItem";var be=Ie;be.Item=Y;var mt=be;var ve=v__default.default.forwardRef(({gap:e,justify:t,align:o,wrap:s,alwaysProportional:r=!1,as:i="div",className:a,classes:l,children:p,...y},u)=>{process.env.NODE_ENV==="development"&&r&&console.warn('[fpkit] Row: alwaysProportional is deprecated and will be removed in v5.0.0. Use responsive column utilities instead: className="col-sm-6 col-md-4"');let f=["col-row"];e&&f.push(`col-row-gap-${e}`),t&&f.push(`col-row-justify-${t}`),o&&f.push(`col-row-align-${o}`),s&&s!=="wrap"&&f.push(`col-row-${s}`),r&&f.push("col-row-proportional");let I=[...f,a,l].filter(Boolean).join(" ");return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:i,ref:u,classes:I,...y},p)});ve.displayName="Row";var Ce=v__default.default.forwardRef(({span:e,offset:t,order:o,auto:s=!1,as:r="div",className:i,classes:a,children:l,...p},y)=>{let u=[];s?u.push("col-auto"):e==="flex"?u.push("col-flex"):e&&u.push(`col-${e}`),t!==void 0&&u.push(`col-offset-${t}`),o!==void 0&&u.push(`col-order-${o}`);let f=[...u,i,a].filter(Boolean).join(" ");return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:r,ref:y,classes:f,...p},l)});Ce.displayName="Col";var L=(e,t="")=>{let o=[];if(e.direction){let s={row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"};o.push(`${t}${s[e.direction]}`);}if(e.wrap){let s={wrap:"flex-wrap",nowrap:"flex-nowrap","wrap-reverse":"flex-wrap-reverse"};o.push(`${t}${s[e.wrap]}`);}if(e.gap&&o.push(`${t}gap-${e.gap}`),e.rowGap&&o.push(`${t}row-gap-${e.rowGap}`),e.colGap&&o.push(`${t}col-gap-${e.colGap}`),e.justify){let s={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"};o.push(`${t}${s[e.justify]}`);}if(e.align){let s={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"};o.push(`${t}${s[e.align]}`);}if(e.alignContent){let s={start:"content-start",end:"content-end",center:"content-center",between:"content-between",around:"content-around",evenly:"content-evenly",stretch:"content-stretch"};o.push(`${t}${s[e.alignContent]}`);}return o},Te=v__default.default.forwardRef((e,t)=>{let{variant:o,inline:s=!1,as:r="div",className:i="",styles:a,children:l,sm:p,md:y,lg:u,xl:f,direction:I,wrap:g,gap:b,rowGap:d,colGap:x,justify:h,align:c,alignContent:m,...F}=e,S=[];if(S.push(s?"flex-inline":"flex"),o){let U={center:"flex-center",between:"flex-between",around:"flex-around",stack:"flex-stack",spread:"flex-spread"};S.push(U[o]);}S.push(...L({direction:I,wrap:g,gap:b,rowGap:d,colGap:x,justify:h,align:c,alignContent:m})),p&&S.push(...L(p,"sm:")),y&&S.push(...L(y,"md:")),u&&S.push(...L(u,"lg:")),f&&S.push(...L(f,"xl:"));let w=[...S,i].filter(Boolean).join(" ");return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:r,ref:t,classes:w,styles:a,...F},l)});Te.displayName="Flex";var we=v__default.default.forwardRef((e,t)=>{let{grow:o,shrink:s,basis:r,flex:i,alignSelf:a,order:l,as:p="div",className:y="",styles:u,children:f,sm:I,md:g,lg:b,xl:d,...x}=e,h=[];if(i){let m={1:"flex-1",auto:"flex-auto",initial:"flex-initial",none:"flex-none"};h.push(m[i]);}if(o!==void 0&&h.push(`flex-grow-${o}`),s!==void 0&&h.push(`flex-shrink-${s}`),r){let m={auto:"flex-basis-auto",0:"flex-basis-0",full:"flex-basis-full"};h.push(m[r]);}if(a){let m={auto:"self-auto",start:"self-start",end:"self-end",center:"self-center",baseline:"self-baseline",stretch:"self-stretch"};h.push(m[a]);}if(l){let m={first:"order-first",last:"order-last",none:"order-none"};h.push(m[l]);}if(I?.flex){let m={1:"flex-1",auto:"flex-auto",none:"flex-none"};h.push(`sm:${m[I.flex]}`);}if(g?.flex){let m={1:"flex-1",auto:"flex-auto",none:"flex-none"};h.push(`md:${m[g.flex]}`);}if(b?.flex){let m={1:"flex-1",auto:"flex-auto",none:"flex-none"};h.push(`lg:${m[b.flex]}`);}if(d?.flex){let m={1:"flex-1",auto:"flex-auto",none:"flex-none"};h.push(`xl:${m[d.flex]}`);}let c=[...h,y].filter(Boolean).join(" ");return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:p,ref:t,classes:c,styles:u,...x},f)});we.displayName="Flex.Item";var $e=v__default.default.forwardRef((e,t)=>{let{as:o="div",className:s="",styles:r,...i}=e,a=["flex-1",s].filter(Boolean).join(" ");return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:o,ref:t,classes:a,styles:r,...i})});$e.displayName="Flex.Spacer";var Z=Te;Z.Item=we;Z.Spacer=$e;var ut=Z;var Ee=({id:e,styles:t,classes:o,children:s,variant:r,...i})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"sup",id:e,styles:t,className:o,"data-badge":r||void 0,role:"status",...i},v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"span"},s));Ee.displayName="Badge";var yt=({elm:e="span",role:t="note",variant:o,children:s,styles:r,...i})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:e,role:t,"data-tag":o||void 0,styles:r,...i},s);yt.displayName="Tag";var ht=v__default.default.forwardRef(({summary:e,icon:t,styles:o,classes:s,ariaLabel:r,name:i,open:a,onPointerDown:l,onToggle:p,children:y,...u},f)=>{let I=v.useCallback(b=>{l?.(b);},[l]),g=v.useCallback(b=>{p?.(b);},[p]);return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"details",styles:o,classes:s,onToggle:g,ref:f,open:a,"aria-label":r,name:i,...u},v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"summary",onPointerDown:I},t,e),v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section"},y))});ht.displayName="Details";
|
|
37
|
+
<rect width="${c}" height="${u}" fill="url(#grad-${c}-${u})"/>
|
|
38
|
+
<circle cx="${c*.15}" cy="${u*.2}" r="${Math.min(c,u)*.08}" fill="rgba(255,255,255,0.2)"/>
|
|
39
|
+
<path d="M0,${u*.75} Q${c*.25},${u*.65} ${c*.5},${u*.75} T${c},${u*.75} L${c},${u} L0,${u} Z" fill="rgba(0,0,0,0.15)"/>
|
|
40
|
+
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="system-ui,-apple-system,sans-serif" font-size="${Math.max(16,Math.min(c,u)*.05)}" font-weight="500" fill="rgba(255,255,255,0.9)">${c}\xD7${u}</text>
|
|
41
|
+
</svg>`;return `data:image/svg+xml,${encodeURIComponent($)}`},[o,s]),m=a??b;return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"img",src:e,alt:t,width:o,height:s||"auto",loading:n,style:r,srcSet:y,sizes:x,onError:c=>{f&&f(c),c.defaultPrevented||c.currentTarget.src!==m&&(c.currentTarget.src=m);},onLoad:c=>{I?.(c);},decoding:p,...g,...l&&{fetchpriority:l}})};fe.displayName="Img";var de=({isAlertDialog:e=!1,onClose:t,dialogTitle:o,dialogLabel:s,btnLabel:r="Open Dialog",btnSize:n="sm",btnOnClick:a,children:l,onConfirm:p,confirmLabel:y="Confirm",cancelLabel:x="Cancel",className:f,hideFooter:I=!1,btnProps:g,icon:b})=>{let[m,d]=S.useState(!1),h=S.useRef(null),c=S.useCallback(P=>{d(P),!P&&t&&t();},[t]),u=S.useCallback(()=>{h.current=document.activeElement,d(!0),a&&a();},[a]);S.useEffect(()=>{if(!m&&h.current){let P=setTimeout(()=>{h.current?.focus();},100);return ()=>clearTimeout(P)}},[m]);let $={type:"button",onClick:u,"aria-haspopup":"dialog",...g};return S__default.default.createElement(S__default.default.Fragment,null,b?S__default.default.createElement(V,{icon:b,"aria-label":r,label:r,size:n,...$}):S__default.default.createElement(chunk25KCUE3R_cjs.b,{"data-btn":n,...$},r),S__default.default.createElement(chunkZOPHCNFD_cjs.b,{isOpen:m,onOpenChange:c,dialogTitle:o,dialogLabel:s,className:f,isAlertDialog:e,onConfirm:p,confirmLabel:y,cancelLabel:x,hideFooter:I},l))};de.displayName="DialogModal";var ue=e=>{let[t,o]=S.useState([]),[s,r]=S.useState(e),[n,a]=S.useState(!1),[l,p]=S.useState(!1);return S.useEffect(()=>{let m=()=>{let d=window.speechSynthesis.getVoices();o(d);let h=d.find(c=>c.name==="Google US English");if(h)r(h);else {let c=d.find(u=>u.lang.startsWith("en-"));c&&r(c);}};return m(),window.speechSynthesis.onvoiceschanged=m,()=>{window.speechSynthesis.onvoiceschanged=null;}},[]),{speak:(m,d={},h)=>{let c=new SpeechSynthesisUtterance(m);c.lang=d.lang??"en-US",c.pitch=d.pitch??1,c.rate=d.rate??1,c.voice=s??d.voice??null,c.onend=()=>{a(!1),p(!1),h&&h();},"speechSynthesis"in window?(window.speechSynthesis.speak(c),a(!0),p(!1)):a(!1);},pause:()=>{n&&!l&&(window.speechSynthesis.pause(),p(!0));},resume:()=>{n&&l&&(window.speechSynthesis.resume(),p(!1));},cancel:()=>{n&&(window.speechSynthesis.cancel(),a(!1),p(!1));},isSpeaking:n,isPaused:l,availableVoices:t,changeVoice:m=>{r(m);},currentVoice:s,getAvailableLanguages:()=>[...new Set(t.map(m=>m.lang))]}};var ct=({children:e,onClick:t})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"button",type:"button",className:"tts-border","data-btn":"sm text pill",onClick:t},e),A=S__default.default.memo(ct),ee=({label:e,isSpeaking:t,isPaused:o,onSpeak:s,onPause:r,onResume:n,onCancel:a})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"div","data-tts":!0},e&&S__default.default.createElement("p",null,e),!t&&S__default.default.createElement(A,{"aria-label":"Speak",onClick:s},S__default.default.createElement(chunkOZM455LO_cjs.b.PlaySolid,{size:16})),t&&!o&&S__default.default.createElement(A,{"aria-label":"Pause",onClick:r},S__default.default.createElement(chunkOZM455LO_cjs.b.PauseSolid,{size:16})),o&&S__default.default.createElement(A,{"aria-label":"Resume",onClick:n},S__default.default.createElement(chunkOZM455LO_cjs.b.ResumeSolid,{size:16})),S__default.default.createElement(A,{"aria-label":"Stop",onClick:a},S__default.default.createElement(chunkOZM455LO_cjs.b.StopSolid,{size:16})));ee.displayName="TextToSpeechControls";ee.TTSButton=A;var xe=ee;var ye=({initialText:e="",showTextInput:t=!1,voice:o,pitch:s=1,rate:r=1,label:n,onEnd:a})=>{let{speak:l,pause:p,resume:y,cancel:x,isSpeaking:f,isPaused:I}=ue(),[g,b]=S.useState(e);S.useEffect(()=>{b(e);},[e]);let m=()=>{g.trim()!==""&&l(g,{voice:o,pitch:s,rate:r},h);},d=c=>{b(c.target.value);},h=()=>{a&&a();};return S__default.default.createElement(S__default.default.Fragment,null,t&&S__default.default.createElement(chunkVN2CVD4H_cjs.b,{value:g,onChange:d}),S__default.default.createElement(xe,{label:n,isSpeaking:f,isPaused:I,onSpeak:m,onPause:p,onResume:y,onCancel:x}))};ye.displayName="TextToSpeechComponent";var F=e=>S__default.default.createElement(S__default.default.Fragment,null,e),dt=({id:e,children:t,headerBackground:o,styles:s,classes:r,...n})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"header",id:e,styles:s,className:r,...n},o,S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section"},t)),ut=({id:e,children:t,styles:o,classes:s,...r})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"main",id:e,styles:o,...r,className:s},t),xt=({id:e,classes:t,children:o,styles:s={},...r})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"footer",id:e,className:t,styles:s,...r},S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section"},o||"Copyright \xA9 2022")),yt=({id:e,children:t,styles:o={},classes:s,...r})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"aside",id:e,styles:o,className:s,...r},S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section"},t)),ht=({id:e,children:t,styles:o,classes:s,...r})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section",id:e,styles:o,className:s,...r},t),gt=({id:e,children:t,styles:o,classes:s,...r})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"article",id:e,styles:o,className:s,...r},t),It=({id:e,children:t,legend:o,description:s,descriptionId:r,styles:n,classes:a,...l})=>{let p=r||(s?`${e}-desc`:void 0);return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"fieldset",id:e,styles:n,className:a,"aria-describedby":p,...l},o&&S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"legend"},o),s&&S__default.default.createElement("p",{id:p,className:"fieldset-description"},s),t)};F.displayName="Landmarks";F.Header=dt;F.Main=ut;F.Footer=xt;F.Aside=yt;F.Section=ht;F.Article=gt;F.Fieldset=It;var ge=S__default.default.forwardRef(({padding:e,paddingInline:t,paddingBlock:o,margin:s,marginInline:r,marginBlock:n,width:a,maxWidth:l,radius:p,as:y="div",className:x,classes:f,children:I,...g},b)=>{let m=[];e&&m.push(`box-padding-${e}`),t&&m.push(`box-padding-inline-${t}`),o&&m.push(`box-padding-block-${o}`),s&&m.push(`box-margin-${s}`),r&&m.push(`box-margin-inline-${r}`),n&&m.push(`box-margin-block-${n}`),a&&m.push(`box-width-${a}`),l&&m.push(`box-max-width-${l}`),p&&m.push(`box-radius-${p}`);let d=[...m,x,f].filter(Boolean).join(" ");return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:y,ref:b,classes:d||void 0,...g},I)});ge.displayName="Box";var be=S__default.default.forwardRef(({gap:e,direction:t="vertical",align:o,justify:s,wrap:r,as:n="div",className:a,classes:l,children:p,...y},x)=>{let f=["stack"];t==="horizontal"?f.push("stack-horizontal"):f.push("stack-vertical"),e&&f.push(`stack-gap-${e}`),o&&f.push(`stack-align-${o}`),s&&f.push(`stack-justify-${s}`),r&&f.push(`stack-${r}`);let I=[...f,a,l].filter(Boolean).join(" ");return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:n,ref:x,classes:I,...y},p)});be.displayName="Stack";var ve=S__default.default.forwardRef(({gap:e,justify:t,align:o,as:s="div",className:r,classes:n,children:a,...l},p)=>{let y=["cluster"];e&&y.push(`cluster-gap-${e}`),t&&y.push(`cluster-justify-${t}`),o&&y.push(`cluster-align-${o}`);let x=[...y,r,n].filter(Boolean).join(" ");return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:s,ref:p,classes:x,...l},a)});ve.displayName="Cluster";var Se=S__default.default.forwardRef(({columns:e,auto:t,minColumnWidth:o,gap:s,gapX:r,gapY:n,justifyItems:a,alignItems:l,as:p="div",className:y,classes:x,children:f,style:I,styles:g,...b},m)=>{let d=["grid"];e&&d.push(`grid-cols-${e}`),t&&d.push(`grid-auto-${t}`),s&&d.push(`grid-gap-${s}`),r&&d.push(`grid-gap-x-${r}`),n&&d.push(`grid-gap-y-${n}`),a&&d.push(`grid-justify-items-${a}`),l&&d.push(`grid-align-items-${l}`);let h=[...d,y,x].filter(Boolean).join(" "),c={...I||{},...g||{}};return t&&o&&(c.gridTemplateColumns=`repeat(auto-${t}, minmax(${o}, 1fr))`),S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:p,ref:m,classes:h,style:Object.keys(c).length>0?c:void 0,...b},f)});Se.displayName="Grid";var te=S__default.default.forwardRef(({span:e,rowSpan:t,as:o="div",className:s,classes:r,children:n,...a},l)=>{let p=[];e&&p.push(`grid-col-span-${e}`),t&&p.push(`grid-row-span-${t}`);let y=[...p,s,r].filter(Boolean).join(" ");return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:o,ref:l,classes:y,...a},n)});te.displayName="GridItem";var Ce=Se;Ce.Item=te;var bt=Ce;var we=S__default.default.forwardRef(({gap:e,justify:t,align:o,wrap:s,alwaysProportional:r=!1,as:n="div",className:a,classes:l,children:p,...y},x)=>{process.env.NODE_ENV==="development"&&r&&console.warn('[fpkit] Row: alwaysProportional is deprecated and will be removed in v5.0.0. Use responsive column utilities instead: className="col-sm-6 col-md-4"');let f=["col-row"];e&&f.push(`col-row-gap-${e}`),t&&f.push(`col-row-justify-${t}`),o&&f.push(`col-row-align-${o}`),s&&s!=="wrap"&&f.push(`col-row-${s}`),r&&f.push("col-row-proportional");let I=[...f,a,l].filter(Boolean).join(" ");return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:n,ref:x,classes:I,...y},p)});we.displayName="Row";var Ee=S__default.default.forwardRef(({span:e,offset:t,order:o,auto:s=!1,as:r="div",className:n,classes:a,children:l,...p},y)=>{let x=[];s?x.push("col-auto"):e==="flex"?x.push("col-flex"):e&&x.push(`col-${e}`),t!==void 0&&x.push(`col-offset-${t}`),o!==void 0&&x.push(`col-order-${o}`);let f=[...x,n,a].filter(Boolean).join(" ");return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:r,ref:y,classes:f,...p},l)});Ee.displayName="Col";var L=(e,t="")=>{let o=[];if(e.direction){let s={row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"};o.push(`${t}${s[e.direction]}`);}if(e.wrap){let s={wrap:"flex-wrap",nowrap:"flex-nowrap","wrap-reverse":"flex-wrap-reverse"};o.push(`${t}${s[e.wrap]}`);}if(e.gap&&o.push(`${t}gap-${e.gap}`),e.rowGap&&o.push(`${t}row-gap-${e.rowGap}`),e.colGap&&o.push(`${t}col-gap-${e.colGap}`),e.justify){let s={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"};o.push(`${t}${s[e.justify]}`);}if(e.align){let s={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"};o.push(`${t}${s[e.align]}`);}if(e.alignContent){let s={start:"content-start",end:"content-end",center:"content-center",between:"content-between",around:"content-around",evenly:"content-evenly",stretch:"content-stretch"};o.push(`${t}${s[e.alignContent]}`);}return o},ke=S__default.default.forwardRef((e,t)=>{let{variant:o,inline:s=!1,as:r="div",className:n="",styles:a,children:l,sm:p,md:y,lg:x,xl:f,direction:I,wrap:g,gap:b,rowGap:m,colGap:d,justify:h,align:c,alignContent:u,...$}=e,P=[];if(P.push(s?"flex-inline":"flex"),o){let U={center:"flex-center",between:"flex-between",around:"flex-around",stack:"flex-stack",spread:"flex-spread"};P.push(U[o]);}P.push(...L({direction:I,wrap:g,gap:b,rowGap:m,colGap:d,justify:h,align:c,alignContent:u})),p&&P.push(...L(p,"sm:")),y&&P.push(...L(y,"md:")),x&&P.push(...L(x,"lg:")),f&&P.push(...L(f,"xl:"));let w=[...P,n].filter(Boolean).join(" ");return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:r,ref:t,classes:w,styles:a,...$},l)});ke.displayName="Flex";var Fe=S__default.default.forwardRef((e,t)=>{let{grow:o,shrink:s,basis:r,flex:n,alignSelf:a,order:l,as:p="div",className:y="",styles:x,children:f,sm:I,md:g,lg:b,xl:m,...d}=e,h=[];if(n){let u={1:"flex-1",auto:"flex-auto",initial:"flex-initial",none:"flex-none"};h.push(u[n]);}if(o!==void 0&&h.push(`flex-grow-${o}`),s!==void 0&&h.push(`flex-shrink-${s}`),r){let u={auto:"flex-basis-auto",0:"flex-basis-0",full:"flex-basis-full"};h.push(u[r]);}if(a){let u={auto:"self-auto",start:"self-start",end:"self-end",center:"self-center",baseline:"self-baseline",stretch:"self-stretch"};h.push(u[a]);}if(l){let u={first:"order-first",last:"order-last",none:"order-none"};h.push(u[l]);}if(I?.flex){let u={1:"flex-1",auto:"flex-auto",none:"flex-none"};h.push(`sm:${u[I.flex]}`);}if(g?.flex){let u={1:"flex-1",auto:"flex-auto",none:"flex-none"};h.push(`md:${u[g.flex]}`);}if(b?.flex){let u={1:"flex-1",auto:"flex-auto",none:"flex-none"};h.push(`lg:${u[b.flex]}`);}if(m?.flex){let u={1:"flex-1",auto:"flex-auto",none:"flex-none"};h.push(`xl:${u[m.flex]}`);}let c=[...h,y].filter(Boolean).join(" ");return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:p,ref:t,classes:c,styles:x,...d},f)});Fe.displayName="Flex.Item";var Ne=S__default.default.forwardRef((e,t)=>{let{as:o="div",className:s="",styles:r,...n}=e,a=["flex-1",s].filter(Boolean).join(" ");return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:o,ref:t,classes:a,styles:r,...n})});Ne.displayName="Flex.Spacer";var oe=ke;oe.Item=Fe;oe.Spacer=Ne;var Pt=oe;var Ue=({id:e,styles:t,classes:o,children:s,variant:r,...n})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"sup",id:e,styles:t,className:o,"data-badge":r||void 0,role:"status",...n},S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"span"},s));Ue.displayName="Badge";var St=({elm:e="span",role:t="note",variant:o,children:s,styles:r,...n})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:e,role:t,"data-tag":o||void 0,styles:r,...n},s);St.displayName="Tag";var Ct=S__default.default.forwardRef(({summary:e,icon:t,styles:o,classes:s,ariaLabel:r,name:n,open:a,onPointerDown:l,onToggle:p,children:y,...x},f)=>{let I=S.useCallback(b=>{l?.(b);},[l]),g=S.useCallback(b=>{p?.(b);},[p]);return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"details",styles:o,classes:s,onToggle:g,ref:f,open:a,"aria-label":r,name:n,...x},S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"summary",onPointerDown:I},t,e),S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section"},y))});Ct.displayName="Details";
|
|
42
42
|
|
|
43
43
|
Object.defineProperty(exports, 'Textarea', {
|
|
44
44
|
enumerable: true,
|
|
@@ -168,29 +168,30 @@ Object.defineProperty(exports, 'UI', {
|
|
|
168
168
|
enumerable: true,
|
|
169
169
|
get: function () { return chunk66C2J4IX_cjs.a; }
|
|
170
170
|
});
|
|
171
|
-
exports.Alert =
|
|
172
|
-
exports.Article =
|
|
173
|
-
exports.Aside =
|
|
174
|
-
exports.Badge =
|
|
175
|
-
exports.Box =
|
|
176
|
-
exports.Checkbox =
|
|
177
|
-
exports.Cluster =
|
|
178
|
-
exports.Col =
|
|
179
|
-
exports.Details =
|
|
180
|
-
exports.
|
|
181
|
-
exports.
|
|
182
|
-
exports.
|
|
183
|
-
exports.
|
|
184
|
-
exports.
|
|
185
|
-
exports.
|
|
186
|
-
exports.
|
|
187
|
-
exports.
|
|
188
|
-
exports.
|
|
189
|
-
exports.
|
|
190
|
-
exports.
|
|
191
|
-
exports.
|
|
192
|
-
exports.
|
|
193
|
-
exports.
|
|
194
|
-
exports.
|
|
171
|
+
exports.Alert = pe;
|
|
172
|
+
exports.Article = gt;
|
|
173
|
+
exports.Aside = yt;
|
|
174
|
+
exports.Badge = Ue;
|
|
175
|
+
exports.Box = ge;
|
|
176
|
+
exports.Checkbox = ce;
|
|
177
|
+
exports.Cluster = ve;
|
|
178
|
+
exports.Col = Ee;
|
|
179
|
+
exports.Details = Ct;
|
|
180
|
+
exports.DialogModal = de;
|
|
181
|
+
exports.Fieldset = It;
|
|
182
|
+
exports.Flex = Pt;
|
|
183
|
+
exports.Footer = xt;
|
|
184
|
+
exports.Grid = bt;
|
|
185
|
+
exports.GridItem = te;
|
|
186
|
+
exports.Header = dt;
|
|
187
|
+
exports.IconButton = V;
|
|
188
|
+
exports.Img = fe;
|
|
189
|
+
exports.Landmarks = F;
|
|
190
|
+
exports.Main = ut;
|
|
191
|
+
exports.Row = we;
|
|
192
|
+
exports.Section = ht;
|
|
193
|
+
exports.Stack = be;
|
|
194
|
+
exports.Tag = St;
|
|
195
|
+
exports.TextToSpeech = ye;
|
|
195
196
|
//# sourceMappingURL=out.js.map
|
|
196
197
|
//# sourceMappingURL=index.cjs.map
|