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