@gitlab/ui 114.7.0 → 114.7.1

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,9 +1,9 @@
1
1
  /**
2
2
  * Adds two numbers together
3
- * @param {Number} a
4
- * @param {Number} b
3
+ * @param {Number|String} a
4
+ * @param {Number|String} b
5
5
  */
6
- const addition = (a, b) => a + b;
6
+ const addition = (a, b) => Number(a) + Number(b);
7
7
 
8
8
  /**
9
9
  * Returns the sum of all arguments
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "114.7.0",
3
+ "version": "114.7.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -163,7 +163,7 @@ export default {
163
163
  class="gl-description-label gl-mb-3"
164
164
  data-testid="toggle-description"
165
165
  >
166
- <!-- @slot A description text to be shown below the label. -->
166
+ <!-- @slot A description text to be shown below the label. Unavailable when the label is positioned on the left. -->
167
167
  <slot name="description">{{ description }}</slot>
168
168
  </span>
169
169
  <input v-if="name" :name="name" :value="value" type="hidden" />
@@ -188,7 +188,7 @@ export default {
188
188
  </span>
189
189
  </button>
190
190
  <span v-if="shouldRenderHelp" :id="helpId" class="gl-help-label" data-testid="toggle-help">
191
- <!-- @slot A help text to be shown below the toggle. -->
191
+ <!-- @slot A help text to be shown below the toggle. Unavailable when the label is positioned on the left. -->
192
192
  <slot name="help">{{ help }}</slot>
193
193
  </span>
194
194
  </div>
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Adds two numbers together
3
- * @param {Number} a
4
- * @param {Number} b
3
+ * @param {Number|String} a
4
+ * @param {Number|String} b
5
5
  */
6
- export const addition = (a, b) => a + b;
6
+ export const addition = (a, b) => Number(a) + Number(b);
7
7
 
8
8
  /**
9
9
  * Returns the sum of all arguments