@team_yumi/ramen 0.4.0-next.20231214-1c83c95-5b24f8e2770626b417f5d847d9f937fe → 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.
- package/components/mobile/x-radio-button-option/index.d.ts +2 -0
- package/components/mobile/x-radio-button-option/root.d.ts +34 -0
- package/components/mobile/{xsnackbar → x-snackbar}/snackbar.d.ts +0 -1
- package/index.css +60 -15
- package/index.js +1 -1
- package/index.mobile.d.ts +9 -7
- package/package.json +1 -1
- /package/components/mobile/{xsnackbar → x-snackbar}/api.d.ts +0 -0
- /package/components/mobile/{xsnackbar → x-snackbar}/container.d.ts +0 -0
- /package/components/mobile/{xsnackbar → x-snackbar}/index.d.ts +0 -0
|
@@ -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
|
@@ -4067,7 +4067,7 @@
|
|
|
4067
4067
|
.root-module_xapp__iziZE {
|
|
4068
4068
|
}
|
|
4069
4069
|
|
|
4070
|
-
.snackbar-module_xsnackbar-
|
|
4070
|
+
.snackbar-module_xsnackbar-container__8hsKX {
|
|
4071
4071
|
position: absolute;
|
|
4072
4072
|
display: flex;
|
|
4073
4073
|
flex-direction: column;
|
|
@@ -4076,15 +4076,15 @@
|
|
|
4076
4076
|
right: 8px;
|
|
4077
4077
|
}
|
|
4078
4078
|
|
|
4079
|
-
.snackbar-module_xsnackbar-container--
|
|
4079
|
+
.snackbar-module_xsnackbar-container--bottom__Gfv7x {
|
|
4080
4080
|
bottom: max(env(safe-area-inset-bottom), 8px);
|
|
4081
4081
|
}
|
|
4082
4082
|
|
|
4083
|
-
.snackbar-module_xsnackbar-container--
|
|
4083
|
+
.snackbar-module_xsnackbar-container--top__PMBxG {
|
|
4084
4084
|
top: max(calc(env(safe-area-inset-top) - 8px), 8px);
|
|
4085
4085
|
}
|
|
4086
4086
|
|
|
4087
|
-
.snackbar-
|
|
4087
|
+
.snackbar-module_xsnackbar__fAdAU {
|
|
4088
4088
|
-webkit-user-select: none;
|
|
4089
4089
|
-moz-user-select: none;
|
|
4090
4090
|
user-select: none;
|
|
@@ -4098,47 +4098,47 @@
|
|
|
4098
4098
|
align-items: center;
|
|
4099
4099
|
}
|
|
4100
4100
|
|
|
4101
|
-
.snackbar-
|
|
4101
|
+
.snackbar-module_xsnackbar__fAdAU.snackbar-module_xsnackbar--info__xYUDr {
|
|
4102
4102
|
/*background: #ebf3fb;*/
|
|
4103
4103
|
display: flex;
|
|
4104
4104
|
}
|
|
4105
4105
|
|
|
4106
|
-
.snackbar-
|
|
4106
|
+
.snackbar-module_xsnackbar__fAdAU.snackbar-module_xsnackbar--success__yyAnP {
|
|
4107
4107
|
/*background: var(--color-success-lightest);*/
|
|
4108
4108
|
display: flex;
|
|
4109
4109
|
}
|
|
4110
4110
|
|
|
4111
|
-
.snackbar-
|
|
4111
|
+
.snackbar-module_xsnackbar__fAdAU.snackbar-module_xsnackbar--warning__sC88N {
|
|
4112
4112
|
/*background: var(--color-warning-lightest);*/
|
|
4113
4113
|
display: flex;
|
|
4114
4114
|
}
|
|
4115
4115
|
|
|
4116
|
-
.snackbar-
|
|
4116
|
+
.snackbar-module_xsnackbar__fAdAU.snackbar-module_xsnackbar--error__NsB-o {
|
|
4117
4117
|
/*background: var(--color-error-lightest);*/
|
|
4118
4118
|
display: flex;
|
|
4119
4119
|
}
|
|
4120
4120
|
|
|
4121
|
-
.snackbar-module_xsnackbar--
|
|
4121
|
+
.snackbar-module_xsnackbar--loading__vYwM- {
|
|
4122
4122
|
color: var(--color-neutral-lightest);
|
|
4123
4123
|
display: flex;
|
|
4124
4124
|
align-items: center;
|
|
4125
4125
|
justify-content: center;
|
|
4126
4126
|
}
|
|
4127
4127
|
|
|
4128
|
-
.snackbar-module_xsnackbar--
|
|
4128
|
+
.snackbar-module_xsnackbar--loading__vYwM- > div {
|
|
4129
4129
|
color: var(--color-neutral-lightest);
|
|
4130
4130
|
}
|
|
4131
4131
|
|
|
4132
|
-
.snackbar-
|
|
4132
|
+
.snackbar-module_xsnackbar__text__t130r {
|
|
4133
4133
|
display: flex;
|
|
4134
4134
|
flex: 1;
|
|
4135
4135
|
}
|
|
4136
4136
|
|
|
4137
|
-
.snackbar-
|
|
4137
|
+
.snackbar-module_xsnackbar__text__t130r > div {
|
|
4138
4138
|
color: var(--color-neutral-lightest);
|
|
4139
4139
|
}
|
|
4140
4140
|
|
|
4141
|
-
.snackbar-
|
|
4141
|
+
.snackbar-module_xsnackbar__close__3-MWE {
|
|
4142
4142
|
display: flex;
|
|
4143
4143
|
align-items: center;
|
|
4144
4144
|
justify-content: center;
|
|
@@ -4146,11 +4146,11 @@
|
|
|
4146
4146
|
cursor: pointer;
|
|
4147
4147
|
}
|
|
4148
4148
|
|
|
4149
|
-
.snackbar-
|
|
4149
|
+
.snackbar-module_xsnackbar__close__3-MWE > div {
|
|
4150
4150
|
color: var(--color-neutral-lightest);
|
|
4151
4151
|
}
|
|
4152
4152
|
|
|
4153
|
-
.snackbar-
|
|
4153
|
+
.snackbar-module_xsnackbar__action__-hxFp button {
|
|
4154
4154
|
background-color: var(--color-neutral-dark);
|
|
4155
4155
|
}
|
|
4156
4156
|
|
|
@@ -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
|
+
}
|