@gitlab/ui 122.1.0 → 122.1.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.
- package/dist/components/base/form/form_checkbox/form_checkbox.js +4 -3
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +1 -48
- package/dist/tokens/build/js/tokens.js +1 -48
- package/dist/tokens/css/tokens.css +0 -47
- package/dist/tokens/css/tokens.dark.css +0 -47
- package/dist/tokens/docs/tokens-tailwind-docs.dark.json +0 -1294
- package/dist/tokens/docs/tokens-tailwind-docs.json +0 -1294
- package/dist/tokens/figma/constants.tokens.json +0 -226
- package/dist/tokens/figma/semantic.tokens.json +0 -157
- package/dist/tokens/js/tokens.dark.js +0 -47
- package/dist/tokens/js/tokens.js +0 -47
- package/dist/tokens/json/tokens.dark.json +4779 -6026
- package/dist/tokens/json/tokens.json +4798 -6045
- package/dist/tokens/scss/_tokens.dark.scss +0 -47
- package/dist/tokens/scss/_tokens.scss +0 -47
- package/dist/tokens/scss/_tokens_custom_properties.scss +0 -47
- package/dist/tokens/tailwind/tokens.cjs +0 -4
- package/package.json +1 -1
- package/src/components/base/form/form_checkbox/form_checkbox.vue +4 -3
- package/src/scss/variables.scss +37 -0
- package/src/tokens/build/css/tokens.css +0 -47
- package/src/tokens/build/css/tokens.dark.css +0 -47
- package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +0 -1294
- package/src/tokens/build/docs/tokens-tailwind-docs.json +0 -1294
- package/src/tokens/build/figma/constants.tokens.json +0 -226
- package/src/tokens/build/figma/semantic.tokens.json +0 -157
- package/src/tokens/build/js/tokens.dark.js +0 -47
- package/src/tokens/build/js/tokens.js +0 -47
- package/src/tokens/build/json/tokens.dark.json +4779 -6026
- package/src/tokens/build/json/tokens.json +4798 -6045
- package/src/tokens/build/scss/_tokens.dark.scss +0 -47
- package/src/tokens/build/scss/_tokens.scss +0 -47
- package/src/tokens/build/scss/_tokens_custom_properties.scss +0 -47
- package/src/tokens/build/tailwind/tokens.cjs +0 -53
- package/src/tokens/semantic/border.tokens.json +0 -157
- package/tailwind.defaults.js +47 -3
- package/src/tokens/constant/spacing_scale.tokens.json +0 -228
|
@@ -26,7 +26,7 @@ var script = {
|
|
|
26
26
|
id: {
|
|
27
27
|
type: String,
|
|
28
28
|
required: false,
|
|
29
|
-
default:
|
|
29
|
+
default: undefined
|
|
30
30
|
},
|
|
31
31
|
/**
|
|
32
32
|
* The current value of the checkbox(es). Must be an array when there are multiple checkboxes bound to the same v-model.
|
|
@@ -112,6 +112,7 @@ var script = {
|
|
|
112
112
|
data() {
|
|
113
113
|
const group = this.getGroup();
|
|
114
114
|
return {
|
|
115
|
+
internalId: this.id ? this.id : uniqueId('gitlab_ui_checkbox_'),
|
|
115
116
|
localChecked: group ? group.checked : this.checked
|
|
116
117
|
};
|
|
117
118
|
},
|
|
@@ -177,7 +178,7 @@ var script = {
|
|
|
177
178
|
} = this;
|
|
178
179
|
return {
|
|
179
180
|
...this.$attrs,
|
|
180
|
-
id: this.
|
|
181
|
+
id: this.internalId,
|
|
181
182
|
name: this.computedName,
|
|
182
183
|
disabled,
|
|
183
184
|
required,
|
|
@@ -295,7 +296,7 @@ var script = {
|
|
|
295
296
|
const __vue_script__ = script;
|
|
296
297
|
|
|
297
298
|
/* template */
|
|
298
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-form-checkbox custom-checkbox custom-control"},[_c('input',_vm._b({key:"input",ref:"input",staticClass:"custom-control-input",class:_vm.stateClass,attrs:{"type":"checkbox"},on:{"change":_vm.handleChange}},'input',_vm.computedAttrs,false)),_vm._v(" "),_c('label',{staticClass:"custom-control-label",attrs:{"for":_vm.
|
|
299
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-form-checkbox custom-checkbox custom-control"},[_c('input',_vm._b({key:"input",ref:"input",staticClass:"custom-control-input",class:_vm.stateClass,attrs:{"type":"checkbox"},on:{"change":_vm.handleChange}},'input',_vm.computedAttrs,false)),_vm._v(" "),_c('label',{staticClass:"custom-control-label",attrs:{"for":_vm.internalId}},[_vm._t("default"),_vm._v(" "),(Boolean(_vm.$scopedSlots.help))?_c('p',{staticClass:"help-text"},[_vm._t("help")],2):_vm._e()],2)])};
|
|
299
300
|
var __vue_staticRenderFns__ = [];
|
|
300
301
|
|
|
301
302
|
/* style */
|