twenty-ui 2.43.0 → 2.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -65
- package/dist/{AllIcons-Z8o0B2fy.js → AllIcons-CFMhMGzh.js} +1 -1
- package/dist/{AllIcons-D_4JeQkX.cjs → AllIcons-Cz8pObev.cjs} +1 -1
- package/dist/Avatar-B5-MSVUG.cjs +1 -0
- package/dist/Avatar-Da_dlwJP.js +68 -0
- package/dist/{ListItem-D6DvFIbl.js → ListItem-Bg7Sk5Nv.js} +34 -31
- package/dist/ListItem-UYe5GaEQ.cjs +1 -0
- package/dist/ListItem.module-DkSRO3lX.cjs +1 -0
- package/dist/ListItem.module-DqkBkYtI.js +38 -0
- package/dist/{Loader-X1LymYkw.js → Loader-BLkXvZli.js} +1 -1
- package/dist/{Loader-Z6_7AA-x.cjs → Loader-CMXdrX1d.cjs} +1 -1
- package/dist/MenuSeparator-Ct3cQtJ2.cjs +1 -0
- package/dist/MenuSeparator-CyUYx1nk.js +68 -0
- package/dist/OverflowingTextWithTooltip-CtHMhu6b.js +198 -0
- package/dist/OverflowingTextWithTooltip-maBlogGW.cjs +1 -0
- package/dist/ProgressBar-C8N-1Iav.cjs +1 -0
- package/dist/ProgressBar-Cq6EDZz9.js +58 -0
- package/dist/Switch-BLO0Y9bi.cjs +1 -0
- package/dist/Switch-CMVfAYqP.js +127 -0
- package/dist/TextDirectionContext-pwtyVyKv.cjs +1 -0
- package/dist/TextDirectionContext-zzaQWZg6.js +5 -0
- package/dist/components/__stories__/reading-direction/DirectionalLayoutExample.d.ts +3 -0
- package/dist/components/__stories__/reading-direction/DirectionalMenusExample.d.ts +4 -0
- package/dist/components/code-editor/CodeEditor/{utils → internal/utils}/getBaseCodeEditorTheme.d.ts +1 -1
- package/dist/components/code-editor/index.d.ts +0 -2
- package/dist/components/code-editor.cjs +1 -1
- package/dist/components/code-editor.mjs +36 -36
- package/dist/components/feedback/Callout/Callout.d.ts +1 -1
- package/dist/components/feedback/Callout/types/CalloutProps.d.ts +1 -0
- package/dist/components/feedback/InlineBanner/InlineBanner.d.ts +2 -18
- package/dist/components/feedback/InlineBanner/internal/InlineBannerButton.d.ts +5 -0
- package/dist/components/feedback/InlineBanner/types/InlineBannerButtonProps.d.ts +7 -0
- package/dist/components/feedback/InlineBanner/types/InlineBannerProps.d.ts +12 -0
- package/dist/components/feedback/Toast/Toast.d.ts +1 -1
- package/dist/components/feedback/Toast/internal/components/ToastProgress.d.ts +9 -0
- package/dist/components/feedback/Toast/{hooks → internal/hooks}/useEnqueueToast.d.ts +1 -1
- package/dist/components/feedback/Toast/{types → internal/types}/ToastEntry.d.ts +1 -1
- package/dist/components/feedback/Toast/types/ToastProps.d.ts +1 -1
- package/dist/components/feedback/Toaster/internal/ToasterItem.d.ts +1 -1
- package/dist/components/feedback/Toaster/internal/ToasterItemExitEffect.d.ts +1 -1
- package/dist/components/index.d.ts +4 -20
- package/dist/components/input/IconButton/types/IconButtonProps.d.ts +1 -1
- package/dist/components/input/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/input/SearchInput/__stories__/SearchInputExample.d.ts +2 -0
- package/dist/components/input/SearchInput/types/SearchInputProps.d.ts +2 -10
- package/dist/components/navigation/Dropdown/Dropdown.d.ts +6 -6
- package/dist/components/navigation/Dropdown/__stories__/DropdownContextMenuExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/createStoryState.d.ts +4 -0
- package/dist/components/navigation/Dropdown/__stories__/dropdownStoryA11yParameters.d.ts +8 -0
- package/dist/components/navigation/Dropdown/hooks/useDropdownPage.d.ts +6 -0
- package/dist/components/navigation/Dropdown/internal/DropdownActionItem.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownContent.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +5 -1
- package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownRoot.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownSubmenuTrigger.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownTitle.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownTrigger.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/getDropdownDismissTarget.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/isDropdownDismissPrevented.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/useRegisterDropdownLabelElement.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/useRegisteredElementId.d.ts +1 -0
- package/dist/components/navigation/Dropdown/types/DropdownActionItemProps.d.ts +1 -1
- package/dist/components/navigation/Dropdown/types/DropdownDismissEvent.d.ts +4 -0
- package/dist/components/navigation/Dropdown/types/DropdownRootProps.d.ts +3 -0
- package/dist/components/navigation/Dropdown/types/DropdownSubmenuProps.d.ts +1 -1
- package/dist/components/navigation/MenuItem/MenuItem.d.ts +1 -1
- package/dist/components/navigation/MenuItem/types/MenuItemProps.d.ts +1 -0
- package/dist/components/navigation/TabButton/types/TabButtonProps.d.ts +1 -1
- package/dist/components-Bs-35QDJ.cjs +1 -0
- package/dist/components-kaERZ89J.js +1865 -0
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +30 -43
- package/dist/data-display-DenoFbuP.cjs +1 -0
- package/dist/data-display-npY0auY_.js +190 -0
- package/dist/getSafeUrl-BuX_E2_8.cjs +1 -0
- package/dist/getSafeUrl-DXwcx-N0.js +27 -0
- package/dist/icon/components/TablerIcons.d.ts +1 -1
- package/dist/icon/hooks/useIcons.d.ts +1 -1
- package/dist/icon/index.d.ts +1 -1
- package/dist/{icon-Bd81r48z.js → icon-B7aZ6RxF.js} +123 -122
- package/dist/{icon-iD9IXJmn.cjs → icon-DK8OPi-m.cjs} +1 -1
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +227 -226
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +622 -642
- package/dist/input-BNuMVtkM.cjs +1 -0
- package/dist/input-COx4wMjs.js +324 -0
- package/dist/layout-BEC7fKLU.js +34 -0
- package/dist/layout-DniJJ8Mx.cjs +1 -0
- package/dist/navigation-CUofX3gO.js +78 -0
- package/dist/navigation-qJfYicT7.cjs +1 -0
- package/dist/primitives/data-display/Avatar/Avatar.d.ts +1 -1
- package/dist/primitives/data-display/Avatar/types/AvatarProps.d.ts +1 -0
- package/dist/primitives/data-display/Pill/Pill.d.ts +3 -1
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +7 -8
- package/dist/primitives/feedback/ProgressBar/ProgressBar.d.ts +2 -12
- package/dist/primitives/feedback/ProgressBar/types/ProgressBarProps.d.ts +14 -0
- package/dist/primitives/feedback/index.d.ts +1 -2
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +2 -4
- package/dist/primitives/input/Button/Button.d.ts +1 -1
- package/dist/primitives/input/Button/types/ButtonProps.d.ts +0 -2
- package/dist/primitives/input/Button/types/ButtonVariant.d.ts +1 -1
- package/dist/primitives/input/Radio/Radio.d.ts +1 -1
- package/dist/primitives/input/Radio/types/RadioProps.d.ts +1 -0
- package/dist/primitives/input/index.d.ts +0 -1
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +9 -9
- package/dist/primitives/layout/{AnimatedExpandableContainer/AnimatedExpandableContainer.d.ts → Collapsible/Collapsible.d.ts} +2 -5
- package/dist/primitives/layout/TextDirectionProvider/TextDirectionProvider.d.ts +2 -1
- package/dist/primitives/layout/TextDirectionProvider/internal/TextDirection.d.ts +1 -0
- package/dist/primitives/layout/TextDirectionProvider/internal/TextDirectionContext.d.ts +2 -0
- package/dist/primitives/layout/TextDirectionProvider/internal/useProvidedTextDirection.d.ts +1 -0
- package/dist/primitives/layout/index.d.ts +4 -6
- package/dist/primitives/layout.cjs +1 -1
- package/dist/primitives/layout.mjs +6 -6
- package/dist/primitives/navigation/ListItem/ListItem.d.ts +1 -1
- package/dist/primitives/navigation/ListItem/types/ListItemProps.d.ts +1 -0
- package/dist/primitives/navigation/index.d.ts +0 -4
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +4 -8
- package/dist/primitives/surfaces/Dialog/types/DialogSize.d.ts +1 -1
- package/dist/primitives/surfaces/Menu/internal/getMenuListItemProps.d.ts +4 -1
- package/dist/primitives/surfaces/Menu/types/MenuItemSlotProps.d.ts +1 -1
- package/dist/primitives/surfaces/Popover/Popover.d.ts +1 -1
- package/dist/primitives/surfaces/Popover/internal/PopoverPopup.d.ts +1 -1
- package/dist/primitives/surfaces/Popover/types/PopoverPopupProps.d.ts +5 -0
- package/dist/primitives/surfaces/Tooltip/Tooltip.d.ts +1 -1
- package/dist/primitives/surfaces/Tooltip/internal/TooltipPopup.d.ts +1 -1
- package/dist/primitives/surfaces/Tooltip/types/TooltipPopupProps.d.ts +1 -0
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +3 -3
- package/dist/{utilities/utils → primitives/typography/OverflowingTextWithTooltip/internal/LinkifiedText}/linkifyText.d.ts +2 -1
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +1 -1
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +48 -55
- package/dist/style.css +1 -1
- package/dist/surfaces-BJilWRcD.js +264 -0
- package/dist/surfaces-iGk6vB0x.cjs +1 -0
- package/dist/testing.cjs +1 -1
- package/dist/testing.mjs +1 -1
- package/dist/theme/constants/MainColorNames.d.ts +1 -1
- package/dist/theme/constants/ThemeCommon.d.ts +3 -0
- package/dist/theme/constants/ThemeLight.d.ts +4 -0
- package/dist/theme/getNextThemeColor.d.ts +1 -1
- package/dist/theme/themeCssVariables.d.ts +4 -0
- package/dist/theme/themeTypes.d.ts +4 -0
- package/dist/{theme-DBro6iwF.js → theme-CjHovJAZ.js} +30 -20
- package/dist/theme-DumxXtpW.cjs +1 -0
- package/dist/theme-dark.css +2 -0
- package/dist/theme-light.css +2 -0
- package/dist/theme.cjs +1 -1
- package/dist/theme.mjs +1 -1
- package/dist/useProvidedTextDirection-B7ovnsdr.cjs +1 -0
- package/dist/useProvidedTextDirection-P1dtjUtE.js +9 -0
- package/dist/utilities/device/getUserDevice.d.ts +1 -1
- package/dist/utilities/index.d.ts +0 -3
- package/dist/utilities-B7EwAZ4L.cjs +1 -0
- package/dist/utilities-CMrqpiWM.js +64 -0
- package/dist/utilities.cjs +1 -1
- package/dist/utilities.mjs +12 -13
- package/package.json +2 -2
- package/CHANGELOG.md +0 -24
- package/dist/Avatar-BSHgTxt-.js +0 -67
- package/dist/Avatar-DTNH6Ku7.cjs +0 -1
- package/dist/Input-CFXY05bj.cjs +0 -1
- package/dist/Input-DHfmRBq5.js +0 -116
- package/dist/ListItem-2dHkY1NB.cjs +0 -1
- package/dist/ListItem.module-CveFbY4M.cjs +0 -1
- package/dist/ListItem.module-DtIGiTDL.js +0 -38
- package/dist/MenuSeparator-DJOspG7J.cjs +0 -1
- package/dist/MenuSeparator-dNx4JE6C.js +0 -66
- package/dist/OverflowingTextWithTooltip-CqEkoH6t.js +0 -179
- package/dist/OverflowingTextWithTooltip-bn6EwWeq.cjs +0 -1
- package/dist/Pill-BJ3K8Mdc.cjs +0 -1
- package/dist/Pill-DaFEFIOT.js +0 -9
- package/dist/ProgressBar-DwJQXHwg.cjs +0 -1
- package/dist/ProgressBar-RWLNIkzm.js +0 -55
- package/dist/components/data-display/JsonTree/internal/JsonListItem.d.ts +0 -4
- package/dist/components/feedback/Info/Info.d.ts +0 -2
- package/dist/components/feedback/Info/types/InfoAccent.d.ts +0 -1
- package/dist/components/feedback/Info/types/InfoProps.d.ts +0 -11
- package/dist/components/input/CardPicker/CardPicker.d.ts +0 -2
- package/dist/components/input/CardPicker/types/CardPickerProps.d.ts +0 -2
- package/dist/components/input/ColorSchemePicker/ColorSchemePicker.d.ts +0 -2
- package/dist/components/input/ColorSchemePicker/internal/Checkmark/Checkmark.d.ts +0 -5
- package/dist/components/input/ColorSchemePicker/internal/ColorSchemeCard/ColorSchemeCard.d.ts +0 -11
- package/dist/components/input/ColorSchemePicker/types/ColorSchemePickerProps.d.ts +0 -9
- package/dist/components/navigation/RoundedLink/RoundedLink.d.ts +0 -8
- package/dist/components-BYWo2sUE.cjs +0 -1
- package/dist/components-C96xU59U.js +0 -1996
- package/dist/data-display-BQ9g9oSc.cjs +0 -1
- package/dist/data-display-z9gKjkPS.js +0 -184
- package/dist/feedback-BvpEL2-w.js +0 -25
- package/dist/feedback-CH2UC0Fv.cjs +0 -1
- package/dist/input-C8IiOA9Q.js +0 -335
- package/dist/input-NBD4DP8j.cjs +0 -1
- package/dist/layout-BgAfeZsL.cjs +0 -1
- package/dist/layout-D-XbKoLM.js +0 -30
- package/dist/linkifyText-BHQ4_CzQ.cjs +0 -1
- package/dist/linkifyText-BINRNP9w.js +0 -45
- package/dist/mergeClassNames-BHKm1BNi.js +0 -6
- package/dist/mergeClassNames-BbJtXN2t.cjs +0 -1
- package/dist/navigation-BqZBteC2.cjs +0 -1
- package/dist/navigation-CLMgaqS8.js +0 -91
- package/dist/primitives/feedback/CircularProgressBar/CircularProgressBar.d.ts +0 -7
- package/dist/primitives/input/Button/internal/ButtonSoon.d.ts +0 -5
- package/dist/primitives/input/types/ColorScheme.d.ts +0 -1
- package/dist/primitives/layout/AnimatedExpandableContainer/types/AnimationMode.d.ts +0 -1
- package/dist/primitives/layout/AnimatedExpandableContainer/types/AnimationSize.d.ts +0 -1
- package/dist/primitives/navigation/ClickToActionLink/ClickToActionLink.d.ts +0 -6
- package/dist/primitives/navigation/Link/constants/Cal.d.ts +0 -1
- package/dist/primitives/navigation/Link/constants/GithubLink.d.ts +0 -1
- package/dist/primitives/navigation/Link/constants/TwentyPricingLink.d.ts +0 -1
- package/dist/surfaces-DX8oX1ou.js +0 -254
- package/dist/surfaces-uuLwsFxg.cjs +0 -1
- package/dist/theme-DNG4OSBd.cjs +0 -1
- package/dist/utilities/types/ClickOutsideAttributes.d.ts +0 -4
- package/dist/utilities-BlvbRryv.cjs +0 -1
- package/dist/utilities-C5Tt2HLT.js +0 -56
- /package/dist/components/code-editor/CodeEditor/{constants → internal/constants}/BaseCodeEditorThemeId.d.ts +0 -0
- /package/dist/components/feedback/Toast/{constants → internal/constants}/DefaultToastLimit.d.ts +0 -0
- /package/dist/components/feedback/Toast/{contexts → internal/contexts}/ToastContext.d.ts +0 -0
- /package/dist/components/feedback/Toast/{hooks → internal/hooks}/useCloseToast.d.ts +0 -0
- /package/dist/components/feedback/Toast/{hooks → internal/hooks}/useToastContext.d.ts +0 -0
- /package/dist/components/feedback/Toast/{hooks → internal/hooks}/useToastEntries.d.ts +0 -0
- /package/dist/components/feedback/Toast/{stores → internal/stores}/createToastStore.d.ts +0 -0
- /package/dist/components/feedback/Toast/{types → internal/types}/ToastStoreState.d.ts +0 -0
- /package/dist/components/feedback/Toast/{utils → internal/utils}/completeToastExit.d.ts +0 -0
- /package/dist/components/feedback/Toast/{utils → internal/utils}/dismissToasts.d.ts +0 -0
- /package/dist/components/feedback/Toast/{utils → internal/utils}/isToastVisible.d.ts +0 -0
- /package/dist/primitives/layout/{AnimatedExpandableContainer → Collapsible}/types/AnimationDimension.d.ts +0 -0
- /package/dist/primitives/layout/{AnimatedExpandableContainer → Collapsible}/types/AnimationDurationObject.d.ts +0 -0
- /package/dist/primitives/layout/{AnimatedExpandableContainer → Collapsible}/types/AnimationDurations.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let i=require("clsx"),n=require("@sniptt/guards");var u=(r,e)=>t=>(0,i.clsx)(r,(0,n.isFunction)(e)?e(t):e);Object.defineProperty(exports,"mergeClassNames",{enumerable:!0,get:function(){return u}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const g=require("./theme-DNG4OSBd.cjs"),N=require("./isDefined-DS2Q42p5.cjs"),f=require("./mergeClassNames-BbJtXN2t.cjs"),l=require("./TabsTabContent-BseLV1Wk.cjs");let I=require("clsx"),o=require("react/jsx-runtime"),y=require("react");y=g.__toESM(y,1);let A=require("@base-ui/react/direction-provider"),b=require("@base-ui/react/tabs");var w="_root_5ahh0_1",x={root:w},C=e=>(0,o.jsx)("a",{className:(0,I.clsx)(x.root,e.className),href:e.href,onClick:e.onClick,target:e.target,rel:e.rel,children:e.children}),L="https://cal.com/team/twenty/talk-to-us",k="https://github.com/twentyhq/twenty",q="https://twenty.com/pricing",K=({event:e,direction:t,loopFocus:u})=>{if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;const s=e.currentTarget,i=Array.from(s.querySelectorAll('[role="tab"]')).filter(r=>r.closest('[role="tablist"]')===s),n=i.findIndex(r=>r===e.target);if(n===-1)return;const c=t==="rtl"?["ArrowLeft","ArrowRight"]:["ArrowRight","ArrowLeft"],[a,_]=s.getAttribute("aria-orientation")==="vertical"?["ArrowDown","ArrowUp"]:c;if(![a,_,"Home","End"].includes(e.key))return;e.preventBaseUIHandler(),e.preventDefault();const d=i.filter(r=>!r.hasAttribute("data-disabled")&&!r.hasAttribute("disabled")&&r.getAttribute("aria-disabled")!=="true"&&!r.closest("[hidden], [inert]"));if(e.key==="Home"){d[0]?.focus();return}if(e.key==="End"){d[d.length-1]?.focus();return}const m=e.key===_,T=m?[...d].reverse():d,h=T.find(r=>m?i.indexOf(r)<n:i.indexOf(r)>n);if(N.isDefined(h)){h.focus();return}u&&T[0]?.focus()},j=({className:e,children:t,onKeyDown:u,loopFocus:s=!0,...i})=>{const n=(0,A.useDirection)(),c=a=>{if(u?.(a),a.defaultPrevented){a.preventBaseUIHandler();return}a.baseUIHandlerPrevented||K({event:a,direction:n,loopFocus:s})};return(0,o.jsxs)(b.Tabs.List,{...i,loopFocus:s,onKeyDown:c,className:f.mergeClassNames(l.Tab_module_default.list,e),children:[t,(0,o.jsx)(b.Tabs.Indicator,{className:l.Tab_module_default.indicator})]})},P=({className:e,...t})=>(0,o.jsx)(b.Tabs.Panel,{...t,className:f.mergeClassNames(l.Tab_module_default.panel,e)}),D=({className:e,...t})=>(0,o.jsx)(b.Tabs.Root,{...t,className:f.mergeClassNames(l.Tab_module_default.root,e)}),H=({className:e,children:t,startIcon:u,endIcon:s,badge:i,highlighted:n=!1,size:c="sm",...a})=>(0,o.jsx)(b.Tabs.Tab,{...a,className:f.mergeClassNames(l.Tab_module_default.tab,e),"data-size":c,"data-highlighted":n||void 0,children:(0,o.jsx)(l.TabsTabContent,{startIcon:u,endIcon:s,badge:i,children:t})}),O={Root:D,List:j,Tab:H,Panel:P};Object.defineProperty(exports,"CAL_LINK",{enumerable:!0,get:function(){return L}});Object.defineProperty(exports,"ClickToActionLink",{enumerable:!0,get:function(){return C}});Object.defineProperty(exports,"GITHUB_LINK",{enumerable:!0,get:function(){return k}});Object.defineProperty(exports,"TWENTY_PRICING_LINK",{enumerable:!0,get:function(){return q}});Object.defineProperty(exports,"Tabs",{enumerable:!0,get:function(){return O}});
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { t as w } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { t as u } from "./mergeClassNames-BHKm1BNi.js";
|
|
3
|
-
import { n as f, t as A } from "./TabsTabContent-_NCTxoP6.js";
|
|
4
|
-
import { clsx as g } from "clsx";
|
|
5
|
-
import { jsx as n, jsxs as N } from "react/jsx-runtime";
|
|
6
|
-
import "react";
|
|
7
|
-
import { useDirection as k } from "@base-ui/react/direction-provider";
|
|
8
|
-
import { Tabs as m } from "@base-ui/react/tabs";
|
|
9
|
-
var I = "_root_5ahh0_1", K = { root: I }, q = (r) => /* @__PURE__ */ n("a", {
|
|
10
|
-
className: g(K.root, r.className),
|
|
11
|
-
href: r.href,
|
|
12
|
-
onClick: r.onClick,
|
|
13
|
-
target: r.target,
|
|
14
|
-
rel: r.rel,
|
|
15
|
-
children: r.children
|
|
16
|
-
}), z = "https://cal.com/team/twenty/talk-to-us", G = "https://github.com/twentyhq/twenty", O = "https://twenty.com/pricing", L = ({ event: r, direction: a, loopFocus: l }) => {
|
|
17
|
-
if (r.altKey || r.ctrlKey || r.metaKey || r.shiftKey) return;
|
|
18
|
-
const s = r.currentTarget, o = Array.from(s.querySelectorAll('[role="tab"]')).filter((t) => t.closest('[role="tablist"]') === s), i = o.findIndex((t) => t === r.target);
|
|
19
|
-
if (i === -1) return;
|
|
20
|
-
const c = a === "rtl" ? ["ArrowLeft", "ArrowRight"] : ["ArrowRight", "ArrowLeft"], [e, b] = s.getAttribute("aria-orientation") === "vertical" ? ["ArrowDown", "ArrowUp"] : c;
|
|
21
|
-
if (![
|
|
22
|
-
e,
|
|
23
|
-
b,
|
|
24
|
-
"Home",
|
|
25
|
-
"End"
|
|
26
|
-
].includes(r.key)) return;
|
|
27
|
-
r.preventBaseUIHandler(), r.preventDefault();
|
|
28
|
-
const d = o.filter((t) => !t.hasAttribute("data-disabled") && !t.hasAttribute("disabled") && t.getAttribute("aria-disabled") !== "true" && !t.closest("[hidden], [inert]"));
|
|
29
|
-
if (r.key === "Home") {
|
|
30
|
-
d[0]?.focus();
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
if (r.key === "End") {
|
|
34
|
-
d[d.length - 1]?.focus();
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
const h = r.key === b, T = h ? [...d].reverse() : d, y = T.find((t) => h ? o.indexOf(t) < i : o.indexOf(t) > i);
|
|
38
|
-
if (w(y)) {
|
|
39
|
-
y.focus();
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
l && T[0]?.focus();
|
|
43
|
-
}, _ = ({ className: r, children: a, onKeyDown: l, loopFocus: s = !0, ...o }) => {
|
|
44
|
-
const i = k(), c = (e) => {
|
|
45
|
-
if (l?.(e), e.defaultPrevented) {
|
|
46
|
-
e.preventBaseUIHandler();
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
e.baseUIHandlerPrevented || L({
|
|
50
|
-
event: e,
|
|
51
|
-
direction: i,
|
|
52
|
-
loopFocus: s
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
return /* @__PURE__ */ N(m.List, {
|
|
56
|
-
...o,
|
|
57
|
-
loopFocus: s,
|
|
58
|
-
onKeyDown: c,
|
|
59
|
-
className: u(f.list, r),
|
|
60
|
-
children: [a, /* @__PURE__ */ n(m.Indicator, { className: f.indicator })]
|
|
61
|
-
});
|
|
62
|
-
}, x = ({ className: r, ...a }) => /* @__PURE__ */ n(m.Panel, {
|
|
63
|
-
...a,
|
|
64
|
-
className: u(f.panel, r)
|
|
65
|
-
}), C = ({ className: r, ...a }) => /* @__PURE__ */ n(m.Root, {
|
|
66
|
-
...a,
|
|
67
|
-
className: u(f.root, r)
|
|
68
|
-
}), p = ({ className: r, children: a, startIcon: l, endIcon: s, badge: o, highlighted: i = !1, size: c = "sm", ...e }) => /* @__PURE__ */ n(m.Tab, {
|
|
69
|
-
...e,
|
|
70
|
-
className: u(f.tab, r),
|
|
71
|
-
"data-size": c,
|
|
72
|
-
"data-highlighted": i || void 0,
|
|
73
|
-
children: /* @__PURE__ */ n(A, {
|
|
74
|
-
startIcon: l,
|
|
75
|
-
endIcon: s,
|
|
76
|
-
badge: o,
|
|
77
|
-
children: a
|
|
78
|
-
})
|
|
79
|
-
}), S = {
|
|
80
|
-
Root: C,
|
|
81
|
-
List: _,
|
|
82
|
-
Tab: p,
|
|
83
|
-
Panel: x
|
|
84
|
-
};
|
|
85
|
-
export {
|
|
86
|
-
q as a,
|
|
87
|
-
z as i,
|
|
88
|
-
O as n,
|
|
89
|
-
G as r,
|
|
90
|
-
S as t
|
|
91
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ColorScheme = 'Dark' | 'Light' | 'System';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type AnimationMode = 'scroll-height' | 'fit-content';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type AnimationSize = number | 'fit-content';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CAL_LINK = "https://cal.com/team/twenty/talk-to-us";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const GITHUB_LINK = "https://github.com/twentyhq/twenty";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TWENTY_PRICING_LINK = "https://twenty.com/pricing";
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
import { t as H } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { t as P } from "./theme-DBro6iwF.js";
|
|
3
|
-
import { t as p } from "./mergeClassNames-BHKm1BNi.js";
|
|
4
|
-
import { t as I } from "./ListItem-D6DvFIbl.js";
|
|
5
|
-
import { t as F } from "./Heading-DvxTKEaL.js";
|
|
6
|
-
import { i as b, n as x, r as O, t as S } from "./MenuSeparator-dNx4JE6C.js";
|
|
7
|
-
import { clsx as c } from "clsx";
|
|
8
|
-
import { jsx as t, jsxs as T } from "react/jsx-runtime";
|
|
9
|
-
import { isBoolean as y, isFunction as A } from "@sniptt/guards";
|
|
10
|
-
import { createContext as w, useContext as B } from "react";
|
|
11
|
-
import { useRender as g } from "@base-ui/react/use-render";
|
|
12
|
-
import { useDirection as R } from "@base-ui/react/direction-provider";
|
|
13
|
-
import { Menu as l } from "@base-ui/react/menu";
|
|
14
|
-
import { AlertDialog as u } from "@base-ui/react/alert-dialog";
|
|
15
|
-
import { Dialog as m } from "@base-ui/react/dialog";
|
|
16
|
-
var G = "_backdrop_19f4m_1", L = "_viewport_19f4m_12", $ = "_popup_19f4m_30", U = "_header_19f4m_79", j = "_body_19f4m_87", z = "_footer_19f4m_91", E = "_title_19f4m_102", V = "_description_19f4m_109", d = {
|
|
17
|
-
backdrop: G,
|
|
18
|
-
viewport: L,
|
|
19
|
-
popup: $,
|
|
20
|
-
header: U,
|
|
21
|
-
body: j,
|
|
22
|
-
footer: z,
|
|
23
|
-
title: E,
|
|
24
|
-
description: V
|
|
25
|
-
}, q = ({ render: e, ref: r, className: o, ...a }) => g({
|
|
26
|
-
render: e,
|
|
27
|
-
ref: r,
|
|
28
|
-
props: {
|
|
29
|
-
...a,
|
|
30
|
-
className: c(d.body, o)
|
|
31
|
-
}
|
|
32
|
-
}), J = ({ className: e, ...r }) => /* @__PURE__ */ t(u.Description, {
|
|
33
|
-
...r,
|
|
34
|
-
className: p(d.description, e)
|
|
35
|
-
}), K = ({ render: e, ref: r, className: o, ...a }) => g({
|
|
36
|
-
render: e,
|
|
37
|
-
ref: r,
|
|
38
|
-
props: {
|
|
39
|
-
...a,
|
|
40
|
-
className: c(d.footer, o)
|
|
41
|
-
}
|
|
42
|
-
}), Q = ({ render: e, ref: r, className: o, ...a }) => g({
|
|
43
|
-
render: e,
|
|
44
|
-
ref: r,
|
|
45
|
-
props: {
|
|
46
|
-
...a,
|
|
47
|
-
className: c(d.header, o)
|
|
48
|
-
}
|
|
49
|
-
}), W = ({ size: e = "md", container: r, keepMounted: o, className: a, ...i }) => {
|
|
50
|
-
const s = P(), n = R();
|
|
51
|
-
return /* @__PURE__ */ T(u.Portal, {
|
|
52
|
-
container: r === void 0 ? s ?? void 0 : r,
|
|
53
|
-
keepMounted: o,
|
|
54
|
-
children: [/* @__PURE__ */ t(u.Backdrop, { className: d.backdrop }), /* @__PURE__ */ t(u.Viewport, {
|
|
55
|
-
dir: n,
|
|
56
|
-
className: d.viewport,
|
|
57
|
-
children: /* @__PURE__ */ t(u.Popup, {
|
|
58
|
-
...i,
|
|
59
|
-
"data-size": e,
|
|
60
|
-
className: p(d.popup, a)
|
|
61
|
-
})
|
|
62
|
-
})]
|
|
63
|
-
});
|
|
64
|
-
}, X = ({ className: e, ...r }) => /* @__PURE__ */ t(u.Title, {
|
|
65
|
-
...r,
|
|
66
|
-
className: p(d.title, e)
|
|
67
|
-
}), Y = () => ({
|
|
68
|
-
Root: u.Root,
|
|
69
|
-
Trigger: u.Trigger,
|
|
70
|
-
Popup: W,
|
|
71
|
-
Title: X,
|
|
72
|
-
Description: J,
|
|
73
|
-
Close: u.Close,
|
|
74
|
-
Header: Q,
|
|
75
|
-
Body: q,
|
|
76
|
-
Footer: K
|
|
77
|
-
}), je = /* @__PURE__ */ Y(), Z = "_cardContent_10wri_1", ee = { cardContent: Z }, re = ({ children: e, className: r, divider: o, isClickable: a, hasHoverHighlight: i, ...s }) => /* @__PURE__ */ t("div", {
|
|
78
|
-
className: c(ee.cardContent, r),
|
|
79
|
-
"data-divider": o || void 0,
|
|
80
|
-
"data-clickable": a || void 0,
|
|
81
|
-
"data-hover-highlight": i || void 0,
|
|
82
|
-
...s,
|
|
83
|
-
children: e
|
|
84
|
-
}), ae = "_cardFooter_15rlh_1", oe = { cardFooter: ae }, te = ({ children: e, className: r, divider: o, ...a }) => /* @__PURE__ */ t("div", {
|
|
85
|
-
className: c(oe.cardFooter, r),
|
|
86
|
-
"data-no-divider": o === !1 || void 0,
|
|
87
|
-
...a,
|
|
88
|
-
children: e
|
|
89
|
-
}), ie = "_cardHeader_yrli2_1", de = { cardHeader: ie }, se = ({ children: e, className: r, ...o }) => /* @__PURE__ */ t("div", {
|
|
90
|
-
className: c(de.cardHeader, r),
|
|
91
|
-
...o,
|
|
92
|
-
children: e
|
|
93
|
-
}), le = "_card_1cl8g_1", ne = { card: le }, me = ({ children: e, className: r, fullWidth: o, rounded: a, backgroundColor: i, style: s, ...n }) => /* @__PURE__ */ t("div", {
|
|
94
|
-
className: c(ne.card, r),
|
|
95
|
-
"data-full-width": o || void 0,
|
|
96
|
-
"data-rounded": a || void 0,
|
|
97
|
-
style: H(i) ? {
|
|
98
|
-
...s,
|
|
99
|
-
"--card-background-color": i
|
|
100
|
-
} : s,
|
|
101
|
-
...n,
|
|
102
|
-
children: e
|
|
103
|
-
}), ze = {
|
|
104
|
-
Root: me,
|
|
105
|
-
Header: se,
|
|
106
|
-
Content: re,
|
|
107
|
-
Footer: te
|
|
108
|
-
}, pe = ({ render: e, ref: r, className: o, ...a }) => g({
|
|
109
|
-
render: e,
|
|
110
|
-
ref: r,
|
|
111
|
-
props: {
|
|
112
|
-
...a,
|
|
113
|
-
className: c(d.body, o)
|
|
114
|
-
}
|
|
115
|
-
}), ce = ({ className: e, ...r }) => /* @__PURE__ */ t(m.Description, {
|
|
116
|
-
...r,
|
|
117
|
-
className: p(d.description, e)
|
|
118
|
-
}), ue = ({ render: e, ref: r, className: o, ...a }) => g({
|
|
119
|
-
render: e,
|
|
120
|
-
ref: r,
|
|
121
|
-
props: {
|
|
122
|
-
...a,
|
|
123
|
-
className: c(d.footer, o)
|
|
124
|
-
}
|
|
125
|
-
}), ve = ({ render: e, ref: r, className: o, ...a }) => g({
|
|
126
|
-
render: e,
|
|
127
|
-
ref: r,
|
|
128
|
-
props: {
|
|
129
|
-
...a,
|
|
130
|
-
className: c(d.header, o)
|
|
131
|
-
}
|
|
132
|
-
}), fe = ({ size: e = "md", container: r, keepMounted: o, backdrop: a = !0, viewportProps: i, className: s, ...n }) => {
|
|
133
|
-
const h = P(), v = R(), _ = y(a) ? {} : a;
|
|
134
|
-
return /* @__PURE__ */ T(m.Portal, {
|
|
135
|
-
container: r === void 0 ? h ?? void 0 : r,
|
|
136
|
-
keepMounted: o,
|
|
137
|
-
children: [a !== !1 && /* @__PURE__ */ t(m.Backdrop, {
|
|
138
|
-
..._,
|
|
139
|
-
className: p(d.backdrop, _.className)
|
|
140
|
-
}), /* @__PURE__ */ t(m.Viewport, {
|
|
141
|
-
dir: v,
|
|
142
|
-
"data-backdrop-hidden": a === !1,
|
|
143
|
-
...i,
|
|
144
|
-
className: p(d.viewport, i?.className),
|
|
145
|
-
children: /* @__PURE__ */ t(m.Popup, {
|
|
146
|
-
...n,
|
|
147
|
-
"data-size": e,
|
|
148
|
-
className: p(d.popup, s)
|
|
149
|
-
})
|
|
150
|
-
})]
|
|
151
|
-
});
|
|
152
|
-
}, _e = "_title_9tadl_1", ge = { title: _e }, he = ({ level: e = 2, size: r = "lg", color: o = "primary", className: a, render: i, ...s }) => /* @__PURE__ */ t(m.Title, {
|
|
153
|
-
...s,
|
|
154
|
-
className: p(ge.title, a),
|
|
155
|
-
render: /* @__PURE__ */ t(F, {
|
|
156
|
-
level: e,
|
|
157
|
-
size: r,
|
|
158
|
-
color: o,
|
|
159
|
-
render: i
|
|
160
|
-
})
|
|
161
|
-
}), Ee = {
|
|
162
|
-
createHandle: m.createHandle,
|
|
163
|
-
Root: m.Root,
|
|
164
|
-
Trigger: m.Trigger,
|
|
165
|
-
Popup: fe,
|
|
166
|
-
Title: he,
|
|
167
|
-
Description: ce,
|
|
168
|
-
Close: m.Close,
|
|
169
|
-
Header: ve,
|
|
170
|
-
Body: pe,
|
|
171
|
-
Footer: ue
|
|
172
|
-
}, C = ({ color: e = "neutral", startIcon: r, endIcon: o, description: a, descriptionPlacement: i, hotkeys: s, disabled: n = !1, children: h, render: v, ..._ }, N) => ({
|
|
173
|
-
..._,
|
|
174
|
-
disabled: n,
|
|
175
|
-
render: (D, f) => /* @__PURE__ */ t(I, {
|
|
176
|
-
...D,
|
|
177
|
-
render: A(v) ? (k) => v(k, f) : v,
|
|
178
|
-
color: e,
|
|
179
|
-
disabled: n,
|
|
180
|
-
startIcon: r,
|
|
181
|
-
endIcon: o,
|
|
182
|
-
description: a,
|
|
183
|
-
descriptionPlacement: i,
|
|
184
|
-
hotkeys: s,
|
|
185
|
-
...N?.(f),
|
|
186
|
-
children: h
|
|
187
|
-
})
|
|
188
|
-
}), Ce = (e) => /* @__PURE__ */ t(l.CheckboxItem, { ...C(e, (r) => ({
|
|
189
|
-
indicator: "checkbox",
|
|
190
|
-
selected: r.checked
|
|
191
|
-
})) }), Ne = (e) => /* @__PURE__ */ t(l.Item, { ...C(e) }), M = w(!1), De = {
|
|
192
|
-
root: {
|
|
193
|
-
side: "bottom",
|
|
194
|
-
align: "start",
|
|
195
|
-
sideOffset: 8,
|
|
196
|
-
alignOffset: 0
|
|
197
|
-
},
|
|
198
|
-
submenu: {
|
|
199
|
-
side: "inline-end",
|
|
200
|
-
align: "start",
|
|
201
|
-
sideOffset: 0,
|
|
202
|
-
alignOffset: -4
|
|
203
|
-
}
|
|
204
|
-
}, be = ({ side: e, align: r, sideOffset: o, alignOffset: a, anchor: i, keepMounted: s, className: n, children: h, ...v }) => {
|
|
205
|
-
const _ = P(), { container: N = _ ?? void 0, ...D } = v, f = De[B(M) ? "submenu" : "root"];
|
|
206
|
-
return /* @__PURE__ */ t(l.Portal, {
|
|
207
|
-
container: N,
|
|
208
|
-
keepMounted: s,
|
|
209
|
-
children: /* @__PURE__ */ t(l.Positioner, {
|
|
210
|
-
side: e ?? f.side,
|
|
211
|
-
align: r ?? f.align,
|
|
212
|
-
sideOffset: o ?? f.sideOffset,
|
|
213
|
-
alignOffset: a ?? f.alignOffset,
|
|
214
|
-
anchor: i,
|
|
215
|
-
className: b.positioner,
|
|
216
|
-
children: /* @__PURE__ */ t(l.Popup, {
|
|
217
|
-
...D,
|
|
218
|
-
className: p(b.popup, n),
|
|
219
|
-
children: h
|
|
220
|
-
})
|
|
221
|
-
})
|
|
222
|
-
});
|
|
223
|
-
}, Pe = ({ className: e, ...r }) => /* @__PURE__ */ t(l.RadioGroup, {
|
|
224
|
-
...r,
|
|
225
|
-
className: p(b.group, e)
|
|
226
|
-
}), Te = (e) => /* @__PURE__ */ t(l.RadioItem, { ...C(e, (r) => ({
|
|
227
|
-
indicator: "check",
|
|
228
|
-
selected: r.checked
|
|
229
|
-
})) }), Re = ({ children: e, ...r }) => /* @__PURE__ */ t(M.Provider, {
|
|
230
|
-
value: !0,
|
|
231
|
-
children: /* @__PURE__ */ t(l.SubmenuRoot, {
|
|
232
|
-
...r,
|
|
233
|
-
children: e
|
|
234
|
-
})
|
|
235
|
-
}), Me = (e) => /* @__PURE__ */ t(l.SubmenuTrigger, { ...C(e, () => ({ hasSubmenu: !0 })) }), Ve = {
|
|
236
|
-
Root: l.Root,
|
|
237
|
-
Trigger: l.Trigger,
|
|
238
|
-
Popup: be,
|
|
239
|
-
Item: Ne,
|
|
240
|
-
CheckboxItem: Ce,
|
|
241
|
-
RadioGroup: Pe,
|
|
242
|
-
RadioItem: Te,
|
|
243
|
-
Group: O,
|
|
244
|
-
GroupLabel: x,
|
|
245
|
-
Separator: S,
|
|
246
|
-
SubmenuRoot: Re,
|
|
247
|
-
SubmenuTrigger: Me
|
|
248
|
-
};
|
|
249
|
-
export {
|
|
250
|
-
je as i,
|
|
251
|
-
Ee as n,
|
|
252
|
-
ze as r,
|
|
253
|
-
Ve as t
|
|
254
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const h=require("./theme-DNG4OSBd.cjs"),T=require("./isDefined-DS2Q42p5.cjs"),c=require("./mergeClassNames-BbJtXN2t.cjs"),A=require("./ListItem-2dHkY1NB.cjs"),O=require("./Heading-CQqDjovJ.cjs"),f=require("./MenuSeparator-DJOspG7J.cjs");let m=require("clsx"),t=require("react/jsx-runtime"),j=require("@sniptt/guards"),M=require("react"),D=require("@base-ui/react/use-render"),P=require("@base-ui/react/direction-provider"),n=require("@base-ui/react/menu"),_=require("@base-ui/react/alert-dialog"),u=require("@base-ui/react/dialog");var y="_backdrop_19f4m_1",H="_viewport_19f4m_12",I="_popup_19f4m_30",k="_header_19f4m_79",F="_body_19f4m_87",S="_footer_19f4m_91",w="_title_19f4m_102",B="_description_19f4m_109",s={backdrop:y,viewport:H,popup:I,header:k,body:F,footer:S,title:w,description:B},G=({render:e,ref:r,className:o,...a})=>(0,D.useRender)({render:e,ref:r,props:{...a,className:(0,m.clsx)(s.body,o)}}),L=({className:e,...r})=>(0,t.jsx)(_.AlertDialog.Description,{...r,className:c.mergeClassNames(s.description,e)}),U=({render:e,ref:r,className:o,...a})=>(0,D.useRender)({render:e,ref:r,props:{...a,className:(0,m.clsx)(s.footer,o)}}),z=({render:e,ref:r,className:o,...a})=>(0,D.useRender)({render:e,ref:r,props:{...a,className:(0,m.clsx)(s.header,o)}}),E=({size:e="md",container:r,keepMounted:o,className:a,...i})=>{const l=h.useThemeContainer(),d=(0,P.useDirection)();return(0,t.jsxs)(_.AlertDialog.Portal,{container:r===void 0?l??void 0:r,keepMounted:o,children:[(0,t.jsx)(_.AlertDialog.Backdrop,{className:s.backdrop}),(0,t.jsx)(_.AlertDialog.Viewport,{dir:d,className:s.viewport,children:(0,t.jsx)(_.AlertDialog.Popup,{...i,"data-size":e,className:c.mergeClassNames(s.popup,a)})})]})},V=({className:e,...r})=>(0,t.jsx)(_.AlertDialog.Title,{...r,className:c.mergeClassNames(s.title,e)}),$=()=>({Root:_.AlertDialog.Root,Trigger:_.AlertDialog.Trigger,Popup:E,Title:V,Description:L,Close:_.AlertDialog.Close,Header:z,Body:G,Footer:U}),J=$(),K="_cardContent_10wri_1",Q={cardContent:K},W=({children:e,className:r,divider:o,isClickable:a,hasHoverHighlight:i,...l})=>(0,t.jsx)("div",{className:(0,m.clsx)(Q.cardContent,r),"data-divider":o||void 0,"data-clickable":a||void 0,"data-hover-highlight":i||void 0,...l,children:e}),X="_cardFooter_15rlh_1",Y={cardFooter:X},Z=({children:e,className:r,divider:o,...a})=>(0,t.jsx)("div",{className:(0,m.clsx)(Y.cardFooter,r),"data-no-divider":o===!1||void 0,...a,children:e}),ee="_cardHeader_yrli2_1",re={cardHeader:ee},ae=({children:e,className:r,...o})=>(0,t.jsx)("div",{className:(0,m.clsx)(re.cardHeader,r),...o,children:e}),oe="_card_1cl8g_1",te={card:oe},ie=({children:e,className:r,fullWidth:o,rounded:a,backgroundColor:i,style:l,...d})=>(0,t.jsx)("div",{className:(0,m.clsx)(te.card,r),"data-full-width":o||void 0,"data-rounded":a||void 0,style:T.isDefined(i)?{...l,"--card-background-color":i}:l,...d,children:e}),se={Root:ie,Header:ae,Content:W,Footer:Z},le=({render:e,ref:r,className:o,...a})=>(0,D.useRender)({render:e,ref:r,props:{...a,className:(0,m.clsx)(s.body,o)}}),ne=({className:e,...r})=>(0,t.jsx)(u.Dialog.Description,{...r,className:c.mergeClassNames(s.description,e)}),de=({render:e,ref:r,className:o,...a})=>(0,D.useRender)({render:e,ref:r,props:{...a,className:(0,m.clsx)(s.footer,o)}}),ue=({render:e,ref:r,className:o,...a})=>(0,D.useRender)({render:e,ref:r,props:{...a,className:(0,m.clsx)(s.header,o)}}),ce=({size:e="md",container:r,keepMounted:o,backdrop:a=!0,viewportProps:i,className:l,...d})=>{const x=h.useThemeContainer(),g=(0,P.useDirection)(),v=(0,j.isBoolean)(a)?{}:a;return(0,t.jsxs)(u.Dialog.Portal,{container:r===void 0?x??void 0:r,keepMounted:o,children:[a!==!1&&(0,t.jsx)(u.Dialog.Backdrop,{...v,className:c.mergeClassNames(s.backdrop,v.className)}),(0,t.jsx)(u.Dialog.Viewport,{dir:g,"data-backdrop-hidden":a===!1,...i,className:c.mergeClassNames(s.viewport,i?.className),children:(0,t.jsx)(u.Dialog.Popup,{...d,"data-size":e,className:c.mergeClassNames(s.popup,l)})})]})},me="_title_9tadl_1",_e={title:me},ge=({level:e=2,size:r="lg",color:o="primary",className:a,render:i,...l})=>(0,t.jsx)(u.Dialog.Title,{...l,className:c.mergeClassNames(_e.title,a),render:(0,t.jsx)(O.Heading,{level:e,size:r,color:o,render:i})}),pe={createHandle:u.Dialog.createHandle,Root:u.Dialog.Root,Trigger:u.Dialog.Trigger,Popup:ce,Title:ge,Description:ne,Close:u.Dialog.Close,Header:ue,Body:le,Footer:de},C=({color:e="neutral",startIcon:r,endIcon:o,description:a,descriptionPlacement:i,hotkeys:l,disabled:d=!1,children:x,render:g,...v},N)=>({...v,disabled:d,render:(b,p)=>(0,t.jsx)(A.ListItem,{...b,render:(0,j.isFunction)(g)?q=>g(q,p):g,color:e,disabled:d,startIcon:r,endIcon:o,description:a,descriptionPlacement:i,hotkeys:l,...N?.(p),children:x})}),ve=e=>(0,t.jsx)(n.Menu.CheckboxItem,{...C(e,r=>({indicator:"checkbox",selected:r.checked}))}),fe=e=>(0,t.jsx)(n.Menu.Item,{...C(e)}),R=(0,M.createContext)(!1),De={root:{side:"bottom",align:"start",sideOffset:8,alignOffset:0},submenu:{side:"inline-end",align:"start",sideOffset:0,alignOffset:-4}},xe=({side:e,align:r,sideOffset:o,alignOffset:a,anchor:i,keepMounted:l,className:d,children:x,...g})=>{const v=h.useThemeContainer(),{container:N=v??void 0,...b}=g,p=De[(0,M.useContext)(R)?"submenu":"root"];return(0,t.jsx)(n.Menu.Portal,{container:N,keepMounted:l,children:(0,t.jsx)(n.Menu.Positioner,{side:e??p.side,align:r??p.align,sideOffset:o??p.sideOffset,alignOffset:a??p.alignOffset,anchor:i,className:f.Menu_module_default.positioner,children:(0,t.jsx)(n.Menu.Popup,{...b,className:c.mergeClassNames(f.Menu_module_default.popup,d),children:x})})})},Ce=({className:e,...r})=>(0,t.jsx)(n.Menu.RadioGroup,{...r,className:c.mergeClassNames(f.Menu_module_default.group,e)}),Ne=e=>(0,t.jsx)(n.Menu.RadioItem,{...C(e,r=>({indicator:"check",selected:r.checked}))}),be=({children:e,...r})=>(0,t.jsx)(R.Provider,{value:!0,children:(0,t.jsx)(n.Menu.SubmenuRoot,{...r,children:e})}),he=e=>(0,t.jsx)(n.Menu.SubmenuTrigger,{...C(e,()=>({hasSubmenu:!0}))}),je={Root:n.Menu.Root,Trigger:n.Menu.Trigger,Popup:xe,Item:fe,CheckboxItem:ve,RadioGroup:Ce,RadioItem:Ne,Group:f.MenuGroup,GroupLabel:f.MenuGroupLabel,Separator:f.MenuSeparator,SubmenuRoot:be,SubmenuTrigger:he};Object.defineProperty(exports,"AlertDialog",{enumerable:!0,get:function(){return J}});Object.defineProperty(exports,"Card",{enumerable:!0,get:function(){return se}});Object.defineProperty(exports,"Dialog",{enumerable:!0,get:function(){return pe}});Object.defineProperty(exports,"Menu",{enumerable:!0,get:function(){return je}});
|