@workday/canvas-kit-react 11.0.0-alpha.788-next.0 → 11.0.0-alpha.792-next.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/badge/lib/CountBadge.tsx +1 -1
- package/combobox/lib/hooks/useComboboxInput.ts +1 -1
- package/dist/commonjs/badge/lib/CountBadge.js +1 -1
- package/dist/commonjs/combobox/lib/hooks/useComboboxInput.d.ts +1 -1
- package/dist/commonjs/combobox/lib/hooks/useComboboxInput.js +1 -1
- package/dist/commonjs/select/lib/Select.d.ts +0 -280
- package/dist/commonjs/select/lib/Select.d.ts.map +1 -1
- package/dist/commonjs/select/lib/Select.js +18 -6
- package/dist/commonjs/select/lib/hooks/useSelectInput.d.ts +2 -1
- package/dist/commonjs/select/lib/hooks/useSelectInput.d.ts.map +1 -1
- package/dist/commonjs/select/lib/hooks/useSelectInput.js +1 -0
- package/dist/es6/badge/lib/CountBadge.js +1 -1
- package/dist/es6/combobox/lib/hooks/useComboboxInput.d.ts +1 -1
- package/dist/es6/combobox/lib/hooks/useComboboxInput.js +1 -1
- package/dist/es6/select/lib/Select.d.ts +0 -280
- package/dist/es6/select/lib/Select.d.ts.map +1 -1
- package/dist/es6/select/lib/Select.js +19 -7
- package/dist/es6/select/lib/hooks/useSelectInput.d.ts +2 -1
- package/dist/es6/select/lib/hooks/useSelectInput.d.ts.map +1 -1
- package/dist/es6/select/lib/hooks/useSelectInput.js +1 -0
- package/package.json +4 -4
- package/select/lib/Select.tsx +21 -3
- package/select/lib/hooks/useSelectInput.ts +1 -0
package/badge/lib/CountBadge.tsx
CHANGED
|
@@ -68,7 +68,7 @@ const countBadgeStencil = createStencil({
|
|
|
68
68
|
* `CountBadge` provides a quantity-based summary with dynamic values.
|
|
69
69
|
*/
|
|
70
70
|
export const CountBadge = createComponent('span')({
|
|
71
|
-
displayName: '
|
|
71
|
+
displayName: 'CountBadge',
|
|
72
72
|
Component: ({count = 0, limit = 1000, variant, ...elemProps}: CountBadgeProps, ref, Element) => {
|
|
73
73
|
const formattedCount = count < limit ? `${count}` : `${limit - 1}+`;
|
|
74
74
|
|
|
@@ -70,7 +70,7 @@ export const useComboboxInput = composeHooks(
|
|
|
70
70
|
},
|
|
71
71
|
value: model.state.value,
|
|
72
72
|
role: 'combobox',
|
|
73
|
-
'aria-haspopup': true,
|
|
73
|
+
'aria-haspopup': 'true' as React.AriaAttributes['aria-haspopup'],
|
|
74
74
|
'aria-expanded': model.state.visibility === 'visible',
|
|
75
75
|
'aria-autocomplete': 'list',
|
|
76
76
|
'aria-controls': `${model.state.id}-list`,
|
|
@@ -39,7 +39,7 @@ const countBadgeStencil = canvas_kit_styling_1.createStencil({
|
|
|
39
39
|
* `CountBadge` provides a quantity-based summary with dynamic values.
|
|
40
40
|
*/
|
|
41
41
|
exports.CountBadge = common_1.createComponent('span')({
|
|
42
|
-
displayName: '
|
|
42
|
+
displayName: 'CountBadge',
|
|
43
43
|
Component: ({ count = 0, limit = 1000, variant, ...elemProps }, ref, Element) => {
|
|
44
44
|
const formattedCount = count < limit ? `${count}` : `${limit - 1}+`;
|
|
45
45
|
return (React.createElement(Element, Object.assign({ ref: ref }, canvas_kit_styling_1.handleCsProp(elemProps, [countBadgeStencil({ variant })])), formattedCount));
|
|
@@ -88,7 +88,7 @@ export declare const useComboboxInput: import("@workday/canvas-kit-react/common"
|
|
|
88
88
|
readonly onClick: (event: React.MouseEvent) => void;
|
|
89
89
|
readonly value: string | undefined;
|
|
90
90
|
readonly role: "combobox";
|
|
91
|
-
readonly 'aria-haspopup': true;
|
|
91
|
+
readonly 'aria-haspopup': boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
|
|
92
92
|
readonly 'aria-expanded': boolean;
|
|
93
93
|
readonly 'aria-autocomplete': "list";
|
|
94
94
|
readonly 'aria-controls': `${string}-list`;
|
|
@@ -67,7 +67,7 @@ exports.useComboboxInput = common_1.composeHooks(common_1.createElemPropsHook(us
|
|
|
67
67
|
},
|
|
68
68
|
value: model.state.value,
|
|
69
69
|
role: 'combobox',
|
|
70
|
-
'aria-haspopup': true,
|
|
70
|
+
'aria-haspopup': 'true',
|
|
71
71
|
'aria-expanded': model.state.visibility === 'visible',
|
|
72
72
|
'aria-autocomplete': 'list',
|
|
73
73
|
'aria-controls': `${model.state.id}-list`,
|