@rivet-health/design-system 40.0.0 → 40.2.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.
@@ -11,14 +11,16 @@ export declare class DateComponent extends InputLabelComponent {
11
11
  placeholder: string;
12
12
  disabled: boolean;
13
13
  size: DateComponent.Size;
14
+ showClearButton: boolean;
14
15
  headerTemplate?: TemplateRef<void>;
15
16
  activeYearMonth: Date;
16
17
  readonly open$: BehaviorSubject<boolean>;
17
18
  set open(v: boolean);
18
19
  get open(): boolean;
19
- valueChange: EventEmitter<Date>;
20
+ valueChange: EventEmitter<Date | undefined>;
21
+ clearValue(): void;
20
22
  static ɵfac: i0.ɵɵFactoryDeclaration<DateComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<DateComponent, "riv-date", never, { "min": "min"; "max": "max"; "value": "value"; "placeholder": "placeholder"; "disabled": "disabled"; "size": "size"; "open": "open"; }, { "valueChange": "valueChange"; }, ["headerTemplate"], never, false>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateComponent, "riv-date", never, { "min": "min"; "max": "max"; "value": "value"; "placeholder": "placeholder"; "disabled": "disabled"; "size": "size"; "showClearButton": "showClearButton"; "open": "open"; }, { "valueChange": "valueChange"; }, ["headerTemplate"], never, false>;
22
24
  }
23
25
  export declare namespace DateComponent {
24
26
  const Sizes: readonly ["xsmall", "small", "medium", "large", "xlarge"];
@@ -3,9 +3,11 @@ import * as i0 from "@angular/core";
3
3
  export declare class DialogComponent {
4
4
  title?: string;
5
5
  minWidth?: string;
6
+ customBody: boolean;
7
+ customFooter: boolean;
6
8
  close: EventEmitter<void>;
7
9
  handleKeydown(event: KeyboardEvent): void;
8
10
  readonly hook: string;
9
11
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "riv-dialog", never, { "title": "title"; "minWidth": "minWidth"; }, { "close": "close"; }, never, ["*", "footer"], false>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "riv-dialog", never, { "title": "title"; "minWidth": "minWidth"; "customBody": "customBody"; "customFooter": "customFooter"; }, { "close": "close"; }, never, ["*", "footer"], false>;
11
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivet-health/design-system",
3
- "version": "40.0.0",
3
+ "version": "40.2.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": ">=14.0.0",
6
6
  "@angular/common": ">=14.0.0",
package/styles/global.css CHANGED
@@ -39,6 +39,20 @@
39
39
  padding: 0;
40
40
  }
41
41
 
42
+ /* Default layout for the <footer> projected into riv-dialog's footer slot.
43
+ Defined here (rather than in dialog.component.css) so it reaches the
44
+ projected element, which keeps its parent component's view encapsulation.
45
+ The selector targets the .riv-dialog-footer wrapper instead of `riv-dialog`
46
+ because riv-modal teleports the dialog subtree out of the <riv-dialog> host
47
+ (via the *riv-overlay outlet), so the footer is not a DOM descendant of
48
+ <riv-dialog> at runtime. */
49
+ .riv-dialog-footer:not(.custom) > footer {
50
+ padding: var(--size-medium);
51
+ display: flex;
52
+ justify-content: flex-end;
53
+ gap: var(--size-small);
54
+ }
55
+
42
56
  /* Divider utilities */
43
57
  .riv-divider {
44
58
  width: 100%;