@atlaskit/tile 0.1.1 → 0.1.3
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 +15 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/{ui/index.compiled.css → tile.compiled.css} +2 -2
- package/dist/cjs/{ui/index.js → tile.js} +7 -7
- package/dist/es2019/index.js +1 -1
- package/dist/{esm/ui/index.compiled.css → es2019/tile.compiled.css} +2 -2
- package/dist/es2019/{ui/index.js → tile.js} +7 -6
- package/dist/esm/index.js +1 -1
- package/dist/{es2019/ui/index.compiled.css → esm/tile.compiled.css} +2 -2
- package/dist/esm/{ui/index.js → tile.js} +7 -6
- package/dist/types/index.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/package.json +1 -5
- /package/dist/cjs/{ui/types.js → types.js} +0 -0
- /package/dist/es2019/{ui/types.js → types.js} +0 -0
- /package/dist/esm/{ui/types.js → types.js} +0 -0
- /package/dist/types/{ui/index.d.ts → tile.d.ts} +0 -0
- /package/dist/types/{ui/types.d.ts → types.d.ts} +0 -0
- /package/dist/types-ts4.5/{ui/index.d.ts → tile.d.ts} +0 -0
- /package/dist/types-ts4.5/{ui/types.d.ts → types.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/tile
|
|
2
2
|
|
|
3
|
+
## 0.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`965e35f10a8f1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/965e35f10a8f1) -
|
|
8
|
+
Implemented new design token `radius.tile` for tile border radius.
|
|
9
|
+
|
|
10
|
+
## 0.1.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`9e77915865d6e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9e77915865d6e) - -
|
|
15
|
+
Corrected border width
|
|
16
|
+
- Simplified labelling method
|
|
17
|
+
|
|
3
18
|
## 0.1.1
|
|
4
19
|
|
|
5
20
|
### 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
|
|
10
|
+
return _tile.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
var
|
|
13
|
+
var _tile = _interopRequireDefault(require("./tile"));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
2
|
+
._2rkol0p1{border-radius:var(--ds-radius-tile,25%)}
|
|
3
|
+
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
3
4
|
._1dqonqa1{border-style:solid}
|
|
4
5
|
._1h6dmuej{border-color:var(--ds-border,#091e4224)}._16jlidpf{flex-grow:0}
|
|
5
6
|
._18m915vq{overflow-y:hidden}
|
|
@@ -13,7 +14,6 @@
|
|
|
13
14
|
._1e0c116y{display:inline-flex}
|
|
14
15
|
._1iia1osq div, ._bna71osq img, ._1xjx1osq span, ._17521osq svg{height:100%}
|
|
15
16
|
._1iia1wug div, ._bna71wug img, ._1xjx1wug span, ._17521wug svg{height:auto}
|
|
16
|
-
._1it5e4h9{border-size:var(--ds-border-width,1px)}
|
|
17
17
|
._1o9zidpf{flex-shrink:0}
|
|
18
18
|
._1qwg19bv div, ._mezj19bv img, ._e2oo19bv span, ._w8l519bv svg{width:10px}
|
|
19
19
|
._1qwg1crf div, ._mezj1crf img, ._e2oo1crf span, ._w8l51crf svg{width:9pt}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* tile.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
4
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
9
8
|
exports.default = Tile;
|
|
10
|
-
require("./
|
|
9
|
+
require("./tile.compiled.css");
|
|
11
10
|
var React = _interopRequireWildcard(require("react"));
|
|
12
11
|
var _runtime = require("@compiled/react/runtime");
|
|
13
|
-
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
|
|
14
12
|
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); }
|
|
15
13
|
var styles = {
|
|
16
|
-
root: "
|
|
17
|
-
border: "_1dqonqa1 _1h6dmuej
|
|
14
|
+
root: "_2rkol0p1 _1reo15vq _18m915vq _kqswh2mm _1e0c116y _vchhusvi _4cvr1h6o _1bah1h6o _1o9zidpf _16jlidpf _1ul9idpf _1tkeidpf",
|
|
15
|
+
border: "_189ee4h9 _1dqonqa1 _1h6dmuej",
|
|
18
16
|
inset: "_1iia1wug _bna71wug _1xjx1wug _17521wug",
|
|
19
17
|
nonInset: "_1qwg1osq _mezj1osq _e2oo1osq _w8l51osq _1iia1osq _bna71osq _1xjx1osq _17521osq"
|
|
20
18
|
};
|
|
@@ -113,6 +111,8 @@ function Tile(props) {
|
|
|
113
111
|
testId = props.testId;
|
|
114
112
|
return /*#__PURE__*/React.createElement("span", {
|
|
115
113
|
"data-testid": testId,
|
|
114
|
+
"aria-label": label !== '' ? label : undefined,
|
|
115
|
+
role: label !== '' ? 'img' : undefined,
|
|
116
116
|
className: (0, _runtime.ax)([styles.root, sizeMap[size], isInset ? styles.inset : styles.nonInset, isInset && insetSizeMap[size], backgroundColorMap[backgroundColor || 'color.background.neutral'], hasBorder && styles.border])
|
|
117
|
-
}, children
|
|
117
|
+
}, children);
|
|
118
118
|
}
|
package/dist/es2019/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './
|
|
1
|
+
export { default } from './tile';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
2
|
+
._2rkol0p1{border-radius:var(--ds-radius-tile,25%)}
|
|
3
|
+
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
3
4
|
._1dqonqa1{border-style:solid}
|
|
4
5
|
._1h6dmuej{border-color:var(--ds-border,#091e4224)}._16jlidpf{flex-grow:0}
|
|
5
6
|
._18m915vq{overflow-y:hidden}
|
|
@@ -13,7 +14,6 @@
|
|
|
13
14
|
._1e0c116y{display:inline-flex}
|
|
14
15
|
._1iia1osq div, ._bna71osq img, ._1xjx1osq span, ._17521osq svg{height:100%}
|
|
15
16
|
._1iia1wug div, ._bna71wug img, ._1xjx1wug span, ._17521wug svg{height:auto}
|
|
16
|
-
._1it5e4h9{border-size:var(--ds-border-width,1px)}
|
|
17
17
|
._1o9zidpf{flex-shrink:0}
|
|
18
18
|
._1qwg19bv div, ._mezj19bv img, ._e2oo19bv span, ._w8l519bv svg{width:10px}
|
|
19
19
|
._1qwg1crf div, ._mezj1crf img, ._e2oo1crf span, ._w8l51crf svg{width:9pt}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/*
|
|
2
|
-
import "./
|
|
1
|
+
/* tile.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./tile.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
6
5
|
const styles = {
|
|
7
|
-
root: "
|
|
8
|
-
border: "_1dqonqa1 _1h6dmuej
|
|
6
|
+
root: "_2rkol0p1 _1reo15vq _18m915vq _kqswh2mm _1e0c116y _vchhusvi _4cvr1h6o _1bah1h6o _1o9zidpf _16jlidpf _1ul9idpf _1tkeidpf",
|
|
7
|
+
border: "_189ee4h9 _1dqonqa1 _1h6dmuej",
|
|
9
8
|
inset: "_1iia1wug _bna71wug _1xjx1wug _17521wug",
|
|
10
9
|
nonInset: "_1qwg1osq _mezj1osq _e2oo1osq _w8l51osq _1iia1osq _bna71osq _1xjx1osq _17521osq"
|
|
11
10
|
};
|
|
@@ -104,6 +103,8 @@ export default function Tile(props) {
|
|
|
104
103
|
} = props;
|
|
105
104
|
return /*#__PURE__*/React.createElement("span", {
|
|
106
105
|
"data-testid": testId,
|
|
106
|
+
"aria-label": label !== '' ? label : undefined,
|
|
107
|
+
role: label !== '' ? 'img' : undefined,
|
|
107
108
|
className: ax([styles.root, sizeMap[size], isInset ? styles.inset : styles.nonInset, isInset && insetSizeMap[size], backgroundColorMap[backgroundColor || 'color.background.neutral'], hasBorder && styles.border])
|
|
108
|
-
}, children
|
|
109
|
+
}, children);
|
|
109
110
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './
|
|
1
|
+
export { default } from './tile';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
2
|
+
._2rkol0p1{border-radius:var(--ds-radius-tile,25%)}
|
|
3
|
+
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
3
4
|
._1dqonqa1{border-style:solid}
|
|
4
5
|
._1h6dmuej{border-color:var(--ds-border,#091e4224)}._16jlidpf{flex-grow:0}
|
|
5
6
|
._18m915vq{overflow-y:hidden}
|
|
@@ -13,7 +14,6 @@
|
|
|
13
14
|
._1e0c116y{display:inline-flex}
|
|
14
15
|
._1iia1osq div, ._bna71osq img, ._1xjx1osq span, ._17521osq svg{height:100%}
|
|
15
16
|
._1iia1wug div, ._bna71wug img, ._1xjx1wug span, ._17521wug svg{height:auto}
|
|
16
|
-
._1it5e4h9{border-size:var(--ds-border-width,1px)}
|
|
17
17
|
._1o9zidpf{flex-shrink:0}
|
|
18
18
|
._1qwg19bv div, ._mezj19bv img, ._e2oo19bv span, ._w8l519bv svg{width:10px}
|
|
19
19
|
._1qwg1crf div, ._mezj1crf img, ._e2oo1crf span, ._w8l51crf svg{width:9pt}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/*
|
|
2
|
-
import "./
|
|
1
|
+
/* tile.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./tile.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
6
5
|
var styles = {
|
|
7
|
-
root: "
|
|
8
|
-
border: "_1dqonqa1 _1h6dmuej
|
|
6
|
+
root: "_2rkol0p1 _1reo15vq _18m915vq _kqswh2mm _1e0c116y _vchhusvi _4cvr1h6o _1bah1h6o _1o9zidpf _16jlidpf _1ul9idpf _1tkeidpf",
|
|
7
|
+
border: "_189ee4h9 _1dqonqa1 _1h6dmuej",
|
|
9
8
|
inset: "_1iia1wug _bna71wug _1xjx1wug _17521wug",
|
|
10
9
|
nonInset: "_1qwg1osq _mezj1osq _e2oo1osq _w8l51osq _1iia1osq _bna71osq _1xjx1osq _17521osq"
|
|
11
10
|
};
|
|
@@ -104,6 +103,8 @@ export default function Tile(props) {
|
|
|
104
103
|
testId = props.testId;
|
|
105
104
|
return /*#__PURE__*/React.createElement("span", {
|
|
106
105
|
"data-testid": testId,
|
|
106
|
+
"aria-label": label !== '' ? label : undefined,
|
|
107
|
+
role: label !== '' ? 'img' : undefined,
|
|
107
108
|
className: ax([styles.root, sizeMap[size], isInset ? styles.inset : styles.nonInset, isInset && insetSizeMap[size], backgroundColorMap[backgroundColor || 'color.background.neutral'], hasBorder && styles.border])
|
|
108
|
-
}, children
|
|
109
|
+
}, children);
|
|
109
110
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './
|
|
2
|
-
export { type TileProps } from './
|
|
1
|
+
export { default } from './tile';
|
|
2
|
+
export { type TileProps } from './types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './
|
|
2
|
-
export { type TileProps } from './
|
|
1
|
+
export { default } from './tile';
|
|
2
|
+
export { type TileProps } from './types';
|
package/package.json
CHANGED
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"@atlaskit/css": "^0.14.0",
|
|
35
35
|
"@atlaskit/primitives": "^14.14.0",
|
|
36
36
|
"@atlaskit/tokens": "^6.3.0",
|
|
37
|
-
"@atlaskit/visually-hidden": "^3.0.0",
|
|
38
37
|
"@babel/runtime": "^7.0.0",
|
|
39
38
|
"@compiled/react": "^0.18.3"
|
|
40
39
|
},
|
|
@@ -52,9 +51,6 @@
|
|
|
52
51
|
},
|
|
53
52
|
"techstack": {
|
|
54
53
|
"@atlassian/frontend": {
|
|
55
|
-
"code-structure": [
|
|
56
|
-
"tangerine-next"
|
|
57
|
-
],
|
|
58
54
|
"import-structure": [
|
|
59
55
|
"atlassian-conventions"
|
|
60
56
|
],
|
|
@@ -91,7 +87,7 @@
|
|
|
91
87
|
}
|
|
92
88
|
},
|
|
93
89
|
"name": "@atlaskit/tile",
|
|
94
|
-
"version": "0.1.
|
|
90
|
+
"version": "0.1.3",
|
|
95
91
|
"description": "A tile is a rounded square that takes an asset (Image, Icon, Logo) and represents a noun.",
|
|
96
92
|
"author": "Atlassian Pty Ltd",
|
|
97
93
|
"license": "Apache-2.0",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|