@scopetickets/checkout 0.4.1 → 0.5.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.
@@ -270,11 +270,17 @@ export declare type DayAvailability = {
270
270
  };
271
271
 
272
272
  /** Select Day — the day picker's content. */
273
- export declare function DayPicker({ series, today, selectedDay, onSelectDay, remaining, accessory, onVisibleMonthChange, }: DayPickerProps): react_jsx_runtime.JSX.Element | null;
273
+ export declare function DayPicker({ series, offered, today, selectedDay, onSelectDay, remaining, accessory, onVisibleMonthChange, }: DayPickerProps): react_jsx_runtime.JSX.Element | null;
274
274
 
275
275
  export declare type DayPickerProps = {
276
276
  /** The run being picked from. Every month it touches is drawn. */
277
277
  readonly series: CalendarSeries;
278
+ /**
279
+ * THE DAYS STILL ON OFFER, where the inventory filter has hidden some — absent is all of
280
+ * `series`. The weeks stay the whole run's, so ticking a box greys days where they stand
281
+ * rather than moving the month the buyer is reading; see `offeredSeries`.
282
+ */
283
+ readonly offered?: CalendarSeries;
278
284
  /**
279
285
  * `YYYY-MM-DD` in the VENUE's local day, never the device's. Passed in rather than read
280
286
  * from a clock — see `MonthGridOptions`.
@@ -642,7 +648,7 @@ declare interface Ticket {
642
648
  export declare function timeOfDayInZone(now: Date, timeZone: string | null): string;
643
649
 
644
650
  /** Select Time — the timeslot picker's content. */
645
- export declare function TimePicker({ series, today, nowTime, selection, onSelectDay, slots, onSelectTime, remaining, accessory, onVisibleMonthChange, }: TimePickerProps): react_jsx_runtime.JSX.Element;
651
+ export declare function TimePicker({ series, today, nowTime, selection, onSelectDay, slots, onSelectTime, remaining, accessory, onVisibleMonthChange, grouping, }: TimePickerProps): react_jsx_runtime.JSX.Element;
646
652
 
647
653
  export declare type TimePickerProps = {
648
654
  /**
@@ -681,6 +687,8 @@ export declare type TimePickerProps = {
681
687
  * it: they all belong to one day.
682
688
  */
683
689
  readonly onVisibleMonthChange?: (month: CalendarMonthKey) => void;
690
+ /** How the day's slots are cut up — see `TimeslotGrouping`. Absent is the eight bands. */
691
+ readonly grouping?: TimeslotGrouping | undefined;
684
692
  };
685
693
 
686
694
  /**
@@ -730,6 +738,13 @@ export declare type Timeslot = {
730
738
  * on how the number was arrived at.
731
739
  */
732
740
  readonly fromPrice?: SlotPrice | null;
741
+ /**
742
+ * THE NAME OF THE PRODUCT THAT SELLS THIS SLOT — `Ticket.Name`, "Peak" or "Off-Peak" —
743
+ * where the slot was read off one. What `PRODUCT` grouping heads each group with. Absent
744
+ * is a slot a host built without saying, and it is grouped with the others that say
745
+ * nothing, under no heading.
746
+ */
747
+ readonly product?: string;
733
748
  };
734
749
 
735
750
  /** One slot, resolved: what it is, when it is, and what it can do. */
@@ -745,6 +760,11 @@ export declare type TimeslotCell = {
745
760
  };
746
761
 
747
762
  export declare type TimeslotGroup = {
763
+ /**
764
+ * Unique among a list's groups, and stable while its slots are — what a renderer keys
765
+ * the group by. The part of the day, the product, or `ALL` for the one ungrouped list.
766
+ */
767
+ readonly key: string;
748
768
  /** The part of the day these fall in, or null when the list was not cut by time. */
749
769
  readonly part: PartOfDay | null;
750
770
  /** The heading to draw above them, or null when there is none. */
@@ -761,8 +781,12 @@ export declare type TimeslotGroup = {
761
781
  * carries and this file does not know about. Slots hang off a TICKET, so "Peak" and
762
782
  * "Off-Peak" are a grouping the host has and cutting it again by time of day gives a
763
783
  * buyer two headings for one list.
784
+ *
785
+ * `PRODUCT` IS THAT GROUPING, DRAWN: one group per product the day's slots are sold by,
786
+ * headed by its name — see `Timeslot.product`. For a run whose products ARE the sessions'
787
+ * kind, which is what a buyer is choosing between, and the time of day is not.
764
788
  */
765
- export declare type TimeslotGrouping = 'PART_OF_DAY' | 'NONE';
789
+ export declare type TimeslotGrouping = 'PART_OF_DAY' | 'PRODUCT' | 'NONE';
766
790
 
767
791
  export declare type TimeslotOptions = {
768
792
  /**
@@ -812,11 +836,11 @@ export declare type TimeslotPickerProps = {
812
836
  */
813
837
  readonly accessory: DatePickerCellAccessory;
814
838
  /**
815
- * Defaults to the island's own eight bands. `NONE` draws one chronological list with no
816
- * heading — for a host whose list is already grouped by something this component cannot
817
- * see, which for a ticket's slots it always is. See `TimeslotGrouping`.
839
+ * Defaults to the island's own eight bands. `PRODUCT` heads each product's slots with its
840
+ * name. `NONE` draws one chronological list with no heading — for a host whose list is
841
+ * already grouped by something this component cannot see. See `TimeslotGrouping`.
818
842
  */
819
- readonly grouping?: TimeslotGrouping;
843
+ readonly grouping?: TimeslotGrouping | undefined;
820
844
  };
821
845
 
822
846
  /**
package/dist/pickers.d.ts CHANGED
@@ -270,11 +270,17 @@ export declare type DayAvailability = {
270
270
  };
271
271
 
272
272
  /** Select Day — the day picker's content. */
273
- export declare function DayPicker({ series, today, selectedDay, onSelectDay, remaining, accessory, onVisibleMonthChange, }: DayPickerProps): react_jsx_runtime.JSX.Element | null;
273
+ export declare function DayPicker({ series, offered, today, selectedDay, onSelectDay, remaining, accessory, onVisibleMonthChange, }: DayPickerProps): react_jsx_runtime.JSX.Element | null;
274
274
 
275
275
  export declare type DayPickerProps = {
276
276
  /** The run being picked from. Every month it touches is drawn. */
277
277
  readonly series: CalendarSeries;
278
+ /**
279
+ * THE DAYS STILL ON OFFER, where the inventory filter has hidden some — absent is all of
280
+ * `series`. The weeks stay the whole run's, so ticking a box greys days where they stand
281
+ * rather than moving the month the buyer is reading; see `offeredSeries`.
282
+ */
283
+ readonly offered?: CalendarSeries;
278
284
  /**
279
285
  * `YYYY-MM-DD` in the VENUE's local day, never the device's. Passed in rather than read
280
286
  * from a clock — see `MonthGridOptions`.
@@ -642,7 +648,7 @@ declare interface Ticket {
642
648
  export declare function timeOfDayInZone(now: Date, timeZone: string | null): string;
643
649
 
644
650
  /** Select Time — the timeslot picker's content. */
645
- export declare function TimePicker({ series, today, nowTime, selection, onSelectDay, slots, onSelectTime, remaining, accessory, onVisibleMonthChange, }: TimePickerProps): react_jsx_runtime.JSX.Element;
651
+ export declare function TimePicker({ series, today, nowTime, selection, onSelectDay, slots, onSelectTime, remaining, accessory, onVisibleMonthChange, grouping, }: TimePickerProps): react_jsx_runtime.JSX.Element;
646
652
 
647
653
  export declare type TimePickerProps = {
648
654
  /**
@@ -681,6 +687,8 @@ export declare type TimePickerProps = {
681
687
  * it: they all belong to one day.
682
688
  */
683
689
  readonly onVisibleMonthChange?: (month: CalendarMonthKey) => void;
690
+ /** How the day's slots are cut up — see `TimeslotGrouping`. Absent is the eight bands. */
691
+ readonly grouping?: TimeslotGrouping | undefined;
684
692
  };
685
693
 
686
694
  /**
@@ -730,6 +738,13 @@ export declare type Timeslot = {
730
738
  * on how the number was arrived at.
731
739
  */
732
740
  readonly fromPrice?: SlotPrice | null;
741
+ /**
742
+ * THE NAME OF THE PRODUCT THAT SELLS THIS SLOT — `Ticket.Name`, "Peak" or "Off-Peak" —
743
+ * where the slot was read off one. What `PRODUCT` grouping heads each group with. Absent
744
+ * is a slot a host built without saying, and it is grouped with the others that say
745
+ * nothing, under no heading.
746
+ */
747
+ readonly product?: string;
733
748
  };
734
749
 
735
750
  /** One slot, resolved: what it is, when it is, and what it can do. */
@@ -745,6 +760,11 @@ export declare type TimeslotCell = {
745
760
  };
746
761
 
747
762
  export declare type TimeslotGroup = {
763
+ /**
764
+ * Unique among a list's groups, and stable while its slots are — what a renderer keys
765
+ * the group by. The part of the day, the product, or `ALL` for the one ungrouped list.
766
+ */
767
+ readonly key: string;
748
768
  /** The part of the day these fall in, or null when the list was not cut by time. */
749
769
  readonly part: PartOfDay | null;
750
770
  /** The heading to draw above them, or null when there is none. */
@@ -761,8 +781,12 @@ export declare type TimeslotGroup = {
761
781
  * carries and this file does not know about. Slots hang off a TICKET, so "Peak" and
762
782
  * "Off-Peak" are a grouping the host has and cutting it again by time of day gives a
763
783
  * buyer two headings for one list.
784
+ *
785
+ * `PRODUCT` IS THAT GROUPING, DRAWN: one group per product the day's slots are sold by,
786
+ * headed by its name — see `Timeslot.product`. For a run whose products ARE the sessions'
787
+ * kind, which is what a buyer is choosing between, and the time of day is not.
764
788
  */
765
- export declare type TimeslotGrouping = 'PART_OF_DAY' | 'NONE';
789
+ export declare type TimeslotGrouping = 'PART_OF_DAY' | 'PRODUCT' | 'NONE';
766
790
 
767
791
  export declare type TimeslotOptions = {
768
792
  /**
@@ -812,11 +836,11 @@ export declare type TimeslotPickerProps = {
812
836
  */
813
837
  readonly accessory: DatePickerCellAccessory;
814
838
  /**
815
- * Defaults to the island's own eight bands. `NONE` draws one chronological list with no
816
- * heading — for a host whose list is already grouped by something this component cannot
817
- * see, which for a ticket's slots it always is. See `TimeslotGrouping`.
839
+ * Defaults to the island's own eight bands. `PRODUCT` heads each product's slots with its
840
+ * name. `NONE` draws one chronological list with no heading — for a host whose list is
841
+ * already grouped by something this component cannot see. See `TimeslotGrouping`.
818
842
  */
819
- readonly grouping?: TimeslotGrouping;
843
+ readonly grouping?: TimeslotGrouping | undefined;
820
844
  };
821
845
 
822
846
  /**
package/dist/pickers.js CHANGED
@@ -55,7 +55,7 @@ import {
55
55
  weeksInSeries,
56
56
  withSelectedDay,
57
57
  withSelectedTime
58
- } from "./chunk-WT7WSYIH.js";
58
+ } from "./chunk-SUAJAOHM.js";
59
59
  export {
60
60
  CalendarGrainButton,
61
61
  ContentFlag,
package/dist/styles.css CHANGED
@@ -96,6 +96,7 @@
96
96
  --scopetickets-island-action-blue-60: #3e5fff99;
97
97
  --scopetickets-island-action-blue-40: #3e5fff66;
98
98
  --scopetickets-island-action-blue-20: #3e5fff33;
99
+ --scopetickets-island-action-blue-10: #3e5fff1a;
99
100
  --scopetickets-island-green-light-100: #4ad968;
100
101
  --scopetickets-island-yellow-light-100: #fddf44;
101
102
  --scopetickets-island-yellow-light-90: #fddf44e5;
@@ -134,6 +135,8 @@
134
135
  --scopetickets-island-unanswered: 0.4;
135
136
  --scopetickets-island-choice-hover: var(--scopetickets-island-white-base-10);
136
137
  --scopetickets-island-choice-unselected: var(--scopetickets-island-black-base-20);
138
+ --scopetickets-island-choice-checked: var(--scopetickets-island-action-blue-10);
139
+ --scopetickets-island-agreement-checked: var(--scopetickets-island-action-blue-20);
137
140
  --scopetickets-island-input-text: var(--scopetickets-island-white-near-100);
138
141
  --scopetickets-island-input-text-secondary: var(--scopetickets-island-white-near-60);
139
142
  --scopetickets-island-input-text-secondary-focus: var(--scopetickets-island-white-near-80);
@@ -387,6 +390,7 @@
387
390
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-timeslot[data-pressed] .scopetickets-island-timeslot__pill,
388
391
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-pay__row[data-pressed],
389
392
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-follow__row[data-pressed],
393
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-inventories__row[data-pressed],
390
394
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-rating__star[data-pressed],
391
395
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-switch[data-pressed],
392
396
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-photos__cell[data-pressed] .scopetickets-island-photos__photo {
@@ -395,7 +399,8 @@
395
399
  }
396
400
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-day[data-pressed] .scopetickets-island-day__well,
397
401
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-timeslot[data-pressed] .scopetickets-island-timeslot__pill,
398
- :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-follow__row[data-pressed] {
402
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-follow__row[data-pressed],
403
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-inventories__row[data-pressed] {
399
404
  transition: var(--scopetickets-island-pop-press), var(--scopetickets-island-tint-legs);
400
405
  }
401
406
  :is([data-scopetickets-picker], [data-scopetickets-island]) [data-accessory=NONE] {
@@ -469,6 +474,9 @@
469
474
  white-space: nowrap;
470
475
  overflow: hidden;
471
476
  }
477
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-timeslots__label {
478
+ text-transform: uppercase;
479
+ }
472
480
  :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-calendar__weekday {
473
481
  flex: 1 1 0;
474
482
  min-width: 0;
@@ -1069,6 +1077,74 @@
1069
1077
  cursor: default;
1070
1078
  opacity: var(--scopetickets-island-disabled-opacity);
1071
1079
  }
1080
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-inventories {
1081
+ display: flex;
1082
+ flex-direction: column;
1083
+ gap: var(--scopetickets-island-space-1);
1084
+ width: 100%;
1085
+ padding-top: var(--scopetickets-island-space-6);
1086
+ }
1087
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-calendar:has(+ .scopetickets-island-inventories) {
1088
+ --scopetickets-island-calendar-bleed: 0px;
1089
+ }
1090
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-inventories__row {
1091
+ display: flex;
1092
+ gap: var(--scopetickets-island-space-3);
1093
+ align-items: center;
1094
+ width: 100%;
1095
+ padding: var(--scopetickets-island-space-3) var(--scopetickets-island-space-6) var(--scopetickets-island-space-3) var(--scopetickets-island-space-2);
1096
+ border: none;
1097
+ border-radius: var(--scopetickets-island-space-3);
1098
+ background: none;
1099
+ color: var(--scopetickets-island-text-subtle);
1100
+ font: inherit;
1101
+ font-size: var(--scopetickets-island-size-md);
1102
+ line-height: var(--scopetickets-island-leading-md);
1103
+ text-align: left;
1104
+ cursor: pointer;
1105
+ transition: var(--scopetickets-island-pop-release), var(--scopetickets-island-tint-legs);
1106
+ }
1107
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-inventories__row[data-selected] {
1108
+ background: var(--scopetickets-island-choice-checked);
1109
+ color: var(--scopetickets-island-text-80);
1110
+ }
1111
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-inventories__row[aria-disabled=true] {
1112
+ cursor: default;
1113
+ }
1114
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-inventories__row:focus-visible {
1115
+ outline: var(--scopetickets-island-focus-width) solid currentColor;
1116
+ outline-offset: var(--scopetickets-island-focus-offset);
1117
+ }
1118
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-inventories__label {
1119
+ flex: 1 1 auto;
1120
+ min-width: 0;
1121
+ white-space: nowrap;
1122
+ overflow: hidden;
1123
+ text-overflow: ellipsis;
1124
+ }
1125
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-check {
1126
+ display: flex;
1127
+ flex: none;
1128
+ align-items: center;
1129
+ justify-content: center;
1130
+ width: var(--scopetickets-island-space-4);
1131
+ height: var(--scopetickets-island-space-4);
1132
+ padding: var(--scopetickets-island-space-0-5);
1133
+ border: var(--scopetickets-island-space-0-25) solid var(--scopetickets-island-stroke);
1134
+ border-radius: var(--scopetickets-island-space-1);
1135
+ background: var(--scopetickets-island-choice-unselected);
1136
+ color: var(--scopetickets-island-action-text);
1137
+ transition: background var(--scopetickets-island-press-ms) var(--scopetickets-island-ease);
1138
+ }
1139
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-check[data-selected] {
1140
+ background: var(--scopetickets-island-action-bg);
1141
+ }
1142
+ :is([data-scopetickets-picker], [data-scopetickets-island]) .scopetickets-island-check__mark {
1143
+ display: flex;
1144
+ width: var(--scopetickets-island-space-2);
1145
+ height: var(--scopetickets-island-space-2);
1146
+ filter: drop-shadow(0 var(--scopetickets-island-space-0-5) var(--scopetickets-island-space-0-5) var(--scopetickets-island-black-near-20));
1147
+ }
1072
1148
 
1073
1149
  /* src/island/island.css */
1074
1150
  [data-scopetickets-island] {
@@ -1401,7 +1477,11 @@
1401
1477
  display: flex;
1402
1478
  flex-direction: column;
1403
1479
  width: 100%;
1404
- max-height: calc(var(--scopetickets-island-ceiling) - var(--scopetickets-island-padding-block) * 2 - var(--scopetickets-island-space-0-25) * 2);
1480
+ --scopetickets-island-card-room: calc( var(--scopetickets-island-ceiling) - var(--scopetickets-island-padding-block) * 2 - var(--scopetickets-island-space-0-25) * 2 );
1481
+ max-height: var(--scopetickets-island-card-room);
1482
+ }
1483
+ [data-scopetickets-island] .scopetickets-island-card[data-typed] {
1484
+ min-height: var(--scopetickets-island-card-room);
1405
1485
  }
1406
1486
  [data-scopetickets-island] .scopetickets-island-card__content {
1407
1487
  display: flex;
@@ -1516,17 +1596,92 @@
1516
1596
  }
1517
1597
  [data-scopetickets-island] .scopetickets-island-card__agreement {
1518
1598
  display: flex;
1519
- align-items: center;
1520
- justify-content: space-between;
1521
- gap: var(--scopetickets-island-field-inset);
1522
- min-height: var(--scopetickets-island-field-height);
1523
- padding-inline: var(--scopetickets-island-field-inset);
1599
+ flex-direction: column;
1600
+ align-items: stretch;
1601
+ gap: var(--scopetickets-island-space-4);
1602
+ padding: var(--scopetickets-island-space-4);
1603
+ border-radius: var(--scopetickets-island-space-4);
1604
+ background: var(--scopetickets-island-input-bg);
1605
+ cursor: pointer;
1606
+ -webkit-tap-highlight-color: transparent;
1607
+ transition: background var(--scopetickets-island-press-ms) var(--scopetickets-island-ease);
1608
+ }
1609
+ [data-scopetickets-island] .scopetickets-island-card__agreement[data-disabled] {
1610
+ cursor: default;
1611
+ }
1612
+ [data-scopetickets-island] .scopetickets-island-card__agreement[data-checked] {
1613
+ background: var(--scopetickets-island-agreement-checked);
1524
1614
  }
1525
1615
  [data-scopetickets-island] .scopetickets-island-card__agreement-label {
1616
+ color: var(--scopetickets-island-text-80);
1617
+ font-size: var(--scopetickets-island-size-md);
1618
+ line-height: var(--scopetickets-island-leading-md);
1619
+ }
1620
+ [data-scopetickets-island] .scopetickets-island-card__agreement-rule {
1621
+ height: var(--scopetickets-island-space-0-25);
1622
+ background: var(--scopetickets-island-construction-line);
1623
+ }
1624
+ [data-scopetickets-island] .scopetickets-island-card__agreement-mark {
1625
+ display: flex;
1626
+ align-self: center;
1627
+ align-items: center;
1628
+ justify-content: center;
1629
+ width: var(--scopetickets-island-space-8);
1630
+ height: var(--scopetickets-island-space-8);
1631
+ margin: 0;
1632
+ padding: 0;
1633
+ border: var(--scopetickets-island-space-0-25) solid var(--scopetickets-island-stroke);
1634
+ border-radius: var(--scopetickets-island-radius-round);
1635
+ background: transparent;
1636
+ color: var(--scopetickets-island-white-near-100);
1637
+ cursor: inherit;
1638
+ transition: background var(--scopetickets-island-press-ms) var(--scopetickets-island-ease);
1639
+ }
1640
+ [data-scopetickets-island] .scopetickets-island-card__agreement-mark[aria-checked=true] {
1641
+ background: var(--scopetickets-island-action-bg);
1642
+ }
1643
+ [data-scopetickets-island] .scopetickets-island-card__agreement-mark:disabled {
1644
+ opacity: var(--scopetickets-island-disabled-opacity);
1645
+ }
1646
+ [data-scopetickets-island] .scopetickets-island-card__agreement-mark:focus-visible {
1647
+ outline: var(--scopetickets-island-focus-width) solid currentColor;
1648
+ outline-offset: var(--scopetickets-island-focus-offset);
1649
+ }
1650
+ [data-scopetickets-island] .scopetickets-island-card__agreement-tick {
1651
+ display: flex;
1652
+ width: var(--scopetickets-island-space-4);
1653
+ height: var(--scopetickets-island-space-4);
1654
+ }
1655
+ [data-scopetickets-island] .scopetickets-island-card__question {
1656
+ padding-inline: var(--scopetickets-island-field-inset);
1526
1657
  color: var(--scopetickets-island-input-text-secondary);
1527
1658
  font-size: var(--scopetickets-island-size-md);
1528
1659
  line-height: var(--scopetickets-island-leading-md);
1529
1660
  }
1661
+ [data-scopetickets-island] .scopetickets-island-prose {
1662
+ display: flex;
1663
+ flex-direction: column;
1664
+ gap: var(--scopetickets-island-space-2);
1665
+ min-width: 0;
1666
+ white-space: pre-line;
1667
+ overflow-wrap: anywhere;
1668
+ }
1669
+ [data-scopetickets-island] .scopetickets-island-prose__list {
1670
+ display: flex;
1671
+ flex-direction: column;
1672
+ gap: var(--scopetickets-island-space-1);
1673
+ margin: 0;
1674
+ padding-inline-start: var(--scopetickets-island-space-5);
1675
+ }
1676
+ [data-scopetickets-island] .scopetickets-island-prose a {
1677
+ color: inherit;
1678
+ text-decoration: underline;
1679
+ text-underline-offset: var(--scopetickets-island-space-0-5);
1680
+ }
1681
+ [data-scopetickets-island] .scopetickets-island-prose a:focus-visible {
1682
+ outline: var(--scopetickets-island-focus-width) solid currentColor;
1683
+ outline-offset: var(--scopetickets-island-focus-offset);
1684
+ }
1530
1685
  [data-scopetickets-island] .scopetickets-island-card__buttons {
1531
1686
  position: absolute;
1532
1687
  inset-inline: 0;
@@ -1774,6 +1929,12 @@
1774
1929
  height: var(--scopetickets-island-space-4);
1775
1930
  line-height: 1;
1776
1931
  }
1932
+ [data-scopetickets-island] .scopetickets-island-button__mark--alone {
1933
+ display: flex;
1934
+ flex: none;
1935
+ align-items: center;
1936
+ justify-content: center;
1937
+ }
1777
1938
  [data-scopetickets-island] .scopetickets-island-button:disabled,
1778
1939
  [data-scopetickets-island] .scopetickets-island-button--disabled,
1779
1940
  [data-scopetickets-island] button.scopetickets-island-chrome-pill:disabled {
@@ -2471,6 +2632,30 @@
2471
2632
  background: transparent;
2472
2633
  color-scheme: normal;
2473
2634
  }
2635
+ [data-scopetickets-island] .scopetickets-island-passkey-window {
2636
+ display: flex;
2637
+ align-items: center;
2638
+ justify-content: center;
2639
+ box-sizing: border-box;
2640
+ width: 100%;
2641
+ min-height: var(--scope-passkey-min-height, var(--scopetickets-island-button-height, 48px));
2642
+ padding: var(--scope-passkey-padding, 0 20px);
2643
+ border: var(--scope-passkey-border, none);
2644
+ border-radius: var(--scope-passkey-radius, var(--scopetickets-island-radius-round, 12px));
2645
+ background: var(--scope-passkey-background, var(--scopetickets-island-primary-bg, #1c1c1e));
2646
+ color: var(--scope-passkey-color, var(--scopetickets-island-primary-text, #ffffff));
2647
+ font-family: var(--scope-passkey-font-family, inherit);
2648
+ font-size: var(--scope-passkey-font-size, inherit);
2649
+ font-weight: var(--scope-passkey-font-weight, 600);
2650
+ line-height: var(--scope-passkey-line-height, 1.2);
2651
+ cursor: pointer;
2652
+ }
2653
+ [data-scopetickets-island] .scopetickets-island-passkey-note {
2654
+ margin: 8px 0 0;
2655
+ font-size: var(--scopetickets-island-size-sm, 12px);
2656
+ line-height: 1.5;
2657
+ opacity: 0.7;
2658
+ }
2474
2659
  [data-scopetickets-island] .scopetickets-island-passkey-slot {
2475
2660
  display: block;
2476
2661
  width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scopetickets/checkout",
3
- "version": "0.4.1",
3
+ "version": "0.5.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",
@@ -21,6 +21,11 @@
21
21
  "import": "./dist/pickers.js",
22
22
  "require": "./dist/pickers.cjs"
23
23
  },
24
+ "./analytics": {
25
+ "types": "./dist/analytics.d.ts",
26
+ "import": "./dist/analytics.js",
27
+ "require": "./dist/analytics.cjs"
28
+ },
24
29
  "./styles.css": "./dist/styles.css",
25
30
  "./pickers.css": "./dist/pickers.css"
26
31
  },