@zeyolabs/shopping 2026.11.52 → 2026.11.53

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.
@@ -4,6 +4,7 @@
4
4
  import { CheckboxField, Form, MessageField, NumberField, TextField } from '@zeyolabs/ui/form';
5
5
  import Button from '@zeyolabs/ui/form/Button.svelte';
6
6
  import Cluster from '@zeyolabs/ui/layout/Cluster.svelte';
7
+ import Grid from '@zeyolabs/ui/layout/Grid.svelte';
7
8
  import Title from '@zeyolabs/ui/text/Title.svelte';
8
9
 
9
10
  import type { getAdminBundle } from '../admin.remote';
@@ -69,18 +70,18 @@
69
70
  >
70
71
  <section class={section}>
71
72
  <TextField name="name" {form}>Name</TextField>
72
- <div class="grid gap-4 sm:grid-cols-2">
73
+ <Grid columns={2} gap="md" stack>
73
74
  <TextField name="slug" {form} optional placeholder="made from the name">Slug (URL)</TextField>
74
75
  <TextField name="image" {form} optional>Image file name</TextField>
75
- </div>
76
+ </Grid>
76
77
  <MessageField name="description" {form} optional>Description</MessageField>
77
- <div class="grid gap-4 sm:grid-cols-3">
78
+ <Grid columns={3} gap="md" stack>
78
79
  <NumberField name="sortOrder" {form} inputmode="numeric">Sort order</NumberField>
79
80
  <NumberField name="discountPercent" {form} inputmode="numeric">
80
81
  Bundle discount % (not for kits)
81
82
  </NumberField>
82
83
  <CheckboxField name="active" {form}>On sale in the shop</CheckboxField>
83
- </div>
84
+ </Grid>
84
85
  </section>
85
86
 
86
87
  {#each stepRows as _, i (i)}
@@ -103,7 +104,7 @@
103
104
  <label class="form-label" for="step-{i}-description">Help text (optional)</label>
104
105
  <input id="step-{i}-description" {...steps[i].description.as('text')} class={input} />
105
106
  </div>
106
- <div class="grid gap-4 sm:grid-cols-2">
107
+ <Grid columns={2} gap="md" stack>
107
108
  <div>
108
109
  <label class="form-label" for="step-{i}-role">Kind of step</label>
109
110
  <select id="step-{i}-role" {...steps[i].role.as('select')} class={input}>
@@ -123,8 +124,8 @@
123
124
  inputmode="numeric"
124
125
  />
125
126
  </div>
126
- </div>
127
- <div class="grid gap-4 sm:grid-cols-2">
127
+ </Grid>
128
+ <Grid columns={2} gap="md" stack>
128
129
  <div>
129
130
  <label class="form-label" for="step-{i}-min-choices">Fewest picks (0 = optional)</label>
130
131
  <input
@@ -143,7 +144,7 @@
143
144
  min="1"
144
145
  />
145
146
  </div>
146
- </div>
147
+ </Grid>
147
148
  <div>
148
149
  <label class="form-label" for="step-{i}-skus"
149
150
  >Products offered, one SKU per line (a kit base as SKU=slots, e.g. BASE44=16)</label
@@ -4,6 +4,7 @@
4
4
  import { CheckboxField, Form, MessageField, NumberField, TextField } from '@zeyolabs/ui/form';
5
5
  import Button from '@zeyolabs/ui/form/Button.svelte';
6
6
  import Cluster from '@zeyolabs/ui/layout/Cluster.svelte';
7
+ import Grid from '@zeyolabs/ui/layout/Grid.svelte';
7
8
  import Span from '@zeyolabs/ui/text/Span.svelte';
8
9
  import Text from '@zeyolabs/ui/text/Text.svelte';
9
10
  import Title from '@zeyolabs/ui/text/Title.svelte';
@@ -77,12 +78,12 @@
77
78
  <section class={section}>
78
79
  <Title level={2} size="sm">Basics</Title>
79
80
  <TextField name="name" {form}>Name</TextField>
80
- <div class="grid gap-4 sm:grid-cols-2">
81
+ <Grid columns={2} gap="md" stack>
81
82
  <TextField name="slug" {form} optional placeholder="made from the name">Slug (URL)</TextField>
82
83
  <TextField name="sku" {form}>SKU</TextField>
83
84
  <TextField name="price" {form} inputmode="decimal">Price (£)</TextField>
84
85
  <TextField name="comparePrice" {form} inputmode="decimal" optional>Was price (£)</TextField>
85
- </div>
86
+ </Grid>
86
87
  <CheckboxField name="active" {form}>On sale in the shop</CheckboxField>
87
88
  {#if p && slug && p.slug !== slug}
88
89
  <Text color="secondary">
@@ -150,7 +151,7 @@
150
151
 
151
152
  <section class={section}>
152
153
  <Title level={2} size="sm">Categories</Title>
153
- <div class="grid gap-2 sm:grid-cols-2">
154
+ <Grid columns={2} gap="sm" stack>
154
155
  {#each options.categories as category (category.id)}
155
156
  <Cluster gap="xs" nowrap>
156
157
  <input
@@ -162,7 +163,7 @@
162
163
  {:else}
163
164
  <Text color="secondary">No categories yet.</Text>
164
165
  {/each}
165
- </div>
166
+ </Grid>
166
167
  </section>
167
168
 
168
169
  <section class={section}>
@@ -173,7 +174,7 @@
173
174
  "Black".
174
175
  </Text>
175
176
  </div>
176
- <div class="grid gap-4 sm:grid-cols-2">
177
+ <Grid columns={2} gap="md" stack>
177
178
  <div>
178
179
  <label class="form-label" for="variation-group">Group</label>
179
180
  <input
@@ -187,7 +188,7 @@
187
188
  {#each options.variationGroups as group (group)}<option value={group}></option>{/each}
188
189
  </datalist>
189
190
  <TextField name="variationLabel" {form} optional>This option</TextField>
190
- </div>
191
+ </Grid>
191
192
  </section>
192
193
 
193
194
  <section class={section}>
@@ -197,7 +198,7 @@
197
198
  Stock itself is set on the Stock page{p ? ` (now ${p.stock} units)` : ''}.
198
199
  </Text>
199
200
  </div>
200
- <div class="grid gap-4 sm:grid-cols-3">
201
+ <Grid columns={3} gap="md" stack>
201
202
  <NumberField name="massGrams" {form} inputmode="numeric">Weight (g)</NumberField>
202
203
  <NumberField name="maxPerOrder" {form} inputmode="numeric">Max per order</NumberField>
203
204
  <NumberField name="packSize" {form} inputmode="numeric">Pack size (units)</NumberField>
@@ -205,7 +206,7 @@
205
206
  "Only N left" from
206
207
  </NumberField>
207
208
  <NumberField name="sortOrder" {form} inputmode="numeric">Sort order</NumberField>
208
- </div>
209
+ </Grid>
209
210
  </section>
210
211
 
211
212
  <section class={section}>
@@ -8,6 +8,7 @@
8
8
  import ImageGallery from '@zeyolabs/ui/gallery/ImageGallery.svelte';
9
9
  import Head from '@zeyolabs/ui/head/Head.svelte';
10
10
  import Cluster from '@zeyolabs/ui/layout/Cluster.svelte';
11
+ import Grid from '@zeyolabs/ui/layout/Grid.svelte';
11
12
  import Span from '@zeyolabs/ui/text/Span.svelte';
12
13
  import Text from '@zeyolabs/ui/text/Text.svelte';
13
14
  import Title from '@zeyolabs/ui/text/Title.svelte';
@@ -54,7 +55,7 @@
54
55
  title={product.name}
55
56
  />
56
57
 
57
- <div class="grid gap-8 md:grid-cols-2 lg:gap-14">
58
+ <Grid columns={2} gap="lg" stack>
58
59
  <div class="md:sticky md:top-6 md:self-start">
59
60
  {#key product.id}
60
61
  <ImageGallery
@@ -167,7 +168,7 @@
167
168
  </dl>
168
169
  {/if}
169
170
  </div>
170
- </div>
171
+ </Grid>
171
172
 
172
173
  {#if text.paragraphs.length > 0 || text.specs.length > 4}
173
174
  <section
@@ -7,6 +7,7 @@
7
7
  import Button from '@zeyolabs/ui/form/Button.svelte';
8
8
  import Head from '@zeyolabs/ui/head/Head.svelte';
9
9
  import Cluster from '@zeyolabs/ui/layout/Cluster.svelte';
10
+ import Grid from '@zeyolabs/ui/layout/Grid.svelte';
10
11
  import Span from '@zeyolabs/ui/text/Span.svelte';
11
12
  import Text from '@zeyolabs/ui/text/Text.svelte';
12
13
  import Title from '@zeyolabs/ui/text/Title.svelte';
@@ -88,7 +89,7 @@
88
89
  : ''}
89
90
  </Text>
90
91
 
91
- <div class="mt-6 grid gap-6 md:grid-cols-2">
92
+ <Grid class="mt-6" columns={2} gap="md" stack>
92
93
  <section class="rounded-xl border border-[var(--bd)] bg-white p-5">
93
94
  <Title level={2} size="sm">Ship to</Title>
94
95
  <address class="mt-2 not-italic select-all">
@@ -164,7 +165,7 @@
164
165
  {/if}
165
166
  </dl>
166
167
  </section>
167
- </div>
168
+ </Grid>
168
169
 
169
170
  {#if order.status === 'paid'}
170
171
  {let stage = $derived(Packing.stage(order))}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeyolabs/shopping",
3
- "version": "2026.11.52",
3
+ "version": "2026.11.53",
4
4
  "description": "Shop and order fulfilment for SvelteKit 3 on Cloudflare: catalogue, basket, Stripe Checkout, orders, Royal Mail Click & Drop, order emails, packing, pages and admin.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",