@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
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
+
import { createRecipe } from './create-recipe.js';
|
|
3
|
+
const dataTableHeaderRowSlotRecipeDefaultVariants = {};
|
|
4
|
+
const dataTableHeaderRowSlotRecipeCompoundVariants = [];
|
|
5
|
+
const dataTableHeaderRowSlotRecipeSlotNames = [
|
|
6
|
+
[
|
|
7
|
+
"root",
|
|
8
|
+
"DataTableHeaderRow__root"
|
|
9
|
+
]
|
|
10
|
+
];
|
|
11
|
+
const dataTableHeaderRowSlotRecipeSlotFns = /* @__PURE__ */ dataTableHeaderRowSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dataTableHeaderRowSlotRecipeDefaultVariants, getSlotCompoundVariant(dataTableHeaderRowSlotRecipeCompoundVariants, slotName))]);
|
|
12
|
+
const dataTableHeaderRowSlotRecipeFn = memo((props = {}) => {
|
|
13
|
+
return Object.fromEntries(dataTableHeaderRowSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
14
|
+
});
|
|
15
|
+
const dataTableHeaderRowSlotRecipeVariantKeys = [];
|
|
16
|
+
const getVariantProps = (variants) => ({ ...dataTableHeaderRowSlotRecipeDefaultVariants, ...compact(variants) });
|
|
17
|
+
export const dataTableHeaderRowSlotRecipe = /* @__PURE__ */ Object.assign(dataTableHeaderRowSlotRecipeFn, {
|
|
18
|
+
__recipe__: false,
|
|
19
|
+
__name__: 'dataTableHeaderRowSlotRecipe',
|
|
20
|
+
raw: (props) => props,
|
|
21
|
+
classNameMap: {},
|
|
22
|
+
variantKeys: dataTableHeaderRowSlotRecipeVariantKeys,
|
|
23
|
+
variantMap: {},
|
|
24
|
+
splitVariantProps(props) {
|
|
25
|
+
return splitProps(props, dataTableHeaderRowSlotRecipeVariantKeys);
|
|
26
|
+
},
|
|
27
|
+
getVariantProps
|
|
28
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface DataTableHeaderSlotRecipeVariant {
|
|
6
|
+
fixedHeader: boolean
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type DataTableHeaderSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof DataTableHeaderSlotRecipeVariant]: Array<DataTableHeaderSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
type DataTableHeaderSlotRecipeSlot = "root"
|
|
14
|
+
|
|
15
|
+
export type DataTableHeaderSlotRecipeVariantProps = {
|
|
16
|
+
[key in keyof DataTableHeaderSlotRecipeVariant]?: ConditionalValue<DataTableHeaderSlotRecipeVariant[key]> | undefined
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface DataTableHeaderSlotRecipeRecipe {
|
|
20
|
+
__slot: DataTableHeaderSlotRecipeSlot
|
|
21
|
+
__type: DataTableHeaderSlotRecipeVariantProps
|
|
22
|
+
(props?: DataTableHeaderSlotRecipeVariantProps): Pretty<Record<DataTableHeaderSlotRecipeSlot, string>>
|
|
23
|
+
raw: (props?: DataTableHeaderSlotRecipeVariantProps) => DataTableHeaderSlotRecipeVariantProps
|
|
24
|
+
variantMap: DataTableHeaderSlotRecipeVariantMap
|
|
25
|
+
variantKeys: Array<keyof DataTableHeaderSlotRecipeVariant>
|
|
26
|
+
splitVariantProps<Props extends DataTableHeaderSlotRecipeVariantProps>(props: Props): [DataTableHeaderSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof DataTableHeaderSlotRecipeVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: DataTableHeaderSlotRecipeVariantProps) => DataTableHeaderSlotRecipeVariantProps
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Slot class created for the MFUI DataTableHeader component.
|
|
32
|
+
*/
|
|
33
|
+
export declare const dataTableHeaderSlotRecipe: DataTableHeaderSlotRecipeRecipe
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
+
import { createRecipe } from './create-recipe.js';
|
|
3
|
+
const dataTableHeaderSlotRecipeDefaultVariants = {};
|
|
4
|
+
const dataTableHeaderSlotRecipeCompoundVariants = [];
|
|
5
|
+
const dataTableHeaderSlotRecipeSlotNames = [
|
|
6
|
+
[
|
|
7
|
+
"root",
|
|
8
|
+
"DataTableHeader__root"
|
|
9
|
+
]
|
|
10
|
+
];
|
|
11
|
+
const dataTableHeaderSlotRecipeSlotFns = /* @__PURE__ */ dataTableHeaderSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dataTableHeaderSlotRecipeDefaultVariants, getSlotCompoundVariant(dataTableHeaderSlotRecipeCompoundVariants, slotName))]);
|
|
12
|
+
const dataTableHeaderSlotRecipeFn = memo((props = {}) => {
|
|
13
|
+
return Object.fromEntries(dataTableHeaderSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
14
|
+
});
|
|
15
|
+
const dataTableHeaderSlotRecipeVariantKeys = [
|
|
16
|
+
"fixedHeader"
|
|
17
|
+
];
|
|
18
|
+
const getVariantProps = (variants) => ({ ...dataTableHeaderSlotRecipeDefaultVariants, ...compact(variants) });
|
|
19
|
+
export const dataTableHeaderSlotRecipe = /* @__PURE__ */ Object.assign(dataTableHeaderSlotRecipeFn, {
|
|
20
|
+
__recipe__: false,
|
|
21
|
+
__name__: 'dataTableHeaderSlotRecipe',
|
|
22
|
+
raw: (props) => props,
|
|
23
|
+
classNameMap: {},
|
|
24
|
+
variantKeys: dataTableHeaderSlotRecipeVariantKeys,
|
|
25
|
+
variantMap: {
|
|
26
|
+
"fixedHeader": [
|
|
27
|
+
"true",
|
|
28
|
+
"false"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
splitVariantProps(props) {
|
|
32
|
+
return splitProps(props, dataTableHeaderSlotRecipeVariantKeys);
|
|
33
|
+
},
|
|
34
|
+
getVariantProps
|
|
35
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface DataTableRowSlotRecipeVariant {
|
|
6
|
+
layout: "default" | "edge-to-edge"
|
|
7
|
+
highlighted: boolean
|
|
8
|
+
interactive: boolean
|
|
9
|
+
disabled: boolean
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type DataTableRowSlotRecipeVariantMap = {
|
|
13
|
+
[key in keyof DataTableRowSlotRecipeVariant]: Array<DataTableRowSlotRecipeVariant[key]>
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
type DataTableRowSlotRecipeSlot = "root"
|
|
17
|
+
|
|
18
|
+
export type DataTableRowSlotRecipeVariantProps = {
|
|
19
|
+
[key in keyof DataTableRowSlotRecipeVariant]?: DataTableRowSlotRecipeVariant[key] | undefined
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface DataTableRowSlotRecipeRecipe {
|
|
23
|
+
__slot: DataTableRowSlotRecipeSlot
|
|
24
|
+
__type: DataTableRowSlotRecipeVariantProps
|
|
25
|
+
(props?: DataTableRowSlotRecipeVariantProps): Pretty<Record<DataTableRowSlotRecipeSlot, string>>
|
|
26
|
+
raw: (props?: DataTableRowSlotRecipeVariantProps) => DataTableRowSlotRecipeVariantProps
|
|
27
|
+
variantMap: DataTableRowSlotRecipeVariantMap
|
|
28
|
+
variantKeys: Array<keyof DataTableRowSlotRecipeVariant>
|
|
29
|
+
splitVariantProps<Props extends DataTableRowSlotRecipeVariantProps>(props: Props): [DataTableRowSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof DataTableRowSlotRecipeVariantProps>>]
|
|
30
|
+
getVariantProps: (props?: DataTableRowSlotRecipeVariantProps) => DataTableRowSlotRecipeVariantProps
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Slot class created for the MFUI DataTableRow component.
|
|
35
|
+
*/
|
|
36
|
+
export declare const dataTableRowSlotRecipe: DataTableRowSlotRecipeRecipe
|
package/dist/styled-system/recipes/{data-grid-row-slot-recipe.js → data-table-row-slot-recipe.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
2
|
import { createRecipe } from './create-recipe.js';
|
|
3
|
-
const
|
|
4
|
-
const
|
|
3
|
+
const dataTableRowSlotRecipeDefaultVariants = {};
|
|
4
|
+
const dataTableRowSlotRecipeCompoundVariants = [
|
|
5
5
|
{
|
|
6
6
|
"highlighted": true,
|
|
7
7
|
"interactive": true,
|
|
@@ -29,29 +29,29 @@ const dataGridRowSlotRecipeCompoundVariants = [
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
];
|
|
32
|
-
const
|
|
32
|
+
const dataTableRowSlotRecipeSlotNames = [
|
|
33
33
|
[
|
|
34
34
|
"root",
|
|
35
|
-
"
|
|
35
|
+
"DataTableRow__root"
|
|
36
36
|
]
|
|
37
37
|
];
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
return Object.fromEntries(
|
|
38
|
+
const dataTableRowSlotRecipeSlotFns = /* @__PURE__ */ dataTableRowSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dataTableRowSlotRecipeDefaultVariants, getSlotCompoundVariant(dataTableRowSlotRecipeCompoundVariants, slotName))]);
|
|
39
|
+
const dataTableRowSlotRecipeFn = memo((props = {}) => {
|
|
40
|
+
return Object.fromEntries(dataTableRowSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
41
41
|
});
|
|
42
|
-
const
|
|
42
|
+
const dataTableRowSlotRecipeVariantKeys = [
|
|
43
43
|
"layout",
|
|
44
44
|
"highlighted",
|
|
45
45
|
"interactive",
|
|
46
46
|
"disabled"
|
|
47
47
|
];
|
|
48
|
-
const getVariantProps = (variants) => ({ ...
|
|
49
|
-
export const
|
|
48
|
+
const getVariantProps = (variants) => ({ ...dataTableRowSlotRecipeDefaultVariants, ...compact(variants) });
|
|
49
|
+
export const dataTableRowSlotRecipe = /* @__PURE__ */ Object.assign(dataTableRowSlotRecipeFn, {
|
|
50
50
|
__recipe__: false,
|
|
51
|
-
__name__: '
|
|
51
|
+
__name__: 'dataTableRowSlotRecipe',
|
|
52
52
|
raw: (props) => props,
|
|
53
53
|
classNameMap: {},
|
|
54
|
-
variantKeys:
|
|
54
|
+
variantKeys: dataTableRowSlotRecipeVariantKeys,
|
|
55
55
|
variantMap: {
|
|
56
56
|
"layout": [
|
|
57
57
|
"default",
|
|
@@ -71,7 +71,7 @@ export const dataGridRowSlotRecipe = /* @__PURE__ */ Object.assign(dataGridRowSl
|
|
|
71
71
|
]
|
|
72
72
|
},
|
|
73
73
|
splitVariantProps(props) {
|
|
74
|
-
return splitProps(props,
|
|
74
|
+
return splitProps(props, dataTableRowSlotRecipeVariantKeys);
|
|
75
75
|
},
|
|
76
76
|
getVariantProps
|
|
77
77
|
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface DataTableSlotRecipeVariant {
|
|
6
|
+
/**
|
|
7
|
+
* @default "default"
|
|
8
|
+
*/
|
|
9
|
+
layout: "default" | "edge-to-edge"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type DataTableSlotRecipeVariantMap = {
|
|
13
|
+
[key in keyof DataTableSlotRecipeVariant]: Array<DataTableSlotRecipeVariant[key]>
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
type DataTableSlotRecipeSlot = "wrapper" | "table" | "emptyState"
|
|
17
|
+
|
|
18
|
+
export type DataTableSlotRecipeVariantProps = {
|
|
19
|
+
[key in keyof DataTableSlotRecipeVariant]?: ConditionalValue<DataTableSlotRecipeVariant[key]> | undefined
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface DataTableSlotRecipeRecipe {
|
|
23
|
+
__slot: DataTableSlotRecipeSlot
|
|
24
|
+
__type: DataTableSlotRecipeVariantProps
|
|
25
|
+
(props?: DataTableSlotRecipeVariantProps): Pretty<Record<DataTableSlotRecipeSlot, string>>
|
|
26
|
+
raw: (props?: DataTableSlotRecipeVariantProps) => DataTableSlotRecipeVariantProps
|
|
27
|
+
variantMap: DataTableSlotRecipeVariantMap
|
|
28
|
+
variantKeys: Array<keyof DataTableSlotRecipeVariant>
|
|
29
|
+
splitVariantProps<Props extends DataTableSlotRecipeVariantProps>(props: Props): [DataTableSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof DataTableSlotRecipeVariantProps>>]
|
|
30
|
+
getVariantProps: (props?: DataTableSlotRecipeVariantProps) => DataTableSlotRecipeVariantProps
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Slot class created for the MFUI DataTable component.
|
|
35
|
+
*/
|
|
36
|
+
export declare const dataTableSlotRecipe: DataTableSlotRecipeRecipe
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
+
import { createRecipe } from './create-recipe.js';
|
|
3
|
+
const dataTableSlotRecipeDefaultVariants = {
|
|
4
|
+
"layout": "default"
|
|
5
|
+
};
|
|
6
|
+
const dataTableSlotRecipeCompoundVariants = [];
|
|
7
|
+
const dataTableSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"wrapper",
|
|
10
|
+
"DataTable__wrapper"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"table",
|
|
14
|
+
"DataTable__table"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"emptyState",
|
|
18
|
+
"DataTable__emptyState"
|
|
19
|
+
]
|
|
20
|
+
];
|
|
21
|
+
const dataTableSlotRecipeSlotFns = /* @__PURE__ */ dataTableSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dataTableSlotRecipeDefaultVariants, getSlotCompoundVariant(dataTableSlotRecipeCompoundVariants, slotName))]);
|
|
22
|
+
const dataTableSlotRecipeFn = memo((props = {}) => {
|
|
23
|
+
return Object.fromEntries(dataTableSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
24
|
+
});
|
|
25
|
+
const dataTableSlotRecipeVariantKeys = [
|
|
26
|
+
"layout"
|
|
27
|
+
];
|
|
28
|
+
const getVariantProps = (variants) => ({ ...dataTableSlotRecipeDefaultVariants, ...compact(variants) });
|
|
29
|
+
export const dataTableSlotRecipe = /* @__PURE__ */ Object.assign(dataTableSlotRecipeFn, {
|
|
30
|
+
__recipe__: false,
|
|
31
|
+
__name__: 'dataTableSlotRecipe',
|
|
32
|
+
raw: (props) => props,
|
|
33
|
+
classNameMap: {},
|
|
34
|
+
variantKeys: dataTableSlotRecipeVariantKeys,
|
|
35
|
+
variantMap: {
|
|
36
|
+
"layout": [
|
|
37
|
+
"default",
|
|
38
|
+
"edge-to-edge"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
splitVariantProps(props) {
|
|
42
|
+
return splitProps(props, dataTableSlotRecipeVariantKeys);
|
|
43
|
+
},
|
|
44
|
+
getVariantProps
|
|
45
|
+
});
|
|
@@ -43,13 +43,13 @@ export * from './items-count-slot-recipe';
|
|
|
43
43
|
export * from './page-picker-slot-recipe';
|
|
44
44
|
export * from './items-per-page-slot-recipe';
|
|
45
45
|
export * from './tag-slot-recipe';
|
|
46
|
-
export * from './data-
|
|
47
|
-
export * from './data-
|
|
48
|
-
export * from './data-
|
|
49
|
-
export * from './data-
|
|
50
|
-
export * from './data-
|
|
51
|
-
export * from './data-
|
|
52
|
-
export * from './data-
|
|
46
|
+
export * from './data-table-body-slot-recipe';
|
|
47
|
+
export * from './data-table-cell-slot-recipe';
|
|
48
|
+
export * from './data-table-slot-recipe';
|
|
49
|
+
export * from './data-table-header-cell-slot-recipe';
|
|
50
|
+
export * from './data-table-header-row-slot-recipe';
|
|
51
|
+
export * from './data-table-header-slot-recipe';
|
|
52
|
+
export * from './data-table-row-slot-recipe';
|
|
53
53
|
export * from './sub-navigation-slot-recipe';
|
|
54
54
|
export * from './progress-indicator-slot-recipe';
|
|
55
55
|
export * from './stack-slot-recipe';
|
|
@@ -42,13 +42,13 @@ export * from './items-count-slot-recipe.js';
|
|
|
42
42
|
export * from './page-picker-slot-recipe.js';
|
|
43
43
|
export * from './items-per-page-slot-recipe.js';
|
|
44
44
|
export * from './tag-slot-recipe.js';
|
|
45
|
-
export * from './data-
|
|
46
|
-
export * from './data-
|
|
47
|
-
export * from './data-
|
|
48
|
-
export * from './data-
|
|
49
|
-
export * from './data-
|
|
50
|
-
export * from './data-
|
|
51
|
-
export * from './data-
|
|
45
|
+
export * from './data-table-body-slot-recipe.js';
|
|
46
|
+
export * from './data-table-cell-slot-recipe.js';
|
|
47
|
+
export * from './data-table-slot-recipe.js';
|
|
48
|
+
export * from './data-table-header-cell-slot-recipe.js';
|
|
49
|
+
export * from './data-table-header-row-slot-recipe.js';
|
|
50
|
+
export * from './data-table-header-slot-recipe.js';
|
|
51
|
+
export * from './data-table-row-slot-recipe.js';
|
|
52
52
|
export * from './sub-navigation-slot-recipe.js';
|
|
53
53
|
export * from './progress-indicator-slot-recipe.js';
|
|
54
54
|
export * from './stack-slot-recipe.js';
|
|
@@ -10,7 +10,7 @@ type NarrowViewportMainNavigationSlotRecipeVariantMap = {
|
|
|
10
10
|
[key in keyof NarrowViewportMainNavigationSlotRecipeVariant]: Array<NarrowViewportMainNavigationSlotRecipeVariant[key]>
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
type NarrowViewportMainNavigationSlotRecipeSlot = "root" | "backdrop" | "container" | "nav" | "list" | "featureShortcut" | "featureShortcutAnchor" | "labelGroup" | "iconAndLabel" | "lockIcon" | "listItem" | "listItemAnchor" | "listItemAnchorIcon" | "parentDetails" | "parentSummary" | "parentSummaryIcon" | "childrenList" | "childrenListItem" | "childrenListItemAnchor" | "footer" | "toggleButton" | "toggleButtonIcon"
|
|
13
|
+
type NarrowViewportMainNavigationSlotRecipeSlot = "root" | "backdrop" | "container" | "nav" | "list" | "featureShortcut" | "featureShortcutAnchor" | "labelGroup" | "iconAndLabel" | "lockIcon" | "listItem" | "listItemAnchor" | "listItemAnchorIcon" | "parentDetails" | "parentSummary" | "parentSummaryIcon" | "groupLabelSection" | "groupLabel" | "groupLabelText" | "childrenList" | "childrenListItem" | "childrenListItemAnchor" | "footer" | "toggleButton" | "toggleButtonIcon"
|
|
14
14
|
|
|
15
15
|
export type NarrowViewportMainNavigationSlotRecipeVariantProps = {
|
|
16
16
|
[key in keyof NarrowViewportMainNavigationSlotRecipeVariant]?: ConditionalValue<NarrowViewportMainNavigationSlotRecipeVariant[key]> | undefined
|
|
@@ -67,6 +67,18 @@ const narrowViewportMainNavigationSlotRecipeSlotNames = [
|
|
|
67
67
|
"parentSummaryIcon",
|
|
68
68
|
"NarrowViewportMainNavigation__parentSummaryIcon"
|
|
69
69
|
],
|
|
70
|
+
[
|
|
71
|
+
"groupLabelSection",
|
|
72
|
+
"NarrowViewportMainNavigation__groupLabelSection"
|
|
73
|
+
],
|
|
74
|
+
[
|
|
75
|
+
"groupLabel",
|
|
76
|
+
"NarrowViewportMainNavigation__groupLabel"
|
|
77
|
+
],
|
|
78
|
+
[
|
|
79
|
+
"groupLabelText",
|
|
80
|
+
"NarrowViewportMainNavigation__groupLabelText"
|
|
81
|
+
],
|
|
70
82
|
[
|
|
71
83
|
"childrenList",
|
|
72
84
|
"NarrowViewportMainNavigation__childrenList"
|
|
@@ -4,6 +4,10 @@ import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
|
4
4
|
|
|
5
5
|
interface StatusLabelSlotRecipeVariant {
|
|
6
6
|
/**
|
|
7
|
+
* @default "neutral"
|
|
8
|
+
*/
|
|
9
|
+
status: "neutral" | "success" | "error" | "caution"
|
|
10
|
+
/**
|
|
7
11
|
* @default "medium"
|
|
8
12
|
*/
|
|
9
13
|
size: "medium" | "small"
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
2
|
import { createRecipe } from './create-recipe.js';
|
|
3
3
|
const statusLabelSlotRecipeDefaultVariants = {
|
|
4
|
-
"size": "medium"
|
|
4
|
+
"size": "medium",
|
|
5
|
+
"status": "neutral"
|
|
5
6
|
};
|
|
6
7
|
const statusLabelSlotRecipeCompoundVariants = [];
|
|
7
8
|
const statusLabelSlotRecipeSlotNames = [
|
|
@@ -23,6 +24,7 @@ const statusLabelSlotRecipeFn = memo((props = {}) => {
|
|
|
23
24
|
return Object.fromEntries(statusLabelSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
24
25
|
});
|
|
25
26
|
const statusLabelSlotRecipeVariantKeys = [
|
|
27
|
+
"status",
|
|
26
28
|
"size"
|
|
27
29
|
];
|
|
28
30
|
const getVariantProps = (variants) => ({ ...statusLabelSlotRecipeDefaultVariants, ...compact(variants) });
|
|
@@ -33,6 +35,12 @@ export const statusLabelSlotRecipe = /* @__PURE__ */ Object.assign(statusLabelSl
|
|
|
33
35
|
classNameMap: {},
|
|
34
36
|
variantKeys: statusLabelSlotRecipeVariantKeys,
|
|
35
37
|
variantMap: {
|
|
38
|
+
"status": [
|
|
39
|
+
"neutral",
|
|
40
|
+
"success",
|
|
41
|
+
"error",
|
|
42
|
+
"caution"
|
|
43
|
+
],
|
|
36
44
|
"size": [
|
|
37
45
|
"medium",
|
|
38
46
|
"small"
|