@7shifts/sous-chef 4.1.0 → 4.2.0-beta-20260506174131

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 (37) hide show
  1. package/dist/assets/SevenShiftsLogo/SevenShiftsLogo.d.ts +3 -0
  2. package/dist/assets/SevenShiftsLogo/index.d.ts +1 -0
  3. package/dist/assets/SevenShiftsShortLogo/SevenShiftsShortLogo.d.ts +3 -0
  4. package/dist/assets/SevenShiftsShortLogo/index.d.ts +1 -0
  5. package/dist/forms/PhoneField/CountrySelector/CountrySelector.d.ts +2 -1
  6. package/dist/forms/PhoneField/PhoneField.d.ts +2 -1
  7. package/dist/foundation/tokens/color/color-constants.d.ts +1 -0
  8. package/dist/foundation/tokens/color/color-types.d.ts +1 -1
  9. package/dist/hooks/useScrollDetector.d.ts +5 -0
  10. package/dist/index.css +236 -1
  11. package/dist/index.css.map +1 -1
  12. package/dist/index.js +2554 -2158
  13. package/dist/index.js.map +1 -1
  14. package/dist/index.modern.js +2744 -2347
  15. package/dist/index.modern.js.map +1 -1
  16. package/dist/navigation/PrimaryNav/PrimaryNav.d.ts +9 -0
  17. package/dist/navigation/PrimaryNav/PrimaryNavContext.d.ts +16 -0
  18. package/dist/navigation/PrimaryNav/PrimaryNavHeader/PrimaryNavHeader.d.ts +6 -0
  19. package/dist/navigation/PrimaryNav/PrimaryNavHeader/index.d.ts +1 -0
  20. package/dist/navigation/PrimaryNav/index.d.ts +1 -0
  21. package/dist/navigation/PrimaryNavDivider/PrimaryNavDivider.d.ts +3 -0
  22. package/dist/navigation/PrimaryNavDivider/index.d.ts +1 -0
  23. package/dist/navigation/PrimaryNavFooter/PrimaryNavFooter.d.ts +6 -0
  24. package/dist/navigation/PrimaryNavFooter/index.d.ts +1 -0
  25. package/dist/navigation/PrimaryNavItem/PrimaryNavItem.d.ts +12 -0
  26. package/dist/navigation/PrimaryNavItem/PrimaryNavItemBadge/PrimaryNavItemBadge.d.ts +9 -0
  27. package/dist/navigation/PrimaryNavItem/PrimaryNavItemBadge/index.d.ts +1 -0
  28. package/dist/navigation/PrimaryNavItem/index.d.ts +1 -0
  29. package/dist/navigation/PrimaryNavSubItem/PrimaryNavSubItem.d.ts +11 -0
  30. package/dist/navigation/PrimaryNavSubItem/index.d.ts +1 -0
  31. package/dist/navigation/index.d.ts +6 -1
  32. package/llms-instructions/llms-components.md +425 -0
  33. package/llms-instructions/llms-composing-components.md +502 -0
  34. package/llms-instructions/llms-icons-and-illustrations.md +1039 -0
  35. package/llms-instructions/llms-tokens.md +397 -0
  36. package/llms-instructions/llms.md +78 -0
  37. package/package.json +4 -3
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SevenShiftsLogo: () => React.JSX.Element;
3
+ export default SevenShiftsLogo;
@@ -0,0 +1 @@
1
+ export { default } from './SevenShiftsLogo';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SevenShiftsShortLogo: () => React.JSX.Element;
3
+ export default SevenShiftsShortLogo;
@@ -0,0 +1 @@
1
+ export { default } from './SevenShiftsShortLogo';
@@ -5,6 +5,7 @@ type Props = {
5
5
  onChange: (country: CountryCode) => void;
6
6
  hasError: boolean;
7
7
  disabled?: boolean;
8
+ priorityCountries?: CountryCode[];
8
9
  };
9
- declare const CountrySelector: ({ country, onChange, hasError, disabled }: Props) => React.JSX.Element;
10
+ declare const CountrySelector: ({ country, onChange, hasError, disabled, priorityCountries }: Props) => React.JSX.Element;
10
11
  export default CountrySelector;
@@ -17,6 +17,7 @@ export type Props = {
17
17
  testId?: string;
18
18
  disabledCountry?: boolean;
19
19
  defaultCountry?: CountryCode;
20
+ priorityCountries?: CountryCode[];
20
21
  };
21
- declare const PhoneField: ({ disabledCountry, ...props }: Props) => React.JSX.Element;
22
+ declare const PhoneField: ({ disabledCountry, priorityCountries, ...props }: Props) => React.JSX.Element;
22
23
  export default PhoneField;
@@ -189,4 +189,5 @@ export declare const COLORS: {
189
189
  readonly 'brand-neutrals-chefscoat-dynamic': "var(--color-brand-neutrals-chefscoat-dynamic)";
190
190
  readonly 'on-graphic-black': "var(--color-on-graphic-black)";
191
191
  readonly 'on-graphic-white': "var(--color-on-graphic-white)";
192
+ readonly 'canvas-background-color': "var(--color-canvas-background-color)";
192
193
  };
@@ -1 +1 @@
1
- export type Color = 'white' | 'black' | 'tangerine-100' | 'tangerine-200' | 'tangerine-300' | 'tangerine-400' | 'tangerine-500' | 'tangerine-600' | 'eggplant-100' | 'eggplant-200' | 'eggplant-300' | 'eggplant-400' | 'eggplant-500' | 'eggplant-600' | 'mint-100' | 'mint-200' | 'mint-300' | 'mint-400' | 'mint-500' | 'mint-600' | 'radish-100' | 'radish-200' | 'radish-300' | 'radish-400' | 'radish-500' | 'radish-600' | 'blueberry-100' | 'blueberry-200' | 'blueberry-300' | 'blueberry-400' | 'blueberry-500' | 'blueberry-600' | 'banana-100' | 'banana-200' | 'banana-300' | 'banana-400' | 'banana-500' | 'banana-600' | 'grey-100' | 'grey-200' | 'grey-300' | 'grey-400' | 'grey-500' | 'grey-600' | 'oat-100' | 'oat-200' | 'oat-300' | 'oat-400' | 'oat-500' | 'oat-600' | 'lime-100' | 'lime-200' | 'lime-300' | 'lime-400' | 'lime-500' | 'lime-600' | 'blackberry-100' | 'blackberry-200' | 'blackberry-300' | 'blackberry-400' | 'blackberry-500' | 'blackberry-600' | 'seq-1' | 'seq-2' | 'seq-3' | 'seq-4' | 'seq-5' | 'seq-6' | 'seq-7' | 'seq-8' | 'seq-9' | 'seq-10' | 'seq-11' | 'seq-12' | 'seq-13' | 'seq-14' | 'seq-15' | 'seq-16' | 'seq-17' | 'seq-18' | 'seq-19' | 'seq-20' | 'neutral-color' | 'neutral-on-color' | 'neutral-container' | 'neutral-on-container' | 'neutral-container-variant' | 'neutral-on-container-variant' | 'neutral-black-transparent-05' | 'neutral-black-transparent-10' | 'neutral-black-transparent-15' | 'neutral-black-transparent-20' | 'neutral-black-transparent-30' | 'neutral-black-transparent-40' | 'neutral-black-transparent-50' | 'neutral-black-transparent-60' | 'neutral-black-transparent-70' | 'neutral-black-transparent-80' | 'neutral-black-transparent-90' | 'neutral-white-transparent-05' | 'neutral-white-transparent-10' | 'neutral-white-transparent-15' | 'neutral-white-transparent-20' | 'neutral-white-transparent-30' | 'neutral-white-transparent-40' | 'neutral-white-transparent-50' | 'neutral-white-transparent-60' | 'neutral-white-transparent-70' | 'neutral-white-transparent-80' | 'neutral-white-transparent-90' | 'surface-color-overlay' | 'surface-color-dim' | 'surface-color' | 'surface-on-color-disabled' | 'surface-on-color-subtle' | 'surface-on-color' | 'surface-on-color-bold' | 'surface-container' | 'surface-container-high' | 'surface-container-highest' | 'surface-container-disabled' | 'surface-container-disabled-variant' | 'surface-on-container-disabled' | 'surface-inverse' | 'surface-on-inverse' | 'surface-on-inverse-disabled' | 'outline' | 'outline-variant' | 'outline-inverse' | 'primary-color' | 'primary-on-color' | 'primary-color-variant' | 'primary-on-color-variant' | 'primary-container' | 'primary-on-container' | 'primary-container-variant' | 'primary-on-container-variant' | 'secondary-color' | 'secondary-on-color' | 'secondary-container' | 'secondary-on-container' | 'secondary-container-variant' | 'secondary-on-container-variant' | 'tertiary-color' | 'tertiary-on-color' | 'tertiary-container' | 'tertiary-on-container' | 'tertiary-container-variant' | 'tertiary-on-container-variant' | 'success-color' | 'success-on-color' | 'success-container' | 'success-on-container' | 'success-container-variant' | 'success-on-container-variant' | 'danger-color' | 'danger-on-color' | 'danger-container' | 'danger-on-container' | 'danger-container-variant' | 'danger-on-container-variant' | 'info-color' | 'info-on-color' | 'info-container' | 'info-on-container' | 'info-container-variant' | 'info-on-container-variant' | 'upsell-color' | 'upsell-on-color' | 'upsell-color-variant' | 'upsell-on-color-variant' | 'upsell-container' | 'upsell-on-container' | 'upsell-container-variant' | 'upsell-on-container-variant' | 'warning-color' | 'warning-on-color' | 'warning-container' | 'warning-on-container' | 'warning-container-variant' | 'warning-on-container-variant' | 'shadow-overlay' | 'shadow-active' | 'hover-inverse' | 'hover-lighten' | 'hover-darken' | 'brand-neutrals-caviar-dynamic' | 'brand-neutrals-chefscoat-dynamic' | 'on-graphic-black' | 'on-graphic-white';
1
+ export type Color = 'white' | 'black' | 'tangerine-100' | 'tangerine-200' | 'tangerine-300' | 'tangerine-400' | 'tangerine-500' | 'tangerine-600' | 'eggplant-100' | 'eggplant-200' | 'eggplant-300' | 'eggplant-400' | 'eggplant-500' | 'eggplant-600' | 'mint-100' | 'mint-200' | 'mint-300' | 'mint-400' | 'mint-500' | 'mint-600' | 'radish-100' | 'radish-200' | 'radish-300' | 'radish-400' | 'radish-500' | 'radish-600' | 'blueberry-100' | 'blueberry-200' | 'blueberry-300' | 'blueberry-400' | 'blueberry-500' | 'blueberry-600' | 'banana-100' | 'banana-200' | 'banana-300' | 'banana-400' | 'banana-500' | 'banana-600' | 'grey-100' | 'grey-200' | 'grey-300' | 'grey-400' | 'grey-500' | 'grey-600' | 'oat-100' | 'oat-200' | 'oat-300' | 'oat-400' | 'oat-500' | 'oat-600' | 'lime-100' | 'lime-200' | 'lime-300' | 'lime-400' | 'lime-500' | 'lime-600' | 'blackberry-100' | 'blackberry-200' | 'blackberry-300' | 'blackberry-400' | 'blackberry-500' | 'blackberry-600' | 'seq-1' | 'seq-2' | 'seq-3' | 'seq-4' | 'seq-5' | 'seq-6' | 'seq-7' | 'seq-8' | 'seq-9' | 'seq-10' | 'seq-11' | 'seq-12' | 'seq-13' | 'seq-14' | 'seq-15' | 'seq-16' | 'seq-17' | 'seq-18' | 'seq-19' | 'seq-20' | 'neutral-color' | 'neutral-on-color' | 'neutral-container' | 'neutral-on-container' | 'neutral-container-variant' | 'neutral-on-container-variant' | 'neutral-black-transparent-05' | 'neutral-black-transparent-10' | 'neutral-black-transparent-15' | 'neutral-black-transparent-20' | 'neutral-black-transparent-30' | 'neutral-black-transparent-40' | 'neutral-black-transparent-50' | 'neutral-black-transparent-60' | 'neutral-black-transparent-70' | 'neutral-black-transparent-80' | 'neutral-black-transparent-90' | 'neutral-white-transparent-05' | 'neutral-white-transparent-10' | 'neutral-white-transparent-15' | 'neutral-white-transparent-20' | 'neutral-white-transparent-30' | 'neutral-white-transparent-40' | 'neutral-white-transparent-50' | 'neutral-white-transparent-60' | 'neutral-white-transparent-70' | 'neutral-white-transparent-80' | 'neutral-white-transparent-90' | 'surface-color-overlay' | 'surface-color-dim' | 'surface-color' | 'surface-on-color-disabled' | 'surface-on-color-subtle' | 'surface-on-color' | 'surface-on-color-bold' | 'surface-container' | 'surface-container-high' | 'surface-container-highest' | 'surface-container-disabled' | 'surface-container-disabled-variant' | 'surface-on-container-disabled' | 'surface-inverse' | 'surface-on-inverse' | 'surface-on-inverse-disabled' | 'outline' | 'outline-variant' | 'outline-inverse' | 'primary-color' | 'primary-on-color' | 'primary-color-variant' | 'primary-on-color-variant' | 'primary-container' | 'primary-on-container' | 'primary-container-variant' | 'primary-on-container-variant' | 'secondary-color' | 'secondary-on-color' | 'secondary-container' | 'secondary-on-container' | 'secondary-container-variant' | 'secondary-on-container-variant' | 'tertiary-color' | 'tertiary-on-color' | 'tertiary-container' | 'tertiary-on-container' | 'tertiary-container-variant' | 'tertiary-on-container-variant' | 'success-color' | 'success-on-color' | 'success-container' | 'success-on-container' | 'success-container-variant' | 'success-on-container-variant' | 'danger-color' | 'danger-on-color' | 'danger-container' | 'danger-on-container' | 'danger-container-variant' | 'danger-on-container-variant' | 'info-color' | 'info-on-color' | 'info-container' | 'info-on-container' | 'info-container-variant' | 'info-on-container-variant' | 'upsell-color' | 'upsell-on-color' | 'upsell-color-variant' | 'upsell-on-color-variant' | 'upsell-container' | 'upsell-on-container' | 'upsell-container-variant' | 'upsell-on-container-variant' | 'warning-color' | 'warning-on-color' | 'warning-container' | 'warning-on-container' | 'warning-container-variant' | 'warning-on-container-variant' | 'shadow-overlay' | 'shadow-active' | 'hover-inverse' | 'hover-lighten' | 'hover-darken' | 'brand-neutrals-caviar-dynamic' | 'brand-neutrals-chefscoat-dynamic' | 'on-graphic-black' | 'on-graphic-white' | 'canvas-background-color';
@@ -0,0 +1,5 @@
1
+ import { RefObject } from 'react';
2
+ export declare const useScrollDetector: (contentRef: RefObject<HTMLDivElement>) => {
3
+ hasScroll: boolean;
4
+ isScrolled: boolean;
5
+ };
package/dist/index.css CHANGED
@@ -297,6 +297,7 @@
297
297
  --color-brand-neutrals-chefscoat-dynamic: #fff;
298
298
  --color-on-graphic-black: #000;
299
299
  --color-on-graphic-white: #fff;
300
+ --color-canvas-background-color: #fff;
300
301
  }
301
302
 
302
303
  .theme-dark {
@@ -406,6 +407,7 @@
406
407
  --color-brand-neutrals-chefscoat-dynamic: #000;
407
408
  --color-on-graphic-black: #000;
408
409
  --color-on-graphic-white: #fff;
410
+ --color-canvas-background-color: #2c2c2c;
409
411
  }
410
412
  :root {
411
413
  --border-radius-300: 4px;
@@ -427,7 +429,7 @@ body {
427
429
  line-height: var(--font-line-height-200);
428
430
  font-weight: var(--p-font-weight-normal);
429
431
  color: var(--color-surface-on-color);
430
- background-color: var(--color-surface-color-dim) !important;
432
+ background-color: var(--color-canvas-background-color) !important;
431
433
  }
432
434
 
433
435
  body * {
@@ -5677,6 +5679,239 @@ input._TEU6N {
5677
5679
  ._4M-yZ {
5678
5680
  min-width: 40px;
5679
5681
  }
5682
+ ._Smo46 {
5683
+ --nav-background-color: #f1f0ec;
5684
+ --nav-foreground-color: #e2ded6;
5685
+ --nav-object-soft-color: #6e6d6c;
5686
+ --nav-object-normal-color: #232324;
5687
+ height: 100%;
5688
+ background-color: var(--nav-background-color);
5689
+ display: flex;
5690
+ flex-direction: column;
5691
+ overflow: hidden;
5692
+ transition: width 0.2s;
5693
+ }
5694
+ ._-6GAa {
5695
+ --nav-background-color: #232324;
5696
+ --nav-foreground-color: #413e3e;
5697
+ --nav-object-soft-color: #c9c4ba;
5698
+ --nav-object-normal-color: #f8f7f5;
5699
+ }
5700
+ ._w-QAC {
5701
+ width: 64px;
5702
+ }
5703
+ ._w-QAC ._UCA59 {
5704
+ scrollbar-width: none;
5705
+ }
5706
+ ._w-QAC ._UCA59::-webkit-scrollbar {
5707
+ display: none;
5708
+ }
5709
+ ._B7Nse {
5710
+ width: 248px;
5711
+ }
5712
+ ._UCA59 {
5713
+ flex-grow: 1;
5714
+ min-height: 0;
5715
+ overflow-y: auto;
5716
+ background-color: var(--nav-background-color);
5717
+ }
5718
+ ._6bVLs {
5719
+ display: flex;
5720
+ flex-direction: column;
5721
+ justify-content: center;
5722
+ flex-shrink: 0;
5723
+ position: relative;
5724
+ z-index: 1;
5725
+ box-sizing: border-box;
5726
+ height: 56px;
5727
+ padding-left: 28px;
5728
+ padding-right: 4px;
5729
+ padding-bottom: 12px;
5730
+ color: var(--color-brand-neutrals-caviar-dynamic);
5731
+ }
5732
+ ._AYwpG {
5733
+ padding: 0;
5734
+ align-items: center;
5735
+ }
5736
+ ._IpBk1 {
5737
+ box-shadow: 0 0 12px -3px var(--color-shadow-overlay);
5738
+ border-bottom: 1px solid var(--nav-foreground-color);
5739
+ transition: box-shadow 0.4s ease-in-out;
5740
+ }
5741
+ @keyframes _aMyIG {
5742
+ from {
5743
+ opacity: 0;
5744
+ }
5745
+ to {
5746
+ opacity: 1;
5747
+ }
5748
+ }
5749
+ ._mWULf {
5750
+ padding: 4px 12px;
5751
+ min-height: 38px;
5752
+ color: var(--nav-object-soft-color);
5753
+ box-sizing: border-box;
5754
+ }
5755
+ ._mWULf button {
5756
+ width: 100%;
5757
+ padding: 0;
5758
+ border: 0;
5759
+ text-align: left;
5760
+ background-color: transparent;
5761
+ }
5762
+ ._GkDWn {
5763
+ display: flex;
5764
+ align-items: center;
5765
+ gap: 16px;
5766
+ padding: 4px 2px 4px 12px;
5767
+ min-height: 29px;
5768
+ box-sizing: border-box;
5769
+ border-radius: var(--border-radius-400);
5770
+ line-height: 16px;
5771
+ cursor: pointer;
5772
+ position: relative;
5773
+ }
5774
+ ._GkDWn:hover {
5775
+ background: var(--color-hover-darken);
5776
+ }
5777
+ ._3LYJx {
5778
+ display: flex;
5779
+ align-items: center;
5780
+ justify-content: center;
5781
+ flex-shrink: 0;
5782
+ width: 16px;
5783
+ height: 16px;
5784
+ color: var(--nav-object-normal-color);
5785
+ }
5786
+ ._oz5bt {
5787
+ flex-grow: 1;
5788
+ min-width: 0;
5789
+ white-space: nowrap;
5790
+ overflow: hidden;
5791
+ text-overflow: ellipsis;
5792
+ color: var(--nav-object-normal-color);
5793
+ }
5794
+ ._yCxLl {
5795
+ width: 8px;
5796
+ height: 8px;
5797
+ background: var(--color-secondary-color);
5798
+ border-radius: 50%;
5799
+ position: absolute;
5800
+ right: 9px;
5801
+ top: 2px;
5802
+ border: 1px solid var(--nav-foreground-color);
5803
+ animation: _aMyIG 0.8s ease;
5804
+ }
5805
+ ._SFpch {
5806
+ display: flex;
5807
+ flex-direction: column;
5808
+ gap: 6px;
5809
+ margin-top: 4px;
5810
+ }
5811
+ ._zfy2L {
5812
+ color: var(--nav-object-normal-color);
5813
+ border-left: 2px solid var(--nav-object-normal-color);
5814
+ padding-left: 10px;
5815
+ }
5816
+ ._zfy2L ._GkDWn {
5817
+ background: var(--nav-foreground-color);
5818
+ }
5819
+ ._-RLI8 {
5820
+ color: var(--nav-object-normal-color);
5821
+ border-left: 2px solid var(--nav-object-normal-color);
5822
+ padding-left: 10px;
5823
+ }
5824
+ ._S2i4R {
5825
+ width: 8px;
5826
+ height: 8px;
5827
+ background: var(--color-secondary-color);
5828
+ border-radius: 50%;
5829
+ position: absolute;
5830
+ right: 9px;
5831
+ top: 2px;
5832
+ border: 1px solid var(--nav-foreground-color);
5833
+ animation: _D9NA6 0.8s ease;
5834
+ }
5835
+ @keyframes _eIHTO {
5836
+ from {
5837
+ opacity: 0;
5838
+ }
5839
+ to {
5840
+ opacity: 1;
5841
+ }
5842
+ }
5843
+ ._kWT6L {
5844
+ min-height: 30px;
5845
+ color: var(--nav-object-soft-color);
5846
+ box-sizing: border-box;
5847
+ }
5848
+ ._c3utS {
5849
+ display: flex;
5850
+ align-items: center;
5851
+ gap: 16px;
5852
+ padding: 4px 2px 4px 44px;
5853
+ min-height: 30px;
5854
+ box-sizing: border-box;
5855
+ border-radius: var(--border-radius-400);
5856
+ line-height: 21px;
5857
+ cursor: pointer;
5858
+ }
5859
+ ._3IImx {
5860
+ padding-left: 16px;
5861
+ }
5862
+ ._WwagZ {
5863
+ padding-left: 12px;
5864
+ }
5865
+ ._c3utS:hover {
5866
+ background: var(--color-hover-darken);
5867
+ }
5868
+ ._uDuDj {
5869
+ width: 16px;
5870
+ }
5871
+ ._Kg1TF {
5872
+ flex-grow: 1;
5873
+ min-width: 0;
5874
+ white-space: nowrap;
5875
+ overflow: hidden;
5876
+ text-overflow: ellipsis;
5877
+ }
5878
+ ._uMbkq {
5879
+ width: 6px;
5880
+ height: 6px;
5881
+ background: var(--nav-object-soft-color);
5882
+ border-radius: 50%;
5883
+ animation: _eIHTO 0.2s ease;
5884
+ }
5885
+ ._nkaWg {
5886
+ color: var(--nav-object-normal-color);
5887
+ }
5888
+ ._nkaWg ._uMbkq {
5889
+ background: var(--nav-object-normal-color);
5890
+ }
5891
+ ._nkaWg ._c3utS {
5892
+ background: var(--nav-foreground-color);
5893
+ }
5894
+ ._qN8Zl {
5895
+ width: 100%;
5896
+ padding: 10px 15px;
5897
+ box-sizing: border-box;
5898
+ }
5899
+ ._qN8Zl::after {
5900
+ content: "";
5901
+ display: block;
5902
+ width: 100%;
5903
+ height: 1px;
5904
+ background-color: var(--nav-foreground-color);
5905
+ }
5906
+ ._9dbuu {
5907
+ flex-shrink: 0;
5908
+ padding: 10px 0 20px 0;
5909
+ }
5910
+ ._Bq3B4 {
5911
+ box-shadow: 0 0 12px -3px var(--color-shadow-overlay);
5912
+ border-top: 1px solid var(--nav-foreground-color);
5913
+ transition: box-shadow 0.4s ease-in-out;
5914
+ }
5680
5915
  ._mhyqH {
5681
5916
  display: flex;
5682
5917
  flex-direction: row;