@workday/canvas-kit-preview-react 9.2.0-526-next.0 → 9.2.0-528-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/dist/commonjs/menu/lib/Menu.d.ts +3 -17
- package/dist/commonjs/menu/lib/Menu.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/Menu.js +1 -6
- package/dist/commonjs/menu/lib/MenuItem.d.ts +3 -12
- package/dist/commonjs/menu/lib/MenuItem.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuItem.js +2 -6
- package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts +1 -1
- package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -1
- package/dist/commonjs/text-input/lib/hooks/useTextInputModel.js +1 -1
- package/dist/es6/menu/lib/Menu.d.ts +3 -17
- package/dist/es6/menu/lib/Menu.d.ts.map +1 -1
- package/dist/es6/menu/lib/Menu.js +1 -6
- package/dist/es6/menu/lib/MenuItem.d.ts +3 -12
- package/dist/es6/menu/lib/MenuItem.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuItem.js +2 -6
- package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts +1 -1
- package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -1
- package/dist/es6/text-input/lib/hooks/useTextInputModel.js +1 -1
- package/menu/lib/Menu.tsx +3 -17
- package/menu/lib/MenuItem.tsx +3 -12
- package/package.json +3 -3
- package/text-input/lib/hooks/useTextInputModel.ts +1 -1
|
@@ -2,12 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { DeprecatedMenuItemProps } from './MenuItem';
|
|
3
3
|
import { GrowthBehavior } from '@workday/canvas-kit-react/common';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* As of Canvas Kit v8, Menu is being deprecated.
|
|
8
|
-
* It will be removed in v10. Please see the
|
|
9
|
-
* [upgrade guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page)
|
|
10
|
-
* for more information.
|
|
5
|
+
* @deprecated ⚠️ `DeprecatedMenuProps` has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
11
6
|
*/
|
|
12
7
|
export interface DeprecatedMenuProps extends GrowthBehavior, React.HTMLAttributes<HTMLUListElement> {
|
|
13
8
|
/**
|
|
@@ -45,22 +40,13 @@ export interface DeprecatedMenuProps extends GrowthBehavior, React.HTMLAttribute
|
|
|
45
40
|
'aria-labelledby'?: string;
|
|
46
41
|
}
|
|
47
42
|
/**
|
|
48
|
-
* ### Deprecated Menu State
|
|
49
43
|
*
|
|
50
|
-
*
|
|
51
|
-
* It will be removed in v10. Please see the
|
|
52
|
-
* [upgrade guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page)
|
|
53
|
-
* for more information.
|
|
44
|
+
* @deprecated ⚠️ `DeprecatedMenuState` has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
54
45
|
*/
|
|
55
46
|
export interface DeprecatedMenuState {
|
|
56
47
|
selectedItemIndex: number;
|
|
57
48
|
}
|
|
58
49
|
/**
|
|
59
|
-
* As of Canvas Kit v8, Menu is being deprecated.
|
|
60
|
-
* It will be removed in v10. Please see the [upgrade
|
|
61
|
-
* guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page) for
|
|
62
|
-
* more information.
|
|
63
|
-
*
|
|
64
50
|
* `DeprecatedMenu` renders a styled `<ul role="menu">` element within a {@link Card} and follows
|
|
65
51
|
* the [Active Menu
|
|
66
52
|
* pattern](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/examples/menu-button-actions-active-descendant/)
|
|
@@ -68,7 +54,7 @@ export interface DeprecatedMenuState {
|
|
|
68
54
|
*
|
|
69
55
|
* Undocumented props are spread to the underlying `<ul>` element.
|
|
70
56
|
*
|
|
71
|
-
* @deprecated
|
|
57
|
+
* @deprecated ⚠️ Deprecated Menu has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
72
58
|
*/
|
|
73
59
|
export declare class DeprecatedMenu extends React.Component<DeprecatedMenuProps, DeprecatedMenuState> {
|
|
74
60
|
private id;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../menu/lib/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAC,uBAAuB,EAAC,MAAM,YAAY,CAAC;AAGnD,OAAO,EAAiB,cAAc,EAAmB,MAAM,kCAAkC,CAAC;AAElG
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../menu/lib/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAC,uBAAuB,EAAC,MAAM,YAAY,CAAC;AAGnD,OAAO,EAAiB,cAAc,EAAmB,MAAM,kCAAkC,CAAC;AAElG;;GAEG;AACH,MAAM,WAAW,mBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,EACL,KAAK,CAAC,YAAY,CAAC,uBAAuB,CAAC,GAC3C,KAAK,CAAC,YAAY,CAAC,uBAAuB,CAAC,EAAE,CAAC;IAClD;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAaD;;;;;;;;;GASG;AACH,qBAAa,cAAe,SAAQ,KAAK,CAAC,SAAS,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAC3F,OAAO,CAAC,EAAE,CAAsB;IAChC,OAAO,CAAC,SAAS,CAAU;IAE3B,OAAO,CAAC,OAAO,CAAoC;IACnD,OAAO,CAAC,eAAe,CAAY;gBAEvB,KAAK,EAAE,mBAAmB;IAetC,kBAAkB,CAAC,SAAS,EAAE,mBAAmB;IAejD,iBAAiB;IAYjB,oBAAoB;IAIb,MAAM;IAyDN,sBAAsB,UAAW,MAAM,GAAG,SAAS,KAAG,MAAM,CAQjE;IAEK,sBAAsB,UAAW,MAAM,GAAG,SAAS,KAAG,IAAI,CAE/D;IAEF,OAAO,CAAC,uBAAuB,CA+E7B;IAEF,OAAO,CAAC,WAAW,CAoBjB;IAEF,OAAO,CAAC,kBAAkB,CAWxB;IAEF,OAAO,CAAC,kBAAkB,CAkCxB;IAEF,OAAO,CAAC,sBAAsB,CAU5B;IAEF,OAAO,CAAC,sBAAsB,CAG5B;CACH"}
|
|
@@ -39,11 +39,6 @@ const List = styled_1.default('ul')({
|
|
|
39
39
|
...common_1.hideMouseFocus,
|
|
40
40
|
});
|
|
41
41
|
/**
|
|
42
|
-
* As of Canvas Kit v8, Menu is being deprecated.
|
|
43
|
-
* It will be removed in v10. Please see the [upgrade
|
|
44
|
-
* guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page) for
|
|
45
|
-
* more information.
|
|
46
|
-
*
|
|
47
42
|
* `DeprecatedMenu` renders a styled `<ul role="menu">` element within a {@link Card} and follows
|
|
48
43
|
* the [Active Menu
|
|
49
44
|
* pattern](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/examples/menu-button-actions-active-descendant/)
|
|
@@ -51,7 +46,7 @@ const List = styled_1.default('ul')({
|
|
|
51
46
|
*
|
|
52
47
|
* Undocumented props are spread to the underlying `<ul>` element.
|
|
53
48
|
*
|
|
54
|
-
* @deprecated
|
|
49
|
+
* @deprecated ⚠️ Deprecated Menu has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
55
50
|
*/
|
|
56
51
|
class DeprecatedMenu extends React.Component {
|
|
57
52
|
constructor(props) {
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { CanvasSystemIcon } from '@workday/design-assets-types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* As of Canvas Kit v8, Menu is being deprecated.
|
|
7
|
-
* It will be removed in v10. Please see the
|
|
8
|
-
* [upgrade guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page)
|
|
9
|
-
* for more information.
|
|
4
|
+
* @deprecated ⚠️ `DeprecatedMenuItemProps` has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
10
5
|
*/
|
|
11
6
|
export interface DeprecatedMenuItemProps extends React.LiHTMLAttributes<HTMLLIElement> {
|
|
12
7
|
/**
|
|
@@ -65,14 +60,10 @@ export interface DeprecatedMenuItemProps extends React.LiHTMLAttributes<HTMLLIEl
|
|
|
65
60
|
* - `tabindex={-1}`
|
|
66
61
|
* - `id`s following this pattern: `${MenuId}-${index}`
|
|
67
62
|
*
|
|
68
|
-
* As of Canvas Kit v8, Menu is being deprecated.
|
|
69
|
-
* It will be removed in v10. Please see the [upgrade
|
|
70
|
-
* guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page) for
|
|
71
|
-
* more information.
|
|
72
|
-
*
|
|
73
63
|
* Undocumented props are spread to the underlying `<li>` element.
|
|
74
64
|
*
|
|
75
|
-
* @deprecated
|
|
65
|
+
* @deprecated ⚠️ `DeprecatedMenuItem` has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
66
|
+
*
|
|
76
67
|
*/
|
|
77
68
|
export declare class DeprecatedMenuItem extends React.Component<DeprecatedMenuItemProps> {
|
|
78
69
|
ref: React.RefObject<HTMLLIElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../menu/lib/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAG9D
|
|
1
|
+
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../menu/lib/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAG9D;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,gBAAgB,CAAC,aAAa,CAAC;IACpF;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AA2LD;;;;;;;;;;;;;GAaG;AACH,qBAAa,kBAAmB,SAAQ,KAAK,CAAC,SAAS,CAAC,uBAAuB,CAAC;IAC9E,GAAG,iCAAoC;IAEvC,iBAAiB;IASjB,kBAAkB,cAAe,uBAAuB,UAMtD;IAEF,MAAM;IA4CN,OAAO,CAAC,WAAW,CAOjB;CACH"}
|
|
@@ -192,14 +192,10 @@ const scrollIntoViewIfNeeded = (elem, centerIfNeeded = true) => {
|
|
|
192
192
|
* - `tabindex={-1}`
|
|
193
193
|
* - `id`s following this pattern: `${MenuId}-${index}`
|
|
194
194
|
*
|
|
195
|
-
* As of Canvas Kit v8, Menu is being deprecated.
|
|
196
|
-
* It will be removed in v10. Please see the [upgrade
|
|
197
|
-
* guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page) for
|
|
198
|
-
* more information.
|
|
199
|
-
*
|
|
200
195
|
* Undocumented props are spread to the underlying `<li>` element.
|
|
201
196
|
*
|
|
202
|
-
* @deprecated
|
|
197
|
+
* @deprecated ⚠️ `DeprecatedMenuItem` has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
198
|
+
*
|
|
203
199
|
*/
|
|
204
200
|
class DeprecatedMenuItem extends React.Component {
|
|
205
201
|
constructor() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @deprecated Please use `useFormFieldModel` instead */
|
|
1
|
+
/** @deprecated ⚠️ `useTextInputModel` is deprecated and will be removed in a future major version. Please use `useFormFieldModel` instead. */
|
|
2
2
|
export declare const useTextInputModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
3
3
|
hasError: boolean;
|
|
4
4
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTextInputModel.d.ts","sourceRoot":"","sources":["../../../../../text-input/lib/hooks/useTextInputModel.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"useTextInputModel.d.ts","sourceRoot":"","sources":["../../../../../text-input/lib/hooks/useTextInputModel.ts"],"names":[],"mappings":"AAEA,8IAA8I;AAC9I,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoB,CAAC"}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useTextInputModel = void 0;
|
|
4
4
|
const form_field_1 = require("@workday/canvas-kit-preview-react/form-field");
|
|
5
|
-
/** @deprecated Please use `useFormFieldModel` instead */
|
|
5
|
+
/** @deprecated ⚠️ `useTextInputModel` is deprecated and will be removed in a future major version. Please use `useFormFieldModel` instead. */
|
|
6
6
|
exports.useTextInputModel = form_field_1.useFormFieldModel;
|
|
@@ -2,12 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { DeprecatedMenuItemProps } from './MenuItem';
|
|
3
3
|
import { GrowthBehavior } from '@workday/canvas-kit-react/common';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* As of Canvas Kit v8, Menu is being deprecated.
|
|
8
|
-
* It will be removed in v10. Please see the
|
|
9
|
-
* [upgrade guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page)
|
|
10
|
-
* for more information.
|
|
5
|
+
* @deprecated ⚠️ `DeprecatedMenuProps` has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
11
6
|
*/
|
|
12
7
|
export interface DeprecatedMenuProps extends GrowthBehavior, React.HTMLAttributes<HTMLUListElement> {
|
|
13
8
|
/**
|
|
@@ -45,22 +40,13 @@ export interface DeprecatedMenuProps extends GrowthBehavior, React.HTMLAttribute
|
|
|
45
40
|
'aria-labelledby'?: string;
|
|
46
41
|
}
|
|
47
42
|
/**
|
|
48
|
-
* ### Deprecated Menu State
|
|
49
43
|
*
|
|
50
|
-
*
|
|
51
|
-
* It will be removed in v10. Please see the
|
|
52
|
-
* [upgrade guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page)
|
|
53
|
-
* for more information.
|
|
44
|
+
* @deprecated ⚠️ `DeprecatedMenuState` has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
54
45
|
*/
|
|
55
46
|
export interface DeprecatedMenuState {
|
|
56
47
|
selectedItemIndex: number;
|
|
57
48
|
}
|
|
58
49
|
/**
|
|
59
|
-
* As of Canvas Kit v8, Menu is being deprecated.
|
|
60
|
-
* It will be removed in v10. Please see the [upgrade
|
|
61
|
-
* guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page) for
|
|
62
|
-
* more information.
|
|
63
|
-
*
|
|
64
50
|
* `DeprecatedMenu` renders a styled `<ul role="menu">` element within a {@link Card} and follows
|
|
65
51
|
* the [Active Menu
|
|
66
52
|
* pattern](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/examples/menu-button-actions-active-descendant/)
|
|
@@ -68,7 +54,7 @@ export interface DeprecatedMenuState {
|
|
|
68
54
|
*
|
|
69
55
|
* Undocumented props are spread to the underlying `<ul>` element.
|
|
70
56
|
*
|
|
71
|
-
* @deprecated
|
|
57
|
+
* @deprecated ⚠️ Deprecated Menu has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
72
58
|
*/
|
|
73
59
|
export declare class DeprecatedMenu extends React.Component<DeprecatedMenuProps, DeprecatedMenuState> {
|
|
74
60
|
private id;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../menu/lib/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAC,uBAAuB,EAAC,MAAM,YAAY,CAAC;AAGnD,OAAO,EAAiB,cAAc,EAAmB,MAAM,kCAAkC,CAAC;AAElG
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../menu/lib/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAC,uBAAuB,EAAC,MAAM,YAAY,CAAC;AAGnD,OAAO,EAAiB,cAAc,EAAmB,MAAM,kCAAkC,CAAC;AAElG;;GAEG;AACH,MAAM,WAAW,mBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,EACL,KAAK,CAAC,YAAY,CAAC,uBAAuB,CAAC,GAC3C,KAAK,CAAC,YAAY,CAAC,uBAAuB,CAAC,EAAE,CAAC;IAClD;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAaD;;;;;;;;;GASG;AACH,qBAAa,cAAe,SAAQ,KAAK,CAAC,SAAS,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAC3F,OAAO,CAAC,EAAE,CAAsB;IAChC,OAAO,CAAC,SAAS,CAAU;IAE3B,OAAO,CAAC,OAAO,CAAoC;IACnD,OAAO,CAAC,eAAe,CAAY;gBAEvB,KAAK,EAAE,mBAAmB;IAetC,kBAAkB,CAAC,SAAS,EAAE,mBAAmB;IAejD,iBAAiB;IAYjB,oBAAoB;IAIb,MAAM;IAyDN,sBAAsB,UAAW,MAAM,GAAG,SAAS,KAAG,MAAM,CAQjE;IAEK,sBAAsB,UAAW,MAAM,GAAG,SAAS,KAAG,IAAI,CAE/D;IAEF,OAAO,CAAC,uBAAuB,CA+E7B;IAEF,OAAO,CAAC,WAAW,CAoBjB;IAEF,OAAO,CAAC,kBAAkB,CAWxB;IAEF,OAAO,CAAC,kBAAkB,CAkCxB;IAEF,OAAO,CAAC,sBAAsB,CAU5B;IAEF,OAAO,CAAC,sBAAsB,CAG5B;CACH"}
|
|
@@ -14,11 +14,6 @@ const List = styled('ul')({
|
|
|
14
14
|
...hideMouseFocus,
|
|
15
15
|
});
|
|
16
16
|
/**
|
|
17
|
-
* As of Canvas Kit v8, Menu is being deprecated.
|
|
18
|
-
* It will be removed in v10. Please see the [upgrade
|
|
19
|
-
* guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page) for
|
|
20
|
-
* more information.
|
|
21
|
-
*
|
|
22
17
|
* `DeprecatedMenu` renders a styled `<ul role="menu">` element within a {@link Card} and follows
|
|
23
18
|
* the [Active Menu
|
|
24
19
|
* pattern](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/examples/menu-button-actions-active-descendant/)
|
|
@@ -26,7 +21,7 @@ const List = styled('ul')({
|
|
|
26
21
|
*
|
|
27
22
|
* Undocumented props are spread to the underlying `<ul>` element.
|
|
28
23
|
*
|
|
29
|
-
* @deprecated
|
|
24
|
+
* @deprecated ⚠️ Deprecated Menu has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
30
25
|
*/
|
|
31
26
|
export class DeprecatedMenu extends React.Component {
|
|
32
27
|
constructor(props) {
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { CanvasSystemIcon } from '@workday/design-assets-types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* As of Canvas Kit v8, Menu is being deprecated.
|
|
7
|
-
* It will be removed in v10. Please see the
|
|
8
|
-
* [upgrade guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page)
|
|
9
|
-
* for more information.
|
|
4
|
+
* @deprecated ⚠️ `DeprecatedMenuItemProps` has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
10
5
|
*/
|
|
11
6
|
export interface DeprecatedMenuItemProps extends React.LiHTMLAttributes<HTMLLIElement> {
|
|
12
7
|
/**
|
|
@@ -65,14 +60,10 @@ export interface DeprecatedMenuItemProps extends React.LiHTMLAttributes<HTMLLIEl
|
|
|
65
60
|
* - `tabindex={-1}`
|
|
66
61
|
* - `id`s following this pattern: `${MenuId}-${index}`
|
|
67
62
|
*
|
|
68
|
-
* As of Canvas Kit v8, Menu is being deprecated.
|
|
69
|
-
* It will be removed in v10. Please see the [upgrade
|
|
70
|
-
* guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page) for
|
|
71
|
-
* more information.
|
|
72
|
-
*
|
|
73
63
|
* Undocumented props are spread to the underlying `<li>` element.
|
|
74
64
|
*
|
|
75
|
-
* @deprecated
|
|
65
|
+
* @deprecated ⚠️ `DeprecatedMenuItem` has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
66
|
+
*
|
|
76
67
|
*/
|
|
77
68
|
export declare class DeprecatedMenuItem extends React.Component<DeprecatedMenuItemProps> {
|
|
78
69
|
ref: React.RefObject<HTMLLIElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../menu/lib/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAG9D
|
|
1
|
+
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../menu/lib/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAG9D;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,gBAAgB,CAAC,aAAa,CAAC;IACpF;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AA2LD;;;;;;;;;;;;;GAaG;AACH,qBAAa,kBAAmB,SAAQ,KAAK,CAAC,SAAS,CAAC,uBAAuB,CAAC;IAC9E,GAAG,iCAAoC;IAEvC,iBAAiB;IASjB,kBAAkB,cAAe,uBAAuB,UAMtD;IAEF,MAAM;IA4CN,OAAO,CAAC,WAAW,CAOjB;CACH"}
|
|
@@ -167,14 +167,10 @@ const scrollIntoViewIfNeeded = (elem, centerIfNeeded = true) => {
|
|
|
167
167
|
* - `tabindex={-1}`
|
|
168
168
|
* - `id`s following this pattern: `${MenuId}-${index}`
|
|
169
169
|
*
|
|
170
|
-
* As of Canvas Kit v8, Menu is being deprecated.
|
|
171
|
-
* It will be removed in v10. Please see the [upgrade
|
|
172
|
-
* guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page) for
|
|
173
|
-
* more information.
|
|
174
|
-
*
|
|
175
170
|
* Undocumented props are spread to the underlying `<li>` element.
|
|
176
171
|
*
|
|
177
|
-
* @deprecated
|
|
172
|
+
* @deprecated ⚠️ `DeprecatedMenuItem` has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
173
|
+
*
|
|
178
174
|
*/
|
|
179
175
|
export class DeprecatedMenuItem extends React.Component {
|
|
180
176
|
constructor() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @deprecated Please use `useFormFieldModel` instead */
|
|
1
|
+
/** @deprecated ⚠️ `useTextInputModel` is deprecated and will be removed in a future major version. Please use `useFormFieldModel` instead. */
|
|
2
2
|
export declare const useTextInputModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
3
3
|
hasError: boolean;
|
|
4
4
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTextInputModel.d.ts","sourceRoot":"","sources":["../../../../../text-input/lib/hooks/useTextInputModel.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"useTextInputModel.d.ts","sourceRoot":"","sources":["../../../../../text-input/lib/hooks/useTextInputModel.ts"],"names":[],"mappings":"AAEA,8IAA8I;AAC9I,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { useFormFieldModel } from '@workday/canvas-kit-preview-react/form-field';
|
|
2
|
-
/** @deprecated Please use `useFormFieldModel` instead */
|
|
2
|
+
/** @deprecated ⚠️ `useTextInputModel` is deprecated and will be removed in a future major version. Please use `useFormFieldModel` instead. */
|
|
3
3
|
export const useTextInputModel = useFormFieldModel;
|
package/menu/lib/Menu.tsx
CHANGED
|
@@ -7,12 +7,7 @@ import {commonColors, space, borderRadius} from '@workday/canvas-kit-react/token
|
|
|
7
7
|
import {hideMouseFocus, GrowthBehavior, generateUniqueId} from '@workday/canvas-kit-react/common';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* As of Canvas Kit v8, Menu is being deprecated.
|
|
13
|
-
* It will be removed in v10. Please see the
|
|
14
|
-
* [upgrade guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page)
|
|
15
|
-
* for more information.
|
|
10
|
+
* @deprecated ⚠️ `DeprecatedMenuProps` has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
16
11
|
*/
|
|
17
12
|
export interface DeprecatedMenuProps
|
|
18
13
|
extends GrowthBehavior,
|
|
@@ -55,12 +50,8 @@ export interface DeprecatedMenuProps
|
|
|
55
50
|
}
|
|
56
51
|
|
|
57
52
|
/**
|
|
58
|
-
* ### Deprecated Menu State
|
|
59
53
|
*
|
|
60
|
-
*
|
|
61
|
-
* It will be removed in v10. Please see the
|
|
62
|
-
* [upgrade guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page)
|
|
63
|
-
* for more information.
|
|
54
|
+
* @deprecated ⚠️ `DeprecatedMenuState` has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
64
55
|
*/
|
|
65
56
|
export interface DeprecatedMenuState {
|
|
66
57
|
selectedItemIndex: number;
|
|
@@ -78,11 +69,6 @@ const List = styled('ul')({
|
|
|
78
69
|
});
|
|
79
70
|
|
|
80
71
|
/**
|
|
81
|
-
* As of Canvas Kit v8, Menu is being deprecated.
|
|
82
|
-
* It will be removed in v10. Please see the [upgrade
|
|
83
|
-
* guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page) for
|
|
84
|
-
* more information.
|
|
85
|
-
*
|
|
86
72
|
* `DeprecatedMenu` renders a styled `<ul role="menu">` element within a {@link Card} and follows
|
|
87
73
|
* the [Active Menu
|
|
88
74
|
* pattern](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/examples/menu-button-actions-active-descendant/)
|
|
@@ -90,7 +76,7 @@ const List = styled('ul')({
|
|
|
90
76
|
*
|
|
91
77
|
* Undocumented props are spread to the underlying `<ul>` element.
|
|
92
78
|
*
|
|
93
|
-
* @deprecated
|
|
79
|
+
* @deprecated ⚠️ Deprecated Menu has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
94
80
|
*/
|
|
95
81
|
export class DeprecatedMenu extends React.Component<DeprecatedMenuProps, DeprecatedMenuState> {
|
|
96
82
|
private id = generateUniqueId();
|
package/menu/lib/MenuItem.tsx
CHANGED
|
@@ -12,12 +12,7 @@ import {CanvasSystemIcon} from '@workday/design-assets-types';
|
|
|
12
12
|
import {SystemIcon, SystemIconProps} from '@workday/canvas-kit-react/icon';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* As of Canvas Kit v8, Menu is being deprecated.
|
|
18
|
-
* It will be removed in v10. Please see the
|
|
19
|
-
* [upgrade guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page)
|
|
20
|
-
* for more information.
|
|
15
|
+
* @deprecated ⚠️ `DeprecatedMenuItemProps` has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
21
16
|
*/
|
|
22
17
|
export interface DeprecatedMenuItemProps extends React.LiHTMLAttributes<HTMLLIElement> {
|
|
23
18
|
/**
|
|
@@ -262,14 +257,10 @@ const scrollIntoViewIfNeeded = (elem: HTMLElement, centerIfNeeded = true): void
|
|
|
262
257
|
* - `tabindex={-1}`
|
|
263
258
|
* - `id`s following this pattern: `${MenuId}-${index}`
|
|
264
259
|
*
|
|
265
|
-
* As of Canvas Kit v8, Menu is being deprecated.
|
|
266
|
-
* It will be removed in v10. Please see the [upgrade
|
|
267
|
-
* guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page) for
|
|
268
|
-
* more information.
|
|
269
|
-
*
|
|
270
260
|
* Undocumented props are spread to the underlying `<li>` element.
|
|
271
261
|
*
|
|
272
|
-
* @deprecated
|
|
262
|
+
* @deprecated ⚠️ `DeprecatedMenuItem` has been deprecated and will be removed in a future major version. Please use [Menu in Main](https://workday.github.io/canvas-kit/?path=/docs/components-popups-menu--basic) instead.
|
|
263
|
+
*
|
|
273
264
|
*/
|
|
274
265
|
export class DeprecatedMenuItem extends React.Component<DeprecatedMenuItemProps> {
|
|
275
266
|
ref = React.createRef<HTMLLIElement>();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-preview-react",
|
|
3
|
-
"version": "9.2.0-
|
|
3
|
+
"version": "9.2.0-528-next.0",
|
|
4
4
|
"description": "Canvas Kit Preview is made up of components that have the full design and a11y review, are part of the DS ecosystem and are approved for use in product. The API's could be subject to change, but not without strong communication and migration strategies.",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@emotion/react": "^11.7.1",
|
|
48
48
|
"@emotion/styled": "^11.6.0",
|
|
49
|
-
"@workday/canvas-kit-react": "^9.2.0-
|
|
49
|
+
"@workday/canvas-kit-react": "^9.2.0-528-next.0",
|
|
50
50
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
51
51
|
"@workday/design-assets-types": "^0.2.8"
|
|
52
52
|
},
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"react-hook-form": "7.36.1",
|
|
57
57
|
"yup": "^0.32.11"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "32899ba334066e6b0f021de22fd0ae933108462c"
|
|
60
60
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import {useFormFieldModel} from '@workday/canvas-kit-preview-react/form-field';
|
|
2
2
|
|
|
3
|
-
/** @deprecated Please use `useFormFieldModel` instead */
|
|
3
|
+
/** @deprecated ⚠️ `useTextInputModel` is deprecated and will be removed in a future major version. Please use `useFormFieldModel` instead. */
|
|
4
4
|
export const useTextInputModel = useFormFieldModel;
|