@gitlab/ui 90.2.0 → 90.3.0

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,3 +1,10 @@
1
+ # [90.3.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v90.2.0...v90.3.0) (2024-08-26)
2
+
3
+
4
+ ### Features
5
+
6
+ * Add gl-animate-skeleton-loader as Tailwind Component ([4b5d3ef](https://gitlab.com/gitlab-org/gitlab-ui/commit/4b5d3ef1798db44017d50a03ffa3a6f5204817dc))
7
+
1
8
  # [90.2.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v90.1.0...v90.2.0) (2024-08-22)
2
9
 
3
10
 
@@ -1,7 +1,7 @@
1
1
  import { tooltipActionEvents } from '../../utils/constants';
2
2
 
3
3
  // eslint-disable-next-line import/no-default-export
4
- var tooltip_mixin = (tooltipRefName => ({
4
+ var tooltip_mixin = tooltipRefName => ({
5
5
  mounted() {
6
6
  /**
7
7
  * Pass through the events to programmatically open, close, enable
@@ -16,6 +16,6 @@ var tooltip_mixin = (tooltipRefName => ({
16
16
  beforeDestroy() {
17
17
  tooltipActionEvents.forEach(event => this.$off(event));
18
18
  }
19
- }));
19
+ });
20
20
 
21
21
  export default tooltip_mixin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "90.2.0",
3
+ "version": "90.3.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -108,7 +108,7 @@
108
108
  "@babel/core": "^7.25.2",
109
109
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
110
110
  "@babel/plugin-proposal-optional-chaining": "^7.21.0",
111
- "@babel/preset-env": "^7.25.3",
111
+ "@babel/preset-env": "^7.25.4",
112
112
  "@babel/preset-react": "^7.24.7",
113
113
  "@cypress/grep": "^4.0.1",
114
114
  "@gitlab/eslint-plugin": "20.0.0",
@@ -1,3 +1,26 @@
1
1
  Collapse is used to keep pages focused on the overview of what the user can do. Details and
2
2
  additional actions are hidden in the fold, and can be opened if the user wants to interact with
3
3
  those elements.
4
+
5
+ ## Troubleshooting
6
+
7
+ When collapsing the container, padding on the collapse component causes
8
+ complications with the height calculations.
9
+ The result is a bit of jumpiness at the end of the collapse animation.
10
+
11
+ The quick solution is to bring the padding into an inner container, which
12
+ simplifies the height calculations and removes the jumpiness.
13
+
14
+ ```html
15
+ <!-- bad -->
16
+ <gl-collapse class="gl-p-3">
17
+ <!-- content -->
18
+ </gl-collapse>
19
+
20
+ <!-- good -->
21
+ <gl-collapse>
22
+ <div class="gl-p-3">
23
+ <!-- content -->
24
+ </div>
25
+ </gl-collapse>
26
+ ```
@@ -48,6 +48,21 @@ const spacing = {
48
48
 
49
49
  function addCustomDefinitions({ addComponents, addUtilities }) {
50
50
  addComponents({
51
+ '.animate-skeleton-loader': {
52
+ overflow: 'hidden',
53
+ 'max-width': '32rem',
54
+ 'background-size': '32rem 100%',
55
+ 'background-position': '-32rem 0',
56
+ 'background-color': 'var(--gray-100, #dcdcde)',
57
+ 'background-image':
58
+ 'linear-gradient(to right, var(--gray-100, #dcdcde) 0, var(--gray-50, #ececef) 23%, var(--gray-50, #ececef) 27%, var(--gray-100, #dcdcde) 50%)',
59
+ 'background-repeat': 'no-repeat',
60
+ '@media (prefers-reduced-motion: no-preference)': {
61
+ animation: 'gl-keyframes-skeleton-loader 2.5s linear',
62
+ 'animation-delay': 'inherit',
63
+ 'animation-iteration-count': '3',
64
+ },
65
+ },
51
66
  '.border': {
52
67
  'border-style': 'solid',
53
68
  'border-color': 'var(--gray-100, #dcdcde)',