@workday/canvas-kit-react 9.1.19 → 9.1.22
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/avatar/lib/Avatar.tsx +19 -3
- package/common/lib/utils/components.ts +2 -2
- package/common/lib/utils/models.ts +4 -4
- package/common/lib/utils/useUniqueId.ts +1 -2
- package/dist/commonjs/avatar/lib/Avatar.d.ts +8 -0
- package/dist/commonjs/avatar/lib/Avatar.d.ts.map +1 -1
- package/dist/commonjs/avatar/lib/Avatar.js +4 -3
- package/dist/commonjs/common/lib/utils/components.d.ts +2 -2
- package/dist/commonjs/common/lib/utils/components.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/components.js +1 -1
- package/dist/commonjs/common/lib/utils/models.d.ts +4 -4
- package/dist/commonjs/common/lib/utils/models.js +2 -2
- package/dist/commonjs/common/lib/utils/useUniqueId.d.ts +1 -2
- package/dist/commonjs/common/lib/utils/useUniqueId.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/useUniqueId.js +1 -2
- package/dist/commonjs/status-indicator/lib/StatusIndicator.d.ts +6 -18
- package/dist/commonjs/status-indicator/lib/StatusIndicator.d.ts.map +1 -1
- package/dist/commonjs/status-indicator/lib/StatusIndicator.js +4 -12
- package/dist/commonjs/tabs/lib/Tabs.d.ts +1 -1
- package/dist/commonjs/tabs/lib/Tabs.js +1 -1
- package/dist/es6/avatar/lib/Avatar.d.ts +8 -0
- package/dist/es6/avatar/lib/Avatar.d.ts.map +1 -1
- package/dist/es6/avatar/lib/Avatar.js +4 -3
- package/dist/es6/common/lib/utils/components.d.ts +2 -2
- package/dist/es6/common/lib/utils/components.d.ts.map +1 -1
- package/dist/es6/common/lib/utils/components.js +1 -1
- package/dist/es6/common/lib/utils/models.d.ts +4 -4
- package/dist/es6/common/lib/utils/models.js +2 -2
- package/dist/es6/common/lib/utils/useUniqueId.d.ts +1 -2
- package/dist/es6/common/lib/utils/useUniqueId.d.ts.map +1 -1
- package/dist/es6/common/lib/utils/useUniqueId.js +1 -2
- package/dist/es6/status-indicator/lib/StatusIndicator.d.ts +6 -18
- package/dist/es6/status-indicator/lib/StatusIndicator.d.ts.map +1 -1
- package/dist/es6/status-indicator/lib/StatusIndicator.js +4 -12
- package/dist/es6/tabs/lib/Tabs.d.ts +1 -1
- package/dist/es6/tabs/lib/Tabs.js +1 -1
- package/package.json +3 -3
- package/status-indicator/lib/StatusIndicator.tsx +6 -18
- package/tabs/lib/Tabs.tsx +1 -1
package/avatar/lib/Avatar.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, {useState} from 'react';
|
|
2
|
+
import {Property} from 'csstype';
|
|
2
3
|
import {styled, focusRing, hideMouseFocus} from '@workday/canvas-kit-react/common';
|
|
3
4
|
import isPropValid from '@emotion/is-prop-valid';
|
|
4
5
|
import {borderRadius, colors} from '@workday/canvas-kit-react/tokens';
|
|
@@ -35,6 +36,13 @@ export interface AvatarProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
35
36
|
* Will render an `div` tag instead of a `button` when defined.
|
|
36
37
|
*/
|
|
37
38
|
as?: 'div';
|
|
39
|
+
/**
|
|
40
|
+
* The object-fit CSS property sets how the content of a replaced element,
|
|
41
|
+
* such as an `<img>` or `<video>`, should be resized to fit its container.
|
|
42
|
+
* See [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).
|
|
43
|
+
* If your image is not a square, you can use this property to ensure the image is rendered properly.
|
|
44
|
+
*/
|
|
45
|
+
objectFit?: Property.ObjectFit;
|
|
38
46
|
}
|
|
39
47
|
|
|
40
48
|
/**
|
|
@@ -107,15 +115,16 @@ const StyledIcon = styled(SystemIconCircle)<{isImageLoaded: boolean}>(
|
|
|
107
115
|
})
|
|
108
116
|
);
|
|
109
117
|
|
|
110
|
-
const StyledImage = styled('img')<{isLoaded: boolean}>(
|
|
118
|
+
const StyledImage = styled('img')<{isLoaded: boolean; objectFit?: Property.ObjectFit}>(
|
|
111
119
|
{
|
|
112
120
|
width: '100%',
|
|
113
121
|
height: '100%',
|
|
114
122
|
borderRadius: borderRadius.circle,
|
|
115
123
|
transition: fadeTransition,
|
|
116
124
|
},
|
|
117
|
-
({isLoaded}) => ({
|
|
125
|
+
({isLoaded, objectFit}) => ({
|
|
118
126
|
opacity: isLoaded ? 1 : 0,
|
|
127
|
+
objectFit,
|
|
119
128
|
})
|
|
120
129
|
);
|
|
121
130
|
|
|
@@ -127,6 +136,7 @@ export const Avatar: AvatarOverload = React.forwardRef(
|
|
|
127
136
|
altText = 'Avatar',
|
|
128
137
|
url,
|
|
129
138
|
onClick,
|
|
139
|
+
objectFit,
|
|
130
140
|
...elemProps
|
|
131
141
|
}: AvatarProps,
|
|
132
142
|
ref: React.Ref<HTMLButtonElement>
|
|
@@ -164,7 +174,13 @@ export const Avatar: AvatarOverload = React.forwardRef(
|
|
|
164
174
|
</StyledStack>
|
|
165
175
|
{url && (
|
|
166
176
|
<StyledStack size={size}>
|
|
167
|
-
<StyledImage
|
|
177
|
+
<StyledImage
|
|
178
|
+
src={url}
|
|
179
|
+
alt={altText}
|
|
180
|
+
onLoad={loadImage}
|
|
181
|
+
isLoaded={imageLoaded}
|
|
182
|
+
objectFit={objectFit}
|
|
183
|
+
/>
|
|
168
184
|
</StyledStack>
|
|
169
185
|
)}
|
|
170
186
|
</StyledContainer>
|
|
@@ -388,7 +388,7 @@ export const createSubcomponent = <
|
|
|
388
388
|
elemPropsHook,
|
|
389
389
|
subComponents,
|
|
390
390
|
}: {
|
|
391
|
-
/** @deprecated You no longer need to use displayName
|
|
391
|
+
/** @deprecated ⚠️ `displayName` has been deprecated and will be removed in a future major version. You no longer need to use `displayName`. A `displayName` will be automatically added if it belongs to a container. */
|
|
392
392
|
displayName?: string;
|
|
393
393
|
modelHook: TModelHook;
|
|
394
394
|
elemPropsHook?: TElemPropsHook;
|
|
@@ -661,7 +661,7 @@ export const createHook = <M extends Model<any, any>, PO extends {}, PI extends
|
|
|
661
661
|
};
|
|
662
662
|
|
|
663
663
|
/**
|
|
664
|
-
* @deprecated use `createSubModelElemPropsHook` instead
|
|
664
|
+
* @deprecated ⚠️ `subModelHook` has been deprecated and will be removed in a future major version. Please use `createSubModelElemPropsHook` instead.
|
|
665
665
|
*/
|
|
666
666
|
export const subModelHook = <M extends Model<any, any>, SM extends Model<any, any>, O extends {}>(
|
|
667
667
|
fn: (model: M) => SM,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @deprecated The returned model is now inferred from `createModelHook
|
|
5
|
+
* @deprecated ⚠️ `Model` has been deprecated and will be removed in a future major version. The returned model is now inferred from `createModelHook`.
|
|
6
6
|
*/
|
|
7
7
|
export type Model<State, Events extends IEvent> = {
|
|
8
8
|
state: State;
|
|
@@ -64,7 +64,7 @@ type ToCallbackConfig<
|
|
|
64
64
|
* id?: string
|
|
65
65
|
* } & Partial<ToModelConfig<State, Events, typeof eventMap>>
|
|
66
66
|
*
|
|
67
|
-
* @deprecated `createModelHook`
|
|
67
|
+
* @deprecated ⚠️ `ToModelConfig` has been deprecated and will be removed in a future major version. Please use `createModelHook` instead since it infers the config type.
|
|
68
68
|
*/
|
|
69
69
|
export type ToModelConfig<
|
|
70
70
|
TState extends Record<string, any>,
|
|
@@ -97,7 +97,7 @@ export type ToModelConfig<
|
|
|
97
97
|
* }
|
|
98
98
|
* })
|
|
99
99
|
*
|
|
100
|
-
* @deprecated `createModelHook` uses Template Literal Types to create event map types
|
|
100
|
+
* @deprecated ⚠️ `createEventMap` has been deprecated and will be removed in a future major version. Please use `createModelHook` instead. It uses Template Literal Types to create event map types.
|
|
101
101
|
*/
|
|
102
102
|
export const createEventMap = <TEvents extends IEvent>() => <
|
|
103
103
|
TGuardMap extends Record<string, keyof TEvents>,
|
|
@@ -131,7 +131,7 @@ const keys = <T extends object>(input: T) => Object.keys(input) as (keyof T)[];
|
|
|
131
131
|
* }
|
|
132
132
|
* }
|
|
133
133
|
* })
|
|
134
|
-
* @deprecated
|
|
134
|
+
* @deprecated ⚠️ `useEventMap` has been deprecated and will be removed in a future major version. Please use `createModelHook` instead.
|
|
135
135
|
*/
|
|
136
136
|
export const useEventMap = <
|
|
137
137
|
TEvents extends IEvent,
|
|
@@ -32,8 +32,7 @@ export const useUniqueId = (id?: string) => {
|
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* Backwards-compatible change to converting to hook
|
|
35
|
-
* @deprecated
|
|
36
|
-
* TODO: Remove in major release
|
|
35
|
+
* @deprecated ⚠️ `uniqueId` has been deprecated and will be removed in a future major version. Please use `useUniqueId` instead.
|
|
37
36
|
*/
|
|
38
37
|
export const uniqueId = useUniqueId;
|
|
39
38
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Property } from 'csstype';
|
|
2
3
|
import { SystemIconCircleSize } from '@workday/canvas-kit-react/icon';
|
|
3
4
|
export declare enum AvatarVariant {
|
|
4
5
|
Light = 0,
|
|
@@ -29,6 +30,13 @@ export interface AvatarProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
29
30
|
* Will render an `div` tag instead of a `button` when defined.
|
|
30
31
|
*/
|
|
31
32
|
as?: 'div';
|
|
33
|
+
/**
|
|
34
|
+
* The object-fit CSS property sets how the content of a replaced element,
|
|
35
|
+
* such as an `<img>` or `<video>`, should be resized to fit its container.
|
|
36
|
+
* See [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).
|
|
37
|
+
* If your image is not a square, you can use this property to ensure the image is rendered properly.
|
|
38
|
+
*/
|
|
39
|
+
objectFit?: Property.ObjectFit;
|
|
32
40
|
}
|
|
33
41
|
/**
|
|
34
42
|
* Used to get the props of the div version of an avatar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../avatar/lib/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,K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KAAC,GAAG,KAAK,CAAC,YAAY,CAAC;IAC5F,OAAO,EAAE,OAAO,aAAa,CAAC;IAC9B,IAAI,EAAE,OAAO,oBAAoB,CAAC;CACnC,CAAC;AAqEF,eAAO,MAAM,MAAM,EAAE,cA0Db,CAAC"}
|
|
@@ -79,10 +79,11 @@ const StyledImage = common_1.styled('img')({
|
|
|
79
79
|
height: '100%',
|
|
80
80
|
borderRadius: tokens_1.borderRadius.circle,
|
|
81
81
|
transition: fadeTransition,
|
|
82
|
-
}, ({ isLoaded }) => ({
|
|
82
|
+
}, ({ isLoaded, objectFit }) => ({
|
|
83
83
|
opacity: isLoaded ? 1 : 0,
|
|
84
|
+
objectFit,
|
|
84
85
|
}));
|
|
85
|
-
exports.Avatar = react_1.default.forwardRef(({ variant = AvatarVariant.Light, size = icon_1.SystemIconCircleSize.m, altText = 'Avatar', url, onClick, ...elemProps }, ref) => {
|
|
86
|
+
exports.Avatar = react_1.default.forwardRef(({ variant = AvatarVariant.Light, size = icon_1.SystemIconCircleSize.m, altText = 'Avatar', url, onClick, objectFit, ...elemProps }, ref) => {
|
|
86
87
|
const [imageLoaded, setImageLoaded] = react_1.useState(false);
|
|
87
88
|
const loadImage = () => {
|
|
88
89
|
if (!imageLoaded) {
|
|
@@ -97,7 +98,7 @@ exports.Avatar = react_1.default.forwardRef(({ variant = AvatarVariant.Light, si
|
|
|
97
98
|
react_1.default.createElement(StyledStack, { size: size },
|
|
98
99
|
react_1.default.createElement(StyledIcon, { icon: canvas_system_icons_web_1.userIcon, background: background, size: size, isImageLoaded: imageLoaded })),
|
|
99
100
|
url && (react_1.default.createElement(StyledStack, { size: size },
|
|
100
|
-
react_1.default.createElement(StyledImage, { src: url, alt: altText, onLoad: loadImage, isLoaded: imageLoaded })))));
|
|
101
|
+
react_1.default.createElement(StyledImage, { src: url, alt: altText, onLoad: loadImage, isLoaded: imageLoaded, objectFit: objectFit })))));
|
|
101
102
|
}); // AvatarProps and forwardRef signatures are incompatible, so we must force cast
|
|
102
103
|
exports.Avatar.Variant = AvatarVariant;
|
|
103
104
|
exports.Avatar.Size = icon_1.SystemIconCircleSize;
|
|
@@ -206,7 +206,7 @@ declare type CompoundProps<Props, TElemPropsHook, E> = Props & (TElemPropsHook e
|
|
|
206
206
|
export declare const createSubcomponent: <E extends keyof JSX.IntrinsicElements | React.ComponentType<{}> | ElementComponentM<any, any, any> | undefined = undefined>(as?: E | undefined) => <TElemPropsHook, TModelHook extends ((config: any) => Model<any, any>) & {
|
|
207
207
|
Context?: React.Context<any> | undefined;
|
|
208
208
|
}, SubComponents = {}>({ displayName, modelHook, elemPropsHook, subComponents, }: {
|
|
209
|
-
/** @deprecated You no longer need to use displayName
|
|
209
|
+
/** @deprecated ⚠️ `displayName` has been deprecated and will be removed in a future major version. You no longer need to use `displayName`. A `displayName` will be automatically added if it belongs to a container. */
|
|
210
210
|
displayName?: string | undefined;
|
|
211
211
|
modelHook: TModelHook;
|
|
212
212
|
elemPropsHook?: TElemPropsHook | undefined;
|
|
@@ -312,7 +312,7 @@ export declare const createElemPropsHook: <TModelHook extends (config: any) => M
|
|
|
312
312
|
*/
|
|
313
313
|
export declare const createHook: <M extends Model<any, any>, PO extends {}, PI extends {}>(fn: (model: M, ref?: React.Ref<unknown> | undefined, elemProps?: PI | undefined) => PO) => BehaviorHook<M, PO>;
|
|
314
314
|
/**
|
|
315
|
-
* @deprecated use `createSubModelElemPropsHook` instead
|
|
315
|
+
* @deprecated ⚠️ `subModelHook` has been deprecated and will be removed in a future major version. Please use `createSubModelElemPropsHook` instead.
|
|
316
316
|
*/
|
|
317
317
|
export declare const subModelHook: <M extends Model<any, any>, SM extends Model<any, any>, O extends {}>(fn: (model: M) => SM, hook: BehaviorHook<SM, O>) => BehaviorHook<M, O>;
|
|
318
318
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAA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,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GAC5C,YAAY,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GACzC,YAAY,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GACpC,YAAY,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GAC/B,YAAY,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,GAC1B,KAAK,GACP,KAAK,CAAC"}
|
|
@@ -208,7 +208,7 @@ const createHook = (fn) => {
|
|
|
208
208
|
};
|
|
209
209
|
exports.createHook = createHook;
|
|
210
210
|
/**
|
|
211
|
-
* @deprecated use `createSubModelElemPropsHook` instead
|
|
211
|
+
* @deprecated ⚠️ `subModelHook` has been deprecated and will be removed in a future major version. Please use `createSubModelElemPropsHook` instead.
|
|
212
212
|
*/
|
|
213
213
|
const subModelHook = (fn, hook) => {
|
|
214
214
|
return ((model, props, ref) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
/**
|
|
3
|
-
* @deprecated The returned model is now inferred from `createModelHook
|
|
3
|
+
* @deprecated ⚠️ `Model` has been deprecated and will be removed in a future major version. The returned model is now inferred from `createModelHook`.
|
|
4
4
|
*/
|
|
5
5
|
export declare type Model<State, Events extends IEvent> = {
|
|
6
6
|
state: State;
|
|
@@ -48,7 +48,7 @@ declare type ToCallbackConfig<TState extends Record<string, any>, TEvents extend
|
|
|
48
48
|
* id?: string
|
|
49
49
|
* } & Partial<ToModelConfig<State, Events, typeof eventMap>>
|
|
50
50
|
*
|
|
51
|
-
* @deprecated `createModelHook`
|
|
51
|
+
* @deprecated ⚠️ `ToModelConfig` has been deprecated and will be removed in a future major version. Please use `createModelHook` instead since it infers the config type.
|
|
52
52
|
*/
|
|
53
53
|
export declare type ToModelConfig<TState extends Record<string, any>, TEvents extends IEvent, TEventMap extends EventMap<TEvents, any, any>> = ToGuardConfig<TState, TEvents, TEventMap['guards']> & ToCallbackConfig<TState, TEvents, TEventMap['callbacks']>;
|
|
54
54
|
/**
|
|
@@ -75,7 +75,7 @@ export declare type ToModelConfig<TState extends Record<string, any>, TEvents ex
|
|
|
75
75
|
* }
|
|
76
76
|
* })
|
|
77
77
|
*
|
|
78
|
-
* @deprecated `createModelHook` uses Template Literal Types to create event map types
|
|
78
|
+
* @deprecated ⚠️ `createEventMap` has been deprecated and will be removed in a future major version. Please use `createModelHook` instead. It uses Template Literal Types to create event map types.
|
|
79
79
|
*/
|
|
80
80
|
export declare const createEventMap: <TEvents extends IEvent>() => <TGuardMap extends Record<string, keyof TEvents>, TCallbackMap extends Record<string, keyof TEvents>>(config: Partial<EventMap<TEvents, TGuardMap, TCallbackMap>>) => EventMap<TEvents, TGuardMap, TCallbackMap>;
|
|
81
81
|
/**
|
|
@@ -97,7 +97,7 @@ export declare const createEventMap: <TEvents extends IEvent>() => <TGuardMap ex
|
|
|
97
97
|
* }
|
|
98
98
|
* }
|
|
99
99
|
* })
|
|
100
|
-
* @deprecated
|
|
100
|
+
* @deprecated ⚠️ `useEventMap` has been deprecated and will be removed in a future major version. Please use `createModelHook` instead.
|
|
101
101
|
*/
|
|
102
102
|
export declare const useEventMap: <TEvents extends IEvent, TState extends Record<string, any>, TGuardMap extends Record<string, keyof TEvents>, TCallbackMap extends Record<string, keyof TEvents>, TConfig extends Partial<ToModelConfig<TState, TEvents, EventMap<TEvents, TGuardMap, TCallbackMap>>>>(eventMap: EventMap<TEvents, TGuardMap, TCallbackMap>, state: TState, config: TConfig, events: TEvents) => TEvents;
|
|
103
103
|
declare type EventCreator = {
|
|
@@ -30,7 +30,7 @@ const react_1 = __importDefault(require("react"));
|
|
|
30
30
|
* }
|
|
31
31
|
* })
|
|
32
32
|
*
|
|
33
|
-
* @deprecated `createModelHook` uses Template Literal Types to create event map types
|
|
33
|
+
* @deprecated ⚠️ `createEventMap` has been deprecated and will be removed in a future major version. Please use `createModelHook` instead. It uses Template Literal Types to create event map types.
|
|
34
34
|
*/
|
|
35
35
|
const createEventMap = () => (config) => {
|
|
36
36
|
// Instruct Typescript that all valid guards and callbacks exist
|
|
@@ -58,7 +58,7 @@ const keys = (input) => Object.keys(input);
|
|
|
58
58
|
* }
|
|
59
59
|
* }
|
|
60
60
|
* })
|
|
61
|
-
* @deprecated
|
|
61
|
+
* @deprecated ⚠️ `useEventMap` has been deprecated and will be removed in a future major version. Please use `createModelHook` instead.
|
|
62
62
|
*/
|
|
63
63
|
const useEventMap = (eventMap, state, config, events) => {
|
|
64
64
|
// use refs so we can memoize the returned `events` object
|
|
@@ -15,8 +15,7 @@ export declare const generateUniqueId: () => string;
|
|
|
15
15
|
export declare const useUniqueId: (id?: string | undefined) => string;
|
|
16
16
|
/**
|
|
17
17
|
* Backwards-compatible change to converting to hook
|
|
18
|
-
* @deprecated
|
|
19
|
-
* TODO: Remove in major release
|
|
18
|
+
* @deprecated ⚠️ `uniqueId` has been deprecated and will be removed in a future major version. Please use `useUniqueId` instead.
|
|
20
19
|
*/
|
|
21
20
|
export declare const uniqueId: (id?: string | undefined) => string;
|
|
22
21
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUniqueId.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/useUniqueId.ts"],"names":[],"mappings":"AAWA;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,cAAkC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,WAAW,qCAIvB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"useUniqueId.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/useUniqueId.ts"],"names":[],"mappings":"AAWA;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,cAAkC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,WAAW,qCAIvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,qCAAc,CAAC;AAEpC;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,MAAO,MAAM,SAEtC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,YAE9B,CAAC"}
|
|
@@ -32,8 +32,7 @@ const useUniqueId = (id) => {
|
|
|
32
32
|
exports.useUniqueId = useUniqueId;
|
|
33
33
|
/**
|
|
34
34
|
* Backwards-compatible change to converting to hook
|
|
35
|
-
* @deprecated
|
|
36
|
-
* TODO: Remove in major release
|
|
35
|
+
* @deprecated ⚠️ `uniqueId` has been deprecated and will be removed in a future major version. Please use `useUniqueId` instead.
|
|
37
36
|
*/
|
|
38
37
|
exports.uniqueId = exports.useUniqueId;
|
|
39
38
|
/**
|
|
@@ -3,9 +3,7 @@ import { CanvasSystemIcon } from '@workday/design-assets-types';
|
|
|
3
3
|
import { GenericStyle } from '@workday/canvas-kit-react/common';
|
|
4
4
|
import { CSSProperties } from '@workday/canvas-kit-react/tokens';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
8
|
-
* @deprecated
|
|
6
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
9
7
|
*/
|
|
10
8
|
export declare enum StatusIndicatorType {
|
|
11
9
|
Gray = "gray",
|
|
@@ -16,18 +14,14 @@ export declare enum StatusIndicatorType {
|
|
|
16
14
|
Transparent = "transparent"
|
|
17
15
|
}
|
|
18
16
|
/**
|
|
19
|
-
*
|
|
20
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
21
|
-
* @deprecated
|
|
17
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
22
18
|
*/
|
|
23
19
|
export declare enum StatusIndicatorEmphasis {
|
|
24
20
|
High = "high",
|
|
25
21
|
Low = "low"
|
|
26
22
|
}
|
|
27
23
|
/**
|
|
28
|
-
*
|
|
29
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
30
|
-
* @deprecated
|
|
24
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
31
25
|
*/
|
|
32
26
|
export interface StatusIndicatorGenericStyle extends GenericStyle {
|
|
33
27
|
styles: CSSProperties;
|
|
@@ -38,15 +32,11 @@ export interface StatusIndicatorGenericStyle extends GenericStyle {
|
|
|
38
32
|
};
|
|
39
33
|
}
|
|
40
34
|
/**
|
|
41
|
-
*
|
|
42
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
43
|
-
* @deprecated
|
|
35
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
44
36
|
*/
|
|
45
37
|
export declare const statusIndicatorStyles: StatusIndicatorGenericStyle;
|
|
46
38
|
/**
|
|
47
|
-
*
|
|
48
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
49
|
-
* @deprecated
|
|
39
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
50
40
|
*/
|
|
51
41
|
export interface StatusIndicatorProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
52
42
|
/**
|
|
@@ -73,9 +63,7 @@ export interface StatusIndicatorProps extends React.HTMLAttributes<HTMLSpanEleme
|
|
|
73
63
|
icon?: CanvasSystemIcon;
|
|
74
64
|
}
|
|
75
65
|
/**
|
|
76
|
-
*
|
|
77
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
78
|
-
* @deprecated
|
|
66
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
79
67
|
*/
|
|
80
68
|
export declare class StatusIndicator extends React.Component<StatusIndicatorProps> {
|
|
81
69
|
static Type: typeof StatusIndicatorType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusIndicator.d.ts","sourceRoot":"","sources":["../../../../status-indicator/lib/StatusIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAC,YAAY,EAAe,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAoC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAGlG
|
|
1
|
+
{"version":3,"file":"StatusIndicator.d.ts","sourceRoot":"","sources":["../../../../status-indicator/lib/StatusIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAC,YAAY,EAAe,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAoC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAGlG;;GAEG;AACH,oBAAY,mBAAmB;IAC7B,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,WAAW,gBAAgB;CAC5B;AAED;;GAEG;AACH,oBAAY,uBAAuB;IACjC,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE;SACP,UAAU,IAAI,mBAAmB,GAAG;aAClC,cAAc,IAAI,uBAAuB,CAAC,CAAC,EAAE,aAAa;SAC5D;KACF,CAAC;CACH;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,2BA2EnC,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IACjF;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,uBAAuB,CAAC;IACnC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB;AAkBD;;GAEG;AACH,qBAAa,eAAgB,SAAQ,KAAK,CAAC,SAAS,CAAC,oBAAoB,CAAC;IACxE,OAAc,IAAI,6BAAuB;IACzC,OAAc,QAAQ,iCAA2B;IAE1C,MAAM;CA0Bd"}
|
|
@@ -28,9 +28,7 @@ const icon_1 = require("@workday/canvas-kit-react/icon");
|
|
|
28
28
|
const tokens_1 = require("@workday/canvas-kit-react/tokens");
|
|
29
29
|
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
33
|
-
* @deprecated
|
|
31
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
34
32
|
*/
|
|
35
33
|
var StatusIndicatorType;
|
|
36
34
|
(function (StatusIndicatorType) {
|
|
@@ -42,9 +40,7 @@ var StatusIndicatorType;
|
|
|
42
40
|
StatusIndicatorType["Transparent"] = "transparent";
|
|
43
41
|
})(StatusIndicatorType = exports.StatusIndicatorType || (exports.StatusIndicatorType = {}));
|
|
44
42
|
/**
|
|
45
|
-
*
|
|
46
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
47
|
-
* @deprecated
|
|
43
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
48
44
|
*/
|
|
49
45
|
var StatusIndicatorEmphasis;
|
|
50
46
|
(function (StatusIndicatorEmphasis) {
|
|
@@ -52,9 +48,7 @@ var StatusIndicatorEmphasis;
|
|
|
52
48
|
StatusIndicatorEmphasis["Low"] = "low";
|
|
53
49
|
})(StatusIndicatorEmphasis = exports.StatusIndicatorEmphasis || (exports.StatusIndicatorEmphasis = {}));
|
|
54
50
|
/**
|
|
55
|
-
*
|
|
56
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
57
|
-
* @deprecated
|
|
51
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
58
52
|
*/
|
|
59
53
|
exports.statusIndicatorStyles = {
|
|
60
54
|
classname: 'status-indicator',
|
|
@@ -145,9 +139,7 @@ const StatusLabel = styled_1.default('span')({
|
|
|
145
139
|
textOverflow: 'ellipsis',
|
|
146
140
|
});
|
|
147
141
|
/**
|
|
148
|
-
*
|
|
149
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
150
|
-
* @deprecated
|
|
142
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
151
143
|
*/
|
|
152
144
|
class StatusIndicator extends React.Component {
|
|
153
145
|
render() {
|
|
@@ -4100,7 +4100,7 @@ export declare const Tabs: import("@workday/canvas-kit-react/common").ComponentM
|
|
|
4100
4100
|
getId: (item: any) => string;
|
|
4101
4101
|
}>;
|
|
4102
4102
|
/**
|
|
4103
|
-
* @deprecated
|
|
4103
|
+
* @deprecated ⚠️ `MenuPopper` has been deprecated and will be removed in a future major version. Please use `Tabs.Menu.Popper` instead.
|
|
4104
4104
|
*/
|
|
4105
4105
|
MenuPopper: import("@workday/canvas-kit-react/common").ElementComponentM<"div", import("./TabsMenuPopper").MenuPopperProps, {
|
|
4106
4106
|
state: {
|
|
@@ -107,7 +107,7 @@ exports.Tabs = common_1.createContainer()({
|
|
|
107
107
|
*/
|
|
108
108
|
OverflowButton: TabsOverflowButton_1.TabsOverflowButton,
|
|
109
109
|
/**
|
|
110
|
-
* @deprecated
|
|
110
|
+
* @deprecated ⚠️ `MenuPopper` has been deprecated and will be removed in a future major version. Please use `Tabs.Menu.Popper` instead.
|
|
111
111
|
*/
|
|
112
112
|
MenuPopper: TabsMenuPopper_1.TabsMenuPopper,
|
|
113
113
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Property } from 'csstype';
|
|
2
3
|
import { SystemIconCircleSize } from '@workday/canvas-kit-react/icon';
|
|
3
4
|
export declare enum AvatarVariant {
|
|
4
5
|
Light = 0,
|
|
@@ -29,6 +30,13 @@ export interface AvatarProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
29
30
|
* Will render an `div` tag instead of a `button` when defined.
|
|
30
31
|
*/
|
|
31
32
|
as?: 'div';
|
|
33
|
+
/**
|
|
34
|
+
* The object-fit CSS property sets how the content of a replaced element,
|
|
35
|
+
* such as an `<img>` or `<video>`, should be resized to fit its container.
|
|
36
|
+
* See [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).
|
|
37
|
+
* If your image is not a square, you can use this property to ensure the image is rendered properly.
|
|
38
|
+
*/
|
|
39
|
+
objectFit?: Property.ObjectFit;
|
|
32
40
|
}
|
|
33
41
|
/**
|
|
34
42
|
* Used to get the props of the div version of an avatar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../avatar/lib/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../avatar/lib/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AACtC,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAIjC,OAAO,EAAmB,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAGtF,oBAAY,aAAa;IACvB,KAAK,IAAA;IACL,IAAI,IAAA;CACL;AAED,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAChF;;;OAGG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,oBAAoB,GAAG,MAAM,CAAC;IACrC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC;IACX;;;;;OAKG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;CAChC;AAED;;GAEG;AACH,aAAK,cAAc,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,GAC1F,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;AAEvC;;GAEG;AACH,aAAK,cAAc,GAAG;IACpB,CAAC,KAAK,EAAE;QAAC,EAAE,EAAE,KAAK,CAAA;KAAC,GAAG,cAAc,GAAG;QAAC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;KAAC,GAAG,KAAK,CAAC,YAAY,CAAC;IAC3F,CAAC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,GAAG;QAAC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAA;KAAC,GAAG,KAAK,CAAC,YAAY,CAAC;IAC5F,OAAO,EAAE,OAAO,aAAa,CAAC;IAC9B,IAAI,EAAE,OAAO,oBAAoB,CAAC;CACnC,CAAC;AAqEF,eAAO,MAAM,MAAM,EAAE,cA0Db,CAAC"}
|
|
@@ -54,10 +54,11 @@ const StyledImage = styled('img')({
|
|
|
54
54
|
height: '100%',
|
|
55
55
|
borderRadius: borderRadius.circle,
|
|
56
56
|
transition: fadeTransition,
|
|
57
|
-
}, ({ isLoaded }) => ({
|
|
57
|
+
}, ({ isLoaded, objectFit }) => ({
|
|
58
58
|
opacity: isLoaded ? 1 : 0,
|
|
59
|
+
objectFit,
|
|
59
60
|
}));
|
|
60
|
-
export const Avatar = React.forwardRef(({ variant = AvatarVariant.Light, size = SystemIconCircleSize.m, altText = 'Avatar', url, onClick, ...elemProps }, ref) => {
|
|
61
|
+
export const Avatar = React.forwardRef(({ variant = AvatarVariant.Light, size = SystemIconCircleSize.m, altText = 'Avatar', url, onClick, objectFit, ...elemProps }, ref) => {
|
|
61
62
|
const [imageLoaded, setImageLoaded] = useState(false);
|
|
62
63
|
const loadImage = () => {
|
|
63
64
|
if (!imageLoaded) {
|
|
@@ -72,7 +73,7 @@ export const Avatar = React.forwardRef(({ variant = AvatarVariant.Light, size =
|
|
|
72
73
|
React.createElement(StyledStack, { size: size },
|
|
73
74
|
React.createElement(StyledIcon, { icon: userIcon, background: background, size: size, isImageLoaded: imageLoaded })),
|
|
74
75
|
url && (React.createElement(StyledStack, { size: size },
|
|
75
|
-
React.createElement(StyledImage, { src: url, alt: altText, onLoad: loadImage, isLoaded: imageLoaded })))));
|
|
76
|
+
React.createElement(StyledImage, { src: url, alt: altText, onLoad: loadImage, isLoaded: imageLoaded, objectFit: objectFit })))));
|
|
76
77
|
}); // AvatarProps and forwardRef signatures are incompatible, so we must force cast
|
|
77
78
|
Avatar.Variant = AvatarVariant;
|
|
78
79
|
Avatar.Size = SystemIconCircleSize;
|
|
@@ -206,7 +206,7 @@ declare type CompoundProps<Props, TElemPropsHook, E> = Props & (TElemPropsHook e
|
|
|
206
206
|
export declare const createSubcomponent: <E extends keyof JSX.IntrinsicElements | React.ComponentType<{}> | ElementComponentM<any, any, any> | undefined = undefined>(as?: E | undefined) => <TElemPropsHook, TModelHook extends ((config: any) => Model<any, any>) & {
|
|
207
207
|
Context?: React.Context<any> | undefined;
|
|
208
208
|
}, SubComponents = {}>({ displayName, modelHook, elemPropsHook, subComponents, }: {
|
|
209
|
-
/** @deprecated You no longer need to use displayName
|
|
209
|
+
/** @deprecated ⚠️ `displayName` has been deprecated and will be removed in a future major version. You no longer need to use `displayName`. A `displayName` will be automatically added if it belongs to a container. */
|
|
210
210
|
displayName?: string | undefined;
|
|
211
211
|
modelHook: TModelHook;
|
|
212
212
|
elemPropsHook?: TElemPropsHook | undefined;
|
|
@@ -312,7 +312,7 @@ export declare const createElemPropsHook: <TModelHook extends (config: any) => M
|
|
|
312
312
|
*/
|
|
313
313
|
export declare const createHook: <M extends Model<any, any>, PO extends {}, PI extends {}>(fn: (model: M, ref?: React.Ref<unknown> | undefined, elemProps?: PI | undefined) => PO) => BehaviorHook<M, PO>;
|
|
314
314
|
/**
|
|
315
|
-
* @deprecated use `createSubModelElemPropsHook` instead
|
|
315
|
+
* @deprecated ⚠️ `subModelHook` has been deprecated and will be removed in a future major version. Please use `createSubModelElemPropsHook` instead.
|
|
316
316
|
*/
|
|
317
317
|
export declare const subModelHook: <M extends Model<any, any>, SM extends Model<any, any>, O extends {}>(fn: (model: M) => SM, hook: BehaviorHook<SM, O>) => BehaviorHook<M, O>;
|
|
318
318
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAC,KAAK,EAAC,MAAM,UAAU,CAAC;AAE/B;;GAEG;AACH,oBAAY,UAAU,GAAG;IACvB,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CACxB,CAAC;AAGF,aAAK,WAAW,CAAC,CAAC,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAEhD;;;;;;;GAOG;AACH,aAAK,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GACpC,KAAK,GACL,CAAC,SAAS,WAAW,CAAC,MAAM,CAAC,CAAC,GAC9B,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,GAClB,KAAK,CAAC,GAAG,CACP,CAAC,SAAS,MAAM,iBAAiB,GAC7B,iBAAiB,CAAC,CAAC,CAAC,GACpB,CAAC,SAAS,gBAAgB,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,GACxC,CAAC,SAAS,MAAM,iBAAiB,GAC/B,iBAAiB,CAAC,CAAC,CAAC,GACpB,CAAC,GACH,CAAC,SAAS,KAAK,CAAC,EAAE,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAA;CAAC,CAAC,GACnC,CAAC,SAAS,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,GAChC,CAAC,GACD,KAAK,GACP,CAAC,CACN,CAAC;AAEN;;;;GAIG;AACH,oBAAY,cAAc,CAAC,CAAC,EAAE,WA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AE,MAAM,EAAE,CAAC,GAChC,EAAE,SAAS,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC,GAChC,EAAE,SAAS,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC,GAChC,EAAE,SAAS,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC,GAChC,EAAE,SAAS,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC,GAChC,YAAY,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GAC5C,YAAY,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GACzC,YAAY,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GACpC,YAAY,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GAC/B,YAAY,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,GAC1B,KAAK,GACP,KAAK,CAAC"}
|
|
@@ -197,7 +197,7 @@ export const createHook = (fn) => {
|
|
|
197
197
|
});
|
|
198
198
|
};
|
|
199
199
|
/**
|
|
200
|
-
* @deprecated use `createSubModelElemPropsHook` instead
|
|
200
|
+
* @deprecated ⚠️ `subModelHook` has been deprecated and will be removed in a future major version. Please use `createSubModelElemPropsHook` instead.
|
|
201
201
|
*/
|
|
202
202
|
export const subModelHook = (fn, hook) => {
|
|
203
203
|
return ((model, props, ref) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
/**
|
|
3
|
-
* @deprecated The returned model is now inferred from `createModelHook
|
|
3
|
+
* @deprecated ⚠️ `Model` has been deprecated and will be removed in a future major version. The returned model is now inferred from `createModelHook`.
|
|
4
4
|
*/
|
|
5
5
|
export declare type Model<State, Events extends IEvent> = {
|
|
6
6
|
state: State;
|
|
@@ -48,7 +48,7 @@ declare type ToCallbackConfig<TState extends Record<string, any>, TEvents extend
|
|
|
48
48
|
* id?: string
|
|
49
49
|
* } & Partial<ToModelConfig<State, Events, typeof eventMap>>
|
|
50
50
|
*
|
|
51
|
-
* @deprecated `createModelHook`
|
|
51
|
+
* @deprecated ⚠️ `ToModelConfig` has been deprecated and will be removed in a future major version. Please use `createModelHook` instead since it infers the config type.
|
|
52
52
|
*/
|
|
53
53
|
export declare type ToModelConfig<TState extends Record<string, any>, TEvents extends IEvent, TEventMap extends EventMap<TEvents, any, any>> = ToGuardConfig<TState, TEvents, TEventMap['guards']> & ToCallbackConfig<TState, TEvents, TEventMap['callbacks']>;
|
|
54
54
|
/**
|
|
@@ -75,7 +75,7 @@ export declare type ToModelConfig<TState extends Record<string, any>, TEvents ex
|
|
|
75
75
|
* }
|
|
76
76
|
* })
|
|
77
77
|
*
|
|
78
|
-
* @deprecated `createModelHook` uses Template Literal Types to create event map types
|
|
78
|
+
* @deprecated ⚠️ `createEventMap` has been deprecated and will be removed in a future major version. Please use `createModelHook` instead. It uses Template Literal Types to create event map types.
|
|
79
79
|
*/
|
|
80
80
|
export declare const createEventMap: <TEvents extends IEvent>() => <TGuardMap extends Record<string, keyof TEvents>, TCallbackMap extends Record<string, keyof TEvents>>(config: Partial<EventMap<TEvents, TGuardMap, TCallbackMap>>) => EventMap<TEvents, TGuardMap, TCallbackMap>;
|
|
81
81
|
/**
|
|
@@ -97,7 +97,7 @@ export declare const createEventMap: <TEvents extends IEvent>() => <TGuardMap ex
|
|
|
97
97
|
* }
|
|
98
98
|
* }
|
|
99
99
|
* })
|
|
100
|
-
* @deprecated
|
|
100
|
+
* @deprecated ⚠️ `useEventMap` has been deprecated and will be removed in a future major version. Please use `createModelHook` instead.
|
|
101
101
|
*/
|
|
102
102
|
export declare const useEventMap: <TEvents extends IEvent, TState extends Record<string, any>, TGuardMap extends Record<string, keyof TEvents>, TCallbackMap extends Record<string, keyof TEvents>, TConfig extends Partial<ToModelConfig<TState, TEvents, EventMap<TEvents, TGuardMap, TCallbackMap>>>>(eventMap: EventMap<TEvents, TGuardMap, TCallbackMap>, state: TState, config: TConfig, events: TEvents) => TEvents;
|
|
103
103
|
declare type EventCreator = {
|
|
@@ -24,7 +24,7 @@ import React from 'react';
|
|
|
24
24
|
* }
|
|
25
25
|
* })
|
|
26
26
|
*
|
|
27
|
-
* @deprecated `createModelHook` uses Template Literal Types to create event map types
|
|
27
|
+
* @deprecated ⚠️ `createEventMap` has been deprecated and will be removed in a future major version. Please use `createModelHook` instead. It uses Template Literal Types to create event map types.
|
|
28
28
|
*/
|
|
29
29
|
export const createEventMap = () => (config) => {
|
|
30
30
|
// Instruct Typescript that all valid guards and callbacks exist
|
|
@@ -51,7 +51,7 @@ const keys = (input) => Object.keys(input);
|
|
|
51
51
|
* }
|
|
52
52
|
* }
|
|
53
53
|
* })
|
|
54
|
-
* @deprecated
|
|
54
|
+
* @deprecated ⚠️ `useEventMap` has been deprecated and will be removed in a future major version. Please use `createModelHook` instead.
|
|
55
55
|
*/
|
|
56
56
|
export const useEventMap = (eventMap, state, config, events) => {
|
|
57
57
|
// use refs so we can memoize the returned `events` object
|
|
@@ -15,8 +15,7 @@ export declare const generateUniqueId: () => string;
|
|
|
15
15
|
export declare const useUniqueId: (id?: string | undefined) => string;
|
|
16
16
|
/**
|
|
17
17
|
* Backwards-compatible change to converting to hook
|
|
18
|
-
* @deprecated
|
|
19
|
-
* TODO: Remove in major release
|
|
18
|
+
* @deprecated ⚠️ `uniqueId` has been deprecated and will be removed in a future major version. Please use `useUniqueId` instead.
|
|
20
19
|
*/
|
|
21
20
|
export declare const uniqueId: (id?: string | undefined) => string;
|
|
22
21
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUniqueId.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/useUniqueId.ts"],"names":[],"mappings":"AAWA;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,cAAkC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,WAAW,qCAIvB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"useUniqueId.d.ts","sourceRoot":"","sources":["../../../../../common/lib/utils/useUniqueId.ts"],"names":[],"mappings":"AAWA;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,cAAkC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,WAAW,qCAIvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,qCAAc,CAAC;AAEpC;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,MAAO,MAAM,SAEtC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,YAE9B,CAAC"}
|
|
@@ -27,8 +27,7 @@ export const useUniqueId = (id) => {
|
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
29
|
* Backwards-compatible change to converting to hook
|
|
30
|
-
* @deprecated
|
|
31
|
-
* TODO: Remove in major release
|
|
30
|
+
* @deprecated ⚠️ `uniqueId` has been deprecated and will be removed in a future major version. Please use `useUniqueId` instead.
|
|
32
31
|
*/
|
|
33
32
|
export const uniqueId = useUniqueId;
|
|
34
33
|
/**
|
|
@@ -3,9 +3,7 @@ import { CanvasSystemIcon } from '@workday/design-assets-types';
|
|
|
3
3
|
import { GenericStyle } from '@workday/canvas-kit-react/common';
|
|
4
4
|
import { CSSProperties } from '@workday/canvas-kit-react/tokens';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
8
|
-
* @deprecated
|
|
6
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
9
7
|
*/
|
|
10
8
|
export declare enum StatusIndicatorType {
|
|
11
9
|
Gray = "gray",
|
|
@@ -16,18 +14,14 @@ export declare enum StatusIndicatorType {
|
|
|
16
14
|
Transparent = "transparent"
|
|
17
15
|
}
|
|
18
16
|
/**
|
|
19
|
-
*
|
|
20
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
21
|
-
* @deprecated
|
|
17
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
22
18
|
*/
|
|
23
19
|
export declare enum StatusIndicatorEmphasis {
|
|
24
20
|
High = "high",
|
|
25
21
|
Low = "low"
|
|
26
22
|
}
|
|
27
23
|
/**
|
|
28
|
-
*
|
|
29
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
30
|
-
* @deprecated
|
|
24
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
31
25
|
*/
|
|
32
26
|
export interface StatusIndicatorGenericStyle extends GenericStyle {
|
|
33
27
|
styles: CSSProperties;
|
|
@@ -38,15 +32,11 @@ export interface StatusIndicatorGenericStyle extends GenericStyle {
|
|
|
38
32
|
};
|
|
39
33
|
}
|
|
40
34
|
/**
|
|
41
|
-
*
|
|
42
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
43
|
-
* @deprecated
|
|
35
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
44
36
|
*/
|
|
45
37
|
export declare const statusIndicatorStyles: StatusIndicatorGenericStyle;
|
|
46
38
|
/**
|
|
47
|
-
*
|
|
48
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
49
|
-
* @deprecated
|
|
39
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
50
40
|
*/
|
|
51
41
|
export interface StatusIndicatorProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
52
42
|
/**
|
|
@@ -73,9 +63,7 @@ export interface StatusIndicatorProps extends React.HTMLAttributes<HTMLSpanEleme
|
|
|
73
63
|
icon?: CanvasSystemIcon;
|
|
74
64
|
}
|
|
75
65
|
/**
|
|
76
|
-
*
|
|
77
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
78
|
-
* @deprecated
|
|
66
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
79
67
|
*/
|
|
80
68
|
export declare class StatusIndicator extends React.Component<StatusIndicatorProps> {
|
|
81
69
|
static Type: typeof StatusIndicatorType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusIndicator.d.ts","sourceRoot":"","sources":["../../../../status-indicator/lib/StatusIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAC,YAAY,EAAe,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAoC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAGlG
|
|
1
|
+
{"version":3,"file":"StatusIndicator.d.ts","sourceRoot":"","sources":["../../../../status-indicator/lib/StatusIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAC,YAAY,EAAe,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAoC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAGlG;;GAEG;AACH,oBAAY,mBAAmB;IAC7B,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,WAAW,gBAAgB;CAC5B;AAED;;GAEG;AACH,oBAAY,uBAAuB;IACjC,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE;SACP,UAAU,IAAI,mBAAmB,GAAG;aAClC,cAAc,IAAI,uBAAuB,CAAC,CAAC,EAAE,aAAa;SAC5D;KACF,CAAC;CACH;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,2BA2EnC,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IACjF;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,uBAAuB,CAAC;IACnC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB;AAkBD;;GAEG;AACH,qBAAa,eAAgB,SAAQ,KAAK,CAAC,SAAS,CAAC,oBAAoB,CAAC;IACxE,OAAc,IAAI,6BAAuB;IACzC,OAAc,QAAQ,iCAA2B;IAE1C,MAAM;CA0Bd"}
|
|
@@ -3,9 +3,7 @@ import { SystemIcon } from '@workday/canvas-kit-react/icon';
|
|
|
3
3
|
import { borderRadius, colors, type, space } from '@workday/canvas-kit-react/tokens';
|
|
4
4
|
import styled from '@emotion/styled';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
8
|
-
* @deprecated
|
|
6
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
9
7
|
*/
|
|
10
8
|
export var StatusIndicatorType;
|
|
11
9
|
(function (StatusIndicatorType) {
|
|
@@ -17,9 +15,7 @@ export var StatusIndicatorType;
|
|
|
17
15
|
StatusIndicatorType["Transparent"] = "transparent";
|
|
18
16
|
})(StatusIndicatorType || (StatusIndicatorType = {}));
|
|
19
17
|
/**
|
|
20
|
-
*
|
|
21
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
22
|
-
* @deprecated
|
|
18
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
23
19
|
*/
|
|
24
20
|
export var StatusIndicatorEmphasis;
|
|
25
21
|
(function (StatusIndicatorEmphasis) {
|
|
@@ -27,9 +23,7 @@ export var StatusIndicatorEmphasis;
|
|
|
27
23
|
StatusIndicatorEmphasis["Low"] = "low";
|
|
28
24
|
})(StatusIndicatorEmphasis || (StatusIndicatorEmphasis = {}));
|
|
29
25
|
/**
|
|
30
|
-
*
|
|
31
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
32
|
-
* @deprecated
|
|
26
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
33
27
|
*/
|
|
34
28
|
export const statusIndicatorStyles = {
|
|
35
29
|
classname: 'status-indicator',
|
|
@@ -120,9 +114,7 @@ const StatusLabel = styled('span')({
|
|
|
120
114
|
textOverflow: 'ellipsis',
|
|
121
115
|
});
|
|
122
116
|
/**
|
|
123
|
-
*
|
|
124
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
125
|
-
* @deprecated
|
|
117
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
126
118
|
*/
|
|
127
119
|
export class StatusIndicator extends React.Component {
|
|
128
120
|
render() {
|
|
@@ -4100,7 +4100,7 @@ export declare const Tabs: import("@workday/canvas-kit-react/common").ComponentM
|
|
|
4100
4100
|
getId: (item: any) => string;
|
|
4101
4101
|
}>;
|
|
4102
4102
|
/**
|
|
4103
|
-
* @deprecated
|
|
4103
|
+
* @deprecated ⚠️ `MenuPopper` has been deprecated and will be removed in a future major version. Please use `Tabs.Menu.Popper` instead.
|
|
4104
4104
|
*/
|
|
4105
4105
|
MenuPopper: import("@workday/canvas-kit-react/common").ElementComponentM<"div", import("./TabsMenuPopper").MenuPopperProps, {
|
|
4106
4106
|
state: {
|
|
@@ -101,7 +101,7 @@ export const Tabs = createContainer()({
|
|
|
101
101
|
*/
|
|
102
102
|
OverflowButton: TabsOverflowButton,
|
|
103
103
|
/**
|
|
104
|
-
* @deprecated
|
|
104
|
+
* @deprecated ⚠️ `MenuPopper` has been deprecated and will be removed in a future major version. Please use `Tabs.Menu.Popper` instead.
|
|
105
105
|
*/
|
|
106
106
|
MenuPopper: TabsMenuPopper,
|
|
107
107
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-react",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.22",
|
|
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,7 +49,7 @@
|
|
|
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": "^9.1.
|
|
52
|
+
"@workday/canvas-kit-popup-stack": "^9.1.22",
|
|
53
53
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
54
54
|
"@workday/design-assets-types": "^0.2.8",
|
|
55
55
|
"chroma-js": "^2.1.0",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"@workday/canvas-accent-icons-web": "^3.0.0",
|
|
67
67
|
"@workday/canvas-applet-icons-web": "^2.0.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "b00fd1c6dd6d3c2653d4ec7e518df12427557562"
|
|
70
70
|
}
|
|
@@ -6,9 +6,7 @@ import {borderRadius, colors, type, space, CSSProperties} from '@workday/canvas-
|
|
|
6
6
|
import styled from '@emotion/styled';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
11
|
-
* @deprecated
|
|
9
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
12
10
|
*/
|
|
13
11
|
export enum StatusIndicatorType {
|
|
14
12
|
Gray = 'gray',
|
|
@@ -20,9 +18,7 @@ export enum StatusIndicatorType {
|
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
/**
|
|
23
|
-
*
|
|
24
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
25
|
-
* @deprecated
|
|
21
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
26
22
|
*/
|
|
27
23
|
export enum StatusIndicatorEmphasis {
|
|
28
24
|
High = 'high',
|
|
@@ -30,9 +26,7 @@ export enum StatusIndicatorEmphasis {
|
|
|
30
26
|
}
|
|
31
27
|
|
|
32
28
|
/**
|
|
33
|
-
*
|
|
34
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
35
|
-
* @deprecated
|
|
29
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
36
30
|
*/
|
|
37
31
|
export interface StatusIndicatorGenericStyle extends GenericStyle {
|
|
38
32
|
styles: CSSProperties;
|
|
@@ -44,9 +38,7 @@ export interface StatusIndicatorGenericStyle extends GenericStyle {
|
|
|
44
38
|
}
|
|
45
39
|
|
|
46
40
|
/**
|
|
47
|
-
*
|
|
48
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
49
|
-
* @deprecated
|
|
41
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
50
42
|
*/
|
|
51
43
|
export const statusIndicatorStyles: StatusIndicatorGenericStyle = {
|
|
52
44
|
classname: 'status-indicator',
|
|
@@ -126,9 +118,7 @@ export const statusIndicatorStyles: StatusIndicatorGenericStyle = {
|
|
|
126
118
|
};
|
|
127
119
|
|
|
128
120
|
/**
|
|
129
|
-
*
|
|
130
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
131
|
-
* @deprecated
|
|
121
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
132
122
|
*/
|
|
133
123
|
export interface StatusIndicatorProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
134
124
|
/**
|
|
@@ -172,9 +162,7 @@ const StatusLabel = styled('span')({
|
|
|
172
162
|
});
|
|
173
163
|
|
|
174
164
|
/**
|
|
175
|
-
*
|
|
176
|
-
* - Please consider using [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in preview
|
|
177
|
-
* @deprecated
|
|
165
|
+
* @deprecated ⚠️ Status Indicator has been deprecated and will be removed in a future major version. Please use [`Status Indicator`](https://workday.github.io/canvas-kit/?path=/docs/preview-status-indicator--basic) in Preview instead.
|
|
178
166
|
*/
|
|
179
167
|
export class StatusIndicator extends React.Component<StatusIndicatorProps> {
|
|
180
168
|
public static Type = StatusIndicatorType;
|
package/tabs/lib/Tabs.tsx
CHANGED
|
@@ -112,7 +112,7 @@ export const Tabs = createContainer()({
|
|
|
112
112
|
*/
|
|
113
113
|
OverflowButton: TabsOverflowButton,
|
|
114
114
|
/**
|
|
115
|
-
* @deprecated
|
|
115
|
+
* @deprecated ⚠️ `MenuPopper` has been deprecated and will be removed in a future major version. Please use `Tabs.Menu.Popper` instead.
|
|
116
116
|
*/
|
|
117
117
|
MenuPopper: TabsMenuPopper,
|
|
118
118
|
/**
|