@7shifts/sous-chef 2.3.6 → 2.5.1
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/forms/SelectField/SelectField.d.ts +16 -15
- package/dist/icons/components/IconBirthdayCake.d.ts +11 -0
- package/dist/icons/components/IconCalendarStar.d.ts +11 -0
- package/dist/icons/components/index.d.ts +2 -0
- package/dist/index.css +3 -3
- package/dist/index.js +81 -46
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +80 -47
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -970,6 +970,21 @@ var IconBell = function IconBell(props) {
|
|
|
970
970
|
|
|
971
971
|
IconBell.displayName = 'IconBell';
|
|
972
972
|
|
|
973
|
+
var IconBirthdayCake = function IconBirthdayCake(props) {
|
|
974
|
+
return React__default.createElement("svg", Object.assign({
|
|
975
|
+
viewBox: "0 0 20 20",
|
|
976
|
+
fill: "none",
|
|
977
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
978
|
+
"data-testid": "icon-birthday-cake",
|
|
979
|
+
style: getIconStyles(props)
|
|
980
|
+
}, props), React__default.createElement("path", {
|
|
981
|
+
d: "M5 3.75c-.693 0-1.25-.557-1.25-1.25C3.75 1.29 5 1.602 5 0c.469 0 1.25 1.152 1.25 2.188C6.25 3.223 5.693 3.75 5 3.75Zm5 0c-.693 0-1.25-.557-1.25-1.25C8.75 1.29 10 1.602 10 0c.469 0 1.25 1.152 1.25 2.188 0 1.035-.557 1.562-1.25 1.562Zm5 0c-.693 0-1.25-.557-1.25-1.25C13.75 1.29 15 1.602 15 0c.469 0 1.25 1.152 1.25 2.188 0 1.035-.557 1.562-1.25 1.562ZM16.875 10h-1.25V4.375h-1.25V10h-3.75V4.375h-1.25V10h-3.75V4.375h-1.25V10h-1.25c-1.035 0-1.875.84-1.875 1.875V20h17.5v-8.125c0-1.035-.84-1.875-1.875-1.875Zm.625 8.75h-15v-2.814c.634-.37.935-.936 1.67-.936 1.092 0 1.22 1.25 2.92 1.25C8.763 16.25 8.934 15 10 15c1.1 0 1.219 1.25 2.92 1.25 1.694 0 1.827-1.25 2.92-1.25.722 0 1.025.565 1.66.936v2.814Zm0-4.39c-.376-.307-.829-.61-1.66-.61-1.697 0-1.83 1.25-2.92 1.25-1.082 0-1.229-1.25-2.92-1.25-1.674 0-1.844 1.25-2.91 1.25-1.1 0-1.219-1.25-2.92-1.25-.838 0-1.293.304-1.67.612v-2.487c0-.345.28-.625.625-.625h13.75c.345 0 .625.28.625.625v2.485Z",
|
|
982
|
+
fill: "currentColor"
|
|
983
|
+
}));
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
IconBirthdayCake.displayName = 'IconBirthdayCake';
|
|
987
|
+
|
|
973
988
|
var IconBold = function IconBold(props) {
|
|
974
989
|
return React__default.createElement("svg", Object.assign({
|
|
975
990
|
viewBox: "0 0 20 20",
|
|
@@ -1145,6 +1160,21 @@ var IconCalendarExclamation = function IconCalendarExclamation(props) {
|
|
|
1145
1160
|
|
|
1146
1161
|
IconCalendarExclamation.displayName = 'IconCalendarExclamation';
|
|
1147
1162
|
|
|
1163
|
+
var IconCalendarStar = function IconCalendarStar(props) {
|
|
1164
|
+
return React__default.createElement("svg", Object.assign({
|
|
1165
|
+
viewBox: "0 0 20 20",
|
|
1166
|
+
fill: "none",
|
|
1167
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1168
|
+
"data-testid": "icon-calendar-star",
|
|
1169
|
+
style: getIconStyles(props)
|
|
1170
|
+
}, props), React__default.createElement("path", {
|
|
1171
|
+
d: "m6.952 14.406-.325 1.808c-.074.414.103.824.461 1.07a1.186 1.186 0 0 0 1.211.082l1.71-.851 1.71.85a1.2 1.2 0 0 0 1.215-.081c.358-.246.536-.656.461-1.07l-.325-1.808 1.38-1.276c.317-.293.428-.723.292-1.12a1.127 1.127 0 0 0-.93-.743l-1.912-.265-.853-1.644a1.166 1.166 0 0 0-1.038-.613c-.44 0-.836.235-1.03.61l-.853 1.643-1.911.266a1.127 1.127 0 0 0-.931.741c-.136.398-.025.828.292 1.12l1.376 1.281Zm2.044-2.268 1.013-1.948 1.014 1.948 2.265.312-1.64 1.52.388 2.139-2.027-1.008-2.027 1.011.387-2.139-1.64-1.519 2.267-.316Zm8.263-9.64h-1.977V.313a.322.322 0 0 0-.33-.312h-.659c-.18 0-.33.14-.33.312V2.5H6.055V.312A.322.322 0 0 0 5.724 0h-.658c-.182 0-.33.14-.33.312V2.5H2.759C1.667 2.499.78 3.338.78 4.373v13.742c0 1.035.886 1.874 1.978 1.874h14.5c1.092 0 1.978-.84 1.978-1.874V4.373c0-1.035-.886-1.874-1.977-1.874Zm.66 15.617c0 .344-.297.625-.66.625H2.76c-.363 0-.66-.281-.66-.625V7.496h15.82v10.62Zm0-11.868H2.099V4.373c0-.344.297-.625.66-.625h14.5c.363 0 .66.281.66.625v1.874Z",
|
|
1172
|
+
fill: "currentColor"
|
|
1173
|
+
}));
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1176
|
+
IconCalendarStar.displayName = 'IconCalendarStar';
|
|
1177
|
+
|
|
1148
1178
|
var IconCalendarTomorrow = function IconCalendarTomorrow(props) {
|
|
1149
1179
|
return React__default.createElement("svg", Object.assign({
|
|
1150
1180
|
viewBox: "0 0 20 20",
|
|
@@ -3408,7 +3438,7 @@ var DataTable = function DataTable(_ref) {
|
|
|
3408
3438
|
numberOfRows: numberOfRows,
|
|
3409
3439
|
hasVerticalBorders: hasVerticalBorders
|
|
3410
3440
|
}
|
|
3411
|
-
},
|
|
3441
|
+
}, columns && React__default.createElement(DataTableHeader, {
|
|
3412
3442
|
columns: columns,
|
|
3413
3443
|
onSort: onSort,
|
|
3414
3444
|
showActionMenu: showActionMenu
|
|
@@ -3436,7 +3466,7 @@ var DataTable = function DataTable(_ref) {
|
|
|
3436
3466
|
hasNext: hasNext && !isLoading,
|
|
3437
3467
|
onPreviousClick: onPreviousClick,
|
|
3438
3468
|
onNextClick: onNextClick
|
|
3439
|
-
})))
|
|
3469
|
+
})));
|
|
3440
3470
|
};
|
|
3441
3471
|
|
|
3442
3472
|
var DefaultItemComponent$1 = function DefaultItemComponent(_ref2) {
|
|
@@ -4948,40 +4978,42 @@ function CustomOption$1(_ref) {
|
|
|
4948
4978
|
}
|
|
4949
4979
|
|
|
4950
4980
|
var SelectField = function SelectField(_ref) {
|
|
4951
|
-
var
|
|
4981
|
+
var _ref$asToolbarFilter = _ref.asToolbarFilter,
|
|
4982
|
+
asToolbarFilter = _ref$asToolbarFilter === void 0 ? false : _ref$asToolbarFilter,
|
|
4983
|
+
caption = _ref.caption,
|
|
4984
|
+
disabled = _ref.disabled,
|
|
4985
|
+
error = _ref.error,
|
|
4952
4986
|
inputId = _ref.id,
|
|
4953
|
-
|
|
4987
|
+
_ref$isClearable = _ref.isClearable,
|
|
4988
|
+
isClearable = _ref$isClearable === void 0 ? false : _ref$isClearable,
|
|
4989
|
+
label = _ref.label,
|
|
4990
|
+
_ref$menuShouldScroll = _ref.menuShouldScrollIntoView,
|
|
4991
|
+
menuShouldScrollIntoView = _ref$menuShouldScroll === void 0 ? true : _ref$menuShouldScroll,
|
|
4992
|
+
name = _ref.name,
|
|
4993
|
+
noOptionsMessage = _ref.noOptionsMessage,
|
|
4954
4994
|
options = _ref.options,
|
|
4955
|
-
onChange = _ref.onChange,
|
|
4956
4995
|
onBlur = _ref.onBlur,
|
|
4957
|
-
|
|
4958
|
-
SelectedOptionPrefix = _ref.SelectedOptionPrefix,
|
|
4959
|
-
label = _ref.label,
|
|
4960
|
-
caption = _ref.caption,
|
|
4961
|
-
error = _ref.error,
|
|
4996
|
+
onChange = _ref.onChange,
|
|
4962
4997
|
placeholder = _ref.placeholder,
|
|
4963
|
-
noOptionsMessage = _ref.noOptionsMessage,
|
|
4964
|
-
disabled = _ref.disabled,
|
|
4965
4998
|
prefix = _ref.prefix,
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
menuShouldScrollIntoView = _ref$menuShouldScroll === void 0 ? true : _ref$menuShouldScroll;
|
|
4999
|
+
value = _ref.value,
|
|
5000
|
+
UserCustomOption = _ref.CustomOption,
|
|
5001
|
+
SelectedOptionPrefix = _ref.SelectedOptionPrefix;
|
|
4970
5002
|
var controllers = useSelectFieldControllers({
|
|
4971
|
-
|
|
5003
|
+
error: error,
|
|
4972
5004
|
id: inputId,
|
|
4973
|
-
|
|
5005
|
+
name: name,
|
|
4974
5006
|
onChange: onChange,
|
|
4975
5007
|
onBlur: onBlur,
|
|
4976
|
-
|
|
5008
|
+
value: value
|
|
4977
5009
|
});
|
|
4978
5010
|
var hasError = !!controllers.error;
|
|
4979
5011
|
var fieldProps = {
|
|
4980
|
-
|
|
5012
|
+
caption: caption,
|
|
5013
|
+
error: controllers.error,
|
|
4981
5014
|
id: controllers.id,
|
|
4982
5015
|
label: label,
|
|
4983
|
-
|
|
4984
|
-
error: controllers.error
|
|
5016
|
+
name: name
|
|
4985
5017
|
};
|
|
4986
5018
|
var defaultNoOptionsMessage = noOptionsMessage && typeof noOptionsMessage === 'string' ? function () {
|
|
4987
5019
|
return noOptionsMessage;
|
|
@@ -4989,19 +5021,16 @@ var SelectField = function SelectField(_ref) {
|
|
|
4989
5021
|
return React__default.createElement(Field, Object.assign({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
4990
5022
|
prefix: prefix
|
|
4991
5023
|
}, React__default.createElement(Select, {
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
}
|
|
5002
|
-
menuPortalTarget: document.body,
|
|
5003
|
-
onChange: controllers.onChange,
|
|
5004
|
-
onBlur: controllers.onBlur,
|
|
5024
|
+
closeMenuOnScroll: function closeMenuOnScroll(e) {
|
|
5025
|
+
if (menuShouldScrollIntoView || !e.target) {
|
|
5026
|
+
return false;
|
|
5027
|
+
}
|
|
5028
|
+
|
|
5029
|
+
var target = e.target;
|
|
5030
|
+
var firstOption = target.children[0];
|
|
5031
|
+
var isScrollingTheMenu = firstOption && typeof firstOption.id === 'string' && firstOption.id.includes('react-select');
|
|
5032
|
+
return !isScrollingTheMenu;
|
|
5033
|
+
},
|
|
5005
5034
|
components: {
|
|
5006
5035
|
Option: UserCustomOption ? function (props) {
|
|
5007
5036
|
return React__default.createElement(CustomOption$1, Object.assign({
|
|
@@ -5014,19 +5043,23 @@ var SelectField = function SelectField(_ref) {
|
|
|
5014
5043
|
}, props));
|
|
5015
5044
|
} : components.Control
|
|
5016
5045
|
},
|
|
5017
|
-
|
|
5046
|
+
inputId: controllers.id,
|
|
5047
|
+
isClearable: isClearable,
|
|
5048
|
+
isDisabled: disabled,
|
|
5049
|
+
menuPortalTarget: document.body,
|
|
5018
5050
|
menuPlacement: menuShouldScrollIntoView ? 'bottom' : 'auto',
|
|
5019
5051
|
menuPosition: menuShouldScrollIntoView ? 'absolute' : 'fixed',
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
}
|
|
5052
|
+
noOptionsMessage: typeof noOptionsMessage === 'function' ? noOptionsMessage : defaultNoOptionsMessage,
|
|
5053
|
+
menuShouldScrollIntoView: menuShouldScrollIntoView,
|
|
5054
|
+
onBlur: controllers.onBlur,
|
|
5055
|
+
onChange: controllers.onChange,
|
|
5056
|
+
options: options,
|
|
5057
|
+
placeholder: placeholder,
|
|
5058
|
+
styles: getSelectStyles$1({
|
|
5059
|
+
isInvalid: hasError,
|
|
5060
|
+
asToolbarFilter: asToolbarFilter
|
|
5061
|
+
}),
|
|
5062
|
+
value: controllers.value
|
|
5030
5063
|
})));
|
|
5031
5064
|
};
|
|
5032
5065
|
|
|
@@ -5958,5 +5991,5 @@ var Avatar = function Avatar(_ref) {
|
|
|
5958
5991
|
}, badge));
|
|
5959
5992
|
};
|
|
5960
5993
|
|
|
5961
|
-
export { Avatar, Badge$1 as Badge, Button$1 as Button, CheckboxField, DataTable, DataTableCell, DataTableEditableCell, DataTableRow, DateField, DateRangeField, Form, FormRow, IconAnalytics, IconArrowDown, IconArrowLeft, IconArrowRight, IconArrowToTop, IconArrowUp, IconAward, IconBalanceScale, IconBalanceScaleLeft, IconBan, IconBarsH, IconBarsV, IconBell, IconBold, IconBolt, IconBook, IconBriefcase, IconBullseyeArrow, IconCalculator, IconCalendar, IconCalendarAlt, IconCalendarCheck, IconCalendarDay, IconCalendarExclamation, IconCalendarTomorrow, IconCamera, IconCameraSlash, IconCashRegister, IconChartBar, IconCheck, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconClipboardList, IconClock, IconCog, IconComment, IconCommentLines, IconCopy, IconCreditCard, IconCreditCardPlus, IconDownload, IconEdit, IconEllipsisV, IconEnvelope, IconExclaimation, IconExclaimationTriangle, IconExpand, IconExternalLink, IconEye, IconEyeSlash, IconFile, IconFilePdf, IconFlag, IconFourDotsCircle, IconFourSquares, IconGavel, IconGif, IconGift, IconGrinBeam, IconGripVertical, IconHandshake, IconImage, IconInfoCircle, IconIslandTropical, IconItalic, IconLaptopSearch, IconLink, IconList, IconListOI as IconListOi, IconLock, IconMagicSolid, IconMapMarker, IconMegaphone, IconMinus, IconMinusCircle, IconMoneyBill, IconNotesMedical, IconOvertime, IconPaperPlane, IconPaperPlaneClock, IconPaperclip, IconPencil, IconPercentage, IconPhone, IconPlug, IconPlus, IconPrint, IconQuestionCircle, IconRepeat, IconSearch, IconSignOut, IconSitemap, IconSlidersH, IconSort, IconStar, IconStarSolid, IconStickyNoteLines, IconStopwatch, IconStrikethrough, IconSync, IconSyncExclaimation, IconTachometer, IconTimes, IconTimesOctagon, IconTrash, IconUnderline, IconUndo, IconUserComputer, IconUserLight, IconUserPlus, IconUserSlash, IconUserSolid, IconUserTag, IconUserTie, IconUsers, IconVideo, IconVolume, IconVolumeMute, IconWrench, Inline, Modal, ModalBody, ModalFooter, MultiSelectField, PaginationControls, PasswordField, PillSelectField, RadioGroupField, RadioGroupOption, ResourceTable, ResourceTableRow, SIZE_25_PERCENT, SIZE_33_PERCENT, SIZE_50_PERCENT, SIZE_66_PERCENT, SIZE_75_PERCENT, SelectField, Spinner, Stack, TextAreaField, TextField, TimeField, Toggle, ToolbarSelect, Tooltip$1 as Tooltip, WeekField };
|
|
5994
|
+
export { Avatar, Badge$1 as Badge, Button$1 as Button, CheckboxField, DataTable, DataTableCell, DataTableEditableCell, DataTableRow, DateField, DateRangeField, Form, FormRow, IconAnalytics, IconArrowDown, IconArrowLeft, IconArrowRight, IconArrowToTop, IconArrowUp, IconAward, IconBalanceScale, IconBalanceScaleLeft, IconBan, IconBarsH, IconBarsV, IconBell, IconBirthdayCake, IconBold, IconBolt, IconBook, IconBriefcase, IconBullseyeArrow, IconCalculator, IconCalendar, IconCalendarAlt, IconCalendarCheck, IconCalendarDay, IconCalendarExclamation, IconCalendarStar, IconCalendarTomorrow, IconCamera, IconCameraSlash, IconCashRegister, IconChartBar, IconCheck, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconClipboardList, IconClock, IconCog, IconComment, IconCommentLines, IconCopy, IconCreditCard, IconCreditCardPlus, IconDownload, IconEdit, IconEllipsisV, IconEnvelope, IconExclaimation, IconExclaimationTriangle, IconExpand, IconExternalLink, IconEye, IconEyeSlash, IconFile, IconFilePdf, IconFlag, IconFourDotsCircle, IconFourSquares, IconGavel, IconGif, IconGift, IconGrinBeam, IconGripVertical, IconHandshake, IconImage, IconInfoCircle, IconIslandTropical, IconItalic, IconLaptopSearch, IconLink, IconList, IconListOI as IconListOi, IconLock, IconMagicSolid, IconMapMarker, IconMegaphone, IconMinus, IconMinusCircle, IconMoneyBill, IconNotesMedical, IconOvertime, IconPaperPlane, IconPaperPlaneClock, IconPaperclip, IconPencil, IconPercentage, IconPhone, IconPlug, IconPlus, IconPrint, IconQuestionCircle, IconRepeat, IconSearch, IconSignOut, IconSitemap, IconSlidersH, IconSort, IconStar, IconStarSolid, IconStickyNoteLines, IconStopwatch, IconStrikethrough, IconSync, IconSyncExclaimation, IconTachometer, IconTimes, IconTimesOctagon, IconTrash, IconUnderline, IconUndo, IconUserComputer, IconUserLight, IconUserPlus, IconUserSlash, IconUserSolid, IconUserTag, IconUserTie, IconUsers, IconVideo, IconVolume, IconVolumeMute, IconWrench, Inline, Modal, ModalBody, ModalFooter, MultiSelectField, PaginationControls, PasswordField, PillSelectField, RadioGroupField, RadioGroupOption, ResourceTable, ResourceTableRow, SIZE_25_PERCENT, SIZE_33_PERCENT, SIZE_50_PERCENT, SIZE_66_PERCENT, SIZE_75_PERCENT, SelectField, Spinner, Stack, TextAreaField, TextField, TimeField, Toggle, ToolbarSelect, Tooltip$1 as Tooltip, WeekField };
|
|
5962
5995
|
//# sourceMappingURL=index.modern.js.map
|