@sproutsocial/racine 11.1.2-beta.0 → 11.1.2
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 +6 -0
- package/__flow__/themes/dark/theme.js +1 -0
- package/__flow__/themes/light/literal-colors.js +2 -0
- package/__flow__/themes/light/theme.js +1 -0
- package/__flow__/types/theme.colors.flow.js +27 -0
- package/commonjs/Avatar/index.js +4 -7
- package/commonjs/Badge/index.js +1 -3
- package/commonjs/Badge/styles.js +1 -1
- package/commonjs/Banner/index.js +1 -3
- package/commonjs/Banner/styles.js +1 -1
- package/commonjs/Box/styles.js +1 -1
- package/commonjs/Breadcrumb/index.js +2 -5
- package/commonjs/Button/index.js +1 -3
- package/commonjs/Card/index.js +1 -3
- package/commonjs/Card/styles.js +3 -3
- package/commonjs/CharacterCounter/index.js +1 -3
- package/commonjs/CharacterCounter/styles.js +1 -1
- package/commonjs/ChartLegend/index.js +1 -3
- package/commonjs/ChartLegend/styles.js +3 -3
- package/commonjs/Checkbox/index.js +1 -3
- package/commonjs/Checkbox/styles.js +1 -1
- package/commonjs/Collapsible/index.js +2 -5
- package/commonjs/DatePicker/DateRangePicker.js +1 -3
- package/commonjs/DatePicker/SingleDatePicker.js +1 -3
- package/commonjs/DatePicker/StatefulDateRangePicker.js +1 -3
- package/commonjs/DatePicker/StatefulSingleDatePicker.js +1 -3
- package/commonjs/DatePicker/common.js +1 -1
- package/commonjs/DatePicker/styles.js +6 -2
- package/commonjs/Drawer/SlideTransition.js +1 -3
- package/commonjs/Drawer/index.js +4 -9
- package/commonjs/Drawer/styles.js +2 -2
- package/commonjs/EmptyState/index.js +1 -3
- package/commonjs/Fieldset/index.js +3 -7
- package/commonjs/FormField/index.js +1 -3
- package/commonjs/Icon/index.js +2 -5
- package/commonjs/Icon/styles.js +1 -1
- package/commonjs/Image/index.js +1 -3
- package/commonjs/Image/styles.js +1 -1
- package/commonjs/Indicator/index.js +1 -3
- package/commonjs/Input/index.js +1 -3
- package/commonjs/Input/styles.js +2 -2
- package/commonjs/KeyboardKey/index.js +1 -3
- package/commonjs/Label/index.js +2 -4
- package/commonjs/Link/index.js +1 -3
- package/commonjs/Link/styles.js +1 -1
- package/commonjs/Listbox/index.js +4 -7
- package/commonjs/Loader/index.js +1 -3
- package/commonjs/Loader/styles.js +2 -2
- package/commonjs/LoaderButton/index.js +1 -3
- package/commonjs/Menu/constants.js +1 -1
- package/commonjs/Menu/descendants.js +7 -10
- package/commonjs/Menu/hooks.js +1 -1
- package/commonjs/Menu/index.js +16 -22
- package/commonjs/Menu/styles.js +2 -2
- package/commonjs/Message/index.js +1 -3
- package/commonjs/Message/styles.js +1 -1
- package/commonjs/Modal/index.js +3 -7
- package/commonjs/Modal/styles.js +6 -4
- package/commonjs/Numeral/constants.js +1 -1
- package/commonjs/Numeral/index.js +1 -3
- package/commonjs/Numeral/styles.js +3 -3
- package/commonjs/OverflowList/styles.js +1 -1
- package/commonjs/Popout/index.js +3 -7
- package/commonjs/Popout/styles.js +1 -1
- package/commonjs/Radio/index.js +1 -3
- package/commonjs/Radio/styles.js +4 -4
- package/commonjs/SegmentedControl/index.js +2 -5
- package/commonjs/Select/index.js +1 -3
- package/commonjs/Stack/index.js +1 -3
- package/commonjs/Switch/index.js +1 -3
- package/commonjs/Switch/styles.js +1 -1
- package/commonjs/Table/index.js +5 -10
- package/commonjs/TableCell/index.js +1 -3
- package/commonjs/TableHeaderCell/index.js +1 -3
- package/commonjs/TableRowAccordion/index.js +1 -3
- package/commonjs/Tabs/index.js +2 -5
- package/commonjs/Tabs/styles.js +4 -4
- package/commonjs/Text/index.js +1 -3
- package/commonjs/Text/styles.js +1 -1
- package/commonjs/Textarea/index.js +1 -3
- package/commonjs/Toast/index.js +15 -15
- package/commonjs/Toast/styles.js +7 -4
- package/commonjs/ToggleHint/index.js +1 -3
- package/commonjs/Token/index.js +1 -3
- package/commonjs/Token/styles.js +1 -1
- package/commonjs/TokenInput/index.js +1 -3
- package/commonjs/Tooltip/index.js +2 -5
- package/commonjs/Tooltip/styles.js +1 -1
- package/commonjs/VisuallyHidden/index.js +1 -1
- package/commonjs/index.js +1 -1
- package/commonjs/themes/dark/decorative-palettes.js +1 -1
- package/commonjs/themes/dark/theme.js +1 -1
- package/commonjs/themes/light/decorative-palettes.js +1 -1
- package/commonjs/themes/light/literal-colors.js +4 -2
- package/commonjs/themes/light/theme.js +1 -1
- package/commonjs/types/theme.colors.flow.js +2 -0
- package/commonjs/utils/hooks.js +2 -3
- package/commonjs/utils/mixins.js +1 -1
- package/commonjs/utils/system-props.js +1 -1
- package/dist/themes/dark/dark.scss +9 -7
- package/dist/themes/light/light.scss +99 -97
- package/lib/Avatar/index.js +4 -7
- package/lib/Badge/index.js +1 -3
- package/lib/Badge/styles.js +1 -1
- package/lib/Banner/index.js +1 -3
- package/lib/Banner/styles.js +1 -1
- package/lib/Box/styles.js +1 -1
- package/lib/Breadcrumb/index.js +2 -5
- package/lib/Button/index.js +1 -3
- package/lib/Card/index.js +1 -3
- package/lib/Card/styles.js +2 -2
- package/lib/CharacterCounter/index.js +1 -3
- package/lib/CharacterCounter/styles.js +1 -1
- package/lib/ChartLegend/index.js +1 -3
- package/lib/ChartLegend/styles.js +3 -3
- package/lib/Checkbox/index.js +1 -3
- package/lib/Collapsible/index.js +2 -5
- package/lib/DatePicker/DateRangePicker.js +1 -3
- package/lib/DatePicker/SingleDatePicker.js +1 -3
- package/lib/DatePicker/StatefulDateRangePicker.js +1 -3
- package/lib/DatePicker/StatefulSingleDatePicker.js +1 -3
- package/lib/DatePicker/styles.js +6 -2
- package/lib/Drawer/SlideTransition.js +1 -3
- package/lib/Drawer/index.js +4 -9
- package/lib/Drawer/styles.js +2 -2
- package/lib/EmptyState/index.js +1 -3
- package/lib/Fieldset/index.js +3 -7
- package/lib/FormField/index.js +1 -3
- package/lib/Icon/index.js +2 -5
- package/lib/Icon/styles.js +1 -1
- package/lib/Image/index.js +1 -3
- package/lib/Image/styles.js +1 -1
- package/lib/Indicator/index.js +1 -3
- package/lib/Input/index.js +1 -3
- package/lib/Input/styles.js +2 -2
- package/lib/KeyboardKey/index.js +1 -3
- package/lib/Label/index.js +2 -4
- package/lib/Link/index.js +1 -3
- package/lib/Link/styles.js +1 -1
- package/lib/Listbox/index.js +3 -6
- package/lib/Loader/index.js +1 -3
- package/lib/Loader/styles.js +2 -2
- package/lib/LoaderButton/index.js +1 -3
- package/lib/Menu/descendants.js +2 -5
- package/lib/Menu/index.js +16 -20
- package/lib/Menu/styles.js +2 -2
- package/lib/Message/index.js +1 -3
- package/lib/Modal/index.js +3 -7
- package/lib/Modal/styles.js +5 -3
- package/lib/Numeral/index.js +1 -3
- package/lib/Numeral/styles.js +2 -2
- package/lib/OverflowList/styles.js +1 -1
- package/lib/Popout/index.js +3 -7
- package/lib/Popout/styles.js +1 -1
- package/lib/Radio/index.js +1 -3
- package/lib/Radio/styles.js +4 -4
- package/lib/SegmentedControl/index.js +2 -5
- package/lib/Select/index.js +1 -3
- package/lib/Stack/index.js +1 -3
- package/lib/Switch/index.js +1 -3
- package/lib/Switch/styles.js +1 -1
- package/lib/Table/index.js +4 -9
- package/lib/TableCell/index.js +1 -3
- package/lib/TableHeaderCell/index.js +1 -3
- package/lib/TableRowAccordion/index.js +1 -3
- package/lib/Tabs/index.js +2 -5
- package/lib/Tabs/styles.js +3 -3
- package/lib/Text/index.js +1 -3
- package/lib/Text/styles.js +1 -1
- package/lib/Textarea/index.js +1 -3
- package/lib/Toast/index.js +14 -14
- package/lib/Toast/styles.js +7 -3
- package/lib/ToggleHint/index.js +1 -3
- package/lib/Token/index.js +1 -3
- package/lib/Token/styles.js +1 -1
- package/lib/TokenInput/index.js +1 -3
- package/lib/Tooltip/index.js +2 -5
- package/lib/Tooltip/styles.js +1 -1
- package/lib/VisuallyHidden/index.js +1 -1
- package/lib/themes/light/literal-colors.js +4 -2
- package/lib/types/theme.colors.flow.js +2 -1
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,7 @@ const literalColors = {
|
|
|
15
15
|
"800": COLORS.COLOR_NEUTRAL_800,
|
|
16
16
|
"900": COLORS.COLOR_NEUTRAL_900,
|
|
17
17
|
"1000": COLORS.COLOR_NEUTRAL_1000,
|
|
18
|
+
"1100": COLORS.COLOR_NEUTRAL_1100,
|
|
18
19
|
},
|
|
19
20
|
green: {
|
|
20
21
|
"0": COLORS.COLOR_GREEN_0,
|
|
@@ -42,6 +43,7 @@ const literalColors = {
|
|
|
42
43
|
"800": COLORS.COLOR_RED_800,
|
|
43
44
|
"900": COLORS.COLOR_RED_900,
|
|
44
45
|
"1000": COLORS.COLOR_RED_1000,
|
|
46
|
+
"1100": COLORS.COLOR_RED_1100,
|
|
45
47
|
},
|
|
46
48
|
blue: {
|
|
47
49
|
"0": COLORS.COLOR_BLUE_0,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// @flow strict-local
|
|
2
2
|
|
|
3
3
|
import literalColors from "../themes/light/literal-colors";
|
|
4
|
+
import { datavizPalette } from "../themes/light/dataviz-palette";
|
|
4
5
|
|
|
5
6
|
type TypeAppColors = {|
|
|
6
7
|
app: {
|
|
@@ -170,6 +171,7 @@ type TypeIconColors = {|
|
|
|
170
171
|
danger: string,
|
|
171
172
|
info: string,
|
|
172
173
|
opportunity: string,
|
|
174
|
+
applied: string,
|
|
173
175
|
positive_sentiment: string,
|
|
174
176
|
negative_sentiment: string,
|
|
175
177
|
neutral_sentiment: string,
|
|
@@ -204,6 +206,28 @@ type TypeListItemColors = {|
|
|
|
204
206
|
},
|
|
205
207
|
|};
|
|
206
208
|
|
|
209
|
+
type TypeOverlayColors = {|
|
|
210
|
+
overlay: {
|
|
211
|
+
background: {
|
|
212
|
+
base: string,
|
|
213
|
+
},
|
|
214
|
+
text: {
|
|
215
|
+
base: string,
|
|
216
|
+
},
|
|
217
|
+
icon: {
|
|
218
|
+
base: string,
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
|};
|
|
222
|
+
|
|
223
|
+
type TypeElevationColors = {|
|
|
224
|
+
elevation: {
|
|
225
|
+
base: string,
|
|
226
|
+
},
|
|
227
|
+
|};
|
|
228
|
+
|
|
229
|
+
type TypeDatavizColors = typeof datavizPalette;
|
|
230
|
+
|
|
207
231
|
type TypeNetworkColors = {|
|
|
208
232
|
network: {
|
|
209
233
|
twitter: string,
|
|
@@ -245,6 +269,9 @@ export type TypeColors = {
|
|
|
245
269
|
...TypeIconColors,
|
|
246
270
|
...TypeFormColors,
|
|
247
271
|
...TypeListItemColors,
|
|
272
|
+
...TypeOverlayColors,
|
|
273
|
+
...TypeElevationColors,
|
|
274
|
+
...TypeDatavizColors,
|
|
248
275
|
...TypeNetworkColors,
|
|
249
276
|
...TypeLiteralColors,
|
|
250
277
|
};
|
package/commonjs/Avatar/index.js
CHANGED
|
@@ -15,9 +15,6 @@ var _Image = _interopRequireDefault(require("../Image"));
|
|
|
15
15
|
|
|
16
16
|
var _Text = _interopRequireDefault(require("../Text"));
|
|
17
17
|
|
|
18
|
-
var _excluded = ["fontSize"],
|
|
19
|
-
_excluded2 = ["appearance", "name", "src", "variant", "type", "size", "bg", "color"];
|
|
20
|
-
|
|
21
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
19
|
|
|
23
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -30,12 +27,12 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
30
27
|
|
|
31
28
|
var AvatarText = (0, _styledComponents.default)(function (_ref) {
|
|
32
29
|
var fontSize = _ref.fontSize,
|
|
33
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
30
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["fontSize"]);
|
|
34
31
|
|
|
35
32
|
return /*#__PURE__*/React.createElement(_Text.default, rest);
|
|
36
33
|
}).withConfig({
|
|
37
34
|
displayName: "Avatar__AvatarText",
|
|
38
|
-
componentId: "
|
|
35
|
+
componentId: "yx873f-0"
|
|
39
36
|
})(["font-size:", "px;color:", "px;"], function (props) {
|
|
40
37
|
return props.fontSize;
|
|
41
38
|
}, function (props) {
|
|
@@ -43,7 +40,7 @@ var AvatarText = (0, _styledComponents.default)(function (_ref) {
|
|
|
43
40
|
});
|
|
44
41
|
var Container = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
45
42
|
displayName: "Avatar__Container",
|
|
46
|
-
componentId: "
|
|
43
|
+
componentId: "yx873f-1"
|
|
47
44
|
})(["", ""], function (_ref2) {
|
|
48
45
|
var theme = _ref2.theme,
|
|
49
46
|
type = _ref2.type,
|
|
@@ -78,7 +75,7 @@ var Avatar = function Avatar(_ref3) {
|
|
|
78
75
|
size = _ref3$size === void 0 ? "40px" : _ref3$size,
|
|
79
76
|
bg = _ref3.bg,
|
|
80
77
|
color = _ref3.color,
|
|
81
|
-
rest = _objectWithoutPropertiesLoose(_ref3,
|
|
78
|
+
rest = _objectWithoutPropertiesLoose(_ref3, ["appearance", "name", "src", "variant", "type", "size", "bg", "color"]);
|
|
82
79
|
|
|
83
80
|
var _useState = (0, React.useState)(false),
|
|
84
81
|
imageFailedLoading = _useState[0],
|
package/commonjs/Badge/index.js
CHANGED
|
@@ -7,8 +7,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
7
7
|
|
|
8
8
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
9
9
|
|
|
10
|
-
var _excluded = ["size", "type", "tip", "text"];
|
|
11
|
-
|
|
12
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
11
|
|
|
14
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -38,7 +36,7 @@ var Badge = /*#__PURE__*/function (_React$Component) {
|
|
|
38
36
|
type = _this$props.type,
|
|
39
37
|
tip = _this$props.tip,
|
|
40
38
|
text = _this$props.text,
|
|
41
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
39
|
+
rest = _objectWithoutPropertiesLoose(_this$props, ["size", "type", "tip", "text"]);
|
|
42
40
|
|
|
43
41
|
return /*#__PURE__*/React.createElement(_styles.default, _extends({
|
|
44
42
|
type: type,
|
package/commonjs/Badge/styles.js
CHANGED
|
@@ -34,7 +34,7 @@ var backgroundColors = {
|
|
|
34
34
|
|
|
35
35
|
var Container = _styledComponents.default.span.withConfig({
|
|
36
36
|
displayName: "styles__Container",
|
|
37
|
-
componentId: "
|
|
37
|
+
componentId: "g1g76b-0"
|
|
38
38
|
})(["display:inline-block;text-align:center;border-radius:50px;font-family:", ";padding:", ";", " ", " ", ""], function (props) {
|
|
39
39
|
return props.theme.fontFamily;
|
|
40
40
|
}, function (props) {
|
package/commonjs/Banner/index.js
CHANGED
|
@@ -11,8 +11,6 @@ var _styles = _interopRequireDefault(require("./styles"));
|
|
|
11
11
|
|
|
12
12
|
var _Box = _interopRequireDefault(require("../Box"));
|
|
13
13
|
|
|
14
|
-
var _excluded = ["type", "text"];
|
|
15
|
-
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
15
|
|
|
18
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -83,7 +81,7 @@ var Banner = /*#__PURE__*/function (_React$Component) {
|
|
|
83
81
|
var _this$props = this.props,
|
|
84
82
|
type = _this$props.type,
|
|
85
83
|
text = _this$props.text,
|
|
86
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
84
|
+
rest = _objectWithoutPropertiesLoose(_this$props, ["type", "text"]);
|
|
87
85
|
|
|
88
86
|
return /*#__PURE__*/React.createElement(_styles.default // danger needs to be properly deprecated and removed DS-1094
|
|
89
87
|
, _extends({
|
|
@@ -13,7 +13,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
13
13
|
|
|
14
14
|
var Container = _styledComponents.default.div.withConfig({
|
|
15
15
|
displayName: "styles__Container",
|
|
16
|
-
componentId: "
|
|
16
|
+
componentId: "q43dr4-0"
|
|
17
17
|
})(function (props) {
|
|
18
18
|
return (0, _styledComponents.css)(["display:flex;overflow:hidden;align-items:center;justify-content:space-between;color:", ";border-radius:", ";font-family:", ";", " padding:", ";border:1px solid ", ";background-color:", ";.Icon{align-self:flex-start;margin-top:3px;margin-right:", ";min-width:16px;color:", ";}a,button{font-weight:", ";color:", ";font-size:inherit;&:hover{color:", ";text-decoration:underline;}}> span:not(.Icon){display:block;}", " ", ""], props.theme.colors.text.body, props.theme.radii.outer, props.theme.fontFamily, props.theme.typography[200], props.theme.space[300], props.theme.colors.container.border[props.type], props.theme.colors.container.background[props.type], props.theme.space[400], props.theme.colors.icon[props.type], props.theme.fontWeights.semibold, props.theme.colors.text.body, props.theme.colors.text.body, _systemProps.COMMON, _systemProps.LAYOUT);
|
|
19
19
|
});
|
package/commonjs/Box/styles.js
CHANGED
|
@@ -11,7 +11,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
11
11
|
|
|
12
12
|
var Container = _styledComponents.default.div.withConfig({
|
|
13
13
|
displayName: "styles__Container",
|
|
14
|
-
componentId: "
|
|
14
|
+
componentId: "ma8yo6-0"
|
|
15
15
|
})(["box-sizing:border-box;font-family:", ";", " ", " ", " ", " ", " ", ""], function (_ref) {
|
|
16
16
|
var theme = _ref.theme;
|
|
17
17
|
return theme.fontFamily;
|
|
@@ -13,9 +13,6 @@ var _Menu = require("../Menu");
|
|
|
13
13
|
|
|
14
14
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
15
15
|
|
|
16
|
-
var _excluded = ["children", "href"],
|
|
17
|
-
_excluded2 = ["ariaLabel", "overflow", "children"];
|
|
18
|
-
|
|
19
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
17
|
|
|
21
18
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -29,7 +26,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
29
26
|
var BreadcrumbItem = function BreadcrumbItem(_ref) {
|
|
30
27
|
var children = _ref.children,
|
|
31
28
|
href = _ref.href,
|
|
32
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
29
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["children", "href"]);
|
|
33
30
|
|
|
34
31
|
return /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(_Link.default, _extends({
|
|
35
32
|
href: href // $FlowIssue - upgrade v0.112.0
|
|
@@ -41,7 +38,7 @@ var Breadcrumb = function Breadcrumb(_ref2) {
|
|
|
41
38
|
var ariaLabel = _ref2.ariaLabel,
|
|
42
39
|
overflow = _ref2.overflow,
|
|
43
40
|
children = _ref2.children,
|
|
44
|
-
rest = _objectWithoutPropertiesLoose(_ref2,
|
|
41
|
+
rest = _objectWithoutPropertiesLoose(_ref2, ["ariaLabel", "overflow", "children"]);
|
|
45
42
|
|
|
46
43
|
var listItems = React.Children.toArray(children);
|
|
47
44
|
var lastItem = listItems[listItems.length - 1];
|
package/commonjs/Button/index.js
CHANGED
|
@@ -7,8 +7,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
7
7
|
|
|
8
8
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
9
9
|
|
|
10
|
-
var _excluded = ["href", "appearance", "active", "disabled", "external", "children", "size", "innerRef", "onClick", "title", "qa", "as", "ariaLabel"];
|
|
11
|
-
|
|
12
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
11
|
|
|
14
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -37,7 +35,7 @@ var Button = function Button(_ref) {
|
|
|
37
35
|
qa = _ref$qa === void 0 ? {} : _ref$qa,
|
|
38
36
|
as = _ref.as,
|
|
39
37
|
ariaLabel = _ref.ariaLabel,
|
|
40
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
38
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["href", "appearance", "active", "disabled", "external", "children", "size", "innerRef", "onClick", "title", "qa", "as", "ariaLabel"]);
|
|
41
39
|
|
|
42
40
|
if (!href && external) {
|
|
43
41
|
console.warn("Warning: external prop cannot be set without a href declaration");
|
package/commonjs/Card/index.js
CHANGED
|
@@ -8,8 +8,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
|
|
9
9
|
var _styles = require("./styles");
|
|
10
10
|
|
|
11
|
-
var _excluded = ["onClick", "href", "children", "ariaLabel", "buttonProps", "border", "borderColor", "color", "bg"];
|
|
12
|
-
|
|
13
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
12
|
|
|
15
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -33,7 +31,7 @@ var Card = function Card(_ref) {
|
|
|
33
31
|
color = _ref$color === void 0 ? "text.body" : _ref$color,
|
|
34
32
|
_ref$bg = _ref.bg,
|
|
35
33
|
bg = _ref$bg === void 0 ? "container.background.base" : _ref$bg,
|
|
36
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
34
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["onClick", "href", "children", "ariaLabel", "buttonProps", "border", "borderColor", "color", "bg"]);
|
|
37
35
|
|
|
38
36
|
return /*#__PURE__*/React.createElement(_styles.Container, _extends({}, rest, {
|
|
39
37
|
border: border,
|
package/commonjs/Card/styles.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
4
|
+
exports.ClickableArea = exports.Container = void 0;
|
|
5
5
|
|
|
6
6
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
7
7
|
|
|
@@ -13,7 +13,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
13
13
|
|
|
14
14
|
var Container = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
15
15
|
displayName: "styles__Container",
|
|
16
|
-
componentId: "
|
|
16
|
+
componentId: "p098yi-0"
|
|
17
17
|
})(["width:100%;border-radius:", ";position:relative;z-index:0;::after{content:\"\";top:0;left:0;position:absolute;border-radius:", ";z-index:-1;width:100%;height:100%;opacity:0;box-shadow:", ";transition:opacity ", " ", ";}&:hover{&::after{opacity:1;}}[role=\"button\"],[type=\"button\"],a{position:relative;}"], function (props) {
|
|
18
18
|
return props.theme.radii.outer;
|
|
19
19
|
}, function (props) {
|
|
@@ -28,6 +28,6 @@ var Container = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
|
28
28
|
exports.Container = Container;
|
|
29
29
|
var ClickableArea = (0, _styledComponents.default)(_Button.default).withConfig({
|
|
30
30
|
displayName: "styles__ClickableArea",
|
|
31
|
-
componentId: "
|
|
31
|
+
componentId: "p098yi-1"
|
|
32
32
|
})(["position:absolute !important;top:0;bottom:0;left:0;right:0;width:100%;"]);
|
|
33
33
|
exports.ClickableArea = ClickableArea;
|
|
@@ -7,8 +7,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
7
7
|
|
|
8
8
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
9
9
|
|
|
10
|
-
var _excluded = ["size"];
|
|
11
|
-
|
|
12
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
11
|
|
|
14
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -35,7 +33,7 @@ var CharacterCounter = /*#__PURE__*/function (_React$Component) {
|
|
|
35
33
|
_proto.render = function render() {
|
|
36
34
|
var _this$props = this.props,
|
|
37
35
|
size = _this$props.size,
|
|
38
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
36
|
+
rest = _objectWithoutPropertiesLoose(_this$props, ["size"]);
|
|
39
37
|
|
|
40
38
|
var remaining = this.props.maxValue - this.props.currentValue;
|
|
41
39
|
return (
|
|
@@ -13,7 +13,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
13
13
|
|
|
14
14
|
var Container = _styledComponents.default.div.withConfig({
|
|
15
15
|
displayName: "styles__Container",
|
|
16
|
-
componentId: "
|
|
16
|
+
componentId: "do9szx-0"
|
|
17
17
|
})(["font-family:", ";", ";font-weight:", ";line-height:1;font-variant-numeric:tabular-nums;color:", ";", " ", ""], function (props) {
|
|
18
18
|
return props.theme.fontFamily;
|
|
19
19
|
}, function (props) {
|
|
@@ -11,8 +11,6 @@ var _Text = _interopRequireDefault(require("../Text"));
|
|
|
11
11
|
|
|
12
12
|
var _chartColors = require("../utils/chartColors");
|
|
13
13
|
|
|
14
|
-
var _excluded = ["legendLabels", "stacked", "theme"];
|
|
15
|
-
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
15
|
|
|
18
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -48,7 +46,7 @@ var ChartLegend = function ChartLegend(props) {
|
|
|
48
46
|
stacked = props.stacked,
|
|
49
47
|
_props$theme = props.theme,
|
|
50
48
|
theme = _props$theme === void 0 ? "compare" : _props$theme,
|
|
51
|
-
rest = _objectWithoutPropertiesLoose(props,
|
|
49
|
+
rest = _objectWithoutPropertiesLoose(props, ["legendLabels", "stacked", "theme"]);
|
|
52
50
|
|
|
53
51
|
return /*#__PURE__*/React.createElement(_styles.default, _extends({
|
|
54
52
|
inline: !stacked,
|
|
@@ -13,7 +13,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
13
13
|
|
|
14
14
|
var Label = _styledComponents.default.span.withConfig({
|
|
15
15
|
displayName: "styles__Label",
|
|
16
|
-
componentId: "
|
|
16
|
+
componentId: "se0ijc-0"
|
|
17
17
|
})(["display:flex;align-items:center;color:", ";white-space:nowrap;text-transform:capitalize;"], function (props) {
|
|
18
18
|
return props.theme.colors.text.subtext;
|
|
19
19
|
});
|
|
@@ -22,7 +22,7 @@ exports.Label = Label;
|
|
|
22
22
|
|
|
23
23
|
var Swatch = _styledComponents.default.span.withConfig({
|
|
24
24
|
displayName: "styles__Swatch",
|
|
25
|
-
componentId: "
|
|
25
|
+
componentId: "se0ijc-1"
|
|
26
26
|
})(["margin-right:", ";width:", ";height:", ";border-radius:4px;", ""], function (props) {
|
|
27
27
|
return props.theme.space[300];
|
|
28
28
|
}, function (props) {
|
|
@@ -35,7 +35,7 @@ exports.Swatch = Swatch;
|
|
|
35
35
|
|
|
36
36
|
var Container = _styledComponents.default.div.withConfig({
|
|
37
37
|
displayName: "styles__Container",
|
|
38
|
-
componentId: "
|
|
38
|
+
componentId: "se0ijc-2"
|
|
39
39
|
})(["", " ", " ", ""], function (props) {
|
|
40
40
|
return props.inline && (0, _styledComponents.css)(["display:flex;justify-content:center;", " + ", "{margin-left:", ";}"], Label, Label, function (props) {
|
|
41
41
|
return props.theme.space[450];
|
|
@@ -7,8 +7,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
7
7
|
|
|
8
8
|
var _styles = _interopRequireWildcard(require("./styles"));
|
|
9
9
|
|
|
10
|
-
var _excluded = ["id", "value", "name", "label", "checked", "disabled", "indeterminate", "onChange", "ariaLabel", "appearance", "qa", "tabIndex", "inputProps"];
|
|
11
|
-
|
|
12
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
11
|
|
|
14
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -75,7 +73,7 @@ var Checkbox = /*#__PURE__*/function (_React$Component) {
|
|
|
75
73
|
tabIndex = _this$props.tabIndex,
|
|
76
74
|
_this$props$inputProp = _this$props.inputProps,
|
|
77
75
|
inputProps = _this$props$inputProp === void 0 ? {} : _this$props$inputProp,
|
|
78
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
76
|
+
rest = _objectWithoutPropertiesLoose(_this$props, ["id", "value", "name", "label", "checked", "disabled", "indeterminate", "onChange", "ariaLabel", "appearance", "qa", "tabIndex", "inputProps"]);
|
|
79
77
|
|
|
80
78
|
var isPill = appearance === "pill"; // TODO: Refactor pill checkboxes to use fewer elements for performance gains
|
|
81
79
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.default = exports.
|
|
4
|
+
exports.default = exports.CheckboxContainer = exports.LabelText = exports.PillInput = exports.CheckIcon = exports.CheckboxBox = exports.InputWrapper = void 0;
|
|
5
5
|
|
|
6
6
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
7
7
|
|
|
@@ -11,9 +11,6 @@ var _useMeasure = _interopRequireDefault(require("use-measure"));
|
|
|
11
11
|
|
|
12
12
|
var _Box = _interopRequireDefault(require("../Box"));
|
|
13
13
|
|
|
14
|
-
var _excluded = ["children"],
|
|
15
|
-
_excluded2 = ["children"];
|
|
16
|
-
|
|
17
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
15
|
|
|
19
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -65,7 +62,7 @@ var determineMaxHeight = function determineMaxHeight(isHidden, openHeight, compu
|
|
|
65
62
|
|
|
66
63
|
var Trigger = function Trigger(_ref2) {
|
|
67
64
|
var children = _ref2.children,
|
|
68
|
-
rest = _objectWithoutPropertiesLoose(_ref2,
|
|
65
|
+
rest = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
69
66
|
|
|
70
67
|
var _useContext = (0, React.useContext)(CollapsibleContext),
|
|
71
68
|
isOpen = _useContext.isOpen,
|
|
@@ -79,7 +76,7 @@ var Trigger = function Trigger(_ref2) {
|
|
|
79
76
|
|
|
80
77
|
var Panel = function Panel(_ref3) {
|
|
81
78
|
var children = _ref3.children,
|
|
82
|
-
rest = _objectWithoutPropertiesLoose(_ref3,
|
|
79
|
+
rest = _objectWithoutPropertiesLoose(_ref3, ["children"]);
|
|
83
80
|
|
|
84
81
|
var _useContext2 = (0, React.useContext)(CollapsibleContext),
|
|
85
82
|
isOpen = _useContext2.isOpen,
|
|
@@ -11,8 +11,6 @@ var _styles = require("./styles");
|
|
|
11
11
|
|
|
12
12
|
var _common = require("./common");
|
|
13
13
|
|
|
14
|
-
var _excluded = ["startDate", "endDate", "onDatesChange"];
|
|
15
|
-
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
15
|
|
|
18
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -27,7 +25,7 @@ var DateRangePicker = function DateRangePicker(_ref) {
|
|
|
27
25
|
var startDate = _ref.startDate,
|
|
28
26
|
endDate = _ref.endDate,
|
|
29
27
|
onDatesChange = _ref.onDatesChange,
|
|
30
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
28
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["startDate", "endDate", "onDatesChange"]);
|
|
31
29
|
|
|
32
30
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.ReactDatesCssOverrides, null), /*#__PURE__*/_react.default.createElement(_DayPickerRangeController.default, _extends({
|
|
33
31
|
startDate: startDate,
|
|
@@ -11,8 +11,6 @@ var _styles = require("./styles");
|
|
|
11
11
|
|
|
12
12
|
var _common = require("./common");
|
|
13
13
|
|
|
14
|
-
var _excluded = ["onDateChange", "date"];
|
|
15
|
-
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
15
|
|
|
18
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -26,7 +24,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
26
24
|
var SingleDatePicker = function SingleDatePicker(_ref) {
|
|
27
25
|
var onDateChange = _ref.onDateChange,
|
|
28
26
|
date = _ref.date,
|
|
29
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
27
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["onDateChange", "date"]);
|
|
30
28
|
|
|
31
29
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.ReactDatesCssOverrides, null), /*#__PURE__*/_react.default.createElement(_DayPickerSingleDateController.default, _extends({
|
|
32
30
|
date: date,
|
|
@@ -9,8 +9,6 @@ var _constants = require("react-dates/constants");
|
|
|
9
9
|
|
|
10
10
|
var _DateRangePicker = _interopRequireDefault(require("./DateRangePicker"));
|
|
11
11
|
|
|
12
|
-
var _excluded = ["startDate", "endDate", "onDatesChange", "onFocusChange"];
|
|
13
|
-
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
13
|
|
|
16
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -26,7 +24,7 @@ var StatefulDateRangePicker = function StatefulDateRangePicker(_ref) {
|
|
|
26
24
|
endDate = _ref.endDate,
|
|
27
25
|
onDatesChange = _ref.onDatesChange,
|
|
28
26
|
onFocusChange = _ref.onFocusChange,
|
|
29
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
27
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["startDate", "endDate", "onDatesChange", "onFocusChange"]);
|
|
30
28
|
|
|
31
29
|
var _useState = (0, _react.useState)({
|
|
32
30
|
startDate: startDate,
|
|
@@ -7,8 +7,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
7
7
|
|
|
8
8
|
var _SingleDatePicker = _interopRequireDefault(require("./SingleDatePicker"));
|
|
9
9
|
|
|
10
|
-
var _excluded = ["date", "onDateChange"];
|
|
11
|
-
|
|
12
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
11
|
|
|
14
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -22,7 +20,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
22
20
|
var StatefulSingleDatePicker = function StatefulSingleDatePicker(_ref) {
|
|
23
21
|
var date = _ref.date,
|
|
24
22
|
onDateChange = _ref.onDateChange,
|
|
25
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
23
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["date", "onDateChange"]);
|
|
26
24
|
|
|
27
25
|
var _useState = (0, _react.useState)(date),
|
|
28
26
|
stateDate = _useState[0],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.getVisibleMonthWithReactDatesInternalApi = exports.
|
|
4
|
+
exports.getVisibleMonthWithReactDatesInternalApi = exports.formatDateAsCalendarDay = exports.formatDateAsCalendarHeader = exports.commonDatePickerProps = exports.CalendarNavButton = void 0;
|
|
5
5
|
|
|
6
6
|
require("react-dates/initialize");
|
|
7
7
|
|
|
@@ -11,12 +11,16 @@ var _Box = _interopRequireDefault(require("../Box"));
|
|
|
11
11
|
|
|
12
12
|
var _mixins = require("../utils/mixins");
|
|
13
13
|
|
|
14
|
+
var _templateObject;
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
17
|
|
|
16
18
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
19
|
|
|
18
20
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
21
|
|
|
22
|
+
function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
|
|
23
|
+
|
|
20
24
|
/*
|
|
21
25
|
* Partial list of modifiers given to renderDayContents by airbnb/react-dates. There may be more.
|
|
22
26
|
*
|
|
@@ -66,7 +70,7 @@ var shouldHaveRightPill = function shouldHaveRightPill(modifiers, day) {
|
|
|
66
70
|
|
|
67
71
|
var CalendarDay = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
68
72
|
displayName: "styles__CalendarDay",
|
|
69
|
-
componentId: "
|
|
73
|
+
componentId: "fso9yi-0"
|
|
70
74
|
})(["", ";"], function (_ref) {
|
|
71
75
|
var modifiers = _ref.modifiers,
|
|
72
76
|
day = _ref.day,
|
|
@@ -83,7 +87,7 @@ var CalendarDay = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
|
83
87
|
}
|
|
84
88
|
});
|
|
85
89
|
exports.CalendarDay = CalendarDay;
|
|
86
|
-
var ReactDatesCssOverrides = (0, _styledComponents.createGlobalStyle)([".DayPicker{
|
|
90
|
+
var ReactDatesCssOverrides = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\t.DayPicker {\n\t\tbox-sizing: content-box;\n\t\tfont-weight: ", ";\n\t\tfont-family: ", ";\n\n\t\t/* override react-dates height to better reflect how tall the component actually is */\n\t\t/* adding margin/padding will be more truer to our seeds system because the height */\n\t\t/* of the calendar adds an extra row of padding if we do not override it */\n\t\t&_transitionContainer {\n\t\t\t/* need !important because react-dates sets height on the element itself */\n\t\t\theight: 228px !important;\n\t\t}\n\n\t\t&_weekHeader {\n\t\t\tcolor: ", ";\n\t\t\tborder-bottom: 1px solid ", ";\n\n \t\t\t/* Magic number to match position of .CalendarMonth_caption */\n\t\t\ttop: 26px;\n\n\t\t\t/* Magic number to make the bottom border line stretch the full width */\n\t\t\twidth: 230px;\n\n\t\t\t&_ul {\n \t\t\t\t/* Magic number to line up day name headings over the correct numbers */\n\t\t\t\tpadding-left: 10px;\n\t\t\t}\n\t\t}\n\n\t\t&_weekHeaders__horizontal {\n\t\t\tmargin-left: 0\n\t\t}\n\n\t\t&_weekHeader_li {\n\t\t\t", "\n\t\t\tcolor: ", ";\n\t\t\tfont-weight: ", ";\n\t\t\tmargin: 0;\n\t\t}\n\n\t\t&__horizontal {\n\t\t\tbox-shadow: none;\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n\n .CalendarDay {\n\t\tbackground-color: transparent;\n\n &__selected, &__selected_span, &:hover {\n background-color: transparent;\n\t\t}\n\n\t\t&__default {\n\t\t\tcolor: ", ";\n\t\t}\n\t\t&__default,\n\t\t&__default:hover {\n\t\t\tborder: none;\n\t\t\tcolor: ", ";\n\t\t}\n\t}\n\n .CalendarMonth {\n\t\t", "\n\t\tbackground: ", ";\n\n \t\t/* spacing between visible months and months off canvas */\n\t\tpadding: 0 15px;\n\n\t\t&_caption {\n\t\t\t", "\n\t\t\tcolor: ", ";\n\t\t\tpadding-top: 0;\n\t\t\tbackground: ", ";\n\n\t\t\tstrong {\n\t\t\t\tfont-weight: ", ";\n\t\t\t}\n\n\t\t}\n\t\t&_table {\n\t\t\tline-height: 21.333px;\n\t\t\ttr {\n\t\t\t\tvertical-align: middle;\n\t\t\t}\n\t\t\ttd {\n\t\t\t\tpadding: 0;\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t.CalendarMonthGrid {\n\t\tbackground: ", ";\n\t}\n\n\t/* Left and Right Arrow Buttons to navigate months */\n\t.DayPickerNavigation_button__horizontal {\n\t\tcolor: ", ";\n\t\ttop: -4px;\n\t\tpadding: 7px 8px;\n\t\tposition: absolute;\n\t\tline-height: 0.78;\n\t\tborder-radius: 9999px;\n\t\tborder: none;\n\t\tbackground: ", ";\n\n\t\t&:nth-child(1) {\n\t\t\tleft: 22px;\n\t\t}\n\t\t&:nth-child(2) {\n\t\t\tright: 22px;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n"])), function (_ref2) {
|
|
87
91
|
var theme = _ref2.theme;
|
|
88
92
|
return theme.fontWeights.normal;
|
|
89
93
|
}, function (props) {
|
|
@@ -9,8 +9,6 @@ var _reactSpring = require("react-spring");
|
|
|
9
9
|
|
|
10
10
|
var _seedsMotionUnitless = require("@sproutsocial/seeds-motion/dist/seeds-motion-unitless");
|
|
11
11
|
|
|
12
|
-
var _excluded = ["isVisible", "children", "width", "direction"];
|
|
13
|
-
|
|
14
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
13
|
|
|
16
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -22,7 +20,7 @@ var SlideTransition = function SlideTransition(_ref) {
|
|
|
22
20
|
children = _ref.children,
|
|
23
21
|
width = _ref.width,
|
|
24
22
|
direction = _ref.direction,
|
|
25
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
23
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["isVisible", "children", "width", "direction"]);
|
|
26
24
|
|
|
27
25
|
var offset = width * (direction === "left" ? -1 : 1);
|
|
28
26
|
var transitions = (0, _reactSpring.useTransition)(isVisible, null, {
|