@gitlab/ui 96.0.0 → 96.2.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 +23 -0
- package/dist/components/base/toggle/toggle.js +3 -4
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +2 -1
- package/src/components/base/button/button.scss +2 -2
- package/src/components/base/markdown/markdown.scss +8 -6
- package/src/components/base/search_box_by_click/search_box_by_click.scss +2 -2
- package/src/components/base/segmented_control/segmented_control.scss +32 -22
- package/src/components/base/toggle/toggle.scss +11 -37
- package/src/components/base/toggle/toggle.vue +4 -5
- package/src/scss/typescale/_index.scss +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
# [96.2.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v96.1.0...v96.2.0) (2024-10-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Add new mainField `vueSource` to package.json ([bec84bc](https://gitlab.com/gitlab-org/gitlab-ui/commit/bec84bcf78399bff477612a883ae3a3694a87297))
|
|
7
|
+
|
|
8
|
+
# [96.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v96.0.0...v96.1.0) (2024-10-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **GlToggle:** pairing with James feedback ([f261031](https://gitlab.com/gitlab-org/gitlab-ui/commit/f261031f76f4c5c3c36340b230ee50ed5a2022d4))
|
|
14
|
+
* **toggle:** adds specificity for when is-checked and is-disabled ([9fd0daf](https://gitlab.com/gitlab-org/gitlab-ui/commit/9fd0dafa1042dc2a82c519bd4d7b6fe8d6075817))
|
|
15
|
+
* **toggle:** another clean up of css states ([77a6672](https://gitlab.com/gitlab-org/gitlab-ui/commit/77a66724cb19da077a66fe951f4e446725279348))
|
|
16
|
+
* **toggle:** apply suggestions ([fd2e809](https://gitlab.com/gitlab-org/gitlab-ui/commit/fd2e809c8a1d130dad02ebfc2a6776d70c97d5aa))
|
|
17
|
+
* **toggle:** fix linting error ([2218423](https://gitlab.com/gitlab-org/gitlab-ui/commit/2218423bf50585d54833bf1e84dd809c94e11722))
|
|
18
|
+
* **toggle:** further cleanup of CSS ([b278a9e](https://gitlab.com/gitlab-org/gitlab-ui/commit/b278a9e7a7b990f2d80809f6f76b636d56b314dc))
|
|
19
|
+
* **toggle:** make no pointer events on toggle icon ([ac7c1f4](https://gitlab.com/gitlab-org/gitlab-ui/commit/ac7c1f43d9f26ea4dd270236d4143b18b8347881))
|
|
20
|
+
* **toggle:** rearrange css order for specificity ([589e39e](https://gitlab.com/gitlab-org/gitlab-ui/commit/589e39e93da54f3fd4310e4b5dc4cbe3f0f151bf))
|
|
21
|
+
* **toggle:** set class to is-disabled when loading ([478f2fb](https://gitlab.com/gitlab-org/gitlab-ui/commit/478f2fb91e79529d45ec5b46590e1a6c444a5837))
|
|
22
|
+
* **toggle:** use design tokens for is-disabled colors and clean up styling ([fad38fa](https://gitlab.com/gitlab-org/gitlab-ui/commit/fad38fa365115e3e55640280701077e6a9c4267c))
|
|
23
|
+
|
|
1
24
|
# [96.0.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v95.6.0...v96.0.0) (2024-10-10)
|
|
2
25
|
|
|
3
26
|
|
|
@@ -141,11 +141,10 @@ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=
|
|
|
141
141
|
'gl-flex-col': _vm.isVerticalLayout,
|
|
142
142
|
'gl-toggle-label-inline': !_vm.isVerticalLayout,
|
|
143
143
|
'is-disabled': _vm.disabled,
|
|
144
|
-
},attrs:{"data-testid":"toggle-wrapper"}},[_c('span',{staticClass:"gl-toggle-label gl-shrink-0",class:_vm.toggleClasses,attrs:{"id":_vm.labelId,"data-testid":"toggle-label"}},[_vm._t("label",function(){return [_vm._v(_vm._s(_vm.label))]})],2),_vm._v(" "),(_vm.shouldRenderDescription)?_c('span',{staticClass:"gl-description-label gl-mb-3",attrs:{"data-testid":"toggle-description"}},[_vm._t("description",function(){return [_vm._v(_vm._s(_vm.description))]})],2):_vm._e(),_vm._v(" "),(_vm.name)?_c('input',{attrs:{"name":_vm.name,"type":"hidden"},domProps:{"value":_vm.value}}):_vm._e(),_vm._v(" "),_c('button',{staticClass:"gl-shrink-0",class:{
|
|
145
|
-
'gl-toggle': true,
|
|
144
|
+
},attrs:{"data-testid":"toggle-wrapper"}},[_c('span',{staticClass:"gl-toggle-label gl-shrink-0",class:_vm.toggleClasses,attrs:{"id":_vm.labelId,"data-testid":"toggle-label"}},[_vm._t("label",function(){return [_vm._v(_vm._s(_vm.label))]})],2),_vm._v(" "),(_vm.shouldRenderDescription)?_c('span',{staticClass:"gl-description-label gl-mb-3",attrs:{"data-testid":"toggle-description"}},[_vm._t("description",function(){return [_vm._v(_vm._s(_vm.description))]})],2):_vm._e(),_vm._v(" "),(_vm.name)?_c('input',{attrs:{"name":_vm.name,"type":"hidden"},domProps:{"value":_vm.value}}):_vm._e(),_vm._v(" "),_c('button',{staticClass:"gl-toggle gl-shrink-0",class:{
|
|
146
145
|
'is-checked': _vm.value,
|
|
147
|
-
'is-disabled': _vm.disabled,
|
|
148
|
-
},attrs:{"role":"switch","aria-checked":_vm.isChecked,"aria-labelledby":_vm.labelId,"aria-describedby":_vm.helpId,"aria-disabled":_vm.disabled,"type":"button"},on:{"click":function($event){$event.preventDefault();return _vm.toggleFeature.apply(null, arguments)}}},[(_vm.isLoading)?_c('gl-loading-icon',{staticClass:"toggle-loading",attrs:{"color":"
|
|
146
|
+
'is-disabled': _vm.disabled || _vm.isLoading,
|
|
147
|
+
},attrs:{"role":"switch","aria-checked":_vm.isChecked,"aria-labelledby":_vm.labelId,"aria-describedby":_vm.helpId,"aria-disabled":_vm.disabled,"type":"button"},on:{"click":function($event){$event.preventDefault();return _vm.toggleFeature.apply(null, arguments)}}},[(_vm.isLoading)?_c('gl-loading-icon',{staticClass:"toggle-loading",attrs:{"color":"dark"}}):_c('span',{staticClass:"toggle-icon"},[_c('gl-icon',{attrs:{"name":_vm.icon,"size":12}})],1)],1),_vm._v(" "),(_vm.shouldRenderHelp)?_c('span',{staticClass:"gl-help-label",attrs:{"id":_vm.helpId,"data-testid":"toggle-help"}},[_vm._t("help",function(){return [_vm._v(_vm._s(_vm.help))]})],2):_vm._e()])};
|
|
149
148
|
var __vue_staticRenderFns__ = [];
|
|
150
149
|
|
|
151
150
|
/* style */
|