@threadlabs/looma 0.45.1 → 0.45.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/docs/catalog.json CHANGED
@@ -463,7 +463,7 @@
463
463
  ],
464
464
  "schemaVersion": 1,
465
465
  "package": "@threadlabs/looma",
466
- "version": "0.45.1",
466
+ "version": "0.45.2",
467
467
  "groups": [
468
468
  {
469
469
  "id": "layout",
@@ -16879,7 +16879,7 @@
16879
16879
  "tag": "ui-section",
16880
16880
  "package": "@threadlabs/looma",
16881
16881
  "root": "section",
16882
- "description": "A part of a view: an `h2` `heading`, an optional `description`, `actions` for the whole section, and its content. `variant=\"fieldset\"` joins the heading to a rounded frame with a native legend, for a named settings group. Its description and actions stay inside the frame; long headings wrap without covering the content. `variant=\"card\"` sets it on a bordered surface; `variant=\"divided\"` rules it off from the section before, for a long form; `tone=\"danger\"` marks destructive actions. A fieldset is announced as a group named by its legend. Use `aria-label` when omitting the heading. Space sections with a Stack.",
16882
+ "description": "A part of a view: an `h2` `heading`, an optional `description`, `actions` for the whole section, and its content. `variant=\"fieldset\"` joins the heading to a rounded frame with a native legend, for a named settings group. Its description and actions stay inside the frame; long headings wrap without covering the content. `variant=\"card\"` sets it on a bordered surface; `variant=\"divided\"` rules it off from the section before, for a long form; `tone=\"danger\"` marks destructive actions. A fieldset is announced as a group named by its legend. Use `aria-label` when omitting the heading. Space sections with a Stack. Danger fieldsets keep the neutral surface and rounded geometry, using heading and border color to mark destructive actions.",
16883
16883
  "designTokens": {
16884
16884
  "sources": [
16885
16885
  "packages/looma/src/components/ui-section/ui-section.html"
@@ -16922,9 +16922,6 @@
16922
16922
  {
16923
16923
  "name": "--ui-font-size-lg"
16924
16924
  },
16925
- {
16926
- "name": "--ui-font-size-md"
16927
- },
16928
16925
  {
16929
16926
  "name": "--ui-font-size-sm"
16930
16927
  },
@@ -17075,8 +17072,8 @@
17075
17072
  "id": "@threadlabs/looma/ui-section/03-fieldset",
17076
17073
  "name": "03-fieldset",
17077
17074
  "title": "Connected headings",
17078
- "description": "A native legend joins the heading to the frame. Descriptions, actions and fields stay comfortably inside it, including with long titles on narrow screens.",
17079
- "markup": "<ui-stack gap=\"l\">\n <ui-section heading=\"Profile and preferences\" variant=\"fieldset\">\n <span slot=\"description\">The details people see when you work together.</span>\n <ui-form-field>\n <label slot=\"label\" for=\"profile-name\">Display name</label>\n <ui-input id=\"profile-name\" value=\"Ada Lovelace\"></ui-input>\n </ui-form-field>\n <ui-button slot=\"actions\" variant=\"outline\" tone=\"accent\" size=\"sm\">Reset</ui-button>\n </ui-section>\n <ui-section heading=\"Notification preferences and shared workspace visibility\" variant=\"fieldset\">\n <ui-text>Choose when you hear about changes and which workspaces appear in your navigation.</ui-text>\n </ui-section>\n <ui-section heading=\"Delete account\" variant=\"fieldset\" tone=\"danger\">\n <span slot=\"description\">Permanently remove this account and its saved preferences.</span>\n <ui-button variant=\"outline\" tone=\"danger\">Delete account</ui-button>\n </ui-section>\n</ui-stack>",
17075
+ "description": "A native legend joins the heading to the frame. Descriptions, actions and fields stay comfortably inside it.",
17076
+ "markup": "<ui-stack gap=\"l\">\n <ui-section heading=\"Profile\" variant=\"fieldset\">\n <span slot=\"description\">The details people see when you work together.</span>\n <ui-form-field>\n <label slot=\"label\" for=\"profile-name\">Display name</label>\n <ui-input id=\"profile-name\" value=\"Ada Lovelace\"></ui-input>\n </ui-form-field>\n <ui-button slot=\"actions\" variant=\"outline\" tone=\"accent\" size=\"sm\">Reset</ui-button>\n </ui-section>\n <ui-section heading=\"Notifications\" variant=\"fieldset\">\n <ui-text>Choose which updates you receive.</ui-text>\n </ui-section>\n <ui-section heading=\"Delete account\" variant=\"fieldset\" tone=\"danger\">\n <span slot=\"description\">Permanently remove this account and its saved preferences.</span>\n <ui-button variant=\"outline\" tone=\"danger\">Delete account</ui-button>\n </ui-section>\n</ui-stack>",
17080
17077
  "resizable": false,
17081
17078
  "bindings": "",
17082
17079
  "frameworks": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threadlabs/looma",
3
- "version": "0.45.1",
3
+ "version": "0.45.2",
4
4
  "type": "module",
5
5
  "description": "Looma components as HTML, Vue, and plain DOM, with design tokens.",
6
6
  "license": "MIT",
@@ -43,7 +43,7 @@
43
43
  }
44
44
 
45
45
  .legend .heading {
46
- font-size: var(--ui-font-size-md);
46
+ transform: translateY(-1px);
47
47
  }
48
48
 
49
49
  :scope:where([data-component~="ui-section"])[data-ui-section-state~="variant=fieldset"] .head {
@@ -61,6 +61,10 @@
61
61
 
62
62
  :scope:where([data-component~="ui-section"])[data-ui-section-state~="variant=card"][data-ui-section-state~="tone=danger"],
63
63
  :scope:where([data-component~="ui-section"])[data-ui-section-state~="variant=fieldset"][data-ui-section-state~="tone=danger"] {
64
+ border-color: color-mix(in srgb, var(--ui-danger) 45%, var(--ui-border-default));
65
+ }
66
+
67
+ :scope:where([data-component~="ui-section"])[data-ui-section-state~="variant=card"][data-ui-section-state~="tone=danger"] {
64
68
  --_ui-selection-context-surface: light-dark(
65
69
  oklch(from var(--ui-danger-soft) calc(l - 0.045) calc(max(c, min(0.045, c * 3))) h),
66
70
  oklch(from var(--ui-danger-soft) calc(l + 0.045) calc(max(c, min(0.045, c * 3))) h)
@@ -70,7 +74,6 @@
70
74
  oklch(from var(--ui-danger-soft) calc(l + 0.085) calc(max(c, min(0.045, c * 3))) h)
71
75
  );
72
76
  --_ui-selection-context-text: var(--ui-text-primary);
73
- border-color: color-mix(in srgb, var(--ui-danger) 45%, var(--ui-border-default));
74
77
  border-inline-start: var(--ui-accent-line-width) solid var(--ui-danger);
75
78
  /* An accent edge keeps the corners on its side straight. */
76
79
  border-start-start-radius: 0;
package/vue/UiSection.vue CHANGED
@@ -222,7 +222,7 @@ const hostState = computed(() =>
222
222
  }
223
223
 
224
224
  :global(.legend .heading:where([data-hn-ui-section])) {
225
- font-size: var(--ui-font-size-md);
225
+ transform: translateY(-1px);
226
226
  }
227
227
 
228
228
  :global(:scope[data-ui-section-state~="variant=fieldset"] .head:where([data-hn-ui-section])) {
@@ -241,6 +241,10 @@ const hostState = computed(() =>
241
241
 
242
242
  :global(:scope[data-ui-section-state~="variant=card"][data-ui-section-state~="tone=danger"]:where([data-hn-ui-section])),
243
243
  :global(:scope[data-ui-section-state~="variant=fieldset"][data-ui-section-state~="tone=danger"]:where([data-hn-ui-section])) {
244
+ border-color: color-mix(in srgb, var(--ui-danger) 45%, var(--ui-border-default));
245
+ }
246
+
247
+ :global(:scope[data-ui-section-state~="variant=card"][data-ui-section-state~="tone=danger"]:where([data-hn-ui-section])) {
244
248
  --_ui-selection-context-surface: light-dark(
245
249
  oklch(from var(--ui-danger-soft) calc(l - 0.045) calc(max(c, min(0.045, c * 3))) h),
246
250
  oklch(from var(--ui-danger-soft) calc(l + 0.045) calc(max(c, min(0.045, c * 3))) h)
@@ -250,7 +254,6 @@ const hostState = computed(() =>
250
254
  oklch(from var(--ui-danger-soft) calc(l + 0.085) calc(max(c, min(0.045, c * 3))) h)
251
255
  );
252
256
  --_ui-selection-context-text: var(--ui-text-primary);
253
- border-color: color-mix(in srgb, var(--ui-danger) 45%, var(--ui-border-default));
254
257
  border-inline-start: var(--ui-accent-line-width) solid var(--ui-danger);
255
258
  /* An accent edge keeps the corners on its side straight. */
256
259
  border-start-start-radius: 0;
@@ -220,6 +220,6 @@ var UiSection_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
220
220
  }]]);
221
221
  };
222
222
  }
223
- }), [["__scopeId", "data-v-ccf42e80"]]);
223
+ }), [["__scopeId", "data-v-21e0d312"]]);
224
224
  //#endregion
225
225
  export { UiSection_default as t };
@@ -9617,7 +9617,7 @@ dialog:where([data-hn-ui-search-shell]) {
9617
9617
  overflow-wrap: anywhere;
9618
9618
  }
9619
9619
  .legend .heading:where([data-hn-ui-section]) {
9620
- font-size: var(--ui-font-size-md);
9620
+ transform: translateY(-1px);
9621
9621
  }
9622
9622
  :scope[data-ui-section-state~="variant=fieldset"] .head:where([data-hn-ui-section]) {
9623
9623
  margin-block-end: var(--ui-space-4) !important;
@@ -9631,6 +9631,9 @@ dialog:where([data-hn-ui-search-shell]) {
9631
9631
  border-block-start: var(--ui-border-width) solid var(--ui-border-divider);
9632
9632
  }
9633
9633
  :scope[data-ui-section-state~="variant=card"][data-ui-section-state~="tone=danger"]:where([data-hn-ui-section]),:scope[data-ui-section-state~="variant=fieldset"][data-ui-section-state~="tone=danger"]:where([data-hn-ui-section]) {
9634
+ border-color: color-mix(in srgb, var(--ui-danger) 45%, var(--ui-border-default));
9635
+ }
9636
+ :scope[data-ui-section-state~="variant=card"][data-ui-section-state~="tone=danger"]:where([data-hn-ui-section]) {
9634
9637
  --_ui-selection-context-surface: light-dark(
9635
9638
  oklch(from var(--ui-danger-soft) calc(l - 0.045) calc(max(c, min(0.045, c * 3))) h),
9636
9639
  oklch(from var(--ui-danger-soft) calc(l + 0.045) calc(max(c, min(0.045, c * 3))) h)
@@ -9640,7 +9643,6 @@ dialog:where([data-hn-ui-search-shell]) {
9640
9643
  oklch(from var(--ui-danger-soft) calc(l + 0.085) calc(max(c, min(0.045, c * 3))) h)
9641
9644
  );
9642
9645
  --_ui-selection-context-text: var(--ui-text-primary);
9643
- border-color: color-mix(in srgb, var(--ui-danger) 45%, var(--ui-border-default));
9644
9646
  border-inline-start: var(--ui-accent-line-width) solid var(--ui-danger);
9645
9647
  /* An accent edge keeps the corners on its side straight. */
9646
9648
  border-start-start-radius: 0;