@teselagen/ui 0.4.6 → 0.4.7
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/index.cjs.js +251 -198
- package/index.es.js +251 -198
- package/package.json +1 -1
- package/src/style.css +6 -0
- package/src/utils/menuUtils.js +6 -4
- package/style.css +6 -1
package/package.json
CHANGED
package/src/style.css
CHANGED
|
@@ -246,3 +246,9 @@ button:not(:disabled):active {
|
|
|
246
246
|
.bp3-dialog-header .bp3-heading {
|
|
247
247
|
width: 10px; /* tnw: this is a hack to prevent the dialog title from causing the dialog width to expand larger than the dialog content*/
|
|
248
248
|
}
|
|
249
|
+
|
|
250
|
+
/* to fix tooltip styling issue - https://github.com/palantir/blueprint/issues/3430 */
|
|
251
|
+
.bp3-popover[style*="transform-origin"][style*="bottom"] .bp3-popover-arrow { transform: translate(0, -.5px); }
|
|
252
|
+
.bp3-popover[style*="transform-origin"][style*="left"] .bp3-popover-arrow { transform: translate(.5px, 0); }
|
|
253
|
+
.bp3-popover[style*="transform-origin"][style*="top"] .bp3-popover-arrow { transform: translate(0, .5px); }
|
|
254
|
+
.bp3-popover[style*="transform-origin"][style*="right"] .bp3-popover-arrow { transform: translate(-.5px, 0); }
|
package/src/utils/menuUtils.js
CHANGED
|
@@ -30,11 +30,13 @@ function MenuItemLink({ text, onClick, icon, navTo, active }) {
|
|
|
30
30
|
|
|
31
31
|
return (
|
|
32
32
|
<li className={Classes.POPOVER_DISMISS} onClick={onClick}>
|
|
33
|
-
<Link
|
|
34
|
-
|
|
33
|
+
<Link
|
|
34
|
+
onClick={handleLinkClick}
|
|
35
|
+
to={navTo}
|
|
36
|
+
className={classNames(Classes.MENU_ITEM, {
|
|
35
37
|
[Classes.ACTIVE]: active
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
+
})}
|
|
39
|
+
>
|
|
38
40
|
{icon && <Icon icon={icon} />}
|
|
39
41
|
<div className="bp3-text-overflow-ellipsis bp3-fill">{text}</div>
|
|
40
42
|
</Link>
|
package/style.css
CHANGED
|
@@ -9064,7 +9064,12 @@ button:not(:disabled):active {
|
|
|
9064
9064
|
.bp3-dialog-header .bp3-heading {
|
|
9065
9065
|
width: 10px; /* tnw: this is a hack to prevent the dialog title from causing the dialog width to expand larger than the dialog content*/
|
|
9066
9066
|
}
|
|
9067
|
-
|
|
9067
|
+
|
|
9068
|
+
/* to fix tooltip styling issue - https://github.com/palantir/blueprint/issues/3430 */
|
|
9069
|
+
.bp3-popover[style*="transform-origin"][style*="bottom"] .bp3-popover-arrow { transform: translate(0, -.5px); }
|
|
9070
|
+
.bp3-popover[style*="transform-origin"][style*="left"] .bp3-popover-arrow { transform: translate(.5px, 0); }
|
|
9071
|
+
.bp3-popover[style*="transform-origin"][style*="top"] .bp3-popover-arrow { transform: translate(0, .5px); }
|
|
9072
|
+
.bp3-popover[style*="transform-origin"][style*="right"] .bp3-popover-arrow { transform: translate(-.5px, 0); }.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.rg-celleditor-input,
|
|
9068
9073
|
.rg-celleditor input {
|
|
9069
9074
|
border: none;
|
|
9070
9075
|
}
|