twenty-ui 2.55.0 → 2.57.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/dist/{AllIcons-Ca_Mat4L.js → AllIcons-DbdVWsOq.js} +1 -1
- package/dist/{AllIcons-BQasO-X_.cjs → AllIcons-RgvlIG_O.cjs} +1 -1
- package/dist/{Button-C3IE0Kup.cjs → Button-CbJ3qEQ9.cjs} +1 -1
- package/dist/{Button-By-nG5vV.js → Button-wpJzTy9O.js} +3 -3
- package/dist/{Dropdown-CyEoMEjR.cjs → Dropdown-CTTQTn7B.cjs} +1 -1
- package/dist/{Dropdown-Zdc0J7Bg.js → Dropdown-CWXJOVhy.js} +13 -13
- package/dist/{Heading-CHvEXL6n.cjs → Heading-DnDEfr6w.cjs} +1 -1
- package/dist/{Heading-Nj5BlPqB.js → Heading-prj1BR5x.js} +4 -4
- package/dist/IconAddressBook-B6S_w1Z7.cjs +1 -0
- package/dist/{IconAddressBook-DUu7W_Gw.js → IconAddressBook-yE-1oV2W.js} +2 -2
- package/dist/{Input-BKRR1xlO.js → Input-B9glruH9.js} +5 -5
- package/dist/{Input-DS19vWhl.cjs → Input-D0yWU3vB.cjs} +1 -1
- package/dist/{ListItem-D0WDJG-e.cjs → ListItem-D6FYdx6v.cjs} +1 -1
- package/dist/{ListItem-BgRDvHQG.js → ListItem-mIMpO2Ia.js} +8 -8
- package/dist/Loader-9tUcz6Y9.js +29 -0
- package/dist/Loader-r-OAVzF_.cjs +1 -0
- package/dist/{OverflowingTextWithTooltip-CuWHF8_e.cjs → OverflowingTextWithTooltip-B21zZWP6.cjs} +1 -1
- package/dist/{OverflowingTextWithTooltip-CAQ-5aUp.js → OverflowingTextWithTooltip-aPLt9O1-.js} +9 -9
- package/dist/{Popover-DhFCYRtv.js → Popover-5bTsqA1R.js} +1 -1
- package/dist/{Popover-B-VIhr5g.cjs → Popover-JaBFWSK-.cjs} +1 -1
- package/dist/{ProgressBar-B_QvBWbI.js → ProgressBar-ByhC2LPe.js} +22 -22
- package/dist/ProgressBar-CSCAWfHW.cjs +1 -0
- package/dist/Radio-Bg-zmy-1.js +176 -0
- package/dist/{Radio-DUQ6MLGc.cjs → Radio-CjaEN7Bt.cjs} +1 -1
- package/dist/{ResizeHandle-B30OYZxS.js → ResizeHandle-BWoKp0dV.js} +11 -11
- package/dist/{ResizeHandle-B1MuHTNA.cjs → ResizeHandle-D4Q-ffcT.cjs} +1 -1
- package/dist/{Shortcut-CThgcmn_.js → Shortcut-04Wkuy0i.js} +10 -10
- package/dist/{Shortcut-CLngfg7s.cjs → Shortcut-Gp5Ix8K2.cjs} +1 -1
- package/dist/{Skeleton-tXeIy4qq.cjs → Skeleton-DSloDuSJ.cjs} +1 -1
- package/dist/{Skeleton-BbIF780H.js → Skeleton-gAiz2xVU.js} +4 -4
- package/dist/{Tooltip-BXeUFCdb.cjs → Tooltip-BTv1a0nT.cjs} +1 -1
- package/dist/{Tooltip-CT9YCDaV.js → Tooltip-C60MawQS.js} +10 -10
- package/dist/VisuallyHidden-BOlbK5vT.cjs +1 -0
- package/dist/{VisuallyHidden-CFZP7ybO.js → VisuallyHidden-EWkEBgpc.js} +4 -4
- package/dist/components/code-editor.cjs +1 -1
- package/dist/components/code-editor.mjs +11 -11
- package/dist/components/data-display/AssistantAvatar/AssistantAvatar.d.ts +2 -0
- package/dist/components/data-display/AssistantAvatar/internal/components/AnimatedAssistantAvatarFace.d.ts +6 -0
- package/dist/components/data-display/AssistantAvatar/internal/constants/assistantAvatarBodyAssetByShape.constant.d.ts +12 -0
- package/dist/components/data-display/AssistantAvatar/internal/constants/assistantAvatarColors.constant.d.ts +1 -0
- package/dist/components/data-display/AssistantAvatar/internal/constants/assistantAvatarFaceAssetByFace.constant.d.ts +8 -0
- package/dist/components/data-display/AssistantAvatar/internal/constants/assistantAvatarFaces.constant.d.ts +1 -0
- package/dist/components/data-display/AssistantAvatar/internal/constants/assistantAvatarShapes.constant.d.ts +1 -0
- package/dist/components/data-display/AssistantAvatar/internal/constants/assistantAvatarSizes.constant.d.ts +1 -0
- package/dist/components/data-display/AssistantAvatar/types/AssistantAvatarColor.d.ts +3 -0
- package/dist/components/data-display/AssistantAvatar/types/AssistantAvatarFace.d.ts +2 -0
- package/dist/components/data-display/AssistantAvatar/types/AssistantAvatarProps.d.ts +12 -0
- package/dist/components/data-display/AssistantAvatar/types/AssistantAvatarShape.d.ts +2 -0
- package/dist/components/data-display/AssistantAvatar/types/AssistantAvatarSize.d.ts +2 -0
- package/dist/components/data-display/index.d.ts +6 -0
- package/dist/components/data-display.cjs +1 -1
- package/dist/components/data-display.mjs +9 -8
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.mjs +1 -1
- package/dist/components/input/SegmentedControl/types/SegmentedControlProps.d.ts +2 -2
- 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.cjs +1 -1
- package/dist/components/navigation.mjs +2 -2
- package/dist/components/settings.cjs +1 -1
- package/dist/components/settings.mjs +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +43 -42
- package/dist/{data-display-DlmWaxYb.cjs → data-display-B0ANuV9c.cjs} +1 -1
- package/dist/data-display-Czu6NhqA.cjs +2 -0
- package/dist/data-display-_j--U7HG.js +520 -0
- package/dist/{data-display-DKSUI3GC.js → data-display-njtZTjjY.js} +24 -24
- package/dist/{feedback-DFTvn5aL.js → feedback-BPJEugY_.js} +31 -31
- package/dist/{feedback-Cvmm1EZX.cjs → feedback-DUoCvdM-.cjs} +1 -1
- package/dist/icon/components/IconBrandHubspot.d.ts +4 -0
- package/dist/icon/components/IconBrandPipedrive.d.ts +4 -0
- package/dist/icon/components/IconBrandSalesforce.d.ts +4 -0
- package/dist/icon/index.d.ts +3 -0
- package/dist/icon/provider.cjs +1 -1
- package/dist/icon/provider.mjs +2 -2
- package/dist/{icon-zsQcq4-s.js → icon-2HTgZZ7x.js} +232 -173
- package/dist/icon-CJchVntY.cjs +1 -0
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +152 -149
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +678 -673
- package/dist/{input-Clzu-UFH.js → input-BaXuEzOr.js} +36 -36
- package/dist/input-BlZ0RHaV.js +379 -0
- package/dist/input-DQfXFl5C.cjs +1 -0
- package/dist/{input-E1x0D2jA.cjs → input-cZCDLL4-.cjs} +1 -1
- package/dist/{layout-DHW99Ejj.cjs → layout-CpDps22m.cjs} +1 -1
- package/dist/{layout-4p7UQD7l.js → layout-DGrag6ua.js} +99 -99
- package/dist/{navigation-BY8X2w04.js → navigation-B4F-yaFC.js} +6 -6
- package/dist/{navigation-4RI9GlzA.js → navigation-CmTgub0K.js} +14 -14
- package/dist/{navigation-B9jOHv99.cjs → navigation-CuI3MVOM.cjs} +1 -1
- package/dist/{navigation-ByYN6NgX.cjs → navigation-Dqiqv2rb.cjs} +1 -1
- package/dist/primitives/accessibility.cjs +1 -1
- package/dist/primitives/accessibility.mjs +1 -1
- package/dist/primitives/data-display/Badge/types/BadgeColor.d.ts +1 -1
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +1 -1
- package/dist/primitives/feedback/ProgressBar/types/ProgressBarProps.d.ts +1 -1
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +3 -3
- package/dist/primitives/input/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/primitives/input/RadioGroup/types/RadioGroupProps.d.ts +2 -0
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +4 -4
- package/dist/primitives/layout.cjs +1 -1
- package/dist/primitives/layout.mjs +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 +2 -0
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +3 -3
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +4 -4
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +19 -19
- package/dist/{settings-2ZhNkDgW.js → settings-BSIBOXgt.js} +2 -2
- package/dist/{settings-DR3dpWzy.cjs → settings-gd-ps3zs.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/surfaces-BpIdyqtX.js +227 -0
- package/dist/surfaces-GkxUWBN6.cjs +1 -0
- package/dist/testing.cjs +1 -1
- package/dist/testing.mjs +2 -2
- package/dist/theme/constants/ThemeLight.d.ts +1 -0
- package/dist/theme/internal/ThemeNumericValueByCssVariable.d.ts +1 -0
- package/dist/theme/internal/ThemeTokenTree.d.ts +3 -0
- package/dist/theme/internal/resolveThemeTokens.d.ts +2 -0
- package/dist/theme/themeCssVariables.d.ts +1 -0
- package/dist/theme/themeTypes.d.ts +1 -0
- package/dist/{theme-CuGIQBsJ.js → theme-B1jMC8En.js} +2577 -2544
- package/dist/theme-CeIzO6UU.cjs +1 -0
- package/dist/theme-dark.css +1 -0
- package/dist/theme-light.css +1 -0
- package/dist/theme.cjs +1 -1
- package/dist/theme.mjs +13 -13
- package/dist/{typography-B4hug-TZ.cjs → typography-BQbeIT60.cjs} +1 -1
- package/dist/{typography-jl1UzvVu.js → typography-DvK5mDnG.js} +2 -2
- package/dist/{useIsMobile-CZeJLJJN.js → useIsMobile-B0P21Ov9.js} +1 -1
- package/dist/{useIsMobile-VmnhfE8g.cjs → useIsMobile-BnW-j5Bq.cjs} +1 -1
- package/dist/utilities/color/utils/themeColorSchema.d.ts +15 -15
- package/dist/utilities/index.d.ts +1 -0
- package/dist/utilities/zoom/utils/isPageZoomGesture.d.ts +1 -0
- package/dist/utilities-9ARl_uku.cjs +1 -0
- package/dist/{utilities-E91ftFp_.js → utilities-IyA_ho0H.js} +19 -18
- package/dist/utilities.cjs +1 -1
- package/dist/utilities.mjs +18 -17
- package/package.json +1 -1
- package/dist/IconAddressBook-uc6K45F8.cjs +0 -1
- package/dist/Loader-Dau0YQpY.cjs +0 -1
- package/dist/Loader-U1LuZtJf.js +0 -29
- package/dist/ProgressBar-km29TA-7.cjs +0 -1
- package/dist/Radio-rURvQ923.js +0 -176
- package/dist/VisuallyHidden-B-n4x1KY.cjs +0 -1
- package/dist/data-display-Cg9gF6Cb.cjs +0 -2
- package/dist/data-display-CuvXSBLo.js +0 -422
- package/dist/icon-VuAPY3xQ.cjs +0 -1
- package/dist/input-BIUZSrhq.js +0 -374
- package/dist/input-CX8QPMDn.cjs +0 -1
- package/dist/surfaces-C70biBA8.js +0 -225
- package/dist/surfaces-DcGz8LO-.cjs +0 -1
- package/dist/theme-BJRNJNPO.cjs +0 -1
- package/dist/utilities-YhvQ2XFb.cjs +0 -1
|
@@ -0,0 +1,520 @@
|
|
|
1
|
+
import { g as f, m as r2, r as X } from "./theme-B1jMC8En.js";
|
|
2
|
+
import { t as m } from "./isDefined-fMi6eQ4r.js";
|
|
3
|
+
import { t as P } from "./isRenderableSlot-DT_depzM.js";
|
|
4
|
+
import { Dt as l2, Et as s2, Ha as i2, Lt as n2, U as Q, cn as d2, ic as c2 } from "./TablerIcons-B6BhOlW_.js";
|
|
5
|
+
import { t as v2 } from "./doNotTranslate-BSVT8Xyd.js";
|
|
6
|
+
import { t as C2 } from "./VisuallyHidden-EWkEBgpc.js";
|
|
7
|
+
import { t as _2 } from "./ProgressRing-8mYV9cxE.js";
|
|
8
|
+
import { l as g2 } from "./utilities-IyA_ho0H.js";
|
|
9
|
+
import { isArray as m2, isBoolean as h2, isNonEmptyArray as U, isNonEmptyString as k, isNumber as W, isString as p2 } from "@sniptt/guards";
|
|
10
|
+
import { clsx as c } from "clsx";
|
|
11
|
+
import { Fragment as I, jsx as t, jsxs as d } from "react/jsx-runtime";
|
|
12
|
+
import { useRender as A } from "@base-ui/react/use-render";
|
|
13
|
+
import { Children as M, createContext as u2, isValidElement as w2, useContext as f2, useId as y2, useState as b2 } from "react";
|
|
14
|
+
import { Collapsible as Y } from "@base-ui/react/collapsible";
|
|
15
|
+
var A2 = "_root_1qqt5_1", x2 = "_body_1qqt5_8", L2 = "_face_1qqt5_9", $ = {
|
|
16
|
+
root: A2,
|
|
17
|
+
body: x2,
|
|
18
|
+
face: L2
|
|
19
|
+
};
|
|
20
|
+
var N2 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Agent%20avatar/.Dots%20face%20(static)'%3e%3cpath%20id='Left%20eye'%20d='M9%208.88C9.20486%208.88%209.40772%208.92035%209.59699%208.99875C9.78625%209.07714%209.95823%209.19205%2010.1031%209.33691C10.2479%209.48177%2010.3629%209.65375%2010.4413%209.84301C10.5196%2010.0323%2010.56%2010.2351%2010.56%2010.44V13.56C10.56%2013.7649%2010.5196%2013.9677%2010.4413%2014.157C10.3629%2014.3463%2010.2479%2014.5182%2010.1031%2014.6631C9.95823%2014.8079%209.78625%2014.9229%209.59699%2015.0013C9.40772%2015.0796%209.20486%2015.12%209%2015.12C8.58626%2015.12%208.18947%2014.9556%207.89691%2014.6631C7.60436%2014.3705%207.44%2013.9737%207.44%2013.56V10.44C7.44%2010.0263%207.60436%209.62947%207.89691%209.33691C8.18947%209.04436%208.58626%208.88%209%208.88Z'%20fill='%233A5CCC'/%3e%3cpath%20id='Right%20eye'%20d='M15%208.88C15.4137%208.88%2015.8105%209.04436%2016.1031%209.33691C16.3956%209.62947%2016.56%2010.0263%2016.56%2010.44V13.56C16.56%2013.9737%2016.3956%2014.3705%2016.1031%2014.6631C15.8105%2014.9556%2015.4137%2015.12%2015%2015.12C14.5863%2015.12%2014.1895%2014.9556%2013.8969%2014.6631C13.6044%2014.3705%2013.44%2013.9737%2013.44%2013.56V10.44C13.44%2010.0263%2013.6044%209.62947%2013.8969%209.33691C14.1895%209.04436%2014.5863%208.88%2015%208.88Z'%20fill='%233A5CCC'/%3e%3c/g%3e%3c/svg%3e", E2 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Agent%20avatar/.Dots%20face%20(static)'%3e%3cpath%20id='Left%20eye'%20d='M8.87977%2010.0205C9.21639%2010.0205%209.53221%2010.1857%209.72234%2010.4634L11.2821%2012.7439C11.6002%2013.2088%2011.481%2013.8438%2011.0161%2014.1619C10.5512%2014.48%209.91623%2014.3608%209.59812%2013.8959L8.87977%2012.8459L8.16141%2013.8959C7.84328%2014.3607%207.20832%2014.48%206.74344%2014.1619C6.27882%2013.8437%206.16057%2013.2087%206.47859%2012.7439L8.03836%2010.4634L8.1157%2010.365C8.3079%2010.1473%208.58542%2010.0205%208.87977%2010.0205Z'%20fill='%233A5CCC'/%3e%3cpath%20id='Right%20eye'%20d='M15.1198%2010.0205C15.4564%2010.0205%2015.7722%2010.1857%2015.9623%2010.4634L17.5221%2012.7439C17.8402%2013.2088%2017.721%2013.8438%2017.2561%2014.1619C16.7912%2014.48%2016.1562%2014.3608%2015.8381%2013.8959L15.1198%2012.8459L14.4014%2013.8959C14.0833%2014.3607%2013.4483%2014.48%2012.9834%2014.1619C12.5188%2013.8437%2012.4006%2013.2087%2012.7186%2012.7439L14.2784%2010.4634L14.3557%2010.365C14.5479%2010.1473%2014.8254%2010.0205%2015.1198%2010.0205Z'%20fill='%233A5CCC'/%3e%3c/g%3e%3c/svg%3e", k2 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Agent%20avatar/.Dots%20face%20(static)'%3e%3cpath%20id='Left%20eye'%20d='M8.76%2013.701C8.199%2013.191%206.618%2012.171%206.618%2011.253C6.618%2010.335%207.332%209.774%207.995%209.774C8.403%209.774%208.658%2010.029%208.76%2010.335C8.862%2010.029%209.117%209.774%209.525%209.774C10.188%209.774%2010.902%2010.335%2010.902%2011.253C10.902%2012.171%209.321%2013.191%208.76%2013.701Z'%20fill='%233A5CCC'/%3e%3cpath%20id='Right%20eye'%20d='M15.24%2013.701C14.679%2013.191%2013.098%2012.171%2013.098%2011.253C13.098%2010.335%2013.812%209.774%2014.475%209.774C14.883%209.774%2015.138%2010.029%2015.24%2010.335C15.342%2010.029%2015.597%209.774%2016.005%209.774C16.668%209.774%2017.382%2010.335%2017.382%2011.253C17.382%2012.171%2015.801%2013.191%2015.24%2013.701Z'%20fill='%233A5CCC'/%3e%3c/g%3e%3c/svg%3e", I2 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Agent%20avatar/.Dots%20face%20(static)'%3e%3cpath%20id='Left%20eye'%20d='M8.04%2011.88H9.72C9.97461%2011.88%2010.2188%2011.9811%2010.3988%2012.1612C10.5789%2012.3412%2010.68%2012.5854%2010.68%2012.84C10.68%2013.0946%2010.5789%2013.3388%2010.3988%2013.5188C10.2188%2013.6989%209.97461%2013.8%209.72%2013.8H8.04C7.78539%2013.8%207.54121%2013.6989%207.36118%2013.5188C7.18114%2013.3388%207.08%2013.0946%207.08%2012.84C7.08%2012.5854%207.18114%2012.3412%207.36118%2012.1612C7.54121%2011.9811%207.78539%2011.88%208.04%2011.88Z'%20fill='%233A5CCC'/%3e%3cpath%20id='Right%20eye'%20d='M14.28%2011.88H15.96C16.2146%2011.88%2016.4588%2011.9811%2016.6388%2012.1612C16.8189%2012.3412%2016.92%2012.5854%2016.92%2012.84C16.92%2013.0946%2016.8189%2013.3388%2016.6388%2013.5188C16.4588%2013.6989%2016.2146%2013.8%2015.96%2013.8H14.28C14.0254%2013.8%2013.7812%2013.6989%2013.6012%2013.5188C13.4211%2013.3388%2013.32%2013.0946%2013.32%2012.84C13.32%2012.5854%2013.4211%2012.3412%2013.6012%2012.1612C13.7812%2011.9811%2014.0254%2011.88%2014.28%2011.88Z'%20fill='%233A5CCC'/%3e%3cpath%20id='Z'%20opacity='0'%20d='M18.6005%207.37977C18.8161%207.37995%2019.011%207.50861%2019.0962%207.70672C19.1813%207.90493%2019.1402%208.13497%2018.9919%208.29148L17.5774%209.77977H18.6005C18.8985%209.78002%2019.1395%2010.0219%2019.1395%2010.32C19.1395%2010.6181%2018.8985%2010.86%2018.6005%2010.8602H16.32C16.1043%2010.8602%2015.9096%2010.7314%2015.8243%2010.5333C15.7392%2010.335%2015.78%2010.105%2015.9286%209.94852L17.343%208.46023H16.32C16.0218%208.46023%2015.7798%208.21823%2015.7798%207.92C15.7798%207.62177%2016.0218%207.37977%2016.32%207.37977H18.6005Z'%20fill='%233A5CCC'/%3e%3c/g%3e%3c/svg%3e", T2 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Agent%20avatar/.Dots%20face%20(static)'%3e%3cpath%20id='Left%20eye'%20d='M6.6%2012C6.6%2012.2994%206.65897%2012.5959%206.77355%2012.8725C6.88814%2013.1491%207.05608%2013.4005%207.2678%2013.6122C7.47951%2013.8239%207.73086%2013.9919%208.00748%2014.1064C8.2841%2014.221%208.58059%2014.28%208.88%2014.28C9.17941%2014.28%209.4759%2014.221%209.75252%2014.1064C10.0291%2013.9919%2010.2805%2013.8239%2010.4922%2013.6122C10.7039%2013.4005%2010.8719%2013.1491%2010.9864%2012.8725C11.101%2012.5959%2011.16%2012.2994%2011.16%2012C11.16%2011.3953%2010.9198%2010.8154%2010.4922%2010.3878C10.0646%209.96021%209.48469%209.72%208.88%209.72C8.27531%209.72%207.69538%209.96021%207.2678%2010.3878C6.84021%2010.8154%206.6%2011.3953%206.6%2012Z'%20fill='%233A5CCC'/%3e%3cpath%20id='Right%20eye'%20d='M12.84%2012C12.84%2012.6047%2013.0802%2013.1846%2013.5078%2013.6122C13.9354%2014.0398%2014.5153%2014.28%2015.12%2014.28C15.7247%2014.28%2016.3046%2014.0398%2016.7322%2013.6122C17.1598%2013.1846%2017.4%2012.6047%2017.4%2012C17.4%2011.3953%2017.1598%2010.8154%2016.7322%2010.3878C16.3046%209.96021%2015.7247%209.72%2015.12%209.72C14.5153%209.72%2013.9354%209.96021%2013.5078%2010.3878C13.0802%2010.8154%2012.84%2011.3953%2012.84%2012Z'%20fill='%233A5CCC'/%3e%3c/g%3e%3c/svg%3e", S2 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Agent%20avatar/.Dots%20face%20(static)'%3e%3cpath%20id='Left%20eye'%20d='M9%208.88C9.20486%208.88%209.40772%208.92035%209.59699%208.99875C9.78625%209.07714%209.95823%209.19205%2010.1031%209.33691C10.2479%209.48177%2010.3629%209.65375%2010.4413%209.84301C10.5196%2010.0323%2010.56%2010.2351%2010.56%2010.44V13.56C10.56%2013.7649%2010.5196%2013.9677%2010.4413%2014.157C10.3629%2014.3463%2010.2479%2014.5182%2010.1031%2014.6631C9.95823%2014.8079%209.78625%2014.9229%209.59699%2015.0013C9.40772%2015.0796%209.20486%2015.12%209%2015.12C8.58626%2015.12%208.18947%2014.9556%207.89691%2014.6631C7.60436%2014.3705%207.44%2013.9737%207.44%2013.56V10.44C7.44%2010.0263%207.60436%209.62947%207.89691%209.33691C8.18947%209.04436%208.58626%208.88%209%208.88Z'%20fill='%233A5CCC'/%3e%3cpath%20id='Wink'%20d='M15.1198%2010.0205C15.4564%2010.0205%2015.7722%2010.1857%2015.9623%2010.4634L17.5221%2012.7439C17.8402%2013.2088%2017.721%2013.8438%2017.2561%2014.1619C16.7912%2014.48%2016.1562%2014.3608%2015.8381%2013.8959L15.1198%2012.8459L14.4014%2013.8959C14.0833%2014.3607%2013.4483%2014.48%2012.9834%2014.1619C12.5188%2013.8437%2012.4006%2013.2087%2012.7186%2012.7439L14.2784%2010.4634L14.3557%2010.365C14.5479%2010.1473%2014.8254%2010.0205%2015.1198%2010.0205Z'%20fill='%233A5CCC'/%3e%3c/g%3e%3c/svg%3e", q = {
|
|
21
|
+
default: N2,
|
|
22
|
+
happy: E2,
|
|
23
|
+
love: k2,
|
|
24
|
+
sleepy: I2,
|
|
25
|
+
surprised: T2,
|
|
26
|
+
wink: S2
|
|
27
|
+
}, B2 = "_root_15z29_1", R2 = "_eye_15z29_2", D2 = "_wink_15z29_3", M2 = "_sleepSymbol_15z29_4", $2 = "_leftEye_15z29_26", H2 = "_rightEye_15z29_31", V2 = "_defaultIdle_15z29_1", Z2 = "_happyIdle_15z29_1", F2 = "_winkEye_15z29_1", J2 = "_winkExpression_15z29_1", q2 = "_surprisedIdle_15z29_1", z2 = "_sleepyIdle_15z29_1", j2 = "_loveIdle_15z29_1", u = {
|
|
28
|
+
root: B2,
|
|
29
|
+
eye: R2,
|
|
30
|
+
wink: D2,
|
|
31
|
+
sleepSymbol: M2,
|
|
32
|
+
leftEye: $2,
|
|
33
|
+
rightEye: H2,
|
|
34
|
+
defaultIdle: V2,
|
|
35
|
+
happyIdle: Z2,
|
|
36
|
+
winkEye: F2,
|
|
37
|
+
winkExpression: J2,
|
|
38
|
+
surprisedIdle: q2,
|
|
39
|
+
sleepyIdle: z2,
|
|
40
|
+
loveIdle: j2
|
|
41
|
+
}, O2 = ({ face: e }) => {
|
|
42
|
+
const a = { maskImage: `url("${q[e === "wink" ? "default" : e]}")` };
|
|
43
|
+
return /* @__PURE__ */ d("span", {
|
|
44
|
+
"aria-hidden": "true",
|
|
45
|
+
className: u.root,
|
|
46
|
+
"data-face": e,
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ t("span", {
|
|
49
|
+
className: c(u.eye, u.leftEye),
|
|
50
|
+
style: a
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ t("span", {
|
|
53
|
+
className: c(u.eye, u.rightEye),
|
|
54
|
+
style: a
|
|
55
|
+
}),
|
|
56
|
+
e === "wink" && /* @__PURE__ */ t("span", {
|
|
57
|
+
className: u.wink,
|
|
58
|
+
style: { maskImage: `url("${q.wink}")` }
|
|
59
|
+
}),
|
|
60
|
+
e === "sleepy" && /* @__PURE__ */ t("span", {
|
|
61
|
+
className: u.sleepSymbol,
|
|
62
|
+
style: { maskImage: `url("data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Z'%20d='M19.9202%203.72C20.1581%203.72009%2020.3729%203.86089%2020.4687%204.07859C20.5645%204.29639%2020.5228%204.55007%2020.362%204.72547L18.6429%206.60047H19.9202C20.2515%206.60059%2020.5202%206.86918%2020.5202%207.20047C20.52%207.53155%2020.2513%207.80034%2019.9202%207.80047H17.28C17.0421%207.80047%2016.8262%207.65962%2016.7304%207.44187C16.6346%207.22408%2016.6774%206.9704%2016.8382%206.795L18.5562%204.92H17.28C16.9486%204.92%2016.68%204.65137%2016.68%204.32C16.68%203.98863%2016.9486%203.72%2017.28%203.72H19.9202Z'%20fill='%233A5CCC'/%3e%3c/svg%3e")` }
|
|
63
|
+
})
|
|
64
|
+
]
|
|
65
|
+
});
|
|
66
|
+
}, P2 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Agent%20avatar/.Dots%20body'%3e%3cpath%20id='Body'%20d='M12%200C14.6522%200%2017.1963%201.05302%2019.0716%202.92839C20.947%204.80375%2022%207.34784%2022%2010V21.3333C22%2022.0406%2021.7188%2022.7187%2021.2188%2023.2188C20.7187%2023.7188%2020.0406%2024%2019.3333%2024H4.66667C3.95942%2024%203.28135%2023.7188%202.78125%2023.2188C2.28115%2022.7187%202%2022.0406%202%2021.3333V10C2%207.34784%203.05302%204.80375%204.92839%202.92839C6.80375%201.05302%209.34784%200%2012%200Z'%20fill='%23E6EDFE'/%3e%3c/g%3e%3c/svg%3e", U2 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Agent%20avatar/.Dots%20body'%3e%3cpath%20id='Body'%20d='M10.8875%200.415324C11.5258%20-0.138441%2012.4742%20-0.138441%2013.1125%200.415323L14.1046%201.27607C14.4984%201.61776%2015.0274%201.75951%2015.5393%201.66052L16.8289%201.41114C17.6586%201.25071%2018.4799%201.7249%2018.7558%202.52361L19.1846%203.76509C19.3548%204.25793%2019.7421%204.64519%2020.2349%204.81542L21.4764%205.24424C22.2751%205.52012%2022.7493%206.34144%2022.5889%207.17109L22.3395%208.46065C22.2405%208.97257%2022.3822%209.50159%2022.7239%209.89542L23.5847%2010.8875C24.1384%2011.5258%2024.1384%2012.4742%2023.5847%2013.1125L22.7239%2014.1046C22.3822%2014.4984%2022.2405%2015.0274%2022.3395%2015.5393L22.5889%2016.8289C22.7493%2017.6586%2022.2751%2018.4799%2021.4764%2018.7558L20.2349%2019.1846C19.7421%2019.3548%2019.3548%2019.7421%2019.1846%2020.2349L18.7558%2021.4764C18.4799%2022.2751%2017.6586%2022.7493%2016.8289%2022.5889L15.5393%2022.3395C15.0274%2022.2405%2014.4984%2022.3822%2014.1046%2022.7239L13.1125%2023.5847C12.4742%2024.1384%2011.5258%2024.1384%2010.8875%2023.5847L9.89542%2022.7239C9.50159%2022.3822%208.97257%2022.2405%208.46065%2022.3395L7.17109%2022.5889C6.34144%2022.7493%205.52012%2022.2751%205.24424%2021.4764L4.81542%2020.2349C4.64519%2019.7421%204.25793%2019.3548%203.76509%2019.1846L2.52361%2018.7558C1.7249%2018.4799%201.2507%2017.6586%201.41114%2016.8289L1.66052%2015.5393C1.75951%2015.0274%201.61776%2014.4984%201.27607%2014.1046L0.415324%2013.1125C-0.138441%2012.4742%20-0.138441%2011.5258%200.415323%2010.8875L1.27607%209.89543C1.61776%209.50159%201.75951%208.97257%201.66052%208.46065L1.41114%207.17109C1.25071%206.34144%201.7249%205.52012%202.52361%205.24424L3.76509%204.81542C4.25793%204.64519%204.64519%204.25793%204.81542%203.76509L5.24424%202.52361C5.52012%201.7249%206.34144%201.2507%207.17109%201.41114L8.46065%201.66052C8.97257%201.75951%209.50159%201.61776%209.89542%201.27607L10.8875%200.415324Z'%20fill='%23E6EDFE'/%3e%3c/g%3e%3c/svg%3e", Y2 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Agent%20avatar/.Dots%20body'%3e%3cpath%20id='Body'%20d='M12%200C18.6274%200%2024%205.37258%2024%2012C24%2018.6274%2018.6274%2024%2012%2024C5.37258%2024%200%2018.6274%200%2012C0%205.37258%205.37258%200%2012%200Z'%20fill='%23E6EDFE'/%3e%3c/g%3e%3c/svg%3e", G2 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Agent%20avatar/.Dots%20body'%3e%3cpath%20id='Body'%20d='M15.3333%201.33333C19.3834%201.33333%2022.6667%204.61658%2022.6667%208.66667C22.6667%209.88896%2022.3648%2011.04%2021.8359%2012.0534C23.1581%2013.154%2024%2014.8119%2024%2016.6667C24%2019.9804%2021.3137%2022.6667%2018%2022.6667H6C2.68629%2022.6667%200%2019.9804%200%2016.6667C0%2014.8122%200.841025%2013.154%202.16276%2012.0534C2.05739%2011.6081%202%2011.1441%202%2010.6667C2%207.35296%204.68629%204.66667%208%204.66667C8.38276%204.66667%208.75694%204.70363%209.11979%204.77214C10.417%202.7068%2012.7144%201.33333%2015.3333%201.33333Z'%20fill='%23E6EDFE'/%3e%3c/g%3e%3c/svg%3e", K2 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Agent%20avatar/.Dots%20body'%3e%3cpath%20id='Body'%20d='M12%200C15.2947%200.000157425%2017.9863%202.57635%2018.1734%205.82422C21.4223%206.0103%2024%208.70327%2024%2011.9988C24%2015.2943%2021.4222%2017.986%2018.1734%2018.1722C17.9881%2021.4217%2015.2959%2023.9998%2012%2024C8.7039%2024%206.00945%2021.4219%205.82422%2018.1722C2.57626%2017.9851%200%2015.2936%200%2011.9988C0%208.70393%202.57623%206.01127%205.82422%205.82422C6.01124%202.5762%208.70512%200%2012%200Z'%20fill='%23E6EDFE'/%3e%3c/g%3e%3c/svg%3e", X2 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Agent%20avatar/.Dots%20body'%3e%3cpath%20id='Body'%20d='M8.97673%201.25213C10.6462%20-0.417376%2013.3538%20-0.417376%2015.0233%201.25213L16.0334%202.2622H17.4621C19.8229%202.2622%2021.7375%204.17595%2021.7378%206.53677V7.96665L22.7479%208.97673C24.4174%2010.6462%2024.4174%2013.3538%2022.7479%2015.0233L21.7378%2016.0334V17.4621C21.7378%2019.8231%2019.8231%2021.7378%2017.4621%2021.7378H16.0334L15.0233%2022.7479C13.3538%2024.4174%2010.6462%2024.4174%208.97673%2022.7479L7.96665%2021.7378H6.53793C4.1769%2021.7378%202.2622%2019.8231%202.2622%2017.4621V16.0334L1.25213%2015.0233C-0.417376%2013.3538%20-0.417375%2010.6462%201.25213%208.97673L2.2622%207.96665V6.53677C2.26245%204.17595%204.17705%202.2622%206.53793%202.2622H7.96665L8.97673%201.25213Z'%20fill='%23E6EDFE'/%3e%3c/g%3e%3c/svg%3e", Q2 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Agent%20avatar/.Dots%20body'%3e%3cpath%20id='Body'%20d='M12.0006%200C14.2836%200.000152113%2016.2157%201.49811%2016.8704%203.56449C17.223%203.48754%2017.589%203.44616%2017.9646%203.44614C20.7862%203.44614%2023.0734%205.73344%2023.0735%208.55502C23.0735%209.8826%2022.5669%2011.0915%2021.7368%2012C22.567%2012.9084%2023.0734%2014.1174%2023.0735%2015.445C23.0735%2018.2667%2020.7863%2020.5539%2017.9646%2020.5539C17.5889%2020.5538%2017.223%2020.5125%2016.8704%2020.4355C16.2158%2022.5021%2014.2838%2023.9998%2012.0006%2024C9.71708%2024%207.78294%2022.5025%207.12841%2020.4355C6.77622%2020.5123%206.41059%2020.5539%206.03539%2020.5539C3.21381%2020.5537%200.926514%2018.2666%200.926514%2015.445C0.926572%2014.1175%201.43312%2012.9084%202.2632%2012C1.43321%2011.0916%200.926514%209.88249%200.926514%208.55502C0.926639%205.73352%203.21389%203.44627%206.03539%203.44614C6.41047%203.44614%206.77633%203.48662%207.12841%203.56333C7.78339%201.49714%209.71763%200%2012.0006%200Z'%20fill='%23E6EDFE'/%3e%3c/g%3e%3c/svg%3e", W2 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Agent%20avatar/.Dots%20body'%3e%3cpath%20id='Body'%20d='M8.13491%201.60085C10.2695%20-0.533701%2013.7303%20-0.533533%2015.8649%201.60085L22.399%208.13491C24.5337%2010.2696%2024.5337%2013.7303%2022.399%2015.8649L15.8649%2022.399C13.7303%2024.5337%2010.2696%2024.5337%208.13491%2022.399L1.60085%2015.8649C-0.533533%2013.7303%20-0.533701%2010.2695%201.60085%208.13491L8.13491%201.60085Z'%20fill='%23E6EDFE'/%3e%3c/g%3e%3c/svg%3e", e0 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Agent%20avatar/.Dots%20body'%3e%3cpath%20id='Body'%20d='M10.8108%200.318652C11.5467%20-0.106217%2012.4533%20-0.106217%2013.1892%200.318652L21.5217%205.12943C22.2576%205.5543%2022.711%206.33949%2022.711%207.18923V16.8108C22.711%2017.6605%2022.2576%2018.4457%2021.5217%2018.8706L13.1892%2023.6813C12.4533%2024.1062%2011.5467%2024.1062%2010.8108%2023.6813L2.47827%2018.8706C1.74237%2018.4457%201.28904%2017.6605%201.28904%2016.8108V7.18923C1.28904%206.33949%201.74237%205.5543%202.47827%205.12943L10.8108%200.318652Z'%20fill='%23E6EDFE'/%3e%3c/g%3e%3c/svg%3e", a0 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Agent%20avatar/.Dots%20body'%3e%3cpath%20id='Body'%20d='M12%200C16.5345%200%2020.2105%203.67598%2020.2105%208.21053V15.7895C20.2105%2020.324%2016.5345%2024%2012%2024C7.46545%2024%203.78947%2020.324%203.78947%2015.7895V8.21053C3.78947%203.67598%207.46545%200%2012%200Z'%20fill='%23E6EDFE'/%3e%3c/g%3e%3c/svg%3e", t0 = {
|
|
67
|
+
arch: P2,
|
|
68
|
+
burst: U2,
|
|
69
|
+
circle: Y2,
|
|
70
|
+
cloud: G2,
|
|
71
|
+
clover: K2,
|
|
72
|
+
cookie: X2,
|
|
73
|
+
flower: Q2,
|
|
74
|
+
gem: W2,
|
|
75
|
+
hexagon: e0,
|
|
76
|
+
pill: a0
|
|
77
|
+
}, h1 = ({ shape: e = "circle", color: a = "blue", face: o = "default", size: r = 24, isAnimated: s = !1, className: i, style: l, "aria-label": n, "aria-labelledby": _, "aria-hidden": g, ...v }) => {
|
|
78
|
+
const C = k(n) || k(_), y = a === "sky" || a === "yellow" ? 11 : 10, p = {
|
|
79
|
+
"--assistant-avatar-body-color": f.color[`${a}4`],
|
|
80
|
+
"--assistant-avatar-face-color": f.color[`${a}${y}`],
|
|
81
|
+
width: r,
|
|
82
|
+
height: r,
|
|
83
|
+
...l
|
|
84
|
+
};
|
|
85
|
+
return /* @__PURE__ */ d("span", {
|
|
86
|
+
...v,
|
|
87
|
+
className: c($.root, i),
|
|
88
|
+
style: p,
|
|
89
|
+
"data-shape": e,
|
|
90
|
+
"data-color": a,
|
|
91
|
+
"data-face": o,
|
|
92
|
+
"data-size": r,
|
|
93
|
+
"data-animated": s,
|
|
94
|
+
role: C ? "img" : void 0,
|
|
95
|
+
"aria-label": n,
|
|
96
|
+
"aria-labelledby": _,
|
|
97
|
+
"aria-hidden": g ?? (C ? void 0 : !0),
|
|
98
|
+
children: [
|
|
99
|
+
/* @__PURE__ */ t("span", {
|
|
100
|
+
"aria-hidden": "true",
|
|
101
|
+
className: $.body,
|
|
102
|
+
style: { maskImage: `url("${t0[e]}")` }
|
|
103
|
+
}),
|
|
104
|
+
/* @__PURE__ */ t("span", {
|
|
105
|
+
"aria-hidden": "true",
|
|
106
|
+
className: $.face,
|
|
107
|
+
style: { maskImage: `url("${q[o]}")` }
|
|
108
|
+
}),
|
|
109
|
+
s && /* @__PURE__ */ t(O2, { face: o }, o)
|
|
110
|
+
]
|
|
111
|
+
});
|
|
112
|
+
}, o0 = "_container_5cu4g_1", r0 = "_itemContainer_5cu4g_6", l0 = "_overflowCountContainer_5cu4g_22", s0 = "_overflowCount_5cu4g_22", N = {
|
|
113
|
+
container: o0,
|
|
114
|
+
itemContainer: r0,
|
|
115
|
+
overflowCountContainer: l0,
|
|
116
|
+
overflowCount: s0
|
|
117
|
+
}, i0 = 4, p1 = ({ avatars: e, className: a, maxVisible: o = i0, total: r, renderOverflow: s, overflowShape: i = "square", overlap: l = "right", overlapOffset: n = "3px", render: _, ref: g, ...v }) => {
|
|
118
|
+
const C = M.toArray(e), y = Number.isNaN(o) ? 0 : Math.max(0, Math.floor(o)), p = C.slice(0, y), b = r ?? C.length, L = (Number.isFinite(b) ? Math.max(C.length, Math.floor(b)) : C.length) - p.length, T = m(s), S = L > 0 && (T ? s(L) : /* @__PURE__ */ d("span", {
|
|
119
|
+
className: N.overflowCount,
|
|
120
|
+
"data-shape": i,
|
|
121
|
+
children: ["+", L]
|
|
122
|
+
})), j = U(M.toArray(S)), O = { "--avatar-group-overlap-offset": n }, o2 = A({
|
|
123
|
+
render: _,
|
|
124
|
+
ref: g,
|
|
125
|
+
props: {
|
|
126
|
+
...v,
|
|
127
|
+
className: c(N.container, a),
|
|
128
|
+
children: /* @__PURE__ */ d(I, { children: [M.map(p, (D) => /* @__PURE__ */ t("span", {
|
|
129
|
+
className: N.itemContainer,
|
|
130
|
+
"data-overlap": l,
|
|
131
|
+
style: O,
|
|
132
|
+
children: D
|
|
133
|
+
}, w2(D) ? D.key : void 0)), j && /* @__PURE__ */ t("span", {
|
|
134
|
+
className: c(N.itemContainer, !T && N.overflowCountContainer),
|
|
135
|
+
"data-overlap": l,
|
|
136
|
+
style: O,
|
|
137
|
+
children: S
|
|
138
|
+
})] })
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
return U(p) || j ? o2 : null;
|
|
142
|
+
}, n0 = "_container_1j72k_1", d0 = "_commands_1j72k_13", c0 = "_actions_1j72k_25", v0 = "_prompt_1j72k_32", B = {
|
|
143
|
+
container: n0,
|
|
144
|
+
commands: d0,
|
|
145
|
+
actions: c0,
|
|
146
|
+
prompt: v0
|
|
147
|
+
}, u1 = ({ commands: e, actions: a, render: o, ref: r, className: s, ...i }) => A({
|
|
148
|
+
render: o,
|
|
149
|
+
ref: r,
|
|
150
|
+
props: {
|
|
151
|
+
...i,
|
|
152
|
+
className: c(B.container, s),
|
|
153
|
+
children: /* @__PURE__ */ d(I, { children: [/* @__PURE__ */ t("pre", {
|
|
154
|
+
className: B.commands,
|
|
155
|
+
children: /* @__PURE__ */ t("code", { children: e.map((l, n) => /* @__PURE__ */ d("span", { children: [
|
|
156
|
+
n > 0 && `
|
|
157
|
+
`,
|
|
158
|
+
/* @__PURE__ */ t("span", {
|
|
159
|
+
className: B.prompt,
|
|
160
|
+
"aria-hidden": "true",
|
|
161
|
+
children: "> "
|
|
162
|
+
}),
|
|
163
|
+
l
|
|
164
|
+
] }, n)) })
|
|
165
|
+
}), m(a) && /* @__PURE__ */ t("div", {
|
|
166
|
+
className: B.actions,
|
|
167
|
+
children: a
|
|
168
|
+
})] })
|
|
169
|
+
}
|
|
170
|
+
}), C0 = "_row_1usvs_1", _0 = "_label_1usvs_11", g0 = "_labelText_1usvs_22", m0 = "_icon_1usvs_27", h0 = "_description_1usvs_34", p0 = "_value_1usvs_43", u0 = "_action_1usvs_54", w = {
|
|
171
|
+
row: C0,
|
|
172
|
+
label: _0,
|
|
173
|
+
labelText: g0,
|
|
174
|
+
icon: m0,
|
|
175
|
+
description: h0,
|
|
176
|
+
value: p0,
|
|
177
|
+
action: u0
|
|
178
|
+
}, w1 = ({ label: e, children: a, startIcon: o, action: r, labelWidth: s = "7rem", render: i, ref: l, className: n, style: _, ...g }) => {
|
|
179
|
+
const v = {
|
|
180
|
+
"--details-row-label-width": W(s) ? `${s}px` : s,
|
|
181
|
+
..._
|
|
182
|
+
};
|
|
183
|
+
return A({
|
|
184
|
+
render: i,
|
|
185
|
+
ref: l,
|
|
186
|
+
props: {
|
|
187
|
+
...g,
|
|
188
|
+
className: c(w.row, n),
|
|
189
|
+
style: v,
|
|
190
|
+
children: /* @__PURE__ */ d(I, { children: [/* @__PURE__ */ d("dt", {
|
|
191
|
+
className: w.label,
|
|
192
|
+
children: [P(o) && /* @__PURE__ */ t("span", {
|
|
193
|
+
className: w.icon,
|
|
194
|
+
"aria-hidden": "true",
|
|
195
|
+
children: o
|
|
196
|
+
}), /* @__PURE__ */ t("span", {
|
|
197
|
+
className: w.labelText,
|
|
198
|
+
children: e
|
|
199
|
+
})]
|
|
200
|
+
}), /* @__PURE__ */ d("dd", {
|
|
201
|
+
className: w.description,
|
|
202
|
+
children: [/* @__PURE__ */ t("div", {
|
|
203
|
+
className: w.value,
|
|
204
|
+
children: a
|
|
205
|
+
}), P(r) && /* @__PURE__ */ t("div", {
|
|
206
|
+
className: w.action,
|
|
207
|
+
children: r
|
|
208
|
+
})]
|
|
209
|
+
})] })
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
}, w0 = "_list_1i4lv_1", f0 = "_nested_1i4lv_8", G = {
|
|
213
|
+
list: w0,
|
|
214
|
+
nested: f0
|
|
215
|
+
}, y0 = ({ depth: e, className: a, children: o }) => /* @__PURE__ */ t("ul", {
|
|
216
|
+
className: c(G.list, e > 0 && G.nested, a),
|
|
217
|
+
children: o
|
|
218
|
+
}), e2 = u2(void 0), x = () => {
|
|
219
|
+
const e = f2(e2);
|
|
220
|
+
if (!m(e)) throw new Error(v2("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider"));
|
|
221
|
+
return e;
|
|
222
|
+
}, b0 = "_button_1e3ij_1", A0 = "_red_1e3ij_17", x0 = "_chevron_1e3ij_22", H = {
|
|
223
|
+
button: b0,
|
|
224
|
+
red: A0,
|
|
225
|
+
chevron: x0
|
|
226
|
+
}, L0 = ({ isOpen: e, onClick: a, variant: o }) => {
|
|
227
|
+
const r = X(), { arrowButtonCollapsedLabel: s, arrowButtonExpandedLabel: i } = x(), l = o === "blue" ? f.color.blue : o === "red" ? f.font.color.danger : f.font.color.secondary;
|
|
228
|
+
return /* @__PURE__ */ d("button", {
|
|
229
|
+
className: c(H.button, o === "red" && H.red),
|
|
230
|
+
onClick: a,
|
|
231
|
+
children: [/* @__PURE__ */ t(C2, { children: e ? i : s }), /* @__PURE__ */ t("div", {
|
|
232
|
+
className: H.chevron,
|
|
233
|
+
"data-open": e || void 0,
|
|
234
|
+
children: /* @__PURE__ */ t(l2, {
|
|
235
|
+
size: r.icon.size.md,
|
|
236
|
+
color: l
|
|
237
|
+
})
|
|
238
|
+
})]
|
|
239
|
+
});
|
|
240
|
+
}, N0 = ({ label: e, value: a, depth: o, keyPath: r, highlighting: s }) => {
|
|
241
|
+
const { emptyArrayLabel: i } = x();
|
|
242
|
+
return /* @__PURE__ */ t(z, {
|
|
243
|
+
elements: [...a.entries()].map(([l, n]) => ({
|
|
244
|
+
id: l,
|
|
245
|
+
label: String(l),
|
|
246
|
+
value: n
|
|
247
|
+
})),
|
|
248
|
+
renderElementsCount: (l) => `[${l}]`,
|
|
249
|
+
label: e,
|
|
250
|
+
Icon: Q,
|
|
251
|
+
depth: o,
|
|
252
|
+
emptyElementsText: i,
|
|
253
|
+
keyPath: r,
|
|
254
|
+
highlighting: s
|
|
255
|
+
});
|
|
256
|
+
}, E0 = ({ label: e, value: a, depth: o, keyPath: r, highlighting: s }) => {
|
|
257
|
+
const { emptyObjectLabel: i } = x();
|
|
258
|
+
return /* @__PURE__ */ t(z, {
|
|
259
|
+
elements: Object.entries(a).map(([l, n]) => ({
|
|
260
|
+
id: l,
|
|
261
|
+
label: l,
|
|
262
|
+
value: n
|
|
263
|
+
})),
|
|
264
|
+
renderElementsCount: (l) => `{${l}}`,
|
|
265
|
+
label: e,
|
|
266
|
+
Icon: d2,
|
|
267
|
+
depth: o,
|
|
268
|
+
emptyElementsText: i,
|
|
269
|
+
keyPath: r,
|
|
270
|
+
highlighting: s
|
|
271
|
+
});
|
|
272
|
+
}, k0 = "_labelContainer_1pq94_1", I0 = "_blue_1pq94_23", T0 = "_red_1pq94_29", V = {
|
|
273
|
+
labelContainer: k0,
|
|
274
|
+
blue: I0,
|
|
275
|
+
red: T0
|
|
276
|
+
}, a2 = ({ label: e, Icon: a, highlighting: o }) => {
|
|
277
|
+
const r = X();
|
|
278
|
+
return /* @__PURE__ */ d("span", {
|
|
279
|
+
className: c(V.labelContainer, o === "blue" && V.blue, o === "red" && V.red),
|
|
280
|
+
children: [/* @__PURE__ */ t(a, {
|
|
281
|
+
size: r.icon.size.md,
|
|
282
|
+
color: o === "blue" ? r.color.blue : o === "red" ? r.font.color.danger : r.font.color.tertiary
|
|
283
|
+
}), /* @__PURE__ */ t("span", { children: e })]
|
|
284
|
+
});
|
|
285
|
+
}, S0 = "_text_1ot24_1", B0 = "_blue_1ot24_10", R0 = "_red_1ot24_14", D0 = "_button_1ot24_18", R = {
|
|
286
|
+
text: S0,
|
|
287
|
+
blue: B0,
|
|
288
|
+
red: R0,
|
|
289
|
+
button: D0
|
|
290
|
+
}, M0 = ({ valueAsString: e, highlighting: a }) => {
|
|
291
|
+
const { onNodeValueClick: o } = x(), r = m(o), s = () => {
|
|
292
|
+
o?.(e);
|
|
293
|
+
}, i = c(R.text, a === "blue" && R.blue, a === "red" && R.red);
|
|
294
|
+
return r ? /* @__PURE__ */ t("button", {
|
|
295
|
+
className: c(i, R.button),
|
|
296
|
+
type: "button",
|
|
297
|
+
onClick: s,
|
|
298
|
+
children: e
|
|
299
|
+
}) : /* @__PURE__ */ t("span", {
|
|
300
|
+
className: i,
|
|
301
|
+
children: e
|
|
302
|
+
});
|
|
303
|
+
}, $0 = "_listItem_1i7if_1", H0 = { listItem: $0 }, E = (e) => /* @__PURE__ */ d("li", {
|
|
304
|
+
className: H0.listItem,
|
|
305
|
+
children: [e.label && /* @__PURE__ */ t(a2, {
|
|
306
|
+
label: e.label,
|
|
307
|
+
Icon: e.Icon,
|
|
308
|
+
highlighting: e.highlighting
|
|
309
|
+
}), /* @__PURE__ */ t(M0, {
|
|
310
|
+
valueAsString: e.valueAsString,
|
|
311
|
+
highlighting: e.highlighting
|
|
312
|
+
})]
|
|
313
|
+
}), V0 = (e) => m2(e), t2 = ({ label: e, value: a, depth: o, keyPath: r }) => {
|
|
314
|
+
const { getNodeHighlighting: s, emptyStringLabel: i } = x(), l = s?.(r);
|
|
315
|
+
return m(a) ? p2(a) ? /* @__PURE__ */ t(E, {
|
|
316
|
+
label: e,
|
|
317
|
+
valueAsString: k(a) ? a : i,
|
|
318
|
+
Icon: c2,
|
|
319
|
+
highlighting: l
|
|
320
|
+
}) : W(a) ? /* @__PURE__ */ t(E, {
|
|
321
|
+
label: e,
|
|
322
|
+
valueAsString: String(a),
|
|
323
|
+
Icon: i2,
|
|
324
|
+
highlighting: l
|
|
325
|
+
}) : h2(a) ? /* @__PURE__ */ t(E, {
|
|
326
|
+
label: e,
|
|
327
|
+
valueAsString: String(a),
|
|
328
|
+
Icon: s2,
|
|
329
|
+
highlighting: l
|
|
330
|
+
}) : V0(a) ? /* @__PURE__ */ t(N0, {
|
|
331
|
+
label: e,
|
|
332
|
+
value: a,
|
|
333
|
+
depth: o,
|
|
334
|
+
keyPath: r,
|
|
335
|
+
highlighting: l
|
|
336
|
+
}) : /* @__PURE__ */ t(E0, {
|
|
337
|
+
label: e,
|
|
338
|
+
value: a,
|
|
339
|
+
depth: o,
|
|
340
|
+
keyPath: r,
|
|
341
|
+
highlighting: l
|
|
342
|
+
}) : /* @__PURE__ */ t(E, {
|
|
343
|
+
label: e,
|
|
344
|
+
valueAsString: "null",
|
|
345
|
+
Icon: n2,
|
|
346
|
+
highlighting: l
|
|
347
|
+
});
|
|
348
|
+
}, Z0 = "_container_d0cqx_1", F0 = "_labelContainer_d0cqx_6", J0 = "_elementsCount_d0cqx_12", q0 = "_elementsCountRed_d0cqx_16", z0 = "_panel_d0cqx_20", j0 = "_list_d0cqx_30", O0 = "_nested_d0cqx_37", h = {
|
|
349
|
+
container: Z0,
|
|
350
|
+
labelContainer: F0,
|
|
351
|
+
elementsCount: J0,
|
|
352
|
+
elementsCountRed: q0,
|
|
353
|
+
panel: z0,
|
|
354
|
+
list: j0,
|
|
355
|
+
nested: O0
|
|
356
|
+
}, z = ({ label: e, Icon: a, elements: o, renderElementsCount: r, emptyElementsText: s, depth: i, keyPath: l, highlighting: n }) => {
|
|
357
|
+
const { shouldExpandNodeInitially: _ } = x(), g = !m(e), [v, C] = b2(_({
|
|
358
|
+
keyPath: l,
|
|
359
|
+
depth: i
|
|
360
|
+
})), y = /* @__PURE__ */ t("ul", {
|
|
361
|
+
className: c(h.list, i > 0 && h.nested),
|
|
362
|
+
children: o.length === 0 ? /* @__PURE__ */ t(E, {
|
|
363
|
+
valueAsString: s,
|
|
364
|
+
highlighting: void 0
|
|
365
|
+
}) : o.map(({ id: b, label: L, value: T }) => {
|
|
366
|
+
const S = k(l) ? `${l}.${b}` : String(b);
|
|
367
|
+
return /* @__PURE__ */ t(t2, {
|
|
368
|
+
label: L,
|
|
369
|
+
value: T,
|
|
370
|
+
depth: i + 1,
|
|
371
|
+
keyPath: S
|
|
372
|
+
}, b);
|
|
373
|
+
})
|
|
374
|
+
}), p = () => {
|
|
375
|
+
C(!v);
|
|
376
|
+
};
|
|
377
|
+
return g ? /* @__PURE__ */ t("li", {
|
|
378
|
+
className: h.container,
|
|
379
|
+
children: y
|
|
380
|
+
}) : /* @__PURE__ */ d(Y.Root, {
|
|
381
|
+
className: h.container,
|
|
382
|
+
open: v,
|
|
383
|
+
render: /* @__PURE__ */ t("li", {}),
|
|
384
|
+
children: [/* @__PURE__ */ d("div", {
|
|
385
|
+
className: h.labelContainer,
|
|
386
|
+
children: [
|
|
387
|
+
/* @__PURE__ */ t(L0, {
|
|
388
|
+
isOpen: v,
|
|
389
|
+
onClick: p,
|
|
390
|
+
variant: n === "partial-blue" ? "blue" : n === "red" ? n : void 0
|
|
391
|
+
}),
|
|
392
|
+
/* @__PURE__ */ t(a2, {
|
|
393
|
+
label: e,
|
|
394
|
+
Icon: a,
|
|
395
|
+
highlighting: n === "red" ? n : void 0
|
|
396
|
+
}),
|
|
397
|
+
r && /* @__PURE__ */ t("span", {
|
|
398
|
+
className: c(h.elementsCount, n === "red" && h.elementsCountRed),
|
|
399
|
+
children: r(o.length)
|
|
400
|
+
})
|
|
401
|
+
]
|
|
402
|
+
}), /* @__PURE__ */ t(Y.Panel, {
|
|
403
|
+
className: h.panel,
|
|
404
|
+
children: y
|
|
405
|
+
})]
|
|
406
|
+
});
|
|
407
|
+
}, P0 = ({ value: e, children: a }) => /* @__PURE__ */ t(e2.Provider, {
|
|
408
|
+
value: e,
|
|
409
|
+
children: a
|
|
410
|
+
}), U0 = ({ depth: e }) => e <= 1, f1 = ({ value: e, entries: a, shouldExpandNodeInitially: o = U0, ...r }) => /* @__PURE__ */ t(P0, {
|
|
411
|
+
value: {
|
|
412
|
+
...r,
|
|
413
|
+
shouldExpandNodeInitially: o
|
|
414
|
+
},
|
|
415
|
+
children: /* @__PURE__ */ t(y0, {
|
|
416
|
+
depth: 0,
|
|
417
|
+
children: m(a) ? /* @__PURE__ */ t(z, {
|
|
418
|
+
elements: a,
|
|
419
|
+
Icon: Q,
|
|
420
|
+
depth: 0,
|
|
421
|
+
keyPath: "",
|
|
422
|
+
emptyElementsText: r.emptyObjectLabel
|
|
423
|
+
}) : /* @__PURE__ */ t(t2, {
|
|
424
|
+
value: e ?? null,
|
|
425
|
+
depth: 0,
|
|
426
|
+
keyPath: ""
|
|
427
|
+
})
|
|
428
|
+
})
|
|
429
|
+
}), Y0 = "_row_1hj4l_1", G0 = "_label_1hj4l_11", K0 = "_icon_1hj4l_20", Z = {
|
|
430
|
+
row: Y0,
|
|
431
|
+
label: G0,
|
|
432
|
+
icon: K0
|
|
433
|
+
}, y1 = ({ children: e, startIcon: a, value: o, progress: r, progressColor: s, progressValueText: i, render: l, ref: n, className: _, ...g }) => {
|
|
434
|
+
const v = y2(), C = i ?? o;
|
|
435
|
+
return A({
|
|
436
|
+
render: l,
|
|
437
|
+
ref: n,
|
|
438
|
+
props: {
|
|
439
|
+
...g,
|
|
440
|
+
className: c(Z.row, _),
|
|
441
|
+
children: /* @__PURE__ */ d(I, { children: [/* @__PURE__ */ d("div", {
|
|
442
|
+
className: Z.label,
|
|
443
|
+
children: [m(a) && /* @__PURE__ */ t("span", {
|
|
444
|
+
className: Z.icon,
|
|
445
|
+
"aria-hidden": "true",
|
|
446
|
+
children: a
|
|
447
|
+
}), /* @__PURE__ */ t("span", {
|
|
448
|
+
id: v,
|
|
449
|
+
children: e
|
|
450
|
+
})]
|
|
451
|
+
}), m(r) ? /* @__PURE__ */ t(_2, {
|
|
452
|
+
value: r,
|
|
453
|
+
size: "sm",
|
|
454
|
+
barColor: s,
|
|
455
|
+
"aria-labelledby": v,
|
|
456
|
+
...k(C) ? { "aria-valuetext": C } : {},
|
|
457
|
+
children: o
|
|
458
|
+
}) : /* @__PURE__ */ t("span", { children: o })] })
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
}, X0 = "_root_7l8sk_1", Q0 = "_stackedIcon_7l8sk_14", K = {
|
|
462
|
+
root: X0,
|
|
463
|
+
stackedIcon: Q0
|
|
464
|
+
}, b1 = ({ icon: e, stackedIcon: a, className: o, render: r, ref: s, ...i }) => A({
|
|
465
|
+
render: r,
|
|
466
|
+
ref: s,
|
|
467
|
+
props: {
|
|
468
|
+
...i,
|
|
469
|
+
className: c(K.root, o),
|
|
470
|
+
children: /* @__PURE__ */ d(I, { children: [/* @__PURE__ */ t("span", {
|
|
471
|
+
"aria-hidden": "true",
|
|
472
|
+
children: e
|
|
473
|
+
}), /* @__PURE__ */ t("span", {
|
|
474
|
+
"aria-hidden": "true",
|
|
475
|
+
className: K.stackedIcon,
|
|
476
|
+
children: a
|
|
477
|
+
})] })
|
|
478
|
+
}
|
|
479
|
+
}), F = {
|
|
480
|
+
background: 4,
|
|
481
|
+
border: 6,
|
|
482
|
+
icon: 10
|
|
483
|
+
}, J = (e, a) => f.color[`${e}${a}`] ?? f.tag.text[e], W0 = (e) => {
|
|
484
|
+
const a = g2(e);
|
|
485
|
+
return {
|
|
486
|
+
backgroundColor: J(a, F.background),
|
|
487
|
+
iconColor: J(a, F.icon),
|
|
488
|
+
borderColor: J(a, F.border)
|
|
489
|
+
};
|
|
490
|
+
}, e1 = "_root_9ntdy_1", a1 = { root: e1 }, A1 = ({ icon: e, color: a = r2, className: o, style: r, render: s, ref: i, ...l }) => {
|
|
491
|
+
const n = W0(a);
|
|
492
|
+
return A({
|
|
493
|
+
render: s,
|
|
494
|
+
ref: i,
|
|
495
|
+
props: {
|
|
496
|
+
...l,
|
|
497
|
+
className: c(a1.root, o),
|
|
498
|
+
style: {
|
|
499
|
+
backgroundColor: n.backgroundColor,
|
|
500
|
+
color: n.iconColor,
|
|
501
|
+
...r
|
|
502
|
+
},
|
|
503
|
+
children: /* @__PURE__ */ t("span", {
|
|
504
|
+
"aria-hidden": "true",
|
|
505
|
+
children: e
|
|
506
|
+
})
|
|
507
|
+
}
|
|
508
|
+
});
|
|
509
|
+
};
|
|
510
|
+
export {
|
|
511
|
+
f1 as a,
|
|
512
|
+
p1 as c,
|
|
513
|
+
y1 as i,
|
|
514
|
+
h1 as l,
|
|
515
|
+
W0 as n,
|
|
516
|
+
w1 as o,
|
|
517
|
+
b1 as r,
|
|
518
|
+
u1 as s,
|
|
519
|
+
A1 as t
|
|
520
|
+
};
|