@jobber/components 6.61.4 → 6.62.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/DayOfMonthSelect-cjs.js +6 -0
- package/dist/DayOfMonthSelect-es.js +6 -0
- package/dist/InputNumber/InputNumber.rebuilt.types.d.ts +2 -0
- package/dist/InputNumber/index.cjs +2 -2
- package/dist/InputNumber/index.mjs +2 -2
- package/dist/RecurringSelect/RecurringSelect.d.ts +3 -0
- package/dist/RecurringSelect/types.d.ts +12 -0
- package/dist/RecurringSelect-cjs.js +3 -0
- package/dist/RecurringSelect-es.js +3 -0
- package/package.json +2 -2
|
@@ -8,6 +8,9 @@ var styles$3 = {"container":"-R-TvZ9aU9g-","spinning":"SYARPwvkeO0-"};
|
|
|
8
8
|
|
|
9
9
|
var checkboxStyles = {"checkboxWrapper":"HgFD6w2VXzo-","dayCheckboxInput":"XGjk9DHJAmw-","dayCheckbox":"zulupkPyEs8-","spinning":"jjJFVaCX4Zk-"};
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated RecurringSelect will be removed in the next major version
|
|
13
|
+
*/
|
|
11
14
|
exports.WeekDay = void 0;
|
|
12
15
|
(function (WeekDay) {
|
|
13
16
|
WeekDay[WeekDay["Sunday"] = 0] = "Sunday";
|
|
@@ -18,6 +21,9 @@ exports.WeekDay = void 0;
|
|
|
18
21
|
WeekDay[WeekDay["Friday"] = 5] = "Friday";
|
|
19
22
|
WeekDay[WeekDay["Saturday"] = 6] = "Saturday";
|
|
20
23
|
})(exports.WeekDay || (exports.WeekDay = {}));
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated RecurringSelect will be removed in the next major version
|
|
26
|
+
*/
|
|
21
27
|
exports.DurationPeriod = void 0;
|
|
22
28
|
(function (DurationPeriod) {
|
|
23
29
|
DurationPeriod["Day"] = "Day";
|
|
@@ -6,6 +6,9 @@ var styles$3 = {"container":"-R-TvZ9aU9g-","spinning":"SYARPwvkeO0-"};
|
|
|
6
6
|
|
|
7
7
|
var checkboxStyles = {"checkboxWrapper":"HgFD6w2VXzo-","dayCheckboxInput":"XGjk9DHJAmw-","dayCheckbox":"zulupkPyEs8-","spinning":"jjJFVaCX4Zk-"};
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated RecurringSelect will be removed in the next major version
|
|
11
|
+
*/
|
|
9
12
|
var WeekDay;
|
|
10
13
|
(function (WeekDay) {
|
|
11
14
|
WeekDay[WeekDay["Sunday"] = 0] = "Sunday";
|
|
@@ -16,6 +19,9 @@ var WeekDay;
|
|
|
16
19
|
WeekDay[WeekDay["Friday"] = 5] = "Friday";
|
|
17
20
|
WeekDay[WeekDay["Saturday"] = 6] = "Saturday";
|
|
18
21
|
})(WeekDay || (WeekDay = {}));
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated RecurringSelect will be removed in the next major version
|
|
24
|
+
*/
|
|
19
25
|
var DurationPeriod;
|
|
20
26
|
(function (DurationPeriod) {
|
|
21
27
|
DurationPeriod["Day"] = "Day";
|
|
@@ -12,6 +12,8 @@ export interface InputNumberRebuiltProps extends Omit<CommonFormFieldProps, "ver
|
|
|
12
12
|
readonly identifier?: string;
|
|
13
13
|
readonly inline?: boolean;
|
|
14
14
|
readonly invalid?: boolean;
|
|
15
|
+
readonly maxValue?: number;
|
|
16
|
+
readonly minValue?: number;
|
|
15
17
|
readonly onChange?: (newValue: number, event?: React.ChangeEvent<HTMLInputElement>) => void;
|
|
16
18
|
readonly showMiniLabel?: boolean;
|
|
17
19
|
readonly value?: number;
|
|
@@ -7710,8 +7710,8 @@ const InputNumberRebuilt = React.forwardRef((props, ref) => {
|
|
|
7710
7710
|
}
|
|
7711
7711
|
},
|
|
7712
7712
|
}));
|
|
7713
|
-
const { align, description, disabled, error, inline, invalid, placeholder, readonly, showMiniLabel = true, size } = props, ariaNumberFieldProps = tslib_es6.__rest(props, ["align", "description", "disabled", "error", "inline", "invalid", "placeholder", "readonly", "showMiniLabel", "size"]);
|
|
7714
|
-
return (React.createElement($b91743d66a0ed188$export$63c5fa0b2fdccd2e, Object.assign({}, ariaNumberFieldProps, { className: classnames(styles.container, inline && styles.inline), formatOptions: mergedFormatOptions, isDisabled: disabled, isInvalid: invalid, isReadOnly: readonly, onBlur: e => { var _a; return (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e); }, onFocus: e => { var _a; return (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, e); }, onChange: handleChange }),
|
|
7713
|
+
const { align, description, disabled, error, inline, invalid, placeholder, readonly, showMiniLabel = true, size, minValue, maxValue } = props, ariaNumberFieldProps = tslib_es6.__rest(props, ["align", "description", "disabled", "error", "inline", "invalid", "placeholder", "readonly", "showMiniLabel", "size", "minValue", "maxValue"]);
|
|
7714
|
+
return (React.createElement($b91743d66a0ed188$export$63c5fa0b2fdccd2e, Object.assign({}, ariaNumberFieldProps, { className: classnames(styles.container, inline && styles.inline), formatOptions: mergedFormatOptions, isDisabled: disabled, isInvalid: invalid, isReadOnly: readonly, minValue: minValue, maxValue: maxValue, onBlur: e => { var _a; return (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e); }, onFocus: e => { var _a; return (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, e); }, onChange: handleChange }),
|
|
7715
7715
|
React.createElement($a049562f99e7db0e$export$eb2fcfdbd7ba97d4, { className: classnames(styles.wrapper, align && styles[align], invalid && styles.invalid, disabled && styles.disabled) },
|
|
7716
7716
|
React.createElement("div", { className: styles.horizontalWrapper },
|
|
7717
7717
|
React.createElement("div", { className: classnames(styles.inputWrapper, disabled && styles.disabled, !showMiniLabel && styles.hideLabel, size && styles[size]) },
|
|
@@ -7708,8 +7708,8 @@ const InputNumberRebuilt = forwardRef((props, ref) => {
|
|
|
7708
7708
|
}
|
|
7709
7709
|
},
|
|
7710
7710
|
}));
|
|
7711
|
-
const { align, description, disabled, error, inline, invalid, placeholder, readonly, showMiniLabel = true, size } = props, ariaNumberFieldProps = __rest(props, ["align", "description", "disabled", "error", "inline", "invalid", "placeholder", "readonly", "showMiniLabel", "size"]);
|
|
7712
|
-
return (React__default.createElement($b91743d66a0ed188$export$63c5fa0b2fdccd2e, Object.assign({}, ariaNumberFieldProps, { className: classnames(styles.container, inline && styles.inline), formatOptions: mergedFormatOptions, isDisabled: disabled, isInvalid: invalid, isReadOnly: readonly, onBlur: e => { var _a; return (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e); }, onFocus: e => { var _a; return (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, e); }, onChange: handleChange }),
|
|
7711
|
+
const { align, description, disabled, error, inline, invalid, placeholder, readonly, showMiniLabel = true, size, minValue, maxValue } = props, ariaNumberFieldProps = __rest(props, ["align", "description", "disabled", "error", "inline", "invalid", "placeholder", "readonly", "showMiniLabel", "size", "minValue", "maxValue"]);
|
|
7712
|
+
return (React__default.createElement($b91743d66a0ed188$export$63c5fa0b2fdccd2e, Object.assign({}, ariaNumberFieldProps, { className: classnames(styles.container, inline && styles.inline), formatOptions: mergedFormatOptions, isDisabled: disabled, isInvalid: invalid, isReadOnly: readonly, minValue: minValue, maxValue: maxValue, onBlur: e => { var _a; return (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e); }, onFocus: e => { var _a; return (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, e); }, onChange: handleChange }),
|
|
7713
7713
|
React__default.createElement($a049562f99e7db0e$export$eb2fcfdbd7ba97d4, { className: classnames(styles.wrapper, align && styles[align], invalid && styles.invalid, disabled && styles.disabled) },
|
|
7714
7714
|
React__default.createElement("div", { className: styles.horizontalWrapper },
|
|
7715
7715
|
React__default.createElement("div", { className: classnames(styles.inputWrapper, disabled && styles.disabled, !showMiniLabel && styles.hideLabel, size && styles[size]) },
|
|
@@ -5,5 +5,8 @@ interface RecurringSelectProps {
|
|
|
5
5
|
readonly value: RecurrenceRule;
|
|
6
6
|
onChange(value: RecurrenceRule): void;
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated RecurringSelect will be removed in the next major version
|
|
10
|
+
*/
|
|
8
11
|
export declare function RecurringSelect({ value, disabled, onChange, }: RecurringSelectProps): React.JSX.Element;
|
|
9
12
|
export {};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated RecurringSelect will be removed in the next major version
|
|
3
|
+
*/
|
|
1
4
|
export declare enum WeekDay {
|
|
2
5
|
Sunday = 0,
|
|
3
6
|
Monday = 1,
|
|
@@ -7,7 +10,13 @@ export declare enum WeekDay {
|
|
|
7
10
|
Friday = 5,
|
|
8
11
|
Saturday = 6
|
|
9
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated RecurringSelect will be removed in the next major version
|
|
15
|
+
*/
|
|
10
16
|
export type DayOfMonth = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | "LAST";
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated RecurringSelect will be removed in the next major version
|
|
19
|
+
*/
|
|
11
20
|
export declare enum DurationPeriod {
|
|
12
21
|
Day = "Day",
|
|
13
22
|
Week = "Week",
|
|
@@ -34,6 +43,9 @@ export interface RecurrenceRuleWeekDayOfMonth {
|
|
|
34
43
|
type: DurationPeriod.WeekDayOfMonth;
|
|
35
44
|
dayOfWeek: [Set<WeekDay>, Set<WeekDay>, Set<WeekDay>, Set<WeekDay>];
|
|
36
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated RecurringSelect will be removed in the next major version
|
|
48
|
+
*/
|
|
37
49
|
export type RecurrenceRule = {
|
|
38
50
|
interval: number;
|
|
39
51
|
} & (RecurrenceRuleDay | RecurrenceRuleWeek | RecurrenceRuleYear | RecurrenceRuleDayOfMonth | RecurrenceRuleWeekDayOfMonth);
|
|
@@ -36,6 +36,9 @@ function CurrentRecurrenceComponent({ recurrenceRule, disabled = false, onChange
|
|
|
36
36
|
|
|
37
37
|
var styles = {"container":"v2xMxsPFwcM-","fullWidthWrapper":"cfDwOgEkPHQ-","spinning":"s4XnDjTR4Uw-"};
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated RecurringSelect will be removed in the next major version
|
|
41
|
+
*/
|
|
39
42
|
function RecurringSelect({ value, disabled = false, onChange, }) {
|
|
40
43
|
const disabledTextVariation = disabled ? "disabled" : undefined;
|
|
41
44
|
// we must dynamically populate the select option based on which is selected
|
|
@@ -34,6 +34,9 @@ function CurrentRecurrenceComponent({ recurrenceRule, disabled = false, onChange
|
|
|
34
34
|
|
|
35
35
|
var styles = {"container":"v2xMxsPFwcM-","fullWidthWrapper":"cfDwOgEkPHQ-","spinning":"s4XnDjTR4Uw-"};
|
|
36
36
|
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated RecurringSelect will be removed in the next major version
|
|
39
|
+
*/
|
|
37
40
|
function RecurringSelect({ value, disabled = false, onChange, }) {
|
|
38
41
|
const disabledTextVariation = disabled ? "disabled" : undefined;
|
|
39
42
|
// we must dynamically populate the select option based on which is selected
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.62.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -542,5 +542,5 @@
|
|
|
542
542
|
"> 1%",
|
|
543
543
|
"IE 10"
|
|
544
544
|
],
|
|
545
|
-
"gitHead": "
|
|
545
|
+
"gitHead": "ea50c58452e6f0b0dccffad258cebf27fc70e2bd"
|
|
546
546
|
}
|