@ensi-platform/admin-ui 0.8.0 → 0.8.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/dist/{Component-XnDMb714.js → Component-DU3MeOen.js} +2 -2
- package/dist/{Component-XnDMb714.js.map → Component-DU3MeOen.js.map} +1 -1
- package/dist/active-filters/index.js +1 -1
- package/dist/arrangement-settings/Component.d.ts +1 -1
- package/dist/arrangement-settings/Component.d.ts.map +1 -1
- package/dist/arrangement-settings/index.js +101 -90
- package/dist/arrangement-settings/index.js.map +1 -1
- package/dist/arrangement-settings/types.d.ts +2 -0
- package/dist/arrangement-settings/types.d.ts.map +1 -1
- package/dist/assets/Component16.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/combobox/index.js +1 -1
- package/dist/data-table/index.js +1 -1
- package/dist/filters/Component.d.ts +1 -4
- package/dist/filters/Component.d.ts.map +1 -1
- package/dist/filters/components/Body/index.d.ts +5 -0
- package/dist/filters/components/Body/index.d.ts.map +1 -0
- package/dist/filters/index.js +18 -66
- package/dist/filters/index.js.map +1 -1
- package/dist/filters/types.d.ts +4 -30
- package/dist/filters/types.d.ts.map +1 -1
- package/dist/grid-layout/Component.d.ts +9 -0
- package/dist/grid-layout/Component.d.ts.map +1 -0
- package/dist/grid-layout/components/Item/index.d.ts +5 -0
- package/dist/grid-layout/components/Item/index.d.ts.map +1 -0
- package/dist/grid-layout/index.d.ts.map +1 -0
- package/dist/grid-layout/index.js +97 -0
- package/dist/grid-layout/index.js.map +1 -0
- package/dist/grid-layout/types.d.ts +44 -0
- package/dist/grid-layout/types.d.ts.map +1 -0
- package/dist/grid-layout/utils.d.ts +6 -0
- package/dist/grid-layout/utils.d.ts.map +1 -0
- package/dist/{index-tPhlowOw.js → index-CdAE-ZaU.js} +2 -2
- package/dist/{index-tPhlowOw.js.map → index-CdAE-ZaU.js.map} +1 -1
- package/dist/multi-autocomplete/index.js +1 -1
- package/dist/multi-autocomplete-async/index.js +1 -1
- package/dist/multi-select/index.js +1 -1
- package/docs/design-language.md +2 -2
- package/docs/skills/SKILL.md +2 -2
- package/package.json +7 -7
- package/src/arrangement-settings/docs/Description.md +2 -1
- package/src/arrangement-settings/types.ts +2 -0
- package/src/filters/docs/Description.md +4 -18
- package/src/filters/docs/Example.md +10 -8
- package/src/filters/docs/cssVariables.ts +1 -3
- package/src/filters/types.ts +5 -36
- package/src/flex-layout/docs/Description.md +1 -1
- package/src/grid-layout/docs/Description.md +25 -0
- package/src/{grid → grid-layout}/docs/Example.md +6 -6
- package/src/grid-layout/docs/cssVariables.ts +13 -0
- package/src/grid-layout/types.ts +53 -0
- package/src/vertical-tabs/docs/cssVariables.ts +0 -3
- package/dist/filters/components/Cell/index.d.ts +0 -5
- package/dist/filters/components/Cell/index.d.ts.map +0 -1
- package/dist/filters/components/Grid/index.d.ts +0 -5
- package/dist/filters/components/Grid/index.d.ts.map +0 -1
- package/dist/filters/context.d.ts +0 -4
- package/dist/filters/context.d.ts.map +0 -1
- package/dist/filters/utils.d.ts +0 -5
- package/dist/filters/utils.d.ts.map +0 -1
- package/dist/grid/Component.d.ts +0 -9
- package/dist/grid/Component.d.ts.map +0 -1
- package/dist/grid/components/Item/index.d.ts +0 -5
- package/dist/grid/components/Item/index.d.ts.map +0 -1
- package/dist/grid/index.d.ts.map +0 -1
- package/dist/grid/index.js +0 -85
- package/dist/grid/index.js.map +0 -1
- package/dist/grid/types.d.ts +0 -44
- package/dist/grid/types.d.ts.map +0 -1
- package/dist/grid/utils.d.ts +0 -6
- package/dist/grid/utils.d.ts.map +0 -1
- package/src/grid/docs/Description.md +0 -26
- package/src/grid/docs/cssVariables.ts +0 -13
- package/src/grid/types.ts +0 -53
- /package/dist/{grid → grid-layout}/index.d.ts +0 -0
package/src/filters/types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef, type
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode, type Ref } from 'react';
|
|
2
2
|
|
|
3
3
|
import { type IDataTestIdProps } from '@ds/common';
|
|
4
4
|
|
|
@@ -12,37 +12,15 @@ export interface IFiltersOwnProps extends IDataTestIdProps {
|
|
|
12
12
|
export interface IFiltersProps
|
|
13
13
|
extends Omit<ComponentPropsWithRef<'div'>, keyof IFiltersOwnProps | 'children'>, IFiltersOwnProps {}
|
|
14
14
|
|
|
15
|
-
/** Grid context value. */
|
|
16
|
-
export interface IFiltersGridContextValue {
|
|
17
|
-
columns: number;
|
|
18
|
-
span: Record<string, number>;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/** Own / chrome props (not from DOM). */
|
|
22
|
-
export interface IFiltersGridOwnProps extends IDataTestIdProps {
|
|
23
|
-
children: ReactNode;
|
|
24
|
-
/** Equal tracks. The page sets this; there are no built-in breakpoints. */
|
|
25
|
-
columns?: number;
|
|
26
|
-
/** Field kind → column span. `default` is used when `kind` is missing. */
|
|
27
|
-
span?: Record<string, number>;
|
|
28
|
-
/** Ref to the grid (React 19 prop). */
|
|
29
|
-
ref?: Ref<HTMLDivElement>;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface IFiltersGridProps
|
|
33
|
-
extends Omit<ComponentPropsWithRef<'div'>, keyof IFiltersGridOwnProps | 'children'>, IFiltersGridOwnProps {}
|
|
34
|
-
|
|
35
15
|
/** Own / chrome props (not from DOM). */
|
|
36
|
-
export interface
|
|
16
|
+
export interface IFiltersBodyOwnProps extends IDataTestIdProps {
|
|
37
17
|
children: ReactNode;
|
|
38
|
-
/**
|
|
39
|
-
kind?: string;
|
|
40
|
-
/** Ref to the cell (React 19 prop). */
|
|
18
|
+
/** Ref to the body (React 19 prop). */
|
|
41
19
|
ref?: Ref<HTMLDivElement>;
|
|
42
20
|
}
|
|
43
21
|
|
|
44
|
-
export interface
|
|
45
|
-
extends Omit<ComponentPropsWithRef<'div'>, keyof
|
|
22
|
+
export interface IFiltersBodyProps
|
|
23
|
+
extends Omit<ComponentPropsWithRef<'div'>, keyof IFiltersBodyOwnProps | 'children'>, IFiltersBodyOwnProps {}
|
|
46
24
|
|
|
47
25
|
/** Own / chrome props (not from DOM). */
|
|
48
26
|
export interface IFiltersFooterOwnProps extends IDataTestIdProps {
|
|
@@ -53,12 +31,3 @@ export interface IFiltersFooterOwnProps extends IDataTestIdProps {
|
|
|
53
31
|
|
|
54
32
|
export interface IFiltersFooterProps
|
|
55
33
|
extends Omit<ComponentPropsWithRef<'div'>, keyof IFiltersFooterOwnProps | 'children'>, IFiltersFooterOwnProps {}
|
|
56
|
-
|
|
57
|
-
/** Inline span / column overrides. */
|
|
58
|
-
export interface IFiltersGridStyle extends CSSProperties {
|
|
59
|
-
'--aui-filters-columns'?: number | string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface IFiltersCellStyle extends CSSProperties {
|
|
63
|
-
'--aui-filters-span'?: number | string;
|
|
64
|
-
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Grid for fields and for column splits.
|
|
2
|
+
|
|
3
|
+
```tsx
|
|
4
|
+
import { GridLayout } from '@ensi-platform/admin-ui/grid-layout';
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
## When to use
|
|
8
|
+
|
|
9
|
+
- section fields in two or three columns
|
|
10
|
+
- one item across the whole grid (`col="full"`)
|
|
11
|
+
- a content-and-side split, by passing custom tracks in `cols`
|
|
12
|
+
- list filter fields inside `Filters.Body`
|
|
13
|
+
|
|
14
|
+
## API (short)
|
|
15
|
+
|
|
16
|
+
| Prop | Values | Default | Description |
|
|
17
|
+
| ------------ | ---------------------------------------------- | --------- | -------------------------------- |
|
|
18
|
+
| `cols` | `number` \| track list | — | columns |
|
|
19
|
+
| `gap` | `0` \| `4` \| `8` \| `12` \| `16` \| … \| `64` | `16` | gap, a spacing-scale step |
|
|
20
|
+
| `col` | `number` \| `full` | — | span when nested in another grid |
|
|
21
|
+
| `align` | `start` \| `center` \| `end` \| `stretch` | `stretch` | cross-axis alignment |
|
|
22
|
+
| `hidden` | `boolean` | `false` | removes the grid from layout |
|
|
23
|
+
| `dataTestId` | `string` | — | `data-test-id` for tests |
|
|
24
|
+
|
|
25
|
+
`GridLayout.Item` `col` is how many columns to take. `full` crosses the grid. A number in `cols` makes equal `minmax(0, 1fr)` columns. A number inside a track list is `Nfr`; a string is used as written (`minmax(0, 1fr)`).
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
## Example
|
|
2
2
|
|
|
3
3
|
```tsx
|
|
4
|
-
<
|
|
4
|
+
<GridLayout cols={2} gap={16}>
|
|
5
5
|
<FormInput name="last_name" label="Last name" />
|
|
6
6
|
<FormInput name="first_name" label="First name" />
|
|
7
|
-
<
|
|
7
|
+
<GridLayout.Item col="full">
|
|
8
8
|
<FormInput name="password" label="Password" />
|
|
9
|
-
</
|
|
10
|
-
</
|
|
9
|
+
</GridLayout.Item>
|
|
10
|
+
</GridLayout>
|
|
11
11
|
|
|
12
|
-
<
|
|
12
|
+
<GridLayout cols={['minmax(0, 1fr)', '16.25rem']} gap={0}>
|
|
13
13
|
<div>Main</div>
|
|
14
14
|
<aside>Aside</aside>
|
|
15
|
-
</
|
|
15
|
+
</GridLayout>
|
|
16
16
|
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** GridLayout CSS variables from semantic tokens (--aui-grid-layout-*). */
|
|
2
|
+
export const docsCssVariables = `/* CSS variables — GridLayout (--aui-grid-layout-*) */
|
|
3
|
+
--aui-grid-layout-gap-0: 0; /* no gap */
|
|
4
|
+
--aui-grid-layout-gap-4: var(--aui-spacing-4); /* gap 4 */
|
|
5
|
+
--aui-grid-layout-gap-8: var(--aui-spacing-8); /* gap 8 */
|
|
6
|
+
--aui-grid-layout-gap-12: var(--aui-spacing-12); /* gap 12 */
|
|
7
|
+
--aui-grid-layout-gap-16: var(--aui-spacing-16); /* gap 16 */
|
|
8
|
+
--aui-grid-layout-gap-20: var(--aui-spacing-20); /* gap 20 */
|
|
9
|
+
--aui-grid-layout-gap-24: var(--aui-spacing-24); /* gap 24 */
|
|
10
|
+
--aui-grid-layout-gap-32: var(--aui-spacing-32); /* gap 32 */
|
|
11
|
+
--aui-grid-layout-gap-40: var(--aui-spacing-40); /* gap 40 */
|
|
12
|
+
--aui-grid-layout-gap-48: var(--aui-spacing-48); /* gap 48 */
|
|
13
|
+
--aui-grid-layout-gap-64: var(--aui-spacing-64); /* gap 64 */`;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type CSSProperties, type ComponentPropsWithRef, type ReactNode, type Ref } from 'react';
|
|
2
|
+
|
|
3
|
+
import { type IDataTestIdProps } from '@ds/common';
|
|
4
|
+
|
|
5
|
+
/** Gap step. Matches the spacing scale. */
|
|
6
|
+
export type TGridLayoutGap = 0 | 4 | 8 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 64;
|
|
7
|
+
|
|
8
|
+
/** One track: a number is `Nfr`, a string is used as written. */
|
|
9
|
+
export type TGridLayoutTrack = number | string;
|
|
10
|
+
|
|
11
|
+
/** How many columns an item spans. */
|
|
12
|
+
export type TGridLayoutCol = number | 'full';
|
|
13
|
+
|
|
14
|
+
/** Cross-axis alignment of items. */
|
|
15
|
+
export type TGridLayoutAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
16
|
+
|
|
17
|
+
/** Own props for GridLayout. */
|
|
18
|
+
export interface IGridLayoutOwnProps extends IDataTestIdProps {
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
/** Equal columns, or an explicit track list. */
|
|
21
|
+
cols: number | TGridLayoutTrack[];
|
|
22
|
+
/** Gap between items. */
|
|
23
|
+
gap?: TGridLayoutGap;
|
|
24
|
+
/** Span when this grid sits inside another grid. */
|
|
25
|
+
col?: TGridLayoutCol;
|
|
26
|
+
/** Cross-axis alignment. */
|
|
27
|
+
align?: TGridLayoutAlign;
|
|
28
|
+
/** Removes the grid from the layout. */
|
|
29
|
+
hidden?: boolean;
|
|
30
|
+
/** Ref to the grid (React 19 prop). */
|
|
31
|
+
ref?: Ref<HTMLDivElement>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface IGridLayoutProps
|
|
35
|
+
extends Omit<ComponentPropsWithRef<'div'>, keyof IGridLayoutOwnProps | 'children'>, IGridLayoutOwnProps {}
|
|
36
|
+
|
|
37
|
+
/** Own props for GridLayout.Item. */
|
|
38
|
+
export interface IGridLayoutItemOwnProps extends IDataTestIdProps {
|
|
39
|
+
children: ReactNode;
|
|
40
|
+
/** Column span. `full` crosses the whole grid. */
|
|
41
|
+
col?: TGridLayoutCol;
|
|
42
|
+
/** Ref to the item (React 19 prop). */
|
|
43
|
+
ref?: Ref<HTMLDivElement>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface IGridLayoutItemProps
|
|
47
|
+
extends Omit<ComponentPropsWithRef<'div'>, keyof IGridLayoutItemOwnProps | 'children'>, IGridLayoutItemOwnProps {}
|
|
48
|
+
|
|
49
|
+
/** Inline template written by GridLayout. */
|
|
50
|
+
export interface IGridLayoutStyle extends CSSProperties {
|
|
51
|
+
'--aui-grid-layout-template'?: string;
|
|
52
|
+
'--aui-grid-layout-col'?: string;
|
|
53
|
+
}
|
|
@@ -11,9 +11,6 @@ export const docsCssVariables = `/* CSS variables — VerticalTabs (--aui-vertic
|
|
|
11
11
|
--aui-vertical-tabs-gap-sm: var(--aui-spacing-4); /* sm item gap */
|
|
12
12
|
--aui-vertical-tabs-gap-md: var(--aui-spacing-4); /* md item gap */
|
|
13
13
|
--aui-vertical-tabs-gap-lg: var(--aui-spacing-8); /* lg item gap */
|
|
14
|
-
--aui-vertical-tabs-h-sm: var(--aui-spacing-32); /* height sm */
|
|
15
|
-
--aui-vertical-tabs-h-md: var(--aui-spacing-40); /* height md */
|
|
16
|
-
--aui-vertical-tabs-h-lg: var(--aui-spacing-48); /* height lg */
|
|
17
14
|
--aui-vertical-tabs-pad-y-sm: var(--aui-spacing-4); /* padding-y sm */
|
|
18
15
|
--aui-vertical-tabs-pad-x-sm: var(--aui-spacing-8); /* padding-x sm */
|
|
19
16
|
--aui-vertical-tabs-pad-y-md: var(--aui-spacing-8); /* padding-y md */
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IFiltersCellProps } from '../../types';
|
|
2
|
-
export declare const FiltersCell: (({ ref, children, kind, className, dataTestId, style, ...props }: IFiltersCellProps) => import("react").JSX.Element) & {
|
|
3
|
-
displayName?: string;
|
|
4
|
-
};
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/filters/components/Cell/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,iBAAiB,EAA0B,MAAM,aAAa,CAAC;AAK7E,eAAO,MAAM,WAAW,qEAC8C,iBAAiB;;CAmBtF,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IFiltersGridProps } from '../../types';
|
|
2
|
-
export declare const FiltersGrid: (({ ref, children, columns, span, className, dataTestId, style, ...props }: IFiltersGridProps) => import("react").JSX.Element) & {
|
|
3
|
-
displayName?: string;
|
|
4
|
-
};
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/filters/components/Grid/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,iBAAiB,EAA0B,MAAM,aAAa,CAAC;AAK7E,eAAO,MAAM,WAAW,8EACgE,iBAAiB;;CAsBxG,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/filters/context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAOxD,eAAO,MAAM,mBAAmB,oDAA8B,CAAC;AAE/D,eAAO,MAAM,cAAc,gCAAuC,CAAC"}
|
package/dist/filters/utils.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/** Column span for a filter cell. Unknown kinds use `default`, then 1. Clamped to `1…columns`. */
|
|
2
|
-
export declare const resolveSpan: (kind: string | undefined, span: Record<string, number> | undefined, columns: number) => number;
|
|
3
|
-
/** Grid column count. Invalid values become 4; zero and fractions collapse to at least 1. */
|
|
4
|
-
export declare const resolveColumns: (columns: number | undefined) => number;
|
|
5
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/filters/utils.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,GAAG,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,EAAE,SAAS,MAAM,WAO9G,CAAC;AAEF,6FAA6F;AAC7F,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,GAAG,SAAS,WAMzD,CAAC"}
|
package/dist/grid/Component.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IGridProps } from './types';
|
|
2
|
-
export declare const Grid: (({ ref, children, cols, gap, col, align, hidden, className, dataTestId, style, ...props }: IGridProps) => import("react").JSX.Element) & {
|
|
3
|
-
displayName?: string;
|
|
4
|
-
} & {
|
|
5
|
-
Item: (({ ref, children, col, className, dataTestId, style, ...props }: import('./types').IGridItemProps) => import("react").JSX.Element) & {
|
|
6
|
-
displayName?: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=Component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../src/grid/Component.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,UAAU,EAAkC,MAAM,SAAS,CAAC;AA+D1E,eAAO,MAAM,IAAI,8FAxBV,UAAU;;;;;;CAwB8C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/grid/components/Item/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAAmB,MAAM,aAAa,CAAC;AAKnE,eAAO,MAAM,QAAQ,oEAA+E,cAAc;;CAWhH,CAAC"}
|
package/dist/grid/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/grid/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
package/dist/grid/index.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import u from "classnames";
|
|
3
|
-
import { s as _ } from "../index-h8z54aFR.js";
|
|
4
|
-
import '../assets/index17.css';const G = (a) => typeof a == "number" ? `repeat(${a}, minmax(0, 1fr))` : a.map((e) => typeof e == "number" ? `${e}fr` : e).join(" "), d = (a) => a === "full" ? "1 / -1" : typeof a == "number" ? `span ${a}` : "auto", $ = "aub_styles-module_root_8c3c3", N = {
|
|
5
|
-
root: $
|
|
6
|
-
}, c = _(({ ref: a, children: e, col: s, className: o, dataTestId: p, style: r, ...n }) => {
|
|
7
|
-
const g = {
|
|
8
|
-
...r,
|
|
9
|
-
"--aui-grid-col": d(s)
|
|
10
|
-
};
|
|
11
|
-
return /* @__PURE__ */ l("div", { ...n, ref: a, className: u(N.root, o), style: g, "data-test-id": p, children: e });
|
|
12
|
-
});
|
|
13
|
-
c.displayName = "Grid.Item";
|
|
14
|
-
const j = "aub_styles-module_root_4fb06", x = "aub_styles-module_gap0_88b20", C = "aub_styles-module_gap4_42cf0", I = "aub_styles-module_gap8_4d5fd", h = "aub_styles-module_gap12_c7a16", v = "aub_styles-module_gap16_06417", R = "aub_styles-module_gap20_06651", S = "aub_styles-module_gap24_51b8f", O = "aub_styles-module_gap32_a9345", T = "aub_styles-module_gap40_5a33c", q = "aub_styles-module_gap48_e3bac", w = "aub_styles-module_gap64_831e6", z = "aub_styles-module_start_4afcd", A = "aub_styles-module_center_5c5fd", B = "aub_styles-module_end_b41e4", t = {
|
|
15
|
-
root: j,
|
|
16
|
-
gap0: x,
|
|
17
|
-
gap4: C,
|
|
18
|
-
gap8: I,
|
|
19
|
-
gap12: h,
|
|
20
|
-
gap16: v,
|
|
21
|
-
gap20: R,
|
|
22
|
-
gap24: S,
|
|
23
|
-
gap32: O,
|
|
24
|
-
gap40: T,
|
|
25
|
-
gap48: q,
|
|
26
|
-
gap64: w,
|
|
27
|
-
start: z,
|
|
28
|
-
center: A,
|
|
29
|
-
end: B
|
|
30
|
-
}, D = {
|
|
31
|
-
0: t.gap0,
|
|
32
|
-
4: t.gap4,
|
|
33
|
-
8: t.gap8,
|
|
34
|
-
12: t.gap12,
|
|
35
|
-
16: t.gap16,
|
|
36
|
-
20: t.gap20,
|
|
37
|
-
24: t.gap24,
|
|
38
|
-
32: t.gap32,
|
|
39
|
-
40: t.gap40,
|
|
40
|
-
48: t.gap48,
|
|
41
|
-
64: t.gap64
|
|
42
|
-
}, E = {
|
|
43
|
-
start: t.start,
|
|
44
|
-
center: t.center,
|
|
45
|
-
end: t.end,
|
|
46
|
-
stretch: null
|
|
47
|
-
}, m = _(
|
|
48
|
-
({
|
|
49
|
-
ref: a,
|
|
50
|
-
children: e,
|
|
51
|
-
cols: s,
|
|
52
|
-
gap: o = 16,
|
|
53
|
-
col: p,
|
|
54
|
-
align: r = "stretch",
|
|
55
|
-
hidden: n = !1,
|
|
56
|
-
className: g,
|
|
57
|
-
dataTestId: i,
|
|
58
|
-
style: y,
|
|
59
|
-
...b
|
|
60
|
-
}) => {
|
|
61
|
-
const f = {
|
|
62
|
-
...y,
|
|
63
|
-
"--aui-grid-template": G(s),
|
|
64
|
-
"--aui-grid-col": d(p)
|
|
65
|
-
};
|
|
66
|
-
return /* @__PURE__ */ l(
|
|
67
|
-
"div",
|
|
68
|
-
{
|
|
69
|
-
...b,
|
|
70
|
-
ref: a,
|
|
71
|
-
hidden: n,
|
|
72
|
-
className: u(t.root, D[o], E[r], g),
|
|
73
|
-
style: f,
|
|
74
|
-
"data-test-id": i,
|
|
75
|
-
children: e
|
|
76
|
-
}
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
m.displayName = "Grid";
|
|
81
|
-
const K = Object.assign(m, { Item: c });
|
|
82
|
-
export {
|
|
83
|
-
K as Grid
|
|
84
|
-
};
|
|
85
|
-
//# sourceMappingURL=index.js.map
|
package/dist/grid/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/grid/utils.ts","../../src/grid/components/Item/index.tsx","../../src/grid/Component.tsx"],"sourcesContent":["import { type TGridCol, type TGridTrack } from './types';\n\n/** Equal tracks, or an explicit list (`2` → two `1fr`, `2` inside a list → `2fr`). */\nexport const toGridTemplate = (cols: number | TGridTrack[]): string => {\n if (typeof cols === 'number') {\n return `repeat(${cols}, minmax(0, 1fr))`;\n }\n\n return cols.map(track => (typeof track === 'number' ? `${track}fr` : track)).join(' ');\n};\n\n/** Item span. `full` crosses every column. */\nexport const toGridColumn = (col?: TGridCol): string => {\n if (col === 'full') {\n return '1 / -1';\n }\n\n if (typeof col === 'number') {\n return `span ${col}`;\n }\n\n return 'auto';\n};\n","import cn from 'classnames';\n\nimport { supportRef } from '@ds/common/support-ref';\n\nimport { type IGridItemProps, type IGridStyle } from '../../types';\nimport { toGridColumn } from '../../utils';\n\nimport styles from './styles.module.css';\n\nexport const GridItem = supportRef(({ ref, children, col, className, dataTestId, style, ...props }: IGridItemProps) => {\n const itemStyle: IGridStyle = {\n ...style,\n '--aui-grid-col': toGridColumn(col),\n };\n\n return (\n <div {...props} ref={ref} className={cn(styles.root, className)} style={itemStyle} data-test-id={dataTestId}>\n {children}\n </div>\n );\n});\n\nGridItem.displayName = 'Grid.Item';\n","import cn from 'classnames';\n\nimport { supportRef } from '@ds/common/support-ref';\n\nimport { GridItem } from './components/Item';\nimport { type IGridProps, type IGridStyle, type TGridGap } from './types';\nimport { toGridColumn, toGridTemplate } from './utils';\n\nimport styles from './styles.module.css';\n\nconst gapClass: Record<TGridGap, string> = {\n 0: styles.gap0,\n 4: styles.gap4,\n 8: styles.gap8,\n 12: styles.gap12,\n 16: styles.gap16,\n 20: styles.gap20,\n 24: styles.gap24,\n 32: styles.gap32,\n 40: styles.gap40,\n 48: styles.gap48,\n 64: styles.gap64,\n};\n\nconst alignClass = {\n start: styles.start,\n center: styles.center,\n end: styles.end,\n stretch: null,\n} as const;\n\nconst GridRoot = supportRef(\n ({\n ref,\n children,\n cols,\n gap = 16,\n col,\n align = 'stretch',\n hidden = false,\n className,\n dataTestId,\n style,\n ...props\n }: IGridProps) => {\n const gridStyle: IGridStyle = {\n ...style,\n '--aui-grid-template': toGridTemplate(cols),\n '--aui-grid-col': toGridColumn(col),\n };\n\n return (\n <div\n {...props}\n ref={ref}\n hidden={hidden}\n className={cn(styles.root, gapClass[gap], alignClass[align], className)}\n style={gridStyle}\n data-test-id={dataTestId}\n >\n {children}\n </div>\n );\n }\n);\n\nGridRoot.displayName = 'Grid';\n\nexport const Grid = Object.assign(GridRoot, { Item: GridItem });\n"],"names":["toGridTemplate","cols","track","toGridColumn","col","GridItem","supportRef","ref","children","className","dataTestId","style","props","itemStyle","jsx","cn","styles","gapClass","alignClass","GridRoot","gap","align","hidden","gridStyle","Grid"],"mappings":";;;AAGO,MAAMA,IAAiB,CAACC,MACvB,OAAOA,KAAS,WACT,UAAUA,CAAI,sBAGlBA,EAAK,IAAI,CAAAC,MAAU,OAAOA,KAAU,WAAW,GAAGA,CAAK,OAAOA,CAAM,EAAE,KAAK,GAAG,GAI5EC,IAAe,CAACC,MACrBA,MAAQ,SACD,WAGP,OAAOA,KAAQ,WACR,QAAQA,CAAG,KAGf;;GCZEC,IAAWC,EAAW,CAAC,EAAE,KAAAC,GAAK,UAAAC,GAAU,KAAAJ,GAAK,WAAAK,GAAW,YAAAC,GAAY,OAAAC,GAAO,GAAGC,EAAA,MAA4B;AACnH,QAAMC,IAAwB;AAAA,IAC1B,GAAGF;AAAA,IACH,kBAAkBR,EAAaC,CAAG;AAAA,EAAA;AAGtC,SACI,gBAAAU,EAAC,OAAA,EAAK,GAAGF,GAAO,KAAAL,GAAU,WAAWQ,EAAGC,EAAO,MAAMP,CAAS,GAAG,OAAOI,GAAW,gBAAcH,GAC5F,UAAAF,GACL;AAER,CAAC;AAEDH,EAAS,cAAc;;;;;;;;;;;;;;;;;GCZjBY,IAAqC;AAAA,EACvC,GAAGD,EAAO;AAAA,EACV,GAAGA,EAAO;AAAA,EACV,GAAGA,EAAO;AAAA,EACV,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AACf,GAEME,IAAa;AAAA,EACf,OAAOF,EAAO;AAAA,EACd,QAAQA,EAAO;AAAA,EACf,KAAKA,EAAO;AAAA,EACZ,SAAS;AACb,GAEMG,IAAWb;AAAA,EACb,CAAC;AAAA,IACG,KAAAC;AAAA,IACA,UAAAC;AAAA,IACA,MAAAP;AAAA,IACA,KAAAmB,IAAM;AAAA,IACN,KAAAhB;AAAA,IACA,OAAAiB,IAAQ;AAAA,IACR,QAAAC,IAAS;AAAA,IACT,WAAAb;AAAA,IACA,YAAAC;AAAA,IACA,OAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,MACW;AACd,UAAMW,IAAwB;AAAA,MAC1B,GAAGZ;AAAA,MACH,uBAAuBX,EAAeC,CAAI;AAAA,MAC1C,kBAAkBE,EAAaC,CAAG;AAAA,IAAA;AAGtC,WACI,gBAAAU;AAAA,MAAC;AAAA,MAAA;AAAA,QACI,GAAGF;AAAA,QACJ,KAAAL;AAAA,QACA,QAAAe;AAAA,QACA,WAAWP,EAAGC,EAAO,MAAMC,EAASG,CAAG,GAAGF,EAAWG,CAAK,GAAGZ,CAAS;AAAA,QACtE,OAAOc;AAAA,QACP,gBAAcb;AAAA,QAEb,UAAAF;AAAA,MAAA;AAAA,IAAA;AAAA,EAGb;AACJ;AAEAW,EAAS,cAAc;AAEhB,MAAMK,IAAO,OAAO,OAAOL,GAAU,EAAE,MAAMd,GAAU;"}
|
package/dist/grid/types.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ComponentPropsWithRef, ReactNode, Ref } from 'react';
|
|
2
|
-
import { IDataTestIdProps } from '../ds/common/index.js';
|
|
3
|
-
/** Gap step. Matches the spacing scale. */
|
|
4
|
-
export type TGridGap = 0 | 4 | 8 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 64;
|
|
5
|
-
/** One track: a number is `Nfr`, a string is used as written. */
|
|
6
|
-
export type TGridTrack = number | string;
|
|
7
|
-
/** How many columns an item spans. */
|
|
8
|
-
export type TGridCol = number | 'full';
|
|
9
|
-
/** Cross-axis alignment of items. */
|
|
10
|
-
export type TGridAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
11
|
-
/** Own props for Grid. */
|
|
12
|
-
export interface IGridOwnProps extends IDataTestIdProps {
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
/** Equal columns, or an explicit track list. */
|
|
15
|
-
cols: number | TGridTrack[];
|
|
16
|
-
/** Gap between items. */
|
|
17
|
-
gap?: TGridGap;
|
|
18
|
-
/** Span when this grid sits inside another grid. */
|
|
19
|
-
col?: TGridCol;
|
|
20
|
-
/** Cross-axis alignment. */
|
|
21
|
-
align?: TGridAlign;
|
|
22
|
-
/** Removes the grid from the layout. */
|
|
23
|
-
hidden?: boolean;
|
|
24
|
-
/** Ref to the grid (React 19 prop). */
|
|
25
|
-
ref?: Ref<HTMLDivElement>;
|
|
26
|
-
}
|
|
27
|
-
export interface IGridProps extends Omit<ComponentPropsWithRef<'div'>, keyof IGridOwnProps | 'children'>, IGridOwnProps {
|
|
28
|
-
}
|
|
29
|
-
/** Own props for Grid.Item. */
|
|
30
|
-
export interface IGridItemOwnProps extends IDataTestIdProps {
|
|
31
|
-
children: ReactNode;
|
|
32
|
-
/** Column span. `full` crosses the whole grid. */
|
|
33
|
-
col?: TGridCol;
|
|
34
|
-
/** Ref to the item (React 19 prop). */
|
|
35
|
-
ref?: Ref<HTMLDivElement>;
|
|
36
|
-
}
|
|
37
|
-
export interface IGridItemProps extends Omit<ComponentPropsWithRef<'div'>, keyof IGridItemOwnProps | 'children'>, IGridItemOwnProps {
|
|
38
|
-
}
|
|
39
|
-
/** Inline template written by Grid. */
|
|
40
|
-
export interface IGridStyle extends CSSProperties {
|
|
41
|
-
'--aui-grid-template'?: string;
|
|
42
|
-
'--aui-grid-col'?: string;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/grid/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/grid/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,qBAAqB,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjG,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,2CAA2C;AAC3C,MAAM,MAAM,QAAQ,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEzE,iEAAiE;AACjE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzC,sCAAsC;AACtC,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvC,qCAAqC;AACrC,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;AAEhE,0BAA0B;AAC1B,MAAM,WAAW,aAAc,SAAQ,gBAAgB;IACnD,QAAQ,EAAE,SAAS,CAAC;IACpB,gDAAgD;IAChD,IAAI,EAAE,MAAM,GAAG,UAAU,EAAE,CAAC;IAC5B,yBAAyB;IACzB,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,oDAAoD;IACpD,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,4BAA4B;IAC5B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,wCAAwC;IACxC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uCAAuC;IACvC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC7B;AAED,MAAM,WAAW,UACb,SAAQ,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,MAAM,aAAa,GAAG,UAAU,CAAC,EAAE,aAAa;CAAG;AAElG,+BAA+B;AAC/B,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACvD,QAAQ,EAAE,SAAS,CAAC;IACpB,kDAAkD;IAClD,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,uCAAuC;IACvC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC7B;AAED,MAAM,WAAW,cACb,SAAQ,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,MAAM,iBAAiB,GAAG,UAAU,CAAC,EAAE,iBAAiB;CAAG;AAE1G,uCAAuC;AACvC,MAAM,WAAW,UAAW,SAAQ,aAAa;IAC7C,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
package/dist/grid/utils.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { TGridCol, TGridTrack } from './types';
|
|
2
|
-
/** Equal tracks, or an explicit list (`2` → two `1fr`, `2` inside a list → `2fr`). */
|
|
3
|
-
export declare const toGridTemplate: (cols: number | TGridTrack[]) => string;
|
|
4
|
-
/** Item span. `full` crosses every column. */
|
|
5
|
-
export declare const toGridColumn: (col?: TGridCol) => string;
|
|
6
|
-
//# sourceMappingURL=utils.d.ts.map
|
package/dist/grid/utils.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/grid/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAEzD,sFAAsF;AACtF,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,GAAG,UAAU,EAAE,KAAG,MAM5D,CAAC;AAEF,8CAA8C;AAC9C,eAAO,MAAM,YAAY,GAAI,MAAM,QAAQ,KAAG,MAU7C,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
Grid for fields and for column splits.
|
|
2
|
-
|
|
3
|
-
```tsx
|
|
4
|
-
import { Grid } from '@ensi-platform/admin-ui/grid';
|
|
5
|
-
```
|
|
6
|
-
|
|
7
|
-
## When to use
|
|
8
|
-
|
|
9
|
-
- section fields in two or three columns
|
|
10
|
-
- one item across the whole grid (`col="full"`)
|
|
11
|
-
- a content-and-side split, by passing custom tracks in `cols`
|
|
12
|
-
|
|
13
|
-
The list filter grid is `Filters.Grid`.
|
|
14
|
-
|
|
15
|
-
## API (short)
|
|
16
|
-
|
|
17
|
-
| Prop | Values | Default | Description |
|
|
18
|
-
| ------------ | --------------------------------------------- | --------- | ------------------------------ |
|
|
19
|
-
| `cols` | `number` \| track list | — | columns |
|
|
20
|
-
| `gap` | `0` \| `4` \| `8` \| `12` \| `16` \| … \| `64` | `16` | gap, a spacing-scale step |
|
|
21
|
-
| `col` | `number` \| `full` | — | span when nested in another grid |
|
|
22
|
-
| `align` | `start` \| `center` \| `end` \| `stretch` | `stretch` | cross-axis alignment |
|
|
23
|
-
| `hidden` | `boolean` | `false` | removes the grid from layout |
|
|
24
|
-
| `dataTestId` | `string` | — | `data-test-id` for tests |
|
|
25
|
-
|
|
26
|
-
`Grid.Item` `col` is how many columns to take. `full` crosses the grid. A number in `cols` makes equal `minmax(0, 1fr)` columns. A number inside a track list is `Nfr`; a string is used as written (`minmax(0, 1fr)`).
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** Grid CSS variables from semantic tokens (--aui-grid-*). */
|
|
2
|
-
export const docsCssVariables = `/* CSS variables — Grid (--aui-grid-*) */
|
|
3
|
-
--aui-grid-gap-0: 0; /* no gap */
|
|
4
|
-
--aui-grid-gap-4: var(--aui-spacing-4); /* gap 4 */
|
|
5
|
-
--aui-grid-gap-8: var(--aui-spacing-8); /* gap 8 */
|
|
6
|
-
--aui-grid-gap-12: var(--aui-spacing-12); /* gap 12 */
|
|
7
|
-
--aui-grid-gap-16: var(--aui-spacing-16); /* gap 16 */
|
|
8
|
-
--aui-grid-gap-20: var(--aui-spacing-20); /* gap 20 */
|
|
9
|
-
--aui-grid-gap-24: var(--aui-spacing-24); /* gap 24 */
|
|
10
|
-
--aui-grid-gap-32: var(--aui-spacing-32); /* gap 32 */
|
|
11
|
-
--aui-grid-gap-40: var(--aui-spacing-40); /* gap 40 */
|
|
12
|
-
--aui-grid-gap-48: var(--aui-spacing-48); /* gap 48 */
|
|
13
|
-
--aui-grid-gap-64: var(--aui-spacing-64); /* gap 64 */`;
|
package/src/grid/types.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { type CSSProperties, type ComponentPropsWithRef, type ReactNode, type Ref } from 'react';
|
|
2
|
-
|
|
3
|
-
import { type IDataTestIdProps } from '@ds/common';
|
|
4
|
-
|
|
5
|
-
/** Gap step. Matches the spacing scale. */
|
|
6
|
-
export type TGridGap = 0 | 4 | 8 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 64;
|
|
7
|
-
|
|
8
|
-
/** One track: a number is `Nfr`, a string is used as written. */
|
|
9
|
-
export type TGridTrack = number | string;
|
|
10
|
-
|
|
11
|
-
/** How many columns an item spans. */
|
|
12
|
-
export type TGridCol = number | 'full';
|
|
13
|
-
|
|
14
|
-
/** Cross-axis alignment of items. */
|
|
15
|
-
export type TGridAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
16
|
-
|
|
17
|
-
/** Own props for Grid. */
|
|
18
|
-
export interface IGridOwnProps extends IDataTestIdProps {
|
|
19
|
-
children: ReactNode;
|
|
20
|
-
/** Equal columns, or an explicit track list. */
|
|
21
|
-
cols: number | TGridTrack[];
|
|
22
|
-
/** Gap between items. */
|
|
23
|
-
gap?: TGridGap;
|
|
24
|
-
/** Span when this grid sits inside another grid. */
|
|
25
|
-
col?: TGridCol;
|
|
26
|
-
/** Cross-axis alignment. */
|
|
27
|
-
align?: TGridAlign;
|
|
28
|
-
/** Removes the grid from the layout. */
|
|
29
|
-
hidden?: boolean;
|
|
30
|
-
/** Ref to the grid (React 19 prop). */
|
|
31
|
-
ref?: Ref<HTMLDivElement>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface IGridProps
|
|
35
|
-
extends Omit<ComponentPropsWithRef<'div'>, keyof IGridOwnProps | 'children'>, IGridOwnProps {}
|
|
36
|
-
|
|
37
|
-
/** Own props for Grid.Item. */
|
|
38
|
-
export interface IGridItemOwnProps extends IDataTestIdProps {
|
|
39
|
-
children: ReactNode;
|
|
40
|
-
/** Column span. `full` crosses the whole grid. */
|
|
41
|
-
col?: TGridCol;
|
|
42
|
-
/** Ref to the item (React 19 prop). */
|
|
43
|
-
ref?: Ref<HTMLDivElement>;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface IGridItemProps
|
|
47
|
-
extends Omit<ComponentPropsWithRef<'div'>, keyof IGridItemOwnProps | 'children'>, IGridItemOwnProps {}
|
|
48
|
-
|
|
49
|
-
/** Inline template written by Grid. */
|
|
50
|
-
export interface IGridStyle extends CSSProperties {
|
|
51
|
-
'--aui-grid-template'?: string;
|
|
52
|
-
'--aui-grid-col'?: string;
|
|
53
|
-
}
|
|
File without changes
|