@genesislcap/pbc-notify-ui 1.0.34 → 1.0.36

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.
@@ -1,5 +1,5 @@
1
1
  export declare const getStatus: (ruleStatus: any) => "Active" | "Paused";
2
2
  export declare const getIcon: (ruleStatus: any) => "pause" | "play";
3
3
  export declare const getFormattedDate: (dateTimeInMills: any) => string;
4
- export declare function getSeverityColor(severity: string): string;
4
+ export declare function getSeverityColor(severity: string): "var(--accent-fill-rest)" | "var(--warning-color)" | "var(--error-color)" | "var(--sell-color)" | "var(--neutral-foreground-rest)";
5
5
  //# sourceMappingURL=inbox.utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"inbox.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.utils.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,SAAS,0CAAkE,CAAC;AAEzF,eAAO,MAAM,OAAO,uCAAgE,CAAC;AAErF,eAAO,MAAM,gBAAgB,kCAG5B,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,UAchD"}
1
+ {"version":3,"file":"inbox.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.utils.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS,0CAAkE,CAAC;AAEzF,eAAO,MAAM,OAAO,uCAAgE,CAAC;AAErF,eAAO,MAAM,gBAAgB,kCAG5B,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,sIAchD"}
@@ -1 +1 @@
1
- {"version":3,"file":"route-management.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/routes/route-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,cAAc,EAAQ,MAAM,uBAAuB,CAAC;AAEjF,qBAoDa,eAAgB,SAAQ,cAAc;CAAG"}
1
+ {"version":3,"file":"route-management.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/routes/route-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,cAAc,EAAQ,MAAM,uBAAuB,CAAC;AAEjF,qBAqDa,eAAgB,SAAQ,cAAc;CAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"rule-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,eAAO,MAAM,kBAAkB,iEA2H9B,CAAC"}
1
+ {"version":3,"file":"rule-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,eAAO,MAAM,kBAAkB,iEA0H9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"template-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,sBAAsB,qEA0IlC,CAAC"}
1
+ {"version":3,"file":"template-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,sBAAsB,qEAyIlC,CAAC"}
@@ -1,4 +1,3 @@
1
- import { chartPinkWebRGBA, primaryBlueWebRGBA, secondaryOrangeWebRGBA, warningYellowWebRGBA, } from '@genesislcap/foundation-zero';
2
1
  import { SEVERITY_CRITICAL, SEVERITY_INFORMATION, SEVERITY_SERIOUS, SEVERITY_WARNING, } from '../foundation-notification-dashboard/types/severity';
3
2
  export const getStatus = (ruleStatus) => (ruleStatus == 'ENABLED' ? 'Active' : 'Paused');
4
3
  export const getIcon = (ruleStatus) => (ruleStatus === 'ENABLED' ? 'pause' : 'play');
@@ -9,15 +8,15 @@ export const getFormattedDate = (dateTimeInMills) => {
9
8
  export function getSeverityColor(severity) {
10
9
  switch (severity.toUpperCase()) {
11
10
  case SEVERITY_INFORMATION:
12
- return primaryBlueWebRGBA(1);
11
+ return 'var(--accent-fill-rest)';
13
12
  case SEVERITY_CRITICAL:
14
- return warningYellowWebRGBA(1);
13
+ return 'var(--warning-color)';
15
14
  case SEVERITY_SERIOUS:
16
- return secondaryOrangeWebRGBA(1);
15
+ return 'var(--error-color)';
17
16
  case SEVERITY_WARNING:
18
- return chartPinkWebRGBA(1);
17
+ return 'var(--sell-color)';
19
18
  default:
20
19
  console.error('Unexpected severity:', severity);
21
- return '#FF';
20
+ return 'var(--neutral-foreground-rest)';
22
21
  }
23
22
  }
@@ -40,6 +40,7 @@ RouteManagement = __decorate([
40
40
  rapid-tabs::part(tablist) {
41
41
  grid-template-columns: none;
42
42
  flex: 0;
43
+ align-self: start;
43
44
  }
44
45
 
45
46
  rapid-tabs::part(tabpanel) {
@@ -110,7 +110,6 @@ export const RuleDialogTemplate = html `
110
110
  <rapid-button
111
111
  appearance="accent"
112
112
  @click=${(x) => x.submit()}
113
- ?disabled=${(x) => x.validateRequiredFields}
114
113
  >
115
114
  Submit
116
115
  </rapid-button>
@@ -122,7 +122,6 @@ export const TemplateDialogTemplate = html `
122
122
  <rapid-button
123
123
  appearance="accent"
124
124
  @click=${(x) => x.submit()}
125
- ?disabled=${(x) => x.validateRequiredFields}
126
125
  >
127
126
  Submit
128
127
  </rapid-button>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/pbc-notify-ui",
3
3
  "description": "Genesis PBC Notify UI",
4
- "version": "1.0.34",
4
+ "version": "1.0.36",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "workspaces": [
7
7
  "client"