@trackunit/react-form-components 0.0.334 → 0.0.336
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/index.cjs.js +6 -4
- package/index.esm.js +5 -5
- package/package.json +1 -1
- package/src/components/ActionButton/index.d.ts +1 -0
package/index.cjs.js
CHANGED
|
@@ -1228,15 +1228,15 @@ const parseSchedule = (scheduleString) => {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
const schedule = scheduleString.split(",").map(daySchedule => {
|
|
1230
1230
|
const [day, timeRange] = daySchedule.split("#");
|
|
1231
|
-
const [timeFrom, timeTo] = timeRange.split("-");
|
|
1231
|
+
const [timeFrom, timeTo] = (timeRange !== null && timeRange !== void 0 ? timeRange : "").split("-");
|
|
1232
1232
|
const isAllDay = timeFrom === "00:00" && timeTo === "24:00";
|
|
1233
1233
|
return {
|
|
1234
1234
|
day: Number(day),
|
|
1235
|
-
range: isAllDay
|
|
1235
|
+
range: isAllDay || timeFrom === undefined || timeTo === undefined
|
|
1236
1236
|
? undefined
|
|
1237
1237
|
: {
|
|
1238
|
-
timeFrom,
|
|
1239
|
-
timeTo,
|
|
1238
|
+
timeFrom: timeFrom,
|
|
1239
|
+
timeTo: timeTo,
|
|
1240
1240
|
},
|
|
1241
1241
|
isAllDay,
|
|
1242
1242
|
};
|
|
@@ -2298,6 +2298,8 @@ exports.UrlField = UrlField;
|
|
|
2298
2298
|
exports.UrlInput = UrlInput;
|
|
2299
2299
|
exports.checkIfPhoneNumberHasPlus = checkIfPhoneNumberHasPlus;
|
|
2300
2300
|
exports.countryCodeToFlagEmoji = countryCodeToFlagEmoji;
|
|
2301
|
+
exports.cvaActionButton = cvaActionButton;
|
|
2302
|
+
exports.cvaActionContainer = cvaActionContainer;
|
|
2301
2303
|
exports.cvaInput = cvaInput;
|
|
2302
2304
|
exports.cvaInputAddon = cvaInputAddon;
|
|
2303
2305
|
exports.cvaInputAddonAfter = cvaInputAddonAfter;
|
package/index.esm.js
CHANGED
|
@@ -1198,15 +1198,15 @@ const parseSchedule = (scheduleString) => {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
const schedule = scheduleString.split(",").map(daySchedule => {
|
|
1200
1200
|
const [day, timeRange] = daySchedule.split("#");
|
|
1201
|
-
const [timeFrom, timeTo] = timeRange.split("-");
|
|
1201
|
+
const [timeFrom, timeTo] = (timeRange !== null && timeRange !== void 0 ? timeRange : "").split("-");
|
|
1202
1202
|
const isAllDay = timeFrom === "00:00" && timeTo === "24:00";
|
|
1203
1203
|
return {
|
|
1204
1204
|
day: Number(day),
|
|
1205
|
-
range: isAllDay
|
|
1205
|
+
range: isAllDay || timeFrom === undefined || timeTo === undefined
|
|
1206
1206
|
? undefined
|
|
1207
1207
|
: {
|
|
1208
|
-
timeFrom,
|
|
1209
|
-
timeTo,
|
|
1208
|
+
timeFrom: timeFrom,
|
|
1209
|
+
timeTo: timeTo,
|
|
1210
1210
|
},
|
|
1211
1211
|
isAllDay,
|
|
1212
1212
|
};
|
|
@@ -2221,4 +2221,4 @@ const useGetPhoneValidationRules = () => {
|
|
|
2221
2221
|
*/
|
|
2222
2222
|
setupLibraryTranslations();
|
|
2223
2223
|
|
|
2224
|
-
export { ActionButton, BaseInput, Checkbox, CreatableSelect, CreatableSelectField, DateField, DateInput, DropZone, EMAIL_REGEX, EmailField, EmailInput, FormFieldSelectAdapter, FormGroup, Label, MultiSelectMenuItem, NumberField, NumberInput, OptionCard, PasswordField, PasswordInput, PhoneField, PhoneFieldWithController, PhoneInput, RadioGroup, RadioItem, Schedule, ScheduleVariant, Search, Select, SelectField, SingleSelectMenuItem, TextArea, TextAreaField, TextField, TextInput, TimeRange, TimeRangeField, Toggle, UploadField, UploadInput, UrlField, UrlInput, checkIfPhoneNumberHasPlus, countryCodeToFlagEmoji, cvaInput, cvaInputAddon, cvaInputAddonAfter, cvaInputAddonBefore, cvaInputBase, cvaInputBaseDisabled, cvaInputBaseInvalid, cvaInputField, cvaInputPrefix, cvaInputSuffix, cvaSelect, cvaSelectCounter, cvaSelectDynamicTagContainer, cvaSelectIcon, cvaSelectMenu, cvaSelectMenuList, cvaSelectPrefix, cvaSelectXIcon, getCountryAbbreviation, getOrderedOptions, getPhoneNumberWithPlus, isInvalidCountryCode, isInvalidPhoneNumber, isMultiValue, parseSchedule, serializeSchedule, useCustomComponents, useGetPhoneValidationRules, usePhoneInput, useZodValidators, validateEmailAddress, validatePhoneNumber, weekDay };
|
|
2224
|
+
export { ActionButton, BaseInput, Checkbox, CreatableSelect, CreatableSelectField, DateField, DateInput, DropZone, EMAIL_REGEX, EmailField, EmailInput, FormFieldSelectAdapter, FormGroup, Label, MultiSelectMenuItem, NumberField, NumberInput, OptionCard, PasswordField, PasswordInput, PhoneField, PhoneFieldWithController, PhoneInput, RadioGroup, RadioItem, Schedule, ScheduleVariant, Search, Select, SelectField, SingleSelectMenuItem, TextArea, TextAreaField, TextField, TextInput, TimeRange, TimeRangeField, Toggle, UploadField, UploadInput, UrlField, UrlInput, checkIfPhoneNumberHasPlus, countryCodeToFlagEmoji, cvaActionButton, cvaActionContainer, cvaInput, cvaInputAddon, cvaInputAddonAfter, cvaInputAddonBefore, cvaInputBase, cvaInputBaseDisabled, cvaInputBaseInvalid, cvaInputField, cvaInputPrefix, cvaInputSuffix, cvaSelect, cvaSelectCounter, cvaSelectDynamicTagContainer, cvaSelectIcon, cvaSelectMenu, cvaSelectMenuList, cvaSelectPrefix, cvaSelectXIcon, getCountryAbbreviation, getOrderedOptions, getPhoneNumberWithPlus, isInvalidCountryCode, isInvalidPhoneNumber, isMultiValue, parseSchedule, serializeSchedule, useCustomComponents, useGetPhoneValidationRules, usePhoneInput, useZodValidators, validateEmailAddress, validatePhoneNumber, weekDay };
|
package/package.json
CHANGED