grommet 2.34.0 → 2.35.0-alpha.1
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/components/Anchor/StyledAnchor.js +1 -7
- package/components/Box/StyledBox.js +2 -2
- package/components/Button/BusyAnimation.js +2 -1
- package/components/Button/StyledButton.js +2 -1
- package/components/Button/StyledButtonKind.js +4 -4
- package/components/Calendar/StyledCalendar.js +6 -6
- package/components/Chart/StyledChart.js +1 -1
- package/components/CheckBox/CheckBox.js +0 -3
- package/components/CheckBox/StyledCheckBox.js +11 -10
- package/components/Clock/StyledClock.js +7 -7
- package/components/DataTable/StyledDataTable.js +1 -1
- package/components/DataTable/stories/CustomThemed/Custom.js +1 -1
- package/components/Diagram/StyledDiagram.js +2 -1
- package/components/Drop/DropContainer.js +0 -2
- package/components/Drop/StyledDrop.js +2 -1
- package/components/FileInput/StyledFileInput.js +1 -1
- package/components/Grid/StyledGrid.js +1 -1
- package/components/Grommet/StyledGrommet.js +1 -1
- package/components/Heading/StyledHeading.js +1 -1
- package/components/Image/StyledImage.js +1 -1
- package/components/Layer/LayerContainer.js +1 -1
- package/components/Layer/StyledLayer.js +6 -6
- package/components/List/List.js +1 -1
- package/components/Markdown/stories/Override.js +2 -1
- package/components/MaskedInput/StyledMaskedInput.js +3 -3
- package/components/Menu/Menu.js +1 -1
- package/components/Meter/StyledMeter.js +1 -1
- package/components/Pagination/StyledPageControl.js +2 -1
- package/components/Paragraph/StyledParagraph.js +1 -1
- package/components/RadioButton/RadioButton.js +0 -3
- package/components/RadioButton/StyledRadioButton.js +8 -7
- package/components/RangeInput/RangeInput.js +1 -1
- package/components/RangeInput/StyledRangeInput.js +1 -1
- package/components/Select/SelectContainer.js +0 -1
- package/components/Select/StyledSelect.js +4 -3
- package/components/SelectMultiple/SelectMultipleContainer.js +0 -1
- package/components/Skeleton/StyledSkeleton.js +1 -1
- package/components/Stack/StyledStack.js +2 -2
- package/components/Tab/StyledTab.js +2 -1
- package/components/Tab/Tab.js +0 -2
- package/components/Table/StyledTable.js +7 -7
- package/components/Tabs/StyledTabs.js +4 -3
- package/components/Tabs/Tabs.js +0 -2
- package/components/Text/StyledText.js +1 -5
- package/components/TextArea/StyledTextArea.js +1 -1
- package/components/TextInput/StyledTextInput.js +5 -5
- package/components/Video/StyledVideo.js +4 -4
- package/components/WorldMap/StyledWorldMap.js +1 -1
- package/es6/components/Anchor/StyledAnchor.js +2 -8
- package/es6/components/Box/StyledBox.js +3 -3
- package/es6/components/Button/BusyAnimation.js +2 -1
- package/es6/components/Button/StyledButton.js +2 -1
- package/es6/components/Button/StyledButtonKind.js +3 -4
- package/es6/components/Calendar/StyledCalendar.js +7 -7
- package/es6/components/Chart/StyledChart.js +2 -2
- package/es6/components/CheckBox/CheckBox.js +0 -3
- package/es6/components/CheckBox/StyledCheckBox.js +12 -11
- package/es6/components/Clock/StyledClock.js +8 -8
- package/es6/components/DataTable/StyledDataTable.js +2 -2
- package/es6/components/DataTable/stories/CustomThemed/Custom.js +1 -1
- package/es6/components/Diagram/StyledDiagram.js +2 -1
- package/es6/components/Drop/DropContainer.js +0 -2
- package/es6/components/Drop/StyledDrop.js +2 -1
- package/es6/components/FileInput/StyledFileInput.js +2 -2
- package/es6/components/Grid/StyledGrid.js +2 -2
- package/es6/components/Grommet/StyledGrommet.js +2 -2
- package/es6/components/Heading/StyledHeading.js +2 -2
- package/es6/components/Image/StyledImage.js +2 -2
- package/es6/components/Layer/LayerContainer.js +2 -2
- package/es6/components/Layer/StyledLayer.js +6 -7
- package/es6/components/List/List.js +2 -2
- package/es6/components/Markdown/stories/Override.js +2 -1
- package/es6/components/MaskedInput/StyledMaskedInput.js +4 -4
- package/es6/components/Menu/Menu.js +1 -1
- package/es6/components/Meter/StyledMeter.js +2 -2
- package/es6/components/Pagination/StyledPageControl.js +2 -1
- package/es6/components/Paragraph/StyledParagraph.js +2 -2
- package/es6/components/RadioButton/RadioButton.js +0 -3
- package/es6/components/RadioButton/StyledRadioButton.js +9 -8
- package/es6/components/RangeInput/RangeInput.js +1 -1
- package/es6/components/RangeInput/StyledRangeInput.js +2 -2
- package/es6/components/Select/SelectContainer.js +0 -1
- package/es6/components/Select/StyledSelect.js +5 -4
- package/es6/components/SelectMultiple/SelectMultipleContainer.js +0 -1
- package/es6/components/Skeleton/StyledSkeleton.js +2 -2
- package/es6/components/Stack/StyledStack.js +3 -3
- package/es6/components/Tab/StyledTab.js +2 -1
- package/es6/components/Tab/Tab.js +0 -2
- package/es6/components/Table/StyledTable.js +8 -8
- package/es6/components/Tabs/StyledTabs.js +5 -4
- package/es6/components/Tabs/Tabs.js +0 -2
- package/es6/components/Text/StyledText.js +2 -6
- package/es6/components/TextArea/StyledTextArea.js +2 -2
- package/es6/components/TextInput/StyledTextInput.js +6 -6
- package/es6/components/Video/StyledVideo.js +5 -5
- package/es6/components/WorldMap/StyledWorldMap.js +2 -2
- package/es6/utils/styles.js +6 -0
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/package.json +8 -4
- package/utils/styles.js +7 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled, { css, keyframes } from 'styled-components';
|
|
2
|
-
import { backgroundStyle, focusStyle, genericStyles, kindPartStyles, parseMetricToNum } from '../../utils';
|
|
2
|
+
import { backgroundStyle, focusStyle, genericStyles, kindPartStyles, parseMetricToNum, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
4
|
var sizeStyle = function sizeStyle(props) {
|
|
5
5
|
var data = props.theme.calendar[props.sizeProp];
|
|
@@ -8,7 +8,7 @@ var sizeStyle = function sizeStyle(props) {
|
|
|
8
8
|
return p.fillContainer && 'height: 100%;';
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var StyledCalendar = styled.div.withConfig({
|
|
11
|
+
var StyledCalendar = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
12
12
|
displayName: "StyledCalendar",
|
|
13
13
|
componentId: "sc-1y4xhmp-0"
|
|
14
14
|
})(["", " ", " ", ""], genericStyles, function (props) {
|
|
@@ -22,7 +22,7 @@ var weeksContainerSizeStyle = function weeksContainerSizeStyle(props) {
|
|
|
22
22
|
var height = props.fillContainer ? '100%' : parseMetricToNum(props.theme.calendar[props.sizeProp].daySize) * 6 + "px";
|
|
23
23
|
return "\n height: " + height + ";\n\n ";
|
|
24
24
|
};
|
|
25
|
-
var StyledWeeksContainer = styled.div.withConfig({
|
|
25
|
+
var StyledWeeksContainer = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
26
26
|
displayName: "StyledCalendar__StyledWeeksContainer",
|
|
27
27
|
componentId: "sc-1y4xhmp-1"
|
|
28
28
|
})(["overflow:hidden;", " ", ";"], function (props) {
|
|
@@ -50,7 +50,7 @@ var slideStyle = function slideStyle(props) {
|
|
|
50
50
|
var weeksSizeStyle = function weeksSizeStyle() {
|
|
51
51
|
return css(["display:flex;flex-direction:column;height:100%;"]);
|
|
52
52
|
};
|
|
53
|
-
var StyledWeeks = styled.div.withConfig({
|
|
53
|
+
var StyledWeeks = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
54
54
|
displayName: "StyledCalendar__StyledWeeks",
|
|
55
55
|
componentId: "sc-1y4xhmp-2"
|
|
56
56
|
})(["position:relative;", " ", ";"], function (props) {
|
|
@@ -60,7 +60,7 @@ var StyledWeeks = styled.div.withConfig({
|
|
|
60
60
|
});
|
|
61
61
|
StyledWeeks.defaultProps = {};
|
|
62
62
|
Object.setPrototypeOf(StyledWeeks.defaultProps, defaultProps);
|
|
63
|
-
var StyledWeek = styled.div.withConfig({
|
|
63
|
+
var StyledWeek = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
64
64
|
displayName: "StyledCalendar__StyledWeek",
|
|
65
65
|
componentId: "sc-1y4xhmp-3"
|
|
66
66
|
})(["display:flex;justify-content:space-between;", ""], function (props) {
|
|
@@ -71,7 +71,7 @@ Object.setPrototypeOf(StyledWeek.defaultProps, defaultProps);
|
|
|
71
71
|
|
|
72
72
|
// The width of 14.3% is derived from dividing 100/7. We want the
|
|
73
73
|
// widths of 7 days to equally fill 100% of the row.
|
|
74
|
-
var StyledDayContainer = styled.div.withConfig({
|
|
74
|
+
var StyledDayContainer = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
75
75
|
displayName: "StyledCalendar__StyledDayContainer",
|
|
76
76
|
componentId: "sc-1y4xhmp-4"
|
|
77
77
|
})(["flex:0 1 auto;", ""], function (props) {
|
|
@@ -83,7 +83,7 @@ var daySizeStyle = function daySizeStyle(props) {
|
|
|
83
83
|
var data = props.theme.calendar[props.sizeProp];
|
|
84
84
|
return css(["width:", ";height:", ";"], props.fillContainer ? '100%' : data.daySize, props.fillContainer ? '100%' : data.daySize);
|
|
85
85
|
};
|
|
86
|
-
var StyledDay = styled.div.withConfig({
|
|
86
|
+
var StyledDay = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
87
87
|
displayName: "StyledCalendar__StyledDay",
|
|
88
88
|
componentId: "sc-1y4xhmp-5"
|
|
89
89
|
})(["display:flex;justify-content:center;align-items:center;", " ", " ", " ", " ", " ", ""], function (props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled, { css, keyframes } from 'styled-components';
|
|
2
|
-
import { genericStyles } from '../../utils';
|
|
2
|
+
import { genericStyles, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
4
|
var animateStyle = function animateStyle(_ref) {
|
|
5
5
|
var theme = _ref.theme,
|
|
@@ -10,7 +10,7 @@ var animateStyle = function animateStyle(_ref) {
|
|
|
10
10
|
animateBounds = ['stroke-dashoffset: 200%;', 'stroke-dashoffset: 0%;'];else if (typeProp === 'point') animateBounds = ['opacity: 0;', 'opacity: 1;'];else animateBounds = ['transform: scaleY(0);', 'transform: scaleY(1);'];
|
|
11
11
|
return css(["", " animation:", " ", " forwards;", ""], typeProp === 'line' && 'stroke-dasharray: 200%;', keyframes(["from{", "}to{", "}"], animateBounds[0], animateBounds[1]), theme.global.animation.duration, (typeProp === 'bar' || typeProp === 'area') && 'transform-origin: center bottom 0;');
|
|
12
12
|
};
|
|
13
|
-
var StyledChart = styled.svg.withConfig({
|
|
13
|
+
var StyledChart = styled.svg.withConfig(styledComponentsConfig).withConfig({
|
|
14
14
|
displayName: "StyledChart",
|
|
15
15
|
componentId: "sc-1nae0gf-0"
|
|
16
16
|
})(["display:block;max-width:100%;overflow:visible;", " ", " ", ";"], genericStyles, function (props) {
|
|
@@ -5,7 +5,6 @@ import React, { forwardRef, useContext, useEffect, useState } from 'react';
|
|
|
5
5
|
import { ThemeContext } from 'styled-components';
|
|
6
6
|
import { removeUndefined } from '../../utils/object';
|
|
7
7
|
import { defaultProps } from '../../default-props';
|
|
8
|
-
import { Box } from '../Box';
|
|
9
8
|
import { FormContext } from '../Form/FormContext';
|
|
10
9
|
import { CheckBoxPropTypes } from './propTypes';
|
|
11
10
|
import { StyledCheckBox, StyledCheckBoxBox, StyledCheckBoxIcon, StyledCheckBoxContainer, StyledCheckBoxInput, StyledCheckBoxToggle, StyledCheckBoxKnob } from './StyledCheckBox';
|
|
@@ -99,7 +98,6 @@ var CheckBox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
99
98
|
borderColor = normalizeColor(theme.checkBox.color || 'control', theme);
|
|
100
99
|
}
|
|
101
100
|
var visual = toggle ? /*#__PURE__*/React.createElement(StyledCheckBoxToggle, themeableProps, /*#__PURE__*/React.createElement(StyledCheckBoxKnob, themeableProps)) : /*#__PURE__*/React.createElement(StyledCheckBoxBox, _extends({
|
|
102
|
-
as: Box,
|
|
103
101
|
align: "center",
|
|
104
102
|
justify: "center",
|
|
105
103
|
width: theme.checkBox.size,
|
|
@@ -132,7 +130,6 @@ var CheckBox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
132
130
|
}))));
|
|
133
131
|
var side = !reverse !== !theme.dir ? 'left' : 'right';
|
|
134
132
|
var checkBoxNode = /*#__PURE__*/React.createElement(StyledCheckBox, _extends({
|
|
135
|
-
as: Box,
|
|
136
133
|
align: "center",
|
|
137
134
|
justify: "center",
|
|
138
135
|
margin: label && (_ref2 = {}, _ref2[side] = theme.checkBox.gap || 'small', _ref2)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import { edgeStyle, focusStyle, normalizeColor } from '../../utils';
|
|
2
|
+
import { edgeStyle, focusStyle, normalizeColor, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
|
+
import { Box } from '../Box';
|
|
4
5
|
|
|
5
6
|
// Note: since `fillStyle` is only used in one place, `justify-content` was
|
|
6
7
|
// added to it to simplify its logic. If this is ever reused somewhere else,
|
|
@@ -9,7 +10,7 @@ var fillStyle = function fillStyle() {
|
|
|
9
10
|
return "\n width: auto;\n height: 100%;\n max-width: none;\n flex: 1 0 auto;\n justify-content: space-between;\n ";
|
|
10
11
|
};
|
|
11
12
|
var disabledStyle = "\n opacity: 0.5;\n cursor: default;\n";
|
|
12
|
-
var hoverStyle = css(["
|
|
13
|
+
var hoverStyle = css(["&:hover input:not([disabled]) + div,&:hover input:not([disabled]) + span{border-color:", ";", "}&:hover{background-color:", ";}"], function (props) {
|
|
13
14
|
var _props$theme$checkBox;
|
|
14
15
|
return normalizeColor((_props$theme$checkBox = props.theme.checkBox.hover) == null || (_props$theme$checkBox = _props$theme$checkBox.border) == null ? void 0 : _props$theme$checkBox.color, props.theme);
|
|
15
16
|
}, function (props) {
|
|
@@ -19,7 +20,7 @@ var hoverStyle = css([":hover input:not([disabled]) + div,:hover input:not([disa
|
|
|
19
20
|
var _props$theme$checkBox3;
|
|
20
21
|
return normalizeColor(!props.disabled && ((_props$theme$checkBox3 = props.theme.checkBox.hover) == null || (_props$theme$checkBox3 = _props$theme$checkBox3.background) == null ? void 0 : _props$theme$checkBox3.color), props.theme);
|
|
21
22
|
});
|
|
22
|
-
var StyledCheckBoxIcon = styled.svg.withConfig({
|
|
23
|
+
var StyledCheckBoxIcon = styled.svg.withConfig(styledComponentsConfig).withConfig({
|
|
23
24
|
displayName: "StyledCheckBox__StyledCheckBoxIcon",
|
|
24
25
|
componentId: "sc-1dbk5ju-0"
|
|
25
26
|
})(["box-sizing:border-box;stroke-width:", ";stroke:", ";width:", ";height:", ";", ";"], function (props) {
|
|
@@ -35,10 +36,10 @@ var StyledCheckBoxIcon = styled.svg.withConfig({
|
|
|
35
36
|
});
|
|
36
37
|
StyledCheckBoxIcon.defaultProps = {};
|
|
37
38
|
Object.setPrototypeOf(StyledCheckBoxIcon.defaultProps, defaultProps);
|
|
38
|
-
var StyledCheckBoxContainer = styled.label.withConfig({
|
|
39
|
+
var StyledCheckBoxContainer = styled.label.withConfig(styledComponentsConfig).withConfig({
|
|
39
40
|
displayName: "StyledCheckBox__StyledCheckBoxContainer",
|
|
40
41
|
componentId: "sc-1dbk5ju-1"
|
|
41
|
-
})(["display:flex;flex-direction:row;align-items:", ";user-select:none;", " ", " ", " ", " ", " ", " ", ""], function (props) {
|
|
42
|
+
})(["display:flex;flex-direction:row;align-items:", ";user-select:none;-webkit-user-select:none;", " ", " ", " ", " ", " ", " ", ""], function (props) {
|
|
42
43
|
return typeof props.label === 'string' ? props.theme.checkBox.label.align : undefined;
|
|
43
44
|
}, function (props) {
|
|
44
45
|
return props.fillProp ? fillStyle() : 'width: fit-content;';
|
|
@@ -56,10 +57,10 @@ var StyledCheckBoxContainer = styled.label.withConfig({
|
|
|
56
57
|
});
|
|
57
58
|
StyledCheckBoxContainer.defaultProps = {};
|
|
58
59
|
Object.setPrototypeOf(StyledCheckBoxContainer.defaultProps, defaultProps);
|
|
59
|
-
var StyledCheckBoxInput = styled.input.withConfig({
|
|
60
|
+
var StyledCheckBoxInput = styled.input.withConfig(styledComponentsConfig).withConfig({
|
|
60
61
|
displayName: "StyledCheckBox__StyledCheckBoxInput",
|
|
61
62
|
componentId: "sc-1dbk5ju-2"
|
|
62
|
-
})(["opacity:0;-moz-appearance:none;width:0;height:0;margin:0;", "
|
|
63
|
+
})(["opacity:0;-moz-appearance:none;width:0;height:0;margin:0;", " &:checked + span > span{", ":calc( ", " - ", " );background:", ";}"], function (props) {
|
|
63
64
|
return !props.disabled && 'cursor: pointer;';
|
|
64
65
|
}, function (props) {
|
|
65
66
|
return !props.theme.dir ? 'left' : 'right';
|
|
@@ -72,7 +73,7 @@ var StyledCheckBoxInput = styled.input.withConfig({
|
|
|
72
73
|
});
|
|
73
74
|
StyledCheckBoxInput.defaultProps = {};
|
|
74
75
|
Object.setPrototypeOf(StyledCheckBoxInput.defaultProps, defaultProps);
|
|
75
|
-
var StyledCheckBoxBox = styled.
|
|
76
|
+
var StyledCheckBoxBox = styled(Box).withConfig({
|
|
76
77
|
displayName: "StyledCheckBox__StyledCheckBoxBox",
|
|
77
78
|
componentId: "sc-1dbk5ju-3"
|
|
78
79
|
})(["", ";", ";"], function (props) {
|
|
@@ -82,7 +83,7 @@ var StyledCheckBoxBox = styled.div.withConfig({
|
|
|
82
83
|
});
|
|
83
84
|
StyledCheckBoxBox.defaultProps = {};
|
|
84
85
|
Object.setPrototypeOf(StyledCheckBoxBox.defaultProps, defaultProps);
|
|
85
|
-
var StyledCheckBoxToggle = styled.span.withConfig({
|
|
86
|
+
var StyledCheckBoxToggle = styled.span.withConfig(styledComponentsConfig).withConfig({
|
|
86
87
|
displayName: "StyledCheckBox__StyledCheckBoxToggle",
|
|
87
88
|
componentId: "sc-1dbk5ju-4"
|
|
88
89
|
})(["box-sizing:border-box;vertical-align:middle;display:inline-block;width:", ";height:", ";border:", " solid;border-color:", ";border-radius:", ";background-color:", ";", ";", ";"], function (props) {
|
|
@@ -104,7 +105,7 @@ var StyledCheckBoxToggle = styled.span.withConfig({
|
|
|
104
105
|
});
|
|
105
106
|
StyledCheckBoxToggle.defaultProps = {};
|
|
106
107
|
Object.setPrototypeOf(StyledCheckBoxToggle.defaultProps, defaultProps);
|
|
107
|
-
var StyledCheckBoxKnob = styled.span.withConfig({
|
|
108
|
+
var StyledCheckBoxKnob = styled.span.withConfig(styledComponentsConfig).withConfig({
|
|
108
109
|
displayName: "StyledCheckBox__StyledCheckBoxKnob",
|
|
109
110
|
componentId: "sc-1dbk5ju-5"
|
|
110
111
|
})(["box-sizing:border-box;position:relative;display:inherit;top:-", ";", ":-", ";transition:all 0.3s;width:", ";height:", ";background:", ";border-radius:", ";", ";"], function (props) {
|
|
@@ -126,7 +127,7 @@ var StyledCheckBoxKnob = styled.span.withConfig({
|
|
|
126
127
|
});
|
|
127
128
|
StyledCheckBoxKnob.defaultProps = {};
|
|
128
129
|
Object.setPrototypeOf(StyledCheckBoxKnob.defaultProps, defaultProps);
|
|
129
|
-
var StyledCheckBox = styled.
|
|
130
|
+
var StyledCheckBox = styled(Box).withConfig({
|
|
130
131
|
displayName: "StyledCheckBox",
|
|
131
132
|
componentId: "sc-1dbk5ju-6"
|
|
132
133
|
})(["flex-shrink:0;"]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled, { css, keyframes } from 'styled-components';
|
|
2
|
-
import { normalizeColor, genericStyles } from '../../utils';
|
|
2
|
+
import { normalizeColor, genericStyles, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
|
-
var StyledHour = styled.line.withConfig({
|
|
4
|
+
var StyledHour = styled.line.withConfig(styledComponentsConfig).withConfig({
|
|
5
5
|
displayName: "StyledClock__StyledHour",
|
|
6
6
|
componentId: "sc-y4xw8s-0"
|
|
7
7
|
})(["stroke-width:", ";stroke:", ";transition:stroke 1s ease-out;"], function (props) {
|
|
@@ -11,7 +11,7 @@ var StyledHour = styled.line.withConfig({
|
|
|
11
11
|
});
|
|
12
12
|
StyledHour.defaultProps = {};
|
|
13
13
|
Object.setPrototypeOf(StyledHour.defaultProps, defaultProps);
|
|
14
|
-
var StyledMinute = styled.line.withConfig({
|
|
14
|
+
var StyledMinute = styled.line.withConfig(styledComponentsConfig).withConfig({
|
|
15
15
|
displayName: "StyledClock__StyledMinute",
|
|
16
16
|
componentId: "sc-y4xw8s-1"
|
|
17
17
|
})(["stroke-width:", ";stroke:", ";transition:stroke 1s ease-out;"], function (props) {
|
|
@@ -21,7 +21,7 @@ var StyledMinute = styled.line.withConfig({
|
|
|
21
21
|
});
|
|
22
22
|
StyledMinute.defaultProps = {};
|
|
23
23
|
Object.setPrototypeOf(StyledMinute.defaultProps, defaultProps);
|
|
24
|
-
var StyledSecond = styled.line.withConfig({
|
|
24
|
+
var StyledSecond = styled.line.withConfig(styledComponentsConfig).withConfig({
|
|
25
25
|
displayName: "StyledClock__StyledSecond",
|
|
26
26
|
componentId: "sc-y4xw8s-2"
|
|
27
27
|
})(["stroke-width:", ";stroke:", ";transition:stroke 1s ease-out;"], function (props) {
|
|
@@ -31,7 +31,7 @@ var StyledSecond = styled.line.withConfig({
|
|
|
31
31
|
});
|
|
32
32
|
StyledSecond.defaultProps = {};
|
|
33
33
|
Object.setPrototypeOf(StyledSecond.defaultProps, defaultProps);
|
|
34
|
-
var StyledAnalog = styled.svg.withConfig({
|
|
34
|
+
var StyledAnalog = styled.svg.withConfig(styledComponentsConfig).withConfig({
|
|
35
35
|
displayName: "StyledClock__StyledAnalog",
|
|
36
36
|
componentId: "sc-y4xw8s-3"
|
|
37
37
|
})(["width:", ";height:", ";", " ", ";"], function (props) {
|
|
@@ -49,7 +49,7 @@ var sizeStyle = function sizeStyle(props) {
|
|
|
49
49
|
var data = props.theme.clock.digital.text[size] || {};
|
|
50
50
|
return css(["font-size:", ";line-height:", ";"], data.size || props.theme.clock.digital.text.medium.size, data.height || props.theme.clock.digital.text.medium.height);
|
|
51
51
|
};
|
|
52
|
-
var StyledDigitalDigit = styled.div.withConfig({
|
|
52
|
+
var StyledDigitalDigit = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
53
53
|
displayName: "StyledClock__StyledDigitalDigit",
|
|
54
54
|
componentId: "sc-y4xw8s-4"
|
|
55
55
|
})(["position:relative;width:0.8em;text-align:center;overflow:hidden;", ";"], function (props) {
|
|
@@ -59,7 +59,7 @@ StyledDigitalDigit.defaultProps = {};
|
|
|
59
59
|
Object.setPrototypeOf(StyledDigitalDigit.defaultProps, defaultProps);
|
|
60
60
|
var previousUp = keyframes(["0%{transform:translateY(0);}100%{transform:translateY(-100%);}"]);
|
|
61
61
|
var previousDown = keyframes(["0%{transform:translateY(0);}100%{transform:translateY(100%);}"]);
|
|
62
|
-
var StyledDigitalPrevious = styled.div.withConfig({
|
|
62
|
+
var StyledDigitalPrevious = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
63
63
|
displayName: "StyledClock__StyledDigitalPrevious",
|
|
64
64
|
componentId: "sc-y4xw8s-5"
|
|
65
65
|
})(["position:absolute;top:0;left:0;width:0.8em;text-align:center;animation:", " 0.5s forwards;"], function (props) {
|
|
@@ -69,7 +69,7 @@ StyledDigitalPrevious.defaultProps = {};
|
|
|
69
69
|
Object.setPrototypeOf(StyledDigitalPrevious.defaultProps, defaultProps);
|
|
70
70
|
var nextUp = keyframes(["0%{transform:translateY(100%);}100%{transform:translateY(0);}"]);
|
|
71
71
|
var nextDown = keyframes(["0%{transform:translateY(-100%);}100%{transform:translateY(0);}"]);
|
|
72
|
-
var StyledDigitalNext = styled.div.withConfig({
|
|
72
|
+
var StyledDigitalNext = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
73
73
|
displayName: "StyledClock__StyledDigitalNext",
|
|
74
74
|
componentId: "sc-y4xw8s-6"
|
|
75
75
|
})(["position:absolute;top:0;left:0;width:0.8em;text-align:center;animation:", " 0.5s forwards;"], function (props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import { backgroundStyle, fillStyle, focusStyle, unfocusStyle, genericStyles, normalizeColor } from '../../utils';
|
|
2
|
+
import { backgroundStyle, fillStyle, focusStyle, unfocusStyle, genericStyles, normalizeColor, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
4
|
import { Box } from '../Box';
|
|
5
5
|
import { TableRow } from '../TableRow';
|
|
@@ -95,7 +95,7 @@ var StyledDataTableCell = styled(TableCell).withConfig({
|
|
|
95
95
|
});
|
|
96
96
|
StyledDataTableCell.defaultProps = {};
|
|
97
97
|
Object.setPrototypeOf(StyledDataTableCell.defaultProps, defaultProps);
|
|
98
|
-
var StyledPlaceholder = styled('caption').withConfig({
|
|
98
|
+
var StyledPlaceholder = styled('caption').withConfig(styledComponentsConfig).withConfig({
|
|
99
99
|
displayName: "StyledDataTable__StyledPlaceholder",
|
|
100
100
|
componentId: "sc-xrlyjm-7"
|
|
101
101
|
})(["position:absolute;", " ", " left:0;right:0;"], function (props) {
|
|
@@ -30,7 +30,7 @@ var customTheme = {
|
|
|
30
30
|
var column = _ref.column,
|
|
31
31
|
sort = _ref.sort,
|
|
32
32
|
sortable = _ref.sortable;
|
|
33
|
-
return "\n " + (sortable && sort && sort.property !== column && "\n
|
|
33
|
+
return "\n " + (sortable && sort && sort.property !== column && "\n &:hover {\n svg {\n opacity: 100%;\n }\n }\n ") + "\n ";
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
icons: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { defaultProps } from '../../default-props';
|
|
3
3
|
import { animationObjectStyle } from '../../utils/animation';
|
|
4
|
+
import { styledComponentsConfig } from '../../utils/styles';
|
|
4
5
|
var animationItemStyle = function animationItemStyle(animationType, theme) {
|
|
5
6
|
if (typeof animationType === 'string') {
|
|
6
7
|
return animationObjectStyle({
|
|
@@ -37,7 +38,7 @@ var connectionStyle = function connectionStyle(connection, index, theme) {
|
|
|
37
38
|
return css(["path:nth-child(", "){stroke-dasharray:", ";stroke-dashoffset:", ";animation:", ";}"], index + 1, animationType === 'draw' || animationType === true ? 500 : 0, animationType === 'draw' || animationType === true ? 500 : 0, animationItemStyle(connection.props.animation, theme));
|
|
38
39
|
};
|
|
39
40
|
var availableAnimations = [true, 'draw', 'pulse'];
|
|
40
|
-
var StyledDiagram = styled.svg.withConfig({
|
|
41
|
+
var StyledDiagram = styled.svg.withConfig(styledComponentsConfig).withConfig({
|
|
41
42
|
displayName: "StyledDiagram",
|
|
42
43
|
componentId: "sc-1vzeu9f-0"
|
|
43
44
|
})(["max-width:100%;width:100%;height:100%;", " ", " ", ""], function (props) {
|
|
@@ -7,7 +7,6 @@ import { ContainerTargetContext } from '../../contexts/ContainerTargetContext';
|
|
|
7
7
|
import { FocusedContainer } from '../FocusedContainer';
|
|
8
8
|
import { backgroundIsDark, findScrollParents, parseMetricToNum, PortalContext, useForwardedRef } from '../../utils';
|
|
9
9
|
import { defaultProps } from '../../default-props';
|
|
10
|
-
import { Box } from '../Box';
|
|
11
10
|
import { Keyboard } from '../Keyboard';
|
|
12
11
|
import { StyledDrop } from './StyledDrop';
|
|
13
12
|
import { OptionsContext } from '../../contexts/OptionsContext';
|
|
@@ -270,7 +269,6 @@ var DropContainer = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
270
269
|
var content = /*#__PURE__*/React.createElement(StyledDrop, _extends({
|
|
271
270
|
"aria-label": a11yTitle || ariaLabel,
|
|
272
271
|
ref: dropRef,
|
|
273
|
-
as: Box,
|
|
274
272
|
background: background,
|
|
275
273
|
plain: plain,
|
|
276
274
|
elevation: !plain ? elevation || theme.global.drop.elevation || theme.global.drop.shadowSize ||
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import styled, { keyframes } from 'styled-components';
|
|
2
|
+
import { Box } from '../Box';
|
|
2
3
|
import { baseStyle, edgeStyle, roundStyle } from '../../utils/styles';
|
|
3
4
|
import { backgroundStyle } from '../../utils/background';
|
|
4
5
|
import { defaultProps } from '../../default-props';
|
|
@@ -30,7 +31,7 @@ var marginStyle = function marginStyle(theme, align, data, responsive, marginPro
|
|
|
30
31
|
}
|
|
31
32
|
return edgeStyle('margin', adjustedMargin, responsive, theme.global.edgeSize.responsiveBreakpoint, theme);
|
|
32
33
|
};
|
|
33
|
-
var StyledDrop = styled.
|
|
34
|
+
var StyledDrop = styled(Box).withConfig({
|
|
34
35
|
displayName: "StyledDrop",
|
|
35
36
|
componentId: "sc-16s5rx8-0"
|
|
36
37
|
})(["", " ", " position:fixed;z-index:", ";outline:none;", " ", " opacity:0;transform-origin:", ";animation:", " 0.1s forwards;animation-delay:0.01s;@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){display:flex;align-items:stretch;}", ""], baseStyle, function (props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { inputStyle } from '../../utils';
|
|
2
|
+
import { inputStyle, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
|
-
var StyledFileInput = styled.input.withConfig({
|
|
4
|
+
var StyledFileInput = styled.input.withConfig(styledComponentsConfig).withConfig({
|
|
5
5
|
displayName: "StyledFileInput",
|
|
6
6
|
componentId: "sc-rl7ywv-0"
|
|
7
7
|
})(["position:absolute;height:100%;width:100%;", " font-size:0;opacity:0;border:none;", " ", " &::-moz-focus-inner{border:none;outline:none;}&::-webkit-file-upload-button{cursor:pointer;}"], inputStyle, function (props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { defaultProps } from '../../default-props';
|
|
3
|
-
import { alignContentStyle, alignStyle, borderStyle, edgeStyle, genericStyles, heightStyle, widthStyle } from '../../utils';
|
|
3
|
+
import { alignContentStyle, alignStyle, borderStyle, edgeStyle, genericStyles, heightStyle, widthStyle, styledComponentsConfig } from '../../utils';
|
|
4
4
|
var fillStyle = function fillStyle(fill) {
|
|
5
5
|
if (!fill) {
|
|
6
6
|
return fill;
|
|
@@ -162,7 +162,7 @@ var areasStyle = function areasStyle(props) {
|
|
|
162
162
|
return "\"" + r.join(' ') + "\"";
|
|
163
163
|
}).join(' ') + ";";
|
|
164
164
|
};
|
|
165
|
-
var StyledGrid = styled.div.attrs(function (props) {
|
|
165
|
+
var StyledGrid = styled.div.withConfig(styledComponentsConfig).attrs(function (props) {
|
|
166
166
|
return {
|
|
167
167
|
'aria-label': props.a11yTitleProp
|
|
168
168
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import { baseStyle } from '../../utils';
|
|
2
|
+
import { baseStyle, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
4
|
var fullStyle = function fullStyle(full) {
|
|
5
5
|
if (full === 'min') return css(["min-height:100vh;"]);
|
|
6
6
|
return css(["width:100vw;height:100vh;overflow:auto;"]);
|
|
7
7
|
};
|
|
8
|
-
var StyledGrommet = styled.div.withConfig({
|
|
8
|
+
var StyledGrommet = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
9
9
|
displayName: "StyledGrommet",
|
|
10
10
|
componentId: "sc-19lkkz7-0"
|
|
11
11
|
})(["", " ", " ", " ", " ", ""], function (props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import { breakpointStyle, genericStyles, normalizeColor, textAlignStyle } from '../../utils';
|
|
2
|
+
import { breakpointStyle, genericStyles, normalizeColor, textAlignStyle, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
4
|
var sizeStyle = function sizeStyle(props) {
|
|
5
5
|
// size is a combination of the level and size properties
|
|
@@ -35,7 +35,7 @@ var truncateStyle = "\n white-space: nowrap;\n overflow: hidden;\n text-overf
|
|
|
35
35
|
var colorStyle = css(["color:", ";"], function (props) {
|
|
36
36
|
return normalizeColor(props.colorProp || props.theme.heading.color, props.theme);
|
|
37
37
|
});
|
|
38
|
-
var StyledHeading = styled.h1.withConfig({
|
|
38
|
+
var StyledHeading = styled.h1.withConfig(styledComponentsConfig).withConfig({
|
|
39
39
|
displayName: "StyledHeading",
|
|
40
40
|
componentId: "sc-1rdh4aw-0"
|
|
41
41
|
})(["", " ", " ", " ", " ", " ", " ", ""], genericStyles, function (props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import { fillStyle, genericStyles } from '../../utils';
|
|
2
|
+
import { fillStyle, genericStyles, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
4
|
var FIT_MAP = {
|
|
5
5
|
cover: 'cover',
|
|
@@ -8,7 +8,7 @@ var FIT_MAP = {
|
|
|
8
8
|
var fitStyle = css(["flex:1 1;overflow:hidden;object-fit:", ";"], function (props) {
|
|
9
9
|
return FIT_MAP[props.fit];
|
|
10
10
|
});
|
|
11
|
-
var StyledImage = styled.img.withConfig({
|
|
11
|
+
var StyledImage = styled.img.withConfig(styledComponentsConfig).withConfig({
|
|
12
12
|
displayName: "StyledImage",
|
|
13
13
|
componentId: "sc-ey4zx9-0"
|
|
14
14
|
})(["", " ", " ", " ", " ", ""], genericStyles, function (props) {
|
|
@@ -10,9 +10,9 @@ import { ResponsiveContext } from '../../contexts/ResponsiveContext';
|
|
|
10
10
|
import { OptionsContext } from '../../contexts/OptionsContext';
|
|
11
11
|
import { ContainerTargetContext } from '../../contexts/ContainerTargetContext';
|
|
12
12
|
import { useAnalytics } from '../../contexts/AnalyticsContext';
|
|
13
|
-
import { backgroundIsDark, findVisibleParent, PortalContext } from '../../utils';
|
|
13
|
+
import { backgroundIsDark, findVisibleParent, PortalContext, styledComponentsConfig } from '../../utils';
|
|
14
14
|
import { StyledLayer, StyledContainer, StyledOverlay } from './StyledLayer';
|
|
15
|
-
var HiddenAnchor = styled.a.withConfig({
|
|
15
|
+
var HiddenAnchor = styled.a.withConfig(styledComponentsConfig).withConfig({
|
|
16
16
|
displayName: "LayerContainer__HiddenAnchor",
|
|
17
17
|
componentId: "sc-1srj14c-0"
|
|
18
18
|
})(["width:0;height:0;overflow:hidden;position:absolute;"]);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import styled, { css, keyframes } from 'styled-components';
|
|
2
|
-
import
|
|
2
|
+
import isPropValid from '@emotion/is-prop-valid';
|
|
3
|
+
import { baseStyle, backgroundStyle, breakpointStyle, parseMetricToNum, styledComponentsConfig } from '../../utils';
|
|
3
4
|
import { defaultProps } from '../../default-props';
|
|
4
5
|
var hiddenPositionStyle = css(["left:-100%;right:100%;z-index:-1;position:fixed;"]);
|
|
5
6
|
var desktopLayerStyle = "\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n";
|
|
6
7
|
var responsiveLayerStyle = "\n position: fixed;\n width: 100%;\n height: 100%;\n min-height: 100vh;\n";
|
|
7
|
-
var StyledLayer = styled.div.withConfig({
|
|
8
|
+
var StyledLayer = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
8
9
|
displayName: "StyledLayer",
|
|
9
10
|
componentId: "sc-rmtehz-0"
|
|
10
11
|
})(["", " background:transparent;position:relative;z-index:", ";pointer-events:none;outline:none;", " ", ";"], baseStyle, function (props) {
|
|
@@ -25,7 +26,7 @@ var StyledLayer = styled.div.withConfig({
|
|
|
25
26
|
});
|
|
26
27
|
StyledLayer.defaultProps = {};
|
|
27
28
|
Object.setPrototypeOf(StyledLayer.defaultProps, defaultProps);
|
|
28
|
-
var StyledOverlay = styled.div.withConfig({
|
|
29
|
+
var StyledOverlay = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
29
30
|
displayName: "StyledLayer__StyledOverlay",
|
|
30
31
|
componentId: "sc-rmtehz-1"
|
|
31
32
|
})(["position:absolute;", " top:0px;left:0px;right:0px;bottom:0px;", " ", " pointer-events:all;will-change:transform;"], function (props) {
|
|
@@ -441,10 +442,8 @@ var elevationStyle = css(["box-shadow:", ";"], function (props) {
|
|
|
441
442
|
return props.theme.global.elevation[props.theme.dark ? 'dark' : 'light'][props.theme.layer.container.elevation];
|
|
442
443
|
});
|
|
443
444
|
var StyledContainer = styled.div.withConfig({
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
|
|
447
|
-
return !['elevation'].includes(prop) && defaultValidatorFn(prop);
|
|
445
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
446
|
+
return isPropValid(prop) && !['elevation'].includes(prop);
|
|
448
447
|
}
|
|
449
448
|
}).withConfig({
|
|
450
449
|
displayName: "StyledLayer__StyledContainer",
|
|
@@ -10,11 +10,11 @@ import { InfiniteScroll } from '../InfiniteScroll';
|
|
|
10
10
|
import { Keyboard } from '../Keyboard';
|
|
11
11
|
import { Pagination } from '../Pagination';
|
|
12
12
|
import { Text } from '../Text';
|
|
13
|
-
import { focusStyle, genericStyles, normalizeColor, normalizeShow, unfocusStyle, useForwardedRef, usePagination } from '../../utils';
|
|
13
|
+
import { focusStyle, genericStyles, normalizeColor, normalizeShow, unfocusStyle, useForwardedRef, usePagination, styledComponentsConfig } from '../../utils';
|
|
14
14
|
import { useAnalytics } from '../../contexts/AnalyticsContext';
|
|
15
15
|
import { ListPropTypes } from './propTypes';
|
|
16
16
|
var emptyData = [];
|
|
17
|
-
var StyledList = styled.ul.withConfig({
|
|
17
|
+
var StyledList = styled.ul.withConfig(styledComponentsConfig).withConfig({
|
|
18
18
|
displayName: "List__StyledList",
|
|
19
19
|
componentId: "sc-130gdqg-0"
|
|
20
20
|
})(["list-style:none;", " padding:0;", " &:focus{", "}", "}", "}"], function (props) {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import { Box, Markdown } from 'grommet';
|
|
4
|
+
import { styledComponentsConfig } from '../../../utils/styles';
|
|
4
5
|
var CONTENT = "\n # Out of Breath\n\n You know, sometimes in life it seems like there's no way out. Like\n a sheep trapped in a maze designed by wolves. See all the\n options [here](https://github.com/probablyup/markdown-to-jsx/)\n\n [reference](#)\n\n```\nimport { Grommet } from 'grommet';\n```\n\n > i carry your heart with me\n\n \n\n Markdown | Less | Pretty\n --- | --- | ---\n *Still* | `renders` | **nicely**\n 1 | 2 | 3\n";
|
|
5
|
-
var StyledPre = styled.pre.withConfig({
|
|
6
|
+
var StyledPre = styled.pre.withConfig(styledComponentsConfig).withConfig({
|
|
6
7
|
displayName: "Override__StyledPre",
|
|
7
8
|
componentId: "sc-13lo9xg-0"
|
|
8
9
|
})(["background-color:#ffca58;"]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { disabledStyle, getInputPadBySide, inputStyle, plainInputStyle, textAlignStyle } from '../../utils';
|
|
2
|
+
import { disabledStyle, getInputPadBySide, inputStyle, plainInputStyle, textAlignStyle, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { inputPadForIcon } from '../../utils/styles';
|
|
4
|
-
export var StyledMaskedInput = styled.input.withConfig({
|
|
4
|
+
export var StyledMaskedInput = styled.input.withConfig(styledComponentsConfig).withConfig({
|
|
5
5
|
displayName: "StyledMaskedInput",
|
|
6
6
|
componentId: "sc-99vkfa-0"
|
|
7
7
|
})(["", " ", " ", " ", " ", " ", ";"], inputStyle, function (props) {
|
|
@@ -15,13 +15,13 @@ export var StyledMaskedInput = styled.input.withConfig({
|
|
|
15
15
|
}, function (props) {
|
|
16
16
|
return props.theme.maskedInput && props.theme.maskedInput.extend;
|
|
17
17
|
});
|
|
18
|
-
export var StyledMaskedInputContainer = styled.div.withConfig({
|
|
18
|
+
export var StyledMaskedInputContainer = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
19
19
|
displayName: "StyledMaskedInput__StyledMaskedInputContainer",
|
|
20
20
|
componentId: "sc-99vkfa-1"
|
|
21
21
|
})(["position:relative;width:100%;", ";"], function (props) {
|
|
22
22
|
return props.theme.maskedInput && props.theme.maskedInput.container && props.theme.maskedInput.container.extend;
|
|
23
23
|
});
|
|
24
|
-
export var StyledIcon = styled.div.withConfig({
|
|
24
|
+
export var StyledIcon = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
25
25
|
displayName: "StyledMaskedInput__StyledIcon",
|
|
26
26
|
componentId: "sc-99vkfa-2"
|
|
27
27
|
})(["position:absolute;display:flex;justify:center;top:50%;transform:translateY(-50%);pointer-events:none;", ""], function (props) {
|
|
@@ -16,7 +16,7 @@ import { MenuPropTypes } from './propTypes';
|
|
|
16
16
|
var ContainerBox = styled(Box).withConfig({
|
|
17
17
|
displayName: "Menu__ContainerBox",
|
|
18
18
|
componentId: "sc-17fcys9-0"
|
|
19
|
-
})(["max-height:inherit;@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){width:100%;}
|
|
19
|
+
})(["max-height:inherit;@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){width:100%;}&:focus{outline:none;}", ";"], function (props) {
|
|
20
20
|
return props.theme.menu.extend;
|
|
21
21
|
});
|
|
22
22
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import { genericStyles } from '../../utils';
|
|
2
|
+
import { genericStyles, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
4
|
var roundStyle = css(["border-radius:", ";"], function (props) {
|
|
5
5
|
return props.theme.global.edgeSize[props.round.size];
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
// overflow: hidden is needed for ie11
|
|
9
|
-
var StyledMeter = styled.svg.withConfig({
|
|
9
|
+
var StyledMeter = styled.svg.withConfig(styledComponentsConfig).withConfig({
|
|
10
10
|
displayName: "StyledMeter",
|
|
11
11
|
componentId: "sc-nsxarx-0"
|
|
12
12
|
})(["max-width:100%;overflow:hidden;", " ", " ", " path{transition:stroke 0.3s,stroke-width 0.3s;}", ";"], function (props) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
+
import { styledComponentsConfig } from '../../utils/styles';
|
|
2
3
|
import { Button } from '../Button';
|
|
3
4
|
import { Text } from '../Text';
|
|
4
5
|
var sizeStyle = function sizeStyle(props) {
|
|
@@ -22,7 +23,7 @@ export var StyledPaginationButton = styled(Button).withConfig({
|
|
|
22
23
|
})(["> svg{margin:0 auto;}", ";"], function (props) {
|
|
23
24
|
return sizeStyle(props).content;
|
|
24
25
|
});
|
|
25
|
-
export var StyledContainer = styled.div.withConfig({
|
|
26
|
+
export var StyledContainer = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
26
27
|
displayName: "StyledPageControl__StyledContainer",
|
|
27
28
|
componentId: "sc-1vlfaez-1"
|
|
28
29
|
})(["display:flex;align-items:center;justify-content:center;max-width:100%;", ";", ";"], function (props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import { genericStyles, normalizeColor, textAlignStyle } from '../../utils';
|
|
2
|
+
import { genericStyles, normalizeColor, textAlignStyle, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
4
|
var colorStyle = css(["color:", ";"], function (props) {
|
|
5
5
|
return normalizeColor(props.colorProp, props.theme);
|
|
@@ -15,7 +15,7 @@ var fontFamily = css(["font-family:", ";"], function (props) {
|
|
|
15
15
|
var maxlinesStyle = function maxlinesStyle(props) {
|
|
16
16
|
return props.maxLines && css(["display:-webkit-box;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], props.maxLines);
|
|
17
17
|
};
|
|
18
|
-
var StyledParagraph = styled.p.withConfig({
|
|
18
|
+
var StyledParagraph = styled.p.withConfig(styledComponentsConfig).withConfig({
|
|
19
19
|
displayName: "StyledParagraph",
|
|
20
20
|
componentId: "sc-tbetod-0"
|
|
21
21
|
})(["", " ", " ", " ", " ", " ", " ", ""], genericStyles, function (props) {
|
|
@@ -3,7 +3,6 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
3
3
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
4
|
import React, { forwardRef, useContext, useState } from 'react';
|
|
5
5
|
import { ThemeContext } from 'styled-components';
|
|
6
|
-
import { Box } from '../Box';
|
|
7
6
|
import { defaultProps } from '../../default-props';
|
|
8
7
|
import { normalizeColor, removeUndefined } from '../../utils';
|
|
9
8
|
import { StyledRadioButton, StyledRadioButtonContainer, StyledRadioButtonIcon, StyledRadioButtonInput, StyledRadioButtonLabel, StyledRadioButtonBox } from './StyledRadioButton';
|
|
@@ -56,7 +55,6 @@ var RadioButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
56
55
|
return setHover(false);
|
|
57
56
|
}
|
|
58
57
|
}), /*#__PURE__*/React.createElement(StyledRadioButton, {
|
|
59
|
-
as: Box,
|
|
60
58
|
flex: false,
|
|
61
59
|
margin: label ? {
|
|
62
60
|
right: theme.radioButton.gap || 'small'
|
|
@@ -78,7 +76,6 @@ var RadioButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
78
76
|
hover: hover
|
|
79
77
|
}) : /*#__PURE__*/React.createElement(StyledRadioButtonBox, {
|
|
80
78
|
focus: focus && focusIndicator,
|
|
81
|
-
as: Box,
|
|
82
79
|
align: "center",
|
|
83
80
|
justify: "center",
|
|
84
81
|
width: theme.radioButton.size,
|