@fairfox/polly 0.75.3 → 0.76.0

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.
@@ -259,6 +259,8 @@
259
259
  position: fixed;
260
260
  inset: unset;
261
261
  z-index: var(--polly-z-raised);
262
+ min-width: var(--polly-menu-min-width);
263
+ max-width: var(--polly-menu-max-width);
262
264
  padding: var(--polly-space-xs) 0;
263
265
  border: var(--polly-border-width-default) solid var(--polly-border);
264
266
  border-radius: var(--polly-radius-md);
@@ -266,7 +268,6 @@
266
268
  box-shadow: var(--polly-shadow-md);
267
269
  box-sizing: border-box;
268
270
  overflow-y: auto;
269
- min-width: 160px;
270
271
  max-height: 280px;
271
272
  margin: 0;
272
273
  }
@@ -348,6 +349,7 @@
348
349
  display: inline-flex;
349
350
  align-items: center;
350
351
  gap: var(--polly-space-sm);
352
+ max-width: min(100%, var(--polly-control-max-width));
351
353
  padding: var(--polly-space-sm) var(--polly-space-md);
352
354
  border: var(--polly-border-width-default) solid var(--polly-border);
353
355
  border-radius: var(--polly-radius-sm);
@@ -355,9 +357,8 @@
355
357
  font-family: inherit;
356
358
  font-size: var(--polly-text-md);
357
359
  color: var(--polly-text);
358
- text-align: left;
360
+ text-align: start;
359
361
  cursor: pointer;
360
- max-width: 100%;
361
362
  }
362
363
 
363
364
  .trigger_daofbw:disabled, .trigger_daofbw[aria-disabled="true"] {
@@ -366,7 +367,7 @@
366
367
  }
367
368
 
368
369
  .triggerWide_daofbw {
369
- min-width: 140px;
370
+ min-width: var(--polly-control-min-width-md);
370
371
  }
371
372
 
372
373
  .triggerLabel_daofbw {
@@ -428,8 +429,11 @@
428
429
  font-family: inherit;
429
430
  font-size: var(--polly-text-sm);
430
431
  color: var(--polly-text);
431
- text-align: left;
432
+ text-align: start;
432
433
  cursor: pointer;
434
+ white-space: nowrap;
435
+ overflow: hidden;
436
+ text-overflow: ellipsis;
433
437
  background: none;
434
438
  border: none;
435
439
  width: 100%;
@@ -445,9 +449,9 @@
445
449
 
446
450
  .optionCheck_daofbw {
447
451
  accent-color: var(--polly-accent);
448
- margin-right: var(--polly-space-sm);
449
452
  vertical-align: middle;
450
453
  pointer-events: none;
454
+ margin-inline-end: var(--polly-space-sm);
451
455
  }
452
456
  }
453
457
 
@@ -597,6 +601,13 @@
597
601
  .btnFullWidth_c4HKfA {
598
602
  width: 100%;
599
603
  }
604
+
605
+ .btnBounded_c4HKfA {
606
+ max-width: var(--polly-control-max-width);
607
+ overflow: hidden;
608
+ text-overflow: ellipsis;
609
+ white-space: nowrap;
610
+ }
600
611
  }
601
612
 
602
613
  /* src/polly-ui/Surface.module.css */
@@ -701,8 +712,8 @@
701
712
  }
702
713
 
703
714
  .label_EKE5sg {
704
- margin-left: var(--polly-space-sm);
705
715
  vertical-align: middle;
716
+ margin-inline-start: var(--polly-space-sm);
706
717
  }
707
718
  }
708
719
 
@@ -782,15 +793,23 @@
782
793
  .summary_sEhnPw:before {
783
794
  content: "▶";
784
795
  display: inline-block;
785
- margin-right: var(--polly-space-sm);
786
796
  font-size: var(--polly-text-xs);
787
797
  transition: transform var(--polly-motion-fast);
798
+ margin-inline-end: var(--polly-space-sm);
799
+ }
800
+
801
+ [dir="rtl"] .summary_sEhnPw:before {
802
+ transform: scaleX(-1);
788
803
  }
789
804
 
790
805
  .collapsible_sEhnPw[open] > .summary_sEhnPw:before {
791
806
  transform: rotate(90deg);
792
807
  }
793
808
 
809
+ [dir="rtl"] .collapsible_sEhnPw[open] > .summary_sEhnPw:before {
810
+ transform: rotate(-90deg);
811
+ }
812
+
794
813
  .summary_sEhnPw:hover {
795
814
  background-color: var(--polly-surface-raised);
796
815
  }
@@ -1307,12 +1326,21 @@
1307
1326
  left: 2px;
1308
1327
  }
1309
1328
 
1329
+ [dir="rtl"] .thumb_rnf-SQ {
1330
+ left: auto;
1331
+ right: 2px;
1332
+ }
1333
+
1310
1334
  .thumbChecked_rnf-SQ {
1311
1335
  transform: translateX(16px);
1312
1336
  }
1313
1337
 
1338
+ [dir="rtl"] .thumbChecked_rnf-SQ {
1339
+ transform: translateX(-16px);
1340
+ }
1341
+
1314
1342
  .label_rnf-SQ {
1315
- margin-left: var(--polly-space-sm);
1316
1343
  vertical-align: middle;
1344
+ margin-inline-start: var(--polly-space-sm);
1317
1345
  }
1318
1346
  }
@@ -80,6 +80,25 @@
80
80
  --polly-control-height-md: 2.25rem;
81
81
  --polly-control-height-lg: 2.75rem;
82
82
 
83
+ /* Control widths — caps and floors for Button, Select, Dropdown
84
+ * triggers so semi-dynamic labels (multi-select joins, user-
85
+ * supplied button text) don't collapse a control to a few pixels
86
+ * or blow out a row. The min ladder mirrors the height ladder;
87
+ * the max is a single cap intended to be overridden in tight
88
+ * toolbars. Triggers and bounded buttons ellipsis-truncate when
89
+ * label width crosses the max. */
90
+ --polly-control-min-width-sm: 6rem;
91
+ --polly-control-min-width-md: 9rem;
92
+ --polly-control-min-width-lg: 12rem;
93
+ --polly-control-max-width: 20rem;
94
+
95
+ /* Dropdown menu width caps. Distinct from trigger widths because
96
+ * a menu may legitimately be wider than its trigger (long option
97
+ * labels) but should still ellipsis-truncate before stretching
98
+ * past readability. */
99
+ --polly-menu-min-width: 10rem;
100
+ --polly-menu-max-width: 24rem;
101
+
83
102
  /* Disclosure caret for dropdown-style triggers (Select, ActionSelect).
84
103
  * Collapsible runs its own left-side marker — that's a different
85
104
  * affordance from a dropdown's right-side ▾ and shouldn't track
@@ -11487,7 +11487,7 @@ var init_zlib = __esm(() => {
11487
11487
  export_default = import_browserify_zlib.default;
11488
11488
  });
11489
11489
 
11490
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/chunkstream.js
11490
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/chunkstream.js
11491
11491
  var require_chunkstream = __commonJS((exports, module) => {
11492
11492
  var util = (init_util(), __toCommonJS(exports_util));
11493
11493
  var Stream = require_stream();
@@ -11619,7 +11619,7 @@ var require_chunkstream = __commonJS((exports, module) => {
11619
11619
  };
11620
11620
  });
11621
11621
 
11622
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/interlace.js
11622
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/interlace.js
11623
11623
  var require_interlace = __commonJS((exports) => {
11624
11624
  var imagePasses = [
11625
11625
  {
@@ -11692,7 +11692,7 @@ var require_interlace = __commonJS((exports) => {
11692
11692
  };
11693
11693
  });
11694
11694
 
11695
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/paeth-predictor.js
11695
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/paeth-predictor.js
11696
11696
  var require_paeth_predictor = __commonJS((exports, module) => {
11697
11697
  module.exports = function paethPredictor(left, above, upLeft) {
11698
11698
  let paeth = left + above - upLeft;
@@ -11709,7 +11709,7 @@ var require_paeth_predictor = __commonJS((exports, module) => {
11709
11709
  };
11710
11710
  });
11711
11711
 
11712
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/filter-parse.js
11712
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/filter-parse.js
11713
11713
  var require_filter_parse = __commonJS((exports, module) => {
11714
11714
  var interlaceUtils = require_interlace();
11715
11715
  var paethPredictor = require_paeth_predictor();
@@ -11844,7 +11844,7 @@ var require_filter_parse = __commonJS((exports, module) => {
11844
11844
  };
11845
11845
  });
11846
11846
 
11847
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/filter-parse-async.js
11847
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/filter-parse-async.js
11848
11848
  var require_filter_parse_async = __commonJS((exports, module) => {
11849
11849
  var util = (init_util(), __toCommonJS(exports_util));
11850
11850
  var ChunkStream = require_chunkstream();
@@ -11867,7 +11867,7 @@ var require_filter_parse_async = __commonJS((exports, module) => {
11867
11867
  util.inherits(FilterAsync, ChunkStream);
11868
11868
  });
11869
11869
 
11870
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/constants.js
11870
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/constants.js
11871
11871
  var require_constants2 = __commonJS((exports, module) => {
11872
11872
  module.exports = {
11873
11873
  PNG_SIGNATURE: [137, 80, 78, 71, 13, 10, 26, 10],
@@ -11894,7 +11894,7 @@ var require_constants2 = __commonJS((exports, module) => {
11894
11894
  };
11895
11895
  });
11896
11896
 
11897
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/crc.js
11897
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/crc.js
11898
11898
  var require_crc = __commonJS((exports, module) => {
11899
11899
  var crcTable = [];
11900
11900
  (function() {
@@ -11931,7 +11931,7 @@ var require_crc = __commonJS((exports, module) => {
11931
11931
  };
11932
11932
  });
11933
11933
 
11934
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/parser.js
11934
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/parser.js
11935
11935
  var require_parser = __commonJS((exports, module) => {
11936
11936
  var constants2 = require_constants2();
11937
11937
  var CrcCalculator = require_crc();
@@ -12148,7 +12148,7 @@ var require_parser = __commonJS((exports, module) => {
12148
12148
  };
12149
12149
  });
12150
12150
 
12151
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/bitmapper.js
12151
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/bitmapper.js
12152
12152
  var require_bitmapper = __commonJS((exports) => {
12153
12153
  var interlaceUtils = require_interlace();
12154
12154
  var pixelBppMapper = [
@@ -12359,7 +12359,7 @@ var require_bitmapper = __commonJS((exports) => {
12359
12359
  };
12360
12360
  });
12361
12361
 
12362
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/format-normaliser.js
12362
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/format-normaliser.js
12363
12363
  var require_format_normaliser = __commonJS((exports, module) => {
12364
12364
  function dePalette(indata, outdata, width, height, palette) {
12365
12365
  let pxPos = 0;
@@ -12435,7 +12435,7 @@ var require_format_normaliser = __commonJS((exports, module) => {
12435
12435
  };
12436
12436
  });
12437
12437
 
12438
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/parser-async.js
12438
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/parser-async.js
12439
12439
  var require_parser_async = __commonJS((exports, module) => {
12440
12440
  var util = (init_util(), __toCommonJS(exports_util));
12441
12441
  var zlib = (init_zlib(), __toCommonJS(exports_zlib));
@@ -12557,7 +12557,7 @@ var require_parser_async = __commonJS((exports, module) => {
12557
12557
  };
12558
12558
  });
12559
12559
 
12560
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/bitpacker.js
12560
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/bitpacker.js
12561
12561
  var require_bitpacker = __commonJS((exports, module) => {
12562
12562
  var constants2 = require_constants2();
12563
12563
  module.exports = function(dataIn, width, height, options) {
@@ -12686,7 +12686,7 @@ var require_bitpacker = __commonJS((exports, module) => {
12686
12686
  };
12687
12687
  });
12688
12688
 
12689
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/filter-pack.js
12689
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/filter-pack.js
12690
12690
  var require_filter_pack = __commonJS((exports, module) => {
12691
12691
  var paethPredictor = require_paeth_predictor();
12692
12692
  function filterNone(pxData, pxPos, byteWidth, rawData, rawPos) {
@@ -12825,7 +12825,7 @@ var require_filter_pack = __commonJS((exports, module) => {
12825
12825
  };
12826
12826
  });
12827
12827
 
12828
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/packer.js
12828
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/packer.js
12829
12829
  var require_packer = __commonJS((exports, module) => {
12830
12830
  var constants2 = require_constants2();
12831
12831
  var CrcStream = require_crc();
@@ -12913,7 +12913,7 @@ var require_packer = __commonJS((exports, module) => {
12913
12913
  };
12914
12914
  });
12915
12915
 
12916
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/packer-async.js
12916
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/packer-async.js
12917
12917
  var require_packer_async = __commonJS((exports, module) => {
12918
12918
  var util = (init_util(), __toCommonJS(exports_util));
12919
12919
  var Stream = require_stream();
@@ -12946,7 +12946,7 @@ var require_packer_async = __commonJS((exports, module) => {
12946
12946
  };
12947
12947
  });
12948
12948
 
12949
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/sync-inflate.js
12949
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/sync-inflate.js
12950
12950
  var require_sync_inflate = __commonJS((exports, module) => {
12951
12951
  var assert2 = (init_assert(), __toCommonJS(exports_assert)).ok;
12952
12952
  var zlib = (init_zlib(), __toCommonJS(exports_zlib));
@@ -13065,7 +13065,7 @@ var require_sync_inflate = __commonJS((exports, module) => {
13065
13065
  exports.inflateSync = inflateSync;
13066
13066
  });
13067
13067
 
13068
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/sync-reader.js
13068
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/sync-reader.js
13069
13069
  var require_sync_reader = __commonJS((exports, module) => {
13070
13070
  var SyncReader = module.exports = function(buffer) {
13071
13071
  this._buffer = buffer;
@@ -13099,7 +13099,7 @@ var require_sync_reader = __commonJS((exports, module) => {
13099
13099
  };
13100
13100
  });
13101
13101
 
13102
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/filter-parse-sync.js
13102
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/filter-parse-sync.js
13103
13103
  var require_filter_parse_sync = __commonJS((exports) => {
13104
13104
  var SyncReader = require_sync_reader();
13105
13105
  var Filter = require_filter_parse();
@@ -13119,7 +13119,7 @@ var require_filter_parse_sync = __commonJS((exports) => {
13119
13119
  };
13120
13120
  });
13121
13121
 
13122
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/parser-sync.js
13122
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/parser-sync.js
13123
13123
  var require_parser_sync = __commonJS((exports, module) => {
13124
13124
  var hasSyncZlib = true;
13125
13125
  var zlib = (init_zlib(), __toCommonJS(exports_zlib));
@@ -13205,7 +13205,7 @@ var require_parser_sync = __commonJS((exports, module) => {
13205
13205
  };
13206
13206
  });
13207
13207
 
13208
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/packer-sync.js
13208
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/packer-sync.js
13209
13209
  var require_packer_sync = __commonJS((exports, module) => {
13210
13210
  var hasSyncZlib = true;
13211
13211
  var zlib = (init_zlib(), __toCommonJS(exports_zlib));
@@ -13238,7 +13238,7 @@ var require_packer_sync = __commonJS((exports, module) => {
13238
13238
  };
13239
13239
  });
13240
13240
 
13241
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/png-sync.js
13241
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/png-sync.js
13242
13242
  var require_png_sync = __commonJS((exports) => {
13243
13243
  var parse = require_parser_sync();
13244
13244
  var pack = require_packer_sync();
@@ -13250,7 +13250,7 @@ var require_png_sync = __commonJS((exports) => {
13250
13250
  };
13251
13251
  });
13252
13252
 
13253
- // node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/png.js
13253
+ // ../../node_modules/.bun/pngjs@7.0.0/node_modules/pngjs/lib/png.js
13254
13254
  var require_png = __commonJS((exports) => {
13255
13255
  var util = (init_util(), __toCommonJS(exports_util));
13256
13256
  var Stream = require_stream();
@@ -13717,7 +13717,7 @@ var init_path = __esm(() => {
13717
13717
  // tools/test/src/visual/compare.ts
13718
13718
  var {readFileSync, writeFileSync} = (() => ({}));
13719
13719
 
13720
- // node_modules/.bun/pixelmatch@7.2.0/node_modules/pixelmatch/index.js
13720
+ // ../../node_modules/.bun/pixelmatch@7.2.0/node_modules/pixelmatch/index.js
13721
13721
  function pixelmatch(img1, img2, output, width, height, options = {}) {
13722
13722
  const {
13723
13723
  threshold = 0.1,
@@ -14036,4 +14036,4 @@ export {
14036
14036
  assertSafeUpdateMode
14037
14037
  };
14038
14038
 
14039
- //# debugId=FE6BF93D8946345F64756E2164756E21
14039
+ //# debugId=AC6D1B52448A589964756E2164756E21