@jobber/components 6.100.1-prevent-ra-8430a42.2 → 6.101.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/Countdown-cjs.js +0 -1
- package/dist/Countdown-es.js +0 -1
- package/dist/DatePicker-cjs.js +10 -24
- package/dist/DatePicker-es.js +10 -24
- package/dist/InputText/useInputTextFormField.d.ts +5 -5
- package/dist/Markdown-cjs.js +692 -1831
- package/dist/Markdown-es.js +692 -1831
- package/dist/Menu-cjs.js +3 -10
- package/dist/Menu-es.js +3 -10
- package/dist/Tree-cjs.js +2 -5
- package/dist/Tree-es.js +2 -5
- package/dist/floating-ui.react-cjs.js +1 -1
- package/dist/floating-ui.react-es.js +1 -1
- package/dist/tslib.es6-cjs.js +3 -3
- package/dist/tslib.es6-es.js +3 -3
- package/package.json +4 -7
package/dist/Countdown-cjs.js
CHANGED
|
@@ -21,7 +21,6 @@ function _defineProperties(target, props) {
|
|
|
21
21
|
|
|
22
22
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
23
23
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
24
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
25
24
|
return Constructor;
|
|
26
25
|
}
|
|
27
26
|
|
package/dist/Countdown-es.js
CHANGED
|
@@ -19,7 +19,6 @@ function _defineProperties(target, props) {
|
|
|
19
19
|
|
|
20
20
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
21
21
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
22
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
23
22
|
return Constructor;
|
|
24
23
|
}
|
|
25
24
|
|
package/dist/DatePicker-cjs.js
CHANGED
|
@@ -235,7 +235,7 @@ function addDays(date, amount, options) {
|
|
|
235
235
|
*/
|
|
236
236
|
function addMonths(date, amount, options) {
|
|
237
237
|
const _date = toDate(date, options?.in);
|
|
238
|
-
if (isNaN(amount)) return constructFrom(
|
|
238
|
+
if (isNaN(amount)) return constructFrom(date, NaN);
|
|
239
239
|
if (!amount) {
|
|
240
240
|
// If 0 months, no-op to avoid changing times in the hour before end of DST
|
|
241
241
|
return _date;
|
|
@@ -250,7 +250,7 @@ function addMonths(date, amount, options) {
|
|
|
250
250
|
// we'll default to the end of the desired month by adding 1 to the desired
|
|
251
251
|
// month and using a date of 0 to back up one day to the end of the desired
|
|
252
252
|
// month.
|
|
253
|
-
const endOfDesiredMonth = constructFrom(
|
|
253
|
+
const endOfDesiredMonth = constructFrom(date, _date.getTime());
|
|
254
254
|
endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);
|
|
255
255
|
const daysInMonth = endOfDesiredMonth.getDate();
|
|
256
256
|
if (dayOfMonth >= daysInMonth) {
|
|
@@ -301,7 +301,7 @@ function addMonths(date, amount, options) {
|
|
|
301
301
|
* //=> Thu Jul 10 2014 12:45:30.750
|
|
302
302
|
*/
|
|
303
303
|
function addMilliseconds(date, amount, options) {
|
|
304
|
-
return constructFrom(
|
|
304
|
+
return constructFrom(date, +toDate(date) + amount);
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
/**
|
|
@@ -331,7 +331,7 @@ function addMilliseconds(date, amount, options) {
|
|
|
331
331
|
* //=> Fri Jul 11 2014 01:00:00
|
|
332
332
|
*/
|
|
333
333
|
function addHours(date, amount, options) {
|
|
334
|
-
return addMilliseconds(date, amount * millisecondsInHour
|
|
334
|
+
return addMilliseconds(date, amount * millisecondsInHour);
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
let defaultOptions = {};
|
|
@@ -499,7 +499,7 @@ function getTimezoneOffsetInMilliseconds(date) {
|
|
|
499
499
|
function normalizeDates(context, ...dates) {
|
|
500
500
|
const normalize = constructFrom.bind(
|
|
501
501
|
null,
|
|
502
|
-
|
|
502
|
+
dates.find((date) => typeof date === "object"),
|
|
503
503
|
);
|
|
504
504
|
return dates.map(normalize);
|
|
505
505
|
}
|
|
@@ -623,7 +623,7 @@ function differenceInCalendarDays(laterDate, earlierDate, options) {
|
|
|
623
623
|
*/
|
|
624
624
|
function startOfISOWeekYear(date, options) {
|
|
625
625
|
const year = getISOWeekYear(date, options);
|
|
626
|
-
const fourthOfJanuary = constructFrom(
|
|
626
|
+
const fourthOfJanuary = constructFrom(date, 0);
|
|
627
627
|
fourthOfJanuary.setFullYear(year, 0, 4);
|
|
628
628
|
fourthOfJanuary.setHours(0, 0, 0, 0);
|
|
629
629
|
return startOfISOWeek(fourthOfJanuary);
|
|
@@ -718,7 +718,7 @@ function addQuarters(date, amount, options) {
|
|
|
718
718
|
* //=> Thu Jul 10 2014 12:45:30
|
|
719
719
|
*/
|
|
720
720
|
function addSeconds(date, amount, options) {
|
|
721
|
-
return addMilliseconds(date, amount * 1000
|
|
721
|
+
return addMilliseconds(date, amount * 1000);
|
|
722
722
|
}
|
|
723
723
|
|
|
724
724
|
/**
|
|
@@ -1468,8 +1468,6 @@ function startOfYear(date, options) {
|
|
|
1468
1468
|
function endOfWeek(date, options) {
|
|
1469
1469
|
const defaultOptions = getDefaultOptions$1();
|
|
1470
1470
|
const weekStartsOn =
|
|
1471
|
-
options?.weekStartsOn ??
|
|
1472
|
-
options?.locale?.options?.weekStartsOn ??
|
|
1473
1471
|
defaultOptions.weekStartsOn ??
|
|
1474
1472
|
defaultOptions.locale?.options?.weekStartsOn ??
|
|
1475
1473
|
0;
|
|
@@ -6536,18 +6534,6 @@ function parse(dateStr, formatStr, referenceDate, options) {
|
|
|
6536
6534
|
const usedTokens = [];
|
|
6537
6535
|
|
|
6538
6536
|
for (let token of tokens) {
|
|
6539
|
-
if (
|
|
6540
|
-
!options?.useAdditionalWeekYearTokens &&
|
|
6541
|
-
isProtectedWeekYearToken(token)
|
|
6542
|
-
) {
|
|
6543
|
-
warnOrThrowProtectedError(token, formatStr, dateStr);
|
|
6544
|
-
}
|
|
6545
|
-
if (
|
|
6546
|
-
!options?.useAdditionalDayOfYearTokens &&
|
|
6547
|
-
isProtectedDayOfYearToken(token)
|
|
6548
|
-
) {
|
|
6549
|
-
warnOrThrowProtectedError(token, formatStr, dateStr);
|
|
6550
|
-
}
|
|
6551
6537
|
|
|
6552
6538
|
const firstCharacter = token[0];
|
|
6553
6539
|
const parser = parsers[firstCharacter];
|
|
@@ -6885,7 +6871,7 @@ function subDays(date, amount, options) {
|
|
|
6885
6871
|
function parseISO(argument, options) {
|
|
6886
6872
|
const invalidDate = () => constructFrom(options?.in, NaN);
|
|
6887
6873
|
|
|
6888
|
-
const additionalDigits =
|
|
6874
|
+
const additionalDigits = 2;
|
|
6889
6875
|
const dateStrings = splitDateString(argument);
|
|
6890
6876
|
|
|
6891
6877
|
let date;
|
|
@@ -7161,7 +7147,7 @@ function setMonth(date, month, options) {
|
|
|
7161
7147
|
const year = _date.getFullYear();
|
|
7162
7148
|
const day = _date.getDate();
|
|
7163
7149
|
|
|
7164
|
-
const midMonth = constructFrom(
|
|
7150
|
+
const midMonth = constructFrom(date, 0);
|
|
7165
7151
|
midMonth.setFullYear(year, month, 15);
|
|
7166
7152
|
midMonth.setHours(0, 0, 0, 0);
|
|
7167
7153
|
const daysInMonth = getDaysInMonth(midMonth);
|
|
@@ -7330,7 +7316,7 @@ function setYear(date, year, options) {
|
|
|
7330
7316
|
const date_ = toDate(date, options?.in);
|
|
7331
7317
|
|
|
7332
7318
|
// Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
|
|
7333
|
-
if (isNaN(+date_)) return constructFrom(
|
|
7319
|
+
if (isNaN(+date_)) return constructFrom(date, NaN);
|
|
7334
7320
|
|
|
7335
7321
|
date_.setFullYear(year);
|
|
7336
7322
|
return date_;
|
package/dist/DatePicker-es.js
CHANGED
|
@@ -233,7 +233,7 @@ function addDays(date, amount, options) {
|
|
|
233
233
|
*/
|
|
234
234
|
function addMonths(date, amount, options) {
|
|
235
235
|
const _date = toDate(date, options?.in);
|
|
236
|
-
if (isNaN(amount)) return constructFrom(
|
|
236
|
+
if (isNaN(amount)) return constructFrom(date, NaN);
|
|
237
237
|
if (!amount) {
|
|
238
238
|
// If 0 months, no-op to avoid changing times in the hour before end of DST
|
|
239
239
|
return _date;
|
|
@@ -248,7 +248,7 @@ function addMonths(date, amount, options) {
|
|
|
248
248
|
// we'll default to the end of the desired month by adding 1 to the desired
|
|
249
249
|
// month and using a date of 0 to back up one day to the end of the desired
|
|
250
250
|
// month.
|
|
251
|
-
const endOfDesiredMonth = constructFrom(
|
|
251
|
+
const endOfDesiredMonth = constructFrom(date, _date.getTime());
|
|
252
252
|
endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);
|
|
253
253
|
const daysInMonth = endOfDesiredMonth.getDate();
|
|
254
254
|
if (dayOfMonth >= daysInMonth) {
|
|
@@ -299,7 +299,7 @@ function addMonths(date, amount, options) {
|
|
|
299
299
|
* //=> Thu Jul 10 2014 12:45:30.750
|
|
300
300
|
*/
|
|
301
301
|
function addMilliseconds(date, amount, options) {
|
|
302
|
-
return constructFrom(
|
|
302
|
+
return constructFrom(date, +toDate(date) + amount);
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
/**
|
|
@@ -329,7 +329,7 @@ function addMilliseconds(date, amount, options) {
|
|
|
329
329
|
* //=> Fri Jul 11 2014 01:00:00
|
|
330
330
|
*/
|
|
331
331
|
function addHours(date, amount, options) {
|
|
332
|
-
return addMilliseconds(date, amount * millisecondsInHour
|
|
332
|
+
return addMilliseconds(date, amount * millisecondsInHour);
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
let defaultOptions = {};
|
|
@@ -497,7 +497,7 @@ function getTimezoneOffsetInMilliseconds(date) {
|
|
|
497
497
|
function normalizeDates(context, ...dates) {
|
|
498
498
|
const normalize = constructFrom.bind(
|
|
499
499
|
null,
|
|
500
|
-
|
|
500
|
+
dates.find((date) => typeof date === "object"),
|
|
501
501
|
);
|
|
502
502
|
return dates.map(normalize);
|
|
503
503
|
}
|
|
@@ -621,7 +621,7 @@ function differenceInCalendarDays(laterDate, earlierDate, options) {
|
|
|
621
621
|
*/
|
|
622
622
|
function startOfISOWeekYear(date, options) {
|
|
623
623
|
const year = getISOWeekYear(date, options);
|
|
624
|
-
const fourthOfJanuary = constructFrom(
|
|
624
|
+
const fourthOfJanuary = constructFrom(date, 0);
|
|
625
625
|
fourthOfJanuary.setFullYear(year, 0, 4);
|
|
626
626
|
fourthOfJanuary.setHours(0, 0, 0, 0);
|
|
627
627
|
return startOfISOWeek(fourthOfJanuary);
|
|
@@ -716,7 +716,7 @@ function addQuarters(date, amount, options) {
|
|
|
716
716
|
* //=> Thu Jul 10 2014 12:45:30
|
|
717
717
|
*/
|
|
718
718
|
function addSeconds(date, amount, options) {
|
|
719
|
-
return addMilliseconds(date, amount * 1000
|
|
719
|
+
return addMilliseconds(date, amount * 1000);
|
|
720
720
|
}
|
|
721
721
|
|
|
722
722
|
/**
|
|
@@ -1466,8 +1466,6 @@ function startOfYear(date, options) {
|
|
|
1466
1466
|
function endOfWeek(date, options) {
|
|
1467
1467
|
const defaultOptions = getDefaultOptions$1();
|
|
1468
1468
|
const weekStartsOn =
|
|
1469
|
-
options?.weekStartsOn ??
|
|
1470
|
-
options?.locale?.options?.weekStartsOn ??
|
|
1471
1469
|
defaultOptions.weekStartsOn ??
|
|
1472
1470
|
defaultOptions.locale?.options?.weekStartsOn ??
|
|
1473
1471
|
0;
|
|
@@ -6534,18 +6532,6 @@ function parse(dateStr, formatStr, referenceDate, options) {
|
|
|
6534
6532
|
const usedTokens = [];
|
|
6535
6533
|
|
|
6536
6534
|
for (let token of tokens) {
|
|
6537
|
-
if (
|
|
6538
|
-
!options?.useAdditionalWeekYearTokens &&
|
|
6539
|
-
isProtectedWeekYearToken(token)
|
|
6540
|
-
) {
|
|
6541
|
-
warnOrThrowProtectedError(token, formatStr, dateStr);
|
|
6542
|
-
}
|
|
6543
|
-
if (
|
|
6544
|
-
!options?.useAdditionalDayOfYearTokens &&
|
|
6545
|
-
isProtectedDayOfYearToken(token)
|
|
6546
|
-
) {
|
|
6547
|
-
warnOrThrowProtectedError(token, formatStr, dateStr);
|
|
6548
|
-
}
|
|
6549
6535
|
|
|
6550
6536
|
const firstCharacter = token[0];
|
|
6551
6537
|
const parser = parsers[firstCharacter];
|
|
@@ -6883,7 +6869,7 @@ function subDays(date, amount, options) {
|
|
|
6883
6869
|
function parseISO(argument, options) {
|
|
6884
6870
|
const invalidDate = () => constructFrom(options?.in, NaN);
|
|
6885
6871
|
|
|
6886
|
-
const additionalDigits =
|
|
6872
|
+
const additionalDigits = 2;
|
|
6887
6873
|
const dateStrings = splitDateString(argument);
|
|
6888
6874
|
|
|
6889
6875
|
let date;
|
|
@@ -7159,7 +7145,7 @@ function setMonth(date, month, options) {
|
|
|
7159
7145
|
const year = _date.getFullYear();
|
|
7160
7146
|
const day = _date.getDate();
|
|
7161
7147
|
|
|
7162
|
-
const midMonth = constructFrom(
|
|
7148
|
+
const midMonth = constructFrom(date, 0);
|
|
7163
7149
|
midMonth.setFullYear(year, month, 15);
|
|
7164
7150
|
midMonth.setHours(0, 0, 0, 0);
|
|
7165
7151
|
const daysInMonth = getDaysInMonth(midMonth);
|
|
@@ -7328,7 +7314,7 @@ function setYear(date, year, options) {
|
|
|
7328
7314
|
const date_ = toDate(date, options?.in);
|
|
7329
7315
|
|
|
7330
7316
|
// Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
|
|
7331
|
-
if (isNaN(+date_)) return constructFrom(
|
|
7317
|
+
if (isNaN(+date_)) return constructFrom(date, NaN);
|
|
7332
7318
|
|
|
7333
7319
|
date_.setFullYear(year);
|
|
7334
7320
|
return date_;
|
|
@@ -68,7 +68,6 @@ export declare function useInputTextFormField({ id, name, description, inline, h
|
|
|
68
68
|
autoComplete?: import("react").HTMLInputAutoCompleteAttribute | undefined;
|
|
69
69
|
capture?: boolean | "user" | "environment" | undefined;
|
|
70
70
|
checked?: boolean | undefined;
|
|
71
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
72
71
|
form?: string | undefined;
|
|
73
72
|
formAction?: string | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
|
|
74
73
|
formEncType?: string | undefined;
|
|
@@ -97,10 +96,12 @@ export declare function useInputTextFormField({ id, name, description, inline, h
|
|
|
97
96
|
suppressContentEditableWarning?: boolean | undefined;
|
|
98
97
|
suppressHydrationWarning?: boolean | undefined;
|
|
99
98
|
accessKey?: string | undefined;
|
|
99
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
100
100
|
contentEditable?: (boolean | "false" | "true") | "inherit" | "plaintext-only" | undefined;
|
|
101
101
|
contextMenu?: string | undefined;
|
|
102
102
|
dir?: string | undefined;
|
|
103
103
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
104
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
104
105
|
hidden?: boolean | undefined;
|
|
105
106
|
lang?: string | undefined;
|
|
106
107
|
nonce?: string | undefined;
|
|
@@ -123,7 +124,6 @@ export declare function useInputTextFormField({ id, name, description, inline, h
|
|
|
123
124
|
rev?: string | undefined;
|
|
124
125
|
typeof?: string | undefined;
|
|
125
126
|
vocab?: string | undefined;
|
|
126
|
-
autoCapitalize?: string | undefined;
|
|
127
127
|
autoCorrect?: string | undefined;
|
|
128
128
|
autoSave?: string | undefined;
|
|
129
129
|
color?: string | undefined;
|
|
@@ -136,6 +136,8 @@ export declare function useInputTextFormField({ id, name, description, inline, h
|
|
|
136
136
|
security?: string | undefined;
|
|
137
137
|
unselectable?: "on" | "off" | undefined;
|
|
138
138
|
is?: string | undefined;
|
|
139
|
+
exportparts?: string | undefined;
|
|
140
|
+
part?: string | undefined;
|
|
139
141
|
"aria-activedescendant"?: string | undefined;
|
|
140
142
|
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
141
143
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
@@ -206,7 +208,7 @@ export declare function useInputTextFormField({ id, name, description, inline, h
|
|
|
206
208
|
onFocusCapture?: import("react").FocusEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
207
209
|
onBlurCapture?: import("react").FocusEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
208
210
|
onChangeCapture?: import("react").FormEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
209
|
-
onBeforeInput?: import("react").
|
|
211
|
+
onBeforeInput?: import("react").InputEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
210
212
|
onBeforeInputCapture?: import("react").FormEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
211
213
|
onInput?: import("react").FormEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
212
214
|
onInputCapture?: import("react").FormEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
@@ -255,8 +257,6 @@ export declare function useInputTextFormField({ id, name, description, inline, h
|
|
|
255
257
|
onProgressCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
256
258
|
onRateChange?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
257
259
|
onRateChangeCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
258
|
-
onResize?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
259
|
-
onResizeCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
260
260
|
onSeeked?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
261
261
|
onSeekedCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
262
262
|
onSeeking?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|