@atlaskit/inline-dialog 18.0.11 → 18.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.
Files changed (23) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/index.js +2 -2
  3. package/dist/{es2019/InlineDialog/styled/container.compiled.css → cjs/inline-dialog-container.compiled.css} +4 -4
  4. package/dist/cjs/inline-dialog-container.js +40 -0
  5. package/dist/cjs/{InlineDialog/index.js → inline-dialog.js} +3 -3
  6. package/dist/es2019/index.js +1 -1
  7. package/dist/{cjs/InlineDialog/styled/container.compiled.css → es2019/inline-dialog-container.compiled.css} +6 -6
  8. package/dist/es2019/{InlineDialog/styled/container.js → inline-dialog-container.js} +4 -13
  9. package/dist/es2019/{InlineDialog/index.js → inline-dialog.js} +2 -2
  10. package/dist/esm/index.js +1 -1
  11. package/dist/esm/{InlineDialog/styled/container.compiled.css → inline-dialog-container.compiled.css} +6 -6
  12. package/dist/esm/inline-dialog-container.js +32 -0
  13. package/dist/esm/{InlineDialog/index.js → inline-dialog.js} +2 -2
  14. package/dist/types/index.d.ts +1 -1
  15. package/dist/types/{InlineDialog/index.d.ts → inline-dialog.d.ts} +1 -1
  16. package/dist/types-ts4.5/index.d.ts +1 -1
  17. package/dist/types-ts4.5/{InlineDialog/index.d.ts → inline-dialog.d.ts} +1 -1
  18. package/inline-dialog.docs.tsx +50 -0
  19. package/package.json +11 -11
  20. package/dist/cjs/InlineDialog/styled/container.js +0 -53
  21. package/dist/esm/InlineDialog/styled/container.js +0 -44
  22. /package/dist/types/{InlineDialog/styled/container.d.ts → inline-dialog-container.d.ts} +0 -0
  23. /package/dist/types-ts4.5/{InlineDialog/styled/container.d.ts → inline-dialog-container.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/inline-dialog
2
2
 
3
+ ## 18.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c054192950c10`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c054192950c10) -
8
+ Updates internal file structure and removes unused dynamic styles
9
+
10
+ ## 18.0.12
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 18.0.11
4
17
 
5
18
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  Object.defineProperty(exports, "default", {
8
8
  enumerable: true,
9
9
  get: function get() {
10
- return _InlineDialog.default;
10
+ return _inlineDialog.default;
11
11
  }
12
12
  });
13
- var _InlineDialog = _interopRequireDefault(require("./InlineDialog"));
13
+ var _inlineDialog = _interopRequireDefault(require("./inline-dialog"));
@@ -1,13 +1,13 @@
1
- ._11q7gluh{background:var(--theme-background)}
2
- ._2rkofajl{border-radius:var(--ds-radius-small,3px)}
3
- ._16qs1r44{box-shadow:var(--theme-box-shadow)}
1
+
2
+ ._2rkofajl{border-radius:var(--ds-radius-small,3px)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
4
3
  ._1pbyowjs{z-index:300}
5
4
  ._1q51pxbi{padding-block-start:var(--ds-space-200,1pc)}
6
5
  ._85i5pxbi{padding-block-end:var(--ds-space-200,1pc)}
6
+ ._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
7
7
  ._bozg1ejb{padding-inline-start:var(--ds-space-300,24px)}
8
8
  ._c71llti4{max-height:28pc}
9
9
  ._p12flti4{max-width:28pc}
10
- ._syazjslb{color:var(--theme-color)}
10
+ ._syazi7uo{color:var(--ds-text,#292a2e)}
11
11
  ._vchh1ntv{box-sizing:content-box}
12
12
  ._y4ti1ejb{padding-inline-end:var(--ds-space-300,24px)}
13
13
  ._1hvw1o36:focus{outline-width:medium}
@@ -0,0 +1,40 @@
1
+ /* inline-dialog-container.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ "use strict";
3
+
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.Container = void 0;
9
+ require("./inline-dialog-container.compiled.css");
10
+ var _react = _interopRequireWildcard(require("react"));
11
+ var React = _react;
12
+ var _runtime = require("@compiled/react/runtime");
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 containerStyles = null;
15
+ /**
16
+ * __Container__
17
+ *
18
+ * A container is used as a styled wrapper around the contents of an inline dialog.
19
+ * Note that the styles here are merged with the style prop that comes from the popper.js library.
20
+ *
21
+ */
22
+ var Container = exports.Container = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
23
+ var children = _ref.children,
24
+ onBlur = _ref.onBlur,
25
+ onClick = _ref.onClick,
26
+ onFocus = _ref.onFocus,
27
+ style = _ref.style,
28
+ testId = _ref.testId;
29
+ return /*#__PURE__*/React.createElement("div", {
30
+ "data-testid": testId,
31
+ onBlur: onBlur,
32
+ onClick: onClick,
33
+ onFocus: onFocus,
34
+ ref: ref
35
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
36
+ ,
37
+ style: style,
38
+ className: (0, _runtime.ax)(["_2rkofajl _vchh1ntv _p12flti4 _c71llti4 _1pbyowjs _bfhk1bhr _16qs130s _syazi7uo _85i5pxbi _1q51pxbi _y4ti1ejb _bozg1ejb _nt751r31 _49pcglyw _1hvw1o36"])
39
+ }, typeof children === 'function' ? children() : children);
40
+ });
@@ -12,7 +12,7 @@ var _analyticsNext = require("@atlaskit/analytics-next");
12
12
  var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
13
13
  var _layering = require("@atlaskit/layering");
14
14
  var _popper = require("@atlaskit/popper");
15
- var _container = require("./styled/container");
15
+ var _inlineDialogContainer = require("./inline-dialog-container");
16
16
  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); }
17
17
  var _checkIsChildOfPortal = function checkIsChildOfPortal(node) {
18
18
  if (!node) {
@@ -76,7 +76,7 @@ var InlineDialog = /*#__PURE__*/(0, _react.memo)(function InlineDialog(_ref2) {
76
76
  action: 'closed',
77
77
  componentName: 'inlineDialog',
78
78
  packageName: "@atlaskit/inline-dialog",
79
- packageVersion: "18.0.10"
79
+ packageVersion: "0.0.0-development"
80
80
  });
81
81
 
82
82
  // we put this into a ref to avoid handleCloseRequest having this as a dependency
@@ -153,7 +153,7 @@ var InlineDialog = /*#__PURE__*/(0, _react.memo)(function InlineDialog(_ref2) {
153
153
  }, function (_ref3) {
154
154
  var _ref4 = _ref3.ref,
155
155
  style = _ref3.style;
156
- return /*#__PURE__*/_react.default.createElement(_container.Container, {
156
+ return /*#__PURE__*/_react.default.createElement(_inlineDialogContainer.Container, {
157
157
  onBlur: onContentBlur,
158
158
  onFocus: onContentFocus,
159
159
  onClick: onContentClick,
@@ -1 +1 @@
1
- export { default } from './InlineDialog';
1
+ export { default } from './inline-dialog';
@@ -1,13 +1,13 @@
1
- ._11q717w6{background:var(--_902zhz)}
2
- ._2rkofajl{border-radius:var(--ds-radius-small,3px)}
3
- ._16qs11gm{box-shadow:var(--_uojrza)}
1
+
2
+ ._2rkofajl{border-radius:var(--ds-radius-small,3px)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
4
3
  ._1pbyowjs{z-index:300}
5
4
  ._1q51pxbi{padding-block-start:var(--ds-space-200,1pc)}
6
5
  ._85i5pxbi{padding-block-end:var(--ds-space-200,1pc)}
6
+ ._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
7
7
  ._bozg1ejb{padding-inline-start:var(--ds-space-300,24px)}
8
- ._c71l184t{max-height:var(--_n6nwya)}
9
- ._p12f184t{max-width:var(--_n6nwya)}
10
- ._syaz1xgh{color:var(--_1yif2ym)}
8
+ ._c71llti4{max-height:28pc}
9
+ ._p12flti4{max-width:28pc}
10
+ ._syazi7uo{color:var(--ds-text,#292a2e)}
11
11
  ._vchh1ntv{box-sizing:content-box}
12
12
  ._y4ti1ejb{padding-inline-end:var(--ds-space-300,24px)}
13
13
  ._1hvw1o36:focus{outline-width:medium}
@@ -1,12 +1,8 @@
1
- /* container.tsx generated by @compiled/babel-plugin v0.38.1 */
2
- import "./container.compiled.css";
1
+ /* inline-dialog-container.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ import "./inline-dialog-container.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { forwardRef } from 'react';
6
- import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
7
- const CSS_THEME_BACKGROUND = '--theme-background';
8
- const CSS_THEME_COLOR = '--theme-color';
9
- const CSS_THEME_BOX_SHADOW = '--theme-box-shadow';
10
6
  const containerStyles = null;
11
7
  /**
12
8
  * __Container__
@@ -31,12 +27,7 @@ export const Container = /*#__PURE__*/forwardRef(({
31
27
  ref: ref
32
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
33
29
  ,
34
- style: {
35
- [CSS_THEME_BACKGROUND]: `var(--ds-surface-overlay, ${N0})`,
36
- [CSS_THEME_COLOR]: `var(--ds-text, ${N900})`,
37
- [CSS_THEME_BOX_SHADOW]: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N50A}, 0 0 1px ${N60A}`})`,
38
- ...style
39
- },
40
- className: ax(["_11q7gluh _2rkofajl _vchh1ntv _p12flti4 _c71llti4 _1pbyowjs _16qs1r44 _syazjslb _85i5pxbi _1q51pxbi _y4ti1ejb _bozg1ejb _nt751r31 _49pcglyw _1hvw1o36"])
30
+ style: style,
31
+ className: ax(["_2rkofajl _vchh1ntv _p12flti4 _c71llti4 _1pbyowjs _bfhk1bhr _16qs130s _syazi7uo _85i5pxbi _1q51pxbi _y4ti1ejb _bozg1ejb _nt751r31 _49pcglyw _1hvw1o36"])
41
32
  }, typeof children === 'function' ? children() : children);
42
33
  });
@@ -4,7 +4,7 @@ import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
4
4
  import noop from '@atlaskit/ds-lib/noop';
5
5
  import { Layering, useCloseOnEscapePress, useLayering } from '@atlaskit/layering';
6
6
  import { Manager, Popper, Reference } from '@atlaskit/popper';
7
- import { Container } from './styled/container';
7
+ import { Container } from './inline-dialog-container';
8
8
  const checkIsChildOfPortal = node => {
9
9
  if (!node) {
10
10
  return false;
@@ -61,7 +61,7 @@ const InlineDialog = /*#__PURE__*/memo(function InlineDialog({
61
61
  action: 'closed',
62
62
  componentName: 'inlineDialog',
63
63
  packageName: "@atlaskit/inline-dialog",
64
- packageVersion: "18.0.10"
64
+ packageVersion: "0.0.0-development"
65
65
  });
66
66
 
67
67
  // we put this into a ref to avoid handleCloseRequest having this as a dependency
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- export { default } from './InlineDialog';
1
+ export { default } from './inline-dialog';
@@ -1,13 +1,13 @@
1
- ._11q717w6{background:var(--_902zhz)}
2
- ._2rkofajl{border-radius:var(--ds-radius-small,3px)}
3
- ._16qs11gm{box-shadow:var(--_uojrza)}
1
+
2
+ ._2rkofajl{border-radius:var(--ds-radius-small,3px)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
4
3
  ._1pbyowjs{z-index:300}
5
4
  ._1q51pxbi{padding-block-start:var(--ds-space-200,1pc)}
6
5
  ._85i5pxbi{padding-block-end:var(--ds-space-200,1pc)}
6
+ ._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
7
7
  ._bozg1ejb{padding-inline-start:var(--ds-space-300,24px)}
8
- ._c71l184t{max-height:var(--_n6nwya)}
9
- ._p12f184t{max-width:var(--_n6nwya)}
10
- ._syaz1xgh{color:var(--_1yif2ym)}
8
+ ._c71llti4{max-height:28pc}
9
+ ._p12flti4{max-width:28pc}
10
+ ._syazi7uo{color:var(--ds-text,#292a2e)}
11
11
  ._vchh1ntv{box-sizing:content-box}
12
12
  ._y4ti1ejb{padding-inline-end:var(--ds-space-300,24px)}
13
13
  ._1hvw1o36:focus{outline-width:medium}
@@ -0,0 +1,32 @@
1
+ /* inline-dialog-container.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ import "./inline-dialog-container.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import { forwardRef } from 'react';
6
+ var containerStyles = null;
7
+ /**
8
+ * __Container__
9
+ *
10
+ * A container is used as a styled wrapper around the contents of an inline dialog.
11
+ * Note that the styles here are merged with the style prop that comes from the popper.js library.
12
+ *
13
+ */
14
+ export var Container = /*#__PURE__*/forwardRef(function (_ref, ref) {
15
+ var children = _ref.children,
16
+ onBlur = _ref.onBlur,
17
+ onClick = _ref.onClick,
18
+ onFocus = _ref.onFocus,
19
+ style = _ref.style,
20
+ testId = _ref.testId;
21
+ return /*#__PURE__*/React.createElement("div", {
22
+ "data-testid": testId,
23
+ onBlur: onBlur,
24
+ onClick: onClick,
25
+ onFocus: onFocus,
26
+ ref: ref
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
28
+ ,
29
+ style: style,
30
+ className: ax(["_2rkofajl _vchh1ntv _p12flti4 _c71llti4 _1pbyowjs _bfhk1bhr _16qs130s _syazi7uo _85i5pxbi _1q51pxbi _y4ti1ejb _bozg1ejb _nt751r31 _49pcglyw _1hvw1o36"])
31
+ }, typeof children === 'function' ? children() : children);
32
+ });
@@ -4,7 +4,7 @@ import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
4
4
  import noop from '@atlaskit/ds-lib/noop';
5
5
  import { Layering, useCloseOnEscapePress, useLayering } from '@atlaskit/layering';
6
6
  import { Manager, Popper, Reference } from '@atlaskit/popper';
7
- import { Container } from './styled/container';
7
+ import { Container } from './inline-dialog-container';
8
8
  var _checkIsChildOfPortal = function checkIsChildOfPortal(node) {
9
9
  if (!node) {
10
10
  return false;
@@ -67,7 +67,7 @@ var InlineDialog = /*#__PURE__*/memo(function InlineDialog(_ref2) {
67
67
  action: 'closed',
68
68
  componentName: 'inlineDialog',
69
69
  packageName: "@atlaskit/inline-dialog",
70
- packageVersion: "18.0.10"
70
+ packageVersion: "0.0.0-development"
71
71
  });
72
72
 
73
73
  // we put this into a ref to avoid handleCloseRequest having this as a dependency
@@ -1,3 +1,3 @@
1
- export { default } from './InlineDialog';
1
+ export { default } from './inline-dialog';
2
2
  export type { Placement } from './types';
3
3
  export type { InlineDialogProps } from './types';
@@ -1,4 +1,4 @@
1
1
  import { type FC } from 'react';
2
- import type { InlineDialogProps } from '../types';
2
+ import type { InlineDialogProps } from './types';
3
3
  declare const InlineDialog: FC<InlineDialogProps>;
4
4
  export default InlineDialog;
@@ -1,3 +1,3 @@
1
- export { default } from './InlineDialog';
1
+ export { default } from './inline-dialog';
2
2
  export type { Placement } from './types';
3
3
  export type { InlineDialogProps } from './types';
@@ -1,4 +1,4 @@
1
1
  import { type FC } from 'react';
2
- import type { InlineDialogProps } from '../types';
2
+ import type { InlineDialogProps } from './types';
3
3
  declare const InlineDialog: FC<InlineDialogProps>;
4
4
  export default InlineDialog;
@@ -0,0 +1,50 @@
1
+ import path from 'path';
2
+
3
+ import type { ComponentStructuredContentSource } from '@atlassian/structured-docs-types';
4
+
5
+ const documentation: ComponentStructuredContentSource[] = [
6
+ {
7
+ name: 'InlineDialog',
8
+ description:
9
+ 'A component opened by user action (e.g. click) for further info or actions for a section—not crucial to the whole page.',
10
+ status: 'intent-to-deprecate',
11
+ import: {
12
+ name: 'InlineDialog',
13
+ package: '@atlaskit/inline-dialog',
14
+ type: 'default',
15
+ packagePath: path.resolve(__dirname),
16
+ packageJson: require('./package.json'),
17
+ },
18
+ usageGuidelines: [
19
+ 'Trigger by user action (e.g. click); do not open automatically',
20
+ 'Use for section-level info or actions, not page-critical content',
21
+ 'Keep content concise; only one inline dialog open at a time',
22
+ 'Good for feature discovery and contextual controls',
23
+ 'Anatomy: trigger, window, controls (buttons, checkboxes, text fields)',
24
+ 'Use Inline message for alerts; Flag for confirmations; Modal for complex or long content',
25
+ ],
26
+ contentGuidelines: [
27
+ 'Use clear, concise dialog content',
28
+ 'Provide meaningful dialog titles',
29
+ 'Keep content focused and relevant',
30
+ 'Use appropriate dialog sizing',
31
+ ],
32
+ accessibilityGuidelines: [
33
+ 'Ensure proper focus management',
34
+ 'Provide clear dialog labels',
35
+ 'Use appropriate ARIA attributes',
36
+ 'Consider keyboard navigation',
37
+ ],
38
+ examples: [
39
+ {
40
+ name: 'Inline Dialog',
41
+ description: 'Inline Dialog example',
42
+ source: path.resolve(__dirname, './examples/ai/inline-dialog.tsx'),
43
+ },
44
+ ],
45
+ keywords: ['dialog', 'inline', 'popup', 'overlay', 'tooltip'],
46
+ categories: ['overlay'],
47
+ },
48
+ ];
49
+
50
+ export default documentation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-dialog",
3
- "version": "18.0.11",
3
+ "version": "18.0.13",
4
4
  "description": "An inline dialog is a pop-up container for small amounts of information. It can also contain controls.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -34,14 +34,13 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "@atlaskit/analytics-next": "^11.1.0",
38
- "@atlaskit/ds-lib": "^5.3.0",
37
+ "@atlaskit/analytics-next": "^11.2.0",
38
+ "@atlaskit/ds-lib": "^6.0.0",
39
39
  "@atlaskit/layering": "^3.6.0",
40
40
  "@atlaskit/popper": "^7.1.0",
41
- "@atlaskit/theme": "^22.0.0",
42
- "@atlaskit/tokens": "^11.0.0",
41
+ "@atlaskit/tokens": "^11.2.0",
43
42
  "@babel/runtime": "^7.0.0",
44
- "@compiled/react": "^0.18.6",
43
+ "@compiled/react": "^0.20.0",
45
44
  "bind-event-listener": "^3.0.0"
46
45
  },
47
46
  "peerDependencies": {
@@ -54,14 +53,15 @@
54
53
  "@atlaskit/button": "^23.10.0",
55
54
  "@atlaskit/css": "^0.19.0",
56
55
  "@atlaskit/datetime-picker": "^17.5.0",
57
- "@atlaskit/docs": "^11.5.0",
58
- "@atlaskit/dropdown-menu": "^16.5.0",
56
+ "@atlaskit/docs": "^11.7.0",
57
+ "@atlaskit/dropdown-menu": "^16.8.0",
59
58
  "@atlaskit/link": "^3.3.0",
60
- "@atlaskit/modal-dialog": "^14.11.0",
61
- "@atlaskit/primitives": "^18.0.0",
59
+ "@atlaskit/modal-dialog": "^14.12.0",
60
+ "@atlaskit/primitives": "^18.1.0",
62
61
  "@atlaskit/section-message": "^8.12.0",
63
- "@atlaskit/select": "^21.7.0",
62
+ "@atlaskit/select": "^21.8.0",
64
63
  "@atlassian/ssr-tests": "workspace:^",
64
+ "@atlassian/structured-docs-types": "workspace:^",
65
65
  "@testing-library/react": "^16.3.0",
66
66
  "react-dom": "^18.2.0",
67
67
  "react-lorem-component": "^0.13.0"
@@ -1,53 +0,0 @@
1
- /* container.tsx generated by @compiled/babel-plugin v0.38.1 */
2
- "use strict";
3
-
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
- var _typeof = require("@babel/runtime/helpers/typeof");
6
- Object.defineProperty(exports, "__esModule", {
7
- value: true
8
- });
9
- exports.Container = void 0;
10
- require("./container.compiled.css");
11
- var _react = _interopRequireWildcard(require("react"));
12
- var React = _react;
13
- var _runtime = require("@compiled/react/runtime");
14
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
- var _colors = require("@atlaskit/theme/colors");
16
- 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); }
17
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19
- var CSS_THEME_BACKGROUND = '--theme-background';
20
- var CSS_THEME_COLOR = '--theme-color';
21
- var CSS_THEME_BOX_SHADOW = '--theme-box-shadow';
22
- var containerStyles = null;
23
- /**
24
- * __Container__
25
- *
26
- * A container is used as a styled wrapper around the contents of an inline dialog.
27
- * Note that the styles here are merged with the style prop that comes from the popper.js library.
28
- *
29
- */
30
- var Container = exports.Container = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
31
- var children = _ref.children,
32
- onBlur = _ref.onBlur,
33
- onClick = _ref.onClick,
34
- onFocus = _ref.onFocus,
35
- style = _ref.style,
36
- testId = _ref.testId;
37
- return /*#__PURE__*/React.createElement("div", {
38
- "data-testid": testId,
39
- onBlur: onBlur,
40
- onClick: onClick,
41
- onFocus: onFocus,
42
- ref: ref
43
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
44
- ,
45
- className: (0, _runtime.ax)(["_11q717w6 _2rkofajl _vchh1ntv _p12f184t _c71l184t _1pbyowjs _16qs11gm _syaz1xgh _85i5pxbi _1q51pxbi _y4ti1ejb _bozg1ejb _nt751r31 _49pcglyw _1hvw1o36"]),
46
- style: _objectSpread(_objectSpread({}, _objectSpread((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, CSS_THEME_BACKGROUND, "var(--ds-surface-overlay, ".concat(_colors.N0, ")")), CSS_THEME_COLOR, "var(--ds-text, ".concat(_colors.N900, ")")), CSS_THEME_BOX_SHADOW, "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A), ")")), style)), {}, {
47
- "--_n6nwya": (0, _runtime.ix)("".concat(8 * 56, "px")),
48
- "--_902zhz": (0, _runtime.ix)("var(".concat(CSS_THEME_BACKGROUND, ")")),
49
- "--_uojrza": (0, _runtime.ix)("var(".concat(CSS_THEME_BOX_SHADOW, ")")),
50
- "--_1yif2ym": (0, _runtime.ix)("var(".concat(CSS_THEME_COLOR, ")"))
51
- })
52
- }, typeof children === 'function' ? children() : children);
53
- });
@@ -1,44 +0,0 @@
1
- /* container.tsx generated by @compiled/babel-plugin v0.38.1 */
2
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
- import "./container.compiled.css";
4
- import * as React from 'react';
5
- import { ax, ix } from "@compiled/react/runtime";
6
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
- import { forwardRef } from 'react';
9
- import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
10
- var CSS_THEME_BACKGROUND = '--theme-background';
11
- var CSS_THEME_COLOR = '--theme-color';
12
- var CSS_THEME_BOX_SHADOW = '--theme-box-shadow';
13
- var containerStyles = null;
14
- /**
15
- * __Container__
16
- *
17
- * A container is used as a styled wrapper around the contents of an inline dialog.
18
- * Note that the styles here are merged with the style prop that comes from the popper.js library.
19
- *
20
- */
21
- export var Container = /*#__PURE__*/forwardRef(function (_ref, ref) {
22
- var children = _ref.children,
23
- onBlur = _ref.onBlur,
24
- onClick = _ref.onClick,
25
- onFocus = _ref.onFocus,
26
- style = _ref.style,
27
- testId = _ref.testId;
28
- return /*#__PURE__*/React.createElement("div", {
29
- "data-testid": testId,
30
- onBlur: onBlur,
31
- onClick: onClick,
32
- onFocus: onFocus,
33
- ref: ref
34
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
35
- ,
36
- className: ax(["_11q717w6 _2rkofajl _vchh1ntv _p12f184t _c71l184t _1pbyowjs _16qs11gm _syaz1xgh _85i5pxbi _1q51pxbi _y4ti1ejb _bozg1ejb _nt751r31 _49pcglyw _1hvw1o36"]),
37
- style: _objectSpread(_objectSpread({}, _objectSpread(_defineProperty(_defineProperty(_defineProperty({}, CSS_THEME_BACKGROUND, "var(--ds-surface-overlay, ".concat(N0, ")")), CSS_THEME_COLOR, "var(--ds-text, ".concat(N900, ")")), CSS_THEME_BOX_SHADOW, "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N50A, ", 0 0 1px ").concat(N60A), ")")), style)), {}, {
38
- "--_n6nwya": ix("".concat(8 * 56, "px")),
39
- "--_902zhz": ix("var(".concat(CSS_THEME_BACKGROUND, ")")),
40
- "--_uojrza": ix("var(".concat(CSS_THEME_BOX_SHADOW, ")")),
41
- "--_1yif2ym": ix("var(".concat(CSS_THEME_COLOR, ")"))
42
- })
43
- }, typeof children === 'function' ? children() : children);
44
- });