@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.
- package/dist/controls/ToolbarSelect/index.d.ts +1 -0
- package/dist/controls/index.d.ts +2 -0
- package/dist/core/DataTable/DataTable.d.ts +1 -1
- package/dist/core/DataTable/DataTableContext.d.ts +1 -1
- package/dist/forms/Form/types.d.ts +3 -18
- package/dist/icons/components/IconGif.d.ts +11 -0
- package/dist/icons/components/IconStarSolid.d.ts +11 -0
- package/dist/icons/components/index.d.ts +2 -0
- package/dist/index.css +30 -8
- package/dist/index.d.ts +1 -0
- package/dist/index.js +259 -97
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +257 -98
- package/dist/index.modern.js.map +1 -1
- package/dist/overlay/Tooltip/Tooltip.d.ts +1 -0
- package/dist/utils/formik.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './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
|
|
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,18 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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
|
|
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:
|
|
628
|
-
border-bottom:
|
|
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
|
|
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:
|
|
764
|
-
border-bottom:
|
|
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 {
|