@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.
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import { TableUnitsAndTotals as TableUnitsAndTotalsProps } from "./types";
3
- declare const TableUnitsAndTotals: ({ id, className, value, subValue, variant, leftCategory, rightCategory, }: TableUnitsAndTotalsProps) => React.JSX.Element;
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
- export declare enum QuoteVariants {
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
- subValue?: number | string;
18
- rightCategory?: `${QuoteCategory}`;
19
- }
20
- interface TotalPriceProps {
21
- variant: `${QuoteVariants.TOTAL_PRICE}`;
22
- leftCategory?: `${TableUnitsAndTotalsLeftCategory}`;
5
+ valueRightCategory?: string;
6
+ valueLeftCategory?: string;
23
7
  }
24
- interface TotalWeightProps {
25
- variant: `${QuoteVariants.TOTAL_WEIGHT}`;
26
- leftCategory?: never;
8
+ interface TableUnitsAndTotalsSubValueProps {
9
+ subValue: number | string;
10
+ subValueRightCategory?: string;
11
+ subValueLeftCategory?: string;
27
12
  }
28
- export type TableUnitsAndTotals = TableUnitsAndTotalsProps & (TotalPriceProps | TotalWeightProps);
29
- export declare enum TableUnitsAndTotalsLeftCategory {
30
- US_CURRENCY = "$"
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
- declare enum QuoteVariants {
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
- subValue?: number | string;
332
- rightCategory?: `${QuoteCategory}`;
319
+ valueRightCategory?: string;
320
+ valueLeftCategory?: string;
333
321
  }
334
- interface TotalPriceProps {
335
- variant: `${QuoteVariants.TOTAL_PRICE}`;
336
- leftCategory?: `${TableUnitsAndTotalsLeftCategory}`;
322
+ interface TableUnitsAndTotalsSubValueProps {
323
+ subValue: number | string;
324
+ subValueRightCategory?: string;
325
+ subValueLeftCategory?: string;
337
326
  }
338
- interface TotalWeightProps {
339
- variant: `${QuoteVariants.TOTAL_WEIGHT}`;
340
- leftCategory?: never;
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, variant, leftCategory, rightCategory, }: TableUnitsAndTotals$1) => React$1.JSX.Element;
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, QuoteCategory, QuoteVariants, StellaButton, StellaButtonVariant, StellaIcon, Styles, Sync, Table, TableUnitsAndTotals, TableUnitsAndTotalsLeftCategory, TextInput, Tooltip };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stella-source/stellasource-dsl",
3
- "version": "0.2.9",
3
+ "version": "1.2.9",
4
4
  "description": "Design System owned and operated by Stella Source.",
5
5
  "files": [
6
6
  "dist"