labsense-ui-kit 1.1.76 → 1.1.78

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.
@@ -1,6 +1,7 @@
1
1
  import { ThemeColorsInterface } from '.';
2
2
  export declare const light: ThemeColorsInterface;
3
3
  export declare const dark: ThemeColorsInterface;
4
+ export declare const getCurrentTheme: () => "dark" | "light";
4
5
  export declare const colorVariables: ThemeColorsInterface;
5
6
  export declare const themes: {
6
7
  light: ThemeColorsInterface;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ children: React.ReactNode;
4
+ mode?: 'light' | 'dark';
5
+ }
6
+ export declare const ThemeProviderWrapper: ({ children, mode }: Props) => React.JSX.Element;
7
+ export {};
@@ -87,3 +87,5 @@ export interface ThemeColorsInterface {
87
87
  text: TextColors;
88
88
  badge: BadgeColors;
89
89
  }
90
+ export declare type ThemeMode = 'light' | 'dark' | 'device';
91
+ export declare type EffectiveTheme = 'light' | 'dark';
@@ -1,4 +1,5 @@
1
1
  import useClickOutside from './useClickOutside';
2
2
  import useCustomModal from './useCustomModal';
3
3
  import useNotification from './useNotification';
4
- export { useClickOutside, useCustomModal, useNotification };
4
+ import useTheme from './useTheme';
5
+ export { useClickOutside, useCustomModal, useNotification, useTheme };
@@ -0,0 +1,3 @@
1
+ import { ThemeColorsInterface } from '../Themes';
2
+ declare const useTheme: () => ThemeColorsInterface;
3
+ export default useTheme;
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ import { ButtonCarousel } from './Carousel';
5
5
  import { Container, Span } from './Container&Span/StyledComponents';
6
6
  import { DatePicker } from './Date-Time';
7
7
  import { MultiSelectDropdown, OptionComponent, SelectedOption, SelectOption, DropdownMenu, Options } from './Dropdown';
8
- import { useClickOutside, useCustomModal, useNotification } from './hooks';
8
+ import { useClickOutside, useCustomModal, useNotification, useTheme } from './hooks';
9
9
  import { Icon, IconNames } from './Icons';
10
10
  import { SearchBox, TextArea, TextField, TextFieldWithDropdown, CheckBox } from './Inputs';
11
11
  import { CircularLoader, Loader } from './Loader';
@@ -14,7 +14,7 @@ import { ProgressBar, ProgressBarProps, CircularProgress, CircularProgressProps
14
14
  import { Sidebar, logoDetails, SidebarItems } from './Sidebar';
15
15
  import { Table, TableCell, TableRow, TableProps } from './Table';
16
16
  import { InternalTabs, Tabs, TabContentProps } from './Tabs';
17
- import { ThemeColorsInterface } from './Themes';
17
+ import { ThemeColorsInterface, ThemeMode } from './Themes';
18
18
  import { colorVariables, themes } from './Themes/Colors';
19
19
  import { convertToEpoch, formatDate, formatTimestamp, formatCalendarDateTime, timeAgo, formatEpochToIST, convertEpochToDateString, convertEpochToOnlyDate, getSystemTimezoneAbbreviation, timeStringToSeconds } from './Utils/Date&Time';
20
20
  export { Badge, IconTooltip };
@@ -24,7 +24,7 @@ export { ButtonCarousel };
24
24
  export { Container, Span };
25
25
  export { DatePicker };
26
26
  export { MultiSelectDropdown, OptionComponent, SelectedOption, SelectOption, DropdownMenu, Options };
27
- export { useClickOutside, useCustomModal, useNotification };
27
+ export { useClickOutside, useCustomModal, useNotification, useTheme };
28
28
  export { Icon, IconNames };
29
29
  export { SearchBox, TextArea, TextField, TextFieldWithDropdown, CheckBox };
30
30
  export { CircularLoader, Loader };
@@ -33,5 +33,5 @@ export { ProgressBar, ProgressBarProps, CircularProgress, CircularProgressProps
33
33
  export { Sidebar, logoDetails, SidebarItems };
34
34
  export { TableCell, Table, TableRow, TableProps };
35
35
  export { InternalTabs, Tabs, TabContentProps };
36
- export { ThemeColorsInterface, colorVariables, themes };
36
+ export { ThemeColorsInterface, ThemeMode, colorVariables, themes };
37
37
  export { convertToEpoch, formatDate, formatTimestamp, formatCalendarDateTime, timeAgo, formatEpochToIST, convertEpochToDateString, convertEpochToOnlyDate, getSystemTimezoneAbbreviation, timeStringToSeconds };