@sproutsocial/racine 11.0.2-beta.0 → 11.0.2-dependencies.0
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__/Avatar/index.test.js +0 -5
- package/__flow__/Badge/index.test.js +0 -5
- package/__flow__/Breadcrumb/index.js +0 -2
- package/__flow__/Button/index.stories.js +51 -67
- package/__flow__/CharacterCounter/index.test.js +0 -8
- package/__flow__/ChartLegend/index.test.js +0 -37
- package/__flow__/Collapsible/index.js +0 -3
- package/__flow__/Drawer/index.js +0 -4
- package/__flow__/EmptyState/index.test.js +1 -3
- package/__flow__/EnumIconNames.js +1 -1
- package/__flow__/Fieldset/index.js +2 -8
- package/__flow__/Icon/index.js +1 -5
- package/__flow__/IconViewBoxes.js +1 -1
- package/__flow__/Link/index.test.js +0 -10
- package/__flow__/Loader/index.test.js +0 -14
- package/__flow__/Menu/__snapshots__/index.test.js.snap +2 -2
- package/__flow__/Menu/index.js +0 -7
- package/__flow__/Message/index.js +0 -7
- package/__flow__/Modal/index.js +0 -5
- package/__flow__/Modal/index.test.js +0 -19
- package/__flow__/Popout/index.js +1 -4
- package/__flow__/SegmentedControl/index.js +0 -2
- package/__flow__/Table/index.js +0 -6
- package/__flow__/Text/index.js +0 -8
- package/__flow__/Text/index.test.js +0 -39
- package/commonjs/Breadcrumb/index.js +0 -1
- package/commonjs/Collapsible/index.js +0 -2
- package/commonjs/Drawer/index.js +0 -3
- package/commonjs/Fieldset/index.js +2 -6
- package/commonjs/Icon/index.js +1 -3
- package/commonjs/IconViewBoxes.js +0 -2
- package/commonjs/Menu/index.js +0 -6
- package/commonjs/Message/index.js +0 -13
- package/commonjs/Modal/index.js +0 -4
- package/commonjs/Popout/index.js +2 -5
- package/commonjs/SegmentedControl/index.js +0 -1
- package/commonjs/Table/index.js +0 -5
- package/commonjs/Text/index.js +0 -7
- package/commonjs/include-icons.js +1 -1
- package/dist/iconList.js +1 -1
- package/dist/icons.svg +1 -1
- package/icons/deconstructed-negative-sentiment.svg +1 -1
- package/icons/deconstructed-neutral-sentiment.svg +1 -1
- package/icons/deconstructed-positive-sentiment.svg +1 -1
- package/icons/whatsapp.svg +5 -5
- package/includeIcons.js +1 -1
- package/lib/Breadcrumb/index.js +0 -1
- package/lib/Collapsible/index.js +0 -2
- package/lib/Drawer/index.js +0 -3
- package/lib/Fieldset/index.js +2 -6
- package/lib/Icon/index.js +1 -3
- package/lib/IconViewBoxes.js +0 -2
- package/lib/Menu/index.js +0 -6
- package/lib/Message/index.js +0 -13
- package/lib/Modal/index.js +0 -4
- package/lib/Popout/index.js +2 -5
- package/lib/SegmentedControl/index.js +0 -1
- package/lib/Table/index.js +0 -5
- package/lib/Text/index.js +0 -7
- package/lib/include-icons.js +1 -1
- package/package.json +20 -15
- package/icons/address-card-outline.svg +0 -3
- package/icons/magic-wand.svg +0 -3
package/__flow__/Modal/index.js
CHANGED
|
@@ -183,11 +183,6 @@ Modal.Footer = ModalFooter;
|
|
|
183
183
|
Modal.Content = ModalContent;
|
|
184
184
|
Modal.CloseButton = ModalCloseButton;
|
|
185
185
|
|
|
186
|
-
Modal.Header.displayName = "Modal.Header";
|
|
187
|
-
Modal.Footer.displayName = "Modal.Footer";
|
|
188
|
-
Modal.Content.displayName = "Modal.Content";
|
|
189
|
-
Modal.CloseButton.displayName = "Modal.CloseButton";
|
|
190
|
-
|
|
191
186
|
Modal.defaultProps = {
|
|
192
187
|
width: "800px",
|
|
193
188
|
zIndex: 6,
|
|
@@ -7,25 +7,6 @@ import { COLOR_PURPLE_300 } from "@sproutsocial/seeds-color";
|
|
|
7
7
|
afterEach(() => cleanup());
|
|
8
8
|
|
|
9
9
|
describe("Modal", () => {
|
|
10
|
-
it("renders a custom background color", () => {
|
|
11
|
-
// Use baseElement since it renders in a Portal
|
|
12
|
-
const { baseElement } = render(
|
|
13
|
-
<Modal
|
|
14
|
-
isOpen={true}
|
|
15
|
-
label="Label"
|
|
16
|
-
bg={COLOR_PURPLE_300}
|
|
17
|
-
onClose={() => {}}
|
|
18
|
-
closeButtonLabel="Close this dialog"
|
|
19
|
-
>
|
|
20
|
-
ajdsfljasdlfjlasdjf
|
|
21
|
-
</Modal>
|
|
22
|
-
);
|
|
23
|
-
expect(baseElement.querySelector(".ReactModal__Content")).toHaveStyleRule(
|
|
24
|
-
"background-color",
|
|
25
|
-
COLOR_PURPLE_300
|
|
26
|
-
);
|
|
27
|
-
});
|
|
28
|
-
|
|
29
10
|
it("should close on overlay click and esc", () => {
|
|
30
11
|
const onClose = jest.fn();
|
|
31
12
|
const { baseElement, getByText, getByLabelText } = render(
|
package/__flow__/Popout/index.js
CHANGED
|
@@ -388,7 +388,7 @@ export default function Popout({
|
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
type TypePopoutContentProps = React.ElementConfig<typeof Box>;
|
|
391
|
-
|
|
391
|
+
Popout.Content = ({ children, ...rest }: TypePopoutContentProps) => (
|
|
392
392
|
<Box
|
|
393
393
|
bg="container.background.base"
|
|
394
394
|
color="text.body"
|
|
@@ -403,6 +403,3 @@ const PopoutContent = ({ children, ...rest }: TypePopoutContentProps) => (
|
|
|
403
403
|
{children}
|
|
404
404
|
</Box>
|
|
405
405
|
);
|
|
406
|
-
|
|
407
|
-
Popout.Content = PopoutContent;
|
|
408
|
-
Popout.Content.displayName = "Popout.Content";
|
package/__flow__/Table/index.js
CHANGED
|
@@ -116,10 +116,4 @@ Table.TableRow = TableRow;
|
|
|
116
116
|
Table.HeaderCell = TableHeaderCell;
|
|
117
117
|
Table.Cell = TableCell;
|
|
118
118
|
|
|
119
|
-
Table.TableHead.displayName = "Table.TableHead";
|
|
120
|
-
Table.TableBody.displayName = "Table.TableBody";
|
|
121
|
-
Table.TableRow.displayName = "Table.TableRow";
|
|
122
|
-
Table.HeaderCell.displayName = "Table.HeaderCell";
|
|
123
|
-
Table.Cell.displayName = "Table.Cell";
|
|
124
|
-
|
|
125
119
|
export default Table;
|
package/__flow__/Text/index.js
CHANGED
|
@@ -83,12 +83,4 @@ Text.SmallByline = SmallByline;
|
|
|
83
83
|
Text.BodyCopy = BodyCopy;
|
|
84
84
|
Text.SmallBodyCopy = SmallBodyCopy;
|
|
85
85
|
|
|
86
|
-
Text.Headline.displayName = "Text.Headline";
|
|
87
|
-
Text.SubHeadline.displayName = "Text.SubHeadline";
|
|
88
|
-
Text.SmallSubHeadline.displayName = "Text.SmallSubHeadline";
|
|
89
|
-
Text.Byline.displayName = "Text.Byline";
|
|
90
|
-
Text.SmallByline.displayName = "Text.SmallByline";
|
|
91
|
-
Text.BodyCopy.displayName = "Text.BodyCopy";
|
|
92
|
-
Text.SmallBodyCopy.displayName = "Text.SmallBodyCopy";
|
|
93
|
-
|
|
94
86
|
export default Text;
|
|
@@ -4,49 +4,10 @@ import "jest-styled-components";
|
|
|
4
4
|
import Text from "./";
|
|
5
5
|
|
|
6
6
|
describe("Text", () => {
|
|
7
|
-
it("does not set word break or truncated styles by default", () => {
|
|
8
|
-
const { getByDataQaLabel } = render(<Text children="Default" />);
|
|
9
|
-
const component = getByDataQaLabel({ text: "Default" });
|
|
10
|
-
expect(component).not.toHaveStyleRule("word-break", "break-word");
|
|
11
|
-
expect(component).not.toHaveStyleRule("text-overflow", "ellipsis");
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
it("sets word break styles when breakWord is true", () => {
|
|
15
|
-
const { getByDataQaLabel } = render(
|
|
16
|
-
<Text breakWord children="Word Break" />
|
|
17
|
-
);
|
|
18
|
-
const component = getByDataQaLabel({ text: "Word Break" });
|
|
19
|
-
expect(component).toHaveStyleRule("word-break", "break-word");
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it("sets truncated styles when truncated is true", () => {
|
|
23
|
-
const { getByDataQaLabel } = render(
|
|
24
|
-
<Text truncated children="Truncated" />
|
|
25
|
-
);
|
|
26
|
-
const component = getByDataQaLabel({ text: "Truncated" });
|
|
27
|
-
expect(component).toHaveStyleRule("text-overflow", "ellipsis");
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
it("is italic when isItalicized is true", () => {
|
|
31
|
-
const { getByDataQaLabel } = render(
|
|
32
|
-
<Text isItalicized children="Italicized" />
|
|
33
|
-
);
|
|
34
|
-
const component = getByDataQaLabel({ text: "Italicized" });
|
|
35
|
-
expect(component).toHaveStyleRule("font-style", "italic");
|
|
36
|
-
});
|
|
37
|
-
|
|
38
7
|
it("outputs the correct string/content", () => {
|
|
39
8
|
const { getByText } = render(
|
|
40
9
|
<Text children="Supercalifragilisticexpialidocious" />
|
|
41
10
|
);
|
|
42
11
|
expect(getByText("Supercalifragilisticexpialidocious")).toBeTruthy();
|
|
43
12
|
});
|
|
44
|
-
|
|
45
|
-
it("displays a custom size if using fontSize", () => {
|
|
46
|
-
const { getByText } = render(
|
|
47
|
-
<Text children="Custom sized text!" fontSize={1000} />
|
|
48
|
-
);
|
|
49
|
-
const component = getByText("Custom sized text!");
|
|
50
|
-
expect(component).toHaveStyleRule("font-size", "76px");
|
|
51
|
-
});
|
|
52
13
|
});
|
|
@@ -135,7 +135,5 @@ var Panel = function Panel(_ref3) {
|
|
|
135
135
|
|
|
136
136
|
Collapsible.Trigger = Trigger;
|
|
137
137
|
Collapsible.Panel = Panel;
|
|
138
|
-
Collapsible.Trigger.displayName = "Collapsible.Trigger";
|
|
139
|
-
Collapsible.Panel.displayName = "Collapsible.Panel";
|
|
140
138
|
var _default = Collapsible;
|
|
141
139
|
exports.default = _default;
|
package/commonjs/Drawer/index.js
CHANGED
|
@@ -233,8 +233,5 @@ var DrawerContainer = function DrawerContainer(_ref4) {
|
|
|
233
233
|
DrawerContainer.Header = DrawerHeader;
|
|
234
234
|
DrawerContainer.Content = DrawerContent;
|
|
235
235
|
DrawerContainer.CloseButton = DrawerCloseButton;
|
|
236
|
-
DrawerContainer.Header.displayName = "Drawer.Header";
|
|
237
|
-
DrawerContainer.Content.displayName = "Drawer.Content";
|
|
238
|
-
DrawerContainer.CloseButton.displayName = "Drawer.CloseButton";
|
|
239
236
|
var _default = DrawerContainer;
|
|
240
237
|
exports.default = _default;
|
|
@@ -51,7 +51,7 @@ var Fieldset = function Fieldset(_ref) {
|
|
|
51
51
|
);
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
Fieldset.Legend = function (_ref2) {
|
|
55
55
|
var children = _ref2.children,
|
|
56
56
|
rest = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
57
57
|
|
|
@@ -64,7 +64,7 @@ var FieldsetLegend = function FieldsetLegend(_ref2) {
|
|
|
64
64
|
}, rest), children);
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
Fieldset.HelperText = function (_ref3) {
|
|
68
68
|
var children = _ref3.children,
|
|
69
69
|
rest = _objectWithoutPropertiesLoose(_ref3, ["children"]);
|
|
70
70
|
|
|
@@ -75,9 +75,5 @@ var FieldsetHelperText = function FieldsetHelperText(_ref3) {
|
|
|
75
75
|
}, rest), children);
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
Fieldset.Legend = FieldsetLegend;
|
|
79
|
-
Fieldset.HelperText = FieldsetHelperText;
|
|
80
|
-
Fieldset.Legend.displayName = "Fieldset.Legend";
|
|
81
|
-
Fieldset.HelperText.displayName = "Fieldset.HelperText";
|
|
82
78
|
var _default = Fieldset;
|
|
83
79
|
exports.default = _default;
|
package/commonjs/Icon/index.js
CHANGED
|
@@ -64,7 +64,7 @@ var ToggleableIcon = (0, _styledComponents.default)(Icon).withConfig({
|
|
|
64
64
|
return !p.active && (0, _styledComponents.css)(["position:absolute;opacity:0;transform:scale(0);"]);
|
|
65
65
|
});
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
Icon.Toggle = function (_ref2) {
|
|
68
68
|
var activeName = _ref2.activeName,
|
|
69
69
|
inactiveName = _ref2.inactiveName,
|
|
70
70
|
isActive = _ref2.isActive,
|
|
@@ -100,7 +100,5 @@ var IconToggle = function IconToggle(_ref2) {
|
|
|
100
100
|
);
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
Icon.Toggle = IconToggle;
|
|
104
|
-
Icon.Toggle.displayName = "Icon.Toggle";
|
|
105
103
|
var _default = Icon;
|
|
106
104
|
exports.default = _default;
|
|
@@ -6,7 +6,6 @@ module.exports = {
|
|
|
6
6
|
"add-keyword": "0 0 16 16",
|
|
7
7
|
"add-team-member": "0 0 18 13",
|
|
8
8
|
"add-variable": "0 0 18 14",
|
|
9
|
-
"address-card-outline": "0 0 16 16",
|
|
10
9
|
"address-card-solid": "0 0 18 16",
|
|
11
10
|
"adobe-experience-manager": "0 0 16 18",
|
|
12
11
|
"ads": "0 0 9 16",
|
|
@@ -211,7 +210,6 @@ module.exports = {
|
|
|
211
210
|
"location-outline": "0 0 12 16",
|
|
212
211
|
"location": "0 0 12 16",
|
|
213
212
|
"lock": "0 0 14 16",
|
|
214
|
-
"magic-wand": "0 0 17 16",
|
|
215
213
|
"male": "0 0 16 20",
|
|
216
214
|
"marketo": "0 0 16 18",
|
|
217
215
|
"mention": "0 0 16 16",
|
package/commonjs/Menu/index.js
CHANGED
|
@@ -429,12 +429,6 @@ Menu.Checkbox = MenuCheckbox;
|
|
|
429
429
|
Menu.Radio = MenuRadio;
|
|
430
430
|
Menu.Divider = MenuDivider;
|
|
431
431
|
Menu.FilterInput = MenuFilterInput;
|
|
432
|
-
Menu.Group.displayName = "Menu.Group";
|
|
433
|
-
Menu.Item.displayName = "Menu.Item";
|
|
434
|
-
Menu.Checkbox.displayName = "Menu.Checkbox";
|
|
435
|
-
Menu.Radio.displayName = "Menu.Radio";
|
|
436
|
-
Menu.Divider.displayName = "Menu.Divider";
|
|
437
|
-
Menu.FilterInput.displayName = "Menu.FilterInput";
|
|
438
432
|
var CustomPopoutContent = (0, _styledComponents.default)(_Popout.default.Content).withConfig({
|
|
439
433
|
displayName: "Menu__CustomPopoutContent",
|
|
440
434
|
componentId: "sc-1p3rdnp-1"
|
|
@@ -98,8 +98,6 @@ Message.Body = function (props) {
|
|
|
98
98
|
});
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
Message.Body.displayName = "Message.Body";
|
|
102
|
-
|
|
103
101
|
Message.Header = function (props) {
|
|
104
102
|
return /*#__PURE__*/React.createElement(MessageContext.Consumer, null, function (_ref3) {
|
|
105
103
|
var density = _ref3.density,
|
|
@@ -111,8 +109,6 @@ Message.Header = function (props) {
|
|
|
111
109
|
});
|
|
112
110
|
};
|
|
113
111
|
|
|
114
|
-
Message.Header.displayName = "Message.Header";
|
|
115
|
-
|
|
116
112
|
Message.Footer = function (props) {
|
|
117
113
|
return /*#__PURE__*/React.createElement(MessageContext.Consumer, null, function (_ref4) {
|
|
118
114
|
var density = _ref4.density,
|
|
@@ -126,8 +122,6 @@ Message.Footer = function (props) {
|
|
|
126
122
|
});
|
|
127
123
|
};
|
|
128
124
|
|
|
129
|
-
Message.Footer.displayName = "Message.Footer";
|
|
130
|
-
|
|
131
125
|
Message.Meta = function (props) {
|
|
132
126
|
return /*#__PURE__*/React.createElement(MessageContext.Consumer, null, function (_ref5) {
|
|
133
127
|
var density = _ref5.density,
|
|
@@ -141,16 +135,12 @@ Message.Meta = function (props) {
|
|
|
141
135
|
});
|
|
142
136
|
};
|
|
143
137
|
|
|
144
|
-
Message.Meta.displayName = "Message.Meta";
|
|
145
|
-
|
|
146
138
|
Message.Button = function (props) {
|
|
147
139
|
return /*#__PURE__*/React.createElement(_Button.default, _extends({}, props, {
|
|
148
140
|
appearance: props.appearance || "pill"
|
|
149
141
|
}));
|
|
150
142
|
};
|
|
151
143
|
|
|
152
|
-
Message.Button.displayName = "Message.Button";
|
|
153
|
-
|
|
154
144
|
Message.Avatar = function (props) {
|
|
155
145
|
return /*#__PURE__*/React.createElement(MessageContext.Consumer, null, function (_ref6) {
|
|
156
146
|
var density = _ref6.density;
|
|
@@ -160,8 +150,6 @@ Message.Avatar = function (props) {
|
|
|
160
150
|
});
|
|
161
151
|
};
|
|
162
152
|
|
|
163
|
-
Message.Avatar.displayName = "Message.Avatar";
|
|
164
|
-
|
|
165
153
|
Message.Checkbox = function (props) {
|
|
166
154
|
return /*#__PURE__*/React.createElement(MessageContext.Consumer, null, function (_ref7) {
|
|
167
155
|
var density = _ref7.density;
|
|
@@ -176,7 +164,6 @@ Message.Checkbox = function (props) {
|
|
|
176
164
|
});
|
|
177
165
|
};
|
|
178
166
|
|
|
179
|
-
Message.Checkbox.displayName = "Message.Checkbox";
|
|
180
167
|
Message.Context = MessageContext;
|
|
181
168
|
Message.DENSITIES = MESSAGE_DENSITIES;
|
|
182
169
|
var _default = Message;
|
package/commonjs/Modal/index.js
CHANGED
|
@@ -147,10 +147,6 @@ Modal.Header = ModalHeader;
|
|
|
147
147
|
Modal.Footer = ModalFooter;
|
|
148
148
|
Modal.Content = ModalContent;
|
|
149
149
|
Modal.CloseButton = ModalCloseButton;
|
|
150
|
-
Modal.Header.displayName = "Modal.Header";
|
|
151
|
-
Modal.Footer.displayName = "Modal.Footer";
|
|
152
|
-
Modal.Content.displayName = "Modal.Content";
|
|
153
|
-
Modal.CloseButton.displayName = "Modal.CloseButton";
|
|
154
150
|
Modal.defaultProps = {
|
|
155
151
|
width: "800px",
|
|
156
152
|
zIndex: 6
|
package/commonjs/Popout/index.js
CHANGED
|
@@ -280,7 +280,7 @@ function Popout(_ref) {
|
|
|
280
280
|
}));
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
|
|
283
|
+
Popout.Content = function (_ref4) {
|
|
284
284
|
var children = _ref4.children,
|
|
285
285
|
rest = _objectWithoutPropertiesLoose(_ref4, ["children"]);
|
|
286
286
|
|
|
@@ -294,7 +294,4 @@ var PopoutContent = function PopoutContent(_ref4) {
|
|
|
294
294
|
p: 400,
|
|
295
295
|
m: 300
|
|
296
296
|
}, rest), children);
|
|
297
|
-
};
|
|
298
|
-
|
|
299
|
-
Popout.Content = PopoutContent;
|
|
300
|
-
Popout.Content.displayName = "Popout.Content";
|
|
297
|
+
};
|
package/commonjs/Table/index.js
CHANGED
|
@@ -103,10 +103,5 @@ Table.TableBody = TableBody;
|
|
|
103
103
|
Table.TableRow = TableRow;
|
|
104
104
|
Table.HeaderCell = _TableHeaderCell.default;
|
|
105
105
|
Table.Cell = _TableCell.default;
|
|
106
|
-
Table.TableHead.displayName = "Table.TableHead";
|
|
107
|
-
Table.TableBody.displayName = "Table.TableBody";
|
|
108
|
-
Table.TableRow.displayName = "Table.TableRow";
|
|
109
|
-
Table.HeaderCell.displayName = "Table.HeaderCell";
|
|
110
|
-
Table.Cell.displayName = "Table.Cell";
|
|
111
106
|
var _default = Table;
|
|
112
107
|
exports.default = _default;
|
package/commonjs/Text/index.js
CHANGED
|
@@ -106,12 +106,5 @@ Text.Byline = Byline;
|
|
|
106
106
|
Text.SmallByline = SmallByline;
|
|
107
107
|
Text.BodyCopy = BodyCopy;
|
|
108
108
|
Text.SmallBodyCopy = SmallBodyCopy;
|
|
109
|
-
Text.Headline.displayName = "Text.Headline";
|
|
110
|
-
Text.SubHeadline.displayName = "Text.SubHeadline";
|
|
111
|
-
Text.SmallSubHeadline.displayName = "Text.SmallSubHeadline";
|
|
112
|
-
Text.Byline.displayName = "Text.Byline";
|
|
113
|
-
Text.SmallByline.displayName = "Text.SmallByline";
|
|
114
|
-
Text.BodyCopy.displayName = "Text.BodyCopy";
|
|
115
|
-
Text.SmallBodyCopy.displayName = "Text.SmallBodyCopy";
|
|
116
109
|
var _default = Text;
|
|
117
110
|
exports.default = _default;
|