@7shifts/sous-chef 3.56.2-beta3 → 3.57.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/NumberField/NumberField.d.ts +13 -0
- package/dist/forms/NumberField/index.d.ts +1 -0
- package/dist/forms/index.d.ts +2 -1
- package/dist/index.css +11 -14
- package/dist/index.css.map +1 -1
- package/dist/index.js +390 -366
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +394 -369
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Props as TextFieldProps } from '../TextField/TextField';
|
|
3
|
+
/**
|
|
4
|
+
* `NumberField` is an extended `TextField` input with validation and formatting in place to properly display number values.
|
|
5
|
+
* In its default state it only allows whole numbers, but it can be configured to allow decimals and negative values.
|
|
6
|
+
*/
|
|
7
|
+
declare const NumberField: React.ForwardRefExoticComponent<{
|
|
8
|
+
max?: number | undefined;
|
|
9
|
+
min?: number | undefined;
|
|
10
|
+
precision?: number | undefined;
|
|
11
|
+
stepSize?: number | undefined;
|
|
12
|
+
} & Omit<TextFieldProps, "maxLength"> & React.RefAttributes<HTMLInputElement>>;
|
|
13
|
+
export default NumberField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './NumberField';
|
package/dist/forms/index.d.ts
CHANGED
|
@@ -22,7 +22,8 @@ import FormSection from './FormSection';
|
|
|
22
22
|
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
27
|
export type { PasswordCriteria } from './PasswordField/types';
|
|
27
28
|
export type { SelectOption, SelectOptions, GroupOption, CustomOptionProps, SelectedOptionPrefixProps } from './SelectField/types';
|
|
28
29
|
export type { AsyncSelectOptions } from './AsyncSelectField/types';
|
package/dist/index.css
CHANGED
|
@@ -1118,14 +1118,14 @@ Just for future references:
|
|
|
1118
1118
|
}
|
|
1119
1119
|
._G3b-p::before {
|
|
1120
1120
|
top: 0;
|
|
1121
|
-
box-shadow: -6px -6px 0 0
|
|
1121
|
+
box-shadow: -6px -6px 0 0 var(--corner-background-color);
|
|
1122
1122
|
}
|
|
1123
1123
|
._YUMxZ {
|
|
1124
1124
|
bottom: -1px;
|
|
1125
1125
|
}
|
|
1126
1126
|
._YUMxZ::before {
|
|
1127
1127
|
bottom: 0;
|
|
1128
|
-
box-shadow: -6px 6px 0 0
|
|
1128
|
+
box-shadow: -6px 6px 0 0 var(--corner-background-color);
|
|
1129
1129
|
}
|
|
1130
1130
|
._xUVcY {
|
|
1131
1131
|
width: var(--border-radius-600);
|
|
@@ -1148,14 +1148,14 @@ Just for future references:
|
|
|
1148
1148
|
}
|
|
1149
1149
|
._BE0hn::before {
|
|
1150
1150
|
top: 0;
|
|
1151
|
-
box-shadow: 6px -6px 0 0
|
|
1151
|
+
box-shadow: 6px -6px 0 0 var(--corner-background-color);
|
|
1152
1152
|
}
|
|
1153
1153
|
._UtFdB {
|
|
1154
1154
|
bottom: -1px;
|
|
1155
1155
|
}
|
|
1156
1156
|
._UtFdB::before {
|
|
1157
1157
|
bottom: 0;
|
|
1158
|
-
box-shadow: 6px 6px 0 0
|
|
1158
|
+
box-shadow: 6px 6px 0 0 var(--corner-background-color);
|
|
1159
1159
|
}
|
|
1160
1160
|
._omAUf {
|
|
1161
1161
|
padding: 16px 12px 16px 12px;
|
|
@@ -1800,24 +1800,21 @@ h5._6SgoN {
|
|
|
1800
1800
|
height: 80px;
|
|
1801
1801
|
border-radius: 50%;
|
|
1802
1802
|
}
|
|
1803
|
-
.
|
|
1803
|
+
._hhDnr:first-of-type > td {
|
|
1804
|
+
border-top: 1px solid var(--color-grey-200);
|
|
1805
|
+
}
|
|
1806
|
+
._hhDnr:focus:not(:focus-visible) {
|
|
1804
1807
|
/* Remove the focus indicator on mouse-focus for browsers
|
|
1805
1808
|
that do support :focus-visible */
|
|
1806
1809
|
outline: none;
|
|
1807
1810
|
}
|
|
1808
|
-
|
|
1809
|
-
._II3M2 {
|
|
1811
|
+
._ej5Ke {
|
|
1810
1812
|
cursor: pointer;
|
|
1811
1813
|
}
|
|
1812
|
-
.
|
|
1814
|
+
._ej5Ke:not(._qDTAh):hover td {
|
|
1813
1815
|
background-color: var(--color-grey-100);
|
|
1814
1816
|
}
|
|
1815
|
-
|
|
1816
|
-
._nG--Q:first-of-type > td {
|
|
1817
|
-
border-top: 1px solid var(--color-grey-200);
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
._ho205 td {
|
|
1817
|
+
._qDTAh td {
|
|
1821
1818
|
background-color: var(--color-blackberry-100);
|
|
1822
1819
|
}
|
|
1823
1820
|
._ffXgN {
|