@atlaskit/spotlight 0.0.12 → 0.0.13

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/spotlight
2
2
 
3
+ ## 0.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [`15963c2a4fb01`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/15963c2a4fb01) -
8
+ Create StepCount component.
9
+
3
10
  ## 0.0.12
4
11
 
5
12
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -93,6 +93,12 @@ Object.defineProperty(exports, "SpotlightShowMoreControl", {
93
93
  return _showMoreControl.SpotlightShowMoreControl;
94
94
  }
95
95
  });
96
+ Object.defineProperty(exports, "SpotlightStepCount", {
97
+ enumerable: true,
98
+ get: function get() {
99
+ return _stepCount.SpotlightStepCount;
100
+ }
101
+ });
96
102
  Object.defineProperty(exports, "TourContext", {
97
103
  enumerable: true,
98
104
  get: function get() {
@@ -111,6 +117,7 @@ var _header = require("./ui/header");
111
117
  var _headline = require("./ui/headline");
112
118
  var _footer = require("./ui/footer");
113
119
  var _actions = require("./ui/actions");
120
+ var _stepCount = require("./ui/step-count");
114
121
  var _primaryAction = require("./ui/primary-action");
115
122
  var _secondaryAction = require("./ui/secondary-action");
116
123
  var _controls = require("./ui/controls");
@@ -0,0 +1 @@
1
+ ._1ul91ris{min-width:max-content}
@@ -0,0 +1,32 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ "use strict";
3
+
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.SpotlightStepCount = void 0;
9
+ require("./index.compiled.css");
10
+ var _runtime = require("@compiled/react/runtime");
11
+ var _react = _interopRequireWildcard(require("react"));
12
+ var _compiled = require("@atlaskit/primitives/compiled");
13
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
14
+ var styles = {
15
+ root: "_1ul91ris"
16
+ };
17
+ /**
18
+ * __Spotlight StepCount__
19
+ *
20
+ * `SpotlightStepCount` groups `SpotlightAction` components.
21
+ *
22
+ */
23
+ var SpotlightStepCount = exports.SpotlightStepCount = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
24
+ var children = _ref.children,
25
+ testId = _ref.testId;
26
+ return /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
27
+ xcss: styles.root
28
+ }, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
29
+ ref: ref,
30
+ testId: testId
31
+ }, children));
32
+ });
@@ -4,6 +4,7 @@ export { SpotlightHeader } from './ui/header';
4
4
  export { SpotlightHeadline } from './ui/headline';
5
5
  export { SpotlightFooter } from './ui/footer';
6
6
  export { SpotlightActions } from './ui/actions';
7
+ export { SpotlightStepCount } from './ui/step-count';
7
8
  export { SpotlightPrimaryAction } from './ui/primary-action';
8
9
  export { SpotlightSecondaryAction } from './ui/secondary-action';
9
10
  export { SpotlightControls } from './ui/controls';
@@ -0,0 +1 @@
1
+ ._1ul91ris{min-width:max-content}
@@ -0,0 +1,25 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React, { forwardRef } from 'react';
5
+ import { Flex, Text } from '@atlaskit/primitives/compiled';
6
+ const styles = {
7
+ root: "_1ul91ris"
8
+ };
9
+ /**
10
+ * __Spotlight StepCount__
11
+ *
12
+ * `SpotlightStepCount` groups `SpotlightAction` components.
13
+ *
14
+ */
15
+ export const SpotlightStepCount = /*#__PURE__*/forwardRef(({
16
+ children,
17
+ testId
18
+ }, ref) => {
19
+ return /*#__PURE__*/React.createElement(Flex, {
20
+ xcss: styles.root
21
+ }, /*#__PURE__*/React.createElement(Text, {
22
+ ref: ref,
23
+ testId: testId
24
+ }, children));
25
+ });
package/dist/esm/index.js CHANGED
@@ -4,6 +4,7 @@ export { SpotlightHeader } from './ui/header';
4
4
  export { SpotlightHeadline } from './ui/headline';
5
5
  export { SpotlightFooter } from './ui/footer';
6
6
  export { SpotlightActions } from './ui/actions';
7
+ export { SpotlightStepCount } from './ui/step-count';
7
8
  export { SpotlightPrimaryAction } from './ui/primary-action';
8
9
  export { SpotlightSecondaryAction } from './ui/secondary-action';
9
10
  export { SpotlightControls } from './ui/controls';
@@ -0,0 +1 @@
1
+ ._1ul91ris{min-width:max-content}
@@ -0,0 +1,24 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React, { forwardRef } from 'react';
5
+ import { Flex, Text } from '@atlaskit/primitives/compiled';
6
+ var styles = {
7
+ root: "_1ul91ris"
8
+ };
9
+ /**
10
+ * __Spotlight StepCount__
11
+ *
12
+ * `SpotlightStepCount` groups `SpotlightAction` components.
13
+ *
14
+ */
15
+ export var SpotlightStepCount = /*#__PURE__*/forwardRef(function (_ref, ref) {
16
+ var children = _ref.children,
17
+ testId = _ref.testId;
18
+ return /*#__PURE__*/React.createElement(Flex, {
19
+ xcss: styles.root
20
+ }, /*#__PURE__*/React.createElement(Text, {
21
+ ref: ref,
22
+ testId: testId
23
+ }, children));
24
+ });
@@ -4,11 +4,12 @@ export { SpotlightHeader, type SpotlightHeaderProps } from './ui/header';
4
4
  export { SpotlightHeadline, type SpotlightHeadlineProps } from './ui/headline';
5
5
  export { SpotlightFooter, type SpotlightFooterProps } from './ui/footer';
6
6
  export { SpotlightActions, type SpotlightActionsProps } from './ui/actions';
7
+ export { SpotlightStepCount, type SpotlightStepCountProps } from './ui/step-count';
7
8
  export { SpotlightPrimaryAction, type SpotlightPrimaryActionProps } from './ui/primary-action';
8
9
  export { SpotlightSecondaryAction, type SpotlightSecondaryActionProps, } from './ui/secondary-action';
9
10
  export { SpotlightControls, type SpotlightControlsProps } from './ui/controls';
10
11
  export { SpotlightDismissControl, type SpotlightDismissControlProps } from './ui/dismiss-control';
11
- export { SpotlightShowMoreControl, type SpotlightShowMoreControlProps } from './ui/show-more-control';
12
+ export { SpotlightShowMoreControl, type SpotlightShowMoreControlProps, } from './ui/show-more-control';
12
13
  export { SpotlightMedia, type SpotlightMediaProps } from './ui/media';
13
14
  export { PopoverProvider } from './ui/popover-provider';
14
15
  export { PopoverContent } from './ui/popover-content';
@@ -0,0 +1,20 @@
1
+ import React, { type ReactNode } from 'react';
2
+ export interface SpotlightStepCountProps {
3
+ /**
4
+ * A `testId` prop is provided for specified elements, which is a unique
5
+ * string that appears as a data attribute `data-testid` in the rendered code,
6
+ * serving as a hook for automated tests
7
+ */
8
+ testId?: string;
9
+ /**
10
+ * Elements to be rendered inside the `SpotlightStepCount`.
11
+ */
12
+ children?: ReactNode;
13
+ }
14
+ /**
15
+ * __Spotlight StepCount__
16
+ *
17
+ * `SpotlightStepCount` groups `SpotlightAction` components.
18
+ *
19
+ */
20
+ export declare const SpotlightStepCount: React.ForwardRefExoticComponent<SpotlightStepCountProps & React.RefAttributes<HTMLSpanElement>>;
@@ -4,11 +4,12 @@ export { SpotlightHeader, type SpotlightHeaderProps } from './ui/header';
4
4
  export { SpotlightHeadline, type SpotlightHeadlineProps } from './ui/headline';
5
5
  export { SpotlightFooter, type SpotlightFooterProps } from './ui/footer';
6
6
  export { SpotlightActions, type SpotlightActionsProps } from './ui/actions';
7
+ export { SpotlightStepCount, type SpotlightStepCountProps } from './ui/step-count';
7
8
  export { SpotlightPrimaryAction, type SpotlightPrimaryActionProps } from './ui/primary-action';
8
9
  export { SpotlightSecondaryAction, type SpotlightSecondaryActionProps, } from './ui/secondary-action';
9
10
  export { SpotlightControls, type SpotlightControlsProps } from './ui/controls';
10
11
  export { SpotlightDismissControl, type SpotlightDismissControlProps } from './ui/dismiss-control';
11
- export { SpotlightShowMoreControl, type SpotlightShowMoreControlProps } from './ui/show-more-control';
12
+ export { SpotlightShowMoreControl, type SpotlightShowMoreControlProps, } from './ui/show-more-control';
12
13
  export { SpotlightMedia, type SpotlightMediaProps } from './ui/media';
13
14
  export { PopoverProvider } from './ui/popover-provider';
14
15
  export { PopoverContent } from './ui/popover-content';
@@ -0,0 +1,20 @@
1
+ import React, { type ReactNode } from 'react';
2
+ export interface SpotlightStepCountProps {
3
+ /**
4
+ * A `testId` prop is provided for specified elements, which is a unique
5
+ * string that appears as a data attribute `data-testid` in the rendered code,
6
+ * serving as a hook for automated tests
7
+ */
8
+ testId?: string;
9
+ /**
10
+ * Elements to be rendered inside the `SpotlightStepCount`.
11
+ */
12
+ children?: ReactNode;
13
+ }
14
+ /**
15
+ * __Spotlight StepCount__
16
+ *
17
+ * `SpotlightStepCount` groups `SpotlightAction` components.
18
+ *
19
+ */
20
+ export declare const SpotlightStepCount: React.ForwardRefExoticComponent<SpotlightStepCountProps & React.RefAttributes<HTMLSpanElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/spotlight",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "A spotlight introduces users to various points of interest across Atlassian through focused messages or multi-step tours.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",