@zendeskgarden/react-datepickers 8.62.2 → 8.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -10
- package/dist/index.esm.js +4 -10
- package/dist/typings/elements/Datepicker/utils/datepicker-reducer.d.ts +1 -1
- package/dist/typings/elements/DatepickerRange/utils/datepicker-range-reducer.d.ts +1 -1
- package/dist/typings/types/index.d.ts +2 -2
- package/dist/typings/utils/calendar-utils.d.ts +1 -1
- package/package.json +4 -4
package/dist/index.cjs.js
CHANGED
|
@@ -262,7 +262,7 @@ function getDate(dirtyDate) {
|
|
|
262
262
|
const COMPONENT_ID$b = 'datepickers.menu';
|
|
263
263
|
const StyledMenu = styled__default.default.div.attrs({
|
|
264
264
|
'data-garden-id': COMPONENT_ID$b,
|
|
265
|
-
'data-garden-version': '8.
|
|
265
|
+
'data-garden-version': '8.63.0'
|
|
266
266
|
}).withConfig({
|
|
267
267
|
displayName: "StyledMenu",
|
|
268
268
|
componentId: "sc-1npbkk0-0"
|
|
@@ -591,9 +591,7 @@ function getStartOfWeek(locale) {
|
|
|
591
591
|
}
|
|
592
592
|
|
|
593
593
|
var _path$1;
|
|
594
|
-
|
|
595
594
|
function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
|
|
596
|
-
|
|
597
595
|
var SvgChevronLeftStroke = function SvgChevronLeftStroke(props) {
|
|
598
596
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
599
597
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -601,8 +599,7 @@ var SvgChevronLeftStroke = function SvgChevronLeftStroke(props) {
|
|
|
601
599
|
height: 16,
|
|
602
600
|
focusable: "false",
|
|
603
601
|
viewBox: "0 0 16 16",
|
|
604
|
-
"aria-hidden": "true"
|
|
605
|
-
role: "img"
|
|
602
|
+
"aria-hidden": "true"
|
|
606
603
|
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
607
604
|
fill: "currentColor",
|
|
608
605
|
d: "M10.39 12.688a.5.5 0 01-.718.69l-.062-.066-4-5a.5.5 0 01-.054-.542l.054-.082 4-5a.5.5 0 01.83.55l-.05.074L6.641 8l3.75 4.688z"
|
|
@@ -610,9 +607,7 @@ var SvgChevronLeftStroke = function SvgChevronLeftStroke(props) {
|
|
|
610
607
|
};
|
|
611
608
|
|
|
612
609
|
var _path;
|
|
613
|
-
|
|
614
610
|
function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
615
|
-
|
|
616
611
|
var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
|
|
617
612
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
618
613
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -620,8 +615,7 @@ var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
|
|
|
620
615
|
height: 16,
|
|
621
616
|
focusable: "false",
|
|
622
617
|
viewBox: "0 0 16 16",
|
|
623
|
-
"aria-hidden": "true"
|
|
624
|
-
role: "img"
|
|
618
|
+
"aria-hidden": "true"
|
|
625
619
|
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
626
620
|
fill: "currentColor",
|
|
627
621
|
d: "M5.61 3.312a.5.5 0 01.718-.69l.062.066 4 5a.5.5 0 01.054.542l-.054.082-4 5a.5.5 0 01-.83-.55l.05-.074L9.359 8l-3.75-4.688z"
|
|
@@ -3999,7 +3993,7 @@ const Calendar = React.forwardRef((props, ref) => {
|
|
|
3999
3993
|
return React__namespace.default.createElement(StyledRangeCalendar, _extends({
|
|
4000
3994
|
ref: ref,
|
|
4001
3995
|
"data-garden-id": "datepickers.range",
|
|
4002
|
-
"data-garden-version": '8.
|
|
3996
|
+
"data-garden-version": '8.63.0'
|
|
4003
3997
|
}, props), React__namespace.default.createElement(Month, {
|
|
4004
3998
|
displayDate: state.previewDate,
|
|
4005
3999
|
isNextHidden: true
|
package/dist/index.esm.js
CHANGED
|
@@ -237,7 +237,7 @@ function getDate(dirtyDate) {
|
|
|
237
237
|
const COMPONENT_ID$b = 'datepickers.menu';
|
|
238
238
|
const StyledMenu = styled.div.attrs({
|
|
239
239
|
'data-garden-id': COMPONENT_ID$b,
|
|
240
|
-
'data-garden-version': '8.
|
|
240
|
+
'data-garden-version': '8.63.0'
|
|
241
241
|
}).withConfig({
|
|
242
242
|
displayName: "StyledMenu",
|
|
243
243
|
componentId: "sc-1npbkk0-0"
|
|
@@ -566,9 +566,7 @@ function getStartOfWeek(locale) {
|
|
|
566
566
|
}
|
|
567
567
|
|
|
568
568
|
var _path$1;
|
|
569
|
-
|
|
570
569
|
function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
|
|
571
|
-
|
|
572
570
|
var SvgChevronLeftStroke = function SvgChevronLeftStroke(props) {
|
|
573
571
|
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
574
572
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -576,8 +574,7 @@ var SvgChevronLeftStroke = function SvgChevronLeftStroke(props) {
|
|
|
576
574
|
height: 16,
|
|
577
575
|
focusable: "false",
|
|
578
576
|
viewBox: "0 0 16 16",
|
|
579
|
-
"aria-hidden": "true"
|
|
580
|
-
role: "img"
|
|
577
|
+
"aria-hidden": "true"
|
|
581
578
|
}, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
582
579
|
fill: "currentColor",
|
|
583
580
|
d: "M10.39 12.688a.5.5 0 01-.718.69l-.062-.066-4-5a.5.5 0 01-.054-.542l.054-.082 4-5a.5.5 0 01.83.55l-.05.074L6.641 8l3.75 4.688z"
|
|
@@ -585,9 +582,7 @@ var SvgChevronLeftStroke = function SvgChevronLeftStroke(props) {
|
|
|
585
582
|
};
|
|
586
583
|
|
|
587
584
|
var _path;
|
|
588
|
-
|
|
589
585
|
function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
590
|
-
|
|
591
586
|
var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
|
|
592
587
|
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
593
588
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -595,8 +590,7 @@ var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
|
|
|
595
590
|
height: 16,
|
|
596
591
|
focusable: "false",
|
|
597
592
|
viewBox: "0 0 16 16",
|
|
598
|
-
"aria-hidden": "true"
|
|
599
|
-
role: "img"
|
|
593
|
+
"aria-hidden": "true"
|
|
600
594
|
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
601
595
|
fill: "currentColor",
|
|
602
596
|
d: "M5.61 3.312a.5.5 0 01.718-.69l.062.066 4 5a.5.5 0 01.054.542l-.054.082-4 5a.5.5 0 01-.83-.55l.05-.074L9.359 8l-3.75-4.688z"
|
|
@@ -3974,7 +3968,7 @@ const Calendar = forwardRef((props, ref) => {
|
|
|
3974
3968
|
return React__default.createElement(StyledRangeCalendar, _extends({
|
|
3975
3969
|
ref: ref,
|
|
3976
3970
|
"data-garden-id": "datepickers.range",
|
|
3977
|
-
"data-garden-version": '8.
|
|
3971
|
+
"data-garden-version": '8.63.0'
|
|
3978
3972
|
}, props), React__default.createElement(Month, {
|
|
3979
3973
|
displayDate: state.previewDate,
|
|
3980
3974
|
isNextHidden: true
|
|
@@ -27,7 +27,7 @@ export declare function formatValue({ value, locale, formatDate }: {
|
|
|
27
27
|
export declare function parseInputValue({ inputValue }: {
|
|
28
28
|
inputValue?: string;
|
|
29
29
|
}): Date;
|
|
30
|
-
export
|
|
30
|
+
export type DatepickerRangeAction = {
|
|
31
31
|
type: 'HOVER_DATE';
|
|
32
32
|
value?: Date;
|
|
33
33
|
} | {
|
|
@@ -9,8 +9,8 @@ import { Modifiers } from 'popper.js';
|
|
|
9
9
|
import { DateFnsIndex } from '../utils/calendar-utils';
|
|
10
10
|
export declare const PLACEMENT: readonly ["auto", "top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "end", "end-top", "end-bottom", "start", "start-top", "start-bottom"];
|
|
11
11
|
export declare const POPPER_PLACEMENT: readonly ["auto", "top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "right", "right-start", "right-end", "left", "left-start", "left-end"];
|
|
12
|
-
export
|
|
13
|
-
export
|
|
12
|
+
export type GardenPlacement = (typeof PLACEMENT)[number];
|
|
13
|
+
export type PopperPlacement = (typeof POPPER_PLACEMENT)[number];
|
|
14
14
|
export interface IDatepickerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
15
15
|
/**
|
|
16
16
|
* Sets the selected date
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* 6 - Saturday
|
|
12
12
|
*/
|
|
13
13
|
/** This type matches definition required by date-fns utilities */
|
|
14
|
-
export
|
|
14
|
+
export type DateFnsIndex = 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* Return start day of week based on locale
|
|
17
17
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-datepickers",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.63.0",
|
|
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>",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"sideEffects": false,
|
|
22
22
|
"types": "dist/typings/index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@zendeskgarden/container-utilities": "^0.
|
|
24
|
+
"@zendeskgarden/container-utilities": "^1.0.0",
|
|
25
25
|
"date-fns": "^2.0.0-beta.2",
|
|
26
26
|
"prop-types": "^15.5.7",
|
|
27
27
|
"react-popper": "^1.3.4"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"styled-components": "^4.2.0 || ^5.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@zendeskgarden/react-theming": "^8.
|
|
36
|
+
"@zendeskgarden/react-theming": "^8.63.0",
|
|
37
37
|
"@zendeskgarden/svg-icons": "6.33.0"
|
|
38
38
|
},
|
|
39
39
|
"keywords": [
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"zendeskgarden:src": "src/index.ts",
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "4b8715305a769881b143c7195c5b31e687422926"
|
|
50
50
|
}
|