@team_yumi/ramen 0.4.0-next.20231212-3c46c0e-13ac97040b546197bbc724b38edd52dc → 0.4.0-next.20231214-1c83c95-5b24f8e2770626b417f5d847d9f937fe
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/web/xcheckbox-group/root.d.ts +1 -1
- package/index.core.d.ts +1 -1
- package/index.css +22 -14
- package/index.js +1 -1
- package/index.mobile.d.ts +1 -1
- package/index.web.d.ts +1 -1
- package/package.json +1 -1
- /package/components/core/{xcheckbox → x-checkbox}/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 {
|