cekat-ui 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.mjs +25 -15
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -221,7 +221,8 @@ export declare type ButtonCompound = React_2.ForwardRefExoticComponent<ButtonPro
|
|
|
221
221
|
/** Figma Buttons/Button icon box: xs 18 · sm/md 20 · lg 24 · xl/2xl 28. */
|
|
222
222
|
export declare const buttonIconSizePx: Record<ButtonSize, number>;
|
|
223
223
|
|
|
224
|
-
|
|
224
|
+
/** Retain native button props supported before the React Aria migration. */
|
|
225
|
+
export declare interface ButtonProps extends Omit<ButtonProps_2, keyof NativeButtonProps>, NativeButtonProps {
|
|
225
226
|
tone?: ButtonTone;
|
|
226
227
|
size?: ButtonSize;
|
|
227
228
|
variant?: ButtonVariant;
|
|
@@ -492,6 +493,8 @@ declare interface MultiSelectOption {
|
|
|
492
493
|
avatar?: string;
|
|
493
494
|
}
|
|
494
495
|
|
|
496
|
+
declare type NativeButtonProps = Pick<React_2.ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'title' | 'value'>;
|
|
497
|
+
|
|
495
498
|
export declare function PhoneInput({ size, label, required, hint, error, disabled, placeholder, rightIcon, value, onChange, className, wrapperClassName, }: PhoneInputProps): JSX_2.Element;
|
|
496
499
|
|
|
497
500
|
declare interface PhoneInputProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -221,7 +221,8 @@ export declare type ButtonCompound = React_2.ForwardRefExoticComponent<ButtonPro
|
|
|
221
221
|
/** Figma Buttons/Button icon box: xs 18 · sm/md 20 · lg 24 · xl/2xl 28. */
|
|
222
222
|
export declare const buttonIconSizePx: Record<ButtonSize, number>;
|
|
223
223
|
|
|
224
|
-
|
|
224
|
+
/** Retain native button props supported before the React Aria migration. */
|
|
225
|
+
export declare interface ButtonProps extends Omit<ButtonProps_2, keyof NativeButtonProps>, NativeButtonProps {
|
|
225
226
|
tone?: ButtonTone;
|
|
226
227
|
size?: ButtonSize;
|
|
227
228
|
variant?: ButtonVariant;
|
|
@@ -492,6 +493,8 @@ declare interface MultiSelectOption {
|
|
|
492
493
|
avatar?: string;
|
|
493
494
|
}
|
|
494
495
|
|
|
496
|
+
declare type NativeButtonProps = Pick<React_2.ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'title' | 'value'>;
|
|
497
|
+
|
|
495
498
|
export declare function PhoneInput({ size, label, required, hint, error, disabled, placeholder, rightIcon, value, onChange, className, wrapperClassName, }: PhoneInputProps): JSX_2.Element;
|
|
496
499
|
|
|
497
500
|
declare interface PhoneInputProps {
|
package/dist/index.mjs
CHANGED
|
@@ -10623,21 +10623,31 @@ const oa = m.createContext({ size: "md" }), pp = () => m.useContext(oa), io = (t
|
|
|
10623
10623
|
isDisabled: l,
|
|
10624
10624
|
disabled: s,
|
|
10625
10625
|
isPending: a,
|
|
10626
|
-
|
|
10627
|
-
|
|
10628
|
-
|
|
10629
|
-
|
|
10630
|
-
|
|
10631
|
-
|
|
10632
|
-
|
|
10633
|
-
|
|
10634
|
-
|
|
10635
|
-
|
|
10636
|
-
|
|
10637
|
-
|
|
10638
|
-
|
|
10639
|
-
|
|
10640
|
-
|
|
10626
|
+
title: c,
|
|
10627
|
+
value: u,
|
|
10628
|
+
...d
|
|
10629
|
+
}, f) => {
|
|
10630
|
+
const p = m.useCallback(
|
|
10631
|
+
(v) => {
|
|
10632
|
+
v && (c === void 0 ? v.removeAttribute("title") : v.title = c, u === void 0 ? v.removeAttribute("value") : v.value = String(u)), typeof f == "function" ? f(v) : f && (f.current = v);
|
|
10633
|
+
},
|
|
10634
|
+
[f, c, u]
|
|
10635
|
+
), b = d;
|
|
10636
|
+
return /* @__PURE__ */ m.createElement(oa.Provider, { value: { size: i } }, /* @__PURE__ */ m.createElement(
|
|
10637
|
+
nl,
|
|
10638
|
+
{
|
|
10639
|
+
...b,
|
|
10640
|
+
ref: p,
|
|
10641
|
+
isDisabled: l || s,
|
|
10642
|
+
isPending: a,
|
|
10643
|
+
className: Gn(
|
|
10644
|
+
e,
|
|
10645
|
+
(v) => De(gp({ tone: r, variant: n, size: i, iconOnly: o }), v)
|
|
10646
|
+
)
|
|
10647
|
+
},
|
|
10648
|
+
Gn(t, (v, { isPending: h }) => /* @__PURE__ */ m.createElement(m.Fragment, null, h ? /* @__PURE__ */ m.createElement("span", { className: "flex shrink-0 items-center", "aria-hidden": !0 }, /* @__PURE__ */ m.createElement(La, { size: bp[i], className: "animate-spin" })) : null, h && o ? null : v))
|
|
10649
|
+
));
|
|
10650
|
+
}
|
|
10641
10651
|
);
|
|
10642
10652
|
la.displayName = "Button";
|
|
10643
10653
|
const mp = ({ children: t }) => {
|