@wordpress/components 32.2.1-next.v.202602191100.0 → 32.2.1

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 (337) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/build/alignment-matrix-control/cell.cjs +2 -2
  3. package/build/alignment-matrix-control/cell.cjs.map +1 -1
  4. package/build/alignment-matrix-control/index.cjs +2 -2
  5. package/build/alignment-matrix-control/index.cjs.map +1 -1
  6. package/build/angle-picker-control/angle-circle.cjs +2 -2
  7. package/build/angle-picker-control/angle-circle.cjs.map +1 -1
  8. package/build/autocomplete/index.cjs +15 -7
  9. package/build/autocomplete/index.cjs.map +2 -2
  10. package/build/date-time/time/index.cjs +1 -1
  11. package/build/date-time/time/index.cjs.map +2 -2
  12. package/build/date-time/utils.cjs +9 -0
  13. package/build/date-time/utils.cjs.map +2 -2
  14. package/build/private-apis.cjs +0 -4
  15. package/build/private-apis.cjs.map +3 -3
  16. package/build/sandbox/index.cjs +125 -1
  17. package/build/sandbox/index.cjs.map +2 -2
  18. package/build/select-control/styles/select-control-styles.cjs +8 -8
  19. package/build/select-control/styles/select-control-styles.cjs.map +2 -2
  20. package/build/snackbar/list.cjs +4 -1
  21. package/build/snackbar/list.cjs.map +2 -2
  22. package/build/toggle-group-control/toggle-group-control-option-base/styles.cjs +8 -8
  23. package/build/toggle-group-control/toggle-group-control-option-base/styles.cjs.map +2 -2
  24. package/build/validated-form-controls/control-with-error.cjs +26 -3
  25. package/build/validated-form-controls/control-with-error.cjs.map +2 -2
  26. package/build/validated-form-controls/validity-indicator.cjs +2 -0
  27. package/build/validated-form-controls/validity-indicator.cjs.map +2 -2
  28. package/build-module/alignment-matrix-control/cell.mjs +2 -2
  29. package/build-module/alignment-matrix-control/cell.mjs.map +1 -1
  30. package/build-module/alignment-matrix-control/index.mjs +2 -2
  31. package/build-module/alignment-matrix-control/index.mjs.map +1 -1
  32. package/build-module/angle-picker-control/angle-circle.mjs +2 -2
  33. package/build-module/angle-picker-control/angle-circle.mjs.map +1 -1
  34. package/build-module/autocomplete/index.mjs +13 -6
  35. package/build-module/autocomplete/index.mjs.map +2 -2
  36. package/build-module/date-time/time/index.mjs +2 -2
  37. package/build-module/date-time/time/index.mjs.map +2 -2
  38. package/build-module/date-time/utils.mjs +8 -0
  39. package/build-module/date-time/utils.mjs.map +2 -2
  40. package/build-module/private-apis.mjs +0 -4
  41. package/build-module/private-apis.mjs.map +2 -2
  42. package/build-module/sandbox/index.mjs +126 -2
  43. package/build-module/sandbox/index.mjs.map +2 -2
  44. package/build-module/select-control/styles/select-control-styles.mjs +8 -8
  45. package/build-module/select-control/styles/select-control-styles.mjs.map +2 -2
  46. package/build-module/snackbar/list.mjs +4 -1
  47. package/build-module/snackbar/list.mjs.map +2 -2
  48. package/build-module/toggle-group-control/toggle-group-control-option-base/styles.mjs +8 -8
  49. package/build-module/toggle-group-control/toggle-group-control-option-base/styles.mjs.map +2 -2
  50. package/build-module/validated-form-controls/control-with-error.mjs +27 -4
  51. package/build-module/validated-form-controls/control-with-error.mjs.map +2 -2
  52. package/build-module/validated-form-controls/validity-indicator.mjs +2 -0
  53. package/build-module/validated-form-controls/validity-indicator.mjs.map +2 -2
  54. package/build-style/style-rtl.css +7 -183
  55. package/build-style/style.css +7 -183
  56. package/build-types/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.d.ts +19 -0
  57. package/build-types/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.d.ts.map +1 -0
  58. package/build-types/alignment-matrix-control/styles/alignment-matrix-control-styles.d.ts +23 -0
  59. package/build-types/alignment-matrix-control/styles/alignment-matrix-control-styles.d.ts.map +1 -0
  60. package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts +25 -0
  61. package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts.map +1 -0
  62. package/build-types/autocomplete/get-autocomplete-match.d.ts +20 -0
  63. package/build-types/autocomplete/get-autocomplete-match.d.ts.map +1 -0
  64. package/build-types/autocomplete/index.d.ts +8 -0
  65. package/build-types/autocomplete/index.d.ts.map +1 -1
  66. package/build-types/autocomplete/test/get-autocomplete-match.d.ts +2 -0
  67. package/build-types/autocomplete/test/get-autocomplete-match.d.ts.map +1 -0
  68. package/build-types/badge/stories/e2e/index.story.d.ts +7 -0
  69. package/build-types/badge/stories/e2e/index.story.d.ts.map +1 -0
  70. package/build-types/border-control/border-control-style-picker/hook.d.ts +267 -0
  71. package/build-types/border-control/border-control-style-picker/hook.d.ts.map +1 -0
  72. package/build-types/box-control/all-input-control.d.ts +4 -0
  73. package/build-types/box-control/all-input-control.d.ts.map +1 -0
  74. package/build-types/box-control/axial-input-controls.d.ts +4 -0
  75. package/build-types/box-control/axial-input-controls.d.ts.map +1 -0
  76. package/build-types/box-control/input-controls.d.ts +4 -0
  77. package/build-types/box-control/input-controls.d.ts.map +1 -0
  78. package/build-types/box-control/styles/box-control-visualizer-styles.d.ts +46 -0
  79. package/build-types/box-control/styles/box-control-visualizer-styles.d.ts.map +1 -0
  80. package/build-types/box-control/unit-control.d.ts +4 -0
  81. package/build-types/box-control/unit-control.d.ts.map +1 -0
  82. package/build-types/custom-gradient-picker/test/index.d.ts +2 -0
  83. package/build-types/custom-gradient-picker/test/index.d.ts.map +1 -0
  84. package/build-types/custom-select-control/styles.d.ts +11 -0
  85. package/build-types/custom-select-control/styles.d.ts.map +1 -0
  86. package/build-types/date-time/date-picker/index.d.ts +23 -0
  87. package/build-types/date-time/date-picker/index.d.ts.map +1 -0
  88. package/build-types/date-time/date-picker/styles.d.ts +45 -0
  89. package/build-types/date-time/date-picker/styles.d.ts.map +1 -0
  90. package/build-types/date-time/date-picker/test/index.d.ts +2 -0
  91. package/build-types/date-time/date-picker/test/index.d.ts.map +1 -0
  92. package/build-types/date-time/date-picker/test/use-lilius.d.ts +2 -0
  93. package/build-types/date-time/date-picker/test/use-lilius.d.ts.map +1 -0
  94. package/build-types/date-time/date-picker/use-lilius/index.d.ts +169 -0
  95. package/build-types/date-time/date-picker/use-lilius/index.d.ts.map +1 -0
  96. package/build-types/date-time/time/index.d.ts.map +1 -1
  97. package/build-types/date-time/time-picker/index.d.ts +27 -0
  98. package/build-types/date-time/time-picker/index.d.ts.map +1 -0
  99. package/build-types/date-time/time-picker/styles.d.ts +93 -0
  100. package/build-types/date-time/time-picker/styles.d.ts.map +1 -0
  101. package/build-types/date-time/time-picker/test/index.d.ts +2 -0
  102. package/build-types/date-time/time-picker/test/index.d.ts.map +1 -0
  103. package/build-types/date-time/time-picker/time-input/index.d.ts +4 -0
  104. package/build-types/date-time/time-picker/time-input/index.d.ts.map +1 -0
  105. package/build-types/date-time/time-picker/time-input/test/index.d.ts +2 -0
  106. package/build-types/date-time/time-picker/time-input/test/index.d.ts.map +1 -0
  107. package/build-types/date-time/time-picker/timezone.d.ts +7 -0
  108. package/build-types/date-time/time-picker/timezone.d.ts.map +1 -0
  109. package/build-types/date-time/utils.d.ts +9 -0
  110. package/build-types/date-time/utils.d.ts.map +1 -1
  111. package/build-types/dimension-control/index.d.ts +28 -0
  112. package/build-types/dimension-control/index.d.ts.map +1 -0
  113. package/build-types/dimension-control/sizes.d.ts +26 -0
  114. package/build-types/dimension-control/sizes.d.ts.map +1 -0
  115. package/build-types/dimension-control/stories/index.story.d.ts +4 -0
  116. package/build-types/dimension-control/stories/index.story.d.ts.map +1 -0
  117. package/build-types/dimension-control/types.d.ts +47 -0
  118. package/build-types/dimension-control/types.d.ts.map +1 -0
  119. package/build-types/dropdown-menu-v2/index.d.ts +17 -0
  120. package/build-types/dropdown-menu-v2/index.d.ts.map +1 -0
  121. package/build-types/dropdown-menu-v2/stories/index.story.d.ts +11 -0
  122. package/build-types/dropdown-menu-v2/stories/index.story.d.ts.map +1 -0
  123. package/build-types/dropdown-menu-v2/styles.d.ts +42 -0
  124. package/build-types/dropdown-menu-v2/styles.d.ts.map +1 -0
  125. package/build-types/dropdown-menu-v2/test/index.d.ts +2 -0
  126. package/build-types/dropdown-menu-v2/test/index.d.ts.map +1 -0
  127. package/build-types/dropdown-menu-v2/types.d.ts +252 -0
  128. package/build-types/dropdown-menu-v2/types.d.ts.map +1 -0
  129. package/build-types/external-link/styles/external-link-styles.d.ts +10 -0
  130. package/build-types/external-link/styles/external-link-styles.d.ts.map +1 -0
  131. package/build-types/mobile/inserter-button/sparkles.d.ts +3 -0
  132. package/build-types/mobile/inserter-button/sparkles.d.ts.map +1 -0
  133. package/build-types/navigator/navigator-back-button/index.d.ts +2 -0
  134. package/build-types/navigator/navigator-back-button/index.d.ts.map +1 -0
  135. package/build-types/navigator/navigator-button/index.d.ts +2 -0
  136. package/build-types/navigator/navigator-button/index.d.ts.map +1 -0
  137. package/build-types/navigator/navigator-provider/component.d.ts +38 -0
  138. package/build-types/navigator/navigator-provider/component.d.ts.map +1 -0
  139. package/build-types/navigator/navigator-provider/index.d.ts +2 -0
  140. package/build-types/navigator/navigator-provider/index.d.ts.map +1 -0
  141. package/build-types/navigator/navigator-screen/index.d.ts +2 -0
  142. package/build-types/navigator/navigator-screen/index.d.ts.map +1 -0
  143. package/build-types/navigator/navigator-to-parent-button/index.d.ts +2 -0
  144. package/build-types/navigator/navigator-to-parent-button/index.d.ts.map +1 -0
  145. package/build-types/private-apis.d.ts.map +1 -1
  146. package/build-types/radio-group/radio/index.d.ts +7 -0
  147. package/build-types/radio-group/radio/index.d.ts.map +1 -0
  148. package/build-types/radio-group/radio-context/index.d.ts +6 -0
  149. package/build-types/radio-group/radio-context/index.d.ts.map +1 -0
  150. package/build-types/sandbox/index.d.ts +1 -1
  151. package/build-types/sandbox/index.d.ts.map +1 -1
  152. package/build-types/sandbox/types.d.ts +11 -0
  153. package/build-types/sandbox/types.d.ts.map +1 -1
  154. package/build-types/select-control/styles/select-control-styles.d.ts.map +1 -1
  155. package/build-types/slot-fill/bubbles-virtually/fill.d.ts +5 -0
  156. package/build-types/slot-fill/bubbles-virtually/fill.d.ts.map +1 -0
  157. package/build-types/slot-fill/bubbles-virtually/slot-fill-context.d.ts +12 -0
  158. package/build-types/slot-fill/bubbles-virtually/slot-fill-context.d.ts.map +1 -0
  159. package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts +4 -0
  160. package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts.map +1 -0
  161. package/build-types/slot-fill/use-slot.d.ts +9 -0
  162. package/build-types/slot-fill/use-slot.d.ts.map +1 -0
  163. package/build-types/snackbar/list.d.ts.map +1 -1
  164. package/build-types/style-provider/test/index.d.ts +2 -0
  165. package/build-types/style-provider/test/index.d.ts.map +1 -0
  166. package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts.map +1 -1
  167. package/build-types/ui/context/constants.d.ts +8 -0
  168. package/build-types/ui/context/constants.d.ts.map +1 -0
  169. package/build-types/ui/context/context-connect.d.ts +40 -0
  170. package/build-types/ui/context/context-connect.d.ts.map +1 -0
  171. package/build-types/ui/context/context-system-provider.d.ts +7 -0
  172. package/build-types/ui/context/context-system-provider.d.ts.map +1 -0
  173. package/build-types/ui/context/get-styled-class-name-from-key.d.ts +2 -0
  174. package/build-types/ui/context/get-styled-class-name-from-key.d.ts.map +1 -0
  175. package/build-types/ui/context/index.d.ts +5 -0
  176. package/build-types/ui/context/index.d.ts.map +1 -0
  177. package/build-types/ui/context/test/context-connect.d.ts +2 -0
  178. package/build-types/ui/context/test/context-connect.d.ts.map +1 -0
  179. package/build-types/ui/context/test/wordpress-component.d.ts +2 -0
  180. package/build-types/ui/context/test/wordpress-component.d.ts.map +1 -0
  181. package/build-types/ui/context/use-context-system.d.ts +20 -0
  182. package/build-types/ui/context/use-context-system.d.ts.map +1 -0
  183. package/build-types/ui/context/utils.d.ts +26 -0
  184. package/build-types/ui/context/utils.d.ts.map +1 -0
  185. package/build-types/ui/context/wordpress-component.d.ts +32 -0
  186. package/build-types/ui/context/wordpress-component.d.ts.map +1 -0
  187. package/build-types/ui/shortcut/component.d.ts +12 -0
  188. package/build-types/ui/shortcut/component.d.ts.map +1 -0
  189. package/build-types/ui/shortcut/index.d.ts +3 -0
  190. package/build-types/ui/shortcut/index.d.ts.map +1 -0
  191. package/build-types/ui/tooltip/component.d.ts +29 -0
  192. package/build-types/ui/tooltip/component.d.ts.map +1 -0
  193. package/build-types/ui/tooltip/content.d.ts +9 -0
  194. package/build-types/ui/tooltip/content.d.ts.map +1 -0
  195. package/build-types/ui/tooltip/context.d.ts +10 -0
  196. package/build-types/ui/tooltip/context.d.ts.map +1 -0
  197. package/build-types/ui/tooltip/index.d.ts +3 -0
  198. package/build-types/ui/tooltip/index.d.ts.map +1 -0
  199. package/build-types/ui/tooltip/styles.d.ts +12 -0
  200. package/build-types/ui/tooltip/styles.d.ts.map +1 -0
  201. package/build-types/ui/tooltip/types.d.ts +62 -0
  202. package/build-types/ui/tooltip/types.d.ts.map +1 -0
  203. package/build-types/ui/utils/colors.d.ts +17 -0
  204. package/build-types/ui/utils/colors.d.ts.map +1 -0
  205. package/build-types/ui/utils/font-size.d.ts +18 -0
  206. package/build-types/ui/utils/font-size.d.ts.map +1 -0
  207. package/build-types/ui/utils/get-valid-children.d.ts +13 -0
  208. package/build-types/ui/utils/get-valid-children.d.ts.map +1 -0
  209. package/build-types/ui/utils/index.d.ts +2 -0
  210. package/build-types/ui/utils/index.d.ts.map +1 -0
  211. package/build-types/ui/utils/space.d.ts +23 -0
  212. package/build-types/ui/utils/space.d.ts.map +1 -0
  213. package/build-types/ui/utils/types.d.ts +14 -0
  214. package/build-types/ui/utils/types.d.ts.map +1 -0
  215. package/build-types/ui/utils/use-responsive-value.d.ts +5 -0
  216. package/build-types/ui/utils/use-responsive-value.d.ts.map +1 -0
  217. package/build-types/utils/hooks/use-latest-ref.d.ts +15 -0
  218. package/build-types/utils/hooks/use-latest-ref.d.ts.map +1 -0
  219. package/build-types/utils/input/base.d.ts +3 -0
  220. package/build-types/utils/input/base.d.ts.map +1 -0
  221. package/build-types/utils/input/index.d.ts +2 -0
  222. package/build-types/utils/input/index.d.ts.map +1 -0
  223. package/build-types/utils/input/input-control.d.ts +2 -0
  224. package/build-types/utils/input/input-control.d.ts.map +1 -0
  225. package/build-types/utils/reduce-motion.d.ts +8 -0
  226. package/build-types/utils/reduce-motion.d.ts.map +1 -0
  227. package/build-types/utils/z-index.d.ts +3 -0
  228. package/build-types/utils/z-index.d.ts.map +1 -0
  229. package/build-types/validated-form-controls/control-with-error.d.ts.map +1 -1
  230. package/build-types/validated-form-controls/test/checkbox-control.d.ts +2 -0
  231. package/build-types/validated-form-controls/test/checkbox-control.d.ts.map +1 -0
  232. package/build-types/validated-form-controls/test/combobox-control.d.ts +2 -0
  233. package/build-types/validated-form-controls/test/combobox-control.d.ts.map +1 -0
  234. package/build-types/validated-form-controls/test/custom-select-control.d.ts +2 -0
  235. package/build-types/validated-form-controls/test/custom-select-control.d.ts.map +1 -0
  236. package/build-types/validated-form-controls/test/form-token-field.d.ts +2 -0
  237. package/build-types/validated-form-controls/test/form-token-field.d.ts.map +1 -0
  238. package/build-types/validated-form-controls/test/input-control.d.ts +2 -0
  239. package/build-types/validated-form-controls/test/input-control.d.ts.map +1 -0
  240. package/build-types/validated-form-controls/test/number-control.d.ts +2 -0
  241. package/build-types/validated-form-controls/test/number-control.d.ts.map +1 -0
  242. package/build-types/validated-form-controls/test/radio-control.d.ts +2 -0
  243. package/build-types/validated-form-controls/test/radio-control.d.ts.map +1 -0
  244. package/build-types/validated-form-controls/test/range-control.d.ts +2 -0
  245. package/build-types/validated-form-controls/test/range-control.d.ts.map +1 -0
  246. package/build-types/validated-form-controls/test/select-control.d.ts +2 -0
  247. package/build-types/validated-form-controls/test/select-control.d.ts.map +1 -0
  248. package/build-types/validated-form-controls/test/text-control.d.ts +2 -0
  249. package/build-types/validated-form-controls/test/text-control.d.ts.map +1 -0
  250. package/build-types/validated-form-controls/test/textarea-control.d.ts +2 -0
  251. package/build-types/validated-form-controls/test/textarea-control.d.ts.map +1 -0
  252. package/build-types/validated-form-controls/test/toggle-control.d.ts +2 -0
  253. package/build-types/validated-form-controls/test/toggle-control.d.ts.map +1 -0
  254. package/build-types/validated-form-controls/test/toggle-group-control.d.ts +2 -0
  255. package/build-types/validated-form-controls/test/toggle-group-control.d.ts.map +1 -0
  256. package/build-types/validated-form-controls/validity-indicator.d.ts +2 -1
  257. package/build-types/validated-form-controls/validity-indicator.d.ts.map +1 -1
  258. package/build-types/view/types.d.ts +8 -0
  259. package/build-types/view/types.d.ts.map +1 -0
  260. package/package.json +21 -21
  261. package/src/autocomplete/index.tsx +30 -6
  262. package/src/autocomplete/test/index.tsx +110 -1
  263. package/src/button/style.scss +8 -5
  264. package/src/date-time/test/utils.test.ts +8 -11
  265. package/src/date-time/time/index.tsx +2 -12
  266. package/src/date-time/time/test/index.tsx +69 -0
  267. package/src/date-time/utils.ts +18 -0
  268. package/src/form-token-field/style.scss +1 -0
  269. package/src/private-apis.ts +0 -4
  270. package/src/sandbox/index.tsx +189 -9
  271. package/src/sandbox/test/index.tsx +65 -24
  272. package/src/sandbox/types.ts +11 -0
  273. package/src/select-control/styles/select-control-styles.ts +1 -0
  274. package/src/snackbar/list.tsx +6 -1
  275. package/src/style.scss +0 -2
  276. package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +18 -16
  277. package/src/toggle-group-control/toggle-group-control-option-base/styles.ts +4 -6
  278. package/src/validated-form-controls/control-with-error.tsx +44 -4
  279. package/src/validated-form-controls/test/checkbox-control.tsx +49 -0
  280. package/src/validated-form-controls/test/combobox-control.tsx +61 -0
  281. package/src/validated-form-controls/test/control-with-error.tsx +182 -1
  282. package/src/validated-form-controls/test/custom-select-control.tsx +60 -0
  283. package/src/validated-form-controls/test/form-token-field.tsx +52 -0
  284. package/src/validated-form-controls/test/input-control.tsx +42 -0
  285. package/src/validated-form-controls/test/number-control.tsx +44 -0
  286. package/src/validated-form-controls/test/radio-control.tsx +61 -0
  287. package/src/validated-form-controls/test/range-control.tsx +73 -0
  288. package/src/validated-form-controls/test/select-control.tsx +57 -0
  289. package/src/validated-form-controls/test/text-control.tsx +49 -0
  290. package/src/validated-form-controls/test/textarea-control.tsx +51 -0
  291. package/src/validated-form-controls/test/toggle-control.tsx +49 -0
  292. package/src/validated-form-controls/test/toggle-group-control.tsx +28 -0
  293. package/src/validated-form-controls/validity-indicator.tsx +3 -0
  294. package/build/avatar/component.cjs +0 -99
  295. package/build/avatar/component.cjs.map +0 -7
  296. package/build/avatar/index.cjs +0 -37
  297. package/build/avatar/index.cjs.map +0 -7
  298. package/build/avatar/types.cjs +0 -19
  299. package/build/avatar/types.cjs.map +0 -7
  300. package/build/avatar-group/component.cjs +0 -60
  301. package/build/avatar-group/component.cjs.map +0 -7
  302. package/build/avatar-group/index.cjs +0 -37
  303. package/build/avatar-group/index.cjs.map +0 -7
  304. package/build/avatar-group/types.cjs +0 -19
  305. package/build/avatar-group/types.cjs.map +0 -7
  306. package/build-module/avatar/component.mjs +0 -68
  307. package/build-module/avatar/component.mjs.map +0 -7
  308. package/build-module/avatar/index.mjs +0 -6
  309. package/build-module/avatar/index.mjs.map +0 -7
  310. package/build-module/avatar/types.mjs +0 -1
  311. package/build-module/avatar/types.mjs.map +0 -7
  312. package/build-module/avatar-group/component.mjs +0 -29
  313. package/build-module/avatar-group/component.mjs.map +0 -7
  314. package/build-module/avatar-group/index.mjs +0 -6
  315. package/build-module/avatar-group/index.mjs.map +0 -7
  316. package/build-module/avatar-group/types.mjs +0 -1
  317. package/build-module/avatar-group/types.mjs.map +0 -7
  318. package/build-types/avatar/component.d.ts +0 -5
  319. package/build-types/avatar/component.d.ts.map +0 -1
  320. package/build-types/avatar/index.d.ts +0 -3
  321. package/build-types/avatar/index.d.ts.map +0 -1
  322. package/build-types/avatar/types.d.ts +0 -59
  323. package/build-types/avatar/types.d.ts.map +0 -1
  324. package/build-types/avatar-group/component.d.ts +0 -8
  325. package/build-types/avatar-group/component.d.ts.map +0 -1
  326. package/build-types/avatar-group/index.d.ts +0 -3
  327. package/build-types/avatar-group/index.d.ts.map +0 -1
  328. package/build-types/avatar-group/types.d.ts +0 -14
  329. package/build-types/avatar-group/types.d.ts.map +0 -1
  330. package/src/avatar/component.tsx +0 -82
  331. package/src/avatar/index.ts +0 -2
  332. package/src/avatar/styles.scss +0 -152
  333. package/src/avatar/types.ts +0 -59
  334. package/src/avatar-group/component.tsx +0 -46
  335. package/src/avatar-group/index.ts +0 -2
  336. package/src/avatar-group/styles.scss +0 -32
  337. package/src/avatar-group/types.ts +0 -13
@@ -0,0 +1,40 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import type { ForwardedRef, ReactChild, ReactNode } from 'react';
5
+ import type { WordPressComponentFromProps } from '.';
6
+ type AcceptsTwoArgs<F extends (...args: any) => any, ErrorMessage = never> = Parameters<F>['length'] extends 2 ? {} : ErrorMessage;
7
+ /**
8
+ * Forwards ref (React.ForwardRef) and "Connects" (or registers) a component
9
+ * within the Context system under a specified namespace.
10
+ *
11
+ * @param Component The component to register into the Context system.
12
+ * @param namespace The namespace to register the component under.
13
+ * @return The connected WordPressComponent
14
+ */
15
+ export declare function contextConnect<C extends (props: any, ref: ForwardedRef<any>) => JSX.Element | null>(Component: C & AcceptsTwoArgs<C, 'Warning: Your component function does not take a ref as the second argument. Did you mean to use `contextConnectWithoutRef`?'>, namespace: string): WordPressComponentFromProps<Parameters<C & AcceptsTwoArgs<C, "Warning: Your component function does not take a ref as the second argument. Did you mean to use `contextConnectWithoutRef`?">>[0], true>;
16
+ /**
17
+ * "Connects" (or registers) a component within the Context system under a specified namespace.
18
+ * Does not forward a ref.
19
+ *
20
+ * @param Component The component to register into the Context system.
21
+ * @param namespace The namespace to register the component under.
22
+ * @return The connected WordPressComponent
23
+ */
24
+ export declare function contextConnectWithoutRef<P>(Component: (props: P) => JSX.Element | null, namespace: string): WordPressComponentFromProps<P, false>;
25
+ /**
26
+ * Attempts to retrieve the connected namespace from a component.
27
+ *
28
+ * @param Component The component to retrieve a namespace from.
29
+ * @return The connected namespaces.
30
+ */
31
+ export declare function getConnectNamespace(Component: ReactChild | undefined | {}): string[];
32
+ /**
33
+ * Checks to see if a component is connected within the Context system.
34
+ *
35
+ * @param Component The component to retrieve a namespace from.
36
+ * @param match The namespace to check.
37
+ */
38
+ export declare function hasConnectNamespace(Component: ReactNode, match: string[] | string): boolean;
39
+ export {};
40
+ //# sourceMappingURL=context-connect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-connect.d.ts","sourceRoot":"","sources":["../../../src/ui/context/context-connect.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAajE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,GAAG,CAAC;AAErD,KAAK,cAAc,CAClB,CAAC,SAAS,CAAE,GAAG,IAAI,EAAE,GAAG,KAAM,GAAG,EACjC,YAAY,GAAG,KAAK,IACjB,UAAU,CAAE,CAAC,CAAE,CAAE,QAAQ,CAAE,SAAS,CAAC,GAAG,EAAE,GAAG,YAAY,CAAC;AAM9D;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC7B,CAAC,SAAS,CAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,YAAY,CAAE,GAAG,CAAE,KAAM,GAAG,CAAC,OAAO,GAAG,IAAI,EAExE,SAAS,EAAE,CAAC,GACX,cAAc,CACb,CAAC,EACD,8HAA8H,CAC9H,EACF,SAAS,EAAE,MAAM,2MAGjB;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAE,CAAC,EAC1C,SAAS,EAAE,CAAE,KAAK,EAAE,CAAC,KAAM,GAAG,CAAC,OAAO,GAAG,IAAI,EAC7C,SAAS,EAAE,MAAM,yCAGjB;AAgDD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAClC,SAAS,EAAE,UAAU,GAAG,SAAS,GAAG,EAAE,GACpC,MAAM,EAAE,CAkBV;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAClC,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,GACtB,OAAO,CAaT"}
@@ -0,0 +1,7 @@
1
+ export const ComponentsContext: import("react").Context<Record<string, any>>;
2
+ export function useComponentsContext(): Record<string, any>;
3
+ export const ContextSystemProvider: import("react").MemoExoticComponent<(<T extends Record<string, any>>({ children, value }: {
4
+ children: import('react').ReactNode;
5
+ value: T;
6
+ }) => JSX.Element)>;
7
+ //# sourceMappingURL=context-system-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-system-provider.d.ts","sourceRoot":"","sources":["../../../src/ui/context/context-system-provider.js"],"names":[],"mappings":"AAwBA,6EAEE;AACK,4DAAkE;AA4EzE;cAdW,OAAO,OAAO,EAAE,SAAS;;MAExB,WAAW,GAYgD"}
@@ -0,0 +1,2 @@
1
+ export declare const getStyledClassNameFromKey: ((namespace: string) => string) & import("memize").MemizeMemoizedFunction;
2
+ //# sourceMappingURL=get-styled-class-name-from-key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-styled-class-name-from-key.d.ts","sourceRoot":"","sources":["../../../src/ui/context/get-styled-class-name-from-key.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,yBAAyB,2EAAgC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { ContextSystemProvider, useComponentsContext, } from './context-system-provider';
2
+ export { contextConnect, contextConnectWithoutRef, hasConnectNamespace, getConnectNamespace, } from './context-connect';
3
+ export { useContextSystem } from './use-context-system';
4
+ export * from './wordpress-component';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EACrB,oBAAoB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACN,cAAc,EACd,wBAAwB,EACxB,mBAAmB,EACnB,mBAAmB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=context-connect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-connect.d.ts","sourceRoot":"","sources":["../../../../src/ui/context/test/context-connect.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=wordpress-component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wordpress-component.d.ts","sourceRoot":"","sources":["../../../../src/ui/context/test/wordpress-component.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @template TProps
3
+ * @typedef {TProps & { className: string }} ConnectedProps
4
+ */
5
+ /**
6
+ * Custom hook that derives registered props from the Context system.
7
+ * These derived props are then consolidated with incoming component props.
8
+ *
9
+ * @template {{ className?: string }} P
10
+ * @param {P} props Incoming props from the component.
11
+ * @param {string} namespace The namespace to register and to derive context props from.
12
+ * @return {ConnectedProps<P>} The connected props.
13
+ */
14
+ export function useContextSystem<P extends {
15
+ className?: string | undefined;
16
+ }>(props: P, namespace: string): ConnectedProps<P>;
17
+ export type ConnectedProps<TProps> = TProps & {
18
+ className: string;
19
+ };
20
+ //# sourceMappingURL=use-context-system.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-context-system.d.ts","sourceRoot":"","sources":["../../../src/ui/context/use-context-system.js"],"names":[],"mappings":"AAaA;;;GAGG;AAEH;;;;;;;;GAQG;AACH;;wBAHW,MAAM,qBA2DhB;qCApEY,MAAM,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Creates a dedicated context namespace HTML attribute for components.
3
+ * ns is short for "namespace"
4
+ *
5
+ * @example
6
+ * ```jsx
7
+ * <div {...ns('Container')} />
8
+ * ```
9
+ *
10
+ * @param {string} componentName The name for the component.
11
+ * @return {Record<string, any>} A props object with the namespaced HTML attribute.
12
+ */
13
+ export function getNamespace(componentName: string): Record<string, any>;
14
+ /**
15
+ * Creates a dedicated connected context namespace HTML attribute for components.
16
+ * ns is short for "namespace"
17
+ *
18
+ * @example
19
+ * ```jsx
20
+ * <div {...cns()} />
21
+ * ```
22
+ *
23
+ * @return {Record<string, any>} A props object with the namespaced HTML attribute.
24
+ */
25
+ export function getConnectedNamespace(): Record<string, any>;
26
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/ui/context/utils.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;GAWG;AACH,4CAHW,MAAM,GACL,OAAO,MAAM,EAAE,GAAG,CAAC,CAI9B;AAED;;;;;;;;;;GAUG;AACH,yCAFY,OAAO,MAAM,EAAE,GAAG,CAAC,CAI9B"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import type * as React from 'react';
5
+ export type WordPressComponentProps<
6
+ /** Prop types. */
7
+ P,
8
+ /** The HTML element to inherit props from. */
9
+ T extends React.ElementType,
10
+ /** Supports polymorphism through the `as` prop. */
11
+ IsPolymorphic extends boolean = true> = P & Omit<React.ComponentPropsWithoutRef<T>, 'as' | keyof P | 'children'> & (IsPolymorphic extends true ? {
12
+ /** The HTML element or React component to render the component as. */
13
+ as?: T | keyof JSX.IntrinsicElements;
14
+ } : {});
15
+ export type WordPressComponent<T extends React.ElementType, O, IsPolymorphic extends boolean> = {
16
+ <TT extends React.ElementType>(props: WordPressComponentProps<O, TT, IsPolymorphic> & (IsPolymorphic extends true ? {
17
+ as: TT;
18
+ } : {})): JSX.Element | null;
19
+ (props: WordPressComponentProps<O, T, IsPolymorphic>): JSX.Element | null;
20
+ displayName?: string;
21
+ /**
22
+ * A CSS selector used to fake component interpolation in styled components
23
+ * for components not generated by `styled`. Anything passed to `contextConnect`
24
+ * will get this property.
25
+ *
26
+ * We restrict it to a class to align with the already existing class names that
27
+ * are generated by the context system.
28
+ */
29
+ selector?: `.${string}`;
30
+ };
31
+ export type WordPressComponentFromProps<Props, ForwardsRef extends boolean = true> = Props extends WordPressComponentProps<infer P, infer T, infer I> ? WordPressComponent<T, P & (ForwardsRef extends true ? React.RefAttributes<any> : {}), I> : never;
32
+ //# sourceMappingURL=wordpress-component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wordpress-component.d.ts","sourceRoot":"","sources":["../../../src/ui/context/wordpress-component.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,MAAM,MAAM,uBAAuB;AAClC,kBAAkB;AAClB,CAAC;AACD,8CAA8C;AAC9C,CAAC,SAAS,KAAK,CAAC,WAAW;AAC3B,mDAAmD;AACnD,aAAa,SAAS,OAAO,GAAG,IAAI,IACjC,CAAC,GAIJ,IAAI,CAAE,KAAK,CAAC,wBAAwB,CAAE,CAAC,CAAE,EAAE,IAAI,GAAG,MAAM,CAAC,GAAG,UAAU,CAAE,GACxE,CAAE,aAAa,SAAS,IAAI,GACzB;IACA,sEAAsE;IACtE,EAAE,CAAC,EAAE,CAAC,GAAG,MAAM,GAAG,CAAC,iBAAiB,CAAC;CACpC,GACD,EAAE,CAAE,CAAC;AAET,MAAM,MAAM,kBAAkB,CAC7B,CAAC,SAAS,KAAK,CAAC,WAAW,EAC3B,CAAC,EACD,aAAa,SAAS,OAAO,IAC1B;IACH,CAAE,EAAE,SAAS,KAAK,CAAC,WAAW,EAC7B,KAAK,EAAE,uBAAuB,CAAE,CAAC,EAAE,EAAE,EAAE,aAAa,CAAE,GACrD,CAAE,aAAa,SAAS,IAAI,GAAG;QAAE,EAAE,EAAE,EAAE,CAAA;KAAE,GAAG,EAAE,CAAE,GAC/C,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;IACtB,CACC,KAAK,EAAE,uBAAuB,CAAE,CAAC,EAAE,CAAC,EAAE,aAAa,CAAE,GACnD,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,IAAK,MAAO,EAAE,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,2BAA2B,CACtC,KAAK,EACL,WAAW,SAAS,OAAO,GAAG,IAAI,IAC/B,KAAK,SAAS,uBAAuB,CAAE,MAAM,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,CAAE,GACnE,kBAAkB,CAClB,CAAC,EACD,CAAC,GAAG,CAAE,WAAW,SAAS,IAAI,GAAG,KAAK,CAAC,aAAa,CAAE,GAAG,CAAE,GAAG,EAAE,CAAE,EAClE,CAAC,CACA,GACD,KAAK,CAAC"}
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export interface ShortcutDescription {
3
+ display: string;
4
+ ariaLabel: string;
5
+ }
6
+ export interface Props {
7
+ shortcut?: ShortcutDescription | string;
8
+ className?: string;
9
+ }
10
+ declare const ConnectedShortcut: import("../context").WordPressComponent<"span", Props & import("react").RefAttributes<any>, true>;
11
+ export default ConnectedShortcut;
12
+ //# sourceMappingURL=component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/ui/shortcut/component.tsx"],"names":[],"mappings":";AAYA,MAAM,WAAW,mBAAmB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,KAAK;IACrB,QAAQ,CAAC,EAAE,mBAAmB,GAAG,MAAM,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAuCD,QAAA,MAAM,iBAAiB,mGAAyC,CAAC;AAEjE,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as Shortcut } from './component';
2
+ export type { Props as ShortcutProps, ShortcutDescription } from './component';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/shortcut/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,KAAK,IAAI,aAAa,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,29 @@
1
+ export default ConnectedTooltip;
2
+ /**
3
+ * `Tooltip` is a component that provides context for a user interface element.
4
+ *
5
+ * @example
6
+ * ```jsx
7
+ * import { Tooltip, Text } from `@wordpress/components/ui`;
8
+ *
9
+ * function Example() {
10
+ * return (
11
+ * <Tooltip content="Code is Poetry">
12
+ * <Text>WordPress.org</Text>
13
+ * </Tooltip>
14
+ * )
15
+ * }
16
+ * ```
17
+ */
18
+ declare const ConnectedTooltip: import("../context").WordPressComponent<"div", Omit<import("reakit").PopoverInitialState, "modal"> & Pick<Partial<import("reakit").TooltipState>, "unstable_timeout"> & import("../utils/types").PopperProps & Pick<import("../shortcut").ShortcutProps, "shortcut"> & {
19
+ animated?: boolean | undefined;
20
+ animationDuration?: boolean | undefined;
21
+ baseId?: string | undefined;
22
+ content?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
23
+ gutter?: number | undefined;
24
+ modal?: boolean | undefined;
25
+ visible?: boolean | undefined;
26
+ children: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
27
+ focusable?: boolean | undefined;
28
+ } & import("react").RefAttributes<any>, true>;
29
+ //# sourceMappingURL=component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/ui/tooltip/component.js"],"names":[],"mappings":";AAmFA;;;;;;;;;;;;;;;GAeG;AACH;;;;;;;;;;8CAA8D"}
@@ -0,0 +1,9 @@
1
+ declare const _default: import("../context").WordPressComponent<"div", import("reakit").RoleOptions & Pick<Partial<import("reakit").DisclosureStateReturn>, "visible" | "animated" | "animating" | "baseId" | "stopAnimation"> & Pick<Partial<import("reakit").TooltipStateReturn>, "unstable_popoverRef" | "unstable_popoverStyles"> & {
2
+ unstable_portal?: boolean | undefined;
3
+ } & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & {
4
+ wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined;
5
+ } & {
6
+ children: import("react").ReactNode;
7
+ }, true>;
8
+ export default _default;
9
+ //# sourceMappingURL=content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/ui/tooltip/content.js"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @type {import('react').Context<{ tooltip?: import('reakit').TooltipState }>}
3
+ */
4
+ export const TooltipContext: import('react').Context<{
5
+ tooltip?: import('reakit').TooltipState;
6
+ }>;
7
+ export function useTooltipContext(): {
8
+ tooltip?: import("reakit").TooltipState | undefined;
9
+ };
10
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/ui/tooltip/context.js"],"names":[],"mappings":"AAKA;;GAEG;AACH,6BAFU,OAAO,OAAO,EAAE,OAAO,CAAC;IAAE,OAAO,CAAC,EAAE,OAAO,QAAQ,EAAE,YAAY,CAAA;CAAE,CAAC,CAE5B;AAC3C;;EAA4D"}
@@ -0,0 +1,3 @@
1
+ export { default as Tooltip } from "./component";
2
+ export * from "./context";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/tooltip/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ export const TooltipContent: import("@emotion/utils").SerializedStyles;
2
+ export const TooltipPopoverView: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export const noOutline: import("@emotion/utils").SerializedStyles;
7
+ export const TooltipShortcut: import("@emotion/styled").StyledComponent<import("../shortcut").ShortcutProps & import("react").RefAttributes<any> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>>, "children" | "as" | keyof import("react").RefAttributes<any> | keyof import("../shortcut").ShortcutProps> & {
8
+ as?: keyof JSX.IntrinsicElements | undefined;
9
+ } & {
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ }, {}, {}>;
12
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/ui/tooltip/styles.js"],"names":[],"mappings":"AAeA,uEAYE;AAEF;;;0GAME;AAEF,kEAEE;AAEF;;;;WAGE"}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import type { TooltipInitialState, TooltipProps } from 'reakit';
5
+ import type { ReactElement, ReactNode } from 'react';
6
+ /**
7
+ * Internal dependencies
8
+ */
9
+ import type { PopperProps } from '../utils/types';
10
+ import type { ShortcutProps } from '../shortcut';
11
+ export type Props = TooltipInitialState & PopperProps & Pick<ShortcutProps, 'shortcut'> & {
12
+ /**
13
+ * Determines if `Tooltip` has animations.
14
+ */
15
+ animated?: boolean;
16
+ /**
17
+ * The duration of `Tooltip` animations.
18
+ *
19
+ * @default 160
20
+ */
21
+ animationDuration?: boolean;
22
+ /**
23
+ * ID that will serve as a base for all the items IDs.
24
+ *
25
+ * @see https://reakit.io/docs/tooltip/#usetooltipstate
26
+ */
27
+ baseId?: string;
28
+ /**
29
+ * Content to render within the `Tooltip` floating label.
30
+ */
31
+ content?: ReactElement;
32
+ /**
33
+ * Spacing between the `Tooltip` reference and the floating label.
34
+ *
35
+ * @default 4
36
+ *
37
+ * @see https://reakit.io/docs/tooltip/#usetooltipstate
38
+ */
39
+ gutter?: number;
40
+ /**
41
+ * Whether or not the dialog should be rendered within `Portal`. It's true by default if modal is true.
42
+ *
43
+ * @default true
44
+ *
45
+ * @see https://reakit.io/docs/tooltip/#tooltip
46
+ */
47
+ modal?: boolean;
48
+ /**
49
+ * Whether `Tooltip` is visible.
50
+ *
51
+ * @default false
52
+ *
53
+ * @see https://reakit.io/docs/tooltip/#usetooltipstate
54
+ */
55
+ visible?: boolean;
56
+ children: ReactElement;
57
+ focusable?: boolean;
58
+ };
59
+ export type ContentProps = TooltipProps & {
60
+ children: ReactNode;
61
+ };
62
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/ui/tooltip/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD;;GAEG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,MAAM,MAAM,KAAK,GAAG,mBAAmB,GACtC,WAAW,GACX,IAAI,CAAE,aAAa,EAAE,UAAU,CAAE,GAAG;IACnC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,YAAY,GAAG;IACzC,QAAQ,EAAE,SAAS,CAAC;CACpB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Get the text shade optimized for readability, based on a background color.
3
+ *
4
+ * @param {string | unknown} backgroundColor The background color.
5
+ *
6
+ * @return {string} The optimized text color (black or white).
7
+ */
8
+ export function getOptimalTextColor(backgroundColor: string | unknown): string;
9
+ /**
10
+ * Get the text shade optimized for readability, based on a background color.
11
+ *
12
+ * @param {string | unknown} backgroundColor The background color.
13
+ *
14
+ * @return {string} The optimized text shade (dark or light).
15
+ */
16
+ export function getOptimalTextShade(backgroundColor: string | unknown): string;
17
+ //# sourceMappingURL=colors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../src/ui/utils/colors.js"],"names":[],"mappings":"AAyEA;;;;;;GAMG;AACH,qDAJW,MAAM,GAAG,OAAO,GAEf,MAAM,CAMjB;AAED;;;;;;GAMG;AACH,qDAJW,MAAM,GAAG,OAAO,GAEf,MAAM,CAMjB"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import type { CSSProperties, ReactText } from 'react';
5
+ export type HeadingSize = 1 | 2 | 3 | 4 | 5 | 6 | '1' | '2' | '3' | '4' | '5' | '6';
6
+ export declare const BASE_FONT_SIZE = 13;
7
+ export declare const PRESET_FONT_SIZES: {
8
+ body: number;
9
+ caption: number;
10
+ footnote: number;
11
+ largeTitle: number;
12
+ subheadline: number;
13
+ title: number;
14
+ };
15
+ export declare const HEADING_FONT_SIZES: HeadingSize[];
16
+ export declare function getFontSize(size?: CSSProperties['fontSize'] | keyof typeof PRESET_FONT_SIZES): string;
17
+ export declare function getHeadingFontSize(size?: ReactText): string;
18
+ //# sourceMappingURL=font-size.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"font-size.d.ts","sourceRoot":"","sources":["../../../src/ui/utils/font-size.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOtD,MAAM,MAAM,WAAW,GACpB,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,CAAC;AAEP,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC,eAAO,MAAM,iBAAiB;;;;;;;CAO7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,eAG5B,CAAC;AAEJ,wBAAgB,WAAW,CAC1B,IAAI,GACD,aAAa,CAAE,UAAU,CAAE,GAC3B,MAAM,OAAO,iBAAkC,GAChD,MAAM,CAeR;AAED,wBAAgB,kBAAkB,CAAE,IAAI,GAAE,SAAa,GAAI,MAAM,CAOhE"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import type { ReactNode, ReactChild, ReactFragment, ReactPortal } from 'react';
5
+ /**
6
+ * Gets a collection of available children elements from a React component's children prop.
7
+ *
8
+ * @param children
9
+ *
10
+ * @return An array of available children.
11
+ */
12
+ export declare function getValidChildren(children: ReactNode): Array<ReactChild | ReactFragment | ReactPortal>;
13
+ //# sourceMappingURL=get-valid-children.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-valid-children.d.ts","sourceRoot":"","sources":["../../../src/ui/utils/get-valid-children.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAO/E;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC/B,QAAQ,EAAE,SAAS,GACjB,KAAK,CAAE,UAAU,GAAG,aAAa,GAAG,WAAW,CAAE,CAMnD"}
@@ -0,0 +1,2 @@
1
+ export { getOptimalTextShade } from "./colors";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/utils/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * The argument value for the `space()` utility function.
3
+ *
4
+ * When this is a number or a numeric string, it will be interpreted as a
5
+ * multiplier for the grid base value (4px). For example, `space( 2 )` will be 8px.
6
+ *
7
+ * Otherwise, it will be interpreted as a literal CSS length value. For example,
8
+ * `space( 'auto' )` will be 'auto', and `space( '2px' )` will be 2px.
9
+ */
10
+ export type SpaceInput = number | string;
11
+ /**
12
+ * A function that handles numbers, numeric strings, and unit values.
13
+ *
14
+ * When given a number or a numeric string, it will return the grid-based
15
+ * value as a factor of GRID_BASE, defined above.
16
+ *
17
+ * When given a unit value or one of the named CSS values like `auto`,
18
+ * it will simply return the value back.
19
+ *
20
+ * @param value A number, numeric string, or a unit value.
21
+ */
22
+ export declare function space(value?: SpaceInput): string | undefined;
23
+ //# sourceMappingURL=space.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"space.d.ts","sourceRoot":"","sources":["../../../src/ui/utils/space.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAIzC;;;;;;;;;;GAUG;AACH,wBAAgB,KAAK,CAAE,KAAK,CAAC,EAAE,UAAU,GAAI,MAAM,GAAG,SAAS,CAsB9D"}
@@ -0,0 +1,14 @@
1
+ export type ResponsiveCSSValue<T> = Array<T | undefined> | T;
2
+ export type PopperPlacement = 'auto' | 'auto-start' | 'auto-end' | 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
3
+ export type PopperProps = {
4
+ /**
5
+ * Position of the popover element.
6
+ *
7
+ * @default 'auto'
8
+ *
9
+ * @see https://popper.js.org/docs/v1/#popperplacements--codeenumcode
10
+ */
11
+ placement?: PopperPlacement;
12
+ };
13
+ export type SizeRangeDefault = 'xLarge' | 'large' | 'medium' | 'small' | 'xSmall';
14
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/ui/utils/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,CAAE,CAAC,IAAK,KAAK,CAAE,CAAC,GAAG,SAAS,CAAE,GAAG,CAAC,CAAC;AAEjE,MAAM,MAAM,eAAe,GACxB,MAAM,GACN,YAAY,GACZ,UAAU,GACV,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,CAAC;AAEd,MAAM,MAAM,WAAW,GAAG;IACzB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GACzB,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const useBreakpointIndex: (options?: {
2
+ defaultIndex?: number;
3
+ }) => number;
4
+ export declare function useResponsiveValue<T>(values: (T | undefined)[], options?: Parameters<typeof useBreakpointIndex>[0]): T | undefined;
5
+ //# sourceMappingURL=use-responsive-value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-responsive-value.d.ts","sourceRoot":"","sources":["../../../src/ui/utils/use-responsive-value.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB,aACrB;IAAE,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,WA6ClC,CAAC;AAEF,wBAAgB,kBAAkB,CAAE,CAAC,EACpC,MAAM,EAAE,CAAE,CAAC,GAAG,SAAS,CAAE,EAAE,EAC3B,OAAO,GAAE,UAAU,CAAE,OAAO,kBAAkB,CAAE,CAAE,CAAC,CAAO,GACxD,CAAC,GAAG,SAAS,CAcf"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import type { RefObject } from 'react';
5
+ /**
6
+ * Creates a reference for a prop. This is useful for preserving dependency
7
+ * memoization for hooks like useCallback.
8
+ *
9
+ * @see https://codesandbox.io/s/uselatestref-mlj3i?file=/src/App.tsx
10
+ *
11
+ * @param value The value to reference
12
+ * @return The prop reference.
13
+ */
14
+ export declare function useLatestRef<T>(value: T): RefObject<T>;
15
+ //# sourceMappingURL=use-latest-ref.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-latest-ref.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/use-latest-ref.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAE,CAAC,EAAI,KAAK,EAAE,CAAC,GAAI,SAAS,CAAE,CAAC,CAAE,CAQ5D"}
@@ -0,0 +1,3 @@
1
+ export const inputStyleNeutral: import("@emotion/utils").SerializedStyles;
2
+ export const inputStyleFocus: import("@emotion/utils").SerializedStyles;
3
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/utils/input/base.js"],"names":[],"mappings":"AAYA,0EAME;AAEF,wEAQE"}
@@ -0,0 +1,2 @@
1
+ export * from "./input-control";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/input/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export const inputControl: import("@emotion/utils").SerializedStyles;
2
+ //# sourceMappingURL=input-control.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-control.d.ts","sourceRoot":"","sources":["../../../src/utils/input/input-control.js"],"names":[],"mappings":"AAaA,qEAiDE"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Allows users to opt-out of animations via OS-level preferences.
3
+ *
4
+ * @param {'transition' | 'animation' | string} [prop='transition'] CSS Property name
5
+ * @return {string} Generated CSS code for the reduced style
6
+ */
7
+ export function reduceMotion(prop?: string | undefined): string;
8
+ //# sourceMappingURL=reduce-motion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reduce-motion.d.ts","sourceRoot":"","sources":["../../src/utils/reduce-motion.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,yDAFY,MAAM,CA0BjB"}
@@ -0,0 +1,3 @@
1
+ export const Flyout: 10000;
2
+ export const Tooltip: 1000002;
3
+ //# sourceMappingURL=z-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"z-index.d.ts","sourceRoot":"","sources":["../../src/utils/z-index.js"],"names":[],"mappings":"AAAA,2BAA4B;AAC5B,8BAA+B"}
@@ -1 +1 @@
1
- {"version":3,"file":"control-with-error.d.ts","sourceRoot":"","sources":["../../src/validated-form-controls/control-with-error.tsx"],"names":[],"mappings":"AAWA;;GAEG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AA4BhE;;;;;;;GAOG;AACH,KAAK,cAAc,GAChB,mBAAmB,GACnB,gBAAgB,GAChB,iBAAiB,GACjB,mBAAmB,CAAC;AA0NvB,eAAO,MAAM,gBAAgB;IAhN3B;;OAEG;eACQ,OAAO;IAClB;;OAEG;uBACgB,OAAO;qBACT,qBAAqB,CAAE,gBAAgB,CAAE;IAC1D;;OAEG;uBACgB,MAAM,cAAc,GAAG,IAAI,GAAG,SAAS;IAC1D;;;;;;;OAOG;;kDA4LoE,CAAC"}
1
+ {"version":3,"file":"control-with-error.d.ts","sourceRoot":"","sources":["../../src/validated-form-controls/control-with-error.tsx"],"names":[],"mappings":"AAYA;;GAEG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AA4BhE;;;;;;;GAOG;AACH,KAAK,cAAc,GAChB,mBAAmB,GACnB,gBAAgB,GAChB,iBAAiB,GACjB,mBAAmB,CAAC;AAiQvB,eAAO,MAAM,gBAAgB;IAvP3B;;OAEG;eACQ,OAAO;IAClB;;OAEG;uBACgB,OAAO;qBACT,qBAAqB,CAAE,gBAAgB,CAAE;IAC1D;;OAEG;uBACgB,MAAM,cAAc,GAAG,IAAI,GAAG,SAAS;IAC1D;;;;;;;OAOG;;kDAmOoE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=checkbox-control.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox-control.d.ts","sourceRoot":"","sources":["../../../src/validated-form-controls/test/checkbox-control.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=combobox-control.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox-control.d.ts","sourceRoot":"","sources":["../../../src/validated-form-controls/test/combobox-control.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=custom-select-control.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-select-control.d.ts","sourceRoot":"","sources":["../../../src/validated-form-controls/test/custom-select-control.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=form-token-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-token-field.d.ts","sourceRoot":"","sources":["../../../src/validated-form-controls/test/form-token-field.tsx"],"names":[],"mappings":""}