fix: typos in packages/ui (#19434)

Found via `codespell -q 3 -S "*.svg,./apps/web/public/static/locales,./packages/app-store/stripepayment/lib/currencyOptions.ts,./packages/lib/freeEmailDomainCheck/freeEmailDomains.ts" -L afterall,atleast,datea,fo,incase,ist,nam,notin,optionel,perview,reccuring`
This commit is contained in:
luzpaz authored and GitHub committed 2025-02-21 15:06:49 +00:00
1 parent 2ce1828841
commit 71598a4389
12 files changed
+15 -15

No files matched your search

@@ -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>
+1 -1
View File
@@ -26,7 +26,7 @@ import ToolbarPlugin from "./plugins/ToolbarPlugin";
import "./stylesEditor.css";
/*
Detault toolbar items:
Default toolbar items:
- blockType
- bold
- italic
@@ -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}`}>
@@ -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
@@ -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",
},
+1 -1
View File
@@ -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>
+2 -2
View File
@@ -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"
@@ -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(() => {
@@ -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();
@@ -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
@@ -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>
+1 -1
View File
@@ -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}
/>