@epam/ai-dial-ui-kit 0.15.2 → 0.16.0-dev.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/CHANGELOG.md +30 -2
- package/dist/DateCellRenderer-DgSPgDuR.cjs +1 -0
- package/dist/{DateCellRenderer-ElULb0hY.cjs → DateCellRenderer-SuN1qL3q.cjs} +2 -2
- package/dist/{IconButton-DHOFapLo.cjs → IconButton-B1Hx0Y3y.cjs} +1 -1
- package/dist/{MarkdownEditorContainer-B5aHwoYF.cjs → MarkdownEditorContainer-DLPODjar.cjs} +1 -1
- package/dist/{Switch-DE6MrcqJ.cjs → Switch-DAaAOaIu.cjs} +1 -1
- package/dist/components/Analytics/Bar/Bar.js +7 -7
- package/dist/components/Analytics/BarGroup/BarGroup.js +18 -18
- package/dist/components/Analytics/Histogram/Histogram.js +10 -10
- package/dist/components/Checkbox/Checkbox.js +9 -9
- package/dist/components/Dropdown/constants.js +2 -2
- package/dist/components/DropdownIcon/DropdownIcon.js +5 -5
- package/dist/components/Grid/Grid.js +11 -11
- package/dist/components/IconButton/IconButton.js +7 -7
- package/dist/components/InputPopup/InputPopup.js +8 -8
- package/dist/components/LoadFileArea/EmptyFileArea.js +28 -28
- package/dist/components/Loader/Loader.js +8 -8
- package/dist/components/New/Avatar/Avatar.js +18 -17
- package/dist/components/New/BottomSheet/BottomSheet.js +53 -52
- package/dist/components/New/Breadcrumbs/constants.js +1 -1
- package/dist/components/New/Calendar/constants.js +4 -4
- package/dist/components/New/Dropdown/constants.js +1 -1
- package/dist/components/New/MenuItem/MenuItem.js +17 -17
- package/dist/components/New/SharedEntityIndicator/SharedEntityIndicator.js +1 -1
- package/dist/components/New/SideDrawer/SideDrawer.js +1 -1
- package/dist/components/Search/Search.js +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/constants.js +6 -6
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Steps/Step.js +9 -9
- package/dist/components/TagInput/TagInput.js +1 -1
- package/dist/components-manifest.json +67 -5
- package/dist/constants/public-class-names.js +5 -0
- package/dist/dial-ui-kit.cjs +2 -2
- package/dist/dial-ui-kit.js +96 -94
- package/dist/editors.cjs +1 -1
- package/dist/file-manager.cjs +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/index.css +2 -6
- package/dist/migration-guides/0.16.0/tailwind-v4-stylesheet.md +98 -0
- package/dist/migration-guides/README.md +1 -0
- package/dist/src/components/ButtonDropdown/constants.d.ts +2 -2
- package/dist/src/components/Dropdown/constants.d.ts +1 -1
- package/dist/src/components/FileManager/FileManagerTooltip.d.ts +1 -1
- package/dist/src/components/FileManager/hooks/use-tree-additional-buttons.d.ts +1 -1
- package/dist/src/components/Grid/Grid.d.ts +1 -1
- package/dist/src/components/JsonEditor/lazy.d.ts +1 -1
- package/dist/src/components/MarkdownEditor/lazy.d.ts +1 -1
- package/dist/src/components/New/Avatar/Avatar.d.ts +9 -3
- package/dist/src/components/New/Breadcrumbs/constants.d.ts +2 -2
- package/dist/src/components/New/ButtonDropdown/constants.d.ts +1 -1
- package/dist/src/components/New/Calendar/constants.d.ts +5 -5
- package/dist/src/components/New/Dropdown/constants.d.ts +1 -1
- package/dist/src/components/New/FilterChips/FilterChips.d.ts +1 -1
- package/dist/src/components/New/Grid/Grid.d.ts +1 -1
- package/dist/src/components/New/Grid/components/SelectionCell.d.ts +1 -1
- package/dist/src/components/New/Grid/components/SelectionHeader.d.ts +1 -1
- package/dist/src/components/New/InteractiveTooltip/constants.d.ts +1 -1
- package/dist/src/components/New/MarkdownEditor/lazy.d.ts +1 -1
- package/dist/src/components/New/MenuItem/constants.d.ts +1 -1
- package/dist/src/components/New/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/src/components/New/Select/constants.d.ts +4 -4
- package/dist/src/components/New/Tooltip/constants.d.ts +2 -2
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/src/components/Select/constants.d.ts +3 -3
- package/dist/src/constants/public-class-names.d.ts +5 -0
- package/dist/src/index.d.ts +3 -2
- package/dist/src/subpaths/editors.d.ts +1 -1
- package/dist/src/types/avatar.d.ts +9 -0
- package/dist/src/utils/avatar.d.ts +2 -1
- package/dist/src/utils/sub-menu-floating.d.ts +1 -1
- package/dist/types/avatar.js +3 -2
- package/dist/use-file-manager-tabs-CdAk6Kkl.cjs +3 -0
- package/dist/utils/avatar.js +41 -18
- package/dist/utils/sub-menu-floating.js +8 -8
- package/package.json +9 -7
- package/dist/DateCellRenderer-C7yExfh5.cjs +0 -1
- package/dist/src/__mocks__/monaco-editor.d.ts +0 -13
- package/dist/src/components/Analytics/Bar/utils.spec.d.ts +0 -1
- package/dist/src/components/Analytics/Histogram/utils.spec.d.ts +0 -1
- package/dist/src/components/Button/ButtonWrappers.test.d.ts +0 -1
- package/dist/src/components/Button/__tests__/utils.spec.d.ts +0 -1
- package/dist/src/components/FileManager/__mocks__/files.d.ts +0 -3
- package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.test.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-conflict-resolution.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-current-path.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-clipboard.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-delete.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-download.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-upload.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-show-hidden-files.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-trigger-view-rename.spec.d.ts +0 -1
- package/dist/src/components/FileManager/utils.spec.d.ts +0 -1
- package/dist/src/components/Grid/comparators/base-column-comparator.spec.d.ts +0 -1
- package/dist/src/components/Grid/renderers/utils.spec.d.ts +0 -1
- package/dist/src/components/New/AutocompleteTagInput/utils.spec.d.ts +0 -1
- package/dist/src/components/New/Button/__tests__/utils.spec.d.ts +0 -1
- package/dist/src/components/New/Calendar/utils.spec.d.ts +0 -1
- package/dist/src/components/New/Slider/utils.spec.d.ts +0 -1
- package/dist/src/components/New/TagInput/utils.spec.d.ts +0 -1
- package/dist/src/components/Pagination/tests/utils.spec.d.ts +0 -1
- package/dist/src/components/SchemaRenderer/tests/utils.spec.d.ts +0 -1
- package/dist/src/components/Steps/tests/Steps.test.d.ts +0 -1
- package/dist/src/components/Steps/tests/utils.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/accessible-name.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/avatar.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/element-size-observer.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/file-accept.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/merge-classes.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/path.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/pointer.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/timezone.spec.d.ts +0 -1
- package/dist/src/utils/grid-registration.spec.d.ts +0 -1
- package/dist/use-file-manager-tabs-Bgh8mfOJ.cjs +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const u=require("react/jsx-runtime"),s=require("@floating-ui/react"),c=require("react"),x=require("classnames"),F=require("./merge-classes-BEJXjzkx.cjs");var l=(e=>(e.Primary="primary",e.Neutral="neutral",e.Danger="danger",e.Static="static",e.Starter="starter",e.Success="success",e.Secondary="secondary",e.Tertiary="tertiary",e))(l||{}),r=(e=>(e.Solid="solid",e.Outlined="outlined",e.Ghost="ghost",e.Link="link",e))(r||{});const v={[l.Primary]:{[r.Solid]:"dial-primary-solid-button",[r.Ghost]:"dial-primary-ghost-button",[r.Link]:"dial-primary-link-button"},[l.Neutral]:{[r.Outlined]:"dial-neutral-outlined-button"},[l.Danger]:{[r.Solid]:"dial-danger-solid-button",[r.Ghost]:"dial-danger-ghost-button",[r.Outlined]:"dial-danger-outlined-button"},[l.Success]:{[r.Ghost]:"dial-success-ghost-button"},[l.Secondary]:{[r.Ghost]:"dial-secondary-ghost-button"},[l.Tertiary]:{[r.Ghost]:"dial-tertiary-ghost-button"},[l.Static]:{},[l.Starter]:{}},S=(e=l.Primary,o=r.Solid)=>{const t=v[e]?.[o];return t||(console.warn(`Could not find Button styles for variant: ${e} and appearance: ${o}. Using default primary solid button styles.`),v[l.Primary][r.Solid])};var h=(e=>(e.Small="small",e.Standard="standard",e.Large="large",e))(h||{});const I=7,A=2,C=c.createContext(null),N=()=>{const e=c.useContext(C);if(e==null)throw new Error("Tooltip components must be wrapped in <Tooltip />");return e},q=({initialOpen:e=!1,placement:o="bottom",isTriggerClickable:t=!1,open:n,onOpenChange:a}={})=>{const[i,p]=c.useState(e),g=c.useRef(null),m=n??i,d=a??p,f=s.useFloating({placement:o,open:m,onOpenChange:d,whileElementsMounted:s.autoUpdate,middleware:[s.offset(I+A),s.flip({crossAxis:o.includes("-"),fallbackAxisSideDirection:"start",padding:5}),s.shift({padding:5}),s.arrow({element:g})]}),M=s.useHover(f.context,{move:!1,enabled:n==null,mouseOnly:t,delay:{open:500,close:0}}),k=s.useFocus(f.context,{enabled:n==null}),P=s.useDismiss(f.context),G=s.useRole(f.context,{role:"tooltip"}),y=s.useInteractions([M,k,P,G]);return c.useEffect(()=>{if(!m)return;const b=f.refs.reference.current;if(!(b instanceof Element))return;const w=new IntersectionObserver(([L])=>{L.isIntersecting||d(!1)},{root:null,threshold:0});return w.observe(b),()=>w.disconnect()},[m,f.refs.reference,d]),c.useMemo(()=>({open:m,setOpen:d,arrowRef:g,...y,...f}),[m,d,y,f])},R=({children:e,...o})=>{const t=q(o);return u.jsx(C.Provider,{value:t,children:e})},T="(hover: none)",_=()=>typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia(T).matches,D=()=>{const[e,o]=c.useState(()=>!_());return c.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;const t=window.matchMedia(T);if(o(!t.matches),typeof t.addEventListener!="function")return;const n=a=>o(!a.matches);return t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[]),e},E=({style:e,...o})=>{const t=N(),n=D(),a=c.useRef(null),i=s.useMergeRefs([t.refs.setFloating,a]);return!t.open||!n?null:u.jsx(s.FloatingPortal,{id:"tooltip-portal",children:u.jsxs("div",{ref:i,style:{...t.floatingStyles,...e},...t.getFloatingProps(o),className:x("z-tooltip whitespace-pre-wrap break-words rounded border border-primary bg-layer-0 px-2 py-1 dial-tiny-text shadow max-w-[300px]",t.getFloatingProps(o).className),children:[o.children,u.jsx(s.FloatingArrow,{ref:t.arrowRef,context:t.context,fill:"currentColor",strokeWidth:1,className:"stroke-primary text-[var(--bg-layer-0,_#000000)]"})]})})},H=({children:e,asChild:o=!1,...t})=>{const n=N(),a=o&&c.isValidElement(e),i=a?e.props?.ref:null,p=s.useMergeRefs([n.refs.setReference,...i?[i]:[]]);return a?c.cloneElement(e,n.getReferenceProps({...e.props,...t,ref:p})):u.jsx("span",{ref:p,...n.getReferenceProps(t),className:t.className??"dial-tooltip-trigger text-start",children:e})},j=({hideTooltip:e,tooltip:o,children:t,triggerClassName:n,contentClassName:a,...i})=>u.jsxs(R,{...i,children:[u.jsx(H,{className:x(n,"truncate"),children:t}),u.jsx(E,{className:x("text-primary",a,"max-w-[300px]",(e||!o)&&"hidden"),children:o})]}),O=(...e)=>e.find(o=>typeof o=="string"&&o.length>0),U=({variant:e,appearance:o=r.Solid,size:t=h.Standard,className:n,icon:a,tooltipProps:i,type:p="button",...g})=>{const m=F.mergeClasses(e&&S(e,o),t===h.Small?"h-[24px] w-[24px]":"h-[40px] w-[40px] dial-kit-enhanced-target","dial-icon-button disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-focus outline-offset-0",n),d=u.jsx("button",{...g,type:p,className:m,"aria-label":O(g["aria-label"],i?.tooltip),children:a});return i?u.jsx(j,{...i,children:d}):d};exports.ButtonAppearance=r;exports.ButtonVariant=l;exports.DialIconButton=U;exports.DialTooltip=j;exports.DialTooltipContainer=R;exports.DialTooltipContent=E;exports.DialTooltipTrigger=H;exports.ElementSize=h;exports.getButtonClassNames=S;exports.resolveAccessibleName=O;exports.useHasHover=D;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),m=require("./Switch-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),m=require("./Switch-DAaAOaIu.cjs"),N=require("./lazy-_W6FYhKg.cjs"),b=require("./MarkdownEditor-Bapd1ycU.cjs"),g=({value:r,onChangeValue:l,label:i,headerContent:a,switcherLabel:d,height:c=300,theme:u=N.EditorThemes.dark,onValidateJSON:x,preview:j="edit",showDragbar:w=!0})=>{const C=n.useId(),[t,p]=n.useState(!1),[f,S]=n.useState(null);n.useEffect(()=>{t&&typeof window<"u"&&Promise.resolve().then(()=>require("./JsonEditor-Bxui5wJH.cjs")).then(s=>{S(()=>s.DialJsonEditor)})},[t]);const h=n.useCallback(s=>{l?.(s)},[l]),E=n.useCallback(s=>{x?.(s)},[x]),o=!!d;return e.jsx("div",{className:"size-full flex flex-col",children:e.jsx("div",{className:"flex flex-col gap-8",children:e.jsxs("div",{children:[(i||a||o)&&e.jsxs("div",{className:"flex justify-between items-center mb-2",children:[i&&e.jsx(m.DialLabel,{label:i}),e.jsxs("div",{className:"flex items-center gap-2 flex-1 justify-end",children:[a,o&&e.jsx("label",{className:"flex items-center gap-2 cursor-pointer",children:e.jsx(m.DialSwitch,{isOn:t,label:d,switchId:C,onChange:s=>p(s)})})]})]}),o&&t?e.jsx("div",{className:"border border-primary rounded",style:{height:`${c}px`},children:f&&e.jsx(f,{value:r,onChange:h,onValidateJSON:E,currentTheme:u})}):e.jsx(b.DialMarkdownEditor,{value:r,onChange:h,height:c,preview:j,showDragbar:w,theme:u})]})})})};exports.DialMarkdownEditorContainer=g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),p=require("./merge-classes-BEJXjzkx.cjs"),d=require("@tabler/icons-react"),i=require("./IconButton-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),p=require("./merge-classes-BEJXjzkx.cjs"),d=require("@tabler/icons-react"),i=require("./IconButton-B1Hx0Y3y.cjs"),f=require("./icon-CrGVkVpG.cjs"),l=require("classnames"),h=require("react"),y="w-[24px] h-[24px] border border-solid rounded-[6px] border-transparent flex items-center justify-center text-secondary hover:text-controls-accent-primary-hover active:text-controls-accent-primary-active",o=({caption:t,onClick:a})=>{if(!t)return null;const s=e.jsx(i.DialIconButton,{"aria-label":t,className:y,icon:e.jsx(d.IconInfoCircle,{size:f.DIAL_ICON_SIZE.SM}),onClick:a});return t?e.jsx(i.DialTooltip,{tooltip:t,triggerClassName:"flex justify-center items-center",children:s}):s},j=({label:t,required:a,className:s,caption:r,...n})=>t?e.jsxs("label",{...n,className:p.mergeClasses("dial-tiny-text text-secondary flex items-center gap-1",s),children:[typeof t=="string"?e.jsx("span",{className:"min-h-4",children:t}):t,a&&e.jsx("span",{className:"text-accent-primary",children:"*"}),e.jsx(o,{caption:r})]}):null,N=({label:t,switchId:a,isOn:s=!1,disabled:r,onChange:n,caption:c})=>{const x=l("flex shrink-0 w-[36px] h-[18px] cursor-pointer items-center gap-1 rounded-full p-0.5 transition-all duration-200",s?"flex-row-reverse":"flex-row",r?"pointer-events-none":"",r?s?"bg-controls-disable":"bg-layer-4":s?"bg-accent-primary":"bg-layer-4"),m=h.useCallback(u=>{u.stopPropagation(),n?.(!s)},[n,s]);return e.jsxs("div",{className:"flex flex-row items-start",role:"switch",children:[e.jsx("input",{type:"checkbox",onChange:m,id:a,disabled:r,className:"invisible size-0",checked:s}),e.jsx("label",{htmlFor:a,className:x,"aria-describedby":c&&"caption",children:e.jsx("span",{className:l("size-3 rounded-full",r?"bg-controls-disable-accent":"bg-controls-enable-primary")})}),(t||c)&&e.jsxs("div",{className:"flex flex-col gap-1 ml-2",children:[t&&e.jsx("span",{className:l("dial-small-text py-[1px]",r?"text-secondary":"text-primary"),"aria-label":"switch-title",children:t}),c&&e.jsx("span",{id:"caption",className:"dial-tiny-text text-secondary",children:c})]})]})};exports.DialInfoButton=o;exports.DialLabel=j;exports.DialSwitch=N;
|
|
@@ -9,7 +9,7 @@ const L = ({
|
|
|
9
9
|
error: e,
|
|
10
10
|
isLoading: s,
|
|
11
11
|
title: i,
|
|
12
|
-
valueLabel:
|
|
12
|
+
valueLabel: p,
|
|
13
13
|
colorMap: u = _,
|
|
14
14
|
className: m,
|
|
15
15
|
titleClassName: w,
|
|
@@ -17,7 +17,7 @@ const L = ({
|
|
|
17
17
|
inline: o,
|
|
18
18
|
ariaLabel: v
|
|
19
19
|
}) => {
|
|
20
|
-
const n = a == null, N = !!(e || s || !n), d = j(n ? 0 : a, c), b = T(d, u), g =
|
|
20
|
+
const n = a == null, N = !!(e || s || !n), d = j(n ? 0 : a, c), b = T(d, u), g = p ?? (n ? "—" : a), A = v ?? (typeof i == "string" ? i : void 0), B = e || s, f = e ? /* @__PURE__ */ l(C, {}) : s ? /* @__PURE__ */ l(D, { fullWidth: !1 }) : /* @__PURE__ */ l(
|
|
21
21
|
"span",
|
|
22
22
|
{
|
|
23
23
|
className: r(
|
|
@@ -36,19 +36,19 @@ const L = ({
|
|
|
36
36
|
"aria-valuemax": c,
|
|
37
37
|
"aria-label": A,
|
|
38
38
|
className: r(
|
|
39
|
-
"w-full overflow-hidden rounded-
|
|
39
|
+
"w-full overflow-hidden rounded-xs",
|
|
40
40
|
o ? "h-1" : "h-2",
|
|
41
41
|
e ? "bg-error" : "bg-layer-1"
|
|
42
42
|
),
|
|
43
43
|
children: !B && /* @__PURE__ */ l(
|
|
44
44
|
"div",
|
|
45
45
|
{
|
|
46
|
-
className: "h-full rounded-
|
|
46
|
+
className: "h-full rounded-xs transition-[width] duration-300",
|
|
47
47
|
style: { width: `${d * 100}%`, backgroundColor: b }
|
|
48
48
|
}
|
|
49
49
|
)
|
|
50
50
|
}
|
|
51
|
-
) : null,
|
|
51
|
+
) : null, x = /* @__PURE__ */ l(
|
|
52
52
|
"span",
|
|
53
53
|
{
|
|
54
54
|
className: r("dial-small-text text-primary", w),
|
|
@@ -60,7 +60,7 @@ const L = ({
|
|
|
60
60
|
{
|
|
61
61
|
className: r("flex flex-row items-center gap-2", m),
|
|
62
62
|
children: [
|
|
63
|
-
/* @__PURE__ */ l("div", { className: "w-1/2 min-w-0", children:
|
|
63
|
+
/* @__PURE__ */ l("div", { className: "w-1/2 min-w-0", children: x }),
|
|
64
64
|
/* @__PURE__ */ t("div", { className: "flex w-1/2 flex-row items-center gap-2", children: [
|
|
65
65
|
/* @__PURE__ */ l("div", { className: "min-w-0 flex-1", children: h }),
|
|
66
66
|
f
|
|
@@ -69,7 +69,7 @@ const L = ({
|
|
|
69
69
|
}
|
|
70
70
|
) : /* @__PURE__ */ t("div", { className: r("flex flex-col gap-1", m), children: [
|
|
71
71
|
/* @__PURE__ */ t("div", { className: "flex flex-row items-center justify-between gap-2", children: [
|
|
72
|
-
|
|
72
|
+
x,
|
|
73
73
|
f
|
|
74
74
|
] }),
|
|
75
75
|
h
|
|
@@ -3,17 +3,17 @@ import { Fragment as Q } from "react";
|
|
|
3
3
|
import { DialAccordion as R } from "../../Accordion/Accordion.js";
|
|
4
4
|
import { DialAnalyticsBar as b } from "../Bar/Bar.js";
|
|
5
5
|
import { DialLoader as U } from "../../Loader/Loader.js";
|
|
6
|
-
import { DialTooltip as
|
|
7
|
-
import { mergeClasses as
|
|
6
|
+
import { DialTooltip as x } from "../../Tooltip/Tooltip.js";
|
|
7
|
+
import { mergeClasses as i } from "../../../utils/merge-classes.js";
|
|
8
8
|
const k = ({
|
|
9
|
-
title:
|
|
9
|
+
title: g,
|
|
10
10
|
titleTooltip: h,
|
|
11
11
|
description: S,
|
|
12
|
-
data:
|
|
12
|
+
data: a,
|
|
13
13
|
compareData: r,
|
|
14
14
|
compareLabels: m,
|
|
15
15
|
maxValue: p,
|
|
16
|
-
colorMap:
|
|
16
|
+
colorMap: d,
|
|
17
17
|
defaultExpanded: E = !0,
|
|
18
18
|
nonCollapsible: G,
|
|
19
19
|
isLoading: K,
|
|
@@ -25,7 +25,7 @@ const k = ({
|
|
|
25
25
|
barDescriptions: C,
|
|
26
26
|
className: T
|
|
27
27
|
}) => {
|
|
28
|
-
const W = Object.entries(
|
|
28
|
+
const W = Object.entries(a), q = c ? i("text-secondary", N) : N, j = m ? "dial-tiny-text text-secondary" : void 0, z = h ? /* @__PURE__ */ t(x, { tooltip: h, children: g }) : g, H = r ? [.../* @__PURE__ */ new Set([...Object.keys(a), ...Object.keys(r)])] : [], y = "cursor-pointer rounded-xs text-left focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-primary", F = "group flex flex-col gap-1.5", I = i(
|
|
29
29
|
"flex flex-col gap-1.5 pl-2",
|
|
30
30
|
o && "group-hover:bg-accent-primary-alpha group-focus-visible:bg-accent-primary-alpha",
|
|
31
31
|
v
|
|
@@ -41,18 +41,18 @@ const k = ({
|
|
|
41
41
|
children: /* @__PURE__ */ t(
|
|
42
42
|
"div",
|
|
43
43
|
{
|
|
44
|
-
className:
|
|
44
|
+
className: i(
|
|
45
45
|
"flex flex-col",
|
|
46
46
|
r ? "gap-4" : c ? "gap-2" : "gap-3"
|
|
47
47
|
),
|
|
48
48
|
children: K ? /* @__PURE__ */ t(U, { fullWidth: !1, className: "self-center" }) : r ? H.map((e) => {
|
|
49
|
-
const l = e in
|
|
49
|
+
const l = e in a ? a[e] : null, n = e in r ? r[e] : null, s = typeof l == "number" && typeof n == "number" ? parseFloat((n - l).toFixed(3)) : null, L = s != null && s !== 0, A = L && s > 0, D = L ? A ? `+${s}` : String(s) : null, O = C?.[e], $ = /* @__PURE__ */ t("span", { className: "dial-small-text text-secondary", children: e }), w = /* @__PURE__ */ f(J, { children: [
|
|
50
50
|
/* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: [
|
|
51
|
-
O ? /* @__PURE__ */ t(
|
|
51
|
+
O ? /* @__PURE__ */ t(x, { tooltip: O, children: $ }) : $,
|
|
52
52
|
D != null && /* @__PURE__ */ t(
|
|
53
53
|
"span",
|
|
54
54
|
{
|
|
55
|
-
className:
|
|
55
|
+
className: i(
|
|
56
56
|
"dial-tiny-semi-text rounded-[120px] border border-transparent px-2",
|
|
57
57
|
A ? "bg-success text-success" : "bg-error text-error"
|
|
58
58
|
),
|
|
@@ -67,7 +67,7 @@ const k = ({
|
|
|
67
67
|
title: m?.[0],
|
|
68
68
|
value: l,
|
|
69
69
|
maxValue: p,
|
|
70
|
-
colorMap:
|
|
70
|
+
colorMap: d,
|
|
71
71
|
inline: c,
|
|
72
72
|
titleClassName: j,
|
|
73
73
|
ariaLabel: e
|
|
@@ -79,7 +79,7 @@ const k = ({
|
|
|
79
79
|
title: m?.[1],
|
|
80
80
|
value: n,
|
|
81
81
|
maxValue: p,
|
|
82
|
-
colorMap:
|
|
82
|
+
colorMap: d,
|
|
83
83
|
inline: c,
|
|
84
84
|
titleClassName: j,
|
|
85
85
|
ariaLabel: `${e} compare`
|
|
@@ -92,7 +92,7 @@ const k = ({
|
|
|
92
92
|
{
|
|
93
93
|
type: "button",
|
|
94
94
|
onClick: () => o(e, l),
|
|
95
|
-
className:
|
|
95
|
+
className: i(
|
|
96
96
|
F,
|
|
97
97
|
y
|
|
98
98
|
),
|
|
@@ -107,13 +107,13 @@ const k = ({
|
|
|
107
107
|
title: e,
|
|
108
108
|
value: l,
|
|
109
109
|
maxValue: p,
|
|
110
|
-
colorMap:
|
|
110
|
+
colorMap: d,
|
|
111
111
|
inline: c,
|
|
112
112
|
titleClassName: q,
|
|
113
113
|
valueClassName: P,
|
|
114
114
|
className: v
|
|
115
115
|
}
|
|
116
|
-
),
|
|
116
|
+
), u = o ? /* @__PURE__ */ t(
|
|
117
117
|
"button",
|
|
118
118
|
{
|
|
119
119
|
type: "button",
|
|
@@ -123,14 +123,14 @@ const k = ({
|
|
|
123
123
|
}
|
|
124
124
|
) : n, s = C?.[e];
|
|
125
125
|
return s ? /* @__PURE__ */ t(
|
|
126
|
-
|
|
126
|
+
x,
|
|
127
127
|
{
|
|
128
128
|
tooltip: s,
|
|
129
129
|
triggerClassName: "flex flex-col",
|
|
130
|
-
children:
|
|
130
|
+
children: u
|
|
131
131
|
},
|
|
132
132
|
e
|
|
133
|
-
) : /* @__PURE__ */ t(Q, { children:
|
|
133
|
+
) : /* @__PURE__ */ t(Q, { children: u }, e);
|
|
134
134
|
})
|
|
135
135
|
}
|
|
136
136
|
)
|
|
@@ -32,16 +32,16 @@ const u = 128, O = (s, i) => {
|
|
|
32
32
|
const k = A(i, l), y = h ? A(h, l) : void 0, c = i.length, p = h?.length ?? 0, N = Math.max(c, p), b = B(N), m = S(N), v = (e) => e.map((r) => ({
|
|
33
33
|
...r,
|
|
34
34
|
ratio: b > 0 ? r.count / b : 0
|
|
35
|
-
})), f = v(k), $ = y ? v(y) : void 0, C = (e, r, a,
|
|
35
|
+
})), f = v(k), $ = y ? v(y) : void 0, C = (e, r, a, x) => {
|
|
36
36
|
if (e.count === 0)
|
|
37
37
|
return /* @__PURE__ */ t("div", { className: "flex h-full flex-1 items-end", "aria-hidden": "true", children: /* @__PURE__ */ t(
|
|
38
38
|
"div",
|
|
39
39
|
{
|
|
40
|
-
className: "min-h-2 w-full rounded-
|
|
40
|
+
className: "min-h-2 w-full rounded-xs",
|
|
41
41
|
style: { height: `${e.ratio * 100}%` }
|
|
42
42
|
}
|
|
43
43
|
) });
|
|
44
|
-
const
|
|
44
|
+
const g = x ? {
|
|
45
45
|
backgroundImage: `repeating-linear-gradient(135deg, ${e.color} 0px, ${e.color} 1px, transparent 1px, transparent 4px)`,
|
|
46
46
|
borderColor: e.color
|
|
47
47
|
} : { backgroundColor: e.color };
|
|
@@ -56,8 +56,8 @@ const u = 128, O = (s, i) => {
|
|
|
56
56
|
{
|
|
57
57
|
role: "img",
|
|
58
58
|
"aria-label": a,
|
|
59
|
-
className: "flex min-h-2 w-full items-center justify-center rounded-
|
|
60
|
-
style: { height: `${e.ratio * 100}%`, ...
|
|
59
|
+
className: "flex min-h-2 w-full items-center justify-center rounded-xs border border-transparent",
|
|
60
|
+
style: { height: `${e.ratio * 100}%`, ...g },
|
|
61
61
|
children: d && /* @__PURE__ */ t("span", { className: "dial-tiny-semi-text text-primary", children: e.count })
|
|
62
62
|
}
|
|
63
63
|
)
|
|
@@ -111,7 +111,7 @@ const u = 128, O = (s, i) => {
|
|
|
111
111
|
className: "relative flex items-end gap-1",
|
|
112
112
|
style: { height: u },
|
|
113
113
|
children: $ ? f.map((e, r) => {
|
|
114
|
-
const a = $[r],
|
|
114
|
+
const a = $[r], x = `${e.count} out of ${c} ${o}`, g = `${a.count} out of ${p} ${o}`;
|
|
115
115
|
return /* @__PURE__ */ n("div", { className: "flex h-full flex-1 items-end", children: [
|
|
116
116
|
C(
|
|
117
117
|
e,
|
|
@@ -122,7 +122,7 @@ const u = 128, O = (s, i) => {
|
|
|
122
122
|
o,
|
|
123
123
|
e
|
|
124
124
|
),
|
|
125
|
-
|
|
125
|
+
x,
|
|
126
126
|
!0
|
|
127
127
|
),
|
|
128
128
|
C(
|
|
@@ -134,7 +134,7 @@ const u = 128, O = (s, i) => {
|
|
|
134
134
|
o,
|
|
135
135
|
a
|
|
136
136
|
),
|
|
137
|
-
|
|
137
|
+
g,
|
|
138
138
|
!1
|
|
139
139
|
)
|
|
140
140
|
] }, r);
|
|
@@ -148,7 +148,7 @@ const u = 128, O = (s, i) => {
|
|
|
148
148
|
children: /* @__PURE__ */ t(
|
|
149
149
|
"div",
|
|
150
150
|
{
|
|
151
|
-
className: "min-h-2 w-full rounded-
|
|
151
|
+
className: "min-h-2 w-full rounded-xs",
|
|
152
152
|
style: { height: `${e.ratio * 100}%` }
|
|
153
153
|
}
|
|
154
154
|
)
|
|
@@ -166,7 +166,7 @@ const u = 128, O = (s, i) => {
|
|
|
166
166
|
role: "img",
|
|
167
167
|
"aria-label": a,
|
|
168
168
|
className: H(
|
|
169
|
-
"flex min-h-2 w-full items-center justify-center rounded-
|
|
169
|
+
"flex min-h-2 w-full items-center justify-center rounded-xs border",
|
|
170
170
|
"border-transparent"
|
|
171
171
|
),
|
|
172
172
|
style: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as h, jsx as
|
|
1
|
+
import { jsxs as h, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { IconMinus as y, IconCheck as N } from "@tabler/icons-react";
|
|
3
3
|
import m from "classnames";
|
|
4
4
|
import { useCallback as C } from "react";
|
|
5
5
|
import { BASE_ICON_PROPS as l } from "../../constants/icon.js";
|
|
6
6
|
import { DialEllipsisTooltip as k } from "../EllipsisTooltip/EllipsisTooltip.js";
|
|
7
7
|
import { ariaDescription as g } from "./constants.js";
|
|
8
|
-
const
|
|
8
|
+
const O = ({
|
|
9
9
|
label: r,
|
|
10
10
|
id: e,
|
|
11
11
|
checked: o,
|
|
12
|
-
indeterminate:
|
|
12
|
+
indeterminate: n,
|
|
13
13
|
disabled: s,
|
|
14
14
|
ariaLabel: f,
|
|
15
15
|
onChange: t,
|
|
@@ -23,13 +23,13 @@ const S = ({
|
|
|
23
23
|
[t, e]
|
|
24
24
|
), x = m(
|
|
25
25
|
"flex flex-row items-center cursor-pointer text-accent-primary small-medium min-w-0",
|
|
26
|
-
`${o ||
|
|
26
|
+
`${o || n ? "" : 'before:content-[""] before:inline-block before:size-[18px] before:border before:border-hover before:rounded'}`,
|
|
27
27
|
s ? "pointer-events-none text-secondary before:border-icon-secondary before:bg-layer-4" : "",
|
|
28
28
|
p
|
|
29
29
|
), c = m(
|
|
30
30
|
"border rounded",
|
|
31
31
|
s ? "bg-layer-4 border-icon-secondary" : ""
|
|
32
|
-
), d = () =>
|
|
32
|
+
), d = () => n ? /* @__PURE__ */ i(y, { className: c, ...l }) : o ? /* @__PURE__ */ i(N, { className: c, ...l }) : null;
|
|
33
33
|
return /* @__PURE__ */ h(
|
|
34
34
|
"label",
|
|
35
35
|
{
|
|
@@ -39,8 +39,8 @@ const S = ({
|
|
|
39
39
|
"aria-description": a["aria-description"] || g,
|
|
40
40
|
children: [
|
|
41
41
|
d(),
|
|
42
|
-
r && (typeof r == "string" ? /* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
42
|
+
r && (typeof r == "string" ? /* @__PURE__ */ i(k, { text: r, className: "ml-2 text-primary" }) : r),
|
|
43
|
+
/* @__PURE__ */ i(
|
|
44
44
|
"input",
|
|
45
45
|
{
|
|
46
46
|
type: "checkbox",
|
|
@@ -49,7 +49,7 @@ const S = ({
|
|
|
49
49
|
onChange: b,
|
|
50
50
|
id: e,
|
|
51
51
|
checked: o,
|
|
52
|
-
"aria-checked":
|
|
52
|
+
"aria-checked": n ? "mixed" : o,
|
|
53
53
|
"aria-disabled": s || void 0,
|
|
54
54
|
"aria-label": r ? void 0 : f,
|
|
55
55
|
className: "invisible size-0"
|
|
@@ -60,5 +60,5 @@ const S = ({
|
|
|
60
60
|
);
|
|
61
61
|
};
|
|
62
62
|
export {
|
|
63
|
-
|
|
63
|
+
O as DialCheckbox
|
|
64
64
|
};
|
|
@@ -6,10 +6,10 @@ const i = o(
|
|
|
6
6
|
"flex items-center gap-2 align-middle",
|
|
7
7
|
"h-auto px-0 bg-transparent border-0"
|
|
8
8
|
), m = o(
|
|
9
|
-
"z-floating overflow-auto rounded bg-layer-0 text-primary shadow focus-visible:outline-
|
|
9
|
+
"z-floating overflow-auto rounded bg-layer-0 text-primary shadow focus-visible:outline-hidden"
|
|
10
10
|
), l = o(
|
|
11
11
|
"flex w-full cursor-pointer items-center gap-3",
|
|
12
|
-
"focus-visible:border-none focus-visible:outline-
|
|
12
|
+
"focus-visible:border-none focus-visible:outline-hidden",
|
|
13
13
|
"hover:bg-accent-primary-alpha px-3",
|
|
14
14
|
"dial-small-text h-[34px] rounded text-primary",
|
|
15
15
|
s.menuItem
|
|
@@ -13,8 +13,8 @@ const F = ({
|
|
|
13
13
|
size: n = r.Standard,
|
|
14
14
|
disabled: a = !1,
|
|
15
15
|
className: u,
|
|
16
|
-
buttonClassName:
|
|
17
|
-
iconClassName:
|
|
16
|
+
buttonClassName: h,
|
|
17
|
+
iconClassName: x,
|
|
18
18
|
caretIcon: y = /* @__PURE__ */ e(O, { size: _.SM }),
|
|
19
19
|
showCaret: t = !0,
|
|
20
20
|
placement: g = "bottom-start",
|
|
@@ -51,10 +51,10 @@ const F = ({
|
|
|
51
51
|
className: o(
|
|
52
52
|
"group flex items-center justify-center rounded border border-transparent bg-layer-4 text-primary",
|
|
53
53
|
"enabled:hover:bg-accent-primary-alpha enabled:active:bg-controls-accent-primary-alpha-active",
|
|
54
|
-
"focus-visible:border-focus focus-visible:outline-
|
|
54
|
+
"focus-visible:border-focus focus-visible:outline-hidden disabled:cursor-not-allowed disabled:text-controls-secondary-disable disabled:opacity-75",
|
|
55
55
|
i ? "h-8 px-2" : "h-10 px-2",
|
|
56
56
|
t ? void 0 : w,
|
|
57
|
-
|
|
57
|
+
h
|
|
58
58
|
),
|
|
59
59
|
children: [
|
|
60
60
|
/* @__PURE__ */ e(
|
|
@@ -65,7 +65,7 @@ const F = ({
|
|
|
65
65
|
"flex items-center justify-center text-inherit",
|
|
66
66
|
N[n],
|
|
67
67
|
t && "-mr-2",
|
|
68
|
-
|
|
68
|
+
x,
|
|
69
69
|
p.dropdownIcon
|
|
70
70
|
)
|
|
71
71
|
}
|
|
@@ -8,12 +8,12 @@ import { DialEllipsisTooltip as De } from "../EllipsisTooltip/EllipsisTooltip.js
|
|
|
8
8
|
import { RADIO_BUTTON_COL_DEF as Ae, CHECKBOX_COL_DEF as Te } from "./renderers/constants.js";
|
|
9
9
|
import { DialNoDataContent as Ge } from "../NoDataContent/NoDataContent.js";
|
|
10
10
|
import { DialRadioButton as ve } from "../RadioButton/RadioButton.js";
|
|
11
|
-
import { GridSelectionMode as
|
|
11
|
+
import { GridSelectionMode as z } from "../../models/selection-mode.js";
|
|
12
12
|
import { DropdownTrigger as w } from "../../types/dropdown.js";
|
|
13
13
|
import { IconZoomCancel as Oe } from "@tabler/icons-react";
|
|
14
|
-
import { GRID_THEME_COLORS as
|
|
14
|
+
import { GRID_THEME_COLORS as x, SelectionEventSourceType as p, checkboxClass as I, ROW_HEIGHT as ee, gridBaseClassName as ze } from "./constants.js";
|
|
15
15
|
import { ariaDescription as re } from "../Checkbox/constants.js";
|
|
16
|
-
import { useIsMobileScreen as
|
|
16
|
+
import { useIsMobileScreen as xe } from "../../hooks/use-is-mobile-screen.js";
|
|
17
17
|
import { useIsTabletScreen as _e } from "../../hooks/use-is-tablet-screen.js";
|
|
18
18
|
import { debounceFn as ke } from "../../utils/debounce.js";
|
|
19
19
|
import { registerAgGridModulesOnce as He } from "../../utils/grid-registration.js";
|
|
@@ -43,12 +43,12 @@ const or = ({
|
|
|
43
43
|
selectionMode: d
|
|
44
44
|
}) => {
|
|
45
45
|
He();
|
|
46
|
-
const [t, se] = ye(), ae = Ee(), g =
|
|
46
|
+
const [t, se] = ye(), ae = Ee(), g = xe(), b = _e(), A = Y(/* @__PURE__ */ new Set()), U = Y(
|
|
47
47
|
void 0
|
|
48
48
|
), le = h(
|
|
49
49
|
() => ({
|
|
50
|
-
...
|
|
51
|
-
oddRowBackgroundColor: H ?
|
|
50
|
+
...x,
|
|
51
|
+
oddRowBackgroundColor: H ? x.oddRowBackgroundColor : x.backgroundColor,
|
|
52
52
|
wrapperBorder: $
|
|
53
53
|
}),
|
|
54
54
|
[H, $]
|
|
@@ -122,12 +122,12 @@ const or = ({
|
|
|
122
122
|
const e = "dial-row-select", r = "dial-row-select-visible";
|
|
123
123
|
return g || b || n && n.size > 0 ? `${e} ${r}` : !n || n.size === 0 ? e : `${e} ${r}`;
|
|
124
124
|
}, [g, b, n]), K = l(() => g || b ? S() : !n || n.size === 0 ? "dial-row-not-select-header" : S(), [S, g, b, n]), fe = h(() => {
|
|
125
|
-
if (d ===
|
|
125
|
+
if (d === z.SINGLE)
|
|
126
126
|
return {
|
|
127
127
|
...Ae,
|
|
128
128
|
cellRenderer: q
|
|
129
129
|
};
|
|
130
|
-
if (d ===
|
|
130
|
+
if (d === z.MULTIPLE)
|
|
131
131
|
return {
|
|
132
132
|
...Te,
|
|
133
133
|
headerClass: () => K(),
|
|
@@ -165,7 +165,7 @@ const or = ({
|
|
|
165
165
|
anchorToMouse: !0,
|
|
166
166
|
matchReferenceWidth: !0,
|
|
167
167
|
className: Q(
|
|
168
|
-
"
|
|
168
|
+
"size-full",
|
|
169
169
|
Z && "!cursor-not-allowed opacity-75"
|
|
170
170
|
),
|
|
171
171
|
disabled: Z && !N,
|
|
@@ -240,7 +240,7 @@ const or = ({
|
|
|
240
240
|
), Se = h(() => {
|
|
241
241
|
if (d)
|
|
242
242
|
return {
|
|
243
|
-
mode: d ===
|
|
243
|
+
mode: d === z.SINGLE ? "singleRow" : "multiRow",
|
|
244
244
|
isRowSelectable: (e) => {
|
|
245
245
|
const r = e.data ? i(e.data) : null;
|
|
246
246
|
return r ? !c?.has(r) : !0;
|
|
@@ -281,7 +281,7 @@ const or = ({
|
|
|
281
281
|
"div",
|
|
282
282
|
{
|
|
283
283
|
className: Q(
|
|
284
|
-
|
|
284
|
+
ze,
|
|
285
285
|
te,
|
|
286
286
|
d && "with-selection-column",
|
|
287
287
|
ie && "dial-without-header-borders"
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { ButtonAppearance as
|
|
2
|
+
import { ButtonAppearance as f } from "../../types/button.js";
|
|
3
3
|
import { getButtonClassNames as b } from "../Button/utils.js";
|
|
4
|
-
import { DialTooltip as
|
|
4
|
+
import { DialTooltip as d } from "../Tooltip/Tooltip.js";
|
|
5
5
|
import { mergeClasses as p } from "../../utils/merge-classes.js";
|
|
6
6
|
import { resolveAccessibleName as x } from "../../utils/accessible-name.js";
|
|
7
7
|
import { ElementSize as a } from "../../types/size.js";
|
|
8
8
|
const v = ({
|
|
9
9
|
variant: t,
|
|
10
|
-
appearance: n =
|
|
10
|
+
appearance: n = f.Solid,
|
|
11
11
|
size: r = a.Standard,
|
|
12
12
|
className: s,
|
|
13
13
|
icon: m,
|
|
@@ -15,17 +15,17 @@ const v = ({
|
|
|
15
15
|
type: c = "button",
|
|
16
16
|
...e
|
|
17
17
|
}) => {
|
|
18
|
-
const
|
|
18
|
+
const u = p(
|
|
19
19
|
t && b(t, n),
|
|
20
20
|
r === a.Small ? "h-[24px] w-[24px]" : "h-[40px] w-[40px] dial-kit-enhanced-target",
|
|
21
|
-
"dial-icon-button disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-focus outline-offset-0
|
|
21
|
+
"dial-icon-button disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-focus outline-offset-0",
|
|
22
22
|
s
|
|
23
23
|
), l = /* @__PURE__ */ i(
|
|
24
24
|
"button",
|
|
25
25
|
{
|
|
26
26
|
...e,
|
|
27
27
|
type: c,
|
|
28
|
-
className:
|
|
28
|
+
className: u,
|
|
29
29
|
"aria-label": x(
|
|
30
30
|
e["aria-label"],
|
|
31
31
|
o?.tooltip
|
|
@@ -33,7 +33,7 @@ const v = ({
|
|
|
33
33
|
children: m
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
|
-
return o ? /* @__PURE__ */ i(
|
|
36
|
+
return o ? /* @__PURE__ */ i(d, { ...o, children: l }) : l;
|
|
37
37
|
};
|
|
38
38
|
export {
|
|
39
39
|
v as DialIconButton
|
|
@@ -5,7 +5,7 @@ import { useCallback as M } from "react";
|
|
|
5
5
|
import { DialTooltip as P } from "../Tooltip/Tooltip.js";
|
|
6
6
|
import { DialErrorText as N } from "../CaptionText/CaptionText.js";
|
|
7
7
|
import { DialAutocompleteInputValue as _ } from "../AutocompleteInput/AutocompleteInputValue.js";
|
|
8
|
-
import
|
|
8
|
+
import d from "../../assets/icons/open-popup.svg.js";
|
|
9
9
|
import { DialIcon as r } from "../Icon/Icon.js";
|
|
10
10
|
import { BASE_ICON_SIZE as a } from "../../constants/icon.js";
|
|
11
11
|
const U = ({
|
|
@@ -13,7 +13,7 @@ const U = ({
|
|
|
13
13
|
open: k,
|
|
14
14
|
disabled: l = !1,
|
|
15
15
|
selectedValue: t,
|
|
16
|
-
valueClassName:
|
|
16
|
+
valueClassName: u,
|
|
17
17
|
inputClassName: f,
|
|
18
18
|
onOpen: h,
|
|
19
19
|
elementId: x,
|
|
@@ -56,7 +56,7 @@ const U = ({
|
|
|
56
56
|
r,
|
|
57
57
|
{
|
|
58
58
|
icon: /* @__PURE__ */ i(
|
|
59
|
-
|
|
59
|
+
d,
|
|
60
60
|
{
|
|
61
61
|
role: "img",
|
|
62
62
|
width: a,
|
|
@@ -85,8 +85,8 @@ const U = ({
|
|
|
85
85
|
{
|
|
86
86
|
type: "text",
|
|
87
87
|
className: c(
|
|
88
|
-
"flex-1 min-w-0 bg-transparent outline-
|
|
89
|
-
|
|
88
|
+
"flex-1 min-w-0 bg-transparent outline-hidden border-none p-0 dial-small-text text-primary placeholder:text-secondary",
|
|
89
|
+
u
|
|
90
90
|
),
|
|
91
91
|
value: typeof t == "string" ? t : "",
|
|
92
92
|
placeholder: o || w,
|
|
@@ -108,7 +108,7 @@ const U = ({
|
|
|
108
108
|
r,
|
|
109
109
|
{
|
|
110
110
|
icon: /* @__PURE__ */ i(
|
|
111
|
-
|
|
111
|
+
d,
|
|
112
112
|
{
|
|
113
113
|
role: "img",
|
|
114
114
|
width: a,
|
|
@@ -144,13 +144,13 @@ const U = ({
|
|
|
144
144
|
children: [
|
|
145
145
|
/* @__PURE__ */ e("div", { className: "flex flex-row items-center gap-x-2 flex-1 min-w-0", children: [
|
|
146
146
|
n && /* @__PURE__ */ i(r, { icon: n }),
|
|
147
|
-
/* @__PURE__ */ i(P, { tooltip: p == null ? void 0 : String(p), children: p || !o ? /* @__PURE__ */ i("span", { className:
|
|
147
|
+
/* @__PURE__ */ i(P, { tooltip: p == null ? void 0 : String(p), children: p || !o ? /* @__PURE__ */ i("span", { className: u, children: p }) : /* @__PURE__ */ i("span", { className: "text-secondary", children: o }) })
|
|
148
148
|
] }),
|
|
149
149
|
!l && /* @__PURE__ */ i("div", { className: "shrink-0", children: /* @__PURE__ */ i(
|
|
150
150
|
r,
|
|
151
151
|
{
|
|
152
152
|
icon: /* @__PURE__ */ i(
|
|
153
|
-
|
|
153
|
+
d,
|
|
154
154
|
{
|
|
155
155
|
role: "img",
|
|
156
156
|
width: a,
|