odaptos_design_system 1.4.183 → 1.4.186

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.
@@ -10787,7 +10787,7 @@ const NumberField = props => {
10787
10787
  }));
10788
10788
  };
10789
10789
 
10790
- var css_248z$s = ".Banner-modules_notification_banner__JKUGY{align-items:flex-start;border-radius:.25rem;display:flex;flex-direction:column;gap:.5rem;max-width:87.5rem;padding:.5rem}.Banner-modules_notification_banner__JKUGY h2,.Banner-modules_notification_banner__JKUGY p{white-space:break-spaces}.Banner-modules_banner_content_info__tPwH-,.Banner-modules_banner_content_info__tPwH- a{font-family:var(--sdFontFamilyOpenSans);font-size:.875rem;font-style:normal;font-weight:400;line-height:140%}.Banner-modules_banner_content_info__tPwH- a{color:#004799}.Banner-modules_banner_content_error__GS1Mz,.Banner-modules_banner_content_error__GS1Mz a{font-family:var(--sdFontFamilyOpenSans);font-size:.875rem;font-style:normal;font-weight:400;line-height:140%}.Banner-modules_banner_content_error__GS1Mz a{color:#98312e}.Banner-modules_banner_content_success__64pVm,.Banner-modules_banner_content_success__64pVm a{font-family:var(--sdFontFamilyOpenSans);font-size:.875rem;font-style:normal;font-weight:400;line-height:140%}.Banner-modules_banner_content_success__64pVm a{color:#3c743d}.Banner-modules_banner_content_warning__YWAd7,.Banner-modules_banner_content_warning__YWAd7 a{font-family:var(--sdFontFamilyOpenSans);font-size:.875rem;font-style:normal;font-weight:400;line-height:140%}.Banner-modules_banner_content_warning__YWAd7 a{color:#9e7200}.Banner-modules_notification_banner_header__L3uAa{align-items:center;display:flex;gap:.5rem;width:100%}.Banner-modules_notification_banner_header__L3uAa .Banner-modules_icon_btn_custom__s-jml{margin-left:auto}.Banner-modules_notification_banner_header__L3uAa .Banner-modules_icon_button_error__qw-kh:hover{background:#fbb7b7;border:1px solid #fbb7b7}.Banner-modules_notification_banner_header__L3uAa .Banner-modules_icon_button_error__qw-kh svg{stroke:#98312e!important;fill:#98312e!important}.Banner-modules_notification_banner_header__L3uAa .Banner-modules_icon_button_warning__-sNU6:hover{background:#ffe299;border:1px solid #ffe299}.Banner-modules_notification_banner_header__L3uAa .Banner-modules_icon_button_warning__-sNU6 svg{stroke:#9e7200!important;fill:#9e7200!important}.Banner-modules_notification_banner_header__L3uAa .Banner-modules_icon_button_success__nt032:hover{background:#d5edd8;border:1px solid #d5edd8}.Banner-modules_notification_banner_header__L3uAa .Banner-modules_icon_button_success__nt032 svg{stroke:#3c743d!important;fill:#3c743d!important}.Banner-modules_notification_banner_header__L3uAa .Banner-modules_icon_button_info__cGQHW:hover{background:#99c9ff;border:1px solid #99c9ff}.Banner-modules_notification_banner_header__L3uAa .Banner-modules_icon_button_info__cGQHW svg{stroke:#004799!important;fill:#004799!important}.Banner-modules_notification_banner_error__ThRKH{background:var(--color-extended-red-100,#fddbdb);border:1px solid var(--color-extended-red-500,#f54c4c)}.Banner-modules_notification_banner_warning__cbz4c{background:var(--color-extended-yellow-100,#fff3d6);border:1px solid var(--color-extended-yellow-500,#ffb800)}.Banner-modules_notification_banner_info__-ByX7{background:var(--color-primary-100,#e5f1ff);border:1px solid var(--color-primary-500,#07f)}.Banner-modules_notification_banner_success__QCOL-{background:var(--color-extended-green-100,#e8f5ea);border:1px solid var(--color-extended-green-500,#5cbb65)}";
10790
+ var css_248z$s = ".Banner-modules_notification_banner__JKUGY{align-items:flex-start;border-radius:.25rem;display:flex;flex-direction:column;gap:.5rem;max-width:87.5rem;padding:.5rem}.Banner-modules_notification_banner__JKUGY h2,.Banner-modules_notification_banner__JKUGY p{white-space:break-spaces}.Banner-modules_banner_content_info__tPwH-{white-space:break-spaces}.Banner-modules_banner_content_info__tPwH-,.Banner-modules_banner_content_info__tPwH- a{font-family:var(--sdFontFamilyOpenSans);font-size:.875rem;font-style:normal;font-weight:400;line-height:140%}.Banner-modules_banner_content_info__tPwH- a{color:#004799}.Banner-modules_banner_content_error__GS1Mz{white-space:break-spaces}.Banner-modules_banner_content_error__GS1Mz,.Banner-modules_banner_content_error__GS1Mz a{font-family:var(--sdFontFamilyOpenSans);font-size:.875rem;font-style:normal;font-weight:400;line-height:140%}.Banner-modules_banner_content_error__GS1Mz a{color:#98312e}.Banner-modules_banner_content_success__64pVm{white-space:break-spaces}.Banner-modules_banner_content_success__64pVm,.Banner-modules_banner_content_success__64pVm a{font-family:var(--sdFontFamilyOpenSans);font-size:.875rem;font-style:normal;font-weight:400;line-height:140%}.Banner-modules_banner_content_success__64pVm a{color:#3c743d}.Banner-modules_banner_content_warning__YWAd7{white-space:break-spaces}.Banner-modules_banner_content_warning__YWAd7,.Banner-modules_banner_content_warning__YWAd7 a{font-family:var(--sdFontFamilyOpenSans);font-size:.875rem;font-style:normal;font-weight:400;line-height:140%}.Banner-modules_banner_content_warning__YWAd7 a{color:#9e7200}.Banner-modules_notification_banner_header__L3uAa{align-items:center;display:flex;gap:.5rem;width:100%}.Banner-modules_notification_banner_header__L3uAa .Banner-modules_icon_btn_custom__s-jml{margin-left:auto}.Banner-modules_notification_banner_header__L3uAa .Banner-modules_icon_button_error__qw-kh:hover{background:#fbb7b7;border:1px solid #fbb7b7}.Banner-modules_notification_banner_header__L3uAa .Banner-modules_icon_button_error__qw-kh svg{stroke:#98312e!important;fill:#98312e!important}.Banner-modules_notification_banner_header__L3uAa .Banner-modules_icon_button_warning__-sNU6:hover{background:#ffe299;border:1px solid #ffe299}.Banner-modules_notification_banner_header__L3uAa .Banner-modules_icon_button_warning__-sNU6 svg{stroke:#9e7200!important;fill:#9e7200!important}.Banner-modules_notification_banner_header__L3uAa .Banner-modules_icon_button_success__nt032:hover{background:#d5edd8;border:1px solid #d5edd8}.Banner-modules_notification_banner_header__L3uAa .Banner-modules_icon_button_success__nt032 svg{stroke:#3c743d!important;fill:#3c743d!important}.Banner-modules_notification_banner_header__L3uAa .Banner-modules_icon_button_info__cGQHW:hover{background:#99c9ff;border:1px solid #99c9ff}.Banner-modules_notification_banner_header__L3uAa .Banner-modules_icon_button_info__cGQHW svg{stroke:#004799!important;fill:#004799!important}.Banner-modules_notification_banner_error__ThRKH{background:var(--color-extended-red-100,#fddbdb);border:1px solid var(--color-extended-red-500,#f54c4c)}.Banner-modules_notification_banner_warning__cbz4c{background:var(--color-extended-yellow-100,#fff3d6);border:1px solid var(--color-extended-yellow-500,#ffb800)}.Banner-modules_notification_banner_info__-ByX7{background:var(--color-primary-100,#e5f1ff);border:1px solid var(--color-primary-500,#07f)}.Banner-modules_notification_banner_success__QCOL-{background:var(--color-extended-green-100,#e8f5ea);border:1px solid var(--color-extended-green-500,#5cbb65)}";
10791
10791
  var styles$s = {"notification_banner":"Banner-modules_notification_banner__JKUGY","banner_content_info":"Banner-modules_banner_content_info__tPwH-","banner_content_error":"Banner-modules_banner_content_error__GS1Mz","banner_content_success":"Banner-modules_banner_content_success__64pVm","banner_content_warning":"Banner-modules_banner_content_warning__YWAd7","notification_banner_header":"Banner-modules_notification_banner_header__L3uAa","icon_btn_custom":"Banner-modules_icon_btn_custom__s-jml","icon_button_error":"Banner-modules_icon_button_error__qw-kh","icon_button_warning":"Banner-modules_icon_button_warning__-sNU6","icon_button_success":"Banner-modules_icon_button_success__nt032","icon_button_info":"Banner-modules_icon_button_info__cGQHW","notification_banner_error":"Banner-modules_notification_banner_error__ThRKH","notification_banner_warning":"Banner-modules_notification_banner_warning__cbz4c","notification_banner_info":"Banner-modules_notification_banner_info__-ByX7","notification_banner_success":"Banner-modules_notification_banner_success__QCOL-"};
10792
10792
  styleInject(css_248z$s);
10793
10793
 
@@ -12457,6 +12457,7 @@ const TabsUnderline = ({
12457
12457
  let renderTab = /*#__PURE__*/React__default.createElement(Tab, {
12458
12458
  key: `tab#${index}`,
12459
12459
  className: styles$K.tab_label,
12460
+ disabled: item.disabled ?? false,
12460
12461
  disableRipple: true,
12461
12462
  sx: {
12462
12463
  textTransform: 'none'
@@ -12478,11 +12479,35 @@ const TabsUnderline = ({
12478
12479
  color: index === value ? 'black' : 'gray'
12479
12480
  });
12480
12481
  }
12481
- if (item.tooltip) {
12482
+ if (item.disabled && (item.tooltipTitle || item.tooltipDescription)) {
12483
+ renderTab = /*#__PURE__*/React__default.createElement(Tooltip, {
12484
+ key: `tab#${index}`,
12485
+ title: item.tooltipTitle,
12486
+ tooltipDescription: item.tooltipDescription,
12487
+ placement: item.tooltipPlacement,
12488
+ arrow: true
12489
+ }, /*#__PURE__*/React__default.createElement("div", {
12490
+ style: {
12491
+ height: 'fit-content',
12492
+ width: 'fit-content',
12493
+ marginTop: '0.6rem'
12494
+ }
12495
+ }, /*#__PURE__*/React__default.createElement(Title, {
12496
+ key: `tab#${index}`,
12497
+ className: `${styles$K.tab_label_replacement} ${styles$K.disabled}`,
12498
+ weight: value === index ? 'semi-bold' : 'regular',
12499
+ size: "base",
12500
+ text: item.label,
12501
+ color: index === value ? 'black' : 'gray'
12502
+ })));
12503
+ }
12504
+ if (item.tooltipTitle || item.tooltipDescription) {
12482
12505
  return /*#__PURE__*/React__default.createElement(Tooltip, {
12506
+ arrow: true,
12483
12507
  key: `tab#${index}`,
12484
- title: item.tooltip,
12485
- placement: "top"
12508
+ title: item.tooltipTitle,
12509
+ tooltipDescription: item.tooltipDescription,
12510
+ placement: item.tooltipPlacement
12486
12511
  }, renderTab);
12487
12512
  }
12488
12513
  return renderTab;