@gearbox-protocol/ui-kit 4.0.0-next.30 → 4.0.0-next.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.
- 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/graph/graph.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/radio-group/index.cjs +1 -0
- package/dist/cjs/components/radio-group/radio-group.cjs +1 -0
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- 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/graph/graph.js +169 -161
- package/dist/esm/components/index.js +249 -246
- package/dist/esm/components/radio-group/index.js +5 -0
- package/dist/esm/components/radio-group/radio-group.js +57 -0
- package/dist/esm/components/with-copy/with-copy.js +3 -2
- package/dist/esm/index.js +488 -485
- package/dist/globals.css +1 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/radio-group/index.d.ts +1 -0
- package/dist/types/components/radio-group/radio-group.d.ts +39 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -52,6 +52,7 @@ export * from './navbar-logo';
|
|
|
52
52
|
export * from './navigation-context';
|
|
53
53
|
export * from './points-icon';
|
|
54
54
|
export * from './pool-points-indicator';
|
|
55
|
+
export * from './radio-group';
|
|
55
56
|
export * from './rounded-image';
|
|
56
57
|
export * from './rwa-feature';
|
|
57
58
|
export * from './rwa-styles';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './radio-group';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare const radioGroupItemVariants: (props?: ({
|
|
5
|
+
size?: "md" | "lg" | null | undefined;
|
|
6
|
+
color?: "primary" | "secondary" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
export type RadioGroupProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;
|
|
9
|
+
export type RadioGroupItemProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> & VariantProps<typeof radioGroupItemVariants>;
|
|
10
|
+
/**
|
|
11
|
+
* RadioGroup — one choice out of several.
|
|
12
|
+
*
|
|
13
|
+
* @usage
|
|
14
|
+
* Use for: mutually exclusive options a form shows all at once — a route to
|
|
15
|
+
* take, a mode to run in. Wrap {@link RadioGroupItem}s and own the value.
|
|
16
|
+
*
|
|
17
|
+
* Props:
|
|
18
|
+
* - All standard Radix UI RadioGroup props are supported (value, defaultValue,
|
|
19
|
+
* onValueChange, disabled, orientation, ...).
|
|
20
|
+
*
|
|
21
|
+
* Note: Based on the Radix UI RadioGroup primitive; prefer this over
|
|
22
|
+
* `@radix-ui/react-radio-group` directly.
|
|
23
|
+
*
|
|
24
|
+
* Do NOT use RadioGroup:
|
|
25
|
+
* - for multi-select (use Checkbox).
|
|
26
|
+
* - when the options do not fit on screen (use Select).
|
|
27
|
+
*/
|
|
28
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
/**
|
|
30
|
+
* RadioGroupItem — one option inside a {@link RadioGroup}.
|
|
31
|
+
*
|
|
32
|
+
* Sized and coloured like `Checkbox`, so the two read as one family; only the
|
|
33
|
+
* shape differs, because only one of these can be picked.
|
|
34
|
+
*/
|
|
35
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
36
|
+
size?: "md" | "lg" | null | undefined;
|
|
37
|
+
color?: "primary" | "secondary" | null | undefined;
|
|
38
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
39
|
+
export { RadioGroup, RadioGroupItem };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export * from './components/navigation-context';
|
|
|
54
54
|
export * from './components/network-icon';
|
|
55
55
|
export * from './components/points-icon';
|
|
56
56
|
export * from './components/pool-points-indicator';
|
|
57
|
+
export * from './components/radio-group';
|
|
57
58
|
export * from './components/rounded-image';
|
|
58
59
|
export * from './components/rwa-feature';
|
|
59
60
|
export * from './components/rwa-styles';
|