@workday/canvas-kit-react 11.0.0-alpha.657-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/common/index.ts +2 -0
- package/common/lib/AccessibleHide.tsx +32 -0
- package/common/lib/AriaLiveRegion.tsx +48 -0
- package/common/lib/styles/index.ts +0 -1
- 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/index.d.ts +2 -0
- package/dist/commonjs/common/index.d.ts.map +1 -1
- package/dist/commonjs/common/index.js +2 -0
- package/dist/commonjs/common/lib/AccessibleHide.d.ts +22 -0
- package/dist/commonjs/common/lib/AccessibleHide.d.ts.map +1 -0
- package/dist/commonjs/common/lib/AccessibleHide.js +51 -0
- package/dist/commonjs/common/lib/AriaLiveRegion.d.ts +23 -0
- package/dist/commonjs/common/lib/AriaLiveRegion.d.ts.map +1 -0
- package/dist/commonjs/common/lib/AriaLiveRegion.js +34 -0
- package/dist/commonjs/common/lib/CanvasProvider.d.ts +1 -1
- package/dist/commonjs/common/lib/CanvasProvider.js +1 -1
- package/dist/commonjs/common/lib/styles/index.d.ts +0 -1
- package/dist/commonjs/common/lib/styles/index.d.ts.map +1 -1
- package/dist/commonjs/common/lib/styles/index.js +0 -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/index.d.ts +2 -0
- package/dist/es6/common/index.d.ts.map +1 -1
- package/dist/es6/common/index.js +2 -0
- package/dist/es6/common/lib/AccessibleHide.d.ts +22 -0
- package/dist/es6/common/lib/AccessibleHide.d.ts.map +1 -0
- package/dist/es6/common/lib/AccessibleHide.js +29 -0
- package/dist/es6/common/lib/AriaLiveRegion.d.ts +23 -0
- package/dist/es6/common/lib/AriaLiveRegion.d.ts.map +1 -0
- package/dist/es6/common/lib/AriaLiveRegion.js +12 -0
- package/dist/es6/common/lib/CanvasProvider.d.ts +1 -1
- package/dist/es6/common/lib/CanvasProvider.js +1 -1
- package/dist/es6/common/lib/styles/index.d.ts +0 -1
- package/dist/es6/common/lib/styles/index.d.ts.map +1 -1
- package/dist/es6/common/lib/styles/index.js +0 -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/common/lib/styles/accessibleHide.ts +0 -18
- package/dist/commonjs/common/lib/styles/accessibleHide.d.ts +0 -7
- package/dist/commonjs/common/lib/styles/accessibleHide.d.ts.map +0 -1
- package/dist/commonjs/common/lib/styles/accessibleHide.js +0 -19
- package/dist/es6/common/lib/styles/accessibleHide.d.ts +0 -7
- package/dist/es6/common/lib/styles/accessibleHide.d.ts.map +0 -1
- package/dist/es6/common/lib/styles/accessibleHide.js +0 -16
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CSProps } from '@workday/canvas-kit-styling';
|
|
2
|
+
export interface AriaLiveRegionProps extends CSProps {
|
|
3
|
+
/**
|
|
4
|
+
* set the [aria-atomic](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-atomic) attribute
|
|
5
|
+
* @default true
|
|
6
|
+
*/
|
|
7
|
+
'aria-atomic'?: true | false | 'true' | 'false';
|
|
8
|
+
/**
|
|
9
|
+
* set the [aria-live](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-live) attribute
|
|
10
|
+
* @default 'polite'
|
|
11
|
+
*/
|
|
12
|
+
'aria-live'?: 'polite' | 'assertive' | 'off';
|
|
13
|
+
/**
|
|
14
|
+
* set the live region's [aria role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/status_role)
|
|
15
|
+
* @default 'status'
|
|
16
|
+
*/
|
|
17
|
+
role?: 'status' | 'alert' | 'log';
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A convenient wrapper for creating an [aria-live region](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions)
|
|
21
|
+
*/
|
|
22
|
+
export declare const AriaLiveRegion: import("./utils/components").ElementComponent<"div", AriaLiveRegionProps>;
|
|
23
|
+
//# sourceMappingURL=AriaLiveRegion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AriaLiveRegion.d.ts","sourceRoot":"","sources":["../../../../common/lib/AriaLiveRegion.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAe,OAAO,EAAC,MAAM,6BAA6B,CAAC;AAElE,MAAM,WAAW,mBAAoB,SAAQ,OAAO;IAClD;;;OAGG;IACH,aAAa,CAAC,EAAE,IAAI,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;IAChD;;;OAGG;IACH,WAAW,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,KAAK,CAAC;IAC7C;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;CACnC;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,2EAsBzB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { createComponent } from './utils/components';
|
|
3
|
+
import { handleCsProp } from '@workday/canvas-kit-styling';
|
|
4
|
+
/**
|
|
5
|
+
* A convenient wrapper for creating an [aria-live region](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions)
|
|
6
|
+
*/
|
|
7
|
+
export const AriaLiveRegion = createComponent('div')({
|
|
8
|
+
displayName: 'AriaLiveRegion',
|
|
9
|
+
Component: ({ 'aria-atomic': ariaAtomic = true, 'aria-live': ariaLive = 'polite', role = 'status', ...elemProps }, ref, Element) => {
|
|
10
|
+
return (React.createElement(Element, Object.assign({ ref: ref, "aria-atomic": ariaAtomic, "aria-live": ariaLive, role: role }, handleCsProp(elemProps))));
|
|
11
|
+
},
|
|
12
|
+
});
|
|
@@ -73,7 +73,7 @@ export declare const useCanvasThemeToCssVars: (theme: PartialEmotionCanvasTheme
|
|
|
73
73
|
'aria-label'?: string | undefined;
|
|
74
74
|
'aria-labelledby'?: string | undefined;
|
|
75
75
|
'aria-level'?: number | undefined;
|
|
76
|
-
'aria-live'?: "off" | "
|
|
76
|
+
'aria-live'?: "off" | "polite" | "assertive" | undefined;
|
|
77
77
|
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
78
78
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
79
79
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
@@ -6,7 +6,7 @@ import { brand } from '@workday/canvas-tokens-web';
|
|
|
6
6
|
import { cache } from '@emotion/css';
|
|
7
7
|
import { createStyles } from '@workday/canvas-kit-styling';
|
|
8
8
|
// copied from brand/_variables.css
|
|
9
|
-
const defaultBranding = createStyles({ name: "
|
|
9
|
+
const defaultBranding = createStyles({ name: "vi9h1", styles: "--cnvs-brand-error-darkest:rgba(128,22,14,1);--cnvs-brand-common-alert-inner:var(--cnvs-base-palette-cantaloupe-400);--cnvs-brand-common-error-inner:var(--cnvs-base-palette-cinnamon-500);--cnvs-brand-common-focus-outline:var(--cnvs-base-palette-blueberry-400);--cnvs-brand-neutral-accent:var(--cnvs-base-palette-french-vanilla-100);--cnvs-brand-neutral-darkest:var(--cnvs-base-palette-licorice-400);--cnvs-brand-neutral-dark:var(--cnvs-base-palette-licorice-300);--cnvs-brand-neutral-base:var(--cnvs-base-palette-soap-600);--cnvs-brand-neutral-light:var(--cnvs-base-palette-soap-300);--cnvs-brand-neutral-lightest:var(--cnvs-base-palette-soap-200);--cnvs-brand-success-accent:var(--cnvs-base-palette-french-vanilla-100);--cnvs-brand-success-darkest:var(--cnvs-base-palette-green-apple-600);--cnvs-brand-success-dark:var(--cnvs-base-palette-green-apple-500);--cnvs-brand-success-base:var(--cnvs-base-palette-green-apple-400);--cnvs-brand-success-light:var(--cnvs-base-palette-green-apple-300);--cnvs-brand-success-lightest:var(--cnvs-base-palette-green-apple-100);--cnvs-brand-error-accent:var(--cnvs-base-palette-french-vanilla-100);--cnvs-brand-error-dark:var(--cnvs-base-palette-cinnamon-600);--cnvs-brand-error-base:var(--cnvs-base-palette-cinnamon-500);--cnvs-brand-error-light:var(--cnvs-base-palette-cinnamon-200);--cnvs-brand-error-lightest:var(--cnvs-base-palette-cinnamon-100);--cnvs-brand-alert-accent:var(--cnvs-base-palette-french-vanilla-100);--cnvs-brand-alert-darkest:var(--cnvs-base-palette-cantaloupe-600);--cnvs-brand-alert-dark:var(--cnvs-base-palette-cantaloupe-500);--cnvs-brand-alert-base:var(--cnvs-base-palette-cantaloupe-400);--cnvs-brand-alert-light:var(--cnvs-base-palette-cantaloupe-200);--cnvs-brand-alert-lightest:var(--cnvs-base-palette-cantaloupe-100);--cnvs-brand-primary-accent:var(--cnvs-base-palette-french-vanilla-100);--cnvs-brand-primary-darkest:var(--cnvs-base-palette-blueberry-600);--cnvs-brand-primary-dark:var(--cnvs-base-palette-blueberry-500);--cnvs-brand-primary-base:var(--cnvs-base-palette-blueberry-400);--cnvs-brand-primary-light:var(--cnvs-base-palette-blueberry-200);--cnvs-brand-primary-lightest:var(--cnvs-base-palette-blueberry-100);--cnvs-brand-gradient-primary:linear-gradient(90deg, var(--cnvs-brand-primary-base) 0%, var(--cnvs-brand-primary-dark) 100%);" });
|
|
10
10
|
const mappedKeys = {
|
|
11
11
|
lightest: 'lightest',
|
|
12
12
|
light: 'light',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../common/lib/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../common/lib/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { GrowthBehavior, ErrorType, Themeable } from '@workday/canvas-kit-react/common';
|
|
3
3
|
import { FormFieldLabelPosition } from './types';
|
|
4
4
|
/**
|
|
5
|
-
* @deprecated ⚠️ `FormFieldProps` 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 ⚠️ `FormFieldProps` 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 interface FormFieldProps extends Themeable, React.HTMLAttributes<HTMLDivElement>, GrowthBehavior {
|
|
8
8
|
/**
|
|
@@ -59,7 +59,7 @@ export interface FormFieldErrorBehavior {
|
|
|
59
59
|
error?: ErrorType;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
|
-
* @deprecated ⚠️ `FormField` 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--
|
|
62
|
+
* @deprecated ⚠️ `FormField` 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.
|
|
63
63
|
*/
|
|
64
64
|
export declare class FormField extends React.Component<React.PropsWithChildren<FormFieldProps>> {
|
|
65
65
|
static LabelPosition: typeof FormFieldLabelPosition;
|
|
@@ -56,7 +56,7 @@ const FormFieldInputContainer = styled('div')(({ grow, labelPosition }) => {
|
|
|
56
56
|
};
|
|
57
57
|
});
|
|
58
58
|
/**
|
|
59
|
-
* @deprecated ⚠️ `FormField` 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--
|
|
59
|
+
* @deprecated ⚠️ `FormField` 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.
|
|
60
60
|
*/
|
|
61
61
|
export class FormField extends React.Component {
|
|
62
62
|
constructor() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ErrorType, Themeable } from '@workday/canvas-kit-react/common';
|
|
3
3
|
/**
|
|
4
|
-
* @deprecated ⚠️ `HintProps` 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--
|
|
4
|
+
* @deprecated ⚠️ `HintProps` 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.
|
|
5
5
|
*/
|
|
6
6
|
export interface HintProps extends Themeable, React.HTMLAttributes<HTMLParagraphElement> {
|
|
7
7
|
/**
|
|
@@ -20,7 +20,7 @@ export interface HintProps extends Themeable, React.HTMLAttributes<HTMLParagraph
|
|
|
20
20
|
alertLabel?: string;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* @deprecated ⚠️ `Hint` 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--
|
|
23
|
+
* @deprecated ⚠️ `Hint` 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.
|
|
24
24
|
*/
|
|
25
25
|
declare class Hint extends React.Component<HintProps> {
|
|
26
26
|
static ErrorType: typeof ErrorType;
|
|
@@ -4,7 +4,7 @@ import { space } from '@workday/canvas-kit-react/tokens';
|
|
|
4
4
|
import { Subtext, Text } from '@workday/canvas-kit-react/text';
|
|
5
5
|
const Message = styled(Subtext)(({ error, theme }) => error === ErrorType.Error && { color: theme.canvas.palette.error.main });
|
|
6
6
|
/**
|
|
7
|
-
* @deprecated ⚠️ `Hint` 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--
|
|
7
|
+
* @deprecated ⚠️ `Hint` 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.
|
|
8
8
|
*/
|
|
9
9
|
class Hint extends React.Component {
|
|
10
10
|
render() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FormFieldLabelPosition, FormFieldLabelPositionBehavior } from './types';
|
|
3
3
|
/**
|
|
4
|
-
* @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--
|
|
4
|
+
* @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.
|
|
5
5
|
*/
|
|
6
6
|
export interface LabelProps extends FormFieldLabelPositionBehavior {
|
|
7
7
|
/**
|
|
@@ -36,7 +36,7 @@ export interface LabelProps extends FormFieldLabelPositionBehavior {
|
|
|
36
36
|
accessibleHide?: boolean;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
|
-
* @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--
|
|
39
|
+
* @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.
|
|
40
40
|
*/
|
|
41
41
|
declare class Label extends React.Component<React.PropsWithChildren<LabelProps>> {
|
|
42
42
|
static Position: typeof FormFieldLabelPosition;
|
|
@@ -50,7 +50,7 @@ const LegendComponent = styled('legend')(...labelStyles, ({ labelPosition }) =>
|
|
|
50
50
|
});
|
|
51
51
|
const LabelComponent = styled('label')(...labelStyles);
|
|
52
52
|
/**
|
|
53
|
-
* @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--
|
|
53
|
+
* @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.
|
|
54
54
|
*/
|
|
55
55
|
class Label extends React.Component {
|
|
56
56
|
render() {
|
|
@@ -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 declare enum FormFieldLabelPosition {
|
|
8
8
|
Top = 0,
|
|
@@ -10,7 +10,7 @@ export declare enum FormFieldLabelPosition {
|
|
|
10
10
|
Hidden = 2
|
|
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;
|
|
@@ -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 var FormFieldLabelPosition;
|
|
8
8
|
(function (FormFieldLabelPosition) {
|
|
@@ -9,12 +9,12 @@ import { useSelectModel } from './hooks/useSelectModel';
|
|
|
9
9
|
import { useSelectCard } from './hooks/useSelectCard';
|
|
10
10
|
import { useSelectInput } from './hooks/useSelectInput';
|
|
11
11
|
import { createStyles } from '@workday/canvas-kit-styling';
|
|
12
|
-
const selectInputStyles = createStyles({ name: "
|
|
12
|
+
const selectInputStyles = createStyles({ name: "vi9h25", styles: "caret-color:transparent;cursor:default;&::selection{background-color:transparent;}" });
|
|
13
13
|
export const SelectInput = createSubcomponent(TextInput)({
|
|
14
14
|
modelHook: useSelectModel,
|
|
15
15
|
elemPropsHook: useSelectInput,
|
|
16
16
|
})(({ placeholder = 'Choose an option', inputStartIcon, width, ...elemProps }, Element, model) => {
|
|
17
|
-
return (React.createElement(InputGroup, { width: width },
|
|
17
|
+
return (React.createElement(InputGroup, { width: width, "data-width": "ck-formfield-width" },
|
|
18
18
|
inputStartIcon && model.state.selectedIds.length > 0 && (React.createElement(InputGroup.InnerStart, { pointerEvents: "none" },
|
|
19
19
|
React.createElement(SystemIcon, { icon: inputStartIcon }))),
|
|
20
20
|
React.createElement(InputGroup.Input, Object.assign({ as: Element, placeholder: placeholder }, mergeStyles(elemProps, [selectInputStyles]))),
|
|
@@ -4,39 +4,39 @@ import { base, system } from '@workday/canvas-tokens-web';
|
|
|
4
4
|
import { createStencil } from '@workday/canvas-kit-styling';
|
|
5
5
|
import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
6
6
|
const labelTextStencil = createStencil({
|
|
7
|
-
base: { name: "
|
|
7
|
+
base: { name: "vi9hh", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-400;line-height:--cnvs-base-line-height-100;font-size:--cnvs-base-font-size-75;letter-spacing:--cnvs-base-letter-spacing-150;color:var(--cnvs-base-palette-black-pepper-300, rgba(73,73,73,1));" },
|
|
8
8
|
modifiers: {
|
|
9
9
|
typeLevel: {
|
|
10
10
|
// Title level styles
|
|
11
|
-
'title.large': { name: "
|
|
12
|
-
'title.medium': { name: "
|
|
13
|
-
'title.small': { name: "
|
|
11
|
+
'title.large': { name: "vi9hi", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-700;line-height:--cnvs-base-line-height-600;font-size:--cnvs-base-font-size-600;color:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));" },
|
|
12
|
+
'title.medium': { name: "vi9hj", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-700;line-height:--cnvs-base-line-height-500;font-size:--cnvs-base-font-size-500;color:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));" },
|
|
13
|
+
'title.small': { name: "vi9hk", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-700;line-height:--cnvs-base-line-height-400;font-size:--cnvs-base-font-size-400;color:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));" },
|
|
14
14
|
// Heading level styles
|
|
15
|
-
'heading.large': { name: "
|
|
16
|
-
'heading.medium': { name: "
|
|
17
|
-
'heading.small': { name: "
|
|
15
|
+
'heading.large': { name: "vi9hl", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-700;line-height:--cnvs-base-line-height-350;font-size:--cnvs-base-font-size-300;color:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));" },
|
|
16
|
+
'heading.medium': { name: "vi9hm", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-700;line-height:--cnvs-base-line-height-300;font-size:--cnvs-base-font-size-250;color:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));" },
|
|
17
|
+
'heading.small': { name: "vi9hn", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-700;line-height:--cnvs-base-line-height-250;font-size:--cnvs-base-font-size-200;color:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));" },
|
|
18
18
|
// Body level styles
|
|
19
|
-
'body.large': { name: "
|
|
20
|
-
'body.medium': { name: "
|
|
21
|
-
'body.small': { name: "
|
|
19
|
+
'body.large': { name: "vi9ho", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-400;line-height:--cnvs-base-line-height-200;font-size:--cnvs-base-font-size-150;color:var(--cnvs-base-palette-black-pepper-300, rgba(73,73,73,1));" },
|
|
20
|
+
'body.medium': { name: "vi9hp", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-400;line-height:--cnvs-base-line-height-200;font-size:--cnvs-base-font-size-125;color:var(--cnvs-base-palette-black-pepper-300, rgba(73,73,73,1));" },
|
|
21
|
+
'body.small': { name: "vi9hq", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-400;line-height:--cnvs-base-line-height-150;font-size:--cnvs-base-font-size-100;letter-spacing:--cnvs-base-letter-spacing-200;color:var(--cnvs-base-palette-black-pepper-300, rgba(73,73,73,1));" },
|
|
22
22
|
// Subtext level styles
|
|
23
|
-
'subtext.large': { name: "
|
|
24
|
-
'subtext.medium': { name: "
|
|
25
|
-
'subtext.small': { name: "
|
|
23
|
+
'subtext.large': { name: "vi9hr", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-400;line-height:--cnvs-base-line-height-100;font-size:--cnvs-base-font-size-75;letter-spacing:--cnvs-base-letter-spacing-150;color:var(--cnvs-base-palette-black-pepper-300, rgba(73,73,73,1));" },
|
|
24
|
+
'subtext.medium': { name: "vi9hs", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-400;line-height:--cnvs-base-line-height-50;font-size:--cnvs-base-font-size-50;letter-spacing:--cnvs-base-letter-spacing-100;color:var(--cnvs-base-palette-black-pepper-300, rgba(73,73,73,1));" },
|
|
25
|
+
'subtext.small': { name: "vi9ht", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-400;line-height:--cnvs-base-line-height-50;font-size:--cnvs-base-font-size-25;letter-spacing:--cnvs-base-letter-spacing-50;color:var(--cnvs-base-palette-black-pepper-300, rgba(73,73,73,1));" },
|
|
26
26
|
},
|
|
27
27
|
variant: {
|
|
28
|
-
error: { name: "
|
|
29
|
-
hint: { name: "
|
|
30
|
-
inverse: { name: "
|
|
28
|
+
error: { name: "vi9hu", styles: "color:var(--cnvs-base-palette-cinnamon-500, rgba(222,46,33,1));" },
|
|
29
|
+
hint: { name: "vi9hv", styles: "color:var(--cnvs-base-palette-licorice-300, rgba(94,106,117,1));" },
|
|
30
|
+
inverse: { name: "vi9hw", styles: "color:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));" },
|
|
31
31
|
},
|
|
32
32
|
disabled: {
|
|
33
|
-
true: { name: "
|
|
33
|
+
true: { name: "vi9hx", styles: "cursor:default;color:var(--cnvs-base-palette-licorice-100, rgba(161,170,179,1));" },
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
36
|
compound: [
|
|
37
37
|
{
|
|
38
38
|
modifiers: { variant: 'inverse', disabled: true },
|
|
39
|
-
styles: { name: "
|
|
39
|
+
styles: { name: "vi9hy", styles: "opacity:var(--cnvs-sys-opacity-disabled, 0.4);color:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));" },
|
|
40
40
|
},
|
|
41
41
|
],
|
|
42
42
|
}, "label-text");
|
|
@@ -6,26 +6,26 @@ import { mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
|
6
6
|
const textModifiers = createModifiers({
|
|
7
7
|
typeLevel: {
|
|
8
8
|
// Title level styles
|
|
9
|
-
'title.large': createStyles({ name: "
|
|
10
|
-
'title.medium': createStyles({ name: "
|
|
11
|
-
'title.small': createStyles({ name: "
|
|
9
|
+
'title.large': createStyles({ name: "vi9h2", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-700;line-height:--cnvs-base-line-height-600;font-size:--cnvs-base-font-size-600;color:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));" }),
|
|
10
|
+
'title.medium': createStyles({ name: "vi9h3", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-700;line-height:--cnvs-base-line-height-500;font-size:--cnvs-base-font-size-500;color:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));" }),
|
|
11
|
+
'title.small': createStyles({ name: "vi9h4", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-700;line-height:--cnvs-base-line-height-400;font-size:--cnvs-base-font-size-400;color:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));" }),
|
|
12
12
|
// Heading level styles
|
|
13
|
-
'heading.large': createStyles({ name: "
|
|
14
|
-
'heading.medium': createStyles({ name: "
|
|
15
|
-
'heading.small': createStyles({ name: "
|
|
13
|
+
'heading.large': createStyles({ name: "vi9h5", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-700;line-height:--cnvs-base-line-height-350;font-size:--cnvs-base-font-size-300;color:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));" }),
|
|
14
|
+
'heading.medium': createStyles({ name: "vi9h6", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-700;line-height:--cnvs-base-line-height-300;font-size:--cnvs-base-font-size-250;color:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));" }),
|
|
15
|
+
'heading.small': createStyles({ name: "vi9h7", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-700;line-height:--cnvs-base-line-height-250;font-size:--cnvs-base-font-size-200;color:var(--cnvs-base-palette-black-pepper-400, rgba(51,51,51,1));" }),
|
|
16
16
|
// Body level styles
|
|
17
|
-
'body.large': createStyles({ name: "
|
|
18
|
-
'body.medium': createStyles({ name: "
|
|
19
|
-
'body.small': createStyles({ name: "
|
|
17
|
+
'body.large': createStyles({ name: "vi9h8", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-400;line-height:--cnvs-base-line-height-200;font-size:--cnvs-base-font-size-150;color:var(--cnvs-base-palette-black-pepper-300, rgba(73,73,73,1));" }),
|
|
18
|
+
'body.medium': createStyles({ name: "vi9h9", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-400;line-height:--cnvs-base-line-height-200;font-size:--cnvs-base-font-size-125;color:var(--cnvs-base-palette-black-pepper-300, rgba(73,73,73,1));" }),
|
|
19
|
+
'body.small': createStyles({ name: "vi9ha", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-400;line-height:--cnvs-base-line-height-150;font-size:--cnvs-base-font-size-100;letter-spacing:--cnvs-base-letter-spacing-200;color:var(--cnvs-base-palette-black-pepper-300, rgba(73,73,73,1));" }),
|
|
20
20
|
// Subtext level styles
|
|
21
|
-
'subtext.large': createStyles({ name: "
|
|
22
|
-
'subtext.medium': createStyles({ name: "
|
|
23
|
-
'subtext.small': createStyles({ name: "
|
|
21
|
+
'subtext.large': createStyles({ name: "vi9hb", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-400;line-height:--cnvs-base-line-height-100;font-size:--cnvs-base-font-size-75;letter-spacing:--cnvs-base-letter-spacing-150;color:var(--cnvs-base-palette-black-pepper-300, rgba(73,73,73,1));" }),
|
|
22
|
+
'subtext.medium': createStyles({ name: "vi9hc", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-400;line-height:--cnvs-base-line-height-50;font-size:--cnvs-base-font-size-50;letter-spacing:--cnvs-base-letter-spacing-100;color:var(--cnvs-base-palette-black-pepper-300, rgba(73,73,73,1));" }),
|
|
23
|
+
'subtext.small': createStyles({ name: "vi9hd", styles: "font-family:--cnvs-base-font-family-50;font-weight:--cnvs-base-font-weight-400;line-height:--cnvs-base-line-height-50;font-size:--cnvs-base-font-size-25;letter-spacing:--cnvs-base-letter-spacing-50;color:var(--cnvs-base-palette-black-pepper-300, rgba(73,73,73,1));" }),
|
|
24
24
|
},
|
|
25
25
|
variant: {
|
|
26
|
-
error: createStyles({ name: "
|
|
27
|
-
hint: createStyles({ name: "
|
|
28
|
-
inverse: createStyles({ name: "
|
|
26
|
+
error: createStyles({ name: "vi9he", styles: "color:var(--cnvs-base-palette-cinnamon-500, rgba(222,46,33,1));" }),
|
|
27
|
+
hint: createStyles({ name: "vi9hf", styles: "color:var(--cnvs-base-palette-licorice-300, rgba(94,106,117,1));" }),
|
|
28
|
+
inverse: createStyles({ name: "vi9hg", styles: "color:var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1));" }),
|
|
29
29
|
},
|
|
30
30
|
});
|
|
31
31
|
/**
|
|
@@ -11,7 +11,7 @@ import {Hint} from './Hint';
|
|
|
11
11
|
import {Label} from './Label';
|
|
12
12
|
import {FormFieldLabelPosition, FormFieldLabelPositionBehavior} from './types';
|
|
13
13
|
/**
|
|
14
|
-
* @deprecated ⚠️ `FormFieldProps` 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--
|
|
14
|
+
* @deprecated ⚠️ `FormFieldProps` 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.
|
|
15
15
|
*/
|
|
16
16
|
export interface FormFieldProps
|
|
17
17
|
extends Themeable,
|
|
@@ -139,7 +139,7 @@ const FormFieldInputContainer = styled('div')<GrowthBehavior & FormFieldLabelPos
|
|
|
139
139
|
}
|
|
140
140
|
);
|
|
141
141
|
/**
|
|
142
|
-
* @deprecated ⚠️ `FormField` 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--
|
|
142
|
+
* @deprecated ⚠️ `FormField` 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.
|
|
143
143
|
*/
|
|
144
144
|
export class FormField extends React.Component<React.PropsWithChildren<FormFieldProps>> {
|
|
145
145
|
static LabelPosition = FormFieldLabelPosition;
|
package/form-field/lib/Hint.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import {ErrorType, Themeable, styled} from '@workday/canvas-kit-react/common';
|
|
|
3
3
|
import {space} from '@workday/canvas-kit-react/tokens';
|
|
4
4
|
import {Subtext, Text} from '@workday/canvas-kit-react/text';
|
|
5
5
|
/**
|
|
6
|
-
* @deprecated ⚠️ `HintProps` 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 ⚠️ `HintProps` 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 HintProps extends Themeable, React.HTMLAttributes<HTMLParagraphElement> {
|
|
9
9
|
/**
|
|
@@ -26,7 +26,7 @@ const Message = styled(Subtext)<Pick<HintProps, 'error'>>(
|
|
|
26
26
|
({error, theme}) => error === ErrorType.Error && {color: theme.canvas.palette.error.main}
|
|
27
27
|
);
|
|
28
28
|
/**
|
|
29
|
-
* @deprecated ⚠️ `Hint` 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--
|
|
29
|
+
* @deprecated ⚠️ `Hint` 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.
|
|
30
30
|
*/
|
|
31
31
|
class Hint extends React.Component<HintProps> {
|
|
32
32
|
static ErrorType = ErrorType;
|
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} />
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {CSSProperties} from '@workday/canvas-kit-react/tokens';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A utility to visually hide content, while still making accessible to screenreaders
|
|
5
|
-
* See https://a11y-101.com/development/skip-link
|
|
6
|
-
*/
|
|
7
|
-
export const accessibleHide: CSSProperties = {
|
|
8
|
-
clip: 'rect(1px, 1px, 1px, 1px)', // Deprecated but still used by most browsers, clip-path will be taking its place soon.
|
|
9
|
-
clipPath: 'polygon(0px 0px, 0px 0px, 0px 0px, 0px 0px)',
|
|
10
|
-
position: 'absolute',
|
|
11
|
-
overflow: 'hidden',
|
|
12
|
-
whiteSpace: 'nowrap',
|
|
13
|
-
height: '1px',
|
|
14
|
-
width: '1px',
|
|
15
|
-
margin: '-1px',
|
|
16
|
-
padding: 0,
|
|
17
|
-
border: 0,
|
|
18
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from '@workday/canvas-kit-react/tokens';
|
|
2
|
-
/**
|
|
3
|
-
* A utility to visually hide content, while still making accessible to screenreaders
|
|
4
|
-
* See https://a11y-101.com/development/skip-link
|
|
5
|
-
*/
|
|
6
|
-
export declare const accessibleHide: CSSProperties;
|
|
7
|
-
//# sourceMappingURL=accessibleHide.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accessibleHide.d.ts","sourceRoot":"","sources":["../../../../../common/lib/styles/accessibleHide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAE/D;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,aAW5B,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.accessibleHide = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* A utility to visually hide content, while still making accessible to screenreaders
|
|
6
|
-
* See https://a11y-101.com/development/skip-link
|
|
7
|
-
*/
|
|
8
|
-
exports.accessibleHide = {
|
|
9
|
-
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
10
|
-
clipPath: 'polygon(0px 0px, 0px 0px, 0px 0px, 0px 0px)',
|
|
11
|
-
position: 'absolute',
|
|
12
|
-
overflow: 'hidden',
|
|
13
|
-
whiteSpace: 'nowrap',
|
|
14
|
-
height: '1px',
|
|
15
|
-
width: '1px',
|
|
16
|
-
margin: '-1px',
|
|
17
|
-
padding: 0,
|
|
18
|
-
border: 0,
|
|
19
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from '@workday/canvas-kit-react/tokens';
|
|
2
|
-
/**
|
|
3
|
-
* A utility to visually hide content, while still making accessible to screenreaders
|
|
4
|
-
* See https://a11y-101.com/development/skip-link
|
|
5
|
-
*/
|
|
6
|
-
export declare const accessibleHide: CSSProperties;
|
|
7
|
-
//# sourceMappingURL=accessibleHide.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accessibleHide.d.ts","sourceRoot":"","sources":["../../../../../common/lib/styles/accessibleHide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAE/D;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,aAW5B,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A utility to visually hide content, while still making accessible to screenreaders
|
|
3
|
-
* See https://a11y-101.com/development/skip-link
|
|
4
|
-
*/
|
|
5
|
-
export const accessibleHide = {
|
|
6
|
-
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
7
|
-
clipPath: 'polygon(0px 0px, 0px 0px, 0px 0px, 0px 0px)',
|
|
8
|
-
position: 'absolute',
|
|
9
|
-
overflow: 'hidden',
|
|
10
|
-
whiteSpace: 'nowrap',
|
|
11
|
-
height: '1px',
|
|
12
|
-
width: '1px',
|
|
13
|
-
margin: '-1px',
|
|
14
|
-
padding: 0,
|
|
15
|
-
border: 0,
|
|
16
|
-
};
|