@atlaskit/drawer 12.1.3 → 12.1.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 +6 -0
- package/dist/cjs/drawer.js +3 -3
- package/dist/es2019/drawer.js +3 -3
- package/dist/esm/drawer.js +3 -3
- package/drawer.docs.tsx +131 -129
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/dist/cjs/drawer.js
CHANGED
|
@@ -67,7 +67,7 @@ var Drawer = exports.Drawer = function Drawer(_ref2) {
|
|
|
67
67
|
action: 'dismissed',
|
|
68
68
|
componentName: 'drawer',
|
|
69
69
|
packageName: "@atlaskit/drawer",
|
|
70
|
-
packageVersion: "12.1.
|
|
70
|
+
packageVersion: "12.1.3",
|
|
71
71
|
analyticsData: {
|
|
72
72
|
trigger: 'escKey'
|
|
73
73
|
}
|
|
@@ -90,7 +90,7 @@ var Drawer = exports.Drawer = function Drawer(_ref2) {
|
|
|
90
90
|
action: 'dismissed',
|
|
91
91
|
componentName: 'drawer',
|
|
92
92
|
packageName: "@atlaskit/drawer",
|
|
93
|
-
packageVersion: "12.1.
|
|
93
|
+
packageVersion: "12.1.3",
|
|
94
94
|
analyticsData: {
|
|
95
95
|
trigger: 'blanket'
|
|
96
96
|
}
|
|
@@ -102,7 +102,7 @@ var Drawer = exports.Drawer = function Drawer(_ref2) {
|
|
|
102
102
|
action: 'dismissed',
|
|
103
103
|
componentName: 'drawer',
|
|
104
104
|
packageName: "@atlaskit/drawer",
|
|
105
|
-
packageVersion: "12.1.
|
|
105
|
+
packageVersion: "12.1.3",
|
|
106
106
|
analyticsData: {
|
|
107
107
|
trigger: 'backButton'
|
|
108
108
|
}
|
package/dist/es2019/drawer.js
CHANGED
|
@@ -52,7 +52,7 @@ export const Drawer = ({
|
|
|
52
52
|
action: 'dismissed',
|
|
53
53
|
componentName: 'drawer',
|
|
54
54
|
packageName: "@atlaskit/drawer",
|
|
55
|
-
packageVersion: "12.1.
|
|
55
|
+
packageVersion: "12.1.3",
|
|
56
56
|
analyticsData: {
|
|
57
57
|
trigger: 'escKey'
|
|
58
58
|
}
|
|
@@ -73,7 +73,7 @@ export const Drawer = ({
|
|
|
73
73
|
action: 'dismissed',
|
|
74
74
|
componentName: 'drawer',
|
|
75
75
|
packageName: "@atlaskit/drawer",
|
|
76
|
-
packageVersion: "12.1.
|
|
76
|
+
packageVersion: "12.1.3",
|
|
77
77
|
analyticsData: {
|
|
78
78
|
trigger: 'blanket'
|
|
79
79
|
}
|
|
@@ -83,7 +83,7 @@ export const Drawer = ({
|
|
|
83
83
|
action: 'dismissed',
|
|
84
84
|
componentName: 'drawer',
|
|
85
85
|
packageName: "@atlaskit/drawer",
|
|
86
|
-
packageVersion: "12.1.
|
|
86
|
+
packageVersion: "12.1.3",
|
|
87
87
|
analyticsData: {
|
|
88
88
|
trigger: 'backButton'
|
|
89
89
|
}
|
package/dist/esm/drawer.js
CHANGED
|
@@ -57,7 +57,7 @@ export var Drawer = function Drawer(_ref2) {
|
|
|
57
57
|
action: 'dismissed',
|
|
58
58
|
componentName: 'drawer',
|
|
59
59
|
packageName: "@atlaskit/drawer",
|
|
60
|
-
packageVersion: "12.1.
|
|
60
|
+
packageVersion: "12.1.3",
|
|
61
61
|
analyticsData: {
|
|
62
62
|
trigger: 'escKey'
|
|
63
63
|
}
|
|
@@ -80,7 +80,7 @@ export var Drawer = function Drawer(_ref2) {
|
|
|
80
80
|
action: 'dismissed',
|
|
81
81
|
componentName: 'drawer',
|
|
82
82
|
packageName: "@atlaskit/drawer",
|
|
83
|
-
packageVersion: "12.1.
|
|
83
|
+
packageVersion: "12.1.3",
|
|
84
84
|
analyticsData: {
|
|
85
85
|
trigger: 'blanket'
|
|
86
86
|
}
|
|
@@ -92,7 +92,7 @@ export var Drawer = function Drawer(_ref2) {
|
|
|
92
92
|
action: 'dismissed',
|
|
93
93
|
componentName: 'drawer',
|
|
94
94
|
packageName: "@atlaskit/drawer",
|
|
95
|
-
packageVersion: "12.1.
|
|
95
|
+
packageVersion: "12.1.3",
|
|
96
96
|
analyticsData: {
|
|
97
97
|
trigger: 'backButton'
|
|
98
98
|
}
|
package/drawer.docs.tsx
CHANGED
|
@@ -1,143 +1,145 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
|
|
4
4
|
|
|
5
|
-
const documentation:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
description:
|
|
9
|
-
'A drawer is a panel that slides in from the left side of the screen for navigation or additional content.',
|
|
10
|
-
status: 'intent-to-deprecate',
|
|
11
|
-
import: {
|
|
5
|
+
const documentation: StructuredContentSource = {
|
|
6
|
+
components: [
|
|
7
|
+
{
|
|
12
8
|
name: 'Drawer',
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
usageGuidelines: [
|
|
19
|
-
'Use for navigation or secondary content',
|
|
20
|
-
'Provide clear open/close mechanisms',
|
|
21
|
-
'Consider screen size and drawer width',
|
|
22
|
-
'Use appropriate backdrop behavior',
|
|
23
|
-
'Consider alternative patterns like Modal for better UX',
|
|
24
|
-
],
|
|
25
|
-
contentGuidelines: [
|
|
26
|
-
'Organize content logically within the drawer',
|
|
27
|
-
'Use clear navigation labels',
|
|
28
|
-
'Provide appropriate close actions',
|
|
29
|
-
'Consider content hierarchy and grouping',
|
|
30
|
-
],
|
|
31
|
-
accessibilityGuidelines: [
|
|
32
|
-
'Ensure proper focus management when drawer opens/closes',
|
|
33
|
-
'Provide keyboard navigation support',
|
|
34
|
-
'Use appropriate ARIA attributes for drawer state',
|
|
35
|
-
'Ensure content is accessible when drawer is open',
|
|
36
|
-
'Provide clear close mechanisms',
|
|
37
|
-
],
|
|
38
|
-
examples: [
|
|
39
|
-
{
|
|
9
|
+
description:
|
|
10
|
+
'A drawer is a panel that slides in from the left side of the screen for navigation or additional content.',
|
|
11
|
+
status: 'intent-to-deprecate',
|
|
12
|
+
import: {
|
|
40
13
|
name: 'Drawer',
|
|
41
|
-
|
|
42
|
-
|
|
14
|
+
package: '@atlaskit/drawer',
|
|
15
|
+
type: 'default',
|
|
16
|
+
packagePath: path.resolve(__dirname),
|
|
17
|
+
packageJson: require('./package.json'),
|
|
43
18
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
19
|
+
usageGuidelines: [
|
|
20
|
+
'Use for navigation or secondary content',
|
|
21
|
+
'Provide clear open/close mechanisms',
|
|
22
|
+
'Consider screen size and drawer width',
|
|
23
|
+
'Use appropriate backdrop behavior',
|
|
24
|
+
'Consider alternative patterns like Modal for better UX',
|
|
25
|
+
],
|
|
26
|
+
contentGuidelines: [
|
|
27
|
+
'Organize content logically within the drawer',
|
|
28
|
+
'Use clear navigation labels',
|
|
29
|
+
'Provide appropriate close actions',
|
|
30
|
+
'Consider content hierarchy and grouping',
|
|
31
|
+
],
|
|
32
|
+
accessibilityGuidelines: [
|
|
33
|
+
'Ensure proper focus management when drawer opens/closes',
|
|
34
|
+
'Provide keyboard navigation support',
|
|
35
|
+
'Use appropriate ARIA attributes for drawer state',
|
|
36
|
+
'Ensure content is accessible when drawer is open',
|
|
37
|
+
'Provide clear close mechanisms',
|
|
38
|
+
],
|
|
39
|
+
examples: [
|
|
40
|
+
{
|
|
41
|
+
name: 'Drawer',
|
|
42
|
+
description: 'Drawer example',
|
|
43
|
+
source: path.resolve(__dirname, './examples/ai/drawer.tsx'),
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
keywords: ['drawer', 'panel', 'slide', 'overlay', 'navigation', 'sidebar'],
|
|
47
|
+
categories: ['overlays-and-layering'],
|
|
58
48
|
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
'
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
examples: [
|
|
70
|
-
{
|
|
71
|
-
name: 'Drawer Content',
|
|
72
|
-
description: 'Drawer Content example',
|
|
73
|
-
source: path.resolve(__dirname, './examples/ai/drawer-content.tsx'),
|
|
49
|
+
{
|
|
50
|
+
name: 'DrawerContent',
|
|
51
|
+
description: 'The main content area of a drawer panel.',
|
|
52
|
+
status: 'intent-to-deprecate',
|
|
53
|
+
import: {
|
|
54
|
+
name: 'DrawerContent',
|
|
55
|
+
package: '@atlaskit/drawer',
|
|
56
|
+
type: 'named',
|
|
57
|
+
packagePath: path.resolve(__dirname),
|
|
58
|
+
packageJson: require('./package.json'),
|
|
74
59
|
},
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
60
|
+
usageGuidelines: [
|
|
61
|
+
'Use as the main content container within a drawer',
|
|
62
|
+
'Place primary content and actions here',
|
|
63
|
+
'Ensure proper scrolling behavior for long content',
|
|
64
|
+
],
|
|
65
|
+
contentGuidelines: [
|
|
66
|
+
'Organize content logically',
|
|
67
|
+
'Use appropriate spacing and layout',
|
|
68
|
+
'Consider content hierarchy',
|
|
69
|
+
],
|
|
70
|
+
examples: [
|
|
71
|
+
{
|
|
72
|
+
name: 'Drawer Content',
|
|
73
|
+
description: 'Drawer Content example',
|
|
74
|
+
source: path.resolve(__dirname, './examples/ai/drawer-content.tsx'),
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
keywords: ['drawer', 'content', 'panel', 'body'],
|
|
78
|
+
categories: ['overlays-and-layering'],
|
|
89
79
|
},
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
'
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
examples: [
|
|
101
|
-
{
|
|
102
|
-
name: 'Drawer Sidebar',
|
|
103
|
-
description: 'Drawer Sidebar example',
|
|
104
|
-
source: path.resolve(__dirname, './examples/ai/drawer-sidebar.tsx'),
|
|
80
|
+
{
|
|
81
|
+
name: 'DrawerSidebar',
|
|
82
|
+
description: 'A sidebar component within a drawer for navigation or secondary content.',
|
|
83
|
+
status: 'intent-to-deprecate',
|
|
84
|
+
import: {
|
|
85
|
+
name: 'DrawerSidebar',
|
|
86
|
+
package: '@atlaskit/drawer',
|
|
87
|
+
type: 'named',
|
|
88
|
+
packagePath: path.resolve(__dirname),
|
|
89
|
+
packageJson: require('./package.json'),
|
|
105
90
|
},
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
91
|
+
usageGuidelines: [
|
|
92
|
+
'Use for navigation or secondary content in a drawer',
|
|
93
|
+
'Keep sidebar content focused and organized',
|
|
94
|
+
'Consider responsive behavior',
|
|
95
|
+
],
|
|
96
|
+
contentGuidelines: [
|
|
97
|
+
'Use clear navigation labels',
|
|
98
|
+
'Organize content hierarchically',
|
|
99
|
+
'Keep sidebar content concise',
|
|
100
|
+
],
|
|
101
|
+
examples: [
|
|
102
|
+
{
|
|
103
|
+
name: 'Drawer Sidebar',
|
|
104
|
+
description: 'Drawer Sidebar example',
|
|
105
|
+
source: path.resolve(__dirname, './examples/ai/drawer-sidebar.tsx'),
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
keywords: ['drawer', 'sidebar', 'navigation', 'panel'],
|
|
109
|
+
categories: ['overlays-and-layering'],
|
|
120
110
|
},
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
'
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
examples: [
|
|
132
|
-
{
|
|
133
|
-
name: 'Drawer Close Button',
|
|
134
|
-
description: 'Drawer Close Button example',
|
|
135
|
-
source: path.resolve(__dirname, './examples/ai/drawer-close-button.tsx'),
|
|
111
|
+
{
|
|
112
|
+
name: 'DrawerCloseButton',
|
|
113
|
+
description: 'A close button specifically designed for drawer components.',
|
|
114
|
+
status: 'intent-to-deprecate',
|
|
115
|
+
import: {
|
|
116
|
+
name: 'DrawerCloseButton',
|
|
117
|
+
package: '@atlaskit/drawer',
|
|
118
|
+
type: 'named',
|
|
119
|
+
packagePath: path.resolve(__dirname),
|
|
120
|
+
packageJson: require('./package.json'),
|
|
136
121
|
},
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
]
|
|
122
|
+
usageGuidelines: [
|
|
123
|
+
'Use to provide clear close functionality for drawers',
|
|
124
|
+
'Position prominently for easy access',
|
|
125
|
+
'Ensure keyboard accessibility',
|
|
126
|
+
],
|
|
127
|
+
contentGuidelines: [
|
|
128
|
+
'Use clear close icon or text',
|
|
129
|
+
'Ensure button is easily discoverable',
|
|
130
|
+
'Provide appropriate hover/focus states',
|
|
131
|
+
],
|
|
132
|
+
examples: [
|
|
133
|
+
{
|
|
134
|
+
name: 'Drawer Close Button',
|
|
135
|
+
description: 'Drawer Close Button example',
|
|
136
|
+
source: path.resolve(__dirname, './examples/ai/drawer-close-button.tsx'),
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
keywords: ['drawer', 'close', 'button', 'action'],
|
|
140
|
+
categories: ['overlays-and-layering'],
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
};
|
|
142
144
|
|
|
143
145
|
export default documentation;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/drawer",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.4",
|
|
4
4
|
"description": "A drawer is a panel that slides in from the left side of the screen.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"@atlaskit/blanket": "^15.0.0",
|
|
49
49
|
"@atlaskit/button": "^23.11.0",
|
|
50
50
|
"@atlaskit/css": "^0.19.0",
|
|
51
|
-
"@atlaskit/icon": "^35.
|
|
51
|
+
"@atlaskit/icon": "^35.1.0",
|
|
52
52
|
"@atlaskit/layering": "^3.7.0",
|
|
53
53
|
"@atlaskit/motion": "^6.2.0",
|
|
54
54
|
"@atlaskit/portal": "^5.5.0",
|
|
55
|
-
"@atlaskit/theme": "^
|
|
55
|
+
"@atlaskit/theme": "^25.0.0",
|
|
56
56
|
"@atlaskit/tokens": "^13.0.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|
|
58
58
|
"@compiled/react": "^0.20.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@atlaskit/inline-message": "^15.6.0",
|
|
79
79
|
"@atlaskit/link": "^3.4.0",
|
|
80
80
|
"@atlaskit/menu": "^8.5.0",
|
|
81
|
-
"@atlaskit/modal-dialog": "^15.
|
|
81
|
+
"@atlaskit/modal-dialog": "^15.2.0",
|
|
82
82
|
"@atlaskit/primitives": "^19.0.0",
|
|
83
83
|
"@atlaskit/section-message": "^8.13.0",
|
|
84
84
|
"@atlassian/react-compiler-gating": "workspace:^",
|