@dreamcommerce/aurora 3.0.0-253 → 3.0.0-255

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 (43) hide show
  1. package/build/cjs/external/fast-equals/dist/esm/index.mjs.js +619 -0
  2. package/build/cjs/external/fast-equals/dist/esm/index.mjs.js.map +1 -0
  3. package/build/cjs/packages/aurora/src/components/controls/select_control/select_control.js +3 -3
  4. package/build/cjs/packages/aurora/src/components/select/components/select_content.js +35 -45
  5. package/build/cjs/packages/aurora/src/components/select/components/select_content.js.map +1 -1
  6. package/build/cjs/packages/aurora/src/components/select/components/select_group_label.js +3 -3
  7. package/build/cjs/packages/aurora/src/components/select/components/select_item.js +5 -7
  8. package/build/cjs/packages/aurora/src/components/select/components/select_item.js.map +1 -1
  9. package/build/cjs/packages/aurora/src/components/select/components/select_search.js +61 -0
  10. package/build/cjs/packages/aurora/src/components/select/components/select_search.js.map +1 -0
  11. package/build/cjs/packages/aurora/src/components/select/components/select_trigger.js +1 -1
  12. package/build/cjs/packages/aurora/src/components/select/select.js +43 -76
  13. package/build/cjs/packages/aurora/src/components/select/select.js.map +1 -1
  14. package/build/cjs/packages/aurora/src/components/select/select_utils.js +33 -0
  15. package/build/cjs/packages/aurora/src/components/select/select_utils.js.map +1 -0
  16. package/build/esm/external/fast-equals/dist/esm/index.mjs.js +606 -0
  17. package/build/esm/external/fast-equals/dist/esm/index.mjs.js.map +1 -0
  18. package/build/esm/packages/aurora/src/components/controls/select_control/select_control.js +3 -3
  19. package/build/esm/packages/aurora/src/components/select/components/select_content.js +39 -49
  20. package/build/esm/packages/aurora/src/components/select/components/select_content.js.map +1 -1
  21. package/build/esm/packages/aurora/src/components/select/components/select_group_label.d.ts +2 -2
  22. package/build/esm/packages/aurora/src/components/select/components/select_group_label.js +3 -3
  23. package/build/esm/packages/aurora/src/components/select/components/select_item.js +6 -8
  24. package/build/esm/packages/aurora/src/components/select/components/select_item.js.map +1 -1
  25. package/build/esm/packages/aurora/src/components/select/components/select_search.d.ts +3 -0
  26. package/build/esm/packages/aurora/src/components/select/components/select_search.js +53 -0
  27. package/build/esm/packages/aurora/src/components/select/components/select_search.js.map +1 -0
  28. package/build/esm/packages/aurora/src/components/select/components/select_trigger.js +1 -1
  29. package/build/esm/packages/aurora/src/components/select/select.d.ts +1 -1
  30. package/build/esm/packages/aurora/src/components/select/select.js +44 -77
  31. package/build/esm/packages/aurora/src/components/select/select.js.map +1 -1
  32. package/build/esm/packages/aurora/src/components/select/select_types.d.ts +14 -7
  33. package/build/esm/packages/aurora/src/components/select/select_types.js +1 -0
  34. package/build/esm/packages/aurora/src/components/select/select_types.js.map +1 -1
  35. package/build/esm/packages/aurora/src/components/select/select_utils.d.ts +5 -0
  36. package/build/esm/packages/aurora/src/components/select/select_utils.js +29 -0
  37. package/build/{cjs/packages/aurora/src/components/select/components/select_value.js.map → esm/packages/aurora/src/components/select/select_utils.js.map} +1 -1
  38. package/build/index.css +1 -1
  39. package/package.json +2 -1
  40. package/build/cjs/packages/aurora/src/components/select/components/select_value.js +0 -10
  41. package/build/esm/packages/aurora/src/components/select/components/select_value.d.ts +0 -3
  42. package/build/esm/packages/aurora/src/components/select/components/select_value.js +0 -6
  43. package/build/esm/packages/aurora/src/components/select/components/select_value.js.map +0 -1
@@ -0,0 +1,619 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols;
6
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
7
+ /**
8
+ * Combine two comparators into a single comparators.
9
+ */
10
+ function combineComparators(comparatorA, comparatorB) {
11
+ return function isEqual(a, b, state) {
12
+ return comparatorA(a, b, state) && comparatorB(a, b, state);
13
+ };
14
+ }
15
+ /**
16
+ * Wrap the provided `areItemsEqual` method to manage the circular state, allowing
17
+ * for circular references to be safely included in the comparison without creating
18
+ * stack overflows.
19
+ */
20
+ function createIsCircular(areItemsEqual) {
21
+ return function isCircular(a, b, state) {
22
+ if (!a || !b || typeof a !== 'object' || typeof b !== 'object') {
23
+ return areItemsEqual(a, b, state);
24
+ }
25
+ var cache = state.cache;
26
+ var cachedA = cache.get(a);
27
+ var cachedB = cache.get(b);
28
+ if (cachedA && cachedB) {
29
+ return cachedA === b && cachedB === a;
30
+ }
31
+ cache.set(a, b);
32
+ cache.set(b, a);
33
+ var result = areItemsEqual(a, b, state);
34
+ cache.delete(a);
35
+ cache.delete(b);
36
+ return result;
37
+ };
38
+ }
39
+ /**
40
+ * Get the properties to strictly examine, which include both own properties that are
41
+ * not enumerable and symbol properties.
42
+ */
43
+ function getStrictProperties(object) {
44
+ return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));
45
+ }
46
+ /**
47
+ * Whether the object contains the property passed as an own property.
48
+ */
49
+ var hasOwn = Object.hasOwn ||
50
+ (function (object, property) {
51
+ return hasOwnProperty.call(object, property);
52
+ });
53
+ /**
54
+ * Whether the values passed are strictly equal or both NaN.
55
+ */
56
+ function sameValueZeroEqual(a, b) {
57
+ return a === b || (!a && !b && a !== a && b !== b);
58
+ }
59
+
60
+ var PREACT_VNODE = '__v';
61
+ var PREACT_OWNER = '__o';
62
+ var REACT_OWNER = '_owner';
63
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, keys = Object.keys;
64
+ /**
65
+ * Whether the arrays are equal in value.
66
+ */
67
+ function areArraysEqual(a, b, state) {
68
+ var index = a.length;
69
+ if (b.length !== index) {
70
+ return false;
71
+ }
72
+ while (index-- > 0) {
73
+ if (!state.equals(a[index], b[index], index, index, a, b, state)) {
74
+ return false;
75
+ }
76
+ }
77
+ return true;
78
+ }
79
+ /**
80
+ * Whether the dates passed are equal in value.
81
+ */
82
+ function areDatesEqual(a, b) {
83
+ return sameValueZeroEqual(a.getTime(), b.getTime());
84
+ }
85
+ /**
86
+ * Whether the errors passed are equal in value.
87
+ */
88
+ function areErrorsEqual(a, b) {
89
+ return (a.name === b.name &&
90
+ a.message === b.message &&
91
+ a.cause === b.cause &&
92
+ a.stack === b.stack);
93
+ }
94
+ /**
95
+ * Whether the functions passed are equal in value.
96
+ */
97
+ function areFunctionsEqual(a, b) {
98
+ return a === b;
99
+ }
100
+ /**
101
+ * Whether the `Map`s are equal in value.
102
+ */
103
+ function areMapsEqual(a, b, state) {
104
+ var size = a.size;
105
+ if (size !== b.size) {
106
+ return false;
107
+ }
108
+ if (!size) {
109
+ return true;
110
+ }
111
+ var matchedIndices = new Array(size);
112
+ var aIterable = a.entries();
113
+ var aResult;
114
+ var bResult;
115
+ var index = 0;
116
+ while ((aResult = aIterable.next())) {
117
+ if (aResult.done) {
118
+ break;
119
+ }
120
+ var bIterable = b.entries();
121
+ var hasMatch = false;
122
+ var matchIndex = 0;
123
+ while ((bResult = bIterable.next())) {
124
+ if (bResult.done) {
125
+ break;
126
+ }
127
+ if (matchedIndices[matchIndex]) {
128
+ matchIndex++;
129
+ continue;
130
+ }
131
+ var aEntry = aResult.value;
132
+ var bEntry = bResult.value;
133
+ if (state.equals(aEntry[0], bEntry[0], index, matchIndex, a, b, state) &&
134
+ state.equals(aEntry[1], bEntry[1], aEntry[0], bEntry[0], a, b, state)) {
135
+ hasMatch = matchedIndices[matchIndex] = true;
136
+ break;
137
+ }
138
+ matchIndex++;
139
+ }
140
+ if (!hasMatch) {
141
+ return false;
142
+ }
143
+ index++;
144
+ }
145
+ return true;
146
+ }
147
+ /**
148
+ * Whether the numbers are equal in value.
149
+ */
150
+ var areNumbersEqual = sameValueZeroEqual;
151
+ /**
152
+ * Whether the objects are equal in value.
153
+ */
154
+ function areObjectsEqual(a, b, state) {
155
+ var properties = keys(a);
156
+ var index = properties.length;
157
+ if (keys(b).length !== index) {
158
+ return false;
159
+ }
160
+ // Decrementing `while` showed faster results than either incrementing or
161
+ // decrementing `for` loop and than an incrementing `while` loop. Declarative
162
+ // methods like `some` / `every` were not used to avoid incurring the garbage
163
+ // cost of anonymous callbacks.
164
+ while (index-- > 0) {
165
+ if (!isPropertyEqual(a, b, state, properties[index])) {
166
+ return false;
167
+ }
168
+ }
169
+ return true;
170
+ }
171
+ /**
172
+ * Whether the objects are equal in value with strict property checking.
173
+ */
174
+ function areObjectsEqualStrict(a, b, state) {
175
+ var properties = getStrictProperties(a);
176
+ var index = properties.length;
177
+ if (getStrictProperties(b).length !== index) {
178
+ return false;
179
+ }
180
+ var property;
181
+ var descriptorA;
182
+ var descriptorB;
183
+ // Decrementing `while` showed faster results than either incrementing or
184
+ // decrementing `for` loop and than an incrementing `while` loop. Declarative
185
+ // methods like `some` / `every` were not used to avoid incurring the garbage
186
+ // cost of anonymous callbacks.
187
+ while (index-- > 0) {
188
+ property = properties[index];
189
+ if (!isPropertyEqual(a, b, state, property)) {
190
+ return false;
191
+ }
192
+ descriptorA = getOwnPropertyDescriptor(a, property);
193
+ descriptorB = getOwnPropertyDescriptor(b, property);
194
+ if ((descriptorA || descriptorB) &&
195
+ (!descriptorA ||
196
+ !descriptorB ||
197
+ descriptorA.configurable !== descriptorB.configurable ||
198
+ descriptorA.enumerable !== descriptorB.enumerable ||
199
+ descriptorA.writable !== descriptorB.writable)) {
200
+ return false;
201
+ }
202
+ }
203
+ return true;
204
+ }
205
+ /**
206
+ * Whether the primitive wrappers passed are equal in value.
207
+ */
208
+ function arePrimitiveWrappersEqual(a, b) {
209
+ return sameValueZeroEqual(a.valueOf(), b.valueOf());
210
+ }
211
+ /**
212
+ * Whether the regexps passed are equal in value.
213
+ */
214
+ function areRegExpsEqual(a, b) {
215
+ return a.source === b.source && a.flags === b.flags;
216
+ }
217
+ /**
218
+ * Whether the `Set`s are equal in value.
219
+ */
220
+ function areSetsEqual(a, b, state) {
221
+ var size = a.size;
222
+ if (size !== b.size) {
223
+ return false;
224
+ }
225
+ if (!size) {
226
+ return true;
227
+ }
228
+ var matchedIndices = new Array(size);
229
+ var aIterable = a.values();
230
+ var aResult;
231
+ var bResult;
232
+ while ((aResult = aIterable.next())) {
233
+ if (aResult.done) {
234
+ break;
235
+ }
236
+ var bIterable = b.values();
237
+ var hasMatch = false;
238
+ var matchIndex = 0;
239
+ while ((bResult = bIterable.next())) {
240
+ if (bResult.done) {
241
+ break;
242
+ }
243
+ if (!matchedIndices[matchIndex] &&
244
+ state.equals(aResult.value, bResult.value, aResult.value, bResult.value, a, b, state)) {
245
+ hasMatch = matchedIndices[matchIndex] = true;
246
+ break;
247
+ }
248
+ matchIndex++;
249
+ }
250
+ if (!hasMatch) {
251
+ return false;
252
+ }
253
+ }
254
+ return true;
255
+ }
256
+ /**
257
+ * Whether the TypedArray instances are equal in value.
258
+ */
259
+ function areTypedArraysEqual(a, b) {
260
+ var index = a.length;
261
+ if (b.length !== index) {
262
+ return false;
263
+ }
264
+ while (index-- > 0) {
265
+ if (a[index] !== b[index]) {
266
+ return false;
267
+ }
268
+ }
269
+ return true;
270
+ }
271
+ /**
272
+ * Whether the URL instances are equal in value.
273
+ */
274
+ function areUrlsEqual(a, b) {
275
+ return (a.hostname === b.hostname &&
276
+ a.pathname === b.pathname &&
277
+ a.protocol === b.protocol &&
278
+ a.port === b.port &&
279
+ a.hash === b.hash &&
280
+ a.username === b.username &&
281
+ a.password === b.password);
282
+ }
283
+ function isPropertyEqual(a, b, state, property) {
284
+ if ((property === REACT_OWNER ||
285
+ property === PREACT_OWNER ||
286
+ property === PREACT_VNODE) &&
287
+ (a.$$typeof || b.$$typeof)) {
288
+ return true;
289
+ }
290
+ return (hasOwn(b, property) &&
291
+ state.equals(a[property], b[property], property, property, a, b, state));
292
+ }
293
+
294
+ var ARGUMENTS_TAG = '[object Arguments]';
295
+ var BOOLEAN_TAG = '[object Boolean]';
296
+ var DATE_TAG = '[object Date]';
297
+ var ERROR_TAG = '[object Error]';
298
+ var MAP_TAG = '[object Map]';
299
+ var NUMBER_TAG = '[object Number]';
300
+ var OBJECT_TAG = '[object Object]';
301
+ var REG_EXP_TAG = '[object RegExp]';
302
+ var SET_TAG = '[object Set]';
303
+ var STRING_TAG = '[object String]';
304
+ var URL_TAG = '[object URL]';
305
+ var isArray = Array.isArray;
306
+ var isTypedArray = typeof ArrayBuffer === 'function' && ArrayBuffer.isView
307
+ ? ArrayBuffer.isView
308
+ : null;
309
+ var assign = Object.assign;
310
+ var getTag = Object.prototype.toString.call.bind(Object.prototype.toString);
311
+ /**
312
+ * Create a comparator method based on the type-specific equality comparators passed.
313
+ */
314
+ function createEqualityComparator(_a) {
315
+ var areArraysEqual = _a.areArraysEqual, areDatesEqual = _a.areDatesEqual, areErrorsEqual = _a.areErrorsEqual, areFunctionsEqual = _a.areFunctionsEqual, areMapsEqual = _a.areMapsEqual, areNumbersEqual = _a.areNumbersEqual, areObjectsEqual = _a.areObjectsEqual, arePrimitiveWrappersEqual = _a.arePrimitiveWrappersEqual, areRegExpsEqual = _a.areRegExpsEqual, areSetsEqual = _a.areSetsEqual, areTypedArraysEqual = _a.areTypedArraysEqual, areUrlsEqual = _a.areUrlsEqual;
316
+ /**
317
+ * compare the value of the two objects and return true if they are equivalent in values
318
+ */
319
+ return function comparator(a, b, state) {
320
+ // If the items are strictly equal, no need to do a value comparison.
321
+ if (a === b) {
322
+ return true;
323
+ }
324
+ // If either of the items are nullish and fail the strictly equal check
325
+ // above, then they must be unequal.
326
+ if (a == null || b == null) {
327
+ return false;
328
+ }
329
+ var type = typeof a;
330
+ if (type !== typeof b) {
331
+ return false;
332
+ }
333
+ if (type !== 'object') {
334
+ if (type === 'number') {
335
+ return areNumbersEqual(a, b, state);
336
+ }
337
+ if (type === 'function') {
338
+ return areFunctionsEqual(a, b, state);
339
+ }
340
+ // If a primitive value that is not strictly equal, it must be unequal.
341
+ return false;
342
+ }
343
+ var constructor = a.constructor;
344
+ // Checks are listed in order of commonality of use-case:
345
+ // 1. Common complex object types (plain object, array)
346
+ // 2. Common data values (date, regexp)
347
+ // 3. Less-common complex object types (map, set)
348
+ // 4. Less-common data values (promise, primitive wrappers)
349
+ // Inherently this is both subjective and assumptive, however
350
+ // when reviewing comparable libraries in the wild this order
351
+ // appears to be generally consistent.
352
+ // Constructors should match, otherwise there is potential for false positives
353
+ // between class and subclass or custom object and POJO.
354
+ if (constructor !== b.constructor) {
355
+ return false;
356
+ }
357
+ // `isPlainObject` only checks against the object's own realm. Cross-realm
358
+ // comparisons are rare, and will be handled in the ultimate fallback, so
359
+ // we can avoid capturing the string tag.
360
+ if (constructor === Object) {
361
+ return areObjectsEqual(a, b, state);
362
+ }
363
+ // `isArray()` works on subclasses and is cross-realm, so we can avoid capturing
364
+ // the string tag or doing an `instanceof` check.
365
+ if (isArray(a)) {
366
+ return areArraysEqual(a, b, state);
367
+ }
368
+ // `isTypedArray()` works on all possible TypedArray classes, so we can avoid
369
+ // capturing the string tag or comparing against all possible constructors.
370
+ if (isTypedArray != null && isTypedArray(a)) {
371
+ return areTypedArraysEqual(a, b, state);
372
+ }
373
+ // Try to fast-path equality checks for other complex object types in the
374
+ // same realm to avoid capturing the string tag. Strict equality is used
375
+ // instead of `instanceof` because it is more performant for the common
376
+ // use-case. If someone is subclassing a native class, it will be handled
377
+ // with the string tag comparison.
378
+ if (constructor === Date) {
379
+ return areDatesEqual(a, b, state);
380
+ }
381
+ if (constructor === RegExp) {
382
+ return areRegExpsEqual(a, b, state);
383
+ }
384
+ if (constructor === Map) {
385
+ return areMapsEqual(a, b, state);
386
+ }
387
+ if (constructor === Set) {
388
+ return areSetsEqual(a, b, state);
389
+ }
390
+ // Since this is a custom object, capture the string tag to determing its type.
391
+ // This is reasonably performant in modern environments like v8 and SpiderMonkey.
392
+ var tag = getTag(a);
393
+ if (tag === DATE_TAG) {
394
+ return areDatesEqual(a, b, state);
395
+ }
396
+ // For RegExp, the properties are not enumerable, and therefore will give false positives if
397
+ // tested like a standard object.
398
+ if (tag === REG_EXP_TAG) {
399
+ return areRegExpsEqual(a, b, state);
400
+ }
401
+ if (tag === MAP_TAG) {
402
+ return areMapsEqual(a, b, state);
403
+ }
404
+ if (tag === SET_TAG) {
405
+ return areSetsEqual(a, b, state);
406
+ }
407
+ if (tag === OBJECT_TAG) {
408
+ // The exception for value comparison is custom `Promise`-like class instances. These should
409
+ // be treated the same as standard `Promise` objects, which means strict equality, and if
410
+ // it reaches this point then that strict equality comparison has already failed.
411
+ return (typeof a.then !== 'function' &&
412
+ typeof b.then !== 'function' &&
413
+ areObjectsEqual(a, b, state));
414
+ }
415
+ // If a URL tag, it should be tested explicitly. Like RegExp, the properties are not
416
+ // enumerable, and therefore will give false positives if tested like a standard object.
417
+ if (tag === URL_TAG) {
418
+ return areUrlsEqual(a, b, state);
419
+ }
420
+ // If an error tag, it should be tested explicitly. Like RegExp, the properties are not
421
+ // enumerable, and therefore will give false positives if tested like a standard object.
422
+ if (tag === ERROR_TAG) {
423
+ return areErrorsEqual(a, b, state);
424
+ }
425
+ // If an arguments tag, it should be treated as a standard object.
426
+ if (tag === ARGUMENTS_TAG) {
427
+ return areObjectsEqual(a, b, state);
428
+ }
429
+ // As the penultimate fallback, check if the values passed are primitive wrappers. This
430
+ // is very rare in modern JS, which is why it is deprioritized compared to all other object
431
+ // types.
432
+ if (tag === BOOLEAN_TAG || tag === NUMBER_TAG || tag === STRING_TAG) {
433
+ return arePrimitiveWrappersEqual(a, b, state);
434
+ }
435
+ // If not matching any tags that require a specific type of comparison, then we hard-code false because
436
+ // the only thing remaining is strict equality, which has already been compared. This is for a few reasons:
437
+ // - Certain types that cannot be introspected (e.g., `WeakMap`). For these types, this is the only
438
+ // comparison that can be made.
439
+ // - For types that can be introspected, but rarely have requirements to be compared
440
+ // (`ArrayBuffer`, `DataView`, etc.), the cost is avoided to prioritize the common
441
+ // use-cases (may be included in a future release, if requested enough).
442
+ // - For types that can be introspected but do not have an objective definition of what
443
+ // equality is (`Error`, etc.), the subjective decision is to be conservative and strictly compare.
444
+ // In all cases, these decisions should be reevaluated based on changes to the language and
445
+ // common development practices.
446
+ return false;
447
+ };
448
+ }
449
+ /**
450
+ * Create the configuration object used for building comparators.
451
+ */
452
+ function createEqualityComparatorConfig(_a) {
453
+ var circular = _a.circular, createCustomConfig = _a.createCustomConfig, strict = _a.strict;
454
+ var config = {
455
+ areArraysEqual: strict
456
+ ? areObjectsEqualStrict
457
+ : areArraysEqual,
458
+ areDatesEqual: areDatesEqual,
459
+ areErrorsEqual: areErrorsEqual,
460
+ areFunctionsEqual: areFunctionsEqual,
461
+ areMapsEqual: strict
462
+ ? combineComparators(areMapsEqual, areObjectsEqualStrict)
463
+ : areMapsEqual,
464
+ areNumbersEqual: areNumbersEqual,
465
+ areObjectsEqual: strict
466
+ ? areObjectsEqualStrict
467
+ : areObjectsEqual,
468
+ arePrimitiveWrappersEqual: arePrimitiveWrappersEqual,
469
+ areRegExpsEqual: areRegExpsEqual,
470
+ areSetsEqual: strict
471
+ ? combineComparators(areSetsEqual, areObjectsEqualStrict)
472
+ : areSetsEqual,
473
+ areTypedArraysEqual: strict
474
+ ? areObjectsEqualStrict
475
+ : areTypedArraysEqual,
476
+ areUrlsEqual: areUrlsEqual,
477
+ };
478
+ if (createCustomConfig) {
479
+ config = assign({}, config, createCustomConfig(config));
480
+ }
481
+ if (circular) {
482
+ var areArraysEqual$1 = createIsCircular(config.areArraysEqual);
483
+ var areMapsEqual$1 = createIsCircular(config.areMapsEqual);
484
+ var areObjectsEqual$1 = createIsCircular(config.areObjectsEqual);
485
+ var areSetsEqual$1 = createIsCircular(config.areSetsEqual);
486
+ config = assign({}, config, {
487
+ areArraysEqual: areArraysEqual$1,
488
+ areMapsEqual: areMapsEqual$1,
489
+ areObjectsEqual: areObjectsEqual$1,
490
+ areSetsEqual: areSetsEqual$1,
491
+ });
492
+ }
493
+ return config;
494
+ }
495
+ /**
496
+ * Default equality comparator pass-through, used as the standard `isEqual` creator for
497
+ * use inside the built comparator.
498
+ */
499
+ function createInternalEqualityComparator(compare) {
500
+ return function (a, b, _indexOrKeyA, _indexOrKeyB, _parentA, _parentB, state) {
501
+ return compare(a, b, state);
502
+ };
503
+ }
504
+ /**
505
+ * Create the `isEqual` function used by the consuming application.
506
+ */
507
+ function createIsEqual(_a) {
508
+ var circular = _a.circular, comparator = _a.comparator, createState = _a.createState, equals = _a.equals, strict = _a.strict;
509
+ if (createState) {
510
+ return function isEqual(a, b) {
511
+ var _a = createState(), _b = _a.cache, cache = _b === void 0 ? circular ? new WeakMap() : undefined : _b, meta = _a.meta;
512
+ return comparator(a, b, {
513
+ cache: cache,
514
+ equals: equals,
515
+ meta: meta,
516
+ strict: strict,
517
+ });
518
+ };
519
+ }
520
+ if (circular) {
521
+ return function isEqual(a, b) {
522
+ return comparator(a, b, {
523
+ cache: new WeakMap(),
524
+ equals: equals,
525
+ meta: undefined,
526
+ strict: strict,
527
+ });
528
+ };
529
+ }
530
+ var state = {
531
+ cache: undefined,
532
+ equals: equals,
533
+ meta: undefined,
534
+ strict: strict,
535
+ };
536
+ return function isEqual(a, b) {
537
+ return comparator(a, b, state);
538
+ };
539
+ }
540
+
541
+ /**
542
+ * Whether the items passed are deeply-equal in value.
543
+ */
544
+ var deepEqual = createCustomEqual();
545
+ /**
546
+ * Whether the items passed are deeply-equal in value based on strict comparison.
547
+ */
548
+ var strictDeepEqual = createCustomEqual({ strict: true });
549
+ /**
550
+ * Whether the items passed are deeply-equal in value, including circular references.
551
+ */
552
+ var circularDeepEqual = createCustomEqual({ circular: true });
553
+ /**
554
+ * Whether the items passed are deeply-equal in value, including circular references,
555
+ * based on strict comparison.
556
+ */
557
+ var strictCircularDeepEqual = createCustomEqual({
558
+ circular: true,
559
+ strict: true,
560
+ });
561
+ /**
562
+ * Whether the items passed are shallowly-equal in value.
563
+ */
564
+ var shallowEqual = createCustomEqual({
565
+ createInternalComparator: function () { return sameValueZeroEqual; },
566
+ });
567
+ /**
568
+ * Whether the items passed are shallowly-equal in value based on strict comparison
569
+ */
570
+ var strictShallowEqual = createCustomEqual({
571
+ strict: true,
572
+ createInternalComparator: function () { return sameValueZeroEqual; },
573
+ });
574
+ /**
575
+ * Whether the items passed are shallowly-equal in value, including circular references.
576
+ */
577
+ var circularShallowEqual = createCustomEqual({
578
+ circular: true,
579
+ createInternalComparator: function () { return sameValueZeroEqual; },
580
+ });
581
+ /**
582
+ * Whether the items passed are shallowly-equal in value, including circular references,
583
+ * based on strict comparison.
584
+ */
585
+ var strictCircularShallowEqual = createCustomEqual({
586
+ circular: true,
587
+ createInternalComparator: function () { return sameValueZeroEqual; },
588
+ strict: true,
589
+ });
590
+ /**
591
+ * Create a custom equality comparison method.
592
+ *
593
+ * This can be done to create very targeted comparisons in extreme hot-path scenarios
594
+ * where the standard methods are not performant enough, but can also be used to provide
595
+ * support for legacy environments that do not support expected features like
596
+ * `RegExp.prototype.flags` out of the box.
597
+ */
598
+ function createCustomEqual(options) {
599
+ if (options === void 0) { options = {}; }
600
+ var _a = options.circular, circular = _a === void 0 ? false : _a, createCustomInternalComparator = options.createInternalComparator, createState = options.createState, _b = options.strict, strict = _b === void 0 ? false : _b;
601
+ var config = createEqualityComparatorConfig(options);
602
+ var comparator = createEqualityComparator(config);
603
+ var equals = createCustomInternalComparator
604
+ ? createCustomInternalComparator(comparator)
605
+ : createInternalEqualityComparator(comparator);
606
+ return createIsEqual({ circular: circular, comparator: comparator, createState: createState, equals: equals, strict: strict });
607
+ }
608
+
609
+ exports.circularDeepEqual = circularDeepEqual;
610
+ exports.circularShallowEqual = circularShallowEqual;
611
+ exports.createCustomEqual = createCustomEqual;
612
+ exports.deepEqual = deepEqual;
613
+ exports.sameValueZeroEqual = sameValueZeroEqual;
614
+ exports.shallowEqual = shallowEqual;
615
+ exports.strictCircularDeepEqual = strictCircularDeepEqual;
616
+ exports.strictCircularShallowEqual = strictCircularShallowEqual;
617
+ exports.strictDeepEqual = strictDeepEqual;
618
+ exports.strictShallowEqual = strictShallowEqual;
619
+ //# sourceMappingURL=index.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -15,7 +15,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
15
15
 
16
16
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
17
17
 
18
- var _excluded = ["options", "id", "name", "label", "helperText", "tooltip", "placeholder", "searchPlaceholder", "hasSearch", "hasClearValueButton", "errors", "disabled", "defaultValue", "onValueChange", "onScroll", "innerAdditionalContent", "required"];
18
+ var _excluded = ["options", "id", "name", "label", "helperText", "tooltip", "placeholder", "searchPlaceholder", "hasSearch", "hasClearValueButton", "errors", "disabled", "value", "onValueChange", "onScroll", "innerAdditionalContent", "required"];
19
19
  var SelectControl = function SelectControl(_ref) {
20
20
  var options = _ref.options,
21
21
  id = _ref.id,
@@ -29,7 +29,7 @@ var SelectControl = function SelectControl(_ref) {
29
29
  hasClearValueButton = _ref.hasClearValueButton,
30
30
  errors = _ref.errors,
31
31
  disabled = _ref.disabled,
32
- defaultValue = _ref.defaultValue,
32
+ value = _ref.value,
33
33
  onValueChange = _ref.onValueChange,
34
34
  onScroll = _ref.onScroll,
35
35
  innerAdditionalContent = _ref.innerAdditionalContent,
@@ -44,7 +44,6 @@ var SelectControl = function SelectControl(_ref) {
44
44
  }, label$1)) : null, /*#__PURE__*/React__default['default'].createElement(select.Select, _rollupPluginBabelHelpers.objectSpread2({
45
45
  id: id,
46
46
  name: name,
47
- defaultValue: defaultValue,
48
47
  options: options,
49
48
  disabled: disabled,
50
49
  placeholder: placeholder,
@@ -53,6 +52,7 @@ var SelectControl = function SelectControl(_ref) {
53
52
  innerAdditionalContent: innerAdditionalContent,
54
53
  hasClearValueButton: hasClearValueButton,
55
54
  errors: errors,
55
+ value: value,
56
56
  onValueChange: onValueChange,
57
57
  onScroll: onScroll
58
58
  }, props)), helperText ? /*#__PURE__*/React__default['default'].createElement(helper_text.HelperText, {