@wordpress/dataviews 14.0.0 → 14.1.1-next.v.202604091042.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.
- package/CHANGELOG.md +10 -0
- package/README.md +16 -5
- package/build/components/dataform-controls/array.cjs +2 -0
- package/build/components/dataform-controls/array.cjs.map +2 -2
- package/build/components/dataform-controls/checkbox.cjs +3 -1
- package/build/components/dataform-controls/checkbox.cjs.map +2 -2
- package/build/components/dataform-controls/color.cjs +8 -2
- package/build/components/dataform-controls/color.cjs.map +2 -2
- package/build/components/dataform-controls/date.cjs +20 -9
- package/build/components/dataform-controls/date.cjs.map +2 -2
- package/build/components/dataform-controls/datetime.cjs +5 -2
- package/build/components/dataform-controls/datetime.cjs.map +2 -2
- package/build/components/dataform-controls/password.cjs +4 -1
- package/build/components/dataform-controls/password.cjs.map +2 -2
- package/build/components/dataform-controls/radio.cjs +3 -1
- package/build/components/dataform-controls/radio.cjs.map +2 -2
- package/build/components/dataform-controls/select.cjs +3 -1
- package/build/components/dataform-controls/select.cjs.map +2 -2
- package/build/components/dataform-controls/textarea.cjs +2 -0
- package/build/components/dataform-controls/textarea.cjs.map +2 -2
- package/build/components/dataform-controls/toggle-group.cjs +3 -1
- package/build/components/dataform-controls/toggle-group.cjs.map +2 -2
- package/build/components/dataform-controls/toggle.cjs +3 -1
- package/build/components/dataform-controls/toggle.cjs.map +2 -2
- package/build/components/dataform-controls/utils/relative-date-control.cjs +5 -2
- package/build/components/dataform-controls/utils/relative-date-control.cjs.map +2 -2
- package/build/components/dataform-controls/utils/validated-input.cjs +2 -0
- package/build/components/dataform-controls/utils/validated-input.cjs.map +2 -2
- package/build/components/dataform-controls/utils/validated-number.cjs +3 -1
- package/build/components/dataform-controls/utils/validated-number.cjs.map +2 -2
- package/build/components/dataviews-filters/input-widget.cjs +4 -0
- package/build/components/dataviews-filters/input-widget.cjs.map +2 -2
- package/build/components/dataviews-pagination/index.cjs +1 -0
- package/build/components/dataviews-pagination/index.cjs.map +2 -2
- package/build/field-types/index.cjs +1 -0
- package/build/field-types/index.cjs.map +2 -2
- package/build/types/field-api.cjs.map +1 -1
- package/build-module/components/dataform-controls/array.mjs +2 -0
- package/build-module/components/dataform-controls/array.mjs.map +2 -2
- package/build-module/components/dataform-controls/checkbox.mjs +3 -1
- package/build-module/components/dataform-controls/checkbox.mjs.map +2 -2
- package/build-module/components/dataform-controls/color.mjs +8 -2
- package/build-module/components/dataform-controls/color.mjs.map +2 -2
- package/build-module/components/dataform-controls/date.mjs +20 -9
- package/build-module/components/dataform-controls/date.mjs.map +2 -2
- package/build-module/components/dataform-controls/datetime.mjs +5 -2
- package/build-module/components/dataform-controls/datetime.mjs.map +2 -2
- package/build-module/components/dataform-controls/password.mjs +4 -1
- package/build-module/components/dataform-controls/password.mjs.map +2 -2
- package/build-module/components/dataform-controls/radio.mjs +3 -1
- package/build-module/components/dataform-controls/radio.mjs.map +2 -2
- package/build-module/components/dataform-controls/select.mjs +3 -1
- package/build-module/components/dataform-controls/select.mjs.map +2 -2
- package/build-module/components/dataform-controls/textarea.mjs +2 -0
- package/build-module/components/dataform-controls/textarea.mjs.map +2 -2
- package/build-module/components/dataform-controls/toggle-group.mjs +3 -1
- package/build-module/components/dataform-controls/toggle-group.mjs.map +2 -2
- package/build-module/components/dataform-controls/toggle.mjs +3 -1
- package/build-module/components/dataform-controls/toggle.mjs.map +2 -2
- package/build-module/components/dataform-controls/utils/relative-date-control.mjs +5 -2
- package/build-module/components/dataform-controls/utils/relative-date-control.mjs.map +2 -2
- package/build-module/components/dataform-controls/utils/validated-input.mjs +2 -0
- package/build-module/components/dataform-controls/utils/validated-input.mjs.map +2 -2
- package/build-module/components/dataform-controls/utils/validated-number.mjs +3 -1
- package/build-module/components/dataform-controls/utils/validated-number.mjs.map +2 -2
- package/build-module/components/dataviews-filters/input-widget.mjs +4 -0
- package/build-module/components/dataviews-filters/input-widget.mjs.map +2 -2
- package/build-module/components/dataviews-pagination/index.mjs +1 -0
- package/build-module/components/dataviews-pagination/index.mjs.map +2 -2
- package/build-module/field-types/index.mjs +1 -0
- package/build-module/field-types/index.mjs.map +2 -2
- package/build-style/style-rtl.css +2 -2
- package/build-style/style.css +2 -2
- package/build-types/components/dataform-controls/array.d.ts.map +1 -1
- package/build-types/components/dataform-controls/checkbox.d.ts.map +1 -1
- package/build-types/components/dataform-controls/color.d.ts.map +1 -1
- package/build-types/components/dataform-controls/date.d.ts.map +1 -1
- package/build-types/components/dataform-controls/datetime.d.ts.map +1 -1
- package/build-types/components/dataform-controls/password.d.ts.map +1 -1
- package/build-types/components/dataform-controls/radio.d.ts.map +1 -1
- package/build-types/components/dataform-controls/select.d.ts.map +1 -1
- package/build-types/components/dataform-controls/textarea.d.ts.map +1 -1
- package/build-types/components/dataform-controls/toggle-group.d.ts.map +1 -1
- package/build-types/components/dataform-controls/toggle.d.ts.map +1 -1
- package/build-types/components/dataform-controls/utils/relative-date-control.d.ts.map +1 -1
- package/build-types/components/dataform-controls/utils/validated-input.d.ts.map +1 -1
- package/build-types/components/dataform-controls/utils/validated-number.d.ts.map +1 -1
- package/build-types/components/dataviews-filters/input-widget.d.ts.map +1 -1
- package/build-types/components/dataviews-layouts/index.d.ts +6 -6
- package/build-types/components/dataviews-pagination/index.d.ts.map +1 -1
- package/build-types/components/dataviews-search/index.d.ts +1 -1
- package/build-types/components/dataviews-search/index.d.ts.map +1 -1
- package/build-types/constants.d.ts +2 -2
- package/build-types/dataform/stories/index.story.d.ts +11 -1
- package/build-types/dataform/stories/index.story.d.ts.map +1 -1
- package/build-types/dataform/stories/layout-regular.d.ts +2 -1
- package/build-types/dataform/stories/layout-regular.d.ts.map +1 -1
- package/build-types/field-types/array.d.ts +1 -1
- package/build-types/field-types/array.d.ts.map +1 -1
- package/build-types/field-types/boolean.d.ts +1 -1
- package/build-types/field-types/boolean.d.ts.map +1 -1
- package/build-types/field-types/color.d.ts +1 -1
- package/build-types/field-types/color.d.ts.map +1 -1
- package/build-types/field-types/email.d.ts +1 -1
- package/build-types/field-types/email.d.ts.map +1 -1
- package/build-types/field-types/index.d.ts.map +1 -1
- package/build-types/field-types/integer.d.ts +1 -1
- package/build-types/field-types/integer.d.ts.map +1 -1
- package/build-types/field-types/number.d.ts +1 -1
- package/build-types/field-types/number.d.ts.map +1 -1
- package/build-types/field-types/stories/index.story.d.ts +37 -15
- package/build-types/field-types/stories/index.story.d.ts.map +1 -1
- package/build-types/types/field-api.d.ts +13 -0
- package/build-types/types/field-api.d.ts.map +1 -1
- package/build-wp/index.js +124 -56
- package/package.json +16 -16
- package/src/components/dataform-controls/array.tsx +2 -0
- package/src/components/dataform-controls/checkbox.tsx +2 -0
- package/src/components/dataform-controls/color.tsx +7 -0
- package/src/components/dataform-controls/date.tsx +15 -4
- package/src/components/dataform-controls/datetime.tsx +3 -0
- package/src/components/dataform-controls/password.tsx +3 -0
- package/src/components/dataform-controls/radio.tsx +2 -0
- package/src/components/dataform-controls/select.tsx +2 -0
- package/src/components/dataform-controls/textarea.tsx +2 -0
- package/src/components/dataform-controls/toggle-group.tsx +2 -0
- package/src/components/dataform-controls/toggle.tsx +2 -0
- package/src/components/dataform-controls/utils/relative-date-control.tsx +3 -0
- package/src/components/dataform-controls/utils/validated-input.tsx +2 -0
- package/src/components/dataform-controls/utils/validated-number.tsx +2 -0
- package/src/components/dataviews-filters/input-widget.tsx +4 -0
- package/src/components/dataviews-layouts/activity/style.scss +2 -2
- package/src/components/dataviews-pagination/index.tsx +1 -0
- package/src/dataform/stories/index.story.tsx +7 -0
- package/src/dataform/stories/layout-regular.tsx +15 -1
- package/src/field-types/index.tsx +4 -0
- package/src/field-types/stories/index.story.tsx +66 -5
- package/src/types/field-api.ts +16 -0
package/build-wp/index.js
CHANGED
|
@@ -1497,10 +1497,10 @@ if (typeof document !== "undefined" && true && !document.head.querySelector("sty
|
|
|
1497
1497
|
document.head.appendChild(style);
|
|
1498
1498
|
}
|
|
1499
1499
|
var resets_default = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
|
|
1500
|
-
if (typeof document !== "undefined" && true && !document.head.querySelector("style[data-wp-hash='
|
|
1500
|
+
if (typeof document !== "undefined" && true && !document.head.querySelector("style[data-wp-hash='16af8ff13f']")) {
|
|
1501
1501
|
const style = document.createElement("style");
|
|
1502
|
-
style.setAttribute("data-wp-hash", "
|
|
1503
|
-
style.appendChild(document.createTextNode("@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,#e0e0e0);border-radius:var(--wpds-border-radius-lg,8px);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)}._3c83b3f0225d6364__title{
|
|
1502
|
+
style.setAttribute("data-wp-hash", "16af8ff13f");
|
|
1503
|
+
style.appendChild(document.createTextNode("@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,#e0e0e0);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)}._3c83b3f0225d6364__title{margin:0}}"));
|
|
1504
1504
|
document.head.appendChild(style);
|
|
1505
1505
|
}
|
|
1506
1506
|
var style_default2 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed", "title": "_3c83b3f0225d6364__title" };
|
|
@@ -1517,10 +1517,10 @@ var Root = forwardRef(function Card({ render: render5, ...restProps }, ref) {
|
|
|
1517
1517
|
|
|
1518
1518
|
// ../ui/build-module/card/header.mjs
|
|
1519
1519
|
import { mergeProps as mergeProps3, useRender as useRender3 } from "@base-ui/react";
|
|
1520
|
-
if (typeof document !== "undefined" && true && !document.head.querySelector("style[data-wp-hash='
|
|
1520
|
+
if (typeof document !== "undefined" && true && !document.head.querySelector("style[data-wp-hash='16af8ff13f']")) {
|
|
1521
1521
|
const style = document.createElement("style");
|
|
1522
|
-
style.setAttribute("data-wp-hash", "
|
|
1523
|
-
style.appendChild(document.createTextNode("@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,#e0e0e0);border-radius:var(--wpds-border-radius-lg,8px);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)}._3c83b3f0225d6364__title{
|
|
1522
|
+
style.setAttribute("data-wp-hash", "16af8ff13f");
|
|
1523
|
+
style.appendChild(document.createTextNode("@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,#e0e0e0);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)}._3c83b3f0225d6364__title{margin:0}}"));
|
|
1524
1524
|
document.head.appendChild(style);
|
|
1525
1525
|
}
|
|
1526
1526
|
var style_default3 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed", "title": "_3c83b3f0225d6364__title" };
|
|
@@ -1538,10 +1538,10 @@ var Header = forwardRef(
|
|
|
1538
1538
|
|
|
1539
1539
|
// ../ui/build-module/card/content.mjs
|
|
1540
1540
|
import { mergeProps as mergeProps4, useRender as useRender4 } from "@base-ui/react";
|
|
1541
|
-
if (typeof document !== "undefined" && true && !document.head.querySelector("style[data-wp-hash='
|
|
1541
|
+
if (typeof document !== "undefined" && true && !document.head.querySelector("style[data-wp-hash='16af8ff13f']")) {
|
|
1542
1542
|
const style = document.createElement("style");
|
|
1543
|
-
style.setAttribute("data-wp-hash", "
|
|
1544
|
-
style.appendChild(document.createTextNode("@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,#e0e0e0);border-radius:var(--wpds-border-radius-lg,8px);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)}._3c83b3f0225d6364__title{
|
|
1543
|
+
style.setAttribute("data-wp-hash", "16af8ff13f");
|
|
1544
|
+
style.appendChild(document.createTextNode("@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,#e0e0e0);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)}._3c83b3f0225d6364__title{margin:0}}"));
|
|
1545
1545
|
document.head.appendChild(style);
|
|
1546
1546
|
}
|
|
1547
1547
|
var style_default4 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed", "title": "_3c83b3f0225d6364__title" };
|
|
@@ -1559,10 +1559,10 @@ var Content = forwardRef(
|
|
|
1559
1559
|
|
|
1560
1560
|
// ../ui/build-module/card/full-bleed.mjs
|
|
1561
1561
|
import { mergeProps as mergeProps5, useRender as useRender5 } from "@base-ui/react";
|
|
1562
|
-
if (typeof document !== "undefined" && true && !document.head.querySelector("style[data-wp-hash='
|
|
1562
|
+
if (typeof document !== "undefined" && true && !document.head.querySelector("style[data-wp-hash='16af8ff13f']")) {
|
|
1563
1563
|
const style = document.createElement("style");
|
|
1564
|
-
style.setAttribute("data-wp-hash", "
|
|
1565
|
-
style.appendChild(document.createTextNode("@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,#e0e0e0);border-radius:var(--wpds-border-radius-lg,8px);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)}._3c83b3f0225d6364__title{
|
|
1564
|
+
style.setAttribute("data-wp-hash", "16af8ff13f");
|
|
1565
|
+
style.appendChild(document.createTextNode("@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,#e0e0e0);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)}._3c83b3f0225d6364__title{margin:0}}"));
|
|
1566
1566
|
document.head.appendChild(style);
|
|
1567
1567
|
}
|
|
1568
1568
|
var style_default5 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed", "title": "_3c83b3f0225d6364__title" };
|
|
@@ -1587,20 +1587,33 @@ import clsx5 from "clsx";
|
|
|
1587
1587
|
// ../ui/build-module/text/text.mjs
|
|
1588
1588
|
import { useRender as useRender6, mergeProps as mergeProps6 } from "@base-ui/react";
|
|
1589
1589
|
import clsx4 from "clsx";
|
|
1590
|
-
if (typeof document !== "undefined" && true && !document.head.querySelector("style[data-wp-hash='
|
|
1590
|
+
if (typeof document !== "undefined" && true && !document.head.querySelector("style[data-wp-hash='516f9accb4']")) {
|
|
1591
1591
|
const style = document.createElement("style");
|
|
1592
|
-
style.setAttribute("data-wp-hash", "
|
|
1593
|
-
style.appendChild(document.createTextNode('@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._14437cfb77831647__heading-2xl{font-size:var(--wpds-font-size-2xl,32px);line-height:var(--wpds-font-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-font-weight-medium,499)}._3c78b7fa9b4072dd__heading-xl{font-size:var(--wpds-font-size-xl,20px);line-height:var(--wpds-font-line-height-md,24px)}.aa58f227716bcde2__heading-lg{font-size:var(--wpds-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-font-weight-medium,499);line-height:var(--wpds-font-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{font-size:var(--wpds-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{font-family:var(--wpds-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-font-size-xs,11px);font-weight:var(--wpds-font-weight-medium,499);line-height:var(--wpds-font-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{font-size:var(--wpds-font-size-xl,20px);line-height:var(--wpds-font-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-font-weight-regular,400)}.ca1aa3fc2029e958__body-lg{font-size:var(--wpds-font-size-lg,15px);line-height:var(--wpds-font-line-height-md,24px)}._131101940be12424__body-md{font-size:var(--wpds-font-size-md,13px);line-height:var(--wpds-font-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-font-weight-regular,400)}._0e8d87a42c1f75fa__body-sm{font-size:var(--wpds-font-size-sm,12px);line-height:var(--wpds-font-line-height-xs,16px)}}'));
|
|
1592
|
+
style.setAttribute("data-wp-hash", "516f9accb4");
|
|
1593
|
+
style.appendChild(document.createTextNode('@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._83ed8a8da5dd50ea__text{margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-font-size-2xl,32px);font-size:var(--wpds-font-size-2xl,32px);line-height:var(--wpds-font-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-font-weight-medium,499)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-font-size-xl,20px);font-size:var(--wpds-font-size-xl,20px);line-height:var(--wpds-font-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-font-size-lg,15px);font-size:var(--wpds-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-font-weight-medium,499);line-height:var(--wpds-font-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-font-size-md,13px);font-size:var(--wpds-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-font-size-xs,11px);font-family:var(--wpds-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-font-size-xs,11px);font-weight:var(--wpds-font-weight-medium,499);line-height:var(--wpds-font-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-p-font-size:var(--wpds-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-font-line-height-xl,32px);font-size:var(--wpds-font-size-xl,20px);line-height:var(--wpds-font-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-font-weight-regular,400)}.ca1aa3fc2029e958__body-lg{--_gcd-p-font-size:var(--wpds-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-font-line-height-md,24px);font-size:var(--wpds-font-size-lg,15px);line-height:var(--wpds-font-line-height-md,24px)}._131101940be12424__body-md{--_gcd-p-font-size:var(--wpds-font-size-md,13px);--_gcd-p-line-height:var(--wpds-font-line-height-sm,20px);font-size:var(--wpds-font-size-md,13px);line-height:var(--wpds-font-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-font-weight-regular,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-p-font-size:var(--wpds-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-font-line-height-xs,16px);font-size:var(--wpds-font-size-sm,12px);line-height:var(--wpds-font-line-height-xs,16px)}}'));
|
|
1594
1594
|
document.head.appendChild(style);
|
|
1595
1595
|
}
|
|
1596
|
-
var style_default6 = { "heading-2xl": "_14437cfb77831647__heading-2xl", "heading-xl": "_3c78b7fa9b4072dd__heading-xl", "heading-lg": "aa58f227716bcde2__heading-lg", "heading-md": "fc4da56d8dfe52c4__heading-md", "heading-sm": "a9b78c7c82e8dff7__heading-sm", "body-xl": "_305ff559e52180d5__body-xl", "body-lg": "ca1aa3fc2029e958__body-lg", "body-md": "_131101940be12424__body-md", "body-sm": "_0e8d87a42c1f75fa__body-sm" };
|
|
1596
|
+
var style_default6 = { "text": "_83ed8a8da5dd50ea__text", "heading-2xl": "_14437cfb77831647__heading-2xl", "heading-xl": "_3c78b7fa9b4072dd__heading-xl", "heading-lg": "aa58f227716bcde2__heading-lg", "heading-md": "fc4da56d8dfe52c4__heading-md", "heading-sm": "a9b78c7c82e8dff7__heading-sm", "body-xl": "_305ff559e52180d5__body-xl", "body-lg": "ca1aa3fc2029e958__body-lg", "body-md": "_131101940be12424__body-md", "body-sm": "_0e8d87a42c1f75fa__body-sm" };
|
|
1597
|
+
if (typeof document !== "undefined" && true && !document.head.querySelector("style[data-wp-hash='3bd1d35622']")) {
|
|
1598
|
+
const style = document.createElement("style");
|
|
1599
|
+
style.setAttribute("data-wp-hash", "3bd1d35622");
|
|
1600
|
+
style.appendChild(document.createTextNode("._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,#8a8a8a))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-interactive-neutral-disabled,#8a8a8a))}}&: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-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)}"));
|
|
1601
|
+
document.head.appendChild(style);
|
|
1602
|
+
}
|
|
1603
|
+
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" };
|
|
1597
1604
|
var Text = forwardRef(function Text2({ variant = "body-md", render: render5, className: className2, ...props }, ref) {
|
|
1598
1605
|
const element = useRender6({
|
|
1599
1606
|
render: render5,
|
|
1600
1607
|
defaultTagName: "span",
|
|
1601
1608
|
ref,
|
|
1602
1609
|
props: mergeProps6(props, {
|
|
1603
|
-
className: clsx4(
|
|
1610
|
+
className: clsx4(
|
|
1611
|
+
style_default6.text,
|
|
1612
|
+
variant.startsWith("heading-") && global_css_defense_default.heading,
|
|
1613
|
+
variant.startsWith("body-") && global_css_defense_default.p,
|
|
1614
|
+
style_default6[variant],
|
|
1615
|
+
className2
|
|
1616
|
+
)
|
|
1604
1617
|
})
|
|
1605
1618
|
});
|
|
1606
1619
|
return element;
|
|
@@ -1608,10 +1621,10 @@ var Text = forwardRef(function Text2({ variant = "body-md", render: render5, cla
|
|
|
1608
1621
|
|
|
1609
1622
|
// ../ui/build-module/card/title.mjs
|
|
1610
1623
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
1611
|
-
if (typeof document !== "undefined" && true && !document.head.querySelector("style[data-wp-hash='
|
|
1624
|
+
if (typeof document !== "undefined" && true && !document.head.querySelector("style[data-wp-hash='16af8ff13f']")) {
|
|
1612
1625
|
const style = document.createElement("style");
|
|
1613
|
-
style.setAttribute("data-wp-hash", "
|
|
1614
|
-
style.appendChild(document.createTextNode("@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,#e0e0e0);border-radius:var(--wpds-border-radius-lg,8px);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)}._3c83b3f0225d6364__title{
|
|
1626
|
+
style.setAttribute("data-wp-hash", "16af8ff13f");
|
|
1627
|
+
style.appendChild(document.createTextNode("@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,#e0e0e0);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)}._3c83b3f0225d6364__title{margin:0}}"));
|
|
1615
1628
|
document.head.appendChild(style);
|
|
1616
1629
|
}
|
|
1617
1630
|
var style_default7 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed", "title": "_3c83b3f0225d6364__title" };
|
|
@@ -1846,10 +1859,10 @@ if (typeof document !== "undefined" && true && !document.head.querySelector("sty
|
|
|
1846
1859
|
document.head.appendChild(style);
|
|
1847
1860
|
}
|
|
1848
1861
|
var style_default8 = { "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", "content-inner": "_41bfdbf7b6c087c2__content-inner" };
|
|
1849
|
-
if (typeof document !== "undefined" && true && !document.head.querySelector("style[data-wp-hash='
|
|
1862
|
+
if (typeof document !== "undefined" && true && !document.head.querySelector("style[data-wp-hash='2a5ab8f3a7']")) {
|
|
1850
1863
|
const style = document.createElement("style");
|
|
1851
|
-
style.setAttribute("data-wp-hash", "
|
|
1852
|
-
style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._08e8a2e44959f892__outset-ring--focus,._970d04df7376df67__outset-ring--focus-within-except-active,.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible,.cd83dfc2126a0846__outset-ring--focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active,.ecadb9e080e2dfa5__outset-ring--focus-parent-visible{@media not (prefers-reduced-motion){transition:outline .1s ease-out
|
|
1864
|
+
style.setAttribute("data-wp-hash", "2a5ab8f3a7");
|
|
1865
|
+
style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._08e8a2e44959f892__outset-ring--focus,._970d04df7376df67__outset-ring--focus-within-except-active,.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible,.cd83dfc2126a0846__outset-ring--focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active,.ecadb9e080e2dfa5__outset-ring--focus-parent-visible{@media not (prefers-reduced-motion){--_gcd-a-transition:outline 0.1s ease-out;transition:outline .1s ease-out}outline:0 solid #0000;outline-offset:1px}._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9))}}"));
|
|
1853
1866
|
document.head.appendChild(style);
|
|
1854
1867
|
}
|
|
1855
1868
|
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" };
|
|
@@ -3216,7 +3229,7 @@ function warning(message) {
|
|
|
3216
3229
|
console.warn(message);
|
|
3217
3230
|
try {
|
|
3218
3231
|
throw Error(message);
|
|
3219
|
-
} catch
|
|
3232
|
+
} catch {
|
|
3220
3233
|
}
|
|
3221
3234
|
logged2.add(message);
|
|
3222
3235
|
}
|
|
@@ -12470,8 +12483,9 @@ function clampNumberOfMonths(numberOfMonths) {
|
|
|
12470
12483
|
import { __ as __16, sprintf as sprintf4 } from "@wordpress/i18n";
|
|
12471
12484
|
function isLocaleRTL(localeCode) {
|
|
12472
12485
|
const localeObj = new Intl.Locale(localeCode);
|
|
12473
|
-
|
|
12474
|
-
|
|
12486
|
+
const direction = localeObj.getTextInfo?.().direction;
|
|
12487
|
+
if (direction) {
|
|
12488
|
+
return direction === "rtl";
|
|
12475
12489
|
}
|
|
12476
12490
|
return [
|
|
12477
12491
|
"ar",
|
|
@@ -12790,17 +12804,21 @@ function ValidityIndicator({
|
|
|
12790
12804
|
// ../components/build-module/validated-form-controls/control-with-error.mjs
|
|
12791
12805
|
import { Fragment as _Fragment13, jsxs as _jsxs33, jsx as _jsx107 } from "react/jsx-runtime";
|
|
12792
12806
|
function appendRequiredIndicator(label, required, markWhenOptional) {
|
|
12807
|
+
let suffix;
|
|
12793
12808
|
if (required && !markWhenOptional) {
|
|
12794
|
-
|
|
12795
|
-
|
|
12796
|
-
})
|
|
12809
|
+
suffix = `(${__17("Required")})`;
|
|
12810
|
+
} else if (!required && markWhenOptional) {
|
|
12811
|
+
suffix = `(${__17("Optional")})`;
|
|
12797
12812
|
}
|
|
12798
|
-
if (!
|
|
12799
|
-
return
|
|
12800
|
-
|
|
12801
|
-
|
|
12813
|
+
if (!suffix) {
|
|
12814
|
+
return label;
|
|
12815
|
+
}
|
|
12816
|
+
if (typeof label === "string") {
|
|
12817
|
+
return `${label} ${suffix}`;
|
|
12802
12818
|
}
|
|
12803
|
-
return
|
|
12819
|
+
return /* @__PURE__ */ _jsxs33(_Fragment13, {
|
|
12820
|
+
children: [label, " ", suffix]
|
|
12821
|
+
});
|
|
12804
12822
|
}
|
|
12805
12823
|
var VALIDITY_VISIBLE_ATTRIBUTE = "data-validity-visible";
|
|
12806
12824
|
var className = "components-validated-control";
|
|
@@ -16553,6 +16571,7 @@ function DataViewsPagination() {
|
|
|
16553
16571
|
),
|
|
16554
16572
|
{
|
|
16555
16573
|
div: /* @__PURE__ */ jsx62("div", { "aria-hidden": true }),
|
|
16574
|
+
// @ts-expect-error — Tag injected via sprintf argument, not visible in format string.
|
|
16556
16575
|
CurrentPage: /* @__PURE__ */ jsx62(
|
|
16557
16576
|
select_control_default,
|
|
16558
16577
|
{
|
|
@@ -18156,6 +18175,10 @@ function InputWidget({
|
|
|
18156
18175
|
...currentField,
|
|
18157
18176
|
// Deactivate validation for filters.
|
|
18158
18177
|
isValid: {},
|
|
18178
|
+
// Filter controls are always enabled.
|
|
18179
|
+
isDisabled: () => false,
|
|
18180
|
+
// Filter controls are always visible.
|
|
18181
|
+
isVisible: () => true,
|
|
18159
18182
|
// Configure getValue/setValue as if Item was a plain object.
|
|
18160
18183
|
getValue: ({ item: item2 }) => item2[currentField.id],
|
|
18161
18184
|
setValue: ({ value }) => ({
|
|
@@ -19862,6 +19885,7 @@ function Checkbox({
|
|
|
19862
19885
|
validity
|
|
19863
19886
|
}) {
|
|
19864
19887
|
const { getValue, setValue, label, description, isValid } = field;
|
|
19888
|
+
const disabled = field.isDisabled({ item: data, field });
|
|
19865
19889
|
const onChangeControl = useCallback(() => {
|
|
19866
19890
|
onChange(
|
|
19867
19891
|
setValue({ item: data, value: !getValue({ item: data }) })
|
|
@@ -19877,7 +19901,8 @@ function Checkbox({
|
|
|
19877
19901
|
label,
|
|
19878
19902
|
help: description,
|
|
19879
19903
|
checked: getValue({ item: data }),
|
|
19880
|
-
onChange: onChangeControl
|
|
19904
|
+
onChange: onChangeControl,
|
|
19905
|
+
disabled
|
|
19881
19906
|
}
|
|
19882
19907
|
);
|
|
19883
19908
|
}
|
|
@@ -19955,6 +19980,7 @@ function RelativeDateControl({
|
|
|
19955
19980
|
}) {
|
|
19956
19981
|
const options2 = TIME_UNITS_OPTIONS[operator === OPERATOR_IN_THE_PAST ? "inThePast" : "over"];
|
|
19957
19982
|
const { id, label, description, getValue, setValue } = field;
|
|
19983
|
+
const disabled = field.isDisabled({ item: data, field });
|
|
19958
19984
|
const fieldValue = getValue({ item: data });
|
|
19959
19985
|
const { value: relValue = "", unit = options2[0].value } = fieldValue && typeof fieldValue === "object" ? fieldValue : {};
|
|
19960
19986
|
const onChangeValue = useCallback(
|
|
@@ -19993,7 +20019,8 @@ function RelativeDateControl({
|
|
|
19993
20019
|
min: 1,
|
|
19994
20020
|
step: 1,
|
|
19995
20021
|
value: relValue,
|
|
19996
|
-
onChange: onChangeValue
|
|
20022
|
+
onChange: onChangeValue,
|
|
20023
|
+
disabled
|
|
19997
20024
|
}
|
|
19998
20025
|
),
|
|
19999
20026
|
/* @__PURE__ */ jsx84(
|
|
@@ -20005,7 +20032,8 @@ function RelativeDateControl({
|
|
|
20005
20032
|
value: unit,
|
|
20006
20033
|
options: options2,
|
|
20007
20034
|
onChange: onChangeUnit,
|
|
20008
|
-
hideLabelFromVision: true
|
|
20035
|
+
hideLabelFromVision: true,
|
|
20036
|
+
disabled
|
|
20009
20037
|
}
|
|
20010
20038
|
)
|
|
20011
20039
|
] })
|
|
@@ -20044,6 +20072,7 @@ function CalendarDateTimeControl({
|
|
|
20044
20072
|
}) {
|
|
20045
20073
|
const { compact } = config || {};
|
|
20046
20074
|
const { id, label, description, setValue, getValue, isValid } = field;
|
|
20075
|
+
const disabled = field.isDisabled({ item: data, field });
|
|
20047
20076
|
const fieldValue = getValue({ item: data });
|
|
20048
20077
|
const value = typeof fieldValue === "string" ? fieldValue : void 0;
|
|
20049
20078
|
const [calendarMonth, setCalendarMonth] = useState(() => {
|
|
@@ -20143,7 +20172,8 @@ function CalendarDateTimeControl({
|
|
|
20143
20172
|
label: __46("Date time"),
|
|
20144
20173
|
hideLabelFromVision: true,
|
|
20145
20174
|
value: formatDateTime(value),
|
|
20146
|
-
onChange: handleManualDateTimeChange
|
|
20175
|
+
onChange: handleManualDateTimeChange,
|
|
20176
|
+
disabled
|
|
20147
20177
|
}
|
|
20148
20178
|
),
|
|
20149
20179
|
!compact && /* @__PURE__ */ jsx85(
|
|
@@ -20155,7 +20185,8 @@ function CalendarDateTimeControl({
|
|
|
20155
20185
|
month: calendarMonth,
|
|
20156
20186
|
onMonthChange: setCalendarMonth,
|
|
20157
20187
|
timeZone: timezoneString || void 0,
|
|
20158
|
-
weekStartsOn
|
|
20188
|
+
weekStartsOn,
|
|
20189
|
+
disabled
|
|
20159
20190
|
}
|
|
20160
20191
|
)
|
|
20161
20192
|
] })
|
|
@@ -20412,6 +20443,7 @@ function CalendarDateControl({
|
|
|
20412
20443
|
isValid,
|
|
20413
20444
|
format: fieldFormat
|
|
20414
20445
|
} = field;
|
|
20446
|
+
const disabled = field.isDisabled({ item: data, field });
|
|
20415
20447
|
const [selectedPresetId, setSelectedPresetId] = useState(
|
|
20416
20448
|
null
|
|
20417
20449
|
);
|
|
@@ -20505,6 +20537,8 @@ function CalendarDateControl({
|
|
|
20505
20537
|
variant: "tertiary",
|
|
20506
20538
|
isPressed: isSelected,
|
|
20507
20539
|
size: "small",
|
|
20540
|
+
disabled,
|
|
20541
|
+
accessibleWhenDisabled: true,
|
|
20508
20542
|
onClick: () => handlePresetClick(preset),
|
|
20509
20543
|
children: preset.label
|
|
20510
20544
|
},
|
|
@@ -20518,8 +20552,8 @@ function CalendarDateControl({
|
|
|
20518
20552
|
variant: "tertiary",
|
|
20519
20553
|
isPressed: !selectedPresetId,
|
|
20520
20554
|
size: "small",
|
|
20521
|
-
disabled: !!selectedPresetId,
|
|
20522
|
-
accessibleWhenDisabled:
|
|
20555
|
+
disabled: !!selectedPresetId || disabled,
|
|
20556
|
+
accessibleWhenDisabled: true,
|
|
20523
20557
|
children: __47("Custom")
|
|
20524
20558
|
}
|
|
20525
20559
|
)
|
|
@@ -20536,7 +20570,8 @@ function CalendarDateControl({
|
|
|
20536
20570
|
hideLabelFromVision: true,
|
|
20537
20571
|
value,
|
|
20538
20572
|
onChange: handleManualDateChange,
|
|
20539
|
-
required: !!field.isValid?.required
|
|
20573
|
+
required: !!field.isValid?.required,
|
|
20574
|
+
disabled
|
|
20540
20575
|
}
|
|
20541
20576
|
),
|
|
20542
20577
|
/* @__PURE__ */ jsx86(
|
|
@@ -20548,7 +20583,8 @@ function CalendarDateControl({
|
|
|
20548
20583
|
month: calendarMonth,
|
|
20549
20584
|
onMonthChange: setCalendarMonth,
|
|
20550
20585
|
timeZone: timezoneString || void 0,
|
|
20551
|
-
weekStartsOn
|
|
20586
|
+
weekStartsOn,
|
|
20587
|
+
disabled
|
|
20552
20588
|
}
|
|
20553
20589
|
)
|
|
20554
20590
|
] })
|
|
@@ -20573,6 +20609,7 @@ function CalendarDateRangeControl({
|
|
|
20573
20609
|
setValue,
|
|
20574
20610
|
format: fieldFormat
|
|
20575
20611
|
} = field;
|
|
20612
|
+
const disabled = field.isDisabled({ item: data, field });
|
|
20576
20613
|
let value;
|
|
20577
20614
|
const fieldValue = getValue({ item: data });
|
|
20578
20615
|
if (Array.isArray(fieldValue) && fieldValue.length === 2 && fieldValue.every((date) => typeof date === "string")) {
|
|
@@ -20701,6 +20738,8 @@ function CalendarDateRangeControl({
|
|
|
20701
20738
|
variant: "tertiary",
|
|
20702
20739
|
isPressed: isSelected,
|
|
20703
20740
|
size: "small",
|
|
20741
|
+
disabled,
|
|
20742
|
+
accessibleWhenDisabled: true,
|
|
20704
20743
|
onClick: () => handlePresetClick(preset),
|
|
20705
20744
|
children: preset.label
|
|
20706
20745
|
},
|
|
@@ -20714,8 +20753,8 @@ function CalendarDateRangeControl({
|
|
|
20714
20753
|
variant: "tertiary",
|
|
20715
20754
|
isPressed: !selectedPresetId,
|
|
20716
20755
|
size: "small",
|
|
20717
|
-
accessibleWhenDisabled:
|
|
20718
|
-
disabled: !!selectedPresetId,
|
|
20756
|
+
accessibleWhenDisabled: true,
|
|
20757
|
+
disabled: !!selectedPresetId || disabled,
|
|
20719
20758
|
children: __47("Custom")
|
|
20720
20759
|
}
|
|
20721
20760
|
)
|
|
@@ -20740,7 +20779,8 @@ function CalendarDateRangeControl({
|
|
|
20740
20779
|
hideLabelFromVision: true,
|
|
20741
20780
|
value: value?.[0],
|
|
20742
20781
|
onChange: (newValue) => handleManualDateChange("from", newValue),
|
|
20743
|
-
required: !!field.isValid?.required
|
|
20782
|
+
required: !!field.isValid?.required,
|
|
20783
|
+
disabled
|
|
20744
20784
|
}
|
|
20745
20785
|
),
|
|
20746
20786
|
/* @__PURE__ */ jsx86(
|
|
@@ -20753,7 +20793,8 @@ function CalendarDateRangeControl({
|
|
|
20753
20793
|
hideLabelFromVision: true,
|
|
20754
20794
|
value: value?.[1],
|
|
20755
20795
|
onChange: (newValue) => handleManualDateChange("to", newValue),
|
|
20756
|
-
required: !!field.isValid?.required
|
|
20796
|
+
required: !!field.isValid?.required,
|
|
20797
|
+
disabled
|
|
20757
20798
|
}
|
|
20758
20799
|
)
|
|
20759
20800
|
]
|
|
@@ -20768,7 +20809,8 @@ function CalendarDateRangeControl({
|
|
|
20768
20809
|
month: calendarMonth,
|
|
20769
20810
|
onMonthChange: setCalendarMonth,
|
|
20770
20811
|
timeZone: timezone.string || void 0,
|
|
20771
|
-
weekStartsOn
|
|
20812
|
+
weekStartsOn,
|
|
20813
|
+
disabled
|
|
20772
20814
|
}
|
|
20773
20815
|
)
|
|
20774
20816
|
] })
|
|
@@ -20837,6 +20879,7 @@ function Select2({
|
|
|
20837
20879
|
validity
|
|
20838
20880
|
}) {
|
|
20839
20881
|
const { type, label, description, getValue, setValue, isValid } = field;
|
|
20882
|
+
const disabled = field.isDisabled({ item: data, field });
|
|
20840
20883
|
const isMultiple = type === "array";
|
|
20841
20884
|
const value = getValue({ item: data }) ?? (isMultiple ? [] : "");
|
|
20842
20885
|
const onChangeControl = useCallback(
|
|
@@ -20863,7 +20906,8 @@ function Select2({
|
|
|
20863
20906
|
onChange: onChangeControl,
|
|
20864
20907
|
__next40pxDefaultSize: true,
|
|
20865
20908
|
hideLabelFromVision,
|
|
20866
|
-
multiple: isMultiple
|
|
20909
|
+
multiple: isMultiple,
|
|
20910
|
+
disabled
|
|
20867
20911
|
}
|
|
20868
20912
|
);
|
|
20869
20913
|
}
|
|
@@ -20899,6 +20943,7 @@ function ValidatedText({
|
|
|
20899
20943
|
}) {
|
|
20900
20944
|
const { label, placeholder, description, getValue, setValue, isValid } = field;
|
|
20901
20945
|
const value = getValue({ item: data });
|
|
20946
|
+
const disabled = field.isDisabled({ item: data, field });
|
|
20902
20947
|
const onChangeControl = useCallback(
|
|
20903
20948
|
(newValue) => onChange(
|
|
20904
20949
|
setValue({
|
|
@@ -20923,6 +20968,7 @@ function ValidatedText({
|
|
|
20923
20968
|
type,
|
|
20924
20969
|
prefix,
|
|
20925
20970
|
suffix,
|
|
20971
|
+
disabled,
|
|
20926
20972
|
pattern: isValid.pattern ? isValid.pattern.constraint : void 0,
|
|
20927
20973
|
minLength: isValid.minLength ? isValid.minLength.constraint : void 0,
|
|
20928
20974
|
maxLength: isValid.maxLength ? isValid.maxLength.constraint : void 0,
|
|
@@ -21084,6 +21130,7 @@ function ValidatedNumber({
|
|
|
21084
21130
|
const step = Math.pow(10, Math.abs(decimals) * -1);
|
|
21085
21131
|
const { label, description, getValue, setValue, isValid } = field;
|
|
21086
21132
|
const value = getValue({ item: data }) ?? "";
|
|
21133
|
+
const disabled = field.isDisabled({ item: data, field });
|
|
21087
21134
|
const onChangeControl = useCallback(
|
|
21088
21135
|
(newValue) => {
|
|
21089
21136
|
onChange(
|
|
@@ -21140,7 +21187,8 @@ function ValidatedNumber({
|
|
|
21140
21187
|
hideLabelFromVision,
|
|
21141
21188
|
step,
|
|
21142
21189
|
min: isValid.min ? isValid.min.constraint : void 0,
|
|
21143
|
-
max: isValid.max ? isValid.max.constraint : void 0
|
|
21190
|
+
max: isValid.max ? isValid.max.constraint : void 0,
|
|
21191
|
+
disabled
|
|
21144
21192
|
}
|
|
21145
21193
|
);
|
|
21146
21194
|
}
|
|
@@ -21169,6 +21217,7 @@ function Radio2({
|
|
|
21169
21217
|
validity
|
|
21170
21218
|
}) {
|
|
21171
21219
|
const { label, description, getValue, setValue, isValid } = field;
|
|
21220
|
+
const disabled = field.isDisabled({ item: data, field });
|
|
21172
21221
|
const { elements, isLoading } = useElements({
|
|
21173
21222
|
elements: field.elements,
|
|
21174
21223
|
getElements: field.getElements
|
|
@@ -21192,7 +21241,8 @@ function Radio2({
|
|
|
21192
21241
|
onChange: onChangeControl,
|
|
21193
21242
|
options: elements,
|
|
21194
21243
|
selected: value,
|
|
21195
|
-
hideLabelFromVision
|
|
21244
|
+
hideLabelFromVision,
|
|
21245
|
+
disabled
|
|
21196
21246
|
}
|
|
21197
21247
|
);
|
|
21198
21248
|
}
|
|
@@ -21238,6 +21288,7 @@ function Toggle({
|
|
|
21238
21288
|
validity
|
|
21239
21289
|
}) {
|
|
21240
21290
|
const { label, description, getValue, setValue, isValid } = field;
|
|
21291
|
+
const disabled = field.isDisabled({ item: data, field });
|
|
21241
21292
|
const onChangeControl = useCallback(() => {
|
|
21242
21293
|
onChange(
|
|
21243
21294
|
setValue({ item: data, value: !getValue({ item: data }) })
|
|
@@ -21253,7 +21304,8 @@ function Toggle({
|
|
|
21253
21304
|
label,
|
|
21254
21305
|
help: description,
|
|
21255
21306
|
checked: getValue({ item: data }),
|
|
21256
|
-
onChange: onChangeControl
|
|
21307
|
+
onChange: onChangeControl,
|
|
21308
|
+
disabled
|
|
21257
21309
|
}
|
|
21258
21310
|
);
|
|
21259
21311
|
}
|
|
@@ -21271,6 +21323,7 @@ function Textarea({
|
|
|
21271
21323
|
validity
|
|
21272
21324
|
}) {
|
|
21273
21325
|
const { rows = 4 } = config || {};
|
|
21326
|
+
const disabled = field.isDisabled({ item: data, field });
|
|
21274
21327
|
const { label, placeholder, description, setValue, isValid } = field;
|
|
21275
21328
|
const value = field.getValue({ item: data });
|
|
21276
21329
|
const onChangeControl = useCallback(
|
|
@@ -21289,6 +21342,7 @@ function Textarea({
|
|
|
21289
21342
|
help: description,
|
|
21290
21343
|
onChange: onChangeControl,
|
|
21291
21344
|
rows,
|
|
21345
|
+
disabled,
|
|
21292
21346
|
minLength: isValid.minLength ? isValid.minLength.constraint : void 0,
|
|
21293
21347
|
maxLength: isValid.maxLength ? isValid.maxLength.constraint : void 0,
|
|
21294
21348
|
__next40pxDefaultSize: true,
|
|
@@ -21309,6 +21363,7 @@ function ToggleGroup({
|
|
|
21309
21363
|
validity
|
|
21310
21364
|
}) {
|
|
21311
21365
|
const { getValue, setValue, isValid } = field;
|
|
21366
|
+
const disabled = field.isDisabled({ item: data, field });
|
|
21312
21367
|
const value = getValue({ item: data });
|
|
21313
21368
|
const onChangeControl = useCallback(
|
|
21314
21369
|
(newValue) => onChange(setValue({ item: data, value: newValue })),
|
|
@@ -21342,7 +21397,8 @@ function ToggleGroup({
|
|
|
21342
21397
|
component_default12,
|
|
21343
21398
|
{
|
|
21344
21399
|
label: el.label,
|
|
21345
|
-
value: el.value
|
|
21400
|
+
value: el.value,
|
|
21401
|
+
disabled
|
|
21346
21402
|
},
|
|
21347
21403
|
el.value
|
|
21348
21404
|
))
|
|
@@ -21363,6 +21419,7 @@ function ArrayControl({
|
|
|
21363
21419
|
}) {
|
|
21364
21420
|
const { label, placeholder, getValue, setValue, isValid } = field;
|
|
21365
21421
|
const value = getValue({ item: data });
|
|
21422
|
+
const disabled = field.isDisabled({ item: data, field });
|
|
21366
21423
|
const { elements, isLoading } = useElements({
|
|
21367
21424
|
elements: field.elements,
|
|
21368
21425
|
getElements: field.getElements
|
|
@@ -21402,6 +21459,7 @@ function ArrayControl({
|
|
|
21402
21459
|
onChange: onChangeControl,
|
|
21403
21460
|
placeholder,
|
|
21404
21461
|
suggestions: elements?.map((element) => element.value),
|
|
21462
|
+
disabled,
|
|
21405
21463
|
__experimentalValidateInput: (token) => {
|
|
21406
21464
|
if (field.isValid?.elements && elements) {
|
|
21407
21465
|
return elements.some(
|
|
@@ -21444,7 +21502,8 @@ import { jsx as jsx102 } from "react/jsx-runtime";
|
|
|
21444
21502
|
var { ValidatedInputControl: ValidatedInputControl4 } = unlock3(privateApis);
|
|
21445
21503
|
var ColorPickerDropdown = ({
|
|
21446
21504
|
color,
|
|
21447
|
-
onColorChange
|
|
21505
|
+
onColorChange,
|
|
21506
|
+
disabled
|
|
21448
21507
|
}) => {
|
|
21449
21508
|
const validColor = color && colord7(color).isValid() ? color : "#ffffff";
|
|
21450
21509
|
return /* @__PURE__ */ jsx102(
|
|
@@ -21458,6 +21517,8 @@ var ColorPickerDropdown = ({
|
|
|
21458
21517
|
onClick: onToggle,
|
|
21459
21518
|
"aria-label": __49("Open color picker"),
|
|
21460
21519
|
size: "small",
|
|
21520
|
+
disabled,
|
|
21521
|
+
accessibleWhenDisabled: true,
|
|
21461
21522
|
icon: () => /* @__PURE__ */ jsx102(color_indicator_default, { colorValue: validColor })
|
|
21462
21523
|
}
|
|
21463
21524
|
),
|
|
@@ -21481,6 +21542,7 @@ function Color({
|
|
|
21481
21542
|
validity
|
|
21482
21543
|
}) {
|
|
21483
21544
|
const { label, placeholder, description, setValue, isValid } = field;
|
|
21545
|
+
const disabled = field.isDisabled({ item: data, field });
|
|
21484
21546
|
const value = field.getValue({ item: data }) || "";
|
|
21485
21547
|
const handleColorChange = useCallback(
|
|
21486
21548
|
(newColor) => {
|
|
@@ -21507,11 +21569,13 @@ function Color({
|
|
|
21507
21569
|
onChange: handleInputChange,
|
|
21508
21570
|
hideLabelFromVision,
|
|
21509
21571
|
type: "text",
|
|
21572
|
+
disabled,
|
|
21510
21573
|
prefix: /* @__PURE__ */ jsx102(input_prefix_wrapper_default, { variant: "control", children: /* @__PURE__ */ jsx102(
|
|
21511
21574
|
ColorPickerDropdown,
|
|
21512
21575
|
{
|
|
21513
21576
|
color: value,
|
|
21514
|
-
onColorChange: handleColorChange
|
|
21577
|
+
onColorChange: handleColorChange,
|
|
21578
|
+
disabled
|
|
21515
21579
|
}
|
|
21516
21580
|
) })
|
|
21517
21581
|
}
|
|
@@ -21530,6 +21594,7 @@ function Password({
|
|
|
21530
21594
|
validity
|
|
21531
21595
|
}) {
|
|
21532
21596
|
const [isVisible2, setIsVisible] = useState(false);
|
|
21597
|
+
const disabled = field.isDisabled({ item: data, field });
|
|
21533
21598
|
const toggleVisibility = useCallback(() => {
|
|
21534
21599
|
setIsVisible((prev) => !prev);
|
|
21535
21600
|
}, []);
|
|
@@ -21550,7 +21615,9 @@ function Password({
|
|
|
21550
21615
|
icon: isVisible2 ? unseen_default : seen_default,
|
|
21551
21616
|
onClick: toggleVisibility,
|
|
21552
21617
|
size: "small",
|
|
21553
|
-
label: isVisible2 ? __50("Hide password") : __50("Show password")
|
|
21618
|
+
label: isVisible2 ? __50("Hide password") : __50("Show password"),
|
|
21619
|
+
disabled,
|
|
21620
|
+
accessibleWhenDisabled: true
|
|
21554
21621
|
}
|
|
21555
21622
|
) })
|
|
21556
21623
|
}
|
|
@@ -22641,6 +22708,7 @@ function normalizeFields(fields) {
|
|
|
22641
22708
|
getElements: field.getElements,
|
|
22642
22709
|
hasElements: hasElements(field),
|
|
22643
22710
|
isVisible: field.isVisible,
|
|
22711
|
+
isDisabled: typeof field.isDisabled === "function" ? field.isDisabled : () => !!field.isDisabled,
|
|
22644
22712
|
enableHiding: field.enableHiding ?? true,
|
|
22645
22713
|
readOnly: field.readOnly ?? false,
|
|
22646
22714
|
// The type provides defaults for the following props
|