@muraldevkit/ui-toolkit 2.86.7 → 2.87.0-dev-nydP.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.
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ export type MrlModalScrollableContent = {
3
+ isContentScrollable: boolean;
4
+ hasScrollTop: boolean;
5
+ hasScrollBottom: boolean;
6
+ };
7
+ export type MrlModalContextState = {
8
+ scrollableContent: MrlModalScrollableContent;
9
+ setScrollableContent: React.Dispatch<React.SetStateAction<MrlModalScrollableContent>>;
10
+ };
11
+ export declare const MrlModalContext: React.Context<MrlModalContextState | undefined>;
12
+ /**
13
+ * Returns the MrlModalContext state.
14
+ *
15
+ * @returns The MrlModalContext state.
16
+ */
17
+ export declare const useMrlModalContext: () => MrlModalContextState;
@@ -0,0 +1 @@
1
+ export * from './MrlModalContext';
@@ -115,7 +115,7 @@ export declare const colorPictoStoryData: {
115
115
  export declare const animateStoryData: {
116
116
  args: {
117
117
  delay: number;
118
- state: "stop" | "play";
118
+ state: "play" | "stop";
119
119
  };
120
120
  argTypes: {
121
121
  delay: {
@@ -140,6 +140,24 @@ export interface MrlTableColumnSortOptions {
140
140
  */
141
141
  sortDescriptor: MrlTableColumnSortDescriptor;
142
142
  }
143
+ export interface MrlTableStickyHeaderOptions {
144
+ /**
145
+ * Whether the table header is stuck to the top of the page when scrolling.
146
+ */
147
+ isTableHeaderSticky?: boolean;
148
+ /**
149
+ * A ref to the sticky table thead element.
150
+ */
151
+ stickyTableHeaderRef?: React.RefObject<HTMLTableSectionElement>;
152
+ /**
153
+ * A ref to the sticky table container element.
154
+ */
155
+ stickyTableContainerRef?: React.RefObject<HTMLDivElement>;
156
+ /**
157
+ * A ref to the non-sticky table element.
158
+ */
159
+ tableRef?: React.RefObject<HTMLTableElement>;
160
+ }
143
161
  export interface MrlSmartTableProps extends Partial<Pick<MrlTableProps, 'aria-label' | 'aria-labelledby' | 'aria-describedby' | 'aria-details'>> {
144
162
  /**
145
163
  * A list of table columns.
@@ -172,6 +190,10 @@ export interface MrlSmartTableProps extends Partial<Pick<MrlTableProps, 'aria-la
172
190
  * @default ${id}-mrl-smart-table
173
191
  */
174
192
  id?: string;
193
+ /**
194
+ * Configuration options for a sticky table header.
195
+ */
196
+ stickyTableHeaderOptions?: MrlTableStickyHeaderOptions;
175
197
  /**
176
198
  * A function to override the default sort items when a sort descriptor is set.
177
199
  */
@@ -11,7 +11,7 @@ export interface MrlTableProps extends React.ComponentPropsWithoutRef<'table'> {
11
11
  /**
12
12
  * MrlTable Component
13
13
  *
14
- * @param {MrlTable} props - MrlTable component props
14
+ * @param {MrlTableProps} props - MrlTable component props
15
15
  * @returns a table element
16
16
  */
17
- export declare function MrlTable({ className, ...rest }: MrlTableProps): JSX.Element;
17
+ export declare const MrlTable: React.ForwardRefExoticComponent<MrlTableProps & React.RefAttributes<HTMLTableElement>>;
@@ -14,4 +14,4 @@ export interface MrlTableHeaderProps extends React.ComponentPropsWithoutRef<'the
14
14
  * @param {MrlTableHeaderProps} props - MrlTableHeader component props
15
15
  * @returns a table header element with a nested table row element
16
16
  */
17
- export declare function MrlTableHeader({ children, className, ...rest }: MrlTableHeaderProps): JSX.Element;
17
+ export declare const MrlTableHeader: React.ForwardRefExoticComponent<MrlTableHeaderProps & React.RefAttributes<HTMLTableSectionElement>>;