@geckoui/geckoui 1.6.2 → 1.6.4

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
@@ -257,14 +257,9 @@ var getDataAttributes = (props) => {
257
257
 
258
258
  // src/utils/isAsyncFn.ts
259
259
  function isAsyncFn(fn) {
260
- try {
261
- if (typeof fn !== "function") return false;
262
- if (fn.constructor.name === "AsyncFunction") return true;
263
- const result = fn();
264
- return result instanceof Promise;
265
- } catch (e) {
266
- return false;
267
- }
260
+ var _a;
261
+ if (typeof fn !== "function") return false;
262
+ return ((_a = fn.constructor) == null ? void 0 : _a.name) === "AsyncFunction";
268
263
  }
269
264
 
270
265
  // src/lib/FilePicker/handlers/BaseFilePickerHandler.ts
@@ -4465,8 +4460,13 @@ var Select = (props) => {
4465
4460
  (0, import_react31.flip)({ padding: 6 }),
4466
4461
  (0, import_react31.offset)({ mainAxis: 6 }),
4467
4462
  (0, import_react31.size)({
4468
- apply({ rects, elements }) {
4469
- elements.floating.style.width = `${rects.reference.width}px`;
4463
+ padding: 6,
4464
+ apply({ rects, availableWidth, elements }) {
4465
+ Object.assign(elements.floating.style, {
4466
+ width: "max-content",
4467
+ minWidth: `${rects.reference.width}px`,
4468
+ maxWidth: `${availableWidth}px`
4469
+ });
4470
4470
  }
4471
4471
  })
4472
4472
  ],
package/dist/index.mjs CHANGED
@@ -161,14 +161,9 @@ var getDataAttributes = (props) => {
161
161
 
162
162
  // src/utils/isAsyncFn.ts
163
163
  function isAsyncFn(fn) {
164
- try {
165
- if (typeof fn !== "function") return false;
166
- if (fn.constructor.name === "AsyncFunction") return true;
167
- const result = fn();
168
- return result instanceof Promise;
169
- } catch (e) {
170
- return false;
171
- }
164
+ var _a;
165
+ if (typeof fn !== "function") return false;
166
+ return ((_a = fn.constructor) == null ? void 0 : _a.name) === "AsyncFunction";
172
167
  }
173
168
 
174
169
  // src/lib/FilePicker/handlers/BaseFilePickerHandler.ts
@@ -4377,8 +4372,13 @@ var Select = (props) => {
4377
4372
  flip4({ padding: 6 }),
4378
4373
  offset4({ mainAxis: 6 }),
4379
4374
  size({
4380
- apply({ rects, elements }) {
4381
- elements.floating.style.width = `${rects.reference.width}px`;
4375
+ padding: 6,
4376
+ apply({ rects, availableWidth, elements }) {
4377
+ Object.assign(elements.floating.style, {
4378
+ width: "max-content",
4379
+ minWidth: `${rects.reference.width}px`,
4380
+ maxWidth: `${availableWidth}px`
4381
+ });
4382
4382
  }
4383
4383
  })
4384
4384
  ],
package/dist/styles.css CHANGED
@@ -2047,7 +2047,6 @@
2047
2047
  z-index: 10;
2048
2048
  display: flex;
2049
2049
  max-height: 240px;
2050
- width: 100%;
2051
2050
  min-width: calc(var(--spacing, 0.25rem) * 0);
2052
2051
  flex-direction: column;
2053
2052
  gap: 1px;
@@ -2224,9 +2223,9 @@
2224
2223
  align-items: center;
2225
2224
  gap: calc(var(--spacing, 0.25rem) * 1);
2226
2225
  overflow-x: scroll;
2227
- scrollbar-width: none;
2228
- scrollbar-color: transparent transparent;
2229
- scrollbar-gutter: stable;
2226
+ scrollbar-width: none !important;
2227
+ scrollbar-color: transparent transparent !important;
2228
+ scrollbar-gutter: stable !important;
2230
2229
  }
2231
2230
  .GeckoUISelectButton__content -webkit-scrollbar {
2232
2231
  width: 0px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geckoui/geckoui",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "license": "MIT",
5
5
  "description": "The only thing our Gecko eats is bugs!",
6
6
  "keywords": [