twenty-ui 2.49.0 → 2.50.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 +18 -0
- package/dist/Button-CU8BS-Yd.js +75 -0
- package/dist/Button-iVyxlrwO.cjs +1 -0
- package/dist/Dropdown-ChTVyesF.js +1018 -0
- package/dist/Dropdown-DlItz8Gh.cjs +1 -0
- package/dist/Heading-CHvEXL6n.cjs +1 -0
- package/dist/{Heading-pXllCJCO.js → Heading-Nj5BlPqB.js} +3 -3
- package/dist/{ListItem-DwBb-I1D.cjs → ListItem-C6Xl00m1.cjs} +1 -1
- package/dist/{ListItem-DizNUBT8.js → ListItem-C84ANa76.js} +1 -1
- package/dist/{OverflowingTextWithTooltip-Z2daM0_x.cjs → OverflowingTextWithTooltip-BQmpPObX.cjs} +1 -1
- package/dist/{OverflowingTextWithTooltip-BmUROIah.js → OverflowingTextWithTooltip-BtB9cGdJ.js} +20 -21
- package/dist/ProgressBar-CzGs7cuE.cjs +1 -0
- package/dist/ProgressBar-D4tKQ7OA.js +84 -0
- package/dist/{Radio-BEAztmPu.js → Radio-BwBZ4e8g.js} +29 -29
- package/dist/{Radio-Dx6b4SYZ.cjs → Radio-sIYxZnR_.cjs} +1 -1
- package/dist/TabsTabContent-6rkARU9F.cjs +1 -0
- package/dist/TabsTabContent-DPkLTBi2.js +39 -0
- package/dist/Tooltip-6uS8_wdA.js +132 -0
- package/dist/Tooltip-DL3sfbuw.cjs +1 -0
- package/dist/components/data-display.cjs +1 -1
- package/dist/components/data-display.mjs +6 -7
- package/dist/components/feedback/InlineBanner/InlineBanner.d.ts +2 -2
- package/dist/components/feedback/InlineBanner/internal/InlineBannerComponent.d.ts +1 -1
- package/dist/components/feedback/InlineBanner/types/InlineBannerProps.d.ts +1 -0
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.mjs +1 -1
- package/dist/components/input/SegmentedControl/types/SegmentedControlProps.d.ts +1 -1
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.mjs +2 -2
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.mjs +1 -1
- package/dist/components/navigation/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownSearch.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownSearchEffect.d.ts +8 -0
- package/dist/components/navigation/index.d.ts +0 -11
- package/dist/components/navigation.cjs +1 -1
- package/dist/components/navigation.mjs +6 -11
- package/dist/components/settings.cjs +1 -1
- package/dist/components/settings.mjs +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +35 -41
- package/dist/data-display-C-eoJ5En.js +378 -0
- package/dist/data-display-CM1yXpnE.cjs +2 -0
- package/dist/data-display-CXw-mxeS.js +252 -0
- package/dist/data-display-DdES9XqZ.cjs +1 -0
- package/dist/{feedback-DTyVVcTb.js → feedback-4HKPcMRs.js} +216 -215
- package/dist/feedback-BSOWDBI0.js +38 -0
- package/dist/feedback-DBRXDPSP.cjs +1 -0
- package/dist/feedback-DspXawf9.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +605 -611
- package/dist/input-CWWp7cqL.cjs +1 -0
- package/dist/input-CvZ_uB_9.cjs +1 -0
- package/dist/{input-BrjD91wv.js → input-Qn5_aFYU.js} +5 -5
- package/dist/input-k5cMhFI_.js +428 -0
- package/dist/{layout-DQcjBu08.js → layout-DDqeMgFv.js} +2 -2
- package/dist/{layout-CthYckvl.cjs → layout-iSfGrMrH.cjs} +1 -1
- package/dist/navigation-7Y6gHFlj.cjs +1 -0
- package/dist/{navigation-CIVYqPc5.js → navigation-BY8X2w04.js} +31 -31
- package/dist/navigation-BcXCiLE1.js +86 -0
- package/dist/navigation-ByYN6NgX.cjs +1 -0
- package/dist/normalizeSearchText-DLmPiBUZ.js +19 -0
- package/dist/normalizeSearchText-Do0MELpQ.cjs +1 -0
- package/dist/preventDismissingClickActivation-BEBrL9aB.cjs +1 -0
- package/dist/preventDismissingClickActivation-BQFMKRey.js +29 -0
- package/dist/primitives/accessibility.cjs +1 -1
- package/dist/primitives/accessibility.mjs +1 -1
- package/dist/primitives/data-display/Avatar/constants/AvatarPropertiesBySize.d.ts +4 -0
- package/dist/primitives/data-display/Avatar/types/AvatarSize.d.ts +1 -1
- package/dist/primitives/data-display/Badge/types/BadgeColor.d.ts +1 -1
- package/dist/primitives/data-display/Chip/types/ChipVariant.d.ts +1 -1
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +7 -8
- package/dist/primitives/feedback/Banner/Banner.d.ts +1 -1
- package/dist/primitives/feedback/Banner/internal/BannerAction.d.ts +1 -1
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +2 -2
- package/dist/primitives/input/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/primitives/input/Autocomplete/internal/AutocompleteInput.d.ts +1 -1
- package/dist/primitives/input/Autocomplete/types/AutocompleteInputProps.d.ts +8 -1
- package/dist/primitives/input/Button/types/ButtonColor.d.ts +1 -1
- package/dist/primitives/input/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/primitives/input/RadioGroup/types/RadioGroupProps.d.ts +3 -1
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +3 -3
- package/dist/primitives/navigation/Tabs/types/TabsSize.d.ts +1 -1
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +2 -2
- package/dist/primitives/surfaces/Card/Card.d.ts +1 -1
- package/dist/primitives/surfaces/Card/internal/CardRoot.d.ts +1 -1
- package/dist/primitives/surfaces/Card/types/CardRootProps.d.ts +0 -1
- package/dist/primitives/surfaces/Tooltip/Tooltip.d.ts +1 -0
- package/dist/primitives/surfaces/Tooltip/__stories__/findTooltip.d.ts +1 -0
- package/dist/primitives/surfaces/Tooltip/internal/TooltipBody.d.ts +2 -8
- package/dist/primitives/surfaces/Tooltip/types/TooltipBodyProps.d.ts +6 -0
- package/dist/primitives/surfaces/index.d.ts +1 -0
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +2 -2
- package/dist/primitives/typography/Heading/types/HeadingProps.d.ts +1 -1
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +3 -3
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +45 -46
- package/dist/{settings-CPXhrmbK.cjs → settings-DT5bEO6A.cjs} +1 -1
- package/dist/{settings-BgVuLpg9.js → settings-XGSJtobU.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/surfaces-q8voTXEJ.cjs +1 -0
- package/dist/{surfaces-BLsR5ka0.js → surfaces-vhSZBmbz.js} +77 -78
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/utils/waitForStorybookFontsLoaded.d.ts +1 -0
- package/dist/testing.cjs +1 -1
- package/dist/testing.mjs +87 -77
- package/dist/{typography-DT2eKLvd.js → typography-BPdXzW2T.js} +1 -1
- package/dist/{typography-bKeSMuJd.cjs → typography-CWtuNruY.cjs} +1 -1
- package/dist/utilities.cjs +1 -1
- package/dist/utilities.mjs +11 -10
- package/package.json +1 -1
- package/dist/Avatar-C6WxBgjS.cjs +0 -1
- package/dist/Avatar-ifVlxbx_.js +0 -73
- package/dist/Button-DIw804CX.js +0 -72
- package/dist/Button-DTm1WDzp.cjs +0 -1
- package/dist/Dropdown-1OAJvS1f.js +0 -1000
- package/dist/Dropdown-Bl4OXCf9.cjs +0 -1
- package/dist/Heading-CTRYClCO.cjs +0 -1
- package/dist/ProgressBar-B3xACTV2.js +0 -84
- package/dist/ProgressBar-OpSMnDBz.cjs +0 -1
- package/dist/TabsTabContent-Co27Y2TU.cjs +0 -1
- package/dist/TabsTabContent-DVcObDp6.js +0 -39
- package/dist/TintedIconTile-B1XDtGrF.js +0 -40
- package/dist/TintedIconTile-DO1XJXCQ.cjs +0 -1
- package/dist/Tooltip-Bg9Uk01p.cjs +0 -1
- package/dist/Tooltip-cLCgtFBF.js +0 -124
- package/dist/components/navigation/MenuItem/MenuItem.d.ts +0 -2
- package/dist/components/navigation/MenuItem/parts/MenuItemIcon.d.ts +0 -9
- package/dist/components/navigation/MenuItem/parts/MenuItemIconBoxContainer.d.ts +0 -7
- package/dist/components/navigation/MenuItem/parts/MenuItemIconWithGripSwap.d.ts +0 -8
- package/dist/components/navigation/MenuItem/parts/MenuItemLeftContent.d.ts +0 -19
- package/dist/components/navigation/MenuItem/parts/StyledMenuItemBase.d.ts +0 -25
- package/dist/components/navigation/MenuItem/types/MenuItemDraggableGripMode.d.ts +0 -1
- package/dist/components/navigation/MenuItem/types/MenuItemProps.d.ts +0 -33
- package/dist/components/navigation/MenuItemAvatar/MenuItemAvatar.d.ts +0 -2
- package/dist/components/navigation/MenuItemAvatar/types/MenuItemAvatarProps.d.ts +0 -18
- package/dist/components/navigation/MenuItemDraggable/MenuItemDraggable.d.ts +0 -2
- package/dist/components/navigation/MenuItemDraggable/types/MenuItemDraggableProps.d.ts +0 -20
- package/dist/components/navigation/MenuItemSuggestion/MenuItemSuggestion.d.ts +0 -2
- package/dist/components/navigation/MenuItemSuggestion/types/MenuItemSuggestionProps.d.ts +0 -12
- package/dist/components/navigation/MenuPicker/MenuPicker.d.ts +0 -2
- package/dist/components/navigation/MenuPicker/types/MenuPickerProps.d.ts +0 -15
- package/dist/data-display-BSKGlijb.cjs +0 -1
- package/dist/data-display-BtXCGOGw.js +0 -345
- package/dist/data-display-DtXIhJ4B.js +0 -184
- package/dist/data-display-XV3ht1rC.cjs +0 -2
- package/dist/feedback-Cs-38OH4.cjs +0 -1
- package/dist/feedback-DA-AU5z5.js +0 -38
- package/dist/feedback-DNLERYY9.cjs +0 -1
- package/dist/input-B_rBplmn.cjs +0 -1
- package/dist/input-ChlFcqIS.cjs +0 -1
- package/dist/input-D1oyk0tD.js +0 -421
- package/dist/navigation-B6nka3bW.js +0 -400
- package/dist/navigation-CflGBYv-.cjs +0 -1
- package/dist/navigation-DoInK0Sp.cjs +0 -1
- package/dist/preventDismissingClickActivation-AaqHBLnW.js +0 -45
- package/dist/preventDismissingClickActivation-CIhWvKCu.cjs +0 -1
- package/dist/surfaces-0rL5DoHt.cjs +0 -1
- /package/dist/{handleClickableElementKeyDown-C8Uz61XJ.js → accessibility-C8Uz61XJ.js} +0 -0
- /package/dist/{handleClickableElementKeyDown-CByqtBhO.cjs → accessibility-CByqtBhO.cjs} +0 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { t as tr } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { t as ar } from "./theme-B2EaXhye.js";
|
|
3
|
+
import { t as T } from "./mergeClassNames-ClFMR1v0.js";
|
|
4
|
+
import { t as n } from "./isRenderableSlot-DT_depzM.js";
|
|
5
|
+
import { t as sr } from "./useProvidedTextDirection-Dk8LBQeF.js";
|
|
6
|
+
import { useRender as nr } from "@base-ui/react/use-render";
|
|
7
|
+
import { isFunction as v, isNumber as P, isString as pr } from "@sniptt/guards";
|
|
8
|
+
import { clsx as lr } from "clsx";
|
|
9
|
+
import { Fragment as f, jsx as o, jsxs as c } from "react/jsx-runtime";
|
|
10
|
+
import { Tooltip as t } from "@base-ui/react/tooltip";
|
|
11
|
+
var dr = "_positioner_1d0uo_1", cr = "_popup_1d0uo_8", mr = "_content_1d0uo_50", ur = "_title_1d0uo_56", _r = "_icon_1d0uo_68", vr = "_description_1d0uo_78", fr = "_arrow_1d0uo_84", p = {
|
|
12
|
+
positioner: dr,
|
|
13
|
+
popup: cr,
|
|
14
|
+
content: mr,
|
|
15
|
+
title: ur,
|
|
16
|
+
icon: _r,
|
|
17
|
+
description: vr,
|
|
18
|
+
arrow: fr
|
|
19
|
+
}, w = ({ className: r, ...e }) => /* @__PURE__ */ o(t.Arrow, {
|
|
20
|
+
...e,
|
|
21
|
+
className: T(p.arrow, r)
|
|
22
|
+
}), N = ({ children: r, description: e, startIcon: i, className: a, render: l, ref: d, ...m }) => nr({
|
|
23
|
+
render: l,
|
|
24
|
+
ref: d,
|
|
25
|
+
props: {
|
|
26
|
+
...m,
|
|
27
|
+
className: lr(p.content, a),
|
|
28
|
+
children: /* @__PURE__ */ c(f, { children: [n(r) && /* @__PURE__ */ c("div", {
|
|
29
|
+
className: p.title,
|
|
30
|
+
children: [n(i) && /* @__PURE__ */ o("span", {
|
|
31
|
+
className: p.icon,
|
|
32
|
+
"aria-hidden": !0,
|
|
33
|
+
children: i
|
|
34
|
+
}), /* @__PURE__ */ o("span", { children: r })]
|
|
35
|
+
}), n(e) && /* @__PURE__ */ o("div", {
|
|
36
|
+
className: p.description,
|
|
37
|
+
children: e
|
|
38
|
+
})] })
|
|
39
|
+
}
|
|
40
|
+
}), x = ({ className: r, withExitAnimation: e = !1, maxWidth: i, style: a, ...l }) => /* @__PURE__ */ o(t.Popup, {
|
|
41
|
+
role: "tooltip",
|
|
42
|
+
"data-with-exit-animation": e || void 0,
|
|
43
|
+
...l,
|
|
44
|
+
className: T(p.popup, r),
|
|
45
|
+
style: (d) => ({
|
|
46
|
+
"--tw-tooltip-max-width": P(i) ? `${i}px` : i,
|
|
47
|
+
...v(a) ? a(d) : a
|
|
48
|
+
})
|
|
49
|
+
}), D = ({ container: r, ...e }) => {
|
|
50
|
+
const i = ar();
|
|
51
|
+
return /* @__PURE__ */ o(t.Portal, {
|
|
52
|
+
...e,
|
|
53
|
+
container: r ?? i ?? void 0
|
|
54
|
+
});
|
|
55
|
+
}, b = ({ className: r, ...e }) => {
|
|
56
|
+
const i = sr();
|
|
57
|
+
return /* @__PURE__ */ o(t.Positioner, {
|
|
58
|
+
dir: i,
|
|
59
|
+
...e,
|
|
60
|
+
className: T(p.positioner, r)
|
|
61
|
+
});
|
|
62
|
+
}, Tr = 10, hr = ({ content: r, children: e, description: i, startIcon: a, open: l, defaultOpen: d, onOpenChange: m, onOpenChangeComplete: F, disabled: R = !1, disableHoverablePopup: A, trackCursorAxis: H, actionsRef: S, handle: j, triggerId: E, defaultTriggerId: O, delay: y, closeDelay: B, closeOnClick: L, side: V = "top", align: $ = "center", sideOffset: C = Tr, alignOffset: U, anchor: k, positionMethod: q, collisionBoundary: z, collisionPadding: G, collisionAvoidance: J, sticky: K, arrowPadding: M, disableAnchorTracking: Q, arrow: X = !1, maxWidth: Y, container: Z, keepMounted: I, triggerProps: W, positionerProps: rr, portalProps: or, ...ir }) => {
|
|
63
|
+
const u = n(i), _ = R || !v(r) && !n(r) && !u, h = /* @__PURE__ */ o(t.Trigger, {
|
|
64
|
+
render: e,
|
|
65
|
+
delay: y,
|
|
66
|
+
closeDelay: B,
|
|
67
|
+
closeOnClick: L,
|
|
68
|
+
...W
|
|
69
|
+
}), g = (s) => {
|
|
70
|
+
if (!(n(s) || u)) return /* @__PURE__ */ o(f, { children: h });
|
|
71
|
+
const er = pr(s) || P(s) || u || n(a);
|
|
72
|
+
return /* @__PURE__ */ c(f, { children: [h, /* @__PURE__ */ o(D, {
|
|
73
|
+
container: Z,
|
|
74
|
+
keepMounted: I,
|
|
75
|
+
...or,
|
|
76
|
+
children: /* @__PURE__ */ o(b, {
|
|
77
|
+
side: V,
|
|
78
|
+
align: $,
|
|
79
|
+
sideOffset: C,
|
|
80
|
+
alignOffset: U,
|
|
81
|
+
anchor: k,
|
|
82
|
+
positionMethod: q,
|
|
83
|
+
collisionBoundary: z,
|
|
84
|
+
collisionPadding: G,
|
|
85
|
+
collisionAvoidance: J,
|
|
86
|
+
sticky: K,
|
|
87
|
+
arrowPadding: M,
|
|
88
|
+
disableAnchorTracking: Q,
|
|
89
|
+
...rr,
|
|
90
|
+
children: /* @__PURE__ */ c(x, {
|
|
91
|
+
maxWidth: Y,
|
|
92
|
+
...ir,
|
|
93
|
+
children: [er ? /* @__PURE__ */ o(N, {
|
|
94
|
+
description: i,
|
|
95
|
+
startIcon: a,
|
|
96
|
+
children: s
|
|
97
|
+
}) : s, X && /* @__PURE__ */ o(w, {})]
|
|
98
|
+
})
|
|
99
|
+
})
|
|
100
|
+
})] });
|
|
101
|
+
};
|
|
102
|
+
return /* @__PURE__ */ o(t.Root, {
|
|
103
|
+
open: tr(l) ? l && !_ : void 0,
|
|
104
|
+
defaultOpen: d && !_,
|
|
105
|
+
onOpenChange: m,
|
|
106
|
+
onOpenChangeComplete: F,
|
|
107
|
+
disabled: _,
|
|
108
|
+
disableHoverablePopup: A,
|
|
109
|
+
trackCursorAxis: H,
|
|
110
|
+
actionsRef: S,
|
|
111
|
+
handle: j,
|
|
112
|
+
triggerId: E,
|
|
113
|
+
defaultTriggerId: O,
|
|
114
|
+
children: v(r) ? (s) => g(r(s)) : g(r)
|
|
115
|
+
});
|
|
116
|
+
}, Hr = Object.assign(hr, {
|
|
117
|
+
Root: t.Root,
|
|
118
|
+
Trigger: t.Trigger,
|
|
119
|
+
Portal: D,
|
|
120
|
+
Positioner: b,
|
|
121
|
+
Popup: x,
|
|
122
|
+
Body: N,
|
|
123
|
+
Arrow: w,
|
|
124
|
+
Viewport: t.Viewport,
|
|
125
|
+
Provider: t.Provider,
|
|
126
|
+
Handle: t.Handle,
|
|
127
|
+
createHandle: t.createHandle
|
|
128
|
+
});
|
|
129
|
+
export {
|
|
130
|
+
N as n,
|
|
131
|
+
Hr as t
|
|
132
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const re=require("./theme-1XkFz8Qu.cjs"),ie=require("./isDefined-DS2Q42p5.cjs"),m=require("./mergeClassNames-D4lshrT6.cjs"),n=require("./isRenderableSlot-Guryb6Nf.cjs"),oe=require("./useProvidedTextDirection-PVaoQCLH.cjs");let te=require("@base-ui/react/use-render"),u=require("@sniptt/guards"),se=require("clsx"),e=require("react/jsx-runtime"),t=require("@base-ui/react/tooltip");var ae="_positioner_1d0uo_1",ne="_popup_1d0uo_8",le="_content_1d0uo_50",de="_title_1d0uo_56",ue="_icon_1d0uo_68",pe="_description_1d0uo_78",ce="_arrow_1d0uo_84",l={positioner:ae,popup:ne,content:le,title:de,icon:ue,description:pe,arrow:ce},g=({className:r,...o})=>(0,e.jsx)(t.Tooltip.Arrow,{...o,className:m.mergeClassNames(l.arrow,r)}),x=({children:r,description:o,startIcon:i,className:s,render:d,ref:p,...c})=>(0,te.useRender)({render:d,ref:p,props:{...c,className:(0,se.clsx)(l.content,s),children:(0,e.jsxs)(e.Fragment,{children:[n.isRenderableSlot(r)&&(0,e.jsxs)("div",{className:l.title,children:[n.isRenderableSlot(i)&&(0,e.jsx)("span",{className:l.icon,"aria-hidden":!0,children:i}),(0,e.jsx)("span",{children:r})]}),n.isRenderableSlot(o)&&(0,e.jsx)("div",{className:l.description,children:o})]})}}),b=({className:r,withExitAnimation:o=!1,maxWidth:i,style:s,...d})=>(0,e.jsx)(t.Tooltip.Popup,{role:"tooltip","data-with-exit-animation":o||void 0,...d,className:m.mergeClassNames(l.popup,r),style:p=>({"--tw-tooltip-max-width":(0,u.isNumber)(i)?`${i}px`:i,...(0,u.isFunction)(s)?s(p):s})}),h=({container:r,...o})=>{const i=re.useThemeContainer();return(0,e.jsx)(t.Tooltip.Portal,{...o,container:r??i??void 0})},q=({className:r,...o})=>{const i=oe.useProvidedTextDirection();return(0,e.jsx)(t.Tooltip.Positioner,{dir:i,...o,className:m.mergeClassNames(l.positioner,r)})},_e=10,Te=({content:r,children:o,description:i,startIcon:s,open:d,defaultOpen:p,onOpenChange:c,onOpenChangeComplete:P,disabled:N=!1,disableHoverablePopup:f,trackCursorAxis:R,actionsRef:w,handle:S,triggerId:F,defaultTriggerId:D,delay:y,closeDelay:O,closeOnClick:A,side:C="top",align:H="center",sideOffset:B=_e,alignOffset:E,anchor:L,positionMethod:V,collisionBoundary:U,collisionPadding:$,collisionAvoidance:k,sticky:z,arrowPadding:G,disableAnchorTracking:J,arrow:K=!1,maxWidth:M,container:Q,keepMounted:X,triggerProps:Y,positionerProps:Z,portalProps:I,...W})=>{const _=n.isRenderableSlot(i),T=N||!(0,u.isFunction)(r)&&!n.isRenderableSlot(r)&&!_,j=(0,e.jsx)(t.Tooltip.Trigger,{render:o,delay:y,closeDelay:O,closeOnClick:A,...Y}),v=a=>{if(!(n.isRenderableSlot(a)||_))return(0,e.jsx)(e.Fragment,{children:j});const ee=(0,u.isString)(a)||(0,u.isNumber)(a)||_||n.isRenderableSlot(s);return(0,e.jsxs)(e.Fragment,{children:[j,(0,e.jsx)(h,{container:Q,keepMounted:X,...I,children:(0,e.jsx)(q,{side:C,align:H,sideOffset:B,alignOffset:E,anchor:L,positionMethod:V,collisionBoundary:U,collisionPadding:$,collisionAvoidance:k,sticky:z,arrowPadding:G,disableAnchorTracking:J,...Z,children:(0,e.jsxs)(b,{maxWidth:M,...W,children:[ee?(0,e.jsx)(x,{description:i,startIcon:s,children:a}):a,K&&(0,e.jsx)(g,{})]})})})]})};return(0,e.jsx)(t.Tooltip.Root,{open:ie.isDefined(d)?d&&!T:void 0,defaultOpen:p&&!T,onOpenChange:c,onOpenChangeComplete:P,disabled:T,disableHoverablePopup:f,trackCursorAxis:R,actionsRef:w,handle:S,triggerId:F,defaultTriggerId:D,children:(0,u.isFunction)(r)?a=>v(r(a)):v(r)})},me=Object.assign(Te,{Root:t.Tooltip.Root,Trigger:t.Tooltip.Trigger,Portal:h,Positioner:q,Popup:b,Body:x,Arrow:g,Viewport:t.Tooltip.Viewport,Provider:t.Tooltip.Provider,Handle:t.Tooltip.Handle,createHandle:t.Tooltip.createHandle});Object.defineProperty(exports,"Tooltip",{enumerable:!0,get:function(){return me}});Object.defineProperty(exports,"TooltipBody",{enumerable:!0,get:function(){return x}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../data-display-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../data-display-CM1yXpnE.cjs");exports.AvatarGroup=e.AvatarGroup;exports.CommandBlock=e.CommandBlock;exports.JsonTree=e.JsonTree;exports.MetricRow=e.MetricRow;exports.StackIcon=e.StackIcon;exports.TintedIconTile=e.TintedIconTile;exports.getIconTileColorShades=e.getIconTileColorShades;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { a, i as
|
|
2
|
-
import { n as i, t as c } from "../TintedIconTile-B1XDtGrF.js";
|
|
1
|
+
import { a, i as s, n as e, o as r, r as t, s as n, t as c } from "../data-display-C-eoJ5En.js";
|
|
3
2
|
export {
|
|
4
|
-
|
|
3
|
+
n as AvatarGroup,
|
|
5
4
|
r as CommandBlock,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
a as JsonTree,
|
|
6
|
+
s as MetricRow,
|
|
7
|
+
t as StackIcon,
|
|
9
8
|
c as TintedIconTile,
|
|
10
|
-
|
|
9
|
+
e as getIconTileColorShades
|
|
11
10
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const InlineBanner: (({ children, layout, variant, embedded, icon, className, ...props }: import('..').InlineBannerProps) => import("react").JSX.Element) & {
|
|
2
|
-
Action: (
|
|
1
|
+
export declare const InlineBanner: (({ children, layout, variant, embedded, fullWidth, icon, className, ...props }: import('..').InlineBannerProps) => import("react").JSX.Element) & {
|
|
2
|
+
Action: (props: import('../../..').BannerActionProps) => import("react").JSX.Element;
|
|
3
3
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { InlineBannerProps } from '../types/InlineBannerProps';
|
|
2
|
-
export declare const InlineBannerComponent: ({ children, layout, variant, embedded, icon, className, ...props }: InlineBannerProps) => import("react").JSX.Element;
|
|
2
|
+
export declare const InlineBannerComponent: ({ children, layout, variant, embedded, fullWidth, icon, className, ...props }: InlineBannerProps) => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../feedback-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../feedback-DspXawf9.cjs");exports.Callout=e.Callout;exports.InlineBanner=e.InlineBanner;exports.Toast=e.Toast;exports.ToastProvider=e.ToastProvider;exports.Toaster=e.Toaster;exports.useToast=e.useToast;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RadioGroupProps } from '../../../../primitives/input/RadioGroup/types/RadioGroupProps';
|
|
2
2
|
import { SegmentedControlOption } from './SegmentedControlOption';
|
|
3
3
|
import { SegmentedControlSize } from './SegmentedControlSize';
|
|
4
|
-
export type SegmentedControlProps<TValue extends string = string> = Omit<RadioGroupProps<TValue>, 'aria-label' | 'aria-labelledby' | 'children' | 'role'> & {
|
|
4
|
+
export type SegmentedControlProps<TValue extends string = string> = Omit<RadioGroupProps<TValue>, 'aria-label' | 'aria-labelledby' | 'children' | 'orientation' | 'role'> & {
|
|
5
5
|
itemWidth?: 'content' | 'equal';
|
|
6
6
|
options: readonly SegmentedControlOption<TValue>[];
|
|
7
7
|
size?: SegmentedControlSize;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../input-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../input-CvZ_uB_9.cjs"),t=require("../Dropdown-DlItz8Gh.cjs");exports.CountrySelect=e.CountrySelect;exports.CurrencyPicker=e.CurrencyPicker;exports.IconButton=t.IconButton;exports.ImageInput=e.ImageInput;exports.LightButton=e.LightButton;exports.LightIconButton=t.LightIconButton;exports.MainButton=e.MainButton;exports.NumberStepper=e.NumberStepper;exports.PhoneCountryPicker=e.PhoneCountryPicker;exports.SearchInput=e.SearchInput;exports.SegmentedControl=e.SegmentedControl;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as o, c as a, i as n, l as r, n as e, o as s, r as u, s as i, t as c } from "../input-
|
|
2
|
-
import { a as p, i as I } from "../Dropdown-
|
|
1
|
+
import { a as o, c as a, i as n, l as r, n as e, o as s, r as u, s as i, t as c } from "../input-Qn5_aFYU.js";
|
|
2
|
+
import { a as p, i as I } from "../Dropdown-ChTVyesF.js";
|
|
3
3
|
export {
|
|
4
4
|
r as CountrySelect,
|
|
5
5
|
a as CurrencyPicker,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../layout-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../layout-iSfGrMrH.cjs");exports.AnimatedIconCrossfade=e.AnimatedIconCrossfade;exports.OverflowingList=e.OverflowingList;exports.Section=e.Section;
|
|
@@ -7,7 +7,7 @@ export declare const Dropdown: {
|
|
|
7
7
|
ActionItem: ({ color, startIcon, endIcon, description, descriptionPlacement, shortcut, shortcutJoinLabel, hasSubmenu, actions, actionsVisibility, children, render, disabled, nativeButton, closeOnClick, onClick, page, id, ...props }: import('..').DropdownActionItemProps) => import("react").JSX.Element;
|
|
8
8
|
OptionItem: ({ value, selected: standaloneSelected, indicator, onSelect, closeOnSelect, color, startIcon, endIcon, description, descriptionPlacement, shortcut, shortcutJoinLabel, hasSubmenu, actions, actionsVisibility, children, render, disabled, nativeButton, onClick, id, ...props }: import('..').DropdownOptionItemProps) => import("react").JSX.Element;
|
|
9
9
|
SelectionGroup: (props: import('..').DropdownSelectionGroupProps) => import("react").JSX.Element;
|
|
10
|
-
Search: ({ onValueChange, className, ...props }: import('..').DropdownSearchProps) => import("react").JSX.Element;
|
|
10
|
+
Search: ({ onValueChange, onBlur, className, value, ref, ...props }: import('..').DropdownSearchProps) => import("react").JSX.Element;
|
|
11
11
|
Header: ({ render, ref, className, ...props }: import('..').DropdownHeaderProps) => ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
12
12
|
Title: ({ className, render, ref, ...props }: import('..').DropdownTitleProps) => import("react").JSX.Element;
|
|
13
13
|
Close: ({ render, children, "aria-label": ariaLabel, ...props }: import('..').DropdownCloseProps) => import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DropdownSearchProps } from '../types/DropdownSearchProps';
|
|
2
|
-
export declare const DropdownSearch: ({ onValueChange, className, ...props }: DropdownSearchProps) => import("react").JSX.Element;
|
|
2
|
+
export declare const DropdownSearch: ({ onValueChange, onBlur, className, value, ref, ...props }: DropdownSearchProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { DropdownSearchProps } from '../types/DropdownSearchProps';
|
|
3
|
+
type DropdownSearchEffectProps = {
|
|
4
|
+
searchRef: RefObject<HTMLInputElement | null>;
|
|
5
|
+
value: DropdownSearchProps['value'];
|
|
6
|
+
};
|
|
7
|
+
export declare const DropdownSearchEffect: ({ searchRef, value, }: DropdownSearchEffectProps) => null;
|
|
8
|
+
export {};
|
|
@@ -23,18 +23,7 @@ export type { DropdownType } from './Dropdown/types/DropdownType';
|
|
|
23
23
|
export { ListItemButton } from './ListItemButton/ListItemButton';
|
|
24
24
|
export type { ListItemButtonProps } from './ListItemButton/types/ListItemButtonProps';
|
|
25
25
|
export { DEFAULT_COLOR_LABELS } from './MenuItem/constants/DefaultColorLabels';
|
|
26
|
-
export { MenuItem } from './MenuItem/MenuItem';
|
|
27
26
|
export type { ColorLabels } from './MenuItem/types/ColorLabels';
|
|
28
27
|
export type { MenuItemAccent } from './MenuItem/types/MenuItemAccent';
|
|
29
|
-
export type { MenuItemDraggableGripMode } from './MenuItem/types/MenuItemDraggableGripMode';
|
|
30
|
-
export type { MenuItemProps } from './MenuItem/types/MenuItemProps';
|
|
31
|
-
export { MenuItemAvatar } from './MenuItemAvatar/MenuItemAvatar';
|
|
32
|
-
export type { MenuItemAvatarProps } from './MenuItemAvatar/types/MenuItemAvatarProps';
|
|
33
|
-
export { MenuItemDraggable } from './MenuItemDraggable/MenuItemDraggable';
|
|
34
|
-
export type { MenuItemDraggableProps } from './MenuItemDraggable/types/MenuItemDraggableProps';
|
|
35
|
-
export { MenuItemSuggestion } from './MenuItemSuggestion/MenuItemSuggestion';
|
|
36
|
-
export type { MenuItemSuggestionProps } from './MenuItemSuggestion/types/MenuItemSuggestionProps';
|
|
37
|
-
export { MenuPicker } from './MenuPicker/MenuPicker';
|
|
38
|
-
export type { MenuPickerProps } from './MenuPicker/types/MenuPickerProps';
|
|
39
28
|
export { TabButton } from './TabButton/TabButton';
|
|
40
29
|
export type { TabButtonProps } from './TabButton/types/TabButtonProps';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../Dropdown-DlItz8Gh.cjs"),e=require("../navigation-7Y6gHFlj.cjs");exports.DEFAULT_COLOR_LABELS=e.DEFAULT_COLOR_LABELS;exports.Dropdown=o.Dropdown;exports.ListItemButton=e.ListItemButton;exports.TabButton=e.TabButton;exports.useDropdownPage=e.useDropdownPage;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import { t } from "../Dropdown-
|
|
2
|
-
import {
|
|
1
|
+
import { t } from "../Dropdown-ChTVyesF.js";
|
|
2
|
+
import { i as a, n as s, r as m, t as n } from "../navigation-BcXCiLE1.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
s as DEFAULT_COLOR_LABELS,
|
|
5
5
|
t as Dropdown,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
n as MenuItemDraggable,
|
|
10
|
-
i as MenuItemSuggestion,
|
|
11
|
-
m as MenuPicker,
|
|
12
|
-
p as TabButton,
|
|
13
|
-
r as useDropdownPage
|
|
6
|
+
m as ListItemButton,
|
|
7
|
+
n as TabButton,
|
|
8
|
+
a as useDropdownPage
|
|
14
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../settings-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../settings-DT5bEO6A.cjs");exports.SettingsRow=e.SettingsRow;
|
package/dist/components.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./data-display-CM1yXpnE.cjs"),o=require("./feedback-DspXawf9.cjs"),e=require("./input-CvZ_uB_9.cjs"),r=require("./Dropdown-DlItz8Gh.cjs"),i=require("./layout-iSfGrMrH.cjs"),n=require("./navigation-7Y6gHFlj.cjs"),u=require("./settings-DT5bEO6A.cjs");exports.AnimatedIconCrossfade=i.AnimatedIconCrossfade;exports.AvatarGroup=t.AvatarGroup;exports.Callout=o.Callout;exports.CommandBlock=t.CommandBlock;exports.CountrySelect=e.CountrySelect;exports.CurrencyPicker=e.CurrencyPicker;exports.DEFAULT_COLOR_LABELS=n.DEFAULT_COLOR_LABELS;exports.Dropdown=r.Dropdown;exports.IconButton=r.IconButton;exports.ImageInput=e.ImageInput;exports.InlineBanner=o.InlineBanner;exports.JsonTree=t.JsonTree;exports.LightButton=e.LightButton;exports.LightIconButton=r.LightIconButton;exports.ListItemButton=n.ListItemButton;exports.MainButton=e.MainButton;exports.MetricRow=t.MetricRow;exports.NumberStepper=e.NumberStepper;exports.OverflowingList=i.OverflowingList;exports.PhoneCountryPicker=e.PhoneCountryPicker;exports.SearchInput=e.SearchInput;exports.Section=i.Section;exports.SegmentedControl=e.SegmentedControl;exports.SettingsRow=u.SettingsRow;exports.StackIcon=t.StackIcon;exports.TabButton=n.TabButton;exports.TintedIconTile=t.TintedIconTile;exports.Toast=o.Toast;exports.ToastProvider=o.ToastProvider;exports.Toaster=o.Toaster;exports.getIconTileColorShades=t.getIconTileColorShades;exports.useDropdownPage=n.useDropdownPage;exports.useToast=o.useToast;
|
package/dist/components.mjs
CHANGED
|
@@ -1,48 +1,42 @@
|
|
|
1
|
-
import { a as t,
|
|
2
|
-
import {
|
|
3
|
-
import { a as c, i as
|
|
4
|
-
import { a as
|
|
5
|
-
import {
|
|
6
|
-
import { n as
|
|
7
|
-
import {
|
|
8
|
-
import { t as H } from "./settings-BgVuLpg9.js";
|
|
1
|
+
import { a, i as t, n as s, o as r, r as n, s as e, t as i } from "./data-display-C-eoJ5En.js";
|
|
2
|
+
import { a as c, i as u, n as p, o as l, r as I, t as T } from "./feedback-4HKPcMRs.js";
|
|
3
|
+
import { a as f, c as B, i as C, l as S, n as g, o as L, r as h, s as w, t as P } from "./input-Qn5_aFYU.js";
|
|
4
|
+
import { a as A, i as v, t as y } from "./Dropdown-ChTVyesF.js";
|
|
5
|
+
import { n as O, r as R, t as b } from "./layout-DDqeMgFv.js";
|
|
6
|
+
import { i as M, n as _, r as x, t as F } from "./navigation-BcXCiLE1.js";
|
|
7
|
+
import { t as J } from "./settings-XGSJtobU.js";
|
|
9
8
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
R as AnimatedIconCrossfade,
|
|
10
|
+
e as AvatarGroup,
|
|
12
11
|
l as Callout,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
r as CommandBlock,
|
|
13
|
+
S as CountrySelect,
|
|
14
|
+
B as CurrencyPicker,
|
|
15
|
+
_ as DEFAULT_COLOR_LABELS,
|
|
16
|
+
y as Dropdown,
|
|
18
17
|
A as IconButton,
|
|
19
|
-
|
|
18
|
+
w as ImageInput,
|
|
20
19
|
c as InlineBanner,
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
a as JsonTree,
|
|
21
|
+
L as LightButton,
|
|
23
22
|
v as LightIconButton,
|
|
24
23
|
x as ListItemButton,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
I as ToastProvider,
|
|
44
|
-
f as Toaster,
|
|
45
|
-
i as getIconTileColorShades,
|
|
46
|
-
G as useDropdownPage,
|
|
47
|
-
p as useToast
|
|
24
|
+
f as MainButton,
|
|
25
|
+
t as MetricRow,
|
|
26
|
+
C as NumberStepper,
|
|
27
|
+
O as OverflowingList,
|
|
28
|
+
h as PhoneCountryPicker,
|
|
29
|
+
g as SearchInput,
|
|
30
|
+
b as Section,
|
|
31
|
+
P as SegmentedControl,
|
|
32
|
+
J as SettingsRow,
|
|
33
|
+
n as StackIcon,
|
|
34
|
+
F as TabButton,
|
|
35
|
+
i as TintedIconTile,
|
|
36
|
+
I as Toast,
|
|
37
|
+
p as ToastProvider,
|
|
38
|
+
T as Toaster,
|
|
39
|
+
s as getIconTileColorShades,
|
|
40
|
+
M as useDropdownPage,
|
|
41
|
+
u as useToast
|
|
48
42
|
};
|