@7shifts/sous-chef 3.26.0 → 3.27.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/forms/RadioGroupBoxOption/RadioGroupBoxOption.d.ts +2 -1
- package/dist/forms/RadioGroupOption/RadioGroupOption.d.ts +1 -0
- package/dist/forms/index.d.ts +1 -1
- package/dist/index.css +27 -0
- package/dist/index.js +13 -9
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +13 -9
- package/dist/index.modern.js.map +1 -1
- package/dist/layout/CalloutCard/CalloutCard.d.ts +15 -0
- package/dist/layout/CalloutCard/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -8699,15 +8699,18 @@ var useRadioGroupFieldContext = function useRadioGroupFieldContext() {
|
|
|
8699
8699
|
|
|
8700
8700
|
var styles$V = {"label":"_1WGz2","label--truncate":"_mQ9Rd","radio-group-field__label":"_RXyG_"};
|
|
8701
8701
|
|
|
8702
|
-
var styles$W = {"label":"_1Tw96","label--truncate":"_1o8rK","radio-group-box-option":"_2OGKE","radio-group-box-option__box":"_23M9k","radio-group-box-option__label":"_1r-Wg"};
|
|
8702
|
+
var styles$W = {"label":"_1Tw96","label--truncate":"_1o8rK","caption":"_3LIBo","radio-group-box-option":"_2OGKE","radio-group-box-option__box":"_23M9k","radio-group-box-option__box--disabled":"_BoPCr","radio-group-box-option__label":"_1r-Wg","radio-group-box-option__label--disabled":"_3N9Vg","radio-group-box-option__caption":"_2083y","radio-group-box-option__caption--disabled":"_14Zxw"};
|
|
8703
8703
|
|
|
8704
8704
|
var RadioGroupBoxOption = function RadioGroupBoxOption(_ref) {
|
|
8705
|
+
var _classNames, _classNames2, _classNames3;
|
|
8706
|
+
|
|
8705
8707
|
var value = _ref.value,
|
|
8706
8708
|
inputId = _ref.id,
|
|
8707
8709
|
label = _ref.label,
|
|
8708
8710
|
caption = _ref.caption,
|
|
8709
8711
|
testId = _ref.testId,
|
|
8710
|
-
children = _ref.children
|
|
8712
|
+
children = _ref.children,
|
|
8713
|
+
disabled = _ref.disabled;
|
|
8711
8714
|
var radioGroupContext = useRadioGroupFieldContext();
|
|
8712
8715
|
var id = useFieldId({
|
|
8713
8716
|
name: radioGroupContext.name,
|
|
@@ -8723,9 +8726,9 @@ var RadioGroupBoxOption = function RadioGroupBoxOption(_ref) {
|
|
|
8723
8726
|
value: value,
|
|
8724
8727
|
onChange: radioGroupContext.onChange,
|
|
8725
8728
|
checked: radioGroupContext.value !== undefined ? radioGroupContext.value === value : undefined,
|
|
8726
|
-
disabled: radioGroupContext.disabled
|
|
8729
|
+
disabled: radioGroupContext.disabled || disabled
|
|
8727
8730
|
}), React__default.createElement("div", {
|
|
8728
|
-
className: styles$W['radio-group-box-option__box']
|
|
8731
|
+
className: classnames(styles$W['radio-group-box-option__box'], (_classNames = {}, _classNames[styles$W['radio-group-box-option__box--disabled']] = radioGroupContext.disabled || disabled, _classNames))
|
|
8729
8732
|
}, React__default.createElement(Stack, {
|
|
8730
8733
|
space: 16,
|
|
8731
8734
|
alignItems: "center",
|
|
@@ -8734,9 +8737,9 @@ var RadioGroupBoxOption = function RadioGroupBoxOption(_ref) {
|
|
|
8734
8737
|
space: 8,
|
|
8735
8738
|
alignItems: "center"
|
|
8736
8739
|
}, label && React__default.createElement("div", {
|
|
8737
|
-
className: styles$W['radio-group-box-option__label']
|
|
8738
|
-
}, label), caption && React__default.createElement(
|
|
8739
|
-
|
|
8740
|
+
className: classnames(styles$W['radio-group-box-option__label'], (_classNames2 = {}, _classNames2[styles$W['radio-group-box-option__label--disabled']] = radioGroupContext.disabled || disabled, _classNames2))
|
|
8741
|
+
}, label), caption && React__default.createElement("div", {
|
|
8742
|
+
className: classnames(styles$W['radio-group-box-option__caption'], (_classNames3 = {}, _classNames3[styles$W['radio-group-box-option__caption--disabled']] = radioGroupContext.disabled || disabled, _classNames3))
|
|
8740
8743
|
}, caption)))));
|
|
8741
8744
|
};
|
|
8742
8745
|
|
|
@@ -8747,7 +8750,8 @@ var RadioGroupOption = function RadioGroupOption(_ref) {
|
|
|
8747
8750
|
inputId = _ref.id,
|
|
8748
8751
|
label = _ref.label,
|
|
8749
8752
|
caption = _ref.caption,
|
|
8750
|
-
testId = _ref.testId
|
|
8753
|
+
testId = _ref.testId,
|
|
8754
|
+
disabled = _ref.disabled;
|
|
8751
8755
|
var radioGroupContext = useRadioGroupFieldContext();
|
|
8752
8756
|
var id = useFieldId({
|
|
8753
8757
|
name: radioGroupContext.name,
|
|
@@ -8768,7 +8772,7 @@ var RadioGroupOption = function RadioGroupOption(_ref) {
|
|
|
8768
8772
|
value: value,
|
|
8769
8773
|
onChange: radioGroupContext.onChange,
|
|
8770
8774
|
checked: radioGroupContext.value !== undefined ? radioGroupContext.value === value : undefined,
|
|
8771
|
-
disabled: radioGroupContext.disabled
|
|
8775
|
+
disabled: radioGroupContext.disabled || disabled
|
|
8772
8776
|
}), React__default.createElement("span", {
|
|
8773
8777
|
className: styles$X['radio-group-option__custom-input']
|
|
8774
8778
|
})), label && React__default.createElement(Label, {
|