@threadlabs/looma 0.26.0 → 0.26.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/components/ui-badge/ui-badge.html +42 -3
- package/components/ui-container/ui-container.html +11 -0
- package/components/ui-dialog/ui-dialog.html +6 -4
- package/components/ui-icon-button/ui-icon-button.html +58 -12
- package/components/ui-scroll-area/ui-scroll-area.html +12 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/styles/ui-badge.css +40 -0
- package/styles/ui-container.css +8 -0
- package/styles/ui-dialog.css +6 -4
- package/styles/ui-icon-button.css +62 -12
- package/styles/ui-scroll-area.css +11 -0
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiContainer.d.ts +1 -0
- package/vanilla/UiContainer.js +5 -5
- package/vanilla/UiDialog.js +14 -8
- package/vanilla/UiIconButton.d.ts +1 -0
- package/vanilla/UiIconButton.js +4 -4
- package/vanilla/UiScrollArea.d.ts +1 -0
- package/vanilla/UiScrollArea.js +4 -4
- package/vue/UiBadge.d.ts +3 -3
- package/vue/UiBadge.vue +44 -6
- package/vue/UiContainer.d.ts +9 -0
- package/vue/UiContainer.vue +27 -1
- package/vue/UiDialog.vue +6 -4
- package/vue/UiIconButton.d.ts +9 -0
- package/vue/UiIconButton.vue +95 -12
- package/vue/UiScrollArea.d.ts +9 -0
- package/vue/UiScrollArea.vue +33 -1
- package/vue/chunks/UiBadge.js +5 -4
- package/vue/chunks/UiContainer.js +23 -1
- package/vue/chunks/UiDialog.js +4 -3
- package/vue/chunks/UiIconButton.js +25 -1
- package/vue/chunks/UiScrollArea.js +28 -5
- package/vue/components.css +254 -140
|
@@ -17,6 +17,7 @@ var _hoisted_1 = [
|
|
|
17
17
|
"data-pending",
|
|
18
18
|
"data-round",
|
|
19
19
|
"data-size",
|
|
20
|
+
"data-tone",
|
|
20
21
|
"data-variant",
|
|
21
22
|
"data-ui-icon-button-state"
|
|
22
23
|
];
|
|
@@ -59,6 +60,10 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
59
60
|
type: null,
|
|
60
61
|
default: "md"
|
|
61
62
|
},
|
|
63
|
+
tone: {
|
|
64
|
+
type: null,
|
|
65
|
+
default: null
|
|
66
|
+
},
|
|
62
67
|
variant: {
|
|
63
68
|
type: null,
|
|
64
69
|
default: "ghost"
|
|
@@ -150,6 +155,16 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
150
155
|
],
|
|
151
156
|
default: "md"
|
|
152
157
|
},
|
|
158
|
+
tone: {
|
|
159
|
+
type: {
|
|
160
|
+
kind: "terminal",
|
|
161
|
+
name: "keyword"
|
|
162
|
+
},
|
|
163
|
+
required: false,
|
|
164
|
+
target: { attribute: "tone" },
|
|
165
|
+
description: "Colour for every variant. When omitted, ghost and outline keep their neutral appearance and solid keeps its accent fill. Set accent for a coloured action\n or neutral for a quiet one. Native aria-pressed=\"true\" keeps an outline toggle visibly pressed; the consumer owns that state.",
|
|
166
|
+
values: ["accent", "neutral"]
|
|
167
|
+
},
|
|
153
168
|
variant: {
|
|
154
169
|
type: {
|
|
155
170
|
kind: "terminal",
|
|
@@ -176,6 +191,7 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
176
191
|
pending: false,
|
|
177
192
|
round: false,
|
|
178
193
|
size: "md",
|
|
194
|
+
tone: null,
|
|
179
195
|
variant: "ghost"
|
|
180
196
|
};
|
|
181
197
|
const checkedProps = computed(() => ({
|
|
@@ -211,6 +227,10 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
211
227
|
kind: "terminal",
|
|
212
228
|
name: "keyword"
|
|
213
229
|
}, false, "size", acceptedProps),
|
|
230
|
+
tone: checkedProp(props["tone"], {
|
|
231
|
+
kind: "terminal",
|
|
232
|
+
name: "keyword"
|
|
233
|
+
}, false, "tone", acceptedProps),
|
|
214
234
|
variant: checkedProp(props["variant"], {
|
|
215
235
|
kind: "terminal",
|
|
216
236
|
name: "keyword"
|
|
@@ -261,6 +281,8 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
261
281
|
});
|
|
262
282
|
/** The values the styles' :host-state() rules test. */
|
|
263
283
|
const hostState = computed(() => [
|
|
284
|
+
checkedProps.value.tone && "tone",
|
|
285
|
+
checkedProps.value.tone != null && `tone=${encodeURIComponent(checkedProps.value.tone)}`,
|
|
264
286
|
checkedProps.value.anticipatory && "anticipatory",
|
|
265
287
|
checkedProps.value.variant && "variant",
|
|
266
288
|
checkedProps.value.variant != null && `variant=${encodeURIComponent(checkedProps.value.variant)}`,
|
|
@@ -294,6 +316,7 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
294
316
|
"pending",
|
|
295
317
|
"round",
|
|
296
318
|
"size",
|
|
319
|
+
"tone",
|
|
297
320
|
"variant"
|
|
298
321
|
],
|
|
299
322
|
propValidity: (name) => propValidityState({
|
|
@@ -332,6 +355,7 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
332
355
|
"data-pending": reflectedProp("pending", "pending", checkedProps.value.pending, void 0, false),
|
|
333
356
|
"data-round": reflectedProp("round", "round", checkedProps.value.round, void 0, false),
|
|
334
357
|
"data-size": reflectedProp("size", "size", checkedProps.value.size, void 0, false),
|
|
358
|
+
"data-tone": reflectedProp("tone", "tone", checkedProps.value.tone, void 0, false),
|
|
335
359
|
"data-variant": reflectedProp("variant", "variant", checkedProps.value.variant, void 0, false),
|
|
336
360
|
"data-ui-icon-button-state": hostState.value || void 0,
|
|
337
361
|
ref_key: "root",
|
|
@@ -345,6 +369,6 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
345
369
|
}]]);
|
|
346
370
|
};
|
|
347
371
|
}
|
|
348
|
-
}), [["__scopeId", "data-v-
|
|
372
|
+
}), [["__scopeId", "data-v-b66a1661"]]);
|
|
349
373
|
//#endregion
|
|
350
374
|
export { UiIconButton_default as t };
|
|
@@ -7,6 +7,7 @@ var _hoisted_1 = [
|
|
|
7
7
|
"data-fill",
|
|
8
8
|
"data-orientation",
|
|
9
9
|
"data-size",
|
|
10
|
+
"data-trim",
|
|
10
11
|
"data-ui-scroll-area-state"
|
|
11
12
|
];
|
|
12
13
|
//#endregion
|
|
@@ -26,6 +27,10 @@ var UiScrollArea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
26
27
|
size: {
|
|
27
28
|
type: null,
|
|
28
29
|
default: "content"
|
|
30
|
+
},
|
|
31
|
+
trim: {
|
|
32
|
+
type: null,
|
|
33
|
+
default: false
|
|
29
34
|
}
|
|
30
35
|
},
|
|
31
36
|
setup(__props) {
|
|
@@ -66,13 +71,24 @@ var UiScrollArea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
66
71
|
"lg"
|
|
67
72
|
],
|
|
68
73
|
default: "content"
|
|
74
|
+
},
|
|
75
|
+
trim: {
|
|
76
|
+
type: {
|
|
77
|
+
kind: "terminal",
|
|
78
|
+
name: "boolean"
|
|
79
|
+
},
|
|
80
|
+
required: false,
|
|
81
|
+
target: { attribute: "trim" },
|
|
82
|
+
description: "Removes the outer block margins of the first and last projected items when the surrounding panel owns its edge padding. Margins between items remain\n intact.",
|
|
83
|
+
default: false
|
|
69
84
|
}
|
|
70
85
|
} };
|
|
71
86
|
const props = __props;
|
|
72
87
|
const acceptedProps = {
|
|
73
88
|
fill: false,
|
|
74
89
|
orientation: "vertical",
|
|
75
|
-
size: "content"
|
|
90
|
+
size: "content",
|
|
91
|
+
trim: false
|
|
76
92
|
};
|
|
77
93
|
const checkedProps = computed(() => ({
|
|
78
94
|
fill: checkedProp(props["fill"], {
|
|
@@ -86,7 +102,11 @@ var UiScrollArea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
86
102
|
size: checkedProp(props["size"], {
|
|
87
103
|
kind: "terminal",
|
|
88
104
|
name: "keyword"
|
|
89
|
-
}, false, "size", acceptedProps)
|
|
105
|
+
}, false, "size", acceptedProps),
|
|
106
|
+
trim: checkedProp(props["trim"], {
|
|
107
|
+
kind: "terminal",
|
|
108
|
+
name: "boolean"
|
|
109
|
+
}, false, "trim", acceptedProps)
|
|
90
110
|
}));
|
|
91
111
|
checkedProps.value;
|
|
92
112
|
watchSyncEffect(() => {
|
|
@@ -118,6 +138,7 @@ var UiScrollArea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
118
138
|
/** The values the styles' :host-state() rules test. */
|
|
119
139
|
const hostState = computed(() => [
|
|
120
140
|
checkedProps.value.fill && "fill",
|
|
141
|
+
checkedProps.value.trim && "trim",
|
|
121
142
|
checkedProps.value.orientation && "orientation",
|
|
122
143
|
checkedProps.value.orientation != null && `orientation=${encodeURIComponent(checkedProps.value.orientation)}`,
|
|
123
144
|
checkedProps.value.size && "size",
|
|
@@ -140,7 +161,8 @@ var UiScrollArea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
140
161
|
propNames: [
|
|
141
162
|
"fill",
|
|
142
163
|
"orientation",
|
|
143
|
-
"size"
|
|
164
|
+
"size",
|
|
165
|
+
"trim"
|
|
144
166
|
],
|
|
145
167
|
propValidity: (name) => propValidityState({
|
|
146
168
|
contract: propValidityContract,
|
|
@@ -153,6 +175,7 @@ var UiScrollArea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
153
175
|
"data-fill": reflectedProp("fill", "fill", checkedProps.value.fill, void 0, false),
|
|
154
176
|
"data-orientation": reflectedProp("orientation", "orientation", checkedProps.value.orientation, void 0, false),
|
|
155
177
|
"data-size": reflectedProp("size", "size", checkedProps.value.size, void 0, false),
|
|
178
|
+
"data-trim": reflectedProp("trim", "trim", checkedProps.value.trim, void 0, false),
|
|
156
179
|
"data-ui-scroll-area-state": hostState.value || void 0,
|
|
157
180
|
ref_key: "root",
|
|
158
181
|
ref: root
|
|
@@ -160,12 +183,12 @@ var UiScrollArea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
160
183
|
class: "content",
|
|
161
184
|
ref_key: "contentElement",
|
|
162
185
|
ref: contentElement
|
|
163
|
-
}, [renderSlot(_ctx.$slots, "default"
|
|
186
|
+
}, [renderSlot(_ctx.$slots, "default")], 512)], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
164
187
|
contract: propValidityContract,
|
|
165
188
|
values: { ...props }
|
|
166
189
|
}]]);
|
|
167
190
|
};
|
|
168
191
|
}
|
|
169
|
-
}), [["__scopeId", "data-v-
|
|
192
|
+
}), [["__scopeId", "data-v-a1ccf697"]]);
|
|
170
193
|
//#endregion
|
|
171
194
|
export { UiScrollArea_default as t };
|