@gitlab/ui 104.0.0 → 104.1.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [104.1.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v104.1.0...v104.1.1) (2024-12-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * remove unused `title-sr-only` prop in `modal.js` ([d41a24e](https://gitlab.com/gitlab-org/gitlab-ui/commit/d41a24e28c4d72058701bd5aad1758c3da72f3b6))
7
+
8
+ # [104.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v104.0.0...v104.1.0) (2024-12-03)
9
+
10
+
11
+ ### Features
12
+
13
+ * **Tailwind:** add border default design token to shadow utils ([2aae4d3](https://gitlab.com/gitlab-org/gitlab-ui/commit/2aae4d3d0fb0edd8126a6f2c56dc559875a0bba7))
14
+
1
15
  # [104.0.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v103.7.1...v104.0.0) (2024-11-29)
2
16
 
3
17
 
@@ -116,7 +116,6 @@ const props = makePropsConfigurable(sortKeys({
116
116
  title: makeProp(PROP_TYPE_STRING),
117
117
  titleClass: makeProp(PROP_TYPE_ARRAY_OBJECT_STRING),
118
118
  titleHtml: makeProp(PROP_TYPE_STRING),
119
- titleSrOnly: makeProp(PROP_TYPE_BOOLEAN, false),
120
119
  titleTag: makeProp(PROP_TYPE_STRING, 'h5')
121
120
  }), NAME_MODAL);
122
121
 
@@ -183,7 +182,7 @@ const BModal = /*#__PURE__*/extend({
183
182
  return [{
184
183
  fade: !this.noFade,
185
184
  show: this.isShow,
186
- 'd-block': this.isBlock
185
+ 'gl-block': this.isBlock
187
186
  }, this.modalClass];
188
187
  },
189
188
  modalStyles() {
@@ -200,11 +199,6 @@ const BModal = /*#__PURE__*/extend({
200
199
  'modal-dialog-scrollable': this.scrollable
201
200
  }, this.dialogClass];
202
201
  },
203
- titleClasses() {
204
- return [{
205
- 'sr-only': this.titleSrOnly
206
- }, this.titleClass];
207
- },
208
202
  modalOuterStyle() {
209
203
  // Styles needed for proper stacking of modals
210
204
  return {
@@ -689,7 +683,7 @@ const BModal = /*#__PURE__*/extend({
689
683
  }
690
684
  $modalHeader = [h(this.titleTag, {
691
685
  staticClass: 'modal-title',
692
- class: this.titleClasses,
686
+ class: this.titleClass,
693
687
  attrs: {
694
688
  id: this.modalTitleId
695
689
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "104.0.0",
3
+ "version": "104.1.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -908,14 +908,13 @@ most cases.
908
908
 
909
909
  - The `aria-labelledby` attribute will **not** be present if you have the header hidden, or supplied
910
910
  your own header, or have not supplied a modal title. It is recommended to supply a title for your
911
- modals (when using the built in header). You can visually hide the header title, but still make it
912
- available to screen readers by setting the `title-sr-only` prop. If you do not have a header, you
911
+ modals (when using the built in header). If you do not have a header, you
913
912
  can supply a label for the modal by passing a string to the `aria-label` prop.
914
913
  - The `aria-describedby` attribute will always point to the modal's body content.
915
914
  - If the `aria-label` prop is specified with a string value, the `aria-labelledby` attribute will
916
915
  not be rendered, even if you have a title/header for your modal.
917
916
 
918
- The `aria-label` and `title-sr-only` props were added in version `v2.0.0-rc.27`.
917
+ The `aria-label` prop was added in version `v2.0.0-rc.27`.
919
918
 
920
919
  ### Auto focus on open
921
920
 
@@ -158,7 +158,6 @@ export const props = makePropsConfigurable(
158
158
  title: makeProp(PROP_TYPE_STRING),
159
159
  titleClass: makeProp(PROP_TYPE_ARRAY_OBJECT_STRING),
160
160
  titleHtml: makeProp(PROP_TYPE_STRING),
161
- titleSrOnly: makeProp(PROP_TYPE_BOOLEAN, false),
162
161
  titleTag: makeProp(PROP_TYPE_STRING, 'h5')
163
162
  }),
164
163
  NAME_MODAL
@@ -229,7 +228,7 @@ export const BModal = /*#__PURE__*/ extend({
229
228
  {
230
229
  fade: !this.noFade,
231
230
  show: this.isShow,
232
- 'd-block': this.isBlock
231
+ 'gl-block': this.isBlock
233
232
  },
234
233
  this.modalClass
235
234
  ]
@@ -251,9 +250,6 @@ export const BModal = /*#__PURE__*/ extend({
251
250
  this.dialogClass
252
251
  ]
253
252
  },
254
- titleClasses() {
255
- return [{ 'sr-only': this.titleSrOnly }, this.titleClass]
256
- },
257
253
  modalOuterStyle() {
258
254
  // Styles needed for proper stacking of modals
259
255
  return {
@@ -760,7 +756,7 @@ export const BModal = /*#__PURE__*/ extend({
760
756
  this.titleTag,
761
757
  {
762
758
  staticClass: 'modal-title',
763
- class: this.titleClasses,
759
+ class: this.titleClass,
764
760
  attrs: { id: this.modalTitleId },
765
761
  // TODO: Rename slot to `title` and deprecate `modal-title`
766
762
  domProps: this.hasNormalizedSlot(SLOT_NAME_MODAL_TITLE)
@@ -182,10 +182,6 @@
182
182
  "prop": "size",
183
183
  "description": "Set the size of the modal's width. 'sm', 'md' (default), 'lg', or 'xl'"
184
184
  },
185
- {
186
- "prop": "titleSrOnly",
187
- "description": "Wraps the title in an '.sr-only' wrapper"
188
- },
189
185
  {
190
186
  "prop": "titleTag",
191
187
  "description": "Specify the HTML tag to render instead of the default tag for the title"
@@ -464,6 +464,8 @@ module.exports = {
464
464
  lg: '0 0 2px var(--gl-shadow-color-default, #05050629), 0 0 2px var(--gl-shadow-color-default, #05050629), 0 4px 12px var(--gl-shadow-color-default, #05050629)',
465
465
  'inner-1-blue-500': 'inset 0 0 0 1px var(--blue-500, #1f75cb)',
466
466
  'inner-1-gray-100': 'inset 0 0 0 1px var(--gray-100, #dcdcde)',
467
+ 'inner-1-border-default':
468
+ 'inset 0 0 0 1px var(--gl-border-color-default, var(--gl-color-neutral-100, #dcdcde))',
467
469
  'inner-1-gray-200': 'inset 0 0 0 1px var(--gray-200, #bfbfc3)',
468
470
  'inner-1-gray-400': 'inset 0 0 0 1px var(--gray-400, #89888d)',
469
471
  'inner-1-red-300': 'inset 0 0 0 1px var(--red-300, #f57f6c)',
@@ -471,6 +473,8 @@ module.exports = {
471
473
  'inner-1-red-500': 'inset 0 0 0 1px var(--red-500, #dd2b0e)',
472
474
  'inner-2-blue-400': 'inset 0 0 0 2px var(--blue-400, #428fdc)',
473
475
  'inner-b-1-gray-100': 'inset 0 -1px 0 0 var(--gray-100, #dcdcde)',
476
+ 'inner-b-1-border-default':
477
+ 'inset 0 0 0 1px var(--gl-border-color-default, var(--gl-color-neutral-100, #dcdcde))',
474
478
  'inner-b-2-blue-500': 'inset 0 -2px 0 0 var(--blue-500, #1f75cb)',
475
479
  'inner-b-2-theme-accent':
476
480
  'inset 0 -2px 0 0 var(--gl-theme-accent, var(--theme-indigo-500, #6666c4))',