@foldkit/ui 0.148.2 → 0.149.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.
Files changed (129) hide show
  1. package/dist/animation/index.d.ts +3 -3
  2. package/dist/animation/index.d.ts.map +1 -1
  3. package/dist/animation/index.js +2 -2
  4. package/dist/animation/public.d.ts +1 -1
  5. package/dist/animation/public.d.ts.map +1 -1
  6. package/dist/animation/public.js +1 -1
  7. package/dist/animation/schema.d.ts +12 -21
  8. package/dist/animation/schema.d.ts.map +1 -1
  9. package/dist/animation/schema.js +11 -15
  10. package/dist/animation/update.d.ts +1 -1
  11. package/dist/animation/update.d.ts.map +1 -1
  12. package/dist/animation/update.js +9 -9
  13. package/dist/calendar/index.d.ts +50 -105
  14. package/dist/calendar/index.d.ts.map +1 -1
  15. package/dist/calendar/index.js +61 -98
  16. package/dist/calendar/public.d.ts +1 -1
  17. package/dist/calendar/public.d.ts.map +1 -1
  18. package/dist/calendar/public.js +1 -1
  19. package/dist/combobox/multi.d.ts +9 -9
  20. package/dist/combobox/multi.d.ts.map +1 -1
  21. package/dist/combobox/multi.js +9 -9
  22. package/dist/combobox/public.d.ts +1 -1
  23. package/dist/combobox/public.d.ts.map +1 -1
  24. package/dist/combobox/public.js +1 -1
  25. package/dist/combobox/shared.d.ts +93 -137
  26. package/dist/combobox/shared.d.ts.map +1 -1
  27. package/dist/combobox/shared.js +108 -153
  28. package/dist/combobox/single.d.ts +9 -9
  29. package/dist/combobox/single.d.ts.map +1 -1
  30. package/dist/combobox/single.js +10 -10
  31. package/dist/datePicker/index.d.ts +88 -84
  32. package/dist/datePicker/index.d.ts.map +1 -1
  33. package/dist/datePicker/index.js +33 -63
  34. package/dist/datePicker/public.d.ts +1 -1
  35. package/dist/datePicker/public.d.ts.map +1 -1
  36. package/dist/datePicker/public.js +1 -1
  37. package/dist/dialog/index.d.ts +28 -49
  38. package/dist/dialog/index.d.ts.map +1 -1
  39. package/dist/dialog/index.js +39 -67
  40. package/dist/dialog/public.d.ts +1 -1
  41. package/dist/dialog/public.d.ts.map +1 -1
  42. package/dist/dialog/public.js +1 -1
  43. package/dist/dragAndDrop/index.d.ts +45 -72
  44. package/dist/dragAndDrop/index.d.ts.map +1 -1
  45. package/dist/dragAndDrop/index.js +72 -93
  46. package/dist/dragAndDrop/public.d.ts +1 -1
  47. package/dist/dragAndDrop/public.d.ts.map +1 -1
  48. package/dist/dragAndDrop/public.js +1 -1
  49. package/dist/fileDrop/index.d.ts +14 -35
  50. package/dist/fileDrop/index.d.ts.map +1 -1
  51. package/dist/fileDrop/index.js +20 -46
  52. package/dist/fileDrop/public.d.ts +1 -1
  53. package/dist/fileDrop/public.d.ts.map +1 -1
  54. package/dist/fileDrop/public.js +1 -1
  55. package/dist/listbox/multi.d.ts +7 -7
  56. package/dist/listbox/multi.d.ts.map +1 -1
  57. package/dist/listbox/multi.js +8 -8
  58. package/dist/listbox/public.d.ts +1 -1
  59. package/dist/listbox/public.d.ts.map +1 -1
  60. package/dist/listbox/public.js +1 -1
  61. package/dist/listbox/shared.d.ts +80 -127
  62. package/dist/listbox/shared.d.ts.map +1 -1
  63. package/dist/listbox/shared.js +92 -149
  64. package/dist/listbox/single.d.ts +7 -7
  65. package/dist/listbox/single.d.ts.map +1 -1
  66. package/dist/listbox/single.js +8 -8
  67. package/dist/menu/index.d.ts +86 -134
  68. package/dist/menu/index.d.ts.map +1 -1
  69. package/dist/menu/index.js +141 -189
  70. package/dist/menu/public.d.ts +1 -1
  71. package/dist/menu/public.d.ts.map +1 -1
  72. package/dist/menu/public.js +1 -1
  73. package/dist/popover/index.d.ts +39 -65
  74. package/dist/popover/index.d.ts.map +1 -1
  75. package/dist/popover/index.js +68 -98
  76. package/dist/popover/public.d.ts +1 -1
  77. package/dist/popover/public.d.ts.map +1 -1
  78. package/dist/popover/public.js +1 -1
  79. package/dist/radioGroup/index.d.ts +18 -29
  80. package/dist/radioGroup/index.d.ts.map +1 -1
  81. package/dist/radioGroup/index.js +22 -27
  82. package/dist/radioGroup/public.d.ts +1 -1
  83. package/dist/radioGroup/public.d.ts.map +1 -1
  84. package/dist/radioGroup/public.js +1 -1
  85. package/dist/slider/index.d.ts +29 -51
  86. package/dist/slider/index.d.ts.map +1 -1
  87. package/dist/slider/index.js +36 -56
  88. package/dist/slider/public.d.ts +1 -1
  89. package/dist/slider/public.d.ts.map +1 -1
  90. package/dist/slider/public.js +1 -1
  91. package/dist/tabs/index.d.ts +18 -28
  92. package/dist/tabs/index.d.ts.map +1 -1
  93. package/dist/tabs/index.js +22 -26
  94. package/dist/tabs/public.d.ts +1 -1
  95. package/dist/tabs/public.d.ts.map +1 -1
  96. package/dist/tabs/public.js +1 -1
  97. package/dist/test/apps/disabledButton.d.ts +71 -14
  98. package/dist/test/apps/disabledButton.d.ts.map +1 -1
  99. package/dist/test/apps/disabledButton.js +14 -13
  100. package/dist/toast/index.d.ts +124 -109
  101. package/dist/toast/index.d.ts.map +1 -1
  102. package/dist/toast/index.js +5 -5
  103. package/dist/toast/public.d.ts +1 -1
  104. package/dist/toast/public.d.ts.map +1 -1
  105. package/dist/toast/public.js +1 -1
  106. package/dist/toast/schema.d.ts +72 -84
  107. package/dist/toast/schema.d.ts.map +1 -1
  108. package/dist/toast/schema.js +31 -41
  109. package/dist/toast/test.d.ts.map +1 -1
  110. package/dist/toast/test.js +6 -3
  111. package/dist/toast/update.d.ts +104 -89
  112. package/dist/toast/update.d.ts.map +1 -1
  113. package/dist/toast/update.js +19 -20
  114. package/dist/tooltip/message.d.ts +26 -47
  115. package/dist/tooltip/message.d.ts.map +1 -1
  116. package/dist/tooltip/message.js +15 -40
  117. package/dist/tooltip/public.d.ts +1 -1
  118. package/dist/tooltip/public.d.ts.map +1 -1
  119. package/dist/tooltip/public.js +1 -1
  120. package/dist/tooltip/tooltip.d.ts +1 -1
  121. package/dist/tooltip/tooltip.d.ts.map +1 -1
  122. package/dist/tooltip/tooltip.js +15 -16
  123. package/dist/virtualList/index.d.ts +46 -23
  124. package/dist/virtualList/index.d.ts.map +1 -1
  125. package/dist/virtualList/index.js +12 -23
  126. package/dist/virtualList/public.d.ts +1 -1
  127. package/dist/virtualList/public.d.ts.map +1 -1
  128. package/dist/virtualList/public.js +1 -1
  129. package/package.json +3 -3
@@ -51,97 +51,85 @@ export declare const makeModel: <A, I>(payloadSchema: S.Codec<A, I>) => S.Struct
51
51
  }>>;
52
52
  readonly nextEntryKey: S.Number;
53
53
  }>;
54
- /** Sent when an entry should begin dismissing. Starts the leave animation;
55
- * the entry is removed from the stack when `TransitionedOut` fires. */
56
- export declare const Dismissed: import("foldkit/schema").CallableTaggedStruct<"Dismissed", {
57
- entryId: S.String;
58
- }>;
59
- /** Sent when every currently-visible entry should begin dismissing. */
60
- export declare const DismissedAll: import("foldkit/schema").CallableTaggedStruct<"DismissedAll", {}>;
61
- /** Sent when an entry's auto-dismiss timer fires. Carries a version echoed
62
- * from the scheduling moment so stale timers (from hover or manual dismiss)
63
- * are discarded. */
64
- export declare const CompletedWaitBeforeDismissal: import("foldkit/schema").CallableTaggedStruct<"CompletedWaitBeforeDismissal", {
65
- entryId: S.String;
66
- version: S.Number;
67
- }>;
68
- /** Sent when the pointer enters an entry. Pauses the auto-dismiss timer by
69
- * advancing the entry's version. */
70
- export declare const HoveredEntry: import("foldkit/schema").CallableTaggedStruct<"HoveredEntry", {
71
- entryId: S.String;
72
- }>;
73
- /** Sent when the pointer leaves an entry. Restarts the auto-dismiss timer
74
- * with the entry's full duration. */
75
- export declare const LeftEntry: import("foldkit/schema").CallableTaggedStruct<"LeftEntry", {
76
- entryId: S.String;
77
- }>;
78
- /** Wraps a single entry's Animation submodel message for delegation. */
79
- export declare const GotAnimationMessage: import("foldkit/schema").CallableTaggedStruct<"GotAnimationMessage", {
80
- entryId: S.String;
81
- message: S.Union<[import("foldkit/schema").CallableTaggedStruct<"Showed", {}>, import("foldkit/schema").CallableTaggedStruct<"Hid", {}>, import("foldkit/schema").CallableTaggedStruct<"CompletedWaitForPaint", {}>, import("foldkit/schema").CallableTaggedStruct<"EndedAnimation", {}>]>;
82
- }>;
83
- export type Dismissed = typeof Dismissed.Type;
84
- export type DismissedAll = typeof DismissedAll.Type;
85
- export type CompletedWaitBeforeDismissal = typeof CompletedWaitBeforeDismissal.Type;
86
- export type HoveredEntry = typeof HoveredEntry.Type;
87
- export type LeftEntry = typeof LeftEntry.Type;
88
- export type GotAnimationMessage = typeof GotAnimationMessage.Type;
89
- /** Factory for the `Added` message, which carries a fully-constructed entry
90
- * whose shape depends on the user-provided payload. */
91
- export declare const makeAdded: <A, I>(payloadSchema: S.Codec<A, I>) => import("foldkit/schema").CallableTaggedStruct<"Added", {
92
- entry: S.Struct<{
93
- readonly id: S.String;
94
- readonly variant: S.Literals<readonly ["Info", "Success", "Warning", "Error"]>;
95
- readonly animation: S.Struct<{
96
- readonly id: S.String;
97
- readonly isShowing: S.Boolean;
98
- readonly transitionState: S.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
54
+ /** Payload-independent Message variants shared by every bound Toast module. */
55
+ export declare const Message: import("foldkit/message").MessageUnion<{
56
+ readonly Dismissed: {
57
+ readonly entryId: S.String;
58
+ };
59
+ readonly DismissedAll: {};
60
+ readonly CompletedWaitBeforeDismissal: {
61
+ readonly entryId: S.String;
62
+ readonly version: S.Number;
63
+ };
64
+ readonly HoveredEntry: {
65
+ readonly entryId: S.String;
66
+ };
67
+ readonly LeftEntry: {
68
+ readonly entryId: S.String;
69
+ };
70
+ readonly GotAnimationMessage: {
71
+ readonly entryId: S.String;
72
+ readonly message: import("foldkit/message").MessageUnion<{
73
+ readonly Showed: {};
74
+ readonly Hid: {};
75
+ readonly CompletedWaitForPaint: {};
76
+ readonly EndedAnimation: {};
99
77
  }>;
100
- readonly maybeDuration: S.Option<S.DurationFromMillis>;
101
- readonly pendingDismissVersion: S.Number;
102
- readonly isHovered: S.Boolean;
103
- readonly payload: S.Codec<A, I, never, never>;
104
- }>;
78
+ };
105
79
  }>;
80
+ export type Dismissed = typeof Message.Dismissed.Type;
81
+ export type DismissedAll = typeof Message.DismissedAll.Type;
82
+ export type CompletedWaitBeforeDismissal = typeof Message.CompletedWaitBeforeDismissal.Type;
83
+ export type HoveredEntry = typeof Message.HoveredEntry.Type;
84
+ export type LeftEntry = typeof Message.LeftEntry.Type;
85
+ export type GotAnimationMessage = typeof Message.GotAnimationMessage.Type;
106
86
  /** Factory for the union of all messages the toast component can produce. */
107
- export declare const makeMessage: <A, I>(payloadSchema: S.Codec<A, I>) => S.Union<readonly [import("foldkit/schema").CallableTaggedStruct<"Added", {
108
- entry: S.Struct<{
109
- readonly id: S.String;
110
- readonly variant: S.Literals<readonly ["Info", "Success", "Warning", "Error"]>;
111
- readonly animation: S.Struct<{
87
+ export declare const makeMessage: <A, I>(payloadSchema: S.Codec<A, I>) => import("foldkit/message").MessageUnion<{
88
+ readonly Added: {
89
+ readonly entry: S.Struct<{
112
90
  readonly id: S.String;
113
- readonly isShowing: S.Boolean;
114
- readonly transitionState: S.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
91
+ readonly variant: S.Literals<readonly ["Info", "Success", "Warning", "Error"]>;
92
+ readonly animation: S.Struct<{
93
+ readonly id: S.String;
94
+ readonly isShowing: S.Boolean;
95
+ readonly transitionState: S.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
96
+ }>;
97
+ readonly maybeDuration: S.Option<S.DurationFromMillis>;
98
+ readonly pendingDismissVersion: S.Number;
99
+ readonly isHovered: S.Boolean;
100
+ readonly payload: S.Codec<A, I, never, never>;
115
101
  }>;
116
- readonly maybeDuration: S.Option<S.DurationFromMillis>;
117
- readonly pendingDismissVersion: S.Number;
118
- readonly isHovered: S.Boolean;
119
- readonly payload: S.Codec<A, I, never, never>;
120
- }>;
121
- }>, import("foldkit/schema").CallableTaggedStruct<"Dismissed", {
122
- entryId: S.String;
123
- }>, import("foldkit/schema").CallableTaggedStruct<"DismissedAll", {}>, import("foldkit/schema").CallableTaggedStruct<"CompletedWaitBeforeDismissal", {
124
- entryId: S.String;
125
- version: S.Number;
126
- }>, import("foldkit/schema").CallableTaggedStruct<"HoveredEntry", {
127
- entryId: S.String;
128
- }>, import("foldkit/schema").CallableTaggedStruct<"LeftEntry", {
129
- entryId: S.String;
130
- }>, import("foldkit/schema").CallableTaggedStruct<"GotAnimationMessage", {
131
- entryId: S.String;
132
- message: S.Union<[import("foldkit/schema").CallableTaggedStruct<"Showed", {}>, import("foldkit/schema").CallableTaggedStruct<"Hid", {}>, import("foldkit/schema").CallableTaggedStruct<"CompletedWaitForPaint", {}>, import("foldkit/schema").CallableTaggedStruct<"EndedAnimation", {}>]>;
133
- }>]>;
134
- /** Factory for `DismissedToast`, the OutMessage emitted once an entry has
135
- * finished dismissing (leave-animation `TransitionedOut`). Carries the
136
- * payload so consumers can lift the dismissal into a domain Message
137
- * without looking the entry up from a stale model. */
138
- export declare const makeDismissedToast: <A, I>(payloadSchema: S.Codec<A, I>) => import("foldkit/schema").CallableTaggedStruct<"DismissedToast", {
139
- payload: S.Codec<A, I, never, never>;
102
+ };
103
+ readonly Dismissed: {
104
+ readonly entryId: S.String;
105
+ };
106
+ readonly DismissedAll: {};
107
+ readonly CompletedWaitBeforeDismissal: {
108
+ readonly entryId: S.String;
109
+ readonly version: S.Number;
110
+ };
111
+ readonly HoveredEntry: {
112
+ readonly entryId: S.String;
113
+ };
114
+ readonly LeftEntry: {
115
+ readonly entryId: S.String;
116
+ };
117
+ readonly GotAnimationMessage: {
118
+ readonly entryId: S.String;
119
+ readonly message: import("foldkit/message").MessageUnion<{
120
+ readonly Showed: {};
121
+ readonly Hid: {};
122
+ readonly CompletedWaitForPaint: {};
123
+ readonly EndedAnimation: {};
124
+ }>;
125
+ };
140
126
  }>;
141
127
  /** Factory for the union of out-messages the toast component can produce. */
142
- export declare const makeOutMessage: <A, I>(payloadSchema: S.Codec<A, I>) => S.Union<readonly [import("foldkit/schema").CallableTaggedStruct<"DismissedToast", {
143
- payload: S.Codec<A, I, never, never>;
144
- }>]>;
128
+ export declare const makeOutMessage: <A, I>(payloadSchema: S.Codec<A, I>) => import("foldkit/message").MessageUnion<{
129
+ readonly DismissedToast: {
130
+ readonly payload: S.Codec<A, I, never, never>;
131
+ };
132
+ }>;
145
133
  /** Configuration for creating a toast container model. `defaultDuration` is
146
134
  * applied to any `show()` call that doesn't provide its own `duration` or
147
135
  * pass `sticky: true`. Accepts any Effect Duration input; a bare number is
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/toast/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAA;AAU9C;;;;kDAIkD;AAClD,eAAO,MAAM,OAAO,8DAAsD,CAAA;AAC1E,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,IAAI,CAAA;AAIzC,gFAAgF;AAChF,eAAO,MAAM,QAAQ,wGAOnB,CAAA;AACF,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,IAAI,CAAA;AAI3C;;;;;4BAK4B;AAC5B,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,CAAC,EAAE,eAAe,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;;;;;;;;;;;;EASxD,CAAA;AAIJ;;;;wCAIwC;AACxC,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,CAAC,EAAE,eAAe,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;;;;;;;;;;;;;;;;;EAMxD,CAAA;AAIJ;wEACwE;AACxE,eAAO,MAAM,SAAS;;EAAwC,CAAA;AAC9D,uEAAuE;AACvE,eAAO,MAAM,YAAY,mEAAoB,CAAA;AAC7C;;qBAEqB;AACrB,eAAO,MAAM,4BAA4B;;;EAGvC,CAAA;AACF;qCACqC;AACrC,eAA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MAAM,MAAM,mBAAmB,GAAG,OAAO,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAA;AAEzE,6EAA6E;AAC7E,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,CAAC,EAAE,eAAe,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe1D,CAAA;AAEJ,6EAA6E;AAC7E,eAAO,MAAM,cAAc,GAAI,CAAC,EAAE,CAAC,EAAE,eAAe,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;;;;EACG,CAAA;AAIpE;;;mCAGmC;AACnC,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,eAAe,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAA;CACjC,CAAC,CAAA;AAEF,eAAO,MAAM,gBAAgB,mBAAsB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { brandViewResult as __foldkitBrandViewResult } from 'foldkit/brand'
2
2
  import { Duration, Schema as S } from 'effect';
3
- import { m } from 'foldkit/message';
3
+ import { defineMessageUnion } from 'foldkit/message';
4
4
  import { Message as AnimationMessage, Model as AnimationModel, } from '../animation/schema.js';
5
5
  // VARIANT
6
6
  /** Semantic category of a toast. Drives the default ARIA role: `status` for
@@ -48,47 +48,37 @@ export const makeModel = (payloadSchema) => __foldkitBrandViewResult((S.Struct({
48
48
  nextEntryKey: S.Number,
49
49
  })), "@foldkit/ui/toast/schema.js#makeModel");
50
50
  // MESSAGE
51
- /** Sent when an entry should begin dismissing. Starts the leave animation;
52
- * the entry is removed from the stack when `TransitionedOut` fires. */
53
- export const Dismissed = m('Dismissed', { entryId: S.String });
54
- /** Sent when every currently-visible entry should begin dismissing. */
55
- export const DismissedAll = m('DismissedAll');
56
- /** Sent when an entry's auto-dismiss timer fires. Carries a version echoed
57
- * from the scheduling moment so stale timers (from hover or manual dismiss)
58
- * are discarded. */
59
- export const CompletedWaitBeforeDismissal = m('CompletedWaitBeforeDismissal', {
60
- entryId: S.String,
61
- version: S.Number,
51
+ /** Payload-independent Message variants shared by every bound Toast module. */
52
+ export const Message = defineMessageUnion({
53
+ Dismissed: { entryId: S.String },
54
+ DismissedAll: {},
55
+ CompletedWaitBeforeDismissal: {
56
+ entryId: S.String,
57
+ version: S.Number,
58
+ },
59
+ HoveredEntry: { entryId: S.String },
60
+ LeftEntry: { entryId: S.String },
61
+ GotAnimationMessage: {
62
+ entryId: S.String,
63
+ message: AnimationMessage,
64
+ },
62
65
  });
63
- /** Sent when the pointer enters an entry. Pauses the auto-dismiss timer by
64
- * advancing the entry's version. */
65
- export const HoveredEntry = m('HoveredEntry', { entryId: S.String });
66
- /** Sent when the pointer leaves an entry. Restarts the auto-dismiss timer
67
- * with the entry's full duration. */
68
- export const LeftEntry = m('LeftEntry', { entryId: S.String });
69
- /** Wraps a single entry's Animation submodel message for delegation. */
70
- export const GotAnimationMessage = m('GotAnimationMessage', {
71
- entryId: S.String,
72
- message: AnimationMessage,
73
- });
74
- /** Factory for the `Added` message, which carries a fully-constructed entry
75
- * whose shape depends on the user-provided payload. */
76
- export const makeAdded = (payloadSchema) => __foldkitBrandViewResult((m('Added', { entry: makeEntry(payloadSchema) })), "@foldkit/ui/toast/schema.js#makeAdded");
77
66
  /** Factory for the union of all messages the toast component can produce. */
78
- export const makeMessage = (payloadSchema) => __foldkitBrandViewResult((S.Union([
79
- makeAdded(payloadSchema),
80
- Dismissed,
81
- DismissedAll,
82
- CompletedWaitBeforeDismissal,
83
- HoveredEntry,
84
- LeftEntry,
85
- GotAnimationMessage,
86
- ])), "@foldkit/ui/toast/schema.js#makeMessage");
87
- /** Factory for `DismissedToast`, the OutMessage emitted once an entry has
88
- * finished dismissing (leave-animation `TransitionedOut`). Carries the
89
- * payload so consumers can lift the dismissal into a domain Message
90
- * without looking the entry up from a stale model. */
91
- export const makeDismissedToast = (payloadSchema) => __foldkitBrandViewResult((m('DismissedToast', { payload: payloadSchema })), "@foldkit/ui/toast/schema.js#makeDismissedToast");
67
+ export const makeMessage = (payloadSchema) => __foldkitBrandViewResult((defineMessageUnion({
68
+ Added: { entry: makeEntry(payloadSchema) },
69
+ Dismissed: { entryId: S.String },
70
+ DismissedAll: {},
71
+ CompletedWaitBeforeDismissal: {
72
+ entryId: S.String,
73
+ version: S.Number,
74
+ },
75
+ HoveredEntry: { entryId: S.String },
76
+ LeftEntry: { entryId: S.String },
77
+ GotAnimationMessage: {
78
+ entryId: S.String,
79
+ message: AnimationMessage,
80
+ },
81
+ })), "@foldkit/ui/toast/schema.js#makeMessage");
92
82
  /** Factory for the union of out-messages the toast component can produce. */
93
- export const makeOutMessage = (payloadSchema) => __foldkitBrandViewResult((S.Union([makeDismissedToast(payloadSchema)])), "@foldkit/ui/toast/schema.js#makeOutMessage");
83
+ export const makeOutMessage = (payloadSchema) => __foldkitBrandViewResult((defineMessageUnion({ DismissedToast: { payload: payloadSchema } })), "@foldkit/ui/toast/schema.js#makeOutMessage");
94
84
  export const DEFAULT_DURATION = Duration.seconds(4);
@@ -1 +1 @@
1
- {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/toast/test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,eAAe,CAAA;AAWtC;;;2BAG2B;AAC3B,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACrC,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAC,CAAA;AAIF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,UAAU,GAAI,uBAGxB,eAAe,iKAOf,CAAA"}
1
+ {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/toast/test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,eAAe,CAAA;AAUtC;;;2BAG2B;AAC3B,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACrC,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAC,CAAA;AAIF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,UAAU,GAAI,uBAGxB,eAAe,iKAUf,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { brandViewResult as __foldkitBrandViewResult } from 'foldkit/brand'
2
2
  import * as Story from 'foldkit/story';
3
- import { CompletedWaitForPaint, EndedAnimation, WaitForAnimationSettled, WaitForPaint, } from '../animation/index.js';
4
- import { CompletedWaitBeforeDismissal } from './schema.js';
3
+ import { Message as AnimationMessage, WaitForAnimationSettled, WaitForPaint, } from '../animation/index.js';
4
+ import { Message } from './schema.js';
5
5
  import { WaitBeforeDismissal } from './update.js';
6
6
  const DEFAULT_VERSION = 0;
7
7
  /** Builds a {@link Story.Command.resolveAll} step that drains a single toast
@@ -35,4 +35,7 @@ const DEFAULT_VERSION = 0;
35
35
  * )
36
36
  * ```
37
37
  */
38
- export const drainEntry = ({ entryId, version = DEFAULT_VERSION, }) => __foldkitBrandViewResult((Story.Command.resolveAll([WaitForPaint, CompletedWaitForPaint()], [WaitForAnimationSettled, EndedAnimation()], [WaitBeforeDismissal, CompletedWaitBeforeDismissal({ entryId, version })], [WaitForPaint, CompletedWaitForPaint()], [WaitForAnimationSettled, EndedAnimation()])), "@foldkit/ui/toast/test.js#drainEntry");
38
+ export const drainEntry = ({ entryId, version = DEFAULT_VERSION, }) => __foldkitBrandViewResult((Story.Command.resolveAll([WaitForPaint, AnimationMessage.CompletedWaitForPaint()], [WaitForAnimationSettled, AnimationMessage.EndedAnimation()], [
39
+ WaitBeforeDismissal,
40
+ Message.CompletedWaitBeforeDismissal({ entryId, version }),
41
+ ], [WaitForPaint, AnimationMessage.CompletedWaitForPaint()], [WaitForAnimationSettled, AnimationMessage.EndedAnimation()])), "@foldkit/ui/toast/test.js#drainEntry");
@@ -62,38 +62,53 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
62
62
  }>>;
63
63
  readonly nextEntryKey: S.Number;
64
64
  }>;
65
- readonly Message: S.Union<readonly [import("foldkit/schema").CallableTaggedStruct<"Added", {
66
- entry: S.Struct<{
67
- readonly id: S.String;
68
- readonly variant: S.Literals<readonly ["Info", "Success", "Warning", "Error"]>;
69
- readonly animation: S.Struct<{
65
+ readonly Message: import("foldkit/message").MessageUnion<{
66
+ readonly Added: {
67
+ readonly entry: S.Struct<{
70
68
  readonly id: S.String;
71
- readonly isShowing: S.Boolean;
72
- readonly transitionState: S.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
69
+ readonly variant: S.Literals<readonly ["Info", "Success", "Warning", "Error"]>;
70
+ readonly animation: S.Struct<{
71
+ readonly id: S.String;
72
+ readonly isShowing: S.Boolean;
73
+ readonly transitionState: S.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
74
+ }>;
75
+ readonly maybeDuration: S.Option<S.DurationFromMillis>;
76
+ readonly pendingDismissVersion: S.Number;
77
+ readonly isHovered: S.Boolean;
78
+ readonly payload: S.Codec<A, I, never, never>;
73
79
  }>;
74
- readonly maybeDuration: S.Option<S.DurationFromMillis>;
75
- readonly pendingDismissVersion: S.Number;
76
- readonly isHovered: S.Boolean;
80
+ };
81
+ readonly Dismissed: {
82
+ readonly entryId: S.String;
83
+ };
84
+ readonly DismissedAll: {};
85
+ readonly CompletedWaitBeforeDismissal: {
86
+ readonly entryId: S.String;
87
+ readonly version: S.Number;
88
+ };
89
+ readonly HoveredEntry: {
90
+ readonly entryId: S.String;
91
+ };
92
+ readonly LeftEntry: {
93
+ readonly entryId: S.String;
94
+ };
95
+ readonly GotAnimationMessage: {
96
+ readonly entryId: S.String;
97
+ readonly message: import("foldkit/message").MessageUnion<{
98
+ readonly Showed: {};
99
+ readonly Hid: {};
100
+ readonly CompletedWaitForPaint: {};
101
+ readonly EndedAnimation: {};
102
+ }>;
103
+ };
104
+ }>;
105
+ readonly OutMessage: import("foldkit/message").MessageUnion<{
106
+ readonly DismissedToast: {
77
107
  readonly payload: S.Codec<A, I, never, never>;
78
- }>;
79
- }>, import("foldkit/schema").CallableTaggedStruct<"Dismissed", {
80
- entryId: S.String;
81
- }>, import("foldkit/schema").CallableTaggedStruct<"DismissedAll", {}>, import("foldkit/schema").CallableTaggedStruct<"CompletedWaitBeforeDismissal", {
82
- entryId: S.String;
83
- version: S.Number;
84
- }>, import("foldkit/schema").CallableTaggedStruct<"HoveredEntry", {
85
- entryId: S.String;
86
- }>, import("foldkit/schema").CallableTaggedStruct<"LeftEntry", {
87
- entryId: S.String;
88
- }>, import("foldkit/schema").CallableTaggedStruct<"GotAnimationMessage", {
89
- entryId: S.String;
90
- message: S.Union<[import("foldkit/schema").CallableTaggedStruct<"Showed", {}>, import("foldkit/schema").CallableTaggedStruct<"Hid", {}>, import("foldkit/schema").CallableTaggedStruct<"CompletedWaitForPaint", {}>, import("foldkit/schema").CallableTaggedStruct<"EndedAnimation", {}>]>;
91
- }>]>;
92
- readonly OutMessage: S.Union<readonly [import("foldkit/schema").CallableTaggedStruct<"DismissedToast", {
93
- payload: S.Codec<A, I, never, never>;
94
- }>]>;
108
+ };
109
+ }>;
95
110
  readonly Added: import("foldkit/schema").CallableTaggedStruct<"Added", {
96
- entry: S.Struct<{
111
+ readonly entry: S.Struct<{
97
112
  readonly id: S.String;
98
113
  readonly variant: S.Literals<readonly ["Info", "Success", "Warning", "Error"]>;
99
114
  readonly animation: S.Struct<{
@@ -108,7 +123,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
108
123
  }>;
109
124
  }>;
110
125
  readonly DismissedToast: import("foldkit/schema").CallableTaggedStruct<"DismissedToast", {
111
- payload: S.Codec<A, I, never, never>;
126
+ readonly payload: S.Codec<A, I, never, never>;
112
127
  }>;
113
128
  readonly init: (config: InitConfig) => {
114
129
  readonly id: string;
@@ -146,6 +161,18 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
146
161
  }[];
147
162
  readonly nextEntryKey: number;
148
163
  }, message: {
164
+ readonly _tag: "GotAnimationMessage";
165
+ readonly entryId: string;
166
+ readonly message: {
167
+ readonly _tag: "Showed";
168
+ } | {
169
+ readonly _tag: "Hid";
170
+ } | {
171
+ readonly _tag: "CompletedWaitForPaint";
172
+ } | {
173
+ readonly _tag: "EndedAnimation";
174
+ };
175
+ } | {
149
176
  readonly _tag: "Dismissed";
150
177
  readonly entryId: string;
151
178
  } | {
@@ -160,18 +187,6 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
160
187
  } | {
161
188
  readonly _tag: "LeftEntry";
162
189
  readonly entryId: string;
163
- } | {
164
- readonly _tag: "GotAnimationMessage";
165
- readonly entryId: string;
166
- readonly message: {
167
- readonly _tag: "Showed";
168
- } | {
169
- readonly _tag: "Hid";
170
- } | {
171
- readonly _tag: "CompletedWaitForPaint";
172
- } | {
173
- readonly _tag: "EndedAnimation";
174
- };
175
190
  } | {
176
191
  readonly _tag: "Added";
177
192
  readonly entry: {
@@ -209,6 +224,18 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
209
224
  args?: Record<string, unknown>;
210
225
  key?: string;
211
226
  effect: Effect.Effect<{
227
+ readonly _tag: "GotAnimationMessage";
228
+ readonly entryId: string;
229
+ readonly message: {
230
+ readonly _tag: "Showed";
231
+ } | {
232
+ readonly _tag: "Hid";
233
+ } | {
234
+ readonly _tag: "CompletedWaitForPaint";
235
+ } | {
236
+ readonly _tag: "EndedAnimation";
237
+ };
238
+ } | {
212
239
  readonly _tag: "Dismissed";
213
240
  readonly entryId: string;
214
241
  } | {
@@ -223,18 +250,6 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
223
250
  } | {
224
251
  readonly _tag: "LeftEntry";
225
252
  readonly entryId: string;
226
- } | {
227
- readonly _tag: "GotAnimationMessage";
228
- readonly entryId: string;
229
- readonly message: {
230
- readonly _tag: "Showed";
231
- } | {
232
- readonly _tag: "Hid";
233
- } | {
234
- readonly _tag: "CompletedWaitForPaint";
235
- } | {
236
- readonly _tag: "EndedAnimation";
237
- };
238
253
  } | {
239
254
  readonly _tag: "Added";
240
255
  readonly entry: {
@@ -294,6 +309,18 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
294
309
  args?: Record<string, unknown>;
295
310
  key?: string;
296
311
  effect: Effect.Effect<{
312
+ readonly _tag: "GotAnimationMessage";
313
+ readonly entryId: string;
314
+ readonly message: {
315
+ readonly _tag: "Showed";
316
+ } | {
317
+ readonly _tag: "Hid";
318
+ } | {
319
+ readonly _tag: "CompletedWaitForPaint";
320
+ } | {
321
+ readonly _tag: "EndedAnimation";
322
+ };
323
+ } | {
297
324
  readonly _tag: "Dismissed";
298
325
  readonly entryId: string;
299
326
  } | {
@@ -308,18 +335,6 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
308
335
  } | {
309
336
  readonly _tag: "LeftEntry";
310
337
  readonly entryId: string;
311
- } | {
312
- readonly _tag: "GotAnimationMessage";
313
- readonly entryId: string;
314
- readonly message: {
315
- readonly _tag: "Showed";
316
- } | {
317
- readonly _tag: "Hid";
318
- } | {
319
- readonly _tag: "CompletedWaitForPaint";
320
- } | {
321
- readonly _tag: "EndedAnimation";
322
- };
323
338
  } | {
324
339
  readonly _tag: "Added";
325
340
  readonly entry: {
@@ -379,6 +394,18 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
379
394
  args?: Record<string, unknown>;
380
395
  key?: string;
381
396
  effect: Effect.Effect<{
397
+ readonly _tag: "GotAnimationMessage";
398
+ readonly entryId: string;
399
+ readonly message: {
400
+ readonly _tag: "Showed";
401
+ } | {
402
+ readonly _tag: "Hid";
403
+ } | {
404
+ readonly _tag: "CompletedWaitForPaint";
405
+ } | {
406
+ readonly _tag: "EndedAnimation";
407
+ };
408
+ } | {
382
409
  readonly _tag: "Dismissed";
383
410
  readonly entryId: string;
384
411
  } | {
@@ -393,18 +420,6 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
393
420
  } | {
394
421
  readonly _tag: "LeftEntry";
395
422
  readonly entryId: string;
396
- } | {
397
- readonly _tag: "GotAnimationMessage";
398
- readonly entryId: string;
399
- readonly message: {
400
- readonly _tag: "Showed";
401
- } | {
402
- readonly _tag: "Hid";
403
- } | {
404
- readonly _tag: "CompletedWaitForPaint";
405
- } | {
406
- readonly _tag: "EndedAnimation";
407
- };
408
423
  } | {
409
424
  readonly _tag: "Added";
410
425
  readonly entry: {
@@ -464,6 +479,18 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
464
479
  args?: Record<string, unknown>;
465
480
  key?: string;
466
481
  effect: Effect.Effect<{
482
+ readonly _tag: "GotAnimationMessage";
483
+ readonly entryId: string;
484
+ readonly message: {
485
+ readonly _tag: "Showed";
486
+ } | {
487
+ readonly _tag: "Hid";
488
+ } | {
489
+ readonly _tag: "CompletedWaitForPaint";
490
+ } | {
491
+ readonly _tag: "EndedAnimation";
492
+ };
493
+ } | {
467
494
  readonly _tag: "Dismissed";
468
495
  readonly entryId: string;
469
496
  } | {
@@ -478,18 +505,6 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
478
505
  } | {
479
506
  readonly _tag: "LeftEntry";
480
507
  readonly entryId: string;
481
- } | {
482
- readonly _tag: "GotAnimationMessage";
483
- readonly entryId: string;
484
- readonly message: {
485
- readonly _tag: "Showed";
486
- } | {
487
- readonly _tag: "Hid";
488
- } | {
489
- readonly _tag: "CompletedWaitForPaint";
490
- } | {
491
- readonly _tag: "EndedAnimation";
492
- };
493
508
  } | {
494
509
  readonly _tag: "Added";
495
510
  readonly entry: {
@@ -1 +1 @@
1
- {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../src/toast/update.ts"],"names":[],"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