@utrecht/calendar-react 1.1.3 → 1.1.4
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/css.mjs +23 -411
- package/dist/css.mjs.map +1 -1
- package/dist/index.mjs +23 -411
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -7
- package/src/index.tsx +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3814,426 +3814,38 @@ function setYear(date, year, options) {
|
|
|
3814
3814
|
return date_;
|
|
3815
3815
|
}
|
|
3816
3816
|
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
* @private
|
|
3821
|
-
* @param {Array} array The array to slice.
|
|
3822
|
-
* @param {number} [start=0] The start position.
|
|
3823
|
-
* @param {number} [end=array.length] The end position.
|
|
3824
|
-
* @returns {Array} Returns the slice of `array`.
|
|
3825
|
-
*/
|
|
3826
|
-
function baseSlice(array, start, end) {
|
|
3827
|
-
var index = -1,
|
|
3828
|
-
length = array.length;
|
|
3829
|
-
|
|
3830
|
-
if (start < 0) {
|
|
3831
|
-
start = -start > length ? 0 : (length + start);
|
|
3832
|
-
}
|
|
3833
|
-
end = end > length ? length : end;
|
|
3834
|
-
if (end < 0) {
|
|
3835
|
-
end += length;
|
|
3836
|
-
}
|
|
3837
|
-
length = start > end ? 0 : ((end - start) >>> 0);
|
|
3838
|
-
start >>>= 0;
|
|
3839
|
-
|
|
3840
|
-
var result = Array(length);
|
|
3841
|
-
while (++index < length) {
|
|
3842
|
-
result[index] = array[index + start];
|
|
3843
|
-
}
|
|
3844
|
-
return result;
|
|
3845
|
-
}
|
|
3846
|
-
|
|
3847
|
-
/** Detect free variable `global` from Node.js. */
|
|
3848
|
-
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
3849
|
-
|
|
3850
|
-
/** Detect free variable `self`. */
|
|
3851
|
-
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
3852
|
-
|
|
3853
|
-
/** Used as a reference to the global object. */
|
|
3854
|
-
var root = freeGlobal || freeSelf || Function('return this')();
|
|
3855
|
-
|
|
3856
|
-
/** Built-in value references. */
|
|
3857
|
-
var Symbol$1 = root.Symbol;
|
|
3858
|
-
|
|
3859
|
-
/** Used for built-in method references. */
|
|
3860
|
-
var objectProto$1 = Object.prototype;
|
|
3861
|
-
|
|
3862
|
-
/** Used to check objects for own properties. */
|
|
3863
|
-
var hasOwnProperty = objectProto$1.hasOwnProperty;
|
|
3864
|
-
|
|
3865
|
-
/**
|
|
3866
|
-
* Used to resolve the
|
|
3867
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
3868
|
-
* of values.
|
|
3869
|
-
*/
|
|
3870
|
-
var nativeObjectToString$1 = objectProto$1.toString;
|
|
3871
|
-
|
|
3872
|
-
/** Built-in value references. */
|
|
3873
|
-
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
3874
|
-
|
|
3875
|
-
/**
|
|
3876
|
-
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
3877
|
-
*
|
|
3878
|
-
* @private
|
|
3879
|
-
* @param {*} value The value to query.
|
|
3880
|
-
* @returns {string} Returns the raw `toStringTag`.
|
|
3881
|
-
*/
|
|
3882
|
-
function getRawTag(value) {
|
|
3883
|
-
var isOwn = hasOwnProperty.call(value, symToStringTag$1),
|
|
3884
|
-
tag = value[symToStringTag$1];
|
|
3885
|
-
|
|
3886
|
-
try {
|
|
3887
|
-
value[symToStringTag$1] = undefined;
|
|
3888
|
-
var unmasked = true;
|
|
3889
|
-
} catch (e) {}
|
|
3890
|
-
|
|
3891
|
-
var result = nativeObjectToString$1.call(value);
|
|
3892
|
-
if (unmasked) {
|
|
3893
|
-
if (isOwn) {
|
|
3894
|
-
value[symToStringTag$1] = tag;
|
|
3895
|
-
} else {
|
|
3896
|
-
delete value[symToStringTag$1];
|
|
3817
|
+
function chunk$1(arr, size) {
|
|
3818
|
+
if (!Number.isInteger(size) || size <= 0) {
|
|
3819
|
+
throw new Error('Size must be an integer greater than zero.');
|
|
3897
3820
|
}
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
* Used to resolve the
|
|
3907
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
3908
|
-
* of values.
|
|
3909
|
-
*/
|
|
3910
|
-
var nativeObjectToString = objectProto.toString;
|
|
3911
|
-
|
|
3912
|
-
/**
|
|
3913
|
-
* Converts `value` to a string using `Object.prototype.toString`.
|
|
3914
|
-
*
|
|
3915
|
-
* @private
|
|
3916
|
-
* @param {*} value The value to convert.
|
|
3917
|
-
* @returns {string} Returns the converted string.
|
|
3918
|
-
*/
|
|
3919
|
-
function objectToString(value) {
|
|
3920
|
-
return nativeObjectToString.call(value);
|
|
3921
|
-
}
|
|
3922
|
-
|
|
3923
|
-
/** `Object#toString` result references. */
|
|
3924
|
-
var nullTag = '[object Null]',
|
|
3925
|
-
undefinedTag = '[object Undefined]';
|
|
3926
|
-
|
|
3927
|
-
/** Built-in value references. */
|
|
3928
|
-
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
3929
|
-
|
|
3930
|
-
/**
|
|
3931
|
-
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
3932
|
-
*
|
|
3933
|
-
* @private
|
|
3934
|
-
* @param {*} value The value to query.
|
|
3935
|
-
* @returns {string} Returns the `toStringTag`.
|
|
3936
|
-
*/
|
|
3937
|
-
function baseGetTag(value) {
|
|
3938
|
-
if (value == null) {
|
|
3939
|
-
return value === undefined ? undefinedTag : nullTag;
|
|
3940
|
-
}
|
|
3941
|
-
return (symToStringTag && symToStringTag in Object(value))
|
|
3942
|
-
? getRawTag(value)
|
|
3943
|
-
: objectToString(value);
|
|
3944
|
-
}
|
|
3945
|
-
|
|
3946
|
-
/**
|
|
3947
|
-
* Checks if `value` is the
|
|
3948
|
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
3949
|
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
3950
|
-
*
|
|
3951
|
-
* @static
|
|
3952
|
-
* @memberOf _
|
|
3953
|
-
* @since 0.1.0
|
|
3954
|
-
* @category Lang
|
|
3955
|
-
* @param {*} value The value to check.
|
|
3956
|
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
3957
|
-
* @example
|
|
3958
|
-
*
|
|
3959
|
-
* _.isObject({});
|
|
3960
|
-
* // => true
|
|
3961
|
-
*
|
|
3962
|
-
* _.isObject([1, 2, 3]);
|
|
3963
|
-
* // => true
|
|
3964
|
-
*
|
|
3965
|
-
* _.isObject(_.noop);
|
|
3966
|
-
* // => true
|
|
3967
|
-
*
|
|
3968
|
-
* _.isObject(null);
|
|
3969
|
-
* // => false
|
|
3970
|
-
*/
|
|
3971
|
-
function isObject(value) {
|
|
3972
|
-
var type = typeof value;
|
|
3973
|
-
return value != null && (type == 'object' || type == 'function');
|
|
3974
|
-
}
|
|
3975
|
-
|
|
3976
|
-
/** Used to match a single whitespace character. */
|
|
3977
|
-
var reWhitespace = /\s/;
|
|
3978
|
-
|
|
3979
|
-
/**
|
|
3980
|
-
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
3981
|
-
* character of `string`.
|
|
3982
|
-
*
|
|
3983
|
-
* @private
|
|
3984
|
-
* @param {string} string The string to inspect.
|
|
3985
|
-
* @returns {number} Returns the index of the last non-whitespace character.
|
|
3986
|
-
*/
|
|
3987
|
-
function trimmedEndIndex(string) {
|
|
3988
|
-
var index = string.length;
|
|
3989
|
-
|
|
3990
|
-
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
3991
|
-
return index;
|
|
3992
|
-
}
|
|
3993
|
-
|
|
3994
|
-
/** Used to match leading whitespace. */
|
|
3995
|
-
var reTrimStart = /^\s+/;
|
|
3996
|
-
|
|
3997
|
-
/**
|
|
3998
|
-
* The base implementation of `_.trim`.
|
|
3999
|
-
*
|
|
4000
|
-
* @private
|
|
4001
|
-
* @param {string} string The string to trim.
|
|
4002
|
-
* @returns {string} Returns the trimmed string.
|
|
4003
|
-
*/
|
|
4004
|
-
function baseTrim(string) {
|
|
4005
|
-
return string
|
|
4006
|
-
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
4007
|
-
: string;
|
|
4008
|
-
}
|
|
4009
|
-
|
|
4010
|
-
/**
|
|
4011
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
4012
|
-
* and has a `typeof` result of "object".
|
|
4013
|
-
*
|
|
4014
|
-
* @static
|
|
4015
|
-
* @memberOf _
|
|
4016
|
-
* @since 4.0.0
|
|
4017
|
-
* @category Lang
|
|
4018
|
-
* @param {*} value The value to check.
|
|
4019
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
4020
|
-
* @example
|
|
4021
|
-
*
|
|
4022
|
-
* _.isObjectLike({});
|
|
4023
|
-
* // => true
|
|
4024
|
-
*
|
|
4025
|
-
* _.isObjectLike([1, 2, 3]);
|
|
4026
|
-
* // => true
|
|
4027
|
-
*
|
|
4028
|
-
* _.isObjectLike(_.noop);
|
|
4029
|
-
* // => false
|
|
4030
|
-
*
|
|
4031
|
-
* _.isObjectLike(null);
|
|
4032
|
-
* // => false
|
|
4033
|
-
*/
|
|
4034
|
-
function isObjectLike(value) {
|
|
4035
|
-
return value != null && typeof value == 'object';
|
|
3821
|
+
const chunkLength = Math.ceil(arr.length / size);
|
|
3822
|
+
const result = Array(chunkLength);
|
|
3823
|
+
for (let index = 0; index < chunkLength; index++) {
|
|
3824
|
+
const start = index * size;
|
|
3825
|
+
const end = start + size;
|
|
3826
|
+
result[index] = arr.slice(start, end);
|
|
3827
|
+
}
|
|
3828
|
+
return result;
|
|
4036
3829
|
}
|
|
4037
3830
|
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
/**
|
|
4042
|
-
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
4043
|
-
*
|
|
4044
|
-
* @static
|
|
4045
|
-
* @memberOf _
|
|
4046
|
-
* @since 4.0.0
|
|
4047
|
-
* @category Lang
|
|
4048
|
-
* @param {*} value The value to check.
|
|
4049
|
-
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
4050
|
-
* @example
|
|
4051
|
-
*
|
|
4052
|
-
* _.isSymbol(Symbol.iterator);
|
|
4053
|
-
* // => true
|
|
4054
|
-
*
|
|
4055
|
-
* _.isSymbol('abc');
|
|
4056
|
-
* // => false
|
|
4057
|
-
*/
|
|
4058
|
-
function isSymbol(value) {
|
|
4059
|
-
return typeof value == 'symbol' ||
|
|
4060
|
-
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
|
3831
|
+
function toArray(value) {
|
|
3832
|
+
return Array.isArray(value) ? value : Array.from(value);
|
|
4061
3833
|
}
|
|
4062
3834
|
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
/** Used to detect bad signed hexadecimal string values. */
|
|
4067
|
-
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
4068
|
-
|
|
4069
|
-
/** Used to detect binary string values. */
|
|
4070
|
-
var reIsBinary = /^0b[01]+$/i;
|
|
4071
|
-
|
|
4072
|
-
/** Used to detect octal string values. */
|
|
4073
|
-
var reIsOctal = /^0o[0-7]+$/i;
|
|
4074
|
-
|
|
4075
|
-
/** Built-in method references without a dependency on `root`. */
|
|
4076
|
-
var freeParseInt = parseInt;
|
|
4077
|
-
|
|
4078
|
-
/**
|
|
4079
|
-
* Converts `value` to a number.
|
|
4080
|
-
*
|
|
4081
|
-
* @static
|
|
4082
|
-
* @memberOf _
|
|
4083
|
-
* @since 4.0.0
|
|
4084
|
-
* @category Lang
|
|
4085
|
-
* @param {*} value The value to process.
|
|
4086
|
-
* @returns {number} Returns the number.
|
|
4087
|
-
* @example
|
|
4088
|
-
*
|
|
4089
|
-
* _.toNumber(3.2);
|
|
4090
|
-
* // => 3.2
|
|
4091
|
-
*
|
|
4092
|
-
* _.toNumber(Number.MIN_VALUE);
|
|
4093
|
-
* // => 5e-324
|
|
4094
|
-
*
|
|
4095
|
-
* _.toNumber(Infinity);
|
|
4096
|
-
* // => Infinity
|
|
4097
|
-
*
|
|
4098
|
-
* _.toNumber('3.2');
|
|
4099
|
-
* // => 3.2
|
|
4100
|
-
*/
|
|
4101
|
-
function toNumber(value) {
|
|
4102
|
-
if (typeof value == 'number') {
|
|
4103
|
-
return value;
|
|
4104
|
-
}
|
|
4105
|
-
if (isSymbol(value)) {
|
|
4106
|
-
return NAN;
|
|
4107
|
-
}
|
|
4108
|
-
if (isObject(value)) {
|
|
4109
|
-
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
4110
|
-
value = isObject(other) ? (other + '') : other;
|
|
4111
|
-
}
|
|
4112
|
-
if (typeof value != 'string') {
|
|
4113
|
-
return value === 0 ? value : +value;
|
|
4114
|
-
}
|
|
4115
|
-
value = baseTrim(value);
|
|
4116
|
-
var isBinary = reIsBinary.test(value);
|
|
4117
|
-
return (isBinary || reIsOctal.test(value))
|
|
4118
|
-
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
4119
|
-
: (reIsBadHex.test(value) ? NAN : +value);
|
|
3835
|
+
function isLength(value) {
|
|
3836
|
+
return Number.isSafeInteger(value) && value >= 0;
|
|
4120
3837
|
}
|
|
4121
3838
|
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
MAX_INTEGER = 1.7976931348623157e+308;
|
|
4125
|
-
|
|
4126
|
-
/**
|
|
4127
|
-
* Converts `value` to a finite number.
|
|
4128
|
-
*
|
|
4129
|
-
* @static
|
|
4130
|
-
* @memberOf _
|
|
4131
|
-
* @since 4.12.0
|
|
4132
|
-
* @category Lang
|
|
4133
|
-
* @param {*} value The value to convert.
|
|
4134
|
-
* @returns {number} Returns the converted number.
|
|
4135
|
-
* @example
|
|
4136
|
-
*
|
|
4137
|
-
* _.toFinite(3.2);
|
|
4138
|
-
* // => 3.2
|
|
4139
|
-
*
|
|
4140
|
-
* _.toFinite(Number.MIN_VALUE);
|
|
4141
|
-
* // => 5e-324
|
|
4142
|
-
*
|
|
4143
|
-
* _.toFinite(Infinity);
|
|
4144
|
-
* // => 1.7976931348623157e+308
|
|
4145
|
-
*
|
|
4146
|
-
* _.toFinite('3.2');
|
|
4147
|
-
* // => 3.2
|
|
4148
|
-
*/
|
|
4149
|
-
function toFinite(value) {
|
|
4150
|
-
if (!value) {
|
|
4151
|
-
return value === 0 ? value : 0;
|
|
4152
|
-
}
|
|
4153
|
-
value = toNumber(value);
|
|
4154
|
-
if (value === INFINITY || value === -INFINITY) {
|
|
4155
|
-
var sign = (value < 0 ? -1 : 1);
|
|
4156
|
-
return sign * MAX_INTEGER;
|
|
4157
|
-
}
|
|
4158
|
-
return value === value ? value : 0;
|
|
3839
|
+
function isArrayLike(value) {
|
|
3840
|
+
return value != null && typeof value !== 'function' && isLength(value.length);
|
|
4159
3841
|
}
|
|
4160
3842
|
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
* @static
|
|
4168
|
-
* @memberOf _
|
|
4169
|
-
* @since 4.0.0
|
|
4170
|
-
* @category Lang
|
|
4171
|
-
* @param {*} value The value to convert.
|
|
4172
|
-
* @returns {number} Returns the converted integer.
|
|
4173
|
-
* @example
|
|
4174
|
-
*
|
|
4175
|
-
* _.toInteger(3.2);
|
|
4176
|
-
* // => 3
|
|
4177
|
-
*
|
|
4178
|
-
* _.toInteger(Number.MIN_VALUE);
|
|
4179
|
-
* // => 0
|
|
4180
|
-
*
|
|
4181
|
-
* _.toInteger(Infinity);
|
|
4182
|
-
* // => 1.7976931348623157e+308
|
|
4183
|
-
*
|
|
4184
|
-
* _.toInteger('3.2');
|
|
4185
|
-
* // => 3
|
|
4186
|
-
*/
|
|
4187
|
-
function toInteger(value) {
|
|
4188
|
-
var result = toFinite(value),
|
|
4189
|
-
remainder = result % 1;
|
|
4190
|
-
|
|
4191
|
-
return result === result ? (remainder ? result - remainder : result) : 0;
|
|
4192
|
-
}
|
|
4193
|
-
|
|
4194
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4195
|
-
var nativeCeil = Math.ceil,
|
|
4196
|
-
nativeMax = Math.max;
|
|
4197
|
-
|
|
4198
|
-
/**
|
|
4199
|
-
* Creates an array of elements split into groups the length of `size`.
|
|
4200
|
-
* If `array` can't be split evenly, the final chunk will be the remaining
|
|
4201
|
-
* elements.
|
|
4202
|
-
*
|
|
4203
|
-
* @static
|
|
4204
|
-
* @memberOf _
|
|
4205
|
-
* @since 3.0.0
|
|
4206
|
-
* @category Array
|
|
4207
|
-
* @param {Array} array The array to process.
|
|
4208
|
-
* @param {number} [size=1] The length of each chunk
|
|
4209
|
-
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
|
4210
|
-
* @returns {Array} Returns the new array of chunks.
|
|
4211
|
-
* @example
|
|
4212
|
-
*
|
|
4213
|
-
* _.chunk(['a', 'b', 'c', 'd'], 2);
|
|
4214
|
-
* // => [['a', 'b'], ['c', 'd']]
|
|
4215
|
-
*
|
|
4216
|
-
* _.chunk(['a', 'b', 'c', 'd'], 3);
|
|
4217
|
-
* // => [['a', 'b', 'c'], ['d']]
|
|
4218
|
-
*/
|
|
4219
|
-
function chunk(array, size, guard) {
|
|
4220
|
-
if ((size === undefined)) {
|
|
4221
|
-
size = 1;
|
|
4222
|
-
} else {
|
|
4223
|
-
size = nativeMax(toInteger(size), 0);
|
|
4224
|
-
}
|
|
4225
|
-
var length = array == null ? 0 : array.length;
|
|
4226
|
-
if (!length || size < 1) {
|
|
4227
|
-
return [];
|
|
4228
|
-
}
|
|
4229
|
-
var index = 0,
|
|
4230
|
-
resIndex = 0,
|
|
4231
|
-
result = Array(nativeCeil(length / size));
|
|
4232
|
-
|
|
4233
|
-
while (index < length) {
|
|
4234
|
-
result[resIndex++] = baseSlice(array, index, (index += size));
|
|
4235
|
-
}
|
|
4236
|
-
return result;
|
|
3843
|
+
function chunk(arr, size = 1) {
|
|
3844
|
+
size = Math.max(Math.floor(size), 0);
|
|
3845
|
+
if (size === 0 || !isArrayLike(arr)) {
|
|
3846
|
+
return [];
|
|
3847
|
+
}
|
|
3848
|
+
return chunk$1(toArray(arr), size);
|
|
4237
3849
|
}
|
|
4238
3850
|
|
|
4239
3851
|
const CalendarNavigation = ({ children, ...props }) => (jsx("div", { className: "utrecht-calendar__navigation", ...props, children: children }));
|