@7shifts/sous-chef 3.27.1 → 3.28.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/dist/forms/MultiSelectField/MultiSelectField.d.ts +3 -1
- package/dist/forms/SelectField/useSelectField.d.ts +1 -1
- package/dist/forms/hooks/useShouldScrollMenuIntoView.d.ts +1 -0
- package/dist/index.css +271 -4
- package/dist/index.js +286 -101
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +286 -101
- package/dist/index.modern.js.map +1 -1
- package/dist/lists/DataTable/DataTable.d.ts +4 -2
- package/dist/lists/DataTable/DataTableCoverShadow/DataTableCoverShadow.d.ts +7 -0
- package/dist/lists/DataTable/DataTableCoverShadow/index.d.ts +1 -0
- package/dist/lists/DataTable/DataTableStickyColumnsContainer/DataTableStickyColumnsContainer.d.ts +10 -0
- package/dist/lists/DataTable/DataTableStickyColumnsContainer/index.d.ts +1 -0
- package/dist/lists/DataTable/constants.d.ts +6 -0
- package/dist/lists/DataTable/domain.d.ts +6 -1
- package/dist/lists/DataTable/types.d.ts +2 -0
- package/dist/lists/hooks/useDataTableScrollState.d.ts +13 -0
- package/dist/utils/browser.d.ts +1 -0
- package/package.json +1 -1
|
@@ -24,7 +24,9 @@ declare type Props<T> = {
|
|
|
24
24
|
testId?: string;
|
|
25
25
|
/** This is to allow disable the seach functionality. Use it just in some edge-cases, for example in touch devices when the user clicks on the field it opens a virtual keyboard to search, sometimes that virtual keyboard taks much space then passing `isSearchable={false}` prevents opening it. */
|
|
26
26
|
isSearchable?: boolean;
|
|
27
|
+
creatableButton?: React.ReactNode;
|
|
28
|
+
onCreate?: (option: string) => void;
|
|
27
29
|
};
|
|
28
30
|
/** Component to make possible choose from a predefined options. */
|
|
29
|
-
declare const MultiSelectField: <T extends unknown>({ name, id: inputId, value, options, onChange, onBlur, CustomOption: UserCustomOption, label, caption, error, placeholder, noOptionsMessage, disabled, closeOnSelect, menuShouldScrollIntoView, testId, isSearchable }: Props<T>) => JSX.Element;
|
|
31
|
+
declare const MultiSelectField: <T extends unknown>({ name, id: inputId, value, options, onChange, onBlur, CustomOption: UserCustomOption, label, caption, error, placeholder, noOptionsMessage, disabled, closeOnSelect, menuShouldScrollIntoView: menuShouldScrollIntoViewProp, testId, isSearchable, creatableButton, onCreate }: Props<T>) => JSX.Element;
|
|
30
32
|
export default MultiSelectField;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Props } from './SelectField';
|
|
3
|
-
export declare const useSelectField: <T extends unknown>({ asToolbarFilter, caption, disabled, error, id, isClearable, label, menuShouldScrollIntoView, name, noOptionsMessage, options, onBlur, onChange, placeholder, value, defaultValue, CustomOption: UserCustomOption, SelectedOptionPrefix, testId, creatableButton, onCreate, isSearchable }: Props<T>) => {
|
|
3
|
+
export declare const useSelectField: <T extends unknown>({ asToolbarFilter, caption, disabled, error, id, isClearable, label, menuShouldScrollIntoView: menuShouldScrollIntoViewProp, name, noOptionsMessage, options, onBlur, onChange, placeholder, value, defaultValue, CustomOption: UserCustomOption, SelectedOptionPrefix, testId, creatableButton, onCreate, isSearchable }: Props<T>) => {
|
|
4
4
|
selectProps: Pick<import("react-select").Props<import("react-select").OptionTypeBase, boolean, import("react-select").GroupTypeBase<any>>, import("react").ReactText> & import("react-select/src/stateManager").Props<import("react-select").OptionTypeBase, boolean, import("react-select").GroupTypeBase<any>> & import("react-select").Props<import("react-select").OptionTypeBase, boolean, import("react-select").GroupTypeBase<any>>;
|
|
5
5
|
fieldProps: {
|
|
6
6
|
caption: import("react").ReactNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useShouldScrollMenuIntoView: (menuShouldScrollIntoView?: boolean | undefined) => boolean;
|
package/dist/index.css
CHANGED
|
@@ -1687,6 +1687,7 @@ h5._3CIA3 {
|
|
|
1687
1687
|
-webkit-hyphens: auto;
|
|
1688
1688
|
-ms-hyphens: auto;
|
|
1689
1689
|
hyphens: auto;
|
|
1690
|
+
background: none;
|
|
1690
1691
|
}
|
|
1691
1692
|
._SpJZY:first-of-type {
|
|
1692
1693
|
border-left: 1px solid var(--color-grey-200);
|
|
@@ -1767,11 +1768,12 @@ h5._3CIA3 {
|
|
|
1767
1768
|
background: var(--color-white);
|
|
1768
1769
|
overflow: auto;
|
|
1769
1770
|
outline: none;
|
|
1770
|
-
padding: 32px;
|
|
1771
|
+
padding: 32px 24px;
|
|
1771
1772
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
|
|
1772
|
-
min-height: 200px;
|
|
1773
1773
|
display: flex;
|
|
1774
1774
|
flex-direction: column;
|
|
1775
|
+
box-sizing: border-box;
|
|
1776
|
+
min-height: 266px;
|
|
1775
1777
|
}
|
|
1776
1778
|
._wQQ_2 > form {
|
|
1777
1779
|
display: contents;
|
|
@@ -1790,11 +1792,13 @@ h5._3CIA3 {
|
|
|
1790
1792
|
color: var(--color-grey-500);
|
|
1791
1793
|
font-weight: 600;
|
|
1792
1794
|
font-family: "Proxima Nova", sans-serif;
|
|
1795
|
+
padding: 0;
|
|
1793
1796
|
}
|
|
1794
1797
|
._2zYre {
|
|
1795
1798
|
display: flex;
|
|
1796
1799
|
justify-content: end;
|
|
1797
1800
|
margin-bottom: -20px;
|
|
1801
|
+
margin-right: 8px;
|
|
1798
1802
|
z-index: calc(var(--z-index-base) + 2);
|
|
1799
1803
|
}
|
|
1800
1804
|
|
|
@@ -1815,8 +1819,8 @@ h5._3CIA3 {
|
|
|
1815
1819
|
font-size: 14px;
|
|
1816
1820
|
line-height: 16px;
|
|
1817
1821
|
position: relative;
|
|
1822
|
+
padding: 0 8px 0 8px;
|
|
1818
1823
|
}
|
|
1819
|
-
|
|
1820
1824
|
._2ErCP {
|
|
1821
1825
|
z-index: var(--z-index-base);
|
|
1822
1826
|
background: #fff no-repeat;
|
|
@@ -1837,12 +1841,15 @@ h5._3CIA3 {
|
|
|
1837
1841
|
margin: -30px 0 0;
|
|
1838
1842
|
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 70%, #fff);
|
|
1839
1843
|
}
|
|
1844
|
+
._3NET7 {
|
|
1845
|
+
padding-bottom: 8px;
|
|
1846
|
+
}
|
|
1840
1847
|
._LKOr5 {
|
|
1841
1848
|
flex: 1;
|
|
1842
1849
|
display: flex;
|
|
1843
1850
|
flex-direction: column;
|
|
1844
1851
|
justify-content: flex-end;
|
|
1845
|
-
padding
|
|
1852
|
+
padding: 32px 8px 0 8px;
|
|
1846
1853
|
}
|
|
1847
1854
|
|
|
1848
1855
|
._Qktd- {
|
|
@@ -2221,6 +2228,266 @@ input:disabled + ._2mA8e::after {
|
|
|
2221
2228
|
._3Mm-v._3Mm-v {
|
|
2222
2229
|
border-bottom-right-radius: 8px;
|
|
2223
2230
|
}
|
|
2231
|
+
@-webkit-keyframes _3FIb5 {
|
|
2232
|
+
from {
|
|
2233
|
+
opacity: 0;
|
|
2234
|
+
}
|
|
2235
|
+
to {
|
|
2236
|
+
opacity: 1;
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
@keyframes _3FIb5 {
|
|
2240
|
+
from {
|
|
2241
|
+
opacity: 0;
|
|
2242
|
+
}
|
|
2243
|
+
to {
|
|
2244
|
+
opacity: 1;
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
._25lPo {
|
|
2248
|
+
position: relative;
|
|
2249
|
+
overflow: auto;
|
|
2250
|
+
white-space: nowrap;
|
|
2251
|
+
}
|
|
2252
|
+
._25lPo table {
|
|
2253
|
+
table-layout: auto;
|
|
2254
|
+
}
|
|
2255
|
+
._2S3Jq:not(._RfN1H) table tr > td:first-of-type {
|
|
2256
|
+
transform-style: preserve-3d;
|
|
2257
|
+
}
|
|
2258
|
+
._2S3Jq:not(._RfN1H) table tr > td:first-of-type::before {
|
|
2259
|
+
content: "";
|
|
2260
|
+
width: 10px;
|
|
2261
|
+
height: 100%;
|
|
2262
|
+
position: absolute;
|
|
2263
|
+
z-index: 0;
|
|
2264
|
+
transform: translateZ(-1px);
|
|
2265
|
+
top: 0;
|
|
2266
|
+
-webkit-animation: _3FIb5 1s;
|
|
2267
|
+
animation: _3FIb5 1s;
|
|
2268
|
+
box-shadow: -7px 12px 11px 3px #888;
|
|
2269
|
+
right: 0;
|
|
2270
|
+
}
|
|
2271
|
+
._2S3Jq._RfN1H table tr > td:first-of-type {
|
|
2272
|
+
border-right: 4px solid var(--color-grey-200);
|
|
2273
|
+
}
|
|
2274
|
+
._1Jszb table thead tr th:first-of-type {
|
|
2275
|
+
position: sticky;
|
|
2276
|
+
left: 0;
|
|
2277
|
+
background-color: var(--color-white);
|
|
2278
|
+
}
|
|
2279
|
+
._1Jszb table tbody tr td:first-of-type {
|
|
2280
|
+
position: sticky;
|
|
2281
|
+
left: 0;
|
|
2282
|
+
z-index: 1;
|
|
2283
|
+
background-color: var(--color-white);
|
|
2284
|
+
}
|
|
2285
|
+
._1Jszb table tfoot tr td:first-of-type {
|
|
2286
|
+
position: sticky;
|
|
2287
|
+
left: 0;
|
|
2288
|
+
z-index: 1;
|
|
2289
|
+
}
|
|
2290
|
+
._1Jszb table tbody tr:first-of-type > td:first-of-type::after {
|
|
2291
|
+
content: "";
|
|
2292
|
+
width: 6px;
|
|
2293
|
+
height: 1px;
|
|
2294
|
+
position: absolute;
|
|
2295
|
+
background: var(--color-white);
|
|
2296
|
+
transform: translateZ(-1px);
|
|
2297
|
+
left: -1px;
|
|
2298
|
+
top: -1px;
|
|
2299
|
+
}
|
|
2300
|
+
._Zq6VQ:not(._RfN1H) table tr > td:last-of-type {
|
|
2301
|
+
transform-style: preserve-3d;
|
|
2302
|
+
}
|
|
2303
|
+
._Zq6VQ:not(._RfN1H) table tr > td:last-of-type::before {
|
|
2304
|
+
content: "";
|
|
2305
|
+
width: 10px;
|
|
2306
|
+
height: 100%;
|
|
2307
|
+
position: absolute;
|
|
2308
|
+
z-index: 0;
|
|
2309
|
+
transform: translateZ(-1px);
|
|
2310
|
+
top: 0;
|
|
2311
|
+
-webkit-animation: _3FIb5 1s;
|
|
2312
|
+
animation: _3FIb5 1s;
|
|
2313
|
+
box-shadow: 7px 12px 11px 3px #888;
|
|
2314
|
+
left: 0;
|
|
2315
|
+
}
|
|
2316
|
+
._Zq6VQ._RfN1H table tr > td:last-of-type {
|
|
2317
|
+
border-left: 4px solid var(--color-grey-200);
|
|
2318
|
+
}
|
|
2319
|
+
._2riDu table thead tr th:last-of-type {
|
|
2320
|
+
position: sticky;
|
|
2321
|
+
right: 0;
|
|
2322
|
+
background-color: var(--color-white);
|
|
2323
|
+
}
|
|
2324
|
+
._2riDu table tbody tr td:last-of-type {
|
|
2325
|
+
position: sticky;
|
|
2326
|
+
right: 0;
|
|
2327
|
+
z-index: 1;
|
|
2328
|
+
background-color: var(--color-white);
|
|
2329
|
+
}
|
|
2330
|
+
._2riDu table tfoot tr td:last-of-type {
|
|
2331
|
+
position: sticky;
|
|
2332
|
+
right: 0;
|
|
2333
|
+
z-index: 1;
|
|
2334
|
+
}
|
|
2335
|
+
._2riDu table tbody tr:first-of-type > td:last-of-type::after {
|
|
2336
|
+
content: "";
|
|
2337
|
+
width: 6px;
|
|
2338
|
+
height: 1px;
|
|
2339
|
+
position: absolute;
|
|
2340
|
+
background: var(--color-white);
|
|
2341
|
+
transform: translateZ(-1px);
|
|
2342
|
+
right: -1px;
|
|
2343
|
+
top: -1px;
|
|
2344
|
+
}
|
|
2345
|
+
._2riDu:not(._1735l) table tbody tr:last-of-type > td:last-of-type::after {
|
|
2346
|
+
content: "";
|
|
2347
|
+
width: 6px;
|
|
2348
|
+
height: 1px;
|
|
2349
|
+
position: absolute;
|
|
2350
|
+
background: var(--color-white);
|
|
2351
|
+
transform: translateZ(-1px);
|
|
2352
|
+
right: -1px;
|
|
2353
|
+
bottom: -1px;
|
|
2354
|
+
}
|
|
2355
|
+
._1Jszb:not(._1735l) table tbody tr:last-of-type > td:first-of-type::after {
|
|
2356
|
+
content: "";
|
|
2357
|
+
width: 6px;
|
|
2358
|
+
height: 1px;
|
|
2359
|
+
position: absolute;
|
|
2360
|
+
background: var(--color-white);
|
|
2361
|
+
transform: translateZ(-1px);
|
|
2362
|
+
left: -1px;
|
|
2363
|
+
bottom: -1px;
|
|
2364
|
+
}
|
|
2365
|
+
._1735l._2riDu table tfoot tr:last-of-type > td:last-of-type::after {
|
|
2366
|
+
content: "";
|
|
2367
|
+
width: 6px;
|
|
2368
|
+
height: 1px;
|
|
2369
|
+
position: absolute;
|
|
2370
|
+
background: var(--color-white);
|
|
2371
|
+
transform: translateZ(-1px);
|
|
2372
|
+
right: -1px;
|
|
2373
|
+
bottom: -1px;
|
|
2374
|
+
}
|
|
2375
|
+
._1735l._1Jszb table tfoot tr:last-of-type > td:first-of-type::after {
|
|
2376
|
+
content: "";
|
|
2377
|
+
width: 6px;
|
|
2378
|
+
height: 1px;
|
|
2379
|
+
position: absolute;
|
|
2380
|
+
background: var(--color-white);
|
|
2381
|
+
transform: translateZ(-1px);
|
|
2382
|
+
left: -1px;
|
|
2383
|
+
bottom: -1px;
|
|
2384
|
+
}
|
|
2385
|
+
@-webkit-keyframes _22OAU {
|
|
2386
|
+
from {
|
|
2387
|
+
box-shadow: inset 5px 0px 0px -5px #88888830;
|
|
2388
|
+
}
|
|
2389
|
+
to {
|
|
2390
|
+
box-shadow: inset 5px 0px 9px -5px #88888830;
|
|
2391
|
+
}
|
|
2392
|
+
}
|
|
2393
|
+
@keyframes _22OAU {
|
|
2394
|
+
from {
|
|
2395
|
+
box-shadow: inset 5px 0px 0px -5px #88888830;
|
|
2396
|
+
}
|
|
2397
|
+
to {
|
|
2398
|
+
box-shadow: inset 5px 0px 9px -5px #88888830;
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
@-webkit-keyframes _2i_F1 {
|
|
2402
|
+
from {
|
|
2403
|
+
box-shadow: inset -5px 0px 0px -5px #88888830;
|
|
2404
|
+
}
|
|
2405
|
+
to {
|
|
2406
|
+
box-shadow: inset -5px 0px 9px -5px #88888830;
|
|
2407
|
+
}
|
|
2408
|
+
}
|
|
2409
|
+
@keyframes _2i_F1 {
|
|
2410
|
+
from {
|
|
2411
|
+
box-shadow: inset -5px 0px 0px -5px #88888830;
|
|
2412
|
+
}
|
|
2413
|
+
to {
|
|
2414
|
+
box-shadow: inset -5px 0px 9px -5px #88888830;
|
|
2415
|
+
}
|
|
2416
|
+
}
|
|
2417
|
+
._3S_6c {
|
|
2418
|
+
height: calc(100% - 28px);
|
|
2419
|
+
width: 20px;
|
|
2420
|
+
position: absolute;
|
|
2421
|
+
display: block;
|
|
2422
|
+
transform-style: preserve-3d;
|
|
2423
|
+
z-index: 2;
|
|
2424
|
+
box-sizing: border-box;
|
|
2425
|
+
}
|
|
2426
|
+
._3Z4CV {
|
|
2427
|
+
height: 100%;
|
|
2428
|
+
}
|
|
2429
|
+
._2Ww7z {
|
|
2430
|
+
border: 1px solid var(--color-grey-200);
|
|
2431
|
+
border-right: 0;
|
|
2432
|
+
border-bottom-left-radius: 8px;
|
|
2433
|
+
border-top-left-radius: 8px;
|
|
2434
|
+
left: 0;
|
|
2435
|
+
bottom: 0;
|
|
2436
|
+
box-shadow: inset 5px 0px 9px -5px #88888830;
|
|
2437
|
+
-webkit-animation: _22OAU 1s;
|
|
2438
|
+
animation: _22OAU 1s;
|
|
2439
|
+
}
|
|
2440
|
+
._2Ww7z::after {
|
|
2441
|
+
content: "";
|
|
2442
|
+
width: 6px;
|
|
2443
|
+
height: 1px;
|
|
2444
|
+
position: absolute;
|
|
2445
|
+
background: var(--color-white);
|
|
2446
|
+
transform: translateZ(-1px);
|
|
2447
|
+
left: -1px;
|
|
2448
|
+
top: -1px;
|
|
2449
|
+
}
|
|
2450
|
+
._2Ww7z::before {
|
|
2451
|
+
content: "";
|
|
2452
|
+
width: 6px;
|
|
2453
|
+
height: 1px;
|
|
2454
|
+
position: absolute;
|
|
2455
|
+
background: var(--color-white);
|
|
2456
|
+
transform: translateZ(-1px);
|
|
2457
|
+
left: -1px;
|
|
2458
|
+
bottom: -1px;
|
|
2459
|
+
}
|
|
2460
|
+
._3UwN8 {
|
|
2461
|
+
border: 1px solid var(--color-grey-200);
|
|
2462
|
+
border-left: 0;
|
|
2463
|
+
border-bottom-right-radius: 8px;
|
|
2464
|
+
border-top-right-radius: 8px;
|
|
2465
|
+
right: 0;
|
|
2466
|
+
bottom: 0;
|
|
2467
|
+
box-shadow: inset -5px 0px 9px -5px #88888830;
|
|
2468
|
+
-webkit-animation: _2i_F1 1s;
|
|
2469
|
+
animation: _2i_F1 1s;
|
|
2470
|
+
}
|
|
2471
|
+
._3UwN8::after {
|
|
2472
|
+
content: "";
|
|
2473
|
+
width: 6px;
|
|
2474
|
+
height: 1px;
|
|
2475
|
+
position: absolute;
|
|
2476
|
+
background: var(--color-white);
|
|
2477
|
+
transform: translateZ(-1px);
|
|
2478
|
+
right: -1px;
|
|
2479
|
+
top: -1px;
|
|
2480
|
+
}
|
|
2481
|
+
._3UwN8::before {
|
|
2482
|
+
content: "";
|
|
2483
|
+
width: 6px;
|
|
2484
|
+
height: 1px;
|
|
2485
|
+
position: absolute;
|
|
2486
|
+
background: var(--color-white);
|
|
2487
|
+
transform: translateZ(-1px);
|
|
2488
|
+
right: -1px;
|
|
2489
|
+
bottom: -1px;
|
|
2490
|
+
}
|
|
2224
2491
|
._1cDCR {
|
|
2225
2492
|
flex: 1;
|
|
2226
2493
|
display: "flex";
|