@gearbox-protocol/permissionless-ui 1.22.0-next.45 → 1.22.0-next.46

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.
@@ -5,7 +5,7 @@ declare const searchLineVariants: (props?: ({
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  declare const searchLineInputVariants: (props?: ({
7
7
  active?: boolean | null | undefined;
8
- theme?: "dark" | "light" | null | undefined;
8
+ theme?: "dark" | "light" | "deep-light" | null | undefined;
9
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
10
  export interface SearchLineState {
11
11
  value: string;
@@ -25,9 +25,9 @@ export interface SearchLineProps extends Omit<React.HTMLAttributes<HTMLDivElemen
25
25
  */
26
26
  placeholder?: string;
27
27
  /**
28
- * Theme variant
28
+ * Theme variant (deep-light / deep-dark match interface SearchLine colors)
29
29
  */
30
- theme?: "light" | "dark";
30
+ theme?: "light" | "dark" | "deep-light";
31
31
  /**
32
32
  * Whether to show the search icon on the left
33
33
  */
@@ -88,9 +88,9 @@ export interface WithSearchLineProps {
88
88
  */
89
89
  placeholder?: string;
90
90
  /**
91
- * Theme variant
91
+ * Theme variant (deep-light / deep-dark match interface SearchLine colors)
92
92
  */
93
- theme?: "light" | "dark";
93
+ theme?: "light" | "dark" | "deep-light";
94
94
  /**
95
95
  * Content to display alongside the search line
96
96
  */
@@ -1,37 +1,32 @@
1
1
  import * as React from "react";
2
- type ColSize = boolean | number | "auto";
2
+ /** Column size: true = equal flex, "auto" = auto width. */
3
+ type ColSize = boolean | "auto";
3
4
  export interface SplitListProps {
4
- /**
5
- * Size for each column (can be function for dynamic sizing)
6
- */
5
+ /** Size for each column (or function for per-index). @default true */
7
6
  colSize?: ColSize | ((index: number) => ColSize);
8
- /**
9
- * Children content
10
- */
7
+ /** List items. */
11
8
  children?: React.ReactNode;
12
- /**
13
- * Additional CSS class
14
- */
9
+ /** Extra class name for the root. */
15
10
  className?: string;
16
11
  }
17
12
  /**
18
- * SplitList — horizontal list with dividers between items
13
+ * SplitList — horizontal list with vertical dividers between items (matches interface).
14
+ *
15
+ * @usage
16
+ * Use for a row of columns with centered vertical separators.
19
17
  *
20
18
  * @example
21
19
  * ```tsx
22
20
  * <SplitList colSize={true}>
23
- * <div>Item 1</div>
24
- * <div>Item 2</div>
25
- * <div>Item 3</div>
21
+ * <span>Item 1</span>
22
+ * <span>Item 2</span>
26
23
  * </SplitList>
27
24
  *
28
- * // Custom sizes
29
- * <SplitList colSize={(index) => index === 0 ? 6 : 3}>
30
- * <div>Wide</div>
31
- * <div>Narrow</div>
32
- * <div>Narrow</div>
25
+ * <SplitList colSize={(i) => (i === 0 ? true : "auto")}>
26
+ * <span>Flex</span>
27
+ * <span>Auto</span>
33
28
  * </SplitList>
34
29
  * ```
35
30
  */
36
- export declare function SplitList({ children, colSize, className, }: SplitListProps): import("react/jsx-runtime").JSX.Element;
37
- export {};
31
+ declare const SplitList: React.ForwardRefExoticComponent<SplitListProps & React.RefAttributes<HTMLDivElement>>;
32
+ export { SplitList };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/permissionless-ui",
3
- "version": "1.22.0-next.45",
3
+ "version": "1.22.0-next.46",
4
4
  "description": "Internal UI components",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/index.js",