@capillarytech/blaze-ui 0.3.2 → 0.3.3-alpha.0

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.
@@ -385,6 +385,7 @@ const CapUnifiedSelect = ({
385
385
  size="small"
386
386
  className="cap-unified-select-confirm-button"
387
387
  onClick={handleConfirm}
388
+ disabled={selectedLeafCount === 0}
388
389
  >
389
390
  Confirm
390
391
  </Button>
@@ -341,6 +341,10 @@ export const selectStyles = css`
341
341
  background-color: ${styledVars.CAP_GREEN01};
342
342
  height: 2.286rem;
343
343
  width: 6.714rem;
344
+ &:disabled {
345
+ background-color: ${styledVars.CAP_GREEN03};
346
+ color: ${styledVars.CAP_WHITE};
347
+ }
344
348
  }
345
349
  .cap-unified-select-cancel-button {
346
350
  border: transparent;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/blaze-ui",
3
3
  "author": "Capillary Technologies",
4
- "version": "0.3.2",
4
+ "version": "0.3.3-alpha.0",
5
5
  "description": "Capillary UI component library with Ant Design v5",
6
6
  "main": "./index.js",
7
7
  "sideEffects": [
@@ -40,6 +40,7 @@ export const CAP_PURPLE03 = "#f2e7fe";
40
40
  export const CAP_PURPLE04 = "#d4e1fc";
41
41
  export const CAP_GREEN01 = "#6bb56b";
42
42
  export const CAP_GREEN02 = "#ecf7ec";
43
+ export const CAP_GREEN03 = "#a1d8a0";
43
44
 
44
45
  // Grey colors
45
46
  export const CAP_G01 = "#091e42";