@threadlabs/looma 0.13.5 → 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.
Files changed (65) hide show
  1. package/components/ui-button/ui-button.html +2 -1
  2. package/components/ui-checkbox/ui-checkbox.html +35 -0
  3. package/components/ui-combobox/ui-combobox.html +38 -3
  4. package/components/ui-icon/ui-icon.html +67 -7
  5. package/components/ui-input/ui-input.html +27 -0
  6. package/components/ui-input-group/ui-input-group.html +15 -0
  7. package/components/ui-radio/ui-radio.html +35 -0
  8. package/components/ui-select/ui-select.html +29 -3
  9. package/components/ui-switch/ui-switch.html +36 -0
  10. package/components/ui-textarea/ui-textarea.html +20 -0
  11. package/dist/index.js +17 -18
  12. package/package.json +1 -1
  13. package/styles/ui-button.css +3 -1
  14. package/styles/ui-checkbox.css +38 -0
  15. package/styles/ui-combobox.css +38 -1
  16. package/styles/ui-input-group.css +20 -0
  17. package/styles/ui-input.css +29 -0
  18. package/styles/ui-radio.css +38 -0
  19. package/styles/ui-select.css +29 -3
  20. package/styles/ui-switch.css +41 -0
  21. package/styles/ui-textarea.css +21 -0
  22. package/vanilla/UiCheckbox.d.ts +1 -0
  23. package/vanilla/UiCheckbox.js +1 -1
  24. package/vanilla/UiCombobox.d.ts +1 -1
  25. package/vanilla/UiCombobox.js +1 -1
  26. package/vanilla/UiIcon.js +1 -3
  27. package/vanilla/UiInput.d.ts +1 -0
  28. package/vanilla/UiInput.js +1 -1
  29. package/vanilla/UiRadio.d.ts +1 -0
  30. package/vanilla/UiRadio.js +1 -1
  31. package/vanilla/UiSelect.d.ts +1 -0
  32. package/vanilla/UiSelect.js +1 -1
  33. package/vanilla/UiSwitch.d.ts +1 -0
  34. package/vanilla/UiSwitch.js +1 -1
  35. package/vanilla/UiTextarea.d.ts +1 -0
  36. package/vanilla/UiTextarea.js +1 -1
  37. package/vue/UiButton.vue +2 -1
  38. package/vue/UiCheckbox.d.ts +2 -0
  39. package/vue/UiCheckbox.vue +34 -0
  40. package/vue/UiCombobox.d.ts +2 -2
  41. package/vue/UiCombobox.vue +39 -2
  42. package/vue/UiIcon.vue +337 -42
  43. package/vue/UiInput.d.ts +2 -0
  44. package/vue/UiInput.vue +41 -0
  45. package/vue/UiInputGroup.vue +15 -0
  46. package/vue/UiRadio.d.ts +2 -0
  47. package/vue/UiRadio.vue +34 -0
  48. package/vue/UiSelect.d.ts +2 -0
  49. package/vue/UiSelect.vue +34 -3
  50. package/vue/UiSwitch.d.ts +2 -0
  51. package/vue/UiSwitch.vue +35 -0
  52. package/vue/UiTextarea.d.ts +2 -0
  53. package/vue/UiTextarea.vue +27 -0
  54. package/vue/chunks/UiButton.js +1 -1
  55. package/vue/chunks/UiCheckbox.js +3 -2
  56. package/vue/chunks/UiCombobox.js +1 -1
  57. package/vue/chunks/UiIcon.js +950 -32
  58. package/vue/chunks/UiInput.js +7 -2
  59. package/vue/chunks/UiInputGroup.js +1 -1
  60. package/vue/chunks/UiRadio.js +3 -2
  61. package/vue/chunks/UiSelect.js +7 -2
  62. package/vue/chunks/UiSwitch.js +3 -2
  63. package/vue/chunks/UiTextarea.js +7 -2
  64. package/vue/components.css +368 -168
  65. package/components/ui-icon/ui-icon.js +0 -8
@@ -7,7 +7,8 @@ var _hoisted_1 = [
7
7
  "disabled",
8
8
  "readonly",
9
9
  "required",
10
- "aria-invalid"
10
+ "aria-invalid",
11
+ "data-ui-input-state"
11
12
  ];
12
13
  //#endregion
13
14
  //#region .build/vue/UiInput.vue
@@ -31,6 +32,7 @@ var UiInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
31
32
  type: Boolean,
32
33
  default: false
33
34
  },
35
+ size: { default: "md" },
34
36
  value: {},
35
37
  modelValue: {}
36
38
  },
@@ -43,6 +45,8 @@ var UiInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
43
45
  set: (value) => emit("update:modelValue", value)
44
46
  });
45
47
  const root = ref(null);
48
+ /** The values the styles' :host-state() rules test. */
49
+ const hostState = computed(() => [props.size && `size size=${props.size}`].filter(Boolean).join(" "));
46
50
  const dispatch = createDispatch(root);
47
51
  useComponentHost(controllerModule.default, {
48
52
  root,
@@ -56,11 +60,12 @@ var UiInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
56
60
  required: __props.required,
57
61
  "aria-invalid": __props.invalid,
58
62
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
63
+ "data-ui-input-state": hostState.value || void 0,
59
64
  ref_key: "root",
60
65
  ref: root
61
66
  }), null, 16, _hoisted_1)), [[vModelDynamic, model.value]]);
62
67
  };
63
68
  }
64
- }), [["__scopeId", "data-v-e1edefb2"]]);
69
+ }), [["__scopeId", "data-v-4ba095d3"]]);
65
70
  //#endregion
66
71
  export { UiInput_default as t };
@@ -41,6 +41,6 @@ var UiInputGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
41
41
  ], 16, _hoisted_1);
42
42
  };
43
43
  }
44
- }), [["__scopeId", "data-v-d57b2ead"]]);
44
+ }), [["__scopeId", "data-v-26a5b56d"]]);
45
45
  //#endregion
46
46
  export { UiInputGroup_default as t };
@@ -37,6 +37,7 @@ var UiRadio_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
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 UiRadio_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
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",
@@ -88,6 +89,6 @@ var UiRadio_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
88
89
  }, 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);
89
90
  };
90
91
  }
91
- }), [["__scopeId", "data-v-293c00d6"]]);
92
+ }), [["__scopeId", "data-v-02111ebf"]]);
92
93
  //#endregion
93
94
  export { UiRadio_default as t };
@@ -6,7 +6,8 @@ import * as controllerModule from "@threadlabs/looma/components/ui-select/ui-sel
6
6
  var _hoisted_1 = [
7
7
  "disabled",
8
8
  "required",
9
- "aria-invalid"
9
+ "aria-invalid",
10
+ "data-ui-select-state"
10
11
  ];
11
12
  //#endregion
12
13
  //#region .build/vue/UiSelect.vue
@@ -26,6 +27,7 @@ var UiSelect_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
26
27
  type: Boolean,
27
28
  default: false
28
29
  },
30
+ size: { default: "md" },
29
31
  value: {},
30
32
  modelValue: {}
31
33
  },
@@ -38,6 +40,8 @@ var UiSelect_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
38
40
  set: (value) => emit("update:modelValue", value)
39
41
  });
40
42
  const root = ref(null);
43
+ /** The values the styles' :host-state() rules test. */
44
+ const hostState = computed(() => [props.size && `size size=${props.size}`].filter(Boolean).join(" "));
41
45
  const dispatch = createDispatch(root);
42
46
  useComponentHost(controllerModule.default, {
43
47
  root,
@@ -50,11 +54,12 @@ var UiSelect_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
50
54
  required: __props.required,
51
55
  "aria-invalid": __props.invalid,
52
56
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
57
+ "data-ui-select-state": hostState.value || void 0,
53
58
  ref_key: "root",
54
59
  ref: root
55
60
  }), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_1)), [[vModelSelect, model.value]]);
56
61
  };
57
62
  }
58
- }), [["__scopeId", "data-v-57618b8b"]]);
63
+ }), [["__scopeId", "data-v-c81ec3d9"]]);
59
64
  //#endregion
60
65
  export { UiSelect_default as t };
@@ -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-98e06e1e"]]);
93
+ }), [["__scopeId", "data-v-87fc218c"]]);
93
94
  //#endregion
94
95
  export { UiSwitch_default as t };
@@ -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-73461aaf"]]);
72
+ }), [["__scopeId", "data-v-00f7b2fd"]]);
68
73
  //#endregion
69
74
  export { UiTextarea_default as t };