@raystack/frontier 0.100.0 → 0.101.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/admin/dist/index.js +154 -154
- package/admin/dist/index.mjs +154 -154
- package/package.json +1 -1
- package/react/dist/client.d.ts +26 -1
- package/react/dist/client.js +207 -187
- package/react/dist/client.mjs +213 -194
- package/react/dist/index.d.ts +8 -64
- package/react/dist/index.js +283 -243
- package/react/dist/index.mjs +224 -184
package/package.json
CHANGED
package/react/dist/client.d.ts
CHANGED
|
@@ -121,10 +121,35 @@ interface GeneralViewProps {
|
|
|
121
121
|
}
|
|
122
122
|
declare function GeneralView({ onDeleteSuccess, urlPrefix }?: GeneralViewProps): react_jsx_runtime.JSX.Element;
|
|
123
123
|
|
|
124
|
+
declare const THEME_OPTIONS: {
|
|
125
|
+
light: {
|
|
126
|
+
label: string;
|
|
127
|
+
icon: react_jsx_runtime.JSX.Element;
|
|
128
|
+
};
|
|
129
|
+
dark: {
|
|
130
|
+
label: string;
|
|
131
|
+
icon: react_jsx_runtime.JSX.Element;
|
|
132
|
+
};
|
|
133
|
+
system: {
|
|
134
|
+
label: string;
|
|
135
|
+
icon: react_jsx_runtime.JSX.Element;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
type Theme = keyof typeof THEME_OPTIONS;
|
|
124
139
|
interface PreferencesViewProps {
|
|
125
140
|
children?: ReactNode;
|
|
141
|
+
/**
|
|
142
|
+
* The theme to use for Theme Select.
|
|
143
|
+
* If not provided, the theme will be fetched from ThemeProvider.
|
|
144
|
+
*/
|
|
145
|
+
theme?: Theme;
|
|
146
|
+
/**
|
|
147
|
+
* The callback to call when the theme is changed.
|
|
148
|
+
* If not provided, the theme will be set in the ThemeProvider.
|
|
149
|
+
*/
|
|
150
|
+
onThemeChange?: (theme: Theme) => void;
|
|
126
151
|
}
|
|
127
|
-
declare function PreferencesView({ children }: PreferencesViewProps): react_jsx_runtime.JSX.Element;
|
|
152
|
+
declare function PreferencesView({ children, theme: providedTheme, onThemeChange }: PreferencesViewProps): react_jsx_runtime.JSX.Element;
|
|
128
153
|
|
|
129
154
|
interface PreferenceRowProps extends ComponentProps<typeof Flex> {
|
|
130
155
|
title: string;
|