@7shifts/sous-chef 2.8.3 → 2.9.0
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/core/DataTable/types.d.ts +13 -2
- package/dist/core/DataTableRow/DataTableRowActions/DataTableRowActions.d.ts +6 -0
- package/dist/core/DataTableRow/DataTableRowActions/index.d.ts +1 -0
- package/dist/core/index.d.ts +2 -2
- package/dist/index.css +152 -152
- package/dist/index.js +125 -103
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +125 -103
- package/dist/index.modern.js.map +1 -1
- package/dist/overlay/Menu/MenuItem.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import Button from '../../actions/Button/Button';
|
|
2
3
|
export declare type Column = {
|
|
3
4
|
name: string;
|
|
4
5
|
label?: React.ReactNode;
|
|
@@ -21,7 +22,17 @@ export declare type CustomComponent<T> = {
|
|
|
21
22
|
columnSizes?: number[];
|
|
22
23
|
columns?: Column[];
|
|
23
24
|
};
|
|
24
|
-
|
|
25
|
+
declare type BaseAction = {
|
|
26
|
+
action?: string;
|
|
25
27
|
label: React.ReactNode;
|
|
26
|
-
onAction: () => void;
|
|
28
|
+
onAction: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
|
27
29
|
};
|
|
30
|
+
declare type KebabAction = {
|
|
31
|
+
showInKebab?: true;
|
|
32
|
+
} & BaseAction;
|
|
33
|
+
declare type ButtonAction = {
|
|
34
|
+
buttonProps?: Pick<React.ComponentPropsWithoutRef<typeof Button>, 'theme' | 'disabled' | 'loading' | 'title'>;
|
|
35
|
+
showInKebab: false;
|
|
36
|
+
} & BaseAction;
|
|
37
|
+
export declare type Action = KebabAction | ButtonAction;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DataTableRowActions';
|
package/dist/core/index.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ import DataTableCell from './DataTable/DataTableCell/DataTableCell';
|
|
|
8
8
|
import DataTableEditableCell from './DataTableEditableCell';
|
|
9
9
|
export { ResourceTable, ResourceTableRow, Inline, Stack, DataTable, DataTableRow, DataTableCell, DataTableEditableCell };
|
|
10
10
|
export type { AlignItems, FlexWrap, JustifyContent } from './Flex/types';
|
|
11
|
-
export type { CustomComponent, Column, SortDirection, Sort
|
|
12
|
-
export type { Column as DataTableColumn, CustomComponent as DataTableCustomComponent } from './DataTable/types';
|
|
11
|
+
export type { CustomComponent, Column, SortDirection, Sort } from './ResourceTable/types';
|
|
12
|
+
export type { Column as DataTableColumn, CustomComponent as DataTableCustomComponent, Action } from './DataTable/types';
|
package/dist/index.css
CHANGED
|
@@ -821,6 +821,158 @@ The smaller the number the lighter the color. So $eggplant-100 would be light pu
|
|
|
821
821
|
The base colour is the default colour and is numbered with 400. If someone says "use Tangerine" they are referring to the base color.
|
|
822
822
|
Please ask a designer if you have questions about which colours to use.
|
|
823
823
|
*/
|
|
824
|
+
/*********************************
|
|
825
|
+
For new colours, see _colors.scss.
|
|
826
|
+
**********************************/
|
|
827
|
+
/* stylelint-disable color-no-hex */
|
|
828
|
+
/*
|
|
829
|
+
These are the colour variables to be used around the webapp.
|
|
830
|
+
The variables are set up to describe the color and number which represents the lightness of the color.
|
|
831
|
+
The smaller the number the lighter the color. So $eggplant-100 would be light purple and $eggplant-600 would be dark purple.
|
|
832
|
+
The base colour is the default colour and is numbered with 400. If someone says "use Tangerine" they are referring to the base color.
|
|
833
|
+
Please ask a designer if you have questions about which colours to use.
|
|
834
|
+
*/
|
|
835
|
+
._1QDLF {
|
|
836
|
+
color: #555;
|
|
837
|
+
font-family: "Proxima Nova", sans-serif;
|
|
838
|
+
font-weight: 400;
|
|
839
|
+
font-size: 12px;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
/*********************************
|
|
843
|
+
For new colours, see _colors.scss.
|
|
844
|
+
**********************************/
|
|
845
|
+
/* stylelint-disable color-no-hex */
|
|
846
|
+
/*
|
|
847
|
+
These are the colour variables to be used around the webapp.
|
|
848
|
+
The variables are set up to describe the color and number which represents the lightness of the color.
|
|
849
|
+
The smaller the number the lighter the color. So $eggplant-100 would be light purple and $eggplant-600 would be dark purple.
|
|
850
|
+
The base colour is the default colour and is numbered with 400. If someone says "use Tangerine" they are referring to the base color.
|
|
851
|
+
Please ask a designer if you have questions about which colours to use.
|
|
852
|
+
*/
|
|
853
|
+
._2wiMV {
|
|
854
|
+
line-height: normal;
|
|
855
|
+
padding: 0;
|
|
856
|
+
width: auto;
|
|
857
|
+
float: none;
|
|
858
|
+
color: #555;
|
|
859
|
+
font-family: "Proxima Nova", sans-serif;
|
|
860
|
+
font-weight: 600;
|
|
861
|
+
font-size: 14px;
|
|
862
|
+
min-height: 16px;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
/**
|
|
866
|
+
This component is built with acessibility in mind.
|
|
867
|
+
The `<input type="checkbox" />` is not removed from screen or changed its `apparence`. It would mess up with the `outline`.
|
|
868
|
+
Instead we are keeping it on the screen with a `opacity: 0`. When it is active we turn the `outline` on the upper class to keep the native bahaviour.
|
|
869
|
+
|
|
870
|
+
Just for future references:
|
|
871
|
+
`.toggle [type='checkbox']` = input checkbox
|
|
872
|
+
`.toggle__switch::before` = toggle bottom layer
|
|
873
|
+
`.toggle__switch::after` = toggle knub
|
|
874
|
+
*/
|
|
875
|
+
._1ui8X {
|
|
876
|
+
display: inline-flex;
|
|
877
|
+
align-items: center;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
._1YRJT {
|
|
881
|
+
line-height: normal;
|
|
882
|
+
padding: 0;
|
|
883
|
+
width: auto;
|
|
884
|
+
float: none;
|
|
885
|
+
color: #555;
|
|
886
|
+
font-family: "Proxima Nova", sans-serif;
|
|
887
|
+
font-weight: 600;
|
|
888
|
+
font-size: 14px;
|
|
889
|
+
min-height: 16px;
|
|
890
|
+
margin-left: 8px;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
._1jEiW {
|
|
894
|
+
color: #555;
|
|
895
|
+
font-family: "Proxima Nova", sans-serif;
|
|
896
|
+
font-weight: 400;
|
|
897
|
+
font-size: 12px;
|
|
898
|
+
margin-left: 48px;
|
|
899
|
+
display: block;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
._1ui8X [type=checkbox] {
|
|
903
|
+
position: absolute;
|
|
904
|
+
opacity: 0;
|
|
905
|
+
pointer-events: none;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
._3tNyE {
|
|
909
|
+
position: relative;
|
|
910
|
+
cursor: pointer;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
/* default states */
|
|
914
|
+
._3tNyE::before {
|
|
915
|
+
content: "";
|
|
916
|
+
display: block;
|
|
917
|
+
background: #c1c1c1;
|
|
918
|
+
transition: all ease-in-out 150ms;
|
|
919
|
+
box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.03);
|
|
920
|
+
border-radius: 26px;
|
|
921
|
+
height: 20px;
|
|
922
|
+
width: 40px;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
._3tNyE::after {
|
|
926
|
+
content: "";
|
|
927
|
+
display: block;
|
|
928
|
+
position: absolute;
|
|
929
|
+
left: 2px;
|
|
930
|
+
right: 21px;
|
|
931
|
+
top: 2px;
|
|
932
|
+
background: #fff;
|
|
933
|
+
border: 1px solid #c1c1c1;
|
|
934
|
+
border-radius: 24px;
|
|
935
|
+
height: 14px;
|
|
936
|
+
width: 14px;
|
|
937
|
+
transition: all ease-in-out 150ms;
|
|
938
|
+
box-shadow: 0 0 4px rgba(0, 0, 0, 0.03);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
/* special states */
|
|
942
|
+
._1ui8X [type=checkbox]:focus-visible + ._3tNyE {
|
|
943
|
+
outline: #6d87dd solid 1px;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
._1ui8X [type=checkbox]:disabled + ._3tNyE {
|
|
947
|
+
opacity: 0.4;
|
|
948
|
+
cursor: default;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
._1ui8X [type=checkbox]:disabled + ._3tNyE::after {
|
|
952
|
+
box-shadow: none;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
/* checked states */
|
|
956
|
+
._1ui8X [type=checkbox]:checked + ._3tNyE::before {
|
|
957
|
+
background: #3abda9;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
._1ui8X [type=checkbox]:checked + ._3tNyE::after {
|
|
961
|
+
border-color: #3abda9;
|
|
962
|
+
left: 21px;
|
|
963
|
+
right: 2px;
|
|
964
|
+
}
|
|
965
|
+
/*********************************
|
|
966
|
+
For new colours, see _colors.scss.
|
|
967
|
+
**********************************/
|
|
968
|
+
/* stylelint-disable color-no-hex */
|
|
969
|
+
/*
|
|
970
|
+
These are the colour variables to be used around the webapp.
|
|
971
|
+
The variables are set up to describe the color and number which represents the lightness of the color.
|
|
972
|
+
The smaller the number the lighter the color. So $eggplant-100 would be light purple and $eggplant-600 would be dark purple.
|
|
973
|
+
The base colour is the default colour and is numbered with 400. If someone says "use Tangerine" they are referring to the base color.
|
|
974
|
+
Please ask a designer if you have questions about which colours to use.
|
|
975
|
+
*/
|
|
824
976
|
._of22N {
|
|
825
977
|
display: flex;
|
|
826
978
|
font-size: 12px;
|
|
@@ -2417,158 +2569,6 @@ The smaller the number the lighter the color. So $eggplant-100 would be light pu
|
|
|
2417
2569
|
The base colour is the default colour and is numbered with 400. If someone says "use Tangerine" they are referring to the base color.
|
|
2418
2570
|
Please ask a designer if you have questions about which colours to use.
|
|
2419
2571
|
*/
|
|
2420
|
-
/*********************************
|
|
2421
|
-
For new colours, see _colors.scss.
|
|
2422
|
-
**********************************/
|
|
2423
|
-
/* stylelint-disable color-no-hex */
|
|
2424
|
-
/*
|
|
2425
|
-
These are the colour variables to be used around the webapp.
|
|
2426
|
-
The variables are set up to describe the color and number which represents the lightness of the color.
|
|
2427
|
-
The smaller the number the lighter the color. So $eggplant-100 would be light purple and $eggplant-600 would be dark purple.
|
|
2428
|
-
The base colour is the default colour and is numbered with 400. If someone says "use Tangerine" they are referring to the base color.
|
|
2429
|
-
Please ask a designer if you have questions about which colours to use.
|
|
2430
|
-
*/
|
|
2431
|
-
._1QDLF {
|
|
2432
|
-
color: #555;
|
|
2433
|
-
font-family: "Proxima Nova", sans-serif;
|
|
2434
|
-
font-weight: 400;
|
|
2435
|
-
font-size: 12px;
|
|
2436
|
-
}
|
|
2437
|
-
|
|
2438
|
-
/*********************************
|
|
2439
|
-
For new colours, see _colors.scss.
|
|
2440
|
-
**********************************/
|
|
2441
|
-
/* stylelint-disable color-no-hex */
|
|
2442
|
-
/*
|
|
2443
|
-
These are the colour variables to be used around the webapp.
|
|
2444
|
-
The variables are set up to describe the color and number which represents the lightness of the color.
|
|
2445
|
-
The smaller the number the lighter the color. So $eggplant-100 would be light purple and $eggplant-600 would be dark purple.
|
|
2446
|
-
The base colour is the default colour and is numbered with 400. If someone says "use Tangerine" they are referring to the base color.
|
|
2447
|
-
Please ask a designer if you have questions about which colours to use.
|
|
2448
|
-
*/
|
|
2449
|
-
._2wiMV {
|
|
2450
|
-
line-height: normal;
|
|
2451
|
-
padding: 0;
|
|
2452
|
-
width: auto;
|
|
2453
|
-
float: none;
|
|
2454
|
-
color: #555;
|
|
2455
|
-
font-family: "Proxima Nova", sans-serif;
|
|
2456
|
-
font-weight: 600;
|
|
2457
|
-
font-size: 14px;
|
|
2458
|
-
min-height: 16px;
|
|
2459
|
-
}
|
|
2460
|
-
|
|
2461
|
-
/**
|
|
2462
|
-
This component is built with acessibility in mind.
|
|
2463
|
-
The `<input type="checkbox" />` is not removed from screen or changed its `apparence`. It would mess up with the `outline`.
|
|
2464
|
-
Instead we are keeping it on the screen with a `opacity: 0`. When it is active we turn the `outline` on the upper class to keep the native bahaviour.
|
|
2465
|
-
|
|
2466
|
-
Just for future references:
|
|
2467
|
-
`.toggle [type='checkbox']` = input checkbox
|
|
2468
|
-
`.toggle__switch::before` = toggle bottom layer
|
|
2469
|
-
`.toggle__switch::after` = toggle knub
|
|
2470
|
-
*/
|
|
2471
|
-
._1ui8X {
|
|
2472
|
-
display: inline-flex;
|
|
2473
|
-
align-items: center;
|
|
2474
|
-
}
|
|
2475
|
-
|
|
2476
|
-
._1YRJT {
|
|
2477
|
-
line-height: normal;
|
|
2478
|
-
padding: 0;
|
|
2479
|
-
width: auto;
|
|
2480
|
-
float: none;
|
|
2481
|
-
color: #555;
|
|
2482
|
-
font-family: "Proxima Nova", sans-serif;
|
|
2483
|
-
font-weight: 600;
|
|
2484
|
-
font-size: 14px;
|
|
2485
|
-
min-height: 16px;
|
|
2486
|
-
margin-left: 8px;
|
|
2487
|
-
}
|
|
2488
|
-
|
|
2489
|
-
._1jEiW {
|
|
2490
|
-
color: #555;
|
|
2491
|
-
font-family: "Proxima Nova", sans-serif;
|
|
2492
|
-
font-weight: 400;
|
|
2493
|
-
font-size: 12px;
|
|
2494
|
-
margin-left: 48px;
|
|
2495
|
-
display: block;
|
|
2496
|
-
}
|
|
2497
|
-
|
|
2498
|
-
._1ui8X [type=checkbox] {
|
|
2499
|
-
position: absolute;
|
|
2500
|
-
opacity: 0;
|
|
2501
|
-
pointer-events: none;
|
|
2502
|
-
}
|
|
2503
|
-
|
|
2504
|
-
._3tNyE {
|
|
2505
|
-
position: relative;
|
|
2506
|
-
cursor: pointer;
|
|
2507
|
-
}
|
|
2508
|
-
|
|
2509
|
-
/* default states */
|
|
2510
|
-
._3tNyE::before {
|
|
2511
|
-
content: "";
|
|
2512
|
-
display: block;
|
|
2513
|
-
background: #c1c1c1;
|
|
2514
|
-
transition: all ease-in-out 150ms;
|
|
2515
|
-
box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.03);
|
|
2516
|
-
border-radius: 26px;
|
|
2517
|
-
height: 20px;
|
|
2518
|
-
width: 40px;
|
|
2519
|
-
}
|
|
2520
|
-
|
|
2521
|
-
._3tNyE::after {
|
|
2522
|
-
content: "";
|
|
2523
|
-
display: block;
|
|
2524
|
-
position: absolute;
|
|
2525
|
-
left: 2px;
|
|
2526
|
-
right: 21px;
|
|
2527
|
-
top: 2px;
|
|
2528
|
-
background: #fff;
|
|
2529
|
-
border: 1px solid #c1c1c1;
|
|
2530
|
-
border-radius: 24px;
|
|
2531
|
-
height: 14px;
|
|
2532
|
-
width: 14px;
|
|
2533
|
-
transition: all ease-in-out 150ms;
|
|
2534
|
-
box-shadow: 0 0 4px rgba(0, 0, 0, 0.03);
|
|
2535
|
-
}
|
|
2536
|
-
|
|
2537
|
-
/* special states */
|
|
2538
|
-
._1ui8X [type=checkbox]:focus-visible + ._3tNyE {
|
|
2539
|
-
outline: #6d87dd solid 1px;
|
|
2540
|
-
}
|
|
2541
|
-
|
|
2542
|
-
._1ui8X [type=checkbox]:disabled + ._3tNyE {
|
|
2543
|
-
opacity: 0.4;
|
|
2544
|
-
cursor: default;
|
|
2545
|
-
}
|
|
2546
|
-
|
|
2547
|
-
._1ui8X [type=checkbox]:disabled + ._3tNyE::after {
|
|
2548
|
-
box-shadow: none;
|
|
2549
|
-
}
|
|
2550
|
-
|
|
2551
|
-
/* checked states */
|
|
2552
|
-
._1ui8X [type=checkbox]:checked + ._3tNyE::before {
|
|
2553
|
-
background: #3abda9;
|
|
2554
|
-
}
|
|
2555
|
-
|
|
2556
|
-
._1ui8X [type=checkbox]:checked + ._3tNyE::after {
|
|
2557
|
-
border-color: #3abda9;
|
|
2558
|
-
left: 21px;
|
|
2559
|
-
right: 2px;
|
|
2560
|
-
}
|
|
2561
|
-
/*********************************
|
|
2562
|
-
For new colours, see _colors.scss.
|
|
2563
|
-
**********************************/
|
|
2564
|
-
/* stylelint-disable color-no-hex */
|
|
2565
|
-
/*
|
|
2566
|
-
These are the colour variables to be used around the webapp.
|
|
2567
|
-
The variables are set up to describe the color and number which represents the lightness of the color.
|
|
2568
|
-
The smaller the number the lighter the color. So $eggplant-100 would be light purple and $eggplant-600 would be dark purple.
|
|
2569
|
-
The base colour is the default colour and is numbered with 400. If someone says "use Tangerine" they are referring to the base color.
|
|
2570
|
-
Please ask a designer if you have questions about which colours to use.
|
|
2571
|
-
*/
|
|
2572
2572
|
._2puqJ {
|
|
2573
2573
|
position: fixed;
|
|
2574
2574
|
inset: 0px;
|