@openedx/paragon 23.11.0 → 23.12.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/package.json
CHANGED
|
@@ -10,7 +10,21 @@
|
|
|
10
10
|
"$value": "{color.black}"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
|
-
"backdrop-bg": { "source": "$modal-backdrop-bg", "$value": "{color.black}" }
|
|
13
|
+
"backdrop-bg": { "source": "$modal-backdrop-bg", "$value": "{color.black}" },
|
|
14
|
+
"footer": {
|
|
15
|
+
"overrides": {
|
|
16
|
+
"button": {
|
|
17
|
+
"variants": {}
|
|
18
|
+
},
|
|
19
|
+
"examples": {
|
|
20
|
+
"button": {
|
|
21
|
+
"variants": {
|
|
22
|
+
"primary": "brand"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
14
28
|
}
|
|
15
29
|
},
|
|
16
30
|
"elevation": {
|
|
@@ -338,13 +338,20 @@ const initializeStyleDictionary = async ({ themes }) => {
|
|
|
338
338
|
*/
|
|
339
339
|
const BUTTON_VARIANT_OVERRIDES_CONFIG = [
|
|
340
340
|
{
|
|
341
|
-
name: 'Alert',
|
|
341
|
+
name: 'Alert actions',
|
|
342
342
|
getTokens: (tokens) => tokens?.color?.alert?.actions?.overrides?.button?.variants,
|
|
343
343
|
selectors: [
|
|
344
344
|
'.pgn__alert-message-wrapper .pgn__alert-actions',
|
|
345
345
|
'.pgn__alert-message-wrapper-stacked .pgn__alert-actions',
|
|
346
346
|
],
|
|
347
347
|
},
|
|
348
|
+
{
|
|
349
|
+
name: 'Modal footer',
|
|
350
|
+
getTokens: (tokens) => tokens?.color?.modal?.footer?.overrides?.button?.variants,
|
|
351
|
+
selectors: [
|
|
352
|
+
'.pgn__modal .pgn__modal-footer',
|
|
353
|
+
],
|
|
354
|
+
},
|
|
348
355
|
// Add new component configurations here!
|
|
349
356
|
];
|
|
350
357
|
|
|
@@ -376,7 +383,7 @@ const initializeStyleDictionary = async ({ themes }) => {
|
|
|
376
383
|
hasOutputHeader = true;
|
|
377
384
|
}
|
|
378
385
|
|
|
379
|
-
output +=
|
|
386
|
+
output += `/* ${config.name} */\n\n`;
|
|
380
387
|
|
|
381
388
|
Object.entries(buttonVariantOverrides).forEach(([originalVariant, overrideVariant]) => {
|
|
382
389
|
const selectorOutput = config.selectors
|