@razorpay/blade 6.2.0 → 6.2.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/CHANGELOG.md +6 -0
- package/build/components/index.d.ts +2 -2
- package/build/components/index.native.d.ts +2 -2
- package/build/components/index.native.js +39 -39
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +136 -132
- package/build/components/index.web.js.map +1 -1
- package/build/css/bankingThemeDarkDesktop.css +1 -1
- package/build/css/bankingThemeDarkMobile.css +1 -1
- package/build/css/bankingThemeLightDesktop.css +1 -1
- package/build/css/bankingThemeLightMobile.css +1 -1
- package/build/css/paymentThemeDarkDesktop.css +1 -1
- package/build/css/paymentThemeDarkMobile.css +1 -1
- package/build/css/paymentThemeLightDesktop.css +1 -1
- package/build/css/paymentThemeLightMobile.css +1 -1
- package/package.json +1 -1
|
@@ -3959,7 +3959,7 @@ var getSpacingValue = function getSpacingValue(_ref) {
|
|
|
3959
3959
|
return value ? makeSpace(get_1(theme, value)) : undefined;
|
|
3960
3960
|
};
|
|
3961
3961
|
|
|
3962
|
-
var
|
|
3962
|
+
var getBaseBoxStyles = function getBaseBoxStyles(_ref2) {
|
|
3963
3963
|
var theme = _ref2.theme,
|
|
3964
3964
|
display = _ref2.display,
|
|
3965
3965
|
flex = _ref2.flex,
|
|
@@ -4064,15 +4064,15 @@ var getBoxStyles = function getBoxStyles(_ref2) {
|
|
|
4064
4064
|
};
|
|
4065
4065
|
};
|
|
4066
4066
|
|
|
4067
|
-
var
|
|
4068
|
-
displayName: "
|
|
4069
|
-
componentId: "
|
|
4070
|
-
})(
|
|
4067
|
+
var BaseBox = /*#__PURE__*/styled.div.withConfig({
|
|
4068
|
+
displayName: "BaseBoxweb__BaseBox",
|
|
4069
|
+
componentId: "sc-1icfu8j-0"
|
|
4070
|
+
})(getBaseBoxStyles);
|
|
4071
4071
|
|
|
4072
4072
|
function ownKeys$R(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4073
4073
|
|
|
4074
4074
|
function _objectSpread$R(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$R(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$R(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4075
|
-
var StyledActionList = /*#__PURE__*/styled(
|
|
4075
|
+
var StyledActionList = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
4076
4076
|
displayName: "StyledActionListweb__StyledActionList",
|
|
4077
4077
|
componentId: "lwcs1w-0"
|
|
4078
4078
|
})(function (props) {
|
|
@@ -4089,7 +4089,7 @@ var getBaseListBoxWrapperStyles = function getBaseListBoxWrapperStyles(props) {
|
|
|
4089
4089
|
function ownKeys$Q(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4090
4090
|
|
|
4091
4091
|
function _objectSpread$Q(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$Q(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$Q(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4092
|
-
var StyledListBoxWrapper = /*#__PURE__*/styled(
|
|
4092
|
+
var StyledListBoxWrapper = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
4093
4093
|
displayName: "StyledListBoxWrapperweb__StyledListBoxWrapper",
|
|
4094
4094
|
componentId: "sc-1eo4pr6-0"
|
|
4095
4095
|
})(function (props) {
|
|
@@ -4862,7 +4862,7 @@ var getBaseActionListItemStyles = function getBaseActionListItemStyles(props) {
|
|
|
4862
4862
|
function ownKeys$M(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4863
4863
|
|
|
4864
4864
|
function _objectSpread$M(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$M(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$M(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4865
|
-
var StyledActionListItem = /*#__PURE__*/styled(
|
|
4865
|
+
var StyledActionListItem = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
4866
4866
|
displayName: "StyledActionListItemweb__StyledActionListItem",
|
|
4867
4867
|
componentId: "sc-1okp9u4-0"
|
|
4868
4868
|
})(function (props) {
|
|
@@ -5242,7 +5242,7 @@ var getCodeFontSize = function getCodeFontSize(size) {
|
|
|
5242
5242
|
}
|
|
5243
5243
|
};
|
|
5244
5244
|
|
|
5245
|
-
var CodeContainer = /*#__PURE__*/styled(
|
|
5245
|
+
var CodeContainer = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
5246
5246
|
displayName: "Code__CodeContainer",
|
|
5247
5247
|
componentId: "l9m17z-0"
|
|
5248
5248
|
})(function (props) {
|
|
@@ -5276,11 +5276,11 @@ var CodeContainer = /*#__PURE__*/styled(Box).withConfig({
|
|
|
5276
5276
|
* In React Native, you would have to align it using flex to make sure the Code and the surrounding text is correctly aligned
|
|
5277
5277
|
*
|
|
5278
5278
|
* ```tsx
|
|
5279
|
-
* <
|
|
5279
|
+
* <BaseBox flexWrap="wrap" flexDirection="row" alignItems="flex-start">
|
|
5280
5280
|
* <Text>Lorem ipsum </Text>
|
|
5281
5281
|
* <Code>SENTRY_TOKEN</Code>
|
|
5282
5282
|
* <Text> normal text</Text>
|
|
5283
|
-
* </
|
|
5283
|
+
* </BaseBox>
|
|
5284
5284
|
* ```
|
|
5285
5285
|
*/
|
|
5286
5286
|
|
|
@@ -14111,7 +14111,7 @@ var HintText = function HintText(_ref) {
|
|
|
14111
14111
|
id = _ref.id,
|
|
14112
14112
|
color = _ref.color;
|
|
14113
14113
|
var isReactNative = getPlatformType() === 'react-native';
|
|
14114
|
-
return /*#__PURE__*/jsx(
|
|
14114
|
+
return /*#__PURE__*/jsx(BaseBox, {
|
|
14115
14115
|
marginTop: "spacing.2",
|
|
14116
14116
|
children: /*#__PURE__*/jsxs(FormHintWrapper, {
|
|
14117
14117
|
children: [Icon ? /*#__PURE__*/jsx(Icon, {}) : null, /*#__PURE__*/jsx(BaseText, {
|
|
@@ -14134,7 +14134,7 @@ var Icons = {
|
|
|
14134
14134
|
children: [/*#__PURE__*/jsx(InfoIcon, {
|
|
14135
14135
|
color: "feedback.icon.negative.lowContrast",
|
|
14136
14136
|
size: "small"
|
|
14137
|
-
}), /*#__PURE__*/jsx(
|
|
14137
|
+
}), /*#__PURE__*/jsx(BaseBox, {
|
|
14138
14138
|
marginRight: "spacing.2"
|
|
14139
14139
|
})]
|
|
14140
14140
|
});
|
|
@@ -14144,7 +14144,7 @@ var Icons = {
|
|
|
14144
14144
|
children: [/*#__PURE__*/jsx(CheckIcon, {
|
|
14145
14145
|
color: "feedback.icon.positive.lowContrast",
|
|
14146
14146
|
size: "small"
|
|
14147
|
-
}), /*#__PURE__*/jsx(
|
|
14147
|
+
}), /*#__PURE__*/jsx(BaseBox, {
|
|
14148
14148
|
marginRight: "spacing.2"
|
|
14149
14149
|
})]
|
|
14150
14150
|
});
|
|
@@ -14272,7 +14272,7 @@ var FormLabel = function FormLabel(_ref) {
|
|
|
14272
14272
|
})]
|
|
14273
14273
|
});
|
|
14274
14274
|
|
|
14275
|
-
var textNode = /*#__PURE__*/jsxs(
|
|
14275
|
+
var textNode = /*#__PURE__*/jsxs(BaseBox, {
|
|
14276
14276
|
gap: necessityIndicator === 'optional' ? 'spacing.2' : 'spacing.0',
|
|
14277
14277
|
display: "flex",
|
|
14278
14278
|
flexDirection: "row",
|
|
@@ -14290,7 +14290,7 @@ var FormLabel = function FormLabel(_ref) {
|
|
|
14290
14290
|
|
|
14291
14291
|
|
|
14292
14292
|
if (isReactNative) {
|
|
14293
|
-
return /*#__PURE__*/jsx(
|
|
14293
|
+
return /*#__PURE__*/jsx(BaseBox, {
|
|
14294
14294
|
marginRight: "spacing.5",
|
|
14295
14295
|
marginBottom: "spacing.2",
|
|
14296
14296
|
children: textNode
|
|
@@ -14309,7 +14309,7 @@ var FormLabel = function FormLabel(_ref) {
|
|
|
14309
14309
|
wordBreak: 'break-all'
|
|
14310
14310
|
},
|
|
14311
14311
|
id: id,
|
|
14312
|
-
children: /*#__PURE__*/jsx(
|
|
14312
|
+
children: /*#__PURE__*/jsx(BaseBox, {
|
|
14313
14313
|
marginBottom: isLabelLeftPositioned ? 'spacing.0' : 'spacing.2',
|
|
14314
14314
|
children: textNode
|
|
14315
14315
|
})
|
|
@@ -14350,7 +14350,7 @@ var SelectorTitle = function SelectorTitle(_ref) {
|
|
|
14350
14350
|
medium: 100
|
|
14351
14351
|
};
|
|
14352
14352
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
14353
|
-
children: [/*#__PURE__*/jsx(
|
|
14353
|
+
children: [/*#__PURE__*/jsx(BaseBox, {
|
|
14354
14354
|
marginLeft: "spacing.2"
|
|
14355
14355
|
}), /*#__PURE__*/jsx(BaseText, {
|
|
14356
14356
|
lineHeight: lineHeight[size],
|
|
@@ -14587,13 +14587,13 @@ var _Checkbox = function _Checkbox(_ref, ref) {
|
|
|
14587
14587
|
ids = _useCheckbox.ids,
|
|
14588
14588
|
inputProps = _useCheckbox.inputProps;
|
|
14589
14589
|
|
|
14590
|
-
return /*#__PURE__*/jsxs(
|
|
14590
|
+
return /*#__PURE__*/jsxs(BaseBox, _objectSpread$C(_objectSpread$C({}, metaAttribute(MetaConstants.Component, MetaConstants.Checkbox)), {}, {
|
|
14591
14591
|
children: [/*#__PURE__*/jsx(SelectorLabel, {
|
|
14592
14592
|
inputProps: state.isReactNative ? inputProps : {},
|
|
14593
|
-
children: /*#__PURE__*/jsxs(
|
|
14593
|
+
children: /*#__PURE__*/jsxs(BaseBox, {
|
|
14594
14594
|
display: "flex",
|
|
14595
14595
|
flexDirection: "column",
|
|
14596
|
-
children: [/*#__PURE__*/jsxs(
|
|
14596
|
+
children: [/*#__PURE__*/jsxs(BaseBox, {
|
|
14597
14597
|
display: "flex",
|
|
14598
14598
|
alignItems: "center",
|
|
14599
14599
|
flexDirection: "row",
|
|
@@ -14615,7 +14615,7 @@ var _Checkbox = function _Checkbox(_ref, ref) {
|
|
|
14615
14615
|
isDisabled: _isDisabled,
|
|
14616
14616
|
children: children
|
|
14617
14617
|
})]
|
|
14618
|
-
}), /*#__PURE__*/jsx(
|
|
14618
|
+
}), /*#__PURE__*/jsx(BaseBox, {
|
|
14619
14619
|
marginLeft: isSmall ? 'spacing.6' : 'spacing.7',
|
|
14620
14620
|
children: showSupportingText && /*#__PURE__*/jsx(SelectorSupportText, {
|
|
14621
14621
|
id: ids === null || ids === void 0 ? void 0 : ids.helpTextId,
|
|
@@ -14749,7 +14749,7 @@ var SelectorGroupField = function SelectorGroupField(_ref) {
|
|
|
14749
14749
|
var labelPosition = position === 'top' ? 'column' : 'row';
|
|
14750
14750
|
if (isReactNative) labelPosition = 'column';
|
|
14751
14751
|
var role = accessibilityRole === 'group' && isReactNative ? undefined : accessibilityRole;
|
|
14752
|
-
return /*#__PURE__*/jsx(
|
|
14752
|
+
return /*#__PURE__*/jsx(BaseBox, _objectSpread$B(_objectSpread$B(_objectSpread$B({
|
|
14753
14753
|
display: "flex",
|
|
14754
14754
|
flexDirection: labelPosition
|
|
14755
14755
|
}, makeAccessible({
|
|
@@ -14818,12 +14818,12 @@ var CheckboxGroup = function CheckboxGroup(_ref) {
|
|
|
14818
14818
|
id: ids.labelId,
|
|
14819
14819
|
accessibilityText: accessibilityText,
|
|
14820
14820
|
children: label
|
|
14821
|
-
}), /*#__PURE__*/jsxs(
|
|
14822
|
-
children: [/*#__PURE__*/jsx(
|
|
14821
|
+
}), /*#__PURE__*/jsxs(BaseBox, {
|
|
14822
|
+
children: [/*#__PURE__*/jsx(BaseBox, {
|
|
14823
14823
|
display: "flex",
|
|
14824
14824
|
flexDirection: "column",
|
|
14825
14825
|
children: React__default.Children.map(children, function (child, index) {
|
|
14826
|
-
return /*#__PURE__*/jsx(
|
|
14826
|
+
return /*#__PURE__*/jsx(BaseBox, {
|
|
14827
14827
|
marginBottom: index === childCount - 1 ? 0 : gap,
|
|
14828
14828
|
children: child
|
|
14829
14829
|
}, index);
|
|
@@ -14842,7 +14842,7 @@ function ownKeys$A(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
14842
14842
|
|
|
14843
14843
|
function _objectSpread$A(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$A(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$A(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
14844
14844
|
var ActionListItemContext = /*#__PURE__*/React__default.createContext({});
|
|
14845
|
-
var StyledSectionDivider = /*#__PURE__*/styled(
|
|
14845
|
+
var StyledSectionDivider = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
14846
14846
|
displayName: "ActionListItem__StyledSectionDivider",
|
|
14847
14847
|
componentId: "m6qdwa-0"
|
|
14848
14848
|
})(function (props) {
|
|
@@ -14860,7 +14860,7 @@ var ActionListSectionDivider = function ActionListSectionDivider() {
|
|
|
14860
14860
|
})));
|
|
14861
14861
|
};
|
|
14862
14862
|
|
|
14863
|
-
var StyledActionListSectionTitle = /*#__PURE__*/styled(
|
|
14863
|
+
var StyledActionListSectionTitle = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
14864
14864
|
displayName: "ActionListItem__StyledActionListSectionTitle",
|
|
14865
14865
|
componentId: "m6qdwa-1"
|
|
14866
14866
|
})(function (props) {
|
|
@@ -14874,7 +14874,7 @@ var ActionListSection = function ActionListSection(_ref) {
|
|
|
14874
14874
|
var title = _ref.title,
|
|
14875
14875
|
children = _ref.children,
|
|
14876
14876
|
_hideDivider = _ref._hideDivider;
|
|
14877
|
-
return /*#__PURE__*/jsxs(
|
|
14877
|
+
return /*#__PURE__*/jsxs(BaseBox, _objectSpread$A(_objectSpread$A(_objectSpread$A({}, makeAccessible({
|
|
14878
14878
|
role: getActionListSectionRole(),
|
|
14879
14879
|
label: title
|
|
14880
14880
|
})), metaAttribute(MetaConstants.Component, MetaConstants.ActionListSection)), {}, {
|
|
@@ -14887,7 +14887,7 @@ var ActionListSection = function ActionListSection(_ref) {
|
|
|
14887
14887
|
weight: "bold",
|
|
14888
14888
|
children: title
|
|
14889
14889
|
})
|
|
14890
|
-
})), /*#__PURE__*/jsx(
|
|
14890
|
+
})), /*#__PURE__*/jsx(BaseBox, _objectSpread$A(_objectSpread$A({}, makeAccessible({
|
|
14891
14891
|
// On web, we just wrap it in another listbox to announce item count properly for particular group.
|
|
14892
14892
|
// On React Native, we ignore it since `menu` + `group` role will take care of accessibility
|
|
14893
14893
|
role: isReactNative$4() ? undefined : 'listbox'
|
|
@@ -14933,7 +14933,7 @@ var ActionListItemText = function ActionListItemText(_ref3) {
|
|
|
14933
14933
|
};
|
|
14934
14934
|
|
|
14935
14935
|
ActionListItemText.componentId = componentIds$1.ActionListItemText;
|
|
14936
|
-
var ActionListCheckboxWrapper = /*#__PURE__*/styled(
|
|
14936
|
+
var ActionListCheckboxWrapper = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
14937
14937
|
displayName: "ActionListItem__ActionListCheckboxWrapper",
|
|
14938
14938
|
componentId: "m6qdwa-2"
|
|
14939
14939
|
})(function (_props) {
|
|
@@ -15050,13 +15050,13 @@ var ActionListItem = function ActionListItem(props) {
|
|
|
15050
15050
|
intent: props.intent,
|
|
15051
15051
|
isSelected: isSelected,
|
|
15052
15052
|
isKeydownPressed: isKeydownPressed,
|
|
15053
|
-
children: [/*#__PURE__*/jsxs(
|
|
15053
|
+
children: [/*#__PURE__*/jsxs(BaseBox, {
|
|
15054
15054
|
display: "flex",
|
|
15055
15055
|
justifyContent: "center",
|
|
15056
15056
|
flexDirection: "row",
|
|
15057
15057
|
alignItems: "center",
|
|
15058
15058
|
maxHeight: isReactNative$4() ? undefined : theme.spacing[6],
|
|
15059
|
-
children: [/*#__PURE__*/jsx(
|
|
15059
|
+
children: [/*#__PURE__*/jsx(BaseBox, {
|
|
15060
15060
|
display: "flex",
|
|
15061
15061
|
justifyContent: "center",
|
|
15062
15062
|
alignItems: "center",
|
|
@@ -15075,7 +15075,7 @@ var ActionListItem = function ActionListItem(props) {
|
|
|
15075
15075
|
children: null
|
|
15076
15076
|
})
|
|
15077
15077
|
})) : props.leading
|
|
15078
|
-
}), /*#__PURE__*/jsx(
|
|
15078
|
+
}), /*#__PURE__*/jsx(BaseBox, {
|
|
15079
15079
|
paddingLeft: selectionType === 'multiple' || !props.leading ? 'spacing.0' : 'spacing.3',
|
|
15080
15080
|
paddingRight: "spacing.3",
|
|
15081
15081
|
children: /*#__PURE__*/jsx(Text, {
|
|
@@ -15083,11 +15083,11 @@ var ActionListItem = function ActionListItem(props) {
|
|
|
15083
15083
|
color: props.intent === 'negative' ? 'feedback.text.negative.lowContrast' : getNormalTextColor(props.isDisabled),
|
|
15084
15084
|
children: props.title
|
|
15085
15085
|
})
|
|
15086
|
-
}), /*#__PURE__*/jsx(
|
|
15086
|
+
}), /*#__PURE__*/jsx(BaseBox, {
|
|
15087
15087
|
marginLeft: "auto",
|
|
15088
15088
|
children: props.trailing
|
|
15089
15089
|
})]
|
|
15090
|
-
}), /*#__PURE__*/jsx(
|
|
15090
|
+
}), /*#__PURE__*/jsx(BaseBox, {
|
|
15091
15091
|
paddingLeft: props.leading || selectionType === 'multiple' ? 'spacing.7' : undefined,
|
|
15092
15092
|
children: props.description ? /*#__PURE__*/jsx(Text, {
|
|
15093
15093
|
color: getNormalTextColor(props.isDisabled, {
|
|
@@ -15106,7 +15106,7 @@ ActionListItem.componentId = componentIds$1.ActionListItem;
|
|
|
15106
15106
|
function ownKeys$z(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
15107
15107
|
|
|
15108
15108
|
function _objectSpread$z(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$z(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$z(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15109
|
-
var StyledActionListHeader = /*#__PURE__*/styled(
|
|
15109
|
+
var StyledActionListHeader = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
15110
15110
|
displayName: "ActionListHeader__StyledActionListHeader",
|
|
15111
15111
|
componentId: "x9xazr-0"
|
|
15112
15112
|
})(function (props) {
|
|
@@ -15147,9 +15147,9 @@ var ActionListHeader = function ActionListHeader(props) {
|
|
|
15147
15147
|
});
|
|
15148
15148
|
}, [props.leading]);
|
|
15149
15149
|
return /*#__PURE__*/jsxs(StyledActionListHeader, _objectSpread$z(_objectSpread$z({}, metaAttribute(MetaConstants.Component, MetaConstants.ActionListHeader)), {}, {
|
|
15150
|
-
children: [/*#__PURE__*/jsx(
|
|
15150
|
+
children: [/*#__PURE__*/jsx(BaseBox, {
|
|
15151
15151
|
children: props.leading
|
|
15152
|
-
}), /*#__PURE__*/jsx(
|
|
15152
|
+
}), /*#__PURE__*/jsx(BaseBox, {
|
|
15153
15153
|
paddingLeft: "spacing.3",
|
|
15154
15154
|
paddingRight: "spacing.3",
|
|
15155
15155
|
children: /*#__PURE__*/jsx(Text, {
|
|
@@ -15177,7 +15177,7 @@ ActionListHeaderIcon.componentId = componentIds$1.ActionListHeaderIcon;
|
|
|
15177
15177
|
function ownKeys$y(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
15178
15178
|
|
|
15179
15179
|
function _objectSpread$y(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$y(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$y(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15180
|
-
var StyledActionListFooter = /*#__PURE__*/styled(
|
|
15180
|
+
var StyledActionListFooter = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
15181
15181
|
displayName: "ActionListFooter__StyledActionListFooter",
|
|
15182
15182
|
componentId: "px4gxj-0"
|
|
15183
15183
|
})(function (props) {
|
|
@@ -15279,9 +15279,9 @@ var ActionListFooter = function ActionListFooter(props) {
|
|
|
15279
15279
|
role: getActionListFooterRole(),
|
|
15280
15280
|
label: props.title
|
|
15281
15281
|
})), metaAttribute(MetaConstants.Component, MetaConstants.ActionListFooter)), {}, {
|
|
15282
|
-
children: [props.leading ? /*#__PURE__*/jsx(
|
|
15282
|
+
children: [props.leading ? /*#__PURE__*/jsx(BaseBox, {
|
|
15283
15283
|
children: props.leading
|
|
15284
|
-
}) : null, props.title ? /*#__PURE__*/jsx(
|
|
15284
|
+
}) : null, props.title ? /*#__PURE__*/jsx(BaseBox, {
|
|
15285
15285
|
flex: 1,
|
|
15286
15286
|
paddingLeft: "spacing.3",
|
|
15287
15287
|
paddingRight: "spacing.3",
|
|
@@ -15290,7 +15290,7 @@ var ActionListFooter = function ActionListFooter(props) {
|
|
|
15290
15290
|
color: "surface.text.subdued.lowContrast",
|
|
15291
15291
|
children: props.title
|
|
15292
15292
|
})
|
|
15293
|
-
}) : null, props.trailing ? /*#__PURE__*/jsx(
|
|
15293
|
+
}) : null, props.trailing ? /*#__PURE__*/jsx(BaseBox, {
|
|
15294
15294
|
display: "flex",
|
|
15295
15295
|
alignItems: "center",
|
|
15296
15296
|
marginLeft: isOnlyActionButton ? undefined : 'auto',
|
|
@@ -15746,7 +15746,7 @@ var SpinnerIcon = function SpinnerIcon(_ref) {
|
|
|
15746
15746
|
};
|
|
15747
15747
|
|
|
15748
15748
|
var rotate = /*#__PURE__*/keyframes(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]);
|
|
15749
|
-
var SpinningBox = /*#__PURE__*/styled(
|
|
15749
|
+
var SpinningBox = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
15750
15750
|
displayName: "SpinningBoxweb__SpinningBox",
|
|
15751
15751
|
componentId: "zswieh-0"
|
|
15752
15752
|
})(function (_ref) {
|
|
@@ -15786,10 +15786,10 @@ var BaseSpinner = function BaseSpinner(_ref2) {
|
|
|
15786
15786
|
var _useTheme = useTheme(),
|
|
15787
15787
|
theme = _useTheme.theme;
|
|
15788
15788
|
|
|
15789
|
-
return /*#__PURE__*/jsx(
|
|
15789
|
+
return /*#__PURE__*/jsx(BaseBox, _objectSpread$v(_objectSpread$v({
|
|
15790
15790
|
display: "flex"
|
|
15791
15791
|
}, metaAttribute(MetaConstants.Component, MetaConstants.Spinner)), {}, {
|
|
15792
|
-
children: /*#__PURE__*/jsxs(
|
|
15792
|
+
children: /*#__PURE__*/jsxs(BaseBox, _objectSpread$v(_objectSpread$v({
|
|
15793
15793
|
display: "flex",
|
|
15794
15794
|
alignItems: "center",
|
|
15795
15795
|
flexDirection: labelPosition === 'right' ? 'row' : 'column'
|
|
@@ -15806,7 +15806,7 @@ var BaseSpinner = function BaseSpinner(_ref2) {
|
|
|
15806
15806
|
theme: theme
|
|
15807
15807
|
})
|
|
15808
15808
|
})
|
|
15809
|
-
}), label && label.trim().length > 0 ? /*#__PURE__*/jsx(
|
|
15809
|
+
}), label && label.trim().length > 0 ? /*#__PURE__*/jsx(BaseBox, {
|
|
15810
15810
|
marginLeft: labelPosition === 'right' ? 'spacing.3' : 'spacing.0',
|
|
15811
15811
|
marginTop: labelPosition === 'bottom' ? 'spacing.3' : 'spacing.0',
|
|
15812
15812
|
children: /*#__PURE__*/jsx(Text, {
|
|
@@ -15983,7 +15983,7 @@ var getProps$1 = function getProps(_ref2) {
|
|
|
15983
15983
|
return props;
|
|
15984
15984
|
};
|
|
15985
15985
|
|
|
15986
|
-
var ButtonContent = /*#__PURE__*/styled(
|
|
15986
|
+
var ButtonContent = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
15987
15987
|
displayName: "BaseButton__ButtonContent",
|
|
15988
15988
|
componentId: "zf1huq-0"
|
|
15989
15989
|
})(function (_ref3) {
|
|
@@ -16099,7 +16099,7 @@ var _BaseButton = function _BaseButton(_ref4, ref) {
|
|
|
16099
16099
|
motionDuration: motionDuration,
|
|
16100
16100
|
motionEasing: motionEasing
|
|
16101
16101
|
}, metaAttribute(MetaConstants.Component, MetaConstants.Button)), {}, {
|
|
16102
|
-
children: [isLoading ? /*#__PURE__*/jsx(
|
|
16102
|
+
children: [isLoading ? /*#__PURE__*/jsx(BaseBox, {
|
|
16103
16103
|
display: "flex",
|
|
16104
16104
|
justifyContent: "center",
|
|
16105
16105
|
alignItems: "center",
|
|
@@ -16121,7 +16121,7 @@ var _BaseButton = function _BaseButton(_ref4, ref) {
|
|
|
16121
16121
|
justifyContent: "center",
|
|
16122
16122
|
flex: 1,
|
|
16123
16123
|
isHidden: isLoading,
|
|
16124
|
-
children: [Icon && iconPosition == 'left' ? /*#__PURE__*/jsx(
|
|
16124
|
+
children: [Icon && iconPosition == 'left' ? /*#__PURE__*/jsx(BaseBox, {
|
|
16125
16125
|
paddingRight: iconPadding,
|
|
16126
16126
|
display: "flex",
|
|
16127
16127
|
justifyContent: "center",
|
|
@@ -16137,7 +16137,7 @@ var _BaseButton = function _BaseButton(_ref4, ref) {
|
|
|
16137
16137
|
textAlign: "center",
|
|
16138
16138
|
color: textColor,
|
|
16139
16139
|
children: text
|
|
16140
|
-
}) : null, Icon && iconPosition == 'right' ? /*#__PURE__*/jsx(
|
|
16140
|
+
}) : null, Icon && iconPosition == 'right' ? /*#__PURE__*/jsx(BaseBox, {
|
|
16141
16141
|
paddingLeft: iconPadding,
|
|
16142
16142
|
display: "flex",
|
|
16143
16143
|
justifyContent: "center",
|
|
@@ -16412,12 +16412,12 @@ var BaseLink = function BaseLink(_ref3) {
|
|
|
16412
16412
|
,
|
|
16413
16413
|
className: className,
|
|
16414
16414
|
style: style,
|
|
16415
|
-
children: /*#__PURE__*/jsxs(
|
|
16415
|
+
children: /*#__PURE__*/jsxs(BaseBox, {
|
|
16416
16416
|
display: "flex",
|
|
16417
16417
|
flexDirection: "row",
|
|
16418
16418
|
className: "content-container",
|
|
16419
16419
|
alignItems: "center",
|
|
16420
|
-
children: [Icon && iconPosition == 'left' ? /*#__PURE__*/jsx(
|
|
16420
|
+
children: [Icon && iconPosition == 'left' ? /*#__PURE__*/jsx(BaseBox, {
|
|
16421
16421
|
paddingRight: iconPadding,
|
|
16422
16422
|
display: "flex",
|
|
16423
16423
|
alignItems: "center",
|
|
@@ -16433,7 +16433,7 @@ var BaseLink = function BaseLink(_ref3) {
|
|
|
16433
16433
|
textAlign: "center",
|
|
16434
16434
|
fontWeight: "bold",
|
|
16435
16435
|
children: children
|
|
16436
|
-
}), Icon && iconPosition == 'right' ? /*#__PURE__*/jsx(
|
|
16436
|
+
}), Icon && iconPosition == 'right' ? /*#__PURE__*/jsx(BaseBox, {
|
|
16437
16437
|
paddingLeft: iconPadding,
|
|
16438
16438
|
display: "flex",
|
|
16439
16439
|
alignItems: "center",
|
|
@@ -16451,7 +16451,7 @@ function ownKeys$r(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
16451
16451
|
function _objectSpread$r(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$r(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$r(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16452
16452
|
var isReactNative$3 = getPlatformType() === 'react-native'; // Need extra wrappers on React Native only for alignment
|
|
16453
16453
|
|
|
16454
|
-
var CloseButtonWrapper = isReactNative$3 ?
|
|
16454
|
+
var CloseButtonWrapper = isReactNative$3 ? BaseBox : Fragment$1;
|
|
16455
16455
|
var intentIconMap = {
|
|
16456
16456
|
positive: CheckCircleIcon,
|
|
16457
16457
|
negative: AlertTriangleIcon,
|
|
@@ -16518,7 +16518,7 @@ var Alert = function Alert(_ref) {
|
|
|
16518
16518
|
iconOffset = 'spacing.0';
|
|
16519
16519
|
}
|
|
16520
16520
|
|
|
16521
|
-
var icon = /*#__PURE__*/jsx(
|
|
16521
|
+
var icon = /*#__PURE__*/jsx(BaseBox, {
|
|
16522
16522
|
marginTop: iconOffset,
|
|
16523
16523
|
display: "flex",
|
|
16524
16524
|
children: /*#__PURE__*/jsx(Icon, {
|
|
@@ -16527,7 +16527,7 @@ var Alert = function Alert(_ref) {
|
|
|
16527
16527
|
})
|
|
16528
16528
|
});
|
|
16529
16529
|
|
|
16530
|
-
var _title = title ? /*#__PURE__*/jsx(
|
|
16530
|
+
var _title = title ? /*#__PURE__*/jsx(BaseBox, {
|
|
16531
16531
|
marginBottom: "spacing.2",
|
|
16532
16532
|
children: isFullWidth ? /*#__PURE__*/jsx(Heading, {
|
|
16533
16533
|
type: "subtle",
|
|
@@ -16542,7 +16542,7 @@ var Alert = function Alert(_ref) {
|
|
|
16542
16542
|
})
|
|
16543
16543
|
}) : null;
|
|
16544
16544
|
|
|
16545
|
-
var _description = /*#__PURE__*/jsx(
|
|
16545
|
+
var _description = /*#__PURE__*/jsx(BaseBox, {
|
|
16546
16546
|
marginTop: title || isReactNative$3 ? 'spacing.0' : 'spacing.1',
|
|
16547
16547
|
children: /*#__PURE__*/jsx(Text, {
|
|
16548
16548
|
type: "subtle",
|
|
@@ -16552,7 +16552,7 @@ var Alert = function Alert(_ref) {
|
|
|
16552
16552
|
})
|
|
16553
16553
|
});
|
|
16554
16554
|
|
|
16555
|
-
var primaryAction = actions !== null && actions !== void 0 && actions.primary ? /*#__PURE__*/jsx(
|
|
16555
|
+
var primaryAction = actions !== null && actions !== void 0 && actions.primary ? /*#__PURE__*/jsx(BaseBox, {
|
|
16556
16556
|
marginRight: "spacing.5",
|
|
16557
16557
|
display: isReactNative$3 ? 'flex' : 'inline-flex',
|
|
16558
16558
|
children: /*#__PURE__*/jsx(BaseButton, {
|
|
@@ -16579,7 +16579,7 @@ var Alert = function Alert(_ref) {
|
|
|
16579
16579
|
secondaryActionParams.rel = actions.secondary.rel;
|
|
16580
16580
|
}
|
|
16581
16581
|
|
|
16582
|
-
var secondaryAction = actions !== null && actions !== void 0 && actions.secondary ? /*#__PURE__*/jsx(
|
|
16582
|
+
var secondaryAction = actions !== null && actions !== void 0 && actions.secondary ? /*#__PURE__*/jsx(BaseBox, {
|
|
16583
16583
|
marginRight: "spacing.4",
|
|
16584
16584
|
display: isReactNative$3 ? 'flex' : 'inline-flex',
|
|
16585
16585
|
children: /*#__PURE__*/jsx(BaseLink, _objectSpread$r(_objectSpread$r({
|
|
@@ -16592,12 +16592,12 @@ var Alert = function Alert(_ref) {
|
|
|
16592
16592
|
}) : null; // For certain cases we wish to render actions inline with text content
|
|
16593
16593
|
|
|
16594
16594
|
var showActionsHorizontal = isFullWidth && isDesktop;
|
|
16595
|
-
var actionsHorizontal = showActionsHorizontal && (primaryAction || secondaryAction) ? /*#__PURE__*/jsxs(
|
|
16595
|
+
var actionsHorizontal = showActionsHorizontal && (primaryAction || secondaryAction) ? /*#__PURE__*/jsxs(BaseBox, {
|
|
16596
16596
|
flexDirection: "row",
|
|
16597
16597
|
alignItems: "center",
|
|
16598
16598
|
children: [primaryAction, secondaryAction]
|
|
16599
16599
|
}) : null;
|
|
16600
|
-
var actionsVertical = !showActionsHorizontal && (primaryAction || secondaryAction) ? /*#__PURE__*/jsxs(
|
|
16600
|
+
var actionsVertical = !showActionsHorizontal && (primaryAction || secondaryAction) ? /*#__PURE__*/jsxs(BaseBox, {
|
|
16601
16601
|
marginTop: "spacing.4",
|
|
16602
16602
|
flexDirection: "row",
|
|
16603
16603
|
alignItems: "center",
|
|
@@ -16638,7 +16638,7 @@ var Alert = function Alert(_ref) {
|
|
|
16638
16638
|
isFullWidth: isFullWidth,
|
|
16639
16639
|
isDesktop: isDesktop
|
|
16640
16640
|
}, a11yProps), metaAttribute(MetaConstants.Component, MetaConstants.Alert)), {}, {
|
|
16641
|
-
children: [icon, /*#__PURE__*/jsxs(
|
|
16641
|
+
children: [icon, /*#__PURE__*/jsxs(BaseBox, {
|
|
16642
16642
|
flex: 1,
|
|
16643
16643
|
paddingLeft: isFullWidth ? 'spacing.4' : 'spacing.3',
|
|
16644
16644
|
paddingRight: showActionsHorizontal ? 'spacing.4' : 'spacing.2',
|
|
@@ -16764,7 +16764,7 @@ var Badge = function Badge(_ref2) {
|
|
|
16764
16764
|
backgroundColor: backgroundColor,
|
|
16765
16765
|
size: size
|
|
16766
16766
|
}, metaAttribute(MetaConstants.Component, MetaConstants.Badge)), {}, {
|
|
16767
|
-
children: /*#__PURE__*/jsxs(
|
|
16767
|
+
children: /*#__PURE__*/jsxs(BaseBox, {
|
|
16768
16768
|
paddingRight: horizontalPadding$1[size],
|
|
16769
16769
|
paddingLeft: horizontalPadding$1[size],
|
|
16770
16770
|
paddingTop: verticalPadding$1[size],
|
|
@@ -16774,7 +16774,7 @@ var Badge = function Badge(_ref2) {
|
|
|
16774
16774
|
justifyContent: "center",
|
|
16775
16775
|
alignItems: "center",
|
|
16776
16776
|
overflow: "hidden",
|
|
16777
|
-
children: [Icon ? /*#__PURE__*/jsx(
|
|
16777
|
+
children: [Icon ? /*#__PURE__*/jsx(BaseBox, {
|
|
16778
16778
|
paddingRight: Boolean(Icon) ? iconPadding[size] : 'spacing.0',
|
|
16779
16779
|
display: "flex",
|
|
16780
16780
|
children: /*#__PURE__*/jsx(Icon, {
|
|
@@ -16792,7 +16792,7 @@ var Badge = function Badge(_ref2) {
|
|
|
16792
16792
|
}));
|
|
16793
16793
|
};
|
|
16794
16794
|
|
|
16795
|
-
var CardSurface = /*#__PURE__*/styled(
|
|
16795
|
+
var CardSurface = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
16796
16796
|
displayName: "CardSurfaceweb__CardSurface",
|
|
16797
16797
|
componentId: "sc-1pgxikk-0"
|
|
16798
16798
|
})(function (_ref) {
|
|
@@ -16888,7 +16888,7 @@ var Card = function Card(_ref) {
|
|
|
16888
16888
|
var CardBody = function CardBody(_ref2) {
|
|
16889
16889
|
var children = _ref2.children;
|
|
16890
16890
|
useVerifyInsideCard('CardBody');
|
|
16891
|
-
return /*#__PURE__*/jsx(
|
|
16891
|
+
return /*#__PURE__*/jsx(BaseBox, _objectSpread$o(_objectSpread$o({}, metaAttribute(MetaConstants.Component, MetaConstants.CardBody)), {}, {
|
|
16892
16892
|
children: children
|
|
16893
16893
|
}));
|
|
16894
16894
|
};
|
|
@@ -17092,7 +17092,7 @@ var Counter = function Counter(_ref2) {
|
|
|
17092
17092
|
backgroundColor: backgroundColor,
|
|
17093
17093
|
size: size,
|
|
17094
17094
|
platform: platform,
|
|
17095
|
-
children: /*#__PURE__*/jsx(
|
|
17095
|
+
children: /*#__PURE__*/jsx(BaseBox, _objectSpread$k(_objectSpread$k({
|
|
17096
17096
|
paddingRight: horizontalPadding[size],
|
|
17097
17097
|
paddingLeft: horizontalPadding[size],
|
|
17098
17098
|
paddingTop: verticalPadding[size],
|
|
@@ -17159,7 +17159,7 @@ CardHeaderLink.componentId = ComponentIds$1.CardHeaderLink;
|
|
|
17159
17159
|
|
|
17160
17160
|
var CardHeaderIconButton = function CardHeaderIconButton(props) {
|
|
17161
17161
|
useVerifyInsideCard('CardHeaderIconButton');
|
|
17162
|
-
return /*#__PURE__*/jsx(
|
|
17162
|
+
return /*#__PURE__*/jsx(BaseBox, {
|
|
17163
17163
|
width: makeSpace(minHeight.xsmall),
|
|
17164
17164
|
children: /*#__PURE__*/jsx(Button, _objectSpread$j(_objectSpread$j({}, props), {}, {
|
|
17165
17165
|
variant: "tertiary",
|
|
@@ -17176,10 +17176,10 @@ var CardHeader = function CardHeader(_ref2) {
|
|
|
17176
17176
|
var children = _ref2.children;
|
|
17177
17177
|
useVerifyInsideCard('CardHeader');
|
|
17178
17178
|
useVerifyAllowedComponents(children, 'CardHeader', [ComponentIds$1.CardHeaderLeading, ComponentIds$1.CardHeaderTrailing]);
|
|
17179
|
-
return /*#__PURE__*/jsxs(
|
|
17179
|
+
return /*#__PURE__*/jsxs(BaseBox, _objectSpread$j(_objectSpread$j({
|
|
17180
17180
|
marginBottom: "spacing.7"
|
|
17181
17181
|
}, metaAttribute(MetaConstants.Component, MetaConstants.CardHeader)), {}, {
|
|
17182
|
-
children: [/*#__PURE__*/jsx(
|
|
17182
|
+
children: [/*#__PURE__*/jsx(BaseBox, {
|
|
17183
17183
|
marginBottom: "spacing.7",
|
|
17184
17184
|
display: "flex",
|
|
17185
17185
|
flexDirection: "row",
|
|
@@ -17206,17 +17206,17 @@ var CardHeaderLeading = function CardHeaderLeading(_ref3) {
|
|
|
17206
17206
|
throw new Error("[Blade CardHeaderLeading]: Only `".concat(ComponentIds$1.CardHeaderCounter, "` component is accepted in prefix"));
|
|
17207
17207
|
}
|
|
17208
17208
|
|
|
17209
|
-
return /*#__PURE__*/jsxs(
|
|
17209
|
+
return /*#__PURE__*/jsxs(BaseBox, {
|
|
17210
17210
|
flex: 1,
|
|
17211
17211
|
display: "flex",
|
|
17212
17212
|
flexDirection: "row",
|
|
17213
|
-
children: [/*#__PURE__*/jsx(
|
|
17213
|
+
children: [/*#__PURE__*/jsx(BaseBox, {
|
|
17214
17214
|
marginRight: "spacing.3",
|
|
17215
17215
|
alignSelf: "center",
|
|
17216
17216
|
display: "flex",
|
|
17217
17217
|
children: prefix
|
|
17218
|
-
}), /*#__PURE__*/jsxs(
|
|
17219
|
-
children: [/*#__PURE__*/jsxs(
|
|
17218
|
+
}), /*#__PURE__*/jsxs(BaseBox, {
|
|
17219
|
+
children: [/*#__PURE__*/jsxs(BaseBox, {
|
|
17220
17220
|
display: "flex",
|
|
17221
17221
|
flexDirection: "row",
|
|
17222
17222
|
alignItems: "center",
|
|
@@ -17226,7 +17226,7 @@ var CardHeaderLeading = function CardHeaderLeading(_ref3) {
|
|
|
17226
17226
|
variant: "regular",
|
|
17227
17227
|
type: "normal",
|
|
17228
17228
|
children: title
|
|
17229
|
-
}), /*#__PURE__*/jsx(
|
|
17229
|
+
}), /*#__PURE__*/jsx(BaseBox, {
|
|
17230
17230
|
marginLeft: "spacing.3",
|
|
17231
17231
|
children: suffix
|
|
17232
17232
|
})]
|
|
@@ -17251,7 +17251,7 @@ var CardHeaderTrailing = function CardHeaderTrailing(_ref4) {
|
|
|
17251
17251
|
throw new Error("[Blade CardHeaderTrailing]: Only one of `".concat(headerTrailingAllowedComponents.join(', '), "` component is accepted in visual"));
|
|
17252
17252
|
}
|
|
17253
17253
|
|
|
17254
|
-
return /*#__PURE__*/jsx(
|
|
17254
|
+
return /*#__PURE__*/jsx(BaseBox, {
|
|
17255
17255
|
alignSelf: "center",
|
|
17256
17256
|
children: visual
|
|
17257
17257
|
});
|
|
@@ -17280,12 +17280,12 @@ var CardFooter = function CardFooter(_ref) {
|
|
|
17280
17280
|
var isMobile = useIsMobile();
|
|
17281
17281
|
useVerifyInsideCard('CardFooter');
|
|
17282
17282
|
useVerifyAllowedComponents(children, 'CardFooter', [ComponentIds$1.CardFooterLeading, ComponentIds$1.CardFooterTrailing]);
|
|
17283
|
-
return /*#__PURE__*/jsxs(
|
|
17283
|
+
return /*#__PURE__*/jsxs(BaseBox, _objectSpread$i(_objectSpread$i({
|
|
17284
17284
|
marginTop: "auto"
|
|
17285
17285
|
}, metaAttribute(MetaConstants.Component, MetaConstants.CardFooter)), {}, {
|
|
17286
|
-
children: [/*#__PURE__*/jsx(
|
|
17286
|
+
children: [/*#__PURE__*/jsx(BaseBox, {
|
|
17287
17287
|
marginTop: "spacing.7"
|
|
17288
|
-
}), /*#__PURE__*/jsx(Divider, {}), /*#__PURE__*/jsx(
|
|
17288
|
+
}), /*#__PURE__*/jsx(Divider, {}), /*#__PURE__*/jsx(BaseBox, {
|
|
17289
17289
|
marginTop: "spacing.7",
|
|
17290
17290
|
display: "flex",
|
|
17291
17291
|
flexDirection: isMobile ? 'column' : 'row',
|
|
@@ -17302,7 +17302,7 @@ var CardFooterLeading = function CardFooterLeading(_ref2) {
|
|
|
17302
17302
|
var title = _ref2.title,
|
|
17303
17303
|
subtitle = _ref2.subtitle;
|
|
17304
17304
|
useVerifyInsideCard('CardFooterLeading');
|
|
17305
|
-
return /*#__PURE__*/jsxs(
|
|
17305
|
+
return /*#__PURE__*/jsxs(BaseBox, {
|
|
17306
17306
|
children: [title && /*#__PURE__*/jsx(Text, {
|
|
17307
17307
|
variant: "body",
|
|
17308
17308
|
size: "medium",
|
|
@@ -17323,13 +17323,13 @@ var CardFooterTrailing = function CardFooterTrailing(_ref3) {
|
|
|
17323
17323
|
var actions = _ref3.actions;
|
|
17324
17324
|
var isMobile = useIsMobile();
|
|
17325
17325
|
useVerifyInsideCard('CardFooterTrailing');
|
|
17326
|
-
return /*#__PURE__*/jsxs(
|
|
17326
|
+
return /*#__PURE__*/jsxs(BaseBox, {
|
|
17327
17327
|
display: "flex",
|
|
17328
17328
|
flexDirection: "row",
|
|
17329
17329
|
alignSelf: isMobile ? 'auto' : 'center',
|
|
17330
17330
|
marginTop: isMobile ? 'spacing.5' : 'spacing.0',
|
|
17331
17331
|
marginLeft: isMobile ? 'spacing.0' : 'spacing.5',
|
|
17332
|
-
children: [/*#__PURE__*/jsx(
|
|
17332
|
+
children: [/*#__PURE__*/jsx(BaseBox, {
|
|
17333
17333
|
flexGrow: 1,
|
|
17334
17334
|
children: actions !== null && actions !== void 0 && actions.secondary ? /*#__PURE__*/jsx(Button, _objectSpread$i(_objectSpread$i({
|
|
17335
17335
|
isFullWidth: true,
|
|
@@ -17338,9 +17338,9 @@ var CardFooterTrailing = function CardFooterTrailing(_ref3) {
|
|
|
17338
17338
|
}, actions.secondary), {}, {
|
|
17339
17339
|
children: actions.secondary.text
|
|
17340
17340
|
})) : null
|
|
17341
|
-
}), /*#__PURE__*/jsx(
|
|
17341
|
+
}), /*#__PURE__*/jsx(BaseBox, {
|
|
17342
17342
|
marginLeft: "spacing.5"
|
|
17343
|
-
}), /*#__PURE__*/jsx(
|
|
17343
|
+
}), /*#__PURE__*/jsx(BaseBox, {
|
|
17344
17344
|
flexGrow: 1,
|
|
17345
17345
|
children: actions !== null && actions !== void 0 && actions.primary ? /*#__PURE__*/jsx(Button, _objectSpread$i(_objectSpread$i({
|
|
17346
17346
|
isFullWidth: true,
|
|
@@ -17476,7 +17476,10 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
17476
17476
|
[isOpen, selectedIndices, options, activeIndex, shouldIgnoreBlur, shouldIgnoreBlurAnimation, selectionType, hasFooterAction, hasLabelOnLeft, isKeydownPressed]);
|
|
17477
17477
|
return /*#__PURE__*/jsx(DropdownContext.Provider, {
|
|
17478
17478
|
value: contextValue,
|
|
17479
|
-
children:
|
|
17479
|
+
children: /*#__PURE__*/jsx(BaseBox, {
|
|
17480
|
+
position: "relative",
|
|
17481
|
+
children: children
|
|
17482
|
+
})
|
|
17480
17483
|
});
|
|
17481
17484
|
};
|
|
17482
17485
|
|
|
@@ -17879,7 +17882,7 @@ function ownKeys$h(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
17879
17882
|
function _objectSpread$h(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
17880
17883
|
var dropdownFadeIn = /*#__PURE__*/keyframes(["from{transform:translateY(", ");opacity:0;}to{transform:translateY(", ");opacity:1;}"], makeSize(spacing[0]), makeSize(spacing[3]));
|
|
17881
17884
|
var dropdownFadeOut = /*#__PURE__*/keyframes(["from{transform:translateY(", ");opacity:1;}to{transform:translateY(", ");opacity:0;}"], makeSize(spacing[3]), makeSize(spacing[0]));
|
|
17882
|
-
var StyledDropdownOverlay = /*#__PURE__*/styled(
|
|
17885
|
+
var StyledDropdownOverlay = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
17883
17886
|
displayName: "DropdownOverlayweb__StyledDropdownOverlay",
|
|
17884
17887
|
componentId: "sc-9pwxtx-0"
|
|
17885
17888
|
})(function (props) {
|
|
@@ -17918,6 +17921,7 @@ var DropdownOverlay = function DropdownOverlay(_ref) {
|
|
|
17918
17921
|
if (isOpen) {
|
|
17919
17922
|
var _triggererRef$current;
|
|
17920
17923
|
|
|
17924
|
+
// On Safari clicking on a non input element doesn't focuses it https://bugs.webkit.org/show_bug.cgi?id=22261
|
|
17921
17925
|
(_triggererRef$current = triggererRef.current) === null || _triggererRef$current === void 0 ? void 0 : _triggererRef$current.focus();
|
|
17922
17926
|
setDisplay('block');
|
|
17923
17927
|
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -17949,7 +17953,7 @@ var DropdownOverlay = function DropdownOverlay(_ref) {
|
|
|
17949
17953
|
window.removeEventListener('resize', setOverlayWidth);
|
|
17950
17954
|
}; // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
17951
17955
|
}, [setWidth, triggererRef, hasLabelOnLeft]);
|
|
17952
|
-
return /*#__PURE__*/jsx(
|
|
17956
|
+
return /*#__PURE__*/jsx(BaseBox, {
|
|
17953
17957
|
position: "relative",
|
|
17954
17958
|
children: /*#__PURE__*/jsx(StyledDropdownOverlay, _objectSpread$h(_objectSpread$h({
|
|
17955
17959
|
width: width,
|
|
@@ -18090,15 +18094,15 @@ var BaseInputVisuals = function BaseInputVisuals(_ref5) {
|
|
|
18090
18094
|
var hasTrailingVisuals = hasInteractionElement || hasSuffix || hasTrailingIcon;
|
|
18091
18095
|
|
|
18092
18096
|
if (hasLeadingVisuals) {
|
|
18093
|
-
return /*#__PURE__*/jsxs(
|
|
18094
|
-
children: [LeadingIcon ? /*#__PURE__*/jsx(
|
|
18097
|
+
return /*#__PURE__*/jsxs(BaseBox, _objectSpread$g(_objectSpread$g({}, getVisualContainerStyles()), {}, {
|
|
18098
|
+
children: [LeadingIcon ? /*#__PURE__*/jsx(BaseBox, {
|
|
18095
18099
|
paddingLeft: "spacing.4",
|
|
18096
18100
|
display: "flex",
|
|
18097
18101
|
children: /*#__PURE__*/jsx(LeadingIcon, {
|
|
18098
18102
|
size: "medium",
|
|
18099
18103
|
color: isDisabled ? 'surface.text.placeholder.lowContrast' : 'surface.text.subtle.lowContrast'
|
|
18100
18104
|
})
|
|
18101
|
-
}) : null, hasPrefix ? /*#__PURE__*/jsx(
|
|
18105
|
+
}) : null, hasPrefix ? /*#__PURE__*/jsx(BaseBox, _objectSpread$g(_objectSpread$g({}, getPrefixStyles({
|
|
18102
18106
|
hasLeadingIcon: hasLeadingIcon,
|
|
18103
18107
|
hasPrefix: hasPrefix
|
|
18104
18108
|
})), {}, {
|
|
@@ -18115,15 +18119,15 @@ var BaseInputVisuals = function BaseInputVisuals(_ref5) {
|
|
|
18115
18119
|
}
|
|
18116
18120
|
|
|
18117
18121
|
if (hasTrailingVisuals) {
|
|
18118
|
-
return /*#__PURE__*/jsxs(
|
|
18119
|
-
children: [hasInteractionElement ? /*#__PURE__*/jsx(
|
|
18122
|
+
return /*#__PURE__*/jsxs(BaseBox, _objectSpread$g(_objectSpread$g({}, getVisualContainerStyles()), {}, {
|
|
18123
|
+
children: [hasInteractionElement ? /*#__PURE__*/jsx(BaseBox, _objectSpread$g(_objectSpread$g({}, getInteractionElementStyles({
|
|
18120
18124
|
hasTrailingIcon: hasTrailingIcon,
|
|
18121
18125
|
hasInteractionElement: hasInteractionElement,
|
|
18122
18126
|
hasSuffix: hasSuffix
|
|
18123
18127
|
})), {}, {
|
|
18124
18128
|
display: "flex",
|
|
18125
18129
|
children: interactionElement
|
|
18126
|
-
})) : null, hasSuffix ? /*#__PURE__*/jsx(
|
|
18130
|
+
})) : null, hasSuffix ? /*#__PURE__*/jsx(BaseBox, _objectSpread$g(_objectSpread$g({}, getSuffixStyles({
|
|
18127
18131
|
hasTrailingIcon: hasTrailingIcon,
|
|
18128
18132
|
hasSuffix: hasSuffix
|
|
18129
18133
|
})), {}, {
|
|
@@ -18135,7 +18139,7 @@ var BaseInputVisuals = function BaseInputVisuals(_ref5) {
|
|
|
18135
18139
|
type: isDisabled ? 'placeholder' : 'subtle',
|
|
18136
18140
|
children: suffix
|
|
18137
18141
|
})
|
|
18138
|
-
})) : null, TrailingIcon ? /*#__PURE__*/jsx(
|
|
18142
|
+
})) : null, TrailingIcon ? /*#__PURE__*/jsx(BaseBox, {
|
|
18139
18143
|
paddingRight: "spacing.4",
|
|
18140
18144
|
display: "flex",
|
|
18141
18145
|
children: /*#__PURE__*/jsx(TrailingIcon, {
|
|
@@ -18431,7 +18435,7 @@ StyledBaseInput.displayName = 'StyledBaseInput';
|
|
|
18431
18435
|
|
|
18432
18436
|
var scaleBorder = /*#__PURE__*/keyframes(["from{transform:scaleX(0);transform-origin:left;opacity:0;}to{transform:scaleX(1);transform-origin:left;opacity:1;}"]);
|
|
18433
18437
|
var fadeOutBorder = /*#__PURE__*/keyframes(["from{opacity:1}to{opacity:0}"]);
|
|
18434
|
-
var BaseInputStyledAnimatedBorder = /*#__PURE__*/styled(
|
|
18438
|
+
var BaseInputStyledAnimatedBorder = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
18435
18439
|
displayName: "BaseInputAnimatedBorderweb__BaseInputStyledAnimatedBorder",
|
|
18436
18440
|
componentId: "sc-2cepod-0"
|
|
18437
18441
|
})(function (_ref) {
|
|
@@ -18470,7 +18474,7 @@ var _excluded$1 = ["children", "validationState", "currentInteraction", "isLabel
|
|
|
18470
18474
|
function ownKeys$c(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
18471
18475
|
|
|
18472
18476
|
function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
18473
|
-
var StyledBaseInputWrapper = /*#__PURE__*/styled(
|
|
18477
|
+
var StyledBaseInputWrapper = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
18474
18478
|
displayName: "BaseInputWrapper__StyledBaseInputWrapper",
|
|
18475
18479
|
componentId: "sc-27jk75-0"
|
|
18476
18480
|
})(function (props) {
|
|
@@ -18828,14 +18832,14 @@ var BaseInput = /*#__PURE__*/React__default.forwardRef(function (_ref10, ref) {
|
|
|
18828
18832
|
|
|
18829
18833
|
var isTextArea = as === 'textarea';
|
|
18830
18834
|
var isReactNative = getPlatformType() === 'react-native';
|
|
18831
|
-
return /*#__PURE__*/jsxs(
|
|
18832
|
-
children: [/*#__PURE__*/jsxs(
|
|
18835
|
+
return /*#__PURE__*/jsxs(BaseBox, _objectSpread$b(_objectSpread$b({}, metaAttribute(MetaConstants.Component, componentName)), {}, {
|
|
18836
|
+
children: [/*#__PURE__*/jsxs(BaseBox, {
|
|
18833
18837
|
display: "flex",
|
|
18834
18838
|
flexDirection: isLabelLeftPositioned ? 'row' : 'column',
|
|
18835
18839
|
justifyContent: isLabelLeftPositioned ? 'center' : undefined,
|
|
18836
18840
|
alignItems: isLabelLeftPositioned ? 'center' : undefined,
|
|
18837
18841
|
position: "relative",
|
|
18838
|
-
children: [!hideLabelText && /*#__PURE__*/jsxs(
|
|
18842
|
+
children: [!hideLabelText && /*#__PURE__*/jsxs(BaseBox, {
|
|
18839
18843
|
display: "flex",
|
|
18840
18844
|
flexDirection: isLabelLeftPositioned ? 'column' : 'row',
|
|
18841
18845
|
justifyContent: "space-between",
|
|
@@ -18904,9 +18908,9 @@ var BaseInput = /*#__PURE__*/React__default.forwardRef(function (_ref10, ref) {
|
|
|
18904
18908
|
isDisabled: isDisabled
|
|
18905
18909
|
})]
|
|
18906
18910
|
})]
|
|
18907
|
-
}), !hideFormHint && /*#__PURE__*/jsx(
|
|
18911
|
+
}), !hideFormHint && /*#__PURE__*/jsx(BaseBox, {
|
|
18908
18912
|
marginLeft: isLabelLeftPositioned ? 136 : 0,
|
|
18909
|
-
children: /*#__PURE__*/jsxs(
|
|
18913
|
+
children: /*#__PURE__*/jsxs(BaseBox, {
|
|
18910
18914
|
display: "flex",
|
|
18911
18915
|
flexDirection: "row",
|
|
18912
18916
|
justifyContent: willRenderHintText ? 'space-between' : 'flex-end',
|
|
@@ -19156,7 +19160,7 @@ var _TextInput = function _TextInput(_ref2, ref) {
|
|
|
19156
19160
|
trailingFooterSlot: function trailingFooterSlot(value) {
|
|
19157
19161
|
var _value$length;
|
|
19158
19162
|
|
|
19159
|
-
return maxCharacters ? /*#__PURE__*/jsx(
|
|
19163
|
+
return maxCharacters ? /*#__PURE__*/jsx(BaseBox, {
|
|
19160
19164
|
marginTop: "spacing.2",
|
|
19161
19165
|
marginRight: "spacing.1",
|
|
19162
19166
|
children: /*#__PURE__*/jsx(CharacterCounter, {
|
|
@@ -19236,7 +19240,7 @@ var _PasswordInput = function _PasswordInput(_ref, ref) {
|
|
|
19236
19240
|
var trailingFooterSlot = function trailingFooterSlot(value) {
|
|
19237
19241
|
var _value$length;
|
|
19238
19242
|
|
|
19239
|
-
return maxCharacters ? /*#__PURE__*/jsx(
|
|
19243
|
+
return maxCharacters ? /*#__PURE__*/jsx(BaseBox, {
|
|
19240
19244
|
marginTop: "spacing.2",
|
|
19241
19245
|
marginRight: "spacing.1",
|
|
19242
19246
|
children: /*#__PURE__*/jsx(CharacterCounter, {
|
|
@@ -19323,7 +19327,7 @@ var _TextArea = function _TextArea(_ref, ref) {
|
|
|
19323
19327
|
|
|
19324
19328
|
var renderInteractionElement = function renderInteractionElement() {
|
|
19325
19329
|
if (shouldShowClearButton) {
|
|
19326
|
-
return /*#__PURE__*/jsx(
|
|
19330
|
+
return /*#__PURE__*/jsx(BaseBox, {
|
|
19327
19331
|
paddingTop: "spacing.3",
|
|
19328
19332
|
marginTop: "spacing.1",
|
|
19329
19333
|
children: /*#__PURE__*/jsx(IconButton, {
|
|
@@ -19401,7 +19405,7 @@ var _TextArea = function _TextArea(_ref, ref) {
|
|
|
19401
19405
|
trailingFooterSlot: function trailingFooterSlot(value) {
|
|
19402
19406
|
var _value$length;
|
|
19403
19407
|
|
|
19404
|
-
return maxCharacters ? /*#__PURE__*/jsx(
|
|
19408
|
+
return maxCharacters ? /*#__PURE__*/jsx(BaseBox, {
|
|
19405
19409
|
marginTop: "spacing.2",
|
|
19406
19410
|
marginRight: "spacing.1",
|
|
19407
19411
|
children: /*#__PURE__*/jsx(CharacterCounter, {
|
|
@@ -19681,7 +19685,7 @@ var OTPInput = function OTPInput(_ref) {
|
|
|
19681
19685
|
}
|
|
19682
19686
|
|
|
19683
19687
|
inputRefs.push(ref);
|
|
19684
|
-
inputs.push( /*#__PURE__*/jsx(
|
|
19688
|
+
inputs.push( /*#__PURE__*/jsx(BaseBox, {
|
|
19685
19689
|
flex: 1,
|
|
19686
19690
|
marginLeft: index == 0 ? 'spacing.0' : 'spacing.3',
|
|
19687
19691
|
maxWidth: platform === 'onDesktop' ? 36 : 40 // TODO: use size tokens
|
|
@@ -19735,8 +19739,8 @@ var OTPInput = function OTPInput(_ref) {
|
|
|
19735
19739
|
return inputs;
|
|
19736
19740
|
};
|
|
19737
19741
|
|
|
19738
|
-
return /*#__PURE__*/jsxs(
|
|
19739
|
-
children: [/*#__PURE__*/jsxs(
|
|
19742
|
+
return /*#__PURE__*/jsxs(BaseBox, _objectSpread$9(_objectSpread$9({}, metaAttribute(MetaConstants.Component, MetaConstants.OTPInput)), {}, {
|
|
19743
|
+
children: [/*#__PURE__*/jsxs(BaseBox, {
|
|
19740
19744
|
display: "flex",
|
|
19741
19745
|
flexDirection: isLabelLeftPositioned ? 'row' : 'column',
|
|
19742
19746
|
alignItems: isLabelLeftPositioned ? 'center' : undefined,
|
|
@@ -19746,12 +19750,12 @@ var OTPInput = function OTPInput(_ref) {
|
|
|
19746
19750
|
position: labelPosition,
|
|
19747
19751
|
htmlFor: inputId,
|
|
19748
19752
|
children: label
|
|
19749
|
-
}), /*#__PURE__*/jsxs(
|
|
19753
|
+
}), /*#__PURE__*/jsxs(BaseBox, {
|
|
19750
19754
|
display: "flex",
|
|
19751
19755
|
flexDirection: "row",
|
|
19752
19756
|
children: [getHiddenInput(), getOTPInputFields()]
|
|
19753
19757
|
})]
|
|
19754
|
-
}), /*#__PURE__*/jsx(
|
|
19758
|
+
}), /*#__PURE__*/jsx(BaseBox, {
|
|
19755
19759
|
marginLeft: isLabelLeftPositioned ? 136 : 0,
|
|
19756
19760
|
children: /*#__PURE__*/jsx(FormHint, {
|
|
19757
19761
|
type: getHintType({
|
|
@@ -19771,7 +19775,7 @@ var OTPInput = function OTPInput(_ref) {
|
|
|
19771
19775
|
|
|
19772
19776
|
var SelectChevronIcon = function SelectChevronIcon(props) {
|
|
19773
19777
|
var Icon = props.icon;
|
|
19774
|
-
return /*#__PURE__*/jsx(
|
|
19778
|
+
return /*#__PURE__*/jsx(BaseBox, {
|
|
19775
19779
|
as: "div",
|
|
19776
19780
|
display: "flex",
|
|
19777
19781
|
justifyContent: "center",
|
|
@@ -19823,12 +19827,12 @@ var _SelectInput = function _SelectInput(props, ref) {
|
|
|
19823
19827
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
19824
19828
|
name: props.name,
|
|
19825
19829
|
values: value.split(', ')
|
|
19826
|
-
});
|
|
19827
|
-
}, [value,
|
|
19830
|
+
}); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
19831
|
+
}, [value, props.name]);
|
|
19828
19832
|
React__default.useEffect(function () {
|
|
19829
19833
|
setHasLabelOnLeft(props.labelPosition === 'left');
|
|
19830
19834
|
}, [props.labelPosition, setHasLabelOnLeft]);
|
|
19831
|
-
return /*#__PURE__*/jsxs(
|
|
19835
|
+
return /*#__PURE__*/jsxs(BaseBox, {
|
|
19832
19836
|
position: "relative",
|
|
19833
19837
|
children: [!isReactNative$4() ? /*#__PURE__*/jsx(VisuallyHidden, {
|
|
19834
19838
|
children: /*#__PURE__*/jsx("input", {
|
|
@@ -19956,7 +19960,7 @@ var Indicator = function Indicator(_ref) {
|
|
|
19956
19960
|
}, isWeb && {
|
|
19957
19961
|
role: 'status'
|
|
19958
19962
|
}));
|
|
19959
|
-
return /*#__PURE__*/jsxs(
|
|
19963
|
+
return /*#__PURE__*/jsxs(BaseBox, _objectSpread$7(_objectSpread$7(_objectSpread$7({
|
|
19960
19964
|
display: "flex",
|
|
19961
19965
|
flexDirection: "row",
|
|
19962
19966
|
alignItems: "center"
|
|
@@ -19978,7 +19982,7 @@ var Indicator = function Indicator(_ref) {
|
|
|
19978
19982
|
stroke: strokeColor,
|
|
19979
19983
|
strokeWidth: "0.5"
|
|
19980
19984
|
})]
|
|
19981
|
-
}), /*#__PURE__*/jsx(
|
|
19985
|
+
}), /*#__PURE__*/jsx(BaseBox, {
|
|
19982
19986
|
marginLeft: "spacing.2",
|
|
19983
19987
|
children: /*#__PURE__*/jsx(Text, {
|
|
19984
19988
|
contrast: "low",
|
|
@@ -20447,12 +20451,12 @@ var ListItem = function ListItem(_ref2) {
|
|
|
20447
20451
|
variant: variant,
|
|
20448
20452
|
hasIcon: hasIcon
|
|
20449
20453
|
}, metaAttribute(MetaConstants.Component, MetaConstants.ListItem)), {}, {
|
|
20450
|
-
children: [/*#__PURE__*/jsxs(
|
|
20454
|
+
children: [/*#__PURE__*/jsxs(BaseBox, {
|
|
20451
20455
|
display: "flex",
|
|
20452
20456
|
flexDirection: "row",
|
|
20453
20457
|
alignItems: "center",
|
|
20454
20458
|
marginBottom: listItemMarginBottom,
|
|
20455
|
-
children: [variant === 'unordered' ? /*#__PURE__*/jsx(
|
|
20459
|
+
children: [variant === 'unordered' ? /*#__PURE__*/jsx(BaseBox, {
|
|
20456
20460
|
marginRight: listItemBulletMarginRight[variant],
|
|
20457
20461
|
marginTop: listItemBulletMarginTop["".concat(variant).concat(hasIcon ? 'WithIcon' : '')][platform][size],
|
|
20458
20462
|
display: "flex",
|
|
@@ -20463,7 +20467,7 @@ var ListItem = function ListItem(_ref2) {
|
|
|
20463
20467
|
}) : /*#__PURE__*/jsx(UnorderedItemIcon, {
|
|
20464
20468
|
level: level
|
|
20465
20469
|
})
|
|
20466
|
-
}) : /*#__PURE__*/jsx(
|
|
20470
|
+
}) : /*#__PURE__*/jsx(BaseBox, {
|
|
20467
20471
|
width: listItemOrderedBulletBoxSize[variant][platform][size],
|
|
20468
20472
|
height: listItemOrderedBulletBoxSize[variant][platform][size],
|
|
20469
20473
|
marginRight: listItemBulletMarginRight[variant],
|
|
@@ -20636,7 +20640,7 @@ var getPulseAnimationStyles = function getPulseAnimationStyles(_ref) {
|
|
|
20636
20640
|
return css(["height:100%;width:100%;opacity:", ";background-color:", ";animation:", " ", " ", " infinite;animation-delay:", ";"], pulseAnimation.opacityInitial, pulseAnimation.backgroundColor, pulseKeyframes, duration, easing, delay);
|
|
20637
20641
|
};
|
|
20638
20642
|
|
|
20639
|
-
var BoxWithIndeterminateAnimation = /*#__PURE__*/styled(
|
|
20643
|
+
var BoxWithIndeterminateAnimation = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
20640
20644
|
displayName: "ProgressBarFilledweb__BoxWithIndeterminateAnimation",
|
|
20641
20645
|
componentId: "sc-15oi5xk-0"
|
|
20642
20646
|
})(function (_ref2) {
|
|
@@ -20674,7 +20678,7 @@ var IndeterminatePulseAnimation = /*#__PURE__*/styled(BoxWithIndeterminateAnimat
|
|
|
20674
20678
|
delay: delay
|
|
20675
20679
|
}) : '';
|
|
20676
20680
|
});
|
|
20677
|
-
var BoxWithProgressFillTransition = /*#__PURE__*/styled(
|
|
20681
|
+
var BoxWithProgressFillTransition = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
20678
20682
|
displayName: "ProgressBarFilledweb__BoxWithProgressFillTransition",
|
|
20679
20683
|
componentId: "sc-15oi5xk-3"
|
|
20680
20684
|
})(function (_ref5) {
|
|
@@ -20815,7 +20819,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
20815
20819
|
}
|
|
20816
20820
|
|
|
20817
20821
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
20818
|
-
children: [/*#__PURE__*/jsxs(
|
|
20822
|
+
children: [/*#__PURE__*/jsxs(BaseBox, {
|
|
20819
20823
|
display: "flex",
|
|
20820
20824
|
flexDirection: "row",
|
|
20821
20825
|
justifyContent: hasLabel ? 'space-between' : 'flex-end',
|
|
@@ -20824,7 +20828,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
20824
20828
|
htmlFor: id,
|
|
20825
20829
|
contrast: contrast,
|
|
20826
20830
|
children: label
|
|
20827
|
-
}) : null, shouldShowPercentage ? /*#__PURE__*/jsx(
|
|
20831
|
+
}) : null, shouldShowPercentage ? /*#__PURE__*/jsx(BaseBox, {
|
|
20828
20832
|
marginBottom: "spacing.2",
|
|
20829
20833
|
children: /*#__PURE__*/jsx(Text, {
|
|
20830
20834
|
type: "subdued",
|
|
@@ -20834,7 +20838,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
20834
20838
|
children: "".concat(percentageProgressValue, "%")
|
|
20835
20839
|
})
|
|
20836
20840
|
}) : null]
|
|
20837
|
-
}), /*#__PURE__*/jsx(
|
|
20841
|
+
}), /*#__PURE__*/jsx(BaseBox, _objectSpread$3(_objectSpread$3(_objectSpread$3({
|
|
20838
20842
|
id: id
|
|
20839
20843
|
}, metaAttribute(MetaConstants.Component, MetaConstants.ProgressBar)), makeAccessible({
|
|
20840
20844
|
role: accessibilityProps.role,
|
|
@@ -20844,7 +20848,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
20844
20848
|
valueMin: accessibilityProps.valueMin,
|
|
20845
20849
|
valueMax: accessibilityProps.valueMax
|
|
20846
20850
|
})), {}, {
|
|
20847
|
-
children: /*#__PURE__*/jsx(
|
|
20851
|
+
children: /*#__PURE__*/jsx(BaseBox, {
|
|
20848
20852
|
backgroundColor: unfilledBackgroundColor,
|
|
20849
20853
|
height: makeSize(progressBarHeight[size]),
|
|
20850
20854
|
overflow: "hidden",
|
|
@@ -21331,10 +21335,10 @@ var _Radio = function _Radio(_ref, ref) {
|
|
|
21331
21335
|
|
|
21332
21336
|
return /*#__PURE__*/jsx(SelectorLabel, {
|
|
21333
21337
|
inputProps: isReactNative ? inputProps : {},
|
|
21334
|
-
children: /*#__PURE__*/jsxs(
|
|
21338
|
+
children: /*#__PURE__*/jsxs(BaseBox, {
|
|
21335
21339
|
display: "flex",
|
|
21336
21340
|
flexDirection: "column",
|
|
21337
|
-
children: [/*#__PURE__*/jsxs(
|
|
21341
|
+
children: [/*#__PURE__*/jsxs(BaseBox, {
|
|
21338
21342
|
display: "flex",
|
|
21339
21343
|
alignItems: "center",
|
|
21340
21344
|
flexDirection: "row",
|
|
@@ -21354,7 +21358,7 @@ var _Radio = function _Radio(_ref, ref) {
|
|
|
21354
21358
|
isDisabled: _isDisabled,
|
|
21355
21359
|
children: children
|
|
21356
21360
|
})]
|
|
21357
|
-
}), /*#__PURE__*/jsx(
|
|
21361
|
+
}), /*#__PURE__*/jsx(BaseBox, {
|
|
21358
21362
|
marginLeft: isSmall ? 'spacing.6' : 'spacing.7',
|
|
21359
21363
|
children: showHelpText && /*#__PURE__*/jsx(SelectorSupportText, {
|
|
21360
21364
|
id: ids === null || ids === void 0 ? void 0 : ids.helpTextId,
|
|
@@ -21516,12 +21520,12 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
21516
21520
|
id: ids.labelId,
|
|
21517
21521
|
accessibilityText: accessibilityText && ",".concat(accessibilityText),
|
|
21518
21522
|
children: label
|
|
21519
|
-
}), /*#__PURE__*/jsxs(
|
|
21520
|
-
children: [/*#__PURE__*/jsx(
|
|
21523
|
+
}), /*#__PURE__*/jsxs(BaseBox, {
|
|
21524
|
+
children: [/*#__PURE__*/jsx(BaseBox, {
|
|
21521
21525
|
display: "flex",
|
|
21522
21526
|
flexDirection: "column",
|
|
21523
21527
|
children: React__default.Children.map(children, function (child, index) {
|
|
21524
|
-
return /*#__PURE__*/jsx(
|
|
21528
|
+
return /*#__PURE__*/jsx(BaseBox, {
|
|
21525
21529
|
marginBottom: index === childCount - 1 ? 0 : gap,
|
|
21526
21530
|
children: child
|
|
21527
21531
|
}, index);
|