@workday/canvas-kit-docs 14.1.0-1294-next.0 → 14.1.0-1296-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/ExampleCodeBlock.d.ts.map +1 -1
- package/dist/es6/lib/ExampleCodeBlock.js +4 -1
- package/dist/es6/lib/docs.js +49 -1
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.js +5 -5
- package/dist/es6/lib/stackblitzFiles/packageJSONFile.ts +5 -5
- package/lib/ExampleCodeBlock.tsx +4 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleCodeBlock.d.ts","sourceRoot":"","sources":["../../../lib/ExampleCodeBlock.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleCodeBlock.d.ts","sourceRoot":"","sources":["../../../lib/ExampleCodeBlock.tsx"],"names":[],"mappings":"AAsEA,eAAO,MAAM,gBAAgB,aAAY,GAAG,4CAkH3C,CAAC"}
|
|
@@ -27,6 +27,9 @@ const cardStencil = createStencil({
|
|
|
27
27
|
position: 'relative',
|
|
28
28
|
overflow: 'auto', // This allows for the entire ExampleCodeBlock to scroll on smaller viewports
|
|
29
29
|
},
|
|
30
|
+
'[data-part="example-block-container"]': {
|
|
31
|
+
overflow: 'auto',
|
|
32
|
+
},
|
|
30
33
|
'[data-part="code-block"]': {
|
|
31
34
|
display: 'none',
|
|
32
35
|
boxShadow: system.depth[1],
|
|
@@ -111,7 +114,7 @@ export const ExampleCodeBlock = ({ code }) => {
|
|
|
111
114
|
openFile: 'src/Demo.tsx',
|
|
112
115
|
});
|
|
113
116
|
};
|
|
114
|
-
return (_jsxs("div", { ...cardStencil({ opened: isCodeDisplayed }), children: [_jsx(Card, { "data-part": "example-block", className: "sb-unstyled", children: _jsx(Card.Body, {
|
|
117
|
+
return (_jsxs("div", { ...cardStencil({ opened: isCodeDisplayed }), children: [_jsx(Card, { "data-part": "example-block", className: "sb-unstyled", children: _jsx(Card.Body, { "data-part": "example-block-container", children: _jsxs(CanvasProvider, { className: defaultBranding, children: [React.createElement(code), code && (_jsxs("div", { "data-part": "code-toggle-stackblitz-btn-container", children: [_jsx(TertiaryButton, { size: "extraSmall", onClick: () => openProjectInStackblitz(), children: "\u26A1\uFE0F Edit in Stackblitz" }), _jsx(TertiaryButton, { size: "extraSmall", onClick: () => setCodeDisplayed(!isCodeDisplayed), children: !isCodeDisplayed ? 'Show Code' : 'Hide Code' })] }))] }) }) }), _jsx(Card, { "data-part": "code-block", padding: 0, children: _jsx(Card.Body, { cs: { position: 'relative' }, children: _jsxs(CanvasProvider, { className: defaultBranding, children: [code && (_jsx("div", { ref: textInput, children: _jsx(SyntaxHighlighter, { className: "sb-unstyled", language: "jsx", style: vscDarkPlus, customStyle: {
|
|
115
118
|
fontSize: cssVar(system.fontSize.subtext.large),
|
|
116
119
|
lineHeight: cssVar(system.lineHeight.subtext.large),
|
|
117
120
|
margin: '0',
|
package/dist/es6/lib/docs.js
CHANGED
|
@@ -5336,7 +5336,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
5336
5336
|
},
|
|
5337
5337
|
"defaultValue": {
|
|
5338
5338
|
"kind": "string",
|
|
5339
|
-
"value": "
|
|
5339
|
+
"value": "contain"
|
|
5340
5340
|
}
|
|
5341
5341
|
},
|
|
5342
5342
|
{
|
|
@@ -272670,6 +272670,54 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
272670
272670
|
"returnType": {
|
|
272671
272671
|
"kind": "object",
|
|
272672
272672
|
"properties": [
|
|
272673
|
+
{
|
|
272674
|
+
"kind": "property",
|
|
272675
|
+
"name": "id",
|
|
272676
|
+
"required": true,
|
|
272677
|
+
"type": {
|
|
272678
|
+
"kind": "primitive",
|
|
272679
|
+
"value": "string"
|
|
272680
|
+
},
|
|
272681
|
+
"description": "",
|
|
272682
|
+
"tags": {},
|
|
272683
|
+
"declarations": []
|
|
272684
|
+
},
|
|
272685
|
+
{
|
|
272686
|
+
"kind": "property",
|
|
272687
|
+
"name": "role",
|
|
272688
|
+
"required": true,
|
|
272689
|
+
"type": {
|
|
272690
|
+
"kind": "string",
|
|
272691
|
+
"value": "menuitem"
|
|
272692
|
+
},
|
|
272693
|
+
"description": "",
|
|
272694
|
+
"tags": {},
|
|
272695
|
+
"declarations": []
|
|
272696
|
+
},
|
|
272697
|
+
{
|
|
272698
|
+
"kind": "property",
|
|
272699
|
+
"name": "aria-haspopup",
|
|
272700
|
+
"required": true,
|
|
272701
|
+
"type": {
|
|
272702
|
+
"kind": "string",
|
|
272703
|
+
"value": "true"
|
|
272704
|
+
},
|
|
272705
|
+
"description": "",
|
|
272706
|
+
"tags": {},
|
|
272707
|
+
"declarations": []
|
|
272708
|
+
},
|
|
272709
|
+
{
|
|
272710
|
+
"kind": "property",
|
|
272711
|
+
"name": "aria-expanded",
|
|
272712
|
+
"required": true,
|
|
272713
|
+
"type": {
|
|
272714
|
+
"kind": "primitive",
|
|
272715
|
+
"value": "boolean"
|
|
272716
|
+
},
|
|
272717
|
+
"description": "",
|
|
272718
|
+
"tags": {},
|
|
272719
|
+
"declarations": []
|
|
272720
|
+
},
|
|
272673
272721
|
{
|
|
272674
272722
|
"kind": "property",
|
|
272675
272723
|
"name": "onMouseDown",
|
|
@@ -18,11 +18,11 @@ export const packageJSONFile = `{
|
|
|
18
18
|
"@emotion/react": "11.11.4",
|
|
19
19
|
"@types/react": "18.2.60",
|
|
20
20
|
"@types/react-dom": "18.2.19",
|
|
21
|
-
"@workday/canvas-kit-labs-react": "14.0.
|
|
22
|
-
"@workday/canvas-kit-preview-react": "14.0.
|
|
23
|
-
"@workday/canvas-kit-react": "14.0.
|
|
24
|
-
"@workday/canvas-kit-react-fonts": "^14.0.
|
|
25
|
-
"@workday/canvas-kit-styling": "14.0.
|
|
21
|
+
"@workday/canvas-kit-labs-react": "14.0.15",
|
|
22
|
+
"@workday/canvas-kit-preview-react": "14.0.15",
|
|
23
|
+
"@workday/canvas-kit-react": "14.0.15",
|
|
24
|
+
"@workday/canvas-kit-react-fonts": "^14.0.15",
|
|
25
|
+
"@workday/canvas-kit-styling": "14.0.15",
|
|
26
26
|
"@workday/canvas-system-icons-web": "3.0.36",
|
|
27
27
|
"@workday/canvas-tokens-web": "3.1.2"
|
|
28
28
|
},
|
|
@@ -18,11 +18,11 @@ export const packageJSONFile = `{
|
|
|
18
18
|
"@emotion/react": "11.11.4",
|
|
19
19
|
"@types/react": "18.2.60",
|
|
20
20
|
"@types/react-dom": "18.2.19",
|
|
21
|
-
"@workday/canvas-kit-labs-react": "14.0.
|
|
22
|
-
"@workday/canvas-kit-preview-react": "14.0.
|
|
23
|
-
"@workday/canvas-kit-react": "14.0.
|
|
24
|
-
"@workday/canvas-kit-react-fonts": "^14.0.
|
|
25
|
-
"@workday/canvas-kit-styling": "14.0.
|
|
21
|
+
"@workday/canvas-kit-labs-react": "14.0.15",
|
|
22
|
+
"@workday/canvas-kit-preview-react": "14.0.15",
|
|
23
|
+
"@workday/canvas-kit-react": "14.0.15",
|
|
24
|
+
"@workday/canvas-kit-react-fonts": "^14.0.15",
|
|
25
|
+
"@workday/canvas-kit-styling": "14.0.15",
|
|
26
26
|
"@workday/canvas-system-icons-web": "3.0.36",
|
|
27
27
|
"@workday/canvas-tokens-web": "3.1.2"
|
|
28
28
|
},
|
package/lib/ExampleCodeBlock.tsx
CHANGED
|
@@ -28,6 +28,9 @@ const cardStencil = createStencil({
|
|
|
28
28
|
position: 'relative',
|
|
29
29
|
overflow: 'auto', // This allows for the entire ExampleCodeBlock to scroll on smaller viewports
|
|
30
30
|
},
|
|
31
|
+
'[data-part="example-block-container"]': {
|
|
32
|
+
overflow: 'auto',
|
|
33
|
+
},
|
|
31
34
|
'[data-part="code-block"]': {
|
|
32
35
|
display: 'none',
|
|
33
36
|
boxShadow: system.depth[1],
|
|
@@ -125,7 +128,7 @@ export const ExampleCodeBlock = ({code}: any) => {
|
|
|
125
128
|
<div {...cardStencil({opened: isCodeDisplayed})}>
|
|
126
129
|
<Card data-part="example-block" className="sb-unstyled">
|
|
127
130
|
{/* This allows for the div to scroll on smaller viewports while not allowing the components to overflow over the container */}
|
|
128
|
-
<Card.Body
|
|
131
|
+
<Card.Body data-part="example-block-container">
|
|
129
132
|
<CanvasProvider className={defaultBranding}>
|
|
130
133
|
{React.createElement(code)}
|
|
131
134
|
{code && (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "14.1.0-
|
|
3
|
+
"version": "14.1.0-1296-next.0",
|
|
4
4
|
"description": "Documentation components of Canvas Kit components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"@emotion/styled": "^11.6.0",
|
|
46
46
|
"@stackblitz/sdk": "^1.11.0",
|
|
47
47
|
"@storybook/csf": "0.0.1",
|
|
48
|
-
"@workday/canvas-kit-labs-react": "^14.1.0-
|
|
49
|
-
"@workday/canvas-kit-preview-react": "^14.1.0-
|
|
50
|
-
"@workday/canvas-kit-react": "^14.1.0-
|
|
51
|
-
"@workday/canvas-kit-styling": "^14.1.0-
|
|
48
|
+
"@workday/canvas-kit-labs-react": "^14.1.0-1296-next.0",
|
|
49
|
+
"@workday/canvas-kit-preview-react": "^14.1.0-1296-next.0",
|
|
50
|
+
"@workday/canvas-kit-react": "^14.1.0-1296-next.0",
|
|
51
|
+
"@workday/canvas-kit-styling": "^14.1.0-1296-next.0",
|
|
52
52
|
"@workday/canvas-system-icons-web": "^3.0.36",
|
|
53
53
|
"@workday/canvas-tokens-web": "^3.1.1",
|
|
54
54
|
"markdown-to-jsx": "^7.2.0",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"mkdirp": "^1.0.3",
|
|
62
62
|
"typescript": "5.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "43e68a38c25a3174bfa0603e38dce91006638d0a"
|
|
65
65
|
}
|