@7shifts/sous-chef 1.3.0 → 1.3.1
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/CHANGELOG.md +2 -2
- package/dist/actions/PaginationControls/PaginationControls.d.ts +1 -1
- package/dist/core/index.d.ts +6 -1
- package/dist/icons/IconUser.flow +17 -0
- package/dist/index.css +215 -47
- package/dist/index.js +662 -309
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +659 -310
- package/dist/index.modern.js.map +1 -1
- package/dist/media/Avatar/AvatarImage/AvatarImage.d.ts +1 -0
- package/dist/nophoto~DrLDqLZE.png +0 -0
- package/dist/profile/LetterProfile/LetterProfile.d.ts +9 -0
- package/dist/profile/LetterProfile/index.d.ts +1 -0
- package/dist/profile/index.d.ts +2 -0
- package/dist/utils/string.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
##
|
|
1
|
+
## 1.3.0 (September 27th, 2021)
|
|
2
2
|
|
|
3
3
|
### New components
|
|
4
4
|
|
|
5
|
-
- DataTable ([#50](https://github.com/7shifts/sous-chef/pull/50))
|
|
5
|
+
- DataTable ([#50](https://github.com/7shifts/sous-chef/pull/50)) - And added editable functionality ([#54](https://github.com/7shifts/sous-chef/pull/54))
|
|
6
6
|
|
|
7
7
|
## 1.2.2 (September 24rd, 2021)
|
|
8
8
|
|
|
@@ -6,7 +6,7 @@ declare type Props = {
|
|
|
6
6
|
onNextClick: () => void;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
|
-
* `PaginationControls` are two buttons side by side
|
|
9
|
+
* `PaginationControls` are two buttons side by side.
|
|
10
10
|
*/
|
|
11
11
|
declare const PaginationControls: React.FC<Props>;
|
|
12
12
|
export default PaginationControls;
|
package/dist/core/index.d.ts
CHANGED
|
@@ -2,6 +2,11 @@ import ResourceTable from './ResourceTable';
|
|
|
2
2
|
import ResourceTableRow from './ResourceTableRow';
|
|
3
3
|
import Inline from './Inline';
|
|
4
4
|
import Stack from './Stack';
|
|
5
|
-
|
|
5
|
+
import DataTable from './DataTable';
|
|
6
|
+
import DataTableRow from './DataTableRow';
|
|
7
|
+
import DataTableCell from './DataTable/DataTableCell/DataTableCell';
|
|
8
|
+
import DataTableEditableCell from './DataTableEditableCell';
|
|
9
|
+
export { ResourceTable, ResourceTableRow, Inline, Stack, DataTable, DataTableRow, DataTableCell, DataTableEditableCell };
|
|
6
10
|
export type { AlignItems, FlexWrap, JustifyContent } from './Flex/types';
|
|
7
11
|
export type { CustomComponent, Column, SortDirection, Sort, Action } from './ResourceTable/types';
|
|
12
|
+
export type { Column as DataTableColumn } from './DataTable/types';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flowtype definitions for Button
|
|
3
|
+
* Generated by Flowgen from a Typescript Definition
|
|
4
|
+
* Flowgen v1.14.1
|
|
5
|
+
* @flow
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
import type { Color } from '../foundation/colors';
|
|
10
|
+
import type { IconSize } from '../types';
|
|
11
|
+
|
|
12
|
+
declare type Props = {
|
|
13
|
+
size?: IconSize,
|
|
14
|
+
color?: Color
|
|
15
|
+
};
|
|
16
|
+
declare var IconUser: (props: Props) => React$Node;
|
|
17
|
+
declare export default typeof IconEdit;
|
package/dist/index.css
CHANGED
|
@@ -618,8 +618,60 @@ Please ask a designer if you have questions about which colours to use.
|
|
|
618
618
|
border-radius: 0;
|
|
619
619
|
margin-left: -1px; }
|
|
620
620
|
|
|
621
|
-
|
|
622
|
-
|
|
621
|
+
/*********************************
|
|
622
|
+
For new colours, see _colors.scss.
|
|
623
|
+
**********************************/
|
|
624
|
+
/* stylelint-disable color-no-hex */
|
|
625
|
+
/*
|
|
626
|
+
These are the colour variables to be used around the webapp.
|
|
627
|
+
The variables are set up to describe the color and number which represents the lightness of the color.
|
|
628
|
+
The smaller the number the lighter the color. So $eggplant-100 would be light purple and $eggplant-600 would be dark purple.
|
|
629
|
+
The base colour is the default colour and is numbered with 400. If someone says "use Tangerine" they are referring to the base color.
|
|
630
|
+
Please ask a designer if you have questions about which colours to use.
|
|
631
|
+
*/
|
|
632
|
+
._1d8Ci {
|
|
633
|
+
display: flex; }
|
|
634
|
+
._1d8Ci:not(:last-child) {
|
|
635
|
+
border-bottom: 1px solid #e0e0e0; }
|
|
636
|
+
._1d8Ci:hover {
|
|
637
|
+
background: #f8f8f8; }
|
|
638
|
+
|
|
639
|
+
._1d8Ci:focus:not(:focus-visible) {
|
|
640
|
+
/* Remove the focus indicator on mouse-focus for browsers
|
|
641
|
+
that do support :focus-visible */
|
|
642
|
+
outline: none; }
|
|
643
|
+
|
|
644
|
+
._thFcO {
|
|
645
|
+
cursor: pointer; }
|
|
646
|
+
._thFcO:hover {
|
|
647
|
+
background-color: #f8f8f8; }
|
|
648
|
+
|
|
649
|
+
._3tb7U {
|
|
650
|
+
border: 1px solid #6d87dd;
|
|
651
|
+
box-sizing: border-box;
|
|
652
|
+
box-shadow: 0 0 8px #a7b7ea; }
|
|
653
|
+
._3tb7U:first-child {
|
|
654
|
+
border-radius: 8px 8px 0 0; }
|
|
655
|
+
._3tb7U:last-child {
|
|
656
|
+
border-radius: 0 0 8px 8px;
|
|
657
|
+
border-bottom: 1px solid #6d87dd; }
|
|
658
|
+
|
|
659
|
+
._OTcMc {
|
|
660
|
+
display: flex;
|
|
661
|
+
flex-direction: column;
|
|
662
|
+
justify-content: center;
|
|
663
|
+
position: relative; }
|
|
664
|
+
._lNHQ8 {
|
|
665
|
+
padding: 16px; }
|
|
666
|
+
._13YLe {
|
|
667
|
+
flex-direction: unset;
|
|
668
|
+
justify-content: flex-end; }
|
|
669
|
+
._1rrRr:not(:last-child) {
|
|
670
|
+
border-right: 1px solid #e0e0e0; }
|
|
671
|
+
|
|
672
|
+
._azbIG {
|
|
673
|
+
width: 40px;
|
|
674
|
+
padding: 16px; }
|
|
623
675
|
|
|
624
676
|
/*********************************
|
|
625
677
|
For new colours, see _colors.scss.
|
|
@@ -632,16 +684,52 @@ The smaller the number the lighter the color. So $eggplant-100 would be light pu
|
|
|
632
684
|
The base colour is the default colour and is numbered with 400. If someone says "use Tangerine" they are referring to the base color.
|
|
633
685
|
Please ask a designer if you have questions about which colours to use.
|
|
634
686
|
*/
|
|
635
|
-
.
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
687
|
+
._of22N {
|
|
688
|
+
display: flex;
|
|
689
|
+
font-size: 12px;
|
|
690
|
+
font-weight: 600;
|
|
691
|
+
font-family: "Proxima Nova", sans-serif;
|
|
640
692
|
color: #555;
|
|
693
|
+
padding: 19px 17px 8px 17px; }
|
|
694
|
+
|
|
695
|
+
._27x4v {
|
|
696
|
+
display: flex;
|
|
697
|
+
align-items: center; }
|
|
698
|
+
._27x4v:not(._27x4v:first-child) {
|
|
699
|
+
padding-left: 16px; }
|
|
700
|
+
._27x4v:not(._27x4v:last-child) {
|
|
701
|
+
padding-right: 16px; }
|
|
702
|
+
._3gw3Z {
|
|
703
|
+
cursor: pointer; }
|
|
704
|
+
._Fjm2n {
|
|
705
|
+
justify-content: flex-end; }
|
|
706
|
+
|
|
707
|
+
._27x4v:focus:not(:focus-visible) {
|
|
708
|
+
/* Remove the focus indicator on mouse-focus for browsers
|
|
709
|
+
that do support :focus-visible */
|
|
710
|
+
outline: none; }
|
|
711
|
+
|
|
712
|
+
._LoIvx {
|
|
713
|
+
width: 40px; }
|
|
714
|
+
|
|
715
|
+
._3VjFP {
|
|
716
|
+
display: inline-block;
|
|
717
|
+
padding: 0 8px; }
|
|
718
|
+
|
|
719
|
+
._1bTmd {
|
|
720
|
+
border: 1px solid #c1c1c1;
|
|
721
|
+
border-radius: 8px;
|
|
641
722
|
font-family: "Proxima Nova", sans-serif;
|
|
642
|
-
font-weight: 600;
|
|
643
723
|
font-size: 14px; }
|
|
644
724
|
|
|
725
|
+
._1opWx {
|
|
726
|
+
background: #f8f8f8;
|
|
727
|
+
font-weight: 600; }
|
|
728
|
+
|
|
729
|
+
._F_spz {
|
|
730
|
+
margin-top: 20px;
|
|
731
|
+
font-family: "Proxima Nova", sans-serif; }
|
|
732
|
+
|
|
645
733
|
/*********************************
|
|
646
734
|
For new colours, see _colors.scss.
|
|
647
735
|
**********************************/
|
|
@@ -653,11 +741,31 @@ The smaller the number the lighter the color. So $eggplant-100 would be light pu
|
|
|
653
741
|
The base colour is the default colour and is numbered with 400. If someone says "use Tangerine" they are referring to the base color.
|
|
654
742
|
Please ask a designer if you have questions about which colours to use.
|
|
655
743
|
*/
|
|
656
|
-
.
|
|
744
|
+
._orjDM {
|
|
745
|
+
padding: 16px; }
|
|
746
|
+
._3EpfF {
|
|
747
|
+
text-align: right; }
|
|
748
|
+
|
|
749
|
+
/*********************************
|
|
750
|
+
For new colours, see _colors.scss.
|
|
751
|
+
**********************************/
|
|
752
|
+
/* stylelint-disable color-no-hex */
|
|
753
|
+
/*
|
|
754
|
+
These are the colour variables to be used around the webapp.
|
|
755
|
+
The variables are set up to describe the color and number which represents the lightness of the color.
|
|
756
|
+
The smaller the number the lighter the color. So $eggplant-100 would be light purple and $eggplant-600 would be dark purple.
|
|
757
|
+
The base colour is the default colour and is numbered with 400. If someone says "use Tangerine" they are referring to the base color.
|
|
758
|
+
Please ask a designer if you have questions about which colours to use.
|
|
759
|
+
*/
|
|
760
|
+
._h724f {
|
|
761
|
+
line-height: normal;
|
|
762
|
+
padding: 0;
|
|
763
|
+
width: auto;
|
|
764
|
+
float: none;
|
|
657
765
|
color: #555;
|
|
658
766
|
font-family: "Proxima Nova", sans-serif;
|
|
659
|
-
font-weight:
|
|
660
|
-
font-size:
|
|
767
|
+
font-weight: 600;
|
|
768
|
+
font-size: 14px; }
|
|
661
769
|
|
|
662
770
|
/*********************************
|
|
663
771
|
For new colours, see _colors.scss.
|
|
@@ -670,8 +778,8 @@ The smaller the number the lighter the color. So $eggplant-100 would be light pu
|
|
|
670
778
|
The base colour is the default colour and is numbered with 400. If someone says "use Tangerine" they are referring to the base color.
|
|
671
779
|
Please ask a designer if you have questions about which colours to use.
|
|
672
780
|
*/
|
|
673
|
-
.
|
|
674
|
-
color: #
|
|
781
|
+
._1DWBq {
|
|
782
|
+
color: #555;
|
|
675
783
|
font-family: "Proxima Nova", sans-serif;
|
|
676
784
|
font-weight: 400;
|
|
677
785
|
font-size: 12px; }
|
|
@@ -687,40 +795,11 @@ The smaller the number the lighter the color. So $eggplant-100 would be light pu
|
|
|
687
795
|
The base colour is the default colour and is numbered with 400. If someone says "use Tangerine" they are referring to the base color.
|
|
688
796
|
Please ask a designer if you have questions about which colours to use.
|
|
689
797
|
*/
|
|
690
|
-
.
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
flex: 1;
|
|
696
|
-
display: flex;
|
|
697
|
-
flex-direction: column;
|
|
698
|
-
min-width: 90px; }
|
|
699
|
-
._BkzdC textarea {
|
|
700
|
-
line-height: 22px;
|
|
701
|
-
font-size: 14px;
|
|
702
|
-
font-family: "Proxima Nova", sans-serif;
|
|
703
|
-
color: #555;
|
|
704
|
-
margin: 0;
|
|
705
|
-
border: none;
|
|
706
|
-
resize: none;
|
|
707
|
-
width: auto;
|
|
708
|
-
height: auto;
|
|
709
|
-
padding: 0; }
|
|
710
|
-
._BkzdC textarea:focus {
|
|
711
|
-
outline: none; }
|
|
712
|
-
._BkzdC textarea:disabled {
|
|
713
|
-
background-color: #f8f8f8; }
|
|
714
|
-
._Rop31 {
|
|
715
|
-
border: 1px solid #6d87dd;
|
|
716
|
-
box-shadow: 0 0 8px #a7b7ea;
|
|
717
|
-
outline: none; }
|
|
718
|
-
._2x3Cm {
|
|
719
|
-
background-color: #f8f8f8; }
|
|
720
|
-
._3zOwV {
|
|
721
|
-
border-color: #e76767 !important; }
|
|
722
|
-
._rQqnL {
|
|
723
|
-
margin-top: 5px; }
|
|
798
|
+
._nZ2MD {
|
|
799
|
+
color: #e76767;
|
|
800
|
+
font-family: "Proxima Nova", sans-serif;
|
|
801
|
+
font-weight: 400;
|
|
802
|
+
font-size: 12px; }
|
|
724
803
|
|
|
725
804
|
/*********************************
|
|
726
805
|
For new colours, see _colors.scss.
|
|
@@ -783,6 +862,95 @@ Please ask a designer if you have questions about which colours to use.
|
|
|
783
862
|
right: 0;
|
|
784
863
|
text-align: right; }
|
|
785
864
|
|
|
865
|
+
/*********************************
|
|
866
|
+
For new colours, see _colors.scss.
|
|
867
|
+
**********************************/
|
|
868
|
+
/* stylelint-disable color-no-hex */
|
|
869
|
+
/*
|
|
870
|
+
These are the colour variables to be used around the webapp.
|
|
871
|
+
The variables are set up to describe the color and number which represents the lightness of the color.
|
|
872
|
+
The smaller the number the lighter the color. So $eggplant-100 would be light purple and $eggplant-600 would be dark purple.
|
|
873
|
+
The base colour is the default colour and is numbered with 400. If someone says "use Tangerine" they are referring to the base color.
|
|
874
|
+
Please ask a designer if you have questions about which colours to use.
|
|
875
|
+
*/
|
|
876
|
+
._kIngZ {
|
|
877
|
+
width: 100%; }
|
|
878
|
+
._kIngZ input {
|
|
879
|
+
border: 1px solid transparent;
|
|
880
|
+
display: flex;
|
|
881
|
+
justify-content: flex-end;
|
|
882
|
+
background: transparent;
|
|
883
|
+
padding: 16px;
|
|
884
|
+
width: 100%;
|
|
885
|
+
font-size: 14px;
|
|
886
|
+
font-family: "Proxima Nova", sans-serif; }
|
|
887
|
+
._kIngZ input:focus {
|
|
888
|
+
border-color: #6d87dd;
|
|
889
|
+
box-shadow: 0 0 8px #a7b7ea;
|
|
890
|
+
outline: none; }
|
|
891
|
+
._3_QIj {
|
|
892
|
+
text-align: right; }
|
|
893
|
+
._32mWH {
|
|
894
|
+
border-top-left-radius: 8px; }
|
|
895
|
+
._3Jg2- {
|
|
896
|
+
border-top-right-radius: 8px; }
|
|
897
|
+
._1F5fj {
|
|
898
|
+
border-bottom-left-radius: 8px; }
|
|
899
|
+
._1fTTW {
|
|
900
|
+
border-bottom-right-radius: 8px; }
|
|
901
|
+
|
|
902
|
+
._y9SBQ._y9SBQ {
|
|
903
|
+
border-color: #e76767; }
|
|
904
|
+
|
|
905
|
+
._3CaV0 {
|
|
906
|
+
max-width: 500px; }
|
|
907
|
+
|
|
908
|
+
/*********************************
|
|
909
|
+
For new colours, see _colors.scss.
|
|
910
|
+
**********************************/
|
|
911
|
+
/* stylelint-disable color-no-hex */
|
|
912
|
+
/*
|
|
913
|
+
These are the colour variables to be used around the webapp.
|
|
914
|
+
The variables are set up to describe the color and number which represents the lightness of the color.
|
|
915
|
+
The smaller the number the lighter the color. So $eggplant-100 would be light purple and $eggplant-600 would be dark purple.
|
|
916
|
+
The base colour is the default colour and is numbered with 400. If someone says "use Tangerine" they are referring to the base color.
|
|
917
|
+
Please ask a designer if you have questions about which colours to use.
|
|
918
|
+
*/
|
|
919
|
+
._BkzdC {
|
|
920
|
+
border-radius: 4px;
|
|
921
|
+
padding: 7px;
|
|
922
|
+
box-shadow: none;
|
|
923
|
+
border: 1px solid #c1c1c1;
|
|
924
|
+
flex: 1;
|
|
925
|
+
display: flex;
|
|
926
|
+
flex-direction: column;
|
|
927
|
+
min-width: 90px; }
|
|
928
|
+
._BkzdC textarea {
|
|
929
|
+
line-height: 22px;
|
|
930
|
+
font-size: 14px;
|
|
931
|
+
font-family: "Proxima Nova", sans-serif;
|
|
932
|
+
color: #555;
|
|
933
|
+
margin: 0;
|
|
934
|
+
border: none;
|
|
935
|
+
resize: none;
|
|
936
|
+
width: auto;
|
|
937
|
+
height: auto;
|
|
938
|
+
padding: 0; }
|
|
939
|
+
._BkzdC textarea:focus {
|
|
940
|
+
outline: none; }
|
|
941
|
+
._BkzdC textarea:disabled {
|
|
942
|
+
background-color: #f8f8f8; }
|
|
943
|
+
._Rop31 {
|
|
944
|
+
border: 1px solid #6d87dd;
|
|
945
|
+
box-shadow: 0 0 8px #a7b7ea;
|
|
946
|
+
outline: none; }
|
|
947
|
+
._2x3Cm {
|
|
948
|
+
background-color: #f8f8f8; }
|
|
949
|
+
._3zOwV {
|
|
950
|
+
border-color: #e76767 !important; }
|
|
951
|
+
._rQqnL {
|
|
952
|
+
margin-top: 5px; }
|
|
953
|
+
|
|
786
954
|
/*********************************
|
|
787
955
|
For new colours, see _colors.scss.
|
|
788
956
|
**********************************/
|