@tempots/beatui 0.68.0 → 0.71.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/{ar-aMLQTGVh.js → ar-BbgpGwJp.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +106 -105
- package/dist/beatui.css +401 -0
- package/dist/beatui.tailwind.css +401 -0
- package/dist/{de-DBFOC44R.js → de-R7lPfyZ4.js} +1 -1
- package/dist/deep-merge-CQQCMLwG.js +1636 -0
- package/dist/deep-merge-DZxfgKqX.cjs +1 -0
- package/dist/duration-input-D-SIoDoo.cjs +1 -0
- package/dist/duration-input-DKxZ6OCa.js +277 -0
- package/dist/{es-C4xOThaT.js → es-DV0Jr_BZ.js} +1 -1
- package/dist/{fa-B7X_xydY.js → fa-DXvHejs9.js} +1 -1
- package/dist/{fr-AmjzbxN_.js → fr-D8FOMX0o.js} +1 -1
- package/dist/{he-DY-9yiOC.js → he-B19Qsx-u.js} +1 -1
- package/dist/{hi-Clkyp5Fu.js → hi-DozFnE3b.js} +1 -1
- package/dist/{index-GLoRnI6r.js → index-CYb1YxDX.js} +1 -1
- package/dist/{index-CzuXAuLZ.js → index-DdpYvBeh.js} +3 -3
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +2830 -3079
- package/dist/{it-BC32WmGF.js → it-But8uzNi.js} +1 -1
- package/dist/{ja-JNSZS_Hv.js → ja-DkwTnFdU.js} +1 -1
- package/dist/json-schema/index.cjs.js +6 -6
- package/dist/json-schema/index.es.js +3459 -3333
- package/dist/json-structure/index.cjs.js +1 -0
- package/dist/json-structure/index.es.js +3157 -0
- package/dist/{ko-B8l0TJp0.js → ko-Cqv-IjhX.js} +1 -1
- package/dist/modal-5P9mU_a4.cjs +1 -0
- package/dist/{modal-DJWj5M5e.js → modal-MofsfmAe.js} +2 -2
- package/dist/{nl-BpYESHP8.js → nl-YSiU3rFI.js} +1 -1
- package/dist/notice-Cqq8g17n.js +209 -0
- package/dist/notice-DP209Ed8.cjs +1 -0
- package/dist/{pl-_sWhGdrs.js → pl-DXmHc2Nh.js} +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-BmiQvHUz.js → pt-Bf3z_-26.js} +1 -1
- package/dist/{ru-DacnqexG.js → ru-Sy00qUeG.js} +1 -1
- package/dist/tailwind/vite-plugin.es.js +1 -0
- package/dist/{toolbar-Bk5-22ln.js → toolbar-C_Ec0_XC.js} +1 -1
- package/dist/{tr-BSS5b_v6.js → tr-BDxG3qd6.js} +1 -1
- package/dist/{translations-zGwuSQWQ.js → translations-BmsRhth7.js} +1 -1
- package/dist/{translations-BUTBIDsS.js → translations-DQxouiBG.js} +24 -24
- package/dist/types/components/form/index.d.ts +1 -0
- package/dist/types/components/form/utils/deep-merge.d.ts +27 -0
- package/dist/types/components/form/utils/index.d.ts +1 -0
- package/dist/types/components/json-schema/controls/generic-control.d.ts +2 -1
- package/dist/types/components/json-schema/controls/shared-utils.d.ts +17 -1
- package/dist/types/components/json-schema/index.d.ts +2 -0
- package/dist/types/components/json-schema/json-schema-form.d.ts +25 -3
- package/dist/types/components/json-schema/schema-context.d.ts +3 -0
- package/dist/types/components/json-schema/schema-defaults.d.ts +39 -0
- package/dist/types/components/json-schema/widgets/widget-customization.d.ts +55 -0
- package/dist/types/components/json-structure/controls/any-control.d.ts +15 -0
- package/dist/types/components/json-structure/controls/array-control.d.ts +15 -0
- package/dist/types/components/json-structure/controls/binary-control.d.ts +15 -0
- package/dist/types/components/json-structure/controls/boolean-control.d.ts +15 -0
- package/dist/types/components/json-structure/controls/choice-control.d.ts +19 -0
- package/dist/types/components/json-structure/controls/decimal-control.d.ts +17 -0
- package/dist/types/components/json-structure/controls/deprecation-utils.d.ts +14 -0
- package/dist/types/components/json-structure/controls/enum-const-controls.d.ts +22 -0
- package/dist/types/components/json-structure/controls/generic-control.d.ts +31 -0
- package/dist/types/components/json-structure/controls/index.d.ts +21 -0
- package/dist/types/components/json-structure/controls/integer-control.d.ts +18 -0
- package/dist/types/components/json-structure/controls/map-control.d.ts +17 -0
- package/dist/types/components/json-structure/controls/object-control.d.ts +17 -0
- package/dist/types/components/json-structure/controls/set-control.d.ts +15 -0
- package/dist/types/components/json-structure/controls/string-control.d.ts +15 -0
- package/dist/types/components/json-structure/controls/temporal-control.d.ts +18 -0
- package/dist/types/components/json-structure/controls/tuple-control.d.ts +19 -0
- package/dist/types/components/json-structure/controls/union-control.d.ts +15 -0
- package/dist/types/components/json-structure/controls/uri-control.d.ts +15 -0
- package/dist/types/components/json-structure/controls/uuid-control.d.ts +15 -0
- package/dist/types/components/json-structure/extends-utils.d.ts +36 -0
- package/dist/types/components/json-structure/index.d.ts +25 -0
- package/dist/types/components/json-structure/json-structure-form.d.ts +96 -0
- package/dist/types/components/json-structure/ref-utils.d.ts +55 -0
- package/dist/types/components/json-structure/structure-context.d.ts +176 -0
- package/dist/types/components/json-structure/structure-defaults.d.ts +46 -0
- package/dist/types/components/json-structure/structure-types.d.ts +173 -0
- package/dist/types/components/json-structure/validation/error-transform.d.ts +56 -0
- package/dist/types/components/json-structure/validation/index.d.ts +5 -0
- package/dist/types/components/json-structure/validation/sdk-validator.d.ts +46 -0
- package/dist/types/components/json-structure/widgets/default-widgets.d.ts +27 -0
- package/dist/types/components/json-structure/widgets/index.d.ts +6 -0
- package/dist/types/components/json-structure/widgets/widget-registry.d.ts +143 -0
- package/dist/types/components/json-structure/widgets/widget-utils.d.ts +79 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/json-structure/index.d.ts +9 -0
- package/dist/{ur-C6Ky6OCl.js → ur-55zdT2TQ.js} +1 -1
- package/dist/{notice-Um1LwKBF.js → use-form-B7A865EM.js} +329 -532
- package/dist/use-form-DVJXMMoN.cjs +2 -0
- package/dist/{vi-Bx2gx2S0.js → vi-C7K7W0hM.js} +1 -1
- package/dist/widget-customization-29Hl2gKT.js +1171 -0
- package/dist/widget-customization-BXiewbt-.cjs +1 -0
- package/dist/{zh-eixtg-Ce.js → zh-DvJBV9D8.js} +1 -1
- package/package.json +10 -2
- package/dist/modal-D_paG9Sr.cjs +0 -1
- package/dist/notice-CgT9ma2m.cjs +0 -2
- package/dist/utils-7JQljUYX.js +0 -2554
- package/dist/utils-CPtkOy9f.cjs +0 -1
package/dist/beatui.tailwind.css
CHANGED
|
@@ -4383,6 +4383,407 @@ a:focus-visible {
|
|
|
4383
4383
|
color: var(--color-danger-400);
|
|
4384
4384
|
}
|
|
4385
4385
|
|
|
4386
|
+
/**
|
|
4387
|
+
* JSON Structure Form Component Styles
|
|
4388
|
+
*
|
|
4389
|
+
* CSS styles for JSON Structure form components.
|
|
4390
|
+
* Uses BEM-like naming with bc-json-structure- prefix.
|
|
4391
|
+
*/
|
|
4392
|
+
|
|
4393
|
+
/* =============================================================================
|
|
4394
|
+
Base Styles
|
|
4395
|
+
============================================================================= */
|
|
4396
|
+
|
|
4397
|
+
.bc-json-structure-form {
|
|
4398
|
+
display: flex;
|
|
4399
|
+
flex-direction: column;
|
|
4400
|
+
gap: var(--spacing-stack-md, calc(var(--spacing-base) * 3));
|
|
4401
|
+
}
|
|
4402
|
+
|
|
4403
|
+
/* =============================================================================
|
|
4404
|
+
Object Layout
|
|
4405
|
+
============================================================================= */
|
|
4406
|
+
|
|
4407
|
+
.bc-json-structure-object {
|
|
4408
|
+
border-left: calc(var(--spacing-base) * 2) solid var(--color-base-200);
|
|
4409
|
+
padding-inline-start: calc(var(--spacing-base) * 2);
|
|
4410
|
+
}
|
|
4411
|
+
|
|
4412
|
+
.bc-json-structure-object-fields {
|
|
4413
|
+
display: flex;
|
|
4414
|
+
flex-direction: column;
|
|
4415
|
+
gap: var(--spacing-stack-md, calc(var(--spacing-base) * 3));
|
|
4416
|
+
}
|
|
4417
|
+
|
|
4418
|
+
.bc-json-structure-object--nested {
|
|
4419
|
+
margin-top: var(--spacing-stack-sm, calc(var(--spacing-base) * 2));
|
|
4420
|
+
}
|
|
4421
|
+
|
|
4422
|
+
/* Additional properties */
|
|
4423
|
+
.bc-json-structure-additional-property {
|
|
4424
|
+
display: flex;
|
|
4425
|
+
flex-direction: column;
|
|
4426
|
+
gap: var(--spacing-stack-xs, var(--spacing-base));
|
|
4427
|
+
padding: var(--spacing-inline-sm, calc(var(--spacing-base) * 2));
|
|
4428
|
+
border: 1px solid var(--color-base-200);
|
|
4429
|
+
border-radius: var(--radius-sm);
|
|
4430
|
+
background: var(--color-base-50);
|
|
4431
|
+
}
|
|
4432
|
+
|
|
4433
|
+
.bc-json-structure-additional-property-header {
|
|
4434
|
+
display: flex;
|
|
4435
|
+
justify-content: space-between;
|
|
4436
|
+
align-items: center;
|
|
4437
|
+
gap: var(--spacing-inline-sm, calc(var(--spacing-base) * 2));
|
|
4438
|
+
}
|
|
4439
|
+
|
|
4440
|
+
.bc-json-structure-additional-property-value {
|
|
4441
|
+
padding-inline-start: calc(var(--spacing-base) * 2);
|
|
4442
|
+
}
|
|
4443
|
+
|
|
4444
|
+
/* =============================================================================
|
|
4445
|
+
Array/Set/Map Layout
|
|
4446
|
+
============================================================================= */
|
|
4447
|
+
|
|
4448
|
+
.bc-json-structure-array,
|
|
4449
|
+
.bc-json-structure-set,
|
|
4450
|
+
.bc-json-structure-map {
|
|
4451
|
+
display: flex;
|
|
4452
|
+
flex-direction: column;
|
|
4453
|
+
gap: var(--spacing-stack-sm, calc(var(--spacing-base) * 2));
|
|
4454
|
+
}
|
|
4455
|
+
|
|
4456
|
+
.bc-json-structure-array-items,
|
|
4457
|
+
.bc-json-structure-set-items,
|
|
4458
|
+
.bc-json-structure-map-entries {
|
|
4459
|
+
display: flex;
|
|
4460
|
+
flex-direction: column;
|
|
4461
|
+
gap: var(--spacing-stack-sm, calc(var(--spacing-base) * 2));
|
|
4462
|
+
}
|
|
4463
|
+
|
|
4464
|
+
.bc-json-structure-array-item,
|
|
4465
|
+
.bc-json-structure-set-item,
|
|
4466
|
+
.bc-json-structure-map-entry {
|
|
4467
|
+
display: flex;
|
|
4468
|
+
align-items: flex-start;
|
|
4469
|
+
gap: var(--spacing-inline-sm, calc(var(--spacing-base) * 2));
|
|
4470
|
+
}
|
|
4471
|
+
|
|
4472
|
+
.bc-json-structure-array-item-content,
|
|
4473
|
+
.bc-json-structure-set-item-content,
|
|
4474
|
+
.bc-json-structure-map-entry-content {
|
|
4475
|
+
flex: 1;
|
|
4476
|
+
min-width: 0;
|
|
4477
|
+
}
|
|
4478
|
+
|
|
4479
|
+
.bc-json-structure-array-item-actions,
|
|
4480
|
+
.bc-json-structure-set-item-actions,
|
|
4481
|
+
.bc-json-structure-map-entry-actions {
|
|
4482
|
+
flex-shrink: 0;
|
|
4483
|
+
}
|
|
4484
|
+
|
|
4485
|
+
.bc-json-structure-collection-add {
|
|
4486
|
+
margin-top: var(--spacing-stack-xs, var(--spacing-base));
|
|
4487
|
+
}
|
|
4488
|
+
|
|
4489
|
+
/* Map entry specific styles */
|
|
4490
|
+
.bc-json-structure-map-entry-header {
|
|
4491
|
+
display: flex;
|
|
4492
|
+
justify-content: space-between;
|
|
4493
|
+
align-items: center;
|
|
4494
|
+
gap: var(--spacing-inline-sm, calc(var(--spacing-base) * 2));
|
|
4495
|
+
margin-bottom: var(--spacing-stack-xs, var(--spacing-base));
|
|
4496
|
+
}
|
|
4497
|
+
|
|
4498
|
+
.bc-json-structure-map-entry-key {
|
|
4499
|
+
font-family: var(--font-family-mono);
|
|
4500
|
+
font-weight: 600;
|
|
4501
|
+
color: var(--color-base-700);
|
|
4502
|
+
}
|
|
4503
|
+
|
|
4504
|
+
.bc-json-structure-map-entry-value {
|
|
4505
|
+
padding-inline-start: calc(var(--spacing-base) * 2);
|
|
4506
|
+
}
|
|
4507
|
+
|
|
4508
|
+
/* Set error indicator */
|
|
4509
|
+
.bc-json-structure-set-error {
|
|
4510
|
+
color: var(--color-error-500, #dc2626);
|
|
4511
|
+
font-size: var(--font-size-sm);
|
|
4512
|
+
margin-top: var(--spacing-stack-xs, var(--spacing-base));
|
|
4513
|
+
}
|
|
4514
|
+
|
|
4515
|
+
/* =============================================================================
|
|
4516
|
+
Tuple Layout
|
|
4517
|
+
============================================================================= */
|
|
4518
|
+
|
|
4519
|
+
.bc-json-structure-tuple {
|
|
4520
|
+
display: flex;
|
|
4521
|
+
flex-direction: column;
|
|
4522
|
+
gap: var(--spacing-stack-sm, calc(var(--spacing-base) * 2));
|
|
4523
|
+
}
|
|
4524
|
+
|
|
4525
|
+
.bc-json-structure-tuple-label {
|
|
4526
|
+
font-weight: 600;
|
|
4527
|
+
color: var(--color-base-700);
|
|
4528
|
+
margin-bottom: var(--spacing-stack-xs, var(--spacing-base));
|
|
4529
|
+
}
|
|
4530
|
+
|
|
4531
|
+
.bc-json-structure-tuple-description {
|
|
4532
|
+
color: var(--color-base-500);
|
|
4533
|
+
font-size: var(--font-size-sm);
|
|
4534
|
+
margin-bottom: var(--spacing-stack-xs, var(--spacing-base));
|
|
4535
|
+
}
|
|
4536
|
+
|
|
4537
|
+
.bc-json-structure-tuple-elements {
|
|
4538
|
+
display: flex;
|
|
4539
|
+
flex-direction: column;
|
|
4540
|
+
gap: var(--spacing-stack-sm, calc(var(--spacing-base) * 2));
|
|
4541
|
+
}
|
|
4542
|
+
|
|
4543
|
+
.bc-json-structure-tuple-element {
|
|
4544
|
+
display: flex;
|
|
4545
|
+
flex-direction: column;
|
|
4546
|
+
gap: var(--spacing-stack-xs, var(--spacing-base));
|
|
4547
|
+
}
|
|
4548
|
+
|
|
4549
|
+
.bc-json-structure-tuple-element-header {
|
|
4550
|
+
display: flex;
|
|
4551
|
+
align-items: center;
|
|
4552
|
+
gap: var(--spacing-inline-xs, calc(var(--spacing-base) * 0.5));
|
|
4553
|
+
color: var(--color-base-600);
|
|
4554
|
+
font-size: var(--font-size-sm);
|
|
4555
|
+
}
|
|
4556
|
+
|
|
4557
|
+
.bc-json-structure-tuple-position {
|
|
4558
|
+
font-family: var(--font-family-mono);
|
|
4559
|
+
font-weight: 600;
|
|
4560
|
+
color: var(--color-base-500);
|
|
4561
|
+
}
|
|
4562
|
+
|
|
4563
|
+
.bc-json-structure-tuple-element-name {
|
|
4564
|
+
font-weight: 500;
|
|
4565
|
+
}
|
|
4566
|
+
|
|
4567
|
+
.bc-json-structure-tuple-element-control {
|
|
4568
|
+
padding-inline-start: calc(var(--spacing-base) * 2);
|
|
4569
|
+
}
|
|
4570
|
+
|
|
4571
|
+
/* =============================================================================
|
|
4572
|
+
Choice Layout
|
|
4573
|
+
============================================================================= */
|
|
4574
|
+
|
|
4575
|
+
.bc-json-structure-choice {
|
|
4576
|
+
display: flex;
|
|
4577
|
+
flex-direction: column;
|
|
4578
|
+
gap: var(--spacing-stack-sm, calc(var(--spacing-base) * 2));
|
|
4579
|
+
}
|
|
4580
|
+
|
|
4581
|
+
.bc-json-structure-choice-selector {
|
|
4582
|
+
margin-bottom: var(--spacing-stack-sm, calc(var(--spacing-base) * 2));
|
|
4583
|
+
}
|
|
4584
|
+
|
|
4585
|
+
.bc-json-structure-choice-options {
|
|
4586
|
+
padding-inline-start: calc(var(--spacing-base) * 2);
|
|
4587
|
+
}
|
|
4588
|
+
|
|
4589
|
+
/* =============================================================================
|
|
4590
|
+
Grid Layout (for objects with many properties)
|
|
4591
|
+
============================================================================= */
|
|
4592
|
+
|
|
4593
|
+
.bc-structure-grid {
|
|
4594
|
+
display: grid;
|
|
4595
|
+
}
|
|
4596
|
+
|
|
4597
|
+
.bc-structure-grid--gap-4 {
|
|
4598
|
+
gap: var(--spacing-stack-lg, calc(var(--spacing-base) * 4));
|
|
4599
|
+
}
|
|
4600
|
+
|
|
4601
|
+
.bc-structure-grid--cols-1 {
|
|
4602
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
4603
|
+
}
|
|
4604
|
+
|
|
4605
|
+
.bc-structure-grid--cols-2 {
|
|
4606
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4607
|
+
}
|
|
4608
|
+
|
|
4609
|
+
.bc-structure-grid--cols-3 {
|
|
4610
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
4611
|
+
}
|
|
4612
|
+
|
|
4613
|
+
.bc-structure-grid--cols-4 {
|
|
4614
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
4615
|
+
}
|
|
4616
|
+
|
|
4617
|
+
@media (width >= 40rem) {
|
|
4618
|
+
.bc-structure-grid--cols-sm-1 {
|
|
4619
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
4620
|
+
}
|
|
4621
|
+
.bc-structure-grid--cols-sm-2 {
|
|
4622
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4623
|
+
}
|
|
4624
|
+
.bc-structure-grid--cols-sm-3 {
|
|
4625
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
4626
|
+
}
|
|
4627
|
+
.bc-structure-grid--cols-sm-4 {
|
|
4628
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
4629
|
+
}
|
|
4630
|
+
}
|
|
4631
|
+
|
|
4632
|
+
@media (width >= 48rem) {
|
|
4633
|
+
.bc-structure-grid--cols-md-1 {
|
|
4634
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
4635
|
+
}
|
|
4636
|
+
.bc-structure-grid--cols-md-2 {
|
|
4637
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4638
|
+
}
|
|
4639
|
+
.bc-structure-grid--cols-md-3 {
|
|
4640
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
4641
|
+
}
|
|
4642
|
+
.bc-structure-grid--cols-md-4 {
|
|
4643
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
4644
|
+
}
|
|
4645
|
+
}
|
|
4646
|
+
|
|
4647
|
+
@media (width >= 64rem) {
|
|
4648
|
+
.bc-structure-grid--cols-lg-1 {
|
|
4649
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
4650
|
+
}
|
|
4651
|
+
.bc-structure-grid--cols-lg-2 {
|
|
4652
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4653
|
+
}
|
|
4654
|
+
.bc-structure-grid--cols-lg-3 {
|
|
4655
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
4656
|
+
}
|
|
4657
|
+
.bc-structure-grid--cols-lg-4 {
|
|
4658
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
4659
|
+
}
|
|
4660
|
+
}
|
|
4661
|
+
|
|
4662
|
+
/* =============================================================================
|
|
4663
|
+
Validation States
|
|
4664
|
+
============================================================================= */
|
|
4665
|
+
|
|
4666
|
+
.bc-json-structure-error {
|
|
4667
|
+
color: var(--color-error-500, #dc2626);
|
|
4668
|
+
font-size: var(--font-size-sm);
|
|
4669
|
+
margin-top: var(--spacing-stack-xs, var(--spacing-base));
|
|
4670
|
+
}
|
|
4671
|
+
|
|
4672
|
+
.bc-json-structure-field--invalid {
|
|
4673
|
+
--field-border-color: var(--color-error-500, #dc2626);
|
|
4674
|
+
}
|
|
4675
|
+
|
|
4676
|
+
.bc-json-structure-field--valid {
|
|
4677
|
+
--field-border-color: var(--color-success-500, #16a34a);
|
|
4678
|
+
}
|
|
4679
|
+
|
|
4680
|
+
/* =============================================================================
|
|
4681
|
+
Metadata Display
|
|
4682
|
+
============================================================================= */
|
|
4683
|
+
|
|
4684
|
+
.bc-json-structure-description {
|
|
4685
|
+
color: var(--color-base-500);
|
|
4686
|
+
font-size: var(--font-size-sm);
|
|
4687
|
+
margin-top: var(--spacing-stack-xs, var(--spacing-base));
|
|
4688
|
+
}
|
|
4689
|
+
|
|
4690
|
+
.bc-json-structure-deprecated {
|
|
4691
|
+
opacity: 0.7;
|
|
4692
|
+
position: relative;
|
|
4693
|
+
}
|
|
4694
|
+
|
|
4695
|
+
.bc-json-structure-deprecated::before {
|
|
4696
|
+
content: '(deprecated)';
|
|
4697
|
+
position: absolute;
|
|
4698
|
+
top: 0;
|
|
4699
|
+
right: 0;
|
|
4700
|
+
font-size: var(--font-size-xs);
|
|
4701
|
+
color: var(--color-warning-500, #d97706);
|
|
4702
|
+
background: var(--color-warning-100, #fef3c7);
|
|
4703
|
+
padding: 0.125em 0.5em;
|
|
4704
|
+
border-radius: var(--radius-sm);
|
|
4705
|
+
}
|
|
4706
|
+
|
|
4707
|
+
.bc-json-structure-deprecated-badge {
|
|
4708
|
+
display: inline-flex;
|
|
4709
|
+
align-items: center;
|
|
4710
|
+
gap: var(--spacing-inline-xs, calc(var(--spacing-base) * 0.5));
|
|
4711
|
+
font-size: var(--font-size-xs);
|
|
4712
|
+
color: var(--color-warning-700);
|
|
4713
|
+
background: var(--color-warning-100);
|
|
4714
|
+
padding: 0.125em 0.5em;
|
|
4715
|
+
border-radius: var(--radius-sm);
|
|
4716
|
+
margin-inline-start: var(
|
|
4717
|
+
--spacing-inline-xs,
|
|
4718
|
+
calc(var(--spacing-base) * 0.5)
|
|
4719
|
+
);
|
|
4720
|
+
}
|
|
4721
|
+
|
|
4722
|
+
.bc-json-structure-required-indicator {
|
|
4723
|
+
color: var(--color-error-500, #dc2626);
|
|
4724
|
+
margin-inline-start: 0.25em;
|
|
4725
|
+
}
|
|
4726
|
+
|
|
4727
|
+
/* =============================================================================
|
|
4728
|
+
Const/Enum Display
|
|
4729
|
+
============================================================================= */
|
|
4730
|
+
|
|
4731
|
+
.bc-json-structure-const {
|
|
4732
|
+
font-family: var(--font-family-mono);
|
|
4733
|
+
background: var(--color-base-100);
|
|
4734
|
+
padding: var(--spacing-inline-xs, calc(var(--spacing-base) * 0.5))
|
|
4735
|
+
var(--spacing-inline-sm, calc(var(--spacing-base) * 2));
|
|
4736
|
+
border-radius: var(--radius-sm);
|
|
4737
|
+
color: var(--color-base-600);
|
|
4738
|
+
}
|
|
4739
|
+
|
|
4740
|
+
/* =============================================================================
|
|
4741
|
+
Read-Only State
|
|
4742
|
+
============================================================================= */
|
|
4743
|
+
|
|
4744
|
+
.bc-json-structure-readonly {
|
|
4745
|
+
pointer-events: none;
|
|
4746
|
+
opacity: 0.7;
|
|
4747
|
+
}
|
|
4748
|
+
|
|
4749
|
+
.bc-json-structure-readonly input,
|
|
4750
|
+
.bc-json-structure-readonly select,
|
|
4751
|
+
.bc-json-structure-readonly textarea {
|
|
4752
|
+
background: var(--color-base-100);
|
|
4753
|
+
cursor: not-allowed;
|
|
4754
|
+
}
|
|
4755
|
+
|
|
4756
|
+
/* =============================================================================
|
|
4757
|
+
Placeholder Styles (temporary, for development)
|
|
4758
|
+
============================================================================= */
|
|
4759
|
+
|
|
4760
|
+
.bc-json-structure-placeholder {
|
|
4761
|
+
display: flex;
|
|
4762
|
+
flex-direction: column;
|
|
4763
|
+
gap: var(--spacing-stack-xs, var(--spacing-base));
|
|
4764
|
+
padding: var(--spacing-inline-sm, calc(var(--spacing-base) * 2));
|
|
4765
|
+
border: 1px dashed var(--color-base-300);
|
|
4766
|
+
border-radius: var(--radius-md);
|
|
4767
|
+
background: var(--color-base-50);
|
|
4768
|
+
}
|
|
4769
|
+
|
|
4770
|
+
.bc-json-structure-placeholder > span:first-child {
|
|
4771
|
+
font-size: var(--font-size-xs);
|
|
4772
|
+
color: var(--color-base-400);
|
|
4773
|
+
font-family: var(--font-family-mono);
|
|
4774
|
+
}
|
|
4775
|
+
|
|
4776
|
+
.bc-json-structure-unknown {
|
|
4777
|
+
display: flex;
|
|
4778
|
+
flex-direction: column;
|
|
4779
|
+
gap: var(--spacing-stack-xs, var(--spacing-base));
|
|
4780
|
+
padding: var(--spacing-inline-sm, calc(var(--spacing-base) * 2));
|
|
4781
|
+
border: 1px solid var(--color-warning-300);
|
|
4782
|
+
border-radius: var(--radius-md);
|
|
4783
|
+
background: var(--color-warning-50);
|
|
4784
|
+
color: var(--color-warning-700);
|
|
4785
|
+
}
|
|
4786
|
+
|
|
4386
4787
|
.bc-label {
|
|
4387
4788
|
font-size: var(--font-size-sm);
|
|
4388
4789
|
line-height: var(--line-height-normal);
|