@eml-payments/ui-kit 0.1.41 → 0.1.43

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.
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { useUIKitTheme } from '../../context/useUIKitTheme';
4
4
  import { cn } from '../../lib/utils';
5
- export const Input = React.forwardRef(({ type, label, error, className, helperText, icon, ...props }, ref) => {
5
+ export const Input = React.forwardRef(({ name, type, label, error, className, helperText, icon, ...props }, ref) => {
6
6
  const theme = useUIKitTheme();
7
- return (_jsxs("div", { className: cn(className), children: [label && _jsx("label", { className: cn('text-sm font-medium text-foreground'), children: label }), _jsxs("div", { className: "relative", children: [_jsx("input", { type: type, style: { fontFamily: theme.fontFamily }, className: cn('flex h-10 w-full rounded-(--uikit-radius) border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition ', { 'border-error focus-visible:ring-error': error }, className), ref: ref, onChange: props.onChange, ...props }), icon && _jsx("span", { className: "absolute inset-y-0 right-3 flex items-center pl-3", children: icon })] }), error && _jsx("label", { className: cn('text-sm font-medium text-error'), children: error }), !error && helperText && (_jsx("label", { className: cn('text-sm font-medium text-foreground'), children: helperText }))] }));
7
+ return (_jsxs("div", { className: cn(className), children: [label && (_jsx("label", { className: cn('text-sm font-medium text-foreground'), htmlFor: name, children: label })), _jsxs("div", { className: "relative", children: [_jsx("input", { name: name, type: type, style: { fontFamily: theme.fontFamily }, className: cn('flex h-10 w-full rounded-(--uikit-radius) border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition ', { 'border-error focus-visible:ring-error': error }, className), ref: ref, onChange: props.onChange, ...props }), icon && _jsx("span", { className: "absolute inset-y-0 right-3 flex items-center pl-3", children: icon })] }), error && _jsx("label", { className: cn('text-sm font-medium text-error'), children: error }), !error && helperText && (_jsx("label", { className: cn('text-sm font-medium text-foreground'), children: helperText }))] }));
8
8
  });
9
9
  Input.displayName = 'Input';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eml-payments/ui-kit",
3
- "version": "0.1.41",
3
+ "version": "0.1.43",
4
4
  "private": false,
5
5
  "description": "ARLO UIKit",
6
6
  "homepage": "https://github.com/EML-Payments/arlo.npm.uikit#readme",
@@ -59,7 +59,6 @@
59
59
  "@radix-ui/react-switch": "^1.2.5",
60
60
  "@radix-ui/react-tabs": "^1.1.12",
61
61
  "@radix-ui/react-tooltip": "^1.2.7",
62
- "@rollup/rollup-win32-x64-msvc": "^4.46.2",
63
62
  "@tailwindcss/postcss": "^4.1.11",
64
63
  "@tanstack/react-table": "^8.12.0",
65
64
  "class-variance-authority": "^0.7.1",