@threadlabs/looma 0.13.6 → 0.14.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/components/ui-button/ui-button.html +2 -1
- package/components/ui-checkbox/ui-checkbox.html +35 -0
- package/components/ui-combobox/ui-combobox.html +38 -3
- package/components/ui-input/ui-input.html +27 -0
- package/components/ui-input-group/ui-input-group.html +15 -0
- package/components/ui-radio/ui-radio.html +35 -0
- package/components/ui-select/ui-select.html +29 -3
- package/components/ui-switch/ui-switch.html +36 -0
- package/components/ui-textarea/ui-textarea.html +20 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/styles/ui-button.css +3 -1
- package/styles/ui-checkbox.css +38 -0
- package/styles/ui-combobox.css +38 -1
- package/styles/ui-input-group.css +20 -0
- package/styles/ui-input.css +29 -0
- package/styles/ui-radio.css +38 -0
- package/styles/ui-select.css +29 -3
- package/styles/ui-switch.css +41 -0
- package/styles/ui-textarea.css +21 -0
- package/vanilla/UiCheckbox.d.ts +1 -0
- package/vanilla/UiCheckbox.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +1 -1
- package/vanilla/UiInput.d.ts +1 -0
- package/vanilla/UiInput.js +1 -1
- package/vanilla/UiRadio.d.ts +1 -0
- package/vanilla/UiRadio.js +1 -1
- package/vanilla/UiSelect.d.ts +1 -0
- package/vanilla/UiSelect.js +1 -1
- package/vanilla/UiSwitch.d.ts +1 -0
- package/vanilla/UiSwitch.js +1 -1
- package/vanilla/UiTextarea.d.ts +1 -0
- package/vanilla/UiTextarea.js +1 -1
- package/vue/UiButton.vue +2 -1
- package/vue/UiCheckbox.d.ts +2 -0
- package/vue/UiCheckbox.vue +34 -0
- package/vue/UiCombobox.d.ts +2 -2
- package/vue/UiCombobox.vue +39 -2
- package/vue/UiInput.d.ts +2 -0
- package/vue/UiInput.vue +41 -0
- package/vue/UiInputGroup.vue +15 -0
- package/vue/UiRadio.d.ts +2 -0
- package/vue/UiRadio.vue +34 -0
- package/vue/UiSelect.d.ts +2 -0
- package/vue/UiSelect.vue +34 -3
- package/vue/UiSwitch.d.ts +2 -0
- package/vue/UiSwitch.vue +35 -0
- package/vue/UiTextarea.d.ts +2 -0
- package/vue/UiTextarea.vue +27 -0
- package/vue/chunks/UiButton.js +1 -1
- package/vue/chunks/UiCheckbox.js +3 -2
- package/vue/chunks/UiCombobox.js +1 -1
- package/vue/chunks/UiInput.js +7 -2
- package/vue/chunks/UiInputGroup.js +1 -1
- package/vue/chunks/UiRadio.js +3 -2
- package/vue/chunks/UiSelect.js +7 -2
- package/vue/chunks/UiSwitch.js +3 -2
- package/vue/chunks/UiTextarea.js +7 -2
- package/vue/components.css +365 -165
package/vue/chunks/UiSwitch.js
CHANGED
|
@@ -37,6 +37,7 @@ var UiSwitch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
37
37
|
type: Boolean,
|
|
38
38
|
default: false
|
|
39
39
|
},
|
|
40
|
+
size: { default: "md" },
|
|
40
41
|
value: { default: "on" }
|
|
41
42
|
},
|
|
42
43
|
emits: [
|
|
@@ -52,7 +53,7 @@ var UiSwitch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
52
53
|
const descriptionElement = useTemplateRef("description");
|
|
53
54
|
const internalChecked = ref(false);
|
|
54
55
|
/** The values the styles' :host-state() rules test. */
|
|
55
|
-
const hostState = computed(() => [props.disabled && "disabled"].filter(Boolean).join(" "));
|
|
56
|
+
const hostState = computed(() => [props.disabled && "disabled", props.size && `size size=${props.size}`].filter(Boolean).join(" "));
|
|
56
57
|
const isChangeDetail = (detail) => detail !== null && typeof detail === "object" && !Array.isArray(detail) && typeof detail["checked"] === "boolean" && typeof detail["value"] === "string" && (detail["trigger"] === "keyboard" || detail["trigger"] === "pointer" || detail["trigger"] === "programmatic") && Object.keys(detail).every((key) => [
|
|
57
58
|
"checked",
|
|
58
59
|
"value",
|
|
@@ -89,6 +90,6 @@ var UiSwitch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
89
90
|
}, null, 40, _hoisted_2), createElementVNode("span", _hoisted_3, [createElementVNode("span", _hoisted_4, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]), createElementVNode("span", _hoisted_5, [renderSlot(_ctx.$slots, "description", {}, void 0, true)], 512)])], 16, _hoisted_1);
|
|
90
91
|
};
|
|
91
92
|
}
|
|
92
|
-
}), [["__scopeId", "data-v-
|
|
93
|
+
}), [["__scopeId", "data-v-87fc218c"]]);
|
|
93
94
|
//#endregion
|
|
94
95
|
export { UiSwitch_default as t };
|
package/vue/chunks/UiTextarea.js
CHANGED
|
@@ -8,7 +8,8 @@ var _hoisted_1 = [
|
|
|
8
8
|
"readonly",
|
|
9
9
|
"required",
|
|
10
10
|
"aria-invalid",
|
|
11
|
-
"rows"
|
|
11
|
+
"rows",
|
|
12
|
+
"data-ui-textarea-state"
|
|
12
13
|
];
|
|
13
14
|
//#endregion
|
|
14
15
|
//#region .build/vue/UiTextarea.vue
|
|
@@ -33,6 +34,7 @@ var UiTextarea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
33
34
|
default: false
|
|
34
35
|
},
|
|
35
36
|
rows: { default: 4 },
|
|
37
|
+
size: { default: "md" },
|
|
36
38
|
value: {},
|
|
37
39
|
modelValue: {}
|
|
38
40
|
},
|
|
@@ -45,6 +47,8 @@ var UiTextarea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
45
47
|
set: (value) => emit("update:modelValue", value)
|
|
46
48
|
});
|
|
47
49
|
const root = ref(null);
|
|
50
|
+
/** The values the styles' :host-state() rules test. */
|
|
51
|
+
const hostState = computed(() => [props.size && `size size=${props.size}`].filter(Boolean).join(" "));
|
|
48
52
|
const dispatch = createDispatch(root);
|
|
49
53
|
useComponentHost(controllerModule.default, {
|
|
50
54
|
root,
|
|
@@ -59,11 +63,12 @@ var UiTextarea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
59
63
|
"aria-invalid": __props.invalid,
|
|
60
64
|
rows: __props.rows,
|
|
61
65
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
66
|
+
"data-ui-textarea-state": hostState.value || void 0,
|
|
62
67
|
ref_key: "root",
|
|
63
68
|
ref: root
|
|
64
69
|
}), null, 16, _hoisted_1)), [[vModelText, model.value]]);
|
|
65
70
|
};
|
|
66
71
|
}
|
|
67
|
-
}), [["__scopeId", "data-v-
|
|
72
|
+
}), [["__scopeId", "data-v-00f7b2fd"]]);
|
|
68
73
|
//#endregion
|
|
69
74
|
export { UiTextarea_default as t };
|