@atlaskit/onboarding
Advanced tools
Comparing version 11.5.5 to 11.5.6
@@ -15,3 +15,2 @@ "use strict"; | ||
var _primitives = require("@atlaskit/primitives"); | ||
var _components = require("@atlaskit/theme/components"); | ||
var _dialog = require("../styled/dialog"); | ||
@@ -21,3 +20,2 @@ var _theme = require("./theme"); | ||
/** @jsx jsx */ | ||
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports | ||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | ||
@@ -69,10 +67,3 @@ 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; } | ||
}); | ||
/** | ||
* @deprecated | ||
*/ | ||
var Theme = (0, _components.createTheme)(function () { | ||
return {}; | ||
}); | ||
/** | ||
* __Spotlight card__ | ||
@@ -110,34 +101,30 @@ * | ||
value: _theme.spotlightButtonTheme | ||
}, (0, _react2.jsx)(Theme.Provider, { | ||
value: undefined | ||
}, (0, _react2.jsx)(Theme.Consumer, null, function () { | ||
return (0, _react2.jsx)(_primitives.Box, { | ||
backgroundColor: "color.background.discovery.bold", | ||
xcss: [containerStyles, !isFlat && containerShadowStyles], | ||
style: { | ||
width: width | ||
}, | ||
ref: ref || innerRef, | ||
testId: testId | ||
}, typeof image === 'string' ? (0, _react2.jsx)("img", { | ||
css: imageStyles, | ||
src: image, | ||
alt: "" | ||
}) : image, (0, _react2.jsx)("div", { | ||
css: bodyStyles | ||
}, heading || headingAfterElement ? (0, _react2.jsx)(Header, null, (0, _react2.jsx)(_heading.default, { | ||
id: headingId, | ||
size: "medium", | ||
as: "h".concat(headingLevel) | ||
}, heading), headingAfterElement) : null, (0, _react2.jsx)(_primitives.Text, null, children), actions.length > 0 || actionsBeforeElement ? (0, _react2.jsx)(Footer, null, actionsBeforeElement || (0, _react2.jsx)("span", null), (0, _react2.jsx)(_dialog.DialogActionItemContainer, null, actions.map(function (_ref3, idx) { | ||
var text = _ref3.text, | ||
key = _ref3.key, | ||
rest = (0, _objectWithoutProperties2.default)(_ref3, _excluded); | ||
return (0, _react2.jsx)(_dialog.DialogActionItem, { | ||
key: key || (typeof text === 'string' ? text : "".concat(idx)) | ||
}, (0, _react2.jsx)(_customThemeButton.default, rest, text)); | ||
}))) : null)); | ||
}))); | ||
}, (0, _react2.jsx)(_primitives.Box, { | ||
backgroundColor: "color.background.discovery.bold", | ||
xcss: [containerStyles, !isFlat && containerShadowStyles], | ||
style: { | ||
width: width | ||
}, | ||
ref: ref || innerRef, | ||
testId: testId | ||
}, typeof image === 'string' ? (0, _react2.jsx)("img", { | ||
css: imageStyles, | ||
src: image, | ||
alt: "" | ||
}) : image, (0, _react2.jsx)("div", { | ||
css: bodyStyles | ||
}, heading || headingAfterElement ? (0, _react2.jsx)(Header, null, (0, _react2.jsx)(_heading.default, { | ||
id: headingId, | ||
size: "medium", | ||
as: "h".concat(headingLevel) | ||
}, heading), headingAfterElement) : null, (0, _react2.jsx)(_primitives.Text, null, children), actions.length > 0 || actionsBeforeElement ? (0, _react2.jsx)(Footer, null, actionsBeforeElement || (0, _react2.jsx)("span", null), (0, _react2.jsx)(_dialog.DialogActionItemContainer, null, actions.map(function (_ref3, idx) { | ||
var text = _ref3.text, | ||
key = _ref3.key, | ||
rest = (0, _objectWithoutProperties2.default)(_ref3, _excluded); | ||
return (0, _react2.jsx)(_dialog.DialogActionItem, { | ||
key: key || (typeof text === 'string' ? text : "".concat(idx)) | ||
}, (0, _react2.jsx)(_customThemeButton.default, rest, text)); | ||
}))) : null))); | ||
}); | ||
SpotlightCard.displayName = 'SpotlightCard'; | ||
var _default = exports.default = SpotlightCard; |
@@ -30,3 +30,3 @@ "use strict"; | ||
var packageName = "@atlaskit/onboarding"; | ||
var packageVersion = "11.5.5"; | ||
var packageVersion = "11.5.6"; | ||
var SpotlightDialog = /*#__PURE__*/function (_Component) { | ||
@@ -33,0 +33,0 @@ (0, _inherits2.default)(SpotlightDialog, _Component); |
@@ -7,4 +7,2 @@ /** @jsx jsx */ | ||
import { Box, Text, xcss } from '@atlaskit/primitives'; | ||
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports | ||
import { createTheme } from '@atlaskit/theme/components'; | ||
import { DialogActionItem, DialogActionItemContainer } from '../styled/dialog'; | ||
@@ -54,8 +52,3 @@ import { spotlightButtonTheme } from './theme'; | ||
}); | ||
/** | ||
* @deprecated | ||
*/ | ||
const Theme = createTheme(() => ({})); | ||
/** | ||
* __Spotlight card__ | ||
@@ -91,5 +84,3 @@ * | ||
value: spotlightButtonTheme | ||
}, jsx(Theme.Provider, { | ||
value: undefined | ||
}, jsx(Theme.Consumer, null, () => jsx(Box, { | ||
}, jsx(Box, { | ||
backgroundColor: "color.background.discovery.bold", | ||
@@ -120,5 +111,5 @@ xcss: [containerStyles, !isFlat && containerShadowStyles], | ||
}, jsx(Button, rest, text)); | ||
}))) : null))))); | ||
}))) : null))); | ||
}); | ||
SpotlightCard.displayName = 'SpotlightCard'; | ||
export default SpotlightCard; |
@@ -10,3 +10,3 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty"; | ||
const packageName = "@atlaskit/onboarding"; | ||
const packageVersion = "11.5.5"; | ||
const packageVersion = "11.5.6"; | ||
class SpotlightDialog extends Component { | ||
@@ -13,0 +13,0 @@ constructor(...args) { |
@@ -9,4 +9,2 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; | ||
import { Box, Text, xcss } from '@atlaskit/primitives'; | ||
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports | ||
import { createTheme } from '@atlaskit/theme/components'; | ||
import { DialogActionItem, DialogActionItemContainer } from '../styled/dialog'; | ||
@@ -58,10 +56,3 @@ import { spotlightButtonTheme } from './theme'; | ||
}); | ||
/** | ||
* @deprecated | ||
*/ | ||
var Theme = createTheme(function () { | ||
return {}; | ||
}); | ||
/** | ||
* __Spotlight card__ | ||
@@ -99,34 +90,30 @@ * | ||
value: spotlightButtonTheme | ||
}, jsx(Theme.Provider, { | ||
value: undefined | ||
}, jsx(Theme.Consumer, null, function () { | ||
return jsx(Box, { | ||
backgroundColor: "color.background.discovery.bold", | ||
xcss: [containerStyles, !isFlat && containerShadowStyles], | ||
style: { | ||
width: width | ||
}, | ||
ref: ref || innerRef, | ||
testId: testId | ||
}, typeof image === 'string' ? jsx("img", { | ||
css: imageStyles, | ||
src: image, | ||
alt: "" | ||
}) : image, jsx("div", { | ||
css: bodyStyles | ||
}, heading || headingAfterElement ? jsx(Header, null, jsx(Heading, { | ||
id: headingId, | ||
size: "medium", | ||
as: "h".concat(headingLevel) | ||
}, heading), headingAfterElement) : null, jsx(Text, null, children), actions.length > 0 || actionsBeforeElement ? jsx(Footer, null, actionsBeforeElement || jsx("span", null), jsx(DialogActionItemContainer, null, actions.map(function (_ref3, idx) { | ||
var text = _ref3.text, | ||
key = _ref3.key, | ||
rest = _objectWithoutProperties(_ref3, _excluded); | ||
return jsx(DialogActionItem, { | ||
key: key || (typeof text === 'string' ? text : "".concat(idx)) | ||
}, jsx(Button, rest, text)); | ||
}))) : null)); | ||
}))); | ||
}, jsx(Box, { | ||
backgroundColor: "color.background.discovery.bold", | ||
xcss: [containerStyles, !isFlat && containerShadowStyles], | ||
style: { | ||
width: width | ||
}, | ||
ref: ref || innerRef, | ||
testId: testId | ||
}, typeof image === 'string' ? jsx("img", { | ||
css: imageStyles, | ||
src: image, | ||
alt: "" | ||
}) : image, jsx("div", { | ||
css: bodyStyles | ||
}, heading || headingAfterElement ? jsx(Header, null, jsx(Heading, { | ||
id: headingId, | ||
size: "medium", | ||
as: "h".concat(headingLevel) | ||
}, heading), headingAfterElement) : null, jsx(Text, null, children), actions.length > 0 || actionsBeforeElement ? jsx(Footer, null, actionsBeforeElement || jsx("span", null), jsx(DialogActionItemContainer, null, actions.map(function (_ref3, idx) { | ||
var text = _ref3.text, | ||
key = _ref3.key, | ||
rest = _objectWithoutProperties(_ref3, _excluded); | ||
return jsx(DialogActionItem, { | ||
key: key || (typeof text === 'string' ? text : "".concat(idx)) | ||
}, jsx(Button, rest, text)); | ||
}))) : null))); | ||
}); | ||
SpotlightCard.displayName = 'SpotlightCard'; | ||
export default SpotlightCard; |
@@ -20,3 +20,3 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
var packageName = "@atlaskit/onboarding"; | ||
var packageVersion = "11.5.5"; | ||
var packageVersion = "11.5.6"; | ||
var SpotlightDialog = /*#__PURE__*/function (_Component) { | ||
@@ -23,0 +23,0 @@ _inherits(SpotlightDialog, _Component); |
{ | ||
"name": "@atlaskit/onboarding", | ||
"version": "11.5.5", | ||
"version": "11.5.6", | ||
"description": "An onboarding spotlight introduces new features to users through focused messages or multi-step tours.", | ||
@@ -48,8 +48,8 @@ "publishConfig": { | ||
"@atlaskit/modal-dialog": "^12.13.0", | ||
"@atlaskit/motion": "^1.5.0", | ||
"@atlaskit/motion": "^1.6.0", | ||
"@atlaskit/popper": "^5.5.0", | ||
"@atlaskit/portal": "^4.5.0", | ||
"@atlaskit/primitives": "^6.1.0", | ||
"@atlaskit/theme": "^12.7.0", | ||
"@atlaskit/tokens": "^1.45.0", | ||
"@atlaskit/theme": "^12.8.0", | ||
"@atlaskit/tokens": "^1.48.0", | ||
"@babel/runtime": "^7.0.0", | ||
@@ -56,0 +56,0 @@ "@emotion/react": "^11.7.1", |
Sorry, the diff of this file is too big to display
307668
6059
Updated@atlaskit/motion@^1.6.0
Updated@atlaskit/theme@^12.8.0
Updated@atlaskit/tokens@^1.48.0