@spark-web/columns 2.1.0 → 3.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 +26 -0
- package/dist/declarations/src/alignment.d.ts +5 -5
- package/dist/declarations/src/columns.d.ts +3 -3
- package/dist/declarations/src/index.d.ts +2 -2
- package/dist/spark-web-columns.cjs.d.ts +1 -0
- package/dist/spark-web-columns.cjs.dev.js +2 -2
- package/dist/spark-web-columns.cjs.prod.js +2 -2
- package/dist/spark-web-columns.esm.js +2 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @spark-web/columns
|
|
2
2
|
|
|
3
|
+
## 3.0.0-rc.1
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- rc
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies []:
|
|
12
|
+
- @spark-web/theme@4.0.0-rc.1
|
|
13
|
+
- @spark-web/utils@2.0.0-rc.1
|
|
14
|
+
- @spark-web/box@2.0.0-rc.1
|
|
15
|
+
|
|
16
|
+
## 3.0.0-rc.0
|
|
17
|
+
|
|
18
|
+
### Major Changes
|
|
19
|
+
|
|
20
|
+
- rc versio
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies []:
|
|
25
|
+
- @spark-web/theme@4.0.0-rc.0
|
|
26
|
+
- @spark-web/box@2.0.0-rc.0
|
|
27
|
+
- @spark-web/utils@2.0.0-rc.0
|
|
28
|
+
|
|
3
29
|
## 2.1.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
|
@@ -5,10 +5,10 @@ declare const alignYLookup: {
|
|
|
5
5
|
readonly stretch: "stretch";
|
|
6
6
|
};
|
|
7
7
|
export declare type AlignY = keyof typeof alignYLookup;
|
|
8
|
-
export declare const alignYToAlignItems: (prop?: import("@spark-web/theme").ResponsiveProp<"bottom" | "top" | "center" | "stretch"> | undefined) => "center" | "
|
|
9
|
-
mobile: "center" | "
|
|
10
|
-
tablet: "center" | "
|
|
11
|
-
desktop: "center" | "
|
|
12
|
-
wide: "center" | "
|
|
8
|
+
export declare const alignYToAlignItems: (prop?: import("@spark-web/theme").ResponsiveProp<"bottom" | "top" | "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 {};
|
|
@@ -2,7 +2,7 @@ import type { BoxProps } from '@spark-web/box';
|
|
|
2
2
|
import type { BrighteTheme, ResponsiveProp, ResponsiveRangeProps } from '@spark-web/theme';
|
|
3
3
|
import type { DataAttributeMap } from '@spark-web/utils/internal';
|
|
4
4
|
import type { ReactNode } from 'react';
|
|
5
|
-
import type { AlignY } from
|
|
5
|
+
import type { AlignY } from "./alignment.js";
|
|
6
6
|
declare type Gap = ResponsiveProp<keyof Omit<BrighteTheme['spacing'], 'none'>>;
|
|
7
7
|
declare type ValidBoxProps = Omit<BoxProps, 'display' | 'alignItems' | 'gap' | 'flexDirection' | 'justifyContent' | 'flexWrap' | 'dangerouslySetInnerHTML'>;
|
|
8
8
|
export declare type ColumnsProps = {
|
|
@@ -19,9 +19,9 @@ export declare type ColumnsProps = {
|
|
|
19
19
|
/** Define the relative width of each column. By default each column is the same width. */
|
|
20
20
|
template?: number[];
|
|
21
21
|
} & ValidBoxProps;
|
|
22
|
-
export declare const Columns: <Comp extends import("react").ElementType<any> = "div">(props: {
|
|
22
|
+
export declare const Columns: <Comp extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "div">(props: {
|
|
23
23
|
as?: Comp | undefined;
|
|
24
|
-
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
|
|
24
|
+
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;
|
|
25
25
|
} & Omit<import("react").PropsWithoutRef<import("react").ComponentProps<Comp>>, "as"> & {
|
|
26
26
|
/** Vertically align items within the container. */
|
|
27
27
|
alignY?: ResponsiveProp<"bottom" | "top" | "center" | "stretch"> | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Columns } from
|
|
2
|
-
export type { ColumnsProps } from
|
|
1
|
+
export { Columns } from "./columns.js";
|
|
2
|
+
export type { ColumnsProps } from "./columns.js";
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
export * from "./declarations/src/index";
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Bhcmstd2ViLWNvbHVtbnMuY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuL2RlY2xhcmF0aW9ucy9zcmMvaW5kZXguZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
6
6
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
8
|
-
var
|
|
8
|
+
var react$1 = require('@emotion/react');
|
|
9
9
|
var box = require('@spark-web/box');
|
|
10
10
|
var theme = require('@spark-web/theme');
|
|
11
11
|
var ts = require('@spark-web/utils/ts');
|
|
@@ -45,7 +45,7 @@ var Columns = ts.forwardRefWithAs(function (_ref, forwardedRef) {
|
|
|
45
45
|
collapseOnWide = _theme$utils$responsi2[3];
|
|
46
46
|
return /*#__PURE__*/jsxRuntime.jsx(box.Box, _objectSpread({
|
|
47
47
|
ref: forwardedRef,
|
|
48
|
-
|
|
48
|
+
css: react$1.css(theme$1.utils.resolveResponsiveProps({
|
|
49
49
|
alignItems: alignItems,
|
|
50
50
|
display: 'grid',
|
|
51
51
|
gap: theme$1.utils.mapResponsiveScale(gap, theme$1.spacing),
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
6
6
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
8
|
-
var
|
|
8
|
+
var react$1 = require('@emotion/react');
|
|
9
9
|
var box = require('@spark-web/box');
|
|
10
10
|
var theme = require('@spark-web/theme');
|
|
11
11
|
var ts = require('@spark-web/utils/ts');
|
|
@@ -45,7 +45,7 @@ var Columns = ts.forwardRefWithAs(function (_ref, forwardedRef) {
|
|
|
45
45
|
collapseOnWide = _theme$utils$responsi2[3];
|
|
46
46
|
return /*#__PURE__*/jsxRuntime.jsx(box.Box, _objectSpread({
|
|
47
47
|
ref: forwardedRef,
|
|
48
|
-
|
|
48
|
+
css: react$1.css(theme$1.utils.resolveResponsiveProps({
|
|
49
49
|
alignItems: alignItems,
|
|
50
50
|
display: 'grid',
|
|
51
51
|
gap: theme$1.utils.mapResponsiveScale(gap, theme$1.spacing),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';
|
|
2
2
|
import _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray';
|
|
3
3
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
4
|
-
import { css } from '@emotion/
|
|
4
|
+
import { css } from '@emotion/react';
|
|
5
5
|
import { Box } from '@spark-web/box';
|
|
6
6
|
import { createResponsiveMapFn, useTheme } from '@spark-web/theme';
|
|
7
7
|
import { forwardRefWithAs } from '@spark-web/utils/ts';
|
|
@@ -41,7 +41,7 @@ var Columns = forwardRefWithAs(function (_ref, forwardedRef) {
|
|
|
41
41
|
collapseOnWide = _theme$utils$responsi2[3];
|
|
42
42
|
return /*#__PURE__*/jsx(Box, _objectSpread({
|
|
43
43
|
ref: forwardedRef,
|
|
44
|
-
|
|
44
|
+
css: css(theme.utils.resolveResponsiveProps({
|
|
45
45
|
alignItems: alignItems,
|
|
46
46
|
display: 'grid',
|
|
47
47
|
gap: theme.utils.mapResponsiveScale(gap, theme.spacing),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-web/columns",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-rc.1",
|
|
4
4
|
"homepage": "https://github.com/brighte-labs/spark-web#readme",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@babel/runtime": "^7.
|
|
19
|
-
"@emotion/
|
|
20
|
-
"@spark-web/box": "^
|
|
21
|
-
"@spark-web/theme": "^
|
|
22
|
-
"@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/theme": "^4.0.0-rc.1",
|
|
22
|
+
"@spark-web/utils": "^2.0.0-rc.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/react": "^18.2.0",
|