@team_yumi/ramen 0.4.0-next.20231214-a3ed314-fe184b5e42ce196121aef559fab7cb54 → 0.4.0-next.20231214-c460ba2-9df80c472cdaac4a93bf62e7bee9667c
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.
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Collections } from "@yumi/models";
|
|
3
|
+
export interface IProps {
|
|
4
|
+
/**
|
|
5
|
+
* If true, the elements will be rendered as a skeleton
|
|
6
|
+
*/
|
|
7
|
+
skeleton?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The label of the radio button
|
|
10
|
+
*/
|
|
11
|
+
label: string;
|
|
12
|
+
/**
|
|
13
|
+
* The onChange event handler
|
|
14
|
+
*/
|
|
15
|
+
onChange: (value: boolean) => void;
|
|
16
|
+
/**
|
|
17
|
+
* The icon of the radio button
|
|
18
|
+
*/
|
|
19
|
+
icon?: (typeof Collections.IIcon)[number];
|
|
20
|
+
/**
|
|
21
|
+
* The symbol of the radio button
|
|
22
|
+
*/
|
|
23
|
+
symbol?: (typeof Collections.ISymbol)[number];
|
|
24
|
+
/**
|
|
25
|
+
* If true, the radio button will be selected
|
|
26
|
+
*/
|
|
27
|
+
selected: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* If true, the radio button will be disabled
|
|
30
|
+
*/
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
}
|
|
33
|
+
declare const XRadioButtonOption: React.FC<IProps>;
|
|
34
|
+
export default XRadioButtonOption;
|
package/index.css
CHANGED
|
@@ -5077,3 +5077,48 @@
|
|
|
5077
5077
|
.root-module_x-bottom-sheet--transition-out__SSw-- {
|
|
5078
5078
|
max-height: 12% !important;
|
|
5079
5079
|
}
|
|
5080
|
+
|
|
5081
|
+
.root-module_x-radio-button-option__zGBa4 {
|
|
5082
|
+
gap: 6px;
|
|
5083
|
+
display: flex;
|
|
5084
|
+
align-items: center;
|
|
5085
|
+
border-radius: 999px;
|
|
5086
|
+
border: 1px solid #F5F5F5;
|
|
5087
|
+
padding: 12px 16px 12px 24px;
|
|
5088
|
+
background: var(--color-neutral-lightest, #FFF);
|
|
5089
|
+
}
|
|
5090
|
+
|
|
5091
|
+
.root-module_x-radio-button-option--with-symbol__EMF2d {
|
|
5092
|
+
padding: 8px 16px 8px 8px;
|
|
5093
|
+
}
|
|
5094
|
+
|
|
5095
|
+
.root-module_x-radio-button-option--disabled__Esaom {
|
|
5096
|
+
cursor: not-allowed;
|
|
5097
|
+
pointer-events: none;
|
|
5098
|
+
border: 1px solid var(--neutral-dark-20, #F5F5F5);
|
|
5099
|
+
background: var(--neutral-dark-20, #F5F5F5);
|
|
5100
|
+
}
|
|
5101
|
+
|
|
5102
|
+
.root-module_x-radio-button-option--active__T5-vA {
|
|
5103
|
+
border-radius: 999px;
|
|
5104
|
+
border: 1px solid var(--neutral-dark-90, #1F1F1F);
|
|
5105
|
+
}
|
|
5106
|
+
|
|
5107
|
+
.theme-arcus .root-module_x-radio-button-option--active__T5-vA {
|
|
5108
|
+
border-color: transparent;
|
|
5109
|
+
background: linear-gradient(#fff, #fff) padding-box, var(--color-gradient-arcus) border-box;
|
|
5110
|
+
}
|
|
5111
|
+
|
|
5112
|
+
.root-module_x-radio-button-option__radio-button__5jnJ5 {
|
|
5113
|
+
width: 100%;
|
|
5114
|
+
}
|
|
5115
|
+
|
|
5116
|
+
.root-module_x-radio-button-option__symbol__8e8sD {
|
|
5117
|
+
display: flex;
|
|
5118
|
+
border-radius: 100px;
|
|
5119
|
+
background: var(--neutral-dark-20, #F5F5F5);
|
|
5120
|
+
padding: 8px;
|
|
5121
|
+
justify-content: center;
|
|
5122
|
+
align-items: center;
|
|
5123
|
+
gap: 10px;
|
|
5124
|
+
}
|