twenty-ui 2.42.0 → 2.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +11 -6
- package/dist/{AllIcons-DMeLF1LP.cjs → AllIcons-D_4JeQkX.cjs} +1 -1
- package/dist/{AllIcons-BkHLT6oe.js → AllIcons-Z8o0B2fy.js} +1 -1
- package/dist/{Avatar-C_TzSJBe.js → Avatar-BSHgTxt-.js} +2 -2
- package/dist/Avatar-DTNH6Ku7.cjs +1 -0
- package/dist/Input-CFXY05bj.cjs +1 -0
- package/dist/Input-DHfmRBq5.js +116 -0
- package/dist/{ListItem-D75aS69B.cjs → ListItem-2dHkY1NB.cjs} +1 -1
- package/dist/{ListItem-C08r49UJ.js → ListItem-D6DvFIbl.js} +3 -3
- package/dist/ListItem.module-CveFbY4M.cjs +1 -0
- package/dist/ListItem.module-DtIGiTDL.js +38 -0
- package/dist/{Loader-DbOLVUcK.js → Loader-X1LymYkw.js} +4 -4
- package/dist/Loader-Z6_7AA-x.cjs +1 -0
- package/dist/MenuSeparator-DJOspG7J.cjs +1 -0
- package/dist/MenuSeparator-dNx4JE6C.js +66 -0
- package/dist/{OverflowingTextWithTooltip-BXWJtb0f.js → OverflowingTextWithTooltip-CqEkoH6t.js} +1 -1
- package/dist/OverflowingTextWithTooltip-bn6EwWeq.cjs +1 -0
- package/dist/ResizeHandle-DN1bRxQb.js +89 -0
- package/dist/ResizeHandle-cll01qBQ.cjs +1 -0
- package/dist/TabsTabContent-BseLV1Wk.cjs +1 -0
- package/dist/TabsTabContent-_NCTxoP6.js +40 -0
- package/dist/components/code-editor/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/components/code-editor/CodeEditor/types/CodeEditorProps.d.ts +1 -0
- package/dist/components/code-editor/CodeEditor/utils/getBaseCodeEditorTheme.d.ts +1 -1
- package/dist/components/code-editor.cjs +1 -1
- package/dist/components/code-editor.mjs +54 -52
- package/dist/components/data-display/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/dist/components/data-display/AvatarGroup/types/AvatarGroupProps.d.ts +3 -0
- package/dist/components/index.d.ts +15 -0
- package/dist/components/input/SearchInput/types/SearchInputProps.d.ts +2 -2
- package/dist/components/navigation/Dropdown/Dropdown.d.ts +21 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownNestedExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPagesExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPanelExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPickerExample.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/DropdownActionItem.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownBack.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownClose.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownContent.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownContext.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +37 -0
- package/dist/components/navigation/Dropdown/internal/DropdownEmpty.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownFocusTarget.d.ts +6 -0
- package/dist/components/navigation/Dropdown/internal/DropdownHeader.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownLoading.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownNestedRootEffect.d.ts +6 -0
- package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownPage.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownPageFocusEffect.d.ts +6 -0
- package/dist/components/navigation/Dropdown/internal/DropdownPageFocusRequest.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/DropdownRoot.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSearch.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSearchTargetEffect.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSection.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSeparator.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSubmenu.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSubmenuTrigger.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownTitle.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownTrigger.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownFocusTarget.d.ts +8 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownItemLabel.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownItems.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownSearchTarget.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownTrigger.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getNextDropdownItem.d.ts +7 -0
- package/dist/components/navigation/Dropdown/internal/isUnhandledModifierShortcut.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/preventDismissingClickActivation.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/useDropdownContext.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/useDropdownItemFocus.d.ts +7 -0
- package/dist/components/navigation/Dropdown/internal/useDropdownKeyboardNavigation.d.ts +7 -0
- package/dist/components/navigation/Dropdown/types/DropdownActionItemProps.d.ts +10 -0
- package/dist/components/navigation/Dropdown/types/DropdownCloseProps.d.ts +4 -0
- package/dist/components/navigation/Dropdown/types/DropdownContentProps.d.ts +5 -0
- package/dist/components/navigation/Dropdown/types/DropdownHeaderProps.d.ts +2 -0
- package/dist/components/navigation/Dropdown/types/DropdownOptionItemProps.d.ts +7 -0
- package/dist/components/navigation/Dropdown/types/DropdownPageProps.d.ts +7 -0
- package/dist/components/navigation/Dropdown/types/DropdownRootProps.d.ts +11 -0
- package/dist/components/navigation/Dropdown/types/DropdownSearchProps.d.ts +4 -0
- package/dist/components/navigation/Dropdown/types/DropdownSectionProps.d.ts +5 -0
- package/dist/components/navigation/Dropdown/types/DropdownSubmenuProps.d.ts +2 -0
- package/dist/components/navigation/Dropdown/types/DropdownSubmenuTriggerProps.d.ts +6 -0
- package/dist/components/navigation/Dropdown/types/DropdownTitleProps.d.ts +2 -0
- package/dist/components/navigation/Dropdown/types/DropdownTriggerProps.d.ts +2 -0
- package/dist/components/navigation/Dropdown/types/DropdownType.d.ts +1 -0
- package/dist/components-BYWo2sUE.cjs +1 -0
- package/dist/components-C96xU59U.js +1996 -0
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +40 -39
- package/dist/data-display-BQ9g9oSc.cjs +1 -0
- package/dist/{data-display-YQG01UPq.js → data-display-z9gKjkPS.js} +30 -30
- package/dist/icon/constants/TwentyIconDictionary.d.ts +9 -0
- package/dist/icon/providers/internal/AllIcons.d.ts +1 -1
- package/dist/{icon-CDy3-hqV.js → icon-Bd81r48z.js} +131 -117
- package/dist/icon-iD9IXJmn.cjs +1 -0
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +554 -557
- package/dist/individual-entry.d.ts +0 -1
- package/dist/input-C8IiOA9Q.js +335 -0
- package/dist/input-NBD4DP8j.cjs +1 -0
- package/dist/{navigation-e5PTdnND.cjs → navigation-BqZBteC2.cjs} +1 -1
- package/dist/{navigation-Z7puI3wl.js → navigation-CLMgaqS8.js} +1 -1
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +2 -2
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +1 -1
- package/dist/primitives/input/ButtonGroup/internal/ButtonGroupContext.d.ts +1 -1
- package/dist/primitives/input/SegmentedControl/SegmentedControl.d.ts +2 -29
- package/dist/primitives/input/SegmentedControl/types/SegmentedControlOption.d.ts +13 -0
- package/dist/primitives/input/SegmentedControl/types/SegmentedControlProps.d.ts +10 -0
- package/dist/primitives/input/index.d.ts +2 -1
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +12 -12
- package/dist/primitives/layout/ResizeHandle/ResizeHandle.d.ts +2 -9
- package/dist/primitives/layout/ResizeHandle/__stories__/ControlledResizeHandle.d.ts +2 -0
- package/dist/primitives/layout/ResizeHandle/__stories__/ResizableDemo.d.ts +3 -0
- package/dist/primitives/layout/ResizeHandle/__stories__/withMockPointerCapture.d.ts +4 -0
- package/dist/primitives/layout/ResizeHandle/internal/ResizeHandleDefaults.constant.d.ts +6 -0
- package/dist/primitives/layout/ResizeHandle/internal/useResizeHandleInteraction.d.ts +19 -0
- package/dist/primitives/layout/ResizeHandle/types/ResizeHandleProps.d.ts +11 -0
- package/dist/primitives/layout/index.d.ts +1 -1
- package/dist/primitives/layout.cjs +1 -1
- package/dist/primitives/layout.mjs +7 -8
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +2 -2
- package/dist/primitives/surfaces/Card/Card.d.ts +17 -7
- package/dist/primitives/surfaces/Card/internal/CardRoot.d.ts +8 -0
- package/dist/primitives/surfaces/index.d.ts +0 -3
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +8 -10
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +1 -1
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +59 -62
- package/dist/style.css +1 -1
- package/dist/surfaces-DX8oX1ou.js +254 -0
- package/dist/surfaces-uuLwsFxg.cjs +1 -0
- package/dist/testing/index.d.ts +1 -3
- package/dist/testing/utils/overrideMediaQueryMatches.d.ts +1 -0
- package/dist/testing.cjs +1 -1
- package/dist/testing.mjs +98 -102
- package/dist/theme/ThemeOverrides.d.ts +1 -0
- package/dist/theme/ThemeProvider.d.ts +3 -0
- package/dist/theme/ThemeProviderProps.d.ts +13 -0
- package/dist/{theme-constants → theme}/getNextThemeColor.d.ts +1 -1
- package/dist/theme/index.d.ts +10 -0
- package/dist/theme/internal/ThemeContextType.d.ts +6 -0
- package/dist/theme/internal/computeThemeFromCss.d.ts +2 -0
- package/dist/theme/internal/getThemeContext.d.ts +3 -0
- package/dist/theme/internal/getThemeScopeContext.d.ts +2 -0
- package/dist/theme/internal/resolveExplicitTheme.d.ts +5 -0
- package/dist/{theme-OwFrow8b.js → theme-DBro6iwF.js} +1198 -23
- package/dist/theme-DNG4OSBd.cjs +1 -0
- package/dist/theme.cjs +1 -1
- package/dist/theme.mjs +14 -7
- package/dist/utilities/color/utils/stringToThemeColorP3String.d.ts +1 -2
- package/dist/utilities/index.d.ts +3 -1
- package/dist/utilities/responsive/constants/MobileMediaQuery.d.ts +1 -0
- package/dist/utilities/responsive/constants/TouchDeviceMediaQuery.d.ts +1 -0
- package/dist/utilities/responsive/hooks/useMediaQuery.d.ts +1 -0
- package/dist/utilities/responsive/internal/getMediaQueryStore.d.ts +6 -0
- package/dist/utilities-BlvbRryv.cjs +1 -0
- package/dist/utilities-C5Tt2HLT.js +56 -0
- package/dist/utilities.cjs +1 -1
- package/dist/utilities.mjs +17 -15
- package/package.json +2 -16
- package/dist/Avatar-BGFK0_a_.cjs +0 -1
- package/dist/ListItem.module-CFDku7rI.cjs +0 -1
- package/dist/ListItem.module-DBhzbt9-.js +0 -38
- package/dist/Loader-CHKTYJo7.cjs +0 -1
- package/dist/OverflowingTextWithTooltip-DpizuDxR.cjs +0 -1
- package/dist/ResizeHandle-BWfY2ONo.js +0 -37
- package/dist/ResizeHandle-IVbYS3b8.cjs +0 -1
- package/dist/Switch-BvVP6vjR.js +0 -101
- package/dist/Switch-DuoJ4ytC.cjs +0 -1
- package/dist/TabsTabContent-BWQCg7Ua.js +0 -40
- package/dist/TabsTabContent-ChqlTk3P.cjs +0 -1
- package/dist/chunk-u_mIcLyS.cjs +0 -1
- package/dist/components-B2Pdf_yn.js +0 -1459
- package/dist/components-DfhgWbKW.cjs +0 -1
- package/dist/data-display-QOdhAohf.cjs +0 -1
- package/dist/icon-lF2kxwql.cjs +0 -1
- package/dist/input-C2q7tGPj.js +0 -383
- package/dist/input-CAX9aS7C.cjs +0 -1
- package/dist/primitives/layout/ResizeHandle/hooks/useResizeHandle.d.ts +0 -10
- package/dist/surfaces-Cr4lhCvZ.js +0 -306
- package/dist/surfaces-CuxI6145.cjs +0 -1
- package/dist/testing/decorators/ComponentWithRouterDecorator.d.ts +0 -9
- package/dist/testing/decorators/RouterDecorator.d.ts +0 -2
- package/dist/theme-YHfZnD2U.cjs +0 -1
- package/dist/theme-constants/ThemeProvider.d.ts +0 -15
- package/dist/theme-constants/ThemeScopeContext.d.ts +0 -1
- package/dist/theme-constants/index.d.ts +0 -10
- package/dist/theme-constants-CrrgAYWN.js +0 -1163
- package/dist/theme-constants-ZNgkgDE-.cjs +0 -1
- package/dist/theme-constants.cjs +0 -1
- package/dist/theme-constants.mjs +0 -12
- package/dist/utilities/screen-size/hooks/useScreenSize.d.ts +0 -4
- package/dist/utilities-D7Z6Uof8.cjs +0 -1
- package/dist/utilities-FXsKnNbt.js +0 -49
- /package/dist/primitives/surfaces/{CardContent → Card/internal}/CardContent.d.ts +0 -0
- /package/dist/primitives/surfaces/{CardFooter → Card/internal}/CardFooter.d.ts +0 -0
- /package/dist/primitives/surfaces/{CardHeader → Card/internal}/CardHeader.d.ts +0 -0
- /package/dist/{theme-constants/constants.d.ts → theme/constants/MobileViewport.d.ts} +0 -0
- /package/dist/{theme-constants → theme}/themeCssVariables.d.ts +0 -0
- /package/dist/{theme-constants → theme}/themeTypes.d.ts +0 -0
- /package/dist/{theme-constants → theme}/useTheme.d.ts +0 -0
- /package/dist/{theme-constants → theme}/useThemeColorScheme.d.ts +0 -0
- /package/dist/{theme-constants → theme}/useThemeContainer.d.ts +0 -0
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { t as r } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { isBoolean as a } from "@sniptt/guards";
|
|
3
|
-
var j = (_) => r(_) && !a(_) && _ !== "", t = "_root_1fskg_1", s = "_solid_1fskg_22", o = "_outline_1fskg_26", e = "_soft_1fskg_30", n = "_sm_1fskg_35", i = "_md_1fskg_40", c = "_square_1fskg_46", f = "_round_1fskg_51", v = "_accent_1fskg_57", u = "_success_1fskg_63", k = "_warning_1fskg_69", d = "_hoverable_1fskg_75", g = "_box_1fskg_113", l = "_indicator_1fskg_134", m = "_check_1fskg_150", b = "_minus_1fskg_151", z = {
|
|
4
|
-
root: t,
|
|
5
|
-
solid: s,
|
|
6
|
-
outline: o,
|
|
7
|
-
soft: e,
|
|
8
|
-
sm: n,
|
|
9
|
-
md: i,
|
|
10
|
-
square: c,
|
|
11
|
-
round: f,
|
|
12
|
-
accent: v,
|
|
13
|
-
success: u,
|
|
14
|
-
warning: k,
|
|
15
|
-
hoverable: d,
|
|
16
|
-
box: g,
|
|
17
|
-
indicator: l,
|
|
18
|
-
check: m,
|
|
19
|
-
minus: b
|
|
20
|
-
}, h = "_root_1f2ut_2", p = "_submenuIcon_1f2ut_50", I = "_startIcon_1f2ut_54", x = "_endIcon_1f2ut_55", D = "_label_1f2ut_71", q = "_text_1f2ut_81", w = "_description_1f2ut_89", y = "_inlineDescription_1f2ut_97", B = "_endDescription_1f2ut_102", C = "_hotkeys_1f2ut_107", L = "_actions_1f2ut_113", R = "_checkIndicator_1f2ut_130", A = {
|
|
21
|
-
root: h,
|
|
22
|
-
submenuIcon: p,
|
|
23
|
-
startIcon: I,
|
|
24
|
-
endIcon: x,
|
|
25
|
-
label: D,
|
|
26
|
-
text: q,
|
|
27
|
-
description: w,
|
|
28
|
-
inlineDescription: y,
|
|
29
|
-
endDescription: B,
|
|
30
|
-
hotkeys: C,
|
|
31
|
-
actions: L,
|
|
32
|
-
checkIndicator: R
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
z as n,
|
|
36
|
-
j as r,
|
|
37
|
-
A as t
|
|
38
|
-
};
|
package/dist/Loader-CHKTYJo7.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a=require("./theme-constants-ZNgkgDE-.cjs");let r=require("react/jsx-runtime");var o="_container_1i6sz_1",i="_dot_1i6sz_15",n="_loaderDot_1i6sz_1",t={container:o,dot:i,loaderDot:n},s=({color:e})=>(0,r.jsx)("div",{className:t.container,style:e?{"--loader-color":a.themeCssVariables.tag.text[e]}:void 0,children:(0,r.jsx)("div",{className:t.dot})});Object.defineProperty(exports,"Loader",{enumerable:!0,get:function(){return s}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const c=require("./isDefined-DS2Q42p5.cjs"),A=require("./theme-constants-ZNgkgDE-.cjs"),S=require("./linkifyText-BHQ4_CzQ.cjs"),F=require("./mergeClassNames-BbJtXN2t.cjs");let P=require("clsx"),e=require("react/jsx-runtime"),h=require("@sniptt/guards"),q=require("react"),u=require("@base-ui/react/tooltip"),W=require("@base-ui/react/use-render");var L="_positioner_12t3h_1",U="_popup_12t3h_5",X="_content_12t3h_29",z="_title_12t3h_35",B="_icon_12t3h_47",G="_description_12t3h_57",J="_arrow_12t3h_63",v={positioner:L,popup:U,content:X,title:z,icon:B,description:G,arrow:J},H=({children:i,description:r,startIcon:t,className:l,render:s,ref:a,...p})=>(0,W.useRender)({defaultTagName:"div",render:s,ref:a,props:{...p,className:(0,P.clsx)(v.content,l),children:(0,e.jsxs)(e.Fragment,{children:[c.isDefined(i)&&i!==""&&(0,e.jsxs)("div",{className:v.title,children:[c.isDefined(t)&&(0,e.jsx)("span",{className:v.icon,"aria-hidden":!0,children:t}),(0,e.jsx)("span",{children:i})]}),c.isDefined(r)&&(0,e.jsx)("div",{className:v.description,children:r})]})}}),K=10,Q="300px",I=({side:i="top",align:r="center",sideOffset:t=K,alignOffset:l,anchor:s,positionMethod:a,collisionBoundary:p,collisionPadding:d,collisionAvoidance:T,sticky:_,disableAnchorTracking:f,arrow:g=!1,maxWidth:j=Q,container:w,keepMounted:m,className:x,children:n,...b})=>{const k=A.useThemeContainer(),N=(0,h.isString)(n)||(0,h.isNumber)(n);return(0,e.jsx)(u.Tooltip.Portal,{container:w??k??void 0,keepMounted:m,children:(0,e.jsx)(u.Tooltip.Positioner,{side:i,align:r,sideOffset:t,alignOffset:l,anchor:s,positionMethod:a,collisionBoundary:p,collisionPadding:d,collisionAvoidance:T,sticky:_,disableAnchorTracking:f,className:v.positioner,style:{maxWidth:j},children:(0,e.jsxs)(u.Tooltip.Popup,{role:"tooltip",...b,className:F.mergeClassNames(v.popup,x),children:[N?(0,e.jsx)(H,{children:n}):n,g&&(0,e.jsx)(u.Tooltip.Arrow,{className:v.arrow})]})})})},V=({content:i,children:r,open:t,defaultOpen:l,onOpenChange:s,onOpenChangeComplete:a,disabled:p=!1,disableHoverablePopup:d,trackCursorAxis:T,actionsRef:_,triggerId:f,defaultTriggerId:g,delay:j,closeDelay:w,closeOnClick:m,...x})=>{const n=p||!c.isDefined(i)||i===""||i===!1;return(0,e.jsxs)(u.Tooltip.Root,{open:c.isDefined(t)?t&&!n:void 0,defaultOpen:l&&!n,onOpenChange:s,onOpenChangeComplete:a,disabled:n,disableHoverablePopup:d,trackCursorAxis:T,actionsRef:_,triggerId:f,defaultTriggerId:g,children:[(0,e.jsx)(u.Tooltip.Trigger,{render:r,delay:j,closeDelay:w,closeOnClick:m}),(0,e.jsx)(I,{...x,children:i})]})},C=Object.assign(V,{Root:u.Tooltip.Root,Trigger:u.Tooltip.Trigger,Popup:I,Content:H,Provider:u.Tooltip.Provider,createHandle:u.Tooltip.createHandle}),Y="_truncate_1x6ii_1",Z="_lineClamp_1x6ii_7",R={truncate:Y,lineClamp:Z},M=({render:i,truncate:r,lineClamp:t,className:l,style:s,ref:a,...p})=>{const d=c.isDefined(t)&&Number.isInteger(t)&&t>0;return(0,W.useRender)({render:i,ref:a,props:{...p,className:(0,P.clsx)(r&&R.truncate,d&&R.lineClamp,l),style:d?{...s,"--text-line-clamp":t}:s}})},$="_link_mrld0_1",ee={link:$},te=({text:i})=>(0,h.isNonEmptyString)(i)?(0,e.jsx)(e.Fragment,{children:S.linkifyText(i).map((r,t)=>r.type==="link"?(0,e.jsx)("a",{className:ee.link,href:S.getSafeUrl(r.content),target:"_blank",rel:"noopener noreferrer",onClick:l=>l.stopPropagation(),children:r.content},t):r.content)}):null,ie="_overflowingMultilineText_1qcnw_1",re="_overflowingText_1qcnw_20",ne="_large_1qcnw_37",oe="_multilineTooltip_1qcnw_41",D={overflowingMultilineText:ie,overflowingText:re,large:ne,multilineTooltip:oe},le=(0,q.memo)(function({size:r="small",text:t,isTooltipMultiline:l,displayedMaxRows:s,tooltipContent:a,tooltipDelay:p=500,tooltipPlace:d="bottom",alwaysShowTooltip:T=!1,isFocusable:_=!1}){const f=(0,q.useRef)(null),[g,j]=(0,q.useState)(!1),[w,m]=(0,q.useState)(!1),x=()=>{const o=f.current,O=c.isDefined(o)&&(o.scrollHeight>o.clientHeight||o.scrollWidth>o.clientWidth);return j(O),O},n=o=>{if(!o){m(!1);return}m(x()||T)},b=()=>{f.current?.focus(),n(!0)},k=o=>{o.stopPropagation(),o.preventDefault()},N=(0,h.isNonEmptyString)(a)?a:(0,h.isNonEmptyString)(t)?t:null,E=c.isDefined(s);return(0,e.jsxs)(C.Root,{open:w&&c.isDefined(N),onOpenChange:(...o)=>{const[O,y]=o;if(!O&&y.reason==="trigger-hover"&&_&&document.activeElement===f.current){y.cancel();return}n(O)},disabled:!c.isDefined(N)||!g&&!T,children:[(0,e.jsx)(C.Trigger,{delay:p,closeOnClick:!1,render:(0,e.jsx)(M,{...E?{lineClamp:s||1}:{truncate:!0},"data-testid":"tooltip","data-content-overflowing":g?"":void 0,className:(0,P.clsx)(E?D.overflowingMultilineText:D.overflowingText,r==="large"&&D.large),ref:f,tabIndex:_?0:void 0,onPointerEnter:x,onFocus:_?()=>n(!0):void 0,onClick:_?b:void 0,children:(0,h.isNonEmptyString)(t)?(0,e.jsx)(te,{text:t}):t})}),(0,e.jsx)(C.Popup,{className:l?D.multilineTooltip:void 0,sideOffset:5,side:d,positionMethod:"absolute",onClick:k,children:N})]})});Object.defineProperty(exports,"OverflowingTextWithTooltip",{enumerable:!0,get:function(){return le}});Object.defineProperty(exports,"Text",{enumerable:!0,get:function(){return M}});Object.defineProperty(exports,"Tooltip",{enumerable:!0,get:function(){return C}});
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { t as S } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
3
|
-
import { useState as o } from "react";
|
|
4
|
-
var c = 50, R = 500, I = ({ initialSize: r, axis: t = "y" }) => {
|
|
5
|
-
const [a, s] = o(r), [i, n] = o(null);
|
|
6
|
-
return {
|
|
7
|
-
size: a,
|
|
8
|
-
handleResizeStart: (e) => {
|
|
9
|
-
e.target.setPointerCapture(e.pointerId), n({
|
|
10
|
-
startPosition: t === "y" ? e.clientY : e.clientX,
|
|
11
|
-
startSize: a
|
|
12
|
-
});
|
|
13
|
-
},
|
|
14
|
-
handleResizeMove: (e) => {
|
|
15
|
-
if (!S(i)) return;
|
|
16
|
-
const z = (t === "y" ? e.clientY : e.clientX) - i.startPosition;
|
|
17
|
-
s(Math.min(R, Math.max(c, i.startSize + z)));
|
|
18
|
-
},
|
|
19
|
-
handleResizeEnd: () => {
|
|
20
|
-
n(null);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}, _ = "_area_10ggy_1", m = "_bar_10ggy_10", d = {
|
|
24
|
-
area: _,
|
|
25
|
-
bar: m
|
|
26
|
-
}, M = ({ onPointerDown: r, onPointerMove: t, onPointerUp: a, style: s }) => /* @__PURE__ */ l("div", {
|
|
27
|
-
className: d.area,
|
|
28
|
-
onPointerDown: r,
|
|
29
|
-
onPointerMove: t,
|
|
30
|
-
onPointerUp: a,
|
|
31
|
-
style: s,
|
|
32
|
-
children: /* @__PURE__ */ l("div", { className: d.bar })
|
|
33
|
-
});
|
|
34
|
-
export {
|
|
35
|
-
I as n,
|
|
36
|
-
M as t
|
|
37
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const o=require("./isDefined-DS2Q42p5.cjs");let l=require("react/jsx-runtime"),d=require("react");var z=50,S=500,_=({initialSize:a,axis:t="y"})=>{const[r,i]=(0,d.useState)(a),[n,s]=(0,d.useState)(null);return{size:r,handleResizeStart:e=>{e.target.setPointerCapture(e.pointerId),s({startPosition:t==="y"?e.clientY:e.clientX,startSize:r})},handleResizeMove:e=>{if(!o.isDefined(n))return;const c=(t==="y"?e.clientY:e.clientX)-n.startPosition;i(Math.min(S,Math.max(z,n.startSize+c)))},handleResizeEnd:()=>{s(null)}}},R="_area_10ggy_1",h="_bar_10ggy_10",u={area:R,bar:h},f=({onPointerDown:a,onPointerMove:t,onPointerUp:r,style:i})=>(0,l.jsx)("div",{className:u.area,onPointerDown:a,onPointerMove:t,onPointerUp:r,style:i,children:(0,l.jsx)("div",{className:u.bar})});Object.defineProperty(exports,"ResizeHandle",{enumerable:!0,get:function(){return f}});Object.defineProperty(exports,"useResizeHandle",{enumerable:!0,get:function(){return _}});
|
package/dist/Switch-BvVP6vjR.js
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { t as i } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { i as H, r as L } from "./utilities-FXsKnNbt.js";
|
|
3
|
-
import { t as M } from "./Loader-DbOLVUcK.js";
|
|
4
|
-
import { t as q } from "./Pill-DaFEFIOT.js";
|
|
5
|
-
import { t as h } from "./mergeClassNames-BHKm1BNi.js";
|
|
6
|
-
import { clsx as p } from "clsx";
|
|
7
|
-
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
8
|
-
import { createContext as D, useContext as K } from "react";
|
|
9
|
-
import { Button as O } from "@base-ui/react/button";
|
|
10
|
-
import { Radio as j } from "@base-ui/react/radio";
|
|
11
|
-
import { Switch as B } from "@base-ui/react/switch";
|
|
12
|
-
var T = "_hotkeys_16heq_1", V = { hotkeys: T }, A = ({ hotkeys: o }) => /* @__PURE__ */ a("span", {
|
|
13
|
-
className: V.hotkeys,
|
|
14
|
-
"aria-hidden": !0,
|
|
15
|
-
children: o.join(H())
|
|
16
|
-
}), E = "_soonPillContainer_e7hkk_1", F = { soonPillContainer: E }, I = ({ label: o = "Soon" }) => /* @__PURE__ */ a("span", {
|
|
17
|
-
className: F.soonPillContainer,
|
|
18
|
-
children: /* @__PURE__ */ a(q, { label: o })
|
|
19
|
-
}), J = D(null), Q = "_button_1kjmt_1", U = "_content_1kjmt_161", W = "_label_1kjmt_170", X = "_icon_1kjmt_176", Y = "_hidden_1kjmt_186", Z = "_loader_1kjmt_190", t = {
|
|
20
|
-
button: Q,
|
|
21
|
-
content: U,
|
|
22
|
-
label: W,
|
|
23
|
-
icon: X,
|
|
24
|
-
hidden: Y,
|
|
25
|
-
loader: Z
|
|
26
|
-
}, Na = ({ variant: o = "outline", color: r = "neutral", size: e = "md", fullWidth: s = !1, loading: n = !1, elevated: S = !1, startIcon: f, endIcon: k, hotkeys: b, soon: N = !1, soonLabel: C, disabled: x = !1, href: _, render: y, className: P, children: c, ...w }) => {
|
|
27
|
-
const u = K(J), $ = u?.variant ?? o, R = u?.color ?? r, z = u?.size ?? e, G = L(), l = i(_);
|
|
28
|
-
return /* @__PURE__ */ m(O, {
|
|
29
|
-
...w,
|
|
30
|
-
...l ? { href: _ } : void 0,
|
|
31
|
-
className: h(t.button, P),
|
|
32
|
-
"data-variant": $,
|
|
33
|
-
"data-color": R,
|
|
34
|
-
"data-size": z,
|
|
35
|
-
"data-full-width": s || void 0,
|
|
36
|
-
"data-loading": n || void 0,
|
|
37
|
-
"data-elevated": S || void 0,
|
|
38
|
-
"aria-busy": n ? "true" : w["aria-busy"],
|
|
39
|
-
disabled: x || N || n,
|
|
40
|
-
role: l ? "link" : void 0,
|
|
41
|
-
nativeButton: !l,
|
|
42
|
-
render: y ?? (l ? /* @__PURE__ */ a("a", {
|
|
43
|
-
href: _,
|
|
44
|
-
children: c
|
|
45
|
-
}) : void 0),
|
|
46
|
-
children: [/* @__PURE__ */ m("span", {
|
|
47
|
-
className: p(t.content, n && t.hidden),
|
|
48
|
-
children: [
|
|
49
|
-
i(f) && /* @__PURE__ */ a("span", {
|
|
50
|
-
className: t.icon,
|
|
51
|
-
"aria-hidden": !0,
|
|
52
|
-
children: f
|
|
53
|
-
}),
|
|
54
|
-
i(c) && /* @__PURE__ */ a("span", {
|
|
55
|
-
className: t.label,
|
|
56
|
-
children: c
|
|
57
|
-
}),
|
|
58
|
-
i(k) && /* @__PURE__ */ a("span", {
|
|
59
|
-
className: t.icon,
|
|
60
|
-
"aria-hidden": !0,
|
|
61
|
-
children: k
|
|
62
|
-
}),
|
|
63
|
-
i(b) && !G && /* @__PURE__ */ a(A, { hotkeys: b }),
|
|
64
|
-
N && /* @__PURE__ */ a(I, { label: C })
|
|
65
|
-
]
|
|
66
|
-
}), n && /* @__PURE__ */ a("span", {
|
|
67
|
-
className: t.loader,
|
|
68
|
-
"aria-hidden": !0,
|
|
69
|
-
children: /* @__PURE__ */ a(M, {})
|
|
70
|
-
})]
|
|
71
|
-
});
|
|
72
|
-
}, g = "_root_ahkrw_1", aa = "_control_ahkrw_18", oa = "_sm_ahkrw_33", ta = "_md_ahkrw_38", ra = "_indicator_ahkrw_49", d = {
|
|
73
|
-
root: g,
|
|
74
|
-
control: aa,
|
|
75
|
-
sm: oa,
|
|
76
|
-
md: ta,
|
|
77
|
-
indicator: ra
|
|
78
|
-
}, wa = ({ children: o, className: r, size: e = "sm", ...s }) => /* @__PURE__ */ m(j.Root, {
|
|
79
|
-
...s,
|
|
80
|
-
className: h(p(d.root, d[e]), r),
|
|
81
|
-
children: [/* @__PURE__ */ a("span", {
|
|
82
|
-
className: d.control,
|
|
83
|
-
"aria-hidden": !0,
|
|
84
|
-
children: /* @__PURE__ */ a(j.Indicator, { className: d.indicator })
|
|
85
|
-
}), o]
|
|
86
|
-
}), ea = "_root_rn2ew_1", sa = "_sm_rn2ew_33", na = "_md_rn2ew_39", ia = "_thumb_rn2ew_45", v = {
|
|
87
|
-
root: ea,
|
|
88
|
-
sm: sa,
|
|
89
|
-
md: na,
|
|
90
|
-
thumb: ia
|
|
91
|
-
}, ja = ({ size: o = "md", className: r, children: e, ...s }) => /* @__PURE__ */ m(B.Root, {
|
|
92
|
-
...s,
|
|
93
|
-
className: h(p(v.root, v[o]), r),
|
|
94
|
-
children: [/* @__PURE__ */ a(B.Thumb, { className: v.thumb }), e]
|
|
95
|
-
});
|
|
96
|
-
export {
|
|
97
|
-
J as i,
|
|
98
|
-
wa as n,
|
|
99
|
-
Na as r,
|
|
100
|
-
ja as t
|
|
101
|
-
};
|
package/dist/Switch-DuoJ4ytC.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const i=require("./isDefined-DS2Q42p5.cjs"),w=require("./utilities-D7Z6Uof8.cjs"),L=require("./Loader-CHKTYJo7.cjs"),$=require("./Pill-BJ3K8Mdc.cjs"),v=require("./mergeClassNames-BbJtXN2t.cjs");let h=require("clsx"),e=require("react/jsx-runtime"),p=require("react"),H=require("@base-ui/react/button"),q=require("@base-ui/react/radio"),N=require("@base-ui/react/switch");var M="_hotkeys_16heq_1",K={hotkeys:M},T=({hotkeys:r})=>(0,e.jsx)("span",{className:K.hotkeys,"aria-hidden":!0,children:r.join(w.getOsShortcutSeparator())}),V="_soonPillContainer_e7hkk_1",A={soonPillContainer:V},E=({label:r="Soon"})=>(0,e.jsx)("span",{className:A.soonPillContainer,children:(0,e.jsx)($.Pill,{label:r})}),C=(0,p.createContext)(null),F="_button_1kjmt_1",I="_content_1kjmt_161",J="_label_1kjmt_170",Q="_icon_1kjmt_176",U="_hidden_1kjmt_186",W="_loader_1kjmt_190",t={button:F,content:I,label:J,icon:Q,hidden:U,loader:W},X=({variant:r="outline",color:a="neutral",size:o="md",fullWidth:s=!1,loading:n=!1,elevated:B=!1,startIcon:j,endIcon:b,hotkeys:x,soon:f=!1,soonLabel:S,disabled:y=!1,href:d,render:P,className:R,children:_,...k})=>{const c=(0,p.useContext)(C),g=c?.variant??r,D=c?.color??a,O=c?.size??o,z=w.useIsMobile(),l=i.isDefined(d),G=l?{href:d}:void 0;return(0,e.jsxs)(H.Button,{...k,...G,className:v.mergeClassNames(t.button,R),"data-variant":g,"data-color":D,"data-size":O,"data-full-width":s||void 0,"data-loading":n||void 0,"data-elevated":B||void 0,"aria-busy":n?"true":k["aria-busy"],disabled:y||f||n,role:l?"link":void 0,nativeButton:!l,render:P??(l?(0,e.jsx)("a",{href:d,children:_}):void 0),children:[(0,e.jsxs)("span",{className:(0,h.clsx)(t.content,n&&t.hidden),children:[i.isDefined(j)&&(0,e.jsx)("span",{className:t.icon,"aria-hidden":!0,children:j}),i.isDefined(_)&&(0,e.jsx)("span",{className:t.label,children:_}),i.isDefined(b)&&(0,e.jsx)("span",{className:t.icon,"aria-hidden":!0,children:b}),i.isDefined(x)&&!z&&(0,e.jsx)(T,{hotkeys:x}),f&&(0,e.jsx)(E,{label:S})]}),n&&(0,e.jsx)("span",{className:t.loader,"aria-hidden":!0,children:(0,e.jsx)(L.Loader,{})})]})},Y="_root_ahkrw_1",Z="_control_ahkrw_18",ee="_sm_ahkrw_33",re="_md_ahkrw_38",te="_indicator_ahkrw_49",u={root:Y,control:Z,sm:ee,md:re,indicator:te},ae=({children:r,className:a,size:o="sm",...s})=>(0,e.jsxs)(q.Radio.Root,{...s,className:v.mergeClassNames((0,h.clsx)(u.root,u[o]),a),children:[(0,e.jsx)("span",{className:u.control,"aria-hidden":!0,children:(0,e.jsx)(q.Radio.Indicator,{className:u.indicator})}),r]}),oe="_root_rn2ew_1",se="_sm_rn2ew_33",ne="_md_rn2ew_39",ie="_thumb_rn2ew_45",m={root:oe,sm:se,md:ne,thumb:ie},le=({size:r="md",className:a,children:o,...s})=>(0,e.jsxs)(N.Switch.Root,{...s,className:v.mergeClassNames((0,h.clsx)(m.root,m[r]),a),children:[(0,e.jsx)(N.Switch.Thumb,{className:m.thumb}),o]});Object.defineProperty(exports,"Button",{enumerable:!0,get:function(){return X}});Object.defineProperty(exports,"ButtonGroupContext",{enumerable:!0,get:function(){return C}});Object.defineProperty(exports,"Radio",{enumerable:!0,get:function(){return ae}});Object.defineProperty(exports,"Switch",{enumerable:!0,get:function(){return le}});
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { t as l } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
3
|
-
import { isBoolean as o } from "@sniptt/guards";
|
|
4
|
-
var t = (a) => l(a) && !o(a) && a !== "", v = "_root_1a4vb_1", b = "_list_1a4vb_10", c = "_tab_1a4vb_37", d = "_content_1a4vb_89", m = "_label_1a4vb_108", p = "_startIcon_1a4vb_114", h = "_badge_1a4vb_115", f = "_panel_1a4vb_130", N = "_indicator_1a4vb_139", r = {
|
|
5
|
-
root: v,
|
|
6
|
-
list: b,
|
|
7
|
-
tab: c,
|
|
8
|
-
content: d,
|
|
9
|
-
label: m,
|
|
10
|
-
startIcon: p,
|
|
11
|
-
badge: h,
|
|
12
|
-
panel: f,
|
|
13
|
-
indicator: N
|
|
14
|
-
}, g = ({ children: a, startIcon: _, endIcon: n, badge: s }) => /* @__PURE__ */ i("span", {
|
|
15
|
-
className: r.content,
|
|
16
|
-
children: [
|
|
17
|
-
t(_) && /* @__PURE__ */ e("span", {
|
|
18
|
-
className: r.startIcon,
|
|
19
|
-
"aria-hidden": !0,
|
|
20
|
-
children: _
|
|
21
|
-
}),
|
|
22
|
-
/* @__PURE__ */ e("span", {
|
|
23
|
-
className: r.label,
|
|
24
|
-
children: a
|
|
25
|
-
}),
|
|
26
|
-
t(n) && /* @__PURE__ */ e("span", {
|
|
27
|
-
className: r.startIcon,
|
|
28
|
-
"aria-hidden": !0,
|
|
29
|
-
children: n
|
|
30
|
-
}),
|
|
31
|
-
t(s) && /* @__PURE__ */ e("span", {
|
|
32
|
-
className: r.badge,
|
|
33
|
-
children: s
|
|
34
|
-
})
|
|
35
|
-
]
|
|
36
|
-
});
|
|
37
|
-
export {
|
|
38
|
-
r as n,
|
|
39
|
-
g as t
|
|
40
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const i=require("./isDefined-DS2Q42p5.cjs");let r=require("react/jsx-runtime"),l=require("@sniptt/guards");var t=e=>i.isDefined(e)&&!(0,l.isBoolean)(e)&&e!=="",b="_root_1a4vb_1",c="_list_1a4vb_10",d="_tab_1a4vb_37",o="_content_1a4vb_89",v="_label_1a4vb_108",u="_startIcon_1a4vb_114",m="_badge_1a4vb_115",p="_panel_1a4vb_130",f="_indicator_1a4vb_139",a={root:b,list:c,tab:d,content:o,label:v,startIcon:u,badge:m,panel:p,indicator:f},j=({children:e,startIcon:n,endIcon:_,badge:s})=>(0,r.jsxs)("span",{className:a.content,children:[t(n)&&(0,r.jsx)("span",{className:a.startIcon,"aria-hidden":!0,children:n}),(0,r.jsx)("span",{className:a.label,children:e}),t(_)&&(0,r.jsx)("span",{className:a.startIcon,"aria-hidden":!0,children:_}),t(s)&&(0,r.jsx)("span",{className:a.badge,children:s})]});Object.defineProperty(exports,"Tab_module_default",{enumerable:!0,get:function(){return a}});Object.defineProperty(exports,"TabsTabContent",{enumerable:!0,get:function(){return j}});
|
package/dist/chunk-u_mIcLyS.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var O=Object.create,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,P=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,f=(e,r,n,_)=>{if(r&&typeof r=="object"||typeof r=="function")for(var p=b(r),a=0,o=p.length,t;a<o;a++)t=p[a],!v.call(e,t)&&t!==n&&c(e,t,{get:(u=>r[u]).bind(null,t),enumerable:!(_=l(r,t))||_.enumerable});return e},j=(e,r,n)=>(n=e!=null?O(P(e)):{},f(r||!e||!e.__esModule?c(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,"__toESM",{enumerable:!0,get:function(){return j}});
|