barook-ui-library 0.1.6 → 0.1.8

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/index.d.mts CHANGED
@@ -313,6 +313,10 @@ declare const SearchField: react.ForwardRefExoticComponent<Omit<SearchFieldProps
313
313
 
314
314
  declare const Tooltip: react.ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
315
315
 
316
- declare const AppThemeProvider: ({ children }: PropsWithChildren) => react_jsx_runtime.JSX.Element;
316
+ type AppThemeProviderType = {
317
+ children: React.ReactNode;
318
+ themeOverride: any;
319
+ };
320
+ declare const AppThemeProvider: ({ children, themeOverride, }: AppThemeProviderType) => react_jsx_runtime.JSX.Element;
317
321
 
318
322
  export { AppThemeProvider, AutoCompleteField, type AutoCompleteFieldProps, Avatar, Backdrop, Badge, BottomSheet, type BottomSheetProps, Box, Button, Card, CardContent, CheckBox, Chip, CircularProgress, ContainedTab, ContainedTabs, Container, DatePickerBottomSheet, type DatePickerBottomSheetProps, DatePickerField, Dialog, type DialogProps, Divider, DotProgress, ExcelButton, type ExtendedTypographyProps, Grid, HelperText, HelperTextContent, type HelperTextContentProps, type HelperTextProps, IconButton, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemText, ListSubheader, Menu, MenuItem, Modal, MultiSelectField, MultiSelectRadioField, Notification, NumberInputField, type NumberInputFieldProps, type OptionsType, OtpField, Paper, PasswordField, PhoneInputField, type PhoneInputFieldProps, PriceView, RadioBox, SearchField, type SearchFieldProps, SelectDialog, type SelectDialogProps, SelectField, type SelectFieldProps, type SelectOption, Skeleton, Slider, Stack, StepperContainer, SvgIcon, Tab, Tabs, TextField, type TextFieldProps, Tooltip, Typography };
package/dist/index.d.ts CHANGED
@@ -313,6 +313,10 @@ declare const SearchField: react.ForwardRefExoticComponent<Omit<SearchFieldProps
313
313
 
314
314
  declare const Tooltip: react.ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
315
315
 
316
- declare const AppThemeProvider: ({ children }: PropsWithChildren) => react_jsx_runtime.JSX.Element;
316
+ type AppThemeProviderType = {
317
+ children: React.ReactNode;
318
+ themeOverride: any;
319
+ };
320
+ declare const AppThemeProvider: ({ children, themeOverride, }: AppThemeProviderType) => react_jsx_runtime.JSX.Element;
317
321
 
318
322
  export { AppThemeProvider, AutoCompleteField, type AutoCompleteFieldProps, Avatar, Backdrop, Badge, BottomSheet, type BottomSheetProps, Box, Button, Card, CardContent, CheckBox, Chip, CircularProgress, ContainedTab, ContainedTabs, Container, DatePickerBottomSheet, type DatePickerBottomSheetProps, DatePickerField, Dialog, type DialogProps, Divider, DotProgress, ExcelButton, type ExtendedTypographyProps, Grid, HelperText, HelperTextContent, type HelperTextContentProps, type HelperTextProps, IconButton, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemText, ListSubheader, Menu, MenuItem, Modal, MultiSelectField, MultiSelectRadioField, Notification, NumberInputField, type NumberInputFieldProps, type OptionsType, OtpField, Paper, PasswordField, PhoneInputField, type PhoneInputFieldProps, PriceView, RadioBox, SearchField, type SearchFieldProps, SelectDialog, type SelectDialogProps, SelectField, type SelectFieldProps, type SelectOption, Skeleton, Slider, Stack, StepperContainer, SvgIcon, Tab, Tabs, TextField, type TextFieldProps, Tooltip, Typography };
package/dist/index.js CHANGED
@@ -38948,15 +38948,22 @@ var { makeStyles } = (0, import_tss_react.createMakeStyles)({ useTheme: useTheme
38948
38948
  var import_cache3 = __toESM(require("@emotion/cache"));
38949
38949
  var import_stylis = require("stylis");
38950
38950
  var import_stylis_plugin_rtl = __toESM(require("stylis-plugin-rtl"));
38951
+ var import_utils27 = require("@mui/utils");
38951
38952
  var import_jsx_runtime145 = require("react/jsx-runtime");
38952
38953
  var rtlCache = (0, import_cache3.default)({
38953
38954
  key: "muirtl",
38954
38955
  stylisPlugins: [import_stylis.prefixer, import_stylis_plugin_rtl.default]
38955
38956
  });
38956
- var AppThemeProvider = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(CacheProvider, { value: rtlCache, children: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(ThemeProvider4, { theme: createTheme3(), children: [
38957
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(CssBaseline_default, {}),
38958
- children
38959
- ] }) });
38957
+ var AppThemeProvider = ({
38958
+ children,
38959
+ themeOverride
38960
+ }) => {
38961
+ const theme = themeOverride ? (0, import_utils27.deepmerge)(createTheme3(), themeOverride) : createTheme3();
38962
+ return /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(CacheProvider, { value: rtlCache, children: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(ThemeProvider4, { theme, children: [
38963
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(CssBaseline_default, {}),
38964
+ children
38965
+ ] }) });
38966
+ };
38960
38967
  // Annotate the CommonJS export names for ESM import in node:
38961
38968
  0 && (module.exports = {
38962
38969
  AppThemeProvider,