@marigold/components 7.6.0 → 7.7.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/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -634,6 +634,7 @@ interface TableProps extends Pick<AriaTableProps<object>, 'focusMode' | 'onRowAc
|
|
|
634
634
|
size?: string;
|
|
635
635
|
stretch?: boolean;
|
|
636
636
|
stickyHeader?: boolean;
|
|
637
|
+
disableKeyboardNavigation?: boolean;
|
|
637
638
|
}
|
|
638
639
|
interface RowProps extends RowProps$1<any> {
|
|
639
640
|
variant?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -634,6 +634,7 @@ interface TableProps extends Pick<AriaTableProps<object>, 'focusMode' | 'onRowAc
|
|
|
634
634
|
size?: string;
|
|
635
635
|
stretch?: boolean;
|
|
636
636
|
stickyHeader?: boolean;
|
|
637
|
+
disableKeyboardNavigation?: boolean;
|
|
637
638
|
}
|
|
638
639
|
interface RowProps extends RowProps$1<any> {
|
|
639
640
|
variant?: string;
|
package/dist/index.js
CHANGED
|
@@ -3231,6 +3231,7 @@ var Table = ({
|
|
|
3231
3231
|
size,
|
|
3232
3232
|
stretch,
|
|
3233
3233
|
selectionMode = "none",
|
|
3234
|
+
disableKeyboardNavigation = false,
|
|
3234
3235
|
stickyHeader,
|
|
3235
3236
|
...props
|
|
3236
3237
|
}) => {
|
|
@@ -3242,6 +3243,9 @@ var Table = ({
|
|
|
3242
3243
|
showSelectionCheckboxes: selectionMode === "multiple" && // TODO: It this necessary?
|
|
3243
3244
|
props.selectionBehavior !== "replace"
|
|
3244
3245
|
});
|
|
3246
|
+
if (disableKeyboardNavigation !== void 0) {
|
|
3247
|
+
state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
|
|
3248
|
+
}
|
|
3245
3249
|
const { gridProps } = (0, import_table9.useTable)(props, state, tableRef);
|
|
3246
3250
|
const classNames2 = (0, import_system71.useClassNames)({
|
|
3247
3251
|
component: "Table",
|
package/dist/index.mjs
CHANGED
|
@@ -3215,6 +3215,7 @@ var Table = ({
|
|
|
3215
3215
|
size,
|
|
3216
3216
|
stretch,
|
|
3217
3217
|
selectionMode = "none",
|
|
3218
|
+
disableKeyboardNavigation = false,
|
|
3218
3219
|
stickyHeader,
|
|
3219
3220
|
...props
|
|
3220
3221
|
}) => {
|
|
@@ -3226,6 +3227,9 @@ var Table = ({
|
|
|
3226
3227
|
showSelectionCheckboxes: selectionMode === "multiple" && // TODO: It this necessary?
|
|
3227
3228
|
props.selectionBehavior !== "replace"
|
|
3228
3229
|
});
|
|
3230
|
+
if (disableKeyboardNavigation !== void 0) {
|
|
3231
|
+
state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
|
|
3232
|
+
}
|
|
3229
3233
|
const { gridProps } = useTable(props, state, tableRef);
|
|
3230
3234
|
const classNames2 = useClassNames47({
|
|
3231
3235
|
component: "Table",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marigold/components",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.7.0",
|
|
4
4
|
"description": "Components for the Marigold Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"@react-types/shared": "3.22.1",
|
|
44
44
|
"@react-types/table": "3.9.3",
|
|
45
45
|
"react-aria-components": "1.1.1",
|
|
46
|
-
"@marigold/icons": "1.2.
|
|
47
|
-
"@marigold/system": "7.
|
|
46
|
+
"@marigold/icons": "1.2.46",
|
|
47
|
+
"@marigold/system": "7.7.0",
|
|
48
48
|
"@marigold/types": "1.1.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"react": "
|
|
52
|
-
"react-dom": "
|
|
51
|
+
"react": "18.x",
|
|
52
|
+
"react-dom": "18.x"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/react": "18.2.73",
|