@ndla/tooltip
Advanced tools
Comparing version 6.0.5 to 6.0.7
@@ -10,14 +10,16 @@ import _styled from "@emotion/styled/base"; | ||
import * as RadixTooltip from '@radix-ui/react-tooltip'; | ||
import { colors, fonts, misc, spacing } from '@ndla/core'; | ||
import * as RadixTooltip from '@radix-ui/react-tooltip'; | ||
import { jsx as _jsx } from "@emotion/react/jsx-runtime"; | ||
import { jsxs as _jsxs } from "@emotion/react/jsx-runtime"; | ||
var StyledContent = /*#__PURE__*/_styled(RadixTooltip.Content, { | ||
const StyledContent = /*#__PURE__*/_styled(RadixTooltip.Content, { | ||
target: "e1cifw4c0", | ||
label: "StyledContent" | ||
})("color:#fff;z-index:99999;border:0;background:", colors.text.primary, ";border-radius:", misc.borderRadius, ";padding:", spacing.xsmall, " ", spacing.small, ";font-family:", fonts.sans, ";", fonts.sizes('16px', '18px'), ";line-height:1.2;font-weight:", fonts.weight.normal, ";text-align:center;white-space:normal;max-width:calc(100vw - ", spacing.normal, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2x0aXAudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWFrRCIsImZpbGUiOiJUb29sdGlwLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ29weXJpZ2h0IChjKSAyMDIyLXByZXNlbnQsIE5ETEEuXG4gKlxuICogVGhpcyBzb3VyY2UgY29kZSBpcyBsaWNlbnNlZCB1bmRlciB0aGUgR1BMdjMgbGljZW5zZSBmb3VuZCBpbiB0aGVcbiAqIExJQ0VOU0UgZmlsZSBpbiB0aGUgcm9vdCBkaXJlY3Rvcnkgb2YgdGhpcyBzb3VyY2UgdHJlZS5cbiAqXG4gKi9cblxuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9z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lJvb3Q+XG4gICAgICAgIDxSYWRpeFRvb2x0aXAuVHJpZ2dlciBkYXRhLXRyaWdnZXIgYXNDaGlsZD5cbiAgICAgICAgICB7Y2hpbGRyZW59XG4gICAgICAgIDwvUmFkaXhUb29sdGlwLlRyaWdnZXI+XG4gICAgICAgIDxSYWRpeFRvb2x0aXAuUG9ydGFsPlxuICAgICAgICAgIDxTdHlsZWRDb250ZW50IGNsYXNzTmFtZT17Y2xhc3NOYW1lfSBzaWRlPXsnYm90dG9tJ30gYWxpZ249eydzdGFydCd9IHNpZGVPZmZzZXQ9ezEwfT5cbiAgICAgICAgICAgIHt0b29sdGlwfVxuICAgICAgICAgIDwvU3R5bGVkQ29udGVudD5cbiAgICAgICAgPC9SYWRpeFRvb2x0aXAuUG9ydGFsPlxuICAgICAgPC9SYWRpeFRvb2x0aXAuUm9vdD5cbiAgICA8L1JhZGl4VG9vbHRpcC5Qcm92aWRlcj5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFRvb2x0aXA7XG4iXX0= */")); | ||
var Tooltip = function Tooltip(_ref) { | ||
var children = _ref.children, | ||
tooltip = _ref.tooltip, | ||
className = _ref.className; | ||
})("color:#fff;z-index:99999;border:0;background:", colors.text.primary, ";border-radius:", misc.borderRadius, ";padding:", spacing.xsmall, " ", spacing.small, ";font-family:", fonts.sans, ";", fonts.sizes('16px', '18px'), ";line-height:1.2;font-weight:", fonts.weight.normal, ";text-align:center;white-space:normal;max-width:calc(100vw - ", spacing.normal, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2x0aXAudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWFrRCIsImZpbGUiOiJUb29sdGlwLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ29weXJpZ2h0IChjKSAyMDIyLXByZXNlbnQsIE5ETEEuXG4gKl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WNlIFByb3BzIHtcbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIHRvb2x0aXA6IFJlYWN0Tm9kZTtcbiAgY2xhc3NOYW1lPzogc3RyaW5nO1xufVxuXG5jb25zdCBUb29sdGlwID0gKHsgY2hpbGRyZW4sIHRvb2x0aXAsIGNsYXNzTmFtZSB9OiBQcm9wcykgPT4ge1xuICByZXR1cm4gKFxuICAgIDxSYWRpeFRvb2x0aXAuUHJvdmlkZXI+XG4gICAgICA8UmFkaXhUb29sdGlwLlJvb3Q+XG4gICAgICAgIDxSYWRpeFRvb2x0aXAuVHJpZ2dlciBkYXRhLXRyaWdnZXIgYXNDaGlsZD5cbiAgICAgICAgICB7Y2hpbGRyZW59XG4gICAgICAgIDwvUmFkaXhUb29sdGlwLlRyaWdnZXI+XG4gICAgICAgIDxSYWRpeFRvb2x0aXAuUG9ydGFsPlxuICAgICAgICAgIDxTdHlsZWRDb250ZW50IGNsYXNzTmFtZT17Y2xhc3NOYW1lfSBzaWRlPXsnYm90dG9tJ30gYWxpZ249eydzdGFydCd9IHNpZGVPZmZzZXQ9ezEwfT5cbiAgICAgICAgICAgIHt0b29sdGlwfVxuICAgICAgICAgIDwvU3R5bGVkQ29udGVudD5cbiAgICAgICAgPC9SYWRpeFRvb2x0aXAuUG9ydGFsPlxuICAgICAgPC9SYWRpeFRvb2x0aXAuUm9vdD5cbiAgICA8L1JhZGl4VG9vbHRpcC5Qcm92aWRlcj5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFRvb2x0aXA7XG4iXX0= */")); | ||
const Tooltip = _ref => { | ||
let { | ||
children, | ||
tooltip, | ||
className | ||
} = _ref; | ||
return _jsx(RadixTooltip.Provider, { | ||
@@ -24,0 +26,0 @@ children: _jsxs(RadixTooltip.Root, { |
@@ -16,3 +16,2 @@ "use strict"; | ||
*/ | ||
var _default = _Tooltip.default; | ||
exports.default = _default; | ||
var _default = exports.default = _Tooltip.default; |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -9,7 +8,7 @@ value: true | ||
var _base = _interopRequireDefault(require("@emotion/styled/base")); | ||
var RadixTooltip = _interopRequireWildcard(require("@radix-ui/react-tooltip")); | ||
var _core = require("@ndla/core"); | ||
var RadixTooltip = _interopRequireWildcard(require("@radix-ui/react-tooltip")); | ||
var _jsxRuntime = require("@emotion/react/jsx-runtime"); | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -24,10 +23,12 @@ /** | ||
var StyledContent = /*#__PURE__*/(0, _base.default)(RadixTooltip.Content, { | ||
const StyledContent = /*#__PURE__*/(0, _base.default)(RadixTooltip.Content, { | ||
target: "e1cifw4c0", | ||
label: "StyledContent" | ||
})("color:#fff;z-index:99999;border:0;background:", _core.colors.text.primary, ";border-radius:", _core.misc.borderRadius, ";padding:", _core.spacing.xsmall, " ", _core.spacing.small, ";font-family:", _core.fonts.sans, ";", _core.fonts.sizes('16px', '18px'), ";line-height:1.2;font-weight:", _core.fonts.weight.normal, ";text-align:center;white-space:normal;max-width:calc(100vw - ", _core.spacing.normal, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2x0aXAudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWFrRCIsImZpbGUiOiJUb29sdGlwLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ29weXJpZ2h0IChjKSAyMDIyLXByZXNlbnQsIE5ETEEuXG4gKlxuICogVGhpcyBzb3VyY2UgY29kZSBpcyBsaWNlbnNlZCB1bmRlciB0aGUgR1BMdjMgbGljZW5zZSBmb3VuZCBpbiB0aGVcbiAqIExJQ0VOU0UgZmlsZSBpbiB0aGUgcm9vdCBkaXJlY3Rvcnkgb2YgdGhpcyBzb3VyY2UgdHJlZS5cbiAqXG4gKi9cblxuaW1wb3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ge1xuICByZXR1cm4gKFxuICAgIDxSYWRpeFRvb2x0aXAuUHJvdmlkZXI+XG4gICAgICA8UmFkaXhUb29sdGlwLlJvb3Q+XG4gICAgICAgIDxSYWRpeFRvb2x0aXAuVHJpZ2dlciBkYXRhLXRyaWdnZXIgYXNDaGlsZD5cbiAgICAgICAgICB7Y2hpbGRyZW59XG4gICAgICAgIDwvUmFkaXhUb29sdGlwLlRyaWdnZXI+XG4gICAgICAgIDxSYWRpeFRvb2x0aXAuUG9ydGFsPlxuICAgICAgICAgIDxTdHlsZWRDb250ZW50IGNsYXNzTmFtZT17Y2xhc3NOYW1lfSBzaWRlPXsnYm90dG9tJ30gYWxpZ249eydzdGFydCd9IHNpZGVPZmZzZXQ9ezEwfT5cbiAgICAgICAgICAgIHt0b29sdGlwfVxuICAgICAgICAgIDwvU3R5bGVkQ29udGVudD5cbiAgICAgICAgPC9SYWRpeFRvb2x0aXAuUG9ydGFsPlxuICAgICAgPC9SYWRpeFRvb2x0aXAuUm9vdD5cbiAgICA8L1JhZGl4VG9vbHRpcC5Qcm92aWRlcj5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFRvb2x0aXA7XG4iXX0= */")); | ||
var Tooltip = function Tooltip(_ref) { | ||
var children = _ref.children, | ||
tooltip = _ref.tooltip, | ||
className = _ref.className; | ||
})("color:#fff;z-index:99999;border:0;background:", _core.colors.text.primary, ";border-radius:", _core.misc.borderRadius, ";padding:", _core.spacing.xsmall, " ", _core.spacing.small, ";font-family:", _core.fonts.sans, ";", _core.fonts.sizes('16px', '18px'), ";line-height:1.2;font-weight:", _core.fonts.weight.normal, ";text-align:center;white-space:normal;max-width:calc(100vw - ", _core.spacing.normal, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2x0aXAudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWFrRCIsIm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GUtc3BhY2U6IG5vcm1hbDtcbiAgbWF4LXdpZHRoOiBjYWxjKDEwMHZ3IC0gJHtzcGFjaW5nLm5vcm1hbH0pO1xuYDtcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIHRvb2x0aXA6IFJlYWN0Tm9kZTtcbiAgY2xhc3NOYW1lPzogc3RyaW5nO1xufVxuXG5jb25zdCBUb29sdGlwID0gKHsgY2hpbGRyZW4sIHRvb2x0aXAsIGNsYXNzTmFtZSB9OiBQcm9wcykgPT4ge1xuICByZXR1cm4gKFxuICAgIDxSYWRpeFRvb2x0aXAuUHJvdmlkZXI+XG4gICAgICA8UmFkaXhUb29sdGlwLlJvb3Q+XG4gICAgICAgIDxSYWRpeFRvb2x0aXAuVHJpZ2dlciBkYXRhLXRyaWdnZXIgYXNDaGlsZD5cbiAgICAgICAgICB7Y2hpbGRyZW59XG4gICAgICAgIDwvUmFkaXhUb29sdGlwLlRyaWdnZXI+XG4gICAgICAgIDxSYWRpeFRvb2x0aXAuUG9ydGFsPlxuICAgICAgICAgIDxTdHlsZWRDb250ZW50IGNsYXNzTmFtZT17Y2xhc3NOYW1lfSBzaWRlPXsnYm90dG9tJ30gYWxpZ249eydzdGFydCd9IHNpZGVPZmZzZXQ9ezEwfT5cbiAgICAgICAgICAgIHt0b29sdGlwfVxuICAgICAgICAgIDwvU3R5bGVkQ29udGVudD5cbiAgICAgICAgPC9SYWRpeFRvb2x0aXAuUG9ydGFsPlxuICAgICAgPC9SYWRpeFRvb2x0aXAuUm9vdD5cbiAgICA8L1JhZGl4VG9vbHRpcC5Qcm92aWRlcj5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFRvb2x0aXA7XG4iXX0= */")); | ||
const Tooltip = _ref => { | ||
let { | ||
children, | ||
tooltip, | ||
className | ||
} = _ref; | ||
return (0, _jsxRuntime.jsx)(RadixTooltip.Provider, { | ||
@@ -51,3 +52,2 @@ children: (0, _jsxRuntime.jsxs)(RadixTooltip.Root, { | ||
}; | ||
var _default = Tooltip; | ||
exports.default = _default; | ||
var _default = exports.default = Tooltip; |
{ | ||
"name": "@ndla/tooltip", | ||
"version": "6.0.5", | ||
"version": "6.0.7", | ||
"description": "Tooltip component from NDLA", | ||
@@ -29,3 +29,3 @@ "license": "GPL-3.0", | ||
"dependencies": { | ||
"@ndla/core": "^4.2.7", | ||
"@ndla/core": "^4.2.9", | ||
"@radix-ui/react-tooltip": "^1.0.7" | ||
@@ -43,3 +43,3 @@ }, | ||
}, | ||
"gitHead": "4ef777000ee1a3e080e03e7ef32521abf6d7d0fd" | ||
"gitHead": "5c65dfc8de95fb464182f86a40b74868ca30a29e" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
46590
154
Updated@ndla/core@^4.2.9