barook-ui-library 0.1.5 → 0.1.7

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
+ themOverride: any;
319
+ };
320
+ declare const AppThemeProvider: ({ children, themOverride, }: 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
+ themOverride: any;
319
+ };
320
+ declare const AppThemeProvider: ({ children, themOverride, }: 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
@@ -36370,6 +36370,7 @@ var IconButton3 = IconButton_default;
36370
36370
  // src/shared/ui/typography/Typography.tsx
36371
36371
  var import_react10 = require("react");
36372
36372
  var import_jsx_runtime105 = require("react/jsx-runtime");
36373
+ console.log("MuiTypography version", Typography_default);
36373
36374
  var Typography3 = (0, import_react10.forwardRef)(
36374
36375
  (props, ref) => {
36375
36376
  return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Typography_default, { ref, ...props });
@@ -38913,12 +38914,29 @@ var createTheme3 = (overrides) => {
38913
38914
  MuiSlider: MuiSlider(mergedTheme),
38914
38915
  MuiAvatar: MuiAvatar(mergedTheme),
38915
38916
  MuiDialog: MuiDialog(mergedTheme),
38916
- MuiCheckbox: MuiCheckbox(mergedTheme)
38917
+ MuiCheckbox: MuiCheckbox(mergedTheme),
38918
+ MuiTypography: {
38919
+ defaultProps: {
38920
+ variantMapping: {
38921
+ xxs: "p",
38922
+ xs: "p",
38923
+ sm: "p",
38924
+ base: "p",
38925
+ lg: "p",
38926
+ xl: "h6",
38927
+ "2xl": "h5",
38928
+ "3xl": "h4",
38929
+ "4xl": "h3",
38930
+ "5xl": "h2"
38931
+ }
38932
+ }
38933
+ }
38917
38934
  });
38918
38935
  const mainMuiTheme = createTheme2({
38919
38936
  ...mergedTheme,
38920
38937
  components
38921
38938
  });
38939
+ console.log("mainMuiTheme", mainMuiTheme.typography);
38922
38940
  return mainMuiTheme;
38923
38941
  };
38924
38942
 
@@ -38935,7 +38953,10 @@ var rtlCache = (0, import_cache3.default)({
38935
38953
  key: "muirtl",
38936
38954
  stylisPlugins: [import_stylis.prefixer, import_stylis_plugin_rtl.default]
38937
38955
  });
38938
- var AppThemeProvider = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(CacheProvider, { value: rtlCache, children: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(ThemeProvider4, { theme: createTheme3(), children: [
38956
+ var AppThemeProvider = ({
38957
+ children,
38958
+ themOverride
38959
+ }) => /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(CacheProvider, { value: rtlCache, children: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(ThemeProvider4, { theme: themOverride ? themOverride : createTheme3(), children: [
38939
38960
  /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(CssBaseline_default, {}),
38940
38961
  children
38941
38962
  ] }) });