@stella-source/stellasource-dsl 0.2.9 → 1.2.9
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/cjs/index.js +8 -27
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/TableUnitsAndTotals/TableUnitsAndTotals.d.ts +2 -2
- package/dist/cjs/types/components/TableUnitsAndTotals/types.d.ts +12 -25
- package/dist/esm/index.esm.js +9 -28
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/esm/types/components/TableUnitsAndTotals/TableUnitsAndTotals.d.ts +2 -2
- package/dist/esm/types/components/TableUnitsAndTotals/types.d.ts +12 -25
- package/dist/index.d.ts +15 -28
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
declare const TableUnitsAndTotals: ({ id, className, value, subValue,
|
|
2
|
+
import { TableUnitsAndTotalsProps } from "./types";
|
|
3
|
+
declare const TableUnitsAndTotals: ({ id, className, value, subValue, valueRightCategory, valueLeftCategory, subValueRightCategory, subValueLeftCategory }: TableUnitsAndTotalsProps) => React.JSX.Element;
|
|
4
4
|
export default TableUnitsAndTotals;
|
|
@@ -1,32 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
TOTAL_PRICE = "total-price",
|
|
3
|
-
TOTAL_WEIGHT = "total-weight"
|
|
4
|
-
}
|
|
5
|
-
export declare enum QuoteCategory {
|
|
6
|
-
ITEM = "/item",
|
|
7
|
-
HOUR = "/hr",
|
|
8
|
-
CWT = "CWT",
|
|
9
|
-
LBS = "lbs",
|
|
10
|
-
KG = "kg",
|
|
11
|
-
TON = "ton"
|
|
12
|
-
}
|
|
13
|
-
interface TableUnitsAndTotalsProps {
|
|
1
|
+
interface TableUnitsAndTotalsCoreProps {
|
|
14
2
|
id?: string;
|
|
15
3
|
className?: string;
|
|
16
4
|
value: number | string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
interface TotalPriceProps {
|
|
21
|
-
variant: `${QuoteVariants.TOTAL_PRICE}`;
|
|
22
|
-
leftCategory?: `${TableUnitsAndTotalsLeftCategory}`;
|
|
5
|
+
valueRightCategory?: string;
|
|
6
|
+
valueLeftCategory?: string;
|
|
23
7
|
}
|
|
24
|
-
interface
|
|
25
|
-
|
|
26
|
-
|
|
8
|
+
interface TableUnitsAndTotalsSubValueProps {
|
|
9
|
+
subValue: number | string;
|
|
10
|
+
subValueRightCategory?: string;
|
|
11
|
+
subValueLeftCategory?: string;
|
|
27
12
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
13
|
+
interface TableUnitsAndTotalsWithoutSubValueProps {
|
|
14
|
+
subValue?: never;
|
|
15
|
+
subValueRightCategory?: never;
|
|
16
|
+
subValueLeftCategory?: never;
|
|
31
17
|
}
|
|
18
|
+
export type TableUnitsAndTotalsProps = TableUnitsAndTotalsCoreProps & (TableUnitsAndTotalsSubValueProps | TableUnitsAndTotalsWithoutSubValueProps);
|
|
32
19
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -312,39 +312,26 @@ interface SyncProps {
|
|
|
312
312
|
|
|
313
313
|
declare const Sync: ({ dataTestId, onClick, className, id, showTime, labelPosition, }: SyncProps) => React$1.JSX.Element;
|
|
314
314
|
|
|
315
|
-
|
|
316
|
-
TOTAL_PRICE = "total-price",
|
|
317
|
-
TOTAL_WEIGHT = "total-weight"
|
|
318
|
-
}
|
|
319
|
-
declare enum QuoteCategory {
|
|
320
|
-
ITEM = "/item",
|
|
321
|
-
HOUR = "/hr",
|
|
322
|
-
CWT = "CWT",
|
|
323
|
-
LBS = "lbs",
|
|
324
|
-
KG = "kg",
|
|
325
|
-
TON = "ton"
|
|
326
|
-
}
|
|
327
|
-
interface TableUnitsAndTotalsProps {
|
|
315
|
+
interface TableUnitsAndTotalsCoreProps {
|
|
328
316
|
id?: string;
|
|
329
317
|
className?: string;
|
|
330
318
|
value: number | string;
|
|
331
|
-
|
|
332
|
-
|
|
319
|
+
valueRightCategory?: string;
|
|
320
|
+
valueLeftCategory?: string;
|
|
333
321
|
}
|
|
334
|
-
interface
|
|
335
|
-
|
|
336
|
-
|
|
322
|
+
interface TableUnitsAndTotalsSubValueProps {
|
|
323
|
+
subValue: number | string;
|
|
324
|
+
subValueRightCategory?: string;
|
|
325
|
+
subValueLeftCategory?: string;
|
|
337
326
|
}
|
|
338
|
-
interface
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
type TableUnitsAndTotals$1 = TableUnitsAndTotalsProps & (TotalPriceProps | TotalWeightProps);
|
|
343
|
-
declare enum TableUnitsAndTotalsLeftCategory {
|
|
344
|
-
US_CURRENCY = "$"
|
|
327
|
+
interface TableUnitsAndTotalsWithoutSubValueProps {
|
|
328
|
+
subValue?: never;
|
|
329
|
+
subValueRightCategory?: never;
|
|
330
|
+
subValueLeftCategory?: never;
|
|
345
331
|
}
|
|
332
|
+
type TableUnitsAndTotalsProps = TableUnitsAndTotalsCoreProps & (TableUnitsAndTotalsSubValueProps | TableUnitsAndTotalsWithoutSubValueProps);
|
|
346
333
|
|
|
347
|
-
declare const TableUnitsAndTotals: ({ id, className, value, subValue,
|
|
334
|
+
declare const TableUnitsAndTotals: ({ id, className, value, subValue, valueRightCategory, valueLeftCategory, subValueRightCategory, subValueLeftCategory }: TableUnitsAndTotalsProps) => React$1.JSX.Element;
|
|
348
335
|
|
|
349
336
|
declare const Styles: {
|
|
350
337
|
color: {
|
|
@@ -407,5 +394,5 @@ declare const Styles: {
|
|
|
407
394
|
};
|
|
408
395
|
};
|
|
409
396
|
|
|
410
|
-
export { HelperText, IconButton, Label, Loader, NumberInput, Pagination, PasswordInput,
|
|
411
|
-
export type { StellaIconDefinition };
|
|
397
|
+
export { HelperText, IconButton, Label, Loader, NumberInput, Pagination, PasswordInput, StellaButton, StellaButtonVariant, StellaIcon, Styles, Sync, Table, TableUnitsAndTotals, TextInput, Tooltip };
|
|
398
|
+
export type { StellaIconDefinition, TableUnitsAndTotalsProps };
|