@spscommerce/ds-shared 5.20.0 → 5.20.3-ie

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.
Files changed (104) hide show
  1. package/dist/out-tsc/bar-chart.d.ts +12 -0
  2. package/dist/out-tsc/bar-chart.js +2 -0
  3. package/dist/out-tsc/bar-chart.js.map +1 -0
  4. package/dist/out-tsc/button.d.ts +34 -0
  5. package/dist/out-tsc/button.js +36 -0
  6. package/dist/out-tsc/button.js.map +1 -0
  7. package/dist/out-tsc/clickable-tag.d.ts +4 -0
  8. package/dist/out-tsc/clickable-tag.js +6 -0
  9. package/dist/out-tsc/clickable-tag.js.map +1 -0
  10. package/dist/out-tsc/datetime.d.ts +36 -0
  11. package/dist/out-tsc/datetime.js +6 -0
  12. package/dist/out-tsc/datetime.js.map +1 -0
  13. package/dist/out-tsc/examples.d.ts +41 -0
  14. package/dist/out-tsc/examples.js +7 -0
  15. package/dist/out-tsc/examples.js.map +1 -0
  16. package/dist/out-tsc/feedback.d.ts +15 -0
  17. package/dist/out-tsc/feedback.js +18 -0
  18. package/dist/out-tsc/feedback.js.map +1 -0
  19. package/dist/out-tsc/filter-tile.d.ts +7 -0
  20. package/dist/out-tsc/filter-tile.js +9 -0
  21. package/dist/out-tsc/filter-tile.js.map +1 -0
  22. package/dist/out-tsc/grid.d.ts +2 -0
  23. package/dist/out-tsc/grid.js +2 -0
  24. package/dist/out-tsc/grid.js.map +1 -0
  25. package/dist/out-tsc/growler.d.ts +12 -0
  26. package/dist/out-tsc/growler.js +23 -0
  27. package/dist/out-tsc/growler.js.map +1 -0
  28. package/dist/out-tsc/i18n.d.ts +4 -0
  29. package/dist/out-tsc/i18n.js +9 -0
  30. package/dist/out-tsc/i18n.js.map +1 -0
  31. package/dist/out-tsc/icon.d.ts +186 -0
  32. package/dist/out-tsc/icon.js +189 -0
  33. package/dist/out-tsc/icon.js.map +1 -0
  34. package/dist/out-tsc/index.d.ts +31 -0
  35. package/dist/out-tsc/index.js +32 -0
  36. package/dist/out-tsc/index.js.map +1 -0
  37. package/dist/out-tsc/insight-card.d.ts +15 -0
  38. package/dist/out-tsc/insight-card.js +18 -0
  39. package/dist/out-tsc/insight-card.js.map +1 -0
  40. package/dist/out-tsc/insight-tile.d.ts +15 -0
  41. package/dist/out-tsc/insight-tile.js +18 -0
  42. package/dist/out-tsc/insight-tile.js.map +1 -0
  43. package/dist/out-tsc/key-value-list-item.d.ts +4 -0
  44. package/dist/out-tsc/key-value-list-item.js +6 -0
  45. package/dist/out-tsc/key-value-list-item.js.map +1 -0
  46. package/dist/out-tsc/line-chart.d.ts +8 -0
  47. package/dist/out-tsc/line-chart.js +10 -0
  48. package/dist/out-tsc/line-chart.js.map +1 -0
  49. package/dist/out-tsc/modal.d.ts +12 -0
  50. package/dist/out-tsc/modal.js +15 -0
  51. package/dist/out-tsc/modal.js.map +1 -0
  52. package/dist/out-tsc/option-list.d.ts +32 -0
  53. package/dist/out-tsc/option-list.js +87 -0
  54. package/dist/out-tsc/option-list.js.map +1 -0
  55. package/dist/out-tsc/pagination.d.ts +2 -0
  56. package/dist/out-tsc/pagination.js +6 -0
  57. package/dist/out-tsc/pagination.js.map +1 -0
  58. package/dist/out-tsc/positioning.d.ts +14 -0
  59. package/dist/out-tsc/positioning.js +16 -0
  60. package/dist/out-tsc/positioning.js.map +1 -0
  61. package/dist/out-tsc/ring-size.d.ts +5 -0
  62. package/dist/out-tsc/ring-size.js +7 -0
  63. package/dist/out-tsc/ring-size.js.map +1 -0
  64. package/dist/out-tsc/spinner.d.ts +5 -0
  65. package/dist/out-tsc/spinner.js +7 -0
  66. package/dist/out-tsc/spinner.js.map +1 -0
  67. package/dist/out-tsc/sps-action.d.ts +25 -0
  68. package/dist/out-tsc/sps-action.js +18 -0
  69. package/dist/out-tsc/sps-action.js.map +1 -0
  70. package/dist/out-tsc/stacked-horizontal-bar-chart.d.ts +8 -0
  71. package/dist/out-tsc/stacked-horizontal-bar-chart.js +10 -0
  72. package/dist/out-tsc/stacked-horizontal-bar-chart.js.map +1 -0
  73. package/dist/out-tsc/stepped-progress-bar.d.ts +7 -0
  74. package/dist/out-tsc/stepped-progress-bar.js +9 -0
  75. package/dist/out-tsc/stepped-progress-bar.js.map +1 -0
  76. package/dist/out-tsc/table.d.ts +10 -0
  77. package/dist/out-tsc/table.js +6 -0
  78. package/dist/out-tsc/table.js.map +1 -0
  79. package/dist/out-tsc/tabs.d.ts +13 -0
  80. package/dist/out-tsc/tabs.js +2 -0
  81. package/dist/out-tsc/tabs.js.map +1 -0
  82. package/dist/out-tsc/tag.d.ts +9 -0
  83. package/dist/out-tsc/tag.js +11 -0
  84. package/dist/out-tsc/tag.js.map +1 -0
  85. package/dist/out-tsc/task-queue.d.ts +24 -0
  86. package/dist/out-tsc/task-queue.js +18 -0
  87. package/dist/out-tsc/task-queue.js.map +1 -0
  88. package/dist/out-tsc/tooltip.d.ts +13 -0
  89. package/dist/out-tsc/tooltip.js +16 -0
  90. package/dist/out-tsc/tooltip.js.map +1 -0
  91. package/dist/out-tsc/translations.d.ts +139 -0
  92. package/dist/out-tsc/translations.js +2 -0
  93. package/dist/out-tsc/translations.js.map +1 -0
  94. package/dist/out-tsc/wizard-substep-condition.d.ts +6 -0
  95. package/dist/out-tsc/wizard-substep-condition.js +8 -0
  96. package/dist/out-tsc/wizard-substep-condition.js.map +1 -0
  97. package/dist/out-tsc/z-strata.d.ts +7 -0
  98. package/dist/out-tsc/z-strata.js +9 -0
  99. package/dist/out-tsc/z-strata.js.map +1 -0
  100. package/lib/index.cjs.js +615 -1
  101. package/lib/index.es.js +524 -455
  102. package/package.json +7 -7
  103. package/rollup.config.js +22 -0
  104. package/vite.config.js +1 -1
@@ -0,0 +1,12 @@
1
+ export interface ChartDataObject {
2
+ label: string;
3
+ value: number;
4
+ }
5
+ /**
6
+ * Used for the Y and X axis for bar charts.
7
+ * The Y axis uses tickCount but the X axis does not
8
+ */
9
+ export interface ChartAxis {
10
+ tickValues: any;
11
+ tickCount?: number;
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=bar-chart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bar-chart.js","sourceRoot":"","sources":["../../src/bar-chart.ts"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
1
+ export declare enum StdButtonKind {
2
+ DEFAULT = "default",
3
+ CONFIRM = "confirm",
4
+ DELETE = "delete",
5
+ KEY = "key"
6
+ }
7
+ declare enum ButtonKindIcon {
8
+ ICON = "icon"
9
+ }
10
+ declare enum ButtonKindLink {
11
+ LINK = "link"
12
+ }
13
+ export declare type DropdownKind = StdButtonKind | ButtonKindIcon;
14
+ export declare const DropdownKind: Readonly<{
15
+ ICON: ButtonKindIcon.ICON;
16
+ DEFAULT: StdButtonKind.DEFAULT;
17
+ CONFIRM: StdButtonKind.CONFIRM;
18
+ DELETE: StdButtonKind.DELETE;
19
+ KEY: StdButtonKind.KEY;
20
+ }>;
21
+ export declare type ButtonKind = StdButtonKind | ButtonKindIcon | ButtonKindLink;
22
+ export declare const ButtonKind: Readonly<{
23
+ LINK: ButtonKindLink.LINK;
24
+ ICON: ButtonKindIcon.ICON;
25
+ DEFAULT: StdButtonKind.DEFAULT;
26
+ CONFIRM: StdButtonKind.CONFIRM;
27
+ DELETE: StdButtonKind.DELETE;
28
+ KEY: StdButtonKind.KEY;
29
+ }>;
30
+ export declare enum ButtonType {
31
+ BUTTON = "button",
32
+ SUBMIT = "submit"
33
+ }
34
+ export {};
@@ -0,0 +1,36 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ export var StdButtonKind;
13
+ (function (StdButtonKind) {
14
+ StdButtonKind["DEFAULT"] = "default";
15
+ StdButtonKind["CONFIRM"] = "confirm";
16
+ StdButtonKind["DELETE"] = "delete";
17
+ StdButtonKind["KEY"] = "key";
18
+ })(StdButtonKind || (StdButtonKind = {}));
19
+ var ButtonKindIcon;
20
+ (function (ButtonKindIcon) {
21
+ ButtonKindIcon["ICON"] = "icon";
22
+ })(ButtonKindIcon || (ButtonKindIcon = {}));
23
+ var ButtonKindLink;
24
+ (function (ButtonKindLink) {
25
+ ButtonKindLink["LINK"] = "link";
26
+ })(ButtonKindLink || (ButtonKindLink = {}));
27
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
28
+ export var DropdownKind = Object.freeze(__assign(__assign({}, StdButtonKind), ButtonKindIcon));
29
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
30
+ export var ButtonKind = Object.freeze(__assign(__assign(__assign({}, StdButtonKind), ButtonKindIcon), ButtonKindLink));
31
+ export var ButtonType;
32
+ (function (ButtonType) {
33
+ ButtonType["BUTTON"] = "button";
34
+ ButtonType["SUBMIT"] = "submit";
35
+ })(ButtonType || (ButtonType = {}));
36
+ //# sourceMappingURL=button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.js","sourceRoot":"","sources":["../../src/button.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,4BAAW,CAAA;AACb,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AAED,IAAK,cAEJ;AAFD,WAAK,cAAc;IACjB,+BAAa,CAAA;AACf,CAAC,EAFI,cAAc,KAAd,cAAc,QAElB;AAED,IAAK,cAEJ;AAFD,WAAK,cAAc;IACjB,+BAAa,CAAA;AACf,CAAC,EAFI,cAAc,KAAd,cAAc,QAElB;AAGD,2DAA2D;AAC3D,MAAM,CAAC,IAAM,YAAY,GAAG,MAAM,CAAC,MAAM,uBAAM,aAAa,GAAK,cAAc,EAAG,CAAC;AAGnF,2DAA2D;AAC3D,MAAM,CAAC,IAAM,UAAU,GAAG,MAAM,CAAC,MAAM,gCAAM,aAAa,GAAK,cAAc,GAAK,cAAc,EAAG,CAAC;AAEpG,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;AACnB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
@@ -0,0 +1,4 @@
1
+ export declare enum ClickableTagKind {
2
+ BLUE = "blue",
3
+ GRAY = "gray"
4
+ }
@@ -0,0 +1,6 @@
1
+ export var ClickableTagKind;
2
+ (function (ClickableTagKind) {
3
+ ClickableTagKind["BLUE"] = "blue";
4
+ ClickableTagKind["GRAY"] = "gray";
5
+ })(ClickableTagKind || (ClickableTagKind = {}));
6
+ //# sourceMappingURL=clickable-tag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clickable-tag.js","sourceRoot":"","sources":["../../src/clickable-tag.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,iCAAa,CAAA;AACf,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B"}
@@ -0,0 +1,36 @@
1
+ import type { Duration, Moment } from "moment-timezone";
2
+ export interface MomentRange {
3
+ start: Moment;
4
+ end: Moment;
5
+ preset?: Duration;
6
+ }
7
+ export interface SimpleDate {
8
+ year: number;
9
+ month: number;
10
+ date: number;
11
+ }
12
+ export declare type SimpleDateRange = [SimpleDate, SimpleDate];
13
+ export declare enum SelectMode {
14
+ START = 0,
15
+ END = 1
16
+ }
17
+ export interface DateSelectionEvent<T = Moment | MomentRange> {
18
+ value: T;
19
+ mode: SelectMode;
20
+ }
21
+ /**
22
+ * A list of lists representing the weeks and
23
+ * days of a month, e.g.
24
+ * [ [ , , 1, 2, 3, 4, 5 ],
25
+ * [ 6, 7, 8, 9, 10, 11, 12 ],
26
+ * [ 13, 14, 15, 16, 17, 18, 19 ],
27
+ * [ 20, 21, 22, 23, 24, 25, 26 ],
28
+ * [ 27, 28, 29, 30, , , ] ]
29
+ * but where each number is a SimpleDate object
30
+ */
31
+ export declare type CalendarArray = ReadonlyArray<readonly SimpleDate[]>;
32
+ export declare type ISO8601String = string;
33
+ export interface DatePreset {
34
+ label: string;
35
+ definition: ISO8601String | (() => SimpleDateRange);
36
+ }
@@ -0,0 +1,6 @@
1
+ export var SelectMode;
2
+ (function (SelectMode) {
3
+ SelectMode[SelectMode["START"] = 0] = "START";
4
+ SelectMode[SelectMode["END"] = 1] = "END";
5
+ })(SelectMode || (SelectMode = {}));
6
+ //# sourceMappingURL=datetime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datetime.js","sourceRoot":"","sources":["../../src/datetime.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,6CAAK,CAAA;IACL,yCAAG,CAAA;AACL,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
@@ -0,0 +1,41 @@
1
+ import type { ReactElement } from "react";
2
+ export interface ExtraExampleRendererArgs {
3
+ naviagateTo: (selection: string) => void;
4
+ NavigateTo: (props: {
5
+ to: string;
6
+ children: ReactElement | string;
7
+ slugPrefix?: string;
8
+ }) => ReactElement;
9
+ Link: (props: {
10
+ to: string;
11
+ children: ReactElement | string;
12
+ }) => ReactElement;
13
+ }
14
+ declare type ReactChildOrRenderer = ReactElement | string | ((args: ExtraExampleRendererArgs) => ReactElement | string);
15
+ export interface DSExampleBase {
16
+ description?: ReactChildOrRenderer;
17
+ }
18
+ export interface DSReactExampleJSX {
19
+ jsx: string;
20
+ }
21
+ export interface DSReactExampleComponent {
22
+ react: string;
23
+ }
24
+ export declare type DSReactExample = DSExampleBase & (DSReactExampleComponent | DSReactExampleJSX);
25
+ export declare type DSExample = DSReactExample;
26
+ export declare function exampleIsReactComponentExample(example: DSExample): example is DSReactExampleComponent;
27
+ export declare function exampleIsReactJSXExample(example: DSExample): example is DSReactExampleJSX;
28
+ export interface DSExamplesTab<T extends DSExample = DSExample> {
29
+ label?: ReactChildOrRenderer;
30
+ description?: ReactChildOrRenderer;
31
+ customSection?: ReactChildOrRenderer;
32
+ examples?: Record<string, T>;
33
+ }
34
+ export declare type DSExamples<T extends DSExample = DSExample> = Record<string, DSExamplesTab<T>>;
35
+ export declare type DSReactExamples = DSExamples<DSReactExample>;
36
+ export declare type ComponentManifest = Record<string, {
37
+ description?: ReactChildOrRenderer;
38
+ components: unknown[];
39
+ examples: DSReactExamples;
40
+ }>;
41
+ export {};
@@ -0,0 +1,7 @@
1
+ export function exampleIsReactComponentExample(example) {
2
+ return example.hasOwnProperty("react");
3
+ }
4
+ export function exampleIsReactJSXExample(example) {
5
+ return example.hasOwnProperty("jsx");
6
+ }
7
+ //# sourceMappingURL=examples.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"examples.js","sourceRoot":"","sources":["../../src/examples.ts"],"names":[],"mappings":"AAkCA,MAAM,UAAU,8BAA8B,CAC5C,OAAkB;IAElB,OAAO,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,OAAkB;IACzD,OAAO,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AACvC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { SpsIcon } from "./icon";
2
+ export declare enum FeedbackBlockKind {
3
+ TIP = "tip",
4
+ SUCCESS = "success",
5
+ WARNING = "warning",
6
+ ERROR = "error",
7
+ INFO = "info"
8
+ }
9
+ export declare const FeedbackBlockIcons: Readonly<{
10
+ tip: SpsIcon;
11
+ error: SpsIcon;
12
+ info: SpsIcon;
13
+ success: SpsIcon;
14
+ warning: SpsIcon;
15
+ }>;
@@ -0,0 +1,18 @@
1
+ var _a;
2
+ import { SpsIcon } from "./icon";
3
+ export var FeedbackBlockKind;
4
+ (function (FeedbackBlockKind) {
5
+ FeedbackBlockKind["TIP"] = "tip";
6
+ FeedbackBlockKind["SUCCESS"] = "success";
7
+ FeedbackBlockKind["WARNING"] = "warning";
8
+ FeedbackBlockKind["ERROR"] = "error";
9
+ FeedbackBlockKind["INFO"] = "info";
10
+ })(FeedbackBlockKind || (FeedbackBlockKind = {}));
11
+ export var FeedbackBlockIcons = Object.freeze((_a = {},
12
+ _a[FeedbackBlockKind.TIP] = SpsIcon.LIGHTBULB,
13
+ _a[FeedbackBlockKind.ERROR] = SpsIcon.EXCLAMATION_CIRCLE,
14
+ _a[FeedbackBlockKind.INFO] = SpsIcon.INFO_CIRCLE,
15
+ _a[FeedbackBlockKind.SUCCESS] = SpsIcon.CHECKMARK,
16
+ _a[FeedbackBlockKind.WARNING] = SpsIcon.EXCLAMATION_TRIANGLE,
17
+ _a));
18
+ //# sourceMappingURL=feedback.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feedback.js","sourceRoot":"","sources":["../../src/feedback.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAN,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,gCAAW,CAAA;IACX,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,oCAAe,CAAA;IACf,kCAAa,CAAA;AACf,CAAC,EANW,iBAAiB,KAAjB,iBAAiB,QAM5B;AAED,MAAM,CAAC,IAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM;IAC7C,GAAC,iBAAiB,CAAC,GAAG,IAAG,OAAO,CAAC,SAAS;IAC1C,GAAC,iBAAiB,CAAC,KAAK,IAAG,OAAO,CAAC,kBAAkB;IACrD,GAAC,iBAAiB,CAAC,IAAI,IAAG,OAAO,CAAC,WAAW;IAC7C,GAAC,iBAAiB,CAAC,OAAO,IAAG,OAAO,CAAC,SAAS;IAC9C,GAAC,iBAAiB,CAAC,OAAO,IAAG,OAAO,CAAC,oBAAoB;QACzD,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare enum SpsFilterTileKind {
2
+ GENERAL = "general",
3
+ SUCCESS = "success",
4
+ ERROR = "error",
5
+ WARNING = "warning",
6
+ PROCESSING = "processing"
7
+ }
@@ -0,0 +1,9 @@
1
+ export var SpsFilterTileKind;
2
+ (function (SpsFilterTileKind) {
3
+ SpsFilterTileKind["GENERAL"] = "general";
4
+ SpsFilterTileKind["SUCCESS"] = "success";
5
+ SpsFilterTileKind["ERROR"] = "error";
6
+ SpsFilterTileKind["WARNING"] = "warning";
7
+ SpsFilterTileKind["PROCESSING"] = "processing";
8
+ })(SpsFilterTileKind || (SpsFilterTileKind = {}));
9
+ //# sourceMappingURL=filter-tile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter-tile.js","sourceRoot":"","sources":["../../src/filter-tile.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,oCAAe,CAAA;IACf,wCAAmB,CAAA;IACnB,8CAAyB,CAAA;AAC3B,CAAC,EANW,iBAAiB,KAAjB,iBAAiB,QAM5B"}
@@ -0,0 +1,2 @@
1
+ /** Allowable values for the width of an element in our 12-column layout grid. */
2
+ export declare type GridWidth = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=grid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid.js","sourceRoot":"","sources":["../../src/grid.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import { SpsIcon } from "./icon";
2
+ export declare const GROWLER_VISIBLE_DURATION_MS = 7000;
3
+ export declare const GROWLER_FADEOUT_DURATION_MS = 2000;
4
+ export declare enum GrowlerKind {
5
+ ACTIVITY = "activity",
6
+ ERROR = "error",
7
+ INFO = "info",
8
+ PROGRESS = "progress",
9
+ SUCCESS = "success",
10
+ WARNING = "warning"
11
+ }
12
+ export declare const GrowlerIcon: Map<GrowlerKind, SpsIcon>;
@@ -0,0 +1,23 @@
1
+ import { SpsIcon } from "./icon";
2
+ export var GROWLER_VISIBLE_DURATION_MS = 7000;
3
+ /*
4
+ * If you change this don't forget to also change the CSS animation
5
+ * time in ds-styles
6
+ */
7
+ export var GROWLER_FADEOUT_DURATION_MS = 2000;
8
+ export var GrowlerKind;
9
+ (function (GrowlerKind) {
10
+ GrowlerKind["ACTIVITY"] = "activity";
11
+ GrowlerKind["ERROR"] = "error";
12
+ GrowlerKind["INFO"] = "info";
13
+ GrowlerKind["PROGRESS"] = "progress";
14
+ GrowlerKind["SUCCESS"] = "success";
15
+ GrowlerKind["WARNING"] = "warning";
16
+ })(GrowlerKind || (GrowlerKind = {}));
17
+ export var GrowlerIcon = new Map([
18
+ [GrowlerKind.INFO, SpsIcon.INFO_CIRCLE],
19
+ [GrowlerKind.WARNING, SpsIcon.EXCLAMATION_TRIANGLE],
20
+ [GrowlerKind.ERROR, SpsIcon.EXCLAMATION_CIRCLE],
21
+ [GrowlerKind.SUCCESS, SpsIcon.CHECKMARK],
22
+ ]);
23
+ //# sourceMappingURL=growler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"growler.js","sourceRoot":"","sources":["../../src/growler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,IAAM,2BAA2B,GAAG,IAAI,CAAC;AAChD;;;GAGG;AACH,MAAM,CAAC,IAAM,2BAA2B,GAAG,IAAI,CAAC;AAEhD,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,8BAAe,CAAA;IACf,4BAAa,CAAA;IACb,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;AACrB,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAED,MAAM,CAAC,IAAM,WAAW,GAA8B,IAAI,GAAG,CAAC;IAC5D,CAAC,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC;IACvC,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC;IACnD,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAC/C,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC;CACzC,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export interface I18nObject {
2
+ t: (key: string, interpolations?: any) => string;
3
+ }
4
+ export declare const noI18nI18n: I18nObject;
@@ -0,0 +1,9 @@
1
+ import { getPath, template } from "@spscommerce/utils";
2
+ import translations from "./translations";
3
+ export var noI18nI18n = {
4
+ t: function (key, interpolations) {
5
+ var text = getPath(translations, key.replace(/^design-system:/, ""));
6
+ return interpolations ? template(text)(interpolations) : text;
7
+ },
8
+ };
9
+ //# sourceMappingURL=i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../src/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAM1C,MAAM,CAAC,IAAM,UAAU,GAAe;IACpC,CAAC,EAAD,UAAE,GAAW,EAAE,cAAoB;QACjC,IAAM,IAAI,GAAG,OAAO,CAAS,YAAY,EAAE,GAAG,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC,CAAC;QAC/E,OAAO,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAChE,CAAC;CACF,CAAC"}
@@ -0,0 +1,186 @@
1
+ export declare enum SpsIconSize {
2
+ EXTRA_SMALL = "xs",
3
+ SMALL = "sm",
4
+ MEDIUM = "md",
5
+ LARGE = "lg",
6
+ EXTRA_LARGE = "xl"
7
+ }
8
+ export declare enum SpsIcon {
9
+ ANGLE_LEFT = "angle-left",
10
+ ANGLE_RIGHT = "angle-right",
11
+ ARCHIVE = "archive",
12
+ ARCHIVE_CIRCLE = "archive-circle",
13
+ ARROW_DOWN = "arrow-down",
14
+ ARROW_LEFT = "arrow-left",
15
+ ARROW_LEFT_CIRCLE = "arrow-left-circle",
16
+ ARROW_RIGHT = "arrow-right",
17
+ ARROW_RIGHT_CIRCLE = "arrow-right-circle",
18
+ ARROW_UP = "arrow-up",
19
+ ASTERISK = "asterisk",
20
+ ASTERISK_CIRCLE = "asterisk-circle",
21
+ BAN = "ban",
22
+ BAN_CIRCLE = "ban-circle",
23
+ BARCODE = "barcode",
24
+ BELL = "bell",
25
+ BELL_FILLED = "bell-filled",
26
+ BOLT = "bolt",
27
+ BOOK = "book",
28
+ BUILDING = "building",
29
+ BURST = "burst",
30
+ BURST_BOLT = "burst-bolt",
31
+ CALENDAR = "calendar",
32
+ CALENDAR_BLANK = "calendar-blank",
33
+ CALENDAR_BLANK_CIRCLE = "calendar-blank-circle",
34
+ CALENDAR_SELECT = "calendar-select",
35
+ CAMERA = "camera",
36
+ CHART_AREA = "chart-area",
37
+ CHART_BAR = "chart-bar",
38
+ CHART_LINE = "chart-line",
39
+ CHART_PIE = "chart-pie",
40
+ CHECKMARK = "checkmark",
41
+ CHECKMARK_CIRCLE = "checkmark-circle",
42
+ CHEVRON_DOWN = "chevron-down",
43
+ CHEVRON_LEFT = "chevron-left",
44
+ CHEVRON_RIGHT = "chevron-right",
45
+ CHEVRON_UP = "chevron-up",
46
+ CIRCLE_OUTLINE = "circle-outline",
47
+ CLOCK = "clock",
48
+ CLOCK_CIRCLE = "clock-circle",
49
+ CODE_FORK = "code-fork",
50
+ COLUMN_SWITCHER = "column-switcher",
51
+ COMMENT_BUBBLE = "comment-bubble",
52
+ COMMENT_BUBBLE_QUESTION = "comment-bubble-question",
53
+ CONVERSATION = "conversation",
54
+ CREDIT_CARD = "credit-card",
55
+ DASHBOARD = "dashboard",
56
+ DATABASE = "database",
57
+ DESCENDING_ELLIPSES_CIRCLE = "descending-ellipses-circle",
58
+ DISK = "disk",
59
+ DISK_CIRCLE = "disk-circle",
60
+ DOLLAR_SIGN = "dollar-sign",
61
+ DOUBLE_ANGLE_LEFT = "double-angle-left",
62
+ DOUBLE_ANGLE_RIGHT = "double-angle-right",
63
+ DOWNLOAD_CLOUD = "download-cloud",
64
+ DRILL = "drill",
65
+ DUPLICATE = "duplicate",
66
+ ELLIPSES = "ellipses",
67
+ ENVELOPE = "envelope",
68
+ EXCHANGE = "exchange",
69
+ EXCLAMATION_CIRCLE = "exclamation-circle",
70
+ EXCLAMATION_TRIANGLE = "exclamation-triangle",
71
+ EXPAND_COLLAPSE = "expand-collapse",
72
+ EYE = "eye",
73
+ EYE_SLASH = "eye-slash",
74
+ FILE = "file",
75
+ FILE_DUPLICATE = "file-duplicate",
76
+ FILE_PDF = "file-pdf",
77
+ FILE_PRESENTATION = "file-presentation",
78
+ FILE_SIZE = "file-size",
79
+ FILE_SOLID = "file-solid",
80
+ FILE_SOLID_TEXT = "file-solid-text",
81
+ FILE_SPREADSHEET = "file-spreadsheet",
82
+ FILE_TEXT = "file-text",
83
+ FILTER = "filter",
84
+ FLAG = "flag",
85
+ FOLDER = "folder",
86
+ FOLDER_OPEN = "folder-open",
87
+ FOLDER_SOLID = "folder-solid",
88
+ FOLDER_SOLID_OPEN = "folder-solid-open",
89
+ GEAR = "gear",
90
+ GLOBE = "globe",
91
+ GRID = "grid",
92
+ GROUP = "group",
93
+ HAND_STOP = "hand-stop",
94
+ HANDSHAKE = "handshake",
95
+ HAT = "hat",
96
+ HEART = "heart",
97
+ HISTORY = "history",
98
+ INBOX = "inbox",
99
+ INCOMING = "incoming",
100
+ INFO_CIRCLE = "info-circle",
101
+ INTERCOM = "intercom",
102
+ ITEM_TAG = "item-tag",
103
+ KEY = "key",
104
+ LIFE_PRESERVER = "life-preserver",
105
+ LIGHTBULB = "lightbulb",
106
+ LINK = "link",
107
+ LINKEDIN = "linkedin",
108
+ LIST = "list",
109
+ LIST_CARDS = "list-cards",
110
+ LIST_COLUMNS = "list-columns",
111
+ LIST_SUMMARY = "list-summary",
112
+ LIST_TABLE = "list-table",
113
+ LOCATION = "location",
114
+ LOCKED = "locked",
115
+ LOCKED_CIRCLE = "locked-circle",
116
+ MAP = "map",
117
+ MAP_MARKER = "map-marker",
118
+ MAXIMIZE = "maximize",
119
+ MINIMIZE = "minimize",
120
+ MINUS = "minus",
121
+ MINUS_CIRCLE = "minus-circle",
122
+ NEW_FILE = "new-file",
123
+ NEW_SCREEN = "new-screen",
124
+ OUTGOING = "outgoing",
125
+ PAPER_PLANE = "paper-plane",
126
+ PENCIL = "pencil",
127
+ PHOTO = "photo",
128
+ PIN = "pin",
129
+ PINTEREST = "pinterest",
130
+ PLAY = "play",
131
+ PLUS_CIRCLE = "plus-circle",
132
+ PLUS_SIGN = "plus-sign",
133
+ PRESENTATION = "presentation",
134
+ PRINTER = "printer",
135
+ QR_CODE = "qr-code",
136
+ QUESTION_CIRCLE = "question-circle",
137
+ QUOTE_LEFT = "quote-left",
138
+ QUOTE_RIGHT = "quote-right",
139
+ RANDOM = "random",
140
+ REFRESH = "refresh",
141
+ RIGHT_CIRCLE = "right-circle",
142
+ ROCKET = "rocket",
143
+ SEARCH = "search",
144
+ SEARCH_PLUS = "search-plus",
145
+ SHARE = "share",
146
+ SHOPPING_CART = "shopping-cart",
147
+ SORT_ALPHA_ASC = "sort-alpha-asc",
148
+ SORT_ALPHA_DESC = "sort-alpha-desc",
149
+ SORT_NUM_ASC = "sort-num-asc",
150
+ SORT_NUM_DESC = "sort-num-desc",
151
+ STAR = "star",
152
+ STAR_OUTLINE = "star-outline",
153
+ STATUS_ARCHIVED = "status-archived",
154
+ STATUS_CANCELLED = "status-cancelled",
155
+ STATUS_ERROR = "status-error",
156
+ STATUS_IN_PROCESS = "status-in-process",
157
+ STATUS_IN_TRANSIT = "status-in-transit",
158
+ STATUS_LOCKED = "status-locked",
159
+ STATUS_NEW = "status-new",
160
+ STATUS_OK = "status-ok",
161
+ STATUS_ON_HOLD = "status-on-hold",
162
+ STATUS_OUTDATED = "status-outdated",
163
+ STATUS_REJECTED = "status-rejected",
164
+ STATUS_SAVED = "status-saved",
165
+ STATUS_SAVING = "status-saving",
166
+ STATUS_TEMPLATE = "status-template",
167
+ STATUS_WARNING = "status-warning",
168
+ TABLE = "table",
169
+ TABS = "tabs",
170
+ TAG = "tag",
171
+ TEMPLATE_CIRCLE = "template-circle",
172
+ THUMBS_DOWN = "thumbs-down",
173
+ THUMBS_DOWN_OUTLINE = "thumbs-down-outline",
174
+ THUMBS_UP = "thumbs-up",
175
+ THUMBS_UP_OUTLINE = "thumbs-up-outline",
176
+ TRASH = "trash",
177
+ TRUCK_SHIPPING = "truck-shipping",
178
+ TWITTER = "twitter",
179
+ UNDO = "undo",
180
+ UNLOCKED = "unlocked",
181
+ UPLOAD_CLOUD = "upload-cloud",
182
+ USER = "user",
183
+ WRENCH = "wrench",
184
+ X = "x",
185
+ X_CIRCLE = "x-circle"
186
+ }