Skip to content

Commit f025365

Browse files
committed
fix: export namings
1 parent 8884273 commit f025365

File tree

6 files changed

+33
-11
lines changed

6 files changed

+33
-11
lines changed

packages/components/base/src/boolean-input/BooleaInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React, { useEffect, useMemo, useRef } from "react";
33
import classNames from "classnames";
44
import { type FormFieldContextProps, useFormFieldContext } from "../form-field";
55
import { type BooleanInputIconComponent } from "./types";
6-
import { megeRefs } from "@react-ck/react-utils";
6+
import { mergeRefs } from "@react-ck/react-utils";
77

88
/**
99
* Props interface for the BooleanInput component.
@@ -58,7 +58,7 @@ export const BooleaInput = ({
5858
(disabled || formFieldContext?.disabled) && styles.disabled,
5959
)}>
6060
<input
61-
ref={megeRefs(ref, inputRef)}
61+
ref={mergeRefs(ref, inputRef)}
6262
id={computedId}
6363
className={styles.input}
6464
disabled={disabled}

packages/components/base/src/dropdown/Dropdown.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ScrollableContainer } from "../scrollable-container";
55
import { Card } from "../card";
66
import styles from "./index.module.scss";
77
import classNames from "classnames";
8-
import { megeRefs, useOnClickOutside } from "@react-ck/react-utils";
8+
import { mergeRefs, useOnClickOutside } from "@react-ck/react-utils";
99
import { FocusTrap } from "@react-ck/focus-trap";
1010
import { KeyboardControls } from "@react-ck/keyboard-controls";
1111

@@ -141,7 +141,7 @@ export const Dropdown = ({
141141
<Layer elevation="overlay" group="dropdown">
142142
<div
143143
ref={(el) => {
144-
megeRefs(ref, containerRef)(el);
144+
mergeRefs(ref, containerRef)(el);
145145
setFocusWrapperElement(el || undefined);
146146
}}
147147
tabIndex={0}

packages/components/base/src/file-uploader/FileUploader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import classNames from "classnames";
44
import { Text } from "../text";
55
import { Button, type ButtonProps } from "../button";
66
import { readFileList } from "./utils/read-file";
7-
import { megeRefs } from "@react-ck/react-utils";
7+
import { mergeRefs } from "@react-ck/react-utils";
88

99
// TODO: check https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file
1010
// TODO: add size limitation: https://stackoverflow.com/questions/5697605/limit-the-size-of-a-file-upload-html-input-element
@@ -106,7 +106,7 @@ export const FileUploader = ({
106106
)}>
107107
<input
108108
{...inputProps}
109-
ref={megeRefs(inputRef, inputProps?.ref)}
109+
ref={mergeRefs(inputRef, inputProps?.ref)}
110110
type="file"
111111
className={classNames(styles.file, inputProps?.className)}
112112
onChange={handleChange}

packages/components/base/src/select/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Menu } from "../menu";
66
import { Dropdown } from "../dropdown";
77
import { Input } from "../input";
88
import classNames from "classnames";
9-
import { megeRefs, raf } from "@react-ck/react-utils";
9+
import { mergeRefs, raf } from "@react-ck/react-utils";
1010
import { EmptyState } from "../empty-state";
1111
import { getChildrenData, simplifyString, valueAsArray } from "./utils";
1212
import { type SelectProps, type ChangeHandler } from "./types";
@@ -338,7 +338,7 @@ const Select = ({
338338
</div>
339339

340340
<select
341-
ref={megeRefs(ref, selectRef)}
341+
ref={mergeRefs(ref, selectRef)}
342342
id={computedId}
343343
name={selectName}
344344
multiple={selectMultiple}

packages/components/base/src/select/specs/__snapshots__/index.snapshot.test.tsx.snap

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,31 @@ exports[`snapshot Select renders correctly 1`] = `
1010
<div
1111
class="value_slot"
1212
>
13+
<div
14+
class="value_content"
15+
>
16+
<span
17+
class="placeholder"
18+
/>
19+
</div>
1320
<span
14-
class="placeholder"
15-
/>
21+
class="root size_l skin_default"
22+
>
23+
<svg
24+
fill="none"
25+
height="1em"
26+
stroke="currentColor"
27+
stroke-width="0"
28+
viewBox="0 0 24 24"
29+
width="1em"
30+
xmlns="http://www.w3.org/2000/svg"
31+
>
32+
<path
33+
d="M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z"
34+
fill="currentColor"
35+
/>
36+
</svg>
37+
</span>
1638
</div>
1739
<select
1840
class="native_element"

packages/utils/react/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export * from "./click-outside";
88

99
export * from "./children-without-fragments";
1010

11-
export { mergeRefs, mergeRefs as megeRefs } from "./merge-refs";
11+
export * from "./merge-refs";
1212

1313
export * from "./raf";
1414

0 commit comments

Comments
 (0)