@moneyforward/mfui-components 3.35.0 → 3.36.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/DataTable/DataTable.d.ts +50 -0
- package/dist/src/DataTable/DataTable.js +44 -0
- package/dist/src/DataTable/DataTableFilterButton/DataTableFilterButton.d.ts +6 -0
- package/dist/src/DataTable/DataTableFilterButton/DataTableFilterButton.js +63 -0
- package/dist/src/DataTable/DataTableFilterButton/DataTableFilterButton.types.d.ts +49 -0
- package/dist/src/DataTable/DataTableFilterButton/DataTableFilterButton.types.js +1 -0
- package/dist/src/DataTable/DataTableFilterButton/index.d.ts +2 -0
- package/dist/src/DataTable/DataTableFilterButton/index.js +1 -0
- package/dist/src/DataTable/DataTableHeaderCell/DataTableHeaderCell.js +6 -2
- package/dist/src/DataTable/DataTableHeaderCell/DataTableHeaderCell.types.d.ts +23 -1
- package/dist/src/DataTable/DataTableSortButton/DataTableSortButton.d.ts +4 -0
- package/dist/src/DataTable/DataTableSortButton/DataTableSortButton.js +17 -0
- package/dist/src/DataTable/DataTableSortButton/DataTableSortButton.types.d.ts +25 -0
- package/dist/src/DataTable/DataTableSortButton/DataTableSortButton.types.js +1 -0
- package/dist/src/DataTable/DataTableSortButton/index.d.ts +2 -0
- package/dist/src/DataTable/DataTableSortButton/index.js +1 -0
- package/dist/src/DataTable/index.d.ts +2 -0
- package/dist/src/DateTimeSelection/DatePicker/DatePickerDateCell/DatePickerDateCell.js +3 -0
- package/dist/src/DateTimeSelection/DateRangePicker/DateRangePickerPopover/DateRangePickerCalendar/DateRangePickerDateCell.d.ts +2 -2
- package/dist/src/DateTimeSelection/DateRangePicker/DateRangePickerPopover/DateRangePickerCalendar/DateRangePickerDateCell.js +5 -2
- package/dist/src/DateTimeSelection/DateRangePicker/DateRangePickerTrigger/DateRangePickerTrigger.js +3 -2
- package/dist/src/DateTimeSelection/DateRangePicker/DateRangePickerTrigger/DateRangePickerTrigger.types.d.ts +17 -0
- package/dist/src/DateTimeSelection/FilterDateRangePicker/DateRangePickerContent/DateRangePickerContent.js +3 -1
- package/dist/src/DateTimeSelection/FilterDateRangePicker/FilterDateRangePicker.types.d.ts +2 -1
- package/dist/src/DateTimeSelection/FilterMonthPicker/FilterMonthPicker.types.d.ts +2 -1
- package/dist/src/DateTimeSelection/FilterMonthPicker/MonthPickerPopover/MonthPickerPopover.js +2 -1
- package/dist/src/DateTimeSelection/MonthRangePicker/MonthRangePickerMonthCell/MonthRangePickerMonthCell.d.ts +1 -0
- package/dist/src/DateTimeSelection/MonthRangePicker/MonthRangePickerMonthCell/MonthRangePickerMonthCell.js +11 -8
- package/dist/src/DateTimeSelection/MonthRangePicker/MonthRangePickerMonthCell/constants.d.ts +7 -15
- package/dist/src/DateTimeSelection/MonthRangePicker/MonthRangePickerMonthCell/constants.js +26 -13
- package/dist/src/DateTimeSelection/TimePicker/TimePicker.d.ts +2 -0
- package/dist/src/DateTimeSelection/TimePicker/TimePicker.js +3 -2
- package/dist/src/DateTimeSelection/TimePicker/TimePicker.types.d.ts +27 -0
- package/dist/src/DateTimeSelection/shared/BasePicker/BasePicker.js +4 -1
- package/dist/src/DateTimeSelection/shared/BasePicker/constants.d.ts +1 -1
- package/dist/src/DateTimeSelection/shared/BasePicker/constants.js +2 -0
- package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePicker.d.ts +1 -1
- package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePicker.js +4 -4
- package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePicker.types.d.ts +33 -1
- package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePickerPopover/BaseRangePickerCalendar/BaseRangePickerDateCell.d.ts +2 -2
- package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePickerPopover/BaseRangePickerCalendar/BaseRangePickerDateCell.js +15 -36
- package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePickerPopover/BaseRangePickerCalendar/index.d.ts +0 -1
- package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePickerPopover/BaseRangePickerCalendar/index.js +0 -1
- package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePickerPopover/BaseRangePickerPopover.js +2 -1
- package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePickerTrigger/BaseRangePickerTrigger.js +3 -2
- package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePickerTrigger/BaseRangePickerTrigger.types.d.ts +17 -0
- package/dist/src/DateTimeSelection/shared/accessibility/constants.d.ts +7 -16
- package/dist/src/DateTimeSelection/shared/accessibility/constants.js +30 -14
- package/dist/src/DateTimeSelection/shared/accessibility/generateDateLabel.d.ts +6 -1
- package/dist/src/DateTimeSelection/shared/accessibility/generateDateLabel.js +14 -8
- package/dist/src/DeterminateProgressIndicator/DeterminateProgressIndicator.d.ts +18 -0
- package/dist/src/DeterminateProgressIndicator/DeterminateProgressIndicator.js +20 -0
- package/dist/src/DeterminateProgressIndicator/DeterminateProgressIndicator.types.d.ts +41 -0
- package/dist/src/DeterminateProgressIndicator/DeterminateProgressIndicator.types.js +1 -0
- package/dist/src/DeterminateProgressIndicator/index.d.ts +2 -0
- package/dist/src/DeterminateProgressIndicator/index.js +1 -0
- package/dist/src/FilterSelectBox/FilterSelectBox.types.d.ts +1 -1
- package/dist/src/MultipleFilterSelectBox/MultipleFilterSelectBox.types.d.ts +1 -1
- package/dist/src/MultipleSelectBox/MultipleSelectBox.d.ts +1 -1
- package/dist/src/MultipleSelectBox/MultipleSelectBox.js +2 -2
- package/dist/src/MultipleSelectBox/MultipleSelectBox.types.d.ts +1 -1
- package/dist/src/MultipleSelectBox/MultipleSelectBoxTrigger/MultipleSelectBoxTrigger.js +2 -2
- package/dist/src/MultipleSelectBox/MultipleSelectBoxTrigger/MultipleSelectBoxTrigger.types.d.ts +39 -1
- package/dist/src/Popover/Popover.js +1 -1
- package/dist/src/Popover/Popover.types.d.ts +1 -1
- package/dist/src/SelectBox/SelectBox.d.ts +1 -1
- package/dist/src/SelectBox/SelectBox.js +3 -3
- package/dist/src/SelectBox/SelectBox.types.d.ts +31 -1
- package/dist/src/TextBox/TextBox.d.ts +2 -1
- package/dist/src/TextBox/TextBox.js +4 -3
- package/dist/src/TextBox/TextBox.types.d.ts +26 -0
- package/dist/src/Textarea/Textarea.d.ts +2 -1
- package/dist/src/Textarea/Textarea.js +11 -3
- package/dist/src/Textarea/Textarea.types.d.ts +26 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/styled-system/recipes/base-range-picker-trigger-slot-recipe.d.ts +1 -0
- package/dist/styled-system/recipes/base-range-picker-trigger-slot-recipe.js +5 -0
- package/dist/styled-system/recipes/data-table-filter-button-slot-recipe.d.ts +33 -0
- package/dist/styled-system/recipes/data-table-filter-button-slot-recipe.js +43 -0
- package/dist/styled-system/recipes/data-table-header-cell-slot-recipe.d.ts +3 -2
- package/dist/styled-system/recipes/data-table-header-cell-slot-recipe.js +69 -1
- package/dist/styled-system/recipes/data-table-sort-button-slot-recipe.d.ts +33 -0
- package/dist/styled-system/recipes/data-table-sort-button-slot-recipe.js +35 -0
- package/dist/styled-system/recipes/determinate-progress-indicator-slot-recipe.d.ts +36 -0
- package/dist/styled-system/recipes/determinate-progress-indicator-slot-recipe.js +61 -0
- package/dist/styled-system/recipes/index.d.ts +3 -0
- package/dist/styled-system/recipes/index.js +3 -0
- package/dist/styled-system/recipes/text-box-slot-recipe.d.ts +4 -0
- package/dist/styled-system/recipes/text-box-slot-recipe.js +8 -2
- package/dist/styled-system/recipes/textarea-slot-recipe.d.ts +4 -0
- package/dist/styled-system/recipes/textarea-slot-recipe.js +6 -0
- package/dist/styled-system/recipes/time-picker-slot-recipe.d.ts +4 -0
- package/dist/styled-system/recipes/time-picker-slot-recipe.js +8 -2
- package/dist/styles.css +265 -10
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePickerPopover/BaseRangePickerCalendar/constants.d.ts +0 -18
- package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePickerPopover/BaseRangePickerCalendar/constants.js +0 -18
|
@@ -1,7 +1,62 @@
|
|
|
1
1
|
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
2
|
import { createRecipe } from './create-recipe.js';
|
|
3
3
|
const dataTableHeaderCellSlotRecipeDefaultVariants = {};
|
|
4
|
-
const dataTableHeaderCellSlotRecipeCompoundVariants = [
|
|
4
|
+
const dataTableHeaderCellSlotRecipeCompoundVariants = [
|
|
5
|
+
{
|
|
6
|
+
"size": "small",
|
|
7
|
+
"hasActions": false,
|
|
8
|
+
"css": {
|
|
9
|
+
"headerCell": {
|
|
10
|
+
"paddingY": "mfui.size.padding.data-table-cell.vertical.condensed",
|
|
11
|
+
"paddingX": "mfui.size.padding.data-table-cell.horizontal.condensed",
|
|
12
|
+
"minHeight": "mfui.size.dimension.data-table-cell.height.condensed"
|
|
13
|
+
},
|
|
14
|
+
"sortButton": {
|
|
15
|
+
"paddingY": "mfui.size.padding.data-table-cell.vertical.condensed",
|
|
16
|
+
"paddingX": "mfui.size.padding.data-table-cell.horizontal.condensed",
|
|
17
|
+
"minHeight": "mfui.size.dimension.data-table-cell.height.condensed"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"size": "small",
|
|
23
|
+
"hasActions": true,
|
|
24
|
+
"css": {
|
|
25
|
+
"container": {
|
|
26
|
+
"paddingY": "mfui.size.padding.data-table-cell.vertical.condensed",
|
|
27
|
+
"paddingX": "mfui.size.padding.data-table-cell.horizontal.condensed",
|
|
28
|
+
"minHeight": "mfui.size.dimension.data-table-cell.height.condensed"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"size": "medium",
|
|
34
|
+
"hasActions": false,
|
|
35
|
+
"css": {
|
|
36
|
+
"headerCell": {
|
|
37
|
+
"paddingY": "mfui.size.padding.data-table-cell.vertical.comfort",
|
|
38
|
+
"paddingX": "mfui.size.padding.data-table-cell.horizontal.comfort",
|
|
39
|
+
"minHeight": "mfui.size.dimension.data-table-cell.height.comfort"
|
|
40
|
+
},
|
|
41
|
+
"sortButton": {
|
|
42
|
+
"paddingY": "mfui.size.padding.data-table-cell.vertical.comfort",
|
|
43
|
+
"paddingX": "mfui.size.padding.data-table-cell.horizontal.comfort",
|
|
44
|
+
"minHeight": "mfui.size.dimension.data-table-cell.height.comfort"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"size": "medium",
|
|
50
|
+
"hasActions": true,
|
|
51
|
+
"css": {
|
|
52
|
+
"container": {
|
|
53
|
+
"paddingY": "mfui.size.padding.data-table-cell.vertical.comfort",
|
|
54
|
+
"paddingX": "mfui.size.padding.data-table-cell.horizontal.comfort",
|
|
55
|
+
"minHeight": "mfui.size.dimension.data-table-cell.height.comfort"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
];
|
|
5
60
|
const dataTableHeaderCellSlotRecipeSlotNames = [
|
|
6
61
|
[
|
|
7
62
|
"root",
|
|
@@ -26,6 +81,14 @@ const dataTableHeaderCellSlotRecipeSlotNames = [
|
|
|
26
81
|
[
|
|
27
82
|
"unsortedIcon",
|
|
28
83
|
"DataTableHeaderCell__unsortedIcon"
|
|
84
|
+
],
|
|
85
|
+
[
|
|
86
|
+
"container",
|
|
87
|
+
"DataTableHeaderCell__container"
|
|
88
|
+
],
|
|
89
|
+
[
|
|
90
|
+
"actionsContainer",
|
|
91
|
+
"DataTableHeaderCell__actionsContainer"
|
|
29
92
|
]
|
|
30
93
|
];
|
|
31
94
|
const dataTableHeaderCellSlotRecipeSlotFns = /* @__PURE__ */ dataTableHeaderCellSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dataTableHeaderCellSlotRecipeDefaultVariants, getSlotCompoundVariant(dataTableHeaderCellSlotRecipeCompoundVariants, slotName))]);
|
|
@@ -34,6 +97,7 @@ const dataTableHeaderCellSlotRecipeFn = memo((props = {}) => {
|
|
|
34
97
|
});
|
|
35
98
|
const dataTableHeaderCellSlotRecipeVariantKeys = [
|
|
36
99
|
"size",
|
|
100
|
+
"hasActions",
|
|
37
101
|
"fixedColumn",
|
|
38
102
|
"verticalBorder",
|
|
39
103
|
"edgeFixedColumn",
|
|
@@ -52,6 +116,10 @@ export const dataTableHeaderCellSlotRecipe = /* @__PURE__ */ Object.assign(dataT
|
|
|
52
116
|
"small",
|
|
53
117
|
"medium"
|
|
54
118
|
],
|
|
119
|
+
"hasActions": [
|
|
120
|
+
"true",
|
|
121
|
+
"false"
|
|
122
|
+
],
|
|
55
123
|
"fixedColumn": [
|
|
56
124
|
"true"
|
|
57
125
|
],
|
|
@@ -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 DataTableSortButtonSlotRecipeVariant {
|
|
6
|
+
sorted: boolean
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type DataTableSortButtonSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof DataTableSortButtonSlotRecipeVariant]: Array<DataTableSortButtonSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
type DataTableSortButtonSlotRecipeSlot = "root"
|
|
14
|
+
|
|
15
|
+
export type DataTableSortButtonSlotRecipeVariantProps = {
|
|
16
|
+
[key in keyof DataTableSortButtonSlotRecipeVariant]?: ConditionalValue<DataTableSortButtonSlotRecipeVariant[key]> | undefined
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface DataTableSortButtonSlotRecipeRecipe {
|
|
20
|
+
__slot: DataTableSortButtonSlotRecipeSlot
|
|
21
|
+
__type: DataTableSortButtonSlotRecipeVariantProps
|
|
22
|
+
(props?: DataTableSortButtonSlotRecipeVariantProps): Pretty<Record<DataTableSortButtonSlotRecipeSlot, string>>
|
|
23
|
+
raw: (props?: DataTableSortButtonSlotRecipeVariantProps) => DataTableSortButtonSlotRecipeVariantProps
|
|
24
|
+
variantMap: DataTableSortButtonSlotRecipeVariantMap
|
|
25
|
+
variantKeys: Array<keyof DataTableSortButtonSlotRecipeVariant>
|
|
26
|
+
splitVariantProps<Props extends DataTableSortButtonSlotRecipeVariantProps>(props: Props): [DataTableSortButtonSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof DataTableSortButtonSlotRecipeVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: DataTableSortButtonSlotRecipeVariantProps) => DataTableSortButtonSlotRecipeVariantProps
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Slot class created for the MFUI DataTable.SortButton sub-component.
|
|
32
|
+
*/
|
|
33
|
+
export declare const dataTableSortButtonSlotRecipe: DataTableSortButtonSlotRecipeRecipe
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
+
import { createRecipe } from './create-recipe.js';
|
|
3
|
+
const dataTableSortButtonSlotRecipeDefaultVariants = {};
|
|
4
|
+
const dataTableSortButtonSlotRecipeCompoundVariants = [];
|
|
5
|
+
const dataTableSortButtonSlotRecipeSlotNames = [
|
|
6
|
+
[
|
|
7
|
+
"root",
|
|
8
|
+
"DataTableSortButton__root"
|
|
9
|
+
]
|
|
10
|
+
];
|
|
11
|
+
const dataTableSortButtonSlotRecipeSlotFns = /* @__PURE__ */ dataTableSortButtonSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dataTableSortButtonSlotRecipeDefaultVariants, getSlotCompoundVariant(dataTableSortButtonSlotRecipeCompoundVariants, slotName))]);
|
|
12
|
+
const dataTableSortButtonSlotRecipeFn = memo((props = {}) => {
|
|
13
|
+
return Object.fromEntries(dataTableSortButtonSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
14
|
+
});
|
|
15
|
+
const dataTableSortButtonSlotRecipeVariantKeys = [
|
|
16
|
+
"sorted"
|
|
17
|
+
];
|
|
18
|
+
const getVariantProps = (variants) => ({ ...dataTableSortButtonSlotRecipeDefaultVariants, ...compact(variants) });
|
|
19
|
+
export const dataTableSortButtonSlotRecipe = /* @__PURE__ */ Object.assign(dataTableSortButtonSlotRecipeFn, {
|
|
20
|
+
__recipe__: false,
|
|
21
|
+
__name__: 'dataTableSortButtonSlotRecipe',
|
|
22
|
+
raw: (props) => props,
|
|
23
|
+
classNameMap: {},
|
|
24
|
+
variantKeys: dataTableSortButtonSlotRecipeVariantKeys,
|
|
25
|
+
variantMap: {
|
|
26
|
+
"sorted": [
|
|
27
|
+
"true",
|
|
28
|
+
"false"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
splitVariantProps(props) {
|
|
32
|
+
return splitProps(props, dataTableSortButtonSlotRecipeVariantKeys);
|
|
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 DeterminateProgressIndicatorSlotRecipeVariant {
|
|
6
|
+
/**
|
|
7
|
+
* @default "right"
|
|
8
|
+
*/
|
|
9
|
+
valueTextPosition: "right" | "top"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type DeterminateProgressIndicatorSlotRecipeVariantMap = {
|
|
13
|
+
[key in keyof DeterminateProgressIndicatorSlotRecipeVariant]: Array<DeterminateProgressIndicatorSlotRecipeVariant[key]>
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
type DeterminateProgressIndicatorSlotRecipeSlot = "root" | "progressIndicator" | "track" | "progress" | "valueText" | "value" | "unit"
|
|
17
|
+
|
|
18
|
+
export type DeterminateProgressIndicatorSlotRecipeVariantProps = {
|
|
19
|
+
[key in keyof DeterminateProgressIndicatorSlotRecipeVariant]?: ConditionalValue<DeterminateProgressIndicatorSlotRecipeVariant[key]> | undefined
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface DeterminateProgressIndicatorSlotRecipeRecipe {
|
|
23
|
+
__slot: DeterminateProgressIndicatorSlotRecipeSlot
|
|
24
|
+
__type: DeterminateProgressIndicatorSlotRecipeVariantProps
|
|
25
|
+
(props?: DeterminateProgressIndicatorSlotRecipeVariantProps): Pretty<Record<DeterminateProgressIndicatorSlotRecipeSlot, string>>
|
|
26
|
+
raw: (props?: DeterminateProgressIndicatorSlotRecipeVariantProps) => DeterminateProgressIndicatorSlotRecipeVariantProps
|
|
27
|
+
variantMap: DeterminateProgressIndicatorSlotRecipeVariantMap
|
|
28
|
+
variantKeys: Array<keyof DeterminateProgressIndicatorSlotRecipeVariant>
|
|
29
|
+
splitVariantProps<Props extends DeterminateProgressIndicatorSlotRecipeVariantProps>(props: Props): [DeterminateProgressIndicatorSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof DeterminateProgressIndicatorSlotRecipeVariantProps>>]
|
|
30
|
+
getVariantProps: (props?: DeterminateProgressIndicatorSlotRecipeVariantProps) => DeterminateProgressIndicatorSlotRecipeVariantProps
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Slot class created for the MFUI DeterminateProgressIndicator component.
|
|
35
|
+
*/
|
|
36
|
+
export declare const determinateProgressIndicatorSlotRecipe: DeterminateProgressIndicatorSlotRecipeRecipe
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
+
import { createRecipe } from './create-recipe.js';
|
|
3
|
+
const determinateProgressIndicatorSlotRecipeDefaultVariants = {
|
|
4
|
+
"valueTextPosition": "right"
|
|
5
|
+
};
|
|
6
|
+
const determinateProgressIndicatorSlotRecipeCompoundVariants = [];
|
|
7
|
+
const determinateProgressIndicatorSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"DeterminateProgressIndicator__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"progressIndicator",
|
|
14
|
+
"DeterminateProgressIndicator__progressIndicator"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"track",
|
|
18
|
+
"DeterminateProgressIndicator__track"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"progress",
|
|
22
|
+
"DeterminateProgressIndicator__progress"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"valueText",
|
|
26
|
+
"DeterminateProgressIndicator__valueText"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"value",
|
|
30
|
+
"DeterminateProgressIndicator__value"
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"unit",
|
|
34
|
+
"DeterminateProgressIndicator__unit"
|
|
35
|
+
]
|
|
36
|
+
];
|
|
37
|
+
const determinateProgressIndicatorSlotRecipeSlotFns = /* @__PURE__ */ determinateProgressIndicatorSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, determinateProgressIndicatorSlotRecipeDefaultVariants, getSlotCompoundVariant(determinateProgressIndicatorSlotRecipeCompoundVariants, slotName))]);
|
|
38
|
+
const determinateProgressIndicatorSlotRecipeFn = memo((props = {}) => {
|
|
39
|
+
return Object.fromEntries(determinateProgressIndicatorSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
40
|
+
});
|
|
41
|
+
const determinateProgressIndicatorSlotRecipeVariantKeys = [
|
|
42
|
+
"valueTextPosition"
|
|
43
|
+
];
|
|
44
|
+
const getVariantProps = (variants) => ({ ...determinateProgressIndicatorSlotRecipeDefaultVariants, ...compact(variants) });
|
|
45
|
+
export const determinateProgressIndicatorSlotRecipe = /* @__PURE__ */ Object.assign(determinateProgressIndicatorSlotRecipeFn, {
|
|
46
|
+
__recipe__: false,
|
|
47
|
+
__name__: 'determinateProgressIndicatorSlotRecipe',
|
|
48
|
+
raw: (props) => props,
|
|
49
|
+
classNameMap: {},
|
|
50
|
+
variantKeys: determinateProgressIndicatorSlotRecipeVariantKeys,
|
|
51
|
+
variantMap: {
|
|
52
|
+
"valueTextPosition": [
|
|
53
|
+
"right",
|
|
54
|
+
"top"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
splitVariantProps(props) {
|
|
58
|
+
return splitProps(props, determinateProgressIndicatorSlotRecipeVariantKeys);
|
|
59
|
+
},
|
|
60
|
+
getVariantProps
|
|
61
|
+
});
|
|
@@ -48,11 +48,14 @@ export * from './data-table-body-slot-recipe';
|
|
|
48
48
|
export * from './data-table-cell-slot-recipe';
|
|
49
49
|
export * from './data-table-slot-recipe';
|
|
50
50
|
export * from './data-table-header-cell-slot-recipe';
|
|
51
|
+
export * from './data-table-filter-button-slot-recipe';
|
|
52
|
+
export * from './data-table-sort-button-slot-recipe';
|
|
51
53
|
export * from './data-table-header-row-slot-recipe';
|
|
52
54
|
export * from './data-table-header-slot-recipe';
|
|
53
55
|
export * from './data-table-row-slot-recipe';
|
|
54
56
|
export * from './sub-navigation-slot-recipe';
|
|
55
57
|
export * from './progress-indicator-slot-recipe';
|
|
58
|
+
export * from './determinate-progress-indicator-slot-recipe';
|
|
56
59
|
export * from './stack-slot-recipe';
|
|
57
60
|
export * from './stepper-slot-recipe';
|
|
58
61
|
export * from './multiple-select-box-slot-recipe';
|
|
@@ -47,11 +47,14 @@ export * from './data-table-body-slot-recipe.js';
|
|
|
47
47
|
export * from './data-table-cell-slot-recipe.js';
|
|
48
48
|
export * from './data-table-slot-recipe.js';
|
|
49
49
|
export * from './data-table-header-cell-slot-recipe.js';
|
|
50
|
+
export * from './data-table-filter-button-slot-recipe.js';
|
|
51
|
+
export * from './data-table-sort-button-slot-recipe.js';
|
|
50
52
|
export * from './data-table-header-row-slot-recipe.js';
|
|
51
53
|
export * from './data-table-header-slot-recipe.js';
|
|
52
54
|
export * from './data-table-row-slot-recipe.js';
|
|
53
55
|
export * from './sub-navigation-slot-recipe.js';
|
|
54
56
|
export * from './progress-indicator-slot-recipe.js';
|
|
57
|
+
export * from './determinate-progress-indicator-slot-recipe.js';
|
|
55
58
|
export * from './stack-slot-recipe.js';
|
|
56
59
|
export * from './stepper-slot-recipe.js';
|
|
57
60
|
export * from './multiple-select-box-slot-recipe.js';
|
|
@@ -3,7 +3,8 @@ import { createRecipe } from './create-recipe.js';
|
|
|
3
3
|
const textBoxSlotRecipeDefaultVariants = {
|
|
4
4
|
"size": "medium",
|
|
5
5
|
"disabled": false,
|
|
6
|
-
"invalid": false
|
|
6
|
+
"invalid": false,
|
|
7
|
+
"caution": false
|
|
7
8
|
};
|
|
8
9
|
const textBoxSlotRecipeCompoundVariants = [];
|
|
9
10
|
const textBoxSlotRecipeSlotNames = [
|
|
@@ -35,7 +36,8 @@ const textBoxSlotRecipeFn = memo((props = {}) => {
|
|
|
35
36
|
const textBoxSlotRecipeVariantKeys = [
|
|
36
37
|
"size",
|
|
37
38
|
"disabled",
|
|
38
|
-
"invalid"
|
|
39
|
+
"invalid",
|
|
40
|
+
"caution"
|
|
39
41
|
];
|
|
40
42
|
const getVariantProps = (variants) => ({ ...textBoxSlotRecipeDefaultVariants, ...compact(variants) });
|
|
41
43
|
export const textBoxSlotRecipe = /* @__PURE__ */ Object.assign(textBoxSlotRecipeFn, {
|
|
@@ -57,6 +59,10 @@ export const textBoxSlotRecipe = /* @__PURE__ */ Object.assign(textBoxSlotRecipe
|
|
|
57
59
|
"invalid": [
|
|
58
60
|
"true",
|
|
59
61
|
"false"
|
|
62
|
+
],
|
|
63
|
+
"caution": [
|
|
64
|
+
"true",
|
|
65
|
+
"false"
|
|
60
66
|
]
|
|
61
67
|
},
|
|
62
68
|
splitVariantProps(props) {
|
|
@@ -4,6 +4,7 @@ const textareaSlotRecipeDefaultVariants = {
|
|
|
4
4
|
"size": "medium",
|
|
5
5
|
"disabled": false,
|
|
6
6
|
"invalid": false,
|
|
7
|
+
"caution": false,
|
|
7
8
|
"enableAutoResize": false,
|
|
8
9
|
"resize": "both"
|
|
9
10
|
};
|
|
@@ -22,6 +23,7 @@ const textareaSlotRecipeVariantKeys = [
|
|
|
22
23
|
"size",
|
|
23
24
|
"disabled",
|
|
24
25
|
"invalid",
|
|
26
|
+
"caution",
|
|
25
27
|
"enableAutoResize",
|
|
26
28
|
"resize"
|
|
27
29
|
];
|
|
@@ -46,6 +48,10 @@ export const textareaSlotRecipe = /* @__PURE__ */ Object.assign(textareaSlotReci
|
|
|
46
48
|
"true",
|
|
47
49
|
"false"
|
|
48
50
|
],
|
|
51
|
+
"caution": [
|
|
52
|
+
"true",
|
|
53
|
+
"false"
|
|
54
|
+
],
|
|
49
55
|
"enableAutoResize": [
|
|
50
56
|
"true",
|
|
51
57
|
"false"
|
|
@@ -3,7 +3,8 @@ import { createRecipe } from './create-recipe.js';
|
|
|
3
3
|
const timePickerSlotRecipeDefaultVariants = {
|
|
4
4
|
"size": "medium",
|
|
5
5
|
"disabled": false,
|
|
6
|
-
"invalid": false
|
|
6
|
+
"invalid": false,
|
|
7
|
+
"caution": false
|
|
7
8
|
};
|
|
8
9
|
const timePickerSlotRecipeCompoundVariants = [];
|
|
9
10
|
const timePickerSlotRecipeSlotNames = [
|
|
@@ -31,7 +32,8 @@ const timePickerSlotRecipeFn = memo((props = {}) => {
|
|
|
31
32
|
const timePickerSlotRecipeVariantKeys = [
|
|
32
33
|
"size",
|
|
33
34
|
"disabled",
|
|
34
|
-
"invalid"
|
|
35
|
+
"invalid",
|
|
36
|
+
"caution"
|
|
35
37
|
];
|
|
36
38
|
const getVariantProps = (variants) => ({ ...timePickerSlotRecipeDefaultVariants, ...compact(variants) });
|
|
37
39
|
export const timePickerSlotRecipe = /* @__PURE__ */ Object.assign(timePickerSlotRecipeFn, {
|
|
@@ -53,6 +55,10 @@ export const timePickerSlotRecipe = /* @__PURE__ */ Object.assign(timePickerSlot
|
|
|
53
55
|
"invalid": [
|
|
54
56
|
"true",
|
|
55
57
|
"false"
|
|
58
|
+
],
|
|
59
|
+
"caution": [
|
|
60
|
+
"true",
|
|
61
|
+
"false"
|
|
56
62
|
]
|
|
57
63
|
},
|
|
58
64
|
splitVariantProps(props) {
|