@atlassian/aui 11.0.2 → 11.0.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/dist/aui/aui-css-deprecations.js +1 -1
- package/dist/aui/aui-css-deprecations.js.map +1 -1
- package/dist/aui/aui-prototyping-browserfocus.css +1 -1
- package/dist/aui/aui-prototyping-browserfocus.css.map +1 -1
- package/dist/aui/aui-prototyping-design-tokens-api-full.js +3 -3
- package/dist/aui/aui-prototyping-design-tokens-api-full.js.map +1 -1
- package/dist/aui/aui-prototyping-design-tokens-api.js +1 -1
- package/dist/aui/aui-prototyping-design-tokens-api.js.map +1 -1
- package/dist/aui/aui-prototyping.css +3 -3
- package/dist/aui/aui-prototyping.css.map +1 -1
- package/dist/aui/aui-prototyping.js +14 -14
- package/dist/aui/aui-prototyping.js.map +1 -1
- package/dist/aui/aui-prototyping.nodeps.css +3 -3
- package/dist/aui/aui-prototyping.nodeps.css.map +1 -1
- package/dist/aui/aui-prototyping.nodeps.js +15 -15
- package/dist/aui/aui-prototyping.nodeps.js.map +1 -1
- package/entry/token-themes-generated/aui-prototyping-design-tokens-base-themes.less +629 -368
- package/entry/token-themes-generated/aui-prototyping-design-tokens-theme-import-map.js +37 -13
- package/package.json +12 -12
- package/src/js/aui/design-tokens/design-tokens-full.js +5 -2
- package/src/js/aui/design-tokens/design-tokens-init.js +1 -1
- package/src/js/aui/design-tokens/design-tokens.js +2 -2
- package/src/less/forms-current.less +9 -10
- package/src/less/forms-legacy.less +10 -5
|
@@ -1,42 +1,66 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
'light': () => (
|
|
3
|
-
'dark': () => (
|
|
4
|
-
'spacing': () => (
|
|
5
|
-
'typography': () => (
|
|
2
|
+
'light': () => ({ default: '' }),
|
|
3
|
+
'dark': () => ({ default: '' }),
|
|
4
|
+
'spacing': () => ({ default: '' }),
|
|
5
|
+
'typography': () => ({ default: '' }),
|
|
6
6
|
'light-future': () => {
|
|
7
7
|
console.warn('AUI does not provide "light-future" theme. Setting this theme will have no effect.');
|
|
8
|
-
return
|
|
8
|
+
return { default: '' };
|
|
9
|
+
},
|
|
10
|
+
'UNSAFE-dynamic': () => {
|
|
11
|
+
console.warn('AUI does not provide "UNSAFE-dynamic" theme. Setting this theme will have no effect.');
|
|
12
|
+
return { default: '' };
|
|
13
|
+
},
|
|
14
|
+
'UNSAFE-dynamic-dark': () => {
|
|
15
|
+
console.warn('AUI does not provide "UNSAFE-dynamic-dark" theme. Setting this theme will have no effect.');
|
|
16
|
+
return { default: '' };
|
|
17
|
+
},
|
|
18
|
+
'UNSAFE-test-light': () => {
|
|
19
|
+
console.warn('AUI does not provide "UNSAFE-test-light" theme. Setting this theme will have no effect.');
|
|
20
|
+
return { default: '' };
|
|
21
|
+
},
|
|
22
|
+
'UNSAFE-test-dark': () => {
|
|
23
|
+
console.warn('AUI does not provide "UNSAFE-test-dark" theme. Setting this theme will have no effect.');
|
|
24
|
+
return { default: '' };
|
|
9
25
|
},
|
|
10
26
|
'dark-future': () => {
|
|
11
27
|
console.warn('AUI does not provide "dark-future" theme. Setting this theme will have no effect.');
|
|
12
|
-
return
|
|
28
|
+
return { default: '' };
|
|
29
|
+
},
|
|
30
|
+
'UNSAFE-spacing': () => {
|
|
31
|
+
console.warn('AUI does not provide "UNSAFE-spacing" theme. Setting this theme will have no effect.');
|
|
32
|
+
return { default: '' };
|
|
13
33
|
},
|
|
14
34
|
'shape': () => {
|
|
15
35
|
console.warn('AUI does not provide "shape" theme. Setting this theme will have no effect.');
|
|
16
|
-
return
|
|
36
|
+
return { default: '' };
|
|
37
|
+
},
|
|
38
|
+
'UNSAFE-typography': () => {
|
|
39
|
+
console.warn('AUI does not provide "UNSAFE-typography" theme. Setting this theme will have no effect.');
|
|
40
|
+
return { default: '' };
|
|
17
41
|
},
|
|
18
42
|
'motion': () => {
|
|
19
43
|
console.warn('AUI does not provide "motion" theme. Setting this theme will have no effect.');
|
|
20
|
-
return
|
|
44
|
+
return { default: '' };
|
|
21
45
|
},
|
|
22
46
|
'legacy-light': () => {
|
|
23
47
|
console.warn('AUI does not provide "legacy-light" theme. Setting this theme will have no effect.');
|
|
24
|
-
return
|
|
48
|
+
return { default: '' };
|
|
25
49
|
},
|
|
26
50
|
'legacy-dark': () => {
|
|
27
51
|
console.warn('AUI does not provide "legacy-dark" theme. Setting this theme will have no effect.');
|
|
28
|
-
return
|
|
52
|
+
return { default: '' };
|
|
29
53
|
},
|
|
30
54
|
'typography-adg3': () => {
|
|
31
55
|
console.warn('AUI does not provide "typography-adg3" theme. Setting this theme will have no effect.');
|
|
32
|
-
return
|
|
56
|
+
return { default: '' };
|
|
33
57
|
},
|
|
34
58
|
'typography-modernized': () => {
|
|
35
59
|
console.warn('AUI does not provide "typography-modernized" theme. Setting this theme will have no effect.');
|
|
36
|
-
return
|
|
60
|
+
return { default: '' };
|
|
37
61
|
},
|
|
38
62
|
'typography-refreshed': () => {
|
|
39
63
|
console.warn('AUI does not provide "typography-refreshed" theme. Setting this theme will have no effect.');
|
|
40
|
-
return
|
|
64
|
+
return { default: '' };
|
|
41
65
|
},
|
|
42
66
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlassian/aui",
|
|
3
3
|
"description": "Atlassian User Interface library",
|
|
4
|
-
"version": "11.0.
|
|
4
|
+
"version": "11.0.3",
|
|
5
5
|
"author": "Atlassian Pty Ltd.",
|
|
6
6
|
"homepage": "https://aui.atlassian.com",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -36,31 +36,31 @@
|
|
|
36
36
|
"jquery": "^4.0.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/tokens": "
|
|
39
|
+
"@atlaskit/tokens": "20.12.0",
|
|
40
40
|
"@atlassian/adg-server-iconfont": "4.0.0-m10",
|
|
41
41
|
"@atlassian/fancy-file-input": "3.0.0",
|
|
42
42
|
"@popperjs/core": "2.11.8",
|
|
43
|
-
"backbone": "1.6.
|
|
44
|
-
"dompurify": "^3.4.
|
|
43
|
+
"backbone": "1.6.1",
|
|
44
|
+
"dompurify": "^3.4.18",
|
|
45
45
|
"jquery-form": "4.3.0",
|
|
46
|
-
"jquery-ui": "1.14.
|
|
46
|
+
"jquery-ui": "1.14.2",
|
|
47
47
|
"skatejs": "0.13.17",
|
|
48
48
|
"skatejs-template-html": "0.0.0",
|
|
49
49
|
"underscore": "^1.13.8"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@atlassian/aui-webpack-config": "3.0.2",
|
|
53
|
-
"@babel/core": "
|
|
53
|
+
"@babel/core": "8.1.0",
|
|
54
54
|
"@babel/helper-function-name": "^7.24.7",
|
|
55
55
|
"@babel/helper-hoist-variables": "^7.24.7",
|
|
56
|
-
"@babel/preset-env": "
|
|
57
|
-
"@types/backbone": "1.4.
|
|
58
|
-
"@types/jqueryui": "1.12.
|
|
59
|
-
"fs-extra": "11.4.
|
|
56
|
+
"@babel/preset-env": "8.0.7",
|
|
57
|
+
"@types/backbone": "1.4.23",
|
|
58
|
+
"@types/jqueryui": "1.12.25",
|
|
59
|
+
"fs-extra": "11.4.1",
|
|
60
60
|
"ignore-emit-webpack-plugin": "^2.0.6",
|
|
61
61
|
"jquery": "4.0.0",
|
|
62
|
-
"less": "4.9.
|
|
63
|
-
"react": "
|
|
62
|
+
"less": "4.9.1",
|
|
63
|
+
"react": "19.3.1",
|
|
64
64
|
"webpack-merge": "6.0.1"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { token } from '@atlaskit/tokens';
|
|
2
|
+
import getTokenValue from '@atlaskit/tokens/get-token-value';
|
|
3
|
+
import { setGlobalTheme } from '@atlaskit/tokens/set-global-theme';
|
|
4
|
+
import ThemeMutationObserver from '@atlaskit/tokens/theme-mutation-observer';
|
|
2
5
|
import * as TestingTheme from './design-tokens-testing-theme';
|
|
3
6
|
import globalize from '../internal/globalize';
|
|
4
7
|
|
|
5
8
|
import './design-tokens-init';
|
|
6
9
|
|
|
7
10
|
// Export for NPM bundle, for which Webpack automatically puts those functions under AJS.DesignTokens
|
|
8
|
-
export
|
|
11
|
+
export { setGlobalTheme, token, getTokenValue, ThemeMutationObserver };
|
|
9
12
|
|
|
10
13
|
export const { setTestingThemeColor, enableTestingTheme, disableTestingTheme, toggleTestingTheme } =
|
|
11
14
|
TestingTheme;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { setGlobalTheme } from '@atlaskit/tokens/set-global-theme';
|
|
2
2
|
import globalize from '../internal/globalize';
|
|
3
3
|
|
|
4
4
|
import './design-tokens-init';
|
|
5
5
|
|
|
6
6
|
// Export for NPM bundle, for which Webpack automatically puts those functions under AJS.DesignTokens
|
|
7
|
-
export
|
|
7
|
+
export { setGlobalTheme };
|
|
8
8
|
|
|
9
9
|
// Export for p2-plugin bundle, where we need to do put those functions under AJS.DesignTokens manually
|
|
10
10
|
globalize('DesignTokens', {
|
|
@@ -187,21 +187,20 @@ form.aui:not(.aui-legacy-forms) {
|
|
|
187
187
|
.password[disabled],
|
|
188
188
|
.textarea[disabled],
|
|
189
189
|
.select[disabled],
|
|
190
|
-
.multi-select[disabled]
|
|
191
|
-
.select[disabled] option,
|
|
192
|
-
.select[disabled] optgroup,
|
|
193
|
-
.multi-select[disabled] option,
|
|
194
|
-
.multi-select[disabled] optgroup {
|
|
190
|
+
.multi-select[disabled] {
|
|
195
191
|
background-color: @aui-form-disabled-field-bg-color;
|
|
196
192
|
color: @aui-form-disabled-field-text-color;
|
|
197
|
-
border:
|
|
193
|
+
border: 2px solid transparent;
|
|
198
194
|
}
|
|
199
|
-
|
|
200
|
-
.password[disabled],
|
|
201
|
-
.textarea[disabled],
|
|
195
|
+
|
|
202
196
|
.select[disabled],
|
|
203
197
|
.multi-select[disabled] {
|
|
204
|
-
|
|
198
|
+
option,
|
|
199
|
+
optgroup {
|
|
200
|
+
background-color: transparent;
|
|
201
|
+
color: @aui-form-disabled-field-text-color;
|
|
202
|
+
border: none;
|
|
203
|
+
}
|
|
205
204
|
}
|
|
206
205
|
|
|
207
206
|
.select {
|
|
@@ -109,15 +109,20 @@ form.aui.aui-legacy-forms {
|
|
|
109
109
|
.password[disabled],
|
|
110
110
|
.textarea[disabled],
|
|
111
111
|
.select[disabled],
|
|
112
|
-
.multi-select[disabled]
|
|
113
|
-
.select[disabled] option,
|
|
114
|
-
.select[disabled] optgroup,
|
|
115
|
-
.multi-select[disabled] option,
|
|
116
|
-
.multi-select[disabled] optgroup {
|
|
112
|
+
.multi-select[disabled] {
|
|
117
113
|
background-color: @aui-legacy-form-disabled-field-bg-color;
|
|
118
114
|
color: @aui-legacy-form-disabled-field-text-color;
|
|
119
115
|
}
|
|
120
116
|
|
|
117
|
+
.select[disabled],
|
|
118
|
+
.multi-select[disabled] {
|
|
119
|
+
option,
|
|
120
|
+
optgroup {
|
|
121
|
+
background-color: transparent;
|
|
122
|
+
color: @aui-legacy-form-disabled-field-text-color;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
121
126
|
.field-group,
|
|
122
127
|
.group,
|
|
123
128
|
.date-select {
|