@zendeskgarden/react-datepickers 9.0.0-next.5 → 9.0.0-next.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +5 -5
- package/dist/index.esm.js +5 -5
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -63,7 +63,7 @@ const PLACEMENT = ['auto', ...reactTheming.PLACEMENT];
|
|
|
63
63
|
const COMPONENT_ID$b = 'datepickers.menu';
|
|
64
64
|
const StyledMenu = styled__default.default.div.attrs({
|
|
65
65
|
'data-garden-id': COMPONENT_ID$b,
|
|
66
|
-
'data-garden-version': '9.0.0-next.
|
|
66
|
+
'data-garden-version': '9.0.0-next.7'
|
|
67
67
|
}).withConfig({
|
|
68
68
|
displayName: "StyledMenu",
|
|
69
69
|
componentId: "sc-1npbkk0-0"
|
|
@@ -106,7 +106,7 @@ const StyledDatePicker = styled__default.default.div.attrs({
|
|
|
106
106
|
}).withConfig({
|
|
107
107
|
displayName: "StyledDatePicker",
|
|
108
108
|
componentId: "sc-15hwqzh-0"
|
|
109
|
-
})(["direction:", ";", " background-color:", ";color:", ";", ";"], props => props.theme.rtl && 'rtl', retrievePadding, props => props.theme
|
|
109
|
+
})(["direction:", ";", " background-color:", ";color:", ";", ";"], props => props.theme.rtl && 'rtl', retrievePadding, props => reactTheming.getColorV8('background', 600 , props.theme), props => reactTheming.getColorV8('foreground', 600 , props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$9, props));
|
|
110
110
|
StyledDatePicker.defaultProps = {
|
|
111
111
|
theme: reactTheming.DEFAULT_THEME
|
|
112
112
|
};
|
|
@@ -148,7 +148,7 @@ const retrieveColor$1 = _ref2 => {
|
|
|
148
148
|
let {
|
|
149
149
|
theme
|
|
150
150
|
} = _ref2;
|
|
151
|
-
return styled.css([":hover{background-color:", ";color:", ";}:active{background-color:", ";color:", ";}color:", ";"], reactTheming.getColorV8('primaryHue', 600, theme, 0.08),
|
|
151
|
+
return styled.css([":hover{background-color:", ";color:", ";}:active{background-color:", ";color:", ";}color:", ";"], reactTheming.getColorV8('primaryHue', 600, theme, 0.08), reactTheming.getColorV8('foreground', 600 , theme), reactTheming.getColorV8('primaryHue', 600, theme, 0.2), reactTheming.getColorV8('foreground', 600 , theme), reactTheming.getColorV8('neutralHue', 600, theme));
|
|
152
152
|
};
|
|
153
153
|
const COMPONENT_ID$6 = 'datepickers.header_paddle';
|
|
154
154
|
const StyledHeaderPaddle = styled__default.default.div.attrs({
|
|
@@ -270,7 +270,7 @@ const retrieveStyledDayColors = _ref => {
|
|
|
270
270
|
let color = reactTheming.getColorV8('primaryHue', 600, theme);
|
|
271
271
|
if (isSelected && !isDisabled) {
|
|
272
272
|
backgroundColor = reactTheming.getColorV8('primaryHue', 600, theme);
|
|
273
|
-
color =
|
|
273
|
+
color = reactTheming.getColorV8('background', 600 , theme);
|
|
274
274
|
} else if (isDisabled) {
|
|
275
275
|
color = reactTheming.getColorV8('neutralHue', 400, theme);
|
|
276
276
|
} else if (isToday) {
|
|
@@ -1612,7 +1612,7 @@ const Calendar = React.forwardRef((props, ref) => {
|
|
|
1612
1612
|
return React__namespace.default.createElement(StyledRangeCalendar, _extends({
|
|
1613
1613
|
ref: ref,
|
|
1614
1614
|
"data-garden-id": "datepickers.range",
|
|
1615
|
-
"data-garden-version": '9.0.0-next.
|
|
1615
|
+
"data-garden-version": '9.0.0-next.7'
|
|
1616
1616
|
}, props), React__namespace.default.createElement(Month, {
|
|
1617
1617
|
displayDate: state.previewDate,
|
|
1618
1618
|
isNextHidden: true
|
package/dist/index.esm.js
CHANGED
|
@@ -38,7 +38,7 @@ const PLACEMENT = ['auto', ...PLACEMENT$1];
|
|
|
38
38
|
const COMPONENT_ID$b = 'datepickers.menu';
|
|
39
39
|
const StyledMenu = styled.div.attrs({
|
|
40
40
|
'data-garden-id': COMPONENT_ID$b,
|
|
41
|
-
'data-garden-version': '9.0.0-next.
|
|
41
|
+
'data-garden-version': '9.0.0-next.7'
|
|
42
42
|
}).withConfig({
|
|
43
43
|
displayName: "StyledMenu",
|
|
44
44
|
componentId: "sc-1npbkk0-0"
|
|
@@ -81,7 +81,7 @@ const StyledDatePicker = styled.div.attrs({
|
|
|
81
81
|
}).withConfig({
|
|
82
82
|
displayName: "StyledDatePicker",
|
|
83
83
|
componentId: "sc-15hwqzh-0"
|
|
84
|
-
})(["direction:", ";", " background-color:", ";color:", ";", ";"], props => props.theme.rtl && 'rtl', retrievePadding, props => props.theme
|
|
84
|
+
})(["direction:", ";", " background-color:", ";color:", ";", ";"], props => props.theme.rtl && 'rtl', retrievePadding, props => getColorV8('background', 600 , props.theme), props => getColorV8('foreground', 600 , props.theme), props => retrieveComponentStyles(COMPONENT_ID$9, props));
|
|
85
85
|
StyledDatePicker.defaultProps = {
|
|
86
86
|
theme: DEFAULT_THEME
|
|
87
87
|
};
|
|
@@ -123,7 +123,7 @@ const retrieveColor$1 = _ref2 => {
|
|
|
123
123
|
let {
|
|
124
124
|
theme
|
|
125
125
|
} = _ref2;
|
|
126
|
-
return css([":hover{background-color:", ";color:", ";}:active{background-color:", ";color:", ";}color:", ";"], getColorV8('primaryHue', 600, theme, 0.08),
|
|
126
|
+
return css([":hover{background-color:", ";color:", ";}:active{background-color:", ";color:", ";}color:", ";"], getColorV8('primaryHue', 600, theme, 0.08), getColorV8('foreground', 600 , theme), getColorV8('primaryHue', 600, theme, 0.2), getColorV8('foreground', 600 , theme), getColorV8('neutralHue', 600, theme));
|
|
127
127
|
};
|
|
128
128
|
const COMPONENT_ID$6 = 'datepickers.header_paddle';
|
|
129
129
|
const StyledHeaderPaddle = styled.div.attrs({
|
|
@@ -245,7 +245,7 @@ const retrieveStyledDayColors = _ref => {
|
|
|
245
245
|
let color = getColorV8('primaryHue', 600, theme);
|
|
246
246
|
if (isSelected && !isDisabled) {
|
|
247
247
|
backgroundColor = getColorV8('primaryHue', 600, theme);
|
|
248
|
-
color = theme
|
|
248
|
+
color = getColorV8('background', 600 , theme);
|
|
249
249
|
} else if (isDisabled) {
|
|
250
250
|
color = getColorV8('neutralHue', 400, theme);
|
|
251
251
|
} else if (isToday) {
|
|
@@ -1587,7 +1587,7 @@ const Calendar = forwardRef((props, ref) => {
|
|
|
1587
1587
|
return React__default.createElement(StyledRangeCalendar, _extends({
|
|
1588
1588
|
ref: ref,
|
|
1589
1589
|
"data-garden-id": "datepickers.range",
|
|
1590
|
-
"data-garden-version": '9.0.0-next.
|
|
1590
|
+
"data-garden-version": '9.0.0-next.7'
|
|
1591
1591
|
}, props), React__default.createElement(Month, {
|
|
1592
1592
|
displayDate: state.previewDate,
|
|
1593
1593
|
isNextHidden: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-datepickers",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.7",
|
|
4
4
|
"description": "Components relating to datepickers in the Garden Design System",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"styled-components": "^5.3.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@zendeskgarden/react-theming": "^9.0.0-next.
|
|
37
|
+
"@zendeskgarden/react-theming": "^9.0.0-next.7",
|
|
38
38
|
"@zendeskgarden/svg-icons": "7.0.0"
|
|
39
39
|
},
|
|
40
40
|
"keywords": [
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"zendeskgarden:src": "src/index.ts",
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "50a2b45b2e237a490a6d460818d33498b92479ec"
|
|
51
51
|
}
|