@focus4/styling 11.21.0-beta.1 → 11.21.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@focus4/styling",
3
- "version": "11.21.0-beta.1",
3
+ "version": "11.21.0",
4
4
  "description": "Focus v4, styling module",
5
5
  "main": "lib/focus4.styling.js",
6
6
  "type": "module",
@@ -16,12 +16,12 @@
16
16
  "postinstall": "node postinstall.js"
17
17
  },
18
18
  "dependencies": {
19
- "@focus4/core": "11.20.0",
20
- "@types/react-dom": "18.3.0",
19
+ "@focus4/core": "11.21.0",
20
+ "@types/react-dom": "18.3.1",
21
21
  "classnames": "2.5.1",
22
22
  "mobx-react": "7.6.0",
23
23
  "react": "18.3.1",
24
24
  "react-dom": "18.3.1"
25
25
  },
26
- "gitHead": "20651c46cb931f6af08ef50b01cdbb9d62cde397"
26
+ "gitHead": "b99515f200084b6fda347df9cedd212df950bdea"
27
27
  }
@@ -1,13 +0,0 @@
1
- import { FunctionComponent, ReactElement } from "react";
2
- import { CSSToStrings } from "./common";
3
- import { ToBem } from "./to-bem";
4
- export interface ThemeConsumerProps<T> {
5
- children: (theme: ToBem<T>) => ReactElement;
6
- theme?: CSSToStrings<T> | Partial<ToBem<T>> | T;
7
- }
8
- /**
9
- * Permet de créer un composant wrapper pour utiliser `useTheme` dans le `render()` d'un composant classe.
10
- * @param name Le nom de la clé de theme.
11
- * @param localTheme Le theme local, fourni par le composant.
12
- */
13
- export declare function themr<T>(name: string, localTheme?: T): FunctionComponent<ThemeConsumerProps<T>>;
@@ -1,64 +0,0 @@
1
- import { HTMLProps, ReactElement, ReactPortal } from "react";
2
- export interface PanelDescriptor {
3
- node: HTMLDivElement;
4
- title?: string;
5
- }
6
- /** Contexte d'un Scrollable, expose les méthodes associées. */
7
- export declare const ScrollableContext: import("react").Context<{
8
- /**
9
- * Retourne la status du header.
10
- * @returns La taille du header et s'il est sticky ou non.
11
- */
12
- getHeaderStatus(): {
13
- sticky: boolean;
14
- height: number;
15
- };
16
- /**
17
- * Affiche un élement dans le menu sticky du Scrollable
18
- * @param node Le noeud React.
19
- * @param parentNode Noeud à suivre pour positionner l'élément sticky.
20
- * @param retractable Menu rétractable.
21
- * @returns Le Portal associé.
22
- */
23
- menu(node: ReactElement, parentNode: HTMLElement | null, retractable: boolean): ReactPortal | null;
24
- /**
25
- * Affiche un élement dans le Scrollable.
26
- * @param node Le noeud React.
27
- * @returns Le Portal associé.
28
- */
29
- portal(node: ReactElement): ReactPortal;
30
- /**
31
- * Enregistre le header dans le Scrollable
32
- * @param nonStickyElement Le noeud DOM représentant le header non sticky.
33
- * @param canDeploy Précise si le header est toujours sticky ou non.
34
- * @returns Le disposer.
35
- */
36
- registerHeader(nonStickyElement: HTMLElement, canDeploy: boolean): () => void;
37
- /**
38
- * Set les props du header du Scrollable.
39
- * @param headerProps Les props du header.
40
- * @returns Le disposer.
41
- */
42
- registerHeaderProps(headerProps: HTMLProps<HTMLElement>): void;
43
- /**
44
- * Enregistre un observateur d'intersection avec le viewport du Scrollable.
45
- * @param node Le noeud DOM à observer.
46
- * @param onIntersect Le callback à appeler lors d'une intersection.
47
- * @returns Le disposer.
48
- */
49
- registerIntersect(node: HTMLElement, onIntersect: (ratio: number, isIntersecting: boolean) => void): () => void;
50
- /**
51
- * Scrolle vers la position demandée.
52
- * @param options Options.
53
- */
54
- scrollTo(options?: ScrollToOptions): void;
55
- }>;
56
- /** Contexte d'un ScrollspyContainer, expose les méthodes associées. */
57
- export declare const ScrollspyContext: import("react").Context<{
58
- /**
59
- * Enregistre un panel dans le Scrollspu
60
- * @param name L'id du panel souhaité.
61
- * @param panel La description d'un panel
62
- */
63
- registerPanel(name: string, panel: PanelDescriptor): (() => void) | undefined;
64
- }>;