@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/stack/stack.tsx", "../../src/stack/style.module.css"],
4
- "sourcesContent": ["import { useRender, mergeProps } from '@base-ui/react';\nimport { forwardRef } from '@wordpress/element';\nimport { type StackProps } from './types';\nimport styles from './style.module.css';\n\n/**\n * A flexible layout component using CSS Flexbox for consistent spacing and alignment.\n * Built on design tokens for predictable spacing values.\n */\nexport const Stack = forwardRef< HTMLDivElement, StackProps >( function Stack(\n\t{ direction, gap, align, justify, wrap, render, ...props },\n\tref\n) {\n\tconst style: React.CSSProperties = {\n\t\tgap: gap && `var(--wpds-dimension-gap-${ gap })`,\n\t\talignItems: align,\n\t\tjustifyContent: justify,\n\t\tflexDirection: direction,\n\t\tflexWrap: wrap,\n\t};\n\n\tconst element = useRender( {\n\t\trender,\n\t\tref,\n\t\tprops: mergeProps< 'div' >( props, { style, className: styles.stack } ),\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-components {\n\t.style-module__stack__Gc4EG {\n\t\tdisplay: flex;\n\t}\n}\n`;\ndocument.head\n .appendChild(document.createElement(\"style\"))\n .appendChild(document.createTextNode(css));\nexport {css};\nexport default {\n \"stack\": \"style-module__stack__Gc4EG\"\n};"],
5
- "mappings": ";AAAA,SAAS,WAAW,kBAAkB;AACtC,SAAS,kBAAkB;;;ACD3B,IAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQZ,SAAS,KACJ,YAAY,SAAS,cAAc,OAAO,CAAC,EAC3C,YAAY,SAAS,eAAe,GAAG,CAAC;AAE7C,IAAO,gBAAQ;AAAA,EACb,SAAS;AACX;;;ADLO,IAAM,QAAQ,WAA0C,SAASA,OACvE,EAAE,WAAW,KAAK,OAAO,SAAS,MAAM,QAAQ,GAAG,MAAM,GACzD,KACC;AACD,QAAM,QAA6B;AAAA,IAClC,KAAK,OAAO,4BAA6B,GAAI;AAAA,IAC7C,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,eAAe;AAAA,IACf,UAAU;AAAA,EACX;AAEA,QAAM,UAAU,UAAW;AAAA,IAC1B;AAAA,IACA;AAAA,IACA,OAAO,WAAqB,OAAO,EAAE,OAAO,WAAW,cAAO,MAAM,CAAE;AAAA,EACvE,CAAE;AAEF,SAAO;AACR,CAAE;",
4
+ "sourcesContent": ["import { useRender, mergeProps } from '@base-ui/react';\nimport { forwardRef } from '@wordpress/element';\nimport { type StackProps } from './types';\nimport styles from './style.module.css';\n\n/**\n * A flexible layout component using CSS Flexbox for consistent spacing and alignment.\n * Built on design tokens for predictable spacing values.\n */\nexport const Stack = forwardRef< HTMLDivElement, StackProps >( function Stack(\n\t{ direction, gap, align, justify, wrap, render, ...props },\n\tref\n) {\n\tconst style: React.CSSProperties = {\n\t\tgap: gap && `var(--wpds-dimension-gap-${ gap })`,\n\t\talignItems: align,\n\t\tjustifyContent: justify,\n\t\tflexDirection: direction,\n\t\tflexWrap: wrap,\n\t};\n\n\tconst element = useRender( {\n\t\trender,\n\t\tref,\n\t\tprops: mergeProps< 'div' >( props, { style, className: styles.stack } ),\n\t} );\n\n\treturn element;\n} );\n", "if (typeof document !== 'undefined' && !document.head.querySelector(\"style[data-wp-hash='71d20935c2']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"71d20935c2\");\n\tstyle.appendChild(document.createTextNode(\"@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._19ce0419607e1896__stack{display:flex}}\"));\n\tdocument.head.appendChild(style);\n}\nexport default {\"stack\":\"_19ce0419607e1896__stack\"};\n"],
5
+ "mappings": ";AAAA,SAAS,WAAW,kBAAkB;AACtC,SAAS,kBAAkB;;;ACD3B,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,gJAAgJ,CAAC;AAC3L,WAAS,KAAK,YAAY,KAAK;AAChC;AACA,IAAO,gBAAQ,EAAC,SAAQ,2BAA0B;;;ADG3C,IAAM,QAAQ,WAA0C,SAASA,OACvE,EAAE,WAAW,KAAK,OAAO,SAAS,MAAM,QAAQ,GAAG,MAAM,GACzD,KACC;AACD,QAAM,QAA6B;AAAA,IAClC,KAAK,OAAO,4BAA6B,GAAI;AAAA,IAC7C,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,eAAe;AAAA,IACf,UAAU;AAAA,EACX;AAEA,QAAM,UAAU,UAAW;AAAA,IAC1B;AAAA,IACA;AAAA,IACA,OAAO,WAAqB,OAAO,EAAE,OAAO,WAAW,cAAO,MAAM,CAAE;AAAA,EACvE,CAAE;AAEF,SAAO;AACR,CAAE;",
6
6
  "names": ["Stack"]
7
7
  }
@@ -0,0 +1,12 @@
1
+ // packages/ui/src/tooltip/index.ts
2
+ import { Popup } from "./popup.mjs";
3
+ import { Trigger } from "./trigger.mjs";
4
+ import { Root } from "./root.mjs";
5
+ import { Provider } from "./provider.mjs";
6
+ export {
7
+ Popup,
8
+ Provider,
9
+ Root,
10
+ Trigger
11
+ };
12
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/tooltip/index.ts"],
4
+ "sourcesContent": ["import { Popup } from './popup';\nimport { Trigger } from './trigger';\nimport { Root } from './root';\nimport { Provider } from './provider';\n\nexport { Provider, Root, Trigger, Popup };\n"],
5
+ "mappings": ";AAAA,SAAS,aAAa;AACtB,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB,SAAS,gBAAgB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,67 @@
1
+ // packages/ui/src/tooltip/popup.tsx
2
+ import clsx from "clsx";
3
+ import { Tooltip } from "@base-ui/react/tooltip";
4
+ import { forwardRef } from "@wordpress/element";
5
+ import {
6
+ privateApis as themePrivateApis
7
+ } from "@wordpress/theme";
8
+ import { unlock } from "../lock-unlock.mjs";
9
+
10
+ // packages/ui/src/utils/css/resets.module.css
11
+ if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='671ebfc62d']")) {
12
+ const style = document.createElement("style");
13
+ style.setAttribute("data-wp-hash", "671ebfc62d");
14
+ 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}}}"));
15
+ document.head.appendChild(style);
16
+ }
17
+ var resets_default = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
18
+
19
+ // packages/ui/src/tooltip/style.module.css
20
+ if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='6a5779ba18']")) {
21
+ const style = document.createElement("style");
22
+ style.setAttribute("data-wp-hash", "6a5779ba18");
23
+ style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{background-color:var(--wpds-color-bg-surface-neutral-strong);border-radius:var(--wpds-border-radius-sm);box-shadow:var(--wpds-elevation-small);color:var(--wpds-color-fg-content-neutral);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-sm);line-height:1.4;padding:var(--wpds-dimension-padding-surface-2xs) var(--wpds-dimension-padding-surface-xs)}}"));
24
+ document.head.appendChild(style);
25
+ }
26
+ var style_default = { "positioner": "_480b748dd3510e64__positioner", "popup": "_50096b232db7709d__popup" };
27
+
28
+ // packages/ui/src/tooltip/popup.tsx
29
+ import { jsx } from "react/jsx-runtime";
30
+ var ThemeProvider = unlock(themePrivateApis).ThemeProvider;
31
+ var Popup = forwardRef(function TooltipPopup({
32
+ align = "center",
33
+ side = "bottom",
34
+ sideOffset = 4,
35
+ children,
36
+ className,
37
+ style,
38
+ ...props
39
+ }, ref) {
40
+ return /* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(
41
+ Tooltip.Positioner,
42
+ {
43
+ align,
44
+ side,
45
+ sideOffset,
46
+ style,
47
+ className: clsx(
48
+ resets_default["box-sizing"],
49
+ className,
50
+ style_default.positioner
51
+ ),
52
+ children: /* @__PURE__ */ jsx(ThemeProvider, { color: { bg: "#1e1e1e" }, children: /* @__PURE__ */ jsx(
53
+ Tooltip.Popup,
54
+ {
55
+ ref,
56
+ className: style_default.popup,
57
+ ...props,
58
+ children
59
+ }
60
+ ) })
61
+ }
62
+ ) });
63
+ });
64
+ export {
65
+ Popup
66
+ };
67
+ //# sourceMappingURL=popup.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/tooltip/popup.tsx", "../../src/utils/css/resets.module.css", "../../src/tooltip/style.module.css"],
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { Tooltip } from '@base-ui/react/tooltip';\nimport { forwardRef } from '@wordpress/element';\nimport {\n\ttype ThemeProvider as ThemeProviderType,\n\tprivateApis as themePrivateApis,\n} from '@wordpress/theme';\nimport type { PopupProps } from './types';\nimport { unlock } from '../lock-unlock';\nimport resetStyles from '../utils/css/resets.module.css';\nimport styles from './style.module.css';\n\nconst ThemeProvider: typeof ThemeProviderType =\n\tunlock( themePrivateApis ).ThemeProvider;\n\nconst Popup = forwardRef< HTMLDivElement, PopupProps >( function TooltipPopup(\n\t{\n\t\talign = 'center',\n\t\tside = 'bottom',\n\t\tsideOffset = 4,\n\t\tchildren,\n\t\tclassName,\n\t\tstyle,\n\t\t...props\n\t},\n\tref\n) {\n\treturn (\n\t\t<Tooltip.Portal>\n\t\t\t<Tooltip.Positioner\n\t\t\t\talign={ align }\n\t\t\t\tside={ side }\n\t\t\t\tsideOffset={ sideOffset }\n\t\t\t\tstyle={ style }\n\t\t\t\tclassName={ clsx(\n\t\t\t\t\tresetStyles[ 'box-sizing' ],\n\t\t\t\t\tclassName,\n\t\t\t\t\tstyles.positioner\n\t\t\t\t) }\n\t\t\t>\n\t\t\t\t{ /* This should ideally use whatever dark color makes sense,\n\t\t\t\tand not be hardcoded to #1e1e1e. The solutions would be to:\n\t\t\t\t - review the design of the tooltip, in case we want to stop\n\t\t\t\t hardcoding it to a dark background\n\t\t\t\t - create new semantic tokens as needed (aliasing either the \"inverted\n\t\t\t\t\t bg\" or \"perma-dark bg\" private tokens) and have Tooltip.Popup use\n\t\t\t\t them;\n\t\t\t\t - remove the hardcoded `bg` setting from the `ThemeProvider` below\n\t\t\t\t\t*/ }\n\t\t\t\t<ThemeProvider color={ { bg: '#1e1e1e' } }>\n\t\t\t\t\t<Tooltip.Popup\n\t\t\t\t\t\tref={ ref }\n\t\t\t\t\t\tclassName={ styles.popup }\n\t\t\t\t\t\t{ ...props }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ children }\n\t\t\t\t\t</Tooltip.Popup>\n\t\t\t\t</ThemeProvider>\n\t\t\t</Tooltip.Positioner>\n\t\t</Tooltip.Portal>\n\t);\n} );\n\nexport { Popup };\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", "if (typeof document !== 'undefined' && !document.head.querySelector(\"style[data-wp-hash='6a5779ba18']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"6a5779ba18\");\n\tstyle.appendChild(document.createTextNode(\"@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{background-color:var(--wpds-color-bg-surface-neutral-strong);border-radius:var(--wpds-border-radius-sm);box-shadow:var(--wpds-elevation-small);color:var(--wpds-color-fg-content-neutral);font-family:var(--wpds-font-family-body);font-size:var(--wpds-font-size-sm);line-height:1.4;padding:var(--wpds-dimension-padding-surface-2xs) var(--wpds-dimension-padding-surface-xs)}}\"));\n\tdocument.head.appendChild(style);\n}\nexport default {\"positioner\":\"_480b748dd3510e64__positioner\",\"popup\":\"_50096b232db7709d__popup\"};\n"],
5
+ "mappings": ";AAAA,OAAO,UAAU;AACjB,SAAS,eAAe;AACxB,SAAS,kBAAkB;AAC3B;AAAA,EAEC,eAAe;AAAA,OACT;AAEP,SAAS,cAAc;;;ACRvB,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;;;ACN5D,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,gkBAAgkB,CAAC;AAC3mB,WAAS,KAAK,YAAY,KAAK;AAChC;AACA,IAAO,gBAAQ,EAAC,cAAa,iCAAgC,SAAQ,2BAA0B;;;AF4C1F;AAtCL,IAAM,gBACL,OAAQ,gBAAiB,EAAE;AAE5B,IAAM,QAAQ,WAA0C,SAAS,aAChE;AAAA,EACC,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,aAAa;AAAA,EACb;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACJ,GACA,KACC;AACD,SACC,oBAAC,QAAQ,QAAR,EACA;AAAA,IAAC,QAAQ;AAAA,IAAR;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,WAAY;AAAA,QACX,eAAa,YAAa;AAAA,QAC1B;AAAA,QACA,cAAO;AAAA,MACR;AAAA,MAWA,8BAAC,iBAAc,OAAQ,EAAE,IAAI,UAAU,GACtC;AAAA,QAAC,QAAQ;AAAA,QAAR;AAAA,UACA;AAAA,UACA,WAAY,cAAO;AAAA,UACjB,GAAG;AAAA,UAEH;AAAA;AAAA,MACH,GACD;AAAA;AAAA,EACD,GACD;AAEF,CAAE;",
6
+ "names": []
7
+ }
@@ -0,0 +1,10 @@
1
+ // packages/ui/src/tooltip/provider.tsx
2
+ import { Tooltip } from "@base-ui/react/tooltip";
3
+ import { jsx } from "react/jsx-runtime";
4
+ function Provider({ children, ...props }) {
5
+ return /* @__PURE__ */ jsx(Tooltip.Provider, { ...props, children });
6
+ }
7
+ export {
8
+ Provider
9
+ };
10
+ //# sourceMappingURL=provider.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/tooltip/provider.tsx"],
4
+ "sourcesContent": ["import { Tooltip } from '@base-ui/react/tooltip';\nimport type { ProviderProps } from './types';\n\nfunction Provider( { children, ...props }: ProviderProps ) {\n\treturn <Tooltip.Provider { ...props }>{ children }</Tooltip.Provider>;\n}\n\nexport { Provider };\n"],
5
+ "mappings": ";AAAA,SAAS,eAAe;AAIhB;AADR,SAAS,SAAU,EAAE,UAAU,GAAG,MAAM,GAAmB;AAC1D,SAAO,oBAAC,QAAQ,UAAR,EAAmB,GAAG,OAAU,UAAU;AACnD;",
6
+ "names": []
7
+ }
@@ -0,0 +1,10 @@
1
+ // packages/ui/src/tooltip/root.tsx
2
+ import { Tooltip } from "@base-ui/react/tooltip";
3
+ import { jsx } from "react/jsx-runtime";
4
+ function Root(props) {
5
+ return /* @__PURE__ */ jsx(Tooltip.Root, { ...props });
6
+ }
7
+ export {
8
+ Root
9
+ };
10
+ //# sourceMappingURL=root.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/tooltip/root.tsx"],
4
+ "sourcesContent": ["import { Tooltip } from '@base-ui/react/tooltip';\nimport type { RootProps } from './types';\n\nfunction Root( props: RootProps ) {\n\treturn <Tooltip.Root { ...props } />;\n}\n\nexport { Root };\n"],
5
+ "mappings": ";AAAA,SAAS,eAAe;AAIhB;AADR,SAAS,KAAM,OAAmB;AACjC,SAAO,oBAAC,QAAQ,MAAR,EAAe,GAAG,OAAQ;AACnC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,13 @@
1
+ // packages/ui/src/tooltip/trigger.tsx
2
+ import { Tooltip } from "@base-ui/react/tooltip";
3
+ import { forwardRef } from "@wordpress/element";
4
+ import { jsx } from "react/jsx-runtime";
5
+ var Trigger = forwardRef(
6
+ function TooltipTrigger({ children, ...props }, ref) {
7
+ return /* @__PURE__ */ jsx(Tooltip.Trigger, { ref, ...props, children });
8
+ }
9
+ );
10
+ export {
11
+ Trigger
12
+ };
13
+ //# sourceMappingURL=trigger.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/tooltip/trigger.tsx"],
4
+ "sourcesContent": ["import { Tooltip } from '@base-ui/react/tooltip';\nimport { forwardRef } from '@wordpress/element';\nimport type { TriggerProps } from './types';\n\nconst Trigger = forwardRef< HTMLButtonElement, TriggerProps >(\n\tfunction TooltipTrigger( { children, ...props }, ref ) {\n\t\treturn (\n\t\t\t<Tooltip.Trigger ref={ ref } { ...props }>\n\t\t\t\t{ children }\n\t\t\t</Tooltip.Trigger>\n\t\t);\n\t}\n);\n\nexport { Trigger };\n"],
5
+ "mappings": ";AAAA,SAAS,eAAe;AACxB,SAAS,kBAAkB;AAMxB;AAHH,IAAM,UAAU;AAAA,EACf,SAAS,eAAgB,EAAE,UAAU,GAAG,MAAM,GAAG,KAAM;AACtD,WACC,oBAAC,QAAQ,SAAR,EAAgB,KAAc,GAAG,OAC/B,UACH;AAAA,EAEF;AACD;",
6
+ "names": []
7
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -3,26 +3,13 @@ import { mergeProps, useRender } from "@base-ui/react";
3
3
  import { forwardRef } from "@wordpress/element";
4
4
 
5
5
  // packages/ui/src/visually-hidden/style.module.css
6
- var css = `@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;
7
-
8
- @layer wp-ui-components {
9
- .style-module__visually-hidden__83ueL {
10
- border: 0;
11
- clip-path: inset(50%);
12
- height: 1px;
13
- margin: -1px;
14
- overflow: hidden;
15
- padding: 0;
16
- position: absolute;
17
- width: 1px;
18
- word-wrap: normal;
19
- }
6
+ if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='451a4f1fb9']")) {
7
+ const style = document.createElement("style");
8
+ style.setAttribute("data-wp-hash", "451a4f1fb9");
9
+ style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}}"));
10
+ document.head.appendChild(style);
20
11
  }
21
- `;
22
- document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css));
23
- var style_default = {
24
- "visually-hidden": "style-module__visually-hidden__83ueL"
25
- };
12
+ var style_default = { "visually-hidden": "f37b9e2e191ebd66__visually-hidden" };
26
13
 
27
14
  // packages/ui/src/visually-hidden/visually-hidden.tsx
28
15
  var VisuallyHidden = forwardRef(
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/visually-hidden/visually-hidden.tsx", "../../src/visually-hidden/style.module.css"],
4
- "sourcesContent": ["import { mergeProps, useRender } from '@base-ui/react';\nimport { forwardRef } from '@wordpress/element';\nimport type { VisuallyHiddenProps } from './types';\nimport styles from './style.module.css';\n\n/**\n * Visually hides content while keeping it accessible to screen readers.\n * Useful when providing context that's only meaningful to assistive technology.\n */\nexport const VisuallyHidden = forwardRef< HTMLDivElement, VisuallyHiddenProps >(\n\tfunction VisuallyHidden( { render, ...restProps }, ref ) {\n\t\tconst element = useRender( {\n\t\t\trender,\n\t\t\tref,\n\t\t\tprops: mergeProps< 'div' >(\n\t\t\t\t{ className: styles[ 'visually-hidden' ] },\n\t\t\t\trestProps\n\t\t\t),\n\t\t} );\n\n\t\treturn element;\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__visually-hidden__83ueL {\n\t\tborder: 0;\n\t\tclip-path: inset(50%);\n\t\theight: 1px;\n\t\tmargin: -1px;\n\t\toverflow: hidden;\n\t\tpadding: 0;\n\t\tposition: absolute;\n\t\twidth: 1px;\n\t\tword-wrap: normal;\n\t}\n}\n`;\ndocument.head\n .appendChild(document.createElement(\"style\"))\n .appendChild(document.createTextNode(css));\nexport {css};\nexport default {\n \"visually-hidden\": \"style-module__visually-hidden__83ueL\"\n};"],
5
- "mappings": ";AAAA,SAAS,YAAY,iBAAiB;AACtC,SAAS,kBAAkB;;;ACD3B,IAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBZ,SAAS,KACJ,YAAY,SAAS,cAAc,OAAO,CAAC,EAC3C,YAAY,SAAS,eAAe,GAAG,CAAC;AAE7C,IAAO,gBAAQ;AAAA,EACb,mBAAmB;AACrB;;;ADbO,IAAM,iBAAiB;AAAA,EAC7B,SAASA,gBAAgB,EAAE,QAAQ,GAAG,UAAU,GAAG,KAAM;AACxD,UAAM,UAAU,UAAW;AAAA,MAC1B;AAAA,MACA;AAAA,MACA,OAAO;AAAA,QACN,EAAE,WAAW,cAAQ,iBAAkB,EAAE;AAAA,QACzC;AAAA,MACD;AAAA,IACD,CAAE;AAEF,WAAO;AAAA,EACR;AACD;",
4
+ "sourcesContent": ["import { mergeProps, useRender } from '@base-ui/react';\nimport { forwardRef } from '@wordpress/element';\nimport type { VisuallyHiddenProps } from './types';\nimport styles from './style.module.css';\n\n/**\n * Visually hides content while keeping it accessible to screen readers.\n * Useful when providing context that's only meaningful to assistive technology.\n */\nexport const VisuallyHidden = forwardRef< HTMLDivElement, VisuallyHiddenProps >(\n\tfunction VisuallyHidden( { render, ...restProps }, ref ) {\n\t\tconst element = useRender( {\n\t\t\trender,\n\t\t\tref,\n\t\t\tprops: mergeProps< 'div' >(\n\t\t\t\t{ className: styles[ 'visually-hidden' ] },\n\t\t\t\trestProps\n\t\t\t),\n\t\t} );\n\n\t\treturn element;\n\t}\n);\n", "if (typeof document !== 'undefined' && !document.head.querySelector(\"style[data-wp-hash='451a4f1fb9']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"451a4f1fb9\");\n\tstyle.appendChild(document.createTextNode(\"@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}}\"));\n\tdocument.head.appendChild(style);\n}\nexport default {\"visually-hidden\":\"f37b9e2e191ebd66__visually-hidden\"};\n"],
5
+ "mappings": ";AAAA,SAAS,YAAY,iBAAiB;AACtC,SAAS,kBAAkB;;;ACD3B,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,wQAAwQ,CAAC;AACnT,WAAS,KAAK,YAAY,KAAK;AAChC;AACA,IAAO,gBAAQ,EAAC,mBAAkB,oCAAmC;;;ADG9D,IAAM,iBAAiB;AAAA,EAC7B,SAASA,gBAAgB,EAAE,QAAQ,GAAG,UAAU,GAAG,KAAM;AACxD,UAAM,UAAU,UAAW;AAAA,MAC1B;AAAA,MACA;AAAA,MACA,OAAO;AAAA,QACN,EAAE,WAAW,cAAQ,iBAAkB,EAAE;AAAA,QACzC;AAAA,MACD;AAAA,IACD,CAAE;AAEF,WAAO;AAAA,EACR;AACD;",
6
6
  "names": ["VisuallyHidden"]
7
7
  }
@@ -0,0 +1,17 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Badge } from '../index';
3
+ declare const meta: Meta<typeof Badge>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Badge>;
6
+ export declare const AllIntents: Story;
7
+ export declare const High: Story;
8
+ export declare const Medium: Story;
9
+ export declare const Low: Story;
10
+ export declare const Informational: Story;
11
+ export declare const Draft: Story;
12
+ export declare const Stable: Story;
13
+ export declare const None: Story;
14
+ export declare const CommentStatus: Story;
15
+ export declare const PageStatus: Story;
16
+ export declare const PluginStatus: Story;
17
+ //# sourceMappingURL=choosing-intent.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"choosing-intent.story.d.ts","sourceRoot":"","sources":["../../../src/badge/stories/choosing-intent.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,KAAK,CAc7B,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAE,OAAO,KAAK,CAAE,CAAC;AAEtC,eAAO,MAAM,UAAU,EAAE,KAYxB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAOlB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAOpB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,KAOjB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAO3B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAOpB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAOlB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAO3B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAO1B,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Badge } from '../index';
3
3
  declare const meta: Meta<typeof Badge>;
4
4
  export default meta;
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/badge/stories/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,KAAK,CAI7B,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAE,OAAO,KAAK,CAAE,CAAC;AAEtC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAMlB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,KAMjB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAM3B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAMlB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KA8CxB,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/badge/stories/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,KAAK,CAG7B,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAE,OAAO,KAAK,CAAE,CAAC;AAEtC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAMlB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,KAMjB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAM3B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAMlB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KA6CxB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type Meta, type StoryObj } from '@storybook/react-webpack5';
1
+ import { type Meta, type StoryObj } from '@storybook/react-vite';
2
2
  import { Box } from '../box';
3
3
  declare const meta: Meta<typeof Box>;
4
4
  export default meta;
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/box/stories/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAE7B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,GAAG,CAI3B,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAE,OAAO,GAAG,CAAE,CAAC;AAEpC,eAAO,MAAM,OAAO,EAAE,KAgBrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAUhC,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/box/stories/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAE7B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,GAAG,CAG3B,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAE,OAAO,GAAG,CAAE,CAAC;AAEpC,eAAO,MAAM,OAAO,EAAE,KAgBrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAUhC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Button } from '../index';
3
3
  declare const meta: Meta<typeof Button>;
4
4
  export default meta;
@@ -12,7 +12,6 @@ export declare const Neutral: Story;
12
12
  export declare const NeutralOutline: Story;
13
13
  export declare const Unstyled: Story;
14
14
  export declare const AllTonesAndVariants: Story;
15
- export declare const LinkStyledAsButton: Story;
16
15
  export declare const WithIcon: Story;
17
16
  export declare const Loading: Story;
18
17
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/button/stories/index.story.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,MAAM,CAQ9B,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAE,OAAO,MAAM,CAAE,CAAC;AAEvC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAkEjC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAShC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAWtB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,KAoBrB,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/button/stories/index.story.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,MAAM,CAQ9B,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAE,OAAO,MAAM,CAAE,CAAC;AAEvC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KA6DjC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAWtB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,KAoBrB,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import { type ReactNode, type HTMLAttributes } from 'react';
2
- import { type ButtonProps as AriakitButtonProps } from '@ariakit/react';
3
- import { type ComponentProps } from '../utils/types';
4
- export interface ButtonProps extends Omit<ComponentProps<'button'>, 'disabled' | 'aria-pressed'> {
2
+ import type { Button as _Button } from '@base-ui/react/button';
3
+ import type { ComponentProps } from '../utils/types';
4
+ type _ButtonProps = ComponentProps<typeof _Button>;
5
+ export interface ButtonProps extends Omit<_ButtonProps, 'disabled' | 'aria-pressed'> {
5
6
  /**
6
7
  * The variant of the button. Variants describe the visual style treatment
7
8
  * of the button.
@@ -10,7 +11,10 @@ export interface ButtonProps extends Omit<ComponentProps<'button'>, 'disabled' |
10
11
  */
11
12
  variant?: 'solid' | 'outline' | 'minimal' | 'unstyled';
12
13
  /**
13
- * The tone of the button. Tone describes a semantic color intent.
14
+ * The tone of the button, describing a semantic color intent:
15
+ *
16
+ * - `'brand': for the most prominent actions, using the brand colors.
17
+ * - `'neutral'` for less prominent actions.
14
18
  *
15
19
  * @default "brand"
16
20
  */
@@ -34,7 +38,7 @@ export interface ButtonProps extends Omit<ComponentProps<'button'>, 'disabled' |
34
38
  *
35
39
  * @default true
36
40
  */
37
- accessibleWhenDisabled?: AriakitButtonProps['accessibleWhenDisabled'];
41
+ focusableWhenDisabled?: _ButtonProps['focusableWhenDisabled'];
38
42
  /**
39
43
  * Indicates the current "pressed" state of toggle buttons. This should only
40
44
  * be used with neutral minimal buttons.
@@ -55,4 +59,5 @@ export interface ButtonProps extends Omit<ComponentProps<'button'>, 'disabled' |
55
59
  */
56
60
  loadingAnnouncement?: string;
57
61
  }
62
+ export {};
58
63
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/button/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,KAAK,WAAW,IAAI,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,WAAW,WAChB,SAAQ,IAAI,CAAE,cAAc,CAAE,QAAQ,CAAE,EAAE,UAAU,GAAG,cAAc,CAAE;IACvE;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;IAEvD;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAE3B;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAEvC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,kBAAkB,CAAE,wBAAwB,CAAE,CAAC;IAExE;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAE,iBAAiB,CAAE,CAAE,cAAc,CAAE,CAAC;IAEvE;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/button/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,KAAK,YAAY,GAAG,cAAc,CAAE,OAAO,OAAO,CAAE,CAAC;AAErD,MAAM,WAAW,WAChB,SAAQ,IAAI,CAAE,YAAY,EAAE,UAAU,GAAG,cAAc,CAAE;IACzD;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;IAEvD;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAE3B;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAEvC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,YAAY,CAAE,uBAAuB,CAAE,CAAC;IAEhE;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAE,iBAAiB,CAAE,CAAE,cAAc,CAAE,CAAC;IAEvE;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Shared positioning props for item popups (Select, Combobox, etc.).
3
+ */
4
+ export declare const ITEM_POPUP_POSITIONER_PROPS: {
5
+ align: "start";
6
+ sideOffset: number;
7
+ collisionPadding: number;
8
+ };
9
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/form/primitives/constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;CAIO,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Field as _Field } from '@base-ui/react/field';
2
- export declare const Control: import("react").ForwardRefExoticComponent<Omit<import("../../../utils/types").ComponentProps<import("react").ForwardRefExoticComponent<import("@base-ui/react/field").FieldControlProps & import("react").RefAttributes<HTMLInputElement>>>, "defaultValue"> & {
2
+ export declare const Control: import("react").ForwardRefExoticComponent<Omit<import("../../../utils/types").ComponentProps<import("react").ForwardRefExoticComponent<import("@base-ui/react").FieldControlProps & import("react").RefAttributes<HTMLInputElement>>>, "defaultValue"> & {
3
3
  children?: _Field.Control.Props["children"];
4
4
  defaultValue?: _Field.Control.Props["defaultValue"];
5
5
  } & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,4 +1,4 @@
1
- export declare const Description: import("react").ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react/field").FieldDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>, "ref">, "className" | "children" | "render"> & {
1
+ export declare const Description: import("react").ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").FieldDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>, "ref">, "className" | "children" | "render"> & {
2
2
  className?: string;
3
3
  render?: ((props: import("react").HTMLAttributes<any> & {
4
4
  ref?: import("react").Ref<any> | undefined;
@@ -1,5 +1,5 @@
1
1
  import { Field as _Field } from '@base-ui/react/field';
2
- export declare const Label: import("react").ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react/field").FieldLabelProps & import("react").RefAttributes<any>, "ref">, "className" | "children" | "render"> & {
2
+ export declare const Label: import("react").ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").FieldLabelProps & import("react").RefAttributes<any>, "ref">, "className" | "children" | "render"> & {
3
3
  className?: string;
4
4
  render?: ((props: import("react").HTMLAttributes<any> & {
5
5
  ref?: import("react").Ref<any> | undefined;
@@ -8,7 +8,7 @@ import { Field as _Field } from '@base-ui/react/field';
8
8
  * Simply wrapping a control with this component does not guarantee
9
9
  * accessible labeling. See examples for how to associate the label in different cases.
10
10
  */
11
- export declare const Root: import("react").ForwardRefExoticComponent<Omit<import("../../../utils/types").ComponentProps<import("react").ForwardRefExoticComponent<import("@base-ui/react/field").FieldRootProps & import("react").RefAttributes<HTMLDivElement>>>, "disabled" | "validate" | "validationMode" | "validationDebounceTime" | "invalid" | "dirty" | "touched"> & {
11
+ export declare const Root: import("react").ForwardRefExoticComponent<Omit<import("../../../utils/types").ComponentProps<import("react").ForwardRefExoticComponent<import("@base-ui/react").FieldRootProps & import("react").RefAttributes<HTMLDivElement>>>, "disabled" | "validate" | "validationMode" | "validationDebounceTime" | "invalid" | "dirty" | "touched"> & {
12
12
  children?: _Field.Root.Props["children"];
13
13
  disabled?: _Field.Root.Props["disabled"];
14
14
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import '@wordpress/theme/design-tokens.css';
3
3
  import { Field } from '../../../..';
4
4
  declare const meta: Meta<typeof Field.Root>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../../../src/form/primitives/field/stories/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,KAAK,CAAC,IAAI,CAUlC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAE,OAAO,KAAK,CAAC,IAAI,CAchD,CAAC;AAQF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAE,OAAO,KAAK,CAAC,IAAI,CAoBrD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAE,OAAO,KAAK,CAAC,IAAI,CAoB5D,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAE,OAAO,KAAK,CAAC,IAAI,CAkBpD,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../../../src/form/primitives/field/stories/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,KAAK,CAAC,IAAI,CAUlC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAE,OAAO,KAAK,CAAC,IAAI,CAchD,CAAC;AAQF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAE,OAAO,KAAK,CAAC,IAAI,CAoBrD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAE,OAAO,KAAK,CAAC,IAAI,CAoB5D,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAE,OAAO,KAAK,CAAC,IAAI,CAkBpD,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare const FieldsetLegend: import("react").ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react/fieldset").FieldsetLegendProps & import("react").RefAttributes<HTMLDivElement>, "ref">, "className" | "children" | "render"> & {
1
+ export declare const FieldsetLegend: import("react").ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").FieldsetLegendProps & import("react").RefAttributes<HTMLDivElement>, "ref">, "className" | "children" | "render"> & {
2
2
  className?: string;
3
3
  render?: ((props: import("react").HTMLAttributes<any> & {
4
4
  ref?: import("react").Ref<any> | undefined;
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * To label a single form control element, use the `Field` component instead.
6
6
  */
7
- export declare const FieldsetRoot: import("react").ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react/fieldset").FieldsetRootProps & import("react").RefAttributes<HTMLElement>, "ref">, "className" | "children" | "render"> & {
7
+ export declare const FieldsetRoot: import("react").ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").FieldsetRootProps & import("react").RefAttributes<HTMLElement>, "ref">, "className" | "children" | "render"> & {
8
8
  className?: string;
9
9
  render?: ((props: import("react").HTMLAttributes<any> & {
10
10
  ref?: import("react").Ref<any> | undefined;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Fieldset } from '../../../..';
3
3
  declare const meta: Meta<typeof Fieldset.Root>;
4
4
  export default meta;
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../../../src/form/primitives/fieldset/stories/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,CAAC,IAAI,CAQrC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAE,OAAO,QAAQ,CAAC,IAAI,CAAE,CAAC;AAE9C,eAAO,MAAM,OAAO,EAAE,KAiBrB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,EAAE,KAqBzB,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../../../src/form/primitives/fieldset/stories/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,CAAC,IAAI,CAQrC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAE,OAAO,QAAQ,CAAC,IAAI,CAAE,CAAC;AAE9C,eAAO,MAAM,OAAO,EAAE,KAiBrB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,EAAE,KAqBzB,CAAC"}
@@ -1,3 +1,6 @@
1
1
  export * as Field from './field';
2
2
  export * as Fieldset from './fieldset';
3
+ export { Input } from './input';
4
+ export { InputLayout } from './input-layout';
5
+ export * as Select from './select';
3
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/form/primitives/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/form/primitives/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Input } from './input';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/form/primitives/input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { Input as _Input } from '@base-ui/react/input';
2
+ export declare const Input: import("react").ForwardRefExoticComponent<Omit<import("../../../utils/types").ComponentProps<import("react").ForwardRefExoticComponent<import("@base-ui/react").InputProps & import("react").RefAttributes<HTMLInputElement>>>, "defaultValue" | "prefix" | "size" | "disabled" | "type" | "value"> & Pick<import("../input-layout/types").InputLayoutProps, "prefix" | "suffix"> & {
3
+ disabled?: boolean;
4
+ } & {
5
+ type?: _Input.Props["type"];
6
+ defaultValue?: _Input.Props["defaultValue"];
7
+ value?: _Input.Props["value"];
8
+ size?: Exclude<import("../input-layout/types").InputLayoutProps["size"], "small">;
9
+ } & import("react").RefAttributes<HTMLInputElement>>;
10
+ //# sourceMappingURL=input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../src/form/primitives/input/input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAQvD,eAAO,MAAM,KAAK;;;;;;;oDAmBf,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Input } from '../../../..';
3
+ declare const meta: Meta<typeof Input>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Input>;
6
+ export declare const Default: Story;
7
+ /**
8
+ * The `InputLayout.Slot` component can be used to add standard padding in
9
+ * the `prefix` or `suffix` slot.
10
+ */
11
+ export declare const WithPrefix: Story;
12
+ export declare const Disabled: Story;
13
+ //# sourceMappingURL=index.story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../../../src/form/primitives/input/stories/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAe,MAAM,aAAa,CAAC;AAEjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,KAAK,CAS7B,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAE,OAAO,KAAK,CAAE,CAAC;AAEtC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,KAKxB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../../../src/form/primitives/input/test/index.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ import type { Input } from '@base-ui/react/input';
2
+ import type { InputLayoutProps } from '../input-layout/types';
3
+ import type { ComponentProps } from '../../../utils/types';
4
+ export type InputProps = Omit<ComponentProps<typeof Input>, 'value' | 'defaultValue' | 'type' | 'disabled' | 'prefix' | 'size'> & Pick<InputLayoutProps, 'prefix' | 'suffix'> & {
5
+ /**
6
+ * Whether the field is disabled.
7
+ */
8
+ disabled?: boolean;
9
+ } & {
10
+ /**
11
+ * The type of the input element.
12
+ */
13
+ type?: Input.Props['type'];
14
+ /**
15
+ * The default value to use in uncontrolled mode.
16
+ */
17
+ defaultValue?: Input.Props['defaultValue'];
18
+ /**
19
+ * The value to use in controlled mode.
20
+ */
21
+ value?: Input.Props['value'];
22
+ /**
23
+ * The size of the field.
24
+ */
25
+ size?: Exclude<InputLayoutProps['size'], 'small'>;
26
+ };
27
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/form/primitives/input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,MAAM,MAAM,UAAU,GAAG,IAAI,CAC5B,cAAc,CAAE,OAAO,KAAK,CAAE,EAC9B,OAAO,GAAG,cAAc,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAClE,GACA,IAAI,CAAE,gBAAgB,EAAE,QAAQ,GAAG,QAAQ,CAAE,GAAG;IAC/C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG;IACH;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,KAAK,CAAE,MAAM,CAAE,CAAC;IAC7B;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,KAAK,CAAE,cAAc,CAAE,CAAC;IAC7C;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAE,OAAO,CAAE,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAE,gBAAgB,CAAE,MAAM,CAAE,EAAE,OAAO,CAAE,CAAC;CACtD,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { InputLayoutSlotType } from './types';
2
+ /**
3
+ * Context for providing slot type information to child components.
4
+ */
5
+ export declare const InputLayoutSlotTypeContext: import("react").Context<InputLayoutSlotType | null>;
6
+ /**
7
+ * Hook to access the current slot context.
8
+ */
9
+ export declare function useInputLayoutSlotContext(): InputLayoutSlotType | null;
10
+ /**
11
+ * Wrapper component that provides slot type context for prefix and suffix slots.
12
+ */
13
+ export declare function SlotContextProvider({ type, children, }: {
14
+ type: InputLayoutSlotType;
15
+ children: React.ReactNode;
16
+ }): import("react").JSX.Element | null;
17
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/form/primitives/input-layout/context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,0BAA0B,qDACa,CAAC;AAErD;;GAEG;AACH,wBAAgB,yBAAyB,+BAExC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAE,EACpC,IAAI,EACJ,QAAQ,GACR,EAAE;IACF,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,sCAUA"}