@moneyforward/mfui-components 3.6.0 → 3.8.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/src/DataGrid/index.d.ts +16 -8
- package/dist/src/DataGrid/index.js +9 -1
- package/dist/src/{DataGrid/DataGrid.d.ts → DataTable/DataTable.d.ts} +94 -82
- package/dist/src/{DataGrid/DataGrid.js → DataTable/DataTable.js} +120 -97
- package/dist/src/{DataGrid/DataGrid.types.d.ts → DataTable/DataTable.types.d.ts} +11 -11
- package/dist/src/DataTable/DataTableBody/DataTableBody.d.ts +1 -0
- package/dist/src/DataTable/DataTableBody/DataTableBody.js +19 -0
- package/dist/src/{DataGrid/DataGridBody/DataGridBody.types.d.ts → DataTable/DataTableBody/DataTableBody.types.d.ts} +2 -2
- package/dist/src/DataTable/DataTableBody/index.d.ts +2 -0
- package/dist/src/DataTable/DataTableBody/index.js +1 -0
- package/dist/src/DataTable/DataTableCell/DataTableCell.d.ts +2 -0
- package/dist/src/{DataGrid/DataGridCell/DataGridCell.js → DataTable/DataTableCell/DataTableCell.js} +20 -13
- package/dist/src/{DataGrid/DataGridCell/DataGridCell.types.d.ts → DataTable/DataTableCell/DataTableCell.types.d.ts} +8 -8
- package/dist/src/DataTable/DataTableCell/index.d.ts +2 -0
- package/dist/src/DataTable/DataTableCell/index.js +1 -0
- package/dist/src/DataTable/DataTableHeader/DataTableHeader.d.ts +1 -0
- package/dist/src/DataTable/DataTableHeader/DataTableHeader.js +12 -0
- package/dist/src/{DataGrid/DataGridHeader/DataGridHeader.types.d.ts → DataTable/DataTableHeader/DataTableHeader.types.d.ts} +2 -2
- package/dist/src/DataTable/DataTableHeader/index.d.ts +2 -0
- package/dist/src/DataTable/DataTableHeader/index.js +1 -0
- package/dist/src/DataTable/DataTableHeaderCell/DataTableHeaderCell.d.ts +2 -0
- package/dist/src/DataTable/DataTableHeaderCell/DataTableHeaderCell.js +58 -0
- package/dist/src/{DataGrid/DataGridHeaderCell/DataGridHeaderCell.types.d.ts → DataTable/DataTableHeaderCell/DataTableHeaderCell.types.d.ts} +6 -6
- package/dist/src/DataTable/DataTableHeaderCell/index.d.ts +2 -0
- package/dist/src/DataTable/DataTableHeaderCell/index.js +1 -0
- package/dist/src/DataTable/DataTableHeaderRow/DataTableHeaderRow.d.ts +2 -0
- package/dist/src/DataTable/DataTableHeaderRow/DataTableHeaderRow.js +31 -0
- package/dist/src/{DataGrid/DataGridHeaderRow/DataGridHeaderRow.types.d.ts → DataTable/DataTableHeaderRow/DataTableHeaderRow.types.d.ts} +3 -3
- package/dist/src/DataTable/DataTableHeaderRow/index.d.ts +2 -0
- package/dist/src/DataTable/DataTableHeaderRow/index.js +1 -0
- package/dist/src/DataTable/DataTableProvider.d.ts +27 -0
- package/dist/src/{DataGrid/DataGridProvider.js → DataTable/DataTableProvider.js} +9 -9
- package/dist/src/DataTable/DataTableRow/DataTableRow.d.ts +2 -0
- package/dist/src/{DataGrid/DataGridRow/DataGridRow.js → DataTable/DataTableRow/DataTableRow.js} +11 -10
- package/dist/src/{DataGrid/DataGridRow/DataGridRow.types.d.ts → DataTable/DataTableRow/DataTableRow.types.d.ts} +5 -5
- package/dist/src/DataTable/DataTableRow/index.d.ts +2 -0
- package/dist/src/DataTable/DataTableRow/index.js +1 -0
- package/dist/src/DataTable/index.d.ts +8 -0
- package/dist/src/DataTable/index.js +1 -0
- package/dist/src/MainNavigation/BaseMainNavigation.js +25 -10
- package/dist/src/MainNavigation/MainNavigation.types.d.ts +49 -1
- package/dist/src/MainNavigation/NarrowViewportMainNavigation.js +17 -2
- package/dist/src/StatusLabel/StatusLabel.d.ts +1 -0
- package/dist/src/StatusLabel/StatusLabel.js +2 -2
- package/dist/src/StatusLabel/StatusLabel.types.d.ts +6 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/utilities/dom/useFixedColumns.d.ts +1 -1
- package/dist/src/utilities/dom/useFixedColumns.js +1 -1
- package/dist/src/utilities/react/isComponentOrWrapped.d.ts +7 -7
- package/dist/src/utilities/react/isComponentOrWrapped.js +7 -7
- package/dist/styled-system/jsx/is-valid-prop.js +1 -1
- package/dist/styled-system/patterns/divider.d.ts +1 -1
- package/dist/styled-system/patterns/float.d.ts +1 -1
- package/dist/styled-system/recipes/base-main-navigation-slot-recipe.d.ts +1 -1
- package/dist/styled-system/recipes/base-main-navigation-slot-recipe.js +12 -0
- package/dist/styled-system/recipes/data-table-body-slot-recipe.d.ts +33 -0
- package/dist/styled-system/recipes/data-table-body-slot-recipe.js +28 -0
- package/dist/styled-system/recipes/data-table-cell-slot-recipe.d.ts +38 -0
- package/dist/styled-system/recipes/data-table-cell-slot-recipe.js +77 -0
- package/dist/styled-system/recipes/data-table-header-cell-slot-recipe.d.ts +37 -0
- package/dist/styled-system/recipes/data-table-header-cell-slot-recipe.js +73 -0
- package/dist/styled-system/recipes/data-table-header-row-slot-recipe.d.ts +33 -0
- package/dist/styled-system/recipes/data-table-header-row-slot-recipe.js +28 -0
- package/dist/styled-system/recipes/data-table-header-slot-recipe.d.ts +33 -0
- package/dist/styled-system/recipes/data-table-header-slot-recipe.js +35 -0
- package/dist/styled-system/recipes/data-table-row-slot-recipe.d.ts +36 -0
- package/dist/styled-system/recipes/{data-grid-row-slot-recipe.js → data-table-row-slot-recipe.js} +13 -13
- package/dist/styled-system/recipes/data-table-slot-recipe.d.ts +36 -0
- package/dist/styled-system/recipes/data-table-slot-recipe.js +45 -0
- package/dist/styled-system/recipes/index.d.ts +7 -7
- package/dist/styled-system/recipes/index.js +7 -7
- package/dist/styled-system/recipes/narrow-viewport-main-navigation-slot-recipe.d.ts +1 -1
- package/dist/styled-system/recipes/narrow-viewport-main-navigation-slot-recipe.js +12 -0
- package/dist/styled-system/recipes/status-label-slot-recipe.d.ts +4 -0
- package/dist/styled-system/recipes/status-label-slot-recipe.js +9 -1
- package/dist/styled-system/tokens/index.js +117 -117
- package/dist/styled-system/tokens/tokens.d.ts +2 -2
- package/dist/styled-system/types/csstype.d.ts +6405 -5133
- package/dist/styled-system/types/style-props.d.ts +2748 -2163
- package/dist/styled-system/types/system-types.d.ts +14 -132
- package/dist/styles.css +222 -515
- package/dist/theme-orange.css +3 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/dist/src/DataGrid/DataGridBody/DataGridBody.d.ts +0 -1
- package/dist/src/DataGrid/DataGridBody/DataGridBody.js +0 -17
- package/dist/src/DataGrid/DataGridBody/index.d.ts +0 -2
- package/dist/src/DataGrid/DataGridBody/index.js +0 -1
- package/dist/src/DataGrid/DataGridCell/DataGridCell.d.ts +0 -2
- package/dist/src/DataGrid/DataGridCell/index.d.ts +0 -2
- package/dist/src/DataGrid/DataGridCell/index.js +0 -1
- package/dist/src/DataGrid/DataGridHeader/DataGridHeader.d.ts +0 -1
- package/dist/src/DataGrid/DataGridHeader/DataGridHeader.js +0 -11
- package/dist/src/DataGrid/DataGridHeader/index.d.ts +0 -2
- package/dist/src/DataGrid/DataGridHeader/index.js +0 -1
- package/dist/src/DataGrid/DataGridHeaderCell/DataGridHeaderCell.d.ts +0 -2
- package/dist/src/DataGrid/DataGridHeaderCell/DataGridHeaderCell.js +0 -50
- package/dist/src/DataGrid/DataGridHeaderCell/index.d.ts +0 -2
- package/dist/src/DataGrid/DataGridHeaderCell/index.js +0 -1
- package/dist/src/DataGrid/DataGridHeaderRow/DataGridHeaderRow.d.ts +0 -2
- package/dist/src/DataGrid/DataGridHeaderRow/DataGridHeaderRow.js +0 -30
- package/dist/src/DataGrid/DataGridHeaderRow/index.d.ts +0 -2
- package/dist/src/DataGrid/DataGridHeaderRow/index.js +0 -1
- package/dist/src/DataGrid/DataGridProvider.d.ts +0 -27
- package/dist/src/DataGrid/DataGridRow/DataGridRow.d.ts +0 -2
- package/dist/src/DataGrid/DataGridRow/index.d.ts +0 -2
- package/dist/src/DataGrid/DataGridRow/index.js +0 -1
- package/dist/styled-system/recipes/data-grid-body-slot-recipe.d.ts +0 -33
- package/dist/styled-system/recipes/data-grid-body-slot-recipe.js +0 -28
- package/dist/styled-system/recipes/data-grid-cell-slot-recipe.d.ts +0 -38
- package/dist/styled-system/recipes/data-grid-cell-slot-recipe.js +0 -77
- package/dist/styled-system/recipes/data-grid-header-cell-slot-recipe.d.ts +0 -37
- package/dist/styled-system/recipes/data-grid-header-cell-slot-recipe.js +0 -73
- package/dist/styled-system/recipes/data-grid-header-row-slot-recipe.d.ts +0 -33
- package/dist/styled-system/recipes/data-grid-header-row-slot-recipe.js +0 -28
- package/dist/styled-system/recipes/data-grid-header-slot-recipe.d.ts +0 -33
- package/dist/styled-system/recipes/data-grid-header-slot-recipe.js +0 -35
- package/dist/styled-system/recipes/data-grid-row-slot-recipe.d.ts +0 -36
- package/dist/styled-system/recipes/data-grid-slot-recipe.d.ts +0 -36
- package/dist/styled-system/recipes/data-grid-slot-recipe.js +0 -45
- /package/dist/src/{DataGrid/DataGrid.types.js → DataTable/DataTable.types.js} +0 -0
- /package/dist/src/{DataGrid/DataGridBody/DataGridBody.types.js → DataTable/DataTableBody/DataTableBody.types.js} +0 -0
- /package/dist/src/{DataGrid/DataGridCell/DataGridCell.types.js → DataTable/DataTableCell/DataTableCell.types.js} +0 -0
- /package/dist/src/{DataGrid/DataGridHeader/DataGridHeader.types.js → DataTable/DataTableHeader/DataTableHeader.types.js} +0 -0
- /package/dist/src/{DataGrid/DataGridHeaderCell/DataGridHeaderCell.types.js → DataTable/DataTableHeaderCell/DataTableHeaderCell.types.js} +0 -0
- /package/dist/src/{DataGrid/DataGridHeaderRow/DataGridHeaderRow.types.js → DataTable/DataTableHeaderRow/DataTableHeaderRow.types.js} +0 -0
- /package/dist/src/{DataGrid/DataGridRow/DataGridRow.types.js → DataTable/DataTableRow/DataTableRow.types.js} +0 -0
- /package/dist/src/{DataGrid → DataTable}/utils/handleCheckbox.d.ts +0 -0
- /package/dist/src/{DataGrid → DataTable}/utils/handleCheckbox.js +0 -0
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
-
import { createRecipe } from './create-recipe.js';
|
|
3
|
-
const dataGridBodySlotRecipeDefaultVariants = {};
|
|
4
|
-
const dataGridBodySlotRecipeCompoundVariants = [];
|
|
5
|
-
const dataGridBodySlotRecipeSlotNames = [
|
|
6
|
-
[
|
|
7
|
-
"root",
|
|
8
|
-
"DataGridBody__root"
|
|
9
|
-
]
|
|
10
|
-
];
|
|
11
|
-
const dataGridBodySlotRecipeSlotFns = /* @__PURE__ */ dataGridBodySlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dataGridBodySlotRecipeDefaultVariants, getSlotCompoundVariant(dataGridBodySlotRecipeCompoundVariants, slotName))]);
|
|
12
|
-
const dataGridBodySlotRecipeFn = memo((props = {}) => {
|
|
13
|
-
return Object.fromEntries(dataGridBodySlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
14
|
-
});
|
|
15
|
-
const dataGridBodySlotRecipeVariantKeys = [];
|
|
16
|
-
const getVariantProps = (variants) => ({ ...dataGridBodySlotRecipeDefaultVariants, ...compact(variants) });
|
|
17
|
-
export const dataGridBodySlotRecipe = /* @__PURE__ */ Object.assign(dataGridBodySlotRecipeFn, {
|
|
18
|
-
__recipe__: false,
|
|
19
|
-
__name__: 'dataGridBodySlotRecipe',
|
|
20
|
-
raw: (props) => props,
|
|
21
|
-
classNameMap: {},
|
|
22
|
-
variantKeys: dataGridBodySlotRecipeVariantKeys,
|
|
23
|
-
variantMap: {},
|
|
24
|
-
splitVariantProps(props) {
|
|
25
|
-
return splitProps(props, dataGridBodySlotRecipeVariantKeys);
|
|
26
|
-
},
|
|
27
|
-
getVariantProps
|
|
28
|
-
});
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
-
|
|
5
|
-
interface DataGridCellSlotRecipeVariant {
|
|
6
|
-
size: "small" | "medium"
|
|
7
|
-
isCheckboxCell: boolean
|
|
8
|
-
rowHighlighted: boolean
|
|
9
|
-
fixedColumn: boolean
|
|
10
|
-
edgeFixedColumn: "left" | "right"
|
|
11
|
-
type: "text" | "amount"
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
type DataGridCellSlotRecipeVariantMap = {
|
|
15
|
-
[key in keyof DataGridCellSlotRecipeVariant]: Array<DataGridCellSlotRecipeVariant[key]>
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
type DataGridCellSlotRecipeSlot = "root" | "defaultCell" | "interactiveCell" | "disclosureIconWrapper" | "disclosureSpacing" | "skeletonCell"
|
|
19
|
-
|
|
20
|
-
export type DataGridCellSlotRecipeVariantProps = {
|
|
21
|
-
[key in keyof DataGridCellSlotRecipeVariant]?: ConditionalValue<DataGridCellSlotRecipeVariant[key]> | undefined
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface DataGridCellSlotRecipeRecipe {
|
|
25
|
-
__slot: DataGridCellSlotRecipeSlot
|
|
26
|
-
__type: DataGridCellSlotRecipeVariantProps
|
|
27
|
-
(props?: DataGridCellSlotRecipeVariantProps): Pretty<Record<DataGridCellSlotRecipeSlot, string>>
|
|
28
|
-
raw: (props?: DataGridCellSlotRecipeVariantProps) => DataGridCellSlotRecipeVariantProps
|
|
29
|
-
variantMap: DataGridCellSlotRecipeVariantMap
|
|
30
|
-
variantKeys: Array<keyof DataGridCellSlotRecipeVariant>
|
|
31
|
-
splitVariantProps<Props extends DataGridCellSlotRecipeVariantProps>(props: Props): [DataGridCellSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof DataGridCellSlotRecipeVariantProps>>]
|
|
32
|
-
getVariantProps: (props?: DataGridCellSlotRecipeVariantProps) => DataGridCellSlotRecipeVariantProps
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Slot class created for the MFUI DataGridCell component.
|
|
37
|
-
*/
|
|
38
|
-
export declare const dataGridCellSlotRecipe: DataGridCellSlotRecipeRecipe
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
-
import { createRecipe } from './create-recipe.js';
|
|
3
|
-
const dataGridCellSlotRecipeDefaultVariants = {};
|
|
4
|
-
const dataGridCellSlotRecipeCompoundVariants = [];
|
|
5
|
-
const dataGridCellSlotRecipeSlotNames = [
|
|
6
|
-
[
|
|
7
|
-
"root",
|
|
8
|
-
"DataGridCell__root"
|
|
9
|
-
],
|
|
10
|
-
[
|
|
11
|
-
"defaultCell",
|
|
12
|
-
"DataGridCell__defaultCell"
|
|
13
|
-
],
|
|
14
|
-
[
|
|
15
|
-
"interactiveCell",
|
|
16
|
-
"DataGridCell__interactiveCell"
|
|
17
|
-
],
|
|
18
|
-
[
|
|
19
|
-
"disclosureIconWrapper",
|
|
20
|
-
"DataGridCell__disclosureIconWrapper"
|
|
21
|
-
],
|
|
22
|
-
[
|
|
23
|
-
"disclosureSpacing",
|
|
24
|
-
"DataGridCell__disclosureSpacing"
|
|
25
|
-
],
|
|
26
|
-
[
|
|
27
|
-
"skeletonCell",
|
|
28
|
-
"DataGridCell__skeletonCell"
|
|
29
|
-
]
|
|
30
|
-
];
|
|
31
|
-
const dataGridCellSlotRecipeSlotFns = /* @__PURE__ */ dataGridCellSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dataGridCellSlotRecipeDefaultVariants, getSlotCompoundVariant(dataGridCellSlotRecipeCompoundVariants, slotName))]);
|
|
32
|
-
const dataGridCellSlotRecipeFn = memo((props = {}) => {
|
|
33
|
-
return Object.fromEntries(dataGridCellSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
34
|
-
});
|
|
35
|
-
const dataGridCellSlotRecipeVariantKeys = [
|
|
36
|
-
"size",
|
|
37
|
-
"isCheckboxCell",
|
|
38
|
-
"rowHighlighted",
|
|
39
|
-
"fixedColumn",
|
|
40
|
-
"edgeFixedColumn",
|
|
41
|
-
"type"
|
|
42
|
-
];
|
|
43
|
-
const getVariantProps = (variants) => ({ ...dataGridCellSlotRecipeDefaultVariants, ...compact(variants) });
|
|
44
|
-
export const dataGridCellSlotRecipe = /* @__PURE__ */ Object.assign(dataGridCellSlotRecipeFn, {
|
|
45
|
-
__recipe__: false,
|
|
46
|
-
__name__: 'dataGridCellSlotRecipe',
|
|
47
|
-
raw: (props) => props,
|
|
48
|
-
classNameMap: {},
|
|
49
|
-
variantKeys: dataGridCellSlotRecipeVariantKeys,
|
|
50
|
-
variantMap: {
|
|
51
|
-
"size": [
|
|
52
|
-
"small",
|
|
53
|
-
"medium"
|
|
54
|
-
],
|
|
55
|
-
"isCheckboxCell": [
|
|
56
|
-
"true"
|
|
57
|
-
],
|
|
58
|
-
"rowHighlighted": [
|
|
59
|
-
"true"
|
|
60
|
-
],
|
|
61
|
-
"fixedColumn": [
|
|
62
|
-
"true"
|
|
63
|
-
],
|
|
64
|
-
"edgeFixedColumn": [
|
|
65
|
-
"left",
|
|
66
|
-
"right"
|
|
67
|
-
],
|
|
68
|
-
"type": [
|
|
69
|
-
"text",
|
|
70
|
-
"amount"
|
|
71
|
-
]
|
|
72
|
-
},
|
|
73
|
-
splitVariantProps(props) {
|
|
74
|
-
return splitProps(props, dataGridCellSlotRecipeVariantKeys);
|
|
75
|
-
},
|
|
76
|
-
getVariantProps
|
|
77
|
-
});
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
-
|
|
5
|
-
interface DataGridHeaderCellSlotRecipeVariant {
|
|
6
|
-
size: "small" | "medium"
|
|
7
|
-
fixedColumn: boolean
|
|
8
|
-
edgeFixedColumn: "left" | "right"
|
|
9
|
-
isCheckboxCell: boolean
|
|
10
|
-
type: "text" | "amount"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
type DataGridHeaderCellSlotRecipeVariantMap = {
|
|
14
|
-
[key in keyof DataGridHeaderCellSlotRecipeVariant]: Array<DataGridHeaderCellSlotRecipeVariant[key]>
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
type DataGridHeaderCellSlotRecipeSlot = "root" | "headerCell" | "sortButton" | "sortIconContainer" | "sortIcon" | "unsortedIcon"
|
|
18
|
-
|
|
19
|
-
export type DataGridHeaderCellSlotRecipeVariantProps = {
|
|
20
|
-
[key in keyof DataGridHeaderCellSlotRecipeVariant]?: ConditionalValue<DataGridHeaderCellSlotRecipeVariant[key]> | undefined
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface DataGridHeaderCellSlotRecipeRecipe {
|
|
24
|
-
__slot: DataGridHeaderCellSlotRecipeSlot
|
|
25
|
-
__type: DataGridHeaderCellSlotRecipeVariantProps
|
|
26
|
-
(props?: DataGridHeaderCellSlotRecipeVariantProps): Pretty<Record<DataGridHeaderCellSlotRecipeSlot, string>>
|
|
27
|
-
raw: (props?: DataGridHeaderCellSlotRecipeVariantProps) => DataGridHeaderCellSlotRecipeVariantProps
|
|
28
|
-
variantMap: DataGridHeaderCellSlotRecipeVariantMap
|
|
29
|
-
variantKeys: Array<keyof DataGridHeaderCellSlotRecipeVariant>
|
|
30
|
-
splitVariantProps<Props extends DataGridHeaderCellSlotRecipeVariantProps>(props: Props): [DataGridHeaderCellSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof DataGridHeaderCellSlotRecipeVariantProps>>]
|
|
31
|
-
getVariantProps: (props?: DataGridHeaderCellSlotRecipeVariantProps) => DataGridHeaderCellSlotRecipeVariantProps
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Slot class created for the MFUI DataGridHeaderCell component.
|
|
36
|
-
*/
|
|
37
|
-
export declare const dataGridHeaderCellSlotRecipe: DataGridHeaderCellSlotRecipeRecipe
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
-
import { createRecipe } from './create-recipe.js';
|
|
3
|
-
const dataGridHeaderCellSlotRecipeDefaultVariants = {};
|
|
4
|
-
const dataGridHeaderCellSlotRecipeCompoundVariants = [];
|
|
5
|
-
const dataGridHeaderCellSlotRecipeSlotNames = [
|
|
6
|
-
[
|
|
7
|
-
"root",
|
|
8
|
-
"DataGridHeaderCell__root"
|
|
9
|
-
],
|
|
10
|
-
[
|
|
11
|
-
"headerCell",
|
|
12
|
-
"DataGridHeaderCell__headerCell"
|
|
13
|
-
],
|
|
14
|
-
[
|
|
15
|
-
"sortButton",
|
|
16
|
-
"DataGridHeaderCell__sortButton"
|
|
17
|
-
],
|
|
18
|
-
[
|
|
19
|
-
"sortIconContainer",
|
|
20
|
-
"DataGridHeaderCell__sortIconContainer"
|
|
21
|
-
],
|
|
22
|
-
[
|
|
23
|
-
"sortIcon",
|
|
24
|
-
"DataGridHeaderCell__sortIcon"
|
|
25
|
-
],
|
|
26
|
-
[
|
|
27
|
-
"unsortedIcon",
|
|
28
|
-
"DataGridHeaderCell__unsortedIcon"
|
|
29
|
-
]
|
|
30
|
-
];
|
|
31
|
-
const dataGridHeaderCellSlotRecipeSlotFns = /* @__PURE__ */ dataGridHeaderCellSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dataGridHeaderCellSlotRecipeDefaultVariants, getSlotCompoundVariant(dataGridHeaderCellSlotRecipeCompoundVariants, slotName))]);
|
|
32
|
-
const dataGridHeaderCellSlotRecipeFn = memo((props = {}) => {
|
|
33
|
-
return Object.fromEntries(dataGridHeaderCellSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
34
|
-
});
|
|
35
|
-
const dataGridHeaderCellSlotRecipeVariantKeys = [
|
|
36
|
-
"size",
|
|
37
|
-
"fixedColumn",
|
|
38
|
-
"edgeFixedColumn",
|
|
39
|
-
"isCheckboxCell",
|
|
40
|
-
"type"
|
|
41
|
-
];
|
|
42
|
-
const getVariantProps = (variants) => ({ ...dataGridHeaderCellSlotRecipeDefaultVariants, ...compact(variants) });
|
|
43
|
-
export const dataGridHeaderCellSlotRecipe = /* @__PURE__ */ Object.assign(dataGridHeaderCellSlotRecipeFn, {
|
|
44
|
-
__recipe__: false,
|
|
45
|
-
__name__: 'dataGridHeaderCellSlotRecipe',
|
|
46
|
-
raw: (props) => props,
|
|
47
|
-
classNameMap: {},
|
|
48
|
-
variantKeys: dataGridHeaderCellSlotRecipeVariantKeys,
|
|
49
|
-
variantMap: {
|
|
50
|
-
"size": [
|
|
51
|
-
"small",
|
|
52
|
-
"medium"
|
|
53
|
-
],
|
|
54
|
-
"fixedColumn": [
|
|
55
|
-
"true"
|
|
56
|
-
],
|
|
57
|
-
"edgeFixedColumn": [
|
|
58
|
-
"left",
|
|
59
|
-
"right"
|
|
60
|
-
],
|
|
61
|
-
"isCheckboxCell": [
|
|
62
|
-
"true"
|
|
63
|
-
],
|
|
64
|
-
"type": [
|
|
65
|
-
"text",
|
|
66
|
-
"amount"
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
splitVariantProps(props) {
|
|
70
|
-
return splitProps(props, dataGridHeaderCellSlotRecipeVariantKeys);
|
|
71
|
-
},
|
|
72
|
-
getVariantProps
|
|
73
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
-
|
|
5
|
-
interface DataGridHeaderRowSlotRecipeVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type DataGridHeaderRowSlotRecipeVariantMap = {
|
|
10
|
-
[key in keyof DataGridHeaderRowSlotRecipeVariant]: Array<DataGridHeaderRowSlotRecipeVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
type DataGridHeaderRowSlotRecipeSlot = "root"
|
|
14
|
-
|
|
15
|
-
export type DataGridHeaderRowSlotRecipeVariantProps = {
|
|
16
|
-
[key in keyof DataGridHeaderRowSlotRecipeVariant]?: ConditionalValue<DataGridHeaderRowSlotRecipeVariant[key]> | undefined
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface DataGridHeaderRowSlotRecipeRecipe {
|
|
20
|
-
__slot: DataGridHeaderRowSlotRecipeSlot
|
|
21
|
-
__type: DataGridHeaderRowSlotRecipeVariantProps
|
|
22
|
-
(props?: DataGridHeaderRowSlotRecipeVariantProps): Pretty<Record<DataGridHeaderRowSlotRecipeSlot, string>>
|
|
23
|
-
raw: (props?: DataGridHeaderRowSlotRecipeVariantProps) => DataGridHeaderRowSlotRecipeVariantProps
|
|
24
|
-
variantMap: DataGridHeaderRowSlotRecipeVariantMap
|
|
25
|
-
variantKeys: Array<keyof DataGridHeaderRowSlotRecipeVariant>
|
|
26
|
-
splitVariantProps<Props extends DataGridHeaderRowSlotRecipeVariantProps>(props: Props): [DataGridHeaderRowSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof DataGridHeaderRowSlotRecipeVariantProps>>]
|
|
27
|
-
getVariantProps: (props?: DataGridHeaderRowSlotRecipeVariantProps) => DataGridHeaderRowSlotRecipeVariantProps
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Slot class created for the MFUI DataGridHeaderRow component.
|
|
32
|
-
*/
|
|
33
|
-
export declare const dataGridHeaderRowSlotRecipe: DataGridHeaderRowSlotRecipeRecipe
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
-
import { createRecipe } from './create-recipe.js';
|
|
3
|
-
const dataGridHeaderRowSlotRecipeDefaultVariants = {};
|
|
4
|
-
const dataGridHeaderRowSlotRecipeCompoundVariants = [];
|
|
5
|
-
const dataGridHeaderRowSlotRecipeSlotNames = [
|
|
6
|
-
[
|
|
7
|
-
"root",
|
|
8
|
-
"DataGridHeaderRow__root"
|
|
9
|
-
]
|
|
10
|
-
];
|
|
11
|
-
const dataGridHeaderRowSlotRecipeSlotFns = /* @__PURE__ */ dataGridHeaderRowSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dataGridHeaderRowSlotRecipeDefaultVariants, getSlotCompoundVariant(dataGridHeaderRowSlotRecipeCompoundVariants, slotName))]);
|
|
12
|
-
const dataGridHeaderRowSlotRecipeFn = memo((props = {}) => {
|
|
13
|
-
return Object.fromEntries(dataGridHeaderRowSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
14
|
-
});
|
|
15
|
-
const dataGridHeaderRowSlotRecipeVariantKeys = [];
|
|
16
|
-
const getVariantProps = (variants) => ({ ...dataGridHeaderRowSlotRecipeDefaultVariants, ...compact(variants) });
|
|
17
|
-
export const dataGridHeaderRowSlotRecipe = /* @__PURE__ */ Object.assign(dataGridHeaderRowSlotRecipeFn, {
|
|
18
|
-
__recipe__: false,
|
|
19
|
-
__name__: 'dataGridHeaderRowSlotRecipe',
|
|
20
|
-
raw: (props) => props,
|
|
21
|
-
classNameMap: {},
|
|
22
|
-
variantKeys: dataGridHeaderRowSlotRecipeVariantKeys,
|
|
23
|
-
variantMap: {},
|
|
24
|
-
splitVariantProps(props) {
|
|
25
|
-
return splitProps(props, dataGridHeaderRowSlotRecipeVariantKeys);
|
|
26
|
-
},
|
|
27
|
-
getVariantProps
|
|
28
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
-
|
|
5
|
-
interface DataGridHeaderSlotRecipeVariant {
|
|
6
|
-
fixedHeader: boolean
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type DataGridHeaderSlotRecipeVariantMap = {
|
|
10
|
-
[key in keyof DataGridHeaderSlotRecipeVariant]: Array<DataGridHeaderSlotRecipeVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
type DataGridHeaderSlotRecipeSlot = "root"
|
|
14
|
-
|
|
15
|
-
export type DataGridHeaderSlotRecipeVariantProps = {
|
|
16
|
-
[key in keyof DataGridHeaderSlotRecipeVariant]?: ConditionalValue<DataGridHeaderSlotRecipeVariant[key]> | undefined
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface DataGridHeaderSlotRecipeRecipe {
|
|
20
|
-
__slot: DataGridHeaderSlotRecipeSlot
|
|
21
|
-
__type: DataGridHeaderSlotRecipeVariantProps
|
|
22
|
-
(props?: DataGridHeaderSlotRecipeVariantProps): Pretty<Record<DataGridHeaderSlotRecipeSlot, string>>
|
|
23
|
-
raw: (props?: DataGridHeaderSlotRecipeVariantProps) => DataGridHeaderSlotRecipeVariantProps
|
|
24
|
-
variantMap: DataGridHeaderSlotRecipeVariantMap
|
|
25
|
-
variantKeys: Array<keyof DataGridHeaderSlotRecipeVariant>
|
|
26
|
-
splitVariantProps<Props extends DataGridHeaderSlotRecipeVariantProps>(props: Props): [DataGridHeaderSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof DataGridHeaderSlotRecipeVariantProps>>]
|
|
27
|
-
getVariantProps: (props?: DataGridHeaderSlotRecipeVariantProps) => DataGridHeaderSlotRecipeVariantProps
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Slot class created for the MFUI DataGridHeader component.
|
|
32
|
-
*/
|
|
33
|
-
export declare const dataGridHeaderSlotRecipe: DataGridHeaderSlotRecipeRecipe
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
-
import { createRecipe } from './create-recipe.js';
|
|
3
|
-
const dataGridHeaderSlotRecipeDefaultVariants = {};
|
|
4
|
-
const dataGridHeaderSlotRecipeCompoundVariants = [];
|
|
5
|
-
const dataGridHeaderSlotRecipeSlotNames = [
|
|
6
|
-
[
|
|
7
|
-
"root",
|
|
8
|
-
"DataGridHeader__root"
|
|
9
|
-
]
|
|
10
|
-
];
|
|
11
|
-
const dataGridHeaderSlotRecipeSlotFns = /* @__PURE__ */ dataGridHeaderSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dataGridHeaderSlotRecipeDefaultVariants, getSlotCompoundVariant(dataGridHeaderSlotRecipeCompoundVariants, slotName))]);
|
|
12
|
-
const dataGridHeaderSlotRecipeFn = memo((props = {}) => {
|
|
13
|
-
return Object.fromEntries(dataGridHeaderSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
14
|
-
});
|
|
15
|
-
const dataGridHeaderSlotRecipeVariantKeys = [
|
|
16
|
-
"fixedHeader"
|
|
17
|
-
];
|
|
18
|
-
const getVariantProps = (variants) => ({ ...dataGridHeaderSlotRecipeDefaultVariants, ...compact(variants) });
|
|
19
|
-
export const dataGridHeaderSlotRecipe = /* @__PURE__ */ Object.assign(dataGridHeaderSlotRecipeFn, {
|
|
20
|
-
__recipe__: false,
|
|
21
|
-
__name__: 'dataGridHeaderSlotRecipe',
|
|
22
|
-
raw: (props) => props,
|
|
23
|
-
classNameMap: {},
|
|
24
|
-
variantKeys: dataGridHeaderSlotRecipeVariantKeys,
|
|
25
|
-
variantMap: {
|
|
26
|
-
"fixedHeader": [
|
|
27
|
-
"true",
|
|
28
|
-
"false"
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
splitVariantProps(props) {
|
|
32
|
-
return splitProps(props, dataGridHeaderSlotRecipeVariantKeys);
|
|
33
|
-
},
|
|
34
|
-
getVariantProps
|
|
35
|
-
});
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
-
|
|
5
|
-
interface DataGridRowSlotRecipeVariant {
|
|
6
|
-
layout: "default" | "edge-to-edge"
|
|
7
|
-
highlighted: boolean
|
|
8
|
-
interactive: boolean
|
|
9
|
-
disabled: boolean
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
type DataGridRowSlotRecipeVariantMap = {
|
|
13
|
-
[key in keyof DataGridRowSlotRecipeVariant]: Array<DataGridRowSlotRecipeVariant[key]>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
type DataGridRowSlotRecipeSlot = "root"
|
|
17
|
-
|
|
18
|
-
export type DataGridRowSlotRecipeVariantProps = {
|
|
19
|
-
[key in keyof DataGridRowSlotRecipeVariant]?: DataGridRowSlotRecipeVariant[key] | undefined
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface DataGridRowSlotRecipeRecipe {
|
|
23
|
-
__slot: DataGridRowSlotRecipeSlot
|
|
24
|
-
__type: DataGridRowSlotRecipeVariantProps
|
|
25
|
-
(props?: DataGridRowSlotRecipeVariantProps): Pretty<Record<DataGridRowSlotRecipeSlot, string>>
|
|
26
|
-
raw: (props?: DataGridRowSlotRecipeVariantProps) => DataGridRowSlotRecipeVariantProps
|
|
27
|
-
variantMap: DataGridRowSlotRecipeVariantMap
|
|
28
|
-
variantKeys: Array<keyof DataGridRowSlotRecipeVariant>
|
|
29
|
-
splitVariantProps<Props extends DataGridRowSlotRecipeVariantProps>(props: Props): [DataGridRowSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof DataGridRowSlotRecipeVariantProps>>]
|
|
30
|
-
getVariantProps: (props?: DataGridRowSlotRecipeVariantProps) => DataGridRowSlotRecipeVariantProps
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Slot class created for the MFUI DataGridRow component.
|
|
35
|
-
*/
|
|
36
|
-
export declare const dataGridRowSlotRecipe: DataGridRowSlotRecipeRecipe
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
-
|
|
5
|
-
interface DataGridSlotRecipeVariant {
|
|
6
|
-
/**
|
|
7
|
-
* @default "default"
|
|
8
|
-
*/
|
|
9
|
-
layout: "default" | "edge-to-edge"
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
type DataGridSlotRecipeVariantMap = {
|
|
13
|
-
[key in keyof DataGridSlotRecipeVariant]: Array<DataGridSlotRecipeVariant[key]>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
type DataGridSlotRecipeSlot = "wrapper" | "table" | "emptyState"
|
|
17
|
-
|
|
18
|
-
export type DataGridSlotRecipeVariantProps = {
|
|
19
|
-
[key in keyof DataGridSlotRecipeVariant]?: ConditionalValue<DataGridSlotRecipeVariant[key]> | undefined
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface DataGridSlotRecipeRecipe {
|
|
23
|
-
__slot: DataGridSlotRecipeSlot
|
|
24
|
-
__type: DataGridSlotRecipeVariantProps
|
|
25
|
-
(props?: DataGridSlotRecipeVariantProps): Pretty<Record<DataGridSlotRecipeSlot, string>>
|
|
26
|
-
raw: (props?: DataGridSlotRecipeVariantProps) => DataGridSlotRecipeVariantProps
|
|
27
|
-
variantMap: DataGridSlotRecipeVariantMap
|
|
28
|
-
variantKeys: Array<keyof DataGridSlotRecipeVariant>
|
|
29
|
-
splitVariantProps<Props extends DataGridSlotRecipeVariantProps>(props: Props): [DataGridSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof DataGridSlotRecipeVariantProps>>]
|
|
30
|
-
getVariantProps: (props?: DataGridSlotRecipeVariantProps) => DataGridSlotRecipeVariantProps
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Slot class created for the MFUI DataGrid component.
|
|
35
|
-
*/
|
|
36
|
-
export declare const dataGridSlotRecipe: DataGridSlotRecipeRecipe
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
-
import { createRecipe } from './create-recipe.js';
|
|
3
|
-
const dataGridSlotRecipeDefaultVariants = {
|
|
4
|
-
"layout": "default"
|
|
5
|
-
};
|
|
6
|
-
const dataGridSlotRecipeCompoundVariants = [];
|
|
7
|
-
const dataGridSlotRecipeSlotNames = [
|
|
8
|
-
[
|
|
9
|
-
"wrapper",
|
|
10
|
-
"DataGrid__wrapper"
|
|
11
|
-
],
|
|
12
|
-
[
|
|
13
|
-
"table",
|
|
14
|
-
"DataGrid__table"
|
|
15
|
-
],
|
|
16
|
-
[
|
|
17
|
-
"emptyState",
|
|
18
|
-
"DataGrid__emptyState"
|
|
19
|
-
]
|
|
20
|
-
];
|
|
21
|
-
const dataGridSlotRecipeSlotFns = /* @__PURE__ */ dataGridSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dataGridSlotRecipeDefaultVariants, getSlotCompoundVariant(dataGridSlotRecipeCompoundVariants, slotName))]);
|
|
22
|
-
const dataGridSlotRecipeFn = memo((props = {}) => {
|
|
23
|
-
return Object.fromEntries(dataGridSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
24
|
-
});
|
|
25
|
-
const dataGridSlotRecipeVariantKeys = [
|
|
26
|
-
"layout"
|
|
27
|
-
];
|
|
28
|
-
const getVariantProps = (variants) => ({ ...dataGridSlotRecipeDefaultVariants, ...compact(variants) });
|
|
29
|
-
export const dataGridSlotRecipe = /* @__PURE__ */ Object.assign(dataGridSlotRecipeFn, {
|
|
30
|
-
__recipe__: false,
|
|
31
|
-
__name__: 'dataGridSlotRecipe',
|
|
32
|
-
raw: (props) => props,
|
|
33
|
-
classNameMap: {},
|
|
34
|
-
variantKeys: dataGridSlotRecipeVariantKeys,
|
|
35
|
-
variantMap: {
|
|
36
|
-
"layout": [
|
|
37
|
-
"default",
|
|
38
|
-
"edge-to-edge"
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
splitVariantProps(props) {
|
|
42
|
-
return splitProps(props, dataGridSlotRecipeVariantKeys);
|
|
43
|
-
},
|
|
44
|
-
getVariantProps
|
|
45
|
-
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|