@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.
- package/dist/cjs/components/block-sync/block-sync.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
- package/dist/cjs/components/complex-input/complex-input.cjs +1 -1
- package/dist/cjs/components/search-line/search-line.cjs +1 -1
- package/dist/cjs/components/split-list/split-list.cjs +1 -1
- package/dist/esm/components/block-sync/block-sync.js +3 -2
- package/dist/esm/components/checkbox/checkbox-labeled.js +1 -0
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +1 -0
- package/dist/esm/components/complex-input/complex-input.js +3 -2
- package/dist/esm/components/search-line/search-line.js +47 -35
- package/dist/esm/components/split-list/split-list.js +48 -30
- package/dist/globals.css +1 -1
- package/dist/types/components/search-line/search-line.d.ts +5 -5
- package/dist/types/components/split-list/split-list.d.ts +16 -21
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
-
* <
|
|
24
|
-
* <
|
|
25
|
-
* <div>Item 3</div>
|
|
21
|
+
* <span>Item 1</span>
|
|
22
|
+
* <span>Item 2</span>
|
|
26
23
|
* </SplitList>
|
|
27
24
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* <
|
|
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
|
-
|
|
37
|
-
export {};
|
|
31
|
+
declare const SplitList: React.ForwardRefExoticComponent<SplitListProps & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
export { SplitList };
|