@workday/canvas-kit-react 11.0.0-alpha.662-next.0 → 11.0.0-alpha.664-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/badge/lib/CountBadge.js +3 -3
- package/dist/commonjs/button/lib/BaseButton.js +17 -17
- package/dist/commonjs/button/lib/DeleteButton.js +1 -1
- package/dist/commonjs/button/lib/PrimaryButton.js +2 -2
- package/dist/commonjs/button/lib/SecondaryButton.js +2 -2
- package/dist/commonjs/button/lib/TertiaryButton.js +15 -15
- package/dist/commonjs/card/lib/Card.js +1 -1
- package/dist/commonjs/card/lib/CardHeading.js +1 -1
- package/dist/commonjs/common/lib/AccessibleHide.js +1 -1
- package/dist/commonjs/common/lib/CanvasProvider.js +1 -1
- package/dist/commonjs/form-field/lib/FormField.d.ts +2 -2
- package/dist/commonjs/form-field/lib/FormField.js +1 -1
- package/dist/commonjs/form-field/lib/Hint.d.ts +2 -2
- package/dist/commonjs/form-field/lib/Hint.js +1 -1
- package/dist/commonjs/form-field/lib/Label.d.ts +2 -2
- package/dist/commonjs/form-field/lib/Label.js +1 -1
- package/dist/commonjs/form-field/lib/types.d.ts +2 -2
- package/dist/commonjs/form-field/lib/types.js +1 -1
- package/dist/commonjs/select/lib/Select.js +2 -2
- package/dist/commonjs/text/lib/LabelText.js +18 -18
- package/dist/commonjs/text/lib/Text.js +15 -15
- package/dist/es6/badge/lib/CountBadge.js +3 -3
- package/dist/es6/button/lib/BaseButton.js +17 -17
- package/dist/es6/button/lib/DeleteButton.js +1 -1
- package/dist/es6/button/lib/PrimaryButton.js +2 -2
- package/dist/es6/button/lib/SecondaryButton.js +2 -2
- package/dist/es6/button/lib/TertiaryButton.js +15 -15
- package/dist/es6/card/lib/Card.js +1 -1
- package/dist/es6/card/lib/CardHeading.js +1 -1
- package/dist/es6/common/lib/AccessibleHide.js +1 -1
- package/dist/es6/common/lib/CanvasProvider.js +1 -1
- package/dist/es6/form-field/lib/FormField.d.ts +2 -2
- package/dist/es6/form-field/lib/FormField.js +1 -1
- package/dist/es6/form-field/lib/Hint.d.ts +2 -2
- package/dist/es6/form-field/lib/Hint.js +1 -1
- package/dist/es6/form-field/lib/Label.d.ts +2 -2
- package/dist/es6/form-field/lib/Label.js +1 -1
- package/dist/es6/form-field/lib/types.d.ts +2 -2
- package/dist/es6/form-field/lib/types.js +1 -1
- package/dist/es6/select/lib/Select.js +2 -2
- package/dist/es6/text/lib/LabelText.js +18 -18
- package/dist/es6/text/lib/Text.js +15 -15
- package/form-field/lib/FormField.tsx +2 -2
- package/form-field/lib/Hint.tsx +2 -2
- package/form-field/lib/Label.tsx +2 -2
- package/form-field/lib/types.ts +2 -2
- package/package.json +4 -4
- package/select/lib/Select.tsx +1 -1
package/form-field/lib/Label.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import {colors, space, type} from '@workday/canvas-kit-react/tokens';
|
|
|
3
3
|
import {accessibleHide as accessibleHideCSS, styled} from '@workday/canvas-kit-react/common';
|
|
4
4
|
import {FormFieldLabelPosition, FormFieldLabelPositionBehavior} from './types';
|
|
5
5
|
/**
|
|
6
|
-
* @deprecated ⚠️ `LabelProps` in Main has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/story/preview-inputs-form-field--
|
|
6
|
+
* @deprecated ⚠️ `LabelProps` in Main has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/story/preview-inputs-form-field--basic) instead.
|
|
7
7
|
*/
|
|
8
8
|
export interface LabelProps extends FormFieldLabelPositionBehavior {
|
|
9
9
|
/**
|
|
@@ -90,7 +90,7 @@ const LegendComponent = styled('legend')<LabelProps>(...labelStyles, ({labelPosi
|
|
|
90
90
|
|
|
91
91
|
const LabelComponent = styled('label')<LabelProps>(...labelStyles);
|
|
92
92
|
/**
|
|
93
|
-
* @deprecated ⚠️ `Label` in Main has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/story/preview-inputs-form-field--
|
|
93
|
+
* @deprecated ⚠️ `Label` in Main has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/story/preview-inputs-form-field--basic) instead.
|
|
94
94
|
*/
|
|
95
95
|
class Label extends React.Component<React.PropsWithChildren<LabelProps>> {
|
|
96
96
|
static Position = FormFieldLabelPosition;
|
package/form-field/lib/types.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
*
|
|
3
3
|
* The position of the FormField label (Top vs Left vs Hidden).
|
|
4
4
|
*
|
|
5
|
-
* @deprecated ⚠️ `FormFieldLabelPosition` in Main has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/story/preview-inputs-form-field--
|
|
5
|
+
* @deprecated ⚠️ `FormFieldLabelPosition` in Main has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/story/preview-inputs-form-field--basic) instead.
|
|
6
6
|
*/
|
|
7
7
|
export enum FormFieldLabelPosition {
|
|
8
8
|
Top,
|
|
@@ -10,7 +10,7 @@ export enum FormFieldLabelPosition {
|
|
|
10
10
|
Hidden,
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* @deprecated ⚠️ `FormFieldLabelPositionBehavior` in Main has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/story/preview-inputs-form-field--
|
|
13
|
+
* @deprecated ⚠️ `FormFieldLabelPositionBehavior` in Main has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/story/preview-inputs-form-field--basic) instead.
|
|
14
14
|
*/
|
|
15
15
|
export interface FormFieldLabelPositionBehavior {
|
|
16
16
|
labelPosition?: FormFieldLabelPosition;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-react",
|
|
3
|
-
"version": "11.0.0-alpha.
|
|
3
|
+
"version": "11.0.0-alpha.664-next.0",
|
|
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",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@emotion/styled": "^11.6.0",
|
|
51
51
|
"@popperjs/core": "^2.5.4",
|
|
52
52
|
"@workday/canvas-colors-web": "^2.0.0",
|
|
53
|
-
"@workday/canvas-kit-popup-stack": "^11.0.0-alpha.
|
|
54
|
-
"@workday/canvas-kit-styling": "^
|
|
53
|
+
"@workday/canvas-kit-popup-stack": "^11.0.0-alpha.664-next.0",
|
|
54
|
+
"@workday/canvas-kit-styling": "^10.3.0",
|
|
55
55
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
56
56
|
"@workday/canvas-tokens-web": "^1.0.2",
|
|
57
57
|
"@workday/design-assets-types": "^0.2.8",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"@workday/canvas-accent-icons-web": "^3.0.0",
|
|
70
70
|
"@workday/canvas-applet-icons-web": "^2.0.0"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "518377818f85c915b6199f66d73fd7e5e38ce7fa"
|
|
73
73
|
}
|
package/select/lib/Select.tsx
CHANGED
|
@@ -40,7 +40,7 @@ export const SelectInput = createSubcomponent(TextInput)({
|
|
|
40
40
|
})<SelectInputProps>(
|
|
41
41
|
({placeholder = 'Choose an option', inputStartIcon, width, ...elemProps}, Element, model) => {
|
|
42
42
|
return (
|
|
43
|
-
<InputGroup width={width}>
|
|
43
|
+
<InputGroup width={width} data-width="ck-formfield-width">
|
|
44
44
|
{inputStartIcon && model.state.selectedIds.length > 0 && (
|
|
45
45
|
<InputGroup.InnerStart pointerEvents="none">
|
|
46
46
|
<SystemIcon icon={inputStartIcon} />
|