@sproutsocial/racine 8.0.0-beta-dark-mode.3 → 8.0.0-beta-dark-mode.7

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.
@@ -3,7 +3,7 @@ import * as React from "react";
3
3
  import { Children } from "react";
4
4
  import Box from "../Box";
5
5
  import { normalizeResponsiveProp } from "../utils/responsiveProps";
6
- import type { TypeSpace } from "../types/theme.flow";
6
+ import type { TypeSpace } from "../themes/default/theme";
7
7
  import type { TypeResponsive } from "../types/system-props.flow";
8
8
 
9
9
  type TypeDirection = "vertical" | "horizontal";
@@ -11,7 +11,7 @@ type TypeAlignment = "left" | "center" | "right" | "stretch";
11
11
 
12
12
  type TypeProps = {
13
13
  /** Amount of space between items in the stack */
14
- space?: TypeResponsive<$Keys<TypeSpace>>,
14
+ space?: TypeResponsive<TypeSpace>,
15
15
  /** Alignment of the items in the stack (horizontal or vertical) */
16
16
  align?: TypeResponsive<TypeAlignment>,
17
17
  /** Axis upon which the stack is laid out (left, center, right, or stretch) */
@@ -250,7 +250,23 @@ export const fontWeights = {
250
250
  extrabold: TYPOGRAPHY.TYPOGRAPHY_WEIGHT_EXTRA_BOLD,
251
251
  };
252
252
 
253
- export const space = {
253
+ export type TypeSpaceLiterals =
254
+ | 0
255
+ | 100
256
+ | 200
257
+ | 300
258
+ | 350
259
+ | 400
260
+ | 450
261
+ | 500
262
+ | 600
263
+ | string;
264
+
265
+ export type TypeSpace = {
266
+ [TypeSpaceLiterals]: string,
267
+ };
268
+
269
+ export const space: TypeSpace = {
254
270
  "0": SPACE.SPACE_SIZE_0,
255
271
  "100": SPACE.SPACE_SIZE_100,
256
272
  "200": SPACE.SPACE_SIZE_200,
@@ -331,6 +347,4 @@ const theme = {
331
347
  duration,
332
348
  };
333
349
 
334
- console.log(theme.space);
335
-
336
350
  export default theme;
@@ -7,18 +7,18 @@ import {
7
7
  borders,
8
8
  borderWidths,
9
9
  shadows,
10
- space,
10
+ //space,
11
11
  easing,
12
12
  duration,
13
13
  } from "../themes/default/theme";
14
14
  import type { TypeColors } from "./theme.colors.flow.js";
15
- import type { TypeFontFamilyString } from "../themes/default/theme";
15
+ import type { TypeFontFamilyString, TypeSpace } from "../themes/default/theme";
16
16
 
17
17
  export type TypeBreakpoint = typeof breakpoints;
18
18
  export type TypeTypography = typeof typography;
19
19
  export type TypeFontWeight = typeof fontWeights;
20
20
  export type TypeFontFamily = TypeFontFamilyString;
21
- export type TypeSpace = typeof space;
21
+ //export type TypeSpace = typeof space;
22
22
  export type TypeColor = TypeColors;
23
23
  export type TypeRadii = typeof radii;
24
24
  export type TypeBorder = typeof borders;
@@ -329,6 +329,5 @@ var theme = {
329
329
  easing: easing,
330
330
  duration: duration
331
331
  };
332
- console.log(theme.space);
333
332
  var _default = theme;
334
333
  exports.default = _default;
@@ -302,5 +302,4 @@ var theme = {
302
302
  easing: easing,
303
303
  duration: duration
304
304
  };
305
- console.log(theme.space);
306
305
  export default theme;
@@ -1 +1,2 @@
1
- import { breakpoints, typography, fontWeights, radii, borders, borderWidths, shadows, space, easing, duration } from "../themes/default/theme";
1
+ import { breakpoints, typography, fontWeights, radii, borders, borderWidths, shadows //space,
2
+ , easing, duration } from "../themes/default/theme";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "8.0.0-beta-dark-mode.3",
3
+ "version": "8.0.0-beta-dark-mode.7",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "__flow__",