@threadlabs/looma 0.22.8 → 0.22.9
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 +10 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/styles/ui-badge.css +9 -0
- package/vanilla/UiBadge.d.ts +1 -0
- package/vanilla/UiBadge.js +4 -2
- package/vue/UiBadge.d.ts +9 -0
- package/vue/UiBadge.vue +28 -0
- package/vue/chunks/UiBadge.js +24 -1
- package/vue/components.css +34 -26
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
colour, which overrides the tone.</prop>
|
|
10
10
|
<prop name="shape" type="keyword" values="pill, tag" default="pill"
|
|
11
11
|
>Silhouette. pill is rounded at both ends; tag is a label: flat at the start and coming to a point at the end, for a tag or a chosen chip.</prop>
|
|
12
|
+
<prop name="size" type="keyword" values="xs, md" default="md">Scale. xs is a compact count beside small controls; md is the usual text badge.</prop>
|
|
12
13
|
</defs>
|
|
13
14
|
<span><slot></slot></span>
|
|
14
15
|
<style>
|
|
@@ -104,6 +105,15 @@
|
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
107
|
|
|
108
|
+
:host-state([size="xs"]) {
|
|
109
|
+
box-sizing: border-box;
|
|
110
|
+
min-inline-size: 1rem;
|
|
111
|
+
min-block-size: var(--ui-badge-min-block-size, 1rem);
|
|
112
|
+
padding: var(--ui-badge-padding-block, 0) var(--ui-badge-padding-inline, 0.125rem);
|
|
113
|
+
font-size: var(--ui-badge-font-size, var(--ui-font-size-2xs));
|
|
114
|
+
line-height: var(--ui-badge-line-height, 1);
|
|
115
|
+
}
|
|
116
|
+
|
|
107
117
|
:host-state([tone="accent"]) {
|
|
108
118
|
--_badge-surface: var(--ui-accent-strong-surface, var(--ui-accent-solid));
|
|
109
119
|
--_badge-border: var(--ui-accent-strong-surface, var(--ui-accent-solid));
|