@spark-web/box 2.0.0-rc.6 → 2.0.0-rc.7
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
1
2
|
import type { DataAttributeMap } from '@spark-web/utils/internal';
|
|
2
3
|
import type { ReactNode } from 'react';
|
|
3
4
|
import type { BoxStyleProps } from "./use-box-styles.js";
|
|
@@ -9,7 +10,7 @@ export declare type BoxProps = {
|
|
|
9
10
|
/** An identifier which must be unique in the whole document. */
|
|
10
11
|
id?: string;
|
|
11
12
|
/** Custom css styles. */
|
|
12
|
-
className?:
|
|
13
|
+
className?: SerializedStyles;
|
|
13
14
|
/**
|
|
14
15
|
* When providing a component using the "as" prop, optionally tell the system
|
|
15
16
|
* what the underlying element will be. Used internally to manage reset
|
|
@@ -29,7 +30,7 @@ export declare const Box: <Comp extends import("react").ElementType<any, keyof i
|
|
|
29
30
|
/** An identifier which must be unique in the whole document. */
|
|
30
31
|
id?: string | undefined;
|
|
31
32
|
/** Custom css styles. */
|
|
32
|
-
className?:
|
|
33
|
+
className?: SerializedStyles | undefined;
|
|
33
34
|
/**
|
|
34
35
|
* When providing a component using the "as" prop, optionally tell the system
|
|
35
36
|
* what the underlying element will be. Used internally to manage reset
|
|
@@ -334,7 +334,7 @@ var Box = ts.forwardRefWithAs(function (_ref, forwardedRef) {
|
|
|
334
334
|
return jsxRuntime.jsx(Tag, _objectSpread(_objectSpread({}, data ? internal.buildDataAttributes(data) : undefined), {}, {
|
|
335
335
|
ref: forwardedRef,
|
|
336
336
|
id: id,
|
|
337
|
-
css: cx(css(resetStyles), css(styles), className)
|
|
337
|
+
css: cx(css(resetStyles), css(styles), css(className))
|
|
338
338
|
}, attributes));
|
|
339
339
|
}
|
|
340
340
|
});
|
|
@@ -334,7 +334,7 @@ var Box = ts.forwardRefWithAs(function (_ref, forwardedRef) {
|
|
|
334
334
|
return jsxRuntime.jsx(Tag, _objectSpread(_objectSpread({}, data ? internal.buildDataAttributes(data) : undefined), {}, {
|
|
335
335
|
ref: forwardedRef,
|
|
336
336
|
id: id,
|
|
337
|
-
css: cx(css(resetStyles), css(styles), className)
|
|
337
|
+
css: cx(css(resetStyles), css(styles), css(className))
|
|
338
338
|
}, attributes));
|
|
339
339
|
}
|
|
340
340
|
});
|
|
@@ -330,7 +330,7 @@ var Box = forwardRefWithAs(function (_ref, forwardedRef) {
|
|
|
330
330
|
return jsx(Tag, _objectSpread(_objectSpread({}, data ? buildDataAttributes(data) : undefined), {}, {
|
|
331
331
|
ref: forwardedRef,
|
|
332
332
|
id: id,
|
|
333
|
-
css: cx(css(resetStyles), css(styles), className)
|
|
333
|
+
css: cx(css(resetStyles), css(styles), css(className))
|
|
334
334
|
}, attributes));
|
|
335
335
|
}
|
|
336
336
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-web/box",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.7",
|
|
4
4
|
"homepage": "https://github.com/brighte-labs/spark-web#readme",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime": "^7.25.0",
|
|
19
19
|
"@emotion/react": "^11.14.0",
|
|
20
|
-
"@spark-web/theme": "^4.0.0-rc.
|
|
21
|
-
"@spark-web/utils": "^2.0.0-rc.
|
|
20
|
+
"@spark-web/theme": "^4.0.0-rc.7",
|
|
21
|
+
"@spark-web/utils": "^2.0.0-rc.7"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/react": "^18.2.0",
|