@team_yumi/ramen 0.4.0-next.20231212-3c46c0e-13ac97040b546197bbc724b38edd52dc → 0.4.0-next.20231214-a3ed314-fe184b5e42ce196121aef559fab7cb54
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/core/{xcheckbox → x-checkbox}/root.d.ts +21 -0
- package/components/mobile/{xsnackbar → x-snackbar}/snackbar.d.ts +0 -1
- package/components/web/xcheckbox-group/root.d.ts +1 -1
- package/index.core.d.ts +1 -1
- package/index.css +37 -29
- package/index.js +1 -1
- package/index.mobile.d.ts +8 -8
- package/index.web.d.ts +1 -1
- package/package.json +1 -1
- /package/components/core/{xcheckbox → x-checkbox}/index.d.ts +0 -0
- /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
|
@@ -1,12 +1,33 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Collections } from './../../../models';
|
|
3
3
|
export interface IProps {
|
|
4
|
+
/**
|
|
5
|
+
* Checkbox selected or not
|
|
6
|
+
*/
|
|
4
7
|
selected?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Set state indeterminate
|
|
10
|
+
*/
|
|
5
11
|
indeterminate?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Set state disabled
|
|
14
|
+
*/
|
|
6
15
|
disabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Set error
|
|
18
|
+
*/
|
|
7
19
|
hasError?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Set text for checkbox option
|
|
22
|
+
*/
|
|
8
23
|
label?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Set placement for checkbox, 'left' or 'right'
|
|
26
|
+
*/
|
|
9
27
|
placement?: (typeof Collections.IPlacement)[number];
|
|
28
|
+
/**
|
|
29
|
+
* Event fire when checkbox is selected or not
|
|
30
|
+
*/
|
|
10
31
|
onChange?: (value: boolean) => void;
|
|
11
32
|
}
|
|
12
33
|
declare const XCheckbox: React.FC<IProps>;
|
package/index.core.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ declare const _default: {
|
|
|
23
23
|
XPhoneInput: import("react").FC<import("./components/core/xphone-input/root").IProps>;
|
|
24
24
|
XSearchInput: import("react").FC<import("./components/core/xsearch-input/root").IProps>;
|
|
25
25
|
XTextInput: import("react").FC<import("./components/core/xtext-input/root").IProps>;
|
|
26
|
-
XCheckbox: import("react").FC<import("./components/core/
|
|
26
|
+
XCheckbox: import("react").FC<import("./components/core/x-checkbox/root").IProps>;
|
|
27
27
|
XRadioButton: import("react").FC<import("./components/core/x-radio-button/root").IProps>;
|
|
28
28
|
XAvatar: import("react").FC<import("./components/core/xavatar/root").IProps>;
|
|
29
29
|
XAlert: import("react").FC<import("./components/core/x-alert/root").IProps>;
|
package/index.css
CHANGED
|
@@ -2077,26 +2077,26 @@
|
|
|
2077
2077
|
font-size: var(--xtext-size-11);
|
|
2078
2078
|
}
|
|
2079
2079
|
|
|
2080
|
-
.root-
|
|
2080
|
+
.root-module_x-checkbox__2YH9t {
|
|
2081
2081
|
display: flex;
|
|
2082
2082
|
align-items: center;
|
|
2083
2083
|
gap: var(--xbox-padding-xs);
|
|
2084
2084
|
cursor: pointer;
|
|
2085
2085
|
}
|
|
2086
2086
|
|
|
2087
|
-
.root-
|
|
2087
|
+
.root-module_x-checkbox--disabled__9V-Ji {
|
|
2088
2088
|
cursor: not-allowed;
|
|
2089
2089
|
}
|
|
2090
2090
|
|
|
2091
|
-
.root-
|
|
2091
|
+
.root-module_x-checkbox--placement_left__wNy2w {
|
|
2092
2092
|
flex-direction: row;
|
|
2093
2093
|
}
|
|
2094
2094
|
|
|
2095
|
-
.root-
|
|
2095
|
+
.root-module_x-checkbox--placement_right__U78AB {
|
|
2096
2096
|
flex-direction: row-reverse;
|
|
2097
2097
|
}
|
|
2098
2098
|
|
|
2099
|
-
.root-
|
|
2099
|
+
.root-module_x-checkbox__check__KRW8F {
|
|
2100
2100
|
border: 2px solid var(--color-neutral-dim);
|
|
2101
2101
|
border-radius: 4px;
|
|
2102
2102
|
width: var(--xbox-size-11);
|
|
@@ -2105,46 +2105,54 @@
|
|
|
2105
2105
|
box-sizing: content-box;
|
|
2106
2106
|
}
|
|
2107
2107
|
|
|
2108
|
-
.root-
|
|
2108
|
+
.root-module_x-checkbox__2YH9t > .root-module_x-checkbox__check__KRW8F > div {
|
|
2109
2109
|
color: var(--color-neutral-lightest);
|
|
2110
2110
|
}
|
|
2111
2111
|
|
|
2112
|
-
.root-
|
|
2112
|
+
.root-module_x-checkbox--has-error__5ixRs:not(.root-module_x-checkbox--disabled__9V-Ji) .root-module_x-checkbox__check__KRW8F {
|
|
2113
2113
|
border-color: var(--global-error-red-50);
|
|
2114
2114
|
}
|
|
2115
2115
|
|
|
2116
|
-
.root-
|
|
2116
|
+
.root-module_x-checkbox__2YH9t:hover:not(.root-module_x-checkbox--disabled__9V-Ji) .root-module_x-checkbox__check__KRW8F {
|
|
2117
2117
|
border-color: var(--color-neutral-darkest);
|
|
2118
2118
|
}
|
|
2119
2119
|
|
|
2120
|
-
.root-
|
|
2120
|
+
.root-module_x-checkbox--checked__nCcy2:not(.root-module_x-checkbox--disabled__9V-Ji) .root-module_x-checkbox__check__KRW8F {
|
|
2121
2121
|
background: var(--color-neutral-darkest);
|
|
2122
2122
|
color: var(--color-neutral-lightest);
|
|
2123
|
+
border-color: var(--color-neutral-darkest);
|
|
2123
2124
|
}
|
|
2124
2125
|
|
|
2125
|
-
.root-
|
|
2126
|
+
.root-module_x-checkbox--indeterminate__JUucw:not(.root-module_x-checkbox--disabled__9V-Ji) .root-module_x-checkbox__check__KRW8F {
|
|
2126
2127
|
background: var(--color-neutral-darkest);
|
|
2127
2128
|
color: var(--color-neutral-lightest);
|
|
2129
|
+
border-color: var(--color-neutral-darkest);
|
|
2128
2130
|
}
|
|
2129
2131
|
|
|
2130
|
-
.root-
|
|
2132
|
+
.root-module_x-checkbox--disabled__9V-Ji .root-module_x-checkbox__check__KRW8F {
|
|
2131
2133
|
border-color: var(--color-neutral-light);
|
|
2132
2134
|
}
|
|
2133
2135
|
|
|
2134
|
-
.root-
|
|
2136
|
+
.root-module_x-checkbox__label__QS6HR {
|
|
2135
2137
|
flex: 1;
|
|
2136
2138
|
min-width: 0;
|
|
2137
2139
|
text-align: left;
|
|
2140
|
+
font-size: 14px;
|
|
2141
|
+
font-weight: 600;
|
|
2142
|
+
line-height: 100%;
|
|
2143
|
+
letter-spacing: -0.7px;
|
|
2144
|
+
color: var(--neutral-dark-90);
|
|
2138
2145
|
}
|
|
2139
2146
|
|
|
2140
|
-
.root-
|
|
2147
|
+
.root-module_x-checkbox__label__QS6HR > div {
|
|
2141
2148
|
white-space: nowrap;
|
|
2142
2149
|
overflow: hidden;
|
|
2143
2150
|
text-overflow: ellipsis;
|
|
2144
2151
|
}
|
|
2145
2152
|
|
|
2146
|
-
.root-
|
|
2153
|
+
.root-module_x-checkbox--disabled__9V-Ji .root-module_x-checkbox__label__QS6HR {
|
|
2147
2154
|
color: var(--color-neutral-dim);
|
|
2155
|
+
cursor: not-allowed;
|
|
2148
2156
|
}
|
|
2149
2157
|
|
|
2150
2158
|
.root-module_x-radio-button__-Fh1j {
|
|
@@ -4059,7 +4067,7 @@
|
|
|
4059
4067
|
.root-module_xapp__iziZE {
|
|
4060
4068
|
}
|
|
4061
4069
|
|
|
4062
|
-
.snackbar-module_xsnackbar-
|
|
4070
|
+
.snackbar-module_xsnackbar-container__8hsKX {
|
|
4063
4071
|
position: absolute;
|
|
4064
4072
|
display: flex;
|
|
4065
4073
|
flex-direction: column;
|
|
@@ -4068,15 +4076,15 @@
|
|
|
4068
4076
|
right: 8px;
|
|
4069
4077
|
}
|
|
4070
4078
|
|
|
4071
|
-
.snackbar-module_xsnackbar-container--
|
|
4079
|
+
.snackbar-module_xsnackbar-container--bottom__Gfv7x {
|
|
4072
4080
|
bottom: max(env(safe-area-inset-bottom), 8px);
|
|
4073
4081
|
}
|
|
4074
4082
|
|
|
4075
|
-
.snackbar-module_xsnackbar-container--
|
|
4083
|
+
.snackbar-module_xsnackbar-container--top__PMBxG {
|
|
4076
4084
|
top: max(calc(env(safe-area-inset-top) - 8px), 8px);
|
|
4077
4085
|
}
|
|
4078
4086
|
|
|
4079
|
-
.snackbar-
|
|
4087
|
+
.snackbar-module_xsnackbar__fAdAU {
|
|
4080
4088
|
-webkit-user-select: none;
|
|
4081
4089
|
-moz-user-select: none;
|
|
4082
4090
|
user-select: none;
|
|
@@ -4090,47 +4098,47 @@
|
|
|
4090
4098
|
align-items: center;
|
|
4091
4099
|
}
|
|
4092
4100
|
|
|
4093
|
-
.snackbar-
|
|
4101
|
+
.snackbar-module_xsnackbar__fAdAU.snackbar-module_xsnackbar--info__xYUDr {
|
|
4094
4102
|
/*background: #ebf3fb;*/
|
|
4095
4103
|
display: flex;
|
|
4096
4104
|
}
|
|
4097
4105
|
|
|
4098
|
-
.snackbar-
|
|
4106
|
+
.snackbar-module_xsnackbar__fAdAU.snackbar-module_xsnackbar--success__yyAnP {
|
|
4099
4107
|
/*background: var(--color-success-lightest);*/
|
|
4100
4108
|
display: flex;
|
|
4101
4109
|
}
|
|
4102
4110
|
|
|
4103
|
-
.snackbar-
|
|
4111
|
+
.snackbar-module_xsnackbar__fAdAU.snackbar-module_xsnackbar--warning__sC88N {
|
|
4104
4112
|
/*background: var(--color-warning-lightest);*/
|
|
4105
4113
|
display: flex;
|
|
4106
4114
|
}
|
|
4107
4115
|
|
|
4108
|
-
.snackbar-
|
|
4116
|
+
.snackbar-module_xsnackbar__fAdAU.snackbar-module_xsnackbar--error__NsB-o {
|
|
4109
4117
|
/*background: var(--color-error-lightest);*/
|
|
4110
4118
|
display: flex;
|
|
4111
4119
|
}
|
|
4112
4120
|
|
|
4113
|
-
.snackbar-module_xsnackbar--
|
|
4121
|
+
.snackbar-module_xsnackbar--loading__vYwM- {
|
|
4114
4122
|
color: var(--color-neutral-lightest);
|
|
4115
4123
|
display: flex;
|
|
4116
4124
|
align-items: center;
|
|
4117
4125
|
justify-content: center;
|
|
4118
4126
|
}
|
|
4119
4127
|
|
|
4120
|
-
.snackbar-module_xsnackbar--
|
|
4128
|
+
.snackbar-module_xsnackbar--loading__vYwM- > div {
|
|
4121
4129
|
color: var(--color-neutral-lightest);
|
|
4122
4130
|
}
|
|
4123
4131
|
|
|
4124
|
-
.snackbar-
|
|
4132
|
+
.snackbar-module_xsnackbar__text__t130r {
|
|
4125
4133
|
display: flex;
|
|
4126
4134
|
flex: 1;
|
|
4127
4135
|
}
|
|
4128
4136
|
|
|
4129
|
-
.snackbar-
|
|
4137
|
+
.snackbar-module_xsnackbar__text__t130r > div {
|
|
4130
4138
|
color: var(--color-neutral-lightest);
|
|
4131
4139
|
}
|
|
4132
4140
|
|
|
4133
|
-
.snackbar-
|
|
4141
|
+
.snackbar-module_xsnackbar__close__3-MWE {
|
|
4134
4142
|
display: flex;
|
|
4135
4143
|
align-items: center;
|
|
4136
4144
|
justify-content: center;
|
|
@@ -4138,11 +4146,11 @@
|
|
|
4138
4146
|
cursor: pointer;
|
|
4139
4147
|
}
|
|
4140
4148
|
|
|
4141
|
-
.snackbar-
|
|
4149
|
+
.snackbar-module_xsnackbar__close__3-MWE > div {
|
|
4142
4150
|
color: var(--color-neutral-lightest);
|
|
4143
4151
|
}
|
|
4144
4152
|
|
|
4145
|
-
.snackbar-
|
|
4153
|
+
.snackbar-module_xsnackbar__action__-hxFp button {
|
|
4146
4154
|
background-color: var(--color-neutral-dark);
|
|
4147
4155
|
}
|
|
4148
4156
|
|