@ox0/ui 3.18.0 → 3.20.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,202 @@ 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.sm-LTK7Kz {
5673
+ font-size: var(--ox0-font-size-xs);
5674
+ gap: var(--ox0-space-2xs);
5675
+ min-block-size: 20px;
5676
+ padding-inline: .4375rem;
5589
5677
  }
5590
5678
 
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));
5679
+ div.tag-ueb2Qr.sm-LTK7Kz {
5680
+ padding-inline-end: 5px;
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.sm-LTK7Kz .tagCell-Gr5mS6 {
5684
+ gap: 2px;
5606
5685
  }
5607
5686
 
5608
- .foreground-dzHYHe {
5687
+ .tag-ueb2Qr[data-color]:not([data-color="gray"]) {
5688
+ background: color-mix(in oklab, var(--tag-hue) 14%, var(--ox0-color-surface));
5689
+ border-color: color-mix(in oklab, var(--tag-hue) 40%, var(--ox0-color-surface));
5690
+ color: color-mix(in oklab, var(--tag-hue) 70%, var(--ox0-color-foreground));
5691
+ }
5692
+
5693
+ 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 {
5694
+ background: color-mix(in oklab, var(--tag-hue) 20%, var(--ox0-color-surface));
5695
+ border-color: color-mix(in oklab, var(--tag-hue) 60%, var(--ox0-color-surface));
5696
+ }
5697
+
5698
+ .tag-ueb2Qr[data-color="silver"][data-color] {
5699
+ background: var(--ox0-color-surface-sunken);
5700
+ border-color: var(--ox0-color-border-strong);
5609
5701
  color: var(--ox0-color-foreground);
5610
5702
  }
5611
5703
 
5612
- .muted-zeNDqn {
5613
- color: var(--ox0-color-muted);
5704
+ .tag-ueb2Qr[data-color="ink"][data-color] {
5705
+ background: var(--ox0-color-foreground);
5706
+ border-color: var(--ox0-color-foreground);
5707
+ color: var(--ox0-color-surface);
5614
5708
  }
5615
5709
 
5616
- .accent-ah7uAs {
5710
+ button.tag-ueb2Qr[data-color="ink"][data-color]:hover:not(.disabled-BMkUWI), div.tag-ueb2Qr[data-color="ink"][data-color][data-selectable]:hover {
5711
+ background: color-mix(in oklab, var(--ox0-color-foreground) 85%, var(--ox0-color-surface));
5712
+ border-color: var(--ox0-color-foreground);
5713
+ }
5714
+
5715
+ .tag-ueb2Qr.selected-a1JhC8, .tag-ueb2Qr.selected-a1JhC8[data-color]:not([data-color="gray"]) {
5716
+ background: var(--ox0-color-accent-subtle);
5717
+ border-color: var(--ox0-color-accent);
5617
5718
  color: var(--ox0-color-accent-text);
5618
5719
  }
5619
5720
 
5620
- .success-sVYlMj {
5621
- color: var(--ox0-color-success-text);
5721
+ button.tag-ueb2Qr.selected-a1JhC8:hover:not(.disabled-BMkUWI) {
5722
+ background: var(--ox0-color-accent-subtle);
5723
+ border-color: var(--ox0-color-accent);
5724
+ opacity: .85;
5622
5725
  }
5623
5726
 
5624
- .warning-na51J9 {
5625
- color: var(--ox0-color-warning-text);
5727
+ .tag-ueb2Qr.disabled-BMkUWI {
5728
+ cursor: not-allowed;
5729
+ opacity: .5;
5626
5730
  }
5627
5731
 
5628
- .danger-AufKYd {
5629
- color: var(--ox0-color-danger-text);
5732
+ button.tag-ueb2Qr.disabled-BMkUWI {
5733
+ cursor: not-allowed;
5630
5734
  }
5631
5735
 
5632
- .inherit-gJHLfJ {
5633
- color: inherit;
5736
+ div.tag-ueb2Qr:focus-visible {
5737
+ outline: 2px solid var(--ox0-color-accent);
5738
+ outline-offset: 2px;
5634
5739
  }
5635
5740
 
5636
- .truncate-qrGgXB {
5637
- text-overflow: ellipsis;
5638
- white-space: nowrap;
5639
- overflow: hidden;
5741
+ div.tag-ueb2Qr[data-selectable]:hover {
5742
+ background: var(--ox0-color-surface);
5743
+ border-color: var(--ox0-color-border-strong);
5744
+ cursor: pointer;
5640
5745
  }
5641
5746
 
5642
- .align-left-UPkxat {
5643
- text-align: left;
5747
+ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
5748
+ background: var(--ox0-color-accent-subtle);
5749
+ border-color: var(--ox0-color-accent);
5750
+ opacity: .85;
5644
5751
  }
5645
5752
 
5646
- .align-center-_fPJYn {
5647
- text-align: center;
5753
+ div.tag-ueb2Qr {
5754
+ padding-inline-end: 6px;
5648
5755
  }
5649
5756
 
5650
- .align-right-uScNpc {
5651
- text-align: right;
5757
+ .tagCell-Gr5mS6 {
5758
+ align-items: center;
5759
+ gap: 3px;
5760
+ display: flex;
5652
5761
  }
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"
5762
+
5763
+ .dismiss-RvMvmi {
5764
+ border-radius: var(--ox0-radius-sm);
5765
+ color: inherit;
5766
+ cursor: pointer;
5767
+ opacity: .6;
5768
+ background: none;
5769
+ border: none;
5770
+ flex-shrink: 0;
5771
+ justify-content: center;
5772
+ align-items: center;
5773
+ width: 1em;
5774
+ height: 1em;
5775
+ padding: 0;
5776
+ font-size: .75rem;
5777
+ line-height: 1;
5778
+ display: inline-flex;
5779
+ }
5780
+
5781
+ .dismiss-RvMvmi:hover {
5782
+ opacity: 1;
5783
+ }
5784
+ `,
5785
+ ""
5786
+ ]);
5787
+ ___CSS_LOADER_EXPORT___.locals = {
5788
+ root: "root-czq2dC",
5789
+ description: "description-FYzKc1",
5790
+ error: "error-Ki_ghh",
5791
+ tags: "tags-zkvYh0",
5792
+ tag: "tag-ueb2Qr",
5793
+ disabled: "disabled-BMkUWI",
5794
+ sm: "sm-LTK7Kz",
5795
+ tagCell: "tagCell-Gr5mS6",
5796
+ selected: "selected-a1JhC8",
5797
+ dismiss: "dismiss-RvMvmi"
5685
5798
  };
5686
5799
  const __rspack_default_export = ___CSS_LOADER_EXPORT___;
5687
5800
  __webpack_require__.d(__webpack_exports__, {}, {
5688
5801
  A: __rspack_default_export
5689
5802
  });
5690
5803
  },
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__) {
5804
+ "../../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
5805
  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
5806
  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
5807
  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 +5809,178 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
5696
5809
  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
5810
  ___CSS_LOADER_EXPORT___.push([
5698
5811
  module.id,
5699
- `@keyframes toast-in-X29Xf4 {
5700
- from {
5701
- opacity: 0;
5702
- transform: translateY(.5rem) scale(.96);
5703
- }
5812
+ `.root-EDj_sz {
5813
+ color: var(--ox0-color-foreground);
5814
+ min-inline-size: 0;
5815
+ font-size: var(--ox0-font-size-md);
5816
+ align-content: start;
5817
+ gap: var(--ox0-space-xs);
5818
+ grid-template-columns: minmax(0, 1fr);
5819
+ display: grid;
5820
+ }
5704
5821
 
5705
- to {
5706
- opacity: 1;
5707
- transform: translateY(0) scale(1);
5708
- }
5822
+ .control-Vog3id {
5823
+ background: var(--ox0-color-surface);
5824
+ border: 1px solid var(--ox0-color-border);
5825
+ border-radius: var(--ox0-radius-sm);
5826
+ align-items: center;
5827
+ gap: var(--ox0-space-xs);
5828
+ box-sizing: border-box;
5829
+ height: var(--ox0-control-height-md);
5830
+ padding-inline: var(--ox0-space-md);
5831
+ transition: border-color var(--ox0-duration-fast) var(--ox0-ease-crisp),
5832
+ box-shadow var(--ox0-duration-fast) var(--ox0-ease-crisp);
5833
+ display: flex;
5709
5834
  }
5710
5835
 
5711
- @keyframes toast-out-LqOm2R {
5712
- from {
5713
- opacity: 1;
5714
- transform: translateY(0) scale(1);
5715
- }
5836
+ .control-Vog3id:hover {
5837
+ border-color: var(--ox0-color-border-strong);
5838
+ }
5716
5839
 
5717
- to {
5718
- opacity: 0;
5719
- transform: translateY(.25rem) scale(.97);
5720
- }
5840
+ .control-Vog3id.focusVisible-r4K4nT {
5841
+ border-color: var(--ox0-color-accent);
5842
+ box-shadow: 0 0 0 3px var(--ox0-color-focus-ring);
5721
5843
  }
5722
5844
 
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;
5845
+ .control-Vog3id.invalid-M29JY3 {
5846
+ border-color: var(--ox0-color-danger);
5734
5847
  }
5735
5848
 
5736
- .toastWrapper-sYOVI0 {
5737
- animation: toast-in-X29Xf4 var(--ox0-duration-normal) var(--ox0-ease-enter) both;
5849
+ .control-Vog3id.invalid-M29JY3.focusVisible-r4K4nT {
5850
+ box-shadow: 0 0 0 3px var(--ox0-color-danger-subtle);
5738
5851
  }
5739
5852
 
5740
- .toastWrapper-sYOVI0.exiting-RcV5Ab {
5741
- animation: toast-out-LqOm2R var(--ox0-duration-normal) var(--ox0-ease-exit) both;
5853
+ .control-Vog3id[data-variant="flat"] {
5854
+ border: none;
5855
+ border-bottom: 1px solid var(--ox0-color-border);
5856
+ padding-inline: var(--ox0-space-xs);
5857
+ background: none;
5858
+ border-radius: 0;
5742
5859
  }
5743
5860
 
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;
5861
+ .control-Vog3id[data-variant="flat"]:hover {
5862
+ border-bottom-color: var(--ox0-color-border-strong);
5756
5863
  }
5757
5864
 
5758
- .neutral-ud0XaK {
5759
- border-left-color: var(--ox0-color-border);
5865
+ .control-Vog3id[data-variant="flat"].focusVisible-r4K4nT {
5866
+ border-bottom-color: var(--ox0-color-accent);
5867
+ box-shadow: none;
5760
5868
  }
5761
5869
 
5762
- .info-qCsWQF {
5763
- border-left-color: var(--ox0-color-info);
5870
+ .icon-SJ2fI8 {
5871
+ color: var(--ox0-color-muted);
5872
+ flex: none;
5873
+ display: inline-flex;
5764
5874
  }
5765
5875
 
5766
- .success-BjAK6q {
5767
- border-left-color: var(--ox0-color-success);
5876
+ .input-pJgRNM {
5877
+ color: inherit;
5878
+ font: inherit;
5879
+ background: none;
5880
+ border: none;
5881
+ outline: none;
5882
+ flex: auto;
5883
+ min-inline-size: 0;
5884
+ padding-block: .625rem;
5768
5885
  }
5769
5886
 
5770
- .warning-OKigu2 {
5771
- border-left-color: var(--ox0-color-warning);
5887
+ .control-Vog3id .input-pJgRNM {
5888
+ padding-block: 0;
5772
5889
  }
5773
5890
 
5774
- .danger-LklBtF {
5775
- border-left-color: var(--ox0-color-danger);
5891
+ .textarea-f9gopi {
5892
+ background: var(--ox0-color-surface);
5893
+ border: 1px solid var(--ox0-color-border);
5894
+ border-radius: var(--ox0-radius-sm);
5895
+ box-sizing: border-box;
5896
+ padding-inline: var(--ox0-space-md);
5897
+ transition: border-color var(--ox0-duration-fast) var(--ox0-ease-crisp),
5898
+ box-shadow var(--ox0-duration-fast) var(--ox0-ease-crisp);
5776
5899
  }
5777
5900
 
5778
- .body-tmPCh0 {
5779
- flex-direction: column;
5780
- flex: 1;
5781
- gap: .125rem;
5782
- min-width: 0;
5783
- display: flex;
5901
+ .textarea-f9gopi:hover {
5902
+ border-color: var(--ox0-color-border-strong);
5784
5903
  }
5785
5904
 
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;
5905
+ .textarea-f9gopi:focus-visible {
5906
+ border-color: var(--ox0-color-accent);
5907
+ box-shadow: 0 0 0 3px var(--ox0-color-focus-ring);
5792
5908
  }
5793
5909
 
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;
5910
+ .textarea-f9gopi.invalid-M29JY3 {
5911
+ border-color: var(--ox0-color-danger);
5799
5912
  }
5800
5913
 
5801
- .actions-NAScjf {
5802
- flex-shrink: 0;
5803
- align-items: center;
5804
- gap: .25rem;
5805
- display: flex;
5914
+ .textarea-f9gopi.invalid-M29JY3:focus-visible {
5915
+ box-shadow: 0 0 0 3px var(--ox0-color-danger-subtle);
5806
5916
  }
5807
5917
 
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;
5918
+ .textarea-f9gopi:disabled {
5919
+ background: var(--ox0-color-canvas);
5820
5920
  }
5821
5921
 
5822
- .actionButton-ju2Jqp:hover {
5823
- background: var(--ox0-color-surface);
5922
+ .input-pJgRNM::placeholder {
5923
+ color: var(--ox0-color-disabled);
5824
5924
  }
5825
5925
 
5826
- .closeButton-Zka7v8 {
5827
- border-radius: var(--ox0-radius-xs);
5926
+ .input-pJgRNM:disabled {
5927
+ color: var(--ox0-color-disabled);
5928
+ cursor: not-allowed;
5929
+ }
5930
+
5931
+ .control-Vog3id:has(.input-pJgRNM:disabled) {
5932
+ background: var(--ox0-color-canvas);
5933
+ cursor: not-allowed;
5934
+ }
5935
+
5936
+ .clear-eMD0M3 {
5937
+ block-size: 24px;
5828
5938
  color: var(--ox0-color-muted);
5829
5939
  cursor: pointer;
5830
5940
  background: none;
5831
5941
  border: none;
5832
- flex-shrink: 0;
5942
+ border-radius: 999px;
5943
+ flex: none;
5833
5944
  justify-content: center;
5834
5945
  align-items: center;
5835
- width: 1.5rem;
5836
- height: 1.5rem;
5837
- padding: 0;
5838
- display: flex;
5946
+ inline-size: 24px;
5947
+ display: inline-flex;
5839
5948
  }
5840
5949
 
5841
- .closeButton-Zka7v8:hover {
5842
- background: var(--ox0-color-surface);
5950
+ .clear-eMD0M3:hover {
5843
5951
  color: var(--ox0-color-foreground);
5844
5952
  }
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;
5953
+
5954
+ .description-U5SfzR {
5955
+ color: var(--ox0-color-muted);
5956
+ font-size: var(--ox0-font-size-sm);
5957
+ }
5958
+
5959
+ .error-PaIi5f {
5960
+ color: var(--ox0-color-danger-text);
5961
+ font-size: var(--ox0-font-size-sm);
5894
5962
  }
5895
5963
  `,
5896
5964
  ""
5897
5965
  ]);
5898
5966
  ___CSS_LOADER_EXPORT___.locals = {
5899
- tooltip: "tooltip-NkB3V8"
5967
+ root: "root-EDj_sz",
5968
+ control: "control-Vog3id",
5969
+ focusVisible: "focusVisible-r4K4nT",
5970
+ invalid: "invalid-M29JY3",
5971
+ icon: "icon-SJ2fI8",
5972
+ input: "input-pJgRNM",
5973
+ textarea: "textarea-f9gopi",
5974
+ clear: "clear-eMD0M3",
5975
+ description: "description-U5SfzR",
5976
+ error: "error-PaIi5f"
5900
5977
  };
5901
5978
  const __rspack_default_export = ___CSS_LOADER_EXPORT___;
5902
5979
  __webpack_require__.d(__webpack_exports__, {}, {
5903
5980
  A: __rspack_default_export
5904
5981
  });
5905
5982
  },
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__) {
5983
+ "../../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
5984
  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
5985
  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
5986
  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 +5988,170 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
5911
5988
  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
5989
  ___CSS_LOADER_EXPORT___.push([
5913
5990
  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;
5991
+ `.text-ojiRZM {
5992
+ margin: 0;
5921
5993
  }
5922
5994
 
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
- }
5995
+ .display-FqY2br {
5996
+ font-family: var(--ox0-font-heading);
5997
+ font-size: var(--ox0-text-display-size, var(--ox0-font-size-4xl));
5998
+ font-weight: var(--ox0-text-display-weight, var(--ox0-font-weight-heading));
5999
+ line-height: var(--ox0-text-display-leading, var(--ox0-line-height-tight));
6000
+ letter-spacing: var(--ox0-text-display-tracking, var(--ox0-tracking-heading));
5929
6001
  }
5930
6002
 
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
- }
6003
+ .heading-lg-sGfoZF {
6004
+ font-family: var(--ox0-font-subheading, var(--ox0-font-heading));
6005
+ font-size: var(--ox0-text-heading-lg-size, var(--ox0-font-size-2xl));
6006
+ font-weight: var(--ox0-text-heading-lg-weight, var(--ox0-font-weight-subheading));
6007
+ line-height: var(--ox0-text-heading-lg-leading, var(--ox0-line-height-dense));
6008
+ letter-spacing: var(--ox0-text-heading-lg-tracking, var(--ox0-tracking-subheading));
5937
6009
  }
5938
6010
 
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
- }
6011
+ .heading-udDMTP {
6012
+ font-size: var(--ox0-text-heading-size, var(--ox0-font-size-lg));
6013
+ font-weight: var(--ox0-text-heading-weight, var(--ox0-font-weight-semibold));
6014
+ line-height: var(--ox0-text-heading-leading, var(--ox0-line-height-snug));
6015
+ letter-spacing: var(--ox0-text-heading-tracking, var(--ox0-tracking-normal));
5945
6016
  }
5946
6017
 
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
- }
6018
+ .heading-sm-pEPDma {
6019
+ font-size: var(--ox0-text-heading-sm-size, var(--ox0-font-size-md));
6020
+ font-weight: var(--ox0-text-heading-sm-weight, var(--ox0-font-weight-semibold));
6021
+ line-height: var(--ox0-text-heading-sm-leading, var(--ox0-line-height-dense));
6022
+ letter-spacing: var(--ox0-text-heading-sm-tracking, var(--ox0-tracking-normal));
6023
+ }
6024
+
6025
+ .body-YOwBr4 {
6026
+ font-size: var(--ox0-text-body-size, var(--ox0-font-size-md));
6027
+ font-weight: var(--ox0-text-body-weight, var(--ox0-font-weight-normal));
6028
+ line-height: var(--ox0-text-body-leading, var(--ox0-line-height-normal));
6029
+ letter-spacing: var(--ox0-text-body-tracking, var(--ox0-tracking-normal));
6030
+ }
6031
+
6032
+ .body-sm-IYrNKl {
6033
+ font-size: var(--ox0-text-body-sm-size, var(--ox0-font-size-sm));
6034
+ font-weight: var(--ox0-text-body-sm-weight, var(--ox0-font-weight-normal));
6035
+ line-height: var(--ox0-text-body-sm-leading, var(--ox0-line-height-normal));
6036
+ letter-spacing: var(--ox0-text-body-sm-tracking, var(--ox0-tracking-small));
6037
+ }
6038
+
6039
+ .label-gX6o1x {
6040
+ font-size: var(--ox0-text-label-size, var(--ox0-font-size-xs));
6041
+ font-weight: var(--ox0-text-label-weight, var(--ox0-font-weight-medium));
6042
+ line-height: var(--ox0-text-label-leading, var(--ox0-line-height-dense));
6043
+ letter-spacing: var(--ox0-text-label-tracking, var(--ox0-tracking-wider));
6044
+ text-transform: var(--ox0-text-label-transform, uppercase);
6045
+ }
6046
+
6047
+ .caption-F0inTg {
6048
+ font-size: var(--ox0-text-caption-size, var(--ox0-font-size-caption));
6049
+ font-weight: var(--ox0-text-caption-weight, var(--ox0-font-weight-normal));
6050
+ line-height: var(--ox0-text-caption-leading, var(--ox0-line-height-normal));
6051
+ letter-spacing: var(--ox0-text-caption-tracking, var(--ox0-tracking-small));
6052
+ }
6053
+
6054
+ .numeric-lD47Jl {
6055
+ font-family: var(--ox0-font-mono);
6056
+ font-size: var(--ox0-text-numeric-size, var(--ox0-font-size-md));
6057
+ font-weight: var(--ox0-text-numeric-weight, var(--ox0-font-weight-normal));
6058
+ font-variant-numeric: tabular-nums;
6059
+ line-height: var(--ox0-text-numeric-leading, var(--ox0-line-height-dense));
6060
+ letter-spacing: var(--ox0-text-numeric-tracking, var(--ox0-tracking-normal));
6061
+ }
6062
+
6063
+ .code-chvwDx {
6064
+ font-family: var(--ox0-font-mono);
6065
+ font-size: var(--ox0-text-code-size, var(--ox0-font-size-sm));
6066
+ font-weight: var(--ox0-text-code-weight, var(--ox0-font-weight-normal));
6067
+ line-height: var(--ox0-text-code-leading, var(--ox0-line-height-normal));
6068
+ letter-spacing: var(--ox0-text-code-tracking, var(--ox0-tracking-normal));
6069
+ }
6070
+
6071
+ .foreground-dzHYHe {
6072
+ color: var(--ox0-color-foreground);
6073
+ }
6074
+
6075
+ .muted-zeNDqn {
6076
+ color: var(--ox0-color-muted);
6077
+ }
6078
+
6079
+ .accent-ah7uAs {
6080
+ color: var(--ox0-color-accent-text);
6081
+ }
6082
+
6083
+ .success-sVYlMj {
6084
+ color: var(--ox0-color-success-text);
6085
+ }
6086
+
6087
+ .warning-na51J9 {
6088
+ color: var(--ox0-color-warning-text);
6089
+ }
6090
+
6091
+ .danger-AufKYd {
6092
+ color: var(--ox0-color-danger-text);
6093
+ }
6094
+
6095
+ .inherit-gJHLfJ {
6096
+ color: inherit;
6097
+ }
6098
+
6099
+ .truncate-qrGgXB {
6100
+ text-overflow: ellipsis;
6101
+ white-space: nowrap;
6102
+ overflow: hidden;
6103
+ }
6104
+
6105
+ .align-left-UPkxat {
6106
+ text-align: left;
6107
+ }
6108
+
6109
+ .align-center-_fPJYn {
6110
+ text-align: center;
6111
+ }
6112
+
6113
+ .align-right-uScNpc {
6114
+ text-align: right;
5953
6115
  }
5954
6116
  `,
5955
6117
  ""
5956
6118
  ]);
5957
6119
  ___CSS_LOADER_EXPORT___.locals = {
5958
- grid: "grid-bGKCj5"
6120
+ text: "text-ojiRZM",
6121
+ display: "display-FqY2br",
6122
+ "heading-lg": "heading-lg-sGfoZF",
6123
+ headingLg: "heading-lg-sGfoZF",
6124
+ heading: "heading-udDMTP",
6125
+ "heading-sm": "heading-sm-pEPDma",
6126
+ headingSm: "heading-sm-pEPDma",
6127
+ body: "body-YOwBr4",
6128
+ "body-sm": "body-sm-IYrNKl",
6129
+ bodySm: "body-sm-IYrNKl",
6130
+ label: "label-gX6o1x",
6131
+ caption: "caption-F0inTg",
6132
+ numeric: "numeric-lD47Jl",
6133
+ code: "code-chvwDx",
6134
+ foreground: "foreground-dzHYHe",
6135
+ muted: "muted-zeNDqn",
6136
+ accent: "accent-ah7uAs",
6137
+ success: "success-sVYlMj",
6138
+ warning: "warning-na51J9",
6139
+ danger: "danger-AufKYd",
6140
+ inherit: "inherit-gJHLfJ",
6141
+ truncate: "truncate-qrGgXB",
6142
+ "align-left": "align-left-UPkxat",
6143
+ alignLeft: "align-left-UPkxat",
6144
+ "align-center": "align-center-_fPJYn",
6145
+ alignCenter: "align-center-_fPJYn",
6146
+ "align-right": "align-right-uScNpc",
6147
+ alignRight: "align-right-uScNpc"
5959
6148
  };
5960
6149
  const __rspack_default_export = ___CSS_LOADER_EXPORT___;
5961
6150
  __webpack_require__.d(__webpack_exports__, {}, {
5962
6151
  A: __rspack_default_export
5963
6152
  });
5964
6153
  },
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__) {
6154
+ "../../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
6155
  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
6156
  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
6157
  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,85 +6159,359 @@ div.tag-ueb2Qr.selected-a1JhC8[data-selectable]:hover {
5970
6159
  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
6160
  ___CSS_LOADER_EXPORT___.push([
5972
6161
  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
- `,
6162
+ `@keyframes toast-in-X29Xf4 {
6163
+ from {
6164
+ opacity: 0;
6165
+ transform: translateY(.5rem) scale(.96);
6166
+ }
6167
+
6168
+ to {
6169
+ opacity: 1;
6170
+ transform: translateY(0) scale(1);
6171
+ }
6172
+ }
6173
+
6174
+ @keyframes toast-out-LqOm2R {
6175
+ from {
6176
+ opacity: 1;
6177
+ transform: translateY(0) scale(1);
6178
+ }
6179
+
6180
+ to {
6181
+ opacity: 0;
6182
+ transform: translateY(.25rem) scale(.97);
6183
+ }
6184
+ }
6185
+
6186
+ .region-usSlIk {
6187
+ pointer-events: none;
6188
+ width: calc(100vw - 3rem);
6189
+ max-width: 24rem;
6190
+ z-index: var(--ox0-z-toast);
6191
+ flex-direction: column;
6192
+ gap: .5rem;
6193
+ display: flex;
6194
+ position: fixed;
6195
+ bottom: 1.5rem;
6196
+ right: 1.5rem;
6197
+ }
6198
+
6199
+ .toastWrapper-sYOVI0 {
6200
+ animation: toast-in-X29Xf4 var(--ox0-duration-normal) var(--ox0-ease-enter) both;
6201
+ }
6202
+
6203
+ .toastWrapper-sYOVI0.exiting-RcV5Ab {
6204
+ animation: toast-out-LqOm2R var(--ox0-duration-normal) var(--ox0-ease-exit) both;
6205
+ }
6206
+
6207
+ .toast-IaPMrq {
6208
+ background: var(--ox0-color-surface-raised);
6209
+ border: 1px solid var(--ox0-color-border);
6210
+ border-radius: var(--ox0-radius-md);
6211
+ box-shadow: var(--ox0-shadow-toast);
6212
+ pointer-events: auto;
6213
+ border-left-width: 3px;
6214
+ justify-content: space-between;
6215
+ align-items: flex-start;
6216
+ gap: .75rem;
6217
+ padding: .75rem .75rem .75rem 1rem;
6218
+ display: flex;
6219
+ }
6220
+
6221
+ .neutral-ud0XaK {
6222
+ border-left-color: var(--ox0-color-border);
6223
+ }
6224
+
6225
+ .info-qCsWQF {
6226
+ border-left-color: var(--ox0-color-info);
6227
+ }
6228
+
6229
+ .success-BjAK6q {
6230
+ border-left-color: var(--ox0-color-success);
6231
+ }
6232
+
6233
+ .warning-OKigu2 {
6234
+ border-left-color: var(--ox0-color-warning);
6235
+ }
6236
+
6237
+ .danger-LklBtF {
6238
+ border-left-color: var(--ox0-color-danger);
6239
+ }
6240
+
6241
+ .body-tmPCh0 {
6242
+ flex-direction: column;
6243
+ flex: 1;
6244
+ gap: .125rem;
6245
+ min-width: 0;
6246
+ display: flex;
6247
+ }
6248
+
6249
+ .message-kZji67 {
6250
+ color: var(--ox0-color-foreground);
6251
+ font-size: var(--ox0-font-size-sm);
6252
+ font-weight: var(--ox0-font-weight-medium);
6253
+ margin: 0;
6254
+ line-height: 1.4;
6255
+ }
6256
+
6257
+ .description-uROdxr {
6258
+ color: var(--ox0-color-muted);
6259
+ font-size: var(--ox0-font-size-sm);
6260
+ margin: 0;
6261
+ line-height: 1.4;
6262
+ }
6263
+
6264
+ .actions-NAScjf {
6265
+ flex-shrink: 0;
6266
+ align-items: center;
6267
+ gap: .25rem;
6268
+ display: flex;
6269
+ }
6270
+
6271
+ .actionButton-ju2Jqp {
6272
+ border: 1px solid var(--ox0-color-border);
6273
+ border-radius: var(--ox0-radius-sm);
6274
+ color: var(--ox0-color-foreground);
6275
+ cursor: pointer;
6276
+ font-family: var(--ox0-font-sans);
6277
+ font-size: var(--ox0-font-size-xs);
6278
+ font-weight: var(--ox0-font-weight-medium);
6279
+ white-space: nowrap;
6280
+ background: none;
6281
+ padding: .25rem .5rem;
6282
+ line-height: 1;
6283
+ }
6284
+
6285
+ .actionButton-ju2Jqp:hover {
6286
+ background: var(--ox0-color-surface);
6287
+ }
6288
+
6289
+ .closeButton-Zka7v8 {
6290
+ border-radius: var(--ox0-radius-xs);
6291
+ color: var(--ox0-color-muted);
6292
+ cursor: pointer;
6293
+ background: none;
6294
+ border: none;
6295
+ flex-shrink: 0;
6296
+ justify-content: center;
6297
+ align-items: center;
6298
+ width: 1.5rem;
6299
+ height: 1.5rem;
6300
+ padding: 0;
6301
+ display: flex;
6302
+ }
6303
+
6304
+ .closeButton-Zka7v8:hover {
6305
+ background: var(--ox0-color-surface);
6306
+ color: var(--ox0-color-foreground);
6307
+ }
6308
+ `,
5981
6309
  ""
5982
6310
  ]);
5983
6311
  ___CSS_LOADER_EXPORT___.locals = {
5984
- root: "root-_RvXxD"
6312
+ region: "region-usSlIk",
6313
+ toastWrapper: "toastWrapper-sYOVI0",
6314
+ "toast-in": "toast-in-X29Xf4",
6315
+ toastIn: "toast-in-X29Xf4",
6316
+ exiting: "exiting-RcV5Ab",
6317
+ "toast-out": "toast-out-LqOm2R",
6318
+ toastOut: "toast-out-LqOm2R",
6319
+ toast: "toast-IaPMrq",
6320
+ neutral: "neutral-ud0XaK",
6321
+ info: "info-qCsWQF",
6322
+ success: "success-BjAK6q",
6323
+ warning: "warning-OKigu2",
6324
+ danger: "danger-LklBtF",
6325
+ body: "body-tmPCh0",
6326
+ message: "message-kZji67",
6327
+ description: "description-uROdxr",
6328
+ actions: "actions-NAScjf",
6329
+ actionButton: "actionButton-ju2Jqp",
6330
+ closeButton: "closeButton-Zka7v8"
5985
6331
  };
5986
6332
  const __rspack_default_export = ___CSS_LOADER_EXPORT___;
5987
6333
  __webpack_require__.d(__webpack_exports__, {}, {
5988
6334
  A: __rspack_default_export
5989
6335
  });
5990
6336
  },
5991
- "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js" (module) {
5992
- module.exports = function(cssWithMappingToString) {
5993
- var list = [];
5994
- list.toString = function() {
5995
- return this.map(function(item) {
5996
- var content = "";
5997
- var needLayer = void 0 !== item[5];
5998
- if (item[4]) content += "@supports (".concat(item[4], ") {");
5999
- if (item[2]) content += "@media ".concat(item[2], " {");
6000
- if (needLayer) content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
6001
- content += cssWithMappingToString(item);
6002
- if (needLayer) content += "}";
6003
- if (item[2]) content += "}";
6004
- if (item[4]) content += "}";
6005
- return content;
6006
- }).join("");
6007
- };
6008
- list.i = function(modules, media, dedupe, supports, layer) {
6009
- if ("string" == typeof modules) modules = [
6010
- [
6011
- null,
6012
- modules,
6013
- void 0
6014
- ]
6015
- ];
6016
- var alreadyImportedModules = {};
6017
- if (dedupe) for(var k = 0; k < this.length; k++){
6018
- var id = this[k][0];
6019
- if (null != id) alreadyImportedModules[id] = true;
6020
- }
6021
- for(var _k = 0; _k < modules.length; _k++){
6022
- var item = [].concat(modules[_k]);
6023
- if (!dedupe || !alreadyImportedModules[item[0]]) {
6024
- if (void 0 !== layer) if (void 0 === item[5]) item[5] = layer;
6025
- else {
6026
- item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
6027
- item[5] = layer;
6028
- }
6029
- if (media) if (item[2]) {
6030
- item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
6031
- item[2] = media;
6032
- } else item[2] = media;
6033
- if (supports) if (item[4]) {
6034
- item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
6035
- item[4] = supports;
6036
- } else item[4] = "".concat(supports);
6037
- list.push(item);
6038
- }
6039
- }
6040
- };
6041
- return list;
6042
- };
6043
- },
6044
- "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js" (module) {
6045
- module.exports = function(i) {
6046
- return i[1];
6337
+ "../../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__) {
6338
+ 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");
6339
+ 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);
6340
+ 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");
6341
+ 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);
6342
+ 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());
6343
+ ___CSS_LOADER_EXPORT___.push([
6344
+ module.id,
6345
+ `.tooltip-NkB3V8 {
6346
+ background: var(--ox0-color-foreground);
6347
+ border-radius: var(--ox0-radius-xs);
6348
+ color: var(--ox0-color-canvas);
6349
+ font-family: var(--ox0-font-sans);
6350
+ font-size: var(--ox0-font-size-xs);
6351
+ pointer-events: none;
6352
+ max-width: 20rem;
6353
+ z-index: var(--ox0-z-tooltip);
6354
+ forced-color-adjust: none;
6355
+ padding: .25rem .5rem;
6356
+ line-height: 1.5;
6357
+ }
6358
+ `,
6359
+ ""
6360
+ ]);
6361
+ ___CSS_LOADER_EXPORT___.locals = {
6362
+ tooltip: "tooltip-NkB3V8"
6047
6363
  };
6364
+ const __rspack_default_export = ___CSS_LOADER_EXPORT___;
6365
+ __webpack_require__.d(__webpack_exports__, {}, {
6366
+ A: __rspack_default_export
6367
+ });
6048
6368
  },
6049
- "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js" (module) {
6050
- var stylesInDOM = [];
6051
- function getIndexByIdentifier(identifier) {
6369
+ "../../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__) {
6370
+ 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");
6371
+ 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);
6372
+ 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");
6373
+ 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);
6374
+ 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());
6375
+ ___CSS_LOADER_EXPORT___.push([
6376
+ module.id,
6377
+ `.grid-bGKCj5 {
6378
+ --ox0-grid-auto-columns: repeat(auto-fit,
6379
+ minmax(min(var(--ox0-grid-min-column, 12rem), 100%), 1fr));
6380
+ grid-template-columns: var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns));
6381
+ grid-template-rows: var(--ox0-grid-rows-base, none);
6382
+ grid-template-areas: var(--ox0-grid-areas-base, none);
6383
+ display: grid;
6384
+ }
6385
+
6386
+ @media (width >= 30rem) {
6387
+ .grid-bGKCj5 {
6388
+ grid-template-columns: var(--ox0-grid-columns-sm, var(--ox0-grid-columns-base, var(--ox0-grid-auto-columns)));
6389
+ grid-template-rows: var(--ox0-grid-rows-sm, var(--ox0-grid-rows-base, none));
6390
+ grid-template-areas: var(--ox0-grid-areas-sm, var(--ox0-grid-areas-base, none));
6391
+ }
6392
+ }
6393
+
6394
+ @media (width >= 48rem) {
6395
+ .grid-bGKCj5 {
6396
+ grid-template-columns: 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-md, var(--ox0-grid-rows-sm, var(--ox0-grid-rows-base, none)));
6398
+ grid-template-areas: var(--ox0-grid-areas-md, var(--ox0-grid-areas-sm, var(--ox0-grid-areas-base, none)));
6399
+ }
6400
+ }
6401
+
6402
+ @media (width >= 64rem) {
6403
+ .grid-bGKCj5 {
6404
+ 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)))));
6405
+ grid-template-rows: var(--ox0-grid-rows-lg, var(--ox0-grid-rows-md, var(--ox0-grid-rows-sm, var(--ox0-grid-rows-base, none))));
6406
+ grid-template-areas: var(--ox0-grid-areas-lg, var(--ox0-grid-areas-md, var(--ox0-grid-areas-sm, var(--ox0-grid-areas-base, none))));
6407
+ }
6408
+ }
6409
+
6410
+ @media (width >= 80rem) {
6411
+ .grid-bGKCj5 {
6412
+ 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))))));
6413
+ 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)))));
6414
+ 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)))));
6415
+ }
6416
+ }
6417
+ `,
6418
+ ""
6419
+ ]);
6420
+ ___CSS_LOADER_EXPORT___.locals = {
6421
+ grid: "grid-bGKCj5"
6422
+ };
6423
+ const __rspack_default_export = ___CSS_LOADER_EXPORT___;
6424
+ __webpack_require__.d(__webpack_exports__, {}, {
6425
+ A: __rspack_default_export
6426
+ });
6427
+ },
6428
+ "../../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__) {
6429
+ 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");
6430
+ 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);
6431
+ 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");
6432
+ 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);
6433
+ 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());
6434
+ ___CSS_LOADER_EXPORT___.push([
6435
+ module.id,
6436
+ `.root-_RvXxD {
6437
+ color: var(--ox0-color-foreground);
6438
+ font-family: var(--ox0-font-sans);
6439
+ font-size: var(--ox0-font-size-md);
6440
+ line-height: var(--ox0-line-height-normal);
6441
+ display: contents;
6442
+ }
6443
+ `,
6444
+ ""
6445
+ ]);
6446
+ ___CSS_LOADER_EXPORT___.locals = {
6447
+ root: "root-_RvXxD"
6448
+ };
6449
+ const __rspack_default_export = ___CSS_LOADER_EXPORT___;
6450
+ __webpack_require__.d(__webpack_exports__, {}, {
6451
+ A: __rspack_default_export
6452
+ });
6453
+ },
6454
+ "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/api.js" (module) {
6455
+ module.exports = function(cssWithMappingToString) {
6456
+ var list = [];
6457
+ list.toString = function() {
6458
+ return this.map(function(item) {
6459
+ var content = "";
6460
+ var needLayer = void 0 !== item[5];
6461
+ if (item[4]) content += "@supports (".concat(item[4], ") {");
6462
+ if (item[2]) content += "@media ".concat(item[2], " {");
6463
+ if (needLayer) content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
6464
+ content += cssWithMappingToString(item);
6465
+ if (needLayer) content += "}";
6466
+ if (item[2]) content += "}";
6467
+ if (item[4]) content += "}";
6468
+ return content;
6469
+ }).join("");
6470
+ };
6471
+ list.i = function(modules, media, dedupe, supports, layer) {
6472
+ if ("string" == typeof modules) modules = [
6473
+ [
6474
+ null,
6475
+ modules,
6476
+ void 0
6477
+ ]
6478
+ ];
6479
+ var alreadyImportedModules = {};
6480
+ if (dedupe) for(var k = 0; k < this.length; k++){
6481
+ var id = this[k][0];
6482
+ if (null != id) alreadyImportedModules[id] = true;
6483
+ }
6484
+ for(var _k = 0; _k < modules.length; _k++){
6485
+ var item = [].concat(modules[_k]);
6486
+ if (!dedupe || !alreadyImportedModules[item[0]]) {
6487
+ if (void 0 !== layer) if (void 0 === item[5]) item[5] = layer;
6488
+ else {
6489
+ item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
6490
+ item[5] = layer;
6491
+ }
6492
+ if (media) if (item[2]) {
6493
+ item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
6494
+ item[2] = media;
6495
+ } else item[2] = media;
6496
+ if (supports) if (item[4]) {
6497
+ item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
6498
+ item[4] = supports;
6499
+ } else item[4] = "".concat(supports);
6500
+ list.push(item);
6501
+ }
6502
+ }
6503
+ };
6504
+ return list;
6505
+ };
6506
+ },
6507
+ "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js" (module) {
6508
+ module.exports = function(i) {
6509
+ return i[1];
6510
+ };
6511
+ },
6512
+ "../../node_modules/.pnpm/@rsbuild+core@2.3.0-beta.0_core-js@3.47.0/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js" (module) {
6513
+ var stylesInDOM = [];
6514
+ function getIndexByIdentifier(identifier) {
6052
6515
  var result = -1;
6053
6516
  for(var i = 0; i < stylesInDOM.length; i++)if (stylesInDOM[i].identifier === identifier) {
6054
6517
  result = i;
@@ -6212,6 +6675,10 @@ const defaultUiMessages = {
6212
6675
  "ox0.appShell.navTitle": "Menu",
6213
6676
  "ox0.appShell.openNav": "Open navigation",
6214
6677
  "ox0.appShell.skipToContent": "Skip to content",
6678
+ "ox0.bulkTagEditor.add": "Add “{tag}”",
6679
+ "ox0.bulkTagEditor.count": "On {count} of {total}",
6680
+ "ox0.bulkTagEditor.empty": "No tags yet",
6681
+ "ox0.bulkTagEditor.find": "Find or add a tag",
6215
6682
  "ox0.confirm.cancel": "Cancel",
6216
6683
  "ox0.confirm.confirm": "Confirm",
6217
6684
  "ox0.drawer.close": "Close",
@@ -6235,6 +6702,20 @@ const defaultUiMessages = {
6235
6702
  "ox0.numberField.increment": "Increment",
6236
6703
  "ox0.searchField.clear": "Clear search",
6237
6704
  "ox0.select.selectedCount": "{count} selected",
6705
+ "ox0.tagColor.blue": "Blue",
6706
+ "ox0.tagColor.gray": "Gray",
6707
+ "ox0.tagColor.green": "Green",
6708
+ "ox0.tagColor.ink": "Ink",
6709
+ "ox0.tagColor.orange": "Orange",
6710
+ "ox0.tagColor.pink": "Pink",
6711
+ "ox0.tagColor.purple": "Purple",
6712
+ "ox0.tagColor.red": "Red",
6713
+ "ox0.tagColor.silver": "Silver",
6714
+ "ox0.tagColor.teal": "Teal",
6715
+ "ox0.tagColor.yellow": "Yellow",
6716
+ "ox0.tagColorButton.label": "{label}: {color}",
6717
+ "ox0.tagField.add": "Add “{tag}”",
6718
+ "ox0.tagField.remove": "Remove {tag}",
6238
6719
  "ox0.textField.clear": "Clear",
6239
6720
  "ox0.toast.dismiss": "Dismiss notification",
6240
6721
  "ox0.toast.region": "Notifications"
@@ -8336,7 +8817,421 @@ const text_Text = /*#__PURE__*/ forwardRef(function({ align, as, children, color
8336
8817
  ...props,
8337
8818
  children: children
8338
8819
  });
8339
- });
8820
+ });
8821
+ 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");
8822
+ var checkbox_module_options = {};
8823
+ checkbox_module_options.styleTagTransform = styleTagTransform_default();
8824
+ checkbox_module_options.setAttributes = setAttributesWithoutAttributes_default();
8825
+ checkbox_module_options.insert = insertBySelector_default().bind(null, "head");
8826
+ checkbox_module_options.domAPI = styleDomAPI_default();
8827
+ checkbox_module_options.insertStyleElement = insertStyleElement_default();
8828
+ injectStylesIntoStyleTag_default()(checkbox_module_0.A, checkbox_module_options);
8829
+ const checkbox_module = checkbox_module_0.A && checkbox_module_0.A.locals ? checkbox_module_0.A.locals : void 0;
8830
+ 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");
8831
+ var choice_module_options = {};
8832
+ choice_module_options.styleTagTransform = styleTagTransform_default();
8833
+ choice_module_options.setAttributes = setAttributesWithoutAttributes_default();
8834
+ choice_module_options.insert = insertBySelector_default().bind(null, "head");
8835
+ choice_module_options.domAPI = styleDomAPI_default();
8836
+ choice_module_options.insertStyleElement = insertStyleElement_default();
8837
+ injectStylesIntoStyleTag_default()(choice_module_0.A, choice_module_options);
8838
+ const choice_module = choice_module_0.A && choice_module_0.A.locals ? choice_module_0.A.locals : void 0;
8839
+ const checkbox_Checkbox = /*#__PURE__*/ forwardRef(function({ label, description, isDisabled, isInvalid, isSelected, isIndeterminate = false, defaultSelected, errorMessage, onChange, id: idProp, ...restProps }, ref) {
8840
+ const inputRef = useRef(null);
8841
+ useLayoutEffect(()=>{
8842
+ if (inputRef.current) inputRef.current.indeterminate = isIndeterminate;
8843
+ }, [
8844
+ isIndeterminate
8845
+ ]);
8846
+ const { style: layoutStyle } = useLayoutItem(restProps);
8847
+ const [, props] = splitLayoutItemProps(restProps);
8848
+ const generatedId = useId();
8849
+ const id = idProp ?? generatedId;
8850
+ const descriptionId = description ? `${id}-description` : void 0;
8851
+ const errorId = errorMessage ? `${id}-error` : void 0;
8852
+ const describedBy = [
8853
+ descriptionId,
8854
+ errorId
8855
+ ].filter(Boolean).join(" ") || void 0;
8856
+ const invalid = isInvalid || !!errorMessage;
8857
+ return /*#__PURE__*/ jsxs("div", {
8858
+ className: checkbox_module.root,
8859
+ style: layoutStyle,
8860
+ children: [
8861
+ /*#__PURE__*/ jsxs("label", {
8862
+ className: `${checkbox_module.label}${isDisabled ? ` ${checkbox_module.disabled}` : ""}`,
8863
+ children: [
8864
+ /*#__PURE__*/ jsx("input", {
8865
+ ...props,
8866
+ ref: (node)=>{
8867
+ inputRef.current = node;
8868
+ if ("function" == typeof ref) ref(node);
8869
+ else if (ref) ref.current = node;
8870
+ },
8871
+ "aria-describedby": describedBy,
8872
+ "aria-invalid": invalid || void 0,
8873
+ checked: isSelected,
8874
+ className: `${choice_module.control} ${choice_module.checkbox}`,
8875
+ defaultChecked: defaultSelected,
8876
+ disabled: isDisabled,
8877
+ id: id,
8878
+ onChange: (e)=>onChange?.(e.target.checked),
8879
+ type: "checkbox"
8880
+ }),
8881
+ /*#__PURE__*/ jsxs("span", {
8882
+ children: [
8883
+ label ? /*#__PURE__*/ jsx("span", {
8884
+ children: label
8885
+ }) : null,
8886
+ description ? /*#__PURE__*/ jsx("span", {
8887
+ className: checkbox_module.description,
8888
+ id: descriptionId,
8889
+ children: description
8890
+ }) : null
8891
+ ]
8892
+ })
8893
+ ]
8894
+ }),
8895
+ errorMessage ? /*#__PURE__*/ jsx("span", {
8896
+ className: checkbox_module.error,
8897
+ id: errorId,
8898
+ children: errorMessage
8899
+ }) : null
8900
+ ]
8901
+ });
8902
+ });
8903
+ 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");
8904
+ var tag_color_module_options = {};
8905
+ tag_color_module_options.styleTagTransform = styleTagTransform_default();
8906
+ tag_color_module_options.setAttributes = setAttributesWithoutAttributes_default();
8907
+ tag_color_module_options.insert = insertBySelector_default().bind(null, "head");
8908
+ tag_color_module_options.domAPI = styleDomAPI_default();
8909
+ tag_color_module_options.insertStyleElement = insertStyleElement_default();
8910
+ injectStylesIntoStyleTag_default()(tag_color_module_0.A, tag_color_module_options);
8911
+ const tag_color_module = tag_color_module_0.A && tag_color_module_0.A.locals ? tag_color_module_0.A.locals : void 0;
8912
+ function TagColorDot({ color }) {
8913
+ const isPlain = void 0 === color || "gray" === color;
8914
+ return /*#__PURE__*/ jsx("span", {
8915
+ "aria-hidden": true,
8916
+ className: `${tag_color_module.hue} ${tag_color_module.dot}`,
8917
+ "data-color": isPlain ? void 0 : color,
8918
+ "data-plain": isPlain ? "" : void 0
8919
+ });
8920
+ }
8921
+ 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");
8922
+ var field_module_options = {};
8923
+ field_module_options.styleTagTransform = styleTagTransform_default();
8924
+ field_module_options.setAttributes = setAttributesWithoutAttributes_default();
8925
+ field_module_options.insert = insertBySelector_default().bind(null, "head");
8926
+ field_module_options.domAPI = styleDomAPI_default();
8927
+ field_module_options.insertStyleElement = insertStyleElement_default();
8928
+ injectStylesIntoStyleTag_default()(field_module_0.A, field_module_options);
8929
+ const field_module = field_module_0.A && field_module_0.A.locals ? field_module_0.A.locals : void 0;
8930
+ 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");
8931
+ var text_field_module_options = {};
8932
+ text_field_module_options.styleTagTransform = styleTagTransform_default();
8933
+ text_field_module_options.setAttributes = setAttributesWithoutAttributes_default();
8934
+ text_field_module_options.insert = insertBySelector_default().bind(null, "head");
8935
+ text_field_module_options.domAPI = styleDomAPI_default();
8936
+ text_field_module_options.insertStyleElement = insertStyleElement_default();
8937
+ injectStylesIntoStyleTag_default()(text_field_module_0.A, text_field_module_options);
8938
+ const text_field_module = text_field_module_0.A && text_field_module_0.A.locals ? text_field_module_0.A.locals : void 0;
8939
+ 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) {
8940
+ const { style: layoutStyle } = useLayoutItem(restProps);
8941
+ const [, props] = splitLayoutItemProps(restProps);
8942
+ const generatedId = useId();
8943
+ const clearLabel = useMessage("ox0.textField.clear", "Clear");
8944
+ const id = idProp ?? generatedId;
8945
+ const descriptionId = description ? `${id}-description` : void 0;
8946
+ const errorId = errorMessage ? `${id}-error` : void 0;
8947
+ const describedBy = [
8948
+ descriptionId,
8949
+ errorId
8950
+ ].filter(Boolean).join(" ") || void 0;
8951
+ const invalid = isInvalid || !!errorMessage;
8952
+ const inputRef = useRef(null);
8953
+ const setInputRef = useCallback((node)=>{
8954
+ inputRef.current = node;
8955
+ if (!ref) return;
8956
+ if ("function" == typeof ref) return void ref(node);
8957
+ if ("current" in ref) ref.current = node;
8958
+ }, [
8959
+ ref
8960
+ ]);
8961
+ const [isFocusVisible, setIsFocusVisible] = useState(false);
8962
+ const pointerActive = useRef(false);
8963
+ const handleClear = useCallback(()=>{
8964
+ onChange?.("");
8965
+ onClear?.();
8966
+ inputRef.current?.focus();
8967
+ }, [
8968
+ onChange,
8969
+ onClear
8970
+ ]);
8971
+ return /*#__PURE__*/ jsxs("div", {
8972
+ className: text_field_module.root,
8973
+ style: layoutStyle,
8974
+ children: [
8975
+ label ? /*#__PURE__*/ jsx("label", {
8976
+ className: field_module.label,
8977
+ htmlFor: id,
8978
+ children: label
8979
+ }) : null,
8980
+ /*#__PURE__*/ jsxs("div", {
8981
+ className: [
8982
+ text_field_module.control,
8983
+ invalid ? text_field_module.invalid : null,
8984
+ isFocusVisible ? text_field_module.focusVisible : null
8985
+ ].filter(Boolean).join(" "),
8986
+ "data-variant": variant,
8987
+ children: [
8988
+ Icon ? /*#__PURE__*/ jsx("span", {
8989
+ "aria-hidden": "true",
8990
+ className: text_field_module.icon,
8991
+ children: /*#__PURE__*/ jsx(Icon, {
8992
+ size: 12
8993
+ })
8994
+ }) : null,
8995
+ /*#__PURE__*/ jsx("input", {
8996
+ ...props,
8997
+ ref: setInputRef,
8998
+ "aria-describedby": describedBy,
8999
+ "aria-invalid": invalid || void 0,
9000
+ "aria-label": ariaLabel,
9001
+ className: text_field_module.input,
9002
+ disabled: isDisabled,
9003
+ id: id,
9004
+ readOnly: isReadOnly,
9005
+ onPointerDown: (e)=>{
9006
+ pointerActive.current = true;
9007
+ onPointerDown?.(e);
9008
+ },
9009
+ onFocus: (e)=>{
9010
+ if (!pointerActive.current) setIsFocusVisible(true);
9011
+ pointerActive.current = false;
9012
+ onFocus?.(e);
9013
+ },
9014
+ onBlur: (e)=>{
9015
+ setIsFocusVisible(false);
9016
+ onBlur?.(e);
9017
+ },
9018
+ onKeyDown: (e)=>{
9019
+ if (isClearable && "Escape" === e.key) {
9020
+ e.preventDefault();
9021
+ handleClear();
9022
+ }
9023
+ onKeyDown?.(e);
9024
+ },
9025
+ onChange: onChange ? (e)=>onChange(e.target.value) : void 0
9026
+ }),
9027
+ isClearable ? /*#__PURE__*/ jsx("button", {
9028
+ "aria-label": clearLabel,
9029
+ className: text_field_module.clear,
9030
+ tabIndex: -1,
9031
+ type: "button",
9032
+ onClick: handleClear,
9033
+ children: /*#__PURE__*/ jsx("svg", {
9034
+ "aria-hidden": "true",
9035
+ fill: "none",
9036
+ height: "12",
9037
+ viewBox: "0 0 12 12",
9038
+ width: "12",
9039
+ children: /*#__PURE__*/ jsx("path", {
9040
+ d: "M2 2L10 10M10 2L2 10",
9041
+ stroke: "currentColor",
9042
+ strokeLinecap: "round",
9043
+ strokeWidth: "1.5"
9044
+ })
9045
+ })
9046
+ }) : null
9047
+ ]
9048
+ }),
9049
+ description ? /*#__PURE__*/ jsx("span", {
9050
+ className: text_field_module.description,
9051
+ id: descriptionId,
9052
+ children: description
9053
+ }) : null,
9054
+ errorMessage ? /*#__PURE__*/ jsx("span", {
9055
+ className: text_field_module.error,
9056
+ id: errorId,
9057
+ children: errorMessage
9058
+ }) : null
9059
+ ]
9060
+ });
9061
+ });
9062
+ 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");
9063
+ var bulk_tag_editor_module_options = {};
9064
+ bulk_tag_editor_module_options.styleTagTransform = styleTagTransform_default();
9065
+ bulk_tag_editor_module_options.setAttributes = setAttributesWithoutAttributes_default();
9066
+ bulk_tag_editor_module_options.insert = insertBySelector_default().bind(null, "head");
9067
+ bulk_tag_editor_module_options.domAPI = styleDomAPI_default();
9068
+ bulk_tag_editor_module_options.insertStyleElement = insertStyleElement_default();
9069
+ injectStylesIntoStyleTag_default()(bulk_tag_editor_module_0.A, bulk_tag_editor_module_options);
9070
+ 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;
9071
+ const NO_CHANGES = {
9072
+ add: [],
9073
+ remove: []
9074
+ };
9075
+ const fold = (s)=>s.trim().toLowerCase();
9076
+ function originalState(count, itemCount) {
9077
+ if (count <= 0) return "none";
9078
+ return count >= itemCount ? "all" : "some";
9079
+ }
9080
+ function BulkTagEditor(allProps) {
9081
+ const [layout, { label, ariaLabel, description, isDisabled = false, itemCount, tags, suggestions = [], value: valueProp, defaultValue, onChange, tagColor }] = splitLayoutItemProps(allProps);
9082
+ const { style: layoutStyle } = useLayoutItem(layout);
9083
+ if (!label && !ariaLabel) throw new Error("BulkTagEditor requires `label` or `ariaLabel`.");
9084
+ const uid = useId();
9085
+ const labelId = label ? `${uid}-label` : void 0;
9086
+ const descriptionId = description ? `${uid}-description` : void 0;
9087
+ const listId = `${uid}-list`;
9088
+ const isControlled = void 0 !== valueProp;
9089
+ const [uncontrolledValue, setUncontrolledValue] = useState(()=>defaultValue ?? NO_CHANGES);
9090
+ const changes = isControlled ? valueProp : uncontrolledValue;
9091
+ function commit(next) {
9092
+ if (!isControlled) setUncontrolledValue(next);
9093
+ onChange?.(next);
9094
+ }
9095
+ const rows = (()=>{
9096
+ const counts = new Map();
9097
+ 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);
9098
+ for (const tag of suggestions.toSorted((a, b)=>a.localeCompare(b)))if (!counts.has(fold(tag))) counts.set(fold(tag), {
9099
+ tag,
9100
+ count: 0
9101
+ });
9102
+ const created = changes.add.filter((t)=>!counts.has(fold(t)));
9103
+ const all = [
9104
+ ...created.map((tag)=>({
9105
+ tag,
9106
+ count: 0
9107
+ })),
9108
+ ...counts.values()
9109
+ ];
9110
+ const add = new Set(changes.add.map(fold));
9111
+ const remove = new Set(changes.remove.map(fold));
9112
+ return all.map(({ tag, count })=>({
9113
+ tag,
9114
+ count,
9115
+ state: add.has(fold(tag)) ? "all" : remove.has(fold(tag)) ? "none" : originalState(count, itemCount)
9116
+ }));
9117
+ })();
9118
+ function setState(row, state) {
9119
+ const key = fold(row.tag);
9120
+ const add = changes.add.filter((t)=>fold(t) !== key);
9121
+ const remove = changes.remove.filter((t)=>fold(t) !== key);
9122
+ const start = originalState(row.count, itemCount);
9123
+ if ("all" === state && "all" !== start) add.push(row.tag);
9124
+ if ("none" === state && "none" !== start) remove.push(row.tag);
9125
+ commit({
9126
+ add,
9127
+ remove
9128
+ });
9129
+ }
9130
+ function toggle(row) {
9131
+ const mixed = "some" === originalState(row.count, itemCount);
9132
+ const next = "all" === row.state ? "none" : "none" === row.state && mixed ? "some" : "all";
9133
+ setState(row, next);
9134
+ }
9135
+ const [query, setQuery] = useState("");
9136
+ const q = fold(query);
9137
+ const shown = q ? rows.filter((r)=>fold(r.tag).includes(q)) : rows;
9138
+ const exact = rows.find((r)=>fold(r.tag) === q);
9139
+ function submitQuery() {
9140
+ const tag = query.trim();
9141
+ if (!tag) return;
9142
+ setState(exact ?? {
9143
+ tag,
9144
+ count: 0
9145
+ }, "all");
9146
+ setQuery("");
9147
+ }
9148
+ function handleKeyDown(e) {
9149
+ if ("Enter" !== e.key) return;
9150
+ e.preventDefault();
9151
+ submitQuery();
9152
+ }
9153
+ const findLabel = useMessage("ox0.bulkTagEditor.find", "Find or add a tag");
9154
+ const addLabel = useMessage("ox0.bulkTagEditor.add", "Add “{tag}”", {
9155
+ tag: query.trim()
9156
+ });
9157
+ const noneLabel = useMessage("ox0.bulkTagEditor.empty", "No tags yet");
9158
+ return /*#__PURE__*/ jsxs("div", {
9159
+ className: bulk_tag_editor_module.root,
9160
+ style: layoutStyle,
9161
+ children: [
9162
+ label ? /*#__PURE__*/ jsx("span", {
9163
+ className: field_module.label,
9164
+ id: labelId,
9165
+ children: label
9166
+ }) : null,
9167
+ description ? /*#__PURE__*/ jsx("span", {
9168
+ className: bulk_tag_editor_module.description,
9169
+ id: descriptionId,
9170
+ children: description
9171
+ }) : null,
9172
+ /*#__PURE__*/ jsx(text_field_TextField, {
9173
+ ariaLabel: findLabel,
9174
+ placeholder: findLabel,
9175
+ "aria-controls": listId,
9176
+ isDisabled: isDisabled,
9177
+ value: query,
9178
+ onChange: setQuery,
9179
+ onKeyDown: handleKeyDown
9180
+ }),
9181
+ /*#__PURE__*/ jsxs("fieldset", {
9182
+ "aria-describedby": descriptionId,
9183
+ "aria-label": label ? void 0 : ariaLabel,
9184
+ "aria-labelledby": labelId,
9185
+ className: bulk_tag_editor_module.list,
9186
+ id: listId,
9187
+ children: [
9188
+ q && !exact ? /*#__PURE__*/ jsx(button_Button, {
9189
+ variant: "ghost",
9190
+ size: "sm",
9191
+ isDisabled: isDisabled,
9192
+ onPress: submitQuery,
9193
+ children: addLabel
9194
+ }) : null,
9195
+ shown.map((row)=>/*#__PURE__*/ jsx(BulkTagRow, {
9196
+ row: row,
9197
+ color: tagColor?.(row.tag),
9198
+ hasColors: void 0 !== tagColor,
9199
+ itemCount: itemCount,
9200
+ isDisabled: isDisabled,
9201
+ onToggle: ()=>toggle(row)
9202
+ }, row.tag)),
9203
+ 0 !== rows.length || q ? null : /*#__PURE__*/ jsx("span", {
9204
+ className: bulk_tag_editor_module.empty,
9205
+ children: noneLabel
9206
+ })
9207
+ ]
9208
+ })
9209
+ ]
9210
+ });
9211
+ }
9212
+ function BulkTagRow({ row, color, hasColors, itemCount, isDisabled, onToggle }) {
9213
+ const mixed = "some" === row.state;
9214
+ const countLabel = useMessage("ox0.bulkTagEditor.count", "On {count} of {total}", {
9215
+ count: String(row.count),
9216
+ total: String(itemCount)
9217
+ });
9218
+ return /*#__PURE__*/ jsx(checkbox_Checkbox, {
9219
+ label: /*#__PURE__*/ jsxs("span", {
9220
+ className: bulk_tag_editor_module.tagLabel,
9221
+ children: [
9222
+ hasColors ? /*#__PURE__*/ jsx(TagColorDot, {
9223
+ color: color
9224
+ }) : null,
9225
+ row.tag
9226
+ ]
9227
+ }),
9228
+ description: mixed ? countLabel : void 0,
9229
+ isDisabled: isDisabled,
9230
+ isIndeterminate: mixed,
9231
+ isSelected: "all" === row.state,
9232
+ onChange: onToggle
9233
+ });
9234
+ }
8340
9235
  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
9236
  var link_module_options = {};
8342
9237
  link_module_options.styleTagTransform = styleTagTransform_default();
@@ -8437,88 +9332,6 @@ const button_group_ButtonGroup = /*#__PURE__*/ forwardRef(function({ children, i
8437
9332
  children: children
8438
9333
  });
8439
9334
  });
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
9335
  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
9336
  var checkbox_group_module_options = {};
8524
9337
  checkbox_group_module_options.styleTagTransform = styleTagTransform_default();
@@ -8528,15 +9341,6 @@ checkbox_group_module_options.domAPI = styleDomAPI_default();
8528
9341
  checkbox_group_module_options.insertStyleElement = insertStyleElement_default();
8529
9342
  injectStylesIntoStyleTag_default()(checkbox_group_module_0.A, checkbox_group_module_options);
8530
9343
  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
9344
  const CheckboxGroupContext = /*#__PURE__*/ createContext(null);
8541
9345
  function useCheckboxGroupContext() {
8542
9346
  const ctx = useContext(CheckboxGroupContext);
@@ -12632,15 +13436,6 @@ const switch_Switch = /*#__PURE__*/ forwardRef(function({ label, description, is
12632
13436
  ]
12633
13437
  });
12634
13438
  });
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
13439
  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
13440
  const { style: layoutStyle } = useLayoutItem(restProps);
12646
13441
  const [, props] = splitLayoutItemProps(restProps);
@@ -13227,321 +14022,894 @@ const slider_Slider = /*#__PURE__*/ forwardRef(function({ ariaLabel, defaultValu
13227
14022
  const handleChange = useCallback((e)=>{
13228
14023
  commit(e.target.valueAsNumber);
13229
14024
  }, [
13230
- commit
14025
+ commit
14026
+ ]);
14027
+ const handleKeyDown = useCallback((e)=>{
14028
+ const cur = currentValue;
14029
+ const large = 10 * step;
14030
+ if ("ArrowRight" === e.key || "ArrowUp" === e.key) {
14031
+ e.preventDefault();
14032
+ commit(cur + step);
14033
+ } else if ("ArrowLeft" === e.key || "ArrowDown" === e.key) {
14034
+ e.preventDefault();
14035
+ commit(cur - step);
14036
+ } else if ("PageUp" === e.key) {
14037
+ e.preventDefault();
14038
+ commit(cur + large);
14039
+ } else if ("PageDown" === e.key) {
14040
+ e.preventDefault();
14041
+ commit(cur - large);
14042
+ } else if ("Home" === e.key) {
14043
+ e.preventDefault();
14044
+ commit(min);
14045
+ } else if ("End" === e.key) {
14046
+ e.preventDefault();
14047
+ commit(max);
14048
+ }
14049
+ onKeyDown?.(e);
14050
+ }, [
14051
+ currentValue,
14052
+ step,
14053
+ min,
14054
+ max,
14055
+ commit,
14056
+ onKeyDown
14057
+ ]);
14058
+ return /*#__PURE__*/ jsxs("div", {
14059
+ className: slider_module.root,
14060
+ style: layoutStyle,
14061
+ children: [
14062
+ label ? /*#__PURE__*/ jsx("label", {
14063
+ className: field_module.label,
14064
+ htmlFor: id,
14065
+ children: label
14066
+ }) : null,
14067
+ /*#__PURE__*/ jsx("input", {
14068
+ ...props,
14069
+ ref: ref,
14070
+ "aria-describedby": describedBy,
14071
+ "aria-invalid": invalid || void 0,
14072
+ "aria-label": ariaLabel,
14073
+ "aria-valuemax": max,
14074
+ "aria-valuemin": min,
14075
+ "aria-valuenow": currentValue,
14076
+ className: [
14077
+ slider_module.track,
14078
+ invalid ? slider_module.invalid : null
14079
+ ].filter(Boolean).join(" "),
14080
+ disabled: isDisabled,
14081
+ id: id,
14082
+ max: max,
14083
+ min: min,
14084
+ step: step,
14085
+ style: {
14086
+ "--slider-percent": `${percent}%`
14087
+ },
14088
+ type: "range",
14089
+ value: currentValue,
14090
+ onChange: handleChange,
14091
+ onKeyDown: handleKeyDown
14092
+ }),
14093
+ description ? /*#__PURE__*/ jsx("span", {
14094
+ className: slider_module.description,
14095
+ id: descriptionId,
14096
+ children: description
14097
+ }) : null,
14098
+ errorMessage ? /*#__PURE__*/ jsx("span", {
14099
+ className: slider_module.error,
14100
+ id: errorId,
14101
+ children: errorMessage
14102
+ }) : null
14103
+ ]
14104
+ });
14105
+ });
14106
+ 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");
14107
+ var table_module_options = {};
14108
+ table_module_options.styleTagTransform = styleTagTransform_default();
14109
+ table_module_options.setAttributes = setAttributesWithoutAttributes_default();
14110
+ table_module_options.insert = insertBySelector_default().bind(null, "head");
14111
+ table_module_options.domAPI = styleDomAPI_default();
14112
+ table_module_options.insertStyleElement = insertStyleElement_default();
14113
+ injectStylesIntoStyleTag_default()(table_module_0.A, table_module_options);
14114
+ const table_module = table_module_0.A && table_module_0.A.locals ? table_module_0.A.locals : void 0;
14115
+ const alignClass = {
14116
+ start: void 0,
14117
+ center: table_module.alignCenter,
14118
+ end: table_module.alignEnd
14119
+ };
14120
+ const TableContext = /*#__PURE__*/ createContext(null);
14121
+ function useTableContext() {
14122
+ const ctx = useContext(TableContext);
14123
+ if (!ctx) throw new Error("Table sub-components must be used inside <Table>");
14124
+ return ctx;
14125
+ }
14126
+ function Table({ ariaLabel, children, selectionMode = "none", selectedKeys: selectedKeysProp, defaultSelectedKeys, onSelectionChange, sortColumn: sortColumnProp, defaultSortColumn, sortDirection: sortDirectionProp, defaultSortDirection, onSortChange }) {
14127
+ const isGrid = "none" !== selectionMode;
14128
+ const isControlledSelection = void 0 !== selectedKeysProp;
14129
+ const isControlledSort = void 0 !== sortColumnProp;
14130
+ const [internalSelectedKeys, setInternalSelectedKeys] = useState(()=>new Set(defaultSelectedKeys));
14131
+ const selectedKeys = useMemo(()=>isControlledSelection ? new Set(selectedKeysProp) : internalSelectedKeys, [
14132
+ isControlledSelection,
14133
+ selectedKeysProp,
14134
+ internalSelectedKeys
14135
+ ]);
14136
+ const toggleKey = useCallback((key)=>{
14137
+ const next = new Set(selectedKeys);
14138
+ if ("single" === selectionMode) if (next.has(key)) next.clear();
14139
+ else {
14140
+ next.clear();
14141
+ next.add(key);
14142
+ }
14143
+ else if (next.has(key)) next.delete(key);
14144
+ else next.add(key);
14145
+ if (!isControlledSelection) setInternalSelectedKeys(next);
14146
+ onSelectionChange?.(next);
14147
+ }, [
14148
+ selectedKeys,
14149
+ selectionMode,
14150
+ isControlledSelection,
14151
+ onSelectionChange
14152
+ ]);
14153
+ const [internalSortColumn, setInternalSortColumn] = useState(defaultSortColumn);
14154
+ const [internalSortDirection, setInternalSortDirection] = useState(defaultSortDirection);
14155
+ const activeSortColumn = isControlledSort ? sortColumnProp : internalSortColumn;
14156
+ const activeSortDirection = isControlledSort ? sortDirectionProp : internalSortDirection;
14157
+ const toggleSort = useCallback((column)=>{
14158
+ const newDir = column === activeSortColumn && "ascending" === activeSortDirection ? "descending" : "ascending";
14159
+ if (!isControlledSort) {
14160
+ setInternalSortColumn(column);
14161
+ setInternalSortDirection(newDir);
14162
+ }
14163
+ onSortChange?.(column, newDir);
14164
+ }, [
14165
+ activeSortColumn,
14166
+ activeSortDirection,
14167
+ isControlledSort,
14168
+ onSortChange
14169
+ ]);
14170
+ const tableRef = useRef(null);
14171
+ useEffect(()=>{
14172
+ if (!isGrid || !tableRef.current) return;
14173
+ const cells = tableRef.current.querySelectorAll("[role='gridcell']");
14174
+ const hasTabStop = Array.from(cells).some((c)=>c.tabIndex >= 0);
14175
+ if (!hasTabStop && cells[0]) cells[0].tabIndex = 0;
14176
+ }, [
14177
+ isGrid
14178
+ ]);
14179
+ const focusCell = useCallback((cell)=>{
14180
+ if (!cell) return;
14181
+ tableRef.current?.querySelectorAll("[role='gridcell']").forEach((c)=>{
14182
+ c.tabIndex = -1;
14183
+ });
14184
+ cell.tabIndex = 0;
14185
+ cell.focus();
14186
+ }, []);
14187
+ const getBodyRows = useCallback(()=>Array.from(tableRef.current?.querySelectorAll("tbody > tr") ?? []), []);
14188
+ const getBodyCells = useCallback(()=>getBodyRows().map((row)=>Array.from(row.querySelectorAll("[role='gridcell']"))), [
14189
+ getBodyRows
13231
14190
  ]);
13232
14191
  const handleKeyDown = useCallback((e)=>{
13233
- const cur = currentValue;
13234
- const large = 10 * step;
13235
- if ("ArrowRight" === e.key || "ArrowUp" === e.key) {
14192
+ if (!isGrid) return;
14193
+ const cells = getBodyCells();
14194
+ if (0 === cells.length) return;
14195
+ const focused = document.activeElement instanceof HTMLElement ? document.activeElement : null;
14196
+ const rowIdx = cells.findIndex((row)=>row.some((c)=>c === focused || c.contains(focused)));
14197
+ if (-1 === rowIdx) return;
14198
+ const row = cells[rowIdx];
14199
+ const colIdx = row.findIndex((c)=>c === focused || c.contains(focused));
14200
+ if (-1 === colIdx) return;
14201
+ if ("ArrowRight" === e.key) {
13236
14202
  e.preventDefault();
13237
- commit(cur + step);
13238
- } else if ("ArrowLeft" === e.key || "ArrowDown" === e.key) {
14203
+ focusCell(row[colIdx + 1]);
14204
+ } else if ("ArrowLeft" === e.key) {
13239
14205
  e.preventDefault();
13240
- commit(cur - step);
13241
- } else if ("PageUp" === e.key) {
14206
+ focusCell(row[colIdx - 1]);
14207
+ } else if ("ArrowDown" === e.key) {
13242
14208
  e.preventDefault();
13243
- commit(cur + large);
13244
- } else if ("PageDown" === e.key) {
14209
+ focusCell(cells[rowIdx + 1]?.[colIdx]);
14210
+ } else if ("ArrowUp" === e.key) {
13245
14211
  e.preventDefault();
13246
- commit(cur - large);
14212
+ focusCell(cells[rowIdx - 1]?.[colIdx]);
13247
14213
  } else if ("Home" === e.key) {
13248
14214
  e.preventDefault();
13249
- commit(min);
14215
+ focusCell(e.ctrlKey ? cells[0]?.[0] : row[0]);
13250
14216
  } else if ("End" === e.key) {
13251
14217
  e.preventDefault();
13252
- commit(max);
14218
+ const lastRow = cells[cells.length - 1];
14219
+ focusCell(e.ctrlKey ? lastRow?.[lastRow.length - 1] : row[row.length - 1]);
14220
+ } else if (" " === e.key) {
14221
+ e.preventDefault();
14222
+ const bodyRows = getBodyRows();
14223
+ const key = bodyRows[rowIdx]?.dataset.key;
14224
+ if (key) toggleKey(key);
13253
14225
  }
13254
- onKeyDown?.(e);
13255
14226
  }, [
13256
- currentValue,
13257
- step,
13258
- min,
13259
- max,
13260
- commit,
13261
- onKeyDown
14227
+ isGrid,
14228
+ getBodyCells,
14229
+ getBodyRows,
14230
+ focusCell,
14231
+ toggleKey
13262
14232
  ]);
13263
- return /*#__PURE__*/ jsxs("div", {
13264
- className: slider_module.root,
14233
+ const ctx = useMemo(()=>({
14234
+ selectionMode,
14235
+ selectedKeys,
14236
+ toggleKey,
14237
+ sortColumn: activeSortColumn,
14238
+ sortDirection: activeSortDirection,
14239
+ toggleSort,
14240
+ isGrid
14241
+ }), [
14242
+ selectionMode,
14243
+ selectedKeys,
14244
+ toggleKey,
14245
+ activeSortColumn,
14246
+ activeSortDirection,
14247
+ toggleSort,
14248
+ isGrid
14249
+ ]);
14250
+ return /*#__PURE__*/ jsx(TableContext.Provider, {
14251
+ value: ctx,
14252
+ children: /*#__PURE__*/ jsx("div", {
14253
+ className: table_module.wrapper,
14254
+ children: /*#__PURE__*/ jsx("table", {
14255
+ ref: tableRef,
14256
+ "aria-label": ariaLabel,
14257
+ className: table_module.table,
14258
+ role: isGrid ? "grid" : "table",
14259
+ onKeyDown: handleKeyDown,
14260
+ children: children
14261
+ })
14262
+ })
14263
+ });
14264
+ }
14265
+ function TableHeader({ children }) {
14266
+ return /*#__PURE__*/ jsx("thead", {
14267
+ className: table_module.thead,
14268
+ children: /*#__PURE__*/ jsx("tr", {
14269
+ children: children
14270
+ })
14271
+ });
14272
+ }
14273
+ function TableColumn({ id, isSortable, align = "start", children }) {
14274
+ const { sortColumn, sortDirection, toggleSort } = useTableContext();
14275
+ const isCurrentSort = Boolean(isSortable && void 0 !== id && sortColumn === id);
14276
+ const ariaSort = isSortable ? isCurrentSort && null != sortDirection ? sortDirection : "none" : void 0;
14277
+ return /*#__PURE__*/ jsx("th", {
14278
+ scope: "col",
14279
+ className: [
14280
+ table_module.th,
14281
+ alignClass[align]
14282
+ ].filter(Boolean).join(" "),
14283
+ "aria-sort": ariaSort,
14284
+ children: isSortable && void 0 !== id ? /*#__PURE__*/ jsxs("button", {
14285
+ className: table_module.sortButton,
14286
+ type: "button",
14287
+ onClick: ()=>toggleSort(id),
14288
+ children: [
14289
+ children,
14290
+ /*#__PURE__*/ jsx("span", {
14291
+ className: table_module.sortIcon,
14292
+ "aria-hidden": "true",
14293
+ children: isCurrentSort && "ascending" === sortDirection ? "↑" : isCurrentSort && "descending" === sortDirection ? "↓" : "↕"
14294
+ })
14295
+ ]
14296
+ }) : children
14297
+ });
14298
+ }
14299
+ function TableBody({ children }) {
14300
+ return /*#__PURE__*/ jsx("tbody", {
14301
+ className: table_module.tbody,
14302
+ children: children
14303
+ });
14304
+ }
14305
+ function TableRow({ id, children }) {
14306
+ const { isGrid, selectedKeys } = useTableContext();
14307
+ const isSelected = void 0 !== id && selectedKeys.has(id);
14308
+ return /*#__PURE__*/ jsx("tr", {
14309
+ className: [
14310
+ table_module.tr,
14311
+ isSelected ? table_module.selected : null
14312
+ ].filter(Boolean).join(" "),
14313
+ "data-key": id,
14314
+ "data-selected": isSelected || void 0,
14315
+ "aria-selected": isGrid ? isSelected : void 0,
14316
+ children: children
14317
+ });
14318
+ }
14319
+ function TableCell({ align = "start", children }) {
14320
+ const { isGrid } = useTableContext();
14321
+ return /*#__PURE__*/ jsx("td", {
14322
+ className: [
14323
+ table_module.td,
14324
+ alignClass[align]
14325
+ ].filter(Boolean).join(" "),
14326
+ role: isGrid ? "gridcell" : void 0,
14327
+ tabIndex: isGrid ? -1 : void 0,
14328
+ children: children
14329
+ });
14330
+ }
14331
+ const TAG_NEUTRALS = [
14332
+ "gray",
14333
+ "silver",
14334
+ "ink"
14335
+ ];
14336
+ const TAG_HUES = [
14337
+ "red",
14338
+ "orange",
14339
+ "yellow",
14340
+ "green",
14341
+ "teal",
14342
+ "blue",
14343
+ "purple",
14344
+ "pink"
14345
+ ];
14346
+ const TAG_COLORS = [
14347
+ ...TAG_NEUTRALS,
14348
+ ...TAG_HUES
14349
+ ];
14350
+ 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");
14351
+ var tag_color_picker_module_options = {};
14352
+ tag_color_picker_module_options.styleTagTransform = styleTagTransform_default();
14353
+ tag_color_picker_module_options.setAttributes = setAttributesWithoutAttributes_default();
14354
+ tag_color_picker_module_options.insert = insertBySelector_default().bind(null, "head");
14355
+ tag_color_picker_module_options.domAPI = styleDomAPI_default();
14356
+ tag_color_picker_module_options.insertStyleElement = insertStyleElement_default();
14357
+ injectStylesIntoStyleTag_default()(tag_color_picker_module_0.A, tag_color_picker_module_options);
14358
+ 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;
14359
+ const tag_color_picker_TagColorPicker = /*#__PURE__*/ forwardRef(function(allProps, ref) {
14360
+ const [layout, { label, ariaLabel, description, isDisabled = false, isInvalid, errorMessage, value: valueProp, defaultValue = "gray", onChange }] = splitLayoutItemProps(allProps);
14361
+ const { style: layoutStyle } = useLayoutItem(layout);
14362
+ if (!label && !ariaLabel) throw new Error("TagColorPicker requires `label` or `ariaLabel`.");
14363
+ const uid = useId();
14364
+ const descriptionId = description ? `${uid}-description` : void 0;
14365
+ const errorId = errorMessage ? `${uid}-error` : void 0;
14366
+ const invalid = isInvalid || !!errorMessage;
14367
+ const [uncontrolled, setUncontrolled] = useState(defaultValue);
14368
+ const value = valueProp ?? uncontrolled;
14369
+ function choose(next) {
14370
+ if (void 0 === valueProp) setUncontrolled(next);
14371
+ onChange?.(next);
14372
+ }
14373
+ const swatch = (color, place)=>/*#__PURE__*/ jsx(Swatch, {
14374
+ place: place,
14375
+ color: color,
14376
+ name: uid,
14377
+ isSelected: color === value,
14378
+ onSelect: ()=>choose(color)
14379
+ }, color);
14380
+ return /*#__PURE__*/ jsxs("fieldset", {
14381
+ ref: ref,
14382
+ "aria-describedby": [
14383
+ descriptionId,
14384
+ errorId
14385
+ ].filter(Boolean).join(" ") || void 0,
14386
+ "aria-invalid": invalid || void 0,
14387
+ "aria-label": label ? void 0 : ariaLabel,
14388
+ className: tag_color_picker_module.root,
14389
+ disabled: isDisabled,
13265
14390
  style: layoutStyle,
13266
14391
  children: [
13267
- label ? /*#__PURE__*/ jsx("label", {
13268
- className: field_module.label,
13269
- htmlFor: id,
14392
+ label ? /*#__PURE__*/ jsx("legend", {
14393
+ className: `${field_module.label} ${tag_color_picker_module.legend}`,
13270
14394
  children: label
13271
14395
  }) : 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
14396
  description ? /*#__PURE__*/ jsx("span", {
13299
- className: slider_module.description,
14397
+ className: tag_color_picker_module.description,
13300
14398
  id: descriptionId,
13301
14399
  children: description
13302
14400
  }) : null,
14401
+ /*#__PURE__*/ jsxs("span", {
14402
+ className: tag_color_picker_module.wheel,
14403
+ children: [
14404
+ TAG_NEUTRALS.map((color, i)=>swatch(color, {
14405
+ angle: (300 + 360 / TAG_NEUTRALS.length * i) % 360,
14406
+ ring: "inner"
14407
+ })),
14408
+ TAG_HUES.map((color, i)=>swatch(color, {
14409
+ angle: 360 / TAG_HUES.length * i,
14410
+ ring: "outer"
14411
+ }))
14412
+ ]
14413
+ }),
13303
14414
  errorMessage ? /*#__PURE__*/ jsx("span", {
13304
- className: slider_module.error,
14415
+ className: tag_color_picker_module.error,
13305
14416
  id: errorId,
13306
14417
  children: errorMessage
13307
14418
  }) : null
13308
14419
  ]
13309
14420
  });
13310
14421
  });
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;
14422
+ function TagColorButton({ ariaLabel, isDisabled = false, value: valueProp, defaultValue = "gray", onChange }) {
14423
+ const [isOpen, setIsOpen] = useState(false);
14424
+ const [uncontrolled, setUncontrolled] = useState(defaultValue);
14425
+ const value = valueProp ?? uncontrolled;
14426
+ const colorName = useMessage(`ox0.tagColor.${value}`, COLOR_NAMES[value]);
14427
+ const buttonLabel = useMessage("ox0.tagColorButton.label", "{label}: {color}", {
14428
+ label: ariaLabel,
14429
+ color: colorName
14430
+ });
14431
+ function choose(next) {
14432
+ if (void 0 === valueProp) setUncontrolled(next);
14433
+ onChange?.(next);
14434
+ setIsOpen(false);
14435
+ }
14436
+ return /*#__PURE__*/ jsxs(Popover, {
14437
+ isOpen: isOpen,
14438
+ onOpenChange: setIsOpen,
14439
+ placement: "bottom",
14440
+ children: [
14441
+ /*#__PURE__*/ jsx(PopoverTrigger, {
14442
+ children: /*#__PURE__*/ jsx("button", {
14443
+ "aria-label": buttonLabel,
14444
+ className: tag_color_picker_module.button,
14445
+ disabled: isDisabled,
14446
+ title: colorName,
14447
+ type: "button",
14448
+ children: /*#__PURE__*/ jsx("span", {
14449
+ "aria-hidden": true,
14450
+ className: `${tag_color_module.hue} ${tag_color_picker_module.swatch}`,
14451
+ "data-color": value
14452
+ })
14453
+ })
14454
+ }),
14455
+ /*#__PURE__*/ jsx(PopoverContent, {
14456
+ className: tag_color_picker_module.popover,
14457
+ children: /*#__PURE__*/ jsx(tag_color_picker_TagColorPicker, {
14458
+ ariaLabel: ariaLabel,
14459
+ value: value,
14460
+ onChange: choose
14461
+ })
14462
+ })
14463
+ ]
14464
+ });
13330
14465
  }
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);
14466
+ const COLOR_NAMES = {
14467
+ gray: "Gray",
14468
+ silver: "Silver",
14469
+ ink: "Ink",
14470
+ red: "Red",
14471
+ orange: "Orange",
14472
+ yellow: "Yellow",
14473
+ green: "Green",
14474
+ teal: "Teal",
14475
+ blue: "Blue",
14476
+ purple: "Purple",
14477
+ pink: "Pink"
14478
+ };
14479
+ function Swatch({ place, color, name, isSelected, onSelect }) {
14480
+ const colorName = useMessage(`ox0.tagColor.${color}`, COLOR_NAMES[color]);
14481
+ const ringStyle = {
14482
+ "--angle": `${place.angle}deg`
14483
+ };
14484
+ return /*#__PURE__*/ jsxs("label", {
14485
+ className: `${tag_color_picker_module.option} ${"inner" === place.ring ? tag_color_picker_module.inner : tag_color_picker_module.outer}`,
14486
+ style: ringStyle,
14487
+ title: colorName,
14488
+ children: [
14489
+ /*#__PURE__*/ jsx("input", {
14490
+ "aria-label": colorName,
14491
+ checked: isSelected,
14492
+ className: tag_color_picker_module.input,
14493
+ name: name,
14494
+ onChange: onSelect,
14495
+ type: "radio",
14496
+ value: color
14497
+ }),
14498
+ /*#__PURE__*/ jsx("span", {
14499
+ "aria-hidden": true,
14500
+ className: `${tag_color_module.hue} ${tag_color_picker_module.swatch}`,
14501
+ "data-color": color
14502
+ })
14503
+ ]
14504
+ });
14505
+ }
14506
+ 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");
14507
+ var tag_field_module_options = {};
14508
+ tag_field_module_options.styleTagTransform = styleTagTransform_default();
14509
+ tag_field_module_options.setAttributes = setAttributesWithoutAttributes_default();
14510
+ tag_field_module_options.insert = insertBySelector_default().bind(null, "head");
14511
+ tag_field_module_options.domAPI = styleDomAPI_default();
14512
+ tag_field_module_options.insertStyleElement = insertStyleElement_default();
14513
+ injectStylesIntoStyleTag_default()(tag_field_module_0.A, tag_field_module_options);
14514
+ const tag_field_module = tag_field_module_0.A && tag_field_module_0.A.locals ? tag_field_module_0.A.locals : void 0;
14515
+ 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");
14516
+ var tag_group_module_options = {};
14517
+ tag_group_module_options.styleTagTransform = styleTagTransform_default();
14518
+ tag_group_module_options.setAttributes = setAttributesWithoutAttributes_default();
14519
+ tag_group_module_options.insert = insertBySelector_default().bind(null, "head");
14520
+ tag_group_module_options.domAPI = styleDomAPI_default();
14521
+ tag_group_module_options.insertStyleElement = insertStyleElement_default();
14522
+ injectStylesIntoStyleTag_default()(tag_group_module_0.A, tag_group_module_options);
14523
+ const tag_group_module = tag_group_module_0.A && tag_group_module_0.A.locals ? tag_group_module_0.A.locals : void 0;
14524
+ const tag_field_fold = (s)=>s.trim().toLowerCase();
14525
+ function splitTags(text) {
14526
+ return text.split(/[,\n]/).map((t)=>t.trim()).filter(Boolean);
14527
+ }
14528
+ 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) {
14529
+ const { style: layoutStyle } = useLayoutItem(restProps);
14530
+ const [, inputProps] = splitLayoutItemProps(restProps);
14531
+ if (!label && !ariaLabel) throw new Error("TagField requires `label` or `ariaLabel`.");
14532
+ const generatedId = useId();
14533
+ const controlId = idProp ?? generatedId;
14534
+ const labelId = label ? `${controlId}-label` : void 0;
14535
+ const listboxId = `${controlId}-listbox`;
14536
+ const descriptionId = description ? `${controlId}-description` : void 0;
14537
+ const errorId = errorMessage ? `${controlId}-error` : void 0;
14538
+ const invalid = isInvalid || !!errorMessage;
14539
+ const isControlled = void 0 !== valueProp;
14540
+ const [uncontrolledValue, setUncontrolledValue] = useState(()=>defaultValue ?? []);
14541
+ const tags = isControlled ? valueProp : uncontrolledValue;
14542
+ const commit = useCallback((next)=>{
14543
+ if (!isControlled) setUncontrolledValue(next);
14544
+ onChange?.(next);
13352
14545
  }, [
13353
- selectedKeys,
13354
- selectionMode,
13355
- isControlledSelection,
13356
- onSelectionChange
14546
+ isControlled,
14547
+ onChange
13357
14548
  ]);
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);
14549
+ function addTags(raw) {
14550
+ const next = [
14551
+ ...tags
14552
+ ];
14553
+ const have = new Set(next.map(tag_field_fold));
14554
+ for (const text of raw){
14555
+ const tag = suggestions.find((s)=>tag_field_fold(s) === tag_field_fold(text)) ?? text.trim();
14556
+ if (!(!tag || have.has(tag_field_fold(tag)))) {
14557
+ have.add(tag_field_fold(tag));
14558
+ next.push(tag);
14559
+ }
13367
14560
  }
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;
14561
+ if (next.length !== tags.length) commit(next);
14562
+ }
14563
+ function removeTag(tag) {
14564
+ commit(tags.filter((t)=>t !== tag));
14565
+ }
14566
+ const [inputText, setInputText] = useState("");
14567
+ const options = useMemo(()=>{
14568
+ const have = new Set(tags.map(tag_field_fold));
14569
+ const q = tag_field_fold(inputText);
14570
+ const matches = suggestions.filter((s)=>!have.has(tag_field_fold(s)) && tag_field_fold(s).includes(q)).map((tag)=>({
14571
+ tag,
14572
+ isNew: false
14573
+ }));
14574
+ const known = have.has(q) || suggestions.some((s)=>tag_field_fold(s) === q);
14575
+ return q && !known ? [
14576
+ ...matches,
14577
+ {
14578
+ tag: inputText.trim(),
14579
+ isNew: true
14580
+ }
14581
+ ] : matches;
13381
14582
  }, [
13382
- isGrid
14583
+ tags,
14584
+ suggestions,
14585
+ inputText
13383
14586
  ]);
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
14587
+ const [isOpen, setIsOpen] = useState(false);
14588
+ const [activeIndex, setActiveIndex] = useState(null);
14589
+ const optionRefs = useRef([]);
14590
+ const inputRef = useRef(null);
14591
+ const gridRef = useRef(null);
14592
+ const { refs, floatingStyles, context } = useFloating({
14593
+ open: isOpen,
14594
+ onOpenChange: setIsOpen,
14595
+ middleware: [
14596
+ flip({
14597
+ padding: 8
14598
+ }),
14599
+ react_size({
14600
+ apply ({ rects, elements }) {
14601
+ Object.assign(elements.floating.style, {
14602
+ width: `${rects.reference.width}px`
14603
+ });
14604
+ },
14605
+ padding: 8
14606
+ })
14607
+ ],
14608
+ whileElementsMounted: autoUpdate
14609
+ });
14610
+ const listNav = useListNavigation(context, {
14611
+ listRef: optionRefs,
14612
+ activeIndex,
14613
+ onNavigate: setActiveIndex,
14614
+ virtual: true,
14615
+ loop: true
14616
+ });
14617
+ const dismiss = useDismiss(context);
14618
+ const role = useRole(context, {
14619
+ role: "combobox"
14620
+ });
14621
+ const { getReferenceProps, getFloatingProps, getItemProps } = useInteractions([
14622
+ listNav,
14623
+ dismiss,
14624
+ role
13395
14625
  ]);
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) {
14626
+ function pick(option) {
14627
+ addTags([
14628
+ option.tag
14629
+ ]);
14630
+ setInputText("");
14631
+ setActiveIndex(null);
14632
+ inputRef.current?.focus();
14633
+ }
14634
+ function commitText() {
14635
+ const typed = splitTags(inputText);
14636
+ if (0 === typed.length) return false;
14637
+ addTags(typed);
14638
+ setInputText("");
14639
+ setActiveIndex(null);
14640
+ return true;
14641
+ }
14642
+ const chips = ()=>Array.from(gridRef.current?.querySelectorAll("[data-tag]") ?? []);
14643
+ function focusChip(index) {
14644
+ const all = chips();
14645
+ const target = all[index];
14646
+ if (!target) return void inputRef.current?.focus();
14647
+ for (const c of all)c.tabIndex = -1;
14648
+ target.tabIndex = 0;
14649
+ target.focus();
14650
+ }
14651
+ function handleChipKeyDown(e, index, tag) {
14652
+ if (isDisabled) return;
14653
+ if ("ArrowLeft" === e.key) {
13413
14654
  e.preventDefault();
13414
- focusCell(cells[rowIdx + 1]?.[colIdx]);
13415
- } else if ("ArrowUp" === e.key) {
14655
+ focusChip(Math.max(0, index - 1));
14656
+ } else if ("ArrowRight" === e.key) {
13416
14657
  e.preventDefault();
13417
- focusCell(cells[rowIdx - 1]?.[colIdx]);
14658
+ focusChip(index + 1);
13418
14659
  } else if ("Home" === e.key) {
13419
14660
  e.preventDefault();
13420
- focusCell(e.ctrlKey ? cells[0]?.[0] : row[0]);
14661
+ focusChip(0);
13421
14662
  } else if ("End" === e.key) {
13422
14663
  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) {
14664
+ inputRef.current?.focus();
14665
+ } else if ("Backspace" === e.key || "Delete" === e.key) {
13426
14666
  e.preventDefault();
13427
- const bodyRows = getBodyRows();
13428
- const key = bodyRows[rowIdx]?.dataset.key;
13429
- if (key) toggleKey(key);
14667
+ removeTag(tag);
14668
+ if ("Backspace" === e.key && index > 0) focusChip(index - 1);
14669
+ else if ("Delete" === e.key && index < tags.length - 1) focusChip(index + 1);
14670
+ else inputRef.current?.focus();
13430
14671
  }
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
14672
+ }
14673
+ function handleInputChange(e) {
14674
+ const text = e.target.value;
14675
+ if (text.includes(",")) {
14676
+ const parts = text.split(",");
14677
+ const rest = parts.pop() ?? "";
14678
+ addTags(parts.map((p)=>p.trim()).filter(Boolean));
14679
+ setInputText(rest.trimStart());
14680
+ setActiveIndex(null);
14681
+ return;
14682
+ }
14683
+ setInputText(text);
14684
+ setIsOpen(true);
14685
+ setActiveIndex(text.trim() ? 0 : null);
14686
+ }
14687
+ function handlePaste(e) {
14688
+ const text = e.clipboardData.getData("text");
14689
+ if (!/[,\n]/.test(text)) return;
14690
+ e.preventDefault();
14691
+ addTags(splitTags(inputText + text));
14692
+ setInputText("");
14693
+ }
14694
+ function handleKeyDown(e) {
14695
+ onKeyDownProp?.(e);
14696
+ if (e.defaultPrevented) return;
14697
+ const input = e.currentTarget;
14698
+ const atStart = 0 === input.selectionStart && 0 === input.selectionEnd;
14699
+ if ("Enter" === e.key) {
14700
+ const option = isOpen && null !== activeIndex ? options[activeIndex] : void 0;
14701
+ if (option) {
14702
+ e.preventDefault();
14703
+ pick(option);
14704
+ } else if (commitText()) e.preventDefault();
14705
+ } else if ("Escape" === e.key) {
14706
+ setIsOpen(false);
14707
+ setActiveIndex(null);
14708
+ } else if ("Tab" === e.key) {
14709
+ setIsOpen(false);
14710
+ setActiveIndex(null);
14711
+ } else if ("Backspace" === e.key && "" === inputText && tags.length > 0) {
14712
+ e.preventDefault();
14713
+ removeTag(tags[tags.length - 1] ?? "");
14714
+ } else if ("ArrowLeft" === e.key && atStart && tags.length > 0) {
14715
+ e.preventDefault();
14716
+ setIsOpen(false);
14717
+ focusChip(tags.length - 1);
14718
+ } else if (("ArrowDown" === e.key || "ArrowUp" === e.key) && !isOpen) setIsOpen(true);
14719
+ }
14720
+ const [isFocusVisible, setIsFocusVisible] = useState(false);
14721
+ const pointerDown = useRef(false);
14722
+ const activeDescendant = null !== activeIndex && options[activeIndex] ? `${listboxId}-option-${activeIndex}` : void 0;
14723
+ const describedBy = [
14724
+ descriptionId,
14725
+ errorId
14726
+ ].filter(Boolean).join(" ") || void 0;
14727
+ return /*#__PURE__*/ jsxs("div", {
14728
+ className: tag_field_module.root,
14729
+ style: layoutStyle,
14730
+ children: [
14731
+ label ? /*#__PURE__*/ jsx("label", {
14732
+ className: field_module.label,
14733
+ htmlFor: controlId,
14734
+ id: labelId,
14735
+ children: label
14736
+ }) : null,
14737
+ /*#__PURE__*/ jsxs("div", {
14738
+ role: "grid",
14739
+ ref: (node)=>{
14740
+ gridRef.current = node;
14741
+ refs.setReference(node);
14742
+ },
14743
+ "aria-label": label ? void 0 : ariaLabel,
14744
+ "aria-labelledby": labelId,
14745
+ "aria-describedby": describedBy,
14746
+ "aria-disabled": isDisabled || void 0,
14747
+ className: [
14748
+ tag_field_module.field,
14749
+ invalid ? tag_field_module.invalid : null,
14750
+ isFocusVisible ? tag_field_module.focusVisible : null,
14751
+ isDisabled ? tag_field_module.disabled : null
14752
+ ].filter(Boolean).join(" "),
14753
+ onPointerDown: (e)=>{
14754
+ pointerDown.current = true;
14755
+ if (e.target === e.currentTarget && !isDisabled) {
14756
+ e.preventDefault();
14757
+ inputRef.current?.focus();
14758
+ }
14759
+ },
14760
+ children: [
14761
+ tags.map((tag, index)=>/*#__PURE__*/ jsx(TagFieldChip, {
14762
+ tag: tag,
14763
+ color: tagColor?.(tag),
14764
+ isDisabled: isDisabled,
14765
+ onKeyDown: (e)=>handleChipKeyDown(e, index, tag),
14766
+ onRemove: ()=>{
14767
+ removeTag(tag);
14768
+ inputRef.current?.focus();
14769
+ }
14770
+ }, tag)),
14771
+ /*#__PURE__*/ jsx("div", {
14772
+ role: "row",
14773
+ className: tag_field_module.inputRow,
14774
+ children: /*#__PURE__*/ jsx("div", {
14775
+ role: "gridcell",
14776
+ className: tag_field_module.inputCell,
14777
+ children: /*#__PURE__*/ jsx("input", {
14778
+ ...inputProps,
14779
+ ref: (node)=>{
14780
+ inputRef.current = node;
14781
+ if ("function" == typeof forwardedRef) forwardedRef(node);
14782
+ else if (forwardedRef) forwardedRef.current = node;
14783
+ },
14784
+ ...getReferenceProps({
14785
+ id: controlId,
14786
+ "aria-autocomplete": "list",
14787
+ "aria-describedby": describedBy,
14788
+ "aria-invalid": invalid || void 0,
14789
+ "aria-activedescendant": activeDescendant,
14790
+ "aria-controls": listboxId,
14791
+ autoComplete: "off",
14792
+ className: tag_field_module.input,
14793
+ disabled: isDisabled,
14794
+ placeholder: 0 === tags.length ? placeholder : void 0,
14795
+ value: inputText,
14796
+ onChange: handleInputChange,
14797
+ onKeyDown: handleKeyDown,
14798
+ onPaste: handlePaste,
14799
+ onBlur: (e)=>{
14800
+ commitText();
14801
+ setIsFocusVisible(false);
14802
+ onBlurProp?.(e);
14803
+ },
14804
+ onFocus: (e)=>{
14805
+ if (!pointerDown.current) setIsFocusVisible(true);
14806
+ pointerDown.current = false;
14807
+ setIsOpen(true);
14808
+ onFocusProp?.(e);
14809
+ }
14810
+ }),
14811
+ "aria-label": ariaLabel
14812
+ })
14813
+ })
14814
+ })
14815
+ ]
14816
+ }),
14817
+ description ? /*#__PURE__*/ jsx("span", {
14818
+ className: tag_field_module.description,
14819
+ id: descriptionId,
14820
+ children: description
14821
+ }) : null,
14822
+ errorMessage ? /*#__PURE__*/ jsx("span", {
14823
+ className: tag_field_module.error,
14824
+ id: errorId,
14825
+ children: errorMessage
14826
+ }) : null,
14827
+ isOpen && options.length > 0 && /*#__PURE__*/ jsx(FloatingPortal, {
14828
+ root: themeRoot(context.elements.domReference),
14829
+ children: /*#__PURE__*/ jsx("div", {
14830
+ ref: refs.setFloating,
14831
+ style: floatingStyles,
14832
+ ...getFloatingProps({
14833
+ id: listboxId,
14834
+ "aria-label": ariaLabel,
14835
+ "aria-labelledby": labelId,
14836
+ className: combobox_module.listbox,
14837
+ role: "listbox"
14838
+ }),
14839
+ children: options.map((option, index)=>/*#__PURE__*/ jsx("div", {
14840
+ ref: (node)=>{
14841
+ optionRefs.current[index] = node;
14842
+ },
14843
+ ...getItemProps({
14844
+ id: `${listboxId}-option-${index}`,
14845
+ role: "option",
14846
+ "aria-selected": false,
14847
+ className: [
14848
+ combobox_module.option,
14849
+ index === activeIndex ? combobox_module.active : null
14850
+ ].filter(Boolean).join(" "),
14851
+ onMouseDown: (e)=>e.preventDefault(),
14852
+ onClick: ()=>pick(option)
14853
+ }),
14854
+ children: option.isNew ? /*#__PURE__*/ jsx(NewTagLabel, {
14855
+ tag: option.tag
14856
+ }) : /*#__PURE__*/ jsxs("span", {
14857
+ className: tag_field_module.option,
14858
+ children: [
14859
+ tagColor ? /*#__PURE__*/ jsx(TagColorDot, {
14860
+ color: tagColor(option.tag)
14861
+ }) : null,
14862
+ option.tag
14863
+ ]
14864
+ })
14865
+ }, option.isNew ? "\u0000new" : option.tag))
14866
+ })
13466
14867
  })
13467
- })
14868
+ ]
13468
14869
  });
13469
- }
13470
- function TableHeader({ children }) {
13471
- return /*#__PURE__*/ jsx("thead", {
13472
- className: table_module.thead,
13473
- children: /*#__PURE__*/ jsx("tr", {
13474
- children: children
13475
- })
14870
+ });
14871
+ function TagFieldChip({ tag, color, isDisabled, onKeyDown, onRemove }) {
14872
+ const removeLabel = useMessage("ox0.tagField.remove", "Remove {tag}", {
14873
+ tag
13476
14874
  });
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",
14875
+ return /*#__PURE__*/ jsx("div", {
14876
+ role: "row",
14877
+ "aria-disabled": isDisabled || void 0,
13484
14878
  className: [
13485
- table_module.th,
13486
- alignClass[align]
14879
+ tag_group_module.tag,
14880
+ color ? tag_color_module.hue : null,
14881
+ isDisabled ? tag_group_module.disabled : null
13487
14882
  ].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),
14883
+ "data-color": color,
14884
+ "data-tag": "",
14885
+ onKeyDown: onKeyDown,
14886
+ tabIndex: -1,
14887
+ children: /*#__PURE__*/ jsxs("div", {
14888
+ role: "gridcell",
14889
+ className: tag_group_module.tagCell,
13493
14890
  children: [
13494
- children,
13495
14891
  /*#__PURE__*/ jsx("span", {
13496
- className: table_module.sortIcon,
13497
- "aria-hidden": "true",
13498
- children: isCurrentSort && "ascending" === sortDirection ? "↑" : isCurrentSort && "descending" === sortDirection ? "↓" : "↕"
14892
+ children: tag
14893
+ }),
14894
+ isDisabled ? null : /*#__PURE__*/ jsx("button", {
14895
+ "aria-label": removeLabel,
14896
+ className: tag_group_module.dismiss,
14897
+ onClick: onRemove,
14898
+ tabIndex: -1,
14899
+ type: "button",
14900
+ children: "\xd7"
13499
14901
  })
13500
14902
  ]
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
14903
+ })
13522
14904
  });
13523
14905
  }
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
14906
+ function NewTagLabel({ tag }) {
14907
+ return /*#__PURE__*/ jsx(Fragment, {
14908
+ children: useMessage("ox0.tagField.add", "Add “{tag}”", {
14909
+ tag
14910
+ })
13534
14911
  });
13535
14912
  }
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
14913
  const TagGroupContext = /*#__PURE__*/ createContext(null);
13546
14914
  function useTagGroupContext() {
13547
14915
  const ctx = useContext(TagGroupContext);
@@ -13549,7 +14917,7 @@ function useTagGroupContext() {
13549
14917
  return ctx;
13550
14918
  }
13551
14919
  function TagGroup(allProps) {
13552
- const [layout, { label, description, isInvalid, isDisabled = false, errorMessage, selectionMode = "multiple", selectedKeys: selectedKeysProp, defaultSelectedKeys, onSelectionChange, onRemove, ariaLabel, children }] = splitLayoutItemProps(allProps);
14920
+ const [layout, { label, description, isInvalid, isDisabled = false, errorMessage, selectionMode = "multiple", selectedKeys: selectedKeysProp, defaultSelectedKeys, onSelectionChange, onRemove, ariaLabel, size = "md", children }] = splitLayoutItemProps(allProps);
13553
14921
  const { style: layoutStyle } = useLayoutItem(layout);
13554
14922
  const uid = useId();
13555
14923
  const labelId = label ? `${uid}-label` : void 0;
@@ -13671,6 +15039,7 @@ function TagGroup(allProps) {
13671
15039
  removeTag
13672
15040
  ]);
13673
15041
  const ctx = useMemo(()=>({
15042
+ size,
13674
15043
  selectedKeys,
13675
15044
  isDisabled,
13676
15045
  selectionMode,
@@ -13679,6 +15048,7 @@ function TagGroup(allProps) {
13679
15048
  removeTag,
13680
15049
  dismissTag
13681
15050
  }), [
15051
+ size,
13682
15052
  selectedKeys,
13683
15053
  isDisabled,
13684
15054
  selectionMode,
@@ -13729,13 +15099,15 @@ function TagGroup(allProps) {
13729
15099
  })
13730
15100
  });
13731
15101
  }
13732
- function tag_group_Tag({ id, isDisabled: isDisabledProp, children }) {
15102
+ function tag_group_Tag({ id, isDisabled: isDisabledProp, color, children }) {
13733
15103
  const ctx = useTagGroupContext();
13734
15104
  const isDisabled = isDisabledProp ?? ctx.isDisabled;
13735
15105
  const isSelected = ctx.selectedKeys.has(id);
13736
15106
  const isSelectable = "none" !== ctx.selectionMode;
13737
15107
  const cls = [
13738
15108
  tag_group_module.tag,
15109
+ "sm" === ctx.size ? tag_group_module.sm : "",
15110
+ color ? tag_color_module.hue : "",
13739
15111
  isSelected && isSelectable ? tag_group_module.selected : "",
13740
15112
  isDisabled ? tag_group_module.disabled : ""
13741
15113
  ].filter(Boolean).join(" ");
@@ -13746,6 +15118,7 @@ function tag_group_Tag({ id, isDisabled: isDisabledProp, children }) {
13746
15118
  "aria-selected": isSelectable ? isSelected : void 0,
13747
15119
  className: cls,
13748
15120
  "data-id": id,
15121
+ "data-color": color,
13749
15122
  "data-selectable": isSelectable && !isDisabled ? "" : void 0,
13750
15123
  onClick: isSelectable && !isDisabled ? ()=>ctx.toggleSelection(id) : void 0,
13751
15124
  role: "row",
@@ -13775,6 +15148,7 @@ function tag_group_Tag({ id, isDisabled: isDisabledProp, children }) {
13775
15148
  if (!isSelectable) return /*#__PURE__*/ jsx("span", {
13776
15149
  className: cls,
13777
15150
  "data-id": id,
15151
+ "data-color": color,
13778
15152
  "data-disabled": isDisabled || void 0,
13779
15153
  children: children
13780
15154
  });
@@ -13783,6 +15157,7 @@ function tag_group_Tag({ id, isDisabled: isDisabledProp, children }) {
13783
15157
  "aria-selected": isSelected,
13784
15158
  className: cls,
13785
15159
  "data-id": id,
15160
+ "data-color": color,
13786
15161
  onClick: ()=>{
13787
15162
  if (!isDisabled) ctx.toggleSelection(id);
13788
15163
  },
@@ -13792,129 +15167,6 @@ function tag_group_Tag({ id, isDisabled: isDisabledProp, children }) {
13792
15167
  children: children
13793
15168
  });
13794
15169
  }
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
15170
  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
15171
  var date_field_module_options = {};
13920
15172
  date_field_module_options.styleTagTransform = styleTagTransform_default();
@@ -14494,4 +15746,4 @@ function useDensity(options) {
14494
15746
  function useFontScale(options) {
14495
15747
  return useThemePreference("fontScale", options);
14496
15748
  }
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 };
15749
+ 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 };