@gearbox-protocol/permissionless-ui 1.2.31 → 1.2.32

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.
Files changed (47) hide show
  1. package/dist/cjs/components/buttons/external-button.js +1 -1
  2. package/dist/cjs/components/cards/expandable-call.js +81 -0
  3. package/dist/cjs/components/cards/index.js +2 -0
  4. package/dist/esm/components/buttons/external-button.js +1 -1
  5. package/dist/esm/components/cards/expandable-call.js +47 -0
  6. package/dist/esm/components/cards/index.js +1 -0
  7. package/dist/types/components/alert-dialog.d.ts +27 -0
  8. package/dist/types/components/auth/signin-required.d.ts +25 -0
  9. package/dist/types/components/auth/siwe-provider.d.ts +23 -0
  10. package/dist/types/components/badge.d.ts +19 -0
  11. package/dist/types/components/buttons/back-button.d.ts +19 -2
  12. package/dist/types/components/buttons/button.d.ts +30 -0
  13. package/dist/types/components/buttons/copy-button.d.ts +17 -0
  14. package/dist/types/components/buttons/external-button.d.ts +17 -0
  15. package/dist/types/components/buttons/navigation-button.d.ts +18 -0
  16. package/dist/types/components/buttons/tab-button.d.ts +16 -0
  17. package/dist/types/components/cards/card.d.ts +43 -0
  18. package/dist/types/components/cards/danger-zone.d.ts +17 -0
  19. package/dist/types/components/cards/expandable-call.d.ts +28 -0
  20. package/dist/types/components/cards/expandable-card.d.ts +20 -0
  21. package/dist/types/components/cards/index.d.ts +1 -0
  22. package/dist/types/components/checkbox.d.ts +18 -0
  23. package/dist/types/components/dialog.d.ts +22 -0
  24. package/dist/types/components/dropdown-menu.d.ts +32 -0
  25. package/dist/types/components/editable-table/edit-button.d.ts +14 -0
  26. package/dist/types/components/editable-table/editable-table.d.ts +60 -0
  27. package/dist/types/components/editable-table/updated-value.d.ts +19 -0
  28. package/dist/types/components/input.d.ts +20 -0
  29. package/dist/types/components/label.d.ts +15 -0
  30. package/dist/types/components/layout/app-logo.d.ts +17 -0
  31. package/dist/types/components/layout/footer.d.ts +21 -0
  32. package/dist/types/components/layout/header.d.ts +19 -0
  33. package/dist/types/components/layout/legal-disclaimer.d.ts +23 -0
  34. package/dist/types/components/layout/page-layout.d.ts +25 -0
  35. package/dist/types/components/markdown-viewer.d.ts +26 -0
  36. package/dist/types/components/search-bar.d.ts +19 -0
  37. package/dist/types/components/select.d.ts +26 -0
  38. package/dist/types/components/signatures/confirmation-item.d.ts +18 -0
  39. package/dist/types/components/signatures/identicon.d.ts +17 -0
  40. package/dist/types/components/signatures/vertical-timeline.d.ts +36 -0
  41. package/dist/types/components/skeleton.d.ts +18 -0
  42. package/dist/types/components/table.d.ts +81 -0
  43. package/dist/types/components/tabs.d.ts +20 -0
  44. package/dist/types/components/textarea.d.ts +17 -0
  45. package/dist/types/components/token-icon.d.ts +20 -0
  46. package/dist/types/components/tooltip.d.ts +18 -0
  47. package/package.json +1 -1
@@ -1,5 +1,25 @@
1
1
  import * as TabsPrimitive from "@radix-ui/react-tabs";
2
2
  import * as React from "react";
3
+ /**
4
+ * Tabs — tab navigation component and its subcomponents.
5
+ *
6
+ * @usage
7
+ * Use Tabs to organize content into multiple panels:
8
+ * tab navigation, content sections, view switchers, segmented content.
9
+ *
10
+ * Tab Components:
11
+ * - `Tabs` — root component (TabsPrimitive.Root).
12
+ * - `TabsList` — container for tab triggers.
13
+ * - `TabsTrigger` — individual tab trigger button.
14
+ * - `TabsContent` — content panel for each tab.
15
+ *
16
+ * Note: All components are based on Radix UI Tabs primitive.
17
+ * Prefer using these components instead of @radix-ui/react-tabs directly.
18
+ *
19
+ * Do NOT use Tabs:
20
+ * - for navigation between pages (use NavigationButton or Link components).
21
+ * - for simple content sections (use Card or other container components).
22
+ */
3
23
  declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
4
24
  declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
25
  declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -1,4 +1,21 @@
1
1
  import * as React from "react";
2
+ /**
3
+ * Textarea — multi-line text input component.
4
+ *
5
+ * @usage
6
+ * Use Textarea for multi-line text input:
7
+ * comments, descriptions, long-form text, message inputs, bytecodes, etc.
8
+ *
9
+ * Props:
10
+ * - All standard HTML textarea props are supported (value, onChange, placeholder, rows, etc.).
11
+ *
12
+ * Note: Minimum height of 80px. Uses standard form input styling with focus states.
13
+ * Prefer using this component instead of native HTML textarea element.
14
+ *
15
+ * Do NOT use Textarea:
16
+ * - for single-line text input (use Input component).
17
+ * - for rich text editing (use appropriate rich text editor components).
18
+ */
2
19
  export type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
3
20
  declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
4
21
  export { Textarea };
@@ -2,5 +2,25 @@ interface TokenIconProps {
2
2
  symbol: string;
3
3
  size?: number;
4
4
  }
5
+ /**
6
+ * TokenIcon — component for displaying token/asset icons.
7
+ *
8
+ * @usage
9
+ * Use TokenIcon to display token or asset icons:
10
+ * token symbols, asset icons, currency icons, token representations.
11
+ *
12
+ * Props:
13
+ * - `symbol` — token symbol/ticker (required).
14
+ * - `size` — icon size in pixels (defaults to 48).
15
+ *
16
+ * Note: Fetches icon from Gearbox static CDN based on symbol.
17
+ * Automatically falls back to default icon if token icon is not found.
18
+ * Symbol is normalized (removes "/", spaces, "-f", converts "-" to "_", lowercased).
19
+ * Displays as rounded circle.
20
+ *
21
+ * Do NOT use TokenIcon:
22
+ * - for address identifiers (use Identicon component).
23
+ * - for custom images or logos (use Image component).
24
+ */
5
25
  export declare function TokenIcon({ symbol, size }: TokenIconProps): import("react/jsx-runtime").JSX.Element;
6
26
  export {};
@@ -1,5 +1,23 @@
1
1
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
2
2
  import * as React from "react";
3
+ /**
4
+ * Tooltip — tooltip component and its subcomponents.
5
+ *
6
+ * @usage
7
+ * Use Tooltip to display additional information on hover:
8
+ * help text, descriptions, hints, additional context.
9
+ *
10
+ * Tooltip Components:
11
+ * - `TooltipProvider` — provider component that wraps tooltip usage.
12
+ * - `Tooltip` — root component (TooltipPrimitive.Root).
13
+ * - `TooltipTrigger` — element that triggers the tooltip.
14
+ * - `TooltipContent` — tooltip content container.
15
+ *
16
+ * Note: All components are based on Radix UI Tooltip primitive.
17
+ * TooltipContent uses primary background and primary-foreground text color.
18
+ * Supports animations and positioning.
19
+ * Prefer using these components instead of @radix-ui/react-tooltip directly.
20
+ */
3
21
  declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
4
22
  declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
5
23
  declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/permissionless-ui",
3
- "version": "1.2.31",
3
+ "version": "1.2.32",
4
4
  "description": "Internal UI components",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/index.js",