uibee 2.16.34 → 2.16.35

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.
@@ -108,7 +108,7 @@ export default function Input(props) {
108
108
  return (_jsx(FieldWrapper, { label: label, name: name, required: inputProps.required, info: info, error: error, description: description, textSize: textSize, className: className, children: _jsxs("div", { className: 'relative flex items-center', ref: containerRef, children: [displayIcon && (_jsx("div", { className: `
109
109
  absolute left-3 text-login-200
110
110
  ${isClickableType && !inputProps.disabled ? 'cursor-pointer hover:text-login-text' : 'pointer-events-none'}
111
- `, onClick: handleIconClick, children: displayIcon })), _jsx("input", { ...inputProps, ref: localRef, id: name, name: isClickableType ? undefined : name, type: isClickableType ? 'text' : type, value: isDateType ? getDateDisplayValue() : value, readOnly: isClickableType, onClick: () => isClickableType && !inputProps.disabled && setIsOpen(true), onSubmit: () => console.log('den her onSubmit'), title: label, "aria-invalid": !!error, "aria-describedby": error ? `${name}-error` : undefined, className: `
111
+ `, onClick: handleIconClick, children: displayIcon })), _jsx("input", { ...inputProps, ref: localRef, id: name, name: isClickableType ? undefined : name, type: isClickableType ? 'text' : type, value: isDateType ? getDateDisplayValue() : value, readOnly: isClickableType, onClick: () => isClickableType && !inputProps.disabled && setIsOpen(true), title: label, "aria-invalid": !!error, "aria-describedby": error ? `${name}-error` : undefined, className: `
112
112
  w-full rounded-md bg-login-500/50 border border-login-500
113
113
  text-login-text placeholder-login-200
114
114
  focus:outline-none focus:border-login focus:ring-1 focus:ring-login
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uibee",
3
- "version": "2.16.34",
3
+ "version": "2.16.35",
4
4
  "description": "Shared components, functions and hooks for reuse across Login projects",
5
5
  "homepage": "https://github.com/Login-Linjeforening-for-IT/uibee#readme",
6
6
  "bugs": {
@@ -157,7 +157,6 @@ export default function Input(props: InputProps) {
157
157
  value={isDateType ? getDateDisplayValue() : value}
158
158
  readOnly={isClickableType}
159
159
  onClick={() => isClickableType && !inputProps.disabled && setIsOpen(true)}
160
- onSubmit={() => console.log('den her onSubmit')}
161
160
  title={label}
162
161
  aria-invalid={!!error}
163
162
  aria-describedby={error ? `${name}-error` : undefined}