sage-nexus-ui 1.0.1 → 1.0.3
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/components/ActionBar.d.ts +7 -0
- package/dist/components/NexusHome.d.ts +1 -0
- package/dist/components/TextHighlightAi.d.ts +6 -0
- package/dist/components/ThemeToggle.d.ts +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/index.d.ts +83 -8
- package/dist/index.mjs +1 -140
- package/dist/index.mjs.map +1 -1
- package/dist/src/components/ActionBar.d.ts +1 -2
- package/dist/src/components/TextHighlightAi.d.ts +1 -2
- package/dist/stories/Button.d.ts +15 -0
- package/dist/stories/Button.stories.d.ts +23 -0
- package/dist/stories/Header.d.ts +12 -0
- package/dist/stories/Header.stories.d.ts +18 -0
- package/dist/stories/Page.d.ts +3 -0
- package/dist/stories/Page.stories.d.ts +12 -0
- package/dist/theme/MuiAppThemeProvider.d.ts +7 -0
- package/dist/theme/ThemeContext.d.ts +9 -0
- package/dist/theme/sageTheme.d.ts +19 -0
- package/dist/theme/sxHelpers.d.ts +26 -0
- package/dist/theme/tokens.d.ts +40 -0
- package/package.json +36 -15
- package/readme.md +22 -0
- package/.storybook/main.ts +0 -22
- package/.storybook/preview.ts +0 -21
- package/rollup-plugins.d.ts +0 -5
- package/rollup.config.ts +0 -39
- 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 +0 -3
- package/src/assets/images/S-sage-logo-nobg.svg +0 -3
- package/src/assets/images/S-sage-logo.svg +0 -4
- package/src/assets/images/nexus-logo-icon.svg +0 -31
- package/src/components/ActionBar.tsx +0 -105
- package/src/components/NexusHome.tsx +0 -36
- package/src/components/TextHighlightAi.tsx +0 -34
- package/src/components/ThemeToggle.tsx +0 -22
- package/src/components/index.ts +0 -11
- package/src/index.ts +0 -1
- package/src/stories/Button.stories.ts +0 -54
- package/src/stories/Button.tsx +0 -37
- package/src/stories/Configure.mdx +0 -388
- package/src/stories/EmTestComponent.stories.ts +0 -14
- package/src/stories/Header.stories.ts +0 -34
- package/src/stories/Header.tsx +0 -56
- package/src/stories/Page.stories.ts +0 -33
- package/src/stories/Page.tsx +0 -91
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/accessibility.svg +0 -1
- 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 +0 -1
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/github.svg +0 -1
- 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 +0 -1
- package/src/stories/assets/youtube.svg +0 -1
- package/src/stories/button.css +0 -30
- package/src/stories/header.css +0 -32
- package/src/stories/page.css +0 -68
- package/src/theme/MuiAppThemeProvider.tsx +0 -21
- package/src/theme/ThemeContext.tsx +0 -27
- package/src/theme/sageTheme.ts +0 -565
- package/src/theme/sxHelpers.ts +0 -14
- package/src/vite-env.d.ts +0 -1
- package/tsconfig.json +0 -27
- package/vite.config.ts +0 -12
- package/vitest.config.ts +0 -36
- package/vitest.shims.d.ts +0 -1
- /package/dist/{src/stories → stories}/EmTestComponent.stories.d.ts +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode, ReactElement } from "react";
|
|
2
|
+
export interface ActionBarProps {
|
|
3
|
+
title?: ReactNode;
|
|
4
|
+
extraLeft?: ReactNode;
|
|
5
|
+
extraRight?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const ActionBar: ({ title, extraLeft, extraRight, }: ActionBarProps) => ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NexusHome: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ThemeToggle: React.FC;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { ReactNode, ReactElement } from 'react';
|
|
1
|
+
import { ReactNode, ReactElement, CSSProperties, PropsWithChildren } from 'react';
|
|
2
|
+
import { Theme, SxProps } from '@mui/material/styles';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
4
|
|
|
3
5
|
interface ActionBarProps {
|
|
4
6
|
title?: ReactNode;
|
|
@@ -9,13 +11,86 @@ declare const ActionBar: ({ title, extraLeft, extraRight, }: ActionBarProps) =>
|
|
|
9
11
|
|
|
10
12
|
declare const NexusHome: React.FC;
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
declare const ThemeToggle: React.FC;
|
|
15
|
+
|
|
16
|
+
type ThemeMode = "light" | "dark";
|
|
17
|
+
declare const colours: {
|
|
18
|
+
readonly brilliantGreen: "#00D639";
|
|
19
|
+
readonly primaryGreenHover: "#00BE32";
|
|
20
|
+
readonly primaryGreenActive: "#00AA2D";
|
|
21
|
+
readonly jade: "#00A65C";
|
|
22
|
+
readonly teal: "#006362";
|
|
23
|
+
readonly navy: "#00293F";
|
|
24
|
+
readonly cherry: "#cc0f4b";
|
|
25
|
+
readonly terra: "#A13829";
|
|
26
|
+
readonly amber: "#E9875B";
|
|
27
|
+
readonly gold: "#F5C518";
|
|
28
|
+
readonly black: "#000000";
|
|
29
|
+
readonly white: "#FFFFFF";
|
|
30
|
+
readonly darkGrey: "#55616D";
|
|
31
|
+
readonly lightGrey: "#ffffffc2";
|
|
32
|
+
};
|
|
33
|
+
declare const gradients: {
|
|
34
|
+
readonly brand: "linear-gradient(135deg, #00D639 0%, #00A65C 42%, #006362 100%)";
|
|
35
|
+
readonly nexus: "linear-gradient(135deg, #00D639 0%, #00D6DE 40%, #2D60FF 100%)";
|
|
36
|
+
readonly mesh: "radial-gradient(circle at top right, rgba(0, 214, 57, 0.16) 0%, transparent 34%), linear-gradient(135deg, rgba(0, 166, 92, 0.08) 0%, rgba(0, 99, 98, 0.12) 100%)";
|
|
37
|
+
};
|
|
38
|
+
declare const fontSageText = "SageText, Inter, Segoe UI, sans-serif";
|
|
39
|
+
declare const fontSageUI = "SageUI, Inter, Segoe UI, sans-serif";
|
|
40
|
+
|
|
41
|
+
declare module "@mui/material/styles" {
|
|
42
|
+
interface TypographyVariants {
|
|
43
|
+
actionBarTitle: CSSProperties;
|
|
44
|
+
}
|
|
45
|
+
interface TypographyVariantsOptions {
|
|
46
|
+
actionBarTitle?: CSSProperties;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
declare module "@mui/material/Typography" {
|
|
50
|
+
interface TypographyPropsVariantOverrides {
|
|
51
|
+
actionBarTitle: true;
|
|
52
|
+
}
|
|
16
53
|
}
|
|
17
|
-
declare const TextHighlightAi: React.FC<TextHighlightAiProps>;
|
|
18
54
|
|
|
19
|
-
declare const
|
|
55
|
+
declare const createSageTheme: (mode?: ThemeMode) => Theme;
|
|
56
|
+
|
|
57
|
+
type MuiAppThemeProviderProps = PropsWithChildren<{
|
|
58
|
+
mode?: ThemeMode;
|
|
59
|
+
}>;
|
|
60
|
+
declare const MuiAppThemeProvider: ({ children, mode }: MuiAppThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
61
|
+
|
|
62
|
+
type ThemeModeContextValue = {
|
|
63
|
+
mode: ThemeMode;
|
|
64
|
+
toggleMode: () => void;
|
|
65
|
+
};
|
|
66
|
+
declare const useThemeMode: () => ThemeModeContextValue;
|
|
67
|
+
declare const ThemeModeProvider: ({ children }: PropsWithChildren) => react_jsx_runtime.JSX.Element;
|
|
68
|
+
|
|
69
|
+
type GradientBorderOptions = {
|
|
70
|
+
borderRadius?: number;
|
|
71
|
+
padding?: number;
|
|
72
|
+
};
|
|
73
|
+
declare const getGradientBorderStyles: (theme: Theme, options?: GradientBorderOptions) => {
|
|
74
|
+
position: string;
|
|
75
|
+
borderRadius: number;
|
|
76
|
+
border: string;
|
|
77
|
+
background: string;
|
|
78
|
+
backgroundClip: string;
|
|
79
|
+
"&::before": {
|
|
80
|
+
content: string;
|
|
81
|
+
position: string;
|
|
82
|
+
inset: number;
|
|
83
|
+
borderRadius: string;
|
|
84
|
+
padding: string;
|
|
85
|
+
background: "linear-gradient(135deg, #00D639 0%, #00A65C 42%, #006362 100%)";
|
|
86
|
+
WebkitMask: string;
|
|
87
|
+
WebkitMaskComposite: string;
|
|
88
|
+
maskComposite: string;
|
|
89
|
+
pointerEvents: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
declare const leftPipe: SxProps<Theme>;
|
|
93
|
+
declare const expandableText: (isExpanded: boolean) => SxProps<Theme>;
|
|
20
94
|
|
|
21
|
-
export { ActionBar, NexusHome,
|
|
95
|
+
export { ActionBar, MuiAppThemeProvider, NexusHome, ThemeModeProvider, ThemeToggle, colours, createSageTheme, expandableText, fontSageText, fontSageUI, getGradientBorderStyles, gradients, leftPipe, useThemeMode };
|
|
96
|
+
export type { GradientBorderOptions, ThemeMode };
|