@threadlabs/looma 0.26.3 → 0.26.5
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-badge/ui-badge.html +41 -4
- package/components/ui-button/ui-button.html +50 -5
- package/components/ui-callout/ui-callout.html +2 -1
- package/components/ui-icon-button/ui-icon-button.html +35 -7
- package/components/ui-input-group/ui-input-group.html +9 -0
- package/components/ui-toast/ui-toast.html +13 -7
- package/components/ui-toast-region/ui-toast-region.html +18 -7
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/styles/ui-badge.css +40 -1
- package/styles/ui-button.css +53 -5
- package/styles/ui-callout.css +2 -1
- package/styles/ui-icon-button.css +35 -7
- package/styles/ui-input-group.css +6 -0
- package/styles/ui-toast-region.css +18 -7
- package/styles/ui-toast.css +13 -7
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiButton.js +47 -21
- package/vanilla/UiInputGroup.d.ts +1 -0
- package/vanilla/UiInputGroup.js +4 -4
- package/vue/UiBadge.d.ts +3 -3
- package/vue/UiBadge.vue +79 -6
- package/vue/UiButton.d.ts +6 -2
- package/vue/UiButton.vue +56 -6
- package/vue/UiCallout.vue +4 -2
- package/vue/UiIconButton.vue +40 -7
- package/vue/UiInputGroup.d.ts +9 -0
- package/vue/UiInputGroup.vue +29 -1
- package/vue/UiToast.vue +16 -8
- package/vue/UiToastRegion.vue +18 -7
- package/vue/chunks/UiBadge.js +3 -2
- package/vue/chunks/UiButton.js +15 -5
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiIconButton.js +1 -1
- package/vue/chunks/UiInputGroup.js +29 -4
- package/vue/chunks/UiToast.js +1 -1
- package/vue/chunks/UiToastRegion.js +1 -1
- package/vue/components.css +435 -263
package/vue/chunks/UiButton.js
CHANGED
|
@@ -82,7 +82,8 @@ var _hoisted_10 = {
|
|
|
82
82
|
key: 0,
|
|
83
83
|
class: "spinner-wrap"
|
|
84
84
|
};
|
|
85
|
-
var _hoisted_11 =
|
|
85
|
+
var _hoisted_11 = { class: "badge" };
|
|
86
|
+
var _hoisted_12 = [
|
|
86
87
|
"type",
|
|
87
88
|
"disabled",
|
|
88
89
|
"aria-disabled",
|
|
@@ -103,10 +104,11 @@ var _hoisted_11 = [
|
|
|
103
104
|
"data-variant",
|
|
104
105
|
"data-ui-button-state"
|
|
105
106
|
];
|
|
106
|
-
var
|
|
107
|
+
var _hoisted_13 = {
|
|
107
108
|
key: 0,
|
|
108
109
|
class: "spinner-wrap"
|
|
109
110
|
};
|
|
111
|
+
var _hoisted_14 = { class: "badge" };
|
|
110
112
|
//#endregion
|
|
111
113
|
//#region .build/vue/UiButton.vue
|
|
112
114
|
var UiButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -722,7 +724,11 @@ var UiButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
722
724
|
"data-variant": reflectedProp("variant", "variant", checkedProps.value.variant, void 0, false),
|
|
723
725
|
"data-ui-button-state": hostState.value || void 0,
|
|
724
726
|
ref: "@html-next/root"
|
|
725
|
-
}), [
|
|
727
|
+
}), [
|
|
728
|
+
checkedProps.value.loading || checkedProps.value.pending ? (openBlock(), createElementBlock("span", _hoisted_10, [createVNode(UiSpinner_default, { size: "sm" })])) : createCommentVNode("v-if", true),
|
|
729
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
730
|
+
createElementVNode("span", _hoisted_11, [renderSlot(_ctx.$slots, "badge", {}, void 0, true)])
|
|
731
|
+
], 16, _hoisted_9)), [[unref(vPropValidity), {
|
|
726
732
|
contract: propValidityContract,
|
|
727
733
|
values: { ...props }
|
|
728
734
|
}]]) : withDirectives((openBlock(), createElementBlock("button", mergeProps({
|
|
@@ -749,12 +755,16 @@ var UiButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
749
755
|
"data-variant": reflectedProp("variant", "variant", checkedProps.value.variant, void 0, false),
|
|
750
756
|
"data-ui-button-state": hostState.value || void 0,
|
|
751
757
|
ref: "@html-next/root"
|
|
752
|
-
}), [
|
|
758
|
+
}), [
|
|
759
|
+
checkedProps.value.loading || checkedProps.value.pending ? (openBlock(), createElementBlock("span", _hoisted_13, [createVNode(UiSpinner_default, { size: "sm" })])) : createCommentVNode("v-if", true),
|
|
760
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
761
|
+
createElementVNode("span", _hoisted_14, [renderSlot(_ctx.$slots, "badge", {}, void 0, true)])
|
|
762
|
+
], 16, _hoisted_12)), [[unref(vPropValidity), {
|
|
753
763
|
contract: propValidityContract,
|
|
754
764
|
values: { ...props }
|
|
755
765
|
}]]);
|
|
756
766
|
};
|
|
757
767
|
}
|
|
758
|
-
}), [["__scopeId", "data-v-
|
|
768
|
+
}), [["__scopeId", "data-v-e56c4e01"]]);
|
|
759
769
|
//#endregion
|
|
760
770
|
export { UiButton_default as t };
|
package/vue/chunks/UiCallout.js
CHANGED
|
@@ -8,6 +8,7 @@ var _hoisted_1 = [
|
|
|
8
8
|
"data-disabled",
|
|
9
9
|
"data-multiline",
|
|
10
10
|
"data-prefix-kind",
|
|
11
|
+
"data-variant",
|
|
11
12
|
"data-ui-input-group-state"
|
|
12
13
|
];
|
|
13
14
|
var _hoisted_2 = { class: "affix" };
|
|
@@ -35,6 +36,10 @@ var UiInputGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
35
36
|
prefixKind: {
|
|
36
37
|
type: null,
|
|
37
38
|
default: "text"
|
|
39
|
+
},
|
|
40
|
+
variant: {
|
|
41
|
+
type: null,
|
|
42
|
+
default: "outline"
|
|
38
43
|
}
|
|
39
44
|
},
|
|
40
45
|
setup(__props) {
|
|
@@ -80,6 +85,17 @@ var UiInputGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
80
85
|
description: "Text affixes have their own framing. An icon prefix shares the field surface and uses one compact icon-to-value gap.",
|
|
81
86
|
values: ["text", "icon"],
|
|
82
87
|
default: "text"
|
|
88
|
+
},
|
|
89
|
+
variant: {
|
|
90
|
+
type: {
|
|
91
|
+
kind: "terminal",
|
|
92
|
+
name: "keyword"
|
|
93
|
+
},
|
|
94
|
+
required: false,
|
|
95
|
+
target: { attribute: "variant" },
|
|
96
|
+
description: "outline uses the standard field edge and surface. subtle uses a quiet decorative edge and muted surface for a multiline composer. Both retain the same\n focus, invalid and disabled states, and the field inside shares the group's one frame.",
|
|
97
|
+
values: ["outline", "subtle"],
|
|
98
|
+
default: "outline"
|
|
83
99
|
}
|
|
84
100
|
} };
|
|
85
101
|
const props = __props;
|
|
@@ -87,7 +103,8 @@ var UiInputGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
87
103
|
actionPosition: "below",
|
|
88
104
|
disabled: false,
|
|
89
105
|
multiline: false,
|
|
90
|
-
prefixKind: "text"
|
|
106
|
+
prefixKind: "text",
|
|
107
|
+
variant: "outline"
|
|
91
108
|
};
|
|
92
109
|
const checkedProps = computed(() => ({
|
|
93
110
|
actionPosition: checkedProp(props["actionPosition"], {
|
|
@@ -105,7 +122,11 @@ var UiInputGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
105
122
|
prefixKind: checkedProp(props["prefixKind"], {
|
|
106
123
|
kind: "terminal",
|
|
107
124
|
name: "keyword"
|
|
108
|
-
}, false, "prefixKind", acceptedProps)
|
|
125
|
+
}, false, "prefixKind", acceptedProps),
|
|
126
|
+
variant: checkedProp(props["variant"], {
|
|
127
|
+
kind: "terminal",
|
|
128
|
+
name: "keyword"
|
|
129
|
+
}, false, "variant", acceptedProps)
|
|
109
130
|
}));
|
|
110
131
|
checkedProps.value;
|
|
111
132
|
watchSyncEffect(() => {
|
|
@@ -135,6 +156,8 @@ var UiInputGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
135
156
|
});
|
|
136
157
|
/** The values the styles' :host-state() rules test. */
|
|
137
158
|
const hostState = computed(() => [
|
|
159
|
+
checkedProps.value.variant && "variant",
|
|
160
|
+
checkedProps.value.variant != null && `variant=${encodeURIComponent(checkedProps.value.variant)}`,
|
|
138
161
|
checkedProps.value.disabled && "disabled",
|
|
139
162
|
checkedProps.value.prefixKind && "prefixKind",
|
|
140
163
|
checkedProps.value.prefixKind != null && `prefixKind=${encodeURIComponent(checkedProps.value.prefixKind)}`,
|
|
@@ -160,7 +183,8 @@ var UiInputGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
160
183
|
"actionPosition",
|
|
161
184
|
"disabled",
|
|
162
185
|
"multiline",
|
|
163
|
-
"prefixKind"
|
|
186
|
+
"prefixKind",
|
|
187
|
+
"variant"
|
|
164
188
|
],
|
|
165
189
|
propValidity: (name) => propValidityState({
|
|
166
190
|
contract: propValidityContract,
|
|
@@ -173,6 +197,7 @@ var UiInputGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
173
197
|
"data-disabled": reflectedProp("disabled", "disabled", checkedProps.value.disabled, void 0, false),
|
|
174
198
|
"data-multiline": reflectedProp("multiline", "multiline", checkedProps.value.multiline, void 0, false),
|
|
175
199
|
"data-prefix-kind": reflectedProp("prefixKind", "prefix-kind", checkedProps.value.prefixKind, void 0, false),
|
|
200
|
+
"data-variant": reflectedProp("variant", "variant", checkedProps.value.variant, void 0, false),
|
|
176
201
|
"data-ui-input-group-state": hostState.value || void 0,
|
|
177
202
|
ref_key: "root",
|
|
178
203
|
ref: root
|
|
@@ -187,6 +212,6 @@ var UiInputGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
187
212
|
}]]);
|
|
188
213
|
};
|
|
189
214
|
}
|
|
190
|
-
}), [["__scopeId", "data-v-
|
|
215
|
+
}), [["__scopeId", "data-v-ac4d8095"]]);
|
|
191
216
|
//#endregion
|
|
192
217
|
export { UiInputGroup_default as t };
|
package/vue/chunks/UiToast.js
CHANGED