@raystack/frontier 0.100.0 → 0.101.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raystack/frontier",
3
- "version": "0.100.0",
3
+ "version": "0.101.1",
4
4
  "description": "A js library for frontier",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -107,7 +107,7 @@
107
107
  "@connectrpc/connect-query": "2.1.1",
108
108
  "@connectrpc/connect-web": "2.1.1",
109
109
  "@hookform/resolvers": "^3.10.0",
110
- "@raystack/apsara-v1": "npm:@raystack/apsara@1.0.0-rc.2",
110
+ "@raystack/apsara-v1": "npm:@raystack/apsara@1.0.0-rc.6",
111
111
  "@raystack/proton": "0.1.0-7523cfd3a676d3fb72d63c8c4f0476738a2217b3",
112
112
  "@tanstack/react-query": "^5.90.2",
113
113
  "@tanstack/react-router": "^1.168.3",
@@ -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;