@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.
- package/dist/cjs/index.js +8 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/TextField/NumberInput/types.d.ts +3 -3
- package/dist/cjs/types/components/TextField/types.d.ts +2 -17
- package/dist/cjs/types/index.d.ts +1 -2
- package/dist/esm/index.esm.js +8 -2
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/esm/types/components/TextField/NumberInput/types.d.ts +3 -3
- package/dist/esm/types/components/TextField/types.d.ts +2 -17
- package/dist/esm/types/index.d.ts +1 -2
- package/dist/index.d.ts +21 -36
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
2
|
import { StellaIconDefinition } from "../../StellaIcon/types";
|
|
3
|
-
import { TextFieldAlignments
|
|
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?:
|
|
27
|
-
rightCategory?:
|
|
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?:
|
|
30
|
-
leftCategory?:
|
|
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?:
|
|
228
|
-
rightCategory?:
|
|
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
|
|
401
|
+
export type { StellaIconDefinition };
|