@arclux/arc-ui-angular 1.0.0 → 1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arclux/arc-ui-angular",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "Angular standalone component wrappers for ARC UI Web Components.",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -44,7 +44,7 @@
44
44
  "@angular/core": ">=17.0.0"
45
45
  },
46
46
  "dependencies": {
47
- "@arclux/arc-ui": "1.0.0"
47
+ "@arclux/arc-ui": "1.2.0"
48
48
  },
49
49
  "license": "MIT",
50
50
  "keywords": [
@@ -7,8 +7,9 @@ import '@arclux/arc-ui';
7
7
  selector: 'arc-card',
8
8
  standalone: true,
9
9
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
10
- template: `<arc-card [attr.href]="href"><ng-content /></arc-card>`,
10
+ template: `<arc-card [attr.href]="href" [attr._hasFooter]="_hasFooter"><ng-content /></arc-card>`,
11
11
  })
12
12
  export class Card {
13
13
  @Input() href: string = '';
14
+ @Input() _hasFooter: string = false;
14
15
  }
@@ -0,0 +1,16 @@
1
+ // Auto-generated by @arclux/prism — do not edit manually
2
+
3
+ import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
4
+ import '@arclux/arc-ui';
5
+
6
+ @Component({
7
+ selector: 'arc-cta-banner',
8
+ standalone: true,
9
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
10
+ template: `<arc-cta-banner [attr.eyebrow]="eyebrow" [attr.headline]="headline" [nogradient]="nogradient"><ng-content /></arc-cta-banner>`,
11
+ })
12
+ export class CtaBanner {
13
+ @Input() eyebrow: string = '';
14
+ @Input() headline: string = '';
15
+ @Input() nogradient: boolean = false;
16
+ }
@@ -7,11 +7,12 @@ import '@arclux/arc-ui';
7
7
  selector: 'arc-tag',
8
8
  standalone: true,
9
9
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
10
- template: `<arc-tag [attr.variant]="variant" [removable]="removable" [disabled]="disabled" (arc-remove)="arcRemove.emit($event)"><ng-content /></arc-tag>`,
10
+ template: `<arc-tag [attr.variant]="variant" [removable]="removable" [disabled]="disabled" [attr.color]="color" (arc-remove)="arcRemove.emit($event)"><ng-content /></arc-tag>`,
11
11
  })
12
12
  export class Tag {
13
13
  @Input() variant: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' = 'default';
14
14
  @Input() removable: boolean = false;
15
15
  @Input() disabled: boolean = false;
16
+ @Input() color: string = '';
16
17
  @Output() arcRemove = new EventEmitter<CustomEvent>();
17
18
  }
@@ -35,3 +35,4 @@ export { DataTable } from './DataTable.js';
35
35
  export { InfiniteScroll } from './InfiniteScroll.js';
36
36
  export { Tag } from './Tag.js';
37
37
  export { Truncate } from './Truncate.js';
38
+ export { CtaBanner } from './CtaBanner.js';
package/src/index.ts CHANGED
@@ -114,3 +114,4 @@ export { Truncate } from './reactive/Truncate.js';
114
114
  export { MenuDivider } from './shared/MenuDivider.js';
115
115
  export { MenuItem } from './shared/MenuItem.js';
116
116
  export { Option } from './shared/Option.js';
117
+ export { CtaBanner } from './content/CtaBanner.js';
@@ -7,7 +7,7 @@ import '@arclux/arc-ui';
7
7
  selector: 'arc-button',
8
8
  standalone: true,
9
9
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
10
- template: `<arc-button [attr.variant]="variant" [attr.size]="size" [attr.href]="href" [disabled]="disabled" [attr.type]="type"><ng-content /></arc-button>`,
10
+ template: `<arc-button [attr.variant]="variant" [attr.size]="size" [attr.href]="href" [disabled]="disabled" [attr.type]="type" [attr._hasPrefix]="_hasPrefix" [attr._hasSuffix]="_hasSuffix"><ng-content /></arc-button>`,
11
11
  })
12
12
  export class Button {
13
13
  @Input() variant: 'primary' | 'secondary' | 'ghost' = 'primary';
@@ -15,4 +15,6 @@ export class Button {
15
15
  @Input() href: string = '';
16
16
  @Input() disabled: boolean = false;
17
17
  @Input() type: string = 'button';
18
+ @Input() _hasPrefix: string = false;
19
+ @Input() _hasSuffix: string = false;
18
20
  }
package/src/input/Form.ts CHANGED
@@ -7,12 +7,17 @@ import '@arclux/arc-ui';
7
7
  selector: 'arc-form',
8
8
  standalone: true,
9
9
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
10
- template: `<arc-form [attr.action]="action" [attr.method]="method" [novalidate]="novalidate" (arc-invalid)="arcInvalid.emit($event)" (arc-submit)="arcSubmit.emit($event)"><ng-content /></arc-form>`,
10
+ template: `<arc-form [attr.action]="action" [attr.method]="method" [novalidate]="novalidate" [loading]="loading" [disabled]="disabled" [errorSummary]="errorSummary" [attr._errors]="_errors" (arc-invalid)="arcInvalid.emit($event)" (arc-submit)="arcSubmit.emit($event)" (arc-reset)="arcReset.emit($event)"><ng-content /></arc-form>`,
11
11
  })
12
12
  export class Form {
13
13
  @Input() action: string = '';
14
14
  @Input() method: string = '';
15
15
  @Input() novalidate: boolean = false;
16
+ @Input() loading: boolean = false;
17
+ @Input() disabled: boolean = false;
18
+ @Input() errorSummary: boolean = true;
19
+ @Input() _errors: string = [];
16
20
  @Output() arcInvalid = new EventEmitter<CustomEvent>();
17
21
  @Output() arcSubmit = new EventEmitter<CustomEvent>();
22
+ @Output() arcReset = new EventEmitter<CustomEvent>();
18
23
  }
@@ -7,7 +7,7 @@ import '@arclux/arc-ui';
7
7
  selector: 'arc-input',
8
8
  standalone: true,
9
9
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
10
- template: `<arc-input [attr.type]="type" [attr.name]="name" [attr.label]="label" [attr.placeholder]="placeholder" [attr.value]="value" [disabled]="disabled" [required]="required" [multiline]="multiline" [attr.rows]="rows" (arc-input)="arcInput.emit($event)" (arc-change)="arcChange.emit($event)"><ng-content /></arc-input>`,
10
+ template: `<arc-input [attr.type]="type" [attr.name]="name" [attr.label]="label" [attr.placeholder]="placeholder" [attr.value]="value" [disabled]="disabled" [required]="required" [multiline]="multiline" [attr.rows]="rows" [attr._hasPrefix]="_hasPrefix" [attr._hasSuffix]="_hasSuffix" (arc-input)="arcInput.emit($event)" (arc-change)="arcChange.emit($event)"><ng-content /></arc-input>`,
11
11
  })
12
12
  export class Input {
13
13
  @Input() type: string = 'text';
@@ -19,6 +19,8 @@ export class Input {
19
19
  @Input() required: boolean = false;
20
20
  @Input() multiline: boolean = false;
21
21
  @Input() rows: number = 5;
22
+ @Input() _hasPrefix: string = false;
23
+ @Input() _hasSuffix: string = false;
22
24
  @Output() arcInput = new EventEmitter<CustomEvent>();
23
25
  @Output() arcChange = new EventEmitter<CustomEvent>();
24
26
  }
@@ -7,9 +7,10 @@ import '@arclux/arc-ui';
7
7
  selector: 'arc-page-header',
8
8
  standalone: true,
9
9
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
10
- template: `<arc-page-header [attr.heading]="heading" [attr.description]="description"><ng-content /></arc-page-header>`,
10
+ template: `<arc-page-header [attr.heading]="heading" [attr.description]="description" [border]="border"><ng-content /></arc-page-header>`,
11
11
  })
12
12
  export class PageHeader {
13
13
  @Input() heading: string = '';
14
14
  @Input() description: string = '';
15
+ @Input() border: boolean = false;
15
16
  }
@@ -7,10 +7,11 @@ import '@arclux/arc-ui';
7
7
  selector: 'arc-nav-item',
8
8
  standalone: true,
9
9
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
10
- template: `<arc-nav-item [attr.href]="href" [active]="active" [attr.description]="description"><ng-content /></arc-nav-item>`,
10
+ template: `<arc-nav-item [attr.href]="href" [active]="active" [muted]="muted" [attr.description]="description"><ng-content /></arc-nav-item>`,
11
11
  })
12
12
  export class NavItem {
13
13
  @Input() href: string = '';
14
14
  @Input() active: boolean = false;
15
+ @Input() muted: boolean = false;
15
16
  @Input() description: string = '';
16
17
  }