@stackone/malachite 2.78.0 → 2.79.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/COMPONENTS.md CHANGED
@@ -7,7 +7,7 @@ The catalog of components exported from `@stackone/malachite`. **Reach for one o
7
7
  ## Layout & containers
8
8
 
9
9
  - **`Chat`** — A chat column: `Chat.Thread` scrolls and pins itself to the newest message, `Chat.Composer` keeps its own height and owns the Enter/Shift+Enter convention, and `Chat.Message`, `Chat.ToolCall` and `Chat.Thinking` render one turn each. A user turn sits right and hugs its text; an assistant turn runs full width, and `variant="card"` frames it with its state, copy and rating controls, and a token/model line. `variant="bubble"` is a third treatment, not a repaint of either: tinted bubbles whose flattened corner points at whoever spoke, so authorship reads before the words do. `Chat.Context` lists what the conversation can see — a removable chip per source, and an add affordance only when a handler is given. `Chat.Thinking` and a loading turn draw bars in the shape of the answer rather than a spinner. The row under a composer is `ComposerChip`, `ContextMeter` and `ModelPicker` — PillButton tabs, so it reads as attached to the field; `ModelPicker` opens a portalled menu with a submenu per model. The transcript is a live `log` region, so a streamed reply is announced, and it shows a centred empty state until the first turn. _Key props:_ `Chat`: `children`, `className`. `Thread`: `aria-label`, `emptyTitle`, `emptyDescription`, `emptyIcon`. `Message`: `role`, `variant` (`plain` | `card`), `content`, `children`, `name`, `avatarSrc`, `status` (`streaming` | `completed` | `error`), `loading`, `onCopy`, `onFeedback`, `usage`. `ToolCall`: `name`, `status` (`running` | `completed` | `error`), `callId`, `input`, `output`, `defaultExpanded`. `Thinking`: `label`. `Composer`: `value`, `onChange`, `onSend`, `onStop`, `busy`, `disabled`, `placeholder`, `maxLength`, `rows`, `children`. `ComposerChip`: `label`, `icon`, `trailingIcon`, `onClick`, `disabled`. `ContextMeter`: `used`, `limit`, `cached`, `label`. `ModelPicker`: `models`, `value`, `optionValue`, `onChange`, `openUp`, `disabled`. `Context`: `label`, `items` (`{id, label, onRemove?}`), `onAdd`, `className`.
10
- - **`Surface`** — Rounded, bordered card container with the standard elevation shadow. Use `overflow="clip"` to keep the rounded clipping while letting a `position: sticky` descendant still pin (`hidden` would trap it); `visible` disables clipping. _Key props:_ `children`, `padding`, `overflow`, `className`, `style`.
10
+ - **`Surface`** — Rounded, bordered card container with the standard elevation shadow. Use `overflow="clip"` to keep the rounded clipping while letting a `position: sticky` descendant still pin (`hidden` would trap it); `visible` disables clipping. _Key props:_ `children`, `padding`, `overflow`, `shadow` (`false` sits the card flat, without the elevation shadow), `className`, `style`.
11
11
  - **`SurfaceRow`** — A full-bleed row inside a Surface (used as `Surface.Row`). Owns hover highlight, colour transition and an optional bottom divider. Pass `onClick`/`href` to make the whole row clickable (renders as a real button/anchor, so keyboard nav works). For a selectable row use `role="radio"` + `selected` and put a presentational `<Radio>` inside as the indicator; `selected` then paints the same treatment `Table` gives `selectedRowKey`. Under `role="checkbox"` it only announces — a multi-select row carries its own checkbox, and a highlight marking one of many says nothing when most rows are checked. `selection` overrides that either way (`highlight` / `announce`). `selected="mixed"` marks a partly selected checkbox row (`aria-checked="mixed"`); it never paints or marks a row current, and counts as not selected under any other role. Use `trailing` for a control that must stay interactive — it renders outside the row button, which a nested control could not be. `revealTrailing` shows that control only on hover, keyboard focus or while a menu it opened is open, keeping it in the tab order and always showing it on a touch screen. `tone="muted"` tints a row whose subject is inactive, which `disabled` does not: a muted row stays clickable. _Key props:_ `divider`, `disabled`, `tone` (`default` | `muted`), `inset` (`none` | `compact` — the row owns an 8px by 16px inset, wrapping `trailing` too, so its content needs no padding wrapper), `onClick`, `href`, `target`, `rel`, `selected` (`boolean` | `"mixed"`), `selection` (`highlight` | `tint` | `announce`; `tint` paints the selected treatment without the accent bar, for a menu whose choice is already marked inside the row), `trailing`, `revealTrailing`, `role`, `className`, `style`.
12
12
  - **`SurfaceExpandableRow`** — A row that opens to reveal a body (used as `Surface.ExpandableRow`), for a line that carries its own controls. Not `Accordion`, which puts its header inside the toggle button, so a header holding a dropdown or a second button would be invalid: here the row surface takes the click and a cell opts out by wrapping its controls in `ExpandableRow.Controls`, while the arrow stays a real button so the keyboard reaches it. That opt-out is explicit rather than sniffing the event target for an interactive ancestor, because a control rendering into a shadow root retargets the event to its host. `sticky` pins the row while its body scrolls, offset by `stickyTopOffset` for whatever is already pinned above it; it only pins while open, since a closed row has nothing to scroll past. _Key props:_ `header`, `children`, `expanded`, `onToggle`, `sticky`, `stickyTopOffset`, `divider`, `tone`, `aria-label`, `className`, `style`.
13
13
  - **`DisclosureArrow`** — The expand/collapse triangle disclosure UI shares (`Accordion`, `Surface.ExpandableRow`). Owns its colour states so they never drift between usages: `text-primary` when expanded, `text-placeholder` otherwise, and dark on hover inside a `group` ancestor — put `group` on the clickable header or row so that hover state activates. _Key props:_ `expanded`, `size`, `className`.
@@ -0,0 +1,6 @@
1
+ import * as C from "react";
2
+ const t = (e) => /* @__PURE__ */ C.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { d: "M3.78516 7.28589L7.28516 3.78589C7.3462 3.72484 7.41867 3.67642 7.49843 3.64338C7.57819 3.61035 7.66367 3.59334 7.75 3.59334C7.83633 3.59334 7.92182 3.61035 8.00157 3.64338C8.08133 3.67642 8.1538 3.72484 8.21485 3.78589C8.27589 3.84693 8.32431 3.9194 8.35735 3.99916C8.39039 4.07892 8.40739 4.1644 8.40739 4.25073C8.40739 4.33706 8.39039 4.42255 8.35735 4.5023C8.32431 4.58206 8.27589 4.65453 8.21485 4.71558L4.71484 8.21558C4.59156 8.33886 4.42435 8.40812 4.25 8.40812C4.07565 8.40812 3.90844 8.33886 3.78516 8.21558C3.66187 8.09229 3.59261 7.92508 3.59261 7.75073C3.59261 7.57638 3.66187 7.40917 3.78516 7.28589ZM10.9492 1.05151C10.3333 0.436943 9.49867 0.0917969 8.62856 0.0917969C7.75844 0.0917969 6.92385 0.436943 6.30789 1.05151L4.6607 2.69706C4.53742 2.82034 4.46816 2.98755 4.46816 3.1619C4.46816 3.24823 4.48516 3.33372 4.5182 3.41348C4.55124 3.49323 4.59966 3.5657 4.6607 3.62675C4.72175 3.68779 4.79422 3.73621 4.87398 3.76925C4.95373 3.80229 5.03922 3.81929 5.12555 3.81929C5.2999 3.81929 5.46711 3.75003 5.59039 3.62675L7.23485 1.98284C7.60412 1.6135 8.10499 1.40597 8.62727 1.40592C9.14955 1.40587 9.65046 1.6133 10.0198 1.98257C10.3892 2.35184 10.5967 2.85271 10.5967 3.37499C10.5968 3.89727 10.3894 4.39818 10.0201 4.76753L8.37344 6.41089C8.31239 6.47193 8.26397 6.5444 8.23094 6.62416C8.1979 6.70392 8.18089 6.7894 8.18089 6.87573C8.18089 6.96206 8.1979 7.04755 8.23094 7.1273C8.26397 7.20706 8.31239 7.27953 8.37344 7.34058C8.43448 7.40162 8.50695 7.45004 8.58671 7.48308C8.66647 7.51612 8.75195 7.53312 8.83828 7.53312C8.92461 7.53312 9.0101 7.51612 9.08985 7.48308C9.16961 7.45004 9.24208 7.40162 9.30313 7.34058L10.9481 5.69667C11.563 5.08033 11.9082 4.24518 11.9079 3.37457C11.9076 2.50396 11.5618 1.66906 10.9465 1.05315L10.9492 1.05151ZM6.41125 8.37308L4.7668 10.0181C4.58392 10.2009 4.36681 10.346 4.12788 10.4449C3.88895 10.5438 3.63287 10.5947 3.37426 10.5947C3.11565 10.5947 2.85958 10.5437 2.62067 10.4447C2.38176 10.3458 2.16468 10.2007 1.98184 10.0178C1.61256 9.64846 1.40514 9.14755 1.40519 8.62527C1.40524 8.10298 1.61277 7.60211 1.98211 7.23284L3.62602 5.58839C3.68706 5.52734 3.73548 5.45487 3.76852 5.37512C3.80156 5.29536 3.81856 5.20987 3.81856 5.12355C3.81856 5.03722 3.80156 4.95173 3.76852 4.87197C3.73548 4.79221 3.68706 4.71975 3.62602 4.6587C3.56497 4.59766 3.4925 4.54923 3.41274 4.5162C3.33299 4.48316 3.2475 4.46616 3.16117 4.46616C3.07484 4.46616 2.98936 4.48316 2.9096 4.5162C2.82984 4.54923 2.75737 4.59766 2.69633 4.6587L1.05352 6.30479C0.748763 6.60958 0.507026 6.97142 0.342108 7.36963C0.17719 7.76784 0.0923208 8.19464 0.0923462 8.62565C0.0923975 9.49612 0.438239 10.3309 1.05379 10.9464C1.66934 11.5619 2.50418 11.9076 3.37465 11.9076C4.24512 11.9075 5.07991 11.5617 5.69539 10.9461L7.3393 9.30167C7.46258 9.17839 7.53184 9.01118 7.53184 8.83683C7.53184 8.66248 7.46258 8.49527 7.3393 8.37198C7.21601 8.2487 7.0488 8.17944 6.87445 8.17944C6.7001 8.17944 6.5329 8.2487 6.40961 8.37198L6.41125 8.37308Z", fill: "currentColor" }));
3
+ export {
4
+ t as default
5
+ };
6
+ //# sourceMappingURL=chain_link.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain_link.svg.js","sources":["../../../src/assets/icons/chain_link.svg?react"],"sourcesContent":["import * as React from \"react\";\nconst SvgChainLink = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 12, height: 12, viewBox: \"0 0 12 12\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M3.78516 7.28589L7.28516 3.78589C7.3462 3.72484 7.41867 3.67642 7.49843 3.64338C7.57819 3.61035 7.66367 3.59334 7.75 3.59334C7.83633 3.59334 7.92182 3.61035 8.00157 3.64338C8.08133 3.67642 8.1538 3.72484 8.21485 3.78589C8.27589 3.84693 8.32431 3.9194 8.35735 3.99916C8.39039 4.07892 8.40739 4.1644 8.40739 4.25073C8.40739 4.33706 8.39039 4.42255 8.35735 4.5023C8.32431 4.58206 8.27589 4.65453 8.21485 4.71558L4.71484 8.21558C4.59156 8.33886 4.42435 8.40812 4.25 8.40812C4.07565 8.40812 3.90844 8.33886 3.78516 8.21558C3.66187 8.09229 3.59261 7.92508 3.59261 7.75073C3.59261 7.57638 3.66187 7.40917 3.78516 7.28589ZM10.9492 1.05151C10.3333 0.436943 9.49867 0.0917969 8.62856 0.0917969C7.75844 0.0917969 6.92385 0.436943 6.30789 1.05151L4.6607 2.69706C4.53742 2.82034 4.46816 2.98755 4.46816 3.1619C4.46816 3.24823 4.48516 3.33372 4.5182 3.41348C4.55124 3.49323 4.59966 3.5657 4.6607 3.62675C4.72175 3.68779 4.79422 3.73621 4.87398 3.76925C4.95373 3.80229 5.03922 3.81929 5.12555 3.81929C5.2999 3.81929 5.46711 3.75003 5.59039 3.62675L7.23485 1.98284C7.60412 1.6135 8.10499 1.40597 8.62727 1.40592C9.14955 1.40587 9.65046 1.6133 10.0198 1.98257C10.3892 2.35184 10.5967 2.85271 10.5967 3.37499C10.5968 3.89727 10.3894 4.39818 10.0201 4.76753L8.37344 6.41089C8.31239 6.47193 8.26397 6.5444 8.23094 6.62416C8.1979 6.70392 8.18089 6.7894 8.18089 6.87573C8.18089 6.96206 8.1979 7.04755 8.23094 7.1273C8.26397 7.20706 8.31239 7.27953 8.37344 7.34058C8.43448 7.40162 8.50695 7.45004 8.58671 7.48308C8.66647 7.51612 8.75195 7.53312 8.83828 7.53312C8.92461 7.53312 9.0101 7.51612 9.08985 7.48308C9.16961 7.45004 9.24208 7.40162 9.30313 7.34058L10.9481 5.69667C11.563 5.08033 11.9082 4.24518 11.9079 3.37457C11.9076 2.50396 11.5618 1.66906 10.9465 1.05315L10.9492 1.05151ZM6.41125 8.37308L4.7668 10.0181C4.58392 10.2009 4.36681 10.346 4.12788 10.4449C3.88895 10.5438 3.63287 10.5947 3.37426 10.5947C3.11565 10.5947 2.85958 10.5437 2.62067 10.4447C2.38176 10.3458 2.16468 10.2007 1.98184 10.0178C1.61256 9.64846 1.40514 9.14755 1.40519 8.62527C1.40524 8.10298 1.61277 7.60211 1.98211 7.23284L3.62602 5.58839C3.68706 5.52734 3.73548 5.45487 3.76852 5.37512C3.80156 5.29536 3.81856 5.20987 3.81856 5.12355C3.81856 5.03722 3.80156 4.95173 3.76852 4.87197C3.73548 4.79221 3.68706 4.71975 3.62602 4.6587C3.56497 4.59766 3.4925 4.54923 3.41274 4.5162C3.33299 4.48316 3.2475 4.46616 3.16117 4.46616C3.07484 4.46616 2.98936 4.48316 2.9096 4.5162C2.82984 4.54923 2.75737 4.59766 2.69633 4.6587L1.05352 6.30479C0.748763 6.60958 0.507026 6.97142 0.342108 7.36963C0.17719 7.76784 0.0923208 8.19464 0.0923462 8.62565C0.0923975 9.49612 0.438239 10.3309 1.05379 10.9464C1.66934 11.5619 2.50418 11.9076 3.37465 11.9076C4.24512 11.9075 5.07991 11.5617 5.69539 10.9461L7.3393 9.30167C7.46258 9.17839 7.53184 9.01118 7.53184 8.83683C7.53184 8.66248 7.46258 8.49527 7.3393 8.37198C7.21601 8.2487 7.0488 8.17944 6.87445 8.17944C6.7001 8.17944 6.5329 8.2487 6.40961 8.37198L6.41125 8.37308Z\", fill: \"currentColor\" }));\nexport default SvgChainLink;\n"],"names":["SvgChainLink","props","React"],"mappings":";AACK,MAACA,IAAe,CAACC,MAA0B,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,IAAI,QAAQ,IAAI,SAAS,aAAa,MAAM,QAAQ,OAAO,8BAA8B,GAAGD,EAAK,GAAoB,gBAAAC,EAAM,cAAc,QAAQ,EAAE,GAAG,+4FAA+4F,MAAM,eAAc,CAAE,CAAC;"}
@@ -0,0 +1,6 @@
1
+ import * as C from "react";
2
+ const e = (L) => /* @__PURE__ */ C.createElement("svg", { width: 11, height: 12, viewBox: "0 0 11 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...L }, /* @__PURE__ */ C.createElement("path", { d: "M10.4418 4.62485C10.3885 4.46042 10.2876 4.31548 10.152 4.2084C10.0163 4.10131 9.85185 4.03689 9.67953 4.02329L7.24793 3.82692L6.3095 1.55774C6.24354 1.39737 6.13142 1.26021 5.98736 1.16368C5.8433 1.06716 5.6738 1.01562 5.50039 1.01562C5.32699 1.01562 5.15749 1.06716 5.01343 1.16368C4.86937 1.26021 4.75724 1.39737 4.69129 1.55774L3.75371 3.82735L1.32211 4.02329C1.14947 4.03753 0.984895 4.10247 0.849057 4.20997C0.713218 4.31746 0.612182 4.46271 0.558645 4.62745C0.505108 4.7922 0.501458 4.96909 0.548154 5.1359C0.59485 5.30271 0.689809 5.452 0.821097 5.56501L2.67649 7.16516L2.1093 9.55853C2.06793 9.72727 2.07772 9.9045 2.13741 10.0677C2.19711 10.2308 2.30401 10.3725 2.44451 10.4747C2.585 10.5769 2.75274 10.635 2.92635 10.6416C3.09997 10.6481 3.27161 10.6029 3.41942 10.5116L5.50039 9.23067L7.58137 10.5116C7.72914 10.6023 7.9005 10.6471 8.07375 10.6403C8.247 10.6336 8.41436 10.5756 8.55463 10.4737C8.69491 10.3718 8.8018 10.2306 8.86176 10.0679C8.92172 9.9052 8.93207 9.72838 8.89149 9.55981L8.3243 7.16645L10.1797 5.5663C10.3118 5.45302 10.4072 5.30304 10.4539 5.13542C10.5005 4.9678 10.4963 4.79009 10.4418 4.62485ZM7.41379 6.58852C7.34225 6.6502 7.28902 6.73035 7.25993 6.82022C7.23083 6.91009 7.22698 7.00623 7.24879 7.09813L7.80266 9.43735L5.77067 8.18782C5.68939 8.1378 5.59583 8.11131 5.50039 8.11131C5.40496 8.11131 5.3114 8.1378 5.23012 8.18782L3.19813 9.43735L3.752 7.09985C3.77381 7.00794 3.76996 6.91181 3.74086 6.82194C3.71177 6.73207 3.65854 6.65192 3.587 6.59024L1.77071 5.02188L4.15118 4.82981C4.24591 4.8222 4.33669 4.78856 4.4135 4.7326C4.49031 4.67664 4.55017 4.60054 4.58645 4.5127L5.50039 2.29981L6.41434 4.5127C6.45062 4.60054 6.51048 4.67664 6.58729 4.7326C6.6641 4.78856 6.75488 4.8222 6.84961 4.82981L9.23008 5.02188L7.41379 6.58852Z", fill: "currentColor" }));
3
+ export {
4
+ e as default
5
+ };
6
+ //# sourceMappingURL=suggested.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suggested.svg.js","sources":["../../../src/assets/icons/suggested.svg?react"],"sourcesContent":["import * as React from \"react\";\nconst SvgSuggested = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 11, height: 12, viewBox: \"0 0 11 12\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M10.4418 4.62485C10.3885 4.46042 10.2876 4.31548 10.152 4.2084C10.0163 4.10131 9.85185 4.03689 9.67953 4.02329L7.24793 3.82692L6.3095 1.55774C6.24354 1.39737 6.13142 1.26021 5.98736 1.16368C5.8433 1.06716 5.6738 1.01562 5.50039 1.01562C5.32699 1.01562 5.15749 1.06716 5.01343 1.16368C4.86937 1.26021 4.75724 1.39737 4.69129 1.55774L3.75371 3.82735L1.32211 4.02329C1.14947 4.03753 0.984895 4.10247 0.849057 4.20997C0.713218 4.31746 0.612182 4.46271 0.558645 4.62745C0.505108 4.7922 0.501458 4.96909 0.548154 5.1359C0.59485 5.30271 0.689809 5.452 0.821097 5.56501L2.67649 7.16516L2.1093 9.55853C2.06793 9.72727 2.07772 9.9045 2.13741 10.0677C2.19711 10.2308 2.30401 10.3725 2.44451 10.4747C2.585 10.5769 2.75274 10.635 2.92635 10.6416C3.09997 10.6481 3.27161 10.6029 3.41942 10.5116L5.50039 9.23067L7.58137 10.5116C7.72914 10.6023 7.9005 10.6471 8.07375 10.6403C8.247 10.6336 8.41436 10.5756 8.55463 10.4737C8.69491 10.3718 8.8018 10.2306 8.86176 10.0679C8.92172 9.9052 8.93207 9.72838 8.89149 9.55981L8.3243 7.16645L10.1797 5.5663C10.3118 5.45302 10.4072 5.30304 10.4539 5.13542C10.5005 4.9678 10.4963 4.79009 10.4418 4.62485ZM7.41379 6.58852C7.34225 6.6502 7.28902 6.73035 7.25993 6.82022C7.23083 6.91009 7.22698 7.00623 7.24879 7.09813L7.80266 9.43735L5.77067 8.18782C5.68939 8.1378 5.59583 8.11131 5.50039 8.11131C5.40496 8.11131 5.3114 8.1378 5.23012 8.18782L3.19813 9.43735L3.752 7.09985C3.77381 7.00794 3.76996 6.91181 3.74086 6.82194C3.71177 6.73207 3.65854 6.65192 3.587 6.59024L1.77071 5.02188L4.15118 4.82981C4.24591 4.8222 4.33669 4.78856 4.4135 4.7326C4.49031 4.67664 4.55017 4.60054 4.58645 4.5127L5.50039 2.29981L6.41434 4.5127C6.45062 4.60054 6.51048 4.67664 6.58729 4.7326C6.6641 4.78856 6.75488 4.8222 6.84961 4.82981L9.23008 5.02188L7.41379 6.58852Z\", fill: \"currentColor\" }));\nexport default SvgSuggested;\n"],"names":["SvgSuggested","props","React"],"mappings":";AACK,MAACA,IAAe,CAACC,MAA0B,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,IAAI,QAAQ,IAAI,SAAS,aAAa,MAAM,QAAQ,OAAO,8BAA8B,GAAGD,EAAK,GAAoB,gBAAAC,EAAM,cAAc,QAAQ,EAAE,GAAG,0uDAA0uD,MAAM,eAAc,CAAE,CAAC;"}
@@ -0,0 +1,16 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import p from "../../assets/icons/chain_link.svg.js";
3
+ const f = ({ size: n = 16, className: o = "", style: t = {}, onClick: r }) => {
4
+ const l = {
5
+ width: typeof n == "number" ? `${n}px` : n,
6
+ height: typeof n == "number" ? `${n}px` : n,
7
+ display: "inline-block",
8
+ fill: "currentColor",
9
+ ...t
10
+ };
11
+ return /* @__PURE__ */ i(p, { className: o, style: l, onClick: r });
12
+ };
13
+ export {
14
+ f as default
15
+ };
16
+ //# sourceMappingURL=ChainLinkIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainLinkIcon.js","sources":["../../../src/components/CustomIcons/ChainLinkIcon.tsx"],"sourcesContent":["import type { CSSProperties } from 'react';\nimport ChainLinkIconSvg from '../../assets/icons/chain_link.svg?react';\n\nexport interface IconProps {\n size?: number | string;\n className?: string;\n style?: CSSProperties;\n onClick?: () => void;\n}\n\nconst ChainLinkIcon: React.FC<IconProps> = ({ size = 16, className = '', style = {}, onClick }) => {\n const iconStyle: CSSProperties = {\n width: typeof size === 'number' ? `${size}px` : size,\n height: typeof size === 'number' ? `${size}px` : size,\n display: 'inline-block',\n fill: 'currentColor',\n ...style,\n };\n\n return <ChainLinkIconSvg className={className} style={iconStyle} onClick={onClick} />;\n};\n\nexport default ChainLinkIcon;\n"],"names":["ChainLinkIcon","size","className","style","onClick","iconStyle","jsx","ChainLinkIconSvg"],"mappings":";;AAUA,MAAMA,IAAqC,CAAC,EAAE,MAAAC,IAAO,IAAI,WAAAC,IAAY,IAAI,OAAAC,IAAQ,IAAI,SAAAC,QAAc;AAC/F,QAAMC,IAA2B;AAAA,IAC7B,OAAO,OAAOJ,KAAS,WAAW,GAAGA,CAAI,OAAOA;AAAA,IAChD,QAAQ,OAAOA,KAAS,WAAW,GAAGA,CAAI,OAAOA;AAAA,IACjD,SAAS;AAAA,IACT,MAAM;AAAA,IACN,GAAGE;AAAA,EAAA;AAGP,SAAO,gBAAAG,EAACC,GAAA,EAAiB,WAAAL,GAAsB,OAAOG,GAAW,SAAAD,GAAkB;AACvF;"}
@@ -0,0 +1,16 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import p from "../../assets/icons/suggested.svg.js";
3
+ const f = ({ size: t = 16, className: o = "", style: r = {}, onClick: e }) => {
4
+ const n = {
5
+ width: typeof t == "number" ? `${t}px` : t,
6
+ height: typeof t == "number" ? `${t}px` : t,
7
+ display: "inline-block",
8
+ fill: "currentColor",
9
+ ...r
10
+ };
11
+ return /* @__PURE__ */ l(p, { className: o, style: n, onClick: e });
12
+ };
13
+ export {
14
+ f as default
15
+ };
16
+ //# sourceMappingURL=SuggestedIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SuggestedIcon.js","sources":["../../../src/components/CustomIcons/SuggestedIcon.tsx"],"sourcesContent":["import type { CSSProperties } from 'react';\nimport SuggestedIconSvg from '../../assets/icons/suggested.svg?react';\n\nexport interface IconProps {\n size?: number | string;\n className?: string;\n style?: CSSProperties;\n onClick?: () => void;\n}\n\nconst SuggestedIcon: React.FC<IconProps> = ({ size = 16, className = '', style = {}, onClick }) => {\n const iconStyle: CSSProperties = {\n width: typeof size === 'number' ? `${size}px` : size,\n height: typeof size === 'number' ? `${size}px` : size,\n display: 'inline-block',\n fill: 'currentColor',\n ...style,\n };\n\n return <SuggestedIconSvg className={className} style={iconStyle} onClick={onClick} />;\n};\n\nexport default SuggestedIcon;\n"],"names":["SuggestedIcon","size","className","style","onClick","iconStyle","jsx","SuggestedIconSvg"],"mappings":";;AAUA,MAAMA,IAAqC,CAAC,EAAE,MAAAC,IAAO,IAAI,WAAAC,IAAY,IAAI,OAAAC,IAAQ,IAAI,SAAAC,QAAc;AAC/F,QAAMC,IAA2B;AAAA,IAC7B,OAAO,OAAOJ,KAAS,WAAW,GAAGA,CAAI,OAAOA;AAAA,IAChD,QAAQ,OAAOA,KAAS,WAAW,GAAGA,CAAI,OAAOA;AAAA,IACjD,SAAS;AAAA,IACT,MAAM;AAAA,IACN,GAAGE;AAAA,EAAA;AAGP,SAAO,gBAAAG,EAACC,GAAA,EAAiB,WAAAL,GAAsB,OAAOG,GAAW,SAAAD,GAAkB;AACvF;"}