@veevarts/design-system 2.1.0-beta.6 → 2.1.0-beta.8
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.
- package/dist/index.cjs +8 -8
- package/dist/index.js +6549 -5083
- package/dist/patterns/ActivityTimeline/ActivityTimeline.d.ts +3 -0
- package/dist/patterns/ActivityTimeline/index.d.ts +2 -0
- package/dist/patterns/ActivityTimeline/styles.d.ts +15 -0
- package/dist/patterns/ActivityTimeline/types.d.ts +15 -0
- package/dist/patterns/AdminTable/AdminTable.d.ts +1 -0
- package/dist/patterns/AdminTable/styles.d.ts +6 -0
- package/dist/patterns/AdminToolbar/AdminToolbar.d.ts +1 -0
- package/dist/patterns/AmountList/AmountList.d.ts +3 -0
- package/dist/patterns/AmountList/index.d.ts +2 -0
- package/dist/patterns/AmountList/styles.d.ts +23 -0
- package/dist/patterns/AmountList/types.d.ts +26 -0
- package/dist/patterns/CardList/CardList.d.ts +3 -0
- package/dist/patterns/CardList/index.d.ts +2 -0
- package/dist/patterns/CardList/styles.d.ts +16 -0
- package/dist/patterns/CardList/types.d.ts +19 -0
- package/dist/patterns/CardStack/CardStack.d.ts +7 -0
- package/dist/patterns/CardStack/index.d.ts +2 -0
- package/dist/patterns/CardStack/styles.d.ts +2 -0
- package/dist/patterns/CellText/CellText.d.ts +16 -0
- package/dist/patterns/CellText/index.d.ts +2 -0
- package/dist/patterns/CellText/styles.d.ts +7 -0
- package/dist/patterns/FilterSelect/FilterSelect.d.ts +3 -0
- package/dist/patterns/FilterSelect/index.d.ts +2 -0
- package/dist/patterns/FilterSelect/styles.d.ts +14 -0
- package/dist/patterns/FilterSelect/types.d.ts +13 -0
- package/dist/patterns/InstallmentSchedule/types.d.ts +29 -5
- package/dist/patterns/InstallmentSchedule/utils.d.ts +6 -0
- package/dist/patterns/KeyValueChip/KeyValueChip.d.ts +1 -0
- package/dist/patterns/KeyValueRows/KeyValueRows.d.ts +13 -0
- package/dist/patterns/KeyValueRows/index.d.ts +2 -0
- package/dist/patterns/KeyValueRows/styles.d.ts +8 -0
- package/dist/patterns/LineItemRows/LineItemRows.d.ts +17 -0
- package/dist/patterns/LineItemRows/index.d.ts +2 -0
- package/dist/patterns/LineItemRows/styles.d.ts +13 -0
- package/dist/patterns/ListPanel/ListPanel.d.ts +2 -0
- package/dist/patterns/LoadMoreFooter/LoadMoreFooter.d.ts +3 -0
- package/dist/patterns/LoadMoreFooter/index.d.ts +2 -0
- package/dist/patterns/LoadMoreFooter/styles.d.ts +7 -0
- package/dist/patterns/LoadMoreFooter/types.d.ts +10 -0
- package/dist/patterns/PageHeader/PageHeader.d.ts +1 -0
- package/dist/patterns/PaymentSubAmountInput/PaymentSubAmountInput.d.ts +2 -0
- package/dist/patterns/PillTabs/PillTabs.d.ts +3 -0
- package/dist/patterns/PillTabs/ids.d.ts +9 -0
- package/dist/patterns/PillTabs/index.d.ts +3 -0
- package/dist/patterns/PillTabs/styles.d.ts +10 -0
- package/dist/patterns/PillTabs/types.d.ts +13 -0
- package/dist/patterns/RecordCard/RecordCard.d.ts +3 -0
- package/dist/patterns/RecordCard/index.d.ts +2 -0
- package/dist/patterns/RecordCard/styles.d.ts +15 -0
- package/dist/patterns/RecordCard/types.d.ts +17 -0
- package/dist/patterns/RecordHeader/RecordHeader.d.ts +3 -0
- package/dist/patterns/RecordHeader/index.d.ts +2 -0
- package/dist/patterns/RecordHeader/styles.d.ts +43 -0
- package/dist/patterns/RecordHeader/types.d.ts +30 -0
- package/dist/patterns/RecordLayout/RecordLayout.d.ts +3 -0
- package/dist/patterns/RecordLayout/index.d.ts +2 -0
- package/dist/patterns/RecordLayout/styles.d.ts +8 -0
- package/dist/patterns/RecordLayout/types.d.ts +6 -0
- package/dist/patterns/RecordTotals/RecordTotals.d.ts +19 -0
- package/dist/patterns/RecordTotals/index.d.ts +2 -0
- package/dist/patterns/RecordTotals/styles.d.ts +19 -0
- package/dist/patterns/RelatedRecordList/RelatedRecordList.d.ts +3 -0
- package/dist/patterns/RelatedRecordList/index.d.ts +2 -0
- package/dist/patterns/RelatedRecordList/styles.d.ts +19 -0
- package/dist/patterns/RelatedRecordList/types.d.ts +17 -0
- package/dist/patterns/StatTiles/StatTiles.d.ts +3 -0
- package/dist/patterns/StatTiles/index.d.ts +2 -0
- package/dist/patterns/StatTiles/styles.d.ts +8 -0
- package/dist/patterns/StatTiles/types.d.ts +12 -0
- package/dist/patterns/StatusChip/StatusChip.d.ts +3 -3
- package/dist/patterns/Summary/components/GrandTotalRow.d.ts +1 -0
- package/dist/patterns/Summary/components/ItemRow.d.ts +1 -0
- package/dist/patterns/Summary/components/SummaryBody.d.ts +4 -1
- package/dist/patterns/Summary/components/TotalsLineRow.d.ts +3 -2
- package/dist/patterns/Summary/types.d.ts +31 -9
- package/dist/patterns/TableSkeleton/TableSkeleton.d.ts +1 -0
- package/dist/patterns/ToolbarButton/ToolbarButton.d.ts +2 -0
- package/dist/patterns/index.d.ts +33 -1
- package/dist/patterns/shared/hasContent.d.ts +2 -0
- package/dist/patterns/shared/index.d.ts +1 -0
- package/dist/patterns/shared/motion.d.ts +6 -0
- package/dist/patterns/shared/recordTone.d.ts +9 -0
- package/dist/patterns/shared/rem.d.ts +4 -0
- package/dist/patterns/shared/useContainerWidth.d.ts +6 -0
- package/dist/patterns/shared/useDecimalDraft.d.ts +33 -0
- package/dist/tailwind/index.cjs +17 -1
- package/dist/tailwind/index.d.ts +39 -0
- package/dist/tailwind/index.mjs +17 -1
- package/dist/test/ReducedMotion.d.ts +4 -0
- package/dist/test/RootFontSize.d.ts +5 -0
- package/dist/test/container-width.d.ts +14 -0
- package/dist/test/contrast.d.ts +1 -0
- package/dist/test/px-classes.d.ts +2 -0
- package/dist/test/root-font-size.d.ts +8 -0
- package/dist/tokens/pos-surface.d.ts +7 -0
- package/package.json +1 -1
package/dist/tailwind/index.d.ts
CHANGED
|
@@ -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
|
};
|
package/dist/tailwind/index.mjs
CHANGED
|
@@ -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,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,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
|
};
|