@wordpress/components 39.0.0 → 40.1.1-next.v.202608281122.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 (1121) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/CONTRIBUTING.md +7 -8
  3. package/build/base-control/styles/base-control-styles.cjs +150 -45
  4. package/build/base-control/styles/base-control-styles.cjs.map +4 -4
  5. package/build/border-box-control/border-box-control/hook.cjs +88 -23
  6. package/build/border-box-control/border-box-control/hook.cjs.map +3 -3
  7. package/build/border-box-control/border-box-control-linked-button/hook.cjs +87 -8
  8. package/build/border-box-control/border-box-control-linked-button/hook.cjs.map +4 -4
  9. package/build/border-box-control/border-box-control-split-controls/hook.cjs +89 -16
  10. package/build/border-box-control/border-box-control-split-controls/hook.cjs.map +4 -4
  11. package/build/border-box-control/border-box-control-visualizer/hook.cjs +108 -8
  12. package/build/border-box-control/border-box-control-visualizer/hook.cjs.map +4 -4
  13. package/build/border-control/border-control/hook.cjs +89 -14
  14. package/build/border-control/border-control/hook.cjs.map +4 -4
  15. package/build/border-control/border-control-dropdown/component.cjs +2 -4
  16. package/build/border-control/border-control-dropdown/component.cjs.map +2 -2
  17. package/build/border-control/border-control-dropdown/hook.cjs +103 -27
  18. package/build/border-control/border-control-dropdown/hook.cjs.map +4 -4
  19. package/build/box-control/box-input-control.cjs +102 -10
  20. package/build/box-control/box-input-control.cjs.map +4 -4
  21. package/build/box-control/index.cjs +95 -5
  22. package/build/box-control/index.cjs.map +4 -4
  23. package/build/button/index.cjs +10 -3
  24. package/build/button/index.cjs.map +2 -2
  25. package/build/card/card-body/hook.cjs +4 -2
  26. package/build/card/card-body/hook.cjs.map +2 -2
  27. package/build/card/styles.cjs +31 -16
  28. package/build/card/styles.cjs.map +2 -2
  29. package/build/circular-option-picker/circular-option-picker-option.cjs +4 -5
  30. package/build/circular-option-picker/circular-option-picker-option.cjs.map +2 -2
  31. package/build/circular-option-picker/circular-option-picker.cjs +24 -6
  32. package/build/circular-option-picker/circular-option-picker.cjs.map +2 -2
  33. package/build/circular-option-picker/index.cjs +6 -2
  34. package/build/circular-option-picker/index.cjs.map +2 -2
  35. package/build/circular-option-picker/utils.cjs +38 -8
  36. package/build/circular-option-picker/utils.cjs.map +3 -3
  37. package/build/color-palette/index.cjs +103 -10
  38. package/build/color-palette/index.cjs.map +3 -3
  39. package/build/combobox-control/index.cjs +87 -2
  40. package/build/combobox-control/index.cjs.map +3 -3
  41. package/build/confirm-dialog/component.cjs +5 -1
  42. package/build/confirm-dialog/component.cjs.map +2 -2
  43. package/build/content-editable-control/index.cjs +1 -1
  44. package/build/content-editable-control/index.cjs.map +2 -2
  45. package/build/context/context-system-provider.cjs +1 -1
  46. package/build/context/context-system-provider.cjs.map +3 -3
  47. package/build/custom-gradient-picker/gradient-bar/control-points.cjs +14 -2
  48. package/build/custom-gradient-picker/gradient-bar/control-points.cjs.map +2 -2
  49. package/build/custom-gradient-picker/gradient-bar/index.cjs +2 -0
  50. package/build/custom-gradient-picker/gradient-bar/index.cjs.map +2 -2
  51. package/build/dropdown/dropdown-content-wrapper.cjs +102 -3
  52. package/build/dropdown/dropdown-content-wrapper.cjs.map +4 -4
  53. package/build/duotone-picker/custom-duotone-bar.cjs +1 -0
  54. package/build/duotone-picker/custom-duotone-bar.cjs.map +2 -2
  55. package/build/duotone-picker/duotone-picker.cjs +23 -14
  56. package/build/duotone-picker/duotone-picker.cjs.map +2 -2
  57. package/build/focal-point-picker/index.cjs +5 -3
  58. package/build/focal-point-picker/index.cjs.map +2 -2
  59. package/build/gradient-picker/index.cjs +105 -11
  60. package/build/gradient-picker/index.cjs.map +3 -3
  61. package/build/input-control/input-field.cjs +1 -0
  62. package/build/input-control/input-field.cjs.map +2 -2
  63. package/build/input-control/styles/input-control-styles.cjs +22 -22
  64. package/build/input-control/styles/input-control-styles.cjs.map +2 -2
  65. package/build/modal/index.cjs +1 -0
  66. package/build/modal/index.cjs.map +2 -2
  67. package/build/palette-edit/index.cjs +208 -33
  68. package/build/palette-edit/index.cjs.map +3 -3
  69. package/build/private-apis.cjs +1 -6
  70. package/build/private-apis.cjs.map +2 -2
  71. package/build/progress-bar/index.cjs +95 -7
  72. package/build/progress-bar/index.cjs.map +4 -4
  73. package/build/radio-control/index.cjs +1 -0
  74. package/build/radio-control/index.cjs.map +2 -2
  75. package/build/resizable-box/resize-tooltip/index.cjs +91 -4
  76. package/build/resizable-box/resize-tooltip/index.cjs.map +3 -3
  77. package/build/resizable-box/resize-tooltip/label.cjs +103 -6
  78. package/build/resizable-box/resize-tooltip/label.cjs.map +4 -4
  79. package/build/scrollable/hook.cjs +93 -6
  80. package/build/scrollable/hook.cjs.map +4 -4
  81. package/build/snackbar/index.cjs +8 -5
  82. package/build/snackbar/index.cjs.map +2 -2
  83. package/build/textarea-control/index.cjs +87 -3
  84. package/build/textarea-control/index.cjs.map +3 -3
  85. package/build/toggle-group-control/toggle-group-control/component.cjs +1 -1
  86. package/build/toggle-group-control/toggle-group-control/component.cjs.map +2 -2
  87. package/build/toggle-group-control/toggle-group-control-option-base/component.cjs +1 -1
  88. package/build/toggle-group-control/toggle-group-control-option-base/component.cjs.map +2 -2
  89. package/build/tools-panel/tools-panel-item/hook.cjs +2 -2
  90. package/build/tools-panel/tools-panel-item/hook.cjs.map +2 -2
  91. package/build/utils/config-values.cjs +0 -3
  92. package/build/utils/config-values.cjs.map +2 -2
  93. package/build/validated-form-controls/components/content-editable-control.cjs +3 -2
  94. package/build/validated-form-controls/components/content-editable-control.cjs.map +2 -2
  95. package/build/validated-form-controls/components/custom-select-control.cjs +3 -2
  96. package/build/validated-form-controls/components/custom-select-control.cjs.map +2 -2
  97. package/build/validated-form-controls/components/index.cjs +1 -9
  98. package/build/validated-form-controls/components/index.cjs.map +2 -2
  99. package/build/validated-form-controls/components/input-control.cjs +9 -2
  100. package/build/validated-form-controls/components/input-control.cjs.map +3 -3
  101. package/build/validated-form-controls/components/range-control.cjs +3 -2
  102. package/build/validated-form-controls/components/range-control.cjs.map +2 -2
  103. package/build/validated-form-controls/components/textarea-control.cjs +9 -2
  104. package/build/validated-form-controls/components/textarea-control.cjs.map +3 -3
  105. package/build/validated-form-controls/index.cjs +1 -3
  106. package/build/validated-form-controls/index.cjs.map +2 -2
  107. package/build/z-stack/component.cjs +105 -7
  108. package/build/z-stack/component.cjs.map +4 -4
  109. package/build-module/base-control/styles/base-control-styles.mjs +151 -46
  110. package/build-module/base-control/styles/base-control-styles.mjs.map +3 -3
  111. package/build-module/border-box-control/border-box-control/hook.mjs +89 -14
  112. package/build-module/border-box-control/border-box-control/hook.mjs.map +3 -3
  113. package/build-module/border-box-control/border-box-control-linked-button/hook.mjs +87 -8
  114. package/build-module/border-box-control/border-box-control-linked-button/hook.mjs.map +3 -3
  115. package/build-module/border-box-control/border-box-control-split-controls/hook.mjs +89 -16
  116. package/build-module/border-box-control/border-box-control-split-controls/hook.mjs.map +3 -3
  117. package/build-module/border-box-control/border-box-control-visualizer/hook.mjs +108 -8
  118. package/build-module/border-box-control/border-box-control-visualizer/hook.mjs.map +3 -3
  119. package/build-module/border-control/border-control/hook.mjs +90 -15
  120. package/build-module/border-control/border-control/hook.mjs.map +3 -3
  121. package/build-module/border-control/border-control-dropdown/component.mjs +2 -4
  122. package/build-module/border-control/border-control-dropdown/component.mjs.map +2 -2
  123. package/build-module/border-control/border-control-dropdown/hook.mjs +103 -27
  124. package/build-module/border-control/border-control-dropdown/hook.mjs.map +3 -3
  125. package/build-module/box-control/box-input-control.mjs +102 -10
  126. package/build-module/box-control/box-input-control.mjs.map +3 -3
  127. package/build-module/box-control/index.mjs +95 -5
  128. package/build-module/box-control/index.mjs.map +3 -3
  129. package/build-module/button/index.mjs +11 -4
  130. package/build-module/button/index.mjs.map +2 -2
  131. package/build-module/card/card-body/hook.mjs +4 -2
  132. package/build-module/card/card-body/hook.mjs.map +2 -2
  133. package/build-module/card/styles.mjs +30 -16
  134. package/build-module/card/styles.mjs.map +2 -2
  135. package/build-module/circular-option-picker/circular-option-picker-option.mjs +4 -5
  136. package/build-module/circular-option-picker/circular-option-picker-option.mjs.map +2 -2
  137. package/build-module/circular-option-picker/circular-option-picker.mjs +24 -6
  138. package/build-module/circular-option-picker/circular-option-picker.mjs.map +2 -2
  139. package/build-module/circular-option-picker/index.mjs +4 -2
  140. package/build-module/circular-option-picker/index.mjs.map +2 -2
  141. package/build-module/circular-option-picker/utils.mjs +25 -7
  142. package/build-module/circular-option-picker/utils.mjs.map +2 -2
  143. package/build-module/color-palette/index.mjs +104 -11
  144. package/build-module/color-palette/index.mjs.map +3 -3
  145. package/build-module/combobox-control/index.mjs +88 -3
  146. package/build-module/combobox-control/index.mjs.map +3 -3
  147. package/build-module/confirm-dialog/component.mjs +5 -1
  148. package/build-module/confirm-dialog/component.mjs.map +2 -2
  149. package/build-module/content-editable-control/index.mjs +1 -1
  150. package/build-module/content-editable-control/index.mjs.map +2 -2
  151. package/build-module/context/context-system-provider.mjs +1 -1
  152. package/build-module/context/context-system-provider.mjs.map +3 -3
  153. package/build-module/custom-gradient-picker/gradient-bar/control-points.mjs +14 -2
  154. package/build-module/custom-gradient-picker/gradient-bar/control-points.mjs.map +2 -2
  155. package/build-module/custom-gradient-picker/gradient-bar/index.mjs +2 -0
  156. package/build-module/custom-gradient-picker/gradient-bar/index.mjs.map +2 -2
  157. package/build-module/dropdown/dropdown-content-wrapper.mjs +92 -3
  158. package/build-module/dropdown/dropdown-content-wrapper.mjs.map +3 -3
  159. package/build-module/duotone-picker/custom-duotone-bar.mjs +1 -0
  160. package/build-module/duotone-picker/custom-duotone-bar.mjs.map +2 -2
  161. package/build-module/duotone-picker/duotone-picker.mjs +24 -15
  162. package/build-module/duotone-picker/duotone-picker.mjs.map +2 -2
  163. package/build-module/focal-point-picker/index.mjs +5 -3
  164. package/build-module/focal-point-picker/index.mjs.map +2 -2
  165. package/build-module/gradient-picker/index.mjs +106 -12
  166. package/build-module/gradient-picker/index.mjs.map +3 -3
  167. package/build-module/input-control/input-field.mjs +1 -0
  168. package/build-module/input-control/input-field.mjs.map +2 -2
  169. package/build-module/input-control/styles/input-control-styles.mjs +22 -22
  170. package/build-module/input-control/styles/input-control-styles.mjs.map +2 -2
  171. package/build-module/modal/index.mjs +1 -0
  172. package/build-module/modal/index.mjs.map +2 -2
  173. package/build-module/palette-edit/index.mjs +209 -34
  174. package/build-module/palette-edit/index.mjs.map +2 -2
  175. package/build-module/private-apis.mjs +2 -7
  176. package/build-module/private-apis.mjs.map +2 -2
  177. package/build-module/progress-bar/index.mjs +95 -7
  178. package/build-module/progress-bar/index.mjs.map +3 -3
  179. package/build-module/radio-control/index.mjs +1 -0
  180. package/build-module/radio-control/index.mjs.map +2 -2
  181. package/build-module/resizable-box/resize-tooltip/index.mjs +91 -4
  182. package/build-module/resizable-box/resize-tooltip/index.mjs.map +3 -3
  183. package/build-module/resizable-box/resize-tooltip/label.mjs +93 -6
  184. package/build-module/resizable-box/resize-tooltip/label.mjs.map +3 -3
  185. package/build-module/scrollable/hook.mjs +93 -6
  186. package/build-module/scrollable/hook.mjs.map +4 -4
  187. package/build-module/snackbar/index.mjs +8 -5
  188. package/build-module/snackbar/index.mjs.map +2 -2
  189. package/build-module/textarea-control/index.mjs +87 -3
  190. package/build-module/textarea-control/index.mjs.map +3 -3
  191. package/build-module/toggle-group-control/toggle-group-control/component.mjs +1 -1
  192. package/build-module/toggle-group-control/toggle-group-control/component.mjs.map +2 -2
  193. package/build-module/toggle-group-control/toggle-group-control-option-base/component.mjs +1 -1
  194. package/build-module/toggle-group-control/toggle-group-control-option-base/component.mjs.map +2 -2
  195. package/build-module/tools-panel/tools-panel-item/hook.mjs +2 -2
  196. package/build-module/tools-panel/tools-panel-item/hook.mjs.map +2 -2
  197. package/build-module/utils/config-values.mjs +0 -3
  198. package/build-module/utils/config-values.mjs.map +2 -2
  199. package/build-module/validated-form-controls/components/content-editable-control.mjs +2 -1
  200. package/build-module/validated-form-controls/components/content-editable-control.mjs.map +2 -2
  201. package/build-module/validated-form-controls/components/custom-select-control.mjs +2 -1
  202. package/build-module/validated-form-controls/components/custom-select-control.mjs.map +2 -2
  203. package/build-module/validated-form-controls/components/index.mjs +0 -4
  204. package/build-module/validated-form-controls/components/index.mjs.map +2 -2
  205. package/build-module/validated-form-controls/components/input-control.mjs +8 -1
  206. package/build-module/validated-form-controls/components/input-control.mjs.map +2 -2
  207. package/build-module/validated-form-controls/components/range-control.mjs +2 -1
  208. package/build-module/validated-form-controls/components/range-control.mjs.map +2 -2
  209. package/build-module/validated-form-controls/components/textarea-control.mjs +8 -1
  210. package/build-module/validated-form-controls/components/textarea-control.mjs.map +2 -2
  211. package/build-module/validated-form-controls/index.mjs +0 -1
  212. package/build-module/validated-form-controls/index.mjs.map +2 -2
  213. package/build-module/z-stack/component.mjs +95 -7
  214. package/build-module/z-stack/component.mjs.map +3 -3
  215. package/build-style/style-rtl.css +79 -134
  216. package/build-style/style.css +79 -134
  217. package/build-types/base-control/styles/base-control-styles.d.ts +21 -20
  218. package/build-types/base-control/styles/base-control-styles.d.ts.map +1 -1
  219. package/build-types/border-box-control/border-box-control/hook.d.ts.map +1 -1
  220. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts.map +1 -1
  221. package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts.map +1 -1
  222. package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +863 -1
  223. package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts.map +1 -1
  224. package/build-types/border-box-control/types.d.ts +6 -2
  225. package/build-types/border-box-control/types.d.ts.map +1 -1
  226. package/build-types/border-control/border-control/hook.d.ts.map +1 -1
  227. package/build-types/border-control/border-control-dropdown/component.d.ts.map +1 -1
  228. package/build-types/border-control/border-control-dropdown/hook.d.ts +4 -2
  229. package/build-types/border-control/border-control-dropdown/hook.d.ts.map +1 -1
  230. package/build-types/box-control/box-input-control.d.ts.map +1 -1
  231. package/build-types/box-control/index.d.ts.map +1 -1
  232. package/build-types/button/index.d.ts.map +1 -1
  233. package/build-types/card/styles.d.ts +2 -1
  234. package/build-types/card/styles.d.ts.map +1 -1
  235. package/build-types/circular-option-picker/circular-option-picker-option.d.ts.map +1 -1
  236. package/build-types/circular-option-picker/circular-option-picker.d.ts.map +1 -1
  237. package/build-types/circular-option-picker/index.d.ts +1 -1
  238. package/build-types/circular-option-picker/index.d.ts.map +1 -1
  239. package/build-types/circular-option-picker/types.d.ts +34 -26
  240. package/build-types/circular-option-picker/types.d.ts.map +1 -1
  241. package/build-types/circular-option-picker/utils.d.ts +9 -5
  242. package/build-types/circular-option-picker/utils.d.ts.map +1 -1
  243. package/build-types/color-palette/index.d.ts.map +1 -1
  244. package/build-types/color-palette/types.d.ts +23 -3
  245. package/build-types/color-palette/types.d.ts.map +1 -1
  246. package/build-types/combobox-control/index.d.ts.map +1 -1
  247. package/build-types/combobox-control/types.d.ts +4 -2
  248. package/build-types/combobox-control/types.d.ts.map +1 -1
  249. package/build-types/confirm-dialog/component.d.ts.map +1 -1
  250. package/build-types/confirm-dialog/types.d.ts +11 -0
  251. package/build-types/confirm-dialog/types.d.ts.map +1 -1
  252. package/build-types/context/context-system-provider.d.ts.map +1 -1
  253. package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts +1 -1
  254. package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -1
  255. package/build-types/custom-gradient-picker/gradient-bar/index.d.ts +1 -1
  256. package/build-types/custom-gradient-picker/gradient-bar/index.d.ts.map +1 -1
  257. package/build-types/custom-gradient-picker/types.d.ts +10 -0
  258. package/build-types/custom-gradient-picker/types.d.ts.map +1 -1
  259. package/build-types/dropdown/dropdown-content-wrapper.d.ts.map +1 -1
  260. package/build-types/duotone-picker/custom-duotone-bar.d.ts.map +1 -1
  261. package/build-types/duotone-picker/duotone-picker.d.ts +1 -1
  262. package/build-types/duotone-picker/duotone-picker.d.ts.map +1 -1
  263. package/build-types/duotone-picker/types.d.ts +43 -4
  264. package/build-types/duotone-picker/types.d.ts.map +1 -1
  265. package/build-types/focal-point-picker/index.d.ts.map +1 -1
  266. package/build-types/gradient-picker/index.d.ts.map +1 -1
  267. package/build-types/gradient-picker/types.d.ts +22 -3
  268. package/build-types/gradient-picker/types.d.ts.map +1 -1
  269. package/build-types/input-control/input-field.d.ts.map +1 -1
  270. package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
  271. package/build-types/modal/index.d.ts.map +1 -1
  272. package/build-types/palette-edit/index.d.ts +8 -5
  273. package/build-types/palette-edit/index.d.ts.map +1 -1
  274. package/build-types/palette-edit/types.d.ts +47 -8
  275. package/build-types/palette-edit/types.d.ts.map +1 -1
  276. package/build-types/popover/types.d.ts +6 -2
  277. package/build-types/popover/types.d.ts.map +1 -1
  278. package/build-types/private-apis.d.ts.map +1 -1
  279. package/build-types/progress-bar/index.d.ts.map +1 -1
  280. package/build-types/radio-control/index.d.ts.map +1 -1
  281. package/build-types/radio-control/types.d.ts +6 -0
  282. package/build-types/radio-control/types.d.ts.map +1 -1
  283. package/build-types/resizable-box/resize-tooltip/index.d.ts +4 -5
  284. package/build-types/resizable-box/resize-tooltip/index.d.ts.map +1 -1
  285. package/build-types/resizable-box/resize-tooltip/label.d.ts.map +1 -1
  286. package/build-types/scrollable/hook.d.ts.map +1 -1
  287. package/build-types/snackbar/index.d.ts.map +1 -1
  288. package/build-types/textarea-control/index.d.ts.map +1 -1
  289. package/build-types/tools-panel/tools-panel-item/hook.d.ts.map +1 -1
  290. package/build-types/utils/config-values.d.ts +0 -3
  291. package/build-types/validated-form-controls/components/content-editable-control.d.ts.map +1 -1
  292. package/build-types/validated-form-controls/components/custom-select-control.d.ts.map +1 -1
  293. package/build-types/validated-form-controls/components/index.d.ts +0 -4
  294. package/build-types/validated-form-controls/components/index.d.ts.map +1 -1
  295. package/build-types/validated-form-controls/components/input-control.d.ts.map +1 -1
  296. package/build-types/validated-form-controls/components/range-control.d.ts.map +1 -1
  297. package/build-types/validated-form-controls/components/textarea-control.d.ts.map +1 -1
  298. package/build-types/validated-form-controls/index.d.ts +0 -1
  299. package/build-types/validated-form-controls/index.d.ts.map +1 -1
  300. package/build-types/z-stack/component.d.ts.map +1 -1
  301. package/package.json +30 -30
  302. package/src/animate/stories/index.story.tsx +0 -10
  303. package/src/base-control/stories/index.story.tsx +1 -1
  304. package/src/base-control/styles/base-control-styles.tsx +115 -0
  305. package/src/base-control/styles/style.module.scss +39 -0
  306. package/src/border-box-control/border-box-control/README.md +2 -2
  307. package/src/border-box-control/border-box-control/hook.ts +5 -16
  308. package/src/border-box-control/border-box-control-linked-button/hook.ts +6 -10
  309. package/src/border-box-control/border-box-control-split-controls/hook.ts +11 -20
  310. package/src/border-box-control/border-box-control-visualizer/hook.ts +37 -11
  311. package/src/border-box-control/stories/index.story.tsx +1 -1
  312. package/src/border-box-control/style.module.scss +43 -0
  313. package/src/border-box-control/types.ts +6 -2
  314. package/src/border-control/border-control/hook.ts +10 -19
  315. package/src/border-control/border-control-dropdown/component.tsx +6 -8
  316. package/src/border-control/border-control-dropdown/hook.ts +23 -32
  317. package/src/border-control/style.module.scss +93 -0
  318. package/src/border-control/test/{index.js → index.jsx} +63 -31
  319. package/src/box-control/box-input-control.tsx +31 -16
  320. package/src/box-control/index.tsx +15 -12
  321. package/src/box-control/style.module.scss +28 -0
  322. package/src/box-control/test/index.tsx +161 -0
  323. package/src/button/index.tsx +32 -10
  324. package/src/button/test/index.tsx +51 -0
  325. package/src/card/card-body/hook.ts +2 -2
  326. package/src/card/styles.ts +11 -1
  327. package/src/card/test/__snapshots__/index.tsx.snap +27 -27
  328. package/src/circular-option-picker/README.md +8 -4
  329. package/src/circular-option-picker/circular-option-picker-option.tsx +26 -16
  330. package/src/circular-option-picker/circular-option-picker.tsx +47 -14
  331. package/src/circular-option-picker/index.tsx +5 -1
  332. package/src/circular-option-picker/stories/index.story.tsx +3 -3
  333. package/src/circular-option-picker/test/index.tsx +152 -3
  334. package/src/circular-option-picker/types.ts +38 -32
  335. package/src/circular-option-picker/utils.tsx +35 -5
  336. package/src/clipboard-button/index.tsx +1 -1
  337. package/src/color-palette/README.md +11 -7
  338. package/src/color-palette/index.tsx +28 -14
  339. package/src/color-palette/stories/index.story.tsx +5 -0
  340. package/src/color-palette/style.module.scss +12 -0
  341. package/src/color-palette/test/index.tsx +80 -5
  342. package/src/color-palette/types.ts +23 -3
  343. package/src/color-picker/stories/index.story.tsx +0 -5
  344. package/src/combobox-control/README.md +1 -1
  345. package/src/combobox-control/index.tsx +4 -4
  346. package/src/combobox-control/style.module.scss +6 -0
  347. package/src/combobox-control/style.scss +1 -1
  348. package/src/combobox-control/types.ts +4 -2
  349. package/src/composite/legacy/stories/index.story.tsx +10 -10
  350. package/src/composite/stories/index.story.tsx +0 -5
  351. package/src/confirm-dialog/README.md +16 -0
  352. package/src/confirm-dialog/component.tsx +7 -1
  353. package/src/confirm-dialog/test/index.tsx +41 -0
  354. package/src/confirm-dialog/types.ts +11 -0
  355. package/src/content-editable-control/style.module.scss +0 -1
  356. package/src/context/{context-system-provider.js → context-system-provider.jsx} +0 -1
  357. package/src/context/test/__snapshots__/{context-system-provider.js.snap → context-system-provider.jsx.snap} +3 -3
  358. package/src/custom-gradient-picker/gradient-bar/control-points.tsx +24 -3
  359. package/src/custom-gradient-picker/gradient-bar/index.tsx +2 -0
  360. package/src/custom-gradient-picker/test/index.tsx +134 -0
  361. package/src/custom-gradient-picker/types.ts +10 -0
  362. package/src/dropdown/dropdown-content-wrapper.tsx +17 -7
  363. package/src/dropdown/stories/index.story.tsx +0 -5
  364. package/src/dropdown/style.module.scss +25 -0
  365. package/src/dropdown/test/index.tsx +51 -0
  366. package/src/duotone-picker/README.md +21 -6
  367. package/src/duotone-picker/custom-duotone-bar.tsx +1 -0
  368. package/src/duotone-picker/duotone-picker.tsx +79 -54
  369. package/src/duotone-picker/stories/duotone-picker.story.tsx +63 -15
  370. package/src/duotone-picker/test/custom-duotone-bar.tsx +114 -0
  371. package/src/duotone-picker/test/index.tsx +346 -0
  372. package/src/duotone-picker/types.ts +48 -4
  373. package/src/focal-point-picker/index.tsx +6 -2
  374. package/src/focal-point-picker/stories/index.story.tsx +15 -0
  375. package/src/focal-point-picker/test/index.tsx +31 -0
  376. package/src/form-toggle/stories/index.story.tsx +3 -0
  377. package/src/form-token-field/style.scss +7 -1
  378. package/src/gradient-picker/README.md +19 -10
  379. package/src/gradient-picker/index.tsx +43 -16
  380. package/src/gradient-picker/stories/index.story.tsx +5 -0
  381. package/src/gradient-picker/test/index.tsx +84 -0
  382. package/src/gradient-picker/types.ts +22 -3
  383. package/src/input-control/input-field.tsx +1 -0
  384. package/src/input-control/stories/index.story.tsx +3 -3
  385. package/src/input-control/stories/migration-guide.mdx +201 -0
  386. package/src/input-control/style.scss +11 -0
  387. package/src/input-control/styles/input-control-styles.tsx +30 -11
  388. package/src/input-control/test/{index.js → index.jsx} +10 -0
  389. package/src/keyboard-shortcuts/stories/index.story.tsx +2 -2
  390. package/src/menu-group/stories/index.story.tsx +9 -6
  391. package/src/menu-item/stories/index.story.tsx +6 -3
  392. package/src/menu-items-choice/stories/index.story.tsx +14 -11
  393. package/src/modal/index.tsx +1 -0
  394. package/src/modal/test/index.tsx +19 -0
  395. package/src/navigator/stories/index.story.tsx +0 -5
  396. package/src/number-control/stories/index.story.tsx +3 -3
  397. package/src/palette-edit/index.tsx +364 -70
  398. package/src/palette-edit/stories/index.story.tsx +59 -18
  399. package/src/palette-edit/style.scss +3 -1
  400. package/src/palette-edit/test/index.tsx +375 -1
  401. package/src/palette-edit/types.ts +50 -8
  402. package/src/popover/README.md +2 -2
  403. package/src/popover/stories/index.story.tsx +5 -1
  404. package/src/popover/stories/utils.tsx +79 -0
  405. package/src/popover/test/index.tsx +24 -1
  406. package/src/popover/test/utils/index.js +1 -0
  407. package/src/popover/test/utils/index.tsx +4 -78
  408. package/src/popover/types.ts +9 -3
  409. package/src/private-apis.ts +0 -8
  410. package/src/progress-bar/index.tsx +10 -6
  411. package/src/progress-bar/style.module.scss +62 -0
  412. package/src/progress-bar/test/index.tsx +13 -11
  413. package/src/radio-control/README.md +3 -1
  414. package/src/radio-control/index.tsx +1 -0
  415. package/src/radio-control/stories/index.story.tsx +12 -0
  416. package/src/radio-control/style.scss +1 -3
  417. package/src/radio-control/test/index.tsx +59 -0
  418. package/src/radio-control/types.ts +6 -0
  419. package/src/range-control/stories/index.story.tsx +30 -0
  420. package/src/resizable-box/resize-tooltip/index.tsx +16 -7
  421. package/src/resizable-box/resize-tooltip/label.tsx +18 -12
  422. package/src/resizable-box/resize-tooltip/style.module.scss +40 -0
  423. package/src/resizable-box/resize-tooltip/test/index.tsx +44 -0
  424. package/src/resizable-box/resize-tooltip/test/label.tsx +25 -0
  425. package/src/resizable-box/stories/index.story.tsx +11 -0
  426. package/src/sandbox/stories/index.story.tsx +2 -0
  427. package/src/scrollable/hook.ts +11 -17
  428. package/src/scrollable/stories/index.story.tsx +1 -0
  429. package/src/scrollable/style.module.scss +44 -0
  430. package/src/scrollable/test/index.tsx +120 -6
  431. package/src/snackbar/index.tsx +10 -6
  432. package/src/snackbar/stories/index.story.tsx +5 -0
  433. package/src/snackbar/stories/list.story.tsx +3 -0
  434. package/src/snackbar/test/index.tsx +28 -2
  435. package/src/snackbar/test/list.tsx +61 -1
  436. package/src/spinner/stories/index.story.tsx +2 -2
  437. package/src/style.scss +1 -0
  438. package/src/text-control/stories/index.story.tsx +2 -3
  439. package/src/text-control/style.scss +0 -1
  440. package/src/textarea-control/index.tsx +6 -3
  441. package/src/textarea-control/stories/index.story.tsx +2 -3
  442. package/src/textarea-control/stories/migration-guide.mdx +79 -0
  443. package/src/textarea-control/style.module.scss +56 -0
  444. package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +12 -116
  445. package/src/toggle-group-control/toggle-group-control/style.module.scss +0 -2
  446. package/src/toggle-group-control/toggle-group-control-option-base/style.module.scss +0 -2
  447. package/src/tools-panel/test/index.tsx +39 -0
  448. package/src/tools-panel/tools-panel-item/hook.ts +4 -1
  449. package/src/utils/config-values.js +0 -3
  450. package/src/utils/theme-variables.scss +0 -1
  451. package/src/validated-form-controls/components/content-editable-control.tsx +2 -1
  452. package/src/validated-form-controls/components/custom-select-control.tsx +2 -1
  453. package/src/validated-form-controls/components/index.ts +0 -4
  454. package/src/validated-form-controls/components/input-control.tsx +9 -1
  455. package/src/validated-form-controls/components/range-control.tsx +2 -1
  456. package/src/validated-form-controls/components/stories/content-editable-control.story.tsx +6 -0
  457. package/src/validated-form-controls/components/stories/custom-select-control.story.tsx +6 -0
  458. package/src/validated-form-controls/components/stories/overview.mdx +4 -47
  459. package/src/validated-form-controls/components/textarea-control.tsx +9 -1
  460. package/src/validated-form-controls/index.ts +0 -1
  461. package/src/validated-form-controls/style.scss +11 -67
  462. package/src/validated-form-controls/test/input-control.tsx +12 -0
  463. package/src/validated-form-controls/test/textarea-control.tsx +17 -0
  464. package/src/z-stack/component.tsx +17 -9
  465. package/src/z-stack/style.module.scss +26 -0
  466. package/build/border-box-control/styles.cjs +0 -99
  467. package/build/border-box-control/styles.cjs.map +0 -7
  468. package/build/border-control/styles.cjs +0 -117
  469. package/build/border-control/styles.cjs.map +0 -7
  470. package/build/box-control/styles/box-control-styles.cjs +0 -131
  471. package/build/box-control/styles/box-control-styles.cjs.map +0 -7
  472. package/build/color-palette/styles.cjs +0 -49
  473. package/build/color-palette/styles.cjs.map +0 -7
  474. package/build/combobox-control/styles.cjs +0 -49
  475. package/build/combobox-control/styles.cjs.map +0 -7
  476. package/build/dropdown/styles.cjs +0 -61
  477. package/build/dropdown/styles.cjs.map +0 -7
  478. package/build/progress-bar/styles.cjs +0 -106
  479. package/build/progress-bar/styles.cjs.map +0 -7
  480. package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.cjs +0 -90
  481. package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.cjs.map +0 -7
  482. package/build/scrollable/styles.cjs +0 -96
  483. package/build/scrollable/styles.cjs.map +0 -7
  484. package/build/textarea-control/styles/textarea-control-styles.cjs +0 -54
  485. package/build/textarea-control/styles/textarea-control-styles.cjs.map +0 -7
  486. package/build/validated-form-controls/components/combobox-control.cjs +0 -75
  487. package/build/validated-form-controls/components/combobox-control.cjs.map +0 -7
  488. package/build/validated-form-controls/components/form-token-field.cjs +0 -69
  489. package/build/validated-form-controls/components/form-token-field.cjs.map +0 -7
  490. package/build/validated-form-controls/components/toggle-control.cjs +0 -67
  491. package/build/validated-form-controls/components/toggle-control.cjs.map +0 -7
  492. package/build/validated-form-controls/components/toggle-group-control.cjs +0 -71
  493. package/build/validated-form-controls/components/toggle-group-control.cjs.map +0 -7
  494. package/build/validated-form-controls/control-with-error.cjs +0 -200
  495. package/build/validated-form-controls/control-with-error.cjs.map +0 -7
  496. package/build/validated-form-controls/validity-indicator.cjs +0 -67
  497. package/build/validated-form-controls/validity-indicator.cjs.map +0 -7
  498. package/build/z-stack/styles.cjs +0 -80
  499. package/build/z-stack/styles.cjs.map +0 -7
  500. package/build-module/border-box-control/styles.mjs +0 -67
  501. package/build-module/border-box-control/styles.mjs.map +0 -7
  502. package/build-module/border-control/styles.mjs +0 -80
  503. package/build-module/border-control/styles.mjs.map +0 -7
  504. package/build-module/box-control/styles/box-control-styles.mjs +0 -91
  505. package/build-module/box-control/styles/box-control-styles.mjs.map +0 -7
  506. package/build-module/color-palette/styles.mjs +0 -14
  507. package/build-module/color-palette/styles.mjs.map +0 -7
  508. package/build-module/combobox-control/styles.mjs +0 -14
  509. package/build-module/combobox-control/styles.mjs.map +0 -7
  510. package/build-module/dropdown/styles.mjs +0 -26
  511. package/build-module/dropdown/styles.mjs.map +0 -7
  512. package/build-module/progress-bar/styles.mjs +0 -68
  513. package/build-module/progress-bar/styles.mjs.map +0 -7
  514. package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.mjs +0 -52
  515. package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.mjs.map +0 -7
  516. package/build-module/scrollable/styles.mjs +0 -65
  517. package/build-module/scrollable/styles.mjs.map +0 -7
  518. package/build-module/textarea-control/styles/textarea-control-styles.mjs +0 -19
  519. package/build-module/textarea-control/styles/textarea-control-styles.mjs.map +0 -7
  520. package/build-module/validated-form-controls/components/combobox-control.mjs +0 -40
  521. package/build-module/validated-form-controls/components/combobox-control.mjs.map +0 -7
  522. package/build-module/validated-form-controls/components/form-token-field.mjs +0 -44
  523. package/build-module/validated-form-controls/components/form-token-field.mjs.map +0 -7
  524. package/build-module/validated-form-controls/components/toggle-control.mjs +0 -32
  525. package/build-module/validated-form-controls/components/toggle-control.mjs.map +0 -7
  526. package/build-module/validated-form-controls/components/toggle-group-control.mjs +0 -46
  527. package/build-module/validated-form-controls/components/toggle-group-control.mjs.map +0 -7
  528. package/build-module/validated-form-controls/control-with-error.mjs +0 -175
  529. package/build-module/validated-form-controls/control-with-error.mjs.map +0 -7
  530. package/build-module/validated-form-controls/validity-indicator.mjs +0 -32
  531. package/build-module/validated-form-controls/validity-indicator.mjs.map +0 -7
  532. package/build-module/z-stack/styles.mjs +0 -44
  533. package/build-module/z-stack/styles.mjs.map +0 -7
  534. package/build-types/alignment-matrix-control/stories/index.story.d.ts +0 -8
  535. package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +0 -1
  536. package/build-types/alignment-matrix-control/test/index.d.ts +0 -2
  537. package/build-types/alignment-matrix-control/test/index.d.ts.map +0 -1
  538. package/build-types/angle-picker-control/stories/index.story.d.ts +0 -8
  539. package/build-types/angle-picker-control/stories/index.story.d.ts.map +0 -1
  540. package/build-types/animate/stories/index.story.d.ts +0 -12
  541. package/build-types/animate/stories/index.story.d.ts.map +0 -1
  542. package/build-types/autocomplete/test/get-autocomplete-match.d.ts +0 -2
  543. package/build-types/autocomplete/test/get-autocomplete-match.d.ts.map +0 -1
  544. package/build-types/autocomplete/test/index.d.ts +0 -2
  545. package/build-types/autocomplete/test/index.d.ts.map +0 -1
  546. package/build-types/badge/stories/e2e/index.story.d.ts +0 -7
  547. package/build-types/badge/stories/e2e/index.story.d.ts.map +0 -1
  548. package/build-types/badge/stories/index.story.d.ts +0 -11
  549. package/build-types/badge/stories/index.story.d.ts.map +0 -1
  550. package/build-types/badge/test/index.d.ts +0 -2
  551. package/build-types/badge/test/index.d.ts.map +0 -1
  552. package/build-types/base-control/stories/index.story.d.ts +0 -17
  553. package/build-types/base-control/stories/index.story.d.ts.map +0 -1
  554. package/build-types/base-control/test/index.d.ts +0 -2
  555. package/build-types/base-control/test/index.d.ts.map +0 -1
  556. package/build-types/border-box-control/stories/index.story.d.ts +0 -14
  557. package/build-types/border-box-control/stories/index.story.d.ts.map +0 -1
  558. package/build-types/border-box-control/styles.d.ts +0 -10
  559. package/build-types/border-box-control/styles.d.ts.map +0 -1
  560. package/build-types/border-box-control/test/index.d.ts +0 -2
  561. package/build-types/border-box-control/test/index.d.ts.map +0 -1
  562. package/build-types/border-box-control/test/utils.d.ts +0 -2
  563. package/build-types/border-box-control/test/utils.d.ts.map +0 -1
  564. package/build-types/border-control/stories/index.story.d.ts +0 -109
  565. package/build-types/border-control/stories/index.story.d.ts.map +0 -1
  566. package/build-types/border-control/styles.d.ts +0 -17
  567. package/build-types/border-control/styles.d.ts.map +0 -1
  568. package/build-types/box-control/stories/index.story.d.ts +0 -12
  569. package/build-types/box-control/stories/index.story.d.ts.map +0 -1
  570. package/build-types/box-control/styles/box-control-styles.d.ts +0 -65
  571. package/build-types/box-control/styles/box-control-styles.d.ts.map +0 -1
  572. package/build-types/box-control/test/index.d.ts +0 -2
  573. package/build-types/box-control/test/index.d.ts.map +0 -1
  574. package/build-types/button/stories/e2e/index.story.d.ts +0 -9
  575. package/build-types/button/stories/e2e/index.story.d.ts.map +0 -1
  576. package/build-types/button/stories/index.story.d.ts +0 -31
  577. package/build-types/button/stories/index.story.d.ts.map +0 -1
  578. package/build-types/button/test/index.d.ts +0 -2
  579. package/build-types/button/test/index.d.ts.map +0 -1
  580. package/build-types/button-group/stories/index.story.d.ts +0 -12
  581. package/build-types/button-group/stories/index.story.d.ts.map +0 -1
  582. package/build-types/card/stories/index.story.d.ts +0 -20
  583. package/build-types/card/stories/index.story.d.ts.map +0 -1
  584. package/build-types/card/test/index.d.ts +0 -2
  585. package/build-types/card/test/index.d.ts.map +0 -1
  586. package/build-types/checkbox-control/stories/index.story.d.ts +0 -24
  587. package/build-types/checkbox-control/stories/index.story.d.ts.map +0 -1
  588. package/build-types/checkbox-control/test/index.d.ts +0 -2
  589. package/build-types/checkbox-control/test/index.d.ts.map +0 -1
  590. package/build-types/circular-option-picker/stories/index.story.d.ts +0 -10
  591. package/build-types/circular-option-picker/stories/index.story.d.ts.map +0 -1
  592. package/build-types/circular-option-picker/test/index.d.ts +0 -2
  593. package/build-types/circular-option-picker/test/index.d.ts.map +0 -1
  594. package/build-types/color-indicator/stories/index.story.d.ts +0 -6
  595. package/build-types/color-indicator/stories/index.story.d.ts.map +0 -1
  596. package/build-types/color-indicator/test/index.d.ts +0 -2
  597. package/build-types/color-indicator/test/index.d.ts.map +0 -1
  598. package/build-types/color-palette/stories/index.story.d.ts +0 -11
  599. package/build-types/color-palette/stories/index.story.d.ts.map +0 -1
  600. package/build-types/color-palette/styles.d.ts +0 -11
  601. package/build-types/color-palette/styles.d.ts.map +0 -1
  602. package/build-types/color-palette/test/index.d.ts +0 -2
  603. package/build-types/color-palette/test/index.d.ts.map +0 -1
  604. package/build-types/color-palette/test/utils.d.ts +0 -2
  605. package/build-types/color-palette/test/utils.d.ts.map +0 -1
  606. package/build-types/color-picker/stories/index.story.d.ts +0 -6
  607. package/build-types/color-picker/stories/index.story.d.ts.map +0 -1
  608. package/build-types/color-picker/test/index.d.ts +0 -2
  609. package/build-types/color-picker/test/index.d.ts.map +0 -1
  610. package/build-types/combobox-control/stories/index.story.d.ts +0 -93
  611. package/build-types/combobox-control/stories/index.story.d.ts.map +0 -1
  612. package/build-types/combobox-control/styles.d.ts +0 -6
  613. package/build-types/combobox-control/styles.d.ts.map +0 -1
  614. package/build-types/combobox-control/test/index.d.ts +0 -2
  615. package/build-types/combobox-control/test/index.d.ts.map +0 -1
  616. package/build-types/composite/legacy/stories/index.story.d.ts +0 -9
  617. package/build-types/composite/legacy/stories/index.story.d.ts.map +0 -1
  618. package/build-types/composite/legacy/stories/utils.d.ts +0 -27
  619. package/build-types/composite/legacy/stories/utils.d.ts.map +0 -1
  620. package/build-types/composite/legacy/test/index.d.ts +0 -2
  621. package/build-types/composite/legacy/test/index.d.ts.map +0 -1
  622. package/build-types/composite/stories/index.story.d.ts +0 -33
  623. package/build-types/composite/stories/index.story.d.ts.map +0 -1
  624. package/build-types/composite/test/index.d.ts +0 -2
  625. package/build-types/composite/test/index.d.ts.map +0 -1
  626. package/build-types/confirm-dialog/stories/index.story.d.ts +0 -7
  627. package/build-types/confirm-dialog/stories/index.story.d.ts.map +0 -1
  628. package/build-types/confirm-dialog/test/index.d.ts +0 -2
  629. package/build-types/confirm-dialog/test/index.d.ts.map +0 -1
  630. package/build-types/content-editable-control/stories/index.story.d.ts +0 -7
  631. package/build-types/content-editable-control/stories/index.story.d.ts.map +0 -1
  632. package/build-types/content-editable-control/test/index.d.ts +0 -2
  633. package/build-types/content-editable-control/test/index.d.ts.map +0 -1
  634. package/build-types/context/test/context-connect.d.ts +0 -2
  635. package/build-types/context/test/context-connect.d.ts.map +0 -1
  636. package/build-types/context/test/wordpress-component.d.ts +0 -2
  637. package/build-types/context/test/wordpress-component.d.ts.map +0 -1
  638. package/build-types/custom-gradient-picker/gradient-bar/test/utils.d.ts +0 -2
  639. package/build-types/custom-gradient-picker/gradient-bar/test/utils.d.ts.map +0 -1
  640. package/build-types/custom-gradient-picker/stories/index.story.d.ts +0 -6
  641. package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +0 -1
  642. package/build-types/custom-gradient-picker/test/index.d.ts +0 -2
  643. package/build-types/custom-gradient-picker/test/index.d.ts.map +0 -1
  644. package/build-types/custom-gradient-picker/test/serializer.d.ts +0 -2
  645. package/build-types/custom-gradient-picker/test/serializer.d.ts.map +0 -1
  646. package/build-types/custom-select-control/stories/index.story.d.ts +0 -8
  647. package/build-types/custom-select-control/stories/index.story.d.ts.map +0 -1
  648. package/build-types/custom-select-control/test/index.d.ts +0 -2
  649. package/build-types/custom-select-control/test/index.d.ts.map +0 -1
  650. package/build-types/custom-select-control-v2/stories/index.story.d.ts +0 -38
  651. package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +0 -1
  652. package/build-types/custom-select-control-v2/test/index.d.ts +0 -2
  653. package/build-types/custom-select-control-v2/test/index.d.ts.map +0 -1
  654. package/build-types/date-time/date-picker/test/index.d.ts +0 -2
  655. package/build-types/date-time/date-picker/test/index.d.ts.map +0 -1
  656. package/build-types/date-time/date-picker/test/use-lilius.d.ts +0 -2
  657. package/build-types/date-time/date-picker/test/use-lilius.d.ts.map +0 -1
  658. package/build-types/date-time/date-time/test/index.d.ts +0 -2
  659. package/build-types/date-time/date-time/test/index.d.ts.map +0 -1
  660. package/build-types/date-time/stories/date-time.story.d.ts +0 -8
  661. package/build-types/date-time/stories/date-time.story.d.ts.map +0 -1
  662. package/build-types/date-time/stories/date.story.d.ts +0 -8
  663. package/build-types/date-time/stories/date.story.d.ts.map +0 -1
  664. package/build-types/date-time/stories/time.story.d.ts +0 -11
  665. package/build-types/date-time/stories/time.story.d.ts.map +0 -1
  666. package/build-types/date-time/stories/utils.d.ts +0 -3
  667. package/build-types/date-time/stories/utils.d.ts.map +0 -1
  668. package/build-types/date-time/test/utils.test.d.ts +0 -2
  669. package/build-types/date-time/test/utils.test.d.ts.map +0 -1
  670. package/build-types/date-time/time-picker/test/index.d.ts +0 -2
  671. package/build-types/date-time/time-picker/test/index.d.ts.map +0 -1
  672. package/build-types/date-time/time-picker/time-input/test/index.d.ts +0 -2
  673. package/build-types/date-time/time-picker/time-input/test/index.d.ts.map +0 -1
  674. package/build-types/disabled/stories/index.story.d.ts +0 -7
  675. package/build-types/disabled/stories/index.story.d.ts.map +0 -1
  676. package/build-types/disabled/test/index.d.ts +0 -2
  677. package/build-types/disabled/test/index.d.ts.map +0 -1
  678. package/build-types/divider/stories/index.story.d.ts +0 -8
  679. package/build-types/divider/stories/index.story.d.ts.map +0 -1
  680. package/build-types/divider/test/index.d.ts +0 -2
  681. package/build-types/divider/test/index.d.ts.map +0 -1
  682. package/build-types/draggable/stories/index.story.d.ts +0 -13
  683. package/build-types/draggable/stories/index.story.d.ts.map +0 -1
  684. package/build-types/drop-zone/stories/index.story.d.ts +0 -6
  685. package/build-types/drop-zone/stories/index.story.d.ts.map +0 -1
  686. package/build-types/dropdown/stories/index.story.d.ts +0 -18
  687. package/build-types/dropdown/stories/index.story.d.ts.map +0 -1
  688. package/build-types/dropdown/styles.d.ts +0 -6
  689. package/build-types/dropdown/styles.d.ts.map +0 -1
  690. package/build-types/dropdown/test/index.d.ts +0 -2
  691. package/build-types/dropdown/test/index.d.ts.map +0 -1
  692. package/build-types/dropdown-menu/stories/index.story.d.ts +0 -7
  693. package/build-types/dropdown-menu/stories/index.story.d.ts.map +0 -1
  694. package/build-types/dropdown-menu/test/index.d.ts +0 -2
  695. package/build-types/dropdown-menu/test/index.d.ts.map +0 -1
  696. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts +0 -7
  697. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts.map +0 -1
  698. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts +0 -8
  699. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts.map +0 -1
  700. package/build-types/elevation/stories/index.story.d.ts +0 -16
  701. package/build-types/elevation/stories/index.story.d.ts.map +0 -1
  702. package/build-types/elevation/test/index.d.ts +0 -2
  703. package/build-types/elevation/test/index.d.ts.map +0 -1
  704. package/build-types/external-link/stories/index.story.d.ts +0 -6
  705. package/build-types/external-link/stories/index.story.d.ts.map +0 -1
  706. package/build-types/external-link/test/index.d.ts +0 -2
  707. package/build-types/external-link/test/index.d.ts.map +0 -1
  708. package/build-types/flex/stories/index.story.d.ts +0 -7
  709. package/build-types/flex/stories/index.story.d.ts.map +0 -1
  710. package/build-types/flex/test/index.d.ts +0 -2
  711. package/build-types/flex/test/index.d.ts.map +0 -1
  712. package/build-types/focal-point-picker/stories/index.story.d.ts +0 -49
  713. package/build-types/focal-point-picker/stories/index.story.d.ts.map +0 -1
  714. package/build-types/focal-point-picker/test/index.d.ts +0 -2
  715. package/build-types/focal-point-picker/test/index.d.ts.map +0 -1
  716. package/build-types/focal-point-picker/test/media.d.ts +0 -2
  717. package/build-types/focal-point-picker/test/media.d.ts.map +0 -1
  718. package/build-types/font-size-picker/stories/e2e/index.story.d.ts +0 -20
  719. package/build-types/font-size-picker/stories/e2e/index.story.d.ts.map +0 -1
  720. package/build-types/font-size-picker/stories/index.story.d.ts +0 -26
  721. package/build-types/font-size-picker/stories/index.story.d.ts.map +0 -1
  722. package/build-types/font-size-picker/test/font-size-picker-select.d.ts +0 -2
  723. package/build-types/font-size-picker/test/font-size-picker-select.d.ts.map +0 -1
  724. package/build-types/font-size-picker/test/font-size-picker-toggle-group.d.ts +0 -2
  725. package/build-types/font-size-picker/test/font-size-picker-toggle-group.d.ts.map +0 -1
  726. package/build-types/font-size-picker/test/index.d.ts +0 -2
  727. package/build-types/font-size-picker/test/index.d.ts.map +0 -1
  728. package/build-types/font-size-picker/test/utils.d.ts +0 -2
  729. package/build-types/font-size-picker/test/utils.d.ts.map +0 -1
  730. package/build-types/form-file-upload/stories/index.story.d.ts +0 -17
  731. package/build-types/form-file-upload/stories/index.story.d.ts.map +0 -1
  732. package/build-types/form-file-upload/test/index.d.ts +0 -2
  733. package/build-types/form-file-upload/test/index.d.ts.map +0 -1
  734. package/build-types/form-toggle/stories/index.story.d.ts +0 -6
  735. package/build-types/form-toggle/stories/index.story.d.ts.map +0 -1
  736. package/build-types/form-toggle/test/index.d.ts +0 -2
  737. package/build-types/form-toggle/test/index.d.ts.map +0 -1
  738. package/build-types/form-token-field/stories/index.story.d.ts +0 -25
  739. package/build-types/form-token-field/stories/index.story.d.ts.map +0 -1
  740. package/build-types/form-token-field/test/index.d.ts +0 -2
  741. package/build-types/form-token-field/test/index.d.ts.map +0 -1
  742. package/build-types/gradient-picker/stories/index.story.d.ts +0 -11
  743. package/build-types/gradient-picker/stories/index.story.d.ts.map +0 -1
  744. package/build-types/gradient-picker/test/index.d.ts +0 -2
  745. package/build-types/gradient-picker/test/index.d.ts.map +0 -1
  746. package/build-types/grid/stories/index.story.d.ts +0 -6
  747. package/build-types/grid/stories/index.story.d.ts.map +0 -1
  748. package/build-types/grid/test/grid.d.ts +0 -2
  749. package/build-types/grid/test/grid.d.ts.map +0 -1
  750. package/build-types/guide/stories/index.story.d.ts +0 -6
  751. package/build-types/guide/stories/index.story.d.ts.map +0 -1
  752. package/build-types/guide/test/index.d.ts +0 -2
  753. package/build-types/guide/test/index.d.ts.map +0 -1
  754. package/build-types/h-stack/stories/e2e/index.story.d.ts +0 -6
  755. package/build-types/h-stack/stories/e2e/index.story.d.ts.map +0 -1
  756. package/build-types/h-stack/stories/index.story.d.ts +0 -6
  757. package/build-types/h-stack/stories/index.story.d.ts.map +0 -1
  758. package/build-types/h-stack/test/index.d.ts +0 -2
  759. package/build-types/h-stack/test/index.d.ts.map +0 -1
  760. package/build-types/heading/stories/index.story.d.ts +0 -6
  761. package/build-types/heading/stories/index.story.d.ts.map +0 -1
  762. package/build-types/heading/test/index.d.ts +0 -2
  763. package/build-types/heading/test/index.d.ts.map +0 -1
  764. package/build-types/higher-order/with-fallback-styles/test/index.d.ts +0 -2
  765. package/build-types/higher-order/with-fallback-styles/test/index.d.ts.map +0 -1
  766. package/build-types/higher-order/with-filters/test/index.d.ts +0 -2
  767. package/build-types/higher-order/with-filters/test/index.d.ts.map +0 -1
  768. package/build-types/higher-order/with-focus-outside/test/index.d.ts +0 -2
  769. package/build-types/higher-order/with-focus-outside/test/index.d.ts.map +0 -1
  770. package/build-types/higher-order/with-focus-return/test/index.d.ts +0 -2
  771. package/build-types/higher-order/with-focus-return/test/index.d.ts.map +0 -1
  772. package/build-types/higher-order/with-notices/test/index.d.ts +0 -2
  773. package/build-types/higher-order/with-notices/test/index.d.ts.map +0 -1
  774. package/build-types/higher-order/with-spoken-messages/test/index.d.ts +0 -2
  775. package/build-types/higher-order/with-spoken-messages/test/index.d.ts.map +0 -1
  776. package/build-types/icon/stories/index.story.d.ts +0 -21
  777. package/build-types/icon/stories/index.story.d.ts.map +0 -1
  778. package/build-types/icon/test/index.d.ts +0 -2
  779. package/build-types/icon/test/index.d.ts.map +0 -1
  780. package/build-types/input-control/stories/index.story.d.ts +0 -31
  781. package/build-types/input-control/stories/index.story.d.ts.map +0 -1
  782. package/build-types/isolated-event-container/test/index.d.ts +0 -2
  783. package/build-types/isolated-event-container/test/index.d.ts.map +0 -1
  784. package/build-types/item-group/stories/index.story.d.ts +0 -9
  785. package/build-types/item-group/stories/index.story.d.ts.map +0 -1
  786. package/build-types/keyboard-shortcuts/stories/index.story.d.ts +0 -6
  787. package/build-types/keyboard-shortcuts/stories/index.story.d.ts.map +0 -1
  788. package/build-types/keyboard-shortcuts/test/index.d.ts +0 -2
  789. package/build-types/keyboard-shortcuts/test/index.d.ts.map +0 -1
  790. package/build-types/menu/stories/index.story.d.ts +0 -13
  791. package/build-types/menu/stories/index.story.d.ts.map +0 -1
  792. package/build-types/menu/test/index.d.ts +0 -2
  793. package/build-types/menu/test/index.d.ts.map +0 -1
  794. package/build-types/menu-group/stories/index.story.d.ts +0 -11
  795. package/build-types/menu-group/stories/index.story.d.ts.map +0 -1
  796. package/build-types/menu-group/test/index.d.ts +0 -2
  797. package/build-types/menu-group/test/index.d.ts.map +0 -1
  798. package/build-types/menu-item/stories/index.story.d.ts +0 -70
  799. package/build-types/menu-item/stories/index.story.d.ts.map +0 -1
  800. package/build-types/menu-items-choice/stories/index.story.d.ts +0 -6
  801. package/build-types/menu-items-choice/stories/index.story.d.ts.map +0 -1
  802. package/build-types/modal/stories/index.story.d.ts +0 -11
  803. package/build-types/modal/stories/index.story.d.ts.map +0 -1
  804. package/build-types/modal/test/aria-helper.d.ts +0 -2
  805. package/build-types/modal/test/aria-helper.d.ts.map +0 -1
  806. package/build-types/modal/test/index.d.ts +0 -2
  807. package/build-types/modal/test/index.d.ts.map +0 -1
  808. package/build-types/navigable-container/stories/navigable-menu.story.d.ts +0 -6
  809. package/build-types/navigable-container/stories/navigable-menu.story.d.ts.map +0 -1
  810. package/build-types/navigable-container/stories/tabbable-container.story.d.ts +0 -6
  811. package/build-types/navigable-container/stories/tabbable-container.story.d.ts.map +0 -1
  812. package/build-types/navigable-container/test/navigable-menu.d.ts +0 -2
  813. package/build-types/navigable-container/test/navigable-menu.d.ts.map +0 -1
  814. package/build-types/navigable-container/test/tababble-container.d.ts +0 -2
  815. package/build-types/navigable-container/test/tababble-container.d.ts.map +0 -1
  816. package/build-types/navigator/stories/index.story.d.ts +0 -8
  817. package/build-types/navigator/stories/index.story.d.ts.map +0 -1
  818. package/build-types/navigator/test/index.d.ts +0 -2
  819. package/build-types/navigator/test/index.d.ts.map +0 -1
  820. package/build-types/navigator/test/router.d.ts +0 -2
  821. package/build-types/navigator/test/router.d.ts.map +0 -1
  822. package/build-types/notice/stories/index.story.d.ts +0 -15
  823. package/build-types/notice/stories/index.story.d.ts.map +0 -1
  824. package/build-types/notice/test/index.d.ts +0 -2
  825. package/build-types/notice/test/index.d.ts.map +0 -1
  826. package/build-types/notice/test/list.d.ts +0 -2
  827. package/build-types/notice/test/list.d.ts.map +0 -1
  828. package/build-types/number-control/stories/index.story.d.ts +0 -19
  829. package/build-types/number-control/stories/index.story.d.ts.map +0 -1
  830. package/build-types/number-control/test/index.d.ts +0 -2
  831. package/build-types/number-control/test/index.d.ts.map +0 -1
  832. package/build-types/palette-edit/stories/index.story.d.ts +0 -7
  833. package/build-types/palette-edit/stories/index.story.d.ts.map +0 -1
  834. package/build-types/palette-edit/test/index.d.ts +0 -2
  835. package/build-types/palette-edit/test/index.d.ts.map +0 -1
  836. package/build-types/panel/stories/index.story.d.ts +0 -13
  837. package/build-types/panel/stories/index.story.d.ts.map +0 -1
  838. package/build-types/panel/test/body.d.ts +0 -2
  839. package/build-types/panel/test/body.d.ts.map +0 -1
  840. package/build-types/panel/test/header.d.ts +0 -2
  841. package/build-types/panel/test/header.d.ts.map +0 -1
  842. package/build-types/panel/test/index.d.ts +0 -2
  843. package/build-types/panel/test/index.d.ts.map +0 -1
  844. package/build-types/panel/test/row.d.ts +0 -2
  845. package/build-types/panel/test/row.d.ts.map +0 -1
  846. package/build-types/placeholder/stories/index.story.d.ts +0 -6
  847. package/build-types/placeholder/stories/index.story.d.ts.map +0 -1
  848. package/build-types/placeholder/test/index.d.ts +0 -2
  849. package/build-types/placeholder/test/index.d.ts.map +0 -1
  850. package/build-types/popover/stories/e2e/index.story.d.ts +0 -18
  851. package/build-types/popover/stories/e2e/index.story.d.ts.map +0 -1
  852. package/build-types/popover/stories/index.story.d.ts +0 -11
  853. package/build-types/popover/stories/index.story.d.ts.map +0 -1
  854. package/build-types/popover/test/index.d.ts +0 -2
  855. package/build-types/popover/test/index.d.ts.map +0 -1
  856. package/build-types/popover/test/utils/index.d.ts +0 -3
  857. package/build-types/popover/test/utils/index.d.ts.map +0 -1
  858. package/build-types/progress-bar/stories/index.story.d.ts +0 -23
  859. package/build-types/progress-bar/stories/index.story.d.ts.map +0 -1
  860. package/build-types/progress-bar/styles.d.ts +0 -16
  861. package/build-types/progress-bar/styles.d.ts.map +0 -1
  862. package/build-types/progress-bar/test/index.d.ts +0 -2
  863. package/build-types/progress-bar/test/index.d.ts.map +0 -1
  864. package/build-types/query-controls/stories/index.story.d.ts +0 -7
  865. package/build-types/query-controls/stories/index.story.d.ts.map +0 -1
  866. package/build-types/query-controls/test/terms.d.ts +0 -2
  867. package/build-types/query-controls/test/terms.d.ts.map +0 -1
  868. package/build-types/radio-control/stories/index.story.d.ts +0 -7
  869. package/build-types/radio-control/stories/index.story.d.ts.map +0 -1
  870. package/build-types/radio-control/test/index.d.ts +0 -2
  871. package/build-types/radio-control/test/index.d.ts.map +0 -1
  872. package/build-types/radio-group/stories/index.story.d.ts +0 -8
  873. package/build-types/radio-group/stories/index.story.d.ts.map +0 -1
  874. package/build-types/range-control/stories/index.story.d.ts +0 -42
  875. package/build-types/range-control/stories/index.story.d.ts.map +0 -1
  876. package/build-types/range-control/test/index.d.ts +0 -2
  877. package/build-types/range-control/test/index.d.ts.map +0 -1
  878. package/build-types/resizable-box/resize-tooltip/styles/resize-tooltip.styles.d.ts +0 -18
  879. package/build-types/resizable-box/resize-tooltip/styles/resize-tooltip.styles.d.ts.map +0 -1
  880. package/build-types/resizable-box/stories/index.story.d.ts +0 -46
  881. package/build-types/resizable-box/stories/index.story.d.ts.map +0 -1
  882. package/build-types/responsive-wrapper/stories/index.story.d.ts +0 -16
  883. package/build-types/responsive-wrapper/stories/index.story.d.ts.map +0 -1
  884. package/build-types/sandbox/stories/index.story.d.ts +0 -7
  885. package/build-types/sandbox/stories/index.story.d.ts.map +0 -1
  886. package/build-types/sandbox/test/index.d.ts +0 -2
  887. package/build-types/sandbox/test/index.d.ts.map +0 -1
  888. package/build-types/scroll-lock/stories/index.story.d.ts +0 -6
  889. package/build-types/scroll-lock/stories/index.story.d.ts.map +0 -1
  890. package/build-types/scroll-lock/test/index.d.ts +0 -2
  891. package/build-types/scroll-lock/test/index.d.ts.map +0 -1
  892. package/build-types/scrollable/stories/index.story.d.ts +0 -6
  893. package/build-types/scrollable/stories/index.story.d.ts.map +0 -1
  894. package/build-types/scrollable/styles.d.ts +0 -8
  895. package/build-types/scrollable/styles.d.ts.map +0 -1
  896. package/build-types/scrollable/test/index.d.ts +0 -2
  897. package/build-types/scrollable/test/index.d.ts.map +0 -1
  898. package/build-types/search-control/stories/index.story.d.ts +0 -18
  899. package/build-types/search-control/stories/index.story.d.ts.map +0 -1
  900. package/build-types/search-control/test/index.d.ts +0 -2
  901. package/build-types/search-control/test/index.d.ts.map +0 -1
  902. package/build-types/select-control/stories/index.story.d.ts +0 -28
  903. package/build-types/select-control/stories/index.story.d.ts.map +0 -1
  904. package/build-types/select-control/test/select-control.d.ts +0 -2
  905. package/build-types/select-control/test/select-control.d.ts.map +0 -1
  906. package/build-types/shortcut/stories/index.story.d.ts +0 -7
  907. package/build-types/shortcut/stories/index.story.d.ts.map +0 -1
  908. package/build-types/shortcut/test/index.d.ts +0 -2
  909. package/build-types/shortcut/test/index.d.ts.map +0 -1
  910. package/build-types/slot-fill/stories/index.story.d.ts +0 -10
  911. package/build-types/slot-fill/stories/index.story.d.ts.map +0 -1
  912. package/build-types/snackbar/stories/index.story.d.ts +0 -10
  913. package/build-types/snackbar/stories/index.story.d.ts.map +0 -1
  914. package/build-types/snackbar/stories/list.story.d.ts +0 -6
  915. package/build-types/snackbar/stories/list.story.d.ts.map +0 -1
  916. package/build-types/snackbar/test/index.d.ts +0 -2
  917. package/build-types/snackbar/test/index.d.ts.map +0 -1
  918. package/build-types/snackbar/test/list.d.ts +0 -2
  919. package/build-types/snackbar/test/list.d.ts.map +0 -1
  920. package/build-types/spacer/stories/index.story.d.ts +0 -7
  921. package/build-types/spacer/stories/index.story.d.ts.map +0 -1
  922. package/build-types/spacer/test/index.d.ts +0 -2
  923. package/build-types/spacer/test/index.d.ts.map +0 -1
  924. package/build-types/spinner/stories/index.story.d.ts +0 -7
  925. package/build-types/spinner/stories/index.story.d.ts.map +0 -1
  926. package/build-types/style-provider/test/index.d.ts +0 -2
  927. package/build-types/style-provider/test/index.d.ts.map +0 -1
  928. package/build-types/surface/stories/index.story.d.ts +0 -6
  929. package/build-types/surface/stories/index.story.d.ts.map +0 -1
  930. package/build-types/surface/test/index.d.ts +0 -2
  931. package/build-types/surface/test/index.d.ts.map +0 -1
  932. package/build-types/tab-panel/stories/index.story.d.ts +0 -9
  933. package/build-types/tab-panel/stories/index.story.d.ts.map +0 -1
  934. package/build-types/tab-panel/test/index.d.ts +0 -2
  935. package/build-types/tab-panel/test/index.d.ts.map +0 -1
  936. package/build-types/tabs/stories/index.story.d.ts +0 -13
  937. package/build-types/tabs/stories/index.story.d.ts.map +0 -1
  938. package/build-types/tabs/test/index.d.ts +0 -2
  939. package/build-types/tabs/test/index.d.ts.map +0 -1
  940. package/build-types/text/stories/index.story.d.ts +0 -14
  941. package/build-types/text/stories/index.story.d.ts.map +0 -1
  942. package/build-types/text/test/index.d.ts +0 -2
  943. package/build-types/text/test/index.d.ts.map +0 -1
  944. package/build-types/text-control/stories/index.story.d.ts +0 -7
  945. package/build-types/text-control/stories/index.story.d.ts.map +0 -1
  946. package/build-types/text-control/test/text-control.d.ts +0 -2
  947. package/build-types/text-control/test/text-control.d.ts.map +0 -1
  948. package/build-types/text-highlight/stories/index.story.d.ts +0 -6
  949. package/build-types/text-highlight/stories/index.story.d.ts.map +0 -1
  950. package/build-types/text-highlight/test/index.d.ts +0 -2
  951. package/build-types/text-highlight/test/index.d.ts.map +0 -1
  952. package/build-types/textarea-control/stories/index.story.d.ts +0 -6
  953. package/build-types/textarea-control/stories/index.story.d.ts.map +0 -1
  954. package/build-types/textarea-control/styles/textarea-control-styles.d.ts +0 -5
  955. package/build-types/textarea-control/styles/textarea-control-styles.d.ts.map +0 -1
  956. package/build-types/tip/stories/index.story.d.ts +0 -6
  957. package/build-types/tip/stories/index.story.d.ts.map +0 -1
  958. package/build-types/toggle-control/stories/index.story.d.ts +0 -13
  959. package/build-types/toggle-control/stories/index.story.d.ts.map +0 -1
  960. package/build-types/toggle-control/test/index.d.ts +0 -2
  961. package/build-types/toggle-control/test/index.d.ts.map +0 -1
  962. package/build-types/toggle-group-control/stories/index.story.d.ts +0 -21
  963. package/build-types/toggle-group-control/stories/index.story.d.ts.map +0 -1
  964. package/build-types/toggle-group-control/test/index.d.ts +0 -2
  965. package/build-types/toggle-group-control/test/index.d.ts.map +0 -1
  966. package/build-types/toolbar/stories/index.story.d.ts +0 -12
  967. package/build-types/toolbar/stories/index.story.d.ts.map +0 -1
  968. package/build-types/toolbar/test/index.d.ts +0 -2
  969. package/build-types/toolbar/test/index.d.ts.map +0 -1
  970. package/build-types/toolbar/test/toolbar-group.d.ts +0 -2
  971. package/build-types/toolbar/test/toolbar-group.d.ts.map +0 -1
  972. package/build-types/tools-panel/stories/index.story.d.ts +0 -11
  973. package/build-types/tools-panel/stories/index.story.d.ts.map +0 -1
  974. package/build-types/tools-panel/test/index.d.ts +0 -2
  975. package/build-types/tools-panel/test/index.d.ts.map +0 -1
  976. package/build-types/tooltip/stories/index.story.d.ts +0 -15
  977. package/build-types/tooltip/stories/index.story.d.ts.map +0 -1
  978. package/build-types/tooltip/test/index.d.ts +0 -2
  979. package/build-types/tooltip/test/index.d.ts.map +0 -1
  980. package/build-types/tooltip/test/utils/index.d.ts +0 -7
  981. package/build-types/tooltip/test/utils/index.d.ts.map +0 -1
  982. package/build-types/tree-grid/stories/index.story.d.ts +0 -6
  983. package/build-types/tree-grid/stories/index.story.d.ts.map +0 -1
  984. package/build-types/tree-grid/test/cell.d.ts +0 -2
  985. package/build-types/tree-grid/test/cell.d.ts.map +0 -1
  986. package/build-types/tree-grid/test/index.d.ts +0 -2
  987. package/build-types/tree-grid/test/index.d.ts.map +0 -1
  988. package/build-types/tree-grid/test/roving-tab-index-item.d.ts +0 -2
  989. package/build-types/tree-grid/test/roving-tab-index-item.d.ts.map +0 -1
  990. package/build-types/tree-grid/test/roving-tab-index.d.ts +0 -2
  991. package/build-types/tree-grid/test/roving-tab-index.d.ts.map +0 -1
  992. package/build-types/tree-grid/test/row.d.ts +0 -2
  993. package/build-types/tree-grid/test/row.d.ts.map +0 -1
  994. package/build-types/tree-select/stories/index.story.d.ts +0 -6
  995. package/build-types/tree-select/stories/index.story.d.ts.map +0 -1
  996. package/build-types/truncate/stories/index.story.d.ts +0 -7
  997. package/build-types/truncate/stories/index.story.d.ts.map +0 -1
  998. package/build-types/truncate/test/index.d.ts +0 -2
  999. package/build-types/truncate/test/index.d.ts.map +0 -1
  1000. package/build-types/unit-control/stories/index.story.d.ts +0 -27
  1001. package/build-types/unit-control/stories/index.story.d.ts.map +0 -1
  1002. package/build-types/unit-control/test/index.d.ts +0 -2
  1003. package/build-types/unit-control/test/index.d.ts.map +0 -1
  1004. package/build-types/unit-control/test/utils.d.ts +0 -2
  1005. package/build-types/unit-control/test/utils.d.ts.map +0 -1
  1006. package/build-types/utils/test/polymorphic-element.d.ts +0 -2
  1007. package/build-types/utils/test/polymorphic-element.d.ts.map +0 -1
  1008. package/build-types/v-stack/stories/e2e/index.story.d.ts +0 -6
  1009. package/build-types/v-stack/stories/e2e/index.story.d.ts.map +0 -1
  1010. package/build-types/v-stack/stories/index.story.d.ts +0 -11
  1011. package/build-types/v-stack/stories/index.story.d.ts.map +0 -1
  1012. package/build-types/v-stack/test/index.d.ts +0 -2
  1013. package/build-types/v-stack/test/index.d.ts.map +0 -1
  1014. package/build-types/validated-form-controls/components/combobox-control.d.ts +0 -20
  1015. package/build-types/validated-form-controls/components/combobox-control.d.ts.map +0 -1
  1016. package/build-types/validated-form-controls/components/form-token-field.d.ts +0 -3
  1017. package/build-types/validated-form-controls/components/form-token-field.d.ts.map +0 -1
  1018. package/build-types/validated-form-controls/components/stories/combobox-control.story.d.ts +0 -6
  1019. package/build-types/validated-form-controls/components/stories/combobox-control.story.d.ts.map +0 -1
  1020. package/build-types/validated-form-controls/components/stories/content-editable-control.story.d.ts +0 -6
  1021. package/build-types/validated-form-controls/components/stories/content-editable-control.story.d.ts.map +0 -1
  1022. package/build-types/validated-form-controls/components/stories/custom-select-control.story.d.ts +0 -6
  1023. package/build-types/validated-form-controls/components/stories/custom-select-control.story.d.ts.map +0 -1
  1024. package/build-types/validated-form-controls/components/stories/form-token-field.story.d.ts +0 -9
  1025. package/build-types/validated-form-controls/components/stories/form-token-field.story.d.ts.map +0 -1
  1026. package/build-types/validated-form-controls/components/stories/input-control.story.d.ts +0 -12
  1027. package/build-types/validated-form-controls/components/stories/input-control.story.d.ts.map +0 -1
  1028. package/build-types/validated-form-controls/components/stories/overview.story.d.ts +0 -60
  1029. package/build-types/validated-form-controls/components/stories/overview.story.d.ts.map +0 -1
  1030. package/build-types/validated-form-controls/components/stories/range-control.story.d.ts +0 -6
  1031. package/build-types/validated-form-controls/components/stories/range-control.story.d.ts.map +0 -1
  1032. package/build-types/validated-form-controls/components/stories/story-utils.d.ts +0 -3
  1033. package/build-types/validated-form-controls/components/stories/story-utils.d.ts.map +0 -1
  1034. package/build-types/validated-form-controls/components/stories/textarea-control.story.d.ts +0 -6
  1035. package/build-types/validated-form-controls/components/stories/textarea-control.story.d.ts.map +0 -1
  1036. package/build-types/validated-form-controls/components/stories/toggle-control.story.d.ts +0 -6
  1037. package/build-types/validated-form-controls/components/stories/toggle-control.story.d.ts.map +0 -1
  1038. package/build-types/validated-form-controls/components/stories/toggle-group-control.story.d.ts +0 -6
  1039. package/build-types/validated-form-controls/components/stories/toggle-group-control.story.d.ts.map +0 -1
  1040. package/build-types/validated-form-controls/components/toggle-control.d.ts +0 -7
  1041. package/build-types/validated-form-controls/components/toggle-control.d.ts.map +0 -1
  1042. package/build-types/validated-form-controls/components/toggle-group-control.d.ts +0 -15
  1043. package/build-types/validated-form-controls/components/toggle-group-control.d.ts.map +0 -1
  1044. package/build-types/validated-form-controls/control-with-error.d.ts +0 -36
  1045. package/build-types/validated-form-controls/control-with-error.d.ts.map +0 -1
  1046. package/build-types/validated-form-controls/test/combobox-control.d.ts +0 -2
  1047. package/build-types/validated-form-controls/test/combobox-control.d.ts.map +0 -1
  1048. package/build-types/validated-form-controls/test/content-editable-control.d.ts +0 -2
  1049. package/build-types/validated-form-controls/test/content-editable-control.d.ts.map +0 -1
  1050. package/build-types/validated-form-controls/test/control-with-error.d.ts +0 -2
  1051. package/build-types/validated-form-controls/test/control-with-error.d.ts.map +0 -1
  1052. package/build-types/validated-form-controls/test/custom-select-control.d.ts +0 -2
  1053. package/build-types/validated-form-controls/test/custom-select-control.d.ts.map +0 -1
  1054. package/build-types/validated-form-controls/test/form-token-field.d.ts +0 -2
  1055. package/build-types/validated-form-controls/test/form-token-field.d.ts.map +0 -1
  1056. package/build-types/validated-form-controls/test/input-control.d.ts +0 -2
  1057. package/build-types/validated-form-controls/test/input-control.d.ts.map +0 -1
  1058. package/build-types/validated-form-controls/test/range-control.d.ts +0 -2
  1059. package/build-types/validated-form-controls/test/range-control.d.ts.map +0 -1
  1060. package/build-types/validated-form-controls/test/textarea-control.d.ts +0 -2
  1061. package/build-types/validated-form-controls/test/textarea-control.d.ts.map +0 -1
  1062. package/build-types/validated-form-controls/test/toggle-control.d.ts +0 -2
  1063. package/build-types/validated-form-controls/test/toggle-control.d.ts.map +0 -1
  1064. package/build-types/validated-form-controls/test/toggle-group-control.d.ts +0 -2
  1065. package/build-types/validated-form-controls/test/toggle-group-control.d.ts.map +0 -1
  1066. package/build-types/validated-form-controls/validity-indicator.d.ts +0 -6
  1067. package/build-types/validated-form-controls/validity-indicator.d.ts.map +0 -1
  1068. package/build-types/view/stories/index.story.d.ts +0 -6
  1069. package/build-types/view/stories/index.story.d.ts.map +0 -1
  1070. package/build-types/visually-hidden/stories/index.story.d.ts +0 -8
  1071. package/build-types/visually-hidden/stories/index.story.d.ts.map +0 -1
  1072. package/build-types/z-stack/stories/index.story.d.ts +0 -6
  1073. package/build-types/z-stack/stories/index.story.d.ts.map +0 -1
  1074. package/build-types/z-stack/styles.d.ts +0 -14
  1075. package/build-types/z-stack/styles.d.ts.map +0 -1
  1076. package/src/base-control/styles/base-control-styles.ts +0 -46
  1077. package/src/border-box-control/styles.ts +0 -71
  1078. package/src/border-control/styles.ts +0 -151
  1079. package/src/box-control/styles/box-control-styles.ts +0 -34
  1080. package/src/color-palette/styles.ts +0 -13
  1081. package/src/combobox-control/styles.ts +0 -9
  1082. package/src/dropdown/styles.ts +0 -33
  1083. package/src/progress-bar/styles.ts +0 -84
  1084. package/src/resizable-box/resize-tooltip/styles/resize-tooltip.styles.ts +0 -47
  1085. package/src/scrollable/styles.ts +0 -57
  1086. package/src/scrollable/test/__snapshots__/index.tsx.snap +0 -66
  1087. package/src/textarea-control/styles/textarea-control-styles.ts +0 -90
  1088. package/src/validated-form-controls/components/combobox-control.tsx +0 -56
  1089. package/src/validated-form-controls/components/form-token-field.tsx +0 -57
  1090. package/src/validated-form-controls/components/stories/combobox-control.story.tsx +0 -56
  1091. package/src/validated-form-controls/components/stories/form-token-field.story.tsx +0 -60
  1092. package/src/validated-form-controls/components/stories/input-control.story.tsx +0 -126
  1093. package/src/validated-form-controls/components/stories/overview.story.tsx +0 -560
  1094. package/src/validated-form-controls/components/stories/textarea-control.story.tsx +0 -50
  1095. package/src/validated-form-controls/components/stories/toggle-control.story.tsx +0 -47
  1096. package/src/validated-form-controls/components/stories/toggle-group-control.story.tsx +0 -58
  1097. package/src/validated-form-controls/components/toggle-control.tsx +0 -40
  1098. package/src/validated-form-controls/components/toggle-group-control.tsx +0 -55
  1099. package/src/validated-form-controls/control-with-error.tsx +0 -321
  1100. package/src/validated-form-controls/test/combobox-control.tsx +0 -61
  1101. package/src/validated-form-controls/test/control-with-error.tsx +0 -577
  1102. package/src/validated-form-controls/test/form-token-field.tsx +0 -52
  1103. package/src/validated-form-controls/test/toggle-control.tsx +0 -49
  1104. package/src/validated-form-controls/test/toggle-group-control.tsx +0 -28
  1105. package/src/validated-form-controls/validity-indicator.tsx +0 -40
  1106. package/src/z-stack/styles.ts +0 -35
  1107. /package/src/context/test/{context-system-provider.js → context-system-provider.jsx} +0 -0
  1108. /package/src/input-control/test/__snapshots__/{index.js.snap → index.jsx.snap} +0 -0
  1109. /package/src/item-group/test/__snapshots__/{index.js.snap → index.jsx.snap} +0 -0
  1110. /package/src/item-group/test/{index.js → index.jsx} +0 -0
  1111. /package/src/menu-item/test/__snapshots__/{index.js.snap → index.jsx.snap} +0 -0
  1112. /package/src/menu-item/test/{index.js → index.jsx} +0 -0
  1113. /package/src/slot-fill/test/__snapshots__/{slot.js.snap → slot.jsx.snap} +0 -0
  1114. /package/src/slot-fill/test/{index.js → index.jsx} +0 -0
  1115. /package/src/slot-fill/test/{slot.js → slot.jsx} +0 -0
  1116. /package/src/utils/hooks/test/{use-controlled-state.js → use-controlled-state.jsx} +0 -0
  1117. /package/src/utils/hooks/test/{use-controlled-value.js → use-controlled-value.jsx} +0 -0
  1118. /package/src/utils/hooks/test/{use-cx.js → use-cx.jsx} +0 -0
  1119. /package/src/utils/test/{get-node-text.js → get-node-text.jsx} +0 -0
  1120. /package/src/view/test/__snapshots__/{index.js.snap → index.jsx.snap} +0 -0
  1121. /package/src/view/test/{index.js → index.jsx} +0 -0
@@ -1,8 +1,94 @@
1
1
  // packages/components/src/resizable-box/resize-tooltip/label.tsx
2
+ import clsx from "clsx";
2
3
  import { forwardRef } from "@wordpress/element";
3
4
  import { isRTL } from "@wordpress/i18n";
5
+ import { Text } from "../../text/index.mjs";
4
6
  import { POSITIONS } from "./utils.mjs";
5
- import { TooltipWrapper, Tooltip, LabelText } from "./styles/resize-tooltip.styles.mjs";
7
+
8
+ // packages/style-runtime/src/index.ts
9
+ var STYLE_HASH_ATTRIBUTE = "data-wp-hash";
10
+ function getRuntime() {
11
+ const globalScope = globalThis;
12
+ if (globalScope.__wpStyleRuntime) {
13
+ return globalScope.__wpStyleRuntime;
14
+ }
15
+ globalScope.__wpStyleRuntime = {
16
+ documents: /* @__PURE__ */ new Map(),
17
+ styles: /* @__PURE__ */ new Map(),
18
+ injectedStyles: /* @__PURE__ */ new WeakMap()
19
+ };
20
+ if (typeof document !== "undefined") {
21
+ registerDocument(document);
22
+ }
23
+ return globalScope.__wpStyleRuntime;
24
+ }
25
+ function documentContainsStyleHash(targetDocument, hash) {
26
+ if (!targetDocument.head) {
27
+ return false;
28
+ }
29
+ for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {
30
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {
31
+ return true;
32
+ }
33
+ }
34
+ return false;
35
+ }
36
+ function injectStyle(targetDocument, hash, css) {
37
+ if (!targetDocument.head) {
38
+ return;
39
+ }
40
+ const runtime = getRuntime();
41
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
42
+ if (!injectedStyles) {
43
+ injectedStyles = /* @__PURE__ */ new Set();
44
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
45
+ }
46
+ if (injectedStyles.has(hash)) {
47
+ return;
48
+ }
49
+ if (documentContainsStyleHash(targetDocument, hash)) {
50
+ injectedStyles.add(hash);
51
+ return;
52
+ }
53
+ const style = targetDocument.createElement("style");
54
+ style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);
55
+ style.appendChild(targetDocument.createTextNode(css));
56
+ targetDocument.head.appendChild(style);
57
+ injectedStyles.add(hash);
58
+ }
59
+ function registerDocument(targetDocument) {
60
+ const runtime = getRuntime();
61
+ runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);
62
+ for (const [hash, css] of runtime.styles) {
63
+ injectStyle(targetDocument, hash, css);
64
+ }
65
+ return () => {
66
+ const count = runtime.documents.get(targetDocument);
67
+ if (count === void 0) {
68
+ return;
69
+ }
70
+ if (count <= 1) {
71
+ runtime.documents.delete(targetDocument);
72
+ return;
73
+ }
74
+ runtime.documents.set(targetDocument, count - 1);
75
+ };
76
+ }
77
+ function registerStyle(hash, css) {
78
+ const runtime = getRuntime();
79
+ runtime.styles.set(hash, css);
80
+ for (const targetDocument of runtime.documents.keys()) {
81
+ injectStyle(targetDocument, hash, css);
82
+ }
83
+ }
84
+
85
+ // packages/components/src/resizable-box/resize-tooltip/style.module.scss
86
+ if (typeof process === "undefined" || process.env.NODE_ENV !== "test") {
87
+ registerStyle("6a3e579287", ".f1c3c2f08c84bcca__root{box-sizing:border-box;inset:0;pointer-events:none;position:absolute}.dd094b49bf71dfd9__tooltip-wrapper{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity .12s linear}.d768357cc581321f__tooltip{background:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));border-radius:2px;box-sizing:border-box;color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc));font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;padding:4px 8px;position:relative}.a32e43dd68941abb__label-text.a32e43dd68941abb__label-text.a32e43dd68941abb__label-text{color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc));display:block;font-size:13px;line-height:1.4;white-space:nowrap}");
88
+ }
89
+ var style_module_default = { "root": "f1c3c2f08c84bcca__root", "tooltip-wrapper": "dd094b49bf71dfd9__tooltip-wrapper", "tooltip": "d768357cc581321f__tooltip", "label-text": "a32e43dd68941abb__label-text" };
90
+
91
+ // packages/components/src/resizable-box/resize-tooltip/label.tsx
6
92
  import { jsx as _jsx } from "react/jsx-runtime";
7
93
  var CORNER_OFFSET = 4;
8
94
  var CURSOR_OFFSET_TOP = CORNER_OFFSET * 2.5;
@@ -44,17 +130,18 @@ function Label({
44
130
  left: isRTL() ? CORNER_OFFSET : void 0
45
131
  };
46
132
  }
47
- return /* @__PURE__ */ _jsx(TooltipWrapper, {
133
+ return /* @__PURE__ */ _jsx("div", {
48
134
  "aria-hidden": "true",
49
- className: "components-resizable-tooltip__tooltip-wrapper",
135
+ className: clsx("components-resizable-tooltip__tooltip-wrapper", style_module_default["tooltip-wrapper"]),
50
136
  ref,
51
137
  style,
52
138
  ...props,
53
- children: /* @__PURE__ */ _jsx(Tooltip, {
54
- className: "components-resizable-tooltip__tooltip",
139
+ children: /* @__PURE__ */ _jsx("div", {
140
+ className: clsx("components-resizable-tooltip__tooltip", style_module_default.tooltip),
55
141
  style: labelStyle,
56
- children: /* @__PURE__ */ _jsx(LabelText, {
142
+ children: /* @__PURE__ */ _jsx(Text, {
57
143
  as: "span",
144
+ className: style_module_default["label-text"],
58
145
  children: label
59
146
  })
60
147
  })
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/resizable-box/resize-tooltip/label.tsx"],
4
- "sourcesContent": ["import { forwardRef } from '@wordpress/element';\nimport { isRTL } from '@wordpress/i18n';\nimport { POSITIONS } from './utils';\nimport { TooltipWrapper, Tooltip, LabelText } from './styles/resize-tooltip.styles';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst CORNER_OFFSET = 4;\nconst CURSOR_OFFSET_TOP = CORNER_OFFSET * 2.5;\nfunction Label({\n label,\n position = POSITIONS.corner,\n zIndex = 1000,\n ...props\n}, ref) {\n const showLabel = !!label;\n const isBottom = position === POSITIONS.bottom;\n const isCorner = position === POSITIONS.corner;\n if (!showLabel) {\n return null;\n }\n let style = {\n opacity: showLabel ? 1 : undefined,\n zIndex\n };\n let labelStyle = {};\n if (isBottom) {\n style = {\n ...style,\n position: 'absolute',\n bottom: CURSOR_OFFSET_TOP * -1,\n left: '50%',\n transform: 'translate(-50%, 0)'\n };\n labelStyle = {\n transform: `translate(0, 100%)`\n };\n }\n if (isCorner) {\n style = {\n ...style,\n position: 'absolute',\n top: CORNER_OFFSET,\n right: isRTL() ? undefined : CORNER_OFFSET,\n left: isRTL() ? CORNER_OFFSET : undefined\n };\n }\n return /*#__PURE__*/_jsx(TooltipWrapper, {\n \"aria-hidden\": \"true\",\n className: \"components-resizable-tooltip__tooltip-wrapper\",\n ref: ref,\n style: style,\n ...props,\n children: /*#__PURE__*/_jsx(Tooltip, {\n className: \"components-resizable-tooltip__tooltip\",\n style: labelStyle,\n children: /*#__PURE__*/_jsx(LabelText, {\n as: \"span\",\n children: label\n })\n })\n });\n}\nconst ForwardedComponent = forwardRef(Label);\nexport default ForwardedComponent;"],
5
- "mappings": ";AAAA,SAAS,kBAAkB;AAC3B,SAAS,aAAa;AACtB,SAAS,iBAAiB;AAC1B,SAAS,gBAAgB,SAAS,iBAAiB;AACnD,SAAS,OAAO,YAAY;AAC5B,IAAM,gBAAgB;AACtB,IAAM,oBAAoB,gBAAgB;AAC1C,SAAS,MAAM;AAAA,EACb;AAAA,EACA,WAAW,UAAU;AAAA,EACrB,SAAS;AAAA,EACT,GAAG;AACL,GAAG,KAAK;AACN,QAAM,YAAY,CAAC,CAAC;AACpB,QAAM,WAAW,aAAa,UAAU;AACxC,QAAM,WAAW,aAAa,UAAU;AACxC,MAAI,CAAC,WAAW;AACd,WAAO;AAAA,EACT;AACA,MAAI,QAAQ;AAAA,IACV,SAAS,YAAY,IAAI;AAAA,IACzB;AAAA,EACF;AACA,MAAI,aAAa,CAAC;AAClB,MAAI,UAAU;AACZ,YAAQ;AAAA,MACN,GAAG;AAAA,MACH,UAAU;AAAA,MACV,QAAQ,oBAAoB;AAAA,MAC5B,MAAM;AAAA,MACN,WAAW;AAAA,IACb;AACA,iBAAa;AAAA,MACX,WAAW;AAAA,IACb;AAAA,EACF;AACA,MAAI,UAAU;AACZ,YAAQ;AAAA,MACN,GAAG;AAAA,MACH,UAAU;AAAA,MACV,KAAK;AAAA,MACL,OAAO,MAAM,IAAI,SAAY;AAAA,MAC7B,MAAM,MAAM,IAAI,gBAAgB;AAAA,IAClC;AAAA,EACF;AACA,SAAoB,qBAAK,gBAAgB;AAAA,IACvC,eAAe;AAAA,IACf,WAAW;AAAA,IACX;AAAA,IACA;AAAA,IACA,GAAG;AAAA,IACH,UAAuB,qBAAK,SAAS;AAAA,MACnC,WAAW;AAAA,MACX,OAAO;AAAA,MACP,UAAuB,qBAAK,WAAW;AAAA,QACrC,IAAI;AAAA,QACJ,UAAU;AAAA,MACZ,CAAC;AAAA,IACH,CAAC;AAAA,EACH,CAAC;AACH;AACA,IAAM,qBAAqB,WAAW,KAAK;AAC3C,IAAO,gBAAQ;",
3
+ "sources": ["../../../src/resizable-box/resize-tooltip/label.tsx", "../../../../style-runtime/src/index.ts", "../../../src/resizable-box/resize-tooltip/style.module.scss"],
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { forwardRef } from '@wordpress/element';\nimport { isRTL } from '@wordpress/i18n';\nimport { Text } from '../../text';\nimport { POSITIONS } from './utils';\nimport styles from './style.module.scss';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst CORNER_OFFSET = 4;\nconst CURSOR_OFFSET_TOP = CORNER_OFFSET * 2.5;\nfunction Label({\n label,\n position = POSITIONS.corner,\n zIndex = 1000,\n ...props\n}, ref) {\n const showLabel = !!label;\n const isBottom = position === POSITIONS.bottom;\n const isCorner = position === POSITIONS.corner;\n if (!showLabel) {\n return null;\n }\n let style = {\n opacity: showLabel ? 1 : undefined,\n zIndex\n };\n let labelStyle = {};\n if (isBottom) {\n style = {\n ...style,\n position: 'absolute',\n bottom: CURSOR_OFFSET_TOP * -1,\n left: '50%',\n transform: 'translate(-50%, 0)'\n };\n labelStyle = {\n transform: `translate(0, 100%)`\n };\n }\n if (isCorner) {\n style = {\n ...style,\n position: 'absolute',\n top: CORNER_OFFSET,\n right: isRTL() ? undefined : CORNER_OFFSET,\n left: isRTL() ? CORNER_OFFSET : undefined\n };\n }\n return /*#__PURE__*/_jsx(\"div\", {\n \"aria-hidden\": \"true\",\n className: clsx('components-resizable-tooltip__tooltip-wrapper', styles['tooltip-wrapper']),\n ref: ref,\n style: style,\n ...props,\n children: /*#__PURE__*/_jsx(\"div\", {\n className: clsx('components-resizable-tooltip__tooltip', styles.tooltip),\n style: labelStyle,\n children: /*#__PURE__*/_jsx(Text, {\n as: \"span\",\n className: styles['label-text'],\n children: label\n })\n })\n });\n}\nconst ForwardedComponent = forwardRef(Label);\nexport default ForwardedComponent;", "const STYLE_HASH_ATTRIBUTE = 'data-wp-hash';\n\n/**\n * Returns the shared style runtime registry.\n *\n * The registry is stored on `globalThis` so separately bundled copies of this\n * package can coordinate through the same document and style maps.\n *\n * @return The shared runtime registry.\n */\nfunction getRuntime() {\n const globalScope = globalThis;\n if (globalScope.__wpStyleRuntime) {\n return globalScope.__wpStyleRuntime;\n }\n globalScope.__wpStyleRuntime = {\n documents: new Map(),\n styles: new Map(),\n injectedStyles: new WeakMap()\n };\n if (typeof document !== 'undefined') {\n registerDocument(document);\n }\n return globalScope.__wpStyleRuntime;\n}\n\n/**\n * Checks whether a document already contains a style tag for a hash.\n *\n * @param targetDocument Document to inspect.\n * @param hash Stable hash for the transformed CSS.\n *\n * @return Whether the style hash already exists in the document.\n */\nfunction documentContainsStyleHash(targetDocument, hash) {\n if (!targetDocument.head) {\n return false;\n }\n for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {\n if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Injects a registered style into a document, unless that document already\n * contains a style tag for the same hash.\n *\n * @param targetDocument Document to inject the style into.\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nfunction injectStyle(targetDocument, hash, css) {\n if (!targetDocument.head) {\n return;\n }\n const runtime = getRuntime();\n let injectedStyles = runtime.injectedStyles.get(targetDocument);\n if (!injectedStyles) {\n injectedStyles = new Set();\n runtime.injectedStyles.set(targetDocument, injectedStyles);\n }\n if (injectedStyles.has(hash)) {\n return;\n }\n\n // Older generated CSS module output can still inject matching style tags\n // after this document's cache is created, so keep the DOM as the fallback\n // source of truth on cache misses.\n if (documentContainsStyleHash(targetDocument, hash)) {\n injectedStyles.add(hash);\n return;\n }\n const style = targetDocument.createElement('style');\n style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);\n style.appendChild(targetDocument.createTextNode(css));\n targetDocument.head.appendChild(style);\n injectedStyles.add(hash);\n}\n\n/**\n * Registers a document as a style injection target.\n *\n * Existing registered styles are replayed into the document immediately.\n * Documents are reference-counted so multiple providers can safely register the\n * same document without one cleanup removing it while another registration is\n * still active.\n *\n * @param targetDocument Document to receive registered styles.\n * @return Cleanup function that unregisters this document registration.\n */\nexport function registerDocument(targetDocument) {\n const runtime = getRuntime();\n runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);\n for (const [hash, css] of runtime.styles) {\n injectStyle(targetDocument, hash, css);\n }\n return () => {\n const count = runtime.documents.get(targetDocument);\n if (count === undefined) {\n return;\n }\n if (count <= 1) {\n runtime.documents.delete(targetDocument);\n return;\n }\n runtime.documents.set(targetDocument, count - 1);\n };\n}\n\n/**\n * Registers a style and injects it into all registered documents.\n *\n * The hash is used as the deduplication key, so calling this repeatedly with\n * the same hash will not add duplicate style tags to a document.\n * Registered styles are retained for the lifetime of the page so they can be\n * replayed into documents that are registered later.\n *\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nexport function registerStyle(hash, css) {\n const runtime = getRuntime();\n runtime.styles.set(hash, css);\n for (const targetDocument of runtime.documents.keys()) {\n injectStyle(targetDocument, hash, css);\n }\n}", "import { registerStyle } from '@wordpress/style-runtime';\nif (typeof process === 'undefined' || process.env.NODE_ENV !== 'test') {\n\tregisterStyle(\"6a3e579287\", \".f1c3c2f08c84bcca__root{box-sizing:border-box;inset:0;pointer-events:none;position:absolute}.dd094b49bf71dfd9__tooltip-wrapper{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity .12s linear}.d768357cc581321f__tooltip{background:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));border-radius:2px;box-sizing:border-box;color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc));font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;padding:4px 8px;position:relative}.a32e43dd68941abb__label-text.a32e43dd68941abb__label-text.a32e43dd68941abb__label-text{color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc));display:block;font-size:13px;line-height:1.4;white-space:nowrap}\");\n}\nexport default {\"root\":\"f1c3c2f08c84bcca__root\",\"tooltip-wrapper\":\"dd094b49bf71dfd9__tooltip-wrapper\",\"tooltip\":\"d768357cc581321f__tooltip\",\"label-text\":\"a32e43dd68941abb__label-text\"};\n"],
5
+ "mappings": ";AAAA,OAAO,UAAU;AACjB,SAAS,kBAAkB;AAC3B,SAAS,aAAa;AACtB,SAAS,YAAY;AACrB,SAAS,iBAAiB;;;ACJ1B,I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ACV,QAAQ,oBAAoB;AAAA,MAC5B,MAAM;AAAA,MACN,WAAW;AAAA,IACb;AACA,iBAAa;AAAA,MACX,WAAW;AAAA,IACb;AAAA,EACF;AACA,MAAI,UAAU;AACZ,YAAQ;AAAA,MACN,GAAG;AAAA,MACH,UAAU;AAAA,MACV,KAAK;AAAA,MACL,OAAO,MAAM,IAAI,SAAY;AAAA,MAC7B,MAAM,MAAM,IAAI,gBAAgB;AAAA,IAClC;AAAA,EACF;AACA,SAAoB,qBAAK,OAAO;AAAA,IAC9B,eAAe;AAAA,IACf,WAAW,KAAK,iDAAiD,qBAAO,iBAAiB,CAAC;AAAA,IAC1F;AAAA,IACA;AAAA,IACA,GAAG;AAAA,IACH,UAAuB,qBAAK,OAAO;AAAA,MACjC,WAAW,KAAK,yCAAyC,qBAAO,OAAO;AAAA,MACvE,OAAO;AAAA,MACP,UAAuB,qBAAK,MAAM;AAAA,QAChC,IAAI;AAAA,QACJ,WAAW,qBAAO,YAAY;AAAA,QAC9B,UAAU;AAAA,MACZ,CAAC;AAAA,IACH,CAAC;AAAA,EACH,CAAC;AACH;AACA,IAAM,qBAAqB,WAAW,KAAK;AAC3C,IAAO,gBAAQ;",
6
6
  "names": []
7
7
  }
@@ -1,17 +1,104 @@
1
1
  // packages/components/src/scrollable/hook.ts
2
- import { useMemo } from "@wordpress/element";
2
+ import clsx from "clsx";
3
3
  import { useContextSystem } from "../context/index.mjs";
4
- import * as styles from "./styles.mjs";
5
- import { useCx } from "../utils/hooks/use-cx.mjs";
4
+
5
+ // packages/style-runtime/src/index.ts
6
+ var STYLE_HASH_ATTRIBUTE = "data-wp-hash";
7
+ function getRuntime() {
8
+ const globalScope = globalThis;
9
+ if (globalScope.__wpStyleRuntime) {
10
+ return globalScope.__wpStyleRuntime;
11
+ }
12
+ globalScope.__wpStyleRuntime = {
13
+ documents: /* @__PURE__ */ new Map(),
14
+ styles: /* @__PURE__ */ new Map(),
15
+ injectedStyles: /* @__PURE__ */ new WeakMap()
16
+ };
17
+ if (typeof document !== "undefined") {
18
+ registerDocument(document);
19
+ }
20
+ return globalScope.__wpStyleRuntime;
21
+ }
22
+ function documentContainsStyleHash(targetDocument, hash) {
23
+ if (!targetDocument.head) {
24
+ return false;
25
+ }
26
+ for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {
27
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {
28
+ return true;
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ function injectStyle(targetDocument, hash, css) {
34
+ if (!targetDocument.head) {
35
+ return;
36
+ }
37
+ const runtime = getRuntime();
38
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
39
+ if (!injectedStyles) {
40
+ injectedStyles = /* @__PURE__ */ new Set();
41
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
42
+ }
43
+ if (injectedStyles.has(hash)) {
44
+ return;
45
+ }
46
+ if (documentContainsStyleHash(targetDocument, hash)) {
47
+ injectedStyles.add(hash);
48
+ return;
49
+ }
50
+ const style = targetDocument.createElement("style");
51
+ style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);
52
+ style.appendChild(targetDocument.createTextNode(css));
53
+ targetDocument.head.appendChild(style);
54
+ injectedStyles.add(hash);
55
+ }
56
+ function registerDocument(targetDocument) {
57
+ const runtime = getRuntime();
58
+ runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);
59
+ for (const [hash, css] of runtime.styles) {
60
+ injectStyle(targetDocument, hash, css);
61
+ }
62
+ return () => {
63
+ const count = runtime.documents.get(targetDocument);
64
+ if (count === void 0) {
65
+ return;
66
+ }
67
+ if (count <= 1) {
68
+ runtime.documents.delete(targetDocument);
69
+ return;
70
+ }
71
+ runtime.documents.set(targetDocument, count - 1);
72
+ };
73
+ }
74
+ function registerStyle(hash, css) {
75
+ const runtime = getRuntime();
76
+ runtime.styles.set(hash, css);
77
+ for (const targetDocument of runtime.documents.keys()) {
78
+ injectStyle(targetDocument, hash, css);
79
+ }
80
+ }
81
+
82
+ // packages/components/src/scrollable/style.module.scss
83
+ if (typeof process === "undefined" || process.env.NODE_ENV !== "test") {
84
+ registerStyle("667cbbe993", ".c8c574e84747ff1d__scrollable{height:100%}@media only screen and (min-device-width:40em){.c8c574e84747ff1d__scrollable::-webkit-scrollbar{height:12px;width:12px}.c8c574e84747ff1d__scrollable::-webkit-scrollbar-track{background:rgba(0,0,0,.04);border-radius:8px}.c8c574e84747ff1d__scrollable::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:rgba(0,0,0,.2);border:2px solid transparent;border-radius:7px}.c8c574e84747ff1d__scrollable:hover::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5)}}._266d253504ce997a__smooth-scroll{scroll-behavior:smooth}.e000fb9481918254__scroll-x{overflow-x:auto;overflow-y:hidden}._71594f0091995597__scroll-y{overflow-x:hidden;overflow-y:auto}.f5191978d7129fe7__scroll-auto{overflow-y:auto}");
85
+ }
86
+ var style_module_default = { "scrollable": "c8c574e84747ff1d__scrollable", "smooth-scroll": "_266d253504ce997a__smooth-scroll", "scroll-x": "e000fb9481918254__scroll-x", "scroll-y": "_71594f0091995597__scroll-y", "scroll-auto": "f5191978d7129fe7__scroll-auto" };
87
+
88
+ // packages/components/src/scrollable/hook.ts
6
89
  function useScrollable(props) {
7
90
  const {
8
91
  className,
9
92
  scrollDirection = "y",
10
- smoothScroll: smoothScroll2 = false,
93
+ smoothScroll = false,
11
94
  ...otherProps
12
95
  } = useContextSystem(props, "Scrollable");
13
- const cx = useCx();
14
- const classes = useMemo(() => cx(styles.Scrollable, styles.scrollableScrollbar, smoothScroll2 && styles.smoothScroll, scrollDirection === "x" && styles.scrollX, scrollDirection === "y" && styles.scrollY, scrollDirection === "auto" && styles.scrollAuto, className), [className, cx, scrollDirection, smoothScroll2]);
96
+ const classes = clsx(style_module_default.scrollable, {
97
+ [style_module_default["smooth-scroll"]]: smoothScroll,
98
+ [style_module_default["scroll-x"]]: scrollDirection === "x",
99
+ [style_module_default["scroll-y"]]: scrollDirection === "y",
100
+ [style_module_default["scroll-auto"]]: scrollDirection === "auto"
101
+ }, className);
15
102
  return {
16
103
  ...otherProps,
17
104
  className: classes
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/scrollable/hook.ts"],
4
- "sourcesContent": ["import { useMemo } from '@wordpress/element';\nimport { useContextSystem } from '../context';\nimport * as styles from './styles';\nimport { useCx } from '../utils/hooks/use-cx';\nexport function useScrollable(props) {\n const {\n className,\n scrollDirection = 'y',\n smoothScroll = false,\n ...otherProps\n } = useContextSystem(props, 'Scrollable');\n const cx = useCx();\n const classes = useMemo(() => cx(styles.Scrollable, styles.scrollableScrollbar, smoothScroll && styles.smoothScroll, scrollDirection === 'x' && styles.scrollX, scrollDirection === 'y' && styles.scrollY, scrollDirection === 'auto' && styles.scrollAuto, className), [className, cx, scrollDirection, smoothScroll]);\n return {\n ...otherProps,\n className: classes\n };\n}"],
5
- "mappings": ";AAAA,SAAS,eAAe;AACxB,SAAS,wBAAwB;AACjC,YAAY,YAAY;AACxB,SAAS,aAAa;AACf,SAAS,cAAc,OAAO;AACnC,QAAM;AAAA,IACJ;AAAA,IACA,kBAAkB;AAAA,IAClB,cAAAA,gBAAe;AAAA,IACf,GAAG;AAAA,EACL,IAAI,iBAAiB,OAAO,YAAY;AACxC,QAAM,KAAK,MAAM;AACjB,QAAM,UAAU,QAAQ,MAAM,GAAU,mBAAmB,4BAAqBA,iBAAuB,qBAAc,oBAAoB,OAAc,gBAAS,oBAAoB,OAAc,gBAAS,oBAAoB,UAAiB,mBAAY,SAAS,GAAG,CAAC,WAAW,IAAI,iBAAiBA,aAAY,CAAC;AACtT,SAAO;AAAA,IACL,GAAG;AAAA,IACH,WAAW;AAAA,EACb;AACF;",
6
- "names": ["smoothScroll"]
3
+ "sources": ["../../src/scrollable/hook.ts", "../../../style-runtime/src/index.ts", "../../src/scrollable/style.module.scss"],
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { useContextSystem } from '../context';\nimport styles from './style.module.scss';\nexport function useScrollable(props) {\n const {\n className,\n scrollDirection = 'y',\n smoothScroll = false,\n ...otherProps\n } = useContextSystem(props, 'Scrollable');\n const classes = clsx(styles.scrollable, {\n [styles['smooth-scroll']]: smoothScroll,\n [styles['scroll-x']]: scrollDirection === 'x',\n [styles['scroll-y']]: scrollDirection === 'y',\n [styles['scroll-auto']]: scrollDirection === 'auto'\n }, className);\n return {\n ...otherProps,\n className: classes\n };\n}", "const STYLE_HASH_ATTRIBUTE = 'data-wp-hash';\n\n/**\n * Returns the shared style runtime registry.\n *\n * The registry is stored on `globalThis` so separately bundled copies of this\n * package can coordinate through the same document and style maps.\n *\n * @return The shared runtime registry.\n */\nfunction getRuntime() {\n const globalScope = globalThis;\n if (globalScope.__wpStyleRuntime) {\n return globalScope.__wpStyleRuntime;\n }\n globalScope.__wpStyleRuntime = {\n documents: new Map(),\n styles: new Map(),\n injectedStyles: new WeakMap()\n };\n if (typeof document !== 'undefined') {\n registerDocument(document);\n }\n return globalScope.__wpStyleRuntime;\n}\n\n/**\n * Checks whether a document already contains a style tag for a hash.\n *\n * @param targetDocument Document to inspect.\n * @param hash Stable hash for the transformed CSS.\n *\n * @return Whether the style hash already exists in the document.\n */\nfunction documentContainsStyleHash(targetDocument, hash) {\n if (!targetDocument.head) {\n return false;\n }\n for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {\n if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Injects a registered style into a document, unless that document already\n * contains a style tag for the same hash.\n *\n * @param targetDocument Document to inject the style into.\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nfunction injectStyle(targetDocument, hash, css) {\n if (!targetDocument.head) {\n return;\n }\n const runtime = getRuntime();\n let injectedStyles = runtime.injectedStyles.get(targetDocument);\n if (!injectedStyles) {\n injectedStyles = new Set();\n runtime.injectedStyles.set(targetDocument, injectedStyles);\n }\n if (injectedStyles.has(hash)) {\n return;\n }\n\n // Older generated CSS module output can still inject matching style tags\n // after this document's cache is created, so keep the DOM as the fallback\n // source of truth on cache misses.\n if (documentContainsStyleHash(targetDocument, hash)) {\n injectedStyles.add(hash);\n return;\n }\n const style = targetDocument.createElement('style');\n style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);\n style.appendChild(targetDocument.createTextNode(css));\n targetDocument.head.appendChild(style);\n injectedStyles.add(hash);\n}\n\n/**\n * Registers a document as a style injection target.\n *\n * Existing registered styles are replayed into the document immediately.\n * Documents are reference-counted so multiple providers can safely register the\n * same document without one cleanup removing it while another registration is\n * still active.\n *\n * @param targetDocument Document to receive registered styles.\n * @return Cleanup function that unregisters this document registration.\n */\nexport function registerDocument(targetDocument) {\n const runtime = getRuntime();\n runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);\n for (const [hash, css] of runtime.styles) {\n injectStyle(targetDocument, hash, css);\n }\n return () => {\n const count = runtime.documents.get(targetDocument);\n if (count === undefined) {\n return;\n }\n if (count <= 1) {\n runtime.documents.delete(targetDocument);\n return;\n }\n runtime.documents.set(targetDocument, count - 1);\n };\n}\n\n/**\n * Registers a style and injects it into all registered documents.\n *\n * The hash is used as the deduplication key, so calling this repeatedly with\n * the same hash will not add duplicate style tags to a document.\n * Registered styles are retained for the lifetime of the page so they can be\n * replayed into documents that are registered later.\n *\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nexport function registerStyle(hash, css) {\n const runtime = getRuntime();\n runtime.styles.set(hash, css);\n for (const targetDocument of runtime.documents.keys()) {\n injectStyle(targetDocument, hash, css);\n }\n}", "import { registerStyle } from '@wordpress/style-runtime';\nif (typeof process === 'undefined' || process.env.NODE_ENV !== 'test') {\n\tregisterStyle(\"667cbbe993\", \".c8c574e84747ff1d__scrollable{height:100%}@media only screen and (min-device-width:40em){.c8c574e84747ff1d__scrollable::-webkit-scrollbar{height:12px;width:12px}.c8c574e84747ff1d__scrollable::-webkit-scrollbar-track{background:rgba(0,0,0,.04);border-radius:8px}.c8c574e84747ff1d__scrollable::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:rgba(0,0,0,.2);border:2px solid transparent;border-radius:7px}.c8c574e84747ff1d__scrollable:hover::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5)}}._266d253504ce997a__smooth-scroll{scroll-behavior:smooth}.e000fb9481918254__scroll-x{overflow-x:auto;overflow-y:hidden}._71594f0091995597__scroll-y{overflow-x:hidden;overflow-y:auto}.f5191978d7129fe7__scroll-auto{overflow-y:auto}\");\n}\nexport default {\"scrollable\":\"c8c574e84747ff1d__scrollable\",\"smooth-scroll\":\"_266d253504ce997a__smooth-scroll\",\"scroll-x\":\"e000fb9481918254__scroll-x\",\"scroll-y\":\"_71594f0091995597__scroll-y\",\"scroll-auto\":\"f5191978d7129fe7__scroll-auto\"};\n"],
5
+ "mappings": ";AAAA,OAAO,UAAU;AACjB,SAAS,wBAAwB;;;ACDjC,IAAM,uBAAuB;AAU7B,SAAS,aAAa;AACpB,QAAM,cAAc;AACpB,MAAI,YAAY,kBAAkB;AAChC,WAAO,YAAY;AAAA,EACrB;AACA,cAAY,mBAAmB;AAAA,IAC7B,WAAW,oBAAI,IAAI;AAAA,IACnB,QAAQ,oBAAI,IAAI;AAAA,IAChB,gBAAgB,oBAAI,QAAQ;AAAA,EAC9B;AACA,MAAI,OAAO,aAAa,aAAa;AACnC,qBAAiB,QAAQ;AAAA,EAC3B;AACA,SAAO,YAAY;AACrB;AAUA,SAAS,0BAA0B,gBAAgB,MAAM;AACvD,MAAI,CAAC,eAAe,MAAM;AACxB,WAAO;AAAA,EACT;AACA,aAAW,SAAS,eAAe,KAAK,iBAAiB,SAAS,oBAAoB,GAAG,GAAG;AAC1F,QAAI,MAAM,aAAa,oBAAoB,MAAM,MAAM;AACrD,aAAO;AAAA,IACT;AAAA,EACF;AACA,SAAO;AACT;AAU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IAAI,OAAO,YAAY,eAAe,QAAQ,IAAI,aAAa,QAAQ;AACtE,gBAAc,cAAc,4uBAA4uB;AACzwB;AACA,IAAO,uBAAQ,EAAC,cAAa,gCAA+B,iBAAgB,oCAAmC,YAAW,8BAA6B,YAAW,+BAA8B,eAAc,gCAA+B;;;AFDtO,SAAS,cAAc,OAAO;AACnC,QAAM;AAAA,IACJ;AAAA,IACA,kBAAkB;AAAA,IAClB,eAAe;AAAA,IACf,GAAG;AAAA,EACL,IAAI,iBAAiB,OAAO,YAAY;AACxC,QAAM,UAAU,KAAK,qBAAO,YAAY;AAAA,IACtC,CAAC,qBAAO,eAAe,CAAC,GAAG;AAAA,IAC3B,CAAC,qBAAO,UAAU,CAAC,GAAG,oBAAoB;AAAA,IAC1C,CAAC,qBAAO,UAAU,CAAC,GAAG,oBAAoB;AAAA,IAC1C,CAAC,qBAAO,aAAa,CAAC,GAAG,oBAAoB;AAAA,EAC/C,GAAG,SAAS;AACZ,SAAO;AAAA,IACL,GAAG;AAAA,IACH,WAAW;AAAA,EACb;AACF;",
6
+ "names": []
7
7
  }
@@ -1,5 +1,6 @@
1
1
  // packages/components/src/snackbar/index.tsx
2
2
  import clsx from "clsx";
3
+ import { useIsPresent } from "framer-motion";
3
4
  import { speak } from "@wordpress/a11y";
4
5
  import { useEffect, useLayoutEffect, useRef, forwardRef, renderToString } from "@wordpress/element";
5
6
  import { __ } from "@wordpress/i18n";
@@ -31,6 +32,7 @@ function UnforwardedSnackbar({
31
32
  onDismiss,
32
33
  listRef
33
34
  }, ref) {
35
+ const isPresent = useIsPresent();
34
36
  function dismissMe(event) {
35
37
  if (event && event.preventDefault) {
36
38
  event.preventDefault();
@@ -58,14 +60,15 @@ function UnforwardedSnackbar({
58
60
  };
59
61
  });
60
62
  useEffect(() => {
63
+ if (explicitDismiss || !isPresent) {
64
+ return;
65
+ }
61
66
  const timeoutHandle = setTimeout(() => {
62
- if (!explicitDismiss) {
63
- callbacksRef.current.onDismiss?.();
64
- callbacksRef.current.onRemove?.();
65
- }
67
+ callbacksRef.current.onDismiss?.();
68
+ callbacksRef.current.onRemove?.();
66
69
  }, NOTICE_TIMEOUT);
67
70
  return () => clearTimeout(timeoutHandle);
68
- }, [explicitDismiss]);
71
+ }, [explicitDismiss, isPresent]);
69
72
  const classes = clsx(className, "components-snackbar", {
70
73
  "components-snackbar-explicit-dismiss": !!explicitDismiss
71
74
  });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/snackbar/index.tsx"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport { speak } from '@wordpress/a11y';\nimport { useEffect, useLayoutEffect, useRef, forwardRef, renderToString } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport warning from '@wordpress/warning';\nimport Button from '../button';\nimport ExternalLink from '../external-link';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst NOTICE_TIMEOUT = 6000;\n\n/**\n * Custom hook which announces the message with the given politeness, if a\n * valid message is provided.\n *\n * @param message Message to announce.\n * @param politeness Politeness to announce.\n */\nfunction useSpokenMessage(message, politeness) {\n const spokenMessage = typeof message === 'string' ? message : renderToString(message);\n useEffect(() => {\n if (spokenMessage) {\n speak(spokenMessage, politeness);\n }\n }, [spokenMessage, politeness]);\n}\nfunction UnforwardedSnackbar({\n className,\n children,\n spokenMessage = children,\n politeness = 'polite',\n actions = [],\n onRemove,\n icon = null,\n explicitDismiss = false,\n // onDismiss is a callback executed when the snackbar is dismissed.\n // It is distinct from onRemove, which _looks_ like a callback but is\n // actually the function to call to remove the snackbar from the UI.\n onDismiss,\n listRef\n}, ref) {\n function dismissMe(event) {\n if (event && event.preventDefault) {\n event.preventDefault();\n }\n\n // Prevent focus loss by moving it to the list element.\n listRef?.current?.focus();\n onDismiss?.();\n onRemove?.();\n }\n function onActionClick(event, onClick) {\n event.stopPropagation();\n onRemove?.();\n if (onClick) {\n onClick(event);\n }\n }\n useSpokenMessage(spokenMessage, politeness);\n\n // The `onDismiss/onRemove` can have unstable references,\n // trigger side-effect cleanup, and reset timers.\n const callbacksRef = useRef({\n onDismiss,\n onRemove\n });\n useLayoutEffect(() => {\n callbacksRef.current = {\n onDismiss,\n onRemove\n };\n });\n useEffect(() => {\n // Only set up the timeout dismiss if we're not explicitly dismissing.\n const timeoutHandle = setTimeout(() => {\n if (!explicitDismiss) {\n callbacksRef.current.onDismiss?.();\n callbacksRef.current.onRemove?.();\n }\n }, NOTICE_TIMEOUT);\n return () => clearTimeout(timeoutHandle);\n }, [explicitDismiss]);\n const classes = clsx(className, 'components-snackbar', {\n 'components-snackbar-explicit-dismiss': !!explicitDismiss\n });\n if (actions && actions.length > 1) {\n // We need to inform developers that snackbar only accepts 1 action.\n globalThis.SCRIPT_DEBUG === true ? warning('Snackbar can only have one action. Use Notice if your message requires many actions.') : void 0;\n // return first element only while keeping it inside an array\n actions = [actions[0]];\n }\n const snackbarContentClassnames = clsx('components-snackbar__content', {\n 'components-snackbar__content-with-icon': !!icon\n });\n return /*#__PURE__*/_jsx(\"div\", {\n ref: ref,\n className: classes,\n onClick: !explicitDismiss ? dismissMe : undefined,\n tabIndex: 0,\n role: !explicitDismiss ? 'button' : undefined,\n onKeyPress: !explicitDismiss ? dismissMe : undefined,\n \"aria-label\": !explicitDismiss ? __('Dismiss this notice') : undefined,\n \"data-testid\": \"snackbar\",\n children: /*#__PURE__*/_jsxs(\"div\", {\n className: snackbarContentClassnames,\n children: [icon && /*#__PURE__*/_jsx(\"div\", {\n className: \"components-snackbar__icon\",\n children: icon\n }), children, actions.map(({\n label,\n onClick,\n url,\n openInNewTab = false\n }, index) => url !== undefined && openInNewTab ? /*#__PURE__*/_jsx(ExternalLink, {\n href: url,\n onClick: event => onActionClick(event, onClick),\n className: \"components-snackbar__action\",\n children: label\n }, index) : /*#__PURE__*/_jsx(Button, {\n __next40pxDefaultSize: true,\n href: url,\n variant: \"link\",\n onClick: event => onActionClick(event, onClick),\n className: \"components-snackbar__action\",\n children: label\n }, index)), explicitDismiss && /*#__PURE__*/_jsx(\"span\", {\n role: \"button\",\n \"aria-label\": __('Dismiss this notice'),\n tabIndex: 0,\n className: \"components-snackbar__dismiss-button\",\n onClick: dismissMe,\n onKeyPress: dismissMe,\n children: \"\\u2715\"\n })]\n })\n });\n}\n\n/**\n * A Snackbar displays a succinct message that is cleared out after a small delay.\n *\n * It can also offer the user options, like viewing a published post.\n * But these options should also be available elsewhere in the UI.\n *\n * ```jsx\n * const MySnackbarNotice = () => (\n * <Snackbar>Post published successfully.</Snackbar>\n * );\n * ```\n */\nexport const Snackbar = forwardRef(UnforwardedSnackbar);\nSnackbar.displayName = 'Snackbar';\nexport default Snackbar;"],
5
- "mappings": ";AAAA,OAAO,UAAU;AACjB,SAAS,aAAa;AACtB,SAAS,WAAW,iBAAiB,QAAQ,YAAY,sBAAsB;AAC/E,SAAS,UAAU;AACnB,OAAO,aAAa;AACpB,OAAO,YAAY;AACnB,OAAO,kBAAkB;AACzB,SAAS,OAAO,MAAM,QAAQ,aAAa;AAC3C,IAAM,iBAAiB;AASvB,SAAS,iBAAiB,SAAS,YAAY;AAC7C,QAAM,gBAAgB,OAAO,YAAY,WAAW,UAAU,eAAe,OAAO;AACpF,YAAU,MAAM;AACd,QAAI,eAAe;AACjB,YAAM,eAAe,UAAU;AAAA,IACjC;AAAA,EACF,GAAG,CAAC,eAAe,UAAU,CAAC;AAChC;AACA,SAAS,oBAAoB;AAAA,EAC3B;AAAA,EACA;AAAA,EACA,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,UAAU,CAAC;AAAA,EACX;AAAA,EACA,OAAO;AAAA,EACP,kBAAkB;AAAA;AAAA;AAAA;AAAA,EAIlB;AAAA,EACA;AACF,GAAG,KAAK;AACN,WAAS,UAAU,OAAO;AACxB,QAAI,SAAS,MAAM,gBAAgB;AACjC,YAAM,eAAe;AAAA,IACvB;AAGA,aAAS,SAAS,MAAM;AACxB,gBAAY;AACZ,eAAW;AAAA,EACb;AACA,WAA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AAC,GAAG,UAAU,QAAQ,IAAI,CAAC;AAAA,QACzB;AAAA,QACA;AAAA,QACA;AAAA,QACA,eAAe;AAAA,MACjB,GAAG,UAAU,QAAQ,UAAa,eAA4B,qBAAK,cAAc;AAAA,QAC/E,MAAM;AAAA,QACN,SAAS,WAAS,cAAc,OAAO,OAAO;AAAA,QAC9C,WAAW;AAAA,QACX,UAAU;AAAA,MACZ,GAAG,KAAK,IAAiB,qBAAK,QAAQ;AAAA,QACpC,uBAAuB;AAAA,QACvB,MAAM;AAAA,QACN,SAAS;AAAA,QACT,SAAS,WAAS,cAAc,OAAO,OAAO;AAAA,QAC9C,WAAW;AAAA,QACX,UAAU;AAAA,MACZ,GAAG,KAAK,CAAC,GAAG,mBAAgC,qBAAK,QAAQ;AAAA,QACvD,MAAM;AAAA,QACN,cAAc,GAAG,qBAAqB;AAAA,QACtC,UAAU;AAAA,QACV,WAAW;AAAA,QACX,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,UAAU;AAAA,MACZ,CAAC,CAAC;AAAA,IACJ,CAAC;AAAA,EACH,CAAC;AACH;AAcO,IAAM,WAAW,WAAW,mBAAmB;AACtD,SAAS,cAAc;AACvB,IAAO,mBAAQ;",
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { useIsPresent } from 'framer-motion';\nimport { speak } from '@wordpress/a11y';\nimport { useEffect, useLayoutEffect, useRef, forwardRef, renderToString } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport warning from '@wordpress/warning';\nimport Button from '../button';\nimport ExternalLink from '../external-link';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst NOTICE_TIMEOUT = 6000;\n\n/**\n * Custom hook which announces the message with the given politeness, if a\n * valid message is provided.\n *\n * @param message Message to announce.\n * @param politeness Politeness to announce.\n */\nfunction useSpokenMessage(message, politeness) {\n const spokenMessage = typeof message === 'string' ? message : renderToString(message);\n useEffect(() => {\n if (spokenMessage) {\n speak(spokenMessage, politeness);\n }\n }, [spokenMessage, politeness]);\n}\nfunction UnforwardedSnackbar({\n className,\n children,\n spokenMessage = children,\n politeness = 'polite',\n actions = [],\n onRemove,\n icon = null,\n explicitDismiss = false,\n // onDismiss is a callback executed when the snackbar is dismissed.\n // It is distinct from onRemove, which _looks_ like a callback but is\n // actually the function to call to remove the snackbar from the UI.\n onDismiss,\n listRef\n}, ref) {\n const isPresent = useIsPresent();\n function dismissMe(event) {\n if (event && event.preventDefault) {\n event.preventDefault();\n }\n\n // Prevent focus loss by moving it to the list element.\n listRef?.current?.focus();\n onDismiss?.();\n onRemove?.();\n }\n function onActionClick(event, onClick) {\n event.stopPropagation();\n onRemove?.();\n if (onClick) {\n onClick(event);\n }\n }\n useSpokenMessage(spokenMessage, politeness);\n\n // The `onDismiss/onRemove` can have unstable references,\n // trigger side-effect cleanup, and reset timers.\n const callbacksRef = useRef({\n onDismiss,\n onRemove\n });\n useLayoutEffect(() => {\n callbacksRef.current = {\n onDismiss,\n onRemove\n };\n });\n useEffect(() => {\n if (explicitDismiss || !isPresent) {\n return;\n }\n const timeoutHandle = setTimeout(() => {\n callbacksRef.current.onDismiss?.();\n callbacksRef.current.onRemove?.();\n }, NOTICE_TIMEOUT);\n return () => clearTimeout(timeoutHandle);\n }, [explicitDismiss, isPresent]);\n const classes = clsx(className, 'components-snackbar', {\n 'components-snackbar-explicit-dismiss': !!explicitDismiss\n });\n if (actions && actions.length > 1) {\n // We need to inform developers that snackbar only accepts 1 action.\n globalThis.SCRIPT_DEBUG === true ? warning('Snackbar can only have one action. Use Notice if your message requires many actions.') : void 0;\n // return first element only while keeping it inside an array\n actions = [actions[0]];\n }\n const snackbarContentClassnames = clsx('components-snackbar__content', {\n 'components-snackbar__content-with-icon': !!icon\n });\n return /*#__PURE__*/_jsx(\"div\", {\n ref: ref,\n className: classes,\n onClick: !explicitDismiss ? dismissMe : undefined,\n tabIndex: 0,\n role: !explicitDismiss ? 'button' : undefined,\n onKeyPress: !explicitDismiss ? dismissMe : undefined,\n \"aria-label\": !explicitDismiss ? __('Dismiss this notice') : undefined,\n \"data-testid\": \"snackbar\",\n children: /*#__PURE__*/_jsxs(\"div\", {\n className: snackbarContentClassnames,\n children: [icon && /*#__PURE__*/_jsx(\"div\", {\n className: \"components-snackbar__icon\",\n children: icon\n }), children, actions.map(({\n label,\n onClick,\n url,\n openInNewTab = false\n }, index) => url !== undefined && openInNewTab ? /*#__PURE__*/_jsx(ExternalLink, {\n href: url,\n onClick: event => onActionClick(event, onClick),\n className: \"components-snackbar__action\",\n children: label\n }, index) : /*#__PURE__*/_jsx(Button, {\n __next40pxDefaultSize: true,\n href: url,\n variant: \"link\",\n onClick: event => onActionClick(event, onClick),\n className: \"components-snackbar__action\",\n children: label\n }, index)), explicitDismiss && /*#__PURE__*/_jsx(\"span\", {\n role: \"button\",\n \"aria-label\": __('Dismiss this notice'),\n tabIndex: 0,\n className: \"components-snackbar__dismiss-button\",\n onClick: dismissMe,\n onKeyPress: dismissMe,\n children: \"\\u2715\"\n })]\n })\n });\n}\n\n/**\n * A Snackbar displays a succinct message that is cleared out after a small delay.\n *\n * It can also offer the user options, like viewing a published post.\n * But these options should also be available elsewhere in the UI.\n *\n * ```jsx\n * const MySnackbarNotice = () => (\n * <Snackbar>Post published successfully.</Snackbar>\n * );\n * ```\n */\nexport const Snackbar = forwardRef(UnforwardedSnackbar);\nSnackbar.displayName = 'Snackbar';\nexport default Snackbar;"],
5
+ "mappings": ";AAAA,OAAO,UAAU;AACjB,SAAS,oBAAoB;AAC7B,SAAS,aAAa;AACtB,SAAS,WAAW,iBAAiB,QAAQ,YAAY,sBAAsB;AAC/E,SAAS,UAAU;AACnB,OAAO,aAAa;AACpB,OAAO,YAAY;AACnB,OAAO,kBAAkB;AACzB,SAAS,OAAO,MAAM,QAAQ,aAAa;AAC3C,IAAM,iBAAiB;AASvB,SAAS,iBAAiB,SAAS,YAAY;AAC7C,QAAM,gBAAgB,OAAO,YAAY,WAAW,UAAU,eAAe,OAAO;AACpF,YAA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SAAS,cAAc;AACvB,IAAO,mBAAQ;",
6
6
  "names": []
7
7
  }
@@ -3,7 +3,91 @@ import clsx from "clsx";
3
3
  import { useInstanceId } from "@wordpress/compose";
4
4
  import { forwardRef } from "@wordpress/element";
5
5
  import BaseControl from "../base-control/index.mjs";
6
- import { StyledTextarea } from "./styles/textarea-control-styles.mjs";
6
+
7
+ // packages/style-runtime/src/index.ts
8
+ var STYLE_HASH_ATTRIBUTE = "data-wp-hash";
9
+ function getRuntime() {
10
+ const globalScope = globalThis;
11
+ if (globalScope.__wpStyleRuntime) {
12
+ return globalScope.__wpStyleRuntime;
13
+ }
14
+ globalScope.__wpStyleRuntime = {
15
+ documents: /* @__PURE__ */ new Map(),
16
+ styles: /* @__PURE__ */ new Map(),
17
+ injectedStyles: /* @__PURE__ */ new WeakMap()
18
+ };
19
+ if (typeof document !== "undefined") {
20
+ registerDocument(document);
21
+ }
22
+ return globalScope.__wpStyleRuntime;
23
+ }
24
+ function documentContainsStyleHash(targetDocument, hash) {
25
+ if (!targetDocument.head) {
26
+ return false;
27
+ }
28
+ for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {
29
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {
30
+ return true;
31
+ }
32
+ }
33
+ return false;
34
+ }
35
+ function injectStyle(targetDocument, hash, css) {
36
+ if (!targetDocument.head) {
37
+ return;
38
+ }
39
+ const runtime = getRuntime();
40
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
41
+ if (!injectedStyles) {
42
+ injectedStyles = /* @__PURE__ */ new Set();
43
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
44
+ }
45
+ if (injectedStyles.has(hash)) {
46
+ return;
47
+ }
48
+ if (documentContainsStyleHash(targetDocument, hash)) {
49
+ injectedStyles.add(hash);
50
+ return;
51
+ }
52
+ const style = targetDocument.createElement("style");
53
+ style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);
54
+ style.appendChild(targetDocument.createTextNode(css));
55
+ targetDocument.head.appendChild(style);
56
+ injectedStyles.add(hash);
57
+ }
58
+ function registerDocument(targetDocument) {
59
+ const runtime = getRuntime();
60
+ runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);
61
+ for (const [hash, css] of runtime.styles) {
62
+ injectStyle(targetDocument, hash, css);
63
+ }
64
+ return () => {
65
+ const count = runtime.documents.get(targetDocument);
66
+ if (count === void 0) {
67
+ return;
68
+ }
69
+ if (count <= 1) {
70
+ runtime.documents.delete(targetDocument);
71
+ return;
72
+ }
73
+ runtime.documents.set(targetDocument, count - 1);
74
+ };
75
+ }
76
+ function registerStyle(hash, css) {
77
+ const runtime = getRuntime();
78
+ runtime.styles.set(hash, css);
79
+ for (const targetDocument of runtime.documents.keys()) {
80
+ injectStyle(targetDocument, hash, css);
81
+ }
82
+ }
83
+
84
+ // packages/components/src/textarea-control/style.module.scss
85
+ if (typeof process === "undefined" || process.env.NODE_ENV !== "test") {
86
+ registerStyle("22c276380b", ".aa08a6e706634925__textarea{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:block;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;resize:vertical;width:100%}@media (min-width:600px){.aa08a6e706634925__textarea{font-size:13px;line-height:normal}}.aa08a6e706634925__textarea:hover:not(:disabled,[aria-disabled=true],[type=checkbox]){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}.aa08a6e706634925__textarea:focus{border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);box-shadow:none;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.aa08a6e706634925__textarea::placeholder{color:rgba(30,30,30,.62)}.aa08a6e706634925__textarea{line-height:20px;min-height:38px;padding:9px 11px}.aa08a6e706634925__textarea:disabled{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));color:var(--wp-components-color-gray-600,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.aa08a6e706634925__textarea::-webkit-input-placeholder{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%)}.aa08a6e706634925__textarea::-moz-placeholder{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%)}.aa08a6e706634925__textarea:-ms-input-placeholder{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%)}.is-dark-theme .aa08a6e706634925__textarea::-webkit-input-placeholder{color:color-mix(in srgb,var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff)),transparent 35%)}.is-dark-theme .aa08a6e706634925__textarea::-moz-placeholder{color:color-mix(in srgb,var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff)),transparent 35%)}.is-dark-theme .aa08a6e706634925__textarea:-ms-input-placeholder{color:color-mix(in srgb,var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff)),transparent 35%)}");
87
+ }
88
+ var style_module_default = { "textarea": "aa08a6e706634925__textarea" };
89
+
90
+ // packages/components/src/textarea-control/index.tsx
7
91
  import { jsx as _jsx } from "react/jsx-runtime";
8
92
  function UnforwardedTextareaControl(props, ref) {
9
93
  const {
@@ -28,8 +112,8 @@ function UnforwardedTextareaControl(props, ref) {
28
112
  id,
29
113
  help,
30
114
  className: classes,
31
- children: /* @__PURE__ */ _jsx(StyledTextarea, {
32
- className: "components-textarea-control__input",
115
+ children: /* @__PURE__ */ _jsx("textarea", {
116
+ className: clsx("components-textarea-control__input", style_module_default.textarea),
33
117
  id,
34
118
  rows,
35
119
  onChange: onChangeValue,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/textarea-control/index.tsx"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport { useInstanceId } from '@wordpress/compose';\nimport { forwardRef } from '@wordpress/element';\nimport BaseControl from '../base-control';\nimport { StyledTextarea } from './styles/textarea-control-styles';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction UnforwardedTextareaControl(props, ref) {\n const {\n // Prevent passing this to `textarea`.\n __nextHasNoMarginBottom: _,\n label,\n hideLabelFromVision,\n value,\n help,\n onChange,\n rows = 4,\n className,\n ...additionalProps\n } = props;\n const instanceId = useInstanceId(TextareaControl);\n const id = `inspector-textarea-control-${instanceId}`;\n const onChangeValue = event => onChange(event.target.value);\n const classes = clsx('components-textarea-control', className);\n return /*#__PURE__*/_jsx(BaseControl, {\n label: label,\n hideLabelFromVision: hideLabelFromVision,\n id: id,\n help: help,\n className: classes,\n children: /*#__PURE__*/_jsx(StyledTextarea, {\n className: \"components-textarea-control__input\",\n id: id,\n rows: rows,\n onChange: onChangeValue,\n \"aria-describedby\": !!help ? id + '__help' : undefined,\n value: value,\n ref: ref,\n ...additionalProps\n })\n });\n}\n\n/**\n * TextareaControls are TextControls that allow for multiple lines of text, and\n * wrap overflow text onto a new line. They are a fixed height and scroll\n * vertically when the cursor reaches the bottom of the field.\n *\n * ```jsx\n * import { TextareaControl } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const MyTextareaControl = () => {\n * const [ text, setText ] = useState( '' );\n *\n * return (\n * <TextareaControl\n * label=\"Text\"\n * help=\"Enter some text\"\n * value={ text }\n * onChange={ ( value ) => setText( value ) }\n * />\n * );\n * };\n * ```\n */\nexport const TextareaControl = forwardRef(UnforwardedTextareaControl);\nTextareaControl.displayName = 'TextareaControl';\nexport default TextareaControl;"],
5
- "mappings": ";AAAA,OAAO,UAAU;AACjB,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,OAAO,iBAAiB;AACxB,SAAS,sBAAsB;AAC/B,SAAS,OAAO,YAAY;AAC5B,SAAS,2BAA2B,OAAO,KAAK;AAC9C,QAAM;AAAA;AAAA,IAEJ,yBAAyB;AAAA,IACzB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,OAAO;AAAA,IACP;AAAA,IACA,GAAG;AAAA,EACL,IAAI;AACJ,QAAM,aAAa,cAAc,eAAe;AAChD,QAAM,KAAK,8BAA8B,UAAU;AACnD,QAAM,gBAAgB,WAAS,SAAS,MAAM,OAAO,KAAK;AAC1D,QAAM,UAAU,KAAK,+BAA+B,SAAS;AAC7D,SAAoB,qBAAK,aAAa;AAAA,IACpC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX,UAAuB,qBAAK,gBAAgB;AAAA,MAC1C,WAAW;AAAA,MACX;AAAA,MACA;AAAA,MACA,UAAU;AAAA,MACV,oBAAoB,CAAC,CAAC,OAAO,KAAK,WAAW;AAAA,MAC7C;AAAA,MACA;AAAA,MACA,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AAyBO,IAAM,kBAAkB,WAAW,0BAA0B;AACpE,gBAAgB,cAAc;AAC9B,IAAO,2BAAQ;",
3
+ "sources": ["../../src/textarea-control/index.tsx", "../../../style-runtime/src/index.ts", "../../src/textarea-control/style.module.scss"],
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { useInstanceId } from '@wordpress/compose';\nimport { forwardRef } from '@wordpress/element';\nimport BaseControl from '../base-control';\nimport styles from './style.module.scss';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction UnforwardedTextareaControl(props, ref) {\n const {\n // Prevent passing this to `textarea`.\n __nextHasNoMarginBottom: _,\n label,\n hideLabelFromVision,\n value,\n help,\n onChange,\n rows = 4,\n className,\n ...additionalProps\n } = props;\n const instanceId = useInstanceId(TextareaControl);\n const id = `inspector-textarea-control-${instanceId}`;\n const onChangeValue = event => onChange(event.target.value);\n const classes = clsx('components-textarea-control', className);\n return /*#__PURE__*/_jsx(BaseControl, {\n label: label,\n hideLabelFromVision: hideLabelFromVision,\n id: id,\n help: help,\n className: classes,\n children: /*#__PURE__*/_jsx(\"textarea\", {\n className: clsx('components-textarea-control__input', styles.textarea),\n id: id,\n rows: rows,\n onChange: onChangeValue,\n \"aria-describedby\": !!help ? id + '__help' : undefined,\n value: value,\n ref: ref,\n ...additionalProps\n })\n });\n}\n\n/**\n * TextareaControls are TextControls that allow for multiple lines of text, and\n * wrap overflow text onto a new line. They are a fixed height and scroll\n * vertically when the cursor reaches the bottom of the field.\n *\n * ```jsx\n * import { TextareaControl } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const MyTextareaControl = () => {\n * const [ text, setText ] = useState( '' );\n *\n * return (\n * <TextareaControl\n * label=\"Text\"\n * help=\"Enter some text\"\n * value={ text }\n * onChange={ ( value ) => setText( value ) }\n * />\n * );\n * };\n * ```\n */\nexport const TextareaControl = forwardRef(UnforwardedTextareaControl);\nTextareaControl.displayName = 'TextareaControl';\nexport default TextareaControl;", "const STYLE_HASH_ATTRIBUTE = 'data-wp-hash';\n\n/**\n * Returns the shared style runtime registry.\n *\n * The registry is stored on `globalThis` so separately bundled copies of this\n * package can coordinate through the same document and style maps.\n *\n * @return The shared runtime registry.\n */\nfunction getRuntime() {\n const globalScope = globalThis;\n if (globalScope.__wpStyleRuntime) {\n return globalScope.__wpStyleRuntime;\n }\n globalScope.__wpStyleRuntime = {\n documents: new Map(),\n styles: new Map(),\n injectedStyles: new WeakMap()\n };\n if (typeof document !== 'undefined') {\n registerDocument(document);\n }\n return globalScope.__wpStyleRuntime;\n}\n\n/**\n * Checks whether a document already contains a style tag for a hash.\n *\n * @param targetDocument Document to inspect.\n * @param hash Stable hash for the transformed CSS.\n *\n * @return Whether the style hash already exists in the document.\n */\nfunction documentContainsStyleHash(targetDocument, hash) {\n if (!targetDocument.head) {\n return false;\n }\n for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {\n if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Injects a registered style into a document, unless that document already\n * contains a style tag for the same hash.\n *\n * @param targetDocument Document to inject the style into.\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nfunction injectStyle(targetDocument, hash, css) {\n if (!targetDocument.head) {\n return;\n }\n const runtime = getRuntime();\n let injectedStyles = runtime.injectedStyles.get(targetDocument);\n if (!injectedStyles) {\n injectedStyles = new Set();\n runtime.injectedStyles.set(targetDocument, injectedStyles);\n }\n if (injectedStyles.has(hash)) {\n return;\n }\n\n // Older generated CSS module output can still inject matching style tags\n // after this document's cache is created, so keep the DOM as the fallback\n // source of truth on cache misses.\n if (documentContainsStyleHash(targetDocument, hash)) {\n injectedStyles.add(hash);\n return;\n }\n const style = targetDocument.createElement('style');\n style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);\n style.appendChild(targetDocument.createTextNode(css));\n targetDocument.head.appendChild(style);\n injectedStyles.add(hash);\n}\n\n/**\n * Registers a document as a style injection target.\n *\n * Existing registered styles are replayed into the document immediately.\n * Documents are reference-counted so multiple providers can safely register the\n * same document without one cleanup removing it while another registration is\n * still active.\n *\n * @param targetDocument Document to receive registered styles.\n * @return Cleanup function that unregisters this document registration.\n */\nexport function registerDocument(targetDocument) {\n const runtime = getRuntime();\n runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);\n for (const [hash, css] of runtime.styles) {\n injectStyle(targetDocument, hash, css);\n }\n return () => {\n const count = runtime.documents.get(targetDocument);\n if (count === undefined) {\n return;\n }\n if (count <= 1) {\n runtime.documents.delete(targetDocument);\n return;\n }\n runtime.documents.set(targetDocument, count - 1);\n };\n}\n\n/**\n * Registers a style and injects it into all registered documents.\n *\n * The hash is used as the deduplication key, so calling this repeatedly with\n * the same hash will not add duplicate style tags to a document.\n * Registered styles are retained for the lifetime of the page so they can be\n * replayed into documents that are registered later.\n *\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nexport function registerStyle(hash, css) {\n const runtime = getRuntime();\n runtime.styles.set(hash, css);\n for (const targetDocument of runtime.documents.keys()) {\n injectStyle(targetDocument, hash, css);\n }\n}", "import { registerStyle } from '@wordpress/style-runtime';\nif (typeof process === 'undefined' || process.env.NODE_ENV !== 'test') {\n\tregisterStyle(\"22c276380b\", \".aa08a6e706634925__textarea{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:block;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;resize:vertical;width:100%}@media (min-width:600px){.aa08a6e706634925__textarea{font-size:13px;line-height:normal}}.aa08a6e706634925__textarea:hover:not(:disabled,[aria-disabled=true],[type=checkbox]){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}.aa08a6e706634925__textarea:focus{border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);box-shadow:none;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.aa08a6e706634925__textarea::placeholder{color:rgba(30,30,30,.62)}.aa08a6e706634925__textarea{line-height:20px;min-height:38px;padding:9px 11px}.aa08a6e706634925__textarea:disabled{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));color:var(--wp-components-color-gray-600,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.aa08a6e706634925__textarea::-webkit-input-placeholder{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%)}.aa08a6e706634925__textarea::-moz-placeholder{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%)}.aa08a6e706634925__textarea:-ms-input-placeholder{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%)}.is-dark-theme .aa08a6e706634925__textarea::-webkit-input-placeholder{color:color-mix(in srgb,var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff)),transparent 35%)}.is-dark-theme .aa08a6e706634925__textarea::-moz-placeholder{color:color-mix(in srgb,var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff)),transparent 35%)}.is-dark-theme .aa08a6e706634925__textarea:-ms-input-placeholder{color:color-mix(in srgb,var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff)),transparent 35%)}\");\n}\nexport default {\"textarea\":\"aa08a6e706634925__textarea\"};\n"],
5
+ "mappings": ";AAAA,OAAO,UAAU;AACjB,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,OAAO,iBAAiB;;;ACHxB,IAAM,uBAAuB;AAU7B,SAAS,aAAa;AACpB,QAAM,cAAc;AACpB,MAAI,YAAY,kBAAkB;AAChC,WAAO,YAAY;AAAA,EACrB;AACA,cAAY,mBAAmB;AAAA,IAC7B,WAAW,oBAAI,IAAI;AAAA,IACnB,QAAQ,oBAAI,IAAI;AAAA,IAChB,gBAAgB,oBAAI,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E,gBAAgB,cAAc;AAC9B,IAAO,2BAAQ;",
6
6
  "names": []
7
7
  }
@@ -84,7 +84,7 @@ function registerStyle(hash, css) {
84
84
 
85
85
  // packages/components/src/toggle-group-control/toggle-group-control/style.module.scss
86
86
  if (typeof process === "undefined" || process.env.NODE_ENV !== "test") {
87
- registerStyle("ac15433bd4", '.f3fd102dd2f0e90e__toggle-group-control{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:1px solid transparent;border-radius:var(--wpds-border-radius-sm,2px);display:inline-flex;height:40px;min-width:0;position:relative}@media not (prefers-reduced-motion){.f3fd102dd2f0e90e__toggle-group-control[data-indicator-animated]:before{transition-duration:.2s;transition-property:transform,border-radius;transition-timing-function:ease-out}}.f3fd102dd2f0e90e__toggle-group-control:before{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));border:1px solid var(--wp-components-color-gray-700,var(--wpds-color-foreground-content-neutral-weak,#707070));border-radius:var(--wpds-border-radius-sm,2px);content:"";height:calc(var(--selected-height, 0)*1px + 2px);left:-2px;opacity:min(1,max(0,var(--selected-width,0),var(--selected-height,0)));outline:2px solid transparent;outline-offset:-3px;pointer-events:none;position:absolute;top:-1px;transform:translateX(calc(var(--selected-left, 0)*1px));width:calc(var(--selected-width, 0)*1px + 2px)}._1344586004ce6119__has-border{border-color:var(--wp-components-color-gray-300,var(--wpds-color-stroke-surface-neutral,#dbdbdb))}.aa98fad5b5d333be__has-enclosing-borders:hover{border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.aa98fad5b5d333be__has-enclosing-borders:focus-within{--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-color:var(--wp-components-color-accent,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));z-index:1}._4068eff8d72c19b3__is-block{display:flex;width:100%}');
87
+ registerStyle("a4244dfbf1", '.f3fd102dd2f0e90e__toggle-group-control{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:1px solid transparent;border-radius:var(--wpds-border-radius-sm,2px);display:inline-flex;height:40px;min-width:0;position:relative}@media not (prefers-reduced-motion){.f3fd102dd2f0e90e__toggle-group-control[data-indicator-animated]:before{transition-duration:.2s;transition-property:transform,border-radius;transition-timing-function:ease-out}}.f3fd102dd2f0e90e__toggle-group-control:before{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));border:1px solid var(--wp-components-color-gray-700,var(--wpds-color-foreground-content-neutral-weak,#707070));border-radius:var(--wpds-border-radius-sm,2px);content:"";height:calc(var(--selected-height, 0)*1px + 2px);left:-2px;opacity:min(1,max(0,var(--selected-width,0),var(--selected-height,0)));outline:2px solid transparent;outline-offset:-3px;pointer-events:none;position:absolute;top:-1px;transform:translateX(calc(var(--selected-left, 0)*1px));width:calc(var(--selected-width, 0)*1px + 2px)}._1344586004ce6119__has-border{border-color:var(--wp-components-color-gray-300,var(--wpds-color-stroke-surface-neutral,#dbdbdb))}.aa98fad5b5d333be__has-enclosing-borders:hover{border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.aa98fad5b5d333be__has-enclosing-borders:focus-within{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));z-index:1}._4068eff8d72c19b3__is-block{display:flex;width:100%}');
88
88
  }
89
89
  var style_module_default = { "toggle-group-control": "f3fd102dd2f0e90e__toggle-group-control", "has-border": "_1344586004ce6119__has-border", "has-enclosing-borders": "aa98fad5b5d333be__has-enclosing-borders", "is-block": "_4068eff8d72c19b3__is-block" };
90
90