@neo4j-ndl/react 5.7.1 → 5.7.3

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.
@@ -4,7 +4,7 @@ Object.defineProperties(exports, {
4
4
  [Symbol.toStringTag]: { value: "Module" }
5
5
  });
6
6
  const require_runtime = require("../_virtual/_rolldown/runtime.js");
7
- const require_icons_generated_heroIcons_ChevronDownIconOutline = require("../icons/generated/heroIcons/ChevronDownIconOutline.js");
7
+ const require_icons_generated_custom_ChevronDownSmallOutline = require("../icons/generated/custom/ChevronDownSmallOutline.js");
8
8
  const require_tooltip_Tooltip = require("../tooltip/Tooltip.js");
9
9
  const require_objectWithoutProperties = require("../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/objectWithoutProperties.js");
10
10
  const require_objectSpread2 = require("../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/objectSpread2.js");
@@ -166,7 +166,7 @@ const BreadcrumbsSelectButton = (_ref4) => {
166
166
  onClick,
167
167
  "aria-label": ariaLabel,
168
168
  "aria-pressed": isActive
169
- }, htmlAttributes), restProps), {}, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icons_generated_heroIcons_ChevronDownIconOutline.ChevronDownIconOutline, { className: "ndl-breadcrumbs-chevron" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
169
+ }, htmlAttributes), restProps), {}, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icons_generated_custom_ChevronDownSmallOutline.default, { className: "ndl-breadcrumbs-chevron" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
170
170
  className: "ndl-breadcrumbs-button-content",
171
171
  children
172
172
  })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumbs.js","names":["classNames","createContext","useContext","useState","useRef","Tooltip","ChevronDownIconOutline"],"sources":["../../../src/breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport classNames from 'classnames';\nimport type React from 'react';\nimport { createContext, useContext, useRef, useState } from 'react';\n\nimport {\n type CommonProps,\n type HtmlAttributes,\n type PolymorphicCommonProps,\n} from '../_common/types';\nimport { ChevronDownIconOutline } from '../icons/generated/heroIcons/ChevronDownIconOutline';\nimport { Tooltip } from '../tooltip';\n\ntype BreadcrumbsProps = {\n /** Content to be rendered. Should only be `Breadcrumbs.Item`. */\n children?: React.ReactNode;\n /** Additional classnames. */\n shouldWrap?: boolean;\n};\n\nconst BreadcrumbsComponent = ({\n children,\n className,\n htmlAttributes,\n style,\n ref,\n shouldWrap = true,\n ...restProps\n}: CommonProps<'nav', BreadcrumbsProps>) => {\n const classes = classNames('ndl-breadcrumbs', className);\n const listClasses = classNames('ndl-breadcrumbs-list', {\n 'ndl-breadcrumbs-wrap': shouldWrap,\n });\n return (\n <nav\n aria-label=\"Breadcrumb\"\n ref={ref}\n className={classes}\n style={style}\n {...restProps}\n {...htmlAttributes}\n >\n <ol className={listClasses}>{children}</ol>\n </nav>\n );\n};\n\ntype BreadcrumbsItemContextType = {\n isInBreadcrumbsItem: boolean;\n};\n\nconst BreadcrumbsItemContext = createContext<BreadcrumbsItemContextType | null>(\n null,\n);\n\nexport const useBreadcrumbsItemContext = (): BreadcrumbsItemContextType => {\n const context = useContext(BreadcrumbsItemContext);\n if (!context) {\n throw new Error('This component must be used within a <Breadcrumbs.Item>');\n }\n\n return context;\n};\n\ntype BreadcrumbsItemProps = {\n /** Content to be rendered. Should be either `Breadcrumbs.Link`, `Breadcrumbs.Button` or `Breadcrumbs.SelectButton`. */\n children?: React.ReactNode;\n};\n\nconst BreadcrumbsItem = ({\n children,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: CommonProps<'li', BreadcrumbsItemProps>) => {\n const classes = classNames('ndl-breadcrumbs-item', className);\n\n return (\n <BreadcrumbsItemContext.Provider value={{ isInBreadcrumbsItem: true }}>\n <li\n ref={ref}\n className={classes}\n style={style}\n {...htmlAttributes}\n {...restProps}\n >\n <div className=\"ndl-breadcrumbs-item-inner\">{children}</div>\n </li>\n </BreadcrumbsItemContext.Provider>\n );\n};\n\ntype InteractiveBreadcrumbProps = {\n /** Content to be rendered. */\n children?: React.ReactNode;\n} & (\n | {\n as: 'button';\n /**\n * Event handler for when the button is clicked. Only applicable if `as` is `'button'`.\n */\n onClick?: (\n event: React.MouseEvent<HTMLButtonElement, MouseEvent>,\n ) => void;\n }\n | {\n as: 'a';\n /**\n * The href of the link. Only applicable if `as` is `'a'`.\n */\n href: HtmlAttributes<'a'>['href'];\n /**\n * The target of the link. Only applicable if `as` is `'a'`.\n */\n target?: HtmlAttributes<'a'>['target'];\n }\n | {\n /**\n * What HTML element to render the root element as.\n */\n as?: React.ElementType;\n }\n);\n\ntype BreadcrumbsButtonProps = InteractiveBreadcrumbProps & {\n /** Leading element to be rendered. */\n leadingElement?: React.ReactNode;\n /** Trailing element to be rendered. */\n trailingElement?: React.ReactNode;\n};\n\nconst BreadcrumbsButton = <T extends React.ElementType = 'button'>({\n children,\n as,\n className,\n style,\n htmlAttributes,\n ref,\n leadingElement,\n trailingElement,\n ...restProps\n}: PolymorphicCommonProps<T, BreadcrumbsButtonProps>) => {\n useBreadcrumbsItemContext();\n\n const [isTooltipOpen, setIsTooltipOpen] = useState(false);\n const contentRef = useRef<HTMLDivElement>(null);\n const Component: React.ElementType = as ?? 'button';\n\n const classes = classNames(\n 'ndl-breadcrumbs-button ndl-breadcrumbs-sibling-hover',\n className,\n );\n\n return (\n <Tooltip\n type=\"simple\"\n isOpen={isTooltipOpen}\n onOpenChange={(isOpen) => {\n if (isOpen) {\n const isTruncated =\n contentRef.current?.scrollWidth &&\n contentRef.current?.clientWidth &&\n contentRef.current.scrollWidth > contentRef.current.clientWidth;\n const isVisible =\n contentRef.current?.offsetWidth &&\n contentRef.current?.offsetHeight &&\n contentRef.current.offsetWidth > 0 &&\n contentRef.current.offsetHeight > 0;\n setIsTooltipOpen(isTruncated || !isVisible);\n } else {\n setIsTooltipOpen(false);\n }\n }}\n >\n <Tooltip.Trigger hasButtonWrapper>\n <Component\n ref={ref}\n className={classes}\n style={style}\n {...htmlAttributes}\n {...restProps}\n >\n {Boolean(leadingElement) && (\n <div className=\"ndl-breadcrumbs-button-leading-element\">\n {leadingElement}\n </div>\n )}\n <div className=\"ndl-breadcrumbs-button-content\" ref={contentRef}>\n {children}\n </div>\n {Boolean(trailingElement) && (\n <div className=\"ndl-breadcrumbs-button-trailing-element\">\n {trailingElement}\n </div>\n )}\n </Component>\n </Tooltip.Trigger>\n <Tooltip.Content>{children}</Tooltip.Content>\n </Tooltip>\n );\n};\n\ntype BreadcrumbsSelectButtonProps = {\n /** Event handler for when the button is clicked. Should be used to open a `Menu`. */\n onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n /** Aria label needed for accessibility. */\n ariaLabel: string;\n /** Content to be rendered. */\n children?: React.ReactNode;\n /** Active - used when a connected menu is open */\n isActive?: boolean;\n};\n\nconst BreadcrumbsSelectButton = ({\n onClick,\n children,\n isActive,\n className,\n style,\n htmlAttributes,\n ariaLabel,\n ref,\n ...restProps\n}: CommonProps<'button', BreadcrumbsSelectButtonProps>) => {\n useBreadcrumbsItemContext();\n\n const classes = classNames(\n 'ndl-breadcrumbs-button ndl-breadcrumbs-sibling-hover ndl-breadcrumbs-select',\n className,\n {\n 'ndl-active': Boolean(isActive),\n },\n );\n\n return (\n <button\n type=\"button\"\n ref={ref}\n className={classes}\n style={style}\n onClick={onClick}\n aria-label={ariaLabel}\n aria-pressed={isActive}\n {...htmlAttributes}\n {...restProps}\n >\n <ChevronDownIconOutline className=\"ndl-breadcrumbs-chevron\" />\n <div className=\"ndl-breadcrumbs-button-content\">{children}</div>\n </button>\n );\n};\n\ntype BreadcrumbsLinkProps = InteractiveBreadcrumbProps & {\n /**\n * Whether the link is the current item. Use `'page'` if it indicates the current page and `'step'` for steps (in a multi-step wizard for example).\n * @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current\n */\n ariaCurrent?: React.AriaAttributes['aria-current'];\n};\n\nconst BreadcrumbsLink = <T extends React.ElementType = 'a'>({\n children,\n as,\n className,\n style,\n htmlAttributes,\n ariaCurrent = false,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, BreadcrumbsLinkProps>) => {\n useBreadcrumbsItemContext();\n\n const Component: React.ElementType = as ?? 'a';\n\n const classes = classNames(\n 'ndl-breadcrumbs-link',\n {\n 'ndl-breadcrumbs-link-current': Boolean(ariaCurrent),\n },\n className,\n );\n\n return (\n <Component\n ref={ref}\n className={classes}\n style={style}\n aria-current={ariaCurrent}\n {...restProps}\n {...htmlAttributes}\n >\n {children}\n </Component>\n );\n};\n\nconst Breadcrumbs = Object.assign(BreadcrumbsComponent, {\n Button: BreadcrumbsButton,\n Item: BreadcrumbsItem,\n Link: BreadcrumbsLink,\n SelectButton: BreadcrumbsSelectButton,\n});\n\nexport { Breadcrumbs };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCE;CACA;CACA;CACA;CACA;CACA;;;CA4CA;CACA;CACA;CACA;CACA;;;CA4DA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;CA2EA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;CAwCA;CACA;CACA;CACA;CACA;CACA;CACA;;AAzPF,MAAM,wBAAwB,SAQc;CARd,IAAA,EAC5B,UACA,WACA,gBACA,OACA,KACA,a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ACE,gCAAgC,QAAQ,WAAW,EACrD,GACA,SACF;CAEA,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAA,sBAAA,QAAA,sBAAA,QAAA,sBAAA,QAAA;EACM;EACL,WAAW;EACJ;EACP,gBAAc;CACV,GAAA,SAAA,GACA,cAAA,GAAA,CAAA,GAAA,EAEH,SAAA,CACQ,CAAA;AAEf;AAEA,MAAM,cAAc,OAAO,OAAO,sBAAsB;CACtD,QAAQ;CACR,MAAM;CACN,MAAM;CACN,cAAc;AAChB,CAAC"}
1
+ {"version":3,"file":"Breadcrumbs.js","names":["classNames","createContext","useContext","useState","useRef","Tooltip","ChevronDownSmallOutlineIcon"],"sources":["../../../src/breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport classNames from 'classnames';\nimport type React from 'react';\nimport { createContext, useContext, useRef, useState } from 'react';\n\nimport {\n type CommonProps,\n type HtmlAttributes,\n type PolymorphicCommonProps,\n} from '../_common/types';\nimport { ChevronDownSmallOutlineIcon } from '../icons/generated/custom';\nimport { Tooltip } from '../tooltip';\n\ntype BreadcrumbsProps = {\n /** Content to be rendered. Should only be `Breadcrumbs.Item`. */\n children?: React.ReactNode;\n /** Additional classnames. */\n shouldWrap?: boolean;\n};\n\nconst BreadcrumbsComponent = ({\n children,\n className,\n htmlAttributes,\n style,\n ref,\n shouldWrap = true,\n ...restProps\n}: CommonProps<'nav', BreadcrumbsProps>) => {\n const classes = classNames('ndl-breadcrumbs', className);\n const listClasses = classNames('ndl-breadcrumbs-list', {\n 'ndl-breadcrumbs-wrap': shouldWrap,\n });\n return (\n <nav\n aria-label=\"Breadcrumb\"\n ref={ref}\n className={classes}\n style={style}\n {...restProps}\n {...htmlAttributes}\n >\n <ol className={listClasses}>{children}</ol>\n </nav>\n );\n};\n\ntype BreadcrumbsItemContextType = {\n isInBreadcrumbsItem: boolean;\n};\n\nconst BreadcrumbsItemContext = createContext<BreadcrumbsItemContextType | null>(\n null,\n);\n\nexport const useBreadcrumbsItemContext = (): BreadcrumbsItemContextType => {\n const context = useContext(BreadcrumbsItemContext);\n if (!context) {\n throw new Error('This component must be used within a <Breadcrumbs.Item>');\n }\n\n return context;\n};\n\ntype BreadcrumbsItemProps = {\n /** Content to be rendered. Should be either `Breadcrumbs.Link`, `Breadcrumbs.Button` or `Breadcrumbs.SelectButton`. */\n children?: React.ReactNode;\n};\n\nconst BreadcrumbsItem = ({\n children,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: CommonProps<'li', BreadcrumbsItemProps>) => {\n const classes = classNames('ndl-breadcrumbs-item', className);\n\n return (\n <BreadcrumbsItemContext.Provider value={{ isInBreadcrumbsItem: true }}>\n <li\n ref={ref}\n className={classes}\n style={style}\n {...htmlAttributes}\n {...restProps}\n >\n <div className=\"ndl-breadcrumbs-item-inner\">{children}</div>\n </li>\n </BreadcrumbsItemContext.Provider>\n );\n};\n\ntype InteractiveBreadcrumbProps = {\n /** Content to be rendered. */\n children?: React.ReactNode;\n} & (\n | {\n as: 'button';\n /**\n * Event handler for when the button is clicked. Only applicable if `as` is `'button'`.\n */\n onClick?: (\n event: React.MouseEvent<HTMLButtonElement, MouseEvent>,\n ) => void;\n }\n | {\n as: 'a';\n /**\n * The href of the link. Only applicable if `as` is `'a'`.\n */\n href: HtmlAttributes<'a'>['href'];\n /**\n * The target of the link. Only applicable if `as` is `'a'`.\n */\n target?: HtmlAttributes<'a'>['target'];\n }\n | {\n /**\n * What HTML element to render the root element as.\n */\n as?: React.ElementType;\n }\n);\n\ntype BreadcrumbsButtonProps = InteractiveBreadcrumbProps & {\n /** Leading element to be rendered. */\n leadingElement?: React.ReactNode;\n /** Trailing element to be rendered. */\n trailingElement?: React.ReactNode;\n};\n\nconst BreadcrumbsButton = <T extends React.ElementType = 'button'>({\n children,\n as,\n className,\n style,\n htmlAttributes,\n ref,\n leadingElement,\n trailingElement,\n ...restProps\n}: PolymorphicCommonProps<T, BreadcrumbsButtonProps>) => {\n useBreadcrumbsItemContext();\n\n const [isTooltipOpen, setIsTooltipOpen] = useState(false);\n const contentRef = useRef<HTMLDivElement>(null);\n const Component: React.ElementType = as ?? 'button';\n\n const classes = classNames(\n 'ndl-breadcrumbs-button ndl-breadcrumbs-sibling-hover',\n className,\n );\n\n return (\n <Tooltip\n type=\"simple\"\n isOpen={isTooltipOpen}\n onOpenChange={(isOpen) => {\n if (isOpen) {\n const isTruncated =\n contentRef.current?.scrollWidth &&\n contentRef.current?.clientWidth &&\n contentRef.current.scrollWidth > contentRef.current.clientWidth;\n const isVisible =\n contentRef.current?.offsetWidth &&\n contentRef.current?.offsetHeight &&\n contentRef.current.offsetWidth > 0 &&\n contentRef.current.offsetHeight > 0;\n setIsTooltipOpen(isTruncated || !isVisible);\n } else {\n setIsTooltipOpen(false);\n }\n }}\n >\n <Tooltip.Trigger hasButtonWrapper>\n <Component\n ref={ref}\n className={classes}\n style={style}\n {...htmlAttributes}\n {...restProps}\n >\n {Boolean(leadingElement) && (\n <div className=\"ndl-breadcrumbs-button-leading-element\">\n {leadingElement}\n </div>\n )}\n <div className=\"ndl-breadcrumbs-button-content\" ref={contentRef}>\n {children}\n </div>\n {Boolean(trailingElement) && (\n <div className=\"ndl-breadcrumbs-button-trailing-element\">\n {trailingElement}\n </div>\n )}\n </Component>\n </Tooltip.Trigger>\n <Tooltip.Content>{children}</Tooltip.Content>\n </Tooltip>\n );\n};\n\ntype BreadcrumbsSelectButtonProps = {\n /** Event handler for when the button is clicked. Should be used to open a `Menu`. */\n onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n /** Aria label needed for accessibility. */\n ariaLabel: string;\n /** Content to be rendered. */\n children?: React.ReactNode;\n /** Active - used when a connected menu is open */\n isActive?: boolean;\n};\n\nconst BreadcrumbsSelectButton = ({\n onClick,\n children,\n isActive,\n className,\n style,\n htmlAttributes,\n ariaLabel,\n ref,\n ...restProps\n}: CommonProps<'button', BreadcrumbsSelectButtonProps>) => {\n useBreadcrumbsItemContext();\n\n const classes = classNames(\n 'ndl-breadcrumbs-button ndl-breadcrumbs-sibling-hover ndl-breadcrumbs-select',\n className,\n {\n 'ndl-active': Boolean(isActive),\n },\n );\n\n return (\n <button\n type=\"button\"\n ref={ref}\n className={classes}\n style={style}\n onClick={onClick}\n aria-label={ariaLabel}\n aria-pressed={isActive}\n {...htmlAttributes}\n {...restProps}\n >\n <ChevronDownSmallOutlineIcon className=\"ndl-breadcrumbs-chevron\" />\n <div className=\"ndl-breadcrumbs-button-content\">{children}</div>\n </button>\n );\n};\n\ntype BreadcrumbsLinkProps = InteractiveBreadcrumbProps & {\n /**\n * Whether the link is the current item. Use `'page'` if it indicates the current page and `'step'` for steps (in a multi-step wizard for example).\n * @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current\n */\n ariaCurrent?: React.AriaAttributes['aria-current'];\n};\n\nconst BreadcrumbsLink = <T extends React.ElementType = 'a'>({\n children,\n as,\n className,\n style,\n htmlAttributes,\n ariaCurrent = false,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, BreadcrumbsLinkProps>) => {\n useBreadcrumbsItemContext();\n\n const Component: React.ElementType = as ?? 'a';\n\n const classes = classNames(\n 'ndl-breadcrumbs-link',\n {\n 'ndl-breadcrumbs-link-current': Boolean(ariaCurrent),\n },\n className,\n );\n\n return (\n <Component\n ref={ref}\n className={classes}\n style={style}\n aria-current={ariaCurrent}\n {...restProps}\n {...htmlAttributes}\n >\n {children}\n </Component>\n );\n};\n\nconst Breadcrumbs = Object.assign(BreadcrumbsComponent, {\n Button: BreadcrumbsButton,\n Item: BreadcrumbsItem,\n Link: BreadcrumbsLink,\n SelectButton: BreadcrumbsSelectButton,\n});\n\nexport { Breadcrumbs };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCE;CACA;CACA;CACA;CACA;CACA;;;CA4CA;CACA;CACA;CACA;CACA;;;CA4DA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;CA2EA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;CAwCA;CACA;CACA;CACA;CACA;CACA;CACA;;AAzPF,MAAM,wBAAwB,SAQc;CARd,IAAA,EAC5B,UACA,WACA,gBACA,OACA,KACA,aAAa,SAAA,MACV,YAAA,gCAAA,QAAA,MAAA,SAAA;CAEH,MAAM,WAAA,GAAUA,WAAAA,QAAAA,CAAW,mBAAmB,SAAS;CACvD,MAAM,eAAA,GAAcA,WAAAA,QAAAA,CAAW,wBAAwB,EACrD,wBAAwB,WAC1B,CAAC;CACD,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAA,sBAAA,QAAA,sBAAA,QAAA,sBAAA,QAAA;EACC,cAAW;EACN;EACL,WAAW;EACJ;CACH,GAAA,SAAA,GACA,cAAA,GAAA,CAAA,GAAA,EAAA,UAEJ,iBAAA,GAAA,kBAAA,IAAA,CAAC,MAAD;EAAI,WAAW;EAAc;CAAa,CAAA,EAAA,CACvC,CAAA;AAET;AAMA,MAAM,0BAAA,GAAyBC,MAAAA,cAAAA,CAC7B,IACF;AAEA,MAAa,kCAA8D;CACzE,MAAM,WAAA,GAAUC,MAAAA,WAAAA,CAAW,sBAAsB;CACjD,IAAI,CAAC,SACH,MAAM,IAAI,MAAM,yDAAyD;CAG3E,OAAO;AACT;AAOA,MAAM,mBAAmB,UAOsB;CAPtB,IAAA,EACvB,UACA,WACA,OACA,gBACA,QAAA,O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,gBAAc;CACV,GAAA,cAAA,GACA,SAAA,GAAA,CAAA,GAAA,EAAA,UATN,CAWE,iBAAA,GAAA,kBAAA,IAAA,CAACM,uDAAAA,SAAD,EAA6B,WAAU,0BAA2B,CAAA,GAClE,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;EAAK,WAAU;EAAkC;CAAc,CAAA,CACzD,EAAA,CAAA,CAAA;AAEZ;AAUA,MAAM,mBAAsD,UASL;CATK,IAAA,EAC1D,UACA,IACA,WACA,OACA,gBACA,cAAc,OACd,QAAA,OACG,YAAA,gCAAA,QAAA,OAAA,UAAA;CAEH,0BAA0B;CAE1B,MAAM,YAA+B,OAAA,QAAA,OAAA,KAAA,IAAA,KAAM;CAE3C,MAAM,WAAA,GAAUN,WAAAA,QAAAA,CACd,wBACA,EACE,gCAAgC,QAAQ,WAAW,EACrD,GACA,SACF;CAEA,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAA,sBAAA,QAAA,sBAAA,QAAA,sBAAA,QAAA;EACM;EACL,WAAW;EACJ;EACP,gBAAc;CACV,GAAA,SAAA,GACA,cAAA,GAAA,CAAA,GAAA,EAEH,SAAA,CACQ,CAAA;AAEf;AAEA,MAAM,cAAc,OAAO,OAAO,sBAAsB;CACtD,QAAQ;CACR,MAAM;CACN,MAAM;CACN,cAAc;AAChB,CAAC"}
@@ -13,11 +13,11 @@ const require_checkbox_Checkbox = require("../checkbox/Checkbox.js");
13
13
  const require_conditional_wrap_ConditionalWrap = require("../conditional-wrap/ConditionalWrap.js");
14
14
  const require_dismissible_tag_DismissibleTag = require("../dismissible-tag/DismissibleTag.js");
15
15
  const require_divider_Divider = require("../divider/Divider.js");
16
- const require_icons_generated_heroIcons_CheckIconOutline = require("../icons/generated/heroIcons/CheckIconOutline.js");
17
- const require_icons_generated_heroIcons_ChevronDownIconOutline = require("../icons/generated/heroIcons/ChevronDownIconOutline.js");
18
- const require_icons_generated_heroIcons_MagnifyingGlassIconOutline = require("../icons/generated/heroIcons/MagnifyingGlassIconOutline.js");
19
- const require_icons_generated_heroIcons_PlusIconOutline = require("../icons/generated/heroIcons/PlusIconOutline.js");
20
- const require_icons_generated_heroIcons_XMarkIconOutline = require("../icons/generated/heroIcons/XMarkIconOutline.js");
16
+ const require_icons_generated_custom_CheckOutline = require("../icons/generated/custom/CheckOutline.js");
17
+ const require_icons_generated_custom_ChevronDownSmallOutline = require("../icons/generated/custom/ChevronDownSmallOutline.js");
18
+ const require_icons_generated_custom_MagnifyingGlassOutline = require("../icons/generated/custom/MagnifyingGlassOutline.js");
19
+ const require_icons_generated_custom_PlusOutline = require("../icons/generated/custom/PlusOutline.js");
20
+ const require_icons_generated_custom_XMarkOutline = require("../icons/generated/custom/XMarkOutline.js");
21
21
  const require_loading_spinner_LoadingSpinner = require("../loading-spinner/LoadingSpinner.js");
22
22
  const require_read_only_tag_ReadOnlyTag = require("../read-only-tag/ReadOnlyTag.js");
23
23
  const require_theme_ThemeProvider = require("../theme/ThemeProvider.js");
@@ -899,11 +899,11 @@ const Control = ({ triggerProps, state, field, placeholder, isClearable, isClean
899
899
  "aria-label": "Clear selection",
900
900
  onKeyDown: handleAuxiliaryActionKeyDown,
901
901
  onClick: handleClear,
902
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icons_generated_heroIcons_XMarkIconOutline.XMarkIconOutline, {})
902
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icons_generated_custom_XMarkOutline.default, {})
903
903
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "ndl-combobox-divider" })]
904
904
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
905
905
  className: (0, classnames.default)("ndl-combobox-dropdown-indicator", { "ndl-open": isOpen }),
906
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icons_generated_heroIcons_ChevronDownIconOutline.ChevronDownIconOutline, {
906
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icons_generated_custom_ChevronDownSmallOutline.default, {
907
907
  "aria-hidden": "true",
908
908
  className: "ndl-combobox-icon"
909
909
  })
@@ -934,7 +934,7 @@ const Input = ({ ref, ariaLabel, value, onValueChange, placeholder, listboxId, a
934
934
  className: "ndl-combobox-input-label",
935
935
  children: ariaLabel
936
936
  }),
937
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icons_generated_heroIcons_MagnifyingGlassIconOutline.MagnifyingGlassIconOutline, { className: "ndl-combobox-input-leading" }),
937
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icons_generated_custom_MagnifyingGlassOutline.default, { className: "ndl-combobox-input-leading" }),
938
938
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
939
939
  ref,
940
940
  type: "text",
@@ -1084,7 +1084,7 @@ const OptionContent = ({ label, customLabel, description, leadingVisual, isDisab
1084
1084
  const CreateOptionContent = ({ children }) => {
1085
1085
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1086
1086
  className: "ndl-combobox-option-content",
1087
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LeadingVisual, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icons_generated_heroIcons_PlusIconOutline.PlusIconOutline, {}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1087
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LeadingVisual, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icons_generated_custom_PlusOutline.default, {}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1088
1088
  className: "ndl-combobox-option-content-main",
1089
1089
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Label, { children })
1090
1090
  })]
@@ -1115,7 +1115,7 @@ const Description = ({ children, isDisabled }) => {
1115
1115
  };
1116
1116
  const SelectionIndicator = ({ isDisabled }) => {
1117
1117
  const classes = (0, classnames.default)("ndl-combobox-option-content-selection-indicator", { "ndl-disabled": isDisabled });
1118
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icons_generated_heroIcons_CheckIconOutline.CheckIconOutline, { className: classes });
1118
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icons_generated_custom_CheckOutline.default, { className: classes });
1119
1119
  };
1120
1120
  /**
1121
1121
  * The option itself owns selection through `aria-selected` and its click