wimui 0.76.3 → 0.78.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 (51) hide show
  1. package/dist/ai-core.d.ts +1 -0
  2. package/dist/ai.cjs +1 -1
  3. package/dist/ai.js +11 -10
  4. package/dist/components/ai/AILabel/AILabel.cjs +2 -0
  5. package/dist/components/ai/AILabel/AILabel.d.ts +68 -0
  6. package/dist/components/ai/AILabel/AILabel.js +51 -0
  7. package/dist/components/ai/AILabel/ai-label.module.cjs +2 -0
  8. package/dist/components/ai/AILabel/ai-label.module.js +15 -0
  9. package/dist/components/ai/MarkdownRenderer/MarkdownRenderer.cjs +1 -1
  10. package/dist/components/ai/MarkdownRenderer/MarkdownRenderer.js +11 -11
  11. package/dist/components/data-display/FAQSection/FAQSection.cjs +1 -1
  12. package/dist/components/data-display/FAQSection/FAQSection.js +10 -10
  13. package/dist/components/data-display/Persona/Persona.cjs +2 -0
  14. package/dist/components/data-display/Persona/Persona.d.ts +71 -0
  15. package/dist/components/data-display/Persona/Persona.js +58 -0
  16. package/dist/components/data-display/Persona/persona.module.cjs +2 -0
  17. package/dist/components/data-display/Persona/persona.module.js +16 -0
  18. package/dist/components/layout/PageHeader/PageHeader.cjs +2 -0
  19. package/dist/components/layout/PageHeader/PageHeader.d.ts +51 -0
  20. package/dist/components/layout/PageHeader/PageHeader.js +55 -0
  21. package/dist/components/layout/PageHeader/page-header.module.cjs +2 -0
  22. package/dist/components/layout/PageHeader/page-header.module.js +16 -0
  23. package/dist/components/overlay/Popover/Popover.cjs +1 -1
  24. package/dist/components/overlay/Popover/Popover.js +2 -2
  25. package/dist/data-display-core.d.ts +1 -0
  26. package/dist/data-display.cjs +1 -1
  27. package/dist/data-display.js +4 -3
  28. package/dist/i18n/generated/ai.cjs +2 -0
  29. package/dist/i18n/generated/ai.d.ts +3 -0
  30. package/dist/i18n/generated/ai.js +21 -0
  31. package/dist/i18n/generated/components.d.ts +1 -1
  32. package/dist/i18n/generated/keys.d.ts +2 -1
  33. package/dist/index.cjs +1 -1
  34. package/dist/index.js +176 -173
  35. package/dist/layout.cjs +1 -1
  36. package/dist/layout.d.ts +1 -0
  37. package/dist/layout.js +2 -1
  38. package/dist/llms/AILabel.md +27 -0
  39. package/dist/llms/PageHeader.md +30 -0
  40. package/dist/llms/Persona.md +31 -0
  41. package/dist/llms-full.txt +33 -1
  42. package/dist/llms.txt +4 -1
  43. package/dist/locales/en/components.json +4 -1
  44. package/dist/locales/ja/components.json +4 -1
  45. package/dist/locales/pt/components.json +4 -1
  46. package/dist/styles.css +1 -1
  47. package/dist/typography.cjs +1 -1
  48. package/dist/typography.js +5 -5
  49. package/dist/wimui.umd.css +1 -1
  50. package/dist/wimui.umd.js +5 -5
  51. package/package.json +5 -5
package/dist/ai-core.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from './components/ai/PromptInput/PromptInput.js';
2
2
  export * from './components/ai/ThoughtProcess/ThoughtProcess.js';
3
3
  export * from './components/ai/AIResponseFeedback/AIResponseFeedback.js';
4
4
  export * from './components/ai/SourceCitation/SourceCitation.js';
5
+ export * from './components/ai/AILabel/AILabel.js';
5
6
  export * from './components/ai/CodeBlock/CodeBlock.js';
6
7
  export * from './components/ai/Terminal/Terminal.js';
7
8
  export * from './components/ai/AgentStatus/AgentStatus.js';
package/dist/ai.cjs CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./components/ai/PromptInput/PromptInput.cjs"),t=require("./components/ai/ThoughtProcess/ThoughtProcess.cjs"),n=require("./components/ai/AIResponseFeedback/AIResponseFeedback.cjs"),r=require("./components/ai/SourceCitation/SourceCitation.cjs"),i=require("./components/ai/CodeBlock/CodeBlock.cjs"),a=require("./components/ai/Terminal/Terminal.cjs"),o=require("./components/ai/AgentStatus/AgentStatus.cjs"),s=require("./components/ai/VoiceVisualizer/VoiceVisualizer.cjs"),c=require("./components/ai/ModelSelector/ModelSelector.cjs"),l=require("./components/ai/ThreadList/ThreadList.cjs"),u=require("./components/ai/UsageMeter/UsageMeter.cjs"),d=require("./components/ai/ChatUI/ChatUI.cjs"),f=require("./components/ai/ArtifactsOverlay/ArtifactsOverlay.cjs");exports.AIResponseFeedback=n.AIResponseFeedback,exports.AgentStatus=o.AgentStatus,exports.ArtifactsOverlay=f.ArtifactsOverlay,exports.ChatAvatar=d.ChatAvatar,exports.ChatContainer=d.ChatContainer,exports.ChatInput=d.ChatInput,exports.ChatInputArea=d.ChatInputArea,exports.ChatMessage=d.ChatMessage,exports.ChatMessageList=d.ChatMessageList,exports.ChatSystemMessage=d.ChatSystemMessage,exports.ChatToolCall=d.ChatToolCall,exports.CodeBlock=i.CodeBlock,exports.ConversationList=l.ConversationList,exports.ModelSelector=c.ModelSelector,exports.PromptInput=e.PromptInput,exports.SourceCitation=r.SourceCitation,exports.SourceCitationList=r.SourceCitationList,exports.Terminal=a.Terminal,exports.ThoughtProcess=t.ThoughtProcess,exports.ThoughtStep=t.ThoughtStep,exports.ThreadList=l.ThreadList,exports.TokenCounter=u.TokenCounter,exports.UsageMeter=u.UsageMeter,exports.VoiceVisualizer=s.VoiceVisualizer;
2
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./components/ai/PromptInput/PromptInput.cjs"),t=require("./components/ai/ThoughtProcess/ThoughtProcess.cjs"),n=require("./components/ai/AIResponseFeedback/AIResponseFeedback.cjs"),r=require("./components/ai/SourceCitation/SourceCitation.cjs"),i=require("./components/ai/AILabel/AILabel.cjs"),a=require("./components/ai/CodeBlock/CodeBlock.cjs"),o=require("./components/ai/Terminal/Terminal.cjs"),s=require("./components/ai/AgentStatus/AgentStatus.cjs"),c=require("./components/ai/VoiceVisualizer/VoiceVisualizer.cjs"),l=require("./components/ai/ModelSelector/ModelSelector.cjs"),u=require("./components/ai/ThreadList/ThreadList.cjs"),d=require("./components/ai/UsageMeter/UsageMeter.cjs"),f=require("./components/ai/ChatUI/ChatUI.cjs"),p=require("./components/ai/ArtifactsOverlay/ArtifactsOverlay.cjs");exports.AILabel=i.AILabel,exports.AIResponseFeedback=n.AIResponseFeedback,exports.AgentStatus=s.AgentStatus,exports.ArtifactsOverlay=p.ArtifactsOverlay,exports.ChatAvatar=f.ChatAvatar,exports.ChatContainer=f.ChatContainer,exports.ChatInput=f.ChatInput,exports.ChatInputArea=f.ChatInputArea,exports.ChatMessage=f.ChatMessage,exports.ChatMessageList=f.ChatMessageList,exports.ChatSystemMessage=f.ChatSystemMessage,exports.ChatToolCall=f.ChatToolCall,exports.CodeBlock=a.CodeBlock,exports.ConversationList=u.ConversationList,exports.ModelSelector=l.ModelSelector,exports.PromptInput=e.PromptInput,exports.SourceCitation=r.SourceCitation,exports.SourceCitationList=r.SourceCitationList,exports.Terminal=o.Terminal,exports.ThoughtProcess=t.ThoughtProcess,exports.ThoughtStep=t.ThoughtStep,exports.ThreadList=u.ThreadList,exports.TokenCounter=d.TokenCounter,exports.UsageMeter=d.UsageMeter,exports.VoiceVisualizer=c.VoiceVisualizer;
package/dist/ai.js CHANGED
@@ -3,13 +3,14 @@ import { PromptInput as e } from "./components/ai/PromptInput/PromptInput.js";
3
3
  import { ThoughtProcess as t, ThoughtStep as n } from "./components/ai/ThoughtProcess/ThoughtProcess.js";
4
4
  import { AIResponseFeedback as r } from "./components/ai/AIResponseFeedback/AIResponseFeedback.js";
5
5
  import { SourceCitation as i, SourceCitationList as a } from "./components/ai/SourceCitation/SourceCitation.js";
6
- import { CodeBlock as o } from "./components/ai/CodeBlock/CodeBlock.js";
7
- import { Terminal as s } from "./components/ai/Terminal/Terminal.js";
8
- import { AgentStatus as c } from "./components/ai/AgentStatus/AgentStatus.js";
9
- import { VoiceVisualizer as l } from "./components/ai/VoiceVisualizer/VoiceVisualizer.js";
10
- import { ModelSelector as u } from "./components/ai/ModelSelector/ModelSelector.js";
11
- import { ConversationList as d, ThreadList as f } from "./components/ai/ThreadList/ThreadList.js";
12
- import { TokenCounter as p, UsageMeter as m } from "./components/ai/UsageMeter/UsageMeter.js";
13
- import { ChatAvatar as h, ChatContainer as g, ChatInput as _, ChatInputArea as v, ChatMessage as y, ChatMessageList as b, ChatSystemMessage as x, ChatToolCall as S } from "./components/ai/ChatUI/ChatUI.js";
14
- import { ArtifactsOverlay as C } from "./components/ai/ArtifactsOverlay/ArtifactsOverlay.js";
15
- export { r as AIResponseFeedback, c as AgentStatus, C as ArtifactsOverlay, h as ChatAvatar, g as ChatContainer, _ as ChatInput, v as ChatInputArea, y as ChatMessage, b as ChatMessageList, x as ChatSystemMessage, S as ChatToolCall, o as CodeBlock, d as ConversationList, u as ModelSelector, e as PromptInput, i as SourceCitation, a as SourceCitationList, s as Terminal, t as ThoughtProcess, n as ThoughtStep, f as ThreadList, p as TokenCounter, m as UsageMeter, l as VoiceVisualizer };
6
+ import { AILabel as o } from "./components/ai/AILabel/AILabel.js";
7
+ import { CodeBlock as s } from "./components/ai/CodeBlock/CodeBlock.js";
8
+ import { Terminal as c } from "./components/ai/Terminal/Terminal.js";
9
+ import { AgentStatus as l } from "./components/ai/AgentStatus/AgentStatus.js";
10
+ import { VoiceVisualizer as u } from "./components/ai/VoiceVisualizer/VoiceVisualizer.js";
11
+ import { ModelSelector as d } from "./components/ai/ModelSelector/ModelSelector.js";
12
+ import { ConversationList as f, ThreadList as p } from "./components/ai/ThreadList/ThreadList.js";
13
+ import { TokenCounter as m, UsageMeter as h } from "./components/ai/UsageMeter/UsageMeter.js";
14
+ import { ChatAvatar as g, ChatContainer as _, ChatInput as v, ChatInputArea as y, ChatMessage as b, ChatMessageList as x, ChatSystemMessage as S, ChatToolCall as C } from "./components/ai/ChatUI/ChatUI.js";
15
+ import { ArtifactsOverlay as w } from "./components/ai/ArtifactsOverlay/ArtifactsOverlay.js";
16
+ export { o as AILabel, r as AIResponseFeedback, l as AgentStatus, w as ArtifactsOverlay, g as ChatAvatar, _ as ChatContainer, v as ChatInput, y as ChatInputArea, b as ChatMessage, x as ChatMessageList, S as ChatSystemMessage, C as ChatToolCall, s as CodeBlock, f as ConversationList, d as ModelSelector, e as PromptInput, i as SourceCitation, a as SourceCitationList, c as Terminal, t as ThoughtProcess, n as ThoughtStep, p as ThreadList, m as TokenCounter, h as UsageMeter, u as VoiceVisualizer };
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../i18n/useWimTranslation.cjs"),n=require("../../overlay/Popover/Popover.cjs"),r=require("../../../i18n/generated/ai.cjs"),i=require("./ai-label.module.cjs");let a=require("react");a=e.__toESM(a,1);let o=require("classnames");o=e.__toESM(o,1);let s=require("react/jsx-runtime");var c=a.default.forwardRef(({children:e,title:c,size:l=`md`,placement:u=`bottom-start`,defaultOpen:d,open:f,onOpenChange:p,className:m,"aria-label":h,...g},_)=>{let{t:v}=t.useWimTranslation(r.aiNs),y=a.default.useId(),b=v(`ai_label.name`);return(0,s.jsxs)(n.Popover,{defaultOpen:d,open:f,onOpenChange:p,placement:u,className:i.default.anchor,children:[(0,s.jsx)(n.PopoverTrigger,{asChild:!0,children:(0,s.jsx)(`button`,{ref:_,type:`button`,className:(0,o.default)(`wim-ai-label`,i.default.root,i.default[l],m),...g,"aria-label":h??b,children:(0,s.jsx)(`span`,{className:i.default.mark,"data-part":`mark`,"aria-hidden":`true`,children:v(`ai_label.text`)})})}),(0,s.jsxs)(n.PopoverContent,{className:i.default.content,"data-part":`content`,"aria-labelledby":y,children:[(0,s.jsx)(`p`,{id:y,className:i.default.title,"data-part":`title`,children:c??b}),(0,s.jsx)(`div`,{className:i.default.body,children:e})]})]})});c.displayName=`AILabel`,exports.AILabel=c;
@@ -0,0 +1,68 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ import { Placement } from '@floating-ui/react';
3
+ import { ComponentSizeBasic } from '../../../types/tokens.js';
4
+ export type AILabelProps = Omit<React.ComponentPropsWithoutRef<"button">, "children" | "title" | "type"> & {
5
+ /**
6
+ * What the AI did, shown when the label is pressed — for example which model
7
+ * produced the value, from what, and how to check or replace it.
8
+ */
9
+ children: ReactNode;
10
+ /**
11
+ * Heading of the explanation. Defaults to the localized "AI-generated".
12
+ */
13
+ title?: ReactNode;
14
+ /**
15
+ * Size of the mark. `sm` fits inside a field or a table cell; `md` sits next
16
+ * to a heading or in the corner of a card.
17
+ * @default "md"
18
+ */
19
+ size?: ComponentSizeBasic;
20
+ /**
21
+ * Preferred placement of the explanation.
22
+ * @default "bottom-start"
23
+ */
24
+ placement?: Placement;
25
+ /** Opens the explanation on the first render (uncontrolled). */
26
+ defaultOpen?: boolean;
27
+ /** Controls whether the explanation is open. */
28
+ open?: boolean;
29
+ /** Called when the explanation opens or closes. */
30
+ onOpenChange?: (open: boolean) => void;
31
+ };
32
+ /**
33
+ * AILabel marks a value or a block as produced by AI. It is a small button
34
+ * that reads "AI"; pressing it opens an explanation the app provides.
35
+ *
36
+ * Composition Contract:
37
+ * - Managed by: App consumption (the explanation is the app's content)
38
+ * - Portal: The explanation renders through Popover (FloatingPortal)
39
+ * - Scroll lock: No
40
+ */
41
+ export declare const AILabel: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "title" | "children" | "type"> & {
42
+ /**
43
+ * What the AI did, shown when the label is pressed — for example which model
44
+ * produced the value, from what, and how to check or replace it.
45
+ */
46
+ children: ReactNode;
47
+ /**
48
+ * Heading of the explanation. Defaults to the localized "AI-generated".
49
+ */
50
+ title?: ReactNode;
51
+ /**
52
+ * Size of the mark. `sm` fits inside a field or a table cell; `md` sits next
53
+ * to a heading or in the corner of a card.
54
+ * @default "md"
55
+ */
56
+ size?: ComponentSizeBasic;
57
+ /**
58
+ * Preferred placement of the explanation.
59
+ * @default "bottom-start"
60
+ */
61
+ placement?: Placement;
62
+ /** Opens the explanation on the first render (uncontrolled). */
63
+ defaultOpen?: boolean;
64
+ /** Controls whether the explanation is open. */
65
+ open?: boolean;
66
+ /** Called when the explanation opens or closes. */
67
+ onOpenChange?: (open: boolean) => void;
68
+ } & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,51 @@
1
+ "use client";
2
+ import { useWimTranslation as e } from "../../../i18n/useWimTranslation.js";
3
+ import { Popover as t, PopoverContent as n, PopoverTrigger as r } from "../../overlay/Popover/Popover.js";
4
+ import { aiNs as i } from "../../../i18n/generated/ai.js";
5
+ import a from "./ai-label.module.js";
6
+ import o from "react";
7
+ import s from "classnames";
8
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
9
+ //#region src/components/ai/AILabel/AILabel.tsx
10
+ var u = o.forwardRef(({ children: u, title: d, size: f = "md", placement: p = "bottom-start", defaultOpen: m, open: h, onOpenChange: g, className: _, "aria-label": v, ...y }, b) => {
11
+ let { t: x } = e(i), S = o.useId(), C = x("ai_label.name");
12
+ return /* @__PURE__ */ l(t, {
13
+ defaultOpen: m,
14
+ open: h,
15
+ onOpenChange: g,
16
+ placement: p,
17
+ className: a.anchor,
18
+ children: [/* @__PURE__ */ c(r, {
19
+ asChild: !0,
20
+ children: /* @__PURE__ */ c("button", {
21
+ ref: b,
22
+ type: "button",
23
+ className: s("wim-ai-label", a.root, a[f], _),
24
+ ...y,
25
+ "aria-label": v ?? C,
26
+ children: /* @__PURE__ */ c("span", {
27
+ className: a.mark,
28
+ "data-part": "mark",
29
+ "aria-hidden": "true",
30
+ children: x("ai_label.text")
31
+ })
32
+ })
33
+ }), /* @__PURE__ */ l(n, {
34
+ className: a.content,
35
+ "data-part": "content",
36
+ "aria-labelledby": S,
37
+ children: [/* @__PURE__ */ c("p", {
38
+ id: S,
39
+ className: a.title,
40
+ "data-part": "title",
41
+ children: d ?? C
42
+ }), /* @__PURE__ */ c("div", {
43
+ className: a.body,
44
+ children: u
45
+ })]
46
+ })]
47
+ });
48
+ });
49
+ u.displayName = "AILabel";
50
+ //#endregion
51
+ export { u as AILabel };
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ var e=`_anchor_1lo6m_4`,t=`_root_1lo6m_8`,n=`_mark_1lo6m_25`,r=`_sm_1lo6m_50`,i=`_md_1lo6m_54`,a=`_lg_1lo6m_58`,o=`_content_1lo6m_62`,s=`_title_1lo6m_66`,c=`_body_1lo6m_71`,l={anchor:e,root:t,mark:n,sm:r,md:i,lg:a,content:o,title:s,body:c};exports.anchor=e,exports.body=c,exports.content=o,exports.default=l,exports.lg=a,exports.mark=n,exports.md=i,exports.root=t,exports.sm=r,exports.title=s;
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ //#region src/components/ai/AILabel/ai-label.module.scss
3
+ var e = "_anchor_1lo6m_4", t = "_root_1lo6m_8", n = "_mark_1lo6m_25", r = "_sm_1lo6m_50", i = "_md_1lo6m_54", a = "_lg_1lo6m_58", o = "_content_1lo6m_62", s = "_title_1lo6m_66", c = "_body_1lo6m_71", l = {
4
+ anchor: e,
5
+ root: t,
6
+ mark: n,
7
+ sm: r,
8
+ md: i,
9
+ lg: a,
10
+ content: o,
11
+ title: s,
12
+ body: c
13
+ };
14
+ //#endregion
15
+ export { e as anchor, c as body, o as content, l as default, a as lg, n as mark, i as md, t as root, r as sm, s as title };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../i18n/useWimTranslation.cjs"),n=require("../../../i18n/generated/form.cjs"),r=require("../../typography/Text/Text.cjs"),i=require("../../navigation/Link/Link.cjs"),a=require("../../typography/Title/Title.cjs"),o=require("../../typography/Blockquote/Blockquote.cjs"),s=require("../CodeBlock/CodeBlock.cjs"),c=require("./markdown-renderer.module.cjs");let l=require("react");l=e.__toESM(l,1);let u=require("classnames");u=e.__toESM(u,1);let d=require("react/jsx-runtime"),f=require("react-markdown");f=e.__toESM(f,1);let p=require("remark-gfm");p=e.__toESM(p,1);var m=[`xs`,`sm`,`md`,`lg`,`xl`,`2xl`,`3xl`,`4xl`];function h(e,t){let n=m.indexOf(t);return m[Math.max(0,n-(e-1))]}var g=({content:e,baseLevel:l=`2xl`,className:m})=>{let{t:g}=t.useWimTranslation(n.formNs);return(0,d.jsx)(`div`,{className:(0,u.default)(`wim-markdown-renderer`,c.default.root,m),children:(0,d.jsx)(f.default,{remarkPlugins:[p.default],components:{h1:({children:e})=>(0,d.jsx)(a.Title,{tag:`h1`,size:h(1,l),className:c.default.heading,children:e}),h2:({children:e})=>(0,d.jsx)(a.Title,{tag:`h2`,size:h(2,l),className:c.default.heading,children:e}),h3:({children:e})=>(0,d.jsx)(a.Title,{tag:`h3`,size:h(3,l),className:c.default.heading,children:e}),h4:({children:e})=>(0,d.jsx)(a.Title,{tag:`h4`,size:h(4,l),className:c.default.heading,children:e}),p:({children:e})=>(0,d.jsx)(r.Text,{className:c.default.paragraph,children:e}),a:({href:e,children:t})=>(0,d.jsx)(i.Link,{href:e,children:t}),blockquote:({children:e})=>(0,d.jsx)(o.Blockquote,{children:e}),ul:({children:e})=>(0,d.jsx)(`ul`,{className:c.default.list,children:e}),ol:({children:e})=>(0,d.jsx)(`ol`,{className:c.default.list,children:e}),li:({children:e})=>(0,d.jsx)(`li`,{className:c.default.listItem,children:e}),code({className:e,children:t,...n}){let r=/language-(\w+)/.exec(e||``);return r?(0,d.jsx)(s.CodeBlock,{code:String(t).replace(/\n$/,``),language:r[1],className:c.default.codeBlock}):(0,d.jsx)(`code`,{className:c.default.inlineCode,...n,children:t})},table:({children:e})=>(0,d.jsx)(`div`,{className:c.default.tableWrapper,children:(0,d.jsx)(`table`,{className:c.default.table,children:e})}),th:({children:e})=>(0,d.jsx)(`th`,{className:c.default.th,children:e}),td:({children:e})=>(0,d.jsx)(`td`,{className:c.default.td,children:e}),input:({type:e,checked:t,disabled:n})=>e===`checkbox`?(0,d.jsx)(`input`,{type:`checkbox`,checked:t,disabled:n,readOnly:!0,"aria-label":g(t?`markdown.task_done`:`markdown.task_todo`)}):null},children:e})})};g.displayName=`MarkdownRenderer`,exports.MarkdownRenderer=g;
2
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../i18n/useWimTranslation.cjs"),n=require("../../typography/Title/Title.cjs"),r=require("../../../i18n/generated/form.cjs"),i=require("../../typography/Text/Text.cjs"),a=require("../../navigation/Link/Link.cjs"),o=require("../../typography/Blockquote/Blockquote.cjs"),s=require("../CodeBlock/CodeBlock.cjs"),c=require("./markdown-renderer.module.cjs");let l=require("react");l=e.__toESM(l,1);let u=require("classnames");u=e.__toESM(u,1);let d=require("react/jsx-runtime"),f=require("react-markdown");f=e.__toESM(f,1);let p=require("remark-gfm");p=e.__toESM(p,1);var m=[`xs`,`sm`,`md`,`lg`,`xl`,`2xl`,`3xl`,`4xl`];function h(e,t){let n=m.indexOf(t);return m[Math.max(0,n-(e-1))]}var g=({content:e,baseLevel:l=`2xl`,className:m})=>{let{t:g}=t.useWimTranslation(r.formNs);return(0,d.jsx)(`div`,{className:(0,u.default)(`wim-markdown-renderer`,c.default.root,m),children:(0,d.jsx)(f.default,{remarkPlugins:[p.default],components:{h1:({children:e})=>(0,d.jsx)(n.Title,{tag:`h1`,size:h(1,l),className:c.default.heading,children:e}),h2:({children:e})=>(0,d.jsx)(n.Title,{tag:`h2`,size:h(2,l),className:c.default.heading,children:e}),h3:({children:e})=>(0,d.jsx)(n.Title,{tag:`h3`,size:h(3,l),className:c.default.heading,children:e}),h4:({children:e})=>(0,d.jsx)(n.Title,{tag:`h4`,size:h(4,l),className:c.default.heading,children:e}),p:({children:e})=>(0,d.jsx)(i.Text,{className:c.default.paragraph,children:e}),a:({href:e,children:t})=>(0,d.jsx)(a.Link,{href:e,children:t}),blockquote:({children:e})=>(0,d.jsx)(o.Blockquote,{children:e}),ul:({children:e})=>(0,d.jsx)(`ul`,{className:c.default.list,children:e}),ol:({children:e})=>(0,d.jsx)(`ol`,{className:c.default.list,children:e}),li:({children:e})=>(0,d.jsx)(`li`,{className:c.default.listItem,children:e}),code({className:e,children:t,...n}){let r=/language-(\w+)/.exec(e||``);return r?(0,d.jsx)(s.CodeBlock,{code:String(t).replace(/\n$/,``),language:r[1],className:c.default.codeBlock}):(0,d.jsx)(`code`,{className:c.default.inlineCode,...n,children:t})},table:({children:e})=>(0,d.jsx)(`div`,{className:c.default.tableWrapper,children:(0,d.jsx)(`table`,{className:c.default.table,children:e})}),th:({children:e})=>(0,d.jsx)(`th`,{className:c.default.th,children:e}),td:({children:e})=>(0,d.jsx)(`td`,{className:c.default.td,children:e}),input:({type:e,checked:t,disabled:n})=>e===`checkbox`?(0,d.jsx)(`input`,{type:`checkbox`,checked:t,disabled:n,readOnly:!0,"aria-label":g(t?`markdown.task_done`:`markdown.task_todo`)}):null},children:e})})};g.displayName=`MarkdownRenderer`,exports.MarkdownRenderer=g;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { useWimTranslation as e } from "../../../i18n/useWimTranslation.js";
3
- import { formNs as t } from "../../../i18n/generated/form.js";
4
- import { Text as n } from "../../typography/Text/Text.js";
5
- import { Link as r } from "../../navigation/Link/Link.js";
6
- import { Title as i } from "../../typography/Title/Title.js";
3
+ import { Title as t } from "../../typography/Title/Title.js";
4
+ import { formNs as n } from "../../../i18n/generated/form.js";
5
+ import { Text as r } from "../../typography/Text/Text.js";
6
+ import { Link as i } from "../../navigation/Link/Link.js";
7
7
  import { Blockquote as a } from "../../typography/Blockquote/Blockquote.js";
8
8
  import { CodeBlock as o } from "../CodeBlock/CodeBlock.js";
9
9
  import s from "./markdown-renderer.module.js";
@@ -28,41 +28,41 @@ function p(e, t) {
28
28
  return f[Math.max(0, n - (e - 1))];
29
29
  }
30
30
  var m = ({ content: f, baseLevel: m = "2xl", className: h }) => {
31
- let { t: g } = e(t);
31
+ let { t: g } = e(n);
32
32
  return /* @__PURE__ */ l("div", {
33
33
  className: c("wim-markdown-renderer", s.root, h),
34
34
  children: /* @__PURE__ */ l(u, {
35
35
  remarkPlugins: [d],
36
36
  components: {
37
- h1: ({ children: e }) => /* @__PURE__ */ l(i, {
37
+ h1: ({ children: e }) => /* @__PURE__ */ l(t, {
38
38
  tag: "h1",
39
39
  size: p(1, m),
40
40
  className: s.heading,
41
41
  children: e
42
42
  }),
43
- h2: ({ children: e }) => /* @__PURE__ */ l(i, {
43
+ h2: ({ children: e }) => /* @__PURE__ */ l(t, {
44
44
  tag: "h2",
45
45
  size: p(2, m),
46
46
  className: s.heading,
47
47
  children: e
48
48
  }),
49
- h3: ({ children: e }) => /* @__PURE__ */ l(i, {
49
+ h3: ({ children: e }) => /* @__PURE__ */ l(t, {
50
50
  tag: "h3",
51
51
  size: p(3, m),
52
52
  className: s.heading,
53
53
  children: e
54
54
  }),
55
- h4: ({ children: e }) => /* @__PURE__ */ l(i, {
55
+ h4: ({ children: e }) => /* @__PURE__ */ l(t, {
56
56
  tag: "h4",
57
57
  size: p(4, m),
58
58
  className: s.heading,
59
59
  children: e
60
60
  }),
61
- p: ({ children: e }) => /* @__PURE__ */ l(n, {
61
+ p: ({ children: e }) => /* @__PURE__ */ l(r, {
62
62
  className: s.paragraph,
63
63
  children: e
64
64
  }),
65
- a: ({ href: e, children: t }) => /* @__PURE__ */ l(r, {
65
+ a: ({ href: e, children: t }) => /* @__PURE__ */ l(i, {
66
66
  href: e,
67
67
  children: t
68
68
  }),
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../typography/Text/Text.cjs"),n=require("../Accordion/Accordion.cjs"),r=require("../../typography/Title/Title.cjs"),i=require("./faq-section.module.cjs");let a=require("react");a=e.__toESM(a,1);let o=require("classnames");o=e.__toESM(o,1);let s=require("react/jsx-runtime");var c=({items:e,title:a,description:c,layout:l=`top`,accordionProps:u,className:d,"aria-label":f,"aria-labelledby":p})=>{let m=!!(a||c);return(0,s.jsx)(`section`,{className:(0,o.default)(`wim-faq-section`,i.default.root,i.default[`layout-${l}`],d),"aria-label":p?void 0:f,"aria-labelledby":p,children:(0,s.jsxs)(`div`,{className:i.default.layout,children:[m&&(0,s.jsxs)(`div`,{className:i.default.header,children:[a&&(0,s.jsx)(r.Title,{tag:`h2`,size:`xl`,className:i.default.title,children:a}),c&&(0,s.jsx)(t.Text,{content:c,color:`text-secondary`,className:i.default.description})]}),(0,s.jsx)(`div`,{className:i.default.content,children:(0,s.jsx)(n.Accordion,{type:`multiple`,collapsible:!0,...u,className:u?.className,children:e.map((e,t)=>(0,s.jsxs)(n.Accordion.Item,{value:`faq-item-${t}`,children:[(0,s.jsx)(n.Accordion.Trigger,{children:e.question}),(0,s.jsx)(n.Accordion.Content,{children:e.answer})]},t))})})]})})};exports.FAQSection=c;
2
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../typography/Title/Title.cjs"),n=require("../../typography/Text/Text.cjs"),r=require("../Accordion/Accordion.cjs"),i=require("./faq-section.module.cjs");let a=require("react");a=e.__toESM(a,1);let o=require("classnames");o=e.__toESM(o,1);let s=require("react/jsx-runtime");var c=({items:e,title:a,description:c,layout:l=`top`,accordionProps:u,className:d,"aria-label":f,"aria-labelledby":p})=>{let m=!!(a||c);return(0,s.jsx)(`section`,{className:(0,o.default)(`wim-faq-section`,i.default.root,i.default[`layout-${l}`],d),"aria-label":p?void 0:f,"aria-labelledby":p,children:(0,s.jsxs)(`div`,{className:i.default.layout,children:[m&&(0,s.jsxs)(`div`,{className:i.default.header,children:[a&&(0,s.jsx)(t.Title,{tag:`h2`,size:`xl`,className:i.default.title,children:a}),c&&(0,s.jsx)(n.Text,{content:c,color:`text-secondary`,className:i.default.description})]}),(0,s.jsx)(`div`,{className:i.default.content,children:(0,s.jsx)(r.Accordion,{type:`multiple`,collapsible:!0,...u,className:u?.className,children:e.map((e,t)=>(0,s.jsxs)(r.Accordion.Item,{value:`faq-item-${t}`,children:[(0,s.jsx)(r.Accordion.Trigger,{children:e.question}),(0,s.jsx)(r.Accordion.Content,{children:e.answer})]},t))})})]})})};exports.FAQSection=c;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { Text as e } from "../../typography/Text/Text.js";
3
- import { Accordion as t } from "../Accordion/Accordion.js";
4
- import { Title as n } from "../../typography/Title/Title.js";
2
+ import { Title as e } from "../../typography/Title/Title.js";
3
+ import { Text as t } from "../../typography/Text/Text.js";
4
+ import { Accordion as n } from "../Accordion/Accordion.js";
5
5
  import r from "./faq-section.module.js";
6
6
  import "react";
7
7
  import i from "classnames";
@@ -17,27 +17,27 @@ var s = ({ items: s, title: c, description: l, layout: u = "top", accordionProps
17
17
  className: r.layout,
18
18
  children: [h && /* @__PURE__ */ o("div", {
19
19
  className: r.header,
20
- children: [c && /* @__PURE__ */ a(n, {
20
+ children: [c && /* @__PURE__ */ a(e, {
21
21
  tag: "h2",
22
22
  size: "xl",
23
23
  className: r.title,
24
24
  children: c
25
- }), l && /* @__PURE__ */ a(e, {
25
+ }), l && /* @__PURE__ */ a(t, {
26
26
  content: l,
27
27
  color: "text-secondary",
28
28
  className: r.description
29
29
  })]
30
30
  }), /* @__PURE__ */ a("div", {
31
31
  className: r.content,
32
- children: /* @__PURE__ */ a(t, {
32
+ children: /* @__PURE__ */ a(n, {
33
33
  type: "multiple",
34
34
  collapsible: !0,
35
35
  ...d,
36
36
  className: d?.className,
37
- children: s.map((e, n) => /* @__PURE__ */ o(t.Item, {
38
- value: `faq-item-${n}`,
39
- children: [/* @__PURE__ */ a(t.Trigger, { children: e.question }), /* @__PURE__ */ a(t.Content, { children: e.answer })]
40
- }, n))
37
+ children: s.map((e, t) => /* @__PURE__ */ o(n.Item, {
38
+ value: `faq-item-${t}`,
39
+ children: [/* @__PURE__ */ a(n.Trigger, { children: e.question }), /* @__PURE__ */ a(n.Content, { children: e.answer })]
40
+ }, t))
41
41
  })
42
42
  })]
43
43
  })
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../i18n/useWimTranslation.cjs"),n=require("../../../i18n/generated/common.cjs"),r=require("../../layout/VisuallyHidden/VisuallyHidden.cjs"),i=require("../Avatar/Avatar.cjs"),a=require("../Presence/Presence.cjs"),o=require("./persona.module.cjs");let s=require("react");s=e.__toESM(s,1);let c=require("classnames");c=e.__toESM(c,1);let l=require("react/jsx-runtime");var u=s.default.forwardRef(({name:e,description:s,secondaryDescription:u,avatar:d,presence:f,size:p=`md`,textPosition:m=`after`,className:h,...g},_)=>{let{t:v}=t.useWimTranslation(n.commonNs),y=(0,l.jsx)(i.Avatar,{src:d?.src,initials:d?.initials,icon:d?.icon,size:p,alt:``,"aria-hidden":`true`});return(0,l.jsxs)(`div`,{ref:_,className:(0,c.default)(`wim-persona`,o.default.root,o.default[p],m===`below`&&o.default.below,h),...g,children:[f?(0,l.jsx)(a.Presence,{status:f,size:p,"aria-hidden":`true`,className:o.default.avatar,children:y}):(0,l.jsx)(`span`,{className:o.default.avatar,children:y}),(0,l.jsxs)(`div`,{className:o.default.text,children:[(0,l.jsxs)(`span`,{className:o.default.name,"data-part":`name`,children:[e,f&&(0,l.jsx)(r.VisuallyHidden,{children:`, ${v(`presence.${f}`)}`})]}),s!=null&&(0,l.jsx)(`span`,{className:o.default.description,"data-part":`description`,children:s}),u!=null&&(0,l.jsx)(`span`,{className:o.default.secondaryDescription,"data-part":`secondary-description`,children:u})]})]})});u.displayName=`Persona`,exports.Persona=u;
@@ -0,0 +1,71 @@
1
+ import { default as React } from 'react';
2
+ import { PresenceStatus } from '../Presence/Presence.js';
3
+ import { ComponentSizeBasic } from '../../../types/tokens.js';
4
+ export type PersonaAvatar = {
5
+ /** Image source URL. */
6
+ src?: string;
7
+ /** Initials shown when there is no image. */
8
+ initials?: string;
9
+ /** Icon shown when there is no image and no initials. */
10
+ icon?: React.ReactNode;
11
+ };
12
+ export type PersonaProps = Omit<React.ComponentPropsWithoutRef<"div">, "children"> & {
13
+ /** The person's name. Read once; the avatar is never given the name as its alternative text. */
14
+ name: React.ReactNode;
15
+ /** First line under the name, such as a role or a team. */
16
+ description?: React.ReactNode;
17
+ /** Second line under the name, smaller and quieter, such as a status or a time. */
18
+ secondaryDescription?: React.ReactNode;
19
+ /**
20
+ * What the avatar shows. The avatar is decorative: the name next to it
21
+ * already says who it is.
22
+ */
23
+ avatar?: PersonaAvatar;
24
+ /** Presence shown on the avatar. Announced right after the name. */
25
+ presence?: PresenceStatus;
26
+ /**
27
+ * Size of the avatar. The name and description sizes and the gaps follow it.
28
+ * @default "md"
29
+ */
30
+ size?: ComponentSizeBasic;
31
+ /**
32
+ * Where the text sits relative to the avatar.
33
+ * @default "after"
34
+ */
35
+ textPosition?: "after" | "below";
36
+ };
37
+ /**
38
+ * Persona shows a person as one unit: avatar, name and up to two lines of
39
+ * description, with the text sizes matched to the avatar size.
40
+ *
41
+ * Composition Contract:
42
+ * - Managed by: App consumption
43
+ * - Naming: The name is the only text that names the person. The avatar is
44
+ * hidden from assistive technology so the name is not read twice
45
+ * - Scroll lock: No
46
+ */
47
+ export declare const Persona: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children"> & {
48
+ /** The person's name. Read once; the avatar is never given the name as its alternative text. */
49
+ name: React.ReactNode;
50
+ /** First line under the name, such as a role or a team. */
51
+ description?: React.ReactNode;
52
+ /** Second line under the name, smaller and quieter, such as a status or a time. */
53
+ secondaryDescription?: React.ReactNode;
54
+ /**
55
+ * What the avatar shows. The avatar is decorative: the name next to it
56
+ * already says who it is.
57
+ */
58
+ avatar?: PersonaAvatar;
59
+ /** Presence shown on the avatar. Announced right after the name. */
60
+ presence?: PresenceStatus;
61
+ /**
62
+ * Size of the avatar. The name and description sizes and the gaps follow it.
63
+ * @default "md"
64
+ */
65
+ size?: ComponentSizeBasic;
66
+ /**
67
+ * Where the text sits relative to the avatar.
68
+ * @default "after"
69
+ */
70
+ textPosition?: "after" | "below";
71
+ } & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,58 @@
1
+ "use client";
2
+ import { useWimTranslation as e } from "../../../i18n/useWimTranslation.js";
3
+ import { commonNs as t } from "../../../i18n/generated/common.js";
4
+ import { VisuallyHidden as n } from "../../layout/VisuallyHidden/VisuallyHidden.js";
5
+ import { Avatar as r } from "../Avatar/Avatar.js";
6
+ import { Presence as i } from "../Presence/Presence.js";
7
+ import a from "./persona.module.js";
8
+ import o from "react";
9
+ import s from "classnames";
10
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
11
+ //#region src/components/data-display/Persona/Persona.tsx
12
+ var u = o.forwardRef(({ name: o, description: u, secondaryDescription: d, avatar: f, presence: p, size: m = "md", textPosition: h = "after", className: g, ..._ }, v) => {
13
+ let { t: y } = e(t), b = /* @__PURE__ */ c(r, {
14
+ src: f?.src,
15
+ initials: f?.initials,
16
+ icon: f?.icon,
17
+ size: m,
18
+ alt: "",
19
+ "aria-hidden": "true"
20
+ });
21
+ return /* @__PURE__ */ l("div", {
22
+ ref: v,
23
+ className: s("wim-persona", a.root, a[m], h === "below" && a.below, g),
24
+ ..._,
25
+ children: [p ? /* @__PURE__ */ c(i, {
26
+ status: p,
27
+ size: m,
28
+ "aria-hidden": "true",
29
+ className: a.avatar,
30
+ children: b
31
+ }) : /* @__PURE__ */ c("span", {
32
+ className: a.avatar,
33
+ children: b
34
+ }), /* @__PURE__ */ l("div", {
35
+ className: a.text,
36
+ children: [
37
+ /* @__PURE__ */ l("span", {
38
+ className: a.name,
39
+ "data-part": "name",
40
+ children: [o, p && /* @__PURE__ */ c(n, { children: `, ${y(`presence.${p}`)}` })]
41
+ }),
42
+ u != null && /* @__PURE__ */ c("span", {
43
+ className: a.description,
44
+ "data-part": "description",
45
+ children: u
46
+ }),
47
+ d != null && /* @__PURE__ */ c("span", {
48
+ className: a.secondaryDescription,
49
+ "data-part": "secondary-description",
50
+ children: d
51
+ })
52
+ ]
53
+ })]
54
+ });
55
+ });
56
+ u.displayName = "Persona";
57
+ //#endregion
58
+ export { u as Persona };
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ var e=`_root_bksm9_3`,t=`_below_bksm9_11`,n=`_avatar_bksm9_15`,r=`_text_bksm9_19`,i=`_name_bksm9_25`,a=`_description_bksm9_32`,o=`_secondaryDescription_bksm9_38`,s=`_sm_bksm9_45`,c=`_md_bksm9_51`,l=`_lg_bksm9_57`,u={root:e,below:t,avatar:n,text:r,name:i,description:a,secondaryDescription:o,sm:s,md:c,lg:l};exports.avatar=n,exports.below=t,exports.default=u,exports.description=a,exports.lg=l,exports.md=c,exports.name=i,exports.root=e,exports.secondaryDescription=o,exports.sm=s,exports.text=r;
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ //#region src/components/data-display/Persona/persona.module.scss
3
+ var e = "_root_bksm9_3", t = "_below_bksm9_11", n = "_avatar_bksm9_15", r = "_text_bksm9_19", i = "_name_bksm9_25", a = "_description_bksm9_32", o = "_secondaryDescription_bksm9_38", s = "_sm_bksm9_45", c = "_md_bksm9_51", l = "_lg_bksm9_57", u = {
4
+ root: e,
5
+ below: t,
6
+ avatar: n,
7
+ text: r,
8
+ name: i,
9
+ description: a,
10
+ secondaryDescription: o,
11
+ sm: s,
12
+ md: c,
13
+ lg: l
14
+ };
15
+ //#endregion
16
+ export { n as avatar, t as below, u as default, a as description, l as lg, c as md, i as name, e as root, o as secondaryDescription, s as sm, r as text };
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../typography/Title/Title.cjs"),n=require("./page-header.module.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("classnames");i=e.__toESM(i,1);let a=require("react/jsx-runtime");var o=r.default.forwardRef(({title:e,breadcrumb:r,status:o,description:s,actions:c,tabs:l,className:u,...d},f)=>(0,a.jsxs)(`div`,{ref:f,className:(0,i.default)(`wim-page-header`,n.default.root,u),...d,children:[r!=null&&(0,a.jsx)(`div`,{className:n.default.breadcrumb,"data-part":`breadcrumb`,children:r}),(0,a.jsxs)(`div`,{className:n.default.main,children:[(0,a.jsxs)(`div`,{className:n.default.heading,children:[(0,a.jsxs)(`div`,{className:n.default.titleRow,children:[(0,a.jsx)(t.Title,{tag:`h1`,size:`lg`,className:n.default.title,"data-part":`title`,children:e}),o!=null&&(0,a.jsx)(`div`,{className:n.default.status,"data-part":`status`,children:o})]}),s!=null&&(0,a.jsx)(`div`,{className:n.default.description,"data-part":`description`,children:s})]}),c!=null&&(0,a.jsx)(`div`,{className:n.default.actions,"data-part":`actions`,children:c})]}),l!=null&&(0,a.jsx)(`div`,{className:n.default.tabs,"data-part":`tabs`,children:l})]}));o.displayName=`PageHeader`,exports.PageHeader=o;
@@ -0,0 +1,51 @@
1
+ import { default as React } from 'react';
2
+ export type PageHeaderProps = Omit<React.ComponentPropsWithoutRef<"div">, "title"> & {
3
+ /**
4
+ * The page title. Always rendered as the page's `h1` at one fixed size; a
5
+ * long title wraps instead of being cut.
6
+ */
7
+ title: React.ReactNode;
8
+ /** Breadcrumb shown above the title (usually a `Breadcrumb`). */
9
+ breadcrumb?: React.ReactNode;
10
+ /** A short status next to the title, such as a `Badge`. */
11
+ status?: React.ReactNode;
12
+ /** One or two lines under the title that say what is on the page. */
13
+ description?: React.ReactNode;
14
+ /**
15
+ * Page actions, such as `Button`s. They sit to the right of the title and
16
+ * move to their own line under it when the header is too narrow.
17
+ */
18
+ actions?: React.ReactNode;
19
+ /** Navigation between the page's views, such as `TabNavigation`, at the bottom. */
20
+ tabs?: React.ReactNode;
21
+ };
22
+ /**
23
+ * PageHeader is the head of a page: breadcrumb, title, status, description,
24
+ * actions and tabs in a fixed order and spacing. Use one per page.
25
+ *
26
+ * Composition Contract:
27
+ * - Managed by: App consumption (one per page, inside the main region)
28
+ * - Landmark: None. The root is a `div`, not `header`, so it never becomes a
29
+ * second banner next to the app's `Header`
30
+ * - Scroll lock: No
31
+ */
32
+ export declare const PageHeader: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "title"> & {
33
+ /**
34
+ * The page title. Always rendered as the page's `h1` at one fixed size; a
35
+ * long title wraps instead of being cut.
36
+ */
37
+ title: React.ReactNode;
38
+ /** Breadcrumb shown above the title (usually a `Breadcrumb`). */
39
+ breadcrumb?: React.ReactNode;
40
+ /** A short status next to the title, such as a `Badge`. */
41
+ status?: React.ReactNode;
42
+ /** One or two lines under the title that say what is on the page. */
43
+ description?: React.ReactNode;
44
+ /**
45
+ * Page actions, such as `Button`s. They sit to the right of the title and
46
+ * move to their own line under it when the header is too narrow.
47
+ */
48
+ actions?: React.ReactNode;
49
+ /** Navigation between the page's views, such as `TabNavigation`, at the bottom. */
50
+ tabs?: React.ReactNode;
51
+ } & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,55 @@
1
+ "use client";
2
+ import { Title as e } from "../../typography/Title/Title.js";
3
+ import t from "./page-header.module.js";
4
+ import n from "react";
5
+ import r from "classnames";
6
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
+ //#region src/components/layout/PageHeader/PageHeader.tsx
8
+ var o = n.forwardRef(({ title: n, breadcrumb: o, status: s, description: c, actions: l, tabs: u, className: d, ...f }, p) => /* @__PURE__ */ a("div", {
9
+ ref: p,
10
+ className: r("wim-page-header", t.root, d),
11
+ ...f,
12
+ children: [
13
+ o != null && /* @__PURE__ */ i("div", {
14
+ className: t.breadcrumb,
15
+ "data-part": "breadcrumb",
16
+ children: o
17
+ }),
18
+ /* @__PURE__ */ a("div", {
19
+ className: t.main,
20
+ children: [/* @__PURE__ */ a("div", {
21
+ className: t.heading,
22
+ children: [/* @__PURE__ */ a("div", {
23
+ className: t.titleRow,
24
+ children: [/* @__PURE__ */ i(e, {
25
+ tag: "h1",
26
+ size: "lg",
27
+ className: t.title,
28
+ "data-part": "title",
29
+ children: n
30
+ }), s != null && /* @__PURE__ */ i("div", {
31
+ className: t.status,
32
+ "data-part": "status",
33
+ children: s
34
+ })]
35
+ }), c != null && /* @__PURE__ */ i("div", {
36
+ className: t.description,
37
+ "data-part": "description",
38
+ children: c
39
+ })]
40
+ }), l != null && /* @__PURE__ */ i("div", {
41
+ className: t.actions,
42
+ "data-part": "actions",
43
+ children: l
44
+ })]
45
+ }),
46
+ u != null && /* @__PURE__ */ i("div", {
47
+ className: t.tabs,
48
+ "data-part": "tabs",
49
+ children: u
50
+ })
51
+ ]
52
+ }));
53
+ o.displayName = "PageHeader";
54
+ //#endregion
55
+ export { o as PageHeader };
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ var e=`_root_7qibi_3`,t=`_breadcrumb_7qibi_10`,n=`_main_7qibi_17`,r=`_heading_7qibi_27`,i=`_titleRow_7qibi_34`,a=`_title_7qibi_34`,o=`_status_7qibi_49`,s=`_description_7qibi_54`,c=`_actions_7qibi_58`,l=`_tabs_7qibi_66`,u={root:e,breadcrumb:t,main:n,heading:r,titleRow:i,title:a,status:o,description:s,actions:c,tabs:l};exports.actions=c,exports.breadcrumb=t,exports.default=u,exports.description=s,exports.heading=r,exports.main=n,exports.root=e,exports.status=o,exports.tabs=l,exports.title=a,exports.titleRow=i;
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ //#region src/components/layout/PageHeader/page-header.module.scss
3
+ var e = "_root_7qibi_3", t = "_breadcrumb_7qibi_10", n = "_main_7qibi_17", r = "_heading_7qibi_27", i = "_titleRow_7qibi_34", a = "_title_7qibi_34", o = "_status_7qibi_49", s = "_description_7qibi_54", c = "_actions_7qibi_58", l = "_tabs_7qibi_66", u = {
4
+ root: e,
5
+ breadcrumb: t,
6
+ main: n,
7
+ heading: r,
8
+ titleRow: i,
9
+ title: a,
10
+ status: o,
11
+ description: s,
12
+ actions: c,
13
+ tabs: l
14
+ };
15
+ //#endregion
16
+ export { c as actions, t as breadcrumb, u as default, s as description, r as heading, n as main, e as root, o as status, l as tabs, a as title, i as titleRow };