grav-svelte 0.0.73 → 0.0.74

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.
@@ -13,6 +13,7 @@
13
13
  <button
14
14
  type="button"
15
15
  class="{item[header.colorField ?? ''] ?? ''} dynamic-button "
16
+ style="{header.styleField ? (item[header.styleField] ?? '') : ''}"
16
17
  on:click={() => {
17
18
  if (header.onButtonClick) {
18
19
  header.onButtonClick(item[idField], item);
@@ -39,6 +39,12 @@ export interface TableHeader {
39
39
  * Used for DynamicButton type.
40
40
  */
41
41
  colorField?: string;
42
+ /**
43
+ * Field name that contains inline CSS styles for the dynamic button.
44
+ * Used for DynamicButton type.
45
+ * Has higher specificity than colorField classes, useful for avoiding CSS hierarchy conflicts.
46
+ */
47
+ styleField?: string;
42
48
  /**
43
49
  * Field name that contains the icon class (e.g., Font Awesome class).
44
50
  * Used for DynamicButton type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grav-svelte",
3
- "version": "0.0.73",
3
+ "version": "0.0.74",
4
4
  "description": "A collection of Svelte components",
5
5
  "license": "MIT",
6
6
  "scripts": {