Skip to content

Commit b8ad064

Browse files
committed
refactor: type-generation-and-styles
1 parent 32cc28e commit b8ad064

File tree

21 files changed

+55
-36
lines changed

21 files changed

+55
-36
lines changed

src/lib/accordion/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface AccordionProps {
1818
const DefaultTitle: React.FC<{ item: AccordionItem }> = ({ item }) => (
1919
<>
2020
{item.icon ?? (item.Icon && <item.Icon />)}
21-
<p className="w-fit text-center font-semibold">{item.title}</p>
21+
<p className="w-fit text-center text-base font-semibold">{item.title}</p>
2222
</>
2323
);
2424

src/lib/breadcrumb.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function Breadcrumb({
4545
{items.map(({ text, value }, i) =>
4646
i === items.length - 1 ? (
4747
<Content
48-
className="text-klerosUIComponentsPrimaryText font-semibold"
48+
className="text-klerosUIComponentsPrimaryText text-base font-semibold"
4949
{...{ variant }}
5050
key={i}
5151
>

src/lib/button/ButtonText.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const ButtonText: React.FC<
1010
<p
1111
className={cn(
1212
"button-text",
13-
"text-klerosUIComponentsWhiteBackground text-center leading-[22px] font-semibold whitespace-pre",
13+
"text-klerosUIComponentsWhiteBackground text-center text-base leading-[22px] font-semibold whitespace-pre",
1414
isLoading && ["invisible"],
1515
isSecondary && ["text-klerosUIComponentsPrimaryBlue"],
1616
isDisabled && ["text-klerosUIComponentsStroke"],

src/lib/display/small.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function DisplaySmall({
2727
{Icon && <Icon className="mr-2 max-h-4 max-w-4" />}
2828
<h2
2929
aria-labelledby={label}
30-
className="text-klerosUIComponentsPrimaryText font-semibold"
30+
className="text-klerosUIComponentsPrimaryText text-base font-semibold"
3131
>
3232
{text}
3333
</h2>

src/lib/dropdown/cascader/index.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,17 @@ function DropdownCascader({
3636
className={cn("relative flex flex-col gap-1", className)}
3737
{...props}
3838
{...{ defaultSelectedKey, selectedKey, disabledKeys }}
39+
aria-label={label ?? "Select"}
3940
>
4041
{({ isOpen }) => (
4142
<>
42-
<Label className={clsx("text-klerosUIComponentsPrimaryText text-sm")}>
43-
{label}
44-
</Label>
43+
{label && (
44+
<Label
45+
className={clsx("text-klerosUIComponentsPrimaryText text-sm")}
46+
>
47+
{label}
48+
</Label>
49+
)}
4550
<DropdownButton {...{ placeholder }} />
4651
<FieldError className="text-klerosUIComponentsError text-sm" />
4752
<DropdownContainer

src/lib/dropdown/select/index.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,17 @@ function DropdownSelect({
4848
className={cn("flex flex-col gap-1", className)}
4949
{...props}
5050
onSelectionChange={handleSelection}
51+
aria-label={label ?? "Select"}
5152
>
5253
{({ isOpen }) => (
5354
<>
54-
<Label className={clsx("text-klerosUIComponentsPrimaryText text-sm")}>
55-
{label}
56-
</Label>
55+
{label && (
56+
<Label
57+
className={clsx("text-klerosUIComponentsPrimaryText text-sm")}
58+
>
59+
{label}
60+
</Label>
61+
)}
5762
{simpleButton ? (
5863
<SimpleButton {...{ isOpen, placeholder }} small={smallButton} />
5964
) : (

src/lib/form/bignumber-field/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function BigNumberField({
6767
{...inputProps}
6868
className={cn(
6969
"hover-short-transition bg-klerosUIComponentsWhiteBackground size-full",
70-
"rounded-base border-klerosUIComponentsStroke text-klerosUIComponentsPrimaryText border",
70+
"rounded-base border-klerosUIComponentsStroke text-klerosUIComponentsPrimaryText border text-base",
7171
"placeholder:text-klerosUIComponentsSecondaryText placeholder:opacity-50",
7272
"focus:border-klerosUIComponentsPrimaryBlue focus:shadow-input focus:rounded-base focus:outline-none",
7373
"focus:invalid:border-klerosUIComponentsError focus:invalid:shadow-klerosUIComponentsError",

src/lib/form/datepicker/display-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const DisplayButton: React.FC = () => {
3030
<DateSegment
3131
className={({ isPlaceholder }) =>
3232
cn(
33-
"text-klerosUIComponentsPrimaryText cursor-pointer px-0.5",
33+
"text-klerosUIComponentsPrimaryText cursor-pointer px-0.5 text-base",
3434
isPlaceholder && "text-klerosUIComponentsSecondaryText",
3535
"focus:text-klerosUIComponentsSecondaryBlue focus:outline-none",
3636
"type-literal:px-0",

src/lib/form/file-uploader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function FileUploader({
126126
<small
127127
id="dropzone-label"
128128
className={cn(
129-
"text-klerosUIComponentsSecondaryText relative -top-0.25 text-justify",
129+
"text-klerosUIComponentsSecondaryText relative -top-0.25 text-justify text-base",
130130
{
131131
"text-klerosUIComponentsSuccess": variant === "success",
132132
"text-klerosUIComponentsError": variant === "error",

src/lib/form/number-field.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function NumberField({
6262
{...inputProps}
6363
className={cn(
6464
"hover-medium-blue hover-short-transition bg-klerosUIComponentsWhiteBackground size-full",
65-
"rounded-base border-klerosUIComponentsStroke text-klerosUIComponentsPrimaryText border",
65+
"rounded-base border-klerosUIComponentsStroke text-klerosUIComponentsPrimaryText border text-base",
6666
"placeholder:text-klerosUIComponentsSecondaryText placeholder:opacity-50",
6767
"focus:border-klerosUIComponentsPrimaryBlue focus:shadow-input focus:rounded-base focus:outline-none",
6868
"focus:invalid:border-klerosUIComponentsError focus:invalid:shadow-klerosUIComponentsError",

0 commit comments

Comments
 (0)