@spscommerce/ds-shared 5.10.5-ie → 5.11.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.
@@ -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,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,4 @@
1
+ export declare enum ClickableTagKind {
2
+ BLUE = "blue",
3
+ GRAY = "gray"
4
+ }
@@ -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,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,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,7 @@
1
+ export declare enum SpsFilterTileKind {
2
+ GENERAL = "general",
3
+ SUCCESS = "success",
4
+ ERROR = "error",
5
+ WARNING = "warning",
6
+ PROCESSING = "processing"
7
+ }
package/lib/grid.d.ts ADDED
@@ -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,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>;
package/lib/i18n.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export interface I18nObject {
2
+ t: (key: string, interpolations?: any) => string;
3
+ }
4
+ export declare const noI18nI18n: I18nObject;
package/lib/icon.d.ts ADDED
@@ -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
+ }
@@ -0,0 +1 @@
1
+ "use strict";var o=Object.defineProperty;var n=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var s=(e,t,a)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,i=(e,t)=>{for(var a in t||(t={}))d.call(t,a)&&s(e,a,t[a]);if(n)for(var a of n(t))A.call(t,a)&&s(e,a,t[a]);return e};Object.defineProperty(exports,"__esModule",{value:!0});exports[Symbol.toStringTag]="Module";var l=require("@spscommerce/utils");exports.StdButtonKind=void 0;(function(e){e.DEFAULT="default",e.CONFIRM="confirm",e.DELETE="delete",e.KEY="key"})(exports.StdButtonKind||(exports.StdButtonKind={}));var r;(function(e){e.ICON="icon"})(r||(r={}));var E;(function(e){e.LINK="link"})(E||(E={}));const u=Object.freeze(i(i({},exports.StdButtonKind),r)),L=Object.freeze(i(i(i({},exports.StdButtonKind),r),E));exports.ButtonType=void 0;(function(e){e.BUTTON="button",e.SUBMIT="submit"})(exports.ButtonType||(exports.ButtonType={}));exports.SelectMode=void 0;(function(e){e[e.START=0]="START",e[e.END=1]="END"})(exports.SelectMode||(exports.SelectMode={}));exports.ClickableTagKind=void 0;(function(e){e.BLUE="blue",e.GRAY="gray"})(exports.ClickableTagKind||(exports.ClickableTagKind={}));function O(e){return e.hasOwnProperty("react")}function _(e){return e.hasOwnProperty("jsx")}exports.SpsIconSize=void 0;(function(e){e.EXTRA_SMALL="xs",e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e.EXTRA_LARGE="xl"})(exports.SpsIconSize||(exports.SpsIconSize={}));exports.SpsIcon=void 0;(function(e){e.ANGLE_LEFT="angle-left",e.ANGLE_RIGHT="angle-right",e.ARCHIVE="archive",e.ARCHIVE_CIRCLE="archive-circle",e.ARROW_DOWN="arrow-down",e.ARROW_LEFT="arrow-left",e.ARROW_LEFT_CIRCLE="arrow-left-circle",e.ARROW_RIGHT="arrow-right",e.ARROW_RIGHT_CIRCLE="arrow-right-circle",e.ARROW_UP="arrow-up",e.ASTERISK="asterisk",e.ASTERISK_CIRCLE="asterisk-circle",e.BAN="ban",e.BAN_CIRCLE="ban-circle",e.BARCODE="barcode",e.BELL="bell",e.BELL_FILLED="bell-filled",e.BOLT="bolt",e.BOOK="book",e.BUILDING="building",e.BURST="burst",e.BURST_BOLT="burst-bolt",e.CALENDAR="calendar",e.CALENDAR_BLANK="calendar-blank",e.CALENDAR_BLANK_CIRCLE="calendar-blank-circle",e.CALENDAR_SELECT="calendar-select",e.CAMERA="camera",e.CHART_AREA="chart-area",e.CHART_BAR="chart-bar",e.CHART_LINE="chart-line",e.CHART_PIE="chart-pie",e.CHECKMARK="checkmark",e.CHECKMARK_CIRCLE="checkmark-circle",e.CHEVRON_DOWN="chevron-down",e.CHEVRON_LEFT="chevron-left",e.CHEVRON_RIGHT="chevron-right",e.CHEVRON_UP="chevron-up",e.CIRCLE_OUTLINE="circle-outline",e.CLOCK="clock",e.CLOCK_CIRCLE="clock-circle",e.CODE_FORK="code-fork",e.COLUMN_SWITCHER="column-switcher",e.COMMENT_BUBBLE="comment-bubble",e.COMMENT_BUBBLE_QUESTION="comment-bubble-question",e.CONVERSATION="conversation",e.CREDIT_CARD="credit-card",e.DASHBOARD="dashboard",e.DATABASE="database",e.DESCENDING_ELLIPSES_CIRCLE="descending-ellipses-circle",e.DISK="disk",e.DISK_CIRCLE="disk-circle",e.DOLLAR_SIGN="dollar-sign",e.DOUBLE_ANGLE_LEFT="double-angle-left",e.DOUBLE_ANGLE_RIGHT="double-angle-right",e.DOWNLOAD_CLOUD="download-cloud",e.DRILL="drill",e.DUPLICATE="duplicate",e.ELLIPSES="ellipses",e.ENVELOPE="envelope",e.EXCHANGE="exchange",e.EXCLAMATION_CIRCLE="exclamation-circle",e.EXCLAMATION_TRIANGLE="exclamation-triangle",e.EXPAND_COLLAPSE="expand-collapse",e.EYE="eye",e.EYE_SLASH="eye-slash",e.FILE="file",e.FILE_DUPLICATE="file-duplicate",e.FILE_PDF="file-pdf",e.FILE_PRESENTATION="file-presentation",e.FILE_SIZE="file-size",e.FILE_SOLID="file-solid",e.FILE_SOLID_TEXT="file-solid-text",e.FILE_SPREADSHEET="file-spreadsheet",e.FILE_TEXT="file-text",e.FILTER="filter",e.FLAG="flag",e.FOLDER="folder",e.FOLDER_OPEN="folder-open",e.FOLDER_SOLID="folder-solid",e.FOLDER_SOLID_OPEN="folder-solid-open",e.GEAR="gear",e.GLOBE="globe",e.GRID="grid",e.GROUP="group",e.HAND_STOP="hand-stop",e.HANDSHAKE="handshake",e.HAT="hat",e.HEART="heart",e.HISTORY="history",e.INBOX="inbox",e.INCOMING="incoming",e.INFO_CIRCLE="info-circle",e.INTERCOM="intercom",e.ITEM_TAG="item-tag",e.KEY="key",e.LIFE_PRESERVER="life-preserver",e.LIGHTBULB="lightbulb",e.LINK="link",e.LINKEDIN="linkedin",e.LIST="list",e.LIST_CARDS="list-cards",e.LIST_COLUMNS="list-columns",e.LIST_SUMMARY="list-summary",e.LIST_TABLE="list-table",e.LOCATION="location",e.LOCKED="locked",e.LOCKED_CIRCLE="locked-circle",e.MAP="map",e.MAP_MARKER="map-marker",e.MAXIMIZE="maximize",e.MINIMIZE="minimize",e.MINUS="minus",e.MINUS_CIRCLE="minus-circle",e.NEW_FILE="new-file",e.NEW_SCREEN="new-screen",e.OUTGOING="outgoing",e.PAPER_PLANE="paper-plane",e.PENCIL="pencil",e.PHOTO="photo",e.PIN="pin",e.PINTEREST="pinterest",e.PLAY="play",e.PLUS_CIRCLE="plus-circle",e.PLUS_SIGN="plus-sign",e.PRESENTATION="presentation",e.PRINTER="printer",e.QR_CODE="qr-code",e.QUESTION_CIRCLE="question-circle",e.QUOTE_LEFT="quote-left",e.QUOTE_RIGHT="quote-right",e.RANDOM="random",e.REFRESH="refresh",e.RIGHT_CIRCLE="right-circle",e.ROCKET="rocket",e.SEARCH="search",e.SEARCH_PLUS="search-plus",e.SHARE="share",e.SHOPPING_CART="shopping-cart",e.SORT_ALPHA_ASC="sort-alpha-asc",e.SORT_ALPHA_DESC="sort-alpha-desc",e.SORT_NUM_ASC="sort-num-asc",e.SORT_NUM_DESC="sort-num-desc",e.STAR="star",e.STAR_OUTLINE="star-outline",e.STATUS_ARCHIVED="status-archived",e.STATUS_CANCELLED="status-cancelled",e.STATUS_ERROR="status-error",e.STATUS_IN_PROCESS="status-in-process",e.STATUS_IN_TRANSIT="status-in-transit",e.STATUS_LOCKED="status-locked",e.STATUS_NEW="status-new",e.STATUS_OK="status-ok",e.STATUS_ON_HOLD="status-on-hold",e.STATUS_OUTDATED="status-outdated",e.STATUS_REJECTED="status-rejected",e.STATUS_SAVED="status-saved",e.STATUS_SAVING="status-saving",e.STATUS_TEMPLATE="status-template",e.STATUS_WARNING="status-warning",e.TABLE="table",e.TABS="tabs",e.TAG="tag",e.TEMPLATE_CIRCLE="template-circle",e.THUMBS_DOWN="thumbs-down",e.THUMBS_DOWN_OUTLINE="thumbs-down-outline",e.THUMBS_UP="thumbs-up",e.THUMBS_UP_OUTLINE="thumbs-up-outline",e.TRASH="trash",e.TRUCK_SHIPPING="truck-shipping",e.TWITTER="twitter",e.UNDO="undo",e.UNLOCKED="unlocked",e.UPLOAD_CLOUD="upload-cloud",e.USER="user",e.WRENCH="wrench",e.X="x",e.X_CIRCLE="x-circle"})(exports.SpsIcon||(exports.SpsIcon={}));exports.FeedbackBlockKind=void 0;(function(e){e.TIP="tip",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error",e.INFO="info"})(exports.FeedbackBlockKind||(exports.FeedbackBlockKind={}));const C=Object.freeze({[exports.FeedbackBlockKind.TIP]:exports.SpsIcon.LIGHTBULB,[exports.FeedbackBlockKind.ERROR]:exports.SpsIcon.EXCLAMATION_CIRCLE,[exports.FeedbackBlockKind.INFO]:exports.SpsIcon.INFO_CIRCLE,[exports.FeedbackBlockKind.SUCCESS]:exports.SpsIcon.CHECKMARK,[exports.FeedbackBlockKind.WARNING]:exports.SpsIcon.EXCLAMATION_TRIANGLE});exports.SpsFilterTileKind=void 0;(function(e){e.GENERAL="general",e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.PROCESSING="processing"})(exports.SpsFilterTileKind||(exports.SpsFilterTileKind={}));const N=7e3,c=2e3;exports.GrowlerKind=void 0;(function(e){e.ACTIVITY="activity",e.ERROR="error",e.INFO="info",e.PROGRESS="progress",e.SUCCESS="success",e.WARNING="warning"})(exports.GrowlerKind||(exports.GrowlerKind={}));const h=new Map([[exports.GrowlerKind.INFO,exports.SpsIcon.INFO_CIRCLE],[exports.GrowlerKind.WARNING,exports.SpsIcon.EXCLAMATION_TRIANGLE],[exports.GrowlerKind.ERROR,exports.SpsIcon.EXCLAMATION_CIRCLE],[exports.GrowlerKind.SUCCESS,exports.SpsIcon.CHECKMARK]]);var f={advancedSearch:{clear:"Clear",search:"Search"},button:{spinningTitle:"Loading\u2026"},columnChooser:{removeButton:"Remove {{elementName}}"},contentRow:{collapse:"Collapse",expand:"Expand"},datepicker:{calendar:{prevMonth:"View Previous Month",nextMonth:"View Next Month"},preset:{custom:"Custom",today:"Today",sevenDays:"Last 7 days",thirtyDays:"Last 30 days",sixtyDays:"Last 60 days",ninetyDays:"Last 90 days",oneYear:"Last year"},presetsLabel:"Ranges"},fileUpload:{acceptedTypes:"{{fileTypes}} format accepted",acceptedTypes_plural:"{{fileTypes}} formats accepted",cancelled:"File Upload Failed",cancelled_plural:"File Upload(s) Failed",close:"Close",instructions:"Drag and drop your file here or |browse for a file| on your desktop.",instructions_plural:"Drag and drop your files here or |browse for files| on your desktop.",maximumSize:"{{size}} maximum",processing:"Processing Upload\u2026",title:"Upload Your {{description}}"},filterPanel:{clear:"Clear Filters",title:"Filters",filterPlaceholder:"Filter options"},focusedTask:{close:"Close"},growler:{dismiss:"Dismiss"},insightCard:{all:"ALL",partnerCount:"{{count}} |of| {{total}}",partners:"PARTNERS"},insightTile:{all:"ALL",partnerCount:"{{count}} |of| {{total}}",partners:"PARTNERS"},label:{errors:{dateConstraint:{max:"Please enter a date on or prior to {{context.maxExceeded}}.",min:"Please enter a date on or after {{context.minExceeded}}."},dateFormat:"Please enter a date in the format {{context}}.",dateRangeOrder:"End date cannot be before start date.",dateValidity:"Please enter a valid date.",max:"Please enter a value no greater than {{context}}.",maxLength:"Please enter no more than {{context}} characters.",min:"Please enter a value no less than {{context}}.",minLength:"Please enter at least {{context}} characters.",required:"This field is required."},preventativeErrors:{maxLength:"This field accepts a maximum number of characters.",alpha:"This field accepts only alphabetic values.",numeric:"This field accepts only numerical values.",nonNumeric:"This field accepts only non-numerical values."},stronglySuggested:"This field is strongly suggested."},listActionBar:{clearSelected:"Clear Selected",itemsSelected:"Items Selected"},listToolbar:{advancedSearchToggle:"Advanced Search"},modal:{close:"Close modal",defaultButtonLabel:"Okay",defaultTitle:{general:"Action",info:"Info",success:"Success",warning:"Warning","serious-warning":"Warning"}},pagination:{nextPage:"Next Page",ofMany:"of many",ofPageCount:"of {{pageCount}}",page:"Page",prevPage:"Previous Page"},progressBar:{closeButtonTitle:"Close progress bar"},searchResultsBar:{clear:"Clear",count:"{{count}} of {{total}}",matchingResults:"Matching results"},select:{defaultPlaceholder:"Select one\u2026"},slackLink:{label:"Chat"},spinner:{defaultAltText:"Loading\u2026"},taskQueue:{clearCompleted:"Clear Completed",newTask:"You have a new task in your queue.",noTasks:"There are currently no tasks in your queue."}};const g={t(e,t){const a=l.getPath(f,e.replace(/^design-system:/,""));return t?l.template(a)(t):a}};exports.SpsInsightCardKind=void 0;(function(e){e.GENERAL="general",e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.PROCESSING="processing"})(exports.SpsInsightCardKind||(exports.SpsInsightCardKind={}));const D=Object.freeze({[exports.SpsInsightCardKind.GENERAL]:exports.SpsIcon.STATUS_NEW,[exports.SpsInsightCardKind.SUCCESS]:exports.SpsIcon.STATUS_OK,[exports.SpsInsightCardKind.ERROR]:exports.SpsIcon.STATUS_ERROR,[exports.SpsInsightCardKind.WARNING]:exports.SpsIcon.STATUS_WARNING,[exports.SpsInsightCardKind.PROCESSING]:exports.SpsIcon.STATUS_IN_PROCESS});exports.SpsInsightTileKind=void 0;(function(e){e.GENERAL="general",e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.PROCESSING="processing"})(exports.SpsInsightTileKind||(exports.SpsInsightTileKind={}));const U=Object.freeze({[exports.SpsInsightTileKind.GENERAL]:exports.SpsIcon.STATUS_NEW,[exports.SpsInsightTileKind.SUCCESS]:exports.SpsIcon.STATUS_OK,[exports.SpsInsightTileKind.ERROR]:exports.SpsIcon.STATUS_ERROR,[exports.SpsInsightTileKind.WARNING]:exports.SpsIcon.STATUS_WARNING,[exports.SpsInsightTileKind.PROCESSING]:exports.SpsIcon.STATUS_IN_PROCESS});exports.KeyValueListTitleColor=void 0;(function(e){e.LIGHT="light",e.DARK="dark"})(exports.KeyValueListTitleColor||(exports.KeyValueListTitleColor={}));exports.LineChartColors=void 0;(function(e){e.GREEN="green200",e.RED="red200",e.BLUE="blue200",e.ORANGE="orange200",e.GRAY="gray600"})(exports.LineChartColors||(exports.LineChartColors={}));exports.ModalKind=void 0;(function(e){e.GENERAL="general",e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.SERIOUS_WARNING="serious-warning"})(exports.ModalKind||(exports.ModalKind={}));exports.ModalSize=void 0;(function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"})(exports.ModalSize||(exports.ModalSize={}));class S{constructor(t,a={}){this.value=t,Object.assign(this,a)}get text(){return this.textInternal?this.textInternal:this.value?this.textKey?this.value[this.textKey]:String(this.value):""}set text(t){this.textInternal=t}get caption(){return this.captionInternal?this.captionInternal:this.value&&this.captionKey?this.value[this.captionKey]:""}set caption(t){this.captionInternal=t}get href(){return this.value?this.value.isLink&&typeof this.value=="function"?this.value():this.value.href:null}get disabled(){return typeof this.disabledInternal!="undefined"?this.disabledInternal:this.value?this.value.disabled:!1}set disabled(t){this.disabledInternal=t}get bold(){return typeof this.boldInternal!="undefined"?this.boldInternal:this.value?this.value.bold&&this.value.bold===!0:!1}getHtml(t){return t?this.text.replace(t,"<u>$&</u>"):this.text}}const I=[10,25,50,100];exports.Position=void 0;(function(e){e.TOP_LEFT="top left",e.TOP_MIDDLE="top middle",e.TOP_RIGHT="top right",e.RIGHT_TOP="right top",e.RIGHT_MIDDLE="right middle",e.RIGHT_BOTTOM="right bottom",e.BOTTOM_RIGHT="bottom right",e.BOTTOM_MIDDLE="bottom middle",e.BOTTOM_LEFT="bottom left",e.LEFT_BOTTOM="left bottom",e.LEFT_MIDDLE="left middle",e.LEFT_TOP="left top"})(exports.Position||(exports.Position={}));exports.RingSize=void 0;(function(e){e[e.SMALL=14]="SMALL",e[e.MEDIUM=26]="MEDIUM",e[e.LARGE=38]="LARGE"})(exports.RingSize||(exports.RingSize={}));exports.SpinnerSize=void 0;(function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"})(exports.SpinnerSize||(exports.SpinnerSize={}));exports.StackedBarChartMilestone=void 0;(function(e){e.GREEN="green200",e.RED="red200",e.BLUE="blue200",e.ORANGE="orange200",e.GRAY="gray600"})(exports.StackedBarChartMilestone||(exports.StackedBarChartMilestone={}));exports.SteppedProgressBarColor=void 0;(function(e){e.PURPLE="purple",e.RED="red",e.BLUE="blue",e.ORANGE="orange",e.GRAY="gray"})(exports.SteppedProgressBarColor||(exports.SteppedProgressBarColor={}));exports.SortDirection=void 0;(function(e){e.ASCENDING="ascending",e.DESCENDING="descending"})(exports.SortDirection||(exports.SortDirection={}));exports.TagKind=void 0;(function(e){e.DEFAULT="default",e.KEY="key",e.WARNING="warning",e.ERROR="error",e.PENDING="pending",e.SUCCESS="success",e.INFO="info"})(exports.TagKind||(exports.TagKind={}));const m=1e3;exports.TooltipShowTrigger=void 0;(function(e){e.MANUAL="manual",e.MOUSEOVER="mouseover",e.CLICK="click"})(exports.TooltipShowTrigger||(exports.TooltipShowTrigger={}));exports.TooltipKind=void 0;(function(e){e.DEFAULT="default",e.HELP="help",e.ERROR="error",e.WARNING="warning",e.CONTAINER="container"})(exports.TooltipKind||(exports.TooltipKind={}));const T={icon:"",label:"",caption:"",disabled:!1,isLink:!1};function G(e){return(t,a,R)=>l.simpleMetadataDecoratorApplicator(e,T,t,a,R)}exports.SpsTaskStatus=void 0;(function(e){e.COMPLETED="completed",e.ERRORED="errored",e.WARNING="warning",e.IN_PROGRESS="in_progress"})(exports.SpsTaskStatus||(exports.SpsTaskStatus={}));const P=Object.freeze({[exports.SpsTaskStatus.COMPLETED]:exports.SpsIcon.STATUS_OK,[exports.SpsTaskStatus.ERRORED]:exports.SpsIcon.STATUS_ERROR,[exports.SpsTaskStatus.WARNING]:exports.SpsIcon.STATUS_WARNING,[exports.SpsTaskStatus.IN_PROGRESS]:"sps-spinner sps-spinner--small"}),b=5e3;exports.WizardSubstepConditions=void 0;(function(e){e.BASIC="basic",e.COMPLETED="completed",e.COMPLETE="completed",e.ACTIVE="active"})(exports.WizardSubstepConditions||(exports.WizardSubstepConditions={}));exports.ZStratum=void 0;(function(e){e[e.BASE=0]="BASE",e[e.TIP=10]="TIP",e[e.DROPDOWN=100]="DROPDOWN",e[e.BAR=1e3]="BAR",e[e.DIALOG=1e4]="DIALOG"})(exports.ZStratum||(exports.ZStratum={}));exports.ButtonKind=L;exports.DEFAULT_PAGE_SIZE_OPTIONS=I;exports.DropdownKind=u;exports.FeedbackBlockIcons=C;exports.GROWLER_FADEOUT_DURATION_MS=c;exports.GROWLER_VISIBLE_DURATION_MS=N;exports.GrowlerIcon=h;exports.SPS_ACTION_DEFAULTS=T;exports.SpsAction=G;exports.SpsInsightCardIcons=D;exports.SpsInsightTileIcons=U;exports.SpsOptionListOption=S;exports.SpsTaskStatusIcons=P;exports.TASK_QUEUE_NOTIFICATION_DURATION_MS=b;exports.TOOLTIP_HIDE_DELAY_MS_DEFAULT=m;exports.exampleIsReactComponentExample=O;exports.exampleIsReactJSXExample=_;exports.noI18nI18n=g;
package/lib/index.d.ts ADDED
@@ -0,0 +1,31 @@
1
+ export * from "./bar-chart";
2
+ export * from "./button";
3
+ export * from "./datetime";
4
+ export * from "./clickable-tag";
5
+ export * from "./examples";
6
+ export * from "./feedback";
7
+ export * from "./filter-tile";
8
+ export * from "./growler";
9
+ export * from "./grid";
10
+ export * from "./i18n";
11
+ export * from "./icon";
12
+ export * from "./insight-card";
13
+ export * from "./insight-tile";
14
+ export * from "./key-value-list-item";
15
+ export * from "./line-chart";
16
+ export * from "./modal";
17
+ export * from "./option-list";
18
+ export * from "./pagination";
19
+ export * from "./positioning";
20
+ export * from "./ring-size";
21
+ export * from "./spinner";
22
+ export * from "./stacked-horizontal-bar-chart";
23
+ export * from "./stepped-progress-bar";
24
+ export * from "./table";
25
+ export * from "./tabs";
26
+ export * from "./tag";
27
+ export * from "./tooltip";
28
+ export * from "./sps-action";
29
+ export * from "./task-queue";
30
+ export * from "./wizard-substep-condition";
31
+ export * from "./z-strata";