@spark-web/box 2.0.0-rc.14 → 2.0.0-rc.15

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,17 @@
1
1
  # @spark-web/box
2
2
 
3
+ ## 2.0.0-rc.15
4
+
5
+ ### Major Changes
6
+
7
+ - test
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies []:
12
+ - @spark-web/theme@4.0.0-rc.15
13
+ - @spark-web/utils@2.0.0-rc.15
14
+
3
15
  ## 2.0.0-rc.14
4
16
 
5
17
  ### Major Changes
@@ -38,11 +38,11 @@ export declare const Box: <Comp extends import("react").ElementType<any, keyof i
38
38
  */
39
39
  asElement?: keyof HTMLElementTagNameMap | undefined;
40
40
  } & {
41
- background?: "body" | "input" | "infoLight" | "criticalLight" | "positiveLight" | "cautionLight" | "muted" | "disabled" | "backdrop" | "surface" | "surfaceMuted" | "surfacePressed" | "fieldAccent" | "inputPressed" | "inputDisabled" | "accent" | "accentMuted" | "neutral" | "neutralLow" | "primary" | "primaryLow" | "primaryMuted" | "secondary" | "secondaryLow" | "secondaryMuted" | "caution" | "cautionLow" | "cautionMuted" | "critical" | "criticalLow" | "criticalMuted" | "info" | "infoLow" | "infoMuted" | "positive" | "positiveLow" | "positiveMuted" | undefined;
41
+ background?: "disabled" | "body" | "input" | "infoLight" | "criticalLight" | "positiveLight" | "cautionLight" | "muted" | "backdrop" | "surface" | "surfaceMuted" | "surfacePressed" | "fieldAccent" | "inputPressed" | "inputDisabled" | "accent" | "accentMuted" | "neutral" | "neutralLow" | "primary" | "primaryLow" | "primaryMuted" | "secondary" | "secondaryLow" | "secondaryMuted" | "caution" | "cautionLow" | "cautionMuted" | "critical" | "criticalLow" | "criticalMuted" | "info" | "infoLow" | "infoMuted" | "positive" | "positiveLow" | "positiveMuted" | undefined;
42
42
  cursor?: "default" | "pointer" | undefined;
43
43
  minHeight?: 0 | undefined;
44
44
  minWidth?: 0 | undefined;
45
- overflow?: "hidden" | "scroll" | "auto" | "visible" | undefined;
46
- shadow?: "small" | "large" | "medium" | undefined;
45
+ overflow?: "auto" | "hidden" | "scroll" | "visible" | undefined;
46
+ shadow?: "small" | "medium" | "large" | undefined;
47
47
  userSelect?: "none" | undefined;
48
48
  } & import("./use-box-styles.js").ResponsiveBoxProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
@@ -329,12 +329,14 @@ var Box = ts.forwardRefWithAs(function (_ref, forwardedRef) {
329
329
  var resetStyles = internal.resetElementStyles(asElement !== null && asElement !== void 0 ? asElement : Tag);
330
330
  var element = jsxRuntime.jsx(react$1.ClassNames, {
331
331
  children: function children(_ref2) {
332
- var css = _ref2.css,
333
- cx = _ref2.cx;
332
+ var css = _ref2.css;
334
333
  return jsxRuntime.jsx(Tag, _objectSpread(_objectSpread({}, data ? internal.buildDataAttributes(data) : undefined), {}, {
335
334
  ref: forwardedRef,
336
- id: id,
337
- css: cx(css(resetStyles), css(styles), css(cssProps))
335
+ id: id
336
+ // css={cx(css(resetStyles), css(styles), css(cssProps))}
337
+ ,
338
+
339
+ css: css(resetStyles, styles, cssProps)
338
340
  }, attributes));
339
341
  }
340
342
  });
@@ -329,12 +329,14 @@ var Box = ts.forwardRefWithAs(function (_ref, forwardedRef) {
329
329
  var resetStyles = internal.resetElementStyles(asElement !== null && asElement !== void 0 ? asElement : Tag);
330
330
  var element = jsxRuntime.jsx(react$1.ClassNames, {
331
331
  children: function children(_ref2) {
332
- var css = _ref2.css,
333
- cx = _ref2.cx;
332
+ var css = _ref2.css;
334
333
  return jsxRuntime.jsx(Tag, _objectSpread(_objectSpread({}, data ? internal.buildDataAttributes(data) : undefined), {}, {
335
334
  ref: forwardedRef,
336
- id: id,
337
- css: cx(css(resetStyles), css(styles), css(cssProps))
335
+ id: id
336
+ // css={cx(css(resetStyles), css(styles), css(cssProps))}
337
+ ,
338
+
339
+ css: css(resetStyles, styles, cssProps)
338
340
  }, attributes));
339
341
  }
340
342
  });
@@ -325,12 +325,14 @@ var Box = forwardRefWithAs(function (_ref, forwardedRef) {
325
325
  var resetStyles = resetElementStyles(asElement !== null && asElement !== void 0 ? asElement : Tag);
326
326
  var element = jsx(ClassNames, {
327
327
  children: function children(_ref2) {
328
- var css = _ref2.css,
329
- cx = _ref2.cx;
328
+ var css = _ref2.css;
330
329
  return jsx(Tag, _objectSpread(_objectSpread({}, data ? buildDataAttributes(data) : undefined), {}, {
331
330
  ref: forwardedRef,
332
- id: id,
333
- css: cx(css(resetStyles), css(styles), css(cssProps))
331
+ id: id
332
+ // css={cx(css(resetStyles), css(styles), css(cssProps))}
333
+ ,
334
+
335
+ css: css(resetStyles, styles, cssProps)
334
336
  }, attributes));
335
337
  }
336
338
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spark-web/box",
3
- "version": "2.0.0-rc.14",
3
+ "version": "2.0.0-rc.15",
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.14",
21
- "@spark-web/utils": "^2.0.0-rc.14"
20
+ "@spark-web/theme": "^4.0.0-rc.15",
21
+ "@spark-web/utils": "^2.0.0-rc.15"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/react": "^18.2.0",