@team_yumi/ramen 0.4.0-next.20231205-ebfa066-64a6185ad0f187a646e8483f1baa845f → 0.4.0-next.20231206-6253219-dcdcb2fadbf4dcc8f2a3a4b8cc73f586

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.
@@ -1,12 +1,33 @@
1
1
  import React from 'react';
2
2
  import { Collections } from './../../../models';
3
3
  export interface IProps {
4
+ /**
5
+ * Check radio or not
6
+ */
4
7
  selected?: boolean;
8
+ /**
9
+ * Set state disabled
10
+ */
5
11
  disabled?: boolean;
12
+ /**
13
+ * Set error
14
+ */
6
15
  hasError?: boolean;
16
+ /**
17
+ * Radio has full width
18
+ */
7
19
  fullWidth?: boolean;
20
+ /**
21
+ * Set text for radio option
22
+ */
8
23
  label?: string;
24
+ /**
25
+ * Set placement for radio, 'left' or 'right'
26
+ */
9
27
  placement?: (typeof Collections.IPlacement)[number];
28
+ /**
29
+ * Event fire when check radio
30
+ */
10
31
  onChange?: (selected: boolean) => void;
11
32
  }
12
33
  declare const XRadioButton: React.FC<IProps>;
package/index.core.d.ts CHANGED
@@ -24,7 +24,7 @@ declare const _default: {
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
26
  XCheckbox: import("react").FC<import("./components/core/xcheckbox/root").IProps>;
27
- XRadioButton: import("react").FC<import("./components/core/xradio-button/root").IProps>;
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/xalert/root").IProps>;
30
30
  XTextArea: import("react").FC<import("./components/core/x-text-area/root").IProps>;
package/index.css CHANGED
@@ -2131,35 +2131,40 @@
2131
2131
  color: var(--color-neutral-dim);
2132
2132
  }
2133
2133
 
2134
- .root-module_xradio-button__preZ5 {
2134
+ .root-module_x-radio-button__-Fh1j {
2135
2135
  display: flex;
2136
2136
  align-items: center;
2137
2137
  gap: var(--xbox-padding-xs);
2138
2138
  cursor: pointer;
2139
2139
  }
2140
2140
 
2141
- .root-module_xradio-button--disabled__mf3Cm {
2142
- cursor: not-allowed;
2141
+ .root-module_x-radio-button--disabled__9RLU9 {
2142
+ cursor: not-allowed !important;
2143
2143
  }
2144
2144
 
2145
- .root-module_xradio-button__label__vKOuy {
2145
+ .root-module_x-radio-button__label__vsaJU {
2146
2146
  flex: 1;
2147
+ font-size: 14px;
2148
+ font-weight: 600;
2149
+ line-height: 100%;
2150
+ letter-spacing: -0.7px;
2151
+ color: var(--neutral-dark-90);
2147
2152
  }
2148
2153
 
2149
- .root-module_xradio-button--placement_left__-7t0O {
2154
+ .root-module_x-radio-button--placement_left__XLz2Z {
2150
2155
  flex-direction: row;
2151
2156
  }
2152
2157
 
2153
- .root-module_xradio-button--placement_right__SNTzI {
2158
+ .root-module_x-radio-button--placement_right__1bkGf {
2154
2159
  flex-direction: row-reverse;
2155
2160
  }
2156
2161
 
2157
- .root-module_xradio-button--full-width__jP2Me {
2162
+ .root-module_x-radio-button--full-width__7adPL {
2158
2163
  width: 100%;
2159
2164
  flex: 1;
2160
2165
  }
2161
2166
 
2162
- .root-module_xradio-button__radio__QTpC6 {
2167
+ .root-module_x-radio-button__radio__S693y {
2163
2168
  border: 2px solid var(--color-neutral-dim);
2164
2169
  border-radius: 999px;
2165
2170
  width: var(--xbox-size-10);
@@ -2169,32 +2174,34 @@
2169
2174
  justify-content: center;
2170
2175
  }
2171
2176
 
2172
- .root-module_xradio-button__radio__QTpC6 > div:first-child {
2177
+ .root-module_x-radio-button__radio__S693y > div:first-child {
2173
2178
  width: 9px;
2174
2179
  height: 9px;
2175
2180
  border-radius: 999px;
2176
2181
  background-color: var(--color-neutral-lightest);
2177
2182
  }
2178
2183
 
2179
- .root-module_xradio-button--has-error__RqkO4:not(.root-module_xradio-button--disabled__mf3Cm) .root-module_xradio-button__radio__QTpC6 {
2184
+ .root-module_x-radio-button--has-error__wSdz6:not(.root-module_x-radio-button--disabled__9RLU9) .root-module_x-radio-button__radio__S693y {
2180
2185
  border-color: var(--global-error-red-50);
2181
2186
  }
2182
2187
 
2183
- .root-module_xradio-button__preZ5:hover:not(.root-module_xradio-button--disabled__mf3Cm) .root-module_xradio-button__radio__QTpC6 {
2188
+ .root-module_x-radio-button__-Fh1j:hover:not(.root-module_x-radio-button--disabled__9RLU9) .root-module_x-radio-button__radio__S693y {
2184
2189
  border-color: var(--color-neutral-darkest);
2185
2190
  }
2186
2191
 
2187
- .root-module_xradio-button--checked__i98gn:not(.root-module_xradio-button--disabled__mf3Cm) .root-module_xradio-button__radio__QTpC6 {
2192
+ .root-module_x-radio-button--checked__XlsA5:not(.root-module_x-radio-button--disabled__9RLU9) .root-module_x-radio-button__radio__S693y {
2188
2193
  background: var(--color-neutral-darkest);
2189
2194
  color: var(--color-neutral-lightest);
2195
+ border-color: var(--color-neutral-darkest);
2190
2196
  }
2191
2197
 
2192
- .root-module_xradio-button--disabled__mf3Cm .root-module_xradio-button__radio__QTpC6 {
2193
- border-color: var(--global-neutral-dark-30, #d6d6d6);
2198
+ .root-module_x-radio-button--disabled__9RLU9 .root-module_x-radio-button__radio__S693y {
2199
+ border-color: var( --neutral-dark-30, #d6d6d6);
2194
2200
  }
2195
2201
 
2196
- .root-module_xradio-button--disabled__mf3Cm .root-module_xradio-button__label__vKOuy {
2197
- color: var(--color-neutral-dim);
2202
+ .root-module_x-radio-button--disabled__9RLU9 .root-module_x-radio-button__label__vsaJU {
2203
+ color: var(--neutral-dark-50);
2204
+ cursor: not-allowed;
2198
2205
  }
2199
2206
 
2200
2207
  .root-module_xavatar__cqfXV {