@wordpress/components 34.0.0 → 35.0.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 (161) hide show
  1. package/CHANGELOG.md +6 -1
  2. package/build/border-control/border-control-dropdown/component.cjs +33 -33
  3. package/build/border-control/border-control-dropdown/component.cjs.map +3 -3
  4. package/build/disabled/index.cjs +1 -1
  5. package/build/disabled/index.cjs.map +2 -2
  6. package/build/higher-order/with-notices/index.cjs +15 -3
  7. package/build/higher-order/with-notices/index.cjs.map +2 -2
  8. package/build/input-control/input-base.cjs +34 -31
  9. package/build/input-control/input-base.cjs.map +2 -2
  10. package/build/responsive-wrapper/index.cjs +3 -4
  11. package/build/responsive-wrapper/index.cjs.map +2 -2
  12. package/build/tooltip/index.cjs +1 -2
  13. package/build/tooltip/index.cjs.map +2 -2
  14. package/build-module/border-control/border-control-dropdown/component.mjs +34 -34
  15. package/build-module/border-control/border-control-dropdown/component.mjs.map +2 -2
  16. package/build-module/disabled/index.mjs +1 -1
  17. package/build-module/disabled/index.mjs.map +2 -2
  18. package/build-module/higher-order/with-notices/index.mjs +16 -4
  19. package/build-module/higher-order/with-notices/index.mjs.map +2 -2
  20. package/build-module/input-control/input-base.mjs +34 -31
  21. package/build-module/input-control/input-base.mjs.map +2 -2
  22. package/build-module/responsive-wrapper/index.mjs +3 -4
  23. package/build-module/responsive-wrapper/index.mjs.map +2 -2
  24. package/build-module/tooltip/index.mjs +1 -2
  25. package/build-module/tooltip/index.mjs.map +2 -2
  26. package/build-types/border-box-control/border-box-control/hook.d.ts +10 -24
  27. package/build-types/border-box-control/border-box-control/hook.d.ts.map +1 -1
  28. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +12 -26
  29. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts.map +1 -1
  30. package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +10 -24
  31. package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts.map +1 -1
  32. package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +11 -25
  33. package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts.map +1 -1
  34. package/build-types/border-control/border-control/hook.d.ts +10 -24
  35. package/build-types/border-control/border-control/hook.d.ts.map +1 -1
  36. package/build-types/border-control/border-control-dropdown/component.d.ts.map +1 -1
  37. package/build-types/border-control/border-control-dropdown/hook.d.ts +9 -23
  38. package/build-types/border-control/border-control-dropdown/hook.d.ts.map +1 -1
  39. package/build-types/box-control/styles/box-control-styles.d.ts +2 -2
  40. package/build-types/card/card/hook.d.ts +11 -25
  41. package/build-types/card/card/hook.d.ts.map +1 -1
  42. package/build-types/card/card-body/hook.d.ts +11 -25
  43. package/build-types/card/card-body/hook.d.ts.map +1 -1
  44. package/build-types/card/card-divider/hook.d.ts +12 -26
  45. package/build-types/card/card-divider/hook.d.ts.map +1 -1
  46. package/build-types/card/card-footer/hook.d.ts +11 -25
  47. package/build-types/card/card-footer/hook.d.ts.map +1 -1
  48. package/build-types/card/card-header/hook.d.ts +11 -25
  49. package/build-types/card/card-header/hook.d.ts.map +1 -1
  50. package/build-types/card/card-media/hook.d.ts +11 -25
  51. package/build-types/card/card-media/hook.d.ts.map +1 -1
  52. package/build-types/color-picker/styles.d.ts +2 -2
  53. package/build-types/composite/stories/index.story.d.ts.map +1 -1
  54. package/build-types/custom-select-control-v2/styles.d.ts +12 -4
  55. package/build-types/custom-select-control-v2/styles.d.ts.map +1 -1
  56. package/build-types/date-time/time-picker/styles.d.ts +4 -4
  57. package/build-types/elevation/hook.d.ts +11 -25
  58. package/build-types/elevation/hook.d.ts.map +1 -1
  59. package/build-types/flex/flex/hook.d.ts +11 -25
  60. package/build-types/flex/flex/hook.d.ts.map +1 -1
  61. package/build-types/flex/flex-block/hook.d.ts +11 -25
  62. package/build-types/flex/flex-block/hook.d.ts.map +1 -1
  63. package/build-types/flex/flex-item/hook.d.ts +11 -25
  64. package/build-types/flex/flex-item/hook.d.ts.map +1 -1
  65. package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts +1 -1
  66. package/build-types/grid/hook.d.ts +11 -25
  67. package/build-types/grid/hook.d.ts.map +1 -1
  68. package/build-types/h-stack/hook.d.ts +11 -25
  69. package/build-types/h-stack/hook.d.ts.map +1 -1
  70. package/build-types/heading/hook.d.ts +11 -25
  71. package/build-types/heading/hook.d.ts.map +1 -1
  72. package/build-types/higher-order/with-fallback-styles/index.d.ts +3 -1
  73. package/build-types/higher-order/with-filters/index.d.ts +6 -1
  74. package/build-types/higher-order/with-filters/index.d.ts.map +1 -1
  75. package/build-types/higher-order/with-notices/index.d.ts +4 -2
  76. package/build-types/higher-order/with-notices/index.d.ts.map +1 -1
  77. package/build-types/input-control/reducer/reducer.d.ts +1 -1
  78. package/build-types/item-group/item/hook.d.ts +11 -25
  79. package/build-types/item-group/item/hook.d.ts.map +1 -1
  80. package/build-types/item-group/item-group/hook.d.ts +11 -25
  81. package/build-types/item-group/item-group/hook.d.ts.map +1 -1
  82. package/build-types/menu/stories/index.story.d.ts.map +1 -1
  83. package/build-types/menu/styles.d.ts +21 -7
  84. package/build-types/menu/styles.d.ts.map +1 -1
  85. package/build-types/modal/use-modal-exit-animation.d.ts +1 -1
  86. package/build-types/navigator/navigator-back-button/hook.d.ts +12 -26
  87. package/build-types/navigator/navigator-back-button/hook.d.ts.map +1 -1
  88. package/build-types/navigator/navigator-button/hook.d.ts +12 -26
  89. package/build-types/navigator/navigator-button/hook.d.ts.map +1 -1
  90. package/build-types/number-control/index.d.ts +1 -1
  91. package/build-types/number-control/index.d.ts.map +1 -1
  92. package/build-types/number-control/stories/index.story.d.ts +1 -1
  93. package/build-types/number-control/stories/index.story.d.ts.map +1 -1
  94. package/build-types/popover/types.d.ts +2 -2
  95. package/build-types/popover/types.d.ts.map +1 -1
  96. package/build-types/range-control/index.d.ts +1 -1
  97. package/build-types/range-control/styles/range-control-styles.d.ts +1 -1
  98. package/build-types/range-control/types.d.ts +1 -1
  99. package/build-types/range-control/types.d.ts.map +1 -1
  100. package/build-types/responsive-wrapper/index.d.ts.map +1 -1
  101. package/build-types/scrollable/hook.d.ts +11 -25
  102. package/build-types/scrollable/hook.d.ts.map +1 -1
  103. package/build-types/snackbar/index.d.ts +2 -2
  104. package/build-types/snackbar/types.d.ts +2 -2
  105. package/build-types/snackbar/types.d.ts.map +1 -1
  106. package/build-types/spacer/hook.d.ts +11 -25
  107. package/build-types/spacer/hook.d.ts.map +1 -1
  108. package/build-types/surface/hook.d.ts +11 -25
  109. package/build-types/surface/hook.d.ts.map +1 -1
  110. package/build-types/tabs/stories/index.story.d.ts.map +1 -1
  111. package/build-types/tabs/styles.d.ts +9 -3
  112. package/build-types/tabs/styles.d.ts.map +1 -1
  113. package/build-types/text/hook.d.ts +11 -25
  114. package/build-types/text/hook.d.ts.map +1 -1
  115. package/build-types/tools-panel/tools-panel/hook.d.ts +11 -25
  116. package/build-types/tools-panel/tools-panel/hook.d.ts.map +1 -1
  117. package/build-types/tools-panel/tools-panel-header/hook.d.ts +11 -25
  118. package/build-types/tools-panel/tools-panel-header/hook.d.ts.map +1 -1
  119. package/build-types/tools-panel/tools-panel-item/hook.d.ts +11 -25
  120. package/build-types/tools-panel/tools-panel-item/hook.d.ts.map +1 -1
  121. package/build-types/tooltip/index.d.ts.map +1 -1
  122. package/build-types/truncate/hook.d.ts +11 -25
  123. package/build-types/truncate/hook.d.ts.map +1 -1
  124. package/build-types/unit-control/index.d.ts +1 -1
  125. package/build-types/unit-control/index.d.ts.map +1 -1
  126. package/build-types/unit-control/styles/unit-control-styles.d.ts +1 -1
  127. package/build-types/utils/get-node-text.d.ts.map +1 -1
  128. package/build-types/v-stack/hook.d.ts +11 -25
  129. package/build-types/v-stack/hook.d.ts.map +1 -1
  130. package/build-types/validated-form-controls/components/number-control.d.ts +1 -1
  131. package/build-types/validated-form-controls/components/number-control.d.ts.map +1 -1
  132. package/build-types/validated-form-controls/components/range-control.d.ts +1 -1
  133. package/build-types/validated-form-controls/control-with-error.d.ts +1 -4
  134. package/build-types/validated-form-controls/control-with-error.d.ts.map +1 -1
  135. package/package.json +26 -26
  136. package/src/autocomplete/README.md +1 -1
  137. package/src/border-control/border-control-dropdown/component.tsx +37 -36
  138. package/src/composite/stories/index.story.tsx +1 -0
  139. package/src/disabled/index.tsx +1 -1
  140. package/src/form-file-upload/README.md +1 -1
  141. package/src/h-stack/hook.tsx +1 -1
  142. package/src/higher-order/with-notices/index.tsx +21 -4
  143. package/src/higher-order/with-notices/test/index.tsx +18 -0
  144. package/src/input-control/input-base.tsx +2 -2
  145. package/src/menu/README.md +7 -7
  146. package/src/menu/stories/index.story.tsx +1 -0
  147. package/src/popover/index.tsx +1 -1
  148. package/src/popover/types.ts +4 -2
  149. package/src/range-control/types.ts +1 -1
  150. package/src/responsive-wrapper/index.tsx +3 -7
  151. package/src/snackbar/README.md +1 -1
  152. package/src/snackbar/types.ts +2 -2
  153. package/src/tabs/README.md +1 -1
  154. package/src/tabs/stories/index.story.tsx +1 -0
  155. package/src/tabs/tablist.tsx +1 -1
  156. package/src/tooltip/index.tsx +1 -7
  157. package/src/tree-grid/test/cell.tsx +1 -0
  158. package/src/tree-grid/test/roving-tab-index-item.tsx +1 -0
  159. package/src/tree-select/README.md +1 -1
  160. package/src/utils/get-node-text.ts +1 -7
  161. package/src/validated-form-controls/control-with-error.tsx +1 -6
@@ -18,7 +18,7 @@ function Disabled({
18
18
  value: isDisabled,
19
19
  children: /* @__PURE__ */ _jsx("div", {
20
20
  // @ts-ignore Reason: inert is a recent HTML attribute
21
- inert: isDisabled ? true : void 0,
21
+ inert: isDisabled ? "true" : void 0,
22
22
  className: isDisabled ? cx(disabledStyles, className, "components-disabled") : void 0,
23
23
  ...props,
24
24
  children
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/disabled/index.tsx"],
4
- "sourcesContent": ["import { disabledStyles } from './styles/disabled-styles';\nimport { useCx } from '../utils';\nimport Context from './context';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst {\n Consumer,\n Provider\n} = Context;\n\n/**\n * `Disabled` is a component which disables descendant tabbable elements and\n * prevents pointer interaction.\n *\n * _Note: this component may not behave as expected in browsers that don't\n * support the `inert` HTML attribute. We recommend adding the official WICG\n * polyfill when using this component in your project._\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert\n *\n * ```jsx\n * import { Button, Disabled, TextControl } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const MyDisabled = () => {\n * \tconst [ isDisabled, setIsDisabled ] = useState( true );\n *\n *\tlet input = (\n *\t\t<TextControl\n *\t\t\t__next40pxDefaultSize\n *\t\t\tlabel=\"Input\"\n *\t\t\tonChange={ () => {} }\n *\t\t/>\n *\t);\n * \tif ( isDisabled ) {\n * \t\tinput = <Disabled>{ input }</Disabled>;\n * \t}\n *\n * \tconst toggleDisabled = () => {\n * \t\tsetIsDisabled( ( state ) => ! state );\n * \t};\n *\n * \treturn (\n * \t\t<div>\n * \t\t\t{ input }\n * \t\t\t<Button variant=\"primary\" onClick={ toggleDisabled }>\n * \t\t\t\tToggle Disabled\n * \t\t\t</Button>\n * \t\t</div>\n * \t);\n * };\n * ```\n */\nfunction Disabled({\n className,\n children,\n isDisabled = true,\n ...props\n}) {\n const cx = useCx();\n return /*#__PURE__*/_jsx(Provider, {\n value: isDisabled,\n children: /*#__PURE__*/_jsx(\"div\", {\n // @ts-ignore Reason: inert is a recent HTML attribute\n inert: isDisabled ? true : undefined,\n className: isDisabled ? cx(disabledStyles, className, 'components-disabled') : undefined,\n ...props,\n children: children\n })\n });\n}\nDisabled.Context = Context;\nDisabled.Consumer = Consumer;\nexport default Disabled;"],
5
- "mappings": ";AAAA,SAAS,sBAAsB;AAC/B,SAAS,aAAa;AACtB,OAAO,aAAa;AACpB,SAAS,OAAO,YAAY;AAC5B,IAAM;AAAA,EACJ;AAAA,EACA;AACF,IAAI;AA6CJ,SAAS,SAAS;AAAA,EAChB;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,GAAG;AACL,GAAG;AACD,QAAM,KAAK,MAAM;AACjB,SAAoB,qBAAK,UAAU;AAAA,IACjC,OAAO;AAAA,IACP,UAAuB,qBAAK,OAAO;AAAA;AAAA,MAEjC,OAAO,aAAa,OAAO;AAAA,MAC3B,WAAW,aAAa,GAAG,gBAAgB,WAAW,qBAAqB,IAAI;AAAA,MAC/E,GAAG;AAAA,MACH;AAAA,IACF,CAAC;AAAA,EACH,CAAC;AACH;AACA,SAAS,UAAU;AACnB,SAAS,WAAW;AACpB,IAAO,mBAAQ;",
4
+ "sourcesContent": ["import { disabledStyles } from './styles/disabled-styles';\nimport { useCx } from '../utils';\nimport Context from './context';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst {\n Consumer,\n Provider\n} = Context;\n\n/**\n * `Disabled` is a component which disables descendant tabbable elements and\n * prevents pointer interaction.\n *\n * _Note: this component may not behave as expected in browsers that don't\n * support the `inert` HTML attribute. We recommend adding the official WICG\n * polyfill when using this component in your project._\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert\n *\n * ```jsx\n * import { Button, Disabled, TextControl } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const MyDisabled = () => {\n * \tconst [ isDisabled, setIsDisabled ] = useState( true );\n *\n *\tlet input = (\n *\t\t<TextControl\n *\t\t\t__next40pxDefaultSize\n *\t\t\tlabel=\"Input\"\n *\t\t\tonChange={ () => {} }\n *\t\t/>\n *\t);\n * \tif ( isDisabled ) {\n * \t\tinput = <Disabled>{ input }</Disabled>;\n * \t}\n *\n * \tconst toggleDisabled = () => {\n * \t\tsetIsDisabled( ( state ) => ! state );\n * \t};\n *\n * \treturn (\n * \t\t<div>\n * \t\t\t{ input }\n * \t\t\t<Button variant=\"primary\" onClick={ toggleDisabled }>\n * \t\t\t\tToggle Disabled\n * \t\t\t</Button>\n * \t\t</div>\n * \t);\n * };\n * ```\n */\nfunction Disabled({\n className,\n children,\n isDisabled = true,\n ...props\n}) {\n const cx = useCx();\n return /*#__PURE__*/_jsx(Provider, {\n value: isDisabled,\n children: /*#__PURE__*/_jsx(\"div\", {\n // @ts-ignore Reason: inert is a recent HTML attribute\n inert: isDisabled ? 'true' : undefined,\n className: isDisabled ? cx(disabledStyles, className, 'components-disabled') : undefined,\n ...props,\n children: children\n })\n });\n}\nDisabled.Context = Context;\nDisabled.Consumer = Consumer;\nexport default Disabled;"],
5
+ "mappings": ";AAAA,SAAS,sBAAsB;AAC/B,SAAS,aAAa;AACtB,OAAO,aAAa;AACpB,SAAS,OAAO,YAAY;AAC5B,IAAM;AAAA,EACJ;AAAA,EACA;AACF,IAAI;AA6CJ,SAAS,SAAS;AAAA,EAChB;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,GAAG;AACL,GAAG;AACD,QAAM,KAAK,MAAM;AACjB,SAAoB,qBAAK,UAAU;AAAA,IACjC,OAAO;AAAA,IACP,UAAuB,qBAAK,OAAO;AAAA;AAAA,MAEjC,OAAO,aAAa,SAAS;AAAA,MAC7B,WAAW,aAAa,GAAG,gBAAgB,WAAW,qBAAqB,IAAI;AAAA,MAC/E,GAAG;AAAA,MACH;AAAA,IACF,CAAC;AAAA,EACH,CAAC;AACH;AACA,SAAS,UAAU;AACnB,SAAS,WAAW;AACpB,IAAO,mBAAQ;",
6
6
  "names": []
7
7
  }
@@ -1,11 +1,11 @@
1
1
  // packages/components/src/higher-order/with-notices/index.tsx
2
2
  import { v4 as uuid } from "uuid";
3
- import { useState, useMemo } from "@wordpress/element";
3
+ import { forwardRef, useState, useMemo } from "@wordpress/element";
4
4
  import { createHigherOrderComponent } from "@wordpress/compose";
5
5
  import NoticeList from "../../notice/list.mjs";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  var with_notices_default = createHigherOrderComponent((OriginalComponent) => {
8
- return function Component(props) {
8
+ function Component(props, ref) {
9
9
  const [noticeList, setNoticeList] = useState([]);
10
10
  const noticeOperations = useMemo(() => {
11
11
  const createNotice = (notice) => {
@@ -41,10 +41,22 @@ var with_notices_default = createHigherOrderComponent((OriginalComponent) => {
41
41
  onRemove: noticeOperations.removeNotice
42
42
  })
43
43
  };
44
- return /* @__PURE__ */ _jsx(OriginalComponent, {
44
+ return isForwardRef ? /* @__PURE__ */ _jsx(OriginalComponent, {
45
+ ...propsOut,
46
+ ref
47
+ }) : /* @__PURE__ */ _jsx(OriginalComponent, {
45
48
  ...propsOut
46
49
  });
47
- };
50
+ }
51
+ let isForwardRef;
52
+ const {
53
+ render
54
+ } = OriginalComponent;
55
+ if (typeof render === "function") {
56
+ isForwardRef = true;
57
+ return forwardRef(Component);
58
+ }
59
+ return Component;
48
60
  }, "withNotices");
49
61
  export {
50
62
  with_notices_default as default
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/higher-order/with-notices/index.tsx"],
4
- "sourcesContent": ["/**\n * External dependencies\n */\nimport { v4 as uuid } from 'uuid';\n\n/**\n * WordPress dependencies\n */\nimport { useState, useMemo } from '@wordpress/element';\nimport { createHigherOrderComponent } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport NoticeList from '../../notice/list';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Override the default edit UI to include notices if supported.\n *\n * Wrapping the original component with `withNotices` encapsulates the component\n * with the additional props `noticeOperations` and `noticeUI`.\n *\n * ```jsx\n * import { withNotices, Button } from '@wordpress/components';\n *\n * const MyComponentWithNotices = withNotices(\n * \t( { noticeOperations, noticeUI } ) => {\n * \t\tconst addError = () =>\n * \t\t\tnoticeOperations.createErrorNotice( 'Error message' );\n * \t\treturn (\n * \t\t\t<div>\n * \t\t\t\t{ noticeUI }\n * \t\t\t\t<Button variant=\"secondary\" onClick={ addError }>\n * \t\t\t\t\tAdd error\n * \t\t\t\t</Button>\n * \t\t\t</div>\n * \t\t);\n * \t}\n * );\n * ```\n *\n * @param OriginalComponent Original component.\n *\n * @return Wrapped component.\n */\nexport default createHigherOrderComponent(OriginalComponent => {\n return function Component(props) {\n const [noticeList, setNoticeList] = useState([]);\n const noticeOperations = useMemo(() => {\n const createNotice = notice => {\n const noticeToAdd = notice.id ? notice : {\n ...notice,\n id: uuid()\n };\n setNoticeList(current => [...current, noticeToAdd]);\n };\n return {\n createNotice,\n createErrorNotice: msg => {\n // @ts-expect-error TODO: Missing `id`, potentially a bug\n createNotice({\n status: 'error',\n content: msg\n });\n },\n removeNotice: id => {\n setNoticeList(current => current.filter(notice => notice.id !== id));\n },\n removeAllNotices: () => {\n setNoticeList([]);\n }\n };\n }, []);\n const propsOut = {\n ...props,\n noticeList,\n noticeOperations,\n noticeUI: noticeList.length > 0 && /*#__PURE__*/_jsx(NoticeList, {\n className: \"components-with-notices-ui\",\n notices: noticeList,\n onRemove: noticeOperations.removeNotice\n })\n };\n return /*#__PURE__*/_jsx(OriginalComponent, {\n ...propsOut\n });\n };\n}, 'withNotices');"],
5
- "mappings": ";AAGA,SAAS,MAAM,YAAY;AAK3B,SAAS,UAAU,eAAe;AAClC,SAAS,kCAAkC;AAK3C,OAAO,gBAAgB;AACvB,SAAS,OAAO,YAAY;AA8B5B,IAAO,uBAAQ,2BAA2B,uBAAqB;AAC7D,SAAO,SAAS,UAAU,OAAO;AAC/B,UAAM,CAAC,YAAY,aAAa,IAAI,SAAS,CAAC,CAAC;AAC/C,UAAM,mBAAmB,QAAQ,MAAM;AACrC,YAAM,eAAe,YAAU;AAC7B,cAAM,cAAc,OAAO,KAAK,SAAS;AAAA,UACvC,GAAG;AAAA,UACH,IAAI,KAAK;AAAA,QACX;AACA,sBAAc,aAAW,CAAC,GAAG,SAAS,WAAW,CAAC;AAAA,MACpD;AACA,aAAO;AAAA,QACL;AAAA,QACA,mBAAmB,SAAO;AAExB,uBAAa;AAAA,YACX,QAAQ;AAAA,YACR,SAAS;AAAA,UACX,CAAC;AAAA,QACH;AAAA,QACA,cAAc,QAAM;AAClB,wBAAc,aAAW,QAAQ,OAAO,YAAU,OAAO,OAAO,EAAE,CAAC;AAAA,QACrE;AAAA,QACA,kBAAkB,MAAM;AACtB,wBAAc,CAAC,CAAC;AAAA,QAClB;AAAA,MACF;AAAA,IACF,GAAG,CAAC,CAAC;AACL,UAAM,WAAW;AAAA,MACf,GAAG;AAAA,MACH;AAAA,MACA;AAAA,MACA,UAAU,WAAW,SAAS,KAAkB,qBAAK,YAAY;AAAA,QAC/D,WAAW;AAAA,QACX,SAAS;AAAA,QACT,UAAU,iBAAiB;AAAA,MAC7B,CAAC;AAAA,IACH;AACA,WAAoB,qBAAK,mBAAmB;AAAA,MAC1C,GAAG;AAAA,IACL,CAAC;AAAA,EACH;AACF,GAAG,aAAa;",
4
+ "sourcesContent": ["/**\n * External dependencies\n */\nimport { v4 as uuid } from 'uuid';\n\n/**\n * WordPress dependencies\n */\nimport { forwardRef, useState, useMemo } from '@wordpress/element';\nimport { createHigherOrderComponent } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport NoticeList from '../../notice/list';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Override the default edit UI to include notices if supported.\n *\n * Wrapping the original component with `withNotices` encapsulates the component\n * with the additional props `noticeOperations` and `noticeUI`.\n *\n * ```jsx\n * import { withNotices, Button } from '@wordpress/components';\n *\n * const MyComponentWithNotices = withNotices(\n * \t( { noticeOperations, noticeUI } ) => {\n * \t\tconst addError = () =>\n * \t\t\tnoticeOperations.createErrorNotice( 'Error message' );\n * \t\treturn (\n * \t\t\t<div>\n * \t\t\t\t{ noticeUI }\n * \t\t\t\t<Button variant=\"secondary\" onClick={ addError }>\n * \t\t\t\t\tAdd error\n * \t\t\t\t</Button>\n * \t\t\t</div>\n * \t\t);\n * \t}\n * );\n * ```\n *\n * @param OriginalComponent Original component.\n *\n * @return Wrapped component.\n */\nexport default createHigherOrderComponent(OriginalComponent => {\n function Component(props, ref) {\n const [noticeList, setNoticeList] = useState([]);\n const noticeOperations = useMemo(() => {\n const createNotice = notice => {\n const noticeToAdd = notice.id ? notice : {\n ...notice,\n id: uuid()\n };\n setNoticeList(current => [...current, noticeToAdd]);\n };\n return {\n createNotice,\n createErrorNotice: msg => {\n // @ts-expect-error TODO: Missing `id`, potentially a bug\n createNotice({\n status: 'error',\n content: msg\n });\n },\n removeNotice: id => {\n setNoticeList(current => current.filter(notice => notice.id !== id));\n },\n removeAllNotices: () => {\n setNoticeList([]);\n }\n };\n }, []);\n const propsOut = {\n ...props,\n noticeList,\n noticeOperations,\n noticeUI: noticeList.length > 0 && /*#__PURE__*/_jsx(NoticeList, {\n className: \"components-with-notices-ui\",\n notices: noticeList,\n onRemove: noticeOperations.removeNotice\n })\n };\n return isForwardRef ? /*#__PURE__*/_jsx(OriginalComponent, {\n ...propsOut,\n ref: ref\n }) : /*#__PURE__*/_jsx(OriginalComponent, {\n ...propsOut\n });\n }\n let isForwardRef;\n // @ts-expect-error - `render` will only be present when OriginalComponent was wrapped with forwardRef().\n const {\n render\n } = OriginalComponent;\n // Returns a forwardRef if OriginalComponent appears to be a forwardRef.\n if (typeof render === 'function') {\n isForwardRef = true;\n return forwardRef(Component);\n }\n return Component;\n}, 'withNotices');"],
5
+ "mappings": ";AAGA,SAAS,MAAM,YAAY;AAK3B,SAAS,YAAY,UAAU,eAAe;AAC9C,SAAS,kCAAkC;AAK3C,OAAO,gBAAgB;AACvB,SAAS,OAAO,YAAY;AA8B5B,IAAO,uBAAQ,2BAA2B,uBAAqB;AAC7D,WAAS,UAAU,OAAO,KAAK;AAC7B,UAAM,CAAC,YAAY,aAAa,IAAI,SAAS,CAAC,CAAC;AAC/C,UAAM,mBAAmB,QAAQ,MAAM;AACrC,YAAM,eAAe,YAAU;AAC7B,cAAM,cAAc,OAAO,KAAK,SAAS;AAAA,UACvC,GAAG;AAAA,UACH,IAAI,KAAK;AAAA,QACX;AACA,sBAAc,aAAW,CAAC,GAAG,SAAS,WAAW,CAAC;AAAA,MACpD;AACA,aAAO;AAAA,QACL;AAAA,QACA,mBAAmB,SAAO;AAExB,uBAAa;AAAA,YACX,QAAQ;AAAA,YACR,SAAS;AAAA,UACX,CAAC;AAAA,QACH;AAAA,QACA,cAAc,QAAM;AAClB,wBAAc,aAAW,QAAQ,OAAO,YAAU,OAAO,OAAO,EAAE,CAAC;AAAA,QACrE;AAAA,QACA,kBAAkB,MAAM;AACtB,wBAAc,CAAC,CAAC;AAAA,QAClB;AAAA,MACF;AAAA,IACF,GAAG,CAAC,CAAC;AACL,UAAM,WAAW;AAAA,MACf,GAAG;AAAA,MACH;AAAA,MACA;AAAA,MACA,UAAU,WAAW,SAAS,KAAkB,qBAAK,YAAY;AAAA,QAC/D,WAAW;AAAA,QACX,SAAS;AAAA,QACT,UAAU,iBAAiB;AAAA,MAC7B,CAAC;AAAA,IACH;AACA,WAAO,eAA4B,qBAAK,mBAAmB;AAAA,MACzD,GAAG;AAAA,MACH;AAAA,IACF,CAAC,IAAiB,qBAAK,mBAAmB;AAAA,MACxC,GAAG;AAAA,IACL,CAAC;AAAA,EACH;AACA,MAAI;AAEJ,QAAM;AAAA,IACJ;AAAA,EACF,IAAI;AAEJ,MAAI,OAAO,WAAW,YAAY;AAChC,mBAAe;AACf,WAAO,WAAW,SAAS;AAAA,EAC7B;AACA,SAAO;AACT,GAAG,aAAa;",
6
6
  "names": []
7
7
  }
@@ -62,39 +62,42 @@ function InputBase(props, ref) {
62
62
  }
63
63
  };
64
64
  }, [__next40pxDefaultSize, size]);
65
- return /* @__PURE__ */ _jsxs(Root, {
66
- ...restProps,
67
- ...getUIFlexProps(labelPosition),
68
- className,
69
- gap: 2,
70
- ref,
71
- children: [/* @__PURE__ */ _jsx(Label, {
72
- className: "components-input-control__label",
73
- hideLabelFromVision,
74
- labelPosition,
75
- htmlFor: id,
76
- children: label
77
- }), /* @__PURE__ */ _jsxs(Container, {
78
- __unstableInputWidth,
79
- className: "components-input-control__container",
80
- disabled,
81
- hideLabel,
82
- labelPosition,
83
- children: [/* @__PURE__ */ _jsxs(ContextSystemProvider, {
84
- value: prefixSuffixContextValue,
85
- children: [prefix && /* @__PURE__ */ _jsx(Prefix, {
86
- className: "components-input-control__prefix",
87
- children: prefix
88
- }), children, suffix && /* @__PURE__ */ _jsx(Suffix, {
89
- className: "components-input-control__suffix",
90
- children: suffix
91
- })]
92
- }), /* @__PURE__ */ _jsx(Backdrop, {
65
+ return (
66
+ // @ts-expect-error The `direction` prop from Flex (FlexDirection) conflicts with legacy SVGAttributes `direction` (string) that come from React intrinsic prop definitions.
67
+ /* @__PURE__ */ _jsxs(Root, {
68
+ ...restProps,
69
+ ...getUIFlexProps(labelPosition),
70
+ className,
71
+ gap: 2,
72
+ ref,
73
+ children: [/* @__PURE__ */ _jsx(Label, {
74
+ className: "components-input-control__label",
75
+ hideLabelFromVision,
76
+ labelPosition,
77
+ htmlFor: id,
78
+ children: label
79
+ }), /* @__PURE__ */ _jsxs(Container, {
80
+ __unstableInputWidth,
81
+ className: "components-input-control__container",
93
82
  disabled,
94
- isBorderless
83
+ hideLabel,
84
+ labelPosition,
85
+ children: [/* @__PURE__ */ _jsxs(ContextSystemProvider, {
86
+ value: prefixSuffixContextValue,
87
+ children: [prefix && /* @__PURE__ */ _jsx(Prefix, {
88
+ className: "components-input-control__prefix",
89
+ children: prefix
90
+ }), children, suffix && /* @__PURE__ */ _jsx(Suffix, {
91
+ className: "components-input-control__suffix",
92
+ children: suffix
93
+ })]
94
+ }), /* @__PURE__ */ _jsx(Backdrop, {
95
+ disabled,
96
+ isBorderless
97
+ })]
95
98
  })]
96
- })]
97
- });
99
+ })
100
+ );
98
101
  }
99
102
  var input_base_default = contextConnect(InputBase, "InputBase");
100
103
  export {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/input-control/input-base.tsx"],
4
- "sourcesContent": ["/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\nimport { useInstanceId } from '@wordpress/compose';\nimport { useMemo } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport Backdrop from './backdrop';\nimport Label from './label';\nimport { Container, Root, Prefix, Suffix } from './styles/input-control-styles';\nimport { ContextSystemProvider, contextConnect, useContextSystem } from '../context';\nimport { useDeprecated36pxDefaultSizeProp } from '../utils/use-deprecated-props';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction useUniqueId(idProp) {\n const instanceId = useInstanceId(InputBase);\n const id = `input-base-control-${instanceId}`;\n return idProp || id;\n}\n\n// Adapter to map props for the new ui/flex component.\nfunction getUIFlexProps(labelPosition) {\n const props = {};\n switch (labelPosition) {\n case 'top':\n props.direction = 'column';\n props.expanded = false;\n props.gap = 0;\n break;\n case 'bottom':\n props.direction = 'column-reverse';\n props.expanded = false;\n props.gap = 0;\n break;\n case 'edge':\n props.justify = 'space-between';\n break;\n }\n return props;\n}\nfunction InputBase(props, ref) {\n const {\n __next40pxDefaultSize,\n __unstableInputWidth,\n children,\n className,\n disabled = false,\n hideLabelFromVision = false,\n labelPosition,\n id: idProp,\n isBorderless = false,\n label,\n prefix,\n size = 'default',\n suffix,\n ...restProps\n } = useDeprecated36pxDefaultSizeProp(useContextSystem(props, 'InputBase'));\n const id = useUniqueId(idProp);\n const hideLabel = hideLabelFromVision || !label;\n const prefixSuffixContextValue = useMemo(() => {\n return {\n InputControlPrefixWrapper: {\n __next40pxDefaultSize,\n size\n },\n InputControlSuffixWrapper: {\n __next40pxDefaultSize,\n size\n }\n };\n }, [__next40pxDefaultSize, size]);\n return /*#__PURE__*/_jsxs(Root, {\n ...restProps,\n ...getUIFlexProps(labelPosition),\n className: className,\n gap: 2,\n ref: ref,\n children: [/*#__PURE__*/_jsx(Label, {\n className: \"components-input-control__label\",\n hideLabelFromVision: hideLabelFromVision,\n labelPosition: labelPosition,\n htmlFor: id,\n children: label\n }), /*#__PURE__*/_jsxs(Container, {\n __unstableInputWidth: __unstableInputWidth,\n className: \"components-input-control__container\",\n disabled: disabled,\n hideLabel: hideLabel,\n labelPosition: labelPosition,\n children: [/*#__PURE__*/_jsxs(ContextSystemProvider, {\n value: prefixSuffixContextValue,\n children: [prefix && /*#__PURE__*/_jsx(Prefix, {\n className: \"components-input-control__prefix\",\n children: prefix\n }), children, suffix && /*#__PURE__*/_jsx(Suffix, {\n className: \"components-input-control__suffix\",\n children: suffix\n })]\n }), /*#__PURE__*/_jsx(Backdrop, {\n disabled: disabled,\n isBorderless: isBorderless\n })]\n })]\n });\n}\n\n/**\n * `InputBase` is an internal component used to style the standard borders for an input,\n * as well as handle the layout for prefix/suffix elements.\n */\nexport default contextConnect(InputBase, 'InputBase');"],
5
- "mappings": ";AAOA,SAAS,qBAAqB;AAC9B,SAAS,eAAe;AAKxB,OAAO,cAAc;AACrB,OAAO,WAAW;AAClB,SAAS,WAAW,MAAM,QAAQ,cAAc;AAChD,SAAS,uBAAuB,gBAAgB,wBAAwB;AACxE,SAAS,wCAAwC;AACjD,SAAS,OAAO,MAAM,QAAQ,aAAa;AAC3C,SAAS,YAAY,QAAQ;AAC3B,QAAM,aAAa,cAAc,SAAS;AAC1C,QAAM,KAAK,sBAAsB,UAAU;AAC3C,SAAO,UAAU;AACnB;AAGA,SAAS,eAAe,eAAe;AACrC,QAAM,QAAQ,CAAC;AACf,UAAQ,eAAe;AAAA,IACrB,KAAK;AACH,YAAM,YAAY;AAClB,YAAM,WAAW;AACjB,YAAM,MAAM;AACZ;AAAA,IACF,KAAK;AACH,YAAM,YAAY;AAClB,YAAM,WAAW;AACjB,YAAM,MAAM;AACZ;AAAA,IACF,KAAK;AACH,YAAM,UAAU;AAChB;AAAA,EACJ;AACA,SAAO;AACT;AACA,SAAS,UAAU,OAAO,KAAK;AAC7B,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX,sBAAsB;AAAA,IACtB;AAAA,IACA,IAAI;AAAA,IACJ,eAAe;AAAA,IACf;AAAA,IACA;AAAA,IACA,OAAO;AAAA,IACP;AAAA,IACA,GAAG;AAAA,EACL,IAAI,iCAAiC,iBAAiB,OAAO,WAAW,CAAC;AACzE,QAAM,KAAK,YAAY,MAAM;AAC7B,QAAM,YAAY,uBAAuB,CAAC;AAC1C,QAAM,2BAA2B,QAAQ,MAAM;AAC7C,WAAO;AAAA,MACL,2BAA2B;AAAA,QACzB;AAAA,QACA;AAAA,MACF;AAAA,MACA,2BAA2B;AAAA,QACzB;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,EACF,GAAG,CAAC,uBAAuB,IAAI,CAAC;AAChC,SAAoB,sBAAM,MAAM;AAAA,IAC9B,GAAG;AAAA,IACH,GAAG,eAAe,aAAa;AAAA,IAC/B;AAAA,IACA,KAAK;AAAA,IACL;AAAA,IACA,UAAU,CAAc,qBAAK,OAAO;AAAA,MAClC,WAAW;AAAA,MACX;AAAA,MACA;AAAA,MACA,SAAS;AAAA,MACT,UAAU;AAAA,IACZ,CAAC,GAAgB,sBAAM,WAAW;AAAA,MAChC;AAAA,MACA,WAAW;AAAA,MACX;AAAA,MACA;AAAA,MACA;AAAA,MACA,UAAU,CAAc,sBAAM,uBAAuB;AAAA,QACnD,OAAO;AAAA,QACP,UAAU,CAAC,UAAuB,qBAAK,QAAQ;AAAA,UAC7C,WAAW;AAAA,UACX,UAAU;AAAA,QACZ,CAAC,GAAG,UAAU,UAAuB,qBAAK,QAAQ;AAAA,UAChD,WAAW;AAAA,UACX,UAAU;AAAA,QACZ,CAAC,CAAC;AAAA,MACJ,CAAC,GAAgB,qBAAK,UAAU;AAAA,QAC9B;AAAA,QACA;AAAA,MACF,CAAC,CAAC;AAAA,IACJ,CAAC,CAAC;AAAA,EACJ,CAAC;AACH;AAMA,IAAO,qBAAQ,eAAe,WAAW,WAAW;",
4
+ "sourcesContent": ["/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\nimport { useInstanceId } from '@wordpress/compose';\nimport { useMemo } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport Backdrop from './backdrop';\nimport Label from './label';\nimport { Container, Root, Prefix, Suffix } from './styles/input-control-styles';\nimport { ContextSystemProvider, contextConnect, useContextSystem } from '../context';\nimport { useDeprecated36pxDefaultSizeProp } from '../utils/use-deprecated-props';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction useUniqueId(idProp) {\n const instanceId = useInstanceId(InputBase);\n const id = `input-base-control-${instanceId}`;\n return idProp || id;\n}\n\n// Adapter to map props for the new ui/flex component.\nfunction getUIFlexProps(labelPosition) {\n const props = {};\n switch (labelPosition) {\n case 'top':\n props.direction = 'column';\n props.expanded = false;\n props.gap = 0;\n break;\n case 'bottom':\n props.direction = 'column-reverse';\n props.expanded = false;\n props.gap = 0;\n break;\n case 'edge':\n props.justify = 'space-between';\n break;\n }\n return props;\n}\nfunction InputBase(props, ref) {\n const {\n __next40pxDefaultSize,\n __unstableInputWidth,\n children,\n className,\n disabled = false,\n hideLabelFromVision = false,\n labelPosition,\n id: idProp,\n isBorderless = false,\n label,\n prefix,\n size = 'default',\n suffix,\n ...restProps\n } = useDeprecated36pxDefaultSizeProp(useContextSystem(props, 'InputBase'));\n const id = useUniqueId(idProp);\n const hideLabel = hideLabelFromVision || !label;\n const prefixSuffixContextValue = useMemo(() => {\n return {\n InputControlPrefixWrapper: {\n __next40pxDefaultSize,\n size\n },\n InputControlSuffixWrapper: {\n __next40pxDefaultSize,\n size\n }\n };\n }, [__next40pxDefaultSize, size]);\n return (\n /*#__PURE__*/\n // @ts-expect-error The `direction` prop from Flex (FlexDirection) conflicts with legacy SVGAttributes `direction` (string) that come from React intrinsic prop definitions.\n _jsxs(Root, {\n ...restProps,\n ...getUIFlexProps(labelPosition),\n className: className,\n gap: 2,\n ref: ref,\n children: [/*#__PURE__*/_jsx(Label, {\n className: \"components-input-control__label\",\n hideLabelFromVision: hideLabelFromVision,\n labelPosition: labelPosition,\n htmlFor: id,\n children: label\n }), /*#__PURE__*/_jsxs(Container, {\n __unstableInputWidth: __unstableInputWidth,\n className: \"components-input-control__container\",\n disabled: disabled,\n hideLabel: hideLabel,\n labelPosition: labelPosition,\n children: [/*#__PURE__*/_jsxs(ContextSystemProvider, {\n value: prefixSuffixContextValue,\n children: [prefix && /*#__PURE__*/_jsx(Prefix, {\n className: \"components-input-control__prefix\",\n children: prefix\n }), children, suffix && /*#__PURE__*/_jsx(Suffix, {\n className: \"components-input-control__suffix\",\n children: suffix\n })]\n }), /*#__PURE__*/_jsx(Backdrop, {\n disabled: disabled,\n isBorderless: isBorderless\n })]\n })]\n })\n );\n}\n\n/**\n * `InputBase` is an internal component used to style the standard borders for an input,\n * as well as handle the layout for prefix/suffix elements.\n */\nexport default contextConnect(InputBase, 'InputBase');"],
5
+ "mappings": ";AAOA,SAAS,qBAAqB;AAC9B,SAAS,eAAe;AAKxB,OAAO,cAAc;AACrB,OAAO,WAAW;AAClB,SAAS,WAAW,MAAM,QAAQ,cAAc;AAChD,SAAS,uBAAuB,gBAAgB,wBAAwB;AACxE,SAAS,wCAAwC;AACjD,SAAS,OAAO,MAAM,QAAQ,aAAa;AAC3C,SAAS,YAAY,QAAQ;AAC3B,QAAM,aAAa,cAAc,SAAS;AAC1C,QAAM,KAAK,sBAAsB,UAAU;AAC3C,SAAO,UAAU;AACnB;AAGA,SAAS,eAAe,eAAe;AACrC,QAAM,QAAQ,CAAC;AACf,UAAQ,eAAe;AAAA,IACrB,KAAK;AACH,YAAM,YAAY;AAClB,YAAM,WAAW;AACjB,YAAM,MAAM;AACZ;AAAA,IACF,KAAK;AACH,YAAM,YAAY;AAClB,YAAM,WAAW;AACjB,YAAM,MAAM;AACZ;AAAA,IACF,KAAK;AACH,YAAM,UAAU;AAChB;AAAA,EACJ;AACA,SAAO;AACT;AACA,SAAS,UAAU,OAAO,KAAK;AAC7B,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX,sBAAsB;AAAA,IACtB;AAAA,IACA,IAAI;AAAA,IACJ,eAAe;AAAA,IACf;AAAA,IACA;AAAA,IACA,OAAO;AAAA,IACP;AAAA,IACA,GAAG;AAAA,EACL,IAAI,iCAAiC,iBAAiB,OAAO,WAAW,CAAC;AACzE,QAAM,KAAK,YAAY,MAAM;AAC7B,QAAM,YAAY,uBAAuB,CAAC;AAC1C,QAAM,2BAA2B,QAAQ,MAAM;AAC7C,WAAO;AAAA,MACL,2BAA2B;AAAA,QACzB;AAAA,QACA;AAAA,MACF;AAAA,MACA,2BAA2B;AAAA,QACzB;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,EACF,GAAG,CAAC,uBAAuB,IAAI,CAAC;AAChC;AAAA;AAAA,IAGE,sBAAM,MAAM;AAAA,MACV,GAAG;AAAA,MACH,GAAG,eAAe,aAAa;AAAA,MAC/B;AAAA,MACA,KAAK;AAAA,MACL;AAAA,MACA,UAAU,CAAc,qBAAK,OAAO;AAAA,QAClC,WAAW;AAAA,QACX;AAAA,QACA;AAAA,QACA,SAAS;AAAA,QACT,UAAU;AAAA,MACZ,CAAC,GAAgB,sBAAM,WAAW;AAAA,QAChC;AAAA,QACA,WAAW;AAAA,QACX;AAAA,QACA;AAAA,QACA;AAAA,QACA,UAAU,CAAc,sBAAM,uBAAuB;AAAA,UACnD,OAAO;AAAA,UACP,UAAU,CAAC,UAAuB,qBAAK,QAAQ;AAAA,YAC7C,WAAW;AAAA,YACX,UAAU;AAAA,UACZ,CAAC,GAAG,UAAU,UAAuB,qBAAK,QAAQ;AAAA,YAChD,WAAW;AAAA,YACX,UAAU;AAAA,UACZ,CAAC,CAAC;AAAA,QACJ,CAAC,GAAgB,qBAAK,UAAU;AAAA,UAC9B;AAAA,UACA;AAAA,QACF,CAAC,CAAC;AAAA,MACJ,CAAC,CAAC;AAAA,IACJ,CAAC;AAAA;AAEL;AAMA,IAAO,qBAAQ,eAAe,WAAW,WAAW;",
6
6
  "names": []
7
7
  }
@@ -16,14 +16,13 @@ function ResponsiveWrapper({
16
16
  if (naturalWidth && naturalHeight) {
17
17
  aspectRatio = `${naturalWidth} / ${naturalHeight}`;
18
18
  }
19
- const ch = children;
20
19
  return /* @__PURE__ */ _jsx(TagName, {
21
20
  className: "components-responsive-wrapper",
22
21
  children: /* @__PURE__ */ _jsx("div", {
23
- children: cloneElement(ch, {
24
- className: clsx("components-responsive-wrapper__content", ch.props.className),
22
+ children: cloneElement(children, {
23
+ className: clsx("components-responsive-wrapper__content", children.props.className),
25
24
  style: {
26
- ...ch.props.style,
25
+ ...children.props.style,
27
26
  aspectRatio
28
27
  }
29
28
  })
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/responsive-wrapper/index.tsx"],
4
- "sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { cloneElement, Children } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * A wrapper component that maintains its aspect ratio when resized.\n *\n * ```jsx\n * import { ResponsiveWrapper } from '@wordpress/components';\n *\n * const MyResponsiveWrapper = () => (\n * \t<ResponsiveWrapper naturalWidth={ 2000 } naturalHeight={ 680 }>\n * \t\t<img\n * \t\t\tsrc=\"https://s.w.org/style/images/about/WordPress-logotype-standard.png\"\n * \t\t\talt=\"WordPress\"\n * \t\t/>\n * \t</ResponsiveWrapper>\n * );\n * ```\n */\nfunction ResponsiveWrapper({\n naturalWidth,\n naturalHeight,\n children,\n isInline = false\n}) {\n if (Children.count(children) !== 1) {\n return null;\n }\n const TagName = isInline ? 'span' : 'div';\n let aspectRatio;\n if (naturalWidth && naturalHeight) {\n aspectRatio = `${naturalWidth} / ${naturalHeight}`;\n }\n const ch = children;\n return /*#__PURE__*/_jsx(TagName, {\n className: \"components-responsive-wrapper\",\n children: /*#__PURE__*/_jsx(\"div\", {\n children: cloneElement(ch, {\n className: clsx('components-responsive-wrapper__content', ch.props.className),\n style: {\n ...ch.props.style,\n aspectRatio\n }\n })\n })\n });\n}\nexport default ResponsiveWrapper;"],
5
- "mappings": ";AAGA,OAAO,UAAU;AAKjB,SAAS,cAAc,gBAAgB;AAKvC,SAAS,OAAO,YAAY;AAiB5B,SAAS,kBAAkB;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW;AACb,GAAG;AACD,MAAI,SAAS,MAAM,QAAQ,MAAM,GAAG;AAClC,WAAO;AAAA,EACT;AACA,QAAM,UAAU,WAAW,SAAS;AACpC,MAAI;AACJ,MAAI,gBAAgB,eAAe;AACjC,kBAAc,GAAG,YAAY,MAAM,aAAa;AAAA,EAClD;AACA,QAAM,KAAK;AACX,SAAoB,qBAAK,SAAS;AAAA,IAChC,WAAW;AAAA,IACX,UAAuB,qBAAK,OAAO;AAAA,MACjC,UAAU,aAAa,IAAI;AAAA,QACzB,WAAW,KAAK,0CAA0C,GAAG,MAAM,SAAS;AAAA,QAC5E,OAAO;AAAA,UACL,GAAG,GAAG,MAAM;AAAA,UACZ;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACH,CAAC;AAAA,EACH,CAAC;AACH;AACA,IAAO,6BAAQ;",
4
+ "sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { cloneElement, Children } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * A wrapper component that maintains its aspect ratio when resized.\n *\n * ```jsx\n * import { ResponsiveWrapper } from '@wordpress/components';\n *\n * const MyResponsiveWrapper = () => (\n * \t<ResponsiveWrapper naturalWidth={ 2000 } naturalHeight={ 680 }>\n * \t\t<img\n * \t\t\tsrc=\"https://s.w.org/style/images/about/WordPress-logotype-standard.png\"\n * \t\t\talt=\"WordPress\"\n * \t\t/>\n * \t</ResponsiveWrapper>\n * );\n * ```\n */\nfunction ResponsiveWrapper({\n naturalWidth,\n naturalHeight,\n children,\n isInline = false\n}) {\n if (Children.count(children) !== 1) {\n return null;\n }\n const TagName = isInline ? 'span' : 'div';\n let aspectRatio;\n if (naturalWidth && naturalHeight) {\n aspectRatio = `${naturalWidth} / ${naturalHeight}`;\n }\n return /*#__PURE__*/_jsx(TagName, {\n className: \"components-responsive-wrapper\",\n children: /*#__PURE__*/_jsx(\"div\", {\n children: cloneElement(children, {\n className: clsx('components-responsive-wrapper__content', children.props.className),\n style: {\n ...children.props.style,\n aspectRatio\n }\n })\n })\n });\n}\nexport default ResponsiveWrapper;"],
5
+ "mappings": ";AAGA,OAAO,UAAU;AAKjB,SAAS,cAAc,gBAAgB;AAKvC,SAAS,OAAO,YAAY;AAiB5B,SAAS,kBAAkB;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW;AACb,GAAG;AACD,MAAI,SAAS,MAAM,QAAQ,MAAM,GAAG;AAClC,WAAO;AAAA,EACT;AACA,QAAM,UAAU,WAAW,SAAS;AACpC,MAAI;AACJ,MAAI,gBAAgB,eAAe;AACjC,kBAAc,GAAG,YAAY,MAAM,aAAa;AAAA,EAClD;AACA,SAAoB,qBAAK,SAAS;AAAA,IAChC,WAAW;AAAA,IACX,UAAuB,qBAAK,OAAO;AAAA,MACjC,UAAU,aAAa,UAAU;AAAA,QAC/B,WAAW,KAAK,0CAA0C,SAAS,MAAM,SAAS;AAAA,QAClF,OAAO;AAAA,UACL,GAAG,SAAS,MAAM;AAAA,UAClB;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACH,CAAC;AAAA,EACH,CAAC;AACH;AACA,IAAO,6BAAQ;",
6
6
  "names": []
7
7
  }
@@ -57,8 +57,7 @@ function UnforwardedTooltip(props, ref) {
57
57
  render: children
58
58
  }) : children;
59
59
  }
60
- function addDescribedById(el) {
61
- const element = el;
60
+ function addDescribedById(element) {
62
61
  return describedById && mounted && element.props["aria-describedby"] === void 0 && element.props["aria-label"] !== text ? cloneElement(element, {
63
62
  "aria-describedby": describedById
64
63
  }) : element;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/tooltip/index.tsx"],
4
- "sourcesContent": ["import * as Ariakit from '@ariakit/react';\nimport clsx from 'clsx';\nimport { useInstanceId } from '@wordpress/compose';\nimport { Children, useContext, forwardRef, cloneElement } from '@wordpress/element';\nimport deprecated from '@wordpress/deprecated';\nimport Shortcut from '../shortcut';\nimport { positionToPlacement } from '../popover/utils';\nimport { TooltipInternalContext } from './context';\n\n/**\n * Time over anchor to wait before showing tooltip\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const TOOLTIP_DELAY = 700;\nconst CONTEXT_VALUE = {\n isNestedInTooltip: true\n};\nfunction UnforwardedTooltip(props, ref) {\n const {\n children,\n className,\n delay = TOOLTIP_DELAY,\n hideOnClick = true,\n placement,\n position,\n shortcut,\n text,\n ...restProps\n } = props;\n const {\n isNestedInTooltip\n } = useContext(TooltipInternalContext);\n const baseId = useInstanceId(Tooltip, 'tooltip');\n const describedById = text || shortcut ? baseId : undefined;\n const isOnlyChild = Children.count(children) === 1;\n // console error if more than one child element is added\n if (!isOnlyChild) {\n if ('development' === process.env.NODE_ENV) {\n // eslint-disable-next-line no-console\n console.error('wp-components.Tooltip should be called with only a single child element.');\n }\n }\n\n // Compute tooltip's placement:\n // - give priority to `placement` prop, if defined\n // - otherwise, compute it from the legacy `position` prop (if defined)\n // - finally, fallback to the default placement: 'top'\n let computedPlacement;\n if (placement !== undefined) {\n computedPlacement = placement;\n } else if (position !== undefined) {\n computedPlacement = positionToPlacement(position);\n deprecated('`position` prop in wp.components.tooltip', {\n since: '6.4',\n alternative: '`placement` prop'\n });\n }\n computedPlacement = computedPlacement || 'top';\n const tooltipStore = Ariakit.useTooltipStore({\n placement: computedPlacement,\n showTimeout: delay\n });\n const mounted = Ariakit.useStoreState(tooltipStore, 'mounted');\n if (isNestedInTooltip) {\n return isOnlyChild ? /*#__PURE__*/_jsx(Ariakit.Role, {\n ...restProps,\n render: children\n }) : children;\n }\n\n // TODO: this is a temporary workaround to minimize the effects of the\n // Ariakit upgrade. Ariakit doesn't pass the `aria-describedby` prop to\n // the tooltip anchor anymore since 0.4.0, so we need to add it manually.\n // The `aria-describedby` attribute is added only if the anchor doesn't have\n // one already, and if the tooltip text is not the same as the anchor's\n // `aria-label`\n // See: https://github.com/WordPress/gutenberg/pull/64066\n // See: https://github.com/WordPress/gutenberg/pull/65989\n function addDescribedById(el) {\n const element = el;\n return describedById && mounted && element.props['aria-describedby'] === undefined && element.props['aria-label'] !== text ? cloneElement(element, {\n 'aria-describedby': describedById\n }) : element;\n }\n return /*#__PURE__*/_jsxs(TooltipInternalContext.Provider, {\n value: CONTEXT_VALUE,\n children: [/*#__PURE__*/_jsx(Ariakit.TooltipAnchor, {\n onClick: hideOnClick ? tooltipStore.hide : undefined,\n store: tooltipStore,\n render: isOnlyChild ? addDescribedById(children) : undefined,\n ref: ref,\n children: isOnlyChild ? undefined : children\n }), isOnlyChild && (text || shortcut) && /*#__PURE__*/_jsxs(Ariakit.Tooltip, {\n ...restProps,\n className: clsx('components-tooltip', className),\n unmountOnHide: true,\n gutter: 4,\n id: describedById,\n overflowPadding: 0.5,\n store: tooltipStore,\n children: [text, shortcut && /*#__PURE__*/_jsx(Shortcut, {\n className: text ? 'components-tooltip__shortcut' : '',\n shortcut: shortcut\n })]\n })]\n });\n}\nexport const Tooltip = forwardRef(UnforwardedTooltip);\nexport default Tooltip;"],
5
- "mappings": ";AAAA,YAAY,aAAa;AACzB,OAAO,UAAU;AACjB,SAAS,qBAAqB;AAC9B,SAAS,UAAU,YAAY,YAAY,oBAAoB;AAC/D,OAAO,gBAAgB;AACvB,OAAO,cAAc;AACrB,SAAS,2BAA2B;AACpC,SAAS,8BAA8B;AAKvC,SAAS,OAAO,MAAM,QAAQ,aAAa;AACpC,IAAM,gBAAgB;AAC7B,IAAM,gBAAgB;AAAA,EACpB,mBAAmB;AACrB;AACA,SAAS,mBAAmB,OAAO,KAAK;AACtC,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,IACR,cAAc;AAAA,IACd;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,IAAI;AACJ,QAAM;AAAA,IACJ;AAAA,EACF,IAAI,WAAW,sBAAsB;AACrC,QAAM,SAAS,cAAcA,UAAS,SAAS;AAC/C,QAAM,gBAAgB,QAAQ,WAAW,SAAS;AAClD,QAAM,cAAc,SAAS,MAAM,QAAQ,MAAM;AAEjD,MAAI,CAAC,aAAa;AAChB,QAAI,kBAAkB,QAAQ,IAAI,UAAU;AAE1C,cAAQ,MAAM,0EAA0E;AAAA,IAC1F;AAAA,EACF;AAMA,MAAI;AACJ,MAAI,cAAc,QAAW;AAC3B,wBAAoB;AAAA,EACtB,WAAW,aAAa,QAAW;AACjC,wBAAoB,oBAAoB,QAAQ;AAChD,eAAW,4CAA4C;AAAA,MACrD,OAAO;AAAA,MACP,aAAa;AAAA,IACf,CAAC;AAAA,EACH;AACA,sBAAoB,qBAAqB;AACzC,QAAM,eAAuB,wBAAgB;AAAA,IAC3C,WAAW;AAAA,IACX,aAAa;AAAA,EACf,CAAC;AACD,QAAM,UAAkB,sBAAc,cAAc,SAAS;AAC7D,MAAI,mBAAmB;AACrB,WAAO,cAA2B,qBAAa,cAAM;AAAA,MACnD,GAAG;AAAA,MACH,QAAQ;AAAA,IACV,CAAC,IAAI;AAAA,EACP;AAUA,WAAS,iBAAiB,IAAI;AAC5B,UAAM,UAAU;AAChB,WAAO,iBAAiB,WAAW,QAAQ,MAAM,kBAAkB,MAAM,UAAa,QAAQ,MAAM,YAAY,MAAM,OAAO,aAAa,SAAS;AAAA,MACjJ,oBAAoB;AAAA,IACtB,CAAC,IAAI;AAAA,EACP;AACA,SAAoB,sBAAM,uBAAuB,UAAU;AAAA,IACzD,OAAO;AAAA,IACP,UAAU,CAAc,qBAAa,uBAAe;AAAA,MAClD,SAAS,cAAc,aAAa,OAAO;AAAA,MAC3C,OAAO;AAAA,MACP,QAAQ,cAAc,iBAAiB,QAAQ,IAAI;AAAA,MACnD;AAAA,MACA,UAAU,cAAc,SAAY;AAAA,IACtC,CAAC,GAAG,gBAAgB,QAAQ,aAA0B,sBAAc,iBAAS;AAAA,MAC3E,GAAG;AAAA,MACH,WAAW,KAAK,sBAAsB,SAAS;AAAA,MAC/C,eAAe;AAAA,MACf,QAAQ;AAAA,MACR,IAAI;AAAA,MACJ,iBAAiB;AAAA,MACjB,OAAO;AAAA,MACP,UAAU,CAAC,MAAM,YAAyB,qBAAK,UAAU;AAAA,QACvD,WAAW,OAAO,iCAAiC;AAAA,QACnD;AAAA,MACF,CAAC,CAAC;AAAA,IACJ,CAAC,CAAC;AAAA,EACJ,CAAC;AACH;AACO,IAAMA,WAAU,WAAW,kBAAkB;AACpD,IAAO,kBAAQA;",
4
+ "sourcesContent": ["import * as Ariakit from '@ariakit/react';\nimport clsx from 'clsx';\nimport { useInstanceId } from '@wordpress/compose';\nimport { Children, useContext, forwardRef, cloneElement } from '@wordpress/element';\nimport deprecated from '@wordpress/deprecated';\nimport Shortcut from '../shortcut';\nimport { positionToPlacement } from '../popover/utils';\nimport { TooltipInternalContext } from './context';\n\n/**\n * Time over anchor to wait before showing tooltip\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const TOOLTIP_DELAY = 700;\nconst CONTEXT_VALUE = {\n isNestedInTooltip: true\n};\nfunction UnforwardedTooltip(props, ref) {\n const {\n children,\n className,\n delay = TOOLTIP_DELAY,\n hideOnClick = true,\n placement,\n position,\n shortcut,\n text,\n ...restProps\n } = props;\n const {\n isNestedInTooltip\n } = useContext(TooltipInternalContext);\n const baseId = useInstanceId(Tooltip, 'tooltip');\n const describedById = text || shortcut ? baseId : undefined;\n const isOnlyChild = Children.count(children) === 1;\n // console error if more than one child element is added\n if (!isOnlyChild) {\n if ('development' === process.env.NODE_ENV) {\n // eslint-disable-next-line no-console\n console.error('wp-components.Tooltip should be called with only a single child element.');\n }\n }\n\n // Compute tooltip's placement:\n // - give priority to `placement` prop, if defined\n // - otherwise, compute it from the legacy `position` prop (if defined)\n // - finally, fallback to the default placement: 'top'\n let computedPlacement;\n if (placement !== undefined) {\n computedPlacement = placement;\n } else if (position !== undefined) {\n computedPlacement = positionToPlacement(position);\n deprecated('`position` prop in wp.components.tooltip', {\n since: '6.4',\n alternative: '`placement` prop'\n });\n }\n computedPlacement = computedPlacement || 'top';\n const tooltipStore = Ariakit.useTooltipStore({\n placement: computedPlacement,\n showTimeout: delay\n });\n const mounted = Ariakit.useStoreState(tooltipStore, 'mounted');\n if (isNestedInTooltip) {\n return isOnlyChild ? /*#__PURE__*/_jsx(Ariakit.Role, {\n ...restProps,\n render: children\n }) : children;\n }\n\n // TODO: this is a temporary workaround to minimize the effects of the\n // Ariakit upgrade. Ariakit doesn't pass the `aria-describedby` prop to\n // the tooltip anchor anymore since 0.4.0, so we need to add it manually.\n // The `aria-describedby` attribute is added only if the anchor doesn't have\n // one already, and if the tooltip text is not the same as the anchor's\n // `aria-label`\n // See: https://github.com/WordPress/gutenberg/pull/64066\n // See: https://github.com/WordPress/gutenberg/pull/65989\n function addDescribedById(element) {\n return describedById && mounted && element.props['aria-describedby'] === undefined && element.props['aria-label'] !== text ? cloneElement(element, {\n 'aria-describedby': describedById\n }) : element;\n }\n return /*#__PURE__*/_jsxs(TooltipInternalContext.Provider, {\n value: CONTEXT_VALUE,\n children: [/*#__PURE__*/_jsx(Ariakit.TooltipAnchor, {\n onClick: hideOnClick ? tooltipStore.hide : undefined,\n store: tooltipStore,\n render: isOnlyChild ? addDescribedById(children) : undefined,\n ref: ref,\n children: isOnlyChild ? undefined : children\n }), isOnlyChild && (text || shortcut) && /*#__PURE__*/_jsxs(Ariakit.Tooltip, {\n ...restProps,\n className: clsx('components-tooltip', className),\n unmountOnHide: true,\n gutter: 4,\n id: describedById,\n overflowPadding: 0.5,\n store: tooltipStore,\n children: [text, shortcut && /*#__PURE__*/_jsx(Shortcut, {\n className: text ? 'components-tooltip__shortcut' : '',\n shortcut: shortcut\n })]\n })]\n });\n}\nexport const Tooltip = forwardRef(UnforwardedTooltip);\nexport default Tooltip;"],
5
+ "mappings": ";AAAA,YAAY,aAAa;AACzB,OAAO,UAAU;AACjB,SAAS,qBAAqB;AAC9B,SAAS,UAAU,YAAY,YAAY,oBAAoB;AAC/D,OAAO,gBAAgB;AACvB,OAAO,cAAc;AACrB,SAAS,2BAA2B;AACpC,SAAS,8BAA8B;AAKvC,SAAS,OAAO,MAAM,QAAQ,aAAa;AACpC,IAAM,gBAAgB;AAC7B,IAAM,gBAAgB;AAAA,EACpB,mBAAmB;AACrB;AACA,SAAS,mBAAmB,OAAO,KAAK;AACtC,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,IACR,cAAc;AAAA,IACd;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,IAAI;AACJ,QAAM;AAAA,IACJ;AAAA,EACF,IAAI,WAAW,sBAAsB;AACrC,QAAM,SAAS,cAAcA,UAAS,SAAS;AAC/C,QAAM,gBAAgB,QAAQ,WAAW,SAAS;AAClD,QAAM,cAAc,SAAS,MAAM,QAAQ,MAAM;AAEjD,MAAI,CAAC,aAAa;AAChB,QAAI,kBAAkB,QAAQ,IAAI,UAAU;AAE1C,cAAQ,MAAM,0EAA0E;AAAA,IAC1F;AAAA,EACF;AAMA,MAAI;AACJ,MAAI,cAAc,QAAW;AAC3B,wBAAoB;AAAA,EACtB,WAAW,aAAa,QAAW;AACjC,wBAAoB,oBAAoB,QAAQ;AAChD,eAAW,4CAA4C;AAAA,MACrD,OAAO;AAAA,MACP,aAAa;AAAA,IACf,CAAC;AAAA,EACH;AACA,sBAAoB,qBAAqB;AACzC,QAAM,eAAuB,wBAAgB;AAAA,IAC3C,WAAW;AAAA,IACX,aAAa;AAAA,EACf,CAAC;AACD,QAAM,UAAkB,sBAAc,cAAc,SAAS;AAC7D,MAAI,mBAAmB;AACrB,WAAO,cAA2B,qBAAa,cAAM;AAAA,MACnD,GAAG;AAAA,MACH,QAAQ;AAAA,IACV,CAAC,IAAI;AAAA,EACP;AAUA,WAAS,iBAAiB,SAAS;AACjC,WAAO,iBAAiB,WAAW,QAAQ,MAAM,kBAAkB,MAAM,UAAa,QAAQ,MAAM,YAAY,MAAM,OAAO,aAAa,SAAS;AAAA,MACjJ,oBAAoB;AAAA,IACtB,CAAC,IAAI;AAAA,EACP;AACA,SAAoB,sBAAM,uBAAuB,UAAU;AAAA,IACzD,OAAO;AAAA,IACP,UAAU,CAAc,qBAAa,uBAAe;AAAA,MAClD,SAAS,cAAc,aAAa,OAAO;AAAA,MAC3C,OAAO;AAAA,MACP,QAAQ,cAAc,iBAAiB,QAAQ,IAAI;AAAA,MACnD;AAAA,MACA,UAAU,cAAc,SAAY;AAAA,IACtC,CAAC,GAAG,gBAAgB,QAAQ,aAA0B,sBAAc,iBAAS;AAAA,MAC3E,GAAG;AAAA,MACH,WAAW,KAAK,sBAAsB,SAAS;AAAA,MAC/C,eAAe;AAAA,MACf,QAAQ;AAAA,MACR,IAAI;AAAA,MACJ,iBAAiB;AAAA,MACjB,OAAO;AAAA,MACP,UAAU,CAAC,MAAM,YAAyB,qBAAK,UAAU;AAAA,QACvD,WAAW,OAAO,iCAAiC;AAAA,QACnD;AAAA,MACF,CAAC,CAAC;AAAA,IACJ,CAAC,CAAC;AAAA,EACJ,CAAC;AACH;AACO,IAAMA,WAAU,WAAW,kBAAkB;AACpD,IAAO,kBAAQA;",
6
6
  "names": ["Tooltip"]
7
7
  }
@@ -22,17 +22,17 @@ export declare function useBorderBoxControl(props: WordPressComponentProps<Borde
22
22
  onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
23
23
  onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
24
24
  onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
25
- onChangeCapture?: import("react").ChangeEventHandler<HTMLDivElement, Element> | undefined;
25
+ onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
26
26
  onBeforeInput?: import("react").InputEventHandler<HTMLDivElement> | undefined;
27
- onBeforeInputCapture?: import("react").InputEventHandler<HTMLDivElement> | undefined;
28
- onInput?: import("react").InputEventHandler<HTMLDivElement> | undefined;
29
- onInputCapture?: import("react").InputEventHandler<HTMLDivElement> | undefined;
30
- onReset?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
31
- onResetCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
32
- onSubmit?: import("react").SubmitEventHandler<HTMLDivElement> | undefined;
33
- onSubmitCapture?: import("react").SubmitEventHandler<HTMLDivElement> | undefined;
34
- onInvalid?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
35
- onInvalidCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
27
+ onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
28
+ onInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
29
+ onInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
30
+ onReset?: import("react").FormEventHandler<HTMLDivElement> | undefined;
31
+ onResetCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
32
+ onSubmit?: import("react").FormEventHandler<HTMLDivElement> | undefined;
33
+ onSubmitCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
34
+ onInvalid?: import("react").FormEventHandler<HTMLDivElement> | undefined;
35
+ onInvalidCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
36
36
  onLoad?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
37
37
  onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
38
38
  onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
@@ -153,8 +153,6 @@ export declare function useBorderBoxControl(props: WordPressComponentProps<Borde
153
153
  onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
154
154
  onScroll?: import("react").UIEventHandler<HTMLDivElement> | undefined;
155
155
  onScrollCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
156
- onScrollEnd?: import("react").UIEventHandler<HTMLDivElement> | undefined;
157
- onScrollEndCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
158
156
  onWheel?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
159
157
  onWheelCapture?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
160
158
  onAnimationStart?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
@@ -163,16 +161,8 @@ export declare function useBorderBoxControl(props: WordPressComponentProps<Borde
163
161
  onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
164
162
  onAnimationIteration?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
165
163
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
166
- onToggle?: import("react").ToggleEventHandler<HTMLDivElement> | undefined;
167
- onBeforeToggle?: import("react").ToggleEventHandler<HTMLDivElement> | undefined;
168
- onTransitionCancel?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
169
- onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
170
164
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
171
165
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
172
- onTransitionRun?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
173
- onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
174
- onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
175
- onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
176
166
  "aria-activedescendant"?: string | undefined;
177
167
  "aria-atomic"?: ("false" | "true" | boolean) | undefined;
178
168
  "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
@@ -272,10 +262,6 @@ export declare function useBorderBoxControl(props: WordPressComponentProps<Borde
272
262
  results?: number | undefined;
273
263
  security?: string | undefined;
274
264
  unselectable?: "on" | "off" | undefined;
275
- popover?: "" | "auto" | "manual" | "hint" | undefined;
276
- popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
277
- popoverTarget?: string | undefined;
278
- inert?: boolean | undefined;
279
265
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
280
266
  is?: string | undefined;
281
267
  exportparts?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/border-box-control/border-box-control/hook.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAK7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAE3E,wBAAgB,mBAAmB,CAClC,KAAK,EAAE,uBAAuB,CAAE,qBAAqB,EAAE,KAAK,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAyCzB,MAAM;+BAuC/B,MAAM,GAAG,SAAS,QACvB,UAAU;;;;;;;EA2CjB"}
1
+ {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/border-box-control/border-box-control/hook.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAK7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAE3E,wBAAgB,mBAAmB,CAClC,KAAK,EAAE,uBAAuB,CAAE,qBAAqB,EAAE,KAAK,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAyCzB,MAAM;+BAuC/B,MAAM,GAAG,SAAS,QACvB,UAAU;;;;;;;EA2CjB"}
@@ -21,18 +21,18 @@ export declare function useBorderBoxControlLinkedButton(props: WordPressComponen
21
21
  onFocusCapture?: import("react").FocusEventHandler<HTMLButtonElement> | undefined;
22
22
  onBlur?: import("react").FocusEventHandler<HTMLButtonElement> | undefined;
23
23
  onBlurCapture?: import("react").FocusEventHandler<HTMLButtonElement> | undefined;
24
- onChange?: import("react").ChangeEventHandler<HTMLButtonElement, Element> | undefined;
25
- onChangeCapture?: import("react").ChangeEventHandler<HTMLButtonElement, Element> | undefined;
24
+ onChange?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
25
+ onChangeCapture?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
26
26
  onBeforeInput?: import("react").InputEventHandler<HTMLButtonElement> | undefined;
27
- onBeforeInputCapture?: import("react").InputEventHandler<HTMLButtonElement> | undefined;
28
- onInput?: import("react").InputEventHandler<HTMLButtonElement> | undefined;
29
- onInputCapture?: import("react").InputEventHandler<HTMLButtonElement> | undefined;
30
- onReset?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
31
- onResetCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
32
- onSubmit?: import("react").SubmitEventHandler<HTMLButtonElement> | undefined;
33
- onSubmitCapture?: import("react").SubmitEventHandler<HTMLButtonElement> | undefined;
34
- onInvalid?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
35
- onInvalidCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
27
+ onBeforeInputCapture?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
28
+ onInput?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
29
+ onInputCapture?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
30
+ onReset?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
31
+ onResetCapture?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
32
+ onSubmit?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
33
+ onSubmitCapture?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
34
+ onInvalid?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
35
+ onInvalidCapture?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
36
36
  onLoad?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
37
37
  onLoadCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
38
38
  onError?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
@@ -152,8 +152,6 @@ export declare function useBorderBoxControlLinkedButton(props: WordPressComponen
152
152
  onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
153
153
  onScroll?: import("react").UIEventHandler<HTMLButtonElement> | undefined;
154
154
  onScrollCapture?: import("react").UIEventHandler<HTMLButtonElement> | undefined;
155
- onScrollEnd?: import("react").UIEventHandler<HTMLButtonElement> | undefined;
156
- onScrollEndCapture?: import("react").UIEventHandler<HTMLButtonElement> | undefined;
157
155
  onWheel?: import("react").WheelEventHandler<HTMLButtonElement> | undefined;
158
156
  onWheelCapture?: import("react").WheelEventHandler<HTMLButtonElement> | undefined;
159
157
  onAnimationStart?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
@@ -162,16 +160,8 @@ export declare function useBorderBoxControlLinkedButton(props: WordPressComponen
162
160
  onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
163
161
  onAnimationIteration?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
164
162
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
165
- onToggle?: import("react").ToggleEventHandler<HTMLButtonElement> | undefined;
166
- onBeforeToggle?: import("react").ToggleEventHandler<HTMLButtonElement> | undefined;
167
- onTransitionCancel?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
168
- onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
169
163
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
170
164
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
171
- onTransitionRun?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
172
- onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
173
- onTransitionStart?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
174
- onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
175
165
  "aria-activedescendant"?: string | undefined;
176
166
  "aria-atomic"?: ("false" | "true" | boolean) | undefined;
177
167
  "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
@@ -271,17 +261,13 @@ export declare function useBorderBoxControlLinkedButton(props: WordPressComponen
271
261
  results?: number | undefined;
272
262
  security?: string | undefined;
273
263
  unselectable?: "on" | "off" | undefined;
274
- popover?: "" | "auto" | "manual" | "hint" | undefined;
275
- popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
276
- popoverTarget?: string | undefined;
277
- inert?: boolean | undefined;
278
264
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
279
265
  is?: string | undefined;
280
266
  exportparts?: string | undefined;
281
267
  part?: string | undefined;
282
268
  disabled?: boolean | undefined;
283
269
  form?: string | undefined;
284
- formAction?: string | ((formData: FormData) => void | Promise<void>) | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
270
+ formAction?: string | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
285
271
  formEncType?: string | undefined;
286
272
  formMethod?: string | undefined;
287
273
  formNoValidate?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/border-box-control/border-box-control-linked-button/hook.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAI7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,wBAAgB,+BAA+B,CAC9C,KAAK,EAAE,uBAAuB,CAAE,iBAAiB,EAAE,QAAQ,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe7D"}
1
+ {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/border-box-control/border-box-control-linked-button/hook.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAI7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,wBAAgB,+BAA+B,CAC9C,KAAK,EAAE,uBAAuB,CAAE,iBAAiB,EAAE,QAAQ,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe7D"}
@@ -21,17 +21,17 @@ export declare function useBorderBoxControlSplitControls(props: WordPressCompone
21
21
  onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
22
22
  onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
23
23
  onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
24
- onChangeCapture?: import("react").ChangeEventHandler<HTMLDivElement, Element> | undefined;
24
+ onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
25
25
  onBeforeInput?: import("react").InputEventHandler<HTMLDivElement> | undefined;
26
- onBeforeInputCapture?: import("react").InputEventHandler<HTMLDivElement> | undefined;
27
- onInput?: import("react").InputEventHandler<HTMLDivElement> | undefined;
28
- onInputCapture?: import("react").InputEventHandler<HTMLDivElement> | undefined;
29
- onReset?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
30
- onResetCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
31
- onSubmit?: import("react").SubmitEventHandler<HTMLDivElement> | undefined;
32
- onSubmitCapture?: import("react").SubmitEventHandler<HTMLDivElement> | undefined;
33
- onInvalid?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
34
- onInvalidCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
26
+ onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
27
+ onInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
28
+ onInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
29
+ onReset?: import("react").FormEventHandler<HTMLDivElement> | undefined;
30
+ onResetCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
31
+ onSubmit?: import("react").FormEventHandler<HTMLDivElement> | undefined;
32
+ onSubmitCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
33
+ onInvalid?: import("react").FormEventHandler<HTMLDivElement> | undefined;
34
+ onInvalidCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
35
35
  onLoad?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
36
36
  onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
37
37
  onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
@@ -152,8 +152,6 @@ export declare function useBorderBoxControlSplitControls(props: WordPressCompone
152
152
  onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
153
153
  onScroll?: import("react").UIEventHandler<HTMLDivElement> | undefined;
154
154
  onScrollCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
155
- onScrollEnd?: import("react").UIEventHandler<HTMLDivElement> | undefined;
156
- onScrollEndCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
157
155
  onWheel?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
158
156
  onWheelCapture?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
159
157
  onAnimationStart?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
@@ -162,16 +160,8 @@ export declare function useBorderBoxControlSplitControls(props: WordPressCompone
162
160
  onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
163
161
  onAnimationIteration?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
164
162
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
165
- onToggle?: import("react").ToggleEventHandler<HTMLDivElement> | undefined;
166
- onBeforeToggle?: import("react").ToggleEventHandler<HTMLDivElement> | undefined;
167
- onTransitionCancel?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
168
- onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
169
163
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
170
164
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
171
- onTransitionRun?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
172
- onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
173
- onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
174
- onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
175
165
  "aria-activedescendant"?: string | undefined;
176
166
  "aria-atomic"?: ("false" | "true" | boolean) | undefined;
177
167
  "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
@@ -271,10 +261,6 @@ export declare function useBorderBoxControlSplitControls(props: WordPressCompone
271
261
  results?: number | undefined;
272
262
  security?: string | undefined;
273
263
  unselectable?: "on" | "off" | undefined;
274
- popover?: "" | "auto" | "manual" | "hint" | undefined;
275
- popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
276
- popoverTarget?: string | undefined;
277
- inert?: boolean | undefined;
278
264
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
279
265
  is?: string | undefined;
280
266
  exportparts?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/border-box-control/border-box-control-split-controls/hook.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAI7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,wBAAgB,gCAAgC,CAC/C,KAAK,EAAE,uBAAuB,CAAE,kBAAkB,EAAE,KAAK,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqC3D"}
1
+ {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/border-box-control/border-box-control-split-controls/hook.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAI7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,wBAAgB,gCAAgC,CAC/C,KAAK,EAAE,uBAAuB,CAAE,kBAAkB,EAAE,KAAK,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqC3D"}
@@ -21,18 +21,18 @@ export declare function useBorderBoxControlVisualizer(props: WordPressComponentP
21
21
  onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
22
22
  onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
23
23
  onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
24
- onChange?: import("react").ChangeEventHandler<HTMLDivElement, Element> | undefined;
25
- onChangeCapture?: import("react").ChangeEventHandler<HTMLDivElement, Element> | undefined;
24
+ onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
25
+ onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
26
26
  onBeforeInput?: import("react").InputEventHandler<HTMLDivElement> | undefined;
27
- onBeforeInputCapture?: import("react").InputEventHandler<HTMLDivElement> | undefined;
28
- onInput?: import("react").InputEventHandler<HTMLDivElement> | undefined;
29
- onInputCapture?: import("react").InputEventHandler<HTMLDivElement> | undefined;
30
- onReset?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
31
- onResetCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
32
- onSubmit?: import("react").SubmitEventHandler<HTMLDivElement> | undefined;
33
- onSubmitCapture?: import("react").SubmitEventHandler<HTMLDivElement> | undefined;
34
- onInvalid?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
35
- onInvalidCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
27
+ onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
28
+ onInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
29
+ onInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
30
+ onReset?: import("react").FormEventHandler<HTMLDivElement> | undefined;
31
+ onResetCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
32
+ onSubmit?: import("react").FormEventHandler<HTMLDivElement> | undefined;
33
+ onSubmitCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
34
+ onInvalid?: import("react").FormEventHandler<HTMLDivElement> | undefined;
35
+ onInvalidCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
36
36
  onLoad?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
37
37
  onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
38
38
  onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
@@ -153,8 +153,6 @@ export declare function useBorderBoxControlVisualizer(props: WordPressComponentP
153
153
  onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
154
154
  onScroll?: import("react").UIEventHandler<HTMLDivElement> | undefined;
155
155
  onScrollCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
156
- onScrollEnd?: import("react").UIEventHandler<HTMLDivElement> | undefined;
157
- onScrollEndCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
158
156
  onWheel?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
159
157
  onWheelCapture?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
160
158
  onAnimationStart?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
@@ -163,16 +161,8 @@ export declare function useBorderBoxControlVisualizer(props: WordPressComponentP
163
161
  onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
164
162
  onAnimationIteration?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
165
163
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
166
- onToggle?: import("react").ToggleEventHandler<HTMLDivElement> | undefined;
167
- onBeforeToggle?: import("react").ToggleEventHandler<HTMLDivElement> | undefined;
168
- onTransitionCancel?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
169
- onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
170
164
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
171
165
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
172
- onTransitionRun?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
173
- onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
174
- onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
175
- onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
176
166
  "aria-activedescendant"?: string | undefined;
177
167
  "aria-atomic"?: ("false" | "true" | boolean) | undefined;
178
168
  "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
@@ -272,10 +262,6 @@ export declare function useBorderBoxControlVisualizer(props: WordPressComponentP
272
262
  results?: number | undefined;
273
263
  security?: string | undefined;
274
264
  unselectable?: "on" | "off" | undefined;
275
- popover?: "" | "auto" | "manual" | "hint" | undefined;
276
- popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
277
- popoverTarget?: string | undefined;
278
- inert?: boolean | undefined;
279
265
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
280
266
  is?: string | undefined;
281
267
  exportparts?: string | undefined;