@zextras/carbonio-design-system 10.3.0 → 11.0.0-beta.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.
@@ -1,5 +1,5 @@
1
1
  import type { ButtonHTMLAttributes } from 'react';
2
- import { css } from 'styled-components';
2
+ import { css } from '@emotion/react';
3
3
  import type { CSSProperties } from 'react';
4
4
  import DatePicker from 'react-datepicker';
5
5
  import type { DatePickerProps } from 'react-datepicker';
@@ -21,7 +21,7 @@ import { setDefaultLocale } from 'react-datepicker';
21
21
  import type { SVGAttributes } from 'react';
22
22
  import type { SVGProps } from 'react';
23
23
  import type { TextareaHTMLAttributes } from 'react';
24
- import { ThemeContext } from 'styled-components';
24
+ import { ThemeContext } from '@emotion/react';
25
25
 
26
26
  export declare const Accordion: React_2.ForwardRefExoticComponent<AccordionProps & React_2.RefAttributes<HTMLDivElement>>;
27
27
 
@@ -2217,18 +2217,17 @@ export declare function useSplitVisibility<T, R extends HTMLElement = HTMLElemen
2217
2217
 
2218
2218
  export declare const useTheme: () => Theme;
2219
2219
 
2220
- export declare function ZimbraClassicThemeContextProvider({ styleSheetTarget, children, extension, loadDefaultFont }: ZimbraClassicThemeContextProviderProps): React_2.JSX.Element;
2221
-
2222
- export declare interface ZimbraClassicThemeContextProviderProps {
2223
- styleSheetTarget?: HTMLElement;
2224
- children: React_2.ReactElement;
2225
- extension?: (theme: Theme) => Theme;
2226
- loadDefaultFont?: boolean;
2227
- }
2228
-
2229
2220
  export { }
2230
2221
 
2231
- declare module 'styled-components' {
2232
- // Augment DefaultTheme as suggested inside styled-components module
2233
- interface DefaultTheme extends Theme {}
2222
+ type DSTheme = Theme;
2223
+ declare module '@emotion/react' {
2224
+ /**
2225
+ * Augment Theme as suggested inside Emotion module
2226
+ * @see https://emotion.sh/docs/typescript#define-a-theme
2227
+ */
2228
+ // Both the DS and Emotion define a `Theme` type, but we are
2229
+ // defining and augmenting the one inside the Emotion module,
2230
+ // so it is okay to "shadow it" here.
2231
+ // eslint-disable-next-line @typescript-eslint/no-shadow
2232
+ interface Theme extends DSTheme {}
2234
2233
  }