@spark-web/stack 1.1.0 → 2.0.0-rc.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @spark-web/stack
|
|
2
2
|
|
|
3
|
+
## 2.0.0-rc.1
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- rc
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies []:
|
|
12
|
+
- @spark-web/divider@2.0.0-rc.1
|
|
13
|
+
- @spark-web/theme@4.0.0-rc.1
|
|
14
|
+
- @spark-web/utils@2.0.0-rc.1
|
|
15
|
+
- @spark-web/box@2.0.0-rc.1
|
|
16
|
+
|
|
17
|
+
## 2.0.0-rc.0
|
|
18
|
+
|
|
19
|
+
### Major Changes
|
|
20
|
+
|
|
21
|
+
- rc versio
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies []:
|
|
26
|
+
- @spark-web/divider@2.0.0-rc.0
|
|
27
|
+
- @spark-web/theme@4.0.0-rc.0
|
|
28
|
+
- @spark-web/box@2.0.0-rc.0
|
|
29
|
+
- @spark-web/utils@2.0.0-rc.0
|
|
30
|
+
|
|
3
31
|
## 1.1.0
|
|
4
32
|
|
|
5
33
|
### Minor Changes
|
|
@@ -5,10 +5,10 @@ declare const alignLookup: {
|
|
|
5
5
|
readonly stretch: "stretch";
|
|
6
6
|
};
|
|
7
7
|
export declare type Align = keyof typeof alignLookup;
|
|
8
|
-
export declare const alignToAlignItems: (prop?: import("@spark-web/theme").ResponsiveProp<"left" | "right" | "center" | "stretch"> | undefined) => "center" | "
|
|
9
|
-
mobile: "center" | "
|
|
10
|
-
tablet: "center" | "
|
|
11
|
-
desktop: "center" | "
|
|
12
|
-
wide: "center" | "
|
|
8
|
+
export declare const alignToAlignItems: (prop?: import("@spark-web/theme").ResponsiveProp<"left" | "right" | "center" | "stretch"> | undefined) => "center" | "start" | "end" | "stretch" | {
|
|
9
|
+
mobile: "center" | "start" | "end" | "stretch" | undefined;
|
|
10
|
+
tablet: "center" | "start" | "end" | "stretch" | undefined;
|
|
11
|
+
desktop: "center" | "start" | "end" | "stretch" | undefined;
|
|
12
|
+
wide: "center" | "start" | "end" | "stretch" | undefined;
|
|
13
13
|
} | undefined;
|
|
14
14
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Stack } from
|
|
2
|
-
export type { StackProps } from
|
|
1
|
+
export { Stack } from "./stack.js";
|
|
2
|
+
export type { StackProps } from "./stack.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BoxProps } from '@spark-web/box';
|
|
2
2
|
import type { ResponsiveProp } from '@spark-web/theme';
|
|
3
3
|
import type { ReactElement } from 'react';
|
|
4
|
-
import type { Align } from
|
|
4
|
+
import type { Align } from "./alignment.js";
|
|
5
5
|
declare type ValidBoxProps = Omit<BoxProps, 'display' | 'className' | 'alignItems' | 'flexDirection' | 'justifyContent' | 'flexWrap'>;
|
|
6
6
|
export declare type StackProps = {
|
|
7
7
|
/** Horizontally align items within the stack. */
|
|
@@ -9,9 +9,9 @@ export declare type StackProps = {
|
|
|
9
9
|
/** Place a divider between each element. */
|
|
10
10
|
dividers?: boolean;
|
|
11
11
|
} & ValidBoxProps;
|
|
12
|
-
export declare const Stack: <Comp extends import("react").ElementType<any> = "div">(props: {
|
|
12
|
+
export declare const Stack: <Comp extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "div">(props: {
|
|
13
13
|
as?: Comp | undefined;
|
|
14
|
-
ref?: import("react").Ref<Comp extends "symbol" | "clipPath" | "filter" | "mask" | "marker" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "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" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | keyof HTMLElementTagNameMap
|
|
14
|
+
ref?: import("react").Ref<Comp extends "symbol" | "clipPath" | "filter" | "mask" | "marker" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "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" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | keyof HTMLElementTagNameMap ? (HTMLElementTagNameMap & Pick<SVGElementTagNameMap, "symbol" | "clipPath" | "filter" | "mask" | "marker" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "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" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "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;
|
|
15
15
|
} & Omit<import("react").PropsWithoutRef<import("react").ComponentProps<Comp>>, "as"> & {
|
|
16
16
|
/** Horizontally align items within the stack. */
|
|
17
17
|
align?: ResponsiveProp<"left" | "right" | "center" | "stretch"> | undefined;
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
export * from "./declarations/src/index";
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Bhcmstd2ViLXN0YWNrLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-web/stack",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-rc.1",
|
|
4
4
|
"homepage": "https://github.com/brighte-labs/spark-web#readme",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@babel/runtime": "^7.
|
|
19
|
-
"@emotion/
|
|
20
|
-
"@spark-web/box": "^
|
|
21
|
-
"@spark-web/divider": "^
|
|
22
|
-
"@spark-web/theme": "^
|
|
23
|
-
"@spark-web/utils": "^
|
|
18
|
+
"@babel/runtime": "^7.25.0",
|
|
19
|
+
"@emotion/react": "^11.13.5",
|
|
20
|
+
"@spark-web/box": "^2.0.0-rc.1",
|
|
21
|
+
"@spark-web/divider": "^2.0.0-rc.1",
|
|
22
|
+
"@spark-web/theme": "^4.0.0-rc.1",
|
|
23
|
+
"@spark-web/utils": "^2.0.0-rc.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/react": "^18.2.0",
|