@atlaskit/editor-toolbar 1.2.0 → 1.3.0

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/editor-toolbar
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`89a8af72aa2c9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/89a8af72aa2c9) -
8
+ Add reusable toolbar menu container and render the layout column menu in a popup
9
+
3
10
  ## 1.2.0
4
11
 
5
12
  ### Minor Changes
@@ -0,0 +1,3 @@
1
+
2
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
3
+ ._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
@@ -0,0 +1,27 @@
1
+ /* ToolbarMenuContainer.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.ToolbarMenuContainer = void 0;
9
+ require("./ToolbarMenuContainer.compiled.css");
10
+ var _runtime = require("@compiled/react/runtime");
11
+ var _react = _interopRequireDefault(require("react"));
12
+ var _compiled = require("@atlaskit/primitives/compiled");
13
+ var styles = {
14
+ container: "_2rko12b0 _bfhk1bhr _16qs130s"
15
+ };
16
+ /**
17
+ * Shared visual shell for popup-hosted editor toolbar menus.
18
+ *
19
+ * This intentionally does not provide a trigger or popup positioning; callers own those concerns.
20
+ */
21
+ var ToolbarMenuContainer = exports.ToolbarMenuContainer = function ToolbarMenuContainer(_ref) {
22
+ var children = _ref.children;
23
+ return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
24
+ xcss: styles.container,
25
+ "data-toolbar-component": "menu"
26
+ }, children);
27
+ };
@@ -0,0 +1,3 @@
1
+
2
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
3
+ ._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
@@ -0,0 +1,21 @@
1
+ /* ToolbarMenuContainer.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ import "./ToolbarMenuContainer.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+ import { Box } from '@atlaskit/primitives/compiled';
6
+ const styles = {
7
+ container: "_2rko12b0 _bfhk1bhr _16qs130s"
8
+ };
9
+ /**
10
+ * Shared visual shell for popup-hosted editor toolbar menus.
11
+ *
12
+ * This intentionally does not provide a trigger or popup positioning; callers own those concerns.
13
+ */
14
+ export const ToolbarMenuContainer = ({
15
+ children
16
+ }) => {
17
+ return /*#__PURE__*/React.createElement(Box, {
18
+ xcss: styles.container,
19
+ "data-toolbar-component": "menu"
20
+ }, children);
21
+ };
@@ -0,0 +1,3 @@
1
+
2
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
3
+ ._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
@@ -0,0 +1,20 @@
1
+ /* ToolbarMenuContainer.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ import "./ToolbarMenuContainer.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+ import { Box } from '@atlaskit/primitives/compiled';
6
+ var styles = {
7
+ container: "_2rko12b0 _bfhk1bhr _16qs130s"
8
+ };
9
+ /**
10
+ * Shared visual shell for popup-hosted editor toolbar menus.
11
+ *
12
+ * This intentionally does not provide a trigger or popup positioning; callers own those concerns.
13
+ */
14
+ export var ToolbarMenuContainer = function ToolbarMenuContainer(_ref) {
15
+ var children = _ref.children;
16
+ return /*#__PURE__*/React.createElement(Box, {
17
+ xcss: styles.container,
18
+ "data-toolbar-component": "menu"
19
+ }, children);
20
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import React from 'react';
6
+ import type { ReactNode } from 'react';
7
+ type ToolbarMenuContainerProps = {
8
+ children?: ReactNode;
9
+ };
10
+ /**
11
+ * Shared visual shell for popup-hosted editor toolbar menus.
12
+ *
13
+ * This intentionally does not provide a trigger or popup positioning; callers own those concerns.
14
+ */
15
+ export declare const ToolbarMenuContainer: ({ children }: ToolbarMenuContainerProps) => React.JSX.Element;
16
+ export {};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import React from 'react';
6
+ import type { ReactNode } from 'react';
7
+ type ToolbarMenuContainerProps = {
8
+ children?: ReactNode;
9
+ };
10
+ /**
11
+ * Shared visual shell for popup-hosted editor toolbar menus.
12
+ *
13
+ * This intentionally does not provide a trigger or popup positioning; callers own those concerns.
14
+ */
15
+ export declare const ToolbarMenuContainer: ({ children }: ToolbarMenuContainerProps) => React.JSX.Element;
16
+ export {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org/"
5
5
  },
6
- "version": "1.2.0",
6
+ "version": "1.3.0",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "react-compiler": {
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/editor-toolbar/toolbar-menu-container",
3
+ "main": "../dist/cjs/ui/ToolbarMenuContainer.js",
4
+ "module": "../dist/esm/ui/ToolbarMenuContainer.js",
5
+ "module:es2019": "../dist/es2019/ui/ToolbarMenuContainer.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/ui/ToolbarMenuContainer.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.9": {
12
+ "*": [
13
+ "../dist/types-ts4.5/ui/ToolbarMenuContainer.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }