@refraction-ui/react 0.12.2 → 0.12.3

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/dist/index.cjs CHANGED
@@ -125,14 +125,14 @@ var init_faro_engine_47HGRAQH = __esm({
125
125
  }
126
126
  });
127
127
 
128
- // ../../node_modules/.pnpm/@nevware21+ts-utils@0.13.0/node_modules/@nevware21/ts-utils/dist/es5/mod/ts-utils.js
128
+ // ../../node_modules/.pnpm/@nevware21+ts-utils@0.14.0/node_modules/@nevware21/ts-utils/dist/es5/mod/ts-utils.js
129
129
  // @__NO_SIDE_EFFECTS__
130
130
  function _pureAssign(func1, func2) {
131
131
  return func1 || func2;
132
132
  }
133
133
  // @__NO_SIDE_EFFECTS__
134
134
  function _pureRef(value, name) {
135
- return value[name];
135
+ return value !== null && value !== void 0 ? value[name] : void 0;
136
136
  }
137
137
  function safe(func, argArray) {
138
138
  try {
@@ -256,11 +256,15 @@ function polyObjHasOwn(obj, prop) {
256
256
  _throwIfNullOrUndefined(obj);
257
257
  return /* @__PURE__ */ objHasOwnProperty(obj, prop) || !!_objGetOwnPropertyDescriptor$2(obj, prop);
258
258
  }
259
+ // @__NO_SIDE_EFFECTS__
260
+ function isUnsafePropKey(key) {
261
+ return key === __PROTO__ || key === CONSTRUCTOR || key === PROTOTYPE;
262
+ }
259
263
  function objForEachKey(theObject, callbackfn, thisArg) {
260
264
  if (theObject && (/* @__PURE__ */ isObject(theObject) || isFunction(theObject))) {
261
265
  for (var prop in theObject) {
262
266
  if (objHasOwn(theObject, prop)) {
263
- if (callbackfn[CALL](theObject, prop, theObject[prop]) === -1) {
267
+ if (callbackfn[CALL](/* @__PURE__ */ isStrictNullOrUndefined(thisArg) ? theObject : thisArg, prop, theObject[prop]) === -1) {
264
268
  break;
265
269
  }
266
270
  }
@@ -272,7 +276,7 @@ function arrForEach(theArray, callbackfn, thisArg) {
272
276
  var len = theArray[LENGTH] >>> 0;
273
277
  for (var idx = 0; idx < len; idx++) {
274
278
  if (idx in theArray) {
275
- if (callbackfn[CALL](theArray, theArray[idx], idx, theArray) === -1) {
279
+ if (callbackfn[CALL](/* @__PURE__ */ isStrictNullOrUndefined(thisArg) ? theArray : thisArg, theArray[idx], idx, theArray) === -1) {
276
280
  break;
277
281
  }
278
282
  }
@@ -292,6 +296,18 @@ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
292
296
  };
293
297
  }
294
298
  // @__NO_SIDE_EFFECTS__
299
+ function _unwrapFunctionNoInstWithPoly(funcName, clsProto, polyFunc) {
300
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
301
+ return function(thisArg) {
302
+ var theFunc = clsFn;
303
+ if (theFunc || polyFunc) {
304
+ var theArgs = arguments;
305
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
306
+ }
307
+ throwTypeError('"' + asString(funcName) + '" not defined for ' + /* @__PURE__ */ dumpObj(thisArg));
308
+ };
309
+ }
310
+ // @__NO_SIDE_EFFECTS__
295
311
  function _unwrapProp(propName) {
296
312
  return function(thisArg) {
297
313
  return thisArg[propName];
@@ -303,11 +319,11 @@ function _objPropertyIsEnum(obj, propKey) {
303
319
  if (!/* @__PURE__ */ isStrictNullOrUndefined(obj) && fn2) {
304
320
  desc = safe(fn2, [obj, propKey]).v || NULL_VALUE;
305
321
  }
306
- if (!desc) {
322
+ if (!desc && !/* @__PURE__ */ isStrictNullOrUndefined(obj)) {
307
323
  desc = safe(function() {
308
324
  for (var key in obj) {
309
- if (key === propKey) {
310
- return { enumerable: true };
325
+ if (key == propKey) {
326
+ return { enumerable: /* @__PURE__ */ objHasOwnProperty(obj, key) };
311
327
  }
312
328
  }
313
329
  }).v;
@@ -344,7 +360,7 @@ function objDefineProps(target, propDescMap) {
344
360
  props[key] = /* @__PURE__ */ _createProp(value);
345
361
  });
346
362
  arrForEach(_objGetOwnPropertySymbols(propDescMap), function(sym) {
347
- if (objPropertyIsEnumerable(propDescMap, sym)) {
363
+ if (_objPropertyIsEnumerable(propDescMap, sym)) {
348
364
  props[sym] = /* @__PURE__ */ _createProp(propDescMap[sym]);
349
365
  }
350
366
  });
@@ -737,7 +753,7 @@ function iterForOf(iter, callbackfn, thisArg) {
737
753
  try {
738
754
  var count = 0;
739
755
  while (!(iterResult = iter.next()).done) {
740
- if (callbackfn[CALL](thisArg || iter, iterResult.value, count, iter) === -1) {
756
+ if (callbackfn[CALL](/* @__PURE__ */ isStrictNullOrUndefined(thisArg) ? iter : thisArg, iterResult.value, count, iter) === -1) {
741
757
  break;
742
758
  }
743
759
  count++;
@@ -783,6 +799,49 @@ function arrSlice(theArray, start, end) {
783
799
  function polyArrIncludes(theArray, searchElement, fromIndex) {
784
800
  return arrIndexOf(theArray, searchElement, fromIndex) !== -1;
785
801
  }
802
+ // @__NO_SIDE_EFFECTS__
803
+ function createIterator(ctx) {
804
+ var isDone = false;
805
+ function _value() {
806
+ return ctx.v;
807
+ }
808
+ function _next() {
809
+ if (!isDone) {
810
+ isDone = ctx.n ? ctx.n(arguments) : true;
811
+ }
812
+ var result = {
813
+ done: isDone
814
+ };
815
+ if (!isDone) {
816
+ objDefine(result, "value", { g: _value });
817
+ }
818
+ return result;
819
+ }
820
+ function _return(value) {
821
+ isDone = true;
822
+ return {
823
+ done: true,
824
+ value: ctx.r && ctx.r(value)
825
+ };
826
+ }
827
+ function _throw(e2) {
828
+ isDone = true;
829
+ return {
830
+ done: true,
831
+ value: ctx.t && ctx.t(e2)
832
+ };
833
+ }
834
+ var theIterator = {
835
+ next: _next
836
+ };
837
+ if (ctx.r) {
838
+ theIterator.return = _return;
839
+ }
840
+ if (ctx.t) {
841
+ theIterator.throw = _throw;
842
+ }
843
+ return theIterator;
844
+ }
786
845
  function _polyObjSetPrototypeOf(obj, proto) {
787
846
  var _a13;
788
847
  !_isProtoArray && (_isProtoArray = /* @__PURE__ */ createCachedValue((_a13 = {}, _a13[__PROTO__] = [], _a13) instanceof Array));
@@ -840,15 +899,16 @@ function throwUnsupported(message) {
840
899
  function _createTrimFn(exp) {
841
900
  return function _doTrim(value) {
842
901
  _throwIfNullOrUndefined(value);
843
- if (value && value.replace) {
844
- value = value.replace(exp, EMPTY);
902
+ value = asString(value);
903
+ if (value) {
904
+ value = strReplace(value, exp, EMPTY);
845
905
  }
846
906
  return value;
847
907
  };
848
908
  }
849
909
  // @__NO_SIDE_EFFECTS__
850
910
  function strLetterCase(value) {
851
- return asString(value).replace(/(_|\b)\w/g, strUpper);
911
+ return strReplace(asString(value), /(_|\b)\w/g, strUpper);
852
912
  }
853
913
  // @__NO_SIDE_EFFECTS__
854
914
  function safeGetDeferred(cb, defValue, argArray) {
@@ -857,6 +917,31 @@ function safeGetDeferred(cb, defValue, argArray) {
857
917
  return result.e ? defValue : result.v;
858
918
  });
859
919
  }
920
+ function forEachOwnKey(theObject, callbackfn, thisArg) {
921
+ if (theObject !== NULL_VALUE && theObject !== UNDEF_VALUE) {
922
+ for (var prop in theObject) {
923
+ if (objHasOwn(theObject, prop)) {
924
+ if (callbackfn[CALL](/* @__PURE__ */ isStrictNullOrUndefined(thisArg) ? theObject : thisArg, prop, theObject[prop]) === -1) {
925
+ return;
926
+ }
927
+ }
928
+ }
929
+ arrForEach(objGetOwnPropertySymbols(theObject), function(key) {
930
+ if (_objPropertyIsEnumerable(theObject, key)) {
931
+ if (callbackfn[CALL](/* @__PURE__ */ isStrictNullOrUndefined(thisArg) ? theObject : thisArg, key, theObject[key]) === -1) {
932
+ return -1;
933
+ }
934
+ }
935
+ });
936
+ }
937
+ }
938
+ function forEachOwnKeySafe(theObject, callbackfn, thisArg) {
939
+ forEachOwnKey(theObject, function(key, value) {
940
+ if (!/* @__PURE__ */ isUnsafePropKey(key)) {
941
+ return callbackfn[CALL](/* @__PURE__ */ isStrictNullOrUndefined(thisArg) ? theObject : thisArg, key, value);
942
+ }
943
+ }, thisArg);
944
+ }
860
945
  // @__NO_SIDE_EFFECTS__
861
946
  function isPlainObject(value) {
862
947
  if (!value || typeof value !== OBJECT) {
@@ -886,6 +971,62 @@ function isPlainObject(value) {
886
971
  return result;
887
972
  }
888
973
  // @__NO_SIDE_EFFECTS__
974
+ function _addTarget(targets, target) {
975
+ if (target) {
976
+ targets.push(target);
977
+ }
978
+ }
979
+ // @__NO_SIDE_EFFECTS__
980
+ function _addTargetProto(targets, ctor) {
981
+ if (ctor) {
982
+ /* @__PURE__ */ _addTarget(targets, ctor[PROTOTYPE]);
983
+ }
984
+ }
985
+ // @__NO_SIDE_EFFECTS__
986
+ function _getUnsafeTargets() {
987
+ var targets = [
988
+ ObjProto,
989
+ StrProto,
990
+ ArrProto,
991
+ NumberProto,
992
+ FuncProto,
993
+ DateProto,
994
+ RegExpProto,
995
+ BooleanProto,
996
+ ErrorProto
997
+ ];
998
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Map"]).v);
999
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Set"]).v);
1000
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["WeakMap"]).v);
1001
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["WeakSet"]).v);
1002
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Promise"]).v);
1003
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Symbol"]).v);
1004
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["ArrayBuffer"]).v);
1005
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["SharedArrayBuffer"]).v);
1006
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["DataView"]).v);
1007
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Int8Array"]).v);
1008
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Uint8Array"]).v);
1009
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Uint8ClampedArray"]).v);
1010
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Int16Array"]).v);
1011
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Uint16Array"]).v);
1012
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Int32Array"]).v);
1013
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Uint32Array"]).v);
1014
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Float32Array"]).v);
1015
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["Float64Array"]).v);
1016
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["BigInt64Array"]).v);
1017
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["BigUint64Array"]).v);
1018
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["WeakRef"]).v);
1019
+ /* @__PURE__ */ _addTargetProto(targets, safe(getInst, ["FinalizationRegistry"]).v);
1020
+ return targets;
1021
+ }
1022
+ // @__NO_SIDE_EFFECTS__
1023
+ function isUnsafeTarget(target) {
1024
+ if (!_unsafeTargets) {
1025
+ _unsafeTargets = /* @__PURE__ */ createCachedValue(/* @__PURE__ */ _getUnsafeTargets());
1026
+ }
1027
+ return arrIndexOf(_unsafeTargets.v, target) >= 0;
1028
+ }
1029
+ // @__NO_SIDE_EFFECTS__
889
1030
  function _defaultDeepCopyHandler(details) {
890
1031
  details.value && plainObjDeepCopyHandler(details);
891
1032
  return true;
@@ -962,10 +1103,10 @@ function _deepCopy(visitMap, value, ctx, key) {
962
1103
  return value;
963
1104
  }
964
1105
  function _copyProps(visitMap, target, source, ctx) {
965
- if (!/* @__PURE__ */ isNullOrUndefined(source)) {
966
- for (var key in source) {
967
- target[key] = _deepCopy(visitMap, source[key], ctx, key);
968
- }
1106
+ if (!/* @__PURE__ */ isUnsafeTarget(source)) {
1107
+ forEachOwnKeySafe(source, function(key, value) {
1108
+ target[key] = _deepCopy(visitMap, value, ctx, key);
1109
+ });
969
1110
  }
970
1111
  return target;
971
1112
  }
@@ -1034,13 +1175,31 @@ function setValueByKey(target, path, value) {
1034
1175
  if (target && path) {
1035
1176
  var parts = strSplit(path, ".");
1036
1177
  var lastKey = parts.pop();
1178
+ var isValidPath_1 = true;
1179
+ var addedTarget_1;
1180
+ var addedKey_1;
1037
1181
  arrForEach(parts, function(key) {
1182
+ if (/* @__PURE__ */ isUnsafeTarget(target) || /* @__PURE__ */ isUnsafePropKey(key)) {
1183
+ isValidPath_1 = false;
1184
+ return -1;
1185
+ }
1038
1186
  if (/* @__PURE__ */ isNullOrUndefined(target[key])) {
1039
1187
  target[key] = {};
1188
+ if (!addedTarget_1) {
1189
+ addedTarget_1 = target;
1190
+ addedKey_1 = key;
1191
+ }
1040
1192
  }
1041
1193
  target = target[key];
1042
1194
  });
1043
- target[lastKey] = value;
1195
+ if (isValidPath_1 && !/* @__PURE__ */ isStrictNullOrUndefined(lastKey) && !/* @__PURE__ */ isUnsafeTarget(target) && !/* @__PURE__ */ isUnsafePropKey(lastKey)) {
1196
+ target[lastKey] = value;
1197
+ } else if (addedTarget_1) {
1198
+ try {
1199
+ delete addedTarget_1[addedKey_1];
1200
+ } catch (e2) {
1201
+ }
1202
+ }
1044
1203
  }
1045
1204
  }
1046
1205
  // @__NO_SIDE_EFFECTS__
@@ -1060,49 +1219,6 @@ function perfNow() {
1060
1219
  return /* @__PURE__ */ utcNow();
1061
1220
  }
1062
1221
  // @__NO_SIDE_EFFECTS__
1063
- function createIterator(ctx) {
1064
- var isDone = false;
1065
- function _value() {
1066
- return ctx.v;
1067
- }
1068
- function _next() {
1069
- if (!isDone) {
1070
- isDone = ctx.n ? ctx.n(arguments) : true;
1071
- }
1072
- var result = {
1073
- done: isDone
1074
- };
1075
- if (!isDone) {
1076
- objDefine(result, "value", { g: _value });
1077
- }
1078
- return result;
1079
- }
1080
- function _return(value) {
1081
- isDone = true;
1082
- return {
1083
- done: true,
1084
- value: ctx.r && ctx.r(value)
1085
- };
1086
- }
1087
- function _throw(e2) {
1088
- isDone = true;
1089
- return {
1090
- done: true,
1091
- value: ctx.t && ctx.t(e2)
1092
- };
1093
- }
1094
- var theIterator = {
1095
- next: _next
1096
- };
1097
- if (ctx.r) {
1098
- theIterator.return = _return;
1099
- }
1100
- if (ctx.t) {
1101
- theIterator.throw = _throw;
1102
- }
1103
- return theIterator;
1104
- }
1105
- // @__NO_SIDE_EFFECTS__
1106
1222
  function polyStrEndsWith(value, searchString, length) {
1107
1223
  _throwIfNotString(value);
1108
1224
  var searchValue = isString(searchString) ? searchString : asString(searchString);
@@ -1220,9 +1336,9 @@ function scheduleTimeout(callback, timeout) {
1220
1336
  function createTimeout(callback, timeout) {
1221
1337
  return _createTimeoutWith(false, UNDEF_VALUE, ArrSlice[CALL](arguments));
1222
1338
  }
1223
- var UNDEF_VALUE, NULL_VALUE, EMPTY, FUNCTION, OBJECT, PROTOTYPE, __PROTO__, UNDEFINED, CONSTRUCTOR, SYMBOL, LENGTH, NAME, CALL, TO_STRING, GET_OWN_PROPERTY_DESCRIPTOR, GET_OWN_PROPERTY_SYMBOLS, ObjClass, ObjProto, StrCls, StrProto, MathCls, ArrCls, ArrProto, ArrSlice, POLYFILL_TAG, POLYFILL_TYPE_NAME, _primitiveTypes, isString, isFunction, isArray, isDate, isNumber, isBoolean, isError, asString, ERROR_TYPE, _objGetOwnPropertyDescriptor$2, objHasOwn, _unwrapFunction, objPropertyIsEnumerable, _objGetOwnPropertyDescriptor$1, _objGetOwnPropertySymbols, propMap, objDefineProp, objDefineProperties, objIsFrozen, _objFreeze, objAssign, objKeys, objFreeze, objGetPrototypeOf, objIs, _wellKnownSymbolMap, GLOBAL_CONFIG_KEY, _globalCfg, mathMin, mathMax, strSlice, strSubstring, strSubstr, objCreate, _globalLazyTestHooks, mathRandom, _uniqueInstanceId, UNIQUE_REGISTRY_ID, POLY_SYM, _polySymbols, _polyId, _wellKnownSymbolCache, WINDOW, _cachedGlobal, getDocument, getWindow, getNavigator, getHistory, isNode, isWebWorker, _symbol, _symbolFor, _iterSymbol$1, arrIndexOf, arrMap, arrIncludes, arrReduce, _isProtoArray, objSetPrototypeOf, _unsupportedError, polyStrTrim, strTrim, strUpper, strLower, mathFloor, _fnToString, _objCtrFnString, _gblWindow, defaultDeepCopyHandlers, strSplit, getLength, _perf, mathAbs, mathRound, objGetOwnPropertyDescriptor, strEndsWith, strIndexOf, strStartsWith, REF, UNREF, HAS_REF, ENABLED, _setTimeoutFn, _clearTimeoutFn;
1339
+ var UNDEF_VALUE, NULL_VALUE, EMPTY, FUNCTION, OBJECT, PROTOTYPE, __PROTO__, UNDEFINED, CONSTRUCTOR, SYMBOL, LENGTH, NAME, CALL, TO_STRING, GET_OWN_PROPERTY_DESCRIPTOR, GET_OWN_PROPERTY_SYMBOLS, ObjClass, ObjProto, StrCls, StrProto, MathCls, ArrCls, ArrProto, ArrSlice, NumberCls, NumberProto, FuncCls, FuncProto, DateCls, DateProto, RegExpCls, RegExpProto, BooleanCls, BooleanProto, ErrorCls, ErrorProto, POLYFILL_TAG, POLYFILL_TYPE_NAME, _primitiveTypes, isString, isFunction, isArray, isDate, isNumber, isBoolean, isError, asString, ERROR_TYPE, _objGetOwnPropertyDescriptor$2, objHasOwn, _unwrapFunction, _objPropertyIsEnumerable, _objGetOwnPropertyDescriptor$1, _objGetOwnPropertySymbols, propMap, objDefineProp, objDefineProperties, objIsFrozen, _objFreeze, objAssign, objKeys, objFreeze, objGetPrototypeOf, objIs, _wellKnownSymbolMap, GLOBAL_CONFIG_KEY, _globalCfg, mathMin, mathMax, strSlice, strSubstring, strSubstr, objCreate, _globalLazyTestHooks, mathRandom, _uniqueInstanceId, UNIQUE_REGISTRY_ID, POLY_SYM, _polySymbols, _polyId, _wellKnownSymbolCache, WINDOW, _cachedGlobal, getDocument, getWindow, getNavigator, getHistory, isNode, isWebWorker, _symbol, _symbolFor, _iterSymbol$1, arrIndexOf, arrMap, arrIncludes, getLength, mathFloor, arrReduce, _isProtoArray, objSetPrototypeOf, _unsupportedError, strReplace, polyStrTrim, strTrim, strUpper, strLower, objGetOwnPropertyDescriptor, objGetOwnPropertySymbols, _fnToString, _objCtrFnString, _gblWindow, _unsafeTargets, defaultDeepCopyHandlers, strSplit, _perf, mathAbs, mathRound, strIndexOf, strEndsWith, strStartsWith, REF, UNREF, HAS_REF, ENABLED, _setTimeoutFn, _clearTimeoutFn;
1224
1340
  var init_ts_utils = __esm({
1225
- "../../node_modules/.pnpm/@nevware21+ts-utils@0.13.0/node_modules/@nevware21/ts-utils/dist/es5/mod/ts-utils.js"() {
1341
+ "../../node_modules/.pnpm/@nevware21+ts-utils@0.14.0/node_modules/@nevware21/ts-utils/dist/es5/mod/ts-utils.js"() {
1226
1342
  UNDEF_VALUE = void 0;
1227
1343
  NULL_VALUE = null;
1228
1344
  EMPTY = "";
@@ -1247,6 +1363,18 @@ var init_ts_utils = __esm({
1247
1363
  ArrCls = /* @__PURE__ */ _pureAssign(Array);
1248
1364
  ArrProto = /* @__PURE__ */ _pureRef(ArrCls, PROTOTYPE);
1249
1365
  ArrSlice = /* @__PURE__ */ _pureRef(ArrProto, "slice");
1366
+ NumberCls = /* @__PURE__ */ _pureAssign(Number);
1367
+ NumberProto = /* @__PURE__ */ _pureRef(NumberCls, PROTOTYPE);
1368
+ FuncCls = /* @__PURE__ */ _pureAssign(Function);
1369
+ FuncProto = /* @__PURE__ */ _pureRef(FuncCls, PROTOTYPE);
1370
+ DateCls = /* @__PURE__ */ _pureAssign(Date);
1371
+ DateProto = /* @__PURE__ */ _pureRef(DateCls, PROTOTYPE);
1372
+ RegExpCls = /* @__PURE__ */ _pureAssign(RegExp);
1373
+ RegExpProto = /* @__PURE__ */ _pureRef(RegExpCls, PROTOTYPE);
1374
+ BooleanCls = /* @__PURE__ */ _pureAssign(Boolean);
1375
+ BooleanProto = /* @__PURE__ */ _pureRef(BooleanCls, PROTOTYPE);
1376
+ ErrorCls = /* @__PURE__ */ _pureAssign(Error);
1377
+ ErrorProto = /* @__PURE__ */ _pureRef(ErrorCls, PROTOTYPE);
1250
1378
  POLYFILL_TAG = "_polyfill";
1251
1379
  POLYFILL_TYPE_NAME = "__nw21$polytype__";
1252
1380
  isString = /* @__PURE__ */ _createIs("string");
@@ -1261,7 +1389,7 @@ var init_ts_utils = __esm({
1261
1389
  _objGetOwnPropertyDescriptor$2 = /* @__PURE__ */ _pureAssign(/* @__PURE__ */ _pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR), _returnNothing);
1262
1390
  objHasOwn = /* @__PURE__ */ _pureAssign(/* @__PURE__ */ _pureRef(ObjClass, "hasOwn"), polyObjHasOwn);
1263
1391
  _unwrapFunction = _unwrapFunctionWithPoly;
1264
- objPropertyIsEnumerable = /* @__PURE__ */ _unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum);
1392
+ _objPropertyIsEnumerable = /* @__PURE__ */ _unwrapFunctionNoInstWithPoly("propertyIsEnumerable", ObjProto, _objPropertyIsEnum);
1265
1393
  _objGetOwnPropertyDescriptor$1 = /* @__PURE__ */ _pureAssign(/* @__PURE__ */ _pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR), _returnNothing);
1266
1394
  _objGetOwnPropertySymbols = /* @__PURE__ */ _pureAssign(/* @__PURE__ */ _pureRef(ObjClass, GET_OWN_PROPERTY_SYMBOLS), _returnEmptyArray);
1267
1395
  propMap = {
@@ -1333,13 +1461,17 @@ var init_ts_utils = __esm({
1333
1461
  arrIndexOf = /* @__PURE__ */ _unwrapFunction("indexOf", ArrProto);
1334
1462
  arrMap = /* @__PURE__ */ _unwrapFunction("map", ArrProto);
1335
1463
  arrIncludes = /* @__PURE__ */ _unwrapFunctionWithPoly("includes", ArrProto, polyArrIncludes);
1464
+ getLength = /* @__PURE__ */ _unwrapProp(LENGTH);
1465
+ mathFloor = /* @__PURE__ */ _pureRef(MathCls, "floor");
1336
1466
  arrReduce = /* @__PURE__ */ _unwrapFunction("reduce", ArrProto);
1337
1467
  objSetPrototypeOf = /* @__PURE__ */ _pureAssign(/* @__PURE__ */ _pureRef(ObjClass, "setPrototypeOf"), _polyObjSetPrototypeOf);
1468
+ strReplace = /* @__PURE__ */ _unwrapFunction("replace", StrProto);
1338
1469
  polyStrTrim = /* @__PURE__ */ _createTrimFn(/^\s+|(?=\s)\s+$/g);
1339
1470
  strTrim = /* @__PURE__ */ _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim);
1340
1471
  strUpper = /* @__PURE__ */ _unwrapFunction("toUpperCase", StrProto);
1341
1472
  strLower = /* @__PURE__ */ _unwrapFunction("toLowerCase", StrProto);
1342
- mathFloor = /* @__PURE__ */ _pureRef(MathCls, "floor");
1473
+ objGetOwnPropertyDescriptor = /* @__PURE__ */ _pureAssign(/* @__PURE__ */ _pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR), _returnNothing);
1474
+ objGetOwnPropertySymbols = /* @__PURE__ */ _pureAssign(/* @__PURE__ */ _pureRef(ObjClass, GET_OWN_PROPERTY_SYMBOLS), _returnEmptyArray);
1343
1475
  defaultDeepCopyHandlers = [
1344
1476
  arrayDeepCopyHandler,
1345
1477
  plainObjDeepCopyHandler,
@@ -1347,12 +1479,10 @@ var init_ts_utils = __esm({
1347
1479
  dateDeepCopyHandler
1348
1480
  ];
1349
1481
  strSplit = /* @__PURE__ */ _unwrapFunction("split", StrProto);
1350
- getLength = /* @__PURE__ */ _unwrapProp(LENGTH);
1351
1482
  mathAbs = /* @__PURE__ */ _pureRef(MathCls, "abs");
1352
1483
  mathRound = /* @__PURE__ */ _pureRef(MathCls, "round");
1353
- objGetOwnPropertyDescriptor = /* @__PURE__ */ _pureAssign(/* @__PURE__ */ _pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR), _returnNothing);
1354
- strEndsWith = /* @__PURE__ */ _unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith);
1355
1484
  strIndexOf = /* @__PURE__ */ _unwrapFunction("indexOf", StrProto);
1485
+ strEndsWith = /* @__PURE__ */ _unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith);
1356
1486
  strStartsWith = /* @__PURE__ */ _unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith);
1357
1487
  REF = "ref";
1358
1488
  UNREF = "unref";
@@ -30591,6 +30721,13 @@ var Breadcrumbs = React11__namespace.forwardRef(
30591
30721
  Breadcrumbs.displayName = "Breadcrumbs";
30592
30722
 
30593
30723
  // ../button/dist/index.js
30724
+ var BUTTON_VARIANT_ALIASES = {
30725
+ primary: "default"
30726
+ };
30727
+ function resolveButtonVariant(variant) {
30728
+ if (!variant) return variant;
30729
+ return BUTTON_VARIANT_ALIASES[variant] ?? variant;
30730
+ }
30594
30731
  function createButton(props = {}) {
30595
30732
  const { disabled = false, loading = false } = props;
30596
30733
  const isInteractive = !disabled && !loading;
@@ -30639,6 +30776,10 @@ var buttonVariants = cva({
30639
30776
  variants: {
30640
30777
  variant: {
30641
30778
  default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
30779
+ // Alias for `default` — see resolveButtonVariant + issue #201. Same classes
30780
+ // so styling stays identical even if a consumer reaches into `buttonVariants`
30781
+ // directly without going through resolveButtonVariant.
30782
+ primary: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
30642
30783
  destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
30643
30784
  outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
30644
30785
  secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
@@ -30948,8 +31089,9 @@ function ShortcutBadge({ keys, platform = true, className }) {
30948
31089
  ShortcutBadge.displayName = "ShortcutBadge";
30949
31090
  var Button = React11__namespace.forwardRef(
30950
31091
  ({ variant, size, loading, asChild, className, disabled, children, shortcut, action, ...props }, ref) => {
31092
+ const resolvedVariant = resolveButtonVariant(variant);
30951
31093
  const api = createButton({ disabled, loading, type: props.type });
30952
- const classes = cn(buttonVariants({ variant, size }), className);
31094
+ const classes = cn(buttonVariants({ variant: resolvedVariant, size }), className);
30953
31095
  const internalRef = React11__namespace.useRef(null);
30954
31096
  const mergedRef = React11__namespace.useCallback(
30955
31097
  (node) => {
@@ -43943,22 +44085,36 @@ var statusPulseVariants = cva({
43943
44085
  }
43944
44086
  });
43945
44087
  var statusLabelStyles = "text-sm text-muted-foreground";
43946
-
43947
- // ../react-status-indicator/dist/index.js
44088
+ function deriveAriaLabel(label, children, fallback) {
44089
+ if (label) return label;
44090
+ if (typeof children === "string" || typeof children === "number") {
44091
+ return String(children);
44092
+ }
44093
+ return fallback;
44094
+ }
43948
44095
  function StatusIndicator({
43949
44096
  type,
43950
44097
  label,
44098
+ children,
43951
44099
  pulse,
43952
44100
  showLabel = true,
43953
44101
  className
43954
44102
  }) {
43955
44103
  const api = createStatusIndicator({ type, label, pulse });
44104
+ const ariaLabel = deriveAriaLabel(label, children, api.label);
44105
+ const visibleLabel = label ?? children ?? api.label;
43956
44106
  const dotClassName = api.pulse ? statusPulseVariants({ type }) : statusDotVariants({ type });
43957
- return React11__namespace.createElement(
44107
+ return /* @__PURE__ */ jsxRuntime.jsxs(
43958
44108
  "span",
43959
- { ...api.ariaProps, className: cn(statusContainerStyles, className) },
43960
- React11__namespace.createElement("span", { className: dotClassName }),
43961
- showLabel && React11__namespace.createElement("span", { className: statusLabelStyles }, api.label)
44109
+ {
44110
+ ...api.ariaProps,
44111
+ "aria-label": ariaLabel,
44112
+ className: cn(statusContainerStyles, className),
44113
+ children: [
44114
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: dotClassName }),
44115
+ showLabel && /* @__PURE__ */ jsxRuntime.jsx("span", { className: statusLabelStyles, children: visibleLabel })
44116
+ ]
44117
+ }
43962
44118
  );
43963
44119
  }
43964
44120
  StatusIndicator.displayName = "StatusIndicator";
@@ -46928,7 +47084,7 @@ function useTrackEvent(options) {
46928
47084
  /*! Bundled license information:
46929
47085
 
46930
47086
  @nevware21/ts-utils/dist/es5/mod/ts-utils.js:
46931
- (*! https://github.com/nevware21/ts-utils v0.13.0 *)
47087
+ (*! https://github.com/nevware21/ts-utils v0.14.0 *)
46932
47088
 
46933
47089
  @nevware21/ts-async/dist/es5/mod/ts-async.js:
46934
47090
  (*!