Skip to content

Scheduling infrastructure for absolutely everyone.

fix: typos in packages/ui (#19434)

luzpaz71598a4389f1
diff --git a/packages/ui/components/buttonGroup/buttongroup.stories.mdx b/packages/ui/components/buttonGroup/buttongroup.stories.mdx
index c130cc62662..7d83aa9f2c9 100644
--- a/packages/ui/components/buttonGroup/buttongroup.stories.mdx
+++ b/packages/ui/components/buttonGroup/buttongroup.stories.mdx
@@ -31,7 +31,7 @@ Button group enables multiple buttons to be combined into a single unit. It offe
footNote={
<ul>
<li>
- Seperated: In general, seperated button group style can be included in container such as card, modal,
+ Separated: In general, separated button group style can be included in container such as card, modal,
and page.
</li>
<li>Combined: Combined button group can be used standalone e.g. mini toggles for calendars</li>
diff --git a/packages/ui/components/editor/Editor.tsx b/packages/ui/components/editor/Editor.tsx
index d73384b8f34..66c88c52749 100644
--- a/packages/ui/components/editor/Editor.tsx
+++ b/packages/ui/components/editor/Editor.tsx
@@ -26,7 +26,7 @@ import ToolbarPlugin from "./plugins/ToolbarPlugin";
import "./stylesEditor.css";
/*
- Detault toolbar items:
+ Default toolbar items:
- blockType
- bold
- italic
diff --git a/packages/ui/components/form/select/components.tsx b/packages/ui/components/form/select/components.tsx
index 51a3748677b..c68d248c06a 100644
--- a/packages/ui/components/form/select/components.tsx
+++ b/packages/ui/components/form/select/components.tsx
@@ -17,7 +17,7 @@ export const InputComponent = <
}: InputProps<Option, IsMulti, Group>) => {
return (
<reactSelectComponents.Input
- // disables our default form focus hightlight on the react-select input element
+ // disables our default form focus highlight on the react-select input element
inputClassName={classNames(
"focus:ring-0 focus:ring-offset-0 !text-default dark:!text-white",
inputClassName
@@ -41,7 +41,7 @@ export const OptionComponent = <
...props
}: OptionProps<Option, IsMulti, Group>) => {
return (
- // This gets styled in the select classNames prop now - handles overrides with styles vs className here doesnt
+ // This gets styled in the select classNames prop now - handles overrides with styles vs className here doesn't
<reactSelectComponents.Option {...props}>
<div className="flex">
<span className="mr-auto" data-testid={`select-option-${(props as unknown as ExtendedOption).value}`}>
diff --git a/packages/ui/components/form/select/select.stories.mdx b/packages/ui/components/form/select/select.stories.mdx
index ae9d9f640c6..ec316f15b99 100644
--- a/packages/ui/components/form/select/select.stories.mdx
+++ b/packages/ui/components/form/select/select.stories.mdx
@@ -17,7 +17,7 @@ import { SelectField } from "./Select";
## Definition
-Dropdown fields allow users to input existing options that is preset by the deisgner/ developer. It can be just one choice per field, or they might be multiple choices depends on the circumstances.
+Dropdown fields allow users to input existing options that is preset by the designer/developer. It can be just one choice per field, or they might be multiple choices depends on the circumstances.
## Structure
diff --git a/packages/ui/components/form/toggleGroup/toggleGroup.stories.mdx b/packages/ui/components/form/toggleGroup/toggleGroup.stories.mdx
index 223e04b009d..39a9108fbf4 100644
--- a/packages/ui/components/form/toggleGroup/toggleGroup.stories.mdx
+++ b/packages/ui/components/form/toggleGroup/toggleGroup.stories.mdx
@@ -73,7 +73,7 @@ The `ToggleGroup` component is used to create a group of toggle items with optio
type: "text",
},
},
- lable: {
+ label: {
control: {
type: "text",
},
diff --git a/packages/ui/components/icon/Icon.tsx b/packages/ui/components/icon/Icon.tsx
index 5dbcdb201ed..ef1aa296813 100644
--- a/packages/ui/components/icon/Icon.tsx
+++ b/packages/ui/components/icon/Icon.tsx
@@ -17,7 +17,7 @@ function Icon({
<svg
height={size}
width={size}
- // Fill are inherited so we transparent by default. Can be overiden tailwind.
+ // Fill are inherited so we transparent by default. Can be overridden tailwind.
className={cn("fill-transparent", className)}
{...props}
aria-hidden>
diff --git a/packages/ui/components/list/List.tsx b/packages/ui/components/list/List.tsx
index 85e652e302e..dffc0370532 100644
--- a/packages/ui/components/list/List.tsx
+++ b/packages/ui/components/list/List.tsx
@@ -19,7 +19,7 @@ export function List(props: ListProps) {
{...props}
className={classNames(
"mx-0 rounded-sm sm:overflow-hidden ",
- // Add rounded top and bottome if roundContainer is true
+ // Add rounded top and bottom if roundContainer is true
props.roundContainer && "[&>*:first-child]:rounded-t-md [&>*:last-child]:rounded-b-md ",
!props.noBorderTreatment &&
"border-subtle divide-subtle divide-y rounded-md border border-l border-r ",
@@ -46,7 +46,7 @@ export function ListItem(props: ListItemProps) {
className: classNames(
"items-center bg-default min-w-0 flex-1 flex border-neutral-200 p-4 sm:mx-0 md:border md:p-4 xl:mt-0 border-subtle",
expanded ? "my-2 border" : "border -mb-px last:mb-0",
- // Pass rounded false to not round the corners -> Usefull when used in list we can use roundedContainer to create the right design
+ // Pass rounded false to not round the corners -> Useful when used in list we can use roundedContainer to create the right design
rounded ? "rounded-md" : "rounded-none",
props.className,
(props.onClick || href) && "hover:bg-muted"
diff --git a/packages/ui/components/popover/AnimatedPopover.tsx b/packages/ui/components/popover/AnimatedPopover.tsx
index 1b20f7f142d..f81778ba2b3 100644
--- a/packages/ui/components/popover/AnimatedPopover.tsx
+++ b/packages/ui/components/popover/AnimatedPopover.tsx
@@ -28,7 +28,7 @@ export const AnimatedPopover = ({
}) => {
const [open, setOpen] = React.useState(defaultOpen ?? false);
const ref = React.useRef<HTMLButtonElement>(null);
- // calculate which aligment to open the popover with based on which half of the screen it is on (left or right)
+ // calculate which alignment to open the popover with based on which half of the screen it's on (left or right)
const [align, setAlign] = React.useState<"start" | "end">("start");
React.useLayoutEffect(() => {
diff --git a/packages/ui/components/popover/MeetingTimeInTimezones.tsx b/packages/ui/components/popover/MeetingTimeInTimezones.tsx
index ad849ccd919..810006ae6a9 100644
--- a/packages/ui/components/popover/MeetingTimeInTimezones.tsx
+++ b/packages/ui/components/popover/MeetingTimeInTimezones.tsx
@@ -99,7 +99,7 @@ MeetingTimeInTimezones.displayName = "MeetingTimeInTimezones";
// Prevents propagation so the click on eg booking overview won't
// bubble to the row of the table, causing a navigation to the
-// detaill page.
+// detail page.
const preventBubbling = (event: React.MouseEvent) => {
event.stopPropagation();
event.nativeEvent.preventDefault();
diff --git a/packages/ui/components/sheet/sheet.stories.mdx b/packages/ui/components/sheet/sheet.stories.mdx
index a20f7467eea..dc92e316fe2 100644
--- a/packages/ui/components/sheet/sheet.stories.mdx
+++ b/packages/ui/components/sheet/sheet.stories.mdx
@@ -29,7 +29,7 @@ import {
## Definition
-A sheet is a container that can be used to display content on differnt sides of the current page.
+A sheet is a container that can be used to display content on different sides of the current page.
## Structure
diff --git a/packages/ui/components/top-banner/topbanner.stories.mdx b/packages/ui/components/top-banner/topbanner.stories.mdx
index 99d36acb6a9..a8091923b25 100644
--- a/packages/ui/components/top-banner/topbanner.stories.mdx
+++ b/packages/ui/components/top-banner/topbanner.stories.mdx
@@ -53,7 +53,7 @@ Each toast has a state to represent neutral, positive or negative responses.
</button>
}
variant="warning"
- text="An app wide warning is occuring that should be resolved."
+ text="An app wide warning is occurring that should be resolved."
/>
</Example>
<Example title="Error" isFullWidth={true}>
@@ -68,7 +68,7 @@ Each toast has a state to represent neutral, positive or negative responses.
</button>
}
variant="error"
- text="A major error is occuring that must be resolved."
+ text="A major error is occurring that must be resolved."
/>
</Example>
</Examples>
diff --git a/packages/ui/form/Select.tsx b/packages/ui/form/Select.tsx
index 2695ec31ecd..a9cd7add686 100644
--- a/packages/ui/form/Select.tsx
+++ b/packages/ui/form/Select.tsx
@@ -15,7 +15,7 @@ export const InputComponent = <Option, IsMulti extends boolean, Group extends Gr
}: InputProps<Option, IsMulti, Group>) => {
return (
<components.Input
- // disables our default form focus hightlight on the react-select input element
+ // disables our default form focus highlight on the react-select input element
inputClassName={classNames("focus:ring-0 focus:ring-offset-0", inputClassName)}
{...props}
/>