@use-stall/ui 0.0.8 → 0.1.0
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -12
- package/dist/index.mjs +15 -12
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -630,7 +630,7 @@ declare const InputOTPSlot: React$1.ForwardRefExoticComponent<Omit<React$1.Detai
|
|
|
630
630
|
declare const InputOTPSeparator: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
631
631
|
|
|
632
632
|
interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
633
|
-
|
|
633
|
+
onChange?: (e: React$1.ChangeEvent<HTMLInputElement>) => void;
|
|
634
634
|
}
|
|
635
635
|
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
636
636
|
|
|
@@ -667,7 +667,7 @@ interface PasswordInputProps extends React__default.InputHTMLAttributes<HTMLInpu
|
|
|
667
667
|
type PhoneProps = {
|
|
668
668
|
className?: string;
|
|
669
669
|
value: string | number;
|
|
670
|
-
onChange: (value:
|
|
670
|
+
onChange: (value: any) => void;
|
|
671
671
|
} & React__default.ComponentProps<typeof RPNInput.default>;
|
|
672
672
|
declare function PhoneNumberInput({ className, ...props }: PhoneProps): react_jsx_runtime.JSX.Element;
|
|
673
673
|
|
package/dist/index.d.ts
CHANGED
|
@@ -630,7 +630,7 @@ declare const InputOTPSlot: React$1.ForwardRefExoticComponent<Omit<React$1.Detai
|
|
|
630
630
|
declare const InputOTPSeparator: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
631
631
|
|
|
632
632
|
interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
633
|
-
|
|
633
|
+
onChange?: (e: React$1.ChangeEvent<HTMLInputElement>) => void;
|
|
634
634
|
}
|
|
635
635
|
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
636
636
|
|
|
@@ -667,7 +667,7 @@ interface PasswordInputProps extends React__default.InputHTMLAttributes<HTMLInpu
|
|
|
667
667
|
type PhoneProps = {
|
|
668
668
|
className?: string;
|
|
669
669
|
value: string | number;
|
|
670
|
-
onChange: (value:
|
|
670
|
+
onChange: (value: any) => void;
|
|
671
671
|
} & React__default.ComponentProps<typeof RPNInput.default>;
|
|
672
672
|
declare function PhoneNumberInput({ className, ...props }: PhoneProps): react_jsx_runtime.JSX.Element;
|
|
673
673
|
|
package/dist/index.js
CHANGED
|
@@ -685,17 +685,17 @@ var React8 = __toESM(require("react"));
|
|
|
685
685
|
var React6 = __toESM(require("react"));
|
|
686
686
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
687
687
|
var Input = React6.forwardRef(
|
|
688
|
-
({ className, type,
|
|
688
|
+
({ className, type, ...props }, ref) => {
|
|
689
689
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
690
690
|
"input",
|
|
691
691
|
{
|
|
692
692
|
type,
|
|
693
693
|
className: cn(
|
|
694
|
-
`flex h-10 w-full rounded-10 border border-input bg-background px-3 py-2 text-sm
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
694
|
+
`flex h-10 w-full rounded-10 border border-input bg-background px-3 py-2 text-sm
|
|
695
|
+
font-normal ring-offset-background file:border-0 file:bg-transparent file:text-sm
|
|
696
|
+
file:font-medium placeholder:text-muted-foreground focus-visible:outline-none
|
|
697
|
+
focus-visible:ring-2 ring-inset focus-visible:ring-ring focus-visible:ring-offset-0
|
|
698
|
+
focus-visible:border-0 disabled:cursor-not-allowed disabled:opacity-50`,
|
|
699
699
|
className
|
|
700
700
|
),
|
|
701
701
|
ref,
|
|
@@ -1626,7 +1626,7 @@ var ButtonRoot = React12.forwardRef(
|
|
|
1626
1626
|
{
|
|
1627
1627
|
className: cn(
|
|
1628
1628
|
`size-4 shrink-0 rounded-full border-2 border-white/30
|
|
1629
|
-
|
|
1629
|
+
border-l-white animate-spin`,
|
|
1630
1630
|
{
|
|
1631
1631
|
"border-primary/30 border-l-primary": ![
|
|
1632
1632
|
"primary",
|
|
@@ -2818,10 +2818,10 @@ function PhoneNumberInput({
|
|
|
2818
2818
|
}
|
|
2819
2819
|
props.onChange(newValue ?? "");
|
|
2820
2820
|
};
|
|
2821
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2821
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: cn(className), children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2822
2822
|
RPNInput.default,
|
|
2823
2823
|
{
|
|
2824
|
-
className: cn("flex rounded-
|
|
2824
|
+
className: cn("flex rounded-md", error && "border border-red-500/70"),
|
|
2825
2825
|
international: true,
|
|
2826
2826
|
flagComponent: FlagComponent,
|
|
2827
2827
|
countrySelectComponent: CountrySelect,
|
|
@@ -2840,7 +2840,7 @@ var PhoneInput = (0, import_react5.forwardRef)(
|
|
|
2840
2840
|
Input,
|
|
2841
2841
|
{
|
|
2842
2842
|
className: cn(
|
|
2843
|
-
"-ms-px rounded-s-none shadow-none focus-visible:z-10 ring-0! border!",
|
|
2843
|
+
"-ms-px rounded-s-none shadow-none focus-visible:z-10 ring-0! border! bg-main-background",
|
|
2844
2844
|
className
|
|
2845
2845
|
),
|
|
2846
2846
|
ref,
|
|
@@ -2862,7 +2862,10 @@ var CountrySelect = ({
|
|
|
2862
2862
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
2863
2863
|
"div",
|
|
2864
2864
|
{
|
|
2865
|
-
className:
|
|
2865
|
+
className: cn(`relative inline-flex items-center self-stretch rounded-s-10 border border-input
|
|
2866
|
+
bg-inherit py-2 pe-2 ps-3 text-muted-foreground transition-shadow focus-within:z-10
|
|
2867
|
+
focus-within:border-ring focus-within:outline-none focus-within:ring-[3px] focus-within:ring-ring/20
|
|
2868
|
+
hover:text-foreground has-disabled:pointer-events-none has-disabled:opacity-50`),
|
|
2866
2869
|
children: [
|
|
2867
2870
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "inline-flex items-center gap-1", "aria-hidden": "true", children: [
|
|
2868
2871
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(FlagComponent, { country: value, countryName: value, "aria-hidden": "true" }),
|
|
@@ -3454,7 +3457,7 @@ var Textarea = React31.forwardRef(
|
|
|
3454
3457
|
"textarea",
|
|
3455
3458
|
{
|
|
3456
3459
|
className: cn(
|
|
3457
|
-
"flex min-h-20 w-full rounded-10 border border-input bg-background p-3 text-sm font-normal ring-offset-background placeholder:text-muted-foreground/30 focus-visible:border-primary focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/
|
|
3460
|
+
"flex min-h-20 w-full rounded-10 border border-input bg-background p-3 text-sm font-normal ring-offset-background placeholder:text-muted-foreground/30 focus-visible:border-primary focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/40 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 resize-none",
|
|
3458
3461
|
className
|
|
3459
3462
|
),
|
|
3460
3463
|
ref,
|
package/dist/index.mjs
CHANGED
|
@@ -462,17 +462,17 @@ import * as React8 from "react";
|
|
|
462
462
|
import * as React6 from "react";
|
|
463
463
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
464
464
|
var Input = React6.forwardRef(
|
|
465
|
-
({ className, type,
|
|
465
|
+
({ className, type, ...props }, ref) => {
|
|
466
466
|
return /* @__PURE__ */ jsx7(
|
|
467
467
|
"input",
|
|
468
468
|
{
|
|
469
469
|
type,
|
|
470
470
|
className: cn(
|
|
471
|
-
`flex h-10 w-full rounded-10 border border-input bg-background px-3 py-2 text-sm
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
471
|
+
`flex h-10 w-full rounded-10 border border-input bg-background px-3 py-2 text-sm
|
|
472
|
+
font-normal ring-offset-background file:border-0 file:bg-transparent file:text-sm
|
|
473
|
+
file:font-medium placeholder:text-muted-foreground focus-visible:outline-none
|
|
474
|
+
focus-visible:ring-2 ring-inset focus-visible:ring-ring focus-visible:ring-offset-0
|
|
475
|
+
focus-visible:border-0 disabled:cursor-not-allowed disabled:opacity-50`,
|
|
476
476
|
className
|
|
477
477
|
),
|
|
478
478
|
ref,
|
|
@@ -1403,7 +1403,7 @@ var ButtonRoot = React12.forwardRef(
|
|
|
1403
1403
|
{
|
|
1404
1404
|
className: cn(
|
|
1405
1405
|
`size-4 shrink-0 rounded-full border-2 border-white/30
|
|
1406
|
-
|
|
1406
|
+
border-l-white animate-spin`,
|
|
1407
1407
|
{
|
|
1408
1408
|
"border-primary/30 border-l-primary": ![
|
|
1409
1409
|
"primary",
|
|
@@ -2599,10 +2599,10 @@ function PhoneNumberInput({
|
|
|
2599
2599
|
}
|
|
2600
2600
|
props.onChange(newValue ?? "");
|
|
2601
2601
|
};
|
|
2602
|
-
return /* @__PURE__ */ jsx28("div", { className, children: /* @__PURE__ */ jsx28(
|
|
2602
|
+
return /* @__PURE__ */ jsx28("div", { className: cn(className), children: /* @__PURE__ */ jsx28(
|
|
2603
2603
|
RPNInput.default,
|
|
2604
2604
|
{
|
|
2605
|
-
className: cn("flex rounded-
|
|
2605
|
+
className: cn("flex rounded-md", error && "border border-red-500/70"),
|
|
2606
2606
|
international: true,
|
|
2607
2607
|
flagComponent: FlagComponent,
|
|
2608
2608
|
countrySelectComponent: CountrySelect,
|
|
@@ -2621,7 +2621,7 @@ var PhoneInput = forwardRef16(
|
|
|
2621
2621
|
Input,
|
|
2622
2622
|
{
|
|
2623
2623
|
className: cn(
|
|
2624
|
-
"-ms-px rounded-s-none shadow-none focus-visible:z-10 ring-0! border!",
|
|
2624
|
+
"-ms-px rounded-s-none shadow-none focus-visible:z-10 ring-0! border! bg-main-background",
|
|
2625
2625
|
className
|
|
2626
2626
|
),
|
|
2627
2627
|
ref,
|
|
@@ -2643,7 +2643,10 @@ var CountrySelect = ({
|
|
|
2643
2643
|
return /* @__PURE__ */ jsxs18(
|
|
2644
2644
|
"div",
|
|
2645
2645
|
{
|
|
2646
|
-
className:
|
|
2646
|
+
className: cn(`relative inline-flex items-center self-stretch rounded-s-10 border border-input
|
|
2647
|
+
bg-inherit py-2 pe-2 ps-3 text-muted-foreground transition-shadow focus-within:z-10
|
|
2648
|
+
focus-within:border-ring focus-within:outline-none focus-within:ring-[3px] focus-within:ring-ring/20
|
|
2649
|
+
hover:text-foreground has-disabled:pointer-events-none has-disabled:opacity-50`),
|
|
2647
2650
|
children: [
|
|
2648
2651
|
/* @__PURE__ */ jsxs18("div", { className: "inline-flex items-center gap-1", "aria-hidden": "true", children: [
|
|
2649
2652
|
/* @__PURE__ */ jsx28(FlagComponent, { country: value, countryName: value, "aria-hidden": "true" }),
|
|
@@ -3235,7 +3238,7 @@ var Textarea = React31.forwardRef(
|
|
|
3235
3238
|
"textarea",
|
|
3236
3239
|
{
|
|
3237
3240
|
className: cn(
|
|
3238
|
-
"flex min-h-20 w-full rounded-10 border border-input bg-background p-3 text-sm font-normal ring-offset-background placeholder:text-muted-foreground/30 focus-visible:border-primary focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/
|
|
3241
|
+
"flex min-h-20 w-full rounded-10 border border-input bg-background p-3 text-sm font-normal ring-offset-background placeholder:text-muted-foreground/30 focus-visible:border-primary focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/40 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 resize-none",
|
|
3239
3242
|
className
|
|
3240
3243
|
),
|
|
3241
3244
|
ref,
|