mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
[deps] UIF: Update @compodoc/compodoc to v1.1.32 and fix icon button property (#17557)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Vicki League <vleague@bitwarden.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<span class="tw-relative tw-inline-block tw-leading-[0px]">
|
<span class="tw-relative tw-inline-block tw-leading-[0px]">
|
||||||
<span class="tw-inline-block tw-leading-[0px]" [ngClass]="{ 'tw-invisible': showLoadingStyle() }">
|
<span class="tw-inline-block tw-leading-[0px]" [ngClass]="{ 'tw-invisible': showLoadingStyle() }">
|
||||||
<i class="bwi" [ngClass]="iconClass" aria-hidden="true"></i>
|
<i class="bwi" [ngClass]="iconClass()" aria-hidden="true"></i>
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
class="tw-absolute tw-inset-0 tw-flex tw-items-center tw-justify-center"
|
class="tw-absolute tw-inset-0 tw-flex tw-items-center tw-justify-center"
|
||||||
|
|||||||
@@ -20,7 +20,16 @@ import { SpinnerComponent } from "../spinner";
|
|||||||
import { TooltipDirective } from "../tooltip";
|
import { TooltipDirective } from "../tooltip";
|
||||||
import { ariaDisableElement } from "../utils";
|
import { ariaDisableElement } from "../utils";
|
||||||
|
|
||||||
export type IconButtonType = "primary" | "danger" | "contrast" | "main" | "muted" | "nav-contrast";
|
export const IconButtonTypes = [
|
||||||
|
"primary",
|
||||||
|
"danger",
|
||||||
|
"contrast",
|
||||||
|
"main",
|
||||||
|
"muted",
|
||||||
|
"nav-contrast",
|
||||||
|
] as const;
|
||||||
|
|
||||||
|
export type IconButtonType = (typeof IconButtonTypes)[number];
|
||||||
|
|
||||||
const focusRing = [
|
const focusRing = [
|
||||||
// Workaround for box-shadow with transparent offset issue:
|
// Workaround for box-shadow with transparent offset issue:
|
||||||
@@ -148,9 +157,7 @@ export class BitIconButtonComponent implements ButtonLikeAbstraction, FocusableE
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
get iconClass() {
|
readonly iconClass = computed(() => [this.icon(), "!tw-m-0"]);
|
||||||
return [this.icon(), "!tw-m-0"];
|
|
||||||
}
|
|
||||||
|
|
||||||
protected readonly disabledAttr = computed(() => {
|
protected readonly disabledAttr = computed(() => {
|
||||||
const disabled = this.disabled() != null && this.disabled() !== false;
|
const disabled = this.disabled() != null && this.disabled() !== false;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.servic
|
|||||||
import { formatArgsForCodeSnippet } from "../../../../.storybook/format-args-for-code-snippet";
|
import { formatArgsForCodeSnippet } from "../../../../.storybook/format-args-for-code-snippet";
|
||||||
import { I18nMockService } from "../utils";
|
import { I18nMockService } from "../utils";
|
||||||
|
|
||||||
import { BitIconButtonComponent } from "./icon-button.component";
|
import { BitIconButtonComponent, IconButtonTypes } from "./icon-button.component";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: "Component Library/Icon Button",
|
title: "Component Library/Icon Button",
|
||||||
@@ -30,7 +30,7 @@ export default {
|
|||||||
},
|
},
|
||||||
argTypes: {
|
argTypes: {
|
||||||
buttonType: {
|
buttonType: {
|
||||||
options: ["primary", "secondary", "danger", "unstyled", "contrast", "main", "muted", "light"],
|
options: IconButtonTypes,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
parameters: {
|
parameters: {
|
||||||
|
|||||||
964
package-lock.json
generated
964
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -44,7 +44,7 @@
|
|||||||
"@angular/compiler-cli": "20.3.15",
|
"@angular/compiler-cli": "20.3.15",
|
||||||
"@babel/core": "7.28.5",
|
"@babel/core": "7.28.5",
|
||||||
"@babel/preset-env": "7.28.5",
|
"@babel/preset-env": "7.28.5",
|
||||||
"@compodoc/compodoc": "1.1.26",
|
"@compodoc/compodoc": "1.1.32",
|
||||||
"@electron/notarize": "3.0.1",
|
"@electron/notarize": "3.0.1",
|
||||||
"@electron/rebuild": "4.0.1",
|
"@electron/rebuild": "4.0.1",
|
||||||
"@eslint/compat": "2.0.0",
|
"@eslint/compat": "2.0.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user