nhb-toolbox 4.31.3 → 4.31.5

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 (37) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/README.md +25 -25
  3. package/dist/cjs/hash/Cipher.js +5 -10
  4. package/dist/cjs/hash/utils.js +6 -5
  5. package/dist/cjs/object/basics.js +2 -2
  6. package/dist/dts/colors/Color.d.ts +2 -2
  7. package/dist/dts/colors/css-colors.d.ts +157 -157
  8. package/dist/dts/converter/base.d.ts +2 -2
  9. package/dist/dts/date/Chronos.d.ts +13 -13
  10. package/dist/dts/date/chronos-statics.d.ts +2 -2
  11. package/dist/dts/date/constants.d.ts +71 -71
  12. package/dist/dts/date/helpers.d.ts +1 -1
  13. package/dist/dts/date/plugins/dateRangePlugin.d.ts +2 -2
  14. package/dist/dts/date/plugins/greetingPlugin.d.ts +2 -2
  15. package/dist/dts/date/plugins/seasonPlugin.d.ts +1 -1
  16. package/dist/dts/date/plugins/zodiacPlugin.d.ts +1 -1
  17. package/dist/dts/date/timezone.d.ts +2266 -2266
  18. package/dist/dts/date/types.d.ts +2 -2
  19. package/dist/dts/date/utils.d.ts +2 -2
  20. package/dist/dts/hash/core.d.ts +3 -3
  21. package/dist/dts/hash/uuid.d.ts +1 -1
  22. package/dist/dts/http-status/HttpStatus.d.ts +3 -3
  23. package/dist/dts/http-status/constants.d.ts +372 -372
  24. package/dist/dts/number/constants.d.ts +186 -186
  25. package/dist/dts/object/countries.d.ts +1199 -1199
  26. package/dist/dts/object/types.d.ts +1 -1
  27. package/dist/dts/pluralizer/Pluralizer.d.ts +4 -4
  28. package/dist/dts/string/basics.d.ts +2 -2
  29. package/dist/dts/string/convert.d.ts +1 -1
  30. package/dist/dts/stylog/Stylog.d.ts +4 -4
  31. package/dist/dts/types/index.d.ts +1 -1
  32. package/dist/dts/utils/index.d.ts +2 -2
  33. package/dist/dts/verbalizer/Verbalizer.d.ts +2 -2
  34. package/dist/esm/hash/Cipher.js +5 -10
  35. package/dist/esm/hash/utils.js +6 -5
  36. package/dist/esm/object/basics.js +2 -2
  37. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  All notable changes to the package will be documented here.
6
6
 
7
+ ## [4.31.4] - 2026-07-14
8
+
9
+ - **Fixed** issue with `bytesToBase64` utility not encoding bytes to base64 properly.
10
+
7
11
  ## [4.31.3] - 2026-07-09
8
12
 
9
13
  - **Fixed** issue with `Stylog` not printing styles properly using `log()` method.
@@ -603,7 +607,7 @@ All notable changes to the package will be documented here.
603
607
 
604
608
  ## [4.20.48] - 2025-09-22
605
609
 
606
- - **Wrapped** `ChronosMethods` type in `LooseLiteral` to allow passing *custom method names* without *type errors* when creating a custom [`Chronos Plugin`](https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/plugins#%EF%B8%8F-writing-your-own-custom-plugin).
610
+ - **Wrapped** `ChronosMethods` type in `LooseLiteral` to allow passing *custom method names* without *type errors* when creating a custom [`Chronos Plugin`](https://nhb-toolbox.vercel.app/docs/classes/Chronos/plugins#%EF%B8%8F-writing-your-own-custom-plugin).
607
611
  - **Updated** *error message* in `convert` method in `Currency` class.
608
612
 
609
613
  ## [4.20.46] - 2025-09-22
package/README.md CHANGED
@@ -50,9 +50,9 @@
50
50
  >It will not receive any new features, only critical bug fixes will be provided in the future updates.
51
51
  >
52
52
  >The new packages are:
53
- > <a target="_blank" href="https://toolbox-x.nazmul-nhb.dev"> <img src="https://img.shields.io/badge/Toolbox--X-toolbox--x-steelblue" alt="toolbox-x" /> </a>
54
- > <a target="_blank" href="https://chronos.nazmul-nhb.dev"> <img src="https://img.shields.io/badge/Chronos--Date-chronos--date-teal" alt="chronos-date" /> </a>
55
- > <a target="_blank" href="https://github.com/nazmul-nhb/bn-calendar"> <img src="https://img.shields.io/badge/Bangla_Calendar-bn--calendar-red" alt="bn-calendar" /> </a>
53
+ > <a target="_blank" href="https://toolbox-x.vercel.app"> <img src="https://img.shields.io/badge/Toolbox--X-toolbox--x-steelblue" alt="toolbox-x" /> </a>
54
+ > <a target="_blank" href="https://chronos-date.vercel.app"> <img src="https://img.shields.io/badge/Chronos--Date-chronos--date-teal" alt="chronos-date" /> </a>
55
+ > <a target="_blank" href="https://bn-calendar.vercel.app"> <img src="https://img.shields.io/badge/Bangla_Calendar-bn--calendar-red" alt="bn-calendar" /> </a>
56
56
 
57
57
  ## JavaScript/TypeScript Utility Library
58
58
 
@@ -63,7 +63,7 @@
63
63
  - **Validation Utilities**: Robust data validation patterns
64
64
  - **Zero Dependencies**: Framework-agnostic implementation using only native TS/JS with 0 external package
65
65
 
66
- > [Explore Full Documentation →](https://toolbox.nazmul-nhb.dev/)
66
+ > [Explore Full Documentation →](https://nhb-toolbox.vercel.app/)
67
67
 
68
68
  ---
69
69
 
@@ -97,7 +97,7 @@ See [Changelog](CHANGELOG.md) for recent updates.
97
97
  - **Modular Design**: Tree-shaking friendly – import only what you need with zero bloat
98
98
  - **Zero Dependencies**: No external dependencies - works with any JS/TS framework
99
99
  - **IDE Support**: Full type hints with JSDoc-powered API references in your editor
100
- - **Comprehensive Documentation**: Learn with real-world use cases on [documentation site](https://toolbox.nazmul-nhb.dev/)
100
+ - **Comprehensive Documentation**: Learn with real-world use cases on [documentation site](https://nhb-toolbox.vercel.app/)
101
101
  - **Battle-Tested**: Reliable utilities refined through real-world production use
102
102
  - **Optimized for Production**: Focused on clean, efficient implementations
103
103
 
@@ -109,7 +109,7 @@ See [Changelog](CHANGELOG.md) for recent updates.
109
109
 
110
110
  **`Chronos`** - The ultimate date/time manipulation class with 100+ methods for parsing, formatting, calculating, and comparing dates. Handles all edge cases and timezones safely.
111
111
 
112
- > 🧩 **Note**: Some methods in `Chronos` are available only through the [**plugin system**](https://toolbox.nazmul-nhb.dev/docs/classes/Chronos/plugins#-official-plugins). This modular design ensures the core bundle stays lightweight — plugins are loaded only when needed, reducing unnecessary code in your final build.
112
+ > 🧩 **Note**: Some methods in `Chronos` are available only through the [**plugin system**](https://nhb-toolbox.vercel.app/docs/classes/Chronos/plugins#-official-plugins). This modular design ensures the core bundle stays lightweight — plugins are loaded only when needed, reducing unnecessary code in your final build.
113
113
 
114
114
  ```typescript
115
115
  new Chronos('2025-01-01').addDays(3).format('YYYY-MM-DD'); // "2025-01-04"
@@ -117,7 +117,7 @@ new Chronos('2025-01-01').addDays(3).format('YYYY-MM-DD'); // "2025-01-04"
117
117
  chronos('2025-01-01').addDays(3).format('YYYY-MM-DD'); // "2025-01-04"
118
118
  ```
119
119
 
120
- [Documentation →](https://toolbox.nazmul-nhb.dev/docs/classes/Chronos)
120
+ [Documentation →](https://nhb-toolbox.vercel.app/docs/classes/Chronos)
121
121
 
122
122
  ---
123
123
 
@@ -148,7 +148,7 @@ const date4 = new BanglaCalendar('১৪৩০', '১', '১');
148
148
  const date5 = new BanglaCalendar('১৪৩০', '১', '১', { variant: 'revised-1966' });
149
149
  ```
150
150
 
151
- [Documentation →](https://toolbox.nazmul-nhb.dev/docs/classes/BanglaCalendar)
151
+ [Documentation →](https://nhb-toolbox.vercel.app/docs/classes/BanglaCalendar)
152
152
 
153
153
  ---
154
154
 
@@ -162,7 +162,7 @@ const darkerBlue = blue.applyDarkness(20); // 20% darker
162
162
  console.log(darkerBlue.hsl); // "hsl(240, 100%, 40%)" (was 50%)
163
163
  ```
164
164
 
165
- [Documentation →](https://toolbox.nazmul-nhb.dev/docs/classes/Color)
165
+ [Documentation →](https://nhb-toolbox.vercel.app/docs/classes/Color)
166
166
 
167
167
  ---
168
168
 
@@ -179,7 +179,7 @@ const laptop = productFinder.findOne('laptop', 'category', {
179
179
  });
180
180
  ```
181
181
 
182
- [Documentation →](https://toolbox.nazmul-nhb.dev/docs/classes/Finder)
182
+ [Documentation →](https://nhb-toolbox.vercel.app/docs/classes/Finder)
183
183
 
184
184
  ---
185
185
 
@@ -196,7 +196,7 @@ generateRandomID({
196
196
  }); // "USER-171234567890-AB3C4D5E6F7G"
197
197
  ```
198
198
 
199
- [Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/string/generateRandomID)
199
+ [Documentation →](https://nhb-toolbox.vercel.app/docs/utilities/string/generateRandomID)
200
200
 
201
201
  ---
202
202
 
@@ -219,7 +219,7 @@ pluralizer.isSingular('child'); // true
219
219
  pluralizer.isPlural('fish'); // true (uncountable)
220
220
  ```
221
221
 
222
- [Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/string/pluralizer)
222
+ [Documentation →](https://nhb-toolbox.vercel.app/docs/utilities/string/pluralizer)
223
223
 
224
224
  ---
225
225
 
@@ -235,7 +235,7 @@ getColorForInitial(['Alice', 'Bob', 'Charlie']);
235
235
  getColorForInitial('Banana', 50); // '#00376E80' (50% opacity)
236
236
  ```
237
237
 
238
- [Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/color/getColorForInitial)
238
+ [Documentation →](https://nhb-toolbox.vercel.app/docs/utilities/color/getColorForInitial)
239
239
 
240
240
  ---
241
241
 
@@ -270,7 +270,7 @@ const formData = createFormData(data, {
270
270
  // files[1]=[File2]
271
271
  ```
272
272
 
273
- [Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/form/createFormData)
273
+ [Documentation →](https://nhb-toolbox.vercel.app/docs/utilities/form/createFormData)
274
274
 
275
275
  ---
276
276
 
@@ -294,7 +294,7 @@ sanitizeData(user, { ignoreFalsy: true, ignoreEmpty: true }, 'partial');
294
294
  // Returns { name: "John Doe", address: { city: "NYC" } }
295
295
  ```
296
296
 
297
- [Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/object/sanitizeData)
297
+ [Documentation →](https://nhb-toolbox.vercel.app/docs/utilities/object/sanitizeData)
298
298
 
299
299
  ---
300
300
 
@@ -306,7 +306,7 @@ sanitizeData(user, { ignoreFalsy: true, ignoreEmpty: true }, 'partial');
306
306
  parseJSON('{"value":"42"}'); // { value: 42 } (auto-converts numbers)
307
307
  ```
308
308
 
309
- [Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/misc/parseJSON)
309
+ [Documentation →](https://nhb-toolbox.vercel.app/docs/utilities/misc/parseJSON)
310
310
 
311
311
  ---
312
312
 
@@ -318,7 +318,7 @@ parseJSON('{"value":"42"}'); // { value: 42 } (auto-converts numbers)
318
318
  numberToWords(125); // "one hundred twenty-five"
319
319
  ```
320
320
 
321
- [Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/number/numberToWords)
321
+ [Documentation →](https://nhb-toolbox.vercel.app/docs/utilities/number/numberToWords)
322
322
 
323
323
  ---
324
324
 
@@ -332,7 +332,7 @@ getNumbersInRange('prime', { min: 10, max: 30, getAsString: true });
332
332
  // "11, 13, 17, 19, 23, 29"
333
333
  ```
334
334
 
335
- [Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/number/getNumbersInRange)
335
+ [Documentation →](https://nhb-toolbox.vercel.app/docs/utilities/number/getNumbersInRange)
336
336
 
337
337
  **`calculatePercentage`** - Swiss Army knife for percentage calculations with 7 specialized modes
338
338
 
@@ -345,7 +345,7 @@ calculatePercentage({
345
345
  }); // 50 (50% increase)
346
346
  ```
347
347
 
348
- [Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/number/calculatePercentage)
348
+ [Documentation →](https://nhb-toolbox.vercel.app/docs/utilities/number/calculatePercentage)
349
349
 
350
350
  ---
351
351
 
@@ -360,7 +360,7 @@ extractUpdatedFields(dbRecord, update);
360
360
  // { meta: { views: 1 } }
361
361
  ```
362
362
 
363
- [Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/object/extractUpdatedFields)
363
+ [Documentation →](https://nhb-toolbox.vercel.app/docs/utilities/object/extractUpdatedFields)
364
364
 
365
365
  ---
366
366
 
@@ -382,7 +382,7 @@ Stylog.blue.bold.underline.log('I am Bold Underlined Blue!');
382
382
  Stylog.magenta.italic.log({ data: 'value' }, true);
383
383
  ```
384
384
 
385
- [Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/misc/stylog)
385
+ [Documentation →](https://nhb-toolbox.vercel.app/docs/utilities/misc/stylog)
386
386
 
387
387
  ---
388
388
 
@@ -395,7 +395,7 @@ Stylog.magenta.italic.log({ data: 'value' }, true);
395
395
  throttleAction(updateScrollPosition, 100);
396
396
  ```
397
397
 
398
- [Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/misc/throttleAction)
398
+ [Documentation →](https://nhb-toolbox.vercel.app/docs/utilities/misc/throttleAction)
399
399
 
400
400
  **`debounceAction`** - Intelligent delay for expensive operations
401
401
 
@@ -404,9 +404,9 @@ throttleAction(updateScrollPosition, 100);
404
404
  debounceAction(fetchResults, 300);
405
405
  ```
406
406
 
407
- [Full Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/misc/debounceAction)
407
+ [Full Documentation →](https://nhb-toolbox.vercel.app/docs/utilities/misc/debounceAction)
408
408
 
409
- > These utilities represent just a portion of the comprehensive `nhb-toolbox`. Each is designed with production-grade reliability and developer experience in mind. Explore more in the [full documentation](https://toolbox.nazmul-nhb.dev). All the utilities and classes are categorized.
409
+ > These utilities represent just a portion of the comprehensive `nhb-toolbox`. Each is designed with production-grade reliability and developer experience in mind. Explore more in the [full documentation](https://nhb-toolbox.vercel.app). All the utilities and classes are categorized.
410
410
 
411
411
  ---
412
412
 
@@ -474,4 +474,4 @@ You are free to use, modify, and distribute this project under the terms of the
474
474
 
475
475
  ---
476
476
 
477
- Built with ❤️ by [**Nazmul Hassan**](https://nazmul-nhb.dev)
477
+ Built with ❤️ by [**Nazmul Hassan**](https://nazmul-nhb.vercel.app)
@@ -27,16 +27,13 @@ class Cipher {
27
27
  }
28
28
  encrypt(text) {
29
29
  const plain = (0, utils_1.utf8ToBytes)(text);
30
- const seed = (0, utils_1.utf8ToBytes)(String(Date.now()) + '-' + String(Math.random()));
30
+ const seed = (0, utils_1.utf8ToBytes)(`${Date.now()}-${Math.random()}`);
31
31
  const ivFull = (0, utils_1.sha256Bytes)(seed);
32
32
  const iv = ivFull.subarray(0, 16);
33
33
  const keystream = this.#genKeystream(plain, iv);
34
- const ct = new Uint8Array(plain.length);
35
- for (let i = 0; i < plain.length; i++)
36
- ct[i] = plain[i] ^ keystream[i];
34
+ const ct = plain.map((byte, i) => byte ^ keystream[i]);
37
35
  const tag = (0, utils_1.hmacSha256)(this.#macKey, (0, utils_1.concatBytes)(iv, ct));
38
- const blob = (0, utils_1.concatBytes)(iv, ct, tag);
39
- return (0, utils_1.bytesToBase64)(blob);
36
+ return (0, utils_1.bytesToBase64)((0, utils_1.concatBytes)(iv, ct, tag));
40
37
  }
41
38
  isValid(token) {
42
39
  if (!(0, specials_1.isBase64)(token))
@@ -61,12 +58,10 @@ class Cipher {
61
58
  const ct = blob.subarray(16, blob.length - 32);
62
59
  const expectedTag = (0, utils_1.hmacSha256)(this.#macKey, (0, utils_1.concatBytes)(iv, ct));
63
60
  if (!(0, helpers_1._constantTimeEquals)(expectedTag, tag)) {
64
- throw new Error('Key in the token is tampered or invalid!)');
61
+ throw new Error('Key in the token is tampered or invalid!');
65
62
  }
66
63
  const keystream = this.#genKeystream(ct, iv);
67
- const pt = new Uint8Array(ct.length);
68
- for (let i = 0; i < ct.length; i++)
69
- pt[i] = ct[i] ^ keystream[i];
64
+ const pt = ct.map((byte, i) => byte ^ keystream[i]);
70
65
  return (0, utils_1.bytesToUtf8)(pt);
71
66
  }
72
67
  }
@@ -12,6 +12,7 @@ exports.uint8To32ArrayBE = uint8To32ArrayBE;
12
12
  exports.intTo4BytesBE = intTo4BytesBE;
13
13
  exports.bytesToHex = bytesToHex;
14
14
  exports.hexToBytes = hexToBytes;
15
+ const primitives_1 = require("../guards/primitives");
15
16
  const specials_1 = require("../guards/specials");
16
17
  const helpers_1 = require("./helpers");
17
18
  function randomHex(length, uppercase = false) {
@@ -100,14 +101,14 @@ function bytesToBase64(bytes) {
100
101
  const o2 = bytes[i++];
101
102
  const o3 = bytes[i++];
102
103
  const h1 = o1 >> 2;
103
- const h2 = ((o1 & 3) << 4) | (o2 >> 4);
104
- const h3 = ((o2 & 15) << 2) | (o3 >> 6);
105
- const h4 = o3 & 63;
104
+ const h2 = ((o1 & 3) << 4) | (!(0, primitives_1.isUndefined)(o2) ? o2 >> 4 : 0);
105
+ const h3 = !(0, primitives_1.isUndefined)(o2) ? ((o2 & 15) << 2) | (!(0, primitives_1.isUndefined)(o3) ? o3 >> 6 : 0) : 0;
106
+ const h4 = !(0, primitives_1.isUndefined)(o3) ? o3 & 63 : 0;
106
107
  out +=
107
108
  _b64chars[h1] +
108
109
  _b64chars[h2] +
109
- _b64chars[Number.isNaN(o2) ? 64 : h3] +
110
- _b64chars[Number.isNaN(o3) ? 64 : h4];
110
+ _b64chars[(0, primitives_1.isUndefined)(o2) ? 64 : h3] +
111
+ _b64chars[(0, primitives_1.isUndefined)(o3) ? 64 : h4];
111
112
  }
112
113
  return out;
113
114
  }
@@ -22,9 +22,9 @@ function countObjectFields(obj) {
22
22
  return Object.keys(obj)?.length;
23
23
  return 0;
24
24
  }
25
- function extractObjectKeys(obj, tuple) {
25
+ function extractObjectKeys(obj, _tuple) {
26
26
  const keys = (0, non_primitives_1.isNotEmptyObject)(obj) ? Object.keys(obj) : [];
27
- return tuple ? keys : keys;
27
+ return keys;
28
28
  }
29
29
  function extractObjectKeysDeep(obj) {
30
30
  function _getDeepKeys(candidate) {
@@ -162,12 +162,12 @@ export declare class Color {
162
162
  */
163
163
  constructor(color?: ColorType | CSSColor);
164
164
  /** Iterates over the color representations (`Hex`, `RGB`, `HSL`). */
165
- [Symbol.iterator](): Generator<Hex8 | HSL | Hex6 | RGB | RGBA | HSLA, void, unknown>;
165
+ [Symbol.iterator](): Generator<HSL | HSLA | RGB | RGBA | Hex6 | Hex8, void, unknown>;
166
166
  /**
167
167
  * Allows the color to be used in string and number contexts.
168
168
  * @param hint The hint to determine the conversion type.
169
169
  */
170
- [Symbol.toPrimitive](hint: string): number | Hex8 | this;
170
+ [Symbol.toPrimitive](hint: string): number | this | Hex8;
171
171
  /**
172
172
  * @instance Convert the color to string.
173
173
  * @returns The `Hex8` representation of the color.
@@ -1,160 +1,160 @@
1
1
  /** List of CSS Colors as Object with color name as key and hex code as value */
2
2
  export declare const CSS_COLORS: Readonly<{
3
- readonly black: "#000000";
4
- readonly silver: "#C0C0C0";
5
- readonly gray: "#808080";
6
- readonly white: "#FFFFFF";
7
- readonly maroon: "#800000";
8
- readonly red: "#FF0000";
9
- readonly purple: "#800080";
10
- readonly fuchsia: "#FF00FF";
11
- readonly green: "#008000";
12
- readonly lime: "#00FF00";
13
- readonly olive: "#808000";
14
- readonly yellow: "#FFFF00";
15
- readonly navy: "#000080";
16
- readonly blue: "#0000FF";
17
- readonly teal: "#008080";
18
- readonly aqua: "#00FFFF";
19
- readonly aliceblue: "#F0F8FF";
20
- readonly antiquewhite: "#FAEBD7";
21
- readonly aquamarine: "#7FFFD4";
22
- readonly azure: "#F0FFFF";
23
- readonly beige: "#F5F5DC";
24
- readonly bisque: "#FFE4C4";
25
- readonly blanchedalmond: "#FFEBCD";
26
- readonly blueviolet: "#8A2BE2";
27
- readonly brown: "#A52A2A";
28
- readonly burlywood: "#DEB887";
29
- readonly cadetblue: "#5F9EA0";
30
- readonly chartreuse: "#7FFF00";
31
- readonly chocolate: "#D2691E";
32
- readonly coral: "#FF7F50";
33
- readonly cornflowerblue: "#6495ED";
34
- readonly cornsilk: "#FFF8DC";
35
- readonly crimson: "#DC143C";
36
- readonly cyan: "#00FFFF";
37
- readonly darkblue: "#00008B";
38
- readonly darkcyan: "#008B8B";
39
- readonly darkgoldenrod: "#B8860B";
40
- readonly darkgray: "#A9A9A9";
41
- readonly darkgreen: "#006400";
42
- readonly darkgrey: "#A9A9A9";
43
- readonly darkkhaki: "#BDB76B";
44
- readonly darkmagenta: "#8B008B";
45
- readonly darkolivegreen: "#556B2F";
46
- readonly darkorange: "#FF8C00";
47
- readonly darkorchid: "#9932CC";
48
- readonly darkred: "#8B0000";
49
- readonly darksalmon: "#E9967A";
50
- readonly darkseagreen: "#8FBC8F";
51
- readonly darkslateblue: "#483D8B";
52
- readonly darkslategray: "#2F4F4F";
53
- readonly darkslategrey: "#2F4F4F";
54
- readonly darkturquoise: "#00CED1";
55
- readonly darkviolet: "#9400D3";
56
- readonly deeppink: "#FF1493";
57
- readonly deepskyblue: "#00BFFF";
58
- readonly dimgray: "#696969";
59
- readonly dimgrey: "#696969";
60
- readonly dodgerblue: "#1E90FF";
61
- readonly firebrick: "#B22222";
62
- readonly floralwhite: "#FFFAF0";
63
- readonly forestgreen: "#228B22";
64
- readonly gainsboro: "#DCDCDC";
65
- readonly ghostwhite: "#F8F8FF";
66
- readonly gold: "#FFD700";
67
- readonly goldenrod: "#DAA520";
68
- readonly greenyellow: "#ADFF2F";
69
- readonly grey: "#808080";
70
- readonly honeydew: "#F0FFF0";
71
- readonly hotpink: "#FF69B4";
72
- readonly indianred: "#CD5C5C";
73
- readonly indigo: "#4B0082";
74
- readonly ivory: "#FFFFF0";
75
- readonly khaki: "#F0E68C";
76
- readonly lavender: "#E6E6FA";
77
- readonly lavenderblush: "#FFF0F5";
78
- readonly lawngreen: "#7CFC00";
79
- readonly lemonchiffon: "#FFFACD";
80
- readonly lightblue: "#ADD8E6";
81
- readonly lightcoral: "#F08080";
82
- readonly lightcyan: "#E0FFFF";
83
- readonly lightgoldenrodyellow: "#FAFAD2";
84
- readonly lightgray: "#D3D3D3";
85
- readonly lightgreen: "#90EE90";
86
- readonly lightgrey: "#D3D3D3";
87
- readonly lightpink: "#FFB6C1";
88
- readonly lightsalmon: "#FFA07A";
89
- readonly lightseagreen: "#20B2AA";
90
- readonly lightskyblue: "#87CEFA";
91
- readonly lightslategray: "#778899";
92
- readonly lightslategrey: "#778899";
93
- readonly lightsteelblue: "#B0C4DE";
94
- readonly lightyellow: "#FFFFE0";
95
- readonly limegreen: "#32CD32";
96
- readonly linen: "#FAF0E6";
97
- readonly magenta: "#FF00FF";
98
- readonly mediumaquamarine: "#66CDAA";
99
- readonly mediumblue: "#0000CD";
100
- readonly mediumorchid: "#BA55D3";
101
- readonly mediumpurple: "#9370DB";
102
- readonly mediumseagreen: "#3CB371";
103
- readonly mediumslateblue: "#7B68EE";
104
- readonly mediumspringgreen: "#00FA9A";
105
- readonly mediumturquoise: "#48D1CC";
106
- readonly mediumvioletred: "#C71585";
107
- readonly midnightblue: "#191970";
108
- readonly mintcream: "#F5FFFA";
109
- readonly mistyrose: "#FFE4E1";
110
- readonly moccasin: "#FFE4B5";
111
- readonly navajowhite: "#FFDEAD";
112
- readonly oldlace: "#FDF5E6";
113
- readonly olivedrab: "#6B8E23";
114
- readonly orange: "#FFA500";
115
- readonly orangered: "#FF4500";
116
- readonly orchid: "#DA70D6";
117
- readonly palegoldenrod: "#EEE8AA";
118
- readonly palegreen: "#98FB98";
119
- readonly paleturquoise: "#AFEEEE";
120
- readonly palevioletred: "#DB7093";
121
- readonly papayawhip: "#FFEFD5";
122
- readonly peachpuff: "#FFDAB9";
123
- readonly peru: "#CD853F";
124
- readonly pink: "#FFC0CB";
125
- readonly plum: "#DDA0DD";
126
- readonly powderblue: "#B0E0E6";
127
- readonly rebeccapurple: "#663399";
128
- readonly rosybrown: "#BC8F8F";
129
- readonly royalblue: "#4169E1";
130
- readonly saddlebrown: "#8B4513";
131
- readonly salmon: "#FA8072";
132
- readonly sandybrown: "#F4A460";
133
- readonly seagreen: "#2E8B57";
134
- readonly seashell: "#FFF5EE";
135
- readonly sienna: "#A0522D";
136
- readonly skyblue: "#87CEEB";
137
- readonly slateblue: "#6A5ACD";
138
- readonly slategray: "#708090";
139
- readonly slategrey: "#708090";
140
- readonly snow: "#FFFAFA";
141
- readonly springgreen: "#00FF7F";
142
- readonly steelblue: "#4682B4";
143
- readonly tan: "#D2B48C";
144
- readonly thistle: "#D8BFD8";
145
- readonly tomato: "#FF6347";
146
- readonly transparent: "#00000000";
147
- readonly turquoise: "#40E0D0";
148
- readonly violet: "#EE82EE";
149
- readonly wheat: "#F5DEB3";
150
- readonly whitesmoke: "#F5F5F5";
151
- readonly yellowgreen: "#9ACD32";
152
- readonly grape: "#CC5DE8";
153
- readonly dark: "#3B3B3B";
154
- readonly volcano: "#FA541C";
155
- readonly geekblue: "#2F54EB";
156
- readonly success: "#4CAF50";
157
- readonly info: "#2196F3";
158
- readonly warning: "#FF9800";
159
- readonly error: "#F44336";
3
+ readonly black: '#000000';
4
+ readonly silver: '#C0C0C0';
5
+ readonly gray: '#808080';
6
+ readonly white: '#FFFFFF';
7
+ readonly maroon: '#800000';
8
+ readonly red: '#FF0000';
9
+ readonly purple: '#800080';
10
+ readonly fuchsia: '#FF00FF';
11
+ readonly green: '#008000';
12
+ readonly lime: '#00FF00';
13
+ readonly olive: '#808000';
14
+ readonly yellow: '#FFFF00';
15
+ readonly navy: '#000080';
16
+ readonly blue: '#0000FF';
17
+ readonly teal: '#008080';
18
+ readonly aqua: '#00FFFF';
19
+ readonly aliceblue: '#F0F8FF';
20
+ readonly antiquewhite: '#FAEBD7';
21
+ readonly aquamarine: '#7FFFD4';
22
+ readonly azure: '#F0FFFF';
23
+ readonly beige: '#F5F5DC';
24
+ readonly bisque: '#FFE4C4';
25
+ readonly blanchedalmond: '#FFEBCD';
26
+ readonly blueviolet: '#8A2BE2';
27
+ readonly brown: '#A52A2A';
28
+ readonly burlywood: '#DEB887';
29
+ readonly cadetblue: '#5F9EA0';
30
+ readonly chartreuse: '#7FFF00';
31
+ readonly chocolate: '#D2691E';
32
+ readonly coral: '#FF7F50';
33
+ readonly cornflowerblue: '#6495ED';
34
+ readonly cornsilk: '#FFF8DC';
35
+ readonly crimson: '#DC143C';
36
+ readonly cyan: '#00FFFF';
37
+ readonly darkblue: '#00008B';
38
+ readonly darkcyan: '#008B8B';
39
+ readonly darkgoldenrod: '#B8860B';
40
+ readonly darkgray: '#A9A9A9';
41
+ readonly darkgreen: '#006400';
42
+ readonly darkgrey: '#A9A9A9';
43
+ readonly darkkhaki: '#BDB76B';
44
+ readonly darkmagenta: '#8B008B';
45
+ readonly darkolivegreen: '#556B2F';
46
+ readonly darkorange: '#FF8C00';
47
+ readonly darkorchid: '#9932CC';
48
+ readonly darkred: '#8B0000';
49
+ readonly darksalmon: '#E9967A';
50
+ readonly darkseagreen: '#8FBC8F';
51
+ readonly darkslateblue: '#483D8B';
52
+ readonly darkslategray: '#2F4F4F';
53
+ readonly darkslategrey: '#2F4F4F';
54
+ readonly darkturquoise: '#00CED1';
55
+ readonly darkviolet: '#9400D3';
56
+ readonly deeppink: '#FF1493';
57
+ readonly deepskyblue: '#00BFFF';
58
+ readonly dimgray: '#696969';
59
+ readonly dimgrey: '#696969';
60
+ readonly dodgerblue: '#1E90FF';
61
+ readonly firebrick: '#B22222';
62
+ readonly floralwhite: '#FFFAF0';
63
+ readonly forestgreen: '#228B22';
64
+ readonly gainsboro: '#DCDCDC';
65
+ readonly ghostwhite: '#F8F8FF';
66
+ readonly gold: '#FFD700';
67
+ readonly goldenrod: '#DAA520';
68
+ readonly greenyellow: '#ADFF2F';
69
+ readonly grey: '#808080';
70
+ readonly honeydew: '#F0FFF0';
71
+ readonly hotpink: '#FF69B4';
72
+ readonly indianred: '#CD5C5C';
73
+ readonly indigo: '#4B0082';
74
+ readonly ivory: '#FFFFF0';
75
+ readonly khaki: '#F0E68C';
76
+ readonly lavender: '#E6E6FA';
77
+ readonly lavenderblush: '#FFF0F5';
78
+ readonly lawngreen: '#7CFC00';
79
+ readonly lemonchiffon: '#FFFACD';
80
+ readonly lightblue: '#ADD8E6';
81
+ readonly lightcoral: '#F08080';
82
+ readonly lightcyan: '#E0FFFF';
83
+ readonly lightgoldenrodyellow: '#FAFAD2';
84
+ readonly lightgray: '#D3D3D3';
85
+ readonly lightgreen: '#90EE90';
86
+ readonly lightgrey: '#D3D3D3';
87
+ readonly lightpink: '#FFB6C1';
88
+ readonly lightsalmon: '#FFA07A';
89
+ readonly lightseagreen: '#20B2AA';
90
+ readonly lightskyblue: '#87CEFA';
91
+ readonly lightslategray: '#778899';
92
+ readonly lightslategrey: '#778899';
93
+ readonly lightsteelblue: '#B0C4DE';
94
+ readonly lightyellow: '#FFFFE0';
95
+ readonly limegreen: '#32CD32';
96
+ readonly linen: '#FAF0E6';
97
+ readonly magenta: '#FF00FF';
98
+ readonly mediumaquamarine: '#66CDAA';
99
+ readonly mediumblue: '#0000CD';
100
+ readonly mediumorchid: '#BA55D3';
101
+ readonly mediumpurple: '#9370DB';
102
+ readonly mediumseagreen: '#3CB371';
103
+ readonly mediumslateblue: '#7B68EE';
104
+ readonly mediumspringgreen: '#00FA9A';
105
+ readonly mediumturquoise: '#48D1CC';
106
+ readonly mediumvioletred: '#C71585';
107
+ readonly midnightblue: '#191970';
108
+ readonly mintcream: '#F5FFFA';
109
+ readonly mistyrose: '#FFE4E1';
110
+ readonly moccasin: '#FFE4B5';
111
+ readonly navajowhite: '#FFDEAD';
112
+ readonly oldlace: '#FDF5E6';
113
+ readonly olivedrab: '#6B8E23';
114
+ readonly orange: '#FFA500';
115
+ readonly orangered: '#FF4500';
116
+ readonly orchid: '#DA70D6';
117
+ readonly palegoldenrod: '#EEE8AA';
118
+ readonly palegreen: '#98FB98';
119
+ readonly paleturquoise: '#AFEEEE';
120
+ readonly palevioletred: '#DB7093';
121
+ readonly papayawhip: '#FFEFD5';
122
+ readonly peachpuff: '#FFDAB9';
123
+ readonly peru: '#CD853F';
124
+ readonly pink: '#FFC0CB';
125
+ readonly plum: '#DDA0DD';
126
+ readonly powderblue: '#B0E0E6';
127
+ readonly rebeccapurple: '#663399';
128
+ readonly rosybrown: '#BC8F8F';
129
+ readonly royalblue: '#4169E1';
130
+ readonly saddlebrown: '#8B4513';
131
+ readonly salmon: '#FA8072';
132
+ readonly sandybrown: '#F4A460';
133
+ readonly seagreen: '#2E8B57';
134
+ readonly seashell: '#FFF5EE';
135
+ readonly sienna: '#A0522D';
136
+ readonly skyblue: '#87CEEB';
137
+ readonly slateblue: '#6A5ACD';
138
+ readonly slategray: '#708090';
139
+ readonly slategrey: '#708090';
140
+ readonly snow: '#FFFAFA';
141
+ readonly springgreen: '#00FF7F';
142
+ readonly steelblue: '#4682B4';
143
+ readonly tan: '#D2B48C';
144
+ readonly thistle: '#D8BFD8';
145
+ readonly tomato: '#FF6347';
146
+ readonly transparent: '#00000000';
147
+ readonly turquoise: '#40E0D0';
148
+ readonly violet: '#EE82EE';
149
+ readonly wheat: '#F5DEB3';
150
+ readonly whitesmoke: '#F5F5F5';
151
+ readonly yellowgreen: '#9ACD32';
152
+ readonly grape: '#CC5DE8';
153
+ readonly dark: '#3B3B3B';
154
+ readonly volcano: '#FA541C';
155
+ readonly geekblue: '#2F54EB';
156
+ readonly success: '#4CAF50';
157
+ readonly info: '#2196F3';
158
+ readonly warning: '#FF9800';
159
+ readonly error: '#F44336';
160
160
  }>;