storyloco 2.7.0 → 2.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storyloco",
3
- "version": "2.7.0",
3
+ "version": "2.7.2",
4
4
  "description": "A collection of slick Storyblok field plugins built with Svelte 5, TypeScript, and Tailwind CSS",
5
5
  "keywords": [
6
6
  "storyblok",
@@ -1,4 +1,6 @@
1
1
  export interface HubspotForm {
2
2
  id: string
3
3
  name: string
4
+ // the HubSpot portal the form belongs to; missing on values saved before 0.2.0
5
+ portal?: string
4
6
  }
@@ -1,6 +1,6 @@
1
1
  /* Shared look for UI Loco's Storyblok space plugins (Shop, Mux Library), close to Storyblok's own
2
2
  editor UI. Wrap the plugin in `.plugin` and use its classes: card, button, segments, search,
3
- status, table, empty, problem, skeleton. Import with `import 'storyloco/shared/plugin.css'`. */
3
+ status (with data-tone good, warn, danger or neutral), table, empty, problem, skeleton. Import with `import 'storyloco/shared/plugin.css'`. */
4
4
  .plugin {
5
5
  --sb-ink: #1b243f;
6
6
  --sb-muted: #5f6781;
@@ -197,7 +197,7 @@
197
197
  color: var(--sb-muted);
198
198
  }
199
199
 
200
- & input,
200
+ & input:not([type='checkbox'], [type='radio']),
201
201
  & textarea {
202
202
  background: var(--sb-surface);
203
203
  border: 1px solid var(--sb-line);
@@ -225,6 +225,17 @@
225
225
  }
226
226
  }
227
227
 
228
+ & input:is([type='checkbox'], [type='radio']) {
229
+ accent-color: var(--sb-primary);
230
+ appearance: auto;
231
+ block-size: 16px;
232
+ cursor: pointer;
233
+ flex: none;
234
+ inline-size: 16px;
235
+ margin: 0;
236
+ padding: 0;
237
+ }
238
+
228
239
  & .button {
229
240
  align-items: center;
230
241
  background: var(--sb-surface);
@@ -310,7 +321,8 @@
310
321
  padding: 0 8px;
311
322
  }
312
323
 
313
- /* A dot and the word, so state never rides on colour alone. */
324
+ /* A dot and the word, so state never rides on colour alone. Each plugin maps its own statuses
325
+ to a tone: <span class="status" data-tone="good">Paid</span>. */
314
326
  & .status {
315
327
  align-items: center;
316
328
  border-radius: 999px;
@@ -329,40 +341,25 @@
329
341
  inline-size: 6px;
330
342
  }
331
343
 
332
- &[data-status='paid'] {
344
+ &[data-tone='good'] {
333
345
  background: var(--sb-good-wash);
334
346
  color: var(--sb-good);
335
347
  }
336
348
 
337
- &[data-status='pending'] {
349
+ &[data-tone='warn'] {
338
350
  background: var(--sb-warn-wash);
339
351
  color: var(--sb-warn);
340
352
  }
341
353
 
342
- &[data-status='failed'] {
354
+ &[data-tone='danger'] {
343
355
  background: var(--sb-danger-wash);
344
356
  color: var(--sb-danger);
345
357
  }
346
358
 
347
- &[data-status='refunded'] {
359
+ &[data-tone='neutral'] {
348
360
  background: var(--sb-raised);
349
361
  color: var(--sb-muted);
350
362
  }
351
-
352
- &[data-status='ready'] {
353
- background: var(--sb-good-wash);
354
- color: var(--sb-good);
355
- }
356
-
357
- &:is([data-status='preparing'], [data-status='unused']) {
358
- background: var(--sb-warn-wash);
359
- color: var(--sb-warn);
360
- }
361
-
362
- &[data-status='errored'] {
363
- background: var(--sb-danger-wash);
364
- color: var(--sb-danger);
365
- }
366
363
  }
367
364
 
368
365
  & .table {