sage-nexus-ui 1.0.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/.storybook/main.ts +22 -0
- package/.storybook/preview.ts +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.mjs +140 -0
- package/dist/index.mjs.map +1 -0
- package/dist/src/components/ActionBar.d.ts +8 -0
- package/dist/src/components/NexusHome.d.ts +1 -0
- package/dist/src/components/TextHighlightAi.d.ts +7 -0
- package/dist/src/components/ThemeToggle.d.ts +1 -0
- package/dist/src/components/index.d.ts +4 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/stories/Button.d.ts +15 -0
- package/dist/src/stories/Button.stories.d.ts +23 -0
- package/dist/src/stories/EmTestComponent.stories.d.ts +6 -0
- package/dist/src/stories/Header.d.ts +12 -0
- package/dist/src/stories/Header.stories.d.ts +18 -0
- package/dist/src/stories/Page.d.ts +3 -0
- package/dist/src/stories/Page.stories.d.ts +12 -0
- package/dist/src/theme/MuiAppThemeProvider.d.ts +7 -0
- package/dist/src/theme/ThemeContext.d.ts +9 -0
- package/dist/src/theme/sageTheme.d.ts +49 -0
- package/dist/src/theme/sxHelpers.d.ts +13 -0
- package/package.json +57 -0
- package/rollup-plugins.d.ts +5 -0
- package/rollup.config.ts +39 -0
- package/src/assets/fonts/SageHeadline-Black.otf +0 -0
- package/src/assets/fonts/SageText-Bold.otf +0 -0
- package/src/assets/fonts/SageText-BoldItalic.otf +0 -0
- package/src/assets/fonts/SageText-Light.otf +0 -0
- package/src/assets/fonts/SageText-LightItalic.otf +0 -0
- package/src/assets/fonts/SageText-Medium.otf +0 -0
- package/src/assets/fonts/SageText-MediumItalic.otf +0 -0
- package/src/assets/fonts/SageText-Regular.otf +0 -0
- package/src/assets/fonts/SageText-RegularItalic.otf +0 -0
- package/src/assets/fonts/SageUI-Bold.otf +0 -0
- package/src/assets/fonts/SageUI-Medium.otf +0 -0
- package/src/assets/fonts/SageUI-Regular.otf +0 -0
- package/src/assets/images/Logo.svg +3 -0
- package/src/assets/images/S-sage-logo-nobg.svg +3 -0
- package/src/assets/images/S-sage-logo.svg +4 -0
- package/src/assets/images/nexus-logo-icon.svg +31 -0
- package/src/components/ActionBar.tsx +105 -0
- package/src/components/NexusHome.tsx +36 -0
- package/src/components/TextHighlightAi.tsx +34 -0
- package/src/components/ThemeToggle.tsx +22 -0
- package/src/components/index.ts +11 -0
- package/src/index.ts +1 -0
- package/src/stories/Button.stories.ts +54 -0
- package/src/stories/Button.tsx +37 -0
- package/src/stories/Configure.mdx +388 -0
- package/src/stories/EmTestComponent.stories.ts +14 -0
- package/src/stories/Header.stories.ts +34 -0
- package/src/stories/Header.tsx +56 -0
- package/src/stories/Page.stories.ts +33 -0
- package/src/stories/Page.tsx +91 -0
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/accessibility.svg +1 -0
- package/src/stories/assets/addon-library.png +0 -0
- package/src/stories/assets/assets.png +0 -0
- package/src/stories/assets/avif-test-image.avif +0 -0
- package/src/stories/assets/context.png +0 -0
- package/src/stories/assets/discord.svg +1 -0
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/github.svg +1 -0
- package/src/stories/assets/share.png +0 -0
- package/src/stories/assets/styling.png +0 -0
- package/src/stories/assets/testing.png +0 -0
- package/src/stories/assets/theming.png +0 -0
- package/src/stories/assets/tutorials.svg +1 -0
- package/src/stories/assets/youtube.svg +1 -0
- package/src/stories/button.css +30 -0
- package/src/stories/header.css +32 -0
- package/src/stories/page.css +68 -0
- package/src/theme/MuiAppThemeProvider.tsx +21 -0
- package/src/theme/ThemeContext.tsx +27 -0
- package/src/theme/sageTheme.ts +565 -0
- package/src/theme/sxHelpers.ts +14 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.json +27 -0
- package/vite.config.ts +12 -0
- package/vitest.config.ts +36 -0
- package/vitest.shims.d.ts +1 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { StorybookConfig } from "@storybook/react-vite";
|
|
2
|
+
|
|
3
|
+
const config: StorybookConfig = {
|
|
4
|
+
// "stories": [
|
|
5
|
+
// "../src/**/*.mdx",
|
|
6
|
+
// "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
|
|
7
|
+
// ],
|
|
8
|
+
stories: ["../src/components/**/*.stories.@(ts|tsx)"],
|
|
9
|
+
addons: [
|
|
10
|
+
"@chromatic-com/storybook",
|
|
11
|
+
"@storybook/addon-vitest",
|
|
12
|
+
"@storybook/addon-a11y",
|
|
13
|
+
"@storybook/addon-docs",
|
|
14
|
+
"@storybook/addon-onboarding",
|
|
15
|
+
"@chromatic-com/storybook",
|
|
16
|
+
],
|
|
17
|
+
framework: {
|
|
18
|
+
name: "@storybook/react-vite",
|
|
19
|
+
options: {},
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
export default config;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Preview } from "@storybook/react-vite";
|
|
2
|
+
|
|
3
|
+
const preview: Preview = {
|
|
4
|
+
parameters: {
|
|
5
|
+
controls: {
|
|
6
|
+
matchers: {
|
|
7
|
+
color: /(background|color)$/i,
|
|
8
|
+
date: /Date$/i,
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
a11y: {
|
|
13
|
+
// 'todo' - show a11y violations in the test UI only
|
|
14
|
+
// 'error' - fail CI on a11y violations
|
|
15
|
+
// 'off' - skip a11y checks entirely
|
|
16
|
+
test: "todo",
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default preview;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode, ReactElement } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ActionBarProps {
|
|
4
|
+
title?: ReactNode;
|
|
5
|
+
extraLeft?: ReactNode;
|
|
6
|
+
extraRight?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const ActionBar: ({ title, extraLeft, extraRight, }: ActionBarProps) => ReactElement;
|
|
9
|
+
|
|
10
|
+
declare const NexusHome: React.FC;
|
|
11
|
+
|
|
12
|
+
interface TextHighlightAiProps extends React.HTMLAttributes<HTMLElement> {
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
component?: React.ElementType;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
}
|
|
17
|
+
declare const TextHighlightAi: React.FC<TextHighlightAiProps>;
|
|
18
|
+
|
|
19
|
+
declare const ThemeToggle: React.FC;
|
|
20
|
+
|
|
21
|
+
export { ActionBar, NexusHome, TextHighlightAi, ThemeToggle };
|