playbook_ui 16.5.0.pre.alpha.RTEPOC15708 → 16.5.0.pre.alpha.RTEPOC15745

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.
@@ -10,6 +10,12 @@ module Playbook
10
10
  prop :label
11
11
  prop :required_indicator, type: Playbook::Props::Boolean, default: false
12
12
 
13
+ # Match React default (globalProps maxWidth "md").
14
+ def max_width
15
+ v = values[:max_width] || values["max_width"]
16
+ v.nil? || v == "" ? "md" : v
17
+ end
18
+
13
19
  def classname
14
20
  generate_classname("pb_rich_text_editor_kit", "rte-container")
15
21
  end
@@ -40,6 +46,15 @@ module Playbook
40
46
  def toolbar_id
41
47
  "#{container_id}-toolbar"
42
48
  end
49
+
50
+ # Stable DOM ids for TipTap toolbar popover (used in ERB + module script; must be kit methods — not ERB locals).
51
+ def rte_block_style_trigger_id
52
+ "#{toolbar_id}-block-trigger"
53
+ end
54
+
55
+ def rte_block_style_tooltip_id
56
+ "#{toolbar_id}-block-tooltip"
57
+ end
43
58
  end
44
59
  end
45
60
  end