@7shifts/sous-chef 2.3.2 → 2.3.6

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.
@@ -0,0 +1 @@
1
+ export { default } from './ToolbarSelect';
@@ -0,0 +1,2 @@
1
+ import ToolbarSelect from './ToolbarSelect';
2
+ export { ToolbarSelect };
@@ -4,7 +4,7 @@ declare type Props<T> = {
4
4
  /** Each element represents a row and each key of the object represents a column */
5
5
  items: Item<T>[];
6
6
  /** For each column element, the `name` property should match the key on `items` */
7
- columns: Column[];
7
+ columns?: Column[];
8
8
  /** A custom component for customizing how the each item is rendered. It pass as props: `item`, `index`, `columnSizes` and `columns` */
9
9
  itemComponent?: React.ComponentType<CustomComponent<T>>;
10
10
  maxHeight?: number;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { Column } from './types';
3
3
  export declare type DataTableContextType = {
4
- columns: Column[];
4
+ columns?: Column[];
5
5
  showActionMenu?: boolean;
6
6
  numberOfRows: number;
7
7
  hasVerticalBorders?: boolean;
@@ -1,18 +1,3 @@
1
- import type { SelectOption } from '../SelectField/types';
2
- import { DateRange } from '../../utils/date';
3
- export declare type FormikType = {
4
- handleSubmit: (e: Object) => void;
5
- setFieldValue: (_: string, __: string | boolean | SelectOption<any> | SelectOption<any>[] | Date | DateRange | null) => void;
6
- setFieldTouched: (e: string) => void;
7
- values: {
8
- [key: string]: any;
9
- };
10
- touched: {
11
- [key: string]: boolean;
12
- };
13
- errors: {
14
- [key: string]: string;
15
- };
16
- isValid: boolean;
17
- dirty: boolean;
18
- };
1
+ import { FormikState, FormikHelpers, FormikHandlers } from 'formik';
2
+ /** The FormValues are `any` here as in Sous Chef we don't care about the shape of the form. We just need to link form fields with the formik state */
3
+ export declare type FormikType = FormikState<any> & FormikHelpers<any> & FormikHandlers;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { IconSize } from '../types';
3
+ declare type Props = {
4
+ size?: IconSize;
5
+ color?: string;
6
+ } & React.SVGProps<SVGSVGElement>;
7
+ declare const IconGif: {
8
+ (props: Props): JSX.Element;
9
+ displayName: string;
10
+ };
11
+ export default IconGif;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { IconSize } from '../types';
3
+ declare type Props = {
4
+ size?: IconSize;
5
+ color?: string;
6
+ } & React.SVGProps<SVGSVGElement>;
7
+ declare const IconStarSolid: {
8
+ (props: Props): JSX.Element;
9
+ displayName: string;
10
+ };
11
+ export default IconStarSolid;
@@ -57,6 +57,7 @@ export { default as IconFlag } from './IconFlag';
57
57
  export { default as IconFourDotsCircle } from './IconFourDotsCircle';
58
58
  export { default as IconFourSquares } from './IconFourSquares';
59
59
  export { default as IconGavel } from './IconGavel';
60
+ export { default as IconGif } from './IconGif';
60
61
  export { default as IconGift } from './IconGift';
61
62
  export { default as IconGrinBeam } from './IconGrinBeam';
62
63
  export { default as IconGripVertical } from './IconGripVertical';
@@ -93,6 +94,7 @@ export { default as IconSignOut } from './IconSignOut';
93
94
  export { default as IconSitemap } from './IconSitemap';
94
95
  export { default as IconSlidersH } from './IconSlidersH';
95
96
  export { default as IconSort } from './IconSort';
97
+ export { default as IconStarSolid } from './IconStarSolid';
96
98
  export { default as IconStar } from './IconStar';
97
99
  export { default as IconStickyNoteLines } from './IconStickyNoteLines';
98
100
  export { default as IconStopwatch } from './IconStopwatch';
package/dist/index.css CHANGED
@@ -598,7 +598,7 @@ Please ask a designer if you have questions about which colours to use.
598
598
  border: 1px solid #fff;
599
599
  border-bottom: 1px solid #e0e0e0;
600
600
  }
601
- ._3DlpO:last-child {
601
+ ._3DlpO:last-child:not(._NS-B9) {
602
602
  border-bottom: 1px solid #fff;
603
603
  }
604
604
 
@@ -621,11 +621,20 @@ Please ask a designer if you have questions about which colours to use.
621
621
  box-shadow: 0 0 8px #a7b7ea;
622
622
  }
623
623
  ._NS-B9:first-child {
624
- border-radius: 8px 8px 0 0;
624
+ border-top-left-radius: 8px;
625
+ border-top-right-radius: 8px;
626
+ }
627
+ ._NS-B9:first-child:not(:last-child) {
628
+ border-bottom-left-radius: 0;
629
+ border-bottom-right-radius: 0;
625
630
  }
626
631
  ._NS-B9:last-child {
627
- border-radius: 0 0 8px 8px;
628
- border-bottom: 1px solid #6d87dd;
632
+ border-bottom-left-radius: 8px;
633
+ border-bottom-right-radius: 8px;
634
+ }
635
+ ._NS-B9:last-child:not(:first-child) {
636
+ border-top-left-radius: 0;
637
+ border-top-right-radius: 0;
629
638
  }
630
639
 
631
640
  ._3ENNn {
@@ -664,6 +673,7 @@ Please ask a designer if you have questions about which colours to use.
664
673
  ._3-nHz {
665
674
  display: flex;
666
675
  align-items: center;
676
+ line-height: 21px;
667
677
  }
668
678
  ._2Rh0i {
669
679
  cursor: pointer;
@@ -682,6 +692,7 @@ Please ask a designer if you have questions about which colours to use.
682
692
  ._W7CnY {
683
693
  display: inline-block;
684
694
  padding: 0 8px;
695
+ line-height: 1em;
685
696
  }
686
697
 
687
698
  ._2ygIH {
@@ -734,7 +745,7 @@ Please ask a designer if you have questions about which colours to use.
734
745
  ._1d8Ci {
735
746
  display: flex;
736
747
  }
737
- ._1d8Ci:not(:last-child) {
748
+ ._1d8Ci:not(:last-child):not(._3tb7U) {
738
749
  border-bottom: 1px solid #e0e0e0;
739
750
  }
740
751
 
@@ -757,11 +768,20 @@ Please ask a designer if you have questions about which colours to use.
757
768
  box-shadow: 0 0 8px #a7b7ea;
758
769
  }
759
770
  ._3tb7U:first-child {
760
- border-radius: 8px 8px 0 0;
771
+ border-top-left-radius: 8px;
772
+ border-top-right-radius: 8px;
773
+ }
774
+ ._3tb7U:first-child:not(:last-child) {
775
+ border-bottom-left-radius: 0;
776
+ border-bottom-right-radius: 0;
761
777
  }
762
778
  ._3tb7U:last-child {
763
- border-radius: 0 0 8px 8px;
764
- border-bottom: 1px solid #6d87dd;
779
+ border-bottom-left-radius: 8px;
780
+ border-bottom-right-radius: 8px;
781
+ }
782
+ ._3tb7U:last-child:not(:first-child) {
783
+ border-top-left-radius: 0;
784
+ border-top-right-radius: 0;
765
785
  }
766
786
 
767
787
  ._OTcMc {
@@ -809,6 +829,7 @@ Please ask a designer if you have questions about which colours to use.
809
829
  ._27x4v {
810
830
  display: flex;
811
831
  align-items: center;
832
+ line-height: 21px;
812
833
  }
813
834
  ._27x4v:not(._27x4v:first-child) {
814
835
  padding-left: 16px;
@@ -837,6 +858,7 @@ Please ask a designer if you have questions about which colours to use.
837
858
  ._3VjFP {
838
859
  display: inline-block;
839
860
  padding: 0 8px;
861
+ line-height: 1em;
840
862
  }
841
863
 
842
864
  ._1bTmd {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './core';
2
+ export * from './controls';
2
3
  export * from './forms';
3
4
  export * from './feedback';
4
5
  export * from './actions';