@7shifts/sous-chef 3.89.5 → 3.90.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.
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { Props as TextFieldProps } from '../TextField/TextField';
3
+ type Props = Omit<TextFieldProps, 'suffix' | 'prefix' | 'autoComplete' | 'defaultValue' | 'maxLength'>;
4
+ declare const ColorField: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
5
+ export default ColorField;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ onClose: () => void;
4
+ triggerRef: React.RefObject<HTMLElement>;
5
+ selectedColor?: string;
6
+ onSelect: (color: string) => void;
7
+ };
8
+ declare const ColorsOverlay: ({ onClose, triggerRef, selectedColor, onSelect }: Props) => React.JSX.Element;
9
+ export default ColorsOverlay;
@@ -0,0 +1 @@
1
+ export { default } from './ColorOverlay';
@@ -0,0 +1,4 @@
1
+ export declare const useColorKeyboardNavigation: (selectedColor: string) => {
2
+ selectedColorIndex: number | null;
3
+ setSelectedColorIndex: import("react").Dispatch<import("react").SetStateAction<number | null>>;
4
+ };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ color: string;
4
+ };
5
+ declare const ColorSwatch: ({ color }: Props) => React.JSX.Element;
6
+ export default ColorSwatch;
@@ -0,0 +1 @@
1
+ export { default } from './ColorSwatch';
@@ -0,0 +1 @@
1
+ export declare const SEQUENTIAL_COLORS: readonly ["seq-18", "seq-4", "seq-7", "seq-16", "seq-12", "seq-6", "seq-9", "seq-3", "seq-11", "seq-1", "seq-13", "seq-10", "seq-14", "seq-8", "seq-19", "seq-20", "seq-2", "seq-17", "seq-15", "seq-5"];
@@ -0,0 +1 @@
1
+ export { default } from './ColorField';
@@ -23,7 +23,8 @@ import FormFooter from './FormFooter';
23
23
  import FormFeedback from './FormFeedback';
24
24
  import PhoneField from './PhoneField';
25
25
  import NumberField from './NumberField';
26
- export { Form, FormRow, TextAreaField, TextField, CheckboxField, PillSelectField, RadioGroupField, RadioGroupOption, RadioGroupBoxOption, PasswordField, MultiSelectField, SelectField, AsyncSelectField, DateField, DateRangeField, WeekField, TimeField, TimeRangeField, CurrencyField, PercentageField, FormSection, FormFooter, FormFeedback, PhoneField, NumberField, SIZE_25_PERCENT, SIZE_33_PERCENT, SIZE_50_PERCENT, SIZE_66_PERCENT, SIZE_75_PERCENT };
26
+ import ColorField from './ColorField';
27
+ export { Form, FormRow, TextAreaField, TextField, CheckboxField, PillSelectField, RadioGroupField, RadioGroupOption, RadioGroupBoxOption, PasswordField, MultiSelectField, SelectField, AsyncSelectField, DateField, DateRangeField, WeekField, TimeField, TimeRangeField, CurrencyField, PercentageField, FormSection, FormFooter, FormFeedback, PhoneField, NumberField, ColorField, SIZE_25_PERCENT, SIZE_33_PERCENT, SIZE_50_PERCENT, SIZE_66_PERCENT, SIZE_75_PERCENT };
27
28
  export type { PasswordCriteria } from './PasswordField/types';
28
29
  export type { SelectOption, SelectOptions, GroupOption, CustomOptionProps, SelectedOptionPrefixProps } from './SelectField/types';
29
30
  export type { PillSelectOption } from './PillSelectField/types';
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { IconSize } from '../types';
3
+ type Props = {
4
+ size?: IconSize;
5
+ color?: string;
6
+ testId?: string;
7
+ } & React.SVGProps<SVGSVGElement>;
8
+ declare const IconCheckCircle: React.ForwardRefExoticComponent<Omit<Props, 'ref'>>;
9
+ export default IconCheckCircle;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { IconSize } from '../types';
3
+ type Props = {
4
+ size?: IconSize;
5
+ color?: string;
6
+ testId?: string;
7
+ } & React.SVGProps<SVGSVGElement>;
8
+ declare const IconCircleHalfStroke: React.ForwardRefExoticComponent<Omit<Props, 'ref'>>;
9
+ export default IconCircleHalfStroke;
@@ -37,11 +37,13 @@ export { default as IconCamera } from './IconCamera';
37
37
  export { default as IconCashRegister } from './IconCashRegister';
38
38
  export { default as IconChartBar } from './IconChartBar';
39
39
  export { default as IconCheckCircleIncomplete } from './IconCheckCircleIncomplete';
40
+ export { default as IconCheckCircle } from './IconCheckCircle';
40
41
  export { default as IconCheck } from './IconCheck';
41
42
  export { default as IconChevronDown } from './IconChevronDown';
42
43
  export { default as IconChevronLeft } from './IconChevronLeft';
43
44
  export { default as IconChevronRight } from './IconChevronRight';
44
45
  export { default as IconChevronUp } from './IconChevronUp';
46
+ export { default as IconCircleHalfStroke } from './IconCircleHalfStroke';
45
47
  export { default as IconClipboardList } from './IconClipboardList';
46
48
  export { default as IconClockExclamation } from './IconClockExclamation';
47
49
  export { default as IconClockRewind } from './IconClockRewind';
package/dist/index.css CHANGED
@@ -697,6 +697,9 @@ Just for future references:
697
697
  background: var(--color-surface-inverse);
698
698
  color: var(--color-surface-on-inverse);
699
699
  }
700
+ ._UUdng a {
701
+ color: var(--color-surface-on-inverse);
702
+ }
700
703
  ._brSNX {
701
704
  background: var(--color-surface-container);
702
705
  color: var(--color-surface-on-color);
@@ -1172,6 +1175,7 @@ Just for future references:
1172
1175
  min-width: 120px;
1173
1176
  padding: 20px;
1174
1177
  box-sizing: border-box;
1178
+ border-radius: var(--border-radius-400);
1175
1179
  }
1176
1180
  ._AktVc {
1177
1181
  all: unset;
@@ -1447,7 +1451,10 @@ h5._i2LHD {
1447
1451
  ._91hvH {
1448
1452
  list-style: none;
1449
1453
  margin: -20px;
1450
- padding: 0;
1454
+ padding: 8px;
1455
+ }
1456
+ ._NrB4V {
1457
+ border-radius: var(--border-radius-400);
1451
1458
  }
1452
1459
  ._aMs9c {
1453
1460
  background: linear-gradient(0deg, var(--color-hover-darken) 0%, var(--color-hover-darken) 100%), var(--color-surface-container);
@@ -1460,12 +1467,16 @@ h5._i2LHD {
1460
1467
  }
1461
1468
  ._W12mF {
1462
1469
  cursor: pointer;
1470
+ min-width: 200px;
1471
+ max-width: 300px;
1472
+ border-radius: var(--border-radius-400);
1463
1473
  }
1464
1474
  ._Zu9cD {
1465
1475
  background-color: var(--color-primary-container-variant);
1466
1476
  }
1467
1477
  ._Zu9cD ._xS6fS {
1468
1478
  color: var(--color-primary-on-container-variant);
1479
+ font-weight: var(--p-font-weight-bold);
1469
1480
  }
1470
1481
  ._Zu9cD ._7EI7m {
1471
1482
  color: var(--color-primary-on-container-variant);
@@ -1495,10 +1506,10 @@ h5._i2LHD {
1495
1506
  line-height: var(--font-line-height-200);
1496
1507
  font-weight: var(--p-font-weight-normal);
1497
1508
  color: var(--color-surface-on-color);
1498
- padding: 12px;
1509
+ padding: 8px 12px;
1499
1510
  display: flex;
1500
1511
  white-space: nowrap;
1501
- gap: 8px;
1512
+ gap: 12px;
1502
1513
  align-items: center;
1503
1514
  }
1504
1515
  ._7EI7m {
@@ -1526,6 +1537,33 @@ h5._i2LHD {
1526
1537
  ._vC0uY:focus {
1527
1538
  outline: none;
1528
1539
  }
1540
+ ._ObP6B {
1541
+ display: flex;
1542
+ gap: 12px;
1543
+ align-items: center;
1544
+ }
1545
+ ._UA23u {
1546
+ width: 16px;
1547
+ height: 16px;
1548
+ }
1549
+ ._dpo67 {
1550
+ display: flex;
1551
+ align-items: center;
1552
+ line-height: 0;
1553
+ flex-shrink: 0;
1554
+ box-sizing: border-box;
1555
+ }
1556
+ ._X4fIx {
1557
+ position: fixed;
1558
+ z-index: var(--z-index-dropdown-level-2);
1559
+ box-shadow: 0 0 12px -3px var(--color-shadow-overlay);
1560
+ background: var(--color-surface-container);
1561
+ transform-origin: top right;
1562
+ min-width: 120px;
1563
+ padding: 20px;
1564
+ box-sizing: border-box;
1565
+ border-radius: var(--border-radius-400);
1566
+ }
1529
1567
  ._TXXpM {
1530
1568
  position: relative;
1531
1569
  height: 100%;
@@ -5389,6 +5427,57 @@ input._TEU6N {
5389
5427
  ._iIsuB {
5390
5428
  background-image: url(./flags/zw.svg);
5391
5429
  }
5430
+ ._LTVgG {
5431
+ position: absolute;
5432
+ background-color: var(--color-surface-color);
5433
+ padding: 20px;
5434
+ z-index: 1000;
5435
+ display: grid;
5436
+ grid-template-columns: repeat(5, 1fr);
5437
+ gap: 12px;
5438
+ border-radius: var(--border-radius-400);
5439
+ box-shadow: 0 0 12px -3px var(--color-shadow-overlay);
5440
+ }
5441
+ ._R1mls {
5442
+ width: 44px;
5443
+ height: 44px;
5444
+ padding: 4px;
5445
+ box-sizing: border-box;
5446
+ border: 0;
5447
+ background: transparent;
5448
+ }
5449
+ ._M-8rP {
5450
+ width: 100%;
5451
+ height: 100%;
5452
+ border-radius: 50%;
5453
+ position: relative;
5454
+ box-sizing: border-box;
5455
+ cursor: pointer;
5456
+ }
5457
+ ._M-8rP::after {
5458
+ content: "";
5459
+ position: absolute;
5460
+ top: -4px;
5461
+ left: -4px;
5462
+ width: 40px;
5463
+ height: 40px;
5464
+ border-radius: 50%;
5465
+ border: 2px solid transparent;
5466
+ }
5467
+ ._o92fv::after {
5468
+ border-color: var(--color-primary-color);
5469
+ }
5470
+ ._QBSCQ:not(._o92fv)::after {
5471
+ border-color: var(--color-outline);
5472
+ }
5473
+ ._M-8rP:hover:not(._o92fv)::after {
5474
+ border-color: var(--color-outline);
5475
+ }
5476
+ ._UUuiJ {
5477
+ border-radius: 100%;
5478
+ width: 16px;
5479
+ height: 16px;
5480
+ }
5392
5481
  ._V1U8v {
5393
5482
  display: flex;
5394
5483
  justify-content: center;