@sendoutcards/quantum-design-ui 1.8.23 → 1.8.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -13408,7 +13408,8 @@ var IconLink = function (_a) {
13408
13408
  isStacked = _g === void 0 ? false : _g,
13409
13409
  _h = _a.hasBackgroundColor,
13410
13410
  hasBackgroundColor = _h === void 0 ? false : _h,
13411
- gap = _a.gap;
13411
+ gap = _a.gap,
13412
+ isDisabled = _a.isDisabled;
13412
13413
  var variants = {
13413
13414
  open: {
13414
13415
  opacity: 1,
@@ -13424,7 +13425,11 @@ var IconLink = function (_a) {
13424
13425
  return jsx(Flex, {
13425
13426
  flexDirection: isStacked ? 'column' : 'row',
13426
13427
  alignItems: 'center',
13427
- onClick: onClick,
13428
+ onClick: function () {
13429
+ if (!isDisabled) {
13430
+ onClick === null || onClick === void 0 ? void 0 : onClick();
13431
+ }
13432
+ },
13428
13433
  onMouseEvent: onMouseEvent,
13429
13434
  width: "100%"
13430
13435
  }, jsx(Flex, {
@@ -13433,7 +13438,7 @@ var IconLink = function (_a) {
13433
13438
  borderRadius: 'medium',
13434
13439
  backgroundColor: hasBackgroundColor ? icons.colors.background : 'none',
13435
13440
  inset: isStacked || hasBackgroundColor ? 'x1_5' : 'x0',
13436
- cursor: 'pointer'
13441
+ cursor: isDisabled ? 'not-allowed' : 'pointer'
13437
13442
  }, jsx(Icon, {
13438
13443
  size: size,
13439
13444
  name: icon,
@@ -13451,7 +13456,7 @@ var IconLink = function (_a) {
13451
13456
  } : {
13452
13457
  top: gap !== null && gap !== void 0 ? gap : 'x_0'
13453
13458
  },
13454
- cursor: 'pointer'
13459
+ cursor: isDisabled ? 'not-allowed' : 'pointer'
13455
13460
  }, jsx(Text, {
13456
13461
  weight: isActive ? 'semiBold' : 'regular',
13457
13462
  color: fontColor,
@@ -15055,9 +15060,9 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (props, ref) {
15055
15060
  position: 'absolute',
15056
15061
  bottom: pinned === 'bottom' ? 0 : undefined,
15057
15062
  maxWidth: maxWidth,
15058
- maxHeight: maxHeight,
15063
+ maxHeight: maxHeight ? maxHeight : isFullScreen || pinned === 'center' ? 'calc(100vh - 24px )' : undefined,
15059
15064
  width: (_a = isFullScreen ? '100%' : undefined) !== null && _a !== void 0 ? _a : width,
15060
- height: isFullScreen || pinned === 'center' ? 'calc(100vh - 24px )' : height
15065
+ height: height ? height : isFullScreen ? 'calc(100vh - 24px )' : undefined
15061
15066
  }, shouldScroll ? jsx(Div, {
15062
15067
  height: {
15063
15068
  xSmall: 'calc(100vh - 96px)',
@@ -20497,6 +20502,8 @@ var Zoom = function (_a) {
20497
20502
  _b = _a.isDropDownAbove,
20498
20503
  isDropDownAbove = _b === void 0 ? true : _b;
20499
20504
  var hocs = useEntities().hocs;
20505
+ var hasHitMax = selectedOptionIndex === 0;
20506
+ var hasHitMin = selectedOptionIndex === items.length - 1;
20500
20507
  return jsx(AnimateSharedLayout, null, jsx(Flex, {
20501
20508
  inset: "x_5",
20502
20509
  borderRadius: "circle",
@@ -20509,11 +20516,12 @@ var Zoom = function (_a) {
20509
20516
  }, jsx(Flex, {
20510
20517
  css: styles$8.iconContainer(hocs),
20511
20518
  borderRadius: "circle",
20512
- cursor: "pointer",
20519
+ cursor: hasHitMin ? 'not-allowed' : 'pointer',
20513
20520
  alignItems: "center",
20514
20521
  onClick: selectedOptionIndex < items.length - 1 ? function () {
20515
20522
  return onChange(selectedOptionIndex + 1);
20516
20523
  } : undefined,
20524
+ opacity: hasHitMin ? 0.5 : 1,
20517
20525
  inset: "x_75"
20518
20526
  }, jsx(Icon, {
20519
20527
  name: "minus",
@@ -20542,8 +20550,9 @@ var Zoom = function (_a) {
20542
20550
  css: styles$8.iconContainer(hocs),
20543
20551
  inset: "x_75",
20544
20552
  borderRadius: "circle",
20545
- cursor: "pointer",
20553
+ cursor: hasHitMax ? 'not-allowed' : 'pointer',
20546
20554
  alignItems: "center",
20555
+ opacity: hasHitMax ? 0.5 : 1,
20547
20556
  onClick: selectedOptionIndex > 0 ? function () {
20548
20557
  return onChange(selectedOptionIndex - 1);
20549
20558
  } : undefined
@@ -18,5 +18,6 @@ export declare type IconLinkProps = {
18
18
  isStacked?: boolean;
19
19
  hasBackgroundColor?: boolean;
20
20
  gap?: HOCSpacingKeys;
21
+ isDisabled?: boolean;
21
22
  };
22
23
  export declare const IconLink: FC<IconLinkProps>;
@@ -8,3 +8,4 @@ export declare const medium: any;
8
8
  export declare const large: any;
9
9
  export declare const xLarge: any;
10
10
  export declare const StackedIconLink: any;
11
+ export declare const Disabled: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendoutcards/quantum-design-ui",
3
- "version": "1.8.23",
3
+ "version": "1.8.25",
4
4
  "description": "UI component library for Quantum Design System",
5
5
  "module": "dist/index.es.js",
6
6
  "jsnext:main": "dist/index.es.js",