freemium-ui 2.0.0-beta.66 → 2.0.0-beta.68

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.
Files changed (4) hide show
  1. package/index.cjs.js +3966 -3944
  2. package/index.d.ts +14 -8
  3. package/index.js +3951 -3929
  4. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1243,9 +1243,13 @@ type TabsProps<T extends TabsItemProps = TabsItemProps> = {
1243
1243
  idAccessor?: string;
1244
1244
  label?: string;
1245
1245
  /**
1246
- * Name accessor of tabes
1246
+ * Name accessor of tabs
1247
1247
  */
1248
1248
  nameAccessor?: string;
1249
+ /**
1250
+ * Disabled accessor of tabs
1251
+ */
1252
+ disabledAccessor?: string;
1249
1253
  ref?: React.RefObject<HTMLDivElement>;
1250
1254
  /**
1251
1255
  * value for tabs
@@ -1264,7 +1268,7 @@ type TabsProps<T extends TabsItemProps = TabsItemProps> = {
1264
1268
  /**
1265
1269
  * Tabs component is used to show a set of tabs to the user. It is used to show different sections of content in a single view. It can be used to show different categories of content.
1266
1270
  */
1267
- declare const Tabs: <T extends TabsItemProps>({ options, idAccessor, nameAccessor, onChange, defaultValue, label, renderTabsContent, value, }: TabsProps<T>) => react__default.JSX.Element;
1271
+ declare const Tabs: <T extends TabsItemProps>({ options, idAccessor, nameAccessor, disabledAccessor, onChange, defaultValue, label, renderTabsContent, value, }: TabsProps<T>) => react__default.JSX.Element;
1268
1272
 
1269
1273
  interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
1270
1274
  /**
@@ -1468,11 +1472,6 @@ type ThemeProviderType<Theme> = React.ComponentType<{
1468
1472
 
1469
1473
  declare const ThemeProvider: ThemeProviderType<FreemiumUiTheme>;
1470
1474
 
1471
- type ToastProviderProps = {
1472
- children: react__default.ReactNode;
1473
- };
1474
- declare const ToastProvider: (props: ToastProviderProps) => react__default.JSX.Element;
1475
-
1476
1475
  type ToastTypes = 'success' | 'warning' | 'error' | 'info';
1477
1476
  interface ToastType {
1478
1477
  /**
@@ -1500,7 +1499,7 @@ interface ToastType {
1500
1499
  /**
1501
1500
  * shows progress bar in the toast
1502
1501
  * takes delay as the duration
1503
- * @default true
1502
+ * @default false
1504
1503
  */
1505
1504
  showProgress?: boolean;
1506
1505
  }
@@ -1514,10 +1513,17 @@ type UpdateToastsFunction<T> = (fn: (toasts: Array<T>) => Array<T>) => void;
1514
1513
  interface ToastContextType {
1515
1514
  toasts: Array<ToastWithID>;
1516
1515
  windowState: 'focus' | 'blur';
1516
+ retainOnWindowBlur?: boolean;
1517
+ retainOnHover?: boolean;
1517
1518
  addToast: (toast: ToastType) => void;
1518
1519
  updateToasts: (fn: (oldToasts: ToastWithID[]) => ToastWithID[]) => void;
1519
1520
  }
1520
1521
 
1522
+ interface ToastProviderProps extends Pick<ToastContextType, 'retainOnHover' | 'retainOnWindowBlur'> {
1523
+ children: react__default.ReactNode;
1524
+ }
1525
+ declare const ToastProvider: ({ children, retainOnHover, retainOnWindowBlur, }: ToastProviderProps) => react__default.JSX.Element;
1526
+
1521
1527
  /**
1522
1528
  * useToasts is a custom hook that returns the toasts and a function to add a new toast.
1523
1529
  */