@atlassian/aui 10.2.7 → 10.2.9

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.
@@ -1,48 +1,72 @@
1
1
  export default {
2
- 'light': () => (() => {}),
3
- 'dark': () => (() => {}),
2
+ 'light': () => ({ default: '' }),
3
+ 'dark': () => ({ default: '' }),
4
4
  'light-future': () => {
5
5
  console.warn('AUI does not provide "light-future" theme. Setting this theme will have no effect.');
6
- return () => {};
6
+ return { default: '' };
7
+ },
8
+ 'UNSAFE-dynamic': () => {
9
+ console.warn('AUI does not provide "UNSAFE-dynamic" theme. Setting this theme will have no effect.');
10
+ return { default: '' };
11
+ },
12
+ 'UNSAFE-dynamic-dark': () => {
13
+ console.warn('AUI does not provide "UNSAFE-dynamic-dark" theme. Setting this theme will have no effect.');
14
+ return { default: '' };
15
+ },
16
+ 'UNSAFE-test-light': () => {
17
+ console.warn('AUI does not provide "UNSAFE-test-light" theme. Setting this theme will have no effect.');
18
+ return { default: '' };
19
+ },
20
+ 'UNSAFE-test-dark': () => {
21
+ console.warn('AUI does not provide "UNSAFE-test-dark" theme. Setting this theme will have no effect.');
22
+ return { default: '' };
7
23
  },
8
24
  'dark-future': () => {
9
25
  console.warn('AUI does not provide "dark-future" theme. Setting this theme will have no effect.');
10
- return () => {};
26
+ return { default: '' };
11
27
  },
12
28
  'spacing': () => {
13
29
  console.warn('AUI does not provide "spacing" theme. Setting this theme will have no effect.');
14
- return () => {};
30
+ return { default: '' };
31
+ },
32
+ 'UNSAFE-spacing': () => {
33
+ console.warn('AUI does not provide "UNSAFE-spacing" theme. Setting this theme will have no effect.');
34
+ return { default: '' };
15
35
  },
16
36
  'shape': () => {
17
37
  console.warn('AUI does not provide "shape" theme. Setting this theme will have no effect.');
18
- return () => {};
38
+ return { default: '' };
19
39
  },
20
40
  'typography': () => {
21
41
  console.warn('AUI does not provide "typography" theme. Setting this theme will have no effect.');
22
- return () => {};
42
+ return { default: '' };
43
+ },
44
+ 'UNSAFE-typography': () => {
45
+ console.warn('AUI does not provide "UNSAFE-typography" theme. Setting this theme will have no effect.');
46
+ return { default: '' };
23
47
  },
24
48
  'motion': () => {
25
49
  console.warn('AUI does not provide "motion" theme. Setting this theme will have no effect.');
26
- return () => {};
50
+ return { default: '' };
27
51
  },
28
52
  'legacy-light': () => {
29
53
  console.warn('AUI does not provide "legacy-light" theme. Setting this theme will have no effect.');
30
- return () => {};
54
+ return { default: '' };
31
55
  },
32
56
  'legacy-dark': () => {
33
57
  console.warn('AUI does not provide "legacy-dark" theme. Setting this theme will have no effect.');
34
- return () => {};
58
+ return { default: '' };
35
59
  },
36
60
  'typography-adg3': () => {
37
61
  console.warn('AUI does not provide "typography-adg3" theme. Setting this theme will have no effect.');
38
- return () => {};
62
+ return { default: '' };
39
63
  },
40
64
  'typography-modernized': () => {
41
65
  console.warn('AUI does not provide "typography-modernized" theme. Setting this theme will have no effect.');
42
- return () => {};
66
+ return { default: '' };
43
67
  },
44
68
  'typography-refreshed': () => {
45
69
  console.warn('AUI does not provide "typography-refreshed" theme. Setting this theme will have no effect.');
46
- return () => {};
70
+ return { default: '' };
47
71
  },
48
72
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atlassian/aui",
3
3
  "description": "Atlassian User Interface library",
4
- "version": "10.2.7",
4
+ "version": "10.2.9",
5
5
  "author": "Atlassian Pty Ltd.",
6
6
  "homepage": "https://aui.atlassian.com",
7
7
  "license": "Apache-2.0",
@@ -36,12 +36,12 @@
36
36
  "jquery": "^2 || ^3 || ^4"
37
37
  },
38
38
  "dependencies": {
39
- "@atlaskit/tokens": "13.0.4",
39
+ "@atlaskit/tokens": "20.12.0",
40
40
  "@atlassian/adg-server-iconfont": "3.1.2",
41
41
  "@atlassian/fancy-file-input": "3.0.0",
42
42
  "@popperjs/core": "2.11.8",
43
43
  "backbone": "1.6.0",
44
- "dompurify": "^3.4.13",
44
+ "dompurify": "^3.4.18",
45
45
  "jquery-form": "4.3.0",
46
46
  "jquery-ui": "1.14.1",
47
47
  "skatejs": "0.13.17",
@@ -1,11 +1,14 @@
1
- import * as Tokens from '@atlaskit/tokens';
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 const { setGlobalTheme, token, getTokenValue, ThemeMutationObserver } = Tokens;
11
+ export { setGlobalTheme, token, getTokenValue, ThemeMutationObserver };
9
12
 
10
13
  export const { setTestingThemeColor, enableTestingTheme, disableTestingTheme, toggleTestingTheme } =
11
14
  TestingTheme;
@@ -1,4 +1,4 @@
1
- import { setGlobalTheme } from '@atlaskit/tokens';
1
+ import { setGlobalTheme } from '@atlaskit/tokens/set-global-theme';
2
2
 
3
3
  if (document.documentElement.hasAttribute('data-color-mode-auto')) {
4
4
  setGlobalTheme({ colorMode: 'auto' });
@@ -1,10 +1,10 @@
1
- import * as Tokens from '@atlaskit/tokens';
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 const { setGlobalTheme } = Tokens;
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', {
@@ -186,21 +186,20 @@ form.aui:not(.aui-legacy-forms) {
186
186
  .password[disabled],
187
187
  .textarea[disabled],
188
188
  .select[disabled],
189
- .multi-select[disabled],
190
- .select[disabled] option,
191
- .select[disabled] optgroup,
192
- .multi-select[disabled] option,
193
- .multi-select[disabled] optgroup {
189
+ .multi-select[disabled] {
194
190
  background-color: @aui-form-disabled-field-bg-color;
195
191
  color: @aui-form-disabled-field-text-color;
196
- border: none;
192
+ border: 2px solid transparent;
197
193
  }
198
- .text[disabled],
199
- .password[disabled],
200
- .textarea[disabled],
194
+
201
195
  .select[disabled],
202
196
  .multi-select[disabled] {
203
- border: 2px solid transparent;
197
+ option,
198
+ optgroup {
199
+ background-color: transparent;
200
+ color: @aui-form-disabled-field-text-color;
201
+ border: none;
202
+ }
204
203
  }
205
204
 
206
205
  .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 {