@workday/canvas-kit-docs 14.0.0-alpha.1165-next.0 → 14.0.0-alpha.1168-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/index.d.ts +1 -1
- package/dist/es6/index.d.ts.map +1 -1
- package/dist/es6/index.js +1 -1
- package/dist/es6/lib/StorybookStatusIndicator.d.ts +4 -0
- package/dist/es6/lib/StorybookStatusIndicator.d.ts.map +1 -0
- package/dist/es6/lib/StorybookStatusIndicator.js +39 -0
- package/dist/es6/lib/docs.js +607 -5
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.js +5 -5
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.ts +5 -5
- package/dist/mdx/preview-react/select/Select.mdx +20 -2
- package/dist/mdx/preview-react/text-area/TextArea.mdx +18 -9
- package/dist/mdx/preview-react/text-input/TextInput.mdx +19 -10
- package/dist/mdx/react/status-indicator/StatusIndicator.mdx +13 -12
- package/dist/mdx/react/text/LabelText.mdx +14 -11
- package/dist/mdx/react/tokens/Tokens.mdx +4 -3
- package/dist/mdx/styling/mdx/Overview.mdx +202 -55
- package/dist/mdx/tokens/TokenMigrationOverview.mdx +3 -4
- package/index.ts +1 -1
- package/lib/StorybookStatusIndicator.tsx +49 -0
- package/package.json +6 -6
- package/dist/es6/lib/AIIndicator.d.ts +0 -2
- package/dist/es6/lib/AIIndicator.d.ts.map +0 -1
- package/dist/es6/lib/AIIndicator.js +0 -12
- package/lib/AIIndicator.tsx +0 -22
package/dist/es6/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { StorybookStatusIndicator } from './lib/StorybookStatusIndicator';
|
|
2
2
|
export { DownloadLLMFile } from './lib/DownloadLLMFile';
|
|
3
3
|
export { ExampleCodeBlock } from './lib/ExampleCodeBlock';
|
|
4
4
|
export * from './lib/specs';
|
package/dist/es6/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAC,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAC,eAAe,EAAC,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AACxD,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC"}
|
package/dist/es6/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { StorybookStatusIndicator } from './lib/StorybookStatusIndicator';
|
|
2
2
|
export { DownloadLLMFile } from './lib/DownloadLLMFile';
|
|
3
3
|
export { ExampleCodeBlock } from './lib/ExampleCodeBlock';
|
|
4
4
|
export * from './lib/specs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorybookStatusIndicator.d.ts","sourceRoot":"","sources":["../../../lib/StorybookStatusIndicator.tsx"],"names":[],"mappings":"AAqCA,eAAO,MAAM,wBAAwB;UAAmB,IAAI,GAAG,YAAY;6CAW1E,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { StatusIndicator } from '@workday/canvas-kit-preview-react/status-indicator';
|
|
3
|
+
import { system } from '@workday/canvas-tokens-web';
|
|
4
|
+
import { sparkleSingleSmallIcon } from '@workday/canvas-system-icons-web';
|
|
5
|
+
import { createStencil } from '@workday/canvas-kit-styling';
|
|
6
|
+
import { systemIconStencil } from '@workday/canvas-kit-react/icon';
|
|
7
|
+
const storybookStatusIndicatorStencil = createStencil({
|
|
8
|
+
base: {
|
|
9
|
+
borderRadius: system.shape.round,
|
|
10
|
+
padding: `${system.space.zero} ${system.space.x2}`,
|
|
11
|
+
[systemIconStencil.vars.color]: 'currentColor',
|
|
12
|
+
},
|
|
13
|
+
modifiers: {
|
|
14
|
+
type: {
|
|
15
|
+
ai: {
|
|
16
|
+
background: system.color.bg.ai.default,
|
|
17
|
+
color: system.color.fg.ai,
|
|
18
|
+
},
|
|
19
|
+
deprecated: {
|
|
20
|
+
background: system.color.static.amber.soft,
|
|
21
|
+
color: system.color.static.amber.stronger,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
const content = {
|
|
27
|
+
ai: {
|
|
28
|
+
icon: sparkleSingleSmallIcon,
|
|
29
|
+
label: 'AI Content',
|
|
30
|
+
},
|
|
31
|
+
deprecated: {
|
|
32
|
+
icon: undefined,
|
|
33
|
+
label: 'Deprecated',
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
export const StorybookStatusIndicator = ({ type }) => {
|
|
37
|
+
const { icon, label } = content[type];
|
|
38
|
+
return (_jsxs(StatusIndicator, { className: "sb-unstyled cnvs-title-status-indicator", cs: storybookStatusIndicatorStencil({ type }), children: [icon && _jsx(StatusIndicator.Icon, { icon: icon }), _jsx(StatusIndicator.Label, { children: label })] }));
|
|
39
|
+
};
|