@stella-source/stellasource-dsl 0.1.6 → 0.1.7

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.
@@ -0,0 +1,4 @@
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;
4
+ export default TableUnitsAndTotals;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import TableUnitsAndTotalsComponent from "./TableUnitsAndTotals";
3
+ declare const meta: Meta<typeof TableUnitsAndTotalsComponent>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof TableUnitsAndTotalsComponent>;
6
+ export declare const TableUnitsAndTotals: Story;
@@ -0,0 +1,7 @@
1
+ declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ declare const Column: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
+ $align: "left" | "right";
4
+ }>> & string;
5
+ declare const HeaderText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
6
+ declare const SubHeaderText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
7
+ export { Container, Column, HeaderText, SubHeaderText };
@@ -0,0 +1,32 @@
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 {
14
+ id?: string;
15
+ className?: string;
16
+ value: number;
17
+ subValue?: number;
18
+ rightCategory?: `${QuoteCategory}`;
19
+ }
20
+ interface TotalPriceProps {
21
+ variant: QuoteVariants.TOTAL_PRICE;
22
+ leftCategory?: `${TableUnitsAndTotalsLeftCategory}`;
23
+ }
24
+ interface TotalWeightProps {
25
+ variant: QuoteVariants.TOTAL_WEIGHT;
26
+ leftCategory?: never;
27
+ }
28
+ export type TableUnitsAndTotals = TableUnitsAndTotalsProps & (TotalPriceProps | TotalWeightProps);
29
+ export declare enum TableUnitsAndTotalsLeftCategory {
30
+ US_CURRENCY = "$"
31
+ }
32
+ export {};
@@ -1 +1,2 @@
1
1
  export declare const formatDynamicNumbersWithCommas: (num: number | string, decimalPlaces: number) => string;
2
+ export declare const formatNumberWithDecimals: (num: number | string, decimalPlaces?: number, isCurrency?: boolean) => string;
@@ -0,0 +1,4 @@
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;
4
+ export default TableUnitsAndTotals;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import TableUnitsAndTotalsComponent from "./TableUnitsAndTotals";
3
+ declare const meta: Meta<typeof TableUnitsAndTotalsComponent>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof TableUnitsAndTotalsComponent>;
6
+ export declare const TableUnitsAndTotals: Story;
@@ -0,0 +1,7 @@
1
+ declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ declare const Column: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
+ $align: "left" | "right";
4
+ }>> & string;
5
+ declare const HeaderText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
6
+ declare const SubHeaderText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
7
+ export { Container, Column, HeaderText, SubHeaderText };
@@ -0,0 +1,32 @@
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 {
14
+ id?: string;
15
+ className?: string;
16
+ value: number;
17
+ subValue?: number;
18
+ rightCategory?: `${QuoteCategory}`;
19
+ }
20
+ interface TotalPriceProps {
21
+ variant: QuoteVariants.TOTAL_PRICE;
22
+ leftCategory?: `${TableUnitsAndTotalsLeftCategory}`;
23
+ }
24
+ interface TotalWeightProps {
25
+ variant: QuoteVariants.TOTAL_WEIGHT;
26
+ leftCategory?: never;
27
+ }
28
+ export type TableUnitsAndTotals = TableUnitsAndTotalsProps & (TotalPriceProps | TotalWeightProps);
29
+ export declare enum TableUnitsAndTotalsLeftCategory {
30
+ US_CURRENCY = "$"
31
+ }
32
+ export {};
@@ -1 +1,2 @@
1
1
  export declare const formatDynamicNumbersWithCommas: (num: number | string, decimalPlaces: number) => string;
2
+ export declare const formatNumberWithDecimals: (num: number | string, decimalPlaces?: number, isCurrency?: boolean) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stella-source/stellasource-dsl",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Design System owned and operated by Stella Source.",
5
5
  "files": [
6
6
  "dist"