@razorpay/blade 6.5.2 → 6.6.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 +19 -0
- package/build/components/index.d.ts +118 -171
- package/build/components/index.native.d.ts +122 -178
- package/build/components/index.native.js +31 -29
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +331 -183
- package/build/components/index.web.js.map +1 -1
- package/build/css/bankingThemeDarkDesktop.css +2 -1
- package/build/css/bankingThemeDarkMobile.css +2 -1
- package/build/css/bankingThemeLightDesktop.css +2 -1
- package/build/css/bankingThemeLightMobile.css +2 -1
- package/build/css/paymentThemeDarkDesktop.css +2 -1
- package/build/css/paymentThemeDarkMobile.css +2 -1
- package/build/css/paymentThemeLightDesktop.css +2 -1
- package/build/css/paymentThemeLightMobile.css +2 -1
- package/build/tokens/index.d.ts +19 -0
- package/build/tokens/index.native.d.ts +19 -0
- package/build/tokens/index.native.js +2 -2
- package/build/tokens/index.native.js.map +1 -1
- package/build/tokens/index.web.js +2 -0
- package/build/tokens/index.web.js.map +1 -1
- package/build/utils/index.d.ts +1 -7
- package/build/utils/index.native.d.ts +1 -7
- package/build/utils/index.native.js.map +1 -1
- package/build/utils/index.web.js +3 -5
- package/build/utils/index.web.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,8 +5,8 @@ import _typeof from '@babel/runtime/helpers/typeof';
|
|
|
5
5
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
6
6
|
import styled, { ThemeProvider, css, keyframes } from 'styled-components';
|
|
7
7
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
8
|
-
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
9
8
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
|
+
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
10
10
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
11
11
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
12
12
|
|
|
@@ -2595,17 +2595,15 @@ var symbolProto = Symbol ? Symbol.prototype : undefined;
|
|
|
2595
2595
|
symbolProto ? symbolProto.valueOf : undefined;
|
|
2596
2596
|
|
|
2597
2597
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2598
|
-
/**
|
|
2599
|
-
* A type defining React component with additional static prop `componentId`
|
|
2600
|
-
*/
|
|
2601
|
-
|
|
2602
2598
|
/**
|
|
2603
2599
|
* Gets the `componentId` prop of React component if it exists.
|
|
2604
2600
|
*/
|
|
2601
|
+
|
|
2605
2602
|
var getComponentId = function getComponentId(component) {
|
|
2606
2603
|
var _component$type;
|
|
2607
2604
|
|
|
2608
|
-
if (! /*#__PURE__*/React__default.isValidElement(component)) return null;
|
|
2605
|
+
if (! /*#__PURE__*/React__default.isValidElement(component)) return null; // eslint-disable-next-line no-restricted-properties
|
|
2606
|
+
|
|
2609
2607
|
return (_component$type = component.type) === null || _component$type === void 0 ? void 0 : _component$type.componentId;
|
|
2610
2608
|
};
|
|
2611
2609
|
/**
|
|
@@ -3712,6 +3710,25 @@ var isReactNative$4 = function isReactNative() {
|
|
|
3712
3710
|
var castWebType = function castWebType(value) {
|
|
3713
3711
|
return value;
|
|
3714
3712
|
};
|
|
3713
|
+
/**
|
|
3714
|
+
* @description
|
|
3715
|
+
*
|
|
3716
|
+
* Casts a Platform.Select<> type to native type
|
|
3717
|
+
*
|
|
3718
|
+
* @example
|
|
3719
|
+
*
|
|
3720
|
+
* ```ts
|
|
3721
|
+
* type Example = Platform.Select<{ web: string; native: number }>;
|
|
3722
|
+
*
|
|
3723
|
+
* const extractedNativeType = castNativeType('' as Example);
|
|
3724
|
+
* // ^ number
|
|
3725
|
+
* ```
|
|
3726
|
+
*/
|
|
3727
|
+
|
|
3728
|
+
|
|
3729
|
+
var castNativeType = function castNativeType(value) {
|
|
3730
|
+
return value;
|
|
3731
|
+
};
|
|
3715
3732
|
|
|
3716
3733
|
/**
|
|
3717
3734
|
* is the role supposed to be `menu`
|
|
@@ -4204,15 +4221,92 @@ var getBaseBoxStyles = function getBaseBoxStyles(props) {
|
|
|
4204
4221
|
return _objectSpread$5h(_objectSpread$5h({}, getAllProps(props)), getAllMediaQueries(props));
|
|
4205
4222
|
};
|
|
4206
4223
|
|
|
4207
|
-
var
|
|
4224
|
+
var ThemeContext = /*#__PURE__*/createContext({
|
|
4225
|
+
// @ts-expect-error set null
|
|
4226
|
+
theme: null,
|
|
4227
|
+
colorScheme: 'light',
|
|
4228
|
+
platform: 'onDesktop',
|
|
4229
|
+
setColorScheme: function setColorScheme() {
|
|
4230
|
+
return null;
|
|
4231
|
+
}
|
|
4232
|
+
});
|
|
4233
|
+
|
|
4234
|
+
var useTheme = function useTheme() {
|
|
4235
|
+
var themeContext = useContext(ThemeContext);
|
|
4236
|
+
|
|
4237
|
+
if (!themeContext.theme) {
|
|
4238
|
+
throw new Error("[@razorpay/blade:BladeProvider]: BladeProvider is missing theme");
|
|
4239
|
+
}
|
|
4240
|
+
|
|
4241
|
+
if (themeContext === undefined) {
|
|
4242
|
+
throw new Error("[@razorpay/blade:BladeProvider]: useTheme must be used within BladeProvider");
|
|
4243
|
+
}
|
|
4244
|
+
|
|
4245
|
+
return themeContext;
|
|
4246
|
+
};
|
|
4208
4247
|
|
|
4209
4248
|
function ownKeys$5g(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; }
|
|
4210
4249
|
|
|
4211
4250
|
function _objectSpread$5g(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5g(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5g(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4212
4251
|
|
|
4252
|
+
var BladeProvider = function BladeProvider(_ref) {
|
|
4253
|
+
var themeTokens = _ref.themeTokens,
|
|
4254
|
+
initialColorScheme = _ref.colorScheme,
|
|
4255
|
+
children = _ref.children;
|
|
4256
|
+
|
|
4257
|
+
if (!themeTokens) {
|
|
4258
|
+
throw new Error("[BladeProvider]: Expected valid themeTokens of type ThemeTokens to be passed but found ".concat(_typeof(themeTokens)));
|
|
4259
|
+
}
|
|
4260
|
+
|
|
4261
|
+
if (initialColorScheme && !colorSchemeNamesInput.includes(initialColorScheme)) {
|
|
4262
|
+
throw new Error("[BladeProvider]: Expected color scheme to be one of [".concat(colorSchemeNamesInput.toString(), "] but received ").concat(initialColorScheme));
|
|
4263
|
+
}
|
|
4264
|
+
|
|
4265
|
+
var _useColorScheme = useColorScheme(initialColorScheme),
|
|
4266
|
+
colorScheme = _useColorScheme.colorScheme,
|
|
4267
|
+
setColorScheme = _useColorScheme.setColorScheme;
|
|
4268
|
+
|
|
4269
|
+
var _useBreakpoint = useBreakpoint({
|
|
4270
|
+
breakpoints: themeTokens.breakpoints
|
|
4271
|
+
}),
|
|
4272
|
+
matchedDeviceType = _useBreakpoint.matchedDeviceType;
|
|
4273
|
+
|
|
4274
|
+
var onColorMode = "on".concat(toTitleCase(colorScheme));
|
|
4275
|
+
var onDeviceType = "on".concat(toTitleCase(matchedDeviceType));
|
|
4276
|
+
|
|
4277
|
+
var theme = _objectSpread$5g(_objectSpread$5g({}, themeTokens), {}, {
|
|
4278
|
+
colors: themeTokens.colors[onColorMode],
|
|
4279
|
+
shadows: _objectSpread$5g(_objectSpread$5g({}, themeTokens.shadows), {}, {
|
|
4280
|
+
color: themeTokens.shadows.color[onColorMode]
|
|
4281
|
+
}),
|
|
4282
|
+
typography: themeTokens.typography[onDeviceType]
|
|
4283
|
+
});
|
|
4284
|
+
|
|
4285
|
+
var themeContextValue = {
|
|
4286
|
+
theme: theme,
|
|
4287
|
+
colorScheme: colorScheme,
|
|
4288
|
+
setColorScheme: setColorScheme,
|
|
4289
|
+
platform: onDeviceType
|
|
4290
|
+
};
|
|
4291
|
+
return /*#__PURE__*/jsx(ThemeContext.Provider, {
|
|
4292
|
+
value: themeContextValue,
|
|
4293
|
+
children: /*#__PURE__*/jsx(ThemeProvider, {
|
|
4294
|
+
theme: theme,
|
|
4295
|
+
children: children
|
|
4296
|
+
})
|
|
4297
|
+
});
|
|
4298
|
+
};
|
|
4299
|
+
|
|
4300
|
+
var _excluded$4M = ["theme", "colorScheme", "children", "className", "id"];
|
|
4301
|
+
|
|
4302
|
+
function ownKeys$5f(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; }
|
|
4303
|
+
|
|
4304
|
+
function _objectSpread$5f(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5f(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4305
|
+
|
|
4213
4306
|
var getMemoDependency = function getMemoDependency(props) {
|
|
4214
4307
|
// These are the props that change nothing in the getBaseBoxStyles calculations
|
|
4215
|
-
props.theme
|
|
4308
|
+
var theme = props.theme,
|
|
4309
|
+
colorScheme = props.colorScheme;
|
|
4216
4310
|
props.children;
|
|
4217
4311
|
props.className;
|
|
4218
4312
|
props.id;
|
|
@@ -4224,7 +4318,7 @@ var getMemoDependency = function getMemoDependency(props) {
|
|
|
4224
4318
|
// I know this looks illegal but Dan approves it - https://twitter.com/dan_abramov/status/1104414272753487872?s=20
|
|
4225
4319
|
// A lot of times passing object to dependency prop isn't efficient and mostly won't work
|
|
4226
4320
|
// Hence we JSON.strinfigy and pass the string as dependency prop. React handles this way better.
|
|
4227
|
-
dependencyPropString = JSON.stringify(rest);
|
|
4321
|
+
dependencyPropString = "".concat(JSON.stringify(rest), "-").concat(theme === null || theme === void 0 ? void 0 : theme.name, "-").concat(colorScheme);
|
|
4228
4322
|
} catch (err) {
|
|
4229
4323
|
console.warn('[Blade - BaseBox]: stringification of props failed in BaseBox so falling back to re-calculations on all changes\n\n If you see this warning, please create issue on https://github.com/razorpay/blade as this could degrade runtime styling performance', err);
|
|
4230
4324
|
dependencyPropString = rest;
|
|
@@ -4245,9 +4339,14 @@ var getMemoDependency = function getMemoDependency(props) {
|
|
|
4245
4339
|
|
|
4246
4340
|
|
|
4247
4341
|
var useMemoizedStyles = function useMemoizedStyles(boxProps) {
|
|
4248
|
-
var
|
|
4342
|
+
var _useTheme = useTheme(),
|
|
4343
|
+
colorScheme = _useTheme.colorScheme;
|
|
4344
|
+
|
|
4345
|
+
var boxPropsMemoDependency = getMemoDependency(_objectSpread$5f(_objectSpread$5f({}, boxProps), {}, {
|
|
4346
|
+
colorScheme: colorScheme
|
|
4347
|
+
}));
|
|
4249
4348
|
var boxPropsCSSObject = React__default.useMemo(function () {
|
|
4250
|
-
return getBaseBoxStyles(_objectSpread$
|
|
4349
|
+
return getBaseBoxStyles(_objectSpread$5f(_objectSpread$5f({}, boxProps), {}, {
|
|
4251
4350
|
theme: boxProps.theme
|
|
4252
4351
|
}));
|
|
4253
4352
|
}, // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -4263,14 +4362,14 @@ var BaseBox = /*#__PURE__*/styled.div.withConfig({
|
|
|
4263
4362
|
return cssObject;
|
|
4264
4363
|
});
|
|
4265
4364
|
|
|
4266
|
-
function ownKeys$
|
|
4365
|
+
function ownKeys$5e(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; }
|
|
4267
4366
|
|
|
4268
|
-
function _objectSpread$
|
|
4367
|
+
function _objectSpread$5e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5e(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4269
4368
|
var StyledActionList = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
4270
4369
|
displayName: "StyledActionListweb__StyledActionList",
|
|
4271
4370
|
componentId: "lwcs1w-0"
|
|
4272
4371
|
})(function (props) {
|
|
4273
|
-
return _objectSpread$
|
|
4372
|
+
return _objectSpread$5e({}, getBaseActionListStyles(props));
|
|
4274
4373
|
});
|
|
4275
4374
|
|
|
4276
4375
|
/**
|
|
@@ -4354,16 +4453,16 @@ var getBaseListBoxWrapperStyles = function getBaseListBoxWrapperStyles(props) {
|
|
|
4354
4453
|
};
|
|
4355
4454
|
};
|
|
4356
4455
|
|
|
4357
|
-
function ownKeys$
|
|
4456
|
+
function ownKeys$5d(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; }
|
|
4358
4457
|
|
|
4359
|
-
function _objectSpread$
|
|
4458
|
+
function _objectSpread$5d(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5d(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4360
4459
|
var StyledListBoxWrapper = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
4361
4460
|
displayName: "StyledListBoxWrapperweb__StyledListBoxWrapper",
|
|
4362
4461
|
componentId: "sc-1eo4pr6-0"
|
|
4363
4462
|
})(function (props) {
|
|
4364
4463
|
var _objectSpread2;
|
|
4365
4464
|
|
|
4366
|
-
return _objectSpread$
|
|
4465
|
+
return _objectSpread$5d((_objectSpread2 = {}, _defineProperty$1(_objectSpread2, "& [role=group]:last-child > [role=separator]:last-child", {
|
|
4367
4466
|
display: 'none'
|
|
4368
4467
|
}), _defineProperty$1(_objectSpread2, "overflowY", 'auto'), _objectSpread2), getBaseListBoxWrapperStyles({
|
|
4369
4468
|
theme: props.theme
|
|
@@ -4661,9 +4760,9 @@ var makeInputDisplayValue = function makeInputDisplayValue(selectedIndices, opti
|
|
|
4661
4760
|
|
|
4662
4761
|
var _excluded$4L = ["isOpen", "setIsOpen", "selectedIndices", "setSelectedIndices", "activeIndex", "setActiveIndex", "shouldIgnoreBlur", "setShouldIgnoreBlur", "isKeydownPressed", "setIsKeydownPressed", "options", "selectionType"];
|
|
4663
4762
|
|
|
4664
|
-
function ownKeys$
|
|
4763
|
+
function ownKeys$5c(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; }
|
|
4665
4764
|
|
|
4666
|
-
function _objectSpread$
|
|
4765
|
+
function _objectSpread$5c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5c(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4667
4766
|
|
|
4668
4767
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
4669
4768
|
var noop = function noop() {};
|
|
@@ -4919,7 +5018,7 @@ var useDropdown = function useDropdown() {
|
|
|
4919
5018
|
}
|
|
4920
5019
|
};
|
|
4921
5020
|
|
|
4922
|
-
return _objectSpread$
|
|
5021
|
+
return _objectSpread$5c({
|
|
4923
5022
|
isOpen: isOpen,
|
|
4924
5023
|
setIsOpen: setIsOpen,
|
|
4925
5024
|
selectedIndices: selectedIndices,
|
|
@@ -4941,82 +5040,6 @@ var useDropdown = function useDropdown() {
|
|
|
4941
5040
|
}, rest);
|
|
4942
5041
|
};
|
|
4943
5042
|
|
|
4944
|
-
var ThemeContext = /*#__PURE__*/createContext({
|
|
4945
|
-
// @ts-expect-error set null
|
|
4946
|
-
theme: null,
|
|
4947
|
-
colorScheme: 'light',
|
|
4948
|
-
platform: 'onDesktop',
|
|
4949
|
-
setColorScheme: function setColorScheme() {
|
|
4950
|
-
return null;
|
|
4951
|
-
}
|
|
4952
|
-
});
|
|
4953
|
-
|
|
4954
|
-
var useTheme = function useTheme() {
|
|
4955
|
-
var themeContext = useContext(ThemeContext);
|
|
4956
|
-
|
|
4957
|
-
if (!themeContext.theme) {
|
|
4958
|
-
throw new Error("[@razorpay/blade:BladeProvider]: BladeProvider is missing theme");
|
|
4959
|
-
}
|
|
4960
|
-
|
|
4961
|
-
if (themeContext === undefined) {
|
|
4962
|
-
throw new Error("[@razorpay/blade:BladeProvider]: useTheme must be used within BladeProvider");
|
|
4963
|
-
}
|
|
4964
|
-
|
|
4965
|
-
return themeContext;
|
|
4966
|
-
};
|
|
4967
|
-
|
|
4968
|
-
function ownKeys$5c(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; }
|
|
4969
|
-
|
|
4970
|
-
function _objectSpread$5c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5c(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4971
|
-
|
|
4972
|
-
var BladeProvider = function BladeProvider(_ref) {
|
|
4973
|
-
var themeTokens = _ref.themeTokens,
|
|
4974
|
-
initialColorScheme = _ref.colorScheme,
|
|
4975
|
-
children = _ref.children;
|
|
4976
|
-
|
|
4977
|
-
if (!themeTokens) {
|
|
4978
|
-
throw new Error("[BladeProvider]: Expected valid themeTokens of type ThemeTokens to be passed but found ".concat(_typeof(themeTokens)));
|
|
4979
|
-
}
|
|
4980
|
-
|
|
4981
|
-
if (initialColorScheme && !colorSchemeNamesInput.includes(initialColorScheme)) {
|
|
4982
|
-
throw new Error("[BladeProvider]: Expected color scheme to be one of [".concat(colorSchemeNamesInput.toString(), "] but received ").concat(initialColorScheme));
|
|
4983
|
-
}
|
|
4984
|
-
|
|
4985
|
-
var _useColorScheme = useColorScheme(initialColorScheme),
|
|
4986
|
-
colorScheme = _useColorScheme.colorScheme,
|
|
4987
|
-
setColorScheme = _useColorScheme.setColorScheme;
|
|
4988
|
-
|
|
4989
|
-
var _useBreakpoint = useBreakpoint({
|
|
4990
|
-
breakpoints: themeTokens.breakpoints
|
|
4991
|
-
}),
|
|
4992
|
-
matchedDeviceType = _useBreakpoint.matchedDeviceType;
|
|
4993
|
-
|
|
4994
|
-
var onColorMode = "on".concat(toTitleCase(colorScheme));
|
|
4995
|
-
var onDeviceType = "on".concat(toTitleCase(matchedDeviceType));
|
|
4996
|
-
|
|
4997
|
-
var theme = _objectSpread$5c(_objectSpread$5c({}, themeTokens), {}, {
|
|
4998
|
-
colors: themeTokens.colors[onColorMode],
|
|
4999
|
-
shadows: _objectSpread$5c(_objectSpread$5c({}, themeTokens.shadows), {}, {
|
|
5000
|
-
color: themeTokens.shadows.color[onColorMode]
|
|
5001
|
-
}),
|
|
5002
|
-
typography: themeTokens.typography[onDeviceType]
|
|
5003
|
-
});
|
|
5004
|
-
|
|
5005
|
-
var themeContextValue = {
|
|
5006
|
-
theme: theme,
|
|
5007
|
-
colorScheme: colorScheme,
|
|
5008
|
-
setColorScheme: setColorScheme,
|
|
5009
|
-
platform: onDeviceType
|
|
5010
|
-
};
|
|
5011
|
-
return /*#__PURE__*/jsx(ThemeContext.Provider, {
|
|
5012
|
-
value: themeContextValue,
|
|
5013
|
-
children: /*#__PURE__*/jsx(ThemeProvider, {
|
|
5014
|
-
theme: theme,
|
|
5015
|
-
children: children
|
|
5016
|
-
})
|
|
5017
|
-
});
|
|
5018
|
-
};
|
|
5019
|
-
|
|
5020
5043
|
function ownKeys$5b(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; }
|
|
5021
5044
|
|
|
5022
5045
|
function _objectSpread$5b(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5b(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -16906,6 +16929,44 @@ var useBladeInnerRef = function useBladeInnerRef(targetRef, handlers) {
|
|
|
16906
16929
|
return innerRef;
|
|
16907
16930
|
};
|
|
16908
16931
|
|
|
16932
|
+
/**
|
|
16933
|
+
* Do you want to define `displayName` or `componentId` on your component? Use this instead to make sure treeshaking doesn't break.
|
|
16934
|
+
*
|
|
16935
|
+
* ## Usage
|
|
16936
|
+
*
|
|
16937
|
+
* ### ❌ Incorrect Code (Breaks treeshaking)
|
|
16938
|
+
*
|
|
16939
|
+
* ```ts
|
|
16940
|
+
* const _MyComponent = () => {};
|
|
16941
|
+
* const MyComponent = React.forwardRef(_MyComponent);
|
|
16942
|
+
* const MyComponent.displayName = 'MyComponent'; // this breaks treeshaking
|
|
16943
|
+
*
|
|
16944
|
+
* export { MyComponent }
|
|
16945
|
+
* ```
|
|
16946
|
+
*
|
|
16947
|
+
* ### ✅ Correct Code (No Side-Effects. Treeshaking continues to work)
|
|
16948
|
+
*
|
|
16949
|
+
* ```ts
|
|
16950
|
+
* const _MyComponent = () => {};
|
|
16951
|
+
* const MyComponentWithRef = React.forwardRef(_MyComponent);
|
|
16952
|
+
* const MyComponent = assignWithoutSideEffects(
|
|
16953
|
+
* MyComponentWithRef,
|
|
16954
|
+
* { displayName: 'MyComponent' }
|
|
16955
|
+
* );
|
|
16956
|
+
*
|
|
16957
|
+
* export { MyComponent }
|
|
16958
|
+
* ```
|
|
16959
|
+
*
|
|
16960
|
+
* Checkout other components like [Button.tsx](../../components/Button/Button/Button.tsx), [SelectInput.tsx](../../components/Input/SelectInput/SelectInput.tsx) for example.
|
|
16961
|
+
*
|
|
16962
|
+
* _Note: You don't have to add PURE comment to this function as it is added during build-time by our `manualPureFunctions` babel plugin_
|
|
16963
|
+
*/
|
|
16964
|
+
// We're matching the types of this with Object.assign types
|
|
16965
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
16966
|
+
var assignWithoutSideEffects = function assignWithoutSideEffects(component, sourceObj) {
|
|
16967
|
+
return /*#__PURE__*/Object.assign(component, sourceObj);
|
|
16968
|
+
};
|
|
16969
|
+
|
|
16909
16970
|
function ownKeys$L(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; }
|
|
16910
16971
|
|
|
16911
16972
|
function _objectSpread$L(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$L(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$L(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -16985,8 +17046,9 @@ var _SelectorInput = function _SelectorInput(_ref3, ref) {
|
|
|
16985
17046
|
}));
|
|
16986
17047
|
};
|
|
16987
17048
|
|
|
16988
|
-
var SelectorInput = /*#__PURE__*/React__default.forwardRef(_SelectorInput)
|
|
16989
|
-
|
|
17049
|
+
var SelectorInput = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_SelectorInput), {
|
|
17050
|
+
displayName: 'SelectorInput'
|
|
17051
|
+
});
|
|
16990
17052
|
|
|
16991
17053
|
var _excluded$p = ["defaultChecked", "validationState", "isChecked", "isDisabled", "isIndeterminate", "isRequired", "name", "onChange", "value", "children", "helpText", "errorText", "size", "tabIndex", "testID"];
|
|
16992
17054
|
|
|
@@ -17136,8 +17198,9 @@ var _Checkbox = function _Checkbox(_ref, ref) {
|
|
|
17136
17198
|
}));
|
|
17137
17199
|
};
|
|
17138
17200
|
|
|
17139
|
-
var Checkbox = /*#__PURE__*/React__default.forwardRef(_Checkbox)
|
|
17140
|
-
|
|
17201
|
+
var Checkbox = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_Checkbox), {
|
|
17202
|
+
displayName: 'Checkbox'
|
|
17203
|
+
});
|
|
17141
17204
|
|
|
17142
17205
|
var useCheckboxGroup = function useCheckboxGroup(_ref) {
|
|
17143
17206
|
var value = _ref.value,
|
|
@@ -17390,7 +17453,7 @@ var StyledActionListSectionTitle = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
|
17390
17453
|
};
|
|
17391
17454
|
});
|
|
17392
17455
|
|
|
17393
|
-
var
|
|
17456
|
+
var _ActionListSection = function _ActionListSection(_ref) {
|
|
17394
17457
|
var title = _ref.title,
|
|
17395
17458
|
children = _ref.children,
|
|
17396
17459
|
testID = _ref.testID,
|
|
@@ -17421,9 +17484,11 @@ var ActionListSection = function ActionListSection(_ref) {
|
|
|
17421
17484
|
}));
|
|
17422
17485
|
};
|
|
17423
17486
|
|
|
17424
|
-
ActionListSection
|
|
17487
|
+
var ActionListSection = /*#__PURE__*/assignWithoutSideEffects(_ActionListSection, {
|
|
17488
|
+
componentId: componentIds$1.ActionListSection
|
|
17489
|
+
});
|
|
17425
17490
|
|
|
17426
|
-
var
|
|
17491
|
+
var _ActionListItemIcon = function _ActionListItemIcon(_ref2) {
|
|
17427
17492
|
var icon = _ref2.icon;
|
|
17428
17493
|
var Icon = icon;
|
|
17429
17494
|
|
|
@@ -17439,9 +17504,11 @@ var ActionListItemIcon = function ActionListItemIcon(_ref2) {
|
|
|
17439
17504
|
});
|
|
17440
17505
|
};
|
|
17441
17506
|
|
|
17442
|
-
ActionListItemIcon
|
|
17507
|
+
var ActionListItemIcon = /*#__PURE__*/assignWithoutSideEffects(_ActionListItemIcon, {
|
|
17508
|
+
componentId: componentIds$1.ActionListItemIcon
|
|
17509
|
+
});
|
|
17443
17510
|
|
|
17444
|
-
var
|
|
17511
|
+
var _ActionListItemText = function _ActionListItemText(_ref3) {
|
|
17445
17512
|
var children = _ref3.children;
|
|
17446
17513
|
|
|
17447
17514
|
var _React$useContext2 = React__default.useContext(ActionListItemContext),
|
|
@@ -17456,7 +17523,9 @@ var ActionListItemText = function ActionListItemText(_ref3) {
|
|
|
17456
17523
|
});
|
|
17457
17524
|
};
|
|
17458
17525
|
|
|
17459
|
-
ActionListItemText
|
|
17526
|
+
var ActionListItemText = /*#__PURE__*/assignWithoutSideEffects(_ActionListItemText, {
|
|
17527
|
+
componentId: componentIds$1.ActionListItemText
|
|
17528
|
+
});
|
|
17460
17529
|
var ActionListCheckboxWrapper = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
17461
17530
|
displayName: "ActionListItem__ActionListCheckboxWrapper",
|
|
17462
17531
|
componentId: "m6qdwa-2"
|
|
@@ -17499,7 +17568,7 @@ var makeActionListItemClickable = function makeActionListItemClickable(clickHand
|
|
|
17499
17568
|
*/
|
|
17500
17569
|
|
|
17501
17570
|
|
|
17502
|
-
var
|
|
17571
|
+
var _ActionListItem = function _ActionListItem(props) {
|
|
17503
17572
|
var _useDropdown = useDropdown(),
|
|
17504
17573
|
activeIndex = _useDropdown.activeIndex,
|
|
17505
17574
|
dropdownBaseId = _useDropdown.dropdownBaseId,
|
|
@@ -17625,7 +17694,9 @@ var ActionListItem = function ActionListItem(props) {
|
|
|
17625
17694
|
});
|
|
17626
17695
|
};
|
|
17627
17696
|
|
|
17628
|
-
ActionListItem
|
|
17697
|
+
var ActionListItem = /*#__PURE__*/assignWithoutSideEffects(_ActionListItem, {
|
|
17698
|
+
componentId: componentIds$1.ActionListItem
|
|
17699
|
+
});
|
|
17629
17700
|
|
|
17630
17701
|
function ownKeys$G(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; }
|
|
17631
17702
|
|
|
@@ -17662,7 +17733,7 @@ var StyledActionListHeader = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
|
17662
17733
|
* />
|
|
17663
17734
|
* ```
|
|
17664
17735
|
*/
|
|
17665
|
-
var
|
|
17736
|
+
var _ActionListHeader = function _ActionListHeader(props) {
|
|
17666
17737
|
React__default.useEffect(function () {
|
|
17667
17738
|
React__default.Children.map(props.leading, function (child) {
|
|
17668
17739
|
if (!isValidAllowedChildren(child, componentIds$1.ActionListHeaderIcon)) {
|
|
@@ -17688,9 +17759,11 @@ var ActionListHeader = function ActionListHeader(props) {
|
|
|
17688
17759
|
}));
|
|
17689
17760
|
};
|
|
17690
17761
|
|
|
17691
|
-
ActionListHeader
|
|
17762
|
+
var ActionListHeader = /*#__PURE__*/assignWithoutSideEffects(_ActionListHeader, {
|
|
17763
|
+
componentId: componentIds$1.ActionListHeader
|
|
17764
|
+
});
|
|
17692
17765
|
|
|
17693
|
-
var
|
|
17766
|
+
var _ActionListHeaderIcon = function _ActionListHeaderIcon(_ref) {
|
|
17694
17767
|
var icon = _ref.icon;
|
|
17695
17768
|
var Icon = icon;
|
|
17696
17769
|
return /*#__PURE__*/jsx(Icon, {
|
|
@@ -17699,7 +17772,9 @@ var ActionListHeaderIcon = function ActionListHeaderIcon(_ref) {
|
|
|
17699
17772
|
});
|
|
17700
17773
|
};
|
|
17701
17774
|
|
|
17702
|
-
ActionListHeaderIcon
|
|
17775
|
+
var ActionListHeaderIcon = /*#__PURE__*/assignWithoutSideEffects(_ActionListHeaderIcon, {
|
|
17776
|
+
componentId: componentIds$1.ActionListHeaderIcon
|
|
17777
|
+
});
|
|
17703
17778
|
|
|
17704
17779
|
function ownKeys$F(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; }
|
|
17705
17780
|
|
|
@@ -17738,7 +17813,7 @@ var StyledActionListFooter = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
|
17738
17813
|
* ```
|
|
17739
17814
|
*/
|
|
17740
17815
|
|
|
17741
|
-
var
|
|
17816
|
+
var _ActionListFooter = function _ActionListFooter(props) {
|
|
17742
17817
|
var footerRef = React__default.useRef(null);
|
|
17743
17818
|
|
|
17744
17819
|
var _useDropdown = useDropdown(),
|
|
@@ -17830,9 +17905,11 @@ var ActionListFooter = function ActionListFooter(props) {
|
|
|
17830
17905
|
}));
|
|
17831
17906
|
};
|
|
17832
17907
|
|
|
17833
|
-
ActionListFooter
|
|
17908
|
+
var ActionListFooter = /*#__PURE__*/assignWithoutSideEffects(_ActionListFooter, {
|
|
17909
|
+
componentId: componentIds$1.ActionListFooter
|
|
17910
|
+
});
|
|
17834
17911
|
|
|
17835
|
-
var
|
|
17912
|
+
var _ActionListFooterIcon = function _ActionListFooterIcon(_ref) {
|
|
17836
17913
|
var icon = _ref.icon;
|
|
17837
17914
|
var Icon = icon;
|
|
17838
17915
|
return /*#__PURE__*/jsx(Icon, {
|
|
@@ -17841,9 +17918,11 @@ var ActionListFooterIcon = function ActionListFooterIcon(_ref) {
|
|
|
17841
17918
|
});
|
|
17842
17919
|
};
|
|
17843
17920
|
|
|
17844
|
-
ActionListFooterIcon
|
|
17921
|
+
var ActionListFooterIcon = /*#__PURE__*/assignWithoutSideEffects(_ActionListFooterIcon, {
|
|
17922
|
+
componentId: componentIds$1.ActionListFooterIcon
|
|
17923
|
+
});
|
|
17845
17924
|
|
|
17846
|
-
var
|
|
17925
|
+
var _ActionListItemAsset = function _ActionListItemAsset(props) {
|
|
17847
17926
|
return /*#__PURE__*/jsx("img", {
|
|
17848
17927
|
src: props.src,
|
|
17849
17928
|
alt: props.alt,
|
|
@@ -17852,7 +17931,9 @@ var ActionListItemAsset = function ActionListItemAsset(props) {
|
|
|
17852
17931
|
});
|
|
17853
17932
|
};
|
|
17854
17933
|
|
|
17855
|
-
ActionListItemAsset
|
|
17934
|
+
var ActionListItemAsset = /*#__PURE__*/assignWithoutSideEffects(_ActionListItemAsset, {
|
|
17935
|
+
componentId: componentIds$1.ActionListItemAsset
|
|
17936
|
+
});
|
|
17856
17937
|
|
|
17857
17938
|
var MAX_WIDTH = size[584];
|
|
17858
17939
|
var getCommonStyles = function getCommonStyles(props) {
|
|
@@ -17873,7 +17954,8 @@ var getCommonStyles = function getCommonStyles(props) {
|
|
|
17873
17954
|
flexDirection: 'row',
|
|
17874
17955
|
maxWidth: isFullWidth ? 'auto' : makeSize(MAX_WIDTH),
|
|
17875
17956
|
width: isFullWidth ? '100%' : undefined,
|
|
17876
|
-
alignItems: isFullWidth && isDesktop ? 'center' : 'flex-start'
|
|
17957
|
+
alignItems: isFullWidth && isDesktop ? 'center' : 'flex-start',
|
|
17958
|
+
boxSizing: 'border-box'
|
|
17877
17959
|
};
|
|
17878
17960
|
};
|
|
17879
17961
|
|
|
@@ -18712,8 +18794,9 @@ var _BaseButton = function _BaseButton(_ref4, ref) {
|
|
|
18712
18794
|
}));
|
|
18713
18795
|
};
|
|
18714
18796
|
|
|
18715
|
-
var BaseButton = /*#__PURE__*/React__default.forwardRef(_BaseButton)
|
|
18716
|
-
|
|
18797
|
+
var BaseButton = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_BaseButton), {
|
|
18798
|
+
displayName: 'BaseButton'
|
|
18799
|
+
});
|
|
18717
18800
|
|
|
18718
18801
|
var getStyledLinkStyles = function getStyledLinkStyles(_ref) {
|
|
18719
18802
|
var cursor = _ref.cursor;
|
|
@@ -18792,7 +18875,7 @@ var useInteraction = function useInteraction() {
|
|
|
18792
18875
|
};
|
|
18793
18876
|
};
|
|
18794
18877
|
|
|
18795
|
-
var _excluded$l = ["children", "icon", "iconPosition", "isDisabled", "onClick", "variant", "href", "target", "rel", "intent", "contrast", "accessibilityLabel", "className", "style", "size", "testID"],
|
|
18878
|
+
var _excluded$l = ["children", "icon", "iconPosition", "isDisabled", "onClick", "variant", "href", "target", "rel", "intent", "contrast", "accessibilityLabel", "className", "style", "size", "testID", "hitSlop"],
|
|
18796
18879
|
_excluded2 = ["currentInteraction", "setCurrentInteraction"];
|
|
18797
18880
|
|
|
18798
18881
|
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; }
|
|
@@ -18896,6 +18979,7 @@ var BaseLink = function BaseLink(_ref3) {
|
|
|
18896
18979
|
_ref3$size = _ref3.size,
|
|
18897
18980
|
size = _ref3$size === void 0 ? 'medium' : _ref3$size,
|
|
18898
18981
|
testID = _ref3.testID,
|
|
18982
|
+
hitSlop = _ref3.hitSlop,
|
|
18899
18983
|
styledProps = _objectWithoutProperties(_ref3, _excluded$l);
|
|
18900
18984
|
|
|
18901
18985
|
var _useState = useState(false),
|
|
@@ -18983,6 +19067,7 @@ var BaseLink = function BaseLink(_ref3) {
|
|
|
18983
19067
|
// @ts-ignore Because we avoided exposing className to public
|
|
18984
19068
|
className: className,
|
|
18985
19069
|
style: style,
|
|
19070
|
+
hitSlop: hitSlop,
|
|
18986
19071
|
children: /*#__PURE__*/jsxs(BaseBox, {
|
|
18987
19072
|
display: "flex",
|
|
18988
19073
|
flexDirection: "row",
|
|
@@ -19129,7 +19214,7 @@ var Alert = function Alert(_ref) {
|
|
|
19129
19214
|
|
|
19130
19215
|
var primaryAction = actions !== null && actions !== void 0 && actions.primary ? /*#__PURE__*/jsx(BaseBox, {
|
|
19131
19216
|
marginRight: "spacing.5",
|
|
19132
|
-
display: isReactNative$3 ? 'flex' : 'inline-flex',
|
|
19217
|
+
display: isReactNative$3 ? castNativeType('flex') : castWebType('inline-flex'),
|
|
19133
19218
|
children: /*#__PURE__*/jsx(BaseButton, {
|
|
19134
19219
|
size: textSize,
|
|
19135
19220
|
onClick: actions.primary.onClick,
|
|
@@ -19156,7 +19241,7 @@ var Alert = function Alert(_ref) {
|
|
|
19156
19241
|
|
|
19157
19242
|
var secondaryAction = actions !== null && actions !== void 0 && actions.secondary ? /*#__PURE__*/jsx(BaseBox, {
|
|
19158
19243
|
marginRight: "spacing.4",
|
|
19159
|
-
display: isReactNative$3 ? 'flex' : 'inline-flex',
|
|
19244
|
+
display: isReactNative$3 ? castNativeType('flex') : castWebType('inline-flex'),
|
|
19160
19245
|
children: /*#__PURE__*/jsx(BaseLink, _objectSpread$y(_objectSpread$y({
|
|
19161
19246
|
size: textSize,
|
|
19162
19247
|
contrast: contrast,
|
|
@@ -19561,7 +19646,8 @@ var CardSurface = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
|
19561
19646
|
display: 'flex',
|
|
19562
19647
|
flexDirection: 'column',
|
|
19563
19648
|
boxShadow: "".concat(shadow1, ", ").concat(shadow2),
|
|
19564
|
-
backgroundColor: backgroundColor
|
|
19649
|
+
backgroundColor: backgroundColor,
|
|
19650
|
+
boxSizing: 'border-box'
|
|
19565
19651
|
};
|
|
19566
19652
|
});
|
|
19567
19653
|
|
|
@@ -19645,7 +19731,7 @@ var Card = function Card(_ref) {
|
|
|
19645
19731
|
});
|
|
19646
19732
|
};
|
|
19647
19733
|
|
|
19648
|
-
var
|
|
19734
|
+
var _CardBody = function _CardBody(_ref2) {
|
|
19649
19735
|
var children = _ref2.children,
|
|
19650
19736
|
testID = _ref2.testID;
|
|
19651
19737
|
useVerifyInsideCard('CardBody');
|
|
@@ -19657,9 +19743,11 @@ var CardBody = function CardBody(_ref2) {
|
|
|
19657
19743
|
}));
|
|
19658
19744
|
};
|
|
19659
19745
|
|
|
19660
|
-
CardBody
|
|
19746
|
+
var CardBody = /*#__PURE__*/assignWithoutSideEffects(_CardBody, {
|
|
19747
|
+
componentId: ComponentIds$1.CardBody
|
|
19748
|
+
});
|
|
19661
19749
|
|
|
19662
|
-
var _excluded$h = ["children", "icon", "iconPosition", "isDisabled", "onClick", "variant", "href", "target", "rel", "accessibilityLabel", "size", "testID"];
|
|
19750
|
+
var _excluded$h = ["children", "icon", "iconPosition", "isDisabled", "onClick", "variant", "href", "target", "rel", "accessibilityLabel", "size", "testID", "hitSlop"];
|
|
19663
19751
|
|
|
19664
19752
|
function ownKeys$t(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; }
|
|
19665
19753
|
|
|
@@ -19682,6 +19770,7 @@ var Link = function Link(_ref) {
|
|
|
19682
19770
|
_ref$size = _ref.size,
|
|
19683
19771
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
19684
19772
|
testID = _ref.testID,
|
|
19773
|
+
hitSlop = _ref.hitSlop,
|
|
19685
19774
|
styledProps = _objectWithoutProperties(_ref, _excluded$h);
|
|
19686
19775
|
|
|
19687
19776
|
return /*#__PURE__*/jsx(BaseLink, _objectSpread$t(_objectSpread$t(_objectSpread$t({}, icon ? {
|
|
@@ -19702,7 +19791,8 @@ var Link = function Link(_ref) {
|
|
|
19702
19791
|
onClick: onClick,
|
|
19703
19792
|
accessibilityLabel: accessibilityLabel,
|
|
19704
19793
|
size: size,
|
|
19705
|
-
testID: testID
|
|
19794
|
+
testID: testID,
|
|
19795
|
+
hitSlop: hitSlop
|
|
19706
19796
|
}, styledProps));
|
|
19707
19797
|
};
|
|
19708
19798
|
|
|
@@ -19754,8 +19844,9 @@ var _Button = function _Button(_ref, ref) {
|
|
|
19754
19844
|
}));
|
|
19755
19845
|
};
|
|
19756
19846
|
|
|
19757
|
-
var Button = /*#__PURE__*/React__default.forwardRef(_Button)
|
|
19758
|
-
|
|
19847
|
+
var Button = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_Button), {
|
|
19848
|
+
displayName: 'Button'
|
|
19849
|
+
});
|
|
19759
19850
|
|
|
19760
19851
|
var Divider = /*#__PURE__*/styled.div.withConfig({
|
|
19761
19852
|
displayName: "Dividerweb__Divider",
|
|
@@ -19903,7 +19994,7 @@ function ownKeys$p(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
19903
19994
|
|
|
19904
19995
|
function _objectSpread$p(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$p(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$p(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
19905
19996
|
|
|
19906
|
-
var
|
|
19997
|
+
var _CardHeaderIcon = function _CardHeaderIcon(_ref) {
|
|
19907
19998
|
var Icon = _ref.icon;
|
|
19908
19999
|
useVerifyInsideCard('CardHeaderIcon');
|
|
19909
20000
|
return /*#__PURE__*/jsx(Icon, {
|
|
@@ -19912,37 +20003,47 @@ var CardHeaderIcon = function CardHeaderIcon(_ref) {
|
|
|
19912
20003
|
});
|
|
19913
20004
|
};
|
|
19914
20005
|
|
|
19915
|
-
CardHeaderIcon
|
|
20006
|
+
var CardHeaderIcon = /*#__PURE__*/assignWithoutSideEffects(_CardHeaderIcon, {
|
|
20007
|
+
componentId: ComponentIds$1.CardHeaderIcon
|
|
20008
|
+
});
|
|
19916
20009
|
|
|
19917
|
-
var
|
|
20010
|
+
var _CardHeaderCounter = function _CardHeaderCounter(props) {
|
|
19918
20011
|
useVerifyInsideCard('CardHeaderCounter');
|
|
19919
20012
|
return /*#__PURE__*/jsx(Counter, _objectSpread$p({}, props));
|
|
19920
20013
|
};
|
|
19921
20014
|
|
|
19922
|
-
CardHeaderCounter
|
|
20015
|
+
var CardHeaderCounter = /*#__PURE__*/assignWithoutSideEffects(_CardHeaderCounter, {
|
|
20016
|
+
componentId: ComponentIds$1.CardHeaderCounter
|
|
20017
|
+
});
|
|
19923
20018
|
|
|
19924
|
-
var
|
|
20019
|
+
var _CardHeaderBadge = function _CardHeaderBadge(props) {
|
|
19925
20020
|
useVerifyInsideCard('CardHeaderBadge');
|
|
19926
20021
|
return /*#__PURE__*/jsx(Badge, _objectSpread$p({}, props));
|
|
19927
20022
|
};
|
|
19928
20023
|
|
|
19929
|
-
CardHeaderBadge
|
|
20024
|
+
var CardHeaderBadge = /*#__PURE__*/assignWithoutSideEffects(_CardHeaderBadge, {
|
|
20025
|
+
componentId: ComponentIds$1.CardHeaderBadge
|
|
20026
|
+
});
|
|
19930
20027
|
|
|
19931
|
-
var
|
|
20028
|
+
var _CardHeaderText = function _CardHeaderText(props) {
|
|
19932
20029
|
useVerifyInsideCard('CardHeaderText');
|
|
19933
20030
|
return /*#__PURE__*/jsx(Text, _objectSpread$p({}, props));
|
|
19934
20031
|
};
|
|
19935
20032
|
|
|
19936
|
-
CardHeaderText
|
|
20033
|
+
var CardHeaderText = /*#__PURE__*/assignWithoutSideEffects(_CardHeaderText, {
|
|
20034
|
+
componentId: ComponentIds$1.CardHeaderText
|
|
20035
|
+
});
|
|
19937
20036
|
|
|
19938
|
-
var
|
|
20037
|
+
var _CardHeaderLink = function _CardHeaderLink(props) {
|
|
19939
20038
|
useVerifyInsideCard('CardHeaderLink');
|
|
19940
20039
|
return /*#__PURE__*/jsx(Link, _objectSpread$p({}, props));
|
|
19941
20040
|
};
|
|
19942
20041
|
|
|
19943
|
-
CardHeaderLink
|
|
20042
|
+
var CardHeaderLink = /*#__PURE__*/assignWithoutSideEffects(_CardHeaderLink, {
|
|
20043
|
+
componentId: ComponentIds$1.CardHeaderLink
|
|
20044
|
+
});
|
|
19944
20045
|
|
|
19945
|
-
var
|
|
20046
|
+
var _CardHeaderIconButton = function _CardHeaderIconButton(props) {
|
|
19946
20047
|
useVerifyInsideCard('CardHeaderIconButton');
|
|
19947
20048
|
return /*#__PURE__*/jsx(BaseBox, {
|
|
19948
20049
|
width: makeSpace(minHeight.xsmall),
|
|
@@ -19955,9 +20056,11 @@ var CardHeaderIconButton = function CardHeaderIconButton(props) {
|
|
|
19955
20056
|
});
|
|
19956
20057
|
};
|
|
19957
20058
|
|
|
19958
|
-
CardHeaderIconButton
|
|
20059
|
+
var CardHeaderIconButton = /*#__PURE__*/assignWithoutSideEffects(_CardHeaderIconButton, {
|
|
20060
|
+
componentId: ComponentIds$1.CardHeaderIconButton
|
|
20061
|
+
});
|
|
19959
20062
|
|
|
19960
|
-
var
|
|
20063
|
+
var _CardHeader = function _CardHeader(_ref2) {
|
|
19961
20064
|
var children = _ref2.children,
|
|
19962
20065
|
testID = _ref2.testID;
|
|
19963
20066
|
useVerifyInsideCard('CardHeader');
|
|
@@ -19978,9 +20081,11 @@ var CardHeader = function CardHeader(_ref2) {
|
|
|
19978
20081
|
}));
|
|
19979
20082
|
};
|
|
19980
20083
|
|
|
19981
|
-
CardHeader
|
|
20084
|
+
var CardHeader = /*#__PURE__*/assignWithoutSideEffects(_CardHeader, {
|
|
20085
|
+
componentId: ComponentIds$1.CardHeader
|
|
20086
|
+
});
|
|
19982
20087
|
|
|
19983
|
-
var
|
|
20088
|
+
var _CardHeaderLeading = function _CardHeaderLeading(_ref3) {
|
|
19984
20089
|
var title = _ref3.title,
|
|
19985
20090
|
subtitle = _ref3.subtitle,
|
|
19986
20091
|
prefix = _ref3.prefix,
|
|
@@ -20029,10 +20134,12 @@ var CardHeaderLeading = function CardHeaderLeading(_ref3) {
|
|
|
20029
20134
|
});
|
|
20030
20135
|
};
|
|
20031
20136
|
|
|
20032
|
-
CardHeaderLeading
|
|
20137
|
+
var CardHeaderLeading = /*#__PURE__*/assignWithoutSideEffects(_CardHeaderLeading, {
|
|
20138
|
+
componentId: ComponentIds$1.CardHeaderLeading
|
|
20139
|
+
});
|
|
20033
20140
|
var headerTrailingAllowedComponents = [ComponentIds$1.CardHeaderLink, ComponentIds$1.CardHeaderText, ComponentIds$1.CardHeaderIconButton, ComponentIds$1.CardHeaderBadge];
|
|
20034
20141
|
|
|
20035
|
-
var
|
|
20142
|
+
var _CardHeaderTrailing = function _CardHeaderTrailing(_ref4) {
|
|
20036
20143
|
var visual = _ref4.visual;
|
|
20037
20144
|
useVerifyInsideCard('CardHeaderTrailing');
|
|
20038
20145
|
|
|
@@ -20046,7 +20153,9 @@ var CardHeaderTrailing = function CardHeaderTrailing(_ref4) {
|
|
|
20046
20153
|
});
|
|
20047
20154
|
};
|
|
20048
20155
|
|
|
20049
|
-
CardHeaderTrailing
|
|
20156
|
+
var CardHeaderTrailing = /*#__PURE__*/assignWithoutSideEffects(_CardHeaderTrailing, {
|
|
20157
|
+
componentId: ComponentIds$1.CardHeaderTrailing
|
|
20158
|
+
});
|
|
20050
20159
|
|
|
20051
20160
|
function ownKeys$o(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; }
|
|
20052
20161
|
|
|
@@ -20064,7 +20173,7 @@ var useIsMobile = function useIsMobile() {
|
|
|
20064
20173
|
return matchedDeviceType === 'mobile';
|
|
20065
20174
|
};
|
|
20066
20175
|
|
|
20067
|
-
var
|
|
20176
|
+
var _CardFooter = function _CardFooter(_ref) {
|
|
20068
20177
|
var children = _ref.children,
|
|
20069
20178
|
testID = _ref.testID;
|
|
20070
20179
|
var isMobile = useIsMobile();
|
|
@@ -20089,9 +20198,11 @@ var CardFooter = function CardFooter(_ref) {
|
|
|
20089
20198
|
}));
|
|
20090
20199
|
};
|
|
20091
20200
|
|
|
20092
|
-
CardFooter
|
|
20201
|
+
var CardFooter = /*#__PURE__*/assignWithoutSideEffects(_CardFooter, {
|
|
20202
|
+
componentId: ComponentIds$1.CardFooter
|
|
20203
|
+
});
|
|
20093
20204
|
|
|
20094
|
-
var
|
|
20205
|
+
var _CardFooterLeading = function _CardFooterLeading(_ref2) {
|
|
20095
20206
|
var title = _ref2.title,
|
|
20096
20207
|
subtitle = _ref2.subtitle;
|
|
20097
20208
|
useVerifyInsideCard('CardFooterLeading');
|
|
@@ -20110,9 +20221,11 @@ var CardFooterLeading = function CardFooterLeading(_ref2) {
|
|
|
20110
20221
|
});
|
|
20111
20222
|
};
|
|
20112
20223
|
|
|
20113
|
-
CardFooterLeading
|
|
20224
|
+
var CardFooterLeading = /*#__PURE__*/assignWithoutSideEffects(_CardFooterLeading, {
|
|
20225
|
+
componentId: ComponentIds$1.CardFooterLeading
|
|
20226
|
+
});
|
|
20114
20227
|
|
|
20115
|
-
var
|
|
20228
|
+
var _CardFooterTrailing = function _CardFooterTrailing(_ref3) {
|
|
20116
20229
|
var actions = _ref3.actions;
|
|
20117
20230
|
var isMobile = useIsMobile();
|
|
20118
20231
|
useVerifyInsideCard('CardFooterTrailing');
|
|
@@ -20145,7 +20258,9 @@ var CardFooterTrailing = function CardFooterTrailing(_ref3) {
|
|
|
20145
20258
|
});
|
|
20146
20259
|
};
|
|
20147
20260
|
|
|
20148
|
-
CardFooterTrailing
|
|
20261
|
+
var CardFooterTrailing = /*#__PURE__*/assignWithoutSideEffects(_CardFooterTrailing, {
|
|
20262
|
+
componentId: ComponentIds$1.CardFooterTrailing
|
|
20263
|
+
});
|
|
20149
20264
|
|
|
20150
20265
|
var _excluded$e = ["children", "selectionType"];
|
|
20151
20266
|
|
|
@@ -20179,7 +20294,7 @@ function _objectSpread$n(target) { for (var i = 1; i < arguments.length; i++) {
|
|
|
20179
20294
|
*
|
|
20180
20295
|
* Checkout {@link https://blade.razorpay.com/?path=/docs/components-dropdown-with-select--with-single-select Dropdown Documentation}
|
|
20181
20296
|
*/
|
|
20182
|
-
var
|
|
20297
|
+
var _Dropdown = function _Dropdown(_ref) {
|
|
20183
20298
|
var children = _ref.children,
|
|
20184
20299
|
_ref$selectionType = _ref.selectionType,
|
|
20185
20300
|
selectionType = _ref$selectionType === void 0 ? 'single' : _ref$selectionType,
|
|
@@ -20284,7 +20399,9 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
20284
20399
|
});
|
|
20285
20400
|
};
|
|
20286
20401
|
|
|
20287
|
-
Dropdown
|
|
20402
|
+
var Dropdown = /*#__PURE__*/assignWithoutSideEffects(_Dropdown, {
|
|
20403
|
+
componentId: componentIds.Dropdown
|
|
20404
|
+
});
|
|
20288
20405
|
|
|
20289
20406
|
var root = _root;
|
|
20290
20407
|
|
|
@@ -20695,7 +20812,7 @@ var StyledDropdownOverlay = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
|
20695
20812
|
*
|
|
20696
20813
|
* Wrap your ActionList within this component
|
|
20697
20814
|
*/
|
|
20698
|
-
var
|
|
20815
|
+
var _DropdownOverlay = function _DropdownOverlay(_ref) {
|
|
20699
20816
|
var children = _ref.children,
|
|
20700
20817
|
testID = _ref.testID;
|
|
20701
20818
|
|
|
@@ -20762,7 +20879,7 @@ var DropdownOverlay = function DropdownOverlay(_ref) {
|
|
|
20762
20879
|
style: {
|
|
20763
20880
|
opacity: isOpen ? 1 : 0
|
|
20764
20881
|
},
|
|
20765
|
-
display: display,
|
|
20882
|
+
display: castWebType(display),
|
|
20766
20883
|
right: "0px",
|
|
20767
20884
|
position: "absolute",
|
|
20768
20885
|
transition: isOpen ? fadeIn : fadeOut,
|
|
@@ -20782,7 +20899,9 @@ var DropdownOverlay = function DropdownOverlay(_ref) {
|
|
|
20782
20899
|
});
|
|
20783
20900
|
};
|
|
20784
20901
|
|
|
20785
|
-
DropdownOverlay
|
|
20902
|
+
var DropdownOverlay = /*#__PURE__*/assignWithoutSideEffects(_DropdownOverlay, {
|
|
20903
|
+
componentId: componentIds.DropdownOverlay
|
|
20904
|
+
});
|
|
20786
20905
|
|
|
20787
20906
|
function ownKeys$l(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; }
|
|
20788
20907
|
|
|
@@ -21145,7 +21264,8 @@ var autoCompleteSuggestionTypeMap = {
|
|
|
21145
21264
|
creditCardExpiryMonth: 'cc-exp-month',
|
|
21146
21265
|
creditCardExpiryYear: 'cc-exp-year'
|
|
21147
21266
|
};
|
|
21148
|
-
|
|
21267
|
+
|
|
21268
|
+
var _StyledBaseInput = function _StyledBaseInput(_ref, ref) {
|
|
21149
21269
|
var name = _ref.name,
|
|
21150
21270
|
isDisabled = _ref.isDisabled,
|
|
21151
21271
|
isRequired = _ref.isRequired,
|
|
@@ -21237,8 +21357,11 @@ var StyledBaseInput = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
|
|
|
21237
21357
|
},
|
|
21238
21358
|
autoCapitalize: autoCapitalize
|
|
21239
21359
|
}, commonProps), props), accessibilityProps));
|
|
21360
|
+
};
|
|
21361
|
+
|
|
21362
|
+
var StyledBaseInput = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_StyledBaseInput), {
|
|
21363
|
+
displayName: 'StyledBaseInput'
|
|
21240
21364
|
});
|
|
21241
|
-
StyledBaseInput.displayName = 'StyledBaseInput';
|
|
21242
21365
|
|
|
21243
21366
|
var scaleBorder = /*#__PURE__*/keyframes(["from{transform:scaleX(0);transform-origin:left;opacity:0;}to{transform:scaleX(1);transform-origin:left;opacity:1;}"]);
|
|
21244
21367
|
var fadeOutBorder = /*#__PURE__*/keyframes(["from{opacity:1}to{opacity:0}"]);
|
|
@@ -22052,8 +22175,9 @@ var _TextInput = function _TextInput(_ref2, ref) {
|
|
|
22052
22175
|
})), styledProps));
|
|
22053
22176
|
};
|
|
22054
22177
|
|
|
22055
|
-
var TextInput = /*#__PURE__*/React__default.forwardRef(_TextInput)
|
|
22056
|
-
|
|
22178
|
+
var TextInput = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_TextInput), {
|
|
22179
|
+
displayName: 'TextInput'
|
|
22180
|
+
});
|
|
22057
22181
|
|
|
22058
22182
|
var _excluded$8 = ["label", "labelPosition", "showRevealButton", "maxCharacters", "validationState", "errorText", "successText", "helpText", "isDisabled", "defaultValue", "placeholder", "isRequired", "necessityIndicator", "value", "onChange", "onFocus", "onBlur", "onSubmit", "name", "autoFocus", "keyboardReturnKeyType", "autoCompleteSuggestionType", "testID"];
|
|
22059
22183
|
|
|
@@ -22166,11 +22290,12 @@ var _PasswordInput = function _PasswordInput(_ref, ref) {
|
|
|
22166
22290
|
autoCapitalize: "none",
|
|
22167
22291
|
testID: testID
|
|
22168
22292
|
}, styledProps));
|
|
22169
|
-
};
|
|
22293
|
+
}; // nosemgrep
|
|
22170
22294
|
|
|
22171
|
-
var PasswordInput = /*#__PURE__*/React__default.forwardRef(_PasswordInput); // nosemgrep
|
|
22172
22295
|
|
|
22173
|
-
PasswordInput
|
|
22296
|
+
var PasswordInput = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_PasswordInput), {
|
|
22297
|
+
displayName: 'PasswordInput'
|
|
22298
|
+
});
|
|
22174
22299
|
|
|
22175
22300
|
var _excluded$7 = ["label", "labelPosition", "necessityIndicator", "errorText", "helpText", "successText", "validationState", "defaultValue", "isDisabled", "isRequired", "name", "onChange", "onFocus", "onBlur", "onSubmit", "placeholder", "value", "maxCharacters", "showClearButton", "onClearButtonClick", "autoFocus", "numberOfLines", "testID"];
|
|
22176
22301
|
|
|
@@ -22316,10 +22441,11 @@ var _TextArea = function _TextArea(_ref, ref) {
|
|
|
22316
22441
|
}, styledProps));
|
|
22317
22442
|
};
|
|
22318
22443
|
|
|
22319
|
-
var TextArea = /*#__PURE__*/React__default.forwardRef(_TextArea)
|
|
22320
|
-
|
|
22444
|
+
var TextArea = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_TextArea), {
|
|
22445
|
+
displayName: 'TextArea'
|
|
22446
|
+
});
|
|
22321
22447
|
|
|
22322
|
-
var _excluded$6 = ["autoFocus", "errorText", "helpText", "isDisabled", "keyboardReturnKeyType", "keyboardType", "label", "labelPosition", "name", "onChange", "onOTPFilled", "otpLength", "placeholder", "successText", "validationState", "value", "isMasked", "autoCompleteSuggestionType", "testID"];
|
|
22448
|
+
var _excluded$6 = ["autoFocus", "errorText", "helpText", "isDisabled", "keyboardReturnKeyType", "keyboardType", "label", "labelPosition", "name", "onChange", "onFocus", "onBlur", "onOTPFilled", "otpLength", "placeholder", "successText", "validationState", "value", "isMasked", "autoCompleteSuggestionType", "testID"];
|
|
22323
22449
|
|
|
22324
22450
|
function ownKeys$b(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; }
|
|
22325
22451
|
|
|
@@ -22362,6 +22488,8 @@ var OTPInput = function OTPInput(_ref) {
|
|
|
22362
22488
|
labelPosition = _ref.labelPosition,
|
|
22363
22489
|
name = _ref.name,
|
|
22364
22490
|
onChange = _ref.onChange,
|
|
22491
|
+
_onFocus = _ref.onFocus,
|
|
22492
|
+
_onBlur = _ref.onBlur,
|
|
22365
22493
|
onOTPFilled = _ref.onOTPFilled,
|
|
22366
22494
|
_ref$otpLength = _ref.otpLength,
|
|
22367
22495
|
otpLength = _ref$otpLength === void 0 ? 6 : _ref$otpLength,
|
|
@@ -22602,6 +22730,7 @@ var OTPInput = function OTPInput(_ref) {
|
|
|
22602
22730
|
id: "".concat(inputId, "-").concat(index),
|
|
22603
22731
|
textAlign: "center",
|
|
22604
22732
|
ref: ref,
|
|
22733
|
+
name: name,
|
|
22605
22734
|
value: currentValue,
|
|
22606
22735
|
maxCharacters: ((_otpValue$index = otpValue[index]) === null || _otpValue$index === void 0 ? void 0 : _otpValue$index.length) > 0 ? 1 : undefined,
|
|
22607
22736
|
onChange: function onChange(formEvent) {
|
|
@@ -22609,6 +22738,16 @@ var OTPInput = function OTPInput(_ref) {
|
|
|
22609
22738
|
currentOtpIndex: index
|
|
22610
22739
|
}));
|
|
22611
22740
|
},
|
|
22741
|
+
onFocus: function onFocus(formEvent) {
|
|
22742
|
+
return _onFocus === null || _onFocus === void 0 ? void 0 : _onFocus(_objectSpread$b(_objectSpread$b({}, formEvent), {}, {
|
|
22743
|
+
inputIndex: index
|
|
22744
|
+
}));
|
|
22745
|
+
},
|
|
22746
|
+
onBlur: function onBlur(formEvent) {
|
|
22747
|
+
return _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(_objectSpread$b(_objectSpread$b({}, formEvent), {}, {
|
|
22748
|
+
inputIndex: index
|
|
22749
|
+
}));
|
|
22750
|
+
},
|
|
22612
22751
|
onInput: function onInput(formEvent) {
|
|
22613
22752
|
return handleOnInput(_objectSpread$b(_objectSpread$b({}, formEvent), {}, {
|
|
22614
22753
|
currentOtpIndex: index
|
|
@@ -22825,9 +22964,9 @@ var _SelectInput = function _SelectInput(props, ref) {
|
|
|
22825
22964
|
*/
|
|
22826
22965
|
|
|
22827
22966
|
|
|
22828
|
-
var SelectInput = /*#__PURE__*/React__default.forwardRef(_SelectInput)
|
|
22829
|
-
|
|
22830
|
-
|
|
22967
|
+
var SelectInput = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_SelectInput), {
|
|
22968
|
+
componentId: 'SelectInput'
|
|
22969
|
+
});
|
|
22831
22970
|
|
|
22832
22971
|
var _excluded$4 = ["accessibilityLabel", "children", "size", "intent", "testID"];
|
|
22833
22972
|
|
|
@@ -23107,7 +23246,7 @@ var StyledUnorderedList = /*#__PURE__*/styled(UnorderedList).withConfig({
|
|
|
23107
23246
|
* ```
|
|
23108
23247
|
*/
|
|
23109
23248
|
|
|
23110
|
-
var
|
|
23249
|
+
var _List = function _List(_ref3) {
|
|
23111
23250
|
var _ref3$variant = _ref3.variant,
|
|
23112
23251
|
variant = _ref3$variant === void 0 ? 'unordered' : _ref3$variant,
|
|
23113
23252
|
size = _ref3.size,
|
|
@@ -23160,7 +23299,9 @@ var List = function List(_ref3) {
|
|
|
23160
23299
|
});
|
|
23161
23300
|
};
|
|
23162
23301
|
|
|
23163
|
-
List
|
|
23302
|
+
var List = /*#__PURE__*/assignWithoutSideEffects(_List, {
|
|
23303
|
+
componentId: ComponentIds.List
|
|
23304
|
+
});
|
|
23164
23305
|
|
|
23165
23306
|
var UnorderedLevel1Icon = function UnorderedLevel1Icon(_ref) {
|
|
23166
23307
|
var iconDimensions = _ref.iconDimensions,
|
|
@@ -23341,7 +23482,7 @@ var StyledListItem = /*#__PURE__*/styled(ListItemElement).withConfig({
|
|
|
23341
23482
|
};
|
|
23342
23483
|
});
|
|
23343
23484
|
|
|
23344
|
-
var
|
|
23485
|
+
var _ListItem = function _ListItem(_ref2) {
|
|
23345
23486
|
var children = _ref2.children,
|
|
23346
23487
|
Icon = _ref2.icon,
|
|
23347
23488
|
_itemNumber = _ref2._itemNumber,
|
|
@@ -23433,13 +23574,15 @@ var ListItem = function ListItem(_ref2) {
|
|
|
23433
23574
|
}));
|
|
23434
23575
|
};
|
|
23435
23576
|
|
|
23436
|
-
ListItem
|
|
23577
|
+
var ListItem = /*#__PURE__*/assignWithoutSideEffects(_ListItem, {
|
|
23578
|
+
componentId: 'ListItem'
|
|
23579
|
+
});
|
|
23437
23580
|
|
|
23438
23581
|
function ownKeys$6(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; }
|
|
23439
23582
|
|
|
23440
23583
|
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
23441
23584
|
|
|
23442
|
-
var
|
|
23585
|
+
var _ListItemLink = function _ListItemLink(_ref) {
|
|
23443
23586
|
var accessibilityLabel = _ref.accessibilityLabel,
|
|
23444
23587
|
children = _ref.children,
|
|
23445
23588
|
href = _ref.href,
|
|
@@ -23472,9 +23615,11 @@ var ListItemLink = function ListItemLink(_ref) {
|
|
|
23472
23615
|
}));
|
|
23473
23616
|
};
|
|
23474
23617
|
|
|
23475
|
-
ListItemLink
|
|
23618
|
+
var ListItemLink = /*#__PURE__*/assignWithoutSideEffects(_ListItemLink, {
|
|
23619
|
+
componentId: 'ListItemLink'
|
|
23620
|
+
});
|
|
23476
23621
|
|
|
23477
|
-
var
|
|
23622
|
+
var _ListItemCode = function _ListItemCode(_ref) {
|
|
23478
23623
|
var children = _ref.children,
|
|
23479
23624
|
testID = _ref.testID;
|
|
23480
23625
|
|
|
@@ -23488,7 +23633,9 @@ var ListItemCode = function ListItemCode(_ref) {
|
|
|
23488
23633
|
});
|
|
23489
23634
|
};
|
|
23490
23635
|
|
|
23491
|
-
ListItemCode
|
|
23636
|
+
var ListItemCode = /*#__PURE__*/assignWithoutSideEffects(_ListItemCode, {
|
|
23637
|
+
componentId: 'ListItemCode'
|
|
23638
|
+
});
|
|
23492
23639
|
|
|
23493
23640
|
/**
|
|
23494
23641
|
* The base implementation of `_.clamp` which doesn't coerce arguments.
|
|
@@ -24326,8 +24473,9 @@ var _Radio = function _Radio(_ref, ref) {
|
|
|
24326
24473
|
}));
|
|
24327
24474
|
};
|
|
24328
24475
|
|
|
24329
|
-
var Radio = /*#__PURE__*/React__default.forwardRef(_Radio)
|
|
24330
|
-
|
|
24476
|
+
var Radio = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_Radio), {
|
|
24477
|
+
displayName: 'Radio'
|
|
24478
|
+
});
|
|
24331
24479
|
|
|
24332
24480
|
var useRadioGroup = function useRadioGroup(_ref) {
|
|
24333
24481
|
var value = _ref.value,
|