@razorpay/blade 3.3.0 → 3.4.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 +18 -0
- package/build/components/index.d.ts +10 -2
- package/build/components/index.native.d.ts +10 -2
- package/build/components/index.native.js +5 -3
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +42 -8
- 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
|
@@ -4426,6 +4426,33 @@ var InfoIcon = function InfoIcon(_ref) {
|
|
|
4426
4426
|
});
|
|
4427
4427
|
};
|
|
4428
4428
|
|
|
4429
|
+
var LinkIcon = function LinkIcon(_ref) {
|
|
4430
|
+
var size = _ref.size,
|
|
4431
|
+
color = _ref.color;
|
|
4432
|
+
|
|
4433
|
+
var _useIconProps = useIconProps({
|
|
4434
|
+
size: size,
|
|
4435
|
+
color: color
|
|
4436
|
+
}),
|
|
4437
|
+
height = _useIconProps.height,
|
|
4438
|
+
width = _useIconProps.width,
|
|
4439
|
+
iconColor = _useIconProps.iconColor;
|
|
4440
|
+
|
|
4441
|
+
return /*#__PURE__*/jsxs(Svg, {
|
|
4442
|
+
height: height,
|
|
4443
|
+
width: width,
|
|
4444
|
+
viewBox: "0 0 22 22",
|
|
4445
|
+
fill: "none",
|
|
4446
|
+
children: [/*#__PURE__*/jsx(Path, {
|
|
4447
|
+
d: "M20.1863 1.82377C17.8719 -0.490636 14.1296 -0.523155 11.7753 1.75068L11.765 1.7608L10.045 3.4708C9.65336 3.86019 9.65151 4.49335 10.0409 4.88501C10.4303 5.27667 11.0634 5.27852 11.4551 4.88913L13.1697 3.18451C14.7395 1.67341 17.2307 1.69666 18.772 3.23798C20.313 4.77898 20.3366 7.26948 18.8265 8.83934L15.833 11.8329C15.0124 12.6537 13.8758 13.0778 12.7181 12.9949C11.5605 12.9119 10.496 12.3303 9.80083 11.401C9.47002 10.9587 8.84333 10.8684 8.40108 11.1992C7.95883 11.53 7.86849 12.1567 8.1993 12.5989C9.24204 13.993 10.8388 14.8654 12.5753 14.9897C14.3117 15.1141 16.0165 14.4782 17.2473 13.2469L20.2472 10.2471L20.2593 10.2347C22.5332 7.8804 22.5007 4.13817 20.1863 1.82377Z",
|
|
4448
|
+
fill: iconColor
|
|
4449
|
+
}), /*#__PURE__*/jsx(Path, {
|
|
4450
|
+
d: "M9.42474 7.01016C7.68837 6.8858 5.9836 7.52171 4.75285 8.75283L1.75285 11.7528L1.74067 11.7652C-0.533165 14.1195 -0.500646 17.8617 1.81376 20.1761C4.12816 22.4905 7.8704 22.5231 10.2247 20.2492L10.2371 20.237L11.9471 18.527C12.3376 18.1365 12.3376 17.5034 11.9471 17.1128C11.5565 16.7223 10.9234 16.7223 10.5329 17.1128L8.82933 18.8164C7.25947 20.3265 4.76897 20.3029 3.22797 18.7619C1.68697 17.2209 1.66341 14.7304 3.17354 13.1606L6.16719 10.1669C6.9877 9.34611 8.12425 8.92214 9.28187 9.00505C10.4395 9.08796 11.504 9.66956 12.1992 10.5989C12.53 11.0412 13.1567 11.1315 13.5989 10.8007C14.0412 10.4699 14.1315 9.84321 13.8007 9.40096C12.758 8.00693 11.1612 7.13452 9.42474 7.01016Z",
|
|
4451
|
+
fill: iconColor
|
|
4452
|
+
})]
|
|
4453
|
+
});
|
|
4454
|
+
};
|
|
4455
|
+
|
|
4429
4456
|
var PauseIcon = function PauseIcon(_ref) {
|
|
4430
4457
|
var size = _ref.size,
|
|
4431
4458
|
color = _ref.color;
|
|
@@ -6335,7 +6362,7 @@ var getProps = function getProps(_ref2) {
|
|
|
6335
6362
|
contrast = _ref2.contrast,
|
|
6336
6363
|
isVisited = _ref2.isVisited,
|
|
6337
6364
|
target = _ref2.target,
|
|
6338
|
-
|
|
6365
|
+
size = _ref2.size;
|
|
6339
6366
|
var isButton = variant === 'button';
|
|
6340
6367
|
var props = {
|
|
6341
6368
|
as: isButton ? 'button' : 'a',
|
|
@@ -6349,7 +6376,8 @@ var getProps = function getProps(_ref2) {
|
|
|
6349
6376
|
isDisabled: isDisabled,
|
|
6350
6377
|
isVisited: isVisited
|
|
6351
6378
|
}),
|
|
6352
|
-
|
|
6379
|
+
fontSize: size === 'medium' ? 100 : 75,
|
|
6380
|
+
iconSize: size,
|
|
6353
6381
|
iconPadding: children !== null && children !== void 0 && _trimInstanceProperty(children).call(children) ? 'spacing.2' : 'spacing.0',
|
|
6354
6382
|
textColor: getColorToken({
|
|
6355
6383
|
variant: variant,
|
|
@@ -6390,7 +6418,9 @@ var BaseLink = function BaseLink(_ref3) {
|
|
|
6390
6418
|
contrast = _ref3$contrast === void 0 ? 'low' : _ref3$contrast,
|
|
6391
6419
|
accessibilityLabel = _ref3.accessibilityLabel,
|
|
6392
6420
|
className = _ref3.className,
|
|
6393
|
-
style = _ref3.style
|
|
6421
|
+
style = _ref3.style,
|
|
6422
|
+
_ref3$size = _ref3.size,
|
|
6423
|
+
size = _ref3$size === void 0 ? 'medium' : _ref3$size;
|
|
6394
6424
|
|
|
6395
6425
|
var _useState = useState(false),
|
|
6396
6426
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -6419,13 +6449,14 @@ var BaseLink = function BaseLink(_ref3) {
|
|
|
6419
6449
|
contrast: contrast,
|
|
6420
6450
|
isVisited: isVisited,
|
|
6421
6451
|
target: target,
|
|
6422
|
-
|
|
6452
|
+
size: size
|
|
6423
6453
|
}),
|
|
6424
6454
|
as = _getProps.as,
|
|
6425
6455
|
textDecorationLine = _getProps.textDecorationLine,
|
|
6426
6456
|
iconColor = _getProps.iconColor,
|
|
6427
6457
|
iconPadding = _getProps.iconPadding,
|
|
6428
6458
|
iconSize = _getProps.iconSize,
|
|
6459
|
+
fontSize = _getProps.fontSize,
|
|
6429
6460
|
textColor = _getProps.textColor,
|
|
6430
6461
|
focusRingColor = _getProps.focusRingColor,
|
|
6431
6462
|
motionDuration = _getProps.motionDuration,
|
|
@@ -6485,7 +6516,7 @@ var BaseLink = function BaseLink(_ref3) {
|
|
|
6485
6516
|
}) : null, /*#__PURE__*/jsx(BaseText, {
|
|
6486
6517
|
textDecorationLine: textDecorationLine,
|
|
6487
6518
|
color: textColor,
|
|
6488
|
-
fontSize:
|
|
6519
|
+
fontSize: fontSize,
|
|
6489
6520
|
textAlign: "center",
|
|
6490
6521
|
fontWeight: "bold",
|
|
6491
6522
|
children: children
|
|
@@ -9545,7 +9576,9 @@ var Link = function Link(_ref) {
|
|
|
9545
9576
|
href = _ref.href,
|
|
9546
9577
|
target = _ref.target,
|
|
9547
9578
|
rel = _ref.rel,
|
|
9548
|
-
accessibilityLabel = _ref.accessibilityLabel
|
|
9579
|
+
accessibilityLabel = _ref.accessibilityLabel,
|
|
9580
|
+
_ref$size = _ref.size,
|
|
9581
|
+
size = _ref$size === void 0 ? 'medium' : _ref$size;
|
|
9549
9582
|
return /*#__PURE__*/jsx(BaseLink, _objectSpread$3(_objectSpread$3(_objectSpread$3({}, icon ? {
|
|
9550
9583
|
icon: icon,
|
|
9551
9584
|
children: children
|
|
@@ -9562,7 +9595,8 @@ var Link = function Link(_ref) {
|
|
|
9562
9595
|
}), {}, {
|
|
9563
9596
|
iconPosition: iconPosition,
|
|
9564
9597
|
onClick: onClick,
|
|
9565
|
-
accessibilityLabel: accessibilityLabel
|
|
9598
|
+
accessibilityLabel: accessibilityLabel,
|
|
9599
|
+
size: size
|
|
9566
9600
|
}));
|
|
9567
9601
|
};
|
|
9568
9602
|
|
|
@@ -10254,5 +10288,5 @@ var SkipNavContent = function SkipNavContent(_ref3) {
|
|
|
10254
10288
|
}, testID('skipnav-content')));
|
|
10255
10289
|
};
|
|
10256
10290
|
|
|
10257
|
-
export { Alert, AlertTriangleIcon as AlertOctagonIcon, AlertTriangleIcon$1 as AlertTriangleIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpRightIcon, Badge, BladeProvider, Button, CheckCircleIcon, CheckIcon, Checkbox, CheckboxGroup, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, Code, CreditCardIcon, DollarIcon, DownloadIcon, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, Heading, HelpCircleIcon, HistoryIcon, HomeIcon, InfoIcon, Link, MinusIcon, OTPInput, PasswordInput, PauseIcon, PlusIcon, Radio, RadioGroup, RefreshLeftIcon, RotateCounterClockWiseIcon, RupeeIcon, SearchIcon, SkipNavContent, SkipNavLink, Spinner, Text, TextArea, TextInput, Title, TrashIcon, TrendingDownIcon, TrendingUpIcon, VisuallyHidden, announce, clearAnnouncer, destroyAnnouncer, getTextProps, screenReaderStyles, useTheme };
|
|
10291
|
+
export { Alert, AlertTriangleIcon as AlertOctagonIcon, AlertTriangleIcon$1 as AlertTriangleIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpRightIcon, Badge, BladeProvider, Button, CheckCircleIcon, CheckIcon, Checkbox, CheckboxGroup, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, Code, CreditCardIcon, DollarIcon, DownloadIcon, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, Heading, HelpCircleIcon, HistoryIcon, HomeIcon, InfoIcon, Link, LinkIcon, MinusIcon, OTPInput, PasswordInput, PauseIcon, PlusIcon, Radio, RadioGroup, RefreshLeftIcon, RotateCounterClockWiseIcon, RupeeIcon, SearchIcon, SkipNavContent, SkipNavLink, Spinner, Text, TextArea, TextInput, Title, TrashIcon, TrendingDownIcon, TrendingUpIcon, VisuallyHidden, announce, clearAnnouncer, destroyAnnouncer, getTextProps, screenReaderStyles, useTheme };
|
|
10258
10292
|
//# sourceMappingURL=index.web.js.map
|