@wordpress/dataviews 15.0.0 → 16.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 (23) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/components/dataform-controls/datetime.cjs.map +2 -2
  3. package/build/components/dataviews-context/index.cjs.map +2 -2
  4. package/build/components/dataviews-layouts/table/use-scroll-state.cjs.map +1 -1
  5. package/build/components/dataviews-layouts/utils/item-click-wrapper.cjs.map +2 -2
  6. package/build/hooks/use-form-validity.cjs.map +1 -1
  7. package/build-module/components/dataform-controls/datetime.mjs.map +2 -2
  8. package/build-module/components/dataviews-context/index.mjs.map +2 -2
  9. package/build-module/components/dataviews-layouts/table/use-scroll-state.mjs.map +1 -1
  10. package/build-module/components/dataviews-layouts/utils/item-click-wrapper.mjs.map +2 -2
  11. package/build-module/hooks/use-form-validity.mjs.map +1 -1
  12. package/build-types/components/dataviews-context/index.d.ts +2 -2
  13. package/build-types/components/dataviews-context/index.d.ts.map +1 -1
  14. package/build-types/components/dataviews-layouts/table/use-scroll-state.d.ts +5 -9
  15. package/build-types/components/dataviews-layouts/table/use-scroll-state.d.ts.map +1 -1
  16. package/build-types/components/dataviews-layouts/utils/item-click-wrapper.d.ts.map +1 -1
  17. package/build-wp/index.js +106 -118
  18. package/package.json +18 -18
  19. package/src/components/dataform-controls/datetime.tsx +1 -1
  20. package/src/components/dataviews-context/index.ts +4 -2
  21. package/src/components/dataviews-layouts/table/use-scroll-state.ts +6 -6
  22. package/src/components/dataviews-layouts/utils/item-click-wrapper.tsx +1 -3
  23. package/src/hooks/use-form-validity.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dataviews-context/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOrE;;GAEG;AACH,OAAO,KA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AC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,CAAE,MAAM,IAAI,CAAE,GAAG,KAAK,CAAC;IACjC,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACnD,CAAC;AAEF,QAAA,MAAM,gBAAgB,oDA4BnB,CAAC;eAIW,gBAAgB"}
@@ -1,7 +1,3 @@
1
- /**
2
- * External dependencies
3
- */
4
- import type { RefObject } from 'react';
5
1
  /**
6
2
  * A hook to track the scroll state of a container element.
7
3
  *
@@ -14,13 +10,13 @@ import type { RefObject } from 'react';
14
10
  *
15
11
  * See https://github.com/Automattic/wp-calypso/pull/103005#discussion_r2077567912.
16
12
  *
17
- * @param params The parameters for the hook.
18
- * @param params.scrollContainerRef The ref to the scroll container element.
19
- * @param [params.enabledHorizontal=false] Whether to track horizontal scroll end.
20
- * @return The scroll state.
13
+ * @param {Object} params The parameters for the hook.
14
+ * @param {MutableRefObject<HTMLDivElement | null>} params.scrollContainerRef The ref to the scroll container element.
15
+ * @param {boolean} [params.enabledHorizontal=false] Whether to track horizontal scroll end.
16
+ * @return {{ isHorizontalScrollEnd: boolean, isVerticallyScrolled: boolean }} The scroll state.
21
17
  */
22
18
  export declare function useScrollState({ scrollContainerRef, enabledHorizontal }: {
23
- scrollContainerRef: RefObject<HTMLDivElement | null>;
19
+ scrollContainerRef: React.MutableRefObject<HTMLDivElement | null>;
24
20
  enabledHorizontal?: boolean;
25
21
  }): {
26
22
  isHorizontalScrollEnd: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"use-scroll-state.d.ts","sourceRoot":"","sources":["../../../../src/components/dataviews-layouts/table/use-scroll-state.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiBvC;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAAE,EAC/B,kBAAkB,EAClB,iBAAyB,EACzB,EAAE;IACF,kBAAkB,EAAE,SAAS,CAAE,cAAc,GAAG,IAAI,CAAE,CAAC;IACvD,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B,GAAI;IAAE,qBAAqB,EAAE,OAAO,CAAC;IAAC,oBAAoB,EAAE,OAAO,CAAA;CAAE,CAmCrE"}
1
+ {"version":3,"file":"use-scroll-state.d.ts","sourceRoot":"","sources":["../../../../src/components/dataviews-layouts/table/use-scroll-state.ts"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAAE,EAC/B,kBAAkB,EAClB,iBAAyB,EACzB,EAAE;IACF,kBAAkB,EAAE,KAAK,CAAC,gBAAgB,CAAE,cAAc,GAAG,IAAI,CAAE,CAAC;IACpE,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B,GAAI;IAAE,qBAAqB,EAAE,OAAO,CAAC;IAAC,oBAAoB,EAAE,OAAO,CAAA;CAAE,CAmCrE"}
@@ -1 +1 @@
1
- {"version":3,"file":"item-click-wrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/dataviews-layouts/utils/item-click-wrapper.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AA+CrE,wBAAgB,gBAAgB,CAAE,IAAI,EAAI,EACzC,IAAI,EACJ,eAAe,EACf,WAAW,EACX,cAAc,EACd,SAAS,EACT,QAAQ,EACR,GAAG,UAAU,EACb,EAAE;IACF,IAAI,EAAE,IAAI,CAAC;IACX,eAAe,EAAE,CAAE,IAAI,EAAE,IAAI,KAAM,OAAO,CAAC;IAC3C,WAAW,CAAC,EAAE,CAAE,IAAI,EAAE,IAAI,KAAM,IAAI,CAAC;IACrC,cAAc,CAAC,EAAE,CAChB,KAAK,EAAE;QACN,IAAI,EAAE,IAAI,CAAC;KACX,GAAG,cAAc,CAAE,GAAG,CAAE,KACrB,YAAY,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,SAAS,CAAC;CACpB,+BA+DA"}
1
+ {"version":3,"file":"item-click-wrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/dataviews-layouts/utils/item-click-wrapper.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AA+CrE,wBAAgB,gBAAgB,CAAE,IAAI,EAAI,EACzC,IAAI,EACJ,eAAe,EACf,WAAW,EACX,cAAc,EACd,SAAS,EACT,QAAQ,EACR,GAAG,UAAU,EACb,EAAE;IACF,IAAI,EAAE,IAAI,CAAC;IACX,eAAe,EAAE,CAAE,IAAI,EAAE,IAAI,KAAM,OAAO,CAAC;IAC3C,WAAW,CAAC,EAAE,CAAE,IAAI,EAAE,IAAI,KAAM,IAAI,CAAC;IACrC,cAAc,CAAC,EAAE,CAChB,KAAK,EAAE;QACN,IAAI,EAAE,IAAI,CAAC;KACX,GAAG,cAAc,CAAE,GAAG,CAAE,KACrB,YAAY,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,SAAS,CAAC;CACpB,+BA6DA"}
package/build-wp/index.js CHANGED
@@ -9,7 +9,6 @@ import clsx52 from "clsx";
9
9
 
10
10
  // ../element/build-module/react.mjs
11
11
  import {
12
- Activity,
13
12
  Children,
14
13
  cloneElement,
15
14
  Component,
@@ -22,20 +21,16 @@ import {
22
21
  memo,
23
22
  PureComponent,
24
23
  StrictMode,
25
- use,
26
- useActionState,
27
24
  useCallback,
28
25
  useContext,
29
26
  useDebugValue,
30
27
  useDeferredValue,
31
28
  useEffect,
32
- useEffectEvent,
33
29
  useId,
34
30
  useMemo,
35
31
  useImperativeHandle,
36
32
  useInsertionEffect,
37
33
  useLayoutEffect,
38
- useOptimistic,
39
34
  useReducer,
40
35
  useRef,
41
36
  useState,
@@ -212,14 +207,11 @@ var create_interpolate_element_default = createInterpolateElement;
212
207
  // ../element/build-module/react-platform.mjs
213
208
  import {
214
209
  createPortal,
210
+ findDOMNode,
215
211
  flushSync,
216
- preconnect,
217
- prefetchDNS,
218
- preinit,
219
- preinitModule,
220
- preload,
221
- preloadModule,
222
- useFormStatus
212
+ render,
213
+ hydrate,
214
+ unmountComponentAtNode
223
215
  } from "react-dom";
224
216
  import { createRoot, hydrateRoot } from "react-dom/client";
225
217
 
@@ -234,26 +226,6 @@ var isEmptyElement = (element) => {
234
226
  return !element;
235
227
  };
236
228
 
237
- // ../deprecated/build-module/index.mjs
238
- import { doAction } from "@wordpress/hooks";
239
- var logged = /* @__PURE__ */ Object.create(null);
240
- function deprecated(feature, options2 = {}) {
241
- const { since, version, alternative, plugin, link, hint } = options2;
242
- const pluginMessage = plugin ? ` from ${plugin}` : "";
243
- const sinceMessage = since ? ` since version ${since}` : "";
244
- const versionMessage = version ? ` and will be removed${pluginMessage} in version ${version}` : "";
245
- const useInsteadMessage = alternative ? ` Please use ${alternative} instead.` : "";
246
- const linkMessage = link ? ` See: ${link}` : "";
247
- const hintMessage = hint ? ` Note: ${hint}` : "";
248
- const message = `${feature} is deprecated${sinceMessage}${versionMessage}.${useInsteadMessage}${linkMessage}${hintMessage}`;
249
- if (message in logged) {
250
- return;
251
- }
252
- doAction("deprecated", feature, options2, message);
253
- console.warn(message);
254
- logged[message] = true;
255
- }
256
-
257
229
  // ../compose/build-module/utils/create-higher-order-component/index.mjs
258
230
  import { pascalCase } from "change-case";
259
231
  function createHigherOrderComponent(mapComponent, modifierName) {
@@ -582,6 +554,26 @@ function isShallowEqual(a, b) {
582
554
  return a === b;
583
555
  }
584
556
 
557
+ // ../deprecated/build-module/index.mjs
558
+ import { doAction } from "@wordpress/hooks";
559
+ var logged = /* @__PURE__ */ Object.create(null);
560
+ function deprecated(feature, options2 = {}) {
561
+ const { since, version, alternative, plugin, link, hint } = options2;
562
+ const pluginMessage = plugin ? ` from ${plugin}` : "";
563
+ const sinceMessage = since ? ` since version ${since}` : "";
564
+ const versionMessage = version ? ` and will be removed${pluginMessage} in version ${version}` : "";
565
+ const useInsteadMessage = alternative ? ` Please use ${alternative} instead.` : "";
566
+ const linkMessage = link ? ` See: ${link}` : "";
567
+ const hintMessage = hint ? ` Note: ${hint}` : "";
568
+ const message = `${feature} is deprecated${sinceMessage}${versionMessage}.${useInsteadMessage}${linkMessage}${hintMessage}`;
569
+ if (message in logged) {
570
+ return;
571
+ }
572
+ doAction("deprecated", feature, options2, message);
573
+ console.warn(message);
574
+ logged[message] = true;
575
+ }
576
+
585
577
  // ../compose/build-module/hooks/use-instance-id/index.mjs
586
578
  var instanceMap = /* @__PURE__ */ new WeakMap();
587
579
  function createId(object) {
@@ -1483,9 +1475,9 @@ if (typeof process === "undefined" || true) {
1483
1475
  registerStyle("1fb29d3a3c", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid #0000)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid #0000);transition:var(--_gcd-a-transition,none)}");
1484
1476
  }
1485
1477
  var global_css_defense_default = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
1486
- var Text = forwardRef(function Text2({ variant = "body-md", render: render4, className: className2, ...props }, ref) {
1478
+ var Text = forwardRef(function Text2({ variant = "body-md", render: render5, className: className2, ...props }, ref) {
1487
1479
  const element = useRender({
1488
- render: render4,
1480
+ render: render5,
1489
1481
  defaultTagName: "span",
1490
1482
  ref,
1491
1483
  props: mergeProps(props, {
@@ -1856,11 +1848,11 @@ if (typeof process === "undefined" || true) {
1856
1848
  registerStyle3("7bb6e0116a", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#e4e4e4);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}");
1857
1849
  }
1858
1850
  var style_default3 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
1859
- var Root = forwardRef(function Card({ render: render4, ...restProps }, ref) {
1851
+ var Root = forwardRef(function Card({ render: render5, ...restProps }, ref) {
1860
1852
  const mergedClassName = clsx4(style_default3.root, resets_default["box-sizing"]);
1861
1853
  const element = useRender2({
1862
1854
  defaultTagName: "div",
1863
- render: render4,
1855
+ render: render5,
1864
1856
  ref,
1865
1857
  props: mergeProps2({ className: mergedClassName }, restProps)
1866
1858
  });
@@ -1954,10 +1946,10 @@ if (typeof process === "undefined" || true) {
1954
1946
  }
1955
1947
  var style_default4 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
1956
1948
  var Header = forwardRef(
1957
- function CardHeader({ render: render4, ...props }, ref) {
1949
+ function CardHeader({ render: render5, ...props }, ref) {
1958
1950
  const element = useRender3({
1959
1951
  defaultTagName: "div",
1960
- render: render4,
1952
+ render: render5,
1961
1953
  ref,
1962
1954
  props: mergeProps3({ className: style_default4.header }, props)
1963
1955
  });
@@ -2052,10 +2044,10 @@ if (typeof process === "undefined" || true) {
2052
2044
  }
2053
2045
  var style_default5 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
2054
2046
  var Content = forwardRef(
2055
- function CardContent({ render: render4, ...props }, ref) {
2047
+ function CardContent({ render: render5, ...props }, ref) {
2056
2048
  const element = useRender4({
2057
2049
  defaultTagName: "div",
2058
- render: render4,
2050
+ render: render5,
2059
2051
  ref,
2060
2052
  props: mergeProps4({ className: style_default5.content }, props)
2061
2053
  });
@@ -2150,10 +2142,10 @@ if (typeof process === "undefined" || true) {
2150
2142
  }
2151
2143
  var style_default6 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
2152
2144
  var FullBleed = forwardRef(
2153
- function CardFullBleed({ render: render4, ...props }, ref) {
2145
+ function CardFullBleed({ render: render5, ...props }, ref) {
2154
2146
  const element = useRender5({
2155
2147
  defaultTagName: "div",
2156
- render: render4,
2148
+ render: render5,
2157
2149
  ref,
2158
2150
  props: mergeProps5(
2159
2151
  { className: style_default6.fullbleed },
@@ -2168,13 +2160,13 @@ var FullBleed = forwardRef(
2168
2160
  import { jsx as jsx5 } from "react/jsx-runtime";
2169
2161
  var DEFAULT_TAG = /* @__PURE__ */ jsx5("div", {});
2170
2162
  var Title = forwardRef(
2171
- function CardTitle({ render: render4 = DEFAULT_TAG, children, ...props }, ref) {
2163
+ function CardTitle({ render: render5 = DEFAULT_TAG, children, ...props }, ref) {
2172
2164
  return /* @__PURE__ */ jsx5(
2173
2165
  Text,
2174
2166
  {
2175
2167
  ref,
2176
2168
  variant: "heading-lg",
2177
- render: render4,
2169
+ render: render5,
2178
2170
  ...props,
2179
2171
  children
2180
2172
  }
@@ -2221,12 +2213,12 @@ __export(collapsible_card_exports, {
2221
2213
  // ../ui/build-module/collapsible-card/root.mjs
2222
2214
  import { jsx as jsx9 } from "react/jsx-runtime";
2223
2215
  var Root3 = forwardRef(
2224
- function CollapsibleCardRoot({ render: render4, ...restProps }, ref) {
2216
+ function CollapsibleCardRoot({ render: render5, ...restProps }, ref) {
2225
2217
  return /* @__PURE__ */ jsx9(
2226
2218
  Root2,
2227
2219
  {
2228
2220
  ref,
2229
- render: /* @__PURE__ */ jsx9(Root, { render: render4 }),
2221
+ render: /* @__PURE__ */ jsx9(Root, { render: render5 }),
2230
2222
  ...restProps
2231
2223
  }
2232
2224
  );
@@ -2240,15 +2232,12 @@ import clsx5 from "clsx";
2240
2232
  // ../icons/build-module/icon/index.mjs
2241
2233
  var icon_default = forwardRef(
2242
2234
  ({ icon, size: size3 = 24, ...props }, ref) => {
2243
- return cloneElement(
2244
- icon,
2245
- {
2246
- width: size3,
2247
- height: size3,
2248
- ...props,
2249
- ref
2250
- }
2251
- );
2235
+ return cloneElement(icon, {
2236
+ width: size3,
2237
+ height: size3,
2238
+ ...props,
2239
+ ref
2240
+ });
2252
2241
  }
2253
2242
  );
2254
2243
 
@@ -2489,7 +2478,7 @@ if (typeof process === "undefined" || true) {
2489
2478
  }
2490
2479
  var focus_default = { "outset-ring--focus": "_08e8a2e44959f892__outset-ring--focus", "outset-ring--focus-except-active": "e25b2bdd7aa21721__outset-ring--focus-except-active", "outset-ring--focus-visible": "d0541bc9dd9dc7b6__outset-ring--focus-visible", "outset-ring--focus-within": "cd83dfc2126a0846__outset-ring--focus-within", "outset-ring--focus-within-except-active": "_970d04df7376df67__outset-ring--focus-within-except-active", "outset-ring--focus-within-visible": "c5cb3ee4bddaa8e4__outset-ring--focus-within-visible", "outset-ring--focus-parent-visible": "ecadb9e080e2dfa5__outset-ring--focus-parent-visible" };
2491
2480
  var Header2 = forwardRef(
2492
- function CollapsibleCardHeader({ children, className: className2, render: render4, ...restProps }, ref) {
2481
+ function CollapsibleCardHeader({ children, className: className2, render: render5, ...restProps }, ref) {
2493
2482
  const [descriptionId, setDescriptionId] = useState();
2494
2483
  const contextValue = useMemo(
2495
2484
  () => ({ setDescriptionId }),
@@ -2497,7 +2486,7 @@ var Header2 = forwardRef(
2497
2486
  );
2498
2487
  return useRender6({
2499
2488
  defaultTagName: "div",
2500
- render: render4,
2489
+ render: render5,
2501
2490
  ref,
2502
2491
  props: mergeProps6(restProps, {
2503
2492
  className: clsx5(
@@ -2660,7 +2649,7 @@ if (typeof process === "undefined" || true) {
2660
2649
  }
2661
2650
  var style_default8 = { "heading-wrapper": "_626190151275d6d3__heading-wrapper", "header-content": "cab17c7a373cb60d__header-content", "header-trigger-positioner": "dd89d27c4f15912d__header-trigger-positioner", "header-trigger-wrapper": "bcfab5f2448bafef__header-trigger-wrapper", "header-trigger": "_3106f8d2b0330faa__header-trigger", "header": "_5d2dfcb4085c6d0f__header", "content": "e34cf37ccd0d81e0__content", "overflowVisible": "_165c4572592944b2__overflowVisible", "content-inner": "_41bfdbf7b6c087c2__content-inner" };
2662
2651
  var Content2 = forwardRef(
2663
- function CollapsibleCardContent({ className: className2, render: render4, children, hiddenUntilFound = true, ...restProps }, ref) {
2652
+ function CollapsibleCardContent({ className: className2, render: render5, children, hiddenUntilFound = true, ...restProps }, ref) {
2664
2653
  return /* @__PURE__ */ jsx46(
2665
2654
  Panel,
2666
2655
  {
@@ -2676,7 +2665,7 @@ var Content2 = forwardRef(
2676
2665
  Content,
2677
2666
  {
2678
2667
  className: style_default8["content-inner"],
2679
- render: render4,
2668
+ render: render5,
2680
2669
  children
2681
2670
  }
2682
2671
  )
@@ -4050,10 +4039,7 @@ lock2(privateApis, {
4050
4039
 
4051
4040
  // ../ui/build-module/utils/render-slot-with-children.mjs
4052
4041
  function renderSlotWithChildren(slot, defaultSlot, children) {
4053
- return cloneElement(
4054
- slot ?? defaultSlot,
4055
- { children }
4056
- );
4042
+ return cloneElement(slot ?? defaultSlot, { children });
4057
4043
  }
4058
4044
 
4059
4045
  // ../ui/build-module/lock-unlock.mjs
@@ -4157,7 +4143,7 @@ var gapTokens = {
4157
4143
  "2xl": "var(--wpds-dimension-gap-2xl, 32px)",
4158
4144
  "3xl": "var(--wpds-dimension-gap-3xl, 40px)"
4159
4145
  };
4160
- var Stack = forwardRef(function Stack2({ direction, gap, align, justify, wrap, render: render4, ...props }, ref) {
4146
+ var Stack = forwardRef(function Stack2({ direction, gap, align, justify, wrap, render: render5, ...props }, ref) {
4161
4147
  const style = {
4162
4148
  gap: gap && gapTokens[gap],
4163
4149
  alignItems: align,
@@ -4166,7 +4152,7 @@ var Stack = forwardRef(function Stack2({ direction, gap, align, justify, wrap, r
4166
4152
  flexWrap: wrap
4167
4153
  };
4168
4154
  const element = useRender7({
4169
- render: render4,
4155
+ render: render5,
4170
4156
  ref,
4171
4157
  props: mergeProps7(props, { style, className: style_default10.stack })
4172
4158
  });
@@ -4681,9 +4667,9 @@ if (typeof process === "undefined" || true) {
4681
4667
  }
4682
4668
  var style_default13 = { "visually-hidden": "f37b9e2e191ebd66__visually-hidden" };
4683
4669
  var VisuallyHidden = forwardRef(
4684
- function VisuallyHidden2({ render: render4, ...restProps }, ref) {
4670
+ function VisuallyHidden2({ render: render5, ...restProps }, ref) {
4685
4671
  const element = useRender8({
4686
- render: render4,
4672
+ render: render5,
4687
4673
  ref,
4688
4674
  props: mergeProps8(
4689
4675
  { className: style_default13["visually-hidden"] },
@@ -5785,8 +5771,7 @@ function UnforwardedTooltip(props, ref) {
5785
5771
  render: children
5786
5772
  }) : children;
5787
5773
  }
5788
- function addDescribedById(el) {
5789
- const element = el;
5774
+ function addDescribedById(element) {
5790
5775
  return describedById && mounted && element.props["aria-describedby"] === void 0 && element.props["aria-label"] !== text ? cloneElement(element, {
5791
5776
  "aria-describedby": describedById
5792
5777
  }) : element;
@@ -7165,39 +7150,42 @@ function InputBase(props, ref) {
7165
7150
  }
7166
7151
  };
7167
7152
  }, [__next40pxDefaultSize, size3]);
7168
- return /* @__PURE__ */ _jsxs2(Root5, {
7169
- ...restProps,
7170
- ...getUIFlexProps(labelPosition),
7171
- className: className2,
7172
- gap: 2,
7173
- ref,
7174
- children: [/* @__PURE__ */ _jsx22(Label2, {
7175
- className: "components-input-control__label",
7176
- hideLabelFromVision,
7177
- labelPosition,
7178
- htmlFor: id,
7179
- children: label
7180
- }), /* @__PURE__ */ _jsxs2(Container, {
7181
- __unstableInputWidth,
7182
- className: "components-input-control__container",
7183
- disabled,
7184
- hideLabel,
7185
- labelPosition,
7186
- children: [/* @__PURE__ */ _jsxs2(ContextSystemProvider, {
7187
- value: prefixSuffixContextValue,
7188
- children: [prefix && /* @__PURE__ */ _jsx22(Prefix, {
7189
- className: "components-input-control__prefix",
7190
- children: prefix
7191
- }), children, suffix && /* @__PURE__ */ _jsx22(Suffix, {
7192
- className: "components-input-control__suffix",
7193
- children: suffix
7194
- })]
7195
- }), /* @__PURE__ */ _jsx22(backdrop_default, {
7153
+ return (
7154
+ // @ts-expect-error The `direction` prop from Flex (FlexDirection) conflicts with legacy SVGAttributes `direction` (string) that come from React intrinsic prop definitions.
7155
+ /* @__PURE__ */ _jsxs2(Root5, {
7156
+ ...restProps,
7157
+ ...getUIFlexProps(labelPosition),
7158
+ className: className2,
7159
+ gap: 2,
7160
+ ref,
7161
+ children: [/* @__PURE__ */ _jsx22(Label2, {
7162
+ className: "components-input-control__label",
7163
+ hideLabelFromVision,
7164
+ labelPosition,
7165
+ htmlFor: id,
7166
+ children: label
7167
+ }), /* @__PURE__ */ _jsxs2(Container, {
7168
+ __unstableInputWidth,
7169
+ className: "components-input-control__container",
7196
7170
  disabled,
7197
- isBorderless
7171
+ hideLabel,
7172
+ labelPosition,
7173
+ children: [/* @__PURE__ */ _jsxs2(ContextSystemProvider, {
7174
+ value: prefixSuffixContextValue,
7175
+ children: [prefix && /* @__PURE__ */ _jsx22(Prefix, {
7176
+ className: "components-input-control__prefix",
7177
+ children: prefix
7178
+ }), children, suffix && /* @__PURE__ */ _jsx22(Suffix, {
7179
+ className: "components-input-control__suffix",
7180
+ children: suffix
7181
+ })]
7182
+ }), /* @__PURE__ */ _jsx22(backdrop_default, {
7183
+ disabled,
7184
+ isBorderless
7185
+ })]
7198
7186
  })]
7199
- })]
7200
- });
7187
+ })
7188
+ );
7201
7189
  }
7202
7190
  var input_base_default = contextConnect(InputBase, "InputBase");
7203
7191
 
@@ -14752,7 +14740,7 @@ var Tab3 = forwardRef(function Tab22({
14752
14740
  children,
14753
14741
  tabId,
14754
14742
  disabled,
14755
- render: render4,
14743
+ render: render5,
14756
14744
  ...otherProps
14757
14745
  }, ref) {
14758
14746
  const {
@@ -14769,7 +14757,7 @@ var Tab3 = forwardRef(function Tab22({
14769
14757
  store,
14770
14758
  id: instancedTabId,
14771
14759
  disabled,
14772
- render: render4,
14760
+ render: render5,
14773
14761
  ...otherProps,
14774
14762
  children: [/* @__PURE__ */ _jsx98(TabChildren, {
14775
14763
  children
@@ -24588,7 +24576,7 @@ function RenderFromElements({
24588
24576
 
24589
24577
  // src/field-types/utils/render-default.tsx
24590
24578
  import { jsx as jsx113 } from "react/jsx-runtime";
24591
- function render({
24579
+ function render2({
24592
24580
  item: item2,
24593
24581
  field
24594
24582
  }) {
@@ -24681,7 +24669,7 @@ function isValidCustom(item2, field) {
24681
24669
  }
24682
24670
  var email_default = {
24683
24671
  type: "email",
24684
- render,
24672
+ render: render2,
24685
24673
  Edit: "email",
24686
24674
  sort: sort_text_default,
24687
24675
  enableSorting: true,
@@ -24784,7 +24772,7 @@ function isValidCustom2(item2, field) {
24784
24772
  }
24785
24773
  var integer_default = {
24786
24774
  type: "integer",
24787
- render,
24775
+ render: render2,
24788
24776
  Edit: "integer",
24789
24777
  sort: sort_number_default,
24790
24778
  enableSorting: true,
@@ -24867,7 +24855,7 @@ function isValidCustom3(item2, field) {
24867
24855
  }
24868
24856
  var number_default = {
24869
24857
  type: "number",
24870
- render,
24858
+ render: render2,
24871
24859
  Edit: "number",
24872
24860
  sort: sort_number_default,
24873
24861
  enableSorting: true,
@@ -24910,7 +24898,7 @@ var number_default = {
24910
24898
  // src/field-types/text.tsx
24911
24899
  var text_default = {
24912
24900
  type: "text",
24913
- render,
24901
+ render: render2,
24914
24902
  Edit: "text",
24915
24903
  sort: sort_text_default,
24916
24904
  enableSorting: true,
@@ -25005,7 +24993,7 @@ var sort = (a, b, direction) => {
25005
24993
  };
25006
24994
  var datetime_default = {
25007
24995
  type: "datetime",
25008
- render,
24996
+ render: render2,
25009
24997
  Edit: "datetime",
25010
24998
  sort,
25011
24999
  enableSorting: true,
@@ -25069,7 +25057,7 @@ var sort2 = (a, b, direction) => {
25069
25057
  };
25070
25058
  var date_default = {
25071
25059
  type: "date",
25072
- render,
25060
+ render: render2,
25073
25061
  Edit: "date",
25074
25062
  sort: sort2,
25075
25063
  enableSorting: true,
@@ -25149,7 +25137,7 @@ var sort3 = (a, b, direction) => {
25149
25137
  };
25150
25138
  var boolean_default = {
25151
25139
  type: "boolean",
25152
- render,
25140
+ render: render2,
25153
25141
  Edit: "checkbox",
25154
25142
  sort: sort3,
25155
25143
  validate: {
@@ -25203,7 +25191,7 @@ function getValueFormatted7({
25203
25191
  const arr = Array.isArray(value) ? value : [];
25204
25192
  return arr.join(", ");
25205
25193
  }
25206
- function render2({ item: item2, field }) {
25194
+ function render3({ item: item2, field }) {
25207
25195
  return getValueFormatted7({ item: item2, field });
25208
25196
  }
25209
25197
  function isValidCustom5(item2, field) {
@@ -25228,7 +25216,7 @@ var sort4 = (a, b, direction) => {
25228
25216
  };
25229
25217
  var array_default = {
25230
25218
  type: "array",
25231
- render: render2,
25219
+ render: render3,
25232
25220
  Edit: "array",
25233
25221
  sort: sort4,
25234
25222
  enableSorting: true,
@@ -25258,7 +25246,7 @@ function getValueFormatted8({
25258
25246
  }
25259
25247
  var password_default = {
25260
25248
  type: "password",
25261
- render,
25249
+ render: render2,
25262
25250
  Edit: "password",
25263
25251
  sort: () => 0,
25264
25252
  // Passwords should not be sortable for security reasons
@@ -25280,7 +25268,7 @@ var password_default = {
25280
25268
  // src/field-types/telephone.tsx
25281
25269
  var telephone_default = {
25282
25270
  type: "telephone",
25283
- render,
25271
+ render: render2,
25284
25272
  Edit: "telephone",
25285
25273
  sort: sort_text_default,
25286
25274
  enableSorting: true,
@@ -25313,7 +25301,7 @@ var telephone_default = {
25313
25301
  import { colord as colord8 } from "colord";
25314
25302
  import { __ as __56 } from "@wordpress/i18n";
25315
25303
  import { jsx as jsx114, jsxs as jsxs31 } from "react/jsx-runtime";
25316
- function render3({ item: item2, field }) {
25304
+ function render4({ item: item2, field }) {
25317
25305
  if (field.hasElements) {
25318
25306
  return /* @__PURE__ */ jsx114(RenderFromElements, { item: item2, field });
25319
25307
  }
@@ -25369,7 +25357,7 @@ var sort5 = (a, b, direction) => {
25369
25357
  };
25370
25358
  var color_default = {
25371
25359
  type: "color",
25372
- render: render3,
25360
+ render: render4,
25373
25361
  Edit: "color",
25374
25362
  sort: sort5,
25375
25363
  enableSorting: true,
@@ -25393,7 +25381,7 @@ var color_default = {
25393
25381
  // src/field-types/url.tsx
25394
25382
  var url_default = {
25395
25383
  type: "url",
25396
- render,
25384
+ render: render2,
25397
25385
  Edit: "url",
25398
25386
  sort: sort_text_default,
25399
25387
  enableSorting: true,
@@ -25431,7 +25419,7 @@ var sort6 = (a, b, direction) => {
25431
25419
  };
25432
25420
  var no_type_default = {
25433
25421
  // type: no type for this one
25434
- render,
25422
+ render: render2,
25435
25423
  Edit: null,
25436
25424
  sort: sort6,
25437
25425
  enableSorting: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/dataviews",
3
- "version": "15.0.0",
3
+ "version": "16.0.0",
4
4
  "description": "DataViews is a component that provides an API to render datasets using different types of layouts (table, grid, list, etc.).",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -53,20 +53,20 @@
53
53
  "sideEffects": false,
54
54
  "dependencies": {
55
55
  "@ariakit/react": "^0.4.21",
56
- "@wordpress/base-styles": "^9.0.0",
57
- "@wordpress/components": "^34.0.0",
58
- "@wordpress/compose": "^8.0.0",
59
- "@wordpress/data": "^10.47.0",
60
- "@wordpress/date": "^5.47.0",
61
- "@wordpress/deprecated": "^4.47.0",
62
- "@wordpress/element": "^7.0.0",
63
- "@wordpress/i18n": "^6.20.0",
64
- "@wordpress/icons": "^13.2.0",
65
- "@wordpress/keycodes": "^4.47.0",
66
- "@wordpress/primitives": "^4.47.0",
67
- "@wordpress/private-apis": "^1.47.0",
68
- "@wordpress/ui": "^0.14.0",
69
- "@wordpress/warning": "^3.47.0",
56
+ "@wordpress/base-styles": "^9.1.0",
57
+ "@wordpress/components": "^35.0.0",
58
+ "@wordpress/compose": "^8.1.0",
59
+ "@wordpress/data": "^10.48.0",
60
+ "@wordpress/date": "^5.48.0",
61
+ "@wordpress/deprecated": "^4.48.0",
62
+ "@wordpress/element": "^8.0.0",
63
+ "@wordpress/i18n": "^6.21.0",
64
+ "@wordpress/icons": "^13.3.0",
65
+ "@wordpress/keycodes": "^4.48.0",
66
+ "@wordpress/primitives": "^4.48.0",
67
+ "@wordpress/private-apis": "^1.48.0",
68
+ "@wordpress/ui": "^0.15.0",
69
+ "@wordpress/warning": "^3.48.0",
70
70
  "clsx": "^2.1.1",
71
71
  "colord": "^2.7.0",
72
72
  "date-fns": "^4.1.0",
@@ -83,8 +83,8 @@
83
83
  "storybook": "^10.2.8"
84
84
  },
85
85
  "peerDependencies": {
86
- "react": "^19.2.4",
87
- "react-dom": "^19.2.4"
86
+ "react": "^18.0.0",
87
+ "react-dom": "^18.0.0"
88
88
  },
89
89
  "publishConfig": {
90
90
  "access": "public"
@@ -92,5 +92,5 @@
92
92
  "scripts": {
93
93
  "build:wp": "node build.cjs"
94
94
  },
95
- "gitHead": "d653c5fd6161571a0c2ebde28553d6e25624eacc"
95
+ "gitHead": "e7856693aeb4e2522d13608cd32c994e4a97cb9c"
96
96
  }
@@ -54,7 +54,7 @@ function CalendarDateTimeControl< Item >( {
54
54
  const inputControlRef = useRef< HTMLInputElement >( null );
55
55
  const validationTimeoutRef =
56
56
  useRef< ReturnType< typeof setTimeout > >( undefined );
57
- const previousFocusRef = useRef< Element >( null );
57
+ const previousFocusRef = useRef< Element | null >( null );
58
58
 
59
59
  const { minConstraint, maxConstraint, disabledMatchers } =
60
60
  useDisabledDateMatchers( isValid, parseDateTime );