@7shifts/sous-chef 1.5.7 → 1.5.9
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/actions/PaginationControls/PaginationControls.d.ts +1 -0
- package/dist/controls/ToolbarSelect/ToolbarSelect.d.ts +17 -0
- package/dist/controls/ToolbarSelect/ToolbarSelect.styles.d.ts +5 -0
- package/dist/controls/ToolbarSelect/index.d.ts +1 -0
- package/dist/controls/index.d.ts +2 -0
- package/dist/core/DataTableRow/DataTableRowActions/DataTableRowActions.d.ts +6 -0
- package/dist/core/DataTableRow/DataTableRowActions/index.d.ts +1 -0
- package/dist/feedback/InlineBanner/ButtonCTA/ButtonCTA.d.ts +10 -0
- package/dist/feedback/InlineBanner/ButtonCTA/index.d.ts +1 -0
- package/dist/feedback/InlineBanner/InlineBanner.d.ts +14 -0
- package/dist/feedback/InlineBanner/InlineBannerCTA/InlineBannerCTA.d.ts +11 -0
- package/dist/feedback/InlineBanner/InlineBannerCTA/index.d.ts +1 -0
- package/dist/feedback/InlineBanner/InlineBannerIcon/InlineBannerIcon.d.ts +6 -0
- package/dist/feedback/InlineBanner/InlineBannerIcon/index.d.ts +1 -0
- package/dist/feedback/InlineBanner/constants.d.ts +11 -0
- package/dist/feedback/InlineBanner/index.d.ts +1 -0
- package/dist/feedback/InlineBanner/types.d.ts +1 -0
- package/dist/forms/AsyncSelectField/AsyncSelectField.d.ts +14 -0
- package/dist/forms/AsyncSelectField/CustomList/CustomList.d.ts +8 -0
- package/dist/forms/AsyncSelectField/CustomList/index.d.ts +1 -0
- package/dist/forms/AsyncSelectField/index.d.ts +1 -0
- package/dist/forms/AsyncSelectField/types.d.ts +5 -0
- package/dist/forms/CurrencyField/CurrencyField.d.ts +11 -0
- package/dist/forms/CurrencyField/index.d.ts +1 -0
- package/dist/forms/Label/domain.d.ts +1 -0
- package/dist/forms/Label/useLabelTooltip.d.ts +7 -0
- package/dist/forms/PercentageField/PercentageField.d.ts +13 -0
- package/dist/forms/PercentageField/index.d.ts +1 -0
- package/dist/forms/SelectField/domain.d.ts +5 -0
- package/dist/forms/SelectField/useSelectField.d.ts +12 -0
- package/dist/forms/TextField/useTextField.d.ts +38 -0
- package/dist/forms/TimeField/TimeField.d.ts +9 -0
- package/dist/forms/TimeField/index.d.ts +1 -0
- package/dist/icons/components/IconAnalytics.d.ts +12 -0
- package/dist/icons/components/IconArrowDown.d.ts +12 -0
- package/dist/icons/components/IconArrowLeft.d.ts +12 -0
- package/dist/icons/components/IconArrowRight.d.ts +12 -0
- package/dist/icons/components/IconArrowToTop.d.ts +12 -0
- package/dist/icons/components/IconArrowUp.d.ts +12 -0
- package/dist/icons/components/IconAward.d.ts +12 -0
- package/dist/icons/components/IconBalanceScale.d.ts +12 -0
- package/dist/icons/components/IconBalanceScaleLeft.d.ts +12 -0
- package/dist/icons/components/IconBan.d.ts +12 -0
- package/dist/icons/components/IconBarsH.d.ts +12 -0
- package/dist/icons/components/IconBarsV.d.ts +12 -0
- package/dist/icons/components/IconBell.d.ts +12 -0
- package/dist/icons/components/IconBirthdayCake.d.ts +12 -0
- package/dist/icons/components/IconBold.d.ts +12 -0
- package/dist/icons/components/IconBolt.d.ts +12 -0
- package/dist/icons/components/IconBook.d.ts +12 -0
- package/dist/icons/components/IconBriefcase.d.ts +12 -0
- package/dist/icons/components/IconBullseyeArrow.d.ts +12 -0
- package/dist/icons/components/IconCalculator.d.ts +12 -0
- package/dist/icons/components/IconCalendar.d.ts +12 -0
- package/dist/icons/components/IconCalendarAlt.d.ts +12 -0
- package/dist/icons/components/IconCalendarCheck.d.ts +12 -0
- package/dist/icons/components/IconCalendarDay.d.ts +12 -0
- package/dist/icons/components/IconCalendarExclamation.d.ts +12 -0
- package/dist/icons/components/IconCalendarStar.d.ts +12 -0
- package/dist/icons/components/IconCalendarTomorrow.d.ts +12 -0
- package/dist/icons/components/IconCamera.d.ts +12 -0
- package/dist/icons/components/IconCameraSlash.d.ts +12 -0
- package/dist/icons/components/IconCashRegister.d.ts +12 -0
- package/dist/icons/components/IconChartBar.d.ts +12 -0
- package/dist/icons/components/IconCheck.d.ts +12 -0
- package/dist/icons/components/IconChevronDown.d.ts +12 -0
- package/dist/icons/components/IconChevronLeft.d.ts +12 -0
- package/dist/icons/components/IconChevronRight.d.ts +12 -0
- package/dist/icons/components/IconChevronUp.d.ts +12 -0
- package/dist/icons/components/IconClipboardList.d.ts +12 -0
- package/dist/icons/components/IconClock.d.ts +12 -0
- package/dist/icons/components/IconCog.d.ts +12 -0
- package/dist/icons/components/IconComment.d.ts +12 -0
- package/dist/icons/components/IconCommentLines.d.ts +12 -0
- package/dist/icons/components/IconCopy.d.ts +12 -0
- package/dist/icons/components/IconCreditCard.d.ts +12 -0
- package/dist/icons/components/IconCreditCardPlus.d.ts +12 -0
- package/dist/icons/components/IconDownload.d.ts +12 -0
- package/dist/icons/components/IconEdit.d.ts +12 -0
- package/dist/icons/components/IconEllipsisV.d.ts +12 -0
- package/dist/icons/components/IconEnvelope.d.ts +12 -0
- package/dist/icons/components/IconExclaimation.d.ts +12 -0
- package/dist/icons/components/IconExclaimationTriangle.d.ts +12 -0
- package/dist/icons/components/IconExpand.d.ts +12 -0
- package/dist/icons/components/IconExternalLink.d.ts +12 -0
- package/dist/icons/components/IconEye.d.ts +12 -0
- package/dist/icons/components/IconEyeSlash.d.ts +12 -0
- package/dist/icons/components/IconFile.d.ts +12 -0
- package/dist/icons/components/IconFilePdf.d.ts +12 -0
- package/dist/icons/components/IconFlag.d.ts +12 -0
- package/dist/icons/components/IconFourDotsCircle.d.ts +12 -0
- package/dist/icons/components/IconFourSquares.d.ts +12 -0
- package/dist/icons/components/IconGavel.d.ts +12 -0
- package/dist/icons/components/IconGif.d.ts +12 -0
- package/dist/icons/components/IconGift.d.ts +12 -0
- package/dist/icons/components/IconGrinBeam.d.ts +12 -0
- package/dist/icons/components/IconGripVertical.d.ts +12 -0
- package/dist/icons/components/IconHandshake.d.ts +12 -0
- package/dist/icons/components/IconImage.d.ts +12 -0
- package/dist/icons/components/IconInfoCircle.d.ts +12 -0
- package/dist/icons/components/IconIslandTropical.d.ts +12 -0
- package/dist/icons/components/IconItalic.d.ts +12 -0
- package/dist/icons/components/IconLaptopSearch.d.ts +12 -0
- package/dist/icons/components/IconLink.d.ts +12 -0
- package/dist/icons/components/IconList.d.ts +12 -0
- package/dist/icons/components/IconListOI.d.ts +12 -0
- package/dist/icons/components/IconLock.d.ts +12 -0
- package/dist/icons/components/IconMagicSolid.d.ts +12 -0
- package/dist/icons/components/IconMapMarker.d.ts +12 -0
- package/dist/icons/components/IconMegaphone.d.ts +12 -0
- package/dist/icons/components/IconMinus.d.ts +12 -0
- package/dist/icons/components/IconMinusCircle.d.ts +12 -0
- package/dist/icons/components/IconMoneyBill.d.ts +12 -0
- package/dist/icons/components/IconNotesMedical.d.ts +12 -0
- package/dist/icons/components/IconOvertime.d.ts +12 -0
- package/dist/icons/components/IconPaperPlane.d.ts +12 -0
- package/dist/icons/components/IconPaperPlaneClock.d.ts +12 -0
- package/dist/icons/components/IconPaperclip.d.ts +12 -0
- package/dist/icons/components/IconPencil.d.ts +12 -0
- package/dist/icons/components/IconPercentage.d.ts +12 -0
- package/dist/icons/components/IconPhone.d.ts +12 -0
- package/dist/icons/components/IconPlug.d.ts +12 -0
- package/dist/icons/components/IconPlus.d.ts +12 -0
- package/dist/icons/components/IconPrint.d.ts +12 -0
- package/dist/icons/components/IconQuestionCircle.d.ts +12 -0
- package/dist/icons/components/IconRepeat.d.ts +12 -0
- package/dist/icons/components/IconReply.d.ts +12 -0
- package/dist/icons/components/IconSearch.d.ts +12 -0
- package/dist/icons/components/IconSignOut.d.ts +12 -0
- package/dist/icons/components/IconSitemap.d.ts +12 -0
- package/dist/icons/components/IconSlidersH.d.ts +12 -0
- package/dist/icons/components/IconSort.d.ts +12 -0
- package/dist/icons/components/IconStar.d.ts +12 -0
- package/dist/icons/components/IconStarSolid.d.ts +12 -0
- package/dist/icons/components/IconStickyNoteLines.d.ts +12 -0
- package/dist/icons/components/IconStopwatch.d.ts +12 -0
- package/dist/icons/components/IconStrikethrough.d.ts +12 -0
- package/dist/icons/components/IconSync.d.ts +12 -0
- package/dist/icons/components/IconSyncExclaimation.d.ts +12 -0
- package/dist/icons/components/IconTachometer.d.ts +12 -0
- package/dist/icons/components/IconTimes.d.ts +12 -0
- package/dist/icons/components/IconTimesOctagon.d.ts +12 -0
- package/dist/icons/components/IconTrash.d.ts +12 -0
- package/dist/icons/components/IconUnderline.d.ts +12 -0
- package/dist/icons/components/IconUndo.d.ts +12 -0
- package/dist/icons/components/IconUniversity.d.ts +12 -0
- package/dist/icons/components/IconUserComputer.d.ts +12 -0
- package/dist/icons/components/IconUserFriends.d.ts +12 -0
- package/dist/icons/components/IconUserLight.d.ts +12 -0
- package/dist/icons/components/IconUserPlus.d.ts +12 -0
- package/dist/icons/components/IconUserSlash.d.ts +12 -0
- package/dist/icons/components/IconUserSolid.d.ts +12 -0
- package/dist/icons/components/IconUserTag.d.ts +12 -0
- package/dist/icons/components/IconUserTie.d.ts +12 -0
- package/dist/icons/components/IconUsers.d.ts +12 -0
- package/dist/icons/components/IconVideo.d.ts +12 -0
- package/dist/icons/components/IconVolume.d.ts +12 -0
- package/dist/icons/components/IconVolumeMute.d.ts +12 -0
- package/dist/icons/components/IconWrench.d.ts +12 -0
- package/dist/icons/components/index.d.ts +126 -0
- package/dist/icons/icon-typescript-template.d.ts +9 -0
- package/dist/index.css +3 -3
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/media/Chip/Chip.d.ts +11 -0
- package/dist/media/Chip/constants.d.ts +8 -0
- package/dist/media/Chip/index.d.ts +1 -0
- package/dist/media/Chip/types.d.ts +1 -0
- package/dist/media/Pill/Pill.d.ts +10 -0
- package/dist/media/Pill/constants.d.ts +7 -0
- package/dist/media/Pill/index.d.ts +1 -0
- package/dist/media/Pill/types.d.ts +1 -0
- package/dist/overlay/Calendar/Calendar.d.ts +24 -0
- package/dist/overlay/Calendar/constants.d.ts +8 -0
- package/dist/overlay/Calendar/domain.d.ts +7 -0
- package/dist/overlay/Calendar/index.d.ts +1 -0
- package/dist/overlay/Calendar/types.d.ts +2 -0
- package/dist/overlay/Modal/ModalBody/useScrollShadow.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Theme } from './types';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
/** It is the body text of the Chip */
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
theme?: Theme;
|
|
7
|
+
/** This is used for overriding the default data-testid */
|
|
8
|
+
testId?: string;
|
|
9
|
+
};
|
|
10
|
+
declare const Chip: ({ children, theme, testId }: Props) => JSX.Element;
|
|
11
|
+
export default Chip;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Chip';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type Theme = 'marketing' | 'success' | 'upsell' | 'warning' | 'info' | 'danger';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { PillTheme } from './types';
|
|
4
|
+
declare type Props = {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
theme?: PillTheme;
|
|
7
|
+
testId?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const Pill: React.FC<Props>;
|
|
10
|
+
export default Pill;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Pill';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type PillTheme = 'info' | 'success' | 'danger' | 'warning' | 'default';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { MutableRefObject } from 'react';
|
|
2
|
+
import '../../forms/DatePickerCalendar/date-picker-calendar.scss';
|
|
3
|
+
import 'react-day-picker/lib/style.css';
|
|
4
|
+
import { BlockedDays, WeekStart } from '../../utils/date';
|
|
5
|
+
import { CalendarMode, CalendarPlacement } from './types';
|
|
6
|
+
declare type Props = {
|
|
7
|
+
mode?: CalendarMode;
|
|
8
|
+
/** Note that if the calendar is not able to fit in the selected position,
|
|
9
|
+
* it will override this selection and select the one that fits in the window. */
|
|
10
|
+
position?: CalendarPlacement;
|
|
11
|
+
weekStart?: WeekStart;
|
|
12
|
+
selected?: Date;
|
|
13
|
+
onSelect: (selected: Date) => void;
|
|
14
|
+
onClickOutside: () => void;
|
|
15
|
+
/** It disable some dates so the user can't click on them. Refer to this
|
|
16
|
+
* [doc](https://react-day-picker-v7.netlify.app/api/DayPicker#disabledDays) to see what
|
|
17
|
+
* values you can use. */
|
|
18
|
+
disabledDays?: BlockedDays;
|
|
19
|
+
anchorRef: MutableRefObject<HTMLElement | null>;
|
|
20
|
+
testId?: string;
|
|
21
|
+
};
|
|
22
|
+
/**Calendar overlay component*/
|
|
23
|
+
declare const Calendar: React.FC<Props>;
|
|
24
|
+
export default Calendar;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CalendarPlacement } from './types';
|
|
2
|
+
declare type Position = {
|
|
3
|
+
left: number;
|
|
4
|
+
top: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const calculateCalendarPosition: (placement: CalendarPlacement, anchorPosition: DOMRect, calendarDimensions?: DOMRect | undefined) => Position;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Calendar';
|