@patternfly/patternfly-doc-core 1.12.1 → 1.12.3
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/.astro/content-modules.mjs +27 -27
- package/dist/docs/_astro/{LiveExample.B5R4Dzng.js → LiveExample.BOl02361.js} +1 -1
- package/dist/docs/_astro/{PageToggle.Dnbvoa7R.js → PageToggle.pXRgGXc2.js} +1 -1
- package/dist/docs/_astro/{PropsTables.YkW1puJk.js → PropsTables.Cio9znJH.js} +1 -1
- package/dist/docs/_astro/SectionGallery.CzuHmX2s.js +1 -0
- package/dist/docs/_astro/{index.DGdw5tfb.js → th-icon.DdLJBTr8.js} +4 -4
- package/dist/docs/_worker.js/index.js +1 -1
- package/dist/docs/_worker.js/{manifest_DGS5MtBy.mjs → manifest_BcWNteSS.mjs} +1 -1
- package/dist/docs/components/about-modal/index.html +4 -4
- package/dist/docs/components/about-modal/react/index.html +4 -4
- package/dist/docs/components/accordion/index.html +6 -6
- package/dist/docs/components/accordion/react/index.html +6 -6
- package/dist/docs/components/action-list/index.html +5 -5
- package/dist/docs/components/action-list/react/index.html +5 -5
- package/dist/docs/components/alert/index.html +98 -98
- package/dist/docs/components/alert/react/index.html +98 -98
- package/dist/docs/components/avatar/index.html +7 -7
- package/dist/docs/components/avatar/react/index.html +7 -7
- package/dist/docs/components/back-to-top/index.html +8 -8
- package/dist/docs/components/back-to-top/react/index.html +8 -8
- package/dist/docs/components/backdrop/index.html +6 -6
- package/dist/docs/components/backdrop/react/index.html +6 -6
- package/dist/docs/components/background-image/index.html +6 -6
- package/dist/docs/components/background-image/react/index.html +6 -6
- package/dist/docs/components/badge/index.html +4 -4
- package/dist/docs/components/badge/react/index.html +4 -4
- package/dist/docs/components/banner/index.html +3 -3
- package/dist/docs/components/banner/react/index.html +3 -3
- package/dist/docs/components/brand/index.html +3 -3
- package/dist/docs/components/brand/react/index.html +3 -3
- package/dist/docs/components/breadcrumb/index.html +5 -5
- package/dist/docs/components/breadcrumb/react/index.html +5 -5
- package/dist/docs/components/button/index.html +50 -50
- package/dist/docs/components/button/react/index.html +50 -50
- package/dist/docs/components/calendar-month/index.html +10 -10
- package/dist/docs/components/calendar-month/react/index.html +10 -10
- package/dist/docs/components/card/index.html +87 -87
- package/dist/docs/components/card/react/index.html +87 -87
- package/dist/docs/components/checkbox/index.html +11 -11
- package/dist/docs/components/checkbox/react/index.html +11 -11
- package/dist/docs/components/chip/index.html +5 -5
- package/dist/docs/components/chip/react-deprecated/index.html +5 -5
- package/dist/docs/components/clipboard-copy/index.html +26 -26
- package/dist/docs/components/clipboard-copy/react/index.html +26 -26
- package/dist/docs/components/code-block/index.html +10 -10
- package/dist/docs/components/code-block/react/index.html +10 -10
- package/dist/docs/components/content/index.html +27 -27
- package/dist/docs/components/content/react/index.html +27 -27
- package/dist/docs/components/data-list/index.html +33 -33
- package/dist/docs/components/data-list/react/index.html +33 -33
- package/dist/docs/components/date-picker/index.html +25 -25
- package/dist/docs/components/date-picker/react/index.html +25 -25
- package/dist/docs/components/description-list/index.html +65 -65
- package/dist/docs/components/description-list/react/index.html +65 -65
- package/dist/docs/components/divider/index.html +10 -10
- package/dist/docs/components/divider/react/index.html +10 -10
- package/dist/docs/components/drag-and-drop/index.html +3 -3
- package/dist/docs/components/drag-and-drop/react-deprecated/index.html +3 -3
- package/dist/docs/components/drawer/index.html +46 -46
- package/dist/docs/components/drawer/react/index.html +46 -46
- package/dist/docs/components/dropdown/index.html +23 -23
- package/dist/docs/components/dropdown/react/index.html +23 -23
- package/dist/docs/components/dual-list-selector/index.html +7 -7
- package/dist/docs/components/dual-list-selector/react/index.html +25 -25
- package/dist/docs/components/dual-list-selector/react-deprecated/index.html +8 -8
- package/dist/docs/components/empty-state/index.html +9 -9
- package/dist/docs/components/empty-state/react/index.html +9 -9
- package/dist/docs/components/expandable-section/index.html +25 -25
- package/dist/docs/components/expandable-section/react/index.html +25 -25
- package/dist/docs/components/form/index.html +14 -14
- package/dist/docs/components/form/react/index.html +14 -14
- package/dist/docs/components/form-select/index.html +9 -9
- package/dist/docs/components/form-select/react/index.html +9 -9
- package/dist/docs/components/helper-text/index.html +11 -11
- package/dist/docs/components/helper-text/react/index.html +11 -11
- package/dist/docs/components/hint/index.html +10 -10
- package/dist/docs/components/hint/react/index.html +10 -10
- package/dist/docs/components/icon/index.html +28 -28
- package/dist/docs/components/icon/react/index.html +28 -28
- package/dist/docs/components/input-group/index.html +12 -12
- package/dist/docs/components/input-group/react/index.html +12 -12
- package/dist/docs/components/jump-links/index.html +14 -14
- package/dist/docs/components/jump-links/react/index.html +14 -14
- package/dist/docs/components/label/index.html +37 -37
- package/dist/docs/components/label/react/index.html +37 -37
- package/dist/docs/components/list/index.html +8 -8
- package/dist/docs/components/list/react/index.html +8 -8
- package/dist/docs/components/login-page/index.html +2 -2
- package/dist/docs/components/login-page/react/index.html +2 -2
- package/dist/docs/components/masthead/index.html +9 -9
- package/dist/docs/components/masthead/react/index.html +9 -9
- package/dist/docs/components/menu/index.html +103 -103
- package/dist/docs/components/menu/react/index.html +103 -103
- package/dist/docs/components/menu-toggle/index.html +70 -70
- package/dist/docs/components/menu-toggle/react/index.html +70 -70
- package/dist/docs/components/modal/index.html +55 -55
- package/dist/docs/components/modal/react/index.html +52 -52
- package/dist/docs/components/modal/react-deprecated/index.html +57 -57
- package/dist/docs/components/multiple-file-upload/index.html +30 -30
- package/dist/docs/components/multiple-file-upload/react/index.html +30 -30
- package/dist/docs/components/navigation/index.html +31 -31
- package/dist/docs/components/navigation/react/index.html +31 -31
- package/dist/docs/components/notification-badge/index.html +15 -15
- package/dist/docs/components/notification-badge/react/index.html +15 -15
- package/dist/docs/components/notification-drawer/index.html +10 -10
- package/dist/docs/components/notification-drawer/react/index.html +10 -10
- package/dist/docs/components/number-input/index.html +21 -21
- package/dist/docs/components/number-input/react/index.html +21 -21
- package/dist/docs/components/overflow-menu/index.html +16 -16
- package/dist/docs/components/overflow-menu/react/index.html +16 -16
- package/dist/docs/components/page/index.html +55 -55
- package/dist/docs/components/page/react/index.html +55 -55
- package/dist/docs/components/pagination/index.html +22 -22
- package/dist/docs/components/pagination/react/index.html +22 -22
- package/dist/docs/components/panel/index.html +25 -25
- package/dist/docs/components/panel/react/index.html +25 -25
- package/dist/docs/components/popover/index.html +31 -31
- package/dist/docs/components/popover/react/index.html +31 -31
- package/dist/docs/components/progress/index.html +37 -37
- package/dist/docs/components/progress/react/index.html +37 -37
- package/dist/docs/components/progress-stepper/index.html +20 -20
- package/dist/docs/components/progress-stepper/react/index.html +20 -20
- package/dist/docs/components/radio/index.html +23 -23
- package/dist/docs/components/radio/react/index.html +23 -23
- package/dist/docs/components/search-input/index.html +17 -17
- package/dist/docs/components/search-input/react/index.html +17 -17
- package/dist/docs/components/select/index.html +73 -73
- package/dist/docs/components/select/react/index.html +73 -73
- package/dist/docs/components/sidebar/index.html +10 -10
- package/dist/docs/components/sidebar/react/index.html +10 -10
- package/dist/docs/components/simple-file-upload/index.html +9 -9
- package/dist/docs/components/simple-file-upload/react/index.html +9 -9
- package/dist/docs/components/simple-list/index.html +12 -12
- package/dist/docs/components/simple-list/react/index.html +12 -12
- package/dist/docs/components/skeleton/index.html +14 -14
- package/dist/docs/components/skeleton/react/index.html +14 -14
- package/dist/docs/components/skip-to-content/index.html +2 -2
- package/dist/docs/components/skip-to-content/react/index.html +2 -2
- package/dist/docs/components/slider/index.html +8 -8
- package/dist/docs/components/slider/react/index.html +8 -8
- package/dist/docs/components/spinner/index.html +5 -5
- package/dist/docs/components/spinner/react/index.html +5 -5
- package/dist/docs/components/switch/index.html +7 -7
- package/dist/docs/components/switch/react/index.html +7 -7
- package/dist/docs/components/tabs/index.html +123 -123
- package/dist/docs/components/tabs/react/index.html +123 -123
- package/dist/docs/components/text-area/index.html +24 -24
- package/dist/docs/components/text-area/react/index.html +24 -24
- package/dist/docs/components/text-input/index.html +20 -20
- package/dist/docs/components/text-input/react/index.html +20 -20
- package/dist/docs/components/text-input-group/index.html +17 -17
- package/dist/docs/components/text-input-group/react/index.html +17 -17
- package/dist/docs/components/tile/index.html +32 -32
- package/dist/docs/components/tile/react-deprecated/index.html +32 -32
- package/dist/docs/components/time-picker/index.html +18 -18
- package/dist/docs/components/time-picker/react/index.html +18 -18
- package/dist/docs/components/timestamp/index.html +23 -23
- package/dist/docs/components/timestamp/react/index.html +23 -23
- package/dist/docs/components/title/index.html +3 -3
- package/dist/docs/components/title/react/index.html +3 -3
- package/dist/docs/components/toggle-group/index.html +6 -6
- package/dist/docs/components/toggle-group/react/index.html +6 -6
- package/dist/docs/components/toolbar/index.html +54 -54
- package/dist/docs/components/toolbar/react/index.html +54 -54
- package/dist/docs/components/tooltip/index.html +13 -13
- package/dist/docs/components/tooltip/react/index.html +13 -13
- package/dist/docs/components/tree-view/index.html +36 -36
- package/dist/docs/components/tree-view/react/index.html +36 -36
- package/dist/docs/components/truncate/index.html +13 -13
- package/dist/docs/components/truncate/react/index.html +13 -13
- package/dist/docs/components/wizard/index.html +21 -21
- package/dist/docs/components/wizard/react/index.html +51 -51
- package/dist/docs/components/wizard/react-deprecated/index.html +12 -12
- package/dist/docs/index.html +1 -1
- package/package.json +4 -4
- package/dist/docs/_astro/SectionGallery.B0I2mi5J.js +0 -1
- /package/dist/docs/_worker.js/chunks/{_astro_assets_tcq0nD7B.mjs → _astro_assets_Dq7RALjT.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{_astro_data-layer-content_gjMewtSO.mjs → _astro_data-layer-content_B52INFW7.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{content-modules_D0Eecfsp.mjs → content-modules_CybmoSHK.mjs} +0 -0
- /package/dist/docs/_worker.js/chunks/{sharp_BPZD2zgR.mjs → sharp_BmN5pRz6.mjs} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as c}from"./Button.BVfR1y85.js";import{s as u}from"./page.BTC3Kf3x.js";import{P as m,B as b}from"./bars-icon.wdJgEs3A.js";import{r as d}from"./index.eCxJ45ll.js";/* empty css */import"./PageContext.BUbWpNW2.js";let r=[],o=0;const f=4;let x=i=>{let s=[],t={get(){return t.lc||t.listen(()=>{})(),t.value},lc:0,listen(e){return t.lc=s.push(e),()=>{for(let n=o+f;n<r.length;)r[n]===e?r.splice(n,f):n+=f;let l=s.indexOf(e);~l&&(s.splice(l,1),--t.lc||t.off())}},notify(e,l){let n=!r.length;for(let a of s)r.push(a,t.value,e,l);if(n){for(o=0;o<r.length;o+=f)r[o](r[o+1],r[o+2],r[o+3]);r.length=0}},off(){},set(e){let l=t.value;l!==e&&(t.value=e,t.notify(l))},subscribe(e){let l=t.listen(e);return e(t.value),l},value:i};return t};function E(i,s,t){let e=new Set(
|
|
1
|
+
import{j as c}from"./Button.BVfR1y85.js";import{s as u}from"./page.BTC3Kf3x.js";import{P as m,B as b}from"./bars-icon.wdJgEs3A.js";import{r as d}from"./index.eCxJ45ll.js";/* empty css */import"./PageContext.BUbWpNW2.js";let r=[],o=0;const f=4;let x=i=>{let s=[],t={get(){return t.lc||t.listen(()=>{})(),t.value},lc:0,listen(e){return t.lc=s.push(e),()=>{for(let n=o+f;n<r.length;)r[n]===e?r.splice(n,f):n+=f;let l=s.indexOf(e);~l&&(s.splice(l,1),--t.lc||t.off())}},notify(e,l){let n=!r.length;for(let a of s)r.push(a,t.value,e,l);if(n){for(o=0;o<r.length;o+=f)r[o](r[o+1],r[o+2],r[o+3]);r.length=0}},off(){},set(e){let l=t.value;l!==e&&(t.value=e,t.notify(l))},subscribe(e){let l=t.listen(e);return e(t.value),l},value:i};return t};function E(i,s,t){let e=new Set(s).add(void 0);return i.listen((l,n,a)=>{e.has(a)&&t(l,n,a)})}let p=(i,s)=>t=>{i.current=t,s()};function S(i,{keys:s,deps:t=[i,s]}={}){let e=d.useRef();e.current=i.get();let l=d.useCallback(a=>s?.length>0?E(i,s,p(e,a)):i.listen(p(e,a)),t),n=()=>e.current;return d.useSyncExternalStore(l,n,n)}const g=x(!0),B=()=>{const i=S(g);function s(){g.set(!i)}return d.useEffect(()=>{const t=typeof window<"u",e=document.getElementById("page-sidebar-body")?.parentElement;!t||!e||(e.classList.contains(u.pageSidebar)?(e.classList.toggle(u.modifiers.expanded),e.classList.toggle(u.modifiers.collapsed)):e.classList.add(u.pageSidebar,i?u.modifiers.expanded:u.modifiers.collapsed),e.setAttribute("aria-hidden",`${!i}`))},[i]),c.jsx(m,{"aria-label":"Global navigation",onSidebarToggle:s,isSidebarOpen:i,children:c.jsx(b,{})})};export{B as PageToggle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,c as o}from"./Button.BVfR1y85.js";import{r as u}from"./index.eCxJ45ll.js";import{T as S,a as q,b as j,c,d as v,e as l,f as h,g as w,A as y}from"./AutoLinkHeader.BijNRLMB.js";import{
|
|
1
|
+
import{j as e,c as o}from"./Button.BVfR1y85.js";import{r as u}from"./index.eCxJ45ll.js";import{T as S,a as q,b as j,c,d as v,e as l,f as h,g as w,A as y}from"./AutoLinkHeader.BijNRLMB.js";import{C as P}from"./Content.CYLxURqU.js";import{S as f}from"./c_table__sticky_cell_InsetInlineStart.DGzYmtkF.js";import{L as R}from"./Label.CM_es7Cu.js";import{S as m}from"./StackItem.CMxajCCo.js";/* empty css */import"./DropdownList.DP2npVYh.js";import"./angle-down-icon.Dqz5ba9D.js";import"./divider.BP4XR7uq.js";import"./index.BQFV5hT1.js";import"./angle-left-icon.CfKwuSCS.js";const p={textColorRequired:"pf-v6-u-text-color-required",textColorSubtle:"pf-v6-u-text-color-subtle"},k=({componentName:s,headingLevel:i="h3",componentDescription:a,componentProps:n})=>{const t=n?.filter(r=>!r.isHidden),b=!!t?.length,T=r=>{const{name:D,isBeta:d,isDeprecated:x}=r;return!d&&!x?null:(d&&x&&console.error(`The ${D} prop for ${s} has both the isBeta and isDeprecated tag.`),e.jsx(R,{color:`${d?"blue":"grey"}`,isCompact:!0,children:d?"Beta":"Deprecated"}))},g=r=>r?e.jsxs(e.Fragment,{children:[e.jsx("span",{"aria-hidden":"true",className:o(p.textColorRequired),children:"*"}),e.jsx("span",{className:o(w.screenReader),children:"required"})]}):null;return e.jsxs("div",{children:[e.jsx(P,{component:i,children:s}),e.jsxs(f,{hasGutter:!0,children:[a&&e.jsx("div",{"data-testid":"component-description",className:o(p.textColorSubtle),children:a}),b&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{id:`${s}-required-description`,children:[e.jsx("span",{className:o(p.textColorRequired),children:"*"})," ",e.jsx("span",{className:o(p.textColorSubtle),children:"indicates a required prop"})]}),e.jsxs(S,{variant:"compact","aria-label":`Props for ${s}`,"aria-describedby":`${s}-required-description`,gridBreakPoint:"grid-lg",children:[e.jsx(q,{children:e.jsxs(j,{children:[e.jsx(c,{width:20,children:"Name"}),e.jsx(c,{width:20,children:"Type"}),e.jsx(c,{width:10,children:"Default"}),e.jsx(c,{children:"Description"})]})}),e.jsx(v,{children:t.map(r=>e.jsxs(j,{children:[e.jsx(l,{children:e.jsxs(h,{wrapModifier:"breakWord",children:[r.name,g(r.isRequired)," ",T(r)]})}),e.jsx(l,{children:e.jsx(h,{wrapModifier:"breakWord",children:r.type||"No type info available"})}),e.jsx(l,{children:e.jsx(h,{wrapModifier:"breakWord",children:r.defaultValue||"-"})}),e.jsx(l,{children:e.jsx(h,{wrapModifier:"breakWord",children:r.description||"No description available."})})]},r.name))})]})]})]})]})};async function $(s,i){if(!s||s.length===0)return[];const a=new URL(`/props?components=${s}`,i);try{return await(await fetch(a.toString())).json()}catch(n){return console.error(n),[]}}const V=({propComponents:s,url:i})=>{const[a,n]=u.useState([]);return u.useEffect(()=>{$(s,i).then(n)},[s,i]),e.jsxs(f,{hasGutter:!0,children:[e.jsx(m,{children:e.jsx(y,{headingLevel:"h2",className:"pf-v6-c-content--h2",id:"props-table",children:"Props"})}),a.filter(t=>!!t).map(t=>e.jsx(m,{children:e.jsx(k,{componentName:t.name,componentDescription:t.description,componentProps:t.props})},t.name))]})};export{V as PropsTables};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,B as w}from"./Button.BVfR1y85.js";import{R as v,r as L}from"./index.eCxJ45ll.js";import{T as E,L as N,G as A,u as $,n as B,b as F,e as _,f as H,c as M,d as O,D as V,j as W,l as Z,k as q,h as S,S as z,o as I}from"./th-icon.DdLJBTr8.js";import{C as m,a as D}from"./Content.CYLxURqU.js";import{b as J,c as K,e as u,T as P,a as k}from"./ToolbarContent.CAAHjZHW.js";import{S as Q}from"./SearchInput.CQ7aDztp.js";import{s as R,a as U}from"./index.CAChmxYj.js";import{L as x}from"./Label.CM_es7Cu.js";/* empty css */import"./divider.BP4XR7uq.js";import"./index.BQFV5hT1.js";import"./angle-down-icon.Dqz5ba9D.js";import"./PageContext.BUbWpNW2.js";import"./resizeObserver.BgQpxO8W.js";const X=({galleryItemCount:o,searchTerm:l,setSearchTerm:r,layoutView:a,setLayoutView:t,placeholderText:i="Search by name",countText:s=" items"})=>e.jsx(J,{isSticky:!0,children:e.jsxs(K,{children:[e.jsx(u,{children:e.jsx(Q,{value:l,placeholder:i,onChange:(n,c)=>{r(c)}})}),l&&e.jsx(u,{children:e.jsx(w,{variant:"link",onClick:()=>r(""),children:"Reset"})}),e.jsx(u,{children:e.jsxs(P,{children:[e.jsx(k,{icon:e.jsx(E,{}),"aria-label":"grid icon button",isSelected:a==="grid",onChange:()=>t("grid")}),e.jsx(k,{icon:e.jsx(N,{}),"aria-label":"list icon button",isSelected:a==="list",onChange:()=>t("list")})]})}),e.jsx(u,{variant:"pagination",gap:{default:"gapMd",md:"gapNone"},style:{"--pf-v6-c-toolbar__item--MinWidth":"max-content"},className:"pf-m-align-self-center",children:e.jsxs(m,{isEditorial:!0,component:D.small,children:[o,s]})})]})}),Y=({section:o,galleryItems:l,hasGridText:r,hasGridImages:a})=>e.jsx(A,{hasGutter:!0,children:l.map(({name:t,img:i,data:s},n)=>{const c=s.link||`/${o}/${t}`,j=s.summary.replace(/<a[^>]*>([^<]+)<\/a>/gm,"$1"),{code:d}=$.convertToReactComponent(`<>${j}</>`),h=new Function("React",d);return e.jsx(B,{span:4,children:e.jsxs(F,{id:t,isClickable:!0,children:[e.jsx(_,{selectableActions:{to:c,selectableActionId:`${t}-input`,selectableActionAriaLabelledby:t,name:`clickable-card-${n}`},children:e.jsx(H,{children:R(t)})}),(a||r)&&e.jsxs(M,{children:[a&&i&&e.jsx("img",{src:i.src,alt:`${t} illustration`}),r&&e.jsx(m,{isEditorial:!0,children:e.jsx(m,{component:"p",children:h(v)})})]}),s.label&&e.jsxs(O,{children:[s.label==="beta"&&e.jsx(x,{color:"blue",isCompact:!0,children:"Beta"}),s.label==="deprecated"&&e.jsx(x,{color:"grey",isCompact:!0,children:"Deprecated"}),s.label==="demo"&&e.jsx(x,{color:"purple",isCompact:!0,children:"Demo"})]})]},n)},n)})}),ee=({section:o,galleryItems:l,hasListText:r,hasListImages:a})=>e.jsx(V,{onSelectDataListItem:()=>{},"aria-label":"gallery-list",children:l.map(({name:t,img:i,data:s},n)=>{const c=s.link||`/${o}/${t}`,j=s.summary.replace(/<a[^>]*>([^<]+)<\/a>/gm,"$1"),{code:d}=$.convertToReactComponent(`<>${j}</>`),h=new Function("React",d);return e.jsx("a",{href:c,className:"ws-section-gallery-item",children:e.jsx(W,{children:e.jsx(Z,{children:e.jsx(q,{dataListCells:[a&&i&&e.jsx(S,{width:1,children:e.jsx("div",{children:e.jsx("img",{src:i.src,alt:`${t} illustration`})})},"illustration"),e.jsxs(S,{width:5,children:[e.jsxs(z,{className:r?"pf-v6-u-mb-md":void 0,children:[e.jsx(I,{isFilled:!0,children:e.jsx(m,{isEditorial:!0,children:e.jsx(m,{component:D.h2,children:e.jsx("span",{children:R(t)})})})}),e.jsxs(I,{children:[s.label==="beta"&&e.jsx(x,{color:"blue",isCompact:!0,children:"Beta"}),s.label==="deprecated"&&e.jsx(x,{color:"grey",isCompact:!0,children:"Deprecated"}),s.label==="demo"&&e.jsx(x,{color:"purple",isCompact:!0,children:"Demo"})]})]}),r&&e.jsx(m,{isEditorial:!0,children:e.jsx(m,{component:"p",children:h(v)})})]},"text-description")]})})})},n)})}),he=({illustrations:o,section:l,galleryItemsData:r,placeholderText:a,countText:t,initialLayout:i="grid",hasGridText:s=!1,hasGridImages:n=!1,hasListText:c=!1,hasListImages:j=!1})=>{const[d,h]=L.useState(""),[b,T]=L.useState(i),C=Object.entries(r).map(([p,g])=>({name:p,img:o?o[U(p)]:void 0,data:g})).sort((p,g)=>p.name.localeCompare(g.name)),y=/[^A-Z0-9]+/gi,G=d.replace(y,""),f=C.filter(p=>new RegExp(G).test(p.name.replace(y,"")));return e.jsxs("div",{className:"ws-section-gallery",children:[e.jsx(X,{galleryItemCount:C.length,searchTerm:d,setSearchTerm:h,layoutView:b,setLayoutView:T,placeholderText:a,countText:t}),b==="grid"&&e.jsx(Y,{section:l,galleryItems:f,hasGridText:s,hasGridImages:n}),b==="list"&&e.jsx(ee,{section:l,galleryItems:f,hasListText:c,hasListImages:j})]})};export{he as SectionGallery};
|