@luscii-healthtech/web-ui 27.4.0 → 27.4.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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { IconKey, IconProps } from "../Icons/types/IconProps.type";
|
|
3
3
|
import "./Input.css";
|
|
4
|
-
type AllowedTextInputTypes = Extract<React.HTMLInputTypeAttribute, "email" | "number" | "password" | "text">;
|
|
5
4
|
type FormFieldWidth = "sm" | "md" | "lg" | "xl" | "full";
|
|
6
5
|
/**
|
|
7
6
|
* It's very complicated to tap into the onChange events of inputs,
|
|
@@ -21,7 +20,6 @@ export type FakeEventTarget = {
|
|
|
21
20
|
};
|
|
22
21
|
};
|
|
23
22
|
export interface InputProps extends CustomHTMLInputProps {
|
|
24
|
-
type?: AllowedTextInputTypes;
|
|
25
23
|
clearable?: boolean;
|
|
26
24
|
isDisabled?: boolean;
|
|
27
25
|
withPrefix?: string;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { IconProps } from "../Icons/types/IconProps.type";
|
|
3
|
-
type AllowedTextInputTypes = Extract<React.HTMLInputTypeAttribute, "email" | "number" | "password" | "text">;
|
|
4
3
|
type FormFieldWidth = "sm" | "md" | "lg" | "xl" | "full";
|
|
5
|
-
export declare const StyledInput: React.ForwardRefExoticComponent<Omit<
|
|
6
|
-
type?: AllowedTextInputTypes | undefined;
|
|
4
|
+
export declare const StyledInput: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
7
5
|
suffix?: string | undefined;
|
|
8
6
|
prefix?: string | undefined;
|
|
9
7
|
icon?: "AlarmClockIcon" | "AmberAlertIcon" | "BellIconSlashed" | "BellIcon" | "BluetoothIcon" | "BrushIcon" | "CalendarDayIcon" | "CalendarMonthIcon" | "CalendarRepeatIcon" | "ChartBarsIcon" | "ChartLineAndBarsIcon" | "ChatBubbleIcon" | "ChatBubbleWithTextIcon" | "CheckIcon" | "ChevronDoubleIcon" | "ChevronDownIcon" | "ChevronLeftIcon" | "ChevronRightIcon" | "ClockIcon" | "CogwheelIcon" | "CopyToClipboardIcon" | "CrossIcon" | "CrossInCircleIcon" | "CrossInFilledCircleIcon" | "DatabaseIcon" | "DownloadIcon" | "DragIndicatorIcon" | "EarthIcon" | "EmailIcon" | "EmptyIcon" | "ExclamationMarkIcon" | "ExportIcon" | "ExternalLinkIcon" | "EyeClosedIcon" | "EyeOpenIcon" | "FilterIcon" | "FireIcon" | "FirstAidKitIcon" | "FlagIcon" | "ForwardIcon" | "GroupIcon" | "GroupOfThreeIcon" | "HamburgerIcon" | "HandshakeIcon" | "HeartIcon" | "HomeIcon" | "ImageIcon" | "InfoIcon" | "LifebuoyIcon" | "LightBulbIcon" | "LinkIcon" | "ListIcon" | "LockIcon" | "LogInIcon" | "LogOutIcon" | "MessageWithArrowIcon" | "MoreIcon" | "MouseIcon" | "NoteIcon" | "PageViewIcon" | "PatientIcon" | "PencilIcon" | "PhoneIcon" | "PieChartIcon" | "PinIcon" | "PlusIcon" | "PrinterIcon" | "RedAlertIcon" | "RobotIcon" | "RocketIcon" | "SearchIcon" | "ShareIcon" | "SmallCircleIcon" | "SmallDiamondIcon" | "SmallSquareIcon" | "StarIcon" | "TrashBinIcon" | "TreeIcon" | "AddIcon" | "AlertsIcon" | "ChartIcon" | "ChatBoxIcon" | "DeleteIcon" | "DragIcon" | "EditIcon" | "EyeIcon" | "EyeIconSlashed" | "GearIcon" | "MessagesIcon" | "NotesIcon" | "PrintIcon" | "SpaceRocketIcon" | "SettingsIcon" | "RightArrowIcon" | "DownArrowIcon" | "LeftArrowIcon" | "WarningIcon" | "ChartLineColoredIcon" | "GearColoredIcon" | "GroupColoredIcon" | "StatusColoredIcon" | React.FC<IconProps> | undefined;
|