InlineLoadingModule,
TagModule,
LinkModule,
- LayerModule
+ LayerModule,
+ ThemeModule
} from 'carbon-components-angular';
import EditIcon from '@carbon/icons/es/edit/20';
import CodeIcon from '@carbon/icons/es/code/16';
InlineLoadingModule,
TagModule,
LinkModule,
- LayerModule
+ LayerModule,
+ ThemeModule
],
declarations: [
SparklineComponent,
*ngIf="expanded && overlay"></div>
<cds-panel [expanded]="expanded"
- [attr.panel-size]="size">
+ [attr.panel-size]="size"
+ [cdsLayer]="layer"
+ [cdsTheme]="theme">
<div>
<cds-icon-button kind="ghost"
class="float-end"
(click)="close()">
<svg cdsIcon="close"></svg>
</cds-icon-button>
- <div class="panel-header"
+ <div class="panel-header cds--type-heading-03"
*ngIf="headerText">
{{ headerText }}
</div>
inline-size: 40rem;
}
+ &[panel-size='xl'] .cds--header-panel--expanded {
+ inline-size: 60rem;
+ }
+
+ &[panel-size='2xl'] .cds--header-panel--expanded {
+ inline-size: 80rem;
+ }
+
.cds--header-panel--expanded {
- background-color: vv.$white;
max-inline-size: 100%;
overflow: hidden;
display: grid;
}
.panel-header {
- padding: layout.$spacing-04 layout.$spacing-04 0 layout.$spacing-04;
+ padding: layout.$spacing-05 layout.$spacing-05 0 layout.$spacing-05;
}
.panel-content {
- overflow: auto;
- padding: 0 layout.$spacing-04 0 layout.$spacing-04;
+ overflow-x: hidden;
+ padding: 0 layout.$spacing-05 0 layout.$spacing-05;
}
.panel-footer {
@Input() expanded = false;
@Input() headerText = '';
@Input() overlay = true;
- @Input() size: 'sm' | 'md' | 'lg' = 'lg';
+ @Input() size: 'sm' | 'md' | 'lg' | 'xl' | '2xl' = 'lg';
+ @Input() layer: number;
+ @Input() theme: string;
@Output() closed = new EventEmitter<void>();