@veevarts/design-system 2.5.0 → 2.7.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 (96) hide show
  1. package/dist/index.cjs +8 -8
  2. package/dist/index.js +6359 -4955
  3. package/dist/patterns/ActivityTimeline/ActivityTimeline.d.ts +3 -0
  4. package/dist/patterns/ActivityTimeline/index.d.ts +2 -0
  5. package/dist/patterns/ActivityTimeline/styles.d.ts +15 -0
  6. package/dist/patterns/ActivityTimeline/types.d.ts +15 -0
  7. package/dist/patterns/AdminTable/AdminTable.d.ts +1 -0
  8. package/dist/patterns/AdminTable/styles.d.ts +6 -0
  9. package/dist/patterns/AdminToolbar/AdminToolbar.d.ts +1 -0
  10. package/dist/patterns/AmountList/AmountList.d.ts +3 -0
  11. package/dist/patterns/AmountList/index.d.ts +2 -0
  12. package/dist/patterns/AmountList/styles.d.ts +23 -0
  13. package/dist/patterns/AmountList/types.d.ts +26 -0
  14. package/dist/patterns/CardList/CardList.d.ts +3 -0
  15. package/dist/patterns/CardList/index.d.ts +2 -0
  16. package/dist/patterns/CardList/styles.d.ts +16 -0
  17. package/dist/patterns/CardList/types.d.ts +19 -0
  18. package/dist/patterns/CardStack/CardStack.d.ts +7 -0
  19. package/dist/patterns/CardStack/index.d.ts +2 -0
  20. package/dist/patterns/CardStack/styles.d.ts +2 -0
  21. package/dist/patterns/CellText/CellText.d.ts +16 -0
  22. package/dist/patterns/CellText/index.d.ts +2 -0
  23. package/dist/patterns/CellText/styles.d.ts +7 -0
  24. package/dist/patterns/FilterSelect/FilterSelect.d.ts +3 -0
  25. package/dist/patterns/FilterSelect/index.d.ts +2 -0
  26. package/dist/patterns/FilterSelect/styles.d.ts +14 -0
  27. package/dist/patterns/FilterSelect/types.d.ts +13 -0
  28. package/dist/patterns/InstallmentSchedule/types.d.ts +29 -5
  29. package/dist/patterns/InstallmentSchedule/utils.d.ts +6 -0
  30. package/dist/patterns/KeyValueChip/KeyValueChip.d.ts +1 -0
  31. package/dist/patterns/KeyValueRows/KeyValueRows.d.ts +13 -0
  32. package/dist/patterns/KeyValueRows/index.d.ts +2 -0
  33. package/dist/patterns/KeyValueRows/styles.d.ts +8 -0
  34. package/dist/patterns/LineItemRows/LineItemRows.d.ts +17 -0
  35. package/dist/patterns/LineItemRows/index.d.ts +2 -0
  36. package/dist/patterns/LineItemRows/styles.d.ts +13 -0
  37. package/dist/patterns/ListPanel/ListPanel.d.ts +2 -0
  38. package/dist/patterns/LoadMoreFooter/LoadMoreFooter.d.ts +3 -0
  39. package/dist/patterns/LoadMoreFooter/index.d.ts +2 -0
  40. package/dist/patterns/LoadMoreFooter/styles.d.ts +7 -0
  41. package/dist/patterns/LoadMoreFooter/types.d.ts +10 -0
  42. package/dist/patterns/PageHeader/PageHeader.d.ts +1 -0
  43. package/dist/patterns/PaymentSubAmountInput/PaymentSubAmountInput.d.ts +2 -0
  44. package/dist/patterns/PillTabs/PillTabs.d.ts +3 -0
  45. package/dist/patterns/PillTabs/ids.d.ts +9 -0
  46. package/dist/patterns/PillTabs/index.d.ts +3 -0
  47. package/dist/patterns/PillTabs/styles.d.ts +10 -0
  48. package/dist/patterns/PillTabs/types.d.ts +13 -0
  49. package/dist/patterns/RecordCard/RecordCard.d.ts +3 -0
  50. package/dist/patterns/RecordCard/index.d.ts +2 -0
  51. package/dist/patterns/RecordCard/styles.d.ts +15 -0
  52. package/dist/patterns/RecordCard/types.d.ts +17 -0
  53. package/dist/patterns/RecordHeader/RecordHeader.d.ts +3 -0
  54. package/dist/patterns/RecordHeader/index.d.ts +2 -0
  55. package/dist/patterns/RecordHeader/styles.d.ts +43 -0
  56. package/dist/patterns/RecordHeader/types.d.ts +30 -0
  57. package/dist/patterns/RecordLayout/RecordLayout.d.ts +3 -0
  58. package/dist/patterns/RecordLayout/index.d.ts +2 -0
  59. package/dist/patterns/RecordLayout/styles.d.ts +8 -0
  60. package/dist/patterns/RecordLayout/types.d.ts +6 -0
  61. package/dist/patterns/RecordTotals/RecordTotals.d.ts +19 -0
  62. package/dist/patterns/RecordTotals/index.d.ts +2 -0
  63. package/dist/patterns/RecordTotals/styles.d.ts +19 -0
  64. package/dist/patterns/RelatedRecordList/RelatedRecordList.d.ts +3 -0
  65. package/dist/patterns/RelatedRecordList/index.d.ts +2 -0
  66. package/dist/patterns/RelatedRecordList/styles.d.ts +19 -0
  67. package/dist/patterns/RelatedRecordList/types.d.ts +17 -0
  68. package/dist/patterns/StatTiles/StatTiles.d.ts +3 -0
  69. package/dist/patterns/StatTiles/index.d.ts +2 -0
  70. package/dist/patterns/StatTiles/styles.d.ts +8 -0
  71. package/dist/patterns/StatTiles/types.d.ts +12 -0
  72. package/dist/patterns/StatusChip/StatusChip.d.ts +3 -3
  73. package/dist/patterns/Summary/components/SummaryBody.d.ts +3 -1
  74. package/dist/patterns/Summary/components/TotalsLineRow.d.ts +2 -2
  75. package/dist/patterns/Summary/types.d.ts +24 -9
  76. package/dist/patterns/TableSkeleton/TableSkeleton.d.ts +1 -0
  77. package/dist/patterns/ToolbarButton/ToolbarButton.d.ts +2 -0
  78. package/dist/patterns/index.d.ts +33 -1
  79. package/dist/patterns/shared/hasContent.d.ts +2 -0
  80. package/dist/patterns/shared/index.d.ts +1 -0
  81. package/dist/patterns/shared/motion.d.ts +6 -0
  82. package/dist/patterns/shared/recordTone.d.ts +9 -0
  83. package/dist/patterns/shared/rem.d.ts +4 -0
  84. package/dist/patterns/shared/useContainerWidth.d.ts +6 -0
  85. package/dist/patterns/shared/useDecimalDraft.d.ts +33 -0
  86. package/dist/tailwind/index.cjs +17 -1
  87. package/dist/tailwind/index.d.ts +39 -0
  88. package/dist/tailwind/index.mjs +17 -1
  89. package/dist/test/ReducedMotion.d.ts +4 -0
  90. package/dist/test/RootFontSize.d.ts +5 -0
  91. package/dist/test/container-width.d.ts +14 -0
  92. package/dist/test/contrast.d.ts +1 -0
  93. package/dist/test/px-classes.d.ts +2 -0
  94. package/dist/test/root-font-size.d.ts +8 -0
  95. package/dist/tokens/pos-surface.d.ts +7 -0
  96. package/package.json +1 -1
@@ -235,6 +235,9 @@ 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",
238
241
  /** `--okb` / `--okf` */
239
242
  "ok-fill": "#EAF3DE",
240
243
  ok: "#3B6D11",
@@ -249,6 +252,10 @@ var posSurfaceTokens = {
249
252
  /** `--ib` / `--if` */
250
253
  "info-fill": "#EAF1FC",
251
254
  info: "#1D4FA8",
255
+ "violet-fill": "#F1ECFB",
256
+ violet: "#6D28D9",
257
+ "neutral-fill": "#F4F4F5",
258
+ neutral: "#52525B",
252
259
  /** `.btn-dstr` — the fill behind an irreversible confirmation. */
253
260
  destructive: "#A32D2D"
254
261
  };
@@ -275,7 +282,16 @@ var tailwindTheme = {
275
282
  spacing,
276
283
  fontSize: typography.fontSize,
277
284
  fontWeight: typography.fontWeight,
278
- lineHeight: typography.lineHeight
285
+ lineHeight: typography.lineHeight,
286
+ keyframes: {
287
+ "record-shimmer": {
288
+ "0%": { backgroundPosition: "-25rem 0" },
289
+ "100%": { backgroundPosition: "25rem 0" }
290
+ }
291
+ },
292
+ animation: {
293
+ "record-shimmer": "record-shimmer 1.3s linear infinite"
294
+ }
279
295
  };
280
296
  function deepMerge(target, source) {
281
297
  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,2 @@
1
+ export declare const pxClasses: (root: Element) => string[];
2
+ 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;
@@ -25,6 +25,9 @@ export declare const posSurfaceTokens: {
25
25
  readonly line: "#E7E7E9";
26
26
  /** `--line2`: the lighter hairline under list rows and above the role bar. */
27
27
  readonly 'line-2': "#F1F1F3";
28
+ readonly hair: "#F0F0F1";
29
+ readonly page: "#FBFBFB";
30
+ readonly field: "#E5E5E5";
28
31
  /** `--okb` / `--okf` */
29
32
  readonly 'ok-fill': "#EAF3DE";
30
33
  readonly ok: "#3B6D11";
@@ -39,6 +42,10 @@ export declare const posSurfaceTokens: {
39
42
  /** `--ib` / `--if` */
40
43
  readonly 'info-fill': "#EAF1FC";
41
44
  readonly info: "#1D4FA8";
45
+ readonly 'violet-fill': "#F1ECFB";
46
+ readonly violet: "#6D28D9";
47
+ readonly 'neutral-fill': "#F4F4F5";
48
+ readonly neutral: "#52525B";
42
49
  /** `.btn-dstr` — the fill behind an irreversible confirmation. */
43
50
  readonly destructive: "#A32D2D";
44
51
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@veevarts/design-system",
3
3
  "private": false,
4
- "version": "2.5.0",
4
+ "version": "2.7.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",