@sproutsocial/racine 8.0.0-beta-dark-mode.7 → 8.0.0-beta-dark-mode.11
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/__flow__/Button/index.stories.js +2 -2
- package/__flow__/Link/constants.js +3 -3
- package/__flow__/Message/index.js +2 -2
- package/__flow__/Modal/index.js +1 -1
- package/__flow__/Stack/index.js +2 -2
- package/__flow__/Stack/index.stories.js +19 -0
- package/__flow__/themes/default/theme.js +1 -5
- package/__flow__/types/theme.flow.js +3 -3
- package/commonjs/Link/constants.js +2 -2
- package/commonjs/Message/index.js +2 -2
- package/commonjs/Modal/index.js +1 -1
- package/lib/Link/constants.js +3 -3
- package/lib/Message/index.js +2 -2
- package/lib/Modal/index.js +1 -1
- package/lib/types/theme.flow.js +1 -2
- package/package.json +1 -1
|
@@ -76,7 +76,7 @@ largeButton.story = {
|
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
export const pillButton = () => (
|
|
79
|
-
<Box bg="background.
|
|
79
|
+
<Box bg="container.background.base" p={400}>
|
|
80
80
|
<Button appearance={text("shape", "pill")}>
|
|
81
81
|
<Icon name="reply" mr={350} />
|
|
82
82
|
Pill Button
|
|
@@ -89,7 +89,7 @@ pillButton.story = {
|
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
export const pillIconOnlyButton = () => (
|
|
92
|
-
<Box bg="background.
|
|
92
|
+
<Box bg="container.background.base" p={400}>
|
|
93
93
|
<Button appearance={text("shape", "pill")} ariaLabel="This is a label">
|
|
94
94
|
<Icon name="circle-check-outline" />
|
|
95
95
|
</Button>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @flow
|
|
2
|
-
import {
|
|
2
|
+
import { COLOR_BLUE_900 } from "@sproutsocial/seeds-color";
|
|
3
3
|
|
|
4
4
|
const defaultLink = {
|
|
5
|
-
color: "
|
|
6
|
-
hoverColor:
|
|
5
|
+
color: "link",
|
|
6
|
+
hoverColor: "link.hover",
|
|
7
7
|
activeColor: COLOR_BLUE_900,
|
|
8
8
|
fontWeight: "semibold",
|
|
9
9
|
};
|
|
@@ -48,7 +48,7 @@ export type TypeProps = {
|
|
|
48
48
|
const MessageContext = React.createContext({
|
|
49
49
|
density: MESSAGE_DENSITIES.SMALL,
|
|
50
50
|
borderColor: "container.border.base",
|
|
51
|
-
bg: "background.
|
|
51
|
+
bg: "container.background.base",
|
|
52
52
|
indentContent: true,
|
|
53
53
|
});
|
|
54
54
|
|
|
@@ -56,7 +56,7 @@ const Message = ({
|
|
|
56
56
|
children,
|
|
57
57
|
density = MESSAGE_DENSITIES.SMALL,
|
|
58
58
|
borderColor = "container.border.base",
|
|
59
|
-
bg = "background.
|
|
59
|
+
bg = "container.background.base",
|
|
60
60
|
indentContent = true,
|
|
61
61
|
innerRef,
|
|
62
62
|
qa,
|
package/__flow__/Modal/index.js
CHANGED
package/__flow__/Stack/index.js
CHANGED
|
@@ -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 {
|
|
6
|
+
import type { TypeSpaceLiterals } 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<
|
|
14
|
+
space?: TypeResponsive<TypeSpaceLiterals>,
|
|
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) */
|
|
@@ -119,3 +119,22 @@ export const ResponsiveSpace = () => (
|
|
|
119
119
|
ResponsiveSpace.story = {
|
|
120
120
|
name: "Responsive space",
|
|
121
121
|
};
|
|
122
|
+
|
|
123
|
+
export const NumberSpaceType = () => (
|
|
124
|
+
<Stack
|
|
125
|
+
direction={select("Direction", directionOptions, "vertical")}
|
|
126
|
+
align={select("Alignment", alignmentOptions, "left")}
|
|
127
|
+
bg="neutral.100"
|
|
128
|
+
p={400}
|
|
129
|
+
>
|
|
130
|
+
<Item>This</Item>
|
|
131
|
+
<Item>is</Item>
|
|
132
|
+
<Item>the</Item>
|
|
133
|
+
<Item>stack</Item>
|
|
134
|
+
<Item>component</Item>
|
|
135
|
+
</Stack>
|
|
136
|
+
);
|
|
137
|
+
|
|
138
|
+
NumberSpaceType.story = {
|
|
139
|
+
name: "Testing types",
|
|
140
|
+
};
|
|
@@ -262,11 +262,7 @@ export type TypeSpaceLiterals =
|
|
|
262
262
|
| 600
|
|
263
263
|
| string;
|
|
264
264
|
|
|
265
|
-
export
|
|
266
|
-
[TypeSpaceLiterals]: string,
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
export const space: TypeSpace = {
|
|
265
|
+
export const space = {
|
|
270
266
|
"0": SPACE.SPACE_SIZE_0,
|
|
271
267
|
"100": SPACE.SPACE_SIZE_100,
|
|
272
268
|
"200": SPACE.SPACE_SIZE_200,
|
|
@@ -7,18 +7,18 @@ import {
|
|
|
7
7
|
borders,
|
|
8
8
|
borderWidths,
|
|
9
9
|
shadows,
|
|
10
|
-
|
|
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
|
|
15
|
+
import type { TypeFontFamilyString } 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
|
-
|
|
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;
|
|
@@ -6,8 +6,8 @@ exports.default = void 0;
|
|
|
6
6
|
var _seedsColor = require("@sproutsocial/seeds-color");
|
|
7
7
|
|
|
8
8
|
var defaultLink = {
|
|
9
|
-
color: "
|
|
10
|
-
hoverColor:
|
|
9
|
+
color: "link",
|
|
10
|
+
hoverColor: "link.hover",
|
|
11
11
|
activeColor: _seedsColor.COLOR_BLUE_900,
|
|
12
12
|
fontWeight: "semibold"
|
|
13
13
|
};
|
|
@@ -52,7 +52,7 @@ var avatarSizeMap = function avatarSizeMap(density) {
|
|
|
52
52
|
var MessageContext = /*#__PURE__*/React.createContext({
|
|
53
53
|
density: MESSAGE_DENSITIES.SMALL,
|
|
54
54
|
borderColor: "container.border.base",
|
|
55
|
-
bg: "background.
|
|
55
|
+
bg: "container.background.base",
|
|
56
56
|
indentContent: true
|
|
57
57
|
});
|
|
58
58
|
|
|
@@ -63,7 +63,7 @@ var Message = function Message(_ref) {
|
|
|
63
63
|
_ref$borderColor = _ref.borderColor,
|
|
64
64
|
borderColor = _ref$borderColor === void 0 ? "container.border.base" : _ref$borderColor,
|
|
65
65
|
_ref$bg = _ref.bg,
|
|
66
|
-
bg = _ref$bg === void 0 ? "background.
|
|
66
|
+
bg = _ref$bg === void 0 ? "container.background.base" : _ref$bg,
|
|
67
67
|
_ref$indentContent = _ref.indentContent,
|
|
68
68
|
indentContent = _ref$indentContent === void 0 ? true : _ref$indentContent,
|
|
69
69
|
innerRef = _ref.innerRef,
|
package/commonjs/Modal/index.js
CHANGED
package/lib/Link/constants.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { COLOR_BLUE_900 } from "@sproutsocial/seeds-color";
|
|
2
2
|
var defaultLink = {
|
|
3
|
-
color: "
|
|
4
|
-
hoverColor:
|
|
3
|
+
color: "link",
|
|
4
|
+
hoverColor: "link.hover",
|
|
5
5
|
activeColor: COLOR_BLUE_900,
|
|
6
6
|
fontWeight: "semibold"
|
|
7
7
|
};
|
package/lib/Message/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var avatarSizeMap = function avatarSizeMap(density) {
|
|
|
36
36
|
var MessageContext = /*#__PURE__*/React.createContext({
|
|
37
37
|
density: MESSAGE_DENSITIES.SMALL,
|
|
38
38
|
borderColor: "container.border.base",
|
|
39
|
-
bg: "background.
|
|
39
|
+
bg: "container.background.base",
|
|
40
40
|
indentContent: true
|
|
41
41
|
});
|
|
42
42
|
|
|
@@ -47,7 +47,7 @@ var Message = function Message(_ref) {
|
|
|
47
47
|
_ref$borderColor = _ref.borderColor,
|
|
48
48
|
borderColor = _ref$borderColor === void 0 ? "container.border.base" : _ref$borderColor,
|
|
49
49
|
_ref$bg = _ref.bg,
|
|
50
|
-
bg = _ref$bg === void 0 ? "background.
|
|
50
|
+
bg = _ref$bg === void 0 ? "container.background.base" : _ref$bg,
|
|
51
51
|
_ref$indentContent = _ref.indentContent,
|
|
52
52
|
indentContent = _ref$indentContent === void 0 ? true : _ref$indentContent,
|
|
53
53
|
innerRef = _ref.innerRef,
|
package/lib/Modal/index.js
CHANGED
package/lib/types/theme.flow.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import { breakpoints, typography, fontWeights, radii, borders, borderWidths, shadows
|
|
2
|
-
, easing, duration } from "../themes/default/theme";
|
|
1
|
+
import { breakpoints, typography, fontWeights, radii, borders, borderWidths, shadows, space, easing, duration } from "../themes/default/theme";
|