@ox0/ui 3.18.0 → 3.19.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.
package/dist/index.js CHANGED
@@ -788,6 +788,65 @@ __webpack_require__.add({
788
788
  A: __rspack_default_export
789
789
  });
790
790
  },
791
+ "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/bulk-tag-editor.module.css" (module, __webpack_exports__, __webpack_require__) {
792
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
793
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1);
794
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
795
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0);
796
+ var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default()(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default());
797
+ ___CSS_LOADER_EXPORT___.push([
798
+ module.id,
799
+ `.root-jVzExv {
800
+ align-content: start;
801
+ gap: var(--ox0-space-sm);
802
+ grid-template-columns: minmax(0, 1fr);
803
+ min-inline-size: 0;
804
+ display: grid;
805
+ }
806
+
807
+ .description-GPDcKp {
808
+ color: var(--ox0-color-muted);
809
+ font-size: var(--ox0-font-size-sm);
810
+ }
811
+
812
+ .list-u6F_nm {
813
+ align-content: start;
814
+ gap: var(--ox0-space-sm);
815
+ max-block-size: 18rem;
816
+ min-inline-size: 0;
817
+ padding: var(--ox0-space-2xs);
818
+ border: none;
819
+ justify-items: start;
820
+ margin: 0;
821
+ display: grid;
822
+ overflow-y: auto;
823
+ }
824
+
825
+ .empty-kST3EM {
826
+ color: var(--ox0-color-muted);
827
+ font-size: var(--ox0-font-size-sm);
828
+ }
829
+
830
+ .tagLabel-_vHnab {
831
+ align-items: center;
832
+ gap: var(--ox0-space-xs);
833
+ display: inline-flex;
834
+ }
835
+ `,
836
+ ""
837
+ ]);
838
+ ___CSS_LOADER_EXPORT___.locals = {
839
+ root: "root-jVzExv",
840
+ description: "description-GPDcKp",
841
+ list: "list-u6F_nm",
842
+ empty: "empty-kST3EM",
843
+ tagLabel: "tagLabel-_vHnab"
844
+ };
845
+ const __rspack_default_export = ___CSS_LOADER_EXPORT___;
846
+ __webpack_require__.d(__webpack_exports__, {}, {
847
+ A: __rspack_default_export
848
+ });
849
+ },
791
850
  "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/button-group.module.css" (module, __webpack_exports__, __webpack_require__) {
792
851
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
793
852
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1);
@@ -5183,7 +5242,7 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
5183
5242
  A: __rspack_default_export
5184
5243
  });
5185
5244
  },
5186
- "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/tag-group.module.css" (module, __webpack_exports__, __webpack_require__) {
5245
+ "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/tag-color-picker.module.css" (module, __webpack_exports__, __webpack_require__) {
5187
5246
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
5188
5247
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1);
5189
5248
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
@@ -5191,154 +5250,234 @@ label:hover > .control-TGnWDN[aria-invalid="true"]:not(:disabled) {
5191
5250
  var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default()(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default());
5192
5251
  ___CSS_LOADER_EXPORT___.push([
5193
5252
  module.id,
5194
- `.root-czq2dC {
5195
- color: var(--ox0-color-foreground);
5196
- min-inline-size: 0;
5197
- font-size: var(--ox0-font-size-md);
5253
+ `.root-vXdGid {
5198
5254
  align-content: start;
5199
5255
  gap: var(--ox0-space-xs);
5200
- grid-template-columns: minmax(0, 1fr);
5256
+ border: none;
5257
+ justify-items: start;
5258
+ min-inline-size: 0;
5259
+ margin: 0;
5260
+ padding: 0;
5201
5261
  display: grid;
5202
5262
  }
5203
5263
 
5204
- .description-FYzKc1 {
5264
+ .legend-Lx1ra6 {
5265
+ padding: 0;
5266
+ }
5267
+
5268
+ .description-jmdqVk {
5205
5269
  color: var(--ox0-color-muted);
5206
5270
  font-size: var(--ox0-font-size-sm);
5207
5271
  }
5208
5272
 
5209
- .error-Ki_ghh {
5273
+ .error-WEX6CX {
5210
5274
  color: var(--ox0-color-danger-text);
5211
5275
  font-size: var(--ox0-font-size-sm);
5212
5276
  }
5213
5277
 
5214
- .tags-zkvYh0 {
5215
- gap: var(--ox0-space-xs);
5216
- flex-wrap: wrap;
5217
- display: flex;
5278
+ .wheel-VcNGRy {
5279
+ --outer: 2.0625rem;
5280
+ --inner: .75rem;
5281
+ --option: 1.25rem;
5282
+ block-size: calc(2 * var(--outer) + var(--option));
5283
+ inline-size: calc(2 * var(--outer) + var(--option));
5284
+ display: block;
5285
+ position: relative;
5218
5286
  }
5219
5287
 
5220
- .tag-ueb2Qr {
5221
- background: var(--ox0-color-canvas);
5222
- border: 1px solid var(--ox0-color-border);
5223
- border-radius: var(--ox0-radius-full);
5224
- color: var(--ox0-color-foreground);
5225
- cursor: default;
5226
- font-family: var(--ox0-font-sans);
5227
- font-size: var(--ox0-font-size-sm);
5228
- font-weight: var(--ox0-font-weight-medium);
5288
+ .option-by6x34 {
5289
+ block-size: var(--option);
5290
+ cursor: pointer;
5291
+ inline-size: var(--option);
5292
+ inset: calc(50% - var(--option) / 2) auto auto calc(50% - var(--option) / 2);
5293
+ transform: rotate(var(--angle)) translateY(calc(-1 * var(--distance)))
5294
+ rotate(calc(-1 * var(--angle)));
5295
+ justify-content: center;
5229
5296
  align-items: center;
5230
- gap: var(--ox0-space-xs);
5231
- min-block-size: 28px;
5232
- padding-block: .3125rem;
5233
- padding-inline: var(--ox0-space-sm);
5234
- transition: background var(--ox0-duration-fast) var(--ox0-ease-crisp),
5235
- border-color var(--ox0-duration-fast) var(--ox0-ease-crisp),
5236
- color var(--ox0-duration-fast) var(--ox0-ease-crisp);
5237
- user-select: none;
5238
- white-space: nowrap;
5239
- line-height: 1;
5240
5297
  display: inline-flex;
5298
+ position: absolute;
5241
5299
  }
5242
5300
 
5243
- button.tag-ueb2Qr {
5244
- cursor: pointer;
5301
+ .outer-KxKm9P {
5302
+ --distance: var(--outer);
5245
5303
  }
5246
5304
 
5247
- button.tag-ueb2Qr:hover:not(.disabled-BMkUWI) {
5305
+ .inner-Jj9IeX {
5306
+ --distance: var(--inner);
5307
+ }
5308
+
5309
+ .root-vXdGid:disabled .option-by6x34 {
5310
+ cursor: not-allowed;
5311
+ opacity: .5;
5312
+ }
5313
+
5314
+ .input-BK15_k {
5315
+ clip-path: inset(50%);
5316
+ white-space: nowrap;
5317
+ block-size: 1px;
5318
+ inline-size: 1px;
5319
+ position: absolute;
5320
+ overflow: hidden;
5321
+ }
5322
+
5323
+ .swatch-Zh4goS {
5324
+ background: var(--tag-hue);
5325
+ border-radius: var(--ox0-radius-full);
5326
+ box-sizing: border-box;
5327
+ block-size: 1rem;
5328
+ inline-size: 1rem;
5329
+ transition: box-shadow var(--ox0-duration-fast) var(--ox0-ease-crisp);
5330
+ display: block;
5331
+ }
5332
+
5333
+ .swatch-Zh4goS:not([data-color]), .swatch-Zh4goS[data-color="gray"] {
5248
5334
  background: var(--ox0-color-surface);
5249
- border-color: var(--ox0-color-border-strong);
5335
+ border: 1px solid var(--ox0-color-border-strong);
5250
5336
  }
5251
5337
 
5252
- button.tag-ueb2Qr:focus-visible {
5338
+ .option-by6x34:hover .swatch-Zh4goS {
5339
+ box-shadow: 0 0 0 2px var(--ox0-color-surface-raised),
5340
+ 0 0 0 3px var(--ox0-color-border-strong);
5341
+ }
5342
+
5343
+ .input-BK15_k:checked + .swatch-Zh4goS {
5344
+ box-shadow: 0 0 0 2px var(--ox0-color-surface-raised),
5345
+ 0 0 0 3.5px var(--tag-hue);
5346
+ }
5347
+
5348
+ .input-BK15_k:focus-visible + .swatch-Zh4goS {
5253
5349
  outline: 2px solid var(--ox0-color-accent);
5254
- outline-offset: 2px;
5350
+ outline-offset: 3.5px;
5255
5351
  }
5256
5352
 
5257
- .tag-ueb2Qr.selected-a1JhC8 {
5258
- background: var(--ox0-color-accent-subtle);
5259
- border-color: var(--ox0-color-accent);
5260
- color: var(--ox0-color-accent-text);
5353
+ .button-SdPHAX {
5354
+ border-radius: var(--ox0-radius-full);
5355
+ cursor: pointer;
5356
+ background: none;
5357
+ border: none;
5358
+ justify-content: center;
5359
+ align-items: center;
5360
+ padding: 3px;
5361
+ display: inline-flex;
5261
5362
  }
5262
5363
 
5263
- button.tag-ueb2Qr.selected-a1JhC8:hover:not(.disabled-BMkUWI) {
5264
- background: var(--ox0-color-accent-subtle);
5265
- border-color: var(--ox0-color-accent);
5266
- opacity: .85;
5364
+ .button-SdPHAX:hover .swatch-Zh4goS {
5365
+ box-shadow: 0 0 0 2px var(--ox0-color-border-strong);
5267
5366
  }
5268
5367
 
5269
- .tag-ueb2Qr.disabled-BMkUWI {
5368
+ .button-SdPHAX:focus-visible {
5369
+ outline: 2px solid var(--ox0-color-accent);
5370
+ outline-offset: 1px;
5371
+ }
5372
+
5373
+ .button-SdPHAX:disabled {
5270
5374
  cursor: not-allowed;
5271
5375
  opacity: .5;
5272
5376
  }
5273
5377
 
5274
- button.tag-ueb2Qr.disabled-BMkUWI {
5275
- cursor: not-allowed;
5378
+ .popover-kdBixK {
5379
+ border-radius: var(--ox0-radius-full);
5380
+ padding: var(--ox0-space-sm);
5381
+ }
5382
+ `,
5383
+ ""
5384
+ ]);
5385
+ ___CSS_LOADER_EXPORT___.locals = {
5386
+ root: "root-vXdGid",
5387
+ legend: "legend-Lx1ra6",
5388
+ description: "description-jmdqVk",
5389
+ error: "error-WEX6CX",
5390
+ wheel: "wheel-VcNGRy",
5391
+ option: "option-by6x34",
5392
+ outer: "outer-KxKm9P",
5393
+ inner: "inner-Jj9IeX",
5394
+ input: "input-BK15_k",
5395
+ swatch: "swatch-Zh4goS",
5396
+ button: "button-SdPHAX",
5397
+ popover: "popover-kdBixK"
5398
+ };
5399
+ const __rspack_default_export = ___CSS_LOADER_EXPORT___;
5400
+ __webpack_require__.d(__webpack_exports__, {}, {
5401
+ A: __rspack_default_export
5402
+ });
5403
+ },
5404
+ "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/tag-color.module.css" (module, __webpack_exports__, __webpack_require__) {
5405
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
5406
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1);
5407
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
5408
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0);
5409
+ var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default()(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default());
5410
+ ___CSS_LOADER_EXPORT___.push([
5411
+ module.id,
5412
+ `.hue-FwOzAX {
5413
+ --tag-hue: var(--ox0-color-border-strong);
5276
5414
  }
5277
5415
 
5278
- div.tag-ueb2Qr:focus-visible {
5279
- outline: 2px solid var(--ox0-color-accent);
5280
- outline-offset: 2px;
5416
+ .hue-FwOzAX[data-color="silver"] {
5417
+ --tag-hue: color-mix(in oklab, var(--ox0-color-foreground) 30%, var(--ox0-color-surface));
5281
5418
  }
5282
5419
 
5283
- div.tag-ueb2Qr[data-selectable]:hover {
5284
- background: var(--ox0-color-surface);
5285
- border-color: var(--ox0-color-border-strong);
5286
- cursor: pointer;
5420
+ .hue-FwOzAX[data-color="ink"] {
5421
+ --tag-hue: var(--ox0-color-foreground);
5287
5422
  }
5288
5423
 
5289
- div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
5290
- background: var(--ox0-color-accent-subtle);
5291
- border-color: var(--ox0-color-accent);
5292
- opacity: .85;
5424
+ .hue-FwOzAX[data-color="red"] {
5425
+ --tag-hue: var(--ox0-color-danger);
5293
5426
  }
5294
5427
 
5295
- .tagCell-Gr5mS6 {
5296
- align-items: center;
5297
- gap: var(--ox0-space-xs);
5298
- display: flex;
5428
+ .hue-FwOzAX[data-color="orange"] {
5429
+ --tag-hue: var(--ox0-viz-7);
5299
5430
  }
5300
5431
 
5301
- .dismiss-RvMvmi {
5302
- border-radius: var(--ox0-radius-sm);
5303
- color: inherit;
5304
- cursor: pointer;
5305
- opacity: .6;
5306
- background: none;
5307
- border: none;
5432
+ .hue-FwOzAX[data-color="yellow"] {
5433
+ --tag-hue: var(--ox0-viz-14);
5434
+ }
5435
+
5436
+ .hue-FwOzAX[data-color="green"] {
5437
+ --tag-hue: var(--ox0-viz-9);
5438
+ }
5439
+
5440
+ .hue-FwOzAX[data-color="teal"] {
5441
+ --tag-hue: var(--ox0-viz-11);
5442
+ }
5443
+
5444
+ .hue-FwOzAX[data-color="blue"] {
5445
+ --tag-hue: var(--ox0-viz-1);
5446
+ }
5447
+
5448
+ .hue-FwOzAX[data-color="purple"] {
5449
+ --tag-hue: var(--ox0-viz-5);
5450
+ }
5451
+
5452
+ .hue-FwOzAX[data-color="pink"] {
5453
+ --tag-hue: var(--ox0-viz-4);
5454
+ }
5455
+
5456
+ .dot-JSaYXu {
5457
+ background: var(--tag-hue);
5458
+ border-radius: var(--ox0-radius-full);
5308
5459
  flex-shrink: 0;
5309
- justify-content: center;
5310
- align-items: center;
5311
- width: 1em;
5312
- height: 1em;
5313
- padding: 0;
5314
- font-size: .75rem;
5315
- line-height: 1;
5316
- display: inline-flex;
5460
+ block-size: .5rem;
5461
+ inline-size: .5rem;
5462
+ display: inline-block;
5317
5463
  }
5318
5464
 
5319
- .dismiss-RvMvmi:hover {
5320
- opacity: 1;
5465
+ .dot-JSaYXu[data-plain] {
5466
+ visibility: hidden;
5321
5467
  }
5322
5468
  `,
5323
5469
  ""
5324
5470
  ]);
5325
5471
  ___CSS_LOADER_EXPORT___.locals = {
5326
- root: "root-czq2dC",
5327
- description: "description-FYzKc1",
5328
- error: "error-Ki_ghh",
5329
- tags: "tags-zkvYh0",
5330
- tag: "tag-ueb2Qr",
5331
- disabled: "disabled-BMkUWI",
5332
- selected: "selected-a1JhC8",
5333
- tagCell: "tagCell-Gr5mS6",
5334
- dismiss: "dismiss-RvMvmi"
5472
+ hue: "hue-FwOzAX",
5473
+ dot: "dot-JSaYXu"
5335
5474
  };
5336
5475
  const __rspack_default_export = ___CSS_LOADER_EXPORT___;
5337
5476
  __webpack_require__.d(__webpack_exports__, {}, {
5338
5477
  A: __rspack_default_export
5339
5478
  });
5340
5479
  },
5341
- "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/text-field.module.css" (module, __webpack_exports__, __webpack_require__) {
5480
+ "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/tag-field.module.css" (module, __webpack_exports__, __webpack_require__) {
5342
5481
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
5343
5482
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1);
5344
5483
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
@@ -5346,154 +5485,95 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
5346
5485
  var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default()(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default());
5347
5486
  ___CSS_LOADER_EXPORT___.push([
5348
5487
  module.id,
5349
- `.root-EDj_sz {
5350
- color: var(--ox0-color-foreground);
5351
- min-inline-size: 0;
5352
- font-size: var(--ox0-font-size-md);
5488
+ `.root-c1aCCY {
5353
5489
  align-content: start;
5354
5490
  gap: var(--ox0-space-xs);
5355
5491
  grid-template-columns: minmax(0, 1fr);
5492
+ min-inline-size: 0;
5356
5493
  display: grid;
5357
5494
  }
5358
5495
 
5359
- .control-Vog3id {
5496
+ .field-ZKbF3O {
5360
5497
  background: var(--ox0-color-surface);
5361
5498
  border: 1px solid var(--ox0-color-border);
5362
5499
  border-radius: var(--ox0-radius-sm);
5500
+ box-sizing: border-box;
5501
+ cursor: text;
5363
5502
  align-items: center;
5364
5503
  gap: var(--ox0-space-xs);
5365
- box-sizing: border-box;
5366
- height: var(--ox0-control-height-md);
5367
- padding-inline: var(--ox0-space-md);
5504
+ min-block-size: var(--ox0-control-height-md);
5505
+ padding: 5px var(--ox0-space-sm) 5px 5px;
5368
5506
  transition: border-color var(--ox0-duration-fast) var(--ox0-ease-crisp),
5369
5507
  box-shadow var(--ox0-duration-fast) var(--ox0-ease-crisp);
5508
+ flex-wrap: wrap;
5370
5509
  display: flex;
5371
5510
  }
5372
5511
 
5373
- .control-Vog3id:hover {
5512
+ .field-ZKbF3O:hover:not(.disabled-l8m43R) {
5374
5513
  border-color: var(--ox0-color-border-strong);
5375
5514
  }
5376
5515
 
5377
- .control-Vog3id.focusVisible-r4K4nT {
5516
+ .field-ZKbF3O.focusVisible-L1boj8 {
5378
5517
  border-color: var(--ox0-color-accent);
5379
5518
  box-shadow: 0 0 0 3px var(--ox0-color-focus-ring);
5380
5519
  }
5381
5520
 
5382
- .control-Vog3id.invalid-M29JY3 {
5521
+ .field-ZKbF3O.invalid-tNDbHz {
5383
5522
  border-color: var(--ox0-color-danger);
5384
5523
  }
5385
5524
 
5386
- .control-Vog3id.invalid-M29JY3.focusVisible-r4K4nT {
5525
+ .field-ZKbF3O.invalid-tNDbHz.focusVisible-L1boj8 {
5387
5526
  box-shadow: 0 0 0 3px var(--ox0-color-danger-subtle);
5388
5527
  }
5389
5528
 
5390
- .control-Vog3id[data-variant="flat"] {
5391
- border: none;
5392
- border-bottom: 1px solid var(--ox0-color-border);
5393
- padding-inline: var(--ox0-space-xs);
5394
- background: none;
5395
- border-radius: 0;
5396
- }
5397
-
5398
- .control-Vog3id[data-variant="flat"]:hover {
5399
- border-bottom-color: var(--ox0-color-border-strong);
5529
+ .field-ZKbF3O.disabled-l8m43R {
5530
+ background: var(--ox0-color-canvas);
5531
+ cursor: not-allowed;
5400
5532
  }
5401
5533
 
5402
- .control-Vog3id[data-variant="flat"].focusVisible-r4K4nT {
5403
- border-bottom-color: var(--ox0-color-accent);
5404
- box-shadow: none;
5534
+ .inputRow-fGPiEt, .inputCell-Vog8N7 {
5535
+ flex: 6rem;
5536
+ min-inline-size: 6rem;
5537
+ display: flex;
5405
5538
  }
5406
5539
 
5407
- .icon-SJ2fI8 {
5408
- color: var(--ox0-color-muted);
5409
- flex: none;
5410
- display: inline-flex;
5411
- }
5412
-
5413
- .input-pJgRNM {
5414
- color: inherit;
5540
+ .input-VkzZxl {
5541
+ color: var(--ox0-color-foreground);
5415
5542
  font: inherit;
5543
+ font-size: var(--ox0-font-size-md);
5544
+ min-block-size: 24px;
5545
+ min-inline-size: 0;
5546
+ padding: 0 0 0 calc(var(--ox0-space-md) - 5px);
5416
5547
  background: none;
5417
5548
  border: none;
5418
- outline: none;
5419
- flex: auto;
5420
- min-inline-size: 0;
5421
- padding-block: .625rem;
5422
- }
5423
-
5424
- .control-Vog3id .input-pJgRNM {
5425
- padding-block: 0;
5426
- }
5427
-
5428
- .textarea-f9gopi {
5429
- background: var(--ox0-color-surface);
5430
- border: 1px solid var(--ox0-color-border);
5431
- border-radius: var(--ox0-radius-sm);
5432
- box-sizing: border-box;
5433
- padding-inline: var(--ox0-space-md);
5434
- transition: border-color var(--ox0-duration-fast) var(--ox0-ease-crisp),
5435
- box-shadow var(--ox0-duration-fast) var(--ox0-ease-crisp);
5436
- }
5437
-
5438
- .textarea-f9gopi:hover {
5439
- border-color: var(--ox0-color-border-strong);
5440
- }
5441
-
5442
- .textarea-f9gopi:focus-visible {
5443
- border-color: var(--ox0-color-accent);
5444
- box-shadow: 0 0 0 3px var(--ox0-color-focus-ring);
5445
- }
5446
-
5447
- .textarea-f9gopi.invalid-M29JY3 {
5448
- border-color: var(--ox0-color-danger);
5449
- }
5450
-
5451
- .textarea-f9gopi.invalid-M29JY3:focus-visible {
5452
- box-shadow: 0 0 0 3px var(--ox0-color-danger-subtle);
5453
- }
5454
-
5455
- .textarea-f9gopi:disabled {
5456
- background: var(--ox0-color-canvas);
5549
+ flex: 1;
5457
5550
  }
5458
5551
 
5459
- .input-pJgRNM::placeholder {
5460
- color: var(--ox0-color-disabled);
5552
+ .input-VkzZxl:focus {
5553
+ outline: none;
5461
5554
  }
5462
5555
 
5463
- .input-pJgRNM:disabled {
5556
+ .input-VkzZxl:disabled {
5464
5557
  color: var(--ox0-color-disabled);
5465
5558
  cursor: not-allowed;
5466
5559
  }
5467
5560
 
5468
- .control-Vog3id:has(.input-pJgRNM:disabled) {
5469
- background: var(--ox0-color-canvas);
5470
- cursor: not-allowed;
5561
+ .field-ZKbF3O > [data-tag] ~ .inputRow-fGPiEt .input-VkzZxl {
5562
+ padding-inline-start: 0;
5471
5563
  }
5472
5564
 
5473
- .clear-eMD0M3 {
5474
- block-size: 24px;
5475
- color: var(--ox0-color-muted);
5476
- cursor: pointer;
5477
- background: none;
5478
- border: none;
5479
- border-radius: 999px;
5480
- flex: none;
5481
- justify-content: center;
5565
+ .option-zWvmlk {
5482
5566
  align-items: center;
5483
- inline-size: 24px;
5567
+ gap: var(--ox0-space-sm);
5484
5568
  display: inline-flex;
5485
5569
  }
5486
5570
 
5487
- .clear-eMD0M3:hover {
5488
- color: var(--ox0-color-foreground);
5489
- }
5490
-
5491
- .description-U5SfzR {
5571
+ .description-POUogy {
5492
5572
  color: var(--ox0-color-muted);
5493
5573
  font-size: var(--ox0-font-size-sm);
5494
5574
  }
5495
5575
 
5496
- .error-PaIi5f {
5576
+ .error-QpDuj1 {
5497
5577
  color: var(--ox0-color-danger-text);
5498
5578
  font-size: var(--ox0-font-size-sm);
5499
5579
  }
@@ -5501,23 +5581,24 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
5501
5581
  ""
5502
5582
  ]);
5503
5583
  ___CSS_LOADER_EXPORT___.locals = {
5504
- root: "root-EDj_sz",
5505
- control: "control-Vog3id",
5506
- focusVisible: "focusVisible-r4K4nT",
5507
- invalid: "invalid-M29JY3",
5508
- icon: "icon-SJ2fI8",
5509
- input: "input-pJgRNM",
5510
- textarea: "textarea-f9gopi",
5511
- clear: "clear-eMD0M3",
5512
- description: "description-U5SfzR",
5513
- error: "error-PaIi5f"
5584
+ root: "root-c1aCCY",
5585
+ field: "field-ZKbF3O",
5586
+ disabled: "disabled-l8m43R",
5587
+ focusVisible: "focusVisible-L1boj8",
5588
+ invalid: "invalid-tNDbHz",
5589
+ inputRow: "inputRow-fGPiEt",
5590
+ inputCell: "inputCell-Vog8N7",
5591
+ input: "input-VkzZxl",
5592
+ option: "option-zWvmlk",
5593
+ description: "description-POUogy",
5594
+ error: "error-QpDuj1"
5514
5595
  };
5515
5596
  const __rspack_default_export = ___CSS_LOADER_EXPORT___;
5516
5597
  __webpack_require__.d(__webpack_exports__, {}, {
5517
5598
  A: __rspack_default_export
5518
5599
  });
5519
5600
  },
5520
- "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/text.module.css" (module, __webpack_exports__, __webpack_require__) {
5601
+ "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/tag-group.module.css" (module, __webpack_exports__, __webpack_require__) {
5521
5602
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
5522
5603
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1);
5523
5604
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
@@ -5525,170 +5606,186 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
5525
5606
  var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default()(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default());
5526
5607
  ___CSS_LOADER_EXPORT___.push([
5527
5608
  module.id,
5528
- `.text-ojiRZM {
5529
- margin: 0;
5609
+ `.root-czq2dC {
5610
+ color: var(--ox0-color-foreground);
5611
+ min-inline-size: 0;
5612
+ font-size: var(--ox0-font-size-md);
5613
+ align-content: start;
5614
+ gap: var(--ox0-space-xs);
5615
+ grid-template-columns: minmax(0, 1fr);
5616
+ display: grid;
5530
5617
  }
5531
5618
 
5532
- .display-FqY2br {
5533
- font-family: var(--ox0-font-heading);
5534
- font-size: var(--ox0-text-display-size, var(--ox0-font-size-4xl));
5535
- font-weight: var(--ox0-text-display-weight, var(--ox0-font-weight-heading));
5536
- line-height: var(--ox0-text-display-leading, var(--ox0-line-height-tight));
5537
- letter-spacing: var(--ox0-text-display-tracking, var(--ox0-tracking-heading));
5619
+ .description-FYzKc1 {
5620
+ color: var(--ox0-color-muted);
5621
+ font-size: var(--ox0-font-size-sm);
5538
5622
  }
5539
5623
 
5540
- .heading-lg-sGfoZF {
5541
- font-family: var(--ox0-font-subheading, var(--ox0-font-heading));
5542
- font-size: var(--ox0-text-heading-lg-size, var(--ox0-font-size-2xl));
5543
- font-weight: var(--ox0-text-heading-lg-weight, var(--ox0-font-weight-subheading));
5544
- line-height: var(--ox0-text-heading-lg-leading, var(--ox0-line-height-dense));
5545
- letter-spacing: var(--ox0-text-heading-lg-tracking, var(--ox0-tracking-subheading));
5624
+ .error-Ki_ghh {
5625
+ color: var(--ox0-color-danger-text);
5626
+ font-size: var(--ox0-font-size-sm);
5546
5627
  }
5547
5628
 
5548
- .heading-udDMTP {
5549
- font-size: var(--ox0-text-heading-size, var(--ox0-font-size-lg));
5550
- font-weight: var(--ox0-text-heading-weight, var(--ox0-font-weight-semibold));
5551
- line-height: var(--ox0-text-heading-leading, var(--ox0-line-height-snug));
5552
- letter-spacing: var(--ox0-text-heading-tracking, var(--ox0-tracking-normal));
5629
+ .tags-zkvYh0 {
5630
+ gap: var(--ox0-space-xs);
5631
+ flex-wrap: wrap;
5632
+ display: flex;
5553
5633
  }
5554
5634
 
5555
- .heading-sm-pEPDma {
5556
- font-size: var(--ox0-text-heading-sm-size, var(--ox0-font-size-md));
5557
- font-weight: var(--ox0-text-heading-sm-weight, var(--ox0-font-weight-semibold));
5558
- line-height: var(--ox0-text-heading-sm-leading, var(--ox0-line-height-dense));
5559
- letter-spacing: var(--ox0-text-heading-sm-tracking, var(--ox0-tracking-normal));
5635
+ .tag-ueb2Qr {
5636
+ background: var(--ox0-color-canvas);
5637
+ border: 1px solid var(--ox0-color-border);
5638
+ border-radius: var(--ox0-radius-full);
5639
+ color: var(--ox0-color-foreground);
5640
+ cursor: default;
5641
+ font-family: var(--ox0-font-sans);
5642
+ font-size: var(--ox0-font-size-sm);
5643
+ font-weight: var(--ox0-font-weight-medium);
5644
+ align-items: center;
5645
+ gap: var(--ox0-space-xs);
5646
+ min-block-size: 24px;
5647
+ padding-block: 0;
5648
+ padding-inline: var(--ox0-space-sm);
5649
+ transition: background var(--ox0-duration-fast) var(--ox0-ease-crisp),
5650
+ border-color var(--ox0-duration-fast) var(--ox0-ease-crisp),
5651
+ color var(--ox0-duration-fast) var(--ox0-ease-crisp);
5652
+ user-select: none;
5653
+ white-space: nowrap;
5654
+ line-height: 1;
5655
+ display: inline-flex;
5560
5656
  }
5561
5657
 
5562
- .body-YOwBr4 {
5563
- font-size: var(--ox0-text-body-size, var(--ox0-font-size-md));
5564
- font-weight: var(--ox0-text-body-weight, var(--ox0-font-weight-normal));
5565
- line-height: var(--ox0-text-body-leading, var(--ox0-line-height-normal));
5566
- letter-spacing: var(--ox0-text-body-tracking, var(--ox0-tracking-normal));
5658
+ button.tag-ueb2Qr {
5659
+ cursor: pointer;
5567
5660
  }
5568
5661
 
5569
- .body-sm-IYrNKl {
5570
- font-size: var(--ox0-text-body-sm-size, var(--ox0-font-size-sm));
5571
- font-weight: var(--ox0-text-body-sm-weight, var(--ox0-font-weight-normal));
5572
- line-height: var(--ox0-text-body-sm-leading, var(--ox0-line-height-normal));
5573
- letter-spacing: var(--ox0-text-body-sm-tracking, var(--ox0-tracking-small));
5662
+ button.tag-ueb2Qr:hover:not(.disabled-BMkUWI) {
5663
+ background: var(--ox0-color-surface);
5664
+ border-color: var(--ox0-color-border-strong);
5574
5665
  }
5575
5666
 
5576
- .label-gX6o1x {
5577
- font-size: var(--ox0-text-label-size, var(--ox0-font-size-xs));
5578
- font-weight: var(--ox0-text-label-weight, var(--ox0-font-weight-medium));
5579
- line-height: var(--ox0-text-label-leading, var(--ox0-line-height-dense));
5580
- letter-spacing: var(--ox0-text-label-tracking, var(--ox0-tracking-wider));
5581
- text-transform: var(--ox0-text-label-transform, uppercase);
5667
+ button.tag-ueb2Qr:focus-visible {
5668
+ outline: 2px solid var(--ox0-color-accent);
5669
+ outline-offset: 2px;
5582
5670
  }
5583
5671
 
5584
- .caption-F0inTg {
5585
- font-size: var(--ox0-text-caption-size, var(--ox0-font-size-caption));
5586
- font-weight: var(--ox0-text-caption-weight, var(--ox0-font-weight-normal));
5587
- line-height: var(--ox0-text-caption-leading, var(--ox0-line-height-normal));
5588
- letter-spacing: var(--ox0-text-caption-tracking, var(--ox0-tracking-small));
5672
+ .tag-ueb2Qr[data-color]:not([data-color="gray"]) {
5673
+ background: color-mix(in oklab, var(--tag-hue) 14%, var(--ox0-color-surface));
5674
+ border-color: color-mix(in oklab, var(--tag-hue) 40%, var(--ox0-color-surface));
5675
+ color: color-mix(in oklab, var(--tag-hue) 70%, var(--ox0-color-foreground));
5589
5676
  }
5590
5677
 
5591
- .numeric-lD47Jl {
5592
- font-family: var(--ox0-font-mono);
5593
- font-size: var(--ox0-text-numeric-size, var(--ox0-font-size-md));
5594
- font-weight: var(--ox0-text-numeric-weight, var(--ox0-font-weight-normal));
5595
- font-variant-numeric: tabular-nums;
5596
- line-height: var(--ox0-text-numeric-leading, var(--ox0-line-height-dense));
5597
- letter-spacing: var(--ox0-text-numeric-tracking, var(--ox0-tracking-normal));
5678
+ button.tag-ueb2Qr[data-color]:not([data-color="gray"]):hover:not(.disabled-BMkUWI), div.tag-ueb2Qr[data-color]:not([data-color="gray"])[data-selectable]:hover {
5679
+ background: color-mix(in oklab, var(--tag-hue) 20%, var(--ox0-color-surface));
5680
+ border-color: color-mix(in oklab, var(--tag-hue) 60%, var(--ox0-color-surface));
5598
5681
  }
5599
5682
 
5600
- .code-chvwDx {
5601
- font-family: var(--ox0-font-mono);
5602
- font-size: var(--ox0-text-code-size, var(--ox0-font-size-sm));
5603
- font-weight: var(--ox0-text-code-weight, var(--ox0-font-weight-normal));
5604
- line-height: var(--ox0-text-code-leading, var(--ox0-line-height-normal));
5605
- letter-spacing: var(--ox0-text-code-tracking, var(--ox0-tracking-normal));
5683
+ .tag-ueb2Qr[data-color="silver"][data-color] {
5684
+ background: var(--ox0-color-surface-sunken);
5685
+ border-color: var(--ox0-color-border-strong);
5686
+ color: var(--ox0-color-foreground);
5606
5687
  }
5607
5688
 
5608
- .foreground-dzHYHe {
5609
- color: var(--ox0-color-foreground);
5689
+ .tag-ueb2Qr[data-color="ink"][data-color] {
5690
+ background: var(--ox0-color-foreground);
5691
+ border-color: var(--ox0-color-foreground);
5692
+ color: var(--ox0-color-surface);
5610
5693
  }
5611
5694
 
5612
- .muted-zeNDqn {
5613
- color: var(--ox0-color-muted);
5695
+ button.tag-ueb2Qr[data-color="ink"][data-color]:hover:not(.disabled-BMkUWI), div.tag-ueb2Qr[data-color="ink"][data-color][data-selectable]:hover {
5696
+ background: color-mix(in oklab, var(--ox0-color-foreground) 85%, var(--ox0-color-surface));
5697
+ border-color: var(--ox0-color-foreground);
5614
5698
  }
5615
5699
 
5616
- .accent-ah7uAs {
5700
+ .tag-ueb2Qr.selected-a1JhC8, .tag-ueb2Qr.selected-a1JhC8[data-color]:not([data-color="gray"]) {
5701
+ background: var(--ox0-color-accent-subtle);
5702
+ border-color: var(--ox0-color-accent);
5617
5703
  color: var(--ox0-color-accent-text);
5618
5704
  }
5619
5705
 
5620
- .success-sVYlMj {
5621
- color: var(--ox0-color-success-text);
5706
+ button.tag-ueb2Qr.selected-a1JhC8:hover:not(.disabled-BMkUWI) {
5707
+ background: var(--ox0-color-accent-subtle);
5708
+ border-color: var(--ox0-color-accent);
5709
+ opacity: .85;
5622
5710
  }
5623
5711
 
5624
- .warning-na51J9 {
5625
- color: var(--ox0-color-warning-text);
5712
+ .tag-ueb2Qr.disabled-BMkUWI {
5713
+ cursor: not-allowed;
5714
+ opacity: .5;
5626
5715
  }
5627
5716
 
5628
- .danger-AufKYd {
5629
- color: var(--ox0-color-danger-text);
5717
+ button.tag-ueb2Qr.disabled-BMkUWI {
5718
+ cursor: not-allowed;
5630
5719
  }
5631
5720
 
5632
- .inherit-gJHLfJ {
5633
- color: inherit;
5721
+ div.tag-ueb2Qr:focus-visible {
5722
+ outline: 2px solid var(--ox0-color-accent);
5723
+ outline-offset: 2px;
5634
5724
  }
5635
5725
 
5636
- .truncate-qrGgXB {
5637
- text-overflow: ellipsis;
5638
- white-space: nowrap;
5639
- overflow: hidden;
5726
+ div.tag-ueb2Qr[data-selectable]:hover {
5727
+ background: var(--ox0-color-surface);
5728
+ border-color: var(--ox0-color-border-strong);
5729
+ cursor: pointer;
5640
5730
  }
5641
5731
 
5642
- .align-left-UPkxat {
5643
- text-align: left;
5732
+ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
5733
+ background: var(--ox0-color-accent-subtle);
5734
+ border-color: var(--ox0-color-accent);
5735
+ opacity: .85;
5644
5736
  }
5645
5737
 
5646
- .align-center-_fPJYn {
5647
- text-align: center;
5738
+ div.tag-ueb2Qr {
5739
+ padding-inline-end: 6px;
5648
5740
  }
5649
5741
 
5650
- .align-right-uScNpc {
5651
- text-align: right;
5742
+ .tagCell-Gr5mS6 {
5743
+ align-items: center;
5744
+ gap: 3px;
5745
+ display: flex;
5652
5746
  }
5653
- `,
5654
- ""
5655
- ]);
5656
- ___CSS_LOADER_EXPORT___.locals = {
5657
- text: "text-ojiRZM",
5658
- display: "display-FqY2br",
5659
- "heading-lg": "heading-lg-sGfoZF",
5660
- headingLg: "heading-lg-sGfoZF",
5661
- heading: "heading-udDMTP",
5662
- "heading-sm": "heading-sm-pEPDma",
5663
- headingSm: "heading-sm-pEPDma",
5664
- body: "body-YOwBr4",
5665
- "body-sm": "body-sm-IYrNKl",
5666
- bodySm: "body-sm-IYrNKl",
5667
- label: "label-gX6o1x",
5668
- caption: "caption-F0inTg",
5669
- numeric: "numeric-lD47Jl",
5670
- code: "code-chvwDx",
5671
- foreground: "foreground-dzHYHe",
5672
- muted: "muted-zeNDqn",
5673
- accent: "accent-ah7uAs",
5674
- success: "success-sVYlMj",
5675
- warning: "warning-na51J9",
5676
- danger: "danger-AufKYd",
5677
- inherit: "inherit-gJHLfJ",
5678
- truncate: "truncate-qrGgXB",
5679
- "align-left": "align-left-UPkxat",
5680
- alignLeft: "align-left-UPkxat",
5681
- "align-center": "align-center-_fPJYn",
5682
- alignCenter: "align-center-_fPJYn",
5683
- "align-right": "align-right-uScNpc",
5684
- alignRight: "align-right-uScNpc"
5747
+
5748
+ .dismiss-RvMvmi {
5749
+ border-radius: var(--ox0-radius-sm);
5750
+ color: inherit;
5751
+ cursor: pointer;
5752
+ opacity: .6;
5753
+ background: none;
5754
+ border: none;
5755
+ flex-shrink: 0;
5756
+ justify-content: center;
5757
+ align-items: center;
5758
+ width: 1em;
5759
+ height: 1em;
5760
+ padding: 0;
5761
+ font-size: .75rem;
5762
+ line-height: 1;
5763
+ display: inline-flex;
5764
+ }
5765
+
5766
+ .dismiss-RvMvmi:hover {
5767
+ opacity: 1;
5768
+ }
5769
+ `,
5770
+ ""
5771
+ ]);
5772
+ ___CSS_LOADER_EXPORT___.locals = {
5773
+ root: "root-czq2dC",
5774
+ description: "description-FYzKc1",
5775
+ error: "error-Ki_ghh",
5776
+ tags: "tags-zkvYh0",
5777
+ tag: "tag-ueb2Qr",
5778
+ disabled: "disabled-BMkUWI",
5779
+ selected: "selected-a1JhC8",
5780
+ tagCell: "tagCell-Gr5mS6",
5781
+ dismiss: "dismiss-RvMvmi"
5685
5782
  };
5686
5783
  const __rspack_default_export = ___CSS_LOADER_EXPORT___;
5687
5784
  __webpack_require__.d(__webpack_exports__, {}, {
5688
5785
  A: __rspack_default_export
5689
5786
  });
5690
5787
  },
5691
- "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/toast.module.css" (module, __webpack_exports__, __webpack_require__) {
5788
+ "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/text-field.module.css" (module, __webpack_exports__, __webpack_require__) {
5692
5789
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
5693
5790
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1);
5694
5791
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
@@ -5696,214 +5793,178 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
5696
5793
  var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default()(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default());
5697
5794
  ___CSS_LOADER_EXPORT___.push([
5698
5795
  module.id,
5699
- `@keyframes toast-in-X29Xf4 {
5700
- from {
5701
- opacity: 0;
5702
- transform: translateY(.5rem) scale(.96);
5703
- }
5796
+ `.root-EDj_sz {
5797
+ color: var(--ox0-color-foreground);
5798
+ min-inline-size: 0;
5799
+ font-size: var(--ox0-font-size-md);
5800
+ align-content: start;
5801
+ gap: var(--ox0-space-xs);
5802
+ grid-template-columns: minmax(0, 1fr);
5803
+ display: grid;
5804
+ }
5704
5805
 
5705
- to {
5706
- opacity: 1;
5707
- transform: translateY(0) scale(1);
5708
- }
5806
+ .control-Vog3id {
5807
+ background: var(--ox0-color-surface);
5808
+ border: 1px solid var(--ox0-color-border);
5809
+ border-radius: var(--ox0-radius-sm);
5810
+ align-items: center;
5811
+ gap: var(--ox0-space-xs);
5812
+ box-sizing: border-box;
5813
+ height: var(--ox0-control-height-md);
5814
+ padding-inline: var(--ox0-space-md);
5815
+ transition: border-color var(--ox0-duration-fast) var(--ox0-ease-crisp),
5816
+ box-shadow var(--ox0-duration-fast) var(--ox0-ease-crisp);
5817
+ display: flex;
5709
5818
  }
5710
5819
 
5711
- @keyframes toast-out-LqOm2R {
5712
- from {
5713
- opacity: 1;
5714
- transform: translateY(0) scale(1);
5715
- }
5820
+ .control-Vog3id:hover {
5821
+ border-color: var(--ox0-color-border-strong);
5822
+ }
5716
5823
 
5717
- to {
5718
- opacity: 0;
5719
- transform: translateY(.25rem) scale(.97);
5720
- }
5824
+ .control-Vog3id.focusVisible-r4K4nT {
5825
+ border-color: var(--ox0-color-accent);
5826
+ box-shadow: 0 0 0 3px var(--ox0-color-focus-ring);
5721
5827
  }
5722
5828
 
5723
- .region-usSlIk {
5724
- pointer-events: none;
5725
- width: calc(100vw - 3rem);
5726
- max-width: 24rem;
5727
- z-index: var(--ox0-z-toast);
5728
- flex-direction: column;
5729
- gap: .5rem;
5730
- display: flex;
5731
- position: fixed;
5732
- bottom: 1.5rem;
5733
- right: 1.5rem;
5829
+ .control-Vog3id.invalid-M29JY3 {
5830
+ border-color: var(--ox0-color-danger);
5734
5831
  }
5735
5832
 
5736
- .toastWrapper-sYOVI0 {
5737
- animation: toast-in-X29Xf4 var(--ox0-duration-normal) var(--ox0-ease-enter) both;
5833
+ .control-Vog3id.invalid-M29JY3.focusVisible-r4K4nT {
5834
+ box-shadow: 0 0 0 3px var(--ox0-color-danger-subtle);
5738
5835
  }
5739
5836
 
5740
- .toastWrapper-sYOVI0.exiting-RcV5Ab {
5741
- animation: toast-out-LqOm2R var(--ox0-duration-normal) var(--ox0-ease-exit) both;
5837
+ .control-Vog3id[data-variant="flat"] {
5838
+ border: none;
5839
+ border-bottom: 1px solid var(--ox0-color-border);
5840
+ padding-inline: var(--ox0-space-xs);
5841
+ background: none;
5842
+ border-radius: 0;
5742
5843
  }
5743
5844
 
5744
- .toast-IaPMrq {
5745
- background: var(--ox0-color-surface-raised);
5746
- border: 1px solid var(--ox0-color-border);
5747
- border-radius: var(--ox0-radius-md);
5748
- box-shadow: var(--ox0-shadow-toast);
5749
- pointer-events: auto;
5750
- border-left-width: 3px;
5751
- justify-content: space-between;
5752
- align-items: flex-start;
5753
- gap: .75rem;
5754
- padding: .75rem .75rem .75rem 1rem;
5755
- display: flex;
5845
+ .control-Vog3id[data-variant="flat"]:hover {
5846
+ border-bottom-color: var(--ox0-color-border-strong);
5756
5847
  }
5757
5848
 
5758
- .neutral-ud0XaK {
5759
- border-left-color: var(--ox0-color-border);
5849
+ .control-Vog3id[data-variant="flat"].focusVisible-r4K4nT {
5850
+ border-bottom-color: var(--ox0-color-accent);
5851
+ box-shadow: none;
5760
5852
  }
5761
5853
 
5762
- .info-qCsWQF {
5763
- border-left-color: var(--ox0-color-info);
5854
+ .icon-SJ2fI8 {
5855
+ color: var(--ox0-color-muted);
5856
+ flex: none;
5857
+ display: inline-flex;
5764
5858
  }
5765
5859
 
5766
- .success-BjAK6q {
5767
- border-left-color: var(--ox0-color-success);
5860
+ .input-pJgRNM {
5861
+ color: inherit;
5862
+ font: inherit;
5863
+ background: none;
5864
+ border: none;
5865
+ outline: none;
5866
+ flex: auto;
5867
+ min-inline-size: 0;
5868
+ padding-block: .625rem;
5768
5869
  }
5769
5870
 
5770
- .warning-OKigu2 {
5771
- border-left-color: var(--ox0-color-warning);
5871
+ .control-Vog3id .input-pJgRNM {
5872
+ padding-block: 0;
5772
5873
  }
5773
5874
 
5774
- .danger-LklBtF {
5775
- border-left-color: var(--ox0-color-danger);
5875
+ .textarea-f9gopi {
5876
+ background: var(--ox0-color-surface);
5877
+ border: 1px solid var(--ox0-color-border);
5878
+ border-radius: var(--ox0-radius-sm);
5879
+ box-sizing: border-box;
5880
+ padding-inline: var(--ox0-space-md);
5881
+ transition: border-color var(--ox0-duration-fast) var(--ox0-ease-crisp),
5882
+ box-shadow var(--ox0-duration-fast) var(--ox0-ease-crisp);
5776
5883
  }
5777
5884
 
5778
- .body-tmPCh0 {
5779
- flex-direction: column;
5780
- flex: 1;
5781
- gap: .125rem;
5782
- min-width: 0;
5783
- display: flex;
5885
+ .textarea-f9gopi:hover {
5886
+ border-color: var(--ox0-color-border-strong);
5784
5887
  }
5785
5888
 
5786
- .message-kZji67 {
5787
- color: var(--ox0-color-foreground);
5788
- font-size: var(--ox0-font-size-sm);
5789
- font-weight: var(--ox0-font-weight-medium);
5790
- margin: 0;
5791
- line-height: 1.4;
5889
+ .textarea-f9gopi:focus-visible {
5890
+ border-color: var(--ox0-color-accent);
5891
+ box-shadow: 0 0 0 3px var(--ox0-color-focus-ring);
5792
5892
  }
5793
5893
 
5794
- .description-uROdxr {
5795
- color: var(--ox0-color-muted);
5796
- font-size: var(--ox0-font-size-sm);
5797
- margin: 0;
5798
- line-height: 1.4;
5894
+ .textarea-f9gopi.invalid-M29JY3 {
5895
+ border-color: var(--ox0-color-danger);
5799
5896
  }
5800
5897
 
5801
- .actions-NAScjf {
5802
- flex-shrink: 0;
5803
- align-items: center;
5804
- gap: .25rem;
5805
- display: flex;
5898
+ .textarea-f9gopi.invalid-M29JY3:focus-visible {
5899
+ box-shadow: 0 0 0 3px var(--ox0-color-danger-subtle);
5806
5900
  }
5807
5901
 
5808
- .actionButton-ju2Jqp {
5809
- border: 1px solid var(--ox0-color-border);
5810
- border-radius: var(--ox0-radius-sm);
5811
- color: var(--ox0-color-foreground);
5812
- cursor: pointer;
5813
- font-family: var(--ox0-font-sans);
5814
- font-size: var(--ox0-font-size-xs);
5815
- font-weight: var(--ox0-font-weight-medium);
5816
- white-space: nowrap;
5817
- background: none;
5818
- padding: .25rem .5rem;
5819
- line-height: 1;
5902
+ .textarea-f9gopi:disabled {
5903
+ background: var(--ox0-color-canvas);
5820
5904
  }
5821
5905
 
5822
- .actionButton-ju2Jqp:hover {
5823
- background: var(--ox0-color-surface);
5906
+ .input-pJgRNM::placeholder {
5907
+ color: var(--ox0-color-disabled);
5824
5908
  }
5825
5909
 
5826
- .closeButton-Zka7v8 {
5827
- border-radius: var(--ox0-radius-xs);
5910
+ .input-pJgRNM:disabled {
5911
+ color: var(--ox0-color-disabled);
5912
+ cursor: not-allowed;
5913
+ }
5914
+
5915
+ .control-Vog3id:has(.input-pJgRNM:disabled) {
5916
+ background: var(--ox0-color-canvas);
5917
+ cursor: not-allowed;
5918
+ }
5919
+
5920
+ .clear-eMD0M3 {
5921
+ block-size: 24px;
5828
5922
  color: var(--ox0-color-muted);
5829
5923
  cursor: pointer;
5830
5924
  background: none;
5831
5925
  border: none;
5832
- flex-shrink: 0;
5926
+ border-radius: 999px;
5927
+ flex: none;
5833
5928
  justify-content: center;
5834
5929
  align-items: center;
5835
- width: 1.5rem;
5836
- height: 1.5rem;
5837
- padding: 0;
5838
- display: flex;
5930
+ inline-size: 24px;
5931
+ display: inline-flex;
5839
5932
  }
5840
5933
 
5841
- .closeButton-Zka7v8:hover {
5842
- background: var(--ox0-color-surface);
5934
+ .clear-eMD0M3:hover {
5843
5935
  color: var(--ox0-color-foreground);
5844
5936
  }
5845
- `,
5846
- ""
5847
- ]);
5848
- ___CSS_LOADER_EXPORT___.locals = {
5849
- region: "region-usSlIk",
5850
- toastWrapper: "toastWrapper-sYOVI0",
5851
- "toast-in": "toast-in-X29Xf4",
5852
- toastIn: "toast-in-X29Xf4",
5853
- exiting: "exiting-RcV5Ab",
5854
- "toast-out": "toast-out-LqOm2R",
5855
- toastOut: "toast-out-LqOm2R",
5856
- toast: "toast-IaPMrq",
5857
- neutral: "neutral-ud0XaK",
5858
- info: "info-qCsWQF",
5859
- success: "success-BjAK6q",
5860
- warning: "warning-OKigu2",
5861
- danger: "danger-LklBtF",
5862
- body: "body-tmPCh0",
5863
- message: "message-kZji67",
5864
- description: "description-uROdxr",
5865
- actions: "actions-NAScjf",
5866
- actionButton: "actionButton-ju2Jqp",
5867
- closeButton: "closeButton-Zka7v8"
5868
- };
5869
- const __rspack_default_export = ___CSS_LOADER_EXPORT___;
5870
- __webpack_require__.d(__webpack_exports__, {}, {
5871
- A: __rspack_default_export
5872
- });
5873
- },
5874
- "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/tooltip.module.css" (module, __webpack_exports__, __webpack_require__) {
5875
- var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
5876
- var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1);
5877
- var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
5878
- var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0);
5879
- var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default()(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default());
5880
- ___CSS_LOADER_EXPORT___.push([
5881
- module.id,
5882
- `.tooltip-NkB3V8 {
5883
- background: var(--ox0-color-foreground);
5884
- border-radius: var(--ox0-radius-xs);
5885
- color: var(--ox0-color-canvas);
5886
- font-family: var(--ox0-font-sans);
5887
- font-size: var(--ox0-font-size-xs);
5888
- pointer-events: none;
5889
- max-width: 20rem;
5890
- z-index: var(--ox0-z-tooltip);
5891
- forced-color-adjust: none;
5892
- padding: .25rem .5rem;
5893
- line-height: 1.5;
5937
+
5938
+ .description-U5SfzR {
5939
+ color: var(--ox0-color-muted);
5940
+ font-size: var(--ox0-font-size-sm);
5941
+ }
5942
+
5943
+ .error-PaIi5f {
5944
+ color: var(--ox0-color-danger-text);
5945
+ font-size: var(--ox0-font-size-sm);
5894
5946
  }
5895
5947
  `,
5896
5948
  ""
5897
5949
  ]);
5898
5950
  ___CSS_LOADER_EXPORT___.locals = {
5899
- tooltip: "tooltip-NkB3V8"
5951
+ root: "root-EDj_sz",
5952
+ control: "control-Vog3id",
5953
+ focusVisible: "focusVisible-r4K4nT",
5954
+ invalid: "invalid-M29JY3",
5955
+ icon: "icon-SJ2fI8",
5956
+ input: "input-pJgRNM",
5957
+ textarea: "textarea-f9gopi",
5958
+ clear: "clear-eMD0M3",
5959
+ description: "description-U5SfzR",
5960
+ error: "error-PaIi5f"
5900
5961
  };
5901
5962
  const __rspack_default_export = ___CSS_LOADER_EXPORT___;
5902
5963
  __webpack_require__.d(__webpack_exports__, {}, {
5903
5964
  A: __rspack_default_export
5904
5965
  });
5905
5966
  },
5906
- "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/layout/grid.module.css" (module, __webpack_exports__, __webpack_require__) {
5967
+ "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/text.module.css" (module, __webpack_exports__, __webpack_require__) {
5907
5968
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
5908
5969
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1);
5909
5970
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
@@ -5911,58 +5972,170 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
5911
5972
  var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default()(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default());
5912
5973
  ___CSS_LOADER_EXPORT___.push([
5913
5974
  module.id,
5914
- `.grid-bGKCj5 {
5915
- --ox0-grid-auto-columns: repeat(auto-fit,
5916
- minmax(min(var(--ox0-grid-min-column, 12rem), 100%), 1fr));
5917
- grid-template-columns: var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns));
5918
- grid-template-rows: var(--ox0-grid-rows-base, none);
5919
- grid-template-areas: var(--ox0-grid-areas-base, none);
5920
- display: grid;
5975
+ `.text-ojiRZM {
5976
+ margin: 0;
5921
5977
  }
5922
5978
 
5923
- @media (width >= 30rem) {
5924
- .grid-bGKCj5 {
5925
- grid-template-columns: var(--ox0-grid-columns-sm, var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns)));
5926
- grid-template-rows: var(--ox0-grid-rows-sm, var(--ox0-grid-rows-base, none));
5927
- grid-template-areas: var(--ox0-grid-areas-sm, var(--ox0-grid-areas-base, none));
5928
- }
5979
+ .display-FqY2br {
5980
+ font-family: var(--ox0-font-heading);
5981
+ font-size: var(--ox0-text-display-size, var(--ox0-font-size-4xl));
5982
+ font-weight: var(--ox0-text-display-weight, var(--ox0-font-weight-heading));
5983
+ line-height: var(--ox0-text-display-leading, var(--ox0-line-height-tight));
5984
+ letter-spacing: var(--ox0-text-display-tracking, var(--ox0-tracking-heading));
5929
5985
  }
5930
5986
 
5931
- @media (width >= 48rem) {
5932
- .grid-bGKCj5 {
5933
- grid-template-columns: var(--ox0-grid-columns-md, var(--ox0-grid-columns-sm, var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns))));
5934
- grid-template-rows: var(--ox0-grid-rows-md, var(--ox0-grid-rows-sm, var(--ox0-grid-rows-base, none)));
5935
- grid-template-areas: var(--ox0-grid-areas-md, var(--ox0-grid-areas-sm, var(--ox0-grid-areas-base, none)));
5936
- }
5987
+ .heading-lg-sGfoZF {
5988
+ font-family: var(--ox0-font-subheading, var(--ox0-font-heading));
5989
+ font-size: var(--ox0-text-heading-lg-size, var(--ox0-font-size-2xl));
5990
+ font-weight: var(--ox0-text-heading-lg-weight, var(--ox0-font-weight-subheading));
5991
+ line-height: var(--ox0-text-heading-lg-leading, var(--ox0-line-height-dense));
5992
+ letter-spacing: var(--ox0-text-heading-lg-tracking, var(--ox0-tracking-subheading));
5937
5993
  }
5938
5994
 
5939
- @media (width >= 64rem) {
5940
- .grid-bGKCj5 {
5941
- grid-template-columns: var(--ox0-grid-columns-lg, var(--ox0-grid-columns-md, var(--ox0-grid-columns-sm, var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns)))));
5942
- grid-template-rows: var(--ox0-grid-rows-lg, var(--ox0-grid-rows-md, var(--ox0-grid-rows-sm, var(--ox0-grid-rows-base, none))));
5943
- grid-template-areas: var(--ox0-grid-areas-lg, var(--ox0-grid-areas-md, var(--ox0-grid-areas-sm, var(--ox0-grid-areas-base, none))));
5944
- }
5995
+ .heading-udDMTP {
5996
+ font-size: var(--ox0-text-heading-size, var(--ox0-font-size-lg));
5997
+ font-weight: var(--ox0-text-heading-weight, var(--ox0-font-weight-semibold));
5998
+ line-height: var(--ox0-text-heading-leading, var(--ox0-line-height-snug));
5999
+ letter-spacing: var(--ox0-text-heading-tracking, var(--ox0-tracking-normal));
5945
6000
  }
5946
6001
 
5947
- @media (width >= 80rem) {
5948
- .grid-bGKCj5 {
5949
- grid-template-columns: var(--ox0-grid-columns-xl, var(--ox0-grid-columns-lg, var(--ox0-grid-columns-md, var(--ox0-grid-columns-sm, var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns))))));
5950
- grid-template-rows: var(--ox0-grid-rows-xl, var(--ox0-grid-rows-lg, var(--ox0-grid-rows-md, var(--ox0-grid-rows-sm, var(--ox0-grid-rows-base, none)))));
5951
- grid-template-areas: var(--ox0-grid-areas-xl, var(--ox0-grid-areas-lg, var(--ox0-grid-areas-md, var(--ox0-grid-areas-sm, var(--ox0-grid-areas-base, none)))));
5952
- }
6002
+ .heading-sm-pEPDma {
6003
+ font-size: var(--ox0-text-heading-sm-size, var(--ox0-font-size-md));
6004
+ font-weight: var(--ox0-text-heading-sm-weight, var(--ox0-font-weight-semibold));
6005
+ line-height: var(--ox0-text-heading-sm-leading, var(--ox0-line-height-dense));
6006
+ letter-spacing: var(--ox0-text-heading-sm-tracking, var(--ox0-tracking-normal));
6007
+ }
6008
+
6009
+ .body-YOwBr4 {
6010
+ font-size: var(--ox0-text-body-size, var(--ox0-font-size-md));
6011
+ font-weight: var(--ox0-text-body-weight, var(--ox0-font-weight-normal));
6012
+ line-height: var(--ox0-text-body-leading, var(--ox0-line-height-normal));
6013
+ letter-spacing: var(--ox0-text-body-tracking, var(--ox0-tracking-normal));
6014
+ }
6015
+
6016
+ .body-sm-IYrNKl {
6017
+ font-size: var(--ox0-text-body-sm-size, var(--ox0-font-size-sm));
6018
+ font-weight: var(--ox0-text-body-sm-weight, var(--ox0-font-weight-normal));
6019
+ line-height: var(--ox0-text-body-sm-leading, var(--ox0-line-height-normal));
6020
+ letter-spacing: var(--ox0-text-body-sm-tracking, var(--ox0-tracking-small));
6021
+ }
6022
+
6023
+ .label-gX6o1x {
6024
+ font-size: var(--ox0-text-label-size, var(--ox0-font-size-xs));
6025
+ font-weight: var(--ox0-text-label-weight, var(--ox0-font-weight-medium));
6026
+ line-height: var(--ox0-text-label-leading, var(--ox0-line-height-dense));
6027
+ letter-spacing: var(--ox0-text-label-tracking, var(--ox0-tracking-wider));
6028
+ text-transform: var(--ox0-text-label-transform, uppercase);
6029
+ }
6030
+
6031
+ .caption-F0inTg {
6032
+ font-size: var(--ox0-text-caption-size, var(--ox0-font-size-caption));
6033
+ font-weight: var(--ox0-text-caption-weight, var(--ox0-font-weight-normal));
6034
+ line-height: var(--ox0-text-caption-leading, var(--ox0-line-height-normal));
6035
+ letter-spacing: var(--ox0-text-caption-tracking, var(--ox0-tracking-small));
6036
+ }
6037
+
6038
+ .numeric-lD47Jl {
6039
+ font-family: var(--ox0-font-mono);
6040
+ font-size: var(--ox0-text-numeric-size, var(--ox0-font-size-md));
6041
+ font-weight: var(--ox0-text-numeric-weight, var(--ox0-font-weight-normal));
6042
+ font-variant-numeric: tabular-nums;
6043
+ line-height: var(--ox0-text-numeric-leading, var(--ox0-line-height-dense));
6044
+ letter-spacing: var(--ox0-text-numeric-tracking, var(--ox0-tracking-normal));
6045
+ }
6046
+
6047
+ .code-chvwDx {
6048
+ font-family: var(--ox0-font-mono);
6049
+ font-size: var(--ox0-text-code-size, var(--ox0-font-size-sm));
6050
+ font-weight: var(--ox0-text-code-weight, var(--ox0-font-weight-normal));
6051
+ line-height: var(--ox0-text-code-leading, var(--ox0-line-height-normal));
6052
+ letter-spacing: var(--ox0-text-code-tracking, var(--ox0-tracking-normal));
6053
+ }
6054
+
6055
+ .foreground-dzHYHe {
6056
+ color: var(--ox0-color-foreground);
6057
+ }
6058
+
6059
+ .muted-zeNDqn {
6060
+ color: var(--ox0-color-muted);
6061
+ }
6062
+
6063
+ .accent-ah7uAs {
6064
+ color: var(--ox0-color-accent-text);
6065
+ }
6066
+
6067
+ .success-sVYlMj {
6068
+ color: var(--ox0-color-success-text);
6069
+ }
6070
+
6071
+ .warning-na51J9 {
6072
+ color: var(--ox0-color-warning-text);
6073
+ }
6074
+
6075
+ .danger-AufKYd {
6076
+ color: var(--ox0-color-danger-text);
6077
+ }
6078
+
6079
+ .inherit-gJHLfJ {
6080
+ color: inherit;
6081
+ }
6082
+
6083
+ .truncate-qrGgXB {
6084
+ text-overflow: ellipsis;
6085
+ white-space: nowrap;
6086
+ overflow: hidden;
6087
+ }
6088
+
6089
+ .align-left-UPkxat {
6090
+ text-align: left;
6091
+ }
6092
+
6093
+ .align-center-_fPJYn {
6094
+ text-align: center;
6095
+ }
6096
+
6097
+ .align-right-uScNpc {
6098
+ text-align: right;
5953
6099
  }
5954
6100
  `,
5955
6101
  ""
5956
6102
  ]);
5957
6103
  ___CSS_LOADER_EXPORT___.locals = {
5958
- grid: "grid-bGKCj5"
6104
+ text: "text-ojiRZM",
6105
+ display: "display-FqY2br",
6106
+ "heading-lg": "heading-lg-sGfoZF",
6107
+ headingLg: "heading-lg-sGfoZF",
6108
+ heading: "heading-udDMTP",
6109
+ "heading-sm": "heading-sm-pEPDma",
6110
+ headingSm: "heading-sm-pEPDma",
6111
+ body: "body-YOwBr4",
6112
+ "body-sm": "body-sm-IYrNKl",
6113
+ bodySm: "body-sm-IYrNKl",
6114
+ label: "label-gX6o1x",
6115
+ caption: "caption-F0inTg",
6116
+ numeric: "numeric-lD47Jl",
6117
+ code: "code-chvwDx",
6118
+ foreground: "foreground-dzHYHe",
6119
+ muted: "muted-zeNDqn",
6120
+ accent: "accent-ah7uAs",
6121
+ success: "success-sVYlMj",
6122
+ warning: "warning-na51J9",
6123
+ danger: "danger-AufKYd",
6124
+ inherit: "inherit-gJHLfJ",
6125
+ truncate: "truncate-qrGgXB",
6126
+ "align-left": "align-left-UPkxat",
6127
+ alignLeft: "align-left-UPkxat",
6128
+ "align-center": "align-center-_fPJYn",
6129
+ alignCenter: "align-center-_fPJYn",
6130
+ "align-right": "align-right-uScNpc",
6131
+ alignRight: "align-right-uScNpc"
5959
6132
  };
5960
6133
  const __rspack_default_export = ___CSS_LOADER_EXPORT___;
5961
6134
  __webpack_require__.d(__webpack_exports__, {}, {
5962
6135
  A: __rspack_default_export
5963
6136
  });
5964
6137
  },
5965
- "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/providers/ox0-provider.module.css" (module, __webpack_exports__, __webpack_require__) {
6138
+ "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/toast.module.css" (module, __webpack_exports__, __webpack_require__) {
5966
6139
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
5967
6140
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1);
5968
6141
  var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
@@ -5970,21 +6143,295 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
5970
6143
  var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default()(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default());
5971
6144
  ___CSS_LOADER_EXPORT___.push([
5972
6145
  module.id,
5973
- `.root-_RvXxD {
5974
- color: var(--ox0-color-foreground);
5975
- font-family: var(--ox0-font-sans);
5976
- font-size: var(--ox0-font-size-md);
5977
- line-height: var(--ox0-line-height-normal);
5978
- display: contents;
5979
- }
5980
- `,
5981
- ""
5982
- ]);
5983
- ___CSS_LOADER_EXPORT___.locals = {
5984
- root: "root-_RvXxD"
5985
- };
5986
- const __rspack_default_export = ___CSS_LOADER_EXPORT___;
5987
- __webpack_require__.d(__webpack_exports__, {}, {
6146
+ `@keyframes toast-in-X29Xf4 {
6147
+ from {
6148
+ opacity: 0;
6149
+ transform: translateY(.5rem) scale(.96);
6150
+ }
6151
+
6152
+ to {
6153
+ opacity: 1;
6154
+ transform: translateY(0) scale(1);
6155
+ }
6156
+ }
6157
+
6158
+ @keyframes toast-out-LqOm2R {
6159
+ from {
6160
+ opacity: 1;
6161
+ transform: translateY(0) scale(1);
6162
+ }
6163
+
6164
+ to {
6165
+ opacity: 0;
6166
+ transform: translateY(.25rem) scale(.97);
6167
+ }
6168
+ }
6169
+
6170
+ .region-usSlIk {
6171
+ pointer-events: none;
6172
+ width: calc(100vw - 3rem);
6173
+ max-width: 24rem;
6174
+ z-index: var(--ox0-z-toast);
6175
+ flex-direction: column;
6176
+ gap: .5rem;
6177
+ display: flex;
6178
+ position: fixed;
6179
+ bottom: 1.5rem;
6180
+ right: 1.5rem;
6181
+ }
6182
+
6183
+ .toastWrapper-sYOVI0 {
6184
+ animation: toast-in-X29Xf4 var(--ox0-duration-normal) var(--ox0-ease-enter) both;
6185
+ }
6186
+
6187
+ .toastWrapper-sYOVI0.exiting-RcV5Ab {
6188
+ animation: toast-out-LqOm2R var(--ox0-duration-normal) var(--ox0-ease-exit) both;
6189
+ }
6190
+
6191
+ .toast-IaPMrq {
6192
+ background: var(--ox0-color-surface-raised);
6193
+ border: 1px solid var(--ox0-color-border);
6194
+ border-radius: var(--ox0-radius-md);
6195
+ box-shadow: var(--ox0-shadow-toast);
6196
+ pointer-events: auto;
6197
+ border-left-width: 3px;
6198
+ justify-content: space-between;
6199
+ align-items: flex-start;
6200
+ gap: .75rem;
6201
+ padding: .75rem .75rem .75rem 1rem;
6202
+ display: flex;
6203
+ }
6204
+
6205
+ .neutral-ud0XaK {
6206
+ border-left-color: var(--ox0-color-border);
6207
+ }
6208
+
6209
+ .info-qCsWQF {
6210
+ border-left-color: var(--ox0-color-info);
6211
+ }
6212
+
6213
+ .success-BjAK6q {
6214
+ border-left-color: var(--ox0-color-success);
6215
+ }
6216
+
6217
+ .warning-OKigu2 {
6218
+ border-left-color: var(--ox0-color-warning);
6219
+ }
6220
+
6221
+ .danger-LklBtF {
6222
+ border-left-color: var(--ox0-color-danger);
6223
+ }
6224
+
6225
+ .body-tmPCh0 {
6226
+ flex-direction: column;
6227
+ flex: 1;
6228
+ gap: .125rem;
6229
+ min-width: 0;
6230
+ display: flex;
6231
+ }
6232
+
6233
+ .message-kZji67 {
6234
+ color: var(--ox0-color-foreground);
6235
+ font-size: var(--ox0-font-size-sm);
6236
+ font-weight: var(--ox0-font-weight-medium);
6237
+ margin: 0;
6238
+ line-height: 1.4;
6239
+ }
6240
+
6241
+ .description-uROdxr {
6242
+ color: var(--ox0-color-muted);
6243
+ font-size: var(--ox0-font-size-sm);
6244
+ margin: 0;
6245
+ line-height: 1.4;
6246
+ }
6247
+
6248
+ .actions-NAScjf {
6249
+ flex-shrink: 0;
6250
+ align-items: center;
6251
+ gap: .25rem;
6252
+ display: flex;
6253
+ }
6254
+
6255
+ .actionButton-ju2Jqp {
6256
+ border: 1px solid var(--ox0-color-border);
6257
+ border-radius: var(--ox0-radius-sm);
6258
+ color: var(--ox0-color-foreground);
6259
+ cursor: pointer;
6260
+ font-family: var(--ox0-font-sans);
6261
+ font-size: var(--ox0-font-size-xs);
6262
+ font-weight: var(--ox0-font-weight-medium);
6263
+ white-space: nowrap;
6264
+ background: none;
6265
+ padding: .25rem .5rem;
6266
+ line-height: 1;
6267
+ }
6268
+
6269
+ .actionButton-ju2Jqp:hover {
6270
+ background: var(--ox0-color-surface);
6271
+ }
6272
+
6273
+ .closeButton-Zka7v8 {
6274
+ border-radius: var(--ox0-radius-xs);
6275
+ color: var(--ox0-color-muted);
6276
+ cursor: pointer;
6277
+ background: none;
6278
+ border: none;
6279
+ flex-shrink: 0;
6280
+ justify-content: center;
6281
+ align-items: center;
6282
+ width: 1.5rem;
6283
+ height: 1.5rem;
6284
+ padding: 0;
6285
+ display: flex;
6286
+ }
6287
+
6288
+ .closeButton-Zka7v8:hover {
6289
+ background: var(--ox0-color-surface);
6290
+ color: var(--ox0-color-foreground);
6291
+ }
6292
+ `,
6293
+ ""
6294
+ ]);
6295
+ ___CSS_LOADER_EXPORT___.locals = {
6296
+ region: "region-usSlIk",
6297
+ toastWrapper: "toastWrapper-sYOVI0",
6298
+ "toast-in": "toast-in-X29Xf4",
6299
+ toastIn: "toast-in-X29Xf4",
6300
+ exiting: "exiting-RcV5Ab",
6301
+ "toast-out": "toast-out-LqOm2R",
6302
+ toastOut: "toast-out-LqOm2R",
6303
+ toast: "toast-IaPMrq",
6304
+ neutral: "neutral-ud0XaK",
6305
+ info: "info-qCsWQF",
6306
+ success: "success-BjAK6q",
6307
+ warning: "warning-OKigu2",
6308
+ danger: "danger-LklBtF",
6309
+ body: "body-tmPCh0",
6310
+ message: "message-kZji67",
6311
+ description: "description-uROdxr",
6312
+ actions: "actions-NAScjf",
6313
+ actionButton: "actionButton-ju2Jqp",
6314
+ closeButton: "closeButton-Zka7v8"
6315
+ };
6316
+ const __rspack_default_export = ___CSS_LOADER_EXPORT___;
6317
+ __webpack_require__.d(__webpack_exports__, {}, {
6318
+ A: __rspack_default_export
6319
+ });
6320
+ },
6321
+ "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/tooltip.module.css" (module, __webpack_exports__, __webpack_require__) {
6322
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
6323
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1);
6324
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
6325
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0);
6326
+ var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default()(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default());
6327
+ ___CSS_LOADER_EXPORT___.push([
6328
+ module.id,
6329
+ `.tooltip-NkB3V8 {
6330
+ background: var(--ox0-color-foreground);
6331
+ border-radius: var(--ox0-radius-xs);
6332
+ color: var(--ox0-color-canvas);
6333
+ font-family: var(--ox0-font-sans);
6334
+ font-size: var(--ox0-font-size-xs);
6335
+ pointer-events: none;
6336
+ max-width: 20rem;
6337
+ z-index: var(--ox0-z-tooltip);
6338
+ forced-color-adjust: none;
6339
+ padding: .25rem .5rem;
6340
+ line-height: 1.5;
6341
+ }
6342
+ `,
6343
+ ""
6344
+ ]);
6345
+ ___CSS_LOADER_EXPORT___.locals = {
6346
+ tooltip: "tooltip-NkB3V8"
6347
+ };
6348
+ const __rspack_default_export = ___CSS_LOADER_EXPORT___;
6349
+ __webpack_require__.d(__webpack_exports__, {}, {
6350
+ A: __rspack_default_export
6351
+ });
6352
+ },
6353
+ "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/layout/grid.module.css" (module, __webpack_exports__, __webpack_require__) {
6354
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
6355
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1);
6356
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
6357
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0);
6358
+ var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default()(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default());
6359
+ ___CSS_LOADER_EXPORT___.push([
6360
+ module.id,
6361
+ `.grid-bGKCj5 {
6362
+ --ox0-grid-auto-columns: repeat(auto-fit,
6363
+ minmax(min(var(--ox0-grid-min-column, 12rem), 100%), 1fr));
6364
+ grid-template-columns: var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns));
6365
+ grid-template-rows: var(--ox0-grid-rows-base, none);
6366
+ grid-template-areas: var(--ox0-grid-areas-base, none);
6367
+ display: grid;
6368
+ }
6369
+
6370
+ @media (width >= 30rem) {
6371
+ .grid-bGKCj5 {
6372
+ grid-template-columns: var(--ox0-grid-columns-sm, var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns)));
6373
+ grid-template-rows: var(--ox0-grid-rows-sm, var(--ox0-grid-rows-base, none));
6374
+ grid-template-areas: var(--ox0-grid-areas-sm, var(--ox0-grid-areas-base, none));
6375
+ }
6376
+ }
6377
+
6378
+ @media (width >= 48rem) {
6379
+ .grid-bGKCj5 {
6380
+ grid-template-columns: var(--ox0-grid-columns-md, var(--ox0-grid-columns-sm, var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns))));
6381
+ grid-template-rows: var(--ox0-grid-rows-md, var(--ox0-grid-rows-sm, var(--ox0-grid-rows-base, none)));
6382
+ grid-template-areas: var(--ox0-grid-areas-md, var(--ox0-grid-areas-sm, var(--ox0-grid-areas-base, none)));
6383
+ }
6384
+ }
6385
+
6386
+ @media (width >= 64rem) {
6387
+ .grid-bGKCj5 {
6388
+ grid-template-columns: var(--ox0-grid-columns-lg, var(--ox0-grid-columns-md, var(--ox0-grid-columns-sm, var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns)))));
6389
+ grid-template-rows: var(--ox0-grid-rows-lg, var(--ox0-grid-rows-md, var(--ox0-grid-rows-sm, var(--ox0-grid-rows-base, none))));
6390
+ grid-template-areas: var(--ox0-grid-areas-lg, var(--ox0-grid-areas-md, var(--ox0-grid-areas-sm, var(--ox0-grid-areas-base, none))));
6391
+ }
6392
+ }
6393
+
6394
+ @media (width >= 80rem) {
6395
+ .grid-bGKCj5 {
6396
+ grid-template-columns: var(--ox0-grid-columns-xl, var(--ox0-grid-columns-lg, var(--ox0-grid-columns-md, var(--ox0-grid-columns-sm, var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns))))));
6397
+ grid-template-rows: var(--ox0-grid-rows-xl, var(--ox0-grid-rows-lg, var(--ox0-grid-rows-md, var(--ox0-grid-rows-sm, var(--ox0-grid-rows-base, none)))));
6398
+ grid-template-areas: var(--ox0-grid-areas-xl, var(--ox0-grid-areas-lg, var(--ox0-grid-areas-md, var(--ox0-grid-areas-sm, var(--ox0-grid-areas-base, none)))));
6399
+ }
6400
+ }
6401
+ `,
6402
+ ""
6403
+ ]);
6404
+ ___CSS_LOADER_EXPORT___.locals = {
6405
+ grid: "grid-bGKCj5"
6406
+ };
6407
+ const __rspack_default_export = ___CSS_LOADER_EXPORT___;
6408
+ __webpack_require__.d(__webpack_exports__, {}, {
6409
+ A: __rspack_default_export
6410
+ });
6411
+ },
6412
+ "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/providers/ox0-provider.module.css" (module, __webpack_exports__, __webpack_require__) {
6413
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
6414
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1);
6415
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js");
6416
+ var _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0);
6417
+ var ___CSS_LOADER_EXPORT___ = _node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_0_default()(_node_modules_pnpm_rsbuild_core_2_3_0_beta_0_core_js_3_47_0_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_1_default());
6418
+ ___CSS_LOADER_EXPORT___.push([
6419
+ module.id,
6420
+ `.root-_RvXxD {
6421
+ color: var(--ox0-color-foreground);
6422
+ font-family: var(--ox0-font-sans);
6423
+ font-size: var(--ox0-font-size-md);
6424
+ line-height: var(--ox0-line-height-normal);
6425
+ display: contents;
6426
+ }
6427
+ `,
6428
+ ""
6429
+ ]);
6430
+ ___CSS_LOADER_EXPORT___.locals = {
6431
+ root: "root-_RvXxD"
6432
+ };
6433
+ const __rspack_default_export = ___CSS_LOADER_EXPORT___;
6434
+ __webpack_require__.d(__webpack_exports__, {}, {
5988
6435
  A: __rspack_default_export
5989
6436
  });
5990
6437
  },
@@ -6212,6 +6659,10 @@ const defaultUiMessages = {
6212
6659
  "ox0.appShell.navTitle": "Menu",
6213
6660
  "ox0.appShell.openNav": "Open navigation",
6214
6661
  "ox0.appShell.skipToContent": "Skip to content",
6662
+ "ox0.bulkTagEditor.add": "Add “{tag}”",
6663
+ "ox0.bulkTagEditor.count": "On {count} of {total}",
6664
+ "ox0.bulkTagEditor.empty": "No tags yet",
6665
+ "ox0.bulkTagEditor.find": "Find or add a tag",
6215
6666
  "ox0.confirm.cancel": "Cancel",
6216
6667
  "ox0.confirm.confirm": "Confirm",
6217
6668
  "ox0.drawer.close": "Close",
@@ -6235,6 +6686,20 @@ const defaultUiMessages = {
6235
6686
  "ox0.numberField.increment": "Increment",
6236
6687
  "ox0.searchField.clear": "Clear search",
6237
6688
  "ox0.select.selectedCount": "{count} selected",
6689
+ "ox0.tagColor.blue": "Blue",
6690
+ "ox0.tagColor.gray": "Gray",
6691
+ "ox0.tagColor.green": "Green",
6692
+ "ox0.tagColor.ink": "Ink",
6693
+ "ox0.tagColor.orange": "Orange",
6694
+ "ox0.tagColor.pink": "Pink",
6695
+ "ox0.tagColor.purple": "Purple",
6696
+ "ox0.tagColor.red": "Red",
6697
+ "ox0.tagColor.silver": "Silver",
6698
+ "ox0.tagColor.teal": "Teal",
6699
+ "ox0.tagColor.yellow": "Yellow",
6700
+ "ox0.tagColorButton.label": "{label}: {color}",
6701
+ "ox0.tagField.add": "Add “{tag}”",
6702
+ "ox0.tagField.remove": "Remove {tag}",
6238
6703
  "ox0.textField.clear": "Clear",
6239
6704
  "ox0.toast.dismiss": "Dismiss notification",
6240
6705
  "ox0.toast.region": "Notifications"
@@ -8078,265 +8543,679 @@ const label_Label = /*#__PURE__*/ forwardRef(function({ as: Element = "label", c
8078
8543
  id,
8079
8544
  className: [
8080
8545
  text_module.text,
8081
- text_module.label,
8082
- text_module[color],
8083
- truncate ? text_module.truncate : void 0
8546
+ text_module.label,
8547
+ text_module[color],
8548
+ truncate ? text_module.truncate : void 0
8549
+ ].filter(Boolean).join(" "),
8550
+ ...props
8551
+ }, children);
8552
+ });
8553
+ const markable_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/markable.module.css");
8554
+ var markable_module_options = {};
8555
+ markable_module_options.styleTagTransform = styleTagTransform_default();
8556
+ markable_module_options.setAttributes = setAttributesWithoutAttributes_default();
8557
+ markable_module_options.insert = insertBySelector_default().bind(null, "head");
8558
+ markable_module_options.domAPI = styleDomAPI_default();
8559
+ markable_module_options.insertStyleElement = insertStyleElement_default();
8560
+ injectStylesIntoStyleTag_default()(markable_module_0.A, markable_module_options);
8561
+ const markable_module = markable_module_0.A && markable_module_0.A.locals ? markable_module_0.A.locals : void 0;
8562
+ const MarkContext = /*#__PURE__*/ createContext({
8563
+ terms: []
8564
+ });
8565
+ function MarkProvider({ children, terms, isCaseSensitive }) {
8566
+ const value = useMemo(()=>({
8567
+ terms,
8568
+ isCaseSensitive
8569
+ }), [
8570
+ terms.join("\u0000"),
8571
+ isCaseSensitive
8572
+ ]);
8573
+ return /*#__PURE__*/ jsx(MarkContext.Provider, {
8574
+ value: value,
8575
+ children: children
8576
+ });
8577
+ }
8578
+ function escapeRegExp(term) {
8579
+ return term.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
8580
+ }
8581
+ function findMatchRanges(value, terms, isCaseSensitive) {
8582
+ const nonEmptyTerms = terms.filter((term)=>term.length > 0);
8583
+ if (0 === nonEmptyTerms.length) return [];
8584
+ const flags = isCaseSensitive ? "g" : "gi";
8585
+ const ranges = [];
8586
+ for (const term of nonEmptyTerms){
8587
+ const pattern = new RegExp(escapeRegExp(term), flags);
8588
+ for (const match of value.matchAll(pattern))if (0 !== match[0].length) ranges.push([
8589
+ match.index,
8590
+ match.index + match[0].length
8591
+ ]);
8592
+ }
8593
+ ranges.sort((a, b)=>a[0] - b[0]);
8594
+ const merged = [];
8595
+ for (const range of ranges){
8596
+ const last = merged.at(-1);
8597
+ if (last && range[0] <= last[1]) last[1] = Math.max(last[1], range[1]);
8598
+ else merged.push(range);
8599
+ }
8600
+ return merged;
8601
+ }
8602
+ function toSegments(value, ranges) {
8603
+ if (0 === ranges.length) return value.length > 0 ? [
8604
+ {
8605
+ text: value,
8606
+ isMatch: false
8607
+ }
8608
+ ] : [];
8609
+ const segments = [];
8610
+ let cursor = 0;
8611
+ for (const [start, end] of ranges){
8612
+ if (start > cursor) segments.push({
8613
+ text: value.slice(cursor, start),
8614
+ isMatch: false
8615
+ });
8616
+ segments.push({
8617
+ text: value.slice(start, end),
8618
+ isMatch: true
8619
+ });
8620
+ cursor = end;
8621
+ }
8622
+ if (cursor < value.length) segments.push({
8623
+ text: value.slice(cursor),
8624
+ isMatch: false
8625
+ });
8626
+ return segments;
8627
+ }
8628
+ function useMark(value) {
8629
+ const { terms, isCaseSensitive = false } = useContext(MarkContext);
8630
+ return useMemo(()=>toSegments(value, findMatchRanges(value, terms, isCaseSensitive)), [
8631
+ value,
8632
+ terms.join("\u0000"),
8633
+ isCaseSensitive
8634
+ ]);
8635
+ }
8636
+ function Markable({ children }) {
8637
+ const segments = useMark(children);
8638
+ return /*#__PURE__*/ jsx(Fragment, {
8639
+ children: segments.map((segment, index)=>segment.isMatch ? /*#__PURE__*/ jsx("mark", {
8640
+ className: markable_module.mark,
8641
+ children: segment.text
8642
+ }, index) : segment.text)
8643
+ });
8644
+ }
8645
+ const numeric_Numeric = /*#__PURE__*/ forwardRef(function({ align, children, color = "foreground", id, truncate, ...props }, ref) {
8646
+ return /*#__PURE__*/ jsx("span", {
8647
+ ref: ref,
8648
+ id: id,
8649
+ className: [
8650
+ text_module.text,
8651
+ text_module.numeric,
8652
+ text_module[color],
8653
+ align ? text_module[`align-${align}`] : void 0,
8654
+ truncate ? text_module.truncate : void 0
8655
+ ].filter(Boolean).join(" "),
8656
+ ...props,
8657
+ children: children
8658
+ });
8659
+ });
8660
+ const TICK = 30000;
8661
+ let clockNow = Date.now();
8662
+ const listeners = new Set();
8663
+ let date_time_timer;
8664
+ function subscribeClock(listener) {
8665
+ listeners.add(listener);
8666
+ if (void 0 === date_time_timer) {
8667
+ clockNow = Date.now();
8668
+ date_time_timer = setInterval(()=>{
8669
+ clockNow = Date.now();
8670
+ for (const notify of listeners)notify();
8671
+ }, TICK);
8672
+ }
8673
+ return ()=>{
8674
+ listeners.delete(listener);
8675
+ if (0 === listeners.size && void 0 !== date_time_timer) {
8676
+ clearInterval(date_time_timer);
8677
+ date_time_timer = void 0;
8678
+ }
8679
+ };
8680
+ }
8681
+ const noSubscribe = ()=>()=>{};
8682
+ const readClock = ()=>clockNow;
8683
+ function useClock(live) {
8684
+ const [mountedAt] = useState(()=>Date.now());
8685
+ const ticked = useSyncExternalStore(live ? subscribeClock : noSubscribe, readClock, readClock);
8686
+ return live ? Math.max(ticked, mountedAt) : mountedAt;
8687
+ }
8688
+ function classes(color) {
8689
+ return [
8690
+ text_module.text,
8691
+ color ? text_module[color] : void 0
8692
+ ].filter(Boolean).join(" ");
8693
+ }
8694
+ const date_time_DateTime = /*#__PURE__*/ forwardRef(function({ color, display = "date", id, value, ...props }, ref) {
8695
+ const { format } = useDateFormat();
8696
+ const now = useClock("relative" === display);
8697
+ const text = format(value, {
8698
+ display,
8699
+ now
8700
+ });
8701
+ const full = format(value, {
8702
+ display: "full",
8703
+ now
8704
+ });
8705
+ return /*#__PURE__*/ jsx("time", {
8706
+ ref: ref,
8707
+ id: id,
8708
+ className: classes(color),
8709
+ dateTime: toDateTimeAttribute(value),
8710
+ title: "full" === display ? void 0 : full,
8711
+ ...props,
8712
+ children: text
8713
+ });
8714
+ });
8715
+ const date_time_DateRange = /*#__PURE__*/ forwardRef(function({ color, end, id, start, withTime, ...props }, ref) {
8716
+ const { format, formatRange } = useDateFormat();
8717
+ const now = useClock(false);
8718
+ const full = `${format(start, {
8719
+ display: "full",
8720
+ now
8721
+ })} – ${format(end, {
8722
+ display: "full",
8723
+ now
8724
+ })}`;
8725
+ return /*#__PURE__*/ jsx("span", {
8726
+ ref: ref,
8727
+ id: id,
8728
+ className: classes(color),
8729
+ title: full,
8730
+ ...props,
8731
+ children: formatRange(start, end, {
8732
+ now,
8733
+ withTime
8734
+ })
8735
+ });
8736
+ });
8737
+ function createTextStyles(textStyles) {
8738
+ const vars = {};
8739
+ for (const [variant, style] of Object.entries(textStyles))if (style) {
8740
+ if (void 0 !== style.size) vars[`--ox0-text-${variant}-size`] = style.size;
8741
+ if (void 0 !== style.weight) vars[`--ox0-text-${variant}-weight`] = style.weight;
8742
+ if (void 0 !== style.leading) vars[`--ox0-text-${variant}-leading`] = style.leading;
8743
+ if (void 0 !== style.tracking) vars[`--ox0-text-${variant}-tracking`] = style.tracking;
8744
+ if (void 0 !== style.transform) vars[`--ox0-text-${variant}-transform`] = style.transform;
8745
+ }
8746
+ return vars;
8747
+ }
8748
+ const defaultElement = {
8749
+ display: "p",
8750
+ "heading-lg": "h2",
8751
+ heading: "h3",
8752
+ "heading-sm": "h4",
8753
+ body: "p",
8754
+ "body-sm": "p",
8755
+ label: "span",
8756
+ caption: "span",
8757
+ numeric: "span",
8758
+ code: "code"
8759
+ };
8760
+ const defaultWrap = {
8761
+ display: "balance",
8762
+ "heading-lg": "balance",
8763
+ heading: "balance",
8764
+ "heading-sm": "balance"
8765
+ };
8766
+ const defaultColor = {
8767
+ display: "foreground",
8768
+ "heading-lg": "foreground",
8769
+ heading: "foreground",
8770
+ "heading-sm": "foreground",
8771
+ body: "foreground",
8772
+ "body-sm": "foreground",
8773
+ label: "muted",
8774
+ caption: "muted",
8775
+ numeric: "foreground",
8776
+ code: "foreground"
8777
+ };
8778
+ const text_Text = /*#__PURE__*/ forwardRef(function({ align, as, children, color, id, lineClamp, truncate = false, variant = "body", wrap, ...props }, ref) {
8779
+ const Element = as ?? defaultElement[variant];
8780
+ const resolvedColor = color ?? defaultColor[variant];
8781
+ const resolvedWrap = wrap ?? defaultWrap[variant];
8782
+ const inlineStyle = {};
8783
+ if (resolvedWrap) inlineStyle.textWrap = resolvedWrap;
8784
+ if (void 0 !== lineClamp) {
8785
+ inlineStyle.display = "-webkit-box";
8786
+ inlineStyle.WebkitLineClamp = lineClamp;
8787
+ inlineStyle.WebkitBoxOrient = "vertical";
8788
+ inlineStyle.overflow = "hidden";
8789
+ }
8790
+ return /*#__PURE__*/ jsx(Element, {
8791
+ ref: ref,
8792
+ id: id,
8793
+ className: [
8794
+ text_module.text,
8795
+ text_module[variant],
8796
+ text_module[resolvedColor],
8797
+ align ? text_module[`align-${align}`] : void 0,
8798
+ truncate && !lineClamp ? text_module.truncate : void 0
8084
8799
  ].filter(Boolean).join(" "),
8085
- ...props
8086
- }, children);
8800
+ style: Object.keys(inlineStyle).length > 0 ? inlineStyle : void 0,
8801
+ ...props,
8802
+ children: children
8803
+ });
8087
8804
  });
8088
- const markable_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/markable.module.css");
8089
- var markable_module_options = {};
8090
- markable_module_options.styleTagTransform = styleTagTransform_default();
8091
- markable_module_options.setAttributes = setAttributesWithoutAttributes_default();
8092
- markable_module_options.insert = insertBySelector_default().bind(null, "head");
8093
- markable_module_options.domAPI = styleDomAPI_default();
8094
- markable_module_options.insertStyleElement = insertStyleElement_default();
8095
- injectStylesIntoStyleTag_default()(markable_module_0.A, markable_module_options);
8096
- const markable_module = markable_module_0.A && markable_module_0.A.locals ? markable_module_0.A.locals : void 0;
8097
- const MarkContext = /*#__PURE__*/ createContext({
8098
- terms: []
8805
+ const checkbox_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/checkbox.module.css");
8806
+ var checkbox_module_options = {};
8807
+ checkbox_module_options.styleTagTransform = styleTagTransform_default();
8808
+ checkbox_module_options.setAttributes = setAttributesWithoutAttributes_default();
8809
+ checkbox_module_options.insert = insertBySelector_default().bind(null, "head");
8810
+ checkbox_module_options.domAPI = styleDomAPI_default();
8811
+ checkbox_module_options.insertStyleElement = insertStyleElement_default();
8812
+ injectStylesIntoStyleTag_default()(checkbox_module_0.A, checkbox_module_options);
8813
+ const checkbox_module = checkbox_module_0.A && checkbox_module_0.A.locals ? checkbox_module_0.A.locals : void 0;
8814
+ const choice_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/choice.module.css");
8815
+ var choice_module_options = {};
8816
+ choice_module_options.styleTagTransform = styleTagTransform_default();
8817
+ choice_module_options.setAttributes = setAttributesWithoutAttributes_default();
8818
+ choice_module_options.insert = insertBySelector_default().bind(null, "head");
8819
+ choice_module_options.domAPI = styleDomAPI_default();
8820
+ choice_module_options.insertStyleElement = insertStyleElement_default();
8821
+ injectStylesIntoStyleTag_default()(choice_module_0.A, choice_module_options);
8822
+ const choice_module = choice_module_0.A && choice_module_0.A.locals ? choice_module_0.A.locals : void 0;
8823
+ const checkbox_Checkbox = /*#__PURE__*/ forwardRef(function({ label, description, isDisabled, isInvalid, isSelected, isIndeterminate = false, defaultSelected, errorMessage, onChange, id: idProp, ...restProps }, ref) {
8824
+ const inputRef = useRef(null);
8825
+ useLayoutEffect(()=>{
8826
+ if (inputRef.current) inputRef.current.indeterminate = isIndeterminate;
8827
+ }, [
8828
+ isIndeterminate
8829
+ ]);
8830
+ const { style: layoutStyle } = useLayoutItem(restProps);
8831
+ const [, props] = splitLayoutItemProps(restProps);
8832
+ const generatedId = useId();
8833
+ const id = idProp ?? generatedId;
8834
+ const descriptionId = description ? `${id}-description` : void 0;
8835
+ const errorId = errorMessage ? `${id}-error` : void 0;
8836
+ const describedBy = [
8837
+ descriptionId,
8838
+ errorId
8839
+ ].filter(Boolean).join(" ") || void 0;
8840
+ const invalid = isInvalid || !!errorMessage;
8841
+ return /*#__PURE__*/ jsxs("div", {
8842
+ className: checkbox_module.root,
8843
+ style: layoutStyle,
8844
+ children: [
8845
+ /*#__PURE__*/ jsxs("label", {
8846
+ className: `${checkbox_module.label}${isDisabled ? ` ${checkbox_module.disabled}` : ""}`,
8847
+ children: [
8848
+ /*#__PURE__*/ jsx("input", {
8849
+ ...props,
8850
+ ref: (node)=>{
8851
+ inputRef.current = node;
8852
+ if ("function" == typeof ref) ref(node);
8853
+ else if (ref) ref.current = node;
8854
+ },
8855
+ "aria-describedby": describedBy,
8856
+ "aria-invalid": invalid || void 0,
8857
+ checked: isSelected,
8858
+ className: `${choice_module.control} ${choice_module.checkbox}`,
8859
+ defaultChecked: defaultSelected,
8860
+ disabled: isDisabled,
8861
+ id: id,
8862
+ onChange: (e)=>onChange?.(e.target.checked),
8863
+ type: "checkbox"
8864
+ }),
8865
+ /*#__PURE__*/ jsxs("span", {
8866
+ children: [
8867
+ label ? /*#__PURE__*/ jsx("span", {
8868
+ children: label
8869
+ }) : null,
8870
+ description ? /*#__PURE__*/ jsx("span", {
8871
+ className: checkbox_module.description,
8872
+ id: descriptionId,
8873
+ children: description
8874
+ }) : null
8875
+ ]
8876
+ })
8877
+ ]
8878
+ }),
8879
+ errorMessage ? /*#__PURE__*/ jsx("span", {
8880
+ className: checkbox_module.error,
8881
+ id: errorId,
8882
+ children: errorMessage
8883
+ }) : null
8884
+ ]
8885
+ });
8099
8886
  });
8100
- function MarkProvider({ children, terms, isCaseSensitive }) {
8101
- const value = useMemo(()=>({
8102
- terms,
8103
- isCaseSensitive
8104
- }), [
8105
- terms.join("\u0000"),
8106
- isCaseSensitive
8887
+ const tag_color_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/tag-color.module.css");
8888
+ var tag_color_module_options = {};
8889
+ tag_color_module_options.styleTagTransform = styleTagTransform_default();
8890
+ tag_color_module_options.setAttributes = setAttributesWithoutAttributes_default();
8891
+ tag_color_module_options.insert = insertBySelector_default().bind(null, "head");
8892
+ tag_color_module_options.domAPI = styleDomAPI_default();
8893
+ tag_color_module_options.insertStyleElement = insertStyleElement_default();
8894
+ injectStylesIntoStyleTag_default()(tag_color_module_0.A, tag_color_module_options);
8895
+ const tag_color_module = tag_color_module_0.A && tag_color_module_0.A.locals ? tag_color_module_0.A.locals : void 0;
8896
+ function TagColorDot({ color }) {
8897
+ const isPlain = void 0 === color || "gray" === color;
8898
+ return /*#__PURE__*/ jsx("span", {
8899
+ "aria-hidden": true,
8900
+ className: `${tag_color_module.hue} ${tag_color_module.dot}`,
8901
+ "data-color": isPlain ? void 0 : color,
8902
+ "data-plain": isPlain ? "" : void 0
8903
+ });
8904
+ }
8905
+ const field_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/field.module.css");
8906
+ var field_module_options = {};
8907
+ field_module_options.styleTagTransform = styleTagTransform_default();
8908
+ field_module_options.setAttributes = setAttributesWithoutAttributes_default();
8909
+ field_module_options.insert = insertBySelector_default().bind(null, "head");
8910
+ field_module_options.domAPI = styleDomAPI_default();
8911
+ field_module_options.insertStyleElement = insertStyleElement_default();
8912
+ injectStylesIntoStyleTag_default()(field_module_0.A, field_module_options);
8913
+ const field_module = field_module_0.A && field_module_0.A.locals ? field_module_0.A.locals : void 0;
8914
+ const text_field_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/text-field.module.css");
8915
+ var text_field_module_options = {};
8916
+ text_field_module_options.styleTagTransform = styleTagTransform_default();
8917
+ text_field_module_options.setAttributes = setAttributesWithoutAttributes_default();
8918
+ text_field_module_options.insert = insertBySelector_default().bind(null, "head");
8919
+ text_field_module_options.domAPI = styleDomAPI_default();
8920
+ text_field_module_options.insertStyleElement = insertStyleElement_default();
8921
+ injectStylesIntoStyleTag_default()(text_field_module_0.A, text_field_module_options);
8922
+ const text_field_module = text_field_module_0.A && text_field_module_0.A.locals ? text_field_module_0.A.locals : void 0;
8923
+ const text_field_TextField = /*#__PURE__*/ forwardRef(function({ ariaLabel, description, errorMessage, icon: Icon, id: idProp, isClearable = false, isDisabled, isInvalid, isReadOnly, label, onBlur, onClear, onChange, onFocus, onKeyDown, onPointerDown, variant = "default", ...restProps }, ref) {
8924
+ const { style: layoutStyle } = useLayoutItem(restProps);
8925
+ const [, props] = splitLayoutItemProps(restProps);
8926
+ const generatedId = useId();
8927
+ const clearLabel = useMessage("ox0.textField.clear", "Clear");
8928
+ const id = idProp ?? generatedId;
8929
+ const descriptionId = description ? `${id}-description` : void 0;
8930
+ const errorId = errorMessage ? `${id}-error` : void 0;
8931
+ const describedBy = [
8932
+ descriptionId,
8933
+ errorId
8934
+ ].filter(Boolean).join(" ") || void 0;
8935
+ const invalid = isInvalid || !!errorMessage;
8936
+ const inputRef = useRef(null);
8937
+ const setInputRef = useCallback((node)=>{
8938
+ inputRef.current = node;
8939
+ if (!ref) return;
8940
+ if ("function" == typeof ref) return void ref(node);
8941
+ if ("current" in ref) ref.current = node;
8942
+ }, [
8943
+ ref
8107
8944
  ]);
8108
- return /*#__PURE__*/ jsx(MarkContext.Provider, {
8109
- value: value,
8110
- children: children
8945
+ const [isFocusVisible, setIsFocusVisible] = useState(false);
8946
+ const pointerActive = useRef(false);
8947
+ const handleClear = useCallback(()=>{
8948
+ onChange?.("");
8949
+ onClear?.();
8950
+ inputRef.current?.focus();
8951
+ }, [
8952
+ onChange,
8953
+ onClear
8954
+ ]);
8955
+ return /*#__PURE__*/ jsxs("div", {
8956
+ className: text_field_module.root,
8957
+ style: layoutStyle,
8958
+ children: [
8959
+ label ? /*#__PURE__*/ jsx("label", {
8960
+ className: field_module.label,
8961
+ htmlFor: id,
8962
+ children: label
8963
+ }) : null,
8964
+ /*#__PURE__*/ jsxs("div", {
8965
+ className: [
8966
+ text_field_module.control,
8967
+ invalid ? text_field_module.invalid : null,
8968
+ isFocusVisible ? text_field_module.focusVisible : null
8969
+ ].filter(Boolean).join(" "),
8970
+ "data-variant": variant,
8971
+ children: [
8972
+ Icon ? /*#__PURE__*/ jsx("span", {
8973
+ "aria-hidden": "true",
8974
+ className: text_field_module.icon,
8975
+ children: /*#__PURE__*/ jsx(Icon, {
8976
+ size: 12
8977
+ })
8978
+ }) : null,
8979
+ /*#__PURE__*/ jsx("input", {
8980
+ ...props,
8981
+ ref: setInputRef,
8982
+ "aria-describedby": describedBy,
8983
+ "aria-invalid": invalid || void 0,
8984
+ "aria-label": ariaLabel,
8985
+ className: text_field_module.input,
8986
+ disabled: isDisabled,
8987
+ id: id,
8988
+ readOnly: isReadOnly,
8989
+ onPointerDown: (e)=>{
8990
+ pointerActive.current = true;
8991
+ onPointerDown?.(e);
8992
+ },
8993
+ onFocus: (e)=>{
8994
+ if (!pointerActive.current) setIsFocusVisible(true);
8995
+ pointerActive.current = false;
8996
+ onFocus?.(e);
8997
+ },
8998
+ onBlur: (e)=>{
8999
+ setIsFocusVisible(false);
9000
+ onBlur?.(e);
9001
+ },
9002
+ onKeyDown: (e)=>{
9003
+ if (isClearable && "Escape" === e.key) {
9004
+ e.preventDefault();
9005
+ handleClear();
9006
+ }
9007
+ onKeyDown?.(e);
9008
+ },
9009
+ onChange: onChange ? (e)=>onChange(e.target.value) : void 0
9010
+ }),
9011
+ isClearable ? /*#__PURE__*/ jsx("button", {
9012
+ "aria-label": clearLabel,
9013
+ className: text_field_module.clear,
9014
+ tabIndex: -1,
9015
+ type: "button",
9016
+ onClick: handleClear,
9017
+ children: /*#__PURE__*/ jsx("svg", {
9018
+ "aria-hidden": "true",
9019
+ fill: "none",
9020
+ height: "12",
9021
+ viewBox: "0 0 12 12",
9022
+ width: "12",
9023
+ children: /*#__PURE__*/ jsx("path", {
9024
+ d: "M2 2L10 10M10 2L2 10",
9025
+ stroke: "currentColor",
9026
+ strokeLinecap: "round",
9027
+ strokeWidth: "1.5"
9028
+ })
9029
+ })
9030
+ }) : null
9031
+ ]
9032
+ }),
9033
+ description ? /*#__PURE__*/ jsx("span", {
9034
+ className: text_field_module.description,
9035
+ id: descriptionId,
9036
+ children: description
9037
+ }) : null,
9038
+ errorMessage ? /*#__PURE__*/ jsx("span", {
9039
+ className: text_field_module.error,
9040
+ id: errorId,
9041
+ children: errorMessage
9042
+ }) : null
9043
+ ]
8111
9044
  });
9045
+ });
9046
+ const bulk_tag_editor_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/bulk-tag-editor.module.css");
9047
+ var bulk_tag_editor_module_options = {};
9048
+ bulk_tag_editor_module_options.styleTagTransform = styleTagTransform_default();
9049
+ bulk_tag_editor_module_options.setAttributes = setAttributesWithoutAttributes_default();
9050
+ bulk_tag_editor_module_options.insert = insertBySelector_default().bind(null, "head");
9051
+ bulk_tag_editor_module_options.domAPI = styleDomAPI_default();
9052
+ bulk_tag_editor_module_options.insertStyleElement = insertStyleElement_default();
9053
+ injectStylesIntoStyleTag_default()(bulk_tag_editor_module_0.A, bulk_tag_editor_module_options);
9054
+ const bulk_tag_editor_module = bulk_tag_editor_module_0.A && bulk_tag_editor_module_0.A.locals ? bulk_tag_editor_module_0.A.locals : void 0;
9055
+ const NO_CHANGES = {
9056
+ add: [],
9057
+ remove: []
9058
+ };
9059
+ const fold = (s)=>s.trim().toLowerCase();
9060
+ function originalState(count, itemCount) {
9061
+ if (count <= 0) return "none";
9062
+ return count >= itemCount ? "all" : "some";
8112
9063
  }
8113
- function escapeRegExp(term) {
8114
- return term.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
8115
- }
8116
- function findMatchRanges(value, terms, isCaseSensitive) {
8117
- const nonEmptyTerms = terms.filter((term)=>term.length > 0);
8118
- if (0 === nonEmptyTerms.length) return [];
8119
- const flags = isCaseSensitive ? "g" : "gi";
8120
- const ranges = [];
8121
- for (const term of nonEmptyTerms){
8122
- const pattern = new RegExp(escapeRegExp(term), flags);
8123
- for (const match of value.matchAll(pattern))if (0 !== match[0].length) ranges.push([
8124
- match.index,
8125
- match.index + match[0].length
8126
- ]);
8127
- }
8128
- ranges.sort((a, b)=>a[0] - b[0]);
8129
- const merged = [];
8130
- for (const range of ranges){
8131
- const last = merged.at(-1);
8132
- if (last && range[0] <= last[1]) last[1] = Math.max(last[1], range[1]);
8133
- else merged.push(range);
9064
+ function BulkTagEditor(allProps) {
9065
+ const [layout, { label, ariaLabel, description, isDisabled = false, itemCount, tags, suggestions = [], value: valueProp, defaultValue, onChange, tagColor }] = splitLayoutItemProps(allProps);
9066
+ const { style: layoutStyle } = useLayoutItem(layout);
9067
+ if (!label && !ariaLabel) throw new Error("BulkTagEditor requires `label` or `ariaLabel`.");
9068
+ const uid = useId();
9069
+ const labelId = label ? `${uid}-label` : void 0;
9070
+ const descriptionId = description ? `${uid}-description` : void 0;
9071
+ const listId = `${uid}-list`;
9072
+ const isControlled = void 0 !== valueProp;
9073
+ const [uncontrolledValue, setUncontrolledValue] = useState(()=>defaultValue ?? NO_CHANGES);
9074
+ const changes = isControlled ? valueProp : uncontrolledValue;
9075
+ function commit(next) {
9076
+ if (!isControlled) setUncontrolledValue(next);
9077
+ onChange?.(next);
8134
9078
  }
8135
- return merged;
8136
- }
8137
- function toSegments(value, ranges) {
8138
- if (0 === ranges.length) return value.length > 0 ? [
8139
- {
8140
- text: value,
8141
- isMatch: false
8142
- }
8143
- ] : [];
8144
- const segments = [];
8145
- let cursor = 0;
8146
- for (const [start, end] of ranges){
8147
- if (start > cursor) segments.push({
8148
- text: value.slice(cursor, start),
8149
- isMatch: false
9079
+ const rows = (()=>{
9080
+ const counts = new Map();
9081
+ for (const t of tags.toSorted((a, b)=>b.count - a.count || a.tag.localeCompare(b.tag)))if (!counts.has(fold(t.tag))) counts.set(fold(t.tag), t);
9082
+ for (const tag of suggestions.toSorted((a, b)=>a.localeCompare(b)))if (!counts.has(fold(tag))) counts.set(fold(tag), {
9083
+ tag,
9084
+ count: 0
8150
9085
  });
8151
- segments.push({
8152
- text: value.slice(start, end),
8153
- isMatch: true
9086
+ const created = changes.add.filter((t)=>!counts.has(fold(t)));
9087
+ const all = [
9088
+ ...created.map((tag)=>({
9089
+ tag,
9090
+ count: 0
9091
+ })),
9092
+ ...counts.values()
9093
+ ];
9094
+ const add = new Set(changes.add.map(fold));
9095
+ const remove = new Set(changes.remove.map(fold));
9096
+ return all.map(({ tag, count })=>({
9097
+ tag,
9098
+ count,
9099
+ state: add.has(fold(tag)) ? "all" : remove.has(fold(tag)) ? "none" : originalState(count, itemCount)
9100
+ }));
9101
+ })();
9102
+ function setState(row, state) {
9103
+ const key = fold(row.tag);
9104
+ const add = changes.add.filter((t)=>fold(t) !== key);
9105
+ const remove = changes.remove.filter((t)=>fold(t) !== key);
9106
+ const start = originalState(row.count, itemCount);
9107
+ if ("all" === state && "all" !== start) add.push(row.tag);
9108
+ if ("none" === state && "none" !== start) remove.push(row.tag);
9109
+ commit({
9110
+ add,
9111
+ remove
8154
9112
  });
8155
- cursor = end;
8156
9113
  }
8157
- if (cursor < value.length) segments.push({
8158
- text: value.slice(cursor),
8159
- isMatch: false
8160
- });
8161
- return segments;
8162
- }
8163
- function useMark(value) {
8164
- const { terms, isCaseSensitive = false } = useContext(MarkContext);
8165
- return useMemo(()=>toSegments(value, findMatchRanges(value, terms, isCaseSensitive)), [
8166
- value,
8167
- terms.join("\u0000"),
8168
- isCaseSensitive
8169
- ]);
8170
- }
8171
- function Markable({ children }) {
8172
- const segments = useMark(children);
8173
- return /*#__PURE__*/ jsx(Fragment, {
8174
- children: segments.map((segment, index)=>segment.isMatch ? /*#__PURE__*/ jsx("mark", {
8175
- className: markable_module.mark,
8176
- children: segment.text
8177
- }, index) : segment.text)
8178
- });
8179
- }
8180
- const numeric_Numeric = /*#__PURE__*/ forwardRef(function({ align, children, color = "foreground", id, truncate, ...props }, ref) {
8181
- return /*#__PURE__*/ jsx("span", {
8182
- ref: ref,
8183
- id: id,
8184
- className: [
8185
- text_module.text,
8186
- text_module.numeric,
8187
- text_module[color],
8188
- align ? text_module[`align-${align}`] : void 0,
8189
- truncate ? text_module.truncate : void 0
8190
- ].filter(Boolean).join(" "),
8191
- ...props,
8192
- children: children
8193
- });
8194
- });
8195
- const TICK = 30000;
8196
- let clockNow = Date.now();
8197
- const listeners = new Set();
8198
- let date_time_timer;
8199
- function subscribeClock(listener) {
8200
- listeners.add(listener);
8201
- if (void 0 === date_time_timer) {
8202
- clockNow = Date.now();
8203
- date_time_timer = setInterval(()=>{
8204
- clockNow = Date.now();
8205
- for (const notify of listeners)notify();
8206
- }, TICK);
9114
+ function toggle(row) {
9115
+ const mixed = "some" === originalState(row.count, itemCount);
9116
+ const next = "all" === row.state ? "none" : "none" === row.state && mixed ? "some" : "all";
9117
+ setState(row, next);
8207
9118
  }
8208
- return ()=>{
8209
- listeners.delete(listener);
8210
- if (0 === listeners.size && void 0 !== date_time_timer) {
8211
- clearInterval(date_time_timer);
8212
- date_time_timer = void 0;
8213
- }
8214
- };
8215
- }
8216
- const noSubscribe = ()=>()=>{};
8217
- const readClock = ()=>clockNow;
8218
- function useClock(live) {
8219
- const [mountedAt] = useState(()=>Date.now());
8220
- const ticked = useSyncExternalStore(live ? subscribeClock : noSubscribe, readClock, readClock);
8221
- return live ? Math.max(ticked, mountedAt) : mountedAt;
8222
- }
8223
- function classes(color) {
8224
- return [
8225
- text_module.text,
8226
- color ? text_module[color] : void 0
8227
- ].filter(Boolean).join(" ");
8228
- }
8229
- const date_time_DateTime = /*#__PURE__*/ forwardRef(function({ color, display = "date", id, value, ...props }, ref) {
8230
- const { format } = useDateFormat();
8231
- const now = useClock("relative" === display);
8232
- const text = format(value, {
8233
- display,
8234
- now
8235
- });
8236
- const full = format(value, {
8237
- display: "full",
8238
- now
8239
- });
8240
- return /*#__PURE__*/ jsx("time", {
8241
- ref: ref,
8242
- id: id,
8243
- className: classes(color),
8244
- dateTime: toDateTimeAttribute(value),
8245
- title: "full" === display ? void 0 : full,
8246
- ...props,
8247
- children: text
8248
- });
8249
- });
8250
- const date_time_DateRange = /*#__PURE__*/ forwardRef(function({ color, end, id, start, withTime, ...props }, ref) {
8251
- const { format, formatRange } = useDateFormat();
8252
- const now = useClock(false);
8253
- const full = `${format(start, {
8254
- display: "full",
8255
- now
8256
- })} – ${format(end, {
8257
- display: "full",
8258
- now
8259
- })}`;
8260
- return /*#__PURE__*/ jsx("span", {
8261
- ref: ref,
8262
- id: id,
8263
- className: classes(color),
8264
- title: full,
8265
- ...props,
8266
- children: formatRange(start, end, {
8267
- now,
8268
- withTime
8269
- })
8270
- });
8271
- });
8272
- function createTextStyles(textStyles) {
8273
- const vars = {};
8274
- for (const [variant, style] of Object.entries(textStyles))if (style) {
8275
- if (void 0 !== style.size) vars[`--ox0-text-${variant}-size`] = style.size;
8276
- if (void 0 !== style.weight) vars[`--ox0-text-${variant}-weight`] = style.weight;
8277
- if (void 0 !== style.leading) vars[`--ox0-text-${variant}-leading`] = style.leading;
8278
- if (void 0 !== style.tracking) vars[`--ox0-text-${variant}-tracking`] = style.tracking;
8279
- if (void 0 !== style.transform) vars[`--ox0-text-${variant}-transform`] = style.transform;
9119
+ const [query, setQuery] = useState("");
9120
+ const q = fold(query);
9121
+ const shown = q ? rows.filter((r)=>fold(r.tag).includes(q)) : rows;
9122
+ const exact = rows.find((r)=>fold(r.tag) === q);
9123
+ function submitQuery() {
9124
+ const tag = query.trim();
9125
+ if (!tag) return;
9126
+ setState(exact ?? {
9127
+ tag,
9128
+ count: 0
9129
+ }, "all");
9130
+ setQuery("");
8280
9131
  }
8281
- return vars;
8282
- }
8283
- const defaultElement = {
8284
- display: "p",
8285
- "heading-lg": "h2",
8286
- heading: "h3",
8287
- "heading-sm": "h4",
8288
- body: "p",
8289
- "body-sm": "p",
8290
- label: "span",
8291
- caption: "span",
8292
- numeric: "span",
8293
- code: "code"
8294
- };
8295
- const defaultWrap = {
8296
- display: "balance",
8297
- "heading-lg": "balance",
8298
- heading: "balance",
8299
- "heading-sm": "balance"
8300
- };
8301
- const defaultColor = {
8302
- display: "foreground",
8303
- "heading-lg": "foreground",
8304
- heading: "foreground",
8305
- "heading-sm": "foreground",
8306
- body: "foreground",
8307
- "body-sm": "foreground",
8308
- label: "muted",
8309
- caption: "muted",
8310
- numeric: "foreground",
8311
- code: "foreground"
8312
- };
8313
- const text_Text = /*#__PURE__*/ forwardRef(function({ align, as, children, color, id, lineClamp, truncate = false, variant = "body", wrap, ...props }, ref) {
8314
- const Element = as ?? defaultElement[variant];
8315
- const resolvedColor = color ?? defaultColor[variant];
8316
- const resolvedWrap = wrap ?? defaultWrap[variant];
8317
- const inlineStyle = {};
8318
- if (resolvedWrap) inlineStyle.textWrap = resolvedWrap;
8319
- if (void 0 !== lineClamp) {
8320
- inlineStyle.display = "-webkit-box";
8321
- inlineStyle.WebkitLineClamp = lineClamp;
8322
- inlineStyle.WebkitBoxOrient = "vertical";
8323
- inlineStyle.overflow = "hidden";
9132
+ function handleKeyDown(e) {
9133
+ if ("Enter" !== e.key) return;
9134
+ e.preventDefault();
9135
+ submitQuery();
8324
9136
  }
8325
- return /*#__PURE__*/ jsx(Element, {
8326
- ref: ref,
8327
- id: id,
8328
- className: [
8329
- text_module.text,
8330
- text_module[variant],
8331
- text_module[resolvedColor],
8332
- align ? text_module[`align-${align}`] : void 0,
8333
- truncate && !lineClamp ? text_module.truncate : void 0
8334
- ].filter(Boolean).join(" "),
8335
- style: Object.keys(inlineStyle).length > 0 ? inlineStyle : void 0,
8336
- ...props,
8337
- children: children
9137
+ const findLabel = useMessage("ox0.bulkTagEditor.find", "Find or add a tag");
9138
+ const addLabel = useMessage("ox0.bulkTagEditor.add", "Add “{tag}”", {
9139
+ tag: query.trim()
9140
+ });
9141
+ const noneLabel = useMessage("ox0.bulkTagEditor.empty", "No tags yet");
9142
+ return /*#__PURE__*/ jsxs("div", {
9143
+ className: bulk_tag_editor_module.root,
9144
+ style: layoutStyle,
9145
+ children: [
9146
+ label ? /*#__PURE__*/ jsx("span", {
9147
+ className: field_module.label,
9148
+ id: labelId,
9149
+ children: label
9150
+ }) : null,
9151
+ description ? /*#__PURE__*/ jsx("span", {
9152
+ className: bulk_tag_editor_module.description,
9153
+ id: descriptionId,
9154
+ children: description
9155
+ }) : null,
9156
+ /*#__PURE__*/ jsx(text_field_TextField, {
9157
+ ariaLabel: findLabel,
9158
+ placeholder: findLabel,
9159
+ "aria-controls": listId,
9160
+ isDisabled: isDisabled,
9161
+ value: query,
9162
+ onChange: setQuery,
9163
+ onKeyDown: handleKeyDown
9164
+ }),
9165
+ /*#__PURE__*/ jsxs("fieldset", {
9166
+ "aria-describedby": descriptionId,
9167
+ "aria-label": label ? void 0 : ariaLabel,
9168
+ "aria-labelledby": labelId,
9169
+ className: bulk_tag_editor_module.list,
9170
+ id: listId,
9171
+ children: [
9172
+ q && !exact ? /*#__PURE__*/ jsx(button_Button, {
9173
+ variant: "ghost",
9174
+ size: "sm",
9175
+ isDisabled: isDisabled,
9176
+ onPress: submitQuery,
9177
+ children: addLabel
9178
+ }) : null,
9179
+ shown.map((row)=>/*#__PURE__*/ jsx(BulkTagRow, {
9180
+ row: row,
9181
+ color: tagColor?.(row.tag),
9182
+ hasColors: void 0 !== tagColor,
9183
+ itemCount: itemCount,
9184
+ isDisabled: isDisabled,
9185
+ onToggle: ()=>toggle(row)
9186
+ }, row.tag)),
9187
+ 0 !== rows.length || q ? null : /*#__PURE__*/ jsx("span", {
9188
+ className: bulk_tag_editor_module.empty,
9189
+ children: noneLabel
9190
+ })
9191
+ ]
9192
+ })
9193
+ ]
8338
9194
  });
8339
- });
9195
+ }
9196
+ function BulkTagRow({ row, color, hasColors, itemCount, isDisabled, onToggle }) {
9197
+ const mixed = "some" === row.state;
9198
+ const countLabel = useMessage("ox0.bulkTagEditor.count", "On {count} of {total}", {
9199
+ count: String(row.count),
9200
+ total: String(itemCount)
9201
+ });
9202
+ return /*#__PURE__*/ jsx(checkbox_Checkbox, {
9203
+ label: /*#__PURE__*/ jsxs("span", {
9204
+ className: bulk_tag_editor_module.tagLabel,
9205
+ children: [
9206
+ hasColors ? /*#__PURE__*/ jsx(TagColorDot, {
9207
+ color: color
9208
+ }) : null,
9209
+ row.tag
9210
+ ]
9211
+ }),
9212
+ description: mixed ? countLabel : void 0,
9213
+ isDisabled: isDisabled,
9214
+ isIndeterminate: mixed,
9215
+ isSelected: "all" === row.state,
9216
+ onChange: onToggle
9217
+ });
9218
+ }
8340
9219
  const link_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/link.module.css");
8341
9220
  var link_module_options = {};
8342
9221
  link_module_options.styleTagTransform = styleTagTransform_default();
@@ -8437,88 +9316,6 @@ const button_group_ButtonGroup = /*#__PURE__*/ forwardRef(function({ children, i
8437
9316
  children: children
8438
9317
  });
8439
9318
  });
8440
- const checkbox_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/checkbox.module.css");
8441
- var checkbox_module_options = {};
8442
- checkbox_module_options.styleTagTransform = styleTagTransform_default();
8443
- checkbox_module_options.setAttributes = setAttributesWithoutAttributes_default();
8444
- checkbox_module_options.insert = insertBySelector_default().bind(null, "head");
8445
- checkbox_module_options.domAPI = styleDomAPI_default();
8446
- checkbox_module_options.insertStyleElement = insertStyleElement_default();
8447
- injectStylesIntoStyleTag_default()(checkbox_module_0.A, checkbox_module_options);
8448
- const checkbox_module = checkbox_module_0.A && checkbox_module_0.A.locals ? checkbox_module_0.A.locals : void 0;
8449
- const choice_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/choice.module.css");
8450
- var choice_module_options = {};
8451
- choice_module_options.styleTagTransform = styleTagTransform_default();
8452
- choice_module_options.setAttributes = setAttributesWithoutAttributes_default();
8453
- choice_module_options.insert = insertBySelector_default().bind(null, "head");
8454
- choice_module_options.domAPI = styleDomAPI_default();
8455
- choice_module_options.insertStyleElement = insertStyleElement_default();
8456
- injectStylesIntoStyleTag_default()(choice_module_0.A, choice_module_options);
8457
- const choice_module = choice_module_0.A && choice_module_0.A.locals ? choice_module_0.A.locals : void 0;
8458
- const checkbox_Checkbox = /*#__PURE__*/ forwardRef(function({ label, description, isDisabled, isInvalid, isSelected, isIndeterminate = false, defaultSelected, errorMessage, onChange, id: idProp, ...restProps }, ref) {
8459
- const inputRef = useRef(null);
8460
- useLayoutEffect(()=>{
8461
- if (inputRef.current) inputRef.current.indeterminate = isIndeterminate;
8462
- }, [
8463
- isIndeterminate
8464
- ]);
8465
- const { style: layoutStyle } = useLayoutItem(restProps);
8466
- const [, props] = splitLayoutItemProps(restProps);
8467
- const generatedId = useId();
8468
- const id = idProp ?? generatedId;
8469
- const descriptionId = description ? `${id}-description` : void 0;
8470
- const errorId = errorMessage ? `${id}-error` : void 0;
8471
- const describedBy = [
8472
- descriptionId,
8473
- errorId
8474
- ].filter(Boolean).join(" ") || void 0;
8475
- const invalid = isInvalid || !!errorMessage;
8476
- return /*#__PURE__*/ jsxs("div", {
8477
- className: checkbox_module.root,
8478
- style: layoutStyle,
8479
- children: [
8480
- /*#__PURE__*/ jsxs("label", {
8481
- className: `${checkbox_module.label}${isDisabled ? ` ${checkbox_module.disabled}` : ""}`,
8482
- children: [
8483
- /*#__PURE__*/ jsx("input", {
8484
- ...props,
8485
- ref: (node)=>{
8486
- inputRef.current = node;
8487
- if ("function" == typeof ref) ref(node);
8488
- else if (ref) ref.current = node;
8489
- },
8490
- "aria-describedby": describedBy,
8491
- "aria-invalid": invalid || void 0,
8492
- checked: isSelected,
8493
- className: `${choice_module.control} ${choice_module.checkbox}`,
8494
- defaultChecked: defaultSelected,
8495
- disabled: isDisabled,
8496
- id: id,
8497
- onChange: (e)=>onChange?.(e.target.checked),
8498
- type: "checkbox"
8499
- }),
8500
- /*#__PURE__*/ jsxs("span", {
8501
- children: [
8502
- label ? /*#__PURE__*/ jsx("span", {
8503
- children: label
8504
- }) : null,
8505
- description ? /*#__PURE__*/ jsx("span", {
8506
- className: checkbox_module.description,
8507
- id: descriptionId,
8508
- children: description
8509
- }) : null
8510
- ]
8511
- })
8512
- ]
8513
- }),
8514
- errorMessage ? /*#__PURE__*/ jsx("span", {
8515
- className: checkbox_module.error,
8516
- id: errorId,
8517
- children: errorMessage
8518
- }) : null
8519
- ]
8520
- });
8521
- });
8522
9319
  const checkbox_group_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/checkbox-group.module.css");
8523
9320
  var checkbox_group_module_options = {};
8524
9321
  checkbox_group_module_options.styleTagTransform = styleTagTransform_default();
@@ -8528,15 +9325,6 @@ checkbox_group_module_options.domAPI = styleDomAPI_default();
8528
9325
  checkbox_group_module_options.insertStyleElement = insertStyleElement_default();
8529
9326
  injectStylesIntoStyleTag_default()(checkbox_group_module_0.A, checkbox_group_module_options);
8530
9327
  const checkbox_group_module = checkbox_group_module_0.A && checkbox_group_module_0.A.locals ? checkbox_group_module_0.A.locals : void 0;
8531
- const field_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/field.module.css");
8532
- var field_module_options = {};
8533
- field_module_options.styleTagTransform = styleTagTransform_default();
8534
- field_module_options.setAttributes = setAttributesWithoutAttributes_default();
8535
- field_module_options.insert = insertBySelector_default().bind(null, "head");
8536
- field_module_options.domAPI = styleDomAPI_default();
8537
- field_module_options.insertStyleElement = insertStyleElement_default();
8538
- injectStylesIntoStyleTag_default()(field_module_0.A, field_module_options);
8539
- const field_module = field_module_0.A && field_module_0.A.locals ? field_module_0.A.locals : void 0;
8540
9328
  const CheckboxGroupContext = /*#__PURE__*/ createContext(null);
8541
9329
  function useCheckboxGroupContext() {
8542
9330
  const ctx = useContext(CheckboxGroupContext);
@@ -12632,15 +13420,6 @@ const switch_Switch = /*#__PURE__*/ forwardRef(function({ label, description, is
12632
13420
  ]
12633
13421
  });
12634
13422
  });
12635
- const text_field_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/text-field.module.css");
12636
- var text_field_module_options = {};
12637
- text_field_module_options.styleTagTransform = styleTagTransform_default();
12638
- text_field_module_options.setAttributes = setAttributesWithoutAttributes_default();
12639
- text_field_module_options.insert = insertBySelector_default().bind(null, "head");
12640
- text_field_module_options.domAPI = styleDomAPI_default();
12641
- text_field_module_options.insertStyleElement = insertStyleElement_default();
12642
- injectStylesIntoStyleTag_default()(text_field_module_0.A, text_field_module_options);
12643
- const text_field_module = text_field_module_0.A && text_field_module_0.A.locals ? text_field_module_0.A.locals : void 0;
12644
13423
  const text_area_TextArea = /*#__PURE__*/ forwardRef(function({ ariaLabel, className, description, errorMessage, id: idProp, isDisabled, isInvalid, label, lines, minLines = lines ?? 1, maxLines = lines ?? 1 / 0, onChange, style, value, defaultValue, ...restProps }, forwardedRef) {
12645
13424
  const { style: layoutStyle } = useLayoutItem(restProps);
12646
13425
  const [, props] = splitLayoutItemProps(restProps);
@@ -13227,321 +14006,894 @@ const slider_Slider = /*#__PURE__*/ forwardRef(function({ ariaLabel, defaultValu
13227
14006
  const handleChange = useCallback((e)=>{
13228
14007
  commit(e.target.valueAsNumber);
13229
14008
  }, [
13230
- commit
14009
+ commit
14010
+ ]);
14011
+ const handleKeyDown = useCallback((e)=>{
14012
+ const cur = currentValue;
14013
+ const large = 10 * step;
14014
+ if ("ArrowRight" === e.key || "ArrowUp" === e.key) {
14015
+ e.preventDefault();
14016
+ commit(cur + step);
14017
+ } else if ("ArrowLeft" === e.key || "ArrowDown" === e.key) {
14018
+ e.preventDefault();
14019
+ commit(cur - step);
14020
+ } else if ("PageUp" === e.key) {
14021
+ e.preventDefault();
14022
+ commit(cur + large);
14023
+ } else if ("PageDown" === e.key) {
14024
+ e.preventDefault();
14025
+ commit(cur - large);
14026
+ } else if ("Home" === e.key) {
14027
+ e.preventDefault();
14028
+ commit(min);
14029
+ } else if ("End" === e.key) {
14030
+ e.preventDefault();
14031
+ commit(max);
14032
+ }
14033
+ onKeyDown?.(e);
14034
+ }, [
14035
+ currentValue,
14036
+ step,
14037
+ min,
14038
+ max,
14039
+ commit,
14040
+ onKeyDown
14041
+ ]);
14042
+ return /*#__PURE__*/ jsxs("div", {
14043
+ className: slider_module.root,
14044
+ style: layoutStyle,
14045
+ children: [
14046
+ label ? /*#__PURE__*/ jsx("label", {
14047
+ className: field_module.label,
14048
+ htmlFor: id,
14049
+ children: label
14050
+ }) : null,
14051
+ /*#__PURE__*/ jsx("input", {
14052
+ ...props,
14053
+ ref: ref,
14054
+ "aria-describedby": describedBy,
14055
+ "aria-invalid": invalid || void 0,
14056
+ "aria-label": ariaLabel,
14057
+ "aria-valuemax": max,
14058
+ "aria-valuemin": min,
14059
+ "aria-valuenow": currentValue,
14060
+ className: [
14061
+ slider_module.track,
14062
+ invalid ? slider_module.invalid : null
14063
+ ].filter(Boolean).join(" "),
14064
+ disabled: isDisabled,
14065
+ id: id,
14066
+ max: max,
14067
+ min: min,
14068
+ step: step,
14069
+ style: {
14070
+ "--slider-percent": `${percent}%`
14071
+ },
14072
+ type: "range",
14073
+ value: currentValue,
14074
+ onChange: handleChange,
14075
+ onKeyDown: handleKeyDown
14076
+ }),
14077
+ description ? /*#__PURE__*/ jsx("span", {
14078
+ className: slider_module.description,
14079
+ id: descriptionId,
14080
+ children: description
14081
+ }) : null,
14082
+ errorMessage ? /*#__PURE__*/ jsx("span", {
14083
+ className: slider_module.error,
14084
+ id: errorId,
14085
+ children: errorMessage
14086
+ }) : null
14087
+ ]
14088
+ });
14089
+ });
14090
+ const table_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/table.module.css");
14091
+ var table_module_options = {};
14092
+ table_module_options.styleTagTransform = styleTagTransform_default();
14093
+ table_module_options.setAttributes = setAttributesWithoutAttributes_default();
14094
+ table_module_options.insert = insertBySelector_default().bind(null, "head");
14095
+ table_module_options.domAPI = styleDomAPI_default();
14096
+ table_module_options.insertStyleElement = insertStyleElement_default();
14097
+ injectStylesIntoStyleTag_default()(table_module_0.A, table_module_options);
14098
+ const table_module = table_module_0.A && table_module_0.A.locals ? table_module_0.A.locals : void 0;
14099
+ const alignClass = {
14100
+ start: void 0,
14101
+ center: table_module.alignCenter,
14102
+ end: table_module.alignEnd
14103
+ };
14104
+ const TableContext = /*#__PURE__*/ createContext(null);
14105
+ function useTableContext() {
14106
+ const ctx = useContext(TableContext);
14107
+ if (!ctx) throw new Error("Table sub-components must be used inside <Table>");
14108
+ return ctx;
14109
+ }
14110
+ function Table({ ariaLabel, children, selectionMode = "none", selectedKeys: selectedKeysProp, defaultSelectedKeys, onSelectionChange, sortColumn: sortColumnProp, defaultSortColumn, sortDirection: sortDirectionProp, defaultSortDirection, onSortChange }) {
14111
+ const isGrid = "none" !== selectionMode;
14112
+ const isControlledSelection = void 0 !== selectedKeysProp;
14113
+ const isControlledSort = void 0 !== sortColumnProp;
14114
+ const [internalSelectedKeys, setInternalSelectedKeys] = useState(()=>new Set(defaultSelectedKeys));
14115
+ const selectedKeys = useMemo(()=>isControlledSelection ? new Set(selectedKeysProp) : internalSelectedKeys, [
14116
+ isControlledSelection,
14117
+ selectedKeysProp,
14118
+ internalSelectedKeys
14119
+ ]);
14120
+ const toggleKey = useCallback((key)=>{
14121
+ const next = new Set(selectedKeys);
14122
+ if ("single" === selectionMode) if (next.has(key)) next.clear();
14123
+ else {
14124
+ next.clear();
14125
+ next.add(key);
14126
+ }
14127
+ else if (next.has(key)) next.delete(key);
14128
+ else next.add(key);
14129
+ if (!isControlledSelection) setInternalSelectedKeys(next);
14130
+ onSelectionChange?.(next);
14131
+ }, [
14132
+ selectedKeys,
14133
+ selectionMode,
14134
+ isControlledSelection,
14135
+ onSelectionChange
14136
+ ]);
14137
+ const [internalSortColumn, setInternalSortColumn] = useState(defaultSortColumn);
14138
+ const [internalSortDirection, setInternalSortDirection] = useState(defaultSortDirection);
14139
+ const activeSortColumn = isControlledSort ? sortColumnProp : internalSortColumn;
14140
+ const activeSortDirection = isControlledSort ? sortDirectionProp : internalSortDirection;
14141
+ const toggleSort = useCallback((column)=>{
14142
+ const newDir = column === activeSortColumn && "ascending" === activeSortDirection ? "descending" : "ascending";
14143
+ if (!isControlledSort) {
14144
+ setInternalSortColumn(column);
14145
+ setInternalSortDirection(newDir);
14146
+ }
14147
+ onSortChange?.(column, newDir);
14148
+ }, [
14149
+ activeSortColumn,
14150
+ activeSortDirection,
14151
+ isControlledSort,
14152
+ onSortChange
14153
+ ]);
14154
+ const tableRef = useRef(null);
14155
+ useEffect(()=>{
14156
+ if (!isGrid || !tableRef.current) return;
14157
+ const cells = tableRef.current.querySelectorAll("[role='gridcell']");
14158
+ const hasTabStop = Array.from(cells).some((c)=>c.tabIndex >= 0);
14159
+ if (!hasTabStop && cells[0]) cells[0].tabIndex = 0;
14160
+ }, [
14161
+ isGrid
14162
+ ]);
14163
+ const focusCell = useCallback((cell)=>{
14164
+ if (!cell) return;
14165
+ tableRef.current?.querySelectorAll("[role='gridcell']").forEach((c)=>{
14166
+ c.tabIndex = -1;
14167
+ });
14168
+ cell.tabIndex = 0;
14169
+ cell.focus();
14170
+ }, []);
14171
+ const getBodyRows = useCallback(()=>Array.from(tableRef.current?.querySelectorAll("tbody > tr") ?? []), []);
14172
+ const getBodyCells = useCallback(()=>getBodyRows().map((row)=>Array.from(row.querySelectorAll("[role='gridcell']"))), [
14173
+ getBodyRows
13231
14174
  ]);
13232
14175
  const handleKeyDown = useCallback((e)=>{
13233
- const cur = currentValue;
13234
- const large = 10 * step;
13235
- if ("ArrowRight" === e.key || "ArrowUp" === e.key) {
14176
+ if (!isGrid) return;
14177
+ const cells = getBodyCells();
14178
+ if (0 === cells.length) return;
14179
+ const focused = document.activeElement instanceof HTMLElement ? document.activeElement : null;
14180
+ const rowIdx = cells.findIndex((row)=>row.some((c)=>c === focused || c.contains(focused)));
14181
+ if (-1 === rowIdx) return;
14182
+ const row = cells[rowIdx];
14183
+ const colIdx = row.findIndex((c)=>c === focused || c.contains(focused));
14184
+ if (-1 === colIdx) return;
14185
+ if ("ArrowRight" === e.key) {
13236
14186
  e.preventDefault();
13237
- commit(cur + step);
13238
- } else if ("ArrowLeft" === e.key || "ArrowDown" === e.key) {
14187
+ focusCell(row[colIdx + 1]);
14188
+ } else if ("ArrowLeft" === e.key) {
13239
14189
  e.preventDefault();
13240
- commit(cur - step);
13241
- } else if ("PageUp" === e.key) {
14190
+ focusCell(row[colIdx - 1]);
14191
+ } else if ("ArrowDown" === e.key) {
13242
14192
  e.preventDefault();
13243
- commit(cur + large);
13244
- } else if ("PageDown" === e.key) {
14193
+ focusCell(cells[rowIdx + 1]?.[colIdx]);
14194
+ } else if ("ArrowUp" === e.key) {
13245
14195
  e.preventDefault();
13246
- commit(cur - large);
14196
+ focusCell(cells[rowIdx - 1]?.[colIdx]);
13247
14197
  } else if ("Home" === e.key) {
13248
14198
  e.preventDefault();
13249
- commit(min);
14199
+ focusCell(e.ctrlKey ? cells[0]?.[0] : row[0]);
13250
14200
  } else if ("End" === e.key) {
13251
14201
  e.preventDefault();
13252
- commit(max);
14202
+ const lastRow = cells[cells.length - 1];
14203
+ focusCell(e.ctrlKey ? lastRow?.[lastRow.length - 1] : row[row.length - 1]);
14204
+ } else if (" " === e.key) {
14205
+ e.preventDefault();
14206
+ const bodyRows = getBodyRows();
14207
+ const key = bodyRows[rowIdx]?.dataset.key;
14208
+ if (key) toggleKey(key);
13253
14209
  }
13254
- onKeyDown?.(e);
13255
14210
  }, [
13256
- currentValue,
13257
- step,
13258
- min,
13259
- max,
13260
- commit,
13261
- onKeyDown
14211
+ isGrid,
14212
+ getBodyCells,
14213
+ getBodyRows,
14214
+ focusCell,
14215
+ toggleKey
13262
14216
  ]);
13263
- return /*#__PURE__*/ jsxs("div", {
13264
- className: slider_module.root,
14217
+ const ctx = useMemo(()=>({
14218
+ selectionMode,
14219
+ selectedKeys,
14220
+ toggleKey,
14221
+ sortColumn: activeSortColumn,
14222
+ sortDirection: activeSortDirection,
14223
+ toggleSort,
14224
+ isGrid
14225
+ }), [
14226
+ selectionMode,
14227
+ selectedKeys,
14228
+ toggleKey,
14229
+ activeSortColumn,
14230
+ activeSortDirection,
14231
+ toggleSort,
14232
+ isGrid
14233
+ ]);
14234
+ return /*#__PURE__*/ jsx(TableContext.Provider, {
14235
+ value: ctx,
14236
+ children: /*#__PURE__*/ jsx("div", {
14237
+ className: table_module.wrapper,
14238
+ children: /*#__PURE__*/ jsx("table", {
14239
+ ref: tableRef,
14240
+ "aria-label": ariaLabel,
14241
+ className: table_module.table,
14242
+ role: isGrid ? "grid" : "table",
14243
+ onKeyDown: handleKeyDown,
14244
+ children: children
14245
+ })
14246
+ })
14247
+ });
14248
+ }
14249
+ function TableHeader({ children }) {
14250
+ return /*#__PURE__*/ jsx("thead", {
14251
+ className: table_module.thead,
14252
+ children: /*#__PURE__*/ jsx("tr", {
14253
+ children: children
14254
+ })
14255
+ });
14256
+ }
14257
+ function TableColumn({ id, isSortable, align = "start", children }) {
14258
+ const { sortColumn, sortDirection, toggleSort } = useTableContext();
14259
+ const isCurrentSort = Boolean(isSortable && void 0 !== id && sortColumn === id);
14260
+ const ariaSort = isSortable ? isCurrentSort && null != sortDirection ? sortDirection : "none" : void 0;
14261
+ return /*#__PURE__*/ jsx("th", {
14262
+ scope: "col",
14263
+ className: [
14264
+ table_module.th,
14265
+ alignClass[align]
14266
+ ].filter(Boolean).join(" "),
14267
+ "aria-sort": ariaSort,
14268
+ children: isSortable && void 0 !== id ? /*#__PURE__*/ jsxs("button", {
14269
+ className: table_module.sortButton,
14270
+ type: "button",
14271
+ onClick: ()=>toggleSort(id),
14272
+ children: [
14273
+ children,
14274
+ /*#__PURE__*/ jsx("span", {
14275
+ className: table_module.sortIcon,
14276
+ "aria-hidden": "true",
14277
+ children: isCurrentSort && "ascending" === sortDirection ? "↑" : isCurrentSort && "descending" === sortDirection ? "↓" : "↕"
14278
+ })
14279
+ ]
14280
+ }) : children
14281
+ });
14282
+ }
14283
+ function TableBody({ children }) {
14284
+ return /*#__PURE__*/ jsx("tbody", {
14285
+ className: table_module.tbody,
14286
+ children: children
14287
+ });
14288
+ }
14289
+ function TableRow({ id, children }) {
14290
+ const { isGrid, selectedKeys } = useTableContext();
14291
+ const isSelected = void 0 !== id && selectedKeys.has(id);
14292
+ return /*#__PURE__*/ jsx("tr", {
14293
+ className: [
14294
+ table_module.tr,
14295
+ isSelected ? table_module.selected : null
14296
+ ].filter(Boolean).join(" "),
14297
+ "data-key": id,
14298
+ "data-selected": isSelected || void 0,
14299
+ "aria-selected": isGrid ? isSelected : void 0,
14300
+ children: children
14301
+ });
14302
+ }
14303
+ function TableCell({ align = "start", children }) {
14304
+ const { isGrid } = useTableContext();
14305
+ return /*#__PURE__*/ jsx("td", {
14306
+ className: [
14307
+ table_module.td,
14308
+ alignClass[align]
14309
+ ].filter(Boolean).join(" "),
14310
+ role: isGrid ? "gridcell" : void 0,
14311
+ tabIndex: isGrid ? -1 : void 0,
14312
+ children: children
14313
+ });
14314
+ }
14315
+ const TAG_NEUTRALS = [
14316
+ "gray",
14317
+ "silver",
14318
+ "ink"
14319
+ ];
14320
+ const TAG_HUES = [
14321
+ "red",
14322
+ "orange",
14323
+ "yellow",
14324
+ "green",
14325
+ "teal",
14326
+ "blue",
14327
+ "purple",
14328
+ "pink"
14329
+ ];
14330
+ const TAG_COLORS = [
14331
+ ...TAG_NEUTRALS,
14332
+ ...TAG_HUES
14333
+ ];
14334
+ const tag_color_picker_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/tag-color-picker.module.css");
14335
+ var tag_color_picker_module_options = {};
14336
+ tag_color_picker_module_options.styleTagTransform = styleTagTransform_default();
14337
+ tag_color_picker_module_options.setAttributes = setAttributesWithoutAttributes_default();
14338
+ tag_color_picker_module_options.insert = insertBySelector_default().bind(null, "head");
14339
+ tag_color_picker_module_options.domAPI = styleDomAPI_default();
14340
+ tag_color_picker_module_options.insertStyleElement = insertStyleElement_default();
14341
+ injectStylesIntoStyleTag_default()(tag_color_picker_module_0.A, tag_color_picker_module_options);
14342
+ const tag_color_picker_module = tag_color_picker_module_0.A && tag_color_picker_module_0.A.locals ? tag_color_picker_module_0.A.locals : void 0;
14343
+ const tag_color_picker_TagColorPicker = /*#__PURE__*/ forwardRef(function(allProps, ref) {
14344
+ const [layout, { label, ariaLabel, description, isDisabled = false, isInvalid, errorMessage, value: valueProp, defaultValue = "gray", onChange }] = splitLayoutItemProps(allProps);
14345
+ const { style: layoutStyle } = useLayoutItem(layout);
14346
+ if (!label && !ariaLabel) throw new Error("TagColorPicker requires `label` or `ariaLabel`.");
14347
+ const uid = useId();
14348
+ const descriptionId = description ? `${uid}-description` : void 0;
14349
+ const errorId = errorMessage ? `${uid}-error` : void 0;
14350
+ const invalid = isInvalid || !!errorMessage;
14351
+ const [uncontrolled, setUncontrolled] = useState(defaultValue);
14352
+ const value = valueProp ?? uncontrolled;
14353
+ function choose(next) {
14354
+ if (void 0 === valueProp) setUncontrolled(next);
14355
+ onChange?.(next);
14356
+ }
14357
+ const swatch = (color, place)=>/*#__PURE__*/ jsx(Swatch, {
14358
+ place: place,
14359
+ color: color,
14360
+ name: uid,
14361
+ isSelected: color === value,
14362
+ onSelect: ()=>choose(color)
14363
+ }, color);
14364
+ return /*#__PURE__*/ jsxs("fieldset", {
14365
+ ref: ref,
14366
+ "aria-describedby": [
14367
+ descriptionId,
14368
+ errorId
14369
+ ].filter(Boolean).join(" ") || void 0,
14370
+ "aria-invalid": invalid || void 0,
14371
+ "aria-label": label ? void 0 : ariaLabel,
14372
+ className: tag_color_picker_module.root,
14373
+ disabled: isDisabled,
13265
14374
  style: layoutStyle,
13266
14375
  children: [
13267
- label ? /*#__PURE__*/ jsx("label", {
13268
- className: field_module.label,
13269
- htmlFor: id,
14376
+ label ? /*#__PURE__*/ jsx("legend", {
14377
+ className: `${field_module.label} ${tag_color_picker_module.legend}`,
13270
14378
  children: label
13271
14379
  }) : null,
13272
- /*#__PURE__*/ jsx("input", {
13273
- ...props,
13274
- ref: ref,
13275
- "aria-describedby": describedBy,
13276
- "aria-invalid": invalid || void 0,
13277
- "aria-label": ariaLabel,
13278
- "aria-valuemax": max,
13279
- "aria-valuemin": min,
13280
- "aria-valuenow": currentValue,
13281
- className: [
13282
- slider_module.track,
13283
- invalid ? slider_module.invalid : null
13284
- ].filter(Boolean).join(" "),
13285
- disabled: isDisabled,
13286
- id: id,
13287
- max: max,
13288
- min: min,
13289
- step: step,
13290
- style: {
13291
- "--slider-percent": `${percent}%`
13292
- },
13293
- type: "range",
13294
- value: currentValue,
13295
- onChange: handleChange,
13296
- onKeyDown: handleKeyDown
13297
- }),
13298
14380
  description ? /*#__PURE__*/ jsx("span", {
13299
- className: slider_module.description,
14381
+ className: tag_color_picker_module.description,
13300
14382
  id: descriptionId,
13301
14383
  children: description
13302
14384
  }) : null,
14385
+ /*#__PURE__*/ jsxs("span", {
14386
+ className: tag_color_picker_module.wheel,
14387
+ children: [
14388
+ TAG_NEUTRALS.map((color, i)=>swatch(color, {
14389
+ angle: (300 + 360 / TAG_NEUTRALS.length * i) % 360,
14390
+ ring: "inner"
14391
+ })),
14392
+ TAG_HUES.map((color, i)=>swatch(color, {
14393
+ angle: 360 / TAG_HUES.length * i,
14394
+ ring: "outer"
14395
+ }))
14396
+ ]
14397
+ }),
13303
14398
  errorMessage ? /*#__PURE__*/ jsx("span", {
13304
- className: slider_module.error,
14399
+ className: tag_color_picker_module.error,
13305
14400
  id: errorId,
13306
14401
  children: errorMessage
13307
14402
  }) : null
13308
14403
  ]
13309
14404
  });
13310
14405
  });
13311
- const table_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/table.module.css");
13312
- var table_module_options = {};
13313
- table_module_options.styleTagTransform = styleTagTransform_default();
13314
- table_module_options.setAttributes = setAttributesWithoutAttributes_default();
13315
- table_module_options.insert = insertBySelector_default().bind(null, "head");
13316
- table_module_options.domAPI = styleDomAPI_default();
13317
- table_module_options.insertStyleElement = insertStyleElement_default();
13318
- injectStylesIntoStyleTag_default()(table_module_0.A, table_module_options);
13319
- const table_module = table_module_0.A && table_module_0.A.locals ? table_module_0.A.locals : void 0;
13320
- const alignClass = {
13321
- start: void 0,
13322
- center: table_module.alignCenter,
13323
- end: table_module.alignEnd
13324
- };
13325
- const TableContext = /*#__PURE__*/ createContext(null);
13326
- function useTableContext() {
13327
- const ctx = useContext(TableContext);
13328
- if (!ctx) throw new Error("Table sub-components must be used inside <Table>");
13329
- return ctx;
14406
+ function TagColorButton({ ariaLabel, isDisabled = false, value: valueProp, defaultValue = "gray", onChange }) {
14407
+ const [isOpen, setIsOpen] = useState(false);
14408
+ const [uncontrolled, setUncontrolled] = useState(defaultValue);
14409
+ const value = valueProp ?? uncontrolled;
14410
+ const colorName = useMessage(`ox0.tagColor.${value}`, COLOR_NAMES[value]);
14411
+ const buttonLabel = useMessage("ox0.tagColorButton.label", "{label}: {color}", {
14412
+ label: ariaLabel,
14413
+ color: colorName
14414
+ });
14415
+ function choose(next) {
14416
+ if (void 0 === valueProp) setUncontrolled(next);
14417
+ onChange?.(next);
14418
+ setIsOpen(false);
14419
+ }
14420
+ return /*#__PURE__*/ jsxs(Popover, {
14421
+ isOpen: isOpen,
14422
+ onOpenChange: setIsOpen,
14423
+ placement: "bottom",
14424
+ children: [
14425
+ /*#__PURE__*/ jsx(PopoverTrigger, {
14426
+ children: /*#__PURE__*/ jsx("button", {
14427
+ "aria-label": buttonLabel,
14428
+ className: tag_color_picker_module.button,
14429
+ disabled: isDisabled,
14430
+ title: colorName,
14431
+ type: "button",
14432
+ children: /*#__PURE__*/ jsx("span", {
14433
+ "aria-hidden": true,
14434
+ className: `${tag_color_module.hue} ${tag_color_picker_module.swatch}`,
14435
+ "data-color": value
14436
+ })
14437
+ })
14438
+ }),
14439
+ /*#__PURE__*/ jsx(PopoverContent, {
14440
+ className: tag_color_picker_module.popover,
14441
+ children: /*#__PURE__*/ jsx(tag_color_picker_TagColorPicker, {
14442
+ ariaLabel: ariaLabel,
14443
+ value: value,
14444
+ onChange: choose
14445
+ })
14446
+ })
14447
+ ]
14448
+ });
13330
14449
  }
13331
- function Table({ ariaLabel, children, selectionMode = "none", selectedKeys: selectedKeysProp, defaultSelectedKeys, onSelectionChange, sortColumn: sortColumnProp, defaultSortColumn, sortDirection: sortDirectionProp, defaultSortDirection, onSortChange }) {
13332
- const isGrid = "none" !== selectionMode;
13333
- const isControlledSelection = void 0 !== selectedKeysProp;
13334
- const isControlledSort = void 0 !== sortColumnProp;
13335
- const [internalSelectedKeys, setInternalSelectedKeys] = useState(()=>new Set(defaultSelectedKeys));
13336
- const selectedKeys = useMemo(()=>isControlledSelection ? new Set(selectedKeysProp) : internalSelectedKeys, [
13337
- isControlledSelection,
13338
- selectedKeysProp,
13339
- internalSelectedKeys
13340
- ]);
13341
- const toggleKey = useCallback((key)=>{
13342
- const next = new Set(selectedKeys);
13343
- if ("single" === selectionMode) if (next.has(key)) next.clear();
13344
- else {
13345
- next.clear();
13346
- next.add(key);
13347
- }
13348
- else if (next.has(key)) next.delete(key);
13349
- else next.add(key);
13350
- if (!isControlledSelection) setInternalSelectedKeys(next);
13351
- onSelectionChange?.(next);
14450
+ const COLOR_NAMES = {
14451
+ gray: "Gray",
14452
+ silver: "Silver",
14453
+ ink: "Ink",
14454
+ red: "Red",
14455
+ orange: "Orange",
14456
+ yellow: "Yellow",
14457
+ green: "Green",
14458
+ teal: "Teal",
14459
+ blue: "Blue",
14460
+ purple: "Purple",
14461
+ pink: "Pink"
14462
+ };
14463
+ function Swatch({ place, color, name, isSelected, onSelect }) {
14464
+ const colorName = useMessage(`ox0.tagColor.${color}`, COLOR_NAMES[color]);
14465
+ const ringStyle = {
14466
+ "--angle": `${place.angle}deg`
14467
+ };
14468
+ return /*#__PURE__*/ jsxs("label", {
14469
+ className: `${tag_color_picker_module.option} ${"inner" === place.ring ? tag_color_picker_module.inner : tag_color_picker_module.outer}`,
14470
+ style: ringStyle,
14471
+ title: colorName,
14472
+ children: [
14473
+ /*#__PURE__*/ jsx("input", {
14474
+ "aria-label": colorName,
14475
+ checked: isSelected,
14476
+ className: tag_color_picker_module.input,
14477
+ name: name,
14478
+ onChange: onSelect,
14479
+ type: "radio",
14480
+ value: color
14481
+ }),
14482
+ /*#__PURE__*/ jsx("span", {
14483
+ "aria-hidden": true,
14484
+ className: `${tag_color_module.hue} ${tag_color_picker_module.swatch}`,
14485
+ "data-color": color
14486
+ })
14487
+ ]
14488
+ });
14489
+ }
14490
+ const tag_field_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/tag-field.module.css");
14491
+ var tag_field_module_options = {};
14492
+ tag_field_module_options.styleTagTransform = styleTagTransform_default();
14493
+ tag_field_module_options.setAttributes = setAttributesWithoutAttributes_default();
14494
+ tag_field_module_options.insert = insertBySelector_default().bind(null, "head");
14495
+ tag_field_module_options.domAPI = styleDomAPI_default();
14496
+ tag_field_module_options.insertStyleElement = insertStyleElement_default();
14497
+ injectStylesIntoStyleTag_default()(tag_field_module_0.A, tag_field_module_options);
14498
+ const tag_field_module = tag_field_module_0.A && tag_field_module_0.A.locals ? tag_field_module_0.A.locals : void 0;
14499
+ const tag_group_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/tag-group.module.css");
14500
+ var tag_group_module_options = {};
14501
+ tag_group_module_options.styleTagTransform = styleTagTransform_default();
14502
+ tag_group_module_options.setAttributes = setAttributesWithoutAttributes_default();
14503
+ tag_group_module_options.insert = insertBySelector_default().bind(null, "head");
14504
+ tag_group_module_options.domAPI = styleDomAPI_default();
14505
+ tag_group_module_options.insertStyleElement = insertStyleElement_default();
14506
+ injectStylesIntoStyleTag_default()(tag_group_module_0.A, tag_group_module_options);
14507
+ const tag_group_module = tag_group_module_0.A && tag_group_module_0.A.locals ? tag_group_module_0.A.locals : void 0;
14508
+ const tag_field_fold = (s)=>s.trim().toLowerCase();
14509
+ function splitTags(text) {
14510
+ return text.split(/[,\n]/).map((t)=>t.trim()).filter(Boolean);
14511
+ }
14512
+ const tag_field_TagField = /*#__PURE__*/ forwardRef(function({ label, ariaLabel, description, isDisabled = false, isInvalid, errorMessage, value: valueProp, defaultValue, onChange, suggestions = [], placeholder, tagColor, id: idProp, onBlur: onBlurProp, onFocus: onFocusProp, onKeyDown: onKeyDownProp, ...restProps }, forwardedRef) {
14513
+ const { style: layoutStyle } = useLayoutItem(restProps);
14514
+ const [, inputProps] = splitLayoutItemProps(restProps);
14515
+ if (!label && !ariaLabel) throw new Error("TagField requires `label` or `ariaLabel`.");
14516
+ const generatedId = useId();
14517
+ const controlId = idProp ?? generatedId;
14518
+ const labelId = label ? `${controlId}-label` : void 0;
14519
+ const listboxId = `${controlId}-listbox`;
14520
+ const descriptionId = description ? `${controlId}-description` : void 0;
14521
+ const errorId = errorMessage ? `${controlId}-error` : void 0;
14522
+ const invalid = isInvalid || !!errorMessage;
14523
+ const isControlled = void 0 !== valueProp;
14524
+ const [uncontrolledValue, setUncontrolledValue] = useState(()=>defaultValue ?? []);
14525
+ const tags = isControlled ? valueProp : uncontrolledValue;
14526
+ const commit = useCallback((next)=>{
14527
+ if (!isControlled) setUncontrolledValue(next);
14528
+ onChange?.(next);
13352
14529
  }, [
13353
- selectedKeys,
13354
- selectionMode,
13355
- isControlledSelection,
13356
- onSelectionChange
14530
+ isControlled,
14531
+ onChange
13357
14532
  ]);
13358
- const [internalSortColumn, setInternalSortColumn] = useState(defaultSortColumn);
13359
- const [internalSortDirection, setInternalSortDirection] = useState(defaultSortDirection);
13360
- const activeSortColumn = isControlledSort ? sortColumnProp : internalSortColumn;
13361
- const activeSortDirection = isControlledSort ? sortDirectionProp : internalSortDirection;
13362
- const toggleSort = useCallback((column)=>{
13363
- const newDir = column === activeSortColumn && "ascending" === activeSortDirection ? "descending" : "ascending";
13364
- if (!isControlledSort) {
13365
- setInternalSortColumn(column);
13366
- setInternalSortDirection(newDir);
14533
+ function addTags(raw) {
14534
+ const next = [
14535
+ ...tags
14536
+ ];
14537
+ const have = new Set(next.map(tag_field_fold));
14538
+ for (const text of raw){
14539
+ const tag = suggestions.find((s)=>tag_field_fold(s) === tag_field_fold(text)) ?? text.trim();
14540
+ if (!(!tag || have.has(tag_field_fold(tag)))) {
14541
+ have.add(tag_field_fold(tag));
14542
+ next.push(tag);
14543
+ }
13367
14544
  }
13368
- onSortChange?.(column, newDir);
13369
- }, [
13370
- activeSortColumn,
13371
- activeSortDirection,
13372
- isControlledSort,
13373
- onSortChange
13374
- ]);
13375
- const tableRef = useRef(null);
13376
- useEffect(()=>{
13377
- if (!isGrid || !tableRef.current) return;
13378
- const cells = tableRef.current.querySelectorAll("[role='gridcell']");
13379
- const hasTabStop = Array.from(cells).some((c)=>c.tabIndex >= 0);
13380
- if (!hasTabStop && cells[0]) cells[0].tabIndex = 0;
14545
+ if (next.length !== tags.length) commit(next);
14546
+ }
14547
+ function removeTag(tag) {
14548
+ commit(tags.filter((t)=>t !== tag));
14549
+ }
14550
+ const [inputText, setInputText] = useState("");
14551
+ const options = useMemo(()=>{
14552
+ const have = new Set(tags.map(tag_field_fold));
14553
+ const q = tag_field_fold(inputText);
14554
+ const matches = suggestions.filter((s)=>!have.has(tag_field_fold(s)) && tag_field_fold(s).includes(q)).map((tag)=>({
14555
+ tag,
14556
+ isNew: false
14557
+ }));
14558
+ const known = have.has(q) || suggestions.some((s)=>tag_field_fold(s) === q);
14559
+ return q && !known ? [
14560
+ ...matches,
14561
+ {
14562
+ tag: inputText.trim(),
14563
+ isNew: true
14564
+ }
14565
+ ] : matches;
13381
14566
  }, [
13382
- isGrid
14567
+ tags,
14568
+ suggestions,
14569
+ inputText
13383
14570
  ]);
13384
- const focusCell = useCallback((cell)=>{
13385
- if (!cell) return;
13386
- tableRef.current?.querySelectorAll("[role='gridcell']").forEach((c)=>{
13387
- c.tabIndex = -1;
13388
- });
13389
- cell.tabIndex = 0;
13390
- cell.focus();
13391
- }, []);
13392
- const getBodyRows = useCallback(()=>Array.from(tableRef.current?.querySelectorAll("tbody > tr") ?? []), []);
13393
- const getBodyCells = useCallback(()=>getBodyRows().map((row)=>Array.from(row.querySelectorAll("[role='gridcell']"))), [
13394
- getBodyRows
14571
+ const [isOpen, setIsOpen] = useState(false);
14572
+ const [activeIndex, setActiveIndex] = useState(null);
14573
+ const optionRefs = useRef([]);
14574
+ const inputRef = useRef(null);
14575
+ const gridRef = useRef(null);
14576
+ const { refs, floatingStyles, context } = useFloating({
14577
+ open: isOpen,
14578
+ onOpenChange: setIsOpen,
14579
+ middleware: [
14580
+ flip({
14581
+ padding: 8
14582
+ }),
14583
+ react_size({
14584
+ apply ({ rects, elements }) {
14585
+ Object.assign(elements.floating.style, {
14586
+ width: `${rects.reference.width}px`
14587
+ });
14588
+ },
14589
+ padding: 8
14590
+ })
14591
+ ],
14592
+ whileElementsMounted: autoUpdate
14593
+ });
14594
+ const listNav = useListNavigation(context, {
14595
+ listRef: optionRefs,
14596
+ activeIndex,
14597
+ onNavigate: setActiveIndex,
14598
+ virtual: true,
14599
+ loop: true
14600
+ });
14601
+ const dismiss = useDismiss(context);
14602
+ const role = useRole(context, {
14603
+ role: "combobox"
14604
+ });
14605
+ const { getReferenceProps, getFloatingProps, getItemProps } = useInteractions([
14606
+ listNav,
14607
+ dismiss,
14608
+ role
13395
14609
  ]);
13396
- const handleKeyDown = useCallback((e)=>{
13397
- if (!isGrid) return;
13398
- const cells = getBodyCells();
13399
- if (0 === cells.length) return;
13400
- const focused = document.activeElement instanceof HTMLElement ? document.activeElement : null;
13401
- const rowIdx = cells.findIndex((row)=>row.some((c)=>c === focused || c.contains(focused)));
13402
- if (-1 === rowIdx) return;
13403
- const row = cells[rowIdx];
13404
- const colIdx = row.findIndex((c)=>c === focused || c.contains(focused));
13405
- if (-1 === colIdx) return;
13406
- if ("ArrowRight" === e.key) {
13407
- e.preventDefault();
13408
- focusCell(row[colIdx + 1]);
13409
- } else if ("ArrowLeft" === e.key) {
13410
- e.preventDefault();
13411
- focusCell(row[colIdx - 1]);
13412
- } else if ("ArrowDown" === e.key) {
14610
+ function pick(option) {
14611
+ addTags([
14612
+ option.tag
14613
+ ]);
14614
+ setInputText("");
14615
+ setActiveIndex(null);
14616
+ inputRef.current?.focus();
14617
+ }
14618
+ function commitText() {
14619
+ const typed = splitTags(inputText);
14620
+ if (0 === typed.length) return false;
14621
+ addTags(typed);
14622
+ setInputText("");
14623
+ setActiveIndex(null);
14624
+ return true;
14625
+ }
14626
+ const chips = ()=>Array.from(gridRef.current?.querySelectorAll("[data-tag]") ?? []);
14627
+ function focusChip(index) {
14628
+ const all = chips();
14629
+ const target = all[index];
14630
+ if (!target) return void inputRef.current?.focus();
14631
+ for (const c of all)c.tabIndex = -1;
14632
+ target.tabIndex = 0;
14633
+ target.focus();
14634
+ }
14635
+ function handleChipKeyDown(e, index, tag) {
14636
+ if (isDisabled) return;
14637
+ if ("ArrowLeft" === e.key) {
13413
14638
  e.preventDefault();
13414
- focusCell(cells[rowIdx + 1]?.[colIdx]);
13415
- } else if ("ArrowUp" === e.key) {
14639
+ focusChip(Math.max(0, index - 1));
14640
+ } else if ("ArrowRight" === e.key) {
13416
14641
  e.preventDefault();
13417
- focusCell(cells[rowIdx - 1]?.[colIdx]);
14642
+ focusChip(index + 1);
13418
14643
  } else if ("Home" === e.key) {
13419
14644
  e.preventDefault();
13420
- focusCell(e.ctrlKey ? cells[0]?.[0] : row[0]);
14645
+ focusChip(0);
13421
14646
  } else if ("End" === e.key) {
13422
14647
  e.preventDefault();
13423
- const lastRow = cells[cells.length - 1];
13424
- focusCell(e.ctrlKey ? lastRow?.[lastRow.length - 1] : row[row.length - 1]);
13425
- } else if (" " === e.key) {
14648
+ inputRef.current?.focus();
14649
+ } else if ("Backspace" === e.key || "Delete" === e.key) {
13426
14650
  e.preventDefault();
13427
- const bodyRows = getBodyRows();
13428
- const key = bodyRows[rowIdx]?.dataset.key;
13429
- if (key) toggleKey(key);
14651
+ removeTag(tag);
14652
+ if ("Backspace" === e.key && index > 0) focusChip(index - 1);
14653
+ else if ("Delete" === e.key && index < tags.length - 1) focusChip(index + 1);
14654
+ else inputRef.current?.focus();
13430
14655
  }
13431
- }, [
13432
- isGrid,
13433
- getBodyCells,
13434
- getBodyRows,
13435
- focusCell,
13436
- toggleKey
13437
- ]);
13438
- const ctx = useMemo(()=>({
13439
- selectionMode,
13440
- selectedKeys,
13441
- toggleKey,
13442
- sortColumn: activeSortColumn,
13443
- sortDirection: activeSortDirection,
13444
- toggleSort,
13445
- isGrid
13446
- }), [
13447
- selectionMode,
13448
- selectedKeys,
13449
- toggleKey,
13450
- activeSortColumn,
13451
- activeSortDirection,
13452
- toggleSort,
13453
- isGrid
13454
- ]);
13455
- return /*#__PURE__*/ jsx(TableContext.Provider, {
13456
- value: ctx,
13457
- children: /*#__PURE__*/ jsx("div", {
13458
- className: table_module.wrapper,
13459
- children: /*#__PURE__*/ jsx("table", {
13460
- ref: tableRef,
13461
- "aria-label": ariaLabel,
13462
- className: table_module.table,
13463
- role: isGrid ? "grid" : "table",
13464
- onKeyDown: handleKeyDown,
13465
- children: children
14656
+ }
14657
+ function handleInputChange(e) {
14658
+ const text = e.target.value;
14659
+ if (text.includes(",")) {
14660
+ const parts = text.split(",");
14661
+ const rest = parts.pop() ?? "";
14662
+ addTags(parts.map((p)=>p.trim()).filter(Boolean));
14663
+ setInputText(rest.trimStart());
14664
+ setActiveIndex(null);
14665
+ return;
14666
+ }
14667
+ setInputText(text);
14668
+ setIsOpen(true);
14669
+ setActiveIndex(text.trim() ? 0 : null);
14670
+ }
14671
+ function handlePaste(e) {
14672
+ const text = e.clipboardData.getData("text");
14673
+ if (!/[,\n]/.test(text)) return;
14674
+ e.preventDefault();
14675
+ addTags(splitTags(inputText + text));
14676
+ setInputText("");
14677
+ }
14678
+ function handleKeyDown(e) {
14679
+ onKeyDownProp?.(e);
14680
+ if (e.defaultPrevented) return;
14681
+ const input = e.currentTarget;
14682
+ const atStart = 0 === input.selectionStart && 0 === input.selectionEnd;
14683
+ if ("Enter" === e.key) {
14684
+ const option = isOpen && null !== activeIndex ? options[activeIndex] : void 0;
14685
+ if (option) {
14686
+ e.preventDefault();
14687
+ pick(option);
14688
+ } else if (commitText()) e.preventDefault();
14689
+ } else if ("Escape" === e.key) {
14690
+ setIsOpen(false);
14691
+ setActiveIndex(null);
14692
+ } else if ("Tab" === e.key) {
14693
+ setIsOpen(false);
14694
+ setActiveIndex(null);
14695
+ } else if ("Backspace" === e.key && "" === inputText && tags.length > 0) {
14696
+ e.preventDefault();
14697
+ removeTag(tags[tags.length - 1] ?? "");
14698
+ } else if ("ArrowLeft" === e.key && atStart && tags.length > 0) {
14699
+ e.preventDefault();
14700
+ setIsOpen(false);
14701
+ focusChip(tags.length - 1);
14702
+ } else if (("ArrowDown" === e.key || "ArrowUp" === e.key) && !isOpen) setIsOpen(true);
14703
+ }
14704
+ const [isFocusVisible, setIsFocusVisible] = useState(false);
14705
+ const pointerDown = useRef(false);
14706
+ const activeDescendant = null !== activeIndex && options[activeIndex] ? `${listboxId}-option-${activeIndex}` : void 0;
14707
+ const describedBy = [
14708
+ descriptionId,
14709
+ errorId
14710
+ ].filter(Boolean).join(" ") || void 0;
14711
+ return /*#__PURE__*/ jsxs("div", {
14712
+ className: tag_field_module.root,
14713
+ style: layoutStyle,
14714
+ children: [
14715
+ label ? /*#__PURE__*/ jsx("label", {
14716
+ className: field_module.label,
14717
+ htmlFor: controlId,
14718
+ id: labelId,
14719
+ children: label
14720
+ }) : null,
14721
+ /*#__PURE__*/ jsxs("div", {
14722
+ role: "grid",
14723
+ ref: (node)=>{
14724
+ gridRef.current = node;
14725
+ refs.setReference(node);
14726
+ },
14727
+ "aria-label": label ? void 0 : ariaLabel,
14728
+ "aria-labelledby": labelId,
14729
+ "aria-describedby": describedBy,
14730
+ "aria-disabled": isDisabled || void 0,
14731
+ className: [
14732
+ tag_field_module.field,
14733
+ invalid ? tag_field_module.invalid : null,
14734
+ isFocusVisible ? tag_field_module.focusVisible : null,
14735
+ isDisabled ? tag_field_module.disabled : null
14736
+ ].filter(Boolean).join(" "),
14737
+ onPointerDown: (e)=>{
14738
+ pointerDown.current = true;
14739
+ if (e.target === e.currentTarget && !isDisabled) {
14740
+ e.preventDefault();
14741
+ inputRef.current?.focus();
14742
+ }
14743
+ },
14744
+ children: [
14745
+ tags.map((tag, index)=>/*#__PURE__*/ jsx(TagFieldChip, {
14746
+ tag: tag,
14747
+ color: tagColor?.(tag),
14748
+ isDisabled: isDisabled,
14749
+ onKeyDown: (e)=>handleChipKeyDown(e, index, tag),
14750
+ onRemove: ()=>{
14751
+ removeTag(tag);
14752
+ inputRef.current?.focus();
14753
+ }
14754
+ }, tag)),
14755
+ /*#__PURE__*/ jsx("div", {
14756
+ role: "row",
14757
+ className: tag_field_module.inputRow,
14758
+ children: /*#__PURE__*/ jsx("div", {
14759
+ role: "gridcell",
14760
+ className: tag_field_module.inputCell,
14761
+ children: /*#__PURE__*/ jsx("input", {
14762
+ ...inputProps,
14763
+ ref: (node)=>{
14764
+ inputRef.current = node;
14765
+ if ("function" == typeof forwardedRef) forwardedRef(node);
14766
+ else if (forwardedRef) forwardedRef.current = node;
14767
+ },
14768
+ ...getReferenceProps({
14769
+ id: controlId,
14770
+ "aria-autocomplete": "list",
14771
+ "aria-describedby": describedBy,
14772
+ "aria-invalid": invalid || void 0,
14773
+ "aria-activedescendant": activeDescendant,
14774
+ "aria-controls": listboxId,
14775
+ autoComplete: "off",
14776
+ className: tag_field_module.input,
14777
+ disabled: isDisabled,
14778
+ placeholder: 0 === tags.length ? placeholder : void 0,
14779
+ value: inputText,
14780
+ onChange: handleInputChange,
14781
+ onKeyDown: handleKeyDown,
14782
+ onPaste: handlePaste,
14783
+ onBlur: (e)=>{
14784
+ commitText();
14785
+ setIsFocusVisible(false);
14786
+ onBlurProp?.(e);
14787
+ },
14788
+ onFocus: (e)=>{
14789
+ if (!pointerDown.current) setIsFocusVisible(true);
14790
+ pointerDown.current = false;
14791
+ setIsOpen(true);
14792
+ onFocusProp?.(e);
14793
+ }
14794
+ }),
14795
+ "aria-label": ariaLabel
14796
+ })
14797
+ })
14798
+ })
14799
+ ]
14800
+ }),
14801
+ description ? /*#__PURE__*/ jsx("span", {
14802
+ className: tag_field_module.description,
14803
+ id: descriptionId,
14804
+ children: description
14805
+ }) : null,
14806
+ errorMessage ? /*#__PURE__*/ jsx("span", {
14807
+ className: tag_field_module.error,
14808
+ id: errorId,
14809
+ children: errorMessage
14810
+ }) : null,
14811
+ isOpen && options.length > 0 && /*#__PURE__*/ jsx(FloatingPortal, {
14812
+ root: themeRoot(context.elements.domReference),
14813
+ children: /*#__PURE__*/ jsx("div", {
14814
+ ref: refs.setFloating,
14815
+ style: floatingStyles,
14816
+ ...getFloatingProps({
14817
+ id: listboxId,
14818
+ "aria-label": ariaLabel,
14819
+ "aria-labelledby": labelId,
14820
+ className: combobox_module.listbox,
14821
+ role: "listbox"
14822
+ }),
14823
+ children: options.map((option, index)=>/*#__PURE__*/ jsx("div", {
14824
+ ref: (node)=>{
14825
+ optionRefs.current[index] = node;
14826
+ },
14827
+ ...getItemProps({
14828
+ id: `${listboxId}-option-${index}`,
14829
+ role: "option",
14830
+ "aria-selected": false,
14831
+ className: [
14832
+ combobox_module.option,
14833
+ index === activeIndex ? combobox_module.active : null
14834
+ ].filter(Boolean).join(" "),
14835
+ onMouseDown: (e)=>e.preventDefault(),
14836
+ onClick: ()=>pick(option)
14837
+ }),
14838
+ children: option.isNew ? /*#__PURE__*/ jsx(NewTagLabel, {
14839
+ tag: option.tag
14840
+ }) : /*#__PURE__*/ jsxs("span", {
14841
+ className: tag_field_module.option,
14842
+ children: [
14843
+ tagColor ? /*#__PURE__*/ jsx(TagColorDot, {
14844
+ color: tagColor(option.tag)
14845
+ }) : null,
14846
+ option.tag
14847
+ ]
14848
+ })
14849
+ }, option.isNew ? "\u0000new" : option.tag))
14850
+ })
13466
14851
  })
13467
- })
14852
+ ]
13468
14853
  });
13469
- }
13470
- function TableHeader({ children }) {
13471
- return /*#__PURE__*/ jsx("thead", {
13472
- className: table_module.thead,
13473
- children: /*#__PURE__*/ jsx("tr", {
13474
- children: children
13475
- })
14854
+ });
14855
+ function TagFieldChip({ tag, color, isDisabled, onKeyDown, onRemove }) {
14856
+ const removeLabel = useMessage("ox0.tagField.remove", "Remove {tag}", {
14857
+ tag
13476
14858
  });
13477
- }
13478
- function TableColumn({ id, isSortable, align = "start", children }) {
13479
- const { sortColumn, sortDirection, toggleSort } = useTableContext();
13480
- const isCurrentSort = Boolean(isSortable && void 0 !== id && sortColumn === id);
13481
- const ariaSort = isSortable ? isCurrentSort && null != sortDirection ? sortDirection : "none" : void 0;
13482
- return /*#__PURE__*/ jsx("th", {
13483
- scope: "col",
14859
+ return /*#__PURE__*/ jsx("div", {
14860
+ role: "row",
14861
+ "aria-disabled": isDisabled || void 0,
13484
14862
  className: [
13485
- table_module.th,
13486
- alignClass[align]
14863
+ tag_group_module.tag,
14864
+ color ? tag_color_module.hue : null,
14865
+ isDisabled ? tag_group_module.disabled : null
13487
14866
  ].filter(Boolean).join(" "),
13488
- "aria-sort": ariaSort,
13489
- children: isSortable && void 0 !== id ? /*#__PURE__*/ jsxs("button", {
13490
- className: table_module.sortButton,
13491
- type: "button",
13492
- onClick: ()=>toggleSort(id),
14867
+ "data-color": color,
14868
+ "data-tag": "",
14869
+ onKeyDown: onKeyDown,
14870
+ tabIndex: -1,
14871
+ children: /*#__PURE__*/ jsxs("div", {
14872
+ role: "gridcell",
14873
+ className: tag_group_module.tagCell,
13493
14874
  children: [
13494
- children,
13495
14875
  /*#__PURE__*/ jsx("span", {
13496
- className: table_module.sortIcon,
13497
- "aria-hidden": "true",
13498
- children: isCurrentSort && "ascending" === sortDirection ? "↑" : isCurrentSort && "descending" === sortDirection ? "↓" : "↕"
14876
+ children: tag
14877
+ }),
14878
+ isDisabled ? null : /*#__PURE__*/ jsx("button", {
14879
+ "aria-label": removeLabel,
14880
+ className: tag_group_module.dismiss,
14881
+ onClick: onRemove,
14882
+ tabIndex: -1,
14883
+ type: "button",
14884
+ children: "\xd7"
13499
14885
  })
13500
14886
  ]
13501
- }) : children
13502
- });
13503
- }
13504
- function TableBody({ children }) {
13505
- return /*#__PURE__*/ jsx("tbody", {
13506
- className: table_module.tbody,
13507
- children: children
13508
- });
13509
- }
13510
- function TableRow({ id, children }) {
13511
- const { isGrid, selectedKeys } = useTableContext();
13512
- const isSelected = void 0 !== id && selectedKeys.has(id);
13513
- return /*#__PURE__*/ jsx("tr", {
13514
- className: [
13515
- table_module.tr,
13516
- isSelected ? table_module.selected : null
13517
- ].filter(Boolean).join(" "),
13518
- "data-key": id,
13519
- "data-selected": isSelected || void 0,
13520
- "aria-selected": isGrid ? isSelected : void 0,
13521
- children: children
14887
+ })
13522
14888
  });
13523
14889
  }
13524
- function TableCell({ align = "start", children }) {
13525
- const { isGrid } = useTableContext();
13526
- return /*#__PURE__*/ jsx("td", {
13527
- className: [
13528
- table_module.td,
13529
- alignClass[align]
13530
- ].filter(Boolean).join(" "),
13531
- role: isGrid ? "gridcell" : void 0,
13532
- tabIndex: isGrid ? -1 : void 0,
13533
- children: children
14890
+ function NewTagLabel({ tag }) {
14891
+ return /*#__PURE__*/ jsx(Fragment, {
14892
+ children: useMessage("ox0.tagField.add", "Add “{tag}”", {
14893
+ tag
14894
+ })
13534
14895
  });
13535
14896
  }
13536
- const tag_group_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/tag-group.module.css");
13537
- var tag_group_module_options = {};
13538
- tag_group_module_options.styleTagTransform = styleTagTransform_default();
13539
- tag_group_module_options.setAttributes = setAttributesWithoutAttributes_default();
13540
- tag_group_module_options.insert = insertBySelector_default().bind(null, "head");
13541
- tag_group_module_options.domAPI = styleDomAPI_default();
13542
- tag_group_module_options.insertStyleElement = insertStyleElement_default();
13543
- injectStylesIntoStyleTag_default()(tag_group_module_0.A, tag_group_module_options);
13544
- const tag_group_module = tag_group_module_0.A && tag_group_module_0.A.locals ? tag_group_module_0.A.locals : void 0;
13545
14897
  const TagGroupContext = /*#__PURE__*/ createContext(null);
13546
14898
  function useTagGroupContext() {
13547
14899
  const ctx = useContext(TagGroupContext);
@@ -13729,13 +15081,14 @@ function TagGroup(allProps) {
13729
15081
  })
13730
15082
  });
13731
15083
  }
13732
- function tag_group_Tag({ id, isDisabled: isDisabledProp, children }) {
15084
+ function tag_group_Tag({ id, isDisabled: isDisabledProp, color, children }) {
13733
15085
  const ctx = useTagGroupContext();
13734
15086
  const isDisabled = isDisabledProp ?? ctx.isDisabled;
13735
15087
  const isSelected = ctx.selectedKeys.has(id);
13736
15088
  const isSelectable = "none" !== ctx.selectionMode;
13737
15089
  const cls = [
13738
15090
  tag_group_module.tag,
15091
+ color ? tag_color_module.hue : "",
13739
15092
  isSelected && isSelectable ? tag_group_module.selected : "",
13740
15093
  isDisabled ? tag_group_module.disabled : ""
13741
15094
  ].filter(Boolean).join(" ");
@@ -13746,6 +15099,7 @@ function tag_group_Tag({ id, isDisabled: isDisabledProp, children }) {
13746
15099
  "aria-selected": isSelectable ? isSelected : void 0,
13747
15100
  className: cls,
13748
15101
  "data-id": id,
15102
+ "data-color": color,
13749
15103
  "data-selectable": isSelectable && !isDisabled ? "" : void 0,
13750
15104
  onClick: isSelectable && !isDisabled ? ()=>ctx.toggleSelection(id) : void 0,
13751
15105
  role: "row",
@@ -13775,6 +15129,7 @@ function tag_group_Tag({ id, isDisabled: isDisabledProp, children }) {
13775
15129
  if (!isSelectable) return /*#__PURE__*/ jsx("span", {
13776
15130
  className: cls,
13777
15131
  "data-id": id,
15132
+ "data-color": color,
13778
15133
  "data-disabled": isDisabled || void 0,
13779
15134
  children: children
13780
15135
  });
@@ -13783,6 +15138,7 @@ function tag_group_Tag({ id, isDisabled: isDisabledProp, children }) {
13783
15138
  "aria-selected": isSelected,
13784
15139
  className: cls,
13785
15140
  "data-id": id,
15141
+ "data-color": color,
13786
15142
  onClick: ()=>{
13787
15143
  if (!isDisabled) ctx.toggleSelection(id);
13788
15144
  },
@@ -13792,129 +15148,6 @@ function tag_group_Tag({ id, isDisabled: isDisabledProp, children }) {
13792
15148
  children: children
13793
15149
  });
13794
15150
  }
13795
- const text_field_TextField = /*#__PURE__*/ forwardRef(function({ ariaLabel, description, errorMessage, icon: Icon, id: idProp, isClearable = false, isDisabled, isInvalid, isReadOnly, label, onBlur, onClear, onChange, onFocus, onKeyDown, onPointerDown, variant = "default", ...restProps }, ref) {
13796
- const { style: layoutStyle } = useLayoutItem(restProps);
13797
- const [, props] = splitLayoutItemProps(restProps);
13798
- const generatedId = useId();
13799
- const clearLabel = useMessage("ox0.textField.clear", "Clear");
13800
- const id = idProp ?? generatedId;
13801
- const descriptionId = description ? `${id}-description` : void 0;
13802
- const errorId = errorMessage ? `${id}-error` : void 0;
13803
- const describedBy = [
13804
- descriptionId,
13805
- errorId
13806
- ].filter(Boolean).join(" ") || void 0;
13807
- const invalid = isInvalid || !!errorMessage;
13808
- const inputRef = useRef(null);
13809
- const setInputRef = useCallback((node)=>{
13810
- inputRef.current = node;
13811
- if (!ref) return;
13812
- if ("function" == typeof ref) return void ref(node);
13813
- if ("current" in ref) ref.current = node;
13814
- }, [
13815
- ref
13816
- ]);
13817
- const [isFocusVisible, setIsFocusVisible] = useState(false);
13818
- const pointerActive = useRef(false);
13819
- const handleClear = useCallback(()=>{
13820
- onChange?.("");
13821
- onClear?.();
13822
- inputRef.current?.focus();
13823
- }, [
13824
- onChange,
13825
- onClear
13826
- ]);
13827
- return /*#__PURE__*/ jsxs("div", {
13828
- className: text_field_module.root,
13829
- style: layoutStyle,
13830
- children: [
13831
- label ? /*#__PURE__*/ jsx("label", {
13832
- className: field_module.label,
13833
- htmlFor: id,
13834
- children: label
13835
- }) : null,
13836
- /*#__PURE__*/ jsxs("div", {
13837
- className: [
13838
- text_field_module.control,
13839
- invalid ? text_field_module.invalid : null,
13840
- isFocusVisible ? text_field_module.focusVisible : null
13841
- ].filter(Boolean).join(" "),
13842
- "data-variant": variant,
13843
- children: [
13844
- Icon ? /*#__PURE__*/ jsx("span", {
13845
- "aria-hidden": "true",
13846
- className: text_field_module.icon,
13847
- children: /*#__PURE__*/ jsx(Icon, {
13848
- size: 12
13849
- })
13850
- }) : null,
13851
- /*#__PURE__*/ jsx("input", {
13852
- ...props,
13853
- ref: setInputRef,
13854
- "aria-describedby": describedBy,
13855
- "aria-invalid": invalid || void 0,
13856
- "aria-label": ariaLabel,
13857
- className: text_field_module.input,
13858
- disabled: isDisabled,
13859
- id: id,
13860
- readOnly: isReadOnly,
13861
- onPointerDown: (e)=>{
13862
- pointerActive.current = true;
13863
- onPointerDown?.(e);
13864
- },
13865
- onFocus: (e)=>{
13866
- if (!pointerActive.current) setIsFocusVisible(true);
13867
- pointerActive.current = false;
13868
- onFocus?.(e);
13869
- },
13870
- onBlur: (e)=>{
13871
- setIsFocusVisible(false);
13872
- onBlur?.(e);
13873
- },
13874
- onKeyDown: (e)=>{
13875
- if (isClearable && "Escape" === e.key) {
13876
- e.preventDefault();
13877
- handleClear();
13878
- }
13879
- onKeyDown?.(e);
13880
- },
13881
- onChange: onChange ? (e)=>onChange(e.target.value) : void 0
13882
- }),
13883
- isClearable ? /*#__PURE__*/ jsx("button", {
13884
- "aria-label": clearLabel,
13885
- className: text_field_module.clear,
13886
- tabIndex: -1,
13887
- type: "button",
13888
- onClick: handleClear,
13889
- children: /*#__PURE__*/ jsx("svg", {
13890
- "aria-hidden": "true",
13891
- fill: "none",
13892
- height: "12",
13893
- viewBox: "0 0 12 12",
13894
- width: "12",
13895
- children: /*#__PURE__*/ jsx("path", {
13896
- d: "M2 2L10 10M10 2L2 10",
13897
- stroke: "currentColor",
13898
- strokeLinecap: "round",
13899
- strokeWidth: "1.5"
13900
- })
13901
- })
13902
- }) : null
13903
- ]
13904
- }),
13905
- description ? /*#__PURE__*/ jsx("span", {
13906
- className: text_field_module.description,
13907
- id: descriptionId,
13908
- children: description
13909
- }) : null,
13910
- errorMessage ? /*#__PURE__*/ jsx("span", {
13911
- className: text_field_module.error,
13912
- id: errorId,
13913
- children: errorMessage
13914
- }) : null
13915
- ]
13916
- });
13917
- });
13918
15151
  const date_field_module_0 = __webpack_require__("../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].oneOf[4].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].oneOf[4].use[2]!./src/components/date-field.module.css");
13919
15152
  var date_field_module_options = {};
13920
15153
  date_field_module_options.styleTagTransform = styleTagTransform_default();
@@ -14494,4 +15727,4 @@ function useDensity(options) {
14494
15727
  function useFontScale(options) {
14495
15728
  return useThemePreference("fontScale", options);
14496
15729
  }
14497
- export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, AppShell, BreadcrumbItem, Breadcrumbs, ConfirmDialog, ConfirmPopover, ConfirmProvider, DateField, Dialog, Drawer, GlobalSearch, ListBox, ListBoxFilter, ListItem, ListItemDivider, ListItemGroup, ListItemStatic, MarkProvider, Markable, Menu, MenuItem, MenuSection, MenuSeparator, MenuSubTrigger, Nav, NavItem, Ox0Provider, Popover, PopoverContent, PopoverTrigger, SearchResult, Tab, TabList, TabPanel, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, Tabs, TagGroup, ToastProvider, Tooltip, TooltipContent, TooltipTrigger, badge_Badge as Badge, banner_Banner as Banner, box_Box as Box, button_Button as Button, button_group_ButtonGroup as ButtonGroup, caption_Caption as Caption, card_Card as Card, checkbox_Checkbox as Checkbox, checkbox_group_CheckboxGroup as CheckboxGroup, checkbox_group_GroupCheckbox as GroupCheckbox, code_Code as Code, code_block_CodeBlock as CodeBlock, combobox_Combobox as Combobox, createTextStyles, date_time_DateRange as DateRange, date_time_DateTime as DateTime, defaultUiMessages, defineSearchSource, disclosure_triangle_DisclosureTriangle as DisclosureTriangle, divider_Divider as Divider, drop_zone_DropZone as DropZone, field_group_FieldGroup as FieldGroup, file_trigger_FileTrigger as FileTrigger, grid_Grid as Grid, heading_Heading as Heading, icon_button_IconButton as IconButton, icon_label_IconLabel as IconLabel, icon_toggle_IconToggle as IconToggle, inline_Inline as Inline, keyboard_Keyboard as Keyboard, label_Label as Label, link_Link as Link, matchSearchItems, matchesAccept, number_field_NumberField as NumberField, numeric_Numeric as Numeric, page_Page as Page, page_PageHeader as PageHeader, radio_group_Radio as Radio, radio_group_RadioGroup as RadioGroup, search_field_SearchField as SearchField, segmented_control_Segment as Segment, segmented_control_SegmentedControl as SegmentedControl, select_Select as Select, skeleton_Skeleton as Skeleton, slider_Slider as Slider, spinner_Spinner as Spinner, splitLayoutItemProps, split_Split as Split, stack_Stack as Stack, surface_Surface as Surface, switch_Switch as Switch, tag_group_Tag as Tag, text_Text as Text, text_area_TextArea as TextArea, text_field_TextField as TextField, useBorders, useBreakpointUp, useColorScheme, useConfirm, useDateFormat, useDensity, useFlexItem, useFontScale, useGlobalSearch, useGridItem, useLayoutItem, useListItemState, useMark, useNeutralTheme, useOptionalToast, usePlacement, useResponsiveValue, useSizing, useSpacing, useSurface, useToast };
15730
+ export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, AppShell, BreadcrumbItem, Breadcrumbs, BulkTagEditor, ConfirmDialog, ConfirmPopover, ConfirmProvider, DateField, Dialog, Drawer, GlobalSearch, ListBox, ListBoxFilter, ListItem, ListItemDivider, ListItemGroup, ListItemStatic, MarkProvider, Markable, Menu, MenuItem, MenuSection, MenuSeparator, MenuSubTrigger, Nav, NavItem, Ox0Provider, Popover, PopoverContent, PopoverTrigger, SearchResult, TAG_COLORS, TAG_HUES, TAG_NEUTRALS, Tab, TabList, TabPanel, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, Tabs, TagColorButton, TagGroup, ToastProvider, Tooltip, TooltipContent, TooltipTrigger, badge_Badge as Badge, banner_Banner as Banner, box_Box as Box, button_Button as Button, button_group_ButtonGroup as ButtonGroup, caption_Caption as Caption, card_Card as Card, checkbox_Checkbox as Checkbox, checkbox_group_CheckboxGroup as CheckboxGroup, checkbox_group_GroupCheckbox as GroupCheckbox, code_Code as Code, code_block_CodeBlock as CodeBlock, combobox_Combobox as Combobox, createTextStyles, date_time_DateRange as DateRange, date_time_DateTime as DateTime, defaultUiMessages, defineSearchSource, disclosure_triangle_DisclosureTriangle as DisclosureTriangle, divider_Divider as Divider, drop_zone_DropZone as DropZone, field_group_FieldGroup as FieldGroup, file_trigger_FileTrigger as FileTrigger, grid_Grid as Grid, heading_Heading as Heading, icon_button_IconButton as IconButton, icon_label_IconLabel as IconLabel, icon_toggle_IconToggle as IconToggle, inline_Inline as Inline, keyboard_Keyboard as Keyboard, label_Label as Label, link_Link as Link, matchSearchItems, matchesAccept, number_field_NumberField as NumberField, numeric_Numeric as Numeric, page_Page as Page, page_PageHeader as PageHeader, radio_group_Radio as Radio, radio_group_RadioGroup as RadioGroup, search_field_SearchField as SearchField, segmented_control_Segment as Segment, segmented_control_SegmentedControl as SegmentedControl, select_Select as Select, skeleton_Skeleton as Skeleton, slider_Slider as Slider, spinner_Spinner as Spinner, splitLayoutItemProps, split_Split as Split, stack_Stack as Stack, surface_Surface as Surface, switch_Switch as Switch, tag_color_picker_TagColorPicker as TagColorPicker, tag_field_TagField as TagField, tag_group_Tag as Tag, text_Text as Text, text_area_TextArea as TextArea, text_field_TextField as TextField, useBorders, useBreakpointUp, useColorScheme, useConfirm, useDateFormat, useDensity, useFlexItem, useFontScale, useGlobalSearch, useGridItem, useLayoutItem, useListItemState, useMark, useNeutralTheme, useOptionalToast, usePlacement, useResponsiveValue, useSizing, useSpacing, useSurface, useToast };