wimui 0.76.1 → 0.76.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.
Files changed (46) hide show
  1. package/dist/components/_internal/useCloseWhenReferenceGone.cjs +2 -0
  2. package/dist/components/_internal/useCloseWhenReferenceGone.d.ts +9 -0
  3. package/dist/components/_internal/useCloseWhenReferenceGone.js +17 -0
  4. package/dist/components/_internal/useFloatingElement.cjs +1 -1
  5. package/dist/components/_internal/useFloatingElement.js +28 -25
  6. package/dist/components/overlay/Dropdown/Dropdown.cjs +1 -1
  7. package/dist/components/overlay/Dropdown/Dropdown.js +99 -98
  8. package/dist/i18n/generated/common.d.ts +1 -1
  9. package/dist/llms/AppShell.md +2 -0
  10. package/dist/llms/Avatar.md +2 -0
  11. package/dist/llms/Badge.md +2 -0
  12. package/dist/llms/ButtonGroup.md +2 -0
  13. package/dist/llms/Card.md +2 -0
  14. package/dist/llms/CodeBlock.md +2 -0
  15. package/dist/llms/CopyButton.md +2 -0
  16. package/dist/llms/DataGrid.md +2 -0
  17. package/dist/llms/Dialog.md +1 -1
  18. package/dist/llms/Drawer.md +1 -1
  19. package/dist/llms/Fieldset.md +2 -0
  20. package/dist/llms/FileUpload.md +1 -1
  21. package/dist/llms/Indicator.md +2 -0
  22. package/dist/llms/InlineEdit.md +1 -1
  23. package/dist/llms/Input.md +2 -0
  24. package/dist/llms/List.md +2 -0
  25. package/dist/llms/OverflowList.md +1 -1
  26. package/dist/llms/Pagination.md +2 -0
  27. package/dist/llms/Popover.md +1 -1
  28. package/dist/llms/QueryBuilder.md +2 -0
  29. package/dist/llms/Radio.md +2 -0
  30. package/dist/llms/RadioGroup.md +2 -0
  31. package/dist/llms/Result.md +2 -0
  32. package/dist/llms/SegmentedControl.md +1 -1
  33. package/dist/llms/Spinner.md +1 -1
  34. package/dist/llms/SplitButton.md +2 -0
  35. package/dist/llms/Splitter.md +1 -1
  36. package/dist/llms/Stats.md +1 -1
  37. package/dist/llms/Stepper.md +2 -0
  38. package/dist/llms/Table.md +2 -0
  39. package/dist/llms/Text.md +2 -0
  40. package/dist/llms-full.txt +32 -32
  41. package/dist/llms.txt +32 -32
  42. package/dist/locales/en/common.json +2 -1
  43. package/dist/locales/ja/common.json +2 -1
  44. package/dist/locales/pt/common.json +2 -1
  45. package/dist/wimui.umd.js +5 -5
  46. package/package.json +2 -2
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ let e=require("react");function t(t,n,r){let i=(0,e.useRef)(r);(0,e.useEffect)(()=>{i.current=r}),(0,e.useEffect)(()=>{if(!t||typeof ResizeObserver>`u`||!(n instanceof Element))return;let e=new ResizeObserver(()=>{(!n.isConnected||n.getClientRects().length===0)&&i.current()});return e.observe(n),()=>e.disconnect()},[t,n])}exports.useCloseWhenReferenceGone=t;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 開いている間に引き金が見えなくなったら(`display: none` などで大きさが 0 になった・文書から外れた)、
3
+ * 面を閉じる(T412)。
4
+ *
5
+ * 位置の計算は引き金を見失うと、面を画面の左上に置いたまま残した(Popover・Dropdown)。画面幅で
6
+ * 引き金を隠すツールバーや、タブを切り替えて引き金が消える画面で起きる。スクロールして引き金が
7
+ * 画面の外へ出ただけでは閉じない(floating-ui の `hide` を使うと、そこまで閉じてしまう)。
8
+ */
9
+ export declare function useCloseWhenReferenceGone(open: boolean, reference: unknown, close: () => void): void;
@@ -0,0 +1,17 @@
1
+ "use client";
2
+ import { useEffect as e, useRef as t } from "react";
3
+ //#region src/components/_internal/useCloseWhenReferenceGone.ts
4
+ function n(n, r, i) {
5
+ let a = t(i);
6
+ e(() => {
7
+ a.current = i;
8
+ }), e(() => {
9
+ if (!n || typeof ResizeObserver > "u" || !(r instanceof Element)) return;
10
+ let e = new ResizeObserver(() => {
11
+ (!r.isConnected || r.getClientRects().length === 0) && a.current();
12
+ });
13
+ return e.observe(r), () => e.disconnect();
14
+ }, [n, r]);
15
+ }
16
+ //#endregion
17
+ export { n as useCloseWhenReferenceGone };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- let e=require("react"),t=require("@floating-ui/react");var n=({placement:n=`bottom-start`,open:r,defaultOpen:i=!1,onOpenChange:a,trigger:o=`click`,offset:s=8,role:c=`dialog`}={})=>{let[l,u]=(0,e.useState)(i),d=r??l,f=e=>{r===void 0&&u(e),a?.(e)},p=(0,t.useFloating)({open:d,onOpenChange:f,placement:n,whileElementsMounted:t.autoUpdate,middleware:[(0,t.offset)(s),(0,t.flip)(),(0,t.shift)({padding:10})]}),{context:m}=p,h=(0,t.useClick)(m,{enabled:o===`click`}),g=(0,t.useHover)(m,{enabled:o===`hover`,handleClose:(0,t.safePolygon)()}),_=(0,t.useFocus)(m,{enabled:o===`hover`}),v=(0,t.useDismiss)(m),y=(0,t.useRole)(m,{role:c}),b=(0,t.useInteractions)([h,g,_,v,y]);return{isOpen:d,setOpen:f,...p,...b,isPositioned:p.isPositioned}};exports.useFloatingElement=n;
2
+ const e=require("./useCloseWhenReferenceGone.cjs");let t=require("react"),n=require("@floating-ui/react");var r=({placement:r=`bottom-start`,open:i,defaultOpen:a=!1,onOpenChange:o,trigger:s=`click`,offset:c=8,role:l=`dialog`}={})=>{let[u,d]=(0,t.useState)(a),f=i??u,p=e=>{i===void 0&&d(e),o?.(e)},m=(0,n.useFloating)({open:f,onOpenChange:p,placement:r,whileElementsMounted:n.autoUpdate,middleware:[(0,n.offset)(c),(0,n.flip)(),(0,n.shift)({padding:10})]}),{context:h}=m;e.useCloseWhenReferenceGone(f,m.elements.reference,()=>p(!1));let g=(0,n.useClick)(h,{enabled:s===`click`}),_=(0,n.useHover)(h,{enabled:s===`hover`,handleClose:(0,n.safePolygon)()}),v=(0,n.useFocus)(h,{enabled:s===`hover`}),y=(0,n.useDismiss)(h),b=(0,n.useRole)(h,{role:l}),x=(0,n.useInteractions)([g,_,v,y,b]);return{isOpen:f,setOpen:p,...m,...x,isPositioned:m.isPositioned}};exports.useFloatingElement=r;
@@ -1,37 +1,40 @@
1
1
  "use client";
2
- import { useState as e } from "react";
3
- import { autoUpdate as t, flip as n, offset as r, safePolygon as i, shift as a, useClick as o, useDismiss as s, useFloating as c, useFocus as l, useHover as u, useInteractions as d, useRole as f } from "@floating-ui/react";
2
+ import { useCloseWhenReferenceGone as e } from "./useCloseWhenReferenceGone.js";
3
+ import { useState as t } from "react";
4
+ import { autoUpdate as n, flip as r, offset as i, safePolygon as a, shift as o, useClick as s, useDismiss as c, useFloating as l, useFocus as u, useHover as d, useInteractions as f, useRole as p } from "@floating-ui/react";
4
5
  //#region src/components/_internal/useFloatingElement.ts
5
- var p = ({ placement: p = "bottom-start", open: m, defaultOpen: h = !1, onOpenChange: g, trigger: _ = "click", offset: v = 8, role: y = "dialog" } = {}) => {
6
- let [b, x] = e(h), S = m ?? b, C = (e) => {
7
- m === void 0 && x(e), g?.(e);
8
- }, w = c({
9
- open: S,
10
- onOpenChange: C,
11
- placement: p,
12
- whileElementsMounted: t,
6
+ var m = ({ placement: m = "bottom-start", open: h, defaultOpen: g = !1, onOpenChange: _, trigger: v = "click", offset: y = 8, role: b = "dialog" } = {}) => {
7
+ let [x, S] = t(g), C = h ?? x, w = (e) => {
8
+ h === void 0 && S(e), _?.(e);
9
+ }, T = l({
10
+ open: C,
11
+ onOpenChange: w,
12
+ placement: m,
13
+ whileElementsMounted: n,
13
14
  middleware: [
14
- r(v),
15
- n(),
16
- a({ padding: 10 })
15
+ i(y),
16
+ r(),
17
+ o({ padding: 10 })
17
18
  ]
18
- }), { context: T } = w, E = o(T, { enabled: _ === "click" }), D = u(T, {
19
- enabled: _ === "hover",
20
- handleClose: i()
21
- }), O = l(T, { enabled: _ === "hover" }), k = s(T), A = f(T, { role: y }), j = d([
22
- E,
19
+ }), { context: E } = T;
20
+ e(C, T.elements.reference, () => w(!1));
21
+ let D = s(E, { enabled: v === "click" }), O = d(E, {
22
+ enabled: v === "hover",
23
+ handleClose: a()
24
+ }), k = u(E, { enabled: v === "hover" }), A = c(E), j = p(E, { role: b }), M = f([
23
25
  D,
24
26
  O,
25
27
  k,
26
- A
28
+ A,
29
+ j
27
30
  ]);
28
31
  return {
29
- isOpen: S,
30
- setOpen: C,
31
- ...w,
32
- ...j,
33
- isPositioned: w.isPositioned
32
+ isOpen: C,
33
+ setOpen: w,
34
+ ...T,
35
+ ...M,
36
+ isPositioned: T.isPositioned
34
37
  };
35
38
  };
36
39
  //#endregion
37
- export { p as useFloatingElement };
40
+ export { m as useFloatingElement };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/@radix-ui/react-slot/dist/index.cjs"),n=require("../../_internal/escapeStack.cjs"),r=require("../../layout/Transition/Transition.cjs"),i=require("../../_internal/BaseListItem/BaseListItem.cjs"),a=require("../../_internal/typeahead.cjs"),o=require("../../_internal/mergeRefs.cjs"),s=require("./dropdown.module.cjs");let c=require("react");c=e.__toESM(c,1);let l=require("classnames");l=e.__toESM(l,1);let u=require("react/jsx-runtime"),d=require("@floating-ui/react");var f=c.default.createContext({isOpen:!1,toggle:()=>{},close:()=>{},menuId:``,triggerId:``,setTriggerIdOverride:()=>{},setMenuIdOverride:()=>{},focusedIndex:-1,setFocusedIndex:()=>{},registerItem:()=>0,containerRef:{current:null},setReference:()=>{},setFloating:()=>{},floatingStyles:{},floatingRef:{current:null},setAlign:()=>{}}),p=(0,c.forwardRef)(({children:e,className:r,asChild:i=!1,defaultOpen:p=!1,open:m,onOpenChange:h,...g},_)=>{let[v,y]=(0,c.useState)(p),b=m??v,x=(0,c.useCallback)(e=>{m===void 0&&y(e),h?.(e)},[m,h]),[S,C]=(0,c.useState)(-1),w=(0,c.useRef)(null),T=(0,c.useRef)(0),[E,D]=(0,c.useState)(`left`),{refs:O,floatingStyles:k}=(0,d.useFloating)({open:b,placement:E===`right`?`bottom-end`:`bottom-start`,whileElementsMounted:d.autoUpdate,middleware:[(0,d.offset)(4),(0,d.flip)(),(0,d.shift)({padding:8})]}),A=o.mergeRefs(w,_);(0,c.useEffect)(()=>{T.current=0});let j=()=>{let e=T.current;return T.current+=1,e},M=(0,c.useId)(),[N,P]=(0,c.useState)(void 0),[F,I]=(0,c.useState)(void 0),L=F??`wim-dropdown-menu-${M}`,R=N??`wim-dropdown-trigger-${M}`,z=()=>{let e=!b;x(e),C(e?0:-1)},B=(0,c.useCallback)(()=>{let e=O.floating.current,t=!!e&&e.contains(document.activeElement);x(!1),C(-1),t&&O.reference.current?.focus?.({preventScroll:!0})},[x,O.floating,O.reference]);(0,c.useEffect)(()=>{let e=e=>{let t=e.target,n=O.floating.current?.contains(t)??!1;w.current&&!w.current.contains(t)&&!n&&B()};return b&&document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[b,O.floating,B]),n.useEscapeLayer(b,B);let V=a.useTypeahead(),H=e=>{if(!b)return;let t=Array.from((O.floating.current??w.current)?.querySelectorAll(`[role="menuitem"]:not([aria-disabled="true"])`)||[]);if(a.isTypeaheadKey(e,V.typing())){let n=a.findTypeaheadIndex({query:V.push(e.key),current:S,count:t.length,getText:e=>t[e].textContent??``});n>=0&&(e.preventDefault(),C(n))}else switch(e.key){case`ArrowDown`:e.preventDefault(),C(e=>e<t.length-1?e+1:0);break;case`ArrowUp`:e.preventDefault(),C(e=>e>0?e-1:t.length-1);break;case`Home`:e.preventDefault(),C(0);break;case`End`:e.preventDefault(),C(t.length-1);break;case`Tab`:B()}};(0,c.useEffect)(()=>{b&&S>=0&&Array.from((O.floating.current??w.current)?.querySelectorAll(`[role="menuitem"]:not([aria-disabled="true"])`)||[])[S]?.focus({preventScroll:!0})},[S,b,O.floating]);let U=i?t.Root:`div`;return(0,u.jsx)(f.Provider,{value:{isOpen:b,toggle:z,close:B,menuId:L,triggerId:R,setTriggerIdOverride:P,setMenuIdOverride:I,focusedIndex:S,setFocusedIndex:C,registerItem:j,containerRef:w,setReference:O.setReference,setFloating:O.setFloating,floatingStyles:k,floatingRef:O.floating,setAlign:D},children:(0,u.jsx)(U,{...g,role:`none`,className:(0,l.default)(`wim-dropdown`,s.default.root,r),ref:A,onKeyDown:H,children:(0,u.jsx)(t.Slottable,{children:e})})})});p.displayName=`Dropdown`;var m=(0,c.forwardRef)(({children:e,className:n,asChild:r=!1,id:i,...a},d)=>{let{toggle:p,isOpen:m,menuId:h,triggerId:g,setTriggerIdOverride:_,setReference:v}=c.default.useContext(f);(0,c.useEffect)(()=>(_(i),()=>_(void 0)),[i,_]);let y=r?t.Root:`div`,b=o.mergeRefs(v,d);return(0,u.jsx)(y,{...a,ref:b,id:i??g,className:(0,l.default)(s.default.trigger,n),onClick:p,"aria-haspopup":`menu`,"aria-expanded":m,"aria-controls":m?h:void 0,role:`button`,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `||e.key===`ArrowDown`&&!m)&&(e.preventDefault(),p())},children:(0,u.jsx)(t.Slottable,{children:e})})});m.displayName=`Dropdown.Trigger`;var h=(0,c.forwardRef)(({children:e,className:t,align:n=`left`,show:i,style:a,id:p,"aria-labelledby":m,...h},g)=>{let{isOpen:_,menuId:v,triggerId:y,setMenuIdOverride:b,setFloating:x,floatingStyles:S,setAlign:C}=c.default.useContext(f);(0,c.useEffect)(()=>(b(p),()=>b(void 0)),[p,b]),(0,c.useEffect)(()=>{C(n)},[n,C]);let w=o.mergeRefs(x,g);return(0,u.jsx)(d.FloatingPortal,{children:(0,u.jsx)(r.Transition,{...h,ref:w,show:i===void 0?_:i,preset:`fade`,id:p??v,style:{...S,...a},className:(0,l.default)(s.default.menu,t),role:`menu`,"aria-labelledby":m??y,children:e})})});h.displayName=`Dropdown.Menu`;var g=(0,c.forwardRef)(({children:e,onClick:t,disabled:n=!1,className:r,...a},o)=>{let{close:d,focusedIndex:p,setFocusedIndex:m,registerItem:h}=c.default.useContext(f),[g]=(0,c.useState)(()=>h()),_=p===g,v=e=>{n||(e.stopPropagation(),t&&t(),d())};return(0,u.jsx)(i.BaseListItem,{...a,ref:o,className:(0,l.default)(s.default.item,r),onClick:v,onFocus:()=>m(g),disabled:n,role:`menuitem`,tabIndex:_?0:-1,onKeyDown:e=>{!n&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),v(e))},children:e})});g.displayName=`Dropdown.Item`;var _=(0,c.forwardRef)((e,t)=>(0,u.jsx)(p,{...e,ref:t}));_.displayName=`Dropdown`,_.Trigger=m,_.Menu=h,_.Item=g,exports.Dropdown=_,exports.default=_,exports.DropdownItem=g,exports.DropdownMenu=h,exports.DropdownTrigger=m;
2
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/@radix-ui/react-slot/dist/index.cjs"),n=require("../../_internal/escapeStack.cjs"),r=require("../../layout/Transition/Transition.cjs"),i=require("../../_internal/BaseListItem/BaseListItem.cjs"),a=require("../../_internal/typeahead.cjs"),o=require("../../_internal/mergeRefs.cjs"),s=require("../../_internal/useCloseWhenReferenceGone.cjs"),c=require("./dropdown.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("@floating-ui/react");var p=l.default.createContext({isOpen:!1,toggle:()=>{},close:()=>{},menuId:``,triggerId:``,setTriggerIdOverride:()=>{},setMenuIdOverride:()=>{},focusedIndex:-1,setFocusedIndex:()=>{},registerItem:()=>0,containerRef:{current:null},setReference:()=>{},setFloating:()=>{},floatingStyles:{},floatingRef:{current:null},setAlign:()=>{}}),m=(0,l.forwardRef)(({children:e,className:r,asChild:i=!1,defaultOpen:m=!1,open:h,onOpenChange:g,..._},v)=>{let[y,b]=(0,l.useState)(m),x=h??y,S=(0,l.useCallback)(e=>{h===void 0&&b(e),g?.(e)},[h,g]),[C,w]=(0,l.useState)(-1),T=(0,l.useRef)(null),E=(0,l.useRef)(0),[D,O]=(0,l.useState)(`left`),{refs:k,floatingStyles:A,elements:j}=(0,f.useFloating)({open:x,placement:D===`right`?`bottom-end`:`bottom-start`,whileElementsMounted:f.autoUpdate,middleware:[(0,f.offset)(4),(0,f.flip)(),(0,f.shift)({padding:8})]}),M=o.mergeRefs(T,v);(0,l.useEffect)(()=>{E.current=0});let N=()=>{let e=E.current;return E.current+=1,e},P=(0,l.useId)(),[F,I]=(0,l.useState)(void 0),[L,R]=(0,l.useState)(void 0),z=L??`wim-dropdown-menu-${P}`,B=F??`wim-dropdown-trigger-${P}`,V=()=>{let e=!x;S(e),w(e?0:-1)},H=(0,l.useCallback)(()=>{let e=k.floating.current,t=!!e&&e.contains(document.activeElement);S(!1),w(-1),t&&k.reference.current?.focus?.({preventScroll:!0})},[S,k.floating,k.reference]);(0,l.useEffect)(()=>{let e=e=>{let t=e.target,n=k.floating.current?.contains(t)??!1;T.current&&!T.current.contains(t)&&!n&&H()};return x&&document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[x,k.floating,H]),n.useEscapeLayer(x,H),s.useCloseWhenReferenceGone(x,j.reference,H);let U=a.useTypeahead(),W=e=>{if(!x)return;let t=Array.from((k.floating.current??T.current)?.querySelectorAll(`[role="menuitem"]:not([aria-disabled="true"])`)||[]);if(a.isTypeaheadKey(e,U.typing())){let n=a.findTypeaheadIndex({query:U.push(e.key),current:C,count:t.length,getText:e=>t[e].textContent??``});n>=0&&(e.preventDefault(),w(n))}else switch(e.key){case`ArrowDown`:e.preventDefault(),w(e=>e<t.length-1?e+1:0);break;case`ArrowUp`:e.preventDefault(),w(e=>e>0?e-1:t.length-1);break;case`Home`:e.preventDefault(),w(0);break;case`End`:e.preventDefault(),w(t.length-1);break;case`Tab`:H()}};(0,l.useEffect)(()=>{x&&C>=0&&Array.from((k.floating.current??T.current)?.querySelectorAll(`[role="menuitem"]:not([aria-disabled="true"])`)||[])[C]?.focus({preventScroll:!0})},[C,x,k.floating]);let G=i?t.Root:`div`;return(0,d.jsx)(p.Provider,{value:{isOpen:x,toggle:V,close:H,menuId:z,triggerId:B,setTriggerIdOverride:I,setMenuIdOverride:R,focusedIndex:C,setFocusedIndex:w,registerItem:N,containerRef:T,setReference:k.setReference,setFloating:k.setFloating,floatingStyles:A,floatingRef:k.floating,setAlign:O},children:(0,d.jsx)(G,{..._,role:`none`,className:(0,u.default)(`wim-dropdown`,c.default.root,r),ref:M,onKeyDown:W,children:(0,d.jsx)(t.Slottable,{children:e})})})});m.displayName=`Dropdown`;var h=(0,l.forwardRef)(({children:e,className:n,asChild:r=!1,id:i,...a},s)=>{let{toggle:f,isOpen:m,menuId:h,triggerId:g,setTriggerIdOverride:_,setReference:v}=l.default.useContext(p);(0,l.useEffect)(()=>(_(i),()=>_(void 0)),[i,_]);let y=r?t.Root:`div`,b=o.mergeRefs(v,s);return(0,d.jsx)(y,{...a,ref:b,id:i??g,className:(0,u.default)(c.default.trigger,n),onClick:f,"aria-haspopup":`menu`,"aria-expanded":m,"aria-controls":m?h:void 0,role:`button`,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `||e.key===`ArrowDown`&&!m)&&(e.preventDefault(),f())},children:(0,d.jsx)(t.Slottable,{children:e})})});h.displayName=`Dropdown.Trigger`;var g=(0,l.forwardRef)(({children:e,className:t,align:n=`left`,show:i,style:a,id:s,"aria-labelledby":m,...h},g)=>{let{isOpen:_,menuId:v,triggerId:y,setMenuIdOverride:b,setFloating:x,floatingStyles:S,setAlign:C}=l.default.useContext(p);(0,l.useEffect)(()=>(b(s),()=>b(void 0)),[s,b]),(0,l.useEffect)(()=>{C(n)},[n,C]);let w=o.mergeRefs(x,g);return(0,d.jsx)(f.FloatingPortal,{children:(0,d.jsx)(r.Transition,{...h,ref:w,show:i===void 0?_:i,preset:`fade`,id:s??v,style:{...S,...a},className:(0,u.default)(c.default.menu,t),role:`menu`,"aria-labelledby":m??y,children:e})})});g.displayName=`Dropdown.Menu`;var _=(0,l.forwardRef)(({children:e,onClick:t,disabled:n=!1,className:r,...a},o)=>{let{close:s,focusedIndex:f,setFocusedIndex:m,registerItem:h}=l.default.useContext(p),[g]=(0,l.useState)(()=>h()),_=f===g,v=e=>{n||(e.stopPropagation(),t&&t(),s())};return(0,d.jsx)(i.BaseListItem,{...a,ref:o,className:(0,u.default)(c.default.item,r),onClick:v,onFocus:()=>m(g),disabled:n,role:`menuitem`,tabIndex:_?0:-1,onKeyDown:e=>{!n&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),v(e))},children:e})});_.displayName=`Dropdown.Item`;var v=(0,l.forwardRef)((e,t)=>(0,d.jsx)(m,{...e,ref:t}));v.displayName=`Dropdown`,v.Trigger=h,v.Menu=g,v.Item=_,exports.Dropdown=v,exports.default=v,exports.DropdownItem=_,exports.DropdownMenu=g,exports.DropdownTrigger=h;
@@ -5,13 +5,14 @@ import { Transition as r } from "../../layout/Transition/Transition.js";
5
5
  import { BaseListItem as i } from "../../_internal/BaseListItem/BaseListItem.js";
6
6
  import { findTypeaheadIndex as a, isTypeaheadKey as o, useTypeahead as s } from "../../_internal/typeahead.js";
7
7
  import { mergeRefs as c } from "../../_internal/mergeRefs.js";
8
- import l from "./dropdown.module.js";
9
- import u, { forwardRef as d, useCallback as f, useEffect as p, useId as m, useRef as h, useState as g } from "react";
10
- import _ from "classnames";
11
- import { jsx as v } from "react/jsx-runtime";
12
- import { FloatingPortal as y, autoUpdate as b, flip as x, offset as S, shift as C, useFloating as w } from "@floating-ui/react";
8
+ import { useCloseWhenReferenceGone as l } from "../../_internal/useCloseWhenReferenceGone.js";
9
+ import u from "./dropdown.module.js";
10
+ import d, { forwardRef as f, useCallback as p, useEffect as m, useId as h, useRef as g, useState as _ } from "react";
11
+ import v from "classnames";
12
+ import { jsx as y } from "react/jsx-runtime";
13
+ import { FloatingPortal as b, autoUpdate as x, flip as S, offset as C, shift as w, useFloating as T } from "@floating-ui/react";
13
14
  //#region src/components/overlay/Dropdown/Dropdown.tsx
14
- var T = u.createContext({
15
+ var E = d.createContext({
15
16
  isOpen: !1,
16
17
  toggle: () => {},
17
18
  close: () => {},
@@ -28,169 +29,169 @@ var T = u.createContext({
28
29
  floatingStyles: {},
29
30
  floatingRef: { current: null },
30
31
  setAlign: () => {}
31
- }), E = d(({ children: r, className: i, asChild: u = !1, defaultOpen: d = !1, open: y, onOpenChange: E, ...D }, O) => {
32
- let [k, A] = g(d), j = y ?? k, M = f((e) => {
33
- y === void 0 && A(e), E?.(e);
34
- }, [y, E]), [N, P] = g(-1), F = h(null), I = h(0), [L, R] = g("left"), { refs: z, floatingStyles: B } = w({
35
- open: j,
36
- placement: L === "right" ? "bottom-end" : "bottom-start",
37
- whileElementsMounted: b,
32
+ }), D = f(({ children: r, className: i, asChild: d = !1, defaultOpen: f = !1, open: b, onOpenChange: D, ...O }, k) => {
33
+ let [A, j] = _(f), M = b ?? A, N = p((e) => {
34
+ b === void 0 && j(e), D?.(e);
35
+ }, [b, D]), [P, F] = _(-1), I = g(null), L = g(0), [ee, R] = _("left"), { refs: z, floatingStyles: B, elements: V } = T({
36
+ open: M,
37
+ placement: ee === "right" ? "bottom-end" : "bottom-start",
38
+ whileElementsMounted: x,
38
39
  middleware: [
39
- S(4),
40
- x(),
41
- C({ padding: 8 })
40
+ C(4),
41
+ S(),
42
+ w({ padding: 8 })
42
43
  ]
43
- }), V = c(F, O);
44
- p(() => {
45
- I.current = 0;
44
+ }), H = c(I, k);
45
+ m(() => {
46
+ L.current = 0;
46
47
  });
47
- let H = () => {
48
- let e = I.current;
49
- return I.current += 1, e;
50
- }, U = m(), [W, G] = g(void 0), [K, q] = g(void 0), J = K ?? `wim-dropdown-menu-${U}`, Y = W ?? `wim-dropdown-trigger-${U}`, X = () => {
51
- let e = !j;
52
- M(e), P(e ? 0 : -1);
53
- }, Z = f(() => {
48
+ let U = () => {
49
+ let e = L.current;
50
+ return L.current += 1, e;
51
+ }, W = h(), [G, K] = _(void 0), [q, J] = _(void 0), Y = q ?? `wim-dropdown-menu-${W}`, X = G ?? `wim-dropdown-trigger-${W}`, Z = () => {
52
+ let e = !M;
53
+ N(e), F(e ? 0 : -1);
54
+ }, Q = p(() => {
54
55
  let e = z.floating.current, t = !!e && e.contains(document.activeElement);
55
- M(!1), P(-1), t && z.reference.current?.focus?.({ preventScroll: !0 });
56
+ N(!1), F(-1), t && z.reference.current?.focus?.({ preventScroll: !0 });
56
57
  }, [
57
- M,
58
+ N,
58
59
  z.floating,
59
60
  z.reference
60
61
  ]);
61
- p(() => {
62
+ m(() => {
62
63
  let e = (e) => {
63
64
  let t = e.target, n = z.floating.current?.contains(t) ?? !1;
64
- F.current && !F.current.contains(t) && !n && Z();
65
+ I.current && !I.current.contains(t) && !n && Q();
65
66
  };
66
- return j && document.addEventListener("mousedown", e), () => {
67
+ return M && document.addEventListener("mousedown", e), () => {
67
68
  document.removeEventListener("mousedown", e);
68
69
  };
69
70
  }, [
70
- j,
71
+ M,
71
72
  z.floating,
72
- Z
73
- ]), n(j, Z);
74
- let Q = s(), $ = (e) => {
75
- if (!j) return;
76
- let t = Array.from((z.floating.current ?? F.current)?.querySelectorAll("[role=\"menuitem\"]:not([aria-disabled=\"true\"])") || []);
77
- if (o(e, Q.typing())) {
73
+ Q
74
+ ]), n(M, Q), l(M, V.reference, Q);
75
+ let $ = s(), te = (e) => {
76
+ if (!M) return;
77
+ let t = Array.from((z.floating.current ?? I.current)?.querySelectorAll("[role=\"menuitem\"]:not([aria-disabled=\"true\"])") || []);
78
+ if (o(e, $.typing())) {
78
79
  let n = a({
79
- query: Q.push(e.key),
80
- current: N,
80
+ query: $.push(e.key),
81
+ current: P,
81
82
  count: t.length,
82
83
  getText: (e) => t[e].textContent ?? ""
83
84
  });
84
- n >= 0 && (e.preventDefault(), P(n));
85
+ n >= 0 && (e.preventDefault(), F(n));
85
86
  } else switch (e.key) {
86
87
  case "ArrowDown":
87
- e.preventDefault(), P((e) => e < t.length - 1 ? e + 1 : 0);
88
+ e.preventDefault(), F((e) => e < t.length - 1 ? e + 1 : 0);
88
89
  break;
89
90
  case "ArrowUp":
90
- e.preventDefault(), P((e) => e > 0 ? e - 1 : t.length - 1);
91
+ e.preventDefault(), F((e) => e > 0 ? e - 1 : t.length - 1);
91
92
  break;
92
93
  case "Home":
93
- e.preventDefault(), P(0);
94
+ e.preventDefault(), F(0);
94
95
  break;
95
96
  case "End":
96
- e.preventDefault(), P(t.length - 1);
97
+ e.preventDefault(), F(t.length - 1);
97
98
  break;
98
- case "Tab": Z();
99
+ case "Tab": Q();
99
100
  }
100
101
  };
101
- p(() => {
102
- j && N >= 0 && Array.from((z.floating.current ?? F.current)?.querySelectorAll("[role=\"menuitem\"]:not([aria-disabled=\"true\"])") || [])[N]?.focus({ preventScroll: !0 });
102
+ m(() => {
103
+ M && P >= 0 && Array.from((z.floating.current ?? I.current)?.querySelectorAll("[role=\"menuitem\"]:not([aria-disabled=\"true\"])") || [])[P]?.focus({ preventScroll: !0 });
103
104
  }, [
104
- N,
105
- j,
105
+ P,
106
+ M,
106
107
  z.floating
107
108
  ]);
108
- let ee = u ? e : "div";
109
- return /* @__PURE__ */ v(T.Provider, {
109
+ let ne = d ? e : "div";
110
+ return /* @__PURE__ */ y(E.Provider, {
110
111
  value: {
111
- isOpen: j,
112
- toggle: X,
113
- close: Z,
114
- menuId: J,
115
- triggerId: Y,
116
- setTriggerIdOverride: G,
117
- setMenuIdOverride: q,
118
- focusedIndex: N,
119
- setFocusedIndex: P,
120
- registerItem: H,
121
- containerRef: F,
112
+ isOpen: M,
113
+ toggle: Z,
114
+ close: Q,
115
+ menuId: Y,
116
+ triggerId: X,
117
+ setTriggerIdOverride: K,
118
+ setMenuIdOverride: J,
119
+ focusedIndex: P,
120
+ setFocusedIndex: F,
121
+ registerItem: U,
122
+ containerRef: I,
122
123
  setReference: z.setReference,
123
124
  setFloating: z.setFloating,
124
125
  floatingStyles: B,
125
126
  floatingRef: z.floating,
126
127
  setAlign: R
127
128
  },
128
- children: /* @__PURE__ */ v(ee, {
129
- ...D,
129
+ children: /* @__PURE__ */ y(ne, {
130
+ ...O,
130
131
  role: "none",
131
- className: _("wim-dropdown", l.root, i),
132
- ref: V,
133
- onKeyDown: $,
134
- children: /* @__PURE__ */ v(t, { children: r })
132
+ className: v("wim-dropdown", u.root, i),
133
+ ref: H,
134
+ onKeyDown: te,
135
+ children: /* @__PURE__ */ y(t, { children: r })
135
136
  })
136
137
  });
137
138
  });
138
- E.displayName = "Dropdown";
139
- var D = d(({ children: n, className: r, asChild: i = !1, id: a, ...o }, s) => {
140
- let { toggle: d, isOpen: f, menuId: m, triggerId: h, setTriggerIdOverride: g, setReference: y } = u.useContext(T);
141
- p(() => (g(a), () => g(void 0)), [a, g]);
142
- let b = i ? e : "div", x = c(y, s);
143
- return /* @__PURE__ */ v(b, {
139
+ D.displayName = "Dropdown";
140
+ var O = f(({ children: n, className: r, asChild: i = !1, id: a, ...o }, s) => {
141
+ let { toggle: l, isOpen: f, menuId: p, triggerId: h, setTriggerIdOverride: g, setReference: _ } = d.useContext(E);
142
+ m(() => (g(a), () => g(void 0)), [a, g]);
143
+ let b = i ? e : "div", x = c(_, s);
144
+ return /* @__PURE__ */ y(b, {
144
145
  ...o,
145
146
  ref: x,
146
147
  id: a ?? h,
147
- className: _(l.trigger, r),
148
- onClick: d,
148
+ className: v(u.trigger, r),
149
+ onClick: l,
149
150
  "aria-haspopup": "menu",
150
151
  "aria-expanded": f,
151
- "aria-controls": f ? m : void 0,
152
+ "aria-controls": f ? p : void 0,
152
153
  role: "button",
153
154
  tabIndex: 0,
154
155
  onKeyDown: (e) => {
155
- (e.key === "Enter" || e.key === " " || e.key === "ArrowDown" && !f) && (e.preventDefault(), d());
156
+ (e.key === "Enter" || e.key === " " || e.key === "ArrowDown" && !f) && (e.preventDefault(), l());
156
157
  },
157
- children: /* @__PURE__ */ v(t, { children: n })
158
+ children: /* @__PURE__ */ y(t, { children: n })
158
159
  });
159
160
  });
160
- D.displayName = "Dropdown.Trigger";
161
- var O = d(({ children: e, className: t, align: n = "left", show: i, style: a, id: o, "aria-labelledby": s, ...d }, f) => {
162
- let { isOpen: m, menuId: h, triggerId: g, setMenuIdOverride: b, setFloating: x, floatingStyles: S, setAlign: C } = u.useContext(T);
163
- p(() => (b(o), () => b(void 0)), [o, b]), p(() => {
161
+ O.displayName = "Dropdown.Trigger";
162
+ var k = f(({ children: e, className: t, align: n = "left", show: i, style: a, id: o, "aria-labelledby": s, ...l }, f) => {
163
+ let { isOpen: p, menuId: h, triggerId: g, setMenuIdOverride: _, setFloating: x, floatingStyles: S, setAlign: C } = d.useContext(E);
164
+ m(() => (_(o), () => _(void 0)), [o, _]), m(() => {
164
165
  C(n);
165
166
  }, [n, C]);
166
167
  let w = c(x, f);
167
- return /* @__PURE__ */ v(y, { children: /* @__PURE__ */ v(r, {
168
- ...d,
168
+ return /* @__PURE__ */ y(b, { children: /* @__PURE__ */ y(r, {
169
+ ...l,
169
170
  ref: w,
170
- show: i === void 0 ? m : i,
171
+ show: i === void 0 ? p : i,
171
172
  preset: "fade",
172
173
  id: o ?? h,
173
174
  style: {
174
175
  ...S,
175
176
  ...a
176
177
  },
177
- className: _(l.menu, t),
178
+ className: v(u.menu, t),
178
179
  role: "menu",
179
180
  "aria-labelledby": s ?? g,
180
181
  children: e
181
182
  }) });
182
183
  });
183
- O.displayName = "Dropdown.Menu";
184
- var k = d(({ children: e, onClick: t, disabled: n = !1, className: r, ...a }, o) => {
185
- let { close: s, focusedIndex: c, setFocusedIndex: d, registerItem: f } = u.useContext(T), [p] = g(() => f()), m = c === p, h = (e) => {
184
+ k.displayName = "Dropdown.Menu";
185
+ var A = f(({ children: e, onClick: t, disabled: n = !1, className: r, ...a }, o) => {
186
+ let { close: s, focusedIndex: c, setFocusedIndex: l, registerItem: f } = d.useContext(E), [p] = _(() => f()), m = c === p, h = (e) => {
186
187
  n || (e.stopPropagation(), t && t(), s());
187
188
  };
188
- return /* @__PURE__ */ v(i, {
189
+ return /* @__PURE__ */ y(i, {
189
190
  ...a,
190
191
  ref: o,
191
- className: _(l.item, r),
192
+ className: v(u.item, r),
192
193
  onClick: h,
193
- onFocus: () => d(p),
194
+ onFocus: () => l(p),
194
195
  disabled: n,
195
196
  role: "menuitem",
196
197
  tabIndex: m ? 0 : -1,
@@ -200,11 +201,11 @@ var k = d(({ children: e, onClick: t, disabled: n = !1, className: r, ...a }, o)
200
201
  children: e
201
202
  });
202
203
  });
203
- k.displayName = "Dropdown.Item";
204
- var A = d((e, t) => /* @__PURE__ */ v(E, {
204
+ A.displayName = "Dropdown.Item";
205
+ var j = f((e, t) => /* @__PURE__ */ y(D, {
205
206
  ...e,
206
207
  ref: t
207
208
  }));
208
- A.displayName = "Dropdown", A.Trigger = D, A.Menu = O, A.Item = k;
209
+ j.displayName = "Dropdown", j.Trigger = O, j.Menu = k, j.Item = A;
209
210
  //#endregion
210
- export { A as Dropdown, A as default, k as DropdownItem, O as DropdownMenu, D as DropdownTrigger };
211
+ export { j as Dropdown, j as default, A as DropdownItem, k as DropdownMenu, O as DropdownTrigger };
@@ -1,3 +1,3 @@
1
1
  import { WimNamespace } from '../instance.js';
2
- export type CommonKey = "a11y.attach_file" | "a11y.back_to_top" | "a11y.breadcrumb" | "a11y.calendar" | "a11y.clear_date" | "a11y.clear_input" | "a11y.clear_selection" | "a11y.clear_text" | "a11y.close" | "a11y.close_dialog" | "a11y.close_menu" | "a11y.close_tour" | "a11y.considerations" | "a11y.cover_art" | "a11y.crop_target" | "a11y.data_grid" | "a11y.delete" | "a11y.edit" | "a11y.exit_fullscreen" | "a11y.fullscreen" | "a11y.go_to_next_page" | "a11y.go_to_page" | "a11y.go_to_prev_page" | "a11y.hide_password" | "a11y.icon_fallback" | "a11y.items_per_page" | "a11y.jump_to_page" | "a11y.kanban_board" | "a11y.kanban_column_count" | "a11y.left_icon_action" | "a11y.loading" | "a11y.move_card" | "a11y.move_to_column" | "a11y.mute" | "a11y.next_month" | "a11y.next_slide" | "a11y.next_track" | "a11y.open_calendar" | "a11y.open_dropdown" | "a11y.open_menu" | "a11y.pagination_nav" | "a11y.pause" | "a11y.picture_in_picture" | "a11y.play" | "a11y.playlist" | "a11y.prev_month" | "a11y.prev_slide" | "a11y.resize_panel" | "a11y.right_icon_action" | "a11y.scroll_progress" | "a11y.search" | "a11y.seek" | "a11y.select_all_rows" | "a11y.select_row" | "a11y.select_row_numbered" | "a11y.settings" | "a11y.show_password" | "a11y.signature_canvas" | "a11y.skip_backward" | "a11y.skip_forward" | "a11y.unmute" | "a11y.volume" | "account" | "action.add" | "action.back" | "action.cancel" | "action.clear" | "action.close" | "action.confirm" | "action.copy" | "action.delete" | "action.edit" | "action.finish" | "action.next" | "action.ok" | "action.previous" | "action.save" | "action.search" | "action.submit" | "analytics" | "aspect.ratio" | "audience" | "audio.bass_boost" | "audio.repeat_all" | "audio.repeat_off" | "audio.repeat_single" | "audio.shuffle" | "audio.unknown_artist" | "audio.unknown_title" | "autosave.aria_label" | "autosave.error" | "autosave.saved" | "autosave.saved_at" | "autosave.saving" | "barcode.aria_label" | "barcode.invalid" | "bottom" | "chat.ai_assistant" | "chat.attachment_prefix" | "chat.placeholder" | "chat.placeholder_interactive" | "chat.send" | "chat.support" | "chat.tool_input" | "chat.tool_output" | "chat.user_avatar" | "chat.you" | "comment.action_context" | "comment.delete" | "comment.edit" | "comment.edited" | "comment.reply" | "common.all" | "common.appearance" | "common.as" | "common.children" | "common.className" | "common.color" | "common.component" | "common.content" | "common.custom" | "common.dark" | "common.default" | "common.delivery" | "common.description" | "common.disabled" | "common.do" | "common.done" | "common.dont" | "common.error" | "common.features" | "common.ghost" | "common.heatmap_less" | "common.heatmap_more" | "common.heatmap_title" | "common.horizontal" | "common.id" | "common.intensity" | "common.intent" | "common.label" | "common.large" | "common.layout" | "common.light" | "common.medium" | "common.name" | "common.neutral" | "common.no" | "common.none" | "common.or" | "common.password" | "common.placeholder" | "common.primary" | "common.props" | "common.ref" | "common.reload" | "common.rounded" | "common.secondary" | "common.size" | "common.small" | "common.status" | "common.style" | "common.success" | "common.title" | "common.type" | "common.usage" | "common.value" | "common.variant" | "common.vertical" | "common.warning" | "common.yes" | "copied" | "copy.to_clipboard" | "dashboard.intro" | "dashboard.tokens_link" | "dataGrid.displaying" | "dataGrid.loading_more" | "dataGrid.rows_selected" | "dataGrid.sort_cleared" | "dataGrid.sorted_ascending" | "dataGrid.sorted_descending" | "doc.a11y_spec_title" | "doc.anatomy_module_note" | "doc.anatomy_title" | "doc.api_reference" | "doc.baseListItem_a11y_desc" | "doc.baseListItem_anatomy_content_desc" | "doc.baseListItem_anatomy_content_label" | "doc.baseListItem_anatomy_root_desc" | "doc.baseListItem_anatomy_root_label" | "doc.baseListItem_best_practice_1" | "doc.baseListItem_best_practice_2" | "doc.baseListItem_choice_alt_when" | "doc.baseListItem_choice_matrix_desc" | "doc.baseListItem_choice_use_when" | "doc.baseListItem_content_guideline_1" | "doc.baseListItem_content_guideline_2" | "doc.baseListItem_design_intent" | "doc.baseListItem_i18n_desc" | "doc.baseListItem_keyboard_desc" | "doc.baseListItem_long_desc" | "doc.baseListItem_motion_desc" | "doc.baseListItem_responsive_desc" | "doc.baseListItem_scenario_1" | "doc.baseListItem_scenario_2" | "doc.baseListItem_tokens_desc" | "doc.baseListItem_usage_desc" | "doc.best_practice_footer" | "doc.best_practices_title" | "doc.button_a11y_desc" | "doc.button_motion_desc" | "doc.button_scenario_desc" | "doc.choice_matrix_title" | "doc.component" | "doc.content_guidelines_title" | "doc.danger" | "doc.description" | "doc.design_intent_title" | "doc.fieldTemplate_a11y_desc" | "doc.i18n_docgen_intro" | "doc.i18n_docgen_none" | "doc.i18n_title" | "doc.iconButton_desc" | "doc.inputBase_a11y_desc" | "doc.json_viewer_a11y_desc" | "doc.json_viewer_best_practice_1" | "doc.json_viewer_best_practice_2" | "doc.json_viewer_choice_matrix_desc" | "doc.json_viewer_content_guideline_1" | "doc.json_viewer_content_guideline_2" | "doc.json_viewer_desc" | "doc.json_viewer_design_intent" | "doc.json_viewer_i18n_desc" | "doc.json_viewer_keyboard_desc" | "doc.json_viewer_motion_desc" | "doc.json_viewer_responsive_desc" | "doc.json_viewer_scenario_1" | "doc.json_viewer_scenario_2" | "doc.keyboard_nav_title" | "doc.label" | "doc.label_a11y_desc" | "doc.label_best_practice_1" | "doc.label_best_practice_2" | "doc.label_choice_matrix_desc" | "doc.label_choice_self_when" | "doc.label_design_intent" | "doc.label_i18n_desc" | "doc.label_keyboard_desc" | "doc.label_motion_desc" | "doc.label_responsive_desc" | "doc.label_scenario_1" | "doc.label_scenario_2" | "doc.label_tokens_desc" | "doc.location" | "doc.motion_spec_title" | "doc.op_cancel" | "doc.op_edit_save" | "doc.op_navigate" | "doc.props_none" | "doc.props_title" | "doc.pull_to_refresh_a11y_desc" | "doc.pull_to_refresh_best_practice_1" | "doc.pull_to_refresh_best_practice_2" | "doc.pull_to_refresh_choice_matrix_desc" | "doc.pull_to_refresh_content_guideline_1" | "doc.pull_to_refresh_content_guideline_2" | "doc.pull_to_refresh_desc" | "doc.pull_to_refresh_design_intent" | "doc.pull_to_refresh_i18n_desc" | "doc.pull_to_refresh_keyboard_desc" | "doc.pull_to_refresh_motion_desc" | "doc.pull_to_refresh_responsive_desc" | "doc.pull_to_refresh_scenario_1" | "doc.pull_to_refresh_scenario_2" | "doc.real_world_scenarios_title" | "doc.recommendation" | "doc.responsive_title" | "doc.scenario" | "doc.scenario_404_title" | "doc.scenario_admin_title" | "doc.scenario_agreement_title" | "doc.scenario_ai_title" | "doc.scenario_article_title" | "doc.scenario_chat_title" | "doc.scenario_collab_title" | "doc.scenario_comment_title" | "doc.scenario_confirm_title" | "doc.scenario_copy_title" | "doc.scenario_cta_title" | "doc.scenario_dashboard_title" | "doc.scenario_delete_title" | "doc.scenario_detail_title" | "doc.scenario_ec_title" | "doc.scenario_event_title" | "doc.scenario_fail_title" | "doc.scenario_faq_title" | "doc.scenario_feature_title" | "doc.scenario_feed_title" | "doc.scenario_files_title" | "doc.scenario_filter_title" | "doc.scenario_form_title" | "doc.scenario_gallery_title" | "doc.scenario_gender_title" | "doc.scenario_help_title" | "doc.scenario_hero_title" | "doc.scenario_icon_title" | "doc.scenario_inbox_title" | "doc.scenario_init_title" | "doc.scenario_list_title" | "doc.scenario_maintenance_title" | "doc.scenario_nav_title" | "doc.scenario_notif_title" | "doc.scenario_pagination_title" | "doc.scenario_payment_title" | "doc.scenario_product_title" | "doc.scenario_products_title" | "doc.scenario_profile_title" | "doc.scenario_refresh_title" | "doc.scenario_save_title" | "doc.scenario_search_title" | "doc.scenario_settings_title" | "doc.scenario_shipping_title" | "doc.scenario_sns_title" | "doc.scenario_stats_title" | "doc.scenario_status_title" | "doc.scenario_subscription_title" | "doc.scenario_toc_title" | "doc.scenario_toggle_title" | "doc.scenario_toolbar_title" | "doc.scenario_trial_title" | "doc.scenario_undo_title" | "doc.scenario_user_title" | "doc.scenario_warehouse_title" | "doc.scenario_warning_title" | "doc.see_more" | "doc.speed_dial_a11y_desc" | "doc.speed_dial_best_practice_1" | "doc.speed_dial_best_practice_2" | "doc.speed_dial_choice_matrix_desc" | "doc.speed_dial_content_guideline_1" | "doc.speed_dial_content_guideline_2" | "doc.speed_dial_desc" | "doc.speed_dial_design_intent" | "doc.speed_dial_i18n_desc" | "doc.speed_dial_keyboard_desc" | "doc.speed_dial_motion_desc" | "doc.speed_dial_responsive_desc" | "doc.speed_dial_scenario_1" | "doc.speed_dial_scenario_2" | "doc.std_column_component" | "doc.std_column_no" | "doc.std_column_yes" | "doc.std_header_loading_state" | "doc.std_header_unified_sizing" | "doc.stories" | "doc.story_default" | "doc.story_disabled" | "doc.story_error" | "doc.story_ghost" | "doc.story_horizontal" | "doc.story_multiple_icons" | "doc.story_no_label" | "doc.story_states" | "doc.story_with_badge" | "doc.story_with_icon" | "doc.story_with_icons" | "doc.story_with_right_section" | "doc.summary" | "doc.swipe_action_a11y_desc" | "doc.swipe_action_best_practice_1" | "doc.swipe_action_best_practice_2" | "doc.swipe_action_choice_matrix_desc" | "doc.swipe_action_content_guideline_1" | "doc.swipe_action_content_guideline_2" | "doc.swipe_action_desc" | "doc.swipe_action_design_intent" | "doc.swipe_action_full_swipe_title" | "doc.swipe_action_full_swipe_usage" | "doc.swipe_action_i18n_desc" | "doc.swipe_action_keyboard_desc" | "doc.swipe_action_motion_desc" | "doc.swipe_action_responsive_desc" | "doc.swipe_action_scenario_1" | "doc.swipe_action_scenario_2" | "doc.swipeable_list_desc" | "doc.swipeable_list_usage" | "doc.tag_deletable" | "doc.tag_deletable_desc" | "doc.test_description" | "doc.test_title" | "doc.transfer_i18n_desc" | "doc.transition" | "doc.usage" | "doc.usage_scenario" | "error.boundary_hide_details" | "error.boundary_retry" | "error.boundary_show_details" | "error.boundary_title" | "error.invalid" | "error.required" | "fri" | "greeting" | "guide.action_std_affected_components" | "guide.action_std_concept_desc" | "guide.action_std_concept_title" | "guide.action_std_desc" | "guide.action_std_note_desc" | "guide.action_std_note_title" | "guide.action_std_rule_1_desc" | "guide.action_std_rule_1_title" | "guide.action_std_rule_2_desc" | "guide.action_std_rule_2_title" | "guide.action_std_rule_3_desc" | "guide.action_std_rule_3_title" | "guide.action_std_rule_4_desc" | "guide.action_std_rule_4_title" | "guide.action_std_rule_header_desc" | "guide.action_std_rule_header_title" | "guide.action_std_rules_title" | "guide.action_std_title" | "guide.numeric_std_concept_desc" | "guide.numeric_std_concept_title" | "guide.numeric_std_desc" | "guide.numeric_std_exp_notation_desc" | "guide.numeric_std_i18n_desc" | "guide.numeric_std_keyboard_desc" | "guide.numeric_std_problem_2_desc" | "guide.numeric_std_problem_3_title" | "guide.numeric_std_problem_4_desc" | "guide.numeric_std_problem_4_title" | "guide.numeric_std_problems_title" | "guide.numeric_std_recommend_desc" | "guide.numeric_std_recommend_title" | "guide.numeric_std_responsive_desc" | "guide.numeric_std_spin_button_warning" | "guide.numeric_std_table_behavior" | "guide.numeric_std_table_browser" | "guide.numeric_std_table_input_disabled" | "guide.numeric_std_table_input_js_empty" | "guide.numeric_std_table_input_status" | "guide.numeric_std_title" | "guide.numeric_std_tokens_desc" | "guide.numeric_std_usage_do_1" | "guide.numeric_std_usage_dont_1" | "guide.numeric_std_usage_warning_desc" | "home" | "imageCompare.handle" | "jsonViewer.addItem" | "jsonViewer.collapse" | "jsonViewer.copy" | "jsonViewer.deleteItem" | "jsonViewer.edit" | "jsonViewer.expand" | "jsonViewer.title" | "language.en" | "language.ja" | "language.pt" | "language.support" | "learn.more" | "left" | "modelSelector.context" | "modelSelector.input" | "modelSelector.output" | "modelSelector.placeholder" | "mon" | "month.apr" | "month.aug" | "month.dec" | "month.feb" | "month.jan" | "month.jul" | "month.jun" | "month.mar" | "month.may" | "month.nov" | "month.oct" | "month.sep" | "new" | "no.data" | "no.options_found" | "no.results_found" | "nodeGraph.add_node" | "nodeGraph.label" | "nodeGraph.new_node" | "nodeGraph.node_name" | "notifications" | "optional" | "overview" | "pagination.go" | "pagination.go_to" | "pagination.items_per_page" | "pagination.page_status" | "placeholder.email" | "placeholder.name" | "placeholder.search" | "playback.rate" | "playback.speed" | "presence.away" | "presence.busy" | "presence.offline" | "presence.online" | "processing" | "profile" | "pullToRefresh.loading" | "pullToRefresh.pull" | "pullToRefresh.release" | "quality" | "rangeSlider.end" | "rangeSlider.end_of" | "rangeSlider.start" | "rangeSlider.start_of" | "reaction.add_reaction" | "reaction.aria_label" | "reaction.react_with" | "reports" | "required" | "right" | "sampletextforscrollarea" | "sat" | "saving" | "scheduleView.label" | "settings" | "speedDial.close" | "speedDial.open" | "standard" | "standard_list_item" | "status.active" | "status.completed" | "status.error" | "status.idle" | "status.info" | "status.loading" | "status.pending" | "status.success" | "status.warning" | "std.column_auto_integrated" | "std.column_component" | "std.column_no" | "std.column_yes" | "std.header_loading_state" | "std.header_unified_sizing" | "std.std_column_component" | "std.std_column_no" | "std.std_column_yes" | "std.std_header_loading_state" | "std.std_header_unified_sizing" | "story.carousel_slide_label" | "story.thoughtprocess_title_streaming" | "story.thoughtprocess_title_thinking" | "sun" | "theme.system" | "theme.toggle" | "threadList.delete" | "threadList.empty" | "threadList.label" | "threadList.new_thread" | "thu" | "token.bp_cq_criterion" | "token.bp_cq_examples" | "token.bp_cq_label" | "token.bp_cq_note" | "token.bp_cq_usage_desc" | "token.bp_cq_usage_title" | "token.bp_cq_why_desc" | "token.bp_cq_why_title" | "token.bp_decision_col" | "token.bp_desc" | "token.bp_down_desc" | "token.bp_lg_device" | "token.bp_list" | "token.bp_md_device" | "token.bp_mq_criterion" | "token.bp_mq_examples" | "token.bp_mq_label" | "token.bp_mq_vs_cq_desc" | "token.bp_mq_vs_cq_title" | "token.bp_scss" | "token.bp_scss_desc" | "token.bp_sm_device" | "token.bp_th_device" | "token.bp_th_key" | "token.bp_th_width" | "token.bp_title" | "token.bp_up_desc" | "token.bp_xl_device" | "token.breakpoints" | "token.color_checker_desc" | "token.color_checker_title" | "token.color_ct_desc" | "token.color_ct_title" | "token.color_interaction_oklch_desc" | "token.color_interaction_oklch_title" | "token.color_pccs_th1" | "token.color_pccs_th2" | "token.color_pccs_th3" | "token.color_rgb_alpha_desc" | "token.color_rgb_alpha_title" | "token.colors" | "token.effects" | "token.overview_desc" | "token.overview_title" | "token.pccs" | "token.pccs_desc" | "token.spacings" | "token.type_alias" | "token.type_alias_desc" | "token.type_alias_th1" | "token.type_alias_th2" | "token.type_decor" | "token.type_desc1" | "token.type_desc2" | "token.type_ff_desc" | "token.type_ff_en" | "token.type_ff_ja" | "token.type_ff_lang" | "token.type_ff_pt" | "token.type_ff_stack" | "token.type_fontfamily" | "token.type_lh_jpan" | "token.type_lh_jpan_loose" | "token.type_lh_jpan_normal" | "token.type_lh_jpan_tight" | "token.type_lh_latn" | "token.type_lh_latn_loose" | "token.type_lh_latn_normal" | "token.type_lh_latn_tight" | "token.type_lineheight" | "token.type_lineheight_lang_desc" | "token.type_lineheight_lang_title" | "token.type_size" | "token.type_text_ex_large" | "token.type_text_ex_small" | "token.type_text_large" | "token.type_text_medium" | "token.type_text_small" | "token.type_title" | "token.type_weight" | "token.typography" | "top" | "tue" | "upload" | "username" | "video.fit_contain" | "video.fit_cover" | "video.fit_fill" | "video.fit_scale_down" | "video.label" | "wed" | "welcome";
2
+ export type CommonKey = "a11y.attach_file" | "a11y.back_to_top" | "a11y.breadcrumb" | "a11y.calendar" | "a11y.clear_date" | "a11y.clear_input" | "a11y.clear_selection" | "a11y.clear_text" | "a11y.close" | "a11y.close_dialog" | "a11y.close_menu" | "a11y.close_tour" | "a11y.considerations" | "a11y.cover_art" | "a11y.crop_target" | "a11y.data_grid" | "a11y.delete" | "a11y.edit" | "a11y.exit_fullscreen" | "a11y.fullscreen" | "a11y.go_to_next_page" | "a11y.go_to_page" | "a11y.go_to_prev_page" | "a11y.hide_password" | "a11y.icon_fallback" | "a11y.items_per_page" | "a11y.jump_to_page" | "a11y.kanban_board" | "a11y.kanban_column_count" | "a11y.left_icon_action" | "a11y.loading" | "a11y.move_card" | "a11y.move_to_column" | "a11y.mute" | "a11y.next_month" | "a11y.next_slide" | "a11y.next_track" | "a11y.open_calendar" | "a11y.open_dropdown" | "a11y.open_menu" | "a11y.pagination_nav" | "a11y.pause" | "a11y.picture_in_picture" | "a11y.play" | "a11y.playlist" | "a11y.prev_month" | "a11y.prev_slide" | "a11y.resize_panel" | "a11y.right_icon_action" | "a11y.scroll_progress" | "a11y.search" | "a11y.seek" | "a11y.select_all_rows" | "a11y.select_row" | "a11y.select_row_numbered" | "a11y.settings" | "a11y.show_password" | "a11y.signature_canvas" | "a11y.skip_backward" | "a11y.skip_forward" | "a11y.unmute" | "a11y.volume" | "account" | "action.add" | "action.back" | "action.cancel" | "action.clear" | "action.close" | "action.confirm" | "action.copy" | "action.delete" | "action.edit" | "action.finish" | "action.next" | "action.ok" | "action.previous" | "action.save" | "action.search" | "action.submit" | "analytics" | "aspect.ratio" | "audience" | "audio.bass_boost" | "audio.repeat_all" | "audio.repeat_off" | "audio.repeat_single" | "audio.shuffle" | "audio.unknown_artist" | "audio.unknown_title" | "autosave.aria_label" | "autosave.error" | "autosave.saved" | "autosave.saved_at" | "autosave.saving" | "barcode.aria_label" | "barcode.invalid" | "bottom" | "chat.ai_assistant" | "chat.attachment_prefix" | "chat.placeholder" | "chat.placeholder_interactive" | "chat.send" | "chat.support" | "chat.tool_input" | "chat.tool_output" | "chat.user_avatar" | "chat.you" | "comment.action_context" | "comment.delete" | "comment.edit" | "comment.edited" | "comment.reply" | "common.all" | "common.appearance" | "common.as" | "common.children" | "common.className" | "common.color" | "common.component" | "common.content" | "common.custom" | "common.dark" | "common.default" | "common.delivery" | "common.description" | "common.disabled" | "common.do" | "common.done" | "common.dont" | "common.error" | "common.features" | "common.ghost" | "common.heatmap_less" | "common.heatmap_more" | "common.heatmap_title" | "common.horizontal" | "common.id" | "common.intensity" | "common.intent" | "common.label" | "common.large" | "common.layout" | "common.light" | "common.medium" | "common.name" | "common.neutral" | "common.no" | "common.none" | "common.or" | "common.password" | "common.placeholder" | "common.primary" | "common.props" | "common.ref" | "common.reload" | "common.rounded" | "common.secondary" | "common.size" | "common.small" | "common.status" | "common.style" | "common.success" | "common.tertiary" | "common.title" | "common.type" | "common.usage" | "common.value" | "common.variant" | "common.vertical" | "common.warning" | "common.yes" | "copied" | "copy.to_clipboard" | "dashboard.intro" | "dashboard.tokens_link" | "dataGrid.displaying" | "dataGrid.loading_more" | "dataGrid.rows_selected" | "dataGrid.sort_cleared" | "dataGrid.sorted_ascending" | "dataGrid.sorted_descending" | "doc.a11y_spec_title" | "doc.anatomy_module_note" | "doc.anatomy_title" | "doc.api_reference" | "doc.baseListItem_a11y_desc" | "doc.baseListItem_anatomy_content_desc" | "doc.baseListItem_anatomy_content_label" | "doc.baseListItem_anatomy_root_desc" | "doc.baseListItem_anatomy_root_label" | "doc.baseListItem_best_practice_1" | "doc.baseListItem_best_practice_2" | "doc.baseListItem_choice_alt_when" | "doc.baseListItem_choice_matrix_desc" | "doc.baseListItem_choice_use_when" | "doc.baseListItem_content_guideline_1" | "doc.baseListItem_content_guideline_2" | "doc.baseListItem_design_intent" | "doc.baseListItem_i18n_desc" | "doc.baseListItem_keyboard_desc" | "doc.baseListItem_long_desc" | "doc.baseListItem_motion_desc" | "doc.baseListItem_responsive_desc" | "doc.baseListItem_scenario_1" | "doc.baseListItem_scenario_2" | "doc.baseListItem_tokens_desc" | "doc.baseListItem_usage_desc" | "doc.best_practice_footer" | "doc.best_practices_title" | "doc.button_a11y_desc" | "doc.button_motion_desc" | "doc.button_scenario_desc" | "doc.choice_matrix_title" | "doc.component" | "doc.content_guidelines_title" | "doc.danger" | "doc.description" | "doc.design_intent_title" | "doc.fieldTemplate_a11y_desc" | "doc.i18n_docgen_intro" | "doc.i18n_docgen_none" | "doc.i18n_title" | "doc.iconButton_desc" | "doc.inputBase_a11y_desc" | "doc.json_viewer_a11y_desc" | "doc.json_viewer_best_practice_1" | "doc.json_viewer_best_practice_2" | "doc.json_viewer_choice_matrix_desc" | "doc.json_viewer_content_guideline_1" | "doc.json_viewer_content_guideline_2" | "doc.json_viewer_desc" | "doc.json_viewer_design_intent" | "doc.json_viewer_i18n_desc" | "doc.json_viewer_keyboard_desc" | "doc.json_viewer_motion_desc" | "doc.json_viewer_responsive_desc" | "doc.json_viewer_scenario_1" | "doc.json_viewer_scenario_2" | "doc.keyboard_nav_title" | "doc.label" | "doc.label_a11y_desc" | "doc.label_best_practice_1" | "doc.label_best_practice_2" | "doc.label_choice_matrix_desc" | "doc.label_choice_self_when" | "doc.label_design_intent" | "doc.label_i18n_desc" | "doc.label_keyboard_desc" | "doc.label_motion_desc" | "doc.label_responsive_desc" | "doc.label_scenario_1" | "doc.label_scenario_2" | "doc.label_tokens_desc" | "doc.location" | "doc.motion_spec_title" | "doc.op_cancel" | "doc.op_edit_save" | "doc.op_navigate" | "doc.props_none" | "doc.props_title" | "doc.pull_to_refresh_a11y_desc" | "doc.pull_to_refresh_best_practice_1" | "doc.pull_to_refresh_best_practice_2" | "doc.pull_to_refresh_choice_matrix_desc" | "doc.pull_to_refresh_content_guideline_1" | "doc.pull_to_refresh_content_guideline_2" | "doc.pull_to_refresh_desc" | "doc.pull_to_refresh_design_intent" | "doc.pull_to_refresh_i18n_desc" | "doc.pull_to_refresh_keyboard_desc" | "doc.pull_to_refresh_motion_desc" | "doc.pull_to_refresh_responsive_desc" | "doc.pull_to_refresh_scenario_1" | "doc.pull_to_refresh_scenario_2" | "doc.real_world_scenarios_title" | "doc.recommendation" | "doc.responsive_title" | "doc.scenario" | "doc.scenario_404_title" | "doc.scenario_admin_title" | "doc.scenario_agreement_title" | "doc.scenario_ai_title" | "doc.scenario_article_title" | "doc.scenario_chat_title" | "doc.scenario_collab_title" | "doc.scenario_comment_title" | "doc.scenario_confirm_title" | "doc.scenario_copy_title" | "doc.scenario_cta_title" | "doc.scenario_dashboard_title" | "doc.scenario_delete_title" | "doc.scenario_detail_title" | "doc.scenario_ec_title" | "doc.scenario_event_title" | "doc.scenario_fail_title" | "doc.scenario_faq_title" | "doc.scenario_feature_title" | "doc.scenario_feed_title" | "doc.scenario_files_title" | "doc.scenario_filter_title" | "doc.scenario_form_title" | "doc.scenario_gallery_title" | "doc.scenario_gender_title" | "doc.scenario_help_title" | "doc.scenario_hero_title" | "doc.scenario_icon_title" | "doc.scenario_inbox_title" | "doc.scenario_init_title" | "doc.scenario_list_title" | "doc.scenario_maintenance_title" | "doc.scenario_nav_title" | "doc.scenario_notif_title" | "doc.scenario_pagination_title" | "doc.scenario_payment_title" | "doc.scenario_product_title" | "doc.scenario_products_title" | "doc.scenario_profile_title" | "doc.scenario_refresh_title" | "doc.scenario_save_title" | "doc.scenario_search_title" | "doc.scenario_settings_title" | "doc.scenario_shipping_title" | "doc.scenario_sns_title" | "doc.scenario_stats_title" | "doc.scenario_status_title" | "doc.scenario_subscription_title" | "doc.scenario_toc_title" | "doc.scenario_toggle_title" | "doc.scenario_toolbar_title" | "doc.scenario_trial_title" | "doc.scenario_undo_title" | "doc.scenario_user_title" | "doc.scenario_warehouse_title" | "doc.scenario_warning_title" | "doc.see_more" | "doc.speed_dial_a11y_desc" | "doc.speed_dial_best_practice_1" | "doc.speed_dial_best_practice_2" | "doc.speed_dial_choice_matrix_desc" | "doc.speed_dial_content_guideline_1" | "doc.speed_dial_content_guideline_2" | "doc.speed_dial_desc" | "doc.speed_dial_design_intent" | "doc.speed_dial_i18n_desc" | "doc.speed_dial_keyboard_desc" | "doc.speed_dial_motion_desc" | "doc.speed_dial_responsive_desc" | "doc.speed_dial_scenario_1" | "doc.speed_dial_scenario_2" | "doc.std_column_component" | "doc.std_column_no" | "doc.std_column_yes" | "doc.std_header_loading_state" | "doc.std_header_unified_sizing" | "doc.stories" | "doc.story_default" | "doc.story_disabled" | "doc.story_error" | "doc.story_ghost" | "doc.story_horizontal" | "doc.story_multiple_icons" | "doc.story_no_label" | "doc.story_states" | "doc.story_with_badge" | "doc.story_with_icon" | "doc.story_with_icons" | "doc.story_with_right_section" | "doc.summary" | "doc.swipe_action_a11y_desc" | "doc.swipe_action_best_practice_1" | "doc.swipe_action_best_practice_2" | "doc.swipe_action_choice_matrix_desc" | "doc.swipe_action_content_guideline_1" | "doc.swipe_action_content_guideline_2" | "doc.swipe_action_desc" | "doc.swipe_action_design_intent" | "doc.swipe_action_full_swipe_title" | "doc.swipe_action_full_swipe_usage" | "doc.swipe_action_i18n_desc" | "doc.swipe_action_keyboard_desc" | "doc.swipe_action_motion_desc" | "doc.swipe_action_responsive_desc" | "doc.swipe_action_scenario_1" | "doc.swipe_action_scenario_2" | "doc.swipeable_list_desc" | "doc.swipeable_list_usage" | "doc.tag_deletable" | "doc.tag_deletable_desc" | "doc.test_description" | "doc.test_title" | "doc.transfer_i18n_desc" | "doc.transition" | "doc.usage" | "doc.usage_scenario" | "error.boundary_hide_details" | "error.boundary_retry" | "error.boundary_show_details" | "error.boundary_title" | "error.invalid" | "error.required" | "fri" | "greeting" | "guide.action_std_affected_components" | "guide.action_std_concept_desc" | "guide.action_std_concept_title" | "guide.action_std_desc" | "guide.action_std_note_desc" | "guide.action_std_note_title" | "guide.action_std_rule_1_desc" | "guide.action_std_rule_1_title" | "guide.action_std_rule_2_desc" | "guide.action_std_rule_2_title" | "guide.action_std_rule_3_desc" | "guide.action_std_rule_3_title" | "guide.action_std_rule_4_desc" | "guide.action_std_rule_4_title" | "guide.action_std_rule_header_desc" | "guide.action_std_rule_header_title" | "guide.action_std_rules_title" | "guide.action_std_title" | "guide.numeric_std_concept_desc" | "guide.numeric_std_concept_title" | "guide.numeric_std_desc" | "guide.numeric_std_exp_notation_desc" | "guide.numeric_std_i18n_desc" | "guide.numeric_std_keyboard_desc" | "guide.numeric_std_problem_2_desc" | "guide.numeric_std_problem_3_title" | "guide.numeric_std_problem_4_desc" | "guide.numeric_std_problem_4_title" | "guide.numeric_std_problems_title" | "guide.numeric_std_recommend_desc" | "guide.numeric_std_recommend_title" | "guide.numeric_std_responsive_desc" | "guide.numeric_std_spin_button_warning" | "guide.numeric_std_table_behavior" | "guide.numeric_std_table_browser" | "guide.numeric_std_table_input_disabled" | "guide.numeric_std_table_input_js_empty" | "guide.numeric_std_table_input_status" | "guide.numeric_std_title" | "guide.numeric_std_tokens_desc" | "guide.numeric_std_usage_do_1" | "guide.numeric_std_usage_dont_1" | "guide.numeric_std_usage_warning_desc" | "home" | "imageCompare.handle" | "jsonViewer.addItem" | "jsonViewer.collapse" | "jsonViewer.copy" | "jsonViewer.deleteItem" | "jsonViewer.edit" | "jsonViewer.expand" | "jsonViewer.title" | "language.en" | "language.ja" | "language.pt" | "language.support" | "learn.more" | "left" | "modelSelector.context" | "modelSelector.input" | "modelSelector.output" | "modelSelector.placeholder" | "mon" | "month.apr" | "month.aug" | "month.dec" | "month.feb" | "month.jan" | "month.jul" | "month.jun" | "month.mar" | "month.may" | "month.nov" | "month.oct" | "month.sep" | "new" | "no.data" | "no.options_found" | "no.results_found" | "nodeGraph.add_node" | "nodeGraph.label" | "nodeGraph.new_node" | "nodeGraph.node_name" | "notifications" | "optional" | "overview" | "pagination.go" | "pagination.go_to" | "pagination.items_per_page" | "pagination.page_status" | "placeholder.email" | "placeholder.name" | "placeholder.search" | "playback.rate" | "playback.speed" | "presence.away" | "presence.busy" | "presence.offline" | "presence.online" | "processing" | "profile" | "pullToRefresh.loading" | "pullToRefresh.pull" | "pullToRefresh.release" | "quality" | "rangeSlider.end" | "rangeSlider.end_of" | "rangeSlider.start" | "rangeSlider.start_of" | "reaction.add_reaction" | "reaction.aria_label" | "reaction.react_with" | "reports" | "required" | "right" | "sampletextforscrollarea" | "sat" | "saving" | "scheduleView.label" | "settings" | "speedDial.close" | "speedDial.open" | "standard" | "standard_list_item" | "status.active" | "status.completed" | "status.error" | "status.idle" | "status.info" | "status.loading" | "status.pending" | "status.success" | "status.warning" | "std.column_auto_integrated" | "std.column_component" | "std.column_no" | "std.column_yes" | "std.header_loading_state" | "std.header_unified_sizing" | "std.std_column_component" | "std.std_column_no" | "std.std_column_yes" | "std.std_header_loading_state" | "std.std_header_unified_sizing" | "story.carousel_slide_label" | "story.thoughtprocess_title_streaming" | "story.thoughtprocess_title_thinking" | "sun" | "theme.system" | "theme.toggle" | "threadList.delete" | "threadList.empty" | "threadList.label" | "threadList.new_thread" | "thu" | "token.bp_cq_criterion" | "token.bp_cq_examples" | "token.bp_cq_label" | "token.bp_cq_note" | "token.bp_cq_usage_desc" | "token.bp_cq_usage_title" | "token.bp_cq_why_desc" | "token.bp_cq_why_title" | "token.bp_decision_col" | "token.bp_desc" | "token.bp_down_desc" | "token.bp_lg_device" | "token.bp_list" | "token.bp_md_device" | "token.bp_mq_criterion" | "token.bp_mq_examples" | "token.bp_mq_label" | "token.bp_mq_vs_cq_desc" | "token.bp_mq_vs_cq_title" | "token.bp_scss" | "token.bp_scss_desc" | "token.bp_sm_device" | "token.bp_th_device" | "token.bp_th_key" | "token.bp_th_width" | "token.bp_title" | "token.bp_up_desc" | "token.bp_xl_device" | "token.breakpoints" | "token.color_checker_desc" | "token.color_checker_title" | "token.color_ct_desc" | "token.color_ct_title" | "token.color_interaction_oklch_desc" | "token.color_interaction_oklch_title" | "token.color_pccs_th1" | "token.color_pccs_th2" | "token.color_pccs_th3" | "token.color_rgb_alpha_desc" | "token.color_rgb_alpha_title" | "token.colors" | "token.effects" | "token.overview_desc" | "token.overview_title" | "token.pccs" | "token.pccs_desc" | "token.spacings" | "token.type_alias" | "token.type_alias_desc" | "token.type_alias_th1" | "token.type_alias_th2" | "token.type_decor" | "token.type_desc1" | "token.type_desc2" | "token.type_ff_desc" | "token.type_ff_en" | "token.type_ff_ja" | "token.type_ff_lang" | "token.type_ff_pt" | "token.type_ff_stack" | "token.type_fontfamily" | "token.type_lh_jpan" | "token.type_lh_jpan_loose" | "token.type_lh_jpan_normal" | "token.type_lh_jpan_tight" | "token.type_lh_latn" | "token.type_lh_latn_loose" | "token.type_lh_latn_normal" | "token.type_lh_latn_tight" | "token.type_lineheight" | "token.type_lineheight_lang_desc" | "token.type_lineheight_lang_title" | "token.type_size" | "token.type_text_ex_large" | "token.type_text_ex_small" | "token.type_text_large" | "token.type_text_medium" | "token.type_text_small" | "token.type_title" | "token.type_weight" | "token.typography" | "top" | "tue" | "upload" | "username" | "video.fit_contain" | "video.fit_cover" | "video.fit_fill" | "video.fit_scale_down" | "video.label" | "wed" | "welcome";
3
3
  export declare const commonNs: WimNamespace<"common", CommonKey>;
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Basic application shell layout
4
4
 
5
+ Also known as: UI Shell
6
+
5
7
  ## Import
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Profile initials/pics
4
4
 
5
+ Also known as: User Avatar
6
+
5
7
  ## Import
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Indicators or counts
4
4
 
5
+ Also known as: Icon Indicator
6
+
5
7
  ## Import
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Group of buttons
4
4
 
5
+ Also known as: Button Set, Action Set
6
+
5
7
  ## Import
6
8
 
7
9
  ```ts
package/dist/llms/Card.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Information containers
4
4
 
5
+ Also known as: Tile
6
+
5
7
  ## Import
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Syntax-highlighted code block with copy button, line numbers, and collapsible overflow.
4
4
 
5
+ Also known as: Code Snippet
6
+
5
7
  ## Import
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Copy to clipboard
4
4
 
5
+ Also known as: Copy
6
+
5
7
  ## Import
6
8
 
7
9
  ```ts