@eturnity/eturnity_reusable_components 9.31.3 → 9.31.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "9.31.3",
3
+ "version": "9.31.4",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -292,6 +292,7 @@
292
292
  v-if="!isCollapsed"
293
293
  data-id="footer_documents_button"
294
294
  data-qa-id="footer_documents_button"
295
+ :is-disabled="footerButtonDisabled"
295
296
  :text="footerButtonText"
296
297
  @click="onFooterButtonClick()"
297
298
  />
@@ -299,6 +300,7 @@
299
300
  v-else
300
301
  data-id="footer_documents_button"
301
302
  data-qa-id="footer_documents_button"
303
+ :is-disabled="footerButtonDisabled"
302
304
  @click="onFooterButtonClick()"
303
305
  >
304
306
  <IconComponent color="white" name="documents" size="16px" />
@@ -560,15 +562,19 @@
560
562
  font-weight: 400;
561
563
  `
562
564
 
563
- const FooterButtonWrapper = styled.div`
565
+ const FooterButtonWrapperAttrs = { isDisabled: Boolean }
566
+ const FooterButtonWrapper = styled('div', FooterButtonWrapperAttrs)`
564
567
  display: flex;
565
568
  align-items: center;
566
569
  justify-content: center;
567
570
  width: 30px;
568
571
  height: 30px;
569
572
  border-radius: 4px;
570
- cursor: pointer;
571
- background-color: ${(p) => p.theme.semanticColors.purple[500]};
573
+ cursor: ${(p) => (p.isDisabled ? 'not-allowed' : 'pointer')};
574
+ background-color: ${(p) =>
575
+ p.isDisabled
576
+ ? p.theme.colors.disabled
577
+ : p.theme.semanticColors.purple[500]};
572
578
  `
573
579
 
574
580
  const ChevronCellAttrs = { isWrapperHovered: Boolean }
@@ -872,6 +878,10 @@
872
878
  type: String,
873
879
  default: '',
874
880
  },
881
+ footerButtonDisabled: {
882
+ type: Boolean,
883
+ default: false,
884
+ },
875
885
  },
876
886
  emits: [
877
887
  'item-click',