@atlaskit/lozenge 13.5.2 → 13.5.4
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,19 @@
|
|
|
1
1
|
# @atlaskit/lozenge
|
|
2
2
|
|
|
3
|
+
## 13.5.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 13.5.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`18245cbd990e3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/18245cbd990e3) -
|
|
14
|
+
Added motion to opening and closing of Popup
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 13.5.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/types/lozenge.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface LozengeProps {
|
|
|
16
16
|
children?: ReactNode;
|
|
17
17
|
/**
|
|
18
18
|
* Determines whether to apply the bold style or not.
|
|
19
|
-
* @deprecated
|
|
19
|
+
* @deprecated Deprecated. Will be removed in a future major release. Lozenge will be bold by default. For labels and categorization, use Tag instead.
|
|
20
20
|
*/
|
|
21
21
|
isBold?: boolean;
|
|
22
22
|
/**
|
|
@@ -54,7 +54,7 @@ type NewLozengeBaseProps = {
|
|
|
54
54
|
*/
|
|
55
55
|
testId?: string;
|
|
56
56
|
/**
|
|
57
|
-
* @deprecated
|
|
57
|
+
* @deprecated Deprecated. Will be removed in a future major release. Lozenge will be bold by default. For labels and categorization, use Tag instead.
|
|
58
58
|
*/
|
|
59
59
|
isBold?: boolean;
|
|
60
60
|
};
|
|
@@ -16,7 +16,7 @@ export interface LozengeProps {
|
|
|
16
16
|
children?: ReactNode;
|
|
17
17
|
/**
|
|
18
18
|
* Determines whether to apply the bold style or not.
|
|
19
|
-
* @deprecated
|
|
19
|
+
* @deprecated Deprecated. Will be removed in a future major release. Lozenge will be bold by default. For labels and categorization, use Tag instead.
|
|
20
20
|
*/
|
|
21
21
|
isBold?: boolean;
|
|
22
22
|
/**
|
|
@@ -54,7 +54,7 @@ type NewLozengeBaseProps = {
|
|
|
54
54
|
*/
|
|
55
55
|
testId?: string;
|
|
56
56
|
/**
|
|
57
|
-
* @deprecated
|
|
57
|
+
* @deprecated Deprecated. Will be removed in a future major release. Lozenge will be bold by default. For labels and categorization, use Tag instead.
|
|
58
58
|
*/
|
|
59
59
|
isBold?: boolean;
|
|
60
60
|
};
|
package/lozenge.docs.tsx
CHANGED
|
@@ -6,8 +6,8 @@ const documentation: ComponentStructuredContentSource[] = [
|
|
|
6
6
|
{
|
|
7
7
|
name: 'Lozenge',
|
|
8
8
|
description:
|
|
9
|
-
|
|
10
|
-
status: 'general-availability',
|
|
9
|
+
"A lozenge is a visual indicator used to highlight an item's status for quick recognition.",
|
|
10
|
+
status: 'general-availability', // beta lozenge is feature-flagged
|
|
11
11
|
import: {
|
|
12
12
|
name: 'Lozenge',
|
|
13
13
|
package: '@atlaskit/lozenge',
|
|
@@ -44,6 +44,45 @@ const documentation: ComponentStructuredContentSource[] = [
|
|
|
44
44
|
keywords: ['lozenge', 'badge', 'label', 'status', 'indicator', 'pill'],
|
|
45
45
|
categories: ['status-indicators'],
|
|
46
46
|
},
|
|
47
|
+
{
|
|
48
|
+
name: 'LozengeDropdownTrigger',
|
|
49
|
+
description:
|
|
50
|
+
"Lozenge dropdown trigger displays an item's status and enables switching through a menu.",
|
|
51
|
+
status: 'open-beta',
|
|
52
|
+
import: {
|
|
53
|
+
name: 'LozengeDropdownTrigger',
|
|
54
|
+
package: '@atlaskit/lozenge',
|
|
55
|
+
type: 'named',
|
|
56
|
+
packagePath: path.resolve(__dirname),
|
|
57
|
+
packageJson: require('./package.json'),
|
|
58
|
+
},
|
|
59
|
+
usageGuidelines: [
|
|
60
|
+
'Use for status switching—only open a dropdown or popup to allow quick status changes',
|
|
61
|
+
'Use spacious sizing when displayed alongside buttons',
|
|
62
|
+
"Don't use to communicate other information like additional status details; use lozenge instead",
|
|
63
|
+
],
|
|
64
|
+
contentGuidelines: [
|
|
65
|
+
'Use clear, concise status labels',
|
|
66
|
+
'Keep labels short—max 200px width causes truncation and lozenges are not focusable',
|
|
67
|
+
"Don't use color alone; use clear labels and supporting icons where relevant",
|
|
68
|
+
],
|
|
69
|
+
accessibilityGuidelines: [
|
|
70
|
+
"Don't use color alone to signify state; use clear labels and icons",
|
|
71
|
+
"Don't use long labels—truncation isn't accessible as lozenges can't be focused",
|
|
72
|
+
],
|
|
73
|
+
examples: [
|
|
74
|
+
{
|
|
75
|
+
name: 'Lozenge Dropdown Trigger',
|
|
76
|
+
description: 'LozengeDropdownTrigger example',
|
|
77
|
+
source: path.resolve(
|
|
78
|
+
__dirname,
|
|
79
|
+
'./examples/constellation/lozenge-dropdown-trigger-basic.tsx',
|
|
80
|
+
),
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
keywords: ['lozenge', 'dropdown', 'trigger', 'status', 'menu', 'interactive'],
|
|
84
|
+
categories: ['status-indicators'],
|
|
85
|
+
},
|
|
47
86
|
];
|
|
48
87
|
|
|
49
88
|
export default documentation;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/lozenge",
|
|
3
|
-
"version": "13.5.
|
|
3
|
+
"version": "13.5.4",
|
|
4
4
|
"description": "A lozenge is a visual indicator used to highlight an item's status for quick recognition.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@atlaskit/analytics-next": "^11.
|
|
53
|
+
"@atlaskit/analytics-next": "^11.2.0",
|
|
54
54
|
"@atlaskit/badge": "^18.4.0",
|
|
55
55
|
"@atlaskit/css": "^0.19.0",
|
|
56
56
|
"@atlaskit/ds-lib": "^6.0.0",
|
|
57
|
-
"@atlaskit/icon": "^
|
|
57
|
+
"@atlaskit/icon": "^34.0.0",
|
|
58
58
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
59
|
-
"@atlaskit/primitives": "^18.
|
|
59
|
+
"@atlaskit/primitives": "^18.1.0",
|
|
60
60
|
"@atlaskit/spinner": "^19.0.0",
|
|
61
|
-
"@atlaskit/tokens": "^11.
|
|
61
|
+
"@atlaskit/tokens": "^11.4.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
63
63
|
"@compiled/react": "^0.20.0"
|
|
64
64
|
},
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@af/integration-testing": "workspace:^",
|
|
71
71
|
"@af/visual-regression": "workspace:^",
|
|
72
72
|
"@atlaskit/docs": "^11.7.0",
|
|
73
|
-
"@atlaskit/dropdown-menu": "^16.
|
|
73
|
+
"@atlaskit/dropdown-menu": "^16.8.0",
|
|
74
74
|
"@atlaskit/heading": "^5.3.0",
|
|
75
75
|
"@atlaskit/link": "^3.3.0",
|
|
76
76
|
"@atlaskit/section-message": "^8.12.0",
|
|
@@ -109,6 +109,9 @@
|
|
|
109
109
|
},
|
|
110
110
|
"platform-dst-lozenge-tag-badge-visual-uplifts": {
|
|
111
111
|
"type": "boolean"
|
|
112
|
+
},
|
|
113
|
+
"platform-dst-motion-uplift": {
|
|
114
|
+
"type": "boolean"
|
|
112
115
|
}
|
|
113
116
|
},
|
|
114
117
|
"homepage": "https://atlassian.design/components/lozenge/"
|