@drawbridge/components 0.1.35 → 0.1.37

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.
Files changed (338) hide show
  1. package/components/styles.css +355 -68
  2. package/dist/advertisement.js +20 -15
  3. package/dist/advertisement.mjs +20 -15
  4. package/dist/bridge/advertisements.js +2 -4
  5. package/dist/bridge/advertisements.mjs +3 -5
  6. package/dist/bridge/fields.js +6 -89
  7. package/dist/bridge/fields.mjs +7 -89
  8. package/dist/bridge/form-subdomain-embed.js +1 -5
  9. package/dist/bridge/form-subdomain-embed.mjs +1 -5
  10. package/dist/bridge/form-subdomain-header.js +14 -21
  11. package/dist/bridge/form-subdomain-header.mjs +14 -20
  12. package/dist/bridge/form-subdomain-issue.js +8 -17
  13. package/dist/bridge/form-subdomain-issue.mjs +8 -17
  14. package/dist/bridge/form-subdomain-missions.js +52 -58
  15. package/dist/bridge/form-subdomain-missions.mjs +54 -60
  16. package/dist/bridge/form-subdomain.js +94 -223
  17. package/dist/bridge/form-subdomain.mjs +96 -222
  18. package/dist/bridge/lib/entry.js +6 -61
  19. package/dist/bridge/lib/entry.mjs +5 -51
  20. package/dist/bridge/lib/order.js +0 -23
  21. package/dist/bridge/lib/order.mjs +0 -20
  22. package/dist/bridge/template-layout.js +2 -5
  23. package/dist/bridge/template-layout.mjs +3 -6
  24. package/dist/bridge/template-modal.js +15 -82
  25. package/dist/bridge/template-modal.mjs +16 -83
  26. package/dist/bridge/template-preview.js +208 -0
  27. package/dist/bridge/template-preview.mjs +173 -0
  28. package/dist/bridge/template-subdomain-gallery.js +75 -126
  29. package/dist/bridge/template-subdomain-gallery.mjs +75 -122
  30. package/dist/bridge/template-subdomain.js +14 -16
  31. package/dist/bridge/template-subdomain.mjs +15 -17
  32. package/dist/dashboard/avatar.js +0 -5
  33. package/dist/dashboard/avatar.mjs +0 -5
  34. package/dist/dashboard/card-affiliate.js +2 -3
  35. package/dist/dashboard/card-affiliate.mjs +2 -3
  36. package/dist/dashboard/card-campaign-switch.js +9 -34
  37. package/dist/dashboard/card-campaign-switch.mjs +8 -32
  38. package/dist/dashboard/card-connection.js +91 -51
  39. package/dist/dashboard/card-connection.mjs +89 -50
  40. package/dist/dashboard/card-order.js +14 -6
  41. package/dist/dashboard/card-order.mjs +14 -6
  42. package/dist/dashboard/card-section.js +26 -69
  43. package/dist/dashboard/card-section.mjs +26 -65
  44. package/dist/dashboard/card-tile.js +35 -3
  45. package/dist/dashboard/card-tile.mjs +34 -3
  46. package/dist/dashboard/device.js +95 -0
  47. package/dist/dashboard/device.mjs +72 -0
  48. package/dist/dashboard/drawer-subscription.js +14 -52
  49. package/dist/dashboard/drawer-subscription.mjs +14 -52
  50. package/dist/dashboard/drawer.js +3 -20
  51. package/dist/dashboard/drawer.mjs +4 -21
  52. package/dist/dashboard/dropdown.js +2 -6
  53. package/dist/dashboard/dropdown.mjs +2 -6
  54. package/dist/dashboard/form-admin-subscription-custom.js +8 -72
  55. package/dist/dashboard/form-admin-subscription-custom.mjs +8 -72
  56. package/dist/dashboard/form-ai.js +148 -0
  57. package/dist/dashboard/form-ai.mjs +148 -1
  58. package/dist/dashboard/form-filters-analytics.js +62 -85
  59. package/dist/dashboard/form-filters-analytics.mjs +61 -85
  60. package/dist/dashboard/form-organization-brand.js +13 -30
  61. package/dist/dashboard/form-organization-brand.mjs +13 -30
  62. package/dist/dashboard/form-organization-campaign-advertisement.js +112 -38
  63. package/dist/dashboard/form-organization-campaign-advertisement.mjs +112 -38
  64. package/dist/dashboard/form-organization-campaign-agreement.js +210 -414
  65. package/dist/dashboard/form-organization-campaign-agreement.mjs +212 -411
  66. package/dist/dashboard/form-organization-campaign-field-list.js +425 -0
  67. package/dist/dashboard/form-organization-campaign-field-list.mjs +396 -0
  68. package/dist/dashboard/form-organization-campaign-field-number.js +7 -48
  69. package/dist/dashboard/form-organization-campaign-field-number.mjs +7 -48
  70. package/dist/dashboard/form-organization-campaign-field-select.js +4 -15
  71. package/dist/dashboard/form-organization-campaign-field-select.mjs +4 -15
  72. package/dist/dashboard/form-organization-campaign-field-text.js +6 -46
  73. package/dist/dashboard/form-organization-campaign-field-text.mjs +6 -46
  74. package/dist/dashboard/form-organization-campaign-field-textarea.js +13 -22
  75. package/dist/dashboard/form-organization-campaign-field-textarea.mjs +13 -22
  76. package/dist/dashboard/form-organization-campaign-integration-age.js +35 -2
  77. package/dist/dashboard/form-organization-campaign-integration-age.mjs +35 -2
  78. package/dist/dashboard/form-organization-campaign-integration-geocode.js +1 -4
  79. package/dist/dashboard/form-organization-campaign-integration-geocode.mjs +1 -4
  80. package/dist/dashboard/form-organization-campaign-page-embed.js +1 -1
  81. package/dist/dashboard/form-organization-campaign-page-embed.mjs +1 -1
  82. package/dist/dashboard/form-organization-campaign-page-preview.js +2 -1
  83. package/dist/dashboard/form-organization-campaign-page-preview.mjs +2 -1
  84. package/dist/dashboard/form-organization-campaign-page-qr.js +2 -2
  85. package/dist/dashboard/form-organization-campaign-page-qr.mjs +2 -2
  86. package/dist/dashboard/form-organization-campaign-page-share.js +5 -5
  87. package/dist/dashboard/form-organization-campaign-page-share.mjs +5 -5
  88. package/dist/dashboard/form-organization-campaign-page-slug.js +3 -2
  89. package/dist/dashboard/form-organization-campaign-page-slug.mjs +3 -2
  90. package/dist/dashboard/form-organization-campaign-page.js +265 -168
  91. package/dist/dashboard/form-organization-campaign-page.mjs +266 -170
  92. package/dist/dashboard/form-organization-campaign-section.js +107 -125
  93. package/dist/dashboard/form-organization-campaign-section.mjs +107 -121
  94. package/dist/dashboard/form-organization-campaign.js +9 -119
  95. package/dist/dashboard/form-organization-campaign.mjs +9 -118
  96. package/dist/dashboard/form-organization-file-frame.js +1 -7
  97. package/dist/dashboard/form-organization-file-frame.mjs +1 -7
  98. package/dist/dashboard/form-organization-workflow.js +545 -589
  99. package/dist/dashboard/form-organization-workflow.mjs +545 -590
  100. package/dist/dashboard/form-organization.js +0 -22
  101. package/dist/dashboard/form-organization.mjs +0 -22
  102. package/dist/dashboard/form-verify-prize.js +34 -114
  103. package/dist/dashboard/form-verify-prize.mjs +34 -111
  104. package/dist/dashboard/google.js +1 -8
  105. package/dist/dashboard/google.mjs +1 -8
  106. package/dist/dashboard/input-array.js +0 -2
  107. package/dist/dashboard/input-array.mjs +0 -2
  108. package/dist/dashboard/input-combobox.js +9 -0
  109. package/dist/dashboard/input-combobox.mjs +9 -0
  110. package/dist/dashboard/input-date.js +8 -3
  111. package/dist/dashboard/input-date.mjs +8 -3
  112. package/dist/dashboard/input-editor.js +6 -17
  113. package/dist/dashboard/input-editor.mjs +6 -17
  114. package/dist/dashboard/input-fields.js +437 -287
  115. package/dist/dashboard/input-fields.mjs +436 -287
  116. package/dist/dashboard/input-file.js +2 -70
  117. package/dist/dashboard/input-file.mjs +2 -70
  118. package/dist/dashboard/input-font.js +55 -64
  119. package/dist/dashboard/input-font.mjs +55 -64
  120. package/dist/dashboard/input-resource.js +1 -4
  121. package/dist/dashboard/input-resource.mjs +1 -4
  122. package/dist/dashboard/item-row.js +92 -0
  123. package/dist/dashboard/item-row.mjs +63 -0
  124. package/dist/dashboard/lib/features.js +1 -1
  125. package/dist/dashboard/lib/features.mjs +1 -1
  126. package/dist/dashboard/lib/item-list.js +15 -0
  127. package/dist/dashboard/lib/item-list.mjs +14 -0
  128. package/dist/dashboard/lib/rail.js +17 -16
  129. package/dist/dashboard/lib/rail.mjs +16 -15
  130. package/dist/dashboard/lib/sms.js +2 -8
  131. package/dist/dashboard/lib/sms.mjs +1 -6
  132. package/dist/dashboard/list-resource.js +0 -2
  133. package/dist/dashboard/list-resource.mjs +0 -2
  134. package/dist/dashboard/menu.js +5 -54
  135. package/dist/dashboard/menu.mjs +5 -53
  136. package/dist/dashboard/modal.js +4 -19
  137. package/dist/dashboard/modal.mjs +5 -20
  138. package/dist/dashboard/order-sections.js +0 -4
  139. package/dist/dashboard/order-sections.mjs +0 -4
  140. package/dist/dashboard/preview.js +324 -838
  141. package/dist/dashboard/preview.mjs +324 -826
  142. package/dist/dashboard/provider-ui.js +12 -20
  143. package/dist/dashboard/provider-ui.mjs +13 -21
  144. package/dist/dashboard/recharts.js +28 -53
  145. package/dist/dashboard/recharts.mjs +28 -53
  146. package/dist/dashboard/swatch.js +0 -35
  147. package/dist/dashboard/swatch.mjs +0 -31
  148. package/dist/dashboard/table-contacts.js +10 -6
  149. package/dist/dashboard/table-contacts.mjs +10 -6
  150. package/dist/dashboard/table.js +3 -10
  151. package/dist/dashboard/table.mjs +3 -9
  152. package/dist/dashboard/template-dashboard.js +21 -13
  153. package/dist/dashboard/template-dashboard.mjs +21 -12
  154. package/dist/dashboard/template-rail.js +126 -198
  155. package/dist/dashboard/template-rail.mjs +125 -196
  156. package/dist/dashboard/template-socket.js +12 -0
  157. package/dist/dashboard/template-socket.mjs +12 -0
  158. package/dist/dashboard/template-ui.js +11 -20
  159. package/dist/dashboard/template-ui.mjs +13 -22
  160. package/dist/input-checkbox.js +1 -7
  161. package/dist/input-checkbox.mjs +1 -7
  162. package/dist/input-name.js +3 -3
  163. package/dist/input-name.mjs +3 -3
  164. package/dist/input-select.js +1 -3
  165. package/dist/input-select.mjs +1 -3
  166. package/dist/provider-font.js +3 -4
  167. package/dist/provider-font.mjs +3 -4
  168. package/dist/shared/badge.js +0 -15
  169. package/dist/shared/badge.mjs +0 -11
  170. package/dist/shared/carousel.js +7 -11
  171. package/dist/shared/carousel.mjs +7 -11
  172. package/dist/shared/lib/campaign.js +9 -3
  173. package/dist/shared/lib/campaign.mjs +9 -3
  174. package/dist/shared/lib/helpers.js +0 -24
  175. package/dist/shared/lib/helpers.mjs +0 -22
  176. package/dist/shared/lib/video.js +0 -6
  177. package/dist/shared/lib/video.mjs +0 -5
  178. package/dist/shared/sortable.js +10 -27
  179. package/dist/shared/sortable.mjs +10 -27
  180. package/dist/shared/tabs.js +1 -1
  181. package/dist/shared/tabs.mjs +1 -1
  182. package/dist/video.js +9 -127
  183. package/dist/video.mjs +11 -125
  184. package/package.json +20 -176
  185. package/types/bridge/fields.d.ts +1 -6
  186. package/types/bridge/form-subdomain-missions.d.ts +0 -2
  187. package/types/bridge/form-subdomain.d.ts +3 -62
  188. package/types/bridge/lib/entry.d.ts +7 -44
  189. package/types/bridge/lib/order.d.ts +2 -13
  190. package/types/bridge/subdomain-content.d.ts +0 -1
  191. package/types/bridge/template-preview.d.ts +10 -0
  192. package/types/bridge/template-subdomain-gallery.d.ts +1 -13
  193. package/types/dashboard/card-campaign-switch.d.ts +1 -20
  194. package/types/dashboard/card-connection.d.ts +8 -0
  195. package/types/dashboard/card-order.d.ts +2 -2
  196. package/types/dashboard/card-section.d.ts +1 -9
  197. package/types/dashboard/card-tile.d.ts +9 -4
  198. package/types/dashboard/device.d.ts +12 -0
  199. package/types/dashboard/drawer.d.ts +0 -3
  200. package/types/dashboard/form-ai.d.ts +17 -0
  201. package/types/dashboard/form-filters-analytics.d.ts +14 -0
  202. package/types/dashboard/form-organization-brand.d.ts +0 -3
  203. package/types/dashboard/form-organization-campaign-agreement.d.ts +10 -53
  204. package/types/dashboard/form-organization-campaign-field-list.d.ts +36 -0
  205. package/types/dashboard/form-organization-campaign-field-number.d.ts +1 -4
  206. package/types/dashboard/form-organization-campaign-field-select.d.ts +1 -6
  207. package/types/dashboard/form-organization-campaign-field-text.d.ts +1 -5
  208. package/types/dashboard/form-organization-campaign-field-textarea.d.ts +1 -4
  209. package/types/dashboard/form-organization-campaign-integration-age.d.ts +1 -2
  210. package/types/dashboard/form-organization-campaign-integration-geocode.d.ts +0 -2
  211. package/types/dashboard/form-organization-campaign-page.d.ts +15 -9
  212. package/types/dashboard/form-organization-campaign-section.d.ts +8 -24
  213. package/types/dashboard/form-organization-campaign.d.ts +0 -3
  214. package/types/dashboard/form-organization-workflow.d.ts +4 -3
  215. package/types/dashboard/form-organization.d.ts +2 -2
  216. package/types/dashboard/form-verify-prize.d.ts +3 -30
  217. package/types/dashboard/input-combobox.d.ts +2 -0
  218. package/types/dashboard/input-date.d.ts +2 -0
  219. package/types/dashboard/input-editor.d.ts +0 -9
  220. package/types/dashboard/input-fields.d.ts +5 -8
  221. package/types/dashboard/input-file.d.ts +0 -4
  222. package/types/dashboard/input-resource.d.ts +0 -1
  223. package/types/dashboard/item-row.d.ts +25 -0
  224. package/types/dashboard/lib/item-list.d.ts +5 -10
  225. package/types/dashboard/lib/rail.d.ts +1 -0
  226. package/types/dashboard/lib/sms.d.ts +0 -7
  227. package/types/dashboard/modal.d.ts +1 -3
  228. package/types/dashboard/preview.d.ts +10 -65
  229. package/types/dashboard/recharts.d.ts +0 -3
  230. package/types/dashboard/swatch.d.ts +0 -4
  231. package/types/dashboard/template-dashboard.d.ts +2 -3
  232. package/types/input-select.d.ts +0 -2
  233. package/types/shared/button.d.ts +1 -1
  234. package/types/shared/lib/helpers.d.ts +1 -22
  235. package/types/shared/lib/video.d.ts +0 -3
  236. package/types/shared/sortable.d.ts +0 -6
  237. package/types/video.d.ts +2 -18
  238. package/dist/bridge/form-subdomain-agreement.js +0 -165
  239. package/dist/bridge/form-subdomain-agreement.mjs +0 -132
  240. package/dist/dashboard/campaign-form.js +0 -1798
  241. package/dist/dashboard/campaign-form.mjs +0 -1769
  242. package/dist/dashboard/card-campaign-agreement.js +0 -172
  243. package/dist/dashboard/card-campaign-agreement.mjs +0 -139
  244. package/dist/dashboard/card-shortcut.js +0 -181
  245. package/dist/dashboard/card-shortcut.mjs +0 -152
  246. package/dist/dashboard/document-blocks.js +0 -305
  247. package/dist/dashboard/document-blocks.mjs +0 -270
  248. package/dist/dashboard/form-organization-campaign-advertisements.js +0 -374
  249. package/dist/dashboard/form-organization-campaign-advertisements.mjs +0 -345
  250. package/dist/dashboard/form-organization-campaign-design.js +0 -258
  251. package/dist/dashboard/form-organization-campaign-design.mjs +0 -223
  252. package/dist/dashboard/form-organization-campaign-field-item.js +0 -585
  253. package/dist/dashboard/form-organization-campaign-field-item.mjs +0 -552
  254. package/dist/dashboard/form-organization-campaign-field-skill.js +0 -359
  255. package/dist/dashboard/form-organization-campaign-field-skill.mjs +0 -330
  256. package/dist/dashboard/form-organization-campaign-footer.js +0 -178
  257. package/dist/dashboard/form-organization-campaign-footer.mjs +0 -149
  258. package/dist/dashboard/form-reposition.js +0 -396
  259. package/dist/dashboard/form-reposition.mjs +0 -359
  260. package/dist/dashboard/form-support.js +0 -189
  261. package/dist/dashboard/form-support.mjs +0 -160
  262. package/dist/dashboard/form-tests.js +0 -683
  263. package/dist/dashboard/form-tests.mjs +0 -646
  264. package/dist/dashboard/lib/ab-tests.js +0 -130
  265. package/dist/dashboard/lib/ab-tests.mjs +0 -94
  266. package/dist/dashboard/lib/focus.js +0 -93
  267. package/dist/dashboard/lib/focus.mjs +0 -69
  268. package/dist/dashboard/lib/form-page.js +0 -203
  269. package/dist/dashboard/lib/form-page.mjs +0 -155
  270. package/dist/dashboard/template-design.js +0 -564
  271. package/dist/dashboard/template-design.mjs +0 -531
  272. package/dist/dashboard/template-test-page.js +0 -436
  273. package/dist/dashboard/template-test-page.mjs +0 -407
  274. package/dist/dashboard/template-tests.js +0 -141
  275. package/dist/dashboard/template-tests.mjs +0 -112
  276. package/dist/dashboard/template-variant.js +0 -185
  277. package/dist/dashboard/template-variant.mjs +0 -156
  278. package/dist/icons/arrow-down-long.js +0 -47
  279. package/dist/icons/arrow-down-long.mjs +0 -28
  280. package/dist/icons/arrows-pointing-out.js +0 -46
  281. package/dist/icons/arrows-pointing-out.mjs +0 -27
  282. package/dist/icons/beaker.js +0 -46
  283. package/dist/icons/beaker.mjs +0 -27
  284. package/dist/icons/identification.js +0 -46
  285. package/dist/icons/identification.mjs +0 -27
  286. package/dist/icons/lifebuoy.js +0 -46
  287. package/dist/icons/lifebuoy.mjs +0 -27
  288. package/dist/icons/rectangle-group.js +0 -46
  289. package/dist/icons/rectangle-group.mjs +0 -27
  290. package/dist/icons/rectangle-stack.js +0 -46
  291. package/dist/icons/rectangle-stack.mjs +0 -27
  292. package/dist/icons/shopping-bag.js +0 -46
  293. package/dist/icons/shopping-bag.mjs +0 -27
  294. package/dist/icons/swatch.js +0 -46
  295. package/dist/icons/swatch.mjs +0 -27
  296. package/dist/icons/window.js +0 -46
  297. package/dist/icons/window.mjs +0 -27
  298. package/dist/icons/zoom-in.js +0 -46
  299. package/dist/icons/zoom-in.mjs +0 -27
  300. package/dist/input-answer.js +0 -60
  301. package/dist/input-answer.mjs +0 -27
  302. package/dist/shared/document-pieces.js +0 -295
  303. package/dist/shared/document-pieces.mjs +0 -260
  304. package/types/bridge/form-subdomain-agreement.d.ts +0 -27
  305. package/types/dashboard/campaign-form.d.ts +0 -42
  306. package/types/dashboard/card-campaign-agreement.d.ts +0 -26
  307. package/types/dashboard/card-shortcut.d.ts +0 -38
  308. package/types/dashboard/document-blocks.d.ts +0 -14
  309. package/types/dashboard/form-organization-campaign-advertisements.d.ts +0 -15
  310. package/types/dashboard/form-organization-campaign-design.d.ts +0 -46
  311. package/types/dashboard/form-organization-campaign-field-item.d.ts +0 -36
  312. package/types/dashboard/form-organization-campaign-field-skill.d.ts +0 -36
  313. package/types/dashboard/form-organization-campaign-footer.d.ts +0 -23
  314. package/types/dashboard/form-reposition.d.ts +0 -29
  315. package/types/dashboard/form-support.d.ts +0 -14
  316. package/types/dashboard/form-tests.d.ts +0 -78
  317. package/types/dashboard/lib/ab-tests.d.ts +0 -50
  318. package/types/dashboard/lib/escape.d.ts +0 -4
  319. package/types/dashboard/lib/focus.d.ts +0 -16
  320. package/types/dashboard/lib/form-page.d.ts +0 -25
  321. package/types/dashboard/template-design.d.ts +0 -30
  322. package/types/dashboard/template-test-page.d.ts +0 -69
  323. package/types/dashboard/template-tests.d.ts +0 -30
  324. package/types/dashboard/template-variant.d.ts +0 -18
  325. package/types/icons/arrow-down-long.d.ts +0 -5
  326. package/types/icons/arrows-pointing-out.d.ts +0 -5
  327. package/types/icons/beaker.d.ts +0 -5
  328. package/types/icons/identification.d.ts +0 -5
  329. package/types/icons/lifebuoy.d.ts +0 -5
  330. package/types/icons/rectangle-group.d.ts +0 -5
  331. package/types/icons/rectangle-stack.d.ts +0 -5
  332. package/types/icons/shopping-bag.d.ts +0 -5
  333. package/types/icons/swatch.d.ts +0 -5
  334. package/types/icons/window.d.ts +0 -5
  335. package/types/icons/zoom-in.d.ts +0 -5
  336. package/types/input-answer.d.ts +0 -15
  337. package/types/shared/document-pieces.d.ts +0 -34
  338. package/types/shared/lib/motion.d.ts +0 -2
@@ -0,0 +1,63 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import CardAsset from "../shared/card-asset.mjs";
3
+ const ItemRow = ({
4
+ description,
5
+ handle,
6
+ image,
7
+ name,
8
+ summary
9
+ }) => /* @__PURE__ */ jsxs(
10
+ "div",
11
+ {
12
+ ...{
13
+ className: "flex items-center min-w-0 flex-1 gap-3"
14
+ },
15
+ children: [
16
+ handle,
17
+ /* @__PURE__ */ jsx(
18
+ CardAsset,
19
+ {
20
+ ...{
21
+ asset: image || null,
22
+ className: "w-10 h-10",
23
+ classNameContainer: "bg-gray-light border border-gray",
24
+ sizes: "40px",
25
+ title: description || (image == null ? void 0 : image.filename) || name
26
+ }
27
+ }
28
+ ),
29
+ /* @__PURE__ */ jsxs(
30
+ "span",
31
+ {
32
+ ...{
33
+ className: "flex flex-col min-w-0"
34
+ },
35
+ children: [
36
+ /* @__PURE__ */ jsx(
37
+ "span",
38
+ {
39
+ ...{
40
+ className: "truncate"
41
+ },
42
+ children: name
43
+ }
44
+ ),
45
+ summary && /* @__PURE__ */ jsx(
46
+ "span",
47
+ {
48
+ ...{
49
+ className: "text-sm text-gray-dark truncate"
50
+ },
51
+ children: summary
52
+ }
53
+ )
54
+ ]
55
+ }
56
+ )
57
+ ]
58
+ }
59
+ );
60
+ var item_row_default = ItemRow;
61
+ export {
62
+ item_row_default as default
63
+ };
@@ -45,7 +45,7 @@ const featureLabels = Object.values(featureCatalog).reduce(
45
45
  {}
46
46
  );
47
47
  const featureLabel = (key) => featureLabels[key] || key;
48
- const grantableFeatures = Object.keys(((_a = import_plans.free.features) == null ? void 0 : _a.denied) || {}).filter((key) => key !== "organization:support").map((key) => ({
48
+ const grantableFeatures = Object.keys(((_a = import_plans.free.features) == null ? void 0 : _a.denied) || {}).map((key) => ({
49
49
  key,
50
50
  label: featureLabel(key)
51
51
  }));
@@ -11,7 +11,7 @@ const featureLabels = Object.values(featureCatalog).reduce(
11
11
  {}
12
12
  );
13
13
  const featureLabel = (key) => featureLabels[key] || key;
14
- const grantableFeatures = Object.keys(((_a = free.features) == null ? void 0 : _a.denied) || {}).filter((key) => key !== "organization:support").map((key) => ({
14
+ const grantableFeatures = Object.keys(((_a = free.features) == null ? void 0 : _a.denied) || {}).map((key) => ({
15
15
  key,
16
16
  label: featureLabel(key)
17
17
  }));
@@ -17,9 +17,23 @@ var __copyProps = (to, from, except, desc) => {
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
18
  var item_list_exports = {};
19
19
  __export(item_list_exports, {
20
+ itemSummary: () => itemSummary,
20
21
  itemsBody: () => itemsBody
21
22
  });
22
23
  module.exports = __toCommonJS(item_list_exports);
24
+ var import_drawbridge_utils = require("@drawbridge/drawbridge-utils");
25
+ var import_fields_validate = require("@drawbridge/drawbridge-utils/fields-validate");
26
+ const itemSummary = (item = {}, prices, currency) => {
27
+ var _a;
28
+ return [
29
+ prices && typeof (item == null ? void 0 : item.price) === "number" && (0, import_drawbridge_utils.formatCurrency)({
30
+ code: currency.toUpperCase(),
31
+ display: "parts",
32
+ value: item.price
33
+ }),
34
+ ((_a = item == null ? void 0 : item.attributes) == null ? void 0 : _a.max) && import_fields_validate.errors.limit(item.attributes.max)
35
+ ].filter(Boolean).join(" \xB7 ");
36
+ };
23
37
  const itemsBody = (items = []) => items.map((item) => {
24
38
  var _a, _b;
25
39
  return {
@@ -38,5 +52,6 @@ const itemsBody = (items = []) => items.map((item) => {
38
52
  });
39
53
  // Annotate the CommonJS export names for ESM import in node:
40
54
  0 && (module.exports = {
55
+ itemSummary,
41
56
  itemsBody
42
57
  });
@@ -1,3 +1,16 @@
1
+ import { formatCurrency } from "@drawbridge/drawbridge-utils";
2
+ import { errors } from "@drawbridge/drawbridge-utils/fields-validate";
3
+ const itemSummary = (item = {}, prices, currency) => {
4
+ var _a;
5
+ return [
6
+ prices && typeof (item == null ? void 0 : item.price) === "number" && formatCurrency({
7
+ code: currency.toUpperCase(),
8
+ display: "parts",
9
+ value: item.price
10
+ }),
11
+ ((_a = item == null ? void 0 : item.attributes) == null ? void 0 : _a.max) && errors.limit(item.attributes.max)
12
+ ].filter(Boolean).join(" \xB7 ");
13
+ };
1
14
  const itemsBody = (items = []) => items.map((item) => {
2
15
  var _a, _b;
3
16
  return {
@@ -15,5 +28,6 @@ const itemsBody = (items = []) => items.map((item) => {
15
28
  };
16
29
  });
17
30
  export {
31
+ itemSummary,
18
32
  itemsBody
19
33
  };
@@ -22,7 +22,7 @@ __export(rail_exports, {
22
22
  railItems: () => railItems,
23
23
  railOnScreen: () => railOnScreen,
24
24
  railOverlap: () => railOverlap,
25
- railSupport: () => railSupport,
25
+ railTabTarget: () => railTabTarget,
26
26
  railView: () => railView
27
27
  });
28
28
  module.exports = __toCommonJS(rail_exports);
@@ -35,21 +35,16 @@ const railItems = ({
35
35
  params = {},
36
36
  path = ""
37
37
  }) => {
38
- var _a, _b, _c, _d, _e, _f, _g;
38
+ var _a, _b, _c, _d, _e, _f;
39
39
  if (path.startsWith("/admin")) return [];
40
40
  if (!params.organization) return ((_a = account == null ? void 0 : account.tasks) == null ? void 0 : _a.items) || [];
41
- if (!params.campaign) return [
42
- ...params.brand ? ((_b = page == null ? void 0 : page.tasks) == null ? void 0 : _b.items) || [] : [],
43
- ...((_c = organization == null ? void 0 : organization.tasks) == null ? void 0 : _c.items) || []
44
- ];
45
- const list = ((_d = organization == null ? void 0 : organization.tasks) == null ? void 0 : _d.list) || {};
41
+ if (!params.campaign) return ((_b = organization == null ? void 0 : organization.tasks) == null ? void 0 : _b.items) || [];
42
+ const list = ((_c = organization == null ? void 0 : organization.tasks) == null ? void 0 : _c.list) || {};
46
43
  const others = Object.keys(list).filter((key) => !["billing", "campaigns"].includes(key));
47
44
  return [
48
- // The page's own notices: on its builder, or on Design the main page's
49
- // ( useRailPage, template-rail.js ).
50
- ...params.page || /\/design$/.test(path) ? ((_e = page == null ? void 0 : page.tasks) == null ? void 0 : _e.items) || [] : [],
51
- ...required((_f = list.billing) == null ? void 0 : _f.items),
52
- ...((_g = campaign == null ? void 0 : campaign.tasks) == null ? void 0 : _g.items) || [],
45
+ ...params.page ? ((_d = page == null ? void 0 : page.tasks) == null ? void 0 : _d.items) || [] : [],
46
+ ...required((_e = list.billing) == null ? void 0 : _e.items),
47
+ ...((_f = campaign == null ? void 0 : campaign.tasks) == null ? void 0 : _f.items) || [],
53
48
  ...others.flatMap((key) => {
54
49
  var _a2;
55
50
  return required((_a2 = list[key]) == null ? void 0 : _a2.items);
@@ -57,11 +52,17 @@ const railItems = ({
57
52
  ];
58
53
  };
59
54
  const railCount = (items = []) => required(items).length;
60
- const railFirst = (items = []) => required(items)[0];
61
- const railView = ({ guide, panel, support }) => panel === "guide" && !guide || panel === "support" && !support ? "next" : panel || null;
62
- const railSupport = ({ organization, params = {}, path = "" }) => Boolean(params.organization && (organization == null ? void 0 : organization.support) === true && !path.startsWith("/admin"));
55
+ const railFirst = (items = []) => required(items)[0] || items[0];
56
+ const railView = ({ guide, panel }) => panel === "guide" && !guide ? "next" : panel || null;
63
57
  const railOverlap = (a, b) => a.left < b.right && b.left < a.right && a.top < b.bottom && b.top < a.bottom;
64
58
  const railOnScreen = (rect, { height, width }) => rect.bottom > 0 && rect.right > 0 && rect.top < height && rect.left < width;
59
+ const railTabTarget = ({ active, items, shift }) => {
60
+ if (items.length === 0) return null;
61
+ const first = items[0];
62
+ const last = items[items.length - 1];
63
+ if (shift) return active === first || !items.includes(active) ? last : null;
64
+ return active === last ? first : null;
65
+ };
65
66
  // Annotate the CommonJS export names for ESM import in node:
66
67
  0 && (module.exports = {
67
68
  railCount,
@@ -69,6 +70,6 @@ const railOnScreen = (rect, { height, width }) => rect.bottom > 0 && rect.right
69
70
  railItems,
70
71
  railOnScreen,
71
72
  railOverlap,
72
- railSupport,
73
+ railTabTarget,
73
74
  railView
74
75
  });
@@ -7,21 +7,16 @@ const railItems = ({
7
7
  params = {},
8
8
  path = ""
9
9
  }) => {
10
- var _a, _b, _c, _d, _e, _f, _g;
10
+ var _a, _b, _c, _d, _e, _f;
11
11
  if (path.startsWith("/admin")) return [];
12
12
  if (!params.organization) return ((_a = account == null ? void 0 : account.tasks) == null ? void 0 : _a.items) || [];
13
- if (!params.campaign) return [
14
- ...params.brand ? ((_b = page == null ? void 0 : page.tasks) == null ? void 0 : _b.items) || [] : [],
15
- ...((_c = organization == null ? void 0 : organization.tasks) == null ? void 0 : _c.items) || []
16
- ];
17
- const list = ((_d = organization == null ? void 0 : organization.tasks) == null ? void 0 : _d.list) || {};
13
+ if (!params.campaign) return ((_b = organization == null ? void 0 : organization.tasks) == null ? void 0 : _b.items) || [];
14
+ const list = ((_c = organization == null ? void 0 : organization.tasks) == null ? void 0 : _c.list) || {};
18
15
  const others = Object.keys(list).filter((key) => !["billing", "campaigns"].includes(key));
19
16
  return [
20
- // The page's own notices: on its builder, or on Design the main page's
21
- // ( useRailPage, template-rail.js ).
22
- ...params.page || /\/design$/.test(path) ? ((_e = page == null ? void 0 : page.tasks) == null ? void 0 : _e.items) || [] : [],
23
- ...required((_f = list.billing) == null ? void 0 : _f.items),
24
- ...((_g = campaign == null ? void 0 : campaign.tasks) == null ? void 0 : _g.items) || [],
17
+ ...params.page ? ((_d = page == null ? void 0 : page.tasks) == null ? void 0 : _d.items) || [] : [],
18
+ ...required((_e = list.billing) == null ? void 0 : _e.items),
19
+ ...((_f = campaign == null ? void 0 : campaign.tasks) == null ? void 0 : _f.items) || [],
25
20
  ...others.flatMap((key) => {
26
21
  var _a2;
27
22
  return required((_a2 = list[key]) == null ? void 0 : _a2.items);
@@ -29,17 +24,23 @@ const railItems = ({
29
24
  ];
30
25
  };
31
26
  const railCount = (items = []) => required(items).length;
32
- const railFirst = (items = []) => required(items)[0];
33
- const railView = ({ guide, panel, support }) => panel === "guide" && !guide || panel === "support" && !support ? "next" : panel || null;
34
- const railSupport = ({ organization, params = {}, path = "" }) => Boolean(params.organization && (organization == null ? void 0 : organization.support) === true && !path.startsWith("/admin"));
27
+ const railFirst = (items = []) => required(items)[0] || items[0];
28
+ const railView = ({ guide, panel }) => panel === "guide" && !guide ? "next" : panel || null;
35
29
  const railOverlap = (a, b) => a.left < b.right && b.left < a.right && a.top < b.bottom && b.top < a.bottom;
36
30
  const railOnScreen = (rect, { height, width }) => rect.bottom > 0 && rect.right > 0 && rect.top < height && rect.left < width;
31
+ const railTabTarget = ({ active, items, shift }) => {
32
+ if (items.length === 0) return null;
33
+ const first = items[0];
34
+ const last = items[items.length - 1];
35
+ if (shift) return active === first || !items.includes(active) ? last : null;
36
+ return active === last ? first : null;
37
+ };
37
38
  export {
38
39
  railCount,
39
40
  railFirst,
40
41
  railItems,
41
42
  railOnScreen,
42
43
  railOverlap,
43
- railSupport,
44
+ railTabTarget,
44
45
  railView
45
46
  };
@@ -18,19 +18,13 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
18
18
  var sms_exports = {};
19
19
  __export(sms_exports, {
20
20
  smsBrandLine: () => smsBrandLine,
21
- smsNumberActive: () => smsNumberActive,
22
- textsOn: () => textsOn
21
+ smsNumberActive: () => smsNumberActive
23
22
  });
24
23
  module.exports = __toCommonJS(sms_exports);
25
- const textsOn = (organization) => {
26
- var _a;
27
- return ((_a = organization == null ? void 0 : organization.identityDefaults) == null ? void 0 : _a.sms) !== false;
28
- };
29
24
  const smsNumberActive = (organization) => ((organization == null ? void 0 : organization.identityItems) || []).some((row) => (row == null ? void 0 : row.type) === "sms" && (row == null ? void 0 : row.status) === "verified");
30
25
  const smsBrandLine = (brand, message) => brand && !String(message || "").trim().toLowerCase().startsWith(String(brand).trim().toLowerCase()) ? brand : null;
31
26
  // Annotate the CommonJS export names for ESM import in node:
32
27
  0 && (module.exports = {
33
28
  smsBrandLine,
34
- smsNumberActive,
35
- textsOn
29
+ smsNumberActive
36
30
  });
@@ -1,11 +1,6 @@
1
- const textsOn = (organization) => {
2
- var _a;
3
- return ((_a = organization == null ? void 0 : organization.identityDefaults) == null ? void 0 : _a.sms) !== false;
4
- };
5
1
  const smsNumberActive = (organization) => ((organization == null ? void 0 : organization.identityItems) || []).some((row) => (row == null ? void 0 : row.type) === "sms" && (row == null ? void 0 : row.status) === "verified");
6
2
  const smsBrandLine = (brand, message) => brand && !String(message || "").trim().toLowerCase().startsWith(String(brand).trim().toLowerCase()) ? brand : null;
7
3
  export {
8
4
  smsBrandLine,
9
- smsNumberActive,
10
- textsOn
5
+ smsNumberActive
11
6
  };
@@ -76,8 +76,6 @@ const ListResource = ({
76
76
  import_input_text.default,
77
77
  {
78
78
  ...{
79
- // The box's name for a reader: "Search brands".
80
- "aria-label": "Search " + pluralize(model),
81
79
  onChange: (val) => setSearch(val),
82
80
  placeholder: "Search...",
83
81
  type: "text",
@@ -44,8 +44,6 @@ const ListResource = ({
44
44
  InputText,
45
45
  {
46
46
  ...{
47
- // The box's name for a reader: "Search brands".
48
- "aria-label": "Search " + pluralize(model),
49
47
  onChange: (val) => setSearch(val),
50
48
  placeholder: "Search...",
51
49
  type: "text",
@@ -34,7 +34,6 @@ __export(menu_exports, {
34
34
  MenuApp: () => MenuApp,
35
35
  MenuCampaign: () => MenuCampaign,
36
36
  MenuOrganization: () => MenuOrganization,
37
- MenuRail: () => MenuRail,
38
37
  releaseId: () => releaseId
39
38
  });
40
39
  module.exports = __toCommonJS(menu_exports);
@@ -69,25 +68,18 @@ var import_queue = __toESM(require("../icons/queue"));
69
68
  var import_share = __toESM(require("../icons/share"));
70
69
  var import_star = __toESM(require("../icons/star"));
71
70
  var import_users = __toESM(require("../icons/users"));
72
- var import_book_open = __toESM(require("../icons/book-open"));
73
- var import_lifebuoy = __toESM(require("../icons/lifebuoy"));
74
- var import_task = __toESM(require("../icons/task"));
75
71
  var import_menu = require("./lib/menu");
76
72
  const icons = {
77
- // The rail's three, as the phone menu's rows (MenuRail).
78
- "book-open": import_book_open.default,
79
73
  chart: import_chart.default,
80
74
  document: import_document.default,
81
75
  flag: import_flag.default,
82
76
  home: import_home.default,
83
- lifebuoy: import_lifebuoy.default,
84
77
  link: import_link2.default,
85
78
  // Connections (Darren, Dulce Local walk, 2026-10-29).
86
79
  "puzzle-piece": import_puzzle_piece.default,
87
80
  queue: import_queue.default,
88
81
  share: import_share.default,
89
82
  star: import_star.default,
90
- task: import_task.default,
91
83
  users: import_users.default
92
84
  };
93
85
  const Reveal = ({
@@ -700,51 +692,12 @@ const MenuRelease = ({
700
692
  ]
701
693
  }
702
694
  );
703
- const MenuRail = ({
704
- onClick = () => {
705
- },
706
- rows = []
707
- }) => rows.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
708
- "nav",
709
- {
710
- ...{
711
- // Named for what it holds, not "Rail": the rail itself is the other
712
- // navigation of that name, beside the page from md.
713
- "aria-label": "Next steps and help",
714
- className: "relative z-[3] px-6 py-3 space-y-1 border-t border-gray-dark md:hidden"
715
- },
716
- children: rows.map(({ count, icon, onClick: open, title }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
717
- MenuItem,
718
- {
719
- ...{
720
- ...count > 0 && {
721
- badge: {
722
- text: count,
723
- type: "warning"
724
- }
725
- },
726
- element: "button",
727
- icon,
728
- onClick: () => {
729
- open();
730
- onClick();
731
- },
732
- title
733
- }
734
- },
735
- title
736
- ))
737
- }
738
- );
739
695
  const MenuAccountDropdown = ({
740
696
  account,
741
697
  balance,
742
698
  actions,
743
699
  modal,
744
- onClick,
745
- // @story support/availability
746
- // The organization has the rail's Support, which replaces the website's.
747
- support = false
700
+ onClick
748
701
  }) => {
749
702
  var _a, _b, _c, _d, _e;
750
703
  const app = (0, import_react_query.useQuery)({
@@ -766,7 +719,7 @@ const MenuAccountDropdown = ({
766
719
  title: "Account"
767
720
  }
768
721
  ];
769
- if (process.env.NEXT_PUBLIC_SUPPORT_URI && !support) {
722
+ if (process.env.NEXT_PUBLIC_SUPPORT_URI) {
770
723
  items.push({
771
724
  "data-guide": "menu-item-account-support",
772
725
  element: import_link.default,
@@ -891,15 +844,14 @@ const MenuAccountDropdown = ({
891
844
  }
892
845
  ),
893
846
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
894
- import_react2.Disclosure,
847
+ "div",
895
848
  {
896
849
  ...{
897
- as: "div",
898
850
  // No space-y: the always-drawn panel would leave its gap under a closed menu;
899
851
  // the gap rides inside the panel's reveal.
900
852
  className: "flex flex-col justify-between p-6" + (banded ? "" : " border-t border-gray-dark")
901
853
  },
902
- children: ({ open }) => {
854
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Disclosure, { children: ({ open }) => {
903
855
  var _a2, _b2;
904
856
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
905
857
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -1010,7 +962,7 @@ const MenuAccountDropdown = ({
1010
962
  }
1011
963
  )
1012
964
  ] });
1013
- }
965
+ } })
1014
966
  }
1015
967
  )
1016
968
  ] });
@@ -1023,6 +975,5 @@ const MenuAccountDropdown = ({
1023
975
  MenuApp,
1024
976
  MenuCampaign,
1025
977
  MenuOrganization,
1026
- MenuRail,
1027
978
  releaseId
1028
979
  });
@@ -30,25 +30,18 @@ import Queue from "../icons/queue.mjs";
30
30
  import Share from "../icons/share.mjs";
31
31
  import Star from "../icons/star.mjs";
32
32
  import Users from "../icons/users.mjs";
33
- import BookOpen from "../icons/book-open.mjs";
34
- import Lifebuoy from "../icons/lifebuoy.mjs";
35
- import Task from "../icons/task.mjs";
36
33
  import { menuRow } from "./lib/menu.mjs";
37
34
  const icons = {
38
- // The rail's three, as the phone menu's rows (MenuRail).
39
- "book-open": BookOpen,
40
35
  chart: Chart,
41
36
  document: Document,
42
37
  flag: Flag,
43
38
  home: Home,
44
- lifebuoy: Lifebuoy,
45
39
  link: LinkIcon,
46
40
  // Connections (Darren, Dulce Local walk, 2026-10-29).
47
41
  "puzzle-piece": PuzzlePiece,
48
42
  queue: Queue,
49
43
  share: Share,
50
44
  star: Star,
51
- task: Task,
52
45
  users: Users
53
46
  };
54
47
  const Reveal = ({
@@ -661,51 +654,12 @@ const MenuRelease = ({
661
654
  ]
662
655
  }
663
656
  );
664
- const MenuRail = ({
665
- onClick = () => {
666
- },
667
- rows = []
668
- }) => rows.length > 0 && /* @__PURE__ */ jsx(
669
- "nav",
670
- {
671
- ...{
672
- // Named for what it holds, not "Rail": the rail itself is the other
673
- // navigation of that name, beside the page from md.
674
- "aria-label": "Next steps and help",
675
- className: "relative z-[3] px-6 py-3 space-y-1 border-t border-gray-dark md:hidden"
676
- },
677
- children: rows.map(({ count, icon, onClick: open, title }) => /* @__PURE__ */ jsx(
678
- MenuItem,
679
- {
680
- ...{
681
- ...count > 0 && {
682
- badge: {
683
- text: count,
684
- type: "warning"
685
- }
686
- },
687
- element: "button",
688
- icon,
689
- onClick: () => {
690
- open();
691
- onClick();
692
- },
693
- title
694
- }
695
- },
696
- title
697
- ))
698
- }
699
- );
700
657
  const MenuAccountDropdown = ({
701
658
  account,
702
659
  balance,
703
660
  actions,
704
661
  modal,
705
- onClick,
706
- // @story support/availability
707
- // The organization has the rail's Support, which replaces the website's.
708
- support = false
662
+ onClick
709
663
  }) => {
710
664
  var _a, _b, _c, _d, _e;
711
665
  const app = useQuery({
@@ -727,7 +681,7 @@ const MenuAccountDropdown = ({
727
681
  title: "Account"
728
682
  }
729
683
  ];
730
- if (process.env.NEXT_PUBLIC_SUPPORT_URI && !support) {
684
+ if (process.env.NEXT_PUBLIC_SUPPORT_URI) {
731
685
  items.push({
732
686
  "data-guide": "menu-item-account-support",
733
687
  element: Link,
@@ -852,15 +806,14 @@ const MenuAccountDropdown = ({
852
806
  }
853
807
  ),
854
808
  /* @__PURE__ */ jsx(
855
- Disclosure,
809
+ "div",
856
810
  {
857
811
  ...{
858
- as: "div",
859
812
  // No space-y: the always-drawn panel would leave its gap under a closed menu;
860
813
  // the gap rides inside the panel's reveal.
861
814
  className: "flex flex-col justify-between p-6" + (banded ? "" : " border-t border-gray-dark")
862
815
  },
863
- children: ({ open }) => {
816
+ children: /* @__PURE__ */ jsx(Disclosure, { children: ({ open }) => {
864
817
  var _a2, _b2;
865
818
  return /* @__PURE__ */ jsxs(Fragment, { children: [
866
819
  /* @__PURE__ */ jsx(
@@ -971,7 +924,7 @@ const MenuAccountDropdown = ({
971
924
  }
972
925
  )
973
926
  ] });
974
- }
927
+ } })
975
928
  }
976
929
  )
977
930
  ] });
@@ -983,6 +936,5 @@ export {
983
936
  MenuApp,
984
937
  MenuCampaign,
985
938
  MenuOrganization,
986
- MenuRail,
987
939
  releaseId
988
940
  };
@@ -40,7 +40,6 @@ var import_button = __toESM(require("../shared/button"));
40
40
  var import_form = require("../shared/lib/form");
41
41
  var import_overlay = __toESM(require("../shared/overlay"));
42
42
  var import_escape = require("./lib/escape");
43
- var import_focus = require("./lib/focus");
44
43
  var import_hooks = require("./lib/hooks");
45
44
  let open = 0;
46
45
  const Modal = ({
@@ -54,25 +53,17 @@ const Modal = ({
54
53
  className = "z-50",
55
54
  message,
56
55
  onClose,
57
- title,
58
- // @story campaigns/agreement-document
59
- // 48rem in place of 28rem: an agreement's document editor ( Darren,
60
- // 2026-11-17: a wide option on the modal, never on the drawer ).
61
- wide = false
56
+ title
62
57
  }) => {
63
58
  const modal = (0, import_hooks.useModal)({
64
59
  queryClient
65
60
  });
66
61
  const close = onClose || modal.close;
67
62
  const button = (0, import_react.useRef)(null);
68
- const heading = (0, import_react.useId)();
69
- const [dialog, setDialog] = (0, import_react.useState)(null);
70
63
  (0, import_escape.useEscape)(active, button);
71
- (0, import_focus.useTrap)(Boolean(active), dialog);
72
64
  const classes = {
73
65
  body: [
74
- "relative w-full overflow-hidden rounded-2xl bg-white text-left align-middle shadow-xl outline-none",
75
- wide ? "max-w-3xl" : "max-w-md"
66
+ "relative w-full max-w-md overflow-hidden rounded-2xl bg-white text-left align-middle shadow-xl"
76
67
  ],
77
68
  container: [
78
69
  className,
@@ -142,12 +133,7 @@ const Modal = ({
142
133
  "div",
143
134
  {
144
135
  ...{
145
- ...title && { "aria-labelledby": heading },
146
- "aria-modal": true,
147
- className: classes.body.join(" "),
148
- ref: setDialog,
149
- role: "dialog",
150
- tabIndex: -1
136
+ className: classes.body.join(" ")
151
137
  },
152
138
  children: [
153
139
  title && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
@@ -161,8 +147,7 @@ const Modal = ({
161
147
  "h3",
162
148
  {
163
149
  ...{
164
- className: "text-lg",
165
- id: heading
150
+ className: "text-lg"
166
151
  },
167
152
  children: title
168
153
  }