@widgetic/workflows 0.2.16 → 0.2.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.
@@ -1,6 +1,11 @@
1
1
  <!--
2
2
  What the list shows while the workspace has no workflow yet: what a workflow is, and the button that makes the first one.
3
3
  A list that is empty because a search or a filter matches nothing does not show this; it says so in a line of its own.
4
+
5
+ The look is the one of every empty placeholder of the Widgetic site (the design system's EmptyState, Figma "Components" empty
6
+ state): a grey tile (muted) behind an icon in the foreground colour, a title in Body/Medium and a hint in Body/Default, both in
7
+ muted-foreground. It used to be a green tile with a heading-sized title, which made this list look unlike the others (owner,
8
+ 18 Nov 2026).
4
9
  -->
5
10
  <script lang="ts">
6
11
  import { useWorkflowsLanguage } from '../i18n/language.js';
@@ -22,11 +27,11 @@
22
27
 
23
28
  <div class="flex flex-1 flex-col items-center justify-center px-4 py-12">
24
29
  <div class="flex w-120 max-w-full flex-col items-center gap-3 px-12 text-center">
25
- <div class="flex size-12 items-center justify-center rounded-xl bg-brand-subtle">
26
- <Icon name="route" class="size-4 text-brand-foreground" />
30
+ <div class="flex size-12 items-center justify-center rounded-xl bg-muted">
31
+ <Icon name="route" class="size-4 text-foreground" />
27
32
  </div>
28
33
  <div class="flex w-full flex-col gap-1">
29
- <h2 class="text-heading-section text-foreground">{$t('workflows.empty.title')}</h2>
34
+ <h2 class="text-body-medium text-muted-foreground">{$t('workflows.empty.title')}</h2>
30
35
  <p class="text-body text-muted-foreground">{$t('workflows.empty.hint')}</p>
31
36
  </div>
32
37
  <Button
@@ -172,21 +172,30 @@
172
172
  <WorkflowsHeader class="min-w-0 shrink" />
173
173
  {#if !isLibraryEmpty}
174
174
  <div class="flex min-w-0 shrink-0 items-center gap-2">
175
- <SearchInput
176
- containerClass="w-60 shrink-0"
177
- bind:value={searchDraft}
178
- placeholder={$t('workflows.list.searchPlaceholder')}
179
- clearLabel={$t('workflows.list.clearSearch')}
180
- inputAttributes={{ 'aria-label': $t('workflows.list.searchLabel') }}
181
- {recentSearchesKey}
182
- recentSearchesLabel={$t('workflows.list.recentSearches')}
183
- clearRecentSearchesLabel={$t('workflows.list.clearRecentSearches')}
184
- onInput={() => list.setSearch(searchDraft)}
185
- onClear={() => {
186
- searchDraft = '';
187
- list.setSearch('');
188
- }}
189
- />
175
+ <!--
176
+ The design draws the search 240px wide (Figma list-list: `search` 240 x 36, then the 144px button). The
177
+ width belongs to this wrapper and not to the field: the field's own root is `w-full`, and a `w-60` handed
178
+ to it through `containerClass` loses to that (`w-full` comes later in the generated CSS). The field then
179
+ filled whatever this group measured, 366px, and pushed "New workflow" out of the window: the page scrolled
180
+ sideways (owner, 19 Nov 2026).
181
+ -->
182
+ <div class="w-60 shrink-0" data-workflows-search-slot>
183
+ <SearchInput
184
+ containerClass="min-w-0"
185
+ bind:value={searchDraft}
186
+ placeholder={$t('workflows.list.searchPlaceholder')}
187
+ clearLabel={$t('workflows.list.clearSearch')}
188
+ inputAttributes={{ 'aria-label': $t('workflows.list.searchLabel') }}
189
+ {recentSearchesKey}
190
+ recentSearchesLabel={$t('workflows.list.recentSearches')}
191
+ clearRecentSearchesLabel={$t('workflows.list.clearRecentSearches')}
192
+ onInput={() => list.setSearch(searchDraft)}
193
+ onClear={() => {
194
+ searchDraft = '';
195
+ list.setSearch('');
196
+ }}
197
+ />
198
+ </div>
190
199
  <!-- The design draws this button outlined while the list could not be read (the error state has the main action). -->
191
200
  <Button
192
201
  variant={dsButtonVariant(list.loadState === 'failed' ? 'outline' : 'primary')}
@@ -374,13 +383,14 @@
374
383
  </ErrorState>
375
384
  {:else if list.items.length === 0}
376
385
  {#if list.isNarrowed}
377
- <!-- Figma "No matches": the same centred state as an empty list, with a search tile and the one line. -->
386
+ <!-- Figma "No matches": the same centred state as an empty list, with a search tile and the one line (a grey tile
387
+ and a muted Body/Medium line, like every empty placeholder of the site). -->
378
388
  <div class="flex flex-1 flex-col items-center justify-center px-4 py-12" role="status">
379
389
  <div class="flex w-120 max-w-full flex-col items-center gap-3 px-12 text-center">
380
- <div class="flex size-12 items-center justify-center rounded-xl bg-brand-subtle">
381
- <Icon name="search" class="size-4 text-brand-foreground" />
390
+ <div class="flex size-12 items-center justify-center rounded-xl bg-muted">
391
+ <Icon name="search" class="size-4 text-foreground" />
382
392
  </div>
383
- <h2 class="text-heading-section text-foreground">{$t('workflows.list.noMatches')}</h2>
393
+ <h2 class="text-body-medium text-muted-foreground">{$t('workflows.list.noMatches')}</h2>
384
394
  </div>
385
395
  </div>
386
396
  {:else}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widgetic/workflows",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "description": "Workflows for Widgetic: chain compositions together with filters that decide which composition an embed shows. One Svelte package that the Widgetic site, partners and Shopify all load.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",