@threadlabs/looma 0.53.15 → 0.53.17

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.
@@ -350,11 +350,12 @@
350
350
  box-shadow: none;
351
351
  background-image: none;
352
352
  }
353
- :host[data-appearance="card"][size="lg"] {
353
+ :host([size="lg"])[data-appearance="card"] {
354
354
  min-block-size: max(var(--ui-control-min-block-size), var(--ui-control-size-lg));
355
355
  }
356
- :host[data-appearance="card"][size="sm"] {
356
+ :host([size="sm"])[data-appearance="card"] {
357
357
  min-block-size: var(--ui-control-size-sm);
358
+ align-items: center !important;
358
359
  gap: var(--ui-space-2) !important;
359
360
  }
360
361
  :host([fit])[data-appearance="card"] {
@@ -102,7 +102,8 @@
102
102
  ></returns>Confirm permanent deletion. Return false or null to keep the file and block.</request>
103
103
  <request name="file-delete" type="object"><prop name="file" type="unknown" required></prop><returns type="object({ deleted: boolean })"></returns>Delete the
104
104
  retained original after confirmation. The editor removes its block optimistically; rejection restores it. File presentation uses attachment:href reference
105
- entries so undo can restore a disabled deleted-file block.</request>
105
+ entries so undo can restore a disabled deleted-file block. Editable references remain removable through ordinary document changes after their original is
106
+ deleted; that removal does not call this request.</request>
106
107
  <request name="image-delivery" returns="unknown"
107
108
  >The host's synchronous source and rendition policy, resolved before the editor mounts. This transient policy is never persisted.</request>
108
109
  </defs>
@@ -120,6 +120,41 @@
120
120
  }
121
121
  }
122
122
 
123
+ /* The native file action uses the outline button palette. The input still owns pointer and keyboard activation. */
124
+ :host[type="file"]::file-selector-button {
125
+ appearance: none;
126
+ min-block-size: var(--ui-control-size-sm);
127
+ margin-inline-end: var(--ui-space-2) !important;
128
+ padding: var(--ui-control-inset-block-sm, var(--ui-space-1)) var(--ui-action-inset-sm, var(--ui-space-2)) !important;
129
+ border: var(--ui-border-width) solid var(--ui-accent-outline-border, var(--ui-accent-subtle-text));
130
+ border-radius: var(--ui-action-radius, var(--ui-radius-md));
131
+ background-color: transparent;
132
+ background-image: linear-gradient(var(--ui-accent-wash), var(--ui-accent-wash));
133
+ color: var(--ui-accent-subtle-text);
134
+ box-shadow: var(--ui-neutral-shadow);
135
+ font: inherit;
136
+ font-weight: var(--ui-font-medium);
137
+ cursor: pointer;
138
+ }
139
+
140
+ :host[type="file"]:enabled:hover::file-selector-button {
141
+ background-image: linear-gradient(var(--ui-accent-wash-hover), var(--ui-accent-wash-hover));
142
+ }
143
+
144
+ :host[type="file"]:enabled:active::file-selector-button {
145
+ background-image: none;
146
+ background-color: oklch(from var(--ui-accent) l c h / calc(18% * var(--ui-tonal-opacity, 1)));
147
+ box-shadow: var(--ui-pressed);
148
+ }
149
+
150
+ :host[type="file"]:disabled::file-selector-button {
151
+ border-color: var(--ui-control-border);
152
+ background: transparent;
153
+ color: var(--ui-disabled-text);
154
+ box-shadow: none;
155
+ cursor: not-allowed;
156
+ }
157
+
123
158
  /* Tabbing into a field selects its text; tint that selection softly instead of the page highlight. */
124
159
  :host::selection {
125
160
  background: color-mix(in srgb, var(--ui-accent-solid) 20%, transparent);