@spark-web/box 2.0.0-rc.7 → 2.0.0-rc.9

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,29 @@
1
1
  # @spark-web/box
2
2
 
3
+ ## 2.0.0-rc.9
4
+
5
+ ### Major Changes
6
+
7
+ - test
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies []:
12
+ - @spark-web/theme@4.0.0-rc.9
13
+ - @spark-web/utils@2.0.0-rc.9
14
+
15
+ ## 2.0.0-rc.8
16
+
17
+ ### Major Changes
18
+
19
+ - test
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies []:
24
+ - @spark-web/theme@4.0.0-rc.8
25
+ - @spark-web/utils@2.0.0-rc.8
26
+
3
27
  ## 2.0.0-rc.7
4
28
 
5
29
  ### Major Changes
@@ -10,7 +10,7 @@ export declare type BoxProps = {
10
10
  /** An identifier which must be unique in the whole document. */
11
11
  id?: string;
12
12
  /** Custom css styles. */
13
- className?: SerializedStyles;
13
+ css?: SerializedStyles;
14
14
  /**
15
15
  * When providing a component using the "as" prop, optionally tell the system
16
16
  * what the underlying element will be. Used internally to manage reset
@@ -30,7 +30,7 @@ export declare const Box: <Comp extends import("react").ElementType<any, keyof i
30
30
  /** An identifier which must be unique in the whole document. */
31
31
  id?: string | undefined;
32
32
  /** Custom css styles. */
33
- className?: SerializedStyles | undefined;
33
+ css?: SerializedStyles | undefined;
34
34
  /**
35
35
  * When providing a component using the "as" prop, optionally tell the system
36
36
  * what the underlying element will be. Used internally to manage reset
@@ -313,13 +313,13 @@ function useBoxProps(props) {
313
313
  };
314
314
  }
315
315
 
316
- var _excluded = ["as", "asElement", "className", "data", "id"];
316
+ var _excluded = ["as", "asElement", "css", "data", "id"];
317
317
  /** Exposes a prop-based API for adding styles to a view, within the constraints of the theme. */
318
318
  var Box = ts.forwardRefWithAs(function (_ref, forwardedRef) {
319
319
  var _ref$as = _ref.as,
320
320
  Tag = _ref$as === void 0 ? 'div' : _ref$as,
321
321
  asElement = _ref.asElement,
322
- className = _ref.className,
322
+ cssProps = _ref.css,
323
323
  data = _ref.data,
324
324
  id = _ref.id,
325
325
  props = _objectWithoutProperties(_ref, _excluded);
@@ -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), css(className))
337
+ css: cx(css(resetStyles), css(styles, cssProps))
338
338
  }, attributes));
339
339
  }
340
340
  });
@@ -313,13 +313,13 @@ function useBoxProps(props) {
313
313
  };
314
314
  }
315
315
 
316
- var _excluded = ["as", "asElement", "className", "data", "id"];
316
+ var _excluded = ["as", "asElement", "css", "data", "id"];
317
317
  /** Exposes a prop-based API for adding styles to a view, within the constraints of the theme. */
318
318
  var Box = ts.forwardRefWithAs(function (_ref, forwardedRef) {
319
319
  var _ref$as = _ref.as,
320
320
  Tag = _ref$as === void 0 ? 'div' : _ref$as,
321
321
  asElement = _ref.asElement,
322
- className = _ref.className,
322
+ cssProps = _ref.css,
323
323
  data = _ref.data,
324
324
  id = _ref.id,
325
325
  props = _objectWithoutProperties(_ref, _excluded);
@@ -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), css(className))
337
+ css: cx(css(resetStyles), css(styles, cssProps))
338
338
  }, attributes));
339
339
  }
340
340
  });
@@ -309,13 +309,13 @@ function useBoxProps(props) {
309
309
  };
310
310
  }
311
311
 
312
- var _excluded = ["as", "asElement", "className", "data", "id"];
312
+ var _excluded = ["as", "asElement", "css", "data", "id"];
313
313
  /** Exposes a prop-based API for adding styles to a view, within the constraints of the theme. */
314
314
  var Box = forwardRefWithAs(function (_ref, forwardedRef) {
315
315
  var _ref$as = _ref.as,
316
316
  Tag = _ref$as === void 0 ? 'div' : _ref$as,
317
317
  asElement = _ref.asElement,
318
- className = _ref.className,
318
+ cssProps = _ref.css,
319
319
  data = _ref.data,
320
320
  id = _ref.id,
321
321
  props = _objectWithoutProperties(_ref, _excluded);
@@ -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), css(className))
333
+ css: cx(css(resetStyles), css(styles, cssProps))
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.7",
3
+ "version": "2.0.0-rc.9",
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.7",
21
- "@spark-web/utils": "^2.0.0-rc.7"
20
+ "@spark-web/theme": "^4.0.0-rc.9",
21
+ "@spark-web/utils": "^2.0.0-rc.9"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/react": "^18.2.0",