@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.
Files changed (130) hide show
  1. package/dist/src/DataGrid/index.d.ts +16 -8
  2. package/dist/src/DataGrid/index.js +9 -1
  3. package/dist/src/{DataGrid/DataGrid.d.ts → DataTable/DataTable.d.ts} +94 -82
  4. package/dist/src/{DataGrid/DataGrid.js → DataTable/DataTable.js} +120 -97
  5. package/dist/src/{DataGrid/DataGrid.types.d.ts → DataTable/DataTable.types.d.ts} +11 -11
  6. package/dist/src/DataTable/DataTableBody/DataTableBody.d.ts +1 -0
  7. package/dist/src/DataTable/DataTableBody/DataTableBody.js +19 -0
  8. package/dist/src/{DataGrid/DataGridBody/DataGridBody.types.d.ts → DataTable/DataTableBody/DataTableBody.types.d.ts} +2 -2
  9. package/dist/src/DataTable/DataTableBody/index.d.ts +2 -0
  10. package/dist/src/DataTable/DataTableBody/index.js +1 -0
  11. package/dist/src/DataTable/DataTableCell/DataTableCell.d.ts +2 -0
  12. package/dist/src/{DataGrid/DataGridCell/DataGridCell.js → DataTable/DataTableCell/DataTableCell.js} +20 -13
  13. package/dist/src/{DataGrid/DataGridCell/DataGridCell.types.d.ts → DataTable/DataTableCell/DataTableCell.types.d.ts} +8 -8
  14. package/dist/src/DataTable/DataTableCell/index.d.ts +2 -0
  15. package/dist/src/DataTable/DataTableCell/index.js +1 -0
  16. package/dist/src/DataTable/DataTableHeader/DataTableHeader.d.ts +1 -0
  17. package/dist/src/DataTable/DataTableHeader/DataTableHeader.js +12 -0
  18. package/dist/src/{DataGrid/DataGridHeader/DataGridHeader.types.d.ts → DataTable/DataTableHeader/DataTableHeader.types.d.ts} +2 -2
  19. package/dist/src/DataTable/DataTableHeader/index.d.ts +2 -0
  20. package/dist/src/DataTable/DataTableHeader/index.js +1 -0
  21. package/dist/src/DataTable/DataTableHeaderCell/DataTableHeaderCell.d.ts +2 -0
  22. package/dist/src/DataTable/DataTableHeaderCell/DataTableHeaderCell.js +58 -0
  23. package/dist/src/{DataGrid/DataGridHeaderCell/DataGridHeaderCell.types.d.ts → DataTable/DataTableHeaderCell/DataTableHeaderCell.types.d.ts} +6 -6
  24. package/dist/src/DataTable/DataTableHeaderCell/index.d.ts +2 -0
  25. package/dist/src/DataTable/DataTableHeaderCell/index.js +1 -0
  26. package/dist/src/DataTable/DataTableHeaderRow/DataTableHeaderRow.d.ts +2 -0
  27. package/dist/src/DataTable/DataTableHeaderRow/DataTableHeaderRow.js +31 -0
  28. package/dist/src/{DataGrid/DataGridHeaderRow/DataGridHeaderRow.types.d.ts → DataTable/DataTableHeaderRow/DataTableHeaderRow.types.d.ts} +3 -3
  29. package/dist/src/DataTable/DataTableHeaderRow/index.d.ts +2 -0
  30. package/dist/src/DataTable/DataTableHeaderRow/index.js +1 -0
  31. package/dist/src/DataTable/DataTableProvider.d.ts +27 -0
  32. package/dist/src/{DataGrid/DataGridProvider.js → DataTable/DataTableProvider.js} +9 -9
  33. package/dist/src/DataTable/DataTableRow/DataTableRow.d.ts +2 -0
  34. package/dist/src/{DataGrid/DataGridRow/DataGridRow.js → DataTable/DataTableRow/DataTableRow.js} +11 -10
  35. package/dist/src/{DataGrid/DataGridRow/DataGridRow.types.d.ts → DataTable/DataTableRow/DataTableRow.types.d.ts} +5 -5
  36. package/dist/src/DataTable/DataTableRow/index.d.ts +2 -0
  37. package/dist/src/DataTable/DataTableRow/index.js +1 -0
  38. package/dist/src/DataTable/index.d.ts +8 -0
  39. package/dist/src/DataTable/index.js +1 -0
  40. package/dist/src/MainNavigation/BaseMainNavigation.js +25 -10
  41. package/dist/src/MainNavigation/MainNavigation.types.d.ts +49 -1
  42. package/dist/src/MainNavigation/NarrowViewportMainNavigation.js +17 -2
  43. package/dist/src/StatusLabel/StatusLabel.d.ts +1 -0
  44. package/dist/src/StatusLabel/StatusLabel.js +2 -2
  45. package/dist/src/StatusLabel/StatusLabel.types.d.ts +6 -0
  46. package/dist/src/index.d.ts +1 -0
  47. package/dist/src/index.js +1 -0
  48. package/dist/src/utilities/dom/useFixedColumns.d.ts +1 -1
  49. package/dist/src/utilities/dom/useFixedColumns.js +1 -1
  50. package/dist/src/utilities/react/isComponentOrWrapped.d.ts +7 -7
  51. package/dist/src/utilities/react/isComponentOrWrapped.js +7 -7
  52. package/dist/styled-system/jsx/is-valid-prop.js +1 -1
  53. package/dist/styled-system/patterns/divider.d.ts +1 -1
  54. package/dist/styled-system/patterns/float.d.ts +1 -1
  55. package/dist/styled-system/recipes/base-main-navigation-slot-recipe.d.ts +1 -1
  56. package/dist/styled-system/recipes/base-main-navigation-slot-recipe.js +12 -0
  57. package/dist/styled-system/recipes/data-table-body-slot-recipe.d.ts +33 -0
  58. package/dist/styled-system/recipes/data-table-body-slot-recipe.js +28 -0
  59. package/dist/styled-system/recipes/data-table-cell-slot-recipe.d.ts +38 -0
  60. package/dist/styled-system/recipes/data-table-cell-slot-recipe.js +77 -0
  61. package/dist/styled-system/recipes/data-table-header-cell-slot-recipe.d.ts +37 -0
  62. package/dist/styled-system/recipes/data-table-header-cell-slot-recipe.js +73 -0
  63. package/dist/styled-system/recipes/data-table-header-row-slot-recipe.d.ts +33 -0
  64. package/dist/styled-system/recipes/data-table-header-row-slot-recipe.js +28 -0
  65. package/dist/styled-system/recipes/data-table-header-slot-recipe.d.ts +33 -0
  66. package/dist/styled-system/recipes/data-table-header-slot-recipe.js +35 -0
  67. package/dist/styled-system/recipes/data-table-row-slot-recipe.d.ts +36 -0
  68. package/dist/styled-system/recipes/{data-grid-row-slot-recipe.js → data-table-row-slot-recipe.js} +13 -13
  69. package/dist/styled-system/recipes/data-table-slot-recipe.d.ts +36 -0
  70. package/dist/styled-system/recipes/data-table-slot-recipe.js +45 -0
  71. package/dist/styled-system/recipes/index.d.ts +7 -7
  72. package/dist/styled-system/recipes/index.js +7 -7
  73. package/dist/styled-system/recipes/narrow-viewport-main-navigation-slot-recipe.d.ts +1 -1
  74. package/dist/styled-system/recipes/narrow-viewport-main-navigation-slot-recipe.js +12 -0
  75. package/dist/styled-system/recipes/status-label-slot-recipe.d.ts +4 -0
  76. package/dist/styled-system/recipes/status-label-slot-recipe.js +9 -1
  77. package/dist/styled-system/tokens/index.js +117 -117
  78. package/dist/styled-system/tokens/tokens.d.ts +2 -2
  79. package/dist/styled-system/types/csstype.d.ts +6405 -5133
  80. package/dist/styled-system/types/style-props.d.ts +2748 -2163
  81. package/dist/styled-system/types/system-types.d.ts +14 -132
  82. package/dist/styles.css +222 -515
  83. package/dist/theme-orange.css +3 -0
  84. package/dist/tsconfig.build.tsbuildinfo +1 -1
  85. package/package.json +9 -9
  86. package/dist/src/DataGrid/DataGridBody/DataGridBody.d.ts +0 -1
  87. package/dist/src/DataGrid/DataGridBody/DataGridBody.js +0 -17
  88. package/dist/src/DataGrid/DataGridBody/index.d.ts +0 -2
  89. package/dist/src/DataGrid/DataGridBody/index.js +0 -1
  90. package/dist/src/DataGrid/DataGridCell/DataGridCell.d.ts +0 -2
  91. package/dist/src/DataGrid/DataGridCell/index.d.ts +0 -2
  92. package/dist/src/DataGrid/DataGridCell/index.js +0 -1
  93. package/dist/src/DataGrid/DataGridHeader/DataGridHeader.d.ts +0 -1
  94. package/dist/src/DataGrid/DataGridHeader/DataGridHeader.js +0 -11
  95. package/dist/src/DataGrid/DataGridHeader/index.d.ts +0 -2
  96. package/dist/src/DataGrid/DataGridHeader/index.js +0 -1
  97. package/dist/src/DataGrid/DataGridHeaderCell/DataGridHeaderCell.d.ts +0 -2
  98. package/dist/src/DataGrid/DataGridHeaderCell/DataGridHeaderCell.js +0 -50
  99. package/dist/src/DataGrid/DataGridHeaderCell/index.d.ts +0 -2
  100. package/dist/src/DataGrid/DataGridHeaderCell/index.js +0 -1
  101. package/dist/src/DataGrid/DataGridHeaderRow/DataGridHeaderRow.d.ts +0 -2
  102. package/dist/src/DataGrid/DataGridHeaderRow/DataGridHeaderRow.js +0 -30
  103. package/dist/src/DataGrid/DataGridHeaderRow/index.d.ts +0 -2
  104. package/dist/src/DataGrid/DataGridHeaderRow/index.js +0 -1
  105. package/dist/src/DataGrid/DataGridProvider.d.ts +0 -27
  106. package/dist/src/DataGrid/DataGridRow/DataGridRow.d.ts +0 -2
  107. package/dist/src/DataGrid/DataGridRow/index.d.ts +0 -2
  108. package/dist/src/DataGrid/DataGridRow/index.js +0 -1
  109. package/dist/styled-system/recipes/data-grid-body-slot-recipe.d.ts +0 -33
  110. package/dist/styled-system/recipes/data-grid-body-slot-recipe.js +0 -28
  111. package/dist/styled-system/recipes/data-grid-cell-slot-recipe.d.ts +0 -38
  112. package/dist/styled-system/recipes/data-grid-cell-slot-recipe.js +0 -77
  113. package/dist/styled-system/recipes/data-grid-header-cell-slot-recipe.d.ts +0 -37
  114. package/dist/styled-system/recipes/data-grid-header-cell-slot-recipe.js +0 -73
  115. package/dist/styled-system/recipes/data-grid-header-row-slot-recipe.d.ts +0 -33
  116. package/dist/styled-system/recipes/data-grid-header-row-slot-recipe.js +0 -28
  117. package/dist/styled-system/recipes/data-grid-header-slot-recipe.d.ts +0 -33
  118. package/dist/styled-system/recipes/data-grid-header-slot-recipe.js +0 -35
  119. package/dist/styled-system/recipes/data-grid-row-slot-recipe.d.ts +0 -36
  120. package/dist/styled-system/recipes/data-grid-slot-recipe.d.ts +0 -36
  121. package/dist/styled-system/recipes/data-grid-slot-recipe.js +0 -45
  122. /package/dist/src/{DataGrid/DataGrid.types.js → DataTable/DataTable.types.js} +0 -0
  123. /package/dist/src/{DataGrid/DataGridBody/DataGridBody.types.js → DataTable/DataTableBody/DataTableBody.types.js} +0 -0
  124. /package/dist/src/{DataGrid/DataGridCell/DataGridCell.types.js → DataTable/DataTableCell/DataTableCell.types.js} +0 -0
  125. /package/dist/src/{DataGrid/DataGridHeader/DataGridHeader.types.js → DataTable/DataTableHeader/DataTableHeader.types.js} +0 -0
  126. /package/dist/src/{DataGrid/DataGridHeaderCell/DataGridHeaderCell.types.js → DataTable/DataTableHeaderCell/DataTableHeaderCell.types.js} +0 -0
  127. /package/dist/src/{DataGrid/DataGridHeaderRow/DataGridHeaderRow.types.js → DataTable/DataTableHeaderRow/DataTableHeaderRow.types.js} +0 -0
  128. /package/dist/src/{DataGrid/DataGridRow/DataGridRow.types.js → DataTable/DataTableRow/DataTableRow.types.js} +0 -0
  129. /package/dist/src/{DataGrid → DataTable}/utils/handleCheckbox.d.ts +0 -0
  130. /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
- });