@workday/canvas-kit-docs 13.0.0-alpha.1051-next.0 → 13.0.0-alpha.1061-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.
Files changed (27) hide show
  1. package/dist/es6/lib/ExampleCodeBlock.d.ts.map +1 -1
  2. package/dist/es6/lib/ExampleCodeBlock.js +3 -1
  3. package/dist/es6/lib/docs.js +20393 -11950
  4. package/dist/es6/lib/stackblitzFiles/.eslintrc.cjs.txt +15 -0
  5. package/dist/es6/lib/stackblitzFiles/App.tsx +34 -0
  6. package/dist/es6/lib/stackblitzFiles/Demo.tsx +3 -0
  7. package/dist/es6/lib/stackblitzFiles/index.html +13 -0
  8. package/dist/es6/lib/stackblitzFiles/main.tsx +28 -0
  9. package/dist/es6/lib/stackblitzFiles/packageJSONFile.js +6 -6
  10. package/dist/es6/lib/stackblitzFiles/packageJSONFile.ts +42 -0
  11. package/dist/es6/lib/stackblitzFiles/tsconfig.json +26 -0
  12. package/dist/es6/lib/stackblitzFiles/tsconfig.node.json +12 -0
  13. package/dist/es6/lib/stackblitzFiles/vite-env.d.ts +1 -0
  14. package/dist/es6/lib/stackblitzFiles/vite.config.ts +10 -0
  15. package/dist/mdx/12.0-UPGRADE-GUIDE.mdx +1 -1
  16. package/dist/mdx/13.0-UPGRADE-GUIDE.mdx +21 -2
  17. package/dist/mdx/TESTING.mdx +34 -0
  18. package/dist/mdx/preview-react/pill/Pill.mdx +18 -9
  19. package/dist/mdx/preview-react/pill/examples/Basic.tsx +14 -8
  20. package/dist/mdx/preview-react/pill/examples/CustomStyles.tsx +47 -0
  21. package/dist/mdx/preview-react/pill/examples/WithAvatar.tsx +15 -9
  22. package/dist/mdx/preview-react/pill/examples/WithCount.tsx +12 -6
  23. package/dist/mdx/preview-react/pill/examples/WithList.tsx +15 -5
  24. package/dist/mdx/preview-react/pill/examples/WithReadOnly.tsx +8 -3
  25. package/dist/mdx/preview-react/pill/examples/WithRemovable.tsx +22 -10
  26. package/lib/ExampleCodeBlock.tsx +3 -1
  27. package/package.json +7 -6
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleCodeBlock.d.ts","sourceRoot":"","sources":["../../../lib/ExampleCodeBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiE1B,eAAO,MAAM,gBAAgB,aAAY,GAAG,sBAwG3C,CAAC"}
1
+ {"version":3,"file":"ExampleCodeBlock.d.ts","sourceRoot":"","sources":["../../../lib/ExampleCodeBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiE1B,eAAO,MAAM,gBAAgB,aAAY,GAAG,sBA0G3C,CAAC"}
@@ -80,7 +80,9 @@ export const ExampleCodeBlock = ({ code }) => {
80
80
  * `code` returns our examples. We need to rewrite them so that they export `Demo`.
81
81
  */
82
82
  const handleExampleRewrite = (code) => {
83
- return code.replace(/\bexport\s+const\s+(\w+)\s*=/, `export const Demo =`);
83
+ return code
84
+ .replace(/\bexport\s+const\s+(\w+)\s*=/, `export const Demo =`)
85
+ .replace(/export default/, 'export const Demo =');
84
86
  };
85
87
  const openProjectInStackblitz = () => {
86
88
  sdk.openProject({