Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
manual-register tagName made readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
vikas-cldcvr committed Apr 29, 2024
1 parent 4a4afaa commit 0b7c1d2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const sizes = ["medium", "small"] as const;

export type FBreadCrumbsProp = { tabIndex: number; title: string; icon?: string };
export type FBreadcrumbs = FBreadCrumbsProp[];
export type FBreadcrumbSize = typeof sizes[number];
export type FBreadcrumbVariant = typeof variants[number];
export type FBreadcrumbSize = (typeof sizes)[number];
export type FBreadcrumbVariant = (typeof variants)[number];

export class FBreadcrumb extends FRoot {
static readonly tagName = "f-breadcrumb";
Expand Down
8 changes: 4 additions & 4 deletions packages/flow-core/src/components/f-countdown/f-countdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const sizes = ["large", "medium", "small", "x-small"] as const;
const categories = ["fill", "outline"] as const;
const placements = ["left", "right", "bottom", "top", "none"] as const;

export type FCountdownStateProp = typeof states[number];
export type FCountdownCategoryProp = typeof categories[number];
export type FCountdownSizesProp = typeof sizes[number];
export type FCountdownLabelProp = typeof placements[number];
export type FCountdownStateProp = (typeof states)[number];
export type FCountdownCategoryProp = (typeof categories)[number];
export type FCountdownSizesProp = (typeof sizes)[number];
export type FCountdownLabelProp = (typeof placements)[number];
export type FCountdownDuration = number | string;

export class FCountdown extends FRoot {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ const variants = ["round", "curved", "block"] as const;
const categories = ["fill", "outline", "transparent", "packed"] as const;
const sizes = ["large", "medium", "small", "x-small"] as const;

export type FIconButtonVariant = typeof variants[number];
export type FIconButtonType = typeof categories[number];
export type FIconButtonSize = typeof sizes[number];
export type FIconButtonVariant = (typeof variants)[number];
export type FIconButtonType = (typeof categories)[number];
export type FIconButtonSize = (typeof sizes)[number];
export type FIconButtonState =
| "primary"
| "danger"
Expand Down
8 changes: 4 additions & 4 deletions packages/flow-core/src/components/f-pictogram/f-pictogram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ const category = ["fill", "outline"] as const;
const sizes = ["x-large", "large", "medium", "small"] as const;
const states = ["primary", "danger", "warning", "success", "default", "inherit"] as const;

export type FPictogramVariant = typeof variants[number];
export type FPictogramCategory = typeof category[number];
export type FPictogramSize = typeof sizes[number];
export type FPictogramState = typeof states[number];
export type FPictogramVariant = (typeof variants)[number];
export type FPictogramCategory = (typeof category)[number];
export type FPictogramSize = (typeof sizes)[number];
export type FPictogramState = (typeof states)[number];

let colors = [
"#FFB900",
Expand Down

0 comments on commit 0b7c1d2

Please sign in to comment.