@7shifts/sous-chef 4.7.1 → 4.7.2

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 (65) hide show
  1. package/dist/empty_states/EmptyState/EmptyState.d.ts +3 -0
  2. package/dist/empty_states/Paywall/Paywall.d.ts +3 -0
  3. package/dist/feedback/CircularProgress/CircularProgress.d.ts +3 -0
  4. package/dist/feedback/InlineBanner/InlineBanner.d.ts +3 -0
  5. package/dist/feedback/MicroBanner/MicroBanner.d.ts +3 -0
  6. package/dist/feedback/PersistentBanner/PersistentBanner.d.ts +3 -0
  7. package/dist/feedback/ProgressBar/ProgressBar.d.ts +3 -0
  8. package/dist/feedback/Skeleton/Skeleton.d.ts +3 -0
  9. package/dist/forms/ColorField/ColorField.d.ts +3 -0
  10. package/dist/forms/FormFeedback/FormFeedback.d.ts +3 -0
  11. package/dist/forms/FormFooter/FormFooter.d.ts +3 -0
  12. package/dist/forms/FormSection/FormSection.d.ts +3 -0
  13. package/dist/forms/PhoneField/PhoneField.d.ts +3 -0
  14. package/dist/forms/TextField/TextField.d.ts +3 -1
  15. package/dist/forms/WeekSelectField/WeekSelectField.d.ts +3 -0
  16. package/dist/index.css +1 -1
  17. package/dist/index.css.map +1 -1
  18. package/dist/index.js +99 -2
  19. package/dist/index.js.map +1 -1
  20. package/dist/index.modern.js +99 -2
  21. package/dist/index.modern.js.map +1 -1
  22. package/dist/layout/Card/Card.d.ts +3 -0
  23. package/dist/layout/Page/Page.d.ts +3 -0
  24. package/dist/lists/Accordion/Accordion.d.ts +3 -0
  25. package/dist/lists/ActionList/ActionList.d.ts +3 -0
  26. package/dist/lists/DataTable/DataTable.d.ts +3 -0
  27. package/dist/media/Avatar/Avatar.d.ts +3 -0
  28. package/dist/media/Badge/Badge.d.ts +4 -1
  29. package/dist/media/Chip/Chip.d.ts +3 -0
  30. package/dist/media/Pill/Pill.d.ts +3 -0
  31. package/dist/navigation/Breadcrumbs/Breadcrumbs.d.ts +3 -0
  32. package/dist/navigation/PrimaryNav/PrimaryNav.d.ts +3 -0
  33. package/dist/navigation/Tabs/Tabs.d.ts +3 -0
  34. package/dist/overlay/Calendar/Calendar.d.ts +3 -1
  35. package/dist/overlay/Dropdown/Dropdown.d.ts +3 -0
  36. package/dist/overlay/HintModal/HintModal.d.ts +3 -0
  37. package/dist/overlay/Modal/Modal.d.ts +3 -0
  38. package/dist/overlay/Popover/Popover.d.ts +3 -0
  39. package/dist/overlay/Tooltip/Tooltip.d.ts +3 -0
  40. package/llms-instructions/guidelines/AsyncSelectField.guidelines.md +20 -0
  41. package/llms-instructions/guidelines/Avatar.guidelines.md +1 -0
  42. package/llms-instructions/guidelines/Breadcrumbs.guidelines.md +1 -0
  43. package/llms-instructions/guidelines/CheckboxField.guidelines.md +20 -0
  44. package/llms-instructions/guidelines/ColorField.guidelines.md +18 -0
  45. package/llms-instructions/guidelines/CurrencyField.guidelines.md +28 -0
  46. package/llms-instructions/guidelines/DateField.guidelines.md +22 -0
  47. package/llms-instructions/guidelines/DateRangeField.guidelines.md +21 -0
  48. package/llms-instructions/guidelines/MultiSelectField.guidelines.md +22 -0
  49. package/llms-instructions/guidelines/NumberField.guidelines.md +29 -0
  50. package/llms-instructions/guidelines/PaginationControls.guidelines.md +1 -0
  51. package/llms-instructions/guidelines/PasswordField.guidelines.md +20 -0
  52. package/llms-instructions/guidelines/PercentageField.guidelines.md +22 -0
  53. package/llms-instructions/guidelines/PhoneField.guidelines.md +23 -0
  54. package/llms-instructions/guidelines/PillSelectField.guidelines.md +22 -0
  55. package/llms-instructions/guidelines/RadioGroupField.guidelines.md +20 -0
  56. package/llms-instructions/guidelines/SelectField.guidelines.md +24 -0
  57. package/llms-instructions/guidelines/Tabs.guidelines.md +4 -0
  58. package/llms-instructions/guidelines/TextAreaField.guidelines.md +25 -0
  59. package/llms-instructions/guidelines/TextField.guidelines.md +22 -0
  60. package/llms-instructions/guidelines/TimeField.guidelines.md +23 -0
  61. package/llms-instructions/guidelines/TimeRangeField.guidelines.md +19 -0
  62. package/llms-instructions/guidelines/WeekField.guidelines.md +20 -0
  63. package/llms-instructions/guidelines/WeekSelectField.guidelines.md +1 -0
  64. package/llms-instructions/llms-components.md +80 -0
  65. package/package.json +1 -1
@@ -919,6 +919,9 @@ const TooltipElement = ({
919
919
  ref: containerRef
920
920
  }), children, overlayElement);
921
921
  };
922
+ /**
923
+ * Tooltip is a small, non-interactive label that appears on hover to provide a brief explanation. It is the lightest overlay in the system — low interruption, no interaction, disappears when the user moves away. Its job is to add micro-clarity: explaining an icon, defining an abbreviation, or surfacing supplementary detail without cluttering the UI.
924
+ */
922
925
  const Tooltip = forwardRef(TooltipElement);
923
926
  const isTooltipCompatible = element => {
924
927
  return React__default.isValidElement(element) && typeof element.type === 'string';
@@ -11147,6 +11150,9 @@ const TimeFieldDropdownElement = (_ref, ref) => {
11147
11150
  };
11148
11151
  const TimeFieldDropdownTrigger = forwardRef(TimeFieldDropdownElement);
11149
11152
 
11153
+ /**
11154
+ * Dropdown is an overlay that reveals a list of actions or options when a user clicks or hovers a trigger element. It is the go-to pattern for contextual menus — things like "Edit, Duplicate, Delete" on a table row, or a set of filter options behind a button.
11155
+ */
11150
11156
  const Dropdown = ({
11151
11157
  trigger,
11152
11158
  triggersOn: _triggersOn = DROPDOWN_TRIGGER.CLICK,
@@ -11906,6 +11912,9 @@ const useCardContext = () => {
11906
11912
  };
11907
11913
 
11908
11914
  const _excluded$bl = ["children", "onClick", "onClose", "isSelected", "disabled", "actions", "testId"];
11915
+ /**
11916
+ * Card is a versatile container that groups related content or options into a visually distinct surface. It's used to introduce visual separation between pieces of content without requiring a full page boundary. It is used to perceptually group content into a meaningful whole. Cards are simple container components that can hold whatever content the designer sees fit.
11917
+ */
11909
11918
  const Card = _ref => {
11910
11919
  let {
11911
11920
  children,
@@ -12013,6 +12022,9 @@ const CalloutCard = ({
12013
12022
  }, React__default.createElement(IconTimes, null)))));
12014
12023
  };
12015
12024
 
12025
+ /**
12026
+ * Breadcrumbs show the user where they are in the app's hierarchy and let them navigate back up to a parent page. They appear at the top of a page when that page is reached by drilling into a deeper level of the product.
12027
+ */
12016
12028
  const Breadcrumbs = ({
12017
12029
  children
12018
12030
  }) => {
@@ -12081,6 +12093,9 @@ const PAGE_SIZES = {
12081
12093
  RESTRICTED: 'restricted'
12082
12094
  };
12083
12095
 
12096
+ /**
12097
+ * Page component is used to control the elements within a page like breadcrumbs, title, subtitle, actions, banner, and filter bar.
12098
+ */
12084
12099
  const Page = ({
12085
12100
  children,
12086
12101
  breadcrumbs,
@@ -12171,6 +12186,9 @@ const useModalContext = () => {
12171
12186
  };
12172
12187
 
12173
12188
  const _excluded$bk = ["children", "header", "subHeader", "onClose", "loading", "zIndex", "rootElementId", "width", "height", "maxWidth", "shouldReturnFocusAfterClose", "testId"];
12189
+ /**
12190
+ * Modal is a focused overlay that interrupts the current experience and demands the user's attention. It blocks all interaction with the rest of the page until the user responds — making it best suited for decisions, confirmations, and self-contained flows where that level of focus is warranted.
12191
+ */
12174
12192
  const Modal = _ref => {
12175
12193
  let {
12176
12194
  children,
@@ -12777,7 +12795,9 @@ const StarShape = ({
12777
12795
  strokeWidth: "2"
12778
12796
  }));
12779
12797
 
12780
- /**Calendar overlay component*/
12798
+ /**
12799
+ * Calendar is a date picker component that allows users to select a single day or a week. Used when you want to trigger it from a custom element such a button.
12800
+ */
12781
12801
  const Calendar = ({
12782
12802
  mode: _mode = CALENDAR_MODE.DAY,
12783
12803
  position: _position = CALENDAR_PLACEMENT.BOTTOM,
@@ -13030,6 +13050,9 @@ const useLocalStorage = (key, initialValue) => {
13030
13050
  var styles$17 = {"hint-modal":"_NwD6V","hint-modal--after-open":"_4ofZb","hint-modal--before-close":"_hGoMD","hint-modal__overlay":"_iK5zl","hint-modal__image":"_V9hLa","hint-modal__body":"_oOqUg","hint-modal__close-button":"_5zcBK"};
13031
13051
 
13032
13052
  const _excluded$bi = ["header", "children", "mediaUrl", "onClose", "modalId", "primaryButton", "secondaryButton", "testId", "onSetDoNotShowAgainStatus"];
13053
+ /**
13054
+ * Hint Modal is a lightweight modal used to surface tips, guidance, or onboarding callouts to users the first time they encounter a feature or page. Unlike a regular Modal, it is not triggered by a user action — it appears automatically when the user navigates somewhere that warrants a guided introduction. It includes a "Don't show this again" option so users can dismiss it permanently once they've absorbed the information.
13055
+ */
13033
13056
  const HintModal = _ref => {
13034
13057
  let {
13035
13058
  header,
@@ -13126,6 +13149,9 @@ const HintModal = _ref => {
13126
13149
  }, secondaryButtonUpdated, primaryButtonUpdated)))));
13127
13150
  };
13128
13151
 
13152
+ /**
13153
+ * Popover is a contextual overlay "widget" that appears anchored to a trigger element and can contain rich, interactive content. It sits between a `Tooltip` and a `Modal` in terms of weight — less disruptive than a modal, but capable of real interaction unlike a tooltip. Use it when you need the user to take action in context, without pulling them away from what they were doing.
13154
+ */
13129
13155
  const Popover = props => {
13130
13156
  /**
13131
13157
  * We are using the Dropdown component to implement the Popover component because they share a lot of the same functionality and structure.
@@ -13165,6 +13191,9 @@ const BadgeElement = (_ref, forwardedRef) => {
13165
13191
  "data-testid": testId
13166
13192
  }, otherProps), children));
13167
13193
  };
13194
+ /**
13195
+ * Badge is a small circular indicator used to draw attention to something associated with another element — a count, a status, or a quick action.
13196
+ */
13168
13197
  const Badge = forwardRef(BadgeElement);
13169
13198
 
13170
13199
  const MenuItem = ({
@@ -13757,6 +13786,9 @@ const InlineBannerIcon = ({
13757
13786
  };
13758
13787
 
13759
13788
  const _excluded$bg = ["children", "theme", "icon", "title", "onClose", "caption", "primaryButton", "secondaryButton", "testId"];
13789
+ /**
13790
+ * InlineBanner displays a contextual message inline within a page or section.
13791
+ */
13760
13792
  const InlineBanner = _ref => {
13761
13793
  let {
13762
13794
  children,
@@ -13877,6 +13909,9 @@ const ButtonCTA = ({
13877
13909
  };
13878
13910
 
13879
13911
  const _excluded$bf = ["children", "theme", "icon", "hideIcon", "title", "primaryButton", "testId"];
13912
+ /**
13913
+ * MicroBanner is a compact notification component for tight spaces (like top bars).
13914
+ */
13880
13915
  const MicroBanner = _ref => {
13881
13916
  let {
13882
13917
  children,
@@ -13930,6 +13965,9 @@ const PERSISTENT_BANNER_THEME = {
13930
13965
 
13931
13966
  var styles$$ = {"persistent-banner":"_FsCJQ","persistent-banner--info":"_zt-xK","persistent-banner--danger":"_rmUys","persistent-banner--upsell":"_UGrRR","persistent-banner--warning":"_9eFhn","persistent-banner--success":"_hU34n"};
13932
13967
 
13968
+ /**
13969
+ * PersistentBanner displays a full-width message above the main navigation.
13970
+ */
13933
13971
  const PersistentBanner = ({
13934
13972
  theme: _theme = PERSISTENT_BANNER_THEME.INFO,
13935
13973
  children,
@@ -14029,6 +14067,9 @@ const useProgress = (progress, maxValue, getMetric = getProgressMetric) => {
14029
14067
 
14030
14068
  var styles$_ = {"circular-progress":"_UI0Fo","circular-progress__label":"_6PNwZ","circular-progress__track":"_alBLB","circular-progress__indicator":"_VADa6"};
14031
14069
 
14070
+ /**
14071
+ * CircularProgress displays a circular track that fills as a count advances toward a total.
14072
+ */
14032
14073
  const CircularProgress = ({
14033
14074
  progress,
14034
14075
  maxValue: _maxValue = 100,
@@ -14066,6 +14107,9 @@ const CircularProgress = ({
14066
14107
 
14067
14108
  var styles$Z = {"progress-bar":"_fWvQF","progress-bar__indicator":"_vd0xc","progress-bar__indicator--complete":"_D9yNp","progress-bar__steps":"_8kdeO"};
14068
14109
 
14110
+ /**
14111
+ * ProgressBar shows a horizontal bar that fills as a task advances.
14112
+ */
14069
14113
  const ProgressBar = ({
14070
14114
  progress,
14071
14115
  maxValue,
@@ -14108,6 +14152,9 @@ const SKELETON_COMPONENT = {
14108
14152
  };
14109
14153
 
14110
14154
  const _excluded$be = ["as", "testId", "width", "height"];
14155
+ /**
14156
+ * Skeleton renders an animated placeholder that mirrors the shape of content while it is loading.
14157
+ */
14111
14158
  const Skeleton = _ref => {
14112
14159
  let {
14113
14160
  as,
@@ -14751,6 +14798,9 @@ const DataTableEmptyState = ({
14751
14798
  };
14752
14799
 
14753
14800
  const _excluded$bc = ["items", "columns", "itemComponent", "maxHeight", "hasPrevious", "hasNext", "onPreviousClick", "onNextClick", "onSort", "isLoading", "showActionMenu", "footerComponent", "hasVerticalBorders", "testId", "skeletonRowLayout", "stickyColumns", "emptyState"];
14801
+ /**
14802
+ * DataTable displays structured data in rows and columns. Use it when data is inherently tabular — each row represents a record and each column represents an attribute of that record.
14803
+ */
14754
14804
  const DataTable = _ref => {
14755
14805
  let {
14756
14806
  items,
@@ -14955,6 +15005,9 @@ const AccordionItem = props => {
14955
15005
  var styles$N = {"accordion":"_058SP"};
14956
15006
 
14957
15007
  const _excluded$bb = ["items", "onExpand", "defaultOpenId"];
15008
+ /**
15009
+ * Accordion groups related content into a list of collapsible sections. Only one section can be open at a time, keeping the interface compact while still making all content accessible.
15010
+ */
14958
15011
  const Accordion = _ref => {
14959
15012
  let {
14960
15013
  items,
@@ -14996,6 +15049,9 @@ const Accordion = _ref => {
14996
15049
 
14997
15050
  var styles$M = {"action-list":"_pWke5","action-list__title":"_p8I7K","action-list__empty-state":"_l-tFB"};
14998
15051
 
15052
+ /**
15053
+ * A list of tasks or items that require user attention and can be completed with an action. Each item should have at least one clear action for the user to take.
15054
+ */
14999
15055
  const ActionList = ({
15000
15056
  children,
15001
15057
  testId,
@@ -16084,6 +16140,9 @@ var styles$C = {"form--standard-size":"_8-Ykj"};
16084
16140
 
16085
16141
  var styles$B = {"form-section":"_3uYIj","form-section__title":"_2WdOf","form-section__subtitle":"_zybxx","form-section--no-margin":"_xT-U1"};
16086
16142
 
16143
+ /**
16144
+ * FormSection is a component that groups related form fields together, optionally with a title and subtitle. It can also be rendered as a card for visual separation.
16145
+ */
16087
16146
  const FormSection = ({
16088
16147
  children,
16089
16148
  title,
@@ -16144,6 +16203,9 @@ const FormFooterActions = ({
16144
16203
  }, primaryButton, secondaryButton), tertiaryButton);
16145
16204
  };
16146
16205
 
16206
+ /**
16207
+ * FormFooter is meant to be used as the footer of a form, and it contains actions (primary, secondary, tertiary).
16208
+ */
16147
16209
  const FormFooter = ({
16148
16210
  children,
16149
16211
  actions,
@@ -16372,7 +16434,9 @@ const TextFieldElement = (_ref, ref) => {
16372
16434
  suffix: suffix
16373
16435
  }, React__default.createElement("input", _extends({}, inputProps))));
16374
16436
  };
16375
- /** A basic open input field used to get text from the user, with options to add a prefix or suffix element if necessary. Accepts any characters, so do not use it if you want to limit the format of the input to numbers only. */
16437
+ /**
16438
+ * TextField is a basic open input field used to get text from the user, with options to add a prefix or suffix element if necessary. Accepts any characters, so do not use it if you want to limit the format of the input to numbers only.
16439
+ */
16376
16440
  const TextField = forwardRef(TextFieldElement);
16377
16441
 
16378
16442
  var styles$x = {"pill-select-field":"_Yti6k","pill-select-field__creating-input":"_dw-VP","pill-select-field__custom-input":"_JXakU","pill-select-field__add-new-input":"_MsKVV","pill-select-field__creating-custom-input":"_ZxEwG","pill-select-field__removable-icon":"_Odw1V"};
@@ -16578,6 +16642,9 @@ const PillSelectField = ({
16578
16642
  var styles$w = {"week-select-field":"_IYHYX","week-select-field__day":"_JnbPv","week-select-field__day-pill":"_9GwLj","week-select-field__day-abbr":"_WcKdi","week-select-field__day-num":"_MQ3xL"};
16579
16643
 
16580
16644
  const toKey = d => `${d.getFullYear()}-${d.getMonth()}-${d.getDate()}`;
16645
+ /**
16646
+ * WeekSelectField is a form field that allows the user to select one or more days from a week, displayed as pill-shaped buttons.
16647
+ */
16581
16648
  const WeekSelectField = ({
16582
16649
  name,
16583
16650
  id: inputId,
@@ -18373,6 +18440,9 @@ const PercentageElement = (_ref, ref) => {
18373
18440
  */
18374
18441
  const PercentageField = forwardRef(PercentageElement);
18375
18442
 
18443
+ /**
18444
+ * FormFeedback displays contextual feedback for a form field, such as an error message or validation message.
18445
+ */
18376
18446
  const FormFeedback = ({
18377
18447
  children,
18378
18448
  fieldId,
@@ -19353,6 +19423,9 @@ const CountrySelector = ({
19353
19423
  };
19354
19424
 
19355
19425
  const _excluded$a_ = ["disabledCountry", "priorityCountries"];
19426
+ /**
19427
+ * PhoneField is a text field that allows the user to input a phone number, with an optional country selector for international numbers.
19428
+ */
19356
19429
  const PhoneField = _ref => {
19357
19430
  let {
19358
19431
  disabledCountry = false,
@@ -19916,6 +19989,9 @@ const ColorFieldElement = (props, ref) => {
19916
19989
  allowCustomColor: props.allowCustomColor
19917
19990
  }));
19918
19991
  };
19992
+ /**
19993
+ * ColorField is a text field that allows the user to select a color from a palette of sequential colors or a custom color picker.
19994
+ */
19919
19995
  const ColorField = forwardRef(ColorFieldElement);
19920
19996
 
19921
19997
  /**
@@ -20120,6 +20196,9 @@ function useIsVisibleInViewPort() {
20120
20196
  };
20121
20197
  }
20122
20198
 
20199
+ /**
20200
+ * Avatar represents a person or entity — such as a company, location, department, or role — with a visual identifier. It appears wherever a person or entity's identity needs to be communicated at a glance.
20201
+ */
20123
20202
  const Avatar = ({
20124
20203
  children,
20125
20204
  color: _color = COLORS['surface-on-color-subtle'],
@@ -20175,6 +20254,9 @@ const CHIP_THEME = {
20175
20254
 
20176
20255
  var styles$e = {"chip":"_Cg5Nf","chip__children":"_e3zFF","chip--marketing":"_b60R5","chip--success":"_ItVyo","chip--upsell":"_iUCAH","chip--warning":"_RbXoR","chip--info":"_NiP9z","chip--danger":"_2ltep","chip--ai":"_1ZhCH"};
20177
20256
 
20257
+ /**
20258
+ * Chip is a compact label used to communicate status about a nearby element — things like feature availability, product tier, or release stage. It is visually similar to Pill but serves a distinct purpose: where Pill communicates the status of data or records, Chip communicates the status of the product or interface itself.
20259
+ */
20178
20260
  const Chip = ({
20179
20261
  children,
20180
20262
  theme: _theme = CHIP_THEME.MARKETING,
@@ -20251,6 +20333,9 @@ const PillElement = (_ref, forwardedRef) => {
20251
20333
  className: styles$d['pill__children']
20252
20334
  }, formattedChildren));
20253
20335
  };
20336
+ /**
20337
+ * Pill is a compact status label that communicates the current state of a data record or object. It appears alongside the thing it describes and gives users a quick, at-a-glance read on what state something is in — approved, pending, active, declined, and so on.
20338
+ */
20254
20339
  const Pill = forwardRef(PillElement);
20255
20340
 
20256
20341
  const getIllustrationStyles = (style = {}, theme = 'light', size = '140px') => _extends({
@@ -64772,6 +64857,9 @@ const PrimaryNavHeader = ({
64772
64857
 
64773
64858
  var styles$b = {"primary-nav":"_Smo46","primary-nav--dark":"_-6GAa","primary-nav--collapsed":"_w-QAC","primary-nav__content":"_UCA59","primary-nav--expanded":"_B7Nse"};
64774
64859
 
64860
+ /**
64861
+ * PrimaryNav is a vertical navigation component that provides a consistent way for users to navigate through the main sections of an application.
64862
+ */
64775
64863
  const PrimaryNav = ({
64776
64864
  children,
64777
64865
  isExpanded,
@@ -65090,6 +65178,9 @@ function TabsContextProvider({
65090
65178
  }, children);
65091
65179
  }
65092
65180
 
65181
+ /**
65182
+ * Tabs organize content into sections within a single view, letting users switch between them without leaving the page.
65183
+ */
65093
65184
  const Tabs = ({
65094
65185
  children,
65095
65186
  value,
@@ -65350,6 +65441,9 @@ const EmptyStateContainer = ({
65350
65441
 
65351
65442
  var styles$1 = {"paywall--as-card":"_Eod9y","paywall--as-card--centered":"_dpIXc"};
65352
65443
 
65444
+ /**
65445
+ * Paywall is a specialised empty state for content that is locked behind a paid plan or add-on the user does not currently have.
65446
+ */
65353
65447
  const Paywall = props => {
65354
65448
  const {
65355
65449
  header,
@@ -65388,6 +65482,9 @@ const Paywall = props => {
65388
65482
 
65389
65483
  var styles = {"empty-state--as-card":"_KzIqD","empty-state--as-card--centered":"_3TdW7"};
65390
65484
 
65485
+ /**
65486
+ * EmptyState component renders a message or illustration when there is no data to display. Most commonly seen in first time interactions with a product or page, but also when data’s been deleted or unavailable.
65487
+ */
65391
65488
  const EmptyState = props => {
65392
65489
  const {
65393
65490
  header,