@registrucentras/rc-ses-react-components 2.6.0 → 2.7.0
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/assets/icons/phosphorIcons.d.ts +4 -0
- package/dist/components/overlays/BottomSheet/index.d.ts +3 -1
- package/dist/components/overlays/Drawer/Drawer.types.d.ts +4 -0
- package/dist/components/overlays/Drawer/index.d.ts +1 -1
- package/dist/registrucentras-rc-ses-react-components.cjs +1 -1
- package/dist/registrucentras-rc-ses-react-components.js +815 -776
- package/package.json +1 -1
- package/src/assets/icons/phosphorIcons.ts +2 -0
- package/src/components/overlays/BottomSheet/index.test.tsx +31 -0
- package/src/components/overlays/BottomSheet/index.tsx +15 -2
- package/src/components/overlays/Drawer/Drawer.types.ts +4 -0
- package/src/components/overlays/Drawer/index.test.tsx +31 -0
- package/src/components/overlays/Drawer/index.tsx +13 -2
- package/src/stories/organisms/BottomSheet.stories.tsx +18 -0
- package/src/stories/organisms/Drawer.stories.tsx +36 -0
|
@@ -107,6 +107,10 @@ export declare const ExpandChevronsIcon: {
|
|
|
107
107
|
({ fillColor, size, weight, ...rest }: __DTS_DEFAULT_0__): import("react").JSX.Element;
|
|
108
108
|
displayName: string;
|
|
109
109
|
};
|
|
110
|
+
export declare const FunnelIcon: {
|
|
111
|
+
({ fillColor, size, weight, ...rest }: __DTS_DEFAULT_0__): import("react").JSX.Element;
|
|
112
|
+
displayName: string;
|
|
113
|
+
};
|
|
110
114
|
export declare const InfoFillIcon: {
|
|
111
115
|
({ fillColor, size, weight, ...rest }: __DTS_DEFAULT_0__): import("react").JSX.Element;
|
|
112
116
|
displayName: string;
|
|
@@ -7,11 +7,13 @@ export interface RcSesBottomSheetProps extends Omit<MuiDialogProps, 'children' |
|
|
|
7
7
|
onBack?: () => void;
|
|
8
8
|
primaryActionLabel?: string;
|
|
9
9
|
onPrimaryAction?: () => void;
|
|
10
|
+
primaryActionDisabled?: boolean;
|
|
10
11
|
secondaryActionLabel?: string;
|
|
11
12
|
onSecondaryAction?: () => void;
|
|
13
|
+
secondaryActionDisabled?: boolean;
|
|
12
14
|
disableBackdropClose?: boolean;
|
|
13
15
|
size?: 'sm' | 'md';
|
|
14
16
|
onClose?: (event: unknown, reason: 'backdropClick' | 'escapeKeyDown' | 'swipeDown') => void;
|
|
15
17
|
}
|
|
16
|
-
declare function RcSesBottomSheet({ title, children, showBack, onBack, primaryActionLabel, onPrimaryAction, secondaryActionLabel, onSecondaryAction, onClose, disableBackdropClose, size, open, 'aria-labelledby': ariaLabelledByProp, 'aria-describedby': ariaDescribedByProp, scroll, transitionDuration, ...props }: RcSesBottomSheetProps): import("react").JSX.Element;
|
|
18
|
+
declare function RcSesBottomSheet({ title, children, showBack, onBack, primaryActionLabel, onPrimaryAction, primaryActionDisabled, secondaryActionLabel, onSecondaryAction, secondaryActionDisabled, onClose, disableBackdropClose, size, open, 'aria-labelledby': ariaLabelledByProp, 'aria-describedby': ariaDescribedByProp, scroll, transitionDuration, ...props }: RcSesBottomSheetProps): import("react").JSX.Element;
|
|
17
19
|
export default RcSesBottomSheet;
|
|
@@ -19,10 +19,14 @@ export interface RcSesDrawerProps {
|
|
|
19
19
|
secondaryActionLabel?: string;
|
|
20
20
|
/** Callback fired when secondary action button is clicked */
|
|
21
21
|
onSecondaryAction?: () => void;
|
|
22
|
+
/** Whether the secondary action button is disabled */
|
|
23
|
+
secondaryActionDisabled?: boolean;
|
|
22
24
|
/** Label for the primary (right) action button */
|
|
23
25
|
primaryActionLabel?: string;
|
|
24
26
|
/** Callback fired when primary action button is clicked */
|
|
25
27
|
onPrimaryAction?: () => void;
|
|
28
|
+
/** Whether the primary action button is disabled */
|
|
29
|
+
primaryActionDisabled?: boolean;
|
|
26
30
|
/** Test IDs for testing */
|
|
27
31
|
testIds?: RcSesDrawerTestIds;
|
|
28
32
|
/** Optional CSS class name */
|
|
@@ -4,6 +4,6 @@ import { RcSesDrawerProps, RcSesDrawerTestIds } from './Drawer.types';
|
|
|
4
4
|
* Built on MUI Dialog for proper focus management, scroll locking, and DOM handling.
|
|
5
5
|
* Composition: Header (title + close button), scrollable body, and optional footer.
|
|
6
6
|
*/
|
|
7
|
-
declare const RcSesDrawer: ({ isOpen, onClose, title, children, secondaryActionLabel, onSecondaryAction, primaryActionLabel, onPrimaryAction, testIds, className, }: RcSesDrawerProps) => import("react").JSX.Element;
|
|
7
|
+
declare const RcSesDrawer: ({ isOpen, onClose, title, children, secondaryActionLabel, onSecondaryAction, secondaryActionDisabled, primaryActionLabel, onPrimaryAction, primaryActionDisabled, testIds, className, }: RcSesDrawerProps) => import("react").JSX.Element;
|
|
8
8
|
export default RcSesDrawer;
|
|
9
9
|
export type { RcSesDrawerProps, RcSesDrawerTestIds };
|