@wordpress/ui 0.5.1-next.ba3aee3a2.0 → 0.6.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.
Files changed (298) hide show
  1. package/CHANGELOG.md +7 -2
  2. package/build/box/box.cjs +2 -2
  3. package/build/box/box.cjs.map +2 -2
  4. package/build/button/button.cjs +22 -305
  5. package/build/button/button.cjs.map +3 -3
  6. package/build/button/types.cjs.map +1 -1
  7. package/build/form/primitives/constants.cjs +35 -0
  8. package/build/form/primitives/constants.cjs.map +7 -0
  9. package/build/form/primitives/field/description.cjs +6 -33
  10. package/build/form/primitives/field/description.cjs.map +2 -2
  11. package/build/form/primitives/field/details.cjs +6 -33
  12. package/build/form/primitives/field/details.cjs.map +2 -2
  13. package/build/form/primitives/field/label.cjs +6 -33
  14. package/build/form/primitives/field/label.cjs.map +2 -2
  15. package/build/form/primitives/field/root.cjs +6 -17
  16. package/build/form/primitives/field/root.cjs.map +2 -2
  17. package/build/form/primitives/fieldset/description.cjs +6 -33
  18. package/build/form/primitives/fieldset/description.cjs.map +2 -2
  19. package/build/form/primitives/fieldset/details.cjs +6 -33
  20. package/build/form/primitives/fieldset/details.cjs.map +2 -2
  21. package/build/form/primitives/fieldset/legend.cjs +6 -33
  22. package/build/form/primitives/fieldset/legend.cjs.map +2 -2
  23. package/build/form/primitives/fieldset/root.cjs +6 -16
  24. package/build/form/primitives/fieldset/root.cjs.map +2 -2
  25. package/build/form/primitives/index.cjs +11 -2
  26. package/build/form/primitives/index.cjs.map +2 -2
  27. package/build/form/primitives/input/index.cjs +31 -0
  28. package/build/form/primitives/input/index.cjs.map +7 -0
  29. package/build/form/primitives/input/input.cjs +82 -0
  30. package/build/form/primitives/input/input.cjs.map +7 -0
  31. package/build/form/primitives/input/types.cjs +19 -0
  32. package/build/form/primitives/input/types.cjs.map +7 -0
  33. package/build/form/primitives/input-layout/context.cjs +49 -0
  34. package/build/form/primitives/input-layout/context.cjs.map +7 -0
  35. package/build/form/primitives/input-layout/index.cjs +35 -0
  36. package/build/form/primitives/input-layout/index.cjs.map +7 -0
  37. package/build/form/primitives/input-layout/input-layout.cjs +97 -0
  38. package/build/form/primitives/input-layout/input-layout.cjs.map +7 -0
  39. package/build/form/primitives/input-layout/slot.cjs +77 -0
  40. package/build/form/primitives/input-layout/slot.cjs.map +7 -0
  41. package/build/form/primitives/input-layout/types.cjs +19 -0
  42. package/build/form/primitives/input-layout/types.cjs.map +7 -0
  43. package/build/form/primitives/select/index.cjs +40 -0
  44. package/build/form/primitives/select/index.cjs.map +7 -0
  45. package/build/form/primitives/select/item.cjs +98 -0
  46. package/build/form/primitives/select/item.cjs.map +7 -0
  47. package/build/form/primitives/select/popup.cjs +109 -0
  48. package/build/form/primitives/select/popup.cjs.map +7 -0
  49. package/build/form/primitives/select/root.cjs +35 -0
  50. package/build/form/primitives/select/root.cjs.map +7 -0
  51. package/build/form/primitives/select/trigger.cjs +116 -0
  52. package/build/form/primitives/select/trigger.cjs.map +7 -0
  53. package/build/form/primitives/select/types.cjs +19 -0
  54. package/build/form/primitives/select/types.cjs.map +7 -0
  55. package/build/index.cjs +19 -0
  56. package/build/index.cjs.map +2 -2
  57. package/build/lock-unlock.cjs +37 -0
  58. package/build/lock-unlock.cjs.map +7 -0
  59. package/build/stack/stack.cjs +6 -11
  60. package/build/stack/stack.cjs.map +2 -2
  61. package/build/tooltip/index.cjs +40 -0
  62. package/build/tooltip/index.cjs.map +7 -0
  63. package/build/tooltip/popup.cjs +100 -0
  64. package/build/tooltip/popup.cjs.map +7 -0
  65. package/build/tooltip/provider.cjs +35 -0
  66. package/build/tooltip/provider.cjs.map +7 -0
  67. package/build/tooltip/root.cjs +35 -0
  68. package/build/tooltip/root.cjs.map +7 -0
  69. package/build/tooltip/trigger.cjs +38 -0
  70. package/build/tooltip/trigger.cjs.map +7 -0
  71. package/build/tooltip/types.cjs +19 -0
  72. package/build/tooltip/types.cjs.map +7 -0
  73. package/build/utils/types.cjs.map +1 -1
  74. package/build/visually-hidden/visually-hidden.cjs +6 -19
  75. package/build/visually-hidden/visually-hidden.cjs.map +2 -2
  76. package/build-module/box/box.mjs +2 -2
  77. package/build-module/box/box.mjs.map +2 -2
  78. package/build-module/button/button.mjs +22 -305
  79. package/build-module/button/button.mjs.map +3 -3
  80. package/build-module/form/primitives/constants.mjs +10 -0
  81. package/build-module/form/primitives/constants.mjs.map +7 -0
  82. package/build-module/form/primitives/field/description.mjs +6 -33
  83. package/build-module/form/primitives/field/description.mjs.map +2 -2
  84. package/build-module/form/primitives/field/details.mjs +6 -33
  85. package/build-module/form/primitives/field/details.mjs.map +2 -2
  86. package/build-module/form/primitives/field/label.mjs +6 -33
  87. package/build-module/form/primitives/field/label.mjs.map +2 -2
  88. package/build-module/form/primitives/field/root.mjs +6 -17
  89. package/build-module/form/primitives/field/root.mjs.map +2 -2
  90. package/build-module/form/primitives/fieldset/description.mjs +6 -33
  91. package/build-module/form/primitives/fieldset/description.mjs.map +2 -2
  92. package/build-module/form/primitives/fieldset/details.mjs +6 -33
  93. package/build-module/form/primitives/fieldset/details.mjs.map +2 -2
  94. package/build-module/form/primitives/fieldset/legend.mjs +6 -33
  95. package/build-module/form/primitives/fieldset/legend.mjs.map +2 -2
  96. package/build-module/form/primitives/fieldset/root.mjs +6 -16
  97. package/build-module/form/primitives/fieldset/root.mjs.map +2 -2
  98. package/build-module/form/primitives/index.mjs +7 -1
  99. package/build-module/form/primitives/index.mjs.map +2 -2
  100. package/build-module/form/primitives/input/index.mjs +6 -0
  101. package/build-module/form/primitives/input/index.mjs.map +7 -0
  102. package/build-module/form/primitives/input/input.mjs +47 -0
  103. package/build-module/form/primitives/input/input.mjs.map +7 -0
  104. package/build-module/form/primitives/input/types.mjs +1 -0
  105. package/build-module/form/primitives/input/types.mjs.map +7 -0
  106. package/build-module/form/primitives/input-layout/context.mjs +22 -0
  107. package/build-module/form/primitives/input-layout/context.mjs.map +7 -0
  108. package/build-module/form/primitives/input-layout/index.mjs +10 -0
  109. package/build-module/form/primitives/input-layout/index.mjs.map +7 -0
  110. package/build-module/form/primitives/input-layout/input-layout.mjs +62 -0
  111. package/build-module/form/primitives/input-layout/input-layout.mjs.map +7 -0
  112. package/build-module/form/primitives/input-layout/slot.mjs +42 -0
  113. package/build-module/form/primitives/input-layout/slot.mjs.map +7 -0
  114. package/build-module/form/primitives/input-layout/types.mjs +1 -0
  115. package/build-module/form/primitives/input-layout/types.mjs.map +7 -0
  116. package/build-module/form/primitives/select/index.mjs +12 -0
  117. package/build-module/form/primitives/select/index.mjs.map +7 -0
  118. package/build-module/form/primitives/select/item.mjs +63 -0
  119. package/build-module/form/primitives/select/item.mjs.map +7 -0
  120. package/build-module/form/primitives/select/popup.mjs +76 -0
  121. package/build-module/form/primitives/select/popup.mjs.map +7 -0
  122. package/build-module/form/primitives/select/root.mjs +10 -0
  123. package/build-module/form/primitives/select/root.mjs.map +7 -0
  124. package/build-module/form/primitives/select/trigger.mjs +81 -0
  125. package/build-module/form/primitives/select/trigger.mjs.map +7 -0
  126. package/build-module/form/primitives/select/types.mjs +1 -0
  127. package/build-module/form/primitives/select/types.mjs.map +7 -0
  128. package/build-module/index.mjs +4 -0
  129. package/build-module/index.mjs.map +2 -2
  130. package/build-module/lock-unlock.mjs +11 -0
  131. package/build-module/lock-unlock.mjs.map +7 -0
  132. package/build-module/stack/stack.mjs +6 -11
  133. package/build-module/stack/stack.mjs.map +2 -2
  134. package/build-module/tooltip/index.mjs +12 -0
  135. package/build-module/tooltip/index.mjs.map +7 -0
  136. package/build-module/tooltip/popup.mjs +67 -0
  137. package/build-module/tooltip/popup.mjs.map +7 -0
  138. package/build-module/tooltip/provider.mjs +10 -0
  139. package/build-module/tooltip/provider.mjs.map +7 -0
  140. package/build-module/tooltip/root.mjs +10 -0
  141. package/build-module/tooltip/root.mjs.map +7 -0
  142. package/build-module/tooltip/trigger.mjs +13 -0
  143. package/build-module/tooltip/trigger.mjs.map +7 -0
  144. package/build-module/tooltip/types.mjs +1 -0
  145. package/build-module/tooltip/types.mjs.map +7 -0
  146. package/build-module/visually-hidden/visually-hidden.mjs +6 -19
  147. package/build-module/visually-hidden/visually-hidden.mjs.map +2 -2
  148. package/build-types/badge/stories/choosing-intent.story.d.ts +17 -0
  149. package/build-types/badge/stories/choosing-intent.story.d.ts.map +1 -0
  150. package/build-types/badge/stories/index.story.d.ts +1 -1
  151. package/build-types/badge/stories/index.story.d.ts.map +1 -1
  152. package/build-types/box/stories/index.story.d.ts +1 -1
  153. package/build-types/box/stories/index.story.d.ts.map +1 -1
  154. package/build-types/button/stories/index.story.d.ts +1 -2
  155. package/build-types/button/stories/index.story.d.ts.map +1 -1
  156. package/build-types/button/types.d.ts +10 -5
  157. package/build-types/button/types.d.ts.map +1 -1
  158. package/build-types/form/primitives/constants.d.ts +9 -0
  159. package/build-types/form/primitives/constants.d.ts.map +1 -0
  160. package/build-types/form/primitives/field/control.d.ts +1 -1
  161. package/build-types/form/primitives/field/description.d.ts +1 -1
  162. package/build-types/form/primitives/field/label.d.ts +1 -1
  163. package/build-types/form/primitives/field/root.d.ts +1 -1
  164. package/build-types/form/primitives/field/stories/index.story.d.ts +1 -1
  165. package/build-types/form/primitives/field/stories/index.story.d.ts.map +1 -1
  166. package/build-types/form/primitives/fieldset/legend.d.ts +1 -1
  167. package/build-types/form/primitives/fieldset/root.d.ts +1 -1
  168. package/build-types/form/primitives/fieldset/stories/index.story.d.ts +1 -1
  169. package/build-types/form/primitives/fieldset/stories/index.story.d.ts.map +1 -1
  170. package/build-types/form/primitives/index.d.ts +3 -0
  171. package/build-types/form/primitives/index.d.ts.map +1 -1
  172. package/build-types/form/primitives/input/index.d.ts +2 -0
  173. package/build-types/form/primitives/input/index.d.ts.map +1 -0
  174. package/build-types/form/primitives/input/input.d.ts +10 -0
  175. package/build-types/form/primitives/input/input.d.ts.map +1 -0
  176. package/build-types/form/primitives/input/stories/index.story.d.ts +13 -0
  177. package/build-types/form/primitives/input/stories/index.story.d.ts.map +1 -0
  178. package/build-types/form/primitives/input/test/index.test.d.ts +2 -0
  179. package/build-types/form/primitives/input/test/index.test.d.ts.map +1 -0
  180. package/build-types/form/primitives/input/types.d.ts +27 -0
  181. package/build-types/form/primitives/input/types.d.ts.map +1 -0
  182. package/build-types/form/primitives/input-layout/context.d.ts +17 -0
  183. package/build-types/form/primitives/input-layout/context.d.ts.map +1 -0
  184. package/build-types/form/primitives/input-layout/index.d.ts +4 -0
  185. package/build-types/form/primitives/input-layout/index.d.ts.map +1 -0
  186. package/build-types/form/primitives/input-layout/input-layout.d.ts +7 -0
  187. package/build-types/form/primitives/input-layout/input-layout.d.ts.map +1 -0
  188. package/build-types/form/primitives/input-layout/slot.d.ts +6 -0
  189. package/build-types/form/primitives/input-layout/slot.d.ts.map +1 -0
  190. package/build-types/form/primitives/input-layout/stories/index.story.d.ts +24 -0
  191. package/build-types/form/primitives/input-layout/stories/index.story.d.ts.map +1 -0
  192. package/build-types/form/primitives/input-layout/test/index.test.d.ts +2 -0
  193. package/build-types/form/primitives/input-layout/test/index.test.d.ts.map +1 -0
  194. package/build-types/form/primitives/input-layout/types.d.ts +41 -0
  195. package/build-types/form/primitives/input-layout/types.d.ts.map +1 -0
  196. package/build-types/form/primitives/select/index.d.ts +5 -0
  197. package/build-types/form/primitives/select/index.d.ts.map +1 -0
  198. package/build-types/form/primitives/select/item.d.ts +7 -0
  199. package/build-types/form/primitives/select/item.d.ts.map +1 -0
  200. package/build-types/form/primitives/select/popup.d.ts +2 -0
  201. package/build-types/form/primitives/select/popup.d.ts.map +1 -0
  202. package/build-types/form/primitives/select/root.d.ts +3 -0
  203. package/build-types/form/primitives/select/root.d.ts.map +1 -0
  204. package/build-types/form/primitives/select/stories/index.story.d.ts +50 -0
  205. package/build-types/form/primitives/select/stories/index.story.d.ts.map +1 -0
  206. package/build-types/form/primitives/select/test/index.test.d.ts +2 -0
  207. package/build-types/form/primitives/select/test/index.test.d.ts.map +1 -0
  208. package/build-types/form/primitives/select/trigger.d.ts +7 -0
  209. package/build-types/form/primitives/select/trigger.d.ts.map +1 -0
  210. package/build-types/form/primitives/select/types.d.ts +42 -0
  211. package/build-types/form/primitives/select/types.d.ts.map +1 -0
  212. package/build-types/icon/stories/index.story.d.ts +1 -1
  213. package/build-types/icon/stories/index.story.d.ts.map +1 -1
  214. package/build-types/index.d.ts +1 -0
  215. package/build-types/index.d.ts.map +1 -1
  216. package/build-types/lock-unlock.d.ts +2 -0
  217. package/build-types/lock-unlock.d.ts.map +1 -0
  218. package/build-types/stack/stories/index.story.d.ts +1 -1
  219. package/build-types/stack/stories/index.story.d.ts.map +1 -1
  220. package/build-types/tooltip/index.d.ts +6 -0
  221. package/build-types/tooltip/index.d.ts.map +1 -0
  222. package/build-types/tooltip/popup.d.ts +4 -0
  223. package/build-types/tooltip/popup.d.ts.map +1 -0
  224. package/build-types/tooltip/provider.d.ts +4 -0
  225. package/build-types/tooltip/provider.d.ts.map +1 -0
  226. package/build-types/tooltip/root.d.ts +4 -0
  227. package/build-types/tooltip/root.d.ts.map +1 -0
  228. package/build-types/tooltip/stories/index.story.d.ts +23 -0
  229. package/build-types/tooltip/stories/index.story.d.ts.map +1 -0
  230. package/build-types/tooltip/test/index.test.d.ts +2 -0
  231. package/build-types/tooltip/test/index.test.d.ts.map +1 -0
  232. package/build-types/tooltip/trigger.d.ts +4 -0
  233. package/build-types/tooltip/trigger.d.ts.map +1 -0
  234. package/build-types/tooltip/types.d.ts +18 -0
  235. package/build-types/tooltip/types.d.ts.map +1 -0
  236. package/build-types/utils/types.d.ts +0 -3
  237. package/build-types/utils/types.d.ts.map +1 -1
  238. package/build-types/visually-hidden/stories/index.story.d.ts +1 -1
  239. package/build-types/visually-hidden/stories/index.story.d.ts.map +1 -1
  240. package/package.json +12 -11
  241. package/src/badge/stories/choosing-intent.mdx +29 -32
  242. package/src/badge/stories/choosing-intent.story.tsx +129 -0
  243. package/src/badge/stories/index.story.tsx +1 -3
  244. package/src/box/box.tsx +2 -2
  245. package/src/box/stories/index.story.tsx +1 -2
  246. package/src/box/test/box.test.tsx +0 -11
  247. package/src/button/button.tsx +5 -5
  248. package/src/button/stories/index.story.tsx +1 -17
  249. package/src/button/style.module.css +14 -12
  250. package/src/button/test/button.test.tsx +4 -16
  251. package/src/button/types.ts +10 -5
  252. package/src/form/primitives/constants.ts +10 -0
  253. package/src/form/primitives/field/stories/index.story.tsx +1 -1
  254. package/src/form/primitives/fieldset/stories/index.story.tsx +1 -1
  255. package/src/form/primitives/index.ts +3 -0
  256. package/src/form/primitives/input/index.ts +1 -0
  257. package/src/form/primitives/input/input.tsx +28 -0
  258. package/src/form/primitives/input/stories/index.story.tsx +40 -0
  259. package/src/form/primitives/input/style.module.css +34 -0
  260. package/src/form/primitives/input/test/index.test.tsx +13 -0
  261. package/src/form/primitives/input/types.ts +31 -0
  262. package/src/form/primitives/input-layout/context.tsx +36 -0
  263. package/src/form/primitives/input-layout/index.ts +6 -0
  264. package/src/form/primitives/input-layout/input-layout.tsx +49 -0
  265. package/src/form/primitives/input-layout/slot.tsx +39 -0
  266. package/src/form/primitives/input-layout/stories/index.story.tsx +67 -0
  267. package/src/form/primitives/input-layout/style.module.css +83 -0
  268. package/src/form/primitives/input-layout/test/index.test.tsx +23 -0
  269. package/src/form/primitives/input-layout/types.ts +44 -0
  270. package/src/form/primitives/select/index.ts +4 -0
  271. package/src/form/primitives/select/item.tsx +39 -0
  272. package/src/form/primitives/select/popup.tsx +55 -0
  273. package/src/form/primitives/select/root.tsx +6 -0
  274. package/src/form/primitives/select/stories/index.story.tsx +276 -0
  275. package/src/form/primitives/select/style.module.css +7 -0
  276. package/src/form/primitives/select/test/index.test.tsx +35 -0
  277. package/src/form/primitives/select/trigger.tsx +58 -0
  278. package/src/form/primitives/select/types.ts +52 -0
  279. package/src/icon/stories/index.story.tsx +1 -1
  280. package/src/index.ts +1 -0
  281. package/src/lock-unlock.ts +7 -0
  282. package/src/stack/stories/index.story.tsx +1 -2
  283. package/src/stories/introduction.mdx +6 -0
  284. package/src/tooltip/index.ts +6 -0
  285. package/src/tooltip/popup.tsx +64 -0
  286. package/src/tooltip/provider.tsx +8 -0
  287. package/src/tooltip/root.tsx +8 -0
  288. package/src/tooltip/stories/index.story.tsx +97 -0
  289. package/src/tooltip/style.module.css +20 -0
  290. package/src/tooltip/test/index.test.tsx +87 -0
  291. package/src/tooltip/trigger.tsx +15 -0
  292. package/src/tooltip/types.ts +26 -0
  293. package/src/utils/css/dropdown-motion.module.css +47 -0
  294. package/src/utils/css/focus.module.css +1 -1
  295. package/src/utils/css/item-popup.module.css +127 -0
  296. package/src/utils/css/select-trigger.module.css +58 -0
  297. package/src/utils/types.ts +0 -3
  298. package/src/visually-hidden/stories/index.story.tsx +1 -1
@@ -38,40 +38,13 @@ var import_field = require("@base-ui/react/field");
38
38
  var import_element = require("@wordpress/element");
39
39
 
40
40
  // packages/ui/src/utils/css/field.module.css
41
- var css = `@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;
42
-
43
- @layer wp-ui-utilities {
44
- .field-module__label__LVrYU {
45
- --wp-ui-field-label-line-height: var(--wpds-font-line-height-xs);
46
-
47
- font-family: var(--wpds-font-family-body);
48
- font-size: var(--wpds-font-size-xs);
49
- line-height: var(--wp-ui-field-label-line-height);
50
- font-weight: var(--wpds-font-weight-medium);
51
- text-transform: uppercase;
52
- color: var(--wpds-color-fg-content-neutral);
53
-
54
- &.field-module__is-plain__F8QhR {
55
- font-size: var(--wpds-font-size-md);
56
- text-transform: none;
57
- }
58
- }
59
-
60
- .field-module__description__CKN1B {
61
- margin: 0;
62
- font-family: var(--wpds-font-family-body);
63
- font-size: var(--wpds-font-size-sm);
64
- line-height: var(--wpds-font-line-height-xs);
65
- color: var(--wpds-color-fg-content-neutral-weak);
66
- }
41
+ if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='04c8f253c6']")) {
42
+ const style = document.createElement("style");
43
+ style.setAttribute("data-wp-hash", "04c8f253c6");
44
+ style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-font-line-height-xs);color:var(--wpds-color-fg-content-neutral);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-xs);font-weight:var(--wpds-font-weight-medium);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-font-size-md);text-transform:none}}._08a3750500e0233f__description{color:var(--wpds-color-fg-content-neutral-weak);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-sm);line-height:var(--wpds-font-line-height-xs);margin:0}}"));
45
+ document.head.appendChild(style);
67
46
  }
68
- `;
69
- document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css));
70
- var field_default = {
71
- "label": "field-module__label__LVrYU",
72
- "is-plain": "field-module__is-plain__F8QhR",
73
- "description": "field-module__description__CKN1B"
74
- };
47
+ var field_default = { "label": "_2d5ad850b2f90964__label", "is-plain": "_17c4214649230bea__is-plain", "description": "_08a3750500e0233f__description" };
75
48
 
76
49
  // packages/ui/src/form/primitives/field/description.tsx
77
50
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/form/primitives/field/description.tsx", "../../../../src/utils/css/field.module.css"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport { Field as _Field } from '@base-ui/react/field';\nimport { forwardRef } from '@wordpress/element';\nimport fieldStyles from '../../../utils/css/field.module.css';\nimport type { FieldDescriptionProps } from './types';\n\nexport const Description = forwardRef<\n\tHTMLParagraphElement,\n\tFieldDescriptionProps\n>( function Description( { className, ...restProps }, ref ) {\n\treturn (\n\t\t<_Field.Description\n\t\t\tref={ ref }\n\t\t\tclassName={ clsx( fieldStyles.description, className ) }\n\t\t\t{ ...restProps }\n\t\t/>\n\t);\n} );\n", "const css = `@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;\n\n@layer wp-ui-utilities {\n\t.field-module__label__LVrYU {\n\t\t--wp-ui-field-label-line-height: var(--wpds-font-line-height-xs);\n\n\t\tfont-family: var(--wpds-font-family-body);\n\t\tfont-size: var(--wpds-font-size-xs);\n\t\tline-height: var(--wp-ui-field-label-line-height);\n\t\tfont-weight: var(--wpds-font-weight-medium);\n\t\ttext-transform: uppercase;\n\t\tcolor: var(--wpds-color-fg-content-neutral);\n\n\t\t&.field-module__is-plain__F8QhR {\n\t\t\tfont-size: var(--wpds-font-size-md);\n\t\t\ttext-transform: none;\n\t\t}\n\t}\n\n\t.field-module__description__CKN1B {\n\t\tmargin: 0;\n\t\tfont-family: var(--wpds-font-family-body);\n\t\tfont-size: var(--wpds-font-size-sm);\n\t\tline-height: var(--wpds-font-line-height-xs);\n\t\tcolor: var(--wpds-color-fg-content-neutral-weak);\n\t}\n}\n`;\ndocument.head\n .appendChild(document.createElement(\"style\"))\n .appendChild(document.createTextNode(css));\nexport {css};\nexport default {\n \"label\": \"field-module__label__LVrYU\",\n \"is-plain\": \"field-module__is-plain__F8QhR\",\n \"description\": \"field-module__description__CKN1B\"\n};"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,mBAAgC;AAChC,qBAA2B;;;ACF3B,IAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA4BZ,SAAS,KACJ,YAAY,SAAS,cAAc,OAAO,CAAC,EAC3C,YAAY,SAAS,eAAe,GAAG,CAAC;AAE7C,IAAO,gBAAQ;AAAA,EACb,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,eAAe;AACjB;;;ADzBE;AALK,IAAM,kBAAc,2BAGxB,SAASA,aAAa,EAAE,WAAW,GAAG,UAAU,GAAG,KAAM;AAC3D,SACC;AAAA,IAAC,aAAAC,MAAO;AAAA,IAAP;AAAA,MACA;AAAA,MACA,eAAY,YAAAC,SAAM,cAAY,aAAa,SAAU;AAAA,MACnD,GAAG;AAAA;AAAA,EACN;AAEF,CAAE;",
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { Field as _Field } from '@base-ui/react/field';\nimport { forwardRef } from '@wordpress/element';\nimport fieldStyles from '../../../utils/css/field.module.css';\nimport type { FieldDescriptionProps } from './types';\n\nexport const Description = forwardRef<\n\tHTMLParagraphElement,\n\tFieldDescriptionProps\n>( function Description( { className, ...restProps }, ref ) {\n\treturn (\n\t\t<_Field.Description\n\t\t\tref={ ref }\n\t\t\tclassName={ clsx( fieldStyles.description, className ) }\n\t\t\t{ ...restProps }\n\t\t/>\n\t);\n} );\n", "if (typeof document !== 'undefined' && !document.head.querySelector(\"style[data-wp-hash='04c8f253c6']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"04c8f253c6\");\n\tstyle.appendChild(document.createTextNode(\"@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-font-line-height-xs);color:var(--wpds-color-fg-content-neutral);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-xs);font-weight:var(--wpds-font-weight-medium);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-font-size-md);text-transform:none}}._08a3750500e0233f__description{color:var(--wpds-color-fg-content-neutral-weak);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-sm);line-height:var(--wpds-font-line-height-xs);margin:0}}\"));\n\tdocument.head.appendChild(style);\n}\nexport default {\"label\":\"_2d5ad850b2f90964__label\",\"is-plain\":\"_17c4214649230bea__is-plain\",\"description\":\"_08a3750500e0233f__description\"};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,mBAAgC;AAChC,qBAA2B;;;ACF3B,IAAI,OAAO,aAAa,eAAe,CAAC,SAAS,KAAK,cAAc,kCAAkC,GAAG;AACxG,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,gBAAgB,YAAY;AAC/C,QAAM,YAAY,SAAS,eAAe,qtBAAqtB,CAAC;AAChwB,WAAS,KAAK,YAAY,KAAK;AAChC;AACA,IAAO,gBAAQ,EAAC,SAAQ,4BAA2B,YAAW,+BAA8B,eAAc,iCAAgC;;;ADKxI;AALK,IAAM,kBAAc,2BAGxB,SAASA,aAAa,EAAE,WAAW,GAAG,UAAU,GAAG,KAAM;AAC3D,SACC;AAAA,IAAC,aAAAC,MAAO;AAAA,IAAP;AAAA,MACA;AAAA,MACA,eAAY,YAAAC,SAAM,cAAY,aAAa,SAAU;AAAA,MACnD,GAAG;AAAA;AAAA,EACN;AAEF,CAAE;",
6
6
  "names": ["Description", "_Field", "clsx"]
7
7
  }
@@ -39,40 +39,13 @@ var import_element = require("@wordpress/element");
39
39
  var import_i18n = require("@wordpress/i18n");
40
40
 
41
41
  // packages/ui/src/utils/css/field.module.css
42
- var css = `@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;
43
-
44
- @layer wp-ui-utilities {
45
- .field-module__label__LVrYU {
46
- --wp-ui-field-label-line-height: var(--wpds-font-line-height-xs);
47
-
48
- font-family: var(--wpds-font-family-body);
49
- font-size: var(--wpds-font-size-xs);
50
- line-height: var(--wp-ui-field-label-line-height);
51
- font-weight: var(--wpds-font-weight-medium);
52
- text-transform: uppercase;
53
- color: var(--wpds-color-fg-content-neutral);
54
-
55
- &.field-module__is-plain__F8QhR {
56
- font-size: var(--wpds-font-size-md);
57
- text-transform: none;
58
- }
59
- }
60
-
61
- .field-module__description__CKN1B {
62
- margin: 0;
63
- font-family: var(--wpds-font-family-body);
64
- font-size: var(--wpds-font-size-sm);
65
- line-height: var(--wpds-font-line-height-xs);
66
- color: var(--wpds-color-fg-content-neutral-weak);
67
- }
42
+ if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='04c8f253c6']")) {
43
+ const style = document.createElement("style");
44
+ style.setAttribute("data-wp-hash", "04c8f253c6");
45
+ style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-font-line-height-xs);color:var(--wpds-color-fg-content-neutral);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-xs);font-weight:var(--wpds-font-weight-medium);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-font-size-md);text-transform:none}}._08a3750500e0233f__description{color:var(--wpds-color-fg-content-neutral-weak);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-sm);line-height:var(--wpds-font-line-height-xs);margin:0}}"));
46
+ document.head.appendChild(style);
68
47
  }
69
- `;
70
- document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css));
71
- var field_default = {
72
- "label": "field-module__label__LVrYU",
73
- "is-plain": "field-module__is-plain__F8QhR",
74
- "description": "field-module__description__CKN1B"
75
- };
48
+ var field_default = { "label": "_2d5ad850b2f90964__label", "is-plain": "_17c4214649230bea__is-plain", "description": "_08a3750500e0233f__description" };
76
49
 
77
50
  // packages/ui/src/form/primitives/field/details.tsx
78
51
  var import_visually_hidden = require("../../../visually-hidden/index.cjs");
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/form/primitives/field/details.tsx", "../../../../src/utils/css/field.module.css"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport { Field as _Field } from '@base-ui/react/field';\nimport { forwardRef } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport fieldStyles from '../../../utils/css/field.module.css';\nimport type { FieldDetailsProps } from './types';\nimport { VisuallyHidden } from '../../../visually-hidden';\n\n/**\n * A component for showing additional information about the field,\n * styled similarly to a normal `Field.Description`.\n * Unlike a normal description, it can include links and other semantic elements.\n *\n * Although this content is not associated with the field using direct semantics,\n * it is made discoverable to screen reader users via a visually hidden description,\n * alerting them to the presence of additional information below.\n *\n * If the content only includes plain text, use `Field.Description` instead,\n * so the readout is not unnecessarily verbose for screen reader users.\n */\nexport const Details = forwardRef< HTMLDivElement, FieldDetailsProps >(\n\tfunction Details( { className, ...restProps }, ref ) {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<_Field.Description render={ <VisuallyHidden /> }>\n\t\t\t\t\t{ __( 'More details follow the field.' ) }\n\t\t\t\t</_Field.Description>\n\t\t\t\t<div\n\t\t\t\t\tref={ ref }\n\t\t\t\t\tclassName={ clsx( fieldStyles.description, className ) }\n\t\t\t\t\t{ ...restProps }\n\t\t\t\t></div>\n\t\t\t</>\n\t\t);\n\t}\n);\n", "const css = `@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;\n\n@layer wp-ui-utilities {\n\t.field-module__label__LVrYU {\n\t\t--wp-ui-field-label-line-height: var(--wpds-font-line-height-xs);\n\n\t\tfont-family: var(--wpds-font-family-body);\n\t\tfont-size: var(--wpds-font-size-xs);\n\t\tline-height: var(--wp-ui-field-label-line-height);\n\t\tfont-weight: var(--wpds-font-weight-medium);\n\t\ttext-transform: uppercase;\n\t\tcolor: var(--wpds-color-fg-content-neutral);\n\n\t\t&.field-module__is-plain__F8QhR {\n\t\t\tfont-size: var(--wpds-font-size-md);\n\t\t\ttext-transform: none;\n\t\t}\n\t}\n\n\t.field-module__description__CKN1B {\n\t\tmargin: 0;\n\t\tfont-family: var(--wpds-font-family-body);\n\t\tfont-size: var(--wpds-font-size-sm);\n\t\tline-height: var(--wpds-font-line-height-xs);\n\t\tcolor: var(--wpds-color-fg-content-neutral-weak);\n\t}\n}\n`;\ndocument.head\n .appendChild(document.createElement(\"style\"))\n .appendChild(document.createTextNode(css));\nexport {css};\nexport default {\n \"label\": \"field-module__label__LVrYU\",\n \"is-plain\": \"field-module__is-plain__F8QhR\",\n \"description\": \"field-module__description__CKN1B\"\n};"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,mBAAgC;AAChC,qBAA2B;AAC3B,kBAAmB;;;ACHnB,IAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA4BZ,SAAS,KACJ,YAAY,SAAS,cAAc,OAAO,CAAC,EAC3C,YAAY,SAAS,eAAe,GAAG,CAAC;AAE7C,IAAO,gBAAQ;AAAA,EACb,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,eAAe;AACjB;;;AD9BA,6BAA+B;AAiB5B;AAHI,IAAM,cAAU;AAAA,EACtB,SAASA,SAAS,EAAE,WAAW,GAAG,UAAU,GAAG,KAAM;AACpD,WACC,4EACC;AAAA,kDAAC,aAAAC,MAAO,aAAP,EAAmB,QAAS,4CAAC,yCAAe,GAC1C,8BAAI,gCAAiC,GACxC;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACA;AAAA,UACA,eAAY,YAAAC,SAAM,cAAY,aAAa,SAAU;AAAA,UACnD,GAAG;AAAA;AAAA,MACL;AAAA,OACF;AAAA,EAEF;AACD;",
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { Field as _Field } from '@base-ui/react/field';\nimport { forwardRef } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport fieldStyles from '../../../utils/css/field.module.css';\nimport type { FieldDetailsProps } from './types';\nimport { VisuallyHidden } from '../../../visually-hidden';\n\n/**\n * A component for showing additional information about the field,\n * styled similarly to a normal `Field.Description`.\n * Unlike a normal description, it can include links and other semantic elements.\n *\n * Although this content is not associated with the field using direct semantics,\n * it is made discoverable to screen reader users via a visually hidden description,\n * alerting them to the presence of additional information below.\n *\n * If the content only includes plain text, use `Field.Description` instead,\n * so the readout is not unnecessarily verbose for screen reader users.\n */\nexport const Details = forwardRef< HTMLDivElement, FieldDetailsProps >(\n\tfunction Details( { className, ...restProps }, ref ) {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<_Field.Description render={ <VisuallyHidden /> }>\n\t\t\t\t\t{ __( 'More details follow the field.' ) }\n\t\t\t\t</_Field.Description>\n\t\t\t\t<div\n\t\t\t\t\tref={ ref }\n\t\t\t\t\tclassName={ clsx( fieldStyles.description, className ) }\n\t\t\t\t\t{ ...restProps }\n\t\t\t\t></div>\n\t\t\t</>\n\t\t);\n\t}\n);\n", "if (typeof document !== 'undefined' && !document.head.querySelector(\"style[data-wp-hash='04c8f253c6']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"04c8f253c6\");\n\tstyle.appendChild(document.createTextNode(\"@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-font-line-height-xs);color:var(--wpds-color-fg-content-neutral);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-xs);font-weight:var(--wpds-font-weight-medium);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-font-size-md);text-transform:none}}._08a3750500e0233f__description{color:var(--wpds-color-fg-content-neutral-weak);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-sm);line-height:var(--wpds-font-line-height-xs);margin:0}}\"));\n\tdocument.head.appendChild(style);\n}\nexport default {\"label\":\"_2d5ad850b2f90964__label\",\"is-plain\":\"_17c4214649230bea__is-plain\",\"description\":\"_08a3750500e0233f__description\"};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,mBAAgC;AAChC,qBAA2B;AAC3B,kBAAmB;;;ACHnB,IAAI,OAAO,aAAa,eAAe,CAAC,SAAS,KAAK,cAAc,kCAAkC,GAAG;AACxG,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,gBAAgB,YAAY;AAC/C,QAAM,YAAY,SAAS,eAAe,qtBAAqtB,CAAC;AAChwB,WAAS,KAAK,YAAY,KAAK;AAChC;AACA,IAAO,gBAAQ,EAAC,SAAQ,4BAA2B,YAAW,+BAA8B,eAAc,iCAAgC;;;ADA1I,6BAA+B;AAiB5B;AAHI,IAAM,cAAU;AAAA,EACtB,SAASA,SAAS,EAAE,WAAW,GAAG,UAAU,GAAG,KAAM;AACpD,WACC,4EACC;AAAA,kDAAC,aAAAC,MAAO,aAAP,EAAmB,QAAS,4CAAC,yCAAe,GAC1C,8BAAI,gCAAiC,GACxC;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACA;AAAA,UACA,eAAY,YAAAC,SAAM,cAAY,aAAa,SAAU;AAAA,UACnD,GAAG;AAAA;AAAA,MACL;AAAA,OACF;AAAA,EAEF;AACD;",
6
6
  "names": ["Details", "_Field", "clsx"]
7
7
  }
@@ -38,40 +38,13 @@ var import_field = require("@base-ui/react/field");
38
38
  var import_element = require("@wordpress/element");
39
39
 
40
40
  // packages/ui/src/utils/css/field.module.css
41
- var css = `@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;
42
-
43
- @layer wp-ui-utilities {
44
- .field-module__label__LVrYU {
45
- --wp-ui-field-label-line-height: var(--wpds-font-line-height-xs);
46
-
47
- font-family: var(--wpds-font-family-body);
48
- font-size: var(--wpds-font-size-xs);
49
- line-height: var(--wp-ui-field-label-line-height);
50
- font-weight: var(--wpds-font-weight-medium);
51
- text-transform: uppercase;
52
- color: var(--wpds-color-fg-content-neutral);
53
-
54
- &.field-module__is-plain__F8QhR {
55
- font-size: var(--wpds-font-size-md);
56
- text-transform: none;
57
- }
58
- }
59
-
60
- .field-module__description__CKN1B {
61
- margin: 0;
62
- font-family: var(--wpds-font-family-body);
63
- font-size: var(--wpds-font-size-sm);
64
- line-height: var(--wpds-font-line-height-xs);
65
- color: var(--wpds-color-fg-content-neutral-weak);
66
- }
41
+ if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='04c8f253c6']")) {
42
+ const style = document.createElement("style");
43
+ style.setAttribute("data-wp-hash", "04c8f253c6");
44
+ style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-font-line-height-xs);color:var(--wpds-color-fg-content-neutral);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-xs);font-weight:var(--wpds-font-weight-medium);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-font-size-md);text-transform:none}}._08a3750500e0233f__description{color:var(--wpds-color-fg-content-neutral-weak);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-sm);line-height:var(--wpds-font-line-height-xs);margin:0}}"));
45
+ document.head.appendChild(style);
67
46
  }
68
- `;
69
- document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css));
70
- var field_default = {
71
- "label": "field-module__label__LVrYU",
72
- "is-plain": "field-module__is-plain__F8QhR",
73
- "description": "field-module__description__CKN1B"
74
- };
47
+ var field_default = { "label": "_2d5ad850b2f90964__label", "is-plain": "_17c4214649230bea__is-plain", "description": "_08a3750500e0233f__description" };
75
48
 
76
49
  // packages/ui/src/form/primitives/field/label.tsx
77
50
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/form/primitives/field/label.tsx", "../../../../src/utils/css/field.module.css"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport { Field as _Field } from '@base-ui/react/field';\nimport { forwardRef } from '@wordpress/element';\nimport fieldStyles from '../../../utils/css/field.module.css';\nimport type { FieldLabelProps } from './types';\n\nexport const Label = forwardRef< HTMLLabelElement, FieldLabelProps >(\n\tfunction Label( { className, variant, ...restProps }, ref ) {\n\t\treturn (\n\t\t\t<_Field.Label\n\t\t\t\tref={ ref }\n\t\t\t\tclassName={ clsx(\n\t\t\t\t\tfieldStyles.label,\n\t\t\t\t\tvariant && fieldStyles[ `is-${ variant }` ],\n\t\t\t\t\tclassName\n\t\t\t\t) }\n\t\t\t\t{ ...restProps }\n\t\t\t/>\n\t\t);\n\t}\n);\n", "const css = `@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;\n\n@layer wp-ui-utilities {\n\t.field-module__label__LVrYU {\n\t\t--wp-ui-field-label-line-height: var(--wpds-font-line-height-xs);\n\n\t\tfont-family: var(--wpds-font-family-body);\n\t\tfont-size: var(--wpds-font-size-xs);\n\t\tline-height: var(--wp-ui-field-label-line-height);\n\t\tfont-weight: var(--wpds-font-weight-medium);\n\t\ttext-transform: uppercase;\n\t\tcolor: var(--wpds-color-fg-content-neutral);\n\n\t\t&.field-module__is-plain__F8QhR {\n\t\t\tfont-size: var(--wpds-font-size-md);\n\t\t\ttext-transform: none;\n\t\t}\n\t}\n\n\t.field-module__description__CKN1B {\n\t\tmargin: 0;\n\t\tfont-family: var(--wpds-font-family-body);\n\t\tfont-size: var(--wpds-font-size-sm);\n\t\tline-height: var(--wpds-font-line-height-xs);\n\t\tcolor: var(--wpds-color-fg-content-neutral-weak);\n\t}\n}\n`;\ndocument.head\n .appendChild(document.createElement(\"style\"))\n .appendChild(document.createTextNode(css));\nexport {css};\nexport default {\n \"label\": \"field-module__label__LVrYU\",\n \"is-plain\": \"field-module__is-plain__F8QhR\",\n \"description\": \"field-module__description__CKN1B\"\n};"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,mBAAgC;AAChC,qBAA2B;;;ACF3B,IAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA4BZ,SAAS,KACJ,YAAY,SAAS,cAAc,OAAO,CAAC,EAC3C,YAAY,SAAS,eAAe,GAAG,CAAC;AAE7C,IAAO,gBAAQ;AAAA,EACb,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,eAAe;AACjB;;;AD3BG;AAHI,IAAM,YAAQ;AAAA,EACpB,SAASA,OAAO,EAAE,WAAW,SAAS,GAAG,UAAU,GAAG,KAAM;AAC3D,WACC;AAAA,MAAC,aAAAC,MAAO;AAAA,MAAP;AAAA,QACA;AAAA,QACA,eAAY,YAAAC;AAAA,UACX,cAAY;AAAA,UACZ,WAAW,cAAa,MAAO,OAAQ,EAAG;AAAA,UAC1C;AAAA,QACD;AAAA,QACE,GAAG;AAAA;AAAA,IACN;AAAA,EAEF;AACD;",
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { Field as _Field } from '@base-ui/react/field';\nimport { forwardRef } from '@wordpress/element';\nimport fieldStyles from '../../../utils/css/field.module.css';\nimport type { FieldLabelProps } from './types';\n\nexport const Label = forwardRef< HTMLLabelElement, FieldLabelProps >(\n\tfunction Label( { className, variant, ...restProps }, ref ) {\n\t\treturn (\n\t\t\t<_Field.Label\n\t\t\t\tref={ ref }\n\t\t\t\tclassName={ clsx(\n\t\t\t\t\tfieldStyles.label,\n\t\t\t\t\tvariant && fieldStyles[ `is-${ variant }` ],\n\t\t\t\t\tclassName\n\t\t\t\t) }\n\t\t\t\t{ ...restProps }\n\t\t\t/>\n\t\t);\n\t}\n);\n", "if (typeof document !== 'undefined' && !document.head.querySelector(\"style[data-wp-hash='04c8f253c6']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"04c8f253c6\");\n\tstyle.appendChild(document.createTextNode(\"@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-font-line-height-xs);color:var(--wpds-color-fg-content-neutral);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-xs);font-weight:var(--wpds-font-weight-medium);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-font-size-md);text-transform:none}}._08a3750500e0233f__description{color:var(--wpds-color-fg-content-neutral-weak);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-sm);line-height:var(--wpds-font-line-height-xs);margin:0}}\"));\n\tdocument.head.appendChild(style);\n}\nexport default {\"label\":\"_2d5ad850b2f90964__label\",\"is-plain\":\"_17c4214649230bea__is-plain\",\"description\":\"_08a3750500e0233f__description\"};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,mBAAgC;AAChC,qBAA2B;;;ACF3B,IAAI,OAAO,aAAa,eAAe,CAAC,SAAS,KAAK,cAAc,kCAAkC,GAAG;AACxG,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,gBAAgB,YAAY;AAC/C,QAAM,YAAY,SAAS,eAAe,qtBAAqtB,CAAC;AAChwB,WAAS,KAAK,YAAY,KAAK;AAChC;AACA,IAAO,gBAAQ,EAAC,SAAQ,4BAA2B,YAAW,+BAA8B,eAAc,iCAAgC;;;ADGvI;AAHI,IAAM,YAAQ;AAAA,EACpB,SAASA,OAAO,EAAE,WAAW,SAAS,GAAG,UAAU,GAAG,KAAM;AAC3D,WACC;AAAA,MAAC,aAAAC,MAAO;AAAA,MAAP;AAAA,QACA;AAAA,QACA,eAAY,YAAAC;AAAA,UACX,cAAY;AAAA,UACZ,WAAW,cAAa,MAAO,OAAQ,EAAG;AAAA,UAC1C;AAAA,QACD;AAAA,QACE,GAAG;AAAA;AAAA,IACN;AAAA,EAEF;AACD;",
6
6
  "names": ["Label", "_Field", "clsx"]
7
7
  }
@@ -38,24 +38,13 @@ var import_field = require("@base-ui/react/field");
38
38
  var import_element = require("@wordpress/element");
39
39
 
40
40
  // packages/ui/src/utils/css/resets.module.css
41
- var css = `@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;
42
-
43
- @layer wp-ui-utilities {
44
- .resets-module__box-sizing__M2zT5 {
45
- box-sizing: border-box;
46
-
47
- *,
48
- *::before,
49
- *::after {
50
- box-sizing: inherit;
51
- }
52
- }
41
+ if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='671ebfc62d']")) {
42
+ const style = document.createElement("style");
43
+ style.setAttribute("data-wp-hash", "671ebfc62d");
44
+ style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}"));
45
+ document.head.appendChild(style);
53
46
  }
54
- `;
55
- document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css));
56
- var resets_default = {
57
- "box-sizing": "resets-module__box-sizing__M2zT5"
58
- };
47
+ var resets_default = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
59
48
 
60
49
  // packages/ui/src/form/primitives/field/root.tsx
61
50
  var import_stack = require("../../../stack/index.cjs");
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/form/primitives/field/root.tsx", "../../../../src/utils/css/resets.module.css"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport { Field as _Field } from '@base-ui/react/field';\nimport { forwardRef } from '@wordpress/element';\nimport resetStyles from '../../../utils/css/resets.module.css';\nimport type { FieldRootProps } from './types';\nimport { Stack } from '../../../stack';\n\nconst DEFAULT_RENDER = ( props: React.ComponentProps< typeof Stack > ) => (\n\t<Stack { ...props } direction=\"column\" gap=\"xs\" />\n);\n\n/**\n * A low-level component that associates an accessible label and description\n * with a single form control element.\n *\n * To label a group of multiple form control elements, use the `Fieldset` component instead.\n *\n * Simply wrapping a control with this component does not guarantee\n * accessible labeling. See examples for how to associate the label in different cases.\n */\nexport const Root = forwardRef< HTMLDivElement, FieldRootProps >( function Root(\n\t{ className, render = DEFAULT_RENDER, ...restProps },\n\tref\n) {\n\treturn (\n\t\t<_Field.Root\n\t\t\tref={ ref }\n\t\t\tclassName={ clsx( resetStyles[ 'box-sizing' ], className ) }\n\t\t\trender={ render }\n\t\t\t{ ...restProps }\n\t\t/>\n\t);\n} );\n", "const css = `@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;\n\n@layer wp-ui-utilities {\n\t.resets-module__box-sizing__M2zT5 {\n\t\tbox-sizing: border-box;\n\n\t\t*,\n\t\t*::before,\n\t\t*::after {\n\t\t\tbox-sizing: inherit;\n\t\t}\n\t}\n}\n`;\ndocument.head\n .appendChild(document.createElement(\"style\"))\n .appendChild(document.createTextNode(css));\nexport {css};\nexport default {\n \"box-sizing\": \"resets-module__box-sizing__M2zT5\"\n};"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,mBAAgC;AAChC,qBAA2B;;;ACF3B,IAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcZ,SAAS,KACJ,YAAY,SAAS,cAAc,OAAO,CAAC,EAC3C,YAAY,SAAS,eAAe,GAAG,CAAC;AAE7C,IAAO,iBAAQ;AAAA,EACb,cAAc;AAChB;;;ADfA,mBAAsB;AAGrB;AADD,IAAM,iBAAiB,CAAE,UACxB,4CAAC,sBAAQ,GAAG,OAAQ,WAAU,UAAS,KAAI,MAAK;AAY1C,IAAM,WAAO,2BAA8C,SAASA,MAC1E,EAAE,WAAW,SAAS,gBAAgB,GAAG,UAAU,GACnD,KACC;AACD,SACC;AAAA,IAAC,aAAAC,MAAO;AAAA,IAAP;AAAA,MACA;AAAA,MACA,eAAY,YAAAC,SAAM,eAAa,YAAa,GAAG,SAAU;AAAA,MACzD;AAAA,MACE,GAAG;AAAA;AAAA,EACN;AAEF,CAAE;",
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { Field as _Field } from '@base-ui/react/field';\nimport { forwardRef } from '@wordpress/element';\nimport resetStyles from '../../../utils/css/resets.module.css';\nimport type { FieldRootProps } from './types';\nimport { Stack } from '../../../stack';\n\nconst DEFAULT_RENDER = ( props: React.ComponentProps< typeof Stack > ) => (\n\t<Stack { ...props } direction=\"column\" gap=\"xs\" />\n);\n\n/**\n * A low-level component that associates an accessible label and description\n * with a single form control element.\n *\n * To label a group of multiple form control elements, use the `Fieldset` component instead.\n *\n * Simply wrapping a control with this component does not guarantee\n * accessible labeling. See examples for how to associate the label in different cases.\n */\nexport const Root = forwardRef< HTMLDivElement, FieldRootProps >( function Root(\n\t{ className, render = DEFAULT_RENDER, ...restProps },\n\tref\n) {\n\treturn (\n\t\t<_Field.Root\n\t\t\tref={ ref }\n\t\t\tclassName={ clsx( resetStyles[ 'box-sizing' ], className ) }\n\t\t\trender={ render }\n\t\t\t{ ...restProps }\n\t\t/>\n\t);\n} );\n", "if (typeof document !== 'undefined' && !document.head.querySelector(\"style[data-wp-hash='671ebfc62d']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"671ebfc62d\");\n\tstyle.appendChild(document.createTextNode(\"@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}\"));\n\tdocument.head.appendChild(style);\n}\nexport default {\"box-sizing\":\"_336cd3e4e743482f__box-sizing\"};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,mBAAgC;AAChC,qBAA2B;;;ACF3B,IAAI,OAAO,aAAa,eAAe,CAAC,SAAS,KAAK,cAAc,kCAAkC,GAAG;AACxG,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,gBAAgB,YAAY;AAC/C,QAAM,YAAY,SAAS,eAAe,kMAAkM,CAAC;AAC7O,WAAS,KAAK,YAAY,KAAK;AAChC;AACA,IAAO,iBAAQ,EAAC,cAAa,gCAA+B;;;ADD5D,mBAAsB;AAGrB;AADD,IAAM,iBAAiB,CAAE,UACxB,4CAAC,sBAAQ,GAAG,OAAQ,WAAU,UAAS,KAAI,MAAK;AAY1C,IAAM,WAAO,2BAA8C,SAASA,MAC1E,EAAE,WAAW,SAAS,gBAAgB,GAAG,UAAU,GACnD,KACC;AACD,SACC;AAAA,IAAC,aAAAC,MAAO;AAAA,IAAP;AAAA,MACA;AAAA,MACA,eAAY,YAAAC,SAAM,eAAa,YAAa,GAAG,SAAU;AAAA,MACzD;AAAA,MACE,GAAG;AAAA;AAAA,EACN;AAEF,CAAE;",
6
6
  "names": ["Root", "_Field", "clsx"]
7
7
  }
@@ -38,40 +38,13 @@ var import_react = require("@base-ui/react");
38
38
  var import_element = require("@wordpress/element");
39
39
 
40
40
  // packages/ui/src/utils/css/field.module.css
41
- var css = `@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;
42
-
43
- @layer wp-ui-utilities {
44
- .field-module__label__LVrYU {
45
- --wp-ui-field-label-line-height: var(--wpds-font-line-height-xs);
46
-
47
- font-family: var(--wpds-font-family-body);
48
- font-size: var(--wpds-font-size-xs);
49
- line-height: var(--wp-ui-field-label-line-height);
50
- font-weight: var(--wpds-font-weight-medium);
51
- text-transform: uppercase;
52
- color: var(--wpds-color-fg-content-neutral);
53
-
54
- &.field-module__is-plain__F8QhR {
55
- font-size: var(--wpds-font-size-md);
56
- text-transform: none;
57
- }
58
- }
59
-
60
- .field-module__description__CKN1B {
61
- margin: 0;
62
- font-family: var(--wpds-font-family-body);
63
- font-size: var(--wpds-font-size-sm);
64
- line-height: var(--wpds-font-line-height-xs);
65
- color: var(--wpds-color-fg-content-neutral-weak);
66
- }
41
+ if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='04c8f253c6']")) {
42
+ const style = document.createElement("style");
43
+ style.setAttribute("data-wp-hash", "04c8f253c6");
44
+ style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-font-line-height-xs);color:var(--wpds-color-fg-content-neutral);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-xs);font-weight:var(--wpds-font-weight-medium);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-font-size-md);text-transform:none}}._08a3750500e0233f__description{color:var(--wpds-color-fg-content-neutral-weak);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-sm);line-height:var(--wpds-font-line-height-xs);margin:0}}"));
45
+ document.head.appendChild(style);
67
46
  }
68
- `;
69
- document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css));
70
- var field_default = {
71
- "label": "field-module__label__LVrYU",
72
- "is-plain": "field-module__is-plain__F8QhR",
73
- "description": "field-module__description__CKN1B"
74
- };
47
+ var field_default = { "label": "_2d5ad850b2f90964__label", "is-plain": "_17c4214649230bea__is-plain", "description": "_08a3750500e0233f__description" };
75
48
 
76
49
  // packages/ui/src/form/primitives/fieldset/description.tsx
77
50
  var import_context = require("./context.cjs");
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/form/primitives/fieldset/description.tsx", "../../../../src/utils/css/field.module.css"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport { mergeProps, useRender } from '@base-ui/react';\nimport { forwardRef, useEffect, useId } from '@wordpress/element';\nimport fieldStyles from '../../../utils/css/field.module.css';\nimport { useFieldsetContext } from './context';\nimport type { FieldsetDescriptionProps } from './types';\n\nexport const FieldsetDescription = forwardRef<\n\tHTMLParagraphElement,\n\tFieldsetDescriptionProps\n>( function FieldsetDescription(\n\t{ className, id: idProp, render, ...restProps },\n\tref\n) {\n\tconst generatedId = useId();\n\tconst id = idProp ?? generatedId;\n\tconst { registerDescriptionId, unregisterDescriptionId } =\n\t\tuseFieldsetContext();\n\n\tuseEffect( () => {\n\t\tregisterDescriptionId( id );\n\t\treturn unregisterDescriptionId;\n\t}, [ registerDescriptionId, unregisterDescriptionId, id ] );\n\n\tconst element = useRender( {\n\t\tdefaultTagName: 'p',\n\t\trender,\n\t\tref,\n\t\tprops: mergeProps< 'p' >(\n\t\t\t{ className: clsx( fieldStyles.description, className ), id },\n\t\t\trestProps\n\t\t),\n\t} );\n\n\treturn element;\n} );\n", "const css = `@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;\n\n@layer wp-ui-utilities {\n\t.field-module__label__LVrYU {\n\t\t--wp-ui-field-label-line-height: var(--wpds-font-line-height-xs);\n\n\t\tfont-family: var(--wpds-font-family-body);\n\t\tfont-size: var(--wpds-font-size-xs);\n\t\tline-height: var(--wp-ui-field-label-line-height);\n\t\tfont-weight: var(--wpds-font-weight-medium);\n\t\ttext-transform: uppercase;\n\t\tcolor: var(--wpds-color-fg-content-neutral);\n\n\t\t&.field-module__is-plain__F8QhR {\n\t\t\tfont-size: var(--wpds-font-size-md);\n\t\t\ttext-transform: none;\n\t\t}\n\t}\n\n\t.field-module__description__CKN1B {\n\t\tmargin: 0;\n\t\tfont-family: var(--wpds-font-family-body);\n\t\tfont-size: var(--wpds-font-size-sm);\n\t\tline-height: var(--wpds-font-line-height-xs);\n\t\tcolor: var(--wpds-color-fg-content-neutral-weak);\n\t}\n}\n`;\ndocument.head\n .appendChild(document.createElement(\"style\"))\n .appendChild(document.createTextNode(css));\nexport {css};\nexport default {\n \"label\": \"field-module__label__LVrYU\",\n \"is-plain\": \"field-module__is-plain__F8QhR\",\n \"description\": \"field-module__description__CKN1B\"\n};"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,mBAAsC;AACtC,qBAA6C;;;ACF7C,IAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA4BZ,SAAS,KACJ,YAAY,SAAS,cAAc,OAAO,CAAC,EAC3C,YAAY,SAAS,eAAe,GAAG,CAAC;AAE7C,IAAO,gBAAQ;AAAA,EACb,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,eAAe;AACjB;;;ADhCA,qBAAmC;AAG5B,IAAM,0BAAsB,2BAGhC,SAASA,qBACX,EAAE,WAAW,IAAI,QAAQ,QAAQ,GAAG,UAAU,GAC9C,KACC;AACD,QAAM,kBAAc,sBAAM;AAC1B,QAAM,KAAK,UAAU;AACrB,QAAM,EAAE,uBAAuB,wBAAwB,QACtD,mCAAmB;AAEpB,gCAAW,MAAM;AAChB,0BAAuB,EAAG;AAC1B,WAAO;AAAA,EACR,GAAG,CAAE,uBAAuB,yBAAyB,EAAG,CAAE;AAE1D,QAAM,cAAU,wBAAW;AAAA,IAC1B,gBAAgB;AAAA,IAChB;AAAA,IACA;AAAA,IACA,WAAO;AAAA,MACN,EAAE,eAAW,YAAAC,SAAM,cAAY,aAAa,SAAU,GAAG,GAAG;AAAA,MAC5D;AAAA,IACD;AAAA,EACD,CAAE;AAEF,SAAO;AACR,CAAE;",
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { mergeProps, useRender } from '@base-ui/react';\nimport { forwardRef, useEffect, useId } from '@wordpress/element';\nimport fieldStyles from '../../../utils/css/field.module.css';\nimport { useFieldsetContext } from './context';\nimport type { FieldsetDescriptionProps } from './types';\n\nexport const FieldsetDescription = forwardRef<\n\tHTMLParagraphElement,\n\tFieldsetDescriptionProps\n>( function FieldsetDescription(\n\t{ className, id: idProp, render, ...restProps },\n\tref\n) {\n\tconst generatedId = useId();\n\tconst id = idProp ?? generatedId;\n\tconst { registerDescriptionId, unregisterDescriptionId } =\n\t\tuseFieldsetContext();\n\n\tuseEffect( () => {\n\t\tregisterDescriptionId( id );\n\t\treturn unregisterDescriptionId;\n\t}, [ registerDescriptionId, unregisterDescriptionId, id ] );\n\n\tconst element = useRender( {\n\t\tdefaultTagName: 'p',\n\t\trender,\n\t\tref,\n\t\tprops: mergeProps< 'p' >(\n\t\t\t{ className: clsx( fieldStyles.description, className ), id },\n\t\t\trestProps\n\t\t),\n\t} );\n\n\treturn element;\n} );\n", "if (typeof document !== 'undefined' && !document.head.querySelector(\"style[data-wp-hash='04c8f253c6']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"04c8f253c6\");\n\tstyle.appendChild(document.createTextNode(\"@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-font-line-height-xs);color:var(--wpds-color-fg-content-neutral);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-xs);font-weight:var(--wpds-font-weight-medium);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-font-size-md);text-transform:none}}._08a3750500e0233f__description{color:var(--wpds-color-fg-content-neutral-weak);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-sm);line-height:var(--wpds-font-line-height-xs);margin:0}}\"));\n\tdocument.head.appendChild(style);\n}\nexport default {\"label\":\"_2d5ad850b2f90964__label\",\"is-plain\":\"_17c4214649230bea__is-plain\",\"description\":\"_08a3750500e0233f__description\"};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,mBAAsC;AACtC,qBAA6C;;;ACF7C,IAAI,OAAO,aAAa,eAAe,CAAC,SAAS,KAAK,cAAc,kCAAkC,GAAG;AACxG,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,gBAAgB,YAAY;AAC/C,QAAM,YAAY,SAAS,eAAe,qtBAAqtB,CAAC;AAChwB,WAAS,KAAK,YAAY,KAAK;AAChC;AACA,IAAO,gBAAQ,EAAC,SAAQ,4BAA2B,YAAW,+BAA8B,eAAc,iCAAgC;;;ADF1I,qBAAmC;AAG5B,IAAM,0BAAsB,2BAGhC,SAASA,qBACX,EAAE,WAAW,IAAI,QAAQ,QAAQ,GAAG,UAAU,GAC9C,KACC;AACD,QAAM,kBAAc,sBAAM;AAC1B,QAAM,KAAK,UAAU;AACrB,QAAM,EAAE,uBAAuB,wBAAwB,QACtD,mCAAmB;AAEpB,gCAAW,MAAM;AAChB,0BAAuB,EAAG;AAC1B,WAAO;AAAA,EACR,GAAG,CAAE,uBAAuB,yBAAyB,EAAG,CAAE;AAE1D,QAAM,cAAU,wBAAW;AAAA,IAC1B,gBAAgB;AAAA,IAChB;AAAA,IACA;AAAA,IACA,WAAO;AAAA,MACN,EAAE,eAAW,YAAAC,SAAM,cAAY,aAAa,SAAU,GAAG,GAAG;AAAA,MAC5D;AAAA,IACD;AAAA,EACD,CAAE;AAEF,SAAO;AACR,CAAE;",
6
6
  "names": ["FieldsetDescription", "clsx"]
7
7
  }
@@ -38,40 +38,13 @@ var import_element = require("@wordpress/element");
38
38
  var import_i18n = require("@wordpress/i18n");
39
39
 
40
40
  // packages/ui/src/utils/css/field.module.css
41
- var css = `@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;
42
-
43
- @layer wp-ui-utilities {
44
- .field-module__label__LVrYU {
45
- --wp-ui-field-label-line-height: var(--wpds-font-line-height-xs);
46
-
47
- font-family: var(--wpds-font-family-body);
48
- font-size: var(--wpds-font-size-xs);
49
- line-height: var(--wp-ui-field-label-line-height);
50
- font-weight: var(--wpds-font-weight-medium);
51
- text-transform: uppercase;
52
- color: var(--wpds-color-fg-content-neutral);
53
-
54
- &.field-module__is-plain__F8QhR {
55
- font-size: var(--wpds-font-size-md);
56
- text-transform: none;
57
- }
58
- }
59
-
60
- .field-module__description__CKN1B {
61
- margin: 0;
62
- font-family: var(--wpds-font-family-body);
63
- font-size: var(--wpds-font-size-sm);
64
- line-height: var(--wpds-font-line-height-xs);
65
- color: var(--wpds-color-fg-content-neutral-weak);
66
- }
41
+ if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='04c8f253c6']")) {
42
+ const style = document.createElement("style");
43
+ style.setAttribute("data-wp-hash", "04c8f253c6");
44
+ style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-font-line-height-xs);color:var(--wpds-color-fg-content-neutral);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-xs);font-weight:var(--wpds-font-weight-medium);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-font-size-md);text-transform:none}}._08a3750500e0233f__description{color:var(--wpds-color-fg-content-neutral-weak);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-sm);line-height:var(--wpds-font-line-height-xs);margin:0}}"));
45
+ document.head.appendChild(style);
67
46
  }
68
- `;
69
- document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css));
70
- var field_default = {
71
- "label": "field-module__label__LVrYU",
72
- "is-plain": "field-module__is-plain__F8QhR",
73
- "description": "field-module__description__CKN1B"
74
- };
47
+ var field_default = { "label": "_2d5ad850b2f90964__label", "is-plain": "_17c4214649230bea__is-plain", "description": "_08a3750500e0233f__description" };
75
48
 
76
49
  // packages/ui/src/form/primitives/fieldset/details.tsx
77
50
  var import_context = require("./context.cjs");
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/form/primitives/fieldset/details.tsx", "../../../../src/utils/css/field.module.css"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport { forwardRef, useEffect, useId } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport fieldStyles from '../../../utils/css/field.module.css';\nimport { useFieldsetContext } from './context';\nimport { VisuallyHidden } from '../../../visually-hidden';\nimport type { FieldsetDetailsProps } from './types';\n\n/**\n * A component for showing additional information about the fieldset,\n * styled similarly to a normal `Fieldset.Description`.\n * Unlike a normal description, it can include links and other semantic elements.\n *\n * Although this content is not associated with the fieldset using direct semantics,\n * it is made discoverable to screen reader users via a visually hidden description,\n * alerting them to the presence of additional information below.\n *\n * If the content only includes plain text, use `Fieldset.Description` instead,\n * so the readout is not unnecessarily verbose for screen reader users.\n */\nexport const FieldsetDetails = forwardRef<\n\tHTMLDivElement,\n\tFieldsetDetailsProps\n>( function FieldsetDetails( { className, ...restProps }, ref ) {\n\tconst id = useId();\n\tconst { registerDescriptionId, unregisterDescriptionId } =\n\t\tuseFieldsetContext();\n\n\tuseEffect( () => {\n\t\tregisterDescriptionId( id );\n\t\treturn unregisterDescriptionId;\n\t}, [ registerDescriptionId, unregisterDescriptionId, id ] );\n\n\treturn (\n\t\t<>\n\t\t\t<VisuallyHidden id={ id }>\n\t\t\t\t{ __( 'More details follow.' ) }\n\t\t\t</VisuallyHidden>\n\t\t\t<div\n\t\t\t\tref={ ref }\n\t\t\t\tclassName={ clsx( fieldStyles.description, className ) }\n\t\t\t\t{ ...restProps }\n\t\t\t/>\n\t\t</>\n\t);\n} );\n", "const css = `@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;\n\n@layer wp-ui-utilities {\n\t.field-module__label__LVrYU {\n\t\t--wp-ui-field-label-line-height: var(--wpds-font-line-height-xs);\n\n\t\tfont-family: var(--wpds-font-family-body);\n\t\tfont-size: var(--wpds-font-size-xs);\n\t\tline-height: var(--wp-ui-field-label-line-height);\n\t\tfont-weight: var(--wpds-font-weight-medium);\n\t\ttext-transform: uppercase;\n\t\tcolor: var(--wpds-color-fg-content-neutral);\n\n\t\t&.field-module__is-plain__F8QhR {\n\t\t\tfont-size: var(--wpds-font-size-md);\n\t\t\ttext-transform: none;\n\t\t}\n\t}\n\n\t.field-module__description__CKN1B {\n\t\tmargin: 0;\n\t\tfont-family: var(--wpds-font-family-body);\n\t\tfont-size: var(--wpds-font-size-sm);\n\t\tline-height: var(--wpds-font-line-height-xs);\n\t\tcolor: var(--wpds-color-fg-content-neutral-weak);\n\t}\n}\n`;\ndocument.head\n .appendChild(document.createElement(\"style\"))\n .appendChild(document.createTextNode(css));\nexport {css};\nexport default {\n \"label\": \"field-module__label__LVrYU\",\n \"is-plain\": \"field-module__is-plain__F8QhR\",\n \"description\": \"field-module__description__CKN1B\"\n};"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,qBAA6C;AAC7C,kBAAmB;;;ACFnB,IAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA4BZ,SAAS,KACJ,YAAY,SAAS,cAAc,OAAO,CAAC,EAC3C,YAAY,SAAS,eAAe,GAAG,CAAC;AAE7C,IAAO,gBAAQ;AAAA,EACb,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,eAAe;AACjB;;;ADhCA,qBAAmC;AACnC,6BAA+B;AA6B7B;AAdK,IAAM,sBAAkB,2BAG5B,SAASA,iBAAiB,EAAE,WAAW,GAAG,UAAU,GAAG,KAAM;AAC/D,QAAM,SAAK,sBAAM;AACjB,QAAM,EAAE,uBAAuB,wBAAwB,QACtD,mCAAmB;AAEpB,gCAAW,MAAM;AAChB,0BAAuB,EAAG;AAC1B,WAAO;AAAA,EACR,GAAG,CAAE,uBAAuB,yBAAyB,EAAG,CAAE;AAE1D,SACC,4EACC;AAAA,gDAAC,yCAAe,IACb,8BAAI,sBAAuB,GAC9B;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACA;AAAA,QACA,eAAY,YAAAC,SAAM,cAAY,aAAa,SAAU;AAAA,QACnD,GAAG;AAAA;AAAA,IACN;AAAA,KACD;AAEF,CAAE;",
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { forwardRef, useEffect, useId } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport fieldStyles from '../../../utils/css/field.module.css';\nimport { useFieldsetContext } from './context';\nimport { VisuallyHidden } from '../../../visually-hidden';\nimport type { FieldsetDetailsProps } from './types';\n\n/**\n * A component for showing additional information about the fieldset,\n * styled similarly to a normal `Fieldset.Description`.\n * Unlike a normal description, it can include links and other semantic elements.\n *\n * Although this content is not associated with the fieldset using direct semantics,\n * it is made discoverable to screen reader users via a visually hidden description,\n * alerting them to the presence of additional information below.\n *\n * If the content only includes plain text, use `Fieldset.Description` instead,\n * so the readout is not unnecessarily verbose for screen reader users.\n */\nexport const FieldsetDetails = forwardRef<\n\tHTMLDivElement,\n\tFieldsetDetailsProps\n>( function FieldsetDetails( { className, ...restProps }, ref ) {\n\tconst id = useId();\n\tconst { registerDescriptionId, unregisterDescriptionId } =\n\t\tuseFieldsetContext();\n\n\tuseEffect( () => {\n\t\tregisterDescriptionId( id );\n\t\treturn unregisterDescriptionId;\n\t}, [ registerDescriptionId, unregisterDescriptionId, id ] );\n\n\treturn (\n\t\t<>\n\t\t\t<VisuallyHidden id={ id }>\n\t\t\t\t{ __( 'More details follow.' ) }\n\t\t\t</VisuallyHidden>\n\t\t\t<div\n\t\t\t\tref={ ref }\n\t\t\t\tclassName={ clsx( fieldStyles.description, className ) }\n\t\t\t\t{ ...restProps }\n\t\t\t/>\n\t\t</>\n\t);\n} );\n", "if (typeof document !== 'undefined' && !document.head.querySelector(\"style[data-wp-hash='04c8f253c6']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"04c8f253c6\");\n\tstyle.appendChild(document.createTextNode(\"@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-font-line-height-xs);color:var(--wpds-color-fg-content-neutral);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-xs);font-weight:var(--wpds-font-weight-medium);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-font-size-md);text-transform:none}}._08a3750500e0233f__description{color:var(--wpds-color-fg-content-neutral-weak);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-sm);line-height:var(--wpds-font-line-height-xs);margin:0}}\"));\n\tdocument.head.appendChild(style);\n}\nexport default {\"label\":\"_2d5ad850b2f90964__label\",\"is-plain\":\"_17c4214649230bea__is-plain\",\"description\":\"_08a3750500e0233f__description\"};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,qBAA6C;AAC7C,kBAAmB;;;ACFnB,IAAI,OAAO,aAAa,eAAe,CAAC,SAAS,KAAK,cAAc,kCAAkC,GAAG;AACxG,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,gBAAgB,YAAY;AAC/C,QAAM,YAAY,SAAS,eAAe,qtBAAqtB,CAAC;AAChwB,WAAS,KAAK,YAAY,KAAK;AAChC;AACA,IAAO,gBAAQ,EAAC,SAAQ,4BAA2B,YAAW,+BAA8B,eAAc,iCAAgC;;;ADF1I,qBAAmC;AACnC,6BAA+B;AA6B7B;AAdK,IAAM,sBAAkB,2BAG5B,SAASA,iBAAiB,EAAE,WAAW,GAAG,UAAU,GAAG,KAAM;AAC/D,QAAM,SAAK,sBAAM;AACjB,QAAM,EAAE,uBAAuB,wBAAwB,QACtD,mCAAmB;AAEpB,gCAAW,MAAM;AAChB,0BAAuB,EAAG;AAC1B,WAAO;AAAA,EACR,GAAG,CAAE,uBAAuB,yBAAyB,EAAG,CAAE;AAE1D,SACC,4EACC;AAAA,gDAAC,yCAAe,IACb,8BAAI,sBAAuB,GAC9B;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACA;AAAA,QACA,eAAY,YAAAC,SAAM,cAAY,aAAa,SAAU;AAAA,QACnD,GAAG;AAAA;AAAA,IACN;AAAA,KACD;AAEF,CAAE;",
6
6
  "names": ["FieldsetDetails", "clsx"]
7
7
  }
@@ -38,40 +38,13 @@ var import_fieldset = require("@base-ui/react/fieldset");
38
38
  var import_element = require("@wordpress/element");
39
39
 
40
40
  // packages/ui/src/utils/css/field.module.css
41
- var css = `@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;
42
-
43
- @layer wp-ui-utilities {
44
- .field-module__label__LVrYU {
45
- --wp-ui-field-label-line-height: var(--wpds-font-line-height-xs);
46
-
47
- font-family: var(--wpds-font-family-body);
48
- font-size: var(--wpds-font-size-xs);
49
- line-height: var(--wp-ui-field-label-line-height);
50
- font-weight: var(--wpds-font-weight-medium);
51
- text-transform: uppercase;
52
- color: var(--wpds-color-fg-content-neutral);
53
-
54
- &.field-module__is-plain__F8QhR {
55
- font-size: var(--wpds-font-size-md);
56
- text-transform: none;
57
- }
58
- }
59
-
60
- .field-module__description__CKN1B {
61
- margin: 0;
62
- font-family: var(--wpds-font-family-body);
63
- font-size: var(--wpds-font-size-sm);
64
- line-height: var(--wpds-font-line-height-xs);
65
- color: var(--wpds-color-fg-content-neutral-weak);
66
- }
41
+ if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='04c8f253c6']")) {
42
+ const style = document.createElement("style");
43
+ style.setAttribute("data-wp-hash", "04c8f253c6");
44
+ style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-font-line-height-xs);color:var(--wpds-color-fg-content-neutral);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-xs);font-weight:var(--wpds-font-weight-medium);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-font-size-md);text-transform:none}}._08a3750500e0233f__description{color:var(--wpds-color-fg-content-neutral-weak);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-sm);line-height:var(--wpds-font-line-height-xs);margin:0}}"));
45
+ document.head.appendChild(style);
67
46
  }
68
- `;
69
- document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css));
70
- var field_default = {
71
- "label": "field-module__label__LVrYU",
72
- "is-plain": "field-module__is-plain__F8QhR",
73
- "description": "field-module__description__CKN1B"
74
- };
47
+ var field_default = { "label": "_2d5ad850b2f90964__label", "is-plain": "_17c4214649230bea__is-plain", "description": "_08a3750500e0233f__description" };
75
48
 
76
49
  // packages/ui/src/form/primitives/fieldset/legend.tsx
77
50
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/form/primitives/fieldset/legend.tsx", "../../../../src/utils/css/field.module.css"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport { Fieldset as _Fieldset } from '@base-ui/react/fieldset';\nimport { forwardRef } from '@wordpress/element';\nimport fieldStyles from '../../../utils/css/field.module.css';\nimport type { FieldsetLegendProps } from './types';\n\nexport const FieldsetLegend = forwardRef< HTMLDivElement, FieldsetLegendProps >(\n\tfunction FieldsetLegend( { className, ...restProps }, ref ) {\n\t\treturn (\n\t\t\t<_Fieldset.Legend\n\t\t\t\tref={ ref }\n\t\t\t\tclassName={ clsx( fieldStyles.label, className ) }\n\t\t\t\t{ ...restProps }\n\t\t\t/>\n\t\t);\n\t}\n);\n", "const css = `@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;\n\n@layer wp-ui-utilities {\n\t.field-module__label__LVrYU {\n\t\t--wp-ui-field-label-line-height: var(--wpds-font-line-height-xs);\n\n\t\tfont-family: var(--wpds-font-family-body);\n\t\tfont-size: var(--wpds-font-size-xs);\n\t\tline-height: var(--wp-ui-field-label-line-height);\n\t\tfont-weight: var(--wpds-font-weight-medium);\n\t\ttext-transform: uppercase;\n\t\tcolor: var(--wpds-color-fg-content-neutral);\n\n\t\t&.field-module__is-plain__F8QhR {\n\t\t\tfont-size: var(--wpds-font-size-md);\n\t\t\ttext-transform: none;\n\t\t}\n\t}\n\n\t.field-module__description__CKN1B {\n\t\tmargin: 0;\n\t\tfont-family: var(--wpds-font-family-body);\n\t\tfont-size: var(--wpds-font-size-sm);\n\t\tline-height: var(--wpds-font-line-height-xs);\n\t\tcolor: var(--wpds-color-fg-content-neutral-weak);\n\t}\n}\n`;\ndocument.head\n .appendChild(document.createElement(\"style\"))\n .appendChild(document.createTextNode(css));\nexport {css};\nexport default {\n \"label\": \"field-module__label__LVrYU\",\n \"is-plain\": \"field-module__is-plain__F8QhR\",\n \"description\": \"field-module__description__CKN1B\"\n};"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,sBAAsC;AACtC,qBAA2B;;;ACF3B,IAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA4BZ,SAAS,KACJ,YAAY,SAAS,cAAc,OAAO,CAAC,EAC3C,YAAY,SAAS,eAAe,GAAG,CAAC;AAE7C,IAAO,gBAAQ;AAAA,EACb,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,eAAe;AACjB;;;AD3BG;AAHI,IAAM,qBAAiB;AAAA,EAC7B,SAASA,gBAAgB,EAAE,WAAW,GAAG,UAAU,GAAG,KAAM;AAC3D,WACC;AAAA,MAAC,gBAAAC,SAAU;AAAA,MAAV;AAAA,QACA;AAAA,QACA,eAAY,YAAAC,SAAM,cAAY,OAAO,SAAU;AAAA,QAC7C,GAAG;AAAA;AAAA,IACN;AAAA,EAEF;AACD;",
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { Fieldset as _Fieldset } from '@base-ui/react/fieldset';\nimport { forwardRef } from '@wordpress/element';\nimport fieldStyles from '../../../utils/css/field.module.css';\nimport type { FieldsetLegendProps } from './types';\n\nexport const FieldsetLegend = forwardRef< HTMLDivElement, FieldsetLegendProps >(\n\tfunction FieldsetLegend( { className, ...restProps }, ref ) {\n\t\treturn (\n\t\t\t<_Fieldset.Legend\n\t\t\t\tref={ ref }\n\t\t\t\tclassName={ clsx( fieldStyles.label, className ) }\n\t\t\t\t{ ...restProps }\n\t\t\t/>\n\t\t);\n\t}\n);\n", "if (typeof document !== 'undefined' && !document.head.querySelector(\"style[data-wp-hash='04c8f253c6']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"04c8f253c6\");\n\tstyle.appendChild(document.createTextNode(\"@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-font-line-height-xs);color:var(--wpds-color-fg-content-neutral);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-xs);font-weight:var(--wpds-font-weight-medium);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-font-size-md);text-transform:none}}._08a3750500e0233f__description{color:var(--wpds-color-fg-content-neutral-weak);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-sm);line-height:var(--wpds-font-line-height-xs);margin:0}}\"));\n\tdocument.head.appendChild(style);\n}\nexport default {\"label\":\"_2d5ad850b2f90964__label\",\"is-plain\":\"_17c4214649230bea__is-plain\",\"description\":\"_08a3750500e0233f__description\"};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,sBAAsC;AACtC,qBAA2B;;;ACF3B,IAAI,OAAO,aAAa,eAAe,CAAC,SAAS,KAAK,cAAc,kCAAkC,GAAG;AACxG,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,gBAAgB,YAAY;AAC/C,QAAM,YAAY,SAAS,eAAe,qtBAAqtB,CAAC;AAChwB,WAAS,KAAK,YAAY,KAAK;AAChC;AACA,IAAO,gBAAQ,EAAC,SAAQ,4BAA2B,YAAW,+BAA8B,eAAc,iCAAgC;;;ADGvI;AAHI,IAAM,qBAAiB;AAAA,EAC7B,SAASA,gBAAgB,EAAE,WAAW,GAAG,UAAU,GAAG,KAAM;AAC3D,WACC;AAAA,MAAC,gBAAAC,SAAU;AAAA,MAAV;AAAA,QACA;AAAA,QACA,eAAY,YAAAC,SAAM,cAAY,OAAO,SAAU;AAAA,QAC7C,GAAG;AAAA;AAAA,IACN;AAAA,EAEF;AACD;",
6
6
  "names": ["FieldsetLegend", "_Fieldset", "clsx"]
7
7
  }
@@ -38,23 +38,13 @@ var import_fieldset = require("@base-ui/react/fieldset");
38
38
  var import_element = require("@wordpress/element");
39
39
 
40
40
  // packages/ui/src/form/primitives/fieldset/style.module.css
41
- var css = `@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;
42
-
43
- @layer wp-ui-components {
44
- .style-module__root__qUbRL {
45
- display: flex;
46
- flex-direction: column;
47
- gap: var(--wpds-dimension-gap-2xs);
48
- border: 0;
49
- margin: 0;
50
- padding: 0;
51
- }
41
+ if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='645ae380ba']")) {
42
+ const style = document.createElement("style");
43
+ style.setAttribute("data-wp-hash", "645ae380ba");
44
+ style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{.a946d12d3d763c87__root{border:0;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-2xs);margin:0;padding:0}}"));
45
+ document.head.appendChild(style);
52
46
  }
53
- `;
54
- document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css));
55
- var style_default = {
56
- "root": "style-module__root__qUbRL"
57
- };
47
+ var style_default = { "root": "a946d12d3d763c87__root" };
58
48
 
59
49
  // packages/ui/src/form/primitives/fieldset/root.tsx
60
50
  var import_context = require("./context.cjs");
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/form/primitives/fieldset/root.tsx", "../../../../src/form/primitives/fieldset/style.module.css"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport { Fieldset as _Fieldset } from '@base-ui/react/fieldset';\nimport { forwardRef, useState, useMemo } from '@wordpress/element';\nimport styles from './style.module.css';\nimport { FieldsetContext } from './context';\nimport type { FieldsetRootProps } from './types';\n\n/**\n * A low-level component that associates an accessible legend and description with\n * a group of multiple form control elements.\n *\n * To label a single form control element, use the `Field` component instead.\n */\nexport const FieldsetRoot = forwardRef<\n\tHTMLFieldSetElement,\n\tFieldsetRootProps\n>( function FieldsetRoot( { className, children, ...restProps }, ref ) {\n\tconst [ descriptionId, setDescriptionId ] = useState< string >();\n\n\tconst contextValue = useMemo(\n\t\t() => ( {\n\t\t\tregisterDescriptionId: ( id: string ) => setDescriptionId( id ),\n\t\t\tunregisterDescriptionId: () => setDescriptionId( undefined ),\n\t\t} ),\n\t\t[]\n\t);\n\n\treturn (\n\t\t<FieldsetContext.Provider value={ contextValue }>\n\t\t\t<_Fieldset.Root\n\t\t\t\tref={ ref }\n\t\t\t\tclassName={ clsx( styles.root, className ) }\n\t\t\t\t// Certain screen readers may not read a fieldset's description\n\t\t\t\t// https://w3c.github.io/using-aria/#label-support\n\t\t\t\taria-describedby={ descriptionId }\n\t\t\t\t{ ...restProps }\n\t\t\t>\n\t\t\t\t{ children }\n\t\t\t</_Fieldset.Root>\n\t\t</FieldsetContext.Provider>\n\t);\n} );\n", "const css = `@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;\n\n@layer wp-ui-components {\n\t.style-module__root__qUbRL {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: var(--wpds-dimension-gap-2xs);\n\t\tborder: 0;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n}\n`;\ndocument.head\n .appendChild(document.createElement(\"style\"))\n .appendChild(document.createTextNode(css));\nexport {css};\nexport default {\n \"root\": \"style-module__root__qUbRL\"\n};"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,sBAAsC;AACtC,qBAA8C;;;ACF9C,IAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaZ,SAAS,KACJ,YAAY,SAAS,cAAc,OAAO,CAAC,EAC3C,YAAY,SAAS,eAAe,GAAG,CAAC;AAE7C,IAAO,gBAAQ;AAAA,EACb,QAAQ;AACV;;;ADfA,qBAAgC;AAyB7B;AAhBI,IAAM,mBAAe,2BAGzB,SAASA,cAAc,EAAE,WAAW,UAAU,GAAG,UAAU,GAAG,KAAM;AACtE,QAAM,CAAE,eAAe,gBAAiB,QAAI,yBAAmB;AAE/D,QAAM,mBAAe;AAAA,IACpB,OAAQ;AAAA,MACP,uBAAuB,CAAE,OAAgB,iBAAkB,EAAG;AAAA,MAC9D,yBAAyB,MAAM,iBAAkB,MAAU;AAAA,IAC5D;AAAA,IACA,CAAC;AAAA,EACF;AAEA,SACC,4CAAC,+BAAgB,UAAhB,EAAyB,OAAQ,cACjC;AAAA,IAAC,gBAAAC,SAAU;AAAA,IAAV;AAAA,MACA;AAAA,MACA,eAAY,YAAAC,SAAM,cAAO,MAAM,SAAU;AAAA,MAGzC,oBAAmB;AAAA,MACjB,GAAG;AAAA,MAEH;AAAA;AAAA,EACH,GACD;AAEF,CAAE;",
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { Fieldset as _Fieldset } from '@base-ui/react/fieldset';\nimport { forwardRef, useState, useMemo } from '@wordpress/element';\nimport styles from './style.module.css';\nimport { FieldsetContext } from './context';\nimport type { FieldsetRootProps } from './types';\n\n/**\n * A low-level component that associates an accessible legend and description with\n * a group of multiple form control elements.\n *\n * To label a single form control element, use the `Field` component instead.\n */\nexport const FieldsetRoot = forwardRef<\n\tHTMLFieldSetElement,\n\tFieldsetRootProps\n>( function FieldsetRoot( { className, children, ...restProps }, ref ) {\n\tconst [ descriptionId, setDescriptionId ] = useState< string >();\n\n\tconst contextValue = useMemo(\n\t\t() => ( {\n\t\t\tregisterDescriptionId: ( id: string ) => setDescriptionId( id ),\n\t\t\tunregisterDescriptionId: () => setDescriptionId( undefined ),\n\t\t} ),\n\t\t[]\n\t);\n\n\treturn (\n\t\t<FieldsetContext.Provider value={ contextValue }>\n\t\t\t<_Fieldset.Root\n\t\t\t\tref={ ref }\n\t\t\t\tclassName={ clsx( styles.root, className ) }\n\t\t\t\t// Certain screen readers may not read a fieldset's description\n\t\t\t\t// https://w3c.github.io/using-aria/#label-support\n\t\t\t\taria-describedby={ descriptionId }\n\t\t\t\t{ ...restProps }\n\t\t\t>\n\t\t\t\t{ children }\n\t\t\t</_Fieldset.Root>\n\t\t</FieldsetContext.Provider>\n\t);\n} );\n", "if (typeof document !== 'undefined' && !document.head.querySelector(\"style[data-wp-hash='645ae380ba']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"645ae380ba\");\n\tstyle.appendChild(document.createTextNode(\"@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{.a946d12d3d763c87__root{border:0;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-2xs);margin:0;padding:0}}\"));\n\tdocument.head.appendChild(style);\n}\nexport default {\"root\":\"a946d12d3d763c87__root\"};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,sBAAsC;AACtC,qBAA8C;;;ACF9C,IAAI,OAAO,aAAa,eAAe,CAAC,SAAS,KAAK,cAAc,kCAAkC,GAAG;AACxG,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,gBAAgB,YAAY;AAC/C,QAAM,YAAY,SAAS,eAAe,kOAAkO,CAAC;AAC7Q,WAAS,KAAK,YAAY,KAAK;AAChC;AACA,IAAO,gBAAQ,EAAC,QAAO,yBAAwB;;;ADF/C,qBAAgC;AAyB7B;AAhBI,IAAM,mBAAe,2BAGzB,SAASA,cAAc,EAAE,WAAW,UAAU,GAAG,UAAU,GAAG,KAAM;AACtE,QAAM,CAAE,eAAe,gBAAiB,QAAI,yBAAmB;AAE/D,QAAM,mBAAe;AAAA,IACpB,OAAQ;AAAA,MACP,uBAAuB,CAAE,OAAgB,iBAAkB,EAAG;AAAA,MAC9D,yBAAyB,MAAM,iBAAkB,MAAU;AAAA,IAC5D;AAAA,IACA,CAAC;AAAA,EACF;AAEA,SACC,4CAAC,+BAAgB,UAAhB,EAAyB,OAAQ,cACjC;AAAA,IAAC,gBAAAC,SAAU;AAAA,IAAV;AAAA,MACA;AAAA,MACA,eAAY,YAAAC,SAAM,cAAO,MAAM,SAAU;AAAA,MAGzC,oBAAmB;AAAA,MACjB,GAAG;AAAA,MAEH;AAAA;AAAA,EACH,GACD;AAEF,CAAE;",
6
6
  "names": ["FieldsetRoot", "_Fieldset", "clsx"]
7
7
  }
@@ -31,14 +31,23 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var primitives_exports = {};
32
32
  __export(primitives_exports, {
33
33
  Field: () => Field,
34
- Fieldset: () => Fieldset
34
+ Fieldset: () => Fieldset,
35
+ Input: () => import_input.Input,
36
+ InputLayout: () => import_input_layout.InputLayout,
37
+ Select: () => Select
35
38
  });
36
39
  module.exports = __toCommonJS(primitives_exports);
37
40
  var Field = __toESM(require("./field/index.cjs"));
38
41
  var Fieldset = __toESM(require("./fieldset/index.cjs"));
42
+ var import_input = require("./input/index.cjs");
43
+ var import_input_layout = require("./input-layout/index.cjs");
44
+ var Select = __toESM(require("./select/index.cjs"));
39
45
  // Annotate the CommonJS export names for ESM import in node:
40
46
  0 && (module.exports = {
41
47
  Field,
42
- Fieldset
48
+ Fieldset,
49
+ Input,
50
+ InputLayout,
51
+ Select
43
52
  });
44
53
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/form/primitives/index.ts"],
4
- "sourcesContent": ["export * as Field from './field';\nexport * as Fieldset from './fieldset';\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAuB;AACvB,eAA0B;",
4
+ "sourcesContent": ["export * as Field from './field';\nexport * as Fieldset from './fieldset';\nexport { Input } from './input';\nexport { InputLayout } from './input-layout';\nexport * as Select from './select';\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAuB;AACvB,eAA0B;AAC1B,mBAAsB;AACtB,0BAA4B;AAC5B,aAAwB;",
6
6
  "names": []
7
7
  }