@parca/profile 0.16.441 → 0.16.442

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.16.442](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.441...@parca/profile@0.16.442) (2024-11-06)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
6
10
  ## [0.16.441](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.440...@parca/profile@0.16.441) (2024-10-29)
7
11
 
8
12
  **Note:** Version bump only for package @parca/profile
@@ -111,7 +111,7 @@ const CustomSelect = ({ items, selectedKey, onSelection, placeholder = 'Select a
111
111
  return selection?.element?.active ?? placeholder;
112
112
  }
113
113
  };
114
- return (_jsxs("div", { ref: containerRef, className: "relative", onKeyDown: handleKeyDown, onClick: onButtonClick, children: [_jsxs("div", { id: id, onClick: () => !disabled && setIsOpen(!isOpen), className: cx(styles, width !== undefined ? `w-${width}` : 'w-full', disabled ? 'cursor-not-allowed opacity-50 pointer-events-none' : '', primary ? primaryStyles : defaultStyles, { [className]: className.length > 0 }), tabIndex: 0, role: "button", "aria-haspopup": "listbox", "aria-expanded": isOpen, children: [_jsx("div", { className: cx(icon != null ? '' : 'block overflow-x-hidden text-ellipsis whitespace-nowrap'), children: renderSelection(selection) }), _jsx("div", { className: cx(icon != null ? '' : 'pointer-events-none text-gray-400'), children: icon ?? _jsx(Icon, { icon: "heroicons:chevron-up-down-20-solid", "aria-hidden": "true" }) })] }), isOpen && (_jsxs("div", { ref: optionsRef, className: cx('absolute z-50 mt-1 pt-0 max-h-[50vh] w-max overflow-auto rounded-md bg-gray-50 py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none dark:border-gray-600 dark:bg-gray-900 dark:ring-white dark:ring-opacity-20 sm:text-sm', { [optionsClassname]: optionsClassname.length > 0 }), role: "listbox", children: [searchable && (_jsx("div", { className: "sticky z-10 top-[-5px] w-auto max-w-full", children: _jsxs("div", { className: cx('relative h-full', editable ? 'h-full min-h-[50px]' : 'h-[45px]'), children: [editable ? (_jsx("textarea", { ref: searchInputRef, className: "w-full px-4 py-2 h-full text-sm border-b border-gray-200 rounded-none ring-0 outline-none bg-gray-50 dark:bg-gray-800 dark:text-white", placeholder: editable ? 'Type a RegEx to add' : 'Search...', value: searchTerm, onChange: e => setSearchTerm(e.target.value) })) : (_jsx("input", { ref: searchInputRef, type: "text", className: "w-full px-4 h-full text-sm border-none rounded-none ring-0 outline-none bg-gray-50 dark:bg-gray-800 dark:text-white", placeholder: editable ? 'Type a RegEx to add' : 'Search...', value: searchTerm, onChange: e => setSearchTerm(e.target.value) })), editable && searchTerm.length > 0 && (_jsxs(Button, { variant: "neutral", className: "absolute bottom-[10px] right-[10px] h-[30px]", onClick: () => {
114
+ return (_jsxs("div", { ref: containerRef, className: "relative", onKeyDown: handleKeyDown, onClick: onButtonClick, children: [_jsxs("div", { id: id, onClick: () => !disabled && setIsOpen(!isOpen), className: cx(styles, width !== undefined ? `w-${width}` : 'w-full', disabled ? 'cursor-not-allowed opacity-50 pointer-events-none' : '', primary ? primaryStyles : defaultStyles, { [className]: className.length > 0 }), tabIndex: 0, role: "button", "aria-haspopup": "listbox", "aria-expanded": isOpen, children: [_jsx("div", { className: cx(icon != null ? '' : 'block overflow-x-hidden text-ellipsis whitespace-nowrap'), children: renderSelection(selection) }), _jsx("div", { className: cx(icon != null ? '' : 'pointer-events-none text-gray-400'), children: icon ?? _jsx(Icon, { icon: "heroicons:chevron-up-down-20-solid", "aria-hidden": "true" }) })] }), isOpen && (_jsxs("div", { ref: optionsRef, className: cx('absolute z-50 mt-1 pt-0 max-h-[50vh] w-max overflow-auto rounded-md bg-gray-50 py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none dark:border-gray-600 dark:bg-gray-900 dark:ring-white dark:ring-opacity-20 sm:text-sm', { [optionsClassname]: optionsClassname.length > 0 }), role: "listbox", children: [searchable && (_jsx("div", { className: "sticky z-10 top-[-5px] w-auto max-w-full", children: _jsxs("div", { className: cx('relative', editable ? 'h-full min-h-[50px]' : 'h-[45px]'), children: [editable ? (_jsx("textarea", { ref: searchInputRef, className: "w-full px-4 py-2 h-full text-sm border-b border-gray-200 rounded-none ring-0 outline-none bg-gray-50 dark:bg-gray-800 dark:text-white", placeholder: editable ? 'Type a RegEx to add' : 'Search...', value: searchTerm, onChange: e => setSearchTerm(e.target.value) })) : (_jsx("input", { ref: searchInputRef, type: "text", className: "w-full px-4 h-full text-sm border-none rounded-none ring-0 outline-none bg-gray-50 dark:bg-gray-800 dark:text-white", placeholder: editable ? 'Type a RegEx to add' : 'Search...', value: searchTerm, onChange: e => setSearchTerm(e.target.value) })), editable && searchTerm.length > 0 && (_jsxs(Button, { variant: "neutral", className: "absolute bottom-[10px] right-[10px] h-[30px]", onClick: () => {
115
115
  onSelection(searchTerm);
116
116
  setIsOpen(false);
117
117
  }, children: ["Add", ' '] }))] }) })), loading === true ? (_jsx("div", { className: "w-[270px]", children: loader })) : (filteredItems.map((item, index) => (_jsxs("div", { ref: el => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.16.441",
3
+ "version": "0.16.442",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@headlessui/react": "^1.7.19",
@@ -73,5 +73,5 @@
73
73
  "access": "public",
74
74
  "registry": "https://registry.npmjs.org/"
75
75
  },
76
- "gitHead": "91788791113f41aaf0099c098f4081b1087f4f62"
76
+ "gitHead": "94407f14707818077b8c5b7094b98e1cc1edbef7"
77
77
  }
@@ -209,7 +209,7 @@ const CustomSelect: React.FC<CustomSelectProps> = ({
209
209
  >
210
210
  {searchable && (
211
211
  <div className="sticky z-10 top-[-5px] w-auto max-w-full">
212
- <div className={cx('relative h-full', editable ? 'h-full min-h-[50px]' : 'h-[45px]')}>
212
+ <div className={cx('relative', editable ? 'h-full min-h-[50px]' : 'h-[45px]')}>
213
213
  {editable ? (
214
214
  <textarea
215
215
  ref={searchInputRef as React.LegacyRef<HTMLTextAreaElement>}