orbiq-neural-ui-kit 1.1.32 → 1.1.33
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.
|
@@ -490,7 +490,7 @@ class NeuralButtonComponent {
|
|
|
490
490
|
const t = this.theme();
|
|
491
491
|
const s = this.size();
|
|
492
492
|
const solidClasses = {
|
|
493
|
-
gray: 'text-white bg-
|
|
493
|
+
gray: 'text-white bg-gray-800 hover:bg-gray-900 active:bg-surface-gray-8',
|
|
494
494
|
blue: 'text-ink-base bg-surface-blue-6 hover:bg-surface-blue-7 active:bg-surface-blue-8',
|
|
495
495
|
green: 'text-ink-base bg-surface-green-7 hover:bg-surface-green-8 active:bg-surface-green-9',
|
|
496
496
|
red: 'text-ink-base dark:text-ink-red-9 bg-surface-red-7 hover:bg-surface-red-8 active:bg-surface-red-9',
|
|
@@ -576,11 +576,11 @@ class NeuralButtonComponent {
|
|
|
576
576
|
}, /* @ts-ignore */
|
|
577
577
|
...(ngDevMode ? [{ debugName: "computedClasses" }] : /* istanbul ignore next */ []));
|
|
578
578
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: NeuralButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
579
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: NeuralButtonComponent, isStandalone: true, selector: "neural-button", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconLeft: { classPropertyName: "iconLeft", publicName: "iconLeft", isSignal: true, isRequired: false, transformFunction: null }, iconRight: { classPropertyName: "iconRight", publicName: "iconRight", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clicked: "clicked" }, ngImport: i0, template: `
|
|
579
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: NeuralButtonComponent, isStandalone: true, selector: "neural-button", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconLeft: { classPropertyName: "iconLeft", publicName: "iconLeft", isSignal: true, isRequired: false, transformFunction: null }, iconRight: { classPropertyName: "iconRight", publicName: "iconRight", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clicked: "clicked" }, host: { styleAttribute: "display: inline-block" }, ngImport: i0, template: `
|
|
580
580
|
<button
|
|
581
581
|
[type]="type()"
|
|
582
582
|
[disabled]="isDisabled()"
|
|
583
|
-
[class]="computedClasses()"
|
|
583
|
+
[class]="'w-full ' + computedClasses()"
|
|
584
584
|
(click)="onClick($event)"
|
|
585
585
|
[attr.aria-busy]="loading() ? 'true' : null"
|
|
586
586
|
>
|
|
@@ -619,11 +619,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
|
|
|
619
619
|
selector: 'neural-button',
|
|
620
620
|
standalone: true,
|
|
621
621
|
imports: [CommonModule, NeuralIconComponent],
|
|
622
|
+
host: { style: 'display: inline-block' },
|
|
622
623
|
template: `
|
|
623
624
|
<button
|
|
624
625
|
[type]="type()"
|
|
625
626
|
[disabled]="isDisabled()"
|
|
626
|
-
[class]="computedClasses()"
|
|
627
|
+
[class]="'w-full ' + computedClasses()"
|
|
627
628
|
(click)="onClick($event)"
|
|
628
629
|
[attr.aria-busy]="loading() ? 'true' : null"
|
|
629
630
|
>
|
|
@@ -8434,8 +8435,12 @@ class NeuralDialogComponent {
|
|
|
8434
8435
|
<div class="relative flex min-h-screen flex-col items-center px-4 py-4 text-center" [class]="dialogPositionClasses()" [style]="dialogPositionStyles()">
|
|
8435
8436
|
<div class="my-8 inline-block w-full transform overflow-hidden rounded-7 bg-surface-elevation-1 text-start align-middle shadow-xl dialog-content focus-visible:outline-none" [class]="sizeClass()">
|
|
8436
8437
|
|
|
8437
|
-
|
|
8438
|
+
<ng-template #defaultContent>
|
|
8438
8439
|
<ng-content></ng-content>
|
|
8440
|
+
</ng-template>
|
|
8441
|
+
|
|
8442
|
+
@if (bare()) {
|
|
8443
|
+
<ng-container *ngTemplateOutlet="defaultContent"></ng-container>
|
|
8439
8444
|
} @else {
|
|
8440
8445
|
<!-- Diseño estándar con Header y Body -->
|
|
8441
8446
|
<div class="bg-surface-elevation-1 px-4 pb-6 pt-5 sm:px-6">
|
|
@@ -8459,7 +8464,7 @@ class NeuralDialogComponent {
|
|
|
8459
8464
|
|
|
8460
8465
|
<div [class]="icon() ? 'ml-14 mt-2' : 'mt-3'">
|
|
8461
8466
|
@if (hasDefaultSlot()) {
|
|
8462
|
-
<ng-
|
|
8467
|
+
<ng-container *ngTemplateOutlet="defaultContent"></ng-container>
|
|
8463
8468
|
} @else if (message()) {
|
|
8464
8469
|
<p class="text-p-base text-ink-gray-7">{{ message() }}</p>
|
|
8465
8470
|
}
|
|
@@ -8488,7 +8493,7 @@ class NeuralDialogComponent {
|
|
|
8488
8493
|
</div>
|
|
8489
8494
|
</div>
|
|
8490
8495
|
}
|
|
8491
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: NeuralButtonComponent, selector: "neural-button", inputs: ["variant", "theme", "size", "type", "disabled", "loading", "icon", "iconLeft", "iconRight", "iconOnly"], outputs: ["clicked"] }] });
|
|
8496
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: NeuralButtonComponent, selector: "neural-button", inputs: ["variant", "theme", "size", "type", "disabled", "loading", "icon", "iconLeft", "iconRight", "iconOnly"], outputs: ["clicked"] }] });
|
|
8492
8497
|
}
|
|
8493
8498
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: NeuralDialogComponent, decorators: [{
|
|
8494
8499
|
type: Component,
|
|
@@ -8504,8 +8509,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
|
|
|
8504
8509
|
<div class="relative flex min-h-screen flex-col items-center px-4 py-4 text-center" [class]="dialogPositionClasses()" [style]="dialogPositionStyles()">
|
|
8505
8510
|
<div class="my-8 inline-block w-full transform overflow-hidden rounded-7 bg-surface-elevation-1 text-start align-middle shadow-xl dialog-content focus-visible:outline-none" [class]="sizeClass()">
|
|
8506
8511
|
|
|
8507
|
-
|
|
8512
|
+
<ng-template #defaultContent>
|
|
8508
8513
|
<ng-content></ng-content>
|
|
8514
|
+
</ng-template>
|
|
8515
|
+
|
|
8516
|
+
@if (bare()) {
|
|
8517
|
+
<ng-container *ngTemplateOutlet="defaultContent"></ng-container>
|
|
8509
8518
|
} @else {
|
|
8510
8519
|
<!-- Diseño estándar con Header y Body -->
|
|
8511
8520
|
<div class="bg-surface-elevation-1 px-4 pb-6 pt-5 sm:px-6">
|
|
@@ -8529,7 +8538,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
|
|
|
8529
8538
|
|
|
8530
8539
|
<div [class]="icon() ? 'ml-14 mt-2' : 'mt-3'">
|
|
8531
8540
|
@if (hasDefaultSlot()) {
|
|
8532
|
-
<ng-
|
|
8541
|
+
<ng-container *ngTemplateOutlet="defaultContent"></ng-container>
|
|
8533
8542
|
} @else if (message()) {
|
|
8534
8543
|
<p class="text-p-base text-ink-gray-7">{{ message() }}</p>
|
|
8535
8544
|
}
|