@wordpress/components 35.1.1-next.v.202606191442.0 → 36.0.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 (113) hide show
  1. package/CHANGELOG.md +12 -1
  2. package/CONTRIBUTING.md +33 -26
  3. package/build/box-control/{input-control.cjs → box-input-control.cjs} +9 -9
  4. package/build/box-control/box-input-control.cjs.map +7 -0
  5. package/build/box-control/index.cjs +9 -25
  6. package/build/box-control/index.cjs.map +3 -3
  7. package/build/disabled/index.cjs.map +2 -2
  8. package/build/divider/component.cjs +108 -3
  9. package/build/divider/component.cjs.map +4 -4
  10. package/build/higher-order/with-fallback-styles/index.cjs +18 -44
  11. package/build/higher-order/with-fallback-styles/index.cjs.map +2 -2
  12. package/build/text-control/index.cjs +3 -12
  13. package/build/text-control/index.cjs.map +3 -3
  14. package/build/validated-form-controls/components/text-control.cjs +0 -1
  15. package/build/validated-form-controls/components/text-control.cjs.map +2 -2
  16. package/build-module/box-control/{input-control.mjs → box-input-control.mjs} +6 -6
  17. package/build-module/box-control/box-input-control.mjs.map +7 -0
  18. package/build-module/box-control/index.mjs +9 -25
  19. package/build-module/box-control/index.mjs.map +2 -2
  20. package/build-module/disabled/index.mjs.map +2 -2
  21. package/build-module/divider/component.mjs +108 -3
  22. package/build-module/divider/component.mjs.map +3 -3
  23. package/build-module/higher-order/with-fallback-styles/index.mjs +20 -46
  24. package/build-module/higher-order/with-fallback-styles/index.mjs.map +2 -2
  25. package/build-module/text-control/index.mjs +3 -12
  26. package/build-module/text-control/index.mjs.map +2 -2
  27. package/build-module/validated-form-controls/components/text-control.mjs +0 -1
  28. package/build-module/validated-form-controls/components/text-control.mjs.map +2 -2
  29. package/build-style/style-rtl.css +3 -19
  30. package/build-style/style.css +3 -19
  31. package/build-types/box-control/box-input-control.d.ts +3 -0
  32. package/build-types/box-control/box-input-control.d.ts.map +1 -0
  33. package/build-types/box-control/index.d.ts +2 -6
  34. package/build-types/box-control/index.d.ts.map +1 -1
  35. package/build-types/box-control/stories/index.story.d.ts.map +1 -1
  36. package/build-types/box-control/types.d.ts +7 -6
  37. package/build-types/box-control/types.d.ts.map +1 -1
  38. package/build-types/disabled/index.d.ts +0 -1
  39. package/build-types/disabled/index.d.ts.map +1 -1
  40. package/build-types/disabled/stories/index.story.d.ts.map +1 -1
  41. package/build-types/divider/component.d.ts.map +1 -1
  42. package/build-types/higher-order/with-fallback-styles/index.d.ts +1 -35
  43. package/build-types/higher-order/with-fallback-styles/index.d.ts.map +1 -1
  44. package/build-types/higher-order/with-fallback-styles/test/index.d.ts +2 -0
  45. package/build-types/higher-order/with-fallback-styles/test/index.d.ts.map +1 -0
  46. package/build-types/icon/stories/index.story.d.ts +0 -1
  47. package/build-types/icon/stories/index.story.d.ts.map +1 -1
  48. package/build-types/placeholder/stories/index.story.d.ts.map +1 -1
  49. package/build-types/resizable-box/index.d.ts +0 -2
  50. package/build-types/resizable-box/index.d.ts.map +1 -1
  51. package/build-types/resizable-box/stories/index.story.d.ts +0 -2
  52. package/build-types/resizable-box/stories/index.story.d.ts.map +1 -1
  53. package/build-types/text-control/index.d.ts +0 -1
  54. package/build-types/text-control/index.d.ts.map +1 -1
  55. package/build-types/text-control/stories/index.story.d.ts.map +1 -1
  56. package/build-types/text-control/types.d.ts +2 -1
  57. package/build-types/text-control/types.d.ts.map +1 -1
  58. package/build-types/validated-form-controls/components/text-control.d.ts +2 -2
  59. package/build-types/validated-form-controls/components/text-control.d.ts.map +1 -1
  60. package/package.json +23 -23
  61. package/src/box-control/README.md +1 -13
  62. package/src/box-control/{input-control.tsx → box-input-control.tsx} +4 -4
  63. package/src/box-control/index.tsx +5 -23
  64. package/src/box-control/stories/index.story.tsx +1 -3
  65. package/src/box-control/test/index.tsx +15 -2
  66. package/src/box-control/types.ts +7 -6
  67. package/src/card/test/__snapshots__/index.tsx.snap +4 -6
  68. package/src/checkbox-control/test/__snapshots__/index.tsx.snap +4 -3
  69. package/src/custom-select-control/test/index.tsx +1 -1
  70. package/src/disabled/README.md +0 -1
  71. package/src/disabled/index.tsx +0 -1
  72. package/src/disabled/stories/index.story.tsx +0 -1
  73. package/src/divider/component.tsx +27 -3
  74. package/src/divider/style.module.scss +21 -0
  75. package/src/divider/test/index.tsx +21 -11
  76. package/src/higher-order/with-constrained-tabbing/README.md +0 -2
  77. package/src/higher-order/with-fallback-styles/index.tsx +31 -61
  78. package/src/higher-order/with-fallback-styles/test/index.tsx +47 -0
  79. package/src/higher-order/with-focus-return/README.md +0 -2
  80. package/src/icon/stories/index.story.tsx +0 -15
  81. package/src/menu/test/index.tsx +0 -16
  82. package/src/menu-item/test/__snapshots__/index.js.snap +2 -0
  83. package/src/modal/test/index.tsx +0 -24
  84. package/src/navigable-container/test/navigable-menu.tsx +0 -16
  85. package/src/navigable-container/test/tababble-container.tsx +0 -16
  86. package/src/navigator/test/index.tsx +0 -24
  87. package/src/notice/test/__snapshots__/index.tsx.snap +1 -0
  88. package/src/placeholder/stories/index.story.tsx +0 -1
  89. package/src/resizable-box/index.tsx +1 -2
  90. package/src/tab-panel/test/index.tsx +0 -17
  91. package/src/tabs/test/index.tsx +0 -17
  92. package/src/text-control/README.md +0 -9
  93. package/src/text-control/index.tsx +3 -14
  94. package/src/text-control/stories/index.story.tsx +0 -2
  95. package/src/text-control/style.scss +7 -11
  96. package/src/text-control/test/text-control.tsx +1 -5
  97. package/src/text-control/types.ts +2 -1
  98. package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +4 -0
  99. package/src/tools-panel/tools-panel/README.md +0 -2
  100. package/src/tree-grid/test/index.tsx +0 -23
  101. package/src/validated-form-controls/components/text-control.tsx +2 -10
  102. package/build/box-control/input-control.cjs.map +0 -7
  103. package/build/divider/styles.cjs +0 -98
  104. package/build/divider/styles.cjs.map +0 -7
  105. package/build-module/box-control/input-control.mjs.map +0 -7
  106. package/build-module/divider/styles.mjs +0 -63
  107. package/build-module/divider/styles.mjs.map +0 -7
  108. package/build-types/box-control/input-control.d.ts +0 -3
  109. package/build-types/box-control/input-control.d.ts.map +0 -1
  110. package/build-types/divider/styles.d.ts +0 -10
  111. package/build-types/divider/styles.d.ts.map +0 -1
  112. package/src/divider/styles.ts +0 -81
  113. package/src/divider/test/__snapshots__/index.tsx.snap +0 -71
@@ -1,15 +1,13 @@
1
1
  // packages/components/src/text-control/index.tsx
2
- import clsx from "clsx";
3
2
  import { useInstanceId } from "@wordpress/compose";
4
3
  import { forwardRef } from "@wordpress/element";
5
4
  import BaseControl from "../base-control/index.mjs";
6
- import { maybeWarnDeprecated36pxSize } from "../utils/deprecated-36px-size.mjs";
7
5
  import { jsx as _jsx } from "react/jsx-runtime";
8
6
  function UnforwardedTextControl(props, ref) {
9
7
  const {
10
- // Prevent passing this to `input`.
8
+ // Prevent passing legacy props to `input`.
11
9
  __nextHasNoMarginBottom: _,
12
- __next40pxDefaultSize = false,
10
+ __next40pxDefaultSize: __,
13
11
  label,
14
12
  hideLabelFromVision,
15
13
  value,
@@ -22,11 +20,6 @@ function UnforwardedTextControl(props, ref) {
22
20
  } = props;
23
21
  const id = useInstanceId(TextControl, "inspector-text-control", idProp);
24
22
  const onChangeValue = (event) => onChange(event.target.value);
25
- maybeWarnDeprecated36pxSize({
26
- componentName: "TextControl",
27
- size: void 0,
28
- __next40pxDefaultSize
29
- });
30
23
  return /* @__PURE__ */ _jsx(BaseControl, {
31
24
  label,
32
25
  hideLabelFromVision,
@@ -34,9 +27,7 @@ function UnforwardedTextControl(props, ref) {
34
27
  help,
35
28
  className,
36
29
  children: /* @__PURE__ */ _jsx("input", {
37
- className: clsx("components-text-control__input", {
38
- "is-next-40px-default-size": __next40pxDefaultSize
39
- }),
30
+ className: "components-text-control__input",
40
31
  type,
41
32
  id,
42
33
  value,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/text-control/index.tsx"],
4
- "sourcesContent": ["/**\n * External dependencies\n */\n\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { useInstanceId } from '@wordpress/compose';\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport BaseControl from '../base-control';\nimport { maybeWarnDeprecated36pxSize } from '../utils/deprecated-36px-size';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction UnforwardedTextControl(props, ref) {\n const {\n // Prevent passing this to `input`.\n __nextHasNoMarginBottom: _,\n __next40pxDefaultSize = false,\n label,\n hideLabelFromVision,\n value,\n help,\n id: idProp,\n className,\n onChange,\n type = 'text',\n ...additionalProps\n } = props;\n const id = useInstanceId(TextControl, 'inspector-text-control', idProp);\n const onChangeValue = event => onChange(event.target.value);\n maybeWarnDeprecated36pxSize({\n componentName: 'TextControl',\n size: undefined,\n __next40pxDefaultSize\n });\n return /*#__PURE__*/_jsx(BaseControl, {\n label: label,\n hideLabelFromVision: hideLabelFromVision,\n id: id,\n help: help,\n className: className,\n children: /*#__PURE__*/_jsx(\"input\", {\n className: clsx('components-text-control__input', {\n 'is-next-40px-default-size': __next40pxDefaultSize\n }),\n type: type,\n id: id,\n value: value,\n onChange: onChangeValue,\n \"aria-describedby\": !!help ? id + '__help' : undefined,\n ref: ref,\n ...additionalProps\n })\n });\n}\n\n/**\n * TextControl components let users enter and edit text.\n *\n * ```jsx\n * import { TextControl } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const MyTextControl = () => {\n * const [ className, setClassName ] = useState( '' );\n *\n * return (\n * <TextControl\n * __next40pxDefaultSize\n * label=\"Additional CSS Class\"\n * value={ className }\n * onChange={ ( value ) => setClassName( value ) }\n * />\n * );\n * };\n * ```\n */\nexport const TextControl = forwardRef(UnforwardedTextControl);\nTextControl.displayName = 'TextControl';\nexport default TextControl;"],
5
- "mappings": ";AAIA,OAAO,UAAU;AAKjB,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAK3B,OAAO,iBAAiB;AACxB,SAAS,mCAAmC;AAC5C,SAAS,OAAO,YAAY;AAC5B,SAAS,uBAAuB,OAAO,KAAK;AAC1C,QAAM;AAAA;AAAA,IAEJ,yBAAyB;AAAA,IACzB,wBAAwB;AAAA,IACxB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,IAAI;AAAA,IACJ;AAAA,IACA;AAAA,IACA,OAAO;AAAA,IACP,GAAG;AAAA,EACL,IAAI;AACJ,QAAM,KAAK,cAAc,aAAa,0BAA0B,MAAM;AACtE,QAAM,gBAAgB,WAAS,SAAS,MAAM,OAAO,KAAK;AAC1D,8BAA4B;AAAA,IAC1B,eAAe;AAAA,IACf,MAAM;AAAA,IACN;AAAA,EACF,CAAC;AACD,SAAoB,qBAAK,aAAa;AAAA,IACpC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,UAAuB,qBAAK,SAAS;AAAA,MACnC,WAAW,KAAK,kCAAkC;AAAA,QAChD,6BAA6B;AAAA,MAC/B,CAAC;AAAA,MACD;AAAA,MACA;AAAA,MACA;AAAA,MACA,UAAU;AAAA,MACV,oBAAoB,CAAC,CAAC,OAAO,KAAK,WAAW;AAAA,MAC7C;AAAA,MACA,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AAuBO,IAAM,cAAc,WAAW,sBAAsB;AAC5D,YAAY,cAAc;AAC1B,IAAO,uBAAQ;",
4
+ "sourcesContent": ["/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\nimport { useInstanceId } from '@wordpress/compose';\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport BaseControl from '../base-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction UnforwardedTextControl(props, ref) {\n const {\n // Prevent passing legacy props to `input`.\n __nextHasNoMarginBottom: _,\n __next40pxDefaultSize: __,\n label,\n hideLabelFromVision,\n value,\n help,\n id: idProp,\n className,\n onChange,\n type = 'text',\n ...additionalProps\n } = props;\n const id = useInstanceId(TextControl, 'inspector-text-control', idProp);\n const onChangeValue = event => onChange(event.target.value);\n return /*#__PURE__*/_jsx(BaseControl, {\n label: label,\n hideLabelFromVision: hideLabelFromVision,\n id: id,\n help: help,\n className: className,\n children: /*#__PURE__*/_jsx(\"input\", {\n className: \"components-text-control__input\",\n type: type,\n id: id,\n value: value,\n onChange: onChangeValue,\n \"aria-describedby\": !!help ? id + '__help' : undefined,\n ref: ref,\n ...additionalProps\n })\n });\n}\n\n/**\n * TextControl components let users enter and edit text.\n *\n * ```jsx\n * import { TextControl } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const MyTextControl = () => {\n * const [ className, setClassName ] = useState( '' );\n *\n * return (\n * <TextControl\n * label=\"Additional CSS Class\"\n * value={ className }\n * onChange={ ( value ) => setClassName( value ) }\n * />\n * );\n * };\n * ```\n */\nexport const TextControl = forwardRef(UnforwardedTextControl);\nTextControl.displayName = 'TextControl';\nexport default TextControl;"],
5
+ "mappings": ";AAOA,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAK3B,OAAO,iBAAiB;AACxB,SAAS,OAAO,YAAY;AAC5B,SAAS,uBAAuB,OAAO,KAAK;AAC1C,QAAM;AAAA;AAAA,IAEJ,yBAAyB;AAAA,IACzB,uBAAuB;AAAA,IACvB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,IAAI;AAAA,IACJ;AAAA,IACA;AAAA,IACA,OAAO;AAAA,IACP,GAAG;AAAA,EACL,IAAI;AACJ,QAAM,KAAK,cAAc,aAAa,0BAA0B,MAAM;AACtE,QAAM,gBAAgB,WAAS,SAAS,MAAM,OAAO,KAAK;AAC1D,SAAoB,qBAAK,aAAa;AAAA,IACpC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,UAAuB,qBAAK,SAAS;AAAA,MACnC,WAAW;AAAA,MACX;AAAA,MACA;AAAA,MACA;AAAA,MACA,UAAU;AAAA,MACV,oBAAoB,CAAC,CAAC,OAAO,KAAK,WAAW;AAAA,MAC7C;AAAA,MACA,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AAsBO,IAAM,cAAc,WAAW,sBAAsB;AAC5D,YAAY,cAAc;AAC1B,IAAO,uBAAQ;",
6
6
  "names": []
7
7
  }
@@ -18,7 +18,6 @@ var UnforwardedValidatedTextControl = ({
18
18
  customValidity,
19
19
  getValidityTarget: () => validityTargetRef.current,
20
20
  children: /* @__PURE__ */ _jsx(TextControl, {
21
- __next40pxDefaultSize: true,
22
21
  ref: mergedRefs,
23
22
  ...restProps
24
23
  })
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/validated-form-controls/components/text-control.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useMergeRefs } from '@wordpress/compose';\nimport { forwardRef, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport TextControl from '../../text-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedTextControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(TextControl, {\n __next40pxDefaultSize: true,\n ref: mergedRefs,\n ...restProps\n })\n });\n};\nexport const ValidatedTextControl = forwardRef(UnforwardedValidatedTextControl);\nValidatedTextControl.displayName = 'ValidatedTextControl';"],
5
- "mappings": ";AAGA,SAAS,oBAAoB;AAC7B,SAAS,YAAY,cAAc;AAKnC,SAAS,wBAAwB;AACjC,OAAO,iBAAiB;AACxB,SAAS,OAAO,YAAY;AAC5B,IAAM,kCAAkC,CAAC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,oBAAoB,OAAO,IAAI;AACrC,QAAM,aAAa,aAAa,CAAC,cAAc,iBAAiB,CAAC;AACjE,SAAoB,qBAAK,kBAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IACA;AAAA,IACA,mBAAmB,MAAM,kBAAkB;AAAA,IAC3C,UAAuB,qBAAK,aAAa;AAAA,MACvC,uBAAuB;AAAA,MACvB,KAAK;AAAA,MACL,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,uBAAuB,WAAW,+BAA+B;AAC9E,qBAAqB,cAAc;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useMergeRefs } from '@wordpress/compose';\nimport { forwardRef, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport TextControl from '../../text-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedTextControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(TextControl, {\n ref: mergedRefs,\n ...restProps\n })\n });\n};\nexport const ValidatedTextControl = forwardRef(UnforwardedValidatedTextControl);\nValidatedTextControl.displayName = 'ValidatedTextControl';"],
5
+ "mappings": ";AAGA,SAAS,oBAAoB;AAC7B,SAAS,YAAY,cAAc;AAKnC,SAAS,wBAAwB;AACjC,OAAO,iBAAiB;AACxB,SAAS,OAAO,YAAY;AAC5B,IAAM,kCAAkC,CAAC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,oBAAoB,OAAO,IAAI;AACrC,QAAM,aAAa,aAAa,CAAC,cAAc,iBAAiB,CAAC;AACjE,SAAoB,qBAAK,kBAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IACA;AAAA,IACA,mBAAmB,MAAM,kBAAkB;AAAA,IAC3C,UAAuB,qBAAK,aAAa;AAAA,MACvC,KAAK;AAAA,MACL,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,uBAAuB,WAAW,+BAA+B;AAC9E,qBAAqB,cAAc;",
6
6
  "names": []
7
7
  }
@@ -3606,7 +3606,7 @@ body.lockscroll {
3606
3606
  .components-text-control__input[type=month],
3607
3607
  .components-text-control__input[type=number] {
3608
3608
  width: 100%;
3609
- height: 32px;
3609
+ height: 40px;
3610
3610
  margin: 0;
3611
3611
  background: var(--wp-components-color-background, var(--wpds-color-background-surface-neutral-strong, #fff));
3612
3612
  color: var(--wp-components-color-foreground, var(--wpds-color-foreground-content-neutral, #1e1e1e));
@@ -3710,6 +3710,8 @@ body.lockscroll {
3710
3710
  .components-text-control__input[type=month],
3711
3711
  .components-text-control__input[type=number] {
3712
3712
  border-color: var(--wp-components-color-gray-600, var(--wpds-color-stroke-interactive-neutral, #8d8d8d));
3713
+ padding-right: 12px;
3714
+ padding-left: 12px;
3713
3715
  }
3714
3716
  .components-text-control__input::-moz-placeholder, .components-text-control__input[type=text]::-moz-placeholder, .components-text-control__input[type=tel]::-moz-placeholder, .components-text-control__input[type=time]::-moz-placeholder, .components-text-control__input[type=url]::-moz-placeholder, .components-text-control__input[type=week]::-moz-placeholder, .components-text-control__input[type=password]::-moz-placeholder, .components-text-control__input[type=color]::-moz-placeholder, .components-text-control__input[type=date]::-moz-placeholder, .components-text-control__input[type=datetime]::-moz-placeholder, .components-text-control__input[type=datetime-local]::-moz-placeholder, .components-text-control__input[type=email]::-moz-placeholder, .components-text-control__input[type=month]::-moz-placeholder, .components-text-control__input[type=number]::-moz-placeholder {
3715
3717
  color: color-mix(in srgb, var(--wp-components-color-foreground, var(--wpds-color-foreground-content-neutral, #1e1e1e)), transparent 38%);
@@ -3730,24 +3732,6 @@ body.lockscroll {
3730
3732
  .components-text-control__input[type=number]::placeholder {
3731
3733
  color: color-mix(in srgb, var(--wp-components-color-foreground, var(--wpds-color-foreground-content-neutral, #1e1e1e)), transparent 38%);
3732
3734
  }
3733
- .components-text-control__input.is-next-40px-default-size,
3734
- .components-text-control__input[type=text].is-next-40px-default-size,
3735
- .components-text-control__input[type=tel].is-next-40px-default-size,
3736
- .components-text-control__input[type=time].is-next-40px-default-size,
3737
- .components-text-control__input[type=url].is-next-40px-default-size,
3738
- .components-text-control__input[type=week].is-next-40px-default-size,
3739
- .components-text-control__input[type=password].is-next-40px-default-size,
3740
- .components-text-control__input[type=color].is-next-40px-default-size,
3741
- .components-text-control__input[type=date].is-next-40px-default-size,
3742
- .components-text-control__input[type=datetime].is-next-40px-default-size,
3743
- .components-text-control__input[type=datetime-local].is-next-40px-default-size,
3744
- .components-text-control__input[type=email].is-next-40px-default-size,
3745
- .components-text-control__input[type=month].is-next-40px-default-size,
3746
- .components-text-control__input[type=number].is-next-40px-default-size {
3747
- height: 40px;
3748
- padding-right: 12px;
3749
- padding-left: 12px;
3750
- }
3751
3735
 
3752
3736
  .components-text-control__input[type=email],
3753
3737
  .components-text-control__input[type=url] {
@@ -3618,7 +3618,7 @@ body.lockscroll {
3618
3618
  .components-text-control__input[type=month],
3619
3619
  .components-text-control__input[type=number] {
3620
3620
  width: 100%;
3621
- height: 32px;
3621
+ height: 40px;
3622
3622
  margin: 0;
3623
3623
  background: var(--wp-components-color-background, var(--wpds-color-background-surface-neutral-strong, #fff));
3624
3624
  color: var(--wp-components-color-foreground, var(--wpds-color-foreground-content-neutral, #1e1e1e));
@@ -3722,6 +3722,8 @@ body.lockscroll {
3722
3722
  .components-text-control__input[type=month],
3723
3723
  .components-text-control__input[type=number] {
3724
3724
  border-color: var(--wp-components-color-gray-600, var(--wpds-color-stroke-interactive-neutral, #8d8d8d));
3725
+ padding-left: 12px;
3726
+ padding-right: 12px;
3725
3727
  }
3726
3728
  .components-text-control__input::-moz-placeholder, .components-text-control__input[type=text]::-moz-placeholder, .components-text-control__input[type=tel]::-moz-placeholder, .components-text-control__input[type=time]::-moz-placeholder, .components-text-control__input[type=url]::-moz-placeholder, .components-text-control__input[type=week]::-moz-placeholder, .components-text-control__input[type=password]::-moz-placeholder, .components-text-control__input[type=color]::-moz-placeholder, .components-text-control__input[type=date]::-moz-placeholder, .components-text-control__input[type=datetime]::-moz-placeholder, .components-text-control__input[type=datetime-local]::-moz-placeholder, .components-text-control__input[type=email]::-moz-placeholder, .components-text-control__input[type=month]::-moz-placeholder, .components-text-control__input[type=number]::-moz-placeholder {
3727
3729
  color: color-mix(in srgb, var(--wp-components-color-foreground, var(--wpds-color-foreground-content-neutral, #1e1e1e)), transparent 38%);
@@ -3742,24 +3744,6 @@ body.lockscroll {
3742
3744
  .components-text-control__input[type=number]::placeholder {
3743
3745
  color: color-mix(in srgb, var(--wp-components-color-foreground, var(--wpds-color-foreground-content-neutral, #1e1e1e)), transparent 38%);
3744
3746
  }
3745
- .components-text-control__input.is-next-40px-default-size,
3746
- .components-text-control__input[type=text].is-next-40px-default-size,
3747
- .components-text-control__input[type=tel].is-next-40px-default-size,
3748
- .components-text-control__input[type=time].is-next-40px-default-size,
3749
- .components-text-control__input[type=url].is-next-40px-default-size,
3750
- .components-text-control__input[type=week].is-next-40px-default-size,
3751
- .components-text-control__input[type=password].is-next-40px-default-size,
3752
- .components-text-control__input[type=color].is-next-40px-default-size,
3753
- .components-text-control__input[type=date].is-next-40px-default-size,
3754
- .components-text-control__input[type=datetime].is-next-40px-default-size,
3755
- .components-text-control__input[type=datetime-local].is-next-40px-default-size,
3756
- .components-text-control__input[type=email].is-next-40px-default-size,
3757
- .components-text-control__input[type=month].is-next-40px-default-size,
3758
- .components-text-control__input[type=number].is-next-40px-default-size {
3759
- height: 40px;
3760
- padding-left: 12px;
3761
- padding-right: 12px;
3762
- }
3763
3747
 
3764
3748
  .components-text-control__input[type=email],
3765
3749
  .components-text-control__input[type=url] {
@@ -0,0 +1,3 @@
1
+ import type { BoxControlInputControlProps } from './types';
2
+ export default function BoxInputControl({ onChange, onFocus, values, selectedUnits, setSelectedUnits, sides, side, min, presets, presetKey, placeholder: placeholderProp, ...props }: BoxControlInputControlProps): import("react").JSX.Element;
3
+ //# sourceMappingURL=box-input-control.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box-input-control.d.ts","sourceRoot":"","sources":["../../src/box-control/box-input-control.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,2BAA2B,EAAmB,MAAM,SAAS,CAAC;AA+C5E,MAAM,CAAC,OAAO,UAAU,eAAe,CAAE,EACxC,QAAe,EACf,OAAc,EACd,MAAM,EACN,aAAa,EACb,gBAAgB,EAChB,KAAK,EACL,IAAI,EACJ,GAAO,EACP,OAAO,EACP,SAAS,EACT,WAAW,EAAE,eAAe,EAC5B,GAAG,KAAK,EACR,EAAE,2BAA2B,+BAuN7B"}
@@ -16,15 +16,11 @@ import type { BoxControlProps } from './types';
16
16
  * } );
17
17
  *
18
18
  * return (
19
- * <BoxControl
20
- * __next40pxDefaultSize
21
- * values={ values }
22
- * onChange={ setValues }
23
- * />
19
+ * <BoxControl values={ values } onChange={ setValues } />
24
20
  * );
25
21
  * };
26
22
  * ```
27
23
  */
28
- declare function BoxControl({ __next40pxDefaultSize, id: idProp, inputProps, onChange, label, values: valuesProp, units, sides, splitOnAxis, allowReset, resetValues, presets, presetKey, onMouseOver, onMouseOut }: BoxControlProps): import("react").JSX.Element;
24
+ declare function BoxControl({ id: idProp, inputProps, onChange, label, values: valuesProp, units, sides, splitOnAxis, allowReset, resetValues, presets, presetKey, onMouseOver, onMouseOut }: BoxControlProps): import("react").JSX.Element;
29
25
  export default BoxControl;
30
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/box-control/index.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,eAAe,EAAmB,MAAM,SAAS,CAAC;AAehE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,iBAAS,UAAU,CAAE,EACpB,qBAA6B,EAC7B,EAAE,EAAE,MAAM,EACV,UAA8B,EAC9B,QAAe,EACf,KAA2B,EAC3B,MAAM,EAAE,UAAU,EAClB,KAAK,EACL,KAAK,EACL,WAAmB,EACnB,UAAiB,EACjB,WAA4B,EAC5B,OAAO,EACP,SAAS,EACT,WAAW,EACX,UAAU,EACV,EAAE,eAAe,+BAwIjB;eAEc,UAAU"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/box-control/index.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,eAAe,EAAmB,MAAM,SAAS,CAAC;AAchE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,iBAAS,UAAU,CAAE,EACpB,EAAE,EAAE,MAAM,EACV,UAA8B,EAC9B,QAAe,EACf,KAA2B,EAC3B,MAAM,EAAE,UAAU,EAClB,KAAK,EACL,KAAK,EACL,WAAmB,EACnB,UAAiB,EACjB,WAA4B,EAC5B,OAAO,EACP,SAAS,EACT,WAAW,EACX,UAAU,EACV,EAAE,eAAe,+BA4HjB;eAEc,UAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/box-control/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAQ3D;;GAEG;AACH,OAAO,UAAU,MAAM,KAAK,CAAC;AAE7B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,UAAU,CAkBlC,CAAC;eACa,IAAI;AAsBnB,eAAO,MAAM,OAAO,iIAAkC,CAAC;AAMvD,eAAO,MAAM,UAAU,iIAAgC,CAAC;AAKxD,eAAO,MAAM,cAAc,iIAAgC,CAAC;AAM5D,eAAO,MAAM,UAAU,iIAAgC,CAAC;AAMxD,eAAO,MAAM,aAAa,iIAAgC,CAAC;AAM3D,eAAO,MAAM,2BAA2B,iIAAgC,CAAC;AAOzE,eAAO,MAAM,kBAAkB,iIAAgC,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/box-control/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAQ3D;;GAEG;AACH,OAAO,UAAU,MAAM,KAAK,CAAC;AAE7B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,UAAU,CAkBlC,CAAC;eACa,IAAI;AAqBnB,eAAO,MAAM,OAAO,iIAAkC,CAAC;AAKvD,eAAO,MAAM,UAAU,iIAAgC,CAAC;AAKxD,eAAO,MAAM,cAAc,iIAAgC,CAAC;AAM5D,eAAO,MAAM,UAAU,iIAAgC,CAAC;AAMxD,eAAO,MAAM,aAAa,iIAAgC,CAAC;AAM3D,eAAO,MAAM,2BAA2B,iIAAgC,CAAC;AAOzE,eAAO,MAAM,kBAAkB,iIAAgC,CAAC"}
@@ -22,6 +22,13 @@ export interface Preset {
22
22
  }
23
23
  type UnitControlPassthroughProps = Omit<UnitControlProps, 'label' | 'onChange' | 'onFocus' | 'units'>;
24
24
  type DeprecatedBoxControlProps = {
25
+ /**
26
+ * Start opting into the larger default height that will become the default size in a future version.
27
+ *
28
+ * @deprecated Default behavior since WordPress 7.1. Prop can be safely removed.
29
+ * @ignore
30
+ */
31
+ __next40pxDefaultSize?: boolean;
25
32
  /**
26
33
  * @deprecated Pass to the `inputProps` prop instead.
27
34
  * @ignore
@@ -83,12 +90,6 @@ export type BoxControlProps = Pick<UnitControlProps, 'units'> & DeprecatedBoxCon
83
90
  * The current values of the control, expressed as an object of `top`, `right`, `bottom`, and `left` values.
84
91
  */
85
92
  values?: BoxControlValue;
86
- /**
87
- * Start opting into the larger default height that will become the default size in a future version.
88
- *
89
- * @default false
90
- */
91
- __next40pxDefaultSize?: boolean;
92
93
  } & ({
93
94
  /**
94
95
  * Available presets to pick from.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/box-control/types.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/box-control/types.ts"],"names":[],"mappings":"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"}
@@ -19,7 +19,6 @@ import type { WordPressComponentProps } from '../context';
19
19
  *
20
20
  * let input = (
21
21
  * <TextControl
22
- * __next40pxDefaultSize
23
22
  * label="Input"
24
23
  * onChange={ () => {} }
25
24
  * />
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/disabled/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAM1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,iBAAS,QAAQ,CAAE,EAClB,SAAS,EACT,QAAQ,EACR,UAAiB,EACjB,GAAG,KAAK,EACR,EAAE,uBAAuB,CAAE,aAAa,EAAE,KAAK,CAAE,+BAmBjD;;;;;;;eAKc,QAAQ"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/disabled/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAM1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,iBAAS,QAAQ,CAAE,EAClB,SAAS,EACT,QAAQ,EACR,UAAiB,EACjB,GAAG,KAAK,EACR,EAAE,uBAAuB,CAAE,aAAa,EAAE,KAAK,CAAE,+BAmBjD;;;;;;;eAKc,QAAQ"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/disabled/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAO3D;;GAEG;AACH,OAAO,QAAQ,MAAM,KAAK,CAAC;AAM3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,CAmBhC,CAAC;eAEa,IAAI;AAiCnB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,QAAQ,CAM7C,CAAC;AAKF,eAAO,MAAM,eAAe,EAAE,OAAO,CAAE,OAAO,QAAQ,CAQrD,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/disabled/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAO3D;;GAEG;AACH,OAAO,QAAQ,MAAM,KAAK,CAAC;AAM3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,CAmBhC,CAAC;eAEa,IAAI;AAgCnB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,QAAQ,CAM7C,CAAC;AAKF,eAAO,MAAM,eAAe,EAAE,OAAO,CAAE,OAAO,QAAQ,CAQrD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/divider/component.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AA0B1C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,OAAO;;;;;8CAAkD,CAAC;eAExD,OAAO"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/divider/component.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAkD1C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,OAAO;;;;;8CAAkD,CAAC;eAExD,OAAO"}
@@ -2,42 +2,8 @@ type Props = {
2
2
  node?: HTMLElement;
3
3
  [key: string]: any;
4
4
  };
5
- type State = {
6
- fallbackStyles?: {
7
- [key: string]: any;
8
- };
9
- grabStylesCompleted: boolean;
10
- };
11
5
  declare const _default: (mapNodeToProps: (node: HTMLElement, props: Props) => {
12
6
  [key: string]: any;
13
- }) => (Inner: import("react").ComponentType<any>) => {
14
- new (props: Props): {
15
- nodeRef?: HTMLElement;
16
- bindRef(node: HTMLDivElement): void;
17
- componentDidMount(): void;
18
- componentDidUpdate(): void;
19
- grabFallbackStyles(): void;
20
- render(): import("react").JSX.Element;
21
- context: unknown;
22
- setState<K extends keyof State>(state: Pick<State, K> | State | ((prevState: Readonly<State>, props: Readonly<Props>) => Pick<State, K> | State | null) | null, callback?: (() => void) | undefined): void;
23
- forceUpdate(callback?: (() => void) | undefined): void;
24
- readonly props: Readonly<Props>;
25
- state: Readonly<State>;
26
- refs: {
27
- [key: string]: import("react").ReactInstance;
28
- };
29
- shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): boolean;
30
- componentWillUnmount?(): void;
31
- componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
32
- getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<State>): any;
33
- componentWillMount?(): void;
34
- UNSAFE_componentWillMount?(): void;
35
- componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
36
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
37
- componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): void;
38
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): void;
39
- };
40
- contextType?: import("react").Context<any> | undefined;
41
- };
7
+ }) => (Inner: import("react").ComponentType<any>) => (props: Props) => import("react").JSX.Element;
42
8
  export default _default;
43
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/higher-order/with-fallback-styles/index.tsx"],"names":[],"mappings":"AAWA,KAAK,KAAK,GAAG;IACZ,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,CAAE,GAAG,EAAE,MAAM,GAAI,GAAG,CAAC;CACrB,CAAC;AAEF,KAAK,KAAK,GAAG;IACZ,cAAc,CAAC,EAAE;QAAE,CAAE,GAAG,EAAE,MAAM,GAAI,GAAG,CAAA;KAAE,CAAC;IAC1C,mBAAmB,EAAE,OAAO,CAAC;CAC7B,CAAC;yCAGe,CACf,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,KAAK,KACR;IAAE,CAAE,GAAG,EAAE,MAAM,GAAI,GAAG,CAAA;CAAE;gBAMP,KAAK;kBAFf,WAAW;sBAaN,cAAc"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/higher-order/with-fallback-styles/index.tsx"],"names":[],"mappings":"AAcA,KAAK,KAAK,GAAG;IACZ,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,CAAE,GAAG,EAAE,MAAM,GAAI,GAAG,CAAC;CACrB,CAAC;yCAGe,CACf,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,KAAK,KACR;IAAE,CAAE,GAAG,EAAE,MAAM,GAAI,GAAG,CAAA;CAAE,4DAGe,KAAK"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/higher-order/with-fallback-styles/test/index.tsx"],"names":[],"mappings":""}
@@ -3,7 +3,6 @@ import Icon from '..';
3
3
  declare const meta: Meta<typeof Icon>;
4
4
  export default meta;
5
5
  export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("..").Props>;
6
- export declare const FillColor: StoryFn<typeof Icon>;
7
6
  /**
8
7
  * When `icon` is a function, it will be passed the `size` prop and any other additional props.
9
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/icon/stories/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,IAAI,MAAM,IAAI,CAAC;AAGtB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,IAAI,CAY5B,CAAC;eACa,IAAI;AAInB,eAAO,MAAM,OAAO,iHAAsB,CAAC;AAK3C,eAAO,MAAM,SAAS,EAAE,OAAO,CAAE,OAAO,IAAI,CAU3C,CAAC;AAKF;;GAEG;AACH,eAAO,MAAM,aAAa,iHAAsB,CAAC;AAqCjD;;GAEG;AACH,eAAO,MAAM,cAAc,iHAAsB,CAAC;AAqBlD,eAAO,MAAM,SAAS,iHAAsB,CAAC;AAU7C;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,OAAO,CAAE,OAAO,IAAI,CAU/C,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/icon/stories/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,IAAI,MAAM,IAAI,CAAC;AAGtB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,IAAI,CAY5B,CAAC;eACa,IAAI;AAInB,eAAO,MAAM,OAAO,iHAAsB,CAAC;AAK3C;;GAEG;AACH,eAAO,MAAM,aAAa,iHAAsB,CAAC;AAqCjD;;GAEG;AACH,eAAO,MAAM,cAAc,iHAAsB,CAAC;AAqBlD,eAAO,MAAM,SAAS,iHAAsB,CAAC;AAU7C;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,OAAO,CAAE,OAAO,IAAI,CAU/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/placeholder/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQ3D;;GAEG;AACH,OAAO,WAAW,MAAM,KAAK,CAAC;AAK9B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,WAAW,CAqBnC,CAAC;eACa,IAAI;AAoBnB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,WAAW,CAAwB,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/placeholder/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQ3D;;GAEG;AACH,OAAO,WAAW,MAAM,KAAK,CAAC;AAK9B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,WAAW,CAqBnC,CAAC;eACa,IAAI;AAmBnB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,WAAW,CAAwB,CAAC"}
@@ -1,12 +1,10 @@
1
1
  import { Resizable } from 're-resizable';
2
2
  import type { ResizableProps } from 're-resizable';
3
- import type { ReactNode } from 'react';
4
3
  /**
5
4
  * Internal dependencies
6
5
  */
7
6
  import ResizeTooltip from './resize-tooltip';
8
7
  export declare const ResizableBox: import("react").ForwardRefExoticComponent<ResizableProps & {
9
- children: ReactNode;
10
8
  showHandle?: boolean;
11
9
  __experimentalShowTooltip?: boolean;
12
10
  __experimentalTooltipProps?: Parameters<typeof ResizeTooltip>[0];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resizable-box/index.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAgB,MAAM,OAAO,CAAC;AAErD;;GAEG;AACH,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAuH7C,eAAO,MAAM,YAAY;cA7Cd,SAAS;iBACN,OAAO;gCACQ,OAAO;iCACN,UAAU,CAAE,OAAO,aAAa,CAAE,CAAE,CAAC,CAAE;6CA0CJ,CAAC;eAGnD,YAAY"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resizable-box/index.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGnD;;GAEG;AACH,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAsH7C,eAAO,MAAM,YAAY;iBA5CX,OAAO;gCACQ,OAAO;iCACN,UAAU,CAAE,OAAO,aAAa,CAAE,CAAE,CAAC,CAAE;6CA0CJ,CAAC;eAGnD,YAAY"}
@@ -9,7 +9,6 @@ import ResizableBox from '..';
9
9
  declare const meta: Meta<typeof ResizableBox>;
10
10
  export default meta;
11
11
  export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("re-resizable").ResizableProps & {
12
- children: import("react").ReactNode;
13
12
  showHandle?: boolean;
14
13
  __experimentalShowTooltip?: boolean;
15
14
  __experimentalTooltipProps?: Parameters<import("react").ForwardRefExoticComponent<Omit<{
@@ -32,7 +31,6 @@ export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<
32
31
  * The `enable` prop can be used to disable resizing in specific directions.
33
32
  */
34
33
  export declare const DisabledDirections: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("re-resizable").ResizableProps & {
35
- children: import("react").ReactNode;
36
34
  showHandle?: boolean;
37
35
  __experimentalShowTooltip?: boolean;
38
36
  __experimentalTooltipProps?: Parameters<import("react").ForwardRefExoticComponent<Omit<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/resizable-box/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAO3D;;GAEG;AACH,OAAO,YAAY,MAAM,IAAI,CAAC;AAE9B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,YAAY,CAkBpC,CAAC;eACa,IAAI;AA6BnB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;oEAAsB,CAAC;AAkB3C;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;oEAAsB,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/resizable-box/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAO3D;;GAEG;AACH,OAAO,YAAY,MAAM,IAAI,CAAC;AAE9B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,YAAY,CAkBpC,CAAC;eACa,IAAI;AA6BnB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;oEAAsB,CAAC;AAkB3C;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;oEAAsB,CAAC"}
@@ -10,7 +10,6 @@
10
10
  *
11
11
  * return (
12
12
  * <TextControl
13
- * __next40pxDefaultSize
14
13
  * label="Additional CSS Class"
15
14
  * value={ className }
16
15
  * onChange={ ( value ) => setClassName( value ) }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/text-control/index.tsx"],"names":[],"mappings":"AAwEA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,WAAW;;;;;sVAAuC,CAAC;eAGjD,WAAW"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/text-control/index.tsx"],"names":[],"mappings":"AA8DA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,WAAW;;;;;sVAAuC,CAAC;eAGjD,WAAW"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/text-control/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAO3D;;GAEG;AACH,OAAO,WAAW,MAAM,IAAI,CAAC;AAE7B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,WAAW,CAsBnC,CAAC;eACa,IAAI;AAqBnB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,WAAW,CAEhD,CAAC;AAMF,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAE,OAAO,WAAW,CACnC,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/text-control/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAO3D;;GAEG;AACH,OAAO,WAAW,MAAM,IAAI,CAAC;AAE7B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,WAAW,CAsBnC,CAAC;eACa,IAAI;AAoBnB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,WAAW,CAEhD,CAAC;AAKF,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAE,OAAO,WAAW,CACnC,CAAC"}
@@ -20,7 +20,8 @@ export type TextControlProps = Pick<BaseControlProps, '__nextHasNoMarginBottom'
20
20
  /**
21
21
  * Start opting into the larger default height that will become the default size in a future version.
22
22
  *
23
- * @default false
23
+ * @deprecated Default behavior since WordPress 7.1. Prop can be safely removed.
24
+ * @ignore
24
25
  */
25
26
  __next40pxDefaultSize?: boolean;
26
27
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/text-control/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAClC,gBAAgB,EACd,yBAAyB,GACzB,WAAW,GACX,qBAAqB,GACrB,MAAM,GACN,OAAO,CACT,GAAG;IACH;;OAEG;IACH,QAAQ,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB;;;;OAIG;IACH,IAAI,CAAC,EACF,MAAM,GACN,gBAAgB,GAChB,OAAO,GACP,QAAQ,GACR,UAAU,GACV,KAAK,GACL,MAAM,GACN,MAAM,GACN,QAAQ,GACR,KAAK,CAAC;IAET;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/text-control/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAClC,gBAAgB,EACd,yBAAyB,GACzB,WAAW,GACX,qBAAqB,GACrB,MAAM,GACN,OAAO,CACT,GAAG;IACH;;OAEG;IACH,QAAQ,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB;;;;OAIG;IACH,IAAI,CAAC,EACF,MAAM,GACN,gBAAgB,GAChB,OAAO,GACP,QAAQ,GACR,UAAU,GACV,KAAK,GACL,MAAM,GACN,MAAM,GACN,QAAQ,GACR,KAAK,CAAC;IAET;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import type { ValidatedControlProps } from './types';
2
- export declare const ValidatedTextControl: import("react").ForwardRefExoticComponent<Omit<Omit<Pick<import("../../base-control/types").BaseControlProps, "__nextHasNoMarginBottom" | "className" | "help" | "hideLabelFromVision" | "label"> & {
2
+ export declare const ValidatedTextControl: import("react").ForwardRefExoticComponent<Omit<Pick<import("../../base-control/types").BaseControlProps, "__nextHasNoMarginBottom" | "className" | "help" | "hideLabelFromVision" | "label"> & {
3
3
  onChange: (value: string) => void;
4
4
  value: string | number;
5
5
  type?: 'date' | 'datetime-local' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'time' | 'search' | 'url';
6
6
  __next40pxDefaultSize?: boolean;
7
- } & Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "__next40pxDefaultSize" | "__nextHasNoMarginBottom" | "as" | "children" | "className" | "help" | "hideLabelFromVision" | "label" | "onChange" | "type" | "value"> & import("react").RefAttributes<HTMLInputElement>, "__next40pxDefaultSize"> & ValidatedControlProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
7
+ } & Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "__next40pxDefaultSize" | "__nextHasNoMarginBottom" | "as" | "children" | "className" | "help" | "hideLabelFromVision" | "label" | "onChange" | "type" | "value"> & import("react").RefAttributes<HTMLInputElement> & ValidatedControlProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
8
8
  //# sourceMappingURL=text-control.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-control.d.ts","sourceRoot":"","sources":["../../../src/validated-form-controls/components/text-control.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAmCrD,eAAO,MAAM,oBAAoB;;;;;kcAEhC,CAAC"}
1
+ {"version":3,"file":"text-control.d.ts","sourceRoot":"","sources":["../../../src/validated-form-controls/components/text-control.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AA2BrD,eAAO,MAAM,oBAAoB;;;;;waAEhC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/components",
3
- "version": "35.1.1-next.v.202606191442.0+17fe7db8a",
3
+ "version": "36.0.1",
4
4
  "description": "UI components for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -62,26 +62,26 @@
62
62
  "@types/gradient-parser": "^1.1.0",
63
63
  "@types/highlight-words-core": "^1.2.1",
64
64
  "@use-gesture/react": "^10.3.1",
65
- "@wordpress/a11y": "^4.48.2-next.v.202606191442.0+17fe7db8a",
66
- "@wordpress/base-styles": "^10.0.2-next.v.202606191442.0+17fe7db8a",
67
- "@wordpress/compose": "^8.1.2-next.v.202606191442.0+17fe7db8a",
68
- "@wordpress/date": "^5.48.2-next.v.202606191442.0+17fe7db8a",
69
- "@wordpress/deprecated": "^4.48.2-next.v.202606191442.0+17fe7db8a",
70
- "@wordpress/dom": "^4.48.2-next.v.202606191442.0+17fe7db8a",
71
- "@wordpress/element": "^8.0.2-next.v.202606191442.0+17fe7db8a",
72
- "@wordpress/escape-html": "^3.48.2-next.v.202606191442.0+17fe7db8a",
73
- "@wordpress/hooks": "^4.48.2-next.v.202606191442.0+17fe7db8a",
74
- "@wordpress/html-entities": "^4.48.2-next.v.202606191442.0+17fe7db8a",
75
- "@wordpress/i18n": "^6.21.2-next.v.202606191442.0+17fe7db8a",
76
- "@wordpress/icons": "^14.0.2-next.v.202606191442.0+17fe7db8a",
77
- "@wordpress/is-shallow-equal": "^5.48.2-next.v.202606191442.0+17fe7db8a",
78
- "@wordpress/keycodes": "^4.48.2-next.v.202606191442.0+17fe7db8a",
79
- "@wordpress/primitives": "^4.48.2-next.v.202606191442.0+17fe7db8a",
80
- "@wordpress/private-apis": "^1.48.2-next.v.202606191442.0+17fe7db8a",
81
- "@wordpress/rich-text": "^7.48.2-next.v.202606191442.0+17fe7db8a",
82
- "@wordpress/style-runtime": "^0.4.2-next.v.202606191442.0+17fe7db8a",
83
- "@wordpress/ui": "^0.16.1-next.v.202606191442.0+17fe7db8a",
84
- "@wordpress/warning": "^3.48.2-next.v.202606191442.0+17fe7db8a",
65
+ "@wordpress/a11y": "^4.49.0",
66
+ "@wordpress/base-styles": "^10.1.0",
67
+ "@wordpress/compose": "^8.2.0",
68
+ "@wordpress/date": "^5.49.0",
69
+ "@wordpress/deprecated": "^4.49.0",
70
+ "@wordpress/dom": "^4.49.0",
71
+ "@wordpress/element": "^8.1.0",
72
+ "@wordpress/escape-html": "^3.49.0",
73
+ "@wordpress/hooks": "^4.49.0",
74
+ "@wordpress/html-entities": "^4.49.0",
75
+ "@wordpress/i18n": "^6.22.0",
76
+ "@wordpress/icons": "^15.0.0",
77
+ "@wordpress/is-shallow-equal": "^5.49.0",
78
+ "@wordpress/keycodes": "^4.49.0",
79
+ "@wordpress/primitives": "^4.49.0",
80
+ "@wordpress/private-apis": "^1.49.0",
81
+ "@wordpress/rich-text": "^7.49.0",
82
+ "@wordpress/style-runtime": "^0.5.0",
83
+ "@wordpress/ui": "^0.16.1",
84
+ "@wordpress/warning": "^3.49.0",
85
85
  "change-case": "^4.1.2",
86
86
  "clsx": "^2.1.1",
87
87
  "colord": "^2.9.3",
@@ -111,7 +111,7 @@
111
111
  "@testing-library/user-event": "^14.6.1",
112
112
  "@types/jest": "^29.5.14",
113
113
  "@types/react-dom": "^18.3.1",
114
- "@wordpress/jest-console": "^8.48.2-next.v.202606191442.0+17fe7db8a",
114
+ "@wordpress/jest-console": "^8.49.0",
115
115
  "@wordpress/stylelint-tools": "file:../../tools/stylelint",
116
116
  "snapshot-diff": "^0.10.0",
117
117
  "storybook": "^10.4.3",
@@ -130,5 +130,5 @@
130
130
  "publishConfig": {
131
131
  "access": "public"
132
132
  },
133
- "gitHead": "1b6a19222df5a88f161880b5789efb3171d8f425"
133
+ "gitHead": "9a75283890dda96ae1d37197b5070fae8c9cf66f"
134
134
  }
@@ -20,25 +20,13 @@ function Example() {
20
20
  } );
21
21
 
22
22
  return (
23
- <BoxControl
24
- __next40pxDefaultSize
25
- values={ values }
26
- onChange={ setValues }
27
- />
23
+ <BoxControl values={ values } onChange={ setValues } />
28
24
  );
29
25
  };
30
26
  ```
31
27
 
32
28
  ## Props
33
29
 
34
- ### `__next40pxDefaultSize`
35
-
36
- - Type: `boolean`
37
- - Required: No
38
- - Default: `false`
39
-
40
- Start opting into the larger default height that will become the default size in a future version.
41
-
42
30
  ### `allowReset`
43
31
 
44
32
  - Type: `boolean`
@@ -76,7 +76,6 @@ function getSidesToModify(
76
76
  }
77
77
 
78
78
  export default function BoxInputControl( {
79
- __next40pxDefaultSize,
80
79
  onChange = noop,
81
80
  onFocus = noop,
82
81
  values,
@@ -87,6 +86,7 @@ export default function BoxInputControl( {
87
86
  min = 0,
88
87
  presets,
89
88
  presetKey,
89
+ placeholder: placeholderProp,
90
90
  ...props
91
91
  }: BoxControlInputControlProps ) {
92
92
  const defaultValuesToModify = getSidesToModify( side, sides );
@@ -207,7 +207,7 @@ export default function BoxInputControl( {
207
207
  { ...props }
208
208
  min={ min }
209
209
  __shouldNotWarnDeprecated36pxSize
210
- __next40pxDefaultSize={ __next40pxDefaultSize }
210
+ __next40pxDefaultSize
211
211
  className="component-box-control__unit-control"
212
212
  id={ inputId }
213
213
  isPressEnterToChange
@@ -217,13 +217,13 @@ export default function BoxInputControl( {
217
217
  onUnitChange={ handleOnUnitChange }
218
218
  onFocus={ handleOnFocus }
219
219
  label={ LABELS[ side ] }
220
- placeholder={ mixedPlaceholder }
220
+ placeholder={ mixedPlaceholder ?? placeholderProp }
221
221
  hideLabelFromVision
222
222
  />
223
223
  </Tooltip>
224
224
 
225
225
  <FlexedRangeControl
226
- __next40pxDefaultSize={ __next40pxDefaultSize }
226
+ __next40pxDefaultSize
227
227
  __shouldNotWarnDeprecated36pxSize
228
228
  aria-controls={ inputId }
229
229
  label={ LABELS[ side ] }