@stella-source/stellasource-dsl 1.3.2 → 1.4.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.
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes } from "react";
2
2
  import { StellaIconDefinition } from "../../StellaIcon/types";
3
- import { TextFieldAlignments, TextFieldLeftCategory, TextFieldRightCategory } from "../types";
3
+ import { TextFieldAlignments } from "../types";
4
4
  export interface NumberInputProps {
5
5
  id: string;
6
6
  label: string;
@@ -23,8 +23,8 @@ export interface NumberInputProps {
23
23
  endIcon?: `${StellaIconDefinition}`;
24
24
  hasError?: boolean;
25
25
  textAlign?: `${TextFieldAlignments}`;
26
- leftCategory?: `${TextFieldLeftCategory}`;
27
- rightCategory?: `${TextFieldRightCategory}`;
26
+ leftCategory?: string;
27
+ rightCategory?: string;
28
28
  thousandSeparator?: boolean;
29
29
  decimalPlaces?: number;
30
30
  allowNegativeNumbers?: boolean;
@@ -4,21 +4,6 @@ export declare enum TextFieldAlignments {
4
4
  CENTER = "center",
5
5
  RIGHT = "right"
6
6
  }
7
- export declare enum TextFieldLeftCategory {
8
- US_CURRENCY = "$"
9
- }
10
- export declare enum TextFieldRightCategory {
11
- FEET = "ft",
12
- CENTIMETERS = "cm",
13
- INCHES = "in",
14
- FULL_INCHES = "inches",
15
- PERCENTAGE = "%",
16
- POUNDS_FEET = "lbs/ft",
17
- HUNDREDWEIGHT = "CWT",
18
- DPH = "$/hr",
19
- MINUTES = "min",
20
- HOURS = "hr"
21
- }
22
7
  export interface TextFieldContainerProps {
23
8
  children: React.ReactNode;
24
9
  id: string;
@@ -26,8 +11,8 @@ export interface TextFieldContainerProps {
26
11
  hideLabel?: boolean;
27
12
  disabled?: boolean;
28
13
  dataTestId?: string;
29
- rightCategory?: `${TextFieldRightCategory}`;
30
- leftCategory?: `${TextFieldLeftCategory}`;
14
+ rightCategory?: string;
15
+ leftCategory?: string;
31
16
  tooltipText?: string;
32
17
  isRequired?: boolean;
33
18
  helperText?: string;
@@ -14,13 +14,12 @@ import Table from "./components/Table/Table";
14
14
  import Pagination from "./components/Pagination/Pagination";
15
15
  import Sync from "./components/Sync/Sync";
16
16
  import TableUnitsAndTotals from "./components/TableUnitsAndTotals/TableUnitsAndTotals";
17
+ import PaymentStatus from "./components/PaymentStatus/PaymentStatus";
17
18
  /** Types */
18
19
  import { StellaButtonVariant } from "./components/StellaButton/types";
19
20
  /** Tokens */
20
21
  import { Styles } from "./shared/tokens";
21
22
  import "./shared/tokens/tokens.css";
22
- import PaymentStatus from "./components/PaymentStatus/PaymentStatus";
23
23
  /**Exports */
24
- export * from "./components/TableUnitsAndTotals/types";
25
24
  export type { StellaIconDefinition } from "./components/StellaIcon/types";
26
25
  export { Label, StellaButton, IconButton, Loader, HelperText, Tooltip, StellaIcon, TextInput, PasswordInput, NumberInput, Table, Pagination, Sync, TableUnitsAndTotals, StellaButtonVariant, PaymentStatus, Styles, };
package/dist/index.d.ts CHANGED
@@ -131,21 +131,6 @@ declare enum TextFieldAlignments {
131
131
  CENTER = "center",
132
132
  RIGHT = "right"
133
133
  }
134
- declare enum TextFieldLeftCategory {
135
- US_CURRENCY = "$"
136
- }
137
- declare enum TextFieldRightCategory {
138
- FEET = "ft",
139
- CENTIMETERS = "cm",
140
- INCHES = "in",
141
- FULL_INCHES = "inches",
142
- PERCENTAGE = "%",
143
- POUNDS_FEET = "lbs/ft",
144
- HUNDREDWEIGHT = "CWT",
145
- DPH = "$/hr",
146
- MINUTES = "min",
147
- HOURS = "hr"
148
- }
149
134
 
150
135
  interface TextInputProps {
151
136
  id: string;
@@ -224,8 +209,8 @@ interface NumberInputProps {
224
209
  endIcon?: `${StellaIconDefinition}`;
225
210
  hasError?: boolean;
226
211
  textAlign?: `${TextFieldAlignments}`;
227
- leftCategory?: `${TextFieldLeftCategory}`;
228
- rightCategory?: `${TextFieldRightCategory}`;
212
+ leftCategory?: string;
213
+ rightCategory?: string;
229
214
  thousandSeparator?: boolean;
230
215
  decimalPlaces?: number;
231
216
  allowNegativeNumbers?: boolean;
@@ -333,6 +318,24 @@ type TableUnitsAndTotalsProps = TableUnitsAndTotalsCoreProps & (TableUnitsAndTot
333
318
 
334
319
  declare const TableUnitsAndTotals: ({ id, className, value, subValue, valueRightCategory, valueLeftCategory, subValueRightCategory, subValueLeftCategory }: TableUnitsAndTotalsProps) => React$1.JSX.Element;
335
320
 
321
+ declare enum PaymentStatusVariant {
322
+ PAYMENT_PENDING = "PaymentPending",
323
+ TERMS_APPLIED = "TermsApplied",
324
+ PAYMENT_AUTHORIZED = "PaymentAuthorized",
325
+ PAYMENT_PROCESSING = "PaymentProcessing",
326
+ PAYMENT_SETTLED = "PaymentSettled",
327
+ PAYMENT_FAILED = "PaymentFailed",
328
+ PAYMENT_CANCELED = "PaymentCanceled",
329
+ PAYMENT_WINDOW_EXPIRED = "PaymentWindowExpired"
330
+ }
331
+ interface PaymentStatusProps {
332
+ id?: string;
333
+ className?: string;
334
+ variant: `${PaymentStatusVariant}` | null;
335
+ }
336
+
337
+ declare const PaymentStatus: ({ variant, id, className }: PaymentStatusProps) => React$1.JSX.Element;
338
+
336
339
  declare const Styles: {
337
340
  color: {
338
341
  white: string;
@@ -394,23 +397,5 @@ declare const Styles: {
394
397
  };
395
398
  };
396
399
 
397
- declare enum PaymentStatusVariant {
398
- PAYMENT_PENDING = "PaymentPending",
399
- TERMS_APPLIED = "TermsApplied",
400
- PAYMENT_AUTHORIZED = "PaymentAuthorized",
401
- PAYMENT_PROCESSING = "PaymentProcessing",
402
- PAYMENT_SETTLED = "PaymentSettled",
403
- PAYMENT_FAILED = "PaymentFailed",
404
- PAYMENT_CANCELED = "PaymentCanceled",
405
- PAYMENT_WINDOW_EXPIRED = "PaymentWindowExpired"
406
- }
407
- interface PaymentStatusProps {
408
- id?: string;
409
- className?: string;
410
- variant: `${PaymentStatusVariant}` | null;
411
- }
412
-
413
- declare const PaymentStatus: ({ variant, id, className }: PaymentStatusProps) => React$1.JSX.Element;
414
-
415
400
  export { HelperText, IconButton, Label, Loader, NumberInput, Pagination, PasswordInput, PaymentStatus, StellaButton, StellaButtonVariant, StellaIcon, Styles, Sync, Table, TableUnitsAndTotals, TextInput, Tooltip };
416
- export type { StellaIconDefinition, TableUnitsAndTotalsProps };
401
+ export type { StellaIconDefinition };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stella-source/stellasource-dsl",
3
- "version": "1.3.2",
3
+ "version": "1.4.0",
4
4
  "description": "Design System owned and operated by Stella Source.",
5
5
  "files": [
6
6
  "dist"