@loomhq/lens 10.58.0 → 10.58.2
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,6 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
function SvgMoon(props) {
|
|
3
3
|
return (React.createElement(React.Fragment, null,
|
|
4
4
|
React.createElement("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none" }, props),
|
|
5
|
-
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.
|
|
5
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.1908 4.01685C12.3843 4.36024 12.3581 4.78527 12.1238 5.10224C11.4357 6.03318 11.1045 7.18019 11.1906 8.33464C11.2767 9.48909 11.7743 10.5743 12.5929 11.3929C13.4115 12.2115 14.4967 12.7091 15.6511 12.7952C16.8056 12.8812 17.9526 12.5501 18.8835 11.862C19.2005 11.6277 19.6255 11.6015 19.9689 11.795C20.3123 11.9885 20.51 12.3657 20.4737 12.7582C20.3251 14.3658 19.7218 15.8979 18.7343 17.1751C17.7467 18.4524 16.4159 19.422 14.8974 19.9705C13.379 20.519 11.7357 20.6236 10.1599 20.2723C8.58411 19.9209 7.14097 19.128 5.99936 17.9864C4.85775 16.8448 4.06487 15.4017 3.7135 13.8259C3.36214 12.2501 3.46682 10.6068 4.0153 9.08835C4.56378 7.56989 5.53338 6.23903 6.81063 5.25151C8.08788 4.26398 9.61995 3.66064 11.2276 3.51207C11.6201 3.4758 11.9973 3.67347 12.1908 4.01685ZM9.4713 5.99218C8.96059 6.20883 8.47721 6.49103 8.03395 6.83374C7.05723 7.58891 6.31578 8.60662 5.89635 9.7678C5.47693 10.929 5.39688 12.1856 5.66557 13.3906C5.93426 14.5956 6.54057 15.6992 7.41357 16.5722C8.28657 17.4452 9.39014 18.0515 10.5952 18.3202C11.8002 18.5889 13.0568 18.5088 14.218 18.0894C15.3792 17.67 16.3969 16.9285 17.152 15.9518C17.4947 15.5086 17.7769 15.0252 17.9936 14.5145C17.1935 14.7571 16.3494 14.8528 15.5024 14.7896C13.8702 14.6679 12.336 13.9644 11.1787 12.8071C10.0214 11.6498 9.31787 10.1155 9.19616 8.48337C9.133 7.6364 9.22868 6.79227 9.4713 5.99218Z", fill: "currentColor" }))));
|
|
6
6
|
}
|
|
7
7
|
export default SvgMoon;
|
|
@@ -4,7 +4,6 @@ declare const TextInput: React.ForwardRefExoticComponent<Pick<TextInputProps & O
|
|
|
4
4
|
} & {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}, "size">, "size" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "height" | "width" | "form" | "pattern" | "theme" | "list" | "step" | "alt" | "crossOrigin" | "src" | "value" | "icon" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "isDisabled" | "accept" | "autoComplete" | "capture" | "checked" | "enterKeyHint" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "hasError" | "inputSize"> & React.RefAttributes<HTMLInputElement>>;
|
|
7
|
-
export declare const availableTypes: string[];
|
|
8
7
|
declare type TextInputProps = {
|
|
9
8
|
placeholder?: string;
|
|
10
9
|
value?: string | number;
|
|
@@ -14,7 +13,7 @@ declare type TextInputProps = {
|
|
|
14
13
|
onKeyDown?: React.ReactEventHandler;
|
|
15
14
|
isDisabled?: boolean;
|
|
16
15
|
icon?: React.ReactNode;
|
|
17
|
-
type?: 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url';
|
|
16
|
+
type?: 'date' | 'datetime-local' | 'email' | 'month' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'time' | 'url' | 'week';
|
|
18
17
|
id?: string;
|
|
19
18
|
hasError?: boolean;
|
|
20
19
|
size?: 'small' | 'medium';
|
|
@@ -102,18 +102,4 @@ const TextInput = forwardRef((_a, ref) => {
|
|
|
102
102
|
React.createElement(Icon, { icon: icon, size: sizesStyles[size].iconSize, color: getColorValue(isDisabled ? 'disabledContent' : 'body') }))),
|
|
103
103
|
inputField)) : (inputField);
|
|
104
104
|
});
|
|
105
|
-
export const availableTypes = [
|
|
106
|
-
'date',
|
|
107
|
-
'datetime-local',
|
|
108
|
-
'email',
|
|
109
|
-
'month',
|
|
110
|
-
'number',
|
|
111
|
-
'password',
|
|
112
|
-
'search',
|
|
113
|
-
'tel',
|
|
114
|
-
'text',
|
|
115
|
-
'time',
|
|
116
|
-
'url',
|
|
117
|
-
'week',
|
|
118
|
-
];
|
|
119
105
|
export default TextInput;
|