@geckoui/geckoui 1.6.2 → 1.6.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.js CHANGED
@@ -4465,8 +4465,13 @@ var Select = (props) => {
4465
4465
  (0, import_react31.flip)({ padding: 6 }),
4466
4466
  (0, import_react31.offset)({ mainAxis: 6 }),
4467
4467
  (0, import_react31.size)({
4468
- apply({ rects, elements }) {
4469
- elements.floating.style.width = `${rects.reference.width}px`;
4468
+ padding: 6,
4469
+ apply({ rects, availableWidth, elements }) {
4470
+ Object.assign(elements.floating.style, {
4471
+ width: "max-content",
4472
+ minWidth: `${rects.reference.width}px`,
4473
+ maxWidth: `${availableWidth}px`
4474
+ });
4470
4475
  }
4471
4476
  })
4472
4477
  ],
package/dist/index.mjs CHANGED
@@ -4377,8 +4377,13 @@ var Select = (props) => {
4377
4377
  flip4({ padding: 6 }),
4378
4378
  offset4({ mainAxis: 6 }),
4379
4379
  size({
4380
- apply({ rects, elements }) {
4381
- elements.floating.style.width = `${rects.reference.width}px`;
4380
+ padding: 6,
4381
+ apply({ rects, availableWidth, elements }) {
4382
+ Object.assign(elements.floating.style, {
4383
+ width: "max-content",
4384
+ minWidth: `${rects.reference.width}px`,
4385
+ maxWidth: `${availableWidth}px`
4386
+ });
4382
4387
  }
4383
4388
  })
4384
4389
  ],
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geckoui/geckoui",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "license": "MIT",
5
5
  "description": "The only thing our Gecko eats is bugs!",
6
6
  "keywords": [