@internxt/ui 0.1.13 → 0.1.15
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/components/index.d.ts +1 -0
- package/dist/components/layout/grid/Grid.d.ts +31 -0
- package/dist/components/layout/grid/index.d.ts +2 -0
- package/dist/index.cjs.js +17 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +391 -382
- package/dist/index.es.js.map +1 -1
- package/dist/stories/components/grid/Grid.stories.d.ts +6 -0
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ export * from './input/switch';
|
|
|
16
16
|
export * from './input/textArea';
|
|
17
17
|
export * from './layout/header';
|
|
18
18
|
export * from './layout/infiniteScroll';
|
|
19
|
+
export * from './layout/grid';
|
|
19
20
|
export * from './navigation/breadcrumbs';
|
|
20
21
|
export * from './navigation/dropdown';
|
|
21
22
|
export * from './navigation/menu';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface GridProps {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
dataCy?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Grid component
|
|
10
|
+
*
|
|
11
|
+
* A responsive grid container that automatically adjusts columns from 2 (mobile) up to 6 (extra large screens).
|
|
12
|
+
*
|
|
13
|
+
* @param {GridProps} props - The properties of the component.
|
|
14
|
+
*
|
|
15
|
+
* @property {ReactNode} [children]
|
|
16
|
+
* - The child components or elements to be rendered inside the grid container.
|
|
17
|
+
*
|
|
18
|
+
* @property {string} [className]
|
|
19
|
+
* - Optional custom CSS classes for additional styling or layout adjustments overriding default tailwind classes.
|
|
20
|
+
*
|
|
21
|
+
* @property {string} [id]
|
|
22
|
+
* - Optional ID for the grid container element.
|
|
23
|
+
*
|
|
24
|
+
* @property {string} [dataCy]
|
|
25
|
+
* - Custom data attribute used for e2e Cypress test targeting.
|
|
26
|
+
*
|
|
27
|
+
* @returns {JSX.Element}
|
|
28
|
+
* - A JSX element containing the children formatted inside a grid.
|
|
29
|
+
*/
|
|
30
|
+
declare const Grid: ({ children, className, id, dataCy }: Readonly<GridProps>) => JSX.Element;
|
|
31
|
+
export default Grid;
|