@xyd-js/atlas 0.1.0-build.173

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 (68) hide show
  1. package/.babelrc +6 -0
  2. package/.storybook/index.css +6 -0
  3. package/.storybook/main.ts +19 -0
  4. package/.storybook/preview.ts +17 -0
  5. package/.storybook/public/fonts/fustat-ext-500.woff2 +0 -0
  6. package/.storybook/public/fonts/fustat-ext-600.woff2 +0 -0
  7. package/.storybook/public/fonts/fustat-ext-700.woff2 +0 -0
  8. package/.storybook/public/fonts/fustat-regular.woff2 +0 -0
  9. package/CHANGELOG.md +1984 -0
  10. package/LICENSE +21 -0
  11. package/README.md +3 -0
  12. package/declarations.d.ts +4 -0
  13. package/dist/VideoGuide-C0K9fFar-Dk2lkn4r.js +4 -0
  14. package/dist/VideoGuide-C0K9fFar-Dk2lkn4r.js.map +1 -0
  15. package/dist/VideoGuide-CJYkuLst-Dk2lkn4r.js +4 -0
  16. package/dist/VideoGuide-CJYkuLst-Dk2lkn4r.js.map +1 -0
  17. package/dist/index.css +48 -0
  18. package/dist/index.d.ts +38 -0
  19. package/dist/index.js +2 -0
  20. package/dist/index.js.map +1 -0
  21. package/dist/styles.css +104 -0
  22. package/dist/tokens.css +60 -0
  23. package/dist/xydPlugin.d.ts +5 -0
  24. package/dist/xydPlugin.js +2 -0
  25. package/dist/xydPlugin.js.map +1 -0
  26. package/index.ts +2 -0
  27. package/package.json +68 -0
  28. package/packages/xyd-plugin/SidebarItem.tsx +27 -0
  29. package/packages/xyd-plugin/index.ts +20 -0
  30. package/postcss.config.cjs +5 -0
  31. package/rollup.config.js +120 -0
  32. package/src/components/ApiRef/ApiRefItem/ApiRefItem.styles.tsx +110 -0
  33. package/src/components/ApiRef/ApiRefItem/ApiRefItem.tsx +557 -0
  34. package/src/components/ApiRef/ApiRefItem/index.ts +7 -0
  35. package/src/components/ApiRef/ApiRefProperties/ApiRefProperties.styles.tsx +202 -0
  36. package/src/components/ApiRef/ApiRefProperties/ApiRefProperties.tsx +665 -0
  37. package/src/components/ApiRef/ApiRefProperties/index.ts +7 -0
  38. package/src/components/ApiRef/ApiRefSamples/ApiRefSamples.styles.tsx +28 -0
  39. package/src/components/ApiRef/ApiRefSamples/ApiRefSamples.tsx +69 -0
  40. package/src/components/ApiRef/ApiRefSamples/index.ts +7 -0
  41. package/src/components/ApiRef/index.ts +5 -0
  42. package/src/components/Atlas/Atlas.styles.tsx +5 -0
  43. package/src/components/Atlas/Atlas.tsx +43 -0
  44. package/src/components/Atlas/AtlasContext.tsx +47 -0
  45. package/src/components/Atlas/AtlasDecorator.styles.ts +22 -0
  46. package/src/components/Atlas/AtlasDecorator.tsx +15 -0
  47. package/src/components/Atlas/AtlasLazy/AtlasLazy.styles.tsx +9 -0
  48. package/src/components/Atlas/AtlasLazy/AtlasLazy.tsx +42 -0
  49. package/src/components/Atlas/AtlasLazy/hooks.ts +29 -0
  50. package/src/components/Atlas/AtlasLazy/index.ts +7 -0
  51. package/src/components/Atlas/AtlasPrimary.tsx +21 -0
  52. package/src/components/Atlas/AtlasSecondary.tsx +148 -0
  53. package/src/components/Atlas/index.ts +7 -0
  54. package/src/components/Atlas/types.ts +11 -0
  55. package/src/components/Code/CodeSampleButtons/CodeSampleButtons.styles.tsx +58 -0
  56. package/src/components/Code/CodeSampleButtons/CodeSampleButtons.tsx +97 -0
  57. package/src/components/Code/CodeSampleButtons/index.ts +7 -0
  58. package/src/components/Code/index.ts +2 -0
  59. package/src/components/Icon/index.tsx +386 -0
  60. package/src/docs/AtlasExample/AtlasExample.stories.tsx +47 -0
  61. package/src/docs/AtlasExample/todo-app.uniform.json +625 -0
  62. package/src/docs/AtlasExample/uniform-to-references.ts +101 -0
  63. package/src/styles/styles.css +104 -0
  64. package/src/styles/tokens.css +60 -0
  65. package/src/utils/mdx.ts +2 -0
  66. package/tsconfig.json +51 -0
  67. package/types.d.ts +22 -0
  68. package/vite.config.ts +25 -0
package/.babelrc ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "presets": [
3
+ "@babel/preset-env",
4
+ "@babel/preset-react"
5
+ ]
6
+ }
@@ -0,0 +1,6 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Fustat:wght@400;500;600;700&display=swap');
2
+
3
+ /* Example usage */
4
+ body {
5
+ font-family: 'Fustat', sans-serif;
6
+ }
@@ -0,0 +1,19 @@
1
+ import type { StorybookConfig } from '@storybook/react-vite';
2
+
3
+ const config: StorybookConfig = {
4
+ stories: ['../src/**/*.stories.tsx'],
5
+ addons: ['@storybook/addon-essentials', '@chromatic-com/storybook'],
6
+ framework: {
7
+ name: '@storybook/react-vite',
8
+ options: {},
9
+ },
10
+ typescript: {
11
+ reactDocgen: 'react-docgen-typescript',
12
+ },
13
+ core: {
14
+ disableTelemetry: true, // 👈 Disables telemetry
15
+ },
16
+ };
17
+
18
+ // eslint-disable-next-line import/no-default-export
19
+ export default config;
@@ -0,0 +1,17 @@
1
+ // TODO: import base theme / some theme css
2
+ import './index.css'
3
+ import '../dist/index.css'
4
+
5
+ /** @type { import('@storybook/react').Preview } */
6
+ const preview = {
7
+ parameters: {
8
+ controls: {
9
+ matchers: {
10
+ color: /(background|color)$/i,
11
+ date: /Date$/i,
12
+ },
13
+ },
14
+ },
15
+ };
16
+
17
+ export default preview;