etudes 27.2.2 → 27.4.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/build/etudes.js +742 -733
- package/build/etudes.umd.cjs +6 -6
- package/build/index.d.ts +2 -0
- package/build/utils/measureIntrinsicSize.d.ts +2 -0
- package/build/utils/setStyles.d.ts +21 -0
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -80,7 +80,9 @@ export * from './utils/ExtractChildren.js';
|
|
|
80
80
|
export * from './utils/getStyle.js';
|
|
81
81
|
export * from './utils/getSystemColorScheme.js';
|
|
82
82
|
export * from './utils/isTouchDevice.js';
|
|
83
|
+
export * from './utils/measureIntrinsicSize.js';
|
|
83
84
|
export * from './utils/NoSSR.js';
|
|
84
85
|
export * from './utils/setStyle.js';
|
|
86
|
+
export * from './utils/setStyles.js';
|
|
85
87
|
export * from './utils/Styled.js';
|
|
86
88
|
export * from './utils/styles.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Options for the setting the styles of an HTML element.
|
|
4
|
+
*/
|
|
5
|
+
type Options = {
|
|
6
|
+
/**
|
|
7
|
+
* Element on which to set the style. If not provided, the document's root
|
|
8
|
+
* element will be used.
|
|
9
|
+
*/
|
|
10
|
+
target?: HTMLElement;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Sets the styles of an HTML element. If no element is provided, the styles
|
|
14
|
+
* will be set on the document's root element.
|
|
15
|
+
*
|
|
16
|
+
* @param styles An object containing the CSS properties and their corresponding
|
|
17
|
+
* values to set.
|
|
18
|
+
* @param options See {@link Options}.
|
|
19
|
+
*/
|
|
20
|
+
export declare function setStyles(styles: CSSProperties, { target }?: Options): void;
|
|
21
|
+
export {};
|