@threadlabs/looma 0.14.4 → 0.14.6
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/shared/authoring.js +46 -0
- package/components/ui-form-field/ui-form-field.js +4 -0
- package/components/ui-input-group/ui-input-group.js +7 -0
- package/components/ui-text/ui-text.html +4 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/styles/ui-text.css +6 -6
- package/vue/UiText.vue +4 -4
- package/vue/chunks/UiText.js +1 -1
- package/vue/components.css +25 -25
package/package.json
CHANGED
package/styles/ui-text.css
CHANGED
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
:scope[data-ui-text-state~="tone=accent"] {
|
|
36
36
|
color: var(--ui-accent-active);
|
|
37
37
|
}
|
|
38
|
+
/* Every status tone uses the text-safe token a subtle badge sets its words in, so text and badges
|
|
39
|
+
in one tone match, and each holds 4.5:1 on sunken surfaces where some base colours fall short. */
|
|
38
40
|
:scope[data-ui-text-state~="tone=danger"] {
|
|
39
|
-
color: var(--ui-danger);
|
|
41
|
+
color: var(--ui-danger-subtle-text);
|
|
40
42
|
}
|
|
41
43
|
:scope[data-ui-text-state~="tone=success"] {
|
|
42
|
-
color: var(--ui-success);
|
|
44
|
+
color: var(--ui-success-subtle-text);
|
|
43
45
|
}
|
|
44
|
-
/* The base info and warning colours fall short of 4.5:1 on sunken surfaces, so these use the
|
|
45
|
-
text-safe tokens a subtle badge sets its words in. */
|
|
46
46
|
:scope[data-ui-text-state~="tone=info"] {
|
|
47
47
|
color: var(--ui-info-subtle-text);
|
|
48
48
|
}
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
@scope ([data-component~="ui-text"]) to ([data-component]) {
|
|
92
92
|
/* Running text, set on the type scale and in a tone that says what it is, so a view never styles
|
|
93
93
|
text of its own. The root is a paragraph unless as= names a span, div, small, strong, or label. */
|
|
94
|
-
/*
|
|
95
|
-
|
|
94
|
+
/* Every status tone uses the text-safe token a subtle badge sets its words in, so text and badges
|
|
95
|
+
in one tone match, and each holds 4.5:1 on sunken surfaces where some base colours fall short. */
|
|
96
96
|
|
|
97
97
|
/* A link in running text is underlined, so it stands apart from the words around it by more than
|
|
98
98
|
colour. */
|
package/vue/UiText.vue
CHANGED
|
@@ -112,14 +112,14 @@ const hostState = computed(() =>
|
|
|
112
112
|
[data-component~="ui-text"][data-ui-text-state~="tone=accent"] {
|
|
113
113
|
color: var(--ui-accent-active);
|
|
114
114
|
}
|
|
115
|
+
/* Every status tone uses the text-safe token a subtle badge sets its words in, so text and badges
|
|
116
|
+
in one tone match, and each holds 4.5:1 on sunken surfaces where some base colours fall short. */
|
|
115
117
|
[data-component~="ui-text"][data-ui-text-state~="tone=danger"] {
|
|
116
|
-
color: var(--ui-danger);
|
|
118
|
+
color: var(--ui-danger-subtle-text);
|
|
117
119
|
}
|
|
118
120
|
[data-component~="ui-text"][data-ui-text-state~="tone=success"] {
|
|
119
|
-
color: var(--ui-success);
|
|
121
|
+
color: var(--ui-success-subtle-text);
|
|
120
122
|
}
|
|
121
|
-
/* The base info and warning colours fall short of 4.5:1 on sunken surfaces, so these use the
|
|
122
|
-
text-safe tokens a subtle badge sets its words in. */
|
|
123
123
|
[data-component~="ui-text"][data-ui-text-state~="tone=info"] {
|
|
124
124
|
color: var(--ui-info-subtle-text);
|
|
125
125
|
}
|
package/vue/chunks/UiText.js
CHANGED
|
@@ -57,6 +57,6 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
57
57
|
}, _ctx.$attrs, { "data-ui-text-state": hostState.value || void 0 }), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_6));
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
}), [["__scopeId", "data-v-
|
|
60
|
+
}), [["__scopeId", "data-v-f6cb02e5"]]);
|
|
61
61
|
//#endregion
|
|
62
62
|
export { UiText_default as t };
|
package/vue/components.css
CHANGED
|
@@ -6371,89 +6371,89 @@ tbody tr[data-v-9980d203-s]:last-child > * {
|
|
|
6371
6371
|
|
|
6372
6372
|
/* Running text, set on the type scale and in a tone that says what it is, so a view never styles
|
|
6373
6373
|
text of its own. The root is a paragraph unless as= names a span, div, small, strong, or label. */
|
|
6374
|
-
[data-component~="ui-text"][data-v-
|
|
6374
|
+
[data-component~="ui-text"][data-v-f6cb02e5] {
|
|
6375
6375
|
margin: 0;
|
|
6376
6376
|
min-inline-size: 0;
|
|
6377
6377
|
color: var(--ui-text-primary);
|
|
6378
6378
|
text-align: start;
|
|
6379
6379
|
}
|
|
6380
|
-
[data-component~="ui-text"][data-ui-text-state~="size=xs"][data-v-
|
|
6380
|
+
[data-component~="ui-text"][data-ui-text-state~="size=xs"][data-v-f6cb02e5] {
|
|
6381
6381
|
font-size: var(--ui-font-size-xs);
|
|
6382
6382
|
line-height: var(--ui-line-height);
|
|
6383
6383
|
}
|
|
6384
|
-
[data-component~="ui-text"][data-ui-text-state~="size=sm"][data-v-
|
|
6384
|
+
[data-component~="ui-text"][data-ui-text-state~="size=sm"][data-v-f6cb02e5] {
|
|
6385
6385
|
font-size: var(--ui-font-size-sm);
|
|
6386
6386
|
line-height: var(--ui-line-height);
|
|
6387
6387
|
}
|
|
6388
|
-
[data-component~="ui-text"][data-ui-text-state~="size=md"][data-v-
|
|
6388
|
+
[data-component~="ui-text"][data-ui-text-state~="size=md"][data-v-f6cb02e5] {
|
|
6389
6389
|
font-size: var(--ui-font-size-md);
|
|
6390
6390
|
line-height: var(--ui-line-height);
|
|
6391
6391
|
}
|
|
6392
|
-
[data-component~="ui-text"][data-ui-text-state~="size=lg"][data-v-
|
|
6392
|
+
[data-component~="ui-text"][data-ui-text-state~="size=lg"][data-v-f6cb02e5] {
|
|
6393
6393
|
font-size: var(--ui-font-size-lg);
|
|
6394
6394
|
line-height: var(--ui-line-height-relaxed);
|
|
6395
6395
|
}
|
|
6396
|
-
[data-component~="ui-text"][data-ui-text-state~="tone=secondary"][data-v-
|
|
6396
|
+
[data-component~="ui-text"][data-ui-text-state~="tone=secondary"][data-v-f6cb02e5] {
|
|
6397
6397
|
color: var(--ui-text-secondary);
|
|
6398
6398
|
}
|
|
6399
|
-
[data-component~="ui-text"][data-ui-text-state~="tone=muted"][data-v-
|
|
6399
|
+
[data-component~="ui-text"][data-ui-text-state~="tone=muted"][data-v-f6cb02e5] {
|
|
6400
6400
|
color: var(--ui-text-muted);
|
|
6401
6401
|
}
|
|
6402
|
-
[data-component~="ui-text"][data-ui-text-state~="tone=accent"][data-v-
|
|
6402
|
+
[data-component~="ui-text"][data-ui-text-state~="tone=accent"][data-v-f6cb02e5] {
|
|
6403
6403
|
color: var(--ui-accent-active);
|
|
6404
6404
|
}
|
|
6405
|
-
|
|
6406
|
-
|
|
6405
|
+
/* Every status tone uses the text-safe token a subtle badge sets its words in, so text and badges
|
|
6406
|
+
in one tone match, and each holds 4.5:1 on sunken surfaces where some base colours fall short. */
|
|
6407
|
+
[data-component~="ui-text"][data-ui-text-state~="tone=danger"][data-v-f6cb02e5] {
|
|
6408
|
+
color: var(--ui-danger-subtle-text);
|
|
6407
6409
|
}
|
|
6408
|
-
[data-component~="ui-text"][data-ui-text-state~="tone=success"][data-v-
|
|
6409
|
-
color: var(--ui-success);
|
|
6410
|
+
[data-component~="ui-text"][data-ui-text-state~="tone=success"][data-v-f6cb02e5] {
|
|
6411
|
+
color: var(--ui-success-subtle-text);
|
|
6410
6412
|
}
|
|
6411
|
-
|
|
6412
|
-
text-safe tokens a subtle badge sets its words in. */
|
|
6413
|
-
[data-component~="ui-text"][data-ui-text-state~="tone=info"][data-v-e15a75c1] {
|
|
6413
|
+
[data-component~="ui-text"][data-ui-text-state~="tone=info"][data-v-f6cb02e5] {
|
|
6414
6414
|
color: var(--ui-info-subtle-text);
|
|
6415
6415
|
}
|
|
6416
|
-
[data-component~="ui-text"][data-ui-text-state~="tone=warning"][data-v-
|
|
6416
|
+
[data-component~="ui-text"][data-ui-text-state~="tone=warning"][data-v-f6cb02e5] {
|
|
6417
6417
|
color: var(--ui-warning-subtle-text);
|
|
6418
6418
|
}
|
|
6419
|
-
[data-component~="ui-text"][data-ui-text-state~="weight=normal"][data-v-
|
|
6419
|
+
[data-component~="ui-text"][data-ui-text-state~="weight=normal"][data-v-f6cb02e5] {
|
|
6420
6420
|
font-weight: var(--ui-font-normal);
|
|
6421
6421
|
}
|
|
6422
|
-
[data-component~="ui-text"][data-ui-text-state~="weight=medium"][data-v-
|
|
6422
|
+
[data-component~="ui-text"][data-ui-text-state~="weight=medium"][data-v-f6cb02e5] {
|
|
6423
6423
|
font-weight: var(--ui-font-medium);
|
|
6424
6424
|
}
|
|
6425
|
-
[data-component~="ui-text"][data-ui-text-state~="weight=semibold"][data-v-
|
|
6425
|
+
[data-component~="ui-text"][data-ui-text-state~="weight=semibold"][data-v-f6cb02e5] {
|
|
6426
6426
|
font-weight: var(--ui-font-semibold);
|
|
6427
6427
|
}
|
|
6428
|
-
[data-component~="ui-text"][data-ui-text-state~="variant=eyebrow"][data-v-
|
|
6428
|
+
[data-component~="ui-text"][data-ui-text-state~="variant=eyebrow"][data-v-f6cb02e5] {
|
|
6429
6429
|
font-size: var(--ui-font-size-xs);
|
|
6430
6430
|
font-weight: var(--ui-font-semibold);
|
|
6431
6431
|
letter-spacing: 0.06em;
|
|
6432
6432
|
text-transform: uppercase;
|
|
6433
6433
|
}
|
|
6434
|
-
[data-component~="ui-text"][data-ui-text-state~="variant=code"][data-v-
|
|
6434
|
+
[data-component~="ui-text"][data-ui-text-state~="variant=code"][data-v-f6cb02e5] {
|
|
6435
6435
|
font-family: var(--ui-font-family-mono);
|
|
6436
6436
|
}
|
|
6437
6437
|
|
|
6438
6438
|
/* A link in running text is underlined, so it stands apart from the words around it by more than
|
|
6439
6439
|
colour. */
|
|
6440
|
-
[data-component~="ui-text"] a[data-v-
|
|
6440
|
+
[data-component~="ui-text"] a[data-v-f6cb02e5-s] {
|
|
6441
6441
|
color: var(--ui-accent-active);
|
|
6442
6442
|
text-decoration: underline;
|
|
6443
6443
|
text-decoration-thickness: 0.06em;
|
|
6444
6444
|
text-underline-offset: 0.18em;
|
|
6445
6445
|
}
|
|
6446
|
-
[data-component~="ui-text"][data-ui-text-state~="truncate"][data-v-
|
|
6446
|
+
[data-component~="ui-text"][data-ui-text-state~="truncate"][data-v-f6cb02e5] {
|
|
6447
6447
|
overflow: hidden;
|
|
6448
6448
|
text-overflow: ellipsis;
|
|
6449
6449
|
white-space: nowrap;
|
|
6450
6450
|
}
|
|
6451
|
-
[data-component~="ui-text"][data-ui-text-state~="align=center"][data-v-
|
|
6451
|
+
[data-component~="ui-text"][data-ui-text-state~="align=center"][data-v-f6cb02e5] {
|
|
6452
6452
|
text-align: center;
|
|
6453
6453
|
}
|
|
6454
6454
|
|
|
6455
6455
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
6456
|
-
[data-component~="ui-text"][hidden][data-v-
|
|
6456
|
+
[data-component~="ui-text"][hidden][data-v-f6cb02e5] {
|
|
6457
6457
|
display: none;
|
|
6458
6458
|
}
|
|
6459
6459
|
|