@workday/canvas-kit-react 15.0.0-alpha.0074-next.0 → 15.0.0-alpha.0076-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/index.d.ts +1 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +1 -0
- package/dist/commonjs/pill/index.d.ts +8 -0
- package/dist/commonjs/pill/index.d.ts.map +1 -0
- package/dist/commonjs/pill/index.js +23 -0
- package/dist/commonjs/pill/lib/Pill.d.ts +265 -0
- package/dist/commonjs/pill/lib/Pill.d.ts.map +1 -0
- package/dist/commonjs/pill/lib/Pill.js +147 -0
- package/dist/commonjs/pill/lib/PillAvatar.d.ts +526 -0
- package/dist/commonjs/pill/lib/PillAvatar.d.ts.map +1 -0
- package/dist/commonjs/pill/lib/PillAvatar.js +22 -0
- package/dist/commonjs/pill/lib/PillCount.d.ts +12 -0
- package/dist/commonjs/pill/lib/PillCount.d.ts.map +1 -0
- package/dist/commonjs/pill/lib/PillCount.js +21 -0
- package/dist/commonjs/pill/lib/PillIcon.d.ts +54 -0
- package/dist/commonjs/pill/lib/PillIcon.d.ts.map +1 -0
- package/dist/commonjs/pill/lib/PillIcon.js +20 -0
- package/dist/commonjs/pill/lib/PillIconButton.d.ts +148 -0
- package/dist/commonjs/pill/lib/PillIconButton.d.ts.map +1 -0
- package/dist/commonjs/pill/lib/PillIconButton.js +21 -0
- package/dist/commonjs/pill/lib/PillLabel.d.ts +14 -0
- package/dist/commonjs/pill/lib/PillLabel.d.ts.map +1 -0
- package/dist/commonjs/pill/lib/PillLabel.js +17 -0
- package/dist/commonjs/pill/lib/usePillModel.d.ts +46 -0
- package/dist/commonjs/pill/lib/usePillModel.d.ts.map +1 -0
- package/dist/commonjs/pill/lib/usePillModel.js +24 -0
- package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts +1 -1
- package/dist/commonjs/segmented-control/lib/SegmentedControl.js +1 -1
- package/dist/es6/index.d.ts +1 -0
- package/dist/es6/index.d.ts.map +1 -1
- package/dist/es6/index.js +1 -0
- package/dist/es6/pill/index.d.ts +8 -0
- package/dist/es6/pill/index.d.ts.map +1 -0
- package/dist/es6/pill/index.js +7 -0
- package/dist/es6/pill/lib/Pill.d.ts +265 -0
- package/dist/es6/pill/lib/Pill.d.ts.map +1 -0
- package/dist/es6/pill/lib/Pill.js +144 -0
- package/dist/es6/pill/lib/PillAvatar.d.ts +526 -0
- package/dist/es6/pill/lib/PillAvatar.d.ts.map +1 -0
- package/dist/es6/pill/lib/PillAvatar.js +19 -0
- package/dist/es6/pill/lib/PillCount.d.ts +12 -0
- package/dist/es6/pill/lib/PillCount.d.ts.map +1 -0
- package/dist/es6/pill/lib/PillCount.js +18 -0
- package/dist/es6/pill/lib/PillIcon.d.ts +54 -0
- package/dist/es6/pill/lib/PillIcon.d.ts.map +1 -0
- package/dist/es6/pill/lib/PillIcon.js +17 -0
- package/dist/es6/pill/lib/PillIconButton.d.ts +148 -0
- package/dist/es6/pill/lib/PillIconButton.d.ts.map +1 -0
- package/dist/es6/pill/lib/PillIconButton.js +18 -0
- package/dist/es6/pill/lib/PillLabel.d.ts +14 -0
- package/dist/es6/pill/lib/PillLabel.d.ts.map +1 -0
- package/dist/es6/pill/lib/PillLabel.js +14 -0
- package/dist/es6/pill/lib/usePillModel.d.ts +46 -0
- package/dist/es6/pill/lib/usePillModel.d.ts.map +1 -0
- package/dist/es6/pill/lib/usePillModel.js +21 -0
- package/dist/es6/segmented-control/lib/SegmentedControl.d.ts +1 -1
- package/dist/es6/segmented-control/lib/SegmentedControl.js +1 -1
- package/index.ts +1 -0
- package/package.json +5 -5
- package/pill/index.ts +7 -0
- package/pill/lib/Pill.tsx +285 -0
- package/pill/lib/PillAvatar.tsx +35 -0
- package/pill/lib/PillCount.tsx +44 -0
- package/pill/lib/PillIcon.tsx +32 -0
- package/pill/lib/PillIconButton.tsx +86 -0
- package/pill/lib/PillLabel.tsx +32 -0
- package/pill/lib/usePillModel.tsx +23 -0
- package/pill/package.json +6 -0
- package/segmented-control/lib/SegmentedControl.tsx +1 -1
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { buttonStencil } from '@workday/canvas-kit-react/button';
|
|
3
|
+
import { createContainer, focusRing } from '@workday/canvas-kit-react/common';
|
|
4
|
+
import { Box, mergeStyles } from '@workday/canvas-kit-react/layout';
|
|
5
|
+
import { px2rem, createStencil, cssVar } from '@workday/canvas-kit-styling';
|
|
6
|
+
import { usePillModel } from './usePillModel';
|
|
7
|
+
import { PillIcon } from './PillIcon';
|
|
8
|
+
import { PillIconButton } from './PillIconButton';
|
|
9
|
+
import { PillCount, pillCountStencil } from './PillCount';
|
|
10
|
+
import { PillAvatar } from './PillAvatar';
|
|
11
|
+
import { PillLabel } from './PillLabel';
|
|
12
|
+
import { systemIconStencil } from '@workday/canvas-kit-react/icon';
|
|
13
|
+
import { system } from '@workday/canvas-tokens-web';
|
|
14
|
+
export const pillStencil = createStencil({
|
|
15
|
+
extends: buttonStencil,
|
|
16
|
+
vars: {
|
|
17
|
+
maxWidth: '',
|
|
18
|
+
},
|
|
19
|
+
base: { name: "24wm92", styles: "box-sizing:border-box;display:initial;flex-direction:row;align-items:center;border-radius:var(--cnvs-sys-shape-x1);font-family:var(--cnvs-sys-font-family-default);font-weight:var(--cnvs-sys-font-weight-medium);line-height:var(--cnvs-sys-line-height-subtext-small);font-size:var(--cnvs-sys-font-size-subtext-large);letter-spacing:var(--cnvs-base-letter-spacing-150);box-shadow:none;outline:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:fit-content;padding:0.125rem var(--cnvs-sys-space-x2);height:var(--cnvs-sys-space-x6);position:relative;gap:var(--cnvs-sys-space-x1);max-width:var(--maxWidth-pill-4ef1a0);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;--background-button-f6d2bd:var(--cnvs-sys-color-bg-alt-default);--border-button-f6d2bd:var(--cnvs-sys-color-border-input-default);--label-button-f6d2bd:var(--cnvs-sys-color-fg-strong);--color-system-icon-3a4847:currentColor;--borderColor-pill-count-d52af1:transparent;&:has(span){display:flex;line-height:var(--cnvs-sys-line-height-subtext-large);}&:hover, &.hover{--background-button-f6d2bd:var(--cnvs-sys-color-bg-alt-strong);--border-button-f6d2bd:var(--cnvs-sys-color-border-input-strong);--label-button-f6d2bd:var(--cnvs-sys-color-fg-strong);--color-system-icon-3a4847:currentColor;--backgroundColor-pill-count-d52af1:var(--cnvs-sys-color-bg-muted-softer);--borderColor-pill-count-d52af1:transparent;}&:active, &.active{--background-button-f6d2bd:var(--cnvs-sys-color-bg-alt-stronger);--border-button-f6d2bd:var(--cnvs-sys-color-border-input-strong);--label-button-f6d2bd:var(--cnvs-sys-color-fg-strong);--color-system-icon-3a4847:currentColor;--backgroundColor-pill-count-d52af1:var(--cnvs-sys-color-bg-muted-softer);--borderColor-pill-count-d52af1:transparent;}&:focus-visible, &.focus{--background-button-f6d2bd:var(--cnvs-sys-color-bg-alt-default);--border-button-f6d2bd:var(--cnvs-sys-color-border-primary-default);--label-button-f6d2bd:var(--cnvs-sys-color-fg-strong);border-color:var(--cnvs-sys-color-border-primary-default);--color-system-icon-3a4847:currentColor;--borderColor-pill-count-d52af1:var(--cnvs-sys-color-border-primary-default);box-shadow:inset 0 0 0 1px var(--cnvs-sys-color-border-primary-default), 0 0 0 0px var(--cnvs-sys-color-border-primary-default);}&:disabled, &.disabled{--background-button-f6d2bd:var(--cnvs-sys-color-bg-alt-default);--border-button-f6d2bd:var(--cnvs-sys-color-border-input-disabled);--label-button-f6d2bd:var(--cnvs-sys-color-fg-disabled);--color-system-icon-3a4847:currentColor;--backgroundColor-pill-count-d52af1:var(--cnvs-sys-color-bg-alt-strong);--borderColor-pill-count-d52af1:transparent;}" },
|
|
20
|
+
modifiers: {
|
|
21
|
+
variant: {
|
|
22
|
+
readOnly: { name: "3l435h", styles: "border:0.0625rem solid var(--cnvs-sys-color-border-container);cursor:default;--background-button-f6d2bd:var(--cnvs-sys-color-bg-default);&:hover, &.hover{border-color:var(--cnvs-sys-color-border-container);--background-button-f6d2bd:var(--cnvs-sys-color-bg-default);}&:focus-visible, &.focus{--background-button-f6d2bd:var(--cnvs-sys-color-bg-default);}&:active, &.active{--background-button-f6d2bd:var(--cnvs-sys-color-bg-default);}&:disabled, &.disabled{--background-button-f6d2bd:var(--cnvs-sys-color-bg-default);}" },
|
|
23
|
+
removable: { name: "s6l79", styles: "&:focus-visible, &.focus{--background-button-f6d2bd:var(--cnvs-sys-color-bg-alt-default);--border-button-f6d2bd:var(--cnvs-sys-color-border-input-default);--label-button-f6d2bd:var(--cnvs-sys-color-fg-strong);box-shadow:none;}&:hover, &.hover{--background-button-f6d2bd:var(--cnvs-sys-color-bg-alt-strong);}&:active, &.active{--background-button-f6d2bd:var(--cnvs-sys-color-bg-alt-stronger);}&:disabled, &.disabled{--background-button-f6d2bd:var(--cnvs-sys-color-bg-alt-default);--color-system-icon-3a4847:currentColor;}cursor:default;overflow:revert;position:relative;" }
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}, "pill-4ef1a0");
|
|
27
|
+
/**
|
|
28
|
+
* By default, a `Pill` renders an interactive element that accepts subcomponents. By "interactive"
|
|
29
|
+
* we mean that the Pill container is a focusable element (a `<button>`). All leading elements
|
|
30
|
+
* (icons or avatars) are intended to be descriptive, helping support the label. They should not
|
|
31
|
+
* receive focus.
|
|
32
|
+
*
|
|
33
|
+
* `Pill` is the container component. It also provides a React context model for its subcomponents.
|
|
34
|
+
* Based on the `variant` prop this component will render different styled `Pill`s.
|
|
35
|
+
*
|
|
36
|
+
* Example of read only:
|
|
37
|
+
*
|
|
38
|
+
* ```tsx
|
|
39
|
+
* <Pill variant="readOnly">This is a read only</Pill>
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* Example of interactive:
|
|
43
|
+
*
|
|
44
|
+
* ```tsx
|
|
45
|
+
* <Pill onClick={() => console.log('clicked')}>
|
|
46
|
+
* <Pill.Avatar /> Regina Skeltor
|
|
47
|
+
* </Pill>
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* Example of removable:
|
|
51
|
+
*
|
|
52
|
+
* ```tsx
|
|
53
|
+
* <Pill variant="removable">
|
|
54
|
+
* <Pill.Avatar /> Regina Skeltor
|
|
55
|
+
* <Pill.IconButton aria-label='Remove user' onClick={() => console.log('clicked')} />
|
|
56
|
+
* </Pill>
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* If you set the `Pill` `variant` to `removable`, it will render a `<span>` element. You can then
|
|
60
|
+
* provide a `Pill.IconButton` that acts as the focus target. This creates a smaller, more
|
|
61
|
+
* intentional click target that prevents users from accidentally deleting an item.
|
|
62
|
+
*
|
|
63
|
+
* ```tsx
|
|
64
|
+
* <Pill variant="removable">
|
|
65
|
+
* Shoes
|
|
66
|
+
* <Pill.IconButton aria-label='Remove user' onClick={() => console.log('handle remove')} />
|
|
67
|
+
* </Pill>
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
export const Pill = createContainer('button')({
|
|
71
|
+
displayName: 'Pill',
|
|
72
|
+
modelHook: usePillModel,
|
|
73
|
+
subComponents: {
|
|
74
|
+
/**
|
|
75
|
+
* This component renders an avatar. It supports all props of the `Avatar` component.
|
|
76
|
+
*
|
|
77
|
+
* ```tsx
|
|
78
|
+
* <Pill variant="removable">
|
|
79
|
+
* <Pill.Avatar url={avatarUrl} />
|
|
80
|
+
* <Pill.Label>Regina Skeltor</Pill.Label>
|
|
81
|
+
* <Pill.IconButton aria-label='Remove user' onClick={() => console.log('handle remove')} />
|
|
82
|
+
* </Pill>
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
Avatar: PillAvatar,
|
|
86
|
+
/**
|
|
87
|
+
* This component renders its `children` as the count.
|
|
88
|
+
*
|
|
89
|
+
* ```tsx
|
|
90
|
+
* <Pill onClick={() => console.warn('clicked')}>
|
|
91
|
+
* <Pill.Label>Shoes</Pill.Label>
|
|
92
|
+
* <Pill.Count>30</Pill.Count>
|
|
93
|
+
* </Pill>
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
Count: PillCount,
|
|
97
|
+
/**
|
|
98
|
+
* This component renders an `icon`. By default it renders a `plusIcon` but it can be overridden by
|
|
99
|
+
* providing an icon to the `icon` prop. You must provide an `aria-label` for the icon.
|
|
100
|
+
*
|
|
101
|
+
* ```tsx
|
|
102
|
+
* <Pill onClick={() => console.warn('clicked')}>
|
|
103
|
+
* <Pill.Icon aria-label='Add user' />
|
|
104
|
+
* <Pill.Label>Regina Skeltor</Pill.Label>
|
|
105
|
+
* </Pill>
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
Icon: PillIcon,
|
|
109
|
+
/**
|
|
110
|
+
* This component renders a custom icon button. It is only intended to be used with the
|
|
111
|
+
* `removable` variant. By default, it renders a `xSmallIcon` but can be overridden by providing
|
|
112
|
+
* an icon to the `icon` prop.
|
|
113
|
+
*
|
|
114
|
+
* ```tsx
|
|
115
|
+
* <Pill variant="removable">
|
|
116
|
+
* <Pill.Label>Pink Shirts</Pill.Label>
|
|
117
|
+
* <Pill.IconButton aria-label='Remove item' onClick={() => console.warn('clicked')} />
|
|
118
|
+
* </Pill>
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
IconButton: PillIconButton,
|
|
122
|
+
/**
|
|
123
|
+
* This component renders a `<span>` that automatically handles overflow by rendering a tooltip.
|
|
124
|
+
* There's no need to use this component directly since the overflow is handled for you automatically unless you have an icon or other element.
|
|
125
|
+
*
|
|
126
|
+
* ```tsx
|
|
127
|
+
* <Pill variant="readOnly">
|
|
128
|
+
* <Pill.Label>Read-only</Pill.Label>
|
|
129
|
+
* </Pill>
|
|
130
|
+
* ```
|
|
131
|
+
*/
|
|
132
|
+
Label: PillLabel,
|
|
133
|
+
},
|
|
134
|
+
})(({ variant, maxWidth = 200, children, ...elemProps }, Element, model) => {
|
|
135
|
+
const maxWidthCSSValue = typeof maxWidth === 'number' ? px2rem(maxWidth) : maxWidth;
|
|
136
|
+
const isReadOnly = variant === 'readOnly';
|
|
137
|
+
return (variant === null || variant === void 0 ? void 0 : variant.match(/^(readOnly|removable)$/)) ? (_jsx(Box, { as: Element !== 'button' ? Element : 'span', id: isReadOnly ? model.state.id : undefined, ...mergeStyles(elemProps, [
|
|
138
|
+
model.state.disabled ? 'disabled' : undefined,
|
|
139
|
+
pillStencil({ maxWidth: maxWidthCSSValue, variant }),
|
|
140
|
+
]), children: isReadOnly ? _jsx(PillLabel, { children: children }) : children })) : (_jsx(Element, { disabled: model.state.disabled, ...mergeStyles(elemProps, [
|
|
141
|
+
model.state.disabled ? 'disabled' : undefined,
|
|
142
|
+
pillStencil({ maxWidth: maxWidthCSSValue }),
|
|
143
|
+
]), children: children }));
|
|
144
|
+
});
|
|
@@ -0,0 +1,526 @@
|
|
|
1
|
+
import { AvatarProps } from '@workday/canvas-kit-preview-react/avatar';
|
|
2
|
+
export interface PillAvatarProps extends AvatarProps {
|
|
3
|
+
}
|
|
4
|
+
export declare const pillAvatarStencil: import("@workday/canvas-kit-styling").Stencil<import("@workday/canvas-kit-styling").StencilModifierConfig<{}, {}, import("@workday/canvas-kit-styling").Stencil<{
|
|
5
|
+
imageLoaded: {
|
|
6
|
+
false: ({ avatarImagePart }: {
|
|
7
|
+
backgroundColor: `--${string}`;
|
|
8
|
+
color: `--${string}`;
|
|
9
|
+
size: `--${string}`;
|
|
10
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
11
|
+
readonly avatarImage: "avatar-image";
|
|
12
|
+
readonly avatarName: "avatar-name";
|
|
13
|
+
}>) => {
|
|
14
|
+
"[data-part=\"avatar-image\"]": {
|
|
15
|
+
display: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
true: {
|
|
19
|
+
backgroundColor: "--cnvs-sys-color-bg-default";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
objectFit: {
|
|
23
|
+
contain: ({ avatarImagePart }: {
|
|
24
|
+
backgroundColor: `--${string}`;
|
|
25
|
+
color: `--${string}`;
|
|
26
|
+
size: `--${string}`;
|
|
27
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
28
|
+
readonly avatarImage: "avatar-image";
|
|
29
|
+
readonly avatarName: "avatar-name";
|
|
30
|
+
}>) => {
|
|
31
|
+
"[data-part=\"avatar-image\"]": {
|
|
32
|
+
objectFit: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
cover: ({ avatarImagePart }: {
|
|
36
|
+
backgroundColor: `--${string}`;
|
|
37
|
+
color: `--${string}`;
|
|
38
|
+
size: `--${string}`;
|
|
39
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
40
|
+
readonly avatarImage: "avatar-image";
|
|
41
|
+
readonly avatarName: "avatar-name";
|
|
42
|
+
}>) => {
|
|
43
|
+
"[data-part=\"avatar-image\"]": {
|
|
44
|
+
objectFit: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
fill: ({ avatarImagePart }: {
|
|
48
|
+
backgroundColor: `--${string}`;
|
|
49
|
+
color: `--${string}`;
|
|
50
|
+
size: `--${string}`;
|
|
51
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
52
|
+
readonly avatarImage: "avatar-image";
|
|
53
|
+
readonly avatarName: "avatar-name";
|
|
54
|
+
}>) => {
|
|
55
|
+
"[data-part=\"avatar-image\"]": {
|
|
56
|
+
objectFit: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
none: ({ avatarImagePart }: {
|
|
60
|
+
backgroundColor: `--${string}`;
|
|
61
|
+
color: `--${string}`;
|
|
62
|
+
size: `--${string}`;
|
|
63
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
64
|
+
readonly avatarImage: "avatar-image";
|
|
65
|
+
readonly avatarName: "avatar-name";
|
|
66
|
+
}>) => {
|
|
67
|
+
"[data-part=\"avatar-image\"]": {
|
|
68
|
+
objectFit: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
"scale-down": ({ avatarImagePart }: {
|
|
72
|
+
backgroundColor: `--${string}`;
|
|
73
|
+
color: `--${string}`;
|
|
74
|
+
size: `--${string}`;
|
|
75
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
76
|
+
readonly avatarImage: "avatar-image";
|
|
77
|
+
readonly avatarName: "avatar-name";
|
|
78
|
+
}>) => {
|
|
79
|
+
"[data-part=\"avatar-image\"]": {
|
|
80
|
+
objectFit: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
initial: ({ avatarImagePart }: {
|
|
84
|
+
backgroundColor: `--${string}`;
|
|
85
|
+
color: `--${string}`;
|
|
86
|
+
size: `--${string}`;
|
|
87
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
88
|
+
readonly avatarImage: "avatar-image";
|
|
89
|
+
readonly avatarName: "avatar-name";
|
|
90
|
+
}>) => {
|
|
91
|
+
"[data-part=\"avatar-image\"]": {
|
|
92
|
+
objectFit: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
inherit: ({ avatarImagePart }: {
|
|
96
|
+
backgroundColor: `--${string}`;
|
|
97
|
+
color: `--${string}`;
|
|
98
|
+
size: `--${string}`;
|
|
99
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
100
|
+
readonly avatarImage: "avatar-image";
|
|
101
|
+
readonly avatarName: "avatar-name";
|
|
102
|
+
}>) => {
|
|
103
|
+
"[data-part=\"avatar-image\"]": {
|
|
104
|
+
objectFit: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
unset: ({ avatarImagePart }: {
|
|
108
|
+
backgroundColor: `--${string}`;
|
|
109
|
+
color: `--${string}`;
|
|
110
|
+
size: `--${string}`;
|
|
111
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
112
|
+
readonly avatarImage: "avatar-image";
|
|
113
|
+
readonly avatarName: "avatar-name";
|
|
114
|
+
}>) => {
|
|
115
|
+
"[data-part=\"avatar-image\"]": {
|
|
116
|
+
objectFit: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
"-moz-initial": ({ avatarImagePart }: {
|
|
120
|
+
backgroundColor: `--${string}`;
|
|
121
|
+
color: `--${string}`;
|
|
122
|
+
size: `--${string}`;
|
|
123
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
124
|
+
readonly avatarImage: "avatar-image";
|
|
125
|
+
readonly avatarName: "avatar-name";
|
|
126
|
+
}>) => {
|
|
127
|
+
"[data-part=\"avatar-image\"]": {
|
|
128
|
+
objectFit: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
revert: ({ avatarImagePart }: {
|
|
132
|
+
backgroundColor: `--${string}`;
|
|
133
|
+
color: `--${string}`;
|
|
134
|
+
size: `--${string}`;
|
|
135
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
136
|
+
readonly avatarImage: "avatar-image";
|
|
137
|
+
readonly avatarName: "avatar-name";
|
|
138
|
+
}>) => {
|
|
139
|
+
"[data-part=\"avatar-image\"]": {
|
|
140
|
+
objectFit: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
}, {
|
|
145
|
+
readonly avatarImage: "avatar-image";
|
|
146
|
+
readonly avatarName: "avatar-name";
|
|
147
|
+
}, {}, import("@workday/canvas-kit-styling").Stencil<{
|
|
148
|
+
variant: {
|
|
149
|
+
blue: ({ backgroundColor, color }: {
|
|
150
|
+
backgroundColor: `--${string}`;
|
|
151
|
+
color: `--${string}`;
|
|
152
|
+
size: `--${string}`;
|
|
153
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
154
|
+
backgroundColor: `var(--${string}, var(--cnvs-base-palette-blue-300))`;
|
|
155
|
+
color: `var(--${string}, var(--cnvs-base-palette-blue-800))`;
|
|
156
|
+
};
|
|
157
|
+
amber: ({ backgroundColor, color }: {
|
|
158
|
+
backgroundColor: `--${string}`;
|
|
159
|
+
color: `--${string}`;
|
|
160
|
+
size: `--${string}`;
|
|
161
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
162
|
+
backgroundColor: `var(--${string}, var(--cnvs-base-palette-amber-200))`;
|
|
163
|
+
color: `var(--${string}, var(--cnvs-base-palette-amber-700))`;
|
|
164
|
+
};
|
|
165
|
+
teal: ({ backgroundColor, color }: {
|
|
166
|
+
backgroundColor: `--${string}`;
|
|
167
|
+
color: `--${string}`;
|
|
168
|
+
size: `--${string}`;
|
|
169
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
170
|
+
backgroundColor: `var(--${string}, var(--cnvs-base-palette-teal-300))`;
|
|
171
|
+
color: `var(--${string}, var(--cnvs-base-palette-teal-800))`;
|
|
172
|
+
};
|
|
173
|
+
purple: ({ backgroundColor, color }: {
|
|
174
|
+
backgroundColor: `--${string}`;
|
|
175
|
+
color: `--${string}`;
|
|
176
|
+
size: `--${string}`;
|
|
177
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
178
|
+
backgroundColor: `var(--${string}, var(--cnvs-base-palette-purple-300))`;
|
|
179
|
+
color: `var(--${string}, var(--cnvs-base-palette-purple-800))`;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
size: {
|
|
183
|
+
extraExtraSmall: ({ size }: {
|
|
184
|
+
backgroundColor: `--${string}`;
|
|
185
|
+
color: `--${string}`;
|
|
186
|
+
size: `--${string}`;
|
|
187
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
188
|
+
fontFamily: "--cnvs-sys-font-family-default";
|
|
189
|
+
fontWeight: "--cnvs-sys-font-weight-normal";
|
|
190
|
+
lineHeight: "--cnvs-sys-line-height-subtext-small";
|
|
191
|
+
fontSize: "--cnvs-sys-font-size-subtext-small";
|
|
192
|
+
letterSpacing: "--cnvs-base-letter-spacing-50";
|
|
193
|
+
};
|
|
194
|
+
extraSmall: ({ size }: {
|
|
195
|
+
backgroundColor: `--${string}`;
|
|
196
|
+
color: `--${string}`;
|
|
197
|
+
size: `--${string}`;
|
|
198
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
199
|
+
fontFamily: "--cnvs-sys-font-family-default";
|
|
200
|
+
fontWeight: "--cnvs-sys-font-weight-normal";
|
|
201
|
+
lineHeight: "--cnvs-sys-line-height-subtext-medium";
|
|
202
|
+
fontSize: "--cnvs-sys-font-size-subtext-medium";
|
|
203
|
+
letterSpacing: "--cnvs-base-letter-spacing-100";
|
|
204
|
+
};
|
|
205
|
+
small: ({ size }: {
|
|
206
|
+
backgroundColor: `--${string}`;
|
|
207
|
+
color: `--${string}`;
|
|
208
|
+
size: `--${string}`;
|
|
209
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
210
|
+
fontFamily: "--cnvs-sys-font-family-default";
|
|
211
|
+
fontWeight: "--cnvs-sys-font-weight-normal";
|
|
212
|
+
lineHeight: "--cnvs-sys-line-height-body-small";
|
|
213
|
+
fontSize: "--cnvs-sys-font-size-body-small";
|
|
214
|
+
letterSpacing: "--cnvs-base-letter-spacing-200";
|
|
215
|
+
};
|
|
216
|
+
medium: ({ size }: {
|
|
217
|
+
backgroundColor: `--${string}`;
|
|
218
|
+
color: `--${string}`;
|
|
219
|
+
size: `--${string}`;
|
|
220
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
221
|
+
fontFamily: "--cnvs-sys-font-family-default";
|
|
222
|
+
fontWeight: "--cnvs-sys-font-weight-normal";
|
|
223
|
+
lineHeight: "--cnvs-sys-line-height-body-medium";
|
|
224
|
+
fontSize: "--cnvs-sys-font-size-body-medium";
|
|
225
|
+
};
|
|
226
|
+
large: ({ size }: {
|
|
227
|
+
backgroundColor: `--${string}`;
|
|
228
|
+
color: `--${string}`;
|
|
229
|
+
size: `--${string}`;
|
|
230
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
231
|
+
fontFamily: "--cnvs-sys-font-family-default";
|
|
232
|
+
fontWeight: "--cnvs-sys-font-weight-bold";
|
|
233
|
+
lineHeight: "--cnvs-sys-line-height-heading-medium";
|
|
234
|
+
fontSize: "--cnvs-sys-font-size-heading-medium";
|
|
235
|
+
};
|
|
236
|
+
extraLarge: ({ size }: {
|
|
237
|
+
backgroundColor: `--${string}`;
|
|
238
|
+
color: `--${string}`;
|
|
239
|
+
size: `--${string}`;
|
|
240
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
241
|
+
fontFamily: "--cnvs-sys-font-family-default";
|
|
242
|
+
fontWeight: "--cnvs-sys-font-weight-bold";
|
|
243
|
+
lineHeight: "--cnvs-sys-line-height-title-small";
|
|
244
|
+
fontSize: "--cnvs-sys-font-size-title-small";
|
|
245
|
+
};
|
|
246
|
+
extraExtraLarge: ({ size }: {
|
|
247
|
+
backgroundColor: `--${string}`;
|
|
248
|
+
color: `--${string}`;
|
|
249
|
+
size: `--${string}`;
|
|
250
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
251
|
+
fontFamily: "--cnvs-sys-font-family-default";
|
|
252
|
+
fontWeight: "--cnvs-sys-font-weight-bold";
|
|
253
|
+
lineHeight: "--cnvs-sys-line-height-title-medium";
|
|
254
|
+
fontSize: "--cnvs-sys-font-size-title-medium";
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
}, {}, {
|
|
258
|
+
backgroundColor: string;
|
|
259
|
+
color: string;
|
|
260
|
+
size: string;
|
|
261
|
+
}, never, never>, never>>, {}, {}, import("@workday/canvas-kit-styling").Stencil<{
|
|
262
|
+
imageLoaded: {
|
|
263
|
+
false: ({ avatarImagePart }: {
|
|
264
|
+
backgroundColor: `--${string}`;
|
|
265
|
+
color: `--${string}`;
|
|
266
|
+
size: `--${string}`;
|
|
267
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
268
|
+
readonly avatarImage: "avatar-image";
|
|
269
|
+
readonly avatarName: "avatar-name";
|
|
270
|
+
}>) => {
|
|
271
|
+
"[data-part=\"avatar-image\"]": {
|
|
272
|
+
display: string;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
true: {
|
|
276
|
+
backgroundColor: "--cnvs-sys-color-bg-default";
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
objectFit: {
|
|
280
|
+
contain: ({ avatarImagePart }: {
|
|
281
|
+
backgroundColor: `--${string}`;
|
|
282
|
+
color: `--${string}`;
|
|
283
|
+
size: `--${string}`;
|
|
284
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
285
|
+
readonly avatarImage: "avatar-image";
|
|
286
|
+
readonly avatarName: "avatar-name";
|
|
287
|
+
}>) => {
|
|
288
|
+
"[data-part=\"avatar-image\"]": {
|
|
289
|
+
objectFit: string;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
cover: ({ avatarImagePart }: {
|
|
293
|
+
backgroundColor: `--${string}`;
|
|
294
|
+
color: `--${string}`;
|
|
295
|
+
size: `--${string}`;
|
|
296
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
297
|
+
readonly avatarImage: "avatar-image";
|
|
298
|
+
readonly avatarName: "avatar-name";
|
|
299
|
+
}>) => {
|
|
300
|
+
"[data-part=\"avatar-image\"]": {
|
|
301
|
+
objectFit: string;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
fill: ({ avatarImagePart }: {
|
|
305
|
+
backgroundColor: `--${string}`;
|
|
306
|
+
color: `--${string}`;
|
|
307
|
+
size: `--${string}`;
|
|
308
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
309
|
+
readonly avatarImage: "avatar-image";
|
|
310
|
+
readonly avatarName: "avatar-name";
|
|
311
|
+
}>) => {
|
|
312
|
+
"[data-part=\"avatar-image\"]": {
|
|
313
|
+
objectFit: string;
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
none: ({ avatarImagePart }: {
|
|
317
|
+
backgroundColor: `--${string}`;
|
|
318
|
+
color: `--${string}`;
|
|
319
|
+
size: `--${string}`;
|
|
320
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
321
|
+
readonly avatarImage: "avatar-image";
|
|
322
|
+
readonly avatarName: "avatar-name";
|
|
323
|
+
}>) => {
|
|
324
|
+
"[data-part=\"avatar-image\"]": {
|
|
325
|
+
objectFit: string;
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
"scale-down": ({ avatarImagePart }: {
|
|
329
|
+
backgroundColor: `--${string}`;
|
|
330
|
+
color: `--${string}`;
|
|
331
|
+
size: `--${string}`;
|
|
332
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
333
|
+
readonly avatarImage: "avatar-image";
|
|
334
|
+
readonly avatarName: "avatar-name";
|
|
335
|
+
}>) => {
|
|
336
|
+
"[data-part=\"avatar-image\"]": {
|
|
337
|
+
objectFit: string;
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
initial: ({ avatarImagePart }: {
|
|
341
|
+
backgroundColor: `--${string}`;
|
|
342
|
+
color: `--${string}`;
|
|
343
|
+
size: `--${string}`;
|
|
344
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
345
|
+
readonly avatarImage: "avatar-image";
|
|
346
|
+
readonly avatarName: "avatar-name";
|
|
347
|
+
}>) => {
|
|
348
|
+
"[data-part=\"avatar-image\"]": {
|
|
349
|
+
objectFit: string;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
inherit: ({ avatarImagePart }: {
|
|
353
|
+
backgroundColor: `--${string}`;
|
|
354
|
+
color: `--${string}`;
|
|
355
|
+
size: `--${string}`;
|
|
356
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
357
|
+
readonly avatarImage: "avatar-image";
|
|
358
|
+
readonly avatarName: "avatar-name";
|
|
359
|
+
}>) => {
|
|
360
|
+
"[data-part=\"avatar-image\"]": {
|
|
361
|
+
objectFit: string;
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
unset: ({ avatarImagePart }: {
|
|
365
|
+
backgroundColor: `--${string}`;
|
|
366
|
+
color: `--${string}`;
|
|
367
|
+
size: `--${string}`;
|
|
368
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
369
|
+
readonly avatarImage: "avatar-image";
|
|
370
|
+
readonly avatarName: "avatar-name";
|
|
371
|
+
}>) => {
|
|
372
|
+
"[data-part=\"avatar-image\"]": {
|
|
373
|
+
objectFit: string;
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
"-moz-initial": ({ avatarImagePart }: {
|
|
377
|
+
backgroundColor: `--${string}`;
|
|
378
|
+
color: `--${string}`;
|
|
379
|
+
size: `--${string}`;
|
|
380
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
381
|
+
readonly avatarImage: "avatar-image";
|
|
382
|
+
readonly avatarName: "avatar-name";
|
|
383
|
+
}>) => {
|
|
384
|
+
"[data-part=\"avatar-image\"]": {
|
|
385
|
+
objectFit: string;
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
revert: ({ avatarImagePart }: {
|
|
389
|
+
backgroundColor: `--${string}`;
|
|
390
|
+
color: `--${string}`;
|
|
391
|
+
size: `--${string}`;
|
|
392
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{
|
|
393
|
+
readonly avatarImage: "avatar-image";
|
|
394
|
+
readonly avatarName: "avatar-name";
|
|
395
|
+
}>) => {
|
|
396
|
+
"[data-part=\"avatar-image\"]": {
|
|
397
|
+
objectFit: string;
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
}, {
|
|
402
|
+
readonly avatarImage: "avatar-image";
|
|
403
|
+
readonly avatarName: "avatar-name";
|
|
404
|
+
}, {}, import("@workday/canvas-kit-styling").Stencil<{
|
|
405
|
+
variant: {
|
|
406
|
+
blue: ({ backgroundColor, color }: {
|
|
407
|
+
backgroundColor: `--${string}`;
|
|
408
|
+
color: `--${string}`;
|
|
409
|
+
size: `--${string}`;
|
|
410
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
411
|
+
backgroundColor: `var(--${string}, var(--cnvs-base-palette-blue-300))`;
|
|
412
|
+
color: `var(--${string}, var(--cnvs-base-palette-blue-800))`;
|
|
413
|
+
};
|
|
414
|
+
amber: ({ backgroundColor, color }: {
|
|
415
|
+
backgroundColor: `--${string}`;
|
|
416
|
+
color: `--${string}`;
|
|
417
|
+
size: `--${string}`;
|
|
418
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
419
|
+
backgroundColor: `var(--${string}, var(--cnvs-base-palette-amber-200))`;
|
|
420
|
+
color: `var(--${string}, var(--cnvs-base-palette-amber-700))`;
|
|
421
|
+
};
|
|
422
|
+
teal: ({ backgroundColor, color }: {
|
|
423
|
+
backgroundColor: `--${string}`;
|
|
424
|
+
color: `--${string}`;
|
|
425
|
+
size: `--${string}`;
|
|
426
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
427
|
+
backgroundColor: `var(--${string}, var(--cnvs-base-palette-teal-300))`;
|
|
428
|
+
color: `var(--${string}, var(--cnvs-base-palette-teal-800))`;
|
|
429
|
+
};
|
|
430
|
+
purple: ({ backgroundColor, color }: {
|
|
431
|
+
backgroundColor: `--${string}`;
|
|
432
|
+
color: `--${string}`;
|
|
433
|
+
size: `--${string}`;
|
|
434
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
435
|
+
backgroundColor: `var(--${string}, var(--cnvs-base-palette-purple-300))`;
|
|
436
|
+
color: `var(--${string}, var(--cnvs-base-palette-purple-800))`;
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
size: {
|
|
440
|
+
extraExtraSmall: ({ size }: {
|
|
441
|
+
backgroundColor: `--${string}`;
|
|
442
|
+
color: `--${string}`;
|
|
443
|
+
size: `--${string}`;
|
|
444
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
445
|
+
fontFamily: "--cnvs-sys-font-family-default";
|
|
446
|
+
fontWeight: "--cnvs-sys-font-weight-normal";
|
|
447
|
+
lineHeight: "--cnvs-sys-line-height-subtext-small";
|
|
448
|
+
fontSize: "--cnvs-sys-font-size-subtext-small";
|
|
449
|
+
letterSpacing: "--cnvs-base-letter-spacing-50";
|
|
450
|
+
};
|
|
451
|
+
extraSmall: ({ size }: {
|
|
452
|
+
backgroundColor: `--${string}`;
|
|
453
|
+
color: `--${string}`;
|
|
454
|
+
size: `--${string}`;
|
|
455
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
456
|
+
fontFamily: "--cnvs-sys-font-family-default";
|
|
457
|
+
fontWeight: "--cnvs-sys-font-weight-normal";
|
|
458
|
+
lineHeight: "--cnvs-sys-line-height-subtext-medium";
|
|
459
|
+
fontSize: "--cnvs-sys-font-size-subtext-medium";
|
|
460
|
+
letterSpacing: "--cnvs-base-letter-spacing-100";
|
|
461
|
+
};
|
|
462
|
+
small: ({ size }: {
|
|
463
|
+
backgroundColor: `--${string}`;
|
|
464
|
+
color: `--${string}`;
|
|
465
|
+
size: `--${string}`;
|
|
466
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
467
|
+
fontFamily: "--cnvs-sys-font-family-default";
|
|
468
|
+
fontWeight: "--cnvs-sys-font-weight-normal";
|
|
469
|
+
lineHeight: "--cnvs-sys-line-height-body-small";
|
|
470
|
+
fontSize: "--cnvs-sys-font-size-body-small";
|
|
471
|
+
letterSpacing: "--cnvs-base-letter-spacing-200";
|
|
472
|
+
};
|
|
473
|
+
medium: ({ size }: {
|
|
474
|
+
backgroundColor: `--${string}`;
|
|
475
|
+
color: `--${string}`;
|
|
476
|
+
size: `--${string}`;
|
|
477
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
478
|
+
fontFamily: "--cnvs-sys-font-family-default";
|
|
479
|
+
fontWeight: "--cnvs-sys-font-weight-normal";
|
|
480
|
+
lineHeight: "--cnvs-sys-line-height-body-medium";
|
|
481
|
+
fontSize: "--cnvs-sys-font-size-body-medium";
|
|
482
|
+
};
|
|
483
|
+
large: ({ size }: {
|
|
484
|
+
backgroundColor: `--${string}`;
|
|
485
|
+
color: `--${string}`;
|
|
486
|
+
size: `--${string}`;
|
|
487
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
488
|
+
fontFamily: "--cnvs-sys-font-family-default";
|
|
489
|
+
fontWeight: "--cnvs-sys-font-weight-bold";
|
|
490
|
+
lineHeight: "--cnvs-sys-line-height-heading-medium";
|
|
491
|
+
fontSize: "--cnvs-sys-font-size-heading-medium";
|
|
492
|
+
};
|
|
493
|
+
extraLarge: ({ size }: {
|
|
494
|
+
backgroundColor: `--${string}`;
|
|
495
|
+
color: `--${string}`;
|
|
496
|
+
size: `--${string}`;
|
|
497
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
498
|
+
fontFamily: "--cnvs-sys-font-family-default";
|
|
499
|
+
fontWeight: "--cnvs-sys-font-weight-bold";
|
|
500
|
+
lineHeight: "--cnvs-sys-line-height-title-small";
|
|
501
|
+
fontSize: "--cnvs-sys-font-size-title-small";
|
|
502
|
+
};
|
|
503
|
+
extraExtraLarge: ({ size }: {
|
|
504
|
+
backgroundColor: `--${string}`;
|
|
505
|
+
color: `--${string}`;
|
|
506
|
+
size: `--${string}`;
|
|
507
|
+
} & import("@workday/canvas-kit-styling").StencilVarsParts<{}>) => {
|
|
508
|
+
fontFamily: "--cnvs-sys-font-family-default";
|
|
509
|
+
fontWeight: "--cnvs-sys-font-weight-bold";
|
|
510
|
+
lineHeight: "--cnvs-sys-line-height-title-medium";
|
|
511
|
+
fontSize: "--cnvs-sys-font-size-title-medium";
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
}, {}, {
|
|
515
|
+
backgroundColor: string;
|
|
516
|
+
color: string;
|
|
517
|
+
size: string;
|
|
518
|
+
}, never, never>, never>, never>;
|
|
519
|
+
export declare const PillAvatar: import("@workday/canvas-kit-react/common").ElementComponentM<"div", PillAvatarProps, {
|
|
520
|
+
state: {
|
|
521
|
+
id: string;
|
|
522
|
+
disabled: boolean;
|
|
523
|
+
};
|
|
524
|
+
events: {};
|
|
525
|
+
}>;
|
|
526
|
+
//# sourceMappingURL=PillAvatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PillAvatar.d.ts","sourceRoot":"","sources":["../../../../pill/lib/PillAvatar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAS,WAAW,EAAgB,MAAM,0CAA0C,CAAC;AAM5F,MAAM,WAAW,eAAgB,SAAQ,WAAW;CAAG;AAEvD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAS5B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;EAcrB,CAAC"}
|