@rivet-health/design-system 0.0.8
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/README.md +24 -0
- package/esm2022/lib/riv.module.mjs +18 -0
- package/esm2022/lib/visualization/metric.component.mjs +23 -0
- package/esm2022/public-api.mjs +3 -0
- package/esm2022/rivet-health-design-system.mjs +5 -0
- package/fesm2022/rivet-health-design-system.mjs +45 -0
- package/fesm2022/rivet-health-design-system.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/riv.module.d.ts +8 -0
- package/lib/visualization/metric.component.d.ts +8 -0
- package/package.json +28 -0
- package/public-api.d.ts +2 -0
- package/styles/global.css +24 -0
- package/styles/reset.css +129 -0
- package/styles/tokens/color.css +116 -0
- package/styles/tokens/size.css +21 -0
- package/styles/tokens/typography.css +55 -0
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Riv
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.2.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project riv` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project riv`.
|
|
8
|
+
> Note: Don't forget to add `--project riv` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build riv` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build riv`, go to the dist folder `cd dist/riv` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test riv` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { MetricComponent } from './visualization/metric.component';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class RivModule {
|
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: RivModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.11", ngImport: i0, type: RivModule, declarations: [MetricComponent], imports: [CommonModule], exports: [MetricComponent] }); }
|
|
8
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: RivModule, imports: [CommonModule] }); }
|
|
9
|
+
}
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: RivModule, decorators: [{
|
|
11
|
+
type: NgModule,
|
|
12
|
+
args: [{
|
|
13
|
+
declarations: [MetricComponent],
|
|
14
|
+
exports: [MetricComponent],
|
|
15
|
+
imports: [CommonModule],
|
|
16
|
+
}]
|
|
17
|
+
}] });
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicml2Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3Jpdi9zcmMvbGliL3Jpdi5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sa0NBQWtDLENBQUM7QUFDbkUsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDOztBQU8vQyxNQUFNLE9BQU8sU0FBUzsrR0FBVCxTQUFTO2dIQUFULFNBQVMsaUJBSkwsZUFBZSxhQUVwQixZQUFZLGFBRFosZUFBZTtnSEFHZCxTQUFTLFlBRlYsWUFBWTs7NEZBRVgsU0FBUztrQkFMckIsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUUsQ0FBQyxlQUFlLENBQUM7b0JBQy9CLE9BQU8sRUFBRSxDQUFDLGVBQWUsQ0FBQztvQkFDMUIsT0FBTyxFQUFFLENBQUMsWUFBWSxDQUFDO2lCQUN4QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBNZXRyaWNDb21wb25lbnQgfSBmcm9tICcuL3Zpc3VhbGl6YXRpb24vbWV0cmljLmNvbXBvbmVudCc7XG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtNZXRyaWNDb21wb25lbnRdLFxuICBleHBvcnRzOiBbTWV0cmljQ29tcG9uZW50XSxcbiAgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sXG59KVxuZXhwb3J0IGNsYXNzIFJpdk1vZHVsZSB7fVxuIl19
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
export class MetricComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.label = '';
|
|
7
|
+
this.value = '';
|
|
8
|
+
this.card = false;
|
|
9
|
+
}
|
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetricComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: MetricComponent, selector: "riv-metric", inputs: { label: "label", value: "value", card: "card" }, ngImport: i0, template: "<div *ngIf=\"card; else content\" class=\"card\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</div>\n<ng-template #content>\n <div class=\"label\">{{ label }}</div>\n <div class=\"value\">{{ value }}</div>\n</ng-template>\n", styles: [".card{border-radius:var(--size-xsmall);border:var(--border-width) solid var(--border-light-blend);padding:var(--size-medium)}.label{font-size:var(--type-2-font-size);line-height:var(--type-2-line-height-0);color:var(--type-light-low-contrast)}.value{font-size:var(--type-5-font-size);line-height:var(--type-5-line-height-0);font-weight:var(--font-weight-heavy)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
12
|
+
}
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetricComponent, decorators: [{
|
|
14
|
+
type: Component,
|
|
15
|
+
args: [{ selector: 'riv-metric', template: "<div *ngIf=\"card; else content\" class=\"card\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</div>\n<ng-template #content>\n <div class=\"label\">{{ label }}</div>\n <div class=\"value\">{{ value }}</div>\n</ng-template>\n", styles: [".card{border-radius:var(--size-xsmall);border:var(--border-width) solid var(--border-light-blend);padding:var(--size-medium)}.label{font-size:var(--type-2-font-size);line-height:var(--type-2-line-height-0);color:var(--type-light-low-contrast)}.value{font-size:var(--type-5-font-size);line-height:var(--type-5-line-height-0);font-weight:var(--font-weight-heavy)}\n"] }]
|
|
16
|
+
}], propDecorators: { label: [{
|
|
17
|
+
type: Input
|
|
18
|
+
}], value: [{
|
|
19
|
+
type: Input
|
|
20
|
+
}], card: [{
|
|
21
|
+
type: Input
|
|
22
|
+
}] } });
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWV0cmljLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Jpdi9zcmMvbGliL3Zpc3VhbGl6YXRpb24vbWV0cmljLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Jpdi9zcmMvbGliL3Zpc3VhbGl6YXRpb24vbWV0cmljLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7QUFPakQsTUFBTSxPQUFPLGVBQWU7SUFMNUI7UUFPRSxVQUFLLEdBQVcsRUFBRSxDQUFDO1FBR25CLFVBQUssR0FBVyxFQUFFLENBQUM7UUFHbkIsU0FBSSxHQUFZLEtBQUssQ0FBQztLQUN2QjsrR0FUWSxlQUFlO21HQUFmLGVBQWUsNEdDUDVCLHdQQU9BOzs0RkRBYSxlQUFlO2tCQUwzQixTQUFTOytCQUNFLFlBQVk7OEJBTXRCLEtBQUs7c0JBREosS0FBSztnQkFJTixLQUFLO3NCQURKLEtBQUs7Z0JBSU4sSUFBSTtzQkFESCxLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBJbnB1dCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdyaXYtbWV0cmljJyxcbiAgdGVtcGxhdGVVcmw6ICcuL21ldHJpYy5jb21wb25lbnQuaHRtbCcsXG4gIHN0eWxlVXJsczogWycuL21ldHJpYy5jb21wb25lbnQuY3NzJ10sXG59KVxuZXhwb3J0IGNsYXNzIE1ldHJpY0NvbXBvbmVudCB7XG4gIEBJbnB1dCgpXG4gIGxhYmVsOiBzdHJpbmcgPSAnJztcblxuICBASW5wdXQoKVxuICB2YWx1ZTogc3RyaW5nID0gJyc7XG5cbiAgQElucHV0KClcbiAgY2FyZDogYm9vbGVhbiA9IGZhbHNlO1xufVxuIiwiPGRpdiAqbmdJZj1cImNhcmQ7IGVsc2UgY29udGVudFwiIGNsYXNzPVwiY2FyZFwiPlxuICA8bmctY29udGFpbmVyICpuZ1RlbXBsYXRlT3V0bGV0PVwiY29udGVudFwiPjwvbmctY29udGFpbmVyPlxuPC9kaXY+XG48bmctdGVtcGxhdGUgI2NvbnRlbnQ+XG4gIDxkaXYgY2xhc3M9XCJsYWJlbFwiPnt7IGxhYmVsIH19PC9kaXY+XG4gIDxkaXYgY2xhc3M9XCJ2YWx1ZVwiPnt7IHZhbHVlIH19PC9kaXY+XG48L25nLXRlbXBsYXRlPlxuIl19
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './lib/visualization/metric.component';
|
|
2
|
+
export * from './lib/riv.module';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3Jpdi9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHNDQUFzQyxDQUFDO0FBQ3JELGNBQWMsa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi92aXN1YWxpemF0aW9uL21ldHJpYy5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcml2Lm1vZHVsZSc7XG4iXX0=
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicml2ZXQtaGVhbHRoLWRlc2lnbi1zeXN0ZW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9yaXYvc3JjL3JpdmV0LWhlYWx0aC1kZXNpZ24tc3lzdGVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, Input, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
|
|
6
|
+
class MetricComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.label = '';
|
|
9
|
+
this.value = '';
|
|
10
|
+
this.card = false;
|
|
11
|
+
}
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetricComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: MetricComponent, selector: "riv-metric", inputs: { label: "label", value: "value", card: "card" }, ngImport: i0, template: "<div *ngIf=\"card; else content\" class=\"card\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</div>\n<ng-template #content>\n <div class=\"label\">{{ label }}</div>\n <div class=\"value\">{{ value }}</div>\n</ng-template>\n", styles: [".card{border-radius:var(--size-xsmall);border:var(--border-width) solid var(--border-light-blend);padding:var(--size-medium)}.label{font-size:var(--type-2-font-size);line-height:var(--type-2-line-height-0);color:var(--type-light-low-contrast)}.value{font-size:var(--type-5-font-size);line-height:var(--type-5-line-height-0);font-weight:var(--font-weight-heavy)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
14
|
+
}
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetricComponent, decorators: [{
|
|
16
|
+
type: Component,
|
|
17
|
+
args: [{ selector: 'riv-metric', template: "<div *ngIf=\"card; else content\" class=\"card\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</div>\n<ng-template #content>\n <div class=\"label\">{{ label }}</div>\n <div class=\"value\">{{ value }}</div>\n</ng-template>\n", styles: [".card{border-radius:var(--size-xsmall);border:var(--border-width) solid var(--border-light-blend);padding:var(--size-medium)}.label{font-size:var(--type-2-font-size);line-height:var(--type-2-line-height-0);color:var(--type-light-low-contrast)}.value{font-size:var(--type-5-font-size);line-height:var(--type-5-line-height-0);font-weight:var(--font-weight-heavy)}\n"] }]
|
|
18
|
+
}], propDecorators: { label: [{
|
|
19
|
+
type: Input
|
|
20
|
+
}], value: [{
|
|
21
|
+
type: Input
|
|
22
|
+
}], card: [{
|
|
23
|
+
type: Input
|
|
24
|
+
}] } });
|
|
25
|
+
|
|
26
|
+
class RivModule {
|
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: RivModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
28
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.11", ngImport: i0, type: RivModule, declarations: [MetricComponent], imports: [CommonModule], exports: [MetricComponent] }); }
|
|
29
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: RivModule, imports: [CommonModule] }); }
|
|
30
|
+
}
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: RivModule, decorators: [{
|
|
32
|
+
type: NgModule,
|
|
33
|
+
args: [{
|
|
34
|
+
declarations: [MetricComponent],
|
|
35
|
+
exports: [MetricComponent],
|
|
36
|
+
imports: [CommonModule],
|
|
37
|
+
}]
|
|
38
|
+
}] });
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Generated bundle index. Do not edit.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
export { MetricComponent, RivModule };
|
|
45
|
+
//# sourceMappingURL=rivet-health-design-system.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rivet-health-design-system.mjs","sources":["../../../projects/riv/src/lib/visualization/metric.component.ts","../../../projects/riv/src/lib/visualization/metric.component.html","../../../projects/riv/src/lib/riv.module.ts","../../../projects/riv/src/rivet-health-design-system.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'riv-metric',\n templateUrl: './metric.component.html',\n styleUrls: ['./metric.component.css'],\n})\nexport class MetricComponent {\n @Input()\n label: string = '';\n\n @Input()\n value: string = '';\n\n @Input()\n card: boolean = false;\n}\n","<div *ngIf=\"card; else content\" class=\"card\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</div>\n<ng-template #content>\n <div class=\"label\">{{ label }}</div>\n <div class=\"value\">{{ value }}</div>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { MetricComponent } from './visualization/metric.component';\nimport { CommonModule } from '@angular/common';\n\n@NgModule({\n declarations: [MetricComponent],\n exports: [MetricComponent],\n imports: [CommonModule],\n})\nexport class RivModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAOa,eAAe,CAAA;AAL5B,IAAA,WAAA,GAAA;QAOE,IAAK,CAAA,KAAA,GAAW,EAAE,CAAC;QAGnB,IAAK,CAAA,KAAA,GAAW,EAAE,CAAC;QAGnB,IAAI,CAAA,IAAA,GAAY,KAAK,CAAC;AACvB,KAAA;+GATY,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,eAAe,4GCP5B,wPAOA,EAAA,MAAA,EAAA,CAAA,6WAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;4FDAa,eAAe,EAAA,UAAA,EAAA,CAAA;kBAL3B,SAAS;+BACE,YAAY,EAAA,QAAA,EAAA,wPAAA,EAAA,MAAA,EAAA,CAAA,6WAAA,CAAA,EAAA,CAAA;8BAMtB,KAAK,EAAA,CAAA;sBADJ,KAAK;gBAIN,KAAK,EAAA,CAAA;sBADJ,KAAK;gBAIN,IAAI,EAAA,CAAA;sBADH,KAAK;;;MELK,SAAS,CAAA;+GAAT,SAAS,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAT,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,SAAS,EAJL,YAAA,EAAA,CAAA,eAAe,CAEpB,EAAA,OAAA,EAAA,CAAA,YAAY,aADZ,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;AAGd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,SAAS,YAFV,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAEX,SAAS,EAAA,UAAA,EAAA,CAAA;kBALrB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,eAAe,CAAC;oBAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,OAAO,EAAE,CAAC,YAAY,CAAC;AACxB,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./visualization/metric.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class RivModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RivModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RivModule, [typeof i1.MetricComponent], [typeof i2.CommonModule], [typeof i1.MetricComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RivModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class MetricComponent {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
card: boolean;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MetricComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MetricComponent, "riv-metric", never, { "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; "card": { "alias": "card"; "required": false; }; }, {}, never, never, false, never>;
|
|
8
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rivet-health/design-system",
|
|
3
|
+
"version": "0.0.8",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^16.2.0",
|
|
6
|
+
"@angular/core": "^16.2.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"exports": {
|
|
13
|
+
"./styles/global.css": {
|
|
14
|
+
"style": "./styles/global.css"
|
|
15
|
+
},
|
|
16
|
+
"./package.json": {
|
|
17
|
+
"default": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./index.d.ts",
|
|
21
|
+
"esm2022": "./esm2022/rivet-health-design-system.mjs",
|
|
22
|
+
"esm": "./esm2022/rivet-health-design-system.mjs",
|
|
23
|
+
"default": "./fesm2022/rivet-health-design-system.mjs"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"module": "fesm2022/rivet-health-design-system.mjs",
|
|
27
|
+
"typings": "index.d.ts"
|
|
28
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@import url('./reset.css') layer(reset);
|
|
2
|
+
|
|
3
|
+
@import url('./tokens/color.css') layer(tokens);
|
|
4
|
+
@import url('./tokens/size.css') layer(tokens);
|
|
5
|
+
@import url('./tokens/typography.css') layer(tokens);
|
|
6
|
+
|
|
7
|
+
@layer global {
|
|
8
|
+
* {
|
|
9
|
+
-webkit-font-smoothing: antialiased;
|
|
10
|
+
-moz-osx-font-smoothing: grayscale;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
html,
|
|
15
|
+
body {
|
|
16
|
+
font-family: var(--font-stack);
|
|
17
|
+
font-weight: var(--font-weight-normal);
|
|
18
|
+
font-size: calc(var(--base-grid-size) * 4);
|
|
19
|
+
line-height: calc(var(--base-grid-size) * 6);
|
|
20
|
+
color: var(--type-light-high-contrast);
|
|
21
|
+
background-color: var(--surface-light-0);
|
|
22
|
+
height: 100%;
|
|
23
|
+
}
|
|
24
|
+
}
|
package/styles/reset.css
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/* http://meyerweb.com/eric/tools/css/reset/
|
|
2
|
+
v2.0 | 20110126
|
|
3
|
+
License: none (public domain)
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
html,
|
|
7
|
+
body,
|
|
8
|
+
div,
|
|
9
|
+
span,
|
|
10
|
+
applet,
|
|
11
|
+
object,
|
|
12
|
+
iframe,
|
|
13
|
+
h1,
|
|
14
|
+
h2,
|
|
15
|
+
h3,
|
|
16
|
+
h4,
|
|
17
|
+
h5,
|
|
18
|
+
h6,
|
|
19
|
+
p,
|
|
20
|
+
blockquote,
|
|
21
|
+
pre,
|
|
22
|
+
a,
|
|
23
|
+
abbr,
|
|
24
|
+
acronym,
|
|
25
|
+
address,
|
|
26
|
+
big,
|
|
27
|
+
cite,
|
|
28
|
+
code,
|
|
29
|
+
del,
|
|
30
|
+
dfn,
|
|
31
|
+
em,
|
|
32
|
+
img,
|
|
33
|
+
ins,
|
|
34
|
+
kbd,
|
|
35
|
+
q,
|
|
36
|
+
s,
|
|
37
|
+
samp,
|
|
38
|
+
small,
|
|
39
|
+
strike,
|
|
40
|
+
strong,
|
|
41
|
+
sub,
|
|
42
|
+
sup,
|
|
43
|
+
tt,
|
|
44
|
+
var,
|
|
45
|
+
b,
|
|
46
|
+
u,
|
|
47
|
+
i,
|
|
48
|
+
center,
|
|
49
|
+
dl,
|
|
50
|
+
dt,
|
|
51
|
+
dd,
|
|
52
|
+
ol,
|
|
53
|
+
ul,
|
|
54
|
+
li,
|
|
55
|
+
fieldset,
|
|
56
|
+
form,
|
|
57
|
+
label,
|
|
58
|
+
legend,
|
|
59
|
+
table,
|
|
60
|
+
caption,
|
|
61
|
+
tbody,
|
|
62
|
+
tfoot,
|
|
63
|
+
thead,
|
|
64
|
+
tr,
|
|
65
|
+
th,
|
|
66
|
+
td,
|
|
67
|
+
article,
|
|
68
|
+
aside,
|
|
69
|
+
canvas,
|
|
70
|
+
details,
|
|
71
|
+
embed,
|
|
72
|
+
figure,
|
|
73
|
+
figcaption,
|
|
74
|
+
footer,
|
|
75
|
+
header,
|
|
76
|
+
hgroup,
|
|
77
|
+
menu,
|
|
78
|
+
nav,
|
|
79
|
+
output,
|
|
80
|
+
ruby,
|
|
81
|
+
section,
|
|
82
|
+
summary,
|
|
83
|
+
time,
|
|
84
|
+
mark,
|
|
85
|
+
audio,
|
|
86
|
+
video {
|
|
87
|
+
margin: 0;
|
|
88
|
+
padding: 0;
|
|
89
|
+
border: 0;
|
|
90
|
+
font-size: 100%;
|
|
91
|
+
font: inherit;
|
|
92
|
+
vertical-align: baseline;
|
|
93
|
+
}
|
|
94
|
+
/* HTML5 display-role reset for older browsers */
|
|
95
|
+
article,
|
|
96
|
+
aside,
|
|
97
|
+
details,
|
|
98
|
+
figcaption,
|
|
99
|
+
figure,
|
|
100
|
+
footer,
|
|
101
|
+
header,
|
|
102
|
+
hgroup,
|
|
103
|
+
menu,
|
|
104
|
+
nav,
|
|
105
|
+
section {
|
|
106
|
+
display: block;
|
|
107
|
+
}
|
|
108
|
+
body {
|
|
109
|
+
line-height: 1;
|
|
110
|
+
}
|
|
111
|
+
ol,
|
|
112
|
+
ul {
|
|
113
|
+
list-style: none;
|
|
114
|
+
}
|
|
115
|
+
blockquote,
|
|
116
|
+
q {
|
|
117
|
+
quotes: none;
|
|
118
|
+
}
|
|
119
|
+
blockquote:before,
|
|
120
|
+
blockquote:after,
|
|
121
|
+
q:before,
|
|
122
|
+
q:after {
|
|
123
|
+
content: '';
|
|
124
|
+
content: none;
|
|
125
|
+
}
|
|
126
|
+
table {
|
|
127
|
+
border-collapse: collapse;
|
|
128
|
+
border-spacing: 0;
|
|
129
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
:root {
|
|
3
|
+
--arnge-10: #fff1e9;
|
|
4
|
+
--arnge-30: #ffb992;
|
|
5
|
+
--arnge-50: #fc7022;
|
|
6
|
+
--arnge-70: #d55913;
|
|
7
|
+
--arnge-90: #ae4003;
|
|
8
|
+
|
|
9
|
+
--baja-blast-10: #ecf9f3;
|
|
10
|
+
--baja-blast-30: #a0ebc7;
|
|
11
|
+
--baja-blast-50: #43c285;
|
|
12
|
+
--baja-blast-70: #569175;
|
|
13
|
+
--baja-blast-90: #30644b;
|
|
14
|
+
|
|
15
|
+
--baloo-10: #eaefff;
|
|
16
|
+
--baloo-30: #8fa7fb;
|
|
17
|
+
--baloo-50: #305dfb;
|
|
18
|
+
--baloo-70: #0029bb;
|
|
19
|
+
--baloo-90: #00186d;
|
|
20
|
+
|
|
21
|
+
--black-10: rgba(67, 26, 129, 0.02);
|
|
22
|
+
--black-20: rgba(45, 15, 89, 0.05);
|
|
23
|
+
--black-30: rgba(45, 15, 89, 0.1);
|
|
24
|
+
--black-40: rgba(42, 20, 75, 0.15);
|
|
25
|
+
--black-50: rgba(37, 19, 62, 0.25);
|
|
26
|
+
--black-60: rgba(55, 43, 73, 0.5);
|
|
27
|
+
--black-70: rgba(42, 29, 62, 0.7);
|
|
28
|
+
--black-80: rgba(43, 35, 54, 0.8);
|
|
29
|
+
--black-90: rgba(38, 30, 49, 0.9);
|
|
30
|
+
--black-100: rgba(10, 2, 22, 1);
|
|
31
|
+
|
|
32
|
+
--fyre-10: #feecee;
|
|
33
|
+
--fyre-30: #ff929e;
|
|
34
|
+
--fyre-50: #f54456;
|
|
35
|
+
--fyre-70: #b20718;
|
|
36
|
+
--fyre-90: #71000b;
|
|
37
|
+
|
|
38
|
+
--gray-10: #faf9fc;
|
|
39
|
+
--gray-20: #f3f2f7;
|
|
40
|
+
--gray-30: #eae9f0;
|
|
41
|
+
--gray-40: #dedde4;
|
|
42
|
+
--gray-50: #c7c5d0;
|
|
43
|
+
--gray-60: #9b96a4;
|
|
44
|
+
--gray-70: #696273;
|
|
45
|
+
--gray-80: #544e5c;
|
|
46
|
+
--gray-90: #3b3545;
|
|
47
|
+
|
|
48
|
+
--purp-10: #f7f3fd;
|
|
49
|
+
--purp-20: #efe7fc;
|
|
50
|
+
--purp-30: #c9aff3;
|
|
51
|
+
--purp-40: #a871ff;
|
|
52
|
+
--purp-50: #7635de;
|
|
53
|
+
--purp-60: #5f10dd;
|
|
54
|
+
--purp-70: #4300ac;
|
|
55
|
+
--purp-80: #330084;
|
|
56
|
+
--purp-90: #29006b;
|
|
57
|
+
--purp-100: #1e004e;
|
|
58
|
+
|
|
59
|
+
--rosi-10: #fff4fa;
|
|
60
|
+
--rosi-30: #ffcff1;
|
|
61
|
+
--rosi-50: #f98fd1;
|
|
62
|
+
--rosi-70: #a63f80;
|
|
63
|
+
--rosi-90: #5b003b;
|
|
64
|
+
|
|
65
|
+
--serena-10: #f5fced;
|
|
66
|
+
--serena-30: #c5ec9e;
|
|
67
|
+
--serena-50: #91e827;
|
|
68
|
+
--serena-70: #4bad00;
|
|
69
|
+
--serena-90: #2c7600;
|
|
70
|
+
|
|
71
|
+
--tang-10: #fff6e6;
|
|
72
|
+
--tang-30: #ffd289;
|
|
73
|
+
--tang-50: #ff9d00;
|
|
74
|
+
--tang-70: #e57d00;
|
|
75
|
+
--tang-90: #aa5c00;
|
|
76
|
+
|
|
77
|
+
--teal-diamond-10: #e9faf3;
|
|
78
|
+
--teal-diamond-30: #bcebff;
|
|
79
|
+
--teal-diamond-50: #51c2f2;
|
|
80
|
+
--teal-diamond-70: #188bbc;
|
|
81
|
+
--teal-diamond-90: #086891;
|
|
82
|
+
|
|
83
|
+
--white-10: rgba(255, 255, 255, 0.1);
|
|
84
|
+
--white-20: rgba(255, 255, 255, 0.2);
|
|
85
|
+
--white-30: rgba(255, 255, 255, 0.3);
|
|
86
|
+
--white-40: rgba(255, 255, 255, 0.4);
|
|
87
|
+
--white-50: rgba(255, 255, 255, 0.5);
|
|
88
|
+
--white-60: rgba(255, 255, 255, 0.6);
|
|
89
|
+
--white-70: rgba(255, 255, 255, 0.7);
|
|
90
|
+
--white-80: rgba(255, 255, 255, 0.8);
|
|
91
|
+
--white-90: rgba(255, 255, 255, 0.9);
|
|
92
|
+
--white-100: rgba(255, 255, 255, 1);
|
|
93
|
+
|
|
94
|
+
--yella-10: #fffff1;
|
|
95
|
+
--yella-30: #fffcb5;
|
|
96
|
+
--yella-50: #fffa64;
|
|
97
|
+
--yella-70: #d6cd00;
|
|
98
|
+
--yella-90: #938c00;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@layer semantic {
|
|
103
|
+
:root {
|
|
104
|
+
--brand: var(--purp-60);
|
|
105
|
+
|
|
106
|
+
--surface-light-0: var(--white-100);
|
|
107
|
+
|
|
108
|
+
--type-light-high-contrast: var(--black-100);
|
|
109
|
+
--type-light-low-contrast: var(--black-70);
|
|
110
|
+
--type-light-disabled: var(--black-60);
|
|
111
|
+
--type-light-body: var(--black-90);
|
|
112
|
+
|
|
113
|
+
--border-light: var(--gray-40);
|
|
114
|
+
--border-light-blend: var(--black-40);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
:root {
|
|
3
|
+
--base-grid-size: 4px;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@layer semantic {
|
|
8
|
+
:root {
|
|
9
|
+
--size-none: 0;
|
|
10
|
+
--size-xxsmall: calc(var(--base-grid-size) / 2);
|
|
11
|
+
--size-xsmall: calc(var(--base-grid-size));
|
|
12
|
+
--size-small: calc(var(--base-grid-size) * 2);
|
|
13
|
+
--size-medium: calc(var(--base-grid-size) * 3);
|
|
14
|
+
--size-large: calc(var(--base-grid-size) * 4);
|
|
15
|
+
--size-xlarge: calc(var(--base-grid-size) * 6);
|
|
16
|
+
--size-xxlarge: calc(var(--base-grid-size) * 10);
|
|
17
|
+
|
|
18
|
+
--border-width: calc(var(--base-grid-size) / 4);
|
|
19
|
+
--border-width-large: calc(var(--border-width) * 2);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
:root {
|
|
3
|
+
--font-stack: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
4
|
+
Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji',
|
|
5
|
+
'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
6
|
+
--font-weight-light: 350;
|
|
7
|
+
--font-weight-normal: 400;
|
|
8
|
+
--font-weight-heavy: 600;
|
|
9
|
+
|
|
10
|
+
--type-0-font-size: calc(var(--base-grid-size) * 2.5);
|
|
11
|
+
--type-0-line-height-0: calc(var(--base-grid-size) * 3);
|
|
12
|
+
--type-0-line-height-1: calc(var(--base-grid-size) * 4);
|
|
13
|
+
--type-0-line-height-2: calc(var(--base-grid-size) * 5);
|
|
14
|
+
|
|
15
|
+
--type-1-font-size: calc(var(--base-grid-size) * 3);
|
|
16
|
+
--type-1-line-height-0: calc(var(--base-grid-size) * 3);
|
|
17
|
+
--type-1-line-height-1: calc(var(--base-grid-size) * 4);
|
|
18
|
+
--type-1-line-height-2: calc(var(--base-grid-size) * 5);
|
|
19
|
+
|
|
20
|
+
--type-2-font-size: calc(var(--base-grid-size) * 3.5);
|
|
21
|
+
--type-2-line-height-0: calc(var(--base-grid-size) * 4);
|
|
22
|
+
--type-2-line-height-1: calc(var(--base-grid-size) * 5);
|
|
23
|
+
--type-2-line-height-2: calc(var(--base-grid-size) * 6);
|
|
24
|
+
|
|
25
|
+
--type-3-font-size: calc(var(--base-grid-size) * 4);
|
|
26
|
+
--type-3-line-height-0: calc(var(--base-grid-size) * 4);
|
|
27
|
+
--type-3-line-height-1: calc(var(--base-grid-size) * 5);
|
|
28
|
+
--type-3-line-height-2: calc(var(--base-grid-size) * 6);
|
|
29
|
+
|
|
30
|
+
--type-4-font-size: calc(var(--base-grid-size) * 5);
|
|
31
|
+
--type-4-line-height-0: calc(var(--base-grid-size) * 5);
|
|
32
|
+
--type-4-line-height-1: calc(var(--base-grid-size) * 6);
|
|
33
|
+
--type-4-line-height-2: calc(var(--base-grid-size) * 8);
|
|
34
|
+
|
|
35
|
+
--type-5-font-size: calc(var(--base-grid-size) * 6);
|
|
36
|
+
--type-5-line-height-0: calc(var(--base-grid-size) * 6);
|
|
37
|
+
--type-5-line-height-1: calc(var(--base-grid-size) * 7);
|
|
38
|
+
--type-5-line-height-2: calc(var(--base-grid-size) * 9);
|
|
39
|
+
|
|
40
|
+
--type-6-font-size: calc(var(--base-grid-size) * 8);
|
|
41
|
+
--type-6-line-height-0: calc(var(--base-grid-size) * 8);
|
|
42
|
+
--type-6-line-height-1: calc(var(--base-grid-size) * 9);
|
|
43
|
+
--type-6-line-height-2: calc(var(--base-grid-size) * 12);
|
|
44
|
+
|
|
45
|
+
--type-7-font-size: calc(var(--base-grid-size) * 10);
|
|
46
|
+
--type-7-line-height-0: calc(var(--base-grid-size) * 10);
|
|
47
|
+
--type-7-line-height-1: calc(var(--base-grid-size) * 12);
|
|
48
|
+
--type-7-line-height-2: calc(var(--base-grid-size) * 14);
|
|
49
|
+
|
|
50
|
+
--type-8-font-size: calc(var(--base-grid-size) * 12);
|
|
51
|
+
--type-8-line-height-0: calc(var(--base-grid-size) * 12);
|
|
52
|
+
--type-8-line-height-1: calc(var(--base-grid-size) * 14);
|
|
53
|
+
--type-8-line-height-2: calc(var(--base-grid-size) * 16);
|
|
54
|
+
}
|
|
55
|
+
}
|