@veevarts/design-system 2.1.0-beta.2 → 2.1.0-beta.20

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 (214) hide show
  1. package/README.md +39 -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 +5 -5
  13. package/dist/index.d.ts +4 -0
  14. package/dist/index.js +9332 -5319
  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/CardList/CardList.d.ts +3 -0
  30. package/dist/patterns/CardList/index.d.ts +2 -0
  31. package/dist/patterns/CardList/styles.d.ts +20 -0
  32. package/dist/patterns/CardList/types.d.ts +20 -0
  33. package/dist/patterns/CardStack/CardStack.d.ts +7 -0
  34. package/dist/patterns/CardStack/index.d.ts +2 -0
  35. package/dist/patterns/CardStack/styles.d.ts +2 -0
  36. package/dist/patterns/CashTenderForm/types.d.ts +6 -0
  37. package/dist/patterns/CellText/CellText.d.ts +16 -0
  38. package/dist/patterns/CellText/index.d.ts +2 -0
  39. package/dist/patterns/CellText/styles.d.ts +7 -0
  40. package/dist/patterns/DiscardGuard/DiscardGuard.d.ts +23 -0
  41. package/dist/patterns/DiscardGuard/context.d.ts +25 -0
  42. package/dist/patterns/DiscardGuard/index.d.ts +6 -0
  43. package/dist/patterns/DiscardGuard/useDiscardGuard.d.ts +38 -0
  44. package/dist/patterns/DonationAmounts/index.d.ts +1 -1
  45. package/dist/patterns/DonationAmounts/styles.d.ts +32 -0
  46. package/dist/patterns/DonationAmounts/types.d.ts +55 -1
  47. package/dist/patterns/DonationAmounts/utils/currency.d.ts +7 -3
  48. package/dist/patterns/EntityRow/EntityList.d.ts +9 -0
  49. package/dist/patterns/EntityRow/EntityRow.d.ts +3 -0
  50. package/dist/patterns/EntityRow/context.d.ts +2 -0
  51. package/dist/patterns/EntityRow/icons.d.ts +3 -0
  52. package/dist/patterns/EntityRow/index.d.ts +3 -0
  53. package/dist/patterns/EntityRow/initials.d.ts +6 -0
  54. package/dist/patterns/EntityRow/styles.d.ts +59 -0
  55. package/dist/patterns/EntityRow/types.d.ts +118 -0
  56. package/dist/patterns/FeedbackState/FeedbackState.d.ts +1 -1
  57. package/dist/patterns/FeedbackState/type.d.ts +11 -1
  58. package/dist/patterns/FilterSelect/FilterSelect.d.ts +3 -0
  59. package/dist/patterns/FilterSelect/FilterSelectGroup.d.ts +3 -0
  60. package/dist/patterns/FilterSelect/index.d.ts +3 -0
  61. package/dist/patterns/FilterSelect/styles.d.ts +17 -0
  62. package/dist/patterns/FilterSelect/types.d.ts +19 -0
  63. package/dist/patterns/InlineConfirm/InlineConfirm.d.ts +38 -0
  64. package/dist/patterns/InlineConfirm/index.d.ts +2 -0
  65. package/dist/patterns/InlineConfirm/styles.d.ts +16 -0
  66. package/dist/patterns/InstallmentSchedule/types.d.ts +29 -5
  67. package/dist/patterns/InstallmentSchedule/utils.d.ts +6 -0
  68. package/dist/patterns/KeyValueChip/KeyValueChip.d.ts +1 -0
  69. package/dist/patterns/KeyValueRows/KeyValueRows.d.ts +13 -0
  70. package/dist/patterns/KeyValueRows/index.d.ts +2 -0
  71. package/dist/patterns/KeyValueRows/styles.d.ts +8 -0
  72. package/dist/patterns/LineItemRows/LineItemRows.d.ts +17 -0
  73. package/dist/patterns/LineItemRows/index.d.ts +2 -0
  74. package/dist/patterns/LineItemRows/styles.d.ts +13 -0
  75. package/dist/patterns/ListPanel/ListPanel.d.ts +2 -0
  76. package/dist/patterns/LoadMoreFooter/LoadMoreFooter.d.ts +3 -0
  77. package/dist/patterns/LoadMoreFooter/index.d.ts +2 -0
  78. package/dist/patterns/LoadMoreFooter/styles.d.ts +7 -0
  79. package/dist/patterns/LoadMoreFooter/types.d.ts +10 -0
  80. package/dist/patterns/MetaCard/types.d.ts +2 -0
  81. package/dist/patterns/ModalPanels/ModalPanels.d.ts +35 -0
  82. package/dist/patterns/ModalPanels/context.d.ts +20 -0
  83. package/dist/patterns/ModalPanels/focus.d.ts +44 -0
  84. package/dist/patterns/ModalPanels/index.d.ts +6 -0
  85. package/dist/patterns/ModalPanels/styles.d.ts +13 -0
  86. package/dist/patterns/ModalPanels/useModalPanels.d.ts +30 -0
  87. package/dist/patterns/Notice/Notice.d.ts +16 -0
  88. package/dist/patterns/Notice/index.d.ts +2 -0
  89. package/dist/patterns/Notice/styles.d.ts +35 -0
  90. package/dist/patterns/Notice/type.d.ts +39 -0
  91. package/dist/patterns/OutcomeView/index.d.ts +1 -1
  92. package/dist/patterns/OutcomeView/types.d.ts +110 -3
  93. package/dist/patterns/PageHeader/PageHeader.d.ts +1 -0
  94. package/dist/patterns/PaginationSummary/PaginationSummary.d.ts +12 -0
  95. package/dist/patterns/PaginationSummary/index.d.ts +1 -1
  96. package/dist/patterns/PaymentSubAmountInput/PaymentSubAmountInput.d.ts +2 -0
  97. package/dist/patterns/PillTabs/PillTabs.d.ts +3 -0
  98. package/dist/patterns/PillTabs/ids.d.ts +9 -0
  99. package/dist/patterns/PillTabs/index.d.ts +3 -0
  100. package/dist/patterns/PillTabs/styles.d.ts +20 -0
  101. package/dist/patterns/PillTabs/types.d.ts +21 -0
  102. package/dist/patterns/{CatalogItemCard → Programs/CatalogItemCard}/type.d.ts +1 -1
  103. package/dist/patterns/{EventDetails → Programs/EventDetails}/EventDetails.d.ts +3 -1
  104. package/dist/patterns/{OfferCard → Programs/OfferCard}/OfferCard.d.ts +1 -1
  105. package/dist/patterns/{OfferCard → Programs/OfferCard}/types.d.ts +7 -0
  106. package/dist/patterns/Programs/ProgramListItem/ProgramListItem.d.ts +17 -0
  107. package/dist/patterns/Programs/ProgramListItem/index.d.ts +2 -0
  108. package/dist/patterns/Programs/index.d.ts +5 -0
  109. package/dist/patterns/ReasonSelect/types.d.ts +1 -0
  110. package/dist/patterns/RecordCard/RecordCard.d.ts +3 -0
  111. package/dist/patterns/RecordCard/index.d.ts +2 -0
  112. package/dist/patterns/RecordCard/styles.d.ts +16 -0
  113. package/dist/patterns/RecordCard/types.d.ts +22 -0
  114. package/dist/patterns/RecordHeader/RecordHeader.d.ts +3 -0
  115. package/dist/patterns/RecordHeader/index.d.ts +2 -0
  116. package/dist/patterns/RecordHeader/styles.d.ts +43 -0
  117. package/dist/patterns/RecordHeader/types.d.ts +30 -0
  118. package/dist/patterns/RecordLayout/RecordLayout.d.ts +3 -0
  119. package/dist/patterns/RecordLayout/index.d.ts +2 -0
  120. package/dist/patterns/RecordLayout/styles.d.ts +8 -0
  121. package/dist/patterns/RecordLayout/types.d.ts +6 -0
  122. package/dist/patterns/RecordTotals/RecordTotals.d.ts +19 -0
  123. package/dist/patterns/RecordTotals/index.d.ts +2 -0
  124. package/dist/patterns/RecordTotals/styles.d.ts +19 -0
  125. package/dist/patterns/RefundMethodCards/RefundMethodCards.d.ts +4 -0
  126. package/dist/patterns/RefundMethodCards/index.d.ts +2 -0
  127. package/dist/patterns/RefundMethodCards/styles.d.ts +59 -0
  128. package/dist/patterns/RefundMethodCards/types.d.ts +72 -0
  129. package/dist/patterns/RefundProgressList/RefundProgressList.d.ts +4 -0
  130. package/dist/patterns/RefundProgressList/index.d.ts +2 -0
  131. package/dist/patterns/RefundProgressList/styles.d.ts +44 -0
  132. package/dist/patterns/RefundProgressList/types.d.ts +37 -0
  133. package/dist/patterns/RelatedRecordList/RelatedRecordList.d.ts +3 -0
  134. package/dist/patterns/RelatedRecordList/index.d.ts +2 -0
  135. package/dist/patterns/RelatedRecordList/styles.d.ts +19 -0
  136. package/dist/patterns/RelatedRecordList/types.d.ts +17 -0
  137. package/dist/patterns/SessionExpiredCard/SessionExpiredCard.d.ts +14 -0
  138. package/dist/patterns/SessionExpiredCard/index.d.ts +2 -0
  139. package/dist/patterns/SessionExpiredCard/type.d.ts +6 -0
  140. package/dist/patterns/SplitPaymentSummary/index.d.ts +1 -1
  141. package/dist/patterns/SplitPaymentSummary/types.d.ts +18 -0
  142. package/dist/patterns/StatTiles/StatTiles.d.ts +3 -0
  143. package/dist/patterns/StatTiles/index.d.ts +2 -0
  144. package/dist/patterns/StatTiles/styles.d.ts +8 -0
  145. package/dist/patterns/StatTiles/types.d.ts +12 -0
  146. package/dist/patterns/StatusChip/StatusChip.d.ts +3 -3
  147. package/dist/patterns/StepProgress/StepProgress.d.ts +4 -0
  148. package/dist/patterns/StepProgress/index.d.ts +2 -0
  149. package/dist/patterns/StepProgress/styles.d.ts +29 -0
  150. package/dist/patterns/StepProgress/types.d.ts +43 -0
  151. package/dist/patterns/Summary/components/ActionBar.d.ts +2 -0
  152. package/dist/patterns/Summary/components/GrandTotalRow.d.ts +1 -0
  153. package/dist/patterns/Summary/components/ItemRow.d.ts +1 -0
  154. package/dist/patterns/Summary/components/SummaryBody.d.ts +4 -1
  155. package/dist/patterns/Summary/components/TotalsLineRow.d.ts +3 -2
  156. package/dist/patterns/Summary/types.d.ts +51 -9
  157. package/dist/patterns/TableSkeleton/TableSkeleton.d.ts +1 -0
  158. package/dist/patterns/TileSelect/TileSelect.d.ts +80 -2
  159. package/dist/patterns/TileSelect/index.d.ts +1 -1
  160. package/dist/patterns/TileSelect/styles.d.ts +14 -0
  161. package/dist/patterns/ToolbarButton/ToolbarButton.d.ts +2 -0
  162. package/dist/patterns/UnderlineTabs/UnderlineTabs.d.ts +20 -1
  163. package/dist/patterns/UnderlineTabs/index.d.ts +1 -1
  164. package/dist/patterns/UnderlineTabs/styles.d.ts +10 -0
  165. package/dist/patterns/WizardShell/index.d.ts +1 -1
  166. package/dist/patterns/WizardShell/types.d.ts +9 -1
  167. package/dist/patterns/grid-columns.d.ts +1 -1
  168. package/dist/patterns/index.d.ts +69 -17
  169. package/dist/patterns/shared/hasContent.d.ts +2 -0
  170. package/dist/patterns/shared/index.d.ts +1 -0
  171. package/dist/patterns/shared/motion.d.ts +6 -0
  172. package/dist/patterns/shared/recordTone.d.ts +9 -0
  173. package/dist/patterns/shared/rem.d.ts +4 -0
  174. package/dist/patterns/shared/useContainerWidth.d.ts +6 -0
  175. package/dist/patterns/shared/useDecimalDraft.d.ts +33 -0
  176. package/dist/patterns/shared/usePrefillEdits.d.ts +7 -0
  177. package/dist/providers/DensityProvider.d.ts +7 -0
  178. package/dist/providers/HeroUIProvider.d.ts +20 -1
  179. package/dist/providers/ToastProvider.d.ts +16 -0
  180. package/dist/providers/close-label-context.d.ts +18 -0
  181. package/dist/providers/density.d.ts +17 -0
  182. package/dist/providers/index.d.ts +6 -0
  183. package/dist/tailwind/index.cjs +25 -1
  184. package/dist/tailwind/index.d.ts +39 -0
  185. package/dist/tailwind/index.mjs +25 -1
  186. package/dist/test/ReducedMotion.d.ts +4 -0
  187. package/dist/test/RootFontSize.d.ts +5 -0
  188. package/dist/test/container-width.d.ts +14 -0
  189. package/dist/test/contrast.d.ts +1 -0
  190. package/dist/test/px-class-names.d.ts +1 -0
  191. package/dist/test/px-classes.d.ts +3 -0
  192. package/dist/test/root-font-size.d.ts +8 -0
  193. package/dist/tokens/pos-surface.d.ts +23 -4
  194. package/package.json +2 -2
  195. /package/dist/patterns/{CatalogItemCard → Programs/CatalogItemCard}/CatalogItemCard.d.ts +0 -0
  196. /package/dist/patterns/{CatalogItemCard → Programs/CatalogItemCard}/index.d.ts +0 -0
  197. /package/dist/patterns/{EventDetails → Programs/EventDetails}/index.d.ts +0 -0
  198. /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/CustomQuantitySelectorExample.d.ts +0 -0
  199. /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/ListWithEurosCurrencyExample.d.ts +0 -0
  200. /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/ListWithoutAnimationExample.d.ts +0 -0
  201. /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/index.d.ts +0 -0
  202. /package/dist/patterns/{OfferCard → Programs/OfferCard}/index.d.ts +0 -0
  203. /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/animations.d.ts +0 -0
  204. /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/currency.d.ts +0 -0
  205. /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/index.d.ts +0 -0
  206. /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/offers.d.ts +0 -0
  207. /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardEmpty.d.ts +0 -0
  208. /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardError.d.ts +0 -0
  209. /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardList.d.ts +0 -0
  210. /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardSkeleton.d.ts +0 -0
  211. /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/index.d.ts +0 -0
  212. /package/dist/patterns/{SessionTimeline → Programs/SessionTimeline}/SessionTimeline.d.ts +0 -0
  213. /package/dist/patterns/{SessionTimeline → Programs/SessionTimeline}/index.d.ts +0 -0
  214. /package/dist/patterns/{SessionTimeline → Programs/SessionTimeline}/type.d.ts +0 -0
@@ -1,6 +1,25 @@
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;
17
+ /**
18
+ * How framer-motion animations (overlays, toasts, tabs) treat the OS "reduce motion" setting.
19
+ * Defaults to `"user"`: follow the OS. HeroUI's own default is `"never"`, which animates regardless.
20
+ * `"always"` drops them everywhere, e.g. for an app-level reduce-motion preference.
21
+ */
22
+ reducedMotion?: 'user' | 'always' | 'never';
4
23
  }
5
- export declare function HeroUIProvider({ children }: HeroUIProviderProps): import("react/jsx-runtime").JSX.Element;
24
+ export declare function HeroUIProvider({ children, closeLabel, locale, reducedMotion }: HeroUIProviderProps): import("react/jsx-runtime").JSX.Element;
6
25
  export {};
@@ -0,0 +1,16 @@
1
+ import { ToastProvider as BaseToastProvider } from '@heroui/react';
2
+ import { ComponentProps, JSX } from 'react';
3
+ export type ToastProviderProps = ComponentProps<typeof BaseToastProvider>;
4
+ /**
5
+ * Drop-in for HeroUI's `ToastProvider` (same props, same `addToast` queue).
6
+ *
7
+ * - Titles wrap instead of truncating. A `toastProps.classNames.title` you pass
8
+ * is merged after the default, so it can still restyle the title.
9
+ * - Animation is off when the OS or the POS asks for reduced motion, unless
10
+ * `disableAnimation` is passed.
11
+ *
12
+ * HeroUI merges an `addToast({ classNames })` over the provider's `classNames`
13
+ * as a whole object, so a per-toast `classNames` without a `title` key brings
14
+ * the truncation back for that toast.
15
+ */
16
+ export declare function ToastProvider({ toastProps, disableAnimation, ...props }: ToastProviderProps): JSX.Element;
@@ -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,7 @@
1
1
  export { HeroUIProvider } from './HeroUIProvider';
2
+ export { ToastProvider } from './ToastProvider';
3
+ export type { ToastProviderProps } from './ToastProvider';
4
+ export { DensityProvider } from './DensityProvider';
5
+ export type { DensityProviderProps } from './DensityProvider';
6
+ export { useDensity, useControlSize } from './density';
7
+ export type { Density, ControlSize } from './density';
@@ -274,6 +274,17 @@ var posSurfaceTokens = {
274
274
  line: "#E7E7E9",
275
275
  /** `--line2`: the lighter hairline under list rows and above the role bar. */
276
276
  "line-2": "#F1F1F3",
277
+ hair: "#F0F0F1",
278
+ page: "#FBFBFB",
279
+ field: "#E5E5E5",
280
+ /** A hairline under the pointer (`default-300`). */
281
+ "line-strong": "#D4D4D8",
282
+ /** `--ink`: body text (`default-900`). */
283
+ ink: "#18181B",
284
+ /** `--muted`: secondary text and eyebrows, 4.83:1 on white (`default-500`). */
285
+ muted: "#71717A",
286
+ /** Placeholder text (`default-400`). Never for content: 2.56:1 on white. */
287
+ faint: "#A1A1AA",
277
288
  /** `--okb` / `--okf` */
278
289
  "ok-fill": "#EAF3DE",
279
290
  ok: "#3B6D11",
@@ -288,6 +299,10 @@ var posSurfaceTokens = {
288
299
  /** `--ib` / `--if` */
289
300
  "info-fill": "#EAF1FC",
290
301
  info: "#1D4FA8",
302
+ "violet-fill": "#F1ECFB",
303
+ violet: "#6D28D9",
304
+ "neutral-fill": "#F4F4F5",
305
+ neutral: "#52525B",
291
306
  /** `.btn-dstr` — the fill behind an irreversible confirmation. */
292
307
  destructive: "#A32D2D"
293
308
  };
@@ -314,7 +329,16 @@ var tailwindTheme = {
314
329
  spacing,
315
330
  fontSize: typography.fontSize,
316
331
  fontWeight: typography.fontWeight,
317
- lineHeight: typography.lineHeight
332
+ lineHeight: typography.lineHeight,
333
+ keyframes: {
334
+ "record-shimmer": {
335
+ "0%": { backgroundPosition: "-25rem 0" },
336
+ "100%": { backgroundPosition: "25rem 0" }
337
+ }
338
+ },
339
+ animation: {
340
+ "record-shimmer": "record-shimmer 1.3s linear infinite"
341
+ }
318
342
  };
319
343
  function deepMerge(target, source) {
320
344
  if (!source || typeof source !== "object") {
@@ -120,6 +120,19 @@ export declare const tailwindTheme: {
120
120
  readonly normal: "1.5";
121
121
  readonly relaxed: "1.75";
122
122
  };
123
+ keyframes: {
124
+ 'record-shimmer': {
125
+ '0%': {
126
+ backgroundPosition: string;
127
+ };
128
+ '100%': {
129
+ backgroundPosition: string;
130
+ };
131
+ };
132
+ };
133
+ animation: {
134
+ 'record-shimmer': string;
135
+ };
123
136
  };
124
137
  /**
125
138
  * Deep merge utility for objects
@@ -322,6 +335,19 @@ export declare const veevartPreset: {
322
335
  readonly normal: "1.5";
323
336
  readonly relaxed: "1.75";
324
337
  };
338
+ keyframes: {
339
+ 'record-shimmer': {
340
+ '0%': {
341
+ backgroundPosition: string;
342
+ };
343
+ '100%': {
344
+ backgroundPosition: string;
345
+ };
346
+ };
347
+ };
348
+ animation: {
349
+ 'record-shimmer': string;
350
+ };
325
351
  };
326
352
  };
327
353
  darkMode: "class";
@@ -554,5 +580,18 @@ export declare const tokens: {
554
580
  readonly normal: "1.5";
555
581
  readonly relaxed: "1.75";
556
582
  };
583
+ keyframes: {
584
+ 'record-shimmer': {
585
+ '0%': {
586
+ backgroundPosition: string;
587
+ };
588
+ '100%': {
589
+ backgroundPosition: string;
590
+ };
591
+ };
592
+ };
593
+ animation: {
594
+ 'record-shimmer': string;
595
+ };
557
596
  };
558
597
  };
@@ -235,6 +235,17 @@ var posSurfaceTokens = {
235
235
  line: "#E7E7E9",
236
236
  /** `--line2`: the lighter hairline under list rows and above the role bar. */
237
237
  "line-2": "#F1F1F3",
238
+ hair: "#F0F0F1",
239
+ page: "#FBFBFB",
240
+ field: "#E5E5E5",
241
+ /** A hairline under the pointer (`default-300`). */
242
+ "line-strong": "#D4D4D8",
243
+ /** `--ink`: body text (`default-900`). */
244
+ ink: "#18181B",
245
+ /** `--muted`: secondary text and eyebrows, 4.83:1 on white (`default-500`). */
246
+ muted: "#71717A",
247
+ /** Placeholder text (`default-400`). Never for content: 2.56:1 on white. */
248
+ faint: "#A1A1AA",
238
249
  /** `--okb` / `--okf` */
239
250
  "ok-fill": "#EAF3DE",
240
251
  ok: "#3B6D11",
@@ -249,6 +260,10 @@ var posSurfaceTokens = {
249
260
  /** `--ib` / `--if` */
250
261
  "info-fill": "#EAF1FC",
251
262
  info: "#1D4FA8",
263
+ "violet-fill": "#F1ECFB",
264
+ violet: "#6D28D9",
265
+ "neutral-fill": "#F4F4F5",
266
+ neutral: "#52525B",
252
267
  /** `.btn-dstr` — the fill behind an irreversible confirmation. */
253
268
  destructive: "#A32D2D"
254
269
  };
@@ -275,7 +290,16 @@ var tailwindTheme = {
275
290
  spacing,
276
291
  fontSize: typography.fontSize,
277
292
  fontWeight: typography.fontWeight,
278
- lineHeight: typography.lineHeight
293
+ lineHeight: typography.lineHeight,
294
+ keyframes: {
295
+ "record-shimmer": {
296
+ "0%": { backgroundPosition: "-25rem 0" },
297
+ "100%": { backgroundPosition: "25rem 0" }
298
+ }
299
+ },
300
+ animation: {
301
+ "record-shimmer": "record-shimmer 1.3s linear infinite"
302
+ }
279
303
  };
280
304
  function deepMerge(target, source) {
281
305
  if (!source || typeof source !== "object") {
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from 'react';
2
+ export declare function ReducedMotion({ children }: {
3
+ children?: ReactNode;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ export declare function RootFontSize({ size, children }: {
3
+ size: string;
4
+ children?: ReactNode;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ export declare class FakeResizeObserver {
2
+ static width: number;
3
+ static instances: FakeResizeObserver[];
4
+ disconnected: boolean;
5
+ private readonly callback;
6
+ private readonly targets;
7
+ constructor(callback: ResizeObserverCallback);
8
+ observe(target: Element): void;
9
+ unobserve(): void;
10
+ disconnect(): void;
11
+ emit(width: number): void;
12
+ }
13
+ export declare function stubContainerWidth(width: number): void;
14
+ export declare function resizeContainers(width: number): void;
@@ -0,0 +1 @@
1
+ export declare function contrastRatio(a: string, b: string): number;
@@ -0,0 +1 @@
1
+ export declare const pxClasses: (root: Element) => string[];
@@ -0,0 +1,3 @@
1
+ import { pxClasses } from './px-class-names';
2
+ export { pxClasses };
3
+ export declare const expectNoPxClasses: (root: Element) => void;
@@ -0,0 +1,8 @@
1
+ import { ComponentType } from 'react';
2
+ export declare const LARGE_TEXT_ROOT = "137.5%";
3
+ export declare const LARGE_TEXT_SCALE = 1.375;
4
+ export declare const withRootFontSize: (size: string) => (Story: ComponentType) => import('react').FunctionComponentElement<{
5
+ size: string;
6
+ children?: import('react').ReactNode;
7
+ }>;
8
+ export declare const fontSizePx: (element: Element) => number;
@@ -4,10 +4,14 @@
4
4
  * The refund wizard is a pixel-signed-off surface: every fill, hairline and
5
5
  * status tone in it comes from the Jul-28 POS mockup, and "close enough from
6
6
  * the nearest scale step" is not the contract. Most of that mockup already
7
- * agrees with what we ship — its `--tc` is `primary-500` to the byte and its
8
- * `--ink`/`--muted`/`--muted2`/`--sec` are HeroUI's `default-900`/`500`/`600`/
9
- * `100`. Those are consumed through the semantic classes and are deliberately
10
- * NOT repeated here.
7
+ * agrees with what we ship — its `--tc` is `primary-500` to the byte, so the
8
+ * brand is consumed as `primary` and is deliberately NOT repeated here.
9
+ *
10
+ * Its text tones (`--ink`, `--muted`, the placeholder and hover greys) equal
11
+ * HeroUI's stock `default-900`/`500`/`400`/`300`, but they are kept below as
12
+ * DS tokens: POS and Quick surfaces style text with `pos-*`, never with the
13
+ * stock HeroUI semantic scale (decision of 2026-10-21). `--muted2`/`--sec`
14
+ * were already here as `neutral` / `neutral-fill`.
11
15
  *
12
16
  * What IS here is the remainder: the two hairlines and the warm status
13
17
  * fill/text pairs, none of which have an equivalent in either scale. They are
@@ -25,6 +29,17 @@ export declare const posSurfaceTokens: {
25
29
  readonly line: "#E7E7E9";
26
30
  /** `--line2`: the lighter hairline under list rows and above the role bar. */
27
31
  readonly 'line-2': "#F1F1F3";
32
+ readonly hair: "#F0F0F1";
33
+ readonly page: "#FBFBFB";
34
+ readonly field: "#E5E5E5";
35
+ /** A hairline under the pointer (`default-300`). */
36
+ readonly 'line-strong': "#D4D4D8";
37
+ /** `--ink`: body text (`default-900`). */
38
+ readonly ink: "#18181B";
39
+ /** `--muted`: secondary text and eyebrows, 4.83:1 on white (`default-500`). */
40
+ readonly muted: "#71717A";
41
+ /** Placeholder text (`default-400`). Never for content: 2.56:1 on white. */
42
+ readonly faint: "#A1A1AA";
28
43
  /** `--okb` / `--okf` */
29
44
  readonly 'ok-fill': "#EAF3DE";
30
45
  readonly ok: "#3B6D11";
@@ -39,6 +54,10 @@ export declare const posSurfaceTokens: {
39
54
  /** `--ib` / `--if` */
40
55
  readonly 'info-fill': "#EAF1FC";
41
56
  readonly info: "#1D4FA8";
57
+ readonly 'violet-fill': "#F1ECFB";
58
+ readonly violet: "#6D28D9";
59
+ readonly 'neutral-fill': "#F4F4F5";
60
+ readonly neutral: "#52525B";
42
61
  /** `.btn-dstr` — the fill behind an irreversible confirmation. */
43
62
  readonly destructive: "#A32D2D";
44
63
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@veevarts/design-system",
3
3
  "private": false,
4
- "version": "2.1.0-beta.2",
4
+ "version": "2.1.0-beta.20",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -104,7 +104,7 @@
104
104
  "eslint-plugin-react-hooks": "^7.0.1",
105
105
  "eslint-plugin-react-refresh": "^0.4.24",
106
106
  "eslint-plugin-storybook": "^10.0.8",
107
- "framer-motion": "^11.15.0",
107
+ "framer-motion": "^12.43.0",
108
108
  "globals": "^16.5.0",
109
109
  "jsdom": "^27.4.0",
110
110
  "lucide-react": "^0.562.0",