@workday/canvas-kit-react 11.0.24 → 11.0.25
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.
|
@@ -33,7 +33,7 @@ exports.useComboboxMenuItem = common_1.composeHooks(common_1.createElemPropsHook
|
|
|
33
33
|
// prevent focus changes
|
|
34
34
|
event.preventDefault();
|
|
35
35
|
};
|
|
36
|
-
const selected = model.state.
|
|
36
|
+
const selected = model.state.selectedIds[0] === id;
|
|
37
37
|
return {
|
|
38
38
|
role: 'option',
|
|
39
39
|
'aria-selected': selected || undefined,
|
|
@@ -42,16 +42,16 @@ exports.useComboboxMenuItem = common_1.composeHooks(common_1.createElemPropsHook
|
|
|
42
42
|
};
|
|
43
43
|
}), collection_1.useListItemRegister, collection_1.useListItemAllowChildStrings);
|
|
44
44
|
const comboboxMenuItemIconStencil = canvas_kit_styling_1.createStencil({
|
|
45
|
-
base: { name: "
|
|
46
|
-
}, "combobox-menu-item-icon-
|
|
45
|
+
base: { name: "7a9502", styles: "box-sizing:border-box;align-self:start;" }
|
|
46
|
+
}, "combobox-menu-item-icon-350d23");
|
|
47
47
|
exports.ComboboxMenuItemIcon = common_1.createSubcomponent('span')({
|
|
48
48
|
modelHook: useComboboxModel_1.useComboboxModel,
|
|
49
49
|
})((elemProps, Element) => {
|
|
50
50
|
return react_1.default.createElement(icon_1.SystemIcon, Object.assign({ as: Element }, layout_1.mergeStyles(elemProps, comboboxMenuItemIconStencil())));
|
|
51
51
|
});
|
|
52
52
|
const comboboxMenuItemStencil = canvas_kit_styling_1.createStencil({
|
|
53
|
-
base: { name: "
|
|
54
|
-
}, "combobox-menu-item-
|
|
53
|
+
base: { name: "0cdcb7", styles: "box-sizing:border-box;min-height:var(--cnvs-sys-space-x10);" }
|
|
54
|
+
}, "combobox-menu-item-064150");
|
|
55
55
|
exports.ComboboxMenuItem = common_1.createSubcomponent('li')({
|
|
56
56
|
modelHook: useComboboxModel_1.useComboboxModel,
|
|
57
57
|
elemPropsHook: exports.useComboboxMenuItem,
|
|
@@ -27,7 +27,7 @@ export const useComboboxMenuItem = composeHooks(createElemPropsHook(useMenuModel
|
|
|
27
27
|
// prevent focus changes
|
|
28
28
|
event.preventDefault();
|
|
29
29
|
};
|
|
30
|
-
const selected = model.state.
|
|
30
|
+
const selected = model.state.selectedIds[0] === id;
|
|
31
31
|
return {
|
|
32
32
|
role: 'option',
|
|
33
33
|
'aria-selected': selected || undefined,
|
|
@@ -36,16 +36,16 @@ export const useComboboxMenuItem = composeHooks(createElemPropsHook(useMenuModel
|
|
|
36
36
|
};
|
|
37
37
|
}), useListItemRegister, useListItemAllowChildStrings);
|
|
38
38
|
const comboboxMenuItemIconStencil = createStencil({
|
|
39
|
-
base: { name: "
|
|
40
|
-
}, "combobox-menu-item-icon-
|
|
39
|
+
base: { name: "7a9502", styles: "box-sizing:border-box;align-self:start;" }
|
|
40
|
+
}, "combobox-menu-item-icon-350d23");
|
|
41
41
|
export const ComboboxMenuItemIcon = createSubcomponent('span')({
|
|
42
42
|
modelHook: useComboboxModel,
|
|
43
43
|
})((elemProps, Element) => {
|
|
44
44
|
return React.createElement(SystemIcon, Object.assign({ as: Element }, mergeStyles(elemProps, comboboxMenuItemIconStencil())));
|
|
45
45
|
});
|
|
46
46
|
const comboboxMenuItemStencil = createStencil({
|
|
47
|
-
base: { name: "
|
|
48
|
-
}, "combobox-menu-item-
|
|
47
|
+
base: { name: "0cdcb7", styles: "box-sizing:border-box;min-height:var(--cnvs-sys-space-x10);" }
|
|
48
|
+
}, "combobox-menu-item-064150");
|
|
49
49
|
export const ComboboxMenuItem = createSubcomponent('li')({
|
|
50
50
|
modelHook: useComboboxModel,
|
|
51
51
|
elemPropsHook: useComboboxMenuItem,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-react",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.25",
|
|
4
4
|
"description": "The parent module that contains all Workday Canvas Kit React components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@emotion/styled": "^11.6.0",
|
|
50
50
|
"@popperjs/core": "^2.5.4",
|
|
51
51
|
"@workday/canvas-colors-web": "^2.0.0",
|
|
52
|
-
"@workday/canvas-kit-popup-stack": "^11.0.
|
|
53
|
-
"@workday/canvas-kit-styling": "^11.0.
|
|
52
|
+
"@workday/canvas-kit-popup-stack": "^11.0.25",
|
|
53
|
+
"@workday/canvas-kit-styling": "^11.0.25",
|
|
54
54
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
55
55
|
"@workday/canvas-tokens-web": "^2.0.0",
|
|
56
56
|
"@workday/design-assets-types": "^0.2.8",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"@workday/canvas-accent-icons-web": "^3.0.0",
|
|
68
68
|
"@workday/canvas-applet-icons-web": "^2.0.0"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "0da8599052bbf06aaa1f2c881f38589d022eb515"
|
|
71
71
|
}
|