@spark-web/box 5.0.0-rc.29 → 5.0.0-rc.31
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 +22 -0
- package/dist/declarations/src/box.d.ts +5 -5
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @spark-web/box
|
|
2
2
|
|
|
3
|
+
## 5.0.0-rc.31
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix type-related issues
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @spark-web/theme@5.0.0-rc.31
|
|
11
|
+
- @spark-web/utils@5.0.0-rc.31
|
|
12
|
+
|
|
13
|
+
## 5.0.0-rc.30
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- Adopt latest changes from stable main branch
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies []:
|
|
22
|
+
- @spark-web/theme@5.0.0-rc.30
|
|
23
|
+
- @spark-web/utils@5.0.0-rc.30
|
|
24
|
+
|
|
3
25
|
## 5.0.0-rc.29
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
|
2
|
-
import {
|
|
2
|
+
import type { CSSObject } from '@emotion/react';
|
|
3
3
|
import type { DataAttributeMap } from '@spark-web/utils/internal';
|
|
4
4
|
import type { ReactNode } from 'react';
|
|
5
5
|
import type { BoxStyleProps } from "./use-box-styles.js";
|
|
@@ -11,7 +11,7 @@ export declare type BoxProps = {
|
|
|
11
11
|
/** An identifier which must be unique in the whole document. */
|
|
12
12
|
id?: string;
|
|
13
13
|
/** Custom css styles. */
|
|
14
|
-
css?:
|
|
14
|
+
css?: CSSObject;
|
|
15
15
|
/**
|
|
16
16
|
* When providing a component using the "as" prop, optionally tell the system
|
|
17
17
|
* what the underlying element will be. Used internally to manage reset
|
|
@@ -22,7 +22,7 @@ export declare type BoxProps = {
|
|
|
22
22
|
/** Exposes a prop-based API for adding styles to a view, within the constraints of the theme. */
|
|
23
23
|
export declare const Box: <Comp extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "div">(props: {
|
|
24
24
|
as?: Comp | undefined;
|
|
25
|
-
ref?: import("react").Ref<Comp extends "symbol" | "
|
|
25
|
+
ref?: import("react").Ref<Comp extends "symbol" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | keyof HTMLElementTagNameMap ? (HTMLElementTagNameMap & Pick<SVGElementTagNameMap, "symbol" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view">)[Comp] : Comp extends new (...args: any) => any ? InstanceType<Comp> : undefined> | undefined;
|
|
26
26
|
} & Omit<import("react").PropsWithoutRef<import("react").ComponentProps<Comp>>, "as"> & {
|
|
27
27
|
/** Children element to be rendered inside the component. */
|
|
28
28
|
children?: ReactNode;
|
|
@@ -31,7 +31,7 @@ export declare const Box: <Comp extends import("react").ElementType<any, keyof i
|
|
|
31
31
|
/** An identifier which must be unique in the whole document. */
|
|
32
32
|
id?: string | undefined;
|
|
33
33
|
/** Custom css styles. */
|
|
34
|
-
css?:
|
|
34
|
+
css?: CSSObject | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* When providing a component using the "as" prop, optionally tell the system
|
|
37
37
|
* what the underlying element will be. Used internally to manage reset
|
|
@@ -43,7 +43,7 @@ export declare const Box: <Comp extends import("react").ElementType<any, keyof i
|
|
|
43
43
|
cursor?: "default" | "pointer" | undefined;
|
|
44
44
|
minHeight?: 0 | undefined;
|
|
45
45
|
minWidth?: 0 | undefined;
|
|
46
|
-
overflow?: "
|
|
46
|
+
overflow?: "hidden" | "scroll" | "auto" | "visible" | undefined;
|
|
47
47
|
shadow?: "small" | "medium" | "large" | undefined;
|
|
48
48
|
userSelect?: "none" | undefined;
|
|
49
49
|
} & import("./use-box-styles.js").ResponsiveBoxProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-web/box",
|
|
3
|
-
"version": "5.0.0-rc.
|
|
3
|
+
"version": "5.0.0-rc.31",
|
|
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": "^5.0.0-rc.
|
|
21
|
-
"@spark-web/utils": "^5.0.0-rc.
|
|
20
|
+
"@spark-web/theme": "^5.0.0-rc.31",
|
|
21
|
+
"@spark-web/utils": "^5.0.0-rc.31"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/react": "^18.2.0",
|