@algenium/blocks 1.16.0 → 1.16.1
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.cjs +8 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10276,13 +10276,14 @@ function Input({ className, type, ...props }) {
|
|
|
10276
10276
|
}
|
|
10277
10277
|
);
|
|
10278
10278
|
}
|
|
10279
|
+
var phoneInputGroupClass = "flex h-9 w-full gap-0 overflow-hidden rounded-md border border-input bg-transparent shadow-xs transition-[color,box-shadow] [--PhoneInputCountrySelect-marginRight:0] focus-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/50 dark:bg-input/30 [&_.PhoneInputCountry]:mr-0";
|
|
10279
10280
|
var PhoneInput = React7.forwardRef(
|
|
10280
10281
|
({ className, onChange, value, defaultCountry = "MX", ...props }, ref) => {
|
|
10281
10282
|
return /* @__PURE__ */ jsx(
|
|
10282
10283
|
RPNInput.default,
|
|
10283
10284
|
{
|
|
10284
10285
|
ref,
|
|
10285
|
-
className: cn(
|
|
10286
|
+
className: cn(phoneInputGroupClass, className),
|
|
10286
10287
|
flagComponent: FlagComponent,
|
|
10287
10288
|
countrySelectComponent: CountrySelect,
|
|
10288
10289
|
inputComponent: InputComponent,
|
|
@@ -10299,7 +10300,10 @@ PhoneInput.displayName = "PhoneInput";
|
|
|
10299
10300
|
var InputComponent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
10300
10301
|
Input,
|
|
10301
10302
|
{
|
|
10302
|
-
className: cn(
|
|
10303
|
+
className: cn(
|
|
10304
|
+
"h-9 min-h-0 rounded-none border-0 bg-transparent shadow-none focus-visible:border-transparent focus-visible:ring-0 dark:bg-transparent",
|
|
10305
|
+
className
|
|
10306
|
+
),
|
|
10303
10307
|
...props,
|
|
10304
10308
|
ref
|
|
10305
10309
|
}
|
|
@@ -10328,8 +10332,8 @@ var CountrySelect = ({
|
|
|
10328
10332
|
Button,
|
|
10329
10333
|
{
|
|
10330
10334
|
type: "button",
|
|
10331
|
-
variant: "
|
|
10332
|
-
className: "
|
|
10335
|
+
variant: "ghost",
|
|
10336
|
+
className: "h-9 shrink-0 gap-1 rounded-none border-0 border-r border-input px-2.5 shadow-none hover:bg-muted/50 focus:z-10",
|
|
10333
10337
|
disabled,
|
|
10334
10338
|
children: [
|
|
10335
10339
|
/* @__PURE__ */ jsx(
|