@veevarts/design-system 2.0.0-beta.7 → 2.0.0-csm.1

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 (256) hide show
  1. package/README.md +36 -0
  2. package/dist/components/Drawer/Drawer.d.ts +17 -0
  3. package/dist/components/Drawer/index.d.ts +2 -0
  4. package/dist/components/Modal/CloseButton.d.ts +18 -0
  5. package/dist/components/Modal/Modal.d.ts +15 -0
  6. package/dist/components/Modal/index.d.ts +2 -0
  7. package/dist/components/Modal/useLabelledCloseButton.d.ts +13 -0
  8. package/dist/components/Select/Select.d.ts +10 -0
  9. package/dist/components/Table/Table.d.ts +7 -0
  10. package/dist/components/Table/index.d.ts +2 -0
  11. package/dist/components/index.d.ts +6 -0
  12. package/dist/index.cjs +10 -9
  13. package/dist/index.d.ts +4 -0
  14. package/dist/index.js +11290 -5926
  15. package/dist/patterns/ActivityTimeline/ActivityTimeline.d.ts +3 -0
  16. package/dist/patterns/ActivityTimeline/index.d.ts +2 -0
  17. package/dist/patterns/ActivityTimeline/styles.d.ts +15 -0
  18. package/dist/patterns/ActivityTimeline/types.d.ts +15 -0
  19. package/dist/patterns/AdminTable/AdminTable.d.ts +1 -0
  20. package/dist/patterns/AdminTable/styles.d.ts +6 -0
  21. package/dist/patterns/AdminToolbar/AdminToolbar.d.ts +13 -2
  22. package/dist/patterns/AdminToolbar/index.d.ts +1 -0
  23. package/dist/patterns/AdminToolbar/styles.d.ts +49 -0
  24. package/dist/patterns/AdminToolbar/types.d.ts +2 -0
  25. package/dist/patterns/AmountList/AmountList.d.ts +3 -0
  26. package/dist/patterns/AmountList/index.d.ts +2 -0
  27. package/dist/patterns/AmountList/styles.d.ts +23 -0
  28. package/dist/patterns/AmountList/types.d.ts +26 -0
  29. package/dist/patterns/ArtifactCard/ArtifactCard.d.ts +19 -0
  30. package/dist/patterns/ArtifactCard/index.d.ts +2 -0
  31. package/dist/patterns/ArtifactCard/styles.d.ts +31 -0
  32. package/dist/patterns/ArtifactCard/types.d.ts +34 -0
  33. package/dist/patterns/AssistantActivity/AssistantActivity.d.ts +15 -0
  34. package/dist/patterns/AssistantActivity/formatAssistantDuration.d.ts +10 -0
  35. package/dist/patterns/AssistantActivity/index.d.ts +3 -0
  36. package/dist/patterns/AssistantActivity/styles.d.ts +31 -0
  37. package/dist/patterns/AssistantActivity/types.d.ts +37 -0
  38. package/dist/patterns/AssistantComposer/AssistantComposer.d.ts +15 -0
  39. package/dist/patterns/AssistantComposer/index.d.ts +2 -0
  40. package/dist/patterns/AssistantComposer/styles.d.ts +27 -0
  41. package/dist/patterns/AssistantComposer/types.d.ts +48 -0
  42. package/dist/patterns/AssistantMarkdown/AssistantMarkdown.d.ts +17 -0
  43. package/dist/patterns/AssistantMarkdown/index.d.ts +3 -0
  44. package/dist/patterns/AssistantMarkdown/parser.d.ts +37 -0
  45. package/dist/patterns/AssistantMarkdown/styles.d.ts +35 -0
  46. package/dist/patterns/AssistantMarkdown/types.d.ts +37 -0
  47. package/dist/patterns/AssistantMessage/AssistantMessage.d.ts +17 -0
  48. package/dist/patterns/AssistantMessage/index.d.ts +2 -0
  49. package/dist/patterns/AssistantMessage/styles.d.ts +45 -0
  50. package/dist/patterns/AssistantMessage/types.d.ts +73 -0
  51. package/dist/patterns/AssistantNotice/AssistantNotice.d.ts +17 -0
  52. package/dist/patterns/AssistantNotice/index.d.ts +2 -0
  53. package/dist/patterns/AssistantNotice/styles.d.ts +36 -0
  54. package/dist/patterns/AssistantNotice/types.d.ts +46 -0
  55. package/dist/patterns/CardList/CardList.d.ts +3 -0
  56. package/dist/patterns/CardList/index.d.ts +2 -0
  57. package/dist/patterns/CardList/styles.d.ts +20 -0
  58. package/dist/patterns/CardList/types.d.ts +20 -0
  59. package/dist/patterns/CardStack/CardStack.d.ts +7 -0
  60. package/dist/patterns/CardStack/index.d.ts +2 -0
  61. package/dist/patterns/CardStack/styles.d.ts +2 -0
  62. package/dist/patterns/CashTenderForm/types.d.ts +6 -0
  63. package/dist/patterns/CellText/CellText.d.ts +16 -0
  64. package/dist/patterns/CellText/index.d.ts +2 -0
  65. package/dist/patterns/CellText/styles.d.ts +7 -0
  66. package/dist/patterns/CitationMarker/CitationMarker.d.ts +16 -0
  67. package/dist/patterns/CitationMarker/index.d.ts +2 -0
  68. package/dist/patterns/CitationMarker/styles.d.ts +19 -0
  69. package/dist/patterns/CitationMarker/types.d.ts +12 -0
  70. package/dist/patterns/DiscardGuard/DiscardGuard.d.ts +23 -0
  71. package/dist/patterns/DiscardGuard/context.d.ts +25 -0
  72. package/dist/patterns/DiscardGuard/index.d.ts +6 -0
  73. package/dist/patterns/DiscardGuard/useDiscardGuard.d.ts +38 -0
  74. package/dist/patterns/DonationAmounts/index.d.ts +1 -1
  75. package/dist/patterns/DonationAmounts/styles.d.ts +32 -0
  76. package/dist/patterns/DonationAmounts/types.d.ts +55 -1
  77. package/dist/patterns/DonationAmounts/utils/currency.d.ts +7 -3
  78. package/dist/patterns/EntityRow/EntityList.d.ts +9 -0
  79. package/dist/patterns/EntityRow/EntityRow.d.ts +3 -0
  80. package/dist/patterns/EntityRow/context.d.ts +2 -0
  81. package/dist/patterns/EntityRow/icons.d.ts +3 -0
  82. package/dist/patterns/EntityRow/index.d.ts +3 -0
  83. package/dist/patterns/EntityRow/initials.d.ts +6 -0
  84. package/dist/patterns/EntityRow/styles.d.ts +59 -0
  85. package/dist/patterns/EntityRow/types.d.ts +118 -0
  86. package/dist/patterns/FilterSelect/FilterSelect.d.ts +3 -0
  87. package/dist/patterns/FilterSelect/FilterSelectGroup.d.ts +3 -0
  88. package/dist/patterns/FilterSelect/index.d.ts +3 -0
  89. package/dist/patterns/FilterSelect/styles.d.ts +17 -0
  90. package/dist/patterns/FilterSelect/types.d.ts +19 -0
  91. package/dist/patterns/InlineConfirm/InlineConfirm.d.ts +38 -0
  92. package/dist/patterns/InlineConfirm/index.d.ts +2 -0
  93. package/dist/patterns/InlineConfirm/styles.d.ts +16 -0
  94. package/dist/patterns/InstallmentFundAssignment/InstallmentFundAssignment.d.ts +1 -1
  95. package/dist/patterns/InstallmentFundAssignment/types.d.ts +3 -0
  96. package/dist/patterns/InstallmentSchedule/InstallmentSchedule.d.ts +1 -1
  97. package/dist/patterns/InstallmentSchedule/InstallmentTable.d.ts +1 -1
  98. package/dist/patterns/InstallmentSchedule/types.d.ts +46 -3
  99. package/dist/patterns/InstallmentSchedule/utils.d.ts +21 -0
  100. package/dist/patterns/KeyValueChip/KeyValueChip.d.ts +1 -0
  101. package/dist/patterns/KeyValueRows/KeyValueRows.d.ts +13 -0
  102. package/dist/patterns/KeyValueRows/index.d.ts +2 -0
  103. package/dist/patterns/KeyValueRows/styles.d.ts +8 -0
  104. package/dist/patterns/LineItemRows/LineItemRows.d.ts +17 -0
  105. package/dist/patterns/LineItemRows/index.d.ts +2 -0
  106. package/dist/patterns/LineItemRows/styles.d.ts +13 -0
  107. package/dist/patterns/ListPanel/ListPanel.d.ts +2 -0
  108. package/dist/patterns/LoadMoreFooter/LoadMoreFooter.d.ts +3 -0
  109. package/dist/patterns/LoadMoreFooter/index.d.ts +2 -0
  110. package/dist/patterns/LoadMoreFooter/styles.d.ts +7 -0
  111. package/dist/patterns/LoadMoreFooter/types.d.ts +10 -0
  112. package/dist/patterns/MetaCard/types.d.ts +2 -0
  113. package/dist/patterns/ModalPanels/ModalPanels.d.ts +35 -0
  114. package/dist/patterns/ModalPanels/context.d.ts +20 -0
  115. package/dist/patterns/ModalPanels/focus.d.ts +44 -0
  116. package/dist/patterns/ModalPanels/index.d.ts +6 -0
  117. package/dist/patterns/ModalPanels/styles.d.ts +13 -0
  118. package/dist/patterns/ModalPanels/useModalPanels.d.ts +30 -0
  119. package/dist/patterns/OutcomeView/index.d.ts +1 -1
  120. package/dist/patterns/OutcomeView/types.d.ts +110 -3
  121. package/dist/patterns/PageHeader/PageHeader.d.ts +1 -0
  122. package/dist/patterns/PaginationSummary/PaginationSummary.d.ts +12 -0
  123. package/dist/patterns/PaginationSummary/index.d.ts +1 -1
  124. package/dist/patterns/PaymentSubAmountInput/PaymentSubAmountInput.d.ts +2 -0
  125. package/dist/patterns/PillTabs/PillTabs.d.ts +3 -0
  126. package/dist/patterns/PillTabs/ids.d.ts +9 -0
  127. package/dist/patterns/PillTabs/index.d.ts +3 -0
  128. package/dist/patterns/PillTabs/styles.d.ts +20 -0
  129. package/dist/patterns/PillTabs/types.d.ts +21 -0
  130. package/dist/patterns/{CatalogItemCard → Programs/CatalogItemCard}/type.d.ts +1 -1
  131. package/dist/patterns/{EventDetails → Programs/EventDetails}/EventDetails.d.ts +3 -1
  132. package/dist/patterns/{OfferCard → Programs/OfferCard}/OfferCard.d.ts +1 -1
  133. package/dist/patterns/{OfferCard → Programs/OfferCard}/types.d.ts +7 -0
  134. package/dist/patterns/Programs/ProgramListItem/ProgramListItem.d.ts +17 -0
  135. package/dist/patterns/Programs/ProgramListItem/index.d.ts +2 -0
  136. package/dist/patterns/Programs/index.d.ts +5 -0
  137. package/dist/patterns/ReasonSelect/types.d.ts +1 -0
  138. package/dist/patterns/RecordCard/RecordCard.d.ts +3 -0
  139. package/dist/patterns/RecordCard/index.d.ts +2 -0
  140. package/dist/patterns/RecordCard/styles.d.ts +16 -0
  141. package/dist/patterns/RecordCard/types.d.ts +22 -0
  142. package/dist/patterns/RecordHeader/RecordHeader.d.ts +3 -0
  143. package/dist/patterns/RecordHeader/index.d.ts +2 -0
  144. package/dist/patterns/RecordHeader/styles.d.ts +43 -0
  145. package/dist/patterns/RecordHeader/types.d.ts +30 -0
  146. package/dist/patterns/RecordLayout/RecordLayout.d.ts +3 -0
  147. package/dist/patterns/RecordLayout/index.d.ts +2 -0
  148. package/dist/patterns/RecordLayout/styles.d.ts +8 -0
  149. package/dist/patterns/RecordLayout/types.d.ts +6 -0
  150. package/dist/patterns/RecordTotals/RecordTotals.d.ts +19 -0
  151. package/dist/patterns/RecordTotals/index.d.ts +2 -0
  152. package/dist/patterns/RecordTotals/styles.d.ts +19 -0
  153. package/dist/patterns/RefundMethodCards/RefundMethodCards.d.ts +4 -0
  154. package/dist/patterns/RefundMethodCards/index.d.ts +2 -0
  155. package/dist/patterns/RefundMethodCards/styles.d.ts +59 -0
  156. package/dist/patterns/RefundMethodCards/types.d.ts +72 -0
  157. package/dist/patterns/RefundProgressList/RefundProgressList.d.ts +4 -0
  158. package/dist/patterns/RefundProgressList/index.d.ts +2 -0
  159. package/dist/patterns/RefundProgressList/styles.d.ts +44 -0
  160. package/dist/patterns/RefundProgressList/types.d.ts +37 -0
  161. package/dist/patterns/RelatedRecordList/RelatedRecordList.d.ts +3 -0
  162. package/dist/patterns/RelatedRecordList/index.d.ts +2 -0
  163. package/dist/patterns/RelatedRecordList/styles.d.ts +19 -0
  164. package/dist/patterns/RelatedRecordList/types.d.ts +17 -0
  165. package/dist/patterns/ScrollToLatest/ScrollToLatest.d.ts +16 -0
  166. package/dist/patterns/ScrollToLatest/index.d.ts +2 -0
  167. package/dist/patterns/ScrollToLatest/styles.d.ts +11 -0
  168. package/dist/patterns/ScrollToLatest/types.d.ts +27 -0
  169. package/dist/patterns/SessionExpiredCard/SessionExpiredCard.d.ts +14 -0
  170. package/dist/patterns/SessionExpiredCard/index.d.ts +2 -0
  171. package/dist/patterns/SessionExpiredCard/type.d.ts +6 -0
  172. package/dist/patterns/SourceList/SourceList.d.ts +12 -0
  173. package/dist/patterns/SourceList/index.d.ts +2 -0
  174. package/dist/patterns/SourceList/styles.d.ts +20 -0
  175. package/dist/patterns/SourceList/types.d.ts +28 -0
  176. package/dist/patterns/SourcePill/SourcePill.d.ts +13 -0
  177. package/dist/patterns/SourcePill/index.d.ts +2 -0
  178. package/dist/patterns/SourcePill/styles.d.ts +19 -0
  179. package/dist/patterns/SourcePill/types.d.ts +19 -0
  180. package/dist/patterns/SplitPaymentSummary/index.d.ts +1 -1
  181. package/dist/patterns/SplitPaymentSummary/types.d.ts +18 -0
  182. package/dist/patterns/StatTiles/StatTiles.d.ts +3 -0
  183. package/dist/patterns/StatTiles/index.d.ts +2 -0
  184. package/dist/patterns/StatTiles/styles.d.ts +8 -0
  185. package/dist/patterns/StatTiles/types.d.ts +12 -0
  186. package/dist/patterns/StatusChip/StatusChip.d.ts +3 -3
  187. package/dist/patterns/StepProgress/StepProgress.d.ts +4 -0
  188. package/dist/patterns/StepProgress/index.d.ts +2 -0
  189. package/dist/patterns/StepProgress/styles.d.ts +29 -0
  190. package/dist/patterns/StepProgress/types.d.ts +43 -0
  191. package/dist/patterns/Summary/components/ActionBar.d.ts +2 -0
  192. package/dist/patterns/Summary/components/GrandTotalRow.d.ts +1 -0
  193. package/dist/patterns/Summary/components/ItemRow.d.ts +1 -0
  194. package/dist/patterns/Summary/components/SummaryBody.d.ts +4 -1
  195. package/dist/patterns/Summary/components/TotalsLineRow.d.ts +3 -2
  196. package/dist/patterns/Summary/types.d.ts +51 -9
  197. package/dist/patterns/TableSkeleton/TableSkeleton.d.ts +1 -0
  198. package/dist/patterns/TileSelect/TileSelect.d.ts +80 -2
  199. package/dist/patterns/TileSelect/index.d.ts +1 -1
  200. package/dist/patterns/TileSelect/styles.d.ts +14 -0
  201. package/dist/patterns/ToolbarButton/ToolbarButton.d.ts +2 -0
  202. package/dist/patterns/UnderlineTabs/UnderlineTabs.d.ts +20 -1
  203. package/dist/patterns/UnderlineTabs/index.d.ts +1 -1
  204. package/dist/patterns/UnderlineTabs/styles.d.ts +10 -0
  205. package/dist/patterns/WizardShell/index.d.ts +1 -1
  206. package/dist/patterns/WizardShell/types.d.ts +9 -1
  207. package/dist/patterns/grid-columns.d.ts +1 -1
  208. package/dist/patterns/index.d.ts +87 -17
  209. package/dist/patterns/shared/hasContent.d.ts +2 -0
  210. package/dist/patterns/shared/index.d.ts +1 -0
  211. package/dist/patterns/shared/motion.d.ts +6 -0
  212. package/dist/patterns/shared/recordTone.d.ts +9 -0
  213. package/dist/patterns/shared/rem.d.ts +4 -0
  214. package/dist/patterns/shared/useContainerWidth.d.ts +6 -0
  215. package/dist/patterns/shared/useDecimalDraft.d.ts +33 -0
  216. package/dist/patterns/shared/usePrefillEdits.d.ts +7 -0
  217. package/dist/providers/DensityProvider.d.ts +7 -0
  218. package/dist/providers/HeroUIProvider.d.ts +14 -1
  219. package/dist/providers/close-label-context.d.ts +18 -0
  220. package/dist/providers/density.d.ts +17 -0
  221. package/dist/providers/index.d.ts +4 -0
  222. package/dist/tailwind/index.cjs +107 -5
  223. package/dist/tailwind/index.d.ts +61 -0
  224. package/dist/tailwind/index.mjs +104 -5
  225. package/dist/test/ReducedMotion.d.ts +4 -0
  226. package/dist/test/RootFontSize.d.ts +5 -0
  227. package/dist/test/backdrop.d.ts +12 -0
  228. package/dist/test/container-width.d.ts +14 -0
  229. package/dist/test/contrast.d.ts +1 -0
  230. package/dist/test/px-class-names.d.ts +1 -0
  231. package/dist/test/px-classes.d.ts +3 -0
  232. package/dist/test/root-font-size.d.ts +8 -0
  233. package/dist/tokens/assistant-surface.d.ts +66 -0
  234. package/dist/tokens/index.d.ts +2 -0
  235. package/dist/tokens/pos-surface.d.ts +23 -4
  236. package/package.json +5 -2
  237. /package/dist/patterns/{CatalogItemCard → Programs/CatalogItemCard}/CatalogItemCard.d.ts +0 -0
  238. /package/dist/patterns/{CatalogItemCard → Programs/CatalogItemCard}/index.d.ts +0 -0
  239. /package/dist/patterns/{EventDetails → Programs/EventDetails}/index.d.ts +0 -0
  240. /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/CustomQuantitySelectorExample.d.ts +0 -0
  241. /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/ListWithEurosCurrencyExample.d.ts +0 -0
  242. /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/ListWithoutAnimationExample.d.ts +0 -0
  243. /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/index.d.ts +0 -0
  244. /package/dist/patterns/{OfferCard → Programs/OfferCard}/index.d.ts +0 -0
  245. /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/animations.d.ts +0 -0
  246. /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/currency.d.ts +0 -0
  247. /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/index.d.ts +0 -0
  248. /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/offers.d.ts +0 -0
  249. /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardEmpty.d.ts +0 -0
  250. /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardError.d.ts +0 -0
  251. /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardList.d.ts +0 -0
  252. /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardSkeleton.d.ts +0 -0
  253. /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/index.d.ts +0 -0
  254. /package/dist/patterns/{SessionTimeline → Programs/SessionTimeline}/SessionTimeline.d.ts +0 -0
  255. /package/dist/patterns/{SessionTimeline → Programs/SessionTimeline}/index.d.ts +0 -0
  256. /package/dist/patterns/{SessionTimeline → Programs/SessionTimeline}/type.d.ts +0 -0
@@ -28,10 +28,16 @@ export interface WizardShellSecondaryAction {
28
28
  * the return covers less than the order, `owes` reads "Customer owes" when the
29
29
  * balance runs the other way.
30
30
  */
31
+ export interface WizardShellTotalBadge {
32
+ label: string;
33
+ tone: 'warn' | 'neutral' | 'ok';
34
+ }
31
35
  export interface WizardShellTotalRow {
32
36
  label: string;
33
37
  amount?: Money;
34
- badge?: 'partial' | 'owes';
38
+ /** Renders the amount as a counter against this total: "Assigned $40.00 of $46.00". */
39
+ of?: Money;
40
+ badge?: 'partial' | 'owes' | WizardShellTotalBadge;
35
41
  }
36
42
  export interface WizardShellLabels {
37
43
  back?: string;
@@ -40,6 +46,8 @@ export interface WizardShellLabels {
40
46
  cancel?: string;
41
47
  partialBadge?: string;
42
48
  owesBadge?: string;
49
+ /** The word between `totalRow.amount` and `totalRow.of`. */
50
+ ofSeparator?: string;
43
51
  }
44
52
  export interface WizardShellProps {
45
53
  onClose?: () => void;
@@ -6,5 +6,5 @@
6
6
  * The literal Tailwind classes must stay spelled out (not interpolated) so
7
7
  * the JIT scanner keeps generating them.
8
8
  */
9
- export declare const GRID_DESKTOP_COLS: Record<2 | 3 | 4, string>;
9
+ export declare const GRID_DESKTOP_COLS: Record<2 | 3 | 4 | 5 | 6, string>;
10
10
  export declare const GRID_MOBILE_COLS: Record<1 | 2, string>;
@@ -10,13 +10,13 @@ export type { MultiselectProps } from './Multiselect';
10
10
  export { RichTextArea, RICH_TEXT_PRESETS } from './RichText';
11
11
  export type { RichTextAreaProps } from './RichText';
12
12
  export { DonationAmounts } from './DonationAmounts';
13
- export type { DonationAmountsProps, DonationAmount, SelectedDonation, DonationLabels } from './DonationAmounts';
13
+ export type { DonationAmountsProps, DonationAmount, SelectedDonation, DonationLabels, DonationAmountsVariant, } from './DonationAmounts';
14
14
  export { ExpireCartTimer } from './ExpireCartTimer';
15
15
  export type { ExpireCartTimerProps } from './ExpireCartTimer';
16
- export { EventDetails } from './EventDetails';
17
- export type { EventDetailsProps } from './EventDetails';
18
- export { OfferCard, OfferCardList, OfferCardSkeleton, OfferCardError, OfferCardEmpty, offerListVariants, offerCardVariants, formatCurrency as formatOfferCurrency, parseCurrency as parseOfferCurrency, } from './OfferCard';
19
- export type { Offer, OfferSelection, OfferCardLabels, OfferCardErrorLabels, OfferCardClassNames, OfferCardListClassNames, OfferCardSkeletonClassNames, OfferCardErrorClassNames, OfferCardEmptyClassNames, OfferCardSlots, OfferCardProps, OfferCardListProps, OfferCardSkeletonProps, OfferCardErrorProps, OfferCardEmptyProps, } from './OfferCard';
16
+ export { EventDetails } from './Programs/EventDetails';
17
+ export type { EventDetailsProps } from './Programs/EventDetails';
18
+ export { OfferCard, OfferCardList, OfferCardSkeleton, OfferCardError, OfferCardEmpty, offerListVariants, offerCardVariants, formatCurrency as formatOfferCurrency, parseCurrency as parseOfferCurrency, } from './Programs/OfferCard';
19
+ export type { Offer, OfferSelection, OfferCardLabels, OfferCardErrorLabels, OfferCardClassNames, OfferCardListClassNames, OfferCardSkeletonClassNames, OfferCardErrorClassNames, OfferCardEmptyClassNames, OfferCardSlots, OfferCardProps, OfferCardListProps, OfferCardSkeletonProps, OfferCardErrorProps, OfferCardEmptyProps, } from './Programs/OfferCard';
20
20
  export { RevenueDistributionCard, RevenueDistributionSkeleton, RevenueDistributionError, RevenueDistributionEmpty, formatAmount as formatRevenueAmount, formatCurrency as formatRevenueCurrency, getCurrencySymbol, parseCurrency as parseRevenueCurrency, calculateAllocationDifference, generateDistributionId, } from './RevenueDistribution';
21
21
  export type { GlAccount, Distribution, RevenueDistributionLabels, RevenueDistributionErrorLabels, RevenueDistributionEmptyLabels, RevenueDistributionCardClassNames, RevenueDistributionSkeletonClassNames, RevenueDistributionErrorClassNames, RevenueDistributionEmptyClassNames, RevenueDistributionCardProps, RevenueDistributionSkeletonProps, RevenueDistributionErrorProps, RevenueDistributionEmptyProps, } from './RevenueDistribution';
22
22
  export { InstallmentFundAssignment, InstallmentFundAssignmentSkeleton } from './InstallmentFundAssignment';
@@ -31,8 +31,10 @@ export { MembershipSelectCards } from './MembershipSelectCards';
31
31
  export type * from './MembershipSelectCards';
32
32
  export { ItemCard } from './ItemCard';
33
33
  export type * from './ItemCard';
34
- export { CatalogItemCard } from './CatalogItemCard';
35
- export type * from './CatalogItemCard';
34
+ export { CatalogItemCard } from './Programs/CatalogItemCard';
35
+ export type * from './Programs/CatalogItemCard';
36
+ export { ProgramListItem } from './Programs/ProgramListItem';
37
+ export type * from './Programs/ProgramListItem';
36
38
  export { FeedbackState, EmptyState, ErrorState, LoadingState, SuccessState } from './FeedbackState';
37
39
  export type * from './FeedbackState';
38
40
  export { Toggle } from './Toggle';
@@ -41,8 +43,8 @@ export { TicketSelection } from './TicketSelection';
41
43
  export type * from './TicketSelection';
42
44
  export { FilterPopover } from './FilterPopover';
43
45
  export type * from './FilterPopover';
44
- export { SessionTimeline } from './SessionTimeline';
45
- export type * from './SessionTimeline';
46
+ export { SessionTimeline } from './Programs/SessionTimeline';
47
+ export type * from './Programs/SessionTimeline';
46
48
  export { PageHeader } from './PageHeader';
47
49
  export type { PageHeaderProps, PageHeaderClassNames } from './PageHeader';
48
50
  export { StatusChip } from './StatusChip';
@@ -56,19 +58,21 @@ export type { TableSkeletonProps, TableSkeletonClassNames } from './TableSkeleto
56
58
  export { AdminTable, adminRowClass, adminTableClass, adminTableFooterClass, adminTdClass, adminThClass, } from './AdminTable';
57
59
  export type { AdminTableProps, AdminTableColumn, AdminTableClassNames } from './AdminTable';
58
60
  export { AdminToolbar } from './AdminToolbar';
59
- export type { AdminToolbarProps } from './AdminToolbar';
61
+ export type { AdminToolbarProps, AdminToolbarSearchWidth, AdminToolbarSize } from './AdminToolbar';
60
62
  export { ToolbarButton } from './ToolbarButton';
61
63
  export type { ToolbarButtonProps } from './ToolbarButton';
62
64
  export { UnderlineTabs } from './UnderlineTabs';
63
- export type { UnderlineTabsProps, UnderlineTabItem } from './UnderlineTabs';
65
+ export type { UnderlineTabsProps, UnderlineTabItem, UnderlineTabsSize, UnderlineTabsLevel } from './UnderlineTabs';
64
66
  export { AdminFieldLabel, AdminTextField, adminFieldErrorClass, adminFieldHintClass, adminFieldLabelClass, adminFieldLabelSuffixClass, adminInputClass, adminInputReadOnlyClass, adminInputWrapperClass, } from './AdminTextField';
65
67
  export type { AdminTextFieldProps } from './AdminTextField';
66
68
  export { RowActions } from './RowActions';
67
69
  export type { RowActionsProps, RowAction } from './RowActions';
68
70
  export { PickerRow } from './PickerRow';
69
71
  export type { PickerRowProps } from './PickerRow';
72
+ export { EntityRow, EntityList, EntityListSkeleton } from './EntityRow';
73
+ export type { EntityRowProps, EntityRowSize, EntityRowVariant, EntityRowTag, EntityRowTagTone, EntityRowLeading, EntityRowAction, EntityListProps, EntityListSkeletonProps, } from './EntityRow';
70
74
  export { PaginationSummary, pageRange } from './PaginationSummary';
71
- export type { PaginationSummaryProps, PaginationSummaryClassNames } from './PaginationSummary';
75
+ export type { PaginationSummaryProps, PaginationSummaryClassNames, PaginationSummaryRange } from './PaginationSummary';
72
76
  export { ListPanel } from './ListPanel';
73
77
  export type { ListPanelProps, ListPanelClassNames } from './ListPanel';
74
78
  export { CashTenderForm } from './CashTenderForm';
@@ -78,11 +82,11 @@ export type { CheckTenderFormProps, CheckTenderValue, CheckTenderLabels } from '
78
82
  export { OtherTenderForm } from './OtherTenderForm';
79
83
  export type { OtherTenderFormProps, OtherTenderValue, OtherTenderLabels, OtherTenderMethodOption, } from './OtherTenderForm';
80
84
  export { SplitPaymentSummary } from './SplitPaymentSummary';
81
- export type { SplitPaymentSummaryProps, SplitPaymentSummaryLabels, TenderRow, TenderRowStatus, TenderRowType, } from './SplitPaymentSummary';
85
+ export type { SplitPaymentSummaryProps, SplitPaymentSummaryLabels, SplitPaymentSummaryVariant, TenderRow, TenderRowStatus, TenderRowType, } from './SplitPaymentSummary';
82
86
  export { ModalShell, ModalShellHeader, ModalShellFooter } from './ModalShell';
83
87
  export type { ModalShellProps, ModalShellHeaderProps, ModalShellFooterProps } from './ModalShell';
84
88
  export { TileSelect } from './TileSelect';
85
- export type { TileSelectProps, TileSelectOption } from './TileSelect';
89
+ export type { TileSelectProps, TileSelectOption, TileSelectVariant, TileSelectSize } from './TileSelect';
86
90
  export { PaymentTotalBanner } from './PaymentTotalBanner';
87
91
  export type { PaymentTotalBannerProps } from './PaymentTotalBanner';
88
92
  export { LoadingOverlay } from './LoadingOverlay';
@@ -95,11 +99,19 @@ export { PaymentSubAmountInput } from './PaymentSubAmountInput';
95
99
  export type { PaymentSubAmountInputProps } from './PaymentSubAmountInput';
96
100
  export { ConfirmDialog } from './ConfirmDialog';
97
101
  export type { ConfirmDialogProps, ConfirmDialogVariant } from './ConfirmDialog';
102
+ export { InlineConfirm } from './InlineConfirm';
103
+ export type { InlineConfirmProps, InlineConfirmVariant, InlineConfirmSize } from './InlineConfirm';
104
+ export { ModalPanels, ModalPanelHeader, useModalPanel, useModalPanels } from './ModalPanels';
105
+ export type { ModalPanelsProps, ModalPanelHeaderProps, ModalPanelState, ModalPanelsController, ModalPanelEntry, } from './ModalPanels';
106
+ export { DiscardGuard, useDiscardGuard, useDiscardGuardActions, useReportUnsavedChanges } from './DiscardGuard';
107
+ export type { DiscardGuardProps, DiscardGuardController, DiscardGuardActions } from './DiscardGuard';
98
108
  export { Summary } from './Summary';
99
109
  export type { SummaryProps, SummaryLineItem, SummaryItemDetail, SummaryServiceFee, SummaryTotalRow, SummaryPostTotalRow, SummaryPrimaryAction, SummaryLabels, } from './Summary';
110
+ export { StepProgress } from './StepProgress';
111
+ export type { StepProgressProps, StepProgressStep, StepProgressLabels } from './StepProgress';
100
112
  export { WizardShell } from './WizardShell';
101
- export type { WizardShellProps, WizardStep, WizardStepState, WizardShellPrimaryAction, WizardShellSecondaryAction, WizardShellTotalRow, WizardShellLabels, } from './WizardShell';
102
- export type { TenderError, DestinationLine, DestinationStatus } from './shared';
113
+ export type { WizardShellProps, WizardStep, WizardStepState, WizardShellPrimaryAction, WizardShellSecondaryAction, WizardShellTotalRow, WizardShellTotalBadge, WizardShellLabels, } from './WizardShell';
114
+ export type { TenderError, DestinationLine, DestinationStatus, RecordTone } from './shared';
103
115
  export { LineItemList } from './LineItemList';
104
116
  export type { LineItemListProps, LineItemView, ItemSelection, LineItemState, LineItemRestockView, ItemDisposition, AmountOnlyView, LineItemListLabels, } from './LineItemList';
105
117
  export { MetaCard } from './MetaCard';
@@ -116,7 +128,65 @@ export { TenderMethods } from './TenderMethods';
116
128
  export type { TenderMethodsProps, TenderView, TenderKind, TenderMethodsLabels } from './TenderMethods';
117
129
  export { SplitTenderPanel } from './SplitTenderPanel';
118
130
  export type { SplitTenderPanelProps, SplitPartView, SplitMethodOption, SplitTenderPanelLabels, } from './SplitTenderPanel';
131
+ export { RefundMethodCards } from './RefundMethodCards';
132
+ export type { RefundMethodCardsProps, RefundMethodCardsLabels, RefundMethodCardsError, RefundMethodView, RefundMethodKind, RefundMethodStatus, RefundMethodOption, RefundMethodAnotherMethod, RefundMethodPaidWith, } from './RefundMethodCards';
133
+ export { RefundProgressList } from './RefundProgressList';
134
+ export type { RefundProgressListProps, RefundProgressListLabels, RefundProgressPart, RefundProgressStatus, RefundProgressAction, } from './RefundProgressList';
119
135
  export { PinField } from './PinField';
120
136
  export type { PinFieldProps, PinFieldLabels } from './PinField';
121
137
  export { OutcomeView } from './OutcomeView';
122
- export type { OutcomeViewProps, OutcomeViewLabels, ReceiptChannel } from './OutcomeView';
138
+ export type { OutcomeViewProps, OutcomeViewLabels, ReceiptChannel, OutcomeViewKind, OutcomePaidWithLine, OutcomeGroup, OutcomeReceiptAction, OutcomeEmailReceipt, OutcomeChangeDue, } from './OutcomeView';
139
+ export { FilterSelect, FilterSelectGroup } from './FilterSelect';
140
+ export type { FilterSelectProps, FilterSelectOption, FilterSelectGroupProps } from './FilterSelect';
141
+ export { LoadMoreFooter } from './LoadMoreFooter';
142
+ export type { LoadMoreFooterProps, LoadMoreStatus } from './LoadMoreFooter';
143
+ export { CardList } from './CardList';
144
+ export type { CardListProps, CardListItem } from './CardList';
145
+ export { RecordHeader } from './RecordHeader';
146
+ export type { RecordHeaderProps, RecordHeaderStat } from './RecordHeader';
147
+ export { RecordLayout } from './RecordLayout';
148
+ export type { RecordLayoutProps } from './RecordLayout';
149
+ export { StatTiles } from './StatTiles';
150
+ export type { StatTilesProps, StatTileItem } from './StatTiles';
151
+ export { PillTabs, pillTabId, pillTabPanelId, pillTabPanelProps } from './PillTabs';
152
+ export type { PillTabsProps, PillTabItem, PillTabsSize } from './PillTabs';
153
+ export { AmountList } from './AmountList';
154
+ export type { AmountListProps, AmountListRow } from './AmountList';
155
+ export { ActivityTimeline } from './ActivityTimeline';
156
+ export type { ActivityTimelineProps, ActivityTimelineEvent } from './ActivityTimeline';
157
+ export { RelatedRecordList } from './RelatedRecordList';
158
+ export type { RelatedRecordListProps, RelatedRecordRow } from './RelatedRecordList';
159
+ export { RecordCard } from './RecordCard';
160
+ export type { RecordCardProps, RecordCardVariant, RecordCardBody, RecordCardSurface } from './RecordCard';
161
+ export { CardStack } from './CardStack';
162
+ export type { CardStackProps, CardStackLayout } from './CardStack';
163
+ export { KeyValueRows } from './KeyValueRows';
164
+ export type { KeyValueRowsProps, KeyValueRow, KeyValueRowsDensity } from './KeyValueRows';
165
+ export { LineItemRows } from './LineItemRows';
166
+ export type { LineItemRowsProps, LineItemRow } from './LineItemRows';
167
+ export { RecordTotals } from './RecordTotals';
168
+ export type { RecordTotalsProps, RecordTotalsRow } from './RecordTotals';
169
+ export { CellText, ChipStack } from './CellText';
170
+ export type { CellTextProps, CellTextVariant, ChipStackProps } from './CellText';
171
+ export { SessionExpiredCard } from './SessionExpiredCard';
172
+ export type { SessionExpiredCardProps } from './SessionExpiredCard';
173
+ export { AssistantMessage } from './AssistantMessage';
174
+ export type { AssistantMessageAuthor, AssistantMessageBaseProps, AssistantMessageClassNames, AssistantMessageProps, AssistantMessageStatus, AssistantMessageStatusLabel, AssistantMessageStatusProps, } from './AssistantMessage';
175
+ export { AssistantActivity, formatAssistantDuration } from './AssistantActivity';
176
+ export type { AssistantActivityItem, AssistantActivityProps, AssistantActivityState } from './AssistantActivity';
177
+ export { AssistantNotice } from './AssistantNotice';
178
+ export type { AssistantNoticeClassNames, AssistantNoticeKind, AssistantNoticeProps } from './AssistantNotice';
179
+ export { AssistantComposer } from './AssistantComposer';
180
+ export type { AssistantComposerProps, AssistantComposerSuggestion } from './AssistantComposer';
181
+ export { ScrollToLatest } from './ScrollToLatest';
182
+ export type { ScrollToLatestClassNames, ScrollToLatestProps } from './ScrollToLatest';
183
+ export { AssistantMarkdown, defaultAssistantLinkPolicy } from './AssistantMarkdown';
184
+ export type { AssistantMarkdownLinkPolicy, AssistantMarkdownProps } from './AssistantMarkdown';
185
+ export { CitationMarker } from './CitationMarker';
186
+ export type { CitationMarkerProps } from './CitationMarker';
187
+ export { SourcePill } from './SourcePill';
188
+ export type { SourcePillProps } from './SourcePill';
189
+ export { SourceList } from './SourceList';
190
+ export type { SourceListHandle, SourceListItem, SourceListProps } from './SourceList';
191
+ export { ArtifactCard } from './ArtifactCard';
192
+ export type { ArtifactCardProps, ArtifactCardStatus } from './ArtifactCard';
@@ -0,0 +1,2 @@
1
+ import { ReactNode } from 'react';
2
+ export declare function hasContent(node: ReactNode): boolean;
@@ -1 +1,2 @@
1
1
  export type { TenderError, DestinationLine, DestinationStatus } from './types';
2
+ export type { RecordTone } from './recordTone';
@@ -0,0 +1,6 @@
1
+ export declare const POS_REDUCE_MOTION_ATTRIBUTE = "data-pos-reduce-motion";
2
+ export declare const stillTransitionClass = "motion-reduce:transition-none [html[data-pos-reduce-motion=true]_&]:transition-none";
3
+ export declare const stillAnimationClass = "motion-reduce:animate-none [html[data-pos-reduce-motion=true]_&]:animate-none";
4
+ export declare const shimmerClass = "rounded-[0.375rem] bg-[linear-gradient(90deg,#F0F0F1_0,#F9F9FA_12.5rem,#F0F0F1_25rem)] bg-[length:50rem_100%] animate-record-shimmer motion-reduce:animate-none [html[data-pos-reduce-motion=true]_&]:animate-none";
5
+ export declare function prefersReducedMotion(): boolean;
6
+ export declare function useReducedMotion(): boolean;
@@ -0,0 +1,9 @@
1
+ import { CSSProperties } from 'react';
2
+ export type RecordTone = 'ok' | 'warn' | 'danger' | 'info' | 'violet' | 'neutral';
3
+ export interface RecordTonePair {
4
+ fg: string;
5
+ bg: string;
6
+ }
7
+ export declare const RECORD_TONE: Record<RecordTone, RecordTonePair>;
8
+ export type SignedAmountTone = 'positive' | 'negative' | 'neutral';
9
+ export declare function amountToneStyle(tone: SignedAmountTone | undefined): CSSProperties | undefined;
@@ -0,0 +1,4 @@
1
+ export declare const ROOT_FONT_PX = 16;
2
+ export declare const rem: (px: number) => string;
3
+ export declare function rootFontSizePx(): number;
4
+ export declare const atLeastRem: (widthPx: number, rems: number) => boolean;
@@ -0,0 +1,6 @@
1
+ export declare const CONTAINER_MEDIUM = 768;
2
+ export declare const CONTAINER_WIDE = 1120;
3
+ export declare function useContainerWidth<T extends HTMLElement>(): {
4
+ ref: import('react').RefObject<T | null>;
5
+ width: number;
6
+ };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Keeps the text a cashier typed into a money input separate from the number
3
+ * the host holds.
4
+ *
5
+ * A money input whose display is `String(value)` loses what the cashier is
6
+ * mid-way through typing: `'40.'` parses to `40` and is re-rendered as `'40'`,
7
+ * so the next `0` produces `'400'` and `'40.00'` ends up read as 4000. The hook
8
+ * keeps the typed string and shows it while it still parses to `value` (the
9
+ * echo of the cashier's own keystroke). When the host holds a number the draft
10
+ * does not represent (a reset, a prefill, a host that ignores the keystroke),
11
+ * the input shows `format(value)` instead, so the host stays in control.
12
+ */
13
+ /**
14
+ * Whether `text` is one amount, possibly partial, in a currency with
15
+ * `fractionDigits` minor digits: digits, then at most one `.` or `,` followed
16
+ * by at most `fractionDigits` digits (`''`, `'40'`, `'40.'`, `'40,5'`, `'.5'`).
17
+ * Anything else would show one amount while emitting another, because
18
+ * `parseFloat` reads only a prefix and `,` is the decimal separator: `'40.5.9'`
19
+ * and `'4a'` would emit 40.5 and 4, and `'1,000'` would emit 1. Callers reject
20
+ * such a keystroke instead of storing it, so the input keeps what it showed.
21
+ */
22
+ export declare const isDecimalDraft: (text: string, fractionDigits: number) => boolean;
23
+ /** Parses a typed amount (`'40.5'`, `'40,5'`, `'40.'`); `null` when there is no number yet (`''`, `'.'`, `','`). */
24
+ export declare const parseDecimalDraft: (draft: string) => number | null;
25
+ export interface DecimalDraft {
26
+ /** The text to show in the input. */
27
+ draft: string;
28
+ /** Stores the text the cashier typed. */
29
+ setDraft: (next: string) => void;
30
+ /** Rewrites the draft in its canonical form (`'40.'` → `'40'`) without changing its value. */
31
+ normalize: () => void;
32
+ }
33
+ export declare const useDecimalDraft: (value: number | null | undefined, format: (value: number | null | undefined) => string) => DecimalDraft;
@@ -0,0 +1,7 @@
1
+ export interface PrefillEdits<T> {
2
+ isUntouched: () => boolean;
3
+ markEdited: (emitted: T) => void;
4
+ markUntouched: () => void;
5
+ }
6
+ export declare const usePrefillEdits: <T>(source: T, isSame?: (a: T, b: T) => boolean) => PrefillEdits<T>;
7
+ export declare const useReplaceWhileUntouched: (isUntouched: () => boolean, replace: (text: string) => void) => import('react').RefObject<HTMLInputElement | null>;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ import { Density } from './density';
3
+ export interface DensityProviderProps {
4
+ density: Density;
5
+ children: ReactNode;
6
+ }
7
+ export declare function DensityProvider({ density, children }: DensityProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,19 @@
1
1
  import { ReactNode } from 'react';
2
2
  interface HeroUIProviderProps {
3
3
  children: ReactNode;
4
+ /**
5
+ * App-wide accessible name for the corner close button of every DS `Modal` and `Drawer`, e.g. `"Fermer"`.
6
+ * HeroUI hard-codes `"Close"`, so a localized app sets this once instead of on each overlay.
7
+ *
8
+ * A `closeLabel` on a `Modal` / `Drawer` wins over it. A nested provider without one inherits the
9
+ * outer provider's. With none anywhere, HeroUI's own button is rendered untouched.
10
+ */
11
+ closeLabel?: string;
12
+ /**
13
+ * BCP 47 locale for the React Aria strings HeroUI renders, e.g. `"fr-FR"`: the hidden "Dismiss"
14
+ * buttons of overlays, date and number formatting. Without it HeroUI uses `"en-US"`.
15
+ */
16
+ locale?: string;
4
17
  }
5
- export declare function HeroUIProvider({ children }: HeroUIProviderProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare function HeroUIProvider({ children, closeLabel, locale }: HeroUIProviderProps): import("react/jsx-runtime").JSX.Element;
6
19
  export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The app-wide default accessible name of an overlay's corner close button.
3
+ *
4
+ * HeroUI renders that button with the literal `aria-label="Close"`, so a French
5
+ * or Spanish screen announces English. `HeroUIProvider` carries a translated
6
+ * label here and the DS `Modal` / `Drawer` read it.
7
+ *
8
+ * A leaf file on purpose: `providers/` and `components/` never import each
9
+ * other. Both import this context, and neither imports the other's barrel.
10
+ * Split from `HeroUIProvider.tsx` so that file exports a component only (fast
11
+ * refresh), as `density.ts` does for the density context.
12
+ *
13
+ * `undefined` means "no app-wide label": the overlay keeps HeroUI's own button
14
+ * and its `"Close"` name untouched.
15
+ */
16
+ export declare const CloseLabelContext: import('react').Context<string | undefined>;
17
+ /** The label of the nearest `HeroUIProvider` that set `closeLabel`; `undefined` outside one. */
18
+ export declare function useCloseLabel(): string | undefined;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The density context and the hooks that read it. Split from
3
+ * `DensityProvider.tsx` so that file exports a component only (fast refresh).
4
+ */
5
+ export type Density = 'default' | 'touch';
6
+ /** The HeroUI control sizes a density maps onto. */
7
+ export type ControlSize = 'sm' | 'md' | 'lg';
8
+ export declare const DensityContext: import('react').Context<Density>;
9
+ /** The density of the nearest `DensityProvider`; `'default'` outside one. */
10
+ export declare function useDensity(): Density;
11
+ /**
12
+ * The HeroUI size for a control whose everyday size is `base`.
13
+ *
14
+ * A component passes the size it has always had and gets `lg` back only under
15
+ * `touch`, so a page that never mounts the provider is untouched.
16
+ */
17
+ export declare function useControlSize<TBase extends ControlSize>(base: TBase): TBase | 'lg';
@@ -1 +1,5 @@
1
1
  export { HeroUIProvider } from './HeroUIProvider';
2
+ export { DensityProvider } from './DensityProvider';
3
+ export type { DensityProviderProps } from './DensityProvider';
4
+ export { useDensity, useControlSize } from './density';
5
+ export type { Density, ControlSize } from './density';
@@ -23,6 +23,9 @@ __export(index_exports, {
23
23
  adminSurfaceCss: () => adminSurfaceCss,
24
24
  adminSurfaceTailwindColors: () => adminSurfaceTailwindColors,
25
25
  adminSurfaceTokens: () => adminSurfaceTokens,
26
+ assistantSurfacePlugin: () => assistantSurfacePlugin,
27
+ assistantSurfaceTailwindColors: () => assistantSurfaceTailwindColors,
28
+ assistantSurfaceTokens: () => assistantSurfaceTokens,
26
29
  colors: () => colors,
27
30
  createHeroUIConfig: () => createHeroUIConfig,
28
31
  deepMerge: () => deepMerge,
@@ -258,12 +261,12 @@ function adminSurfaceCss({
258
261
  scope = ".acct",
259
262
  fontFamily = "'NeueMontreal', system-ui, sans-serif"
260
263
  } = {}) {
261
- const declarations = Object.entries(adminSurfaceTokens).map(([name, value]) => ` ${name}: ${value};`).join("\n");
264
+ const declarations2 = Object.entries(adminSurfaceTokens).map(([name, value]) => ` ${name}: ${value};`).join("\n");
262
265
  const typography2 = fontFamily ? `
263
266
  font-family: ${fontFamily};
264
267
  color: var(--ink);` : "";
265
268
  return `${scope} {
266
- ${declarations}${typography2}
269
+ ${declarations2}${typography2}
267
270
  }
268
271
  `;
269
272
  }
@@ -274,6 +277,17 @@ var posSurfaceTokens = {
274
277
  line: "#E7E7E9",
275
278
  /** `--line2`: the lighter hairline under list rows and above the role bar. */
276
279
  "line-2": "#F1F1F3",
280
+ hair: "#F0F0F1",
281
+ page: "#FBFBFB",
282
+ field: "#E5E5E5",
283
+ /** A hairline under the pointer (`default-300`). */
284
+ "line-strong": "#D4D4D8",
285
+ /** `--ink`: body text (`default-900`). */
286
+ ink: "#18181B",
287
+ /** `--muted`: secondary text and eyebrows, 4.83:1 on white (`default-500`). */
288
+ muted: "#71717A",
289
+ /** Placeholder text (`default-400`). Never for content: 2.56:1 on white. */
290
+ faint: "#A1A1AA",
277
291
  /** `--okb` / `--okf` */
278
292
  "ok-fill": "#EAF3DE",
279
293
  ok: "#3B6D11",
@@ -288,11 +302,79 @@ var posSurfaceTokens = {
288
302
  /** `--ib` / `--if` */
289
303
  "info-fill": "#EAF1FC",
290
304
  info: "#1D4FA8",
305
+ "violet-fill": "#F1ECFB",
306
+ violet: "#6D28D9",
307
+ "neutral-fill": "#F4F4F5",
308
+ neutral: "#52525B",
291
309
  /** `.btn-dstr` — the fill behind an irreversible confirmation. */
292
310
  destructive: "#A32D2D"
293
311
  };
294
312
  var posSurfaceTailwindColors = { ...posSurfaceTokens };
295
313
 
314
+ // src/tokens/assistant-surface.ts
315
+ var info = colors.palettes.info;
316
+ var HEROUI_CONTENT = {
317
+ light: { content1: "#ffffff", content2: "#f4f4f5" },
318
+ dark: { content1: "#18181b", content2: "#27272a" }
319
+ };
320
+ var ASSISTANT_SURFACE_TOKEN_NAMES = [
321
+ /** Text and icon tone that marks something as the assistant's. */
322
+ "accent",
323
+ /** Tint behind small assistant marks (an avatar disc, an info notice). */
324
+ "fill",
325
+ /** Hairline around assistant regions. */
326
+ "border",
327
+ /** Fill of the person's own turn. */
328
+ "user-bubble",
329
+ /** Fill of the assistant's turn, where an app draws it as a bubble. */
330
+ "assistant-bubble",
331
+ /** Focus ring inside assistant surfaces. */
332
+ "focus"
333
+ ];
334
+ var assistantSurfaceTokens = {
335
+ light: {
336
+ accent: info[600],
337
+ fill: info[100],
338
+ border: info[200],
339
+ "user-bubble": HEROUI_CONTENT.light.content2,
340
+ "assistant-bubble": HEROUI_CONTENT.light.content1,
341
+ focus: info[500]
342
+ },
343
+ dark: {
344
+ accent: info[300],
345
+ fill: info[900],
346
+ border: info[800],
347
+ "user-bubble": HEROUI_CONTENT.dark.content2,
348
+ "assistant-bubble": HEROUI_CONTENT.dark.content1,
349
+ focus: info[400]
350
+ }
351
+ };
352
+ function hexToChannels(hex) {
353
+ if (!/^#[0-9a-f]{6}$/i.test(hex)) throw new Error(`bad hex: ${hex}`);
354
+ return [1, 3, 5].map((start) => parseInt(hex.slice(start, start + 2), 16)).join(" ");
355
+ }
356
+ var assistantSurfaceVar = (name) => `--ai-${name}`;
357
+ var declarations = (theme) => Object.fromEntries(
358
+ ASSISTANT_SURFACE_TOKEN_NAMES.map((name) => [
359
+ assistantSurfaceVar(name),
360
+ hexToChannels(assistantSurfaceTokens[theme][name])
361
+ ])
362
+ );
363
+ var ASSISTANT_SURFACE_SELECTORS = {
364
+ light: ':root, .light, [data-theme="light"]',
365
+ dark: ".dark"
366
+ };
367
+ var assistantSurfaceBase = {
368
+ [ASSISTANT_SURFACE_SELECTORS.light]: declarations("light"),
369
+ [ASSISTANT_SURFACE_SELECTORS.dark]: declarations("dark")
370
+ };
371
+ var assistantSurfaceTailwindColors = Object.fromEntries(
372
+ ASSISTANT_SURFACE_TOKEN_NAMES.map((name) => [
373
+ name,
374
+ `rgb(var(${assistantSurfaceVar(name)}, ${hexToChannels(assistantSurfaceTokens.light[name])}) / <alpha-value>)`
375
+ ])
376
+ );
377
+
296
378
  // src/tailwind/index.ts
297
379
  var tailwindTheme = {
298
380
  colors: {
@@ -308,13 +390,26 @@ var tailwindTheme = {
308
390
  // `danger`/`info`/`warn` do not shadow the semantic palettes, and fed
309
391
  // from the token object so utility and token cannot disagree.
310
392
  // See src/tokens/pos-surface.ts.
311
- pos: posSurfaceTailwindColors
393
+ pos: posSurfaceTailwindColors,
394
+ // Assistant palette. Unlike `acct`/`pos` these resolve to CSS custom
395
+ // properties, because they have a dark value: the preset's plugin
396
+ // below writes the properties. See src/tokens/assistant-surface.ts.
397
+ ai: assistantSurfaceTailwindColors
312
398
  },
313
399
  fontFamily: typography.fontFamily,
314
400
  spacing,
315
401
  fontSize: typography.fontSize,
316
402
  fontWeight: typography.fontWeight,
317
- lineHeight: typography.lineHeight
403
+ lineHeight: typography.lineHeight,
404
+ keyframes: {
405
+ "record-shimmer": {
406
+ "0%": { backgroundPosition: "-25rem 0" },
407
+ "100%": { backgroundPosition: "25rem 0" }
408
+ }
409
+ },
410
+ animation: {
411
+ "record-shimmer": "record-shimmer 1.3s linear infinite"
412
+ }
318
413
  };
319
414
  function deepMerge(target, source) {
320
415
  if (!source || typeof source !== "object") {
@@ -378,11 +473,15 @@ var veevartContent = [
378
473
  "./node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}",
379
474
  "./node_modules/@veevarts/design-system/dist/**/*.{js,mjs,jsx,tsx}"
380
475
  ];
476
+ function assistantSurfacePlugin({ addBase }) {
477
+ addBase(assistantSurfaceBase);
478
+ }
381
479
  var veevartPreset = {
382
480
  theme: {
383
481
  extend: tailwindTheme
384
482
  },
385
- darkMode: "class"
483
+ darkMode: "class",
484
+ plugins: [assistantSurfacePlugin]
386
485
  };
387
486
  var tokens = {
388
487
  colors,
@@ -395,6 +494,9 @@ var tokens = {
395
494
  adminSurfaceCss,
396
495
  adminSurfaceTailwindColors,
397
496
  adminSurfaceTokens,
497
+ assistantSurfacePlugin,
498
+ assistantSurfaceTailwindColors,
499
+ assistantSurfaceTokens,
398
500
  colors,
399
501
  createHeroUIConfig,
400
502
  deepMerge,