@atlassian/aui 9.3.4 → 9.4.2

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.
Files changed (36) hide show
  1. package/dist/aui/aui-css-deprecations.js +1 -1
  2. package/dist/aui/aui-css-deprecations.js.map +1 -1
  3. package/dist/aui/aui-prototyping.css +13 -12
  4. package/dist/aui/aui-prototyping.css.map +1 -0
  5. package/dist/aui/aui-prototyping.js +47 -47
  6. package/dist/aui/aui-prototyping.js.map +1 -1
  7. package/dist/aui/aui-prototyping.nodeps.css +13 -12
  8. package/dist/aui/aui-prototyping.nodeps.css.map +1 -0
  9. package/dist/aui/aui-prototyping.nodeps.js +47 -47
  10. package/dist/aui/aui-prototyping.nodeps.js.map +1 -1
  11. package/entry/aui.batch.prototyping.js +2 -1
  12. package/entry/aui.component.form.date-select.js +1 -1
  13. package/entry/behaviours/aui.behaviour.i18n.js +1 -1
  14. package/package.json +10 -14
  15. package/src/js/aui/date-picker.js +15 -8
  16. package/src/js/aui/i18n.js +6 -2
  17. package/src/js/aui/internal/globalize.js +31 -1
  18. package/src/js/aui/layer.js +54 -49
  19. package/src/js/aui/tooltip.js +19 -7
  20. package/src/js/aui/unique-id.js +1 -1
  21. package/src/js/aui-css-deprecations.js +9 -1
  22. package/src/js-vendor/jquery/plugins/jquery.form.js +7 -1
  23. package/src/less/aui-appheader.less +0 -1
  24. package/src/less/aui-experimental-tooltip.less +1 -1
  25. package/src/less/aui-page-typography.less +3 -1
  26. package/src/less/aui-select2.less +20 -10
  27. package/src/less/aui-sidebar-skeleton.less +5 -3
  28. package/src/less/flag.less +1 -1
  29. package/src/less/forms-current.less +5 -4
  30. package/src/less/forms.less +0 -1
  31. package/src/less/imports/aui-theme/core/layers.less +13 -4
  32. package/src/less/imports/mixins/dropdown2-trigger-chevron-icon.less +2 -2
  33. package/src/less/inline-dialog.less +0 -2
  34. package/src/less/layer.less +1 -1
  35. package/src/less/messages.less +0 -5
  36. package/src/less/single-select.less +0 -2
@@ -27,7 +27,6 @@
27
27
  #aui.box-sizing();
28
28
  min-width: @aui-sidebar-collapsed-width;
29
29
  position: absolute;
30
- z-index: @aui-z-sidebar;
31
30
 
32
31
  // when the sidebar sits over the content
33
32
  &.aui-sidebar-fly-out {
@@ -56,11 +55,12 @@
56
55
  position: absolute;
57
56
  top: 0;
58
57
  bottom: auto;
58
+ // explicit z-index needed in order to appear over the top of page layout's #content and #footer on the sidebar's RHS.
59
+ // they use padding-left to "make space" for sidebar, meaning their background-color bleeds over the top of sidebar.
60
+ z-index: 1;
59
61
 
60
62
  &.aui-is-docked {
61
63
  position: fixed;
62
- top: 0;
63
- bottom: auto;
64
64
  }
65
65
  }
66
66
 
@@ -295,6 +295,8 @@
295
295
  #content .aui-sidebar + main,
296
296
  #content + #footer {
297
297
  .aui-page-sidebar & {
298
+ // needs to be padding, not margin, so that horizontal scrollbars are not drawn.
299
+ // future iterations of page layout should use grid or flexbox and carve out explicit space for sidebar.
298
300
  padding-left: var(--aui-sidebar-width);
299
301
  }
300
302
 
@@ -6,7 +6,7 @@
6
6
  position: fixed;
7
7
  top: @gutter + 55px; // height of header plus some fudge.
8
8
  right: @gutter;
9
- z-index: 4000;
9
+ z-index: @aui-z-flag-container;
10
10
  }
11
11
 
12
12
  .aui-flag {
@@ -243,13 +243,14 @@ form.aui:not(.aui-legacy-forms) {
243
243
  }
244
244
 
245
245
  // both are @ak-color-N600
246
- @chevron-dark: url('data:image/svg+xml,%3Csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill="%23A5ADBA" d="m6.744 8.744a1.053 1.053 0 0 0 0 1.49l4.547 4.557a1 1 0 0 0 1.416 0l4.55-4.558a1.051 1.051 0 1 0-1.488-1.488l-3.77 3.776-3.768-3.776a1.051 1.051 0 0 0-1.487 0z"/%3E%3C/svg%3E%0A');
247
- @chevron-light: url('data:image/svg+xml,%3Csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill="%23344563" d="m6.744 8.744a1.053 1.053 0 0 0 0 1.49l4.547 4.557a1 1 0 0 0 1.416 0l4.55-4.558a1.051 1.051 0 1 0-1.488-1.488l-3.77 3.776-3.768-3.776a1.051 1.051 0 0 0-1.487 0z"/%3E%3C/svg%3E%0A');
246
+ @chevron-dark: url('data:image/svg+xml,%3Csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill="%23A5ADBA" d="M8.292 10.293a1.009 1.009 0 000 1.419l2.939 2.965c.218.215.5.322.779.322s.556-.107.769-.322l2.93-2.955a1.01 1.01 0 000-1.419.987.987 0 00-1.406 0l-2.298 2.317-2.307-2.327a.99.99 0 00-1.406 0z"/%3E%3C/svg%3E%0A');
247
+ @chevron-light: url('data:image/svg+xml,%3Csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill="%23344563" d="M8.292 10.293a1.009 1.009 0 000 1.419l2.939 2.965c.218.215.5.322.779.322s.556-.107.769-.322l2.93-2.955a1.01 1.01 0 000-1.419.987.987 0 00-1.406 0l-2.298 2.317-2.307-2.327a.99.99 0 00-1.406 0z"/%3E%3C/svg%3E%0A');
248
248
 
249
249
  select[disabled]:not([size]),
250
250
  .select:not([size]) {
251
251
  background-repeat: no-repeat;
252
- background-position: 100% 50%;
252
+ background-position: calc(100% + 1.5px) 50%;
253
+ background-size: 25px;
253
254
  }
254
255
 
255
256
  select.select[disabled]:not([size]) {
@@ -259,7 +260,7 @@ form.aui:not(.aui-legacy-forms) {
259
260
  }
260
261
 
261
262
  select.select:not([size]) {
262
- padding-right: 22px;
263
+ padding-right: 20px;
263
264
  background-image: @chevron-light;
264
265
  }
265
266
 
@@ -6,7 +6,6 @@
6
6
 
7
7
  form.aui {
8
8
  margin: 20px 0 0 0;
9
- position: relative;
10
9
  }
11
10
 
12
11
  form.aui:first-child {
@@ -1,4 +1,13 @@
1
- @aui-z-base: 2;
2
- @aui-z-sidebar: @aui-z-base + 1;
3
- @aui-z-header: @aui-z-sidebar + 1;
4
- @aui-z-skip: @aui-z-header + 1;
1
+ // See layer.js and ZINDEX_AUI_LAYER_MIN, too.
2
+ // All modern components' z-index values should be managed by the layer manager.
3
+ @aui-z-layer-min: 3000;
4
+ @aui-z-dropdown: @aui-z-layer-min;
5
+ @aui-z-inline-dialog: @aui-z-layer-min;
6
+ @aui-z-modal-dialog: @aui-z-layer-min;
7
+
8
+ // Additional manually-configured indexes, because sometimes we need things to be above or below the base.
9
+ @aui-z-blanket: @aui-z-layer-min - 500; // so it appears below modals
10
+ @aui-z-skip: @aui-z-layer-min + 1000; // so they appear above modals
11
+ @aui-z-flag-container: @aui-z-layer-min + 1000; // so they appear above modals
12
+ @aui-z-select2: @aui-z-layer-min + 3; // so it can paint an "overlay" behind its suggestion dropdown
13
+ @aui-z-tooltip: @aui-z-layer-min + 2000; // so they appear over the top of pretty much everything
@@ -2,7 +2,7 @@
2
2
 
3
3
  #aui {
4
4
  .aui-dropdown2-trigger-chevron-icon(@glyphsize: @aui-icon-size-small; @canvassize: @aui-icon-size-small-canvas) {
5
- @canvas-padding: ((@canvassize - @glyphsize) / 2);
5
+
6
6
  #aui.icon-pseudoelement(@aui-icon-font-family);
7
7
  content: @aui-glyph-chevron-down;
8
8
  font-size: @glyphsize;
@@ -10,7 +10,7 @@
10
10
  line-height: 1;
11
11
  margin-top: -(@glyphsize / 2);
12
12
  position: absolute;
13
- right: @canvas-padding;
13
+ right: 3.5px;
14
14
  top: 50%;
15
15
  text-indent: 0; // Reset indentation set by split button
16
16
  width: @glyphsize;
@@ -12,7 +12,6 @@ aui-inline-dialog {
12
12
 
13
13
  display: block;
14
14
  position: absolute;
15
- z-index: 100;
16
15
 
17
16
  // Handle FOUC
18
17
  &:not([resolved]) {
@@ -159,7 +158,6 @@ aui-inline-dialog {
159
158
  .aui-inline-dialog {
160
159
  display: none;
161
160
  position: absolute;
162
- z-index: 100;
163
161
 
164
162
  .aui-inline-dialog-contents,
165
163
  .contents {
@@ -23,7 +23,7 @@
23
23
  position: fixed;
24
24
  top: 0;
25
25
  width: 100%;
26
- z-index: 2500;
26
+ z-index: @aui-z-blanket;
27
27
 
28
28
  &:not([hidden]) {
29
29
  #aui.transition.fadeIn(@aui-blanket-fade-time, @aui-blanket-fade-delay);
@@ -51,11 +51,6 @@ aui-message, .aui-message {
51
51
  }
52
52
  }
53
53
 
54
- .aui-popup .aui-message.closeable,
55
- .aui-dialog .aui-message.closeable {
56
- z-index: 4000;
57
- }
58
-
59
54
  .aui-message-error {
60
55
  --aui-message-icolor: var(--aui-message-error-icon-color);
61
56
  --aui-message-ig: @aui-glyph-exclamation-circle;
@@ -136,8 +136,6 @@ aui-select {
136
136
 
137
137
  &:not([aria-busy])::before {
138
138
  #aui.aui-dropdown2-trigger-chevron-icon();
139
-
140
- right: ((@select-trigger-width - @aui-icon-size-small - (@aui-button-border-width *2)) / 2);
141
139
  }
142
140
  }
143
141
  }