@indico-data/design-system 1.0.29 → 1.0.31
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/lib/components/Icon/index.d.ts +2 -0
- package/lib/components/buttons/IconButton/IconButton.styles.d.ts +1 -1
- package/lib/components/index.d.ts +1 -1
- package/lib/index.d.ts +393 -1
- package/lib/index.esm.js +148 -37
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +158 -36
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/inputs/SearchInput/SearchInput.stories.tsx +16 -0
- package/src/components/inputs/SearchInput/SearchInput.styles.ts +35 -3
- package/src/components/inputs/SearchInput/SearchInput.tsx +32 -5
- package/src/index.ts +12 -0
|
@@ -298,7 +298,6 @@ export declare const StyledIconButtonLink: import("styled-components").IStyledCo
|
|
|
298
298
|
translate?: "yes" | "no" | undefined;
|
|
299
299
|
slot?: string | undefined;
|
|
300
300
|
title?: string | undefined;
|
|
301
|
-
children?: import("react").ReactNode;
|
|
302
301
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
303
302
|
id?: string | undefined;
|
|
304
303
|
className?: string | undefined;
|
|
@@ -395,6 +394,7 @@ export declare const StyledIconButtonLink: import("styled-components").IStyledCo
|
|
|
395
394
|
"aria-valuemin"?: number | undefined;
|
|
396
395
|
"aria-valuenow"?: number | undefined;
|
|
397
396
|
"aria-valuetext"?: string | undefined;
|
|
397
|
+
children?: import("react").ReactNode;
|
|
398
398
|
dangerouslySetInnerHTML?: {
|
|
399
399
|
__html: string | TrustedHTML;
|
|
400
400
|
} | undefined;
|
|
@@ -2,7 +2,7 @@ export { Accordion } from './Accordion';
|
|
|
2
2
|
export { Section, SectionBlock, SectionBody, SectionHeader, SectionTable } from './basic-section';
|
|
3
3
|
export { Button, IconButton } from './buttons';
|
|
4
4
|
export { BorderSelect, MultiCombobox, Select, SingleCombobox } from './dropdowns';
|
|
5
|
-
export { Icon } from './Icon';
|
|
5
|
+
export { Icon, faIcons, indicons } from './Icon';
|
|
6
6
|
export { EditableInput, NumberInput, SearchInput, TextInput } from './inputs';
|
|
7
7
|
export { BarSpinner, CirclePulse, CircleSpinner, LoadingList, PercentageRing, RandomLoadingMessage, } from './loading-indicators';
|
|
8
8
|
export { ListTable } from './ListTable';
|
package/lib/index.d.ts
CHANGED
|
@@ -1,10 +1,402 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React, { ChangeEvent } from 'react';
|
|
3
|
+
import * as styled_components from 'styled-components';
|
|
3
4
|
import { PermafrostComponent, IconName } from '@/types';
|
|
4
5
|
import { AriaButtonProps } from '@react-types/button';
|
|
5
6
|
|
|
6
7
|
declare const GlobalStyles: () => React.JSX.Element;
|
|
7
8
|
|
|
9
|
+
declare const faIcons: {
|
|
10
|
+
'fa-dot-circle': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
11
|
+
'fa-file': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
12
|
+
'fa-file-alt': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
13
|
+
'fa-file-pdf': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
14
|
+
'fa-file-word': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
15
|
+
'fa-check-square': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
16
|
+
'fa-square': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
17
|
+
'fa-angle-double-left': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
18
|
+
'fa-arrow-circle-right': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
19
|
+
'fa-arrow-down': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
20
|
+
'fa-arrow-left': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
21
|
+
'fa-arrow-right': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
22
|
+
'fa-arrow-up': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
23
|
+
'fa-ban': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
24
|
+
'fa-caret-down': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
25
|
+
'fa-caret-up': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
26
|
+
'fa-chart-bar': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
27
|
+
'fa-check': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
28
|
+
'fa-check-circle': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
29
|
+
'fa-circle-notch': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
30
|
+
'fa-clipboard': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
31
|
+
'fa-clock': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
32
|
+
'fa-clone': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
33
|
+
'fa-cloud': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
34
|
+
'fa-cog': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
35
|
+
'fa-cogs': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
36
|
+
'fa-coins': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
37
|
+
'fa-cube': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
38
|
+
'fa-cut': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
39
|
+
'fa-download': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
40
|
+
'fa-exclamation-circle': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
41
|
+
'fa-exclamation-triangle': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
42
|
+
'fa-external-link-alt': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
43
|
+
'fa-eye-dropper': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
44
|
+
'fa-file-download': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
45
|
+
'fa-file-export': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
46
|
+
'fa-file-upload': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
47
|
+
'fa-filter': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
48
|
+
'fa-ghost': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
49
|
+
'fa-hat-wizard': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
50
|
+
'fa-info-circle': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
51
|
+
'fa-key': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
52
|
+
'fa-keyboard': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
53
|
+
'fa-layer-group': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
54
|
+
'fa-pencil-alt': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
55
|
+
'fa-plus': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
56
|
+
'fa-plus-square': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
57
|
+
'fa-question-circle': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
58
|
+
'fa-robot': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
59
|
+
'fa-search': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
60
|
+
'fa-sign-out-alt': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
61
|
+
'fa-sliders-h': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
62
|
+
'fa-sync-alt': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
63
|
+
'fa-tag': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
64
|
+
'fa-times': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
65
|
+
'fa-times-circle': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
66
|
+
'fa-tint': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
67
|
+
'fa-toggle-off': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
68
|
+
'fa-toggle-on': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
69
|
+
'fa-trash': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
70
|
+
'fa-trash-alt': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
71
|
+
'fa-undo': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
72
|
+
'fa-user': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
73
|
+
'fa-users': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
74
|
+
'fa-mouse-pointer': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
75
|
+
'fa-step-forward': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
76
|
+
'fa-search-minus': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
77
|
+
'fa-search-plus': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
78
|
+
'fa-table': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
79
|
+
'fa-image': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
80
|
+
'fa-link': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
81
|
+
'fa-list': React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
declare const indicons: {
|
|
85
|
+
'indico-o-white': React.JSX.Element;
|
|
86
|
+
account: React.JSX.Element;
|
|
87
|
+
address: React.JSX.Element;
|
|
88
|
+
'api-doc': React.JSX.Element;
|
|
89
|
+
'arrow-dots': React.JSX.Element;
|
|
90
|
+
'arrow-down': React.JSX.Element;
|
|
91
|
+
'arrow-up-circle': React.JSX.Element;
|
|
92
|
+
'arrows-cursor': React.JSX.Element;
|
|
93
|
+
branch: React.JSX.Element;
|
|
94
|
+
'check-circle': React.JSX.Element;
|
|
95
|
+
check: React.JSX.Element;
|
|
96
|
+
checkbox: React.JSX.Element;
|
|
97
|
+
'chevron-down': React.JSX.Element;
|
|
98
|
+
'chevron-left': React.JSX.Element;
|
|
99
|
+
'chevron-right': React.JSX.Element;
|
|
100
|
+
'chevron-up': React.JSX.Element;
|
|
101
|
+
'classification-document': React.JSX.Element;
|
|
102
|
+
'classification-image': React.JSX.Element;
|
|
103
|
+
'classification-page': React.JSX.Element;
|
|
104
|
+
'classify-and-unbundle': React.JSX.Element;
|
|
105
|
+
clipboard: React.JSX.Element;
|
|
106
|
+
'coffee-1': React.JSX.Element;
|
|
107
|
+
'coffee-2': React.JSX.Element;
|
|
108
|
+
'coffee-fail': React.JSX.Element;
|
|
109
|
+
coffeecup: React.JSX.Element;
|
|
110
|
+
coffeesteam: React.JSX.Element;
|
|
111
|
+
'company-name': React.JSX.Element;
|
|
112
|
+
'confidence-bar-1': React.JSX.Element;
|
|
113
|
+
'confidence-bar-2': React.JSX.Element;
|
|
114
|
+
'confidence-bar-3': React.JSX.Element;
|
|
115
|
+
'confidence-bar-4': React.JSX.Element;
|
|
116
|
+
'confidence-bars': React.JSX.Element;
|
|
117
|
+
configure: React.JSX.Element;
|
|
118
|
+
crowdlabel: React.JSX.Element;
|
|
119
|
+
currency: React.JSX.Element;
|
|
120
|
+
dashboard: React.JSX.Element;
|
|
121
|
+
'data-and-access': React.JSX.Element;
|
|
122
|
+
database: React.JSX.Element;
|
|
123
|
+
date: React.JSX.Element;
|
|
124
|
+
draggable: React.JSX.Element;
|
|
125
|
+
droplet: React.JSX.Element;
|
|
126
|
+
edit: React.JSX.Element;
|
|
127
|
+
education: React.JSX.Element;
|
|
128
|
+
ellipsis: React.JSX.Element;
|
|
129
|
+
'elmos-fire': React.JSX.Element;
|
|
130
|
+
email: React.JSX.Element;
|
|
131
|
+
enterprise: React.JSX.Element;
|
|
132
|
+
extraction: React.JSX.Element;
|
|
133
|
+
eye: React.JSX.Element;
|
|
134
|
+
file: React.JSX.Element;
|
|
135
|
+
fileHappy: React.JSX.Element;
|
|
136
|
+
filter: React.JSX.Element;
|
|
137
|
+
'filter-outline': React.JSX.Element;
|
|
138
|
+
folder: React.JSX.Element;
|
|
139
|
+
form: React.JSX.Element;
|
|
140
|
+
gallery: React.JSX.Element;
|
|
141
|
+
graphiql: React.JSX.Element;
|
|
142
|
+
happy: React.JSX.Element;
|
|
143
|
+
'help-solid': React.JSX.Element;
|
|
144
|
+
help: React.JSX.Element;
|
|
145
|
+
highlight: React.JSX.Element;
|
|
146
|
+
'highlight-outline': React.JSX.Element;
|
|
147
|
+
'indico-logo-white': React.JSX.Element;
|
|
148
|
+
'indico-o': React.JSX.Element;
|
|
149
|
+
info: React.JSX.Element;
|
|
150
|
+
kabob: React.JSX.Element;
|
|
151
|
+
key: React.JSX.Element;
|
|
152
|
+
label: React.JSX.Element;
|
|
153
|
+
'layout-complex': React.JSX.Element;
|
|
154
|
+
'layout-simple': React.JSX.Element;
|
|
155
|
+
location: React.JSX.Element;
|
|
156
|
+
lock: React.JSX.Element;
|
|
157
|
+
menu: React.JSX.Element;
|
|
158
|
+
'model-import': React.JSX.Element;
|
|
159
|
+
'model-starter': React.JSX.Element;
|
|
160
|
+
moon: React.JSX.Element;
|
|
161
|
+
moonbow: React.JSX.Element;
|
|
162
|
+
'no-format': React.JSX.Element;
|
|
163
|
+
'object-detection': React.JSX.Element;
|
|
164
|
+
organizations: React.JSX.Element;
|
|
165
|
+
output: React.JSX.Element;
|
|
166
|
+
'page-thumbnail': React.JSX.Element;
|
|
167
|
+
'pay-as-you-go': React.JSX.Element;
|
|
168
|
+
person: React.JSX.Element;
|
|
169
|
+
phone: React.JSX.Element;
|
|
170
|
+
pin: React.JSX.Element;
|
|
171
|
+
plus: React.JSX.Element;
|
|
172
|
+
pointer: React.JSX.Element;
|
|
173
|
+
popup: React.JSX.Element;
|
|
174
|
+
price: React.JSX.Element;
|
|
175
|
+
'radio-button': React.JSX.Element;
|
|
176
|
+
recruiter: React.JSX.Element;
|
|
177
|
+
regex: React.JSX.Element;
|
|
178
|
+
reject: React.JSX.Element;
|
|
179
|
+
repair: React.JSX.Element;
|
|
180
|
+
research: React.JSX.Element;
|
|
181
|
+
retrain: React.JSX.Element;
|
|
182
|
+
sad: React.JSX.Element;
|
|
183
|
+
search: React.JSX.Element;
|
|
184
|
+
shrug: React.JSX.Element;
|
|
185
|
+
signature: React.JSX.Element;
|
|
186
|
+
'sort-down': React.JSX.Element;
|
|
187
|
+
split: React.JSX.Element;
|
|
188
|
+
'step-forward': React.JSX.Element;
|
|
189
|
+
sun: React.JSX.Element;
|
|
190
|
+
surround: React.JSX.Element;
|
|
191
|
+
'surround-outline': React.JSX.Element;
|
|
192
|
+
swagger: React.JSX.Element;
|
|
193
|
+
text: React.JSX.Element;
|
|
194
|
+
'thumbs-down': React.JSX.Element;
|
|
195
|
+
'thumbs-up': React.JSX.Element;
|
|
196
|
+
time: React.JSX.Element;
|
|
197
|
+
trash: React.JSX.Element;
|
|
198
|
+
unlock: React.JSX.Element;
|
|
199
|
+
upload: React.JSX.Element;
|
|
200
|
+
url: React.JSX.Element;
|
|
201
|
+
user: React.JSX.Element;
|
|
202
|
+
wand: React.JSX.Element;
|
|
203
|
+
warning: React.JSX.Element;
|
|
204
|
+
workflows: React.JSX.Element;
|
|
205
|
+
'x-close': React.JSX.Element;
|
|
206
|
+
'zoom-in': React.JSX.Element;
|
|
207
|
+
'zoom-out': React.JSX.Element;
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
declare const animation: {
|
|
211
|
+
readonly duration: "200ms";
|
|
212
|
+
readonly timing: "ease";
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
declare const breakpoints: {
|
|
216
|
+
readonly mediumScreen: "600px";
|
|
217
|
+
readonly largeScreen: "900px";
|
|
218
|
+
readonly maxScreen: "1300px";
|
|
219
|
+
};
|
|
220
|
+
declare const mediaQueries: {
|
|
221
|
+
mediumScreen: string;
|
|
222
|
+
largeScreen: string;
|
|
223
|
+
maxScreen: string;
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
declare const typography: {
|
|
227
|
+
fontFamily: {
|
|
228
|
+
base: string;
|
|
229
|
+
heading: string;
|
|
230
|
+
};
|
|
231
|
+
fontSize: {
|
|
232
|
+
readonly caption: "12px";
|
|
233
|
+
readonly base: "14px";
|
|
234
|
+
readonly subheadSmall: "16px";
|
|
235
|
+
readonly subheadLarge: "18px";
|
|
236
|
+
readonly subheadXl: "22px";
|
|
237
|
+
readonly display: "30px";
|
|
238
|
+
};
|
|
239
|
+
lineHeight: {
|
|
240
|
+
readonly base: 1.25;
|
|
241
|
+
readonly heading: 1.2;
|
|
242
|
+
};
|
|
243
|
+
spacing: {
|
|
244
|
+
base: string;
|
|
245
|
+
half: string;
|
|
246
|
+
quarter: string;
|
|
247
|
+
third: string;
|
|
248
|
+
};
|
|
249
|
+
ellipsis: styled_components.RuleSet<object>;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
declare const padding: {
|
|
253
|
+
readonly sm: "15px";
|
|
254
|
+
readonly md: "20px";
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
declare const spacings: {
|
|
258
|
+
readonly xs: "8px";
|
|
259
|
+
readonly sm: "12px";
|
|
260
|
+
readonly md: "24px";
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
declare const margin: {
|
|
264
|
+
readonly sm: "15px";
|
|
265
|
+
readonly md: "20px";
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
declare function decimalAdjust(type: any, value: any, exp: any): any;
|
|
269
|
+
declare function round10(value: any, exp: any): any;
|
|
270
|
+
declare function clamp(value: any, min: any, max: any): any;
|
|
271
|
+
declare function numberWithCommas(x: any): any;
|
|
272
|
+
declare namespace MATH {
|
|
273
|
+
export { decimalAdjust };
|
|
274
|
+
export { round10 };
|
|
275
|
+
export { clamp };
|
|
276
|
+
export { numberWithCommas };
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
declare const allColors: {
|
|
280
|
+
readonly akaroa: "#cbc98f";
|
|
281
|
+
readonly amber: "#f4c401";
|
|
282
|
+
readonly amethyst: "#8e57b3";
|
|
283
|
+
readonly aqua: "#10e4fe";
|
|
284
|
+
readonly astralBlue: "#2f7ca2";
|
|
285
|
+
readonly ateneoBlue: "#0d466a";
|
|
286
|
+
readonly avocado: "#81b12f";
|
|
287
|
+
readonly azure: "#108cf7";
|
|
288
|
+
readonly baliHai: "#8498b6";
|
|
289
|
+
readonly black: "#000";
|
|
290
|
+
readonly blueBayoux: "#4f5e74";
|
|
291
|
+
readonly blueMagenta: "#542f9d";
|
|
292
|
+
readonly blueRibbon: "#0b35ff";
|
|
293
|
+
readonly blueYonder: "#586fd2";
|
|
294
|
+
readonly bouqet: "#a35c9a";
|
|
295
|
+
readonly brick: "#c62828";
|
|
296
|
+
readonly brown: "#785349";
|
|
297
|
+
readonly candyCorn: "#fcef4d";
|
|
298
|
+
readonly carnation: "#ff8adf";
|
|
299
|
+
readonly carrot: "#f29a2d";
|
|
300
|
+
readonly cerise: "#d52a96";
|
|
301
|
+
readonly cerulean: "#008b9e";
|
|
302
|
+
readonly chantilly: "#f7b0eb";
|
|
303
|
+
readonly charcoal: "#474b4b";
|
|
304
|
+
readonly chartreuse: "#34ff01";
|
|
305
|
+
readonly clay: "#283243";
|
|
306
|
+
readonly cocoaBean: "#5c1200";
|
|
307
|
+
readonly comet: "#5a6982";
|
|
308
|
+
readonly cornflower: "#2060ff";
|
|
309
|
+
readonly crimson: "#e53126";
|
|
310
|
+
readonly curiousBlue: "#178ee0";
|
|
311
|
+
readonly cyan: "#0cf";
|
|
312
|
+
readonly darkFontColor: "#0d151d";
|
|
313
|
+
readonly darkGray: "#333";
|
|
314
|
+
readonly darkPurple: "#6f3eae";
|
|
315
|
+
readonly darkRed: "#b30000";
|
|
316
|
+
readonly defaultFontColor: "#bbbfc5";
|
|
317
|
+
readonly dodgerBlue: "#1774ff";
|
|
318
|
+
readonly eagleGreen: "#005557";
|
|
319
|
+
readonly ebony: "#101a26";
|
|
320
|
+
readonly eggplant: "#7a0074";
|
|
321
|
+
readonly electricGreen: "#00ff0a";
|
|
322
|
+
readonly emerald: "#09c199";
|
|
323
|
+
readonly espresso: "#5a3627";
|
|
324
|
+
readonly fieldPromptError: "#fd9693";
|
|
325
|
+
readonly fieldPromptInfo: "#00bfff";
|
|
326
|
+
readonly flamingo: "#f861b6";
|
|
327
|
+
readonly flirt: "#910870";
|
|
328
|
+
readonly forestGreen: "#1f7f1f";
|
|
329
|
+
readonly geraldine: "#fe9486";
|
|
330
|
+
readonly grannysmith: "#92e959";
|
|
331
|
+
readonly green: "#4caf50";
|
|
332
|
+
readonly harlequin: "#20cb00";
|
|
333
|
+
readonly harvestGold: "#e6c079";
|
|
334
|
+
readonly hemlock: "#626740";
|
|
335
|
+
readonly imperial: "#4b0134";
|
|
336
|
+
readonly iron: "#d9dee0";
|
|
337
|
+
readonly japaneseIndigo: "#264359";
|
|
338
|
+
readonly juniper: "#6d9292";
|
|
339
|
+
readonly khaki: "#bba44b";
|
|
340
|
+
readonly koamaru: "#2f346a";
|
|
341
|
+
readonly korma: "#90370e";
|
|
342
|
+
readonly lavender: "#B086E3";
|
|
343
|
+
readonly lavenderRose: "#fb9fda";
|
|
344
|
+
readonly lightGray: "#eee";
|
|
345
|
+
readonly lightPurple: "#b43be4";
|
|
346
|
+
readonly lilac: "#a195d4";
|
|
347
|
+
readonly lincolnGreen: "#254600";
|
|
348
|
+
readonly magenta: "#ff15e0";
|
|
349
|
+
readonly malibu: "#68C2FB";
|
|
350
|
+
readonly mantis: "#4fa83d";
|
|
351
|
+
readonly maroon: "#ad3349";
|
|
352
|
+
readonly mauve: "#e06cfb";
|
|
353
|
+
readonly mediumGray: "#999";
|
|
354
|
+
readonly midFontColor: "#8593b3";
|
|
355
|
+
readonly mint: "#3ac999";
|
|
356
|
+
readonly mirage: "#182432";
|
|
357
|
+
readonly mulberry: "#5c0536";
|
|
358
|
+
readonly olive: "#807300";
|
|
359
|
+
readonly orange: "#ff7200";
|
|
360
|
+
readonly orchid: "#ab00ff";
|
|
361
|
+
readonly oxfordBlue: "#384558";
|
|
362
|
+
readonly pacific: "#00b5b6";
|
|
363
|
+
readonly palm: "#1aa511";
|
|
364
|
+
readonly persian: "#1717cf";
|
|
365
|
+
readonly persianLight: "#0327ce";
|
|
366
|
+
readonly pine: "#017074";
|
|
367
|
+
readonly pink: "#f74f8a";
|
|
368
|
+
readonly pistachio: "#aac609";
|
|
369
|
+
readonly raspberry: "#990030";
|
|
370
|
+
readonly red: "#f95359";
|
|
371
|
+
readonly robinsEggBlue: "#00bcd4";
|
|
372
|
+
readonly romanSilver: "#7d888d";
|
|
373
|
+
readonly salem: "#03832e";
|
|
374
|
+
readonly sapGreen: "#5f7e20";
|
|
375
|
+
readonly seaGreen: "#0b8a51";
|
|
376
|
+
readonly seance: "#7f1f82";
|
|
377
|
+
readonly shiraz: "#c61021";
|
|
378
|
+
readonly sinopia: "#D14200";
|
|
379
|
+
readonly tangerine: "#ff9900";
|
|
380
|
+
readonly teal: "#008285";
|
|
381
|
+
readonly toast: "#997862";
|
|
382
|
+
readonly trueBlue: "#066CC6";
|
|
383
|
+
readonly turquoise: "#00b5b6";
|
|
384
|
+
readonly vermilion: "#b95555";
|
|
385
|
+
readonly viking: "#59cfe0";
|
|
386
|
+
readonly violet: "#3e4eb8";
|
|
387
|
+
readonly violetBlue: "#8060d2";
|
|
388
|
+
readonly walnut: "#783f00";
|
|
389
|
+
readonly white: "#fff";
|
|
390
|
+
readonly windsorTan: "#b35c00";
|
|
391
|
+
readonly yellow: "#ffca28";
|
|
392
|
+
readonly zucchini: "#016422";
|
|
393
|
+
readonly hiliteFontColor: "#fff";
|
|
394
|
+
readonly lightFontColor: "#eee";
|
|
395
|
+
readonly borderColor: "#eee";
|
|
396
|
+
readonly actionColor: "#8593b3";
|
|
397
|
+
readonly backgroundColor: "#182432";
|
|
398
|
+
};
|
|
399
|
+
|
|
8
400
|
type Props$i = PermafrostComponent & {
|
|
9
401
|
content: React.ReactNode;
|
|
10
402
|
header?: React.ReactNode | string;
|
|
@@ -406,4 +798,4 @@ type Props = PermafrostComponent & {
|
|
|
406
798
|
};
|
|
407
799
|
declare function Shrug(props: Props): React.ReactElement;
|
|
408
800
|
|
|
409
|
-
export { Accordion, BarSpinner, BorderSelect, Button, CirclePulse, CircleSpinner, EditableInput, GlobalStyles, Icon, IconButton, ListTable, LoadingList, MultiCombobox, NumberInput, Pagination, PercentageRing, RandomLoadingMessage, SearchInput, Section, SectionBlock, SectionBody, SectionHeader, SectionTable, Select, Shrug, SingleCombobox, TextInput };
|
|
801
|
+
export { animation as ANIMATION, Accordion, breakpoints as BREAKPOINT, BarSpinner, BorderSelect, Button, allColors as COLORS, CirclePulse, CircleSpinner, EditableInput, GlobalStyles, Icon, IconButton, ListTable, LoadingList, margin as MARGINS, MATH, mediaQueries as MEDIA_QUERIES, MultiCombobox, NumberInput, padding as PADDINGS, Pagination, PercentageRing, RandomLoadingMessage, spacings as SPACING, SearchInput, Section, SectionBlock, SectionBody, SectionHeader, SectionTable, Select, Shrug, SingleCombobox, typography as TYPOGRAPHY, TextInput, faIcons, indicons };
|
package/lib/index.esm.js
CHANGED
|
@@ -58,12 +58,60 @@ const padding = {
|
|
|
58
58
|
md: '20px',
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
+
const spacings = {
|
|
62
|
+
xs: '8px',
|
|
63
|
+
sm: '12px',
|
|
64
|
+
md: '24px',
|
|
65
|
+
};
|
|
66
|
+
|
|
61
67
|
const margin = {
|
|
62
68
|
// todo -- get with mike L for other padding values as they become needed. Ideally we should create a formula.
|
|
63
69
|
sm: '15px',
|
|
64
70
|
md: '20px',
|
|
65
71
|
};
|
|
66
72
|
|
|
73
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/floor
|
|
74
|
+
|
|
75
|
+
const decimalAdjust = (type, value, exp) => {
|
|
76
|
+
// If the exp is undefined or zero...
|
|
77
|
+
if (typeof exp === 'undefined' || +exp === 0) {
|
|
78
|
+
return Math[type](value);
|
|
79
|
+
}
|
|
80
|
+
value = +value;
|
|
81
|
+
exp = +exp;
|
|
82
|
+
// If the value is not a number or the exp is not an integer...
|
|
83
|
+
if (isNaN(value) || !(typeof exp === 'number' && exp % 1 === 0)) {
|
|
84
|
+
return NaN;
|
|
85
|
+
}
|
|
86
|
+
// Shift
|
|
87
|
+
value = value.toString().split('e');
|
|
88
|
+
value = Math[type](+(value[0] + 'e' + (value[1] ? +value[1] - exp : -exp)));
|
|
89
|
+
// Shift back
|
|
90
|
+
value = value.toString().split('e');
|
|
91
|
+
return +(value[0] + 'e' + (value[1] ? +value[1] + exp : exp));
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
const round10 = (value, exp) => {
|
|
95
|
+
return decimalAdjust('round', value, exp);
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const clamp = (value, min, max) => {
|
|
99
|
+
value = value < min ? min : value;
|
|
100
|
+
value = value > max ? max : value;
|
|
101
|
+
return value;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
const numberWithCommas$1 = (x) => {
|
|
105
|
+
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
const MATH = {
|
|
109
|
+
decimalAdjust,
|
|
110
|
+
round10,
|
|
111
|
+
clamp,
|
|
112
|
+
numberWithCommas: numberWithCommas$1,
|
|
113
|
+
};
|
|
114
|
+
|
|
67
115
|
const allColors = {
|
|
68
116
|
akaroa: '#cbc98f',
|
|
69
117
|
amber: '#f4c401',
|
|
@@ -7327,7 +7375,6 @@ const Layout = createGlobalStyle `
|
|
|
7327
7375
|
|
|
7328
7376
|
body {
|
|
7329
7377
|
margin: 0;
|
|
7330
|
-
background-color: var(${allColors.backgroundColor});
|
|
7331
7378
|
}
|
|
7332
7379
|
`;
|
|
7333
7380
|
|
|
@@ -7528,40 +7575,6 @@ const GlobalStyles = () => (React.createElement(React.Fragment, null,
|
|
|
7528
7575
|
React.createElement(Typography, null),
|
|
7529
7576
|
React.createElement(MarginPadding, null)));
|
|
7530
7577
|
|
|
7531
|
-
/******************************************************************************
|
|
7532
|
-
Copyright (c) Microsoft Corporation.
|
|
7533
|
-
|
|
7534
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
7535
|
-
purpose with or without fee is hereby granted.
|
|
7536
|
-
|
|
7537
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
7538
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
7539
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
7540
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
7541
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
7542
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
7543
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
7544
|
-
***************************************************************************** */
|
|
7545
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
function __rest(s, e) {
|
|
7549
|
-
var t = {};
|
|
7550
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
7551
|
-
t[p] = s[p];
|
|
7552
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7553
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7554
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
7555
|
-
t[p[i]] = s[p[i]];
|
|
7556
|
-
}
|
|
7557
|
-
return t;
|
|
7558
|
-
}
|
|
7559
|
-
|
|
7560
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
7561
|
-
var e = new Error(message);
|
|
7562
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
7563
|
-
};
|
|
7564
|
-
|
|
7565
7578
|
var faFileLines = {
|
|
7566
7579
|
prefix: 'far',
|
|
7567
7580
|
iconName: 'file-lines',
|
|
@@ -8297,6 +8310,40 @@ const indicons = {
|
|
|
8297
8310
|
React.createElement("path", { d: "M60.9,38.3V43c0,1.3-1.1,2.3-2.3,2.3H22.7c-1.3,0-2.3-1.1-2.3-2.3v-4.7\n\tc0-1.3,1.1-2.3,2.3-2.3h35.9C59.9,35.9,60.9,37,60.9,38.3z M99.3,94.9l-4.4,4.4c-0.9,0.9-2.4,0.9-3.3,0L67.9,75.6\n\tc-0.4-0.4-0.7-1-0.7-1.7v-2.6c-7.1,6.2-16.4,9.9-26.6,9.9C18.2,81.2,0,63.1,0,40.6S18.2,0,40.6,0s40.6,18.2,40.6,40.6\n\tc0,10.2-3.7,19.4-9.9,26.6h2.6c0.6,0,1.2,0.3,1.7,0.7l23.7,23.7C100.2,92.5,100.2,94,99.3,94.9L99.3,94.9z M71.9,40.6\n\tc0-17.3-14-31.2-31.2-31.2S9.4,23.4,9.4,40.6s14,31.2,31.2,31.2S71.9,57.9,71.9,40.6z" }))),
|
|
8298
8311
|
};
|
|
8299
8312
|
|
|
8313
|
+
/******************************************************************************
|
|
8314
|
+
Copyright (c) Microsoft Corporation.
|
|
8315
|
+
|
|
8316
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
8317
|
+
purpose with or without fee is hereby granted.
|
|
8318
|
+
|
|
8319
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8320
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
8321
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
8322
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
8323
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
8324
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
8325
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
8326
|
+
***************************************************************************** */
|
|
8327
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
8328
|
+
|
|
8329
|
+
|
|
8330
|
+
function __rest(s, e) {
|
|
8331
|
+
var t = {};
|
|
8332
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
8333
|
+
t[p] = s[p];
|
|
8334
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
8335
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8336
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8337
|
+
t[p[i]] = s[p[i]];
|
|
8338
|
+
}
|
|
8339
|
+
return t;
|
|
8340
|
+
}
|
|
8341
|
+
|
|
8342
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
8343
|
+
var e = new Error(message);
|
|
8344
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
8345
|
+
};
|
|
8346
|
+
|
|
8300
8347
|
// TODO: This component's migration was fast-tracked for Insights. Assess for potential refactor and documentation.
|
|
8301
8348
|
const allIcons = Object.assign(Object.assign({}, faIcons), indicons);
|
|
8302
8349
|
/**
|
|
@@ -9432,7 +9479,71 @@ function BarSpinner(props) {
|
|
|
9432
9479
|
React.createElement("span", null)));
|
|
9433
9480
|
}
|
|
9434
9481
|
|
|
9435
|
-
|
|
9482
|
+
const MESSAGES = [
|
|
9483
|
+
'Charging the flux capacitor',
|
|
9484
|
+
'Spinning up the hamster wheel',
|
|
9485
|
+
'Flushing the pipes',
|
|
9486
|
+
'Counting all the beans',
|
|
9487
|
+
'Take a deep breath and enjoy this beautiful moment',
|
|
9488
|
+
'Counting digits in pi (almost done)',
|
|
9489
|
+
'Folding time and space',
|
|
9490
|
+
'Oiling the gears',
|
|
9491
|
+
'Peeling the data fruits',
|
|
9492
|
+
'Activating the oscillation overthruster',
|
|
9493
|
+
'Gleaming the cube',
|
|
9494
|
+
'Reticulating splines',
|
|
9495
|
+
'Playing a quick game of squash',
|
|
9496
|
+
'Making the sausage',
|
|
9497
|
+
'Building the matrix',
|
|
9498
|
+
'Drawing fractals',
|
|
9499
|
+
'Testing memory (what did you have for breakfast?)',
|
|
9500
|
+
'Priming data pumps',
|
|
9501
|
+
'Whacking datamoles',
|
|
9502
|
+
'Finding Nemo',
|
|
9503
|
+
'Running spin cycle',
|
|
9504
|
+
'Chasing down a dream',
|
|
9505
|
+
'Twiddling the knobs',
|
|
9506
|
+
'Assembling lines',
|
|
9507
|
+
'Making the donuts',
|
|
9508
|
+
'Gathering magic',
|
|
9509
|
+
'Rolling stones',
|
|
9510
|
+
'Busting all the moves',
|
|
9511
|
+
'Augmenting reality',
|
|
9512
|
+
'Leveling up',
|
|
9513
|
+
'Obviating frequencies',
|
|
9514
|
+
'Declaring variables',
|
|
9515
|
+
'Boosting thrusters',
|
|
9516
|
+
'Blazing the saddles',
|
|
9517
|
+
'Flipping some bits',
|
|
9518
|
+
'Unclogging the internet',
|
|
9519
|
+
'Turning it off and back on again',
|
|
9520
|
+
'Entering the ThunderDome',
|
|
9521
|
+
'Rolling logs',
|
|
9522
|
+
'Dangling particles',
|
|
9523
|
+
'Catching moonbeams',
|
|
9524
|
+
'Digging for treasure',
|
|
9525
|
+
'Reconbulating the conbulator',
|
|
9526
|
+
'Machine learning',
|
|
9527
|
+
'Magicing',
|
|
9528
|
+
'Tuning the forks',
|
|
9529
|
+
'Fiddling widgets',
|
|
9530
|
+
'Feeding the data monkeys',
|
|
9531
|
+
'Regularizing expressions',
|
|
9532
|
+
'Ramping up the synergy',
|
|
9533
|
+
'Inflating point flotations',
|
|
9534
|
+
'Entering orbit around alpha centuri',
|
|
9535
|
+
'Squeezing data tubes',
|
|
9536
|
+
'Making a list and checking it twice',
|
|
9537
|
+
'Unkinking the data tubes',
|
|
9538
|
+
'Turning on the data hose',
|
|
9539
|
+
'Preparing for liftoff',
|
|
9540
|
+
'Replacing the hamsters',
|
|
9541
|
+
'Changing the batteries',
|
|
9542
|
+
'Waking up our engineers',
|
|
9543
|
+
'Contemplating the meaning of life',
|
|
9544
|
+
'Downloading fresh dog memes',
|
|
9545
|
+
'Springing the chickens',
|
|
9546
|
+
];
|
|
9436
9547
|
|
|
9437
9548
|
const RandomLoadingMessage = () => {
|
|
9438
9549
|
const [randomMessage, changeRandomMessage] = useState(MESSAGES[Math.floor(Math.random() * MESSAGES.length)]);
|
|
@@ -12594,5 +12705,5 @@ const ListTable = (props) => {
|
|
|
12594
12705
|
list))));
|
|
12595
12706
|
};
|
|
12596
12707
|
|
|
12597
|
-
export { Accordion, BarSpinner, BorderSelect, Button, CirclePulse, CircleSpinner, EditableInput, GlobalStyles, Icon, IconButton, ListTable, LoadingList, MultiCombobox, NumberInput, Pagination, PercentageRing, RandomLoadingMessage, SearchInput, Section, SectionBlock, SectionBody, SectionHeader, SectionTable, Select, Shrug, SingleCombobox, TextInput };
|
|
12708
|
+
export { animation as ANIMATION, Accordion, breakpoints as BREAKPOINT, BarSpinner, BorderSelect, Button, allColors as COLORS, CirclePulse, CircleSpinner, EditableInput, GlobalStyles, Icon, IconButton, ListTable, LoadingList, margin as MARGINS, MATH, mediaQueries as MEDIA_QUERIES, MultiCombobox, NumberInput, padding as PADDINGS, Pagination, PercentageRing, RandomLoadingMessage, spacings as SPACING, SearchInput, Section, SectionBlock, SectionBody, SectionHeader, SectionTable, Select, Shrug, SingleCombobox, typography as TYPOGRAPHY, TextInput, faIcons, indicons };
|
|
12598
12709
|
//# sourceMappingURL=index.esm.js.map
|