@workday/canvas-kit-docs 15.0.0-alpha.0075-next.0 → 15.0.0-alpha.0077-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/es6/lib/StorybookStatusIndicator.d.ts +2 -2
- package/dist/es6/lib/StorybookStatusIndicator.d.ts.map +1 -1
- package/dist/es6/lib/StorybookStatusIndicator.js +6 -1
- package/dist/es6/lib/docs.js +10908 -14026
- package/dist/es6/mdx/accessibility/examples/GlobalHeader.js +1 -1
- package/dist/mdx/15.0-UPGRADE-GUIDE.mdx +250 -0
- package/dist/mdx/preview-react/divider/examples/Basic.tsx +1 -1
- package/dist/mdx/{preview-react → react}/avatar/Avatar.mdx +5 -7
- package/dist/mdx/react/avatar/examples/Basic.tsx +5 -0
- package/dist/mdx/{preview-react → react}/avatar/examples/Custom.tsx +1 -1
- package/dist/mdx/{preview-react → react}/avatar/examples/Decorative.tsx +1 -1
- package/dist/mdx/{preview-react → react}/avatar/examples/Image.tsx +1 -1
- package/dist/mdx/{preview-react → react}/avatar/examples/Size.tsx +1 -1
- package/dist/mdx/{preview-react → react}/avatar/examples/Variant.tsx +1 -1
- package/dist/mdx/react/select/Select.mdx +8 -1
- package/dist/mdx/react/select/examples/GroupedItems.tsx +59 -0
- package/lib/StorybookStatusIndicator.tsx +10 -1
- package/package.json +6 -6
- package/dist/mdx/preview-react/avatar/examples/Basic.tsx +0 -5
- package/dist/mdx/preview-react/select/Select.mdx +0 -107
- package/dist/mdx/preview-react/select/examples/Left Label/AlertLeft.tsx +0 -18
- package/dist/mdx/preview-react/select/examples/Left Label/DefaultLeft.tsx +0 -17
- package/dist/mdx/preview-react/select/examples/Left Label/DefaultWithCustomOptionsLeft.tsx +0 -25
- package/dist/mdx/preview-react/select/examples/Left Label/DefaultWithSimpleOptionsLeft.tsx +0 -17
- package/dist/mdx/preview-react/select/examples/Left Label/DisabledLeft.tsx +0 -19
- package/dist/mdx/preview-react/select/examples/Left Label/ErrorLeft.tsx +0 -18
- package/dist/mdx/preview-react/select/examples/Left Label/GrowLeft.tsx +0 -17
- package/dist/mdx/preview-react/select/examples/Left Label/ScrollableLeft.tsx +0 -17
- package/dist/mdx/preview-react/select/examples/Left Label/index.ts +0 -8
- package/dist/mdx/preview-react/select/examples/Top Label/Caution.tsx +0 -16
- package/dist/mdx/preview-react/select/examples/Top Label/Default.tsx +0 -15
- package/dist/mdx/preview-react/select/examples/Top Label/DefaultWithCustomOptions.tsx +0 -23
- package/dist/mdx/preview-react/select/examples/Top Label/DefaultWithSimpleOptions.tsx +0 -15
- package/dist/mdx/preview-react/select/examples/Top Label/Disabled.tsx +0 -17
- package/dist/mdx/preview-react/select/examples/Top Label/Error.tsx +0 -16
- package/dist/mdx/preview-react/select/examples/Top Label/Grow.tsx +0 -15
- package/dist/mdx/preview-react/select/examples/Top Label/Scrollable.tsx +0 -13
- package/dist/mdx/preview-react/select/examples/Top Label/index.ts +0 -8
- package/dist/mdx/preview-react/select/examples/storiesData.tsx +0 -92
- package/dist/mdx/react/avatar/avatar/Avatar.mdx +0 -109
- package/dist/mdx/react/avatar/avatar/examples/Basic.tsx +0 -17
- package/dist/mdx/react/avatar/avatar/examples/Button.tsx +0 -20
- package/dist/mdx/react/avatar/avatar/examples/CustomStyles.tsx +0 -34
- package/dist/mdx/react/avatar/avatar/examples/Image.tsx +0 -25
- package/dist/mdx/react/avatar/avatar/examples/LazyLoad.tsx +0 -20
- package/dist/mdx/react/avatar/avatar/examples/ObjectFit.tsx +0 -30
- package/dist/mdx/react/avatar/avatar/examples/Size.tsx +0 -27
- package/dist/mdx/react/avatar/avatar/examples/Variant.tsx +0 -10
- package/dist/mdx/react/avatar/avatar/examples/test-avatar.png +0 -0
- /package/dist/mdx/{preview-react → react}/avatar/examples/nicholas-avatar.jpg +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const StorybookStatusIndicator: ({ type }: {
|
|
2
|
-
type: 'ai' | 'deprecated' | 'new';
|
|
1
|
+
export declare const StorybookStatusIndicator: ({ type, }: {
|
|
2
|
+
type: 'ai' | 'deprecated' | 'new' | 'promoted';
|
|
3
3
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=StorybookStatusIndicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorybookStatusIndicator.d.ts","sourceRoot":"","sources":["../../../lib/StorybookStatusIndicator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StorybookStatusIndicator.d.ts","sourceRoot":"","sources":["../../../lib/StorybookStatusIndicator.tsx"],"names":[],"mappings":"AAoCA,eAAO,MAAM,wBAAwB;UAG7B,IAAI,GAAG,YAAY,GAAG,KAAK,GAAG,UAAU;6CAqB/C,CAAC"}
|
|
@@ -24,13 +24,18 @@ const content = {
|
|
|
24
24
|
icon: undefined,
|
|
25
25
|
label: 'New',
|
|
26
26
|
},
|
|
27
|
+
promoted: {
|
|
28
|
+
icon: undefined,
|
|
29
|
+
label: 'Promoted',
|
|
30
|
+
},
|
|
27
31
|
};
|
|
28
|
-
export const StorybookStatusIndicator = ({ type }) => {
|
|
32
|
+
export const StorybookStatusIndicator = ({ type, }) => {
|
|
29
33
|
const { icon, label } = content[type];
|
|
30
34
|
const variantMapping = {
|
|
31
35
|
ai: 'ai',
|
|
32
36
|
deprecated: 'caution',
|
|
33
37
|
new: 'positive',
|
|
38
|
+
promoted: 'info',
|
|
34
39
|
};
|
|
35
40
|
console.log(variantMapping[type]);
|
|
36
41
|
return (_jsxs(StatusIndicator, { className: "sb-unstyled cnvs-title-status-indicator", cs: storybookStatusIndicatorStencil({ type }), variant: variantMapping[type], emphasis: "low", children: [icon && _jsx(StatusIndicator.Icon, { icon: icon }), _jsx(StatusIndicator.Label, { children: label })] }));
|