Skip to content

Commit cd3b809

Browse files
authored
fix: sematic typos (#2408)
* fix(docs): sematic -> semantic * fix(stories): sematic -> semantic
1 parent dc91ab8 commit cd3b809

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

apps/docs/components/docs/components/swatch-colors-set.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type SwatchColors = {
2020

2121
type SwatchSetProps = {
2222
colors: SwatchColors[];
23-
isSematic?: boolean;
23+
isSemantic?: boolean;
2424
};
2525

2626
const scaleIndexMap: Record<number, string> = {
@@ -90,7 +90,7 @@ const Swatch = ({color, scale}: {color: string; scale?: string}) => {
9090
);
9191
};
9292

93-
const SematicSwatch = ({
93+
const SemanticSwatch = ({
9494
color,
9595
className,
9696
textClassName,
@@ -139,15 +139,15 @@ const SematicSwatch = ({
139139
);
140140
};
141141

142-
const SwatchSet = ({colors, isSematic = false}: SwatchSetProps) => (
142+
const SwatchSet = ({colors, isSemantic = false}: SwatchSetProps) => (
143143
<div className="flex flex-row flex-wrap items-center justify-center">
144144
{colors.map(({title, items}) => (
145145
<div key={title} className="flex flex-col items-start w-full h-full">
146146
<h2 className="text-xl font-bold text-foreground">{title}</h2>
147147
<div className="flex flex-row flex-wrap items-center justify-start w-full h-full px-4 py-1">
148148
{items.map((c, index) =>
149-
isSematic ? (
150-
<SematicSwatch
149+
isSemantic ? (
150+
<SemanticSwatch
151151
key={`${c.color}-${index}`}
152152
className={c.className}
153153
color={c.color}
@@ -218,7 +218,7 @@ export const CommonColors = () => {
218218
export const SemanticColors = () => {
219219
return (
220220
<SwatchSet
221-
isSematic
221+
isSemantic
222222
colors={[
223223
{
224224
title: "Layout",

packages/core/theme/stories/colors.stories.tsx

+7-7
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type SwatchColors = {
1717

1818
type SwatchSetProps = {
1919
colors: SwatchColors[];
20-
isSematic?: boolean;
20+
isSemantic?: boolean;
2121
};
2222

2323
const Swatch = ({color}: {color: string}) => {
@@ -47,7 +47,7 @@ const Swatch = ({color}: {color: string}) => {
4747
);
4848
};
4949

50-
const SematicSwatch = ({
50+
const SemanticSwatch = ({
5151
color,
5252
className,
5353
textClassName,
@@ -65,15 +65,15 @@ const SematicSwatch = ({
6565
);
6666
};
6767

68-
const SwatchSet = ({colors, isSematic = false}: SwatchSetProps) => (
68+
const SwatchSet = ({colors, isSemantic = false}: SwatchSetProps) => (
6969
<div className="flex flex-row flex-wrap items-center justify-center w-full h-full p-2">
7070
{colors.map(({title, items}) => (
7171
<div key={title} className="flex flex-col items-start w-full h-full">
7272
<h2 className="text-xl font-bold text-foreground">{title}</h2>
7373
<div className="flex flex-row flex-wrap items-center justify-start w-full h-full p-4">
7474
{items.map((c, index) =>
75-
isSematic ? (
76-
<SematicSwatch
75+
isSemantic ? (
76+
<SemanticSwatch
7777
key={`${c.color}-${index}`}
7878
className={c.className}
7979
color={c.color}
@@ -93,7 +93,7 @@ export default {
9393
title: "Foundations/Colors",
9494
component: SwatchSet,
9595
argTypes: {
96-
isSematic: {
96+
isSemantic: {
9797
control: false,
9898
},
9999
},
@@ -146,7 +146,7 @@ export const CommonColors = {
146146

147147
export const SemanticColors = {
148148
args: {
149-
isSematic: true,
149+
isSemantic: true,
150150
colors: [
151151
{
152152
title: "Layout",

0 commit comments

Comments
 (0)