@deriv-web-design/ui 0.1.36 → 0.1.38
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/block-registry.json +69 -1
- package/components.manifest.json +5 -0
- package/dist/index.css +23 -18
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +53 -2
- package/dist/index.d.ts +53 -2
- package/dist/index.js +78 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +77 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/block-registry.json
CHANGED
|
@@ -7525,7 +7525,8 @@
|
|
|
7525
7525
|
"optionalFields": [
|
|
7526
7526
|
"variant",
|
|
7527
7527
|
"title",
|
|
7528
|
-
"description"
|
|
7528
|
+
"description",
|
|
7529
|
+
"labels"
|
|
7529
7530
|
],
|
|
7530
7531
|
"variants": [
|
|
7531
7532
|
"margin",
|
|
@@ -7563,6 +7564,73 @@
|
|
|
7563
7564
|
"required": false,
|
|
7564
7565
|
"maxLength": 200
|
|
7565
7566
|
},
|
|
7567
|
+
"labels": {
|
|
7568
|
+
"type": "object",
|
|
7569
|
+
"required": false,
|
|
7570
|
+
"description": "Optional UI copy overrides for Raven / Makima i18n. Flat keys replace strings in the active block; swapPoints/swapPercentage cover each swap tab. Omit any key to keep the English default. Does not add variants.",
|
|
7571
|
+
"objectFields": {
|
|
7572
|
+
"calculations": {
|
|
7573
|
+
"type": "array",
|
|
7574
|
+
"required": false,
|
|
7575
|
+
"description": "Replaces the annotated calculation strips when set."
|
|
7576
|
+
},
|
|
7577
|
+
"exampleHeading": {
|
|
7578
|
+
"type": "string",
|
|
7579
|
+
"required": false,
|
|
7580
|
+
"maxLength": 40
|
|
7581
|
+
},
|
|
7582
|
+
"exampleIntro": {
|
|
7583
|
+
"type": "string",
|
|
7584
|
+
"required": false,
|
|
7585
|
+
"maxLength": 400
|
|
7586
|
+
},
|
|
7587
|
+
"exampleLead": {
|
|
7588
|
+
"type": "string",
|
|
7589
|
+
"required": false,
|
|
7590
|
+
"maxLength": 120
|
|
7591
|
+
},
|
|
7592
|
+
"formulaBlocks": {
|
|
7593
|
+
"type": "array",
|
|
7594
|
+
"required": false,
|
|
7595
|
+
"description": "Replaces the Formula column blocks when set."
|
|
7596
|
+
},
|
|
7597
|
+
"formulaHeading": {
|
|
7598
|
+
"type": "string",
|
|
7599
|
+
"required": false,
|
|
7600
|
+
"maxLength": 40
|
|
7601
|
+
},
|
|
7602
|
+
"note": {
|
|
7603
|
+
"type": "string",
|
|
7604
|
+
"required": false,
|
|
7605
|
+
"maxLength": 400
|
|
7606
|
+
},
|
|
7607
|
+
"resultText": {
|
|
7608
|
+
"type": "string",
|
|
7609
|
+
"required": false,
|
|
7610
|
+
"maxLength": 300
|
|
7611
|
+
},
|
|
7612
|
+
"swapPercentage": {
|
|
7613
|
+
"type": "object",
|
|
7614
|
+
"required": false,
|
|
7615
|
+
"description": "Body overrides for the swap In-percentage tab (same shape as swapPoints)."
|
|
7616
|
+
},
|
|
7617
|
+
"swapPoints": {
|
|
7618
|
+
"type": "object",
|
|
7619
|
+
"required": false,
|
|
7620
|
+
"description": "Body overrides for the swap In-points tab (formulaBlocks, exampleIntro, calculations, resultText, note, …)."
|
|
7621
|
+
},
|
|
7622
|
+
"swapTabPercentage": {
|
|
7623
|
+
"type": "string",
|
|
7624
|
+
"required": false,
|
|
7625
|
+
"maxLength": 60
|
|
7626
|
+
},
|
|
7627
|
+
"swapTabPoints": {
|
|
7628
|
+
"type": "string",
|
|
7629
|
+
"required": false,
|
|
7630
|
+
"maxLength": 60
|
|
7631
|
+
}
|
|
7632
|
+
}
|
|
7633
|
+
},
|
|
7566
7634
|
"title": {
|
|
7567
7635
|
"type": "string",
|
|
7568
7636
|
"required": false,
|
package/components.manifest.json
CHANGED
|
@@ -4103,6 +4103,11 @@
|
|
|
4103
4103
|
"required": false,
|
|
4104
4104
|
"description": "Section description, shown under the title. Defaults to the canonical copy for `variant`."
|
|
4105
4105
|
},
|
|
4106
|
+
"labels": {
|
|
4107
|
+
"type": "TradingCalculatorHowToLabels",
|
|
4108
|
+
"required": false,
|
|
4109
|
+
"description": "Optional UI copy overrides for Raven / Makima i18n. Omit to keep English formula/example/chip defaults."
|
|
4110
|
+
},
|
|
4106
4111
|
"title": {
|
|
4107
4112
|
"type": "string",
|
|
4108
4113
|
"required": false,
|
package/dist/index.css
CHANGED
|
@@ -11266,7 +11266,8 @@
|
|
|
11266
11266
|
}
|
|
11267
11267
|
.tchow-stripWrap {
|
|
11268
11268
|
width: 100%;
|
|
11269
|
-
overflow: hidden;
|
|
11269
|
+
overflow-x: hidden;
|
|
11270
|
+
overflow-y: visible;
|
|
11270
11271
|
}
|
|
11271
11272
|
.tchow-strip {
|
|
11272
11273
|
display: inline-grid;
|
|
@@ -11297,41 +11298,45 @@
|
|
|
11297
11298
|
text-align: center;
|
|
11298
11299
|
}
|
|
11299
11300
|
.tchow-stripValueText--labeled {
|
|
11300
|
-
min-width:
|
|
11301
|
+
min-width: 4.5rem;
|
|
11301
11302
|
}
|
|
11302
11303
|
.tchow-stripCaption {
|
|
11304
|
+
justify-self: center;
|
|
11303
11305
|
align-self: start;
|
|
11304
11306
|
display: flex;
|
|
11305
11307
|
flex-direction: column;
|
|
11306
11308
|
align-items: center;
|
|
11307
11309
|
gap: var(--spacing-4);
|
|
11308
|
-
min-
|
|
11310
|
+
min-width: 0;
|
|
11311
|
+
}
|
|
11312
|
+
.tchow-stripCaption--labeled {
|
|
11313
|
+
box-sizing: border-box;
|
|
11314
|
+
width: 5.5rem;
|
|
11315
|
+
max-width: 5.5rem;
|
|
11309
11316
|
}
|
|
11310
11317
|
.tchow-stripArrow {
|
|
11311
11318
|
color: var(--color-slate-500);
|
|
11312
11319
|
flex-shrink: 0;
|
|
11313
11320
|
}
|
|
11314
11321
|
.tchow-stripLabel {
|
|
11315
|
-
|
|
11316
|
-
|
|
11317
|
-
|
|
11322
|
+
box-sizing: border-box;
|
|
11323
|
+
display: block;
|
|
11324
|
+
width: 100%;
|
|
11325
|
+
min-width: 0;
|
|
11326
|
+
max-width: 100%;
|
|
11327
|
+
text-align: center;
|
|
11328
|
+
white-space: normal;
|
|
11329
|
+
overflow-wrap: anywhere;
|
|
11330
|
+
word-break: break-word;
|
|
11331
|
+
line-height: 1.25;
|
|
11318
11332
|
font-family: var(--font-family-base);
|
|
11319
11333
|
font-size: var(--typography-body-xs-font-size);
|
|
11320
11334
|
color: var(--text-secondary);
|
|
11321
|
-
white-space: nowrap;
|
|
11322
11335
|
}
|
|
11323
11336
|
.tchow-stripLabelText {
|
|
11324
|
-
|
|
11325
|
-
|
|
11326
|
-
|
|
11327
|
-
}
|
|
11328
|
-
.tchow-stripLabel--edge {
|
|
11329
|
-
width: auto;
|
|
11330
|
-
text-align: center;
|
|
11331
|
-
}
|
|
11332
|
-
.tchow-stripLabel--edge .tchow-stripLabelText {
|
|
11333
|
-
position: static;
|
|
11334
|
-
transform: none;
|
|
11337
|
+
display: block;
|
|
11338
|
+
width: 100%;
|
|
11339
|
+
min-width: 0;
|
|
11335
11340
|
}
|
|
11336
11341
|
|
|
11337
11342
|
/* templates/CryptoTradeConverter/CryptoTradeConverter.css */
|