@trops/dash-core 0.1.216 → 0.1.217

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.js CHANGED
@@ -6043,45 +6043,42 @@ var WizardDiscoverStep = function WizardDiscoverStep(_ref) {
6043
6043
  text: "".concat(state.selectedWidgets.length, " selected")
6044
6044
  })]
6045
6045
  }), /*#__PURE__*/jsxRuntime.jsx("div", {
6046
- className: "grid grid-cols-2 lg:grid-cols-3 gap-3",
6046
+ className: "grid grid-cols-3 gap-3",
6047
6047
  children: filteredWidgets.map(function (widget) {
6048
6048
  var checked = isWidgetSelected(widget);
6049
- return /*#__PURE__*/jsxRuntime.jsx(DashReact.Card2, {
6049
+ return /*#__PURE__*/jsxRuntime.jsxs(DashReact.Card2, {
6050
6050
  hover: true,
6051
6051
  selected: checked,
6052
- padding: "p-5",
6052
+ padding: "p-4",
6053
6053
  rounded: "rounded-lg",
6054
- className: "hover:shadow-lg",
6054
+ className: "hover:shadow-lg flex flex-col",
6055
6055
  onClick: function onClick() {
6056
6056
  return handleToggleWidget(widget);
6057
6057
  },
6058
- children: /*#__PURE__*/jsxRuntime.jsxs("div", {
6059
- className: "flex items-start gap-2",
6060
- children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
6058
+ children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
6059
+ className: "flex items-start justify-between gap-2",
6060
+ children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
6061
+ className: "flex items-center gap-1.5",
6062
+ children: [widget.icon && /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
6063
+ icon: resolveIcon(widget.icon),
6064
+ fixedWidth: true,
6065
+ className: "text-gray-400 text-sm"
6066
+ }), /*#__PURE__*/jsxRuntime.jsx("span", {
6067
+ className: "text-sm font-medium text-gray-200 truncate",
6068
+ children: widget.name
6069
+ })]
6070
+ }), /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
6061
6071
  icon: checked ? "square-check" : "square",
6062
6072
  fixedWidth: true,
6063
- className: checked ? "text-blue-400 mt-0.5" : "text-gray-500 mt-0.5"
6064
- }), /*#__PURE__*/jsxRuntime.jsxs("div", {
6065
- className: "flex flex-col gap-0.5 min-w-0",
6066
- children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
6067
- className: "flex items-center gap-1.5",
6068
- children: [widget.icon && /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
6069
- icon: resolveIcon(widget.icon),
6070
- fixedWidth: true,
6071
- className: "text-gray-400 text-xs"
6072
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
6073
- className: "text-sm font-medium text-gray-200 truncate",
6074
- children: widget.name
6075
- })]
6076
- }), widget.description && /*#__PURE__*/jsxRuntime.jsx("p", {
6077
- className: "text-xs text-gray-400 line-clamp-2",
6078
- children: widget.description
6079
- }), widget.packageDisplayName && /*#__PURE__*/jsxRuntime.jsx("span", {
6080
- className: "text-xs text-gray-500",
6081
- children: widget.packageDisplayName
6082
- })]
6073
+ className: checked ? "text-blue-400 flex-shrink-0" : "text-gray-500 flex-shrink-0"
6083
6074
  })]
6084
- })
6075
+ }), widget.description && /*#__PURE__*/jsxRuntime.jsx("p", {
6076
+ className: "text-xs text-gray-400 line-clamp-2 mt-1.5 flex-1",
6077
+ children: widget.description
6078
+ }), widget.packageDisplayName && /*#__PURE__*/jsxRuntime.jsx("span", {
6079
+ className: "text-xs text-gray-500 mt-2 pt-1.5 border-t border-gray-700/50 truncate",
6080
+ children: widget.packageDisplayName
6081
+ })]
6085
6082
  }, widget.key);
6086
6083
  })
6087
6084
  })]
@@ -7955,7 +7952,7 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
7955
7952
  var hasPropertyDescriptors_1 = hasPropertyDescriptors;
7956
7953
 
7957
7954
  var keys = objectKeys$2;
7958
- var hasSymbols$5 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
7955
+ var hasSymbols$4 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
7959
7956
 
7960
7957
  var toStr$4 = Object.prototype.toString;
7961
7958
  var concat = Array.prototype.concat;
@@ -7988,7 +7985,7 @@ var defineProperty$1 = function (object, name, value, predicate) {
7988
7985
  var defineProperties$1 = function (object, map) {
7989
7986
  var predicates = arguments.length > 2 ? arguments[2] : {};
7990
7987
  var props = keys(map);
7991
- if (hasSymbols$5) {
7988
+ if (hasSymbols$4) {
7992
7989
  props = concat.call(props, Object.getOwnPropertySymbols(map));
7993
7990
  }
7994
7991
  for (var i = 0; i < props.length; i += 1) {
@@ -8054,11 +8051,11 @@ var sign$1 = function sign(number) {
8054
8051
  };
8055
8052
 
8056
8053
  var shams$1;
8057
- var hasRequiredShams;
8054
+ var hasRequiredShams$1;
8058
8055
 
8059
- function requireShams () {
8060
- if (hasRequiredShams) return shams$1;
8061
- hasRequiredShams = 1;
8056
+ function requireShams$1 () {
8057
+ if (hasRequiredShams$1) return shams$1;
8058
+ hasRequiredShams$1 = 1;
8062
8059
 
8063
8060
  /** @type {import('./shams')} */
8064
8061
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
@@ -8107,10 +8104,10 @@ function requireShams () {
8107
8104
  }
8108
8105
 
8109
8106
  var origSymbol = typeof Symbol !== 'undefined' && Symbol;
8110
- var hasSymbolSham = requireShams();
8107
+ var hasSymbolSham = requireShams$1();
8111
8108
 
8112
8109
  /** @type {import('.')} */
8113
- var hasSymbols$4 = function hasNativeSymbols() {
8110
+ var hasSymbols$3 = function hasNativeSymbols() {
8114
8111
  if (typeof origSymbol !== 'function') { return false; }
8115
8112
  if (typeof Symbol !== 'function') { return false; }
8116
8113
  if (typeof origSymbol('foo') !== 'symbol') { return false; }
@@ -8414,7 +8411,7 @@ var ThrowTypeError = $gOPD$1
8414
8411
  }())
8415
8412
  : throwTypeError;
8416
8413
 
8417
- var hasSymbols$3 = hasSymbols$4();
8414
+ var hasSymbols$2 = hasSymbols$3();
8418
8415
 
8419
8416
  var getProto$2 = getProto$3;
8420
8417
  var $ObjectGPO = requireObject_getPrototypeOf();
@@ -8432,7 +8429,7 @@ var INTRINSICS = {
8432
8429
  '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
8433
8430
  '%Array%': Array,
8434
8431
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
8435
- '%ArrayIteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
8432
+ '%ArrayIteratorPrototype%': hasSymbols$2 && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
8436
8433
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
8437
8434
  '%AsyncFunction%': needsEval,
8438
8435
  '%AsyncGenerator%': needsEval,
@@ -8463,10 +8460,10 @@ var INTRINSICS = {
8463
8460
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
8464
8461
  '%isFinite%': isFinite,
8465
8462
  '%isNaN%': isNaN,
8466
- '%IteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
8463
+ '%IteratorPrototype%': hasSymbols$2 && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
8467
8464
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
8468
8465
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
8469
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 || !getProto$2 ? undefined$1 : getProto$2(new Map()[Symbol.iterator]()),
8466
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 || !getProto$2 ? undefined$1 : getProto$2(new Map()[Symbol.iterator]()),
8470
8467
  '%Math%': Math,
8471
8468
  '%Number%': Number,
8472
8469
  '%Object%': $Object$2,
@@ -8480,11 +8477,11 @@ var INTRINSICS = {
8480
8477
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
8481
8478
  '%RegExp%': RegExp,
8482
8479
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
8483
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 || !getProto$2 ? undefined$1 : getProto$2(new Set()[Symbol.iterator]()),
8480
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 || !getProto$2 ? undefined$1 : getProto$2(new Set()[Symbol.iterator]()),
8484
8481
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
8485
8482
  '%String%': String,
8486
- '%StringIteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2(''[Symbol.iterator]()) : undefined$1,
8487
- '%Symbol%': hasSymbols$3 ? Symbol : undefined$1,
8483
+ '%StringIteratorPrototype%': hasSymbols$2 && getProto$2 ? getProto$2(''[Symbol.iterator]()) : undefined$1,
8484
+ '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
8488
8485
  '%SyntaxError%': $SyntaxError$1,
8489
8486
  '%ThrowTypeError%': ThrowTypeError,
8490
8487
  '%TypedArray%': TypedArray,
@@ -8837,12 +8834,12 @@ var callBound$i = function callBoundIntrinsic(name, allowMissing) {
8837
8834
 
8838
8835
  // modified from https://github.com/es-shims/es6-shim
8839
8836
  var objectKeys$1 = objectKeys$2;
8840
- var hasSymbols$2 = requireShams()();
8837
+ var hasSymbols$1 = requireShams$1()();
8841
8838
  var callBound$h = callBound$i;
8842
8839
  var $Object$1 = esObjectAtoms;
8843
8840
  var $push = callBound$h('Array.prototype.push');
8844
8841
  var $propIsEnumerable = callBound$h('Object.prototype.propertyIsEnumerable');
8845
- var originalGetSymbols = hasSymbols$2 ? $Object$1.getOwnPropertySymbols : null;
8842
+ var originalGetSymbols = hasSymbols$1 ? $Object$1.getOwnPropertySymbols : null;
8846
8843
 
8847
8844
  // eslint-disable-next-line no-unused-vars
8848
8845
  var implementation$8 = function assign(target, source1) {
@@ -8856,7 +8853,7 @@ var implementation$8 = function assign(target, source1) {
8856
8853
 
8857
8854
  // step 3.a.ii:
8858
8855
  var keys = objectKeys$1(from);
8859
- var getSymbols = hasSymbols$2 && ($Object$1.getOwnPropertySymbols || originalGetSymbols);
8856
+ var getSymbols = hasSymbols$1 && ($Object$1.getOwnPropertySymbols || originalGetSymbols);
8860
8857
  if (getSymbols) {
8861
8858
  var syms = getSymbols(from);
8862
8859
  for (var j = 0; j < syms.length; ++j) {
@@ -9153,14 +9150,23 @@ var regexp_prototype_flags = flagsBound;
9153
9150
 
9154
9151
  var esGetIterator = {exports: {}};
9155
9152
 
9156
- var hasSymbols$1 = requireShams();
9153
+ var shams;
9154
+ var hasRequiredShams;
9155
+
9156
+ function requireShams () {
9157
+ if (hasRequiredShams) return shams;
9158
+ hasRequiredShams = 1;
9157
9159
 
9158
- /** @type {import('.')} */
9159
- var shams = function hasToStringTagShams() {
9160
- return hasSymbols$1() && !!Symbol.toStringTag;
9161
- };
9160
+ var hasSymbols = requireShams$1();
9161
+
9162
+ /** @type {import('.')} */
9163
+ shams = function hasToStringTagShams() {
9164
+ return hasSymbols() && !!Symbol.toStringTag;
9165
+ };
9166
+ return shams;
9167
+ }
9162
9168
 
9163
- var hasToStringTag$7 = shams();
9169
+ var hasToStringTag$7 = requireShams()();
9164
9170
  var callBound$f = callBound$i;
9165
9171
 
9166
9172
  var $toString$7 = callBound$f('Object.prototype.toString');
@@ -10197,7 +10203,7 @@ var tryStringObject = function tryStringObject(value) {
10197
10203
  /** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */
10198
10204
  var $toString$6 = callBound$c('Object.prototype.toString');
10199
10205
  var strClass = '[object String]';
10200
- var hasToStringTag$6 = shams();
10206
+ var hasToStringTag$6 = requireShams()();
10201
10207
 
10202
10208
  /** @type {import('.')} */
10203
10209
  var isString$2 = function isString(value) {
@@ -10313,7 +10319,7 @@ var isSet$2 = exported$1 || function isSet(x) {
10313
10319
  var isArguments$1 = isArguments$2;
10314
10320
  var getStopIterationIterator = stopIterationIterator;
10315
10321
 
10316
- if (hasSymbols$4() || requireShams()()) {
10322
+ if (hasSymbols$3() || requireShams$1()()) {
10317
10323
  var $iterator = Symbol.iterator;
10318
10324
  // Symbol is available natively or shammed
10319
10325
  // natively:
@@ -10602,7 +10608,7 @@ var tryDateObject = function tryDateGetDayCall(value) {
10602
10608
  /** @type {(value: unknown) => string} */
10603
10609
  var toStr$2 = callBound$9('Object.prototype.toString');
10604
10610
  var dateClass = '[object Date]';
10605
- var hasToStringTag$5 = shams();
10611
+ var hasToStringTag$5 = requireShams()();
10606
10612
 
10607
10613
  /** @type {import('.')} */
10608
10614
  var isDateObject = function isDateObject(value) {
@@ -10613,7 +10619,7 @@ var isDateObject = function isDateObject(value) {
10613
10619
  };
10614
10620
 
10615
10621
  var callBound$8 = callBound$i;
10616
- var hasToStringTag$4 = shams();
10622
+ var hasToStringTag$4 = requireShams()();
10617
10623
  var hasOwn = hasown;
10618
10624
  var gOPD$1 = gopd$1;
10619
10625
 
@@ -10718,7 +10724,7 @@ var tryNumberObject = function tryNumberObject(value) {
10718
10724
  };
10719
10725
  var $toString$3 = callBound$6('Object.prototype.toString');
10720
10726
  var numClass = '[object Number]';
10721
- var hasToStringTag$3 = shams();
10727
+ var hasToStringTag$3 = requireShams()();
10722
10728
 
10723
10729
  /** @type {import('.')} */
10724
10730
  var isNumberObject = function isNumberObject(value) {
@@ -10745,7 +10751,7 @@ var tryBooleanObject = function booleanBrandCheck(value) {
10745
10751
  }
10746
10752
  };
10747
10753
  var boolClass = '[object Boolean]';
10748
- var hasToStringTag$2 = shams();
10754
+ var hasToStringTag$2 = requireShams()();
10749
10755
 
10750
10756
  /** @type {import('.')} */
10751
10757
  var isBooleanObject = function isBoolean(value) {
@@ -10787,7 +10793,7 @@ function requireSafeRegexTest () {
10787
10793
 
10788
10794
  var callBound$4 = callBound$i;
10789
10795
  var $toString$1 = callBound$4('Object.prototype.toString');
10790
- var hasSymbols = hasSymbols$4();
10796
+ var hasSymbols = hasSymbols$3();
10791
10797
  var safeRegexTest = requireSafeRegexTest();
10792
10798
 
10793
10799
  if (hasSymbols) {
@@ -11233,7 +11239,7 @@ var gOPD = gopd$1;
11233
11239
  var getProto = getProto$3;
11234
11240
 
11235
11241
  var $toString = callBound$2('Object.prototype.toString');
11236
- var hasToStringTag = shams();
11242
+ var hasToStringTag = requireShams()();
11237
11243
 
11238
11244
  var g = typeof globalThis === 'undefined' ? commonjsGlobal : globalThis;
11239
11245
  var typedArrays = availableTypedArrays();