@atlaskit/ds-explorations 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ # @atlaskit/ds-explorations
2
+
3
+ ## 0.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`f7edb043597`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f7edb043597) - Initial release, no API exposed.
package/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # Design System Foundations
2
+
3
+ An experimental private package for exploration and validation of the foundations for the Atlassian Design System.
4
+
5
+ **WARNING!**
6
+
7
+ This is an internal package with common functionality used in the Atlassian Design System Team.
8
+ This package comes with no support and semver guarantees,
9
+ your app will break if you use this directly!
@@ -0,0 +1,16 @@
1
+ {
2
+ "extends": "../tsconfig",
3
+ "compilerOptions": {
4
+ "target": "es5",
5
+ "paths": {}
6
+ },
7
+ "include": [
8
+ "../src/**/*.tsx"
9
+ ],
10
+ "exclude": [
11
+ "../src/**/__tests__/*",
12
+ "../src/**/*.test.*",
13
+ "../src/**/test.*",
14
+ "../src/**/examples.*"
15
+ ]
16
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _core = require("@emotion/core");
9
+
10
+ /** @jsx jsx */
11
+
12
+ /**
13
+ * __Box__
14
+ *
15
+ * A Box {description}.
16
+ *
17
+ * @internal
18
+ */
19
+ function Box(_ref) {
20
+ var children = _ref.children,
21
+ _ref$as = _ref.as,
22
+ Component = _ref$as === void 0 ? 'div' : _ref$as;
23
+ return (0, _core.jsx)(Component, null, children);
24
+ }
25
+
26
+ var _default = Box;
27
+ exports.default = _default;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _core = require("@emotion/core");
11
+
12
+ var _box = _interopRequireDefault(require("./box"));
13
+
14
+ /** @jsx jsx */
15
+
16
+ /**
17
+ * __Inline__
18
+ *
19
+ * A Inline {description}.
20
+ *
21
+ * @internal
22
+ */
23
+ function Inline(_ref) {
24
+ var children = _ref.children;
25
+ return (0, _core.jsx)(_box.default, null, children);
26
+ }
27
+
28
+ var _default = Inline;
29
+ exports.default = _default;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _core = require("@emotion/core");
11
+
12
+ var _box = _interopRequireDefault(require("./box"));
13
+
14
+ /** @jsx jsx */
15
+
16
+ /**
17
+ * __Stack__
18
+ *
19
+ * A Stack {description}.
20
+ *
21
+ * @internal
22
+ */
23
+ function Stack(_ref) {
24
+ var children = _ref.children;
25
+ return (0, _core.jsx)(_box.default, null, children);
26
+ }
27
+
28
+ var _default = Stack;
29
+ exports.default = _default;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _core = require("@emotion/core");
9
+
10
+ /** @jsx jsx */
11
+
12
+ /**
13
+ * __Text__
14
+ *
15
+ * A text {description}.
16
+ *
17
+ * @internal
18
+ */
19
+ function Text(_ref) {
20
+ var children = _ref.children;
21
+ return (0, _core.jsx)("span", null, children);
22
+ }
23
+
24
+ var _default = Text;
25
+ exports.default = _default;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _default = {};
8
+ exports.default = _default;
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "@atlaskit/ds-explorations",
3
+ "version": "0.0.1",
4
+ "sideEffects": false
5
+ }
@@ -0,0 +1,18 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/core';
3
+
4
+ /**
5
+ * __Box__
6
+ *
7
+ * A Box {description}.
8
+ *
9
+ * @internal
10
+ */
11
+ function Box({
12
+ children,
13
+ as: Component = 'div'
14
+ }) {
15
+ return jsx(Component, null, children);
16
+ }
17
+
18
+ export default Box;
@@ -0,0 +1,18 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/core';
3
+ import Box from './box';
4
+
5
+ /**
6
+ * __Inline__
7
+ *
8
+ * A Inline {description}.
9
+ *
10
+ * @internal
11
+ */
12
+ function Inline({
13
+ children
14
+ }) {
15
+ return jsx(Box, null, children);
16
+ }
17
+
18
+ export default Inline;
@@ -0,0 +1,18 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/core';
3
+ import Box from './box';
4
+
5
+ /**
6
+ * __Stack__
7
+ *
8
+ * A Stack {description}.
9
+ *
10
+ * @internal
11
+ */
12
+ function Stack({
13
+ children
14
+ }) {
15
+ return jsx(Box, null, children);
16
+ }
17
+
18
+ export default Stack;
@@ -0,0 +1,17 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/core';
3
+
4
+ /**
5
+ * __Text__
6
+ *
7
+ * A text {description}.
8
+ *
9
+ * @internal
10
+ */
11
+ function Text({
12
+ children
13
+ }) {
14
+ return jsx("span", null, children);
15
+ }
16
+
17
+ export default Text;
@@ -0,0 +1 @@
1
+ export default {};
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "@atlaskit/ds-explorations",
3
+ "version": "0.0.1",
4
+ "sideEffects": false
5
+ }
@@ -0,0 +1,18 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/core';
3
+
4
+ /**
5
+ * __Box__
6
+ *
7
+ * A Box {description}.
8
+ *
9
+ * @internal
10
+ */
11
+ function Box(_ref) {
12
+ var children = _ref.children,
13
+ _ref$as = _ref.as,
14
+ Component = _ref$as === void 0 ? 'div' : _ref$as;
15
+ return jsx(Component, null, children);
16
+ }
17
+
18
+ export default Box;
@@ -0,0 +1,17 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/core';
3
+ import Box from './box';
4
+
5
+ /**
6
+ * __Inline__
7
+ *
8
+ * A Inline {description}.
9
+ *
10
+ * @internal
11
+ */
12
+ function Inline(_ref) {
13
+ var children = _ref.children;
14
+ return jsx(Box, null, children);
15
+ }
16
+
17
+ export default Inline;
@@ -0,0 +1,17 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/core';
3
+ import Box from './box';
4
+
5
+ /**
6
+ * __Stack__
7
+ *
8
+ * A Stack {description}.
9
+ *
10
+ * @internal
11
+ */
12
+ function Stack(_ref) {
13
+ var children = _ref.children;
14
+ return jsx(Box, null, children);
15
+ }
16
+
17
+ export default Stack;
@@ -0,0 +1,16 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/core';
3
+
4
+ /**
5
+ * __Text__
6
+ *
7
+ * A text {description}.
8
+ *
9
+ * @internal
10
+ */
11
+ function Text(_ref) {
12
+ var children = _ref.children;
13
+ return jsx("span", null, children);
14
+ }
15
+
16
+ export default Text;
@@ -0,0 +1 @@
1
+ export default {};
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "@atlaskit/ds-explorations",
3
+ "version": "0.0.1",
4
+ "sideEffects": false
5
+ }
@@ -0,0 +1,15 @@
1
+ /** @jsx jsx */
2
+ import { ReactNode } from 'react';
3
+ interface BoxProps {
4
+ as?: keyof JSX.IntrinsicElements;
5
+ children: ReactNode;
6
+ }
7
+ /**
8
+ * __Box__
9
+ *
10
+ * A Box {description}.
11
+ *
12
+ * @internal
13
+ */
14
+ declare function Box({ children, as: Component }: BoxProps): JSX.Element;
15
+ export default Box;
@@ -0,0 +1,14 @@
1
+ /** @jsx jsx */
2
+ import { ReactNode } from 'react';
3
+ interface InlineProps {
4
+ children: ReactNode;
5
+ }
6
+ /**
7
+ * __Inline__
8
+ *
9
+ * A Inline {description}.
10
+ *
11
+ * @internal
12
+ */
13
+ declare function Inline({ children }: InlineProps): JSX.Element;
14
+ export default Inline;
@@ -0,0 +1,14 @@
1
+ /** @jsx jsx */
2
+ import { ReactNode } from 'react';
3
+ interface StackProps {
4
+ children: ReactNode;
5
+ }
6
+ /**
7
+ * __Stack__
8
+ *
9
+ * A Stack {description}.
10
+ *
11
+ * @internal
12
+ */
13
+ declare function Stack({ children }: StackProps): JSX.Element;
14
+ export default Stack;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ interface TextProps {
3
+ children: string | number;
4
+ }
5
+ /**
6
+ * __Text__
7
+ *
8
+ * A text {description}.
9
+ *
10
+ * @internal
11
+ */
12
+ declare function Text({ children }: TextProps): JSX.Element;
13
+ export default Text;
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+
3
+ export default () => {
4
+ return <div />;
5
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is used by the test scaling project to optimise test result caching
3
+ * Examples that are used by tests affect the outcome of tests so must be included when hashing
4
+ * They are defined here so the hashing algorithm doesn't need to search test files for example usage each time
5
+ */
6
+ {
7
+ "testExamples": [
8
+ "00-basic.tsx"
9
+ ]
10
+ }
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@atlaskit/ds-explorations",
3
+ "version": "0.0.1",
4
+ "description": "An experimental package for exploration and validation of spacing / typography foundations.",
5
+ "atlassian": {
6
+ "team": "Design System Team",
7
+ "inPublicMirror": false,
8
+ "releaseModel": "continuous"
9
+ },
10
+ "publishConfig": {
11
+ "registry": "https://registry.npmjs.org/"
12
+ },
13
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
14
+ "main": "dist/cjs/index.js",
15
+ "module": "dist/esm/index.js",
16
+ "module:es2019": "dist/es2019/index.js",
17
+ "types": "dist/types/index.d.ts",
18
+ "sideEffects": false,
19
+ "atlaskit:src": "src/index.tsx",
20
+ "af:exports": {
21
+ ".": "./src/index.tsx"
22
+ },
23
+ "dependencies": {
24
+ "@babel/runtime": "^7.0.0",
25
+ "@emotion/core": "^10.0.9"
26
+ },
27
+ "peerDependencies": {
28
+ "react": "^16.8.0"
29
+ },
30
+ "devDependencies": {
31
+ "@atlaskit/ssr": "*",
32
+ "@atlaskit/visual-regression": "*",
33
+ "@atlaskit/webdriver-runner": "*",
34
+ "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
35
+ "@testing-library/react": "^8.0.1",
36
+ "react-dom": "^16.8.0",
37
+ "typescript": "4.2.4",
38
+ "wait-for-expect": "^1.2.0"
39
+ },
40
+ "techstack": {
41
+ "@atlassian/frontend": {
42
+ "import-structure": "atlassian-conventions",
43
+ "circular-dependencies": "file-and-folder-level"
44
+ },
45
+ "@repo/internal": {
46
+ "dom-events": "use-bind-event-listener",
47
+ "design-system": "v1",
48
+ "styling": [
49
+ "static",
50
+ "emotion"
51
+ ],
52
+ "ui-components": "lite-mode",
53
+ "analytics": "analytics-next",
54
+ "theming": "tokens",
55
+ "deprecation": "no-deprecated-imports"
56
+ }
57
+ },
58
+ "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
59
+ "homepage": "https://atlaskit.atlassian.com"
60
+ }
@@ -0,0 +1,22 @@
1
+ /** @jsx jsx */
2
+ import { ReactNode } from 'react';
3
+
4
+ import { jsx } from '@emotion/core';
5
+
6
+ interface BoxProps {
7
+ as?: keyof JSX.IntrinsicElements;
8
+ children: ReactNode;
9
+ }
10
+
11
+ /**
12
+ * __Box__
13
+ *
14
+ * A Box {description}.
15
+ *
16
+ * @internal
17
+ */
18
+ function Box({ children, as: Component = 'div' }: BoxProps) {
19
+ return <Component>{children}</Component>;
20
+ }
21
+
22
+ export default Box;
@@ -0,0 +1,23 @@
1
+ /** @jsx jsx */
2
+ import { ReactNode } from 'react';
3
+
4
+ import { jsx } from '@emotion/core';
5
+
6
+ import Box from './box';
7
+
8
+ interface InlineProps {
9
+ children: ReactNode;
10
+ }
11
+
12
+ /**
13
+ * __Inline__
14
+ *
15
+ * A Inline {description}.
16
+ *
17
+ * @internal
18
+ */
19
+ function Inline({ children }: InlineProps) {
20
+ return <Box>{children}</Box>;
21
+ }
22
+
23
+ export default Inline;
@@ -0,0 +1,23 @@
1
+ /** @jsx jsx */
2
+ import { ReactNode } from 'react';
3
+
4
+ import { jsx } from '@emotion/core';
5
+
6
+ import Box from './box';
7
+
8
+ interface StackProps {
9
+ children: ReactNode;
10
+ }
11
+
12
+ /**
13
+ * __Stack__
14
+ *
15
+ * A Stack {description}.
16
+ *
17
+ * @internal
18
+ */
19
+ function Stack({ children }: StackProps) {
20
+ return <Box>{children}</Box>;
21
+ }
22
+
23
+ export default Stack;
@@ -0,0 +1,19 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/core';
3
+
4
+ interface TextProps {
5
+ children: string | number;
6
+ }
7
+
8
+ /**
9
+ * __Text__
10
+ *
11
+ * A text {description}.
12
+ *
13
+ * @internal
14
+ */
15
+ function Text({ children }: TextProps) {
16
+ return <span>{children}</span>;
17
+ }
18
+
19
+ export default Text;
package/src/index.tsx ADDED
@@ -0,0 +1 @@
1
+ export default {};
package/tsconfig.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "extends": "../../../tsconfig.json",
3
+ "include": [
4
+ "__tests__/**/*.ts",
5
+ "__tests__/**/*.tsx",
6
+ "examples/**/*.ts",
7
+ "examples/**/*.tsx",
8
+ "src/**/*.ts",
9
+ "src/**/*.tsx"
10
+ ],
11
+ "compilerOptions": {
12
+ "baseUrl": ""
13
+ }
14
+ }