nsw-design-system 3.28.0 → 3.28.2
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/README.md +5 -5
- package/dist/css/core.css +2 -0
- package/dist/css/core.css.map +1 -0
- package/dist/css/main.css +3 -0
- package/dist/css/main.css.map +1 -0
- package/dist/js/components/accordion/accordion-css.d.ts +8 -0
- package/dist/js/components/accordion/accordion.d.ts +27 -0
- package/dist/js/components/back-to-top/back-to-top.d.ts +24 -0
- package/dist/js/components/breadcrumbs/breadcrumbs.d.ts +11 -0
- package/dist/js/components/card-carousel/carousel.d.ts +103 -0
- package/dist/js/components/card-carousel/swipe-content.d.ts +20 -0
- package/dist/js/components/cookie-consent/cookie-consent.d.ts +29 -0
- package/dist/js/components/date-picker/date-picker.d.ts +83 -0
- package/dist/js/components/dialog/dialog.d.ts +24 -0
- package/dist/js/components/file-upload/file-upload.d.ts +18 -0
- package/dist/js/components/filters/filters.d.ts +59 -0
- package/dist/js/components/global-alert/global-alert.d.ts +12 -0
- package/dist/js/components/header/header.d.ts +12 -0
- package/dist/js/components/link/link.d.ts +12 -0
- package/dist/js/components/main-nav/main-nav.d.ts +50 -0
- package/dist/js/components/popover/popover.d.ts +33 -0
- package/dist/js/components/quick-exit/quick-exit.d.ts +42 -0
- package/dist/js/components/select/select.d.ts +89 -0
- package/dist/js/components/side-nav/side-nav.d.ts +11 -0
- package/dist/js/components/tabs/tabs.d.ts +29 -0
- package/dist/js/components/tooltip/toggletip.d.ts +40 -0
- package/dist/js/components/tooltip/tooltip.d.ts +27 -0
- package/dist/js/components/utility-list/utility-list.d.ts +19 -0
- package/dist/js/core/layout/heading-links.d.ts +2 -0
- package/dist/js/docs/autocomplete.d.ts +56 -0
- package/dist/js/docs/chart-utilities.d.ts +552 -0
- package/dist/js/docs/charts-and-graphs.d.ts +1 -0
- package/dist/js/docs/color-swatches.d.ts +29 -0
- package/dist/js/docs/cookie-consent-config.d.ts +0 -0
- package/dist/js/docs/data.d.ts +7 -0
- package/dist/js/docs/docs.d.ts +1 -0
- package/dist/js/docs/download-pdf.d.ts +11 -0
- package/dist/js/docs/expandable-search.d.ts +10 -0
- package/dist/js/global/scripts/helpers/logger.d.ts +5 -0
- package/dist/js/global/scripts/helpers/sanitize.d.ts +3 -0
- package/dist/js/global/scripts/helpers/utilities.d.ts +26 -0
- package/dist/js/global/scripts/helpers/utilities.test.d.ts +1 -0
- package/dist/js/global/scripts/sticky-container.d.ts +11 -0
- package/dist/js/main.d.ts +23 -0
- package/dist/js/main.js +7621 -0
- package/package.json +1 -1
- package/src/components/main-nav/_main-nav.scss +6 -4
- package/src/docs/content/methods/easy-read/_easy-read.scss +4 -4
- package/src/global/scss/base/_mixins.scss +2 -2
- package/src/global/scss/settings/_settings.scss +4 -1
|
@@ -0,0 +1,552 @@
|
|
|
1
|
+
export default chartUtilities;
|
|
2
|
+
export const nswChartPaletteTokens: Readonly<{
|
|
3
|
+
blue01: "--nsw-palette-blue-01";
|
|
4
|
+
blue02: "--nsw-palette-blue-02";
|
|
5
|
+
blue03: "--nsw-palette-blue-03";
|
|
6
|
+
blue04: "--nsw-palette-blue-04";
|
|
7
|
+
purple01: "--nsw-palette-purple-01";
|
|
8
|
+
purple02: "--nsw-palette-purple-02";
|
|
9
|
+
purple03: "--nsw-palette-purple-03";
|
|
10
|
+
purple04: "--nsw-palette-purple-04";
|
|
11
|
+
fuchsia01: "--nsw-palette-fuchsia-01";
|
|
12
|
+
fuchsia02: "--nsw-palette-fuchsia-02";
|
|
13
|
+
fuchsia03: "--nsw-palette-fuchsia-03";
|
|
14
|
+
fuchsia04: "--nsw-palette-fuchsia-04";
|
|
15
|
+
red01: "--nsw-palette-red-01";
|
|
16
|
+
red02: "--nsw-palette-red-02";
|
|
17
|
+
red03: "--nsw-palette-red-03";
|
|
18
|
+
red04: "--nsw-palette-red-04";
|
|
19
|
+
orange01: "--nsw-palette-orange-01";
|
|
20
|
+
orange02: "--nsw-palette-orange-02";
|
|
21
|
+
orange03: "--nsw-palette-orange-03";
|
|
22
|
+
orange04: "--nsw-palette-orange-04";
|
|
23
|
+
brown01: "--nsw-palette-brown-01";
|
|
24
|
+
brown02: "--nsw-palette-brown-02";
|
|
25
|
+
brown03: "--nsw-palette-brown-03";
|
|
26
|
+
brown04: "--nsw-palette-brown-04";
|
|
27
|
+
yellow01: "--nsw-palette-yellow-01";
|
|
28
|
+
yellow02: "--nsw-palette-yellow-02";
|
|
29
|
+
yellow03: "--nsw-palette-yellow-03";
|
|
30
|
+
yellow04: "--nsw-palette-yellow-04";
|
|
31
|
+
green01: "--nsw-palette-green-01";
|
|
32
|
+
green02: "--nsw-palette-green-02";
|
|
33
|
+
green03: "--nsw-palette-green-03";
|
|
34
|
+
green04: "--nsw-palette-green-04";
|
|
35
|
+
teal01: "--nsw-palette-teal-01";
|
|
36
|
+
teal02: "--nsw-palette-teal-02";
|
|
37
|
+
teal03: "--nsw-palette-teal-03";
|
|
38
|
+
teal04: "--nsw-palette-teal-04";
|
|
39
|
+
black: "--nsw-palette-black";
|
|
40
|
+
grey01: "--nsw-palette-grey-01";
|
|
41
|
+
grey02: "--nsw-palette-grey-02";
|
|
42
|
+
grey03: "--nsw-palette-grey-03";
|
|
43
|
+
grey04: "--nsw-palette-grey-04";
|
|
44
|
+
offWhite: "--nsw-palette-off-white";
|
|
45
|
+
white: "--nsw-palette-white";
|
|
46
|
+
}>;
|
|
47
|
+
export const defaultNswChartPalette: Readonly<{
|
|
48
|
+
blue01: "#002664";
|
|
49
|
+
blue02: "#146cfd";
|
|
50
|
+
blue03: "#8ce0ff";
|
|
51
|
+
blue04: "#cbedfd";
|
|
52
|
+
purple01: "#441170";
|
|
53
|
+
purple02: "#8055f1";
|
|
54
|
+
purple03: "#cebfff";
|
|
55
|
+
purple04: "#e6e1fd";
|
|
56
|
+
fuchsia01: "#65004d";
|
|
57
|
+
fuchsia02: "#d912ae";
|
|
58
|
+
fuchsia03: "#f4b5e6";
|
|
59
|
+
fuchsia04: "#fddef2";
|
|
60
|
+
red01: "#630019";
|
|
61
|
+
red02: "#d7153a";
|
|
62
|
+
red03: "#ffb8c1";
|
|
63
|
+
red04: "#ffe6ea";
|
|
64
|
+
orange01: "#941b00";
|
|
65
|
+
orange02: "#f3631b";
|
|
66
|
+
orange03: "#ffce99";
|
|
67
|
+
orange04: "#fdeddf";
|
|
68
|
+
brown01: "#523719";
|
|
69
|
+
brown02: "#b68d5d";
|
|
70
|
+
brown03: "#e8d0b5";
|
|
71
|
+
brown04: "#ede3d7";
|
|
72
|
+
yellow01: "#694800";
|
|
73
|
+
yellow02: "#faaf05";
|
|
74
|
+
yellow03: "#fde79a";
|
|
75
|
+
yellow04: "#fff4cf";
|
|
76
|
+
green01: "#004000";
|
|
77
|
+
green02: "#00aa45";
|
|
78
|
+
green03: "#a8edb3";
|
|
79
|
+
green04: "#dbfadf";
|
|
80
|
+
teal01: "#0b3f47";
|
|
81
|
+
teal02: "#2e808e";
|
|
82
|
+
teal03: "#8cdbe5";
|
|
83
|
+
teal04: "#d1eeea";
|
|
84
|
+
black: "#000000";
|
|
85
|
+
grey01: "#22272b";
|
|
86
|
+
grey02: "#495054";
|
|
87
|
+
grey03: "#cdd3d6";
|
|
88
|
+
grey04: "#ebebeb";
|
|
89
|
+
offWhite: "#f2f2f2";
|
|
90
|
+
white: "#ffffff";
|
|
91
|
+
}>;
|
|
92
|
+
export const nswAboriginalChartPaletteTokens: Readonly<{
|
|
93
|
+
earthRed: "--nsw-aboriginal-palette-earth-red";
|
|
94
|
+
emberRed: "--nsw-aboriginal-palette-ember-red";
|
|
95
|
+
coralPink: "--nsw-aboriginal-palette-coral-pink";
|
|
96
|
+
galahPink: "--nsw-aboriginal-palette-galah-pink";
|
|
97
|
+
deepOrange: "--nsw-aboriginal-palette-deep-orange";
|
|
98
|
+
orangeOchre: "--nsw-aboriginal-palette-orange-ochre";
|
|
99
|
+
clayOrange: "--nsw-aboriginal-palette-clay-orange";
|
|
100
|
+
sunsetOrange: "--nsw-aboriginal-palette-sunset-orange";
|
|
101
|
+
bushHoneyYellow: "--nsw-aboriginal-palette-bush-honey-yellow";
|
|
102
|
+
sandstoneYellow: "--nsw-aboriginal-palette-sandstone-yellow";
|
|
103
|
+
goldenWattleYellow: "--nsw-aboriginal-palette-golden-wattle-yellow";
|
|
104
|
+
sunbeamYellow: "--nsw-aboriginal-palette-sunbeam-yellow";
|
|
105
|
+
riverbedBrown: "--nsw-aboriginal-palette-riverbed-brown";
|
|
106
|
+
firewoodBrown: "--nsw-aboriginal-palette-firewood-brown";
|
|
107
|
+
claystoneBrown: "--nsw-aboriginal-palette-claystone-brown";
|
|
108
|
+
macadamiaBrown: "--nsw-aboriginal-palette-macadamia-brown";
|
|
109
|
+
charcoalGrey: "--nsw-aboriginal-palette-charcoal-grey";
|
|
110
|
+
emuGrey: "--nsw-aboriginal-palette-emu-grey";
|
|
111
|
+
ashGrey: "--nsw-aboriginal-palette-ash-grey";
|
|
112
|
+
smokeGrey: "--nsw-aboriginal-palette-smoke-grey";
|
|
113
|
+
bushlandGreen: "--nsw-aboriginal-palette-bushland-green";
|
|
114
|
+
marshlandLime: "--nsw-aboriginal-palette-marshland-lime";
|
|
115
|
+
gumleafGreen: "--nsw-aboriginal-palette-gumleaf-green";
|
|
116
|
+
saltbushGreen: "--nsw-aboriginal-palette-saltbush-green";
|
|
117
|
+
billabongBlue: "--nsw-aboriginal-palette-billabong-blue";
|
|
118
|
+
saltwaterBlue: "--nsw-aboriginal-palette-saltwater-blue";
|
|
119
|
+
lightWaterBlue: "--nsw-aboriginal-palette-light-water-blue";
|
|
120
|
+
coastalBlue: "--nsw-aboriginal-palette-coastal-blue";
|
|
121
|
+
bushPlum: "--nsw-aboriginal-palette-bush-plum";
|
|
122
|
+
spiritLilac: "--nsw-aboriginal-palette-spirit-lilac";
|
|
123
|
+
lilliPilliPurple: "--nsw-aboriginal-palette-lilli-pilli-purple";
|
|
124
|
+
duskPurple: "--nsw-aboriginal-palette-dusk-purple";
|
|
125
|
+
black: "--nsw-aboriginal-palette-black";
|
|
126
|
+
offWhite: "--nsw-aboriginal-palette-off-white";
|
|
127
|
+
white: "--nsw-aboriginal-palette-white";
|
|
128
|
+
}>;
|
|
129
|
+
export const defaultNswAboriginalChartPalette: Readonly<{
|
|
130
|
+
earthRed: "#950906";
|
|
131
|
+
emberRed: "#e1261c";
|
|
132
|
+
coralPink: "#fbb4b3";
|
|
133
|
+
galahPink: "#fdd9d9";
|
|
134
|
+
deepOrange: "#882600";
|
|
135
|
+
orangeOchre: "#ee6314";
|
|
136
|
+
clayOrange: "#f4aa7d";
|
|
137
|
+
sunsetOrange: "#f9d4be";
|
|
138
|
+
bushHoneyYellow: "#895e00";
|
|
139
|
+
sandstoneYellow: "#fea927";
|
|
140
|
+
goldenWattleYellow: "#fee48c";
|
|
141
|
+
sunbeamYellow: "#fff1c5";
|
|
142
|
+
riverbedBrown: "#552105";
|
|
143
|
+
firewoodBrown: "#9e5332";
|
|
144
|
+
claystoneBrown: "#d39165";
|
|
145
|
+
macadamiaBrown: "#e9c8b2";
|
|
146
|
+
charcoalGrey: "#272727";
|
|
147
|
+
emuGrey: "#555555";
|
|
148
|
+
ashGrey: "#ccc6c2";
|
|
149
|
+
smokeGrey: "#e5e3e0";
|
|
150
|
+
bushlandGreen: "#215834";
|
|
151
|
+
marshlandLime: "#78a146";
|
|
152
|
+
gumleafGreen: "#b5cda4";
|
|
153
|
+
saltbushGreen: "#dae6d1";
|
|
154
|
+
billabongBlue: "#00405e";
|
|
155
|
+
saltwaterBlue: "#0d6791";
|
|
156
|
+
lightWaterBlue: "#84c5d1";
|
|
157
|
+
coastalBlue: "#c1e2e8";
|
|
158
|
+
bushPlum: "#472642";
|
|
159
|
+
spiritLilac: "#9a5e93";
|
|
160
|
+
lilliPilliPurple: "#c99ac2";
|
|
161
|
+
duskPurple: "#e4cce0";
|
|
162
|
+
black: "#000000";
|
|
163
|
+
offWhite: "#f2f2f2";
|
|
164
|
+
white: "#ffffff";
|
|
165
|
+
}>;
|
|
166
|
+
export const defaultNswInkIndex: Readonly<{
|
|
167
|
+
'--nsw-palette-blue-01': {
|
|
168
|
+
baseColor: string;
|
|
169
|
+
inkColor: string;
|
|
170
|
+
};
|
|
171
|
+
'--nsw-palette-blue-02': {
|
|
172
|
+
baseColor: string;
|
|
173
|
+
inkColor: string;
|
|
174
|
+
};
|
|
175
|
+
'--nsw-palette-blue-03': {
|
|
176
|
+
baseColor: string;
|
|
177
|
+
inkColor: string;
|
|
178
|
+
};
|
|
179
|
+
'--nsw-palette-blue-04': {
|
|
180
|
+
baseColor: string;
|
|
181
|
+
inkColor: string;
|
|
182
|
+
};
|
|
183
|
+
'--nsw-palette-purple-01': {
|
|
184
|
+
baseColor: string;
|
|
185
|
+
inkColor: string;
|
|
186
|
+
};
|
|
187
|
+
'--nsw-palette-purple-02': {
|
|
188
|
+
baseColor: string;
|
|
189
|
+
inkColor: string;
|
|
190
|
+
};
|
|
191
|
+
'--nsw-palette-purple-03': {
|
|
192
|
+
baseColor: string;
|
|
193
|
+
inkColor: string;
|
|
194
|
+
};
|
|
195
|
+
'--nsw-palette-purple-04': {
|
|
196
|
+
baseColor: string;
|
|
197
|
+
inkColor: string;
|
|
198
|
+
};
|
|
199
|
+
'--nsw-palette-fuchsia-01': {
|
|
200
|
+
baseColor: string;
|
|
201
|
+
inkColor: string;
|
|
202
|
+
};
|
|
203
|
+
'--nsw-palette-fuchsia-02': {
|
|
204
|
+
baseColor: string;
|
|
205
|
+
inkColor: string;
|
|
206
|
+
};
|
|
207
|
+
'--nsw-palette-fuchsia-03': {
|
|
208
|
+
baseColor: string;
|
|
209
|
+
inkColor: string;
|
|
210
|
+
};
|
|
211
|
+
'--nsw-palette-fuchsia-04': {
|
|
212
|
+
baseColor: string;
|
|
213
|
+
inkColor: string;
|
|
214
|
+
};
|
|
215
|
+
'--nsw-palette-red-01': {
|
|
216
|
+
baseColor: string;
|
|
217
|
+
inkColor: string;
|
|
218
|
+
};
|
|
219
|
+
'--nsw-palette-red-02': {
|
|
220
|
+
baseColor: string;
|
|
221
|
+
inkColor: string;
|
|
222
|
+
};
|
|
223
|
+
'--nsw-palette-red-03': {
|
|
224
|
+
baseColor: string;
|
|
225
|
+
inkColor: string;
|
|
226
|
+
};
|
|
227
|
+
'--nsw-palette-red-04': {
|
|
228
|
+
baseColor: string;
|
|
229
|
+
inkColor: string;
|
|
230
|
+
};
|
|
231
|
+
'--nsw-palette-orange-01': {
|
|
232
|
+
baseColor: string;
|
|
233
|
+
inkColor: string;
|
|
234
|
+
};
|
|
235
|
+
'--nsw-palette-orange-02': {
|
|
236
|
+
baseColor: string;
|
|
237
|
+
inkColor: string;
|
|
238
|
+
};
|
|
239
|
+
'--nsw-palette-orange-03': {
|
|
240
|
+
baseColor: string;
|
|
241
|
+
inkColor: string;
|
|
242
|
+
};
|
|
243
|
+
'--nsw-palette-orange-04': {
|
|
244
|
+
baseColor: string;
|
|
245
|
+
inkColor: string;
|
|
246
|
+
};
|
|
247
|
+
'--nsw-palette-brown-01': {
|
|
248
|
+
baseColor: string;
|
|
249
|
+
inkColor: string;
|
|
250
|
+
};
|
|
251
|
+
'--nsw-palette-brown-02': {
|
|
252
|
+
baseColor: string;
|
|
253
|
+
inkColor: string;
|
|
254
|
+
};
|
|
255
|
+
'--nsw-palette-brown-03': {
|
|
256
|
+
baseColor: string;
|
|
257
|
+
inkColor: string;
|
|
258
|
+
};
|
|
259
|
+
'--nsw-palette-brown-04': {
|
|
260
|
+
baseColor: string;
|
|
261
|
+
inkColor: string;
|
|
262
|
+
};
|
|
263
|
+
'--nsw-palette-yellow-01': {
|
|
264
|
+
baseColor: string;
|
|
265
|
+
inkColor: string;
|
|
266
|
+
};
|
|
267
|
+
'--nsw-palette-yellow-02': {
|
|
268
|
+
baseColor: string;
|
|
269
|
+
inkColor: string;
|
|
270
|
+
};
|
|
271
|
+
'--nsw-palette-yellow-03': {
|
|
272
|
+
baseColor: string;
|
|
273
|
+
inkColor: string;
|
|
274
|
+
};
|
|
275
|
+
'--nsw-palette-yellow-04': {
|
|
276
|
+
baseColor: string;
|
|
277
|
+
inkColor: string;
|
|
278
|
+
};
|
|
279
|
+
'--nsw-palette-green-01': {
|
|
280
|
+
baseColor: string;
|
|
281
|
+
inkColor: string;
|
|
282
|
+
};
|
|
283
|
+
'--nsw-palette-green-02': {
|
|
284
|
+
baseColor: string;
|
|
285
|
+
inkColor: string;
|
|
286
|
+
};
|
|
287
|
+
'--nsw-palette-green-03': {
|
|
288
|
+
baseColor: string;
|
|
289
|
+
inkColor: string;
|
|
290
|
+
};
|
|
291
|
+
'--nsw-palette-green-04': {
|
|
292
|
+
baseColor: string;
|
|
293
|
+
inkColor: string;
|
|
294
|
+
};
|
|
295
|
+
'--nsw-palette-teal-01': {
|
|
296
|
+
baseColor: string;
|
|
297
|
+
inkColor: string;
|
|
298
|
+
};
|
|
299
|
+
'--nsw-palette-teal-02': {
|
|
300
|
+
baseColor: string;
|
|
301
|
+
inkColor: string;
|
|
302
|
+
};
|
|
303
|
+
'--nsw-palette-teal-03': {
|
|
304
|
+
baseColor: string;
|
|
305
|
+
inkColor: string;
|
|
306
|
+
};
|
|
307
|
+
'--nsw-palette-teal-04': {
|
|
308
|
+
baseColor: string;
|
|
309
|
+
inkColor: string;
|
|
310
|
+
};
|
|
311
|
+
'--nsw-palette-black': {
|
|
312
|
+
baseColor: string;
|
|
313
|
+
inkColor: string;
|
|
314
|
+
};
|
|
315
|
+
'--nsw-palette-grey-01': {
|
|
316
|
+
baseColor: string;
|
|
317
|
+
inkColor: string;
|
|
318
|
+
};
|
|
319
|
+
'--nsw-palette-grey-02': {
|
|
320
|
+
baseColor: string;
|
|
321
|
+
inkColor: string;
|
|
322
|
+
};
|
|
323
|
+
'--nsw-palette-grey-03': {
|
|
324
|
+
baseColor: string;
|
|
325
|
+
inkColor: string;
|
|
326
|
+
};
|
|
327
|
+
'--nsw-palette-grey-04': {
|
|
328
|
+
baseColor: string;
|
|
329
|
+
inkColor: string;
|
|
330
|
+
};
|
|
331
|
+
'--nsw-palette-off-white': {
|
|
332
|
+
baseColor: string;
|
|
333
|
+
inkColor: string;
|
|
334
|
+
};
|
|
335
|
+
'--nsw-palette-white': {
|
|
336
|
+
baseColor: string;
|
|
337
|
+
inkColor: string;
|
|
338
|
+
};
|
|
339
|
+
'--nsw-aboriginal-palette-earth-red': {
|
|
340
|
+
baseColor: string;
|
|
341
|
+
inkColor: string;
|
|
342
|
+
};
|
|
343
|
+
'--nsw-aboriginal-palette-ember-red': {
|
|
344
|
+
baseColor: string;
|
|
345
|
+
inkColor: string;
|
|
346
|
+
};
|
|
347
|
+
'--nsw-aboriginal-palette-coral-pink': {
|
|
348
|
+
baseColor: string;
|
|
349
|
+
inkColor: string;
|
|
350
|
+
};
|
|
351
|
+
'--nsw-aboriginal-palette-galah-pink': {
|
|
352
|
+
baseColor: string;
|
|
353
|
+
inkColor: string;
|
|
354
|
+
};
|
|
355
|
+
'--nsw-aboriginal-palette-deep-orange': {
|
|
356
|
+
baseColor: string;
|
|
357
|
+
inkColor: string;
|
|
358
|
+
};
|
|
359
|
+
'--nsw-aboriginal-palette-orange-ochre': {
|
|
360
|
+
baseColor: string;
|
|
361
|
+
inkColor: string;
|
|
362
|
+
};
|
|
363
|
+
'--nsw-aboriginal-palette-clay-orange': {
|
|
364
|
+
baseColor: string;
|
|
365
|
+
inkColor: string;
|
|
366
|
+
};
|
|
367
|
+
'--nsw-aboriginal-palette-sunset-orange': {
|
|
368
|
+
baseColor: string;
|
|
369
|
+
inkColor: string;
|
|
370
|
+
};
|
|
371
|
+
'--nsw-aboriginal-palette-bush-honey-yellow': {
|
|
372
|
+
baseColor: string;
|
|
373
|
+
inkColor: string;
|
|
374
|
+
};
|
|
375
|
+
'--nsw-aboriginal-palette-sandstone-yellow': {
|
|
376
|
+
baseColor: string;
|
|
377
|
+
inkColor: string;
|
|
378
|
+
};
|
|
379
|
+
'--nsw-aboriginal-palette-golden-wattle-yellow': {
|
|
380
|
+
baseColor: string;
|
|
381
|
+
inkColor: string;
|
|
382
|
+
};
|
|
383
|
+
'--nsw-aboriginal-palette-sunbeam-yellow': {
|
|
384
|
+
baseColor: string;
|
|
385
|
+
inkColor: string;
|
|
386
|
+
};
|
|
387
|
+
'--nsw-aboriginal-palette-riverbed-brown': {
|
|
388
|
+
baseColor: string;
|
|
389
|
+
inkColor: string;
|
|
390
|
+
};
|
|
391
|
+
'--nsw-aboriginal-palette-firewood-brown': {
|
|
392
|
+
baseColor: string;
|
|
393
|
+
inkColor: string;
|
|
394
|
+
};
|
|
395
|
+
'--nsw-aboriginal-palette-claystone-brown': {
|
|
396
|
+
baseColor: string;
|
|
397
|
+
inkColor: string;
|
|
398
|
+
};
|
|
399
|
+
'--nsw-aboriginal-palette-macadamia-brown': {
|
|
400
|
+
baseColor: string;
|
|
401
|
+
inkColor: string;
|
|
402
|
+
};
|
|
403
|
+
'--nsw-aboriginal-palette-charcoal-grey': {
|
|
404
|
+
baseColor: string;
|
|
405
|
+
inkColor: string;
|
|
406
|
+
};
|
|
407
|
+
'--nsw-aboriginal-palette-emu-grey': {
|
|
408
|
+
baseColor: string;
|
|
409
|
+
inkColor: string;
|
|
410
|
+
};
|
|
411
|
+
'--nsw-aboriginal-palette-ash-grey': {
|
|
412
|
+
baseColor: string;
|
|
413
|
+
inkColor: string;
|
|
414
|
+
};
|
|
415
|
+
'--nsw-aboriginal-palette-smoke-grey': {
|
|
416
|
+
baseColor: string;
|
|
417
|
+
inkColor: string;
|
|
418
|
+
};
|
|
419
|
+
'--nsw-aboriginal-palette-bushland-green': {
|
|
420
|
+
baseColor: string;
|
|
421
|
+
inkColor: string;
|
|
422
|
+
};
|
|
423
|
+
'--nsw-aboriginal-palette-marshland-lime': {
|
|
424
|
+
baseColor: string;
|
|
425
|
+
inkColor: string;
|
|
426
|
+
};
|
|
427
|
+
'--nsw-aboriginal-palette-gumleaf-green': {
|
|
428
|
+
baseColor: string;
|
|
429
|
+
inkColor: string;
|
|
430
|
+
};
|
|
431
|
+
'--nsw-aboriginal-palette-saltbush-green': {
|
|
432
|
+
baseColor: string;
|
|
433
|
+
inkColor: string;
|
|
434
|
+
};
|
|
435
|
+
'--nsw-aboriginal-palette-billabong-blue': {
|
|
436
|
+
baseColor: string;
|
|
437
|
+
inkColor: string;
|
|
438
|
+
};
|
|
439
|
+
'--nsw-aboriginal-palette-saltwater-blue': {
|
|
440
|
+
baseColor: string;
|
|
441
|
+
inkColor: string;
|
|
442
|
+
};
|
|
443
|
+
'--nsw-aboriginal-palette-light-water-blue': {
|
|
444
|
+
baseColor: string;
|
|
445
|
+
inkColor: string;
|
|
446
|
+
};
|
|
447
|
+
'--nsw-aboriginal-palette-coastal-blue': {
|
|
448
|
+
baseColor: string;
|
|
449
|
+
inkColor: string;
|
|
450
|
+
};
|
|
451
|
+
'--nsw-aboriginal-palette-bush-plum': {
|
|
452
|
+
baseColor: string;
|
|
453
|
+
inkColor: string;
|
|
454
|
+
};
|
|
455
|
+
'--nsw-aboriginal-palette-spirit-lilac': {
|
|
456
|
+
baseColor: string;
|
|
457
|
+
inkColor: string;
|
|
458
|
+
};
|
|
459
|
+
'--nsw-aboriginal-palette-lilli-pilli-purple': {
|
|
460
|
+
baseColor: string;
|
|
461
|
+
inkColor: string;
|
|
462
|
+
};
|
|
463
|
+
'--nsw-aboriginal-palette-dusk-purple': {
|
|
464
|
+
baseColor: string;
|
|
465
|
+
inkColor: string;
|
|
466
|
+
};
|
|
467
|
+
'--nsw-aboriginal-palette-black': {
|
|
468
|
+
baseColor: string;
|
|
469
|
+
inkColor: string;
|
|
470
|
+
};
|
|
471
|
+
'--nsw-aboriginal-palette-off-white': {
|
|
472
|
+
baseColor: string;
|
|
473
|
+
inkColor: string;
|
|
474
|
+
};
|
|
475
|
+
'--nsw-aboriginal-palette-white': {
|
|
476
|
+
baseColor: string;
|
|
477
|
+
inkColor: string;
|
|
478
|
+
};
|
|
479
|
+
}>;
|
|
480
|
+
export const defaultInkCandidates: readonly string[];
|
|
481
|
+
export const defaultPatternBaseAlphaByStyle: Readonly<{
|
|
482
|
+
default: 0.5;
|
|
483
|
+
diagonal: 0.48;
|
|
484
|
+
vertical: 0.52;
|
|
485
|
+
dots: 0.54;
|
|
486
|
+
zigzag: 0.5;
|
|
487
|
+
cross: 0.5;
|
|
488
|
+
}>;
|
|
489
|
+
export const defaultPatternSources: Readonly<{
|
|
490
|
+
diagonal: "/assets/images/chart-pattern-diagonal-lines.svg";
|
|
491
|
+
dots: "/assets/images/chart-pattern-dot-grid.svg";
|
|
492
|
+
vertical: "/assets/images/chart-pattern-grid-tight.svg";
|
|
493
|
+
zigzag: "/assets/images/chart-pattern-zigzag-chevron.svg";
|
|
494
|
+
cross: "/assets/images/chart-pattern-cross-diagonal.svg";
|
|
495
|
+
checker: "/assets/images/chart-pattern-checker-small.svg";
|
|
496
|
+
grid: "/assets/images/chart-pattern-grid-wide.svg";
|
|
497
|
+
}>;
|
|
498
|
+
export function getNswChartPalette(options?: {}): {};
|
|
499
|
+
export function getNswAboriginalChartPalette(options?: {}): {};
|
|
500
|
+
export function parseColorToRgb(color: any): {
|
|
501
|
+
r: number;
|
|
502
|
+
g: number;
|
|
503
|
+
b: number;
|
|
504
|
+
} | null;
|
|
505
|
+
export function parseColorToRgba(color: any): {
|
|
506
|
+
r: number;
|
|
507
|
+
g: number;
|
|
508
|
+
b: number;
|
|
509
|
+
a: number;
|
|
510
|
+
} | null;
|
|
511
|
+
export function getRelativeLuminance({ r, g, b }: {
|
|
512
|
+
r: any;
|
|
513
|
+
g: any;
|
|
514
|
+
b: any;
|
|
515
|
+
}): number;
|
|
516
|
+
export function getContrastRatio(leftLuminance: any, rightLuminance: any): number;
|
|
517
|
+
export function getContrastAtAlpha(baseColor: any, inkColor: any, alpha: any): number;
|
|
518
|
+
export function getMinimumAlphaForContrast(baseColor: any, inkColor: any, options?: {}): number;
|
|
519
|
+
export function getAutoInk(baseColor: any, darkColor?: string, lightColor?: string): string;
|
|
520
|
+
export function getAccessibleInk(baseColor: any, options?: {}): any;
|
|
521
|
+
export function getPatternInkAlpha(baseColor: any, inkColor: any, style: any, options?: {}): number;
|
|
522
|
+
export function withAlpha(color: any, alpha: any): any;
|
|
523
|
+
export function createPattern(input: any, options?: {}): any;
|
|
524
|
+
export function clearPatternCache(): void;
|
|
525
|
+
export function clearSvgCache(): void;
|
|
526
|
+
export function preloadSvgPattern(source: any, key?: null): any;
|
|
527
|
+
declare namespace chartUtilities {
|
|
528
|
+
export { nswChartPaletteTokens };
|
|
529
|
+
export { defaultNswChartPalette };
|
|
530
|
+
export { nswAboriginalChartPaletteTokens };
|
|
531
|
+
export { defaultNswAboriginalChartPalette };
|
|
532
|
+
export { defaultNswInkIndex };
|
|
533
|
+
export { defaultInkCandidates };
|
|
534
|
+
export { defaultPatternBaseAlphaByStyle };
|
|
535
|
+
export { defaultPatternSources };
|
|
536
|
+
export { getNswChartPalette };
|
|
537
|
+
export { getNswAboriginalChartPalette };
|
|
538
|
+
export { parseColorToRgb };
|
|
539
|
+
export { parseColorToRgba };
|
|
540
|
+
export { getRelativeLuminance };
|
|
541
|
+
export { getContrastRatio };
|
|
542
|
+
export { getContrastAtAlpha };
|
|
543
|
+
export { getMinimumAlphaForContrast };
|
|
544
|
+
export { getAutoInk };
|
|
545
|
+
export { getAccessibleInk };
|
|
546
|
+
export { getPatternInkAlpha };
|
|
547
|
+
export { withAlpha };
|
|
548
|
+
export { createPattern };
|
|
549
|
+
export { clearPatternCache };
|
|
550
|
+
export { clearSvgCache };
|
|
551
|
+
export { preloadSvgPattern };
|
|
552
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export default ColorSwatches;
|
|
2
|
+
declare class ColorSwatches {
|
|
3
|
+
static formatLabel(text: any): any;
|
|
4
|
+
constructor(element: any, config: any);
|
|
5
|
+
element: any;
|
|
6
|
+
variables: any;
|
|
7
|
+
palettes: any;
|
|
8
|
+
dataTable: Element | null;
|
|
9
|
+
targetSelector: any;
|
|
10
|
+
targetElement: any;
|
|
11
|
+
currentPalette: string;
|
|
12
|
+
currentColor: string;
|
|
13
|
+
legend: any;
|
|
14
|
+
legendKey: any;
|
|
15
|
+
swatchKey: any;
|
|
16
|
+
swatchList: HTMLUListElement | null;
|
|
17
|
+
init(): void;
|
|
18
|
+
paletteSelect: any;
|
|
19
|
+
createPaletteSelector(): any;
|
|
20
|
+
paletteLabel: HTMLLabelElement | undefined;
|
|
21
|
+
createColorSwatches(): HTMLUListElement;
|
|
22
|
+
addEventListeners(): void;
|
|
23
|
+
updateSelectedSwatch(selectedSwatch: any): void;
|
|
24
|
+
updateCSSVariables(): void;
|
|
25
|
+
updateColorData(): void;
|
|
26
|
+
updateLegend(): void;
|
|
27
|
+
setPaletteFromURL(): void;
|
|
28
|
+
updateURL(): void;
|
|
29
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export function copyToClipboard(text: any): Promise<any>;
|
|
2
|
+
export function uniqueId(prefix: any): string;
|
|
3
|
+
export function focusObjectGenerator(arr: any): {
|
|
4
|
+
all: any;
|
|
5
|
+
first: any;
|
|
6
|
+
last: any;
|
|
7
|
+
length: any;
|
|
8
|
+
};
|
|
9
|
+
export function getFocusableElement(el: any): {
|
|
10
|
+
all: any;
|
|
11
|
+
first: any;
|
|
12
|
+
last: any;
|
|
13
|
+
length: any;
|
|
14
|
+
};
|
|
15
|
+
export function getFocusableElementBySelector(id: any, selectorArr: any): {
|
|
16
|
+
all: any;
|
|
17
|
+
first: any;
|
|
18
|
+
last: any;
|
|
19
|
+
length: any;
|
|
20
|
+
};
|
|
21
|
+
export function trapTabKey(event: any, focusObject: any): boolean;
|
|
22
|
+
export function whichTransitionEvent(): any;
|
|
23
|
+
export function validateUrl(raw: any, fallback?: string): string;
|
|
24
|
+
export function popupWindow(url: any, width: any, height: any): Window | null;
|
|
25
|
+
export function setAriaDisabled(element: any, isDisabled: any, className?: string): void;
|
|
26
|
+
export function isAriaDisabled(element: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function updateStickyBodyPadding(): void;
|
|
2
|
+
export default function stickyContainer(): Element | null;
|
|
3
|
+
/**
|
|
4
|
+
* Sticky container (singleton)
|
|
5
|
+
* - Prefer a manually-authored container in <body>.
|
|
6
|
+
* - If none exists, create one as the last child of <body>.
|
|
7
|
+
* - Always expose `.js-sticky-container` and `#sticky-container` for other modules.
|
|
8
|
+
* - Keep body padding in sync with the container height.
|
|
9
|
+
*/
|
|
10
|
+
export const STICKY_CLASS: "js-sticky-container";
|
|
11
|
+
export const STICKY_ID: "sticky-container";
|