@scopetickets/checkout 0.5.0 → 0.6.0

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,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
 
3
- /** `2027-11-28` shifted by whole days, staying a `YYYY-MM-DD` key. */
3
+ /** `2055-11-28` shifted by whole days, staying a `YYYY-MM-DD` key. */
4
4
  export declare function addDays(day: string, count: number): string;
5
5
 
6
6
  /**
@@ -322,20 +322,20 @@ declare interface EventTimeslot {
322
322
  Remaining: number;
323
323
  }
324
324
 
325
- /** A day key as its date — `2027-12-01` -> `1 December 2027`. */
325
+ /** A day key as its date — `2055-12-01` -> `1 December 2055`. */
326
326
  export declare function formatDayDate(day: string): string;
327
327
 
328
- /** A day key as its weekday — `2027-12-01` -> `Wednesday`. */
328
+ /** A day key as its weekday — `2055-12-01` -> `Wednesday`. */
329
329
  export declare function formatDayWeekday(day: string): string;
330
330
 
331
- /** A month key as its name — `2028-06` -> `June`.. */
331
+ /** A month key as its name — `2056-06` -> `June`.. */
332
332
  export declare function formatMonthName(month: CalendarMonthKey): string;
333
333
 
334
- /** A month key as its SHORT name — `2028-06` -> `June`, `2028-12` -> `Dec.` */
334
+ /** A month key as its SHORT name — `2056-06` -> `June`, `2056-12` -> `Dec.` */
335
335
  export declare function formatMonthNameShort(month: CalendarMonthKey): string;
336
336
 
337
337
  /**
338
- * A month key's YEAR — `2028-06` -> `2028`., whose name says `MonthYear` and whose body
338
+ * A month key's YEAR — `2056-06` -> `2028`., whose name says `MonthYear` and whose body
339
339
  * returns the year alone. Kept under the source's name so the mapping back is
340
340
  * greppable.
341
341
  */
@@ -402,7 +402,7 @@ export declare type MonthGridOptions = {
402
402
  };
403
403
 
404
404
  /**
405
- * `2027-11-28` -> `2027-11`.. Named rather than sliced at each call site so the two key
405
+ * `2055-11-28` -> `2055-11`.. Named rather than sliced at each call site so the two key
406
406
  * formats stay one vocabulary.
407
407
  */
408
408
  export declare function monthOfDay(day: string): CalendarMonthKey;
@@ -858,7 +858,7 @@ declare interface TimeslotRequest {
858
858
  /**
859
859
  * THE SESSION AS THE CART WANTS IT — A TIME OF DAY, NOT A TIMESTAMP.
860
860
  *
861
- * This sent `2026-12-12T18:00:00`, on the reading that `TimeslotRequest.LocalStartTime`
861
+ * This sent `2054-12-12T18:00:00`, on the reading that `TimeslotRequest.LocalStartTime`
862
862
  * is a local timestamp and the day the buyer chose is half the answer. It is not. The
863
863
  * bulk add deserialises both ends into a .NET `System.TimeSpan` and refused every order
864
864
  * that carried one: `The JSON value could not be converted to System.TimeSpan. Path: $`,
@@ -908,6 +908,12 @@ declare interface UserType {
908
908
  Name: string;
909
909
  DiscountNominal: number;
910
910
  DiscountRate: number;
911
+ /**
912
+ * How many people one of this type admits — 4 for a "Family of 4", 1 for an Adult. One
913
+ * unit of the type is one ticket however many it seats. Absent from older platform
914
+ * builds, which is 1.
915
+ */
916
+ NumberOfPeople?: number;
911
917
  /** The organiser's own condition on choosing it, drawn under the name at `PARTY`. */
912
918
  Note?: string | null;
913
919
  /** Whether the buyer must show ID. Varies BY PRODUCT under one name — see `agreed`. */
package/dist/pickers.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
 
3
- /** `2027-11-28` shifted by whole days, staying a `YYYY-MM-DD` key. */
3
+ /** `2055-11-28` shifted by whole days, staying a `YYYY-MM-DD` key. */
4
4
  export declare function addDays(day: string, count: number): string;
5
5
 
6
6
  /**
@@ -322,20 +322,20 @@ declare interface EventTimeslot {
322
322
  Remaining: number;
323
323
  }
324
324
 
325
- /** A day key as its date — `2027-12-01` -> `1 December 2027`. */
325
+ /** A day key as its date — `2055-12-01` -> `1 December 2055`. */
326
326
  export declare function formatDayDate(day: string): string;
327
327
 
328
- /** A day key as its weekday — `2027-12-01` -> `Wednesday`. */
328
+ /** A day key as its weekday — `2055-12-01` -> `Wednesday`. */
329
329
  export declare function formatDayWeekday(day: string): string;
330
330
 
331
- /** A month key as its name — `2028-06` -> `June`.. */
331
+ /** A month key as its name — `2056-06` -> `June`.. */
332
332
  export declare function formatMonthName(month: CalendarMonthKey): string;
333
333
 
334
- /** A month key as its SHORT name — `2028-06` -> `June`, `2028-12` -> `Dec.` */
334
+ /** A month key as its SHORT name — `2056-06` -> `June`, `2056-12` -> `Dec.` */
335
335
  export declare function formatMonthNameShort(month: CalendarMonthKey): string;
336
336
 
337
337
  /**
338
- * A month key's YEAR — `2028-06` -> `2028`., whose name says `MonthYear` and whose body
338
+ * A month key's YEAR — `2056-06` -> `2028`., whose name says `MonthYear` and whose body
339
339
  * returns the year alone. Kept under the source's name so the mapping back is
340
340
  * greppable.
341
341
  */
@@ -402,7 +402,7 @@ export declare type MonthGridOptions = {
402
402
  };
403
403
 
404
404
  /**
405
- * `2027-11-28` -> `2027-11`.. Named rather than sliced at each call site so the two key
405
+ * `2055-11-28` -> `2055-11`.. Named rather than sliced at each call site so the two key
406
406
  * formats stay one vocabulary.
407
407
  */
408
408
  export declare function monthOfDay(day: string): CalendarMonthKey;
@@ -858,7 +858,7 @@ declare interface TimeslotRequest {
858
858
  /**
859
859
  * THE SESSION AS THE CART WANTS IT — A TIME OF DAY, NOT A TIMESTAMP.
860
860
  *
861
- * This sent `2026-12-12T18:00:00`, on the reading that `TimeslotRequest.LocalStartTime`
861
+ * This sent `2054-12-12T18:00:00`, on the reading that `TimeslotRequest.LocalStartTime`
862
862
  * is a local timestamp and the day the buyer chose is half the answer. It is not. The
863
863
  * bulk add deserialises both ends into a .NET `System.TimeSpan` and refused every order
864
864
  * that carried one: `The JSON value could not be converted to System.TimeSpan. Path: $`,
@@ -908,6 +908,12 @@ declare interface UserType {
908
908
  Name: string;
909
909
  DiscountNominal: number;
910
910
  DiscountRate: number;
911
+ /**
912
+ * How many people one of this type admits — 4 for a "Family of 4", 1 for an Adult. One
913
+ * unit of the type is one ticket however many it seats. Absent from older platform
914
+ * builds, which is 1.
915
+ */
916
+ NumberOfPeople?: number;
911
917
  /** The organiser's own condition on choosing it, drawn under the name at `PARTY`. */
912
918
  Note?: string | null;
913
919
  /** Whether the buyer must show ID. Varies BY PRODUCT under one name — see `agreed`. */
package/dist/pickers.js CHANGED
@@ -55,7 +55,7 @@ import {
55
55
  weeksInSeries,
56
56
  withSelectedDay,
57
57
  withSelectedTime
58
- } from "./chunk-SUAJAOHM.js";
58
+ } from "./chunk-VS7ACUTQ.js";
59
59
  export {
60
60
  CalendarGrainButton,
61
61
  ContentFlag,
package/dist/styles.css CHANGED
@@ -16,6 +16,7 @@
16
16
  --scopetickets-island-space-12: 48px;
17
17
  --scopetickets-island-space-13: 52px;
18
18
  --scopetickets-island-space-18: 72px;
19
+ --scopetickets-island-space-20: 80px;
19
20
  --scopetickets-island-space-25: 100px;
20
21
  --scopetickets-island-radius-round: 999px;
21
22
  --scopetickets-island-radius: var(--scopetickets-island-space-12);
@@ -114,7 +115,7 @@
114
115
  --scopetickets-icon-metal-fill: var(--scopetickets-island-white-base-60);
115
116
  --scopetickets-icon-metal-gradient-max: var(--scopetickets-island-white-near-100);
116
117
  --scopetickets-icon-metal-gradient-min: var(--scopetickets-island-white-near-20);
117
- --scopetickets-icon-spin-ms: 5000ms;
118
+ --scopetickets-icon-spin-ms: 10000ms;
118
119
  --scopetickets-island-surface: var( --scope-surface-bg-elevated, var(--scopetickets-island-black-base-60) );
119
120
  --scopetickets-island-surface-base: var( --scope-bg-overlay-fallback, var(--scopetickets-island-black-base-100) );
120
121
  --scopetickets-island-stroke: var( --scope-surface-stroke, var(--scopetickets-island-white-base-10) );
@@ -221,7 +222,7 @@
221
222
  --scopetickets-island-card-gutter: var(--scopetickets-island-space-6);
222
223
  --scopetickets-island-calendar-dim: 0.2;
223
224
  --scopetickets-island-calendar-outside-month: 0.4;
224
- --scopetickets-island-surface-blur: var(--scopetickets-island-space-10);
225
+ --scopetickets-island-surface-blur: var(--scopetickets-island-space-20);
225
226
  --scopetickets-island-button-blur: var(--scopetickets-island-space-2);
226
227
  --scopetickets-island-font-body: var( --scope-font-family, "Basier Square", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif );
227
228
  --scopetickets-island-font-heading: var( --scope-font-family-heading, "Basier Circle", var(--scopetickets-island-font-body) );
@@ -380,6 +381,7 @@
380
381
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-follow__row,
381
382
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-rating__star,
382
383
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-switch,
384
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-booking__wallet-badge,
383
385
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-photos__photo {
384
386
  transition: var(--scopetickets-island-pop-release);
385
387
  }
@@ -393,6 +395,7 @@
393
395
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-inventories__row[data-pressed],
394
396
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-rating__star[data-pressed],
395
397
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-switch[data-pressed],
398
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-booking__wallet-badge[data-pressed],
396
399
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-photos__cell[data-pressed] .scopetickets-island-photos__photo {
397
400
  transform: scale(var(--scopetickets-island-pop-scale));
398
401
  transition: var(--scopetickets-island-pop-press);
@@ -1600,17 +1603,19 @@
1600
1603
  align-items: stretch;
1601
1604
  gap: var(--scopetickets-island-space-4);
1602
1605
  padding: var(--scopetickets-island-space-4);
1606
+ border: var(--scopetickets-island-space-0-25) solid var(--scopetickets-island-input-stroke);
1603
1607
  border-radius: var(--scopetickets-island-space-4);
1604
1608
  background: var(--scopetickets-island-input-bg);
1605
1609
  cursor: pointer;
1606
1610
  -webkit-tap-highlight-color: transparent;
1607
- transition: background var(--scopetickets-island-press-ms) var(--scopetickets-island-ease);
1611
+ transition: background var(--scopetickets-island-press-ms) var(--scopetickets-island-ease), border-color var(--scopetickets-island-press-ms) var(--scopetickets-island-ease);
1608
1612
  }
1609
1613
  [data-scopetickets-island] .scopetickets-island-card__agreement[data-disabled] {
1610
1614
  cursor: default;
1611
1615
  }
1612
1616
  [data-scopetickets-island] .scopetickets-island-card__agreement[data-checked] {
1613
1617
  background: var(--scopetickets-island-agreement-checked);
1618
+ border-color: var(--scopetickets-island-input-stroke-focus);
1614
1619
  }
1615
1620
  [data-scopetickets-island] .scopetickets-island-card__agreement-label {
1616
1621
  color: var(--scopetickets-island-text-80);
@@ -1630,7 +1635,7 @@
1630
1635
  height: var(--scopetickets-island-space-8);
1631
1636
  margin: 0;
1632
1637
  padding: 0;
1633
- border: var(--scopetickets-island-space-0-25) solid var(--scopetickets-island-stroke);
1638
+ border: var(--scopetickets-island-space-0-25) solid var(--scopetickets-island-input-stroke);
1634
1639
  border-radius: var(--scopetickets-island-radius-round);
1635
1640
  background: transparent;
1636
1641
  color: var(--scopetickets-island-white-near-100);
@@ -1941,6 +1946,8 @@
1941
1946
  background: color-mix(in srgb, var(--scopetickets-island-button-fill, transparent) calc(var(--scopetickets-island-disabled-opacity) * 100%), transparent);
1942
1947
  color: color-mix(in srgb, currentColor calc(var(--scopetickets-island-disabled-opacity) * 100%), transparent);
1943
1948
  border-color: color-mix(in srgb, var(--scopetickets-island-button-stroke) calc(var(--scopetickets-island-disabled-opacity) * 100%), transparent);
1949
+ -webkit-backdrop-filter: none;
1950
+ backdrop-filter: none;
1944
1951
  }
1945
1952
  [data-scopetickets-island] .scopetickets-island-button:disabled .scopetickets-island-button__mark,
1946
1953
  [data-scopetickets-island] .scopetickets-island-button--disabled .scopetickets-island-button__mark,
@@ -2534,7 +2541,7 @@
2534
2541
  }
2535
2542
  [data-scopetickets-glyph-spin],
2536
2543
  [data-scopetickets-island] .scopetickets-island-status-turning {
2537
- animation: scopetickets-icon-spin var(--scopetickets-icon-spin-ms, 5000ms) linear infinite;
2544
+ animation: scopetickets-icon-spin var(--scopetickets-icon-spin-ms, 10000ms) linear infinite;
2538
2545
  }
2539
2546
  [data-scopetickets-island][data-transitioning] [data-scopetickets-glyph-spin],
2540
2547
  [data-scopetickets-island][data-transitioning] .scopetickets-island-status-turning,
@@ -2725,6 +2732,18 @@
2725
2732
  justify-content: center;
2726
2733
  width: 100%;
2727
2734
  }
2735
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-booking__wallet-badge {
2736
+ display: block;
2737
+ }
2738
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-booking__wallet-badge img {
2739
+ display: block;
2740
+ width: auto;
2741
+ height: var(--scopetickets-island-button-height);
2742
+ }
2743
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-booking__wallet-badge:focus-visible {
2744
+ outline: var(--scopetickets-island-focus-width) solid currentColor;
2745
+ outline-offset: var(--scopetickets-island-focus-offset);
2746
+ }
2728
2747
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-booking__form {
2729
2748
  display: flex;
2730
2749
  flex-direction: column;
@@ -2939,6 +2958,7 @@
2939
2958
  flex: none;
2940
2959
  align-items: center;
2941
2960
  justify-content: center;
2961
+ position: relative;
2942
2962
  width: var(--scopetickets-island-space-4);
2943
2963
  height: var(--scopetickets-island-space-4);
2944
2964
  padding: 0;
@@ -2948,6 +2968,15 @@
2948
2968
  cursor: pointer;
2949
2969
  transition: var(--scopetickets-island-pop-release);
2950
2970
  }
2971
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-codes__arrow::before {
2972
+ content: "";
2973
+ position: absolute;
2974
+ top: 50%;
2975
+ left: 50%;
2976
+ width: var(--scopetickets-island-touch-target);
2977
+ height: var(--scopetickets-island-touch-target);
2978
+ transform: translate(-50%, -50%);
2979
+ }
2951
2980
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-codes__arrow[data-disabled] {
2952
2981
  opacity: var(--scopetickets-island-disabled-opacity);
2953
2982
  cursor: default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scopetickets/checkout",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "ScopeTicketsCheckout — the embeddable checkout widget: the island, its motion, and the steps it mounts.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@scopetickets/avatar": "^0.2.1",
57
- "@scopetickets/icons": "^0.1.0"
57
+ "@scopetickets/icons": "^0.2.1"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@microsoft/api-extractor": "^7.59.1",