@loomhq/lens 10.57.5 → 10.58.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/components/base-styles/base-styles.js +3 -3
- package/dist/components/button/button.js +1 -1
- package/dist/components/color-picker/color-picker.js +1 -1
- package/dist/components/icon-button/icon-button.js +2 -2
- package/dist/components/menu/menu.js +2 -2
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/pill/pill.js +1 -1
- package/dist/components/text-button/text-button.js +1 -1
- package/dist/components/text-input/text-input.d.ts +1 -2
- package/dist/components/text-input/text-input.js +0 -14
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/components/toast/toast.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/css-variables/index.js +1 -1
- package/package.json +1 -1
|
@@ -7,9 +7,9 @@ const buildGlobalStylesheet = (rootElement = ':root', bodyElement = 'body') => {
|
|
|
7
7
|
return `
|
|
8
8
|
${rootElement} {
|
|
9
9
|
font-size: 100%;
|
|
10
|
-
--lns-radius-thread-large: var(--lns-radius-
|
|
11
|
-
--lns-radius-thread-xlarge: var(--lns-radius-
|
|
12
|
-
--lns-radius-thread-full: var(--lns-radius-
|
|
10
|
+
--lns-radius-thread-large: var(--lns-radius-large);
|
|
11
|
+
--lns-radius-thread-xlarge: var(--lns-radius-xlarge);
|
|
12
|
+
--lns-radius-thread-full: var(--lns-radius-full);
|
|
13
13
|
}
|
|
14
14
|
${bodyElement} {
|
|
15
15
|
font-family: circular, -apple-system, BlinkMacSystemFont, Segoe UI,
|
|
@@ -102,7 +102,7 @@ const ButtonWrapper = styled.button `
|
|
|
102
102
|
white-space: nowrap;
|
|
103
103
|
border: 1px solid;
|
|
104
104
|
${getFontWeight('medium')};
|
|
105
|
-
${getRadius('
|
|
105
|
+
${getRadius('full')};
|
|
106
106
|
${props => props.hasFullWidth ? 'display: flex; width: 100%' : 'display: inline-flex'};
|
|
107
107
|
height: ${props => sizesStyles[props.size].height};
|
|
108
108
|
min-width: ${props => sizesStyles[props.size].height};
|
|
@@ -70,7 +70,7 @@ const ColorBox = styled.div `
|
|
|
70
70
|
left: var(--lns-space-xsmall);
|
|
71
71
|
top: var(--lns-space-xsmall);
|
|
72
72
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
73
|
-
${getRadius('
|
|
73
|
+
${getRadius('full')};
|
|
74
74
|
background-color: ${props => props.color};
|
|
75
75
|
`;
|
|
76
76
|
const ButtonWrapper = styled.div `
|
|
@@ -38,7 +38,7 @@ export const IconButtonBox = styled.button `
|
|
|
38
38
|
justify-content: center;
|
|
39
39
|
align-items: center;
|
|
40
40
|
vertical-align: middle;
|
|
41
|
-
${getRadius('
|
|
41
|
+
${getRadius('full')};
|
|
42
42
|
font: inherit;
|
|
43
43
|
|
|
44
44
|
&:hover {
|
|
@@ -63,7 +63,7 @@ export const IconButtonBox = styled.button `
|
|
|
63
63
|
display: block;
|
|
64
64
|
position: absolute;
|
|
65
65
|
top: 0;
|
|
66
|
-
${getRadius('
|
|
66
|
+
${getRadius('full')};
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
&:focus-visible:before {
|
|
@@ -27,14 +27,14 @@ const MenuWrapper = styled.ul `
|
|
|
27
27
|
overflow: auto;
|
|
28
28
|
border: 1px solid ${getColorValue('border')};
|
|
29
29
|
${getShadow('medium')};
|
|
30
|
-
${getRadius('
|
|
30
|
+
${getRadius('large')};
|
|
31
31
|
`;
|
|
32
32
|
const MenuItemWrapper = styled.li `
|
|
33
33
|
display: grid;
|
|
34
34
|
grid-auto-flow: column;
|
|
35
35
|
grid-template-columns: ${props => props.columns};
|
|
36
36
|
${getSize('grid-gap', 'small')};
|
|
37
|
-
${getRadius('
|
|
37
|
+
${getRadius('xlarge')};
|
|
38
38
|
align-items: center;
|
|
39
39
|
min-height: ${u(5)};
|
|
40
40
|
padding: 0 ${u(2)};
|
|
@@ -32,7 +32,7 @@ const ModalCardWrapper = styled.dialog `
|
|
|
32
32
|
color: ${getColorValue('body')};
|
|
33
33
|
bottom: ${props => getPlacement(props.maxHeight, props.placement).bottom};
|
|
34
34
|
${getShadow('large')};
|
|
35
|
-
${getRadius('
|
|
35
|
+
${getRadius('xlarge')};
|
|
36
36
|
// Unsets bottom-radius for bottom-aligned modals
|
|
37
37
|
border-bottom-left-radius: ${props => props.placement === 'bottom' ? 'initial' : undefined};
|
|
38
38
|
border-bottom-right-radius: ${props => props.placement === 'bottom' ? 'initial' : undefined};
|
|
@@ -23,7 +23,7 @@ const PillWrapper = styled.div `
|
|
|
23
23
|
min-height: ${u(3.25)};
|
|
24
24
|
color: ${props => getColorValue(props.color)};
|
|
25
25
|
background-color: ${props => getColorValue(props.backgroundColor)};
|
|
26
|
-
${getRadius('
|
|
26
|
+
${getRadius('full')};
|
|
27
27
|
${getTextSize('small')};
|
|
28
28
|
${getFontWeight('medium')};
|
|
29
29
|
${getSize('gap', 'xsmall')};
|
|
@@ -42,7 +42,7 @@ const TextButtonWrapper = styled.button `
|
|
|
42
42
|
transition: 0.6s background-color;
|
|
43
43
|
color: ${getColorValue('body')};
|
|
44
44
|
${getFontWeight('medium')};
|
|
45
|
-
${getRadius('
|
|
45
|
+
${getRadius('full')};
|
|
46
46
|
${props => getTextSize(sizeStyles[props.size].textSize)};
|
|
47
47
|
padding: 0 ${props => sizeStyles[props.size].xSpace};
|
|
48
48
|
${props => props.offsetSide &&
|
|
@@ -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;
|
|
@@ -30,7 +30,7 @@ const TextareaWrapper = styled.textarea `
|
|
|
30
30
|
background-color: ${getColorValue('formFieldBackground')};
|
|
31
31
|
transition: 0.3s box-shadow;
|
|
32
32
|
padding: ${props => sizesStyles[props.size].padding};
|
|
33
|
-
${getRadius('
|
|
33
|
+
${getRadius('large')};
|
|
34
34
|
box-shadow: inset 0 0 0 var(--lns-formFieldBorderWidth)
|
|
35
35
|
var(--lns-color-formFieldBorder);
|
|
36
36
|
${props => getTextSize(sizesStyles[props.size].textSize)};
|
|
@@ -40,7 +40,7 @@ const ToastWrapper = styled.div `
|
|
|
40
40
|
background-color: ${getColorValue('background')};
|
|
41
41
|
color: ${getColorValue('body')};
|
|
42
42
|
${getShadow('large')};
|
|
43
|
-
${getRadius('
|
|
43
|
+
${getRadius('large')};
|
|
44
44
|
width: calc(100% - var(--lns-space-medium));
|
|
45
45
|
min-width: ${u(35)};
|
|
46
46
|
max-width: ${u(50)};
|
|
@@ -35,7 +35,7 @@ const tooltipYPadding = (tooltipMinHeight - textHeight) / 2;
|
|
|
35
35
|
const TooltipBoxWrapper = styled.div `
|
|
36
36
|
background-color: ${getColorValue('grey8')};
|
|
37
37
|
color: ${getColorValue('grey1')};
|
|
38
|
-
${getRadius('
|
|
38
|
+
${getRadius('large')};
|
|
39
39
|
${getFontWeight('medium')};
|
|
40
40
|
${getTextSize('small')};
|
|
41
41
|
${getShadow('medium')};
|
|
@@ -60,7 +60,7 @@ export const formFieldVariables = getCssVarsFromObject(undefined, {
|
|
|
60
60
|
formFieldBorderWidth: '1px',
|
|
61
61
|
formFieldBorderWidthFocus: '2px',
|
|
62
62
|
formFieldHeight: u(4.5),
|
|
63
|
-
formFieldRadius:
|
|
63
|
+
formFieldRadius: u(2.25),
|
|
64
64
|
formFieldHorizontalPadding: u(2),
|
|
65
65
|
formFieldBorderShadow: `
|
|
66
66
|
inset 0 0 0 var(--lns-formFieldBorderWidth) var(--lns-color-formFieldBorder)
|