@7shifts/sous-chef 2.17.0 → 2.17.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/SelectField/CustomContainer/CustomContainer.d.ts +2 -6
- package/dist/forms/SelectField/CustomOption/CustomOption.d.ts +2 -5
- package/dist/index.css +1 -2
- package/dist/index.js +31 -47
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +31 -47
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const CustomContainer: (props: ComponentProps<typeof components.SelectContainer> & {
|
|
4
|
-
testId?: string;
|
|
5
|
-
}) => JSX.Element;
|
|
6
|
-
export default CustomContainer;
|
|
1
|
+
declare const _default: typeof import("react-select/src/components/containers").SelectContainer;
|
|
2
|
+
export default _default;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare type Props = ComponentProps<typeof components.Option>;
|
|
4
|
-
declare function CustomOption({ children, ...props }: Props): JSX.Element;
|
|
5
|
-
export default CustomOption;
|
|
1
|
+
declare const _default: typeof import("react-select/src/components/Option").default;
|
|
2
|
+
export default _default;
|
package/dist/index.css
CHANGED
|
@@ -2860,8 +2860,7 @@ Please ask a designer if you have questions about which colours to use.
|
|
|
2860
2860
|
._vgLin {
|
|
2861
2861
|
padding: 16px 12px 16px 12px;
|
|
2862
2862
|
background: #F3F3F3;
|
|
2863
|
-
margin
|
|
2864
|
-
margin-right: 1px;
|
|
2863
|
+
margin: 1px;
|
|
2865
2864
|
position: relative;
|
|
2866
2865
|
border-radius: 3px;
|
|
2867
2866
|
box-shadow: 0 0 0 1px rgba(63, 63, 68, 0.05), 0 1px 3px 0 rgba(63, 63, 68, 0.15);
|
package/dist/index.js
CHANGED
|
@@ -6452,14 +6452,14 @@ var getSelectStyles$1 = function getSelectStyles(_ref) {
|
|
|
6452
6452
|
};
|
|
6453
6453
|
};
|
|
6454
6454
|
|
|
6455
|
-
var _excluded$22 = ["children"
|
|
6455
|
+
var _excluded$22 = ["children"];
|
|
6456
6456
|
|
|
6457
6457
|
function CustomOption(_ref) {
|
|
6458
6458
|
var children = _ref.children,
|
|
6459
|
-
CustomComponent = _ref.CustomComponent,
|
|
6460
6459
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$22);
|
|
6461
6460
|
|
|
6462
|
-
|
|
6461
|
+
var UserCustomOption = props.selectProps.componentsProps.UserCustomOption;
|
|
6462
|
+
return React__default.createElement(Select.components.Option, Object.assign({}, props), React__default.createElement(UserCustomOption, Object.assign({}, props), children));
|
|
6463
6463
|
}
|
|
6464
6464
|
|
|
6465
6465
|
var isScrollingTheSelectMenu = function isScrollingTheSelectMenu(element) {
|
|
@@ -6484,6 +6484,15 @@ var isReactSelectElement = function isReactSelectElement(element) {
|
|
|
6484
6484
|
return typeof firstOption.id === 'string' && firstOption.id.includes('react-select');
|
|
6485
6485
|
};
|
|
6486
6486
|
|
|
6487
|
+
var CustomContainer = function CustomContainer(props) {
|
|
6488
|
+
var componentsProps = props.selectProps.componentsProps;
|
|
6489
|
+
return React__default.createElement(Select.components.SelectContainer, Object.assign({}, props, {
|
|
6490
|
+
innerProps: Object.assign({}, props.innerProps, {
|
|
6491
|
+
'data-testid': componentsProps.testId
|
|
6492
|
+
})
|
|
6493
|
+
}));
|
|
6494
|
+
};
|
|
6495
|
+
|
|
6487
6496
|
var MultiSelectField = function MultiSelectField(_ref) {
|
|
6488
6497
|
var name = _ref.name,
|
|
6489
6498
|
inputId = _ref.id,
|
|
@@ -6538,19 +6547,13 @@ var MultiSelectField = function MultiSelectField(_ref) {
|
|
|
6538
6547
|
onBlur: controllers.onBlur,
|
|
6539
6548
|
isMulti: true,
|
|
6540
6549
|
closeMenuOnSelect: closeOnSelect,
|
|
6550
|
+
componentsProps: {
|
|
6551
|
+
testId: testId,
|
|
6552
|
+
UserCustomOption: UserCustomOption
|
|
6553
|
+
},
|
|
6541
6554
|
components: {
|
|
6542
|
-
SelectContainer:
|
|
6543
|
-
|
|
6544
|
-
innerProps: Object.assign({}, props.innerProps, {
|
|
6545
|
-
'data-testid': testId
|
|
6546
|
-
})
|
|
6547
|
-
}));
|
|
6548
|
-
},
|
|
6549
|
-
Option: UserCustomOption ? function (props) {
|
|
6550
|
-
return React__default.createElement(CustomOption, Object.assign({
|
|
6551
|
-
CustomComponent: UserCustomOption
|
|
6552
|
-
}, props));
|
|
6553
|
-
} : Select.components.Option
|
|
6555
|
+
SelectContainer: CustomContainer,
|
|
6556
|
+
Option: UserCustomOption ? CustomOption : Select.components.Option
|
|
6554
6557
|
},
|
|
6555
6558
|
menuShouldScrollIntoView: menuShouldScrollIntoView,
|
|
6556
6559
|
menuPlacement: menuShouldScrollIntoView ? 'bottom' : 'auto',
|
|
@@ -6591,25 +6594,6 @@ function CustomControl(_ref) {
|
|
|
6591
6594
|
}, props)), children)) : children);
|
|
6592
6595
|
}
|
|
6593
6596
|
|
|
6594
|
-
var _excluded$24 = ["children"];
|
|
6595
|
-
|
|
6596
|
-
function CustomOption$1(_ref) {
|
|
6597
|
-
var children = _ref.children,
|
|
6598
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$24);
|
|
6599
|
-
|
|
6600
|
-
var UserCustomOption = props.selectProps.componentsProps.UserCustomOption;
|
|
6601
|
-
return React__default.createElement(Select.components.Option, Object.assign({}, props), React__default.createElement(UserCustomOption, Object.assign({}, props), children));
|
|
6602
|
-
}
|
|
6603
|
-
|
|
6604
|
-
var CustomContainer = function CustomContainer(props) {
|
|
6605
|
-
var componentsProps = props.selectProps.componentsProps;
|
|
6606
|
-
return React__default.createElement(Select.components.SelectContainer, Object.assign({}, props, {
|
|
6607
|
-
innerProps: Object.assign({}, props.innerProps, {
|
|
6608
|
-
'data-testid': componentsProps.testId
|
|
6609
|
-
})
|
|
6610
|
-
}));
|
|
6611
|
-
};
|
|
6612
|
-
|
|
6613
6597
|
var useSelectField = function useSelectField(_ref) {
|
|
6614
6598
|
var _ref$asToolbarFilter = _ref.asToolbarFilter,
|
|
6615
6599
|
asToolbarFilter = _ref$asToolbarFilter === void 0 ? false : _ref$asToolbarFilter,
|
|
@@ -6660,7 +6644,7 @@ var useSelectField = function useSelectField(_ref) {
|
|
|
6660
6644
|
},
|
|
6661
6645
|
components: {
|
|
6662
6646
|
SelectContainer: CustomContainer,
|
|
6663
|
-
Option: UserCustomOption ? CustomOption
|
|
6647
|
+
Option: UserCustomOption ? CustomOption : Select.components.Option,
|
|
6664
6648
|
Control: SelectedOptionPrefix ? CustomControl : Select.components.Control
|
|
6665
6649
|
},
|
|
6666
6650
|
inputId: controllers.id,
|
|
@@ -6707,13 +6691,13 @@ var SelectField = function SelectField(props) {
|
|
|
6707
6691
|
|
|
6708
6692
|
var styles$A = {"custom-list":"_uC4zU"};
|
|
6709
6693
|
|
|
6710
|
-
var _excluded$
|
|
6694
|
+
var _excluded$24 = ["children", "hasMoreOptions", "hasMoreOptionsFirstLoad"];
|
|
6711
6695
|
|
|
6712
6696
|
var CustomList = function CustomList(_ref) {
|
|
6713
6697
|
var children = _ref.children,
|
|
6714
6698
|
hasMoreOptions = _ref.hasMoreOptions,
|
|
6715
6699
|
hasMoreOptionsFirstLoad = _ref.hasMoreOptionsFirstLoad,
|
|
6716
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6700
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$24);
|
|
6717
6701
|
|
|
6718
6702
|
var showFooter = hasMoreOptions;
|
|
6719
6703
|
|
|
@@ -6728,11 +6712,11 @@ var CustomList = function CustomList(_ref) {
|
|
|
6728
6712
|
}, getLocalizedString('main.START_TYPING_TO_SEE_MORE_OPTIONS')))));
|
|
6729
6713
|
};
|
|
6730
6714
|
|
|
6731
|
-
var _excluded$
|
|
6715
|
+
var _excluded$25 = ["loadOptions"];
|
|
6732
6716
|
|
|
6733
6717
|
var AsyncSelectField = function AsyncSelectField(_ref) {
|
|
6734
6718
|
var loadOptions = _ref.loadOptions,
|
|
6735
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6719
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$25);
|
|
6736
6720
|
|
|
6737
6721
|
var _useState = React.useState(false),
|
|
6738
6722
|
hasMoreOptions = _useState[0],
|
|
@@ -7516,14 +7500,14 @@ var WeekField = function WeekField(_ref) {
|
|
|
7516
7500
|
})));
|
|
7517
7501
|
};
|
|
7518
7502
|
|
|
7519
|
-
var _excluded$
|
|
7503
|
+
var _excluded$26 = ["placeholder", "autoComplete"];
|
|
7520
7504
|
|
|
7521
7505
|
var TimeFieldElement = function TimeFieldElement(_ref, ref) {
|
|
7522
7506
|
var _ref$placeholder = _ref.placeholder,
|
|
7523
7507
|
placeholder = _ref$placeholder === void 0 ? '9am' : _ref$placeholder,
|
|
7524
7508
|
_ref$autoComplete = _ref.autoComplete,
|
|
7525
7509
|
autoComplete = _ref$autoComplete === void 0 ? 'off' : _ref$autoComplete,
|
|
7526
|
-
allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7510
|
+
allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$26);
|
|
7527
7511
|
|
|
7528
7512
|
var _useTextField = useTextField(_extends({}, allOtherProps, {
|
|
7529
7513
|
placeholder: placeholder,
|
|
@@ -7544,12 +7528,12 @@ var TimeFieldElement = function TimeFieldElement(_ref, ref) {
|
|
|
7544
7528
|
|
|
7545
7529
|
var TimeField = React.forwardRef(TimeFieldElement);
|
|
7546
7530
|
|
|
7547
|
-
var _excluded$
|
|
7531
|
+
var _excluded$27 = ["currencySymbol"];
|
|
7548
7532
|
|
|
7549
7533
|
var CurrencyFieldElement = function CurrencyFieldElement(_ref, ref) {
|
|
7550
7534
|
var _ref$currencySymbol = _ref.currencySymbol,
|
|
7551
7535
|
currencySymbol = _ref$currencySymbol === void 0 ? "$" : _ref$currencySymbol,
|
|
7552
|
-
allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7536
|
+
allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$27);
|
|
7553
7537
|
|
|
7554
7538
|
var _useTextField = useTextField(_extends({}, allOtherProps, {
|
|
7555
7539
|
ref: ref
|
|
@@ -7582,7 +7566,7 @@ var CurrencyFieldElement = function CurrencyFieldElement(_ref, ref) {
|
|
|
7582
7566
|
|
|
7583
7567
|
var CurrencyField = React.forwardRef(CurrencyFieldElement);
|
|
7584
7568
|
|
|
7585
|
-
var _excluded$
|
|
7569
|
+
var _excluded$28 = ["max", "min", "precision", "stepSize"];
|
|
7586
7570
|
|
|
7587
7571
|
var PercentageElement = function PercentageElement(_ref, ref) {
|
|
7588
7572
|
var _ref$max = _ref.max,
|
|
@@ -7593,7 +7577,7 @@ var PercentageElement = function PercentageElement(_ref, ref) {
|
|
|
7593
7577
|
precision = _ref$precision === void 0 ? 0 : _ref$precision,
|
|
7594
7578
|
_ref$stepSize = _ref.stepSize,
|
|
7595
7579
|
stepSize = _ref$stepSize === void 0 ? 1 : _ref$stepSize,
|
|
7596
|
-
allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7580
|
+
allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$28);
|
|
7597
7581
|
|
|
7598
7582
|
var _useTextField = useTextField(_extends({}, allOtherProps, {
|
|
7599
7583
|
ref: ref
|
|
@@ -7820,7 +7804,7 @@ var InlineBanner = function InlineBanner(_ref) {
|
|
|
7820
7804
|
|
|
7821
7805
|
var styles$E = {"badge":"_2f81N","badge--warning":"_2g1GI","badge--danger":"_2zLnM","badge--success":"_27QOo","badge--info":"_2gmsM"};
|
|
7822
7806
|
|
|
7823
|
-
var _excluded$
|
|
7807
|
+
var _excluded$29 = ["children", "theme", "title", "testId"];
|
|
7824
7808
|
|
|
7825
7809
|
var Badge = function Badge(_ref, forwardedRef) {
|
|
7826
7810
|
var _classnames;
|
|
@@ -7829,7 +7813,7 @@ var Badge = function Badge(_ref, forwardedRef) {
|
|
|
7829
7813
|
theme = _ref.theme,
|
|
7830
7814
|
title = _ref.title,
|
|
7831
7815
|
testId = _ref.testId,
|
|
7832
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7816
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$29);
|
|
7833
7817
|
|
|
7834
7818
|
var internalRef = React.useRef(null);
|
|
7835
7819
|
var ref = forwardedRef || internalRef;
|