@nectary/components 5.0.1 → 5.0.3
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/accordion/index.js +1 -1
- package/accordion-item/index.js +1 -1
- package/action-menu/index.js +1 -1
- package/action-menu-option/index.js +1 -1
- package/alert/index.js +1 -1
- package/avatar/index.js +1 -1
- package/badge/index.js +1 -1
- package/bundle.js +77 -77
- package/button/index.js +1 -1
- package/button-group/index.js +1 -1
- package/button-group-item/index.js +1 -1
- package/card-container/index.js +1 -1
- package/card-v2/index.js +1 -1
- package/card-v2-title/index.js +1 -1
- package/checkbox/index.js +1 -1
- package/chip/index.js +1 -1
- package/code-tag/index.js +1 -1
- package/color-menu/index.js +1 -1
- package/color-menu-option/index.js +1 -1
- package/color-swatch/index.js +1 -1
- package/date-picker/index.js +1 -1
- package/dialog/index.js +1 -1
- package/emoji/index.js +1 -1
- package/emoji-picker/index.js +1 -1
- package/field/index.js +1 -1
- package/file-drop/index.js +1 -1
- package/file-picker/index.js +1 -1
- package/file-status/index.js +1 -1
- package/flag/index.js +1 -1
- package/grid/index.js +1 -1
- package/grid-item/index.js +1 -1
- package/help-tooltip/index.js +1 -1
- package/icon/index.js +1 -1
- package/inline-alert/index.js +1 -1
- package/input/index.js +1 -1
- package/link/index.js +1 -1
- package/list/index.js +1 -1
- package/list-item/index.js +1 -1
- package/package.json +3 -3
- package/pagination/index.js +1 -1
- package/persistent-overlay/index.js +1 -1
- package/pop/index.js +1 -1
- package/popover/index.js +1 -1
- package/progress/index.js +1 -1
- package/progress-stepper/index.js +1 -1
- package/progress-stepper-item/index.js +1 -1
- package/radio/index.js +1 -1
- package/radio-option/index.js +1 -1
- package/rich-text/index.js +1 -1
- package/rich-textarea/index.js +1 -1
- package/segment-collapse/index.js +1 -1
- package/segmented-control/index.js +1 -1
- package/segmented-control-option/index.js +1 -1
- package/segmented-icon-control/index.js +1 -1
- package/segmented-icon-control-option/index.js +1 -1
- package/select-button/index.js +1 -1
- package/select-menu/index.js +1 -1
- package/select-menu-option/index.js +1 -1
- package/skeleton/index.js +1 -1
- package/skeleton-item/index.js +1 -1
- package/spinner/index.js +1 -1
- package/table/index.js +1 -1
- package/table-body/index.js +1 -1
- package/table-cell/index.js +1 -1
- package/table-head/index.js +1 -1
- package/table-head-cell/index.js +1 -1
- package/table-row/index.js +1 -1
- package/tabs/index.js +1 -1
- package/tabs-icon-option/index.js +1 -1
- package/tabs-option/index.js +1 -1
- package/tag/index.js +1 -1
- package/text/index.js +1 -1
- package/textarea/index.js +1 -1
- package/time-picker/index.js +1 -1
- package/title/index.js +1 -1
- package/toast/index.js +1 -1
- package/toast-manager/index.js +1 -1
- package/toggle/index.js +1 -1
- package/tooltip/index.js +1 -1
package/tooltip/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { rectOverlap } from "../utils/rect.js";
|
|
|
6
6
|
import { getReactEventHandler } from "../utils/get-react-event-handler.js";
|
|
7
7
|
import { TooltipState } from "./tooltip-state.js";
|
|
8
8
|
import { getPopOrientation, orientationValues, textAlignValues, typeValues } from "./utils.js";
|
|
9
|
-
const templateHTML = '<style
|
|
9
|
+
const templateHTML = '<style>:host{display:contents}#content-wrapper{padding-bottom:8px;filter:drop-shadow(var(--sinch-comp-tooltip-shadow))}:host([orientation=left]) #content-wrapper{padding-bottom:0;padding-right:8px}:host([orientation=right]) #content-wrapper{padding-bottom:0;padding-left:8px}:host([orientation^=bottom]) #content-wrapper{padding-bottom:0;padding-top:8px}#content{position:relative;display:block;max-width:300px;padding:2px 6px;box-sizing:border-box;background-color:var(--sinch-local-color-background);border-radius:var(--sinch-comp-tooltip-shape-radius);pointer-events:none;opacity:0;--sinch-local-color-background:var(--sinch-comp-tooltip-color-background);--sinch-global-color-text:var(--sinch-comp-tooltip-color-text)}#text{word-break:break-word;pointer-events:none;--sinch-comp-text-font:var(--sinch-comp-tooltip-font-body)}#tip{position:absolute;left:50%;top:100%;transform:translateX(-50%) rotate(0);transform-origin:top center;fill:var(--sinch-local-color-background);pointer-events:none}#tip.hidden{display:none}:host([orientation=left]) #tip{transform:translateX(-50%) rotate(270deg);top:50%;left:100%}:host([orientation=right]) #tip{transform:translateX(-50%) rotate(90deg);top:50%;left:0}:host([orientation^=bottom]) #tip{transform:translateX(-50%) rotate(180deg);top:0}:host([text-align=right]) #text{--sinch-comp-text-align:right}:host([text-align=center]) #text{--sinch-comp-text-align:center}:host([text-align=left]) #text{--sinch-comp-text-align:left}</style><sinch-pop id="pop"><slot id="target" slot="target"></slot><div id="content-wrapper" slot="content"><div id="content"><sinch-text id="text" type="s"></sinch-text><svg id="tip" width="8" height="4" aria-hidden="true"><path d="m4 4 4-4h-8l4 4Z"/></svg></div></div></sinch-pop>';
|
|
10
10
|
const TIP_SIZE = 8;
|
|
11
11
|
const SHOW_DELAY_SLOW = 1e3;
|
|
12
12
|
const SHOW_DELAY_FAST = 250;
|