@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.
Files changed (181) hide show
  1. package/dist/actions/PaginationControls/PaginationControls.d.ts +1 -0
  2. package/dist/controls/ToolbarSelect/ToolbarSelect.d.ts +17 -0
  3. package/dist/controls/ToolbarSelect/ToolbarSelect.styles.d.ts +5 -0
  4. package/dist/controls/ToolbarSelect/index.d.ts +1 -0
  5. package/dist/controls/index.d.ts +2 -0
  6. package/dist/core/DataTableRow/DataTableRowActions/DataTableRowActions.d.ts +6 -0
  7. package/dist/core/DataTableRow/DataTableRowActions/index.d.ts +1 -0
  8. package/dist/feedback/InlineBanner/ButtonCTA/ButtonCTA.d.ts +10 -0
  9. package/dist/feedback/InlineBanner/ButtonCTA/index.d.ts +1 -0
  10. package/dist/feedback/InlineBanner/InlineBanner.d.ts +14 -0
  11. package/dist/feedback/InlineBanner/InlineBannerCTA/InlineBannerCTA.d.ts +11 -0
  12. package/dist/feedback/InlineBanner/InlineBannerCTA/index.d.ts +1 -0
  13. package/dist/feedback/InlineBanner/InlineBannerIcon/InlineBannerIcon.d.ts +6 -0
  14. package/dist/feedback/InlineBanner/InlineBannerIcon/index.d.ts +1 -0
  15. package/dist/feedback/InlineBanner/constants.d.ts +11 -0
  16. package/dist/feedback/InlineBanner/index.d.ts +1 -0
  17. package/dist/feedback/InlineBanner/types.d.ts +1 -0
  18. package/dist/forms/AsyncSelectField/AsyncSelectField.d.ts +14 -0
  19. package/dist/forms/AsyncSelectField/CustomList/CustomList.d.ts +8 -0
  20. package/dist/forms/AsyncSelectField/CustomList/index.d.ts +1 -0
  21. package/dist/forms/AsyncSelectField/index.d.ts +1 -0
  22. package/dist/forms/AsyncSelectField/types.d.ts +5 -0
  23. package/dist/forms/CurrencyField/CurrencyField.d.ts +11 -0
  24. package/dist/forms/CurrencyField/index.d.ts +1 -0
  25. package/dist/forms/Label/domain.d.ts +1 -0
  26. package/dist/forms/Label/useLabelTooltip.d.ts +7 -0
  27. package/dist/forms/PercentageField/PercentageField.d.ts +13 -0
  28. package/dist/forms/PercentageField/index.d.ts +1 -0
  29. package/dist/forms/SelectField/domain.d.ts +5 -0
  30. package/dist/forms/SelectField/useSelectField.d.ts +12 -0
  31. package/dist/forms/TextField/useTextField.d.ts +38 -0
  32. package/dist/forms/TimeField/TimeField.d.ts +9 -0
  33. package/dist/forms/TimeField/index.d.ts +1 -0
  34. package/dist/icons/components/IconAnalytics.d.ts +12 -0
  35. package/dist/icons/components/IconArrowDown.d.ts +12 -0
  36. package/dist/icons/components/IconArrowLeft.d.ts +12 -0
  37. package/dist/icons/components/IconArrowRight.d.ts +12 -0
  38. package/dist/icons/components/IconArrowToTop.d.ts +12 -0
  39. package/dist/icons/components/IconArrowUp.d.ts +12 -0
  40. package/dist/icons/components/IconAward.d.ts +12 -0
  41. package/dist/icons/components/IconBalanceScale.d.ts +12 -0
  42. package/dist/icons/components/IconBalanceScaleLeft.d.ts +12 -0
  43. package/dist/icons/components/IconBan.d.ts +12 -0
  44. package/dist/icons/components/IconBarsH.d.ts +12 -0
  45. package/dist/icons/components/IconBarsV.d.ts +12 -0
  46. package/dist/icons/components/IconBell.d.ts +12 -0
  47. package/dist/icons/components/IconBirthdayCake.d.ts +12 -0
  48. package/dist/icons/components/IconBold.d.ts +12 -0
  49. package/dist/icons/components/IconBolt.d.ts +12 -0
  50. package/dist/icons/components/IconBook.d.ts +12 -0
  51. package/dist/icons/components/IconBriefcase.d.ts +12 -0
  52. package/dist/icons/components/IconBullseyeArrow.d.ts +12 -0
  53. package/dist/icons/components/IconCalculator.d.ts +12 -0
  54. package/dist/icons/components/IconCalendar.d.ts +12 -0
  55. package/dist/icons/components/IconCalendarAlt.d.ts +12 -0
  56. package/dist/icons/components/IconCalendarCheck.d.ts +12 -0
  57. package/dist/icons/components/IconCalendarDay.d.ts +12 -0
  58. package/dist/icons/components/IconCalendarExclamation.d.ts +12 -0
  59. package/dist/icons/components/IconCalendarStar.d.ts +12 -0
  60. package/dist/icons/components/IconCalendarTomorrow.d.ts +12 -0
  61. package/dist/icons/components/IconCamera.d.ts +12 -0
  62. package/dist/icons/components/IconCameraSlash.d.ts +12 -0
  63. package/dist/icons/components/IconCashRegister.d.ts +12 -0
  64. package/dist/icons/components/IconChartBar.d.ts +12 -0
  65. package/dist/icons/components/IconCheck.d.ts +12 -0
  66. package/dist/icons/components/IconChevronDown.d.ts +12 -0
  67. package/dist/icons/components/IconChevronLeft.d.ts +12 -0
  68. package/dist/icons/components/IconChevronRight.d.ts +12 -0
  69. package/dist/icons/components/IconChevronUp.d.ts +12 -0
  70. package/dist/icons/components/IconClipboardList.d.ts +12 -0
  71. package/dist/icons/components/IconClock.d.ts +12 -0
  72. package/dist/icons/components/IconCog.d.ts +12 -0
  73. package/dist/icons/components/IconComment.d.ts +12 -0
  74. package/dist/icons/components/IconCommentLines.d.ts +12 -0
  75. package/dist/icons/components/IconCopy.d.ts +12 -0
  76. package/dist/icons/components/IconCreditCard.d.ts +12 -0
  77. package/dist/icons/components/IconCreditCardPlus.d.ts +12 -0
  78. package/dist/icons/components/IconDownload.d.ts +12 -0
  79. package/dist/icons/components/IconEdit.d.ts +12 -0
  80. package/dist/icons/components/IconEllipsisV.d.ts +12 -0
  81. package/dist/icons/components/IconEnvelope.d.ts +12 -0
  82. package/dist/icons/components/IconExclaimation.d.ts +12 -0
  83. package/dist/icons/components/IconExclaimationTriangle.d.ts +12 -0
  84. package/dist/icons/components/IconExpand.d.ts +12 -0
  85. package/dist/icons/components/IconExternalLink.d.ts +12 -0
  86. package/dist/icons/components/IconEye.d.ts +12 -0
  87. package/dist/icons/components/IconEyeSlash.d.ts +12 -0
  88. package/dist/icons/components/IconFile.d.ts +12 -0
  89. package/dist/icons/components/IconFilePdf.d.ts +12 -0
  90. package/dist/icons/components/IconFlag.d.ts +12 -0
  91. package/dist/icons/components/IconFourDotsCircle.d.ts +12 -0
  92. package/dist/icons/components/IconFourSquares.d.ts +12 -0
  93. package/dist/icons/components/IconGavel.d.ts +12 -0
  94. package/dist/icons/components/IconGif.d.ts +12 -0
  95. package/dist/icons/components/IconGift.d.ts +12 -0
  96. package/dist/icons/components/IconGrinBeam.d.ts +12 -0
  97. package/dist/icons/components/IconGripVertical.d.ts +12 -0
  98. package/dist/icons/components/IconHandshake.d.ts +12 -0
  99. package/dist/icons/components/IconImage.d.ts +12 -0
  100. package/dist/icons/components/IconInfoCircle.d.ts +12 -0
  101. package/dist/icons/components/IconIslandTropical.d.ts +12 -0
  102. package/dist/icons/components/IconItalic.d.ts +12 -0
  103. package/dist/icons/components/IconLaptopSearch.d.ts +12 -0
  104. package/dist/icons/components/IconLink.d.ts +12 -0
  105. package/dist/icons/components/IconList.d.ts +12 -0
  106. package/dist/icons/components/IconListOI.d.ts +12 -0
  107. package/dist/icons/components/IconLock.d.ts +12 -0
  108. package/dist/icons/components/IconMagicSolid.d.ts +12 -0
  109. package/dist/icons/components/IconMapMarker.d.ts +12 -0
  110. package/dist/icons/components/IconMegaphone.d.ts +12 -0
  111. package/dist/icons/components/IconMinus.d.ts +12 -0
  112. package/dist/icons/components/IconMinusCircle.d.ts +12 -0
  113. package/dist/icons/components/IconMoneyBill.d.ts +12 -0
  114. package/dist/icons/components/IconNotesMedical.d.ts +12 -0
  115. package/dist/icons/components/IconOvertime.d.ts +12 -0
  116. package/dist/icons/components/IconPaperPlane.d.ts +12 -0
  117. package/dist/icons/components/IconPaperPlaneClock.d.ts +12 -0
  118. package/dist/icons/components/IconPaperclip.d.ts +12 -0
  119. package/dist/icons/components/IconPencil.d.ts +12 -0
  120. package/dist/icons/components/IconPercentage.d.ts +12 -0
  121. package/dist/icons/components/IconPhone.d.ts +12 -0
  122. package/dist/icons/components/IconPlug.d.ts +12 -0
  123. package/dist/icons/components/IconPlus.d.ts +12 -0
  124. package/dist/icons/components/IconPrint.d.ts +12 -0
  125. package/dist/icons/components/IconQuestionCircle.d.ts +12 -0
  126. package/dist/icons/components/IconRepeat.d.ts +12 -0
  127. package/dist/icons/components/IconReply.d.ts +12 -0
  128. package/dist/icons/components/IconSearch.d.ts +12 -0
  129. package/dist/icons/components/IconSignOut.d.ts +12 -0
  130. package/dist/icons/components/IconSitemap.d.ts +12 -0
  131. package/dist/icons/components/IconSlidersH.d.ts +12 -0
  132. package/dist/icons/components/IconSort.d.ts +12 -0
  133. package/dist/icons/components/IconStar.d.ts +12 -0
  134. package/dist/icons/components/IconStarSolid.d.ts +12 -0
  135. package/dist/icons/components/IconStickyNoteLines.d.ts +12 -0
  136. package/dist/icons/components/IconStopwatch.d.ts +12 -0
  137. package/dist/icons/components/IconStrikethrough.d.ts +12 -0
  138. package/dist/icons/components/IconSync.d.ts +12 -0
  139. package/dist/icons/components/IconSyncExclaimation.d.ts +12 -0
  140. package/dist/icons/components/IconTachometer.d.ts +12 -0
  141. package/dist/icons/components/IconTimes.d.ts +12 -0
  142. package/dist/icons/components/IconTimesOctagon.d.ts +12 -0
  143. package/dist/icons/components/IconTrash.d.ts +12 -0
  144. package/dist/icons/components/IconUnderline.d.ts +12 -0
  145. package/dist/icons/components/IconUndo.d.ts +12 -0
  146. package/dist/icons/components/IconUniversity.d.ts +12 -0
  147. package/dist/icons/components/IconUserComputer.d.ts +12 -0
  148. package/dist/icons/components/IconUserFriends.d.ts +12 -0
  149. package/dist/icons/components/IconUserLight.d.ts +12 -0
  150. package/dist/icons/components/IconUserPlus.d.ts +12 -0
  151. package/dist/icons/components/IconUserSlash.d.ts +12 -0
  152. package/dist/icons/components/IconUserSolid.d.ts +12 -0
  153. package/dist/icons/components/IconUserTag.d.ts +12 -0
  154. package/dist/icons/components/IconUserTie.d.ts +12 -0
  155. package/dist/icons/components/IconUsers.d.ts +12 -0
  156. package/dist/icons/components/IconVideo.d.ts +12 -0
  157. package/dist/icons/components/IconVolume.d.ts +12 -0
  158. package/dist/icons/components/IconVolumeMute.d.ts +12 -0
  159. package/dist/icons/components/IconWrench.d.ts +12 -0
  160. package/dist/icons/components/index.d.ts +126 -0
  161. package/dist/icons/icon-typescript-template.d.ts +9 -0
  162. package/dist/index.css +3 -3
  163. package/dist/index.js +4 -2
  164. package/dist/index.js.map +1 -1
  165. package/dist/index.modern.js +4 -2
  166. package/dist/index.modern.js.map +1 -1
  167. package/dist/media/Chip/Chip.d.ts +11 -0
  168. package/dist/media/Chip/constants.d.ts +8 -0
  169. package/dist/media/Chip/index.d.ts +1 -0
  170. package/dist/media/Chip/types.d.ts +1 -0
  171. package/dist/media/Pill/Pill.d.ts +10 -0
  172. package/dist/media/Pill/constants.d.ts +7 -0
  173. package/dist/media/Pill/index.d.ts +1 -0
  174. package/dist/media/Pill/types.d.ts +1 -0
  175. package/dist/overlay/Calendar/Calendar.d.ts +24 -0
  176. package/dist/overlay/Calendar/constants.d.ts +8 -0
  177. package/dist/overlay/Calendar/domain.d.ts +7 -0
  178. package/dist/overlay/Calendar/index.d.ts +1 -0
  179. package/dist/overlay/Calendar/types.d.ts +2 -0
  180. package/dist/overlay/Modal/ModalBody/useScrollShadow.d.ts +7 -0
  181. 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,8 @@
1
+ export declare const CHIP_THEME: {
2
+ MARKETING: "marketing";
3
+ SUCCESS: "success";
4
+ UPSELL: "upsell";
5
+ WARNING: "warning";
6
+ INFO: "info";
7
+ DANGER: "danger";
8
+ };
@@ -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,7 @@
1
+ export declare const PILL_THEME: {
2
+ INFO: "info";
3
+ SUCCESS: "success";
4
+ DANGER: "danger";
5
+ WARNING: "warning";
6
+ DEFAULT: "default";
7
+ };
@@ -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,8 @@
1
+ export declare const CALENDAR_MODE: {
2
+ DAY: "day";
3
+ WEEK: "week";
4
+ };
5
+ export declare const CALENDAR_PLACEMENT: {
6
+ BOTTOM: "bottom";
7
+ TOP: "top";
8
+ };
@@ -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';
@@ -0,0 +1,2 @@
1
+ export declare type CalendarPlacement = 'top' | 'bottom';
2
+ export declare type CalendarMode = 'day' | 'week';
@@ -0,0 +1,7 @@
1
+ import { RefType } from '../../../utils/types';
2
+ declare type UseScrollShadow = {
3
+ ref: RefType<HTMLDivElement>;
4
+ showScrollShadow: boolean;
5
+ };
6
+ export declare const useScrollShadow: () => UseScrollShadow;
7
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7shifts/sous-chef",
3
- "version": "1.5.7",
3
+ "version": "1.5.9",
4
4
  "description": "7shifts component library",
5
5
  "author": "7shifts",
6
6
  "license": "MIT",