meticulous-ui 3.8.4 → 3.8.5
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/index.d.ts +80 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -539,6 +539,86 @@ export interface SwitchProps {
|
|
|
539
539
|
|
|
540
540
|
export declare const Switch: React.FC<SwitchProps>;
|
|
541
541
|
|
|
542
|
+
// ---------------------------------------------------------------------------
|
|
543
|
+
// Grid
|
|
544
|
+
// ---------------------------------------------------------------------------
|
|
545
|
+
|
|
546
|
+
type GridAlignItems = 'start' | 'end' | 'center' | 'stretch' | 'baseline';
|
|
547
|
+
type GridJustifyItems = 'start' | 'end' | 'center' | 'stretch';
|
|
548
|
+
type GridAlignContent =
|
|
549
|
+
| 'start'
|
|
550
|
+
| 'end'
|
|
551
|
+
| 'center'
|
|
552
|
+
| 'stretch'
|
|
553
|
+
| 'space-between'
|
|
554
|
+
| 'space-around'
|
|
555
|
+
| 'space-evenly';
|
|
556
|
+
type GridJustifyContent =
|
|
557
|
+
| 'start'
|
|
558
|
+
| 'end'
|
|
559
|
+
| 'center'
|
|
560
|
+
| 'stretch'
|
|
561
|
+
| 'space-between'
|
|
562
|
+
| 'space-around'
|
|
563
|
+
| 'space-evenly';
|
|
564
|
+
type GridAutoFlow = 'row' | 'column' | 'dense' | 'row dense' | 'column dense';
|
|
565
|
+
|
|
566
|
+
export interface GridProps extends React.HTMLAttributes<HTMLElement> {
|
|
567
|
+
as?: React.ElementType;
|
|
568
|
+
/** Number of equal columns or a CSS grid-template-columns value */
|
|
569
|
+
columns?: number | string;
|
|
570
|
+
/** Number of equal rows or a CSS grid-template-rows value */
|
|
571
|
+
rows?: number | string;
|
|
572
|
+
/** Template areas — each string is one row, e.g. ['header header', 'sidebar main'] */
|
|
573
|
+
areas?: string[];
|
|
574
|
+
/** Gap between all cells */
|
|
575
|
+
gap?: string;
|
|
576
|
+
/** Column-only gap */
|
|
577
|
+
columnGap?: string;
|
|
578
|
+
/** Row-only gap */
|
|
579
|
+
rowGap?: string;
|
|
580
|
+
/** Enables responsive auto-fit columns: repeat(auto-fit, minmax(value, 1fr)) */
|
|
581
|
+
minChildWidth?: string;
|
|
582
|
+
autoFlow?: GridAutoFlow;
|
|
583
|
+
autoColumns?: string;
|
|
584
|
+
autoRows?: string;
|
|
585
|
+
alignItems?: GridAlignItems;
|
|
586
|
+
justifyItems?: GridJustifyItems;
|
|
587
|
+
alignContent?: GridAlignContent;
|
|
588
|
+
justifyContent?: GridJustifyContent;
|
|
589
|
+
/** Render as inline-grid instead of grid */
|
|
590
|
+
inline?: boolean;
|
|
591
|
+
children?: React.ReactNode;
|
|
592
|
+
'aria-label'?: string;
|
|
593
|
+
'aria-labelledby'?: string;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
export interface GridItemProps extends React.HTMLAttributes<HTMLElement> {
|
|
597
|
+
as?: React.ElementType;
|
|
598
|
+
/** grid-column shorthand, e.g. '1 / 3' */
|
|
599
|
+
column?: string;
|
|
600
|
+
columnStart?: number | string;
|
|
601
|
+
columnEnd?: number | string;
|
|
602
|
+
/** Shortcut for span N columns */
|
|
603
|
+
columnSpan?: number;
|
|
604
|
+
/** grid-row shorthand, e.g. '1 / 3' */
|
|
605
|
+
row?: string;
|
|
606
|
+
rowStart?: number | string;
|
|
607
|
+
rowEnd?: number | string;
|
|
608
|
+
/** Shortcut for span N rows */
|
|
609
|
+
rowSpan?: number;
|
|
610
|
+
/** Named grid-area defined on the parent Grid */
|
|
611
|
+
area?: string;
|
|
612
|
+
alignSelf?: 'auto' | GridAlignItems;
|
|
613
|
+
justifySelf?: 'auto' | GridJustifyItems;
|
|
614
|
+
/** place-self shorthand */
|
|
615
|
+
placeSelf?: string;
|
|
616
|
+
children?: React.ReactNode;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
export declare const Grid: React.FC<GridProps>;
|
|
620
|
+
export declare const GridItem: React.FC<GridItemProps>;
|
|
621
|
+
|
|
542
622
|
// ---------------------------------------------------------------------------
|
|
543
623
|
// Hooks
|
|
544
624
|
// ---------------------------------------------------------------------------
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meticulous-ui",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.5",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"description": "A comprehensive React UI component library with a wide range of customizable components, icons, colors, and utilities for building modern web applications.",
|
|
6
6
|
"types": "./index.d.ts",
|