@nulogy/components 7.3.0 → 7.5.0
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/main.js
CHANGED
|
@@ -16153,7 +16153,11 @@
|
|
|
16153
16153
|
var _hover, _active, _hoverActive, _focus, _ref3;
|
|
16154
16154
|
|
|
16155
16155
|
var disabled = _ref2.disabled,
|
|
16156
|
+
hoverBackgroundColor = _ref2.hoverBackgroundColor,
|
|
16156
16157
|
theme = _ref2.theme;
|
|
16158
|
+
|
|
16159
|
+
var _a;
|
|
16160
|
+
|
|
16157
16161
|
return _ref3 = {
|
|
16158
16162
|
background: "transparent",
|
|
16159
16163
|
border: "none",
|
|
@@ -16172,7 +16176,7 @@
|
|
|
16172
16176
|
}, _ref3["" + HoverText] = {
|
|
16173
16177
|
opacity: "0"
|
|
16174
16178
|
}, _ref3["&:hover"] = (_hover = {}, _hover["" + Icon] = {
|
|
16175
|
-
backgroundColor: theme.colors
|
|
16179
|
+
backgroundColor: (_a = theme.colors[hoverBackgroundColor]) !== null && _a !== void 0 ? _a : hoverBackgroundColor
|
|
16176
16180
|
}, _hover["" + HoverText] = {
|
|
16177
16181
|
opacity: "1"
|
|
16178
16182
|
}, _hover), _ref3["&:active"] = (_active = {}, _active["" + Icon] = {
|
|
@@ -16196,18 +16200,21 @@
|
|
|
16196
16200
|
var children = _a.children,
|
|
16197
16201
|
_a$color = _a.color,
|
|
16198
16202
|
color = _a$color === void 0 ? "darkBlue" : _a$color,
|
|
16203
|
+
_a$hoverBackgroundCol = _a.hoverBackgroundColor,
|
|
16204
|
+
hoverBackgroundColor = _a$hoverBackgroundCol === void 0 ? "lightBlue" : _a$hoverBackgroundCol,
|
|
16199
16205
|
icon = _a.icon,
|
|
16200
16206
|
labelHidden = _a.labelHidden,
|
|
16201
16207
|
className = _a.className,
|
|
16202
16208
|
iconSize = _a.iconSize,
|
|
16203
16209
|
fontSize = _a.fontSize,
|
|
16204
16210
|
tooltip = _a.tooltip,
|
|
16205
|
-
props = __rest(_a, ["children", "color", "icon", "labelHidden", "className", "iconSize", "fontSize", "tooltip"]);
|
|
16211
|
+
props = __rest(_a, ["children", "color", "hoverBackgroundColor", "icon", "labelHidden", "className", "iconSize", "fontSize", "tooltip"]);
|
|
16206
16212
|
|
|
16207
16213
|
return /*#__PURE__*/React__default['default'].createElement(WrapperButton$1, Object.assign({
|
|
16208
16214
|
ref: forwardedRef,
|
|
16209
16215
|
"aria-label": props["aria-label"] ? props["aria-label"] : typeof children === "string" ? children : undefined,
|
|
16210
|
-
className: className
|
|
16216
|
+
className: className,
|
|
16217
|
+
hoverBackgroundColor: hoverBackgroundColor
|
|
16211
16218
|
}, props), /*#__PURE__*/React__default['default'].createElement(Manager$2, null, /*#__PURE__*/React__default['default'].createElement(Reference$2, null, function (_ref4) {
|
|
16212
16219
|
var ref = _ref4.ref;
|
|
16213
16220
|
return /*#__PURE__*/React__default['default'].createElement(Icon, {
|
|
@@ -16713,6 +16720,10 @@
|
|
|
16713
16720
|
};
|
|
16714
16721
|
|
|
16715
16722
|
var sizes$1 = {
|
|
16723
|
+
small: {
|
|
16724
|
+
height: "24px",
|
|
16725
|
+
width: "28px"
|
|
16726
|
+
},
|
|
16716
16727
|
medium: {
|
|
16717
16728
|
height: "32px",
|
|
16718
16729
|
width: "37px"
|
package/dist/main.module.js
CHANGED
|
@@ -16127,7 +16127,11 @@ var WrapperButton$1 = styled.button.withConfig({
|
|
|
16127
16127
|
var _hover, _active, _hoverActive, _focus, _ref3;
|
|
16128
16128
|
|
|
16129
16129
|
var disabled = _ref2.disabled,
|
|
16130
|
+
hoverBackgroundColor = _ref2.hoverBackgroundColor,
|
|
16130
16131
|
theme = _ref2.theme;
|
|
16132
|
+
|
|
16133
|
+
var _a;
|
|
16134
|
+
|
|
16131
16135
|
return _ref3 = {
|
|
16132
16136
|
background: "transparent",
|
|
16133
16137
|
border: "none",
|
|
@@ -16146,7 +16150,7 @@ var WrapperButton$1 = styled.button.withConfig({
|
|
|
16146
16150
|
}, _ref3["" + HoverText] = {
|
|
16147
16151
|
opacity: "0"
|
|
16148
16152
|
}, _ref3["&:hover"] = (_hover = {}, _hover["" + Icon] = {
|
|
16149
|
-
backgroundColor: theme.colors
|
|
16153
|
+
backgroundColor: (_a = theme.colors[hoverBackgroundColor]) !== null && _a !== void 0 ? _a : hoverBackgroundColor
|
|
16150
16154
|
}, _hover["" + HoverText] = {
|
|
16151
16155
|
opacity: "1"
|
|
16152
16156
|
}, _hover), _ref3["&:active"] = (_active = {}, _active["" + Icon] = {
|
|
@@ -16170,18 +16174,21 @@ var IconicButton = /*#__PURE__*/React__default.forwardRef(function (_a, forwarde
|
|
|
16170
16174
|
var children = _a.children,
|
|
16171
16175
|
_a$color = _a.color,
|
|
16172
16176
|
color = _a$color === void 0 ? "darkBlue" : _a$color,
|
|
16177
|
+
_a$hoverBackgroundCol = _a.hoverBackgroundColor,
|
|
16178
|
+
hoverBackgroundColor = _a$hoverBackgroundCol === void 0 ? "lightBlue" : _a$hoverBackgroundCol,
|
|
16173
16179
|
icon = _a.icon,
|
|
16174
16180
|
labelHidden = _a.labelHidden,
|
|
16175
16181
|
className = _a.className,
|
|
16176
16182
|
iconSize = _a.iconSize,
|
|
16177
16183
|
fontSize = _a.fontSize,
|
|
16178
16184
|
tooltip = _a.tooltip,
|
|
16179
|
-
props = __rest(_a, ["children", "color", "icon", "labelHidden", "className", "iconSize", "fontSize", "tooltip"]);
|
|
16185
|
+
props = __rest(_a, ["children", "color", "hoverBackgroundColor", "icon", "labelHidden", "className", "iconSize", "fontSize", "tooltip"]);
|
|
16180
16186
|
|
|
16181
16187
|
return /*#__PURE__*/React__default.createElement(WrapperButton$1, Object.assign({
|
|
16182
16188
|
ref: forwardedRef,
|
|
16183
16189
|
"aria-label": props["aria-label"] ? props["aria-label"] : typeof children === "string" ? children : undefined,
|
|
16184
|
-
className: className
|
|
16190
|
+
className: className,
|
|
16191
|
+
hoverBackgroundColor: hoverBackgroundColor
|
|
16185
16192
|
}, props), /*#__PURE__*/React__default.createElement(Manager$2, null, /*#__PURE__*/React__default.createElement(Reference$2, null, function (_ref4) {
|
|
16186
16193
|
var ref = _ref4.ref;
|
|
16187
16194
|
return /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -16687,6 +16694,10 @@ BrandingText.defaultProps = {
|
|
|
16687
16694
|
};
|
|
16688
16695
|
|
|
16689
16696
|
var sizes$1 = {
|
|
16697
|
+
small: {
|
|
16698
|
+
height: "24px",
|
|
16699
|
+
width: "28px"
|
|
16700
|
+
},
|
|
16690
16701
|
medium: {
|
|
16691
16702
|
height: "32px",
|
|
16692
16703
|
width: "37px"
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SpaceProps } from "styled-system";
|
|
3
|
-
declare type
|
|
3
|
+
declare type BaseProps = {
|
|
4
4
|
color?: string;
|
|
5
5
|
labelHidden?: boolean;
|
|
6
6
|
icon?: any;
|
|
7
7
|
iconSize?: string;
|
|
8
|
+
hoverBackgroundColor?: string;
|
|
8
9
|
fontSize?: string;
|
|
9
10
|
tooltip?: string;
|
|
10
11
|
};
|
|
11
|
-
declare const IconicButton: React.ForwardRefExoticComponent<
|
|
12
|
+
declare const IconicButton: React.ForwardRefExoticComponent<BaseProps & SpaceProps<Required<import("styled-system").Theme<React.ReactText>>, string | number | symbol> & Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "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" | "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"> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
13
|
export declare const iconNames: string[];
|
|
13
14
|
export default IconicButton;
|